@wildshard/sdk 0.3.2 → 0.3.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.
Files changed (79) hide show
  1. package/GUIDE.md +19 -6
  2. package/bin/wildshard.mjs +4 -0
  3. package/docs/api/EXPORT-TIERS.md +3 -2
  4. package/lint/export-tiers.json +1 -0
  5. package/lint/sdk-plugin.d.mts +2 -0
  6. package/lint/sdk-plugin.mjs +39 -1
  7. package/package.json +10 -9
  8. package/scripts/capture-hero.mjs +48 -18
  9. package/scripts/ci21-sdk-tail-lint.mjs +95 -0
  10. package/scripts/keep-copy.mjs +172 -0
  11. package/scripts/land.mjs +34 -4
  12. package/scripts/lane-live.mjs +136 -0
  13. package/scripts/leftovers-report.mjs +47 -0
  14. package/scripts/lint-dispatch.mjs +5 -0
  15. package/scripts/music/export-midi.mjs +3 -2
  16. package/scripts/prepare-product.mjs +3 -2
  17. package/scripts/scratch-dir.d.mts +3 -0
  18. package/scripts/scratch-dir.mjs +33 -14
  19. package/scripts/scratch-sweep.mjs +15 -23
  20. package/scripts/typecheck.mjs +15 -0
  21. package/scripts/worktree-reap.mjs +46 -104
  22. package/scripts/worktree.mjs +35 -13
  23. package/skills/wildshard/SKILL.md +3 -1
  24. package/src/cli/content-command.ts +44 -0
  25. package/src/cli/content.ts +287 -0
  26. package/src/cli/help.ts +7 -2
  27. package/src/cli/hero/hero.ts +6 -1
  28. package/src/cli/hero/scene-card.ts +46 -0
  29. package/src/cli/hero/stamp.ts +5 -3
  30. package/src/sharddev/authorManifest.ts +20 -2
  31. package/src/sharddev/cli.ts +1 -1
  32. package/src/sharddev/dev.ts +23 -4
  33. package/src/sharddev/newProject.ts +27 -8
  34. package/src/sharddev/project.ts +2 -2
  35. package/src/sharddev/refusals.ts +1 -0
  36. package/src/sharddev/scene/author.ts +22 -1
  37. package/src/sharddev/scene/budget.ts +87 -0
  38. package/src/sharddev/scene/creature.ts +171 -0
  39. package/src/sharddev/scene/description.ts +41 -0
  40. package/src/sharddev/scene/lower.ts +127 -3
  41. package/src/sharddev/scene/shardfile.ts +196 -14
  42. package/src/sharddev/shardSource.ts +2 -2
  43. package/src/sharddev/test/diskScriptScenario.ts +4 -2
  44. package/src/sharddev/test/ownedScratch.ts +14 -0
  45. package/src/sharddev/test/scriptScenario.ts +18 -13
  46. package/src/sharddev/tsconfig.json +3 -0
  47. package/src/sharddev/watch/pageEntry.ts +1 -19
  48. package/src/sharddev/watch/parity-baseline.json +6 -6
  49. package/src/sharddev/watch/parity.mjs +24 -0
  50. package/src/sharddev/watch/watch.ts +10 -2
  51. package/src/shards/_template/behaviour/boss.as +13 -4
  52. package/src/shards/_template/behaviour/door.as +8 -3
  53. package/src/shards/_template/behaviour/hooks.json +35 -0
  54. package/src/shards/_template/card/landscape.jpg +0 -0
  55. package/src/shards/_template/card/portrait.jpg +0 -0
  56. package/src/shards/_template/card/thumb.jpg +0 -0
  57. package/src/shards/_template/data/bossDecision.json +11 -1
  58. package/src/shards/_template/data/card.json +49 -1
  59. package/src/shards/_template/data/clientScripts.json +411 -0
  60. package/src/shards/_template/data/creatures.json +280 -2
  61. package/src/shards/_template/data/items.json +1 -1
  62. package/src/shards/_template/data/layout.json +32 -1
  63. package/src/shards/_template/data/ledger.json +45 -0
  64. package/src/shards/_template/data/npcs/hermit.json +72 -0
  65. package/src/shards/_template/data/quests.json +297 -11
  66. package/src/shards/_template/data/rows.json +154 -0
  67. package/src/shards/_template/data/skins.json +14 -0
  68. package/src/shards/_template/data/targets.json +47 -0
  69. package/src/shards/_template/data/text.json +4 -1
  70. package/src/shards/_template/generators/lift.ts +71 -0
  71. package/src/shards/_template/generators/product.ts +19 -5
  72. package/src/shards/_template/generators/templatePropsSource.ts +5 -4
  73. package/src/shards/_template/generators/terrain.ts +10 -2
  74. package/src/shards/_template/generators/world.ts +42 -7
  75. package/src/shards/_template/hero.json +6 -6
  76. package/src/shards/_template/manifest.json +49 -1
  77. package/src/shards/authoring-slice/generators/shard.ts +2 -1
  78. package/src/shards/authoring-slice/generators/world.ts +8 -1
  79. package/tsconfig.author.json +24 -0
