@anthropic-ai/claude-code 2.0.19 → 2.0.21
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/cli.js +1040 -955
- package/package.json +1 -1
- package/sdk.mjs +4 -3
package/package.json
CHANGED
package/sdk.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://docs.claude.com/en/docs/claude-code/legal-and-compliance.
|
|
3
3
|
|
|
4
|
-
// Version: 2.0.
|
|
4
|
+
// Version: 2.0.21
|
|
5
5
|
|
|
6
6
|
// Want to see the unminified source? We're hiring!
|
|
7
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|
|
@@ -6471,8 +6471,8 @@ class ProcessTransport {
|
|
|
6471
6471
|
}
|
|
6472
6472
|
const isNative = isNativeBinary(pathToClaudeCodeExecutable);
|
|
6473
6473
|
const spawnCommand = isNative ? pathToClaudeCodeExecutable : executable;
|
|
6474
|
-
const spawnArgs = isNative ? args : [...executableArgs, pathToClaudeCodeExecutable, ...args];
|
|
6475
|
-
this.logForDebugging(isNative ? `Spawning Claude Code native binary: ${
|
|
6474
|
+
const spawnArgs = isNative ? [...executableArgs, ...args] : [...executableArgs, pathToClaudeCodeExecutable, ...args];
|
|
6475
|
+
this.logForDebugging(isNative ? `Spawning Claude Code native binary: ${spawnCommand} ${spawnArgs.join(" ")}` : `Spawning Claude Code process: ${spawnCommand} ${spawnArgs.join(" ")}`);
|
|
6476
6476
|
const stderrMode = env.DEBUG || stderr ? "pipe" : "ignore";
|
|
6477
6477
|
this.child = spawn(spawnCommand, spawnArgs, {
|
|
6478
6478
|
cwd,
|
|
@@ -7423,6 +7423,7 @@ function logForDebugging(message, { level } = {
|
|
|
7423
7423
|
writeToStderr(output);
|
|
7424
7424
|
return;
|
|
7425
7425
|
}
|
|
7426
|
+
if (false) {}
|
|
7426
7427
|
if (!getFsImplementation().existsSync(dirname(getDebugLogPath()))) {
|
|
7427
7428
|
getFsImplementation().mkdirSync(dirname(getDebugLogPath()));
|
|
7428
7429
|
}
|