@hearsay-tools/squawk 0.18.0-pr3682.6705 → 0.18.0-pr3684.6708

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.
Files changed (50) hide show
  1. package/dist/ci-wait/controller.d.ts +37 -37
  2. package/dist/ci-wait/tools.d.ts +4 -4
  3. package/dist/delegation/routes.d.ts +9 -9
  4. package/dist/delegation/transport.d.ts +73 -73
  5. package/dist/server/activity-routes.d.ts +23 -23
  6. package/dist/server/server.d.ts +40 -40
  7. package/dist/workflows/run/auto-resume.d.ts +6 -7
  8. package/dist/workflows/run/auto-resume.js +25 -16
  9. package/dist/workflows/run/auto-resume.js.map +1 -1
  10. package/dist/workflows/run/compose.d.ts +0 -3
  11. package/dist/workflows/run/compose.js +8 -9
  12. package/dist/workflows/run/compose.js.map +1 -1
  13. package/dist/workflows/run/continuation-session.js +0 -2
  14. package/dist/workflows/run/continuation-session.js.map +1 -1
  15. package/dist/workflows/run/family-reconciler.d.ts +5 -4
  16. package/dist/workflows/run/family-reconciler.js +19 -9
  17. package/dist/workflows/run/family-reconciler.js.map +1 -1
  18. package/dist/workflows/run/inbox-claims.d.ts +4 -3
  19. package/dist/workflows/run/inbox-claims.js +17 -7
  20. package/dist/workflows/run/inbox-claims.js.map +1 -1
  21. package/dist/workflows/run/input-delivery.d.ts +1 -3
  22. package/dist/workflows/run/input-delivery.js +15 -14
  23. package/dist/workflows/run/input-delivery.js.map +1 -1
  24. package/dist/workflows/run/input-timers.js +2 -3
  25. package/dist/workflows/run/input-timers.js.map +1 -1
  26. package/dist/workflows/run/run-memory.d.ts +2 -10
  27. package/dist/workflows/run/run-memory.js +5 -20
  28. package/dist/workflows/run/run-memory.js.map +1 -1
  29. package/dist/workflows/run/squawk-tools.js +0 -2
  30. package/dist/workflows/run/squawk-tools.js.map +1 -1
  31. package/dist/workflows/run/subagent-waits.d.ts +5 -3
  32. package/dist/workflows/run/subagent-waits.js +32 -13
  33. package/dist/workflows/run/subagent-waits.js.map +1 -1
  34. package/dist/workflows/run/turn-nudges.d.ts +1 -3
  35. package/dist/workflows/run/turn-nudges.js +6 -9
  36. package/dist/workflows/run/turn-nudges.js.map +1 -1
  37. package/dist/workflows/run/turn-settler.d.ts +1 -3
  38. package/dist/workflows/run/turn-settler.js +4 -7
  39. package/dist/workflows/run/turn-settler.js.map +1 -1
  40. package/dist/workflows/run/wake-retries.d.ts +7 -5
  41. package/dist/workflows/run/wake-retries.js +42 -17
  42. package/dist/workflows/run/wake-retries.js.map +1 -1
  43. package/dist/workflows/run/worker-executions.js +0 -2
  44. package/dist/workflows/run/worker-executions.js.map +1 -1
  45. package/dist/workflows/run.js +1 -8
  46. package/dist/workflows/run.js.map +1 -1
  47. package/package.json +4 -4
  48. package/dist/workflows/run/liveness-timers.d.ts +0 -93
  49. package/dist/workflows/run/liveness-timers.js +0 -105
  50. package/dist/workflows/run/liveness-timers.js.map +0 -1
