@ai4b-team/fsaos-gateway-sdk 3.31.0 → 3.31.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/README.md +19 -0
- package/dist/iife/gateway.js +6 -6
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +66 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +68 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,6 +157,25 @@ The SDK does not decide when AI should respond, spawn agents, or infer agent ide
|
|
|
157
157
|
| `useComponent(path)` | Dynamically load a component from the edge |
|
|
158
158
|
| `useTheme()` | Read theme CSS custom properties |
|
|
159
159
|
|
|
160
|
+
`useInfiniteItems(filter, { realtime: true })` uses the existing WebSocket event
|
|
161
|
+
dispatch and reconnect recovery. As with the other realtime hooks, the host
|
|
162
|
+
must hold an SDK account or path subscription (directly or via SDK bootstrap).
|
|
163
|
+
It does not open a separate socket or subscribe once per component. The shared
|
|
164
|
+
query cache stays fresh until a relevant item change or transport reconnect.
|
|
165
|
+
Events with a different direct `parent_id` do not refresh a parent-filtered list;
|
|
166
|
+
loaded items moving out still refresh their former list. Closed lists are marked
|
|
167
|
+
stale without fetching, and unchanged lists reopen from cache. All consumers of
|
|
168
|
+
the same filtered query should use the same realtime setting.
|
|
169
|
+
|
|
170
|
+
A relevant burst refreshes the loaded pages once, using the existing
|
|
171
|
+
`refreshQuery` protection against overlapping loads. Multiple pages are read
|
|
172
|
+
again together so offset pagination stays consistent after inserts/deletes.
|
|
173
|
+
Current VFS notifications do not include arbitrary `type_data` fields, so a
|
|
174
|
+
direct-child change may still require a listing read to evaluate a field filter
|
|
175
|
+
(for example `role=user`). Missing old-parent information can only identify a
|
|
176
|
+
move out when the changed item is already cached; reconnect or the next fetch
|
|
177
|
+
reconciles the remaining count. No background polling is used.
|
|
178
|
+
|
|
160
179
|
**Channel / notification hooks:**
|
|
161
180
|
|
|
162
181
|
| Hook | Description |
|