@hearsay-tools/squawk 0.18.0-dev.8044 → 0.18.0-dev.8050
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/built-in-tool-definitions.d.ts +4 -0
- package/dist/built-in-tool-definitions.js +61 -0
- package/dist/built-in-tool-definitions.js.map +1 -0
- package/dist/built-in-tools.d.ts +3 -0
- package/dist/built-in-tools.js +9 -0
- package/dist/built-in-tools.js.map +1 -0
- package/dist/ci-wait/client.d.ts +75 -0
- package/dist/ci-wait/client.js +44 -13
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +57 -1153
- package/dist/ci-wait/controller.js +56 -175
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/mcp.d.ts +1 -1
- package/dist/ci-wait/mcp.js +7 -5
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +6 -528
- package/dist/ci-wait/tool-catalog.js +3 -7
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tool-names.d.ts +1 -8
- package/dist/ci-wait/tool-names.js +8 -16
- package/dist/ci-wait/tool-names.js.map +1 -1
- package/dist/ci-wait/tool-registry.d.ts +64 -0
- package/dist/ci-wait/tool-registry.js +32 -0
- package/dist/ci-wait/tool-registry.js.map +1 -0
- package/dist/ci-wait/tools.d.ts +452 -8
- package/dist/ci-wait/tools.js +40 -28
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/agent-tools.d.ts +51 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +21 -0
- package/dist/delegation/transport.d.ts +10 -10
- package/dist/runs/run-exits.d.ts +336 -336
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +240 -240
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/subcommands.js +3 -0
- package/dist/subcommands.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-runtime.ts +3 -0
- package/scripts/measure-transcript-facts-health.mjs +3 -0
- package/scripts/mock-ci-tool.mjs +1 -1
- package/scripts/mock-wire-tools.mjs +4 -1
- package/scripts/omp-ci-wait.mjs +4 -14
- package/scripts/pi-ci-wait.mjs +3 -13
|
@@ -549,533 +549,11 @@ export declare const automationToolDefinition: {
|
|
|
549
549
|
additionalProperties: boolean;
|
|
550
550
|
};
|
|
551
551
|
};
|
|
552
|
-
/** Tool definitions in
|
|
553
|
-
export declare function squawkToolDefinitions(env?: NodeJS.ProcessEnv):
|
|
552
|
+
/** Tool definitions in registration order, evaluated only after boot seals. */
|
|
553
|
+
export declare function squawkToolDefinitions(env?: NodeJS.ProcessEnv): {
|
|
554
554
|
name: string;
|
|
555
555
|
description: string;
|
|
556
|
-
inputSchema:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
type: string;
|
|
561
|
-
enum: ("peer" | "pr" | "process" | "request" | "timer" | "worker")[];
|
|
562
|
-
description: string;
|
|
563
|
-
};
|
|
564
|
-
operation_id: {
|
|
565
|
-
description: string;
|
|
566
|
-
};
|
|
567
|
-
pr: {
|
|
568
|
-
description: string;
|
|
569
|
-
};
|
|
570
|
-
until: {
|
|
571
|
-
description: string;
|
|
572
|
-
};
|
|
573
|
-
wake_on_conflict: {
|
|
574
|
-
description: string;
|
|
575
|
-
};
|
|
576
|
-
head_sha: {
|
|
577
|
-
description: string;
|
|
578
|
-
};
|
|
579
|
-
worker_ids: {
|
|
580
|
-
description: string;
|
|
581
|
-
};
|
|
582
|
-
request_ids: {
|
|
583
|
-
description: string;
|
|
584
|
-
};
|
|
585
|
-
peer_ids: {
|
|
586
|
-
description: string;
|
|
587
|
-
};
|
|
588
|
-
mode: {
|
|
589
|
-
description: string;
|
|
590
|
-
};
|
|
591
|
-
timeout_seconds: {
|
|
592
|
-
description: string;
|
|
593
|
-
};
|
|
594
|
-
seconds: {
|
|
595
|
-
description: string;
|
|
596
|
-
};
|
|
597
|
-
pid: {
|
|
598
|
-
description: string;
|
|
599
|
-
};
|
|
600
|
-
exit_file: {
|
|
601
|
-
description: string;
|
|
602
|
-
};
|
|
603
|
-
note: {
|
|
604
|
-
description: string;
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
required: string[];
|
|
608
|
-
additionalProperties: boolean;
|
|
609
|
-
};
|
|
610
|
-
} | {
|
|
611
|
-
name: string;
|
|
612
|
-
description: string;
|
|
613
|
-
inputSchema: {
|
|
614
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
615
|
-
$id?: string;
|
|
616
|
-
$anchor?: string;
|
|
617
|
-
$ref?: string;
|
|
618
|
-
$dynamicRef?: string;
|
|
619
|
-
$dynamicAnchor?: string;
|
|
620
|
-
$vocabulary?: Record<string, boolean>;
|
|
621
|
-
$comment?: string;
|
|
622
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
623
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
624
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
625
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
626
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
627
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
628
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
629
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
630
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
631
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
632
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
633
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
634
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
635
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
636
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
637
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
638
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
639
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
640
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
641
|
-
multipleOf?: number;
|
|
642
|
-
maximum?: number;
|
|
643
|
-
exclusiveMaximum?: number | boolean;
|
|
644
|
-
minimum?: number;
|
|
645
|
-
exclusiveMinimum?: number | boolean;
|
|
646
|
-
maxLength?: number;
|
|
647
|
-
minLength?: number;
|
|
648
|
-
pattern?: string;
|
|
649
|
-
maxItems?: number;
|
|
650
|
-
minItems?: number;
|
|
651
|
-
uniqueItems?: boolean;
|
|
652
|
-
maxContains?: number;
|
|
653
|
-
minContains?: number;
|
|
654
|
-
maxProperties?: number;
|
|
655
|
-
minProperties?: number;
|
|
656
|
-
required?: string[];
|
|
657
|
-
dependentRequired?: Record<string, string[]>;
|
|
658
|
-
enum?: Array<string | number | boolean | null>;
|
|
659
|
-
const?: string | number | boolean | null;
|
|
660
|
-
id?: string;
|
|
661
|
-
title?: string;
|
|
662
|
-
description?: string;
|
|
663
|
-
default?: unknown;
|
|
664
|
-
deprecated?: boolean;
|
|
665
|
-
readOnly?: boolean;
|
|
666
|
-
writeOnly?: boolean;
|
|
667
|
-
nullable?: boolean;
|
|
668
|
-
examples?: unknown[];
|
|
669
|
-
format?: string;
|
|
670
|
-
contentMediaType?: string;
|
|
671
|
-
contentEncoding?: string;
|
|
672
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
673
|
-
_prefault?: unknown;
|
|
674
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
675
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
676
|
-
id: z.ZodOptional<z.ZodString>;
|
|
677
|
-
header: z.ZodString;
|
|
678
|
-
question: z.ZodString;
|
|
679
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
680
|
-
label: z.ZodString;
|
|
681
|
-
description: z.ZodOptional<z.ZodString>;
|
|
682
|
-
}, z.core.$strict>>>;
|
|
683
|
-
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
-
allowFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
685
|
-
}, z.core.$strict>>;
|
|
686
|
-
context: z.ZodString;
|
|
687
|
-
}, z.core.$strict>>;
|
|
688
|
-
type: 'object';
|
|
689
|
-
};
|
|
690
|
-
} | {
|
|
691
|
-
name: string;
|
|
692
|
-
description: string;
|
|
693
|
-
inputSchema: {
|
|
694
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
695
|
-
$id?: string;
|
|
696
|
-
$anchor?: string;
|
|
697
|
-
$ref?: string;
|
|
698
|
-
$dynamicRef?: string;
|
|
699
|
-
$dynamicAnchor?: string;
|
|
700
|
-
$vocabulary?: Record<string, boolean>;
|
|
701
|
-
$comment?: string;
|
|
702
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
703
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
704
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
705
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
706
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
707
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
708
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
709
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
710
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
711
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
712
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
713
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
714
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
715
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
716
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
717
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
718
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
719
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
720
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
721
|
-
multipleOf?: number;
|
|
722
|
-
maximum?: number;
|
|
723
|
-
exclusiveMaximum?: number | boolean;
|
|
724
|
-
minimum?: number;
|
|
725
|
-
exclusiveMinimum?: number | boolean;
|
|
726
|
-
maxLength?: number;
|
|
727
|
-
minLength?: number;
|
|
728
|
-
pattern?: string;
|
|
729
|
-
maxItems?: number;
|
|
730
|
-
minItems?: number;
|
|
731
|
-
uniqueItems?: boolean;
|
|
732
|
-
maxContains?: number;
|
|
733
|
-
minContains?: number;
|
|
734
|
-
maxProperties?: number;
|
|
735
|
-
minProperties?: number;
|
|
736
|
-
required?: string[];
|
|
737
|
-
dependentRequired?: Record<string, string[]>;
|
|
738
|
-
enum?: Array<string | number | boolean | null>;
|
|
739
|
-
const?: string | number | boolean | null;
|
|
740
|
-
id?: string;
|
|
741
|
-
title?: string;
|
|
742
|
-
description?: string;
|
|
743
|
-
default?: unknown;
|
|
744
|
-
deprecated?: boolean;
|
|
745
|
-
readOnly?: boolean;
|
|
746
|
-
writeOnly?: boolean;
|
|
747
|
-
nullable?: boolean;
|
|
748
|
-
examples?: unknown[];
|
|
749
|
-
format?: string;
|
|
750
|
-
contentMediaType?: string;
|
|
751
|
-
contentEncoding?: string;
|
|
752
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
753
|
-
_prefault?: unknown;
|
|
754
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
755
|
-
wait_id: z.ZodUUID;
|
|
756
|
-
}, z.core.$strict>>;
|
|
757
|
-
type: 'object';
|
|
758
|
-
};
|
|
759
|
-
} | {
|
|
760
|
-
name: string;
|
|
761
|
-
description: string;
|
|
762
|
-
inputSchema: {
|
|
763
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
764
|
-
$id?: string;
|
|
765
|
-
$anchor?: string;
|
|
766
|
-
$ref?: string;
|
|
767
|
-
$dynamicRef?: string;
|
|
768
|
-
$dynamicAnchor?: string;
|
|
769
|
-
$vocabulary?: Record<string, boolean>;
|
|
770
|
-
$comment?: string;
|
|
771
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
772
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
773
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
774
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
775
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
776
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
777
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
778
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
779
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
780
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
781
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
782
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
783
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
784
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
785
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
786
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
787
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
788
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
789
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
790
|
-
multipleOf?: number;
|
|
791
|
-
maximum?: number;
|
|
792
|
-
exclusiveMaximum?: number | boolean;
|
|
793
|
-
minimum?: number;
|
|
794
|
-
exclusiveMinimum?: number | boolean;
|
|
795
|
-
maxLength?: number;
|
|
796
|
-
minLength?: number;
|
|
797
|
-
pattern?: string;
|
|
798
|
-
maxItems?: number;
|
|
799
|
-
minItems?: number;
|
|
800
|
-
uniqueItems?: boolean;
|
|
801
|
-
maxContains?: number;
|
|
802
|
-
minContains?: number;
|
|
803
|
-
maxProperties?: number;
|
|
804
|
-
minProperties?: number;
|
|
805
|
-
required?: string[];
|
|
806
|
-
dependentRequired?: Record<string, string[]>;
|
|
807
|
-
enum?: Array<string | number | boolean | null>;
|
|
808
|
-
const?: string | number | boolean | null;
|
|
809
|
-
id?: string;
|
|
810
|
-
title?: string;
|
|
811
|
-
description?: string;
|
|
812
|
-
default?: unknown;
|
|
813
|
-
deprecated?: boolean;
|
|
814
|
-
readOnly?: boolean;
|
|
815
|
-
writeOnly?: boolean;
|
|
816
|
-
nullable?: boolean;
|
|
817
|
-
examples?: unknown[];
|
|
818
|
-
format?: string;
|
|
819
|
-
contentMediaType?: string;
|
|
820
|
-
contentEncoding?: string;
|
|
821
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
822
|
-
_prefault?: unknown;
|
|
823
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
824
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
825
|
-
}, z.core.$strict>>;
|
|
826
|
-
type: 'object';
|
|
827
|
-
};
|
|
828
|
-
} | {
|
|
829
|
-
name: string;
|
|
830
|
-
description: string;
|
|
831
|
-
inputSchema: {
|
|
832
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
833
|
-
$id?: string;
|
|
834
|
-
$anchor?: string;
|
|
835
|
-
$ref?: string;
|
|
836
|
-
$dynamicRef?: string;
|
|
837
|
-
$dynamicAnchor?: string;
|
|
838
|
-
$vocabulary?: Record<string, boolean>;
|
|
839
|
-
$comment?: string;
|
|
840
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
841
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
842
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
843
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
844
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
845
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
846
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
847
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
848
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
849
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
850
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
851
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
852
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
853
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
854
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
855
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
856
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
857
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
858
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
859
|
-
multipleOf?: number;
|
|
860
|
-
maximum?: number;
|
|
861
|
-
exclusiveMaximum?: number | boolean;
|
|
862
|
-
minimum?: number;
|
|
863
|
-
exclusiveMinimum?: number | boolean;
|
|
864
|
-
maxLength?: number;
|
|
865
|
-
minLength?: number;
|
|
866
|
-
pattern?: string;
|
|
867
|
-
maxItems?: number;
|
|
868
|
-
minItems?: number;
|
|
869
|
-
uniqueItems?: boolean;
|
|
870
|
-
maxContains?: number;
|
|
871
|
-
minContains?: number;
|
|
872
|
-
maxProperties?: number;
|
|
873
|
-
minProperties?: number;
|
|
874
|
-
required?: string[];
|
|
875
|
-
dependentRequired?: Record<string, string[]>;
|
|
876
|
-
enum?: Array<string | number | boolean | null>;
|
|
877
|
-
const?: string | number | boolean | null;
|
|
878
|
-
id?: string;
|
|
879
|
-
title?: string;
|
|
880
|
-
description?: string;
|
|
881
|
-
default?: unknown;
|
|
882
|
-
deprecated?: boolean;
|
|
883
|
-
readOnly?: boolean;
|
|
884
|
-
writeOnly?: boolean;
|
|
885
|
-
nullable?: boolean;
|
|
886
|
-
examples?: unknown[];
|
|
887
|
-
format?: string;
|
|
888
|
-
contentMediaType?: string;
|
|
889
|
-
contentEncoding?: string;
|
|
890
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
891
|
-
_prefault?: unknown;
|
|
892
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
893
|
-
command: z.ZodString;
|
|
894
|
-
port: z.ZodNumber;
|
|
895
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
896
|
-
label: z.ZodOptional<z.ZodString>;
|
|
897
|
-
path: z.ZodOptional<z.ZodString>;
|
|
898
|
-
}, z.core.$strip>>;
|
|
899
|
-
type: 'object';
|
|
900
|
-
};
|
|
901
|
-
} | {
|
|
902
|
-
name: string;
|
|
903
|
-
description: string;
|
|
904
|
-
inputSchema: {
|
|
905
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
906
|
-
$id?: string;
|
|
907
|
-
$anchor?: string;
|
|
908
|
-
$ref?: string;
|
|
909
|
-
$dynamicRef?: string;
|
|
910
|
-
$dynamicAnchor?: string;
|
|
911
|
-
$vocabulary?: Record<string, boolean>;
|
|
912
|
-
$comment?: string;
|
|
913
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
914
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
915
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
916
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
917
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
918
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
919
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
920
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
921
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
922
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
923
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
924
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
925
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
926
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
927
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
928
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
929
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
930
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
931
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
932
|
-
multipleOf?: number;
|
|
933
|
-
maximum?: number;
|
|
934
|
-
exclusiveMaximum?: number | boolean;
|
|
935
|
-
minimum?: number;
|
|
936
|
-
exclusiveMinimum?: number | boolean;
|
|
937
|
-
maxLength?: number;
|
|
938
|
-
minLength?: number;
|
|
939
|
-
pattern?: string;
|
|
940
|
-
maxItems?: number;
|
|
941
|
-
minItems?: number;
|
|
942
|
-
uniqueItems?: boolean;
|
|
943
|
-
maxContains?: number;
|
|
944
|
-
minContains?: number;
|
|
945
|
-
maxProperties?: number;
|
|
946
|
-
minProperties?: number;
|
|
947
|
-
required?: string[];
|
|
948
|
-
dependentRequired?: Record<string, string[]>;
|
|
949
|
-
enum?: Array<string | number | boolean | null>;
|
|
950
|
-
const?: string | number | boolean | null;
|
|
951
|
-
id?: string;
|
|
952
|
-
title?: string;
|
|
953
|
-
description?: string;
|
|
954
|
-
default?: unknown;
|
|
955
|
-
deprecated?: boolean;
|
|
956
|
-
readOnly?: boolean;
|
|
957
|
-
writeOnly?: boolean;
|
|
958
|
-
nullable?: boolean;
|
|
959
|
-
examples?: unknown[];
|
|
960
|
-
format?: string;
|
|
961
|
-
contentMediaType?: string;
|
|
962
|
-
contentEncoding?: string;
|
|
963
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
964
|
-
_prefault?: unknown;
|
|
965
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
966
|
-
port: z.ZodNumber;
|
|
967
|
-
restart: z.ZodOptional<z.ZodBoolean>;
|
|
968
|
-
}, z.core.$strict>>;
|
|
969
|
-
type: 'object';
|
|
970
|
-
};
|
|
971
|
-
} | {
|
|
972
|
-
name: string;
|
|
973
|
-
description: string;
|
|
974
|
-
inputSchema: {
|
|
975
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
976
|
-
$id?: string;
|
|
977
|
-
$anchor?: string;
|
|
978
|
-
$ref?: string;
|
|
979
|
-
$dynamicRef?: string;
|
|
980
|
-
$dynamicAnchor?: string;
|
|
981
|
-
$vocabulary?: Record<string, boolean>;
|
|
982
|
-
$comment?: string;
|
|
983
|
-
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
984
|
-
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
985
|
-
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
986
|
-
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
987
|
-
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
988
|
-
contains?: z.core.JSONSchema._JSONSchema;
|
|
989
|
-
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
990
|
-
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
991
|
-
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
992
|
-
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
993
|
-
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
994
|
-
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
995
|
-
if?: z.core.JSONSchema._JSONSchema;
|
|
996
|
-
then?: z.core.JSONSchema._JSONSchema;
|
|
997
|
-
else?: z.core.JSONSchema._JSONSchema;
|
|
998
|
-
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
999
|
-
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
1000
|
-
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
1001
|
-
not?: z.core.JSONSchema._JSONSchema;
|
|
1002
|
-
multipleOf?: number;
|
|
1003
|
-
maximum?: number;
|
|
1004
|
-
exclusiveMaximum?: number | boolean;
|
|
1005
|
-
minimum?: number;
|
|
1006
|
-
exclusiveMinimum?: number | boolean;
|
|
1007
|
-
maxLength?: number;
|
|
1008
|
-
minLength?: number;
|
|
1009
|
-
pattern?: string;
|
|
1010
|
-
maxItems?: number;
|
|
1011
|
-
minItems?: number;
|
|
1012
|
-
uniqueItems?: boolean;
|
|
1013
|
-
maxContains?: number;
|
|
1014
|
-
minContains?: number;
|
|
1015
|
-
maxProperties?: number;
|
|
1016
|
-
minProperties?: number;
|
|
1017
|
-
required?: string[];
|
|
1018
|
-
dependentRequired?: Record<string, string[]>;
|
|
1019
|
-
enum?: Array<string | number | boolean | null>;
|
|
1020
|
-
const?: string | number | boolean | null;
|
|
1021
|
-
id?: string;
|
|
1022
|
-
title?: string;
|
|
1023
|
-
description?: string;
|
|
1024
|
-
default?: unknown;
|
|
1025
|
-
deprecated?: boolean;
|
|
1026
|
-
readOnly?: boolean;
|
|
1027
|
-
writeOnly?: boolean;
|
|
1028
|
-
nullable?: boolean;
|
|
1029
|
-
examples?: unknown[];
|
|
1030
|
-
format?: string;
|
|
1031
|
-
contentMediaType?: string;
|
|
1032
|
-
contentEncoding?: string;
|
|
1033
|
-
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
1034
|
-
_prefault?: unknown;
|
|
1035
|
-
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodObject<{
|
|
1036
|
-
at: z.ZodOptional<z.ZodString>;
|
|
1037
|
-
delay: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
latest_start: z.ZodOptional<z.ZodString>;
|
|
1039
|
-
workflow: z.ZodOptional<z.ZodString>;
|
|
1040
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
1041
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1042
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
1043
|
-
name: z.ZodString;
|
|
1044
|
-
prompt: z.ZodString;
|
|
1045
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
1046
|
-
}, z.core.$strict>>;
|
|
1047
|
-
type: 'object';
|
|
1048
|
-
};
|
|
1049
|
-
} | {
|
|
1050
|
-
name: string;
|
|
1051
|
-
description: string;
|
|
1052
|
-
inputSchema: {
|
|
1053
|
-
type: 'object';
|
|
1054
|
-
properties: {
|
|
1055
|
-
action: {
|
|
1056
|
-
type: string;
|
|
1057
|
-
enum: ("cancel" | "enable" | "list" | "pause" | "show" | "update")[];
|
|
1058
|
-
description: string;
|
|
1059
|
-
};
|
|
1060
|
-
archived: {
|
|
1061
|
-
description: string;
|
|
1062
|
-
};
|
|
1063
|
-
};
|
|
1064
|
-
required: string[];
|
|
1065
|
-
additionalProperties: boolean;
|
|
1066
|
-
};
|
|
1067
|
-
} | {
|
|
1068
|
-
name: string;
|
|
1069
|
-
description: string;
|
|
1070
|
-
inputSchema: {
|
|
1071
|
-
type: 'object';
|
|
1072
|
-
properties: {
|
|
1073
|
-
action: {
|
|
1074
|
-
type: string;
|
|
1075
|
-
enum: ("create" | "enable" | "preview" | "show")[];
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
required: string[];
|
|
1079
|
-
additionalProperties: boolean;
|
|
1080
|
-
};
|
|
1081
|
-
})[];
|
|
556
|
+
inputSchema: import("./tool-registry.ts").JsonObject;
|
|
557
|
+
trigger: string;
|
|
558
|
+
label: string;
|
|
559
|
+
}[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { agentToolMetadata, enabledAgentTools } from './tool-registry.js';
|
|
1
2
|
import { automationToolRequestSchema } from '../contract/index.js';
|
|
2
|
-
import { automationsToolEnabled, previewToolEnabled } from './tool-env.js';
|
|
3
3
|
import { squawkAskRequestSchema, squawkCancelWaitRequestSchema, squawkDoneRequestSchema, builtInSquawkWaitRequestSchema } from '../contract/index.js';
|
|
4
4
|
import { ASK_LIMITS } from '../contract/index.js';
|
|
5
5
|
import { previewStopRequestSchema, previewServeRequestSchema } from '../contract/index.js';
|
|
@@ -139,12 +139,8 @@ export const automationToolDefinition = {
|
|
|
139
139
|
description: 'Create, show, preview or enable a repeating automation in this project. "create" takes definition: a GitHub poll (kind github, events, intervalSeconds, filters and task) or repeating schedule (kind schedule, schedule and task). Creation is always paused. The Automations system instructions give the absolute CLI command: run its schema subcommand on demand for definition fields, bounds and prompt placeholders before creating. "show", "preview" and "enable" take its id. "preview" checks a GitHub poll without launching tasks. "enable" requires explicit: true, only when the user explicitly asked to switch it on; a poll also needs a successful preview of its current definition in this session. Autonomy is not enable consent. Report the url and preview matches, or next_run_at for a schedule (UTC; convert to the user’s zone). On refusal stop and report the error; never substitute a cron job, GitHub Action or polling script. Use cezar_schedule_task and cezar_scheduled_tasks for one-time schedules. Leave task.archiveWhenDone and task.autoMergePr off unless the user asks for each completion action.',
|
|
140
140
|
inputSchema: flatAutomationInputSchema(),
|
|
141
141
|
};
|
|
142
|
-
/** Tool definitions in
|
|
142
|
+
/** Tool definitions in registration order, evaluated only after boot seals. */
|
|
143
143
|
export function squawkToolDefinitions(env = process.env) {
|
|
144
|
-
return
|
|
145
|
-
waitToolDefinition, askToolDefinition, cancelWaitToolDefinition, doneToolDefinition,
|
|
146
|
-
...(previewToolEnabled(env) ? [previewToolDefinition, previewStopToolDefinition] : []),
|
|
147
|
-
...(automationsToolEnabled(env) ? [scheduleTaskToolDefinition, automationToolDefinition, scheduledTasksToolDefinition] : []),
|
|
148
|
-
];
|
|
144
|
+
return enabledAgentTools(env).map(agentToolMetadata);
|
|
149
145
|
}
|
|
150
146
|
//# sourceMappingURL=tool-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-catalog.js","sourceRoot":"","sources":["../../src/ci-wait/tool-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-catalog.js","sourceRoot":"","sources":["../../src/ci-wait/tool-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzK,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAC3G,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AACtH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,SAAS,mBAAmB;IAC1B,MAAM,UAAU,GAA4B,EAAE,CAAC;IAC/C,kGAAkG;IAClG,0FAA0F;IAC1F,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;QAC3E,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,EAAE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/E,MAAM,UAAU,qBAAqB,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IACxE,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool names in the same order `squawkToolDefinitions` advertises them. A leaf, so a runner that
|
|
3
|
-
* only needs the names never loads the tool schemas; `ci-wait/tools.test.ts` pins the two lists together.
|
|
4
|
-
*/
|
|
5
1
|
export declare function squawkToolNames(env?: NodeJS.ProcessEnv): string[];
|
|
6
|
-
/**
|
|
7
|
-
* Env names a harness must forward to the adapter process. Several harnesses spawn MCP servers
|
|
8
|
-
* from an allowlist, so preview opt-in and automations opt-out must both reach the adapter.
|
|
9
|
-
*/
|
|
2
|
+
/** A feature may need its disabling flag forwarded even when it is disabled. */
|
|
10
3
|
export declare function squawkToolEnvNames(env?: NodeJS.ProcessEnv): string[];
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* Tool names in the same order `squawkToolDefinitions` advertises them. A leaf, so a runner that
|
|
4
|
-
* only needs the names never loads the tool schemas; `ci-wait/tools.test.ts` pins the two lists together.
|
|
5
|
-
*/
|
|
1
|
+
import { enabledAgentTools, registeredAgentTools } from './tool-registry.js';
|
|
6
2
|
export function squawkToolNames(env = process.env) {
|
|
7
|
-
return
|
|
8
|
-
'cezar_wait', 'cezar_ask', 'cezar_cancel_wait', 'cezar_done',
|
|
9
|
-
...(previewToolEnabled(env) ? ['cezar_preview_serve', 'cezar_preview_stop'] : []),
|
|
10
|
-
...(automationsToolEnabled(env) ? ['cezar_schedule_task', 'cezar_automation', 'cezar_scheduled_tasks'] : []),
|
|
11
|
-
];
|
|
3
|
+
return enabledAgentTools(env).map(tool => tool.name);
|
|
12
4
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Env names a harness must forward to the adapter process. Several harnesses spawn MCP servers
|
|
15
|
-
* from an allowlist, so preview opt-in and automations opt-out must both reach the adapter.
|
|
16
|
-
*/
|
|
5
|
+
/** A feature may need its disabling flag forwarded even when it is disabled. */
|
|
17
6
|
export function squawkToolEnvNames(env = process.env) {
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
const names = new Set(['CEZ_TOOL_TOKEN', 'CEZ_TOOL_SOCKET', ...registeredAgentTools().flatMap(tool => tool.envNames?.(env) ?? []).sort()]);
|
|
8
|
+
return [...names].flatMap(name => {
|
|
9
|
+
const preferred = name.replace(/^CEZ_/, 'HSQ_');
|
|
10
|
+
return env[preferred] === undefined ? [name] : [name, preferred];
|
|
11
|
+
});
|
|
20
12
|
}
|
|
21
13
|
//# sourceMappingURL=tool-names.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../../src/ci-wait/tool-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../../src/ci-wait/tool-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,MAAM,UAAU,eAAe,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IAClE,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AACD,gFAAgF;AAChF,MAAM,UAAU,kBAAkB,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IACrE,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,oBAAoB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3I,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO,GAAG,CAAC,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC"}
|