@sylphx/sdk 0.23.0 → 0.26.0
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 +47 -561
- package/dist/index.d.ts +311 -1
- package/dist/index.mjs +721 -16
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.mjs +24 -24
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.mjs +1 -1
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.mjs +24 -24
- package/dist/server/index.mjs.map +1 -1
- package/package.json +126 -123
package/package.json
CHANGED
|
@@ -1,125 +1,128 @@
|
|
|
1
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
|
-
|
|
2
|
+
"name": "@sylphx/sdk",
|
|
3
|
+
"version": "0.26.0",
|
|
4
|
+
"description": "Sylphx Platform TypeScript SDK \u2014 production dual-language client (Protobuf wire; pair with Rust sylphx-sdk)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"./tasks": {
|
|
13
|
+
"types": "./dist/tasks.d.ts",
|
|
14
|
+
"import": "./dist/tasks.mjs"
|
|
15
|
+
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react/index.d.ts",
|
|
18
|
+
"import": "./dist/react/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"./server": {
|
|
21
|
+
"types": "./dist/server/index.d.ts",
|
|
22
|
+
"import": "./dist/server/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./nextjs": {
|
|
25
|
+
"types": "./dist/nextjs/index.d.ts",
|
|
26
|
+
"import": "./dist/nextjs/index.mjs"
|
|
27
|
+
},
|
|
28
|
+
"./web-analytics": {
|
|
29
|
+
"types": "./dist/web-analytics.d.ts",
|
|
30
|
+
"import": "./dist/web-analytics.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./health": {
|
|
33
|
+
"types": "./dist/health/index.d.ts",
|
|
34
|
+
"import": "./dist/health/index.mjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/index.mjs",
|
|
38
|
+
"module": "./dist/index.mjs",
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"typesVersions": {
|
|
41
|
+
"*": {
|
|
42
|
+
"react": [
|
|
43
|
+
"dist/react/index.d.ts"
|
|
44
|
+
],
|
|
45
|
+
"server": [
|
|
46
|
+
"dist/server/index.d.ts"
|
|
47
|
+
],
|
|
48
|
+
"nextjs": [
|
|
49
|
+
"dist/nextjs/index.d.ts"
|
|
50
|
+
],
|
|
51
|
+
"web-analytics": [
|
|
52
|
+
"dist/web-analytics.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"health": [
|
|
55
|
+
"dist/health/index.d.ts"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist",
|
|
61
|
+
"README.md"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "rm -rf dist && bun run scripts/build.ts",
|
|
65
|
+
"build:health": "rm -rf dist/health && bun x tsup src/health/index.ts --no-config --format esm --dts --sourcemap --no-splitting --target es2022 --external effect --external @opentelemetry/api --external node:crypto --external node:perf_hooks --external node:fs --external node:net --out-dir dist/health && mv dist/health/index.js dist/health/index.mjs && mv dist/health/index.js.map dist/health/index.mjs.map",
|
|
66
|
+
"dev": "bun x tsup --watch",
|
|
67
|
+
"typecheck": "tsc --noEmit",
|
|
68
|
+
"test": "bun test",
|
|
69
|
+
"test:watch": "bun test --watch",
|
|
70
|
+
"test:coverage": "bun test --coverage",
|
|
71
|
+
"build:docker": "rm -rf dist && bun run scripts/build.ts",
|
|
72
|
+
"test:product": "bun test src/product",
|
|
73
|
+
"build:product": "rm -rf dist-product && bunx tsc -p tsconfig.product.json",
|
|
74
|
+
"pack:product": "bun run build:product && npm pack --pack-destination . --dry-run 2>/dev/null; cd dist-product && true"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@tanstack/react-query": ">=5",
|
|
78
|
+
"react": ">=18",
|
|
79
|
+
"react-dom": ">=18",
|
|
80
|
+
"next": ">=14",
|
|
81
|
+
"effect": ">=3.21.0",
|
|
82
|
+
"@opentelemetry/api": ">=1.9.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependenciesMeta": {
|
|
85
|
+
"@tanstack/react-query": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"react": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"react-dom": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"next": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"effect": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@opentelemetry/api": {
|
|
101
|
+
"optional": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"@sylphx/contract": "0.23.0",
|
|
106
|
+
"jose": "^6.1.3",
|
|
107
|
+
"rrweb": "^1.1.3",
|
|
108
|
+
"web-vitals": "5.1.0"
|
|
109
|
+
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@opentelemetry/context-async-hooks": "2.6.1",
|
|
112
|
+
"@rrweb/types": "2.0.0-alpha.20",
|
|
113
|
+
"@tanstack/react-query": "^5",
|
|
114
|
+
"@types/bun": "1.3.14",
|
|
115
|
+
"@types/node": "^25",
|
|
116
|
+
"@types/react": "^19",
|
|
117
|
+
"@types/react-dom": "^19",
|
|
118
|
+
"effect": "3.21.0",
|
|
119
|
+
"react": "^19",
|
|
120
|
+
"react-dom": "^19",
|
|
121
|
+
"tsup": "^8.5.1",
|
|
122
|
+
"typescript": "^5"
|
|
123
|
+
},
|
|
124
|
+
"private": false,
|
|
125
|
+
"publishConfig": {
|
|
126
|
+
"access": "public"
|
|
127
|
+
}
|
|
125
128
|
}
|