@powerhousedao/host-core 6.2.3-dev.85 → 6.2.3-dev.87
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-NxCal3db.d.mts → compound-7I7qUIiG.d.mts} +220 -2
- package/dist/compound-7I7qUIiG.d.mts.map +1 -0
- package/dist/{compound-GhJAA2dK.mjs → compound-BZb3tR_c.mjs} +93 -7
- package/dist/compound-BZb3tR_c.mjs.map +1 -0
- package/dist/{env-substitution-CN_oSVVY.mjs → env-substitution-BbFg9lIW.mjs} +93 -7
- package/dist/env-substitution-BbFg9lIW.mjs.map +1 -0
- package/dist/{host-schemas-DtKFmLd0.d.mts → host-schemas-CwNCJflE.d.mts} +220 -2
- package/dist/host-schemas-CwNCJflE.d.mts.map +1 -0
- package/dist/index.d.mts +90 -75
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +91 -20
- package/dist/index.mjs.map +1 -1
- package/dist/{plugins-C1Rjl-zt.d.mts → plugins-DZPDoyBt.d.mts} +2 -2
- package/dist/{plugins-C1Rjl-zt.d.mts.map → plugins-DZPDoyBt.d.mts.map} +1 -1
- package/dist/plugins.d.mts +1 -1
- package/dist/projection.d.mts +82 -66
- package/dist/projection.d.mts.map +1 -1
- package/dist/projection.mjs +55 -20
- package/dist/projection.mjs.map +1 -1
- package/dist/runners/compound.d.mts +23 -1
- package/dist/runners/compound.d.mts.map +1 -1
- package/dist/runners/compound.mjs +1 -1
- package/dist/schema.d.mts +3 -3
- package/dist/schema.mjs +2 -2
- package/package.json +3 -3
- package/dist/compound-GhJAA2dK.mjs.map +0 -1
- package/dist/compound-NxCal3db.d.mts.map +0 -1
- package/dist/env-substitution-CN_oSVVY.mjs.map +0 -1
- package/dist/host-schemas-DtKFmLd0.d.mts.map +0 -1
|
@@ -108,6 +108,12 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
108
108
|
}, z.core.$strict>>;
|
|
109
109
|
remote: z.ZodOptional<z.ZodObject<{
|
|
110
110
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
111
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
113
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strict>]>>;
|
|
116
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
111
117
|
}, z.core.$strict>>;
|
|
112
118
|
}, z.core.$strict>;
|
|
113
119
|
reactorSchema: z.ZodObject<{
|
|
@@ -137,11 +143,22 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
137
143
|
}, z.core.$strict>>;
|
|
138
144
|
remote: z.ZodOptional<z.ZodObject<{
|
|
139
145
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
146
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
148
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
}, z.core.$strict>]>>;
|
|
151
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
140
152
|
}, z.core.$strict>>;
|
|
141
153
|
}, z.core.$strict>>>;
|
|
142
154
|
placement: z.ZodOptional<z.ZodObject<{
|
|
143
155
|
primary: z.ZodOptional<z.ZodString>;
|
|
144
156
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
157
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
145
162
|
}, z.core.$strict>>;
|
|
146
163
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
147
164
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -238,11 +255,22 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
238
255
|
}, z.core.$strict>>;
|
|
239
256
|
remote: z.ZodOptional<z.ZodObject<{
|
|
240
257
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
258
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
260
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strict>]>>;
|
|
263
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
241
264
|
}, z.core.$strict>>;
|
|
242
265
|
}, z.core.$strict>>>;
|
|
243
266
|
placement: z.ZodOptional<z.ZodObject<{
|
|
244
267
|
primary: z.ZodOptional<z.ZodString>;
|
|
245
268
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
269
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strict>>;
|
|
271
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
246
274
|
}, z.core.$strict>>;
|
|
247
275
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
248
276
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -328,11 +356,22 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
328
356
|
}, z.core.$strict>>;
|
|
329
357
|
remote: z.ZodOptional<z.ZodObject<{
|
|
330
358
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
359
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
361
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strict>]>>;
|
|
364
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
331
365
|
}, z.core.$strict>>;
|
|
332
366
|
}, z.core.$strict>>>;
|
|
333
367
|
placement: z.ZodOptional<z.ZodObject<{
|
|
334
368
|
primary: z.ZodOptional<z.ZodString>;
|
|
335
369
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
370
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, z.core.$strict>>;
|
|
372
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
373
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
336
375
|
}, z.core.$strict>>;
|
|
337
376
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
338
377
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -424,11 +463,22 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
424
463
|
}, z.core.$strict>>;
|
|
425
464
|
remote: z.ZodOptional<z.ZodObject<{
|
|
426
465
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
466
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
468
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
470
|
+
}, z.core.$strict>]>>;
|
|
471
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
427
472
|
}, z.core.$strict>>;
|
|
428
473
|
}, z.core.$strict>>>;
|
|
429
474
|
placement: z.ZodOptional<z.ZodObject<{
|
|
430
475
|
primary: z.ZodOptional<z.ZodString>;
|
|
431
476
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
477
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, z.core.$strict>>;
|
|
479
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
480
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
432
482
|
}, z.core.$strict>>;
|
|
433
483
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
434
484
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -528,11 +578,22 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
528
578
|
}, z.core.$strict>>;
|
|
529
579
|
remote: z.ZodOptional<z.ZodObject<{
|
|
530
580
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
581
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
583
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
}, z.core.$strict>]>>;
|
|
586
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
531
587
|
}, z.core.$strict>>;
|
|
532
588
|
}, z.core.$strict>>>;
|
|
533
589
|
placement: z.ZodOptional<z.ZodObject<{
|
|
534
590
|
primary: z.ZodOptional<z.ZodString>;
|
|
535
591
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
592
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
595
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
536
597
|
}, z.core.$strict>>;
|
|
537
598
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
538
599
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -603,6 +664,19 @@ type PlacementKeyIssue = {
|
|
|
603
664
|
};
|
|
604
665
|
/** withPlacementKeys' check, for a merged declared host parsed some other way. */
|
|
605
666
|
declare function placementKeyIssues(host: unknown): PlacementKeyIssue[];
|
|
667
|
+
declare const CONNECT_PRIMARY_MESSAGE = "Connect doesn't use placement.primary. To choose where new drives go, use placement.newDrives.";
|
|
668
|
+
/**
|
|
669
|
+
* A Connect host's placement rules, in either form. The router's primary is
|
|
670
|
+
* the browser reactor, else the `newDrives` switchboard, else the only one,
|
|
671
|
+
* so `placement.primary` means nothing here, and a Connect with several
|
|
672
|
+
* switchboards and no browser reactor must say where new drives go. Apply it
|
|
673
|
+
* last to the Connect runner's schema: `.superRefine(refineConnectReactor)`.
|
|
674
|
+
*/
|
|
675
|
+
declare function refineConnectReactor(host: {
|
|
676
|
+
reactor?: unknown;
|
|
677
|
+
}, ctx: z.RefinementCtx): void;
|
|
678
|
+
/** refineConnectReactor's check, for a Connect host parsed some other way. */
|
|
679
|
+
declare function connectReactorIssues(host: unknown): PlacementKeyIssue[];
|
|
606
680
|
/**
|
|
607
681
|
* One runner definition, two schemas (3.5): `build` runs over the DECLARED
|
|
608
682
|
* set (tokens allowed; its z.input types host files) and the RESOLVED set
|
|
@@ -642,6 +716,12 @@ declare const declaredSchemas: {
|
|
|
642
716
|
}, z.core.$strict>>;
|
|
643
717
|
remote: z.ZodOptional<z.ZodObject<{
|
|
644
718
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
719
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
720
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
721
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
723
|
+
}, z.core.$strict>]>>;
|
|
724
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
645
725
|
}, z.core.$strict>>;
|
|
646
726
|
}, z.core.$strict>;
|
|
647
727
|
reactorSchema: z.ZodObject<{
|
|
@@ -671,11 +751,22 @@ declare const declaredSchemas: {
|
|
|
671
751
|
}, z.core.$strict>>;
|
|
672
752
|
remote: z.ZodOptional<z.ZodObject<{
|
|
673
753
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
754
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
755
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
756
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
757
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
758
|
+
}, z.core.$strict>]>>;
|
|
759
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
674
760
|
}, z.core.$strict>>;
|
|
675
761
|
}, z.core.$strict>>>;
|
|
676
762
|
placement: z.ZodOptional<z.ZodObject<{
|
|
677
763
|
primary: z.ZodOptional<z.ZodString>;
|
|
678
764
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
765
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, z.core.$strict>>;
|
|
767
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
769
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
679
770
|
}, z.core.$strict>>;
|
|
680
771
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
681
772
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -772,11 +863,22 @@ declare const declaredSchemas: {
|
|
|
772
863
|
}, z.core.$strict>>;
|
|
773
864
|
remote: z.ZodOptional<z.ZodObject<{
|
|
774
865
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
866
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
867
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
868
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
}, z.core.$strict>]>>;
|
|
871
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
775
872
|
}, z.core.$strict>>;
|
|
776
873
|
}, z.core.$strict>>>;
|
|
777
874
|
placement: z.ZodOptional<z.ZodObject<{
|
|
778
875
|
primary: z.ZodOptional<z.ZodString>;
|
|
779
876
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
877
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strict>>;
|
|
879
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
880
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
881
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
780
882
|
}, z.core.$strict>>;
|
|
781
883
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
782
884
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -862,11 +964,22 @@ declare const declaredSchemas: {
|
|
|
862
964
|
}, z.core.$strict>>;
|
|
863
965
|
remote: z.ZodOptional<z.ZodObject<{
|
|
864
966
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
967
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
968
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
969
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
970
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
971
|
+
}, z.core.$strict>]>>;
|
|
972
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
865
973
|
}, z.core.$strict>>;
|
|
866
974
|
}, z.core.$strict>>>;
|
|
867
975
|
placement: z.ZodOptional<z.ZodObject<{
|
|
868
976
|
primary: z.ZodOptional<z.ZodString>;
|
|
869
977
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
978
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
979
|
+
}, z.core.$strict>>;
|
|
980
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
982
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
870
983
|
}, z.core.$strict>>;
|
|
871
984
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
872
985
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -958,11 +1071,22 @@ declare const declaredSchemas: {
|
|
|
958
1071
|
}, z.core.$strict>>;
|
|
959
1072
|
remote: z.ZodOptional<z.ZodObject<{
|
|
960
1073
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1074
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1076
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1077
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1078
|
+
}, z.core.$strict>]>>;
|
|
1079
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
961
1080
|
}, z.core.$strict>>;
|
|
962
1081
|
}, z.core.$strict>>>;
|
|
963
1082
|
placement: z.ZodOptional<z.ZodObject<{
|
|
964
1083
|
primary: z.ZodOptional<z.ZodString>;
|
|
965
1084
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1085
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1087
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1088
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
966
1090
|
}, z.core.$strict>>;
|
|
967
1091
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
968
1092
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1062,11 +1186,22 @@ declare const declaredSchemas: {
|
|
|
1062
1186
|
}, z.core.$strict>>;
|
|
1063
1187
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1064
1188
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1189
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1190
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1191
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1193
|
+
}, z.core.$strict>]>>;
|
|
1194
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1065
1195
|
}, z.core.$strict>>;
|
|
1066
1196
|
}, z.core.$strict>>>;
|
|
1067
1197
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1068
1198
|
primary: z.ZodOptional<z.ZodString>;
|
|
1069
1199
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1200
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
}, z.core.$strict>>;
|
|
1202
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1203
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1070
1205
|
}, z.core.$strict>>;
|
|
1071
1206
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1072
1207
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1152,6 +1287,12 @@ declare const reactorBackendSchema: z.ZodObject<{
|
|
|
1152
1287
|
}, z.core.$strict>>;
|
|
1153
1288
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1154
1289
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1290
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1291
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1292
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1294
|
+
}, z.core.$strict>]>>;
|
|
1295
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1155
1296
|
}, z.core.$strict>>;
|
|
1156
1297
|
}, z.core.$strict>;
|
|
1157
1298
|
declare const reactorSchema: z.ZodObject<{
|
|
@@ -1181,11 +1322,22 @@ declare const reactorSchema: z.ZodObject<{
|
|
|
1181
1322
|
}, z.core.$strict>>;
|
|
1182
1323
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1183
1324
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1325
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1326
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1327
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1328
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1329
|
+
}, z.core.$strict>]>>;
|
|
1330
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1184
1331
|
}, z.core.$strict>>;
|
|
1185
1332
|
}, z.core.$strict>>>;
|
|
1186
1333
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1187
1334
|
primary: z.ZodOptional<z.ZodString>;
|
|
1188
1335
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1336
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
}, z.core.$strict>>;
|
|
1338
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1339
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1340
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1189
1341
|
}, z.core.$strict>>;
|
|
1190
1342
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1191
1343
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1282,11 +1434,22 @@ declare const childWrapperSchema: z.ZodObject<{
|
|
|
1282
1434
|
}, z.core.$strict>>;
|
|
1283
1435
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1284
1436
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1437
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1438
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1439
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1440
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1441
|
+
}, z.core.$strict>]>>;
|
|
1442
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1285
1443
|
}, z.core.$strict>>;
|
|
1286
1444
|
}, z.core.$strict>>>;
|
|
1287
1445
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1288
1446
|
primary: z.ZodOptional<z.ZodString>;
|
|
1289
1447
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1448
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
}, z.core.$strict>>;
|
|
1450
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1451
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1452
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1290
1453
|
}, z.core.$strict>>;
|
|
1291
1454
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1292
1455
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1372,11 +1535,22 @@ declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1372
1535
|
}, z.core.$strict>>;
|
|
1373
1536
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1374
1537
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1538
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1539
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1540
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1541
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1542
|
+
}, z.core.$strict>]>>;
|
|
1543
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1375
1544
|
}, z.core.$strict>>;
|
|
1376
1545
|
}, z.core.$strict>>>;
|
|
1377
1546
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1378
1547
|
primary: z.ZodOptional<z.ZodString>;
|
|
1379
1548
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1549
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
}, z.core.$strict>>;
|
|
1551
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1552
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1553
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1380
1554
|
}, z.core.$strict>>;
|
|
1381
1555
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1382
1556
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1468,11 +1642,22 @@ declare const reactorHostSchema: z.ZodObject<{
|
|
|
1468
1642
|
}, z.core.$strict>>;
|
|
1469
1643
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1470
1644
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1645
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1646
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1647
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1648
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1649
|
+
}, z.core.$strict>]>>;
|
|
1650
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1471
1651
|
}, z.core.$strict>>;
|
|
1472
1652
|
}, z.core.$strict>>>;
|
|
1473
1653
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1474
1654
|
primary: z.ZodOptional<z.ZodString>;
|
|
1475
1655
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1656
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
}, z.core.$strict>>;
|
|
1658
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1659
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1660
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1476
1661
|
}, z.core.$strict>>;
|
|
1477
1662
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1478
1663
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1572,11 +1757,22 @@ declare const compoundHostSchema: z.ZodObject<{
|
|
|
1572
1757
|
}, z.core.$strict>>;
|
|
1573
1758
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1574
1759
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1760
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1762
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1764
|
+
}, z.core.$strict>]>>;
|
|
1765
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1575
1766
|
}, z.core.$strict>>;
|
|
1576
1767
|
}, z.core.$strict>>>;
|
|
1577
1768
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1578
1769
|
primary: z.ZodOptional<z.ZodString>;
|
|
1579
1770
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1771
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
}, z.core.$strict>>;
|
|
1773
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1774
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1775
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1580
1776
|
}, z.core.$strict>>;
|
|
1581
1777
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1582
1778
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1684,11 +1880,22 @@ declare const genericCompoundHostSchema: z.ZodObject<{
|
|
|
1684
1880
|
}, z.core.$strict>>;
|
|
1685
1881
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1686
1882
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
1883
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1884
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1885
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
1886
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
1887
|
+
}, z.core.$strict>]>>;
|
|
1888
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1687
1889
|
}, z.core.$strict>>;
|
|
1688
1890
|
}, z.core.$strict>>>;
|
|
1689
1891
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1690
1892
|
primary: z.ZodOptional<z.ZodString>;
|
|
1691
1893
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1894
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
}, z.core.$strict>>;
|
|
1896
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
1897
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1898
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1692
1899
|
}, z.core.$strict>>;
|
|
1693
1900
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1694
1901
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -1800,11 +2007,22 @@ declare const declaredGenericCompoundHostSchema: z.ZodObject<{
|
|
|
1800
2007
|
}, z.core.$strict>>;
|
|
1801
2008
|
remote: z.ZodOptional<z.ZodObject<{
|
|
1802
2009
|
url: TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
2010
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2011
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
2012
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
2013
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
2014
|
+
}, z.core.$strict>]>>;
|
|
2015
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
1803
2016
|
}, z.core.$strict>>;
|
|
1804
2017
|
}, z.core.$strict>>>;
|
|
1805
2018
|
placement: z.ZodOptional<z.ZodObject<{
|
|
1806
2019
|
primary: z.ZodOptional<z.ZodString>;
|
|
1807
2020
|
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2021
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
}, z.core.$strict>>;
|
|
2023
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
2024
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
1808
2026
|
}, z.core.$strict>>;
|
|
1809
2027
|
protocol: z.ZodOptional<z.ZodObject<{
|
|
1810
2028
|
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
@@ -2192,6 +2410,6 @@ interface RunCompoundResult {
|
|
|
2192
2410
|
}
|
|
2193
2411
|
declare function runCompound(hostInput: HostDefinition, ctx: RunnerContext, options: RunCompoundOptions): Promise<RunCompoundResult>;
|
|
2194
2412
|
//#endregion
|
|
2195
|
-
export {
|
|
2413
|
+
export { HostDefinition as $, TokenFor as $t, knownVerbIssues as A, reactorBackendKindSchema as At, envSitesOf as B, ConcatToken as Bt, RunnerVerb as C, emittedHostSchemas as Ct, hostSchemaIssues as D, originOrUrlSchema as Dt, getVerb as E, makeHostSchemas as Et, DeclaredIssue as F, refineConnectReactor as Ft, CONNECT_PRIMARY_MESSAGE as G, OutputPath as Gt, outputSitesOf as H, ItemToken as Ht, OutputRef as I, refineStartOrder as It, CompoundHostInput as J, RefFn as Jt, ChildWrapper as K, OutputToken as Kt, OutputsSchemaLookup as L, runnerBaseSchema as Lt, resolveRunnerModule as M, reactorHostSchema as Mt, validateDeclaredHost as N, reactorProtocolSchema as Nt, isSchemaLike as O, placementKeyIssues as Ot, validateHost as P, reactorSchema as Pt, HOST_NAME_PATTERN as Q, Token as Qt, checkOutputPaths as R, runnerKindSchema as Rt, RunnerModule as S, emitHostJsonSchema as St, ValidateHostOptions as T, hostNameSchema as Tt, refKey as U, KeyToken as Ut, outputRefsOf as V, EnvToken as Vt, schemaAtPath as W, MapToken as Wt, HOST_NAME_MAX_LENGTH as X, TOKEN_KEYS as Xt, CompoundWiring as Y, TOKEN_ESCAPE_KEY as Yt, HOST_NAME_MESSAGE as Z, Template as Zt, HostSchemaLike as _, compoundWiringSchema as _t, RunnerHandleData as a, envTokenable as an, ReactorConfig as at, RunnerError as b, declaredHostSchemas as bt, toStartedHandle as c, isToken as cn, ReactorPackageConfig as ct, BootCheckContext as d, mapTokenSchema as dn, ReactorStorageConfig as dt, TokenKey as en, HostSchemas as et, BootIssue as f, outputTokenSchema as fn, RunnerBase as ft, HostSchemaIssues as g, tokenable as gn, compoundHostSchema as gt, HostSchemaIssue as h, tokenSchema as hn, childrenSchema as ht, RunnerHandle as i, envTokenSchema as in, ReactorBackendKind as it, listVerbs as j, reactorBackendSchema as jt, kindShapeIssues as k, profileSchema as kt, MemberDraft as l, itemTokenSchema as ln, ReactorProtocol as lt, DeclaredHostOptions as m, tokenKeyOf as mn, childWrapperSchema as mt, RunCompoundResult as n, TokenableSchema as nn, Profile as nt, StartedHandle as o, findToken as on, ReactorHost as ot, CONNECT_RUNNER as p, ref as pn, RunnerKind as pt, CompoundHost as q, RecordMapToken as qt, runCompound as r, concatTokenSchema as rn, ReactorBackend as rt, runnerHandleSchema as s, forbidRef as sn, ReactorHostInput as st, RunCompoundOptions as t, TokenMode as tn, PlacementKeyIssue as tt, applyChildWrapper as u, keyTokenSchema as un, ReactorRemoteConfig as ut, ONE_SHOT_VERBS as v, connectReactorIssues as vt, SchemaIssue as w, genericCompoundHostSchema as wt, RunnerIssue as x, defineHostSchemas as xt, RunnerContext as y, declaredGenericCompoundHostSchema as yt, checkTokenSites as z, ArrayMapToken as zt };
|
|
2196
2414
|
export {};
|
|
2197
|
-
//# sourceMappingURL=compound-
|
|
2415
|
+
//# sourceMappingURL=compound-7I7qUIiG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compound-7I7qUIiG.d.mts","names":[],"sources":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;;;;;;;;;;;;;;UCYtD;EACR;EACA,QAAQ;EACR;EACA,MAAM;EACN;EACA,QAAQ;;;EAGR,SAAS;;UAiCM;;EAEf;;EAEA,cAAc;;;EAGd;;EAEA,QAAQ;;UAGO;EACf,SAAS;;;EAGT,gBAAgB;;;;EAIhB,eAAe,iCAAiC;;iBAsB5B,YACpB,WAAW,gBACX,KAAK,eACL,SAAS,qBACR,QAAQ"}
|
|
@@ -736,6 +736,12 @@ function refineResolvedReactor(reactor, ctx) {
|
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
+
/** `remote` keys that tune a connection, so only a remote backend has them. */
|
|
740
|
+
const REMOTE_ONLY_KEYS = [
|
|
741
|
+
"requestTimeoutMs",
|
|
742
|
+
"breaker",
|
|
743
|
+
"realtime"
|
|
744
|
+
];
|
|
739
745
|
/**
|
|
740
746
|
* Builds the host schema set. "allow" (declared form) accepts `T | Token` in
|
|
741
747
|
* every token-able field; "forbid" (resolved form) accepts `T` only.
|
|
@@ -762,13 +768,35 @@ function buildHostSchemas(tokenField) {
|
|
|
762
768
|
/** on-demand model resolution (was DYNAMIC_MODEL_LOADING). */
|
|
763
769
|
dynamic: z.boolean().optional()
|
|
764
770
|
}).optional(),
|
|
765
|
-
remote: z.strictObject({
|
|
771
|
+
remote: z.strictObject({
|
|
772
|
+
url: tokenField.any(originOrUrlSchema),
|
|
773
|
+
/** Give up on one request to this switchboard after this long. Default 30_000. */
|
|
774
|
+
requestTimeoutMs: z.number().int().positive().optional(),
|
|
775
|
+
/** After `failures` failed requests in a row, send nothing for
|
|
776
|
+
* `openMs`. Default { failures: 3, openMs: 30_000 }. `false`:
|
|
777
|
+
* never stop trying. */
|
|
778
|
+
breaker: z.union([z.literal(false), z.strictObject({
|
|
779
|
+
failures: z.number().int().min(1).optional(),
|
|
780
|
+
openMs: z.number().int().nonnegative().optional()
|
|
781
|
+
})]).optional(),
|
|
782
|
+
/** Live updates over a socket (the router's GraphQL
|
|
783
|
+
* subscriptions, not drive sync). Default true. */
|
|
784
|
+
realtime: z.boolean().optional()
|
|
785
|
+
}).optional()
|
|
766
786
|
}).superRefine((backend, ctx) => {
|
|
767
787
|
if (backend.kind === "remote" && !backend.remote) ctx.addIssue({
|
|
768
788
|
code: "custom",
|
|
769
789
|
path: ["remote", "url"],
|
|
770
790
|
message: `a "remote" backend needs remote.url, a switchboard drive address: ${useDriveUrl()}.`
|
|
771
791
|
});
|
|
792
|
+
if (backend.kind !== "remote" && backend.remote) for (const key of REMOTE_ONLY_KEYS) {
|
|
793
|
+
if (backend.remote[key] === void 0) continue;
|
|
794
|
+
ctx.addIssue({
|
|
795
|
+
code: "custom",
|
|
796
|
+
path: ["remote", key],
|
|
797
|
+
message: `remote.${key} applies only to a "remote" backend; this one is "${backend.kind}".`
|
|
798
|
+
});
|
|
799
|
+
}
|
|
772
800
|
const url = backend.remote?.url;
|
|
773
801
|
const graphqlRef = resolved ? void 0 : endpointsGraphqlRef(url);
|
|
774
802
|
if (graphqlRef) ctx.addIssue({
|
|
@@ -797,7 +825,19 @@ function buildHostSchemas(tokenField) {
|
|
|
797
825
|
/** Declared drive slug → backend name. A local backend keeps a
|
|
798
826
|
* synced copy; the drive's own remote backend opens it there with
|
|
799
827
|
* no copy. An unlisted drive keeps a synced copy. */
|
|
800
|
-
drives: z.record(z.string().min(1), z.string().min(1)).optional()
|
|
828
|
+
drives: z.record(z.string().min(1), z.string().min(1)).optional(),
|
|
829
|
+
/** The backend new drives (and documents outside a drive) are
|
|
830
|
+
* created on. A switchboard keeps no copy in this browser.
|
|
831
|
+
* Default: the browser reactor, else the only switchboard. */
|
|
832
|
+
newDrives: z.string().min(1).optional()
|
|
833
|
+
}).optional(),
|
|
834
|
+
router: z.strictObject({
|
|
835
|
+
/** Wait this long for a reactor to say whether it holds a
|
|
836
|
+
* document. 0: no bound. Default 3_000. */
|
|
837
|
+
probeTimeoutMs: z.number().int().nonnegative().optional(),
|
|
838
|
+
/** Look again after this long for a document found on a later
|
|
839
|
+
* backend. Default 30_000. */
|
|
840
|
+
provisionalRouteMs: z.number().int().nonnegative().optional()
|
|
801
841
|
}).optional(),
|
|
802
842
|
protocol: reactorProtocolSchema.optional(),
|
|
803
843
|
/** DEPRECATED (dies in R2): workflows become a listed plugin. */
|
|
@@ -823,6 +863,12 @@ function buildHostSchemas(tokenField) {
|
|
|
823
863
|
message: `placement.drives.${slug} names backend "${name}", which is not in backends (${Object.keys(backends).join(", ") || "none"}).`
|
|
824
864
|
});
|
|
825
865
|
}
|
|
866
|
+
const newDrives = reactor.placement?.newDrives;
|
|
867
|
+
if (newDrives !== void 0 && !Object.hasOwn(backends, newDrives)) ctx.addIssue({
|
|
868
|
+
code: "custom",
|
|
869
|
+
path: ["placement", "newDrives"],
|
|
870
|
+
message: `placement.newDrives names backend "${newDrives}", which is not in backends (${Object.keys(backends).join(", ") || "none"}).`
|
|
871
|
+
});
|
|
826
872
|
if (resolved) refineResolvedReactor(reactor, ctx);
|
|
827
873
|
});
|
|
828
874
|
/** Common runner options; runner modules extend it with their own. */
|
|
@@ -878,11 +924,11 @@ function buildHostSchemas(tokenField) {
|
|
|
878
924
|
function makeHostSchemas(options) {
|
|
879
925
|
return buildHostSchemas(options.tokens === "allow" ? ALLOW_TOKENS : FORBID_TOKENS);
|
|
880
926
|
}
|
|
881
|
-
/**
|
|
882
|
-
function
|
|
927
|
+
/** The issues a host-level refinement raises, outside a zod parse. */
|
|
928
|
+
function collectIssues(host, refine) {
|
|
883
929
|
if (typeof host !== "object" || host === null || !("reactor" in host)) return [];
|
|
884
930
|
const issues = [];
|
|
885
|
-
|
|
931
|
+
refine(host, { addIssue: (issue) => {
|
|
886
932
|
issues.push({
|
|
887
933
|
path: (issue.path ?? []).filter((part) => typeof part !== "symbol"),
|
|
888
934
|
message: issue.message ?? ""
|
|
@@ -890,6 +936,46 @@ function placementKeyIssues(host) {
|
|
|
890
936
|
} });
|
|
891
937
|
return issues;
|
|
892
938
|
}
|
|
939
|
+
/** withPlacementKeys' check, for a merged declared host parsed some other way. */
|
|
940
|
+
function placementKeyIssues(host) {
|
|
941
|
+
return collectIssues(host, refineDeclaredPlacementKeys);
|
|
942
|
+
}
|
|
943
|
+
const CONNECT_PRIMARY_MESSAGE = "Connect doesn't use placement.primary. To choose where new drives go, use placement.newDrives.";
|
|
944
|
+
/**
|
|
945
|
+
* A Connect host's placement rules, in either form. The router's primary is
|
|
946
|
+
* the browser reactor, else the `newDrives` switchboard, else the only one,
|
|
947
|
+
* so `placement.primary` means nothing here, and a Connect with several
|
|
948
|
+
* switchboards and no browser reactor must say where new drives go. Apply it
|
|
949
|
+
* last to the Connect runner's schema: `.superRefine(refineConnectReactor)`.
|
|
950
|
+
*/
|
|
951
|
+
function refineConnectReactor(host, ctx) {
|
|
952
|
+
const reactor = host.reactor;
|
|
953
|
+
if (!reactor) return;
|
|
954
|
+
if (reactor.placement?.primary !== void 0) ctx.addIssue({
|
|
955
|
+
code: "custom",
|
|
956
|
+
path: [
|
|
957
|
+
"reactor",
|
|
958
|
+
"placement",
|
|
959
|
+
"primary"
|
|
960
|
+
],
|
|
961
|
+
message: CONNECT_PRIMARY_MESSAGE
|
|
962
|
+
});
|
|
963
|
+
const backends = Object.entries(reactor.backends ?? {});
|
|
964
|
+
const remotes = backends.filter(([, backend]) => backend.kind === "remote").map(([name]) => name);
|
|
965
|
+
if (remotes.length > 1 && remotes.length === backends.length && reactor.placement?.newDrives === void 0) ctx.addIssue({
|
|
966
|
+
code: "custom",
|
|
967
|
+
path: [
|
|
968
|
+
"reactor",
|
|
969
|
+
"placement",
|
|
970
|
+
"newDrives"
|
|
971
|
+
],
|
|
972
|
+
message: `This Connect keeps no reactor in the browser and links ${remotes.length} switchboards (${remotes.join(", ")}). Set placement.newDrives to the one new drives are created on.`
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
/** refineConnectReactor's check, for a Connect host parsed some other way. */
|
|
976
|
+
function connectReactorIssues(host) {
|
|
977
|
+
return collectIssues(host, refineConnectReactor);
|
|
978
|
+
}
|
|
893
979
|
/** Adds the host-level placement key check to a runner's declared schema. */
|
|
894
980
|
function withPlacementKeys(schema) {
|
|
895
981
|
if (!(schema instanceof z.ZodType)) return schema;
|
|
@@ -3127,6 +3213,6 @@ async function prepareMember(projectRoot, key, member) {
|
|
|
3127
3213
|
};
|
|
3128
3214
|
}
|
|
3129
3215
|
//#endregion
|
|
3130
|
-
export { resolveHostOutputs as $,
|
|
3216
|
+
export { resolveHostOutputs as $, projectDriveIdWith as $t, findNonStaticValue as A, runObserveHook as An, declaredGenericCompoundHostSchema as At, ONE_SHOT_VERBS as B, profileSchema as Bt, writeRunRecord as C, mergeContributions as Cn, HOST_NAME_MESSAGE as Ct, OUTPUTS_FILE as D, pluginEntrySchema as Dn, compoundHostSchema as Dt, HostLoadError as E, pluginEntryObjectSchema as En, childrenSchema as Et, probeHostsFolder as F, genericCompoundHostSchema as Ft, kindShapeIssues as G, reactorSchema as Gt, getVerb as H, reactorBackendSchema as Ht, readOutputsFileHash as I, hostNameSchema as It, resolveRunnerModule as J, runnerBaseSchema as Jt, knownVerbIssues as K, refineConnectReactor as Kt, scanHostImports as L, makeHostSchemas as Lt, lintHostImports as M, runProvideHook as Mn, defineHostSchemas as Mt, lintOutputsFile as N, runTransformHook as Nn, emitHostJsonSchema as Nt, computeOutputsHash as O, registerHostType as On, compoundWiringSchema as Ot, loadHost as P, emittedHostSchemas as Pt, describeMapElements as Q, drivesSchema as Qt, stripComments as R, originOrUrlSchema as Rt, readRunRecord as S, hostTypeSatisfies as Sn, HOST_NAME_MAX_LENGTH as St, runRecordSchema as T, normalizePluginEntry as Tn, childWrapperSchema as Tt, hostSchemaIssues as U, reactorHostSchema as Ut, RunnerError as V, reactorBackendKindSchema as Vt, isSchemaLike as W, reactorProtocolSchema as Wt, validateHost as X, buildDriveDeclarationSchema as Xt, validateDeclaredHost as Y, runnerKindSchema as Yt, TokenResolutionError as Z, driveDeclarationSchema as Zt, clearRunRecord as _, findDeadConnectConfig as _n, formatPath as _t, takesCspRegistrySync as a, findToken as an, isBuiltinEnvName as at, probeRun as b, PluginError as bn, unwrapEscapes as bt, compoundOutputSource as c, itemTokenSchema as cn, checkOutputPaths as ct, producerOutputsSchemas as d, outputTokenSchema as dn, outputRefsOf as dt, TOKEN_ESCAPE_KEY as en, unsetEnvMessage as et, runRecordOutputSource as f, ref as fn, outputSitesOf as ft, applyChildWrapper as g, CONNECT_PLUGIN_OWNED_SLICES as gn, describeToken as gt, resolveUserDataPlaceholders as h, tokenable as hn, collectTokenSites as ht, runCompound as i, envTokenable as in, BUILTIN_ENV_NAMES as it, lintHostImportGraph as j, runObserveHookSequential as jn, declaredHostSchemas as jt, describeHostOutputs as k, resolveOrder as kn, connectReactorIssues as kt, loadProducers as l, keyTokenSchema as ln, checkTokenSites as lt, defaultUserDataDir as m, tokenSchema as mn, schemaAtPath as mt, memberVerbOf as n, concatTokenSchema as nn, memberForRef as nt, runnerHandleSchema as o, forbidRef as on, substituteBuiltinEnv as ot, runnerOutputsSchema as p, tokenKeyOf as pn, refKey as pt, listVerbs as q, refineStartOrder as qt, prepareMember as r, envTokenSchema as rn, planCompound as rt, toStartedHandle as s, isToken as sn, findRemovedForms as st, compoundStartVerb as t, TOKEN_KEYS as tn, PlanError as tt, processResolveEnv as u, mapTokenSchema as un, envSitesOf as ut, isPidAlive as v, resolveHostPlugins as vn, isPlainObject as vt, runRecordMemberSchema as w, normalizePluginEntries as wn, HOST_NAME_PATTERN as wt, readProjectName as x, entryActiveForVerb as xn, CONNECT_PRIMARY_MESSAGE as xt, listRunRecords as y, resolvePluginContributions as yn, renderTokens as yt, CONNECT_RUNNER as z, placementKeyIssues as zt };
|
|
3131
3217
|
|
|
3132
|
-
//# sourceMappingURL=compound-
|
|
3218
|
+
//# sourceMappingURL=compound-BZb3tR_c.mjs.map
|