@ycodium-ai/agent-claude 0.2.2698 → 0.2.2700

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -29
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20169,9 +20169,14 @@ function modelIdFromSelection(selection) {
20169
20169
  const model = selection["model"];
20170
20170
  return typeof model === "string" ? model.trim() || void 0 : void 0;
20171
20171
  }
20172
+ var RETIRED_CLAUDE_EFFORT = "ultrathink";
20172
20173
  function currentSelectValue(descriptor, raw) {
20174
+ if (raw === RETIRED_CLAUDE_EFFORT && (descriptor.promptInjectedValues?.includes(raw) || !descriptor.options.some((option) => option.id === raw))) {
20175
+ return void 0;
20176
+ }
20173
20177
  if (raw && descriptor.options.some((option) => option.id === raw)) return raw;
20174
- return descriptor.options.find((option) => option.isDefault)?.id;
20178
+ const defaultEffort = descriptor.options.find((option) => option.isDefault)?.id;
20179
+ return defaultEffort === RETIRED_CLAUDE_EFFORT && descriptor.promptInjectedValues?.includes(defaultEffort) ? void 0 : defaultEffort;
20175
20180
  }
20176
20181
  function resolveClaudeEffort(caps, raw) {
20177
20182
  const descriptor = caps.optionDescriptors.find((entry) => entry.id === "effort");
@@ -20179,7 +20184,7 @@ function resolveClaudeEffort(caps, raw) {
20179
20184
  return currentSelectValue(descriptor, raw);
20180
20185
  }
20181
20186
  function normalizeClaudeCliEffort(effort) {
20182
- if (!effort || effort === "ultrathink") {
20187
+ if (!effort) {
20183
20188
  return void 0;
20184
20189
  }
20185
20190
  if (effort === "ultracode") {
@@ -20200,28 +20205,6 @@ function claudeCliModelId(input) {
20200
20205
  ];
20201
20206
  return matchCatalogModel(input.requestedModelId, known) ?? input.placeholder;
20202
20207
  }
20203
- function resolvePromptInjectedEffort(caps, rawEffort) {
20204
- const trimmed = rawEffort?.trim();
20205
- if (!trimmed) return void 0;
20206
- const descriptor = caps.optionDescriptors.find((entry) => entry.id === "effort");
20207
- if (!descriptor || descriptor.type !== "select") return void 0;
20208
- if (!descriptor.promptInjectedValues?.includes(trimmed)) return void 0;
20209
- return trimmed;
20210
- }
20211
- function applyClaudePromptEffortPrefix(text, effort) {
20212
- const trimmed = text.trim();
20213
- if (!trimmed) {
20214
- return trimmed;
20215
- }
20216
- if (effort !== "ultrathink" || /^\/[^\s/]+(?:\s|$)/u.test(trimmed)) {
20217
- return trimmed;
20218
- }
20219
- if (trimmed.startsWith("Ultrathink:")) {
20220
- return trimmed;
20221
- }
20222
- return `Ultrathink:
20223
- ${trimmed}`;
20224
- }
20225
20208
  function getEffectiveClaudeAgentEffort(effort) {
20226
20209
  const normalized = normalizeClaudeCliEffort(effort);
20227
20210
  return normalized ? normalized : null;
@@ -24360,11 +24343,8 @@ function boundModelSelection(value, boundInstanceId) {
24360
24343
  }
24361
24344
  return selection;
24362
24345
  }
24363
- function buildPromptText(caps, input, boundInstanceId) {
24364
- const selection = boundModelSelection(input.modelSelection, boundInstanceId);
24365
- const rawEffort = selection ? getModelSelectionStringOptionValue(selection, "effort") : null;
24366
- const promptEffort = resolvePromptInjectedEffort(caps, rawEffort);
24367
- return applyClaudePromptEffortPrefix(input.input?.trim() ?? "", promptEffort);
24346
+ function buildPromptText(_caps, input, _boundInstanceId) {
24347
+ return input.input?.trim() ?? "";
24368
24348
  }
24369
24349
  function buildUserMessage(input) {
24370
24350
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-claude",
3
- "version": "0.2.2698",
3
+ "version": "0.2.2700",
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-ai/plugin-api": "0.2.2698",
28
- "ycodium-jsonl-stream": "0.0.0",
29
- "ycodium-executor-testing": "0.0.0"
27
+ "ycodium-executor-testing": "0.0.0",
28
+ "@ycodium-ai/plugin-api": "0.2.2700",
29
+ "ycodium-jsonl-stream": "0.0.0"
30
30
  },
31
31
  "ycodium": {
32
32
  "plugin": "./dist/index.js",