@anthropic-ai/claude-code 0.2.14 → 0.2.19

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 (103) hide show
  1. package/cli.mjs +505 -484
  2. package/package.json +3 -5
  3. package/scripts/preinstall.js +15 -0
  4. package/vendor/sdk/node_modules/@types/node/LICENSE +0 -21
  5. package/vendor/sdk/node_modules/@types/node/README.md +0 -15
  6. package/vendor/sdk/node_modules/@types/node/assert/strict.d.ts +0 -8
  7. package/vendor/sdk/node_modules/@types/node/assert.d.ts +0 -985
  8. package/vendor/sdk/node_modules/@types/node/async_hooks.d.ts +0 -522
  9. package/vendor/sdk/node_modules/@types/node/buffer.buffer.d.ts +0 -385
  10. package/vendor/sdk/node_modules/@types/node/buffer.d.ts +0 -1903
  11. package/vendor/sdk/node_modules/@types/node/child_process.d.ts +0 -1549
  12. package/vendor/sdk/node_modules/@types/node/cluster.d.ts +0 -578
  13. package/vendor/sdk/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  14. package/vendor/sdk/node_modules/@types/node/compatibility/index.d.ts +0 -9
  15. package/vendor/sdk/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  16. package/vendor/sdk/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  17. package/vendor/sdk/node_modules/@types/node/console.d.ts +0 -452
  18. package/vendor/sdk/node_modules/@types/node/constants.d.ts +0 -19
  19. package/vendor/sdk/node_modules/@types/node/crypto.d.ts +0 -4453
  20. package/vendor/sdk/node_modules/@types/node/dgram.d.ts +0 -596
  21. package/vendor/sdk/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
  22. package/vendor/sdk/node_modules/@types/node/dns/promises.d.ts +0 -475
  23. package/vendor/sdk/node_modules/@types/node/dns.d.ts +0 -853
  24. package/vendor/sdk/node_modules/@types/node/dom-events.d.ts +0 -124
  25. package/vendor/sdk/node_modules/@types/node/domain.d.ts +0 -170
  26. package/vendor/sdk/node_modules/@types/node/events.d.ts +0 -819
  27. package/vendor/sdk/node_modules/@types/node/fs/promises.d.ts +0 -1205
  28. package/vendor/sdk/node_modules/@types/node/fs.d.ts +0 -4237
  29. package/vendor/sdk/node_modules/@types/node/globals.d.ts +0 -442
  30. package/vendor/sdk/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  31. package/vendor/sdk/node_modules/@types/node/http.d.ts +0 -1839
  32. package/vendor/sdk/node_modules/@types/node/http2.d.ts +0 -2517
  33. package/vendor/sdk/node_modules/@types/node/https.d.ts +0 -544
  34. package/vendor/sdk/node_modules/@types/node/index.d.ts +0 -90
  35. package/vendor/sdk/node_modules/@types/node/inspector.d.ts +0 -2775
  36. package/vendor/sdk/node_modules/@types/node/module.d.ts +0 -291
  37. package/vendor/sdk/node_modules/@types/node/net.d.ts +0 -924
  38. package/vendor/sdk/node_modules/@types/node/os.d.ts +0 -473
  39. package/vendor/sdk/node_modules/@types/node/package.json +0 -225
  40. package/vendor/sdk/node_modules/@types/node/path.d.ts +0 -191
  41. package/vendor/sdk/node_modules/@types/node/perf_hooks.d.ts +0 -753
  42. package/vendor/sdk/node_modules/@types/node/process.d.ts +0 -1553
  43. package/vendor/sdk/node_modules/@types/node/punycode.d.ts +0 -117
  44. package/vendor/sdk/node_modules/@types/node/querystring.d.ts +0 -141
  45. package/vendor/sdk/node_modules/@types/node/readline/promises.d.ts +0 -154
  46. package/vendor/sdk/node_modules/@types/node/readline.d.ts +0 -715
  47. package/vendor/sdk/node_modules/@types/node/repl.d.ts +0 -430
  48. package/vendor/sdk/node_modules/@types/node/stream/consumers.d.ts +0 -12
  49. package/vendor/sdk/node_modules/@types/node/stream/promises.d.ts +0 -90
  50. package/vendor/sdk/node_modules/@types/node/stream/web.d.ts +0 -523
  51. package/vendor/sdk/node_modules/@types/node/stream.d.ts +0 -1731
  52. package/vendor/sdk/node_modules/@types/node/string_decoder.d.ts +0 -67
  53. package/vendor/sdk/node_modules/@types/node/test.d.ts +0 -1245
  54. package/vendor/sdk/node_modules/@types/node/timers/promises.d.ts +0 -93
  55. package/vendor/sdk/node_modules/@types/node/timers.d.ts +0 -126
  56. package/vendor/sdk/node_modules/@types/node/tls.d.ts +0 -1203
  57. package/vendor/sdk/node_modules/@types/node/trace_events.d.ts +0 -171
  58. package/vendor/sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
  59. package/vendor/sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  60. package/vendor/sdk/node_modules/@types/node/ts5.6/index.d.ts +0 -90
  61. package/vendor/sdk/node_modules/@types/node/tty.d.ts +0 -206
  62. package/vendor/sdk/node_modules/@types/node/url.d.ts +0 -957
  63. package/vendor/sdk/node_modules/@types/node/util.d.ts +0 -2083
  64. package/vendor/sdk/node_modules/@types/node/v8.d.ts +0 -753
  65. package/vendor/sdk/node_modules/@types/node/vm.d.ts +0 -666
  66. package/vendor/sdk/node_modules/@types/node/wasi.d.ts +0 -160
  67. package/vendor/sdk/node_modules/@types/node/worker_threads.d.ts +0 -695
  68. package/vendor/sdk/node_modules/@types/node/zlib.d.ts +0 -517
  69. package/vendor/sdk/node_modules/undici-types/README.md +0 -6
  70. package/vendor/sdk/node_modules/undici-types/agent.d.ts +0 -31
  71. package/vendor/sdk/node_modules/undici-types/api.d.ts +0 -43
  72. package/vendor/sdk/node_modules/undici-types/balanced-pool.d.ts +0 -18
  73. package/vendor/sdk/node_modules/undici-types/cache.d.ts +0 -36
  74. package/vendor/sdk/node_modules/undici-types/client.d.ts +0 -97
  75. package/vendor/sdk/node_modules/undici-types/connector.d.ts +0 -34
  76. package/vendor/sdk/node_modules/undici-types/content-type.d.ts +0 -21
  77. package/vendor/sdk/node_modules/undici-types/cookies.d.ts +0 -28
  78. package/vendor/sdk/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  79. package/vendor/sdk/node_modules/undici-types/dispatcher.d.ts +0 -241
  80. package/vendor/sdk/node_modules/undici-types/errors.d.ts +0 -128
  81. package/vendor/sdk/node_modules/undici-types/fetch.d.ts +0 -209
  82. package/vendor/sdk/node_modules/undici-types/file.d.ts +0 -39
  83. package/vendor/sdk/node_modules/undici-types/filereader.d.ts +0 -54
  84. package/vendor/sdk/node_modules/undici-types/formdata.d.ts +0 -108
  85. package/vendor/sdk/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  86. package/vendor/sdk/node_modules/undici-types/global-origin.d.ts +0 -7
  87. package/vendor/sdk/node_modules/undici-types/handlers.d.ts +0 -9
  88. package/vendor/sdk/node_modules/undici-types/header.d.ts +0 -4
  89. package/vendor/sdk/node_modules/undici-types/index.d.ts +0 -63
  90. package/vendor/sdk/node_modules/undici-types/interceptors.d.ts +0 -5
  91. package/vendor/sdk/node_modules/undici-types/mock-agent.d.ts +0 -50
  92. package/vendor/sdk/node_modules/undici-types/mock-client.d.ts +0 -25
  93. package/vendor/sdk/node_modules/undici-types/mock-errors.d.ts +0 -12
  94. package/vendor/sdk/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  95. package/vendor/sdk/node_modules/undici-types/mock-pool.d.ts +0 -25
  96. package/vendor/sdk/node_modules/undici-types/package.json +0 -55
  97. package/vendor/sdk/node_modules/undici-types/patch.d.ts +0 -71
  98. package/vendor/sdk/node_modules/undici-types/pool-stats.d.ts +0 -19
  99. package/vendor/sdk/node_modules/undici-types/pool.d.ts +0 -28
  100. package/vendor/sdk/node_modules/undici-types/proxy-agent.d.ts +0 -30
  101. package/vendor/sdk/node_modules/undici-types/readable.d.ts +0 -61
  102. package/vendor/sdk/node_modules/undici-types/webidl.d.ts +0 -220
  103. package/vendor/sdk/node_modules/undici-types/websocket.d.ts +0 -131
