@hearsay-tools/squawk 0.18.0-pr3784.7037 → 0.18.0-pr3784.7048

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.
@@ -282,12 +282,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
282
282
  "/api/v1/tools/ask": {
283
283
  $post: {
284
284
  output: {
285
- ok: false;
286
- code: 'unavailable';
285
+ code: 'capability_revoked';
287
286
  message: string;
288
287
  };
289
288
  outputFormat: "json";
290
- status: import("hono/utils/http-status").ContentfulStatusCode;
289
+ status: 401;
291
290
  input: {
292
291
  json: {
293
292
  questions: {
@@ -305,11 +304,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
305
304
  };
306
305
  } | {
307
306
  output: {
308
- code: 'capability_revoked';
307
+ ok: false;
308
+ code: 'unavailable';
309
309
  message: string;
310
310
  };
311
311
  outputFormat: "json";
312
- status: 401;
312
+ status: import("hono/utils/http-status").ContentfulStatusCode;
313
313
  input: {
314
314
  json: {
315
315
  questions: {
@@ -377,12 +377,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
377
377
  "/api/v1/tools/cancel-wait": {
378
378
  $post: {
379
379
  output: {
380
- cancelled: false;
381
- code: 'unavailable';
380
+ code: 'capability_revoked';
382
381
  message: string;
383
382
  };
384
383
  outputFormat: "json";
385
- status: import("hono/utils/http-status").ContentfulStatusCode;
384
+ status: 401;
386
385
  input: {
387
386
  json: {
388
387
  wait_id: string;
@@ -390,11 +389,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
390
389
  };
391
390
  } | {
392
391
  output: {
393
- code: 'capability_revoked';
392
+ cancelled: false;
393
+ code: 'unavailable';
394
394
  message: string;
395
395
  };
396
396
  outputFormat: "json";
397
- status: 401;
397
+ status: import("hono/utils/http-status").ContentfulStatusCode;
398
398
  input: {
399
399
  json: {
400
400
  wait_id: string;
@@ -442,12 +442,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
442
442
  "/api/v1/tools/done": {
443
443
  $post: {
444
444
  output: {
445
- ok: false;
446
- code: 'unavailable';
445
+ code: 'capability_revoked';
447
446
  message: string;
448
447
  };
449
448
  outputFormat: "json";
450
- status: import("hono/utils/http-status").ContentfulStatusCode;
449
+ status: 401;
451
450
  input: {
452
451
  json: {
453
452
  summary?: string | undefined;
@@ -455,11 +454,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
455
454
  };
456
455
  } | {
457
456
  output: {
458
- code: 'capability_revoked';
457
+ ok: false;
458
+ code: 'unavailable';
459
459
  message: string;
460
460
  };
461
461
  outputFormat: "json";
462
- status: 401;
462
+ status: import("hono/utils/http-status").ContentfulStatusCode;
463
463
  input: {
464
464
  json: {
465
465
  summary?: string | undefined;
@@ -542,13 +542,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
542
542
  "/api/v1/tools/preview-stop": {
543
543
  $post: {
544
544
  output: {
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";
545
+ code: 'capability_revoked';
547
546
  message: string;
548
- hint: string;
549
547
  };
550
548
  outputFormat: "json";
551
- status: import("hono/utils/http-status").ContentfulStatusCode;
549
+ status: 401;
552
550
  input: {
553
551
  json: {
554
552
  port: number;
@@ -557,11 +555,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
557
555
  };
558
556
  } | {
559
557
  output: {
560
- code: 'capability_revoked';
558
+ ok: boolean;
559
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
561
560
  message: string;
561
+ hint: string;
562
562
  };
563
563
  outputFormat: "json";
564
- status: 401;
564
+ status: import("hono/utils/http-status").ContentfulStatusCode;
565
565
  input: {
566
566
  json: {
567
567
  port: number;
@@ -574,13 +574,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
574
574
  "/api/v1/tools/preview-serve": {
575
575
  $post: {
576
576
  output: {
577
- ok: boolean;
578
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
577
+ code: 'capability_revoked';
579
578
  message: string;
580
- hint: string;
581
579
  };
582
580
  outputFormat: "json";
583
- status: import("hono/utils/http-status").ContentfulStatusCode;
581
+ status: 401;
584
582
  input: {
585
583
  json: {
586
584
  command: string;
@@ -592,11 +590,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
592
590
  };
593
591
  } | {
594
592
  output: {
595
- code: 'capability_revoked';
593
+ ok: boolean;
594
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
596
595
  message: string;
596
+ hint: string;
597
597
  };
598
598
  outputFormat: "json";
599
- status: 401;
599
+ status: import("hono/utils/http-status").ContentfulStatusCode;
600
600
  input: {
601
601
  json: {
602
602
  command: string;
@@ -612,12 +612,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
612
612
  "/api/v1/tools/automation": {
613
613
  $post: {
614
614
  output: {
615
- ok: false;
616
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
615
+ code: 'capability_revoked';
617
616
  message: string;
618
617
  };
619
618
  outputFormat: "json";
620
- status: import("hono/utils/http-status").ContentfulStatusCode;
619
+ status: 401;
621
620
  input: {
622
621
  json: {
623
622
  action: "create";
@@ -697,11 +696,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
697
696
  };
698
697
  } | {
699
698
  output: {
700
- code: 'capability_revoked';
699
+ ok: false;
700
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
701
701
  message: string;
702
702
  };
703
703
  outputFormat: "json";
704
- status: 401;
704
+ status: import("hono/utils/http-status").ContentfulStatusCode;
705
705
  input: {
706
706
  json: {
707
707
  action: "create";
@@ -957,12 +957,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
957
957
  "/api/v1/tools/schedule-task": {
958
958
  $post: {
959
959
  output: {
960
- ok: false;
961
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
960
+ code: 'capability_revoked';
962
961
  message: string;
963
962
  };
964
963
  outputFormat: "json";
965
- status: import("hono/utils/http-status").ContentfulStatusCode;
964
+ status: 401;
966
965
  input: {
967
966
  json: {
968
967
  at?: string | undefined;
@@ -979,11 +978,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
979
978
  };
980
979
  } | {
981
980
  output: {
982
- code: 'capability_revoked';
981
+ ok: false;
982
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
983
983
  message: string;
984
984
  };
985
985
  outputFormat: "json";
986
- status: 401;
986
+ status: import("hono/utils/http-status").ContentfulStatusCode;
987
987
  input: {
988
988
  json: {
989
989
  at?: string | undefined;
@@ -1038,12 +1038,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1038
1038
  "/api/v1/tools/scheduled-tasks": {
1039
1039
  $post: {
1040
1040
  output: {
1041
- ok: false;
1042
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1041
+ code: 'capability_revoked';
1043
1042
  message: string;
1044
1043
  };
1045
1044
  outputFormat: "json";
1046
- status: import("hono/utils/http-status").ContentfulStatusCode;
1045
+ status: 401;
1047
1046
  input: {
1048
1047
  json: {
1049
1048
  at?: string | undefined;
@@ -1076,11 +1075,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1076
1075
  };
1077
1076
  } | {
1078
1077
  output: {
1079
- code: 'capability_revoked';
1078
+ ok: false;
1079
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1080
1080
  message: string;
1081
1081
  };
1082
1082
  outputFormat: "json";
1083
- status: 401;
1083
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1084
1084
  input: {
1085
1085
  json: {
1086
1086
  at?: string | undefined;
@@ -61,6 +61,7 @@ export function startManagedSession(runner, spec, onEvent, opts) {
61
61
  onUiEvent: event => {
62
62
  if (event.type === 'turn.started')
63
63
  begin();
64
+ // oxlint-disable-next-line cez/ask-requested-read-outside-projection -- Pause the transport on the event type; no payload is read.
64
65
  if (event.type === 'ask.requested')
65
66
  pause();
66
67
  if (event.type === 'permission.requested') {
@@ -1 +1 @@
1
- {"version":3,"file":"managed-session.js","sourceRoot":"","sources":["../../src/core/managed-session.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;kEACkE;AAClE,MAAM,cAAc,GAAoC,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AAE/G;;;oEAGoE;AACpE,MAAM,UAAU,mBAAmB,CACjC,MAAyC,EACzC,IAAkB,EAClB,OAAoC,EACpC,IAAoB;IAEpB,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,EAAE,mBAAmB,IAAI,sBAAsB,CAAC,mBAAmB,CAAC;IAC5G,IAAI,OAAiC,CAAC;IACtC,IAAI,KAAgD,CAAC;IACrD,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC7C,gGAAgG;IAChG,kGAAkG;IAClG,IAAI,YAAgC,CAAC;IACrC,MAAM,KAAK,GAAG,GAAS,EAAE;QACvB,KAAK,IAAI,CAAC,CAAC;QACX,QAAQ,GAAG,KAAK,CAAC;QACjB,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,KAAK,GAAG,SAAS,CAAC;IACpB,CAAC,CAA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CAAC;QACD,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,SAAiB,EAAE,QAAgB,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/I,qBAAqB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,EAAE;QACzD,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE;QAC7C,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAoB,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/F,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAClC,gFAAgF;QAChF,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAa,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1E,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;KAC/C,CAAC;AACJ,CAAC"}
@@ -27,18 +27,6 @@ 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
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -76,6 +64,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
76
64
  offset?: string | undefined;
77
65
  };
78
66
  };
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,18 +613,6 @@ 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
- } | {
628
616
  output: {
629
617
  workerId: string;
630
618
  parentRunId: string;
@@ -732,11 +720,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
732
720
  workerId: string;
733
721
  };
734
722
  };
735
- };
736
- };
737
- } & {
738
- "/:workerId/collect": {
739
- $post: {
723
+ } | {
740
724
  output: {
741
725
  error: string;
742
726
  code?: "invalid_input" | undefined;
@@ -747,10 +731,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
747
731
  param: {
748
732
  workerId: string;
749
733
  };
750
- } & {
751
- json: Record<string, never>;
752
734
  };
753
- } | {
735
+ };
736
+ };
737
+ } & {
738
+ "/:workerId/collect": {
739
+ $post: {
754
740
  output: {
755
741
  workerId: string;
756
742
  parentRunId: string;
@@ -852,11 +838,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
852
838
  } & {
853
839
  json: Record<string, never>;
854
840
  };
855
- };
856
- };
857
- } & {
858
- "/:workerId/steer": {
859
- $post: {
841
+ } | {
860
842
  output: {
861
843
  error: string;
862
844
  code?: "invalid_input" | undefined;
@@ -868,11 +850,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
868
850
  workerId: string;
869
851
  };
870
852
  } & {
871
- json: {
872
- text: string;
873
- };
853
+ json: Record<string, never>;
874
854
  };
875
- } | {
855
+ };
856
+ };
857
+ } & {
858
+ "/:workerId/steer": {
859
+ $post: {
876
860
  output: {
877
861
  workerId: string;
878
862
  state: "delivered" | "queued";
@@ -888,11 +872,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
888
872
  text: string;
889
873
  };
890
874
  };
891
- };
892
- };
893
- } & {
894
- "/:workerId/stop": {
895
- $post: {
875
+ } | {
896
876
  output: {
897
877
  error: string;
898
878
  code?: "invalid_input" | undefined;
@@ -904,9 +884,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
904
884
  workerId: string;
905
885
  };
906
886
  } & {
907
- json: Record<string, never>;
887
+ json: {
888
+ text: string;
889
+ };
908
890
  };
909
- } | {
891
+ };
892
+ };
893
+ } & {
894
+ "/:workerId/stop": {
895
+ $post: {
910
896
  output: {
911
897
  workerId: string;
912
898
  state: "stopping" | "terminated";
@@ -920,11 +906,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
920
906
  } & {
921
907
  json: Record<string, never>;
922
908
  };
923
- };
924
- };
925
- } & {
926
- "/:workerId/destroy": {
927
- $post: {
909
+ } | {
928
910
  output: {
929
911
  error: string;
930
912
  code?: "invalid_input" | undefined;
@@ -938,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
938
920
  } & {
939
921
  json: Record<string, never>;
940
922
  };
941
- } | {
923
+ };
924
+ };
925
+ } & {
926
+ "/:workerId/destroy": {
927
+ $post: {
942
928
  output: {
943
929
  workerId: string;
944
930
  state: "complete" | "incomplete";
@@ -961,6 +947,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
961
947
  } & {
962
948
  json: Record<string, never>;
963
949
  };
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,11 +990,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
990
990
  "/:workerId/diff": {
991
991
  $get: {
992
992
  output: {
993
- error: string;
994
- code?: "invalid_input" | undefined;
993
+ workerId: string;
994
+ baselineSha: string;
995
+ diff: string;
996
+ truncated: boolean;
995
997
  };
996
998
  outputFormat: "json";
997
- status: 400;
999
+ status: 200;
998
1000
  input: {
999
1001
  param: {
1000
1002
  workerId: string;
@@ -1002,13 +1004,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1002
1004
  };
1003
1005
  } | {
1004
1006
  output: {
1005
- workerId: string;
1006
- baselineSha: string;
1007
- diff: string;
1008
- truncated: boolean;
1007
+ error: string;
1008
+ code?: "invalid_input" | undefined;
1009
1009
  };
1010
1010
  outputFormat: "json";
1011
- status: 200;
1011
+ status: 400;
1012
1012
  input: {
1013
1013
  param: {
1014
1014
  workerId: string;
@@ -5,7 +5,7 @@ import type { RunRecord } from './store.ts';
5
5
  * Outcome writes (hearsay-tools/cezarion#1805). A write that records an outcome — an input or a
6
6
  * wait `delivered`, a wake `charged`, a wait `settled`, a question `answered` — is staged here, with
7
7
  * what it depends on, and committed by `RunStore.commitOutcome` in one transaction. Nothing outside
8
- * this module writes those fields: the `outcome-write-outside-commit-outcome` ast-grep rule refuses
8
+ * this module writes those fields: the `outcome-write-outside-commit-outcome` oxlint AST rule refuses
9
9
  * one. A conversation request outcome is the one exception: `RunStore.commitConversation` commits
10
10
  * it with the recipient's reply input, in one transaction of its own.
11
11
  *
@@ -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;