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.
- package/dist/agent-workflow.d.mts +3 -2
- package/dist/agent-workflow.d.ts +3 -2
- package/dist/agent-workflow.js +29 -29
- package/dist/agent-workflow.mjs +1 -2
- package/dist/{chunk-GJETDXOU.mjs → chunk-2SPAJ777.mjs} +5 -1
- package/dist/chunk-6J462JGP.mjs +1267 -0
- package/dist/{chunk-T2UUL6VC.mjs → chunk-E7TOPGHY.mjs} +3 -3
- package/dist/chunk-ILPVXRI5.mjs +2026 -0
- package/dist/chunk-ORE6LK2L.mjs +344 -0
- package/dist/chunk-W4SSZPDX.mjs +106 -0
- package/dist/{types-DuTc4UQW.d.mts → client-CKLwB-ES.d.mts} +730 -3
- package/dist/{types-DuTc4UQW.d.ts → client-CKLwB-ES.d.ts} +730 -3
- package/dist/{client-66JIQLSA.mjs → client-YUU54ZZH.mjs} +1 -1
- package/dist/{handler-BQY5SOI2.mjs → handler-LDFBSCRA.mjs} +1 -1
- package/dist/index.d.mts +4 -18
- package/dist/index.d.ts +4 -18
- package/dist/index.js +67 -40
- package/dist/index.mjs +21 -16
- package/dist/lifecycle-workflow.d.mts +2 -3
- package/dist/lifecycle-workflow.d.ts +2 -3
- package/dist/lifecycle-workflow.js +19 -15
- package/dist/lifecycle-workflow.mjs +1 -2
- package/dist/local-fs-handlers-SY2RDXZE.mjs +314 -0
- package/dist/next/loader.js +3 -3
- package/dist/next/loader.mjs +1 -1
- package/dist/next.js +3 -5
- package/dist/next.mjs +2 -4
- package/dist/{sandbox-27X2DSE3.mjs → sandbox-GPCA35PJ.mjs} +2 -3
- package/dist/{storage-KQYV42J4.mjs → storage-LL6IA24R.mjs} +2 -2
- package/package.json +2 -2
- package/dist/chunk-2IIWVPZB.mjs +0 -334
- package/dist/chunk-A63YU65A.mjs +0 -20
- package/dist/chunk-RDKDLHXM.mjs +0 -2031
- package/dist/chunk-VGJISV6O.mjs +0 -108
- package/dist/chunk-VS7U6SXN.mjs +0 -1261
- package/dist/client-DjcE0ATp.d.mts +0 -710
- package/dist/client-DwrDzn4_.d.ts +0 -710
- package/dist/local-fs-handlers-Q5W52DKV.mjs +0 -290
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AgentDataTypes,
|
|
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 {
|
|
2
|
-
export { A as AgentDataTypes,
|
|
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 };
|