@hearsay-tools/squawk 0.18.0-pr3784.7041 → 0.18.0-pr3785.7042
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/ci-wait/controller.d.ts +42 -42
- package/dist/delegation/routes.d.ts +62 -62
- package/dist/server/server.d.ts +1630 -1630
- package/package.json +4 -4
|
@@ -282,11 +282,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
282
282
|
"/api/v1/tools/ask": {
|
|
283
283
|
$post: {
|
|
284
284
|
output: {
|
|
285
|
-
|
|
285
|
+
ok: false;
|
|
286
|
+
code: 'unavailable';
|
|
286
287
|
message: string;
|
|
287
288
|
};
|
|
288
289
|
outputFormat: "json";
|
|
289
|
-
status:
|
|
290
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
290
291
|
input: {
|
|
291
292
|
json: {
|
|
292
293
|
questions: {
|
|
@@ -304,12 +305,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
304
305
|
};
|
|
305
306
|
} | {
|
|
306
307
|
output: {
|
|
307
|
-
|
|
308
|
-
code: 'unavailable';
|
|
308
|
+
code: 'capability_revoked';
|
|
309
309
|
message: string;
|
|
310
310
|
};
|
|
311
311
|
outputFormat: "json";
|
|
312
|
-
status:
|
|
312
|
+
status: 401;
|
|
313
313
|
input: {
|
|
314
314
|
json: {
|
|
315
315
|
questions: {
|
|
@@ -377,11 +377,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
377
377
|
"/api/v1/tools/cancel-wait": {
|
|
378
378
|
$post: {
|
|
379
379
|
output: {
|
|
380
|
-
|
|
380
|
+
cancelled: false;
|
|
381
|
+
code: 'unavailable';
|
|
381
382
|
message: string;
|
|
382
383
|
};
|
|
383
384
|
outputFormat: "json";
|
|
384
|
-
status:
|
|
385
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
385
386
|
input: {
|
|
386
387
|
json: {
|
|
387
388
|
wait_id: string;
|
|
@@ -389,12 +390,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
389
390
|
};
|
|
390
391
|
} | {
|
|
391
392
|
output: {
|
|
392
|
-
|
|
393
|
-
code: 'unavailable';
|
|
393
|
+
code: 'capability_revoked';
|
|
394
394
|
message: string;
|
|
395
395
|
};
|
|
396
396
|
outputFormat: "json";
|
|
397
|
-
status:
|
|
397
|
+
status: 401;
|
|
398
398
|
input: {
|
|
399
399
|
json: {
|
|
400
400
|
wait_id: string;
|
|
@@ -442,11 +442,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
442
442
|
"/api/v1/tools/done": {
|
|
443
443
|
$post: {
|
|
444
444
|
output: {
|
|
445
|
-
|
|
445
|
+
ok: false;
|
|
446
|
+
code: 'unavailable';
|
|
446
447
|
message: string;
|
|
447
448
|
};
|
|
448
449
|
outputFormat: "json";
|
|
449
|
-
status:
|
|
450
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
450
451
|
input: {
|
|
451
452
|
json: {
|
|
452
453
|
summary?: string | undefined;
|
|
@@ -454,12 +455,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
454
455
|
};
|
|
455
456
|
} | {
|
|
456
457
|
output: {
|
|
457
|
-
|
|
458
|
-
code: 'unavailable';
|
|
458
|
+
code: 'capability_revoked';
|
|
459
459
|
message: string;
|
|
460
460
|
};
|
|
461
461
|
outputFormat: "json";
|
|
462
|
-
status:
|
|
462
|
+
status: 401;
|
|
463
463
|
input: {
|
|
464
464
|
json: {
|
|
465
465
|
summary?: string | undefined;
|
|
@@ -542,11 +542,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
542
542
|
"/api/v1/tools/preview-stop": {
|
|
543
543
|
$post: {
|
|
544
544
|
output: {
|
|
545
|
-
|
|
545
|
+
ok: boolean;
|
|
546
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
546
547
|
message: string;
|
|
548
|
+
hint: string;
|
|
547
549
|
};
|
|
548
550
|
outputFormat: "json";
|
|
549
|
-
status:
|
|
551
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
550
552
|
input: {
|
|
551
553
|
json: {
|
|
552
554
|
port: number;
|
|
@@ -555,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
555
557
|
};
|
|
556
558
|
} | {
|
|
557
559
|
output: {
|
|
558
|
-
|
|
559
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
560
|
+
code: 'capability_revoked';
|
|
560
561
|
message: string;
|
|
561
|
-
hint: string;
|
|
562
562
|
};
|
|
563
563
|
outputFormat: "json";
|
|
564
|
-
status:
|
|
564
|
+
status: 401;
|
|
565
565
|
input: {
|
|
566
566
|
json: {
|
|
567
567
|
port: number;
|
|
@@ -574,11 +574,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
574
574
|
"/api/v1/tools/preview-serve": {
|
|
575
575
|
$post: {
|
|
576
576
|
output: {
|
|
577
|
-
|
|
577
|
+
ok: boolean;
|
|
578
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
578
579
|
message: string;
|
|
580
|
+
hint: string;
|
|
579
581
|
};
|
|
580
582
|
outputFormat: "json";
|
|
581
|
-
status:
|
|
583
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
582
584
|
input: {
|
|
583
585
|
json: {
|
|
584
586
|
command: string;
|
|
@@ -590,13 +592,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
590
592
|
};
|
|
591
593
|
} | {
|
|
592
594
|
output: {
|
|
593
|
-
|
|
594
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
595
|
+
code: 'capability_revoked';
|
|
595
596
|
message: string;
|
|
596
|
-
hint: string;
|
|
597
597
|
};
|
|
598
598
|
outputFormat: "json";
|
|
599
|
-
status:
|
|
599
|
+
status: 401;
|
|
600
600
|
input: {
|
|
601
601
|
json: {
|
|
602
602
|
command: string;
|
|
@@ -612,11 +612,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
612
612
|
"/api/v1/tools/automation": {
|
|
613
613
|
$post: {
|
|
614
614
|
output: {
|
|
615
|
-
|
|
615
|
+
ok: false;
|
|
616
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
616
617
|
message: string;
|
|
617
618
|
};
|
|
618
619
|
outputFormat: "json";
|
|
619
|
-
status:
|
|
620
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
620
621
|
input: {
|
|
621
622
|
json: {
|
|
622
623
|
action: "create";
|
|
@@ -696,12 +697,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
696
697
|
};
|
|
697
698
|
} | {
|
|
698
699
|
output: {
|
|
699
|
-
|
|
700
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
700
|
+
code: 'capability_revoked';
|
|
701
701
|
message: string;
|
|
702
702
|
};
|
|
703
703
|
outputFormat: "json";
|
|
704
|
-
status:
|
|
704
|
+
status: 401;
|
|
705
705
|
input: {
|
|
706
706
|
json: {
|
|
707
707
|
action: "create";
|
|
@@ -957,11 +957,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
957
957
|
"/api/v1/tools/schedule-task": {
|
|
958
958
|
$post: {
|
|
959
959
|
output: {
|
|
960
|
-
|
|
960
|
+
ok: false;
|
|
961
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
961
962
|
message: string;
|
|
962
963
|
};
|
|
963
964
|
outputFormat: "json";
|
|
964
|
-
status:
|
|
965
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
965
966
|
input: {
|
|
966
967
|
json: {
|
|
967
968
|
at?: string | undefined;
|
|
@@ -978,12 +979,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
978
979
|
};
|
|
979
980
|
} | {
|
|
980
981
|
output: {
|
|
981
|
-
|
|
982
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
982
|
+
code: 'capability_revoked';
|
|
983
983
|
message: string;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 401;
|
|
987
987
|
input: {
|
|
988
988
|
json: {
|
|
989
989
|
at?: string | undefined;
|
|
@@ -1038,11 +1038,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1038
1038
|
"/api/v1/tools/scheduled-tasks": {
|
|
1039
1039
|
$post: {
|
|
1040
1040
|
output: {
|
|
1041
|
-
|
|
1041
|
+
ok: false;
|
|
1042
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1042
1043
|
message: string;
|
|
1043
1044
|
};
|
|
1044
1045
|
outputFormat: "json";
|
|
1045
|
-
status:
|
|
1046
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1046
1047
|
input: {
|
|
1047
1048
|
json: {
|
|
1048
1049
|
at?: string | undefined;
|
|
@@ -1075,12 +1076,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1075
1076
|
};
|
|
1076
1077
|
} | {
|
|
1077
1078
|
output: {
|
|
1078
|
-
|
|
1079
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1079
|
+
code: 'capability_revoked';
|
|
1080
1080
|
message: string;
|
|
1081
1081
|
};
|
|
1082
1082
|
outputFormat: "json";
|
|
1083
|
-
status:
|
|
1083
|
+
status: 401;
|
|
1084
1084
|
input: {
|
|
1085
1085
|
json: {
|
|
1086
1086
|
at?: string | undefined;
|
|
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code?: "invalid_input" | undefined;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 400;
|
|
36
|
+
input: {
|
|
37
|
+
query: {
|
|
38
|
+
offset?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -64,18 +76,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
64
76
|
offset?: string | undefined;
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
|
-
} | {
|
|
68
|
-
output: {
|
|
69
|
-
error: string;
|
|
70
|
-
code?: "invalid_input" | undefined;
|
|
71
|
-
};
|
|
72
|
-
outputFormat: "json";
|
|
73
|
-
status: 400;
|
|
74
|
-
input: {
|
|
75
|
-
query: {
|
|
76
|
-
offset?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
@@ -613,6 +613,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
613
613
|
} & {
|
|
614
614
|
"/:workerId": {
|
|
615
615
|
$get: {
|
|
616
|
+
output: {
|
|
617
|
+
error: string;
|
|
618
|
+
code?: "invalid_input" | undefined;
|
|
619
|
+
};
|
|
620
|
+
outputFormat: "json";
|
|
621
|
+
status: 400;
|
|
622
|
+
input: {
|
|
623
|
+
param: {
|
|
624
|
+
workerId: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
} | {
|
|
616
628
|
output: {
|
|
617
629
|
workerId: string;
|
|
618
630
|
parentRunId: string;
|
|
@@ -720,7 +732,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
720
732
|
workerId: string;
|
|
721
733
|
};
|
|
722
734
|
};
|
|
723
|
-
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
"/:workerId/collect": {
|
|
739
|
+
$post: {
|
|
724
740
|
output: {
|
|
725
741
|
error: string;
|
|
726
742
|
code?: "invalid_input" | undefined;
|
|
@@ -731,12 +747,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
731
747
|
param: {
|
|
732
748
|
workerId: string;
|
|
733
749
|
};
|
|
750
|
+
} & {
|
|
751
|
+
json: Record<string, never>;
|
|
734
752
|
};
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
} & {
|
|
738
|
-
"/:workerId/collect": {
|
|
739
|
-
$post: {
|
|
753
|
+
} | {
|
|
740
754
|
output: {
|
|
741
755
|
workerId: string;
|
|
742
756
|
parentRunId: string;
|
|
@@ -838,7 +852,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
838
852
|
} & {
|
|
839
853
|
json: Record<string, never>;
|
|
840
854
|
};
|
|
841
|
-
}
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
} & {
|
|
858
|
+
"/:workerId/steer": {
|
|
859
|
+
$post: {
|
|
842
860
|
output: {
|
|
843
861
|
error: string;
|
|
844
862
|
code?: "invalid_input" | undefined;
|
|
@@ -850,13 +868,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
850
868
|
workerId: string;
|
|
851
869
|
};
|
|
852
870
|
} & {
|
|
853
|
-
json:
|
|
871
|
+
json: {
|
|
872
|
+
text: string;
|
|
873
|
+
};
|
|
854
874
|
};
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
} & {
|
|
858
|
-
"/:workerId/steer": {
|
|
859
|
-
$post: {
|
|
875
|
+
} | {
|
|
860
876
|
output: {
|
|
861
877
|
workerId: string;
|
|
862
878
|
state: "delivered" | "queued";
|
|
@@ -872,7 +888,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
872
888
|
text: string;
|
|
873
889
|
};
|
|
874
890
|
};
|
|
875
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/stop": {
|
|
895
|
+
$post: {
|
|
876
896
|
output: {
|
|
877
897
|
error: string;
|
|
878
898
|
code?: "invalid_input" | undefined;
|
|
@@ -884,15 +904,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
884
904
|
workerId: string;
|
|
885
905
|
};
|
|
886
906
|
} & {
|
|
887
|
-
json:
|
|
888
|
-
text: string;
|
|
889
|
-
};
|
|
907
|
+
json: Record<string, never>;
|
|
890
908
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/stop": {
|
|
895
|
-
$post: {
|
|
909
|
+
} | {
|
|
896
910
|
output: {
|
|
897
911
|
workerId: string;
|
|
898
912
|
state: "stopping" | "terminated";
|
|
@@ -906,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
906
920
|
} & {
|
|
907
921
|
json: Record<string, never>;
|
|
908
922
|
};
|
|
909
|
-
}
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
"/:workerId/destroy": {
|
|
927
|
+
$post: {
|
|
910
928
|
output: {
|
|
911
929
|
error: string;
|
|
912
930
|
code?: "invalid_input" | undefined;
|
|
@@ -920,11 +938,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
920
938
|
} & {
|
|
921
939
|
json: Record<string, never>;
|
|
922
940
|
};
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
} & {
|
|
926
|
-
"/:workerId/destroy": {
|
|
927
|
-
$post: {
|
|
941
|
+
} | {
|
|
928
942
|
output: {
|
|
929
943
|
workerId: string;
|
|
930
944
|
state: "complete" | "incomplete";
|
|
@@ -947,20 +961,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
947
961
|
} & {
|
|
948
962
|
json: Record<string, never>;
|
|
949
963
|
};
|
|
950
|
-
} | {
|
|
951
|
-
output: {
|
|
952
|
-
error: string;
|
|
953
|
-
code?: "invalid_input" | undefined;
|
|
954
|
-
};
|
|
955
|
-
outputFormat: "json";
|
|
956
|
-
status: 400;
|
|
957
|
-
input: {
|
|
958
|
-
param: {
|
|
959
|
-
workerId: string;
|
|
960
|
-
};
|
|
961
|
-
} & {
|
|
962
|
-
json: Record<string, never>;
|
|
963
|
-
};
|
|
964
964
|
} | {
|
|
965
965
|
output: {
|
|
966
966
|
workerId: string;
|
|
@@ -990,13 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
990
|
"/:workerId/diff": {
|
|
991
991
|
$get: {
|
|
992
992
|
output: {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
diff: string;
|
|
996
|
-
truncated: boolean;
|
|
993
|
+
error: string;
|
|
994
|
+
code?: "invalid_input" | undefined;
|
|
997
995
|
};
|
|
998
996
|
outputFormat: "json";
|
|
999
|
-
status:
|
|
997
|
+
status: 400;
|
|
1000
998
|
input: {
|
|
1001
999
|
param: {
|
|
1002
1000
|
workerId: string;
|
|
@@ -1004,11 +1002,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1004
1002
|
};
|
|
1005
1003
|
} | {
|
|
1006
1004
|
output: {
|
|
1007
|
-
|
|
1008
|
-
|
|
1005
|
+
workerId: string;
|
|
1006
|
+
baselineSha: string;
|
|
1007
|
+
diff: string;
|
|
1008
|
+
truncated: boolean;
|
|
1009
1009
|
};
|
|
1010
1010
|
outputFormat: "json";
|
|
1011
|
-
status:
|
|
1011
|
+
status: 200;
|
|
1012
1012
|
input: {
|
|
1013
1013
|
param: {
|
|
1014
1014
|
workerId: string;
|