@anthropic-ai/claude-agent-sdk 0.0.4 → 0.1.1
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/README.md +18 -15
- package/cli.js +967 -1041
- package/package.json +1 -1
- package/sdk-tools.d.ts +0 -42
- package/sdk.mjs +2 -2
package/README.md
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
# Claude
|
|
1
|
+
# Claude Agent SDK
|
|
2
2
|
|
|
3
|
-
 [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-
|
|
3
|
+
 [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk)
|
|
4
4
|
|
|
5
|
-
[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-
|
|
5
|
+
[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-agent-sdk.svg?style=flat-square
|
|
6
6
|
|
|
7
|
-
Claude
|
|
7
|
+
The Claude Agent SDK enables you to programmatically build AI agents with Claude Code's capabilities. Create autonomous agents that can understand codebases, edit files, run commands, and execute complex workflows.
|
|
8
8
|
|
|
9
|
-
**Learn more in the [official documentation](https://docs.claude.com/en/
|
|
10
|
-
|
|
11
|
-
<img src="https://github.com/anthropics/claude-code/blob/main/demo.gif?raw=1" />
|
|
9
|
+
**Learn more in the [official documentation](https://docs.claude.com/en/api/agent-sdk/overview)**.
|
|
12
10
|
|
|
13
11
|
## Get started
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
Install the Claude Agent SDK:
|
|
16
14
|
|
|
17
15
|
```sh
|
|
18
|
-
npm install
|
|
16
|
+
npm install @anthropic-ai/claude-agent-sdk
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
## Migrating from the Claude Code SDK
|
|
20
|
+
|
|
21
|
+
The Claude Code SDK is now the Claude Agent SDK. Please check out the [migration guide](https://docs.claude.com/en/docs/claude-code/sdk/migration-guide) for details on breaking changes.
|
|
22
22
|
|
|
23
23
|
## Reporting Bugs
|
|
24
24
|
|
|
25
|
-
We welcome feedback
|
|
25
|
+
We welcome your feedback. File a [GitHub issue](https://github.com/anthropics/claude-agent-sdk-typescript/issues) to report bugs or request features.
|
|
26
|
+
|
|
27
|
+
## Connect on Discord
|
|
28
|
+
|
|
29
|
+
Join the [Claude Developers Discord](https://anthropic.com/discord) to connect with other developers building with the Claude Agent SDK. Get help, share feedback, and discuss your projects with the community.
|
|
26
30
|
|
|
27
31
|
## Data collection, usage, and retention
|
|
28
32
|
|
|
29
|
-
When you use Claude
|
|
33
|
+
When you use the Claude Agent SDK, 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
34
|
|
|
31
35
|
### How we use your data
|
|
32
36
|
|
|
33
|
-
|
|
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).
|
|
37
|
+
See our [data usage policies](https://docs.anthropic.com/en/docs/claude-code/data-usage).
|
|
36
38
|
|
|
37
39
|
### Privacy safeguards
|
|
38
40
|
|
|
39
41
|
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
42
|
|
|
41
43
|
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).
|
|
44
|
+
|