toolroll 0.9.85 → 0.9.86
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/CHANGELOG.md +24 -0
- package/dist/agent-fence.d.ts +6 -2
- package/dist/agent-fence.js +3 -2
- package/dist/assignment.js +4 -3
- package/dist/browser/workspace.css +1 -1
- package/dist/browser/workspace.js +31 -29
- package/dist/browser-workspace.d.ts +40 -0
- package/dist/chat-actions.d.ts +11 -1
- package/dist/chat-actions.js +53 -1
- package/dist/chat-channel.js +1 -0
- package/dist/chat-quiet.js +3 -2
- package/dist/claim.d.ts +3 -0
- package/dist/claim.js +4 -1
- package/dist/contracts/chat-actions.d.ts +9 -0
- package/dist/contracts/chat-actions.js +3 -0
- package/dist/contracts/console-api.d.ts +4 -1
- package/dist/contracts/console-api.js +4 -1
- package/dist/contracts/flow-propose.d.ts +4 -1
- package/dist/contracts/flow-propose.js +1 -1
- package/dist/contracts/flow.d.ts +41 -0
- package/dist/contracts/flow.js +4 -2
- package/dist/contracts/lead-tools.d.ts +21 -0
- package/dist/contracts/lead-tools.js +2 -0
- package/dist/contracts/store-json.d.ts +2 -0
- package/dist/contracts/trigger-payloads.d.ts +20 -0
- package/dist/contracts/trigger-payloads.js +4 -0
- package/dist/coordinator.js +1 -0
- package/dist/deploy-gate.js +4 -0
- package/dist/dispatch.d.ts +3 -0
- package/dist/dispatch.js +4 -1
- package/dist/flow-browser.d.ts +103 -0
- package/dist/flow-browser.js +204 -0
- package/dist/flow-code.d.ts +5 -1
- package/dist/flow-code.js +4 -1
- package/dist/flow-engine.js +16 -0
- package/dist/flow-live.js +9 -1
- package/dist/flow-pull-request.js +15 -7
- package/dist/flow-share.js +3 -1
- package/dist/flow-steps.d.ts +9 -1
- package/dist/flow-steps.js +55 -5
- package/dist/flow-triggers.js +55 -0
- package/dist/flows-cli.d.ts +19 -0
- package/dist/flows-cli.js +47 -2
- package/dist/flows-ui.js +11 -2
- package/dist/flows.js +5 -2
- package/dist/lead-tools.js +35 -6
- package/dist/lead-voice.js +16 -5
- package/dist/operate.d.ts +1 -1
- package/dist/operate.js +215 -6
- package/dist/project-delete.js +7 -3
- package/dist/pull-request-flow.js +35 -4
- package/dist/result-follow-ups.js +4 -0
- package/dist/scope.d.ts +5 -0
- package/dist/scope.js +7 -0
- package/dist/server/chat.js +4 -2
- package/dist/server/console.css +29 -0
- package/dist/server/flows.js +15 -0
- package/dist/server/render-pages.d.ts +13 -0
- package/dist/server/render-pages.js +45 -2
- package/dist/server/render-tasks.d.ts +8 -0
- package/dist/server/render-tasks.js +17 -6
- package/dist/server/route-table.js +11 -0
- package/dist/server/task-views.js +5 -0
- package/dist/server/tasks.d.ts +10 -0
- package/dist/server/tasks.js +54 -2
- package/dist/settings-proofs.js +1 -0
- package/dist/store.d.ts +71 -3
- package/dist/store.js +222 -20
- package/dist/surface.js +18 -2
- package/dist/task-archive.d.ts +10 -0
- package/dist/task-archive.js +16 -0
- package/dist/task-control.d.ts +1 -1
- package/dist/tidy.d.ts +130 -0
- package/dist/tidy.js +503 -0
- package/dist/work-index.d.ts +24 -0
- package/dist/work-index.js +52 -30
- package/dist/workspace-ui.d.ts +1 -1
- package/dist/workspace-ui.js +3 -2
- package/package.json +1 -1
package/dist/contracts/flow.d.ts
CHANGED
|
@@ -332,6 +332,7 @@ export declare const flowDefinitionSchema: z.ZodObject<{
|
|
|
332
332
|
to: z.ZodString;
|
|
333
333
|
}, z.core.$strict>>>;
|
|
334
334
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
335
|
+
browser: z.ZodOptional<z.ZodLiteral<true>>;
|
|
335
336
|
sort: z.ZodNull;
|
|
336
337
|
limit: z.ZodOptional<z.ZodObject<{
|
|
337
338
|
minutes: z.ZodInt;
|
|
@@ -971,6 +972,7 @@ export declare const savedFlowDefinitionSchema: z.ZodObject<{
|
|
|
971
972
|
to: z.ZodString;
|
|
972
973
|
}, z.core.$strict>>>;
|
|
973
974
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
975
|
+
browser: z.ZodOptional<z.ZodLiteral<true>>;
|
|
974
976
|
sort: z.ZodNull;
|
|
975
977
|
limit: z.ZodOptional<z.ZodObject<{
|
|
976
978
|
minutes: z.ZodInt;
|
|
@@ -1606,6 +1608,7 @@ export declare const flowStageSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObj
|
|
|
1606
1608
|
to: z.ZodString;
|
|
1607
1609
|
}, z.core.$strict>>>;
|
|
1608
1610
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1611
|
+
browser: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1609
1612
|
sort: z.ZodNull;
|
|
1610
1613
|
limit: z.ZodOptional<z.ZodObject<{
|
|
1611
1614
|
minutes: z.ZodInt;
|
|
@@ -2180,6 +2183,7 @@ export declare const flowStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObje
|
|
|
2180
2183
|
id: z.ZodOptional<z.ZodString>;
|
|
2181
2184
|
title: z.ZodString;
|
|
2182
2185
|
kind: z.ZodLiteral<"check">;
|
|
2186
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
2183
2187
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
2184
2188
|
next: z.ZodOptional<z.ZodString>;
|
|
2185
2189
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -2391,6 +2395,7 @@ export declare const flowStepsSchema: z.ZodObject<{
|
|
|
2391
2395
|
id: z.ZodOptional<z.ZodString>;
|
|
2392
2396
|
title: z.ZodString;
|
|
2393
2397
|
kind: z.ZodLiteral<"check">;
|
|
2398
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
2394
2399
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
2395
2400
|
next: z.ZodOptional<z.ZodString>;
|
|
2396
2401
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -2669,6 +2674,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2669
2674
|
violet: "violet";
|
|
2670
2675
|
}>>;
|
|
2671
2676
|
}, z.core.$strict>>;
|
|
2677
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
2672
2678
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
2673
2679
|
next: z.ZodOptional<z.ZodString>;
|
|
2674
2680
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -3126,6 +3132,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3126
3132
|
violet: "violet";
|
|
3127
3133
|
}>>;
|
|
3128
3134
|
}, z.core.$strict>>;
|
|
3135
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
3129
3136
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
3130
3137
|
next: z.ZodOptional<z.ZodString>;
|
|
3131
3138
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -3583,6 +3590,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3583
3590
|
violet: "violet";
|
|
3584
3591
|
}>>;
|
|
3585
3592
|
}, z.core.$strict>>;
|
|
3593
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
3586
3594
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
3587
3595
|
next: z.ZodOptional<z.ZodString>;
|
|
3588
3596
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -4040,6 +4048,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4040
4048
|
violet: "violet";
|
|
4041
4049
|
}>>;
|
|
4042
4050
|
}, z.core.$strict>>;
|
|
4051
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
4043
4052
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
4044
4053
|
next: z.ZodOptional<z.ZodString>;
|
|
4045
4054
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -4497,6 +4506,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4497
4506
|
violet: "violet";
|
|
4498
4507
|
}>>;
|
|
4499
4508
|
}, z.core.$strict>>;
|
|
4509
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
4500
4510
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
4501
4511
|
next: z.ZodOptional<z.ZodString>;
|
|
4502
4512
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -4954,6 +4964,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4954
4964
|
violet: "violet";
|
|
4955
4965
|
}>>;
|
|
4956
4966
|
}, z.core.$strict>>;
|
|
4967
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
4957
4968
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
4958
4969
|
next: z.ZodOptional<z.ZodString>;
|
|
4959
4970
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -5411,6 +5422,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5411
5422
|
violet: "violet";
|
|
5412
5423
|
}>>;
|
|
5413
5424
|
}, z.core.$strict>>;
|
|
5425
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
5414
5426
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
5415
5427
|
next: z.ZodOptional<z.ZodString>;
|
|
5416
5428
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -5868,6 +5880,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5868
5880
|
violet: "violet";
|
|
5869
5881
|
}>>;
|
|
5870
5882
|
}, z.core.$strict>>;
|
|
5883
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
5871
5884
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
5872
5885
|
next: z.ZodOptional<z.ZodString>;
|
|
5873
5886
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -6325,6 +6338,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6325
6338
|
violet: "violet";
|
|
6326
6339
|
}>>;
|
|
6327
6340
|
}, z.core.$strict>>;
|
|
6341
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
6328
6342
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
6329
6343
|
next: z.ZodOptional<z.ZodString>;
|
|
6330
6344
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -6782,6 +6796,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6782
6796
|
violet: "violet";
|
|
6783
6797
|
}>>;
|
|
6784
6798
|
}, z.core.$strict>>;
|
|
6799
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
6785
6800
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
6786
6801
|
next: z.ZodOptional<z.ZodString>;
|
|
6787
6802
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -7239,6 +7254,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7239
7254
|
violet: "violet";
|
|
7240
7255
|
}>>;
|
|
7241
7256
|
}, z.core.$strict>>;
|
|
7257
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
7242
7258
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
7243
7259
|
next: z.ZodOptional<z.ZodString>;
|
|
7244
7260
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -7696,6 +7712,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7696
7712
|
violet: "violet";
|
|
7697
7713
|
}>>;
|
|
7698
7714
|
}, z.core.$strict>>;
|
|
7715
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
7699
7716
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
7700
7717
|
next: z.ZodOptional<z.ZodString>;
|
|
7701
7718
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -8153,6 +8170,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8153
8170
|
violet: "violet";
|
|
8154
8171
|
}>>;
|
|
8155
8172
|
}, z.core.$strict>>;
|
|
8173
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
8156
8174
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
8157
8175
|
next: z.ZodOptional<z.ZodString>;
|
|
8158
8176
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -8610,6 +8628,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8610
8628
|
violet: "violet";
|
|
8611
8629
|
}>>;
|
|
8612
8630
|
}, z.core.$strict>>;
|
|
8631
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
8613
8632
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
8614
8633
|
next: z.ZodOptional<z.ZodString>;
|
|
8615
8634
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -9067,6 +9086,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9067
9086
|
violet: "violet";
|
|
9068
9087
|
}>>;
|
|
9069
9088
|
}, z.core.$strict>>;
|
|
9089
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
9070
9090
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
9071
9091
|
next: z.ZodOptional<z.ZodString>;
|
|
9072
9092
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -9524,6 +9544,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9524
9544
|
violet: "violet";
|
|
9525
9545
|
}>>;
|
|
9526
9546
|
}, z.core.$strict>>;
|
|
9547
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
9527
9548
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
9528
9549
|
next: z.ZodOptional<z.ZodString>;
|
|
9529
9550
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -9981,6 +10002,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9981
10002
|
violet: "violet";
|
|
9982
10003
|
}>>;
|
|
9983
10004
|
}, z.core.$strict>>;
|
|
10005
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
9984
10006
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
9985
10007
|
next: z.ZodOptional<z.ZodString>;
|
|
9986
10008
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -10438,6 +10460,7 @@ export declare const flowFileZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10438
10460
|
violet: "violet";
|
|
10439
10461
|
}>>;
|
|
10440
10462
|
}, z.core.$strict>>;
|
|
10463
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
10441
10464
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
10442
10465
|
next: z.ZodOptional<z.ZodString>;
|
|
10443
10466
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -11302,6 +11325,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
11302
11325
|
violet: "violet";
|
|
11303
11326
|
}>>;
|
|
11304
11327
|
}, z.core.$strict>>;
|
|
11328
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
11305
11329
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
11306
11330
|
next: z.ZodOptional<z.ZodString>;
|
|
11307
11331
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -11759,6 +11783,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
11759
11783
|
violet: "violet";
|
|
11760
11784
|
}>>;
|
|
11761
11785
|
}, z.core.$strict>>;
|
|
11786
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
11762
11787
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
11763
11788
|
next: z.ZodOptional<z.ZodString>;
|
|
11764
11789
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -12216,6 +12241,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
12216
12241
|
violet: "violet";
|
|
12217
12242
|
}>>;
|
|
12218
12243
|
}, z.core.$strict>>;
|
|
12244
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
12219
12245
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
12220
12246
|
next: z.ZodOptional<z.ZodString>;
|
|
12221
12247
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -12673,6 +12699,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
12673
12699
|
violet: "violet";
|
|
12674
12700
|
}>>;
|
|
12675
12701
|
}, z.core.$strict>>;
|
|
12702
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
12676
12703
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
12677
12704
|
next: z.ZodOptional<z.ZodString>;
|
|
12678
12705
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -13130,6 +13157,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
13130
13157
|
violet: "violet";
|
|
13131
13158
|
}>>;
|
|
13132
13159
|
}, z.core.$strict>>;
|
|
13160
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
13133
13161
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
13134
13162
|
next: z.ZodOptional<z.ZodString>;
|
|
13135
13163
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -13587,6 +13615,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
13587
13615
|
violet: "violet";
|
|
13588
13616
|
}>>;
|
|
13589
13617
|
}, z.core.$strict>>;
|
|
13618
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
13590
13619
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
13591
13620
|
next: z.ZodOptional<z.ZodString>;
|
|
13592
13621
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -14044,6 +14073,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
14044
14073
|
violet: "violet";
|
|
14045
14074
|
}>>;
|
|
14046
14075
|
}, z.core.$strict>>;
|
|
14076
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
14047
14077
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
14048
14078
|
next: z.ZodOptional<z.ZodString>;
|
|
14049
14079
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -14501,6 +14531,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
14501
14531
|
violet: "violet";
|
|
14502
14532
|
}>>;
|
|
14503
14533
|
}, z.core.$strict>>;
|
|
14534
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
14504
14535
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
14505
14536
|
next: z.ZodOptional<z.ZodString>;
|
|
14506
14537
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -14958,6 +14989,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
14958
14989
|
violet: "violet";
|
|
14959
14990
|
}>>;
|
|
14960
14991
|
}, z.core.$strict>>;
|
|
14992
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
14961
14993
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
14962
14994
|
next: z.ZodOptional<z.ZodString>;
|
|
14963
14995
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -15415,6 +15447,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
15415
15447
|
violet: "violet";
|
|
15416
15448
|
}>>;
|
|
15417
15449
|
}, z.core.$strict>>;
|
|
15450
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
15418
15451
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
15419
15452
|
next: z.ZodOptional<z.ZodString>;
|
|
15420
15453
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -15872,6 +15905,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
15872
15905
|
violet: "violet";
|
|
15873
15906
|
}>>;
|
|
15874
15907
|
}, z.core.$strict>>;
|
|
15908
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
15875
15909
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
15876
15910
|
next: z.ZodOptional<z.ZodString>;
|
|
15877
15911
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -16329,6 +16363,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
16329
16363
|
violet: "violet";
|
|
16330
16364
|
}>>;
|
|
16331
16365
|
}, z.core.$strict>>;
|
|
16366
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
16332
16367
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
16333
16368
|
next: z.ZodOptional<z.ZodString>;
|
|
16334
16369
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -16786,6 +16821,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
16786
16821
|
violet: "violet";
|
|
16787
16822
|
}>>;
|
|
16788
16823
|
}, z.core.$strict>>;
|
|
16824
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
16789
16825
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
16790
16826
|
next: z.ZodOptional<z.ZodString>;
|
|
16791
16827
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -17243,6 +17279,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
17243
17279
|
violet: "violet";
|
|
17244
17280
|
}>>;
|
|
17245
17281
|
}, z.core.$strict>>;
|
|
17282
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
17246
17283
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
17247
17284
|
next: z.ZodOptional<z.ZodString>;
|
|
17248
17285
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -17700,6 +17737,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
17700
17737
|
violet: "violet";
|
|
17701
17738
|
}>>;
|
|
17702
17739
|
}, z.core.$strict>>;
|
|
17740
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
17703
17741
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
17704
17742
|
next: z.ZodOptional<z.ZodString>;
|
|
17705
17743
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -18157,6 +18195,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
18157
18195
|
violet: "violet";
|
|
18158
18196
|
}>>;
|
|
18159
18197
|
}, z.core.$strict>>;
|
|
18198
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
18160
18199
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
18161
18200
|
next: z.ZodOptional<z.ZodString>;
|
|
18162
18201
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -18614,6 +18653,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
18614
18653
|
violet: "violet";
|
|
18615
18654
|
}>>;
|
|
18616
18655
|
}, z.core.$strict>>;
|
|
18656
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
18617
18657
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
18618
18658
|
next: z.ZodOptional<z.ZodString>;
|
|
18619
18659
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -19071,6 +19111,7 @@ export declare const flowFileSchema: z.ZodObject<{
|
|
|
19071
19111
|
violet: "violet";
|
|
19072
19112
|
}>>;
|
|
19073
19113
|
}, z.core.$strict>>;
|
|
19114
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
19074
19115
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
19075
19116
|
next: z.ZodOptional<z.ZodString>;
|
|
19076
19117
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
package/dist/contracts/flow.js
CHANGED
|
@@ -128,7 +128,7 @@ function zoneSchemas(instructions) {
|
|
|
128
128
|
z.strictObject({ id, title, kind: z.literal("task"), zone, instructions: text, planning: z.enum(FLOW_PLANNING), approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, repo: words("repo", "flowRepo").min(1).optional(), limit: remind, next, onFail }),
|
|
129
129
|
z.strictObject({ id, title, kind: z.literal("report"), zone, instructions: text, planning: nil, approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, limit: remind, next, onFail }),
|
|
130
130
|
z.strictObject({ id, title, kind: z.literal("approval"), zone, instructions: said, planning: nil, approver: words("approver", "flowDecider").min(1).nullable(), toOwner: z.literal(true).optional(), message: message.nullable(), close: nil, script: nil, sort: nil, subagent: zoneId.optional(), limit: move, next, onFail }),
|
|
131
|
-
z.strictObject({ id, title, kind: z.literal("check"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: scriptName, runIn: z.enum(FLOW_RUN_IN).optional(), routes, secrets: z.array(secretName).min(1).max(SECRETS_MAX).optional(), sort: nil, limit: remind, next, onFail }),
|
|
131
|
+
z.strictObject({ id, title, kind: z.literal("check"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: scriptName, runIn: z.enum(FLOW_RUN_IN).optional(), routes, secrets: z.array(secretName).min(1).max(SECRETS_MAX).optional(), browser: z.literal(true).optional(), sort: nil, limit: remind, next, onFail }),
|
|
132
132
|
z.strictObject({ id, title, kind: z.literal("pull-request"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: nil, script: nil, sort: nil, merge: z.enum(FLOW_MERGE_METHODS).optional(), limit: remind, next, onFail }),
|
|
133
133
|
z.strictObject({ id, title, kind: z.literal("update"), zone, instructions: said, planning: nil, approver: nil, message: message.nullable(), close: z.boolean(), script: nil, sort: nil, limit: remind, next, onFail }),
|
|
134
134
|
z.strictObject({ id, title, kind: z.literal("notify"), zone, instructions: said, planning: nil, approver: nil, message, close: nil, script: nil, sort: nil, limit: remind, next, onFail }),
|
|
@@ -184,6 +184,8 @@ const STEP_FIELDS = {
|
|
|
184
184
|
runIn: z.enum(FLOW_RUN_IN),
|
|
185
185
|
routes: z.array(flowStepRouteSchema).max(ROUTES_MAX),
|
|
186
186
|
secrets: z.array(secretName).max(SECRETS_MAX),
|
|
187
|
+
/** check: the script starts a browser (Playwright's Chromium); it runs only once a person approves browser use for the flow (flow-browser.ts). */
|
|
188
|
+
browser: z.boolean(),
|
|
187
189
|
question: short("flowSortQuestion"),
|
|
188
190
|
answers: z.array(flowStepAnswerSchema).min(SORT_ANSWERS_MIN).max(SORT_ANSWERS_MAX),
|
|
189
191
|
/** A percentage (80) or a fraction (0.8). */
|
|
@@ -230,7 +232,7 @@ const STEP_KINDS = {
|
|
|
230
232
|
task: ["instructions", "planning", "repo", "next", "ifFails", "remindAfter"],
|
|
231
233
|
report: ["instructions", "next", "ifFails", "remindAfter"],
|
|
232
234
|
approval: ["decider", "subagent", "next", "ifFails", "remindAfter", "thenMoveTo"],
|
|
233
|
-
check: ["script", "runIn", "routes", "secrets", "next", "ifFails", "remindAfter"],
|
|
235
|
+
check: ["script", "runIn", "routes", "secrets", "browser", "next", "ifFails", "remindAfter"],
|
|
234
236
|
"pull-request": ["merge", "next", "ifFails", "remindAfter"],
|
|
235
237
|
update: ["message", "close", "next", "ifFails", "remindAfter"],
|
|
236
238
|
notify: ["message", "next", "ifFails", "remindAfter"],
|
|
@@ -155,6 +155,7 @@ export declare const LEAD_TOOL_INPUTS: {
|
|
|
155
155
|
operation: z.ZodEnum<{
|
|
156
156
|
add_card: "add_card";
|
|
157
157
|
add_trigger: "add_trigger";
|
|
158
|
+
allow_browser: "allow_browser";
|
|
158
159
|
approve: "approve";
|
|
159
160
|
assign: "assign";
|
|
160
161
|
cancel_card: "cancel_card";
|
|
@@ -171,6 +172,7 @@ export declare const LEAD_TOOL_INPUTS: {
|
|
|
171
172
|
save_script: "save_script";
|
|
172
173
|
send_back: "send_back";
|
|
173
174
|
starter: "starter";
|
|
175
|
+
turn_off_browser: "turn_off_browser";
|
|
174
176
|
unfollow: "unfollow";
|
|
175
177
|
}>;
|
|
176
178
|
repo: z.ZodOptional<z.ZodString>;
|
|
@@ -233,6 +235,7 @@ export declare const LEAD_TOOL_INPUTS: {
|
|
|
233
235
|
id: z.ZodOptional<z.ZodString>;
|
|
234
236
|
title: z.ZodString;
|
|
235
237
|
kind: z.ZodLiteral<"check">;
|
|
238
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
236
239
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
237
240
|
next: z.ZodOptional<z.ZodString>;
|
|
238
241
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -610,6 +613,9 @@ export declare const LEAD_TOOL_INPUTS: {
|
|
|
610
613
|
limit: z.ZodOptional<z.ZodInt>;
|
|
611
614
|
search: z.ZodOptional<z.ZodString>;
|
|
612
615
|
}, z.core.$strict>;
|
|
616
|
+
readonly tidy_preview: z.ZodObject<{
|
|
617
|
+
days: z.ZodOptional<z.ZodInt>;
|
|
618
|
+
}, z.core.$strict>;
|
|
613
619
|
readonly get_task: z.ZodObject<{
|
|
614
620
|
task: z.ZodString;
|
|
615
621
|
}, z.core.$strict>;
|
|
@@ -886,6 +892,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
|
|
|
886
892
|
operation: z.ZodEnum<{
|
|
887
893
|
add_card: "add_card";
|
|
888
894
|
add_trigger: "add_trigger";
|
|
895
|
+
allow_browser: "allow_browser";
|
|
889
896
|
approve: "approve";
|
|
890
897
|
assign: "assign";
|
|
891
898
|
cancel_card: "cancel_card";
|
|
@@ -902,6 +909,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
|
|
|
902
909
|
save_script: "save_script";
|
|
903
910
|
send_back: "send_back";
|
|
904
911
|
starter: "starter";
|
|
912
|
+
turn_off_browser: "turn_off_browser";
|
|
905
913
|
unfollow: "unfollow";
|
|
906
914
|
}>;
|
|
907
915
|
repo: z.ZodOptional<z.ZodString>;
|
|
@@ -964,6 +972,7 @@ export declare const LEAD_TOOL_READ_INPUTS: {
|
|
|
964
972
|
id: z.ZodOptional<z.ZodString>;
|
|
965
973
|
title: z.ZodString;
|
|
966
974
|
kind: z.ZodLiteral<"check">;
|
|
975
|
+
browser: z.ZodOptional<z.ZodBoolean>;
|
|
967
976
|
ifFails: z.ZodOptional<z.ZodString>;
|
|
968
977
|
next: z.ZodOptional<z.ZodString>;
|
|
969
978
|
remindAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
@@ -1314,6 +1323,9 @@ export declare const LEAD_TOOL_READ_INPUTS: {
|
|
|
1314
1323
|
repo: z.ZodOptional<z.ZodString>;
|
|
1315
1324
|
}, z.core.$strict>;
|
|
1316
1325
|
readonly get_models: z.ZodObject<{}, z.core.$strict>;
|
|
1326
|
+
readonly tidy_preview: z.ZodObject<{
|
|
1327
|
+
days: z.ZodOptional<z.ZodInt>;
|
|
1328
|
+
}, z.core.$strict>;
|
|
1317
1329
|
readonly get_task: z.ZodObject<{
|
|
1318
1330
|
task: z.ZodString;
|
|
1319
1331
|
}, z.core.$strict>;
|
|
@@ -1892,6 +1904,15 @@ export declare const LEAD_TOOL_OUTPUTS: {
|
|
|
1892
1904
|
}, z.core.$loose>>;
|
|
1893
1905
|
truncated: z.ZodBoolean;
|
|
1894
1906
|
}, z.core.$loose>;
|
|
1907
|
+
readonly tidy_preview: z.ZodObject<{
|
|
1908
|
+
count: z.ZodNumber;
|
|
1909
|
+
days: z.ZodNumber;
|
|
1910
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
1911
|
+
label: z.ZodString;
|
|
1912
|
+
}, z.core.$loose>>;
|
|
1913
|
+
digest: z.ZodString;
|
|
1914
|
+
apply: z.ZodString;
|
|
1915
|
+
}, z.core.$loose>;
|
|
1895
1916
|
readonly get_task: z.ZodObject<{
|
|
1896
1917
|
repo: z.ZodString;
|
|
1897
1918
|
task: z.ZodString;
|
|
@@ -118,6 +118,7 @@ export const LEAD_TOOL_INPUTS = {
|
|
|
118
118
|
search_project_memory: z.strictObject({ query: text("memorySearch").min(2), repo: repoId.optional() }),
|
|
119
119
|
get_models: z.strictObject({}),
|
|
120
120
|
list_tasks: z.strictObject({ repo: repoId.optional(), state: z.enum(LISTED_TASK_STATES).optional(), limit: z.int().min(1).max(50).optional(), search: text("taskSearch").optional() }),
|
|
121
|
+
tidy_preview: z.strictObject({ days: z.int().min(1).max(365).optional() }),
|
|
121
122
|
get_task: z.strictObject({ task: taskRef }),
|
|
122
123
|
get_agents: z.strictObject({ task: taskRef }),
|
|
123
124
|
list_decisions: z.strictObject({}),
|
|
@@ -251,6 +252,7 @@ export const LEAD_TOOL_OUTPUTS = {
|
|
|
251
252
|
search_project_memory: z.looseObject({ hits: list, notice: str }),
|
|
252
253
|
get_models: z.looseObject({ roles: rows({ role: str }), tools: list, newModels: list, change: str }),
|
|
253
254
|
list_tasks: z.looseObject({ tasks: rows({ repo: str, task: str, execution: str, title: str, state: str, ageHours: z.number(), strikes: int }), truncated: z.boolean() }),
|
|
255
|
+
tidy_preview: z.looseObject({ count: int, days: int, groups: rows({ label: str }), digest: str, apply: str }),
|
|
254
256
|
get_task: z.looseObject({
|
|
255
257
|
repo: str, task: str, root: str, currentExecution: str, title: str, state: str, deliverable: str, scope: str,
|
|
256
258
|
queue: nullable(z.looseObject({ position: int, of: int, column: str })), holds: list, attempts: int, decisionsOpen: int, dependencies: list,
|
|
@@ -168,6 +168,8 @@ declare const STORE_COLUMN_VALUES: {
|
|
|
168
168
|
operation: z.ZodEnum<{
|
|
169
169
|
decision_record: "decision_record";
|
|
170
170
|
decision_retire: "decision_retire";
|
|
171
|
+
flow_browser: "flow_browser";
|
|
172
|
+
flow_browser_off: "flow_browser_off";
|
|
171
173
|
flow_card_add: "flow_card_add";
|
|
172
174
|
flow_card_approve: "flow_card_approve";
|
|
173
175
|
flow_card_assign: "flow_card_assign";
|
|
@@ -45,6 +45,11 @@ export declare const githubRunSchema: z.ZodCatch<z.ZodObject<{
|
|
|
45
45
|
display_title: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
46
46
|
created_at: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
47
47
|
html_url: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
49
|
+
event: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
50
|
+
head_repository: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
51
|
+
full_name: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
48
53
|
}, z.core.$strip>>;
|
|
49
54
|
/** `repos/:repo/issues` and `repos/:repo/pulls`: a list (anything else reads as an empty one). */
|
|
50
55
|
export declare const githubIssueListSchema: z.ZodCatch<z.ZodArray<z.ZodCatch<z.ZodObject<{
|
|
@@ -111,6 +116,11 @@ export declare const githubRunListSchema: z.ZodCatch<z.ZodObject<{
|
|
|
111
116
|
display_title: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
112
117
|
created_at: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
113
118
|
html_url: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
119
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
120
|
+
event: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
121
|
+
head_repository: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
122
|
+
full_name: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
114
124
|
}, z.core.$strip>>>>>;
|
|
115
125
|
}, z.core.$strip>>;
|
|
116
126
|
/** A signed GitHub webhook event (`issues`, `pull_request`, `workflow_run`; a `ping` reads as an empty one). */
|
|
@@ -176,6 +186,11 @@ export declare const githubEventSchema: z.ZodCatch<z.ZodObject<{
|
|
|
176
186
|
display_title: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
177
187
|
created_at: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
178
188
|
html_url: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
189
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
190
|
+
event: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
head_repository: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
192
|
+
full_name: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
179
194
|
}, z.core.$strip>>>;
|
|
180
195
|
}, z.core.$strip>>;
|
|
181
196
|
/** A Linear issue, from the GraphQL query (`labels { nodes }`) or a webhook's `data` (`labels` as a list). */
|
|
@@ -353,6 +368,11 @@ export declare const readGithubRunList: (raw: unknown) => {
|
|
|
353
368
|
display_title?: string | undefined;
|
|
354
369
|
created_at?: string | undefined;
|
|
355
370
|
html_url?: string | undefined;
|
|
371
|
+
id?: number | undefined;
|
|
372
|
+
event?: string | undefined;
|
|
373
|
+
head_repository?: {
|
|
374
|
+
full_name?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
356
376
|
}[] | undefined;
|
|
357
377
|
};
|
|
358
378
|
export declare const readGithubEvent: (raw: unknown) => GithubEvent;
|
|
@@ -42,6 +42,10 @@ export const githubRunSchema = z.object({
|
|
|
42
42
|
display_title: text,
|
|
43
43
|
created_at: text,
|
|
44
44
|
html_url: text,
|
|
45
|
+
/** Read by tidy's CI observations (task-tidy.md): which run, why it ran, and whose repository its commit is in. */
|
|
46
|
+
id: loose(z.number()),
|
|
47
|
+
event: text,
|
|
48
|
+
head_repository: loose(z.object({ full_name: text })),
|
|
45
49
|
}).catch({});
|
|
46
50
|
/** `repos/:repo/issues` and `repos/:repo/pulls`: a list (anything else reads as an empty one). */
|
|
47
51
|
export const githubIssueListSchema = z.array(githubIssueSchema).catch([]);
|
package/dist/coordinator.js
CHANGED
|
@@ -326,6 +326,7 @@ export function listTasksFor(store, who, filter, now) {
|
|
|
326
326
|
FROM task_ref JOIN task ON task.id = task_ref.external_id AND task_ref.backend = 'built-in'
|
|
327
327
|
WHERE task_ref.repo IN (${sql})
|
|
328
328
|
AND (? IS NULL OR task.state = ?)
|
|
329
|
+
AND NOT EXISTS (SELECT 1 FROM task_archive WHERE task_archive.task_ref = task_ref.id)
|
|
329
330
|
AND task_ref.id > ?
|
|
330
331
|
ORDER BY task_ref.id LIMIT ?`)
|
|
331
332
|
.all(now.toISOString(), ...args, filter.state ?? null, filter.state ?? null, filter.cursor ?? 0, limit + 1);
|
package/dist/deploy-gate.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { assignmentOf } from "./assignment.js";
|
|
9
9
|
import { liveReleaseOf, personApprovalOf, releaseApprovalOf } from "./scope.js";
|
|
10
10
|
import { verificationEvidence } from "./verification-evidence.js";
|
|
11
|
+
import { refArchived } from "./task-archive.js";
|
|
11
12
|
import { releaseCiRunningOf } from "./release-ci-hold.js";
|
|
12
13
|
import { nightlyDebtHold } from "./nightly-github.js";
|
|
13
14
|
/** Whether run `runId` is a deployable candidate now, read only from the plane's records and this runtime's code. */
|
|
@@ -29,6 +30,9 @@ export function deploymentGate(store, input) {
|
|
|
29
30
|
return refuse(`Run ${input.runId} is not a built candidate at ${head.slice(0, 7)}.`);
|
|
30
31
|
if (scope === null || scope.approvedDigest !== scope.digest || scope.digest !== run.scopeDigest)
|
|
31
32
|
return refuse("The run's signed scope is no longer the approved one.");
|
|
33
|
+
// A put-away task (v145, task-tidy.md) deploys nothing: restore it first.
|
|
34
|
+
if (refArchived(store, run.taskRef))
|
|
35
|
+
return refuse("This task is put away. Restore it before deploying.");
|
|
32
36
|
// A person may approve during CI, including a release without carry terms. Every deployment road must wait
|
|
33
37
|
// for the plane's exact-head observation, not only the release coordinator's polling loop.
|
|
34
38
|
if (releaseCiRunningOf(store, ref.externalId) !== null)
|
package/dist/dispatch.d.ts
CHANGED
|
@@ -26,6 +26,9 @@ export type TaskReadinessBlocker = {
|
|
|
26
26
|
blockerId: string;
|
|
27
27
|
blockerState: TaskState;
|
|
28
28
|
message: string;
|
|
29
|
+
} | {
|
|
30
|
+
code: "archived";
|
|
31
|
+
message: string;
|
|
29
32
|
};
|
|
30
33
|
export type DispatchAction = "open-result" | "retry-task" | "place-task" | "write-scope" | "select-agent" | "approve-scope" | "answer-decision" | "unhold" | "inspect-hold" | "repair-dependency" | "repair-capability" | "start-worker"
|
|
31
34
|
/** v50: ask for the bounded explicit review retry (`task review <run>`
|
package/dist/dispatch.js
CHANGED
|
@@ -16,7 +16,7 @@ import { REVIEW_TOKENS, resultStatusOf, reviewFactsOf } from "./workspace-ui.js"
|
|
|
16
16
|
import { replacedWords } from "./task-status.js";
|
|
17
17
|
import { failedAttemptSentence, latestFinishedAttempt } from "./needs-you.js";
|
|
18
18
|
import { buildReviewOf } from "./review-switch.js";
|
|
19
|
-
import { BUILT_IN, parseCapabilityKey } from "./store.js";
|
|
19
|
+
import { BUILT_IN, refArchived, parseCapabilityKey } from "./store.js";
|
|
20
20
|
export const DEFAULT_MAX_OPEN_DECISIONS = 5;
|
|
21
21
|
/**
|
|
22
22
|
* Task state, active holds, and unfinished dependencies in the exact order
|
|
@@ -33,6 +33,9 @@ export function taskReadinessBlocker(store, taskRef, now) {
|
|
|
33
33
|
.get(BUILT_IN, taskRef);
|
|
34
34
|
if (task === undefined)
|
|
35
35
|
return { code: "unknown-task", message: "no such task" };
|
|
36
|
+
// A put-away task (v145) never dispatches, whatever its state: restore it first.
|
|
37
|
+
if (refArchived(store, taskRef))
|
|
38
|
+
return { code: "archived", message: "put away" };
|
|
36
39
|
const state = String(task["state"]);
|
|
37
40
|
if (state !== "queued")
|
|
38
41
|
return { code: "state", state, message: `state is ${state}, not queued` };
|