@hearsay-tools/squawk 0.19.0-dev.9012 → 0.19.0-dev.9025
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/ci-wait/controller.d.ts +7 -7
- package/dist/contract/index.js +5 -1
- package/dist/contract/scheduled-tasks.d.ts +6 -0
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/features/automations/automations-routes.d.ts +150 -150
- package/dist/features/automations/prompts.js +1 -1
- package/dist/features/automations/task-template.js +4 -1
- package/dist/features/automations/task-template.js.map +1 -1
- package/dist/features/automations/tool-adapter.js +9 -3
- package/dist/features/automations/tool-adapter.js.map +1 -1
- package/dist/features/automations/tool-catalog.d.ts +1 -0
- package/dist/features/automations/tool-catalog.js +1 -1
- package/dist/features/automations/tool-catalog.js.map +1 -1
- package/dist/features/automations/tools.d.ts +6 -0
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/project-settings-routes.d.ts +107 -107
- package/dist/server/projects-routes.d.ts +45 -45
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runs-routes.d.ts +18 -18
- package/dist/server/server.d.ts +1196 -1196
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-Wc73jQ4s.js → accounts-section-DINhWaKE.js} +1 -1
- package/web/dist/assets/{activity-motion-BPRLw_I9.js → activity-motion-BzO8epGW.js} +1 -1
- package/web/dist/assets/{activity-route-Da5ta_G-.js → activity-route-BTHXYoE4.js} +1 -1
- package/web/dist/assets/{agent-config-section-ZOyd2cRC.js → agent-config-section-tjZMzOZC.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-_X3y2Omu.js → agent-defaults-section-CYGoNzJ-.js} +1 -1
- package/web/dist/assets/{appearance-BmdfStvY.js → appearance-CCuTu0sL.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-CAF2EWzH.js → archive-on-merge-field-CeUWkcwK.js} +1 -1
- package/web/dist/assets/{automations-route-_7obPTdz.js → automations-route-CJmcm2Vr.js} +1 -1
- package/web/dist/assets/{commit-list-CO8vRunh.js → commit-list-DHm1bCGH.js} +1 -1
- package/web/dist/assets/{diff-9Oy07HJg.js → diff-CZJXpxat.js} +2 -2
- package/web/dist/assets/{diff-controls-DWdkazFx.js → diff-controls-Cr1qbI1O.js} +1 -1
- package/web/dist/assets/{diff-view-BSehoQ7R.js → diff-view-BxzlLybI.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-BhaVmNO6.js → discard-changes-dialog-aAzdjye-.js} +1 -1
- package/web/dist/assets/{file-preview-C83OUAjD.js → file-preview-DE1-2MRD.js} +1 -1
- package/web/dist/assets/{git-toolbar--xUjN-yG.js → git-toolbar-CKcT_0rO.js} +1 -1
- package/web/dist/assets/{github-CU_L3Gzq.js → github-DYJRmmIn.js} +1 -1
- package/web/dist/assets/{global-activity-route-JAN35ZZ7.js → global-activity-route-BsG3-J8A.js} +1 -1
- package/web/dist/assets/index-aGnZVJo_.css +1 -0
- package/web/dist/assets/{index-CpBnI67l.js → index-lCPcoWSv.js} +4 -4
- package/web/dist/assets/{markdown-CRffTry_.js → markdown-CfYkmPQA.js} +1 -1
- package/web/dist/assets/{option-select-CANEdKB3.js → option-select-BakZdSgu.js} +1 -1
- package/web/dist/assets/{preferences-section-ChSaVzf5.js → preferences-section-D8yX5A40.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-DEoWwg1D.js → preview-pane-connected-677KPPpd.js} +1 -1
- package/web/dist/assets/{project-location-C6kWal8h.js → project-location-l_7MLXzp.js} +1 -1
- package/web/dist/assets/{projects-section-C2ILzM0u.js → projects-section-aX9WMTbw.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-DR2g3ICn.js → prompt-templates-section-DV_VhZ8D.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-mR8dmhH6.js → remote-settings-notice-9x62rpqO.js} +1 -1
- package/web/dist/assets/{repo-git-DYTJUaV2.js → repo-git-m0GYtWKT.js} +1 -1
- package/web/dist/assets/{report-reader-CHCeip_w.js → report-reader-C-YM9WMx.js} +1 -1
- package/web/dist/assets/{reports-fVt2woJj.js → reports-Bdpvl1tm.js} +1 -1
- package/web/dist/assets/{resources-section-CvKw1n42.js → resources-section-CIrP33CN.js} +1 -1
- package/web/dist/assets/{review-panel-KthwDPFp.js → review-panel-B8zs0CSP.js} +1 -1
- package/web/dist/assets/{run-header-qJ9QeZZe.js → run-header-B6l8_e9X.js} +1 -1
- package/web/dist/assets/{select-DGiv2EMm.js → select-fYRFfIZp.js} +1 -1
- package/web/dist/assets/{session-context-section-1M2fJo4z.js → session-context-section-DwmxBYhL.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BJY-YMtE.js → settings-agent-picker-B0Q0ke-Q.js} +1 -1
- package/web/dist/assets/{settings-save-bar-BPJUUAP3.js → settings-save-bar-D_OxLOmj.js} +1 -1
- package/web/dist/assets/{settings-shell-DrNPCX8c.js → settings-shell-tteBTOed.js} +1 -1
- package/web/dist/assets/{sidebar-section-DOWp6Dmy.js → sidebar-section-gGolq8j8.js} +1 -1
- package/web/dist/assets/{skills-CkVpnXS3.js → skills-BB3x_sd8.js} +1 -1
- package/web/dist/assets/{task-changes-DdbXePt5.js → task-changes-Yj9HftST.js} +1 -1
- package/web/dist/assets/{task-commits-D2JgTdX6.js → task-commits-D_J1D_WR.js} +1 -1
- package/web/dist/assets/{task-file-scope-B1WT9BWp.js → task-file-scope-BZFb10De.js} +1 -1
- package/web/dist/assets/{task-files-DGsexDEU.js → task-files-Cc4ZU-AA.js} +1 -1
- package/web/dist/assets/{task-github-item-q7DCEOfn.js → task-github-item-DSuJFWRJ.js} +1 -1
- package/web/dist/assets/{task-thread-_SnaFIGF.js → task-thread-D2korRS1.js} +1 -1
- package/web/dist/assets/{thread-state-BM9FWd8L.js → thread-state-C3TBW7mO.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Bep2f9LG.js → use-hand-to-agent-state-CQB8qtWC.js} +1 -1
- package/web/dist/assets/use-path-bases-BYeWywf7.js +1 -0
- package/web/dist/assets/{workflows-CU7SKlFm.js → workflows-m3fecleC.js} +1 -1
- package/web/dist/assets/{workspace-tools-DO5szf7G.js → workspace-tools-B0HwrAFS.js} +1 -1
- package/web/dist/assets/{worktrees-section-Ct-gx72w.js → worktrees-section-D92EMSjm.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-HPYKV4O4.css +0 -1
- package/web/dist/assets/use-path-bases-CS-lRH5B.js +0 -1
|
@@ -220,20 +220,18 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
220
220
|
"/automations": {
|
|
221
221
|
$post: {
|
|
222
222
|
output: {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
input: {
|
|
228
|
-
json: {
|
|
223
|
+
automation: {
|
|
224
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
225
|
+
id: string;
|
|
226
|
+
revision: number;
|
|
229
227
|
name: string;
|
|
230
228
|
description?: string | undefined;
|
|
231
|
-
enabled
|
|
232
|
-
kind
|
|
229
|
+
enabled: boolean;
|
|
230
|
+
kind: "github" | "schedule";
|
|
233
231
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
234
232
|
intervalSeconds?: number | undefined;
|
|
235
233
|
filters?: {
|
|
236
|
-
[x: string]:
|
|
234
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
237
235
|
includeExisting?: boolean | undefined;
|
|
238
236
|
requireCurrentLabels?: boolean | undefined;
|
|
239
237
|
authors?: string[] | undefined;
|
|
@@ -242,10 +240,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
242
240
|
anyLabels?: string[] | undefined;
|
|
243
241
|
excludeLabels?: string[] | undefined;
|
|
244
242
|
changedLabels?: string[] | undefined;
|
|
245
|
-
lookbackDays
|
|
246
|
-
maxRecords
|
|
243
|
+
lookbackDays: number;
|
|
244
|
+
maxRecords: number;
|
|
247
245
|
} | undefined;
|
|
248
246
|
schedule?: {
|
|
247
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
249
248
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
250
249
|
hour?: number | undefined;
|
|
251
250
|
minute?: number | undefined;
|
|
@@ -256,6 +255,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
256
255
|
latestStartMinutes?: number | undefined;
|
|
257
256
|
} | undefined;
|
|
258
257
|
task: {
|
|
258
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
259
259
|
archiveWhenDone?: boolean | undefined;
|
|
260
260
|
autoMergePr?: boolean | undefined;
|
|
261
261
|
allowWorkers?: boolean | undefined;
|
|
@@ -276,37 +276,53 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
276
276
|
bashAllowlist?: string[] | undefined;
|
|
277
277
|
kind?: "plugin" | undefined;
|
|
278
278
|
pluginKind?: string | undefined;
|
|
279
|
-
config?:
|
|
279
|
+
config?: {
|
|
280
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
281
|
+
} | undefined;
|
|
280
282
|
command?: string | undefined;
|
|
281
283
|
onFail?: {
|
|
282
284
|
retry: string;
|
|
283
|
-
max
|
|
285
|
+
max: number;
|
|
284
286
|
} | undefined;
|
|
285
287
|
}[] | undefined;
|
|
286
288
|
runner?: string | undefined;
|
|
287
289
|
model?: string | undefined;
|
|
288
290
|
effort?: string | undefined;
|
|
291
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
289
292
|
worktree?: boolean | undefined;
|
|
290
293
|
autonomous?: boolean | undefined;
|
|
291
294
|
systemPrompt?: string | undefined;
|
|
292
295
|
};
|
|
293
|
-
|
|
296
|
+
archived?: {
|
|
297
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
298
|
+
at: string;
|
|
299
|
+
outcome: "cancelled" | "launched";
|
|
300
|
+
runId?: string | undefined;
|
|
301
|
+
receiptId?: string | undefined;
|
|
302
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
updatedAt: string;
|
|
294
306
|
};
|
|
307
|
+
once?: {
|
|
308
|
+
dueAt: string;
|
|
309
|
+
timeZone: string;
|
|
310
|
+
resolvedInstant: string;
|
|
311
|
+
note: string;
|
|
312
|
+
} | undefined;
|
|
295
313
|
};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
id: string;
|
|
301
|
-
revision: number;
|
|
314
|
+
outputFormat: "json";
|
|
315
|
+
status: 201;
|
|
316
|
+
input: {
|
|
317
|
+
json: {
|
|
302
318
|
name: string;
|
|
303
319
|
description?: string | undefined;
|
|
304
|
-
enabled
|
|
305
|
-
kind
|
|
320
|
+
enabled?: boolean | undefined;
|
|
321
|
+
kind?: "github" | "schedule" | undefined;
|
|
306
322
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
307
323
|
intervalSeconds?: number | undefined;
|
|
308
324
|
filters?: {
|
|
309
|
-
[x: string]:
|
|
325
|
+
[x: string]: unknown;
|
|
310
326
|
includeExisting?: boolean | undefined;
|
|
311
327
|
requireCurrentLabels?: boolean | undefined;
|
|
312
328
|
authors?: string[] | undefined;
|
|
@@ -315,11 +331,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
315
331
|
anyLabels?: string[] | undefined;
|
|
316
332
|
excludeLabels?: string[] | undefined;
|
|
317
333
|
changedLabels?: string[] | undefined;
|
|
318
|
-
lookbackDays
|
|
319
|
-
maxRecords
|
|
334
|
+
lookbackDays?: number | undefined;
|
|
335
|
+
maxRecords?: number | undefined;
|
|
320
336
|
} | undefined;
|
|
321
337
|
schedule?: {
|
|
322
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
323
338
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
324
339
|
hour?: number | undefined;
|
|
325
340
|
minute?: number | undefined;
|
|
@@ -330,7 +345,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
330
345
|
latestStartMinutes?: number | undefined;
|
|
331
346
|
} | undefined;
|
|
332
347
|
task: {
|
|
333
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
334
348
|
archiveWhenDone?: boolean | undefined;
|
|
335
349
|
autoMergePr?: boolean | undefined;
|
|
336
350
|
allowWorkers?: boolean | undefined;
|
|
@@ -351,43 +365,29 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
351
365
|
bashAllowlist?: string[] | undefined;
|
|
352
366
|
kind?: "plugin" | undefined;
|
|
353
367
|
pluginKind?: string | undefined;
|
|
354
|
-
config?:
|
|
355
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
356
|
-
} | undefined;
|
|
368
|
+
config?: Record<string, unknown> | undefined;
|
|
357
369
|
command?: string | undefined;
|
|
358
370
|
onFail?: {
|
|
359
371
|
retry: string;
|
|
360
|
-
max
|
|
372
|
+
max?: number | undefined;
|
|
361
373
|
} | undefined;
|
|
362
374
|
}[] | undefined;
|
|
363
375
|
runner?: string | undefined;
|
|
364
376
|
model?: string | undefined;
|
|
365
377
|
effort?: string | undefined;
|
|
366
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
367
378
|
worktree?: boolean | undefined;
|
|
368
379
|
autonomous?: boolean | undefined;
|
|
369
380
|
systemPrompt?: string | undefined;
|
|
370
381
|
};
|
|
371
|
-
|
|
372
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
373
|
-
at: string;
|
|
374
|
-
outcome: "cancelled" | "launched";
|
|
375
|
-
runId?: string | undefined;
|
|
376
|
-
receiptId?: string | undefined;
|
|
377
|
-
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
378
|
-
} | undefined;
|
|
379
|
-
createdAt: string;
|
|
380
|
-
updatedAt: string;
|
|
382
|
+
enable?: boolean | undefined;
|
|
381
383
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
note: string;
|
|
387
|
-
} | undefined;
|
|
384
|
+
};
|
|
385
|
+
} | {
|
|
386
|
+
output: {
|
|
387
|
+
error: string;
|
|
388
388
|
};
|
|
389
389
|
outputFormat: "json";
|
|
390
|
-
status:
|
|
390
|
+
status: 400 | 404 | 409;
|
|
391
391
|
input: {
|
|
392
392
|
json: {
|
|
393
393
|
name: string;
|
|
@@ -462,17 +462,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
462
462
|
} & {
|
|
463
463
|
"/automations/:id": {
|
|
464
464
|
$get: {
|
|
465
|
-
output: {
|
|
466
|
-
error: string;
|
|
467
|
-
};
|
|
468
|
-
outputFormat: "json";
|
|
469
|
-
status: 400 | 404 | 409;
|
|
470
|
-
input: {
|
|
471
|
-
param: {
|
|
472
|
-
id: string;
|
|
473
|
-
};
|
|
474
|
-
};
|
|
475
|
-
} | {
|
|
476
465
|
output: {
|
|
477
466
|
automation: {
|
|
478
467
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -635,26 +624,35 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
635
624
|
id: string;
|
|
636
625
|
};
|
|
637
626
|
};
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
|
-
} & {
|
|
641
|
-
"/automations/:id": {
|
|
642
|
-
$put: {
|
|
627
|
+
} | {
|
|
643
628
|
output: {
|
|
644
629
|
error: string;
|
|
645
630
|
};
|
|
646
631
|
outputFormat: "json";
|
|
647
632
|
status: 400 | 404 | 409;
|
|
648
633
|
input: {
|
|
649
|
-
|
|
634
|
+
param: {
|
|
635
|
+
id: string;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
} & {
|
|
641
|
+
"/automations/:id": {
|
|
642
|
+
$put: {
|
|
643
|
+
output: {
|
|
644
|
+
automation: {
|
|
645
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
646
|
+
id: string;
|
|
647
|
+
revision: number;
|
|
650
648
|
name: string;
|
|
651
649
|
description?: string | undefined;
|
|
652
|
-
enabled
|
|
653
|
-
kind
|
|
650
|
+
enabled: boolean;
|
|
651
|
+
kind: "github" | "schedule";
|
|
654
652
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
655
653
|
intervalSeconds?: number | undefined;
|
|
656
654
|
filters?: {
|
|
657
|
-
[x: string]:
|
|
655
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
658
656
|
includeExisting?: boolean | undefined;
|
|
659
657
|
requireCurrentLabels?: boolean | undefined;
|
|
660
658
|
authors?: string[] | undefined;
|
|
@@ -663,10 +661,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
663
661
|
anyLabels?: string[] | undefined;
|
|
664
662
|
excludeLabels?: string[] | undefined;
|
|
665
663
|
changedLabels?: string[] | undefined;
|
|
666
|
-
lookbackDays
|
|
667
|
-
maxRecords
|
|
664
|
+
lookbackDays: number;
|
|
665
|
+
maxRecords: number;
|
|
668
666
|
} | undefined;
|
|
669
667
|
schedule?: {
|
|
668
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
670
669
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
671
670
|
hour?: number | undefined;
|
|
672
671
|
minute?: number | undefined;
|
|
@@ -677,6 +676,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
677
676
|
latestStartMinutes?: number | undefined;
|
|
678
677
|
} | undefined;
|
|
679
678
|
task: {
|
|
679
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
680
680
|
archiveWhenDone?: boolean | undefined;
|
|
681
681
|
autoMergePr?: boolean | undefined;
|
|
682
682
|
allowWorkers?: boolean | undefined;
|
|
@@ -697,41 +697,47 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
697
697
|
bashAllowlist?: string[] | undefined;
|
|
698
698
|
kind?: "plugin" | undefined;
|
|
699
699
|
pluginKind?: string | undefined;
|
|
700
|
-
config?:
|
|
700
|
+
config?: {
|
|
701
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
702
|
+
} | undefined;
|
|
701
703
|
command?: string | undefined;
|
|
702
704
|
onFail?: {
|
|
703
705
|
retry: string;
|
|
704
|
-
max
|
|
706
|
+
max: number;
|
|
705
707
|
} | undefined;
|
|
706
708
|
}[] | undefined;
|
|
707
709
|
runner?: string | undefined;
|
|
708
710
|
model?: string | undefined;
|
|
709
711
|
effort?: string | undefined;
|
|
712
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
710
713
|
worktree?: boolean | undefined;
|
|
711
714
|
autonomous?: boolean | undefined;
|
|
712
715
|
systemPrompt?: string | undefined;
|
|
713
716
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
archived?: {
|
|
718
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
719
|
+
at: string;
|
|
720
|
+
outcome: "cancelled" | "launched";
|
|
721
|
+
runId?: string | undefined;
|
|
722
|
+
receiptId?: string | undefined;
|
|
723
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
724
|
+
} | undefined;
|
|
725
|
+
createdAt: string;
|
|
726
|
+
updatedAt: string;
|
|
719
727
|
};
|
|
720
728
|
};
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
id: string;
|
|
726
|
-
revision: number;
|
|
729
|
+
outputFormat: "json";
|
|
730
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
731
|
+
input: {
|
|
732
|
+
json: {
|
|
727
733
|
name: string;
|
|
728
734
|
description?: string | undefined;
|
|
729
|
-
enabled
|
|
730
|
-
kind
|
|
735
|
+
enabled?: boolean | undefined;
|
|
736
|
+
kind?: "github" | "schedule" | undefined;
|
|
731
737
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
732
738
|
intervalSeconds?: number | undefined;
|
|
733
739
|
filters?: {
|
|
734
|
-
[x: string]:
|
|
740
|
+
[x: string]: unknown;
|
|
735
741
|
includeExisting?: boolean | undefined;
|
|
736
742
|
requireCurrentLabels?: boolean | undefined;
|
|
737
743
|
authors?: string[] | undefined;
|
|
@@ -740,11 +746,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
740
746
|
anyLabels?: string[] | undefined;
|
|
741
747
|
excludeLabels?: string[] | undefined;
|
|
742
748
|
changedLabels?: string[] | undefined;
|
|
743
|
-
lookbackDays
|
|
744
|
-
maxRecords
|
|
749
|
+
lookbackDays?: number | undefined;
|
|
750
|
+
maxRecords?: number | undefined;
|
|
745
751
|
} | undefined;
|
|
746
752
|
schedule?: {
|
|
747
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
748
753
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
749
754
|
hour?: number | undefined;
|
|
750
755
|
minute?: number | undefined;
|
|
@@ -755,7 +760,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
755
760
|
latestStartMinutes?: number | undefined;
|
|
756
761
|
} | undefined;
|
|
757
762
|
task: {
|
|
758
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
759
763
|
archiveWhenDone?: boolean | undefined;
|
|
760
764
|
autoMergePr?: boolean | undefined;
|
|
761
765
|
allowWorkers?: boolean | undefined;
|
|
@@ -776,37 +780,33 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
776
780
|
bashAllowlist?: string[] | undefined;
|
|
777
781
|
kind?: "plugin" | undefined;
|
|
778
782
|
pluginKind?: string | undefined;
|
|
779
|
-
config?:
|
|
780
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
781
|
-
} | undefined;
|
|
783
|
+
config?: Record<string, unknown> | undefined;
|
|
782
784
|
command?: string | undefined;
|
|
783
785
|
onFail?: {
|
|
784
786
|
retry: string;
|
|
785
|
-
max
|
|
787
|
+
max?: number | undefined;
|
|
786
788
|
} | undefined;
|
|
787
789
|
}[] | undefined;
|
|
788
790
|
runner?: string | undefined;
|
|
789
791
|
model?: string | undefined;
|
|
790
792
|
effort?: string | undefined;
|
|
791
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
792
793
|
worktree?: boolean | undefined;
|
|
793
794
|
autonomous?: boolean | undefined;
|
|
794
795
|
systemPrompt?: string | undefined;
|
|
795
796
|
};
|
|
796
|
-
|
|
797
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
798
|
-
at: string;
|
|
799
|
-
outcome: "cancelled" | "launched";
|
|
800
|
-
runId?: string | undefined;
|
|
801
|
-
receiptId?: string | undefined;
|
|
802
|
-
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
803
|
-
} | undefined;
|
|
804
|
-
createdAt: string;
|
|
805
|
-
updatedAt: string;
|
|
797
|
+
expectedRevision: number;
|
|
806
798
|
};
|
|
799
|
+
} & {
|
|
800
|
+
param: {
|
|
801
|
+
id: string;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
} | {
|
|
805
|
+
output: {
|
|
806
|
+
error: string;
|
|
807
807
|
};
|
|
808
808
|
outputFormat: "json";
|
|
809
|
-
status:
|
|
809
|
+
status: 400 | 404 | 409;
|
|
810
810
|
input: {
|
|
811
811
|
json: {
|
|
812
812
|
name: string;
|
|
@@ -909,17 +909,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
909
909
|
} & {
|
|
910
910
|
"/automations/:id/enable": {
|
|
911
911
|
$post: {
|
|
912
|
-
output: {
|
|
913
|
-
error: string;
|
|
914
|
-
};
|
|
915
|
-
outputFormat: "json";
|
|
916
|
-
status: 400 | 404 | 409;
|
|
917
|
-
input: {
|
|
918
|
-
param: {
|
|
919
|
-
id: string;
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
} | {
|
|
923
912
|
output: {
|
|
924
913
|
automation: {
|
|
925
914
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1013,11 +1002,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1013
1002
|
id: string;
|
|
1014
1003
|
};
|
|
1015
1004
|
};
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
} & {
|
|
1019
|
-
"/automations/:id/pause": {
|
|
1020
|
-
$post: {
|
|
1005
|
+
} | {
|
|
1021
1006
|
output: {
|
|
1022
1007
|
error: string;
|
|
1023
1008
|
};
|
|
@@ -1028,7 +1013,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1028
1013
|
id: string;
|
|
1029
1014
|
};
|
|
1030
1015
|
};
|
|
1031
|
-
}
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
} & {
|
|
1019
|
+
"/automations/:id/pause": {
|
|
1020
|
+
$post: {
|
|
1032
1021
|
output: {
|
|
1033
1022
|
automation: {
|
|
1034
1023
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1122,11 +1111,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1122
1111
|
id: string;
|
|
1123
1112
|
};
|
|
1124
1113
|
};
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
|
-
} & {
|
|
1128
|
-
"/automations/:id/cancel": {
|
|
1129
|
-
$post: {
|
|
1114
|
+
} | {
|
|
1130
1115
|
output: {
|
|
1131
1116
|
error: string;
|
|
1132
1117
|
};
|
|
@@ -1137,7 +1122,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1137
1122
|
id: string;
|
|
1138
1123
|
};
|
|
1139
1124
|
};
|
|
1140
|
-
}
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
} & {
|
|
1128
|
+
"/automations/:id/cancel": {
|
|
1129
|
+
$post: {
|
|
1141
1130
|
output: {
|
|
1142
1131
|
automation: {
|
|
1143
1132
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1231,16 +1220,27 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1231
1220
|
id: string;
|
|
1232
1221
|
};
|
|
1233
1222
|
};
|
|
1223
|
+
} | {
|
|
1224
|
+
output: {
|
|
1225
|
+
error: string;
|
|
1226
|
+
};
|
|
1227
|
+
outputFormat: "json";
|
|
1228
|
+
status: 400 | 404 | 409;
|
|
1229
|
+
input: {
|
|
1230
|
+
param: {
|
|
1231
|
+
id: string;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
1234
|
};
|
|
1235
1235
|
};
|
|
1236
1236
|
} & {
|
|
1237
1237
|
"/automations/:id/run": {
|
|
1238
1238
|
$post: {
|
|
1239
1239
|
output: {
|
|
1240
|
-
|
|
1240
|
+
runId: string;
|
|
1241
1241
|
};
|
|
1242
1242
|
outputFormat: "json";
|
|
1243
|
-
status:
|
|
1243
|
+
status: 202;
|
|
1244
1244
|
input: {
|
|
1245
1245
|
param: {
|
|
1246
1246
|
id: string;
|
|
@@ -1248,10 +1248,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1248
1248
|
};
|
|
1249
1249
|
} | {
|
|
1250
1250
|
output: {
|
|
1251
|
-
|
|
1251
|
+
error: string;
|
|
1252
1252
|
};
|
|
1253
1253
|
outputFormat: "json";
|
|
1254
|
-
status:
|
|
1254
|
+
status: 400 | 404 | 409;
|
|
1255
1255
|
input: {
|
|
1256
1256
|
param: {
|
|
1257
1257
|
id: string;
|
|
@@ -1263,10 +1263,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1263
1263
|
"/automations/:id/check": {
|
|
1264
1264
|
$post: {
|
|
1265
1265
|
output: {
|
|
1266
|
-
|
|
1266
|
+
checkId: string;
|
|
1267
1267
|
};
|
|
1268
1268
|
outputFormat: "json";
|
|
1269
|
-
status:
|
|
1269
|
+
status: 202;
|
|
1270
1270
|
input: {
|
|
1271
1271
|
json: {
|
|
1272
1272
|
mode: "execute" | "preview";
|
|
@@ -1281,7 +1281,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1281
1281
|
error: string;
|
|
1282
1282
|
};
|
|
1283
1283
|
outputFormat: "json";
|
|
1284
|
-
status:
|
|
1284
|
+
status: 404;
|
|
1285
1285
|
input: {
|
|
1286
1286
|
json: {
|
|
1287
1287
|
mode: "execute" | "preview";
|
|
@@ -1293,10 +1293,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1293
1293
|
};
|
|
1294
1294
|
} | {
|
|
1295
1295
|
output: {
|
|
1296
|
-
|
|
1296
|
+
error: string;
|
|
1297
1297
|
};
|
|
1298
1298
|
outputFormat: "json";
|
|
1299
|
-
status:
|
|
1299
|
+
status: 409;
|
|
1300
1300
|
input: {
|
|
1301
1301
|
json: {
|
|
1302
1302
|
mode: "execute" | "preview";
|
|
@@ -1408,6 +1408,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1408
1408
|
automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
|
|
1409
1409
|
"/automation-checks/:checkId": {
|
|
1410
1410
|
$get: {
|
|
1411
|
+
output: {
|
|
1412
|
+
error: string;
|
|
1413
|
+
};
|
|
1414
|
+
outputFormat: "json";
|
|
1415
|
+
status: 404;
|
|
1416
|
+
input: {
|
|
1417
|
+
param: {
|
|
1418
|
+
checkId: string;
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
} | {
|
|
1411
1422
|
output: {
|
|
1412
1423
|
id: string;
|
|
1413
1424
|
automationId: string;
|
|
@@ -1426,17 +1437,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1426
1437
|
checkId: string;
|
|
1427
1438
|
};
|
|
1428
1439
|
};
|
|
1429
|
-
} | {
|
|
1430
|
-
output: {
|
|
1431
|
-
error: string;
|
|
1432
|
-
};
|
|
1433
|
-
outputFormat: "json";
|
|
1434
|
-
status: 404;
|
|
1435
|
-
input: {
|
|
1436
|
-
param: {
|
|
1437
|
-
checkId: string;
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
1440
|
};
|
|
1441
1441
|
};
|
|
1442
1442
|
}, "/", "/automation-checks/:checkId">;
|
|
@@ -102,7 +102,7 @@ Use cezar_automation to create, preview and enable repeating automations. Read i
|
|
|
102
102
|
- action "preview", id: preview a GitHub poll now without launching tasks or advancing its execution cursor. Preview the selected history window; enabling excludes older events by default. Set filters.includeExisting only when the user asks to include older matches within the configured lookback; receipts still prevent duplicate launches.
|
|
103
103
|
- action "enable", id, explicit: true: enable only when the user's own request explicitly asks for it to be switched on. A GitHub poll needs a successful preview of its current definition in this session first. Preview again after any edit.
|
|
104
104
|
|
|
105
|
-
When work must start much later (tomorrow, next week) as a new task, use cezar_schedule_task (at in UTC or delay) instead of keeping this session waiting on repeated timers; enable it only when the user asked for the work to run later. Use cezar_scheduled_tasks to list, show, update, pause, enable or cancel a one-time schedule.
|
|
105
|
+
When work must start much later (tomorrow, next week) as a new task, use cezar_schedule_task (at in UTC or delay) instead of keeping this session waiting on repeated timers; enable it only when the user asked for the work to run later. The task runs autonomous; pass autonomous: false only when its prompt needs the user's answers. Use cezar_scheduled_tasks to list, show, update, pause, enable or cancel a one-time schedule.
|
|
106
106
|
|
|
107
107
|
Completion controls are off by default. Use task.archiveWhenDone only when the user asks to archive completed tasks. Use task.autoMergePr only when the user asks to merge their PRs. Both act after Done; auto merge may mark a draft ready and still requires current-head CI and GitHub rules. With both on, merge before archive; without a PR, archive on Done. Changes affect future tasks only.
|
|
108
108
|
|
|
@@ -77,7 +77,10 @@ export function renderScheduleTask(definition, occurrence, context) {
|
|
|
77
77
|
const trigger = TRIGGER_TEXT[occurrence.trigger];
|
|
78
78
|
// An unknown zone falls back to the UTC wall time above, so label it UTC too.
|
|
79
79
|
const zone = parts ? timeZone : 'UTC';
|
|
80
|
-
|
|
80
|
+
const answers = definition.task.autonomous === true
|
|
81
|
+
? 'nobody is waiting to answer questions, so decide and report.'
|
|
82
|
+
: 'it is not autonomous, so ask the user when you need a decision; the task waits for the answer.';
|
|
83
|
+
return `${prompt}\n\n---\nScheduled run context\nautomation: ${values.automation}\nproject: ${values.project}\nscheduled for: ${date} ${time} ${zone}\ntrigger: ${trigger}\nThis task was started by an automation, not by a person: ${answers}\n---`;
|
|
81
84
|
}
|
|
82
85
|
async function resolveWorkflow(root, definition) {
|
|
83
86
|
if (definition.task.steps) {
|