@easbot/plugin 0.2.35 → 0.2.37
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +172 -172
- package/dist/index.d.ts +172 -172
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare const HookEvent: {
|
|
|
70
70
|
type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
|
|
71
71
|
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" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end")[];
|
|
72
72
|
interface HookContext {
|
|
73
|
-
|
|
73
|
+
sessionId?: string;
|
|
74
74
|
agent?: string;
|
|
75
75
|
model?: string;
|
|
76
76
|
cwd?: string;
|
|
@@ -358,8 +358,8 @@ declare const CallIDSchema: z$1.ZodString;
|
|
|
358
358
|
declare const AgentSchema: z$1.ZodOptional<z$1.ZodString>;
|
|
359
359
|
declare const ModelSchema: z$1.ZodOptional<z$1.ZodString>;
|
|
360
360
|
declare const ModelObjectSchema: z$1.ZodOptional<z$1.ZodObject<{
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
providerId: z$1.ZodString;
|
|
362
|
+
modelId: z$1.ZodString;
|
|
363
363
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
364
364
|
id: z$1.ZodString;
|
|
365
365
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -381,7 +381,7 @@ declare const FinishReasonSchema: z$1.ZodEnum<{
|
|
|
381
381
|
stop_sequence: "stop_sequence";
|
|
382
382
|
}>;
|
|
383
383
|
declare const SessionStartInputSchema: z$1.ZodObject<{
|
|
384
|
-
|
|
384
|
+
sessionId: z$1.ZodString;
|
|
385
385
|
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
386
386
|
agent: "agent";
|
|
387
387
|
system: "system";
|
|
@@ -394,7 +394,7 @@ declare const SessionStartInputSchema: z$1.ZodObject<{
|
|
|
394
394
|
}, z$1.core.$strip>;
|
|
395
395
|
type SessionStartInput = z$1.infer<typeof SessionStartInputSchema>;
|
|
396
396
|
declare const SessionEndInputSchema: z$1.ZodObject<{
|
|
397
|
-
|
|
397
|
+
sessionId: z$1.ZodString;
|
|
398
398
|
reason: z$1.ZodEnum<{
|
|
399
399
|
error: "error";
|
|
400
400
|
timeout: "timeout";
|
|
@@ -407,7 +407,7 @@ declare const SessionEndInputSchema: z$1.ZodObject<{
|
|
|
407
407
|
}, z$1.core.$strip>;
|
|
408
408
|
type SessionEndInput = z$1.infer<typeof SessionEndInputSchema>;
|
|
409
409
|
declare const SessionCompactingInputSchema: z$1.ZodObject<{
|
|
410
|
-
|
|
410
|
+
sessionId: z$1.ZodString;
|
|
411
411
|
trigger: z$1.ZodEnum<{
|
|
412
412
|
auto: "auto";
|
|
413
413
|
manual: "manual";
|
|
@@ -418,24 +418,24 @@ declare const SessionCompactingInputSchema: z$1.ZodObject<{
|
|
|
418
418
|
}, z$1.core.$strip>;
|
|
419
419
|
type SessionCompactingInput = z$1.infer<typeof SessionCompactingInputSchema>;
|
|
420
420
|
declare const SessionCompactInputSchema: z$1.ZodObject<{
|
|
421
|
-
|
|
421
|
+
sessionId: z$1.ZodString;
|
|
422
422
|
summary: z$1.ZodString;
|
|
423
423
|
previousLength: z$1.ZodNumber;
|
|
424
424
|
newLength: z$1.ZodNumber;
|
|
425
425
|
}, z$1.core.$strip>;
|
|
426
426
|
type SessionCompactInput = z$1.infer<typeof SessionCompactInputSchema>;
|
|
427
427
|
declare const StepStartInputSchema: z$1.ZodObject<{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
sessionId: z$1.ZodString;
|
|
429
|
+
messageId: z$1.ZodString;
|
|
430
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
431
431
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
432
432
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
433
433
|
}, z$1.core.$strip>;
|
|
434
434
|
type StepStartInput = z$1.infer<typeof StepStartInputSchema>;
|
|
435
435
|
declare const StepFinishInputSchema: z$1.ZodObject<{
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
sessionId: z$1.ZodString;
|
|
437
|
+
messageId: z$1.ZodString;
|
|
438
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
439
439
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
440
440
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
441
441
|
finishReason: z$1.ZodEnum<{
|
|
@@ -452,12 +452,12 @@ declare const StepFinishInputSchema: z$1.ZodObject<{
|
|
|
452
452
|
}, z$1.core.$strip>;
|
|
453
453
|
type StepFinishInput = z$1.infer<typeof StepFinishInputSchema>;
|
|
454
454
|
declare const StepStopInputSchema: z$1.ZodObject<{
|
|
455
|
-
|
|
455
|
+
sessionId: z$1.ZodString;
|
|
456
456
|
reason: z$1.ZodString;
|
|
457
457
|
}, z$1.core.$strip>;
|
|
458
458
|
type StepStopInput = z$1.infer<typeof StepStopInputSchema>;
|
|
459
459
|
declare const StepStopFailureInputSchema: z$1.ZodObject<{
|
|
460
|
-
|
|
460
|
+
sessionId: z$1.ZodString;
|
|
461
461
|
error: z$1.ZodString;
|
|
462
462
|
errorType: z$1.ZodEnum<{
|
|
463
463
|
timeout: "timeout";
|
|
@@ -525,10 +525,10 @@ declare const MessageSchema: z$1.ZodObject<{
|
|
|
525
525
|
tool_call_id: z$1.ZodOptional<z$1.ZodString>;
|
|
526
526
|
}, z$1.core.$strip>;
|
|
527
527
|
declare const MessageReceiveInputSchema: z$1.ZodObject<{
|
|
528
|
-
|
|
528
|
+
sessionId: z$1.ZodString;
|
|
529
529
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
530
530
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
531
|
-
|
|
531
|
+
messageId: z$1.ZodString;
|
|
532
532
|
message: z$1.ZodObject<{
|
|
533
533
|
id: z$1.ZodString;
|
|
534
534
|
role: z$1.ZodLiteral<"user">;
|
|
@@ -555,7 +555,7 @@ declare const MessageReceiveInputSchema: z$1.ZodObject<{
|
|
|
555
555
|
}, z$1.core.$strip>;
|
|
556
556
|
type MessageReceiveInput = z$1.infer<typeof MessageReceiveInputSchema>;
|
|
557
557
|
declare const MessageTransformInputSchema: z$1.ZodObject<{
|
|
558
|
-
|
|
558
|
+
sessionId: z$1.ZodString;
|
|
559
559
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
560
560
|
id: z$1.ZodString;
|
|
561
561
|
role: z$1.ZodEnum<{
|
|
@@ -589,7 +589,7 @@ declare const MessageTransformInputSchema: z$1.ZodObject<{
|
|
|
589
589
|
}, z$1.core.$strip>;
|
|
590
590
|
type MessageTransformInput = z$1.infer<typeof MessageTransformInputSchema>;
|
|
591
591
|
declare const SystemTransformInputSchema: z$1.ZodObject<{
|
|
592
|
-
|
|
592
|
+
sessionId: z$1.ZodString;
|
|
593
593
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
594
594
|
system: z$1.ZodArray<z$1.ZodString>;
|
|
595
595
|
}, z$1.core.$strip>;
|
|
@@ -602,18 +602,18 @@ declare const ToolResultSchema: z$1.ZodObject<{
|
|
|
602
602
|
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
603
603
|
}, z$1.core.$strip>;
|
|
604
604
|
declare const ToolBeforeInputSchema: z$1.ZodObject<{
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
sessionId: z$1.ZodString;
|
|
606
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
607
607
|
tool: z$1.ZodString;
|
|
608
|
-
|
|
608
|
+
callId: z$1.ZodString;
|
|
609
609
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
610
610
|
}, z$1.core.$strip>;
|
|
611
611
|
type ToolBeforeInput = z$1.infer<typeof ToolBeforeInputSchema>;
|
|
612
612
|
declare const ToolAfterInputSchema: z$1.ZodObject<{
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
sessionId: z$1.ZodString;
|
|
614
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
615
615
|
tool: z$1.ZodString;
|
|
616
|
-
|
|
616
|
+
callId: z$1.ZodString;
|
|
617
617
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
618
618
|
result: z$1.ZodObject<{
|
|
619
619
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -625,9 +625,9 @@ declare const ToolAfterInputSchema: z$1.ZodObject<{
|
|
|
625
625
|
}, z$1.core.$strip>;
|
|
626
626
|
type ToolAfterInput = z$1.infer<typeof ToolAfterInputSchema>;
|
|
627
627
|
declare const ToolFailureInputSchema: z$1.ZodObject<{
|
|
628
|
-
|
|
628
|
+
sessionId: z$1.ZodString;
|
|
629
629
|
tool: z$1.ZodString;
|
|
630
|
-
|
|
630
|
+
callId: z$1.ZodString;
|
|
631
631
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
632
632
|
error: z$1.ZodString;
|
|
633
633
|
errorType: z$1.ZodEnum<{
|
|
@@ -639,7 +639,7 @@ declare const ToolFailureInputSchema: z$1.ZodObject<{
|
|
|
639
639
|
}, z$1.core.$strip>;
|
|
640
640
|
type ToolFailureInput = z$1.infer<typeof ToolFailureInputSchema>;
|
|
641
641
|
declare const ToolDefinitionInputSchema: z$1.ZodObject<{
|
|
642
|
-
|
|
642
|
+
sessionId: z$1.ZodString;
|
|
643
643
|
toolID: z$1.ZodString;
|
|
644
644
|
definition: z$1.ZodObject<{
|
|
645
645
|
name: z$1.ZodString;
|
|
@@ -649,13 +649,13 @@ declare const ToolDefinitionInputSchema: z$1.ZodObject<{
|
|
|
649
649
|
}, z$1.core.$strip>;
|
|
650
650
|
type ToolDefinitionInput = z$1.infer<typeof ToolDefinitionInputSchema>;
|
|
651
651
|
declare const CommandBeforeInputSchema: z$1.ZodObject<{
|
|
652
|
-
|
|
652
|
+
sessionId: z$1.ZodString;
|
|
653
653
|
command: z$1.ZodString;
|
|
654
654
|
arguments: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>;
|
|
655
655
|
}, z$1.core.$strip>;
|
|
656
656
|
type CommandBeforeInput = z$1.infer<typeof CommandBeforeInputSchema>;
|
|
657
657
|
declare const CommandAfterInputSchema: z$1.ZodObject<{
|
|
658
|
-
|
|
658
|
+
sessionId: z$1.ZodString;
|
|
659
659
|
command: z$1.ZodString;
|
|
660
660
|
arguments: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>>;
|
|
661
661
|
result: z$1.ZodObject<{
|
|
@@ -687,7 +687,7 @@ declare const PermissionRequestSchema: z$1.ZodObject<{
|
|
|
687
687
|
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
688
688
|
}, z$1.core.$strip>;
|
|
689
689
|
declare const PermissionAskInputSchema: z$1.ZodObject<{
|
|
690
|
-
|
|
690
|
+
sessionId: z$1.ZodString;
|
|
691
691
|
request: z$1.ZodObject<{
|
|
692
692
|
tool: z$1.ZodString;
|
|
693
693
|
args: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
@@ -702,7 +702,7 @@ declare const PermissionAskInputSchema: z$1.ZodObject<{
|
|
|
702
702
|
}, z$1.core.$strip>;
|
|
703
703
|
type PermissionAskInput = z$1.infer<typeof PermissionAskInputSchema>;
|
|
704
704
|
declare const PermissionDeniedInputSchema: z$1.ZodObject<{
|
|
705
|
-
|
|
705
|
+
sessionId: z$1.ZodString;
|
|
706
706
|
tool: z$1.ZodString;
|
|
707
707
|
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
708
708
|
}, z$1.core.$strip>;
|
|
@@ -726,11 +726,11 @@ declare const LlmParamsSchema: z$1.ZodObject<{
|
|
|
726
726
|
}>>;
|
|
727
727
|
}, z$1.core.$strip>;
|
|
728
728
|
declare const LlmParamsInputSchema: z$1.ZodObject<{
|
|
729
|
-
|
|
729
|
+
sessionId: z$1.ZodString;
|
|
730
730
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
731
731
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
providerId: z$1.ZodString;
|
|
733
|
+
modelId: z$1.ZodString;
|
|
734
734
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
735
735
|
id: z$1.ZodString;
|
|
736
736
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -757,11 +757,11 @@ declare const LlmParamsInputSchema: z$1.ZodObject<{
|
|
|
757
757
|
}, z$1.core.$strip>;
|
|
758
758
|
type LlmParamsInput = z$1.infer<typeof LlmParamsInputSchema>;
|
|
759
759
|
declare const LlmHeadersInputSchema: z$1.ZodObject<{
|
|
760
|
-
|
|
760
|
+
sessionId: z$1.ZodString;
|
|
761
761
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
762
762
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
763
|
-
|
|
764
|
-
|
|
763
|
+
providerId: z$1.ZodString;
|
|
764
|
+
modelId: z$1.ZodString;
|
|
765
765
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
766
766
|
id: z$1.ZodString;
|
|
767
767
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -779,29 +779,29 @@ declare const LlmHeadersInputSchema: z$1.ZodObject<{
|
|
|
779
779
|
type LlmHeadersInput = z$1.infer<typeof LlmHeadersInputSchema>;
|
|
780
780
|
declare const ShellEnvInputSchema: z$1.ZodObject<{
|
|
781
781
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
783
|
+
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
784
784
|
}, z$1.core.$strip>;
|
|
785
785
|
type ShellEnvInput = z$1.infer<typeof ShellEnvInputSchema>;
|
|
786
786
|
declare const TextCompleteInputSchema: z$1.ZodObject<{
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
787
|
+
sessionId: z$1.ZodString;
|
|
788
|
+
messageId: z$1.ZodString;
|
|
789
|
+
partId: z$1.ZodString;
|
|
790
790
|
text: z$1.ZodString;
|
|
791
791
|
}, z$1.core.$strip>;
|
|
792
792
|
type TextCompleteInput = z$1.infer<typeof TextCompleteInputSchema>;
|
|
793
793
|
declare const ContextBuildBeforeInputSchema: z$1.ZodObject<{
|
|
794
|
-
|
|
794
|
+
sessionId: z$1.ZodString;
|
|
795
795
|
mode: z$1.ZodEnum<{
|
|
796
796
|
agent: "agent";
|
|
797
797
|
chat: "chat";
|
|
798
798
|
query: "query";
|
|
799
799
|
}>;
|
|
800
|
-
|
|
800
|
+
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
801
801
|
}, z$1.core.$strip>;
|
|
802
802
|
type ContextBuildBeforeInput = z$1.infer<typeof ContextBuildBeforeInputSchema>;
|
|
803
803
|
declare const ContextBuildAfterInputSchema: z$1.ZodObject<{
|
|
804
|
-
|
|
804
|
+
sessionId: z$1.ZodString;
|
|
805
805
|
context: z$1.ZodObject<{
|
|
806
806
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
807
807
|
id: z$1.ZodString;
|
|
@@ -840,34 +840,34 @@ declare const ContextBuildAfterInputSchema: z$1.ZodObject<{
|
|
|
840
840
|
type ContextBuildAfterInput = z$1.infer<typeof ContextBuildAfterInputSchema>;
|
|
841
841
|
declare const GatewayMessageReceiveInputSchema: z$1.ZodObject<{
|
|
842
842
|
gatewayID: z$1.ZodString;
|
|
843
|
-
|
|
843
|
+
messageId: z$1.ZodString;
|
|
844
844
|
message: z$1.ZodUnknown;
|
|
845
845
|
}, z$1.core.$strip>;
|
|
846
846
|
type GatewayMessageReceiveInput = z$1.infer<typeof GatewayMessageReceiveInputSchema>;
|
|
847
847
|
declare const GatewayMessageProcessInputSchema: z$1.ZodObject<{
|
|
848
848
|
gatewayID: z$1.ZodString;
|
|
849
|
-
|
|
849
|
+
messageId: z$1.ZodString;
|
|
850
850
|
message: z$1.ZodUnknown;
|
|
851
|
-
|
|
851
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
852
852
|
}, z$1.core.$strip>;
|
|
853
853
|
type GatewayMessageProcessInput = z$1.infer<typeof GatewayMessageProcessInputSchema>;
|
|
854
854
|
declare const GatewayMessageCompleteInputSchema: z$1.ZodObject<{
|
|
855
855
|
gatewayID: z$1.ZodString;
|
|
856
|
-
|
|
856
|
+
messageId: z$1.ZodString;
|
|
857
857
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
858
858
|
}, z$1.core.$strip>;
|
|
859
859
|
type GatewayMessageCompleteInput = z$1.infer<typeof GatewayMessageCompleteInputSchema>;
|
|
860
860
|
declare const GatewayMessageSendInputSchema: z$1.ZodObject<{
|
|
861
861
|
gatewayID: z$1.ZodString;
|
|
862
|
-
|
|
862
|
+
messageId: z$1.ZodString;
|
|
863
863
|
message: z$1.ZodUnknown;
|
|
864
864
|
target: z$1.ZodOptional<z$1.ZodString>;
|
|
865
865
|
}, z$1.core.$strip>;
|
|
866
866
|
type GatewayMessageSendInput = z$1.infer<typeof GatewayMessageSendInputSchema>;
|
|
867
867
|
declare const GatewayMessageDeliveredInputSchema: z$1.ZodObject<{
|
|
868
868
|
gatewayID: z$1.ZodString;
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
messageId: z$1.ZodString;
|
|
870
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
871
871
|
channel: z$1.ZodObject<{
|
|
872
872
|
platform: z$1.ZodString;
|
|
873
873
|
channelId: z$1.ZodString;
|
|
@@ -877,8 +877,8 @@ declare const GatewayMessageDeliveredInputSchema: z$1.ZodObject<{
|
|
|
877
877
|
type GatewayMessageDeliveredInput = z$1.infer<typeof GatewayMessageDeliveredInputSchema>;
|
|
878
878
|
declare const GatewayMessageReadInputSchema: z$1.ZodObject<{
|
|
879
879
|
gatewayID: z$1.ZodString;
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
messageId: z$1.ZodString;
|
|
881
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
882
882
|
channel: z$1.ZodObject<{
|
|
883
883
|
platform: z$1.ZodString;
|
|
884
884
|
channelId: z$1.ZodString;
|
|
@@ -887,13 +887,13 @@ declare const GatewayMessageReadInputSchema: z$1.ZodObject<{
|
|
|
887
887
|
}, z$1.core.$strip>;
|
|
888
888
|
type GatewayMessageReadInput = z$1.infer<typeof GatewayMessageReadInputSchema>;
|
|
889
889
|
declare const HeartbeatTriggerInputSchema: z$1.ZodObject<{
|
|
890
|
-
|
|
890
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
891
891
|
timestamp: z$1.ZodNumber;
|
|
892
892
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
893
893
|
}, z$1.core.$strip>;
|
|
894
894
|
type HeartbeatTriggerInput = z$1.infer<typeof HeartbeatTriggerInputSchema>;
|
|
895
895
|
declare const HeartbeatCompleteInputSchema: z$1.ZodObject<{
|
|
896
|
-
|
|
896
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
897
897
|
timestamp: z$1.ZodNumber;
|
|
898
898
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
899
899
|
}, z$1.core.$strip>;
|
|
@@ -979,7 +979,7 @@ declare const TaskCompleteInputSchema: z$1.ZodObject<{
|
|
|
979
979
|
}, z$1.core.$strip>;
|
|
980
980
|
type TaskCompleteInput = z$1.infer<typeof TaskCompleteInputSchema>;
|
|
981
981
|
declare const LoopStartInputSchema: z$1.ZodObject<{
|
|
982
|
-
|
|
982
|
+
sessionId: z$1.ZodString;
|
|
983
983
|
step: z$1.ZodNumber;
|
|
984
984
|
lastUserId: z$1.ZodString;
|
|
985
985
|
result: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -990,7 +990,7 @@ declare const LoopStartInputSchema: z$1.ZodObject<{
|
|
|
990
990
|
}, z$1.core.$strip>;
|
|
991
991
|
type LoopStartInput = z$1.infer<typeof LoopStartInputSchema>;
|
|
992
992
|
declare const LoopEndInputSchema: z$1.ZodObject<{
|
|
993
|
-
|
|
993
|
+
sessionId: z$1.ZodString;
|
|
994
994
|
step: z$1.ZodNumber;
|
|
995
995
|
lastUserId: z$1.ZodString;
|
|
996
996
|
result: z$1.ZodEnum<{
|
|
@@ -1001,7 +1001,7 @@ declare const LoopEndInputSchema: z$1.ZodObject<{
|
|
|
1001
1001
|
type LoopEndInput = z$1.infer<typeof LoopEndInputSchema>;
|
|
1002
1002
|
declare const EventInputSchemas: {
|
|
1003
1003
|
readonly "session.start": z$1.ZodObject<{
|
|
1004
|
-
|
|
1004
|
+
sessionId: z$1.ZodString;
|
|
1005
1005
|
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1006
1006
|
agent: "agent";
|
|
1007
1007
|
system: "system";
|
|
@@ -1013,7 +1013,7 @@ declare const EventInputSchemas: {
|
|
|
1013
1013
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1014
1014
|
}, z$1.core.$strip>;
|
|
1015
1015
|
readonly "session.end": z$1.ZodObject<{
|
|
1016
|
-
|
|
1016
|
+
sessionId: z$1.ZodString;
|
|
1017
1017
|
reason: z$1.ZodEnum<{
|
|
1018
1018
|
error: "error";
|
|
1019
1019
|
timeout: "timeout";
|
|
@@ -1025,7 +1025,7 @@ declare const EventInputSchemas: {
|
|
|
1025
1025
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1026
1026
|
}, z$1.core.$strip>;
|
|
1027
1027
|
readonly "session.compacting": z$1.ZodObject<{
|
|
1028
|
-
|
|
1028
|
+
sessionId: z$1.ZodString;
|
|
1029
1029
|
trigger: z$1.ZodEnum<{
|
|
1030
1030
|
auto: "auto";
|
|
1031
1031
|
manual: "manual";
|
|
@@ -1035,22 +1035,22 @@ declare const EventInputSchemas: {
|
|
|
1035
1035
|
threshold: z$1.ZodNumber;
|
|
1036
1036
|
}, z$1.core.$strip>;
|
|
1037
1037
|
readonly "session.compact": z$1.ZodObject<{
|
|
1038
|
-
|
|
1038
|
+
sessionId: z$1.ZodString;
|
|
1039
1039
|
summary: z$1.ZodString;
|
|
1040
1040
|
previousLength: z$1.ZodNumber;
|
|
1041
1041
|
newLength: z$1.ZodNumber;
|
|
1042
1042
|
}, z$1.core.$strip>;
|
|
1043
1043
|
readonly "step.start": z$1.ZodObject<{
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1044
|
+
sessionId: z$1.ZodString;
|
|
1045
|
+
messageId: z$1.ZodString;
|
|
1046
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1047
1047
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1048
1048
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1049
1049
|
}, z$1.core.$strip>;
|
|
1050
1050
|
readonly "step.finish": z$1.ZodObject<{
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
sessionId: z$1.ZodString;
|
|
1052
|
+
messageId: z$1.ZodString;
|
|
1053
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1054
1054
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1055
1055
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1056
1056
|
finishReason: z$1.ZodEnum<{
|
|
@@ -1066,11 +1066,11 @@ declare const EventInputSchemas: {
|
|
|
1066
1066
|
}, z$1.core.$strip>>;
|
|
1067
1067
|
}, z$1.core.$strip>;
|
|
1068
1068
|
readonly "step.stop": z$1.ZodObject<{
|
|
1069
|
-
|
|
1069
|
+
sessionId: z$1.ZodString;
|
|
1070
1070
|
reason: z$1.ZodString;
|
|
1071
1071
|
}, z$1.core.$strip>;
|
|
1072
1072
|
readonly "step.stop.failure": z$1.ZodObject<{
|
|
1073
|
-
|
|
1073
|
+
sessionId: z$1.ZodString;
|
|
1074
1074
|
error: z$1.ZodString;
|
|
1075
1075
|
errorType: z$1.ZodEnum<{
|
|
1076
1076
|
timeout: "timeout";
|
|
@@ -1082,10 +1082,10 @@ declare const EventInputSchemas: {
|
|
|
1082
1082
|
}>;
|
|
1083
1083
|
}, z$1.core.$strip>;
|
|
1084
1084
|
readonly "message.receive": z$1.ZodObject<{
|
|
1085
|
-
|
|
1085
|
+
sessionId: z$1.ZodString;
|
|
1086
1086
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1087
1087
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1088
|
-
|
|
1088
|
+
messageId: z$1.ZodString;
|
|
1089
1089
|
message: z$1.ZodObject<{
|
|
1090
1090
|
id: z$1.ZodString;
|
|
1091
1091
|
role: z$1.ZodLiteral<"user">;
|
|
@@ -1111,7 +1111,7 @@ declare const EventInputSchemas: {
|
|
|
1111
1111
|
}, z$1.core.$strip>;
|
|
1112
1112
|
}, z$1.core.$strip>;
|
|
1113
1113
|
readonly "message.transform": z$1.ZodObject<{
|
|
1114
|
-
|
|
1114
|
+
sessionId: z$1.ZodString;
|
|
1115
1115
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1116
1116
|
id: z$1.ZodString;
|
|
1117
1117
|
role: z$1.ZodEnum<{
|
|
@@ -1144,22 +1144,22 @@ declare const EventInputSchemas: {
|
|
|
1144
1144
|
}, z$1.core.$strip>>;
|
|
1145
1145
|
}, z$1.core.$strip>;
|
|
1146
1146
|
readonly "system.transform": z$1.ZodObject<{
|
|
1147
|
-
|
|
1147
|
+
sessionId: z$1.ZodString;
|
|
1148
1148
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1149
1149
|
system: z$1.ZodArray<z$1.ZodString>;
|
|
1150
1150
|
}, z$1.core.$strip>;
|
|
1151
1151
|
readonly "tool.before": z$1.ZodObject<{
|
|
1152
|
-
|
|
1153
|
-
|
|
1152
|
+
sessionId: z$1.ZodString;
|
|
1153
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1154
1154
|
tool: z$1.ZodString;
|
|
1155
|
-
|
|
1155
|
+
callId: z$1.ZodString;
|
|
1156
1156
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1157
1157
|
}, z$1.core.$strip>;
|
|
1158
1158
|
readonly "tool.after": z$1.ZodObject<{
|
|
1159
|
-
|
|
1160
|
-
|
|
1159
|
+
sessionId: z$1.ZodString;
|
|
1160
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1161
1161
|
tool: z$1.ZodString;
|
|
1162
|
-
|
|
1162
|
+
callId: z$1.ZodString;
|
|
1163
1163
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1164
1164
|
result: z$1.ZodObject<{
|
|
1165
1165
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1170,9 +1170,9 @@ declare const EventInputSchemas: {
|
|
|
1170
1170
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1171
1171
|
}, z$1.core.$strip>;
|
|
1172
1172
|
readonly "tool.failure": z$1.ZodObject<{
|
|
1173
|
-
|
|
1173
|
+
sessionId: z$1.ZodString;
|
|
1174
1174
|
tool: z$1.ZodString;
|
|
1175
|
-
|
|
1175
|
+
callId: z$1.ZodString;
|
|
1176
1176
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1177
1177
|
error: z$1.ZodString;
|
|
1178
1178
|
errorType: z$1.ZodEnum<{
|
|
@@ -1183,7 +1183,7 @@ declare const EventInputSchemas: {
|
|
|
1183
1183
|
}>;
|
|
1184
1184
|
}, z$1.core.$strip>;
|
|
1185
1185
|
readonly "tool.definition": z$1.ZodObject<{
|
|
1186
|
-
|
|
1186
|
+
sessionId: z$1.ZodString;
|
|
1187
1187
|
toolID: z$1.ZodString;
|
|
1188
1188
|
definition: z$1.ZodObject<{
|
|
1189
1189
|
name: z$1.ZodString;
|
|
@@ -1192,12 +1192,12 @@ declare const EventInputSchemas: {
|
|
|
1192
1192
|
}, z$1.core.$strip>;
|
|
1193
1193
|
}, z$1.core.$strip>;
|
|
1194
1194
|
readonly "command.before": z$1.ZodObject<{
|
|
1195
|
-
|
|
1195
|
+
sessionId: z$1.ZodString;
|
|
1196
1196
|
command: z$1.ZodString;
|
|
1197
1197
|
arguments: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>;
|
|
1198
1198
|
}, z$1.core.$strip>;
|
|
1199
1199
|
readonly "command.after": z$1.ZodObject<{
|
|
1200
|
-
|
|
1200
|
+
sessionId: z$1.ZodString;
|
|
1201
1201
|
command: z$1.ZodString;
|
|
1202
1202
|
arguments: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>>;
|
|
1203
1203
|
result: z$1.ZodObject<{
|
|
@@ -1211,7 +1211,7 @@ declare const EventInputSchemas: {
|
|
|
1211
1211
|
}, z$1.core.$strip>;
|
|
1212
1212
|
}, z$1.core.$strip>;
|
|
1213
1213
|
readonly "permission.ask": z$1.ZodObject<{
|
|
1214
|
-
|
|
1214
|
+
sessionId: z$1.ZodString;
|
|
1215
1215
|
request: z$1.ZodObject<{
|
|
1216
1216
|
tool: z$1.ZodString;
|
|
1217
1217
|
args: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
@@ -1225,16 +1225,16 @@ declare const EventInputSchemas: {
|
|
|
1225
1225
|
}, z$1.core.$strip>;
|
|
1226
1226
|
}, z$1.core.$strip>;
|
|
1227
1227
|
readonly "permission.denied": z$1.ZodObject<{
|
|
1228
|
-
|
|
1228
|
+
sessionId: z$1.ZodString;
|
|
1229
1229
|
tool: z$1.ZodString;
|
|
1230
1230
|
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1231
1231
|
}, z$1.core.$strip>;
|
|
1232
1232
|
readonly "llm.params": z$1.ZodObject<{
|
|
1233
|
-
|
|
1233
|
+
sessionId: z$1.ZodString;
|
|
1234
1234
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1235
1235
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
1236
|
-
|
|
1237
|
-
|
|
1236
|
+
providerId: z$1.ZodString;
|
|
1237
|
+
modelId: z$1.ZodString;
|
|
1238
1238
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
1239
1239
|
id: z$1.ZodString;
|
|
1240
1240
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1260,11 +1260,11 @@ declare const EventInputSchemas: {
|
|
|
1260
1260
|
}, z$1.core.$strip>>;
|
|
1261
1261
|
}, z$1.core.$strip>;
|
|
1262
1262
|
readonly "llm.headers": z$1.ZodObject<{
|
|
1263
|
-
|
|
1263
|
+
sessionId: z$1.ZodString;
|
|
1264
1264
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1265
1265
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
1266
|
-
|
|
1267
|
-
|
|
1266
|
+
providerId: z$1.ZodString;
|
|
1267
|
+
modelId: z$1.ZodString;
|
|
1268
1268
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
1269
1269
|
id: z$1.ZodString;
|
|
1270
1270
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1281,26 +1281,26 @@ declare const EventInputSchemas: {
|
|
|
1281
1281
|
}, z$1.core.$strip>;
|
|
1282
1282
|
readonly "shell.env": z$1.ZodObject<{
|
|
1283
1283
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1285
|
+
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1286
1286
|
}, z$1.core.$strip>;
|
|
1287
1287
|
readonly "text.complete": z$1.ZodObject<{
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1288
|
+
sessionId: z$1.ZodString;
|
|
1289
|
+
messageId: z$1.ZodString;
|
|
1290
|
+
partId: z$1.ZodString;
|
|
1291
1291
|
text: z$1.ZodString;
|
|
1292
1292
|
}, z$1.core.$strip>;
|
|
1293
1293
|
readonly "context.build.before": z$1.ZodObject<{
|
|
1294
|
-
|
|
1294
|
+
sessionId: z$1.ZodString;
|
|
1295
1295
|
mode: z$1.ZodEnum<{
|
|
1296
1296
|
agent: "agent";
|
|
1297
1297
|
chat: "chat";
|
|
1298
1298
|
query: "query";
|
|
1299
1299
|
}>;
|
|
1300
|
-
|
|
1300
|
+
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
1301
1301
|
}, z$1.core.$strip>;
|
|
1302
1302
|
readonly "context.build.after": z$1.ZodObject<{
|
|
1303
|
-
|
|
1303
|
+
sessionId: z$1.ZodString;
|
|
1304
1304
|
context: z$1.ZodObject<{
|
|
1305
1305
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1306
1306
|
id: z$1.ZodString;
|
|
@@ -1338,30 +1338,30 @@ declare const EventInputSchemas: {
|
|
|
1338
1338
|
}, z$1.core.$strip>;
|
|
1339
1339
|
readonly "gateway.message.receive": z$1.ZodObject<{
|
|
1340
1340
|
gatewayID: z$1.ZodString;
|
|
1341
|
-
|
|
1341
|
+
messageId: z$1.ZodString;
|
|
1342
1342
|
message: z$1.ZodUnknown;
|
|
1343
1343
|
}, z$1.core.$strip>;
|
|
1344
1344
|
readonly "gateway.message.process": z$1.ZodObject<{
|
|
1345
1345
|
gatewayID: z$1.ZodString;
|
|
1346
|
-
|
|
1346
|
+
messageId: z$1.ZodString;
|
|
1347
1347
|
message: z$1.ZodUnknown;
|
|
1348
|
-
|
|
1348
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1349
1349
|
}, z$1.core.$strip>;
|
|
1350
1350
|
readonly "gateway.message.complete": z$1.ZodObject<{
|
|
1351
1351
|
gatewayID: z$1.ZodString;
|
|
1352
|
-
|
|
1352
|
+
messageId: z$1.ZodString;
|
|
1353
1353
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
1354
1354
|
}, z$1.core.$strip>;
|
|
1355
1355
|
readonly "gateway.message.send": z$1.ZodObject<{
|
|
1356
1356
|
gatewayID: z$1.ZodString;
|
|
1357
|
-
|
|
1357
|
+
messageId: z$1.ZodString;
|
|
1358
1358
|
message: z$1.ZodUnknown;
|
|
1359
1359
|
target: z$1.ZodOptional<z$1.ZodString>;
|
|
1360
1360
|
}, z$1.core.$strip>;
|
|
1361
1361
|
readonly "gateway.message.delivered": z$1.ZodObject<{
|
|
1362
1362
|
gatewayID: z$1.ZodString;
|
|
1363
|
-
|
|
1364
|
-
|
|
1363
|
+
messageId: z$1.ZodString;
|
|
1364
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1365
1365
|
channel: z$1.ZodObject<{
|
|
1366
1366
|
platform: z$1.ZodString;
|
|
1367
1367
|
channelId: z$1.ZodString;
|
|
@@ -1370,8 +1370,8 @@ declare const EventInputSchemas: {
|
|
|
1370
1370
|
}, z$1.core.$strip>;
|
|
1371
1371
|
readonly "gateway.message.read": z$1.ZodObject<{
|
|
1372
1372
|
gatewayID: z$1.ZodString;
|
|
1373
|
-
|
|
1374
|
-
|
|
1373
|
+
messageId: z$1.ZodString;
|
|
1374
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1375
1375
|
channel: z$1.ZodObject<{
|
|
1376
1376
|
platform: z$1.ZodString;
|
|
1377
1377
|
channelId: z$1.ZodString;
|
|
@@ -1379,12 +1379,12 @@ declare const EventInputSchemas: {
|
|
|
1379
1379
|
timestamp: z$1.ZodNumber;
|
|
1380
1380
|
}, z$1.core.$strip>;
|
|
1381
1381
|
readonly "scheduler.heartbeat.trigger": z$1.ZodObject<{
|
|
1382
|
-
|
|
1382
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1383
1383
|
timestamp: z$1.ZodNumber;
|
|
1384
1384
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
1385
1385
|
}, z$1.core.$strip>;
|
|
1386
1386
|
readonly "scheduler.heartbeat.complete": z$1.ZodObject<{
|
|
1387
|
-
|
|
1387
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1388
1388
|
timestamp: z$1.ZodNumber;
|
|
1389
1389
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1390
1390
|
}, z$1.core.$strip>;
|
|
@@ -1456,7 +1456,7 @@ declare const EventInputSchemas: {
|
|
|
1456
1456
|
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1457
1457
|
}, z$1.core.$strip>;
|
|
1458
1458
|
readonly "loop.start": z$1.ZodObject<{
|
|
1459
|
-
|
|
1459
|
+
sessionId: z$1.ZodString;
|
|
1460
1460
|
step: z$1.ZodNumber;
|
|
1461
1461
|
lastUserId: z$1.ZodString;
|
|
1462
1462
|
result: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -1466,7 +1466,7 @@ declare const EventInputSchemas: {
|
|
|
1466
1466
|
}>>;
|
|
1467
1467
|
}, z$1.core.$strip>;
|
|
1468
1468
|
readonly "loop.end": z$1.ZodObject<{
|
|
1469
|
-
|
|
1469
|
+
sessionId: z$1.ZodString;
|
|
1470
1470
|
step: z$1.ZodNumber;
|
|
1471
1471
|
lastUserId: z$1.ZodString;
|
|
1472
1472
|
result: z$1.ZodEnum<{
|
|
@@ -1476,7 +1476,7 @@ declare const EventInputSchemas: {
|
|
|
1476
1476
|
}, z$1.core.$strip>;
|
|
1477
1477
|
};
|
|
1478
1478
|
declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
1479
|
-
|
|
1479
|
+
sessionId: z$1.ZodString;
|
|
1480
1480
|
source: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1481
1481
|
agent: "agent";
|
|
1482
1482
|
system: "system";
|
|
@@ -1488,11 +1488,11 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1488
1488
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1489
1489
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1490
1490
|
gatewayID: z$1.ZodString;
|
|
1491
|
-
|
|
1491
|
+
messageId: z$1.ZodString;
|
|
1492
1492
|
message: z$1.ZodUnknown;
|
|
1493
1493
|
target: z$1.ZodOptional<z$1.ZodString>;
|
|
1494
1494
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1495
|
-
|
|
1495
|
+
sessionId: z$1.ZodString;
|
|
1496
1496
|
reason: z$1.ZodEnum<{
|
|
1497
1497
|
error: "error";
|
|
1498
1498
|
timeout: "timeout";
|
|
@@ -1503,12 +1503,12 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1503
1503
|
}>;
|
|
1504
1504
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1505
1505
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1506
|
-
|
|
1506
|
+
sessionId: z$1.ZodString;
|
|
1507
1507
|
summary: z$1.ZodString;
|
|
1508
1508
|
previousLength: z$1.ZodNumber;
|
|
1509
1509
|
newLength: z$1.ZodNumber;
|
|
1510
1510
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1511
|
-
|
|
1511
|
+
sessionId: z$1.ZodString;
|
|
1512
1512
|
trigger: z$1.ZodEnum<{
|
|
1513
1513
|
auto: "auto";
|
|
1514
1514
|
manual: "manual";
|
|
@@ -1517,15 +1517,15 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1517
1517
|
contextLength: z$1.ZodNumber;
|
|
1518
1518
|
threshold: z$1.ZodNumber;
|
|
1519
1519
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1520
|
+
sessionId: z$1.ZodString;
|
|
1521
|
+
messageId: z$1.ZodString;
|
|
1522
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1523
1523
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1524
1524
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1525
1525
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1526
|
+
sessionId: z$1.ZodString;
|
|
1527
|
+
messageId: z$1.ZodString;
|
|
1528
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1529
1529
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1530
1530
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1531
1531
|
finishReason: z$1.ZodEnum<{
|
|
@@ -1540,10 +1540,10 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1540
1540
|
total: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1541
1541
|
}, z$1.core.$strip>>;
|
|
1542
1542
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1543
|
-
|
|
1543
|
+
sessionId: z$1.ZodString;
|
|
1544
1544
|
reason: z$1.ZodString;
|
|
1545
1545
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1546
|
-
|
|
1546
|
+
sessionId: z$1.ZodString;
|
|
1547
1547
|
error: z$1.ZodString;
|
|
1548
1548
|
errorType: z$1.ZodEnum<{
|
|
1549
1549
|
timeout: "timeout";
|
|
@@ -1554,10 +1554,10 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1554
1554
|
server_error: "server_error";
|
|
1555
1555
|
}>;
|
|
1556
1556
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1557
|
-
|
|
1557
|
+
sessionId: z$1.ZodString;
|
|
1558
1558
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1559
1559
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1560
|
-
|
|
1560
|
+
messageId: z$1.ZodString;
|
|
1561
1561
|
message: z$1.ZodObject<{
|
|
1562
1562
|
id: z$1.ZodString;
|
|
1563
1563
|
role: z$1.ZodLiteral<"user">;
|
|
@@ -1582,7 +1582,7 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1582
1582
|
}, z$1.core.$strip>], "type">>]>;
|
|
1583
1583
|
}, z$1.core.$strip>;
|
|
1584
1584
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1585
|
-
|
|
1585
|
+
sessionId: z$1.ZodString;
|
|
1586
1586
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1587
1587
|
id: z$1.ZodString;
|
|
1588
1588
|
role: z$1.ZodEnum<{
|
|
@@ -1614,20 +1614,20 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1614
1614
|
tool_call_id: z$1.ZodOptional<z$1.ZodString>;
|
|
1615
1615
|
}, z$1.core.$strip>>;
|
|
1616
1616
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1617
|
-
|
|
1617
|
+
sessionId: z$1.ZodString;
|
|
1618
1618
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1619
1619
|
system: z$1.ZodArray<z$1.ZodString>;
|
|
1620
1620
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1621
|
-
|
|
1622
|
-
|
|
1621
|
+
sessionId: z$1.ZodString;
|
|
1622
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1623
1623
|
tool: z$1.ZodString;
|
|
1624
|
-
|
|
1624
|
+
callId: z$1.ZodString;
|
|
1625
1625
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1626
1626
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1627
|
-
|
|
1628
|
-
|
|
1627
|
+
sessionId: z$1.ZodString;
|
|
1628
|
+
userMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1629
1629
|
tool: z$1.ZodString;
|
|
1630
|
-
|
|
1630
|
+
callId: z$1.ZodString;
|
|
1631
1631
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1632
1632
|
result: z$1.ZodObject<{
|
|
1633
1633
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1637,9 +1637,9 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1637
1637
|
}, z$1.core.$strip>;
|
|
1638
1638
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1639
1639
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1640
|
-
|
|
1640
|
+
sessionId: z$1.ZodString;
|
|
1641
1641
|
tool: z$1.ZodString;
|
|
1642
|
-
|
|
1642
|
+
callId: z$1.ZodString;
|
|
1643
1643
|
args: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1644
1644
|
error: z$1.ZodString;
|
|
1645
1645
|
errorType: z$1.ZodEnum<{
|
|
@@ -1649,7 +1649,7 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1649
1649
|
permission_denied: "permission_denied";
|
|
1650
1650
|
}>;
|
|
1651
1651
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1652
|
-
|
|
1652
|
+
sessionId: z$1.ZodString;
|
|
1653
1653
|
toolID: z$1.ZodString;
|
|
1654
1654
|
definition: z$1.ZodObject<{
|
|
1655
1655
|
name: z$1.ZodString;
|
|
@@ -1657,11 +1657,11 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1657
1657
|
parameters: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1658
1658
|
}, z$1.core.$strip>;
|
|
1659
1659
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1660
|
-
|
|
1660
|
+
sessionId: z$1.ZodString;
|
|
1661
1661
|
command: z$1.ZodString;
|
|
1662
1662
|
arguments: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>;
|
|
1663
1663
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1664
|
-
|
|
1664
|
+
sessionId: z$1.ZodString;
|
|
1665
1665
|
command: z$1.ZodString;
|
|
1666
1666
|
arguments: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>]>>;
|
|
1667
1667
|
result: z$1.ZodObject<{
|
|
@@ -1674,7 +1674,7 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1674
1674
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1675
1675
|
}, z$1.core.$strip>;
|
|
1676
1676
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1677
|
-
|
|
1677
|
+
sessionId: z$1.ZodString;
|
|
1678
1678
|
request: z$1.ZodObject<{
|
|
1679
1679
|
tool: z$1.ZodString;
|
|
1680
1680
|
args: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
@@ -1687,15 +1687,15 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1687
1687
|
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1688
1688
|
}, z$1.core.$strip>;
|
|
1689
1689
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1690
|
-
|
|
1690
|
+
sessionId: z$1.ZodString;
|
|
1691
1691
|
tool: z$1.ZodString;
|
|
1692
1692
|
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
1693
1693
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1694
|
-
|
|
1694
|
+
sessionId: z$1.ZodString;
|
|
1695
1695
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1696
1696
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
1697
|
-
|
|
1698
|
-
|
|
1697
|
+
providerId: z$1.ZodString;
|
|
1698
|
+
modelId: z$1.ZodString;
|
|
1699
1699
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
1700
1700
|
id: z$1.ZodString;
|
|
1701
1701
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1720,11 +1720,11 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1720
1720
|
}>>>;
|
|
1721
1721
|
}, z$1.core.$strip>>;
|
|
1722
1722
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1723
|
-
|
|
1723
|
+
sessionId: z$1.ZodString;
|
|
1724
1724
|
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
1725
1725
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
1726
|
-
|
|
1727
|
-
|
|
1726
|
+
providerId: z$1.ZodString;
|
|
1727
|
+
modelId: z$1.ZodString;
|
|
1728
1728
|
api: z$1.ZodOptional<z$1.ZodObject<{
|
|
1729
1729
|
id: z$1.ZodString;
|
|
1730
1730
|
npm: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1740,32 +1740,32 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1740
1740
|
headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1741
1741
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1742
1742
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
1743
|
-
|
|
1744
|
-
|
|
1743
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1744
|
+
callId: z$1.ZodOptional<z$1.ZodString>;
|
|
1745
1745
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1746
|
+
sessionId: z$1.ZodString;
|
|
1747
|
+
messageId: z$1.ZodString;
|
|
1748
|
+
partId: z$1.ZodString;
|
|
1749
1749
|
text: z$1.ZodString;
|
|
1750
1750
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1751
1751
|
gatewayID: z$1.ZodString;
|
|
1752
|
-
|
|
1752
|
+
messageId: z$1.ZodString;
|
|
1753
1753
|
message: z$1.ZodUnknown;
|
|
1754
1754
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1755
1755
|
gatewayID: z$1.ZodString;
|
|
1756
|
-
|
|
1756
|
+
messageId: z$1.ZodString;
|
|
1757
1757
|
message: z$1.ZodUnknown;
|
|
1758
|
-
|
|
1758
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1759
1759
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1760
1760
|
gatewayID: z$1.ZodString;
|
|
1761
|
-
|
|
1761
|
+
messageId: z$1.ZodString;
|
|
1762
1762
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
1763
1763
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1764
|
-
|
|
1764
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1765
1765
|
timestamp: z$1.ZodNumber;
|
|
1766
1766
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
1767
1767
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1768
|
-
|
|
1768
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1769
1769
|
timestamp: z$1.ZodNumber;
|
|
1770
1770
|
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1771
1771
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
@@ -1780,15 +1780,15 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1780
1780
|
result: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1781
1781
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1782
1782
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1783
|
-
|
|
1783
|
+
sessionId: z$1.ZodString;
|
|
1784
1784
|
mode: z$1.ZodEnum<{
|
|
1785
1785
|
agent: "agent";
|
|
1786
1786
|
chat: "chat";
|
|
1787
1787
|
query: "query";
|
|
1788
1788
|
}>;
|
|
1789
|
-
|
|
1789
|
+
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
1790
1790
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1791
|
-
|
|
1791
|
+
sessionId: z$1.ZodString;
|
|
1792
1792
|
context: z$1.ZodObject<{
|
|
1793
1793
|
messages: z$1.ZodArray<z$1.ZodObject<{
|
|
1794
1794
|
id: z$1.ZodString;
|
|
@@ -1825,8 +1825,8 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1825
1825
|
}, z$1.core.$strip>;
|
|
1826
1826
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1827
1827
|
gatewayID: z$1.ZodString;
|
|
1828
|
-
|
|
1829
|
-
|
|
1828
|
+
messageId: z$1.ZodString;
|
|
1829
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1830
1830
|
channel: z$1.ZodObject<{
|
|
1831
1831
|
platform: z$1.ZodString;
|
|
1832
1832
|
channelId: z$1.ZodString;
|
|
@@ -1834,8 +1834,8 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1834
1834
|
timestamp: z$1.ZodNumber;
|
|
1835
1835
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1836
1836
|
gatewayID: z$1.ZodString;
|
|
1837
|
-
|
|
1838
|
-
|
|
1837
|
+
messageId: z$1.ZodString;
|
|
1838
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
1839
1839
|
channel: z$1.ZodObject<{
|
|
1840
1840
|
platform: z$1.ZodString;
|
|
1841
1841
|
channelId: z$1.ZodString;
|
|
@@ -1892,7 +1892,7 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1892
1892
|
agentType: z$1.ZodOptional<z$1.ZodString>;
|
|
1893
1893
|
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1894
1894
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1895
|
-
|
|
1895
|
+
sessionId: z$1.ZodString;
|
|
1896
1896
|
step: z$1.ZodNumber;
|
|
1897
1897
|
lastUserId: z$1.ZodString;
|
|
1898
1898
|
result: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -1901,7 +1901,7 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
|
|
|
1901
1901
|
continue: "continue";
|
|
1902
1902
|
}>>;
|
|
1903
1903
|
}, z$1.core.$strip> | z$1.ZodObject<{
|
|
1904
|
-
|
|
1904
|
+
sessionId: z$1.ZodString;
|
|
1905
1905
|
step: z$1.ZodNumber;
|
|
1906
1906
|
lastUserId: z$1.ZodString;
|
|
1907
1907
|
result: z$1.ZodEnum<{
|
|
@@ -1965,7 +1965,7 @@ declare const CommandMetadataSchema: z$1.ZodObject<{
|
|
|
1965
1965
|
}, z$1.core.$strip>;
|
|
1966
1966
|
type CommandMetadata = z$1.infer<typeof CommandMetadataSchema>;
|
|
1967
1967
|
declare const CommandExecutionContextSchema: z$1.ZodObject<{
|
|
1968
|
-
|
|
1968
|
+
sessionId: z$1.ZodString;
|
|
1969
1969
|
directory: z$1.ZodString;
|
|
1970
1970
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
1971
1971
|
agent: z$1.ZodOptional<z$1.ZodString>;
|