@collective-intelligence/external-apps-server-sdk 0.0.0-stage → 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 +1075 -2
- package/dist/admin.d.ts +7556 -0
- package/dist/admin.js +6 -0
- package/dist/auth/better-auth.d.ts +71 -0
- package/dist/auth/better-auth.js +1 -0
- package/dist/auth/federated.d.ts +135 -0
- package/dist/auth/federated.js +8 -0
- package/dist/auth.d.ts +162 -0
- package/dist/auth.js +1 -0
- package/dist/express.d.ts +644 -0
- package/dist/express.js +1 -0
- package/dist/gateway/contracts.d.ts +663 -0
- package/dist/gateway/contracts.js +0 -0
- package/dist/gateway.d.ts +762 -0
- package/dist/gateway.js +8 -0
- package/dist/index.d.ts +597 -0
- package/dist/index.js +9 -0
- package/dist/knowledge-sources/payload.d.ts +420 -0
- package/dist/knowledge-sources/payload.js +1 -0
- package/dist/knowledge-sources/strapi.d.ts +389 -0
- package/dist/knowledge-sources/strapi.js +1 -0
- package/dist/persistence/drizzle-effect.d.ts +38 -0
- package/dist/persistence/drizzle-effect.js +1 -0
- package/dist/persistence/drizzle.d.ts +1514 -0
- package/dist/persistence/drizzle.js +18 -0
- package/dist/resources.d.ts +423 -0
- package/dist/resources.js +15 -0
- package/dist/runtime/effect.d.ts +954 -0
- package/dist/runtime/effect.js +15 -0
- package/dist/runtime/express.d.ts +644 -0
- package/dist/runtime/express.js +1 -0
- package/dist/runtime/nestjs.d.ts +802 -0
- package/dist/runtime/nestjs.js +8 -0
- package/dist/runtime/next.d.ts +874 -0
- package/dist/runtime/next.js +8 -0
- package/dist/runtime/web.d.ts +776 -0
- package/dist/runtime/web.js +8 -0
- package/dist/tools/ai-sdk.d.ts +170 -0
- package/dist/tools/ai-sdk.js +8 -0
- package/package.json +242 -4
package/package.json
CHANGED
|
@@ -1,6 +1,244 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collective-intelligence/external-apps-server-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Server-side client and proxy adapters for Collective Intelligence external applications.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"ci-source": "./src/entrypoints/index.ts",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./admin": {
|
|
21
|
+
"ci-source": "./src/entrypoints/admin.ts",
|
|
22
|
+
"types": "./dist/admin.d.ts",
|
|
23
|
+
"import": "./dist/admin.js",
|
|
24
|
+
"default": "./dist/admin.js"
|
|
25
|
+
},
|
|
26
|
+
"./express": {
|
|
27
|
+
"ci-source": "./src/entrypoints/express.ts",
|
|
28
|
+
"types": "./dist/express.d.ts",
|
|
29
|
+
"import": "./dist/express.js",
|
|
30
|
+
"default": "./dist/express.js"
|
|
31
|
+
},
|
|
32
|
+
"./auth": {
|
|
33
|
+
"ci-source": "./src/entrypoints/auth/index.ts",
|
|
34
|
+
"types": "./dist/auth.d.ts",
|
|
35
|
+
"import": "./dist/auth.js",
|
|
36
|
+
"default": "./dist/auth.js"
|
|
37
|
+
},
|
|
38
|
+
"./resources": {
|
|
39
|
+
"ci-source": "./src/entrypoints/resources.ts",
|
|
40
|
+
"types": "./dist/resources.d.ts",
|
|
41
|
+
"import": "./dist/resources.js",
|
|
42
|
+
"default": "./dist/resources.js"
|
|
43
|
+
},
|
|
44
|
+
"./gateway": {
|
|
45
|
+
"ci-source": "./src/entrypoints/gateway/index.ts",
|
|
46
|
+
"types": "./dist/gateway.d.ts",
|
|
47
|
+
"import": "./dist/gateway.js",
|
|
48
|
+
"default": "./dist/gateway.js"
|
|
49
|
+
},
|
|
50
|
+
"./persistence/drizzle": {
|
|
51
|
+
"ci-source": "./src/entrypoints/persistence/drizzle.ts",
|
|
52
|
+
"types": "./dist/persistence/drizzle.d.ts",
|
|
53
|
+
"import": "./dist/persistence/drizzle.js",
|
|
54
|
+
"default": "./dist/persistence/drizzle.js"
|
|
55
|
+
},
|
|
56
|
+
"./persistence/drizzle/effect": {
|
|
57
|
+
"ci-source": "./src/entrypoints/persistence/drizzle-effect.ts",
|
|
58
|
+
"types": "./dist/persistence/drizzle-effect.d.ts",
|
|
59
|
+
"import": "./dist/persistence/drizzle-effect.js",
|
|
60
|
+
"default": "./dist/persistence/drizzle-effect.js"
|
|
61
|
+
},
|
|
62
|
+
"./knowledge-sources/payload": {
|
|
63
|
+
"ci-source": "./src/entrypoints/knowledge-sources/payload.ts",
|
|
64
|
+
"types": "./dist/knowledge-sources/payload.d.ts",
|
|
65
|
+
"import": "./dist/knowledge-sources/payload.js",
|
|
66
|
+
"default": "./dist/knowledge-sources/payload.js"
|
|
67
|
+
},
|
|
68
|
+
"./knowledge-sources/strapi": {
|
|
69
|
+
"ci-source": "./src/entrypoints/knowledge-sources/strapi.ts",
|
|
70
|
+
"types": "./dist/knowledge-sources/strapi.d.ts",
|
|
71
|
+
"import": "./dist/knowledge-sources/strapi.js",
|
|
72
|
+
"default": "./dist/knowledge-sources/strapi.js"
|
|
73
|
+
},
|
|
74
|
+
"./runtime/web": {
|
|
75
|
+
"ci-source": "./src/entrypoints/runtime/web.ts",
|
|
76
|
+
"types": "./dist/runtime/web.d.ts",
|
|
77
|
+
"import": "./dist/runtime/web.js",
|
|
78
|
+
"default": "./dist/runtime/web.js"
|
|
79
|
+
},
|
|
80
|
+
"./runtime/express": {
|
|
81
|
+
"ci-source": "./src/entrypoints/runtime/express.ts",
|
|
82
|
+
"types": "./dist/runtime/express.d.ts",
|
|
83
|
+
"import": "./dist/runtime/express.js",
|
|
84
|
+
"default": "./dist/runtime/express.js"
|
|
85
|
+
},
|
|
86
|
+
"./runtime/nestjs": {
|
|
87
|
+
"ci-source": "./src/entrypoints/runtime/nestjs.ts",
|
|
88
|
+
"types": "./dist/runtime/nestjs.d.ts",
|
|
89
|
+
"import": "./dist/runtime/nestjs.js",
|
|
90
|
+
"default": "./dist/runtime/nestjs.js"
|
|
91
|
+
},
|
|
92
|
+
"./runtime/next": {
|
|
93
|
+
"ci-source": "./src/entrypoints/runtime/next.ts",
|
|
94
|
+
"types": "./dist/runtime/next.d.ts",
|
|
95
|
+
"import": "./dist/runtime/next.js",
|
|
96
|
+
"default": "./dist/runtime/next.js"
|
|
97
|
+
},
|
|
98
|
+
"./runtime/effect": {
|
|
99
|
+
"ci-source": "./src/entrypoints/runtime/effect.ts",
|
|
100
|
+
"types": "./dist/runtime/effect.d.ts",
|
|
101
|
+
"import": "./dist/runtime/effect.js",
|
|
102
|
+
"default": "./dist/runtime/effect.js"
|
|
103
|
+
},
|
|
104
|
+
"./gateway/contracts": {
|
|
105
|
+
"ci-source": "./src/entrypoints/gateway/contracts.ts",
|
|
106
|
+
"types": "./dist/gateway/contracts.d.ts",
|
|
107
|
+
"import": "./dist/gateway/contracts.js",
|
|
108
|
+
"default": "./dist/gateway/contracts.js"
|
|
109
|
+
},
|
|
110
|
+
"./auth/better-auth": {
|
|
111
|
+
"ci-source": "./src/entrypoints/auth/better-auth.ts",
|
|
112
|
+
"types": "./dist/auth/better-auth.d.ts",
|
|
113
|
+
"import": "./dist/auth/better-auth.js",
|
|
114
|
+
"default": "./dist/auth/better-auth.js"
|
|
115
|
+
},
|
|
116
|
+
"./auth/federated": {
|
|
117
|
+
"ci-source": "./src/entrypoints/auth/federated.ts",
|
|
118
|
+
"types": "./dist/auth/federated.d.ts",
|
|
119
|
+
"import": "./dist/auth/federated.js"
|
|
120
|
+
},
|
|
121
|
+
"./tools/ai-sdk": {
|
|
122
|
+
"ci-source": "./src/entrypoints/tools/ai-sdk.ts",
|
|
123
|
+
"types": "./dist/tools/ai-sdk.d.ts",
|
|
124
|
+
"import": "./dist/tools/ai-sdk.js",
|
|
125
|
+
"default": "./dist/tools/ai-sdk.js"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"scripts": {
|
|
129
|
+
"build": "bun tools/build.ts",
|
|
130
|
+
"test": "bun tools/test-postgres.ts && bun tools/test-pack.ts",
|
|
131
|
+
"test:pack": "bun tools/test-pack.ts",
|
|
132
|
+
"test:unit": "bun tools/test-postgres.ts",
|
|
133
|
+
"format": "oxfmt --write .",
|
|
134
|
+
"format:check": "oxfmt --check .",
|
|
135
|
+
"format:check:staged": "oxfmt --check",
|
|
136
|
+
"lint": "node \"../../../.agents/scripts/managed-lint-runner.mjs\" --scope \"packages/public/external-apps-server-sdk\"",
|
|
137
|
+
"lint:staged": "oxlint --no-error-on-unmatched-pattern",
|
|
138
|
+
"prepack": "bun run build",
|
|
139
|
+
"type-check": "tsc --noEmit",
|
|
140
|
+
"test:postgres": "bun tools/test-postgres.ts src/adapters/persistence/drizzle"
|
|
141
|
+
},
|
|
142
|
+
"dependencies": {
|
|
143
|
+
"ajv": "8.20.0",
|
|
144
|
+
"ajv-formats": "3.0.1",
|
|
145
|
+
"jose": "6.2.9"
|
|
146
|
+
},
|
|
147
|
+
"peerDependencies": {
|
|
148
|
+
"@nestjs/common": ">=10 <12",
|
|
149
|
+
"@nestjs/core": ">=10 <12",
|
|
150
|
+
"@strapi/strapi": ">=5 <6",
|
|
151
|
+
"drizzle-orm": ">=1.0.0-rc.5-ab785fc <2",
|
|
152
|
+
"effect": ">=4.0.0-rc.111 <5",
|
|
153
|
+
"express": ">=4.18 <6",
|
|
154
|
+
"next": ">=15 <17",
|
|
155
|
+
"pg": ">=8 <9",
|
|
156
|
+
"payload": ">=3 <4",
|
|
157
|
+
"better-auth": ">=1.7.5 <2",
|
|
158
|
+
"ai": ">=7.0.128 <8",
|
|
159
|
+
"@ai-sdk/provider-utils": ">=5.0.54 <6",
|
|
160
|
+
"zod": ">=4.0.0 <5"
|
|
161
|
+
},
|
|
162
|
+
"peerDependenciesMeta": {
|
|
163
|
+
"@nestjs/common": {
|
|
164
|
+
"optional": true
|
|
165
|
+
},
|
|
166
|
+
"@nestjs/core": {
|
|
167
|
+
"optional": true
|
|
168
|
+
},
|
|
169
|
+
"@strapi/strapi": {
|
|
170
|
+
"optional": true
|
|
171
|
+
},
|
|
172
|
+
"drizzle-orm": {
|
|
173
|
+
"optional": true
|
|
174
|
+
},
|
|
175
|
+
"effect": {
|
|
176
|
+
"optional": true
|
|
177
|
+
},
|
|
178
|
+
"express": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
181
|
+
"next": {
|
|
182
|
+
"optional": true
|
|
183
|
+
},
|
|
184
|
+
"pg": {
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
187
|
+
"payload": {
|
|
188
|
+
"optional": true
|
|
189
|
+
},
|
|
190
|
+
"better-auth": {
|
|
191
|
+
"optional": true
|
|
192
|
+
},
|
|
193
|
+
"ai": {
|
|
194
|
+
"optional": true
|
|
195
|
+
},
|
|
196
|
+
"@ai-sdk/provider-utils": {
|
|
197
|
+
"optional": true
|
|
198
|
+
},
|
|
199
|
+
"zod": {
|
|
200
|
+
"optional": true
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"publishConfig": {
|
|
204
|
+
"access": "public"
|
|
205
|
+
},
|
|
206
|
+
"devDependencies": {
|
|
207
|
+
"@collective-intelligence/extensions-sdk": "workspace:*",
|
|
208
|
+
"@collective-intelligence/external-apps-client-sdk": "workspace:*",
|
|
209
|
+
"@effect/eslint-plugin": "latest",
|
|
210
|
+
"@effect/tsgo": "0.48.1",
|
|
211
|
+
"@nestjs/common": "11.2.4",
|
|
212
|
+
"@nestjs/core": "11.2.4",
|
|
213
|
+
"@nestjs/platform-express": "11.2.4",
|
|
214
|
+
"@oxlint/plugins": "1.85.0",
|
|
215
|
+
"@types/bun": "1.3.14",
|
|
216
|
+
"@types/express": "^5.0.6",
|
|
217
|
+
"@types/node": "25.0.3",
|
|
218
|
+
"@types/pg": "8.23.1",
|
|
219
|
+
"@types/react": "19.2.18",
|
|
220
|
+
"@types/react-dom": "19.2.7",
|
|
221
|
+
"@typescript-eslint/utils": "8.22.0",
|
|
222
|
+
"better-auth": "1.7.5",
|
|
223
|
+
"drizzle-orm": "1.0.0-rc.5-ab785fc",
|
|
224
|
+
"dts-bundle-generator": "9.5.1",
|
|
225
|
+
"effect": "4.0.1",
|
|
226
|
+
"eslint": "9.39.5",
|
|
227
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "latest",
|
|
228
|
+
"express": "^5.2.1",
|
|
229
|
+
"next": "16.3.5",
|
|
230
|
+
"oxfmt": "0.66.0",
|
|
231
|
+
"oxlint": "1.82.0",
|
|
232
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
233
|
+
"pg": "8.23.0",
|
|
234
|
+
"react": "19.2.8",
|
|
235
|
+
"react-dom": "19.2.8",
|
|
236
|
+
"reflect-metadata": "0.2.2",
|
|
237
|
+
"rxjs": "7.8.2",
|
|
238
|
+
"typescript": "5.9.3",
|
|
239
|
+
"ultracite": "7.10.7",
|
|
240
|
+
"ai": "7.0.128",
|
|
241
|
+
"@ai-sdk/provider-utils": "5.0.54",
|
|
242
|
+
"zod": "4.4.3"
|
|
243
|
+
}
|
|
244
|
+
}
|