-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
162 lines (162 loc) · 6.44 KB
/
Copy pathpackage.json
File metadata and controls
162 lines (162 loc) · 6.44 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "integrate-sdk",
"version": "0.10.1",
"description": "Type-safe 3rd party integration SDK for the Integrate MCP server",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/integratedotdev/typescript-sdk.git"
},
"bugs": {
"url": "https://github.com/integratedotdev/typescript-sdk/issues"
},
"homepage": "https://github.com/integratedotdev/typescript-sdk#readme",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.js"
},
"./react": {
"types": "./dist/react.d.ts",
"import": "./dist/react.js"
},
"./integrations": {
"types": "./dist/integrations.d.ts",
"import": "./dist/integrations.js"
},
"./ai/vercel": {
"types": "./dist/ai/vercel-ai.d.ts",
"import": "./dist/ai/vercel-ai.js"
},
"./ai/openai": {
"types": "./dist/ai/openai.d.ts",
"import": "./dist/ai/openai.js"
},
"./ai/anthropic": {
"types": "./dist/ai/anthropic.d.ts",
"import": "./dist/ai/anthropic.js"
},
"./ai/google": {
"types": "./dist/ai/google.d.ts",
"import": "./dist/ai/google.js"
},
"./code-mode": {
"types": "./dist/code-mode/index.d.ts",
"import": "./dist/code-mode/index.js"
},
"./adapters/drizzle": {
"types": "./dist/database/adapters/drizzle.d.ts",
"import": "./dist/database/adapters/drizzle.js"
},
"./adapters/prisma": {
"types": "./dist/database/adapters/prisma.d.ts",
"import": "./dist/database/adapters/prisma.js"
},
"./adapters/mongodb": {
"types": "./dist/database/adapters/mongodb.d.ts",
"import": "./dist/database/adapters/mongodb.js"
}
},
"files": [
"dist",
"index.ts",
"server.ts",
"oauth.ts",
"react.ts",
"integrations.ts"
],
"scripts": {
"prep": "bun run type-check && bun run build",
"build": "bun run build:client && bun run build:server && bun run build:adapters && bun run build:database && bun run build:ai && bun run build:code-mode && bun run build:types && bun run build:copy-types",
"build:client": "bun build index.ts react.ts integrations.ts --outdir dist --target browser --format esm --external react --external @vercel/sandbox",
"build:server": "bun build server.ts oauth.ts --outdir dist --target node --format esm --external @google/genai --external @anthropic-ai/sdk --external openai --external ai --external @openai/agents --external @vercel/sandbox",
"build:adapters": "cd src/adapters && bun build auto-routes.ts base-handler.ts context-cookie.ts index.ts nextjs-oauth-redirect.ts nextjs.ts node.ts session-detector.ts solid-start.ts svelte-kit.ts tanstack-start.ts --outdir ../../dist/adapters --target node --format esm && cd ../..",
"build:database": "mkdir -p dist/database/adapters && bun build src/database/index.ts --outdir dist/database --target node --format esm --external drizzle-orm --external @prisma/client --external mongodb && bun build src/database/adapters/drizzle.ts --outdir dist/database/adapters --target node --format esm --external drizzle-orm && bun build src/database/adapters/prisma.ts --outdir dist/database/adapters --target node --format esm --external @prisma/client && bun build src/database/adapters/mongodb.ts --outdir dist/database/adapters --target node --format esm --external mongodb",
"build:ai": "cd src/ai && bun build anthropic.ts google.ts index.ts openai.ts trigger-tools.ts utils.ts vercel-ai.ts --outdir ../../dist/ai --target node --format esm --external @google/genai --external @anthropic-ai/sdk --external openai --external ai --external @openai/agents --external zod-to-json-schema --external @vercel/sandbox && cd ../..",
"build:code-mode": "cd src/code-mode && bun build index.ts executor.ts runtime-stub.ts tool-builder.ts type-generator.ts --outdir ../../dist/code-mode --target node --format esm --external @vercel/sandbox && cd ../..",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap",
"build:copy-types": "cp dist/src/ai/*.d.ts dist/ai/ && cp dist/src/ai/*.d.ts.map dist/ai/ && cp dist/src/adapters/*.d.ts dist/adapters/ && cp dist/src/adapters/*.d.ts.map dist/adapters/ && mkdir -p dist/code-mode && cp dist/src/code-mode/*.d.ts dist/code-mode/ && cp dist/src/code-mode/*.d.ts.map dist/code-mode/ && mkdir -p dist/database/adapters && cp dist/src/database/index.d.ts dist/database/ && cp dist/src/database/index.d.ts.map dist/database/ && cp dist/src/database/adapters/*.d.ts dist/database/adapters/ && cp dist/src/database/adapters/*.d.ts.map dist/database/adapters/",
"dev": "bun --watch src/index.ts",
"type-check": "tsc --noEmit",
"test": "bun test tests/",
"test:watch": "bun test --watch tests/",
"test:unit": "bun test tests/protocol tests/integrations tests/client tests/integrations tests/oauth tests/transport tests/utils tests/errors",
"test:integration": "bun test tests/integration/simple-integration.test.ts",
"test:coverage": "bun test --coverage tests/"
},
"keywords": [
"mcp",
"client",
"sdk",
"typescript",
"oauth",
"integrations"
],
"author": "",
"license": "MIT",
"dependencies": {
"@vercel/sandbox": "^1.0.0",
"nanoid": "^3.3.7",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.25.1"
},
"devDependencies": {
"@types/bun": "^1.3.14",
"@types/react": "^18.3.0",
"drizzle-orm": "^0.44.2",
"mongodb": "^6.17.0",
"react": "^19.2.0",
"simple-git-hooks": "^2.13.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"typescript": ">=5.0.0",
"react": ">=19.0.0",
"ai": ">=4.0.0",
"openai": ">=4.0.0",
"@anthropic-ai/sdk": ">=0.20.0",
"@google/genai": "",
"drizzle-orm": "",
"@prisma/client": ">=5.0.0",
"mongodb": ""
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"ai": {
"optional": true
},
"openai": {
"optional": true
},
"@openai/agents": {
"optional": true
},
"@anthropic-ai/sdk": {
"optional": true
},
"@google/genai": {
"optional": true
},
"drizzle-orm": {
"optional": true
},
"@prisma/client": {
"optional": true
},
"mongodb": {
"optional": true
}
},
"simple-git-hooks": {
"pre-commit": "./scripts/check-version.sh"
}
}