@anthropic-ai/claude-agent-sdk 0.0.4

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 (53) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +41 -0
  3. package/cli.js +3782 -0
  4. package/package.json +38 -0
  5. package/sdk-tools.d.ts +313 -0
  6. package/sdk.d.ts +23 -0
  7. package/sdk.mjs +14173 -0
  8. package/sdkTypes.d.ts +416 -0
  9. package/vendor/claude-code-jetbrains-plugin/lib/annotations-23.0.0.jar +0 -0
  10. package/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.11-beta-searchableOptions.jar +0 -0
  11. package/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.11-beta.jar +0 -0
  12. package/vendor/claude-code-jetbrains-plugin/lib/config-1.4.3.jar +0 -0
  13. package/vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar +0 -0
  14. package/vendor/claude-code-jetbrains-plugin/lib/kotlin-logging-jvm-7.0.0.jar +0 -0
  15. package/vendor/claude-code-jetbrains-plugin/lib/kotlin-reflect-2.0.21.jar +0 -0
  16. package/vendor/claude-code-jetbrains-plugin/lib/kotlin-sdk-jvm-0.4.0.jar +0 -0
  17. package/vendor/claude-code-jetbrains-plugin/lib/kotlin-stdlib-2.1.20.jar +0 -0
  18. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-core-jvm-1.9.0.jar +0 -0
  19. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-slf4j-1.9.0.jar +0 -0
  20. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-bytestring-jvm-0.5.4.jar +0 -0
  21. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-core-jvm-0.5.4.jar +0 -0
  22. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-core-jvm-1.8.1.jar +0 -0
  23. package/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-json-jvm-1.8.1.jar +0 -0
  24. package/vendor/claude-code-jetbrains-plugin/lib/ktor-client-cio-jvm-3.0.2.jar +0 -0
  25. package/vendor/claude-code-jetbrains-plugin/lib/ktor-client-core-jvm-3.0.2.jar +0 -0
  26. package/vendor/claude-code-jetbrains-plugin/lib/ktor-events-jvm-3.0.2.jar +0 -0
  27. package/vendor/claude-code-jetbrains-plugin/lib/ktor-http-cio-jvm-3.0.2.jar +0 -0
  28. package/vendor/claude-code-jetbrains-plugin/lib/ktor-http-jvm-3.0.2.jar +0 -0
  29. package/vendor/claude-code-jetbrains-plugin/lib/ktor-io-jvm-3.0.2.jar +0 -0
  30. package/vendor/claude-code-jetbrains-plugin/lib/ktor-network-jvm-3.0.2.jar +0 -0
  31. package/vendor/claude-code-jetbrains-plugin/lib/ktor-network-tls-jvm-3.0.2.jar +0 -0
  32. package/vendor/claude-code-jetbrains-plugin/lib/ktor-serialization-jvm-3.0.2.jar +0 -0
  33. package/vendor/claude-code-jetbrains-plugin/lib/ktor-server-cio-jvm-3.0.2.jar +0 -0
  34. package/vendor/claude-code-jetbrains-plugin/lib/ktor-server-core-jvm-3.0.2.jar +0 -0
  35. package/vendor/claude-code-jetbrains-plugin/lib/ktor-server-sse-jvm-3.0.2.jar +0 -0
  36. package/vendor/claude-code-jetbrains-plugin/lib/ktor-server-websockets-jvm-3.0.2.jar +0 -0
  37. package/vendor/claude-code-jetbrains-plugin/lib/ktor-sse-jvm-3.0.2.jar +0 -0
  38. package/vendor/claude-code-jetbrains-plugin/lib/ktor-utils-jvm-3.0.2.jar +0 -0
  39. package/vendor/claude-code-jetbrains-plugin/lib/ktor-websocket-serialization-jvm-3.0.2.jar +0 -0
  40. package/vendor/claude-code-jetbrains-plugin/lib/ktor-websockets-jvm-3.0.2.jar +0 -0
  41. package/vendor/claude-code-jetbrains-plugin/lib/slf4j-api-2.0.16.jar +0 -0
  42. package/vendor/ripgrep/COPYING +3 -0
  43. package/vendor/ripgrep/arm64-darwin/rg +0 -0
  44. package/vendor/ripgrep/arm64-darwin/ripgrep.node +0 -0
  45. package/vendor/ripgrep/arm64-linux/rg +0 -0
  46. package/vendor/ripgrep/arm64-linux/ripgrep.node +0 -0
  47. package/vendor/ripgrep/x64-darwin/rg +0 -0
  48. package/vendor/ripgrep/x64-darwin/ripgrep.node +0 -0
  49. package/vendor/ripgrep/x64-linux/rg +0 -0
  50. package/vendor/ripgrep/x64-linux/ripgrep.node +0 -0
  51. package/vendor/ripgrep/x64-win32/rg.exe +0 -0
  52. package/vendor/ripgrep/x64-win32/ripgrep.node +0 -0
  53. package/yoga.wasm +0 -0
package/LICENSE.md ADDED
@@ -0,0 +1 @@
1
+ © Anthropic PBC. All rights reserved. Use is subject to Anthropic's [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms).
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Claude Code
2
+
3
+ ![](https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat-square) [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-code)
4
+
5
+ [npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square
6
+
7
+ Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows -- all through natural language commands. Use it in your terminal, IDE, or tag @claude on Github.
8
+
9
+ **Learn more in the [official documentation](https://docs.claude.com/en/docs/claude-code/overview)**.
10
+
11
+ <img src="https://github.com/anthropics/claude-code/blob/main/demo.gif?raw=1" />
12
+
13
+ ## Get started
14
+
15
+ 1. Install Claude Code:
16
+
17
+ ```sh
18
+ npm install -g @anthropic-ai/claude-code
19
+ ```
20
+
21
+ 2. Navigate to your project directory and run `claude`.
22
+
23
+ ## Reporting Bugs
24
+
25
+ We welcome feedback during this beta period. Use the `/bug` command to report issues directly within Claude Code, or file a [GitHub issue](https://github.com/anthropics/claude-code/issues).
26
+
27
+ ## Data collection, usage, and retention
28
+
29
+ When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the `/bug` command.
30
+
31
+ ### How we use your data
32
+
33
+ We may use feedback to improve our products and services, but we will not train generative models using your feedback from Claude Code. Given their potentially sensitive nature, we store user feedback transcripts for only 30 days.
34
+
35
+ If you choose to send us feedback about Claude Code, such as transcripts of your usage, Anthropic may use that feedback to debug related issues and improve Claude Code's functionality (e.g., to reduce the risk of similar bugs occurring in the future).
36
+
37
+ ### Privacy safeguards
38
+
39
+ We have implemented several safeguards to protect your data, including limited retention periods for sensitive information, restricted access to user session data, and clear policies against using feedback for model training.
40
+
41
+ For full details, please review our [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) and [Privacy Policy](https://www.anthropic.com/legal/privacy).