@hearsay-tools/squawk 0.18.0-pr3763.6974 → 0.18.0-pr3766.6977
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 +5 -1
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/prompts.js +14 -19
- package/dist/automations/prompts.js.map +1 -1
- package/dist/automations/scheduler.d.ts +1 -1
- package/dist/automations/scheduler.js +1 -3
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +1 -1
- package/dist/automations/service.js +1 -3
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/tool-adapter.d.ts +1 -6
- package/dist/automations/tool-adapter.js +1 -83
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/ci-wait/client.d.ts +0 -2
- package/dist/ci-wait/client.js +0 -5
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +0 -347
- package/dist/ci-wait/controller.js +0 -13
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +0 -29
- package/dist/ci-wait/tool-catalog.js +1 -16
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +1 -100
- package/dist/ci-wait/tools.js +4 -10
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/index.d.ts +0 -1
- package/dist/contract/index.js +7 -31
- 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 +188 -188
- package/dist/workflows/run/squawk-tools.js +0 -4
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/types.d.ts +0 -2
- 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 +0 -5
- package/scripts/mock-omp-rpc.mjs +1 -1
- package/dist/automations/tool-github.d.ts +0 -9
- package/dist/automations/tool-github.js +0 -9
- package/dist/automations/tool-github.js.map +0 -1
- package/dist/automations/tool-timeout.d.ts +0 -2
- package/dist/automations/tool-timeout.js +0 -22
- package/dist/automations/tool-timeout.js.map +0 -1
- package/dist/contract/automation-tool.d.ts +0 -320
- package/dist/core/github-request-limits.d.ts +0 -9
- package/dist/core/github-request-limits.js +0 -13
- package/dist/core/github-request-limits.js.map +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -181,194 +181,6 @@ 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<{
|
|
372
184
|
"/workspace/activity": {
|
|
373
185
|
$get: {
|
|
374
186
|
output: {
|
|
@@ -626,6 +438,194 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
626
438
|
};
|
|
627
439
|
};
|
|
628
440
|
};
|
|
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,10 +66,6 @@ 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
|
-
},
|
|
73
69
|
// A schedule belongs to the project, not to this run: any session there may manage one.
|
|
74
70
|
scheduleTask: async (request, signal) => {
|
|
75
71
|
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,MA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,KAAK,CAAC,EAAE,CAAC,CAAC;IAChT,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AutomationToolAnswer, AutomationToolRequest } from '../../contract/index.js';
|
|
2
1
|
import type { Home } from '../../home/home.ts';
|
|
3
2
|
import type { TrackedWork } from './tracked-work.ts';
|
|
4
3
|
import type { HumanWaitEntry } from '../../contract/index.js';
|
|
@@ -244,7 +243,6 @@ export type WorkerTerminationBlocker = {
|
|
|
244
243
|
};
|
|
245
244
|
/** hearsay-tools/cezarion#1465: what `startServer` hands a manager for the schedule tools. */
|
|
246
245
|
export type AutomationToolService = {
|
|
247
|
-
automation?: (request: AutomationToolRequest, signal: AbortSignal) => Promise<AutomationToolAnswer>;
|
|
248
246
|
scheduleTask(request: ScheduleTaskRequest): Promise<ScheduleTaskAnswer>;
|
|
249
247
|
scheduledTasks(request: ScheduledTasksRequest): Promise<ScheduledTasksAnswer>;
|
|
250
248
|
};
|
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
|
-
* `
|
|
114
|
+
* hearsay-tools/cezarion#1465: the project's one-time schedule service behind
|
|
115
|
+
* `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
|
-
* `
|
|
282
|
+
* hearsay-tools/cezarion#1465: the project's one-time schedule service behind
|
|
283
|
+
* `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-
|
|
3
|
+
"version": "0.18.0-pr3766.6977",
|
|
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-
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr3766.6977",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-pr3766.6977",
|
|
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": "939e6a7bd3df440bc6dc92fa1ec6661ef8e67a41"
|
|
85
85
|
}
|
package/scripts/mock-ci-tool.mjs
CHANGED
|
@@ -115,17 +115,12 @@ export async function toolPrompt(backend, wire, text) {
|
|
|
115
115
|
if (!steps.some(step => step[1])) throw new Error('mock:cezar-tool needs a tool name and base64 JSON arguments');
|
|
116
116
|
const responses = [];
|
|
117
117
|
let last;
|
|
118
|
-
let lastAutomation;
|
|
119
118
|
for (const [, name, encoded, gate] of steps) {
|
|
120
119
|
if (gate) { await gateOpen(Buffer.from(gate, 'base64').toString('utf8')); continue; }
|
|
121
120
|
const args = JSON.parse(Buffer.from(encoded, 'base64').toString('utf8'));
|
|
122
121
|
if (args.wait_id === 'last') args.wait_id = last;
|
|
123
|
-
if (name === 'cezar_automation' && args.id === 'last') args.id = lastAutomation;
|
|
124
122
|
const result = await probeSquawkTool(backend, wire, name, args);
|
|
125
123
|
try { last = JSON.parse(result.response.content[0].text.split('\n')[0]).wait_id ?? last; } catch { /* a refusal names no wait */ }
|
|
126
|
-
if (name === 'cezar_automation') {
|
|
127
|
-
try { lastAutomation = JSON.parse(result.response.content[0].text.split('\n')[0]).automation?.id ?? lastAutomation; } catch { /* a refusal names no automation */ }
|
|
128
|
-
}
|
|
129
124
|
responses.push(JSON.stringify(result.response));
|
|
130
125
|
}
|
|
131
126
|
// `mock:then <base64 text>` ends the turn with that text after the calls (an ask line, say).
|
package/scripts/mock-omp-rpc.mjs
CHANGED
|
@@ -70,7 +70,7 @@ if (typeof flags.get('--tools') === 'string') {
|
|
|
70
70
|
const registered = (name) => (BUILTIN_TOOLS.includes(name) && !GATED_TOOLS.has(name) && !disabled.includes(name))
|
|
71
71
|
|| mcpTools.includes(name)
|
|
72
72
|
|| (extensions.length > 0 && (['cezar_wait', 'cezar_ask', 'cezar_cancel_wait', 'cezar_done'].includes(name) || ((name === 'cezar_preview_serve' || name === 'cezar_preview_stop') && productEnv('PREVIEW') === '1')
|
|
73
|
-
|| ((name === 'cezar_schedule_task' || name === 'cezar_scheduled_tasks'
|
|
73
|
+
|| ((name === 'cezar_schedule_task' || name === 'cezar_scheduled_tasks') && productEnv('AUTOMATIONS') !== '0')));
|
|
74
74
|
// Mirrors v18.4.11 `emt()`: every missing name in ONE error, unknown names first, then the
|
|
75
75
|
// built-ins this session lacks, each line singular for one name.
|
|
76
76
|
const missing = tools.filter((name) => !registered(name));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GithubPoller } from './github-poller.ts';
|
|
2
|
-
/** Use the same canonical origin discovery as the cockpit's manual preview route. */
|
|
3
|
-
export declare function automationToolGithub(root: string): Promise<{
|
|
4
|
-
owner: string;
|
|
5
|
-
repo: string;
|
|
6
|
-
canonical?: () => Promise<import("./github-repository.ts").GithubRepositoryName>;
|
|
7
|
-
forget?: () => void;
|
|
8
|
-
poller: GithubPoller;
|
|
9
|
-
} | undefined>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getRepoInfo } from '../server/git.js';
|
|
2
|
-
import { githubRepository } from './github-repository.js';
|
|
3
|
-
import { GithubPoller } from './github-poller.js';
|
|
4
|
-
/** Use the same canonical origin discovery as the cockpit's manual preview route. */
|
|
5
|
-
export async function automationToolGithub(root) {
|
|
6
|
-
const repository = githubRepository(root, (await getRepoInfo(root))?.remote);
|
|
7
|
-
return repository ? { ...repository, poller: new GithubPoller() } : undefined;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=tool-github.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-github.js","sourceRoot":"","sources":["../../src/automations/tool-github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAY;IACrD,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7E,OAAO,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,IAAI,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAChF,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AUTOMATION_TOOL_TIMEOUT_MS } from '../core/github-request-limits.js';
|
|
2
|
-
/** Bound admission and preview work, and invalidate late preview evidence. */
|
|
3
|
-
export async function withAutomationToolDeadline(session, work) {
|
|
4
|
-
const deadline = new AbortController();
|
|
5
|
-
const signal = AbortSignal.any([session, deadline.signal]);
|
|
6
|
-
let cancel = () => { };
|
|
7
|
-
// bound: two provider scan budgets plus discovery and queueing, shared with the client.
|
|
8
|
-
const timer = setTimeout(() => deadline.abort(new Error('Automation tool preview timed out.')), AUTOMATION_TOOL_TIMEOUT_MS);
|
|
9
|
-
try {
|
|
10
|
-
signal.throwIfAborted();
|
|
11
|
-
const aborted = new Promise((_resolve, reject) => {
|
|
12
|
-
cancel = () => reject(signal.reason);
|
|
13
|
-
signal.addEventListener('abort', cancel, { once: true });
|
|
14
|
-
});
|
|
15
|
-
return await Promise.race([work(signal), aborted]);
|
|
16
|
-
}
|
|
17
|
-
finally {
|
|
18
|
-
clearTimeout(timer);
|
|
19
|
-
signal.removeEventListener('abort', cancel);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=tool-timeout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-timeout.js","sourceRoot":"","sources":["../../src/automations/tool-timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,8EAA8E;AAC9E,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAI,OAAoB,EAAE,IAAyC;IACjH,MAAM,QAAQ,GAAG,IAAI,eAAe,EAAE,CAA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