@vultisig/cli 0.24.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 +14 -0
- package/dist/index.js +17 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
3
17
|
## 0.24.0
|
|
4
18
|
|
|
5
19
|
### Patch 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(
|
|
@@ -8730,7 +8746,7 @@ var cachedVersion = null;
|
|
|
8730
8746
|
function getVersion() {
|
|
8731
8747
|
if (cachedVersion) return cachedVersion;
|
|
8732
8748
|
if (true) {
|
|
8733
|
-
cachedVersion = "0.24.
|
|
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.24.
|
|
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": {
|