@vultisig/cli 0.23.0 → 0.24.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 +24 -0
- package/dist/index.js +18 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @vultisig/cli
|
|
2
2
|
|
|
3
|
+
## 0.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#481](https://github.com/vultisig/vultisig-sdk/pull/481) [`4c98524`](https://github.com/vultisig/vultisig-sdk/commit/4c9852427abccd276759927f990bf22a7ef50513) Thanks [@neavra](https://github.com/neavra)! - agent: forward vault `chain_public_keys` in the chat request context
|
|
8
|
+
|
|
9
|
+
The CLI agent client now sends the vault's per-chain hardened-derived public
|
|
10
|
+
keys (`vault.data.chainPublicKeys`) to agent-backend, nested in the message
|
|
11
|
+
`context` as `chain_public_keys`. This matches agent-backend's
|
|
12
|
+
`MessageContext.ChainPublicKeys` contract and closes the last parity gap with
|
|
13
|
+
vultiagent-app: hardened-derivation chains (Solana, Sui, Polkadot, Terra) now
|
|
14
|
+
get the correct address via the CLI agent path instead of the fallback BIP32
|
|
15
|
+
derivation. Standard MPC vaults omit the field entirely (no empty `{}`).
|
|
16
|
+
|
|
17
|
+
## 0.24.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`bd0daf9`](https://github.com/vultisig/vultisig-sdk/commit/bd0daf9a8156c9927643cba8c1af98a2a6d5da56), [`2d85653`](https://github.com/vultisig/vultisig-sdk/commit/2d85653c23379bc39bb579acf83d7998070b9ed4), [`37c2f82`](https://github.com/vultisig/vultisig-sdk/commit/37c2f82379725ac4ac4d63679afea5c3ac1b7683), [`2174118`](https://github.com/vultisig/vultisig-sdk/commit/2174118523eacfb97e04ecfa8de96f22059afe99)]:
|
|
22
|
+
- @vultisig/sdk@0.24.0
|
|
23
|
+
- @vultisig/core-chain@2.0.0
|
|
24
|
+
- @vultisig/client-shared@0.2.8
|
|
25
|
+
- @vultisig/rujira@19.0.0
|
|
26
|
+
|
|
3
27
|
## 0.23.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -5250,12 +5250,27 @@ var AgentClient = class {
|
|
|
5250
5250
|
|
|
5251
5251
|
// src/agent/context.ts
|
|
5252
5252
|
import { Chain as Chain8 } from "@vultisig/sdk";
|
|
5253
|
+
function applyChainPublicKeys(vault, context) {
|
|
5254
|
+
const raw = vault.data.chainPublicKeys;
|
|
5255
|
+
if (!raw) return;
|
|
5256
|
+
const serialized = {};
|
|
5257
|
+
for (const chain of Object.keys(raw)) {
|
|
5258
|
+
const pubkey = raw[chain];
|
|
5259
|
+
if (typeof pubkey === "string" && pubkey.length > 0) {
|
|
5260
|
+
serialized[chain] = pubkey;
|
|
5261
|
+
}
|
|
5262
|
+
}
|
|
5263
|
+
if (Object.keys(serialized).length > 0) {
|
|
5264
|
+
context.chain_public_keys = serialized;
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5253
5267
|
async function buildMessageContext(vault) {
|
|
5254
5268
|
const context = {
|
|
5255
5269
|
vault_address: vault.publicKeys.ecdsa,
|
|
5256
5270
|
vault_name: vault.name,
|
|
5257
5271
|
mldsa_public_key: vault.publicKeyMldsa
|
|
5258
5272
|
};
|
|
5273
|
+
applyChainPublicKeys(vault, context);
|
|
5259
5274
|
try {
|
|
5260
5275
|
const chains = vault.chains;
|
|
5261
5276
|
const addressEntries = await Promise.allSettled(
|
|
@@ -5319,6 +5334,7 @@ async function buildMinimalContext(vault) {
|
|
|
5319
5334
|
vault_address: vault.publicKeys.ecdsa,
|
|
5320
5335
|
vault_name: vault.name
|
|
5321
5336
|
};
|
|
5337
|
+
applyChainPublicKeys(vault, context);
|
|
5322
5338
|
try {
|
|
5323
5339
|
const chains = vault.chains;
|
|
5324
5340
|
const addressEntries = await Promise.allSettled(
|
|
@@ -5777,7 +5793,7 @@ var leanChainFeeCoin = {
|
|
|
5777
5793
|
[Chain9.QBTC]: {
|
|
5778
5794
|
ticker: "QBTC",
|
|
5779
5795
|
logo: "qbtc",
|
|
5780
|
-
decimals:
|
|
5796
|
+
decimals: 8,
|
|
5781
5797
|
priceProviderId: "qbtc-testnet"
|
|
5782
5798
|
}
|
|
5783
5799
|
};
|
|
@@ -8730,7 +8746,7 @@ var cachedVersion = null;
|
|
|
8730
8746
|
function getVersion() {
|
|
8731
8747
|
if (cachedVersion) return cachedVersion;
|
|
8732
8748
|
if (true) {
|
|
8733
|
-
cachedVersion = "0.
|
|
8749
|
+
cachedVersion = "0.24.1";
|
|
8734
8750
|
return cachedVersion;
|
|
8735
8751
|
}
|
|
8736
8752
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vultisig/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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": {
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"@cosmjs/stargate": "^0.38.1",
|
|
74
74
|
"@napi-rs/keyring": "^1.3.0",
|
|
75
75
|
"@noble/hashes": "^2.0.1",
|
|
76
|
-
"@vultisig/client-shared": "^0.2.
|
|
77
|
-
"@vultisig/core-chain": "^
|
|
78
|
-
"@vultisig/rujira": "^
|
|
79
|
-
"@vultisig/sdk": "^0.
|
|
76
|
+
"@vultisig/client-shared": "^0.2.8",
|
|
77
|
+
"@vultisig/core-chain": "^2.0.0",
|
|
78
|
+
"@vultisig/rujira": "^19.0.0",
|
|
79
|
+
"@vultisig/sdk": "^0.24.0",
|
|
80
80
|
"chalk": "^5.6.2",
|
|
81
81
|
"cli-table3": "^0.6.5",
|
|
82
82
|
"commander": "^14.0.3",
|