switchroom 0.13.28 → 0.13.29

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.
@@ -47436,8 +47436,8 @@ var {
47436
47436
  } = import__.default;
47437
47437
 
47438
47438
  // src/build-info.ts
47439
- var VERSION = "0.13.28";
47440
- var COMMIT_SHA = "eceed7db";
47439
+ var VERSION = "0.13.29";
47440
+ var COMMIT_SHA = "927abe08";
47441
47441
 
47442
47442
  // src/cli/agent.ts
47443
47443
  init_source();
@@ -61793,30 +61793,44 @@ Push passphrase to broker for future requests? [Y/n]: `);
61793
61793
  vault.command("list").description("List all secret key names in the vault").action(async () => {
61794
61794
  try {
61795
61795
  const parentOpts = program3.opts();
61796
- if (isSandboxContext()) {
61797
- let brokerSocket;
61798
- try {
61799
- const config = loadConfig(parentOpts.config);
61800
- brokerSocket = resolveBrokerSocketPath({
61801
- vaultBrokerSocket: config.vault?.broker?.socket ? resolvePath(config.vault.broker.socket) : undefined
61802
- });
61803
- } catch {
61804
- brokerSocket = resolveBrokerSocketPath();
61805
- }
61806
- const { listViaBroker: listViaBroker2 } = await Promise.resolve().then(() => (init_client(), exports_client));
61807
- const keys2 = await listViaBroker2({ socket: brokerSocket });
61808
- if (keys2 === null) {
61809
- process.stderr.write(`VAULT-BROKER-UNREACHABLE: cannot reach vault broker; 'switchroom vault list' from a sandbox requires a live broker.
61796
+ const inSandbox = isSandboxContext();
61797
+ let brokerSocket;
61798
+ try {
61799
+ const config = loadConfig(parentOpts.config);
61800
+ brokerSocket = resolveBrokerSocketPath({
61801
+ vaultBrokerSocket: config.vault?.broker?.socket ? resolvePath(config.vault.broker.socket) : undefined
61802
+ });
61803
+ } catch {
61804
+ brokerSocket = resolveBrokerSocketPath();
61805
+ }
61806
+ const brokerOpts = { socket: brokerSocket };
61807
+ const status = inSandbox ? null : await statusViaBroker(brokerOpts);
61808
+ if (inSandbox || status !== null) {
61809
+ if (status !== null && !status.unlocked) {
61810
+ if (inSandbox) {
61811
+ process.stderr.write(`VAULT-BROKER-DENIED: broker locked.
61812
+ ` + `${recoveryHint("locked")}
61810
61813
  `);
61811
- process.exit(VAULT_EXIT_BROKER_UNREACHABLE);
61812
- }
61813
- if (keys2.length === 0) {
61814
- console.log(source_default.dim("No secrets in vault"));
61815
- } else {
61816
- for (const key of keys2)
61817
- console.log(key);
61814
+ process.exit(3);
61815
+ }
61816
+ } else if (status !== null || inSandbox) {
61817
+ const keys2 = await listViaBroker(brokerOpts);
61818
+ if (keys2 === null) {
61819
+ if (inSandbox) {
61820
+ process.stderr.write(`VAULT-BROKER-UNREACHABLE: cannot reach vault broker; ` + `'switchroom vault list' from a sandbox requires a live broker.
61821
+ `);
61822
+ process.exit(VAULT_EXIT_BROKER_UNREACHABLE);
61823
+ }
61824
+ } else {
61825
+ if (keys2.length === 0) {
61826
+ console.log(source_default.dim("No secrets in vault"));
61827
+ } else {
61828
+ for (const key of keys2)
61829
+ console.log(key);
61830
+ }
61831
+ return;
61832
+ }
61818
61833
  }
61819
- return;
61820
61834
  }
61821
61835
  const vaultPath = getVaultPath4(parentOpts.config);
61822
61836
  const passphrase = await getPassphrase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.13.28",
3
+ "version": "0.13.29",
4
4
  "description": "Run Claude Code 24/7 on your Claude Pro/Max subscription over Telegram. Open-source alternative to OpenClaw and NanoClaw — no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -48464,10 +48464,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
48464
48464
  }
48465
48465
 
48466
48466
  // ../src/build-info.ts
48467
- var VERSION = "0.13.28";
48468
- var COMMIT_SHA = "eceed7db";
48469
- var COMMIT_DATE = "2026-05-24T11:11:54Z";
48470
- var LATEST_PR = 1730;
48467
+ var VERSION = "0.13.29";
48468
+ var COMMIT_SHA = "927abe08";
48469
+ var COMMIT_DATE = "2026-05-24T12:14:05Z";
48470
+ var LATEST_PR = 1732;
48471
48471
  var COMMITS_AHEAD_OF_TAG = 0;
48472
48472
 
48473
48473
  // gateway/boot-version.ts