@hearsay-tools/squawk 0.18.0-dev.7926 → 0.18.0-dev.7942

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;
@@ -73,18 +85,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
73
85
  offset?: string | undefined;
74
86
  };
75
87
  };
76
- } | {
77
- output: {
78
- error: string;
79
- code?: "invalid_input" | undefined;
80
- };
81
- outputFormat: "json";
82
- status: 400;
83
- input: {
84
- query: {
85
- offset?: string | undefined;
86
- };
87
- };
88
88
  };
89
89
  };
90
90
  } & {
@@ -629,6 +629,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
629
629
  } & {
630
630
  "/:workerId": {
631
631
  $get: {
632
+ output: {
633
+ error: string;
634
+ code?: "invalid_input" | undefined;
635
+ };
636
+ outputFormat: "json";
637
+ status: 400;
638
+ input: {
639
+ param: {
640
+ workerId: string;
641
+ };
642
+ };
643
+ } | {
632
644
  output: {
633
645
  workerId: string;
634
646
  settled: boolean;
@@ -746,7 +758,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
746
758
  workerId: string;
747
759
  };
748
760
  };
749
- } | {
761
+ };
762
+ };
763
+ } & {
764
+ "/:workerId/collect": {
765
+ $post: {
750
766
  output: {
751
767
  error: string;
752
768
  code?: "invalid_input" | undefined;
@@ -757,12 +773,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
757
773
  param: {
758
774
  workerId: string;
759
775
  };
776
+ } & {
777
+ json: Record<string, never>;
760
778
  };
761
- };
762
- };
763
- } & {
764
- "/:workerId/collect": {
765
- $post: {
779
+ } | {
766
780
  output: {
767
781
  workerId: string;
768
782
  parentRunId: string;
@@ -885,7 +899,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
885
899
  } & {
886
900
  json: Record<string, never>;
887
901
  };
888
- } | {
902
+ };
903
+ };
904
+ } & {
905
+ "/:workerId/steer": {
906
+ $post: {
889
907
  output: {
890
908
  error: string;
891
909
  code?: "invalid_input" | undefined;
@@ -897,13 +915,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
897
915
  workerId: string;
898
916
  };
899
917
  } & {
900
- json: Record<string, never>;
918
+ json: {
919
+ text: string;
920
+ };
901
921
  };
902
- };
903
- };
904
- } & {
905
- "/:workerId/steer": {
906
- $post: {
922
+ } | {
907
923
  output: {
908
924
  workerId: string;
909
925
  state: "delivered" | "queued";
@@ -919,7 +935,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
919
935
  text: string;
920
936
  };
921
937
  };
922
- } | {
938
+ };
939
+ };
940
+ } & {
941
+ "/:workerId/stop": {
942
+ $post: {
923
943
  output: {
924
944
  error: string;
925
945
  code?: "invalid_input" | undefined;
@@ -931,15 +951,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
931
951
  workerId: string;
932
952
  };
933
953
  } & {
934
- json: {
935
- text: string;
936
- };
954
+ json: Record<string, never>;
937
955
  };
938
- };
939
- };
940
- } & {
941
- "/:workerId/stop": {
942
- $post: {
956
+ } | {
943
957
  output: {
944
958
  workerId: string;
945
959
  state: "stopping" | "terminated";
@@ -953,7 +967,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
953
967
  } & {
954
968
  json: Record<string, never>;
955
969
  };
956
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/destroy": {
974
+ $post: {
957
975
  output: {
958
976
  error: string;
959
977
  code?: "invalid_input" | undefined;
@@ -965,13 +983,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
965
983
  workerId: string;
966
984
  };
967
985
  } & {
968
- json: Record<string, never>;
986
+ json: {
987
+ discardWork?: true | undefined;
988
+ };
969
989
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/destroy": {
974
- $post: {
990
+ } | {
975
991
  output: {
976
992
  workerId: string;
977
993
  state: "complete" | "incomplete";
@@ -1000,22 +1016,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1000
1016
  discardWork?: true | undefined;
1001
1017
  };
1002
1018
  };
1003
- } | {
1004
- output: {
1005
- error: string;
1006
- code?: "invalid_input" | undefined;
1007
- };
1008
- outputFormat: "json";
1009
- status: 400;
1010
- input: {
1011
- param: {
1012
- workerId: string;
1013
- };
1014
- } & {
1015
- json: {
1016
- discardWork?: true | undefined;
1017
- };
1018
- };
1019
1019
  } | {
1020
1020
  output: {
1021
1021
  workerId: string;
@@ -1051,13 +1051,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1051
1051
  "/:workerId/diff": {
1052
1052
  $get: {
1053
1053
  output: {
1054
- workerId: string;
1055
- baselineSha: string;
1056
- diff: string;
1057
- truncated: boolean;
1054
+ error: string;
1055
+ code?: "invalid_input" | undefined;
1058
1056
  };
1059
1057
  outputFormat: "json";
1060
- status: 200;
1058
+ status: 400;
1061
1059
  input: {
1062
1060
  param: {
1063
1061
  workerId: string;
@@ -1065,11 +1063,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1065
1063
  };
1066
1064
  } | {
1067
1065
  output: {
1068
- error: string;
1069
- code?: "invalid_input" | undefined;
1066
+ workerId: string;
1067
+ baselineSha: string;
1068
+ diff: string;
1069
+ truncated: boolean;
1070
1070
  };
1071
1071
  outputFormat: "json";
1072
- status: 400;
1072
+ status: 200;
1073
1073
  input: {
1074
1074
  param: {
1075
1075
  workerId: string;
@@ -58,29 +58,6 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
- output: {
62
- error: string;
63
- code?: "invalid_input" | undefined;
64
- };
65
- outputFormat: "json";
66
- status: 400;
67
- input: {
68
- query: {
69
- project?: string | undefined;
70
- };
71
- };
72
- } | {
73
- output: {
74
- error: string;
75
- };
76
- outputFormat: "json";
77
- status: 404 | 409 | 503;
78
- input: {
79
- query: {
80
- project?: string | undefined;
81
- };
82
- };
83
- } | {
84
61
  output: {
85
62
  generatedAt: string;
86
63
  projects: {
@@ -311,6 +288,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
311
288
  project?: string | undefined;
312
289
  };
313
290
  };
291
+ } | {
292
+ output: {
293
+ error: string;
294
+ code?: "invalid_input" | undefined;
295
+ };
296
+ outputFormat: "json";
297
+ status: 400;
298
+ input: {
299
+ query: {
300
+ project?: string | undefined;
301
+ };
302
+ };
303
+ } | {
304
+ output: {
305
+ error: string;
306
+ };
307
+ outputFormat: "json";
308
+ status: 404 | 409 | 503;
309
+ input: {
310
+ query: {
311
+ project?: string | undefined;
312
+ };
313
+ };
314
314
  };
315
315
  };
316
316
  }, "/", "/workspace/activity">;
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 409;
21
+ status: 400;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 400;
33
+ status: 409;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -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: 409;
43
+ status: 400;
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: 400;
56
+ status: 409;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -51,15 +51,11 @@ export declare function createRunnerInstallRoutes(options: {
51
51
  "/runner-install/:runner": {
52
52
  $post: {
53
53
  output: {
54
- supported: boolean;
55
- installedVersion: string | null;
56
- latestVersion: string | null;
57
- updateAvailable: boolean;
58
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
59
- error: string | null;
54
+ error: string;
55
+ code?: "invalid_input" | undefined;
60
56
  };
61
57
  outputFormat: "json";
62
- status: 202;
58
+ status: 400;
63
59
  input: {
64
60
  param: {
65
61
  runner: string;
@@ -71,11 +67,15 @@ export declare function createRunnerInstallRoutes(options: {
71
67
  };
72
68
  } | {
73
69
  output: {
74
- error: string;
75
- code?: "invalid_input" | undefined;
70
+ supported: boolean;
71
+ installedVersion: string | null;
72
+ latestVersion: string | null;
73
+ updateAvailable: boolean;
74
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
75
+ error: string | null;
76
76
  };
77
77
  outputFormat: "json";
78
- status: 400;
78
+ status: 202;
79
79
  input: {
80
80
  param: {
81
81
  runner: string;
@@ -58,11 +58,15 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- error: string;
62
- code?: "invalid_input" | undefined;
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;
63
67
  };
64
68
  outputFormat: "json";
65
- status: 400;
69
+ status: 202;
66
70
  input: {
67
71
  param: {
68
72
  runner: string;
@@ -74,15 +78,11 @@ export declare function createRunnersRoutes(options: {
74
78
  };
75
79
  } | {
76
80
  output: {
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;
81
+ error: string;
82
+ code?: "invalid_input" | undefined;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 202;
85
+ status: 400;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;
@@ -4610,6 +4610,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4610
4610
  } & {
4611
4611
  "/repo/commit/:sha": {
4612
4612
  $get: {
4613
+ output: string;
4614
+ outputFormat: "text";
4615
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4616
+ input: {
4617
+ query: {
4618
+ structured?: string | undefined;
4619
+ };
4620
+ } & {
4621
+ param: {
4622
+ sha: string;
4623
+ };
4624
+ };
4625
+ } | {
4613
4626
  output: {
4614
4627
  error: string;
4615
4628
  code?: "invalid_input" | undefined;
@@ -4673,19 +4686,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4673
4686
  sha: string;
4674
4687
  };
4675
4688
  };
4676
- } | {
4677
- output: string;
4678
- outputFormat: "text";
4679
- status: import("hono/utils/http-status").ContentfulStatusCode;
4680
- input: {
4681
- query: {
4682
- structured?: string | undefined;
4683
- };
4684
- } & {
4685
- param: {
4686
- sha: string;
4687
- };
4688
- };
4689
4689
  };
4690
4690
  };
4691
4691
  } & {
@@ -18487,20 +18487,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18487
18487
  } & {
18488
18488
  "/runs/:id/handoff": {
18489
18489
  $get: {
18490
- output: {
18491
- error: string;
18492
- };
18493
- outputFormat: "json";
18494
- status: 404;
18490
+ output: string;
18491
+ outputFormat: "text";
18492
+ status: 200;
18495
18493
  input: {
18496
18494
  param: {
18497
18495
  id: string;
18498
18496
  };
18499
18497
  };
18500
18498
  } | {
18501
- output: string;
18502
- outputFormat: "text";
18503
- status: 200;
18499
+ output: {
18500
+ error: string;
18501
+ };
18502
+ outputFormat: "json";
18503
+ status: 404;
18504
18504
  input: {
18505
18505
  param: {
18506
18506
  id: string;
@@ -18538,20 +18538,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18538
18538
  } & {
18539
18539
  "/runs/:id/diff": {
18540
18540
  $get: {
18541
- output: {
18542
- error: string;
18543
- };
18544
- outputFormat: "json";
18545
- status: 404 | 409;
18541
+ output: string;
18542
+ outputFormat: "text";
18543
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18546
18544
  input: {
18547
18545
  param: {
18548
18546
  id: string;
18549
18547
  };
18550
18548
  };
18551
18549
  } | {
18552
- output: string;
18553
- outputFormat: "text";
18554
- status: import("hono/utils/http-status").ContentfulStatusCode;
18550
+ output: {
18551
+ error: string;
18552
+ };
18553
+ outputFormat: "json";
18554
+ status: 404 | 409;
18555
18555
  input: {
18556
18556
  param: {
18557
18557
  id: string;
@@ -20571,6 +20571,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20571
20571
  } & {
20572
20572
  "/repo/commit/:sha": {
20573
20573
  $get: {
20574
+ output: string;
20575
+ outputFormat: "text";
20576
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20577
+ input: {
20578
+ query: {
20579
+ structured?: string | undefined;
20580
+ };
20581
+ } & {
20582
+ param: {
20583
+ sha: string;
20584
+ };
20585
+ };
20586
+ } | {
20574
20587
  output: {
20575
20588
  error: string;
20576
20589
  code?: "invalid_input" | undefined;
@@ -20634,19 +20647,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20634
20647
  sha: string;
20635
20648
  };
20636
20649
  };
20637
- } | {
20638
- output: string;
20639
- outputFormat: "text";
20640
- status: import("hono/utils/http-status").ContentfulStatusCode;
20641
- input: {
20642
- query: {
20643
- structured?: string | undefined;
20644
- };
20645
- } & {
20646
- param: {
20647
- sha: string;
20648
- };
20649
- };
20650
20650
  };
20651
20651
  };
20652
20652
  } & {
@@ -34448,20 +34448,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34448
34448
  } & {
34449
34449
  "/runs/:id/handoff": {
34450
34450
  $get: {
34451
- output: {
34452
- error: string;
34453
- };
34454
- outputFormat: "json";
34455
- status: 404;
34451
+ output: string;
34452
+ outputFormat: "text";
34453
+ status: 200;
34456
34454
  input: {
34457
34455
  param: {
34458
34456
  id: string;
34459
34457
  };
34460
34458
  };
34461
34459
  } | {
34462
- output: string;
34463
- outputFormat: "text";
34464
- status: 200;
34460
+ output: {
34461
+ error: string;
34462
+ };
34463
+ outputFormat: "json";
34464
+ status: 404;
34465
34465
  input: {
34466
34466
  param: {
34467
34467
  id: string;
@@ -34499,20 +34499,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34499
34499
  } & {
34500
34500
  "/runs/:id/diff": {
34501
34501
  $get: {
34502
- output: {
34503
- error: string;
34504
- };
34505
- outputFormat: "json";
34506
- status: 404 | 409;
34502
+ output: string;
34503
+ outputFormat: "text";
34504
+ status: import("hono/utils/http-status").ContentfulStatusCode;
34507
34505
  input: {
34508
34506
  param: {
34509
34507
  id: string;
34510
34508
  };
34511
34509
  };
34512
34510
  } | {
34513
- output: string;
34514
- outputFormat: "text";
34515
- status: import("hono/utils/http-status").ContentfulStatusCode;
34511
+ output: {
34512
+ error: string;
34513
+ };
34514
+ outputFormat: "json";
34515
+ status: 404 | 409;
34516
34516
  input: {
34517
34517
  param: {
34518
34518
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.7926",
3
+ "version": "0.18.0-dev.7942",
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",
@@ -63,8 +63,8 @@
63
63
  "devDependencies": {
64
64
  "@babel/parser": "^8.0.8",
65
65
  "@babel/types": "^8.0.8",
66
- "@open-mercato/cezar-api-client": "0.18.0-dev.7926",
67
- "@open-mercato/cezar-contract": "0.18.0-dev.7926",
66
+ "@open-mercato/cezar-api-client": "0.18.0-dev.7942",
67
+ "@open-mercato/cezar-contract": "0.18.0-dev.7942",
68
68
  "@types/node": "^24.19.1",
69
69
  "@types/ws": "^8.18.1",
70
70
  "esbuild": "^0.28.1",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "6073db7a8bafaa9cd6548dac21c568c7e9b0b485"
84
+ "gitHead": "a6b38b197024227ff272188756d24d76d8641fed"
85
85
  }