@anthropic-ai/claude-code 2.0.8 → 2.0.10
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 +1060 -1040
- package/package.json +1 -1
- package/sdk.d.ts +1 -0
- package/sdk.mjs +1 -9
package/package.json
CHANGED
package/sdk.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export type SyncHookJSONOutput = {
|
|
|
204
204
|
hookEventName: 'PreToolUse';
|
|
205
205
|
permissionDecision?: 'allow' | 'deny' | 'ask';
|
|
206
206
|
permissionDecisionReason?: string;
|
|
207
|
+
updatedInput?: Record<string, unknown>;
|
|
207
208
|
} | {
|
|
208
209
|
hookEventName: 'UserPromptSubmit';
|
|
209
210
|
additionalContext?: string;
|
package/sdk.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
2
|
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
|
|
4
3
|
|
|
5
|
-
// Version: 2.0.
|
|
4
|
+
// Version: 2.0.10
|
|
6
5
|
|
|
7
6
|
// Want to see the unminified source? We're hiring!
|
|
8
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|
|
9
|
-
|
|
10
8
|
var __create = Object.create;
|
|
11
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
12
10
|
var __defProp = Object.defineProperty;
|
|
@@ -6222,15 +6220,9 @@ import { createInterface } from "readline";
|
|
|
6222
6220
|
import * as fs from "fs";
|
|
6223
6221
|
import { stat as statPromise, open } from "fs/promises";
|
|
6224
6222
|
var NodeFsOperations = {
|
|
6225
|
-
accessSync(fsPath, mode) {
|
|
6226
|
-
fs.accessSync(fsPath, mode);
|
|
6227
|
-
},
|
|
6228
6223
|
cwd() {
|
|
6229
6224
|
return process.cwd();
|
|
6230
6225
|
},
|
|
6231
|
-
chmodSync(fsPath, mode) {
|
|
6232
|
-
fs.chmodSync(fsPath, mode);
|
|
6233
|
-
},
|
|
6234
6226
|
existsSync(fsPath) {
|
|
6235
6227
|
return fs.existsSync(fsPath);
|
|
6236
6228
|
},
|