@ycodium-ai/agent-kimi 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.
Files changed (2) hide show
  1. package/dist/index.js +26 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -35,7 +35,6 @@ var KIMI_CARD = {
35
35
  docsUrl: "https://github.com/MoonshotAI/kimi-code",
36
36
  setupNote: "",
37
37
  defaultModel: "",
38
- defaultTextGenerationModel: "",
39
38
  customModelIdExample: "",
40
39
  modelSlugAliases: null,
41
40
  mcpTransports: ["stdio", "http", "sse"],
@@ -26360,6 +26359,26 @@ function createAcpExecutor(options) {
26360
26359
  };
26361
26360
  }
26362
26361
 
26362
+ // ../../packages/ycodium-acp-executor/src/mcp-servers.ts
26363
+ function toAcpMcpServers(entries) {
26364
+ return (entries ?? []).map(
26365
+ (entry) => entry.transport.type === "stdio" ? {
26366
+ name: entry.name,
26367
+ command: entry.transport.command,
26368
+ args: [...entry.transport.args ?? []],
26369
+ env: Object.entries(entry.transport.env ?? {}).map(([name, value]) => ({ name, value }))
26370
+ } : {
26371
+ type: entry.transport.type,
26372
+ name: entry.name,
26373
+ url: entry.transport.url,
26374
+ headers: Object.entries(entry.transport.headers ?? {}).map(([name, value]) => ({
26375
+ name,
26376
+ value
26377
+ }))
26378
+ }
26379
+ );
26380
+ }
26381
+
26363
26382
  // ../../packages/ycodium-acp-executor/src/probe.ts
26364
26383
  function withProbeTimeout(promise2, timeoutMs, what) {
26365
26384
  return new Promise((resolve2, reject) => {
@@ -26966,6 +26985,8 @@ var createKimiInstance = (config2, host) => {
26966
26985
  };
26967
26986
  }
26968
26987
  },
26988
+ // 暂不处理 input.readOnlyDirectories(有意为之):kimi 经共享的 ycodium-acp-executor 起会话,
26989
+ // 还没用真机确认这家 CLI 对 cwd 之外的读怎么处理、要不要放行。确认之后再接这一栏。
26969
26990
  startSession: async (input2, signal) => {
26970
26991
  if (disposed) throw new Error("instance disposed");
26971
26992
  if (signal?.aborted) throw new Error("aborted");
@@ -27013,6 +27034,10 @@ var createKimiInstance = (config2, host) => {
27013
27034
  ...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
27014
27035
  hooks,
27015
27036
  ...autoApprove === void 0 ? {} : { autoApprove },
27037
+ // 内置编排那一条排第一,后面跟用户在插件中心配的;缺了这一栏,
27038
+ // `mcp__ycodium__*` 整套工具(浏览器等)在这只手的会话里都不存在。
27039
+ // http / sse 由执行器按握手里的 `mcpCapabilities` 再筛。
27040
+ mcpServers: toAcpMcpServers(input2.mcpServers),
27016
27041
  ...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
27017
27042
  });
27018
27043
  const forwarding = (async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-kimi",
3
- "version": "0.2.2488",
3
+ "version": "0.2.2526",
4
4
  "description": "Kimi Code executor: runs `kimi acp` 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-ai/plugin-api": "0.2.2488",
25
- "ycodium-executor-testing": "0.0.0",
26
- "ycodium-acp-executor": "0.2.2488"
24
+ "@ycodium-ai/plugin-api": "0.2.2526",
25
+ "ycodium-acp-executor": "0.2.2526",
26
+ "ycodium-executor-testing": "0.0.0"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",