@anthropic-ai/claude-code 1.0.87 → 1.0.89

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "bin": {
package/sdk-tools.d.ts CHANGED
@@ -303,6 +303,7 @@ export interface TodoWriteInput {
303
303
  todos: {
304
304
  content: string;
305
305
  status: "pending" | "in_progress" | "completed";
306
+ activeForm: string;
306
307
  }[];
307
308
  }
308
309
  export interface WebFetchInput {
package/sdk.d.ts CHANGED
@@ -126,6 +126,7 @@ export type Options = {
126
126
  env?: Dict<string>;
127
127
  executable?: 'bun' | 'deno' | 'node';
128
128
  executableArgs?: string[];
129
+ extraArgs?: Record<string, string | null>;
129
130
  fallbackModel?: string;
130
131
  hooks?: Partial<Record<HookEvent, HookCallbackMatcher[]>>;
131
132
  maxThinkingTokens?: number;
package/sdk.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
4
4
 
5
- // Version: 1.0.87
5
+ // Version: 1.0.89
6
6
 
7
7
  // Want to see the unminified source? We're hiring!
8
8
  // https://job-boards.greenhouse.io/anthropic/jobs/4816199008
@@ -3020,6 +3020,7 @@ class ProcessTransport {
3020
3020
  cwd,
3021
3021
  executable = this.isRunningWithBun() ? "bun" : "node",
3022
3022
  executableArgs = [],
3023
+ extraArgs = {},
3023
3024
  pathToClaudeCodeExecutable,
3024
3025
  env = { ...process.env },
3025
3026
  stderr,
@@ -3094,6 +3095,13 @@ class ProcessTransport {
3094
3095
  for (const dir of additionalDirectories) {
3095
3096
  args.push("--add-dir", dir);
3096
3097
  }
3098
+ for (const [flag, value] of Object.entries(extraArgs)) {
3099
+ if (value === null) {
3100
+ args.push(`--${flag}`);
3101
+ } else {
3102
+ args.push(`--${flag}`, value);
3103
+ }
3104
+ }
3097
3105
  if (!env.CLAUDE_CODE_ENTRYPOINT) {
3098
3106
  env.CLAUDE_CODE_ENTRYPOINT = "sdk-ts";
3099
3107
  }
@@ -3863,6 +3871,7 @@ function query({
3863
3871
  env,
3864
3872
  executable = isRunningWithBun() ? "bun" : "node",
3865
3873
  executableArgs = [],
3874
+ extraArgs = {},
3866
3875
  fallbackModel,
3867
3876
  hooks,
3868
3877
  maxTurns,
@@ -3907,6 +3916,7 @@ function query({
3907
3916
  cwd,
3908
3917
  executable,
3909
3918
  executableArgs,
3919
+ extraArgs,
3910
3920
  pathToClaudeCodeExecutable,
3911
3921
  env,
3912
3922
  stderr,
Binary file