@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.
- package/CHANGELOG.md +12 -1
- package/dist/commands/exec.js +54 -11
- package/dist/commands/secrets.d.ts +18 -0
- package/dist/commands/secrets.js +105 -30
- package/dist/commands/teams.js +61 -3
- package/dist/index.js +14 -119
- package/dist/lib/daemon.js +9 -6
- package/dist/lib/hosts/dispatch.d.ts +29 -0
- package/dist/lib/hosts/dispatch.js +46 -1
- package/dist/lib/hosts/remote-cmd.d.ts +17 -0
- package/dist/lib/hosts/remote-cmd.js +27 -0
- package/dist/lib/hosts/session-index.d.ts +15 -0
- package/dist/lib/hosts/session-index.js +28 -2
- package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
- package/dist/lib/rotate.d.ts +33 -0
- package/dist/lib/rotate.js +37 -0
- package/dist/lib/secrets/remote.d.ts +14 -0
- package/dist/lib/secrets/remote.js +18 -1
- package/dist/lib/self-heal/checks/path.d.ts +2 -0
- package/dist/lib/self-heal/checks/path.js +30 -0
- package/dist/lib/self-heal/checks/resources.d.ts +2 -0
- package/dist/lib/self-heal/checks/resources.js +36 -0
- package/dist/lib/self-heal/checks/shadowing.d.ts +2 -0
- package/dist/lib/self-heal/checks/shadowing.js +48 -0
- package/dist/lib/self-heal/checks/shims.d.ts +2 -0
- package/dist/lib/self-heal/checks/shims.js +35 -0
- package/dist/lib/self-heal/registry.d.ts +22 -0
- package/dist/lib/self-heal/registry.js +66 -0
- package/dist/lib/self-heal/types.d.ts +41 -0
- package/dist/lib/self-heal/types.js +21 -0
- package/dist/lib/session/active.d.ts +4 -0
- package/dist/lib/session/active.js +2 -0
- package/dist/lib/session/db.d.ts +16 -9
- package/dist/lib/session/db.js +66 -44
- package/dist/lib/session/discover.d.ts +4 -0
- package/dist/lib/session/discover.js +84 -13
- package/dist/lib/session/run-names.d.ts +9 -7
- package/dist/lib/session/run-names.js +9 -7
- package/dist/lib/session/state.d.ts +29 -3
- package/dist/lib/session/state.js +84 -5
- package/dist/lib/session/types.d.ts +19 -8
- package/dist/lib/shim-heal.d.ts +23 -0
- package/dist/lib/shim-heal.js +109 -0
- package/dist/lib/shims.d.ts +6 -0
- package/dist/lib/shims.js +1 -1
- package/dist/lib/teams/agents.js +9 -0
- package/package.json +1 -1
package/dist/lib/teams/agents.js
CHANGED
|
@@ -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.
|
|
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",
|