@@ -1,206 +0,0 @@
1
- /**
2
- * The `tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes.
3
- * In most cases, it will not be necessary or possible to use this module directly.
4
- * However, it can be accessed using:
5
- *
6
- * ```js
7
- * import tty from 'node:tty';
8
- * ```
9
- *
10
- * When Node.js detects that it is being run with a text terminal ("TTY")
11
- * attached, `process.stdin` will, by default, be initialized as an instance of`tty.ReadStream` and both `process.stdout` and `process.stderr` will, by
12
- * default, be instances of `tty.WriteStream`. The preferred method of determining
13
- * whether Node.js is being run within a TTY context is to check that the value of
14
- * the `process.stdout.isTTY` property is `true`:
15
- *
16
- * ```console
17
- * $ node -p -e "Boolean(process.stdout.isTTY)"
18
- * true
19
- * $ node -p -e "Boolean(process.stdout.isTTY)" | cat
20
- * false
21
- * ```
22
- *
23
- * In most cases, there should be little to no reason for an application to
24
- * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
25
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tty.js)
26
- */
27
- declare module "tty" {
28
- import * as net from "node:net";
29
- /**
30
- * The `tty.isatty()` method returns `true` if the given `fd` is associated with
31
- * a TTY and `false` if it is not, including whenever `fd` is not a non-negative
32
- * integer.
33
- * @since v0.5.8
34
- * @param fd A numeric file descriptor
35
- */
36
- function isatty(fd: number): boolean;
37
- /**
38
- * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js
39
- * process and there should be no reason to create additional instances.
40
- * @since v0.5.8
41
- */
42
- class ReadStream extends net.Socket {
43
- constructor(fd: number, options?: net.SocketConstructorOpts);
44
- /**
45
- * A `boolean` that is `true` if the TTY is currently configured to operate as a
46
- * raw device. Defaults to `false`.
47
- * @since v0.7.7
48
- */
49
- isRaw: boolean;
50
- /**
51
- * Allows configuration of `tty.ReadStream` so that it operates as a raw device.
52
- *
53
- * When in raw mode, input is always available character-by-character, not
54
- * including modifiers. Additionally, all special processing of characters by the
55
- * terminal is disabled, including echoing input
56
- * characters. Ctrl+C will no longer cause a `SIGINT` when
57
- * in this mode.
58
- * @since v0.7.7
59
- * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw`
60
- * property will be set to the resulting mode.
61
- * @return The read stream instance.
62
- */
63
- setRawMode(mode: boolean): this;
64
- /**
65
- * A `boolean` that is always `true` for `tty.ReadStream` instances.
66
- * @since v0.5.8
67
- */
68
- isTTY: boolean;
69
- }
70
- /**
71
- * -1 - to the left from cursor
72
- * 0 - the entire line
73
- * 1 - to the right from cursor
74
- */
75
- type Direction = -1 | 0 | 1;
76
- /**
77
- * Represents the writable side of a TTY. In normal circumstances,`process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there
78
- * should be no reason to create additional instances.
79
- * @since v0.5.8
80
- */
81
- class WriteStream extends net.Socket {
82
- constructor(fd: number);
83
- addListener(event: string, listener: (...args: any[]) => void): this;
84
- addListener(event: "resize", listener: () => void): this;
85
- emit(event: string | symbol, ...args: any[]): boolean;
86
- emit(event: "resize"): boolean;
87
- on(event: string, listener: (...args: any[]) => void): this;
88
- on(event: "resize", listener: () => void): this;
89
- once(event: string, listener: (...args: any[]) => void): this;
90
- once(event: "resize", listener: () => void): this;
91
- prependListener(event: string, listener: (...args: any[]) => void): this;
92
- prependListener(event: "resize", listener: () => void): this;
93
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
94
- prependOnceListener(event: "resize", listener: () => void): this;
95
- /**
96
- * `writeStream.clearLine()` clears the current line of this `WriteStream` in a
97
- * direction identified by `dir`.
98
- * @since v0.7.7
99
- * @param callback Invoked once the operation completes.
100
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
101
- */
102
- clearLine(dir: Direction, callback?: () => void): boolean;
103
- /**
104
- * `writeStream.clearScreenDown()` clears this `WriteStream` from the current
105
- * cursor down.
106
- * @since v0.7.7
107
- * @param callback Invoked once the operation completes.
108
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
109
- */
110
- clearScreenDown(callback?: () => void): boolean;
111
- /**
112
- * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified
113
- * position.
114
- * @since v0.7.7
115
- * @param callback Invoked once the operation completes.
116
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
117
- */
118
- cursorTo(x: number, y?: number, callback?: () => void): boolean;
119
- cursorTo(x: number, callback: () => void): boolean;
120
- /**
121
- * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its
122
- * current position.
123
- * @since v0.7.7
124
- * @param callback Invoked once the operation completes.
125
- * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
126
- */
127
- moveCursor(dx: number, dy: number, callback?: () => void): boolean;
128
- /**
129
- * Returns:
130
- *
131
- * * `1` for 2,
132
- * * `4` for 16,
133
- * * `8` for 256,
134
- * * `24` for 16,777,216 colors supported.
135
- *
136
- * Use this to determine what colors the terminal supports. Due to the nature of
137
- * colors in terminals it is possible to either have false positives or false
138
- * negatives. It depends on process information and the environment variables that
139
- * may lie about what terminal is used.
140
- * It is possible to pass in an `env` object to simulate the usage of a specific
141
- * terminal. This can be useful to check how specific environment settings behave.
142
- *
143
- * To enforce a specific color support, use one of the below environment settings.
144
- *
145
- * * 2 colors: `FORCE_COLOR = 0` (Disables colors)
146
- * * 16 colors: `FORCE_COLOR = 1`
147
- * * 256 colors: `FORCE_COLOR = 2`
148
- * * 16,777,216 colors: `FORCE_COLOR = 3`
149
- *
150
- * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables.
151
- * @since v9.9.0
152
- * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
153
- */
154
- getColorDepth(env?: object): number;
155
- /**
156
- * Returns `true` if the `writeStream` supports at least as many colors as provided
157
- * in `count`. Minimum support is 2 (black and white).
158
- *
159
- * This has the same false positives and negatives as described in `writeStream.getColorDepth()`.
160
- *
161
- * ```js
162
- * process.stdout.hasColors();
163
- * // Returns true or false depending on if `stdout` supports at least 16 colors.
164
- * process.stdout.hasColors(256);
165
- * // Returns true or false depending on if `stdout` supports at least 256 colors.
166
- * process.stdout.hasColors({ TMUX: '1' });
167
- * // Returns true.
168
- * process.stdout.hasColors(2 ** 24, { TMUX: '1' });
169
- * // Returns false (the environment setting pretends to support 2 ** 8 colors).
170
- * ```
171
- * @since v11.13.0, v10.16.0
172
- * @param [count=16] The number of colors that are requested (minimum 2).
173
- * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
174
- */
175
- hasColors(count?: number): boolean;
176
- hasColors(env?: object): boolean;
177
- hasColors(count: number, env?: object): boolean;
178
- /**
179
- * `writeStream.getWindowSize()` returns the size of the TTY
180
- * corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent the number
181
- * of columns and rows in the corresponding TTY.
182
- * @since v0.7.7
183
- */
184
- getWindowSize(): [number, number];
185
- /**
186
- * A `number` specifying the number of columns the TTY currently has. This property
187
- * is updated whenever the `'resize'` event is emitted.
188
- * @since v0.7.7
189
- */
190
- columns: number;
191
- /**
192
- * A `number` specifying the number of rows the TTY currently has. This property
193
- * is updated whenever the `'resize'` event is emitted.
194
- * @since v0.7.7
195
- */
196
- rows: number;
197
- /**
198
- * A `boolean` that is always `true`.
199
- * @since v0.5.8
200
- */
201
- isTTY: boolean;
202
- }
203
- }
204
- declare module "node:tty" {
205
- export * from "tty";
206
- }