@deepagents/experimental 7.10.0 → 7.10.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 +16 -4
- package/dist/index.js +862 -671
- package/dist/index.js.map +4 -4
- package/dist/zukhruf/collaboration/capability.d.ts +22 -0
- package/dist/zukhruf/collaboration/capability.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/code-mode-tools.d.ts +13 -0
- package/dist/zukhruf/collaboration/code-mode-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/direct-messaging.d.ts +466 -0
- package/dist/zukhruf/collaboration/direct-messaging.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/direct-tools.d.ts +14 -0
- package/dist/zukhruf/collaboration/direct-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/spawn-agent.d.ts +26 -26
- package/dist/zukhruf/collaboration/spawning.d.ts +325 -0
- package/dist/zukhruf/collaboration/spawning.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/supervision.d.ts +478 -0
- package/dist/zukhruf/collaboration/supervision.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/team.d.ts +1549 -0
- package/dist/zukhruf/collaboration/team.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/tool-exposure.d.ts +29 -0
- package/dist/zukhruf/collaboration/tool-exposure.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/tool-namespace.d.ts +7 -0
- package/dist/zukhruf/collaboration/tool-namespace.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/wait-bounds.d.ts +12 -0
- package/dist/zukhruf/collaboration/wait-bounds.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/waiting.d.ts +262 -0
- package/dist/zukhruf/collaboration/waiting.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/fork-turns.d.ts +4 -3
- package/dist/zukhruf/control-plane/fork-turns.d.ts.map +1 -1
- package/dist/zukhruf/index.d.ts +11 -1
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +863 -672
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/index.js +142 -141
- package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +4 -4
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/schedules/index.js +141 -140
- package/dist/zukhruf/plugins/schedules/index.js.map +4 -4
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts +1 -1
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts.map +1 -1
- package/dist/zukhruf/plugins/uploads/http.js +2 -9
- package/dist/zukhruf/plugins/uploads/http.js.map +2 -2
- package/dist/zukhruf/queue/turn-queue.d.ts +2 -2
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-runtime.d.ts +5 -4
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts +3 -3
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
- package/dist/zukhruf/runtime/approval-controller.d.ts +3 -3
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -1
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -1
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts +3 -5
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +0 -1832
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +0 -1
- package/dist/zukhruf/multi-agent-config.d.ts +0 -37
- package/dist/zukhruf/multi-agent-config.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.d.ts","sources":["../../../src/zukhruf/collaboration/team.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAY,IAAI,EAAa,MAAM,iBAAiB,CAAC;AAG7E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiCnD,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,OAAO,IAAI;KACnD,IAAI,IAAI,MAAM,KAAK,GAAG,gBAAgB;CACxC,GAAG;IAAE,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAC5E;AAED;;;GAGG;AACH,qBAAa,IAAI,CACf,KAAK,SAAS,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC;;IAE7D,QAAQ,CAAC,oBAAoB,EA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B,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED,4DAA4D;IAC5D,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAO3D;IAED,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAIvC;CAiCF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { experimental_codeModeTool } from '@ai-sdk/code-mode';
|
|
2
|
+
import type { Tool, ToolSet } from 'ai';
|
|
3
|
+
/** What a turn's model request carries for the collaboration tools. */
|
|
4
|
+
export interface ToolSurface<TOOLS extends ToolSet> {
|
|
5
|
+
/** The tools the request carries, in request order. */
|
|
6
|
+
readonly tools: TOOLS & {
|
|
7
|
+
code_mode?: ReturnType<typeof experimental_codeModeTool>;
|
|
8
|
+
};
|
|
9
|
+
/** Names a plugin tool cannot take. */
|
|
10
|
+
readonly reservedToolNames: readonly string[];
|
|
11
|
+
/** AI SDK `experimental_toolCallers`, when another tool calls them. */
|
|
12
|
+
readonly toolCallers: Readonly<Record<string, readonly ['code_mode']>> | undefined;
|
|
13
|
+
}
|
|
14
|
+
/** How the collaboration tools reach the model and how guidance names them. */
|
|
15
|
+
export declare abstract class ToolExposure {
|
|
16
|
+
/** The name guidance uses for a collaboration tool. */
|
|
17
|
+
abstract toolName(name: string): string;
|
|
18
|
+
/** The guidance sentence that says where the model calls the tools. */
|
|
19
|
+
abstract callLine(toolNames: readonly string[]): string;
|
|
20
|
+
/** One collaboration tool as the request carries it. */
|
|
21
|
+
abstract tool<TOOL extends Tool>(collaborationTool: TOOL): TOOL;
|
|
22
|
+
abstract surface<TOOLS extends ToolSet>(collaborationTools: TOOLS): ToolSurface<TOOLS>;
|
|
23
|
+
/** The tools context of the tools that call the collaboration tools. */
|
|
24
|
+
abstract callerContext<CONTEXT>(context: CONTEXT): {
|
|
25
|
+
code_mode?: CONTEXT;
|
|
26
|
+
};
|
|
27
|
+
protected listed(toolNames: readonly string[]): string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=tool-exposure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-exposure.d.ts","sources":["../../../src/zukhruf/collaboration/tool-exposure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAExC,uEAAuE;AACvE,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,OAAO;IAChD,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG;QACtB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;KAC1D,CAAC;IACF,uCAAuC;IACvC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAClB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CAChE;AAED,+EAA+E;AAC/E,8BAAsB,YAAY;IAChC,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAExC,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC;IAExD,wDAAwD;IACxD,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,IAAI,EAAE,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;IAEhE,QAAQ,CAAC,OAAO,CAAC,KAAK,SAAS,OAAO,EACpC,kBAAkB,EAAE,KAAK,GACxB,WAAW,CAAC,KAAK,CAAC,CAAC;IAEtB,wEAAwE;IACxE,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAE3E,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAErD;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-namespace.d.ts","sources":["../../../src/zukhruf/collaboration/tool-namespace.ts"],"names":[],"mappings":"AAiBA,0EAA0E;AAC1E,qBAAa,aAAa;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,YAAY,IAAI,EAAE,MAAM,EAgBvB;IAED,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEhC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** `wait_agent` timeout bounds in milliseconds: min <= default <= max. */
|
|
2
|
+
export declare class WaitBounds {
|
|
3
|
+
readonly minMs: number;
|
|
4
|
+
readonly defaultMs: number;
|
|
5
|
+
readonly maxMs: number;
|
|
6
|
+
constructor({ minMs, defaultMs, maxMs, }?: {
|
|
7
|
+
minMs?: number;
|
|
8
|
+
defaultMs?: number;
|
|
9
|
+
maxMs?: number;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=wait-bounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-bounds.d.ts","sources":["../../../src/zukhruf/collaboration/wait-bounds.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qBAAa,UAAU;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,YAAY,EACV,KAAc,EACd,SAAkB,EAClB,KAAiB,GAClB,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,EAoB7D;CACF"}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type { Capability, Guidance } from './capability.ts';
|
|
2
|
+
import { WaitBounds } from './wait-bounds.ts';
|
|
3
|
+
/** Waits for mail from other agents: `wait_agent`, within its bounds. */
|
|
4
|
+
export declare class Waiting implements Capability {
|
|
5
|
+
readonly bounds: WaitBounds;
|
|
6
|
+
readonly tools: {
|
|
7
|
+
wait_agent: ({
|
|
8
|
+
deferLoading?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
11
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
12
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
13
|
+
timeout_ms?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
16
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
17
|
+
timeout_ms?: number | undefined;
|
|
18
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
19
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
20
|
+
onInputDelta?: ((options: {
|
|
21
|
+
inputTextDelta: string;
|
|
22
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
23
|
+
onInputAvailable?: ((options: {
|
|
24
|
+
input: {
|
|
25
|
+
timeout_ms?: number | undefined;
|
|
26
|
+
};
|
|
27
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
28
|
+
toModelOutput?: ((options: {
|
|
29
|
+
toolCallId: string;
|
|
30
|
+
input: {
|
|
31
|
+
timeout_ms?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
output: NoInfer<{
|
|
34
|
+
message: string;
|
|
35
|
+
timed_out: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
40
|
+
message: string;
|
|
41
|
+
timed_out: boolean;
|
|
42
|
+
}> | undefined;
|
|
43
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
44
|
+
timeout_ms?: number | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
message: string;
|
|
47
|
+
timed_out: boolean;
|
|
48
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
49
|
+
} & {
|
|
50
|
+
description?: string | ((options: {
|
|
51
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
52
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
53
|
+
}) => string) | undefined;
|
|
54
|
+
strict?: boolean;
|
|
55
|
+
inputExamples?: {
|
|
56
|
+
input: NoInfer<{
|
|
57
|
+
timeout_ms?: number | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
id?: never;
|
|
61
|
+
isProviderExecuted?: never;
|
|
62
|
+
args?: never;
|
|
63
|
+
supportsDeferredResults?: never;
|
|
64
|
+
} & {
|
|
65
|
+
type?: undefined | 'function';
|
|
66
|
+
} & {
|
|
67
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
68
|
+
timeout_ms?: number | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
message: string;
|
|
71
|
+
timed_out: boolean;
|
|
72
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
73
|
+
}) | ({
|
|
74
|
+
deferLoading?: boolean;
|
|
75
|
+
title?: string;
|
|
76
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
77
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
78
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
79
|
+
timeout_ms?: number | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
82
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
83
|
+
timeout_ms?: number | undefined;
|
|
84
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
85
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
86
|
+
onInputDelta?: ((options: {
|
|
87
|
+
inputTextDelta: string;
|
|
88
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
89
|
+
onInputAvailable?: ((options: {
|
|
90
|
+
input: {
|
|
91
|
+
timeout_ms?: number | undefined;
|
|
92
|
+
};
|
|
93
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
94
|
+
toModelOutput?: ((options: {
|
|
95
|
+
toolCallId: string;
|
|
96
|
+
input: {
|
|
97
|
+
timeout_ms?: number | undefined;
|
|
98
|
+
};
|
|
99
|
+
output: NoInfer<{
|
|
100
|
+
message: string;
|
|
101
|
+
timed_out: boolean;
|
|
102
|
+
}>;
|
|
103
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
104
|
+
} & {
|
|
105
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
106
|
+
message: string;
|
|
107
|
+
timed_out: boolean;
|
|
108
|
+
}> | undefined;
|
|
109
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
110
|
+
timeout_ms?: number | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
message: string;
|
|
113
|
+
timed_out: boolean;
|
|
114
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
115
|
+
} & {
|
|
116
|
+
description?: string | ((options: {
|
|
117
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
118
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
119
|
+
}) => string) | undefined;
|
|
120
|
+
strict?: boolean;
|
|
121
|
+
inputExamples?: {
|
|
122
|
+
input: NoInfer<{
|
|
123
|
+
timeout_ms?: number | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
id?: never;
|
|
127
|
+
isProviderExecuted?: never;
|
|
128
|
+
args?: never;
|
|
129
|
+
supportsDeferredResults?: never;
|
|
130
|
+
} & {
|
|
131
|
+
type: 'dynamic';
|
|
132
|
+
} & {
|
|
133
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
134
|
+
timeout_ms?: number | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
message: string;
|
|
137
|
+
timed_out: boolean;
|
|
138
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
139
|
+
}) | ({
|
|
140
|
+
deferLoading?: boolean;
|
|
141
|
+
title?: string;
|
|
142
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
143
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
144
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
145
|
+
timeout_ms?: number | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
148
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
149
|
+
timeout_ms?: number | undefined;
|
|
150
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
151
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
152
|
+
onInputDelta?: ((options: {
|
|
153
|
+
inputTextDelta: string;
|
|
154
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
155
|
+
onInputAvailable?: ((options: {
|
|
156
|
+
input: {
|
|
157
|
+
timeout_ms?: number | undefined;
|
|
158
|
+
};
|
|
159
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
160
|
+
toModelOutput?: ((options: {
|
|
161
|
+
toolCallId: string;
|
|
162
|
+
input: {
|
|
163
|
+
timeout_ms?: number | undefined;
|
|
164
|
+
};
|
|
165
|
+
output: NoInfer<{
|
|
166
|
+
message: string;
|
|
167
|
+
timed_out: boolean;
|
|
168
|
+
}>;
|
|
169
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
170
|
+
} & {
|
|
171
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
172
|
+
message: string;
|
|
173
|
+
timed_out: boolean;
|
|
174
|
+
}> | undefined;
|
|
175
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
176
|
+
timeout_ms?: number | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
message: string;
|
|
179
|
+
timed_out: boolean;
|
|
180
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
181
|
+
} & {
|
|
182
|
+
type: 'provider';
|
|
183
|
+
id: `${string}.${string}`;
|
|
184
|
+
args: Record<string, unknown>;
|
|
185
|
+
description?: never;
|
|
186
|
+
strict?: never;
|
|
187
|
+
inputExamples?: never;
|
|
188
|
+
} & {
|
|
189
|
+
isProviderExecuted: false;
|
|
190
|
+
supportsDeferredResults?: never;
|
|
191
|
+
} & {
|
|
192
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
193
|
+
timeout_ms?: number | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
message: string;
|
|
196
|
+
timed_out: boolean;
|
|
197
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
198
|
+
}) | ({
|
|
199
|
+
deferLoading?: boolean;
|
|
200
|
+
title?: string;
|
|
201
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
202
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
203
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
204
|
+
timeout_ms?: number | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
207
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
208
|
+
timeout_ms?: number | undefined;
|
|
209
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
210
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
211
|
+
onInputDelta?: ((options: {
|
|
212
|
+
inputTextDelta: string;
|
|
213
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
214
|
+
onInputAvailable?: ((options: {
|
|
215
|
+
input: {
|
|
216
|
+
timeout_ms?: number | undefined;
|
|
217
|
+
};
|
|
218
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
219
|
+
toModelOutput?: ((options: {
|
|
220
|
+
toolCallId: string;
|
|
221
|
+
input: {
|
|
222
|
+
timeout_ms?: number | undefined;
|
|
223
|
+
};
|
|
224
|
+
output: NoInfer<{
|
|
225
|
+
message: string;
|
|
226
|
+
timed_out: boolean;
|
|
227
|
+
}>;
|
|
228
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
229
|
+
} & {
|
|
230
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
231
|
+
message: string;
|
|
232
|
+
timed_out: boolean;
|
|
233
|
+
}> | undefined;
|
|
234
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
235
|
+
timeout_ms?: number | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
message: string;
|
|
238
|
+
timed_out: boolean;
|
|
239
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
240
|
+
} & {
|
|
241
|
+
type: 'provider';
|
|
242
|
+
id: `${string}.${string}`;
|
|
243
|
+
args: Record<string, unknown>;
|
|
244
|
+
description?: never;
|
|
245
|
+
strict?: never;
|
|
246
|
+
inputExamples?: never;
|
|
247
|
+
} & {
|
|
248
|
+
isProviderExecuted: true;
|
|
249
|
+
supportsDeferredResults?: boolean;
|
|
250
|
+
} & {
|
|
251
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
252
|
+
timeout_ms?: number | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
message: string;
|
|
255
|
+
timed_out: boolean;
|
|
256
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
constructor(bounds?: WaitBounds);
|
|
260
|
+
guidance(): Guidance;
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=waiting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waiting.d.ts","sources":["../../../src/zukhruf/collaboration/waiting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,yEAAyE;AACzE,qBAAa,OAAQ,YAAW,UAAU;IACxC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAC;IAEf,YAAY,MAAM,aAAmB,EASpC;IAED,QAAQ,IAAI,QAAQ,CAEnB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-history-forker.d.ts","sources":["../../../src/zukhruf/control-plane/agent-history-forker.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAcjD,+EAA+E;AAC/E,qBAAa,kBAAkB;;IAG7B,YAAY,KAAK,EAAE,YAAY,EAE9B;IAEK,IAAI,CACR,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,IAAI,CAAC,CA0Cf;
|
|
1
|
+
{"version":3,"file":"agent-history-forker.d.ts","sources":["../../../src/zukhruf/control-plane/agent-history-forker.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAcjD,+EAA+E;AAC/E,qBAAa,kBAAkB;;IAG7B,YAAY,KAAK,EAAE,YAAY,EAE9B;IAEK,IAAI,CACR,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,IAAI,CAAC,CA0Cf;CAoQF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type ForkTurns = 'none' | 'all'
|
|
2
|
-
export declare const forkTurnsError = "fork_turns must be `none
|
|
3
|
-
|
|
1
|
+
export type ForkTurns = 'none' | 'all';
|
|
2
|
+
export declare const forkTurnsError = "fork_turns must be `none` or `all`";
|
|
3
|
+
/** Omitted or blank `fork_turns` forks the full parent history. */
|
|
4
|
+
export declare function parseForkTurns(value: string | undefined): ForkTurns | undefined;
|
|
4
5
|
//# sourceMappingURL=fork-turns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fork-turns.d.ts","sources":["../../../src/zukhruf/control-plane/fork-turns.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"fork-turns.d.ts","sources":["../../../src/zukhruf/control-plane/fork-turns.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AAEvC,eAAO,MAAM,cAAc,uCAAuC,CAAC;AAEnE,mEAAmE;AACnE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,SAAS,GAAG,SAAS,CAGvB"}
|
package/dist/zukhruf/index.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export * from './agent.ts';
|
|
2
|
+
export type { Role } from './collaboration/capability.ts';
|
|
3
|
+
export { CodeModeTools } from './collaboration/code-mode-tools.ts';
|
|
4
|
+
export { DirectMessaging } from './collaboration/direct-messaging.ts';
|
|
5
|
+
export { DirectTools } from './collaboration/direct-tools.ts';
|
|
6
|
+
export { Spawning } from './collaboration/spawning.ts';
|
|
7
|
+
export { Supervision } from './collaboration/supervision.ts';
|
|
8
|
+
export { Team, type TeamOptions } from './collaboration/team.ts';
|
|
9
|
+
export type { ToolExposure } from './collaboration/tool-exposure.ts';
|
|
10
|
+
export { ToolNamespace } from './collaboration/tool-namespace.ts';
|
|
11
|
+
export { WaitBounds } from './collaboration/wait-bounds.ts';
|
|
12
|
+
export { Waiting } from './collaboration/waiting.ts';
|
|
2
13
|
export * from './control-plane/agent-path.ts';
|
|
3
14
|
export * from './control-plane/agent-thread.ts';
|
|
4
15
|
export { AgentThreadLimitError } from './control-plane/agent-thread-limit-error.ts';
|
|
@@ -10,7 +21,6 @@ export * from './mailbox/postgres.store.ts';
|
|
|
10
21
|
export * from './mailbox/sqlite.store.ts';
|
|
11
22
|
export * from './mailbox/store.ts';
|
|
12
23
|
export * from './mailbox/types.ts';
|
|
13
|
-
export type { MultiAgentHostConfig } from './multi-agent-config.ts';
|
|
14
24
|
export * from './queue/pg-boss.turn-queue.ts';
|
|
15
25
|
export * from './queue/turn-queue.ts';
|
|
16
26
|
export * from './runtime/agent-runtime.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../src/zukhruf/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,cAAc,mBAAmB,CAAC;AAClC,c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