@raindrop-ai/ai-sdk 0.0.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.
@@ -0,0 +1,6 @@
1
+ export { createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-A4YZKNFM.mjs';
2
+ import { AsyncLocalStorage } from 'async_hooks';
3
+
4
+ if (!globalThis.RAINDROP_ASYNC_LOCAL_STORAGE) {
5
+ globalThis.RAINDROP_ASYNC_LOCAL_STORAGE = AsyncLocalStorage;
6
+ }
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@raindrop-ai/ai-sdk",
3
+ "version": "0.0.1",
4
+ "description": "Standalone Vercel AI SDK integration for Raindrop (events + OTLP/HTTP JSON traces, no OTEL runtime)",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "node": {
12
+ "import": "./dist/index.node.mjs",
13
+ "require": "./dist/index.node.js"
14
+ },
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ },
18
+ "./workers": {
19
+ "types": "./dist/index.workers.d.ts",
20
+ "import": "./dist/index.workers.mjs",
21
+ "require": "./dist/index.workers.js"
22
+ }
23
+ },
24
+ "sideEffects": false,
25
+ "files": [
26
+ "dist/**"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsup",
30
+ "dev": "tsup --watch",
31
+ "clean": "rm -rf .turbo && rm -rf dist",
32
+ "smoke": "tsx ./scripts/smoke.ts",
33
+ "smoke:min": "tsx ./scripts/smoke.min.ts",
34
+ "harness": "tsx ./scripts/traceHarness.ts",
35
+ "test": "yarn build && yarn test:v4 && yarn test:v5 && yarn test:v6",
36
+ "test:v4": "yarn build && cd tests/v4 && yarn install && yarn test",
37
+ "test:v5": "yarn build && cd tests/v5 && yarn install && yarn test",
38
+ "test:v6": "yarn build && cd tests/v6 && yarn install && yarn test",
39
+ "test:install": "cd tests/v4 && yarn install && cd ../v5 && yarn install && cd ../v6 && yarn install"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^20.11.17",
43
+ "msw": "^2.12.7",
44
+ "tsup": "^8.4.0",
45
+ "tsx": "^4.20.3",
46
+ "typescript": "^5.3.3"
47
+ },
48
+ "tsup": {
49
+ "entry": [
50
+ "src/index.ts",
51
+ "src/index.node.ts"
52
+ ],
53
+ "format": [
54
+ "cjs",
55
+ "esm"
56
+ ],
57
+ "dts": {
58
+ "resolve": true
59
+ },
60
+ "clean": true
61
+ },
62
+ "publishConfig": {
63
+ "access": "public"
64
+ }
65
+ }