@ycodium-ai/agent-acp 0.2.2488 → 0.2.2510

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.
Files changed (2) hide show
  1. package/dist/index.js +26 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -26586,6 +26586,26 @@ function tokenizeLaunchArgs(value) {
26586
26586
  return tokens;
26587
26587
  }
26588
26588
 
26589
+ // src/mcpServers.ts
26590
+ function toAcpMcpServers(entries) {
26591
+ return (entries ?? []).map(
26592
+ (entry) => entry.transport.type === "stdio" ? {
26593
+ name: entry.name,
26594
+ command: entry.transport.command,
26595
+ args: [...entry.transport.args ?? []],
26596
+ env: Object.entries(entry.transport.env ?? {}).map(([name, value]) => ({ name, value }))
26597
+ } : {
26598
+ type: entry.transport.type,
26599
+ name: entry.name,
26600
+ url: entry.transport.url,
26601
+ headers: Object.entries(entry.transport.headers ?? {}).map(([name, value]) => ({
26602
+ name,
26603
+ value
26604
+ }))
26605
+ }
26606
+ );
26607
+ }
26608
+
26589
26609
  // src/probeModels.ts
26590
26610
  import * as NodeFS from "node:fs";
26591
26611
  import * as NodeOS from "node:os";
@@ -26866,6 +26886,8 @@ var createAcpInstance = (config2, host) => {
26866
26886
  };
26867
26887
  }
26868
26888
  },
26889
+ // 暂不处理 input.readOnlyDirectories(有意为之):acp 经共享的 ycodium-acp-executor 起会话,
26890
+ // 还没用真机确认这家 CLI 对 cwd 之外的读怎么处理、要不要放行。确认之后再接这一栏。
26869
26891
  startSession: async (input2, signal) => {
26870
26892
  if (disposed) throw new Error("instance disposed");
26871
26893
  if (signal?.aborted) throw new Error("aborted");
@@ -26911,7 +26933,10 @@ var createAcpInstance = (config2, host) => {
26911
26933
  ...requestedModelId === void 0 ? {} : { requestedModelId },
26912
26934
  ...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
26913
26935
  ...autoApprove === void 0 ? {} : { autoApprove },
26914
- ...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
26936
+ ...resume === void 0 ? {} : { resumeSessionId: resume.sessionId },
26937
+ // 内置编排那一条排第一,后面跟用户在插件中心配的;缺了 `mcpServers` 这一栏,
26938
+ // `mcp__ycodium__*` 整套工具在通用 ACP 会话里都不存在。
26939
+ ...input2.mcpServers === void 0 || input2.mcpServers.length === 0 ? {} : { mcpServers: toAcpMcpServers(input2.mcpServers) }
26915
26940
  });
26916
26941
  const forwarding = (async () => {
26917
26942
  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.2488",
3
+ "version": "0.2.2510",
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.2488",
25
- "@ycodium-ai/plugin-api": "0.2.2488",
26
- "ycodium-executor-testing": "0.0.0"
24
+ "@ycodium-ai/plugin-api": "0.2.2510",
25
+ "ycodium-executor-testing": "0.0.0",
26
+ "ycodium-acp-executor": "0.2.2510"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",