experimental-agent 0.1.1 → 0.1.2

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 (38) hide show
  1. package/dist/agent-workflow.d.mts +3 -2
  2. package/dist/agent-workflow.d.ts +3 -2
  3. package/dist/agent-workflow.js +29 -29
  4. package/dist/agent-workflow.mjs +1 -2
  5. package/dist/{chunk-GJETDXOU.mjs → chunk-2SPAJ777.mjs} +5 -1
  6. package/dist/chunk-6J462JGP.mjs +1267 -0
  7. package/dist/{chunk-T2UUL6VC.mjs → chunk-E7TOPGHY.mjs} +3 -3
  8. package/dist/chunk-ILPVXRI5.mjs +2026 -0
  9. package/dist/chunk-ORE6LK2L.mjs +344 -0
  10. package/dist/chunk-W4SSZPDX.mjs +106 -0
  11. package/dist/{types-DuTc4UQW.d.mts → client-CKLwB-ES.d.mts} +730 -3
  12. package/dist/{types-DuTc4UQW.d.ts → client-CKLwB-ES.d.ts} +730 -3
  13. package/dist/{client-66JIQLSA.mjs → client-YUU54ZZH.mjs} +1 -1
  14. package/dist/{handler-BQY5SOI2.mjs → handler-LDFBSCRA.mjs} +1 -1
  15. package/dist/index.d.mts +4 -18
  16. package/dist/index.d.ts +4 -18
  17. package/dist/index.js +67 -40
  18. package/dist/index.mjs +21 -16
  19. package/dist/lifecycle-workflow.d.mts +2 -3
  20. package/dist/lifecycle-workflow.d.ts +2 -3
  21. package/dist/lifecycle-workflow.js +19 -15
  22. package/dist/lifecycle-workflow.mjs +1 -2
  23. package/dist/local-fs-handlers-SY2RDXZE.mjs +314 -0
  24. package/dist/next/loader.js +3 -3
  25. package/dist/next/loader.mjs +1 -1
  26. package/dist/next.js +3 -5
  27. package/dist/next.mjs +2 -4
  28. package/dist/{sandbox-27X2DSE3.mjs → sandbox-GPCA35PJ.mjs} +2 -3
  29. package/dist/{storage-KQYV42J4.mjs → storage-LL6IA24R.mjs} +2 -2
  30. package/package.json +2 -2
  31. package/dist/chunk-2IIWVPZB.mjs +0 -334
  32. package/dist/chunk-A63YU65A.mjs +0 -20
  33. package/dist/chunk-RDKDLHXM.mjs +0 -2031
  34. package/dist/chunk-VGJISV6O.mjs +0 -108
  35. package/dist/chunk-VS7U6SXN.mjs +0 -1261
  36. package/dist/client-DjcE0ATp.d.mts +0 -710
  37. package/dist/client-DwrDzn4_.d.ts +0 -710
  38. package/dist/local-fs-handlers-Q5W52DKV.mjs +0 -290
@@ -3,7 +3,7 @@ import {
3
3
  LOCAL_STORAGE_VERSION,
4
4
  getStorage,
5
5
  getStorageClient
6
- } from "./chunk-2IIWVPZB.mjs";
6
+ } from "./chunk-ORE6LK2L.mjs";
7
7
  import "./chunk-HJGPUEFC.mjs";
8
8
  import "./chunk-BJTO5JO5.mjs";
9
9
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  handleStorageRpc
3
- } from "./chunk-GJETDXOU.mjs";
3
+ } from "./chunk-2SPAJ777.mjs";
4
4
  import "./chunk-BJTO5JO5.mjs";
