@anthropic-ai/claude-code 2.0.15 → 2.0.18

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 (4) hide show
  1. package/cli.js +1665 -1670
  2. package/package.json +1 -1
  3. package/sdk.d.ts +4 -1
  4. package/sdk.mjs +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.0.15",
3
+ "version": "2.0.18",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "bin": {
package/sdk.d.ts CHANGED
@@ -227,7 +227,9 @@ export type Options = {
227
227
  customSystemPrompt?: string;
228
228
  cwd?: string;
229
229
  disallowedTools?: string[];
230
- env?: Dict<string>;
230
+ env?: {
231
+ [envVar: string]: string | undefined;
232
+ };
231
233
  executable?: 'bun' | 'deno' | 'node';
232
234
  executableArgs?: string[];
233
235
  extraArgs?: Record<string, string | null>;
@@ -352,6 +354,7 @@ export type SDKSystemMessage = SDKMessageBase & {
352
354
  subtype: 'init';
353
355
  agents?: string[];
354
356
  apiKeySource: ApiKeySource;
357
+ claude_code_version: string;
355
358
  cwd: string;
356
359
  tools: string[];
357
360
  mcp_servers: {
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.15
4
+ // Version: 2.0.18
5
5
 
6
6
  // Want to see the unminified source? We're hiring!
7
7
  // https://job-boards.greenhouse.io/anthropic/jobs/4816199008
@@ -7374,6 +7374,7 @@ function getInitialState() {
7374
7374
  loggerProvider: null,
7375
7375
  eventLogger: null,
7376
7376
  meterProvider: null,
7377
+ tracerProvider: null,
7377
7378
  agentColorMap: new Map,
7378
7379
  agentColorIndex: 0,
7379
7380
  envVarValidators: [bashMaxOutputLengthValidator, maxOutputTokensValidator],