@vultisig/cli 2.21.0 → 2.21.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,18 @@
1
1
  # @vultisig/cli
2
2
 
3
+ ## 2.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1435](https://github.com/vultisig/vultisig-sdk/pull/1435) [`69e2fc2`](https://github.com/vultisig/vultisig-sdk/commit/69e2fc2f92c053294b0276440306be5871988be9) Thanks [@rcoderdev](https://github.com/rcoderdev)! - Keep browser vault storage on the backend selected during initialization. IndexedDB failures and quota errors now surface without silently switching to a partial localStorage or in-memory view, while legacy localStorage vaults retain their backend across reloads.
8
+
9
+ - [#1179](https://github.com/vultisig/vultisig-sdk/pull/1179) [`0c80a06`](https://github.com/vultisig/vultisig-sdk/commit/0c80a062bde65c4938a29ce8c1fb6052028615e1) Thanks [@gomesalexandre](https://github.com/gomesalexandre)! - Route the CLI version cache, version output, and VaultStateStore local state through `VULTISIG_CONFIG_DIR` so they stay co-located with SDK vault storage and other shared CLI state.
10
+
11
+ - Updated dependencies [[`69e2fc2`](https://github.com/vultisig/vultisig-sdk/commit/69e2fc2f92c053294b0276440306be5871988be9), [`0c80a06`](https://github.com/vultisig/vultisig-sdk/commit/0c80a062bde65c4938a29ce8c1fb6052028615e1), [`1292e83`](https://github.com/vultisig/vultisig-sdk/commit/1292e83b1d370eff35ecd95b94e83689b724ca36), [`aa47b4a`](https://github.com/vultisig/vultisig-sdk/commit/aa47b4a03c7391d13c738cba68b13a1526d1c502), [`b8d0639`](https://github.com/vultisig/vultisig-sdk/commit/b8d063904673890f0a956a56f6474d678ceaba3c), [`32e5d36`](https://github.com/vultisig/vultisig-sdk/commit/32e5d369ae4723299a6cb8f694da1782dbf207c2)]:
12
+ - @vultisig/sdk@2.21.1
13
+ - @vultisig/client-shared@0.3.0
14
+ - @vultisig/core-chain@2.28.0
15
+
3
16
  ## 2.21.0
4
17
 
5
18
  ### Minor Changes
package/dist/index.js CHANGED
@@ -10210,8 +10210,8 @@ init_formatUnits();
10210
10210
 
10211
10211
  // src/core/VaultStateStore.ts
10212
10212
  import * as fs3 from "node:fs";
10213
- import * as os from "node:os";
10214
10213
  import * as path3 from "node:path";
10214
+ import { getVultisigConfigDir } from "@vultisig/client-shared";
10215
10215
  var LOCK_STALE_MS = 6e4;
10216
10216
  var LOCK_RETRY_INIT_MS = 100;
10217
10217
  var LOCK_MAX_WAIT_MS = 3e4;
@@ -10223,7 +10223,7 @@ var VaultStateStore = class {
10223
10223
  if (!safeId) {
10224
10224
  throw new Error("Invalid vaultId: must contain alphanumeric characters");
10225
10225
  }
10226
- this.baseDir = path3.join(os.homedir(), ".vultisig", "vault-state", safeId);
10226
+ this.baseDir = path3.join(getVultisigConfigDir(), "vault-state", safeId);
10227
10227
  fs3.mkdirSync(this.baseDir, { recursive: true });
10228
10228
  }
10229
10229
  // -------------------------------------------------------------------------
@@ -13298,13 +13298,13 @@ import {
13298
13298
  statSync as statSync3,
13299
13299
  writeFileSync as writeFileSync3
13300
13300
  } from "node:fs";
13301
- import { homedir as homedir3 } from "node:os";
13301
+ import { homedir as homedir2 } from "node:os";
13302
13302
  import { dirname as dirname2, join as join3 } from "node:path";
13303
13303
  var LOCK_RETRY_MS = 25;
13304
13304
  var LOCK_MAX_WAIT_MS2 = 5e3;
13305
13305
  var LOCK_STALE_MS2 = 3e4;
13306
13306
  function getTokenCachePath() {
13307
- const dir = process.env.VULTISIG_CONFIG_DIR ?? join3(homedir3(), ".vultisig");
13307
+ const dir = process.env.VULTISIG_CONFIG_DIR ?? join3(homedir2(), ".vultisig");
13308
13308
  return join3(dir, "agent-tokens.json");
13309
13309
  }
13310
13310
  function tokenCacheKey(scope) {
@@ -15074,15 +15074,15 @@ function formatDate(iso) {
15074
15074
  }
15075
15075
 
15076
15076
  // src/lib/version.ts
15077
+ import { getVultisigConfigDir as getVultisigConfigDir2 } from "@vultisig/client-shared";
15077
15078
  import chalk11 from "chalk";
15078
15079
  import { existsSync as existsSync2, mkdirSync as mkdirSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync4 } from "fs";
15079
- import { homedir as homedir4 } from "os";
15080
15080
  import { join as join4 } from "path";
15081
15081
  var cachedVersion = null;
15082
15082
  function getVersion() {
15083
15083
  if (cachedVersion) return cachedVersion;
15084
15084
  if (true) {
15085
- cachedVersion = "2.21.0";
15085
+ cachedVersion = "2.21.1";
15086
15086
  return cachedVersion;
15087
15087
  }
15088
15088
  try {
@@ -15095,7 +15095,7 @@ function getVersion() {
15095
15095
  return cachedVersion;
15096
15096
  }
15097
15097
  }
15098
- var CACHE_DIR = join4(homedir4(), ".vultisig", "cache");
15098
+ var CACHE_DIR = join4(getVultisigConfigDir2(), "cache");
15099
15099
  var VERSION_CACHE_FILE = join4(CACHE_DIR, "version-check.json");
15100
15100
  var CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
15101
15101
  function readVersionCache() {
@@ -15179,11 +15179,12 @@ function formatVersionShort() {
15179
15179
  }
15180
15180
  function formatVersionDetailed() {
15181
15181
  const lines = [];
15182
+ const configDir = getVultisigConfigDir2();
15182
15183
  lines.push(chalk11.bold(`Vultisig CLI v${getVersion()}`));
15183
15184
  lines.push("");
15184
15185
  lines.push(` Node.js: ${process.version}`);
15185
15186
  lines.push(` Platform: ${process.platform}-${process.arch}`);
15186
- lines.push(` Config: ~/.vultisig/`);
15187
+ lines.push(` Config: ${configDir}`);
15187
15188
  return lines.join("\n");
15188
15189
  }
15189
15190
  function detectInstallMethod() {
@@ -16621,7 +16622,7 @@ Error: ${error2.message}`));
16621
16622
  import { SUPPORTED_CHAINS as SUPPORTED_CHAINS2 } from "@vultisig/sdk";
16622
16623
  import { program } from "commander";
16623
16624
  import { existsSync as existsSync3, readdirSync, readFileSync as readFileSync5 } from "fs";
16624
- import { homedir as homedir5 } from "os";
16625
+ import { homedir as homedir3 } from "os";
16625
16626
  import { join as join5 } from "path";
16626
16627
  var tabtab = null;
16627
16628
  async function getTabtab() {
@@ -16645,7 +16646,7 @@ function getChains() {
16645
16646
  }
16646
16647
  function getVaultNames() {
16647
16648
  try {
16648
- const vaultDir = join5(homedir5(), ".vultisig", "vaults");
16649
+ const vaultDir = join5(homedir3(), ".vultisig", "vaults");
16649
16650
  if (!existsSync3(vaultDir)) return [];
16650
16651
  const files = readdirSync(vaultDir);
16651
16652
  const names = [];
@@ -16898,11 +16899,11 @@ complete -c vsig -n "__fish_seen_subcommand_from import export" -a "(__fish_comp
16898
16899
 
16899
16900
  // src/lib/config.ts
16900
16901
  import { FileStorage } from "@vultisig/sdk/node";
16901
- import { homedir as homedir6 } from "os";
16902
+ import { homedir as homedir4 } from "os";
16902
16903
  import { join as join6 } from "path";
16903
16904
  function getConfigDir() {
16904
16905
  const override = process.env.VULTISIG_CONFIG_DIR?.trim();
16905
- return override ? override : join6(homedir6(), ".vultisig");
16906
+ return override ? override : join6(homedir4(), ".vultisig");
16906
16907
  }
16907
16908
  function createVaultStorage() {
16908
16909
  return new FileStorage({ basePath: getConfigDir() });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vultisig/cli",
3
- "version": "2.21.0",
3
+ "version": "2.21.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.39.0",
74
74
  "@napi-rs/keyring": "^1.3.0",
75
75
  "@noble/hashes": "^2.2.0",
76
- "@vultisig/client-shared": "^0.2.17",
77
- "@vultisig/core-chain": "^2.27.0",
76
+ "@vultisig/client-shared": "^0.3.0",
77
+ "@vultisig/core-chain": "^2.28.0",
78
78
  "@vultisig/rujira": "^54.0.0",
79
- "@vultisig/sdk": "^2.21.0",
79
+ "@vultisig/sdk": "^2.21.1",
80
80
  "chalk": "^5.6.2",
81
81
  "cli-table3": "^0.6.5",
82
82
  "commander": "^15.0.0",