@tapestry-mud/cli 0.3.5 → 0.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapestry-mud/cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "CLI for the Tapestry MUD engine",
5
5
  "bin": {
6
6
  "tapestry": "./bin/tapestry.js"
@@ -16,7 +16,7 @@ function buildManifest(name, deps) {
16
16
  depLines,
17
17
  ` # Add more packs here. Run: tapestry install @scope/pack-name`,
18
18
  `packs: []`,
19
- `tag_validation: strict`,
19
+ `validation: strict`,
20
20
  ``,
21
21
  `# Server port, admin seed account, and engine settings are in server.yaml`,
22
22
  ].join('\n');
@@ -30,9 +30,9 @@ engine: ">=3.0.0"
30
30
  provides:
31
31
  - example
32
32
 
33
- # strict: undeclared tags on entities cause load failure
34
- # lenient: undeclared tags log warnings, pack still loads
35
- tag_validation: strict
33
+ # strict: undeclared tags and unregistered properties cause load failure
34
+ # lenient: logs warnings, pack still loads
35
+ validation: strict
36
36
 
37
37
  # Path to tag declarations file
38
38
  tags: "tags.yml"
@@ -56,7 +56,7 @@ meta:
56
56
  function tagsTemplate() {
57
57
  return `# Tag declarations for this pack.
58
58
  # Tags listed here can be used on entities (items, npcs, rooms, areas).
59
- # Undeclared tags cause load failure when tag_validation: strict.
59
+ # Undeclared tags cause load failure when validation is strict.
60
60
  #
61
61
  # Convention: always snake_case (e.g., safe_recall, not safe-recall)
62
62
  # applies_to: which entity types accept this tag
@@ -19,7 +19,7 @@ const PackageManifestSchema = z.object({
19
19
  ]),
20
20
  license: z.string().min(1),
21
21
  engine: z.string().min(1),
22
- tag_validation: z.enum(['strict', 'lenient']),
22
+ validation: z.enum(['strict', 'lenient']),
23
23
  dependencies: z.record(z.string()).optional(),
24
24
  peerDependencies: z.record(z.string()).optional(),
25
25
  provides: z.array(z.string()).optional(),
@@ -56,7 +56,7 @@ const ProjectManifestSchema = z.object({
56
56
  ]),
57
57
  dependencies: z.record(z.string()).optional(),
58
58
  packs: z.array(z.string()).optional(),
59
- tag_validation: z.enum(['strict', 'lenient']).optional(),
59
+ validation: z.enum(['strict', 'lenient']).optional(),
60
60
  });
61
61
 
62
62
  function validatePackageManifest(data) {