@@ -0,0 +1,71 @@
1
+ /**
2
+ * TEMPLATE-E2E TC-M4b: the lift and its ledge, in the yard's north-east corner. A stone ledge stands against the north wall,
3
+ * a coin cache on top; a plank lift beside it rises to the ledge's top and comes back down, all the time, and pauses at each
4
+ * end so a rider steps on and off. Whoever stands on its deck rides it.
5
+ *
6
+ * The lift is a declared mover (`template.lift`, a native `track` on an `always` trigger, ping-pong): the server steps it,
7
+ * every page draws it as the props panel of the same id, baked here at its rest pose, and stands on its deck box (engine
8
+ * TC-E5b). The ledge is solid from the ground up, so the cache's region (TC-M4b's quest) is reachable only from its top.
9
+ */
10
+ import { BoxCollider } from '@wildshard/sdk/physics';
11
+ import type { PropsBakeSource } from '@wildshard/sdk/bake/props';
12
+ import { lowerMoverMotion, type MoverMotion } from '@wildshard/format/moverMotion';
13
+ import { parseMovers } from '@wildshard/format/movers';
14
+ import { Group, Mesh, MeshStandardMaterial } from 'three';
15
+ import layout from '../data/layout.json' with { type: 'json' };
16
+ import { surfaceBox } from './weather';
17
+
18
+ type Colliders = NonNullable<PropsBakeSource['colliders']>[number]['shapes'];
19
+ /** The ledge's top over the ground at its centre, and the lift deck's half size and thickness. The top stands out of reach
20
+ * of the best double jump (about 3.0 m) from the north wall's cap (about 1 m) beside it, so only the lift reaches the cache. */
21
+ export const LEDGE_HEIGHT = 5.2, DECK_HALF = 1.2, DECK_HALF_THICK = 0.12;
22
+ /** The lift's cycle: rest at the bottom, rise, rest at the top, then the same back (ping-pong), in seconds. */
23
+ const DWELL = 2, RISE = 4;
24
+ /** The mover's script entity: clear of the hooks' (1001, 1002) and every brain's. */
25
+ export const LIFT_ENTITY = 9101, LIFT_ID = 'template.lift';
26
+ /** Both are shadowless panels: tile 0/4/4 holds 8 draws, it had 6, and a shadow is a second draw. */
27
+ const STONE = 0x8c867a, MOSS = 0x5b7a30, WOOD = 0x86592f;
28
+
29
+ const box = (w: number, h: number, d: number, color: number): Mesh => new Mesh(surfaceBox(w, h, d), new MeshStandardMaterial({ color, flatShading: true }));
30
+
31
+ /** Where the lift rests and how far it rises: its deck's top at the ground, then at the ledge's top. */
32
+ export function liftRest(heightAt: (x: number, z: number) => number): { at: { x: number; y: number; z: number }; top: number; rise: number } {
33
+ const { x, z } = layout.LIFT, ground = heightAt(x, z), top = heightAt(layout.LEDGE.x, layout.LEDGE.z) + LEDGE_HEIGHT;
34
+ return { at: { x, y: ground - DECK_HALF_THICK + 0.1, z }, top, rise: top - ground - 0.1 };
35
+ }
36
+
37
+ /** The ledge (stone, solid, a moss cap and the cache on top) and its colliders. */
38
+ export function ledge(heightAt: (x: number, z: number) => number): { object: Group; colliders: Colliders; cache: [number, number, number] } {
39
+ const { x, z, hx, hz } = layout.LEDGE, base = heightAt(x, z) - 0.4, top = heightAt(x, z) + LEDGE_HEIGHT, h = top - base;
40
+ const object = new Group(), body = box(hx * 2, h, hz * 2, STONE); body.position.set(x, base + h / 2, z); object.add(body);
41
+ const cap = box(hx * 2 + 0.2, 0.18, hz * 2 + 0.2, MOSS); cap.position.set(x, top - 0.05, z); object.add(cap);
42
+ // the cache: a small wooden box with a lid, at the ledge's back edge
43
+ const cx = x, cz = z + hz - 0.6, chest = box(0.8, 0.5, 0.5, WOOD); chest.position.set(cx, top + 0.29, cz); object.add(chest);
44
+ const lid = box(0.84, 0.1, 0.54, WOOD); lid.position.set(cx, top + 0.59, cz); object.add(lid);
45
+ const colliders: Colliders = [BoxCollider.fromData({ kind: 'box', x, y: base + h / 2, z, hx, hy: h / 2, hz, yaw: -0, surface: 'stone' }).toColliderData()];
46
+ return { object, colliders, cache: [x, top, z] };
47
+ }
48
+
49
+ /** The lift's deck, baked where the mover rests: planks over two runners, with a hand rail on its south side. */
50
+ export function liftDeck(heightAt: (x: number, z: number) => number): Group {
51
+ const { at } = liftRest(heightAt), deck = new Group(), w = DECK_HALF * 2;
52
+ const floor = box(w, DECK_HALF_THICK * 2, w, WOOD); floor.position.set(at.x, at.y, at.z); deck.add(floor);
53
+ for (const dx of [-0.8, 0.8]) { const rail = box(0.12, 0.1, w, WOOD); rail.position.set(at.x + dx, at.y - DECK_HALF_THICK - 0.05, at.z); deck.add(rail); }
54
+ for (const dx of [-DECK_HALF + 0.05, DECK_HALF - 0.05]) { const post = box(0.1, 0.9, 0.1, WOOD); post.position.set(at.x + dx, at.y + 0.45, at.z - DECK_HALF + 0.05); deck.add(post); }
55
+ const bar = box(w, 0.08, 0.08, WOOD); bar.position.set(at.x, at.y + 0.9, at.z - DECK_HALF + 0.05); deck.add(bar);
56
+ return deck;
57
+ }
58
+
59
+ /** The lift's mover row: its deck box about its origin and the always-running ping-pong clip. */
60
+ export function liftMover(heightAt: (x: number, z: number) => number): ReturnType<typeof parseMovers>[number] {
61
+ const { at, rise } = liftRest(heightAt), rest = { at, euler: { x: 0, y: 0, z: 0 } };
62
+ const bottom: [number, number, number] = [at.x, at.y, at.z], top: [number, number, number] = [at.x, at.y + rise, at.z];
63
+ const duration = DWELL + RISE + DWELL;
64
+ const motion: MoverMotion = { driver: { kind: 'track' }, trigger: { kind: 'always' },
65
+ track: { clip: 'lift', duration, loop: 'pingpong', speed: 1, times: [0, DWELL, DWELL + RISE, duration], position: [bottom, bottom, top, top] } };
66
+ const [row] = parseMovers([{ id: LIFT_ID, entity: LIFT_ENTITY, kind: 'platform', ...rest, enabled: true,
67
+ boxes: [{ x: 0, y: 0, z: 0, hx: DECK_HALF, hy: DECK_HALF_THICK, hz: DECK_HALF, rot: { x: 0, y: 0, z: 0, w: 1 } }],
68
+ ...lowerMoverMotion(motion, rest), ...motion, execution: 'native' }]);
69
+ if (row === undefined) throw new Error('Missing lift mover');
70
+ return row;
71
+ }
@@ -15,7 +15,8 @@ import TEMPLATE_LOOK from '../data/look.json' with { type: 'json' };
15
15
  import TEMPLATE_WATER from '../data/water.json' with { type: 'json' };
16
16
  import CREATURES from '../data/creatures.json' with { type: 'json' };
17
17
  import ENCOUNTERS from '../data/encounters.json' with { type: 'json' };
18
- import TEMPLATE_QUESTS from '../data/quests.json' with { type: 'json' };
18
+ import QUESTS from '../data/quests.json' with { type: 'json' };
19
+ import hermit from '../data/npcs/hermit.json' with { type: 'json' };
19
20
  import TEMPLATE_LEDGER from '../data/ledger.json' with { type: 'json' };
20
21
  import TEMPLATE_AUDIO from '../data/audio.json' with { type: 'json' };
21
22
  import SPAWN from '../data/spawn.json' with { type: 'json' };
@@ -24,10 +25,16 @@ import targets from '../data/targets.json' with { type: 'json' };
24
25
  import skins from '../data/skins.json' with { type: 'json' };
