@adhdev/daemon-core 0.9.82-rc.209 → 0.9.82-rc.210
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/cli-adapters/terminal-backends/ghostty-vt-backend.d.ts +2 -0
- package/dist/commands/router.d.ts +6 -0
- package/dist/git/git-commands.d.ts +2 -0
- package/dist/git/git-diff.d.ts +6 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.js +5699 -3486
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5679 -3483
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/coordinator-prompt.d.ts +6 -0
- package/dist/mesh/mesh-delivery-policy.d.ts +5 -0
- package/dist/mesh/mesh-events-coordinator.d.ts +151 -0
- package/dist/mesh/mesh-events-pending.d.ts +33 -0
- package/dist/mesh/mesh-events-stale.d.ts +40 -0
- package/dist/mesh/mesh-events-utils.d.ts +14 -0
- package/dist/mesh/mesh-events.d.ts +5 -198
- package/dist/mesh/mesh-ledger-reconciliation.d.ts +23 -3
- package/dist/mesh/mesh-ledger.d.ts +19 -0
- package/dist/mesh/mesh-missions.d.ts +58 -0
- package/dist/mesh/mesh-review-inbox.d.ts +90 -0
- package/dist/mesh/mesh-runtime-store.d.ts +175 -0
- package/dist/mesh/mesh-task-stats.d.ts +49 -0
- package/dist/mesh/mesh-work-queue.d.ts +82 -0
- package/dist/mesh/refine-config.d.ts +24 -2
- package/dist/mesh/worktree-bootstrap-config.d.ts +22 -0
- package/dist/providers/acp-provider-instance.d.ts +2 -0
- package/dist/providers/spec/driver.d.ts +8 -0
- package/dist/providers/spec/evaluator.d.ts +4 -5
- package/dist/providers/spec/loader.d.ts +1 -0
- package/dist/providers/spec/schema.gen.d.ts +1409 -6
- package/dist/providers/spec/types.d.ts +188 -175
- package/dist/repo-mesh-types.d.ts +1 -0
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +3 -0
- package/src/cli-adapters/terminal-backends/ghostty-vt-backend.ts +20 -7
- package/src/commands/router.ts +594 -66
- package/src/git/git-commands.ts +5 -5
- package/src/git/git-diff.ts +53 -0
- package/src/index.ts +11 -5
- package/src/mesh/coordinator-prompt.ts +14 -1
- package/src/mesh/mesh-delivery-policy.ts +17 -0
- package/src/mesh/mesh-events-coordinator.ts +1404 -0
- package/src/mesh/mesh-events-pending.ts +371 -0
- package/src/mesh/mesh-events-stale.ts +283 -0
- package/src/mesh/mesh-events-utils.ts +161 -0
- package/src/mesh/mesh-events.ts +27 -2143
- package/src/mesh/mesh-ledger-reconciliation.ts +12 -5
- package/src/mesh/mesh-ledger.ts +134 -2
- package/src/mesh/mesh-missions.ts +151 -0
- package/src/mesh/mesh-review-inbox.ts +307 -0
- package/src/mesh/mesh-runtime-store.ts +539 -3
- package/src/mesh/mesh-task-stats.ts +154 -0
- package/src/mesh/mesh-work-queue.ts +233 -17
- package/src/mesh/refine-config.ts +42 -5
- package/src/mesh/worktree-bootstrap-config.ts +79 -0
- package/src/providers/acp-provider-instance.ts +15 -1
- package/src/providers/cli-provider-instance.ts +34 -13
- package/src/providers/spec/driver.ts +57 -29
- package/src/providers/spec/evaluator.ts +302 -112
- package/src/providers/spec/loader.ts +226 -37
- package/src/providers/spec/schema.gen.ts +450 -334
- package/src/providers/spec/schema.json +162 -75
- package/src/providers/spec/types.ts +234 -183
- package/src/repo-mesh-types.ts +1 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated. Mirrors schema.json — regenerate after editing.
|
|
3
|
+
*
|
|
4
|
+
* SCHEMA_V1: validates adhdev:cli/spec@1 (legacy). Used for migration.
|
|
5
|
+
* SCHEMA_V3: validates adhdev:cli/spec@3 (current). Used after migration.
|
|
6
|
+
* SCHEMA: alias for SCHEMA_V3 (default export for loader.ts).
|
|
3
7
|
*/
|
|
4
|
-
export declare const
|
|
8
|
+
export declare const SCHEMA_V1: {
|
|
5
9
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
6
10
|
readonly $id: "adhdev:cli/spec@1";
|
|
7
|
-
readonly title: "ADHDev CLI provider spec";
|
|
11
|
+
readonly title: "ADHDev CLI provider spec v1";
|
|
8
12
|
readonly type: "object";
|
|
9
13
|
readonly additionalProperties: false;
|
|
10
14
|
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "layout", "states", "default_state"];
|
|
@@ -68,7 +72,7 @@ export declare const SCHEMA: {
|
|
|
68
72
|
readonly type: "array";
|
|
69
73
|
readonly minItems: 1;
|
|
70
74
|
readonly items: {
|
|
71
|
-
readonly $ref: "#/definitions/
|
|
75
|
+
readonly $ref: "#/definitions/sectionV1";
|
|
72
76
|
};
|
|
73
77
|
};
|
|
74
78
|
};
|
|
@@ -77,7 +81,7 @@ export declare const SCHEMA: {
|
|
|
77
81
|
readonly type: "array";
|
|
78
82
|
readonly minItems: 1;
|
|
79
83
|
readonly items: {
|
|
80
|
-
readonly $ref: "#/definitions/
|
|
84
|
+
readonly $ref: "#/definitions/stateV1";
|
|
81
85
|
};
|
|
82
86
|
};
|
|
83
87
|
readonly default_state: {
|
|
@@ -170,7 +174,7 @@ export declare const SCHEMA: {
|
|
|
170
174
|
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
171
175
|
}];
|
|
172
176
|
};
|
|
173
|
-
readonly
|
|
177
|
+
readonly sectionV1: {
|
|
174
178
|
readonly type: "object";
|
|
175
179
|
readonly additionalProperties: false;
|
|
176
180
|
readonly required: readonly ["id"];
|
|
@@ -269,6 +273,14 @@ export declare const SCHEMA: {
|
|
|
269
273
|
readonly type: "integer";
|
|
270
274
|
readonly minimum: 0;
|
|
271
275
|
};
|
|
276
|
+
readonly cursor_above_lines: {
|
|
277
|
+
readonly type: "integer";
|
|
278
|
+
readonly minimum: 1;
|
|
279
|
+
};
|
|
280
|
+
readonly changed: {
|
|
281
|
+
readonly type: "boolean";
|
|
282
|
+
readonly const: true;
|
|
283
|
+
};
|
|
272
284
|
};
|
|
273
285
|
};
|
|
274
286
|
readonly sectionPattern: {
|
|
@@ -289,7 +301,7 @@ export declare const SCHEMA: {
|
|
|
289
301
|
};
|
|
290
302
|
};
|
|
291
303
|
};
|
|
292
|
-
readonly
|
|
304
|
+
readonly stateV1: {
|
|
293
305
|
readonly type: "object";
|
|
294
306
|
readonly additionalProperties: false;
|
|
295
307
|
readonly required: readonly ["id", "label", "when"];
|
|
@@ -620,3 +632,1394 @@ export declare const SCHEMA: {
|
|
|
620
632
|
};
|
|
621
633
|
};
|
|
622
634
|
};
|
|
635
|
+
export declare const SCHEMA_V3: {
|
|
636
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
637
|
+
readonly $id: "adhdev:cli/spec@3";
|
|
638
|
+
readonly title: "ADHDev CLI provider spec v3";
|
|
639
|
+
readonly type: "object";
|
|
640
|
+
readonly additionalProperties: false;
|
|
641
|
+
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "sections", "states", "default_state"];
|
|
642
|
+
readonly properties: {
|
|
643
|
+
readonly $schema: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly const: "adhdev:cli/spec@3";
|
|
646
|
+
};
|
|
647
|
+
readonly id: {
|
|
648
|
+
readonly type: "string";
|
|
649
|
+
readonly minLength: 1;
|
|
650
|
+
readonly pattern: "^[a-z][a-z0-9-]*$";
|
|
651
|
+
};
|
|
652
|
+
readonly name: {
|
|
653
|
+
readonly type: "string";
|
|
654
|
+
readonly minLength: 1;
|
|
655
|
+
};
|
|
656
|
+
readonly binary: {
|
|
657
|
+
readonly type: "string";
|
|
658
|
+
readonly minLength: 1;
|
|
659
|
+
};
|
|
660
|
+
readonly spawn_args: {
|
|
661
|
+
readonly type: "array";
|
|
662
|
+
readonly items: {
|
|
663
|
+
readonly type: "string";
|
|
664
|
+
};
|
|
665
|
+
readonly default: readonly [];
|
|
666
|
+
};
|
|
667
|
+
readonly env: {
|
|
668
|
+
readonly type: "object";
|
|
669
|
+
readonly additionalProperties: {
|
|
670
|
+
readonly type: "string";
|
|
671
|
+
};
|
|
672
|
+
readonly default: {};
|
|
673
|
+
};
|
|
674
|
+
readonly cli_version_range: {
|
|
675
|
+
readonly type: "string";
|
|
676
|
+
readonly minLength: 1;
|
|
677
|
+
};
|
|
678
|
+
readonly send_message: {
|
|
679
|
+
readonly type: "object";
|
|
680
|
+
readonly additionalProperties: false;
|
|
681
|
+
readonly required: readonly ["submit_key"];
|
|
682
|
+
readonly properties: {
|
|
683
|
+
readonly submit_key: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
readonly minLength: 1;
|
|
686
|
+
};
|
|
687
|
+
readonly delay_ms_before_submit: {
|
|
688
|
+
readonly type: "integer";
|
|
689
|
+
readonly minimum: 0;
|
|
690
|
+
};
|
|
691
|
+
readonly delay_ms_per_char: {
|
|
692
|
+
readonly type: "integer";
|
|
693
|
+
readonly minimum: 0;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly sections: {
|
|
698
|
+
readonly type: "object";
|
|
699
|
+
readonly minProperties: 1;
|
|
700
|
+
readonly additionalProperties: {
|
|
701
|
+
readonly $ref: "#/definitions/sectionDef";
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
readonly states: {
|
|
705
|
+
readonly type: "array";
|
|
706
|
+
readonly minItems: 1;
|
|
707
|
+
readonly items: {
|
|
708
|
+
readonly $ref: "#/definitions/stateV3";
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly default_state: {
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly minLength: 1;
|
|
714
|
+
};
|
|
715
|
+
readonly control_bar: {
|
|
716
|
+
readonly type: "array";
|
|
717
|
+
readonly default: readonly [];
|
|
718
|
+
readonly items: {
|
|
719
|
+
readonly $ref: "#/definitions/control";
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
readonly notifications: {
|
|
723
|
+
readonly type: "array";
|
|
724
|
+
readonly default: readonly [];
|
|
725
|
+
readonly items: {
|
|
726
|
+
readonly $ref: "#/definitions/notification";
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
readonly delegate: {
|
|
730
|
+
readonly type: "array";
|
|
731
|
+
readonly default: readonly [];
|
|
732
|
+
readonly items: {
|
|
733
|
+
readonly $ref: "#/definitions/delegateTrigger";
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
readonly native_history: {
|
|
737
|
+
readonly $ref: "#/definitions/nativeHistory";
|
|
738
|
+
};
|
|
739
|
+
readonly requiresFinalAssistantBeforeIdle: {
|
|
740
|
+
readonly type: "boolean";
|
|
741
|
+
};
|
|
742
|
+
readonly timing: {
|
|
743
|
+
readonly type: "object";
|
|
744
|
+
readonly additionalProperties: false;
|
|
745
|
+
readonly properties: {
|
|
746
|
+
readonly busy_hold_ms: {
|
|
747
|
+
readonly type: "integer";
|
|
748
|
+
readonly minimum: 0;
|
|
749
|
+
};
|
|
750
|
+
readonly idle_hold_ms: {
|
|
751
|
+
readonly type: "integer";
|
|
752
|
+
readonly minimum: 0;
|
|
753
|
+
};
|
|
754
|
+
readonly startup_grace_ms: {
|
|
755
|
+
readonly type: "integer";
|
|
756
|
+
readonly minimum: 0;
|
|
757
|
+
};
|
|
758
|
+
readonly completion_marker: {
|
|
759
|
+
readonly type: "object";
|
|
760
|
+
readonly additionalProperties: false;
|
|
761
|
+
readonly required: readonly ["matches", "hold_ms"];
|
|
762
|
+
readonly properties: {
|
|
763
|
+
readonly section: {
|
|
764
|
+
readonly type: "string";
|
|
765
|
+
readonly minLength: 1;
|
|
766
|
+
};
|
|
767
|
+
readonly matches: {
|
|
768
|
+
readonly type: "string";
|
|
769
|
+
readonly minLength: 1;
|
|
770
|
+
};
|
|
771
|
+
readonly flags: {
|
|
772
|
+
readonly type: "string";
|
|
773
|
+
};
|
|
774
|
+
readonly hold_ms: {
|
|
775
|
+
readonly type: "integer";
|
|
776
|
+
readonly minimum: 0;
|
|
777
|
+
};
|
|
778
|
+
readonly force_after_ms: {
|
|
779
|
+
readonly type: "integer";
|
|
780
|
+
readonly minimum: 0;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
readonly definitions: {
|
|
788
|
+
readonly size: {
|
|
789
|
+
readonly oneOf: readonly [{
|
|
790
|
+
readonly type: "integer";
|
|
791
|
+
readonly minimum: 0;
|
|
792
|
+
}, {
|
|
793
|
+
readonly type: "string";
|
|
794
|
+
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
795
|
+
}];
|
|
796
|
+
};
|
|
797
|
+
readonly sectionDef: {
|
|
798
|
+
readonly type: "object";
|
|
799
|
+
readonly additionalProperties: false;
|
|
800
|
+
readonly properties: {
|
|
801
|
+
readonly from_top: {
|
|
802
|
+
readonly $ref: "#/definitions/size";
|
|
803
|
+
};
|
|
804
|
+
readonly from_bottom: {
|
|
805
|
+
readonly $ref: "#/definitions/size";
|
|
806
|
+
};
|
|
807
|
+
readonly until: {
|
|
808
|
+
readonly type: "string";
|
|
809
|
+
readonly minLength: 1;
|
|
810
|
+
};
|
|
811
|
+
readonly anchor: {
|
|
812
|
+
readonly type: "string";
|
|
813
|
+
readonly minLength: 1;
|
|
814
|
+
};
|
|
815
|
+
readonly anchor_flags: {
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
};
|
|
818
|
+
readonly anchor_last: {
|
|
819
|
+
readonly type: "boolean";
|
|
820
|
+
};
|
|
821
|
+
readonly anchor_context: {
|
|
822
|
+
readonly type: "object";
|
|
823
|
+
readonly additionalProperties: false;
|
|
824
|
+
readonly properties: {
|
|
825
|
+
readonly prev: {
|
|
826
|
+
readonly type: "string";
|
|
827
|
+
};
|
|
828
|
+
readonly prev_flags: {
|
|
829
|
+
readonly type: "string";
|
|
830
|
+
};
|
|
831
|
+
readonly next: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
};
|
|
834
|
+
readonly next_flags: {
|
|
835
|
+
readonly type: "string";
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
readonly lines: {
|
|
840
|
+
readonly type: "integer";
|
|
841
|
+
readonly minimum: 1;
|
|
842
|
+
};
|
|
843
|
+
readonly until_regex: {
|
|
844
|
+
readonly type: "string";
|
|
845
|
+
readonly minLength: 1;
|
|
846
|
+
};
|
|
847
|
+
readonly until_regex_flags: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
readonly condition: {
|
|
853
|
+
readonly oneOf: readonly [{
|
|
854
|
+
readonly $ref: "#/definitions/regexCondition";
|
|
855
|
+
}, {
|
|
856
|
+
readonly $ref: "#/definitions/changedCondition";
|
|
857
|
+
}, {
|
|
858
|
+
readonly $ref: "#/definitions/allCondition";
|
|
859
|
+
}, {
|
|
860
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
861
|
+
}];
|
|
862
|
+
};
|
|
863
|
+
readonly regexCondition: {
|
|
864
|
+
readonly type: "object";
|
|
865
|
+
readonly additionalProperties: false;
|
|
866
|
+
readonly required: readonly ["matches"];
|
|
867
|
+
readonly properties: {
|
|
868
|
+
readonly section: {
|
|
869
|
+
readonly type: "string";
|
|
870
|
+
};
|
|
871
|
+
readonly matches: {
|
|
872
|
+
readonly type: "string";
|
|
873
|
+
readonly minLength: 1;
|
|
874
|
+
};
|
|
875
|
+
readonly flags: {
|
|
876
|
+
readonly type: "string";
|
|
877
|
+
};
|
|
878
|
+
readonly cursor_row_min: {
|
|
879
|
+
readonly type: "integer";
|
|
880
|
+
readonly minimum: 0;
|
|
881
|
+
};
|
|
882
|
+
readonly cursor_row_max: {
|
|
883
|
+
readonly type: "integer";
|
|
884
|
+
readonly minimum: 0;
|
|
885
|
+
};
|
|
886
|
+
readonly cursor_col_min: {
|
|
887
|
+
readonly type: "integer";
|
|
888
|
+
readonly minimum: 0;
|
|
889
|
+
};
|
|
890
|
+
readonly cursor_col_max: {
|
|
891
|
+
readonly type: "integer";
|
|
892
|
+
readonly minimum: 0;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly changedCondition: {
|
|
897
|
+
readonly type: "object";
|
|
898
|
+
readonly additionalProperties: false;
|
|
899
|
+
readonly required: readonly ["cursor_above", "changed"];
|
|
900
|
+
readonly properties: {
|
|
901
|
+
readonly cursor_above: {
|
|
902
|
+
readonly type: "integer";
|
|
903
|
+
readonly minimum: 1;
|
|
904
|
+
};
|
|
905
|
+
readonly changed: {
|
|
906
|
+
readonly type: "boolean";
|
|
907
|
+
readonly const: true;
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
readonly allCondition: {
|
|
912
|
+
readonly type: "object";
|
|
913
|
+
readonly additionalProperties: false;
|
|
914
|
+
readonly required: readonly ["all"];
|
|
915
|
+
readonly properties: {
|
|
916
|
+
readonly all: {
|
|
917
|
+
readonly type: "array";
|
|
918
|
+
readonly items: {
|
|
919
|
+
readonly $ref: "#/definitions/condition";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
readonly anyCondition: {
|
|
925
|
+
readonly type: "object";
|
|
926
|
+
readonly additionalProperties: false;
|
|
927
|
+
readonly required: readonly ["any"];
|
|
928
|
+
readonly properties: {
|
|
929
|
+
readonly any: {
|
|
930
|
+
readonly type: "array";
|
|
931
|
+
readonly items: {
|
|
932
|
+
readonly $ref: "#/definitions/condition";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
readonly extractTitle: {
|
|
938
|
+
readonly type: "object";
|
|
939
|
+
readonly additionalProperties: false;
|
|
940
|
+
readonly properties: {
|
|
941
|
+
readonly section: {
|
|
942
|
+
readonly type: "string";
|
|
943
|
+
};
|
|
944
|
+
readonly regex: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
readonly minLength: 1;
|
|
947
|
+
};
|
|
948
|
+
readonly flags: {
|
|
949
|
+
readonly type: "string";
|
|
950
|
+
};
|
|
951
|
+
readonly first_line: {
|
|
952
|
+
readonly type: "boolean";
|
|
953
|
+
readonly const: true;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly extractButtons: {
|
|
958
|
+
readonly type: "object";
|
|
959
|
+
readonly additionalProperties: false;
|
|
960
|
+
readonly required: readonly ["pattern", "key_for_index"];
|
|
961
|
+
readonly properties: {
|
|
962
|
+
readonly section: {
|
|
963
|
+
readonly type: "string";
|
|
964
|
+
};
|
|
965
|
+
readonly pattern: {
|
|
966
|
+
readonly type: "string";
|
|
967
|
+
readonly minLength: 1;
|
|
968
|
+
};
|
|
969
|
+
readonly flags: {
|
|
970
|
+
readonly type: "string";
|
|
971
|
+
};
|
|
972
|
+
readonly key_for_index: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
readonly minLength: 1;
|
|
975
|
+
};
|
|
976
|
+
readonly min_count: {
|
|
977
|
+
readonly type: "integer";
|
|
978
|
+
readonly minimum: 1;
|
|
979
|
+
readonly default: 2;
|
|
980
|
+
};
|
|
981
|
+
readonly continuation_lines: {
|
|
982
|
+
readonly type: "boolean";
|
|
983
|
+
readonly default: false;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
readonly stateV3: {
|
|
988
|
+
readonly type: "object";
|
|
989
|
+
readonly additionalProperties: false;
|
|
990
|
+
readonly required: readonly ["id", "label", "when"];
|
|
991
|
+
readonly properties: {
|
|
992
|
+
readonly id: {
|
|
993
|
+
readonly type: "string";
|
|
994
|
+
readonly minLength: 1;
|
|
995
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
996
|
+
};
|
|
997
|
+
readonly label: {
|
|
998
|
+
readonly type: "string";
|
|
999
|
+
readonly minLength: 1;
|
|
1000
|
+
};
|
|
1001
|
+
readonly when: {
|
|
1002
|
+
readonly oneOf: readonly [{
|
|
1003
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1006
|
+
}];
|
|
1007
|
+
};
|
|
1008
|
+
readonly extract: {
|
|
1009
|
+
readonly type: "object";
|
|
1010
|
+
readonly additionalProperties: false;
|
|
1011
|
+
readonly properties: {
|
|
1012
|
+
readonly title: {
|
|
1013
|
+
readonly $ref: "#/definitions/extractTitle";
|
|
1014
|
+
};
|
|
1015
|
+
readonly buttons: {
|
|
1016
|
+
readonly $ref: "#/definitions/extractButtons";
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
readonly sectionRegex: {
|
|
1023
|
+
readonly type: "object";
|
|
1024
|
+
readonly additionalProperties: false;
|
|
1025
|
+
readonly required: readonly ["regex"];
|
|
1026
|
+
readonly properties: {
|
|
1027
|
+
readonly section: {
|
|
1028
|
+
readonly type: "string";
|
|
1029
|
+
};
|
|
1030
|
+
readonly regex: {
|
|
1031
|
+
readonly type: "string";
|
|
1032
|
+
readonly minLength: 1;
|
|
1033
|
+
};
|
|
1034
|
+
readonly flags: {
|
|
1035
|
+
readonly type: "string";
|
|
1036
|
+
readonly default: "i";
|
|
1037
|
+
};
|
|
1038
|
+
readonly cursor_row_min: {
|
|
1039
|
+
readonly type: "integer";
|
|
1040
|
+
readonly minimum: 0;
|
|
1041
|
+
};
|
|
1042
|
+
readonly cursor_row_max: {
|
|
1043
|
+
readonly type: "integer";
|
|
1044
|
+
readonly minimum: 0;
|
|
1045
|
+
};
|
|
1046
|
+
readonly cursor_col_min: {
|
|
1047
|
+
readonly type: "integer";
|
|
1048
|
+
readonly minimum: 0;
|
|
1049
|
+
};
|
|
1050
|
+
readonly cursor_col_max: {
|
|
1051
|
+
readonly type: "integer";
|
|
1052
|
+
readonly minimum: 0;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
readonly sectionPattern: {
|
|
1057
|
+
readonly type: "object";
|
|
1058
|
+
readonly additionalProperties: false;
|
|
1059
|
+
readonly required: readonly ["pattern"];
|
|
1060
|
+
readonly properties: {
|
|
1061
|
+
readonly section: {
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
};
|
|
1064
|
+
readonly pattern: {
|
|
1065
|
+
readonly type: "string";
|
|
1066
|
+
readonly minLength: 1;
|
|
1067
|
+
};
|
|
1068
|
+
readonly flags: {
|
|
1069
|
+
readonly type: "string";
|
|
1070
|
+
readonly default: "";
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
readonly control: {
|
|
1075
|
+
readonly type: "object";
|
|
1076
|
+
readonly additionalProperties: false;
|
|
1077
|
+
readonly required: readonly ["id", "label", "action"];
|
|
1078
|
+
readonly properties: {
|
|
1079
|
+
readonly id: {
|
|
1080
|
+
readonly type: "string";
|
|
1081
|
+
readonly minLength: 1;
|
|
1082
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1083
|
+
};
|
|
1084
|
+
readonly label: {
|
|
1085
|
+
readonly type: "string";
|
|
1086
|
+
readonly minLength: 1;
|
|
1087
|
+
};
|
|
1088
|
+
readonly visible_when_state: {
|
|
1089
|
+
readonly type: "array";
|
|
1090
|
+
readonly items: {
|
|
1091
|
+
readonly type: "string";
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
readonly action: {
|
|
1095
|
+
readonly $ref: "#/definitions/controlAction";
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
readonly controlAction: {
|
|
1100
|
+
readonly oneOf: readonly [{
|
|
1101
|
+
readonly type: "object";
|
|
1102
|
+
readonly additionalProperties: false;
|
|
1103
|
+
readonly required: readonly ["type", "keys"];
|
|
1104
|
+
readonly properties: {
|
|
1105
|
+
readonly type: {
|
|
1106
|
+
readonly const: "send_keys";
|
|
1107
|
+
};
|
|
1108
|
+
readonly keys: {
|
|
1109
|
+
readonly type: "string";
|
|
1110
|
+
readonly minLength: 1;
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly type: "object";
|
|
1115
|
+
readonly additionalProperties: false;
|
|
1116
|
+
readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
|
|
1117
|
+
readonly properties: {
|
|
1118
|
+
readonly type: {
|
|
1119
|
+
readonly const: "open_picker";
|
|
1120
|
+
};
|
|
1121
|
+
readonly trigger_keys: {
|
|
1122
|
+
readonly type: "string";
|
|
1123
|
+
readonly minLength: 1;
|
|
1124
|
+
};
|
|
1125
|
+
readonly wait_for: {
|
|
1126
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
1127
|
+
};
|
|
1128
|
+
readonly extract_choices: {
|
|
1129
|
+
readonly $ref: "#/definitions/sectionPattern";
|
|
1130
|
+
};
|
|
1131
|
+
readonly submit_key: {
|
|
1132
|
+
readonly type: "string";
|
|
1133
|
+
readonly minLength: 1;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly type: "object";
|
|
1138
|
+
readonly additionalProperties: false;
|
|
1139
|
+
readonly required: readonly ["type", "method", "keys_template"];
|
|
1140
|
+
readonly properties: {
|
|
1141
|
+
readonly type: {
|
|
1142
|
+
readonly const: "attach_image";
|
|
1143
|
+
};
|
|
1144
|
+
readonly method: {
|
|
1145
|
+
readonly const: "tempfile_then_keys";
|
|
1146
|
+
};
|
|
1147
|
+
readonly keys_template: {
|
|
1148
|
+
readonly type: "string";
|
|
1149
|
+
readonly minLength: 1;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
}];
|
|
1153
|
+
};
|
|
1154
|
+
readonly notification: {
|
|
1155
|
+
readonly type: "object";
|
|
1156
|
+
readonly additionalProperties: false;
|
|
1157
|
+
readonly required: readonly ["id", "when_state", "title"];
|
|
1158
|
+
readonly properties: {
|
|
1159
|
+
readonly id: {
|
|
1160
|
+
readonly type: "string";
|
|
1161
|
+
readonly minLength: 1;
|
|
1162
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1163
|
+
};
|
|
1164
|
+
readonly when_state: {
|
|
1165
|
+
readonly type: "string";
|
|
1166
|
+
readonly minLength: 1;
|
|
1167
|
+
};
|
|
1168
|
+
readonly title: {
|
|
1169
|
+
readonly type: "string";
|
|
1170
|
+
readonly minLength: 1;
|
|
1171
|
+
};
|
|
1172
|
+
readonly body: {
|
|
1173
|
+
readonly type: "string";
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
readonly nativeHistory: {
|
|
1178
|
+
readonly type: "object";
|
|
1179
|
+
readonly additionalProperties: false;
|
|
1180
|
+
readonly properties: {
|
|
1181
|
+
readonly reader: {
|
|
1182
|
+
readonly type: "string";
|
|
1183
|
+
readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
|
|
1184
|
+
};
|
|
1185
|
+
readonly source: {
|
|
1186
|
+
readonly oneOf: readonly [{
|
|
1187
|
+
readonly $ref: "#/definitions/nativeHistoryJsonlSource";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly $ref: "#/definitions/nativeHistorySqliteSource";
|
|
1190
|
+
}];
|
|
1191
|
+
};
|
|
1192
|
+
readonly override_path: {
|
|
1193
|
+
readonly type: "string";
|
|
1194
|
+
readonly minLength: 1;
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
readonly nativeHistoryMessageMap: {
|
|
1199
|
+
readonly type: "object";
|
|
1200
|
+
readonly additionalProperties: false;
|
|
1201
|
+
readonly required: readonly ["role", "content"];
|
|
1202
|
+
readonly properties: {
|
|
1203
|
+
readonly role: {
|
|
1204
|
+
readonly type: "string";
|
|
1205
|
+
readonly minLength: 1;
|
|
1206
|
+
};
|
|
1207
|
+
readonly content: {
|
|
1208
|
+
readonly type: "string";
|
|
1209
|
+
readonly minLength: 1;
|
|
1210
|
+
};
|
|
1211
|
+
readonly content_strip: {
|
|
1212
|
+
readonly type: "array";
|
|
1213
|
+
readonly items: {
|
|
1214
|
+
readonly type: "string";
|
|
1215
|
+
readonly minLength: 1;
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
readonly content_unwrap: {
|
|
1219
|
+
readonly type: "array";
|
|
1220
|
+
readonly items: {
|
|
1221
|
+
readonly type: "string";
|
|
1222
|
+
readonly minLength: 1;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
readonly timestamp_ms: {
|
|
1226
|
+
readonly type: "string";
|
|
1227
|
+
readonly minLength: 1;
|
|
1228
|
+
};
|
|
1229
|
+
readonly kind: {
|
|
1230
|
+
readonly type: "string";
|
|
1231
|
+
readonly minLength: 1;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
readonly nativeHistoryJsonlSource: {
|
|
1236
|
+
readonly type: "object";
|
|
1237
|
+
readonly additionalProperties: false;
|
|
1238
|
+
readonly required: readonly ["kind", "path", "message_map"];
|
|
1239
|
+
readonly properties: {
|
|
1240
|
+
readonly kind: {
|
|
1241
|
+
readonly const: "jsonl";
|
|
1242
|
+
};
|
|
1243
|
+
readonly path: {
|
|
1244
|
+
readonly type: "string";
|
|
1245
|
+
readonly minLength: 1;
|
|
1246
|
+
};
|
|
1247
|
+
readonly file_pattern: {
|
|
1248
|
+
readonly type: "string";
|
|
1249
|
+
readonly minLength: 1;
|
|
1250
|
+
};
|
|
1251
|
+
readonly recent_window_ms: {
|
|
1252
|
+
readonly type: "integer";
|
|
1253
|
+
readonly minimum: 0;
|
|
1254
|
+
};
|
|
1255
|
+
readonly session_id_from: {
|
|
1256
|
+
readonly type: "string";
|
|
1257
|
+
readonly enum: readonly ["filename_uuid", "first_record"];
|
|
1258
|
+
};
|
|
1259
|
+
readonly session_id_path: {
|
|
1260
|
+
readonly type: "string";
|
|
1261
|
+
readonly minLength: 1;
|
|
1262
|
+
};
|
|
1263
|
+
readonly message_filter: {
|
|
1264
|
+
readonly type: "object";
|
|
1265
|
+
readonly additionalProperties: false;
|
|
1266
|
+
readonly required: readonly ["where"];
|
|
1267
|
+
readonly properties: {
|
|
1268
|
+
readonly where: {
|
|
1269
|
+
readonly type: "string";
|
|
1270
|
+
readonly minLength: 1;
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
readonly message_map: {
|
|
1275
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
readonly nativeHistorySqliteSource: {
|
|
1280
|
+
readonly type: "object";
|
|
1281
|
+
readonly additionalProperties: false;
|
|
1282
|
+
readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
|
|
1283
|
+
readonly properties: {
|
|
1284
|
+
readonly kind: {
|
|
1285
|
+
readonly const: "sqlite";
|
|
1286
|
+
};
|
|
1287
|
+
readonly path: {
|
|
1288
|
+
readonly type: "string";
|
|
1289
|
+
readonly minLength: 1;
|
|
1290
|
+
};
|
|
1291
|
+
readonly session_query: {
|
|
1292
|
+
readonly type: "string";
|
|
1293
|
+
readonly minLength: 1;
|
|
1294
|
+
};
|
|
1295
|
+
readonly message_query: {
|
|
1296
|
+
readonly type: "string";
|
|
1297
|
+
readonly minLength: 1;
|
|
1298
|
+
};
|
|
1299
|
+
readonly message_map: {
|
|
1300
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
readonly delegateTrigger: {
|
|
1305
|
+
readonly type: "object";
|
|
1306
|
+
readonly additionalProperties: false;
|
|
1307
|
+
readonly required: readonly ["id", "when_state", "task_template"];
|
|
1308
|
+
readonly properties: {
|
|
1309
|
+
readonly id: {
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
readonly minLength: 1;
|
|
1312
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1313
|
+
};
|
|
1314
|
+
readonly when_state: {
|
|
1315
|
+
readonly type: "string";
|
|
1316
|
+
readonly minLength: 1;
|
|
1317
|
+
};
|
|
1318
|
+
readonly after_duration_ms: {
|
|
1319
|
+
readonly type: "integer";
|
|
1320
|
+
readonly minimum: 0;
|
|
1321
|
+
};
|
|
1322
|
+
readonly task_template: {
|
|
1323
|
+
readonly type: "string";
|
|
1324
|
+
readonly minLength: 1;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
/** Default schema export — v3 (current). */
|
|
1331
|
+
export declare const SCHEMA: {
|
|
1332
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1333
|
+
readonly $id: "adhdev:cli/spec@3";
|
|
1334
|
+
readonly title: "ADHDev CLI provider spec v3";
|
|
1335
|
+
readonly type: "object";
|
|
1336
|
+
readonly additionalProperties: false;
|
|
1337
|
+
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "sections", "states", "default_state"];
|
|
1338
|
+
readonly properties: {
|
|
1339
|
+
readonly $schema: {
|
|
1340
|
+
readonly type: "string";
|
|
1341
|
+
readonly const: "adhdev:cli/spec@3";
|
|
1342
|
+
};
|
|
1343
|
+
readonly id: {
|
|
1344
|
+
readonly type: "string";
|
|
1345
|
+
readonly minLength: 1;
|
|
1346
|
+
readonly pattern: "^[a-z][a-z0-9-]*$";
|
|
1347
|
+
};
|
|
1348
|
+
readonly name: {
|
|
1349
|
+
readonly type: "string";
|
|
1350
|
+
readonly minLength: 1;
|
|
1351
|
+
};
|
|
1352
|
+
readonly binary: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
readonly minLength: 1;
|
|
1355
|
+
};
|
|
1356
|
+
readonly spawn_args: {
|
|
1357
|
+
readonly type: "array";
|
|
1358
|
+
readonly items: {
|
|
1359
|
+
readonly type: "string";
|
|
1360
|
+
};
|
|
1361
|
+
readonly default: readonly [];
|
|
1362
|
+
};
|
|
1363
|
+
readonly env: {
|
|
1364
|
+
readonly type: "object";
|
|
1365
|
+
readonly additionalProperties: {
|
|
1366
|
+
readonly type: "string";
|
|
1367
|
+
};
|
|
1368
|
+
readonly default: {};
|
|
1369
|
+
};
|
|
1370
|
+
readonly cli_version_range: {
|
|
1371
|
+
readonly type: "string";
|
|
1372
|
+
readonly minLength: 1;
|
|
1373
|
+
};
|
|
1374
|
+
readonly send_message: {
|
|
1375
|
+
readonly type: "object";
|
|
1376
|
+
readonly additionalProperties: false;
|
|
1377
|
+
readonly required: readonly ["submit_key"];
|
|
1378
|
+
readonly properties: {
|
|
1379
|
+
readonly submit_key: {
|
|
1380
|
+
readonly type: "string";
|
|
1381
|
+
readonly minLength: 1;
|
|
1382
|
+
};
|
|
1383
|
+
readonly delay_ms_before_submit: {
|
|
1384
|
+
readonly type: "integer";
|
|
1385
|
+
readonly minimum: 0;
|
|
1386
|
+
};
|
|
1387
|
+
readonly delay_ms_per_char: {
|
|
1388
|
+
readonly type: "integer";
|
|
1389
|
+
readonly minimum: 0;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
readonly sections: {
|
|
1394
|
+
readonly type: "object";
|
|
1395
|
+
readonly minProperties: 1;
|
|
1396
|
+
readonly additionalProperties: {
|
|
1397
|
+
readonly $ref: "#/definitions/sectionDef";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
readonly states: {
|
|
1401
|
+
readonly type: "array";
|
|
1402
|
+
readonly minItems: 1;
|
|
1403
|
+
readonly items: {
|
|
1404
|
+
readonly $ref: "#/definitions/stateV3";
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
readonly default_state: {
|
|
1408
|
+
readonly type: "string";
|
|
1409
|
+
readonly minLength: 1;
|
|
1410
|
+
};
|
|
1411
|
+
readonly control_bar: {
|
|
1412
|
+
readonly type: "array";
|
|
1413
|
+
readonly default: readonly [];
|
|
1414
|
+
readonly items: {
|
|
1415
|
+
readonly $ref: "#/definitions/control";
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
readonly notifications: {
|
|
1419
|
+
readonly type: "array";
|
|
1420
|
+
readonly default: readonly [];
|
|
1421
|
+
readonly items: {
|
|
1422
|
+
readonly $ref: "#/definitions/notification";
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
readonly delegate: {
|
|
1426
|
+
readonly type: "array";
|
|
1427
|
+
readonly default: readonly [];
|
|
1428
|
+
readonly items: {
|
|
1429
|
+
readonly $ref: "#/definitions/delegateTrigger";
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
readonly native_history: {
|
|
1433
|
+
readonly $ref: "#/definitions/nativeHistory";
|
|
1434
|
+
};
|
|
1435
|
+
readonly requiresFinalAssistantBeforeIdle: {
|
|
1436
|
+
readonly type: "boolean";
|
|
1437
|
+
};
|
|
1438
|
+
readonly timing: {
|
|
1439
|
+
readonly type: "object";
|
|
1440
|
+
readonly additionalProperties: false;
|
|
1441
|
+
readonly properties: {
|
|
1442
|
+
readonly busy_hold_ms: {
|
|
1443
|
+
readonly type: "integer";
|
|
1444
|
+
readonly minimum: 0;
|
|
1445
|
+
};
|
|
1446
|
+
readonly idle_hold_ms: {
|
|
1447
|
+
readonly type: "integer";
|
|
1448
|
+
readonly minimum: 0;
|
|
1449
|
+
};
|
|
1450
|
+
readonly startup_grace_ms: {
|
|
1451
|
+
readonly type: "integer";
|
|
1452
|
+
readonly minimum: 0;
|
|
1453
|
+
};
|
|
1454
|
+
readonly completion_marker: {
|
|
1455
|
+
readonly type: "object";
|
|
1456
|
+
readonly additionalProperties: false;
|
|
1457
|
+
readonly required: readonly ["matches", "hold_ms"];
|
|
1458
|
+
readonly properties: {
|
|
1459
|
+
readonly section: {
|
|
1460
|
+
readonly type: "string";
|
|
1461
|
+
readonly minLength: 1;
|
|
1462
|
+
};
|
|
1463
|
+
readonly matches: {
|
|
1464
|
+
readonly type: "string";
|
|
1465
|
+
readonly minLength: 1;
|
|
1466
|
+
};
|
|
1467
|
+
readonly flags: {
|
|
1468
|
+
readonly type: "string";
|
|
1469
|
+
};
|
|
1470
|
+
readonly hold_ms: {
|
|
1471
|
+
readonly type: "integer";
|
|
1472
|
+
readonly minimum: 0;
|
|
1473
|
+
};
|
|
1474
|
+
readonly force_after_ms: {
|
|
1475
|
+
readonly type: "integer";
|
|
1476
|
+
readonly minimum: 0;
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
readonly definitions: {
|
|
1484
|
+
readonly size: {
|
|
1485
|
+
readonly oneOf: readonly [{
|
|
1486
|
+
readonly type: "integer";
|
|
1487
|
+
readonly minimum: 0;
|
|
1488
|
+
}, {
|
|
1489
|
+
readonly type: "string";
|
|
1490
|
+
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
1491
|
+
}];
|
|
1492
|
+
};
|
|
1493
|
+
readonly sectionDef: {
|
|
1494
|
+
readonly type: "object";
|
|
1495
|
+
readonly additionalProperties: false;
|
|
1496
|
+
readonly properties: {
|
|
1497
|
+
readonly from_top: {
|
|
1498
|
+
readonly $ref: "#/definitions/size";
|
|
1499
|
+
};
|
|
1500
|
+
readonly from_bottom: {
|
|
1501
|
+
readonly $ref: "#/definitions/size";
|
|
1502
|
+
};
|
|
1503
|
+
readonly until: {
|
|
1504
|
+
readonly type: "string";
|
|
1505
|
+
readonly minLength: 1;
|
|
1506
|
+
};
|
|
1507
|
+
readonly anchor: {
|
|
1508
|
+
readonly type: "string";
|
|
1509
|
+
readonly minLength: 1;
|
|
1510
|
+
};
|
|
1511
|
+
readonly anchor_flags: {
|
|
1512
|
+
readonly type: "string";
|
|
1513
|
+
};
|
|
1514
|
+
readonly anchor_last: {
|
|
1515
|
+
readonly type: "boolean";
|
|
1516
|
+
};
|
|
1517
|
+
readonly anchor_context: {
|
|
1518
|
+
readonly type: "object";
|
|
1519
|
+
readonly additionalProperties: false;
|
|
1520
|
+
readonly properties: {
|
|
1521
|
+
readonly prev: {
|
|
1522
|
+
readonly type: "string";
|
|
1523
|
+
};
|
|
1524
|
+
readonly prev_flags: {
|
|
1525
|
+
readonly type: "string";
|
|
1526
|
+
};
|
|
1527
|
+
readonly next: {
|
|
1528
|
+
readonly type: "string";
|
|
1529
|
+
};
|
|
1530
|
+
readonly next_flags: {
|
|
1531
|
+
readonly type: "string";
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
readonly lines: {
|
|
1536
|
+
readonly type: "integer";
|
|
1537
|
+
readonly minimum: 1;
|
|
1538
|
+
};
|
|
1539
|
+
readonly until_regex: {
|
|
1540
|
+
readonly type: "string";
|
|
1541
|
+
readonly minLength: 1;
|
|
1542
|
+
};
|
|
1543
|
+
readonly until_regex_flags: {
|
|
1544
|
+
readonly type: "string";
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
readonly condition: {
|
|
1549
|
+
readonly oneOf: readonly [{
|
|
1550
|
+
readonly $ref: "#/definitions/regexCondition";
|
|
1551
|
+
}, {
|
|
1552
|
+
readonly $ref: "#/definitions/changedCondition";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1557
|
+
}];
|
|
1558
|
+
};
|
|
1559
|
+
readonly regexCondition: {
|
|
1560
|
+
readonly type: "object";
|
|
1561
|
+
readonly additionalProperties: false;
|
|
1562
|
+
readonly required: readonly ["matches"];
|
|
1563
|
+
readonly properties: {
|
|
1564
|
+
readonly section: {
|
|
1565
|
+
readonly type: "string";
|
|
1566
|
+
};
|
|
1567
|
+
readonly matches: {
|
|
1568
|
+
readonly type: "string";
|
|
1569
|
+
readonly minLength: 1;
|
|
1570
|
+
};
|
|
1571
|
+
readonly flags: {
|
|
1572
|
+
readonly type: "string";
|
|
1573
|
+
};
|
|
1574
|
+
readonly cursor_row_min: {
|
|
1575
|
+
readonly type: "integer";
|
|
1576
|
+
readonly minimum: 0;
|
|
1577
|
+
};
|
|
1578
|
+
readonly cursor_row_max: {
|
|
1579
|
+
readonly type: "integer";
|
|
1580
|
+
readonly minimum: 0;
|
|
1581
|
+
};
|
|
1582
|
+
readonly cursor_col_min: {
|
|
1583
|
+
readonly type: "integer";
|
|
1584
|
+
readonly minimum: 0;
|
|
1585
|
+
};
|
|
1586
|
+
readonly cursor_col_max: {
|
|
1587
|
+
readonly type: "integer";
|
|
1588
|
+
readonly minimum: 0;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
readonly changedCondition: {
|
|
1593
|
+
readonly type: "object";
|
|
1594
|
+
readonly additionalProperties: false;
|
|
1595
|
+
readonly required: readonly ["cursor_above", "changed"];
|
|
1596
|
+
readonly properties: {
|
|
1597
|
+
readonly cursor_above: {
|
|
1598
|
+
readonly type: "integer";
|
|
1599
|
+
readonly minimum: 1;
|
|
1600
|
+
};
|
|
1601
|
+
readonly changed: {
|
|
1602
|
+
readonly type: "boolean";
|
|
1603
|
+
readonly const: true;
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
readonly allCondition: {
|
|
1608
|
+
readonly type: "object";
|
|
1609
|
+
readonly additionalProperties: false;
|
|
1610
|
+
readonly required: readonly ["all"];
|
|
1611
|
+
readonly properties: {
|
|
1612
|
+
readonly all: {
|
|
1613
|
+
readonly type: "array";
|
|
1614
|
+
readonly items: {
|
|
1615
|
+
readonly $ref: "#/definitions/condition";
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
readonly anyCondition: {
|
|
1621
|
+
readonly type: "object";
|
|
1622
|
+
readonly additionalProperties: false;
|
|
1623
|
+
readonly required: readonly ["any"];
|
|
1624
|
+
readonly properties: {
|
|
1625
|
+
readonly any: {
|
|
1626
|
+
readonly type: "array";
|
|
1627
|
+
readonly items: {
|
|
1628
|
+
readonly $ref: "#/definitions/condition";
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
readonly extractTitle: {
|
|
1634
|
+
readonly type: "object";
|
|
1635
|
+
readonly additionalProperties: false;
|
|
1636
|
+
readonly properties: {
|
|
1637
|
+
readonly section: {
|
|
1638
|
+
readonly type: "string";
|
|
1639
|
+
};
|
|
1640
|
+
readonly regex: {
|
|
1641
|
+
readonly type: "string";
|
|
1642
|
+
readonly minLength: 1;
|
|
1643
|
+
};
|
|
1644
|
+
readonly flags: {
|
|
1645
|
+
readonly type: "string";
|
|
1646
|
+
};
|
|
1647
|
+
readonly first_line: {
|
|
1648
|
+
readonly type: "boolean";
|
|
1649
|
+
readonly const: true;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
readonly extractButtons: {
|
|
1654
|
+
readonly type: "object";
|
|
1655
|
+
readonly additionalProperties: false;
|
|
1656
|
+
readonly required: readonly ["pattern", "key_for_index"];
|
|
1657
|
+
readonly properties: {
|
|
1658
|
+
readonly section: {
|
|
1659
|
+
readonly type: "string";
|
|
1660
|
+
};
|
|
1661
|
+
readonly pattern: {
|
|
1662
|
+
readonly type: "string";
|
|
1663
|
+
readonly minLength: 1;
|
|
1664
|
+
};
|
|
1665
|
+
readonly flags: {
|
|
1666
|
+
readonly type: "string";
|
|
1667
|
+
};
|
|
1668
|
+
readonly key_for_index: {
|
|
1669
|
+
readonly type: "string";
|
|
1670
|
+
readonly minLength: 1;
|
|
1671
|
+
};
|
|
1672
|
+
readonly min_count: {
|
|
1673
|
+
readonly type: "integer";
|
|
1674
|
+
readonly minimum: 1;
|
|
1675
|
+
readonly default: 2;
|
|
1676
|
+
};
|
|
1677
|
+
readonly continuation_lines: {
|
|
1678
|
+
readonly type: "boolean";
|
|
1679
|
+
readonly default: false;
|
|
1680
|
+
};
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
readonly stateV3: {
|
|
1684
|
+
readonly type: "object";
|
|
1685
|
+
readonly additionalProperties: false;
|
|
1686
|
+
readonly required: readonly ["id", "label", "when"];
|
|
1687
|
+
readonly properties: {
|
|
1688
|
+
readonly id: {
|
|
1689
|
+
readonly type: "string";
|
|
1690
|
+
readonly minLength: 1;
|
|
1691
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1692
|
+
};
|
|
1693
|
+
readonly label: {
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
readonly minLength: 1;
|
|
1696
|
+
};
|
|
1697
|
+
readonly when: {
|
|
1698
|
+
readonly oneOf: readonly [{
|
|
1699
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1702
|
+
}];
|
|
1703
|
+
};
|
|
1704
|
+
readonly extract: {
|
|
1705
|
+
readonly type: "object";
|
|
1706
|
+
readonly additionalProperties: false;
|
|
1707
|
+
readonly properties: {
|
|
1708
|
+
readonly title: {
|
|
1709
|
+
readonly $ref: "#/definitions/extractTitle";
|
|
1710
|
+
};
|
|
1711
|
+
readonly buttons: {
|
|
1712
|
+
readonly $ref: "#/definitions/extractButtons";
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
readonly sectionRegex: {
|
|
1719
|
+
readonly type: "object";
|
|
1720
|
+
readonly additionalProperties: false;
|
|
1721
|
+
readonly required: readonly ["regex"];
|
|
1722
|
+
readonly properties: {
|
|
1723
|
+
readonly section: {
|
|
1724
|
+
readonly type: "string";
|
|
1725
|
+
};
|
|
1726
|
+
readonly regex: {
|
|
1727
|
+
readonly type: "string";
|
|
1728
|
+
readonly minLength: 1;
|
|
1729
|
+
};
|
|
1730
|
+
readonly flags: {
|
|
1731
|
+
readonly type: "string";
|
|
1732
|
+
readonly default: "i";
|
|
1733
|
+
};
|
|
1734
|
+
readonly cursor_row_min: {
|
|
1735
|
+
readonly type: "integer";
|
|
1736
|
+
readonly minimum: 0;
|
|
1737
|
+
};
|
|
1738
|
+
readonly cursor_row_max: {
|
|
1739
|
+
readonly type: "integer";
|
|
1740
|
+
readonly minimum: 0;
|
|
1741
|
+
};
|
|
1742
|
+
readonly cursor_col_min: {
|
|
1743
|
+
readonly type: "integer";
|
|
1744
|
+
readonly minimum: 0;
|
|
1745
|
+
};
|
|
1746
|
+
readonly cursor_col_max: {
|
|
1747
|
+
readonly type: "integer";
|
|
1748
|
+
readonly minimum: 0;
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
readonly sectionPattern: {
|
|
1753
|
+
readonly type: "object";
|
|
1754
|
+
readonly additionalProperties: false;
|
|
1755
|
+
readonly required: readonly ["pattern"];
|
|
1756
|
+
readonly properties: {
|
|
1757
|
+
readonly section: {
|
|
1758
|
+
readonly type: "string";
|
|
1759
|
+
};
|
|
1760
|
+
readonly pattern: {
|
|
1761
|
+
readonly type: "string";
|
|
1762
|
+
readonly minLength: 1;
|
|
1763
|
+
};
|
|
1764
|
+
readonly flags: {
|
|
1765
|
+
readonly type: "string";
|
|
1766
|
+
readonly default: "";
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
readonly control: {
|
|
1771
|
+
readonly type: "object";
|
|
1772
|
+
readonly additionalProperties: false;
|
|
1773
|
+
readonly required: readonly ["id", "label", "action"];
|
|
1774
|
+
readonly properties: {
|
|
1775
|
+
readonly id: {
|
|
1776
|
+
readonly type: "string";
|
|
1777
|
+
readonly minLength: 1;
|
|
1778
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1779
|
+
};
|
|
1780
|
+
readonly label: {
|
|
1781
|
+
readonly type: "string";
|
|
1782
|
+
readonly minLength: 1;
|
|
1783
|
+
};
|
|
1784
|
+
readonly visible_when_state: {
|
|
1785
|
+
readonly type: "array";
|
|
1786
|
+
readonly items: {
|
|
1787
|
+
readonly type: "string";
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
readonly action: {
|
|
1791
|
+
readonly $ref: "#/definitions/controlAction";
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
readonly controlAction: {
|
|
1796
|
+
readonly oneOf: readonly [{
|
|
1797
|
+
readonly type: "object";
|
|
1798
|
+
readonly additionalProperties: false;
|
|
1799
|
+
readonly required: readonly ["type", "keys"];
|
|
1800
|
+
readonly properties: {
|
|
1801
|
+
readonly type: {
|
|
1802
|
+
readonly const: "send_keys";
|
|
1803
|
+
};
|
|
1804
|
+
readonly keys: {
|
|
1805
|
+
readonly type: "string";
|
|
1806
|
+
readonly minLength: 1;
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "object";
|
|
1811
|
+
readonly additionalProperties: false;
|
|
1812
|
+
readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
|
|
1813
|
+
readonly properties: {
|
|
1814
|
+
readonly type: {
|
|
1815
|
+
readonly const: "open_picker";
|
|
1816
|
+
};
|
|
1817
|
+
readonly trigger_keys: {
|
|
1818
|
+
readonly type: "string";
|
|
1819
|
+
readonly minLength: 1;
|
|
1820
|
+
};
|
|
1821
|
+
readonly wait_for: {
|
|
1822
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
1823
|
+
};
|
|
1824
|
+
readonly extract_choices: {
|
|
1825
|
+
readonly $ref: "#/definitions/sectionPattern";
|
|
1826
|
+
};
|
|
1827
|
+
readonly submit_key: {
|
|
1828
|
+
readonly type: "string";
|
|
1829
|
+
readonly minLength: 1;
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly type: "object";
|
|
1834
|
+
readonly additionalProperties: false;
|
|
1835
|
+
readonly required: readonly ["type", "method", "keys_template"];
|
|
1836
|
+
readonly properties: {
|
|
1837
|
+
readonly type: {
|
|
1838
|
+
readonly const: "attach_image";
|
|
1839
|
+
};
|
|
1840
|
+
readonly method: {
|
|
1841
|
+
readonly const: "tempfile_then_keys";
|
|
1842
|
+
};
|
|
1843
|
+
readonly keys_template: {
|
|
1844
|
+
readonly type: "string";
|
|
1845
|
+
readonly minLength: 1;
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
}];
|
|
1849
|
+
};
|
|
1850
|
+
readonly notification: {
|
|
1851
|
+
readonly type: "object";
|
|
1852
|
+
readonly additionalProperties: false;
|
|
1853
|
+
readonly required: readonly ["id", "when_state", "title"];
|
|
1854
|
+
readonly properties: {
|
|
1855
|
+
readonly id: {
|
|
1856
|
+
readonly type: "string";
|
|
1857
|
+
readonly minLength: 1;
|
|
1858
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1859
|
+
};
|
|
1860
|
+
readonly when_state: {
|
|
1861
|
+
readonly type: "string";
|
|
1862
|
+
readonly minLength: 1;
|
|
1863
|
+
};
|
|
1864
|
+
readonly title: {
|
|
1865
|
+
readonly type: "string";
|
|
1866
|
+
readonly minLength: 1;
|
|
1867
|
+
};
|
|
1868
|
+
readonly body: {
|
|
1869
|
+
readonly type: "string";
|
|
1870
|
+
};
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
readonly nativeHistory: {
|
|
1874
|
+
readonly type: "object";
|
|
1875
|
+
readonly additionalProperties: false;
|
|
1876
|
+
readonly properties: {
|
|
1877
|
+
readonly reader: {
|
|
1878
|
+
readonly type: "string";
|
|
1879
|
+
readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
|
|
1880
|
+
};
|
|
1881
|
+
readonly source: {
|
|
1882
|
+
readonly oneOf: readonly [{
|
|
1883
|
+
readonly $ref: "#/definitions/nativeHistoryJsonlSource";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly $ref: "#/definitions/nativeHistorySqliteSource";
|
|
1886
|
+
}];
|
|
1887
|
+
};
|
|
1888
|
+
readonly override_path: {
|
|
1889
|
+
readonly type: "string";
|
|
1890
|
+
readonly minLength: 1;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
readonly nativeHistoryMessageMap: {
|
|
1895
|
+
readonly type: "object";
|
|
1896
|
+
readonly additionalProperties: false;
|
|
1897
|
+
readonly required: readonly ["role", "content"];
|
|
1898
|
+
readonly properties: {
|
|
1899
|
+
readonly role: {
|
|
1900
|
+
readonly type: "string";
|
|
1901
|
+
readonly minLength: 1;
|
|
1902
|
+
};
|
|
1903
|
+
readonly content: {
|
|
1904
|
+
readonly type: "string";
|
|
1905
|
+
readonly minLength: 1;
|
|
1906
|
+
};
|
|
1907
|
+
readonly content_strip: {
|
|
1908
|
+
readonly type: "array";
|
|
1909
|
+
readonly items: {
|
|
1910
|
+
readonly type: "string";
|
|
1911
|
+
readonly minLength: 1;
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
readonly content_unwrap: {
|
|
1915
|
+
readonly type: "array";
|
|
1916
|
+
readonly items: {
|
|
1917
|
+
readonly type: "string";
|
|
1918
|
+
readonly minLength: 1;
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
readonly timestamp_ms: {
|
|
1922
|
+
readonly type: "string";
|
|
1923
|
+
readonly minLength: 1;
|
|
1924
|
+
};
|
|
1925
|
+
readonly kind: {
|
|
1926
|
+
readonly type: "string";
|
|
1927
|
+
readonly minLength: 1;
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
readonly nativeHistoryJsonlSource: {
|
|
1932
|
+
readonly type: "object";
|
|
1933
|
+
readonly additionalProperties: false;
|
|
1934
|
+
readonly required: readonly ["kind", "path", "message_map"];
|
|
1935
|
+
readonly properties: {
|
|
1936
|
+
readonly kind: {
|
|
1937
|
+
readonly const: "jsonl";
|
|
1938
|
+
};
|
|
1939
|
+
readonly path: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly minLength: 1;
|
|
1942
|
+
};
|
|
1943
|
+
readonly file_pattern: {
|
|
1944
|
+
readonly type: "string";
|
|
1945
|
+
readonly minLength: 1;
|
|
1946
|
+
};
|
|
1947
|
+
readonly recent_window_ms: {
|
|
1948
|
+
readonly type: "integer";
|
|
1949
|
+
readonly minimum: 0;
|
|
1950
|
+
};
|
|
1951
|
+
readonly session_id_from: {
|
|
1952
|
+
readonly type: "string";
|
|
1953
|
+
readonly enum: readonly ["filename_uuid", "first_record"];
|
|
1954
|
+
};
|
|
1955
|
+
readonly session_id_path: {
|
|
1956
|
+
readonly type: "string";
|
|
1957
|
+
readonly minLength: 1;
|
|
1958
|
+
};
|
|
1959
|
+
readonly message_filter: {
|
|
1960
|
+
readonly type: "object";
|
|
1961
|
+
readonly additionalProperties: false;
|
|
1962
|
+
readonly required: readonly ["where"];
|
|
1963
|
+
readonly properties: {
|
|
1964
|
+
readonly where: {
|
|
1965
|
+
readonly type: "string";
|
|
1966
|
+
readonly minLength: 1;
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
readonly message_map: {
|
|
1971
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
readonly nativeHistorySqliteSource: {
|
|
1976
|
+
readonly type: "object";
|
|
1977
|
+
readonly additionalProperties: false;
|
|
1978
|
+
readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
|
|
1979
|
+
readonly properties: {
|
|
1980
|
+
readonly kind: {
|
|
1981
|
+
readonly const: "sqlite";
|
|
1982
|
+
};
|
|
1983
|
+
readonly path: {
|
|
1984
|
+
readonly type: "string";
|
|
1985
|
+
readonly minLength: 1;
|
|
1986
|
+
};
|
|
1987
|
+
readonly session_query: {
|
|
1988
|
+
readonly type: "string";
|
|
1989
|
+
readonly minLength: 1;
|
|
1990
|
+
};
|
|
1991
|
+
readonly message_query: {
|
|
1992
|
+
readonly type: "string";
|
|
1993
|
+
readonly minLength: 1;
|
|
1994
|
+
};
|
|
1995
|
+
readonly message_map: {
|
|
1996
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
readonly delegateTrigger: {
|
|
2001
|
+
readonly type: "object";
|
|
2002
|
+
readonly additionalProperties: false;
|
|
2003
|
+
readonly required: readonly ["id", "when_state", "task_template"];
|
|
2004
|
+
readonly properties: {
|
|
2005
|
+
readonly id: {
|
|
2006
|
+
readonly type: "string";
|
|
2007
|
+
readonly minLength: 1;
|
|
2008
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
2009
|
+
};
|
|
2010
|
+
readonly when_state: {
|
|
2011
|
+
readonly type: "string";
|
|
2012
|
+
readonly minLength: 1;
|
|
2013
|
+
};
|
|
2014
|
+
readonly after_duration_ms: {
|
|
2015
|
+
readonly type: "integer";
|
|
2016
|
+
readonly minimum: 0;
|
|
2017
|
+
};
|
|
2018
|
+
readonly task_template: {
|
|
2019
|
+
readonly type: "string";
|
|
2020
|
+
readonly minLength: 1;
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
};
|