@ycodium-ai/agent-dsh 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 +4 -4
package/dist/index.js
CHANGED
|
@@ -38,7 +38,6 @@ var DSH_CARD = {
|
|
|
38
38
|
// 有一条这样的兜底,代价写在它自己的注释里)。探测问不到时这双手就是没有清单,
|
|
39
39
|
// 界面按「机器没报模型」处理,比摆一个可能不对的型号诚实。
|
|
40
40
|
defaultModel: "",
|
|
41
|
-
defaultTextGenerationModel: "",
|
|
42
41
|
customModelIdExample: "",
|
|
43
42
|
modelSlugAliases: null,
|
|
44
43
|
// 与宿主 dsh driver 今天的注入面一致。
|
|
@@ -26372,6 +26371,26 @@ function createAcpExecutor(options) {
|
|
|
26372
26371
|
};
|
|
26373
26372
|
}
|
|
26374
26373
|
|
|
26374
|
+
// ../../packages/ycodium-acp-executor/src/mcp-servers.ts
|
|
26375
|
+
function toAcpMcpServers(entries) {
|
|
26376
|
+
return (entries ?? []).map(
|
|
26377
|
+
(entry) => entry.transport.type === "stdio" ? {
|
|
26378
|
+
name: entry.name,
|
|
26379
|
+
command: entry.transport.command,
|
|
26380
|
+
args: [...entry.transport.args ?? []],
|
|
26381
|
+
env: Object.entries(entry.transport.env ?? {}).map(([name, value]) => ({ name, value }))
|
|
26382
|
+
} : {
|
|
26383
|
+
type: entry.transport.type,
|
|
26384
|
+
name: entry.name,
|
|
26385
|
+
url: entry.transport.url,
|
|
26386
|
+
headers: Object.entries(entry.transport.headers ?? {}).map(([name, value]) => ({
|
|
26387
|
+
name,
|
|
26388
|
+
value
|
|
26389
|
+
}))
|
|
26390
|
+
}
|
|
26391
|
+
);
|
|
26392
|
+
}
|
|
26393
|
+
|
|
26375
26394
|
// ../../packages/ycodium-acp-executor/src/probe.ts
|
|
26376
26395
|
function withProbeTimeout(promise2, timeoutMs, what) {
|
|
26377
26396
|
return new Promise((resolve2, reject) => {
|
|
@@ -26901,6 +26920,10 @@ var createDshInstance = (config2, host) => {
|
|
|
26901
26920
|
resumeMethod: "session/resume",
|
|
26902
26921
|
...requestedModelId === void 0 ? {} : { requestedModelId },
|
|
26903
26922
|
...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
|
|
26923
|
+
// 内置编排那一条排第一,后面跟用户在插件中心配的;缺了这一栏,
|
|
26924
|
+
// `mcp__ycodium__*` 整套工具(浏览器等)在这只手的会话里都不存在。
|
|
26925
|
+
// http / sse 由执行器按握手里的 `mcpCapabilities` 再筛。
|
|
26926
|
+
mcpServers: toAcpMcpServers(input2.mcpServers),
|
|
26904
26927
|
...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
|
|
26905
26928
|
});
|
|
26906
26929
|
const forwarding = (async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-dsh",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2526",
|
|
4
4
|
"description": "DeepSeek Harness executor: dsh 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-executor
|
|
25
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
26
|
-
"ycodium-
|
|
24
|
+
"ycodium-acp-executor": "0.2.2526",
|
|
25
|
+
"@ycodium-ai/plugin-api": "0.2.2526",
|
|
26
|
+
"ycodium-executor-testing": "0.0.0"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|