@astralbeam/sdk 0.7.0 → 0.10.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/package.json CHANGED
@@ -1,20 +1,25 @@
1
1
  {
2
2
  "name": "@astralbeam/sdk",
3
- "version": "0.7.0",
3
+ "version": "0.10.1",
4
4
  "description": "Frontend SDK for AstralBeam: drop-in agent UI, chat streaming, and server helpers",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "homepage": "https://astralbeam.ai",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/astralbeamai/astralbeam.git",
10
+ "url": "git+https://github.com/AstralBeamAI/astralbeam.git",
11
11
  "directory": "sdk"
12
12
  },
13
+ "bugs": "https://github.com/AstralBeamAI/astralbeam/issues",
13
14
  "files": [
14
15
  "dist"
15
16
  ],
16
17
  "sideEffects": false,
17
18
  "exports": {
19
+ "./api": {
20
+ "types": "./dist/api.d.ts",
21
+ "default": "./dist/api.js"
22
+ },
18
23
  "./client": {
19
24
  "types": "./dist/client.d.ts",
20
25
  "default": "./dist/client.js"
@@ -35,6 +40,9 @@
35
40
  },
36
41
  "typesVersions": {
37
42
  "*": {
43
+ "api": [
44
+ "./dist/api.d.ts"
45
+ ],
38
46
  "client": [
39
47
  "./dist/client.d.ts"
40
48
  ],
@@ -56,8 +64,10 @@
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
- "check": "deno task generate:styles && deno task format:check && deno task lint && deno task typecheck && deno task knip",
60
- "check:fix": "deno fmt && deno lint --fix",
67
+ "generate:api": "orval && deno fmt 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",
61
71
  "format": "deno fmt",
62
72
  "format:check": "deno fmt --check",
63
73
  "knip": "knip",
@@ -95,6 +105,7 @@
95
105
  "cn": "^0.2.4",
96
106
  "jose": "^6.2.9",
97
107
  "knip": "^6.32.2",
108
+ "orval": "8.30.0",
98
109
  "react": "^19.2.4",
99
110
  "react-dom": "^19.2.4",
100
111
  "shadcn": "^4.20.1",
@@ -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(/\/+$/,``)}/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};