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 <noreply@anthropic.com>
This commit is contained in:
FilipBl4gojevic
2026-07-29 07:18:40 +02:00
parent 2b7bc397fc
commit ede813bd74
2 changed files with 37 additions and 3 deletions

View File

@@ -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)}`
);
});

View File

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