@astralbeam/sdk 0.9.0 → 0.11.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 +74 -70
- package/dist/api-CWgQSDaI.d.ts +358 -0
- package/dist/api-DrKgAIBT.js +309 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/client.d.ts +93 -4
- package/dist/client.js +1 -1
- package/dist/constants-CgaMxV3q.js +1 -0
- package/dist/{core-Eh2vyhUP.js → core-xh4NLb1l.js} +306 -92
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/debug-qLts7gEt.js +1 -0
- package/dist/index-BVVgDSdq.d.ts +1 -0
- package/dist/{index-BQBdZKyB.d.ts → index-C4uH8CV1.d.ts} +12 -5
- package/dist/listings-DVfsUaPv.js +21 -0
- package/dist/react.d.ts +60 -4
- package/dist/react.js +112 -19
- package/dist/server.d.ts +15 -1
- package/dist/server.js +24 -122
- package/dist/styles.generated-Cf-ab39H.js +60 -0
- package/dist/type_checks-C-WTHaWs.js +117 -0
- package/dist/widget-CrC3teP8.js +20 -0
- package/package.json +64 -38
- package/dist/debug-66ETHfXh.js +0 -1
- package/dist/widget-DLUt14KM.js +0 -79
package/package.json
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralbeam/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Frontend SDK for AstralBeam: drop-in agent UI, chat streaming, and server helpers",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
5
|
"homepage": "https://astralbeam.ai",
|
|
6
|
+
"bugs": "https://github.com/AstralBeamAI/astralbeam/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/AstralBeamAI/astralbeam.git",
|
|
11
11
|
"directory": "sdk"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
+
"type": "module",
|
|
16
17
|
"sideEffects": false,
|
|
18
|
+
"typesVersions": {
|
|
19
|
+
"*": {
|
|
20
|
+
"api": [
|
|
21
|
+
"./dist/api.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"client": [
|
|
24
|
+
"./dist/client.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"core": [
|
|
27
|
+
"./dist/core.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"server": [
|
|
30
|
+
"./dist/server.d.ts"
|
|
31
|
+
],
|
|
32
|
+
"react": [
|
|
33
|
+
"./dist/react.d.ts"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
17
37
|
"exports": {
|
|
38
|
+
"./api": {
|
|
39
|
+
"types": "./dist/api.d.ts",
|
|
40
|
+
"default": "./dist/api.js"
|
|
41
|
+
},
|
|
18
42
|
"./client": {
|
|
19
43
|
"types": "./dist/client.d.ts",
|
|
20
44
|
"default": "./dist/client.js"
|
|
@@ -33,22 +57,6 @@
|
|
|
33
57
|
},
|
|
34
58
|
"./package.json": "./package.json"
|
|
35
59
|
},
|
|
36
|
-
"typesVersions": {
|
|
37
|
-
"*": {
|
|
38
|
-
"client": [
|
|
39
|
-
"./dist/client.d.ts"
|
|
40
|
-
],
|
|
41
|
-
"core": [
|
|
42
|
-
"./dist/core.d.ts"
|
|
43
|
-
],
|
|
44
|
-
"server": [
|
|
45
|
-
"./dist/server.d.ts"
|
|
46
|
-
],
|
|
47
|
-
"react": [
|
|
48
|
-
"./dist/react.d.ts"
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
60
|
"publishConfig": {
|
|
53
61
|
"access": "public"
|
|
54
62
|
},
|
|
@@ -56,31 +64,21 @@
|
|
|
56
64
|
"build": "deno task generate:styles && tsdown",
|
|
57
65
|
"dev": "deno task generate:styles && tsdown --watch",
|
|
58
66
|
"generate:styles": "tailwindcss --input src/styles.css --output .generated/styles.css --minify && deno run --allow-read=.generated --allow-write=src/widget scripts/embed-styles.ts",
|
|
59
|
-
"
|
|
60
|
-
"check
|
|
61
|
-
"
|
|
62
|
-
"
|
|
67
|
+
"generate:api": "orval && oxfmt src/api/generated",
|
|
68
|
+
"api:check": "deno task generate:api && git diff --exit-code -- src/api/generated",
|
|
69
|
+
"check": "deno task generate:styles && deno task api:check && deno task format:check && deno task lint && deno task typecheck && deno task knip",
|
|
70
|
+
"check:fix": "deno task generate:styles && deno task generate:api && deno task lint:fix && deno task format && deno task knip:fix",
|
|
71
|
+
"format": "oxfmt",
|
|
72
|
+
"format:check": "oxfmt --check",
|
|
63
73
|
"knip": "knip",
|
|
64
74
|
"knip:fix": "knip --fix --allow-remove-files && knip --fix --allow-remove-files && deno install --frozen",
|
|
65
|
-
"lint": "
|
|
66
|
-
"lint:fix": "
|
|
75
|
+
"lint": "oxlint",
|
|
76
|
+
"lint:fix": "oxlint --fix",
|
|
67
77
|
"ready": "deno task check && deno task test && deno task build",
|
|
68
78
|
"test": "vitest run",
|
|
69
79
|
"typecheck": "tsc --noEmit",
|
|
70
80
|
"ui": "shadcn"
|
|
71
81
|
},
|
|
72
|
-
"peerDependencies": {
|
|
73
|
-
"react": ">=18",
|
|
74
|
-
"react-dom": ">=18"
|
|
75
|
-
},
|
|
76
|
-
"peerDependenciesMeta": {
|
|
77
|
-
"react": {
|
|
78
|
-
"optional": true
|
|
79
|
-
},
|
|
80
|
-
"react-dom": {
|
|
81
|
-
"optional": true
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
82
|
"devDependencies": {
|
|
85
83
|
"@base-ui/react": "^1.7.0",
|
|
86
84
|
"@phosphor-icons/react": "^2.1.10",
|
|
@@ -88,13 +86,29 @@
|
|
|
88
86
|
"@tailwindcss/cli": "^4.3.3",
|
|
89
87
|
"@tanstack/ai": "^0.49.1",
|
|
90
88
|
"@tanstack/ai-client": "^0.28.0",
|
|
89
|
+
"@tanstack/eslint-plugin-query": "^5.103.2",
|
|
91
90
|
"@tanstack/markdown": "^0.0.13",
|
|
91
|
+
"@tanstack/react-pacer": "^0.23.0",
|
|
92
|
+
"@tanstack/react-query": "^5.102.8",
|
|
93
|
+
"@tanstack/react-table": "^9.2.4",
|
|
94
|
+
"@types/deno": "^2.7.0",
|
|
92
95
|
"@types/react": "^19.2.13",
|
|
93
96
|
"@types/react-dom": "^19.2.3",
|
|
97
|
+
"@vitest/eslint-plugin": "^1.6.27",
|
|
94
98
|
"class-variance-authority": "^0.7.1",
|
|
95
99
|
"cn": "^0.2.4",
|
|
100
|
+
"eslint-plugin-jsx-a11y-x": "^0.2.0",
|
|
101
|
+
"eslint-plugin-react-dom": "^5.20.5",
|
|
102
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
103
|
+
"eslint-plugin-react-jsx": "^5.20.5",
|
|
104
|
+
"eslint-plugin-react-web-api": "^5.20.5",
|
|
105
|
+
"eslint-plugin-regexp": "^3.3.1",
|
|
96
106
|
"jose": "^6.2.9",
|
|
97
107
|
"knip": "^6.32.2",
|
|
108
|
+
"orval": "8.30.0",
|
|
109
|
+
"oxfmt": "^0.70.0",
|
|
110
|
+
"oxlint": "^1.85.0",
|
|
111
|
+
"oxlint-tsgolint": "^7.0.2002",
|
|
98
112
|
"react": "^19.2.4",
|
|
99
113
|
"react-dom": "^19.2.4",
|
|
100
114
|
"shadcn": "^4.20.1",
|
|
@@ -103,5 +117,17 @@
|
|
|
103
117
|
"tw-animate-css": "^1.4.0",
|
|
104
118
|
"typescript": "^6.0.3",
|
|
105
119
|
"vitest": "^4.1.3"
|
|
120
|
+
},
|
|
121
|
+
"peerDependencies": {
|
|
122
|
+
"react": ">=18",
|
|
123
|
+
"react-dom": ">=18"
|
|
124
|
+
},
|
|
125
|
+
"peerDependenciesMeta": {
|
|
126
|
+
"react": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"react-dom": {
|
|
130
|
+
"optional": true
|
|
131
|
+
}
|
|
106
132
|
}
|
|
107
133
|
}
|
package/dist/debug-66ETHfXh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=`AstralBeam`,t=`Ask the assistant`,n=`It can answer questions and act through this app's own tools and widgets.`,r=`https://app.astralbeam.ai/api`,i=`/api/astralbeam/token`;function a(e){let t=`${(e??`https://app.astralbeam.ai/api`).replace(/\/+$/,``)}/v1/chat`;return{chat:t,config:`${t}/config`,files:`${t}/files`}}const o=`system`,s=`astralbeam-root`,c=e=>`background:${e};color:#fff;border-radius:3px;padding:1px 5px`,l=`${c(`#7c3aed`)};font-weight:600`,u={mount:`#7c3aed`,auth:`#be185d`,theme:`#8b5cf6`,send:`#2563eb`,run:`#0891b2`,stream:`#0e7490`,text:`#16a34a`,reasoning:`#64748b`,tool:`#d97706`,widget:`#db2777`,attachment:`#0d9488`,sandbox:`#0369a1`,questionnaire:`#9333ea`,status:`#475569`,error:`#dc2626`};function d(e){if(e)return(e,t,n)=>{console.log(`%cAstralBeam%c ${new Date().toISOString().slice(11,19)} %c${e}%c ${t}`,l,`color:#94a3b8;font-weight:400`,c(u[e]),``,...n===void 0?[]:[n])}}export{n as a,s as c,o as i,a as l,r as n,t as o,i as r,e as s,d as t};
|