@astralbeam/sdk 0.10.1 → 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/package.json CHANGED
@@ -1,20 +1,39 @@
1
1
  {
2
2
  "name": "@astralbeam/sdk",
3
- "version": "0.10.1",
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
10
  "url": "git+https://github.com/AstralBeamAI/astralbeam.git",
11
11
  "directory": "sdk"
12
12
  },
13
- "bugs": "https://github.com/AstralBeamAI/astralbeam/issues",
14
13
  "files": [
15
14
  "dist"
16
15
  ],
16
+ "type": "module",
17
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
+ },
18
37
  "exports": {
19
38
  "./api": {
20
39
  "types": "./dist/api.d.ts",
@@ -38,25 +57,6 @@
38
57
  },
39
58
  "./package.json": "./package.json"
40
59
  },
41
- "typesVersions": {
42
- "*": {
43
- "api": [
44
- "./dist/api.d.ts"
45
- ],
46
- "client": [
47
- "./dist/client.d.ts"
48
- ],
49
- "core": [
50
- "./dist/core.d.ts"
51
- ],
52
- "server": [
53
- "./dist/server.d.ts"
54
- ],
55
- "react": [
56
- "./dist/react.d.ts"
57
- ]
58
- }
59
- },
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
@@ -64,33 +64,21 @@
64
64
  "build": "deno task generate:styles && tsdown",
65
65
  "dev": "deno task generate:styles && tsdown --watch",
66
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",
67
- "generate:api": "orval && deno fmt src/api/generated",
67
+ "generate:api": "orval && oxfmt src/api/generated",
68
68
  "api:check": "deno task generate:api && git diff --exit-code -- src/api/generated",
69
69
  "check": "deno task generate:styles && deno task api:check && deno task format:check && deno task lint && deno task typecheck && deno task knip",
70
70
  "check:fix": "deno task generate:styles && deno task generate:api && deno task lint:fix && deno task format && deno task knip:fix",
71
- "format": "deno fmt",
72
- "format:check": "deno fmt --check",
71
+ "format": "oxfmt",
72
+ "format:check": "oxfmt --check",
73
73
  "knip": "knip",
74
74
  "knip:fix": "knip --fix --allow-remove-files && knip --fix --allow-remove-files && deno install --frozen",
75
- "lint": "deno lint",
76
- "lint:fix": "deno lint --fix",
75
+ "lint": "oxlint",
76
+ "lint:fix": "oxlint --fix",
77
77
  "ready": "deno task check && deno task test && deno task build",
78
78
  "test": "vitest run",
79
79
  "typecheck": "tsc --noEmit",
80
80
  "ui": "shadcn"
81
81
  },
82
- "peerDependencies": {
83
- "react": ">=18",
84
- "react-dom": ">=18"
85
- },
86
- "peerDependenciesMeta": {
87
- "react": {
88
- "optional": true
89
- },
90
- "react-dom": {
91
- "optional": true
92
- }
93
- },
94
82
  "devDependencies": {
95
83
  "@base-ui/react": "^1.7.0",
96
84
  "@phosphor-icons/react": "^2.1.10",
@@ -98,14 +86,29 @@
98
86
  "@tailwindcss/cli": "^4.3.3",
99
87
  "@tanstack/ai": "^0.49.1",
100
88
  "@tanstack/ai-client": "^0.28.0",
89
+ "@tanstack/eslint-plugin-query": "^5.103.2",
101
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",
102
95
  "@types/react": "^19.2.13",
103
96
  "@types/react-dom": "^19.2.3",
97
+ "@vitest/eslint-plugin": "^1.6.27",
104
98
  "class-variance-authority": "^0.7.1",
105
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",
106
106
  "jose": "^6.2.9",
107
107
  "knip": "^6.32.2",
108
108
  "orval": "8.30.0",
109
+ "oxfmt": "^0.70.0",
110
+ "oxlint": "^1.85.0",
111
+ "oxlint-tsgolint": "^7.0.2002",
109
112
  "react": "^19.2.4",
110
113
  "react-dom": "^19.2.4",
111
114
  "shadcn": "^4.20.1",
@@ -114,5 +117,17 @@
114
117
  "tw-animate-css": "^1.4.0",
115
118
  "typescript": "^6.0.3",
116
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
+ }
117
132
  }
118
133
  }
@@ -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`,a=`system`,o=`astralbeam-root`,s=e=>`background:${e};color:#fff;border-radius:3px;padding:1px 5px`,c=`${s(`#7c3aed`)};font-weight:600`,l={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 u(e){if(e)return(e,t,n)=>{console.log(`%cAstralBeam%c ${new Date().toISOString().slice(11,19)} %c${e}%c ${t}`,c,`color:#94a3b8;font-weight:400`,s(l[e]),``,...n===void 0?[]:[n])}}export{n as a,o as c,a as i,r as n,t as o,i as r,e as s,u as t};