@anthropic-ai/claude-code 0.2.9 → 0.2.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.
- package/cli.mjs +497 -479
- package/package.json +3 -2
- package/scripts/preinstall.js +15 -0
- package/vendor/sdk/node_modules/@types/node/LICENSE +0 -21
- package/vendor/sdk/node_modules/@types/node/README.md +0 -15
- package/vendor/sdk/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/vendor/sdk/node_modules/@types/node/assert.d.ts +0 -985
- package/vendor/sdk/node_modules/@types/node/async_hooks.d.ts +0 -522
- package/vendor/sdk/node_modules/@types/node/buffer.buffer.d.ts +0 -385
- package/vendor/sdk/node_modules/@types/node/buffer.d.ts +0 -1903
- package/vendor/sdk/node_modules/@types/node/child_process.d.ts +0 -1549
- package/vendor/sdk/node_modules/@types/node/cluster.d.ts +0 -578
- package/vendor/sdk/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/vendor/sdk/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/vendor/sdk/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/vendor/sdk/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/vendor/sdk/node_modules/@types/node/console.d.ts +0 -452
- package/vendor/sdk/node_modules/@types/node/constants.d.ts +0 -19
- package/vendor/sdk/node_modules/@types/node/crypto.d.ts +0 -4453
- package/vendor/sdk/node_modules/@types/node/dgram.d.ts +0 -596
- package/vendor/sdk/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
- package/vendor/sdk/node_modules/@types/node/dns/promises.d.ts +0 -475
- package/vendor/sdk/node_modules/@types/node/dns.d.ts +0 -853
- package/vendor/sdk/node_modules/@types/node/dom-events.d.ts +0 -124
- package/vendor/sdk/node_modules/@types/node/domain.d.ts +0 -170
- package/vendor/sdk/node_modules/@types/node/events.d.ts +0 -819
- package/vendor/sdk/node_modules/@types/node/fs/promises.d.ts +0 -1205
- package/vendor/sdk/node_modules/@types/node/fs.d.ts +0 -4237
- package/vendor/sdk/node_modules/@types/node/globals.d.ts +0 -442
- package/vendor/sdk/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/vendor/sdk/node_modules/@types/node/http.d.ts +0 -1839
- package/vendor/sdk/node_modules/@types/node/http2.d.ts +0 -2517
- package/vendor/sdk/node_modules/@types/node/https.d.ts +0 -544
- package/vendor/sdk/node_modules/@types/node/index.d.ts +0 -90
- package/vendor/sdk/node_modules/@types/node/inspector.d.ts +0 -2775
- package/vendor/sdk/node_modules/@types/node/module.d.ts +0 -291
- package/vendor/sdk/node_modules/@types/node/net.d.ts +0 -924
- package/vendor/sdk/node_modules/@types/node/os.d.ts +0 -473
- package/vendor/sdk/node_modules/@types/node/package.json +0 -225
- package/vendor/sdk/node_modules/@types/node/path.d.ts +0 -191
- package/vendor/sdk/node_modules/@types/node/perf_hooks.d.ts +0 -753
- package/vendor/sdk/node_modules/@types/node/process.d.ts +0 -1553
- package/vendor/sdk/node_modules/@types/node/punycode.d.ts +0 -117
- package/vendor/sdk/node_modules/@types/node/querystring.d.ts +0 -141
- package/vendor/sdk/node_modules/@types/node/readline/promises.d.ts +0 -154
- package/vendor/sdk/node_modules/@types/node/readline.d.ts +0 -715
- package/vendor/sdk/node_modules/@types/node/repl.d.ts +0 -430
- package/vendor/sdk/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/vendor/sdk/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/vendor/sdk/node_modules/@types/node/stream/web.d.ts +0 -523
- package/vendor/sdk/node_modules/@types/node/stream.d.ts +0 -1731
- package/vendor/sdk/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/vendor/sdk/node_modules/@types/node/test.d.ts +0 -1245
- package/vendor/sdk/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/vendor/sdk/node_modules/@types/node/timers.d.ts +0 -126
- package/vendor/sdk/node_modules/@types/node/tls.d.ts +0 -1203
- package/vendor/sdk/node_modules/@types/node/trace_events.d.ts +0 -171
- package/vendor/sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
- package/vendor/sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/vendor/sdk/node_modules/@types/node/ts5.6/index.d.ts +0 -90
- package/vendor/sdk/node_modules/@types/node/tty.d.ts +0 -206
- package/vendor/sdk/node_modules/@types/node/url.d.ts +0 -957
- package/vendor/sdk/node_modules/@types/node/util.d.ts +0 -2083
- package/vendor/sdk/node_modules/@types/node/v8.d.ts +0 -753
- package/vendor/sdk/node_modules/@types/node/vm.d.ts +0 -666
- package/vendor/sdk/node_modules/@types/node/wasi.d.ts +0 -160
- package/vendor/sdk/node_modules/@types/node/worker_threads.d.ts +0 -695
- package/vendor/sdk/node_modules/@types/node/zlib.d.ts +0 -517
- package/vendor/sdk/node_modules/undici-types/README.md +0 -6
- package/vendor/sdk/node_modules/undici-types/agent.d.ts +0 -31
- package/vendor/sdk/node_modules/undici-types/api.d.ts +0 -43
- package/vendor/sdk/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/vendor/sdk/node_modules/undici-types/cache.d.ts +0 -36
- package/vendor/sdk/node_modules/undici-types/client.d.ts +0 -97
- package/vendor/sdk/node_modules/undici-types/connector.d.ts +0 -34
- package/vendor/sdk/node_modules/undici-types/content-type.d.ts +0 -21
- package/vendor/sdk/node_modules/undici-types/cookies.d.ts +0 -28
- package/vendor/sdk/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/vendor/sdk/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/vendor/sdk/node_modules/undici-types/errors.d.ts +0 -128
- package/vendor/sdk/node_modules/undici-types/fetch.d.ts +0 -209
- package/vendor/sdk/node_modules/undici-types/file.d.ts +0 -39
- package/vendor/sdk/node_modules/undici-types/filereader.d.ts +0 -54
- package/vendor/sdk/node_modules/undici-types/formdata.d.ts +0 -108
- package/vendor/sdk/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/vendor/sdk/node_modules/undici-types/global-origin.d.ts +0 -7
- package/vendor/sdk/node_modules/undici-types/handlers.d.ts +0 -9
- package/vendor/sdk/node_modules/undici-types/header.d.ts +0 -4
- package/vendor/sdk/node_modules/undici-types/index.d.ts +0 -63
- package/vendor/sdk/node_modules/undici-types/interceptors.d.ts +0 -5
- package/vendor/sdk/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/vendor/sdk/node_modules/undici-types/mock-client.d.ts +0 -25
- package/vendor/sdk/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/vendor/sdk/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/vendor/sdk/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/vendor/sdk/node_modules/undici-types/package.json +0 -55
- package/vendor/sdk/node_modules/undici-types/patch.d.ts +0 -71
- package/vendor/sdk/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/vendor/sdk/node_modules/undici-types/pool.d.ts +0 -28
- package/vendor/sdk/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/vendor/sdk/node_modules/undici-types/readable.d.ts +0 -61
- package/vendor/sdk/node_modules/undici-types/webidl.d.ts +0 -220
- package/vendor/sdk/node_modules/undici-types/websocket.d.ts +0 -131
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-code",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"bin": {
|
|
5
5
|
"claude": "cli.mjs"
|
|
6
6
|
},
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/anthropics/claude-code/issues"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"prepare": "node -e \"if (!process.env.AUTHORIZED) { console.error('ERROR: Direct publishing is not allowed.\\nPlease use the publish-external.sh script to publish this package.'); process.exit(1); }\""
|
|
23
|
+
"prepare": "node -e \"if (!process.env.AUTHORIZED) { console.error('ERROR: Direct publishing is not allowed.\\nPlease use the publish-external.sh script to publish this package.'); process.exit(1); }\"",
|
|
24
|
+
"preinstall": "node scripts/preinstall.js"
|
|
24
25
|
},
|
|
25
26
|
"optionalDependencies": {
|
|
26
27
|
"@img/sharp-darwin-arm64": "^0.33.5",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preinstall script to check for Windows environment and exit gracefully
|
|
3
|
+
* with an informative message if detected.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Check if running on Windows
|
|
7
|
+
if (process.platform === 'win32') {
|
|
8
|
+
console.error('\x1b[31m%s\x1b[0m', 'Error: Claude Code is not supported on Windows.');
|
|
9
|
+
console.error('\x1b[33m%s\x1b[0m', 'Claude Code requires macOS or Linux to run properly.');
|
|
10
|
+
console.error('\x1b[33m%s\x1b[0m', 'If you are using WSL (Windows Subsystem for Linux):');
|
|
11
|
+
console.error('\x1b[33m%s\x1b[0m', ' 1. Make sure you are running npm install from within the WSL terminal, not from PowerShell or CMD');
|
|
12
|
+
console.error('\x1b[33m%s\x1b[0m', ' 2. If you\'re still seeing this message in WSL, your environment may be incorrectly reporting as Windows');
|
|
13
|
+
console.error('\x1b[33m%s\x1b[0m', 'Please visit https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#check-system-requirements for troubleshooting information.');
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/node`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for node (https://nodejs.org/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Wed, 11 Dec 2024 09:35:14 GMT
|
|
12
|
-
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
|
-
|
|
14
|
-
# Credits
|
|
15
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|