experimental-agent 0.1.2 → 0.1.4

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.
Files changed (43) hide show
  1. package/README.md +9 -0
  2. package/dist/agent-workflow.d.mts +1 -1
  3. package/dist/agent-workflow.d.ts +1 -1
  4. package/dist/agent-workflow.js +352 -104
  5. package/dist/agent-workflow.mjs +1 -1
  6. package/dist/{chunk-W4SSZPDX.mjs → chunk-24UDM5XV.mjs} +4 -4
  7. package/dist/chunk-2ZXHR6T6.mjs +401 -0
  8. package/dist/chunk-4WDKWMVB.mjs +389 -0
  9. package/dist/{chunk-E7TOPGHY.mjs → chunk-GYOBANFH.mjs} +3 -3
  10. package/dist/chunk-IACG26TC.mjs +2212 -0
  11. package/dist/chunk-NGLND33F.mjs +1247 -0
  12. package/dist/{chunk-HJGPUEFC.mjs → chunk-YRYXN7W4.mjs} +7 -1
  13. package/dist/client-Bkuq-Dfa.d.mts +2340 -0
  14. package/dist/client-Bkuq-Dfa.d.ts +2340 -0
  15. package/dist/{client-YUU54ZZH.mjs → client-SNN3XDKO.mjs} +2 -2
  16. package/dist/client.d.mts +1 -1
  17. package/dist/client.d.ts +1 -1
  18. package/dist/client.js +1 -1
  19. package/dist/client.mjs +1 -1
  20. package/dist/{handler-LDFBSCRA.mjs → handler-WFNQWR6V.mjs} +2 -1
  21. package/dist/index.d.mts +2 -2
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +624 -223
  24. package/dist/index.mjs +79 -43
  25. package/dist/lifecycle-workflow.d.mts +1 -1
  26. package/dist/lifecycle-workflow.d.ts +1 -1
  27. package/dist/lifecycle-workflow.js +88 -6
  28. package/dist/lifecycle-workflow.mjs +1 -1
  29. package/dist/local-fs-handlers-ESZBRAWK.mjs +439 -0
  30. package/dist/next/loader.js +3 -3
  31. package/dist/next/loader.mjs +1 -1
  32. package/dist/next.js +10 -4
  33. package/dist/next.mjs +9 -3
  34. package/dist/{sandbox-GPCA35PJ.mjs → sandbox-IFK5MVRM.mjs} +3 -3
  35. package/dist/{storage-LL6IA24R.mjs → storage-FCSHTDLC.mjs} +3 -3
  36. package/package.json +2 -2
  37. package/dist/chunk-2SPAJ777.mjs +0 -365
  38. package/dist/chunk-6J462JGP.mjs +0 -1267
  39. package/dist/chunk-ILPVXRI5.mjs +0 -2026
  40. package/dist/chunk-ORE6LK2L.mjs +0 -344
  41. package/dist/client-CKLwB-ES.d.mts +0 -2115
  42. package/dist/client-CKLwB-ES.d.ts +0 -2115
  43. package/dist/local-fs-handlers-SY2RDXZE.mjs +0 -314
package/README.md CHANGED
@@ -191,6 +191,13 @@ const stream = await session.stream();
191
191
  await session.tag.set("category", "support");
192
192
  ```
193
193
 
194
+ ### Handles vs Records
195
+
196
+ - `myAgent.session(id)` and `myAgent.sandbox(id)` return orchestration handles.
197
+ - Handles are use-case APIs (send, stream, run tools, resume sandbox lifecycle).
198
+ - `myAgent.storage.*` is the raw record API (`Session`, `SandboxRecord`, `Message`, `Part`, `Command`, `SetupSnapshot`).
199
+ - Use `storage` for record lookups and filters (for example existence checks and list queries).
200
+
194
201
  ### Durable UI
195
202
 
196
203
  Unlike `useChat` alone, messages survive refresh. They're persisted to storage.
@@ -293,6 +300,8 @@ The SDK stores: `Session`, `Message`, `Part`, `SandboxRecord`.
293
300
 
294
301
  Everything else—users, titles, access control—belongs in your database. Session ID is your join key.
295
302
 
303
+ For session queries scoped to a sandbox, use `storage.session.listBySandbox({ sandboxId, ... })`.
304
+
296
305
  ### Vercel Agent Storage
297
306
 
298
307
  The default `{ type: "vercel" }` uses the hosted Vercel Agent Storage service:
@@ -1,5 +1,5 @@
1
1
  import * as workflow from 'workflow';
2
- import { u as StorageConfig, g as RpcPayload, h as RpcResult } from './client-CKLwB-ES.mjs';
2
+ import { u as StorageConfig, g as RpcPayload, h as RpcResult } from './client-Bkuq-Dfa.mjs';
3
3
  import 'errore';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import * as workflow from 'workflow';
2
- import { u as StorageConfig, g as RpcPayload, h as RpcResult } from './client-CKLwB-ES.js';
2
+ import { u as StorageConfig, g as RpcPayload, h as RpcResult } from './client-Bkuq-Dfa.js';
3
3
  import 'errore';
4
4
  import 'ai';
5
5
  import 'zod';