@hearsay-tools/squawk 0.18.0-pr3731.6890.2 → 0.18.0-pr3733.6901
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 +37 -37
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +1633 -1633
- package/package.json +4 -4
|
@@ -280,11 +280,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
280
280
|
"/api/v1/tools/ask": {
|
|
281
281
|
$post: {
|
|
282
282
|
output: {
|
|
283
|
-
|
|
283
|
+
ok: false;
|
|
284
|
+
code: 'unavailable';
|
|
284
285
|
message: string;
|
|
285
286
|
};
|
|
286
287
|
outputFormat: "json";
|
|
287
|
-
status:
|
|
288
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
288
289
|
input: {
|
|
289
290
|
json: {
|
|
290
291
|
questions: {
|
|
@@ -302,12 +303,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
302
303
|
};
|
|
303
304
|
} | {
|
|
304
305
|
output: {
|
|
305
|
-
|
|
306
|
-
code: 'unavailable';
|
|
306
|
+
code: 'capability_revoked';
|
|
307
307
|
message: string;
|
|
308
308
|
};
|
|
309
309
|
outputFormat: "json";
|
|
310
|
-
status:
|
|
310
|
+
status: 401;
|
|
311
311
|
input: {
|
|
312
312
|
json: {
|
|
313
313
|
questions: {
|
|
@@ -375,11 +375,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
375
375
|
"/api/v1/tools/cancel-wait": {
|
|
376
376
|
$post: {
|
|
377
377
|
output: {
|
|
378
|
-
|
|
378
|
+
cancelled: false;
|
|
379
|
+
code: 'unavailable';
|
|
379
380
|
message: string;
|
|
380
381
|
};
|
|
381
382
|
outputFormat: "json";
|
|
382
|
-
status:
|
|
383
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
383
384
|
input: {
|
|
384
385
|
json: {
|
|
385
386
|
wait_id: string;
|
|
@@ -387,12 +388,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
387
388
|
};
|
|
388
389
|
} | {
|
|
389
390
|
output: {
|
|
390
|
-
|
|
391
|
-
code: 'unavailable';
|
|
391
|
+
code: 'capability_revoked';
|
|
392
392
|
message: string;
|
|
393
393
|
};
|
|
394
394
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
395
|
+
status: 401;
|
|
396
396
|
input: {
|
|
397
397
|
json: {
|
|
398
398
|
wait_id: string;
|
|
@@ -440,11 +440,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
440
440
|
"/api/v1/tools/done": {
|
|
441
441
|
$post: {
|
|
442
442
|
output: {
|
|
443
|
-
|
|
443
|
+
ok: false;
|
|
444
|
+
code: 'unavailable';
|
|
444
445
|
message: string;
|
|
445
446
|
};
|
|
446
447
|
outputFormat: "json";
|
|
447
|
-
status:
|
|
448
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
448
449
|
input: {
|
|
449
450
|
json: {
|
|
450
451
|
summary?: string | undefined;
|
|
@@ -452,12 +453,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
452
453
|
};
|
|
453
454
|
} | {
|
|
454
455
|
output: {
|
|
455
|
-
|
|
456
|
-
code: 'unavailable';
|
|
456
|
+
code: 'capability_revoked';
|
|
457
457
|
message: string;
|
|
458
458
|
};
|
|
459
459
|
outputFormat: "json";
|
|
460
|
-
status:
|
|
460
|
+
status: 401;
|
|
461
461
|
input: {
|
|
462
462
|
json: {
|
|
463
463
|
summary?: string | undefined;
|
|
@@ -525,11 +525,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
525
525
|
"/api/v1/tools/preview-stop": {
|
|
526
526
|
$post: {
|
|
527
527
|
output: {
|
|
528
|
-
|
|
528
|
+
ok: boolean;
|
|
529
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
529
530
|
message: string;
|
|
531
|
+
hint: string;
|
|
530
532
|
};
|
|
531
533
|
outputFormat: "json";
|
|
532
|
-
status:
|
|
534
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
533
535
|
input: {
|
|
534
536
|
json: {
|
|
535
537
|
port: number;
|
|
@@ -538,13 +540,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
538
540
|
};
|
|
539
541
|
} | {
|
|
540
542
|
output: {
|
|
541
|
-
|
|
542
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
543
|
+
code: 'capability_revoked';
|
|
543
544
|
message: string;
|
|
544
|
-
hint: string;
|
|
545
545
|
};
|
|
546
546
|
outputFormat: "json";
|
|
547
|
-
status:
|
|
547
|
+
status: 401;
|
|
548
548
|
input: {
|
|
549
549
|
json: {
|
|
550
550
|
port: number;
|
|
@@ -557,11 +557,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
557
557
|
"/api/v1/tools/preview-serve": {
|
|
558
558
|
$post: {
|
|
559
559
|
output: {
|
|
560
|
-
|
|
560
|
+
ok: boolean;
|
|
561
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
561
562
|
message: string;
|
|
563
|
+
hint: string;
|
|
562
564
|
};
|
|
563
565
|
outputFormat: "json";
|
|
564
|
-
status:
|
|
566
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
565
567
|
input: {
|
|
566
568
|
json: {
|
|
567
569
|
command: string;
|
|
@@ -573,13 +575,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
573
575
|
};
|
|
574
576
|
} | {
|
|
575
577
|
output: {
|
|
576
|
-
|
|
577
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
578
|
+
code: 'capability_revoked';
|
|
578
579
|
message: string;
|
|
579
|
-
hint: string;
|
|
580
580
|
};
|
|
581
581
|
outputFormat: "json";
|
|
582
|
-
status:
|
|
582
|
+
status: 401;
|
|
583
583
|
input: {
|
|
584
584
|
json: {
|
|
585
585
|
command: string;
|
|
@@ -595,11 +595,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
595
595
|
"/api/v1/tools/schedule-task": {
|
|
596
596
|
$post: {
|
|
597
597
|
output: {
|
|
598
|
-
|
|
598
|
+
ok: false;
|
|
599
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
599
600
|
message: string;
|
|
600
601
|
};
|
|
601
602
|
outputFormat: "json";
|
|
602
|
-
status:
|
|
603
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
603
604
|
input: {
|
|
604
605
|
json: {
|
|
605
606
|
at?: string | undefined;
|
|
@@ -616,12 +617,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
616
617
|
};
|
|
617
618
|
} | {
|
|
618
619
|
output: {
|
|
619
|
-
|
|
620
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
620
|
+
code: 'capability_revoked';
|
|
621
621
|
message: string;
|
|
622
622
|
};
|
|
623
623
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
624
|
+
status: 401;
|
|
625
625
|
input: {
|
|
626
626
|
json: {
|
|
627
627
|
at?: string | undefined;
|
|
@@ -676,11 +676,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
676
676
|
"/api/v1/tools/scheduled-tasks": {
|
|
677
677
|
$post: {
|
|
678
678
|
output: {
|
|
679
|
-
|
|
679
|
+
ok: false;
|
|
680
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
680
681
|
message: string;
|
|
681
682
|
};
|
|
682
683
|
outputFormat: "json";
|
|
683
|
-
status:
|
|
684
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
684
685
|
input: {
|
|
685
686
|
json: {
|
|
686
687
|
at?: string | undefined;
|
|
@@ -713,12 +714,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
713
714
|
};
|
|
714
715
|
} | {
|
|
715
716
|
output: {
|
|
716
|
-
|
|
717
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
717
|
+
code: 'capability_revoked';
|
|
718
718
|
message: string;
|
|
719
719
|
};
|
|
720
720
|
outputFormat: "json";
|
|
721
|
-
status:
|
|
721
|
+
status: 401;
|
|
722
722
|
input: {
|
|
723
723
|
json: {
|
|
724
724
|
at?: string | undefined;
|
|
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
-
output: {
|
|
6
|
-
error: string;
|
|
7
|
-
code?: "invalid_input" | undefined;
|
|
8
|
-
};
|
|
9
|
-
outputFormat: "json";
|
|
10
|
-
status: 400;
|
|
11
|
-
input: {
|
|
12
|
-
query: {
|
|
13
|
-
offset?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
5
|
output: {
|
|
18
6
|
workers: {
|
|
19
7
|
workerId: string;
|
|
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
51
39
|
offset?: string | undefined;
|
|
52
40
|
};
|
|
53
41
|
};
|
|
42
|
+
} | {
|
|
43
|
+
output: {
|
|
44
|
+
error: string;
|
|
45
|
+
code?: "invalid_input" | undefined;
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 400;
|
|
49
|
+
input: {
|
|
50
|
+
query: {
|
|
51
|
+
offset?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -588,18 +588,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
588
588
|
} & {
|
|
589
589
|
"/:workerId": {
|
|
590
590
|
$get: {
|
|
591
|
-
output: {
|
|
592
|
-
error: string;
|
|
593
|
-
code?: "invalid_input" | undefined;
|
|
594
|
-
};
|
|
595
|
-
outputFormat: "json";
|
|
596
|
-
status: 400;
|
|
597
|
-
input: {
|
|
598
|
-
param: {
|
|
599
|
-
workerId: string;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
} | {
|
|
603
591
|
output: {
|
|
604
592
|
workerId: string;
|
|
605
593
|
parentRunId: string;
|
|
@@ -707,11 +695,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
707
695
|
workerId: string;
|
|
708
696
|
};
|
|
709
697
|
};
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
} & {
|
|
713
|
-
"/:workerId/collect": {
|
|
714
|
-
$post: {
|
|
698
|
+
} | {
|
|
715
699
|
output: {
|
|
716
700
|
error: string;
|
|
717
701
|
code?: "invalid_input" | undefined;
|
|
@@ -722,10 +706,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
722
706
|
param: {
|
|
723
707
|
workerId: string;
|
|
724
708
|
};
|
|
725
|
-
} & {
|
|
726
|
-
json: Record<string, never>;
|
|
727
709
|
};
|
|
728
|
-
}
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
} & {
|
|
713
|
+
"/:workerId/collect": {
|
|
714
|
+
$post: {
|
|
729
715
|
output: {
|
|
730
716
|
workerId: string;
|
|
731
717
|
parentRunId: string;
|
|
@@ -827,11 +813,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
827
813
|
} & {
|
|
828
814
|
json: Record<string, never>;
|
|
829
815
|
};
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
} & {
|
|
833
|
-
"/:workerId/steer": {
|
|
834
|
-
$post: {
|
|
816
|
+
} | {
|
|
835
817
|
output: {
|
|
836
818
|
error: string;
|
|
837
819
|
code?: "invalid_input" | undefined;
|
|
@@ -843,11 +825,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
843
825
|
workerId: string;
|
|
844
826
|
};
|
|
845
827
|
} & {
|
|
846
|
-
json:
|
|
847
|
-
text: string;
|
|
848
|
-
};
|
|
828
|
+
json: Record<string, never>;
|
|
849
829
|
};
|
|
850
|
-
}
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
} & {
|
|
833
|
+
"/:workerId/steer": {
|
|
834
|
+
$post: {
|
|
851
835
|
output: {
|
|
852
836
|
workerId: string;
|
|
853
837
|
state: "delivered" | "queued";
|
|
@@ -863,11 +847,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
863
847
|
text: string;
|
|
864
848
|
};
|
|
865
849
|
};
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
|
-
} & {
|
|
869
|
-
"/:workerId/stop": {
|
|
870
|
-
$post: {
|
|
850
|
+
} | {
|
|
871
851
|
output: {
|
|
872
852
|
error: string;
|
|
873
853
|
code?: "invalid_input" | undefined;
|
|
@@ -879,9 +859,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
879
859
|
workerId: string;
|
|
880
860
|
};
|
|
881
861
|
} & {
|
|
882
|
-
json:
|
|
862
|
+
json: {
|
|
863
|
+
text: string;
|
|
864
|
+
};
|
|
883
865
|
};
|
|
884
|
-
}
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
} & {
|
|
869
|
+
"/:workerId/stop": {
|
|
870
|
+
$post: {
|
|
885
871
|
output: {
|
|
886
872
|
workerId: string;
|
|
887
873
|
state: "stopping" | "terminated";
|
|
@@ -895,11 +881,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
895
881
|
} & {
|
|
896
882
|
json: Record<string, never>;
|
|
897
883
|
};
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
} & {
|
|
901
|
-
"/:workerId/destroy": {
|
|
902
|
-
$post: {
|
|
884
|
+
} | {
|
|
903
885
|
output: {
|
|
904
886
|
error: string;
|
|
905
887
|
code?: "invalid_input" | undefined;
|
|
@@ -913,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
913
895
|
} & {
|
|
914
896
|
json: Record<string, never>;
|
|
915
897
|
};
|
|
916
|
-
}
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
"/:workerId/destroy": {
|
|
902
|
+
$post: {
|
|
917
903
|
output: {
|
|
918
904
|
workerId: string;
|
|
919
905
|
state: "complete" | "incomplete";
|
|
@@ -936,6 +922,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
936
922
|
} & {
|
|
937
923
|
json: Record<string, never>;
|
|
938
924
|
};
|
|
925
|
+
} | {
|
|
926
|
+
output: {
|
|
927
|
+
error: string;
|
|
928
|
+
code?: "invalid_input" | undefined;
|
|
929
|
+
};
|
|
930
|
+
outputFormat: "json";
|
|
931
|
+
status: 400;
|
|
932
|
+
input: {
|
|
933
|
+
param: {
|
|
934
|
+
workerId: string;
|
|
935
|
+
};
|
|
936
|
+
} & {
|
|
937
|
+
json: Record<string, never>;
|
|
938
|
+
};
|
|
939
939
|
} | {
|
|
940
940
|
output: {
|
|
941
941
|
workerId: string;
|
|
@@ -965,11 +965,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
965
|
"/:workerId/diff": {
|
|
966
966
|
$get: {
|
|
967
967
|
output: {
|
|
968
|
-
|
|
969
|
-
|
|
968
|
+
workerId: string;
|
|
969
|
+
baselineSha: string;
|
|
970
|
+
diff: string;
|
|
971
|
+
truncated: boolean;
|
|
970
972
|
};
|
|
971
973
|
outputFormat: "json";
|
|
972
|
-
status:
|
|
974
|
+
status: 200;
|
|
973
975
|
input: {
|
|
974
976
|
param: {
|
|
975
977
|
workerId: string;
|
|
@@ -977,13 +979,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
977
979
|
};
|
|
978
980
|
} | {
|
|
979
981
|
output: {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
diff: string;
|
|
983
|
-
truncated: boolean;
|
|
982
|
+
error: string;
|
|
983
|
+
code?: "invalid_input" | undefined;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 400;
|
|
987
987
|
input: {
|
|
988
988
|
param: {
|
|
989
989
|
workerId: string;
|
|
@@ -59,29 +59,6 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
-
output: {
|
|
63
|
-
error: string;
|
|
64
|
-
code?: "invalid_input" | undefined;
|
|
65
|
-
};
|
|
66
|
-
outputFormat: "json";
|
|
67
|
-
status: 400;
|
|
68
|
-
input: {
|
|
69
|
-
query: {
|
|
70
|
-
project?: string | undefined;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
} | {
|
|
74
|
-
output: {
|
|
75
|
-
error: string;
|
|
76
|
-
};
|
|
77
|
-
outputFormat: "json";
|
|
78
|
-
status: 404 | 409 | 503;
|
|
79
|
-
input: {
|
|
80
|
-
query: {
|
|
81
|
-
project?: string | undefined;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
62
|
output: {
|
|
86
63
|
generatedAt: string;
|
|
87
64
|
projects: {
|
|
@@ -312,6 +289,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
312
289
|
project?: string | undefined;
|
|
313
290
|
};
|
|
314
291
|
};
|
|
292
|
+
} | {
|
|
293
|
+
output: {
|
|
294
|
+
error: string;
|
|
295
|
+
code?: "invalid_input" | undefined;
|
|
296
|
+
};
|
|
297
|
+
outputFormat: "json";
|
|
298
|
+
status: 400;
|
|
299
|
+
input: {
|
|
300
|
+
query: {
|
|
301
|
+
project?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
} | {
|
|
305
|
+
output: {
|
|
306
|
+
error: string;
|
|
307
|
+
};
|
|
308
|
+
outputFormat: "json";
|
|
309
|
+
status: 404 | 409 | 503;
|
|
310
|
+
input: {
|
|
311
|
+
query: {
|
|
312
|
+
project?: string | undefined;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 409;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|