@powerhousedao/host-core 6.2.3-dev.89 → 6.2.3-dev.91
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/{compound-BZb3tR_c.mjs → compound-Cv5yxdLC.mjs} +61 -4
- package/dist/compound-Cv5yxdLC.mjs.map +1 -0
- package/dist/{compound-7I7qUIiG.d.mts → compound-eW-6nGxK.d.mts} +95 -1
- package/dist/compound-eW-6nGxK.d.mts.map +1 -0
- package/dist/{env-substitution-BbFg9lIW.mjs → env-substitution-BXGohOGN.mjs} +5 -2
- package/dist/env-substitution-BXGohOGN.mjs.map +1 -0
- package/dist/{host-schemas-CwNCJflE.d.mts → host-schemas-BM7F21lf.d.mts} +87 -1
- package/dist/host-schemas-BM7F21lf.d.mts.map +1 -0
- package/dist/index.d.mts +20 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +15 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{plugins-DZPDoyBt.d.mts → plugins-Uk84BRay.d.mts} +2 -2
- package/dist/{plugins-DZPDoyBt.d.mts.map → plugins-Uk84BRay.d.mts.map} +1 -1
- package/dist/plugins.d.mts +1 -1
- package/dist/projection.d.mts +5 -1
- package/dist/projection.d.mts.map +1 -1
- package/dist/projection.mjs +11 -4
- package/dist/projection.mjs.map +1 -1
- package/dist/runners/compound.d.mts +11 -1
- package/dist/runners/compound.d.mts.map +1 -1
- package/dist/runners/compound.mjs +5 -2
- package/dist/runners/compound.mjs.map +1 -1
- package/dist/schema.d.mts +14 -2
- package/dist/schema.d.mts.map +1 -1
- package/dist/schema.mjs +1 -1
- package/package.json +3 -3
- package/dist/compound-7I7qUIiG.d.mts.map +0 -1
- package/dist/compound-BZb3tR_c.mjs.map +0 -1
- package/dist/env-substitution-BbFg9lIW.mjs.map +0 -1
- package/dist/host-schemas-CwNCJflE.d.mts.map +0 -1
|
@@ -30,6 +30,7 @@ declare const reactorProtocolSchema: z.ZodObject<{
|
|
|
30
30
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
33
34
|
}, z.core.$strict>>;
|
|
34
35
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
35
36
|
legacy: "legacy";
|
|
@@ -160,6 +161,7 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
160
161
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
161
162
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
162
163
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
163
165
|
}, z.core.$strict>>;
|
|
164
166
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
165
167
|
legacy: "legacy";
|
|
@@ -181,6 +183,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
181
183
|
slug: z.ZodString;
|
|
182
184
|
id: z.ZodOptional<z.ZodString>;
|
|
183
185
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
186
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
188
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
189
|
+
}>>;
|
|
184
190
|
name: z.ZodOptional<z.ZodString>;
|
|
185
191
|
icon: z.ZodOptional<z.ZodString>;
|
|
186
192
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -272,6 +278,7 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
272
278
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
273
279
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
274
280
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
275
282
|
}, z.core.$strict>>;
|
|
276
283
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
277
284
|
legacy: "legacy";
|
|
@@ -293,6 +300,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
293
300
|
slug: z.ZodString;
|
|
294
301
|
id: z.ZodOptional<z.ZodString>;
|
|
295
302
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
303
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
305
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
306
|
+
}>>;
|
|
296
307
|
name: z.ZodOptional<z.ZodString>;
|
|
297
308
|
icon: z.ZodOptional<z.ZodString>;
|
|
298
309
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -373,6 +384,7 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
373
384
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
374
385
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
375
386
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
387
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
376
388
|
}, z.core.$strict>>;
|
|
377
389
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
378
390
|
legacy: "legacy";
|
|
@@ -394,6 +406,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
394
406
|
slug: z.ZodString;
|
|
395
407
|
id: z.ZodOptional<z.ZodString>;
|
|
396
408
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
409
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
410
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
411
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
412
|
+
}>>;
|
|
397
413
|
name: z.ZodOptional<z.ZodString>;
|
|
398
414
|
icon: z.ZodOptional<z.ZodString>;
|
|
399
415
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -480,6 +496,7 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
480
496
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
481
497
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
482
498
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
499
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
483
500
|
}, z.core.$strict>>;
|
|
484
501
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
485
502
|
legacy: "legacy";
|
|
@@ -501,6 +518,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
501
518
|
slug: z.ZodString;
|
|
502
519
|
id: z.ZodOptional<z.ZodString>;
|
|
503
520
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
521
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
522
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
523
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
524
|
+
}>>;
|
|
504
525
|
name: z.ZodOptional<z.ZodString>;
|
|
505
526
|
icon: z.ZodOptional<z.ZodString>;
|
|
506
527
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -595,6 +616,7 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
595
616
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
596
617
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
597
618
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
619
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
598
620
|
}, z.core.$strict>>;
|
|
599
621
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
600
622
|
legacy: "legacy";
|
|
@@ -616,6 +638,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
616
638
|
slug: z.ZodString;
|
|
617
639
|
id: z.ZodOptional<z.ZodString>;
|
|
618
640
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
641
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
642
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
643
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
644
|
+
}>>;
|
|
619
645
|
name: z.ZodOptional<z.ZodString>;
|
|
620
646
|
icon: z.ZodOptional<z.ZodString>;
|
|
621
647
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -768,6 +794,7 @@ declare const declaredSchemas: {
|
|
|
768
794
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
769
795
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
770
796
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
771
798
|
}, z.core.$strict>>;
|
|
772
799
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
773
800
|
legacy: "legacy";
|
|
@@ -789,6 +816,10 @@ declare const declaredSchemas: {
|
|
|
789
816
|
slug: z.ZodString;
|
|
790
817
|
id: z.ZodOptional<z.ZodString>;
|
|
791
818
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
819
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
820
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
821
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
822
|
+
}>>;
|
|
792
823
|
name: z.ZodOptional<z.ZodString>;
|
|
793
824
|
icon: z.ZodOptional<z.ZodString>;
|
|
794
825
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -880,6 +911,7 @@ declare const declaredSchemas: {
|
|
|
880
911
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
881
912
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
882
913
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
883
915
|
}, z.core.$strict>>;
|
|
884
916
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
885
917
|
legacy: "legacy";
|
|
@@ -901,6 +933,10 @@ declare const declaredSchemas: {
|
|
|
901
933
|
slug: z.ZodString;
|
|
902
934
|
id: z.ZodOptional<z.ZodString>;
|
|
903
935
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
936
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
937
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
938
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
939
|
+
}>>;
|
|
904
940
|
name: z.ZodOptional<z.ZodString>;
|
|
905
941
|
icon: z.ZodOptional<z.ZodString>;
|
|
906
942
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -981,6 +1017,7 @@ declare const declaredSchemas: {
|
|
|
981
1017
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
982
1018
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
983
1019
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1020
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
984
1021
|
}, z.core.$strict>>;
|
|
985
1022
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
986
1023
|
legacy: "legacy";
|
|
@@ -1002,6 +1039,10 @@ declare const declaredSchemas: {
|
|
|
1002
1039
|
slug: z.ZodString;
|
|
1003
1040
|
id: z.ZodOptional<z.ZodString>;
|
|
1004
1041
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1042
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1043
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1044
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1045
|
+
}>>;
|
|
1005
1046
|
name: z.ZodOptional<z.ZodString>;
|
|
1006
1047
|
icon: z.ZodOptional<z.ZodString>;
|
|
1007
1048
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1088,6 +1129,7 @@ declare const declaredSchemas: {
|
|
|
1088
1129
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1089
1130
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1090
1131
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1132
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1091
1133
|
}, z.core.$strict>>;
|
|
1092
1134
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1093
1135
|
legacy: "legacy";
|
|
@@ -1109,6 +1151,10 @@ declare const declaredSchemas: {
|
|
|
1109
1151
|
slug: z.ZodString;
|
|
1110
1152
|
id: z.ZodOptional<z.ZodString>;
|
|
1111
1153
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1154
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1155
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1156
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1157
|
+
}>>;
|
|
1112
1158
|
name: z.ZodOptional<z.ZodString>;
|
|
1113
1159
|
icon: z.ZodOptional<z.ZodString>;
|
|
1114
1160
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1203,6 +1249,7 @@ declare const declaredSchemas: {
|
|
|
1203
1249
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1204
1250
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1205
1251
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1252
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1206
1253
|
}, z.core.$strict>>;
|
|
1207
1254
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1208
1255
|
legacy: "legacy";
|
|
@@ -1224,6 +1271,10 @@ declare const declaredSchemas: {
|
|
|
1224
1271
|
slug: z.ZodString;
|
|
1225
1272
|
id: z.ZodOptional<z.ZodString>;
|
|
1226
1273
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1274
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1275
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1276
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1277
|
+
}>>;
|
|
1227
1278
|
name: z.ZodOptional<z.ZodString>;
|
|
1228
1279
|
icon: z.ZodOptional<z.ZodString>;
|
|
1229
1280
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1339,6 +1390,7 @@ declare const reactorSchema: z.ZodObject<{
|
|
|
1339
1390
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1340
1391
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1341
1392
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1393
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1342
1394
|
}, z.core.$strict>>;
|
|
1343
1395
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1344
1396
|
legacy: "legacy";
|
|
@@ -1360,6 +1412,10 @@ declare const reactorSchema: z.ZodObject<{
|
|
|
1360
1412
|
slug: z.ZodString;
|
|
1361
1413
|
id: z.ZodOptional<z.ZodString>;
|
|
1362
1414
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1415
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1416
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1417
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1418
|
+
}>>;
|
|
1363
1419
|
name: z.ZodOptional<z.ZodString>;
|
|
1364
1420
|
icon: z.ZodOptional<z.ZodString>;
|
|
1365
1421
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1451,6 +1507,7 @@ declare const childWrapperSchema: z.ZodObject<{
|
|
|
1451
1507
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1452
1508
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1453
1509
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1510
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1454
1511
|
}, z.core.$strict>>;
|
|
1455
1512
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1456
1513
|
legacy: "legacy";
|
|
@@ -1472,6 +1529,10 @@ declare const childWrapperSchema: z.ZodObject<{
|
|
|
1472
1529
|
slug: z.ZodString;
|
|
1473
1530
|
id: z.ZodOptional<z.ZodString>;
|
|
1474
1531
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1532
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1533
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1534
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1535
|
+
}>>;
|
|
1475
1536
|
name: z.ZodOptional<z.ZodString>;
|
|
1476
1537
|
icon: z.ZodOptional<z.ZodString>;
|
|
1477
1538
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1552,6 +1613,7 @@ declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1552
1613
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1553
1614
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1554
1615
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1616
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1555
1617
|
}, z.core.$strict>>;
|
|
1556
1618
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1557
1619
|
legacy: "legacy";
|
|
@@ -1573,6 +1635,10 @@ declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1573
1635
|
slug: z.ZodString;
|
|
1574
1636
|
id: z.ZodOptional<z.ZodString>;
|
|
1575
1637
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1638
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1639
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1640
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1641
|
+
}>>;
|
|
1576
1642
|
name: z.ZodOptional<z.ZodString>;
|
|
1577
1643
|
icon: z.ZodOptional<z.ZodString>;
|
|
1578
1644
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1659,6 +1725,7 @@ declare const reactorHostSchema: z.ZodObject<{
|
|
|
1659
1725
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1660
1726
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1661
1727
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1728
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1662
1729
|
}, z.core.$strict>>;
|
|
1663
1730
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1664
1731
|
legacy: "legacy";
|
|
@@ -1680,6 +1747,10 @@ declare const reactorHostSchema: z.ZodObject<{
|
|
|
1680
1747
|
slug: z.ZodString;
|
|
1681
1748
|
id: z.ZodOptional<z.ZodString>;
|
|
1682
1749
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1750
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1751
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1752
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1753
|
+
}>>;
|
|
1683
1754
|
name: z.ZodOptional<z.ZodString>;
|
|
1684
1755
|
icon: z.ZodOptional<z.ZodString>;
|
|
1685
1756
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1774,6 +1845,7 @@ declare const compoundHostSchema: z.ZodObject<{
|
|
|
1774
1845
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1775
1846
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1776
1847
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1848
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1777
1849
|
}, z.core.$strict>>;
|
|
1778
1850
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1779
1851
|
legacy: "legacy";
|
|
@@ -1795,6 +1867,10 @@ declare const compoundHostSchema: z.ZodObject<{
|
|
|
1795
1867
|
slug: z.ZodString;
|
|
1796
1868
|
id: z.ZodOptional<z.ZodString>;
|
|
1797
1869
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1870
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1871
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
1872
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
1873
|
+
}>>;
|
|
1798
1874
|
name: z.ZodOptional<z.ZodString>;
|
|
1799
1875
|
icon: z.ZodOptional<z.ZodString>;
|
|
1800
1876
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -1897,6 +1973,7 @@ declare const genericCompoundHostSchema: z.ZodObject<{
|
|
|
1897
1973
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
1898
1974
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
1899
1975
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
1976
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
1900
1977
|
}, z.core.$strict>>;
|
|
1901
1978
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
1902
1979
|
legacy: "legacy";
|
|
@@ -1918,6 +1995,10 @@ declare const genericCompoundHostSchema: z.ZodObject<{
|
|
|
1918
1995
|
slug: z.ZodString;
|
|
1919
1996
|
id: z.ZodOptional<z.ZodString>;
|
|
1920
1997
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
1998
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
1999
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
2000
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
2001
|
+
}>>;
|
|
1921
2002
|
name: z.ZodOptional<z.ZodString>;
|
|
1922
2003
|
icon: z.ZodOptional<z.ZodString>;
|
|
1923
2004
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -2024,6 +2105,7 @@ declare const declaredGenericCompoundHostSchema: z.ZodObject<{
|
|
|
2024
2105
|
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
2025
2106
|
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
2026
2107
|
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
2027
2109
|
}, z.core.$strict>>;
|
|
2028
2110
|
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
2029
2111
|
legacy: "legacy";
|
|
@@ -2045,6 +2127,10 @@ declare const declaredGenericCompoundHostSchema: z.ZodObject<{
|
|
|
2045
2127
|
slug: z.ZodString;
|
|
2046
2128
|
id: z.ZodOptional<z.ZodString>;
|
|
2047
2129
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
2130
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
2131
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
2132
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
2133
|
+
}>>;
|
|
2048
2134
|
name: z.ZodOptional<z.ZodString>;
|
|
2049
2135
|
icon: z.ZodOptional<z.ZodString>;
|
|
2050
2136
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -2104,4 +2190,4 @@ declare function emittedHostSchemas(): Record<string, unknown>;
|
|
|
2104
2190
|
//#endregion
|
|
2105
2191
|
export { MapToken as $, declaredHostSchemas as A, reactorBackendSchema as B, RunnerKind as C, tokenKeyOf as Ct, compoundWiringSchema as D, compoundHostSchema as E, hostNameSchema as F, refineStartOrder as G, reactorProtocolSchema as H, makeHostSchemas as I, ArrayMapToken as J, runnerBaseSchema as K, placementKeyIssues as L, emitHostJsonSchema as M, emittedHostSchemas as N, connectReactorIssues as O, genericCompoundHostSchema as P, KeyToken as Q, profileSchema as R, RunnerBase as S, ref as St, childrenSchema as T, tokenable as Tt, reactorSchema as U, reactorHostSchema as V, refineConnectReactor as W, EnvToken as X, ConcatToken as Y, ItemToken as Z, ReactorHostInput as _, isToken as _t, CompoundWiring as a, TOKEN_KEYS as at, ReactorRemoteConfig as b, mapTokenSchema as bt, HOST_NAME_PATTERN as c, TokenFor as ct, PlacementKeyIssue as d, TokenableSchema as dt, OutputPath as et, Profile as f, concatTokenSchema as ft, ReactorHost as g, forbidRef as gt, ReactorConfig as h, findToken as ht, CompoundHostInput as i, TOKEN_ESCAPE_KEY as it, defineHostSchemas as j, declaredGenericCompoundHostSchema as k, HostDefinition as l, TokenKey as lt, ReactorBackendKind as m, envTokenable as mt, ChildWrapper as n, RecordMapToken as nt, HOST_NAME_MAX_LENGTH as o, Template as ot, ReactorBackend as p, envTokenSchema as pt, runnerKindSchema as q, CompoundHost as r, RefFn as rt, HOST_NAME_MESSAGE as s, Token as st, CONNECT_PRIMARY_MESSAGE as t, OutputToken as tt, HostSchemas as u, TokenMode as ut, ReactorPackageConfig as v, itemTokenSchema as vt, childWrapperSchema as w, tokenSchema as wt, ReactorStorageConfig as x, outputTokenSchema as xt, ReactorProtocol as y, keyTokenSchema as yt, reactorBackendKindSchema as z };
|
|
2106
2192
|
export {};
|
|
2107
|
-
//# sourceMappingURL=host-schemas-
|
|
2193
|
+
//# sourceMappingURL=host-schemas-BM7F21lf.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-schemas-BM7F21lf.d.mts","names":[],"sources":["../src/host-schemas.ts"],"mappings":";;;;;;;;;;;;;;;;cA2Ba,mBAAiB;cACjB;cACA;cAEA,gBAAc,EAAA;cAkBd,eAAa,EAAA;;;;;GAKxB,EAAA,KAAA;cAEW,uBAAqB,EAAA;;;;;;;;;;;;;;;;GAYhC,EAAA,KAAA;cAEW,kBAAgB,EAAA;;;;KACjB,aAAa,EAAE,aAAa;cAE3B,0BAAwB,EAAA;;;;;;;;cAiBxB,sBAAoB,EAAA;;;;GAY/B,EAAA,KAAA;;;;iBAKc,iBACd;EAAQ,UAAU;EAAyB,SAAS;GACpD,KAAK,EAAE;;;UAyBC;EACR,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB;EACzD,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB,GAAG;;;;;;iBAqQrD,iBAAiB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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{ $ as HostDefinition, $t as TokenFor, A as knownVerbIssues, At as reactorBackendKindSchema, B as envSitesOf, Bt as ConcatToken, C as RunnerVerb, Ct as emittedHostSchemas, D as hostSchemaIssues, Dt as originOrUrlSchema, E as getVerb, Et as makeHostSchemas, F as DeclaredIssue, Ft as refineConnectReactor, G as CONNECT_PRIMARY_MESSAGE, Gt as OutputPath, H as outputSitesOf, Ht as ItemToken, I as OutputRef, It as refineStartOrder, J as CompoundHostInput, Jt as RefFn, K as ChildWrapper, Kt as OutputToken, L as OutputsSchemaLookup, Lt as runnerBaseSchema, M as resolveRunnerModule, Mt as reactorHostSchema, N as validateDeclaredHost, Nt as reactorProtocolSchema, O as isSchemaLike, Ot as placementKeyIssues, P as validateHost, Pt as reactorSchema, Q as HOST_NAME_PATTERN, Qt as Token, R as checkOutputPaths, Rt as runnerKindSchema, S as RunnerModule, St as emitHostJsonSchema, T as ValidateHostOptions, Tt as hostNameSchema, U as refKey, Ut as KeyToken, V as outputRefsOf, Vt as EnvToken, W as schemaAtPath, Wt as MapToken, X as HOST_NAME_MAX_LENGTH, Xt as TOKEN_KEYS, Y as CompoundWiring, Yt as TOKEN_ESCAPE_KEY, Z as HOST_NAME_MESSAGE, Zt as Template, _ as HostSchemaLike, _t as compoundWiringSchema, a as RunnerHandleData, an as envTokenable, at as ReactorConfig, b as RunnerError, bt as declaredHostSchemas, c as toStartedHandle, cn as isToken, ct as ReactorPackageConfig, d as BootCheckContext, dn as mapTokenSchema, dt as ReactorStorageConfig, en as TokenKey, et as HostSchemas, f as BootIssue, fn as outputTokenSchema, ft as RunnerBase, g as HostSchemaIssues, gn as tokenable, gt as compoundHostSchema, h as HostSchemaIssue, hn as tokenSchema, ht as childrenSchema, i as RunnerHandle, in as envTokenSchema, it as ReactorBackendKind, j as listVerbs, jt as reactorBackendSchema, k as kindShapeIssues, kt as profileSchema, l as MemberDraft, ln as itemTokenSchema, lt as ReactorProtocol, m as DeclaredHostOptions, mn as tokenKeyOf, mt as childWrapperSchema, n as RunCompoundResult, nn as TokenableSchema, nt as Profile, o as StartedHandle, on as findToken, ot as ReactorHost, p as CONNECT_RUNNER, pn as ref, pt as RunnerKind, q as CompoundHost, qt as RecordMapToken, r as runCompound, rn as concatTokenSchema, rt as ReactorBackend, s as runnerHandleSchema, sn as forbidRef, st as ReactorHostInput, t as RunCompoundOptions, tn as TokenMode, tt as PlacementKeyIssue, u as applyChildWrapper, un as keyTokenSchema, ut as ReactorRemoteConfig, v as ONE_SHOT_VERBS, vt as connectReactorIssues, w as SchemaIssue, wt as genericCompoundHostSchema, x as RunnerIssue, xt as defineHostSchemas, y as RunnerContext, yt as declaredGenericCompoundHostSchema, z as checkTokenSites, zt as ArrayMapToken } from "./compound-
|
|
1
|
+
import { $ as HostDefinition, $t as TokenFor, A as knownVerbIssues, At as reactorBackendKindSchema, B as envSitesOf, Bt as ConcatToken, C as RunnerVerb, Ct as emittedHostSchemas, D as hostSchemaIssues, Dt as originOrUrlSchema, E as getVerb, Et as makeHostSchemas, F as DeclaredIssue, Ft as refineConnectReactor, G as CONNECT_PRIMARY_MESSAGE, Gt as OutputPath, H as outputSitesOf, Ht as ItemToken, I as OutputRef, It as refineStartOrder, J as CompoundHostInput, Jt as RefFn, K as ChildWrapper, Kt as OutputToken, L as OutputsSchemaLookup, Lt as runnerBaseSchema, M as resolveRunnerModule, Mt as reactorHostSchema, N as validateDeclaredHost, Nt as reactorProtocolSchema, O as isSchemaLike, Ot as placementKeyIssues, P as validateHost, Pt as reactorSchema, Q as HOST_NAME_PATTERN, Qt as Token, R as checkOutputPaths, Rt as runnerKindSchema, S as RunnerModule, St as emitHostJsonSchema, T as ValidateHostOptions, Tt as hostNameSchema, U as refKey, Ut as KeyToken, V as outputRefsOf, Vt as EnvToken, W as schemaAtPath, Wt as MapToken, X as HOST_NAME_MAX_LENGTH, Xt as TOKEN_KEYS, Y as CompoundWiring, Yt as TOKEN_ESCAPE_KEY, Z as HOST_NAME_MESSAGE, Zt as Template, _ as HostSchemaLike, _t as compoundWiringSchema, a as RunnerHandleData, an as envTokenable, at as ReactorConfig, b as RunnerError, bt as declaredHostSchemas, c as toStartedHandle, cn as isToken, ct as ReactorPackageConfig, d as BootCheckContext, dn as mapTokenSchema, dt as ReactorStorageConfig, en as TokenKey, et as HostSchemas, f as BootIssue, fn as outputTokenSchema, ft as RunnerBase, g as HostSchemaIssues, gn as tokenable, gt as compoundHostSchema, h as HostSchemaIssue, hn as tokenSchema, ht as childrenSchema, i as RunnerHandle, in as envTokenSchema, it as ReactorBackendKind, j as listVerbs, jt as reactorBackendSchema, k as kindShapeIssues, kt as profileSchema, l as MemberDraft, ln as itemTokenSchema, lt as ReactorProtocol, m as DeclaredHostOptions, mn as tokenKeyOf, mt as childWrapperSchema, n as RunCompoundResult, nn as TokenableSchema, nt as Profile, o as StartedHandle, on as findToken, ot as ReactorHost, p as CONNECT_RUNNER, pn as ref, pt as RunnerKind, q as CompoundHost, qt as RecordMapToken, r as runCompound, rn as concatTokenSchema, rt as ReactorBackend, s as runnerHandleSchema, sn as forbidRef, st as ReactorHostInput, t as RunCompoundOptions, tn as TokenMode, tt as PlacementKeyIssue, u as applyChildWrapper, un as keyTokenSchema, ut as ReactorRemoteConfig, v as ONE_SHOT_VERBS, vt as connectReactorIssues, w as SchemaIssue, wt as genericCompoundHostSchema, x as RunnerIssue, xt as defineHostSchemas, y as RunnerContext, yt as declaredGenericCompoundHostSchema, z as checkTokenSites, zt as ArrayMapToken } from "./compound-eW-6nGxK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { SwitchboardDrive, driveAddressMessage, switchboardOfDrive } from "@powerhousedao/shared/host-tokens";
|
|
4
4
|
import { ORIGIN_PLACEHOLDER, SWITCHBOARD_PROXY_PATHS, isHtmlNavigation, isOriginPlaceholderUrl, isSwitchboardProxyPath, resolveOriginPlaceholders, toOriginPlaceholder, withOriginPlaceholders } from "@powerhousedao/shared/connect/origin-placeholder";
|
|
@@ -699,6 +699,10 @@ export declare function buildDriveDeclarationSchema(urlField: (schema: z.ZodStri
|
|
|
699
699
|
slug: z.ZodString;
|
|
700
700
|
id: z.ZodOptional<z.ZodString>;
|
|
701
701
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
702
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
703
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
704
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
705
|
+
}>>;
|
|
702
706
|
name: z.ZodOptional<z.ZodString>;
|
|
703
707
|
icon: z.ZodOptional<z.ZodString>;
|
|
704
708
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -716,6 +720,10 @@ export declare const driveDeclarationSchema: z.ZodObject<{
|
|
|
716
720
|
slug: z.ZodString;
|
|
717
721
|
id: z.ZodOptional<z.ZodString>;
|
|
718
722
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
723
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
724
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
725
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
726
|
+
}>>;
|
|
719
727
|
name: z.ZodOptional<z.ZodString>;
|
|
720
728
|
icon: z.ZodOptional<z.ZodString>;
|
|
721
729
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -734,6 +742,10 @@ export declare const drivesSchema: z.ZodArray<z.ZodObject<{
|
|
|
734
742
|
slug: z.ZodString;
|
|
735
743
|
id: z.ZodOptional<z.ZodString>;
|
|
736
744
|
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
745
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
746
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
747
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
748
|
+
}>>;
|
|
737
749
|
name: z.ZodOptional<z.ZodString>;
|
|
738
750
|
icon: z.ZodOptional<z.ZodString>;
|
|
739
751
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
@@ -757,8 +769,10 @@ export declare function projectDriveIdWith(sha256Hex: (input: string) => string,
|
|
|
757
769
|
export declare function projectDriveId(projectRoot: string, slug: string): string;
|
|
758
770
|
interface ResolvedDrive {
|
|
759
771
|
kind: "local" | "remote";
|
|
760
|
-
id
|
|
772
|
+
/** A fixed id; absent, the reactor generates it. The slug is the name. */
|
|
773
|
+
id?: string;
|
|
761
774
|
slug: string;
|
|
775
|
+
documentType?: DriveDeclaration["documentType"];
|
|
762
776
|
name: string;
|
|
763
777
|
icon?: string;
|
|
764
778
|
preferredEditor?: string;
|
|
@@ -832,6 +846,7 @@ interface ProjectedDescriptor {
|
|
|
832
846
|
authEnforcement?: boolean;
|
|
833
847
|
authGroups?: boolean;
|
|
834
848
|
authConditions?: boolean;
|
|
849
|
+
undoV3?: boolean;
|
|
835
850
|
};
|
|
836
851
|
remote?: {
|
|
837
852
|
url: string;
|
|
@@ -940,6 +955,9 @@ interface ConnectReactorProjection {
|
|
|
940
955
|
* switchboard instance.remoteBackends and instance.router, workflows →
|
|
941
956
|
* app.workflowsEnabled. */
|
|
942
957
|
export declare function projectReactorToConnect(reactor: ReactorConfig | undefined): ConnectReactorProjection;
|
|
958
|
+
/** Whether an env value means what the host's value does. The switchboard
|
|
959
|
+
* reads REACTOR_UNDO_V3 as on unless it is exactly "false". */
|
|
960
|
+
export declare function protocolEnvAgrees(varName: string, envValue: string, hostValue: string): boolean;
|
|
943
961
|
/** Each pre-set env var that CONTRADICTS the host's protocol block, as a
|
|
944
962
|
* message naming the var, the host value and the env value. An env var that
|
|
945
963
|
* merely matches, or is unset, is fine. */
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/host-export-schema.ts","../src/host-export.ts","../src/placeholders.ts","../src/host-types.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/backend-projection.ts","../src/reactor-config.ts","../src/connect-projection.ts","../src/resolve/plan.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/resolve/node.ts","../src/expect-host.ts"],"mappings":";;;;;;qBAiCa,sBAAsB;EACjC,YAAY,iBAAiB;;KAMnB;EACN;;EACA;EAAe;;EACf;EAAiB;EAAa;;;;;wBAKpB,iBAAiB,sBAAsB;;qBAwB1C;;;;wBAsGG,cAAc;;UA8Bb;;EAEf;;EAEA;;;;;;;;wBASc,gBAAgB,mBAAmB,eAAe;;;wBAoClD,gBAAgB,mBAAmB;;;wBAMnC,gBAAgB,mBAAmB;;;;;wBAoBnC,oBACd,kBACA;;;wBA0Cc,mBACd,gBACA;UA8Be;EACf;EACA;EACA;EACA,MAAM;;wBA2Bc,SACpB,qBACA,mBACC,QAAQ;;;UAqEM;;EAEf;EACA;;EAEA,eAAe;;;;EAIf;EACA;;;wBAMc,oBAAoB;;;;wBAoBpB,mBAAmB;EACjC;EACA;EACA,eAAe;EACf;;;;;;;;;;;;;;;wBAiDoB,oBACpB,qBACA,mBACC,QAAQ;;;qBCzhBE,uBAAqB,EAAA;;;;;;;;;GAOhC,EAAA,KAAA;qBAEW,iBAAe,EAAA;;;;;;;;;;;;;;;;;;;;;;;GAc1B,EAAA,KAAA;KAEU,YAAY,EAAE,aAAa;KAC3B,kBAAkB,EAAE,aAAa;;;;;;;KCrBjC;EACN;;EACA;EAAiB,QAAQ;;EACzB;EAAgB,QAAQ;;EACxB;EAAmB,QAAQ;;KAE5B,MAAM,SAAS;wBAoBJ,cACd,oBACA,kBACA,MAAK,MACJ;;wBAea,eACd,oBACA,M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;;;;;;;;;;;wBAkDc,sBACd,QAAQ,qCACR,kBAAkB,+BAClB,cACA,gBACC;;;;;;;;;;;wBCxTa,4BACd,WAAW,QAAQ,EAAE,cAAc,gBAAgB,EAAE,aAAU,EAAA
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/host-export-schema.ts","../src/host-export.ts","../src/placeholders.ts","../src/host-types.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/backend-projection.ts","../src/reactor-config.ts","../src/connect-projection.ts","../src/resolve/plan.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/resolve/node.ts","../src/expect-host.ts"],"mappings":";;;;;;qBAiCa,sBAAsB;EACjC,YAAY,iBAAiB;;KAMnB;EACN;;EACA;EAAe;;EACf;EAAiB;EAAa;;;;;wBAKpB,iBAAiB,sBAAsB;;qBAwB1C;;;;wBAsGG,cAAc;;UA8Bb;;EAEf;;EAEA;;;;;;;;wBASc,gBAAgB,mBAAmB,eAAe;;;wBAoClD,gBAAgB,mBAAmB;;;wBAMnC,gBAAgB,mBAAmB;;;;;wBAoBnC,oBACd,kBACA;;;wBA0Cc,mBACd,gBACA;UA8Be;EACf;EACA;EACA;EACA,MAAM;;wBA2Bc,SACpB,qBACA,mBACC,QAAQ;;;UAqEM;;EAEf;EACA;;EAEA,eAAe;;;;EAIf;EACA;;;wBAMc,oBAAoB;;;;wBAoBpB,mBAAmB;EACjC;EACA;EACA,eAAe;EACf;;;;;;;;;;;;;;;wBAiDoB,oBACpB,qBACA,mBACC,QAAQ;;;qBCzhBE,uBAAqB,EAAA;;;;;;;;;GAOhC,EAAA,KAAA;qBAEW,iBAAe,EAAA;;;;;;;;;;;;;;;;;;;;;;;GAc1B,EAAA,KAAA;KAEU,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CS;;UASK;;EAEf,MAAM;;EAEN;;EAEA,OAAO;;UAGQ;;;EAGf,MAAM;EACN,KAAK;;EAEL,OAAO;EACP,UAAU;;;EAGV,iBAAiB;;;wBAcH,WAAW;;;;;wBAmBX,kBAAkB,iBAAiB;;wBA+DnC,cAAc;;;wBAuDd,aAAa,GAAG,OAAO,IAAI;;;wBAe3B,cAAc,GAAG,OAAO,IAAI;;;;;;;;;UCpM3B;;EAEf;;EAEA;EACA;EACA,QAAQ;;;KAIE,cAAc,oBAAoB;EAAiB;;;wBAGzC,cACpB,qBACA,eAAe,cACd,QAAQ;;wBAuBK,oBACd,QAAQ,cACR,mBACA,gBACC;;wBAWa,uBACd,WAAW,eACT,KAAK,cAAc;;;;;;;;;wBAsBP,sBACd,qBACA;EAAW;EAAkB,WAAW;EAAa;IACpD;;;wBA0Da,kBACd,qBACA,MAAK,SAAS,sCACb,KAAK;;;;;;;;;;;;;;UCjIS;EACf;EACA,MAAM;EACN,UAAU;;EAEV;;;;;EAKA;;;;;;UAOe;EACf;EACA;;EAEA;;EAEA;EACA;EACA;;;UAIe;;EAEf;EACA;EACA;EACA,MAAM;;UAGS;EACf;EACA,MAAM;;;EAGN;;EAEA,aAAa;;EAEb;EACA,WAAW;;EAEX;EACA,SAAS;;EAET;EACA,UAAU;;EAEV;;EAEA;;EAEA,UAAU,eAAe;;UAGV,0BAA0B,KACzC;;EAIA;;EAEA;;;;UAKe;EACf,aAAa;EACb;;UAGe;EACf,MAAM;;;EAGN,UAAU;;EAEV,WAAW;;EAEX,uBAAuB;;EAEvB,mBAAmB;;EAEnB,OAAO;;UAGQ,oBAAoB,KAAK;EACxC;EACA;;;;;;;;wBAgKc,WAAW,OAAO,kBAAkB"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as describeMapElements, $t as drivesSchema, A as describeHostOutputs, An as resolveOrder, At as connectReactorIssues, B as CONNECT_RUNNER, Bt as placementKeyIssues, C as readRunRecord, Cn as hostTypeSatisfies, Ct as HOST_NAME_MAX_LENGTH, D as HostLoadError, Dn as pluginEntryObjectSchema, Dt as childrenSchema, E as runRecordSchema, En as normalizePluginEntry, Et as childWrapperSchema, F as loadHost, Ft as emittedHostSchemas, G as isSchemaLike, Gt as reactorProtocolSchema, H as RunnerError, Ht as reactorBackendKindSchema, I as probeHostsFolder, It as genericCompoundHostSchema, J as listVerbs, Jt as refineStartOrder, K as kindShapeIssues, Kt as reactorSchema, L as readOutputsFileHash, Lt as hostNameSchema, M as lintHostImportGraph, Mn as runObserveHookSequential, Mt as declaredHostSchemas, N as lintHostImports, Nn as runProvideHook, Nt as defineHostSchemas, O as OUTPUTS_FILE, On as pluginEntrySchema, Ot as compoundHostSchema, P as lintOutputsFile, Pn as runTransformHook, Pt as emitHostJsonSchema, Q as TokenResolutionError, Qt as driveDeclarationSchema, R as scanHostImports, Rt as makeHostSchemas, S as readProjectName, Sn as entryActiveForVerb, St as CONNECT_PRIMARY_MESSAGE, T as runRecordMemberSchema, Tn as normalizePluginEntries, Tt as HOST_NAME_PATTERN, U as getVerb, Ut as reactorBackendSchema, V as ONE_SHOT_VERBS, Vt as profileSchema, W as hostSchemaIssues, Wt as reactorHostSchema, X as validateDeclaredHost, Xt as runnerKindSchema, Y as resolveRunnerModule, Yt as runnerBaseSchema, Z as validateHost, Zt as buildDriveDeclarationSchema, _ as applyChildWrapper, _n as CONNECT_PLUGIN_OWNED_SLICES, _t as describeToken, an as envTokenable, at as BUILTIN_ENV_NAMES, b as listRunRecords, bn as resolvePluginContributions, bt as renderTokens, c as toStartedHandle, cn as isToken, ct as findRemovedForms, d as processResolveEnv, dn as mapTokenSchema, dt as envSitesOf, en as projectDriveIdWith, et as resolveHostOutputs, f as producerOutputsSchemas, fn as outputTokenSchema, ft as outputRefsOf, g as resolveUserDataPlaceholders, gn as tokenable, gt as collectTokenSites, h as defaultUserDataDir, hn as tokenSchema, ht as schemaAtPath, i as runCompound, in as envTokenSchema, it as planCompound, j as findNonStaticValue, jn as runObserveHook, jt as declaredGenericCompoundHostSchema, k as computeOutputsHash, kn as registerHostType, kt as compoundWiringSchema, l as compoundOutputSource, ln as itemTokenSchema, lt as checkOutputPaths, m as runnerOutputsSchema, mn as tokenKeyOf, mt as refKey, n as memberVerbOf, nn as TOKEN_KEYS, nt as PlanError, o as takesCspRegistrySync, on as findToken, ot as isBuiltinEnvName, p as runRecordOutputSource, pn as ref, pt as outputSitesOf, q as knownVerbIssues, qt as refineConnectReactor, r as prepareMember, rn as concatTokenSchema, rt as memberForRef, s as runnerHandleSchema, sn as forbidRef, st as substituteBuiltinEnv, t as compoundStartVerb, tn as TOKEN_ESCAPE_KEY, tt as unsetEnvMessage, u as loadProducers, un as keyTokenSchema, ut as checkTokenSites, v as clearRunRecord, vn as findDeadConnectConfig, vt as formatPath, w as writeRunRecord, wn as mergeContributions, wt as HOST_NAME_MESSAGE, x as probeRun, xn as PluginError, xt as unwrapEscapes, y as isPidAlive, yn as resolveHostPlugins, yt as isPlainObject, z as stripComments, zt as originOrUrlSchema } from "./compound-Cv5yxdLC.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -599,7 +599,7 @@ function projectDriveId(projectRoot, slug) {
|
|
|
599
599
|
return projectDriveIdWith(sha256Hex, projectRoot, slug);
|
|
600
600
|
}
|
|
601
601
|
function resolveDriveDeclaration(projectRoot, decl) {
|
|
602
|
-
const id = decl.projectHash ? projectDriveId(projectRoot, decl.slug) : decl.id
|
|
602
|
+
const id = decl.projectHash ? projectDriveId(projectRoot, decl.slug) : decl.id;
|
|
603
603
|
const slug = decl.projectHash === true ? id : decl.slug;
|
|
604
604
|
if (decl.remote) return {
|
|
605
605
|
kind: "remote",
|
|
@@ -614,6 +614,7 @@ function resolveDriveDeclaration(projectRoot, decl) {
|
|
|
614
614
|
kind: "local",
|
|
615
615
|
id,
|
|
616
616
|
slug,
|
|
617
|
+
documentType: decl.documentType,
|
|
617
618
|
name: decl.name ?? decl.slug,
|
|
618
619
|
icon: resolveImageRef(projectRoot, decl.icon, {
|
|
619
620
|
maxBytes: DRIVE_ICON_MAX_BYTES,
|
|
@@ -672,7 +673,8 @@ function explainDrivePlan(plan) {
|
|
|
672
673
|
return ["drives:", ...plan.map(({ drive, source }) => {
|
|
673
674
|
const kind = drive.kind === "remote" ? `remote ${drive.remoteUrl}` : "local";
|
|
674
675
|
const editor = drive.preferredEditor ? ` editor=${drive.preferredEditor}` : "";
|
|
675
|
-
|
|
676
|
+
const id = drive.id ?? "generated";
|
|
677
|
+
return ` ${drive.slug} (${kind}, id=${id}${editor}) [${source}]`;
|
|
676
678
|
})].join("\n");
|
|
677
679
|
}
|
|
678
680
|
//#endregion
|
|
@@ -778,7 +780,8 @@ const FLAG_ENV = {
|
|
|
778
780
|
documentDecisions: "REACTOR_DOCUMENT_DECISIONS",
|
|
779
781
|
authEnforcement: "REACTOR_AUTH_ENFORCEMENT",
|
|
780
782
|
authGroups: "REACTOR_AUTH_GROUPS",
|
|
781
|
-
authConditions: "REACTOR_AUTH_CONDITIONS"
|
|
783
|
+
authConditions: "REACTOR_AUTH_CONDITIONS",
|
|
784
|
+
undoV3: "REACTOR_UNDO_V3"
|
|
782
785
|
};
|
|
783
786
|
/** The env vars a protocol block maps onto, with their string values. Only
|
|
784
787
|
* keys the block actually sets appear. */
|
|
@@ -874,6 +877,12 @@ function projectReactorToConnect(reactor) {
|
|
|
874
877
|
if (reactor?.workflows !== void 0) connect.app = { workflowsEnabled: reactor.workflows };
|
|
875
878
|
return { connect };
|
|
876
879
|
}
|
|
880
|
+
/** Whether an env value means what the host's value does. The switchboard
|
|
881
|
+
* reads REACTOR_UNDO_V3 as on unless it is exactly "false". */
|
|
882
|
+
function protocolEnvAgrees(varName, envValue, hostValue) {
|
|
883
|
+
if (varName === FLAG_ENV.undoV3) return envValue !== "false" === (hostValue === "true");
|
|
884
|
+
return envValue === hostValue;
|
|
885
|
+
}
|
|
877
886
|
/** Each pre-set env var that CONTRADICTS the host's protocol block, as a
|
|
878
887
|
* message naming the var, the host value and the env value. An env var that
|
|
879
888
|
* merely matches, or is unset, is fine. */
|
|
@@ -881,7 +890,7 @@ function protocolConflicts(protocol, env, hostFile = "the host file") {
|
|
|
881
890
|
if (!protocol) return [];
|
|
882
891
|
return Object.entries(protocolEnv(protocol)).flatMap(([varName, hostValue]) => {
|
|
883
892
|
const envValue = env[varName];
|
|
884
|
-
if (envValue === void 0 || envValue
|
|
893
|
+
if (envValue === void 0 || protocolEnvAgrees(varName, envValue, hostValue)) return [];
|
|
885
894
|
return [`reactor.protocol conflict: ${varName} is "${envValue}" in the environment but "${hostValue}" in ${hostFile}. These are fleet-consensus settings — a mismatch would diverge replay. Remove the env override or align the host.`];
|
|
886
895
|
});
|
|
887
896
|
}
|
|
@@ -1141,6 +1150,6 @@ function expectHost(input) {
|
|
|
1141
1150
|
return expectation;
|
|
1142
1151
|
}
|
|
1143
1152
|
//#endregion
|
|
1144
|
-
export { BUILTIN_ENV_NAMES, CONNECT_PLUGIN_OWNED_SLICES, CONNECT_PRIMARY_MESSAGE, CONNECT_RUNNER, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, HostLoadError, ONE_SHOT_VERBS, ORIGIN_PLACEHOLDER, OUTPUTS_FILE, PlanError, PluginError, RunnerError, SWITCHBOARD_PROXY_PATHS, SpawnHostError, TOKEN_ESCAPE_KEY, TOKEN_KEYS, TokenResolutionError, applyChildWrapper, assertProtocolConsistency, backendToDescriptor, backendsToDescriptors, browserBackend, buildDriveDeclarationSchema, checkHost, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, clearRunRecord, collectTokenSites, compoundHostSchema, compoundOutputSource, compoundWiringSchema, computeOutputsHash, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defaultUserDataDir, defineHostSchemas, describeHostOutputs, describeMapElements, describeToken, driveAddressMessage, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, entryActiveForVerb, envSitesOf, envTokenSchema, envTokenable, expectHost, explainDrivePlan, exportHost, findDeadConnectConfig, findNonStaticValue, findRemovedForms, findToken, forbidRef, formatPath, genericCompoundHostSchema, getVerb, hostExportSchema, hostNameSchema, hostSchemaIssues, hostTypeSatisfies, isBuiltinEnvName, isHtmlNavigation, isOriginPlaceholderUrl, isPidAlive, isSchemaLike, isStructuralMultiReactor, isSwitchboardProxyPath, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, lintHostImportGraph, lintHostImports, lintOutputsFile, listRunRecords, listVerbs, loadHost, loadProducers, makeHostSchemas, mapTokenSchema, memberForRef, mergeContributions, mergeDefaultDrives, mergeDrivePlan, normalizePluginEntries, normalizePluginEntry, originOrUrlSchema, outputRefsOf, outputSitesOf, outputTokenSchema, placeConnectDrives, placementKeyIssues, planCompound, pluginEntryObjectSchema, pluginEntrySchema, primaryBackend, probeHostsFolder, probeRun, processResolveEnv, producerOutputsSchemas, profileSchema, projectDriveId, projectDriveIdWith, projectDrivesIntoConnect, projectReactorToConnect, protocolConflicts, protocolEnv, reactorBackendKindSchema, reactorBackendSchema, reactorBlockToSwitchboardConfig, reactorClientMode, reactorHostSchema, reactorProtocolSchema, reactorSchema, readOutputsFileHash, readProjectName, readRunRecord, rebaseDriveUrl, ref, refKey, refineConnectReactor, refineStartOrder, registerHostType, remoteBackendUrls, remoteBackends, renderTokens, resolveDriveDeclaration, resolveHostOutputs, resolveHostPlugins, resolveOrder, resolveOriginPlaceholders, resolvePluginContributions, resolveRunnerModule, resolveUserDataPlaceholders, runCompound, runObserveHook, runObserveHookSequential, runProvideHook, runRecordMemberSchema, runRecordOutputSource, runRecordSchema, runTransformHook, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, runnerOutputsSchema, scanHostImports, schemaAtPath, seedDrives, spawnHost, stripComments, substituteBuiltinEnv, switchboardOfDrive, toOriginPlaceholder, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, unwrapEscapes, validateDeclaredHost, validateHost, withOriginPlaceholders, writeRunRecord };
|
|
1153
|
+
export { BUILTIN_ENV_NAMES, CONNECT_PLUGIN_OWNED_SLICES, CONNECT_PRIMARY_MESSAGE, CONNECT_RUNNER, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, HostLoadError, ONE_SHOT_VERBS, ORIGIN_PLACEHOLDER, OUTPUTS_FILE, PlanError, PluginError, RunnerError, SWITCHBOARD_PROXY_PATHS, SpawnHostError, TOKEN_ESCAPE_KEY, TOKEN_KEYS, TokenResolutionError, applyChildWrapper, assertProtocolConsistency, backendToDescriptor, backendsToDescriptors, browserBackend, buildDriveDeclarationSchema, checkHost, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, clearRunRecord, collectTokenSites, compoundHostSchema, compoundOutputSource, compoundWiringSchema, computeOutputsHash, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defaultUserDataDir, defineHostSchemas, describeHostOutputs, describeMapElements, describeToken, driveAddressMessage, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, entryActiveForVerb, envSitesOf, envTokenSchema, envTokenable, expectHost, explainDrivePlan, exportHost, findDeadConnectConfig, findNonStaticValue, findRemovedForms, findToken, forbidRef, formatPath, genericCompoundHostSchema, getVerb, hostExportSchema, hostNameSchema, hostSchemaIssues, hostTypeSatisfies, isBuiltinEnvName, isHtmlNavigation, isOriginPlaceholderUrl, isPidAlive, isSchemaLike, isStructuralMultiReactor, isSwitchboardProxyPath, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, lintHostImportGraph, lintHostImports, lintOutputsFile, listRunRecords, listVerbs, loadHost, loadProducers, makeHostSchemas, mapTokenSchema, memberForRef, mergeContributions, mergeDefaultDrives, mergeDrivePlan, normalizePluginEntries, normalizePluginEntry, originOrUrlSchema, outputRefsOf, outputSitesOf, outputTokenSchema, placeConnectDrives, placementKeyIssues, planCompound, pluginEntryObjectSchema, pluginEntrySchema, primaryBackend, probeHostsFolder, probeRun, processResolveEnv, producerOutputsSchemas, profileSchema, projectDriveId, projectDriveIdWith, projectDrivesIntoConnect, projectReactorToConnect, protocolConflicts, protocolEnv, protocolEnvAgrees, reactorBackendKindSchema, reactorBackendSchema, reactorBlockToSwitchboardConfig, reactorClientMode, reactorHostSchema, reactorProtocolSchema, reactorSchema, readOutputsFileHash, readProjectName, readRunRecord, rebaseDriveUrl, ref, refKey, refineConnectReactor, refineStartOrder, registerHostType, remoteBackendUrls, remoteBackends, renderTokens, resolveDriveDeclaration, resolveHostOutputs, resolveHostPlugins, resolveOrder, resolveOriginPlaceholders, resolvePluginContributions, resolveRunnerModule, resolveUserDataPlaceholders, runCompound, runObserveHook, runObserveHookSequential, runProvideHook, runRecordMemberSchema, runRecordOutputSource, runRecordSchema, runTransformHook, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, runnerOutputsSchema, scanHostImports, schemaAtPath, seedDrives, spawnHost, stripComments, substituteBuiltinEnv, switchboardOfDrive, toOriginPlaceholder, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, unwrapEscapes, validateDeclaredHost, validateHost, withOriginPlaceholders, writeRunRecord };
|
|
1145
1154
|
|
|
1146
1155
|
//# sourceMappingURL=index.mjs.map
|