@phnx-labs/agents-cli 1.22.101 → 1.22.103

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/bootstrap.js +15 -0
  3. package/dist/commands/accounts.js +1 -1
  4. package/dist/commands/menubar.js +4 -1
  5. package/dist/commands/ssh.js +12 -4
  6. package/dist/commands/view.d.ts +0 -2
  7. package/dist/commands/view.js +9 -28
  8. package/dist/lib/account-catalog.d.ts +24 -0
  9. package/dist/lib/account-catalog.js +45 -15
  10. package/dist/lib/accounting/usage.d.ts +7 -0
  11. package/dist/lib/accounting/usage.js +25 -0
  12. package/dist/lib/auth-health.d.ts +17 -4
  13. package/dist/lib/auth-health.js +60 -22
  14. package/dist/lib/auto-pull-worker.js +38 -1
  15. package/dist/lib/devices/harness-inventory.d.ts +4 -0
  16. package/dist/lib/devices/harness-inventory.js +3 -1
  17. package/dist/lib/feed/pr-status.d.ts +18 -0
  18. package/dist/lib/feed/pr-status.js +43 -5
  19. package/dist/lib/feed/watch.d.ts +4 -1
  20. package/dist/lib/feed/watch.js +57 -25
  21. package/dist/lib/helper-versions.js +1 -1
  22. package/dist/lib/menubar/install-menubar.d.ts +85 -0
  23. package/dist/lib/menubar/install-menubar.js +171 -6
  24. package/dist/lib/menubar/resolve-version.d.ts +82 -0
  25. package/dist/lib/menubar/resolve-version.js +133 -0
  26. package/dist/lib/profiles.js +13 -2
  27. package/dist/lib/secrets-client.d.ts +20 -0
  28. package/dist/lib/secrets-client.js +42 -19
  29. package/dist/lib/self-heal/checks/menubar-helper.d.ts +2 -0
  30. package/dist/lib/self-heal/checks/menubar-helper.js +21 -0
  31. package/dist/lib/self-heal/registry.js +3 -0
  32. package/dist/lib/self-heal/types.d.ts +1 -1
  33. package/dist/lib/session/active.d.ts +1 -1
  34. package/dist/lib/session/active.js +7 -0
  35. package/dist/lib/session/state.d.ts +7 -0
  36. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export type HealCheckId = 'resources' | 'hook-runtime' | 'hook-manifest' | 'shims' | 'shadowing' | 'path' | 'install-staging';
1
+ export type HealCheckId = 'resources' | 'hook-runtime' | 'hook-manifest' | 'shims' | 'shadowing' | 'path' | 'install-staging' | 'menubar-helper';
2
2
  /** When the daemon schedules a check. */
3
3
  export type HealCadence = 'startup' | 'frequent' | 'periodic';
4
4
  export interface HealCtx {
@@ -55,7 +55,7 @@ export declare function attributedSetLostPids(prev: Set<number>, next: Set<numbe
55
55
  export declare function filterCachedUnattributed(sessions: ActiveSession[], attributed: Set<number>, alive: (pid: number, startedAtMs?: number) => boolean): ActiveSession[];
56
56
  type ActiveContext = 'terminal' | 'teams' | 'cloud' | 'headless';
57
57
  /** The SessionMeta fields the live-row backfill reads — the enrichment a running process cannot report. */
58
- export type BackfillMeta = Pick<SessionMeta, 'version' | 'account' | 'timestamp' | 'label' | 'firstUserMessage' | 'lastUserMessage' | 'ticketId' | 'prUrl' | 'prNumber' | 'origin' | 'routineName' | 'harness' | 'tokenCount' | 'durationMs' | 'subAgentCount'>;
58
+ export type BackfillMeta = Pick<SessionMeta, 'version' | 'account' | 'timestamp' | 'label' | 'firstUserMessage' | 'lastUserMessage' | 'ticketId' | 'prUrl' | 'prNumber' | 'origin' | 'routineName' | 'harness' | 'tokenCount' | 'durationMs' | 'subAgentCount' | 'lastActivity'>;
59
59
  export declare function backfillActiveRowsFromMeta(sessions: ActiveSession[], metaById: Map<string, BackfillMeta>): void;
60
60
  export declare function backfillActiveRowsFromIndex(sessions: ActiveSession[]): void;
61
61
  export declare function isRunningLiveSession(s: ActiveSession): boolean;
@@ -174,6 +174,13 @@ export function backfillActiveRowsFromMeta(sessions, metaById) {
174
174
  s.durationMs = m.durationMs;
175
175
  if (s.subAgentCount == null && m.subAgentCount != null)
176
176
  s.subAgentCount = m.subAgentCount;
177
+ // A pane kept open for days has a start time but no activity signal of its
178
+ // own; the index's last transcript write is what "idle 14d" is read from.
179
+ if (s.lastActivityMs == null && m.lastActivity) {
180
+ const ts = Date.parse(m.lastActivity);
181
+ if (!Number.isNaN(ts))
182
+ s.lastActivityMs = ts;
183
+ }
177
184
  }
178
185
  }
179
186
  function loadBackfillMetaFor(sessions) {
@@ -56,6 +56,13 @@ export interface StructuredQuestion {
56
56
  export interface DetectedPr {
57
57
  url: string;
58
58
  number?: number;
59
+ /** `gh pr view` status, attached by the feed watch when it has fetched it. */
60
+ state?: string;
61
+ isDraft?: boolean;
62
+ reviewDecision?: string;
63
+ mergeable?: string;
64
+ /** The check rollup folded to one verdict. */
65
+ checks?: 'passing' | 'failing' | 'pending';
59
66
  }
60
67
  export interface DetectedWorktree {
61
68
  /** Absolute worktree path (the session cwd). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.22.101",
3
+ "version": "1.22.103",
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",