@ycodium-ai/agent-claude 0.2.2920 → 0.2.2922
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 +12 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21128,6 +21128,17 @@ var EventBus = class {
|
|
|
21128
21128
|
}
|
|
21129
21129
|
};
|
|
21130
21130
|
|
|
21131
|
+
// src/steerTarget.ts
|
|
21132
|
+
function assertSteeringTarget(expectedTurnId, turnState) {
|
|
21133
|
+
if (expectedTurnId === void 0) return;
|
|
21134
|
+
if (turnState?.turnId === expectedTurnId && turnState.synthetic !== true) return;
|
|
21135
|
+
const rejected = Object.assign(
|
|
21136
|
+
new Error("The target turn has ended. The message was not sent."),
|
|
21137
|
+
{ code: "provider-rejected" }
|
|
21138
|
+
);
|
|
21139
|
+
throw rejected;
|
|
21140
|
+
}
|
|
21141
|
+
|
|
21131
21142
|
// src/sdkModels.ts
|
|
21132
21143
|
import * as NodeOS5 from "node:os";
|
|
21133
21144
|
import { REASONING_OPTION_LABEL as REASONING_OPTION_LABEL2, reasoningEffortShortLabel } from "@ycodium-ai/plugin-api/executor";
|
|
@@ -27170,11 +27181,7 @@ function createClaudeAdapter(recipe, host, options) {
|
|
|
27170
27181
|
};
|
|
27171
27182
|
const sendTurn = async (input) => {
|
|
27172
27183
|
const context = requireSession(input.threadId);
|
|
27173
|
-
const validateSteeringTarget = () =>
|
|
27174
|
-
if (input.expectedTurnId !== void 0 && (context.turnState?.turnId !== input.expectedTurnId || context.turnState.synthetic === true)) {
|
|
27175
|
-
throw new Error("The target turn has ended. The message was not sent.");
|
|
27176
|
-
}
|
|
27177
|
-
};
|
|
27184
|
+
const validateSteeringTarget = () => assertSteeringTarget(input.expectedTurnId, context.turnState);
|
|
27178
27185
|
validateSteeringTarget();
|
|
27179
27186
|
const modelSelection = boundModelSelection(input.modelSelection, boundInstanceId);
|
|
27180
27187
|
const steeringTurnState = context.turnState && context.turnState.synthetic !== true ? context.turnState : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-claude",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2922",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/node": "24.12.4",
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
|
-
"ycodium-composer-tokens": "0.0.0",
|
|
28
|
-
"@ycodium-ai/plugin-api": "0.2.2920",
|
|
29
27
|
"ycodium-executor-testing": "0.0.0",
|
|
28
|
+
"@ycodium-ai/plugin-api": "0.2.2922",
|
|
29
|
+
"ycodium-composer-tokens": "0.0.0",
|
|
30
30
|
"ycodium-jsonl-stream": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"ycodium": {
|