5
5
  export {
6
6
  handleStorageRpc
package/dist/index.d.mts CHANGED
@@ -1,10 +1,8 @@
1
- import { R as RpcPayload, a as RpcResult } from './client-DjcE0ATp.mjs';
2
- export { A as AgentDataTypes, b as AgentOptions, c as AgentStatus, d as AgentStream, B as BuiltInToolName, E as ExecResult, G as GenerationOptions, I as InferUIMessage, O as OnRestart, S as Sandbox, e as SandboxSetup, f as SendInput, g as SessionOptions, h as SkillSummary, T as TagsSchema, i as ToolContext, U as UploadableFile, j as agent, k as builtinToolNames } from './client-DjcE0ATp.mjs';
3
- import { M as MethodName, S as StorageMethods } from './types-DuTc4UQW.mjs';
4
- export { L as ListResult, a as Message, b as MessageNotFoundError, c as MessageUsage, P as Part, R as ResolvedStorage, d as SandboxConfig, e as SandboxError, f as SandboxNotFoundError, g as SandboxRecord, h as Session, i as SessionNotFoundError, j as StepUsage, k as StorageConfig, l as StorageError, U as UsageSummary } from './types-DuTc4UQW.mjs';
1
+ import { M as MethodName, S as StorageMethods } from './client-CKLwB-ES.mjs';
2
+ export { A as AgentDataTypes, a as AgentOptions, b as AgentStatus, c as AgentStream, B as BuiltInToolName, E as ExecResult, G as GenerationOptions, I as InferUIMessage, L as ListResult, d as Message, e as MessageNotFoundError, f as MessageUsage, O as OnRestart, P as Part, R as ResolvedStorage, g as RpcPayload, h as RpcResult, i as Sandbox, j as SandboxConfig, k as SandboxError, l as SandboxNotFoundError, m as SandboxRecord, n as SandboxSetup, o as SendInput, p as Session, q as SessionNotFoundError, r as SessionOptions, s as SkillSummary, t as StepUsage, u as StorageConfig, v as StorageError, T as TagsSchema, w as ToolContext, U as UploadableFile, x as UsageSummary, y as agent, z as builtinToolNames } from './client-CKLwB-ES.mjs';
5
3
  import { z } from 'zod';
6
- import 'ai';
7
4
  import 'errore';
5
+ import 'ai';
8
6
 
9
7
  type Handlers = {
10
8
  [K in MethodName]: (params: z.infer<StorageMethods[K]["params"]>) => Promise<z.infer<StorageMethods[K]["result"]>>;
@@ -25,16 +23,4 @@ type RpcErrorResponse = {
25
23
  type RpcResponse<T = unknown> = RpcSuccessResponse<T> | RpcErrorResponse;
26
24
  declare function handleStorageRpc(body: RpcRequest, handlers: Handlers): Promise<RpcResponse>;
27
25
 
28
- /**
29
- * Module-level registry for agent RPC functions.
30
- *
31
- * RPC functions are async step functions generated by the Next.js loader
32
- * (in steps.js). They cannot be serialized by devalue, so they must not
33
- * appear in workflow arguments. Instead, the loader init registers each
34
- * agent's RPC here, and workflow step functions look it up by agent name.
35
- */
36
-
37
- type RpcFn = (params: RpcPayload) => Promise<RpcResult>;
38
- declare function registerRpc(name: string, fn: RpcFn): void;
39
-
40
- export { type Handlers, RpcPayload, type RpcRequest, type RpcResponse, RpcResult, handleStorageRpc, registerRpc };
26
+ export { type Handlers, type RpcRequest, type RpcResponse, handleStorageRpc };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,8 @@
1
- import { R as RpcPayload, a as RpcResult } from './client-DwrDzn4_.js';
2
- export { A as AgentDataTypes, b as AgentOptions, c as AgentStatus, d as AgentStream, B as BuiltInToolName, E as ExecResult, G as GenerationOptions, I as InferUIMessage, O as OnRestart, S as Sandbox, e as SandboxSetup, f as SendInput, g as SessionOptions, h as SkillSummary, T as TagsSchema, i as ToolContext, U as UploadableFile, j as agent, k as builtinToolNames } from './client-DwrDzn4_.js';
3
- import { M as MethodName, S as StorageMethods } from './types-DuTc4UQW.js';
4
- export { L as ListResult, a as Message, b as MessageNotFoundError, c as MessageUsage, P as Part, R as ResolvedStorage, d as SandboxConfig, e as SandboxError, f as SandboxNotFoundError, g as SandboxRecord, h as Session, i as SessionNotFoundError, j as StepUsage, k as StorageConfig, l as StorageError, U as UsageSummary } from './types-DuTc4UQW.js';
1
+ import { M as MethodName, S as StorageMethods } from './client-CKLwB-ES.js';
2
+ export { A as AgentDataTypes, a as AgentOptions, b as AgentStatus, c as AgentStream, B as BuiltInToolName, E as ExecResult, G as GenerationOptions, I as InferUIMessage, L as ListResult, d as Message, e as MessageNotFoundError, f as MessageUsage, O as OnRestart, P as Part, R as ResolvedStorage, g as RpcPayload, h as RpcResult, i as Sandbox, j as SandboxConfig, k as SandboxError, l as SandboxNotFoundError, m as SandboxRecord, n as SandboxSetup, o as SendInput, p as Session, q as SessionNotFoundError, r as SessionOptions, s as SkillSummary, t as StepUsage, u as StorageConfig, v as StorageError, T as TagsSchema, w as ToolContext, U as UploadableFile, x as UsageSummary, y as agent, z as builtinToolNames } from './client-CKLwB-ES.js';
5
3
  import { z } from 'zod';
6
- import 'ai';
7
4
  import 'errore';
5
+ import 'ai';
8
6
 
9
7
  type Handlers = {
10
8
  [K in MethodName]: (params: z.infer<StorageMethods[K]["params"]>) => Promise<z.infer<StorageMethods[K]["result"]>>;
@@ -25,16 +23,4 @@ type RpcErrorResponse = {
25
23
  type RpcResponse<T = unknown> = RpcSuccessResponse<T> | RpcErrorResponse;
26
24
  declare function handleStorageRpc(body: RpcRequest, handlers: Handlers): Promise<RpcResponse>;
27
25
 
28
- /**
29
- * Module-level registry for agent RPC functions.
30
- *
31
- * RPC functions are async step functions generated by the Next.js loader
32
- * (in steps.js). They cannot be serialized by devalue, so they must not
33
- * appear in workflow arguments. Instead, the loader init registers each
34
- * agent's RPC here, and workflow step functions look it up by agent name.
35
- */
36
-
37
- type RpcFn = (params: RpcPayload) => Promise<RpcResult>;
38
- declare function registerRpc(name: string, fn: RpcFn): void;
39
-
40
- export { type Handlers, RpcPayload, type RpcRequest, type RpcResponse, RpcResult, handleStorageRpc, registerRpc };
26
+ export { type Handlers, type RpcRequest, type RpcResponse, handleStorageRpc };