@ycodium-ai/agent-claude 0.2.4486 → 0.2.4688
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 +7 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as NodePath20 from "node:path";
|
|
|
3
3
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
4
4
|
|
|
5
5
|
// ../../packages/plugin-api/src/version.ts
|
|
6
|
-
var PLUGIN_API_VERSION =
|
|
6
|
+
var PLUGIN_API_VERSION = 128;
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
import {
|
|
@@ -53,6 +53,7 @@ var CLAUDE_CARD = {
|
|
|
53
53
|
customModelIdExample: "claude-sonnet-5",
|
|
54
54
|
// 不改写用户的选择:`opus` / `sonnet` 这类简称的含义随 CLI 版本变,由 Claude 自己解析。
|
|
55
55
|
modelSlugAliases: null,
|
|
56
|
+
mcpToolCallCeilingSeconds: 630,
|
|
56
57
|
mcpTransports: ["stdio", "http", "sse"],
|
|
57
58
|
pluginManaged: true,
|
|
58
59
|
verifiedSkills: true,
|
|
@@ -122,6 +123,7 @@ var CLAUDE_CARD = {
|
|
|
122
123
|
type: "string",
|
|
123
124
|
"x-ycodium-form": {
|
|
124
125
|
titleKey: "form.homePath.title",
|
|
126
|
+
machineLocal: true,
|
|
125
127
|
descriptionKey: "form.homePath.description",
|
|
126
128
|
placeholderKey: "form.homePath.placeholder"
|
|
127
129
|
}
|
|
@@ -130,6 +132,7 @@ var CLAUDE_CARD = {
|
|
|
130
132
|
type: "string",
|
|
131
133
|
"x-ycodium-form": {
|
|
132
134
|
titleKey: "form.credentialsPath.title",
|
|
135
|
+
machineLocal: true,
|
|
133
136
|
descriptionKey: "form.credentialsPath.description",
|
|
134
137
|
placeholderKey: "form.credentialsPath.placeholder"
|
|
135
138
|
}
|
|
@@ -24568,6 +24571,7 @@ var settleStartup = (context, outcome) => {
|
|
|
24568
24571
|
const startup = context.startup;
|
|
24569
24572
|
if (startup === void 0 || startup.settled) return;
|
|
24570
24573
|
startup.settled = true;
|
|
24574
|
+
if (outcome === "established") startup.messages.length = 0;
|
|
24571
24575
|
startup.outcome.resolve(outcome);
|
|
24572
24576
|
};
|
|
24573
24577
|
var noteStartupEstablished = (context) => {
|
|
@@ -24611,12 +24615,14 @@ var makeSdkStream = (deps) => {
|
|
|
24611
24615
|
switch (message.type) {
|
|
24612
24616
|
case "stream_event":
|
|
24613
24617
|
await handleStreamEvent(context, message);
|
|
24618
|
+
noteStartupEstablished(context);
|
|
24614
24619
|
return;
|
|
24615
24620
|
case "user":
|
|
24616
24621
|
await handleUserMessage(context, message);
|
|
24617
24622
|
return;
|
|
24618
24623
|
case "assistant":
|
|
24619
24624
|
await handleAssistantMessage(context, message);
|
|
24625
|
+
noteStartupEstablished(context);
|
|
24620
24626
|
return;
|
|
24621
24627
|
case "result":
|
|
24622
24628
|
await handleResultMessage(context, message);
|
|
@@ -28290,7 +28296,6 @@ var makeTurnMessageHandlers = (deps) => {
|
|
|
28290
28296
|
}
|
|
28291
28297
|
await completeTurn(context, status, errorMessage, message, category);
|
|
28292
28298
|
settleStartup(context, "established");
|
|
28293
|
-
if (context.startup) context.startup.messages.length = 0;
|
|
28294
28299
|
};
|
|
28295
28300
|
return { handleUserMessage, handleAssistantMessage, handleResultMessage };
|
|
28296
28301
|
};
|
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.4688",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@types/node": "24.12.4",
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.4688",
|
|
28
28
|
"ycodium-composer-tokens": "0.0.0",
|
|
29
|
-
"ycodium-
|
|
30
|
-
"ycodium-
|
|
29
|
+
"ycodium-jsonl-stream": "0.0.0",
|
|
30
|
+
"ycodium-executor-testing": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"ycodium": {
|
|
33
33
|
"plugin": "./dist/index.js",
|