25
26
  import CARD from '../data/card.json' with { type: 'json' };
26
27
  import idle from '../data/clientScripts.json' with { type: 'json' };
28
+ import { liftMover } from './lift';
29
+ import { templateHeightAt } from './landscape';
27
30
 
28
31
  // Skin projections belong to this build-time declaration, with no runtime wrapper.
29
32
  const TEMPLATE_SKIN_LOOKS = skins.map(entry => ({ id: entry.look, species: entry.species, recipe: 'platform.skin', material: null, parameters: { skin: entry.skin }, animation: { recipe: 'platform.clips', parameters: { attackSpan: 1 } } }));
30
- const TEMPLATE_SKIN_FILES = skins.flatMap(entry => entry.files), TEMPLATE_SKIN_LIBRARY = skins.map(entry => entry.skin);
33
+ // a species may wear another's skin (the mossling wears the grey blob's): its entry lists no files, and the library names each skin once
34
+ // one file per NPC (J361): data/npcs/<name>.json holds its dialogue and its talk target
35
+ const NPCS = [hermit.npc];
36
+ const TEMPLATE_QUESTS = { ...QUESTS, dialogue: [...QUESTS.dialogue, ...NPCS.map(npc => npc.dialogue)] };
37
+ const TEMPLATE_SKIN_FILES = skins.flatMap(entry => entry.files), TEMPLATE_SKIN_LIBRARY = [...new Set(skins.map(entry => entry.skin))];
31
38
  const TEMPLATE_SKIN_COST = TEMPLATE_SKIN_FILES.reduce((sum, file) => ({ resident: sum.resident + file.decoded + file.gpu, compressed: sum.compressed + file.compressed }), { resident: 0, compressed: 0 });
32
39
 
33
40
  /** The particle anchors over braziers A, B and C, in `layout.BRAZIERS` order. */
@@ -48,6 +55,10 @@ const M2_MASONRY_RESIDENT = 300_000;
48
55
  * LF1-9's five-cone flames. Measured on the build: passes at 15 000 resident and 8 000 compressed, refuses at 0; these
49
56
  * leave a margin. */
50
57
  const M410_FLAMES = { resident: 30_000, compressed: 16_000 } as const;
58
+ /** TEMPLATE-E2E TC-M4: the south gate's panel (five planks and braces) in the library. */
59
+ const TC_M4_GATE = { resident: 20_000, compressed: 8_000 } as const;
60
+ /** TEMPLATE-E2E TC-M4b: the lift's deck and the ledge, two panels in the library (measured 37 032 resident, 19 808 compressed). */
61
+ const TC_M4_LIFT = { resident: 40_000, compressed: 21_000 } as const;
51
62
  // The idle reserve retains three pairs of Wasm pages and six particle slots.
52
63
  const TEMPLATE_ROWS = parseRows(rows);
53
64
  /** LF1-5: every props GLB names its surface (templatePropsSource.ts). The stone draws in the look's plain `pbr` (M2: no measure layer); the red
@@ -71,9 +82,10 @@ const TEMPLATE_UI = [{ ...ui.marker, label: text.hut, at: terrain.sites.door },
71
82
  const TEMPLATE_TARGETS = { ...targets.rows, interactions: [{ ...targets.interaction, at: terrain.sites.door, label: text.door }, ...targets.braziers.map((row, i) => {
72
83
  const at = terrain.sites.braziers[i], label = text.braziers[i]; if (at === undefined || label === undefined) throw new Error(`${row.id} needs a pad in layout.BRAZIERS and a label`);
73
84
  return { id: row.id, radius: row.radius, scene: row.scene, unless: row.unless, at, label };
74
- })],
85
+ }), { ...targets.chest, at: terrain.sites.chest, label: text.chest }, { ...targets.rack, at: terrain.sites.rack, label: text.rack },
86
+ { ...targets.lever, at: terrain.sites.lever, label: text.lever }],
75
87
  // MH-5: the Lamplighter (TE-ENG3's `targets.talks`), on the ground east of the spawn-to-hut path; the engine draws its stand-in
76
- talks: [{ ...targets.talk, at: terrain.sites.lamplighter }] };
88
+ talks: [{ ...targets.talk, at: terrain.sites.lamplighter }, { ...hermit.npc.talk, at: terrain.sites.hermit }] };
77
89
  const base = emptyShardfile({ slug: 'template', name: 'Template shard', author: 'Wildshard', revision: 2, seed: 357 });
78
90
  const playerHandle = 1106943697; // fnv1a32('actor.player') & 0x7fffffff; admission compares this with the session map.
79
91
  const script = { hash: door.hash, kind: 'wasm', compressed: door.compressed, decoded: door.compressed, gpu: 0, triangles: 0, draws: 0, dependencies: [], critical: true };
@@ -94,11 +106,13 @@ const TERRAIN_DRAW = { shadow: { cast: true, receive: true }, follow: 5 } as con
94
106
  // Retain the old producer's JSON boundary, including signed-zero normalization.
95
107
  // oxlint-disable-next-line unicorn/prefer-structured-clone -- JSON wire normalization, not cloning: structuredClone retains forbidden signed zero.
96
108
  return parseShardfile(JSON.parse(JSON.stringify({ ...base, accent: 'sand', manifest: CARD,
97
- budgets: { library: { resident: 100_000 + TEMPLATE_SKIN_COST.resident + CLIENT_IDLE_RESIDENT + 2_633_280 + MH3_LIBRARY_RESIDENT + MH4_LIBRARY_RESIDENT + LF19_LIBRARY.resident + M2_MASONRY_RESIDENT + M410_FLAMES.resident, compressed: 100_000 + CLIENT_IDLE_BYTES + TEMPLATE_SKIN_COST.compressed + LF19_LIBRARY.compressed + M410_FLAMES.compressed }, sim: { resident: 16_000_000, compressed: 1_000_000 - boss.compressed }, overlap: 0 },
109
+ budgets: { library: { resident: 100_000 + TEMPLATE_SKIN_COST.resident + CLIENT_IDLE_RESIDENT + 2_633_280 + MH3_LIBRARY_RESIDENT + MH4_LIBRARY_RESIDENT + LF19_LIBRARY.resident + M2_MASONRY_RESIDENT + M410_FLAMES.resident + TC_M4_GATE.resident + TC_M4_LIFT.resident, compressed: 100_000 + CLIENT_IDLE_BYTES + TEMPLATE_SKIN_COST.compressed + LF19_LIBRARY.compressed + M410_FLAMES.compressed + TC_M4_GATE.compressed + TC_M4_LIFT.compressed }, sim: { resident: 16_000_000, compressed: 1_000_000 - boss.compressed }, overlap: 0 },
98
110
  serverBudget: { ...base.serverBudget, tickMicros: 5_000, memory: 16_000_000 },
99
111
  look: TEMPLATE_LOOK, spawn: SPAWN, rows: { ...TEMPLATE_ROWS, looks: TEMPLATE_SKIN_LOOKS }, plumbing: TEMPLATE_PLUMBING, ui: TEMPLATE_UI,
100
112
  terrain: { ...terrain.terrain, ...TERRAIN_DRAW }, tiles, files: [...terrain.files, ...props.files, ...TEMPLATE_SKIN_FILES, script, itemScript, clientScript], edge: terrain.edge,
101
113
  library: [...props.library, ...TEMPLATE_SKIN_LIBRARY, CLIENT_IDLE_HASH], far: props.far, props: { ...props.props, materials: TEMPLATE_PROP_MATERIALS }, items: ITEMS, targets: TEMPLATE_TARGETS, clientScripts,
114
+ // TC-M4b: the lift (lift.ts), stepped by the server and drawn as its panel
115
+ movers: [liftMover(templateHeightAt())],
102
116
  critical: [...terrain.critical, door.hash, itemModule], water: TEMPLATE_WATER, creatures: CREATURES, encounters: ENCOUNTERS.encounters,
103
117
  quests: TEMPLATE_QUESTS, directors: TEMPLATE_DIRECTORS, ledger: TEMPLATE_LEDGER, audio: TEMPLATE_AUDIO, state: hooks.state, hooks: hooks.hooks,
104
118
  sim: { ...base.sim, scriptTickDivisor: 1, scripts: [door.hash, itemModule], bindings: [{ module: door.hash, entity: playerHandle, actorId: 'actor.player', kind: 'server' }] },
@@ -13,8 +13,9 @@ export const TEMPLATE_STONE = 'measure', TEMPLATE_MUSHROOM_CAP = 'mossgate.mushr
13
13
  export const TEMPLATE_LAMP = 'mossgate.lamp', TEMPLATE_FLAME = 'mossgate.flame';
14
14
  /** LF1-9: the Warden's slam tell ring, an emissive amber (its core gem draws in the lamp's gold). */
