@heroui/agent 0.2.0-beta.7 → 0.2.0-beta.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-beta.8
4
+
5
+ - Replace the HeroUI Agents Trigger.dev transport with a preconnected protocol-v6 Durable Object
6
+ WebSocket, resumable streaming, direct provider requests, and runtime-derived activity updates.
7
+ - Move conversation presence and transcript hydration onto the edge connection; InstantDB is now
8
+ an asynchronous monitoring projection rather than an interactive runtime dependency.
9
+ - Preload project configuration and the complete composer behind an immediately available launcher,
10
+ show a centered loading state on an early open, and expose readiness through `onReady` and the
11
+ reactive `useAgent().ready` status for custom entry points.
12
+ - Stabilize startup and composer presentation so the initial prompt appears immediately, controls
13
+ stay compact while bootstrapping, and the disclaimer remains visible.
14
+ - Bound live activity details and smooth status transitions during long-running turns.
15
+
3
16
  ## 0.2.0-beta.7
4
17
 
5
18
  - Polish the activity trail with smoother status transitions, semantic summary icons, bounded
@@ -62,8 +75,8 @@
62
75
  - Fold `renderUI` into `composeUI`, which now accepts either a single component or a layout tree as
63
76
  its root. The component union is no longer declared to the model as a tool schema: it reads a
64
77
  compact kind catalog and fetches the props it needs with `getComponentSchema`, which cut ~300 KB
65
- (~76K tokens) of JSON Schema off every rendering request. `renderUI` and the `loadUIRenderers`
66
- deferral it needed are gone; only `loadUIRenderers` stays reserved for stored-conversation safety.
78
+ (~76K tokens) of JSON Schema off every rendering request. `renderUI` and the
79
+ `loadUIRenderers` deferral it needed are gone.
67
80
  - Promote fourteen polished Storybook response compositions to validated Agent UI kinds, including
68
81
  current weather, forecasts, flights, events, rides, playlists, commerce, messages, player stats,
69
82
  notifications, and product-signal tabs.
package/README.md CHANGED
@@ -174,16 +174,21 @@ Projects and API keys are managed in the [Agents dashboard](https://heroui.pro/d
174
174
 
175
175
  ## What runs where
176
176
 
177
- The browser sends every message and receives every answer stream through the HeroUI API, which
178
- owns the model, the durable run, the conversation store, and server-side tools. Ephemeral
179
- "watching now" presence remains a direct InstantDB room connection; it carries only conversation
180
- and pseudonymous viewer identifiers, never messages or tool data.
181
-
182
- | In the browser | Behind the HeroUI API |
177
+ The HeroUI API authenticates the visitor once, verifies conversation ownership, and returns a
178
+ one-use connection ticket. The browser then keeps a resumable WebSocket directly to the
179
+ conversation's Cloudflare Durable Object. That object owns the transcript, streams from the model
180
+ provider, and starts MCP or an offline, per-call-scoped sandbox only when a tool actually needs
181
+ one. Before the composer clears, the SDK durably stores the submitted turn and attachment blobs in
182
+ an identity-and-conversation-scoped IndexedDB outbox. It removes that entry only after the Durable
183
+ Object acknowledges committed admission, and reconciles the same `turnId` after a reload. InstantDB
184
+ is updated asynchronously for dashboard monitoring and never sits in front of a response stream.
185
+
186
+ | In the browser | At the HeroUI edge runtime |
183
187
  | ------------------------------------------- | -------------------------------------------- |
184
- | Panel, theme, composer, generated UI | Model orchestration and the durable run |
185
- | Client tools, running as the signed-in user | Server tools, MCP servers, knowledge search |
186
- | A short-lived HeroUI browser credential | Runtime credentials and conversation storage |
188
+ | Panel, theme, composer, generated UI | Conversation Durable Object and model stream |
189
+ | Client tools, running as the signed-in user | Server tools, lazy MCP and offline Python |
190
+ | Pre-admission IndexedDB turn outbox | SDK transcript and resumable stream storage |
191
+ | A short-lived HeroUI browser credential | Hashed tickets, credit lease, Queue outbox |
187
192
 
188
193
  ## Compatibility
189
194
 
@@ -192,7 +197,7 @@ and pseudonymous viewer identifiers, never messages or tool data.
192
197
  - Chrome/Edge 120+, Firefox 121+, Safari 17.2+
193
198
  - ESM only
194
199
 
195
- This SDK speaks protocol version `5`. The hosted API returns `426 Upgrade Required` when a beta SDK is no longer compatible.
200
+ This SDK speaks protocol version `6`. The hosted API returns `426 Upgrade Required` when a beta SDK is no longer compatible.
196
201
 
197
202
  ## Support
198
203