@easbot/plugin 0.3.29 → 0.3.36
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 +145 -63
- package/README.md +144 -61
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +883 -713
- package/dist/index.d.ts +883 -713
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Auth, Provider, createEasbotClient, Project, Event, Config } from '@easbot/sdk';
|
|
2
2
|
import * as _easbot_types from '@easbot/types';
|
|
3
|
-
import { ToolContext, EasbotShell, ToolDefinition } from '@easbot/types';
|
|
4
|
-
export { AgentPermission, AgentPermissionSchema, AskInput, EasbotShell, EasbotShellError, EasbotShellOutput, EasbotShellPromise, PermissionActionSchema, PermissionRuleSchema, ShellExpression, ShellFunction, ToolContext, ToolDefinition, ToolFunction as ToolFn, ToolFunction, buildToolArgs, createTool, toolSchema as schema } 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';
|
|
5
5
|
import z, { z as z$1 } from 'zod';
|
|
6
6
|
|
|
7
7
|
declare function tool<Args extends Record<string, z.ZodTypeAny>>(input: {
|
|
@@ -29,6 +29,7 @@ declare const CommandExecutorSchema: z$1.ZodObject<{
|
|
|
29
29
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
30
30
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
31
31
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
32
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
32
33
|
}, z$1.core.$strip>;
|
|
33
34
|
type CommandHookDefinition = z$1.infer<typeof CommandExecutorSchema>;
|
|
34
35
|
type HookMessageCallback = (message: Record<string, unknown>) => void | Promise<void>;
|
|
@@ -99,6 +100,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
99
100
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
100
101
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
101
102
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
103
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
102
104
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
103
105
|
type: z$1.ZodLiteral<"prompt">;
|
|
104
106
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -159,6 +161,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
159
161
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
160
162
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
161
163
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
164
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
162
165
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
163
166
|
type: z$1.ZodLiteral<"prompt">;
|
|
164
167
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -203,6 +206,12 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
203
206
|
type: z$1.ZodLiteral<"function">;
|
|
204
207
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
205
208
|
}, z$1.core.$strip>], "type">>;
|
|
209
|
+
priority: z$1.ZodOptional<z$1.ZodNumber>;
|
|
210
|
+
timeoutMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
211
|
+
failurePolicy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
212
|
+
"fail-open": "fail-open";
|
|
213
|
+
"fail-closed": "fail-closed";
|
|
214
|
+
}>>;
|
|
206
215
|
}, z$1.core.$strip>;
|
|
207
216
|
type HookMatcher = z$1.infer<typeof HookMatcherSchema>;
|
|
208
217
|
declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -220,6 +229,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
220
229
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
221
230
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
222
231
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
232
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
223
233
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
224
234
|
type: z$1.ZodLiteral<"prompt">;
|
|
225
235
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -264,6 +274,12 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
264
274
|
type: z$1.ZodLiteral<"function">;
|
|
265
275
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
266
276
|
}, z$1.core.$strip>], "type">>;
|
|
277
|
+
priority: z$1.ZodOptional<z$1.ZodNumber>;
|
|
278
|
+
timeoutMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
279
|
+
failurePolicy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
280
|
+
"fail-open": "fail-open";
|
|
281
|
+
"fail-closed": "fail-closed";
|
|
282
|
+
}>>;
|
|
267
283
|
}, z$1.core.$strip>>>;
|
|
268
284
|
type HooksConfig = z$1.infer<typeof HooksConfigSchema>;
|
|
269
285
|
declare const SessionIDSchema: z$1.ZodString;
|
|
@@ -339,53 +355,6 @@ declare const SessionCompactInputSchema: z$1.ZodObject<{
|
|
|
339
355
|
newLength: z$1.ZodNumber;
|
|
340
356
|
}, z$1.core.$strip>;
|
|
341
357
|
type SessionCompactInput = z$1.infer<typeof SessionCompactInputSchema>;
|
|
342
|
-
declare const StepStartInputSchema: z$1.ZodObject<{
|
|
343
|
-
sessionId: z$1.ZodString;
|
|
344
|
-
messageId: z$1.ZodString;
|
|
345
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
346
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
347
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
348
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
349
|
-
}, z$1.core.$strip>;
|
|
350
|
-
type StepStartInput = z$1.infer<typeof StepStartInputSchema>;
|
|
351
|
-
declare const StepFinishInputSchema: z$1.ZodObject<{
|
|
352
|
-
sessionId: z$1.ZodString;
|
|
353
|
-
messageId: z$1.ZodString;
|
|
354
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
355
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
356
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
357
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
358
|
-
finishReason: z$1.ZodEnum<{
|
|
359
|
-
max_tokens: "max_tokens";
|
|
360
|
-
stop: "stop";
|
|
361
|
-
end_turn: "end_turn";
|
|
362
|
-
stop_sequence: "stop_sequence";
|
|
363
|
-
}>;
|
|
364
|
-
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
365
|
-
input: z$1.ZodOptional<z$1.ZodNumber>;
|
|
366
|
-
output: z$1.ZodOptional<z$1.ZodNumber>;
|
|
367
|
-
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
368
|
-
}, z$1.core.$strip>>;
|
|
369
|
-
}, z$1.core.$strip>;
|
|
370
|
-
type StepFinishInput = z$1.infer<typeof StepFinishInputSchema>;
|
|
371
|
-
declare const StepStopInputSchema: z$1.ZodObject<{
|
|
372
|
-
sessionId: z$1.ZodString;
|
|
373
|
-
reason: z$1.ZodString;
|
|
374
|
-
}, z$1.core.$strip>;
|
|
375
|
-
type StepStopInput = z$1.infer<typeof StepStopInputSchema>;
|
|
376
|
-
declare const StepStopFailureInputSchema: z$1.ZodObject<{
|
|
377
|
-
sessionId: z$1.ZodString;
|
|
378
|
-
error: z$1.ZodString;
|
|
379
|
-
errorType: z$1.ZodEnum<{
|
|
380
|
-
timeout: "timeout";
|
|
381
|
-
rate_limit: "rate_limit";
|
|
382
|
-
auth_error: "auth_error";
|
|
383
|
-
network_error: "network_error";
|
|
384
|
-
invalid_request: "invalid_request";
|
|
385
|
-
server_error: "server_error";
|
|
386
|
-
}>;
|
|
387
|
-
}, z$1.core.$strip>;
|
|
388
|
-
type StepStopFailureInput = z$1.infer<typeof StepStopFailureInputSchema>;
|
|
389
358
|
declare const MessageRoleSchema: z$1.ZodEnum<{
|
|
390
359
|
system: "system";
|
|
391
360
|
user: "user";
|
|
@@ -700,13 +669,6 @@ declare const ShellEnvInputSchema: z$1.ZodObject<{
|
|
|
700
669
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
701
670
|
}, z$1.core.$strip>;
|
|
702
671
|
type ShellEnvInput = z$1.infer<typeof ShellEnvInputSchema>;
|
|
703
|
-
declare const TextCompleteInputSchema: z$1.ZodObject<{
|
|
704
|
-
sessionId: z$1.ZodString;
|
|
705
|
-
messageId: z$1.ZodString;
|
|
706
|
-
partId: z$1.ZodString;
|
|
707
|
-
text: z$1.ZodString;
|
|
708
|
-
}, z$1.core.$strip>;
|
|
709
|
-
type TextCompleteInput = z$1.infer<typeof TextCompleteInputSchema>;
|
|
710
672
|
declare const ContextBuildBeforeInputSchema: z$1.ZodObject<{
|
|
711
673
|
sessionId: z$1.ZodString;
|
|
712
674
|
mode: z$1.ZodEnum<{
|
|
@@ -1062,6 +1024,219 @@ declare const EvolutionCompleteInputSchema: z$1.ZodObject<{
|
|
|
1062
1024
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1063
1025
|
}, z$1.core.$strip>;
|
|
1064
1026
|
type EvolutionCompleteInput = z$1.infer<typeof EvolutionCompleteInputSchema>;
|
|
1027
|
+
declare const ProcessorStartInputSchema: z$1.ZodObject<{
|
|
1028
|
+
streamId: z$1.ZodString;
|
|
1029
|
+
step: z$1.ZodNumber;
|
|
1030
|
+
agent: z$1.ZodString;
|
|
1031
|
+
sessionId: z$1.ZodString;
|
|
1032
|
+
messageId: z$1.ZodString;
|
|
1033
|
+
userMessageId: z$1.ZodString;
|
|
1034
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1035
|
+
}, z$1.core.$strip>;
|
|
1036
|
+
type ProcessorStartInput = z$1.infer<typeof ProcessorStartInputSchema>;
|
|
1037
|
+
declare const ProcessorStepStartInputSchema: z$1.ZodObject<{
|
|
1038
|
+
streamId: z$1.ZodString;
|
|
1039
|
+
step: z$1.ZodNumber;
|
|
1040
|
+
agent: z$1.ZodString;
|
|
1041
|
+
sessionId: z$1.ZodString;
|
|
1042
|
+
messageId: z$1.ZodString;
|
|
1043
|
+
userMessageId: z$1.ZodString;
|
|
1044
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1045
|
+
partId: z$1.ZodString;
|
|
1046
|
+
}, z$1.core.$strip>;
|
|
1047
|
+
type ProcessorStepStartInput = z$1.infer<typeof ProcessorStepStartInputSchema>;
|
|
1048
|
+
declare const ProcessorReasoningStartInputSchema: z$1.ZodObject<{
|
|
1049
|
+
streamId: z$1.ZodString;
|
|
1050
|
+
step: z$1.ZodNumber;
|
|
1051
|
+
agent: z$1.ZodString;
|
|
1052
|
+
sessionId: z$1.ZodString;
|
|
1053
|
+
messageId: z$1.ZodString;
|
|
1054
|
+
userMessageId: z$1.ZodString;
|
|
1055
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1056
|
+
reasoningId: z$1.ZodString;
|
|
1057
|
+
text: z$1.ZodString;
|
|
1058
|
+
partId: z$1.ZodString;
|
|
1059
|
+
}, z$1.core.$strip>;
|
|
1060
|
+
type ProcessorReasoningStartInput = z$1.infer<typeof ProcessorReasoningStartInputSchema>;
|
|
1061
|
+
declare const ProcessorReasoningDeltaInputSchema: z$1.ZodObject<{
|
|
1062
|
+
streamId: z$1.ZodString;
|
|
1063
|
+
step: z$1.ZodNumber;
|
|
1064
|
+
agent: z$1.ZodString;
|
|
1065
|
+
sessionId: z$1.ZodString;
|
|
1066
|
+
messageId: z$1.ZodString;
|
|
1067
|
+
userMessageId: z$1.ZodString;
|
|
1068
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1069
|
+
reasoningId: z$1.ZodString;
|
|
1070
|
+
delta: z$1.ZodString;
|
|
1071
|
+
text: z$1.ZodString;
|
|
1072
|
+
partId: z$1.ZodString;
|
|
1073
|
+
}, z$1.core.$strip>;
|
|
1074
|
+
type ProcessorReasoningDeltaInput = z$1.infer<typeof ProcessorReasoningDeltaInputSchema>;
|
|
1075
|
+
declare const ProcessorReasoningEndInputSchema: z$1.ZodObject<{
|
|
1076
|
+
streamId: z$1.ZodString;
|
|
1077
|
+
step: z$1.ZodNumber;
|
|
1078
|
+
agent: z$1.ZodString;
|
|
1079
|
+
sessionId: z$1.ZodString;
|
|
1080
|
+
messageId: z$1.ZodString;
|
|
1081
|
+
userMessageId: z$1.ZodString;
|
|
1082
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1083
|
+
reasoningId: z$1.ZodString;
|
|
1084
|
+
text: z$1.ZodString;
|
|
1085
|
+
partId: z$1.ZodString;
|
|
1086
|
+
}, z$1.core.$strip>;
|
|
1087
|
+
type ProcessorReasoningEndInput = z$1.infer<typeof ProcessorReasoningEndInputSchema>;
|
|
1088
|
+
declare const ProcessorToolInputStartInputSchema: z$1.ZodObject<{
|
|
1089
|
+
streamId: z$1.ZodString;
|
|
1090
|
+
step: z$1.ZodNumber;
|
|
1091
|
+
agent: z$1.ZodString;
|
|
1092
|
+
sessionId: z$1.ZodString;
|
|
1093
|
+
messageId: z$1.ZodString;
|
|
1094
|
+
userMessageId: z$1.ZodString;
|
|
1095
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1096
|
+
callId: z$1.ZodString;
|
|
1097
|
+
tool: z$1.ZodString;
|
|
1098
|
+
partId: z$1.ZodString;
|
|
1099
|
+
}, z$1.core.$strip>;
|
|
1100
|
+
type ProcessorToolInputStartInput = z$1.infer<typeof ProcessorToolInputStartInputSchema>;
|
|
1101
|
+
declare const ProcessorToolCallInputSchema: z$1.ZodObject<{
|
|
1102
|
+
streamId: z$1.ZodString;
|
|
1103
|
+
step: z$1.ZodNumber;
|
|
1104
|
+
agent: z$1.ZodString;
|
|
1105
|
+
sessionId: z$1.ZodString;
|
|
1106
|
+
messageId: z$1.ZodString;
|
|
1107
|
+
userMessageId: z$1.ZodString;
|
|
1108
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1109
|
+
callId: z$1.ZodString;
|
|
1110
|
+
tool: z$1.ZodString;
|
|
1111
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1112
|
+
partId: z$1.ZodString;
|
|
1113
|
+
}, z$1.core.$strip>;
|
|
1114
|
+
type ProcessorToolCallInput = z$1.infer<typeof ProcessorToolCallInputSchema>;
|
|
1115
|
+
declare const ProcessorToolResultInputSchema: z$1.ZodObject<{
|
|
1116
|
+
streamId: z$1.ZodString;
|
|
1117
|
+
step: z$1.ZodNumber;
|
|
1118
|
+
agent: z$1.ZodString;
|
|
1119
|
+
sessionId: z$1.ZodString;
|
|
1120
|
+
messageId: z$1.ZodString;
|
|
1121
|
+
userMessageId: z$1.ZodString;
|
|
1122
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1123
|
+
callId: z$1.ZodString;
|
|
1124
|
+
tool: z$1.ZodString;
|
|
1125
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1126
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1127
|
+
output: z$1.ZodUnknown;
|
|
1128
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1129
|
+
durationMs: z$1.ZodNumber;
|
|
1130
|
+
partId: z$1.ZodString;
|
|
1131
|
+
}, z$1.core.$strip>;
|
|
1132
|
+
type ProcessorToolResultInput = z$1.infer<typeof ProcessorToolResultInputSchema>;
|
|
1133
|
+
declare const ProcessorToolErrorInputSchema: z$1.ZodObject<{
|
|
1134
|
+
streamId: z$1.ZodString;
|
|
1135
|
+
step: z$1.ZodNumber;
|
|
1136
|
+
agent: z$1.ZodString;
|
|
1137
|
+
sessionId: z$1.ZodString;
|
|
1138
|
+
messageId: z$1.ZodString;
|
|
1139
|
+
userMessageId: z$1.ZodString;
|
|
1140
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1141
|
+
callId: z$1.ZodString;
|
|
1142
|
+
tool: z$1.ZodString;
|
|
1143
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1144
|
+
error: z$1.ZodString;
|
|
1145
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1146
|
+
durationMs: z$1.ZodNumber;
|
|
1147
|
+
partId: z$1.ZodString;
|
|
1148
|
+
}, z$1.core.$strip>;
|
|
1149
|
+
type ProcessorToolErrorInput = z$1.infer<typeof ProcessorToolErrorInputSchema>;
|
|
1150
|
+
declare const ProcessorStepFinishInputSchema: z$1.ZodObject<{
|
|
1151
|
+
streamId: z$1.ZodString;
|
|
1152
|
+
step: z$1.ZodNumber;
|
|
1153
|
+
agent: z$1.ZodString;
|
|
1154
|
+
sessionId: z$1.ZodString;
|
|
1155
|
+
messageId: z$1.ZodString;
|
|
1156
|
+
userMessageId: z$1.ZodString;
|
|
1157
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1158
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1159
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1160
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1161
|
+
input: z$1.ZodNumber;
|
|
1162
|
+
output: z$1.ZodNumber;
|
|
1163
|
+
reasoning: z$1.ZodNumber;
|
|
1164
|
+
cache: z$1.ZodObject<{
|
|
1165
|
+
read: z$1.ZodNumber;
|
|
1166
|
+
write: z$1.ZodNumber;
|
|
1167
|
+
}, z$1.core.$strip>;
|
|
1168
|
+
}, z$1.core.$strip>>;
|
|
1169
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1170
|
+
partId: z$1.ZodString;
|
|
1171
|
+
}, z$1.core.$strip>;
|
|
1172
|
+
type ProcessorStepFinishInput = z$1.infer<typeof ProcessorStepFinishInputSchema>;
|
|
1173
|
+
declare const ProcessorTextStartInputSchema: 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
|
+
text: z$1.ZodString;
|
|
1182
|
+
partId: z$1.ZodString;
|
|
1183
|
+
}, z$1.core.$strip>;
|
|
1184
|
+
type ProcessorTextStartInput = z$1.infer<typeof ProcessorTextStartInputSchema>;
|
|
1185
|
+
declare const ProcessorTextDeltaInputSchema: z$1.ZodObject<{
|
|
1186
|
+
streamId: z$1.ZodString;
|
|
1187
|
+
step: z$1.ZodNumber;
|
|
1188
|
+
agent: z$1.ZodString;
|
|
1189
|
+
sessionId: z$1.ZodString;
|
|
1190
|
+
messageId: z$1.ZodString;
|
|
1191
|
+
userMessageId: z$1.ZodString;
|
|
1192
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1193
|
+
delta: z$1.ZodString;
|
|
1194
|
+
text: z$1.ZodString;
|
|
1195
|
+
partId: z$1.ZodString;
|
|
1196
|
+
}, z$1.core.$strip>;
|
|
1197
|
+
type ProcessorTextDeltaInput = z$1.infer<typeof ProcessorTextDeltaInputSchema>;
|
|
1198
|
+
declare const ProcessorTextEndInputSchema: 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
|
+
text: z$1.ZodString;
|
|
1207
|
+
partId: z$1.ZodString;
|
|
1208
|
+
}, z$1.core.$strip>;
|
|
1209
|
+
type ProcessorTextEndInput = z$1.infer<typeof ProcessorTextEndInputSchema>;
|
|
1210
|
+
declare const ProcessorErrorInputSchema: z$1.ZodObject<{
|
|
1211
|
+
streamId: z$1.ZodString;
|
|
1212
|
+
step: z$1.ZodNumber;
|
|
1213
|
+
agent: z$1.ZodString;
|
|
1214
|
+
sessionId: z$1.ZodString;
|
|
1215
|
+
messageId: z$1.ZodString;
|
|
1216
|
+
userMessageId: z$1.ZodString;
|
|
1217
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1218
|
+
error: z$1.ZodString;
|
|
1219
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1220
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1221
|
+
}, z$1.core.$strip>;
|
|
1222
|
+
type ProcessorErrorInput = z$1.infer<typeof ProcessorErrorInputSchema>;
|
|
1223
|
+
declare const ProcessorFinishInputSchema: z$1.ZodObject<{
|
|
1224
|
+
streamId: z$1.ZodString;
|
|
1225
|
+
step: z$1.ZodNumber;
|
|
1226
|
+
agent: z$1.ZodString;
|
|
1227
|
+
sessionId: z$1.ZodString;
|
|
1228
|
+
messageId: z$1.ZodString;
|
|
1229
|
+
userMessageId: z$1.ZodString;
|
|
1230
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1231
|
+
result: z$1.ZodEnum<{
|
|
1232
|
+
stop: "stop";
|
|
1233
|
+
continue: "continue";
|
|
1234
|
+
compact: "compact";
|
|
1235
|
+
}>;
|
|
1236
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1237
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1238
|
+
}, z$1.core.$strip>;
|
|
1239
|
+
type ProcessorFinishInput = z$1.infer<typeof ProcessorFinishInputSchema>;
|
|
1065
1240
|
declare const EventInputSchemas: {
|
|
1066
1241
|
readonly "session.start": z$1.ZodObject<{
|
|
1067
1242
|
sessionId: z$1.ZodString;
|
|
@@ -1103,49 +1278,6 @@ declare const EventInputSchemas: {
|
|
|
1103
1278
|
previousLength: z$1.ZodNumber;
|
|
1104
1279
|
newLength: z$1.ZodNumber;
|
|
1105
1280
|
}, z$1.core.$strip>;
|
|
1106
|
-
readonly "step.start": z$1.ZodObject<{
|
|
1107
|
-
sessionId: z$1.ZodString;
|
|
1108
|
-
messageId: z$1.ZodString;
|
|
1109
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1110
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1111
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1112
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1113
|
-
}, z$1.core.$strip>;
|
|
1114
|
-
readonly "step.finish": z$1.ZodObject<{
|
|
1115
|
-
sessionId: z$1.ZodString;
|
|
1116
|
-
messageId: z$1.ZodString;
|
|
1117
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1118
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1119
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1120
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1121
|
-
finishReason: z$1.ZodEnum<{
|
|
1122
|
-
max_tokens: "max_tokens";
|
|
1123
|
-
stop: "stop";
|
|
1124
|
-
end_turn: "end_turn";
|
|
1125
|
-
stop_sequence: "stop_sequence";
|
|
1126
|
-
}>;
|
|
1127
|
-
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1128
|
-
input: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1129
|
-
output: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1130
|
-
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1131
|
-
}, z$1.core.$strip>>;
|
|
1132
|
-
}, z$1.core.$strip>;
|
|
1133
|
-
readonly "step.stop": z$1.ZodObject<{
|
|
1134
|
-
sessionId: z$1.ZodString;
|
|
1135
|
-
reason: z$1.ZodString;
|
|
1136
|
-
}, z$1.core.$strip>;
|
|
1137
|
-
readonly "step.stop.failure": z$1.ZodObject<{
|
|
1138
|
-
sessionId: z$1.ZodString;
|
|
1139
|
-
error: z$1.ZodString;
|
|
1140
|
-
errorType: z$1.ZodEnum<{
|
|
1141
|
-
timeout: "timeout";
|
|
1142
|
-
rate_limit: "rate_limit";
|
|
1143
|
-
auth_error: "auth_error";
|
|
1144
|
-
network_error: "network_error";
|
|
1145
|
-
invalid_request: "invalid_request";
|
|
1146
|
-
server_error: "server_error";
|
|
1147
|
-
}>;
|
|
1148
|
-
}, z$1.core.$strip>;
|
|
1149
1281
|
readonly "message.receive": z$1.ZodObject<{
|
|
1150
1282
|
sessionId: z$1.ZodString;
|
|
1151
1283
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1349,12 +1481,6 @@ declare const EventInputSchemas: {
|
|
|
1349
1481
|
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1350
1482
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1351
1483
|
}, z$1.core.$strip>;
|
|
1352
|
-
readonly "text.complete": z$1.ZodObject<{
|
|
1353
|
-
sessionId: z$1.ZodString;
|
|
1354
|
-
messageId: z$1.ZodString;
|
|
1355
|
-
partId: z$1.ZodString;
|
|
1356
|
-
text: z$1.ZodString;
|
|
1357
|
-
}, z$1.core.$strip>;
|
|
1358
1484
|
readonly "context.build.before": z$1.ZodObject<{
|
|
1359
1485
|
sessionId: z$1.ZodString;
|
|
1360
1486
|
mode: z$1.ZodEnum<{
|
|
@@ -1595,65 +1721,258 @@ declare const EventInputSchemas: {
|
|
|
1595
1721
|
continue: "continue";
|
|
1596
1722
|
}>;
|
|
1597
1723
|
}, z$1.core.$strip>;
|
|
1598
|
-
readonly "
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
hints: z$1.ZodArray<z$1.ZodString>;
|
|
1607
|
-
origin: z$1.ZodObject<{
|
|
1608
|
-
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1609
|
-
tool: "tool";
|
|
1610
|
-
scheduler: "scheduler";
|
|
1611
|
-
human: "human";
|
|
1612
|
-
namespace: "namespace";
|
|
1613
|
-
}>>;
|
|
1614
|
-
timestamp: z$1.ZodNumber;
|
|
1615
|
-
}, z$1.core.$strip>;
|
|
1724
|
+
readonly "processor.start": z$1.ZodObject<{
|
|
1725
|
+
streamId: z$1.ZodString;
|
|
1726
|
+
step: z$1.ZodNumber;
|
|
1727
|
+
agent: z$1.ZodString;
|
|
1728
|
+
sessionId: z$1.ZodString;
|
|
1729
|
+
messageId: z$1.ZodString;
|
|
1730
|
+
userMessageId: z$1.ZodString;
|
|
1731
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1616
1732
|
}, z$1.core.$strip>;
|
|
1617
|
-
readonly "
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1733
|
+
readonly "processor.step.start": z$1.ZodObject<{
|
|
1734
|
+
streamId: z$1.ZodString;
|
|
1735
|
+
step: z$1.ZodNumber;
|
|
1736
|
+
agent: z$1.ZodString;
|
|
1737
|
+
sessionId: z$1.ZodString;
|
|
1738
|
+
messageId: z$1.ZodString;
|
|
1739
|
+
userMessageId: z$1.ZodString;
|
|
1740
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1741
|
+
partId: z$1.ZodString;
|
|
1626
1742
|
}, z$1.core.$strip>;
|
|
1627
|
-
readonly "
|
|
1628
|
-
|
|
1743
|
+
readonly "processor.reasoning.start": 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
|
+
text: z$1.ZodString;
|
|
1753
|
+
partId: z$1.ZodString;
|
|
1629
1754
|
}, z$1.core.$strip>;
|
|
1630
|
-
readonly "
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1755
|
+
readonly "processor.reasoning.delta": z$1.ZodObject<{
|
|
1756
|
+
streamId: z$1.ZodString;
|
|
1757
|
+
step: z$1.ZodNumber;
|
|
1758
|
+
agent: z$1.ZodString;
|
|
1759
|
+
sessionId: z$1.ZodString;
|
|
1760
|
+
messageId: z$1.ZodString;
|
|
1761
|
+
userMessageId: z$1.ZodString;
|
|
1762
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1763
|
+
reasoningId: z$1.ZodString;
|
|
1764
|
+
delta: z$1.ZodString;
|
|
1765
|
+
text: z$1.ZodString;
|
|
1766
|
+
partId: z$1.ZodString;
|
|
1639
1767
|
}, z$1.core.$strip>;
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1768
|
+
readonly "processor.reasoning.end": 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
|
+
reasoningId: z$1.ZodString;
|
|
1777
|
+
text: z$1.ZodString;
|
|
1778
|
+
partId: z$1.ZodString;
|
|
1779
|
+
}, z$1.core.$strip>;
|
|
1780
|
+
readonly "processor.tool.input.start": 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
|
+
partId: z$1.ZodString;
|
|
1791
|
+
}, z$1.core.$strip>;
|
|
1792
|
+
readonly "processor.tool.call": z$1.ZodObject<{
|
|
1793
|
+
streamId: z$1.ZodString;
|
|
1794
|
+
step: z$1.ZodNumber;
|
|
1795
|
+
agent: z$1.ZodString;
|
|
1796
|
+
sessionId: z$1.ZodString;
|
|
1797
|
+
messageId: z$1.ZodString;
|
|
1798
|
+
userMessageId: z$1.ZodString;
|
|
1799
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1800
|
+
callId: z$1.ZodString;
|
|
1801
|
+
tool: z$1.ZodString;
|
|
1802
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1803
|
+
partId: z$1.ZodString;
|
|
1804
|
+
}, z$1.core.$strip>;
|
|
1805
|
+
readonly "processor.tool.result": z$1.ZodObject<{
|
|
1806
|
+
streamId: z$1.ZodString;
|
|
1807
|
+
step: z$1.ZodNumber;
|
|
1808
|
+
agent: z$1.ZodString;
|
|
1809
|
+
sessionId: z$1.ZodString;
|
|
1810
|
+
messageId: z$1.ZodString;
|
|
1811
|
+
userMessageId: z$1.ZodString;
|
|
1812
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1813
|
+
callId: z$1.ZodString;
|
|
1814
|
+
tool: z$1.ZodString;
|
|
1815
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1816
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1817
|
+
output: z$1.ZodUnknown;
|
|
1818
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1819
|
+
durationMs: z$1.ZodNumber;
|
|
1820
|
+
partId: z$1.ZodString;
|
|
1821
|
+
}, z$1.core.$strip>;
|
|
1822
|
+
readonly "processor.tool.error": z$1.ZodObject<{
|
|
1823
|
+
streamId: z$1.ZodString;
|
|
1824
|
+
step: z$1.ZodNumber;
|
|
1825
|
+
agent: z$1.ZodString;
|
|
1826
|
+
sessionId: z$1.ZodString;
|
|
1827
|
+
messageId: z$1.ZodString;
|
|
1828
|
+
userMessageId: z$1.ZodString;
|
|
1829
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1830
|
+
callId: z$1.ZodString;
|
|
1831
|
+
tool: z$1.ZodString;
|
|
1832
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1833
|
+
error: z$1.ZodString;
|
|
1834
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1835
|
+
durationMs: z$1.ZodNumber;
|
|
1836
|
+
partId: z$1.ZodString;
|
|
1837
|
+
}, z$1.core.$strip>;
|
|
1838
|
+
readonly "processor.step.finish": z$1.ZodObject<{
|
|
1839
|
+
streamId: z$1.ZodString;
|
|
1840
|
+
step: z$1.ZodNumber;
|
|
1841
|
+
agent: z$1.ZodString;
|
|
1842
|
+
sessionId: z$1.ZodString;
|
|
1843
|
+
messageId: z$1.ZodString;
|
|
1844
|
+
userMessageId: z$1.ZodString;
|
|
1845
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1846
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1847
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1848
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1849
|
+
input: z$1.ZodNumber;
|
|
1850
|
+
output: z$1.ZodNumber;
|
|
1851
|
+
reasoning: z$1.ZodNumber;
|
|
1852
|
+
cache: z$1.ZodObject<{
|
|
1853
|
+
read: z$1.ZodNumber;
|
|
1854
|
+
write: z$1.ZodNumber;
|
|
1855
|
+
}, z$1.core.$strip>;
|
|
1856
|
+
}, z$1.core.$strip>>;
|
|
1857
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1858
|
+
partId: z$1.ZodString;
|
|
1859
|
+
}, z$1.core.$strip>;
|
|
1860
|
+
readonly "processor.text.start": z$1.ZodObject<{
|
|
1861
|
+
streamId: z$1.ZodString;
|
|
1862
|
+
step: z$1.ZodNumber;
|
|
1863
|
+
agent: z$1.ZodString;
|
|
1864
|
+
sessionId: z$1.ZodString;
|
|
1865
|
+
messageId: z$1.ZodString;
|
|
1866
|
+
userMessageId: z$1.ZodString;
|
|
1867
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1868
|
+
text: z$1.ZodString;
|
|
1869
|
+
partId: z$1.ZodString;
|
|
1870
|
+
}, z$1.core.$strip>;
|
|
1871
|
+
readonly "processor.text.delta": 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
|
+
delta: z$1.ZodString;
|
|
1880
|
+
text: z$1.ZodString;
|
|
1881
|
+
partId: z$1.ZodString;
|
|
1882
|
+
}, z$1.core.$strip>;
|
|
1883
|
+
readonly "processor.text.end": z$1.ZodObject<{
|
|
1884
|
+
streamId: z$1.ZodString;
|
|
1885
|
+
step: z$1.ZodNumber;
|
|
1886
|
+
agent: z$1.ZodString;
|
|
1887
|
+
sessionId: z$1.ZodString;
|
|
1888
|
+
messageId: z$1.ZodString;
|
|
1889
|
+
userMessageId: z$1.ZodString;
|
|
1890
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1891
|
+
text: z$1.ZodString;
|
|
1892
|
+
partId: z$1.ZodString;
|
|
1893
|
+
}, z$1.core.$strip>;
|
|
1894
|
+
readonly "processor.error": 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
|
+
error: z$1.ZodString;
|
|
1903
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
1904
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1905
|
+
}, z$1.core.$strip>;
|
|
1906
|
+
readonly "processor.finish": z$1.ZodObject<{
|
|
1907
|
+
streamId: z$1.ZodString;
|
|
1908
|
+
step: z$1.ZodNumber;
|
|
1909
|
+
agent: z$1.ZodString;
|
|
1910
|
+
sessionId: z$1.ZodString;
|
|
1911
|
+
messageId: z$1.ZodString;
|
|
1912
|
+
userMessageId: z$1.ZodString;
|
|
1913
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1914
|
+
result: z$1.ZodEnum<{
|
|
1915
|
+
stop: "stop";
|
|
1916
|
+
continue: "continue";
|
|
1917
|
+
compact: "compact";
|
|
1918
|
+
}>;
|
|
1919
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1920
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1921
|
+
}, z$1.core.$strip>;
|
|
1922
|
+
readonly "creation.request": z$1.ZodObject<{
|
|
1923
|
+
requestId: z$1.ZodString;
|
|
1924
|
+
kind: z$1.ZodEnum<{
|
|
1925
|
+
"create-skill": "create-skill";
|
|
1926
|
+
"create-workflow": "create-workflow";
|
|
1927
|
+
"create-bundle": "create-bundle";
|
|
1928
|
+
}>;
|
|
1929
|
+
requirement: z$1.ZodString;
|
|
1930
|
+
hints: z$1.ZodArray<z$1.ZodString>;
|
|
1931
|
+
origin: z$1.ZodObject<{
|
|
1932
|
+
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1933
|
+
tool: "tool";
|
|
1934
|
+
scheduler: "scheduler";
|
|
1935
|
+
human: "human";
|
|
1936
|
+
namespace: "namespace";
|
|
1937
|
+
}>>;
|
|
1938
|
+
timestamp: z$1.ZodNumber;
|
|
1939
|
+
}, z$1.core.$strip>;
|
|
1940
|
+
}, z$1.core.$strip>;
|
|
1941
|
+
readonly "creation.complete": z$1.ZodObject<{
|
|
1942
|
+
requestId: z$1.ZodString;
|
|
1943
|
+
status: z$1.ZodEnum<{
|
|
1944
|
+
success: "success";
|
|
1945
|
+
failed: "failed";
|
|
1946
|
+
}>;
|
|
1947
|
+
specId: z$1.ZodOptional<z$1.ZodString>;
|
|
1948
|
+
durationMs: z$1.ZodNumber;
|
|
1949
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1950
|
+
}, z$1.core.$strip>;
|
|
1951
|
+
readonly "evolution.request": z$1.ZodObject<{
|
|
1952
|
+
dryRun: z$1.ZodBoolean;
|
|
1953
|
+
}, z$1.core.$strip>;
|
|
1954
|
+
readonly "evolution.complete": z$1.ZodObject<{
|
|
1955
|
+
status: z$1.ZodEnum<{
|
|
1956
|
+
success: "success";
|
|
1957
|
+
failed: "failed";
|
|
1958
|
+
"awaiting-approval": "awaiting-approval";
|
|
1959
|
+
}>;
|
|
1960
|
+
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1961
|
+
awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1962
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1963
|
+
}, z$1.core.$strip>;
|
|
1964
|
+
};
|
|
1965
|
+
declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
1966
|
+
sessionId: z$1.ZodString;
|
|
1967
|
+
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1968
|
+
agent: "agent";
|
|
1969
|
+
system: "system";
|
|
1970
|
+
user: "user";
|
|
1971
|
+
scheduled: "scheduled";
|
|
1972
|
+
}>>;
|
|
1973
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1650
1974
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1651
1975
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1652
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1653
|
-
gatewayID: z$1.ZodString;
|
|
1654
|
-
messageId: z$1.ZodString;
|
|
1655
|
-
message: z$1.ZodUnknown;
|
|
1656
|
-
target: z$1.ZodOptional<z$1.ZodString>;
|
|
1657
1976
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1658
1977
|
sessionId: z$1.ZodString;
|
|
1659
1978
|
reason: z$1.ZodEnum<{
|
|
@@ -1665,11 +1984,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1665
1984
|
cancelled: "cancelled";
|
|
1666
1985
|
}>;
|
|
1667
1986
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1668
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1669
|
-
sessionId: z$1.ZodString;
|
|
1670
|
-
summary: z$1.ZodString;
|
|
1671
|
-
previousLength: z$1.ZodNumber;
|
|
1672
|
-
newLength: z$1.ZodNumber;
|
|
1673
1987
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1674
1988
|
sessionId: z$1.ZodString;
|
|
1675
1989
|
trigger: z$1.ZodEnum<{
|
|
@@ -1681,43 +1995,9 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1681
1995
|
threshold: z$1.ZodNumber;
|
|
1682
1996
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1683
1997
|
sessionId: z$1.ZodString;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1688
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1689
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1690
|
-
sessionId: z$1.ZodString;
|
|
1691
|
-
messageId: z$1.ZodString;
|
|
1692
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1693
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1694
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1695
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1696
|
-
finishReason: z$1.ZodEnum<{
|
|
1697
|
-
max_tokens: "max_tokens";
|
|
1698
|
-
stop: "stop";
|
|
1699
|
-
end_turn: "end_turn";
|
|
1700
|
-
stop_sequence: "stop_sequence";
|
|
1701
|
-
}>;
|
|
1702
|
-
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
1703
|
-
input: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1704
|
-
output: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1705
|
-
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1706
|
-
}, z$1.core.$strip>>;
|
|
1707
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1708
|
-
sessionId: z$1.ZodString;
|
|
1709
|
-
reason: z$1.ZodString;
|
|
1710
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1711
|
-
sessionId: z$1.ZodString;
|
|
1712
|
-
error: z$1.ZodString;
|
|
1713
|
-
errorType: z$1.ZodEnum<{
|
|
1714
|
-
timeout: "timeout";
|
|
1715
|
-
rate_limit: "rate_limit";
|
|
1716
|
-
auth_error: "auth_error";
|
|
1717
|
-
network_error: "network_error";
|
|
1718
|
-
invalid_request: "invalid_request";
|
|
1719
|
-
server_error: "server_error";
|
|
1720
|
-
}>;
|
|
1998
|
+
summary: z$1.ZodString;
|
|
1999
|
+
previousLength: z$1.ZodNumber;
|
|
2000
|
+
newLength: z$1.ZodNumber;
|
|
1721
2001
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1722
2002
|
sessionId: z$1.ZodString;
|
|
1723
2003
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1909,9 +2189,48 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1909
2189
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1910
2190
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1911
2191
|
sessionId: z$1.ZodString;
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
2192
|
+
mode: z$1.ZodEnum<{
|
|
2193
|
+
agent: "agent";
|
|
2194
|
+
chat: "chat";
|
|
2195
|
+
query: "query";
|
|
2196
|
+
}>;
|
|
2197
|
+
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
2198
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2199
|
+
sessionId: z$1.ZodString;
|
|
2200
|
+
context: z$1.ZodObject<{
|
|
2201
|
+
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
2202
|
+
id: z$1.ZodString;
|
|
2203
|
+
role: z$1.ZodEnum<{
|
|
2204
|
+
system: "system";
|
|
2205
|
+
user: "user";
|
|
2206
|
+
assistant: "assistant";
|
|
2207
|
+
tool: "tool";
|
|
2208
|
+
}>;
|
|
2209
|
+
content: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2210
|
+
type: z$1.ZodLiteral<"text">;
|
|
2211
|
+
text: z$1.ZodString;
|
|
2212
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2213
|
+
type: z$1.ZodLiteral<"image">;
|
|
2214
|
+
source: z$1.ZodObject<{
|
|
2215
|
+
type: z$1.ZodEnum<{
|
|
2216
|
+
url: "url";
|
|
2217
|
+
base64: "base64";
|
|
2218
|
+
}>;
|
|
2219
|
+
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2220
|
+
data: z$1.ZodString;
|
|
2221
|
+
}, z$1.core.$strip>;
|
|
2222
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2223
|
+
type: z$1.ZodLiteral<"file">;
|
|
2224
|
+
url: z$1.ZodString;
|
|
2225
|
+
filename: z$1.ZodString;
|
|
2226
|
+
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2227
|
+
}, z$1.core.$strip>], "type">>]>;
|
|
2228
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2229
|
+
tool_call_id: z$1.ZodOptional<z$1.ZodString>;
|
|
2230
|
+
}, z$1.core.$strip>>;
|
|
2231
|
+
system: z$1.ZodArray<z$1.ZodString>;
|
|
2232
|
+
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2233
|
+
}, z$1.core.$strip>;
|
|
1915
2234
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1916
2235
|
gatewayID: z$1.ZodString;
|
|
1917
2236
|
messageId: z$1.ZodString;
|
|
@@ -1925,6 +2244,29 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1925
2244
|
gatewayID: z$1.ZodString;
|
|
1926
2245
|
messageId: z$1.ZodString;
|
|
1927
2246
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
2247
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2248
|
+
gatewayID: z$1.ZodString;
|
|
2249
|
+
messageId: z$1.ZodString;
|
|
2250
|
+
message: z$1.ZodUnknown;
|
|
2251
|
+
target: z$1.ZodOptional<z$1.ZodString>;
|
|
2252
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2253
|
+
gatewayID: z$1.ZodString;
|
|
2254
|
+
messageId: z$1.ZodString;
|
|
2255
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
2256
|
+
channel: z$1.ZodObject<{
|
|
2257
|
+
platform: z$1.ZodString;
|
|
2258
|
+
channelId: z$1.ZodString;
|
|
2259
|
+
}, z$1.core.$strip>;
|
|
2260
|
+
timestamp: z$1.ZodNumber;
|
|
2261
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2262
|
+
gatewayID: z$1.ZodString;
|
|
2263
|
+
messageId: z$1.ZodString;
|
|
2264
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
2265
|
+
channel: z$1.ZodObject<{
|
|
2266
|
+
platform: z$1.ZodString;
|
|
2267
|
+
channelId: z$1.ZodString;
|
|
2268
|
+
}, z$1.core.$strip>;
|
|
2269
|
+
timestamp: z$1.ZodNumber;
|
|
1928
2270
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1929
2271
|
taskId: z$1.ZodString;
|
|
1930
2272
|
timestamp: z$1.ZodNumber;
|
|
@@ -1978,68 +2320,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1978
2320
|
success: z$1.ZodBoolean;
|
|
1979
2321
|
result: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1980
2322
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1981
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1982
|
-
sessionId: z$1.ZodString;
|
|
1983
|
-
mode: z$1.ZodEnum<{
|
|
1984
|
-
agent: "agent";
|
|
1985
|
-
chat: "chat";
|
|
1986
|
-
query: "query";
|
|
1987
|
-
}>;
|
|
1988
|
-
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
1989
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1990
|
-
sessionId: z$1.ZodString;
|
|
1991
|
-
context: z$1.ZodObject<{
|
|
1992
|
-
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1993
|
-
id: z$1.ZodString;
|
|
1994
|
-
role: z$1.ZodEnum<{
|
|
1995
|
-
system: "system";
|
|
1996
|
-
user: "user";
|
|
1997
|
-
assistant: "assistant";
|
|
1998
|
-
tool: "tool";
|
|
1999
|
-
}>;
|
|
2000
|
-
content: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2001
|
-
type: z$1.ZodLiteral<"text">;
|
|
2002
|
-
text: z$1.ZodString;
|
|
2003
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2004
|
-
type: z$1.ZodLiteral<"image">;
|
|
2005
|
-
source: z$1.ZodObject<{
|
|
2006
|
-
type: z$1.ZodEnum<{
|
|
2007
|
-
url: "url";
|
|
2008
|
-
base64: "base64";
|
|
2009
|
-
}>;
|
|
2010
|
-
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2011
|
-
data: z$1.ZodString;
|
|
2012
|
-
}, z$1.core.$strip>;
|
|
2013
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2014
|
-
type: z$1.ZodLiteral<"file">;
|
|
2015
|
-
url: z$1.ZodString;
|
|
2016
|
-
filename: z$1.ZodString;
|
|
2017
|
-
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2018
|
-
}, z$1.core.$strip>], "type">>]>;
|
|
2019
|
-
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2020
|
-
tool_call_id: z$1.ZodOptional<z$1.ZodString>;
|
|
2021
|
-
}, z$1.core.$strip>>;
|
|
2022
|
-
system: z$1.ZodArray<z$1.ZodString>;
|
|
2023
|
-
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2024
|
-
}, z$1.core.$strip>;
|
|
2025
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2026
|
-
gatewayID: z$1.ZodString;
|
|
2027
|
-
messageId: z$1.ZodString;
|
|
2028
|
-
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
2029
|
-
channel: z$1.ZodObject<{
|
|
2030
|
-
platform: z$1.ZodString;
|
|
2031
|
-
channelId: z$1.ZodString;
|
|
2032
|
-
}, z$1.core.$strip>;
|
|
2033
|
-
timestamp: z$1.ZodNumber;
|
|
2034
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2035
|
-
gatewayID: z$1.ZodString;
|
|
2036
|
-
messageId: z$1.ZodString;
|
|
2037
|
-
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
2038
|
-
channel: z$1.ZodObject<{
|
|
2039
|
-
platform: z$1.ZodString;
|
|
2040
|
-
channelId: z$1.ZodString;
|
|
2041
|
-
}, z$1.core.$strip>;
|
|
2042
|
-
timestamp: z$1.ZodNumber;
|
|
2043
2323
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2044
2324
|
taskId: z$1.ZodString;
|
|
2045
2325
|
taskName: z$1.ZodString;
|
|
@@ -2165,6 +2445,189 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
2165
2445
|
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2166
2446
|
awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2167
2447
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
2448
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2449
|
+
streamId: z$1.ZodString;
|
|
2450
|
+
step: z$1.ZodNumber;
|
|
2451
|
+
agent: z$1.ZodString;
|
|
2452
|
+
sessionId: z$1.ZodString;
|
|
2453
|
+
messageId: z$1.ZodString;
|
|
2454
|
+
userMessageId: z$1.ZodString;
|
|
2455
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2456
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2457
|
+
streamId: z$1.ZodString;
|
|
2458
|
+
step: z$1.ZodNumber;
|
|
2459
|
+
agent: z$1.ZodString;
|
|
2460
|
+
sessionId: z$1.ZodString;
|
|
2461
|
+
messageId: z$1.ZodString;
|
|
2462
|
+
userMessageId: z$1.ZodString;
|
|
2463
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2464
|
+
partId: z$1.ZodString;
|
|
2465
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2466
|
+
streamId: z$1.ZodString;
|
|
2467
|
+
step: z$1.ZodNumber;
|
|
2468
|
+
agent: z$1.ZodString;
|
|
2469
|
+
sessionId: z$1.ZodString;
|
|
2470
|
+
messageId: z$1.ZodString;
|
|
2471
|
+
userMessageId: z$1.ZodString;
|
|
2472
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2473
|
+
reasoningId: 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;
|
|
2480
|
+
sessionId: z$1.ZodString;
|
|
2481
|
+
messageId: z$1.ZodString;
|
|
2482
|
+
userMessageId: z$1.ZodString;
|
|
2483
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2484
|
+
reasoningId: z$1.ZodString;
|
|
2485
|
+
delta: z$1.ZodString;
|
|
2486
|
+
text: z$1.ZodString;
|
|
2487
|
+
partId: z$1.ZodString;
|
|
2488
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2489
|
+
streamId: z$1.ZodString;
|
|
2490
|
+
step: z$1.ZodNumber;
|
|
2491
|
+
agent: z$1.ZodString;
|
|
2492
|
+
sessionId: z$1.ZodString;
|
|
2493
|
+
messageId: z$1.ZodString;
|
|
2494
|
+
userMessageId: z$1.ZodString;
|
|
2495
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2496
|
+
reasoningId: z$1.ZodString;
|
|
2497
|
+
text: z$1.ZodString;
|
|
2498
|
+
partId: z$1.ZodString;
|
|
2499
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2500
|
+
streamId: z$1.ZodString;
|
|
2501
|
+
step: z$1.ZodNumber;
|
|
2502
|
+
agent: z$1.ZodString;
|
|
2503
|
+
sessionId: z$1.ZodString;
|
|
2504
|
+
messageId: z$1.ZodString;
|
|
2505
|
+
userMessageId: z$1.ZodString;
|
|
2506
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2507
|
+
callId: z$1.ZodString;
|
|
2508
|
+
tool: z$1.ZodString;
|
|
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
|
+
partId: z$1.ZodString;
|
|
2522
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2523
|
+
streamId: z$1.ZodString;
|
|
2524
|
+
step: z$1.ZodNumber;
|
|
2525
|
+
agent: z$1.ZodString;
|
|
2526
|
+
sessionId: z$1.ZodString;
|
|
2527
|
+
messageId: z$1.ZodString;
|
|
2528
|
+
userMessageId: z$1.ZodString;
|
|
2529
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2530
|
+
callId: z$1.ZodString;
|
|
2531
|
+
tool: z$1.ZodString;
|
|
2532
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2533
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
2534
|
+
output: z$1.ZodUnknown;
|
|
2535
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2536
|
+
durationMs: z$1.ZodNumber;
|
|
2537
|
+
partId: z$1.ZodString;
|
|
2538
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2539
|
+
streamId: z$1.ZodString;
|
|
2540
|
+
step: z$1.ZodNumber;
|
|
2541
|
+
agent: z$1.ZodString;
|
|
2542
|
+
sessionId: z$1.ZodString;
|
|
2543
|
+
messageId: z$1.ZodString;
|
|
2544
|
+
userMessageId: z$1.ZodString;
|
|
2545
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2546
|
+
callId: z$1.ZodString;
|
|
2547
|
+
tool: z$1.ZodString;
|
|
2548
|
+
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2549
|
+
error: z$1.ZodString;
|
|
2550
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
2551
|
+
durationMs: z$1.ZodNumber;
|
|
2552
|
+
partId: z$1.ZodString;
|
|
2553
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2554
|
+
streamId: z$1.ZodString;
|
|
2555
|
+
step: z$1.ZodNumber;
|
|
2556
|
+
agent: z$1.ZodString;
|
|
2557
|
+
sessionId: z$1.ZodString;
|
|
2558
|
+
messageId: z$1.ZodString;
|
|
2559
|
+
userMessageId: z$1.ZodString;
|
|
2560
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2561
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
2562
|
+
tokens: z$1.ZodOptional<z$1.ZodObject<{
|
|
2563
|
+
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2564
|
+
input: z$1.ZodNumber;
|
|
2565
|
+
output: z$1.ZodNumber;
|
|
2566
|
+
reasoning: z$1.ZodNumber;
|
|
2567
|
+
cache: z$1.ZodObject<{
|
|
2568
|
+
read: z$1.ZodNumber;
|
|
2569
|
+
write: z$1.ZodNumber;
|
|
2570
|
+
}, z$1.core.$strip>;
|
|
2571
|
+
}, z$1.core.$strip>>;
|
|
2572
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2573
|
+
partId: z$1.ZodString;
|
|
2574
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2575
|
+
streamId: z$1.ZodString;
|
|
2576
|
+
step: z$1.ZodNumber;
|
|
2577
|
+
agent: z$1.ZodString;
|
|
2578
|
+
sessionId: z$1.ZodString;
|
|
2579
|
+
messageId: z$1.ZodString;
|
|
2580
|
+
userMessageId: z$1.ZodString;
|
|
2581
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2582
|
+
text: z$1.ZodString;
|
|
2583
|
+
partId: z$1.ZodString;
|
|
2584
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2585
|
+
streamId: z$1.ZodString;
|
|
2586
|
+
step: z$1.ZodNumber;
|
|
2587
|
+
agent: z$1.ZodString;
|
|
2588
|
+
sessionId: z$1.ZodString;
|
|
2589
|
+
messageId: z$1.ZodString;
|
|
2590
|
+
userMessageId: z$1.ZodString;
|
|
2591
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2592
|
+
delta: z$1.ZodString;
|
|
2593
|
+
text: z$1.ZodString;
|
|
2594
|
+
partId: z$1.ZodString;
|
|
2595
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2596
|
+
streamId: z$1.ZodString;
|
|
2597
|
+
step: z$1.ZodNumber;
|
|
2598
|
+
agent: z$1.ZodString;
|
|
2599
|
+
sessionId: z$1.ZodString;
|
|
2600
|
+
messageId: z$1.ZodString;
|
|
2601
|
+
userMessageId: z$1.ZodString;
|
|
2602
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2603
|
+
text: z$1.ZodString;
|
|
2604
|
+
partId: z$1.ZodString;
|
|
2605
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2606
|
+
streamId: z$1.ZodString;
|
|
2607
|
+
step: z$1.ZodNumber;
|
|
2608
|
+
agent: z$1.ZodString;
|
|
2609
|
+
sessionId: z$1.ZodString;
|
|
2610
|
+
messageId: z$1.ZodString;
|
|
2611
|
+
userMessageId: z$1.ZodString;
|
|
2612
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2613
|
+
error: z$1.ZodString;
|
|
2614
|
+
errorName: z$1.ZodOptional<z$1.ZodString>;
|
|
2615
|
+
aborted: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2616
|
+
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
2617
|
+
streamId: z$1.ZodString;
|
|
2618
|
+
step: z$1.ZodNumber;
|
|
2619
|
+
agent: z$1.ZodString;
|
|
2620
|
+
sessionId: z$1.ZodString;
|
|
2621
|
+
messageId: z$1.ZodString;
|
|
2622
|
+
userMessageId: z$1.ZodString;
|
|
2623
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2624
|
+
result: z$1.ZodEnum<{
|
|
2625
|
+
stop: "stop";
|
|
2626
|
+
continue: "continue";
|
|
2627
|
+
compact: "compact";
|
|
2628
|
+
}>;
|
|
2629
|
+
cost: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2630
|
+
tokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2168
2631
|
}, z$1.core.$strip>;
|
|
2169
2632
|
declare function validateHookInput<T extends HookEvent>(event: T, input: unknown): unknown;
|
|
2170
2633
|
declare function safeValidateHookInput<T extends HookEvent>(event: T, input: unknown): {
|
|
@@ -2188,10 +2651,6 @@ declare const HookEvent: {
|
|
|
2188
2651
|
readonly SessionEnd: "session.end";
|
|
2189
2652
|
readonly SessionCompacting: "session.compacting";
|
|
2190
2653
|
readonly SessionCompact: "session.compact";
|
|
2191
|
-
readonly StepStart: "step.start";
|
|
2192
|
-
readonly StepFinish: "step.finish";
|
|
2193
|
-
readonly StepStop: "step.stop";
|
|
2194
|
-
readonly StepStopFailure: "step.stop.failure";
|
|
2195
2654
|
readonly MessageReceive: "message.receive";
|
|
2196
2655
|
readonly MessageTransform: "message.transform";
|
|
2197
2656
|
readonly SystemTransform: "system.transform";
|
|
@@ -2206,7 +2665,6 @@ declare const HookEvent: {
|
|
|
2206
2665
|
readonly LlmParams: "llm.params";
|
|
2207
2666
|
readonly LlmHeaders: "llm.headers";
|
|
2208
2667
|
readonly ShellEnv: "shell.env";
|
|
2209
|
-
readonly TextComplete: "text.complete";
|
|
2210
2668
|
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
2211
2669
|
readonly GatewayMessageProcess: "gateway.message.process";
|
|
2212
2670
|
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
@@ -2227,13 +2685,28 @@ declare const HookEvent: {
|
|
|
2227
2685
|
readonly TaskComplete: "task.complete";
|
|
2228
2686
|
readonly LoopStart: "loop.start";
|
|
2229
2687
|
readonly LoopEnd: "loop.end";
|
|
2688
|
+
readonly ProcessorStart: "processor.start";
|
|
2689
|
+
readonly ProcessorStepStart: "processor.step.start";
|
|
2690
|
+
readonly ProcessorReasoningStart: "processor.reasoning.start";
|
|
2691
|
+
readonly ProcessorReasoningDelta: "processor.reasoning.delta";
|
|
2692
|
+
readonly ProcessorReasoningEnd: "processor.reasoning.end";
|
|
2693
|
+
readonly ProcessorToolInputStart: "processor.tool.input.start";
|
|
2694
|
+
readonly ProcessorToolCall: "processor.tool.call";
|
|
2695
|
+
readonly ProcessorToolResult: "processor.tool.result";
|
|
2696
|
+
readonly ProcessorToolError: "processor.tool.error";
|
|
2697
|
+
readonly ProcessorStepFinish: "processor.step.finish";
|
|
2698
|
+
readonly ProcessorTextStart: "processor.text.start";
|
|
2699
|
+
readonly ProcessorTextDelta: "processor.text.delta";
|
|
2700
|
+
readonly ProcessorTextEnd: "processor.text.end";
|
|
2701
|
+
readonly ProcessorError: "processor.error";
|
|
2702
|
+
readonly ProcessorFinish: "processor.finish";
|
|
2230
2703
|
readonly CreationRequest: "creation.request";
|
|
2231
2704
|
readonly CreationComplete: "creation.complete";
|
|
2232
2705
|
readonly EvolutionRequest: "evolution.request";
|
|
2233
2706
|
readonly EvolutionComplete: "evolution.complete";
|
|
2234
2707
|
};
|
|
2235
2708
|
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
2236
|
-
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "
|
|
2709
|
+
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")[];
|
|
2237
2710
|
interface HookContext {
|
|
2238
2711
|
sessionId?: string;
|
|
2239
2712
|
agent?: string;
|
|
@@ -2320,134 +2793,18 @@ type HookInitResult = {
|
|
|
2320
2793
|
}>;
|
|
2321
2794
|
};
|
|
2322
2795
|
|
|
2323
|
-
declare const CommandSourceSchema: z$1.ZodEnum<{
|
|
2324
|
-
command: "command";
|
|
2325
|
-
mcp: "mcp";
|
|
2326
|
-
skill: "skill";
|
|
2327
|
-
}>;
|
|
2328
|
-
type CommandSource = z$1.infer<typeof CommandSourceSchema>;
|
|
2329
|
-
declare const CommandArgumentsSchema: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>;
|
|
2330
|
-
type CommandArguments = z$1.infer<typeof CommandArgumentsSchema>;
|
|
2331
|
-
declare const CommandPromptPartSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2332
|
-
type: z$1.ZodLiteral<"text">;
|
|
2333
|
-
text: z$1.ZodString;
|
|
2334
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2335
|
-
type: z$1.ZodLiteral<"image">;
|
|
2336
|
-
source: z$1.ZodObject<{
|
|
2337
|
-
type: z$1.ZodEnum<{
|
|
2338
|
-
url: "url";
|
|
2339
|
-
base64: "base64";
|
|
2340
|
-
}>;
|
|
2341
|
-
mime: z$1.ZodString;
|
|
2342
|
-
data: z$1.ZodString;
|
|
2343
|
-
}, z$1.core.$strip>;
|
|
2344
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2345
|
-
type: z$1.ZodLiteral<"file">;
|
|
2346
|
-
url: z$1.ZodString;
|
|
2347
|
-
filename: z$1.ZodString;
|
|
2348
|
-
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2349
|
-
}, z$1.core.$strip>], "type">;
|
|
2350
|
-
type CommandPromptPart = z$1.infer<typeof CommandPromptPartSchema>;
|
|
2351
|
-
declare const CommandMetadataSchema: z$1.ZodObject<{
|
|
2352
|
-
name: z$1.ZodString;
|
|
2353
|
-
description: z$1.ZodString;
|
|
2354
|
-
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2355
|
-
general: "general";
|
|
2356
|
-
coder: "coder";
|
|
2357
|
-
all: "all";
|
|
2358
|
-
}>>;
|
|
2359
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2360
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2361
|
-
hints: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2362
|
-
commandType: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2363
|
-
prompt: "prompt";
|
|
2364
|
-
local: "local";
|
|
2365
|
-
}>>;
|
|
2366
|
-
hidden: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2367
|
-
}, z$1.core.$strip>;
|
|
2368
|
-
type CommandMetadata = z$1.infer<typeof CommandMetadataSchema>;
|
|
2369
|
-
declare const CommandExecutionContextSchema: z$1.ZodObject<{
|
|
2370
|
-
sessionId: z$1.ZodString;
|
|
2371
|
-
directory: z$1.ZodString;
|
|
2372
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2373
|
-
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2374
|
-
arguments: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>;
|
|
2375
|
-
}, z$1.core.$strip>;
|
|
2376
|
-
type CommandExecutionContext = z$1.infer<typeof CommandExecutionContextSchema>;
|
|
2377
|
-
declare const CommandExecuteResultMetadataSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2378
|
-
type CommandExecuteResultMetadata = z$1.infer<typeof CommandExecuteResultMetadataSchema>;
|
|
2379
|
-
declare const CommandExecuteResultSchema: z$1.ZodObject<{
|
|
2380
|
-
title: z$1.ZodString;
|
|
2381
|
-
metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2382
|
-
output: z$1.ZodString;
|
|
2383
|
-
parts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2384
|
-
type: z$1.ZodLiteral<"text">;
|
|
2385
|
-
text: z$1.ZodString;
|
|
2386
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2387
|
-
type: z$1.ZodLiteral<"image">;
|
|
2388
|
-
source: z$1.ZodObject<{
|
|
2389
|
-
type: z$1.ZodEnum<{
|
|
2390
|
-
url: "url";
|
|
2391
|
-
base64: "base64";
|
|
2392
|
-
}>;
|
|
2393
|
-
mime: z$1.ZodString;
|
|
2394
|
-
data: z$1.ZodString;
|
|
2395
|
-
}, z$1.core.$strip>;
|
|
2396
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2397
|
-
type: z$1.ZodLiteral<"file">;
|
|
2398
|
-
url: z$1.ZodString;
|
|
2399
|
-
filename: z$1.ZodString;
|
|
2400
|
-
mime: z$1.ZodOptional<z$1.ZodString>;
|
|
2401
|
-
}, z$1.core.$strip>], "type">>>;
|
|
2402
|
-
success: z$1.ZodBoolean;
|
|
2403
|
-
error: z$1.ZodOptional<z$1.ZodString>;
|
|
2404
|
-
}, z$1.core.$strip>;
|
|
2405
|
-
type CommandExecuteResult = z$1.infer<typeof CommandExecuteResultSchema>;
|
|
2406
|
-
declare const CommandInitContextSchema: z$1.ZodObject<{
|
|
2407
|
-
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
2408
|
-
name: z$1.ZodString;
|
|
2409
|
-
model: z$1.ZodOptional<z$1.ZodString>;
|
|
2410
|
-
}, z$1.core.$strip>>;
|
|
2411
|
-
}, z$1.core.$strip>;
|
|
2412
|
-
type CommandInitContext = z$1.infer<typeof CommandInitContextSchema>;
|
|
2413
|
-
declare const CommandInitResultSchema: z$1.ZodObject<{
|
|
2414
|
-
isEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2415
|
-
}, z$1.core.$strip>;
|
|
2416
|
-
type CommandInitResult = z$1.infer<typeof CommandInitResultSchema>;
|
|
2417
|
-
interface CommandDefinition extends Command {
|
|
2418
|
-
name: string;
|
|
2419
|
-
description?: string;
|
|
2420
|
-
source?: CommandSource;
|
|
2421
|
-
commandType?: 'prompt' | 'local';
|
|
2422
|
-
hints?: string[];
|
|
2423
|
-
agent?: string;
|
|
2424
|
-
template?: string;
|
|
2425
|
-
model?: string;
|
|
2426
|
-
subtask?: boolean;
|
|
2427
|
-
hidden?: boolean;
|
|
2428
|
-
scope?: 'general' | 'coder' | 'all';
|
|
2429
|
-
execute: (args: CommandArguments, context: CommandExecutionContext) => Promise<CommandExecuteResult>;
|
|
2430
|
-
isEnabled?: () => boolean | Promise<boolean>;
|
|
2431
|
-
init?: (context?: CommandInitContext) => Promise<CommandInitResult>;
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
2796
|
declare const AgentModeSchema: z$1.ZodEnum<{
|
|
2435
2797
|
all: "all";
|
|
2436
2798
|
subagent: "subagent";
|
|
2437
2799
|
primary: "primary";
|
|
2438
2800
|
}>;
|
|
2439
|
-
type AgentMode =
|
|
2801
|
+
type AgentMode = AgentInfo['mode'];
|
|
2440
2802
|
declare const AgentScopeSchema: z$1.ZodEnum<{
|
|
2441
2803
|
general: "general";
|
|
2442
2804
|
coder: "coder";
|
|
2443
2805
|
all: "all";
|
|
2444
2806
|
}>;
|
|
2445
|
-
type AgentScope =
|
|
2446
|
-
declare const AgentModelSchema: z$1.ZodObject<{
|
|
2447
|
-
providerId: z$1.ZodString;
|
|
2448
|
-
modelId: z$1.ZodString;
|
|
2449
|
-
}, z$1.core.$strip>;
|
|
2450
|
-
type AgentModel = z$1.infer<typeof AgentModelSchema>;
|
|
2807
|
+
type AgentScope = AgentInfo['scope'];
|
|
2451
2808
|
declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
2452
2809
|
name: z$1.ZodString;
|
|
2453
2810
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2456,190 +2813,10 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2456
2813
|
subagent: "subagent";
|
|
2457
2814
|
primary: "primary";
|
|
2458
2815
|
}>>;
|
|
2816
|
+
native: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2459
2817
|
hidden: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2460
|
-
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2461
|
-
general: "general";
|
|
2462
|
-
coder: "coder";
|
|
2463
|
-
all: "all";
|
|
2464
|
-
}>>;
|
|
2465
|
-
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2466
|
-
providerId: z$1.ZodString;
|
|
2467
|
-
modelId: z$1.ZodString;
|
|
2468
|
-
}, z$1.core.$strip>>;
|
|
2469
|
-
variant: z$1.ZodOptional<z$1.ZodString>;
|
|
2470
|
-
temperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2471
2818
|
topP: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2472
|
-
|
|
2473
|
-
permission: z$1.ZodOptional<z$1.ZodObject<{
|
|
2474
|
-
read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2475
|
-
allow: "allow";
|
|
2476
|
-
deny: "deny";
|
|
2477
|
-
ask: "ask";
|
|
2478
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2479
|
-
allow: "allow";
|
|
2480
|
-
deny: "deny";
|
|
2481
|
-
ask: "ask";
|
|
2482
|
-
}>>]>>;
|
|
2483
|
-
edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2484
|
-
allow: "allow";
|
|
2485
|
-
deny: "deny";
|
|
2486
|
-
ask: "ask";
|
|
2487
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2488
|
-
allow: "allow";
|
|
2489
|
-
deny: "deny";
|
|
2490
|
-
ask: "ask";
|
|
2491
|
-
}>>]>>;
|
|
2492
|
-
write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2493
|
-
allow: "allow";
|
|
2494
|
-
deny: "deny";
|
|
2495
|
-
ask: "ask";
|
|
2496
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2497
|
-
allow: "allow";
|
|
2498
|
-
deny: "deny";
|
|
2499
|
-
ask: "ask";
|
|
2500
|
-
}>>]>>;
|
|
2501
|
-
glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2502
|
-
allow: "allow";
|
|
2503
|
-
deny: "deny";
|
|
2504
|
-
ask: "ask";
|
|
2505
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2506
|
-
allow: "allow";
|
|
2507
|
-
deny: "deny";
|
|
2508
|
-
ask: "ask";
|
|
2509
|
-
}>>]>>;
|
|
2510
|
-
grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2511
|
-
allow: "allow";
|
|
2512
|
-
deny: "deny";
|
|
2513
|
-
ask: "ask";
|
|
2514
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2515
|
-
allow: "allow";
|
|
2516
|
-
deny: "deny";
|
|
2517
|
-
ask: "ask";
|
|
2518
|
-
}>>]>>;
|
|
2519
|
-
list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2520
|
-
allow: "allow";
|
|
2521
|
-
deny: "deny";
|
|
2522
|
-
ask: "ask";
|
|
2523
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2524
|
-
allow: "allow";
|
|
2525
|
-
deny: "deny";
|
|
2526
|
-
ask: "ask";
|
|
2527
|
-
}>>]>>;
|
|
2528
|
-
bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2529
|
-
allow: "allow";
|
|
2530
|
-
deny: "deny";
|
|
2531
|
-
ask: "ask";
|
|
2532
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2533
|
-
allow: "allow";
|
|
2534
|
-
deny: "deny";
|
|
2535
|
-
ask: "ask";
|
|
2536
|
-
}>>]>>;
|
|
2537
|
-
webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2538
|
-
allow: "allow";
|
|
2539
|
-
deny: "deny";
|
|
2540
|
-
ask: "ask";
|
|
2541
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2542
|
-
allow: "allow";
|
|
2543
|
-
deny: "deny";
|
|
2544
|
-
ask: "ask";
|
|
2545
|
-
}>>]>>;
|
|
2546
|
-
websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2547
|
-
allow: "allow";
|
|
2548
|
-
deny: "deny";
|
|
2549
|
-
ask: "ask";
|
|
2550
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2551
|
-
allow: "allow";
|
|
2552
|
-
deny: "deny";
|
|
2553
|
-
ask: "ask";
|
|
2554
|
-
}>>]>>;
|
|
2555
|
-
task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2556
|
-
allow: "allow";
|
|
2557
|
-
deny: "deny";
|
|
2558
|
-
ask: "ask";
|
|
2559
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2560
|
-
allow: "allow";
|
|
2561
|
-
deny: "deny";
|
|
2562
|
-
ask: "ask";
|
|
2563
|
-
}>>]>>;
|
|
2564
|
-
todo: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2565
|
-
allow: "allow";
|
|
2566
|
-
deny: "deny";
|
|
2567
|
-
ask: "ask";
|
|
2568
|
-
}>>;
|
|
2569
|
-
question: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2570
|
-
allow: "allow";
|
|
2571
|
-
deny: "deny";
|
|
2572
|
-
ask: "ask";
|
|
2573
|
-
}>>;
|
|
2574
|
-
skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2575
|
-
allow: "allow";
|
|
2576
|
-
deny: "deny";
|
|
2577
|
-
ask: "ask";
|
|
2578
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2579
|
-
allow: "allow";
|
|
2580
|
-
deny: "deny";
|
|
2581
|
-
ask: "ask";
|
|
2582
|
-
}>>]>>;
|
|
2583
|
-
memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2584
|
-
allow: "allow";
|
|
2585
|
-
deny: "deny";
|
|
2586
|
-
ask: "ask";
|
|
2587
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2588
|
-
allow: "allow";
|
|
2589
|
-
deny: "deny";
|
|
2590
|
-
ask: "ask";
|
|
2591
|
-
}>>]>>;
|
|
2592
|
-
note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2593
|
-
allow: "allow";
|
|
2594
|
-
deny: "deny";
|
|
2595
|
-
ask: "ask";
|
|
2596
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2597
|
-
allow: "allow";
|
|
2598
|
-
deny: "deny";
|
|
2599
|
-
ask: "ask";
|
|
2600
|
-
}>>]>>;
|
|
2601
|
-
pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2602
|
-
allow: "allow";
|
|
2603
|
-
deny: "deny";
|
|
2604
|
-
ask: "ask";
|
|
2605
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2606
|
-
allow: "allow";
|
|
2607
|
-
deny: "deny";
|
|
2608
|
-
ask: "ask";
|
|
2609
|
-
}>>]>>;
|
|
2610
|
-
pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2611
|
-
allow: "allow";
|
|
2612
|
-
deny: "deny";
|
|
2613
|
-
ask: "ask";
|
|
2614
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2615
|
-
allow: "allow";
|
|
2616
|
-
deny: "deny";
|
|
2617
|
-
ask: "ask";
|
|
2618
|
-
}>>]>>;
|
|
2619
|
-
external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2620
|
-
allow: "allow";
|
|
2621
|
-
deny: "deny";
|
|
2622
|
-
ask: "ask";
|
|
2623
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2624
|
-
allow: "allow";
|
|
2625
|
-
deny: "deny";
|
|
2626
|
-
ask: "ask";
|
|
2627
|
-
}>>]>>;
|
|
2628
|
-
doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2629
|
-
allow: "allow";
|
|
2630
|
-
deny: "deny";
|
|
2631
|
-
ask: "ask";
|
|
2632
|
-
}>>;
|
|
2633
|
-
}, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2634
|
-
allow: "allow";
|
|
2635
|
-
deny: "deny";
|
|
2636
|
-
ask: "ask";
|
|
2637
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2638
|
-
allow: "allow";
|
|
2639
|
-
deny: "deny";
|
|
2640
|
-
ask: "ask";
|
|
2641
|
-
}>>]>>>>;
|
|
2642
|
-
steps: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2819
|
+
temperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2643
2820
|
color: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodEnum<{
|
|
2644
2821
|
success: "success";
|
|
2645
2822
|
error: "error";
|
|
@@ -2649,9 +2826,31 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2649
2826
|
accent: "accent";
|
|
2650
2827
|
warning: "warning";
|
|
2651
2828
|
}>]>>;
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2829
|
+
permission: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2830
|
+
permission: z$1.ZodString;
|
|
2831
|
+
pattern: z$1.ZodString;
|
|
2832
|
+
action: z$1.ZodEnum<{
|
|
2833
|
+
ask: "ask";
|
|
2834
|
+
allow: "allow";
|
|
2835
|
+
deny: "deny";
|
|
2836
|
+
}>;
|
|
2837
|
+
}, z$1.core.$strip>>>;
|
|
2838
|
+
scope: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2839
|
+
all: "all";
|
|
2840
|
+
general: "general";
|
|
2841
|
+
coder: "coder";
|
|
2842
|
+
}>>;
|
|
2843
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2844
|
+
modelId: z$1.ZodString;
|
|
2845
|
+
providerId: z$1.ZodString;
|
|
2846
|
+
}, z$1.core.$strip>>;
|
|
2847
|
+
variant: z$1.ZodOptional<z$1.ZodString>;
|
|
2848
|
+
prompt: z$1.ZodOptional<z$1.ZodString>;
|
|
2849
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
2850
|
+
steps: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2851
|
+
disable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2852
|
+
}, z$1.core.$catchall<z$1.ZodUnknown>>;
|
|
2853
|
+
type AgentMetadata = AgentInfo;
|
|
2655
2854
|
interface AgentDefinition extends AgentMetadata {
|
|
2656
2855
|
id?: string;
|
|
2657
2856
|
}
|
|
@@ -2681,29 +2880,54 @@ interface SkillDefinition extends SkillMetadata {
|
|
|
2681
2880
|
init?: (context?: SkillInitContext) => Promise<SkillInitResult>;
|
|
2682
2881
|
}
|
|
2683
2882
|
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
type
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2883
|
+
declare const PLUGIN_ID_PATTERN: RegExp;
|
|
2884
|
+
declare const PLUGIN_VERSION_PATTERN: RegExp;
|
|
2885
|
+
declare const PLUGIN_CAPABILITIES: readonly ["hooks", "commands", "tools", "agents", "skills", "auth", "event", "config"];
|
|
2886
|
+
type PluginCapability = (typeof PLUGIN_CAPABILITIES)[number];
|
|
2887
|
+
declare const PLUGIN_DEFINITION_KEYS: readonly ["hooks", "commands", "tools", "agents", "skills", "auth", "event", "config"];
|
|
2888
|
+
declare const PLUGIN_HOOK_FAILURE_POLICIES: readonly ["fail-open", "fail-closed"];
|
|
2889
|
+
type PluginHookFailurePolicy = (typeof PLUGIN_HOOK_FAILURE_POLICIES)[number];
|
|
2890
|
+
declare const PLUGIN_ENTRY_EXTENSIONS: readonly [".mjs", ".js", ".cjs"];
|
|
2891
|
+
declare const PLUGIN_ENTRY_NAMES: readonly ["default", "Plugin", "plugin"];
|
|
2892
|
+
declare const PLUGIN_HOOK_EXECUTOR_TYPES: readonly ["command", "prompt", "http", "agent", "function"];
|
|
2893
|
+
declare function isValidPluginId(id: unknown): id is string;
|
|
2894
|
+
declare function isValidPluginEntry(entry: unknown): entry is string;
|
|
2895
|
+
declare const PluginManifestSchema: z.ZodObject<{
|
|
2896
|
+
name: z.ZodString;
|
|
2897
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2898
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2899
|
+
entry: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
2900
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2901
|
+
event: "event";
|
|
2902
|
+
hooks: "hooks";
|
|
2903
|
+
config: "config";
|
|
2904
|
+
tools: "tools";
|
|
2905
|
+
commands: "commands";
|
|
2906
|
+
agents: "agents";
|
|
2907
|
+
skills: "skills";
|
|
2908
|
+
auth: "auth";
|
|
2909
|
+
}>>>;
|
|
2910
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2911
|
+
}, z.core.$strip>;
|
|
2912
|
+
type PluginManifest = z.infer<typeof PluginManifestSchema>;
|
|
2913
|
+
type ManifestValidationResult = {
|
|
2914
|
+
ok: true;
|
|
2915
|
+
manifest: PluginManifest;
|
|
2916
|
+
} | {
|
|
2917
|
+
ok: false;
|
|
2918
|
+
errors: string[];
|
|
2919
|
+
};
|
|
2920
|
+
declare function validatePluginManifest(input: unknown): ManifestValidationResult;
|
|
2921
|
+
type DefinitionValidationResult = {
|
|
2922
|
+
ok: true;
|
|
2923
|
+
} | {
|
|
2924
|
+
ok: false;
|
|
2925
|
+
reason: string;
|
|
2926
|
+
};
|
|
2927
|
+
interface DefinitionValidationOptions {
|
|
2928
|
+
capabilities?: readonly PluginCapability[];
|
|
2701
2929
|
}
|
|
2702
|
-
declare function
|
|
2703
|
-
declare function unregisterMarketplace(id: string): boolean;
|
|
2704
|
-
declare function listMarketplaces(): MarketplaceDefinition[];
|
|
2705
|
-
declare function findMarketplace(id: string): MarketplaceDefinition | null;
|
|
2706
|
-
declare function findMarketplacesByCategory(category: MarketplaceCategory): MarketplaceDefinition[];
|
|
2930
|
+
declare function validatePluginDefinition(def: unknown, options?: DefinitionValidationOptions): DefinitionValidationResult;
|
|
2707
2931
|
|
|
2708
2932
|
type PluginInput = {
|
|
2709
2933
|
client: ReturnType<typeof createEasbotClient>;
|
|
@@ -2714,140 +2938,86 @@ type PluginInput = {
|
|
|
2714
2938
|
$: EasbotShell;
|
|
2715
2939
|
};
|
|
2716
2940
|
type Plugin = (input: PluginInput) => Promise<PluginDefinition>;
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
} | {
|
|
2731
|
-
type: 'select';
|
|
2732
|
-
key: string;
|
|
2733
|
-
message: string;
|
|
2734
|
-
options: Array<{
|
|
2735
|
-
label: string;
|
|
2736
|
-
value: string;
|
|
2737
|
-
hint?: string;
|
|
2738
|
-
}>;
|
|
2739
|
-
condition?: (inputs: Record<string, string>) => boolean;
|
|
2740
|
-
}>;
|
|
2741
|
-
authorize(inputs?: Record<string, string>): Promise<AuthOuathResult>;
|
|
2742
|
-
} | {
|
|
2743
|
-
type: 'api';
|
|
2941
|
+
interface TextPrompt {
|
|
2942
|
+
type: 'text';
|
|
2943
|
+
key: string;
|
|
2944
|
+
message: string;
|
|
2945
|
+
placeholder?: string;
|
|
2946
|
+
validate?: (value: string) => string | undefined;
|
|
2947
|
+
condition?: (inputs: Record<string, string>) => boolean;
|
|
2948
|
+
}
|
|
2949
|
+
interface SelectPrompt {
|
|
2950
|
+
type: 'select';
|
|
2951
|
+
key: string;
|
|
2952
|
+
message: string;
|
|
2953
|
+
options: Array<{
|
|
2744
2954
|
label: string;
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
key: string;
|
|
2766
|
-
provider?: string;
|
|
2767
|
-
} | {
|
|
2768
|
-
type: 'failed';
|
|
2769
|
-
}>;
|
|
2770
|
-
})[];
|
|
2955
|
+
value: string;
|
|
2956
|
+
hint?: string;
|
|
2957
|
+
}>;
|
|
2958
|
+
condition?: (inputs: Record<string, string>) => boolean;
|
|
2959
|
+
}
|
|
2960
|
+
type AuthPrompt = TextPrompt | SelectPrompt;
|
|
2961
|
+
type AuthApiResult = {
|
|
2962
|
+
type: 'success';
|
|
2963
|
+
key: string;
|
|
2964
|
+
provider?: string;
|
|
2965
|
+
} | {
|
|
2966
|
+
type: 'failed';
|
|
2967
|
+
};
|
|
2968
|
+
type AuthCredential = {
|
|
2969
|
+
refresh: string;
|
|
2970
|
+
access: string;
|
|
2971
|
+
expires: number;
|
|
2972
|
+
accountId?: string;
|
|
2973
|
+
} | {
|
|
2974
|
+
key: string;
|
|
2771
2975
|
};
|
|
2772
|
-
type
|
|
2976
|
+
type AuthCallbackResult = ({
|
|
2977
|
+
type: 'success';
|
|
2978
|
+
provider?: string;
|
|
2979
|
+
} & AuthCredential) | {
|
|
2980
|
+
type: 'failed';
|
|
2981
|
+
};
|
|
2982
|
+
type AuthOAuthResult = {
|
|
2773
2983
|
url: string;
|
|
2774
2984
|
instructions: string;
|
|
2775
2985
|
} & ({
|
|
2776
2986
|
method: 'auto';
|
|
2777
|
-
callback(): Promise<
|
|
2778
|
-
type: 'success';
|
|
2779
|
-
provider?: string;
|
|
2780
|
-
} & ({
|
|
2781
|
-
refresh: string;
|
|
2782
|
-
access: string;
|
|
2783
|
-
expires: number;
|
|
2784
|
-
accountId?: string;
|
|
2785
|
-
} | {
|
|
2786
|
-
key: string;
|
|
2787
|
-
})) | {
|
|
2788
|
-
type: 'failed';
|
|
2789
|
-
}>;
|
|
2987
|
+
callback(): Promise<AuthCallbackResult>;
|
|
2790
2988
|
} | {
|
|
2791
2989
|
method: 'code';
|
|
2792
|
-
callback(code: string): Promise<
|
|
2793
|
-
type: 'success';
|
|
2794
|
-
provider?: string;
|
|
2795
|
-
} & ({
|
|
2796
|
-
refresh: string;
|
|
2797
|
-
access: string;
|
|
2798
|
-
expires: number;
|
|
2799
|
-
accountId?: string;
|
|
2800
|
-
} | {
|
|
2801
|
-
key: string;
|
|
2802
|
-
})) | {
|
|
2803
|
-
type: 'failed';
|
|
2804
|
-
}>;
|
|
2990
|
+
callback(code: string): Promise<AuthCallbackResult>;
|
|
2805
2991
|
});
|
|
2992
|
+
interface OAuthAuthMethod {
|
|
2993
|
+
type: 'oauth';
|
|
2994
|
+
label: string;
|
|
2995
|
+
prompts?: AuthPrompt[];
|
|
2996
|
+
authorize(inputs?: Record<string, string>): Promise<AuthOAuthResult>;
|
|
2997
|
+
}
|
|
2998
|
+
interface ApiAuthMethod {
|
|
2999
|
+
type: 'api';
|
|
3000
|
+
label: string;
|
|
3001
|
+
prompts?: AuthPrompt[];
|
|
3002
|
+
authorize?(inputs?: Record<string, string>): Promise<AuthApiResult>;
|
|
3003
|
+
}
|
|
3004
|
+
type AuthMethod = OAuthAuthMethod | ApiAuthMethod;
|
|
3005
|
+
type AuthHook = {
|
|
3006
|
+
provider: string;
|
|
3007
|
+
loader?: (auth: () => Promise<Auth>, provider: Provider) => Promise<Record<string, unknown>>;
|
|
3008
|
+
methods: AuthMethod[];
|
|
3009
|
+
};
|
|
2806
3010
|
interface PluginDefinition {
|
|
2807
3011
|
hooks?: HookMatcher[];
|
|
2808
3012
|
commands?: Record<string, CommandDefinition>;
|
|
2809
3013
|
agents?: Record<string, AgentDefinition>;
|
|
2810
3014
|
skills?: Record<string, SkillDefinition>;
|
|
2811
3015
|
tools?: Record<string, ToolDefinition>;
|
|
2812
|
-
marketplace?: Record<string, MarketplaceEntry>;
|
|
2813
3016
|
event?: (input: {
|
|
2814
3017
|
event: Event;
|
|
2815
3018
|
}) => Promise<void>;
|
|
2816
|
-
config?: (input: Config) => Promise<void>;
|
|
3019
|
+
config?: (input: Readonly<Config>) => Promise<void>;
|
|
2817
3020
|
auth?: AuthHook;
|
|
2818
|
-
'session.start'?: (input: SessionStartInput, output: HookOutputWrapper<GatewayMessageSendInput>) => Promise<void>;
|
|
2819
|
-
'session.end'?: (input: SessionEndInput, output: HookOutputWrapper<SessionEndInput>) => Promise<void>;
|
|
2820
|
-
'session.compact'?: (input: SessionCompactInput, output: HookOutputWrapper<SessionCompactInput>) => Promise<void>;
|
|
2821
|
-
'session.compacting'?: (input: SessionCompactingInput, output: HookOutputWrapper<SessionCompactingInput>) => Promise<void>;
|
|
2822
|
-
'step.start'?: (input: StepStartInput, output: HookOutputWrapper<StepStartInput>) => Promise<void>;
|
|
2823
|
-
'step.finish'?: (input: StepFinishInput, output: HookOutputWrapper<StepFinishInput>) => Promise<void>;
|
|
2824
|
-
'step.stop'?: (input: StepStopInput, output: HookOutputWrapper<StepStopInput>) => Promise<void>;
|
|
2825
|
-
'step.stop.failure'?: (input: StepStopFailureInput, output: HookOutputWrapper<StepStopFailureInput>) => Promise<void>;
|
|
2826
|
-
'message.receive'?: (input: MessageReceiveInput, output: HookOutputWrapper<MessageReceiveInput>) => Promise<void>;
|
|
2827
|
-
'message.transform'?: (input: MessageTransformInput, output: HookOutputWrapper<MessageTransformInput>) => Promise<void>;
|
|
2828
|
-
'system.transform'?: (input: SystemTransformInput, output: HookOutputWrapper<SystemTransformInput>) => Promise<void>;
|
|
2829
|
-
'tool.before'?: (input: ToolBeforeInput, output: HookOutputWrapper<ToolBeforeInput>) => Promise<void>;
|
|
2830
|
-
'tool.after'?: (input: ToolAfterInput, output: HookOutputWrapper<ToolAfterInput>) => Promise<void>;
|
|
2831
|
-
'tool.failure'?: (input: ToolFailureInput, output: HookOutputWrapper<ToolFailureInput>) => Promise<void>;
|
|
2832
|
-
'tool.definition'?: (input: ToolDefinitionInput, output: HookOutputWrapper<ToolDefinitionInput>) => Promise<void>;
|
|
2833
|
-
'command.before'?: (input: CommandBeforeInput, output: HookOutputWrapper<CommandBeforeInput>) => Promise<void>;
|
|
2834
|
-
'command.after'?: (input: CommandAfterInput, output: HookOutputWrapper<CommandAfterInput>) => Promise<void>;
|
|
2835
|
-
'permission.ask'?: (input: PermissionAskInput, output: HookOutputWrapper<PermissionAskInput>) => Promise<void>;
|
|
2836
|
-
'permission.denied'?: (input: PermissionDeniedInput, output: HookOutputWrapper<PermissionDeniedInput>) => Promise<void>;
|
|
2837
|
-
'llm.params'?: (input: LlmParamsInput, output: HookOutputWrapper<LlmParamsInput>) => Promise<void>;
|
|
2838
|
-
'llm.headers'?: (input: LlmHeadersInput, output: HookOutputWrapper<LlmHeadersInput>) => Promise<void>;
|
|
2839
|
-
'shell.env'?: (input: ShellEnvInput, output: HookOutputWrapper<ShellEnvInput>) => Promise<void>;
|
|
2840
|
-
'text.complete'?: (input: TextCompleteInput, output: HookOutputWrapper<TextCompleteInput>) => Promise<void>;
|
|
2841
|
-
'gateway.message.receive'?: (input: GatewayMessageReceiveInput, output: HookOutputWrapper<GatewayMessageReceiveInput>) => Promise<void>;
|
|
2842
|
-
'gateway.message.process'?: (input: GatewayMessageProcessInput, output: HookOutputWrapper<GatewayMessageProcessInput>) => Promise<void>;
|
|
2843
|
-
'gateway.message.complete'?: (input: GatewayMessageCompleteInput, output: HookOutputWrapper<GatewayMessageCompleteInput>) => Promise<void>;
|
|
2844
|
-
'gateway.message.send'?: (input: GatewayMessageSendInput, output: HookOutputWrapper<GatewayMessageSendInput>) => Promise<void>;
|
|
2845
|
-
'scheduler.heartbeat.trigger'?: (input: HeartbeatTriggerInput, output: HookOutputWrapper<HeartbeatTriggerInput>) => Promise<void>;
|
|
2846
|
-
'scheduler.heartbeat.complete'?: (input: HeartbeatCompleteInput, output: HookOutputWrapper<HeartbeatCompleteInput>) => Promise<void>;
|
|
2847
|
-
'scheduler.task.trigger'?: (input: ScheduledTaskTriggerInput, output: HookOutputWrapper<ScheduledTaskTriggerInput>) => Promise<void>;
|
|
2848
|
-
'scheduler.task.complete'?: (input: ScheduledTaskCompleteInput, output: HookOutputWrapper<ScheduledTaskCompleteInput>) => Promise<void>;
|
|
2849
|
-
'context.build.before'?: (input: ContextBuildBeforeInput, output: HookOutputWrapper<ContextBuildBeforeInput>) => Promise<void>;
|
|
2850
|
-
'context.build.after'?: (input: ContextBuildAfterInput, output: HookOutputWrapper<ContextBuildAfterInput>) => Promise<void>;
|
|
2851
3021
|
}
|
|
2852
3022
|
|
|
2853
|
-
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema,
|
|
3023
|
+
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema, AgentSchema, type AgentScope, AgentScopeSchema, type ApiAuthMethod, type AuthApiResult, type AuthCallbackResult, type AuthCredential, type AuthHook, type AuthMethod, type AuthOAuthResult, type AuthPrompt, 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, type DefinitionValidationOptions, type DefinitionValidationResult, 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 ManifestValidationResult, MessageIDSchema, type MessageReceiveInput, MessageReceiveInputSchema, MessageRoleSchema, MessageSchema, type MessageTransformInput, MessageTransformInputSchema, ModelObjectSchema, ModelSchema, type OAuthAuthMethod, PLUGIN_CAPABILITIES, PLUGIN_DEFINITION_KEYS, PLUGIN_ENTRY_EXTENSIONS, PLUGIN_ENTRY_NAMES, PLUGIN_HOOK_EXECUTOR_TYPES, PLUGIN_HOOK_FAILURE_POLICIES, PLUGIN_ID_PATTERN, PLUGIN_VERSION_PATTERN, PartIDSchema, type PermissionAskInput, PermissionAskInputSchema, type PermissionDeniedInput, PermissionDeniedInputSchema, PermissionLevelSchema, PermissionRequestSchema, type Plugin, type PluginCapability, type PluginDefinition, type PluginHookFailurePolicy, type PluginInput, type PluginManifest, PluginManifestSchema, 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 SelectPrompt, 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 SystemTransformInput, SystemTransformInputSchema, type TaskCompleteInput, TaskCompleteInputSchema, type TaskDefinition, type TaskProgressInput, TaskProgressInputSchema, type TaskRunningInput, TaskRunningInputSchema, type TaskSource, TaskSourceSchema, type TaskStartInput, TaskStartInputSchema, type TextPrompt, type ToolAfterInput, ToolAfterInputSchema, ToolArgsSchema, type ToolBeforeInput, ToolBeforeInputSchema, type ToolDefinitionInput, ToolDefinitionInputSchema, type ToolFailureInput, ToolFailureInputSchema, ToolResultSchema, getEventInputSchema, isValidPluginEntry, isValidPluginId, safeValidateHookInput, tool, validateHookInput, validatePluginDefinition, validatePluginManifest };
|