@hearsay-tools/squawk 0.18.0-dev.8243 → 0.18.0-dev.8244

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.
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -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;
@@ -58,6 +58,29 @@ 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
+ } | {
61
84
  output: {
62
85
  generatedAt: string;
63
86
  projects: {
@@ -304,29 +327,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
304
327
  project?: string | undefined;
305
328
  };
306
329
  };
307
- } | {
308
- output: {
309
- error: string;
310
- code?: "invalid_input" | undefined;
311
- };
312
- outputFormat: "json";
313
- status: 400;
314
- input: {
315
- query: {
316
- project?: string | undefined;
317
- };
318
- };
319
- } | {
320
- output: {
321
- error: string;
322
- };
323
- outputFormat: "json";
324
- status: 404 | 409 | 503;
325
- input: {
326
- query: {
327
- project?: string | undefined;
328
- };
329
- };
330
330
  };
331
331
  };
332
332
  }, "/", "/workspace/activity">;
@@ -30,10 +30,19 @@ export declare function createModelsRoutes(options: {
30
30
  };
31
31
  } | {
32
32
  output: {
33
- error: string;
33
+ runner: string;
34
+ models: {
35
+ id: string;
36
+ label: string;
37
+ description: string;
38
+ effortLevels?: import('../contract/index.js').EffortLevel[];
39
+ }[];
40
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
41
+ stale: boolean;
42
+ reason?: string;
34
43
  };
35
44
  outputFormat: "json";
36
- status: 400;
45
+ status: import("hono/utils/http-status").ContentfulStatusCode;
37
46
  input: {
38
47
  query: {
39
48
  runner: string | string[];
@@ -54,19 +63,10 @@ export declare function createModelsRoutes(options: {
54
63
  };
55
64
  } | {
56
65
  output: {
57
- runner: string;
58
- models: {
59
- id: string;
60
- label: string;
61
- description: string;
62
- effortLevels?: import('../contract/index.js').EffortLevel[];
63
- }[];
64
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
65
- stale: boolean;
66
- reason?: string;
66
+ error: string;
67
67
  };
68
68
  outputFormat: "json";
69
- status: import("hono/utils/http-status").ContentfulStatusCode;
69
+ status: 400;
70
70
  input: {
71
71
  query: {
72
72
  runner: string | string[];
@@ -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;
@@ -4678,19 +4678,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4678
4678
  } & {
4679
4679
  "/repo/commit/:sha": {
4680
4680
  $get: {
4681
- output: string;
4682
- outputFormat: "text";
4683
- status: import("hono/utils/http-status").ContentfulStatusCode;
4684
- input: {
4685
- query: {
4686
- structured?: string | undefined;
4687
- };
4688
- } & {
4689
- param: {
4690
- sha: string;
4691
- };
4692
- };
4693
- } | {
4694
4681
  output: {
4695
4682
  error: string;
4696
4683
  code?: "invalid_input" | undefined;
@@ -4754,6 +4741,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4754
4741
  sha: string;
4755
4742
  };
4756
4743
  };
4744
+ } | {
4745
+ output: string;
4746
+ outputFormat: "text";
4747
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4748
+ input: {
4749
+ query: {
4750
+ structured?: string | undefined;
4751
+ };
4752
+ } & {
4753
+ param: {
4754
+ sha: string;
4755
+ };
4756
+ };
4757
4757
  };
4758
4758
  };
4759
4759
  } & {
@@ -19221,20 +19221,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19221
19221
  } & {
19222
19222
  "/runs/:id/handoff": {
19223
19223
  $get: {
19224
- output: string;
19225
- outputFormat: "text";
19226
- status: 200;
19224
+ output: {
19225
+ error: string;
19226
+ };
19227
+ outputFormat: "json";
19228
+ status: 404;
19227
19229
  input: {
19228
19230
  param: {
19229
19231
  id: string;
19230
19232
  };
19231
19233
  };
19232
19234
  } | {
19233
- output: {
19234
- error: string;
19235
- };
19236
- outputFormat: "json";
19237
- status: 404;
19235
+ output: string;
19236
+ outputFormat: "text";
19237
+ status: 200;
19238
19238
  input: {
19239
19239
  param: {
19240
19240
  id: string;
@@ -19272,20 +19272,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19272
19272
  } & {
19273
19273
  "/runs/:id/diff": {
19274
19274
  $get: {
19275
- output: string;
19276
- outputFormat: "text";
19277
- status: import("hono/utils/http-status").ContentfulStatusCode;
19275
+ output: {
19276
+ error: string;
19277
+ };
19278
+ outputFormat: "json";
19279
+ status: 404 | 409;
19278
19280
  input: {
19279
19281
  param: {
19280
19282
  id: string;
19281
19283
  };
19282
19284
  };
19283
19285
  } | {
19284
- output: {
19285
- error: string;
19286
- };
19287
- outputFormat: "json";
19288
- status: 404 | 409;
19286
+ output: string;
19287
+ outputFormat: "text";
19288
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19289
19289
  input: {
19290
19290
  param: {
19291
19291
  id: string;
@@ -21332,19 +21332,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21332
21332
  } & {
21333
21333
  "/repo/commit/:sha": {
21334
21334
  $get: {
21335
- output: string;
21336
- outputFormat: "text";
21337
- status: import("hono/utils/http-status").ContentfulStatusCode;
21338
- input: {
21339
- query: {
21340
- structured?: string | undefined;
21341
- };
21342
- } & {
21343
- param: {
21344
- sha: string;
21345
- };
21346
- };
21347
- } | {
21348
21335
  output: {
21349
21336
  error: string;
21350
21337
  code?: "invalid_input" | undefined;
@@ -21408,6 +21395,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21408
21395
  sha: string;
21409
21396
  };
21410
21397
  };
21398
+ } | {
21399
+ output: string;
21400
+ outputFormat: "text";
21401
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21402
+ input: {
21403
+ query: {
21404
+ structured?: string | undefined;
21405
+ };
21406
+ } & {
21407
+ param: {
21408
+ sha: string;
21409
+ };
21410
+ };
21411
21411
  };
21412
21412
  };
21413
21413
  } & {
@@ -35875,20 +35875,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35875
35875
  } & {
35876
35876
  "/runs/:id/handoff": {
35877
35877
  $get: {
35878
- output: string;
35879
- outputFormat: "text";
35880
- status: 200;
35878
+ output: {
35879
+ error: string;
35880
+ };
35881
+ outputFormat: "json";
35882
+ status: 404;
35881
35883
  input: {
35882
35884
  param: {
35883
35885
  id: string;
35884
35886
  };
35885
35887
  };
35886
35888
  } | {
35887
- output: {
35888
- error: string;
35889
- };
35890
- outputFormat: "json";
35891
- status: 404;
35889
+ output: string;
35890
+ outputFormat: "text";
35891
+ status: 200;
35892
35892
  input: {
35893
35893
  param: {
35894
35894
  id: string;
@@ -35926,20 +35926,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35926
35926
  } & {
35927
35927
  "/runs/:id/diff": {
35928
35928
  $get: {
35929
- output: string;
35930
- outputFormat: "text";
35931
- status: import("hono/utils/http-status").ContentfulStatusCode;
35929
+ output: {
35930
+ error: string;
35931
+ };
35932
+ outputFormat: "json";
35933
+ status: 404 | 409;
35932
35934
  input: {
35933
35935
  param: {
35934
35936
  id: string;
35935
35937
  };
35936
35938
  };
35937
35939
  } | {
35938
- output: {
35939
- error: string;
35940
- };
35941
- outputFormat: "json";
35942
- status: 404 | 409;
35940
+ output: string;
35941
+ outputFormat: "text";
35942
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35943
35943
  input: {
35944
35944
  param: {
35945
35945
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.8243",
3
+ "version": "0.18.0-dev.8244",
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.8243",
72
- "@open-mercato/cezar-contract": "0.18.0-dev.8243",
71
+ "@open-mercato/cezar-api-client": "0.18.0-dev.8244",
72
+ "@open-mercato/cezar-contract": "0.18.0-dev.8244",
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": "5474d8d330f50cb4159837a6bfca6c55ad28dbfe"
89
+ "gitHead": "b3e5b58c9917f78d1a89ea9bf718cada92e931f3"
90
90
  }