@ycodium-ai/agent-dsh 0.2.5407 → 0.2.5448
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 +19 -7
- package/package.json +5 -5
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 = 171;
|
|
7375
7375
|
|
|
7376
7376
|
// src/index.ts
|
|
7377
7377
|
import * as NodeOS8 from "node:os";
|
|
@@ -32979,9 +32979,9 @@ function createExecutorLifecycle({
|
|
|
32979
32979
|
if (targetTurnId !== void 0) {
|
|
32980
32980
|
interruptedTurnIds.add(targetTurnId);
|
|
32981
32981
|
}
|
|
32982
|
-
const
|
|
32983
|
-
if (
|
|
32984
|
-
|
|
32982
|
+
const waiting = shared.localPromptWait;
|
|
32983
|
+
if (waiting !== void 0 && (targetTurnId === void 0 || waiting.turnId === targetTurnId)) {
|
|
32984
|
+
waiting.stop();
|
|
32985
32985
|
}
|
|
32986
32986
|
settleAllApprovals("cancel");
|
|
32987
32987
|
settleAllUserInputs();
|
|
@@ -33094,6 +33094,7 @@ function createExecutorLifecycle({
|
|
|
33094
33094
|
if (disposing) return disposing;
|
|
33095
33095
|
shared.disposing = true;
|
|
33096
33096
|
disposing = (async () => {
|
|
33097
|
+
shared.localPromptWait?.stop();
|
|
33097
33098
|
if (exitCode !== void 0) {
|
|
33098
33099
|
let timer;
|
|
33099
33100
|
await Promise.race([
|
|
@@ -33843,7 +33844,7 @@ function createExecutorPrompt({
|
|
|
33843
33844
|
const isStale = () => interruptedTurnIds.has(queuedTurnId) || input2.expectedActiveTurnId !== void 0 && shared.activeTurnId !== queuedTurnId;
|
|
33844
33845
|
if (!isStale() && input2.expectedActiveTurnId === void 0) {
|
|
33845
33846
|
const optionWrites = new AbortController();
|
|
33846
|
-
shared.
|
|
33847
|
+
shared.localPromptWait = { turnId, stop: () => optionWrites.abort() };
|
|
33847
33848
|
try {
|
|
33848
33849
|
await alignTurnOptions(
|
|
33849
33850
|
input2,
|
|
@@ -33868,7 +33869,7 @@ function createExecutorPrompt({
|
|
|
33868
33869
|
});
|
|
33869
33870
|
throw error62 instanceof Error ? withFailureCategory(error62, failureCategory) : error62;
|
|
33870
33871
|
} finally {
|
|
33871
|
-
shared.
|
|
33872
|
+
shared.localPromptWait = void 0;
|
|
33872
33873
|
}
|
|
33873
33874
|
}
|
|
33874
33875
|
failIfDisposed();
|
|
@@ -33879,6 +33880,7 @@ function createExecutorPrompt({
|
|
|
33879
33880
|
closeActiveAssistantSegment(turnId);
|
|
33880
33881
|
let written = false;
|
|
33881
33882
|
try {
|
|
33883
|
+
const readFailure = hooks.observePromptFailure?.(sessionId);
|
|
33882
33884
|
response = await sendPromptRpc(
|
|
33883
33885
|
sessionId,
|
|
33884
33886
|
promptParts,
|
|
@@ -33888,6 +33890,16 @@ function createExecutorPrompt({
|
|
|
33888
33890
|
},
|
|
33889
33891
|
record2
|
|
33890
33892
|
);
|
|
33893
|
+
if (readFailure && response.stopReason === "end_turn" && isLive(started.generation) && !isStale()) {
|
|
33894
|
+
const controller = new AbortController();
|
|
33895
|
+
shared.localPromptWait = { turnId, stop: () => controller.abort() };
|
|
33896
|
+
try {
|
|
33897
|
+
const failure2 = await readFailure(controller.signal);
|
|
33898
|
+
if (failure2 && !isStale() && !controller.signal.aborted) throw failure2;
|
|
33899
|
+
} finally {
|
|
33900
|
+
shared.localPromptWait = void 0;
|
|
33901
|
+
}
|
|
33902
|
+
}
|
|
33891
33903
|
} catch (caught) {
|
|
33892
33904
|
if (shared.disposed) {
|
|
33893
33905
|
throw new AcpExecutorDisposedError();
|
|
@@ -35649,7 +35661,7 @@ function createAcpExecutor(options) {
|
|
|
35649
35661
|
childSessions: createChildSessionRegistry(),
|
|
35650
35662
|
sessionOpensInFlight: 0,
|
|
35651
35663
|
configOptionUpdates: /* @__PURE__ */ new Map(),
|
|
35652
|
-
|
|
35664
|
+
localPromptWait: void 0,
|
|
35653
35665
|
configUpdateSeq: 0
|
|
35654
35666
|
};
|
|
35655
35667
|
const interruptedTurnIds = /* @__PURE__ */ new Set();
|
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.5448",
|
|
4
4
|
"description": "DeepSeek Harness executor: dsh CLI over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"esbuild": "0.28.1",
|
|
23
23
|
"vite-plus": "0.2.2",
|
|
24
24
|
"yaml": "^2.9.0",
|
|
25
|
-
"ycodium-acp-executor": "0.2.
|
|
26
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
25
|
+
"ycodium-acp-executor": "0.2.0",
|
|
26
|
+
"@ycodium-ai/plugin-api": "0.2.0",
|
|
27
27
|
"ycodium-credential-account": "0.0.0",
|
|
28
|
-
"ycodium-
|
|
29
|
-
"ycodium-
|
|
28
|
+
"ycodium-executor-testing": "0.0.0",
|
|
29
|
+
"ycodium-instance-config": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"ycodium": {
|
|
32
32
|
"plugin": "./dist/index.js",
|