@maka/maka-cli 5.175.0 → 5.175.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.175.0",
3
+ "version": "5.175.1",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 3.x applications using React.",
@@ -278,7 +278,7 @@ export function buildReproScene(fixture) {
278
278
  * the room seed -- see types/seed/room-seed.ts. Nothing is invented
279
279
  * here, so a bench cannot describe a host the engine cannot build. */
280
280
  const hostFields = (side) => (host && hostSide === side
281
- ? { hasNode: true, nodeAccess: host.access ?? 'wireless', hostRating: host.rating }
281
+ ? { hasNode: true, nodeAccess: host.access ?? 'wireless', hostRating: host.rating, hostPurpose: host.purpose, hostSculpt: host.sculpt }
282
282
  : {});
283
283
  // Cameras WITHOUT a host. Never emitted alongside one: a host is
284
284
  // always watched already, and saying it twice invites the next reader
@@ -400,6 +400,13 @@ export function buildReproScene(fixture) {
400
400
  skills: { ...(seed.player.combat?.skills ?? {}), 'first-aid': 6, medicine: 6 },
401
401
  };
402
402
  });
403
+ // A FILE NEEDS A HOST TO SIT IN (items[].file). Same refusal as
404
+ // homeless ice, for the same reason: a builder that quietly invented
405
+ // the host would be inventing the thing under test.
406
+ const homelessFile = items.find(it => it.file) && !host;
407
+ if (homelessFile) {
408
+ throw new ReproFixtureError(`This fixture has a file but no host. A file lives inside a host -- add "host": {} so there is something for it to be in.`);
409
+ }
403
410
  const itemSeeds = items.map(it => ({
404
411
  name: it.name,
405
412
  description: it.description,
@@ -411,8 +418,11 @@ export function buildReproScene(fixture) {
411
418
  texture: 'Plain',
412
419
  rating: 'Common',
413
420
  weight: 0.1,
414
- room: roomFor(it.side ?? 'barrier'),
415
- atSpot: it.atDoorway ? REPRO_DOORWAY_SPOT : REPRO_FLOOR_SPOT,
421
+ // A FILE rides the host's room on the matrix plane and takes no
422
+ // spot -- a spot is a meat position (see the ice rule above).
423
+ ...(it.file
424
+ ? { plane: 'matrix', room: roomFor(hostSide) }
425
+ : { room: roomFor(it.side ?? 'barrier'), atSpot: it.atDoorway ? REPRO_DOORWAY_SPOT : REPRO_FLOOR_SPOT }),
416
426
  }));
417
427
  // INVARIANT 4: the key is on the side the runner starts on. A key
418
428
  // behind the door it opens is a bench nobody can work, and it reads
@@ -23,8 +23,11 @@
23
23
  *
24
24
  * 2.4.0 adds IReproNpc.astral -- purely additive, older drafts still
25
25
  * valid.
26
+ *
27
+ * 2.5.0 adds IReproHost.purpose / .sculpt and IReproItem.file (engine
28
+ * 1.50.0, hosts with a purpose) -- additive.
26
29
  */
27
- export const REPRO_SCHEMA_VERSION = '2.4.0';
30
+ export const REPRO_SCHEMA_VERSION = '2.5.0';
28
31
  /** THE LIVE REASON, from the field or the card's own words.
29
32
  *
30
33
  * `repro.live` is authoritative -- but the server's validator must
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.175.0",
3
+ "version": "5.175.1",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 3.x applications using React.",