@easbot/plugin 0.3.28 → 0.3.32
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.en.md +32 -17
- package/README.md +32 -17
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +926 -688
- package/dist/index.d.ts +926 -688
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Auth, Provider, createEasbotClient, Project, Event, Config } from '@easbot/sdk';
|
|
2
|
+
import * as _easbot_types from '@easbot/types';
|
|
3
|
+
import { ToolContext, AgentInfo, EasbotShell, CommandDefinition, ToolDefinition } from '@easbot/types';
|
|
4
|
+
export { AgentInfo, AgentInfoSchema, AgentModel, AgentModelSchema, AgentPermission, AgentPermissionSchema, AskInput, CommandArguments, CommandArgumentsSchema, CommandConfigInfo, CommandConfigInfoSchema, CommandDefinition, CommandExecuteFn, CommandExecuteResult, CommandExecuteResultMetadata, CommandExecuteResultMetadataSchema, CommandExecuteResultSchema, CommandExecutionContext, CommandExecutionContextSchema, CommandInfo, CommandInfoSchema, CommandInitContext, CommandInitContextSchema, CommandInitFn, CommandInitResult, CommandInitResultSchema, CommandIsEnabledFn, CommandMetadata, CommandMetadataSchema, CommandPromptPart, CommandPromptPartSchema, CommandSource, CommandSourceSchema, EasbotShell, EasbotShellError, EasbotShellOutput, EasbotShellPromise, PermissionActionSchema, PermissionRuleSchema, ShellExpression, ShellFunction, ToolContext, ToolDefinition, ToolFunction as ToolFn, ToolFunction, buildToolArgs, createTool, toolSchema as schema } from '@easbot/types';
|
|
4
5
|
import z, { z as z$1 } from 'zod';
|
|
5
6
|
|
|
6
7
|
declare function tool<Args extends Record<string, z.ZodTypeAny>>(input: {
|
|
@@ -16,116 +17,6 @@ declare namespace tool {
|
|
|
16
17
|
var schema: typeof z;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
declare const HookType: {
|
|
20
|
-
readonly Command: "command";
|
|
21
|
-
readonly Prompt: "prompt";
|
|
22
|
-
readonly Http: "http";
|
|
23
|
-
readonly Agent: "agent";
|
|
24
|
-
readonly Function: "function";
|
|
25
|
-
};
|
|
26
|
-
type HookType = (typeof HookType)[keyof typeof HookType];
|
|
27
|
-
declare const HookEvent: {
|
|
28
|
-
readonly SessionStart: "session.start";
|
|
29
|
-
readonly SessionEnd: "session.end";
|
|
30
|
-
readonly SessionCompacting: "session.compacting";
|
|
31
|
-
readonly SessionCompact: "session.compact";
|
|
32
|
-
readonly StepStart: "step.start";
|
|
33
|
-
readonly StepFinish: "step.finish";
|
|
34
|
-
readonly StepStop: "step.stop";
|
|
35
|
-
readonly StepStopFailure: "step.stop.failure";
|
|
36
|
-
readonly MessageReceive: "message.receive";
|
|
37
|
-
readonly MessageTransform: "message.transform";
|
|
38
|
-
readonly SystemTransform: "system.transform";
|
|
39
|
-
readonly ToolBefore: "tool.before";
|
|
40
|
-
readonly ToolAfter: "tool.after";
|
|
41
|
-
readonly ToolFailure: "tool.failure";
|
|
42
|
-
readonly ToolDefinition: "tool.definition";
|
|
43
|
-
readonly CommandBefore: "command.before";
|
|
44
|
-
readonly CommandAfter: "command.after";
|
|
45
|
-
readonly PermissionAsk: "permission.ask";
|
|
46
|
-
readonly PermissionDenied: "permission.denied";
|
|
47
|
-
readonly LlmParams: "llm.params";
|
|
48
|
-
readonly LlmHeaders: "llm.headers";
|
|
49
|
-
readonly ShellEnv: "shell.env";
|
|
50
|
-
readonly TextComplete: "text.complete";
|
|
51
|
-
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
52
|
-
readonly GatewayMessageProcess: "gateway.message.process";
|
|
53
|
-
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
54
|
-
readonly GatewayMessageSend: "gateway.message.send";
|
|
55
|
-
readonly GatewayMessageDelivered: "gateway.message.delivered";
|
|
56
|
-
readonly GatewayMessageRead: "gateway.message.read";
|
|
57
|
-
readonly HeartbeatTrigger: "scheduler.heartbeat.trigger";
|
|
58
|
-
readonly HeartbeatComplete: "scheduler.heartbeat.complete";
|
|
59
|
-
readonly ScheduledTaskTrigger: "scheduler.task.trigger";
|
|
60
|
-
readonly ScheduledTaskComplete: "scheduler.task.complete";
|
|
61
|
-
readonly CommandTrigger: "scheduler.command.trigger";
|
|
62
|
-
readonly CommandComplete: "scheduler.command.complete";
|
|
63
|
-
readonly ContextBuildBefore: "context.build.before";
|
|
64
|
-
readonly ContextBuildAfter: "context.build.after";
|
|
65
|
-
readonly TaskStart: "task.start";
|
|
66
|
-
readonly TaskRunning: "task.running";
|
|
67
|
-
readonly TaskProgress: "task.progress";
|
|
68
|
-
readonly TaskComplete: "task.complete";
|
|
69
|
-
readonly LoopStart: "loop.start";
|
|
70
|
-
readonly LoopEnd: "loop.end";
|
|
71
|
-
readonly CreationRequest: "creation.request";
|
|
72
|
-
readonly CreationComplete: "creation.complete";
|
|
73
|
-
readonly EvolutionRequest: "evolution.request";
|
|
74
|
-
readonly EvolutionComplete: "evolution.complete";
|
|
75
|
-
};
|
|
76
|
-
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
77
|
-
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "step.start" | "step.finish" | "step.stop" | "step.stop.failure" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "text.complete" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end" | "creation.request" | "creation.complete" | "evolution.request" | "evolution.complete")[];
|
|
78
|
-
interface HookContext {
|
|
79
|
-
sessionId?: string;
|
|
80
|
-
agent?: string;
|
|
81
|
-
model?: string;
|
|
82
|
-
cwd?: string;
|
|
83
|
-
abort?: AbortSignal;
|
|
84
|
-
[key: string]: unknown;
|
|
85
|
-
}
|
|
86
|
-
interface HookOutputWrapper<T = unknown> {
|
|
87
|
-
modified: boolean;
|
|
88
|
-
input: T;
|
|
89
|
-
output?: Record<string, unknown>;
|
|
90
|
-
}
|
|
91
|
-
type HookHandler<T = unknown> = (input: T, context: HookContext) => Promise<HookOutputWrapper<T>> | HookOutputWrapper<T>;
|
|
92
|
-
interface HookResult {
|
|
93
|
-
success?: boolean;
|
|
94
|
-
skipped?: boolean;
|
|
95
|
-
output?: unknown;
|
|
96
|
-
error?: string;
|
|
97
|
-
stdout?: string;
|
|
98
|
-
stderr?: string;
|
|
99
|
-
exitCode?: number;
|
|
100
|
-
duration?: number;
|
|
101
|
-
}
|
|
102
|
-
interface HookExecutionDetail {
|
|
103
|
-
index: number;
|
|
104
|
-
hookType: string;
|
|
105
|
-
hookName: string;
|
|
106
|
-
matched: boolean;
|
|
107
|
-
skipped: boolean;
|
|
108
|
-
success: boolean;
|
|
109
|
-
modified: boolean;
|
|
110
|
-
duration: number;
|
|
111
|
-
output?: unknown;
|
|
112
|
-
}
|
|
113
|
-
interface HookError {
|
|
114
|
-
index: number;
|
|
115
|
-
hookName: string;
|
|
116
|
-
error: string;
|
|
117
|
-
stack?: string;
|
|
118
|
-
}
|
|
119
|
-
interface HookChainResult<T = unknown> {
|
|
120
|
-
success: boolean;
|
|
121
|
-
output: T;
|
|
122
|
-
modified: boolean;
|
|
123
|
-
aborted: boolean;
|
|
124
|
-
details: HookExecutionDetail[];
|
|
125
|
-
errors: HookError[];
|
|
126
|
-
duration: number;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
20
|
declare const CommandExecutorSchema: z$1.ZodObject<{
|
|
130
21
|
type: z$1.ZodLiteral<"command">;
|
|
131
22
|
command: z$1.ZodString;
|
|
@@ -138,8 +29,10 @@ declare const CommandExecutorSchema: z$1.ZodObject<{
|
|
|
138
29
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
139
30
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
140
31
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
32
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
141
33
|
}, z$1.core.$strip>;
|
|
142
34
|
type CommandHookDefinition = z$1.infer<typeof CommandExecutorSchema>;
|
|
35
|
+
type HookMessageCallback = (message: Record<string, unknown>) => void | Promise<void>;
|
|
143
36
|
declare const PromptExecutorSchema: z$1.ZodObject<{
|
|
144
37
|
type: z$1.ZodLiteral<"prompt">;
|
|
145
38
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -153,8 +46,11 @@ declare const PromptExecutorSchema: z$1.ZodObject<{
|
|
|
153
46
|
}>>;
|
|
154
47
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
155
48
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
49
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
156
50
|
}, z$1.core.$strip>;
|
|
157
|
-
type PromptHookDefinition = z$1.infer<typeof PromptExecutorSchema
|
|
51
|
+
type PromptHookDefinition = Omit<z$1.infer<typeof PromptExecutorSchema>, 'onMessage'> & {
|
|
52
|
+
onMessage?: HookMessageCallback;
|
|
53
|
+
};
|
|
158
54
|
declare const HttpExecutorSchema: z$1.ZodObject<{
|
|
159
55
|
type: z$1.ZodLiteral<"http">;
|
|
160
56
|
url: z$1.ZodString;
|
|
@@ -182,8 +78,11 @@ declare const AgentExecutorSchema: z$1.ZodObject<{
|
|
|
182
78
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
183
79
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
184
80
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
81
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
185
82
|
}, z$1.core.$strip>;
|
|
186
|
-
type AgentHookDefinition = z$1.infer<typeof AgentExecutorSchema
|
|
83
|
+
type AgentHookDefinition = Omit<z$1.infer<typeof AgentExecutorSchema>, 'onMessage'> & {
|
|
84
|
+
onMessage?: HookMessageCallback;
|
|
85
|
+
};
|
|
187
86
|
declare const FunctionExecutorSchema: z$1.ZodObject<{
|
|
188
87
|
type: z$1.ZodLiteral<"function">;
|
|
189
88
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -201,6 +100,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
201
100
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
202
101
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
203
102
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
103
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
204
104
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
205
105
|
type: z$1.ZodLiteral<"prompt">;
|
|
206
106
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -214,6 +114,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
214
114
|
}>>;
|
|
215
115
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
216
116
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
117
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
217
118
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
218
119
|
type: z$1.ZodLiteral<"http">;
|
|
219
120
|
url: z$1.ZodString;
|
|
@@ -239,6 +140,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
239
140
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
240
141
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
241
142
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
143
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
242
144
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
243
145
|
type: z$1.ZodLiteral<"function">;
|
|
244
146
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -259,6 +161,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
259
161
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
260
162
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
261
163
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
164
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
262
165
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
263
166
|
type: z$1.ZodLiteral<"prompt">;
|
|
264
167
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -272,6 +175,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
272
175
|
}>>;
|
|
273
176
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
274
177
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
178
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
275
179
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
276
180
|
type: z$1.ZodLiteral<"http">;
|
|
277
181
|
url: z$1.ZodString;
|
|
@@ -297,6 +201,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
297
201
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
298
202
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
299
203
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
204
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
300
205
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
301
206
|
type: z$1.ZodLiteral<"function">;
|
|
302
207
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -318,6 +223,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
318
223
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
319
224
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
320
225
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
226
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
321
227
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
322
228
|
type: z$1.ZodLiteral<"prompt">;
|
|
323
229
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -331,6 +237,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
331
237
|
}>>;
|
|
332
238
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
333
239
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
240
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
334
241
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
335
242
|
type: z$1.ZodLiteral<"http">;
|
|
336
243
|
url: z$1.ZodString;
|
|
@@ -356,6 +263,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
356
263
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
357
264
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
358
265
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
266
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
359
267
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
360
268
|
type: z$1.ZodLiteral<"function">;
|
|
361
269
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -363,6 +271,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
363
271
|
}, z$1.core.$strip>>>;
|
|
364
272
|
type HooksConfig = z$1.infer<typeof HooksConfigSchema>;
|
|
365
273
|
declare const SessionIDSchema: z$1.ZodString;
|
|
274
|
+
declare const PartIDSchema: z$1.ZodString;
|
|
366
275
|
declare const MessageIDSchema: z$1.ZodString;
|
|
367
276
|
declare const CallIDSchema: z$1.ZodString;
|
|
368
277
|
declare const AgentSchema: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -434,51 +343,6 @@ declare const SessionCompactInputSchema: z$1.ZodObject<{
|
|
|
434
343
|
newLength: z$1.ZodNumber;
|
|
435
344
|
}, z$1.core.$strip>;
|
|
436
345
|
type SessionCompactInput = z$1.infer<typeof SessionCompactInputSchema>;
|
|
437
|
-
declare const StepStartInputSchema: z$1.ZodObject<{
|
|
438
|
-
sessionId: z$1.ZodString;
|
|
439
|
-
messageId: z$1.ZodString;
|
|
440
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
441
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
442
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
443
|
-
}, z$1.core.$strip>;
|
|
444
|
-
type StepStartInput = z$1.infer<typeof StepStartInputSchema>;
|
|
445
|
-
declare const StepFinishInputSchema: z$1.ZodObject<{
|
|
446
|
-
sessionId: z$1.ZodString;
|
|
447
|
-
messageId: z$1.ZodString;
|
|
448
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
449
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
450
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
451
|
-
finishReason: z$1.ZodEnum<{
|
|
452
|
-
max_tokens: "max_tokens";
|
|
453
|
-
stop: "stop";
|
|
454
|
-
end_turn: "end_turn";
|
|
455
|
-
stop_sequence: "stop_sequence";
|
|
456
|
-
}>;
|
|
457
|
-
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
458
|
-
input: z$1.ZodOptional<z$1.ZodNumber>;
|
|
459
|
-
output: z$1.ZodOptional<z$1.ZodNumber>;
|
|
460
|
-
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
461
|
-
}, z$1.core.$strip>>;
|
|
462
|
-
}, z$1.core.$strip>;
|
|
463
|
-
type StepFinishInput = z$1.infer<typeof StepFinishInputSchema>;
|
|
464
|
-
declare const StepStopInputSchema: z$1.ZodObject<{
|
|
465
|
-
sessionId: z$1.ZodString;
|
|
466
|
-
reason: z$1.ZodString;
|
|
467
|
-
}, z$1.core.$strip>;
|
|
468
|
-
type StepStopInput = z$1.infer<typeof StepStopInputSchema>;
|
|
469
|
-
declare const StepStopFailureInputSchema: z$1.ZodObject<{
|
|
470
|
-
sessionId: z$1.ZodString;
|
|
471
|
-
error: z$1.ZodString;
|
|
472
|
-
errorType: z$1.ZodEnum<{
|
|
473
|
-
timeout: "timeout";
|
|
474
|
-
rate_limit: "rate_limit";
|
|
475
|
-
auth_error: "auth_error";
|
|
476
|
-
network_error: "network_error";
|
|
477
|
-
invalid_request: "invalid_request";
|
|
478
|
-
server_error: "server_error";
|
|
479
|
-
}>;
|
|
480
|
-
}, z$1.core.$strip>;
|
|
481
|
-
type StepStopFailureInput = z$1.infer<typeof StepStopFailureInputSchema>;
|
|
482
346
|
declare const MessageRoleSchema: z$1.ZodEnum<{
|
|
483
347
|
system: "system";
|
|
484
348
|
user: "user";
|
|
@@ -793,13 +657,6 @@ declare const ShellEnvInputSchema: z$1.ZodObject<{
|
|
|
793
657
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
794
658
|
}, z$1.core.$strip>;
|
|
795
659
|
type ShellEnvInput = z$1.infer<typeof ShellEnvInputSchema>;
|
|
796
|
-
declare const TextCompleteInputSchema: z$1.ZodObject<{
|
|
797
|
-
sessionId: z$1.ZodString;
|
|
798
|
-
messageId: z$1.ZodString;
|
|
799
|
-
partId: z$1.ZodString;
|
|
800
|
-
text: z$1.ZodString;
|
|
801
|
-
}, z$1.core.$strip>;
|
|
802
|
-
type TextCompleteInput = z$1.infer<typeof TextCompleteInputSchema>;
|
|
803
660
|
declare const ContextBuildBeforeInputSchema: z$1.ZodObject<{
|
|
804
661
|
sessionId: z$1.ZodString;
|
|
805
662
|
mode: z$1.ZodEnum<{
|
|
@@ -1155,136 +1012,308 @@ declare const EvolutionCompleteInputSchema: z$1.ZodObject<{
|
|
|
1155
1012
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1156
1013
|
}, z$1.core.$strip>;
|
|
1157
1014
|
type EvolutionCompleteInput = z$1.infer<typeof EvolutionCompleteInputSchema>;
|
|
1158
|
-
declare const
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1015
|
+
declare const ProcessorStartInputSchema: z$1.ZodObject<{
|
|
1016
|
+
streamId: z$1.ZodString;
|
|
1017
|
+
step: z$1.ZodNumber;
|
|
1018
|
+
agent: z$1.ZodString;
|
|
1019
|
+
sessionId: z$1.ZodString;
|
|
1020
|
+
messageId: z$1.ZodString;
|
|
1021
|
+
userMessageId: z$1.ZodString;
|
|
1022
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1023
|
+
}, z$1.core.$strip>;
|
|
1024
|
+
type ProcessorStartInput = z$1.infer<typeof ProcessorStartInputSchema>;
|
|
1025
|
+
declare const ProcessorStepStartInputSchema: z$1.ZodObject<{
|
|
1026
|
+
streamId: z$1.ZodString;
|
|
1027
|
+
step: z$1.ZodNumber;
|
|
1028
|
+
agent: z$1.ZodString;
|
|
1029
|
+
sessionId: z$1.ZodString;
|
|
1030
|
+
messageId: z$1.ZodString;
|
|
1031
|
+
userMessageId: z$1.ZodString;
|
|
1032
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1033
|
+
partId: z$1.ZodString;
|
|
1034
|
+
}, z$1.core.$strip>;
|
|
1035
|
+
type ProcessorStepStartInput = z$1.infer<typeof ProcessorStepStartInputSchema>;
|
|
1036
|
+
declare const ProcessorReasoningStartInputSchema: z$1.ZodObject<{
|
|
1037
|
+
streamId: z$1.ZodString;
|
|
1038
|
+
step: z$1.ZodNumber;
|
|
1039
|
+
agent: z$1.ZodString;
|
|
1040
|
+
sessionId: z$1.ZodString;
|
|
1041
|
+
messageId: z$1.ZodString;
|
|
1042
|
+
userMessageId: z$1.ZodString;
|
|
1043
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1044
|
+
reasoningId: z$1.ZodString;
|
|
1045
|
+
text: z$1.ZodString;
|
|
1046
|
+
partId: z$1.ZodString;
|
|
1047
|
+
}, z$1.core.$strip>;
|
|
1048
|
+
type ProcessorReasoningStartInput = z$1.infer<typeof ProcessorReasoningStartInputSchema>;
|
|
1049
|
+
declare const ProcessorReasoningDeltaInputSchema: z$1.ZodObject<{
|
|
1050
|
+
streamId: z$1.ZodString;
|
|
1051
|
+
step: z$1.ZodNumber;
|
|
1052
|
+
agent: z$1.ZodString;
|
|
1053
|
+
sessionId: z$1.ZodString;
|
|
1054
|
+
messageId: z$1.ZodString;
|
|
1055
|
+
userMessageId: z$1.ZodString;
|
|
1056
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1057
|
+
reasoningId: z$1.ZodString;
|
|
1058
|
+
delta: z$1.ZodString;
|
|
1059
|
+
text: z$1.ZodString;
|
|
1060
|
+
partId: z$1.ZodString;
|
|
1061
|
+
}, z$1.core.$strip>;
|
|
1062
|
+
type ProcessorReasoningDeltaInput = z$1.infer<typeof ProcessorReasoningDeltaInputSchema>;
|
|
1063
|
+
declare const ProcessorReasoningEndInputSchema: z$1.ZodObject<{
|
|
1064
|
+
streamId: z$1.ZodString;
|
|
1065
|
+
step: z$1.ZodNumber;
|
|
1066
|
+
agent: z$1.ZodString;
|
|
1067
|
+
sessionId: z$1.ZodString;
|
|
1068
|
+
messageId: z$1.ZodString;
|
|
1069
|
+
userMessageId: z$1.ZodString;
|
|
1070
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1071
|
+
reasoningId: z$1.ZodString;
|
|
1072
|
+
text: z$1.ZodString;
|
|
1073
|
+
partId: z$1.ZodString;
|
|
1074
|
+
}, z$1.core.$strip>;
|
|
1075
|
+
type ProcessorReasoningEndInput = z$1.infer<typeof ProcessorReasoningEndInputSchema>;
|
|
1076
|
+
declare const ProcessorToolInputStartInputSchema: z$1.ZodObject<{
|
|
1077
|
+
streamId: z$1.ZodString;
|
|
1078
|
+
step: z$1.ZodNumber;
|
|
1079
|
+
agent: z$1.ZodString;
|
|
1080
|
+
sessionId: z$1.ZodString;
|
|
1081
|
+
messageId: z$1.ZodString;
|
|
1082
|
+
userMessageId: z$1.ZodString;
|
|
1083
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1084
|
+
callId: z$1.ZodString;
|
|
1085
|
+
tool: z$1.ZodString;
|
|
1086
|
+
partId: z$1.ZodString;
|
|
1087
|
+
}, z$1.core.$strip>;
|
|
1088
|
+
type ProcessorToolInputStartInput = z$1.infer<typeof ProcessorToolInputStartInputSchema>;
|
|
1089
|
+
declare const ProcessorToolCallInputSchema: z$1.ZodObject<{
|
|
1090
|
+
streamId: z$1.ZodString;
|
|
1091
|
+
step: z$1.ZodNumber;
|
|
1092
|
+
agent: z$1.ZodString;
|
|
1093
|
+
sessionId: z$1.ZodString;
|
|
1094
|
+
messageId: z$1.ZodString;
|
|
1095
|
+
userMessageId: z$1.ZodString;
|
|
1096
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1097
|
+
callId: z$1.ZodString;
|
|
1098
|
+
tool: z$1.ZodString;
|
|
1099
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1100
|
+
partId: z$1.ZodString;
|
|
1101
|
+
}, z$1.core.$strip>;
|
|
1102
|
+
type ProcessorToolCallInput = z$1.infer<typeof ProcessorToolCallInputSchema>;
|
|
1103
|
+
declare const ProcessorToolResultInputSchema: z$1.ZodObject<{
|
|
1104
|
+
streamId: z$1.ZodString;
|
|
1105
|
+
step: z$1.ZodNumber;
|
|
1106
|
+
agent: z$1.ZodString;
|
|
1107
|
+
sessionId: z$1.ZodString;
|
|
1108
|
+
messageId: z$1.ZodString;
|
|
1109
|
+
userMessageId: z$1.ZodString;
|
|
1110
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1111
|
+
callId: z$1.ZodString;
|
|
1112
|
+
tool: z$1.ZodString;
|
|
1113
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1114
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1115
|
+
output: z$1.ZodUnknown;
|
|
1116
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1117
|
+
durationMs: z$1.ZodNumber;
|
|
1118
|
+
partId: z$1.ZodString;
|
|
1119
|
+
}, z$1.core.$strip>;
|
|
1120
|
+
type ProcessorToolResultInput = z$1.infer<typeof ProcessorToolResultInputSchema>;
|
|
1121
|
+
declare const ProcessorToolErrorInputSchema: z$1.ZodObject<{
|
|
1122
|
+
streamId: z$1.ZodString;
|
|
1123
|
+
step: z$1.ZodNumber;
|
|
1124
|
+
agent: z$1.ZodString;
|
|
1125
|
+
sessionId: z$1.ZodString;
|
|
1126
|
+
messageId: z$1.ZodString;
|
|
1127
|
+
userMessageId: z$1.ZodString;
|
|
1128
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1129
|
+
callId: z$1.ZodString;
|
|
1130
|
+
tool: z$1.ZodString;
|
|
1131
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1132
|
+
error: z$1.ZodString;
|
|
1133
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1134
|
+
durationMs: z$1.ZodNumber;
|
|
1135
|
+
partId: z$1.ZodString;
|
|
1136
|
+
}, z$1.core.$strip>;
|
|
1137
|
+
type ProcessorToolErrorInput = z$1.infer<typeof ProcessorToolErrorInputSchema>;
|
|
1138
|
+
declare const ProcessorStepFinishInputSchema: z$1.ZodObject<{
|
|
1139
|
+
streamId: z$1.ZodString;
|
|
1140
|
+
step: z$1.ZodNumber;
|
|
1141
|
+
agent: z$1.ZodString;
|
|
1142
|
+
sessionId: z$1.ZodString;
|
|
1143
|
+
messageId: z$1.ZodString;
|
|
1144
|
+
userMessageId: z$1.ZodString;
|
|
1145
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1146
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1147
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1148
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1149
|
+
input: z$1.ZodNumber;
|
|
1150
|
+
output: z$1.ZodNumber;
|
|
1151
|
+
reasoning: z$1.ZodNumber;
|
|
1152
|
+
cache: z$1.ZodObject<{
|
|
1153
|
+
read: z$1.ZodNumber;
|
|
1154
|
+
write: z$1.ZodNumber;
|
|
1155
|
+
}, z$1.core.$strip>;
|
|
1156
|
+
}, z$1.core.$strip>>;
|
|
1157
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1158
|
+
partId: z$1.ZodString;
|
|
1159
|
+
}, z$1.core.$strip>;
|
|
1160
|
+
type ProcessorStepFinishInput = z$1.infer<typeof ProcessorStepFinishInputSchema>;
|
|
1161
|
+
declare const ProcessorTextStartInputSchema: z$1.ZodObject<{
|
|
1162
|
+
streamId: z$1.ZodString;
|
|
1163
|
+
step: z$1.ZodNumber;
|
|
1164
|
+
agent: z$1.ZodString;
|
|
1165
|
+
sessionId: z$1.ZodString;
|
|
1166
|
+
messageId: z$1.ZodString;
|
|
1167
|
+
userMessageId: z$1.ZodString;
|
|
1168
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1169
|
+
text: z$1.ZodString;
|
|
1170
|
+
partId: z$1.ZodString;
|
|
1171
|
+
}, z$1.core.$strip>;
|
|
1172
|
+
type ProcessorTextStartInput = z$1.infer<typeof ProcessorTextStartInputSchema>;
|
|
1173
|
+
declare const ProcessorTextDeltaInputSchema: z$1.ZodObject<{
|
|
1174
|
+
streamId: z$1.ZodString;
|
|
1175
|
+
step: z$1.ZodNumber;
|
|
1176
|
+
agent: z$1.ZodString;
|
|
1177
|
+
sessionId: z$1.ZodString;
|
|
1178
|
+
messageId: z$1.ZodString;
|
|
1179
|
+
userMessageId: z$1.ZodString;
|
|
1180
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1181
|
+
delta: z$1.ZodString;
|
|
1182
|
+
text: z$1.ZodString;
|
|
1183
|
+
partId: z$1.ZodString;
|
|
1184
|
+
}, z$1.core.$strip>;
|
|
1185
|
+
type ProcessorTextDeltaInput = z$1.infer<typeof ProcessorTextDeltaInputSchema>;
|
|
1186
|
+
declare const ProcessorTextEndInputSchema: z$1.ZodObject<{
|
|
1187
|
+
streamId: z$1.ZodString;
|
|
1188
|
+
step: z$1.ZodNumber;
|
|
1189
|
+
agent: z$1.ZodString;
|
|
1190
|
+
sessionId: z$1.ZodString;
|
|
1191
|
+
messageId: z$1.ZodString;
|
|
1192
|
+
userMessageId: z$1.ZodString;
|
|
1193
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1194
|
+
text: z$1.ZodString;
|
|
1195
|
+
partId: z$1.ZodString;
|
|
1196
|
+
}, z$1.core.$strip>;
|
|
1197
|
+
type ProcessorTextEndInput = z$1.infer<typeof ProcessorTextEndInputSchema>;
|
|
1198
|
+
declare const ProcessorErrorInputSchema: z$1.ZodObject<{
|
|
1199
|
+
streamId: z$1.ZodString;
|
|
1200
|
+
step: z$1.ZodNumber;
|
|
1201
|
+
agent: z$1.ZodString;
|
|
1202
|
+
sessionId: z$1.ZodString;
|
|
1203
|
+
messageId: z$1.ZodString;
|
|
1204
|
+
userMessageId: z$1.ZodString;
|
|
1205
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1206
|
+
error: z$1.ZodString;
|
|
1207
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1208
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1209
|
+
}, z$1.core.$strip>;
|
|
1210
|
+
type ProcessorErrorInput = z$1.infer<typeof ProcessorErrorInputSchema>;
|
|
1211
|
+
declare const ProcessorFinishInputSchema: z$1.ZodObject<{
|
|
1212
|
+
streamId: z$1.ZodString;
|
|
1213
|
+
step: z$1.ZodNumber;
|
|
1214
|
+
agent: z$1.ZodString;
|
|
1215
|
+
sessionId: z$1.ZodString;
|
|
1216
|
+
messageId: z$1.ZodString;
|
|
1217
|
+
userMessageId: z$1.ZodString;
|
|
1218
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1219
|
+
result: z$1.ZodEnum<{
|
|
1220
|
+
stop: "stop";
|
|
1221
|
+
continue: "continue";
|
|
1222
|
+
compact: "compact";
|
|
1223
|
+
}>;
|
|
1224
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1225
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1226
|
+
}, z$1.core.$strip>;
|
|
1227
|
+
type ProcessorFinishInput = z$1.infer<typeof ProcessorFinishInputSchema>;
|
|
1228
|
+
declare const EventInputSchemas: {
|
|
1229
|
+
readonly "session.start": z$1.ZodObject<{
|
|
1230
|
+
sessionId: z$1.ZodString;
|
|
1231
|
+
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1232
|
+
agent: "agent";
|
|
1233
|
+
system: "system";
|
|
1234
|
+
user: "user";
|
|
1235
|
+
scheduled: "scheduled";
|
|
1236
|
+
}>>;
|
|
1237
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1238
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1239
|
+
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1240
|
+
}, z$1.core.$strip>;
|
|
1241
|
+
readonly "session.end": z$1.ZodObject<{
|
|
1242
|
+
sessionId: z$1.ZodString;
|
|
1243
|
+
reason: z$1.ZodEnum<{
|
|
1244
|
+
error: "error";
|
|
1245
|
+
timeout: "timeout";
|
|
1246
|
+
user_request: "user_request";
|
|
1247
|
+
max_tokens: "max_tokens";
|
|
1248
|
+
stop: "stop";
|
|
1249
|
+
cancelled: "cancelled";
|
|
1250
|
+
}>;
|
|
1251
|
+
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1252
|
+
}, z$1.core.$strip>;
|
|
1253
|
+
readonly "session.compacting": z$1.ZodObject<{
|
|
1254
|
+
sessionId: z$1.ZodString;
|
|
1255
|
+
trigger: z$1.ZodEnum<{
|
|
1256
|
+
auto: "auto";
|
|
1257
|
+
manual: "manual";
|
|
1258
|
+
threshold: "threshold";
|
|
1259
|
+
}>;
|
|
1260
|
+
contextLength: z$1.ZodNumber;
|
|
1261
|
+
threshold: z$1.ZodNumber;
|
|
1262
|
+
}, z$1.core.$strip>;
|
|
1263
|
+
readonly "session.compact": z$1.ZodObject<{
|
|
1264
|
+
sessionId: z$1.ZodString;
|
|
1265
|
+
summary: z$1.ZodString;
|
|
1266
|
+
previousLength: z$1.ZodNumber;
|
|
1267
|
+
newLength: z$1.ZodNumber;
|
|
1268
|
+
}, z$1.core.$strip>;
|
|
1269
|
+
readonly "message.receive": z$1.ZodObject<{
|
|
1270
|
+
sessionId: z$1.ZodString;
|
|
1271
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1272
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1273
|
+
messageId: z$1.ZodString;
|
|
1274
|
+
message: z$1.ZodObject<{
|
|
1275
|
+
id: z$1.ZodString;
|
|
1276
|
+
role: z$1.ZodLiteral<"user">;
|
|
1277
|
+
content: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
1278
|
+
type: z$1.ZodLiteral<"text">;
|
|
1279
|
+
text: z$1.ZodString;
|
|
1280
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1281
|
+
type: z$1.ZodLiteral<"image">;
|
|
1282
|
+
source: z$1.ZodObject<{
|
|
1283
|
+
type: z$1.ZodEnum<{
|
|
1284
|
+
url: "url";
|
|
1285
|
+
base64: "base64";
|
|
1286
|
+
}>;
|
|
1287
|
+
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
1288
|
+
data: z$1.ZodString;
|
|
1289
|
+
}, z$1.core.$strip>;
|
|
1290
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1291
|
+
type: z$1.ZodLiteral<"file">;
|
|
1292
|
+
url: z$1.ZodString;
|
|
1293
|
+
filename: z$1.ZodString;
|
|
1294
|
+
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
1295
|
+
}, z$1.core.$strip>], "type">>]>;
|
|
1296
|
+
}, z$1.core.$strip>;
|
|
1297
|
+
}, z$1.core.$strip>;
|
|
1298
|
+
readonly "message.transform": z$1.ZodObject<{
|
|
1299
|
+
sessionId: z$1.ZodString;
|
|
1300
|
+
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1301
|
+
id: z$1.ZodString;
|
|
1302
|
+
role: z$1.ZodEnum<{
|
|
1303
|
+
system: "system";
|
|
1304
|
+
user: "user";
|
|
1305
|
+
assistant: "assistant";
|
|
1306
|
+
tool: "tool";
|
|
1307
|
+
}>;
|
|
1308
|
+
content: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
1309
|
+
type: z$1.ZodLiteral<"text">;
|
|
1310
|
+
text: z$1.ZodString;
|
|
1311
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1312
|
+
type: z$1.ZodLiteral<"image">;
|
|
1313
|
+
source: z$1.ZodObject<{
|
|
1314
|
+
type: z$1.ZodEnum<{
|
|
1315
|
+
url: "url";
|
|
1316
|
+
base64: "base64";
|
|
1288
1317
|
}>;
|
|
1289
1318
|
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
1290
1319
|
data: z$1.ZodString;
|
|
@@ -1440,12 +1469,6 @@ declare const EventInputSchemas: {
|
|
|
1440
1469
|
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1441
1470
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1442
1471
|
}, z$1.core.$strip>;
|
|
1443
|
-
readonly "text.complete": z$1.ZodObject<{
|
|
1444
|
-
sessionId: z$1.ZodString;
|
|
1445
|
-
messageId: z$1.ZodString;
|
|
1446
|
-
partId: z$1.ZodString;
|
|
1447
|
-
text: z$1.ZodString;
|
|
1448
|
-
}, z$1.core.$strip>;
|
|
1449
1472
|
readonly "context.build.before": z$1.ZodObject<{
|
|
1450
1473
|
sessionId: z$1.ZodString;
|
|
1451
1474
|
mode: z$1.ZodEnum<{
|
|
@@ -1686,42 +1709,240 @@ declare const EventInputSchemas: {
|
|
|
1686
1709
|
continue: "continue";
|
|
1687
1710
|
}>;
|
|
1688
1711
|
}, z$1.core.$strip>;
|
|
1689
|
-
readonly "
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
hints: z$1.ZodArray<z$1.ZodString>;
|
|
1698
|
-
origin: z$1.ZodObject<{
|
|
1699
|
-
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1700
|
-
tool: "tool";
|
|
1701
|
-
scheduler: "scheduler";
|
|
1702
|
-
human: "human";
|
|
1703
|
-
namespace: "namespace";
|
|
1704
|
-
}>>;
|
|
1705
|
-
timestamp: z$1.ZodNumber;
|
|
1706
|
-
}, z$1.core.$strip>;
|
|
1707
|
-
}, z$1.core.$strip>;
|
|
1708
|
-
readonly "creation.complete": z$1.ZodObject<{
|
|
1709
|
-
requestId: z$1.ZodString;
|
|
1710
|
-
status: z$1.ZodEnum<{
|
|
1711
|
-
success: "success";
|
|
1712
|
-
failed: "failed";
|
|
1713
|
-
}>;
|
|
1714
|
-
specId: z$1.ZodOptional<z$1.ZodString>;
|
|
1715
|
-
durationMs: z$1.ZodNumber;
|
|
1716
|
-
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1712
|
+
readonly "processor.start": z$1.ZodObject<{
|
|
1713
|
+
streamId: z$1.ZodString;
|
|
1714
|
+
step: z$1.ZodNumber;
|
|
1715
|
+
agent: z$1.ZodString;
|
|
1716
|
+
sessionId: z$1.ZodString;
|
|
1717
|
+
messageId: z$1.ZodString;
|
|
1718
|
+
userMessageId: z$1.ZodString;
|
|
1719
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1717
1720
|
}, z$1.core.$strip>;
|
|
1718
|
-
readonly "
|
|
1719
|
-
|
|
1721
|
+
readonly "processor.step.start": z$1.ZodObject<{
|
|
1722
|
+
streamId: z$1.ZodString;
|
|
1723
|
+
step: z$1.ZodNumber;
|
|
1724
|
+
agent: z$1.ZodString;
|
|
1725
|
+
sessionId: z$1.ZodString;
|
|
1726
|
+
messageId: z$1.ZodString;
|
|
1727
|
+
userMessageId: z$1.ZodString;
|
|
1728
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1729
|
+
partId: z$1.ZodString;
|
|
1720
1730
|
}, z$1.core.$strip>;
|
|
1721
|
-
readonly "
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1731
|
+
readonly "processor.reasoning.start": z$1.ZodObject<{
|
|
1732
|
+
streamId: z$1.ZodString;
|
|
1733
|
+
step: z$1.ZodNumber;
|
|
1734
|
+
agent: z$1.ZodString;
|
|
1735
|
+
sessionId: z$1.ZodString;
|
|
1736
|
+
messageId: z$1.ZodString;
|
|
1737
|
+
userMessageId: z$1.ZodString;
|
|
1738
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1739
|
+
reasoningId: z$1.ZodString;
|
|
1740
|
+
text: z$1.ZodString;
|
|
1741
|
+
partId: z$1.ZodString;
|
|
1742
|
+
}, z$1.core.$strip>;
|
|
1743
|
+
readonly "processor.reasoning.delta": z$1.ZodObject<{
|
|
1744
|
+
streamId: z$1.ZodString;
|
|
1745
|
+
step: z$1.ZodNumber;
|
|
1746
|
+
agent: z$1.ZodString;
|
|
1747
|
+
sessionId: z$1.ZodString;
|
|
1748
|
+
messageId: z$1.ZodString;
|
|
1749
|
+
userMessageId: z$1.ZodString;
|
|
1750
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1751
|
+
reasoningId: z$1.ZodString;
|
|
1752
|
+
delta: z$1.ZodString;
|
|
1753
|
+
text: z$1.ZodString;
|
|
1754
|
+
partId: z$1.ZodString;
|
|
1755
|
+
}, z$1.core.$strip>;
|
|
1756
|
+
readonly "processor.reasoning.end": z$1.ZodObject<{
|
|
1757
|
+
streamId: z$1.ZodString;
|
|
1758
|
+
step: z$1.ZodNumber;
|
|
1759
|
+
agent: z$1.ZodString;
|
|
1760
|
+
sessionId: z$1.ZodString;
|
|
1761
|
+
messageId: z$1.ZodString;
|
|
1762
|
+
userMessageId: z$1.ZodString;
|
|
1763
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1764
|
+
reasoningId: z$1.ZodString;
|
|
1765
|
+
text: z$1.ZodString;
|
|
1766
|
+
partId: z$1.ZodString;
|
|
1767
|
+
}, z$1.core.$strip>;
|
|
1768
|
+
readonly "processor.tool.input.start": z$1.ZodObject<{
|
|
1769
|
+
streamId: z$1.ZodString;
|
|
1770
|
+
step: z$1.ZodNumber;
|
|
1771
|
+
agent: z$1.ZodString;
|
|
1772
|
+
sessionId: z$1.ZodString;
|
|
1773
|
+
messageId: z$1.ZodString;
|
|
1774
|
+
userMessageId: z$1.ZodString;
|
|
1775
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1776
|
+
callId: z$1.ZodString;
|
|
1777
|
+
tool: z$1.ZodString;
|
|
1778
|
+
partId: z$1.ZodString;
|
|
1779
|
+
}, z$1.core.$strip>;
|
|
1780
|
+
readonly "processor.tool.call": z$1.ZodObject<{
|
|
1781
|
+
streamId: z$1.ZodString;
|
|
1782
|
+
step: z$1.ZodNumber;
|
|
1783
|
+
agent: z$1.ZodString;
|
|
1784
|
+
sessionId: z$1.ZodString;
|
|
1785
|
+
messageId: z$1.ZodString;
|
|
1786
|
+
userMessageId: z$1.ZodString;
|
|
1787
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1788
|
+
callId: z$1.ZodString;
|
|
1789
|
+
tool: z$1.ZodString;
|
|
1790
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1791
|
+
partId: z$1.ZodString;
|
|
1792
|
+
}, z$1.core.$strip>;
|
|
1793
|
+
readonly "processor.tool.result": z$1.ZodObject<{
|
|
1794
|
+
streamId: z$1.ZodString;
|
|
1795
|
+
step: z$1.ZodNumber;
|
|
1796
|
+
agent: z$1.ZodString;
|
|
1797
|
+
sessionId: z$1.ZodString;
|
|
1798
|
+
messageId: z$1.ZodString;
|
|
1799
|
+
userMessageId: z$1.ZodString;
|
|
1800
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1801
|
+
callId: z$1.ZodString;
|
|
1802
|
+
tool: z$1.ZodString;
|
|
1803
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1804
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1805
|
+
output: z$1.ZodUnknown;
|
|
1806
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1807
|
+
durationMs: z$1.ZodNumber;
|
|
1808
|
+
partId: z$1.ZodString;
|
|
1809
|
+
}, z$1.core.$strip>;
|
|
1810
|
+
readonly "processor.tool.error": z$1.ZodObject<{
|
|
1811
|
+
streamId: z$1.ZodString;
|
|
1812
|
+
step: z$1.ZodNumber;
|
|
1813
|
+
agent: z$1.ZodString;
|
|
1814
|
+
sessionId: z$1.ZodString;
|
|
1815
|
+
messageId: z$1.ZodString;
|
|
1816
|
+
userMessageId: z$1.ZodString;
|
|
1817
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1818
|
+
callId: z$1.ZodString;
|
|
1819
|
+
tool: z$1.ZodString;
|
|
1820
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1821
|
+
error: z$1.ZodString;
|
|
1822
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1823
|
+
durationMs: z$1.ZodNumber;
|
|
1824
|
+
partId: z$1.ZodString;
|
|
1825
|
+
}, z$1.core.$strip>;
|
|
1826
|
+
readonly "processor.step.finish": z$1.ZodObject<{
|
|
1827
|
+
streamId: z$1.ZodString;
|
|
1828
|
+
step: z$1.ZodNumber;
|
|
1829
|
+
agent: z$1.ZodString;
|
|
1830
|
+
sessionId: z$1.ZodString;
|
|
1831
|
+
messageId: z$1.ZodString;
|
|
1832
|
+
userMessageId: z$1.ZodString;
|
|
1833
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1834
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1835
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1836
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1837
|
+
input: z$1.ZodNumber;
|
|
1838
|
+
output: z$1.ZodNumber;
|
|
1839
|
+
reasoning: z$1.ZodNumber;
|
|
1840
|
+
cache: z$1.ZodObject<{
|
|
1841
|
+
read: z$1.ZodNumber;
|
|
1842
|
+
write: z$1.ZodNumber;
|
|
1843
|
+
}, z$1.core.$strip>;
|
|
1844
|
+
}, z$1.core.$strip>>;
|
|
1845
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1846
|
+
partId: z$1.ZodString;
|
|
1847
|
+
}, z$1.core.$strip>;
|
|
1848
|
+
readonly "processor.text.start": z$1.ZodObject<{
|
|
1849
|
+
streamId: z$1.ZodString;
|
|
1850
|
+
step: z$1.ZodNumber;
|
|
1851
|
+
agent: z$1.ZodString;
|
|
1852
|
+
sessionId: z$1.ZodString;
|
|
1853
|
+
messageId: z$1.ZodString;
|
|
1854
|
+
userMessageId: z$1.ZodString;
|
|
1855
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1856
|
+
text: z$1.ZodString;
|
|
1857
|
+
partId: z$1.ZodString;
|
|
1858
|
+
}, z$1.core.$strip>;
|
|
1859
|
+
readonly "processor.text.delta": z$1.ZodObject<{
|
|
1860
|
+
streamId: z$1.ZodString;
|
|
1861
|
+
step: z$1.ZodNumber;
|
|
1862
|
+
agent: z$1.ZodString;
|
|
1863
|
+
sessionId: z$1.ZodString;
|
|
1864
|
+
messageId: z$1.ZodString;
|
|
1865
|
+
userMessageId: z$1.ZodString;
|
|
1866
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1867
|
+
delta: z$1.ZodString;
|
|
1868
|
+
text: z$1.ZodString;
|
|
1869
|
+
partId: z$1.ZodString;
|
|
1870
|
+
}, z$1.core.$strip>;
|
|
1871
|
+
readonly "processor.text.end": z$1.ZodObject<{
|
|
1872
|
+
streamId: z$1.ZodString;
|
|
1873
|
+
step: z$1.ZodNumber;
|
|
1874
|
+
agent: z$1.ZodString;
|
|
1875
|
+
sessionId: z$1.ZodString;
|
|
1876
|
+
messageId: z$1.ZodString;
|
|
1877
|
+
userMessageId: z$1.ZodString;
|
|
1878
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1879
|
+
text: z$1.ZodString;
|
|
1880
|
+
partId: z$1.ZodString;
|
|
1881
|
+
}, z$1.core.$strip>;
|
|
1882
|
+
readonly "processor.error": z$1.ZodObject<{
|
|
1883
|
+
streamId: z$1.ZodString;
|
|
1884
|
+
step: z$1.ZodNumber;
|
|
1885
|
+
agent: z$1.ZodString;
|
|
1886
|
+
sessionId: z$1.ZodString;
|
|
1887
|
+
messageId: z$1.ZodString;
|
|
1888
|
+
userMessageId: z$1.ZodString;
|
|
1889
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1890
|
+
error: z$1.ZodString;
|
|
1891
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1892
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1893
|
+
}, z$1.core.$strip>;
|
|
1894
|
+
readonly "processor.finish": z$1.ZodObject<{
|
|
1895
|
+
streamId: z$1.ZodString;
|
|
1896
|
+
step: z$1.ZodNumber;
|
|
1897
|
+
agent: z$1.ZodString;
|
|
1898
|
+
sessionId: z$1.ZodString;
|
|
1899
|
+
messageId: z$1.ZodString;
|
|
1900
|
+
userMessageId: z$1.ZodString;
|
|
1901
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1902
|
+
result: z$1.ZodEnum<{
|
|
1903
|
+
stop: "stop";
|
|
1904
|
+
continue: "continue";
|
|
1905
|
+
compact: "compact";
|
|
1906
|
+
}>;
|
|
1907
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1908
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1909
|
+
}, z$1.core.$strip>;
|
|
1910
|
+
readonly "creation.request": z$1.ZodObject<{
|
|
1911
|
+
requestId: z$1.ZodString;
|
|
1912
|
+
kind: z$1.ZodEnum<{
|
|
1913
|
+
"create-skill": "create-skill";
|
|
1914
|
+
"create-workflow": "create-workflow";
|
|
1915
|
+
"create-bundle": "create-bundle";
|
|
1916
|
+
}>;
|
|
1917
|
+
requirement: z$1.ZodString;
|
|
1918
|
+
hints: z$1.ZodArray<z$1.ZodString>;
|
|
1919
|
+
origin: z$1.ZodObject<{
|
|
1920
|
+
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1921
|
+
tool: "tool";
|
|
1922
|
+
scheduler: "scheduler";
|
|
1923
|
+
human: "human";
|
|
1924
|
+
namespace: "namespace";
|
|
1925
|
+
}>>;
|
|
1926
|
+
timestamp: z$1.ZodNumber;
|
|
1927
|
+
}, z$1.core.$strip>;
|
|
1928
|
+
}, z$1.core.$strip>;
|
|
1929
|
+
readonly "creation.complete": z$1.ZodObject<{
|
|
1930
|
+
requestId: z$1.ZodString;
|
|
1931
|
+
status: z$1.ZodEnum<{
|
|
1932
|
+
success: "success";
|
|
1933
|
+
failed: "failed";
|
|
1934
|
+
}>;
|
|
1935
|
+
specId: z$1.ZodOptional<z$1.ZodString>;
|
|
1936
|
+
durationMs: z$1.ZodNumber;
|
|
1937
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1938
|
+
}, z$1.core.$strip>;
|
|
1939
|
+
readonly "evolution.request": z$1.ZodObject<{
|
|
1940
|
+
dryRun: z$1.ZodBoolean;
|
|
1941
|
+
}, z$1.core.$strip>;
|
|
1942
|
+
readonly "evolution.complete": z$1.ZodObject<{
|
|
1943
|
+
status: z$1.ZodEnum<{
|
|
1944
|
+
success: "success";
|
|
1945
|
+
failed: "failed";
|
|
1725
1946
|
"awaiting-approval": "awaiting-approval";
|
|
1726
1947
|
}>;
|
|
1727
1948
|
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -1770,43 +1991,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1770
1991
|
}>;
|
|
1771
1992
|
contextLength: z$1.ZodNumber;
|
|
1772
1993
|
threshold: z$1.ZodNumber;
|
|
1773
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1774
|
-
sessionId: z$1.ZodString;
|
|
1775
|
-
messageId: z$1.ZodString;
|
|
1776
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1777
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1778
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1779
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1780
|
-
sessionId: z$1.ZodString;
|
|
1781
|
-
messageId: z$1.ZodString;
|
|
1782
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1783
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1784
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1785
|
-
finishReason: z$1.ZodEnum<{
|
|
1786
|
-
max_tokens: "max_tokens";
|
|
1787
|
-
stop: "stop";
|
|
1788
|
-
end_turn: "end_turn";
|
|
1789
|
-
stop_sequence: "stop_sequence";
|
|
1790
|
-
}>;
|
|
1791
|
-
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1792
|
-
input: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1793
|
-
output: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1794
|
-
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1795
|
-
}, z$1.core.$strip>>;
|
|
1796
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1797
|
-
sessionId: z$1.ZodString;
|
|
1798
|
-
reason: z$1.ZodString;
|
|
1799
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1800
|
-
sessionId: z$1.ZodString;
|
|
1801
|
-
error: z$1.ZodString;
|
|
1802
|
-
errorType: z$1.ZodEnum<{
|
|
1803
|
-
timeout: "timeout";
|
|
1804
|
-
rate_limit: "rate_limit";
|
|
1805
|
-
auth_error: "auth_error";
|
|
1806
|
-
network_error: "network_error";
|
|
1807
|
-
invalid_request: "invalid_request";
|
|
1808
|
-
server_error: "server_error";
|
|
1809
|
-
}>;
|
|
1810
1994
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1811
1995
|
sessionId: z$1.ZodString;
|
|
1812
1996
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1996,11 +2180,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1996
2180
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1997
2181
|
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1998
2182
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1999
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2000
|
-
sessionId: z$1.ZodString;
|
|
2001
|
-
messageId: z$1.ZodString;
|
|
2002
|
-
partId: z$1.ZodString;
|
|
2003
|
-
text: z$1.ZodString;
|
|
2004
2183
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2005
2184
|
gatewayID: z$1.ZodString;
|
|
2006
2185
|
messageId: z$1.ZodString;
|
|
@@ -2254,144 +2433,366 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
2254
2433
|
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2255
2434
|
awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2256
2435
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
2257
|
-
}, z$1.core.$strip
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2436
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2437
|
+
streamId: z$1.ZodString;
|
|
2438
|
+
step: z$1.ZodNumber;
|
|
2439
|
+
agent: z$1.ZodString;
|
|
2440
|
+
sessionId: z$1.ZodString;
|
|
2441
|
+
messageId: z$1.ZodString;
|
|
2442
|
+
userMessageId: z$1.ZodString;
|
|
2443
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2444
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2445
|
+
streamId: z$1.ZodString;
|
|
2446
|
+
step: z$1.ZodNumber;
|
|
2447
|
+
agent: z$1.ZodString;
|
|
2448
|
+
sessionId: z$1.ZodString;
|
|
2449
|
+
messageId: z$1.ZodString;
|
|
2450
|
+
userMessageId: z$1.ZodString;
|
|
2451
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2452
|
+
partId: z$1.ZodString;
|
|
2453
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2454
|
+
streamId: z$1.ZodString;
|
|
2455
|
+
step: z$1.ZodNumber;
|
|
2456
|
+
agent: z$1.ZodString;
|
|
2457
|
+
sessionId: z$1.ZodString;
|
|
2458
|
+
messageId: z$1.ZodString;
|
|
2459
|
+
userMessageId: z$1.ZodString;
|
|
2460
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2461
|
+
reasoningId: z$1.ZodString;
|
|
2277
2462
|
text: z$1.ZodString;
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
data: z$1.ZodString;
|
|
2287
|
-
}, z$1.core.$strip>;
|
|
2288
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2289
|
-
type: z$1.ZodLiteral<"file">;
|
|
2290
|
-
url: z$1.ZodString;
|
|
2291
|
-
filename: z$1.ZodString;
|
|
2292
|
-
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2293
|
-
}, z$1.core.$strip>], "type">;
|
|
2294
|
-
type CommandPromptPart = z$1.infer<typeof CommandPromptPartSchema>;
|
|
2295
|
-
declare const CommandMetadataSchema: z$1.ZodObject<{
|
|
2296
|
-
name: z$1.ZodString;
|
|
2297
|
-
description: z$1.ZodString;
|
|
2298
|
-
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2299
|
-
general: "general";
|
|
2300
|
-
coder: "coder";
|
|
2301
|
-
all: "all";
|
|
2302
|
-
}>>;
|
|
2303
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2463
|
+
partId: z$1.ZodString;
|
|
2464
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2465
|
+
streamId: z$1.ZodString;
|
|
2466
|
+
step: z$1.ZodNumber;
|
|
2467
|
+
agent: z$1.ZodString;
|
|
2468
|
+
sessionId: z$1.ZodString;
|
|
2469
|
+
messageId: z$1.ZodString;
|
|
2470
|
+
userMessageId: z$1.ZodString;
|
|
2304
2471
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
declare const CommandExecutionContextSchema: z$1.ZodObject<{
|
|
2472
|
+
reasoningId: z$1.ZodString;
|
|
2473
|
+
delta: z$1.ZodString;
|
|
2474
|
+
text: z$1.ZodString;
|
|
2475
|
+
partId: z$1.ZodString;
|
|
2476
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2477
|
+
streamId: z$1.ZodString;
|
|
2478
|
+
step: z$1.ZodNumber;
|
|
2479
|
+
agent: z$1.ZodString;
|
|
2314
2480
|
sessionId: z$1.ZodString;
|
|
2315
|
-
|
|
2481
|
+
messageId: z$1.ZodString;
|
|
2482
|
+
userMessageId: z$1.ZodString;
|
|
2316
2483
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2484
|
+
reasoningId: z$1.ZodString;
|
|
2485
|
+
text: z$1.ZodString;
|
|
2486
|
+
partId: z$1.ZodString;
|
|
2487
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2488
|
+
streamId: z$1.ZodString;
|
|
2489
|
+
step: z$1.ZodNumber;
|
|
2490
|
+
agent: z$1.ZodString;
|
|
2491
|
+
sessionId: z$1.ZodString;
|
|
2492
|
+
messageId: z$1.ZodString;
|
|
2493
|
+
userMessageId: z$1.ZodString;
|
|
2494
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2495
|
+
callId: z$1.ZodString;
|
|
2496
|
+
tool: z$1.ZodString;
|
|
2497
|
+
partId: z$1.ZodString;
|
|
2498
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2499
|
+
streamId: z$1.ZodString;
|
|
2500
|
+
step: z$1.ZodNumber;
|
|
2501
|
+
agent: z$1.ZodString;
|
|
2502
|
+
sessionId: z$1.ZodString;
|
|
2503
|
+
messageId: z$1.ZodString;
|
|
2504
|
+
userMessageId: z$1.ZodString;
|
|
2505
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2506
|
+
callId: z$1.ZodString;
|
|
2507
|
+
tool: z$1.ZodString;
|
|
2508
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2509
|
+
partId: z$1.ZodString;
|
|
2510
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2511
|
+
streamId: z$1.ZodString;
|
|
2512
|
+
step: z$1.ZodNumber;
|
|
2513
|
+
agent: z$1.ZodString;
|
|
2514
|
+
sessionId: z$1.ZodString;
|
|
2515
|
+
messageId: z$1.ZodString;
|
|
2516
|
+
userMessageId: z$1.ZodString;
|
|
2517
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2518
|
+
callId: z$1.ZodString;
|
|
2519
|
+
tool: z$1.ZodString;
|
|
2520
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2521
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
2522
|
+
output: z$1.ZodUnknown;
|
|
2523
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2524
|
+
durationMs: z$1.ZodNumber;
|
|
2525
|
+
partId: z$1.ZodString;
|
|
2526
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2527
|
+
streamId: z$1.ZodString;
|
|
2528
|
+
step: z$1.ZodNumber;
|
|
2529
|
+
agent: z$1.ZodString;
|
|
2530
|
+
sessionId: z$1.ZodString;
|
|
2531
|
+
messageId: z$1.ZodString;
|
|
2532
|
+
userMessageId: z$1.ZodString;
|
|
2533
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2534
|
+
callId: z$1.ZodString;
|
|
2535
|
+
tool: z$1.ZodString;
|
|
2536
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2537
|
+
error: z$1.ZodString;
|
|
2538
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
2539
|
+
durationMs: z$1.ZodNumber;
|
|
2540
|
+
partId: z$1.ZodString;
|
|
2541
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2542
|
+
streamId: z$1.ZodString;
|
|
2543
|
+
step: z$1.ZodNumber;
|
|
2544
|
+
agent: z$1.ZodString;
|
|
2545
|
+
sessionId: z$1.ZodString;
|
|
2546
|
+
messageId: z$1.ZodString;
|
|
2547
|
+
userMessageId: z$1.ZodString;
|
|
2548
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2549
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
2550
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
2551
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2552
|
+
input: z$1.ZodNumber;
|
|
2553
|
+
output: z$1.ZodNumber;
|
|
2554
|
+
reasoning: z$1.ZodNumber;
|
|
2555
|
+
cache: z$1.ZodObject<{
|
|
2556
|
+
read: z$1.ZodNumber;
|
|
2557
|
+
write: z$1.ZodNumber;
|
|
2558
|
+
}, z$1.core.$strip>;
|
|
2354
2559
|
}, z$1.core.$strip>>;
|
|
2560
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2561
|
+
partId: z$1.ZodString;
|
|
2562
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2563
|
+
streamId: z$1.ZodString;
|
|
2564
|
+
step: z$1.ZodNumber;
|
|
2565
|
+
agent: z$1.ZodString;
|
|
2566
|
+
sessionId: z$1.ZodString;
|
|
2567
|
+
messageId: z$1.ZodString;
|
|
2568
|
+
userMessageId: z$1.ZodString;
|
|
2569
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2570
|
+
text: z$1.ZodString;
|
|
2571
|
+
partId: z$1.ZodString;
|
|
2572
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2573
|
+
streamId: z$1.ZodString;
|
|
2574
|
+
step: z$1.ZodNumber;
|
|
2575
|
+
agent: z$1.ZodString;
|
|
2576
|
+
sessionId: z$1.ZodString;
|
|
2577
|
+
messageId: z$1.ZodString;
|
|
2578
|
+
userMessageId: z$1.ZodString;
|
|
2579
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2580
|
+
delta: z$1.ZodString;
|
|
2581
|
+
text: z$1.ZodString;
|
|
2582
|
+
partId: z$1.ZodString;
|
|
2583
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2584
|
+
streamId: z$1.ZodString;
|
|
2585
|
+
step: z$1.ZodNumber;
|
|
2586
|
+
agent: z$1.ZodString;
|
|
2587
|
+
sessionId: z$1.ZodString;
|
|
2588
|
+
messageId: z$1.ZodString;
|
|
2589
|
+
userMessageId: z$1.ZodString;
|
|
2590
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2591
|
+
text: z$1.ZodString;
|
|
2592
|
+
partId: z$1.ZodString;
|
|
2593
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2594
|
+
streamId: z$1.ZodString;
|
|
2595
|
+
step: z$1.ZodNumber;
|
|
2596
|
+
agent: z$1.ZodString;
|
|
2597
|
+
sessionId: z$1.ZodString;
|
|
2598
|
+
messageId: z$1.ZodString;
|
|
2599
|
+
userMessageId: z$1.ZodString;
|
|
2600
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2601
|
+
error: z$1.ZodString;
|
|
2602
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
2603
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2604
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2605
|
+
streamId: z$1.ZodString;
|
|
2606
|
+
step: z$1.ZodNumber;
|
|
2607
|
+
agent: z$1.ZodString;
|
|
2608
|
+
sessionId: z$1.ZodString;
|
|
2609
|
+
messageId: z$1.ZodString;
|
|
2610
|
+
userMessageId: z$1.ZodString;
|
|
2611
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2612
|
+
result: z$1.ZodEnum<{
|
|
2613
|
+
stop: "stop";
|
|
2614
|
+
continue: "continue";
|
|
2615
|
+
compact: "compact";
|
|
2616
|
+
}>;
|
|
2617
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2618
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2355
2619
|
}, z$1.core.$strip>;
|
|
2356
|
-
|
|
2357
|
-
declare
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2620
|
+
declare function validateHookInput<T extends HookEvent>(event: T, input: unknown): unknown;
|
|
2621
|
+
declare function safeValidateHookInput<T extends HookEvent>(event: T, input: unknown): {
|
|
2622
|
+
success: true;
|
|
2623
|
+
data: z$1.infer<(typeof EventInputSchemas)[T]>;
|
|
2624
|
+
} | {
|
|
2625
|
+
success: false;
|
|
2626
|
+
error: z$1.ZodError;
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
declare const HookType: {
|
|
2630
|
+
readonly Command: "command";
|
|
2631
|
+
readonly Prompt: "prompt";
|
|
2632
|
+
readonly Http: "http";
|
|
2633
|
+
readonly Agent: "agent";
|
|
2634
|
+
readonly Function: "function";
|
|
2635
|
+
};
|
|
2636
|
+
type HookType = (typeof HookType)[keyof typeof HookType];
|
|
2637
|
+
declare const HookEvent: {
|
|
2638
|
+
readonly SessionStart: "session.start";
|
|
2639
|
+
readonly SessionEnd: "session.end";
|
|
2640
|
+
readonly SessionCompacting: "session.compacting";
|
|
2641
|
+
readonly SessionCompact: "session.compact";
|
|
2642
|
+
readonly MessageReceive: "message.receive";
|
|
2643
|
+
readonly MessageTransform: "message.transform";
|
|
2644
|
+
readonly SystemTransform: "system.transform";
|
|
2645
|
+
readonly ToolBefore: "tool.before";
|
|
2646
|
+
readonly ToolAfter: "tool.after";
|
|
2647
|
+
readonly ToolFailure: "tool.failure";
|
|
2648
|
+
readonly ToolDefinition: "tool.definition";
|
|
2649
|
+
readonly CommandBefore: "command.before";
|
|
2650
|
+
readonly CommandAfter: "command.after";
|
|
2651
|
+
readonly PermissionAsk: "permission.ask";
|
|
2652
|
+
readonly PermissionDenied: "permission.denied";
|
|
2653
|
+
readonly LlmParams: "llm.params";
|
|
2654
|
+
readonly LlmHeaders: "llm.headers";
|
|
2655
|
+
readonly ShellEnv: "shell.env";
|
|
2656
|
+
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
2657
|
+
readonly GatewayMessageProcess: "gateway.message.process";
|
|
2658
|
+
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
2659
|
+
readonly GatewayMessageSend: "gateway.message.send";
|
|
2660
|
+
readonly GatewayMessageDelivered: "gateway.message.delivered";
|
|
2661
|
+
readonly GatewayMessageRead: "gateway.message.read";
|
|
2662
|
+
readonly HeartbeatTrigger: "scheduler.heartbeat.trigger";
|
|
2663
|
+
readonly HeartbeatComplete: "scheduler.heartbeat.complete";
|
|
2664
|
+
readonly ScheduledTaskTrigger: "scheduler.task.trigger";
|
|
2665
|
+
readonly ScheduledTaskComplete: "scheduler.task.complete";
|
|
2666
|
+
readonly CommandTrigger: "scheduler.command.trigger";
|
|
2667
|
+
readonly CommandComplete: "scheduler.command.complete";
|
|
2668
|
+
readonly ContextBuildBefore: "context.build.before";
|
|
2669
|
+
readonly ContextBuildAfter: "context.build.after";
|
|
2670
|
+
readonly TaskStart: "task.start";
|
|
2671
|
+
readonly TaskRunning: "task.running";
|
|
2672
|
+
readonly TaskProgress: "task.progress";
|
|
2673
|
+
readonly TaskComplete: "task.complete";
|
|
2674
|
+
readonly LoopStart: "loop.start";
|
|
2675
|
+
readonly LoopEnd: "loop.end";
|
|
2676
|
+
readonly ProcessorStart: "processor.start";
|
|
2677
|
+
readonly ProcessorStepStart: "processor.step.start";
|
|
2678
|
+
readonly ProcessorReasoningStart: "processor.reasoning.start";
|
|
2679
|
+
readonly ProcessorReasoningDelta: "processor.reasoning.delta";
|
|
2680
|
+
readonly ProcessorReasoningEnd: "processor.reasoning.end";
|
|
2681
|
+
readonly ProcessorToolInputStart: "processor.tool.input.start";
|
|
2682
|
+
readonly ProcessorToolCall: "processor.tool.call";
|
|
2683
|
+
readonly ProcessorToolResult: "processor.tool.result";
|
|
2684
|
+
readonly ProcessorToolError: "processor.tool.error";
|
|
2685
|
+
readonly ProcessorStepFinish: "processor.step.finish";
|
|
2686
|
+
readonly ProcessorTextStart: "processor.text.start";
|
|
2687
|
+
readonly ProcessorTextDelta: "processor.text.delta";
|
|
2688
|
+
readonly ProcessorTextEnd: "processor.text.end";
|
|
2689
|
+
readonly ProcessorError: "processor.error";
|
|
2690
|
+
readonly ProcessorFinish: "processor.finish";
|
|
2691
|
+
readonly CreationRequest: "creation.request";
|
|
2692
|
+
readonly CreationComplete: "creation.complete";
|
|
2693
|
+
readonly EvolutionRequest: "evolution.request";
|
|
2694
|
+
readonly EvolutionComplete: "evolution.complete";
|
|
2695
|
+
};
|
|
2696
|
+
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
2697
|
+
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end" | "processor.start" | "processor.step.start" | "processor.reasoning.start" | "processor.reasoning.delta" | "processor.reasoning.end" | "processor.tool.input.start" | "processor.tool.call" | "processor.tool.result" | "processor.tool.error" | "processor.step.finish" | "processor.text.start" | "processor.text.delta" | "processor.text.end" | "processor.error" | "processor.finish" | "creation.request" | "creation.complete" | "evolution.request" | "evolution.complete")[];
|
|
2698
|
+
interface HookContext {
|
|
2699
|
+
sessionId?: string;
|
|
2367
2700
|
agent?: string;
|
|
2368
|
-
template?: string;
|
|
2369
2701
|
model?: string;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2702
|
+
cwd?: string;
|
|
2703
|
+
abort?: AbortSignal;
|
|
2704
|
+
[key: string]: unknown;
|
|
2705
|
+
}
|
|
2706
|
+
interface HookOutputWrapper<T = unknown> {
|
|
2707
|
+
modified: boolean;
|
|
2708
|
+
input: T;
|
|
2709
|
+
output?: Record<string, unknown>;
|
|
2710
|
+
}
|
|
2711
|
+
type HookHandler<T = unknown> = (input: T, context: HookContext) => Promise<HookOutputWrapper<T>> | HookOutputWrapper<T>;
|
|
2712
|
+
interface HookResult {
|
|
2713
|
+
success?: boolean;
|
|
2714
|
+
skipped?: boolean;
|
|
2715
|
+
output?: unknown;
|
|
2716
|
+
error?: string;
|
|
2717
|
+
stdout?: string;
|
|
2718
|
+
stderr?: string;
|
|
2719
|
+
exitCode?: number;
|
|
2720
|
+
duration?: number;
|
|
2376
2721
|
}
|
|
2722
|
+
interface HookExecutor {
|
|
2723
|
+
readonly type: string;
|
|
2724
|
+
canExecute(hook: unknown): boolean;
|
|
2725
|
+
execute(definition: HookDefinition, input: HookOutputWrapper, context?: HookContext): Promise<HookExecutorOutput>;
|
|
2726
|
+
}
|
|
2727
|
+
interface HookExecutorOutput {
|
|
2728
|
+
success: boolean;
|
|
2729
|
+
modified: boolean;
|
|
2730
|
+
input?: unknown;
|
|
2731
|
+
output?: unknown;
|
|
2732
|
+
error?: string;
|
|
2733
|
+
stdout?: string;
|
|
2734
|
+
stderr?: string;
|
|
2735
|
+
exitCode?: number;
|
|
2736
|
+
duration?: number;
|
|
2737
|
+
metadata?: Record<string, unknown>;
|
|
2738
|
+
}
|
|
2739
|
+
interface HookExecutorRegistry {
|
|
2740
|
+
register(executor: HookExecutor): void;
|
|
2741
|
+
getExecutor(definition: HookDefinition): HookExecutor | undefined;
|
|
2742
|
+
execute(definition: HookDefinition, input: HookOutputWrapper, context?: HookContext): Promise<HookExecutorOutput>;
|
|
2743
|
+
}
|
|
2744
|
+
interface HookExecutionDetail {
|
|
2745
|
+
index: number;
|
|
2746
|
+
hookType: string;
|
|
2747
|
+
hookName: string;
|
|
2748
|
+
matched: boolean;
|
|
2749
|
+
skipped: boolean;
|
|
2750
|
+
success: boolean;
|
|
2751
|
+
modified: boolean;
|
|
2752
|
+
duration: number;
|
|
2753
|
+
output?: unknown;
|
|
2754
|
+
}
|
|
2755
|
+
interface HookError {
|
|
2756
|
+
index: number;
|
|
2757
|
+
hookName: string;
|
|
2758
|
+
error: string;
|
|
2759
|
+
stack?: string;
|
|
2760
|
+
}
|
|
2761
|
+
interface HookChainResult<T = unknown> {
|
|
2762
|
+
success: boolean;
|
|
2763
|
+
output: T;
|
|
2764
|
+
modified: boolean;
|
|
2765
|
+
aborted: boolean;
|
|
2766
|
+
details: HookExecutionDetail[];
|
|
2767
|
+
errors: HookError[];
|
|
2768
|
+
duration: number;
|
|
2769
|
+
}
|
|
2770
|
+
interface HookInfo {
|
|
2771
|
+
name: string;
|
|
2772
|
+
init(): Promise<HookInitResult>;
|
|
2773
|
+
dispose?: () => Promise<void> | void;
|
|
2774
|
+
}
|
|
2775
|
+
type HookInitResult = {
|
|
2776
|
+
scope?: _easbot_types.Scope;
|
|
2777
|
+
isEnabled?: () => boolean | Promise<boolean>;
|
|
2778
|
+
handlers: Array<{
|
|
2779
|
+
name: HookEvent;
|
|
2780
|
+
handler: HookHandler<unknown>;
|
|
2781
|
+
}>;
|
|
2782
|
+
};
|
|
2377
2783
|
|
|
2378
2784
|
declare const AgentModeSchema: z$1.ZodEnum<{
|
|
2379
2785
|
all: "all";
|
|
2380
2786
|
subagent: "subagent";
|
|
2381
2787
|
primary: "primary";
|
|
2382
2788
|
}>;
|
|
2383
|
-
type AgentMode =
|
|
2789
|
+
type AgentMode = AgentInfo['mode'];
|
|
2384
2790
|
declare const AgentScopeSchema: z$1.ZodEnum<{
|
|
2385
2791
|
general: "general";
|
|
2386
2792
|
coder: "coder";
|
|
2387
2793
|
all: "all";
|
|
2388
2794
|
}>;
|
|
2389
|
-
type AgentScope =
|
|
2390
|
-
declare const AgentModelSchema: z$1.ZodObject<{
|
|
2391
|
-
providerId: z$1.ZodString;
|
|
2392
|
-
modelId: z$1.ZodString;
|
|
2393
|
-
}, z$1.core.$strip>;
|
|
2394
|
-
type AgentModel = z$1.infer<typeof AgentModelSchema>;
|
|
2795
|
+
type AgentScope = AgentInfo['scope'];
|
|
2395
2796
|
declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
2396
2797
|
name: z$1.ZodString;
|
|
2397
2798
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2400,190 +2801,10 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2400
2801
|
subagent: "subagent";
|
|
2401
2802
|
primary: "primary";
|
|
2402
2803
|
}>>;
|
|
2804
|
+
native: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2403
2805
|
hidden: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2404
|
-
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2405
|
-
general: "general";
|
|
2406
|
-
coder: "coder";
|
|
2407
|
-
all: "all";
|
|
2408
|
-
}>>;
|
|
2409
|
-
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2410
|
-
providerId: z$1.ZodString;
|
|
2411
|
-
modelId: z$1.ZodString;
|
|
2412
|
-
}, z$1.core.$strip>>;
|
|
2413
|
-
variant: z$1.ZodOptional<z$1.ZodString>;
|
|
2414
|
-
temperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2415
2806
|
topP: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2416
|
-
|
|
2417
|
-
permission: z$1.ZodOptional<z$1.ZodObject<{
|
|
2418
|
-
read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2419
|
-
allow: "allow";
|
|
2420
|
-
deny: "deny";
|
|
2421
|
-
ask: "ask";
|
|
2422
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2423
|
-
allow: "allow";
|
|
2424
|
-
deny: "deny";
|
|
2425
|
-
ask: "ask";
|
|
2426
|
-
}>>]>>;
|
|
2427
|
-
edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2428
|
-
allow: "allow";
|
|
2429
|
-
deny: "deny";
|
|
2430
|
-
ask: "ask";
|
|
2431
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2432
|
-
allow: "allow";
|
|
2433
|
-
deny: "deny";
|
|
2434
|
-
ask: "ask";
|
|
2435
|
-
}>>]>>;
|
|
2436
|
-
write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2437
|
-
allow: "allow";
|
|
2438
|
-
deny: "deny";
|
|
2439
|
-
ask: "ask";
|
|
2440
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2441
|
-
allow: "allow";
|
|
2442
|
-
deny: "deny";
|
|
2443
|
-
ask: "ask";
|
|
2444
|
-
}>>]>>;
|
|
2445
|
-
glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2446
|
-
allow: "allow";
|
|
2447
|
-
deny: "deny";
|
|
2448
|
-
ask: "ask";
|
|
2449
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2450
|
-
allow: "allow";
|
|
2451
|
-
deny: "deny";
|
|
2452
|
-
ask: "ask";
|
|
2453
|
-
}>>]>>;
|
|
2454
|
-
grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2455
|
-
allow: "allow";
|
|
2456
|
-
deny: "deny";
|
|
2457
|
-
ask: "ask";
|
|
2458
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2459
|
-
allow: "allow";
|
|
2460
|
-
deny: "deny";
|
|
2461
|
-
ask: "ask";
|
|
2462
|
-
}>>]>>;
|
|
2463
|
-
list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2464
|
-
allow: "allow";
|
|
2465
|
-
deny: "deny";
|
|
2466
|
-
ask: "ask";
|
|
2467
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2468
|
-
allow: "allow";
|
|
2469
|
-
deny: "deny";
|
|
2470
|
-
ask: "ask";
|
|
2471
|
-
}>>]>>;
|
|
2472
|
-
bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2473
|
-
allow: "allow";
|
|
2474
|
-
deny: "deny";
|
|
2475
|
-
ask: "ask";
|
|
2476
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2477
|
-
allow: "allow";
|
|
2478
|
-
deny: "deny";
|
|
2479
|
-
ask: "ask";
|
|
2480
|
-
}>>]>>;
|
|
2481
|
-
webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2482
|
-
allow: "allow";
|
|
2483
|
-
deny: "deny";
|
|
2484
|
-
ask: "ask";
|
|
2485
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2486
|
-
allow: "allow";
|
|
2487
|
-
deny: "deny";
|
|
2488
|
-
ask: "ask";
|
|
2489
|
-
}>>]>>;
|
|
2490
|
-
websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2491
|
-
allow: "allow";
|
|
2492
|
-
deny: "deny";
|
|
2493
|
-
ask: "ask";
|
|
2494
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2495
|
-
allow: "allow";
|
|
2496
|
-
deny: "deny";
|
|
2497
|
-
ask: "ask";
|
|
2498
|
-
}>>]>>;
|
|
2499
|
-
task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2500
|
-
allow: "allow";
|
|
2501
|
-
deny: "deny";
|
|
2502
|
-
ask: "ask";
|
|
2503
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2504
|
-
allow: "allow";
|
|
2505
|
-
deny: "deny";
|
|
2506
|
-
ask: "ask";
|
|
2507
|
-
}>>]>>;
|
|
2508
|
-
todo: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2509
|
-
allow: "allow";
|
|
2510
|
-
deny: "deny";
|
|
2511
|
-
ask: "ask";
|
|
2512
|
-
}>>;
|
|
2513
|
-
question: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2514
|
-
allow: "allow";
|
|
2515
|
-
deny: "deny";
|
|
2516
|
-
ask: "ask";
|
|
2517
|
-
}>>;
|
|
2518
|
-
skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2519
|
-
allow: "allow";
|
|
2520
|
-
deny: "deny";
|
|
2521
|
-
ask: "ask";
|
|
2522
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2523
|
-
allow: "allow";
|
|
2524
|
-
deny: "deny";
|
|
2525
|
-
ask: "ask";
|
|
2526
|
-
}>>]>>;
|
|
2527
|
-
memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2528
|
-
allow: "allow";
|
|
2529
|
-
deny: "deny";
|
|
2530
|
-
ask: "ask";
|
|
2531
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2532
|
-
allow: "allow";
|
|
2533
|
-
deny: "deny";
|
|
2534
|
-
ask: "ask";
|
|
2535
|
-
}>>]>>;
|
|
2536
|
-
note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2537
|
-
allow: "allow";
|
|
2538
|
-
deny: "deny";
|
|
2539
|
-
ask: "ask";
|
|
2540
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2541
|
-
allow: "allow";
|
|
2542
|
-
deny: "deny";
|
|
2543
|
-
ask: "ask";
|
|
2544
|
-
}>>]>>;
|
|
2545
|
-
pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2546
|
-
allow: "allow";
|
|
2547
|
-
deny: "deny";
|
|
2548
|
-
ask: "ask";
|
|
2549
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2550
|
-
allow: "allow";
|
|
2551
|
-
deny: "deny";
|
|
2552
|
-
ask: "ask";
|
|
2553
|
-
}>>]>>;
|
|
2554
|
-
pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2555
|
-
allow: "allow";
|
|
2556
|
-
deny: "deny";
|
|
2557
|
-
ask: "ask";
|
|
2558
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2559
|
-
allow: "allow";
|
|
2560
|
-
deny: "deny";
|
|
2561
|
-
ask: "ask";
|
|
2562
|
-
}>>]>>;
|
|
2563
|
-
external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2564
|
-
allow: "allow";
|
|
2565
|
-
deny: "deny";
|
|
2566
|
-
ask: "ask";
|
|
2567
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2568
|
-
allow: "allow";
|
|
2569
|
-
deny: "deny";
|
|
2570
|
-
ask: "ask";
|
|
2571
|
-
}>>]>>;
|
|
2572
|
-
doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2573
|
-
allow: "allow";
|
|
2574
|
-
deny: "deny";
|
|
2575
|
-
ask: "ask";
|
|
2576
|
-
}>>;
|
|
2577
|
-
}, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2578
|
-
allow: "allow";
|
|
2579
|
-
deny: "deny";
|
|
2580
|
-
ask: "ask";
|
|
2581
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2582
|
-
allow: "allow";
|
|
2583
|
-
deny: "deny";
|
|
2584
|
-
ask: "ask";
|
|
2585
|
-
}>>]>>>>;
|
|
2586
|
-
steps: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2807
|
+
temperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2587
2808
|
color: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodEnum<{
|
|
2588
2809
|
success: "success";
|
|
2589
2810
|
error: "error";
|
|
@@ -2593,9 +2814,31 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2593
2814
|
accent: "accent";
|
|
2594
2815
|
warning: "warning";
|
|
2595
2816
|
}>]>>;
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2817
|
+
permission: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2818
|
+
permission: z$1.ZodString;
|
|
2819
|
+
pattern: z$1.ZodString;
|
|
2820
|
+
action: z$1.ZodEnum<{
|
|
2821
|
+
ask: "ask";
|
|
2822
|
+
allow: "allow";
|
|
2823
|
+
deny: "deny";
|
|
2824
|
+
}>;
|
|
2825
|
+
}, z$1.core.$strip>>>;
|
|
2826
|
+
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2827
|
+
all: "all";
|
|
2828
|
+
general: "general";
|
|
2829
|
+
coder: "coder";
|
|
2830
|
+
}>>;
|
|
2831
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2832
|
+
modelId: z$1.ZodString;
|
|
2833
|
+
providerId: z$1.ZodString;
|
|
2834
|
+
}, z$1.core.$strip>>;
|
|
2835
|
+
variant: z$1.ZodOptional<z$1.ZodString>;
|
|
2836
|
+
prompt: z$1.ZodOptional<z$1.ZodString>;
|
|
2837
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
2838
|
+
steps: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2839
|
+
disable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2840
|
+
}, z$1.core.$catchall<z$1.ZodUnknown>>;
|
|
2841
|
+
type AgentMetadata = AgentInfo;
|
|
2599
2842
|
interface AgentDefinition extends AgentMetadata {
|
|
2600
2843
|
id?: string;
|
|
2601
2844
|
}
|
|
@@ -2763,10 +3006,6 @@ interface PluginDefinition {
|
|
|
2763
3006
|
'session.end'?: (input: SessionEndInput, output: HookOutputWrapper<SessionEndInput>) => Promise<void>;
|
|
2764
3007
|
'session.compact'?: (input: SessionCompactInput, output: HookOutputWrapper<SessionCompactInput>) => Promise<void>;
|
|
2765
3008
|
'session.compacting'?: (input: SessionCompactingInput, output: HookOutputWrapper<SessionCompactingInput>) => Promise<void>;
|
|
2766
|
-
'step.start'?: (input: StepStartInput, output: HookOutputWrapper<StepStartInput>) => Promise<void>;
|
|
2767
|
-
'step.finish'?: (input: StepFinishInput, output: HookOutputWrapper<StepFinishInput>) => Promise<void>;
|
|
2768
|
-
'step.stop'?: (input: StepStopInput, output: HookOutputWrapper<StepStopInput>) => Promise<void>;
|
|
2769
|
-
'step.stop.failure'?: (input: StepStopFailureInput, output: HookOutputWrapper<StepStopFailureInput>) => Promise<void>;
|
|
2770
3009
|
'message.receive'?: (input: MessageReceiveInput, output: HookOutputWrapper<MessageReceiveInput>) => Promise<void>;
|
|
2771
3010
|
'message.transform'?: (input: MessageTransformInput, output: HookOutputWrapper<MessageTransformInput>) => Promise<void>;
|
|
2772
3011
|
'system.transform'?: (input: SystemTransformInput, output: HookOutputWrapper<SystemTransformInput>) => Promise<void>;
|
|
@@ -2781,7 +3020,6 @@ interface PluginDefinition {
|
|
|
2781
3020
|
'llm.params'?: (input: LlmParamsInput, output: HookOutputWrapper<LlmParamsInput>) => Promise<void>;
|
|
2782
3021
|
'llm.headers'?: (input: LlmHeadersInput, output: HookOutputWrapper<LlmHeadersInput>) => Promise<void>;
|
|
2783
3022
|
'shell.env'?: (input: ShellEnvInput, output: HookOutputWrapper<ShellEnvInput>) => Promise<void>;
|
|
2784
|
-
'text.complete'?: (input: TextCompleteInput, output: HookOutputWrapper<TextCompleteInput>) => Promise<void>;
|
|
2785
3023
|
'gateway.message.receive'?: (input: GatewayMessageReceiveInput, output: HookOutputWrapper<GatewayMessageReceiveInput>) => Promise<void>;
|
|
2786
3024
|
'gateway.message.process'?: (input: GatewayMessageProcessInput, output: HookOutputWrapper<GatewayMessageProcessInput>) => Promise<void>;
|
|
2787
3025
|
'gateway.message.complete'?: (input: GatewayMessageCompleteInput, output: HookOutputWrapper<GatewayMessageCompleteInput>) => Promise<void>;
|
|
@@ -2794,4 +3032,4 @@ interface PluginDefinition {
|
|
|
2794
3032
|
'context.build.after'?: (input: ContextBuildAfterInput, output: HookOutputWrapper<ContextBuildAfterInput>) => Promise<void>;
|
|
2795
3033
|
}
|
|
2796
3034
|
|
|
2797
|
-
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema,
|
|
3035
|
+
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema, AgentSchema, type AgentScope, AgentScopeSchema, type AuthHook, type AuthOuathResult, CallIDSchema, type CommandAfterInput, CommandAfterInputSchema, type CommandBeforeInput, CommandBeforeInputSchema, type CommandCompleteInput, CommandCompleteInputSchema, CommandExecutorSchema, type CommandHookDefinition, type CommandTaskDefinition, CommandTaskDefinitionSchema, type CommandTriggerInput, CommandTriggerInputSchema, ContentPartSchema, type ContextBuildAfterInput, ContextBuildAfterInputSchema, type ContextBuildBeforeInput, ContextBuildBeforeInputSchema, type CreationCompleteInput, CreationCompleteInputSchema, type CreationRequestInput, CreationRequestInputSchema, CwdSchema, EndReasonSchema, EventInputSchemas, type EvolutionCompleteInput, EvolutionCompleteInputSchema, type EvolutionRequestInput, EvolutionRequestInputSchema, FinishReasonSchema, FunctionExecutorSchema, type FunctionHookDefinition, type GatewayMessageCompleteInput, GatewayMessageCompleteInputSchema, type GatewayMessageDeliveredInput, GatewayMessageDeliveredInputSchema, type GatewayMessageProcessInput, GatewayMessageProcessInputSchema, type GatewayMessageReadInput, GatewayMessageReadInputSchema, type GatewayMessageReceiveInput, GatewayMessageReceiveInputSchema, type GatewayMessageSendInput, GatewayMessageSendInputSchema, HOOK_EVENTS, type HeartbeatCompleteInput, HeartbeatCompleteInputSchema, type HeartbeatTaskDefinition, HeartbeatTaskDefinitionSchema, type HeartbeatTriggerInput, HeartbeatTriggerInputSchema, type HookChainResult, type HookContext, type HookDefinition, type HookError, HookEvent, type HookExecutionDetail, type HookExecutor, type HookExecutorOutput, type HookExecutorRegistry, HookExecutorSchema, type HookHandler, type HookInfo, type HookInitResult, type HookMatcher, HookMatcherSchema, type HookMessageCallback, type HookOutputWrapper, type HookResult, HookType, type HooksConfig, HooksConfigSchema, HttpExecutorSchema, type HttpHookDefinition, type LlmHeadersInput, LlmHeadersInputSchema, type LlmParamsInput, LlmParamsInputSchema, LlmParamsSchema, LlmProviderSchema, type LoopEndInput, LoopEndInputSchema, type LoopStartInput, LoopStartInputSchema, type MarketplaceCategory, type MarketplaceDefinition, type MarketplaceEntry, MessageIDSchema, type MessageReceiveInput, MessageReceiveInputSchema, MessageRoleSchema, MessageSchema, type MessageTransformInput, MessageTransformInputSchema, ModelObjectSchema, ModelSchema, PartIDSchema, type PermissionAskInput, PermissionAskInputSchema, type PermissionDeniedInput, PermissionDeniedInputSchema, PermissionLevelSchema, PermissionRequestSchema, type Plugin, type PluginDefinition, type PluginInput, type ProcessorErrorInput, ProcessorErrorInputSchema, type ProcessorFinishInput, ProcessorFinishInputSchema, type ProcessorReasoningDeltaInput, ProcessorReasoningDeltaInputSchema, type ProcessorReasoningEndInput, ProcessorReasoningEndInputSchema, type ProcessorReasoningStartInput, ProcessorReasoningStartInputSchema, type ProcessorStartInput, ProcessorStartInputSchema, type ProcessorStepFinishInput, ProcessorStepFinishInputSchema, type ProcessorStepStartInput, ProcessorStepStartInputSchema, type ProcessorTextDeltaInput, ProcessorTextDeltaInputSchema, type ProcessorTextEndInput, ProcessorTextEndInputSchema, type ProcessorTextStartInput, ProcessorTextStartInputSchema, type ProcessorToolCallInput, ProcessorToolCallInputSchema, type ProcessorToolErrorInput, ProcessorToolErrorInputSchema, type ProcessorToolInputStartInput, ProcessorToolInputStartInputSchema, type ProcessorToolResultInput, ProcessorToolResultInputSchema, PromptExecutorSchema, type PromptHookDefinition, type ScheduledTaskCompleteInput, ScheduledTaskCompleteInputSchema, type ScheduledTaskTriggerInput, ScheduledTaskTriggerInputSchema, type SchedulerTaskDefinition, SchedulerTaskDefinitionSchema, type SessionCompactInput, SessionCompactInputSchema, type SessionCompactingInput, SessionCompactingInputSchema, type SessionEndInput, SessionEndInputSchema, SessionIDSchema, type SessionStartInput, SessionStartInputSchema, type ShellEnvInput, ShellEnvInputSchema, type SkillDefinition, type SkillInitContext, SkillInitContextSchema, type SkillInitResult, SkillInitResultSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, type StoreSourceType, type SystemTransformInput, SystemTransformInputSchema, type TaskCompleteInput, TaskCompleteInputSchema, type TaskDefinition, type TaskProgressInput, TaskProgressInputSchema, type TaskRunningInput, TaskRunningInputSchema, type TaskSource, TaskSourceSchema, type TaskStartInput, TaskStartInputSchema, type ToolAfterInput, ToolAfterInputSchema, ToolArgsSchema, type ToolBeforeInput, ToolBeforeInputSchema, type ToolDefinitionInput, ToolDefinitionInputSchema, type ToolFailureInput, ToolFailureInputSchema, ToolResultSchema, findMarketplace, findMarketplacesByCategory, getEventInputSchema, listMarketplaces, registerMarketplace, safeValidateHookInput, tool, unregisterMarketplace, validateHookInput };
|