@ycodium-ai/agent-kimi 0.2.2510 → 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 +24 -1
- package/package.json +3 -3
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) => {
|
|
@@ -27015,6 +27034,10 @@ var createKimiInstance = (config2, host) => {
|
|
|
27015
27034
|
...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
|
|
27016
27035
|
hooks,
|
|
27017
27036
|
...autoApprove === void 0 ? {} : { autoApprove },
|
|
27037
|
+
// 内置编排那一条排第一,后面跟用户在插件中心配的;缺了这一栏,
|
|
27038
|
+
// `mcp__ycodium__*` 整套工具(浏览器等)在这只手的会话里都不存在。
|
|
27039
|
+
// http / sse 由执行器按握手里的 `mcpCapabilities` 再筛。
|
|
27040
|
+
mcpServers: toAcpMcpServers(input2.mcpServers),
|
|
27018
27041
|
...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
|
|
27019
27042
|
});
|
|
27020
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.
|
|
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,8 +21,8 @@
|
|
|
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.
|
|
25
|
-
"ycodium-acp-executor": "0.2.
|
|
24
|
+
"@ycodium-ai/plugin-api": "0.2.2526",
|
|
25
|
+
"ycodium-acp-executor": "0.2.2526",
|
|
26
26
|
"ycodium-executor-testing": "0.0.0"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|