15
15
  export const TEMPLATE_TELL = 'mossgate.tell';
16
- /** Pieces whose colliders a target row switches (MH-2: the moss gate; MH-3: the pond's stones and the arena gate). */
17
- const PANELS: ReadonlySet<string> = new Set(['template.door', 'template.mossgate', 'template.pond-stones', 'template.arena-gate']);
16
+ /** Pieces whose colliders a target row switches (MH-2: the moss gate; MH-3: the pond's stones and the arena gate). TC-M4b's ledge
17
+ * is a panel too, on a field nothing sets (`template.ledge.standing`): it rides in the library, off the yard tiles' bake debt. */
18
+ const PANELS: ReadonlySet<string> = new Set(['template.door', 'template.mossgate', 'template.pond-stones', 'template.arena-gate', 'template.south-gate', 'template.ledge']);
18
19
  /** Panel colliders that start off: the pond's raised stones stand only once brazier B is lit. */
19
20
  const STARTS_OFF: ReadonlySet<string> = new Set(['template.pond-stones']);
20
21
  /** Actual template generators, captured before merging. Water remains owned by the water declaration. */
@@ -26,7 +27,7 @@ export function templateProps(count = 20): { source: PropsBakeSource; original:
26
27
  buildTemplateWorld({ root: original, scope, piece, rng: { stream: () => random }, heightAt: templateHeightAt() }, count);
27
28
  const cell = buildCellFill({ root: original, scope, piece });
28
29
  const shape = (id: string): Object3D => { const object = pieces.find(part => part.id === id)?.object; if (object === undefined) throw new Error(`Missing template shape ${id}`); return object; };
29
- const staticRoot = new Group(); staticRoot.add(shape('template.hut').clone(), shape('template.ramp').clone(), shape('template.braziers').clone(), shape('template.dressing').clone(), shape('template.foliage').clone(), shape('template.mossgate-frame').clone(), shape('template.mossgate-vines').clone(), shape('template.arena-wall').clone(), shape('template.arena-dressing').clone(), shape('template.pond-stones-sunk').clone(), shape('template.pond-planting').clone(), shape('template.yard-walls').clone(), shape('template.hut-interior').clone());
30
+ const staticRoot = new Group(); staticRoot.add(shape('template.hut').clone(), shape('template.gate-lever').clone(), shape('template.ramp').clone(), shape('template.braziers').clone(), shape('template.dressing').clone(), shape('template.foliage').clone(), shape('template.mossgate-frame').clone(), shape('template.mossgate-vines').clone(), shape('template.arena-wall').clone(), shape('template.arena-dressing').clone(), shape('template.pond-stones-sunk').clone(), shape('template.pond-planting').clone(), shape('template.yard-walls').clone(), shape('template.hut-interior').clone());
30
31
  // G220's cell fill: drawn whole near; the coarse tiles and the far proxy keep its big shapes (no stripes, posts or cubes)
31
32
  const cellIds = CELL_PIECES, coarse = new Group(), far = new Group();
32
33
  for (const id of cellIds) { staticRoot.add(shape(id).clone()); coarse.add(cellCoarse(shape(id))); far.add(cellFar(shape(id))); }
@@ -54,7 +55,7 @@ export function templateProps(count = 20): { source: PropsBakeSource; original:
54
55
  // LF1-9: the rim braziers' flames (field 104), the Warden's tell ring (110) and core (111), each a shadowless emissive panel
55
56
  // in 0/3/4, paid for by the arena gate casting no shadow and the tile's scatter cubes going
56
57
  const rim = rimFlames(templateHeightAt()), tell = wardenTell(templateHeightAt());
57
- return { source: { static: staticRoot, materialName: TEMPLATE_STONE, whole: [{ id: 'template_mushroom_caps', mesh: caps.mesh, transform: caps.transform, materialName: TEMPLATE_MUSHROOM_CAP }, { id: 'template_hut_lamp', mesh: glass.mesh, transform: glass.transform, materialName: TEMPLATE_LAMP }], scatter: [cell.posts], panels: [{ id: 'template.door', model: door, castShadow: false }, { id: 'template.flame-a', model: flame, visible: false, materialName: TEMPLATE_FLAME, castShadow: false }, { id: 'template.flame-b', model: flameB, visible: false, materialName: TEMPLATE_FLAME, castShadow: false }, { id: 'template.mossgate', model: shape('template.mossgate') },
58
+ return { source: { static: staticRoot, materialName: TEMPLATE_STONE, whole: [{ id: 'template_mushroom_caps', mesh: caps.mesh, transform: caps.transform, materialName: TEMPLATE_MUSHROOM_CAP }, { id: 'template_hut_lamp', mesh: glass.mesh, transform: glass.transform, materialName: TEMPLATE_LAMP }], scatter: [cell.posts], panels: [{ id: 'template.door', model: door, castShadow: false }, { id: 'template.flame-a', model: flame, visible: false, materialName: TEMPLATE_FLAME, castShadow: false }, { id: 'template.flame-b', model: flameB, visible: false, materialName: TEMPLATE_FLAME, castShadow: false }, { id: 'template.mossgate', model: shape('template.mossgate') }, { id: 'template.south-gate', model: shape('template.south-gate'), castShadow: false }, { id: 'template.lift', model: shape('template.lift'), castShadow: false }, { id: 'template.ledge', model: shape('template.ledge'), castShadow: false },
58
59
  { id: 'template.pond-stones', model: shape('template.pond-stones'), visible: false, castShadow: false }, { id: 'template.arena-gate', model: shape('template.arena-gate'), castShadow: false },
59
60
  { id: 'template.rim-flames', model: rim, visible: false, materialName: TEMPLATE_FLAME, castShadow: false }, { id: 'template.warden-ring', model: tell.ring, visible: false, materialName: TEMPLATE_TELL, castShadow: false }, { id: 'template.warden-core', model: tell.core, visible: false, materialName: TEMPLATE_LAMP, castShadow: false }, { id: 'template.jump', model: course, visible: false }], colliders, models: [{ id: 'template.lantern', model: lampShapes }], coarse, far }, original, dispose: () => { for (const resource of resources) resource.dispose(); for (const cleanup of cleanups) cleanup(); caps.mesh.geometry.dispose(); caps.mesh.material.dispose(); glass.mesh.geometry.dispose(); glass.mesh.material.dispose(); for (const f of [flame, flameB, rim, tell.ring, tell.core]) f.traverse((o) => { if (o instanceof Mesh) { o.geometry.dispose(); (o.material as MeshStandardMaterial).dispose(); } }); } };
60
61
  }
@@ -5,12 +5,20 @@ import { Color, SRGBColorSpace } from 'three';
5
5
  import layout from '../data/layout.json' with { type: 'json' };
6
6
 
7
7
  /** Trusted build-time landscape: the legacy seed/noise/trail/pool, levelled under G220's roads and plazas (`cellGround`); no callback enters the shardfile. */
8
- export function templateTerrain(): BakedTerrain & { sites: { door: [number, number, number]; braziers: [number, number, number][]; lamplighter: [number, number, number] } } {
8
+ export function templateTerrain(): BakedTerrain & { sites: { door: [number, number, number]; braziers: [number, number, number][]; lamplighter: [number, number, number]; chest: [number, number, number]; hermit: [number, number, number]; rack: [number, number, number]; lever: [number, number, number] } } {
9
9
  const heightAt = templateHeightAt();
10
10
  const colourAt = mossFloor();
11
11
  return { ...bakeTerrain({ heightAt, colourAt, family: 'pbr' }), sites: { door: [layout.HUT.x, heightAt(layout.HUT.x, layout.HUT.z) + 1.2, layout.HUT.doorZ], braziers: braziers(heightAt),
12
12
  // MH-5: the Lamplighter's feet, on the ground (a talk's `at` is where its figure stands)
13
- lamplighter: [layout.LAMPLIGHTER.x, heightAt(layout.LAMPLIGHTER.x, layout.LAMPLIGHTER.z), layout.LAMPLIGHTER.z] } };
13
+ lamplighter: [layout.LAMPLIGHTER.x, heightAt(layout.LAMPLIGHTER.x, layout.LAMPLIGHTER.z), layout.LAMPLIGHTER.z],
14
+ // TC-M5: the old chest's lid, where its prompt stands
15
+ chest: [layout.CHEST.x, heightAt(layout.CHEST.x, layout.CHEST.z) + 0.6, layout.CHEST.z],
16
+ // TC-M6: the Pond Hermit's feet, on the pond's north bank
17
+ hermit: [layout.HERMIT.x, heightAt(layout.HERMIT.x, layout.HERMIT.z), layout.HERMIT.z],
18
+ // TC-M5b (J361): the iron sword's rack by the yard, where its prompt stands
19
+ rack: [layout.RACK.x, heightAt(layout.RACK.x, layout.RACK.z) + 1, layout.RACK.z],
20
+ // TC-M4: the south gate's lever, inside the yard by the south wall, where its prompt stands
21
+ lever: [layout.LEVER.x, heightAt(layout.LEVER.x, layout.LEVER.z) + 1, layout.LEVER.z] } };
14
22
  }
15
23
  /** Braziers A, B and C's use points (MH-2, MH-3), 1.7 m over their pads: above the stand's collider (1.5 m), or the prompt's sight line hits it. */
16
24
  function braziers(heightAt: (x: number, z: number) => number): [number, number, number][] {
@@ -6,6 +6,7 @@ import layout from '../data/layout.json' with { type: 'json' };
6
6
  import { POND, pondEdge, pondSDF } from './landscape';
7
7
  import { mergeGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
8
8
  import { coursedBox, lumpyCrown, surfaceBox, weather } from './weather';
9
+ import { ledge, liftDeck } from './lift';
9
10
 
10
11
  /**
11
12
  * Build-time only (SHARD-PLATFORM SF16): the template's grey-box shapes as the props baker
@@ -39,6 +40,8 @@ export function measureBox(w: number, h: number, d: number, role: MeasureRole):
39
40
  export const STONE = 0x8c867a, HUT_STONE = 0x9a9080, MOSS = 0x5b7a30, MOSS_LIGHT = 0x76963c, WOOD = 0x86592f, WOOD_DARK = 0x5e3d22, IRON = 0x3a3634, CAP_RED = 0xb23a26, STEM = 0xd6cbb2, SLAB = 0x9a9488;
40
41
  /** The moss gate's opening half width and pillar size: the yard's west wall stops at the pillars' outer faces. */
41
42
  export const GATE_GAP = 1.5, GATE_PILLAR = 1.35;
43
+ /** TC-M4: half the south gate's opening in the yard's south wall, at the lever's x (layout.LEVER). */
44
+ export const SOUTH_GAP = 1.9;
42
45
  /** M2: the moss bridge's six stones span the pond's long axis, their centres this far either side of its middle. */
43
46
  export const BRIDGE_STONES = 6, BRIDGE_REACH = 5.2;
44
47
  /** The arena's way in, as an angle round `layout.ARENA`: M2's arch faces west, toward the yard's east gap. */
@@ -110,7 +113,7 @@ export function buildTemplateWorld(ctx: TemplateWorldPorts, propCount: number):
110
113
  colliders: [BoxCollider.fromData({ kind: 'box', x: layout.HUT.x, y: (y + 2.5 + y) / 2, z: layout.HUT.doorZ, hx: 0.9, hy: Math.max(0.005, (y + 2.5 - y) / 2), hz: 0.1, yaw: -0, surface: 'wood' }).toColliderData()], active: () => true });
111
114
  // Braziers A, B and C on lettered pads where the story puts them (TEMPLATES-CLEANROOM M2, the goldens' composition): A heads
112
115
  // the row at the back of the yard, B waits across the moss bridge, C stands by the arena arch. The row's two beacons
113
- // (layout.ROW) light with B and C. Unlit until their fields say so.
116
+ // (layout.ROW) light with C (TC-M4: the B beacon's own draw went to the south gate). Unlit until their fields say so.
114
117
  const braziers = new Group(), stands: NonNullable<TemplatePart['colliders']> = [];
115
118
  for (const [x, z] of [...layout.BRAZIERS, ...layout.ROW]) {
116
119
  if (x === undefined || z === undefined) continue;
@@ -138,6 +141,17 @@ export function buildTemplateWorld(ctx: TemplateWorldPorts, propCount: number):
138
141
  const arena = arenaRing(heightAt);
139
142
  ctx.root.add(arena.wall); ctx.piece({ id: 'template.arena-wall', name: 'Arena wall', category: 'buildings', file, object: arena.wall, colliders: arena.wallColliders, surface: 'stone' });
140
143
  ctx.root.add(arena.gate); ctx.piece({ id: 'template.arena-gate', name: 'Arena gate', category: 'buildings', file, object: arena.gate, colliders: arena.gateColliders, active: () => true });
144
+ // TC-M4 (TEMPLATE-E2E): the lever by the south wall swings the south gate (shared field 105): a plank gate in the wall's
145
+ // gap, a panel and collider the field hides, and the lever, a post with its handle. The gate opens the short way out to
146
+ // the south road and the mossling meadow.
147
+ const southGate = southGateAndLever(heightAt);
148
+ ctx.root.add(southGate.gate); ctx.piece({ id: 'template.south-gate', name: 'South gate', category: 'buildings', file, object: southGate.gate, colliders: southGate.gateColliders, active: () => true });
149
+ ctx.root.add(southGate.lever); ctx.piece({ id: 'template.gate-lever', name: 'Gate lever', category: 'props', file, object: southGate.lever, colliders: southGate.leverColliders, surface: 'wood' });
150
+ // TC-M4b (TEMPLATE-E2E): the ledge in the yard's north-east corner and the lift beside it (lift.ts); the lift's deck is a
151
+ // panel the mover poses, so its collider is the mover's box, not a piece's
152
+ const ledgeParts = ledge(heightAt), deck = liftDeck(heightAt);
153
+ ctx.root.add(ledgeParts.object); ctx.piece({ id: 'template.ledge', name: 'Lift ledge', category: 'buildings', file, object: ledgeParts.object, colliders: ledgeParts.colliders, surface: 'stone' });
154
+ ctx.root.add(deck); ctx.piece({ id: 'template.lift', name: 'Lift', category: 'props', file, object: deck });
141
155
  // LF1-9: the arena's checker floor, moss drips and rim braziers (its own piece, so the coarse L1 tiles skip it)
142
156
  const arenaDress = new Group(); arenaDressing(arenaDress, heightAt);
143
157
  ctx.root.add(arenaDress); ctx.piece({ id: 'template.arena-dressing', name: 'Arena floor, moss and rim braziers', category: 'buildings', file, object: arenaDress });
@@ -204,6 +218,10 @@ export function mossgateDressing(heightAt: (x: number, z: number) => number): {
204
218
  const [sx = 0, sz = 0] = layout.SIGN, sy = heightAt(sx, sz);
205
219
  root.add(block(0.16, 1.9, 0.16, 1, sx, sy + 0.85, sz, 0, 0, WOOD_DARK), block(1.2, 0.34, 0.07, 1, sx - 0.15, sy + 1.4, sz, 0.35, 0, WOOD), block(0.5, 0.2, 0.06, 1, sx + 0.1, sy + 1.02, sz, -0.3, 0, WOOD));
206
220
  box(sx, sy + 0.85, sz, 0.1, 0.85, 0.1);
221
+ // TC-M5: the old chest by the sign (its prompt pays lantern oil, and coins the first time)
222
+ const { x: chx, z: chz } = layout.CHEST, chy = heightAt(chx, chz);
223
+ root.add(block(0.9, 0.45, 0.55, 1, chx, chy + 0.22, chz, 0.4, 0, WOOD), block(0.94, 0.12, 0.59, 1, chx, chy + 0.5, chz, 0.4, 0, WOOD_DARK), block(0.12, 0.16, 0.04, 1, chx + 0.1, chy + 0.36, chz + 0.27, 0.4, 0, IRON));
224
+ box(chx, chy + 0.28, chz, 0.47, 0.28, 0.3);
207
225
  // the door lamp: a post right of the door, an arm over the doorway and a lamp box under a moss cap
208
226
  const { x: lx, z: lz } = LAMP_POST, ly = heightAt(lx, lz);
209
227
  root.add(block(0.18, 2.6, 0.18, 1, lx, ly + 1.3, lz, 0, 0, IRON), block(1.2, 0.1, 0.1, 1, lx - 0.5, ly + 2.5, lz, 0, 0, IRON), block(0.06, 0.2, 0.06, 1, lx - 1.0, ly + 2.36, lz, 0, 0, IRON));
@@ -299,6 +317,19 @@ function drape(x: number, y: number, z: number, len: number, yaw: number, h: num
299
317
  const geometry = new BufferGeometry().setAttribute('position', new Float32BufferAttribute(out, 3)); geometry.computeVertexNormals();
300
318
  const mesh = new Mesh(foliageUv(geometry, 2), foliageMaterial(DRAPE)); mesh.position.set(x, y, z); return mesh;
301
319
  }
320
+ /** TC-M4: the south gate (planks across the south wall's gap, the field hides it) and its lever (a post and a handle). */
321
+ export function southGateAndLever(heightAt: (x: number, z: number) => number): { gate: Group; gateColliders: Colliders; lever: Group; leverColliders: Colliders } {
322
+ const gx = layout.LEVER.x, gy = heightAt(gx, YZ0) - 0.25, w = SOUTH_GAP * 2, h = 1.9;
323
+ const gate = new Group();
324
+ for (const dy of [0.45, 1.05, 1.65]) { const plank = cube(w, 0.42, 0.12, WOOD_DARK); plank.position.set(gx, gy + dy, YZ0); gate.add(plank); }
325
+ for (const dx of [-SOUTH_GAP + 0.25, SOUTH_GAP - 0.25]) { const brace = cube(0.16, h, 0.16, WOOD, 2); brace.position.set(gx + dx, gy + h / 2, YZ0 + 0.1); gate.add(brace); }
326
+ const gateColliders: Colliders = [BoxCollider.fromData({ kind: 'box', x: gx, y: gy + h / 2, z: YZ0, hx: SOUTH_GAP, hy: h / 2, hz: 0.2, yaw: -0, surface: 'wood' }).toColliderData()];
327
+ const lx = layout.LEVER.x, lz = layout.LEVER.z, ly = heightAt(lx, lz);
328
+ const lever = new Group(), post = cube(0.3, 1.1, 0.3, WOOD_DARK); post.position.set(lx, ly + 0.55, lz); lever.add(post);
329
+ const handle = cube(0.08, 0.7, 0.08, IRON, 2); handle.position.set(lx, ly + 1.3, lz); handle.rotation.x = 0.5; lever.add(handle);
330
+ const leverColliders: Colliders = [BoxCollider.fromData({ kind: 'box', x: lx, y: ly + 0.55, z: lz, hx: 0.15, hy: 0.55, hz: 0.15, yaw: -0, surface: 'wood' }).toColliderData()];
331
+ return { gate, gateColliders, lever, leverColliders };
332
+ }
302
333
  /**
303
334
  * TEMPLATES-CLEANROOM M2: the yard's walls (layout.YARD), the cleanroom's: low coursed stone runs with fat moss caps, hanging
304
335
  * moss under the caps and ivy down both faces; open at the moss gate (west) and toward the arena arch (east). The pond garden's
@@ -308,7 +339,7 @@ export function yardWalls(heightAt: (x: number, z: number) => number): { object:
308
339
  const root = new Group(), colliders: Colliders = [], T = 0.75, SINK = 0.25;
309
340
  const gx = layout.MOSSGATE, g = GATE_GAP + GATE_PILLAR - 0.05, px = POND.x - POND.hx - 7;
310
341
  const runs: [number, number, number, number, number, [number, number][]][] = [
311
- [YX0, YZ0, YX1, YZ0, 1.45, []], [YX1, YZ0, YX1, YZ1, 1.45, [[layout.ARENA.z - 1.9, layout.ARENA.z + 1.9]]], [YX0, YZ1, YX1, YZ1, 1.2, []],
342
+ [YX0, YZ0, YX1, YZ0, 1.45, [[layout.LEVER.x - SOUTH_GAP, layout.LEVER.x + SOUTH_GAP]]], [YX1, YZ0, YX1, YZ1, 1.45, [[layout.ARENA.z - 1.9, layout.ARENA.z + 1.9]]], [YX0, YZ1, YX1, YZ1, 1.2, []],
312
343
  [YX0, YZ0, YX0, YZ1, 1.45, [[gx.z - g, gx.z + g]]], [px, -9, YX0 - T / 2, -9, 1.2, []], [px, 9, YX0 - T / 2, 9, 1.2, []], [px, -9, px, 9, 1.2, []],
313
344
  ];
314
345
  let seed = 0;
@@ -331,6 +362,9 @@ export function yardWalls(heightAt: (x: number, z: number) => number): { object:
331
362
  }
332
363
  }
333
364
  }
365
+ // TC-M4: the south gate's gap cut the south run from six stones to five. The runs after it keep the moss and ivy
366
+ // seeds and the coursed-stone numbers they had before the gap, so their tiles bake to the same bytes.
367
+ if (x0 === YX0 && z0 === YZ0 && z1 === YZ0) { const before = Math.ceil((YX1 - YX0) / 4.2); walls += before - seed; seed = before; }
334
368
  }
335
369
  return { object: root, colliders };
336
370
  }
@@ -460,8 +494,6 @@ export function hutLamp(heightAt: (x: number, z: number) => number): { mesh: Mes
460
494
  export function brazierFlame(heightAt: (x: number, z: number) => number, which = 0): Group {
461
495
  const flame = new Group(), [x = 0, z = 0] = layout.BRAZIERS[which] ?? [];
462
496
  flameCones(flame, x, heightAt(x, z) + 1.5, z);
463
- // M2: brazier B's field also lights the row's B beacon at the back of the yard
464
- if (which === 1) { const [bx = 0, bz = 0] = layout.ROW[0] ?? []; flameCones(flame, bx, heightAt(bx, bz) + 1.5, bz); }
465
497
  return flame;
466
498
  }
467
499
  /**
@@ -798,9 +830,12 @@ export function rimFlames(heightAt: (x: number, z: number) => number): Group {
798
830
  const [x, y, z] = rimBrazier(heightAt, k);
799
831
  flameCones(flames, x, y + 0.99, z, 0.8);
800
832
  });
801
- // M2: brazier C's field also lights the row's C beacon at the back of the yard; M4.10: and brazier C's own bowl
802
- const [bx = 0, bz = 0] = layout.ROW[1] ?? [], [cx = 0, cz = 0] = layout.BRAZIERS[2] ?? [];
803
- flameCones(flames, bx, heightAt(bx, bz) + 1.5, bz); flameCones(flames, cx, heightAt(cx, cz) + 1.5, cz);
833
+ // M2: brazier C's field also lights the row's two beacons at the back of the yard; M4.10: and brazier C's own bowl.
834
+ // TC-M4 (TEMPLATE-E2E): the B beacon lit with brazier B until the south gate came; its flame in brazier B's panel was a
835
+ // second draw in L0 tile 0/4/3, which the gate's panel now spends (the tile holds 10). Both beacons light as the arena opens.
836
+ const [cx = 0, cz = 0] = layout.BRAZIERS[2] ?? [];
837
+ for (const [bx = 0, bz = 0] of layout.ROW) flameCones(flames, bx, heightAt(bx, bz) + 1.5, bz);
838
+ flameCones(flames, cx, heightAt(cx, cz) + 1.5, cz);
804
839
  return flames;
805
840
  }
806
841
  /**
@@ -1,10 +1,10 @@
1
1
  {
2
- "content": "a3f16dec276836f29a0164f9f37dae5f29eab523307beffee71133e3541f33aa",
3
- "captured": "2026-11-15T19:17:50.686Z",
4
- "base": "http://127.0.0.1:4878",
2
+ "content": "be6a1d6295e331983c4ebc6a5440d4cb1df29a756eaffe1bb628bbf161df41d2",
3
+ "captured": "2026-11-16T07:25:15.105Z",
4
+ "base": "http://127.0.0.1:50431",
5
5
  "card": {
6
- "card/thumb.jpg": "3ab250eab85cafffd077e67aa24a7c3608a043ff1b64baeb2714c9eb3d6c04d7",
7
- "card/portrait.jpg": "2f3574e0e9e5f20360cffa9529a7246afdd3fe1d3a792ee9d80271332002214b",
8
- "card/landscape.jpg": "45bb2d038f2a00a9d7f904303e3d59354854f5a77acd5ea21fa54a4469663841"
6
+ "card/thumb.jpg": "d3f38cbe00f0c8e06ce321d9b0242fab5965098776645ab2c97af45da2078e15",
7
+ "card/portrait.jpg": "856f066165faa4d1d29fa77c2741c66bfa67c799f273ee4536fa3ae01e4ae200",
8
+ "card/landscape.jpg": "938bc1c0ab8de454662a5e0f46118bc3ab7cf498ea7ee334490bc7a6455e3d85"
9
9
  }
10
10
  }
@@ -89,6 +89,55 @@
89
89
  "x": -19.4,
90
90
  "z": 0,
91
91
  "r": 3
92
+ },
93
+ {
94
+ "id": "hermit",
95
+ "name": "Pond hermit",
96
+ "x": -15.2,
97
+ "z": 7.0,
98
+ "r": 5
99
+ },
100
+ {
101
+ "id": "chest",
102
+ "name": "Old chest",
103
+ "x": -8.2,
104
+ "z": -7.6,
105
+ "r": 4
106
+ },
107
+ {
108
+ "id": "rack",
109
+ "name": "Sword rack",
110
+ "x": 1.0,
111
+ "z": -12.0,
112
+ "r": 3
113
+ },
114
+ {
115
+ "id": "lever",
116
+ "name": "Gate lever",
117
+ "x": 8.5,
118
+ "z": -16.6,
119
+ "r": 2
120
+ },
121
+ {
122
+ "id": "lift",
123
+ "name": "Lift and ledge",
124
+ "x": 8.5,
125
+ "z": 3.65,
126
+ "r": 3
127
+ },
128
+ {
129
+ "id": "ledge",
130
+ "name": "Ledge cache",
131
+ "x": 8.5,
132
+ "z": 6.4,
133
+ "r": 2
134
+ },
135
+ {
136
+ "id": "mossling-meadow",
137
+ "name": "Mossling meadow",
138
+ "x": 36.0,
139
+ "z": -98.0,
140
+ "r": 12
92
141
  }
93
142
  ],
94
143
  "assetGlobs": [
@@ -213,7 +262,6 @@
213
262
  "tool.hoverboard"
214
263
  ],
215
264
  "start": [
216
- "weapon.sword-iron",
217
265
  "weapon.template-whip",
218
266
  "tool.template-lantern",
219
267
  "tool.hoverboard"
@@ -5,7 +5,8 @@ import { buildSlice } from './world';
5
5
 
6
6
  /** SHARD-SOURCE AP19: one quest, so a gameplay edit has something to show (`proof.mjs --edit quest` rewrites its objective). */
7
7
  export const SLICE_QUESTS = {
8
- flags: ['slice.pond', 'slice.walk'], triggers: [{ id: 'slice.pond', kind: 'region' as const, flag: 'slice.pond', x: -10.4, z: 0.3, radius: 4 }], dialogue: [],
8
+ // the pond's region trigger is the scene's (`world.trigger` at the bank node, AP25a)
9
+ flags: ['slice.pond', 'slice.walk'], triggers: [], dialogue: [],
9
10
  quests: [{ id: 'slice.walk', title: 'A walk to the pond', completeFlag: 'slice.walk',
10
11
  steps: [{ id: 'pond', objective: 'Walk down to the pond', done: { all: ['slice.pond'] } }] }],
11
12
  };
@@ -15,6 +15,8 @@ export const LAYOUT = {
15
15
  HUT: { x: -4.0, z: -14.0, w: 5.2, d: 4.6, h: 2.5 }, // door face at z + d/2
16
16
  POND: { x: -19.4, z: 0, hx: 6.6, hz: 5.4, r: 2.2 },
17
17
  ARENA: { x: 25.5, z: -2, r: 9.5 },
18
+ /** AP25a: the bank the slice's quest walks to (the pond camera's stand) */
19
+ BANK: { x: -10.4, z: 0.3 },
18
20
  };
19
21
 
20
22
  const noise = T.makeNoise(99);
@@ -512,7 +514,12 @@ export function buildSlice(world: ShardWorld): void {
512
514
  sunset(world);
513
515
  world.ground(groundHeight, { colourAt: groundColour });
514
516
  world.part('hut', (part) => { hut(part, M, tex); });
515
- world.part('pond', (part) => { pond(part, M, tex); });
517
+ world.part('pond', (part) => {
518
+ pond(part, M, tex);
519
+ // AP25a: the quest's place is this node; its trigger row is read from it
520
+ const bank = new THREE.Object3D(); bank.name = 'bank'; bank.position.set(LAYOUT.BANK.x, 0, LAYOUT.BANK.z); part.add(bank);
521
+ world.trigger('slice.pond', bank, { radius: 4 });
522
+ });
516
523
  world.part('yard', (part) => { yard(part, M, tex); });
517
524
  world.spawn(-3.9, 0, -5.6, 0.03);
518
525
  }
@@ -20,5 +20,29 @@
20
20
  "src/sharddev/**/*.test.ts",
21
21
  "src/sharddev/test",
22
22
  "src/commons/**/*.test.ts"
23
+ ],
24
+ "files": [
25
+ "test/defined-sections.test.ts",
26
+ "test/named-json-admission.test.ts",
27
+ "test/registered-json.test.ts",
28
+ "test/world-assembly-schema.test.ts",
29
+ "test/carried-terrain-ports.test.ts",
30
+ "test/output-runtime.test.ts",
31
+ "src/sharddev/bake/script-v2-radial.test.ts",
32
+ "test/schema-code-memory.test.ts",
33
+ "test/world-scene-graph-pages.test.ts",
34
+ "test/return-projection-inventory.test.ts",
35
+ "test/return-program-group-v2.test.ts",
36
+ "test/tile-bakes.test.ts",
37
+ "test/species-barrel-author-ports.test.ts",
38
+ "test/view-author-metadata.test.ts",
39
+ "test/terrain-field-author-port.test.ts",
40
+ "test/scripts/_template-boss.test.ts",
41
+ "test/fixtures/productFile.ts",
42
+ "test/fixtures/ci21sdk-tail/frozen.ts",
43
+ "test/fixtures/defined-json-value.ts",
44
+ "test/fixtures/return-group.ts",
45
+ "src/sharddev/test/scriptScenario.ts",
46
+ "src/sharddev/test/diskScriptScenario.ts"
23
47
  ]
24
48
  }