@phnx-labs/agents-cli 1.22.20 → 1.22.21

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.21
4
+
5
+ - **`agents secrets exec <bundle> -- <cmd>` now resolves a locked keychain bundle
6
+ interactively at a real terminal.** The local resolve hardcoded `agentOnly: true`
7
+ (`commands/secrets.ts`), so running `exec` on a locked bundle at a terminal
8
+ failed closed with "run `agents secrets unlock` first" instead of raising the one
9
+ Touch ID sheet the human just implied by asking to use the values. It now gates
10
+ `agentOnly` on `isHeadlessSecretsContext() || !isInteractiveTerminal()`: an
11
+ unlocked bundle still runs silently, a locked bundle at an interactive terminal
12
+ resolves with a single sheet and then runs the command with the secrets injected,
13
+ and under an agent (`AGENTS_RUNTIME`) or headless (no TTY) it stays broker-only —
14
+ release/CI scripts never prompt. Mirrors the same fix for `view --reveal`.
15
+ `--host` remote resolves and `export`/`get` are unchanged. Source:
16
+ `apps/cli/src/commands/secrets.ts`.
17
+
3
18
  ## 1.22.20
4
19
 
5
20
  - **Claude sessions are attributed to the account that produced them.** The session
package/dist/bin/agents CHANGED
Binary file
@@ -2307,7 +2307,13 @@ Examples:
2307
2307
  caller: `command ${cmd}`,
2308
2308
  keys: keysSubset,
2309
2309
  allowExpired: execOpts.allowExpired,
2310
- agentOnly: true,
2310
+ // An explicit `secrets exec` at a real terminal is a deliberate use of
2311
+ // the values: an unlocked bundle runs silently, a locked one resolves
2312
+ // with one Touch ID sheet, then the command runs with the secrets
2313
+ // injected. Under an agent (AGENTS_RUNTIME) or headless (no TTY) it
2314
+ // stays broker-only and points at the explicit unlock command instead
2315
+ // of raising a sheet — so release/CI scripts never prompt.
2316
+ agentOnly: isHeadlessSecretsContext() || !isInteractiveTerminal(),
2311
2317
  }).env;
2312
2318
  }
2313
2319
  const { spawn } = await import('child_process');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.22.20",
3
+ "version": "1.22.21",
4
4
  "description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",