Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
108 lines (108 loc) · 3.13 KB
/
Copy pathpackage.json
File metadata and controls
108 lines (108 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "@anthropic-ai/sdk",
"version": "1.6.0",
"description": "The official TypeScript library for the Anthropic API",
"author": "Anthropic <support@anthropic.com>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "module",
"sideEffects": false,
"repository": "github:anthropics/anthropic-sdk-typescript",
"license": "Apache-2.0",
"packageManager": "pnpm@10.34.5+sha512.a4ee05f2f73658255bd6a89859c065a45c28a57daefae2c893a168ee2b73168c37b91e83e57ea67654ad03f03031746430e8bce38e362e042605fb8abc80192e",
"files": [
"**/*"
],
"private": false,
"publishConfig": {
"access": "public",
"directory": "dist"
},
"scripts": {
"test": "./scripts/test",
"test:ecosystem": "node ecosystem-tests/cli.mts",
"build": "./scripts/build-all",
"prepublishOnly": "echo 'to publish, run pnpm build && (cd dist; pnpm publish)' && exit 1",
"format": "./scripts/format",
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
"lint": "./scripts/lint",
"fix": "./scripts/format"
},
"dependencies": {
"@opentelemetry/api": "^1.4.1",
"standardwebhooks": "^1.0.0",
"json-schema-to-ts": "^3.1.1"
},
"peerDependencies": {
"zod": "^3.25.0 || ^4.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
},
"devDependencies": {
"@arethetypeswrong/core": "^0.18.3",
"@fast-check/vitest": "^0.4.1",
"@modelcontextprotocol/sdk": "^1.24.2",
"@opentelemetry/context-async-hooks": "~2.8.0",
"@opentelemetry/core": "~2.8.0",
"@opentelemetry/sdk-trace-base": "~2.8.0",
"@types/node": "^20.17.6",
"@typescript-eslint/eslint-plugin": "8.58.0",
"@typescript-eslint/parser": "8.58.0",
"@valibot/to-json-schema": "^1.7.1",
"deep-object-diff": "^1.1.9",
"eslint": "^9.39.1",
"eslint-plugin-unused-imports": "^4.1.4",
"iconv-lite": "^0.6.3",
"nock": "^14.0.10",
"prettier": "^3.0.0",
"publint": "^0.2.12",
"tsc-multi": "npm:@stainless-api/tsc-multi@1.1.12",
"tslib": "^2.8.1",
"typescript": "6.0.3",
"typescript-eslint": "8.58.0",
"valibot": "^1.4.2",
"vitest": "^4.1.11",
"zod": "^3.25.0 || ^4.0.0"
},
"bin": {
"anthropic-ai-sdk": "bin/cli"
},
"overrides": {
"minimatch": "^9.0.5"
},
"pnpm": {
"overrides": {
"minimatch": "^9.0.5"
}
},
"resolutions": {
"minimatch": "^9.0.5"
},
"browser": {
"./internal/node.js": "./internal/node.browser.js",
"./internal/node.mjs": "./internal/node.browser.mjs",
"./tools/agent-toolset/node.js": "./tools/agent-toolset/node.browser.js",
"./tools/agent-toolset/node.mjs": "./tools/agent-toolset/node.browser.mjs",
"./tools/memory/node.js": "./tools/memory/node.browser.js",
"./tools/memory/node.mjs": "./tools/memory/node.browser.mjs"
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./*.mjs": {
"default": "./dist/*.mjs"
},
"./*.js": {
"default": "./dist/*.js"
},
"./*": {
"import": "./dist/*.mjs",
"require": "./dist/*.js"
}
}
}