@patterkit/model 0.19.0 → 0.20.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/index.d.cts CHANGED
@@ -700,11 +700,10 @@ interface ProjectFile {
700
700
  gameDataFields?: GameDataFields;
701
701
  /**
702
702
  * The Patter extensions this project takes, by id (ruled 2026-10-18: the project opts in), each pinned to a
703
- * version, with its settings (the host fields its claims present, by setting name). The manifest itself
704
- * sits in `extensions/<id>.extension.json`, and the data in `.patterextension` shards. Authoring config:
705
- * the bundle carries each one's compiled declarations, values, and resolved settings
706
- * (`BundleExtension.settings`), never this block itself. An extension named here whose manifest is missing
707
- * is a warning, and its data is left untouched.
703
+ * version. The manifest itself sits in `extensions/<id>.extension.json`, and the data in `.patterextension`
704
+ * shards. Authoring config: the bundle carries each one's compiled declarations and values, never this
705
+ * block itself. An extension named here whose manifest is missing is a warning, and its data is left
706
+ * untouched.
708
707
  */
709
708
  extensions?: Record<string, ProjectExtension>;
710
709
  /** Ordered writing-status ladder (not-done -> done); default `DEFAULT_WRITING_STATUSES`. */
@@ -1113,9 +1112,9 @@ interface Bundle {
1113
1112
  gameDataFields?: GameDataFields;
1114
1113
  /**
1115
1114
  * The extensions the project takes, by id: each one's version and its compiled declarations by node kind,
1116
- * every default resolved (what `extensionDecls` reads), the project node's own values, and its settings,
1117
- * resolved (what `extensionSettings` reads). A node's values sit on the node, under `extensions`. Absent
1118
- * when the project takes none, so a bundle without them is byte for byte what it was.
1115
+ * every default resolved (what `extensionDecls` reads), and the project node's own values. A node's values
1116
+ * sit on the node, under `extensions`. Absent when the project takes none, so a bundle without them is byte
1117
+ * for byte what it was.
1119
1118
  */
1120
1119
  extensions?: Record<string, BundleExtension>;
1121
1120
  scenes: Record<string, CompiledScene>;
@@ -1329,12 +1328,12 @@ declare const MANIFEST_EXTENSION = ".extension.json";
1329
1328
  * folder, so a merge driver handed one shard's path can always find the manifest. */
1330
1329
  declare const EXTENSIONS_DIR = "extensions";
1331
1330
  /**
1332
- * The extensions a project takes (`ProjectFile.extensions`), one each: the version it is pinned to and its
1333
- * settings (the host fields its claims present, by setting name).
1331
+ * The extensions a project takes (`ProjectFile.extensions`), one each: the version it is pinned to. An older
1332
+ * pin may still carry `settings`, which named the host fields claims presented; claims and settings are gone
1333
+ * from the extensions spec (2026-10-20), so they're ignored, and `patter validate` says so.
1334
1334
  */
1335
1335
  interface ProjectExtension {
1336
1336
  version: string;
1337
- settings?: Record<string, string>;
1338
1337
  }
1339
1338
  /**
1340
1339
  * One extension's data for one scene, or for the project (`scene: "@project"`).
@@ -1366,13 +1365,6 @@ interface BundleExtension {
1366
1365
  fields: Record<string, ExtensionFieldDecl[]>;
1367
1366
  /** The project node's values, raw, when it has any. */
1368
1367
  project?: Record<string, unknown>;
1369
- /**
1370
- * Every setting the manifest declares, by setting name, keys sorted: the project's value (`ProjectExtension.
1371
- * settings`), or else the setting's default (`@wildwinter/toolkit/extensions`' `settingValues`). A setting
1372
- * names a host field, so a game reads here which gameData field holds what the extension claims. Present
1373
- * only when the manifest declares settings.
1374
- */
1375
- settings?: Record<string, string>;
1376
1368
  }
1377
1369
  /**
1378
1370
  * A compiled extension field declaration (`@wildwinter/toolkit/extensions`' FieldDecl, less the editor's
package/dist/index.d.ts CHANGED
@@ -700,11 +700,10 @@ interface ProjectFile {
700
700
  gameDataFields?: GameDataFields;
701
701
  /**
702
702
  * The Patter extensions this project takes, by id (ruled 2026-10-18: the project opts in), each pinned to a
703
- * version, with its settings (the host fields its claims present, by setting name). The manifest itself
704
- * sits in `extensions/<id>.extension.json`, and the data in `.patterextension` shards. Authoring config:
705
- * the bundle carries each one's compiled declarations, values, and resolved settings
706
- * (`BundleExtension.settings`), never this block itself. An extension named here whose manifest is missing
707
- * is a warning, and its data is left untouched.
703
+ * version. The manifest itself sits in `extensions/<id>.extension.json`, and the data in `.patterextension`
704
+ * shards. Authoring config: the bundle carries each one's compiled declarations and values, never this
705
+ * block itself. An extension named here whose manifest is missing is a warning, and its data is left
706
+ * untouched.
708
707
  */
709
708
  extensions?: Record<string, ProjectExtension>;
710
709
  /** Ordered writing-status ladder (not-done -> done); default `DEFAULT_WRITING_STATUSES`. */
@@ -1113,9 +1112,9 @@ interface Bundle {
1113
1112
  gameDataFields?: GameDataFields;
1114
1113
  /**
1115
1114
  * The extensions the project takes, by id: each one's version and its compiled declarations by node kind,
1116
- * every default resolved (what `extensionDecls` reads), the project node's own values, and its settings,
1117
- * resolved (what `extensionSettings` reads). A node's values sit on the node, under `extensions`. Absent
1118
- * when the project takes none, so a bundle without them is byte for byte what it was.
1115
+ * every default resolved (what `extensionDecls` reads), and the project node's own values. A node's values
1116
+ * sit on the node, under `extensions`. Absent when the project takes none, so a bundle without them is byte
1117
+ * for byte what it was.
1119
1118
  */
1120
1119
  extensions?: Record<string, BundleExtension>;
1121
1120
  scenes: Record<string, CompiledScene>;
@@ -1329,12 +1328,12 @@ declare const MANIFEST_EXTENSION = ".extension.json";
1329
1328
  * folder, so a merge driver handed one shard's path can always find the manifest. */
1330
1329
  declare const EXTENSIONS_DIR = "extensions";
1331
1330
  /**
1332
- * The extensions a project takes (`ProjectFile.extensions`), one each: the version it is pinned to and its
1333
- * settings (the host fields its claims present, by setting name).
1331
+ * The extensions a project takes (`ProjectFile.extensions`), one each: the version it is pinned to. An older
1332
+ * pin may still carry `settings`, which named the host fields claims presented; claims and settings are gone
1333
+ * from the extensions spec (2026-10-20), so they're ignored, and `patter validate` says so.
1334
1334
  */
1335
1335
  interface ProjectExtension {
1336
1336
  version: string;
1337
- settings?: Record<string, string>;
1338
1337
  }
1339
1338
  /**
1340
1339
  * One extension's data for one scene, or for the project (`scene: "@project"`).
@@ -1366,13 +1365,6 @@ interface BundleExtension {
1366
1365
  fields: Record<string, ExtensionFieldDecl[]>;
1367
1366
  /** The project node's values, raw, when it has any. */
1368
1367
  project?: Record<string, unknown>;
1369
- /**
1370
- * Every setting the manifest declares, by setting name, keys sorted: the project's value (`ProjectExtension.
1371
- * settings`), or else the setting's default (`@wildwinter/toolkit/extensions`' `settingValues`). A setting
1372
- * names a host field, so a game reads here which gameData field holds what the extension claims. Present
1373
- * only when the manifest declares settings.
1374
- */
1375
- settings?: Record<string, string>;
1376
1368
  }
1377
1369
  /**
1378
1370
  * A compiled extension field declaration (`@wildwinter/toolkit/extensions`' FieldDecl, less the editor's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/model",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Patter data-model types: source (scene/block/group/snippet/beat/jump), project, locale, authoring. The shape source-of-truth.",
5
5
  "type": "module",
6
6
  "license": "MIT",