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": {