@hearsay-tools/squawk 0.18.0-pr3768.6979 → 0.18.0-pr3770.6983
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/dist/automations/github-poller.js +1 -5
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/prompts.js +19 -14
- package/dist/automations/prompts.js.map +1 -1
- package/dist/automations/scheduler.d.ts +1 -1
- package/dist/automations/scheduler.js +3 -1
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +1 -1
- package/dist/automations/service.js +3 -1
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/tool-adapter.d.ts +6 -1
- package/dist/automations/tool-adapter.js +85 -1
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/automations/tool-github.d.ts +9 -0
- package/dist/automations/tool-github.js +9 -0
- package/dist/automations/tool-github.js.map +1 -0
- package/dist/automations/tool-timeout.d.ts +2 -0
- package/dist/automations/tool-timeout.js +22 -0
- package/dist/automations/tool-timeout.js.map +1 -0
- package/dist/ci-wait/client.d.ts +2 -0
- package/dist/ci-wait/client.js +5 -0
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +383 -36
- package/dist/ci-wait/controller.js +13 -0
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +29 -0
- package/dist/ci-wait/tool-catalog.js +16 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +100 -1
- package/dist/ci-wait/tools.js +10 -4
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/automation-tool.d.ts +320 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +31 -7
- package/dist/core/github-request-limits.d.ts +9 -0
- package/dist/core/github-request-limits.js +13 -0
- package/dist/core/github-request-limits.js.map +1 -0
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/transport.d.ts +73 -73
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +188 -188
- package/dist/workflows/run/squawk-tools.js +4 -0
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/types.d.ts +2 -0
- package/dist/workflows/run.d.ts +2 -2
- package/dist/workflows/run.js +2 -2
- package/package.json +4 -4
- package/scripts/mock-ci-tool.mjs +5 -0
- package/scripts/mock-omp-rpc.mjs +1 -1
|
@@ -2,6 +2,18 @@ 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
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -39,24 +51,23 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
39
51
|
offset?: string | undefined;
|
|
40
52
|
};
|
|
41
53
|
};
|
|
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" | "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" | "omp" | "opencode" | "pi";
|
|
79
90
|
}[];
|
|
80
|
-
} | {
|
|
81
|
-
runner: "claude" | "codex" | "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,6 +588,18 @@ 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
|
+
} | {
|
|
591
603
|
output: {
|
|
592
604
|
workerId: string;
|
|
593
605
|
parentRunId: string;
|
|
@@ -695,7 +707,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
695
707
|
workerId: string;
|
|
696
708
|
};
|
|
697
709
|
};
|
|
698
|
-
}
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
} & {
|
|
713
|
+
"/:workerId/collect": {
|
|
714
|
+
$post: {
|
|
699
715
|
output: {
|
|
700
716
|
error: string;
|
|
701
717
|
code?: "invalid_input" | undefined;
|
|
@@ -706,12 +722,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
706
722
|
param: {
|
|
707
723
|
workerId: string;
|
|
708
724
|
};
|
|
725
|
+
} & {
|
|
726
|
+
json: Record<string, never>;
|
|
709
727
|
};
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
} & {
|
|
713
|
-
"/:workerId/collect": {
|
|
714
|
-
$post: {
|
|
728
|
+
} | {
|
|
715
729
|
output: {
|
|
716
730
|
workerId: string;
|
|
717
731
|
parentRunId: string;
|
|
@@ -813,7 +827,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
813
827
|
} & {
|
|
814
828
|
json: Record<string, never>;
|
|
815
829
|
};
|
|
816
|
-
}
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
} & {
|
|
833
|
+
"/:workerId/steer": {
|
|
834
|
+
$post: {
|
|
817
835
|
output: {
|
|
818
836
|
error: string;
|
|
819
837
|
code?: "invalid_input" | undefined;
|
|
@@ -825,13 +843,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
825
843
|
workerId: string;
|
|
826
844
|
};
|
|
827
845
|
} & {
|
|
828
|
-
json:
|
|
846
|
+
json: {
|
|
847
|
+
text: string;
|
|
848
|
+
};
|
|
829
849
|
};
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
} & {
|
|
833
|
-
"/:workerId/steer": {
|
|
834
|
-
$post: {
|
|
850
|
+
} | {
|
|
835
851
|
output: {
|
|
836
852
|
workerId: string;
|
|
837
853
|
state: "delivered" | "queued";
|
|
@@ -847,7 +863,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
847
863
|
text: string;
|
|
848
864
|
};
|
|
849
865
|
};
|
|
850
|
-
}
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
} & {
|
|
869
|
+
"/:workerId/stop": {
|
|
870
|
+
$post: {
|
|
851
871
|
output: {
|
|
852
872
|
error: string;
|
|
853
873
|
code?: "invalid_input" | undefined;
|
|
@@ -859,15 +879,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
859
879
|
workerId: string;
|
|
860
880
|
};
|
|
861
881
|
} & {
|
|
862
|
-
json:
|
|
863
|
-
text: string;
|
|
864
|
-
};
|
|
882
|
+
json: Record<string, never>;
|
|
865
883
|
};
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
|
-
} & {
|
|
869
|
-
"/:workerId/stop": {
|
|
870
|
-
$post: {
|
|
884
|
+
} | {
|
|
871
885
|
output: {
|
|
872
886
|
workerId: string;
|
|
873
887
|
state: "stopping" | "terminated";
|
|
@@ -881,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
881
895
|
} & {
|
|
882
896
|
json: Record<string, never>;
|
|
883
897
|
};
|
|
884
|
-
}
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
"/:workerId/destroy": {
|
|
902
|
+
$post: {
|
|
885
903
|
output: {
|
|
886
904
|
error: string;
|
|
887
905
|
code?: "invalid_input" | undefined;
|
|
@@ -895,11 +913,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
895
913
|
} & {
|
|
896
914
|
json: Record<string, never>;
|
|
897
915
|
};
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
} & {
|
|
901
|
-
"/:workerId/destroy": {
|
|
902
|
-
$post: {
|
|
916
|
+
} | {
|
|
903
917
|
output: {
|
|
904
918
|
workerId: string;
|
|
905
919
|
state: "complete" | "incomplete";
|
|
@@ -922,20 +936,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
922
936
|
} & {
|
|
923
937
|
json: Record<string, never>;
|
|
924
938
|
};
|
|
925
|
-
} | {
|
|
926
|
-
output: {
|
|
927
|
-
error: string;
|
|
928
|
-
code?: "invalid_input" | undefined;
|
|
929
|
-
};
|
|
930
|
-
outputFormat: "json";
|
|
931
|
-
status: 400;
|
|
932
|
-
input: {
|
|
933
|
-
param: {
|
|
934
|
-
workerId: string;
|
|
935
|
-
};
|
|
936
|
-
} & {
|
|
937
|
-
json: Record<string, never>;
|
|
938
|
-
};
|
|
939
939
|
} | {
|
|
940
940
|
output: {
|
|
941
941
|
workerId: string;
|
|
@@ -965,13 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
965
|
"/:workerId/diff": {
|
|
966
966
|
$get: {
|
|
967
967
|
output: {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
diff: string;
|
|
971
|
-
truncated: boolean;
|
|
968
|
+
error: string;
|
|
969
|
+
code?: "invalid_input" | undefined;
|
|
972
970
|
};
|
|
973
971
|
outputFormat: "json";
|
|
974
|
-
status:
|
|
972
|
+
status: 400;
|
|
975
973
|
input: {
|
|
976
974
|
param: {
|
|
977
975
|
workerId: string;
|
|
@@ -979,11 +977,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
979
977
|
};
|
|
980
978
|
} | {
|
|
981
979
|
output: {
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
workerId: string;
|
|
981
|
+
baselineSha: string;
|
|
982
|
+
diff: string;
|
|
983
|
+
truncated: boolean;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 200;
|
|
987
987
|
input: {
|
|
988
988
|
param: {
|
|
989
989
|
workerId: string;
|
|
@@ -16,6 +16,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
+
projectId: string;
|
|
20
|
+
runId: string;
|
|
21
|
+
type: "error" | "reset";
|
|
22
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
+
error: string;
|
|
24
|
+
} | {
|
|
19
25
|
projectId: string;
|
|
20
26
|
runId: string;
|
|
21
27
|
type: "batch";
|
|
@@ -29,12 +35,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
29
35
|
cursor: string;
|
|
30
36
|
afterSeq: number;
|
|
31
37
|
hasMore: boolean;
|
|
32
|
-
} | {
|
|
33
|
-
projectId: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
type: "error" | "reset";
|
|
36
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
37
|
-
error: string;
|
|
38
38
|
})[];
|
|
39
39
|
};
|
|
40
40
|
outputFormat: "json";
|
package/dist/server/server.d.ts
CHANGED
|
@@ -181,6 +181,194 @@ export declare class WorkspaceEventBus {
|
|
|
181
181
|
on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
|
|
182
182
|
}
|
|
183
183
|
export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
184
|
+
"/health": {
|
|
185
|
+
$get: {
|
|
186
|
+
output: {
|
|
187
|
+
version: string;
|
|
188
|
+
latestVersion?: string | undefined;
|
|
189
|
+
repoRoot: string;
|
|
190
|
+
repo: {
|
|
191
|
+
root: string;
|
|
192
|
+
branch: string;
|
|
193
|
+
remote?: string | undefined;
|
|
194
|
+
} | null;
|
|
195
|
+
checks: {
|
|
196
|
+
name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
|
|
197
|
+
available: boolean;
|
|
198
|
+
version?: string;
|
|
199
|
+
hint?: string;
|
|
200
|
+
}[];
|
|
201
|
+
defaultRunner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
202
|
+
forge: {
|
|
203
|
+
available?: boolean | undefined;
|
|
204
|
+
reason?: string;
|
|
205
|
+
kind: "github";
|
|
206
|
+
} | null;
|
|
207
|
+
capabilities: {
|
|
208
|
+
localHandoff: boolean;
|
|
209
|
+
settingsAdmin: boolean;
|
|
210
|
+
remoteSettingsAdmin: boolean;
|
|
211
|
+
automations: boolean;
|
|
212
|
+
preview: boolean;
|
|
213
|
+
tokenMetrics: boolean;
|
|
214
|
+
tokenUsageMetrics: boolean;
|
|
215
|
+
costMetrics: boolean;
|
|
216
|
+
};
|
|
217
|
+
projects: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
}[];
|
|
221
|
+
bootProject: string;
|
|
222
|
+
};
|
|
223
|
+
outputFormat: "json";
|
|
224
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
225
|
+
input: {};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
229
|
+
"/models": {
|
|
230
|
+
$get: {
|
|
231
|
+
output: {
|
|
232
|
+
error: string;
|
|
233
|
+
code?: "invalid_input" | undefined;
|
|
234
|
+
};
|
|
235
|
+
outputFormat: "json";
|
|
236
|
+
status: 400;
|
|
237
|
+
input: {
|
|
238
|
+
query: {
|
|
239
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
} | {
|
|
243
|
+
output: {
|
|
244
|
+
runner: import("../core/agent-runner.ts").RunnerId;
|
|
245
|
+
models: {
|
|
246
|
+
id: string;
|
|
247
|
+
label: string;
|
|
248
|
+
description: string;
|
|
249
|
+
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
250
|
+
}[];
|
|
251
|
+
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
252
|
+
stale: boolean;
|
|
253
|
+
reason?: string;
|
|
254
|
+
};
|
|
255
|
+
outputFormat: "json";
|
|
256
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
257
|
+
input: {
|
|
258
|
+
query: {
|
|
259
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
265
|
+
"/fs/browse": {
|
|
266
|
+
$get: {
|
|
267
|
+
output: {
|
|
268
|
+
error: string;
|
|
269
|
+
code?: "invalid_input" | undefined;
|
|
270
|
+
};
|
|
271
|
+
outputFormat: "json";
|
|
272
|
+
status: 400;
|
|
273
|
+
input: {
|
|
274
|
+
query: {
|
|
275
|
+
path?: string | undefined;
|
|
276
|
+
showHidden?: string | undefined;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
} | {
|
|
280
|
+
output: {
|
|
281
|
+
error: string;
|
|
282
|
+
};
|
|
283
|
+
outputFormat: "json";
|
|
284
|
+
status: 400 | 403 | 404;
|
|
285
|
+
input: {
|
|
286
|
+
query: {
|
|
287
|
+
path?: string | undefined;
|
|
288
|
+
showHidden?: string | undefined;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
} | {
|
|
292
|
+
output: {
|
|
293
|
+
path: string;
|
|
294
|
+
parent: string | null;
|
|
295
|
+
dirs: {
|
|
296
|
+
name: string;
|
|
297
|
+
path: string;
|
|
298
|
+
isRepo: boolean;
|
|
299
|
+
}[];
|
|
300
|
+
truncated: boolean;
|
|
301
|
+
};
|
|
302
|
+
outputFormat: "json";
|
|
303
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
304
|
+
input: {
|
|
305
|
+
query: {
|
|
306
|
+
path?: string | undefined;
|
|
307
|
+
showHidden?: string | undefined;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
313
|
+
"/automation-checks/:checkId": {
|
|
314
|
+
$get: {
|
|
315
|
+
output: {
|
|
316
|
+
id: string;
|
|
317
|
+
automationId: string;
|
|
318
|
+
mode: 'preview' | 'execute';
|
|
319
|
+
status: 'queued' | 'running' | 'complete' | 'error';
|
|
320
|
+
createdAt: string;
|
|
321
|
+
completedAt?: string;
|
|
322
|
+
matches?: number;
|
|
323
|
+
truncated?: boolean;
|
|
324
|
+
error?: string;
|
|
325
|
+
};
|
|
326
|
+
outputFormat: "json";
|
|
327
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
328
|
+
input: {
|
|
329
|
+
param: {
|
|
330
|
+
checkId: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
} | {
|
|
334
|
+
output: {
|
|
335
|
+
error: string;
|
|
336
|
+
};
|
|
337
|
+
outputFormat: "json";
|
|
338
|
+
status: 404;
|
|
339
|
+
input: {
|
|
340
|
+
param: {
|
|
341
|
+
checkId: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
347
|
+
"/workspace/events": {
|
|
348
|
+
$get: {
|
|
349
|
+
output: {};
|
|
350
|
+
outputFormat: string;
|
|
351
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
352
|
+
input: {
|
|
353
|
+
query: {
|
|
354
|
+
runs?: "summary" | undefined;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
} | {
|
|
358
|
+
output: {
|
|
359
|
+
error: string;
|
|
360
|
+
code?: "invalid_input" | undefined;
|
|
361
|
+
};
|
|
362
|
+
outputFormat: "json";
|
|
363
|
+
status: 400;
|
|
364
|
+
input: {
|
|
365
|
+
query: {
|
|
366
|
+
runs?: "summary" | undefined;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
184
372
|
"/workspace/activity": {
|
|
185
373
|
$get: {
|
|
186
374
|
output: {
|
|
@@ -438,194 +626,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
438
626
|
};
|
|
439
627
|
};
|
|
440
628
|
};
|
|
441
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
442
|
-
"/health": {
|
|
443
|
-
$get: {
|
|
444
|
-
output: {
|
|
445
|
-
version: string;
|
|
446
|
-
latestVersion?: string | undefined;
|
|
447
|
-
repoRoot: string;
|
|
448
|
-
repo: {
|
|
449
|
-
root: string;
|
|
450
|
-
branch: string;
|
|
451
|
-
remote?: string | undefined;
|
|
452
|
-
} | null;
|
|
453
|
-
checks: {
|
|
454
|
-
name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
|
|
455
|
-
available: boolean;
|
|
456
|
-
version?: string;
|
|
457
|
-
hint?: string;
|
|
458
|
-
}[];
|
|
459
|
-
defaultRunner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
460
|
-
forge: {
|
|
461
|
-
available?: boolean | undefined;
|
|
462
|
-
reason?: string;
|
|
463
|
-
kind: "github";
|
|
464
|
-
} | null;
|
|
465
|
-
capabilities: {
|
|
466
|
-
localHandoff: boolean;
|
|
467
|
-
settingsAdmin: boolean;
|
|
468
|
-
remoteSettingsAdmin: boolean;
|
|
469
|
-
automations: boolean;
|
|
470
|
-
preview: boolean;
|
|
471
|
-
tokenMetrics: boolean;
|
|
472
|
-
tokenUsageMetrics: boolean;
|
|
473
|
-
costMetrics: boolean;
|
|
474
|
-
};
|
|
475
|
-
projects: {
|
|
476
|
-
id: string;
|
|
477
|
-
name: string;
|
|
478
|
-
}[];
|
|
479
|
-
bootProject: string;
|
|
480
|
-
};
|
|
481
|
-
outputFormat: "json";
|
|
482
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
483
|
-
input: {};
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
487
|
-
"/models": {
|
|
488
|
-
$get: {
|
|
489
|
-
output: {
|
|
490
|
-
error: string;
|
|
491
|
-
code?: "invalid_input" | undefined;
|
|
492
|
-
};
|
|
493
|
-
outputFormat: "json";
|
|
494
|
-
status: 400;
|
|
495
|
-
input: {
|
|
496
|
-
query: {
|
|
497
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
} | {
|
|
501
|
-
output: {
|
|
502
|
-
runner: import("../core/agent-runner.ts").RunnerId;
|
|
503
|
-
models: {
|
|
504
|
-
id: string;
|
|
505
|
-
label: string;
|
|
506
|
-
description: string;
|
|
507
|
-
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
508
|
-
}[];
|
|
509
|
-
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
510
|
-
stale: boolean;
|
|
511
|
-
reason?: string;
|
|
512
|
-
};
|
|
513
|
-
outputFormat: "json";
|
|
514
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
515
|
-
input: {
|
|
516
|
-
query: {
|
|
517
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
523
|
-
"/fs/browse": {
|
|
524
|
-
$get: {
|
|
525
|
-
output: {
|
|
526
|
-
error: string;
|
|
527
|
-
code?: "invalid_input" | undefined;
|
|
528
|
-
};
|
|
529
|
-
outputFormat: "json";
|
|
530
|
-
status: 400;
|
|
531
|
-
input: {
|
|
532
|
-
query: {
|
|
533
|
-
path?: string | undefined;
|
|
534
|
-
showHidden?: string | undefined;
|
|
535
|
-
};
|
|
536
|
-
};
|
|
537
|
-
} | {
|
|
538
|
-
output: {
|
|
539
|
-
error: string;
|
|
540
|
-
};
|
|
541
|
-
outputFormat: "json";
|
|
542
|
-
status: 400 | 403 | 404;
|
|
543
|
-
input: {
|
|
544
|
-
query: {
|
|
545
|
-
path?: string | undefined;
|
|
546
|
-
showHidden?: string | undefined;
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
} | {
|
|
550
|
-
output: {
|
|
551
|
-
path: string;
|
|
552
|
-
parent: string | null;
|
|
553
|
-
dirs: {
|
|
554
|
-
name: string;
|
|
555
|
-
path: string;
|
|
556
|
-
isRepo: boolean;
|
|
557
|
-
}[];
|
|
558
|
-
truncated: boolean;
|
|
559
|
-
};
|
|
560
|
-
outputFormat: "json";
|
|
561
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
562
|
-
input: {
|
|
563
|
-
query: {
|
|
564
|
-
path?: string | undefined;
|
|
565
|
-
showHidden?: string | undefined;
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
571
|
-
"/automation-checks/:checkId": {
|
|
572
|
-
$get: {
|
|
573
|
-
output: {
|
|
574
|
-
id: string;
|
|
575
|
-
automationId: string;
|
|
576
|
-
mode: 'preview' | 'execute';
|
|
577
|
-
status: 'queued' | 'running' | 'complete' | 'error';
|
|
578
|
-
createdAt: string;
|
|
579
|
-
completedAt?: string;
|
|
580
|
-
matches?: number;
|
|
581
|
-
truncated?: boolean;
|
|
582
|
-
error?: string;
|
|
583
|
-
};
|
|
584
|
-
outputFormat: "json";
|
|
585
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
586
|
-
input: {
|
|
587
|
-
param: {
|
|
588
|
-
checkId: string;
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
|
-
} | {
|
|
592
|
-
output: {
|
|
593
|
-
error: string;
|
|
594
|
-
};
|
|
595
|
-
outputFormat: "json";
|
|
596
|
-
status: 404;
|
|
597
|
-
input: {
|
|
598
|
-
param: {
|
|
599
|
-
checkId: string;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
605
|
-
"/workspace/events": {
|
|
606
|
-
$get: {
|
|
607
|
-
output: {};
|
|
608
|
-
outputFormat: string;
|
|
609
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
610
|
-
input: {
|
|
611
|
-
query: {
|
|
612
|
-
runs?: "summary" | undefined;
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
} | {
|
|
616
|
-
output: {
|
|
617
|
-
error: string;
|
|
618
|
-
code?: "invalid_input" | undefined;
|
|
619
|
-
};
|
|
620
|
-
outputFormat: "json";
|
|
621
|
-
status: 400;
|
|
622
|
-
input: {
|
|
623
|
-
query: {
|
|
624
|
-
runs?: "summary" | undefined;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
};
|
|
629
629
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
630
630
|
"/workspace/runs-index": {
|
|
631
631
|
$get: {
|
|
@@ -66,6 +66,10 @@ export function squawkToolHandlers(runId, generation, host) {
|
|
|
66
66
|
finishTurn: async (request, signal) => host.acceptDone(runId, generation, request, signal),
|
|
67
67
|
registerPreview: (request, signal) => host.registerPreviewServer(runId, request, signal),
|
|
68
68
|
stopPreview: (request, signal) => host.stopPreviewServer(runId, request, signal),
|
|
69
|
+
automation: async (request, signal) => {
|
|
70
|
+
const tools = await host.awaitAutomationTools(signal);
|
|
71
|
+
return tools?.automation ? tools.automation(request, signal) : scheduleRefusal('unavailable');
|
|
72
|
+
},
|
|
69
73
|
// A schedule belongs to the project, not to this run: any session there may manage one.
|
|
70
74
|
scheduleTask: async (request, signal) => {
|
|
71
75
|
const tools = await host.awaitAutomationTools(signal);
|