@@ -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;
@@ -525,13 +525,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
525
525
  "/api/v1/tools/preview-stop": {
526
526
  $post: {
527
527
  output: {
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";
528
+ code: 'capability_revoked';
530
529
  message: string;
531
- hint: string;
532
530
  };
533
531
  outputFormat: "json";
534
- status: import("hono/utils/http-status").ContentfulStatusCode;
532
+ status: 401;
535
533
  input: {
536
534
  json: {
537
535
  port: number;
@@ -540,11 +538,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
540
538
  };
541
539
  } | {
542
540
  output: {
543
- code: 'capability_revoked';
541
+ ok: boolean;
542
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
544
543
  message: string;
544
+ hint: string;
545
545
  };
546
546
  outputFormat: "json";
547
- status: 401;
547
+ status: import("hono/utils/http-status").ContentfulStatusCode;
548
548
  input: {
549
549
  json: {
550
550
  port: number;
@@ -557,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
557
557
  "/api/v1/tools/preview-serve": {
558
558
  $post: {
559
559
  output: {
560
- ok: boolean;
561
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
560
+ code: 'capability_revoked';
562
561
  message: string;
563
- hint: string;
564
562
  };
565
563
  outputFormat: "json";
566
- status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ status: 401;
567
565
  input: {
568
566
  json: {
569
567
  command: string;
@@ -575,11 +573,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
575
573
  };
576
574
  } | {
577
575
  output: {
578
- code: 'capability_revoked';
576
+ ok: boolean;
577
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
579
578
  message: string;
579
+ hint: string;
580
580
  };
581
581
  outputFormat: "json";
582
- status: 401;
582
+ status: import("hono/utils/http-status").ContentfulStatusCode;
583
583
  input: {
584
584
  json: {
585
585
  command: string;
@@ -595,12 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
595
595
  "/api/v1/tools/schedule-task": {
596
596
  $post: {
597
597
  output: {
598
- ok: false;
599
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
598
+ code: 'capability_revoked';
600
599
  message: string;
601
600
  };
602
601
  outputFormat: "json";
603
- status: import("hono/utils/http-status").ContentfulStatusCode;
602
+ status: 401;
604
603
  input: {
605
604
  json: {
606
605
  at?: string | undefined;
@@ -617,11 +616,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
617
616
  };
618
617
  } | {
619
618
  output: {
620
- code: 'capability_revoked';
619
+ ok: false;
620
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
621
621
  message: string;
622
622
  };
623
623
  outputFormat: "json";
624
- status: 401;
624
+ status: import("hono/utils/http-status").ContentfulStatusCode;
625
625
  input: {
626
626
  json: {
627
627
  at?: string | undefined;
@@ -676,12 +676,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
676
676
  "/api/v1/tools/scheduled-tasks": {
677
677
  $post: {
678
678
  output: {
679
- ok: false;
680
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
679
+ code: 'capability_revoked';
681
680
  message: string;
682
681
  };
683
682
  outputFormat: "json";
684
- status: import("hono/utils/http-status").ContentfulStatusCode;
683
+ status: 401;
685
684
  input: {
686
685
  json: {
687
686
  at?: string | undefined;
@@ -714,11 +713,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
714
713
  };
715
714
  } | {
716
715
  output: {
717
- code: 'capability_revoked';
716
+ ok: false;
717
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
718
718
  message: string;
719
719
  };
720
720
  outputFormat: "json";
721
- status: 401;
721
+ status: import("hono/utils/http-status").ContentfulStatusCode;
722
722
  input: {
723
723
  json: {
724
724
  at?: string | undefined;
@@ -248,10 +248,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
248
248
  }[];
249
249
  isError: boolean;
250
250
  details: {
251
- ok: false;
252
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
253
- message: string;
254
- } | {
255
251
  ok: true;
256
252
  task: {
257
253
  id: string;
@@ -263,6 +259,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
263
259
  url?: string | undefined;
264
260
  };
265
261
  note: string;
262
+ } | {
263
+ ok: false;
264
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
265
+ message: string;
266
266
  };
267
267
  }>;
268
268
  export declare function invokeScheduledTasksTool(input: unknown): Promise<{
@@ -82,6 +82,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
82
82
  "/discover": {
83
83
  $post: {
84
84
  output: {
85
+ scope: "host-default-account";
86
+ runners: {
87
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
88
+ enabled?: boolean | undefined;
89
+ hint?: string | undefined;
90
+ authFailureId?: string | undefined;
91
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
92
+ }[];
93
+ } | {
85
94
  runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
86
95
  models: {
87
96
  id: string;
@@ -92,15 +101,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
92
101
  source: "cache" | "live" | "unavailable";
93
102
  stale: boolean;
94
103
  reason?: string | undefined;
95
- } | {
96
- scope: "host-default-account";
97
- runners: {
98
- status: "connected" | "disconnected" | "not-installed" | "unknown";
99
- enabled?: boolean | undefined;
100
- hint?: string | undefined;
101
- authFailureId?: string | undefined;
102
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
103
- }[];
104
104
  } | {
105
105
  tasks: {
106
106
  id: string;
@@ -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,12 +39,35 @@ 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
  } & {
57
57
  "/discover": {
58
58
  $post: {
59
59
  output: {
60
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
61
+ models: {
62
+ id: string;
63
+ label: string;
64
+ description: string;
65
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
66
+ }[];
67
+ source: "cache" | "live" | "unavailable";
68
+ stale: boolean;
69
+ reason?: string | undefined;
70
+ } | {
60
71
  tasks: {
61
72
  id: string;
62
73
  title: string;
@@ -77,17 +88,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
77
88
  authFailureId?: string | undefined;
78
89
  runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
79
90
  }[];
80
- } | {
81
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
82
- models: {
83
- id: string;
84
- label: string;
85
- description: string;
86
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
87
- }[];
88
- source: "cache" | "live" | "unavailable";
89
- stale: boolean;
90
- reason?: string | undefined;
91
91
  };
92
92
  outputFormat: "json";
93
93
  status: 200;
@@ -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;
@@ -703,11 +691,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
703
691
  workerId: string;
704
692
  };
705
693
  };
706
- };
707
- };
708
- } & {
709
- "/:workerId/collect": {
710
- $post: {
694
+ } | {
711
695
  output: {
712
696
  error: string;
713
697
  code?: "invalid_input" | undefined;
@@ -718,10 +702,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
718
702
  param: {
719
703
  workerId: string;
720
704
  };
721
- } & {
722
- json: Record<string, never>;
723
705
  };
724
- } | {
706
+ };
707
+ };
708
+ } & {
709
+ "/:workerId/collect": {
710
+ $post: {
725
711
  output: {
726
712
  workerId: string;
727
713
  parentRunId: string;
@@ -823,11 +809,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
823
809
  } & {
824
810
  json: Record<string, never>;
825
811
  };
826
- };
827
- };
828
- } & {
829
- "/:workerId/steer": {
830
- $post: {
812
+ } | {
831
813
  output: {
832
814
  error: string;
833
815
  code?: "invalid_input" | undefined;
@@ -839,11 +821,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
839
821
  workerId: string;
840
822
  };
841
823
  } & {
842
- json: {
843
- text: string;
844
- };
824
+ json: Record<string, never>;
845
825
  };
846
- } | {
826
+ };
827
+ };
828
+ } & {
829
+ "/:workerId/steer": {
830
+ $post: {
847
831
  output: {
848
832
  workerId: string;
849
833
  state: "delivered" | "queued";
@@ -859,11 +843,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
859
843
  text: string;
860
844
  };
861
845
  };
862
- };
863
- };
864
- } & {
865
- "/:workerId/stop": {
866
- $post: {
846
+ } | {
867
847
  output: {
868
848
  error: string;
869
849
  code?: "invalid_input" | undefined;
@@ -875,9 +855,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
875
855
  workerId: string;
876
856
  };
877
857
  } & {
878
- json: Record<string, never>;
858
+ json: {
859
+ text: string;
860
+ };
879
861
  };
880
- } | {
862
+ };
863
+ };
864
+ } & {
865
+ "/:workerId/stop": {
866
+ $post: {
881
867
  output: {
882
868
  workerId: string;
883
869
  state: "stopping" | "terminated";
@@ -891,11 +877,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
891
877
  } & {
892
878
  json: Record<string, never>;
893
879
  };
894
- };
895
- };
896
- } & {
897
- "/:workerId/destroy": {
898
- $post: {
880
+ } | {
899
881
  output: {
900
882
  error: string;
901
883
  code?: "invalid_input" | undefined;
@@ -909,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
909
891
  } & {
910
892
  json: Record<string, never>;
911
893
  };
912
- } | {
894
+ };
895
+ };
896
+ } & {
897
+ "/:workerId/destroy": {
898
+ $post: {
913
899
  output: {
914
900
  workerId: string;
915
901
  state: "complete" | "incomplete";
@@ -932,6 +918,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
932
918
  } & {
933
919
  json: Record<string, never>;
934
920
  };
921
+ } | {
922
+ output: {
923
+ error: string;
924
+ code?: "invalid_input" | undefined;
925
+ };
926
+ outputFormat: "json";
927
+ status: 400;
928
+ input: {
929
+ param: {
930
+ workerId: string;
931
+ };
932
+ } & {
933
+ json: Record<string, never>;
934
+ };
935
935
  } | {
936
936
  output: {
937
937
  workerId: string;
@@ -961,11 +961,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
961
961
  "/:workerId/diff": {
962
962
  $get: {
963
963
  output: {
964
- error: string;
965
- code?: "invalid_input" | undefined;
964
+ workerId: string;
965
+ baselineSha: string;
966
+ diff: string;
967
+ truncated: boolean;
966
968
  };
967
969
  outputFormat: "json";
968
- status: 400;
970
+ status: 200;
969
971
  input: {
970
972
  param: {
971
973
  workerId: string;
@@ -973,13 +975,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
973
975
  };
974
976
  } | {
975
977
  output: {
976
- workerId: string;
977
- baselineSha: string;
978
- diff: string;
979
- truncated: boolean;
978
+ error: string;
979
+ code?: "invalid_input" | undefined;
980
980
  };
981
981
  outputFormat: "json";
982
- status: 200;
982
+ status: 400;
983
983
  input: {
984
984
  param: {
985
985
  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">;