@clipboard-health/groundcrew 4.43.2 → 4.44.0
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/dist/lib/agentLaunch.d.ts.map +1 -1
- package/dist/lib/agentLaunch.js +12 -1
- package/dist/lib/cmuxAdapter.d.ts.map +1 -1
- package/dist/lib/cmuxAdapter.js +26 -4
- package/dist/lib/cmuxAgentHooks.d.ts +30 -0
- package/dist/lib/cmuxAgentHooks.d.ts.map +1 -0
- package/dist/lib/cmuxAgentHooks.js +35 -0
- package/dist/lib/launchCommand.d.ts +6 -0
- package/dist/lib/launchCommand.d.ts.map +1 -1
- package/dist/lib/launchCommand.js +3 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentLaunch.d.ts","sourceRoot":"","sources":["../../src/lib/agentLaunch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agentLaunch.d.ts","sourceRoot":"","sources":["../../src/lib/agentLaunch.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,oBAAoB,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,eAAe,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,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resolveSafehouseCmuxIntegration, safehouseCmuxIntegrationWarningLines, } from "@clipboard-health/clearance";
|
|
2
2
|
import { clearanceAllowHostsFilesFromEnvironment } from "./clearanceAllowlist.js";
|
|
3
|
+
import { cmuxAgentHookSettingsJson } from "./cmuxAgentHooks.js";
|
|
4
|
+
import { shellSingleQuote } from "./shell.js";
|
|
3
5
|
import { hasPreLaunchEnv, } from "./config.js";
|
|
4
6
|
import { detectHostCapabilities } from "./host.js";
|
|
5
7
|
import { buildLaunchCommand, inferAgentCommandName, } from "./launchCommand.js";
|
|
@@ -72,7 +74,8 @@ function safehouseAgentIntegrationFor(workspaceKind, definition) {
|
|
|
72
74
|
if (workspaceKind !== "cmux") {
|
|
73
75
|
return undefined;
|
|
74
76
|
}
|
|
75
|
-
const
|
|
77
|
+
const agentCommandName = inferAgentCommandName(definition.cmd);
|
|
78
|
+
const isClaudeAgent = agentCommandName === "claude";
|
|
76
79
|
const cmuxIntegration = resolveSafehouseCmuxIntegration();
|
|
77
80
|
if (isClaudeAgent) {
|
|
78
81
|
warnOnCmuxIntegrationDrift({ unreviewedEnvNames: cmuxIntegration.unreviewedEnvNames });
|
|
@@ -81,6 +84,14 @@ function safehouseAgentIntegrationFor(workspaceKind, definition) {
|
|
|
81
84
|
addDirsReadOnly: cmuxIntegration.addDirsReadOnly,
|
|
82
85
|
envPass: cmuxIntegration.envPass,
|
|
83
86
|
commandPreludes: isClaudeAgent ? [cmuxIntegration.claudeCommandPrelude] : [],
|
|
87
|
+
...(isClaudeAgent
|
|
88
|
+
? {
|
|
89
|
+
agentArgs: [
|
|
90
|
+
"--settings",
|
|
91
|
+
shellSingleQuote(cmuxAgentHookSettingsJson({ agent: agentCommandName })),
|
|
92
|
+
],
|
|
93
|
+
}
|
|
94
|
+
: {}),
|
|
84
95
|
};
|
|
85
96
|
}
|
|
86
97
|
function warnOnCmuxIntegrationDrift(input) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmuxAdapter.d.ts","sourceRoot":"","sources":["../../src/lib/cmuxAdapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,OAAO,EAIb,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"cmuxAdapter.d.ts","sourceRoot":"","sources":["../../src/lib/cmuxAdapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,OAAO,EAIb,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,WAAW,EAAE,OA+EzB,CAAC"}
|
package/dist/lib/cmuxAdapter.js
CHANGED
|
@@ -16,6 +16,8 @@ export const cmuxAdapter = {
|
|
|
16
16
|
spec.cwd,
|
|
17
17
|
"--command",
|
|
18
18
|
spec.command,
|
|
19
|
+
"--description",
|
|
20
|
+
cmuxDescriptionFor(spec.name),
|
|
19
21
|
], signal);
|
|
20
22
|
const workspaceId = extractCmuxOpenId(output);
|
|
21
23
|
if (workspaceId === undefined) {
|
|
@@ -38,7 +40,7 @@ export const cmuxAdapter = {
|
|
|
38
40
|
},
|
|
39
41
|
async list(signal) {
|
|
40
42
|
const raw = await listCmuxRaw(signal);
|
|
41
|
-
return raw?.map((ws) => ({ name: ws
|
|
43
|
+
return raw?.map((ws) => ({ name: cmuxTaskId(ws) }));
|
|
42
44
|
},
|
|
43
45
|
async close(name, signal) {
|
|
44
46
|
const raw = await listCmuxRaw(signal);
|
|
@@ -49,7 +51,7 @@ export const cmuxAdapter = {
|
|
|
49
51
|
debug(`cmux close-workspace skipped for ${name}: list-workspaces failed, no usable id`);
|
|
50
52
|
return { kind: "unavailable" };
|
|
51
53
|
}
|
|
52
|
-
const match = raw.find((ws) => ws
|
|
54
|
+
const match = raw.find((ws) => cmuxTaskId(ws) === name);
|
|
53
55
|
if (match === undefined) {
|
|
54
56
|
return { kind: "missing" };
|
|
55
57
|
}
|
|
@@ -65,7 +67,7 @@ export const cmuxAdapter = {
|
|
|
65
67
|
if (remaining === undefined) {
|
|
66
68
|
return { kind: "unavailable", error };
|
|
67
69
|
}
|
|
68
|
-
const isStillPresent = remaining.some((ws) => ws
|
|
70
|
+
const isStillPresent = remaining.some((ws) => cmuxTaskId(ws) === name);
|
|
69
71
|
if (!isStillPresent) {
|
|
70
72
|
return { kind: "closed" };
|
|
71
73
|
}
|
|
@@ -79,6 +81,26 @@ export const cmuxAdapter = {
|
|
|
79
81
|
return undefined;
|
|
80
82
|
},
|
|
81
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* Stable per-workspace task-id marker stamped into cmux's `description` at
|
|
86
|
+
* creation. Identity keys on this, not the title — a user renaming a panel
|
|
87
|
+
* must not make crew lose track of the workspace. cmux exposes no
|
|
88
|
+
* set-description RPC (settable only at creation), so legacy workspaces carry
|
|
89
|
+
* `description: null`; `cmuxTaskId` falls back to the title for those.
|
|
90
|
+
*/
|
|
91
|
+
const CMUX_DESCRIPTION_MARKER_PREFIX = "groundcrew:";
|
|
92
|
+
function cmuxDescriptionFor(taskId) {
|
|
93
|
+
return `${CMUX_DESCRIPTION_MARKER_PREFIX}${taskId}`;
|
|
94
|
+
}
|
|
95
|
+
function cmuxTaskId(ws) {
|
|
96
|
+
if (ws.description !== null && ws.description.startsWith(CMUX_DESCRIPTION_MARKER_PREFIX)) {
|
|
97
|
+
const marked = ws.description.slice(CMUX_DESCRIPTION_MARKER_PREFIX.length);
|
|
98
|
+
if (marked.length > 0) {
|
|
99
|
+
return marked;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return ws.title;
|
|
103
|
+
}
|
|
82
104
|
function parseCmuxList(output) {
|
|
83
105
|
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- cmux --json list-workspaces always emits this shape
|
|
84
106
|
const parsed = JSON.parse(output);
|
|
@@ -93,7 +115,7 @@ function parseCmuxList(output) {
|
|
|
93
115
|
debug(`cmux list-workspaces returned workspace "${ws.title}" without a usable id or ref; skipping`);
|
|
94
116
|
continue;
|
|
95
117
|
}
|
|
96
|
-
items.push({ title: ws.title, id });
|
|
118
|
+
items.push({ title: ws.title, id, description: ws.description ?? null });
|
|
97
119
|
}
|
|
98
120
|
return items;
|
|
99
121
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface CmuxAgentHookCommand {
|
|
2
|
+
type: "command";
|
|
3
|
+
command: string;
|
|
4
|
+
}
|
|
5
|
+
interface CmuxAgentHookGroup {
|
|
6
|
+
hooks: readonly CmuxAgentHookCommand[];
|
|
7
|
+
}
|
|
8
|
+
export interface CmuxAgentHookSettings {
|
|
9
|
+
hooks: Record<string, readonly CmuxAgentHookGroup[]>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Claude Code hook settings that report the agent's own lifecycle to the cmux
|
|
13
|
+
* sidebar. Passed to the agent as `--settings <json>` (Layer A of the live
|
|
14
|
+
* activity bridge), so the panel reflects what the agent is doing within a
|
|
15
|
+
* session rather than the single coarse milestone the orchestrator can paint.
|
|
16
|
+
*
|
|
17
|
+
* Each hook calls `cmux set-progress` against `$CMUX_WORKSPACE_ID` — present in
|
|
18
|
+
* the safehouse cmux env-pass allowlist, so the call reaches cmux from inside
|
|
19
|
+
* the sandbox and resolves identity by id rather than the brittle title match.
|
|
20
|
+
* The call is guarded and best-effort: a missing workspace id or a cmux failure
|
|
21
|
+
* is swallowed so a hook never breaks the agent.
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildCmuxAgentHookSettings(input: {
|
|
24
|
+
agent: string;
|
|
25
|
+
}): CmuxAgentHookSettings;
|
|
26
|
+
export declare function cmuxAgentHookSettingsJson(input: {
|
|
27
|
+
agent: string;
|
|
28
|
+
}): string;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=cmuxAgentHooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmuxAgentHooks.d.ts","sourceRoot":"","sources":["../../src/lib/cmuxAgentHooks.ts"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAgB1F;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAE1E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { shellSingleQuote } from "./shell.js";
|
|
2
|
+
/**
|
|
3
|
+
* Claude Code hook settings that report the agent's own lifecycle to the cmux
|
|
4
|
+
* sidebar. Passed to the agent as `--settings <json>` (Layer A of the live
|
|
5
|
+
* activity bridge), so the panel reflects what the agent is doing within a
|
|
6
|
+
* session rather than the single coarse milestone the orchestrator can paint.
|
|
7
|
+
*
|
|
8
|
+
* Each hook calls `cmux set-progress` against `$CMUX_WORKSPACE_ID` — present in
|
|
9
|
+
* the safehouse cmux env-pass allowlist, so the call reaches cmux from inside
|
|
10
|
+
* the sandbox and resolves identity by id rather than the brittle title match.
|
|
11
|
+
* The call is guarded and best-effort: a missing workspace id or a cmux failure
|
|
12
|
+
* is swallowed so a hook never breaks the agent.
|
|
13
|
+
*/
|
|
14
|
+
export function buildCmuxAgentHookSettings(input) {
|
|
15
|
+
const { agent } = input;
|
|
16
|
+
const phases = [
|
|
17
|
+
{ event: "SessionStart", value: 0.05, label: `running · ${agent}` },
|
|
18
|
+
{ event: "UserPromptSubmit", value: 0.5, label: "working" },
|
|
19
|
+
{ event: "Notification", value: 0.5, label: "needs input" },
|
|
20
|
+
{ event: "Stop", value: 0.9, label: "idle" },
|
|
21
|
+
{ event: "SessionEnd", value: 1, label: "done" },
|
|
22
|
+
];
|
|
23
|
+
const hooks = {};
|
|
24
|
+
for (const phase of phases) {
|
|
25
|
+
hooks[phase.event] = [{ hooks: [{ type: "command", command: setProgressCommand(phase) }] }];
|
|
26
|
+
}
|
|
27
|
+
return { hooks };
|
|
28
|
+
}
|
|
29
|
+
export function cmuxAgentHookSettingsJson(input) {
|
|
30
|
+
return JSON.stringify(buildCmuxAgentHookSettings(input));
|
|
31
|
+
}
|
|
32
|
+
function setProgressCommand(phase) {
|
|
33
|
+
const setProgress = `"\${CMUX_BUNDLED_CLI_PATH:-cmux}" set-progress ${phase.value} --label ${shellSingleQuote(phase.label)} --workspace "$CMUX_WORKSPACE_ID" >/dev/null 2>&1 || true`;
|
|
34
|
+
return `if [ -n "$CMUX_WORKSPACE_ID" ]; then ${setProgress}; fi`;
|
|
35
|
+
}
|
|
@@ -49,6 +49,12 @@ export interface SafehouseAgentIntegration {
|
|
|
49
49
|
addDirsReadOnly: readonly string[];
|
|
50
50
|
envPass: readonly string[];
|
|
51
51
|
commandPreludes: readonly string[];
|
|
52
|
+
/**
|
|
53
|
+
* Extra, already-shell-safe argv tokens appended to the agent invocation
|
|
54
|
+
* before the prompt positional (e.g. `--settings <quoted-json>` to inject
|
|
55
|
+
* cmux activity-reporting hooks for a Claude agent).
|
|
56
|
+
*/
|
|
57
|
+
agentArgs?: readonly string[];
|
|
52
58
|
}
|
|
53
59
|
interface LaunchCommandArguments {
|
|
54
60
|
definition: AgentDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launchCommand.d.ts","sourceRoot":"","sources":["../../src/lib/launchCommand.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9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;OAKG;IACH,yBAAyB,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAClE;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,GAAG,MAAM,CAkC7E"}
|
|
@@ -159,8 +159,10 @@ function renderPrepareAndAgentCommand(arguments_) {
|
|
|
159
159
|
worktreeDir: arguments_.worktreeDir,
|
|
160
160
|
sandboxName: arguments_.sandboxName ?? "",
|
|
161
161
|
});
|
|
162
|
+
const agentArgs = arguments_.safehouseAgentIntegration?.agentArgs ?? [];
|
|
163
|
+
const agentInvocation = agentArgs.length === 0 ? agentCmd : `${agentCmd} ${agentArgs.join(" ")}`;
|
|
162
164
|
return {
|
|
163
|
-
agentCommand: `exec ${
|
|
165
|
+
agentCommand: `exec ${agentInvocation} "$@"`,
|
|
164
166
|
prepareWorktreeCommand: arguments_.prepareWorktreeCommand === undefined
|
|
165
167
|
? undefined
|
|
166
168
|
: prepareWorktreeWithStatusReporting(arguments_.prepareWorktreeCommand),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/groundcrew",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.44.0",
|
|
4
4
|
"description": "Linear-driven orchestrator that launches AI coding agents in git worktrees, with workspace lifecycle and usage tracking.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@tsconfig/node24": "24.0.4",
|
|
84
84
|
"@tsconfig/strictest": "2.0.8",
|
|
85
85
|
"@types/node": "25.9.3",
|
|
86
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
86
|
+
"@typescript/native-preview": "7.0.0-dev.20260614.1",
|
|
87
87
|
"@vitest/coverage-v8": "4.1.8",
|
|
88
88
|
"cspell": "10.0.1",
|
|
89
89
|
"dependency-cruiser": "17.4.3",
|