@easbot/plugin 0.3.27 → 0.3.29
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 +20 -21
- package/README.md +19 -20
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +207 -337
- package/dist/index.d.ts +207 -337
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command, Auth, Provider, createEasbotClient, Project, Event, Config } from '@easbot/sdk';
|
|
2
|
+
import * as _easbot_types from '@easbot/types';
|
|
2
3
|
import { ToolContext, EasbotShell, ToolDefinition } from '@easbot/types';
|
|
3
|
-
export { AskInput, EasbotShell, EasbotShellError, EasbotShellOutput, EasbotShellPromise, ShellExpression, ShellFunction, ToolContext, ToolDefinition, ToolFunction as ToolFn, ToolFunction, buildToolArgs, createTool, toolSchema as schema } 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';
|
|
4
5
|
import z, { z as z$1 } from 'zod';
|
|
5
6
|
|
|
6
7
|
declare function tool<Args extends Record<string, z.ZodTypeAny>>(input: {
|
|
@@ -16,116 +17,6 @@ declare namespace tool {
|
|
|
16
17
|
var schema: typeof z;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
declare const HookType: {
|
|
20
|
-
readonly Command: "command";
|
|
21
|
-
readonly Prompt: "prompt";
|
|
22
|
-
readonly Http: "http";
|
|
23
|
-
readonly Agent: "agent";
|
|
24
|
-
readonly Function: "function";
|
|
25
|
-
};
|
|
26
|
-
type HookType = (typeof HookType)[keyof typeof HookType];
|
|
27
|
-
declare const HookEvent: {
|
|
28
|
-
readonly SessionStart: "session.start";
|
|
29
|
-
readonly SessionEnd: "session.end";
|
|
30
|
-
readonly SessionCompacting: "session.compacting";
|
|
31
|
-
readonly SessionCompact: "session.compact";
|
|
32
|
-
readonly StepStart: "step.start";
|
|
33
|
-
readonly StepFinish: "step.finish";
|
|
34
|
-
readonly StepStop: "step.stop";
|
|
35
|
-
readonly StepStopFailure: "step.stop.failure";
|
|
36
|
-
readonly MessageReceive: "message.receive";
|
|
37
|
-
readonly MessageTransform: "message.transform";
|
|
38
|
-
readonly SystemTransform: "system.transform";
|
|
39
|
-
readonly ToolBefore: "tool.before";
|
|
40
|
-
readonly ToolAfter: "tool.after";
|
|
41
|
-
readonly ToolFailure: "tool.failure";
|
|
42
|
-
readonly ToolDefinition: "tool.definition";
|
|
43
|
-
readonly CommandBefore: "command.before";
|
|
44
|
-
readonly CommandAfter: "command.after";
|
|
45
|
-
readonly PermissionAsk: "permission.ask";
|
|
46
|
-
readonly PermissionDenied: "permission.denied";
|
|
47
|
-
readonly LlmParams: "llm.params";
|
|
48
|
-
readonly LlmHeaders: "llm.headers";
|
|
49
|
-
readonly ShellEnv: "shell.env";
|
|
50
|
-
readonly TextComplete: "text.complete";
|
|
51
|
-
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
52
|
-
readonly GatewayMessageProcess: "gateway.message.process";
|
|
53
|
-
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
54
|
-
readonly GatewayMessageSend: "gateway.message.send";
|
|
55
|
-
readonly GatewayMessageDelivered: "gateway.message.delivered";
|
|
56
|
-
readonly GatewayMessageRead: "gateway.message.read";
|
|
57
|
-
readonly HeartbeatTrigger: "scheduler.heartbeat.trigger";
|
|
58
|
-
readonly HeartbeatComplete: "scheduler.heartbeat.complete";
|
|
59
|
-
readonly ScheduledTaskTrigger: "scheduler.task.trigger";
|
|
60
|
-
readonly ScheduledTaskComplete: "scheduler.task.complete";
|
|
61
|
-
readonly CommandTrigger: "scheduler.command.trigger";
|
|
62
|
-
readonly CommandComplete: "scheduler.command.complete";
|
|
63
|
-
readonly ContextBuildBefore: "context.build.before";
|
|
64
|
-
readonly ContextBuildAfter: "context.build.after";
|
|
65
|
-
readonly TaskStart: "task.start";
|
|
66
|
-
readonly TaskRunning: "task.running";
|
|
67
|
-
readonly TaskProgress: "task.progress";
|
|
68
|
-
readonly TaskComplete: "task.complete";
|
|
69
|
-
readonly LoopStart: "loop.start";
|
|
70
|
-
readonly LoopEnd: "loop.end";
|
|
71
|
-
readonly CreationRequest: "creation.request";
|
|
72
|
-
readonly CreationComplete: "creation.complete";
|
|
73
|
-
readonly EvolutionRequest: "evolution.request";
|
|
74
|
-
readonly EvolutionComplete: "evolution.complete";
|
|
75
|
-
};
|
|
76
|
-
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
77
|
-
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "step.start" | "step.finish" | "step.stop" | "step.stop.failure" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "text.complete" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end" | "creation.request" | "creation.complete" | "evolution.request" | "evolution.complete")[];
|
|
78
|
-
interface HookContext {
|
|
79
|
-
sessionId?: string;
|
|
80
|
-
agent?: string;
|
|
81
|
-
model?: string;
|
|
82
|
-
cwd?: string;
|
|
83
|
-
abort?: AbortSignal;
|
|
84
|
-
[key: string]: unknown;
|
|
85
|
-
}
|
|
86
|
-
interface HookOutputWrapper<T = unknown> {
|
|
87
|
-
modified: boolean;
|
|
88
|
-
input: T;
|
|
89
|
-
output?: Record<string, unknown>;
|
|
90
|
-
}
|
|
91
|
-
type HookHandler<T = unknown> = (input: T, context: HookContext) => Promise<HookOutputWrapper<T>> | HookOutputWrapper<T>;
|
|
92
|
-
interface HookResult {
|
|
93
|
-
success?: boolean;
|
|
94
|
-
skipped?: boolean;
|
|
95
|
-
output?: unknown;
|
|
96
|
-
error?: string;
|
|
97
|
-
stdout?: string;
|
|
98
|
-
stderr?: string;
|
|
99
|
-
exitCode?: number;
|
|
100
|
-
duration?: number;
|
|
101
|
-
}
|
|
102
|
-
interface HookExecutionDetail {
|
|
103
|
-
index: number;
|
|
104
|
-
hookType: string;
|
|
105
|
-
hookName: string;
|
|
106
|
-
matched: boolean;
|
|
107
|
-
skipped: boolean;
|
|
108
|
-
success: boolean;
|
|
109
|
-
modified: boolean;
|
|
110
|
-
duration: number;
|
|
111
|
-
output?: unknown;
|
|
112
|
-
}
|
|
113
|
-
interface HookError {
|
|
114
|
-
index: number;
|
|
115
|
-
hookName: string;
|
|
116
|
-
error: string;
|
|
117
|
-
stack?: string;
|
|
118
|
-
}
|
|
119
|
-
interface HookChainResult<T = unknown> {
|
|
120
|
-
success: boolean;
|
|
121
|
-
output: T;
|
|
122
|
-
modified: boolean;
|
|
123
|
-
aborted: boolean;
|
|
124
|
-
details: HookExecutionDetail[];
|
|
125
|
-
errors: HookError[];
|
|
126
|
-
duration: number;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
20
|
declare const CommandExecutorSchema: z$1.ZodObject<{
|
|
130
21
|
type: z$1.ZodLiteral<"command">;
|
|
131
22
|
command: z$1.ZodString;
|
|
@@ -140,6 +31,7 @@ declare const CommandExecutorSchema: z$1.ZodObject<{
|
|
|
140
31
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
141
32
|
}, z$1.core.$strip>;
|
|
142
33
|
type CommandHookDefinition = z$1.infer<typeof CommandExecutorSchema>;
|
|
34
|
+
type HookMessageCallback = (message: Record<string, unknown>) => void | Promise<void>;
|
|
143
35
|
declare const PromptExecutorSchema: z$1.ZodObject<{
|
|
144
36
|
type: z$1.ZodLiteral<"prompt">;
|
|
145
37
|
if: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -153,8 +45,11 @@ declare const PromptExecutorSchema: z$1.ZodObject<{
|
|
|
153
45
|
}>>;
|
|
154
46
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
155
47
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
48
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
156
49
|
}, z$1.core.$strip>;
|
|
157
|
-
type PromptHookDefinition = z$1.infer<typeof PromptExecutorSchema
|
|
50
|
+
type PromptHookDefinition = Omit<z$1.infer<typeof PromptExecutorSchema>, 'onMessage'> & {
|
|
51
|
+
onMessage?: HookMessageCallback;
|
|
52
|
+
};
|
|
158
53
|
declare const HttpExecutorSchema: z$1.ZodObject<{
|
|
159
54
|
type: z$1.ZodLiteral<"http">;
|
|
160
55
|
url: z$1.ZodString;
|
|
@@ -182,8 +77,11 @@ declare const AgentExecutorSchema: z$1.ZodObject<{
|
|
|
182
77
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
183
78
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
184
79
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
80
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
185
81
|
}, z$1.core.$strip>;
|
|
186
|
-
type AgentHookDefinition = z$1.infer<typeof AgentExecutorSchema
|
|
82
|
+
type AgentHookDefinition = Omit<z$1.infer<typeof AgentExecutorSchema>, 'onMessage'> & {
|
|
83
|
+
onMessage?: HookMessageCallback;
|
|
84
|
+
};
|
|
187
85
|
declare const FunctionExecutorSchema: z$1.ZodObject<{
|
|
188
86
|
type: z$1.ZodLiteral<"function">;
|
|
189
87
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -214,6 +112,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
214
112
|
}>>;
|
|
215
113
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
216
114
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
115
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
217
116
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
218
117
|
type: z$1.ZodLiteral<"http">;
|
|
219
118
|
url: z$1.ZodString;
|
|
@@ -239,6 +138,7 @@ declare const HookExecutorSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
239
138
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
240
139
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
241
140
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
141
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
242
142
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
243
143
|
type: z$1.ZodLiteral<"function">;
|
|
244
144
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -272,6 +172,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
272
172
|
}>>;
|
|
273
173
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
274
174
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
175
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
275
176
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
276
177
|
type: z$1.ZodLiteral<"http">;
|
|
277
178
|
url: z$1.ZodString;
|
|
@@ -297,6 +198,7 @@ declare const HookMatcherSchema: z$1.ZodObject<{
|
|
|
297
198
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
298
199
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
299
200
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
201
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
300
202
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
301
203
|
type: z$1.ZodLiteral<"function">;
|
|
302
204
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -331,6 +233,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
331
233
|
}>>;
|
|
332
234
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
333
235
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
236
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
334
237
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
335
238
|
type: z$1.ZodLiteral<"http">;
|
|
336
239
|
url: z$1.ZodString;
|
|
@@ -356,6 +259,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
356
259
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
357
260
|
system: z$1.ZodOptional<z$1.ZodString>;
|
|
358
261
|
parts: z$1.ZodArray<z$1.ZodUnknown>;
|
|
262
|
+
onMessage: z$1.ZodOptional<z$1.ZodCustom<HookMessageCallback, HookMessageCallback>>;
|
|
359
263
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
360
264
|
type: z$1.ZodLiteral<"function">;
|
|
361
265
|
handler: z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.core.$ZodFunctionOut>;
|
|
@@ -363,6 +267,7 @@ declare const HooksConfigSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.Z
|
|
|
363
267
|
}, z$1.core.$strip>>>;
|
|
364
268
|
type HooksConfig = z$1.infer<typeof HooksConfigSchema>;
|
|
365
269
|
declare const SessionIDSchema: z$1.ZodString;
|
|
270
|
+
declare const PartIDSchema: z$1.ZodString;
|
|
366
271
|
declare const MessageIDSchema: z$1.ZodString;
|
|
367
272
|
declare const CallIDSchema: z$1.ZodString;
|
|
368
273
|
declare const AgentSchema: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -437,6 +342,7 @@ type SessionCompactInput = z$1.infer<typeof SessionCompactInputSchema>;
|
|
|
437
342
|
declare const StepStartInputSchema: z$1.ZodObject<{
|
|
438
343
|
sessionId: z$1.ZodString;
|
|
439
344
|
messageId: z$1.ZodString;
|
|
345
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
440
346
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
441
347
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
442
348
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -445,6 +351,7 @@ type StepStartInput = z$1.infer<typeof StepStartInputSchema>;
|
|
|
445
351
|
declare const StepFinishInputSchema: z$1.ZodObject<{
|
|
446
352
|
sessionId: z$1.ZodString;
|
|
447
353
|
messageId: z$1.ZodString;
|
|
354
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
448
355
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
449
356
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
450
357
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1199,6 +1106,7 @@ declare const EventInputSchemas: {
|
|
|
1199
1106
|
readonly "step.start": z$1.ZodObject<{
|
|
1200
1107
|
sessionId: z$1.ZodString;
|
|
1201
1108
|
messageId: z$1.ZodString;
|
|
1109
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1202
1110
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1203
1111
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1204
1112
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1206,6 +1114,7 @@ declare const EventInputSchemas: {
|
|
|
1206
1114
|
readonly "step.finish": z$1.ZodObject<{
|
|
1207
1115
|
sessionId: z$1.ZodString;
|
|
1208
1116
|
messageId: z$1.ZodString;
|
|
1117
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1209
1118
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1210
1119
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1211
1120
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1773,12 +1682,14 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1773
1682
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1774
1683
|
sessionId: z$1.ZodString;
|
|
1775
1684
|
messageId: z$1.ZodString;
|
|
1685
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1776
1686
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1777
1687
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1778
1688
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1779
1689
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1780
1690
|
sessionId: z$1.ZodString;
|
|
1781
1691
|
messageId: z$1.ZodString;
|
|
1692
|
+
partId: z$1.ZodOptional<z$1.ZodString>;
|
|
1782
1693
|
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1783
1694
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1784
1695
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2264,6 +2175,151 @@ declare function safeValidateHookInput<T extends HookEvent>(event: T, input: unk
|
|
|
2264
2175
|
error: z$1.ZodError;
|
|
2265
2176
|
};
|
|
2266
2177
|
|
|
2178
|
+
declare const HookType: {
|
|
2179
|
+
readonly Command: "command";
|
|
2180
|
+
readonly Prompt: "prompt";
|
|
2181
|
+
readonly Http: "http";
|
|
2182
|
+
readonly Agent: "agent";
|
|
2183
|
+
readonly Function: "function";
|
|
2184
|
+
};
|
|
2185
|
+
type HookType = (typeof HookType)[keyof typeof HookType];
|
|
2186
|
+
declare const HookEvent: {
|
|
2187
|
+
readonly SessionStart: "session.start";
|
|
2188
|
+
readonly SessionEnd: "session.end";
|
|
2189
|
+
readonly SessionCompacting: "session.compacting";
|
|
2190
|
+
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
|
+
readonly MessageReceive: "message.receive";
|
|
2196
|
+
readonly MessageTransform: "message.transform";
|
|
2197
|
+
readonly SystemTransform: "system.transform";
|
|
2198
|
+
readonly ToolBefore: "tool.before";
|
|
2199
|
+
readonly ToolAfter: "tool.after";
|
|
2200
|
+
readonly ToolFailure: "tool.failure";
|
|
2201
|
+
readonly ToolDefinition: "tool.definition";
|
|
2202
|
+
readonly CommandBefore: "command.before";
|
|
2203
|
+
readonly CommandAfter: "command.after";
|
|
2204
|
+
readonly PermissionAsk: "permission.ask";
|
|
2205
|
+
readonly PermissionDenied: "permission.denied";
|
|
2206
|
+
readonly LlmParams: "llm.params";
|
|
2207
|
+
readonly LlmHeaders: "llm.headers";
|
|
2208
|
+
readonly ShellEnv: "shell.env";
|
|
2209
|
+
readonly TextComplete: "text.complete";
|
|
2210
|
+
readonly GatewayMessageReceive: "gateway.message.receive";
|
|
2211
|
+
readonly GatewayMessageProcess: "gateway.message.process";
|
|
2212
|
+
readonly GatewayMessageComplete: "gateway.message.complete";
|
|
2213
|
+
readonly GatewayMessageSend: "gateway.message.send";
|
|
2214
|
+
readonly GatewayMessageDelivered: "gateway.message.delivered";
|
|
2215
|
+
readonly GatewayMessageRead: "gateway.message.read";
|
|
2216
|
+
readonly HeartbeatTrigger: "scheduler.heartbeat.trigger";
|
|
2217
|
+
readonly HeartbeatComplete: "scheduler.heartbeat.complete";
|
|
2218
|
+
readonly ScheduledTaskTrigger: "scheduler.task.trigger";
|
|
2219
|
+
readonly ScheduledTaskComplete: "scheduler.task.complete";
|
|
2220
|
+
readonly CommandTrigger: "scheduler.command.trigger";
|
|
2221
|
+
readonly CommandComplete: "scheduler.command.complete";
|
|
2222
|
+
readonly ContextBuildBefore: "context.build.before";
|
|
2223
|
+
readonly ContextBuildAfter: "context.build.after";
|
|
2224
|
+
readonly TaskStart: "task.start";
|
|
2225
|
+
readonly TaskRunning: "task.running";
|
|
2226
|
+
readonly TaskProgress: "task.progress";
|
|
2227
|
+
readonly TaskComplete: "task.complete";
|
|
2228
|
+
readonly LoopStart: "loop.start";
|
|
2229
|
+
readonly LoopEnd: "loop.end";
|
|
2230
|
+
readonly CreationRequest: "creation.request";
|
|
2231
|
+
readonly CreationComplete: "creation.complete";
|
|
2232
|
+
readonly EvolutionRequest: "evolution.request";
|
|
2233
|
+
readonly EvolutionComplete: "evolution.complete";
|
|
2234
|
+
};
|
|
2235
|
+
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
2236
|
+
declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "step.start" | "step.finish" | "step.stop" | "step.stop.failure" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "text.complete" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end" | "creation.request" | "creation.complete" | "evolution.request" | "evolution.complete")[];
|
|
2237
|
+
interface HookContext {
|
|
2238
|
+
sessionId?: string;
|
|
2239
|
+
agent?: string;
|
|
2240
|
+
model?: string;
|
|
2241
|
+
cwd?: string;
|
|
2242
|
+
abort?: AbortSignal;
|
|
2243
|
+
[key: string]: unknown;
|
|
2244
|
+
}
|
|
2245
|
+
interface HookOutputWrapper<T = unknown> {
|
|
2246
|
+
modified: boolean;
|
|
2247
|
+
input: T;
|
|
2248
|
+
output?: Record<string, unknown>;
|
|
2249
|
+
}
|
|
2250
|
+
type HookHandler<T = unknown> = (input: T, context: HookContext) => Promise<HookOutputWrapper<T>> | HookOutputWrapper<T>;
|
|
2251
|
+
interface HookResult {
|
|
2252
|
+
success?: boolean;
|
|
2253
|
+
skipped?: boolean;
|
|
2254
|
+
output?: unknown;
|
|
2255
|
+
error?: string;
|
|
2256
|
+
stdout?: string;
|
|
2257
|
+
stderr?: string;
|
|
2258
|
+
exitCode?: number;
|
|
2259
|
+
duration?: number;
|
|
2260
|
+
}
|
|
2261
|
+
interface HookExecutor {
|
|
2262
|
+
readonly type: string;
|
|
2263
|
+
canExecute(hook: unknown): boolean;
|
|
2264
|
+
execute(definition: HookDefinition, input: HookOutputWrapper, context?: HookContext): Promise<HookExecutorOutput>;
|
|
2265
|
+
}
|
|
2266
|
+
interface HookExecutorOutput {
|
|
2267
|
+
success: boolean;
|
|
2268
|
+
modified: boolean;
|
|
2269
|
+
input?: unknown;
|
|
2270
|
+
output?: unknown;
|
|
2271
|
+
error?: string;
|
|
2272
|
+
stdout?: string;
|
|
2273
|
+
stderr?: string;
|
|
2274
|
+
exitCode?: number;
|
|
2275
|
+
duration?: number;
|
|
2276
|
+
metadata?: Record<string, unknown>;
|
|
2277
|
+
}
|
|
2278
|
+
interface HookExecutorRegistry {
|
|
2279
|
+
register(executor: HookExecutor): void;
|
|
2280
|
+
getExecutor(definition: HookDefinition): HookExecutor | undefined;
|
|
2281
|
+
execute(definition: HookDefinition, input: HookOutputWrapper, context?: HookContext): Promise<HookExecutorOutput>;
|
|
2282
|
+
}
|
|
2283
|
+
interface HookExecutionDetail {
|
|
2284
|
+
index: number;
|
|
2285
|
+
hookType: string;
|
|
2286
|
+
hookName: string;
|
|
2287
|
+
matched: boolean;
|
|
2288
|
+
skipped: boolean;
|
|
2289
|
+
success: boolean;
|
|
2290
|
+
modified: boolean;
|
|
2291
|
+
duration: number;
|
|
2292
|
+
output?: unknown;
|
|
2293
|
+
}
|
|
2294
|
+
interface HookError {
|
|
2295
|
+
index: number;
|
|
2296
|
+
hookName: string;
|
|
2297
|
+
error: string;
|
|
2298
|
+
stack?: string;
|
|
2299
|
+
}
|
|
2300
|
+
interface HookChainResult<T = unknown> {
|
|
2301
|
+
success: boolean;
|
|
2302
|
+
output: T;
|
|
2303
|
+
modified: boolean;
|
|
2304
|
+
aborted: boolean;
|
|
2305
|
+
details: HookExecutionDetail[];
|
|
2306
|
+
errors: HookError[];
|
|
2307
|
+
duration: number;
|
|
2308
|
+
}
|
|
2309
|
+
interface HookInfo {
|
|
2310
|
+
name: string;
|
|
2311
|
+
init(): Promise<HookInitResult>;
|
|
2312
|
+
dispose?: () => Promise<void> | void;
|
|
2313
|
+
}
|
|
2314
|
+
type HookInitResult = {
|
|
2315
|
+
scope?: _easbot_types.Scope;
|
|
2316
|
+
isEnabled?: () => boolean | Promise<boolean>;
|
|
2317
|
+
handlers: Array<{
|
|
2318
|
+
name: HookEvent;
|
|
2319
|
+
handler: HookHandler<unknown>;
|
|
2320
|
+
}>;
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2267
2323
|
declare const CommandSourceSchema: z$1.ZodEnum<{
|
|
2268
2324
|
command: "command";
|
|
2269
2325
|
mcp: "mcp";
|
|
@@ -2375,192 +2431,6 @@ interface CommandDefinition extends Command {
|
|
|
2375
2431
|
init?: (context?: CommandInitContext) => Promise<CommandInitResult>;
|
|
2376
2432
|
}
|
|
2377
2433
|
|
|
2378
|
-
declare const PermissionActionSchema: z$1.ZodEnum<{
|
|
2379
|
-
ask: "ask";
|
|
2380
|
-
allow: "allow";
|
|
2381
|
-
deny: "deny";
|
|
2382
|
-
}>;
|
|
2383
|
-
type PermissionAction = z$1.infer<typeof PermissionActionSchema>;
|
|
2384
|
-
declare const PermissionRuleSchema: z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2385
|
-
ask: "ask";
|
|
2386
|
-
allow: "allow";
|
|
2387
|
-
deny: "deny";
|
|
2388
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2389
|
-
ask: "ask";
|
|
2390
|
-
allow: "allow";
|
|
2391
|
-
deny: "deny";
|
|
2392
|
-
}>>]>;
|
|
2393
|
-
type PermissionRule = z$1.infer<typeof PermissionRuleSchema>;
|
|
2394
|
-
declare const AgentPermissionSchema: z$1.ZodObject<{
|
|
2395
|
-
read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2396
|
-
ask: "ask";
|
|
2397
|
-
allow: "allow";
|
|
2398
|
-
deny: "deny";
|
|
2399
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2400
|
-
ask: "ask";
|
|
2401
|
-
allow: "allow";
|
|
2402
|
-
deny: "deny";
|
|
2403
|
-
}>>]>>;
|
|
2404
|
-
edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2405
|
-
ask: "ask";
|
|
2406
|
-
allow: "allow";
|
|
2407
|
-
deny: "deny";
|
|
2408
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2409
|
-
ask: "ask";
|
|
2410
|
-
allow: "allow";
|
|
2411
|
-
deny: "deny";
|
|
2412
|
-
}>>]>>;
|
|
2413
|
-
write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2414
|
-
ask: "ask";
|
|
2415
|
-
allow: "allow";
|
|
2416
|
-
deny: "deny";
|
|
2417
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2418
|
-
ask: "ask";
|
|
2419
|
-
allow: "allow";
|
|
2420
|
-
deny: "deny";
|
|
2421
|
-
}>>]>>;
|
|
2422
|
-
glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2423
|
-
ask: "ask";
|
|
2424
|
-
allow: "allow";
|
|
2425
|
-
deny: "deny";
|
|
2426
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2427
|
-
ask: "ask";
|
|
2428
|
-
allow: "allow";
|
|
2429
|
-
deny: "deny";
|
|
2430
|
-
}>>]>>;
|
|
2431
|
-
grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2432
|
-
ask: "ask";
|
|
2433
|
-
allow: "allow";
|
|
2434
|
-
deny: "deny";
|
|
2435
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2436
|
-
ask: "ask";
|
|
2437
|
-
allow: "allow";
|
|
2438
|
-
deny: "deny";
|
|
2439
|
-
}>>]>>;
|
|
2440
|
-
list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2441
|
-
ask: "ask";
|
|
2442
|
-
allow: "allow";
|
|
2443
|
-
deny: "deny";
|
|
2444
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2445
|
-
ask: "ask";
|
|
2446
|
-
allow: "allow";
|
|
2447
|
-
deny: "deny";
|
|
2448
|
-
}>>]>>;
|
|
2449
|
-
bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2450
|
-
ask: "ask";
|
|
2451
|
-
allow: "allow";
|
|
2452
|
-
deny: "deny";
|
|
2453
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2454
|
-
ask: "ask";
|
|
2455
|
-
allow: "allow";
|
|
2456
|
-
deny: "deny";
|
|
2457
|
-
}>>]>>;
|
|
2458
|
-
webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2459
|
-
ask: "ask";
|
|
2460
|
-
allow: "allow";
|
|
2461
|
-
deny: "deny";
|
|
2462
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2463
|
-
ask: "ask";
|
|
2464
|
-
allow: "allow";
|
|
2465
|
-
deny: "deny";
|
|
2466
|
-
}>>]>>;
|
|
2467
|
-
websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2468
|
-
ask: "ask";
|
|
2469
|
-
allow: "allow";
|
|
2470
|
-
deny: "deny";
|
|
2471
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2472
|
-
ask: "ask";
|
|
2473
|
-
allow: "allow";
|
|
2474
|
-
deny: "deny";
|
|
2475
|
-
}>>]>>;
|
|
2476
|
-
task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2477
|
-
ask: "ask";
|
|
2478
|
-
allow: "allow";
|
|
2479
|
-
deny: "deny";
|
|
2480
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2481
|
-
ask: "ask";
|
|
2482
|
-
allow: "allow";
|
|
2483
|
-
deny: "deny";
|
|
2484
|
-
}>>]>>;
|
|
2485
|
-
todo: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2486
|
-
ask: "ask";
|
|
2487
|
-
allow: "allow";
|
|
2488
|
-
deny: "deny";
|
|
2489
|
-
}>>;
|
|
2490
|
-
question: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2491
|
-
ask: "ask";
|
|
2492
|
-
allow: "allow";
|
|
2493
|
-
deny: "deny";
|
|
2494
|
-
}>>;
|
|
2495
|
-
skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2496
|
-
ask: "ask";
|
|
2497
|
-
allow: "allow";
|
|
2498
|
-
deny: "deny";
|
|
2499
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2500
|
-
ask: "ask";
|
|
2501
|
-
allow: "allow";
|
|
2502
|
-
deny: "deny";
|
|
2503
|
-
}>>]>>;
|
|
2504
|
-
memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2505
|
-
ask: "ask";
|
|
2506
|
-
allow: "allow";
|
|
2507
|
-
deny: "deny";
|
|
2508
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2509
|
-
ask: "ask";
|
|
2510
|
-
allow: "allow";
|
|
2511
|
-
deny: "deny";
|
|
2512
|
-
}>>]>>;
|
|
2513
|
-
note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2514
|
-
ask: "ask";
|
|
2515
|
-
allow: "allow";
|
|
2516
|
-
deny: "deny";
|
|
2517
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2518
|
-
ask: "ask";
|
|
2519
|
-
allow: "allow";
|
|
2520
|
-
deny: "deny";
|
|
2521
|
-
}>>]>>;
|
|
2522
|
-
pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2523
|
-
ask: "ask";
|
|
2524
|
-
allow: "allow";
|
|
2525
|
-
deny: "deny";
|
|
2526
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2527
|
-
ask: "ask";
|
|
2528
|
-
allow: "allow";
|
|
2529
|
-
deny: "deny";
|
|
2530
|
-
}>>]>>;
|
|
2531
|
-
pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2532
|
-
ask: "ask";
|
|
2533
|
-
allow: "allow";
|
|
2534
|
-
deny: "deny";
|
|
2535
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2536
|
-
ask: "ask";
|
|
2537
|
-
allow: "allow";
|
|
2538
|
-
deny: "deny";
|
|
2539
|
-
}>>]>>;
|
|
2540
|
-
external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2541
|
-
ask: "ask";
|
|
2542
|
-
allow: "allow";
|
|
2543
|
-
deny: "deny";
|
|
2544
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2545
|
-
ask: "ask";
|
|
2546
|
-
allow: "allow";
|
|
2547
|
-
deny: "deny";
|
|
2548
|
-
}>>]>>;
|
|
2549
|
-
doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2550
|
-
ask: "ask";
|
|
2551
|
-
allow: "allow";
|
|
2552
|
-
deny: "deny";
|
|
2553
|
-
}>>;
|
|
2554
|
-
}, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2555
|
-
ask: "ask";
|
|
2556
|
-
allow: "allow";
|
|
2557
|
-
deny: "deny";
|
|
2558
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2559
|
-
ask: "ask";
|
|
2560
|
-
allow: "allow";
|
|
2561
|
-
deny: "deny";
|
|
2562
|
-
}>>]>>>;
|
|
2563
|
-
type AgentPermission = z$1.infer<typeof AgentPermissionSchema>;
|
|
2564
2434
|
declare const AgentModeSchema: z$1.ZodEnum<{
|
|
2565
2435
|
all: "all";
|
|
2566
2436
|
subagent: "subagent";
|
|
@@ -2602,172 +2472,172 @@ declare const AgentMetadataSchema: z$1.ZodObject<{
|
|
|
2602
2472
|
prompt: z$1.ZodOptional<z$1.ZodString>;
|
|
2603
2473
|
permission: z$1.ZodOptional<z$1.ZodObject<{
|
|
2604
2474
|
read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2605
|
-
ask: "ask";
|
|
2606
2475
|
allow: "allow";
|
|
2607
2476
|
deny: "deny";
|
|
2608
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2609
2477
|
ask: "ask";
|
|
2478
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2610
2479
|
allow: "allow";
|
|
2611
2480
|
deny: "deny";
|
|
2481
|
+
ask: "ask";
|
|
2612
2482
|
}>>]>>;
|
|
2613
2483
|
edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2614
|
-
ask: "ask";
|
|
2615
2484
|
allow: "allow";
|
|
2616
2485
|
deny: "deny";
|
|
2617
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2618
2486
|
ask: "ask";
|
|
2487
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2619
2488
|
allow: "allow";
|
|
2620
2489
|
deny: "deny";
|
|
2490
|
+
ask: "ask";
|
|
2621
2491
|
}>>]>>;
|
|
2622
2492
|
write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2623
|
-
ask: "ask";
|
|
2624
2493
|
allow: "allow";
|
|
2625
2494
|
deny: "deny";
|
|
2626
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2627
2495
|
ask: "ask";
|
|
2496
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2628
2497
|
allow: "allow";
|
|
2629
2498
|
deny: "deny";
|
|
2499
|
+
ask: "ask";
|
|
2630
2500
|
}>>]>>;
|
|
2631
2501
|
glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2632
|
-
ask: "ask";
|
|
2633
2502
|
allow: "allow";
|
|
2634
2503
|
deny: "deny";
|
|
2635
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2636
2504
|
ask: "ask";
|
|
2505
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2637
2506
|
allow: "allow";
|
|
2638
2507
|
deny: "deny";
|
|
2508
|
+
ask: "ask";
|
|
2639
2509
|
}>>]>>;
|
|
2640
2510
|
grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2641
|
-
ask: "ask";
|
|
2642
2511
|
allow: "allow";
|
|
2643
2512
|
deny: "deny";
|
|
2644
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2645
2513
|
ask: "ask";
|
|
2514
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2646
2515
|
allow: "allow";
|
|
2647
2516
|
deny: "deny";
|
|
2517
|
+
ask: "ask";
|
|
2648
2518
|
}>>]>>;
|
|
2649
2519
|
list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2650
|
-
ask: "ask";
|
|
2651
2520
|
allow: "allow";
|
|
2652
2521
|
deny: "deny";
|
|
2653
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2654
2522
|
ask: "ask";
|
|
2523
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2655
2524
|
allow: "allow";
|
|
2656
2525
|
deny: "deny";
|
|
2526
|
+
ask: "ask";
|
|
2657
2527
|
}>>]>>;
|
|
2658
2528
|
bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2659
|
-
ask: "ask";
|
|
2660
2529
|
allow: "allow";
|
|
2661
2530
|
deny: "deny";
|
|
2662
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2663
2531
|
ask: "ask";
|
|
2532
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2664
2533
|
allow: "allow";
|
|
2665
2534
|
deny: "deny";
|
|
2535
|
+
ask: "ask";
|
|
2666
2536
|
}>>]>>;
|
|
2667
2537
|
webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2668
|
-
ask: "ask";
|
|
2669
2538
|
allow: "allow";
|
|
2670
2539
|
deny: "deny";
|
|
2671
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2672
2540
|
ask: "ask";
|
|
2541
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2673
2542
|
allow: "allow";
|
|
2674
2543
|
deny: "deny";
|
|
2544
|
+
ask: "ask";
|
|
2675
2545
|
}>>]>>;
|
|
2676
2546
|
websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2677
|
-
ask: "ask";
|
|
2678
2547
|
allow: "allow";
|
|
2679
2548
|
deny: "deny";
|
|
2680
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2681
2549
|
ask: "ask";
|
|
2550
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2682
2551
|
allow: "allow";
|
|
2683
2552
|
deny: "deny";
|
|
2553
|
+
ask: "ask";
|
|
2684
2554
|
}>>]>>;
|
|
2685
2555
|
task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2686
|
-
ask: "ask";
|
|
2687
2556
|
allow: "allow";
|
|
2688
2557
|
deny: "deny";
|
|
2689
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2690
2558
|
ask: "ask";
|
|
2559
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2691
2560
|
allow: "allow";
|
|
2692
2561
|
deny: "deny";
|
|
2562
|
+
ask: "ask";
|
|
2693
2563
|
}>>]>>;
|
|
2694
2564
|
todo: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2695
|
-
ask: "ask";
|
|
2696
2565
|
allow: "allow";
|
|
2697
2566
|
deny: "deny";
|
|
2567
|
+
ask: "ask";
|
|
2698
2568
|
}>>;
|
|
2699
2569
|
question: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2700
|
-
ask: "ask";
|
|
2701
2570
|
allow: "allow";
|
|
2702
2571
|
deny: "deny";
|
|
2572
|
+
ask: "ask";
|
|
2703
2573
|
}>>;
|
|
2704
2574
|
skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2705
|
-
ask: "ask";
|
|
2706
2575
|
allow: "allow";
|
|
2707
2576
|
deny: "deny";
|
|
2708
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2709
2577
|
ask: "ask";
|
|
2578
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2710
2579
|
allow: "allow";
|
|
2711
2580
|
deny: "deny";
|
|
2581
|
+
ask: "ask";
|
|
2712
2582
|
}>>]>>;
|
|
2713
2583
|
memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2714
|
-
ask: "ask";
|
|
2715
2584
|
allow: "allow";
|
|
2716
2585
|
deny: "deny";
|
|
2717
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2718
2586
|
ask: "ask";
|
|
2587
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2719
2588
|
allow: "allow";
|
|
2720
2589
|
deny: "deny";
|
|
2590
|
+
ask: "ask";
|
|
2721
2591
|
}>>]>>;
|
|
2722
2592
|
note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2723
|
-
ask: "ask";
|
|
2724
2593
|
allow: "allow";
|
|
2725
2594
|
deny: "deny";
|
|
2726
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2727
2595
|
ask: "ask";
|
|
2596
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2728
2597
|
allow: "allow";
|
|
2729
2598
|
deny: "deny";
|
|
2599
|
+
ask: "ask";
|
|
2730
2600
|
}>>]>>;
|
|
2731
2601
|
pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2732
|
-
ask: "ask";
|
|
2733
2602
|
allow: "allow";
|
|
2734
2603
|
deny: "deny";
|
|
2735
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2736
2604
|
ask: "ask";
|
|
2605
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2737
2606
|
allow: "allow";
|
|
2738
2607
|
deny: "deny";
|
|
2608
|
+
ask: "ask";
|
|
2739
2609
|
}>>]>>;
|
|
2740
2610
|
pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2741
|
-
ask: "ask";
|
|
2742
2611
|
allow: "allow";
|
|
2743
2612
|
deny: "deny";
|
|
2744
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2745
2613
|
ask: "ask";
|
|
2614
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2746
2615
|
allow: "allow";
|
|
2747
2616
|
deny: "deny";
|
|
2617
|
+
ask: "ask";
|
|
2748
2618
|
}>>]>>;
|
|
2749
2619
|
external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2750
|
-
ask: "ask";
|
|
2751
2620
|
allow: "allow";
|
|
2752
2621
|
deny: "deny";
|
|
2753
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2754
2622
|
ask: "ask";
|
|
2623
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2755
2624
|
allow: "allow";
|
|
2756
2625
|
deny: "deny";
|
|
2626
|
+
ask: "ask";
|
|
2757
2627
|
}>>]>>;
|
|
2758
2628
|
doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2759
|
-
ask: "ask";
|
|
2760
2629
|
allow: "allow";
|
|
2761
2630
|
deny: "deny";
|
|
2631
|
+
ask: "ask";
|
|
2762
2632
|
}>>;
|
|
2763
2633
|
}, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
2764
|
-
ask: "ask";
|
|
2765
2634
|
allow: "allow";
|
|
2766
2635
|
deny: "deny";
|
|
2767
|
-
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2768
2636
|
ask: "ask";
|
|
2637
|
+
}>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
2769
2638
|
allow: "allow";
|
|
2770
2639
|
deny: "deny";
|
|
2640
|
+
ask: "ask";
|
|
2771
2641
|
}>>]>>>>;
|
|
2772
2642
|
steps: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2773
2643
|
color: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodEnum<{
|
|
@@ -2980,4 +2850,4 @@ interface PluginDefinition {
|
|
|
2980
2850
|
'context.build.after'?: (input: ContextBuildAfterInput, output: HookOutputWrapper<ContextBuildAfterInput>) => Promise<void>;
|
|
2981
2851
|
}
|
|
2982
2852
|
|
|
2983
|
-
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema, type AgentModel, AgentModelSchema,
|
|
2853
|
+
export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema, type AgentModel, AgentModelSchema, AgentSchema, type AgentScope, AgentScopeSchema, type AuthHook, type AuthOuathResult, CallIDSchema, type CommandAfterInput, CommandAfterInputSchema, type CommandArguments, CommandArgumentsSchema, type CommandBeforeInput, CommandBeforeInputSchema, type CommandCompleteInput, CommandCompleteInputSchema, type CommandDefinition, type CommandExecuteResult, type CommandExecuteResultMetadata, CommandExecuteResultMetadataSchema, CommandExecuteResultSchema, type CommandExecutionContext, CommandExecutionContextSchema, CommandExecutorSchema, type CommandHookDefinition, type CommandInitContext, CommandInitContextSchema, type CommandInitResult, CommandInitResultSchema, type CommandMetadata, CommandMetadataSchema, type CommandPromptPart, CommandPromptPartSchema, type CommandSource, CommandSourceSchema, 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, 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 StepFinishInput, StepFinishInputSchema, type StepStartInput, StepStartInputSchema, type StepStopFailureInput, StepStopFailureInputSchema, type StepStopInput, StepStopInputSchema, type StoreSourceType, type SystemTransformInput, SystemTransformInputSchema, type TaskCompleteInput, TaskCompleteInputSchema, type TaskDefinition, type TaskProgressInput, TaskProgressInputSchema, type TaskRunningInput, TaskRunningInputSchema, type TaskSource, TaskSourceSchema, type TaskStartInput, TaskStartInputSchema, type TextCompleteInput, TextCompleteInputSchema, type ToolAfterInput, ToolAfterInputSchema, ToolArgsSchema, type ToolBeforeInput, ToolBeforeInputSchema, type ToolDefinitionInput, ToolDefinitionInputSchema, type ToolFailureInput, ToolFailureInputSchema, ToolResultSchema, findMarketplace, findMarketplacesByCategory, getEventInputSchema, listMarketplaces, registerMarketplace, safeValidateHookInput, tool, unregisterMarketplace, validateHookInput };
|