@hearsay-tools/squawk 0.19.0-pr4549.9010 → 0.19.0-pr4552.9014
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/repo-routes.d.ts +13 -13
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +1180 -1180
- package/package.json +4 -4
|
@@ -220,18 +220,20 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
220
220
|
"/automations": {
|
|
221
221
|
$post: {
|
|
222
222
|
output: {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
error: string;
|
|
224
|
+
};
|
|
225
|
+
outputFormat: "json";
|
|
226
|
+
status: 400 | 404 | 409;
|
|
227
|
+
input: {
|
|
228
|
+
json: {
|
|
227
229
|
name: string;
|
|
228
230
|
description?: string | undefined;
|
|
229
|
-
enabled
|
|
230
|
-
kind
|
|
231
|
+
enabled?: boolean | undefined;
|
|
232
|
+
kind?: "github" | "schedule" | undefined;
|
|
231
233
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
232
234
|
intervalSeconds?: number | undefined;
|
|
233
235
|
filters?: {
|
|
234
|
-
[x: string]:
|
|
236
|
+
[x: string]: unknown;
|
|
235
237
|
includeExisting?: boolean | undefined;
|
|
236
238
|
requireCurrentLabels?: boolean | undefined;
|
|
237
239
|
authors?: string[] | undefined;
|
|
@@ -240,11 +242,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
240
242
|
anyLabels?: string[] | undefined;
|
|
241
243
|
excludeLabels?: string[] | undefined;
|
|
242
244
|
changedLabels?: string[] | undefined;
|
|
243
|
-
lookbackDays
|
|
244
|
-
maxRecords
|
|
245
|
+
lookbackDays?: number | undefined;
|
|
246
|
+
maxRecords?: number | undefined;
|
|
245
247
|
} | undefined;
|
|
246
248
|
schedule?: {
|
|
247
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
248
249
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
249
250
|
hour?: number | undefined;
|
|
250
251
|
minute?: number | undefined;
|
|
@@ -255,7 +256,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
255
256
|
latestStartMinutes?: number | undefined;
|
|
256
257
|
} | undefined;
|
|
257
258
|
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,53 +276,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
276
276
|
bashAllowlist?: string[] | undefined;
|
|
277
277
|
kind?: "plugin" | undefined;
|
|
278
278
|
pluginKind?: string | undefined;
|
|
279
|
-
config?:
|
|
280
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
281
|
-
} | undefined;
|
|
279
|
+
config?: Record<string, unknown> | undefined;
|
|
282
280
|
command?: string | undefined;
|
|
283
281
|
onFail?: {
|
|
284
282
|
retry: string;
|
|
285
|
-
max
|
|
283
|
+
max?: number | undefined;
|
|
286
284
|
} | undefined;
|
|
287
285
|
}[] | undefined;
|
|
288
286
|
runner?: string | undefined;
|
|
289
287
|
model?: string | undefined;
|
|
290
288
|
effort?: string | undefined;
|
|
291
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
292
289
|
worktree?: boolean | undefined;
|
|
293
290
|
autonomous?: boolean | undefined;
|
|
294
291
|
systemPrompt?: string | undefined;
|
|
295
292
|
};
|
|
296
|
-
|
|
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;
|
|
293
|
+
enable?: boolean | undefined;
|
|
306
294
|
};
|
|
307
|
-
once?: {
|
|
308
|
-
dueAt: string;
|
|
309
|
-
timeZone: string;
|
|
310
|
-
resolvedInstant: string;
|
|
311
|
-
note: string;
|
|
312
|
-
} | undefined;
|
|
313
295
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
296
|
+
} | {
|
|
297
|
+
output: {
|
|
298
|
+
automation: {
|
|
299
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
300
|
+
id: string;
|
|
301
|
+
revision: number;
|
|
318
302
|
name: string;
|
|
319
303
|
description?: string | undefined;
|
|
320
|
-
enabled
|
|
321
|
-
kind
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
kind: "github" | "schedule";
|
|
322
306
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
323
307
|
intervalSeconds?: number | undefined;
|
|
324
308
|
filters?: {
|
|
325
|
-
[x: string]:
|
|
309
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
326
310
|
includeExisting?: boolean | undefined;
|
|
327
311
|
requireCurrentLabels?: boolean | undefined;
|
|
328
312
|
authors?: string[] | undefined;
|
|
@@ -331,10 +315,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
331
315
|
anyLabels?: string[] | undefined;
|
|
332
316
|
excludeLabels?: string[] | undefined;
|
|
333
317
|
changedLabels?: string[] | undefined;
|
|
334
|
-
lookbackDays
|
|
335
|
-
maxRecords
|
|
318
|
+
lookbackDays: number;
|
|
319
|
+
maxRecords: number;
|
|
336
320
|
} | undefined;
|
|
337
321
|
schedule?: {
|
|
322
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
338
323
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
339
324
|
hour?: number | undefined;
|
|
340
325
|
minute?: number | undefined;
|
|
@@ -345,6 +330,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
345
330
|
latestStartMinutes?: number | undefined;
|
|
346
331
|
} | undefined;
|
|
347
332
|
task: {
|
|
333
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
348
334
|
archiveWhenDone?: boolean | undefined;
|
|
349
335
|
autoMergePr?: boolean | undefined;
|
|
350
336
|
allowWorkers?: boolean | undefined;
|
|
@@ -365,29 +351,43 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
365
351
|
bashAllowlist?: string[] | undefined;
|
|
366
352
|
kind?: "plugin" | undefined;
|
|
367
353
|
pluginKind?: string | undefined;
|
|
368
|
-
config?:
|
|
354
|
+
config?: {
|
|
355
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
356
|
+
} | undefined;
|
|
369
357
|
command?: string | undefined;
|
|
370
358
|
onFail?: {
|
|
371
359
|
retry: string;
|
|
372
|
-
max
|
|
360
|
+
max: number;
|
|
373
361
|
} | undefined;
|
|
374
362
|
}[] | undefined;
|
|
375
363
|
runner?: string | undefined;
|
|
376
364
|
model?: string | undefined;
|
|
377
365
|
effort?: string | undefined;
|
|
366
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
378
367
|
worktree?: boolean | undefined;
|
|
379
368
|
autonomous?: boolean | undefined;
|
|
380
369
|
systemPrompt?: string | undefined;
|
|
381
370
|
};
|
|
382
|
-
|
|
371
|
+
archived?: {
|
|
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;
|
|
383
381
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
once?: {
|
|
383
|
+
dueAt: string;
|
|
384
|
+
timeZone: string;
|
|
385
|
+
resolvedInstant: string;
|
|
386
|
+
note: string;
|
|
387
|
+
} | undefined;
|
|
388
388
|
};
|
|
389
389
|
outputFormat: "json";
|
|
390
|
-
status:
|
|
390
|
+
status: 201;
|
|
391
391
|
input: {
|
|
392
392
|
json: {
|
|
393
393
|
name: string;
|
|
@@ -462,6 +462,17 @@ 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
|
+
} | {
|
|
465
476
|
output: {
|
|
466
477
|
automation: {
|
|
467
478
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -624,35 +635,26 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
624
635
|
id: string;
|
|
625
636
|
};
|
|
626
637
|
};
|
|
627
|
-
} | {
|
|
628
|
-
output: {
|
|
629
|
-
error: string;
|
|
630
|
-
};
|
|
631
|
-
outputFormat: "json";
|
|
632
|
-
status: 400 | 404 | 409;
|
|
633
|
-
input: {
|
|
634
|
-
param: {
|
|
635
|
-
id: string;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
638
|
};
|
|
639
639
|
};
|
|
640
640
|
} & {
|
|
641
641
|
"/automations/:id": {
|
|
642
642
|
$put: {
|
|
643
643
|
output: {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
error: string;
|
|
645
|
+
};
|
|
646
|
+
outputFormat: "json";
|
|
647
|
+
status: 400 | 404 | 409;
|
|
648
|
+
input: {
|
|
649
|
+
json: {
|
|
648
650
|
name: string;
|
|
649
651
|
description?: string | undefined;
|
|
650
|
-
enabled
|
|
651
|
-
kind
|
|
652
|
+
enabled?: boolean | undefined;
|
|
653
|
+
kind?: "github" | "schedule" | undefined;
|
|
652
654
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
653
655
|
intervalSeconds?: number | undefined;
|
|
654
656
|
filters?: {
|
|
655
|
-
[x: string]:
|
|
657
|
+
[x: string]: unknown;
|
|
656
658
|
includeExisting?: boolean | undefined;
|
|
657
659
|
requireCurrentLabels?: boolean | undefined;
|
|
658
660
|
authors?: string[] | undefined;
|
|
@@ -661,11 +663,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
661
663
|
anyLabels?: string[] | undefined;
|
|
662
664
|
excludeLabels?: string[] | undefined;
|
|
663
665
|
changedLabels?: string[] | undefined;
|
|
664
|
-
lookbackDays
|
|
665
|
-
maxRecords
|
|
666
|
+
lookbackDays?: number | undefined;
|
|
667
|
+
maxRecords?: number | undefined;
|
|
666
668
|
} | undefined;
|
|
667
669
|
schedule?: {
|
|
668
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
669
670
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
670
671
|
hour?: number | undefined;
|
|
671
672
|
minute?: number | undefined;
|
|
@@ -676,7 +677,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
676
677
|
latestStartMinutes?: number | undefined;
|
|
677
678
|
} | undefined;
|
|
678
679
|
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,47 +697,41 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
697
697
|
bashAllowlist?: string[] | undefined;
|
|
698
698
|
kind?: "plugin" | undefined;
|
|
699
699
|
pluginKind?: string | undefined;
|
|
700
|
-
config?:
|
|
701
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
702
|
-
} | undefined;
|
|
700
|
+
config?: Record<string, unknown> | undefined;
|
|
703
701
|
command?: string | undefined;
|
|
704
702
|
onFail?: {
|
|
705
703
|
retry: string;
|
|
706
|
-
max
|
|
704
|
+
max?: number | undefined;
|
|
707
705
|
} | undefined;
|
|
708
706
|
}[] | undefined;
|
|
709
707
|
runner?: string | undefined;
|
|
710
708
|
model?: string | undefined;
|
|
711
709
|
effort?: string | undefined;
|
|
712
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
713
710
|
worktree?: boolean | undefined;
|
|
714
711
|
autonomous?: boolean | undefined;
|
|
715
712
|
systemPrompt?: string | undefined;
|
|
716
713
|
};
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
receiptId?: string | undefined;
|
|
723
|
-
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
724
|
-
} | undefined;
|
|
725
|
-
createdAt: string;
|
|
726
|
-
updatedAt: string;
|
|
714
|
+
expectedRevision: number;
|
|
715
|
+
};
|
|
716
|
+
} & {
|
|
717
|
+
param: {
|
|
718
|
+
id: string;
|
|
727
719
|
};
|
|
728
720
|
};
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
721
|
+
} | {
|
|
722
|
+
output: {
|
|
723
|
+
automation: {
|
|
724
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
725
|
+
id: string;
|
|
726
|
+
revision: number;
|
|
733
727
|
name: string;
|
|
734
728
|
description?: string | undefined;
|
|
735
|
-
enabled
|
|
736
|
-
kind
|
|
729
|
+
enabled: boolean;
|
|
730
|
+
kind: "github" | "schedule";
|
|
737
731
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
738
732
|
intervalSeconds?: number | undefined;
|
|
739
733
|
filters?: {
|
|
740
|
-
[x: string]:
|
|
734
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
741
735
|
includeExisting?: boolean | undefined;
|
|
742
736
|
requireCurrentLabels?: boolean | undefined;
|
|
743
737
|
authors?: string[] | undefined;
|
|
@@ -746,10 +740,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
746
740
|
anyLabels?: string[] | undefined;
|
|
747
741
|
excludeLabels?: string[] | undefined;
|
|
748
742
|
changedLabels?: string[] | undefined;
|
|
749
|
-
lookbackDays
|
|
750
|
-
maxRecords
|
|
743
|
+
lookbackDays: number;
|
|
744
|
+
maxRecords: number;
|
|
751
745
|
} | undefined;
|
|
752
746
|
schedule?: {
|
|
747
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
753
748
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
754
749
|
hour?: number | undefined;
|
|
755
750
|
minute?: number | undefined;
|
|
@@ -760,6 +755,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
760
755
|
latestStartMinutes?: number | undefined;
|
|
761
756
|
} | undefined;
|
|
762
757
|
task: {
|
|
758
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
763
759
|
archiveWhenDone?: boolean | undefined;
|
|
764
760
|
autoMergePr?: boolean | undefined;
|
|
765
761
|
allowWorkers?: boolean | undefined;
|
|
@@ -780,33 +776,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
780
776
|
bashAllowlist?: string[] | undefined;
|
|
781
777
|
kind?: "plugin" | undefined;
|
|
782
778
|
pluginKind?: string | undefined;
|
|
783
|
-
config?:
|
|
779
|
+
config?: {
|
|
780
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
781
|
+
} | undefined;
|
|
784
782
|
command?: string | undefined;
|
|
785
783
|
onFail?: {
|
|
786
784
|
retry: string;
|
|
787
|
-
max
|
|
785
|
+
max: number;
|
|
788
786
|
} | undefined;
|
|
789
787
|
}[] | undefined;
|
|
790
788
|
runner?: string | undefined;
|
|
791
789
|
model?: string | undefined;
|
|
792
790
|
effort?: string | undefined;
|
|
791
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
793
792
|
worktree?: boolean | undefined;
|
|
794
793
|
autonomous?: boolean | undefined;
|
|
795
794
|
systemPrompt?: string | undefined;
|
|
796
795
|
};
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
796
|
+
archived?: {
|
|
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;
|
|
802
806
|
};
|
|
803
807
|
};
|
|
804
|
-
} | {
|
|
805
|
-
output: {
|
|
806
|
-
error: string;
|
|
807
|
-
};
|
|
808
808
|
outputFormat: "json";
|
|
809
|
-
status:
|
|
809
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
810
810
|
input: {
|
|
811
811
|
json: {
|
|
812
812
|
name: string;
|
|
@@ -909,6 +909,17 @@ 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
|
+
} | {
|
|
912
923
|
output: {
|
|
913
924
|
automation: {
|
|
914
925
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1002,7 +1013,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1002
1013
|
id: string;
|
|
1003
1014
|
};
|
|
1004
1015
|
};
|
|
1005
|
-
}
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
} & {
|
|
1019
|
+
"/automations/:id/pause": {
|
|
1020
|
+
$post: {
|
|
1006
1021
|
output: {
|
|
1007
1022
|
error: string;
|
|
1008
1023
|
};
|
|
@@ -1013,11 +1028,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1013
1028
|
id: string;
|
|
1014
1029
|
};
|
|
1015
1030
|
};
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
} & {
|
|
1019
|
-
"/automations/:id/pause": {
|
|
1020
|
-
$post: {
|
|
1031
|
+
} | {
|
|
1021
1032
|
output: {
|
|
1022
1033
|
automation: {
|
|
1023
1034
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1111,7 +1122,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1111
1122
|
id: string;
|
|
1112
1123
|
};
|
|
1113
1124
|
};
|
|
1114
|
-
}
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
} & {
|
|
1128
|
+
"/automations/:id/cancel": {
|
|
1129
|
+
$post: {
|
|
1115
1130
|
output: {
|
|
1116
1131
|
error: string;
|
|
1117
1132
|
};
|
|
@@ -1122,11 +1137,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1122
1137
|
id: string;
|
|
1123
1138
|
};
|
|
1124
1139
|
};
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
|
-
} & {
|
|
1128
|
-
"/automations/:id/cancel": {
|
|
1129
|
-
$post: {
|
|
1140
|
+
} | {
|
|
1130
1141
|
output: {
|
|
1131
1142
|
automation: {
|
|
1132
1143
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1220,27 +1231,16 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1220
1231
|
id: string;
|
|
1221
1232
|
};
|
|
1222
1233
|
};
|
|
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
|
+
error: string;
|
|
1241
1241
|
};
|
|
1242
1242
|
outputFormat: "json";
|
|
1243
|
-
status:
|
|
1243
|
+
status: 400 | 404 | 409;
|
|
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
|
+
runId: string;
|
|
1252
1252
|
};
|
|
1253
1253
|
outputFormat: "json";
|
|
1254
|
-
status:
|
|
1254
|
+
status: 202;
|
|
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
|
+
error: string;
|
|
1267
1267
|
};
|
|
1268
1268
|
outputFormat: "json";
|
|
1269
|
-
status:
|
|
1269
|
+
status: 404;
|
|
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: 409;
|
|
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
|
+
checkId: string;
|
|
1297
1297
|
};
|
|
1298
1298
|
outputFormat: "json";
|
|
1299
|
-
status:
|
|
1299
|
+
status: 202;
|
|
1300
1300
|
input: {
|
|
1301
1301
|
json: {
|
|
1302
1302
|
mode: "execute" | "preview";
|
|
@@ -1408,17 +1408,6 @@ 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
|
-
} | {
|
|
1422
1411
|
output: {
|
|
1423
1412
|
id: string;
|
|
1424
1413
|
automationId: string;
|
|
@@ -1437,6 +1426,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1437
1426
|
checkId: string;
|
|
1438
1427
|
};
|
|
1439
1428
|
};
|
|
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) {
|