@phnx-labs/agents-cli 1.20.11 → 1.20.12

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ **`agents upgrade` now refreshes the macOS Keychain helper**
6
+
7
+ - Upgrading runs `npm install -g … --ignore-scripts`, so the postinstall that installs the signed Keychain helper never fired — a user upgrading away from a broken build (e.g. the entitlement-less 1.20.4 helper that failed `SecItemAdd` with `errSecMissingEntitlement -34018`) kept the broken helper until the lazy staleness check in `getKeychainHelperPath()` happened to repair it on their next secret operation. `installResolvedPackage` now force-refreshes the helper (`ensureKeychainHelperInstalled({ forceReinstall: true })`) on darwin after the install, so both the explicit `agents upgrade` and the auto-update prompt land the fixed helper immediately. Best-effort and non-fatal: an upgrade never fails because the helper could not be reinstalled, and `agents helper install --force` remains the manual path.
8
+
5
9
  **`agents inspect <repo>` summary now shows what's actually inside, not just counts**
6
10
 
7
11
  - The bare repo summary gained four enrichments so it reads as an inventory instead of a tally: (1) **resource name previews** — each kind lists its first few names with a `…(+N)` tail; (2) **manifest summary** — `agents.yaml` is parsed for its `run.<agent>.strategy` and any `agents.<agent>` version pins, shown under `manifests` instead of just the filename; (3) **git detail** — last commit (sha, subject, relative time), ahead/behind upstream when non-zero, and the names of dirty files; (4) **size + file counts** — total repo size and a per-kind byte size. `--json` carries all of it (`git.lastCommit`, `git.ahead/behind`, `manifest`, `size`, and per-kind `{count, bytes, files, names}`); `--brief` still skips resources and size.
package/dist/index.js CHANGED
@@ -348,6 +348,24 @@ async function installResolvedPackage(metadata) {
348
348
  await installPackageIntoPrefix(`${NPM_PACKAGE_NAME}@${metadata.version}`, prefix);
349
349
  verifyInstalledVersion(packageRoot, metadata.version);
350
350
  refreshAliasShims(packageRoot);
351
+ // The npm install above runs with --ignore-scripts, so the postinstall that
352
+ // installs the macOS Keychain helper never fires on upgrade. Force-refresh the
353
+ // helper here so a user upgrading FROM a broken build (e.g. the entitlement-less
354
+ // 1.20.4 helper that fails SecItemAdd with -34018) gets the fixed, signed bundle
355
+ // immediately — instead of waiting for the lazy staleness check in
356
+ // getKeychainHelperPath() to repair it on their next secret operation. The new
357
+ // package is already on disk, so the dynamic import resolves the freshly-installed
358
+ // helper module + bundle. Best-effort: an upgrade must never fail because the
359
+ // helper could not be reinstalled (`agents helper install --force` stays available).
360
+ if (process.platform === 'darwin') {
361
+ try {
362
+ const { ensureKeychainHelperInstalled } = await import('./lib/secrets/install-helper.js');
363
+ ensureKeychainHelperInstalled({ forceReinstall: true });
364
+ }
365
+ catch {
366
+ // Non-fatal.
367
+ }
368
+ }
351
369
  }
352
370
  /** Present an interactive upgrade prompt (TTY) or a one-line hint (non-TTY). */
353
371
  async function promptUpgrade(latestVersion) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.20.11",
3
+ "version": "1.20.12",
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",