@ycodium-ai/agent-acp 0.2.2488 → 0.2.2526
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/index.js +26 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -26343,6 +26343,26 @@ function createAcpExecutor(options) {
|
|
|
26343
26343
|
};
|
|
26344
26344
|
}
|
|
26345
26345
|
|
|
26346
|
+
// ../../packages/ycodium-acp-executor/src/mcp-servers.ts
|
|
26347
|
+
function toAcpMcpServers(entries) {
|
|
26348
|
+
return (entries ?? []).map(
|
|
26349
|
+
(entry) => entry.transport.type === "stdio" ? {
|
|
26350
|
+
name: entry.name,
|
|
26351
|
+
command: entry.transport.command,
|
|
26352
|
+
args: [...entry.transport.args ?? []],
|
|
26353
|
+
env: Object.entries(entry.transport.env ?? {}).map(([name, value]) => ({ name, value }))
|
|
26354
|
+
} : {
|
|
26355
|
+
type: entry.transport.type,
|
|
26356
|
+
name: entry.name,
|
|
26357
|
+
url: entry.transport.url,
|
|
26358
|
+
headers: Object.entries(entry.transport.headers ?? {}).map(([name, value]) => ({
|
|
26359
|
+
name,
|
|
26360
|
+
value
|
|
26361
|
+
}))
|
|
26362
|
+
}
|
|
26363
|
+
);
|
|
26364
|
+
}
|
|
26365
|
+
|
|
26346
26366
|
// ../../packages/ycodium-acp-executor/src/probe.ts
|
|
26347
26367
|
function withProbeTimeout(promise2, timeoutMs, what) {
|
|
26348
26368
|
return new Promise((resolve2, reject) => {
|
|
@@ -26414,7 +26434,6 @@ var ACP_CARD = {
|
|
|
26414
26434
|
docsUrl: "",
|
|
26415
26435
|
setupNote: "",
|
|
26416
26436
|
defaultModel: "",
|
|
26417
|
-
defaultTextGenerationModel: "",
|
|
26418
26437
|
customModelIdExample: "",
|
|
26419
26438
|
modelSlugAliases: null,
|
|
26420
26439
|
mcpTransports: ["stdio", "http", "sse"],
|
|
@@ -26866,6 +26885,8 @@ var createAcpInstance = (config2, host) => {
|
|
|
26866
26885
|
};
|
|
26867
26886
|
}
|
|
26868
26887
|
},
|
|
26888
|
+
// 暂不处理 input.readOnlyDirectories(有意为之):acp 经共享的 ycodium-acp-executor 起会话,
|
|
26889
|
+
// 还没用真机确认这家 CLI 对 cwd 之外的读怎么处理、要不要放行。确认之后再接这一栏。
|
|
26869
26890
|
startSession: async (input2, signal) => {
|
|
26870
26891
|
if (disposed) throw new Error("instance disposed");
|
|
26871
26892
|
if (signal?.aborted) throw new Error("aborted");
|
|
@@ -26911,7 +26932,10 @@ var createAcpInstance = (config2, host) => {
|
|
|
26911
26932
|
...requestedModelId === void 0 ? {} : { requestedModelId },
|
|
26912
26933
|
...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
|
|
26913
26934
|
...autoApprove === void 0 ? {} : { autoApprove },
|
|
26914
|
-
...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
|
|
26935
|
+
...resume === void 0 ? {} : { resumeSessionId: resume.sessionId },
|
|
26936
|
+
// 内置编排那一条排第一,后面跟用户在插件中心配的;缺了 `mcpServers` 这一栏,
|
|
26937
|
+
// `mcp__ycodium__*` 整套工具在通用 ACP 会话里都不存在。
|
|
26938
|
+
...input2.mcpServers === void 0 || input2.mcpServers.length === 0 ? {} : { mcpServers: toAcpMcpServers(input2.mcpServers) }
|
|
26915
26939
|
});
|
|
26916
26940
|
const forwarding = (async () => {
|
|
26917
26941
|
for await (const event of executor.events) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-acp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2526",
|
|
4
4
|
"description": "Generic ACP executor: user-supplied CLI over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@types/node": "24.12.4",
|
|
22
22
|
"esbuild": "0.28.1",
|
|
23
23
|
"vite-plus": "0.2.2",
|
|
24
|
-
"ycodium-acp-executor": "0.2.
|
|
25
|
-
"
|
|
26
|
-
"ycodium-
|
|
24
|
+
"ycodium-acp-executor": "0.2.2526",
|
|
25
|
+
"ycodium-executor-testing": "0.0.0",
|
|
26
|
+
"@ycodium-ai/plugin-api": "0.2.2526"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|