@hearsay-tools/squawk 0.18.0-dev.6973 → 0.18.0-dev.6987
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 +347 -0
- 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 +11 -11
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +246 -246
- 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
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: {
|
|
@@ -4780,19 +4780,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4780
4780
|
} & {
|
|
4781
4781
|
"/repo/commit/:sha": {
|
|
4782
4782
|
$get: {
|
|
4783
|
-
output: string;
|
|
4784
|
-
outputFormat: "text";
|
|
4785
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4786
|
-
input: {
|
|
4787
|
-
query: {
|
|
4788
|
-
structured?: string | undefined;
|
|
4789
|
-
};
|
|
4790
|
-
} & {
|
|
4791
|
-
param: {
|
|
4792
|
-
sha: string;
|
|
4793
|
-
};
|
|
4794
|
-
};
|
|
4795
|
-
} | {
|
|
4796
4783
|
output: {
|
|
4797
4784
|
error: string;
|
|
4798
4785
|
code?: "invalid_input" | undefined;
|
|
@@ -4856,6 +4843,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4856
4843
|
sha: string;
|
|
4857
4844
|
};
|
|
4858
4845
|
};
|
|
4846
|
+
} | {
|
|
4847
|
+
output: string;
|
|
4848
|
+
outputFormat: "text";
|
|
4849
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4850
|
+
input: {
|
|
4851
|
+
query: {
|
|
4852
|
+
structured?: string | undefined;
|
|
4853
|
+
};
|
|
4854
|
+
} & {
|
|
4855
|
+
param: {
|
|
4856
|
+
sha: string;
|
|
4857
|
+
};
|
|
4858
|
+
};
|
|
4859
4859
|
};
|
|
4860
4860
|
};
|
|
4861
4861
|
} & {
|
|
@@ -18333,20 +18333,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18333
18333
|
} & {
|
|
18334
18334
|
"/runs/:id/handoff": {
|
|
18335
18335
|
$get: {
|
|
18336
|
-
output:
|
|
18337
|
-
|
|
18338
|
-
|
|
18336
|
+
output: {
|
|
18337
|
+
error: string;
|
|
18338
|
+
};
|
|
18339
|
+
outputFormat: "json";
|
|
18340
|
+
status: 404;
|
|
18339
18341
|
input: {
|
|
18340
18342
|
param: {
|
|
18341
18343
|
id: string;
|
|
18342
18344
|
};
|
|
18343
18345
|
};
|
|
18344
18346
|
} | {
|
|
18345
|
-
output:
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
outputFormat: "json";
|
|
18349
|
-
status: 404;
|
|
18347
|
+
output: string;
|
|
18348
|
+
outputFormat: "text";
|
|
18349
|
+
status: 200;
|
|
18350
18350
|
input: {
|
|
18351
18351
|
param: {
|
|
18352
18352
|
id: string;
|
|
@@ -18384,20 +18384,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18384
18384
|
} & {
|
|
18385
18385
|
"/runs/:id/diff": {
|
|
18386
18386
|
$get: {
|
|
18387
|
-
output:
|
|
18388
|
-
|
|
18389
|
-
|
|
18387
|
+
output: {
|
|
18388
|
+
error: string;
|
|
18389
|
+
};
|
|
18390
|
+
outputFormat: "json";
|
|
18391
|
+
status: 404 | 409;
|
|
18390
18392
|
input: {
|
|
18391
18393
|
param: {
|
|
18392
18394
|
id: string;
|
|
18393
18395
|
};
|
|
18394
18396
|
};
|
|
18395
18397
|
} | {
|
|
18396
|
-
output:
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
outputFormat: "json";
|
|
18400
|
-
status: 404 | 409;
|
|
18398
|
+
output: string;
|
|
18399
|
+
outputFormat: "text";
|
|
18400
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18401
18401
|
input: {
|
|
18402
18402
|
param: {
|
|
18403
18403
|
id: string;
|
|
@@ -20685,19 +20685,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20685
20685
|
} & {
|
|
20686
20686
|
"/repo/commit/:sha": {
|
|
20687
20687
|
$get: {
|
|
20688
|
-
output: string;
|
|
20689
|
-
outputFormat: "text";
|
|
20690
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20691
|
-
input: {
|
|
20692
|
-
query: {
|
|
20693
|
-
structured?: string | undefined;
|
|
20694
|
-
};
|
|
20695
|
-
} & {
|
|
20696
|
-
param: {
|
|
20697
|
-
sha: string;
|
|
20698
|
-
};
|
|
20699
|
-
};
|
|
20700
|
-
} | {
|
|
20701
20688
|
output: {
|
|
20702
20689
|
error: string;
|
|
20703
20690
|
code?: "invalid_input" | undefined;
|
|
@@ -20761,6 +20748,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20761
20748
|
sha: string;
|
|
20762
20749
|
};
|
|
20763
20750
|
};
|
|
20751
|
+
} | {
|
|
20752
|
+
output: string;
|
|
20753
|
+
outputFormat: "text";
|
|
20754
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20755
|
+
input: {
|
|
20756
|
+
query: {
|
|
20757
|
+
structured?: string | undefined;
|
|
20758
|
+
};
|
|
20759
|
+
} & {
|
|
20760
|
+
param: {
|
|
20761
|
+
sha: string;
|
|
20762
|
+
};
|
|
20763
|
+
};
|
|
20764
20764
|
};
|
|
20765
20765
|
};
|
|
20766
20766
|
} & {
|
|
@@ -34238,20 +34238,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34238
34238
|
} & {
|
|
34239
34239
|
"/runs/:id/handoff": {
|
|
34240
34240
|
$get: {
|
|
34241
|
-
output:
|
|
34242
|
-
|
|
34243
|
-
|
|
34241
|
+
output: {
|
|
34242
|
+
error: string;
|
|
34243
|
+
};
|
|
34244
|
+
outputFormat: "json";
|
|
34245
|
+
status: 404;
|
|
34244
34246
|
input: {
|
|
34245
34247
|
param: {
|
|
34246
34248
|
id: string;
|
|
34247
34249
|
};
|
|
34248
34250
|
};
|
|
34249
34251
|
} | {
|
|
34250
|
-
output:
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
outputFormat: "json";
|
|
34254
|
-
status: 404;
|
|
34252
|
+
output: string;
|
|
34253
|
+
outputFormat: "text";
|
|
34254
|
+
status: 200;
|
|
34255
34255
|
input: {
|
|
34256
34256
|
param: {
|
|
34257
34257
|
id: string;
|
|
@@ -34289,20 +34289,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34289
34289
|
} & {
|
|
34290
34290
|
"/runs/:id/diff": {
|
|
34291
34291
|
$get: {
|
|
34292
|
-
output:
|
|
34293
|
-
|
|
34294
|
-
|
|
34292
|
+
output: {
|
|
34293
|
+
error: string;
|
|
34294
|
+
};
|
|
34295
|
+
outputFormat: "json";
|
|
34296
|
+
status: 404 | 409;
|
|
34295
34297
|
input: {
|
|
34296
34298
|
param: {
|
|
34297
34299
|
id: string;
|
|
34298
34300
|
};
|
|
34299
34301
|
};
|
|
34300
34302
|
} | {
|
|
34301
|
-
output:
|
|
34302
|
-
|
|
34303
|
-
|
|
34304
|
-
outputFormat: "json";
|
|
34305
|
-
status: 404 | 409;
|
|
34303
|
+
output: string;
|
|
34304
|
+
outputFormat: "text";
|
|
34305
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34306
34306
|
input: {
|
|
34307
34307
|
param: {
|
|
34308
34308
|
id: string;
|
|
@@ -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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"squawk-tools.js","sourceRoot":"","sources":["../../../src/workflows/run/squawk-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAwB,MAAM,+BAA+B,CAAC;AAK3G,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAoS,MAAM,oCAAoC,CAAC;AAE1W,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,wGAAwG;AACxG,MAAM,yBAAyB,GAAG,MAAM,CAAC;AACzC,MAAM,OAAO,mBAAmB;IAC2B,eAAe;IAAxE,YAAY,QAA0B,EAAmB,eAA8B;+BAA9B,eAAe;IAAkB,CAAC;IACnF,eAAe,CAAqC;IACpD,sBAAsB,GAAG,IAAI,GAAG,EAAc,CAAC;IACvD,kBAAkB,CAAC,KAAwC;QACzD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,IAAI,KAAK;YAAE,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;gBAAE,IAAI,EAAE,CAAC;IACzE,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,MAAmB;QAC5C,IAAI,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YAAE,OAAO,IAAI,CAAC,eAAe,CAAC;QACjF,M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OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AutomationToolAnswer, AutomationToolRequest } from '../../contract/index.js';
|
|
1
2
|
import type { Home } from '../../home/home.ts';
|
|
2
3
|
import type { TrackedWork } from './tracked-work.ts';
|
|
3
4
|
import type { HumanWaitEntry } from '../../contract/index.js';
|
|
@@ -243,6 +244,7 @@ export type WorkerTerminationBlocker = {
|
|
|
243
244
|
};
|
|
244
245
|
/** hearsay-tools/cezarion#1465: what `startServer` hands a manager for the schedule tools. */
|
|
245
246
|
export type AutomationToolService = {
|
|
247
|
+
automation?: (request: AutomationToolRequest, signal: AbortSignal) => Promise<AutomationToolAnswer>;
|
|
246
248
|
scheduleTask(request: ScheduleTaskRequest): Promise<ScheduleTaskAnswer>;
|
|
247
249
|
scheduledTasks(request: ScheduledTasksRequest): Promise<ScheduledTasksAnswer>;
|
|
248
250
|
};
|
package/dist/workflows/run.d.ts
CHANGED
|
@@ -111,8 +111,8 @@ export declare class RunManager {
|
|
|
111
111
|
projectId: string;
|
|
112
112
|
} | undefined;
|
|
113
113
|
/**
|
|
114
|
-
* hearsay-tools/cezarion#1465: the project's
|
|
115
|
-
* `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
114
|
+
* hearsay-tools/cezarion#1465: the project's automation service behind
|
|
115
|
+
* `cezar_automation`, `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
116
116
|
* address. Headless `cez run` never sets it, so the tools answer `unavailable` there. The
|
|
117
117
|
* boot manager recovers runs before the server sets it, and a lazy project's manager recovers
|
|
118
118
|
* before its context is announced: a resumed session can call a tool in that window. With a
|
package/dist/workflows/run.js
CHANGED
|
@@ -279,8 +279,8 @@ export class RunManager {
|
|
|
279
279
|
setCockpitAddress(address) { return launchContext.setCockpitAddress(this.#modules.launchSettingsHost, address); }
|
|
280
280
|
cockpitAddress() { return launchContext.cockpitAddress(this.#cockpit); }
|
|
281
281
|
/**
|
|
282
|
-
* hearsay-tools/cezarion#1465: the project's
|
|
283
|
-
* `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
282
|
+
* hearsay-tools/cezarion#1465: the project's automation service behind
|
|
283
|
+
* `cezar_automation`, `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
284
284
|
* address. Headless `cez run` never sets it, so the tools answer `unavailable` there. The
|
|
285
285
|
* boot manager recovers runs before the server sets it, and a lazy project's manager recovers
|
|
286
286
|
* before its context is announced: a resumed session can call a tool in that window. With a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-dev.
|
|
3
|
+
"version": "0.18.0-dev.6987",
|
|
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.
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-dev.
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-dev.6987",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.6987",
|
|
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": "
|
|
84
|
+
"gitHead": "8599516b286382d52fe7db80e77923ea6fe46646"
|
|
85
85
|
}
|