@arcadia-eternity/content-sdk 4.6.0 → 4.7.1

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.
Files changed (72) hide show
  1. package/README.md +2 -2
  2. package/dist/author-api.d.ts +12 -2
  3. package/dist/author-api.js +11 -2
  4. package/dist/author-git.d.ts +63 -0
  5. package/dist/author-git.js +324 -0
  6. package/dist/author-reference.d.ts +15 -1
  7. package/dist/author-reference.js +20 -1
  8. package/dist/cli.js +5 -4
  9. package/dist/content-query.d.ts +15 -1
  10. package/dist/content-query.js +53 -11
  11. package/dist/content-workspace.d.ts +423 -3
  12. package/dist/content-workspace.js +194 -51
  13. package/dist/debug-environments.d.ts +393 -25
  14. package/dist/debug-environments.js +3 -42
  15. package/dist/demo.js +1 -1
  16. package/dist/effect-declarations.d.ts +14 -0
  17. package/dist/effect-declarations.js +103 -0
  18. package/dist/environment-host-base.d.ts +175 -0
  19. package/dist/environment-host-base.js +86 -0
  20. package/dist/environment-member-transfer.d.ts +5 -0
  21. package/dist/environment-member-transfer.js +95 -0
  22. package/dist/environment-rules.d.ts +728 -3
  23. package/dist/environment-rules.js +158 -74
  24. package/dist/environment-sharing.d.ts +51 -0
  25. package/dist/environment-sharing.js +321 -0
  26. package/dist/environment.d.ts +2 -0
  27. package/dist/environment.js +32 -9
  28. package/dist/jobs.d.ts +5 -0
  29. package/dist/jobs.js +59 -10
  30. package/dist/learnsets.d.ts +47 -0
  31. package/dist/learnsets.js +124 -0
  32. package/dist/lib/content.d.ts +1 -1
  33. package/dist/lib/content.js +26 -2
  34. package/dist/lib/presentation.js +5 -11
  35. package/dist/managed-projects.d.ts +6 -0
  36. package/dist/managed-projects.js +137 -45
  37. package/dist/managed-sources.d.ts +17 -0
  38. package/dist/managed-sources.js +28 -10
  39. package/dist/mcp-contracts.d.ts +405 -4
  40. package/dist/mcp-contracts.js +3 -1
  41. package/dist/mcp.js +23 -1
  42. package/dist/pack-project.d.ts +2 -1
  43. package/dist/pack-project.js +40 -5
  44. package/dist/prepared-document.d.ts +476 -0
  45. package/dist/prepared-document.js +47 -0
  46. package/dist/preview.js +5 -5
  47. package/dist/project.d.ts +3 -1
  48. package/dist/project.js +47 -4
  49. package/dist/rule-composition.d.ts +290 -0
  50. package/dist/rule-composition.js +267 -0
  51. package/dist/template/.github/scripts/release-payload.mjs +91 -0
  52. package/dist/template/.github/scripts/release-test-npm.mjs +27 -0
  53. package/dist/template/.github/scripts/verify-release.mjs +138 -0
  54. package/dist/template/.github/workflows/release-pack.yml +77 -0
  55. package/dist/template/README.md +15 -2
  56. package/dist/template/gitignore-template +7 -0
  57. package/dist/template/npm-lock-template.json +2319 -0
  58. package/dist/template/package.json +4 -2
  59. package/dist/template/skills/arcadia-content-authoring/references/tool-workflows.md +1 -1
  60. package/dist/template/skills/arcadia-content-git/SKILL.md +14 -0
  61. package/dist/template/skills/arcadia-content-release/SKILL.md +29 -0
  62. package/dist/template/test/pack.test.mjs +24 -5
  63. package/dist/testing.d.ts +1 -0
  64. package/dist/testing.js +26 -7
  65. package/dist/workspace-cli.js +2 -2
  66. package/dist/workspace-materials.d.ts +4 -1
  67. package/dist/workspace-materials.js +8 -2
  68. package/dist/workspace.d.ts +11 -0
  69. package/dist/workspace.js +191 -31
  70. package/package.json +16 -4
  71. package/release-payload.mjs +91 -0
  72. package/release-test-npm.mjs +27 -0
@@ -1,7 +1,732 @@
1
+ export { RuleCompositionError, resolveEnvironmentMechanics } from '@arcadia-eternity/const';
2
+ import type { ContentPrototypeData } from '@arcadia-eternity/battle/engine';
1
3
  import type { EnvironmentRules } from './content-workspace.js';
