@vultisig/cli 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vultisig/cli
2
2
 
3
+ ## 2.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#898](https://github.com/vultisig/vultisig-sdk/pull/898) [`8daa669`](https://github.com/vultisig/vultisig-sdk/commit/8daa6696670cefb6f5fa3e800ff433ba7a95c132) Thanks [@neavra](https://github.com/neavra)! - Agent: when the backend asks the CLI to run a client-side tool it doesn't implement, emit a structured `TOOL_UNSUPPORTED` error code (in the failure `RecentAction`'s `data.code`) so the backend/LLM can branch — pick an alternative instead of retrying or waiting on an action that will never report. The CLI now routes SSE `tool-input-available` frames on the backend's full client-side tool contract (a superset of the implemented dispatch registry), so an unimplemented tool reaches the dispatcher and reports `TOOL_UNSUPPORTED` instead of silently degrading to display-only progress. The human-readable stderr line and `error` string are preserved.
8
+
3
9
  ## 2.12.0
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -8082,6 +8082,7 @@ var AgentErrorCode = /* @__PURE__ */ ((AgentErrorCode3) => {
8082
8082
  AgentErrorCode3["PASSWORD_REQUIRED"] = "PASSWORD_REQUIRED";
8083
8083
  AgentErrorCode3["CONFIRMATION_REQUIRED"] = "CONFIRMATION_REQUIRED";
8084
8084
  AgentErrorCode3["ACTION_NOT_IMPLEMENTED"] = "ACTION_NOT_IMPLEMENTED";
8085
+ AgentErrorCode3["TOOL_UNSUPPORTED"] = "TOOL_UNSUPPORTED";
8085
8086
  AgentErrorCode3["INVALID_INPUT"] = "INVALID_INPUT";
8086
8087
  AgentErrorCode3["NETWORK_ERROR"] = "NETWORK_ERROR";
8087
8088
  AgentErrorCode3["TIMEOUT"] = "TIMEOUT";
@@ -12136,6 +12137,21 @@ var CLIENT_SIDE_TOOL_DISPATCH = {
12136
12137
  vault_chain: (ex, id, input) => ex.vaultChain(id, input),
12137
12138
  address_book: (ex, id, input) => ex.addressBook(id, input)
12138
12139
  };
12140
+ var BACKEND_CLIENT_SIDE_TOOL_NAMES = [
12141
+ "vault_coin",
12142
+ "vault_chain",
12143
+ "create_vault",
12144
+ "plugin_install",
12145
+ "create_policy",
12146
+ "delete_policy",
12147
+ "sign_typed_data",
12148
+ "polymarket_sign_bet",
12149
+ "polymarket_sign_batch"
12150
+ ];
12151
+ var CLIENT_SIDE_DISPATCH_TOOL_NAMES = /* @__PURE__ */ new Set([
12152
+ ...BACKEND_CLIENT_SIDE_TOOL_NAMES,
12153
+ ...Object.keys(CLIENT_SIDE_TOOL_DISPATCH)
12154
+ ]);
12139
12155
  var MAX_MESSAGE_LOOP_DEPTH = 16;
12140
12156
  var RECOVERY_POLL_INTERVAL_MS = 2e3;
12141
12157
  var RECOVERY_MAX_POLLS = 90;
@@ -12167,7 +12183,7 @@ var AgentSession = class {
12167
12183
  this.config = config;
12168
12184
  this.client = new AgentClient(config.backendUrl);
12169
12185
  this.client.verbose = !!config.verbose;
12170
- this.client.setClientSideToolNames(new Set(Object.keys(CLIENT_SIDE_TOOL_DISPATCH)));
12186
+ this.client.setClientSideToolNames(new Set(CLIENT_SIDE_DISPATCH_TOOL_NAMES));
12171
12187
  if (config.profile) {
12172
12188
  this.client.setProfile(config.profile);
12173
12189
  }
@@ -12781,7 +12797,7 @@ var AgentSession = class {
12781
12797
  this.pendingToolResults.push({
12782
12798
  tool: toolName,
12783
12799
  success: false,
12784
- data: { error: `unimplemented in CLI: ${toolName}` }
12800
+ data: { code: "TOOL_UNSUPPORTED" /* TOOL_UNSUPPORTED */, error: `unimplemented in CLI: ${toolName}` }
12785
12801
  });
12786
12802
  return;
12787
12803
  }
@@ -13529,7 +13545,7 @@ var cachedVersion = null;
13529
13545
  function getVersion() {
13530
13546
  if (cachedVersion) return cachedVersion;
13531
13547
  if (true) {
13532
- cachedVersion = "2.12.0";
13548
+ cachedVersion = "2.12.1";
13533
13549
  return cachedVersion;
13534
13550
  }
13535
13551
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vultisig/cli",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "The self-custody MPC wallet CLI for AI coding agents (Claude Code, Cursor, OpenCode). Natural-language agent mode, 36+ chains, DKLS23 threshold signatures. Seedless.",
5
5
  "type": "module",
6
6
  "bin": {