@ycodium-ai/agent-claude 0.2.2868 → 0.2.2874
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 +5 -11
- package/locales/zh-CN.json +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20054,13 +20054,13 @@ async function discoverClaudeSkills(configDirPath, options = {}) {
|
|
|
20054
20054
|
var claudeSessionPlugins = (skills) => skills === void 0 || skills.names.length === 0 ? {} : { plugins: [{ type: "local", path: skills.pluginDir }] };
|
|
20055
20055
|
|
|
20056
20056
|
// src/model.ts
|
|
20057
|
-
import { matchCatalogModel } from "@ycodium-ai/plugin-api/executor";
|
|
20057
|
+
import { matchCatalogModel, REASONING_OPTION_LABEL } from "@ycodium-ai/plugin-api/executor";
|
|
20058
20058
|
var DEFAULT_CLAUDE_MODEL_CAPABILITIES = {
|
|
20059
20059
|
optionDescriptors: []
|
|
20060
20060
|
};
|
|
20061
20061
|
var CLAUDE_CUSTOM_MODEL_THINKING_SELECT = {
|
|
20062
20062
|
id: "effort",
|
|
20063
|
-
label:
|
|
20063
|
+
label: REASONING_OPTION_LABEL
|
|
20064
20064
|
};
|
|
20065
20065
|
function parseGenericCliVersion(output) {
|
|
20066
20066
|
const match = output.match(/\bv?(\d+\.\d+\.\d+)\b/);
|
|
@@ -20857,17 +20857,11 @@ var EventBus = class {
|
|
|
20857
20857
|
|
|
20858
20858
|
// src/sdkModels.ts
|
|
20859
20859
|
import * as NodeOS5 from "node:os";
|
|
20860
|
+
import { REASONING_OPTION_LABEL as REASONING_OPTION_LABEL2, reasoningEffortShortLabel } from "@ycodium-ai/plugin-api/executor";
|
|
20860
20861
|
var CLAUDE_SDK_MODELS_TIMEOUT_MS = 2e4;
|
|
20861
20862
|
var CLAUDE_SDK_MODELS_TTL_MS = 30 * 6e4;
|
|
20862
20863
|
var CLAUDE_SDK_MODELS_RETRY_MS = 2 * 6e4;
|
|
20863
|
-
var
|
|
20864
|
-
low: "Low",
|
|
20865
|
-
medium: "Medium",
|
|
20866
|
-
high: "High",
|
|
20867
|
-
xhigh: "Extra High",
|
|
20868
|
-
max: "Max"
|
|
20869
|
-
};
|
|
20870
|
-
var effortLabel = (level) => EFFORT_LABELS[level] ?? `${level.slice(0, 1).toUpperCase()}${level.slice(1)}`;
|
|
20864
|
+
var effortLabel = (level) => reasoningEffortShortLabel(level) ?? `${level.slice(0, 1).toUpperCase()}${level.slice(1)}`;
|
|
20871
20865
|
var claudeCatalogModelFromSdk = (info) => {
|
|
20872
20866
|
const descriptors = [];
|
|
20873
20867
|
const levels = info.supportsEffort === false ? [] : info.supportedEffortLevels ?? [];
|
|
@@ -20875,7 +20869,7 @@ var claudeCatalogModelFromSdk = (info) => {
|
|
|
20875
20869
|
descriptors.push({
|
|
20876
20870
|
type: "select",
|
|
20877
20871
|
id: "effort",
|
|
20878
|
-
label:
|
|
20872
|
+
label: REASONING_OPTION_LABEL2,
|
|
20879
20873
|
options: levels.map((level) => ({ id: level, label: effortLabel(level) }))
|
|
20880
20874
|
});
|
|
20881
20875
|
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
},
|
|
8
8
|
"homePath": {
|
|
9
9
|
"title": "配置目录",
|
|
10
|
-
"description": "
|
|
10
|
+
"description": "此账号的历史记录与设置所在的目录。共用同一目录的 provider 之间可以互相接手会话。",
|
|
11
11
|
"placeholder": "~/.claude"
|
|
12
12
|
},
|
|
13
13
|
"credentialsPath": {
|
|
14
14
|
"title": "凭据目录",
|
|
15
|
-
"description": "
|
|
15
|
+
"description": "账号专用的登录目录。凭据单独保存,配置目录仍可共用。",
|
|
16
16
|
"placeholder": "~/.claude-personal"
|
|
17
17
|
},
|
|
18
18
|
"autoCompactWindow": {
|
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.2874",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,7 +24,7 @@
|
|
|
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.2874",
|
|
28
28
|
"ycodium-executor-testing": "0.0.0",
|
|
29
29
|
"ycodium-jsonl-stream": "0.0.0"
|
|
30
30
|
},
|