@arcadia-eternity/content-sdk 4.9.1 → 4.11.0
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/content-workspace.d.ts +68 -42
- package/dist/content-workspace.js +46 -6
- package/dist/debug-environments.d.ts +50 -130
- package/dist/debug-environments.js +2 -2
- package/dist/environment-host-base.d.ts +18 -42
- package/dist/environment-host-base.js +1 -1
- package/dist/environment-rules.d.ts +189 -176
- package/dist/environment-rules.js +23 -11
- package/dist/mcp-contracts.d.ts +50 -130
- package/dist/prepared-document.d.ts +51 -126
- package/dist/rule-composition.d.ts +19 -191
- package/dist/rule-composition.js +11 -219
- package/dist/template/package.json +2 -2
- package/dist/testing.js +5 -3
- package/package.json +5 -5
package/dist/mcp-contracts.d.ts
CHANGED
|
@@ -335,6 +335,31 @@ export declare const outputSchemas: {
|
|
|
335
335
|
max: z.ZodNumber;
|
|
336
336
|
}, z.core.$strict>>;
|
|
337
337
|
allowFaintSwitch: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
timer: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
enabled: z.ZodBoolean;
|
|
340
|
+
turnTimeLimit: z.ZodOptional<z.ZodNumber>;
|
|
341
|
+
totalTimeLimit: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
animationPauseEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
maxAnimationDuration: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
}, z.core.$strict>>;
|
|
345
|
+
teamSelection: z.ZodOptional<z.ZodObject<{
|
|
346
|
+
enabled: z.ZodBoolean;
|
|
347
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
348
|
+
FULL_TEAM: "FULL_TEAM";
|
|
349
|
+
TEAM_SELECTION: "TEAM_SELECTION";
|
|
350
|
+
VIEW_ONLY: "VIEW_ONLY";
|
|
351
|
+
}>>;
|
|
352
|
+
minTeamSize: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
maxTeamSize: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
allowStarterSelection: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
showOpponentTeam: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
teamInfoVisibility: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
BASIC: "BASIC";
|
|
358
|
+
FULL: "FULL";
|
|
359
|
+
HIDDEN: "HIDDEN";
|
|
360
|
+
}>>;
|
|
361
|
+
timeLimit: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
}, z.core.$strict>>;
|
|
338
363
|
inheritance: z.ZodOptional<z.ZodObject<{
|
|
339
364
|
eligible: z.ZodUnion<readonly [z.ZodEnum<{
|
|
340
365
|
all: "all";
|
|
@@ -471,71 +496,6 @@ export declare const outputSchemas: {
|
|
|
471
496
|
}>;
|
|
472
497
|
ids: z.ZodArray<z.ZodString>;
|
|
473
498
|
}, z.core.$strict>>>;
|
|
474
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
475
|
-
constraintEdits: z.ZodOptional<z.ZodObject<{
|
|
476
|
-
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
477
|
-
replace: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
-
id: z.ZodString;
|
|
479
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
480
|
-
kind: z.ZodEnum<{
|
|
481
|
-
mark: "mark";
|
|
482
|
-
skill: "skill";
|
|
483
|
-
species: "species";
|
|
484
|
-
}>;
|
|
485
|
-
ids: z.ZodArray<z.ZodString>;
|
|
486
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
487
|
-
}, z.core.$strict>>;
|
|
488
|
-
kind: z.ZodLiteral<"ban">;
|
|
489
|
-
scope: z.ZodEnum<{
|
|
490
|
-
pet: "pet";
|
|
491
|
-
team: "team";
|
|
492
|
-
}>;
|
|
493
|
-
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
494
|
-
kind: z.ZodEnum<{
|
|
495
|
-
mark: "mark";
|
|
496
|
-
skill: "skill";
|
|
497
|
-
species: "species";
|
|
498
|
-
}>;
|
|
499
|
-
ids: z.ZodArray<z.ZodString>;
|
|
500
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
501
|
-
}, z.core.$strict>>>;
|
|
502
|
-
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
503
|
-
kind: z.ZodEnum<{
|
|
504
|
-
mark: "mark";
|
|
505
|
-
skill: "skill";
|
|
506
|
-
species: "species";
|
|
507
|
-
}>;
|
|
508
|
-
ids: z.ZodArray<z.ZodString>;
|
|
509
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
510
|
-
}, z.core.$strict>>>>;
|
|
511
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
512
|
-
id: z.ZodString;
|
|
513
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
514
|
-
kind: z.ZodEnum<{
|
|
515
|
-
mark: "mark";
|
|
516
|
-
skill: "skill";
|
|
517
|
-
species: "species";
|
|
518
|
-
}>;
|
|
519
|
-
ids: z.ZodArray<z.ZodString>;
|
|
520
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
521
|
-
}, z.core.$strict>>;
|
|
522
|
-
kind: z.ZodLiteral<"memberLimit">;
|
|
523
|
-
max: z.ZodNumber;
|
|
524
|
-
}, z.core.$strict>], "kind">>>;
|
|
525
|
-
clearExceptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
526
|
-
exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
527
|
-
target: z.ZodString;
|
|
528
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
529
|
-
kind: z.ZodEnum<{
|
|
530
|
-
mark: "mark";
|
|
531
|
-
skill: "skill";
|
|
532
|
-
species: "species";
|
|
533
|
-
}>;
|
|
534
|
-
ids: z.ZodArray<z.ZodString>;
|
|
535
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
536
|
-
}, z.core.$strict>>;
|
|
537
|
-
}, z.core.$strict>>>;
|
|
538
|
-
}, z.core.$strict>>;
|
|
539
499
|
}, z.core.$strict>;
|
|
540
500
|
requires: z.ZodObject<{
|
|
541
501
|
engine: z.ZodOptional<z.ZodString>;
|
|
@@ -571,6 +531,31 @@ export declare const outputSchemas: {
|
|
|
571
531
|
max: z.ZodNumber;
|
|
572
532
|
}, z.core.$strict>>;
|
|
573
533
|
allowFaintSwitch: z.ZodOptional<z.ZodBoolean>;
|
|
534
|
+
timer: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
enabled: z.ZodBoolean;
|
|
536
|
+
turnTimeLimit: z.ZodOptional<z.ZodNumber>;
|
|
537
|
+
totalTimeLimit: z.ZodOptional<z.ZodNumber>;
|
|
538
|
+
animationPauseEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
+
maxAnimationDuration: z.ZodOptional<z.ZodNumber>;
|
|
540
|
+
}, z.core.$strict>>;
|
|
541
|
+
teamSelection: z.ZodOptional<z.ZodObject<{
|
|
542
|
+
enabled: z.ZodBoolean;
|
|
543
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
FULL_TEAM: "FULL_TEAM";
|
|
545
|
+
TEAM_SELECTION: "TEAM_SELECTION";
|
|
546
|
+
VIEW_ONLY: "VIEW_ONLY";
|
|
547
|
+
}>>;
|
|
548
|
+
minTeamSize: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
maxTeamSize: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
allowStarterSelection: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
+
showOpponentTeam: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
+
teamInfoVisibility: z.ZodOptional<z.ZodEnum<{
|
|
553
|
+
BASIC: "BASIC";
|
|
554
|
+
FULL: "FULL";
|
|
555
|
+
HIDDEN: "HIDDEN";
|
|
556
|
+
}>>;
|
|
557
|
+
timeLimit: z.ZodOptional<z.ZodNumber>;
|
|
558
|
+
}, z.core.$strict>>;
|
|
574
559
|
inheritance: z.ZodOptional<z.ZodObject<{
|
|
575
560
|
eligible: z.ZodUnion<readonly [z.ZodEnum<{
|
|
576
561
|
all: "all";
|
|
@@ -707,71 +692,6 @@ export declare const outputSchemas: {
|
|
|
707
692
|
}>;
|
|
708
693
|
ids: z.ZodArray<z.ZodString>;
|
|
709
694
|
}, z.core.$strict>>>;
|
|
710
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
711
|
-
constraintEdits: z.ZodOptional<z.ZodObject<{
|
|
712
|
-
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
713
|
-
replace: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
714
|
-
id: z.ZodString;
|
|
715
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
716
|
-
kind: z.ZodEnum<{
|
|
717
|
-
mark: "mark";
|
|
718
|
-
skill: "skill";
|
|
719
|
-
species: "species";
|
|
720
|
-
}>;
|
|
721
|
-
ids: z.ZodArray<z.ZodString>;
|
|
722
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
723
|
-
}, z.core.$strict>>;
|
|
724
|
-
kind: z.ZodLiteral<"ban">;
|
|
725
|
-
scope: z.ZodEnum<{
|
|
726
|
-
pet: "pet";
|
|
727
|
-
team: "team";
|
|
728
|
-
}>;
|
|
729
|
-
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
|
-
kind: z.ZodEnum<{
|
|
731
|
-
mark: "mark";
|
|
732
|
-
skill: "skill";
|
|
733
|
-
species: "species";
|
|
734
|
-
}>;
|
|
735
|
-
ids: z.ZodArray<z.ZodString>;
|
|
736
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
737
|
-
}, z.core.$strict>>>;
|
|
738
|
-
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
739
|
-
kind: z.ZodEnum<{
|
|
740
|
-
mark: "mark";
|
|
741
|
-
skill: "skill";
|
|
742
|
-
species: "species";
|
|
743
|
-
}>;
|
|
744
|
-
ids: z.ZodArray<z.ZodString>;
|
|
745
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
746
|
-
}, z.core.$strict>>>>;
|
|
747
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
748
|
-
id: z.ZodString;
|
|
749
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
750
|
-
kind: z.ZodEnum<{
|
|
751
|
-
mark: "mark";
|
|
752
|
-
skill: "skill";
|
|
753
|
-
species: "species";
|
|
754
|
-
}>;
|
|
755
|
-
ids: z.ZodArray<z.ZodString>;
|
|
756
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
757
|
-
}, z.core.$strict>>;
|
|
758
|
-
kind: z.ZodLiteral<"memberLimit">;
|
|
759
|
-
max: z.ZodNumber;
|
|
760
|
-
}, z.core.$strict>], "kind">>>;
|
|
761
|
-
clearExceptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
762
|
-
exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
763
|
-
target: z.ZodString;
|
|
764
|
-
allOf: z.ZodArray<z.ZodObject<{
|
|
765
|
-
kind: z.ZodEnum<{
|
|
766
|
-
mark: "mark";
|
|
767
|
-
skill: "skill";
|
|
768
|
-
species: "species";
|
|
769
|
-
}>;
|
|
770
|
-
ids: z.ZodArray<z.ZodString>;
|
|
771
|
-
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
772
|
-
}, z.core.$strict>>;
|
|
773
|
-
}, z.core.$strict>>>;
|
|
774
|
-
}, z.core.$strict>>;
|
|
775
695
|
}, z.core.$strict>;
|
|
776
696
|
requires: z.ZodObject<{
|
|
777
697
|
engine: z.ZodOptional<z.ZodString>;
|
|
@@ -19,6 +19,23 @@ export declare function parseManifestDraft(text: string): {
|
|
|
19
19
|
max: number;
|
|
20
20
|
} | undefined;
|
|
21
21
|
allowFaintSwitch?: boolean | undefined;
|
|
22
|
+
timer?: {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
turnTimeLimit?: number | undefined;
|
|
25
|
+
totalTimeLimit?: number | undefined;
|
|
26
|
+
animationPauseEnabled?: boolean | undefined;
|
|
27
|
+
maxAnimationDuration?: number | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
teamSelection?: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
mode?: "FULL_TEAM" | "TEAM_SELECTION" | "VIEW_ONLY" | undefined;
|
|
32
|
+
minTeamSize?: number | undefined;
|
|
33
|
+
maxTeamSize?: number | undefined;
|
|
34
|
+
allowStarterSelection?: boolean | undefined;
|
|
35
|
+
showOpponentTeam?: boolean | undefined;
|
|
36
|
+
teamInfoVisibility?: "BASIC" | "FULL" | "HIDDEN" | undefined;
|
|
37
|
+
timeLimit?: number | undefined;
|
|
38
|
+
} | undefined;
|
|
22
39
|
inheritance?: {
|
|
23
40
|
eligible: "all" | "off" | "species" | string[];
|
|
24
41
|
pool?: {
|
|
@@ -110,48 +127,6 @@ export declare function parseManifestDraft(text: string): {
|
|
|
110
127
|
kind: "mark" | "skill" | "species";
|
|
111
128
|
ids: string[];
|
|
112
129
|
}[] | undefined;
|
|
113
|
-
include?: string[] | undefined;
|
|
114
|
-
constraintEdits?: {
|
|
115
|
-
remove?: string[] | undefined;
|
|
116
|
-
replace?: ({
|
|
117
|
-
id: string;
|
|
118
|
-
allOf: {
|
|
119
|
-
kind: "mark" | "skill" | "species";
|
|
120
|
-
ids: string[];
|
|
121
|
-
fromCollections?: string[] | undefined;
|
|
122
|
-
}[];
|
|
123
|
-
kind: "ban";
|
|
124
|
-
scope: "pet" | "team";
|
|
125
|
-
exceptWhen?: {
|
|
126
|
-
kind: "mark" | "skill" | "species";
|
|
127
|
-
ids: string[];
|
|
128
|
-
fromCollections?: string[] | undefined;
|
|
129
|
-
}[] | undefined;
|
|
130
|
-
exceptAny?: {
|
|
131
|
-
kind: "mark" | "skill" | "species";
|
|
132
|
-
ids: string[];
|
|
133
|
-
fromCollections?: string[] | undefined;
|
|
134
|
-
}[][] | undefined;
|
|
135
|
-
} | {
|
|
136
|
-
id: string;
|
|
137
|
-
allOf: {
|
|
138
|
-
kind: "mark" | "skill" | "species";
|
|
139
|
-
ids: string[];
|
|
140
|
-
fromCollections?: string[] | undefined;
|
|
141
|
-
}[];
|
|
142
|
-
kind: "memberLimit";
|
|
143
|
-
max: number;
|
|
144
|
-
})[] | undefined;
|
|
145
|
-
clearExceptions?: string[] | undefined;
|
|
146
|
-
exceptions?: {
|
|
147
|
-
target: string;
|
|
148
|
-
allOf: {
|
|
149
|
-
kind: "mark" | "skill" | "species";
|
|
150
|
-
ids: string[];
|
|
151
|
-
fromCollections?: string[] | undefined;
|
|
152
|
-
}[];
|
|
153
|
-
}[] | undefined;
|
|
154
|
-
} | undefined;
|
|
155
130
|
};
|
|
156
131
|
requires: {
|
|
157
132
|
engine?: string | undefined;
|
|
@@ -180,6 +155,23 @@ export declare function preparedDocument(metadata: UnknownRecord, legacyManifest
|
|
|
180
155
|
max: number;
|
|
181
156
|
} | undefined;
|
|
182
157
|
allowFaintSwitch?: boolean | undefined;
|
|
158
|
+
timer?: {
|
|
159
|
+
enabled: boolean;
|
|
160
|
+
turnTimeLimit?: number | undefined;
|
|
161
|
+
totalTimeLimit?: number | undefined;
|
|
162
|
+
animationPauseEnabled?: boolean | undefined;
|
|
163
|
+
maxAnimationDuration?: number | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
teamSelection?: {
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
mode?: "FULL_TEAM" | "TEAM_SELECTION" | "VIEW_ONLY" | undefined;
|
|
168
|
+
minTeamSize?: number | undefined;
|
|
169
|
+
maxTeamSize?: number | undefined;
|
|
170
|
+
allowStarterSelection?: boolean | undefined;
|
|
171
|
+
showOpponentTeam?: boolean | undefined;
|
|
172
|
+
teamInfoVisibility?: "BASIC" | "FULL" | "HIDDEN" | undefined;
|
|
173
|
+
timeLimit?: number | undefined;
|
|
174
|
+
} | undefined;
|
|
183
175
|
inheritance?: {
|
|
184
176
|
eligible: "all" | "off" | "species" | string[];
|
|
185
177
|
pool?: {
|
|
@@ -271,48 +263,6 @@ export declare function preparedDocument(metadata: UnknownRecord, legacyManifest
|
|
|
271
263
|
kind: "mark" | "skill" | "species";
|
|
272
264
|
ids: string[];
|
|
273
265
|
}[] | undefined;
|
|
274
|
-
include?: string[] | undefined;
|
|
275
|
-
constraintEdits?: {
|
|
276
|
-
remove?: string[] | undefined;
|
|
277
|
-
replace?: ({
|
|
278
|
-
id: string;
|
|
279
|
-
allOf: {
|
|
280
|
-
kind: "mark" | "skill" | "species";
|
|
281
|
-
ids: string[];
|
|
282
|
-
fromCollections?: string[] | undefined;
|
|
283
|
-
}[];
|
|
284
|
-
kind: "ban";
|
|
285
|
-
scope: "pet" | "team";
|
|
286
|
-
exceptWhen?: {
|
|
287
|
-
kind: "mark" | "skill" | "species";
|
|
288
|
-
ids: string[];
|
|
289
|
-
fromCollections?: string[] | undefined;
|
|
290
|
-
}[] | undefined;
|
|
291
|
-
exceptAny?: {
|
|
292
|
-
kind: "mark" | "skill" | "species";
|
|
293
|
-
ids: string[];
|
|
294
|
-
fromCollections?: string[] | undefined;
|
|
295
|
-
}[][] | undefined;
|
|
296
|
-
} | {
|
|
297
|
-
id: string;
|
|
298
|
-
allOf: {
|
|
299
|
-
kind: "mark" | "skill" | "species";
|
|
300
|
-
ids: string[];
|
|
301
|
-
fromCollections?: string[] | undefined;
|
|
302
|
-
}[];
|
|
303
|
-
kind: "memberLimit";
|
|
304
|
-
max: number;
|
|
305
|
-
})[] | undefined;
|
|
306
|
-
clearExceptions?: string[] | undefined;
|
|
307
|
-
exceptions?: {
|
|
308
|
-
target: string;
|
|
309
|
-
allOf: {
|
|
310
|
-
kind: "mark" | "skill" | "species";
|
|
311
|
-
ids: string[];
|
|
312
|
-
fromCollections?: string[] | undefined;
|
|
313
|
-
}[];
|
|
314
|
-
}[] | undefined;
|
|
315
|
-
} | undefined;
|
|
316
266
|
};
|
|
317
267
|
requires: {
|
|
318
268
|
engine?: string | undefined;
|
|
@@ -340,6 +290,23 @@ export declare function readInstalledEnvironmentDocument(directory: string, cont
|
|
|
340
290
|
max: number;
|
|
341
291
|
} | undefined;
|
|
342
292
|
allowFaintSwitch?: boolean | undefined;
|
|
293
|
+
timer?: {
|
|
294
|
+
enabled: boolean;
|
|
295
|
+
turnTimeLimit?: number | undefined;
|
|
296
|
+
totalTimeLimit?: number | undefined;
|
|
297
|
+
animationPauseEnabled?: boolean | undefined;
|
|
298
|
+
maxAnimationDuration?: number | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
teamSelection?: {
|
|
301
|
+
enabled: boolean;
|
|
302
|
+
mode?: "FULL_TEAM" | "TEAM_SELECTION" | "VIEW_ONLY" | undefined;
|
|
303
|
+
minTeamSize?: number | undefined;
|
|
304
|
+
maxTeamSize?: number | undefined;
|
|
305
|
+
allowStarterSelection?: boolean | undefined;
|
|
306
|
+
showOpponentTeam?: boolean | undefined;
|
|
307
|
+
teamInfoVisibility?: "BASIC" | "FULL" | "HIDDEN" | undefined;
|
|
308
|
+
timeLimit?: number | undefined;
|
|
309
|
+
} | undefined;
|
|
343
310
|
inheritance?: {
|
|
344
311
|
eligible: "all" | "off" | "species" | string[];
|
|
345
312
|
pool?: {
|
|
@@ -431,48 +398,6 @@ export declare function readInstalledEnvironmentDocument(directory: string, cont
|
|
|
431
398
|
kind: "mark" | "skill" | "species";
|
|
432
399
|
ids: string[];
|
|
433
400
|
}[] | undefined;
|
|
434
|
-
include?: string[] | undefined;
|
|
435
|
-
constraintEdits?: {
|
|
436
|
-
remove?: string[] | undefined;
|
|
437
|
-
replace?: ({
|
|
438
|
-
id: string;
|
|
439
|
-
allOf: {
|
|
440
|
-
kind: "mark" | "skill" | "species";
|
|
441
|
-
ids: string[];
|
|
442
|
-
fromCollections?: string[] | undefined;
|
|
443
|
-
}[];
|
|
444
|
-
kind: "ban";
|
|
445
|
-
scope: "pet" | "team";
|
|
446
|
-
exceptWhen?: {
|
|
447
|
-
kind: "mark" | "skill" | "species";
|
|
448
|
-
ids: string[];
|
|
449
|
-
fromCollections?: string[] | undefined;
|
|
450
|
-
}[] | undefined;
|
|
451
|
-
exceptAny?: {
|
|
452
|
-
kind: "mark" | "skill" | "species";
|
|
453
|
-
ids: string[];
|
|
454
|
-
fromCollections?: string[] | undefined;
|
|
455
|
-
}[][] | undefined;
|
|
456
|
-
} | {
|
|
457
|
-
id: string;
|
|
458
|
-
allOf: {
|
|
459
|
-
kind: "mark" | "skill" | "species";
|
|
460
|
-
ids: string[];
|
|
461
|
-
fromCollections?: string[] | undefined;
|
|
462
|
-
}[];
|
|
463
|
-
kind: "memberLimit";
|
|
464
|
-
max: number;
|
|
465
|
-
})[] | undefined;
|
|
466
|
-
clearExceptions?: string[] | undefined;
|
|
467
|
-
exceptions?: {
|
|
468
|
-
target: string;
|
|
469
|
-
allOf: {
|
|
470
|
-
kind: "mark" | "skill" | "species";
|
|
471
|
-
ids: string[];
|
|
472
|
-
fromCollections?: string[] | undefined;
|
|
473
|
-
}[];
|
|
474
|
-
}[] | undefined;
|
|
475
|
-
} | undefined;
|
|
476
401
|
};
|
|
477
402
|
requires: {
|
|
478
403
|
engine?: string | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export declare function composeRuleSets(input: unknown, definitions: readonly unknown[], validate: ValidateRules): {
|
|
1
|
+
import { type IndependentEnvironmentRules } from '@arcadia-eternity/const';
|
|
2
|
+
export declare function resolveDeclaredRules({ collections: lists, constraints, ...local }: IndependentEnvironmentRules): {
|
|
4
3
|
rules: {
|
|
5
4
|
schemaVersion: 1 | 2;
|
|
6
5
|
constraints?: ({
|
|
@@ -39,6 +38,23 @@ export declare function composeRuleSets(input: unknown, definitions: readonly un
|
|
|
39
38
|
max: number;
|
|
40
39
|
} | undefined;
|
|
41
40
|
allowFaintSwitch?: boolean | undefined;
|
|
41
|
+
timer?: {
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
turnTimeLimit?: number | undefined;
|
|
44
|
+
totalTimeLimit?: number | undefined;
|
|
45
|
+
animationPauseEnabled?: boolean | undefined;
|
|
46
|
+
maxAnimationDuration?: number | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
teamSelection?: {
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
mode?: "FULL_TEAM" | "TEAM_SELECTION" | "VIEW_ONLY" | undefined;
|
|
51
|
+
minTeamSize?: number | undefined;
|
|
52
|
+
maxTeamSize?: number | undefined;
|
|
53
|
+
allowStarterSelection?: boolean | undefined;
|
|
54
|
+
showOpponentTeam?: boolean | undefined;
|
|
55
|
+
teamInfoVisibility?: "BASIC" | "FULL" | "HIDDEN" | undefined;
|
|
56
|
+
timeLimit?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
42
58
|
inheritance?: {
|
|
43
59
|
eligible: "all" | "off" | "species" | string[];
|
|
44
60
|
pool?: {
|
|
@@ -97,198 +113,10 @@ export declare function composeRuleSets(input: unknown, definitions: readonly un
|
|
|
97
113
|
uniqueSpecies?: boolean | undefined;
|
|
98
114
|
} | undefined;
|
|
99
115
|
};
|
|
100
|
-
declarations: {
|
|
101
|
-
constraints: ({
|
|
102
|
-
id: string;
|
|
103
|
-
allOf: {
|
|
104
|
-
kind: "mark" | "skill" | "species";
|
|
105
|
-
ids: string[];
|
|
106
|
-
fromCollections?: string[] | undefined;
|
|
107
|
-
}[];
|
|
108
|
-
kind: "ban";
|
|
109
|
-
scope: "pet" | "team";
|
|
110
|
-
exceptWhen?: {
|
|
111
|
-
kind: "mark" | "skill" | "species";
|
|
112
|
-
ids: string[];
|
|
113
|
-
fromCollections?: string[] | undefined;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
exceptAny?: {
|
|
116
|
-
kind: "mark" | "skill" | "species";
|
|
117
|
-
ids: string[];
|
|
118
|
-
fromCollections?: string[] | undefined;
|
|
119
|
-
}[][] | undefined;
|
|
120
|
-
} | {
|
|
121
|
-
id: string;
|
|
122
|
-
allOf: {
|
|
123
|
-
kind: "mark" | "skill" | "species";
|
|
124
|
-
ids: string[];
|
|
125
|
-
fromCollections?: string[] | undefined;
|
|
126
|
-
}[];
|
|
127
|
-
kind: "memberLimit";
|
|
128
|
-
max: number;
|
|
129
|
-
})[];
|
|
130
|
-
collections: {
|
|
131
|
-
id: string;
|
|
132
|
-
kind: "mark" | "skill" | "species";
|
|
133
|
-
ids: string[];
|
|
134
|
-
}[];
|
|
135
|
-
};
|
|
136
116
|
fields: {
|
|
137
117
|
path: string[];
|
|
138
118
|
value: unknown;
|
|
139
119
|
sources: string[];
|
|
140
120
|
effectiveSources: string[];
|
|
141
121
|
}[];
|
|
142
|
-
ruleSets: {
|
|
143
|
-
id: string;
|
|
144
|
-
name: string;
|
|
145
|
-
rules: {
|
|
146
|
-
schemaVersion: 1 | 2;
|
|
147
|
-
mechanics?: {
|
|
148
|
-
skillSlots?: {
|
|
149
|
-
normalMax: number;
|
|
150
|
-
climaxMax: number;
|
|
151
|
-
climaxMin?: number | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
individualValueDefault?: number | undefined;
|
|
154
|
-
individualValues?: {
|
|
155
|
-
max: number;
|
|
156
|
-
} | undefined;
|
|
157
|
-
allowFaintSwitch?: boolean | undefined;
|
|
158
|
-
inheritance?: {
|
|
159
|
-
eligible: "all" | "off" | "species" | string[];
|
|
160
|
-
pool?: {
|
|
161
|
-
mode: "append" | "fallback" | "replace";
|
|
162
|
-
skills: string[];
|
|
163
|
-
} | undefined;
|
|
164
|
-
} | undefined;
|
|
165
|
-
enhancement?: {
|
|
166
|
-
mode: "active" | "forbidden" | "suppressed";
|
|
167
|
-
minLevel?: number | undefined;
|
|
168
|
-
defaultBranches?: string[] | undefined;
|
|
169
|
-
stages?: string[] | undefined;
|
|
170
|
-
species?: string[] | undefined;
|
|
171
|
-
} | undefined;
|
|
172
|
-
secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
|
|
173
|
-
} | undefined;
|
|
174
|
-
skillParameters?: {
|
|
175
|
-
profile?: string | undefined;
|
|
176
|
-
groups?: Record<string, number> | undefined;
|
|
177
|
-
overrides?: {
|
|
178
|
-
skill: string;
|
|
179
|
-
useId: string;
|
|
180
|
-
parameter: string;
|
|
181
|
-
value: number;
|
|
182
|
-
}[] | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
matchups?: {
|
|
185
|
-
table?: string | undefined;
|
|
186
|
-
adjustments?: {
|
|
187
|
-
attack: string;
|
|
188
|
-
defense: string;
|
|
189
|
-
multiplier: number;
|
|
190
|
-
}[] | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
learnsetAdjustments?: {
|
|
193
|
-
species: string;
|
|
194
|
-
source: "inherited" | "normal";
|
|
195
|
-
skill: string;
|
|
196
|
-
action: "add" | "remove";
|
|
197
|
-
level?: number | undefined;
|
|
198
|
-
}[] | undefined;
|
|
199
|
-
tier?: "standard" | undefined;
|
|
200
|
-
allow?: {
|
|
201
|
-
species?: string[] | undefined;
|
|
202
|
-
skills?: string[] | undefined;
|
|
203
|
-
marks?: string[] | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
deny?: {
|
|
206
|
-
species?: string[] | undefined;
|
|
207
|
-
skills?: string[] | undefined;
|
|
208
|
-
marks?: string[] | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
team?: {
|
|
211
|
-
minSize?: number | undefined;
|
|
212
|
-
maxSize?: number | undefined;
|
|
213
|
-
uniqueSpecies?: boolean | undefined;
|
|
214
|
-
} | undefined;
|
|
215
|
-
constraints?: ({
|
|
216
|
-
id: string;
|
|
217
|
-
allOf: {
|
|
218
|
-
kind: "mark" | "skill" | "species";
|
|
219
|
-
ids: string[];
|
|
220
|
-
fromCollections?: string[] | undefined;
|
|
221
|
-
}[];
|
|
222
|
-
kind: "ban";
|
|
223
|
-
scope: "pet" | "team";
|
|
224
|
-
exceptWhen?: {
|
|
225
|
-
kind: "mark" | "skill" | "species";
|
|
226
|
-
ids: string[];
|
|
227
|
-
fromCollections?: string[] | undefined;
|
|
228
|
-
}[] | undefined;
|
|
229
|
-
exceptAny?: {
|
|
230
|
-
kind: "mark" | "skill" | "species";
|
|
231
|
-
ids: string[];
|
|
232
|
-
fromCollections?: string[] | undefined;
|
|
233
|
-
}[][] | undefined;
|
|
234
|
-
} | {
|
|
235
|
-
id: string;
|
|
236
|
-
allOf: {
|
|
237
|
-
kind: "mark" | "skill" | "species";
|
|
238
|
-
ids: string[];
|
|
239
|
-
fromCollections?: string[] | undefined;
|
|
240
|
-
}[];
|
|
241
|
-
kind: "memberLimit";
|
|
242
|
-
max: number;
|
|
243
|
-
})[] | undefined;
|
|
244
|
-
collections?: {
|
|
245
|
-
id: string;
|
|
246
|
-
kind: "mark" | "skill" | "species";
|
|
247
|
-
ids: string[];
|
|
248
|
-
}[] | undefined;
|
|
249
|
-
include?: string[] | undefined;
|
|
250
|
-
constraintEdits?: {
|
|
251
|
-
remove?: string[] | undefined;
|
|
252
|
-
replace?: ({
|
|
253
|
-
id: string;
|
|
254
|
-
allOf: {
|
|
255
|
-
kind: "mark" | "skill" | "species";
|
|
256
|
-
ids: string[];
|
|
257
|
-
fromCollections?: string[] | undefined;
|
|
258
|
-
}[];
|
|
259
|
-
kind: "ban";
|
|
260
|
-
scope: "pet" | "team";
|
|
261
|
-
exceptWhen?: {
|
|
262
|
-
kind: "mark" | "skill" | "species";
|
|
263
|
-
ids: string[];
|
|
264
|
-
fromCollections?: string[] | undefined;
|
|
265
|
-
}[] | undefined;
|
|
266
|
-
exceptAny?: {
|
|
267
|
-
kind: "mark" | "skill" | "species";
|
|
268
|
-
ids: string[];
|
|
269
|
-
fromCollections?: string[] | undefined;
|
|
270
|
-
}[][] | undefined;
|
|
271
|
-
} | {
|
|
272
|
-
id: string;
|
|
273
|
-
allOf: {
|
|
274
|
-
kind: "mark" | "skill" | "species";
|
|
275
|
-
ids: string[];
|
|
276
|
-
fromCollections?: string[] | undefined;
|
|
277
|
-
}[];
|
|
278
|
-
kind: "memberLimit";
|
|
279
|
-
max: number;
|
|
280
|
-
})[] | undefined;
|
|
281
|
-
clearExceptions?: string[] | undefined;
|
|
282
|
-
exceptions?: {
|
|
283
|
-
target: string;
|
|
284
|
-
allOf: {
|
|
285
|
-
kind: "mark" | "skill" | "species";
|
|
286
|
-
ids: string[];
|
|
287
|
-
fromCollections?: string[] | undefined;
|
|
288
|
-
}[];
|
|
289
|
-
}[] | undefined;
|
|
290
|
-
} | undefined;
|
|
291
|
-
};
|
|
292
|
-
}[];
|
|
293
122
|
};
|
|
294
|
-
export {};
|