@easbot/plugin 0.3.29 → 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 +697 -515
- package/dist/index.d.ts +697 -515
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
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>;
|
|
@@ -220,6 +223,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
220
223
|
statusMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
221
224
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
222
225
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
226
|
+
allowedEnvVars: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
223
227
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
224
228
|
type: z$1.ZodLiteral<"prompt">;
|
|
225
229
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -339,53 +343,6 @@ declare const SessionCompactInputSchema: z$1.ZodObject<{
|
|
|
339
343
|
newLength: z$1.ZodNumber;
|
|
340
344
|
}, z$1.core.$strip>;
|
|
341
345
|
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
346
|
declare const MessageRoleSchema: z$1.ZodEnum<{
|
|
390
347
|
system: "system";
|
|
391
348
|
user: "user";
|
|
@@ -700,13 +657,6 @@ declare const ShellEnvInputSchema: z$1.ZodObject<{
|
|
|
700
657
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
701
658
|
}, z$1.core.$strip>;
|
|
702
659
|
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
660
|
declare const ContextBuildBeforeInputSchema: z$1.ZodObject<{
|
|
711
661
|
sessionId: z$1.ZodString;
|
|
712
662
|
mode: z$1.ZodEnum<{
|
|
@@ -1062,6 +1012,219 @@ declare const EvolutionCompleteInputSchema: z$1.ZodObject<{
|
|
|
1062
1012
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1063
1013
|
}, z$1.core.$strip>;
|
|
1064
1014
|
type EvolutionCompleteInput = z$1.infer<typeof EvolutionCompleteInputSchema>;
|
|
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>;
|
|
1065
1228
|
declare const EventInputSchemas: {
|
|
1066
1229
|
readonly "session.start": z$1.ZodObject<{
|
|
1067
1230
|
sessionId: z$1.ZodString;
|
|
@@ -1103,49 +1266,6 @@ declare const EventInputSchemas: {
|
|
|
1103
1266
|
previousLength: z$1.ZodNumber;
|
|
1104
1267
|
newLength: z$1.ZodNumber;
|
|
1105
1268
|
}, 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
1269
|
readonly "message.receive": z$1.ZodObject<{
|
|
1150
1270
|
sessionId: z$1.ZodString;
|
|
1151
1271
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1349,12 +1469,6 @@ declare const EventInputSchemas: {
|
|
|
1349
1469
|
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1350
1470
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1351
1471
|
}, 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
1472
|
readonly "context.build.before": z$1.ZodObject<{
|
|
1359
1473
|
sessionId: z$1.ZodString;
|
|
1360
1474
|
mode: z$1.ZodEnum<{
|
|
@@ -1595,60 +1709,258 @@ declare const EventInputSchemas: {
|
|
|
1595
1709
|
continue: "continue";
|
|
1596
1710
|
}>;
|
|
1597
1711
|
}, 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>;
|
|
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>;
|
|
1616
1720
|
}, z$1.core.$strip>;
|
|
1617
|
-
readonly "
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
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;
|
|
1626
1730
|
}, z$1.core.$strip>;
|
|
1627
|
-
readonly "
|
|
1628
|
-
|
|
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;
|
|
1629
1742
|
}, z$1.core.$strip>;
|
|
1630
|
-
readonly "
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
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;
|
|
1639
1755
|
}, z$1.core.$strip>;
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
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";
|
|
1946
|
+
"awaiting-approval": "awaiting-approval";
|
|
1947
|
+
}>;
|
|
1948
|
+
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1949
|
+
awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1950
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1951
|
+
}, z$1.core.$strip>;
|
|
1952
|
+
};
|
|
1953
|
+
declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
1954
|
+
sessionId: z$1.ZodString;
|
|
1955
|
+
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1956
|
+
agent: "agent";
|
|
1957
|
+
system: "system";
|
|
1958
|
+
user: "user";
|
|
1959
|
+
scheduled: "scheduled";
|
|
1960
|
+
}>>;
|
|
1961
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1962
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1963
|
+
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1652
1964
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1653
1965
|
gatewayID: z$1.ZodString;
|
|
1654
1966
|
messageId: z$1.ZodString;
|
|
@@ -1679,45 +1991,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1679
1991
|
}>;
|
|
1680
1992
|
contextLength: z$1.ZodNumber;
|
|
1681
1993
|
threshold: z$1.ZodNumber;
|
|
1682
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1683
|
-
sessionId: z$1.ZodString;
|
|
1684
|
-
messageId: z$1.ZodString;
|
|
1685
|
-
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1686
|
-
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
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
|
-
}>;
|
|
1721
1994
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1722
1995
|
sessionId: z$1.ZodString;
|
|
1723
1996
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1907,11 +2180,6 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1907
2180
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1908
2181
|
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1909
2182
|
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1910
|
-
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1911
|
-
sessionId: z$1.ZodString;
|
|
1912
|
-
messageId: z$1.ZodString;
|
|
1913
|
-
partId: z$1.ZodString;
|
|
1914
|
-
text: z$1.ZodString;
|
|
1915
2183
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1916
2184
|
gatewayID: z$1.ZodString;
|
|
1917
2185
|
messageId: z$1.ZodString;
|
|
@@ -2165,6 +2433,189 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
2165
2433
|
applied: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2166
2434
|
awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2167
2435
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
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;
|
|
2462
|
+
text: 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;
|
|
2471
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
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;
|
|
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
|
+
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>;
|
|
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>;
|
|
2168
2619
|
}, z$1.core.$strip>;
|
|
2169
2620
|
declare function validateHookInput<T extends HookEvent>(event: T, input: unknown): unknown;
|
|
2170
2621
|
declare function safeValidateHookInput<T extends HookEvent>(event: T, input: unknown): {
|
|
@@ -2188,10 +2639,6 @@ declare const HookEvent: {
|
|
|
2188
2639
|
readonly SessionEnd: "session.end";
|
|
2189
2640
|
readonly SessionCompacting: "session.compacting";
|
|
2190
2641
|
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
2642
|
readonly MessageReceive: "message.receive";
|
|
2196
2643
|
readonly MessageTransform: "message.transform";
|
|
2197
2644
|
readonly SystemTransform: "system.transform";
|
|
@@ -2206,7 +2653,6 @@ declare const HookEvent: {
|
|
|
2206
2653
|
readonly LlmParams: "llm.params";
|
|
2207
2654
|
readonly LlmHeaders: "llm.headers";
|
|
2208
2655
|
readonly ShellEnv: "shell.env";
|
|
2209
|
-
readonly TextComplete: "text.complete";
|
|
2210
2656
|
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
2211
2657
|
readonly GatewayMessageProcess: "gateway.message.process";
|
|
2212
2658
|
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
@@ -2227,13 +2673,28 @@ declare const HookEvent: {
|
|
|
2227
2673
|
readonly TaskComplete: "task.complete";
|
|
2228
2674
|
readonly LoopStart: "loop.start";
|
|
2229
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";
|
|
2230
2691
|
readonly CreationRequest: "creation.request";
|
|
2231
2692
|
readonly CreationComplete: "creation.complete";
|
|
2232
2693
|
readonly EvolutionRequest: "evolution.request";
|
|
2233
2694
|
readonly EvolutionComplete: "evolution.complete";
|
|
2234
2695
|
};
|
|
2235
2696
|
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
2236
|
-
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "
|
|
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")[];
|
|
2237
2698
|
interface HookContext {
|
|
2238
2699
|
sessionId?: string;
|
|
2239
2700
|
agent?: string;
|
|
@@ -2320,134 +2781,18 @@ type HookInitResult = {
|
|
|
2320
2781
|
}>;
|
|
2321
2782
|
};
|
|
2322
2783
|
|
|
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
2784
|
declare const AgentModeSchema: z$1.ZodEnum<{
|
|
2435
2785
|
all: "all";
|
|
2436
2786
|
subagent: "subagent";
|
|
2437
2787
|
primary: "primary";
|
|
2438
2788
|
}>;
|
|
2439
|
-
type AgentMode =
|
|
2789
|
+
type AgentMode = AgentInfo['mode'];
|
|
2440
2790
|
declare const AgentScopeSchema: z$1.ZodEnum<{
|
|
2441
2791
|
general: "general";
|
|
2442
2792
|
coder: "coder";
|
|
2443
2793
|
all: "all";
|
|
2444
2794
|
}>;
|
|
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>;
|
|
2795
|
+
type AgentScope = AgentInfo['scope'];
|
|
2451
2796
|
declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
2452
2797
|
name: z$1.ZodString;
|
|
2453
2798
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2456,190 +2801,10 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2456
2801
|
subagent: "subagent";
|
|
2457
2802
|
primary: "primary";
|
|
2458
2803
|
}>>;
|
|
2804
|
+
native: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2459
2805
|
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
2806
|
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>;
|
|
2807
|
+
temperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2643
2808
|
color: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodEnum<{
|
|
2644
2809
|
success: "success";
|
|
2645
2810
|
error: "error";
|
|
@@ -2649,9 +2814,31 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2649
2814
|
accent: "accent";
|
|
2650
2815
|
warning: "warning";
|
|
2651
2816
|
}>]>>;
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
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;
|
|
2655
2842
|
interface AgentDefinition extends AgentMetadata {
|
|
2656
2843
|
id?: string;
|
|
2657
2844
|
}
|
|
@@ -2819,10 +3006,6 @@ interface PluginDefinition {
|
|
|
2819
3006
|
'session.end'?: (input: SessionEndInput, output: HookOutputWrapper<SessionEndInput>) => Promise<void>;
|
|
2820
3007
|
'session.compact'?: (input: SessionCompactInput, output: HookOutputWrapper<SessionCompactInput>) => Promise<void>;
|
|
2821
3008
|
'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
3009
|
'message.receive'?: (input: MessageReceiveInput, output: HookOutputWrapper<MessageReceiveInput>) => Promise<void>;
|
|
2827
3010
|
'message.transform'?: (input: MessageTransformInput, output: HookOutputWrapper<MessageTransformInput>) => Promise<void>;
|
|
2828
3011
|
'system.transform'?: (input: SystemTransformInput, output: HookOutputWrapper<SystemTransformInput>) => Promise<void>;
|
|
@@ -2837,7 +3020,6 @@ interface PluginDefinition {
|
|
|
2837
3020
|
'llm.params'?: (input: LlmParamsInput, output: HookOutputWrapper<LlmParamsInput>) => Promise<void>;
|
|
2838
3021
|
'llm.headers'?: (input: LlmHeadersInput, output: HookOutputWrapper<LlmHeadersInput>) => Promise<void>;
|
|
2839
3022
|
'shell.env'?: (input: ShellEnvInput, output: HookOutputWrapper<ShellEnvInput>) => Promise<void>;
|
|
2840
|
-
'text.complete'?: (input: TextCompleteInput, output: HookOutputWrapper<TextCompleteInput>) => Promise<void>;
|
|
2841
3023
|
'gateway.message.receive'?: (input: GatewayMessageReceiveInput, output: HookOutputWrapper<GatewayMessageReceiveInput>) => Promise<void>;
|
|
2842
3024
|
'gateway.message.process'?: (input: GatewayMessageProcessInput, output: HookOutputWrapper<GatewayMessageProcessInput>) => Promise<void>;
|
|
2843
3025
|
'gateway.message.complete'?: (input: GatewayMessageCompleteInput, output: HookOutputWrapper<GatewayMessageCompleteInput>) => Promise<void>;
|
|
@@ -2850,4 +3032,4 @@ interface PluginDefinition {
|
|
|
2850
3032
|
'context.build.after'?: (input: ContextBuildAfterInput, output: HookOutputWrapper<ContextBuildAfterInput>) => Promise<void>;
|
|
2851
3033
|
}
|
|
2852
3034
|
|
|
2853
|
-
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 };
|