@hearsay-tools/squawk 0.18.0-dev.8180 → 0.18.0-dev.8189

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.
package/README.md CHANGED
@@ -451,6 +451,10 @@ See [Remote access (host Squawk on a server)](docs/remote-access.md).
451
451
 
452
452
  See [Reviewing task files](docs/task-files.md).
453
453
 
454
+ ## Plugins
455
+
456
+ See [Plugins](docs/plugins.md).
457
+
454
458
  ## Configuration (optional)
455
459
 
456
460
  See [Configuration (optional)](docs/configuration.md).
@@ -119,9 +119,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
119
119
  } & {
120
120
  "/api/v1/tools/:name": {
121
121
  $post: {
122
- output: never;
122
+ output: {
123
+ code: string;
124
+ message: string;
125
+ };
123
126
  outputFormat: "json";
124
- status: import("hono/utils/http-status").ContentfulStatusCode;
127
+ status: 401;
125
128
  input: {
126
129
  json: unknown;
127
130
  } & {
@@ -144,12 +147,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
144
147
  };
145
148
  };
146
149
  } | {
147
- output: {
148
- code: string;
149
- message: string;
150
- };
150
+ output: never;
151
151
  outputFormat: "json";
152
- status: 401;
152
+ status: import("hono/utils/http-status").ContentfulStatusCode;
153
153
  input: {
154
154
  json: unknown;
155
155
  } & {
@@ -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;
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
91
79
  offset?: string | undefined;
92
80
  };
93
81
  };
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,18 +677,6 @@ 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
- } | {
692
680
  output: {
693
681
  workerId: string;
694
682
  settled: boolean;
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
813
801
  workerId: string;
814
802
  };
815
803
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
804
+ } | {
821
805
  output: {
822
806
  error: string;
823
807
  code?: "invalid_input" | undefined;
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
828
812
  param: {
829
813
  workerId: string;
830
814
  };
831
- } & {
832
- json: Record<string, never>;
833
815
  };
834
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
835
821
  output: {
836
822
  workerId: string;
837
823
  parentRunId: string;
@@ -954,11 +940,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
940
  } & {
955
941
  json: Record<string, never>;
956
942
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/steer": {
961
- $post: {
943
+ } | {
962
944
  output: {
963
945
  error: string;
964
946
  code?: "invalid_input" | undefined;
@@ -970,11 +952,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
970
952
  workerId: string;
971
953
  };
972
954
  } & {
973
- json: {
974
- text: string;
975
- };
955
+ json: Record<string, never>;
976
956
  };
977
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/steer": {
961
+ $post: {
978
962
  output: {
979
963
  workerId: string;
980
964
  state: "delivered" | "queued";
@@ -990,11 +974,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
990
974
  text: string;
991
975
  };
992
976
  };
993
- };
994
- };
995
- } & {
996
- "/:workerId/stop": {
997
- $post: {
977
+ } | {
998
978
  output: {
999
979
  error: string;
1000
980
  code?: "invalid_input" | undefined;
@@ -1006,9 +986,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1006
986
  workerId: string;
1007
987
  };
1008
988
  } & {
1009
- json: Record<string, never>;
989
+ json: {
990
+ text: string;
991
+ };
1010
992
  };
1011
- } | {
993
+ };
994
+ };
995
+ } & {
996
+ "/:workerId/stop": {
997
+ $post: {
1012
998
  output: {
1013
999
  workerId: string;
1014
1000
  state: "stopping" | "terminated";
@@ -1022,11 +1008,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1022
1008
  } & {
1023
1009
  json: Record<string, never>;
1024
1010
  };
1025
- };
1026
- };
1027
- } & {
1028
- "/:workerId/destroy": {
1029
- $post: {
1011
+ } | {
1030
1012
  output: {
1031
1013
  error: string;
1032
1014
  code?: "invalid_input" | undefined;
@@ -1038,11 +1020,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1038
1020
  workerId: string;
1039
1021
  };
1040
1022
  } & {
1041
- json: {
1042
- discardWork?: true | undefined;
1043
- };
1023
+ json: Record<string, never>;
1044
1024
  };
1045
- } | {
1025
+ };
1026
+ };
1027
+ } & {
1028
+ "/:workerId/destroy": {
1029
+ $post: {
1046
1030
  output: {
1047
1031
  workerId: string;
1048
1032
  state: "complete" | "incomplete";
@@ -1071,6 +1055,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1071
1055
  discardWork?: true | undefined;
1072
1056
  };
1073
1057
  };
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,11 +1106,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1106
1106
  "/:workerId/diff": {
1107
1107
  $get: {
1108
1108
  output: {
1109
- error: string;
1110
- code?: "invalid_input" | undefined;
1109
+ workerId: string;
1110
+ baselineSha: string;
1111
+ diff: string;
1112
+ truncated: boolean;
1111
1113
  };
1112
1114
  outputFormat: "json";
1113
- status: 400;
1115
+ status: 200;
1114
1116
  input: {
1115
1117
  param: {
1116
1118
  workerId: string;
@@ -1118,13 +1120,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1118
1120
  };
1119
1121
  } | {
1120
1122
  output: {
1121
- workerId: string;
1122
- baselineSha: string;
1123
- diff: string;
1124
- truncated: boolean;
1123
+ error: string;
1124
+ code?: "invalid_input" | undefined;
1125
1125
  };
1126
1126
  outputFormat: "json";
1127
- status: 200;
1127
+ status: 400;
1128
1128
  input: {
1129
1129
  param: {
1130
1130
  workerId: 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;
@@ -52,11 +52,15 @@ export declare function createRunnerInstallRoutes(options: {
52
52
  "/runner-install/:runner": {
53
53
  $post: {
54
54
  output: {
55
- error: string;
56
- code?: "invalid_input" | undefined;
55
+ supported: boolean;
56
+ installedVersion: string | null;
57
+ latestVersion: string | null;
58
+ updateAvailable: boolean;
59
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
60
+ error: string | null;
57
61
  };
58
62
  outputFormat: "json";
59
- status: 400;
63
+ status: 202;
60
64
  input: {
61
65
  param: {
62
66
  runner: string;
@@ -68,15 +72,11 @@ export declare function createRunnerInstallRoutes(options: {
68
72
  };
69
73
  } | {
70
74
  output: {
71
- supported: boolean;
72
- installedVersion: string | null;
73
- latestVersion: string | null;
74
- updateAvailable: boolean;
75
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
76
- error: string | null;
75
+ error: string;
76
+ code?: "invalid_input" | undefined;
77
77
  };
78
78
  outputFormat: "json";
79
- status: 202;
79
+ status: 400;
80
80
  input: {
81
81
  param: {
82
82
  runner: string;
@@ -4678,6 +4678,19 @@ 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
+ } | {
4681
4694
  output: {
4682
4695
  error: string;
4683
4696
  code?: "invalid_input" | undefined;
@@ -4741,19 +4754,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4741
4754
  sha: string;
4742
4755
  };
4743
4756
  };
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: {
19225
- error: string;
19226
- };
19227
- outputFormat: "json";
19228
- status: 404;
19224
+ output: string;
19225
+ outputFormat: "text";
19226
+ status: 200;
19229
19227
  input: {
19230
19228
  param: {
19231
19229
  id: string;
19232
19230
  };
19233
19231
  };
19234
19232
  } | {
19235
- output: string;
19236
- outputFormat: "text";
19237
- status: 200;
19233
+ output: {
19234
+ error: string;
19235
+ };
19236
+ outputFormat: "json";
19237
+ status: 404;
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: {
19276
- error: string;
19277
- };
19278
- outputFormat: "json";
19279
- status: 404 | 409;
19275
+ output: string;
19276
+ outputFormat: "text";
19277
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19280
19278
  input: {
19281
19279
  param: {
19282
19280
  id: string;
19283
19281
  };
19284
19282
  };
19285
19283
  } | {
19286
- output: string;
19287
- outputFormat: "text";
19288
- status: import("hono/utils/http-status").ContentfulStatusCode;
19284
+ output: {
19285
+ error: string;
19286
+ };
19287
+ outputFormat: "json";
19288
+ status: 404 | 409;
19289
19289
  input: {
19290
19290
  param: {
19291
19291
  id: string;
@@ -21332,6 +21332,19 @@ 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
+ } | {
21335
21348
  output: {
21336
21349
  error: string;
21337
21350
  code?: "invalid_input" | undefined;
@@ -21395,19 +21408,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21395
21408
  sha: string;
21396
21409
  };
21397
21410
  };
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: {
35879
- error: string;
35880
- };
35881
- outputFormat: "json";
35882
- status: 404;
35878
+ output: string;
35879
+ outputFormat: "text";
35880
+ status: 200;
35883
35881
  input: {
35884
35882
  param: {
35885
35883
  id: string;
35886
35884
  };
35887
35885
  };
35888
35886
  } | {
35889
- output: string;
35890
- outputFormat: "text";
35891
- status: 200;
35887
+ output: {
35888
+ error: string;
35889
+ };
35890
+ outputFormat: "json";
35891
+ status: 404;
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: {
35930
- error: string;
35931
- };
35932
- outputFormat: "json";
35933
- status: 404 | 409;
35929
+ output: string;
35930
+ outputFormat: "text";
35931
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35934
35932
  input: {
35935
35933
  param: {
35936
35934
  id: string;
35937
35935
  };
35938
35936
  };
35939
35937
  } | {
35940
- output: string;
35941
- outputFormat: "text";
35942
- status: import("hono/utils/http-status").ContentfulStatusCode;
35938
+ output: {
35939
+ error: string;
35940
+ };
35941
+ outputFormat: "json";
35942
+ status: 404 | 409;
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.8180",
3
+ "version": "0.18.0-dev.8189",
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.8180",
72
- "@open-mercato/cezar-contract": "0.18.0-dev.8180",
71
+ "@open-mercato/cezar-api-client": "0.18.0-dev.8189",
72
+ "@open-mercato/cezar-contract": "0.18.0-dev.8189",
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": "5e2881e3227c590359d50602e3fd3785d139e213"
89
+ "gitHead": "dc1748d8cbb4df09955ea91f2df9a62e02682475"
90
90
  }