@hearsay-tools/squawk 0.18.0-dev.8503 → 0.18.0-dev.8505

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.
@@ -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;
@@ -79,18 +91,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
79
91
  offset?: string | undefined;
80
92
  };
81
93
  };
82
- } | {
83
- output: {
84
- error: string;
85
- code?: "invalid_input" | undefined;
86
- };
87
- outputFormat: "json";
88
- status: 400;
89
- input: {
90
- query: {
91
- offset?: string | undefined;
92
- };
93
- };
94
94
  };
95
95
  };
96
96
  } & {
@@ -677,6 +677,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
+ output: {
681
+ error: string;
682
+ code?: "invalid_input" | undefined;
683
+ };
684
+ outputFormat: "json";
685
+ status: 400;
686
+ input: {
687
+ param: {
688
+ workerId: string;
689
+ };
690
+ };
691
+ } | {
680
692
  output: {
681
693
  workerId: string;
682
694
  settled: boolean;
@@ -801,7 +813,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
801
813
  workerId: string;
802
814
  };
803
815
  };
804
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
805
821
  output: {
806
822
  error: string;
807
823
  code?: "invalid_input" | undefined;
@@ -812,12 +828,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
812
828
  param: {
813
829
  workerId: string;
814
830
  };
831
+ } & {
832
+ json: Record<string, never>;
815
833
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
834
+ } | {
821
835
  output: {
822
836
  workerId: string;
823
837
  parentRunId: string;
@@ -940,7 +954,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
940
954
  } & {
941
955
  json: Record<string, never>;
942
956
  };
943
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/steer": {
961
+ $post: {
944
962
  output: {
945
963
  error: string;
946
964
  code?: "invalid_input" | undefined;
@@ -952,13 +970,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
952
970
  workerId: string;
953
971
  };
954
972
  } & {
955
- json: Record<string, never>;
973
+ json: {
974
+ text: string;
975
+ };
956
976
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/steer": {
961
- $post: {
977
+ } | {
962
978
  output: {
963
979
  workerId: string;
964
980
  state: "delivered" | "queued";
@@ -974,7 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
974
990
  text: string;
975
991
  };
976
992
  };
977
- } | {
993
+ };
994
+ };
995
+ } & {
996
+ "/:workerId/stop": {
997
+ $post: {
978
998
  output: {
979
999
  error: string;
980
1000
  code?: "invalid_input" | undefined;
@@ -986,15 +1006,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
1006
  workerId: string;
987
1007
  };
988
1008
  } & {
989
- json: {
990
- text: string;
991
- };
1009
+ json: Record<string, never>;
992
1010
  };
993
- };
994
- };
995
- } & {
996
- "/:workerId/stop": {
997
- $post: {
1011
+ } | {
998
1012
  output: {
999
1013
  workerId: string;
1000
1014
  state: "stopping" | "terminated";
@@ -1008,7 +1022,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1008
1022
  } & {
1009
1023
  json: Record<string, never>;
1010
1024
  };
1011
- } | {
1025
+ };
1026
+ };
1027
+ } & {
1028
+ "/:workerId/destroy": {
1029
+ $post: {
1012
1030
  output: {
1013
1031
  error: string;
1014
1032
  code?: "invalid_input" | undefined;
@@ -1020,13 +1038,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1020
1038
  workerId: string;
1021
1039
  };
1022
1040
  } & {
1023
- json: Record<string, never>;
1041
+ json: {
1042
+ discardWork?: true | undefined;
1043
+ };
1024
1044
  };
1025
- };
1026
- };
1027
- } & {
1028
- "/:workerId/destroy": {
1029
- $post: {
1045
+ } | {
1030
1046
  output: {
1031
1047
  workerId: string;
1032
1048
  state: "complete" | "incomplete";
@@ -1055,22 +1071,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1055
1071
  discardWork?: true | undefined;
1056
1072
  };
1057
1073
  };
1058
- } | {
1059
- output: {
1060
- error: string;
1061
- code?: "invalid_input" | undefined;
1062
- };
1063
- outputFormat: "json";
1064
- status: 400;
1065
- input: {
1066
- param: {
1067
- workerId: string;
1068
- };
1069
- } & {
1070
- json: {
1071
- discardWork?: true | undefined;
1072
- };
1073
- };
1074
1074
  } | {
1075
1075
  output: {
1076
1076
  workerId: string;
@@ -1106,13 +1106,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1106
1106
  "/:workerId/diff": {
1107
1107
  $get: {
1108
1108
  output: {
1109
- workerId: string;
1110
- baselineSha: string;
1111
- diff: string;
1112
- truncated: boolean;
1109
+ error: string;
1110
+ code?: "invalid_input" | undefined;
1113
1111
  };
1114
1112
  outputFormat: "json";
1115
- status: 200;
1113
+ status: 400;
1116
1114
  input: {
1117
1115
  param: {
1118
1116
  workerId: string;
@@ -1120,11 +1118,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1120
1118
  };
1121
1119
  } | {
1122
1120
  output: {
1123
- error: string;
1124
- code?: "invalid_input" | undefined;
1121
+ workerId: string;
1122
+ baselineSha: string;
1123
+ diff: string;
1124
+ truncated: boolean;
1125
1125
  };
1126
1126
  outputFormat: "json";
1127
- status: 400;
1127
+ status: 200;
1128
1128
  input: {
1129
1129
  param: {
1130
1130
  workerId: string;
@@ -63,6 +63,17 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
63
63
  } & {
64
64
  "/projects": {
65
65
  $post: {
66
+ output: {
67
+ error: string;
68
+ };
69
+ outputFormat: "json";
70
+ status: 400 | 500;
71
+ input: {
72
+ json: {
73
+ root: string;
74
+ };
75
+ };
76
+ } | {
66
77
  output: {
67
78
  project: {
68
79
  id: string;
@@ -93,10 +104,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
93
104
  agent: boolean;
94
105
  }[] | undefined;
95
106
  };
96
- error?: string | undefined;
107
+ error: string;
97
108
  };
98
109
  outputFormat: "json";
99
- status: 200;
110
+ status: 409;
100
111
  input: {
101
112
  json: {
102
113
  root: string;
@@ -133,21 +144,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
133
144
  agent: boolean;
134
145
  }[] | undefined;
135
146
  };
136
- error: string;
137
- };
138
- outputFormat: "json";
139
- status: 409;
140
- input: {
141
- json: {
142
- root: string;
143
- };
144
- };
145
- } | {
146
- output: {
147
- error: string;
147
+ error?: string | undefined;
148
148
  };
149
149
  outputFormat: "json";
150
- status: 400 | 500;
150
+ status: 200;
151
151
  input: {
152
152
  json: {
153
153
  root: string;
@@ -306,7 +306,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
306
306
  error: string;
307
307
  };
308
308
  outputFormat: "json";
309
- status: 400;
309
+ status: 404;
310
310
  input: {
311
311
  param: {
312
312
  projectId: string;
@@ -317,7 +317,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
317
317
  error: string;
318
318
  };
319
319
  outputFormat: "json";
320
- status: 404;
320
+ status: 400;
321
321
  input: {
322
322
  param: {
323
323
  projectId: string;
@@ -342,6 +342,27 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
342
342
  } & {
343
343
  "/projects/:projectId/webhooks": {
344
344
  $post: {
345
+ output: {
346
+ error: string;
347
+ };
348
+ outputFormat: "json";
349
+ status: 400 | 404 | 409 | 500;
350
+ input: {
351
+ json: {
352
+ name: string;
353
+ description?: string | undefined;
354
+ url: string;
355
+ token?: string | undefined;
356
+ tasks?: boolean | undefined;
357
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
358
+ agent?: boolean | undefined;
359
+ };
360
+ } & {
361
+ param: {
362
+ projectId: string;
363
+ };
364
+ };
365
+ } | {
345
366
  output: {
346
367
  project: {
347
368
  id: string;
@@ -400,27 +421,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
400
421
  projectId: string;
401
422
  };
402
423
  };
403
- } | {
404
- output: {
405
- error: string;
406
- };
407
- outputFormat: "json";
408
- status: 400 | 404 | 409 | 500;
409
- input: {
410
- json: {
411
- name: string;
412
- description?: string | undefined;
413
- url: string;
414
- token?: string | undefined;
415
- tasks?: boolean | undefined;
416
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
417
- agent?: boolean | undefined;
418
- };
419
- } & {
420
- param: {
421
- projectId: string;
422
- };
423
- };
424
424
  };
425
425
  };
426
426
  } & {
@@ -618,10 +618,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
618
618
  };
619
619
  } | {
620
620
  output: {
621
- error: string;
621
+ ok: boolean;
622
+ status?: number | undefined;
623
+ error?: string | undefined;
624
+ dryRun?: boolean | undefined;
622
625
  };
623
626
  outputFormat: "json";
624
- status: 404;
627
+ status: import("hono/utils/http-status").ContentfulStatusCode;
625
628
  input: {
626
629
  param: {
627
630
  projectId: string;
@@ -630,13 +633,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
630
633
  };
631
634
  } | {
632
635
  output: {
633
- ok: boolean;
634
- status?: number | undefined;
635
- error?: string | undefined;
636
- dryRun?: boolean | undefined;
636
+ error: string;
637
637
  };
638
638
  outputFormat: "json";
639
- status: import("hono/utils/http-status").ContentfulStatusCode;
639
+ status: 404;
640
640
  input: {
641
641
  param: {
642
642
  projectId: string;
@@ -315,19 +315,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
315
315
  } & {
316
316
  "/repo/commit/:sha": {
317
317
  $get: {
318
- output: string;
319
- outputFormat: "text";
320
- status: import("hono/utils/http-status").ContentfulStatusCode;
321
- input: {
322
- query: {
323
- structured?: string | undefined;
324
- };
325
- } & {
326
- param: {
327
- sha: string;
328
- };
329
- };
330
- } | {
331
318
  output: {
332
319
  error: string;
333
320
  code?: "invalid_input" | undefined;
@@ -391,6 +378,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
391
378
  sha: string;
392
379
  };
393
380
  };
381
+ } | {
382
+ output: string;
383
+ outputFormat: "text";
384
+ status: import("hono/utils/http-status").ContentfulStatusCode;
385
+ input: {
386
+ query: {
387
+ structured?: string | undefined;
388
+ };
389
+ } & {
390
+ param: {
391
+ sha: string;
392
+ };
393
+ };
394
394
  };
395
395
  };
396
396
  } & {
@@ -58,15 +58,11 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- supported: boolean;
62
- installedVersion: string | null;
63
- latestVersion: string | null;
64
- updateAvailable: boolean;
65
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
66
- error: string | null;
61
+ error: string;
62
+ code?: "invalid_input" | undefined;
67
63
  };
68
64
  outputFormat: "json";
69
- status: 202;
65
+ status: 400;
70
66
  input: {
71
67
  param: {
72
68
  runner: string;
@@ -78,11 +74,15 @@ export declare function createRunnersRoutes(options: {
78
74
  };
79
75
  } | {
80
76
  output: {
81
- error: string;
82
- code?: "invalid_input" | undefined;
77
+ supported: boolean;
78
+ installedVersion: string | null;
79
+ latestVersion: string | null;
80
+ updateAvailable: boolean;
81
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
82
+ error: string | null;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 400;
85
+ status: 202;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;
@@ -4697,19 +4697,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4697
4697
  } & {
4698
4698
  "/repo/commit/:sha": {
4699
4699
  $get: {
4700
- output: string;
4701
- outputFormat: "text";
4702
- status: import("hono/utils/http-status").ContentfulStatusCode;
4703
- input: {
4704
- query: {
4705
- structured?: string | undefined;
4706
- };
4707
- } & {
4708
- param: {
4709
- sha: string;
4710
- };
4711
- };
4712
- } | {
4713
4700
  output: {
4714
4701
  error: string;
4715
4702
  code?: "invalid_input" | undefined;
@@ -4773,6 +4760,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4773
4760
  sha: string;
4774
4761
  };
4775
4762
  };
4763
+ } | {
4764
+ output: string;
4765
+ outputFormat: "text";
4766
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4767
+ input: {
4768
+ query: {
4769
+ structured?: string | undefined;
4770
+ };
4771
+ } & {
4772
+ param: {
4773
+ sha: string;
4774
+ };
4775
+ };
4776
4776
  };
4777
4777
  };
4778
4778
  } & {
@@ -19240,20 +19240,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19240
19240
  } & {
19241
19241
  "/runs/:id/handoff": {
19242
19242
  $get: {
19243
- output: string;
19244
- outputFormat: "text";
19245
- status: 200;
19243
+ output: {
19244
+ error: string;
19245
+ };
19246
+ outputFormat: "json";
19247
+ status: 404;
19246
19248
  input: {
19247
19249
  param: {
19248
19250
  id: string;
19249
19251
  };
19250
19252
  };
19251
19253
  } | {
19252
- output: {
19253
- error: string;
19254
- };
19255
- outputFormat: "json";
19256
- status: 404;
19254
+ output: string;
19255
+ outputFormat: "text";
19256
+ status: 200;
19257
19257
  input: {
19258
19258
  param: {
19259
19259
  id: string;
@@ -19291,20 +19291,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19291
19291
  } & {
19292
19292
  "/runs/:id/diff": {
19293
19293
  $get: {
19294
- output: string;
19295
- outputFormat: "text";
19296
- status: import("hono/utils/http-status").ContentfulStatusCode;
19294
+ output: {
19295
+ error: string;
19296
+ };
19297
+ outputFormat: "json";
19298
+ status: 404 | 409;
19297
19299
  input: {
19298
19300
  param: {
19299
19301
  id: string;
19300
19302
  };
19301
19303
  };
19302
19304
  } | {
19303
- output: {
19304
- error: string;
19305
- };
19306
- outputFormat: "json";
19307
- status: 404 | 409;
19305
+ output: string;
19306
+ outputFormat: "text";
19307
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19308
19308
  input: {
19309
19309
  param: {
19310
19310
  id: string;
@@ -19397,9 +19397,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19397
19397
  status: 404 | 409;
19398
19398
  input: {
19399
19399
  param: {
19400
- id: string;
19401
- } & {
19402
19400
  sha: string;
19401
+ } & {
19402
+ id: string;
19403
19403
  };
19404
19404
  };
19405
19405
  } | {
@@ -19428,9 +19428,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19428
19428
  status: import("hono/utils/http-status").ContentfulStatusCode;
19429
19429
  input: {
19430
19430
  param: {
19431
- id: string;
19432
- } & {
19433
19431
  sha: string;
19432
+ } & {
19433
+ id: string;
19434
19434
  };
19435
19435
  };
19436
19436
  };
@@ -21419,19 +21419,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21419
21419
  } & {
21420
21420
  "/repo/commit/:sha": {
21421
21421
  $get: {
21422
- output: string;
21423
- outputFormat: "text";
21424
- status: import("hono/utils/http-status").ContentfulStatusCode;
21425
- input: {
21426
- query: {
21427
- structured?: string | undefined;
21428
- };
21429
- } & {
21430
- param: {
21431
- sha: string;
21432
- };
21433
- };
21434
- } | {
21435
21422
  output: {
21436
21423
  error: string;
21437
21424
  code?: "invalid_input" | undefined;
@@ -21495,6 +21482,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21495
21482
  sha: string;
21496
21483
  };
21497
21484
  };
21485
+ } | {
21486
+ output: string;
21487
+ outputFormat: "text";
21488
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21489
+ input: {
21490
+ query: {
21491
+ structured?: string | undefined;
21492
+ };
21493
+ } & {
21494
+ param: {
21495
+ sha: string;
21496
+ };
21497
+ };
21498
21498
  };
21499
21499
  };
21500
21500
  } & {
@@ -35962,20 +35962,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35962
35962
  } & {
35963
35963
  "/runs/:id/handoff": {
35964
35964
  $get: {
35965
- output: string;
35966
- outputFormat: "text";
35967
- status: 200;
35965
+ output: {
35966
+ error: string;
35967
+ };
35968
+ outputFormat: "json";
35969
+ status: 404;
35968
35970
  input: {
35969
35971
  param: {
35970
35972
  id: string;
35971
35973
  };
35972
35974
  };
35973
35975
  } | {
35974
- output: {
35975
- error: string;
35976
- };
35977
- outputFormat: "json";
35978
- status: 404;
35976
+ output: string;
35977
+ outputFormat: "text";
35978
+ status: 200;
35979
35979
  input: {
35980
35980
  param: {
35981
35981
  id: string;
@@ -36013,20 +36013,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
36013
36013
  } & {
36014
36014
  "/runs/:id/diff": {
36015
36015
  $get: {
36016
- output: string;
36017
- outputFormat: "text";
36018
- status: import("hono/utils/http-status").ContentfulStatusCode;
36016
+ output: {
36017
+ error: string;
36018
+ };
36019
+ outputFormat: "json";
36020
+ status: 404 | 409;
36019
36021
  input: {
36020
36022
  param: {
36021
36023
  id: string;
36022
36024
  };
36023
36025
  };
36024
36026
  } | {
36025
- output: {
36026
- error: string;
36027
- };
36028
- outputFormat: "json";
36029
- status: 404 | 409;
36027
+ output: string;
36028
+ outputFormat: "text";
36029
+ status: import("hono/utils/http-status").ContentfulStatusCode;
36030
36030
  input: {
36031
36031
  param: {
36032
36032
  id: string;
@@ -36119,9 +36119,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
36119
36119
  status: 404 | 409;
36120
36120
  input: {
36121
36121
  param: {
36122
- id: string;
36123
- } & {
36124
36122
  sha: string;
36123
+ } & {
36124
+ id: string;
36125
36125
  };
36126
36126
  };
36127
36127
  } | {
@@ -36150,9 +36150,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
36150
36150
  status: import("hono/utils/http-status").ContentfulStatusCode;
36151
36151
  input: {
36152
36152
  param: {
36153
- id: string;
36154
- } & {
36155
36153
  sha: string;
36154
+ } & {
36155
+ id: string;
36156
36156
  };
36157
36157
  };
36158
36158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.8503",
3
+ "version": "0.18.0-dev.8505",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,8 +68,8 @@
68
68
  "devDependencies": {
69
69
  "@babel/parser": "^8.0.8",
70
70
  "@babel/types": "^8.0.8",
71
- "@open-mercato/cezar-api-client": "0.18.0-dev.8503",
72
- "@open-mercato/cezar-contract": "0.18.0-dev.8503",
71
+ "@open-mercato/cezar-api-client": "0.18.0-dev.8505",
72
+ "@open-mercato/cezar-contract": "0.18.0-dev.8505",
73
73
  "@types/node": "^24.19.1",
74
74
  "@types/ws": "^8.18.1",
75
75
  "esbuild": "^0.28.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "9d1395361eaf875d45843f47a8cc300746df771c"
89
+ "gitHead": "e26d955ff9db8fd8b4fb63ae623d44b8b7ac90ac"
90
90
  }