@rayss-dev/openclaude 0.33.1-by-rayss → 0.33.2-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 +65 -45
- package/dist/cli.mjs +26 -26
- package/dist/sdk.mjs +39 -22
- package/package.json +1 -1
package/dist/sdk.mjs
CHANGED
|
@@ -10131,7 +10131,7 @@ var init_version = __esm(() => {
|
|
|
10131
10131
|
import_semver = __toESM(require_semver2(), 1);
|
|
10132
10132
|
fallbackBuildVersion = (() => {
|
|
10133
10133
|
try {
|
|
10134
|
-
return "0.33.
|
|
10134
|
+
return "0.33.2-by-rayss";
|
|
10135
10135
|
} catch {
|
|
10136
10136
|
return "0.0.0";
|
|
10137
10137
|
}
|
|
@@ -70365,7 +70365,7 @@ function getAttributionHeader(fingerprint, policy) {
|
|
|
70365
70365
|
if (!policy.generate) {
|
|
70366
70366
|
return "";
|
|
70367
70367
|
}
|
|
70368
|
-
const version2 = `${"0.33.
|
|
70368
|
+
const version2 = `${"0.33.2-by-rayss"}.${fingerprint}`;
|
|
70369
70369
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
70370
70370
|
const cch = "";
|
|
70371
70371
|
const workload = getWorkload();
|
|
@@ -104001,7 +104001,7 @@ var init_metadata = __esm(() => {
|
|
|
104001
104001
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
104002
104002
|
WHITESPACE_REGEX = /\s+/;
|
|
104003
104003
|
getVersionBase = memoize_default(() => {
|
|
104004
|
-
const match = "0.33.
|
|
104004
|
+
const match = "0.33.2-by-rayss".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
104005
104005
|
return match ? match[0] : undefined;
|
|
104006
104006
|
});
|
|
104007
104007
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -104041,9 +104041,9 @@ var init_metadata = __esm(() => {
|
|
|
104041
104041
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
104042
104042
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
104043
104043
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
104044
|
-
version: "0.33.
|
|
104044
|
+
version: "0.33.2-by-rayss",
|
|
104045
104045
|
versionBase: getVersionBase(),
|
|
104046
|
-
buildTime: "2026-10-
|
|
104046
|
+
buildTime: "2026-10-23T01:50:01.313Z",
|
|
104047
104047
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
104048
104048
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
104049
104049
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -111845,6 +111845,9 @@ function legacyModelSupportsEffort(model, context) {
|
|
|
111845
111845
|
if (modelUsesOpenAIEffort(model, context) && (context?.routeId === "custom" || resolveActiveRouteIdFromEnv(process.env) === "custom")) {
|
|
111846
111846
|
return true;
|
|
111847
111847
|
}
|
|
111848
|
+
if (context?.routeId === "custom" && getReasoningApiProvider(context) === "openai") {
|
|
111849
|
+
return true;
|
|
111850
|
+
}
|
|
111848
111851
|
if (modelUsesOpenAIEffort(model, context) && modelSupportsCodexReasoningEffort(model, context)) {
|
|
111849
111852
|
return true;
|
|
111850
111853
|
}
|
|
@@ -112197,11 +112200,11 @@ var init_effort = __esm(() => {
|
|
|
112197
112200
|
|
|
112198
112201
|
// src/utils/userAgent.ts
|
|
112199
112202
|
function getClaudeCodeUserAgent() {
|
|
112200
|
-
return `claude-code/${"0.33.
|
|
112203
|
+
return `claude-code/${"0.33.2-by-rayss"}`;
|
|
112201
112204
|
}
|
|
112202
112205
|
function getOpenClaudeUserAgent() {
|
|
112203
112206
|
try {
|
|
112204
|
-
return `openclaude/${"0.33.
|
|
112207
|
+
return `openclaude/${"0.33.2-by-rayss"}`;
|
|
112205
112208
|
} catch {
|
|
112206
112209
|
return "openclaude/0.0.0";
|
|
112207
112210
|
}
|
|
@@ -112213,7 +112216,7 @@ function getUserAgent() {
|
|
|
112213
112216
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
112214
112217
|
const workload = getWorkload();
|
|
112215
112218
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
112216
|
-
return `claude-cli/${"0.33.
|
|
112219
|
+
return `claude-cli/${"0.33.2-by-rayss"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
112217
112220
|
}
|
|
112218
112221
|
function getMCPUserAgent() {
|
|
112219
112222
|
const parts = [];
|
|
@@ -112227,7 +112230,7 @@ function getMCPUserAgent() {
|
|
|
112227
112230
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
112228
112231
|
}
|
|
112229
112232
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
112230
|
-
return `claude-code/${"0.33.
|
|
112233
|
+
return `claude-code/${"0.33.2-by-rayss"}${suffix}`;
|
|
112231
112234
|
}
|
|
112232
112235
|
function getWebFetchUserAgent() {
|
|
112233
112236
|
const supportUrl = isFirstPartyAnthropicProvider() ? "https://support.anthropic.com/" : "https://github.com/rayss868/openclaude";
|
|
@@ -115993,6 +115996,12 @@ function tempPathFor(targetPath, writeId) {
|
|
|
115993
115996
|
const resolved = resolve14(targetPath);
|
|
115994
115997
|
return join35(dirname18(resolved), `${basename6(resolved)}.${writeId}.openclaude.tmp`);
|
|
115995
115998
|
}
|
|
115999
|
+
function unknownWriteIdError(writeId, targetPath) {
|
|
116000
|
+
const resolved = resolve14(targetPath);
|
|
116001
|
+
const active = [...states.values()].find((state) => state.targetPath === resolved);
|
|
116002
|
+
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.`;
|
|
116003
|
+
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}`);
|
|
116004
|
+
}
|
|
115996
116005
|
function enforceChunkLimit(content) {
|
|
115997
116006
|
if (content.length > MAX_FILE_WRITE_CHUNK_CHARS) {
|
|
115998
116007
|
throw new ChunkedWriteError(`Chunk is ${content.length} characters but must be at most ` + `${MAX_FILE_WRITE_CHUNK_CHARS} characters; split it into smaller chunks.`);
|
|
@@ -116002,6 +116011,11 @@ async function startChunkedWrite(targetPath, content, snapshot) {
|
|
|
116002
116011
|
enforceChunkLimit(content);
|
|
116003
116012
|
const fs2 = getFsImplementation();
|
|
116004
116013
|
const resolvedTarget = resolve14(targetPath);
|
|
116014
|
+
for (const [existingId, existing] of states) {
|
|
116015
|
+
if (existing.targetPath === resolvedTarget) {
|
|
116016
|
+
await clearChunkedWrite(existingId).catch(() => {});
|
|
116017
|
+
}
|
|
116018
|
+
}
|
|
116005
116019
|
const writeId = randomUUID4();
|
|
116006
116020
|
const tempPath = tempPathFor(resolvedTarget, writeId);
|
|
116007
116021
|
let initialMtimeMs = snapshot.expectedInitialMtimeMs;
|
|
@@ -116028,6 +116042,7 @@ async function startChunkedWrite(targetPath, content, snapshot) {
|
|
|
116028
116042
|
}
|
|
116029
116043
|
}
|
|
116030
116044
|
try {
|
|
116045
|
+
await fs2.mkdir(dirname18(resolvedTarget));
|
|
116031
116046
|
await fs2.writeFile(tempPath, content, { encoding: snapshot.encoding });
|
|
116032
116047
|
} catch (error40) {
|
|
116033
116048
|
await fs2.unlink(tempPath).catch(() => {});
|
|
@@ -116055,7 +116070,7 @@ async function appendChunkedWrite(targetPath, writeId, chunkIndex, content, resp
|
|
|
116055
116070
|
enforceChunkLimit(content);
|
|
116056
116071
|
const state = states.get(writeId);
|
|
116057
116072
|
if (!state) {
|
|
116058
|
-
throw
|
|
116073
|
+
throw unknownWriteIdError(writeId, targetPath);
|
|
116059
116074
|
}
|
|
116060
116075
|
if (resolve14(targetPath) !== state.targetPath) {
|
|
116061
116076
|
throw new ChunkedWriteError(`Target path ${targetPath} does not match the chunked write for ${writeId}`);
|
|
@@ -116086,7 +116101,7 @@ async function discardChunkedWriteState(writeId) {
|
|
|
116086
116101
|
async function commitChunkedWrite(targetPath, writeId) {
|
|
116087
116102
|
const state = states.get(writeId);
|
|
116088
116103
|
if (!state) {
|
|
116089
|
-
throw
|
|
116104
|
+
throw unknownWriteIdError(writeId, targetPath);
|
|
116090
116105
|
}
|
|
116091
116106
|
if (resolve14(targetPath) !== state.targetPath) {
|
|
116092
116107
|
throw new ChunkedWriteError(`Target path ${targetPath} does not match the chunked write for ${writeId}`);
|
|
@@ -156975,7 +156990,7 @@ function computeFingerprint(messageText2, version2) {
|
|
|
156975
156990
|
}
|
|
156976
156991
|
function computeFingerprintFromMessages(messages) {
|
|
156977
156992
|
const firstMessageText = extractFirstMessageText(messages);
|
|
156978
|
-
return computeFingerprint(firstMessageText, "0.33.
|
|
156993
|
+
return computeFingerprint(firstMessageText, "0.33.2-by-rayss");
|
|
156979
156994
|
}
|
|
156980
156995
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
156981
156996
|
var init_fingerprint = () => {};
|
|
@@ -158458,7 +158473,7 @@ var init_client2 = __esm(() => {
|
|
|
158458
158473
|
const client = new Client({
|
|
158459
158474
|
name: "claude-code",
|
|
158460
158475
|
title: "OpenClaude",
|
|
158461
|
-
version: "0.33.
|
|
158476
|
+
version: "0.33.2-by-rayss",
|
|
158462
158477
|
description: "OpenClaude — coding-agent CLI for any LLM provider",
|
|
158463
158478
|
websiteUrl: PRODUCT_URL
|
|
158464
158479
|
}, {
|
|
@@ -174148,7 +174163,7 @@ var init_FileWriteTool = __esm(() => {
|
|
|
174148
174163
|
file_path: exports_external.string().describe("The absolute path to the file to write (must be absolute, not relative)"),
|
|
174149
174164
|
write_mode: exports_external.enum(["replace", "start", "append", "finish"]).default("replace").describe("Write lifecycle mode"),
|
|
174150
174165
|
write_id: exports_external.string().optional().describe("Chunked write identifier"),
|
|
174151
|
-
chunk_index: exports_external.number().int().nonnegative().optional().describe("
|
|
174166
|
+
chunk_index: exports_external.number().int().nonnegative().optional().describe("Chunk sequence index; the first append after start must be 1"),
|
|
174152
174167
|
content: exports_external.string().optional().describe("Content to write to the file")
|
|
174153
174168
|
}).superRefine((value, ctx) => {
|
|
174154
174169
|
if (value.write_mode === "finish") {
|
|
@@ -174467,14 +174482,14 @@ var init_FileWriteTool = __esm(() => {
|
|
|
174467
174482
|
return {
|
|
174468
174483
|
tool_use_id: toolUseID,
|
|
174469
174484
|
type: "tool_result",
|
|
174470
|
-
content: `Started chunked write for ${output.filePath}; next chunk index is ${output.nextChunkIndex}.`
|
|
174485
|
+
content: `Started chunked write for ${output.filePath}; write_id is ` + `${output.writeId}; next chunk index is ${output.nextChunkIndex}.`
|
|
174471
174486
|
};
|
|
174472
174487
|
}
|
|
174473
174488
|
if (output.type === "chunked_append") {
|
|
174474
174489
|
return {
|
|
174475
174490
|
tool_use_id: toolUseID,
|
|
174476
174491
|
type: "tool_result",
|
|
174477
|
-
content: `Appended chunk to ${output.filePath}; next chunk index is ${output.nextChunkIndex}.`
|
|
174492
|
+
content: `Appended chunk to ${output.filePath}; write_id is ` + `${output.writeId}; next chunk index is ${output.nextChunkIndex}.`
|
|
174478
174493
|
};
|
|
174479
174494
|
}
|
|
174480
174495
|
if (output.type === "chunked_finish") {
|
|
@@ -229427,7 +229442,9 @@ async function getSkillListingAttachments(toolUseContext) {
|
|
|
229427
229442
|
const localCommands = await getSkillToolCommands(cwd2);
|
|
229428
229443
|
const mcpSkills = getMcpSkillCommands(toolUseContext.getAppState().mcp.commands);
|
|
229429
229444
|
let allCommands = mcpSkills.length > 0 ? uniqBy_default([...localCommands, ...mcpSkills], "name") : localCommands;
|
|
229430
|
-
|
|
229445
|
+
if (skillSearchModules?.featureCheck.isSkillSearchEnabled()) {
|
|
229446
|
+
allCommands = filterToBundledAndMcp(allCommands);
|
|
229447
|
+
}
|
|
229431
229448
|
const agentKey = toolUseContext.agentId ?? "";
|
|
229432
229449
|
let sent = sentSkillNames.get(agentKey);
|
|
229433
229450
|
if (!sent) {
|
|
@@ -238445,7 +238462,7 @@ function getAnthropicEnvMetadata() {
|
|
|
238445
238462
|
function getBuildAgeMinutes() {
|
|
238446
238463
|
if (false)
|
|
238447
238464
|
;
|
|
238448
|
-
const buildTime = new Date("2026-10-
|
|
238465
|
+
const buildTime = new Date("2026-10-23T01:50:01.313Z").getTime();
|
|
238449
238466
|
if (isNaN(buildTime))
|
|
238450
238467
|
return;
|
|
238451
238468
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -267444,7 +267461,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
267444
267461
|
init_slowOperations();
|
|
267445
267462
|
init_transcriptFileLock();
|
|
267446
267463
|
init_uuid();
|
|
267447
|
-
VERSION3 = typeof MACRO !== "undefined" ? "0.33.
|
|
267464
|
+
VERSION3 = typeof MACRO !== "undefined" ? "0.33.2-by-rayss" : "unknown";
|
|
267448
267465
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
267449
267466
|
TRANSCRIPT_COPY_CHUNK_BYTES = 64 * 1024;
|
|
267450
267467
|
transcriptRewriteHooksForTesting = {};
|
|
@@ -268921,7 +268938,7 @@ var init_filesystem = __esm(() => {
|
|
|
268921
268938
|
});
|
|
268922
268939
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
268923
268940
|
const nonce = randomBytes10(16).toString("hex");
|
|
268924
|
-
return join94(getClaudeTempDir(), "bundled-skills", "0.33.
|
|
268941
|
+
return join94(getClaudeTempDir(), "bundled-skills", "0.33.2-by-rayss", nonce);
|
|
268925
268942
|
});
|
|
268926
268943
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
268927
268944
|
});
|
|
@@ -283460,7 +283477,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
283460
283477
|
slash_commands: inputs.commands.filter((c7) => c7.userInvocable !== false).map((c7) => c7.name),
|
|
283461
283478
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
283462
283479
|
betas: getSdkBetas(),
|
|
283463
|
-
claude_code_version: "0.33.
|
|
283480
|
+
claude_code_version: "0.33.2-by-rayss",
|
|
283464
283481
|
output_style: outputStyle,
|
|
283465
283482
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
283466
283483
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -288084,4 +288101,4 @@ export {
|
|
|
288084
288101
|
AbortError
|
|
288085
288102
|
};
|
|
288086
288103
|
|
|
288087
|
-
//# debugId=
|
|
288104
|
+
//# debugId=FF699A9CFF4EF9BA64756E2164756E21
|
package/package.json
CHANGED