@1agents/acp-service 0.10.12 → 0.11.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/src/catalog.js +13 -3
- package/package.json +4 -4
- package/skills/acp-service/SKILL.md +1 -1
- package/vendor/runtime/README.md +36 -11
- package/vendor/runtime/dist/{agent-registry-DxcyXXqb.js → agent-registry-CsdsVpJb.js} +209 -177
- package/vendor/runtime/dist/agent-registry-CsdsVpJb.js.map +1 -0
- package/vendor/runtime/dist/agent-registry.d.ts +0 -2
- package/vendor/runtime/dist/agent-registry.d.ts.map +1 -1
- package/vendor/runtime/dist/agent-registry.js +1 -1
- package/vendor/runtime/dist/{cli-BKmMxgix.js → cli-B5gQOSDl.js} +33 -14
- package/vendor/runtime/dist/cli-B5gQOSDl.js.map +1 -0
- package/vendor/runtime/dist/cli.d.ts +2 -6
- package/vendor/runtime/dist/cli.d.ts.map +1 -1
- package/vendor/runtime/dist/cli.js +189 -164
- package/vendor/runtime/dist/cli.js.map +1 -1
- package/vendor/runtime/dist/{client-C5zneoBs.d.ts → client-D5y4RXME.d.ts} +4 -12
- package/vendor/runtime/dist/client-D5y4RXME.d.ts.map +1 -0
- package/vendor/runtime/dist/docs-site/CLI.html +19 -21
- package/vendor/runtime/dist/docs-site/VISION.html +3 -2
- package/vendor/runtime/dist/docs-site/agents.html +10 -15
- package/vendor/runtime/dist/docs-site/assets/agents/Apache-2.0.txt +202 -0
- package/vendor/runtime/dist/docs-site/assets/agents/LobeHub-MIT.txt +21 -0
- package/vendor/runtime/dist/docs-site/assets/agents/Mux-AGPL-3.0.txt +661 -0
- package/vendor/runtime/dist/docs-site/assets/agents/README.md +41 -0
- package/vendor/runtime/dist/docs-site/assets/agents/ante.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/antigravity.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/claude.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/codex.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/copilot.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/cursor.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/deepseek-harness.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/devin.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/droid.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/fast-agent.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/fx.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/gemini.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/goose.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/grok-build.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/iflow.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/junie.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/kilocode.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/kimi.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/kiro.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/mcode.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/mux.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/octomind.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/openclaw.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/opencode.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/pi.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/pool.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/qoder.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/qwen.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/trae.png +0 -0
- package/vendor/runtime/dist/docs-site/assets/agents/zeroclaw.png +0 -0
- package/vendor/runtime/dist/docs-site/compare.html +8 -7
- package/vendor/runtime/dist/docs-site/config.html +5 -4
- package/vendor/runtime/dist/docs-site/custom-agents.html +13 -13
- package/vendor/runtime/dist/docs-site/exit-codes.html +4 -3
- package/vendor/runtime/dist/docs-site/flows.html +21 -8
- package/vendor/runtime/dist/docs-site/index.html +7 -6
- package/vendor/runtime/dist/docs-site/install.html +7 -6
- package/vendor/runtime/dist/docs-site/llms.txt +6 -6
- package/vendor/runtime/dist/docs-site/output-formats.html +9 -8
- package/vendor/runtime/dist/docs-site/permissions.html +5 -4
- package/vendor/runtime/dist/docs-site/prompting.html +9 -7
- package/vendor/runtime/dist/docs-site/quickstart.html +5 -4
- package/vendor/runtime/dist/docs-site/releasing.html +9 -8
- package/vendor/runtime/dist/docs-site/runtime-environment.html +28 -5
- package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +13 -7
- package/vendor/runtime/dist/docs-site/safe-errors.html +3 -2
- package/vendor/runtime/dist/docs-site/session-control.html +7 -6
- package/vendor/runtime/dist/docs-site/session-watch.html +6 -5
- package/vendor/runtime/dist/docs-site/sessions.html +13 -10
- package/vendor/runtime/dist/docs-site/shared-sessions.html +7 -4
- package/vendor/runtime/dist/{flows-VrII9VKZ.js → flows-CDj5YcTh.js} +136 -68
- package/vendor/runtime/dist/flows-CDj5YcTh.js.map +1 -0
- package/vendor/runtime/dist/flows.d.ts +28 -19
- package/vendor/runtime/dist/flows.d.ts.map +1 -1
- package/vendor/runtime/dist/flows.js +1 -1
- package/vendor/runtime/dist/{invocation-options-DHMZ5Rrb.js → input-file-BsfVGZgn.js} +30 -15
- package/vendor/runtime/dist/input-file-BsfVGZgn.js.map +1 -0
- package/vendor/runtime/dist/{ipc-CNNM5DP_.js → ipc-DfqJsbk6.js} +114 -146
- package/vendor/runtime/dist/ipc-DfqJsbk6.js.map +1 -0
- package/vendor/runtime/dist/{output-DtzXtiBc.js → output-DOIF4iFc.js} +20 -47
- package/vendor/runtime/dist/output-DOIF4iFc.js.map +1 -0
- package/vendor/runtime/dist/{queue-owner-runtime-ehuh3SQU.js → queue-owner-runtime-DHBQbjXo.js} +394 -258
- package/vendor/runtime/dist/queue-owner-runtime-DHBQbjXo.js.map +1 -0
- package/vendor/runtime/dist/runtime.d.ts +37 -36
- package/vendor/runtime/dist/runtime.d.ts.map +1 -1
- package/vendor/runtime/dist/runtime.js +117 -172
- package/vendor/runtime/dist/runtime.js.map +1 -1
- package/vendor/runtime/dist/{session-options-NjpFwf-c.d.ts → session-options-Ci4aw1oD.d.ts} +13 -16
- package/vendor/runtime/dist/session-options-Ci4aw1oD.d.ts.map +1 -0
- package/vendor/runtime/dist/{session-watch-CbKfGRkZ.js → session-watch-DRwFHcWw.js} +5 -6
- package/vendor/runtime/dist/{session-watch-CbKfGRkZ.js.map → session-watch-DRwFHcWw.js.map} +1 -1
- package/vendor/runtime/dist/{watch-BGt4kcE6.js → watch-CUDGkljG.js} +3 -4
- package/vendor/runtime/dist/{watch-BGt4kcE6.js.map → watch-CUDGkljG.js.map} +1 -1
- package/vendor/runtime/package.json +3 -3
- package/vendor/runtime/skills/acpx/SKILL.md +42 -11
- package/vendor/runtime/dist/agent-registry-DxcyXXqb.js.map +0 -1
- package/vendor/runtime/dist/cli-BKmMxgix.js.map +0 -1
- package/vendor/runtime/dist/client-C5zneoBs.d.ts.map +0 -1
- package/vendor/runtime/dist/flows-VrII9VKZ.js.map +0 -1
- package/vendor/runtime/dist/invocation-options-DHMZ5Rrb.js.map +0 -1
- package/vendor/runtime/dist/ipc-CNNM5DP_.js.map +0 -1
- package/vendor/runtime/dist/output-DtzXtiBc.js.map +0 -1
- package/vendor/runtime/dist/queue-owner-runtime-ehuh3SQU.js.map +0 -1
- package/vendor/runtime/dist/session-options-NjpFwf-c.d.ts.map +0 -1
package/dist/src/catalog.js
CHANGED
|
@@ -82,11 +82,21 @@ function localLaunch(id, options) {
|
|
|
82
82
|
if (!Array.isArray(argv))
|
|
83
83
|
return undefined;
|
|
84
84
|
if (argv[0] === 'npx') {
|
|
85
|
+
// Adapter argv may carry the package spec in `--package=<spec>` with the
|
|
86
|
+
// bin selector as the first positional (runtime #922 shape), or keep the
|
|
87
|
+
// spec itself positional (legacy shape). Resolve the spec from either
|
|
88
|
+
// shape so local packages keep precedence over PATH shims and npx.
|
|
89
|
+
const packagedFlag = argv.find((arg, i) => i > 0 && arg.startsWith('--package='));
|
|
85
90
|
const index = argv.findIndex((arg, i) => i > 0 && !arg.startsWith('-'));
|
|
86
|
-
|
|
91
|
+
const spec = packagedFlag
|
|
92
|
+
? packagedFlag.slice('--package='.length)
|
|
93
|
+
: index >= 0
|
|
94
|
+
? argv[index]
|
|
95
|
+
: undefined;
|
|
96
|
+
if (!spec)
|
|
87
97
|
return undefined;
|
|
88
|
-
const extraArgs = argv.slice(index + 1);
|
|
89
|
-
const packaged = packageLaunch(
|
|
98
|
+
const extraArgs = index >= 0 ? argv.slice(index + 1) : [];
|
|
99
|
+
const packaged = packageLaunch(spec, extraArgs, options);
|
|
90
100
|
if (packaged)
|
|
91
101
|
return packaged;
|
|
92
102
|
// Use the runtime's adapter entrypoint, rather than the display/native CLI.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1agents/acp-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "agent-workflow ACP runtime, CLI, HTTP/WebSocket service and DeepSeek Harness ACP/A2A plugins in one package. Part of 一芥天地 (DreamMate World).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dreammate",
|
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
"node": ">=22.13.0"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@1agents/acp-runtime-sdk": "npm:@agentclientprotocol/sdk@^1.
|
|
94
|
+
"@1agents/acp-runtime-sdk": "npm:@agentclientprotocol/sdk@^1.9.0",
|
|
95
95
|
"@1agents/dreammate-network": "^0.5.0",
|
|
96
96
|
"@1agents/dreammate-node": "^0.15.0",
|
|
97
97
|
"@a2a-js/sdk": "1.3.0",
|
|
98
98
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
99
|
-
"@openclaw/fs-safe": "^0.
|
|
99
|
+
"@openclaw/fs-safe": "^0.28.0",
|
|
100
100
|
"commander": "^15.0.0",
|
|
101
101
|
"dsh-zod": "npm:zod@4.4.3",
|
|
102
102
|
"skillflag": "^0.2.1",
|
|
103
103
|
"tsx": "^4.23.15",
|
|
104
104
|
"ws": "^8.18.0",
|
|
105
|
-
"zod": "^4.6.
|
|
105
|
+
"zod": "^4.6.7"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@1agents/chat-view": "0.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: acp-service
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.11.0
|
|
4
4
|
description: 使用 @1agents/acp-service 管理 ACP 会话与 DSH 插件,通过 A2A 调用固定角色、派发临时任务、查询父子任务和执行轮次、记录业务验收及处理通知,并回投 Codex/DSH 原会话。也用于把已记录产物交给另一个角色(handoff_propose、handoff_decide、handoff_offer)、登记共享产物空间、项目/角色候选探查、目标登记和网络技能更新。用户说交接、下一跳、交给另一个角色、共享产物或 caseId 时使用。不用于无关的系统巡检或模型配置;执行中的 ACP 会话没有 handoff 工具。
|
|
5
5
|
---
|
|
6
6
|
|
package/vendor/runtime/README.md
CHANGED
|
@@ -49,17 +49,42 @@ The session is scoped to the current repository and persists across invocations.
|
|
|
49
49
|
|
|
50
50
|
## Choose an agent
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Agent
|
|
55
|
-
|
|
|
56
|
-
| Pi
|
|
57
|
-
| OpenClaw
|
|
58
|
-
| Codex
|
|
59
|
-
| Claude Code
|
|
60
|
-
|
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
These 30 built-in launch profiles share one command shape. Each guide covers the required CLI or adapter, authentication, and capability limits. Ante is experimental.
|
|
53
|
+
|
|
54
|
+
| | Agent | Command |
|
|
55
|
+
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------- |
|
|
56
|
+
|  | [Pi](https://github.com/openclaw/acpx/blob/main/agents/Pi.md) | `acpx pi …` |
|
|
57
|
+
|  | [OpenClaw](https://github.com/openclaw/acpx/blob/main/agents/OpenClaw.md) | `acpx openclaw …` |
|
|
58
|
+
|  | [Codex](https://github.com/openclaw/acpx/blob/main/agents/Codex.md) | `acpx codex …` |
|
|
59
|
+
|  | [Claude Code](https://github.com/openclaw/acpx/blob/main/agents/Claude.md) | `acpx claude …` |
|
|
60
|
+
|  | [Gemini CLI](https://github.com/openclaw/acpx/blob/main/agents/Gemini.md) | `acpx gemini …` |
|
|
61
|
+
|  | [Cursor](https://github.com/openclaw/acpx/blob/main/agents/Cursor.md) | `acpx cursor …` |
|
|
62
|
+
|  | [GitHub Copilot](https://github.com/openclaw/acpx/blob/main/agents/Copilot.md) | `acpx copilot …` |
|
|
63
|
+
|  | [Ante](https://github.com/openclaw/acpx/blob/main/agents/Ante.md) | `acpx ante …` |
|
|
64
|
+
|  | [Antigravity](https://github.com/openclaw/acpx/blob/main/agents/Antigravity.md) | `acpx antigravity …` |
|
|
65
|
+
|  | [DeepSeek Harness](https://github.com/openclaw/acpx/blob/main/agents/DeepSeekHarness.md) | `acpx deepseek-harness …` |
|
|
66
|
+
|  | [Devin](https://github.com/openclaw/acpx/blob/main/agents/Devin.md) | `acpx devin …` |
|
|
67
|
+
|  | [Factory Droid](https://github.com/openclaw/acpx/blob/main/agents/Droid.md) | `acpx droid …` |
|
|
68
|
+
|  | [fast-agent](https://github.com/openclaw/acpx/blob/main/agents/FastAgent.md) | `acpx fast-agent …` |
|
|
69
|
+
|  | [fx](https://github.com/openclaw/acpx/blob/main/agents/Fx.md) | `acpx fx …` |
|
|
70
|
+
|  | [Grok Build](https://github.com/openclaw/acpx/blob/main/agents/GrokBuild.md) | `acpx grok-build …` |
|
|
71
|
+
|  | [Goose](https://github.com/openclaw/acpx/blob/main/agents/Goose.md) | `acpx goose …` |
|
|
72
|
+
|  | [iFlow](https://github.com/openclaw/acpx/blob/main/agents/Iflow.md) | `acpx iflow …` |
|
|
73
|
+
|  | [Junie](https://github.com/openclaw/acpx/blob/main/agents/Junie.md) | `acpx junie …` |
|
|
74
|
+
|  | [Kilocode](https://github.com/openclaw/acpx/blob/main/agents/Kilocode.md) | `acpx kilocode …` |
|
|
75
|
+
|  | [Kimi](https://github.com/openclaw/acpx/blob/main/agents/Kimi.md) | `acpx kimi …` |
|
|
76
|
+
|  | [Kiro](https://github.com/openclaw/acpx/blob/main/agents/Kiro.md) | `acpx kiro …` |
|
|
77
|
+
|  | [MCode](https://github.com/openclaw/acpx/blob/main/agents/MCode.md) | `acpx mcode …` |
|
|
78
|
+
|  | [Mux](https://github.com/openclaw/acpx/blob/main/agents/Mux.md) | `acpx mux …` |
|
|
79
|
+
|  | [Octomind](https://github.com/openclaw/acpx/blob/main/agents/Octomind.md) | `acpx octomind …` |
|
|
80
|
+
|  | [OpenCode](https://github.com/openclaw/acpx/blob/main/agents/OpenCode.md) | `acpx opencode …` |
|
|
81
|
+
|  | [Poolside](https://github.com/openclaw/acpx/blob/main/agents/Pool.md) | `acpx pool …` |
|
|
82
|
+
|  | [Qoder](https://github.com/openclaw/acpx/blob/main/agents/Qoder.md) | `acpx qoder …` |
|
|
83
|
+
|  | [Qwen Code](https://github.com/openclaw/acpx/blob/main/agents/Qwen.md) | `acpx qwen …` |
|
|
84
|
+
|  | [Trae](https://github.com/openclaw/acpx/blob/main/agents/Trae.md) | `acpx trae …` |
|
|
85
|
+
|  | [ZeroClaw](https://github.com/openclaw/acpx/blob/main/agents/ZeroClaw.md) | `acpx zeroclaw …` |
|
|
86
|
+
|
|
87
|
+
Need another ACP server? Use `acpx --agent '<command>' …` or configure a [custom agent](docs/custom-agents.md). See the [agent registry](docs/agents.md) for adapter commands and aliases. [Logo credits](docs/assets/agents/README.md).
|
|
63
88
|
|
|
64
89
|
## Sessions and one-shot runs
|
|
65
90
|
|
|
@@ -2,7 +2,171 @@ import fs from "node:fs";
|
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
5
|
-
|
|
5
|
+
// src/spawn-command-options.ts
|
|
6
|
+
function readWindowsEnvValue(env, key) {
|
|
7
|
+
const matchedKey = Object.keys(env).find((entry) => entry.toUpperCase() === key);
|
|
8
|
+
return matchedKey ? env[matchedKey] : void 0;
|
|
9
|
+
}
|
|
10
|
+
function windowsExecutableExtensions(env) {
|
|
11
|
+
return (readWindowsEnvValue(env, "PATHEXT") ?? ".COM;.EXE;.BAT;.CMD").split(";").map((value) => value.trim().toLowerCase()).filter((value) => value.length > 0);
|
|
12
|
+
}
|
|
13
|
+
function commandCandidates(command, env) {
|
|
14
|
+
if (path.extname(command).length > 0) return [command];
|
|
15
|
+
return windowsExecutableExtensions(env).map((extension) => `${command}${extension}`);
|
|
16
|
+
}
|
|
17
|
+
function commandHasPath(command) {
|
|
18
|
+
return command.includes("/") || command.includes("\\") || path.isAbsolute(command);
|
|
19
|
+
}
|
|
20
|
+
function resolveWindowsPathCommand(command, env, cwd) {
|
|
21
|
+
const candidates = commandCandidates(command, env);
|
|
22
|
+
const pathValue = readWindowsEnvValue(env, "PATH");
|
|
23
|
+
if (!pathValue) return;
|
|
24
|
+
for (const directory of pathValue.split(";")) {
|
|
25
|
+
const resolved = findExistingCommandInDirectory(directory, candidates, cwd);
|
|
26
|
+
if (resolved) return resolved;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function findExistingCommandInDirectory(directory, candidates, cwd) {
|
|
30
|
+
const trimmedDirectory = directory.trim();
|
|
31
|
+
if (trimmedDirectory.length === 0) return;
|
|
32
|
+
return candidates.map((candidate) => fromWorkingDirectory(path.join(trimmedDirectory, candidate), cwd)).find((resolved) => fs.existsSync(resolved));
|
|
33
|
+
}
|
|
34
|
+
function fromWorkingDirectory(value, cwd) {
|
|
35
|
+
return cwd !== void 0 && !path.isAbsolute(value) ? path.resolve(cwd, value) : value;
|
|
36
|
+
}
|
|
37
|
+
function resolveWindowsWrapperToken(token, wrapperPath) {
|
|
38
|
+
const relative = token.match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();
|
|
39
|
+
if (!relative) return;
|
|
40
|
+
const candidate = path.resolve(path.dirname(wrapperPath), relative.replace(/[\\/]+/g, path.sep).replace(/^[\\/]+/, ""));
|
|
41
|
+
return path.extname(candidate).toLowerCase() === ".exe" && fs.existsSync(candidate) ? candidate : void 0;
|
|
42
|
+
}
|
|
43
|
+
function resolveWindowsWrapperExecutable(wrapperPath) {
|
|
44
|
+
if (!fs.existsSync(wrapperPath)) return;
|
|
45
|
+
try {
|
|
46
|
+
return [...fs.readFileSync(wrapperPath, "utf8").matchAll(/"([^"\r\n]*)"/g)].map((match) => resolveWindowsWrapperToken(match[1] ?? "", wrapperPath)).find((candidate) => candidate !== void 0);
|
|
47
|
+
} catch {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function resolveWindowsCommand(command, env = process.env, cwd) {
|
|
52
|
+
const candidates = commandCandidates(command, env);
|
|
53
|
+
if (commandHasPath(command)) return candidates.map((candidate) => fromWorkingDirectory(candidate, cwd)).find((candidate) => fs.existsSync(candidate));
|
|
54
|
+
return resolveWindowsPathCommand(command, env, cwd);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Resolve a Windows command to a native executable suitable for direct spawn.
|
|
58
|
+
*
|
|
59
|
+
* Batch and PowerShell shims are intentionally rejected unless they point at a
|
|
60
|
+
* real `.exe` entrypoint. Callers that need shell execution should use the
|
|
61
|
+
* command-specific shell policy instead.
|
|
62
|
+
*/
|
|
63
|
+
function resolveWindowsExecutablePath(command, env = process.env, cwd) {
|
|
64
|
+
const resolved = resolveWindowsCommand(command, env, cwd);
|
|
65
|
+
if (!resolved) return;
|
|
66
|
+
const absolute = path.resolve(resolved);
|
|
67
|
+
const extension = path.extname(absolute).toLowerCase();
|
|
68
|
+
if (extension === ".exe") return absolute;
|
|
69
|
+
if (extension !== ".cmd" && extension !== ".bat" && extension !== ".ps1") return;
|
|
70
|
+
const siblingExecutable = `${absolute.slice(0, -extension.length)}.exe`;
|
|
71
|
+
return fs.existsSync(siblingExecutable) ? siblingExecutable : resolveWindowsWrapperExecutable(absolute);
|
|
72
|
+
}
|
|
73
|
+
function shouldUseWindowsBatchShell(command, platform = process.platform, env = process.env, cwd) {
|
|
74
|
+
if (platform !== "win32") return false;
|
|
75
|
+
const resolvedCommand = resolveWindowsCommand(command, env, cwd) ?? command;
|
|
76
|
+
const ext = path.extname(resolvedCommand).toLowerCase();
|
|
77
|
+
return ext === ".cmd" || ext === ".bat";
|
|
78
|
+
}
|
|
79
|
+
const CMD_META_CHAR_RE = /([()\][%!^"`<>&|;, *?])/gu;
|
|
80
|
+
const CMD_SHIM_RE = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/iu;
|
|
81
|
+
function escapeCmdCommand(value) {
|
|
82
|
+
return value.replace(CMD_META_CHAR_RE, "^$1");
|
|
83
|
+
}
|
|
84
|
+
function escapeCmdArgument(value, doubleEscapeMeta) {
|
|
85
|
+
const escaped = `"${escapeBackslashesForQuoting(value)}"`.replace(CMD_META_CHAR_RE, "^$1");
|
|
86
|
+
return doubleEscapeMeta ? escaped.replace(CMD_META_CHAR_RE, "^$1") : escaped;
|
|
87
|
+
}
|
|
88
|
+
function escapeBackslashesForQuoting(value) {
|
|
89
|
+
let result = "";
|
|
90
|
+
let backslashes = 0;
|
|
91
|
+
for (const char of value) {
|
|
92
|
+
if (char === "\\") {
|
|
93
|
+
backslashes += 1;
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
result += "\\".repeat(char === "\"" ? backslashes * 2 + 1 : backslashes) + char;
|
|
97
|
+
backslashes = 0;
|
|
98
|
+
}
|
|
99
|
+
return result + "\\".repeat(backslashes * 2);
|
|
100
|
+
}
|
|
101
|
+
function buildAgentSpawnCommand(command, args, platform = process.platform, env = process.env, cwd) {
|
|
102
|
+
if (!shouldUseWindowsBatchShell(command, platform, env, cwd)) return {
|
|
103
|
+
command,
|
|
104
|
+
args: [...args]
|
|
105
|
+
};
|
|
106
|
+
const resolvedCommand = path.win32.normalize(resolveWindowsCommand(command, env, cwd) ?? command);
|
|
107
|
+
const doubleEscapeMeta = CMD_SHIM_RE.test(resolvedCommand);
|
|
108
|
+
const shellCommand = [escapeCmdCommand(resolvedCommand), ...args.map((arg) => escapeCmdArgument(arg, doubleEscapeMeta))].join(" ");
|
|
109
|
+
return {
|
|
110
|
+
command: readWindowsEnvValue(env, "COMSPEC") ?? "cmd.exe",
|
|
111
|
+
args: [
|
|
112
|
+
"/d",
|
|
113
|
+
"/s",
|
|
114
|
+
"/c",
|
|
115
|
+
`"${shellCommand}"`
|
|
116
|
+
],
|
|
117
|
+
windowsVerbatimArguments: true
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function buildSpawnCommandOptions(command, options, platform = process.platform, env = process.env, cwd) {
|
|
121
|
+
if (!shouldUseWindowsBatchShell(command, platform, env, cwd)) return options;
|
|
122
|
+
return {
|
|
123
|
+
...options,
|
|
124
|
+
shell: true
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function buildTerminalSpawnCommand(command, args) {
|
|
128
|
+
return {
|
|
129
|
+
command,
|
|
130
|
+
args: args ?? [],
|
|
131
|
+
killProcessGroup: false
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function buildTerminalShellSpawnCommand(command, platform = process.platform) {
|
|
135
|
+
if (platform === "win32") return {
|
|
136
|
+
command: "cmd.exe",
|
|
137
|
+
args: [
|
|
138
|
+
"/d",
|
|
139
|
+
"/s",
|
|
140
|
+
"/c",
|
|
141
|
+
command
|
|
142
|
+
],
|
|
143
|
+
killProcessGroup: true
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
command: "/bin/sh",
|
|
147
|
+
args: ["-c", command],
|
|
148
|
+
killProcessGroup: true
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/** Finds an installed entrypoint without executing it. */
|
|
152
|
+
function resolveInstalledExecutable(command, { env, cwd } = {
|
|
153
|
+
env: process.env,
|
|
154
|
+
cwd: process.cwd()
|
|
155
|
+
}) {
|
|
156
|
+
if (process.platform === "win32") {
|
|
157
|
+
const resolved = resolveWindowsCommand(command, env, cwd);
|
|
158
|
+
return resolved && fs.statSync(resolved, { throwIfNoEntry: false })?.isFile() ? path.resolve(resolved) : void 0;
|
|
159
|
+
}
|
|
160
|
+
return (command.includes("/") ? [path.resolve(cwd, command)] : (env.PATH ?? "").split(path.delimiter).map((directory) => path.resolve(cwd, directory, command))).find((candidate) => {
|
|
161
|
+
try {
|
|
162
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
163
|
+
return fs.statSync(candidate).isFile();
|
|
164
|
+
} catch {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
// src/acp/client-process.ts
|
|
6
170
|
const PROCESS_HELPER_TIMEOUT_MS = 8e3;
|
|
7
171
|
const PROCESS_HELPER_MAX_BUFFER_BYTES = 33554432;
|
|
8
172
|
async function runTimedExecFile(command, args, options = {}) {
|
|
@@ -199,180 +363,22 @@ async function runWslpath(cwd) {
|
|
|
199
363
|
function basenameToken(value) {
|
|
200
364
|
return path.basename(value).toLowerCase().replace(/\.(cmd|exe|bat)$/u, "");
|
|
201
365
|
}
|
|
202
|
-
|
|
203
|
-
//#region src/spawn-command-options.ts
|
|
204
|
-
function readWindowsEnvValue(env, key) {
|
|
205
|
-
const matchedKey = Object.keys(env).find((entry) => entry.toUpperCase() === key);
|
|
206
|
-
return matchedKey ? env[matchedKey] : void 0;
|
|
207
|
-
}
|
|
208
|
-
function windowsExecutableExtensions(env) {
|
|
209
|
-
return (readWindowsEnvValue(env, "PATHEXT") ?? ".COM;.EXE;.BAT;.CMD").split(";").map((value) => value.trim().toLowerCase()).filter((value) => value.length > 0);
|
|
210
|
-
}
|
|
211
|
-
function commandCandidates(command, env) {
|
|
212
|
-
if (path.extname(command).length > 0) return [command];
|
|
213
|
-
return windowsExecutableExtensions(env).map((extension) => `${command}${extension}`);
|
|
214
|
-
}
|
|
215
|
-
function commandHasPath(command) {
|
|
216
|
-
return command.includes("/") || command.includes("\\") || path.isAbsolute(command);
|
|
217
|
-
}
|
|
218
|
-
function resolveWindowsPathCommand(command, env, cwd) {
|
|
219
|
-
const candidates = commandCandidates(command, env);
|
|
220
|
-
const pathValue = readWindowsEnvValue(env, "PATH");
|
|
221
|
-
if (!pathValue) return;
|
|
222
|
-
for (const directory of pathValue.split(";")) {
|
|
223
|
-
const resolved = findExistingCommandInDirectory(directory, candidates, cwd);
|
|
224
|
-
if (resolved) return resolved;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
function findExistingCommandInDirectory(directory, candidates, cwd) {
|
|
228
|
-
const trimmedDirectory = directory.trim();
|
|
229
|
-
if (trimmedDirectory.length === 0) return;
|
|
230
|
-
return candidates.map((candidate) => fromWorkingDirectory(path.join(trimmedDirectory, candidate), cwd)).find((resolved) => fs.existsSync(resolved));
|
|
231
|
-
}
|
|
232
|
-
function fromWorkingDirectory(value, cwd) {
|
|
233
|
-
return cwd !== void 0 && !path.isAbsolute(value) ? path.resolve(cwd, value) : value;
|
|
234
|
-
}
|
|
235
|
-
function resolveWindowsWrapperToken(token, wrapperPath) {
|
|
236
|
-
const relative = token.match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();
|
|
237
|
-
if (!relative) return;
|
|
238
|
-
const candidate = path.resolve(path.dirname(wrapperPath), relative.replace(/[\\/]+/g, path.sep).replace(/^[\\/]+/, ""));
|
|
239
|
-
return path.extname(candidate).toLowerCase() === ".exe" && fs.existsSync(candidate) ? candidate : void 0;
|
|
240
|
-
}
|
|
241
|
-
function resolveWindowsWrapperExecutable(wrapperPath) {
|
|
242
|
-
if (!fs.existsSync(wrapperPath)) return;
|
|
243
|
-
try {
|
|
244
|
-
return [...fs.readFileSync(wrapperPath, "utf8").matchAll(/"([^"\r\n]*)"/g)].map((match) => resolveWindowsWrapperToken(match[1] ?? "", wrapperPath)).find((candidate) => candidate !== void 0);
|
|
245
|
-
} catch {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function resolveWindowsCommand(command, env = process.env, cwd) {
|
|
250
|
-
const candidates = commandCandidates(command, env);
|
|
251
|
-
if (commandHasPath(command)) return candidates.map((candidate) => fromWorkingDirectory(candidate, cwd)).find((candidate) => fs.existsSync(candidate));
|
|
252
|
-
return resolveWindowsPathCommand(command, env, cwd);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Resolve a Windows command to a native executable suitable for direct spawn.
|
|
256
|
-
*
|
|
257
|
-
* Batch and PowerShell shims are intentionally rejected unless they point at a
|
|
258
|
-
* real `.exe` entrypoint. Callers that need shell execution should use the
|
|
259
|
-
* command-specific shell policy instead.
|
|
260
|
-
*/
|
|
261
|
-
function resolveWindowsExecutablePath(command, env = process.env, cwd) {
|
|
262
|
-
const resolved = resolveWindowsCommand(command, env, cwd);
|
|
263
|
-
if (!resolved) return;
|
|
264
|
-
const absolute = path.resolve(resolved);
|
|
265
|
-
const extension = path.extname(absolute).toLowerCase();
|
|
266
|
-
if (extension === ".exe") return absolute;
|
|
267
|
-
if (extension !== ".cmd" && extension !== ".bat" && extension !== ".ps1") return;
|
|
268
|
-
const siblingExecutable = `${absolute.slice(0, -extension.length)}.exe`;
|
|
269
|
-
return fs.existsSync(siblingExecutable) ? siblingExecutable : resolveWindowsWrapperExecutable(absolute);
|
|
270
|
-
}
|
|
271
|
-
function shouldUseWindowsBatchShell(command, platform = process.platform, env = process.env, cwd) {
|
|
272
|
-
if (platform !== "win32") return false;
|
|
273
|
-
const resolvedCommand = resolveWindowsCommand(command, env, cwd) ?? command;
|
|
274
|
-
const ext = path.extname(resolvedCommand).toLowerCase();
|
|
275
|
-
return ext === ".cmd" || ext === ".bat";
|
|
276
|
-
}
|
|
277
|
-
const CMD_META_CHAR_RE = /([()\][%!^"`<>&|;, *?])/gu;
|
|
278
|
-
const CMD_SHIM_RE = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/iu;
|
|
279
|
-
function escapeCmdCommand(value) {
|
|
280
|
-
return value.replace(CMD_META_CHAR_RE, "^$1");
|
|
281
|
-
}
|
|
282
|
-
function escapeCmdArgument(value, doubleEscapeMeta) {
|
|
283
|
-
const escaped = `"${escapeBackslashesForQuoting(value)}"`.replace(CMD_META_CHAR_RE, "^$1");
|
|
284
|
-
return doubleEscapeMeta ? escaped.replace(CMD_META_CHAR_RE, "^$1") : escaped;
|
|
285
|
-
}
|
|
286
|
-
function escapeBackslashesForQuoting(value) {
|
|
287
|
-
let result = "";
|
|
288
|
-
let backslashes = 0;
|
|
289
|
-
for (const char of value) {
|
|
290
|
-
if (char === "\\") {
|
|
291
|
-
backslashes += 1;
|
|
292
|
-
continue;
|
|
293
|
-
}
|
|
294
|
-
result += "\\".repeat(char === "\"" ? backslashes * 2 + 1 : backslashes) + char;
|
|
295
|
-
backslashes = 0;
|
|
296
|
-
}
|
|
297
|
-
return result + "\\".repeat(backslashes * 2);
|
|
298
|
-
}
|
|
299
|
-
function buildAgentSpawnCommand(command, args, platform = process.platform, env = process.env, cwd) {
|
|
300
|
-
if (!shouldUseWindowsBatchShell(command, platform, env, cwd)) return {
|
|
301
|
-
command,
|
|
302
|
-
args: [...args]
|
|
303
|
-
};
|
|
304
|
-
const resolvedCommand = path.win32.normalize(resolveWindowsCommand(command, env, cwd) ?? command);
|
|
305
|
-
const doubleEscapeMeta = CMD_SHIM_RE.test(resolvedCommand);
|
|
306
|
-
const shellCommand = [escapeCmdCommand(resolvedCommand), ...args.map((arg) => escapeCmdArgument(arg, doubleEscapeMeta))].join(" ");
|
|
307
|
-
return {
|
|
308
|
-
command: readWindowsEnvValue(env, "COMSPEC") ?? "cmd.exe",
|
|
309
|
-
args: [
|
|
310
|
-
"/d",
|
|
311
|
-
"/s",
|
|
312
|
-
"/c",
|
|
313
|
-
`"${shellCommand}"`
|
|
314
|
-
],
|
|
315
|
-
windowsVerbatimArguments: true
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function buildSpawnCommandOptions(command, options, platform = process.platform, env = process.env, cwd) {
|
|
319
|
-
if (!shouldUseWindowsBatchShell(command, platform, env, cwd)) return options;
|
|
320
|
-
return {
|
|
321
|
-
...options,
|
|
322
|
-
shell: true
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
function buildTerminalSpawnCommand(command, args) {
|
|
326
|
-
return {
|
|
327
|
-
command,
|
|
328
|
-
args: args ?? [],
|
|
329
|
-
killProcessGroup: false
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
function buildTerminalShellSpawnCommand(command, platform = process.platform) {
|
|
333
|
-
if (platform === "win32") return {
|
|
334
|
-
command: "cmd.exe",
|
|
335
|
-
args: [
|
|
336
|
-
"/d",
|
|
337
|
-
"/s",
|
|
338
|
-
"/c",
|
|
339
|
-
command
|
|
340
|
-
],
|
|
341
|
-
killProcessGroup: true
|
|
342
|
-
};
|
|
343
|
-
return {
|
|
344
|
-
command: "/bin/sh",
|
|
345
|
-
args: ["-c", command],
|
|
346
|
-
killProcessGroup: true
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
/** Finds an installed entrypoint without executing it. */
|
|
350
|
-
function resolveInstalledExecutable(command) {
|
|
351
|
-
if (process.platform === "win32") {
|
|
352
|
-
const resolved = resolveWindowsCommand(command);
|
|
353
|
-
return resolved && fs.statSync(resolved, { throwIfNoEntry: false })?.isFile() ? path.resolve(resolved) : void 0;
|
|
354
|
-
}
|
|
355
|
-
return (command.includes("/") ? [path.resolve(command)] : (process.env.PATH ?? "").split(path.delimiter).map((directory) => path.resolve(directory, command))).find((candidate) => {
|
|
356
|
-
try {
|
|
357
|
-
fs.accessSync(candidate, fs.constants.X_OK);
|
|
358
|
-
return fs.statSync(candidate).isFile();
|
|
359
|
-
} catch {
|
|
360
|
-
return false;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
//#endregion
|
|
365
|
-
//#region src/agent-registry.ts
|
|
366
|
+
// src/agent-registry.ts
|
|
366
367
|
const ACP_ADAPTER_PACKAGE_RANGES = {
|
|
367
368
|
pi: "^0.0.33",
|
|
368
369
|
codex: "^1.1.5",
|
|
369
|
-
claude: "^0.
|
|
370
|
+
claude: "^0.95.0",
|
|
370
371
|
mux: "^0.28.0"
|
|
371
372
|
};
|
|
372
373
|
const AGENT_DEFINITIONS = {
|
|
373
374
|
pi: {
|
|
374
375
|
name: "Pi",
|
|
375
|
-
argv: [
|
|
376
|
+
argv: [
|
|
377
|
+
"npx",
|
|
378
|
+
`--package=pi-acp@${ACP_ADAPTER_PACKAGE_RANGES.pi}`,
|
|
379
|
+
"--",
|
|
380
|
+
"pi-acp"
|
|
381
|
+
],
|
|
376
382
|
installedArgv: ["pi-acp"],
|
|
377
383
|
requiredCommands: ["pi"],
|
|
378
384
|
package: {
|
|
@@ -390,14 +396,16 @@ const AGENT_DEFINITIONS = {
|
|
|
390
396
|
argv: [
|
|
391
397
|
"npx",
|
|
392
398
|
"-y",
|
|
393
|
-
|
|
399
|
+
`--package=@agentclientprotocol/codex-acp@${ACP_ADAPTER_PACKAGE_RANGES.codex}`,
|
|
400
|
+
"--",
|
|
401
|
+
"codex-acp"
|
|
394
402
|
],
|
|
395
403
|
installedArgv: ["codex-acp"],
|
|
396
404
|
package: {
|
|
397
405
|
packageName: "@agentclientprotocol/codex-acp",
|
|
398
406
|
packageRange: ACP_ADAPTER_PACKAGE_RANGES.codex,
|
|
399
407
|
preferredBinName: "codex-acp",
|
|
400
|
-
legacyFallbackCommands: []
|
|
408
|
+
legacyFallbackCommands: [`npx -y @agentclientprotocol/codex-acp@${ACP_ADAPTER_PACKAGE_RANGES.codex}`]
|
|
401
409
|
},
|
|
402
410
|
packageExecFallback: true
|
|
403
411
|
},
|
|
@@ -406,14 +414,16 @@ const AGENT_DEFINITIONS = {
|
|
|
406
414
|
argv: [
|
|
407
415
|
"npx",
|
|
408
416
|
"-y",
|
|
409
|
-
|
|
417
|
+
`--package=@agentclientprotocol/claude-agent-acp@${ACP_ADAPTER_PACKAGE_RANGES.claude}`,
|
|
418
|
+
"--",
|
|
419
|
+
"claude-agent-acp"
|
|
410
420
|
],
|
|
411
421
|
installedArgv: ["claude-agent-acp"],
|
|
412
422
|
package: {
|
|
413
423
|
packageName: "@agentclientprotocol/claude-agent-acp",
|
|
414
424
|
packageRange: ACP_ADAPTER_PACKAGE_RANGES.claude,
|
|
415
425
|
preferredBinName: "claude-agent-acp",
|
|
416
|
-
legacyFallbackCommands: [`npm exec @agentclientprotocol/claude-agent-acp@${ACP_ADAPTER_PACKAGE_RANGES.claude}`]
|
|
426
|
+
legacyFallbackCommands: [`npx -y @agentclientprotocol/claude-agent-acp@${ACP_ADAPTER_PACKAGE_RANGES.claude}`, `npm exec @agentclientprotocol/claude-agent-acp@${ACP_ADAPTER_PACKAGE_RANGES.claude}`]
|
|
417
427
|
},
|
|
418
428
|
packageExecFallback: true
|
|
419
429
|
},
|
|
@@ -433,6 +443,11 @@ const AGENT_DEFINITIONS = {
|
|
|
433
443
|
"--stdio"
|
|
434
444
|
]
|
|
435
445
|
},
|
|
446
|
+
ante: {
|
|
447
|
+
name: "Ante",
|
|
448
|
+
argv: ["ante", "acp"],
|
|
449
|
+
requiredCommands: ["ante-acp"]
|
|
450
|
+
},
|
|
436
451
|
antigravity: {
|
|
437
452
|
name: "Google Antigravity",
|
|
438
453
|
argv: process.platform === "win32" ? ["agy_acp_server.exe"] : ["agy_acp_server.par", ...process.platform === "linux" ? ["--uid="] : []]
|
|
@@ -441,6 +456,14 @@ const AGENT_DEFINITIONS = {
|
|
|
441
456
|
name: "CodeBuddy Code",
|
|
442
457
|
argv: ["codebuddy", "--acp"]
|
|
443
458
|
},
|
|
459
|
+
"deepseek-harness": {
|
|
460
|
+
name: "DeepSeek Harness",
|
|
461
|
+
argv: [
|
|
462
|
+
"dsh",
|
|
463
|
+
"--profile",
|
|
464
|
+
"acp"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
444
467
|
devin: {
|
|
445
468
|
name: "Devin",
|
|
446
469
|
argv: ["devin", "acp"]
|
|
@@ -466,6 +489,10 @@ const AGENT_DEFINITIONS = {
|
|
|
466
489
|
name: "fx",
|
|
467
490
|
argv: ["fx", "acp"]
|
|
468
491
|
},
|
|
492
|
+
goose: {
|
|
493
|
+
name: "Goose",
|
|
494
|
+
argv: ["goose", "acp"]
|
|
495
|
+
},
|
|
469
496
|
"grok-build": {
|
|
470
497
|
name: "Grok Build",
|
|
471
498
|
argv: [
|
|
@@ -487,7 +514,9 @@ const AGENT_DEFINITIONS = {
|
|
|
487
514
|
argv: [
|
|
488
515
|
"npx",
|
|
489
516
|
"-y",
|
|
490
|
-
"
|
|
517
|
+
"--package=@kilocode/cli",
|
|
518
|
+
"--",
|
|
519
|
+
"kilo",
|
|
491
520
|
"acp"
|
|
492
521
|
],
|
|
493
522
|
installedArgv: ["kilo", "acp"]
|
|
@@ -509,7 +538,9 @@ const AGENT_DEFINITIONS = {
|
|
|
509
538
|
argv: [
|
|
510
539
|
"npx",
|
|
511
540
|
"-y",
|
|
512
|
-
|
|
541
|
+
`--package=mux@${ACP_ADAPTER_PACKAGE_RANGES.mux}`,
|
|
542
|
+
"--",
|
|
543
|
+
"mux",
|
|
513
544
|
"acp"
|
|
514
545
|
],
|
|
515
546
|
installedArgv: ["mux", "acp"]
|
|
@@ -527,7 +558,9 @@ const AGENT_DEFINITIONS = {
|
|
|
527
558
|
argv: [
|
|
528
559
|
"npx",
|
|
529
560
|
"-y",
|
|
530
|
-
"opencode-ai",
|
|
561
|
+
"--package=opencode-ai",
|
|
562
|
+
"--",
|
|
563
|
+
"opencode",
|
|
531
564
|
"acp"
|
|
532
565
|
],
|
|
533
566
|
installedArgv: ["opencode", "acp"]
|
|
@@ -812,7 +845,6 @@ function normalizeRegistryOverride(value) {
|
|
|
812
845
|
if (typeof value === "string") return value.trim() || void 0;
|
|
813
846
|
return value.length > 0 && value[0]?.length ? [...value] : void 0;
|
|
814
847
|
}
|
|
815
|
-
|
|
816
|
-
export { renderArgvIdentity as A, PROCESS_HELPER_MAX_BUFFER_BYTES as C, isChildProcessRunning as D, basenameToken as E, splitCommandLine as F, waitForChildExit as I, waitForSpawn as L, resolveAgentCommandParts as M, resolveAgentSessionCwd as N, isoNow as O, runTimedExecFile as P, resolveWindowsExecutablePath as S, asAbsoluteCwd as T, buildSpawnCommandOptions as _, createAgentRegistry as a, readWindowsEnvValue as b, mergeAgentRegistry as c, resolveAgentCommand as d, resolveBuiltInAgentLaunch as f, buildAgentSpawnCommand as g, resolvePackageExecBuiltInAgentLaunch as h, DEFAULT_AGENT_NAME as i, requireAgentStdio as j, normalizeAgentCommandInput as k, normalizeAgentName as l, resolveInstalledBuiltInAgentLaunch as m, AGENT_REGISTRY as n, findBuiltInAgentPackage as o, resolveCanonicalAgentName as p, BUILT_IN_AGENT_PACKAGES as r, listBuiltInAgents as s, AGENT_ARGV_REGISTRY as t, resolveAgentArgv as u, buildTerminalShellSpawnCommand as v, PROCESS_HELPER_TIMEOUT_MS as w, resolveWindowsCommand as x, buildTerminalSpawnCommand as y };
|
|
848
|
+
export { waitForSpawn as A, renderArgvIdentity as C, runTimedExecFile as D, resolveAgentSessionCwd as E, readWindowsEnvValue as F, resolveInstalledExecutable as I, resolveWindowsCommand as L, buildSpawnCommandOptions as M, buildTerminalShellSpawnCommand as N, splitCommandLine as O, buildTerminalSpawnCommand as P, resolveWindowsExecutablePath as R, normalizeAgentCommandInput as S, resolveAgentCommandParts as T, PROCESS_HELPER_TIMEOUT_MS as _, createAgentRegistry as a, isChildProcessRunning as b, mergeAgentRegistry as c, resolveAgentCommand as d, resolveBuiltInAgentLaunch as f, PROCESS_HELPER_MAX_BUFFER_BYTES as g, resolvePackageExecBuiltInAgentLaunch as h, DEFAULT_AGENT_NAME as i, buildAgentSpawnCommand as j, waitForChildExit as k, normalizeAgentName as l, resolveInstalledBuiltInAgentLaunch as m, AGENT_REGISTRY as n, findBuiltInAgentPackage as o, resolveCanonicalAgentName as p, BUILT_IN_AGENT_PACKAGES as r, listBuiltInAgents as s, AGENT_ARGV_REGISTRY as t, resolveAgentArgv as u, asAbsoluteCwd as v, requireAgentStdio as w, isoNow as x, basenameToken as y };
|
|
817
849
|
|
|
818
|
-
//# sourceMappingURL=agent-registry-
|
|
850
|
+
//# sourceMappingURL=agent-registry-CsdsVpJb.js.map
|