@arcadia-eternity/content-sdk 4.8.2 → 4.8.3
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 +6 -0
- package/dist/debug-environments.d.ts +4 -0
- package/dist/environment-host-base.d.ts +2 -0
- package/dist/environment-rules.d.ts +10 -0
- package/dist/environment-rules.js +1 -1
- package/dist/learnsets.js +2 -2
- package/dist/mcp-contracts.d.ts +4 -0
- package/dist/prepared-document.d.ts +6 -0
- package/dist/rule-composition.d.ts +4 -0
- package/dist/template/package.json +2 -2
- package/package.json +5 -5
|
@@ -90,6 +90,8 @@ declare const compositionSchema: z.ZodObject<{
|
|
|
90
90
|
forbidden: "forbidden";
|
|
91
91
|
suppressed: "suppressed";
|
|
92
92
|
}>;
|
|
93
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
95
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
96
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
97
|
}, z.core.$strict>>;
|
|
@@ -191,6 +193,8 @@ declare const compositionSchema: z.ZodObject<{
|
|
|
191
193
|
forbidden: "forbidden";
|
|
192
194
|
suppressed: "suppressed";
|
|
193
195
|
}>;
|
|
196
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
198
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
195
199
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
200
|
}, z.core.$strict>>;
|
|
@@ -638,6 +642,8 @@ export declare function readShippedEnvironments(file: string | URL, bundledVersi
|
|
|
638
642
|
} | undefined;
|
|
639
643
|
enhancement?: {
|
|
640
644
|
mode: "active" | "forbidden" | "suppressed";
|
|
645
|
+
minLevel?: number | undefined;
|
|
646
|
+
defaultBranches?: string[] | undefined;
|
|
641
647
|
stages?: string[] | undefined;
|
|
642
648
|
species?: string[] | undefined;
|
|
643
649
|
} | undefined;
|
|
@@ -41,6 +41,8 @@ export declare const EnvironmentDocumentV2Schema: z.ZodObject<{
|
|
|
41
41
|
forbidden: "forbidden";
|
|
42
42
|
suppressed: "suppressed";
|
|
43
43
|
}>;
|
|
44
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
46
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
47
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
48
|
}, z.core.$strict>>;
|
|
@@ -272,6 +274,8 @@ export declare const EnvironmentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
272
274
|
forbidden: "forbidden";
|
|
273
275
|
suppressed: "suppressed";
|
|
274
276
|
}>;
|
|
277
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
279
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
276
280
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
281
|
}, z.core.$strict>>;
|
|
@@ -41,6 +41,8 @@ export declare function environmentShareMaterials(files: Material[], document: E
|
|
|
41
41
|
} | undefined;
|
|
42
42
|
enhancement?: {
|
|
43
43
|
mode: "active" | "forbidden" | "suppressed";
|
|
44
|
+
minLevel?: number | undefined;
|
|
45
|
+
defaultBranches?: string[] | undefined;
|
|
44
46
|
stages?: string[] | undefined;
|
|
45
47
|
species?: string[] | undefined;
|
|
46
48
|
} | undefined;
|
|
@@ -74,6 +74,8 @@ export declare function prepareEnvironmentRules(input: unknown, definitions?: re
|
|
|
74
74
|
} | undefined;
|
|
75
75
|
enhancement?: {
|
|
76
76
|
mode: "active" | "forbidden" | "suppressed";
|
|
77
|
+
minLevel?: number | undefined;
|
|
78
|
+
defaultBranches?: string[] | undefined;
|
|
77
79
|
stages?: string[] | undefined;
|
|
78
80
|
species?: string[] | undefined;
|
|
79
81
|
} | undefined;
|
|
@@ -188,6 +190,8 @@ export declare function prepareEnvironmentRules(input: unknown, definitions?: re
|
|
|
188
190
|
} | undefined;
|
|
189
191
|
enhancement?: {
|
|
190
192
|
mode: "active" | "forbidden" | "suppressed";
|
|
193
|
+
minLevel?: number | undefined;
|
|
194
|
+
defaultBranches?: string[] | undefined;
|
|
191
195
|
stages?: string[] | undefined;
|
|
192
196
|
species?: string[] | undefined;
|
|
193
197
|
} | undefined;
|
|
@@ -337,6 +341,8 @@ export declare function validateEnvironmentRuleDeclaration(input: unknown): {
|
|
|
337
341
|
} | undefined;
|
|
338
342
|
enhancement?: {
|
|
339
343
|
mode: "active" | "forbidden" | "suppressed";
|
|
344
|
+
minLevel?: number | undefined;
|
|
345
|
+
defaultBranches?: string[] | undefined;
|
|
340
346
|
stages?: string[] | undefined;
|
|
341
347
|
species?: string[] | undefined;
|
|
342
348
|
} | undefined;
|
|
@@ -520,6 +526,8 @@ export declare function prepareRulesForContent(declaration: unknown, data: Conte
|
|
|
520
526
|
} | undefined;
|
|
521
527
|
enhancement?: {
|
|
522
528
|
mode: "active" | "forbidden" | "suppressed";
|
|
529
|
+
minLevel?: number | undefined;
|
|
530
|
+
defaultBranches?: string[] | undefined;
|
|
523
531
|
stages?: string[] | undefined;
|
|
524
532
|
species?: string[] | undefined;
|
|
525
533
|
} | undefined;
|
|
@@ -598,6 +606,8 @@ export declare function prepareRulesForContent(declaration: unknown, data: Conte
|
|
|
598
606
|
} | undefined;
|
|
599
607
|
enhancement?: {
|
|
600
608
|
mode: "active" | "forbidden" | "suppressed";
|
|
609
|
+
minLevel?: number | undefined;
|
|
610
|
+
defaultBranches?: string[] | undefined;
|
|
601
611
|
stages?: string[] | undefined;
|
|
602
612
|
species?: string[] | undefined;
|
|
603
613
|
} | undefined;
|
|
@@ -80,7 +80,7 @@ export function assertEnvironmentMember(rules, pet) {
|
|
|
80
80
|
fail('ENVIRONMENT_TEAM_REJECTED');
|
|
81
81
|
if (petRecord.enhancement !== undefined) {
|
|
82
82
|
if (!identifier(petRecord.enhancement) ||
|
|
83
|
-
!allowsEnhancementRecord(rules.mechanics?.enhancement, petRecord.species, petRecord.enhancement))
|
|
83
|
+
!allowsEnhancementRecord(rules.mechanics?.enhancement, petRecord.species, petRecord.enhancement, typeof petRecord.level === 'number' ? petRecord.level : undefined))
|
|
84
84
|
fail('ENVIRONMENT_TEAM_REJECTED');
|
|
85
85
|
}
|
|
86
86
|
if (petRecord.ivs !== undefined &&
|
package/dist/learnsets.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultLearnsetLevel, assertSkillSlots, resolveEnvironmentMechanics, } from '@arcadia-eternity/const';
|
|
1
|
+
import { defaultLearnsetLevel, supportsEnhancementBranch, assertSkillSlots, resolveEnvironmentMechanics, } from '@arcadia-eternity/const';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
const id = z.string().min(1).max(256);
|
|
4
4
|
export function isEligible(species, selection) {
|
|
@@ -107,7 +107,7 @@ export function assertLearningChoices(rules, team, ...[speciesById, natureById,
|
|
|
107
107
|
const stage = stageById(pet.enhancement);
|
|
108
108
|
if (!stage)
|
|
109
109
|
throw new Error('缺少强化阶段 ' + pet.enhancement);
|
|
110
|
-
if (!definition
|
|
110
|
+
if (!supportsEnhancementBranch(rules.mechanics.enhancement, definition, stage.branch))
|
|
111
111
|
throw new Error('该物种不能使用强化阶段 ' + pet.enhancement);
|
|
112
112
|
}
|
|
113
113
|
for (const kind of ['ability', 'emblem']) {
|
package/dist/mcp-contracts.d.ts
CHANGED
|
@@ -356,6 +356,8 @@ export declare const outputSchemas: {
|
|
|
356
356
|
forbidden: "forbidden";
|
|
357
357
|
suppressed: "suppressed";
|
|
358
358
|
}>;
|
|
359
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
361
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
360
362
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
361
363
|
}, z.core.$strict>>;
|
|
@@ -590,6 +592,8 @@ export declare const outputSchemas: {
|
|
|
590
592
|
forbidden: "forbidden";
|
|
591
593
|
suppressed: "suppressed";
|
|
592
594
|
}>;
|
|
595
|
+
minLevel: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
defaultBranches: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
597
|
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
594
598
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
595
599
|
}, z.core.$strict>>;
|
|
@@ -28,6 +28,8 @@ export declare function parseManifestDraft(text: string): {
|
|
|
28
28
|
} | undefined;
|
|
29
29
|
enhancement?: {
|
|
30
30
|
mode: "active" | "forbidden" | "suppressed";
|
|
31
|
+
minLevel?: number | undefined;
|
|
32
|
+
defaultBranches?: string[] | undefined;
|
|
31
33
|
stages?: string[] | undefined;
|
|
32
34
|
species?: string[] | undefined;
|
|
33
35
|
} | undefined;
|
|
@@ -187,6 +189,8 @@ export declare function preparedDocument(metadata: UnknownRecord, legacyManifest
|
|
|
187
189
|
} | undefined;
|
|
188
190
|
enhancement?: {
|
|
189
191
|
mode: "active" | "forbidden" | "suppressed";
|
|
192
|
+
minLevel?: number | undefined;
|
|
193
|
+
defaultBranches?: string[] | undefined;
|
|
190
194
|
stages?: string[] | undefined;
|
|
191
195
|
species?: string[] | undefined;
|
|
192
196
|
} | undefined;
|
|
@@ -345,6 +349,8 @@ export declare function readInstalledEnvironmentDocument(directory: string, cont
|
|
|
345
349
|
} | undefined;
|
|
346
350
|
enhancement?: {
|
|
347
351
|
mode: "active" | "forbidden" | "suppressed";
|
|
352
|
+
minLevel?: number | undefined;
|
|
353
|
+
defaultBranches?: string[] | undefined;
|
|
348
354
|
stages?: string[] | undefined;
|
|
349
355
|
species?: string[] | undefined;
|
|
350
356
|
} | undefined;
|
|
@@ -48,6 +48,8 @@ export declare function composeRuleSets(input: unknown, definitions: readonly un
|
|
|
48
48
|
} | undefined;
|
|
49
49
|
enhancement?: {
|
|
50
50
|
mode: "active" | "forbidden" | "suppressed";
|
|
51
|
+
minLevel?: number | undefined;
|
|
52
|
+
defaultBranches?: string[] | undefined;
|
|
51
53
|
stages?: string[] | undefined;
|
|
52
54
|
species?: string[] | undefined;
|
|
53
55
|
} | undefined;
|
|
@@ -162,6 +164,8 @@ export declare function composeRuleSets(input: unknown, definitions: readonly un
|
|
|
162
164
|
} | undefined;
|
|
163
165
|
enhancement?: {
|
|
164
166
|
mode: "active" | "forbidden" | "suppressed";
|
|
167
|
+
minLevel?: number | undefined;
|
|
168
|
+
defaultBranches?: string[] | undefined;
|
|
165
169
|
stages?: string[] | undefined;
|
|
166
170
|
species?: string[] | undefined;
|
|
167
171
|
} | undefined;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "26.6.6",
|
|
23
23
|
"typescript": "6.0.3",
|
|
24
|
-
"@arcadia-eternity/content-sdk": "4.8.
|
|
24
|
+
"@arcadia-eternity/content-sdk": "4.8.3",
|
|
25
25
|
"fflate": "0.8.3"
|
|
26
26
|
},
|
|
27
27
|
"arcadia": {
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=24 <25",
|
|
41
|
-
"arcadia": "^4.8.
|
|
41
|
+
"arcadia": "^4.8.3"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcadia-eternity/content-sdk",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"zod": "4.6.7",
|
|
64
64
|
"fflate": "0.8.3",
|
|
65
65
|
"simple-git": "4.1.0",
|
|
66
|
-
"@arcadia-eternity/
|
|
67
|
-
"@arcadia-eternity/
|
|
68
|
-
"@arcadia-eternity/
|
|
69
|
-
"@arcadia-eternity/
|
|
66
|
+
"@arcadia-eternity/battle": "4.8.3",
|
|
67
|
+
"@arcadia-eternity/const": "4.8.3",
|
|
68
|
+
"@arcadia-eternity/pack-loader": "4.8.3",
|
|
69
|
+
"@arcadia-eternity/schema": "4.8.3"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|