From ede813bd7455de3f43d5f4ffebf3946e6a102ed5 Mon Sep 17 00:00:00 2001 From: FilipBl4gojevic <84703395+FilipBl4gojevic@users.noreply.github.com> Date: Wed, 29 Jul 2026 07:18:40 +0200 Subject: [PATCH] test: pin the 25-tool surface after adding submit and await The snapshot guard flagged both additions, which is what it is for. Delta verified as exactly two ADDED entries with no existing schema changed. Co-Authored-By: Claude Opus 5 --- .../builder/test/smoke/tool-inventory.test.ts | 8 +++-- .../test/smoke/tool-schemas.snapshot.json | 32 +++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/packages/builder/test/smoke/tool-inventory.test.ts b/packages/builder/test/smoke/tool-inventory.test.ts index 3d67c60..ffcf808 100644 --- a/packages/builder/test/smoke/tool-inventory.test.ts +++ b/packages/builder/test/smoke/tool-inventory.test.ts @@ -14,6 +14,7 @@ import { startServer, stopServer, ServerContext } from '../setup.ts'; * no network beyond localhost — this never needs a mnemonic. */ const EXPECTED_TOOLS = [ + 'vector_await_transaction', 'vector_build_transaction', 'vector_deploy_contract', 'vector_deregister_agent', @@ -35,6 +36,7 @@ const EXPECTED_TOOLS = [ 'vector_self_improvement_submit_proposal', 'vector_send_apex', 'vector_send_tokens', + 'vector_submit_transaction', 'vector_transfer_agent', 'vector_update_agent', ]; @@ -80,11 +82,11 @@ after(async () => { }); describe('tool inventory smoke test', () => { - test('exposes exactly 23 tools', () => { + test('exposes exactly 25 tools', () => { assert.equal( actualNames.length, - 23, - `expected 23 tools, got ${actualNames.length}: ${JSON.stringify(actualNames)}` + 25, + `expected 25 tools, got ${actualNames.length}: ${JSON.stringify(actualNames)}` ); }); diff --git a/packages/builder/test/smoke/tool-schemas.snapshot.json b/packages/builder/test/smoke/tool-schemas.snapshot.json index a3d29e2..e6de772 100644 --- a/packages/builder/test/smoke/tool-schemas.snapshot.json +++ b/packages/builder/test/smoke/tool-schemas.snapshot.json @@ -1,4 +1,23 @@ { + "vector_await_transaction": { + "type": "object", + "properties": { + "txHash": { + "description": "Transaction hash returned by vector_submit_transaction", + "type": "string" + }, + "timeoutSeconds": { + "description": "How long to wait before giving up (default: 120)", + "type": "number", + "minimum": 1, + "maximum": 300 + } + }, + "required": [ + "txHash" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "vector_build_transaction": { "type": "object", "properties": { @@ -711,6 +730,19 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "vector_submit_transaction": { + "type": "object", + "properties": { + "signedTxCbor": { + "description": "Hex-encoded CBOR of a fully signed transaction", + "type": "string" + } + }, + "required": [ + "signedTxCbor" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "vector_transfer_agent": { "type": "object", "properties": {