@ycodium-ai/agent-dsh 0.2.3976 → 0.2.3982
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 +3 -41
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7371,7 +7371,7 @@ var require_dist = __commonJS({
|
|
|
7371
7371
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
7372
7372
|
|
|
7373
7373
|
// ../../packages/plugin-api/src/version.ts
|
|
7374
|
-
var PLUGIN_API_VERSION =
|
|
7374
|
+
var PLUGIN_API_VERSION = 76;
|
|
7375
7375
|
|
|
7376
7376
|
// src/index.ts
|
|
7377
7377
|
import * as NodeOS6 from "node:os";
|
|
@@ -34232,9 +34232,7 @@ function createExecutorRuntime({
|
|
|
34232
34232
|
if (shared.disposed) {
|
|
34233
34233
|
return;
|
|
34234
34234
|
}
|
|
34235
|
-
eventStream.publish(
|
|
34236
|
-
options.originBindingGeneration === void 0 ? event : { ...event, originBindingGeneration: options.originBindingGeneration }
|
|
34237
|
-
);
|
|
34235
|
+
eventStream.publish(event);
|
|
34238
34236
|
};
|
|
34239
34237
|
const emit = publish;
|
|
34240
34238
|
const emitArtifacts = makeArtifactEmitter({
|
|
@@ -36834,38 +36832,6 @@ var RESUME_SCHEMA_VERSION = 1;
|
|
|
36834
36832
|
var yieldTick = () => new Promise((resolve4) => {
|
|
36835
36833
|
setImmediate(resolve4);
|
|
36836
36834
|
});
|
|
36837
|
-
var EventBus = class {
|
|
36838
|
-
#queued = [];
|
|
36839
|
-
#waiters = [];
|
|
36840
|
-
#closed = false;
|
|
36841
|
-
push(event) {
|
|
36842
|
-
const waiter = this.#waiters.shift();
|
|
36843
|
-
if (waiter) {
|
|
36844
|
-
waiter({ done: false, value: event });
|
|
36845
|
-
return;
|
|
36846
|
-
}
|
|
36847
|
-
this.#queued.push(event);
|
|
36848
|
-
}
|
|
36849
|
-
close() {
|
|
36850
|
-
if (this.#closed) return;
|
|
36851
|
-
this.#closed = true;
|
|
36852
|
-
while (this.#waiters.length > 0) {
|
|
36853
|
-
this.#waiters.shift()?.({ done: true, value: void 0 });
|
|
36854
|
-
}
|
|
36855
|
-
}
|
|
36856
|
-
[Symbol.asyncIterator]() {
|
|
36857
|
-
return {
|
|
36858
|
-
next: () => {
|
|
36859
|
-
const queued = this.#queued.shift();
|
|
36860
|
-
if (queued !== void 0) return Promise.resolve({ done: false, value: queued });
|
|
36861
|
-
if (this.#closed) return Promise.resolve({ done: true, value: void 0 });
|
|
36862
|
-
return new Promise((resolve4) => {
|
|
36863
|
-
this.#waiters.push(resolve4);
|
|
36864
|
-
});
|
|
36865
|
-
}
|
|
36866
|
-
};
|
|
36867
|
-
}
|
|
36868
|
-
};
|
|
36869
36835
|
function modelIdFromSelection(selection) {
|
|
36870
36836
|
if (typeof selection !== "object" || selection === null || Array.isArray(selection)) {
|
|
36871
36837
|
return void 0;
|
|
@@ -36886,7 +36852,6 @@ async function stopBooked(booked, processExit) {
|
|
|
36886
36852
|
}
|
|
36887
36853
|
var createDshInstance = (config2, host) => {
|
|
36888
36854
|
const recipe = parseDshInstanceConfig(config2);
|
|
36889
|
-
const events = new EventBus();
|
|
36890
36855
|
const threads = /* @__PURE__ */ new Map();
|
|
36891
36856
|
const overlayChecks = /* @__PURE__ */ new Map();
|
|
36892
36857
|
let disposed = false;
|
|
@@ -36897,7 +36862,6 @@ var createDshInstance = (config2, host) => {
|
|
|
36897
36862
|
);
|
|
36898
36863
|
const disposeOnce = createRetryableClose(async () => {
|
|
36899
36864
|
await stopAll();
|
|
36900
|
-
events.close();
|
|
36901
36865
|
});
|
|
36902
36866
|
const instance = {
|
|
36903
36867
|
probe: async (signal) => {
|
|
@@ -37004,7 +36968,6 @@ var createDshInstance = (config2, host) => {
|
|
|
37004
36968
|
},
|
|
37005
36969
|
...requestedModelId === void 0 ? {} : { requestedModelId },
|
|
37006
36970
|
...requestedEffort === void 0 ? {} : { requestedEffort },
|
|
37007
|
-
...input2.bindingGeneration === void 0 ? {} : { originBindingGeneration: input2.bindingGeneration },
|
|
37008
36971
|
// 内置编排那一条排第一,后面跟用户在插件中心配的;缺了这一栏,
|
|
37009
36972
|
// `mcp__ycodium__*` 整套工具(浏览器等)在这只手的会话里都不存在。
|
|
37010
36973
|
// http / sse 由执行器按握手里的 `mcpCapabilities` 再筛。
|
|
@@ -37012,7 +36975,7 @@ var createDshInstance = (config2, host) => {
|
|
|
37012
36975
|
...resume === void 0 ? {} : { resumeSessionId: resume.sessionId }
|
|
37013
36976
|
});
|
|
37014
36977
|
const forwarding = (async () => {
|
|
37015
|
-
for await (const event of executor.events) events.
|
|
36978
|
+
for await (const event of executor.events) input2.events.emit(event);
|
|
37016
36979
|
})();
|
|
37017
36980
|
try {
|
|
37018
36981
|
throwIfStartAborted(signal);
|
|
@@ -37141,7 +37104,6 @@ var createDshInstance = (config2, host) => {
|
|
|
37141
37104
|
const booked = requireThread(threadId);
|
|
37142
37105
|
return { threadId, turns: booked.turns };
|
|
37143
37106
|
},
|
|
37144
|
-
events,
|
|
37145
37107
|
// 额度是 DeepSeek 账户的剩余金额(API key,没有订阅窗口);token 暂无来源,见 dshBalance.ts 与 README。
|
|
37146
37108
|
usage: createDshUsage({
|
|
37147
37109
|
environment: recipe.environment,
|
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.3982",
|
|
4
4
|
"description": "DeepSeek Harness executor: dsh CLI over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"esbuild": "0.28.1",
|
|
23
23
|
"vite-plus": "0.2.2",
|
|
24
24
|
"yaml": "^2.9.0",
|
|
25
|
-
"
|
|
26
|
-
"ycodium-
|
|
27
|
-
"ycodium-
|
|
25
|
+
"ycodium-acp-executor": "0.2.3982",
|
|
26
|
+
"ycodium-executor-testing": "0.0.0",
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.3982"
|
|
28
28
|
},
|
|
29
29
|
"ycodium": {
|
|
30
30
|
"plugin": "./dist/index.js",
|