@hearsay-tools/squawk 0.18.0-dev.6969 → 0.18.0-dev.6972

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.
@@ -280,12 +280,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
280
280
  "/api/v1/tools/ask": {
281
281
  $post: {
282
282
  output: {
283
- ok: false;
284
- code: 'unavailable';
283
+ code: 'capability_revoked';
285
284
  message: string;
286
285
  };
287
286
  outputFormat: "json";
288
- status: import("hono/utils/http-status").ContentfulStatusCode;
287
+ status: 401;
289
288
  input: {
290
289
  json: {
291
290
  questions: {
@@ -303,11 +302,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
303
302
  };
304
303
  } | {
305
304
  output: {
306
- code: 'capability_revoked';
305
+ ok: false;
306
+ code: 'unavailable';
307
307
  message: string;
308
308
  };
309
309
  outputFormat: "json";
310
- status: 401;
310
+ status: import("hono/utils/http-status").ContentfulStatusCode;
311
311
  input: {
312
312
  json: {
313
313
  questions: {
@@ -375,12 +375,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
375
375
  "/api/v1/tools/cancel-wait": {
376
376
  $post: {
377
377
  output: {
378
- cancelled: false;
379
- code: 'unavailable';
378
+ code: 'capability_revoked';
380
379
  message: string;
381
380
  };
382
381
  outputFormat: "json";
383
- status: import("hono/utils/http-status").ContentfulStatusCode;
382
+ status: 401;
384
383
  input: {
385
384
  json: {
386
385
  wait_id: string;
@@ -388,11 +387,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
388
387
  };
389
388
  } | {
390
389
  output: {
391
- code: 'capability_revoked';
390
+ cancelled: false;
391
+ code: 'unavailable';
392
392
  message: string;
393
393
  };
394
394
  outputFormat: "json";
395
- status: 401;
395
+ status: import("hono/utils/http-status").ContentfulStatusCode;
396
396
  input: {
397
397
  json: {
398
398
  wait_id: string;
@@ -440,12 +440,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
440
440
  "/api/v1/tools/done": {
441
441
  $post: {
442
442
  output: {
443
- ok: false;
444
- code: 'unavailable';
443
+ code: 'capability_revoked';
445
444
  message: string;
446
445
  };
447
446
  outputFormat: "json";
448
- status: import("hono/utils/http-status").ContentfulStatusCode;
447
+ status: 401;
449
448
  input: {
450
449
  json: {
451
450
  summary?: string | undefined;
@@ -453,11 +452,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
453
452
  };
454
453
  } | {
455
454
  output: {
456
- code: 'capability_revoked';
455
+ ok: false;
456
+ code: 'unavailable';
457
457
  message: string;
458
458
  };
459
459
  outputFormat: "json";
460
- status: 401;
460
+ status: import("hono/utils/http-status").ContentfulStatusCode;
461
461
  input: {
462
462
  json: {
463
463
  summary?: string | undefined;
@@ -540,13 +540,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
540
540
  "/api/v1/tools/preview-stop": {
541
541
  $post: {
542
542
  output: {
543
- ok: boolean;
544
- 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';
545
544
  message: string;
546
- hint: string;
547
545
  };
548
546
  outputFormat: "json";
549
- status: import("hono/utils/http-status").ContentfulStatusCode;
547
+ status: 401;
550
548
  input: {
551
549
  json: {
552
550
  port: number;
@@ -555,11 +553,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
555
553
  };
556
554
  } | {
557
555
  output: {
558
- code: 'capability_revoked';
556
+ ok: boolean;
557
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
559
558
  message: string;
559
+ hint: string;
560
560
  };
561
561
  outputFormat: "json";
562
- status: 401;
562
+ status: import("hono/utils/http-status").ContentfulStatusCode;
563
563
  input: {
564
564
  json: {
565
565
  port: number;
@@ -572,13 +572,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
572
572
  "/api/v1/tools/preview-serve": {
573
573
  $post: {
574
574
  output: {
575
- ok: boolean;
576
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
575
+ code: 'capability_revoked';
577
576
  message: string;
578
- hint: string;
579
577
  };
580
578
  outputFormat: "json";
581
- status: import("hono/utils/http-status").ContentfulStatusCode;
579
+ status: 401;
582
580
  input: {
583
581
  json: {
584
582
  command: string;
@@ -590,11 +588,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
590
588
  };
591
589
  } | {
592
590
  output: {
593
- code: 'capability_revoked';
591
+ ok: boolean;
592
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
594
593
  message: string;
594
+ hint: string;
595
595
  };
596
596
  outputFormat: "json";
597
- status: 401;
597
+ status: import("hono/utils/http-status").ContentfulStatusCode;
598
598
  input: {
599
599
  json: {
600
600
  command: string;
@@ -610,12 +610,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
610
610
  "/api/v1/tools/schedule-task": {
611
611
  $post: {
612
612
  output: {
613
- ok: false;
614
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
613
+ code: 'capability_revoked';
615
614
  message: string;
616
615
  };
617
616
  outputFormat: "json";
618
- status: import("hono/utils/http-status").ContentfulStatusCode;
617
+ status: 401;
619
618
  input: {
620
619
  json: {
621
620
  at?: string | undefined;
@@ -632,11 +631,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
632
631
  };
633
632
  } | {
634
633
  output: {
635
- code: 'capability_revoked';
634
+ ok: false;
635
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
636
636
  message: string;
637
637
  };
638
638
  outputFormat: "json";
639
- status: 401;
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
640
  input: {
641
641
  json: {
642
642
  at?: string | undefined;
@@ -691,12 +691,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
691
691
  "/api/v1/tools/scheduled-tasks": {
692
692
  $post: {
693
693
  output: {
694
- ok: false;
695
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
694
+ code: 'capability_revoked';
696
695
  message: string;
697
696
  };
698
697
  outputFormat: "json";
699
- status: import("hono/utils/http-status").ContentfulStatusCode;
698
+ status: 401;
700
699
  input: {
701
700
  json: {
702
701
  at?: string | undefined;
@@ -729,11 +728,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
729
728
  };
730
729
  } | {
731
730
  output: {
732
- code: 'capability_revoked';
731
+ ok: false;
732
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
733
733
  message: string;
734
734
  };
735
735
  outputFormat: "json";
736
- status: 401;
736
+ status: import("hono/utils/http-status").ContentfulStatusCode;
737
737
  input: {
738
738
  json: {
739
739
  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: Record<string, never>;
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
- workerId: string;
994
- baselineSha: string;
995
- diff: string;
996
- truncated: boolean;
993
+ error: string;
994
+ code?: "invalid_input" | undefined;
997
995
  };
998
996
  outputFormat: "json";
999
- status: 200;
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
- error: string;
1008
- code?: "invalid_input" | undefined;
1005
+ workerId: string;
1006
+ baselineSha: string;
1007
+ diff: string;
1008
+ truncated: boolean;
1009
1009
  };
1010
1010
  outputFormat: "json";
1011
- status: 400;
1011
+ status: 200;
1012
1012
  input: {
1013
1013
  param: {
1014
1014
  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: 400;
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: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;