@cotal-ai/cmux 0.150.0 → 0.151.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/README.md +2 -3
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts +12 -15
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +9 -36
- package/dist/runtime.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# @cotal-ai/cmux
|
|
2
2
|
|
|
3
3
|
The cmux integration: a thin driver over the cmux CLI (open/close a tab, send keys) plus a
|
|
4
|
-
self-registering `cmux` `Runtime`
|
|
5
|
-
|
|
6
|
-
depending on this package.
|
|
4
|
+
self-registering `cmux` `Runtime` provider. Importing it registers the runtime with the core
|
|
5
|
+
`Registry`, so the manager can spawn agents into cmux tabs without depending on this package.
|
|
7
6
|
|
|
8
7
|
**Tier:** `extensions/`. Peer-depends [`@cotal-ai/core`](../../packages/core); self-registers on
|
|
9
8
|
import.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/** @cotal-ai/cmux — the cmux integration: a thin driver over the cmux CLI plus
|
|
2
|
-
* self-registering `cmux` Runtime
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* package. The driver itself stays mesh-free; launch scripts import `./driver.js`
|
|
1
|
+
/** @cotal-ai/cmux — the cmux integration: a thin driver over the cmux CLI plus a
|
|
2
|
+
* self-registering `cmux` Runtime provider. Importing the package registers it with the core
|
|
3
|
+
* Registry (like a connector), so the manager can spawn into cmux tabs without depending on
|
|
4
|
+
* this package. The driver itself stays mesh-free; launch scripts import `./driver.js`
|
|
6
5
|
* directly to avoid the registration side effect. */
|
|
7
6
|
export * as cmux from "./driver.js";
|
|
8
|
-
export { CmuxRuntime, cmuxRuntimeProvider
|
|
7
|
+
export { CmuxRuntime, cmuxRuntimeProvider } from "./runtime.js";
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;sDAIsD;AACtD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/** @cotal-ai/cmux — the cmux integration: a thin driver over the cmux CLI plus
|
|
2
|
-
* self-registering `cmux` Runtime
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* package. The driver itself stays mesh-free; launch scripts import `./driver.js`
|
|
1
|
+
/** @cotal-ai/cmux — the cmux integration: a thin driver over the cmux CLI plus a
|
|
2
|
+
* self-registering `cmux` Runtime provider. Importing the package registers it with the core
|
|
3
|
+
* Registry (like a connector), so the manager can spawn into cmux tabs without depending on
|
|
4
|
+
* this package. The driver itself stays mesh-free; launch scripts import `./driver.js`
|
|
6
5
|
* directly to avoid the registration side effect. */
|
|
7
6
|
export * as cmux from "./driver.js";
|
|
8
|
-
// importing registers the cmux runtime
|
|
9
|
-
export { CmuxRuntime, cmuxRuntimeProvider
|
|
7
|
+
// importing registers the cmux runtime provider
|
|
8
|
+
export { CmuxRuntime, cmuxRuntimeProvider } from "./runtime.js";
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;sDAIsD;AACtD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,gDAAgD;AAChD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { type AgentHandle, type LaunchSpec, type
|
|
1
|
+
import { type AgentHandle, type LaunchSpec, type Runtime, type RuntimeProvider } from "@cotal-ai/core";
|
|
2
2
|
/** cmux can't run a command in a fresh surface directly, and panes start under a login shell
|
|
3
|
-
* (maybe nushell) before bash — so we write
|
|
4
|
-
* the tab at it, sidestepping all shell quoting (callers pass argv, never shell strings).
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
* (maybe nushell) before bash — so we write the pane's launch as a temp bash script and point
|
|
4
|
+
* the tab at it, sidestepping all shell quoting (callers pass argv, never shell strings).
|
|
5
|
+
* `exec env -i …` (not `exec …`): exec can't take KEY=val assignments, so `env` applies them and
|
|
6
|
+
* then execs the command, and `-i` makes the pane inherit ONLY the connector-declared env, not the
|
|
7
|
+
* cmux server's (P3 — the operator's unrelated secrets don't reach a spawned agent). */
|
|
8
|
+
export declare function paneCommand(pane: {
|
|
9
|
+
command: string;
|
|
10
|
+
args?: string[];
|
|
11
|
+
cwd?: string;
|
|
12
|
+
env?: Record<string, string>;
|
|
13
|
+
}): {
|
|
11
14
|
command: string;
|
|
12
15
|
dir: string;
|
|
13
16
|
};
|
|
@@ -28,10 +31,4 @@ export declare class CmuxRuntime implements Runtime {
|
|
|
28
31
|
/** Self-registering runtime provider — `import "@cotal-ai/cmux"` makes the manager's
|
|
29
32
|
* `cmux` runtime available, without the manager depending on this package. */
|
|
30
33
|
export declare const cmuxRuntimeProvider: RuntimeProvider;
|
|
31
|
-
/** Self-registering terminal-layout provider — lets a caller (e.g. `cotal setup`) open/close
|
|
32
|
-
* cmux tabs by resolving `registry.resolve("terminal","cmux")`, so an implementation drives cmux
|
|
33
|
-
* without importing this package. The caller passes a backend-agnostic {@link Tab};
|
|
34
|
-
* {@link cmuxLayout} turns it into cmux's native layout JSON here, so no cmux-specific shape lives
|
|
35
|
-
* in the caller. */
|
|
36
|
-
export declare const cmuxTerminalProvider: TerminalLayout;
|
|
37
34
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EAEhB,KAAK,UAAU,EACf,KAAK,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EAEhB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,eAAe,EAErB,MAAM,gBAAgB,CAAC;AAaxB;;;;;yFAKyF;AACzF,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG;IACnH,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAmBA;AAOD;;;;;;;GAOG;AACH,qBAAa,WAAY,YAAW,OAAO;IACzC,QAAQ,CAAC,IAAI,UAAU;IACvB,QAAQ,CAAC,eAAe,SAAS;IACjC,QAAQ,CAAC,qBAAqB,QAAQ;IAEtC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW;CA2FhE;AAED;+EAC+E;AAC/E,eAAO,MAAM,mBAAmB,EAAE,eAKjC,CAAC"}
|
package/dist/runtime.js
CHANGED
|
@@ -12,14 +12,12 @@ function shellQuote(s) {
|
|
|
12
12
|
return `'${s.replace(/'/g, "'\\''")}'`;
|
|
13
13
|
}
|
|
14
14
|
/** cmux can't run a command in a fresh surface directly, and panes start under a login shell
|
|
15
|
-
* (maybe nushell) before bash — so we write
|
|
16
|
-
* the tab at it, sidestepping all shell quoting (callers pass argv, never shell strings).
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
* operator's unrelated secrets don't reach a spawned agent); setup panes keep the inherited env. */
|
|
22
|
-
export function paneCommand(pane, login, isolate = false) {
|
|
15
|
+
* (maybe nushell) before bash — so we write the pane's launch as a temp bash script and point
|
|
16
|
+
* the tab at it, sidestepping all shell quoting (callers pass argv, never shell strings).
|
|
17
|
+
* `exec env -i …` (not `exec …`): exec can't take KEY=val assignments, so `env` applies them and
|
|
18
|
+
* then execs the command, and `-i` makes the pane inherit ONLY the connector-declared env, not the
|
|
19
|
+
* cmux server's (P3 — the operator's unrelated secrets don't reach a spawned agent). */
|
|
20
|
+
export function paneCommand(pane) {
|
|
23
21
|
const env = Object.entries(pane.env ?? {}).map(([k, v]) => {
|
|
24
22
|
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(k))
|
|
25
23
|
throw new Error(`cmux: refusing to render unsafe env var name ${JSON.stringify(k)}`);
|
|
@@ -34,26 +32,15 @@ export function paneCommand(pane, login, isolate = false) {
|
|
|
34
32
|
// exits instead of running the agent when the removal fails; a caller whose cmux command fails
|
|
35
33
|
// removes `dir` itself, since nothing will run the script.
|
|
36
34
|
const dir = mkdtempSync(join(tmpdir(), "cotal-pane-"));
|
|
37
|
-
const script = `#!/usr/bin/env bash\nrm -rf -- ${shellQuote(dir)} || exit\n${cd}exec env
|
|
35
|
+
const script = `#!/usr/bin/env bash\nrm -rf -- ${shellQuote(dir)} || exit\n${cd}exec env -i ${cmd}\n`;
|
|
38
36
|
const scriptPath = join(dir, "launch.sh");
|
|
39
37
|
writeFileSync(scriptPath, script, { mode: 0o600 });
|
|
40
|
-
return { command: `bash ${
|
|
38
|
+
return { command: `bash ${shellQuote(scriptPath)}`, dir };
|
|
41
39
|
}
|
|
42
40
|
/** A single-terminal pane node in cmux's layout JSON. */
|
|
43
41
|
function surface(command) {
|
|
44
42
|
return { pane: { surfaces: [{ type: "terminal", command }] } };
|
|
45
43
|
}
|
|
46
|
-
/** Translate a backend-agnostic {@link Tab} into a cmux layout JSON string — the one place that
|
|
47
|
-
* knows cmux's layout shape. One pane → a bare terminal; several → a split (`direction` + `split`
|
|
48
|
-
* ratio). These panes run under a login shell. */
|
|
49
|
-
function cmuxLayout(label, tab) {
|
|
50
|
-
const nodes = tab.panes.map((p) => surface(paneCommand(p, true).command));
|
|
51
|
-
if (nodes.length === 1 && !tab.split)
|
|
52
|
-
return JSON.stringify(nodes[0]);
|
|
53
|
-
if (!tab.split)
|
|
54
|
-
throw new Error(`cmux layout "${label}": ${nodes.length} panes need a split (direction + ratio)`);
|
|
55
|
-
return JSON.stringify({ direction: tab.split.direction, split: tab.split.ratio, children: nodes });
|
|
56
|
-
}
|
|
57
44
|
/**
|
|
58
45
|
* Spawns each agent into its own new cmux tab (workspace), so spawned teammates get
|
|
59
46
|
* room instead of crowding the spawner. The launch goes through {@link paneCommand}
|
|
@@ -82,7 +69,7 @@ export class CmuxRuntime {
|
|
|
82
69
|
if ((spec.confirmBefore?.length || spec.confirmReady?.length || spec.confirmBlockers?.length) && spec.confirm === undefined)
|
|
83
70
|
throw new Error("startup choices require a final confirmation prompt");
|
|
84
71
|
watch = spec.confirm === undefined ? undefined : confirmWatch(spec.confirm, spec.confirmBefore, spec.confirmReady, spec.confirmBlockers, spec.confirmNotice);
|
|
85
|
-
launch = paneCommand({ command: spec.command, args: spec.args, env: spec.env, cwd }
|
|
72
|
+
launch = paneCommand({ command: spec.command, args: spec.args, env: spec.env, cwd });
|
|
86
73
|
}
|
|
87
74
|
catch (err) {
|
|
88
75
|
throw new SpawnRefused(err.message);
|
|
@@ -170,18 +157,4 @@ export const cmuxRuntimeProvider = {
|
|
|
170
157
|
create: () => new CmuxRuntime(),
|
|
171
158
|
};
|
|
172
159
|
registry.register(cmuxRuntimeProvider);
|
|
173
|
-
/** Self-registering terminal-layout provider — lets a caller (e.g. `cotal setup`) open/close
|
|
174
|
-
* cmux tabs by resolving `registry.resolve("terminal","cmux")`, so an implementation drives cmux
|
|
175
|
-
* without importing this package. The caller passes a backend-agnostic {@link Tab};
|
|
176
|
-
* {@link cmuxLayout} turns it into cmux's native layout JSON here, so no cmux-specific shape lives
|
|
177
|
-
* in the caller. */
|
|
178
|
-
export const cmuxTerminalProvider = {
|
|
179
|
-
kind: "terminal",
|
|
180
|
-
name: "cmux",
|
|
181
|
-
available: () => cmux.available(),
|
|
182
|
-
open: (label, tab, opts) => cmux.openWorkspace(label, cmuxLayout(label, tab), opts),
|
|
183
|
-
close: (ref) => cmux.closeWorkspace(ref),
|
|
184
|
-
refs: (label) => cmux.workspaceRefs(label),
|
|
185
|
-
};
|
|
186
|
-
registry.register(cmuxTerminalProvider);
|
|
187
160
|
//# sourceMappingURL=runtime.js.map
|
package/dist/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,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AAI,CAAC,SAAS,EAAE;IACjC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE;CAChC,CAAC;AAEF,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/cmux",
|
|
3
|
-
"description": "Cotal cmux integration: a cmux Runtime
|
|
4
|
-
"version": "0.
|
|
3
|
+
"description": "Cotal cmux integration: a cmux Runtime provider for spawning agents into cmux tabs.",
|
|
4
|
+
"version": "0.151.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@cotal-ai/core": "*"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@cotal-ai/core": "0.
|
|
24
|
+
"@cotal-ai/core": "0.151.0",
|
|
25
25
|
"tsx": "^4.22.4"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|