2
- /** Validate the currently implemented rule vocabulary before admitting an environment. */
4
+ export { resolveLearnset, learningIssues, isEligible, assertNatureChoice, validateLearningReferences, assertLearningChoices, } from './learnsets.js';
3
5
  export declare function validateEnvironmentRules(input?: unknown): EnvironmentRules;
4
- /** Version requirements fail closed until a host implements capability negotiation. */
5
- export declare function assertEnvironmentRequirements(input?: unknown): void;
6
+ export declare const environmentCapabilities: readonly string[];
7
+ export declare function assertEnvironmentRequirements(input?: unknown, host?: {
8
+ engine: string;
9
+ sdk: string;
10
+ capabilities: readonly string[];
11
+ }): void;
6
12
  /** Admission checks apply to normalized team definitions, before creating any battle. */
7
13
  export declare function assertEnvironmentTeam(input: unknown, team: unknown): void;
14
+ export declare function assertPlayableTeam(rules: EnvironmentRules | undefined, team: readonly unknown[], ...content: import('./learnsets.js').LearningLookups): void;
15
+ /** Check one build against prepared rules independently of team size and composition. */
16
+ export declare function assertEnvironmentMember(rules: EnvironmentRules, pet: unknown): void;
17
+ /** Author declarations are expanded only against a captured installation. */
18
+ export declare function defaultRuleDeclaration(definitions?: readonly unknown[]): {
19
+ schemaVersion: 2;
20
+ include: string[];
21
+ } | {
22
+ include?: undefined;
23
+ schemaVersion: 1;
24
+ };
25
+ export declare function prepareEnvironmentRules(input: unknown, definitions?: readonly unknown[], host?: {
26
+ engine: string;
27
+ sdk: string;
28
+ capabilities: readonly string[];
29
+ }): {
30
+ rules: {
31
+ schemaVersion: 1 | 2;
32
+ constraints?: ({
33
+ id: string;
34
+ allOf: {
35
+ kind: "mark" | "skill" | "species";
36
+ ids: string[];
37
+ }[];
38
+ kind: "ban";
39
+ scope: "pet" | "team";
40
+ exceptWhen?: {
41
+ kind: "mark" | "skill" | "species";
42
+ ids: string[];
43
+ }[] | undefined;
44
+ exceptAny?: {
45
+ kind: "mark" | "skill" | "species";
46
+ ids: string[];
47
+ }[][] | undefined;
48
+ } | {
49
+ id: string;
50
+ allOf: {
51
+ kind: "mark" | "skill" | "species";
52
+ ids: string[];
53
+ }[];
54
+ kind: "memberLimit";
55
+ max: number;
56
+ })[] | undefined;
57
+ mechanics?: {
58
+ skillSlots?: {
59
+ normalMax: number;
60
+ climaxMax: number;
61
+ climaxMin?: number | undefined;
62
+ } | undefined;
63
+ individualValueDefault?: number | undefined;
64
+ individualValues?: {
65
+ max: number;
66
+ } | undefined;
67
+ allowFaintSwitch?: boolean | undefined;
68
+ inheritance?: {
69
+ eligible: "all" | "off" | "species" | string[];
70
+ pool?: {
71
+ mode: "append" | "fallback" | "replace";
72
+ skills: string[];
73
+ } | undefined;
74
+ } | undefined;
75
+ enhancement?: {
76
+ mode: "active" | "forbidden" | "suppressed";
77
+ stages?: string[] | undefined;
78
+ species?: string[] | undefined;
79
+ } | undefined;
80
+ secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
81
+ } | undefined;
82
+ skillParameters?: {
83
+ profile?: string | undefined;
84
+ groups?: Record<string, number> | undefined;
85
+ overrides?: {
86
+ skill: string;
87
+ useId: string;
88
+ parameter: string;
89
+ value: number;
90
+ }[] | undefined;
91
+ } | undefined;
92
+ matchups?: {
93
+ table?: string | undefined;
94
+ adjustments?: {
95
+ attack: string;
96
+ defense: string;
97
+ multiplier: number;
98
+ }[] | undefined;
99
+ } | undefined;
100
+ learnsetAdjustments?: {
101
+ species: string;
102
+ source: "inherited" | "normal";
103
+ skill: string;
104
+ action: "add" | "remove";
105
+ level?: number | undefined;
106
+ }[] | undefined;
107
+ tier?: "standard" | undefined;
108
+ allow?: {
109
+ species?: string[] | undefined;
110
+ skills?: string[] | undefined;
111
+ marks?: string[] | undefined;
112
+ } | undefined;
113
+ deny?: {
114
+ species?: string[] | undefined;
115
+ skills?: string[] | undefined;
116
+ marks?: string[] | undefined;
117
+ } | undefined;
118
+ team?: {
119
+ minSize?: number | undefined;
120
+ maxSize?: number | undefined;
121
+ uniqueSpecies?: boolean | undefined;
122
+ } | undefined;
123
+ };
124
+ declarations: {
125
+ constraints: ({
126
+ id: string;
127
+ allOf: {
128
+ kind: "mark" | "skill" | "species";
129
+ ids: string[];
130
+ fromCollections?: string[] | undefined;
131
+ }[];
132
+ kind: "ban";
133
+ scope: "pet" | "team";
134
+ exceptWhen?: {
135
+ kind: "mark" | "skill" | "species";
136
+ ids: string[];
137
+ fromCollections?: string[] | undefined;
138
+ }[] | undefined;
139
+ exceptAny?: {
140
+ kind: "mark" | "skill" | "species";
141
+ ids: string[];
142
+ fromCollections?: string[] | undefined;
143
+ }[][] | undefined;
144
+ } | {
145
+ id: string;
146
+ allOf: {
147
+ kind: "mark" | "skill" | "species";
148
+ ids: string[];
149
+ fromCollections?: string[] | undefined;
150
+ }[];
151
+ kind: "memberLimit";
152
+ max: number;
153
+ })[];
154
+ collections: {
155
+ id: string;
156
+ kind: "mark" | "skill" | "species";
157
+ ids: string[];
158
+ }[];
159
+ };
160
+ fields: {
161
+ path: string[];
162
+ value: unknown;
163
+ sources: string[];
164
+ effectiveSources: string[];
165
+ }[];
166
+ ruleSets: {
167
+ id: string;
168
+ name: string;
169
+ rules: {
170
+ schemaVersion: 1 | 2;
171
+ mechanics?: {
172
+ skillSlots?: {
173
+ normalMax: number;
174
+ climaxMax: number;
175
+ climaxMin?: number | undefined;
176
+ } | undefined;
177
+ individualValueDefault?: number | undefined;
178
+ individualValues?: {
179
+ max: number;
180
+ } | undefined;
181
+ allowFaintSwitch?: boolean | undefined;
182
+ inheritance?: {
183
+ eligible: "all" | "off" | "species" | string[];
184
+ pool?: {
185
+ mode: "append" | "fallback" | "replace";
186
+ skills: string[];
187
+ } | undefined;
188
+ } | undefined;
189
+ enhancement?: {
190
+ mode: "active" | "forbidden" | "suppressed";
191
+ stages?: string[] | undefined;
192
+ species?: string[] | undefined;
193
+ } | undefined;
194
+ secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
195
+ } | undefined;
196
+ skillParameters?: {
197
+ profile?: string | undefined;
198
+ groups?: Record<string, number> | undefined;
199
+ overrides?: {
200
+ skill: string;
201
+ useId: string;
202
+ parameter: string;
203
+ value: number;
204
+ }[] | undefined;
205
+ } | undefined;
206
+ matchups?: {
207
+ table?: string | undefined;
208
+ adjustments?: {
209
+ attack: string;
210
+ defense: string;
211
+ multiplier: number;
212
+ }[] | undefined;
213
+ } | undefined;
214
+ learnsetAdjustments?: {
215
+ species: string;
216
+ source: "inherited" | "normal";
217
+ skill: string;
218
+ action: "add" | "remove";
219
+ level?: number | undefined;
220
+ }[] | undefined;
221
+ tier?: "standard" | undefined;
222
+ allow?: {
223
+ species?: string[] | undefined;
224
+ skills?: string[] | undefined;
225
+ marks?: string[] | undefined;
226
+ } | undefined;
227
+ deny?: {
228
+ species?: string[] | undefined;
229
+ skills?: string[] | undefined;
230
+ marks?: string[] | undefined;
231
+ } | undefined;
232
+ team?: {
233
+ minSize?: number | undefined;
234
+ maxSize?: number | undefined;
235
+ uniqueSpecies?: boolean | undefined;
236
+ } | undefined;
237
+ constraints?: ({
238
+ id: string;
239
+ allOf: {
240
+ kind: "mark" | "skill" | "species";
241
+ ids: string[];
242
+ fromCollections?: string[] | undefined;
243
+ }[];
244
+ kind: "ban";
245
+ scope: "pet" | "team";
246
+ exceptWhen?: {
247
+ kind: "mark" | "skill" | "species";
248
+ ids: string[];
249
+ fromCollections?: string[] | undefined;
250
+ }[] | undefined;
251
+ exceptAny?: {
252
+ kind: "mark" | "skill" | "species";
253
+ ids: string[];
254
+ fromCollections?: string[] | undefined;
255
+ }[][] | undefined;
256
+ } | {
257
+ id: string;
258
+ allOf: {
259
+ kind: "mark" | "skill" | "species";
260
+ ids: string[];
261
+ fromCollections?: string[] | undefined;
262
+ }[];
263
+ kind: "memberLimit";
264
+ max: number;
265
+ })[] | undefined;
266
+ collections?: {
267
+ id: string;
268
+ kind: "mark" | "skill" | "species";
269
+ ids: string[];
270
+ }[] | undefined;
271
+ include?: string[] | undefined;
272
+ constraintEdits?: {
273
+ remove?: string[] | undefined;
274
+ replace?: ({
275
+ id: string;
276
+ allOf: {
277
+ kind: "mark" | "skill" | "species";
278
+ ids: string[];
279
+ fromCollections?: string[] | undefined;
280
+ }[];
281
+ kind: "ban";
282
+ scope: "pet" | "team";
283
+ exceptWhen?: {
284
+ kind: "mark" | "skill" | "species";
285
+ ids: string[];
286
+ fromCollections?: string[] | undefined;
287
+ }[] | undefined;
288
+ exceptAny?: {
289
+ kind: "mark" | "skill" | "species";
290
+ ids: string[];
291
+ fromCollections?: string[] | undefined;
292
+ }[][] | undefined;
293
+ } | {
294
+ id: string;
295
+ allOf: {
296
+ kind: "mark" | "skill" | "species";
297
+ ids: string[];
298
+ fromCollections?: string[] | undefined;
299
+ }[];
300
+ kind: "memberLimit";
301
+ max: number;
302
+ })[] | undefined;
303
+ clearExceptions?: string[] | undefined;
304
+ exceptions?: {
305
+ target: string;
306
+ allOf: {
307
+ kind: "mark" | "skill" | "species";
308
+ ids: string[];
309
+ fromCollections?: string[] | undefined;
310
+ }[];
311
+ }[] | undefined;
312
+ } | undefined;
313
+ };
314
+ }[];
315
+ requiredCapabilities: string[];
316
+ };
317
+ export declare function validateEnvironmentRuleDeclaration(input: unknown): {
318
+ rules: {
319
+ schemaVersion: 1 | 2;
320
+ mechanics?: {
321
+ skillSlots?: {
322
+ normalMax: number;
323
+ climaxMax: number;
324
+ climaxMin?: number | undefined;
325
+ } | undefined;
326
+ individualValueDefault?: number | undefined;
327
+ individualValues?: {
328
+ max: number;
329
+ } | undefined;
330
+ allowFaintSwitch?: boolean | undefined;
331
+ inheritance?: {
332
+ eligible: "all" | "off" | "species" | string[];
333
+ pool?: {
334
+ mode: "append" | "fallback" | "replace";
335
+ skills: string[];
336
+ } | undefined;
337
+ } | undefined;
338
+ enhancement?: {
339
+ mode: "active" | "forbidden" | "suppressed";
340
+ stages?: string[] | undefined;
341
+ species?: string[] | undefined;
342
+ } | undefined;
343
+ secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
344
+ } | undefined;
345
+ skillParameters?: {
346
+ profile?: string | undefined;
347
+ groups?: Record<string, number> | undefined;
348
+ overrides?: {
349
+ skill: string;
350
+ useId: string;
351
+ parameter: string;
352
+ value: number;
353
+ }[] | undefined;
354
+ } | undefined;
355
+ matchups?: {
356
+ table?: string | undefined;
357
+ adjustments?: {
358
+ attack: string;
359
+ defense: string;
360
+ multiplier: number;
361
+ }[] | undefined;
362
+ } | undefined;
363
+ learnsetAdjustments?: {
364
+ species: string;
365
+ source: "inherited" | "normal";
366
+ skill: string;
367
+ action: "add" | "remove";
368
+ level?: number | undefined;
369
+ }[] | undefined;
370
+ tier?: "standard" | undefined;
371
+ allow?: {
372
+ species?: string[] | undefined;
373
+ skills?: string[] | undefined;
374
+ marks?: string[] | undefined;
375
+ } | undefined;
376
+ deny?: {
377
+ species?: string[] | undefined;
378
+ skills?: string[] | undefined;
379
+ marks?: string[] | undefined;
380
+ } | undefined;
381
+ team?: {
382
+ minSize?: number | undefined;
383
+ maxSize?: number | undefined;
384
+ uniqueSpecies?: boolean | undefined;
385
+ } | undefined;
386
+ constraints?: ({
387
+ id: string;
388
+ allOf: {
389
+ kind: "mark" | "skill" | "species";
390
+ ids: string[];
391
+ fromCollections?: string[] | undefined;
392
+ }[];
393
+ kind: "ban";
394
+ scope: "pet" | "team";
395
+ exceptWhen?: {
396
+ kind: "mark" | "skill" | "species";
397
+ ids: string[];
398
+ fromCollections?: string[] | undefined;
399
+ }[] | undefined;
400
+ exceptAny?: {
401
+ kind: "mark" | "skill" | "species";
402
+ ids: string[];
403
+ fromCollections?: string[] | undefined;
404
+ }[][] | undefined;
405
+ } | {
406
+ id: string;
407
+ allOf: {
408
+ kind: "mark" | "skill" | "species";
409
+ ids: string[];
410
+ fromCollections?: string[] | undefined;
411
+ }[];
412
+ kind: "memberLimit";
413
+ max: number;
414
+ })[] | undefined;
415
+ };
416
+ include: string[];
417
+ edits: {
418
+ remove?: string[] | undefined;
419
+ replace?: ({
420
+ id: string;
421
+ allOf: {
422
+ kind: "mark" | "skill" | "species";
423
+ ids: string[];
424
+ fromCollections?: string[] | undefined;
425
+ }[];
426
+ kind: "ban";
427
+ scope: "pet" | "team";
428
+ exceptWhen?: {
429
+ kind: "mark" | "skill" | "species";
430
+ ids: string[];
431
+ fromCollections?: string[] | undefined;
432
+ }[] | undefined;
433
+ exceptAny?: {
434
+ kind: "mark" | "skill" | "species";
435
+ ids: string[];
436
+ fromCollections?: string[] | undefined;
437
+ }[][] | undefined;
438
+ } | {
439
+ id: string;
440
+ allOf: {
441
+ kind: "mark" | "skill" | "species";
442
+ ids: string[];
443
+ fromCollections?: string[] | undefined;
444
+ }[];
445
+ kind: "memberLimit";
446
+ max: number;
447
+ })[] | undefined;
448
+ clearExceptions?: string[] | undefined;
449
+ exceptions?: {
450
+ target: string;
451
+ allOf: {
452
+ kind: "mark" | "skill" | "species";
453
+ ids: string[];
454
+ fromCollections?: string[] | undefined;
455
+ }[];
456
+ }[] | undefined;
457
+ };
458
+ collections: {
459
+ id: string;
460
+ kind: "mark" | "skill" | "species";
461
+ ids: string[];
462
+ }[];
463
+ };
464
+ /** Validate selectors once against the catalog held by this preparation. */
465
+ export declare function assertRuleContentReferences(rules: EnvironmentRules, catalog: {
466
+ species: ReadonlySet<string>;
467
+ skill: ReadonlySet<string>;
468
+ mark: ReadonlySet<string>;
469
+ stage: ReadonlySet<string>;
470
+ }, fields?: readonly {
471
+ path: readonly string[];
472
+ value: unknown;
473
+ }[]): void;
474
+ /** Resolve declarations against the exact package data used to build this runtime. */
475
+ export declare function prepareRulesForContent(declaration: unknown, data: ContentPrototypeData): {
476
+ rules: {
477
+ schemaVersion: 1 | 2;
478
+ constraints?: ({
479
+ id: string;
480
+ allOf: {
481
+ kind: "mark" | "skill" | "species";
482
+ ids: string[];
483
+ }[];
484
+ kind: "ban";
485
+ scope: "pet" | "team";
486
+ exceptWhen?: {
487
+ kind: "mark" | "skill" | "species";
488
+ ids: string[];
489
+ }[] | undefined;
490
+ exceptAny?: {
491
+ kind: "mark" | "skill" | "species";
492
+ ids: string[];
493
+ }[][] | undefined;
494
+ } | {
495
+ id: string;
496
+ allOf: {
497
+ kind: "mark" | "skill" | "species";
498
+ ids: string[];
499
+ }[];
500
+ kind: "memberLimit";
501
+ max: number;
502
+ })[] | undefined;
503
+ mechanics?: {
504
+ skillSlots?: {
505
+ normalMax: number;
506
+ climaxMax: number;
507
+ climaxMin?: number | undefined;
508
+ } | undefined;
509
+ individualValueDefault?: number | undefined;
510
+ individualValues?: {
511
+ max: number;
512
+ } | undefined;
513
+ allowFaintSwitch?: boolean | undefined;
514
+ inheritance?: {
515
+ eligible: "all" | "off" | "species" | string[];
516
+ pool?: {
517
+ mode: "append" | "fallback" | "replace";
518
+ skills: string[];
519
+ } | undefined;
520
+ } | undefined;
521
+ enhancement?: {
522
+ mode: "active" | "forbidden" | "suppressed";
523
+ stages?: string[] | undefined;
524
+ species?: string[] | undefined;
525
+ } | undefined;
526
+ secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
527
+ } | undefined;
528
+ skillParameters?: {
529
+ profile?: string | undefined;
530
+ groups?: Record<string, number> | undefined;
531
+ overrides?: {
532
+ skill: string;
533
+ useId: string;
534
+ parameter: string;
535
+ value: number;
536
+ }[] | undefined;
537
+ } | undefined;
538
+ matchups?: {
539
+ table?: string | undefined;
540
+ adjustments?: {
541
+ attack: string;
542
+ defense: string;
543
+ multiplier: number;
544
+ }[] | undefined;
545
+ } | undefined;
546
+ learnsetAdjustments?: {
547
+ species: string;
548
+ source: "inherited" | "normal";
549
+ skill: string;
550
+ action: "add" | "remove";
551
+ level?: number | undefined;
552
+ }[] | undefined;
553
+ tier?: "standard" | undefined;
554
+ allow?: {
555
+ species?: string[] | undefined;
556
+ skills?: string[] | undefined;
557
+ marks?: string[] | undefined;
558
+ } | undefined;
559
+ deny?: {
560
+ species?: string[] | undefined;
561
+ skills?: string[] | undefined;
562
+ marks?: string[] | undefined;
563
+ } | undefined;
564
+ team?: {
565
+ minSize?: number | undefined;
566
+ maxSize?: number | undefined;
567
+ uniqueSpecies?: boolean | undefined;
568
+ } | undefined;
569
+ };
570
+ fields: {
571
+ path: string[];
572
+ value: unknown;
573
+ sources: string[];
574
+ effectiveSources: string[];
575
+ }[];
576
+ ruleSets: {
577
+ id: string;
578
+ name: string;
579
+ rules: {
580
+ schemaVersion: 1 | 2;
581
+ mechanics?: {
582
+ skillSlots?: {
583
+ normalMax: number;
584
+ climaxMax: number;
585
+ climaxMin?: number | undefined;
586
+ } | undefined;
587
+ individualValueDefault?: number | undefined;
588
+ individualValues?: {
589
+ max: number;
590
+ } | undefined;
591
+ allowFaintSwitch?: boolean | undefined;
592
+ inheritance?: {
593
+ eligible: "all" | "off" | "species" | string[];
594
+ pool?: {
595
+ mode: "append" | "fallback" | "replace";
596
+ skills: string[];
597
+ } | undefined;
598
+ } | undefined;
599
+ enhancement?: {
600
+ mode: "active" | "forbidden" | "suppressed";
601
+ stages?: string[] | undefined;
602
+ species?: string[] | undefined;
603
+ } | undefined;
604
+ secondGenerationNatures?: "all" | "off" | "species" | string[] | undefined;
605
+ } | undefined;
606
+ skillParameters?: {
607
+ profile?: string | undefined;
608
+ groups?: Record<string, number> | undefined;
609
+ overrides?: {
610
+ skill: string;
611
+ useId: string;
612
+ parameter: string;
613
+ value: number;
614
+ }[] | undefined;
615
+ } | undefined;
616
+ matchups?: {
617
+ table?: string | undefined;
618
+ adjustments?: {
619
+ attack: string;
620
+ defense: string;
621
+ multiplier: number;
622
+ }[] | undefined;
623
+ } | undefined;
624
+ learnsetAdjustments?: {
625
+ species: string;
626
+ source: "inherited" | "normal";
627
+ skill: string;
628
+ action: "add" | "remove";
629
+ level?: number | undefined;
630
+ }[] | undefined;
631
+ tier?: "standard" | undefined;
632
+ allow?: {
633
+ species?: string[] | undefined;
634
+ skills?: string[] | undefined;
635
+ marks?: string[] | undefined;
636
+ } | undefined;
637
+ deny?: {
638
+ species?: string[] | undefined;
639
+ skills?: string[] | undefined;
640
+ marks?: string[] | undefined;
641
+ } | undefined;
642
+ team?: {
643
+ minSize?: number | undefined;
644
+ maxSize?: number | undefined;
645
+ uniqueSpecies?: boolean | undefined;
646
+ } | undefined;
647
+ constraints?: ({
648
+ id: string;
649
+ allOf: {
650
+ kind: "mark" | "skill" | "species";
651
+ ids: string[];
652
+ fromCollections?: string[] | undefined;
653
+ }[];
654
+ kind: "ban";
655
+ scope: "pet" | "team";
656
+ exceptWhen?: {
657
+ kind: "mark" | "skill" | "species";
658
+ ids: string[];
659
+ fromCollections?: string[] | undefined;
660
+ }[] | undefined;
661
+ exceptAny?: {
662
+ kind: "mark" | "skill" | "species";
663
+ ids: string[];
664
+ fromCollections?: string[] | undefined;
665
+ }[][] | undefined;
666
+ } | {
667
+ id: string;
668
+ allOf: {
669
+ kind: "mark" | "skill" | "species";
670
+ ids: string[];
671
+ fromCollections?: string[] | undefined;
672
+ }[];
673
+ kind: "memberLimit";
674
+ max: number;
675
+ })[] | undefined;
676
+ collections?: {
677
+ id: string;
678
+ kind: "mark" | "skill" | "species";
679
+ ids: string[];
680
+ }[] | undefined;
681
+ include?: string[] | undefined;
682
+ constraintEdits?: {
683
+ remove?: string[] | undefined;
684
+ replace?: ({
685
+ id: string;
686
+ allOf: {
687
+ kind: "mark" | "skill" | "species";
688
+ ids: string[];
689
+ fromCollections?: string[] | undefined;
690
+ }[];
691
+ kind: "ban";
692
+ scope: "pet" | "team";
693
+ exceptWhen?: {
694
+ kind: "mark" | "skill" | "species";
695
+ ids: string[];
696
+ fromCollections?: string[] | undefined;
697
+ }[] | undefined;
698
+ exceptAny?: {
699
+ kind: "mark" | "skill" | "species";
700
+ ids: string[];
701
+ fromCollections?: string[] | undefined;
702
+ }[][] | undefined;
703
+ } | {
704
+ id: string;
705
+ allOf: {
706
+ kind: "mark" | "skill" | "species";
707
+ ids: string[];
708
+ fromCollections?: string[] | undefined;
709
+ }[];
710
+ kind: "memberLimit";
711
+ max: number;
712
+ })[] | undefined;
713
+ clearExceptions?: string[] | undefined;
714
+ exceptions?: {
715
+ target: string;
716
+ allOf: {
717
+ kind: "mark" | "skill" | "species";
718
+ ids: string[];
719
+ fromCollections?: string[] | undefined;
720
+ }[];
721
+ }[] | undefined;
722
+ } | undefined;
723
+ };
724
+ }[];
725
+ requiredCapabilities: string[];
726
+ };
727
+ export declare function indexRuleContent(data: Pick<ContentPrototypeData, 'species' | 'skills' | 'marks' | 'enhancements'>): {
728
+ species: Set<string>;
729
+ skill: Set<string>;
730
+ mark: Set<string>;
731
+ stage: Set<string>;
732
+ };