@arcadia-eternity/content-sdk 4.6.0 → 4.8.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/README.md +2 -2
- package/dist/author-api.d.ts +12 -2
- package/dist/author-api.js +11 -2
- package/dist/author-git.d.ts +63 -0
- package/dist/author-git.js +324 -0
- package/dist/author-reference.d.ts +15 -1
- package/dist/author-reference.js +20 -1
- package/dist/cli.js +5 -4
- package/dist/content-query.d.ts +15 -1
- package/dist/content-query.js +53 -11
- package/dist/content-workspace.d.ts +428 -3
- package/dist/content-workspace.js +249 -54
- package/dist/debug-environments.d.ts +393 -25
- package/dist/debug-environments.js +3 -42
- package/dist/demo.js +1 -1
- package/dist/effect-declarations.d.ts +14 -0
- package/dist/effect-declarations.js +103 -0
- package/dist/environment-host-base.d.ts +175 -0
- package/dist/environment-host-base.js +86 -0
- package/dist/environment-member-transfer.d.ts +5 -0
- package/dist/environment-member-transfer.js +95 -0
- package/dist/environment-rules.d.ts +728 -3
- package/dist/environment-rules.js +158 -74
- package/dist/environment-sharing.d.ts +51 -0
- package/dist/environment-sharing.js +321 -0
- package/dist/environment.d.ts +2 -0
- package/dist/environment.js +32 -9
- package/dist/jobs.d.ts +5 -0
- package/dist/jobs.js +59 -10
- package/dist/learnsets.d.ts +47 -0
- package/dist/learnsets.js +124 -0
- package/dist/lib/content.d.ts +1 -1
- package/dist/lib/content.js +26 -2
- package/dist/lib/presentation.js +5 -11
- package/dist/managed-projects.d.ts +6 -0
- package/dist/managed-projects.js +137 -45
- package/dist/managed-sources.d.ts +17 -0
- package/dist/managed-sources.js +28 -10
- package/dist/mcp-contracts.d.ts +405 -4
- package/dist/mcp-contracts.js +3 -1
- package/dist/mcp.js +23 -1
- package/dist/pack-project.d.ts +2 -1
- package/dist/pack-project.js +40 -5
- package/dist/prepared-document.d.ts +476 -0
- package/dist/prepared-document.js +47 -0
- package/dist/preview.js +5 -5
- package/dist/project.d.ts +3 -1
- package/dist/project.js +47 -4
- package/dist/rule-composition.d.ts +290 -0
- package/dist/rule-composition.js +267 -0
- package/dist/template/.github/scripts/release-payload.mjs +91 -0
- package/dist/template/.github/scripts/release-test-npm.mjs +27 -0
- package/dist/template/.github/scripts/verify-release.mjs +138 -0
- package/dist/template/.github/workflows/release-pack.yml +77 -0
- package/dist/template/README.md +15 -2
- package/dist/template/gitignore-template +7 -0
- package/dist/template/npm-lock-template.json +2319 -0
- package/dist/template/package.json +4 -2
- package/dist/template/skills/arcadia-content-authoring/references/tool-workflows.md +1 -1
- package/dist/template/skills/arcadia-content-git/SKILL.md +14 -0
- package/dist/template/skills/arcadia-content-release/SKILL.md +29 -0
- package/dist/template/test/pack.test.mjs +24 -5
- package/dist/testing.d.ts +1 -0
- package/dist/testing.js +26 -7
- package/dist/workspace-cli.js +2 -2
- package/dist/workspace-materials.d.ts +4 -1
- package/dist/workspace-materials.js +8 -2
- package/dist/workspace.d.ts +11 -0
- package/dist/workspace.js +191 -31
- package/package.json +16 -4
- package/release-payload.mjs +91 -0
- package/release-test-npm.mjs +27 -0
package/dist/mcp-contracts.d.ts
CHANGED
|
@@ -16,10 +16,19 @@ export declare const jobKind: z.ZodEnum<{
|
|
|
16
16
|
demo: "demo";
|
|
17
17
|
pack: "pack";
|
|
18
18
|
preview: "preview";
|
|
19
|
+
release: "release";
|
|
19
20
|
test: "test";
|
|
20
21
|
}>;
|
|
21
22
|
export { jobState };
|
|
22
23
|
export declare const outputSchemas: {
|
|
24
|
+
'git-status': z.ZodObject<{
|
|
25
|
+
repository: z.ZodBoolean;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
'git-diff': z.ZodUnion<readonly [z.ZodObject<{
|
|
28
|
+
text: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
patch: z.ZodString;
|
|
31
|
+
}, z.core.$strip>]>;
|
|
23
32
|
describe: z.ZodObject<{
|
|
24
33
|
protocolVersion: z.ZodNumber;
|
|
25
34
|
root: z.ZodString;
|
|
@@ -103,6 +112,7 @@ export declare const outputSchemas: {
|
|
|
103
112
|
demo: "demo";
|
|
104
113
|
pack: "pack";
|
|
105
114
|
preview: "preview";
|
|
115
|
+
release: "release";
|
|
106
116
|
test: "test";
|
|
107
117
|
}>;
|
|
108
118
|
state: z.ZodEnum<{
|
|
@@ -144,6 +154,7 @@ export declare const outputSchemas: {
|
|
|
144
154
|
demo: "demo";
|
|
145
155
|
pack: "pack";
|
|
146
156
|
preview: "preview";
|
|
157
|
+
release: "release";
|
|
147
158
|
test: "test";
|
|
148
159
|
}>;
|
|
149
160
|
state: z.ZodEnum<{
|
|
@@ -185,6 +196,7 @@ export declare const outputSchemas: {
|
|
|
185
196
|
demo: "demo";
|
|
186
197
|
pack: "pack";
|
|
187
198
|
preview: "preview";
|
|
199
|
+
release: "release";
|
|
188
200
|
test: "test";
|
|
189
201
|
}>;
|
|
190
202
|
state: z.ZodEnum<{
|
|
@@ -230,6 +242,7 @@ export declare const outputSchemas: {
|
|
|
230
242
|
demo: "demo";
|
|
231
243
|
pack: "pack";
|
|
232
244
|
preview: "preview";
|
|
245
|
+
release: "release";
|
|
233
246
|
test: "test";
|
|
234
247
|
}>;
|
|
235
248
|
state: z.ZodEnum<{
|
|
@@ -310,8 +323,80 @@ export declare const outputSchemas: {
|
|
|
310
323
|
sources: z.ZodArray<z.ZodString>;
|
|
311
324
|
schemaVersion: z.ZodLiteral<2>;
|
|
312
325
|
rules: z.ZodObject<{
|
|
313
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
314
|
-
|
|
326
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
327
|
+
mechanics: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
skillSlots: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
normalMax: z.ZodNumber;
|
|
330
|
+
climaxMax: z.ZodNumber;
|
|
331
|
+
climaxMin: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
}, z.core.$strict>>;
|
|
333
|
+
individualValueDefault: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
individualValues: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
max: z.ZodNumber;
|
|
336
|
+
}, z.core.$strict>>;
|
|
337
|
+
allowFaintSwitch: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
inheritance: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
eligible: z.ZodUnion<readonly [z.ZodEnum<{
|
|
340
|
+
all: "all";
|
|
341
|
+
off: "off";
|
|
342
|
+
species: "species";
|
|
343
|
+
}>, z.ZodArray<z.ZodString>]>;
|
|
344
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
mode: z.ZodEnum<{
|
|
346
|
+
append: "append";
|
|
347
|
+
fallback: "fallback";
|
|
348
|
+
replace: "replace";
|
|
349
|
+
}>;
|
|
350
|
+
skills: z.ZodArray<z.ZodString>;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
}, z.core.$strict>>;
|
|
353
|
+
enhancement: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
mode: z.ZodEnum<{
|
|
355
|
+
active: "active";
|
|
356
|
+
forbidden: "forbidden";
|
|
357
|
+
suppressed: "suppressed";
|
|
358
|
+
}>;
|
|
359
|
+
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
360
|
+
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
secondGenerationNatures: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
363
|
+
all: "all";
|
|
364
|
+
off: "off";
|
|
365
|
+
species: "species";
|
|
366
|
+
}>, z.ZodArray<z.ZodString>]>>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
skillParameters: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
370
|
+
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
371
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
372
|
+
skill: z.ZodString;
|
|
373
|
+
useId: z.ZodString;
|
|
374
|
+
parameter: z.ZodString;
|
|
375
|
+
value: z.ZodNumber;
|
|
376
|
+
}, z.core.$strict>>>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
matchups: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
table: z.ZodOptional<z.ZodString>;
|
|
380
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
381
|
+
attack: z.ZodString;
|
|
382
|
+
defense: z.ZodString;
|
|
383
|
+
multiplier: z.ZodNumber;
|
|
384
|
+
}, z.core.$strict>>>;
|
|
385
|
+
}, z.core.$strict>>;
|
|
386
|
+
learnsetAdjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
387
|
+
species: z.ZodString;
|
|
388
|
+
source: z.ZodEnum<{
|
|
389
|
+
inherited: "inherited";
|
|
390
|
+
normal: "normal";
|
|
391
|
+
}>;
|
|
392
|
+
skill: z.ZodString;
|
|
393
|
+
action: z.ZodEnum<{
|
|
394
|
+
add: "add";
|
|
395
|
+
remove: "remove";
|
|
396
|
+
}>;
|
|
397
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
}, z.core.$strict>>>;
|
|
399
|
+
tier: z.ZodOptional<z.ZodLiteral<"standard">>;
|
|
315
400
|
allow: z.ZodOptional<z.ZodObject<{
|
|
316
401
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
317
402
|
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -327,6 +412,128 @@ export declare const outputSchemas: {
|
|
|
327
412
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
328
413
|
uniqueSpecies: z.ZodOptional<z.ZodBoolean>;
|
|
329
414
|
}, z.core.$strict>>;
|
|
415
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
418
|
+
kind: z.ZodEnum<{
|
|
419
|
+
mark: "mark";
|
|
420
|
+
skill: "skill";
|
|
421
|
+
species: "species";
|
|
422
|
+
}>;
|
|
423
|
+
ids: z.ZodArray<z.ZodString>;
|
|
424
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
425
|
+
}, z.core.$strict>>;
|
|
426
|
+
kind: z.ZodLiteral<"ban">;
|
|
427
|
+
scope: z.ZodEnum<{
|
|
428
|
+
pet: "pet";
|
|
429
|
+
team: "team";
|
|
430
|
+
}>;
|
|
431
|
+
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
|
+
kind: z.ZodEnum<{
|
|
433
|
+
mark: "mark";
|
|
434
|
+
skill: "skill";
|
|
435
|
+
species: "species";
|
|
436
|
+
}>;
|
|
437
|
+
ids: z.ZodArray<z.ZodString>;
|
|
438
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
439
|
+
}, z.core.$strict>>>;
|
|
440
|
+
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
441
|
+
kind: z.ZodEnum<{
|
|
442
|
+
mark: "mark";
|
|
443
|
+
skill: "skill";
|
|
444
|
+
species: "species";
|
|
445
|
+
}>;
|
|
446
|
+
ids: z.ZodArray<z.ZodString>;
|
|
447
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
448
|
+
}, z.core.$strict>>>>;
|
|
449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
452
|
+
kind: z.ZodEnum<{
|
|
453
|
+
mark: "mark";
|
|
454
|
+
skill: "skill";
|
|
455
|
+
species: "species";
|
|
456
|
+
}>;
|
|
457
|
+
ids: z.ZodArray<z.ZodString>;
|
|
458
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
kind: z.ZodLiteral<"memberLimit">;
|
|
461
|
+
max: z.ZodNumber;
|
|
462
|
+
}, z.core.$strict>], "kind">>>;
|
|
463
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodString;
|
|
465
|
+
kind: z.ZodEnum<{
|
|
466
|
+
mark: "mark";
|
|
467
|
+
skill: "skill";
|
|
468
|
+
species: "species";
|
|
469
|
+
}>;
|
|
470
|
+
ids: z.ZodArray<z.ZodString>;
|
|
471
|
+
}, z.core.$strict>>>;
|
|
472
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
473
|
+
constraintEdits: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
475
|
+
replace: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
478
|
+
kind: z.ZodEnum<{
|
|
479
|
+
mark: "mark";
|
|
480
|
+
skill: "skill";
|
|
481
|
+
species: "species";
|
|
482
|
+
}>;
|
|
483
|
+
ids: z.ZodArray<z.ZodString>;
|
|
484
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
485
|
+
}, z.core.$strict>>;
|
|
486
|
+
kind: z.ZodLiteral<"ban">;
|
|
487
|
+
scope: z.ZodEnum<{
|
|
488
|
+
pet: "pet";
|
|
489
|
+
team: "team";
|
|
490
|
+
}>;
|
|
491
|
+
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
492
|
+
kind: z.ZodEnum<{
|
|
493
|
+
mark: "mark";
|
|
494
|
+
skill: "skill";
|
|
495
|
+
species: "species";
|
|
496
|
+
}>;
|
|
497
|
+
ids: z.ZodArray<z.ZodString>;
|
|
498
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
499
|
+
}, z.core.$strict>>>;
|
|
500
|
+
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
501
|
+
kind: z.ZodEnum<{
|
|
502
|
+
mark: "mark";
|
|
503
|
+
skill: "skill";
|
|
504
|
+
species: "species";
|
|
505
|
+
}>;
|
|
506
|
+
ids: z.ZodArray<z.ZodString>;
|
|
507
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
508
|
+
}, z.core.$strict>>>>;
|
|
509
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
512
|
+
kind: z.ZodEnum<{
|
|
513
|
+
mark: "mark";
|
|
514
|
+
skill: "skill";
|
|
515
|
+
species: "species";
|
|
516
|
+
}>;
|
|
517
|
+
ids: z.ZodArray<z.ZodString>;
|
|
518
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
519
|
+
}, z.core.$strict>>;
|
|
520
|
+
kind: z.ZodLiteral<"memberLimit">;
|
|
521
|
+
max: z.ZodNumber;
|
|
522
|
+
}, z.core.$strict>], "kind">>>;
|
|
523
|
+
clearExceptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
524
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
525
|
+
target: z.ZodString;
|
|
526
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
527
|
+
kind: z.ZodEnum<{
|
|
528
|
+
mark: "mark";
|
|
529
|
+
skill: "skill";
|
|
530
|
+
species: "species";
|
|
531
|
+
}>;
|
|
532
|
+
ids: z.ZodArray<z.ZodString>;
|
|
533
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
534
|
+
}, z.core.$strict>>;
|
|
535
|
+
}, z.core.$strict>>>;
|
|
536
|
+
}, z.core.$strict>>;
|
|
330
537
|
}, z.core.$strict>;
|
|
331
538
|
requires: z.ZodObject<{
|
|
332
539
|
engine: z.ZodOptional<z.ZodString>;
|
|
@@ -350,8 +557,80 @@ export declare const outputSchemas: {
|
|
|
350
557
|
sources: z.ZodArray<z.ZodString>;
|
|
351
558
|
schemaVersion: z.ZodLiteral<2>;
|
|
352
559
|
rules: z.ZodObject<{
|
|
353
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
354
|
-
|
|
560
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
561
|
+
mechanics: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
skillSlots: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
normalMax: z.ZodNumber;
|
|
564
|
+
climaxMax: z.ZodNumber;
|
|
565
|
+
climaxMin: z.ZodOptional<z.ZodNumber>;
|
|
566
|
+
}, z.core.$strict>>;
|
|
567
|
+
individualValueDefault: z.ZodOptional<z.ZodNumber>;
|
|
568
|
+
individualValues: z.ZodOptional<z.ZodObject<{
|
|
569
|
+
max: z.ZodNumber;
|
|
570
|
+
}, z.core.$strict>>;
|
|
571
|
+
allowFaintSwitch: z.ZodOptional<z.ZodBoolean>;
|
|
572
|
+
inheritance: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
eligible: z.ZodUnion<readonly [z.ZodEnum<{
|
|
574
|
+
all: "all";
|
|
575
|
+
off: "off";
|
|
576
|
+
species: "species";
|
|
577
|
+
}>, z.ZodArray<z.ZodString>]>;
|
|
578
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
mode: z.ZodEnum<{
|
|
580
|
+
append: "append";
|
|
581
|
+
fallback: "fallback";
|
|
582
|
+
replace: "replace";
|
|
583
|
+
}>;
|
|
584
|
+
skills: z.ZodArray<z.ZodString>;
|
|
585
|
+
}, z.core.$strict>>;
|
|
586
|
+
}, z.core.$strict>>;
|
|
587
|
+
enhancement: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
mode: z.ZodEnum<{
|
|
589
|
+
active: "active";
|
|
590
|
+
forbidden: "forbidden";
|
|
591
|
+
suppressed: "suppressed";
|
|
592
|
+
}>;
|
|
593
|
+
stages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
594
|
+
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
595
|
+
}, z.core.$strict>>;
|
|
596
|
+
secondGenerationNatures: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
597
|
+
all: "all";
|
|
598
|
+
off: "off";
|
|
599
|
+
species: "species";
|
|
600
|
+
}>, z.ZodArray<z.ZodString>]>>;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
skillParameters: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
604
|
+
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
605
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
606
|
+
skill: z.ZodString;
|
|
607
|
+
useId: z.ZodString;
|
|
608
|
+
parameter: z.ZodString;
|
|
609
|
+
value: z.ZodNumber;
|
|
610
|
+
}, z.core.$strict>>>;
|
|
611
|
+
}, z.core.$strict>>;
|
|
612
|
+
matchups: z.ZodOptional<z.ZodObject<{
|
|
613
|
+
table: z.ZodOptional<z.ZodString>;
|
|
614
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
615
|
+
attack: z.ZodString;
|
|
616
|
+
defense: z.ZodString;
|
|
617
|
+
multiplier: z.ZodNumber;
|
|
618
|
+
}, z.core.$strict>>>;
|
|
619
|
+
}, z.core.$strict>>;
|
|
620
|
+
learnsetAdjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
621
|
+
species: z.ZodString;
|
|
622
|
+
source: z.ZodEnum<{
|
|
623
|
+
inherited: "inherited";
|
|
624
|
+
normal: "normal";
|
|
625
|
+
}>;
|
|
626
|
+
skill: z.ZodString;
|
|
627
|
+
action: z.ZodEnum<{
|
|
628
|
+
add: "add";
|
|
629
|
+
remove: "remove";
|
|
630
|
+
}>;
|
|
631
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
632
|
+
}, z.core.$strict>>>;
|
|
633
|
+
tier: z.ZodOptional<z.ZodLiteral<"standard">>;
|
|
355
634
|
allow: z.ZodOptional<z.ZodObject<{
|
|
356
635
|
species: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
636
|
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -367,6 +646,128 @@ export declare const outputSchemas: {
|
|
|
367
646
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
368
647
|
uniqueSpecies: z.ZodOptional<z.ZodBoolean>;
|
|
369
648
|
}, z.core.$strict>>;
|
|
649
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
650
|
+
id: z.ZodString;
|
|
651
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
652
|
+
kind: z.ZodEnum<{
|
|
653
|
+
mark: "mark";
|
|
654
|
+
skill: "skill";
|
|
655
|
+
species: "species";
|
|
656
|
+
}>;
|
|
657
|
+
ids: z.ZodArray<z.ZodString>;
|
|
658
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
659
|
+
}, z.core.$strict>>;
|
|
660
|
+
kind: z.ZodLiteral<"ban">;
|
|
661
|
+
scope: z.ZodEnum<{
|
|
662
|
+
pet: "pet";
|
|
663
|
+
team: "team";
|
|
664
|
+
}>;
|
|
665
|
+
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
666
|
+
kind: z.ZodEnum<{
|
|
667
|
+
mark: "mark";
|
|
668
|
+
skill: "skill";
|
|
669
|
+
species: "species";
|
|
670
|
+
}>;
|
|
671
|
+
ids: z.ZodArray<z.ZodString>;
|
|
672
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
673
|
+
}, z.core.$strict>>>;
|
|
674
|
+
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
675
|
+
kind: z.ZodEnum<{
|
|
676
|
+
mark: "mark";
|
|
677
|
+
skill: "skill";
|
|
678
|
+
species: "species";
|
|
679
|
+
}>;
|
|
680
|
+
ids: z.ZodArray<z.ZodString>;
|
|
681
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
682
|
+
}, z.core.$strict>>>>;
|
|
683
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
684
|
+
id: z.ZodString;
|
|
685
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
686
|
+
kind: z.ZodEnum<{
|
|
687
|
+
mark: "mark";
|
|
688
|
+
skill: "skill";
|
|
689
|
+
species: "species";
|
|
690
|
+
}>;
|
|
691
|
+
ids: z.ZodArray<z.ZodString>;
|
|
692
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
693
|
+
}, z.core.$strict>>;
|
|
694
|
+
kind: z.ZodLiteral<"memberLimit">;
|
|
695
|
+
max: z.ZodNumber;
|
|
696
|
+
}, z.core.$strict>], "kind">>>;
|
|
697
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
698
|
+
id: z.ZodString;
|
|
699
|
+
kind: z.ZodEnum<{
|
|
700
|
+
mark: "mark";
|
|
701
|
+
skill: "skill";
|
|
702
|
+
species: "species";
|
|
703
|
+
}>;
|
|
704
|
+
ids: z.ZodArray<z.ZodString>;
|
|
705
|
+
}, z.core.$strict>>>;
|
|
706
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
707
|
+
constraintEdits: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
709
|
+
replace: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
712
|
+
kind: z.ZodEnum<{
|
|
713
|
+
mark: "mark";
|
|
714
|
+
skill: "skill";
|
|
715
|
+
species: "species";
|
|
716
|
+
}>;
|
|
717
|
+
ids: z.ZodArray<z.ZodString>;
|
|
718
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
719
|
+
}, z.core.$strict>>;
|
|
720
|
+
kind: z.ZodLiteral<"ban">;
|
|
721
|
+
scope: z.ZodEnum<{
|
|
722
|
+
pet: "pet";
|
|
723
|
+
team: "team";
|
|
724
|
+
}>;
|
|
725
|
+
exceptWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
726
|
+
kind: z.ZodEnum<{
|
|
727
|
+
mark: "mark";
|
|
728
|
+
skill: "skill";
|
|
729
|
+
species: "species";
|
|
730
|
+
}>;
|
|
731
|
+
ids: z.ZodArray<z.ZodString>;
|
|
732
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
733
|
+
}, z.core.$strict>>>;
|
|
734
|
+
exceptAny: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
735
|
+
kind: z.ZodEnum<{
|
|
736
|
+
mark: "mark";
|
|
737
|
+
skill: "skill";
|
|
738
|
+
species: "species";
|
|
739
|
+
}>;
|
|
740
|
+
ids: z.ZodArray<z.ZodString>;
|
|
741
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
742
|
+
}, z.core.$strict>>>>;
|
|
743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
746
|
+
kind: z.ZodEnum<{
|
|
747
|
+
mark: "mark";
|
|
748
|
+
skill: "skill";
|
|
749
|
+
species: "species";
|
|
750
|
+
}>;
|
|
751
|
+
ids: z.ZodArray<z.ZodString>;
|
|
752
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
753
|
+
}, z.core.$strict>>;
|
|
754
|
+
kind: z.ZodLiteral<"memberLimit">;
|
|
755
|
+
max: z.ZodNumber;
|
|
756
|
+
}, z.core.$strict>], "kind">>>;
|
|
757
|
+
clearExceptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
758
|
+
exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
759
|
+
target: z.ZodString;
|
|
760
|
+
allOf: z.ZodArray<z.ZodObject<{
|
|
761
|
+
kind: z.ZodEnum<{
|
|
762
|
+
mark: "mark";
|
|
763
|
+
skill: "skill";
|
|
764
|
+
species: "species";
|
|
765
|
+
}>;
|
|
766
|
+
ids: z.ZodArray<z.ZodString>;
|
|
767
|
+
fromCollections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
768
|
+
}, z.core.$strict>>;
|
|
769
|
+
}, z.core.$strict>>>;
|
|
770
|
+
}, z.core.$strict>>;
|
|
370
771
|
}, z.core.$strict>;
|
|
371
772
|
requires: z.ZodObject<{
|
|
372
773
|
engine: z.ZodOptional<z.ZodString>;
|
package/dist/mcp-contracts.js
CHANGED
|
@@ -16,7 +16,7 @@ const diagnosticSchema = z
|
|
|
16
16
|
.passthrough();
|
|
17
17
|
const saved = z.object({ file: z.string(), version });
|
|
18
18
|
const jobState = z.enum(['queued', 'running', 'succeeded', 'failed', 'cancelled', 'interrupted']);
|
|
19
|
-
export const jobKind = z.enum(['check', 'test', 'demo', 'preview', 'pack']);
|
|
19
|
+
export const jobKind = z.enum(['check', 'test', 'demo', 'preview', 'pack', 'release']);
|
|
20
20
|
export { jobState };
|
|
21
21
|
const job = z
|
|
22
22
|
.object({
|
|
@@ -67,6 +67,8 @@ const environment = z.discriminatedUnion('schemaVersion', [
|
|
|
67
67
|
// Dynamic content and battle payloads keep their domain fields; the envelopes and
|
|
68
68
|
// control fields are explicit so clients can handle pagination, conflicts and jobs.
|
|
69
69
|
export const outputSchemas = {
|
|
70
|
+
'git-status': z.object({ repository: z.boolean() }).passthrough(),
|
|
71
|
+
'git-diff': z.union([z.object({ text: z.string() }), z.object({ patch: z.string() })]),
|
|
70
72
|
describe: z.object({
|
|
71
73
|
protocolVersion: z.number(),
|
|
72
74
|
root: z.string(),
|
package/dist/mcp.js
CHANGED
|
@@ -65,13 +65,34 @@ function tool(name, description, inputSchema, operation, transform = input => in
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
if (!session.workspace.published) {
|
|
69
|
+
tool('git_status', 'Read the bound Git worktree and index.', {}, 'git-status', undefined, true);
|
|
70
|
+
tool('git_diff', 'Read one changed source file. Set staged to compare its index entry to HEAD.', { file: z.string(), staged: z.boolean().optional() }, 'git-diff', undefined, true);
|
|
71
|
+
}
|
|
68
72
|
tool('workspace_describe', 'Read the bound project identity, source revision, SDK and execution capabilities without importing project code.', {}, 'describe', undefined, true);
|
|
69
73
|
tool('workspace_context', 'Read live desktop context: current view, focused object/resource, language, unsaved drafts and external conflicts. No selection is required. Context is not an edit scope or authorization; follow the user request and query related content as needed. Draft values are unsaved and are not source revisions. Disconnected/expired context must not be treated as current. Re-read source versions before writes; external edits are reconciled by the desktop.', {}, 'context', undefined, true);
|
|
70
74
|
tool('content_query', 'Find content by stable ID or localized name. Defaults to concise project summaries; detail:full includes records for editing. Locales paginate individual entries. Dependency/all scope reads declared installed content without executing code; dependencies are read-only and their file paths belong to that dependency, not the bound project. Use file/version/index from full project rows for saves, never a translated name as identity.', {
|
|
71
75
|
kind: z.enum(['content', 'presentations', 'resources', 'assets', 'files', 'locales', 'diagnostics']).optional(),
|
|
72
76
|
search: z.string().max(200).optional(),
|
|
73
77
|
id: z.string().max(200).optional(),
|
|
74
|
-
contentKind: z
|
|
78
|
+
contentKind: z
|
|
79
|
+
.enum([
|
|
80
|
+
'species',
|
|
81
|
+
'skills',
|
|
82
|
+
'marks',
|
|
83
|
+
'behaviors',
|
|
84
|
+
'natures',
|
|
85
|
+
'enhancements',
|
|
86
|
+
'elements',
|
|
87
|
+
'parameterGroups',
|
|
88
|
+
'parameterProfiles',
|
|
89
|
+
'parameterBindings',
|
|
90
|
+
'ruleSets',
|
|
91
|
+
'matchupTables',
|
|
92
|
+
'presentations',
|
|
93
|
+
'resources',
|
|
94
|
+
])
|
|
95
|
+
.optional(),
|
|
75
96
|
locale: z.string().max(80).optional(),
|
|
76
97
|
namespace: z.string().max(200).optional(),
|
|
77
98
|
packageName: z.string().max(200).optional(),
|
|
@@ -112,6 +133,7 @@ for (const [name, kind] of [
|
|
|
112
133
|
['test_start', 'test'],
|
|
113
134
|
['preview_start', 'preview'],
|
|
114
135
|
['package_build', 'pack'],
|
|
136
|
+
['release_check', 'release'],
|
|
115
137
|
]) {
|
|
116
138
|
if (session.workspace.readOnly)
|
|
117
139
|
continue;
|
package/dist/pack-project.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Trusted author packaging: close the effect dependency graph without evaluating it.
|
|
2
2
|
* Only the staged package gains artifact metadata; the source manifest is never rewritten.
|
|
3
3
|
*/
|
|
4
|
-
export declare function packBuiltProject(directory?: string, { cache }?: {
|
|
4
|
+
export declare function packBuiltProject(directory?: string, { cache, release }?: {
|
|
5
5
|
cache?: string;
|
|
6
|
+
release?: boolean;
|
|
6
7
|
}): Promise<import("@arcadia-eternity/pack-loader/node").NpmPackEntry>;
|
package/dist/pack-project.js
CHANGED
|
@@ -3,7 +3,9 @@ import { statSync } from 'node:fs';
|
|
|
3
3
|
import { copyFile, lstat, mkdir, mkdtemp, readFile, realpath, rename, rm, writeFile } from 'node:fs/promises';
|
|
4
4
|
import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
5
5
|
import { promisify } from 'node:util';
|
|
6
|
-
import { compileEffectModule, parseNpmPackOutput, resolveNpmInvocation } from '@arcadia-eternity/pack-loader/node';
|
|
6
|
+
import { compileEffectModule, emptyNpmContentHost, parseNpmPackOutput, prepareNpmProject, resolveNpmInvocation, } from '@arcadia-eternity/pack-loader/node';
|
|
7
|
+
import { releasePayload, normalizeReleaseArchive } from '../release-payload.mjs';
|
|
8
|
+
import { ManagedProjects } from './managed-projects.js';
|
|
7
9
|
import { errorCode } from './types.js';
|
|
8
10
|
const exec = promisify(execFile);
|
|
9
11
|
const artifactFile = 'dist/arcadia-effects.json';
|
|
@@ -59,10 +61,31 @@ async function stagingRoot(root) {
|
|
|
59
61
|
}
|
|
60
62
|
return directory;
|
|
61
63
|
}
|
|
64
|
+
async function verifyRelease(directory, archive, name) {
|
|
65
|
+
const project = join(directory, 'consumer');
|
|
66
|
+
await mkdir(join(project, 'candidates'), { recursive: true });
|
|
67
|
+
await copyFile(archive, join(project, 'candidates/release.tgz'));
|
|
68
|
+
const installer = new ManagedProjects(join(directory, 'installer'), { allowThirdPartyContent: true });
|
|
69
|
+
try {
|
|
70
|
+
await installer.prepareProject({
|
|
71
|
+
schemaVersion: 1,
|
|
72
|
+
id: 'release',
|
|
73
|
+
name: '发行检查',
|
|
74
|
+
packages: { [name]: 'file:candidates/release.tgz' },
|
|
75
|
+
sources: [],
|
|
76
|
+
}, { projectDirectory: project }, async (installed) => {
|
|
77
|
+
const prepared = await prepareNpmProject(installed, emptyNpmContentHost, { policy: { profile: 'local-development' } }, { effectPreparation: 'prebuilt-only' });
|
|
78
|
+
await prepared.dispose();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
await installer.close();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
62
85
|
/** Trusted author packaging: close the effect dependency graph without evaluating it.
|
|
63
86
|
* Only the staged package gains artifact metadata; the source manifest is never rewritten.
|
|
64
87
|
*/
|
|
65
|
-
export async function packBuiltProject(directory = process.cwd(), { cache } = {}) {
|
|
88
|
+
export async function packBuiltProject(directory = process.cwd(), { cache, release = false } = {}) {
|
|
66
89
|
const root = await realpath(resolve(directory));
|
|
67
90
|
const manifestText = await readFile(join(root, 'package.json'), 'utf8');
|
|
68
91
|
const manifest = JSON.parse(manifestText);
|
|
@@ -105,10 +128,18 @@ export async function packBuiltProject(directory = process.cwd(), { cache } = {}
|
|
|
105
128
|
fail(`npm files omits required presentation file: ${file}`);
|
|
106
129
|
const distributed = new Set(['package.json']);
|
|
107
130
|
for (const file of included)
|
|
108
|
-
if (file.startsWith('dist/') || distributionMetadata.test(file))
|
|
131
|
+
if ((!release && file.startsWith('dist/')) || distributionMetadata.test(file))
|
|
109
132
|
distributed.add(file);
|
|
110
133
|
for (const file of required)
|
|
111
134
|
distributed.add(file);
|
|
135
|
+
const releasePackage = release ? releasePayload(manifest, included, presentation) : undefined;
|
|
136
|
+
if (releasePackage) {
|
|
137
|
+
distributed.clear();
|
|
138
|
+
for (const file of releasePackage.files) {
|
|
139
|
+
if (file !== artifactFile || !manifest.arcadia?.effects)
|
|
140
|
+
distributed.add(file);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
112
143
|
// Keep output on the destination filesystem so publishing can be one rename.
|
|
113
144
|
const temporary = await mkdtemp(join(await stagingRoot(root), 'publish-'));
|
|
114
145
|
const payload = join(temporary, 'package'), output = join(temporary, 'output');
|
|
@@ -116,7 +147,7 @@ export async function packBuiltProject(directory = process.cwd(), { cache } = {}
|
|
|
116
147
|
try {
|
|
117
148
|
await mkdir(payload);
|
|
118
149
|
await mkdir(output);
|
|
119
|
-
const staged = structuredClone(manifest);
|
|
150
|
+
const staged = releasePackage ?? structuredClone(manifest);
|
|
120
151
|
for (const file of distributed) {
|
|
121
152
|
const source = await sourceFile(root, file);
|
|
122
153
|
sources.set(source.path, source);
|
|
@@ -152,7 +183,7 @@ export async function packBuiltProject(directory = process.cwd(), { cache } = {}
|
|
|
152
183
|
delete staged.arcadia.effectSources;
|
|
153
184
|
delete staged.arcadia.effects;
|
|
154
185
|
}
|
|
155
|
-
staged.files = [...distributed];
|
|
186
|
+
staged.files = releasePackage?.files ?? [...distributed];
|
|
156
187
|
await writeFile(join(payload, 'package.json'), JSON.stringify(staged, null, 2) + '\n');
|
|
157
188
|
const packed = parseNpmPackOutput(String((await npm(payload, ['pack', '--ignore-scripts', '--json', '--pack-destination', output], cache)).stdout))[0];
|
|
158
189
|
if (!packed)
|
|
@@ -167,6 +198,10 @@ export async function packBuiltProject(directory = process.cwd(), { cache } = {}
|
|
|
167
198
|
for (const file of actual)
|
|
168
199
|
if (!distributed.has(file) && !distributionMetadata.test(file))
|
|
169
200
|
fail(`npm included a non-artifact file: ${file}`);
|
|
201
|
+
if (release) {
|
|
202
|
+
Object.assign(packed, await normalizeReleaseArchive(join(output, packed.filename)));
|
|
203
|
+
await verifyRelease(temporary, join(output, packed.filename), manifest.name);
|
|
204
|
+
}
|
|
170
205
|
if ((await readFile(join(root, 'package.json'), 'utf8')) !== manifestText)
|
|
171
206
|
fail('Package manifest changed during packaging');
|
|
172
207
|
await verifyCapture(sources);
|