@ycodium-ai/agent-claude 0.2.2167 → 0.2.2169
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 +10 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24698,8 +24698,8 @@ function createClaudeAdapter(recipe, host, options) {
|
|
|
24698
24698
|
});
|
|
24699
24699
|
};
|
|
24700
24700
|
const stopSessionInternal = async (context, stopOptions) => {
|
|
24701
|
-
if (context.
|
|
24702
|
-
|
|
24701
|
+
if (context.stopWork) {
|
|
24702
|
+
await context.stopWork;
|
|
24703
24703
|
return;
|
|
24704
24704
|
}
|
|
24705
24705
|
if (context.stopped) return;
|
|
@@ -25644,9 +25644,7 @@ function createClaudeAdapter(recipe, host, options) {
|
|
|
25644
25644
|
};
|
|
25645
25645
|
const stopSession = async (threadId) => {
|
|
25646
25646
|
const context = sessions.get(threadId);
|
|
25647
|
-
if (!context)
|
|
25648
|
-
throw new Error(`Claude session not found: ${threadId}`);
|
|
25649
|
-
}
|
|
25647
|
+
if (!context) return;
|
|
25650
25648
|
await stopSessionInternal(context, { emitExitEvent: true });
|
|
25651
25649
|
};
|
|
25652
25650
|
return {
|
|
@@ -25662,9 +25660,15 @@ function createClaudeAdapter(recipe, host, options) {
|
|
|
25662
25660
|
stopSession,
|
|
25663
25661
|
events: runtimeEventQueue,
|
|
25664
25662
|
dispose: async () => {
|
|
25665
|
-
await Promise.allSettled(
|
|
25663
|
+
const results = await Promise.allSettled(
|
|
25666
25664
|
[...sessions.values()].map((ctx) => stopSessionInternal(ctx, { emitExitEvent: false }))
|
|
25667
25665
|
);
|
|
25666
|
+
const failures = results.flatMap(
|
|
25667
|
+
(result) => result.status === "rejected" ? [result.reason] : []
|
|
25668
|
+
);
|
|
25669
|
+
if (failures.length > 0) {
|
|
25670
|
+
throw new AggregateError(failures, "Failed to stop Claude runtime sessions.");
|
|
25671
|
+
}
|
|
25668
25672
|
runtimeEventQueue.close();
|
|
25669
25673
|
}
|
|
25670
25674
|
};
|
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.2169",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "24.12.4",
|
|
24
24
|
"esbuild": "0.28.1",
|
|
25
25
|
"vite-plus": "0.2.2",
|
|
26
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
26
|
+
"@ycodium-ai/plugin-api": "0.2.2169"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|