@phnx-labs/agents-cli 1.20.44 → 1.20.46

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 (47) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/commands/exec.js +54 -11
  3. package/dist/commands/secrets.d.ts +18 -0
  4. package/dist/commands/secrets.js +105 -30
  5. package/dist/commands/teams.js +61 -3
  6. package/dist/index.js +14 -119
  7. package/dist/lib/daemon.js +9 -6
  8. package/dist/lib/hosts/dispatch.d.ts +29 -0
  9. package/dist/lib/hosts/dispatch.js +46 -1
  10. package/dist/lib/hosts/remote-cmd.d.ts +17 -0
  11. package/dist/lib/hosts/remote-cmd.js +27 -0
  12. package/dist/lib/hosts/session-index.d.ts +15 -0
  13. package/dist/lib/hosts/session-index.js +28 -2
  14. package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
  15. package/dist/lib/rotate.d.ts +33 -0
  16. package/dist/lib/rotate.js +37 -0
  17. package/dist/lib/secrets/remote.d.ts +14 -0
  18. package/dist/lib/secrets/remote.js +18 -1
  19. package/dist/lib/self-heal/checks/path.d.ts +2 -0
  20. package/dist/lib/self-heal/checks/path.js +30 -0
  21. package/dist/lib/self-heal/checks/resources.d.ts +2 -0
  22. package/dist/lib/self-heal/checks/resources.js +36 -0
  23. package/dist/lib/self-heal/checks/shadowing.d.ts +2 -0
  24. package/dist/lib/self-heal/checks/shadowing.js +48 -0
  25. package/dist/lib/self-heal/checks/shims.d.ts +2 -0
  26. package/dist/lib/self-heal/checks/shims.js +35 -0
  27. package/dist/lib/self-heal/registry.d.ts +22 -0
  28. package/dist/lib/self-heal/registry.js +66 -0
  29. package/dist/lib/self-heal/types.d.ts +41 -0
  30. package/dist/lib/self-heal/types.js +21 -0
  31. package/dist/lib/session/active.d.ts +4 -0
  32. package/dist/lib/session/active.js +2 -0
  33. package/dist/lib/session/db.d.ts +16 -9
  34. package/dist/lib/session/db.js +66 -44
  35. package/dist/lib/session/discover.d.ts +4 -0
  36. package/dist/lib/session/discover.js +84 -13
  37. package/dist/lib/session/run-names.d.ts +9 -7
  38. package/dist/lib/session/run-names.js +9 -7
  39. package/dist/lib/session/state.d.ts +29 -3
  40. package/dist/lib/session/state.js +84 -5
  41. package/dist/lib/session/types.d.ts +19 -8
  42. package/dist/lib/shim-heal.d.ts +23 -0
  43. package/dist/lib/shim-heal.js +109 -0
  44. package/dist/lib/shims.d.ts +6 -0
  45. package/dist/lib/shims.js +1 -1
  46. package/dist/lib/teams/agents.js +9 -0
  47. package/package.json +1 -1
@@ -22,6 +22,7 @@ import { getAgentsDir as getSystemAgentsDir, getShimsDir } from '../state.js';
22
22
  import { AGENTS, getAccountInfo } from '../agents.js';
23
23
  import { resolveVersion, isVersionInstalled } from '../versions.js';
24
24
  import { sanitizeProcessEnv } from '../secrets/bundles.js';
25
+ import { recordRunName } from '../session/run-names.js';
25
26
  let lastMemoryWarnAt = 0;
26
27
  // On macOS, os.freemem() returns only the truly-free pool and ignores the
27
28
  // large inactive+purgeable cache the kernel will reclaim under pressure, so
@@ -1067,6 +1068,14 @@ export class AgentManager {
1067
1068
  throw new Error(`Failed to create agent directory: ${err.message}`);
1068
1069
  }
1069
1070
  this.agents.set(agentId, agent);
1071
+ // Seed the teammate's session label with its friendly team name, so the run
1072
+ // shows up as `<name>` in `agents sessions` and resolves by it — consistent
1073
+ // with `agents run --name`. For Claude the agent id IS the session id (passed
1074
+ // via --session-id in buildCommand); other agents don't expose a launch-time
1075
+ // id, so they're seeded once discovery captures one. Best-effort.
1076
+ if (agentType === 'claude' && name && !isCloudBacked) {
1077
+ recordRunName({ sessionId: agentId, name, agent: agentType, cwd: resolvedCwd ?? undefined });
1078
+ }
1070
1079
  if (isStaged) {
1071
1080
  await agent.saveMeta();
1072
1081
  debug(`Staged ${agentType} teammate '${name}' in team '${taskName}' (after: ${cleanAfter.join(', ')})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.20.44",
3
+ "version": "1.20.46",
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",