@rayss-dev/openclaude 0.33.1-by-rayss → 0.33.3-by-rayss
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/acp.mjs +195 -50
- package/dist/cli.mjs +34 -33
- package/dist/sdk.mjs +145 -26
- package/docs/settings-reference.md +12 -0
- package/package.json +1 -1
package/dist/acp.mjs
CHANGED
|
@@ -10106,14 +10106,14 @@ function getReleaseTagUrl(version = publicBuildVersion) {
|
|
|
10106
10106
|
return `${OPENCLAUDE_RELEASES_URL}/tag/v${normalizePublicVersion(version)}`;
|
|
10107
10107
|
}
|
|
10108
10108
|
function getPublicBuildVersion() {
|
|
10109
|
-
return "0.33.
|
|
10109
|
+
return "0.33.3-by-rayss";
|
|
10110
10110
|
}
|
|
10111
10111
|
var import_semver, OPENCLAUDE_RELEASES_URL = "https://github.com/rayss868/openclaude/releases", fallbackBuildVersion, publicBuildVersion;
|
|
10112
10112
|
var init_version = __esm(() => {
|
|
10113
10113
|
import_semver = __toESM(require_semver2(), 1);
|
|
10114
10114
|
fallbackBuildVersion = (() => {
|
|
10115
10115
|
try {
|
|
10116
|
-
return "0.33.
|
|
10116
|
+
return "0.33.3-by-rayss";
|
|
10117
10117
|
} catch {
|
|
10118
10118
|
return "0.0.0";
|
|
10119
10119
|
}
|
|
@@ -110969,7 +110969,7 @@ var init_metadata = __esm(() => {
|
|
|
110969
110969
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
110970
110970
|
WHITESPACE_REGEX = /\s+/;
|
|
110971
110971
|
getVersionBase = memoize_default(() => {
|
|
110972
|
-
const match = "0.33.
|
|
110972
|
+
const match = "0.33.3-by-rayss".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
110973
110973
|
return match ? match[0] : undefined;
|
|
110974
110974
|
});
|
|
110975
110975
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -111009,9 +111009,9 @@ var init_metadata = __esm(() => {
|
|
|
111009
111009
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
111010
111010
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
111011
111011
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
111012
|
-
version: "0.33.
|
|
111012
|
+
version: "0.33.3-by-rayss",
|
|
111013
111013
|
versionBase: getVersionBase(),
|
|
111014
|
-
buildTime: "2026-10-
|
|
111014
|
+
buildTime: "2026-10-28T03:21:39.519Z",
|
|
111015
111015
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
111016
111016
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
111017
111017
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -111813,6 +111813,12 @@ function tempPathFor(targetPath, writeId) {
|
|
|
111813
111813
|
const resolved = resolve13(targetPath);
|
|
111814
111814
|
return join29(dirname16(resolved), `${basename6(resolved)}.${writeId}.openclaude.tmp`);
|
|
111815
111815
|
}
|
|
111816
|
+
function unknownWriteIdError(writeId, targetPath) {
|
|
111817
|
+
const resolved = resolve13(targetPath);
|
|
111818
|
+
const active = [...states.values()].find((state) => state.targetPath === resolved);
|
|
111819
|
+
const recovery = active ? ` An active chunked write for this path uses write_id ` + `${active.writeId} and expects chunk index ${active.nextChunkIndex}; ` + `retry with that write_id.` : ` Restart with write_mode "start" and reuse the write_id returned in ` + `that tool result for the following append calls.`;
|
|
111820
|
+
return new ChunkedWriteError(`Unknown writeId: ${writeId}. The chunked write is no longer active — it ` + `may have been started in a different process, already finished, or ` + `discarded.${recovery}`);
|
|
111821
|
+
}
|
|
111816
111822
|
function enforceChunkLimit(content) {
|
|
111817
111823
|
if (content.length > MAX_FILE_WRITE_CHUNK_CHARS) {
|
|
111818
111824
|
throw new ChunkedWriteError(`Chunk is ${content.length} characters but must be at most ` + `${MAX_FILE_WRITE_CHUNK_CHARS} characters; split it into smaller chunks.`);
|
|
@@ -111822,6 +111828,11 @@ async function startChunkedWrite(targetPath, content, snapshot) {
|
|
|
111822
111828
|
enforceChunkLimit(content);
|
|
111823
111829
|
const fs2 = getFsImplementation();
|
|
111824
111830
|
const resolvedTarget = resolve13(targetPath);
|
|
111831
|
+
for (const [existingId, existing] of states) {
|
|
111832
|
+
if (existing.targetPath === resolvedTarget) {
|
|
111833
|
+
await clearChunkedWrite(existingId).catch(() => {});
|
|
111834
|
+
}
|
|
111835
|
+
}
|
|
111825
111836
|
const writeId = randomUUID3();
|
|
111826
111837
|
const tempPath = tempPathFor(resolvedTarget, writeId);
|
|
111827
111838
|
let initialMtimeMs = snapshot.expectedInitialMtimeMs;
|
|
@@ -111848,6 +111859,7 @@ async function startChunkedWrite(targetPath, content, snapshot) {
|
|
|
111848
111859
|
}
|
|
111849
111860
|
}
|
|
111850
111861
|
try {
|
|
111862
|
+
await fs2.mkdir(dirname16(resolvedTarget));
|
|
111851
111863
|
await fs2.writeFile(tempPath, content, { encoding: snapshot.encoding });
|
|
111852
111864
|
} catch (error40) {
|
|
111853
111865
|
await fs2.unlink(tempPath).catch(() => {});
|
|
@@ -111875,7 +111887,7 @@ async function appendChunkedWrite(targetPath, writeId, chunkIndex, content, resp
|
|
|
111875
111887
|
enforceChunkLimit(content);
|
|
111876
111888
|
const state = states.get(writeId);
|
|
111877
111889
|
if (!state) {
|
|
111878
|
-
throw
|
|
111890
|
+
throw unknownWriteIdError(writeId, targetPath);
|
|
111879
111891
|
}
|
|
111880
111892
|
if (resolve13(targetPath) !== state.targetPath) {
|
|
111881
111893
|
throw new ChunkedWriteError(`Target path ${targetPath} does not match the chunked write for ${writeId}`);
|
|
@@ -111906,7 +111918,7 @@ async function discardChunkedWriteState(writeId) {
|
|
|
111906
111918
|
async function commitChunkedWrite(targetPath, writeId) {
|
|
111907
111919
|
const state = states.get(writeId);
|
|
111908
111920
|
if (!state) {
|
|
111909
|
-
throw
|
|
111921
|
+
throw unknownWriteIdError(writeId, targetPath);
|
|
111910
111922
|
}
|
|
111911
111923
|
if (resolve13(targetPath) !== state.targetPath) {
|
|
111912
111924
|
throw new ChunkedWriteError(`Target path ${targetPath} does not match the chunked write for ${writeId}`);
|
|
@@ -150510,6 +150522,9 @@ function legacyModelSupportsEffort(model, context) {
|
|
|
150510
150522
|
if (modelUsesOpenAIEffort(model, context) && (context?.routeId === "custom" || resolveActiveRouteIdFromEnv(process.env) === "custom")) {
|
|
150511
150523
|
return true;
|
|
150512
150524
|
}
|
|
150525
|
+
if (context?.routeId === "custom" && getReasoningApiProvider(context) === "openai") {
|
|
150526
|
+
return true;
|
|
150527
|
+
}
|
|
150513
150528
|
if (modelUsesOpenAIEffort(model, context) && modelSupportsCodexReasoningEffort(model, context)) {
|
|
150514
150529
|
return true;
|
|
150515
150530
|
}
|
|
@@ -164689,6 +164704,50 @@ var init_doomLoop = __esm(() => {
|
|
|
164689
164704
|
stateByAgent = new Map;
|
|
164690
164705
|
});
|
|
164691
164706
|
|
|
164707
|
+
// src/utils/toolErrorRepeats.ts
|
|
164708
|
+
function getState2(agentKey) {
|
|
164709
|
+
let state2 = stateByAgent2.get(agentKey);
|
|
164710
|
+
if (!state2) {
|
|
164711
|
+
state2 = { lastTool: null, lastError: null, count: 0 };
|
|
164712
|
+
stateByAgent2.set(agentKey, state2);
|
|
164713
|
+
}
|
|
164714
|
+
return state2;
|
|
164715
|
+
}
|
|
164716
|
+
function normalizeText(text) {
|
|
164717
|
+
return text.replace(/\s+/g, " ").replace(/\d+/g, "#").trim();
|
|
164718
|
+
}
|
|
164719
|
+
function buildNudge(count3) {
|
|
164720
|
+
return `
|
|
164721
|
+
<system-reminder>This is the ${count3}th consecutive failure of this tool with the same error. Do not simply retry — pause, re-read the original request and the error above, then adjust your approach.</system-reminder>`;
|
|
164722
|
+
}
|
|
164723
|
+
function recordRepeatedToolError(agentKey, toolName, errorText) {
|
|
164724
|
+
const state2 = getState2(agentKey);
|
|
164725
|
+
const normalized = normalizeText(errorText);
|
|
164726
|
+
if (state2.lastTool === toolName && state2.lastError === normalized) {
|
|
164727
|
+
state2.count++;
|
|
164728
|
+
} else {
|
|
164729
|
+
state2.lastTool = toolName;
|
|
164730
|
+
state2.lastError = normalized;
|
|
164731
|
+
state2.count = 1;
|
|
164732
|
+
}
|
|
164733
|
+
if (state2.count >= DEFAULT_THRESHOLD2) {
|
|
164734
|
+
return { count: state2.count, nudge: buildNudge(state2.count) };
|
|
164735
|
+
}
|
|
164736
|
+
return { count: state2.count };
|
|
164737
|
+
}
|
|
164738
|
+
function resetToolErrorRepeats(agentKey, toolName) {
|
|
164739
|
+
const state2 = stateByAgent2.get(agentKey);
|
|
164740
|
+
if (state2 && state2.lastTool === toolName) {
|
|
164741
|
+
state2.lastTool = null;
|
|
164742
|
+
state2.lastError = null;
|
|
164743
|
+
state2.count = 0;
|
|
164744
|
+
}
|
|
164745
|
+
}
|
|
164746
|
+
var DEFAULT_THRESHOLD2 = 3, stateByAgent2;
|
|
164747
|
+
var init_toolErrorRepeats = __esm(() => {
|
|
164748
|
+
stateByAgent2 = new Map;
|
|
164749
|
+
});
|
|
164750
|
+
|
|
164692
164751
|
// src/utils/stream.ts
|
|
164693
164752
|
var Stream2;
|
|
164694
164753
|
var init_stream2 = __esm(() => {
|
|
@@ -174703,6 +174762,57 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
174703
174762
|
});
|
|
174704
174763
|
});
|
|
174705
174764
|
|
|
174765
|
+
// src/services/mcp/argCoercion.ts
|
|
174766
|
+
function coerceValue(value, schema) {
|
|
174767
|
+
if (value === null || value === undefined || !schema) {
|
|
174768
|
+
return value;
|
|
174769
|
+
}
|
|
174770
|
+
const type = schema.type;
|
|
174771
|
+
if (type === "integer" || type === "number") {
|
|
174772
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
174773
|
+
const parsed = Number(value);
|
|
174774
|
+
if (Number.isFinite(parsed)) {
|
|
174775
|
+
return parsed;
|
|
174776
|
+
}
|
|
174777
|
+
}
|
|
174778
|
+
return value;
|
|
174779
|
+
}
|
|
174780
|
+
if (type === "boolean") {
|
|
174781
|
+
if (value === "true")
|
|
174782
|
+
return true;
|
|
174783
|
+
if (value === "false")
|
|
174784
|
+
return false;
|
|
174785
|
+
return value;
|
|
174786
|
+
}
|
|
174787
|
+
if (type === "object" && typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
174788
|
+
const props = schema.properties;
|
|
174789
|
+
if (!props)
|
|
174790
|
+
return value;
|
|
174791
|
+
const out = {};
|
|
174792
|
+
for (const [key, v] of Object.entries(value)) {
|
|
174793
|
+
out[key] = coerceValue(v, props[key]);
|
|
174794
|
+
}
|
|
174795
|
+
return out;
|
|
174796
|
+
}
|
|
174797
|
+
if (type === "array" && Array.isArray(value)) {
|
|
174798
|
+
if (!schema.items)
|
|
174799
|
+
return value;
|
|
174800
|
+
return value.map((item) => coerceValue(item, schema.items));
|
|
174801
|
+
}
|
|
174802
|
+
return value;
|
|
174803
|
+
}
|
|
174804
|
+
function coerceArgsToInputSchema(args, inputSchema7) {
|
|
174805
|
+
if (!inputSchema7 || typeof inputSchema7 !== "object" || !inputSchema7.properties) {
|
|
174806
|
+
return args;
|
|
174807
|
+
}
|
|
174808
|
+
const props = inputSchema7.properties;
|
|
174809
|
+
const out = {};
|
|
174810
|
+
for (const [key, value] of Object.entries(args)) {
|
|
174811
|
+
out[key] = coerceValue(value, props[key]);
|
|
174812
|
+
}
|
|
174813
|
+
return out;
|
|
174814
|
+
}
|
|
174815
|
+
|
|
174706
174816
|
// src/utils/codeIndexing.ts
|
|
174707
174817
|
function detectCodeIndexingFromCommand(command) {
|
|
174708
174818
|
const trimmed = command.trim();
|
|
@@ -174784,11 +174894,11 @@ var init_codeIndexing = __esm(() => {
|
|
|
174784
174894
|
|
|
174785
174895
|
// src/utils/userAgent.ts
|
|
174786
174896
|
function getClaudeCodeUserAgent() {
|
|
174787
|
-
return `claude-code/${"0.33.
|
|
174897
|
+
return `claude-code/${"0.33.3-by-rayss"}`;
|
|
174788
174898
|
}
|
|
174789
174899
|
function getOpenClaudeUserAgent() {
|
|
174790
174900
|
try {
|
|
174791
|
-
return `openclaude/${"0.33.
|
|
174901
|
+
return `openclaude/${"0.33.3-by-rayss"}`;
|
|
174792
174902
|
} catch {
|
|
174793
174903
|
return "openclaude/0.0.0";
|
|
174794
174904
|
}
|
|
@@ -174810,7 +174920,7 @@ function getUserAgent() {
|
|
|
174810
174920
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
174811
174921
|
const workload = getWorkload();
|
|
174812
174922
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
174813
|
-
return `claude-cli/${"0.33.
|
|
174923
|
+
return `claude-cli/${"0.33.3-by-rayss"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
174814
174924
|
}
|
|
174815
174925
|
function getMCPUserAgent() {
|
|
174816
174926
|
const parts = [];
|
|
@@ -174824,7 +174934,7 @@ function getMCPUserAgent() {
|
|
|
174824
174934
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
174825
174935
|
}
|
|
174826
174936
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
174827
|
-
return `claude-code/${"0.33.
|
|
174937
|
+
return `claude-code/${"0.33.3-by-rayss"}${suffix}`;
|
|
174828
174938
|
}
|
|
174829
174939
|
function getWebFetchUserAgent() {
|
|
174830
174940
|
const supportUrl = isFirstPartyAnthropicProvider() ? "https://support.anthropic.com/" : "https://github.com/rayss868/openclaude";
|
|
@@ -179899,7 +180009,7 @@ function getAttributionHeader(fingerprint, policy) {
|
|
|
179899
180009
|
if (!policy.generate) {
|
|
179900
180010
|
return "";
|
|
179901
180011
|
}
|
|
179902
|
-
const version2 = `${"0.33.
|
|
180012
|
+
const version2 = `${"0.33.3-by-rayss"}.${fingerprint}`;
|
|
179903
180013
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
179904
180014
|
const cch = "";
|
|
179905
180015
|
const workload = getWorkload();
|
|
@@ -188104,7 +188214,7 @@ function computeFingerprint(messageText2, version2) {
|
|
|
188104
188214
|
}
|
|
188105
188215
|
function computeFingerprintFromMessages(messages) {
|
|
188106
188216
|
const firstMessageText = extractFirstMessageText(messages);
|
|
188107
|
-
return computeFingerprint(firstMessageText, "0.33.
|
|
188217
|
+
return computeFingerprint(firstMessageText, "0.33.3-by-rayss");
|
|
188108
188218
|
}
|
|
188109
188219
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
188110
188220
|
var init_fingerprint = () => {};
|
|
@@ -189587,7 +189697,7 @@ var init_client3 = __esm(() => {
|
|
|
189587
189697
|
const client = new Client({
|
|
189588
189698
|
name: "claude-code",
|
|
189589
189699
|
title: "OpenClaude",
|
|
189590
|
-
version: "0.33.
|
|
189700
|
+
version: "0.33.3-by-rayss",
|
|
189591
189701
|
description: "OpenClaude — coding-agent CLI for any LLM provider",
|
|
189592
189702
|
websiteUrl: PRODUCT_URL
|
|
189593
189703
|
}, {
|
|
@@ -190085,6 +190195,7 @@ var init_client3 = __esm(() => {
|
|
|
190085
190195
|
async call(args, context, _canUseTool, parentMessage, onProgress) {
|
|
190086
190196
|
const toolUseId = extractToolUseId(parentMessage);
|
|
190087
190197
|
const meta = toolUseId ? { "claudecode/toolUseId": toolUseId } : {};
|
|
190198
|
+
const normalizedArgs = coerceArgsToInputSchema(args, tool.inputSchema);
|
|
190088
190199
|
if (onProgress && toolUseId) {
|
|
190089
190200
|
try {
|
|
190090
190201
|
onProgress({
|
|
@@ -190133,7 +190244,7 @@ var init_client3 = __esm(() => {
|
|
|
190133
190244
|
client: connectedClient,
|
|
190134
190245
|
clientConnection: client,
|
|
190135
190246
|
tool: tool.name,
|
|
190136
|
-
args,
|
|
190247
|
+
args: normalizedArgs,
|
|
190137
190248
|
meta,
|
|
190138
190249
|
signal: context.abortController.signal,
|
|
190139
190250
|
setAppState: context.setAppState,
|
|
@@ -191995,13 +192106,14 @@ async function checkPermissionsAndCallTool(tool, toolUseID, input, toolUseContex
|
|
|
191995
192106
|
},
|
|
191996
192107
|
...mcpToolDetailsForAnalytics(tool.name, mcpServerType, mcpServerBaseUrl)
|
|
191997
192108
|
});
|
|
192109
|
+
const repeatedError = recordRepeatedToolError(toolUseContext.agentId ?? "main", tool.name, errorContent);
|
|
191998
192110
|
return [
|
|
191999
192111
|
{
|
|
192000
192112
|
message: createUserMessage({
|
|
192001
192113
|
content: [
|
|
192002
192114
|
{
|
|
192003
192115
|
type: "tool_result",
|
|
192004
|
-
content: `<tool_use_error>InputValidationError: ${errorContent}</tool_use_error
|
|
192116
|
+
content: `<tool_use_error>InputValidationError: ${errorContent}</tool_use_error>${repeatedError.nudge ?? ""}`,
|
|
192005
192117
|
is_error: true,
|
|
192006
192118
|
tool_use_id: toolUseID
|
|
192007
192119
|
}
|
|
@@ -192429,6 +192541,7 @@ async function checkPermissionsAndCallTool(tool, toolUseID, input, toolUseContex
|
|
|
192429
192541
|
const toolContextModifier = result.contextModifier;
|
|
192430
192542
|
const mcpMeta = result.mcpMeta;
|
|
192431
192543
|
async function addToolResult(toolUseResult, preMappedBlock) {
|
|
192544
|
+
resetToolErrorRepeats(toolUseContext.agentId ?? "main", tool.name);
|
|
192432
192545
|
const toolResultBlock = preMappedBlock ? await processPreMappedToolResultBlock(preMappedBlock, tool.name, tool.maxResultSizeChars) : await processToolResultBlock(tool, toolUseResult, toolUseID);
|
|
192433
192546
|
const contentBlocks = [toolResultBlock];
|
|
192434
192547
|
if ("acceptFeedback" in permissionDecision && permissionDecision.acceptFeedback) {
|
|
@@ -192614,13 +192727,14 @@ async function checkPermissionsAndCallTool(tool, toolUseID, input, toolUseContex
|
|
|
192614
192727
|
delete hookChainsContext.hookChainsCanUseTool;
|
|
192615
192728
|
}
|
|
192616
192729
|
}
|
|
192730
|
+
const repeatedError = recordRepeatedToolError(toolUseContext.agentId ?? "main", tool.name, content);
|
|
192617
192731
|
return [
|
|
192618
192732
|
{
|
|
192619
192733
|
message: createUserMessage({
|
|
192620
192734
|
content: [
|
|
192621
192735
|
{
|
|
192622
192736
|
type: "tool_result",
|
|
192623
|
-
content
|
|
192737
|
+
content: `${content}${repeatedError.nudge ?? ""}`,
|
|
192624
192738
|
is_error: true,
|
|
192625
192739
|
tool_use_id: toolUseID
|
|
192626
192740
|
}
|
|
@@ -192663,6 +192777,7 @@ var init_toolExecution = __esm(() => {
|
|
|
192663
192777
|
init_abortReasons();
|
|
192664
192778
|
init_debug();
|
|
192665
192779
|
init_doomLoop();
|
|
192780
|
+
init_toolErrorRepeats();
|
|
192666
192781
|
init_errors();
|
|
192667
192782
|
init_hooks4();
|
|
192668
192783
|
init_log();
|
|
@@ -257281,7 +257396,7 @@ var init_FileWriteTool = __esm(() => {
|
|
|
257281
257396
|
file_path: exports_external.string().describe("The absolute path to the file to write (must be absolute, not relative)"),
|
|
257282
257397
|
write_mode: exports_external.enum(["replace", "start", "append", "finish"]).default("replace").describe("Write lifecycle mode"),
|
|
257283
257398
|
write_id: exports_external.string().optional().describe("Chunked write identifier"),
|
|
257284
|
-
chunk_index: exports_external.number().int().nonnegative().optional().describe("
|
|
257399
|
+
chunk_index: exports_external.number().int().nonnegative().optional().describe("Chunk sequence index; the first append after start must be 1"),
|
|
257285
257400
|
content: exports_external.string().optional().describe("Content to write to the file")
|
|
257286
257401
|
}).superRefine((value, ctx) => {
|
|
257287
257402
|
if (value.write_mode === "finish") {
|
|
@@ -257600,14 +257715,14 @@ var init_FileWriteTool = __esm(() => {
|
|
|
257600
257715
|
return {
|
|
257601
257716
|
tool_use_id: toolUseID,
|
|
257602
257717
|
type: "tool_result",
|
|
257603
|
-
content: `Started chunked write for ${output.filePath}; next chunk index is ${output.nextChunkIndex}.`
|
|
257718
|
+
content: `Started chunked write for ${output.filePath}; write_id is ` + `${output.writeId}; next chunk index is ${output.nextChunkIndex}.`
|
|
257604
257719
|
};
|
|
257605
257720
|
}
|
|
257606
257721
|
if (output.type === "chunked_append") {
|
|
257607
257722
|
return {
|
|
257608
257723
|
tool_use_id: toolUseID,
|
|
257609
257724
|
type: "tool_result",
|
|
257610
|
-
content: `Appended chunk to ${output.filePath}; next chunk index is ${output.nextChunkIndex}.`
|
|
257725
|
+
content: `Appended chunk to ${output.filePath}; write_id is ` + `${output.writeId}; next chunk index is ${output.nextChunkIndex}.`
|
|
257611
257726
|
};
|
|
257612
257727
|
}
|
|
257613
257728
|
if (output.type === "chunked_finish") {
|
|
@@ -286440,7 +286555,7 @@ function buildQueryConfig() {
|
|
|
286440
286555
|
sessionId: getSessionId(),
|
|
286441
286556
|
gates: {
|
|
286442
286557
|
streamingToolExecution: checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_streaming_tool_execution2"),
|
|
286443
|
-
emitToolUseSummaries: isEnvTruthy(process.env.CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES),
|
|
286558
|
+
emitToolUseSummaries: getSettingsForSource("userSettings")?.toolUseSummariesEnabled ?? isEnvTruthy(process.env.CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES),
|
|
286444
286559
|
isAnt: false,
|
|
286445
286560
|
fastModeEnabled: !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)
|
|
286446
286561
|
}
|
|
@@ -286450,6 +286565,7 @@ var init_config7 = __esm(() => {
|
|
|
286450
286565
|
init_state();
|
|
286451
286566
|
init_growthbook();
|
|
286452
286567
|
init_envUtils();
|
|
286568
|
+
init_settings3();
|
|
286453
286569
|
});
|
|
286454
286570
|
|
|
286455
286571
|
// src/query/deps.ts
|
|
@@ -288926,7 +289042,7 @@ function getAnthropicEnvMetadata() {
|
|
|
288926
289042
|
function getBuildAgeMinutes() {
|
|
288927
289043
|
if (false)
|
|
288928
289044
|
;
|
|
288929
|
-
const buildTime = new Date("2026-10-
|
|
289045
|
+
const buildTime = new Date("2026-10-28T03:21:39.519Z").getTime();
|
|
288930
289046
|
if (isNaN(buildTime))
|
|
288931
289047
|
return;
|
|
288932
289048
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -299430,7 +299546,7 @@ function Feedback({
|
|
|
299430
299546
|
platform: env2.platform,
|
|
299431
299547
|
gitRepo: envInfo.isGit,
|
|
299432
299548
|
terminal: env2.terminal,
|
|
299433
|
-
version: "0.33.
|
|
299549
|
+
version: "0.33.3-by-rayss",
|
|
299434
299550
|
transcript: normalizeMessagesForAPI(messages),
|
|
299435
299551
|
errors: sanitizedErrors,
|
|
299436
299552
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -299619,7 +299735,7 @@ function Feedback({
|
|
|
299619
299735
|
", ",
|
|
299620
299736
|
env2.terminal,
|
|
299621
299737
|
", v",
|
|
299622
|
-
"0.33.
|
|
299738
|
+
"0.33.3-by-rayss"
|
|
299623
299739
|
]
|
|
299624
299740
|
}, undefined, true, undefined, this)
|
|
299625
299741
|
]
|
|
@@ -299727,7 +299843,7 @@ ${sanitizedDescription}
|
|
|
299727
299843
|
` + `**Environment Info**
|
|
299728
299844
|
` + `- Platform: ${env2.platform}
|
|
299729
299845
|
` + `- Terminal: ${env2.terminal}
|
|
299730
|
-
` + `- Version: ${"0.33.
|
|
299846
|
+
` + `- Version: ${"0.33.3-by-rayss"}
|
|
299731
299847
|
` + feedbackIdLine + `
|
|
299732
299848
|
**Errors**
|
|
299733
299849
|
\`\`\`json
|
|
@@ -305630,7 +305746,7 @@ var init_user = __esm(() => {
|
|
|
305630
305746
|
deviceId,
|
|
305631
305747
|
sessionId: getSessionId(),
|
|
305632
305748
|
email: getEmail(),
|
|
305633
|
-
appVersion: "0.33.
|
|
305749
|
+
appVersion: "0.33.3-by-rayss",
|
|
305634
305750
|
platform: getHostPlatformForAnalytics(),
|
|
305635
305751
|
organizationUuid,
|
|
305636
305752
|
accountUuid,
|
|
@@ -306764,7 +306880,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
306764
306880
|
}
|
|
306765
306881
|
async function getDoctorDiagnostic() {
|
|
306766
306882
|
const installationType = await getCurrentInstallationType();
|
|
306767
|
-
const version2 = typeof MACRO !== "undefined" ? "0.33.
|
|
306883
|
+
const version2 = typeof MACRO !== "undefined" ? "0.33.3-by-rayss" : "unknown";
|
|
306768
306884
|
const installationPath = await getInstallationPath();
|
|
306769
306885
|
const invokedBinary = getInvokedBinary();
|
|
306770
306886
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -307475,8 +307591,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
307475
307591
|
const maxVersion = await getMaxVersion();
|
|
307476
307592
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
307477
307593
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
307478
|
-
if (gte("0.33.
|
|
307479
|
-
logForDebugging(`Native installer: current version ${"0.33.
|
|
307594
|
+
if (gte("0.33.3-by-rayss", maxVersion)) {
|
|
307595
|
+
logForDebugging(`Native installer: current version ${"0.33.3-by-rayss"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
307480
307596
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
307481
307597
|
latency_ms: Date.now() - startTime,
|
|
307482
307598
|
max_version: maxVersion,
|
|
@@ -307487,7 +307603,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
307487
307603
|
version2 = maxVersion;
|
|
307488
307604
|
}
|
|
307489
307605
|
}
|
|
307490
|
-
if (!forceReinstall && version2 === "0.33.
|
|
307606
|
+
if (!forceReinstall && version2 === "0.33.3-by-rayss" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
|
|
307491
307607
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
307492
307608
|
logEvent("tengu_native_update_complete", {
|
|
307493
307609
|
latency_ms: Date.now() - startTime,
|
|
@@ -352820,7 +352936,7 @@ function buildPrimarySection() {
|
|
|
352820
352936
|
}, undefined, false, undefined, this);
|
|
352821
352937
|
return [{
|
|
352822
352938
|
label: "Version",
|
|
352823
|
-
value: "0.33.
|
|
352939
|
+
value: "0.33.3-by-rayss"
|
|
352824
352940
|
}, {
|
|
352825
352941
|
label: "Session name",
|
|
352826
352942
|
value: nameValue
|
|
@@ -357434,7 +357550,13 @@ function ModelPicker(t0) {
|
|
|
357434
357550
|
"modelPicker:decreaseEffort": () => handleCycleEffort("left"),
|
|
357435
357551
|
"modelPicker:increaseEffort": () => handleCycleEffort("right"),
|
|
357436
357552
|
...onRefresh ? {
|
|
357437
|
-
"modelPicker:refresh": () =>
|
|
357553
|
+
"modelPicker:refresh": () => {
|
|
357554
|
+
if (viewMode === "search") {
|
|
357555
|
+
onRefresh();
|
|
357556
|
+
return false;
|
|
357557
|
+
}
|
|
357558
|
+
onRefresh();
|
|
357559
|
+
}
|
|
357438
357560
|
} : {}
|
|
357439
357561
|
};
|
|
357440
357562
|
let t13;
|
|
@@ -359039,6 +359161,23 @@ function Config2({
|
|
|
359039
359161
|
});
|
|
359040
359162
|
}
|
|
359041
359163
|
},
|
|
359164
|
+
{
|
|
359165
|
+
id: "toolUseSummariesEnabled",
|
|
359166
|
+
description: "Generate a short label after completed tool batches using an auxiliary model request.",
|
|
359167
|
+
label: "Tool-use summaries",
|
|
359168
|
+
searchText: "tool use summary summaries model request auxiliary",
|
|
359169
|
+
value: settingsData?.toolUseSummariesEnabled ?? false,
|
|
359170
|
+
type: "boolean",
|
|
359171
|
+
onChange(enabled2) {
|
|
359172
|
+
updateSettingsForSource("userSettings", {
|
|
359173
|
+
toolUseSummariesEnabled: enabled2
|
|
359174
|
+
});
|
|
359175
|
+
setSettingsData((prev) => ({
|
|
359176
|
+
...prev,
|
|
359177
|
+
toolUseSummariesEnabled: enabled2
|
|
359178
|
+
}));
|
|
359179
|
+
}
|
|
359180
|
+
},
|
|
359042
359181
|
{
|
|
359043
359182
|
id: "apiRetryMaxRetries",
|
|
359044
359183
|
description: "How many times a failed API request is retried before giving up.",
|
|
@@ -360342,7 +360481,7 @@ function Config2({
|
|
|
360342
360481
|
}
|
|
360343
360482
|
}, undefined, false, undefined, this)
|
|
360344
360483
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsxDEV162(ChannelDowngradeDialog, {
|
|
360345
|
-
currentVersion: "0.33.
|
|
360484
|
+
currentVersion: "0.33.3-by-rayss",
|
|
360346
360485
|
onChoice: (choice) => {
|
|
360347
360486
|
setShowSubmenu(null);
|
|
360348
360487
|
setTabsHidden(false);
|
|
@@ -360354,7 +360493,7 @@ function Config2({
|
|
|
360354
360493
|
autoUpdatesChannel: "stable"
|
|
360355
360494
|
};
|
|
360356
360495
|
if (choice === "stay") {
|
|
360357
|
-
newSettings.minimumVersion = "0.33.
|
|
360496
|
+
newSettings.minimumVersion = "0.33.3-by-rayss";
|
|
360358
360497
|
}
|
|
360359
360498
|
updateSettingsForSource("userSettings", newSettings);
|
|
360360
360499
|
setSettingsData((prev_27) => ({
|
|
@@ -369441,21 +369580,21 @@ function readPackageManager(env4) {
|
|
|
369441
369580
|
}
|
|
369442
369581
|
function readMacroVersion() {
|
|
369443
369582
|
try {
|
|
369444
|
-
return "0.33.
|
|
369583
|
+
return "0.33.3-by-rayss";
|
|
369445
369584
|
} catch {
|
|
369446
369585
|
return;
|
|
369447
369586
|
}
|
|
369448
369587
|
}
|
|
369449
369588
|
function readMacroDisplayVersion() {
|
|
369450
369589
|
try {
|
|
369451
|
-
return "0.33.
|
|
369590
|
+
return "0.33.3-by-rayss";
|
|
369452
369591
|
} catch {
|
|
369453
369592
|
return;
|
|
369454
369593
|
}
|
|
369455
369594
|
}
|
|
369456
369595
|
function readMacroBuildTime() {
|
|
369457
369596
|
try {
|
|
369458
|
-
return "2026-10-
|
|
369597
|
+
return "2026-10-28T03:21:39.519Z";
|
|
369459
369598
|
} catch {
|
|
369460
369599
|
return;
|
|
369461
369600
|
}
|
|
@@ -443905,7 +444044,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
443905
444044
|
smapsRollup,
|
|
443906
444045
|
platform: process.platform,
|
|
443907
444046
|
nodeVersion: process.version,
|
|
443908
|
-
ccVersion: "0.33.
|
|
444047
|
+
ccVersion: "0.33.3-by-rayss"
|
|
443909
444048
|
};
|
|
443910
444049
|
}
|
|
443911
444050
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -444172,7 +444311,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
444172
444311
|
var call75 = async () => {
|
|
444173
444312
|
return {
|
|
444174
444313
|
type: "text",
|
|
444175
|
-
value: `${"0.33.
|
|
444314
|
+
value: `${"0.33.3-by-rayss"} (built ${"2026-10-28T03:21:39.519Z"})`
|
|
444176
444315
|
};
|
|
444177
444316
|
}, version2, version_default;
|
|
444178
444317
|
var init_version2 = __esm(() => {
|
|
@@ -444738,7 +444877,7 @@ async function call76(onDone, _context, args) {
|
|
|
444738
444877
|
}, undefined, false, undefined, this));
|
|
444739
444878
|
return null;
|
|
444740
444879
|
}
|
|
444741
|
-
var PACKAGE_URL = "@rayss-dev/openclaude", CURRENT_VERSION = "0.33.
|
|
444880
|
+
var PACKAGE_URL = "@rayss-dev/openclaude", CURRENT_VERSION = "0.33.3-by-rayss";
|
|
444742
444881
|
var init_update = __esm(() => {
|
|
444743
444882
|
init_StatusIcon();
|
|
444744
444883
|
init_ink2();
|
|
@@ -451759,9 +451898,11 @@ function EffortPicker({ onSelect, onCancel }) {
|
|
|
451759
451898
|
const appStateEffort = useAppState((s) => s.effortValue);
|
|
451760
451899
|
const setAppState = useSetAppState();
|
|
451761
451900
|
const provider2 = getAPIProvider();
|
|
451762
|
-
const
|
|
451763
|
-
const
|
|
451764
|
-
const
|
|
451901
|
+
const routeId = resolveActiveRouteIdFromEnv(process.env);
|
|
451902
|
+
const effortContext = routeId ? { apiProvider: provider2, routeId } : undefined;
|
|
451903
|
+
const usesOpenAIEffort = modelUsesOpenAIEffort(model, effortContext);
|
|
451904
|
+
const availableLevels = getAvailableEffortLevels(model, effortContext);
|
|
451905
|
+
const currentDisplayedLevel = getDisplayedEffortLevel(model, appStateEffort, effortContext);
|
|
451765
451906
|
const modelReasoningEffort = usesOpenAIEffort ? getReasoningEffortForModel(model) : undefined;
|
|
451766
451907
|
const options2 = [
|
|
451767
451908
|
{
|
|
@@ -451807,7 +451948,7 @@ function EffortPicker({ onSelect, onCancel }) {
|
|
|
451807
451948
|
function handleCancel() {
|
|
451808
451949
|
onCancel?.();
|
|
451809
451950
|
}
|
|
451810
|
-
const supportsEffort = modelSupportsEffort(model);
|
|
451951
|
+
const supportsEffort = modelSupportsEffort(model, effortContext);
|
|
451811
451952
|
const initialFocus = usesOpenAIEffort ? appStateEffort ? String(appStateEffort) : modelReasoningEffort || "auto" : appStateEffort ? String(appStateEffort) : "auto";
|
|
451812
451953
|
return /* @__PURE__ */ jsxDEV357(ThemedBox_default, {
|
|
451813
451954
|
flexDirection: "column",
|
|
@@ -451889,6 +452030,7 @@ var init_EffortPicker = __esm(() => {
|
|
|
451889
452030
|
init_AppState();
|
|
451890
452031
|
init_effort();
|
|
451891
452032
|
init_providers2();
|
|
452033
|
+
init_routeMetadata();
|
|
451892
452034
|
init_providerConfig();
|
|
451893
452035
|
init_select();
|
|
451894
452036
|
init_EffortIndicator();
|
|
@@ -456925,7 +457067,7 @@ function generateHtmlReport(data, insights) {
|
|
|
456925
457067
|
</html>`;
|
|
456926
457068
|
}
|
|
456927
457069
|
function buildExportData(data, insights, facets) {
|
|
456928
|
-
const version3 = typeof MACRO !== "undefined" ? "0.33.
|
|
457070
|
+
const version3 = typeof MACRO !== "undefined" ? "0.33.3-by-rayss" : "unknown";
|
|
456929
457071
|
const facets_summary = {
|
|
456930
457072
|
total: facets.size,
|
|
456931
457073
|
goal_categories: {},
|
|
@@ -461959,7 +462101,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
461959
462101
|
init_slowOperations();
|
|
461960
462102
|
init_transcriptFileLock();
|
|
461961
462103
|
init_uuid();
|
|
461962
|
-
VERSION3 = typeof MACRO !== "undefined" ? "0.33.
|
|
462104
|
+
VERSION3 = typeof MACRO !== "undefined" ? "0.33.3-by-rayss" : "unknown";
|
|
461963
462105
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
461964
462106
|
TRANSCRIPT_COPY_CHUNK_BYTES = 64 * 1024;
|
|
461965
462107
|
transcriptRewriteHooksForTesting = {};
|
|
@@ -463448,7 +463590,7 @@ var init_filesystem = __esm(() => {
|
|
|
463448
463590
|
});
|
|
463449
463591
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
463450
463592
|
const nonce = randomBytes19(16).toString("hex");
|
|
463451
|
-
return join150(getClaudeTempDir(), "bundled-skills", "0.33.
|
|
463593
|
+
return join150(getClaudeTempDir(), "bundled-skills", "0.33.3-by-rayss", nonce);
|
|
463452
463594
|
});
|
|
463453
463595
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
463454
463596
|
});
|
|
@@ -474341,7 +474483,9 @@ async function getSkillListingAttachments(toolUseContext) {
|
|
|
474341
474483
|
const localCommands = await getSkillToolCommands(cwd2);
|
|
474342
474484
|
const mcpSkills = getMcpSkillCommands(toolUseContext.getAppState().mcp.commands);
|
|
474343
474485
|
let allCommands = mcpSkills.length > 0 ? uniqBy_default([...localCommands, ...mcpSkills], "name") : localCommands;
|
|
474344
|
-
|
|
474486
|
+
if (skillSearchModules?.featureCheck.isSkillSearchEnabled()) {
|
|
474487
|
+
allCommands = filterToBundledAndMcp(allCommands);
|
|
474488
|
+
}
|
|
474345
474489
|
const agentKey = toolUseContext.agentId ?? "";
|
|
474346
474490
|
let sent = sentSkillNames.get(agentKey);
|
|
474347
474491
|
if (!sent) {
|
|
@@ -496809,6 +496953,7 @@ var init_types13 = __esm(() => {
|
|
|
496809
496953
|
maxOutputTokens: exports_external.number().int().positive().optional().describe("Maximum output tokens per response.")
|
|
496810
496954
|
})).optional().describe("Per-model overrides for context window and max output tokens. " + "Used for OpenAI-compatible models whose limits are not in the built-in catalog. " + "Keys are matched against the model name (exact match preferred, then prefix). " + "CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS / CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS env vars take precedence. " + 'Example: { "qwen3.6-plus": { "contextWindow": 1048576, "maxOutputTokens": 32768 } }'),
|
|
496811
496955
|
modelPricing: ModelPricingSchema.optional().catch(undefined).describe("Exact-model pricing overrides. Token fields are USD per 1,000,000 tokens; " + "webSearchRequests is USD per request and defaults to $0.01 when omitted. " + "All four token fields are required. Keys are exact, case-sensitive resolved model ids. " + "Shared project settings are ignored for personal USD accounting."),
|
|
496956
|
+
toolUseSummariesEnabled: exports_external.boolean().optional().describe("When true, generate a short summary after completed tool batches. Defaults to false."),
|
|
496812
496957
|
apiRetry: exports_external.object({
|
|
496813
496958
|
maxRetries: exports_external.union([exports_external.number().int().nonnegative(), exports_external.literal("unlimited")]).optional().describe("How many times a retryable request is retried (rate limits like 429, " + "capacity 529, 5xx, transient network errors). Set 0 to never retry, " + 'any positive integer, or "unlimited" to keep retrying (with the fixed ' + "delayMs below) until the request succeeds or you cancel. " + "When unset, the OPENCLAUDE_MAX_RETRIES env var is used (default 10)."),
|
|
496814
496959
|
delayMs: exports_external.number().int().nonnegative().optional().describe("Fixed delay in milliseconds between retry attempts when this is set. " + "Set 5000 for 5 seconds, or 0 to retry immediately. A server-provided " + "Retry-After that is even longer is still honored. When unset, the " + "default exponential backoff (and OPENCLAUDE_RETRY_DELAY_MS env var) apply.")
|
|
@@ -501779,7 +501924,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
501779
501924
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
501780
501925
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
501781
501926
|
betas: getSdkBetas(),
|
|
501782
|
-
claude_code_version: "0.33.
|
|
501927
|
+
claude_code_version: "0.33.3-by-rayss",
|
|
501783
501928
|
output_style: outputStyle2,
|
|
501784
501929
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
501785
501930
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -503341,4 +503486,4 @@ export {
|
|
|
503341
503486
|
createAcpServer
|
|
503342
503487
|
};
|
|
503343
503488
|
|
|
503344
|
-
//# debugId=
|
|
503489
|
+
//# debugId=210344A47775717A64756E2164756E21
|