@descix/frqtl-web 0.6.1-p1.2 → 0.6.1-p3.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.
package/CLAUDE.md CHANGED
@@ -5,7 +5,7 @@ in the browser. Physics comes out of local per-pixel rules — a frame moves one
5
5
  occupancy, momentum — rather than force equations or wave PDEs. Double-slit fringes, wave interference
6
6
  and blackbody spectra are computed live from the automaton, not replayed.
7
7
 
8
- `0.6.1-p1.2` (npm dist-tag `next`). The node twin is `@descix/frqtl-node` (the same modules,
8
+ `0.6.1-p3.1` (npm dist-tag `next`). The node twin is `@descix/frqtl-node` (the same modules,
9
9
  plus `bootNode` and the hosted eyes).
10
10
 
11
11
  ## Install
@@ -14,11 +14,11 @@ plus `bootNode` and the hosted eyes).
14
14
  ## See it run immediately
15
15
  Open this URL, or embed it in a claude.ai artifact iframe (self-contained):
16
16
 
17
- https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/artifact/double-slit.html
17
+ https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/artifact/double-slit.html
18
18
 
19
19
  and the one-file form (a `<script>` tag, global `FRQTL`) booting a 3D sun:
20
20
 
21
- https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/artifact/sun.html
21
+ https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/artifact/sun.html
22
22
 
23
23
  ## A scene is a sketch
24
24
  A scene is an ES module whose default export is `buildExperiment(exp)`. Its first statement is the
@@ -44,8 +44,8 @@ refused by name), and `await recipeContext.setDeclared(name, patch)` changes one
44
44
  `parts/<NewKind>.js` (class renamed, imports rewritten to package specifiers), points the entry at it and re-runs in place.
45
45
  `runner.declared` rows read `inParts` and `module`.
46
46
 
47
- Read a real one before writing your own: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/frqtl/scenes/double-slit.js` (every walk-through
48
- rung is a file under `dist/frqtl/scenes/`), and a part: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/frqtl/parts/DetectorWall.js`.
47
+ Read a real one before writing your own: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/frqtl/scenes/double-slit.js` (every walk-through
48
+ rung is a file under `dist/frqtl/scenes/`), and a part: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/frqtl/parts/DetectorWall.js`.
49
49
 
50
50
  ## Boot it — the two doors (`@descix/frqtl-web/boot`)
51
51
  bootScene(mount, buildExperiment, { renderer: 'p5' | 'three', seed, onTick, render })
@@ -70,7 +70,7 @@ imports `./boot`, `./registry`, `./project`, `./host-view` or `./site-graph` by
70
70
  row, so read the manifest from the same root: `new URL('dist-manifest.json', root)`. A page that holds only its map
71
71
  recovers the root through `FRQTL_WEB_HOST_SPECIFIERS`: `imports[row.specifier]` minus `row.libPath`.
72
72
  The root is an absolute URL or starts with `/`, `./` or `../`. A sketch held as text boots as `bootProject(mount, sketchProject(text))`.
73
- Or skip the map: `<script src="https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/frqtl-web.min.js"></script>` then `FRQTL.bootScene(…)`,
73
+ Or skip the map: `<script src="https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/frqtl-web.min.js"></script>` then `FRQTL.bootScene(…)`,
74
74
  `FRQTL.Wall`, …
75
75
 
76
76
  String kinds: `exp.addObject('Wall', props)` resolves the kind in the SCENE's realm (the frame the scene
@@ -83,11 +83,11 @@ it never imports the registry into its own document, where no kind is registered
83
83
  | `.` | the parts (`Wall`, `SphereEmitter`, `Tunnel`, `FrqtlVision`, …), `bootScene`, `bootProject`, `engine`, `engineState`, `FrqtlCapture`, `RenderStages`, `FieldBuilder`, `CaptureEnvelope`, `validateRendererProvider` |
84
84
  | `./boot` | `bootScene`, `bootProject` (in node it throws naming `@descix/frqtl-node`) |
85
85
  | `./parts`, `./parts/*` | the parts barrel; one part = one file |
86
- | `./project` | `FRQTL_WEB_SPECIFIERS`, `libPathOf`, `importMapFor`, `pageImportMapFor`, `FRQTL_WEB_HOST_SPECIFIERS`, `linkProject`, `sketchProject`, `SKETCH_ENTRY`, `projectIdentity`, `MANIFEST_FILE`, `MANIFEST_KEYS`, `normalizeManifest`, `parseManifest`, `serializeManifest`, `manifestFor`, `RECORD_FILES`, `RECORD_KEYS`, `CHANGE_KEYS`, `OPS`, `BY`, `CLIP_SECONDS`, `CLIP_NAME`, `clipName`, `jsonText`, `recordFolderFaults` |
87
- | `./registry` | the walk-through rungs, the showcase roster, the scene list (`sceneGroups`), `projectOf(id, { mode })` → `{ manifest, files, renderState }`, a showcase tile's link (`showcaseHref(row)` relative to the serving site, `showcaseUrl(row)` absolute on `SHOWCASE_SITE.origin`; `row` is an element of the same imported `EXHIBITS`, and the link carries the row's effective mode on a multi-mode rung) |
86
+ | `./project` | `FRQTL_WEB_SPECIFIERS`, `libPathOf`, `importMapFor`, `pageImportMapFor`, `FRQTL_WEB_HOST_SPECIFIERS`, `linkProject`, `sketchProject`, `SKETCH_ENTRY`, `projectIdentity`, `MANIFEST_FILE`, `MANIFEST_KEYS`, `normalizeManifest`, `parseManifest`, `serializeManifest`, `manifestFor`, `RECORD_FILES`, `RECORD_KEYS`, `CHANGE_KEYS`, `OPS`, `BY`, `CLIP_SECONDS`, `CLIP_NAME`, `clipName`, `jsonText`, `recordFolderFaults`, `applyRows` |
87
+ | `./registry` | the walk-through rungs, the showcase roster, the scene list (`sceneGroups`), `projectOf(id, { mode })` → `{ manifest, files, renderState }`, a showcase tile's link (`showcaseHref(row)` relative to the serving site, `showcaseUrl(row)` absolute on `SHOWCASE_SITE.origin`; `row` is an element of the same imported `EXHIBITS`, and the link carries the row's effective mode on a multi-mode rung), and how STUDIO resolved the link it opened with (`STUDIO_LANDING_ATTR` on `<html>`, a `STUDIO_LANDING_OUTCOMES` id) |
88
88
  | `./kinds` | `registerKind`, `kindNamed`, `kindOf` (the parent's row, frozen), `registeredKinds` — a composed fork registers its renamed class |
89
89
  | `./host-view` | `declareHostView`, `HOST_VIEW_OUTCOMES`, `CONTRACT_VIOLATIONS`, `HOST_SDK_SCRIPT` — the DeSciX host-view declarer an app calls once, under its own policy |
90
- | `./site-graph` | `SITE_GRAPH_DIR`, `SITE_BUILD_ATTR`, `SITE_BUILD_ID_RE`, `STATIC_APP_PAGE` — the static site's shape (graph directory, build-stamp attribute, build id pattern, IDE entry page), for a reader of a served site (both packages) |
90
+ | `./site-graph` | `SITE_GRAPH_DIR`, `SITE_BUILD_ATTR`, `SITE_BUILD_ID_RE`, `siteBuildStampOf`, `STATIC_APP_PAGE`, `HOST_PROVIDED_ATTR`, `SITE_PLACEMENTS`, `SITE_ENTRY_PAGES`, `isSiteEntry`, `siteGraphFaults` — the static site's shape (graph directory, build-stamp attribute, build id pattern and its reader, IDE entry page, the attribute declaring a file host-provided, the graph directory of each placed package, the entry pages) and the rule that a served graph is the placed releases' bytes, for a reader of a served site (both packages) |
91
91
  | `./shim/controls/registry.js`, `./shim/render/sun-look.js`, `./compat/renderer/display-slot.js`, `./compat/renderer/orbit-bag.js`, `./objects/setup/_collisionMatrixLanes.js`, `./compat/engine.js` | the six non-part modules a scene may import (the rows of `FRQTL_WEB_SPECIFIERS`) |
92
92
  | `./objects/objects/tagger.js`, `./objects/schema/index.js`, `./shim/render/heat-colormap.js`, `./objects/schema/valueNormalizer.js`, `./objects/objects/Box.js`, `./objects/objects/QuantumEmitter.js`, `./shim/expr/ast-schema.js`, `./objects/objects/actionCompiler.js`, `./objects/v1-replacements.js`, `./objects/objects/slitLinerScatter.js`, `./objects/setup/setupSphereEmitter3D.js`, `./objects/objects/directedRedirectProgram.js`, `./compat/renderer/lo-drawn-center.js`, `./objects/setup/setupTunnelPointExit.js`, `./objects/constants/WallBehaviors.js`, `./objects/objects/absorbRadiation.js`, `./objects/geometry/SlabFace.js` | the 17 part-internal modules a forked part file imports (the `tier: 'part-internal'` rows of `FRQTL_WEB_SPECIFIERS`): not a scene API — the linker admits them only from a `parts/*.js` file — and they move with the parts |
93
93
  | `./dist-manifest.json` | sha256 of every dist file (check a self-hosted copy against it) |
@@ -126,6 +126,6 @@ Everything is a Frame (recursive); there is no separate "particle" class.
126
126
  - The published build is WASM-only on the engine side (compiled surface).
127
127
 
128
128
  ## Curated notebooks
129
- Index: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p1.2/dist/notebooks/notebooks.json`
129
+ Index: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.1/dist/notebooks/notebooks.json`
130
130
 
131
131
  ## No account, credits, or tokens are needed for anything above.
package/LICENSE.md CHANGED
@@ -389,7 +389,7 @@ For GUIs, use an "About box" with similar information.
389
389
 
390
390
  **The Original License is not displaced.** Nothing in this Agreement relieves You of any obligation the Original License imposes on Pre-existing Material. By way of example, if Pre-existing Material is licensed under the Mozilla Public License, its file-level copyleft, notice and source-availability obligations continue to bind You for that material; this Agreement neither absolves You of them nor extends them to Covered Works.
391
391
 
392
- **This Agreement is not displaced.** No Original License shall be read to invalidate, override, relicense or extend its terms to any Covered Work or Community IP. If You combine, link or otherwise mix a Covered Work with Pre-existing Material whose Original License would, by its terms, purport to govern the combination or require the Covered Work to be licensed under that Original License (by way of example, the GNU General Public License), You are in breach of this Agreement from the moment of the combination: Your license under this Agreement terminates as to that combination under Clause 7, You lose the protections this Agreement affords Members with respect to it, and the Original License shall not be read to apply to the Covered Work or Community IP, whose terms remain those of this Agreement.
392
+ **This Agreement is not displaced.** No Original License shall be read to invalidate, override, relicense or extend its terms to any Covered Work or Community IP. If You combine, link or otherwise mix a Covered Work with Pre-existing Material whose Original License would, by its terms, purport to govern the combination or require the Covered Work to be licensed under that Original License (by way of example, the GNU General Public License), You are in breach of this Agreement from the moment of the combination: Your license under this Agreement terminates as to that combination under Clause 7 of the DCSL (Section 3.1), You lose the protections this Agreement affords Members with respect to it, and the Original License shall not be read to apply to the Covered Work or Community IP, whose terms remain those of this Agreement.
393
393
 
394
394
  **Marking.** An adopter that places this Agreement in a collection containing Pre-existing Material shall place it within, or clearly identify, the directories or files it covers, so that no Pre-existing Material is represented as licensed under this Agreement.
395
395
 
package/README.md CHANGED
@@ -5,7 +5,7 @@ comes out of local per-pixel rules — a frame moves one pixel per tick, single
5
5
  rather than force equations. Interference, blackbody spectra and atom-like binding emerge from the
6
6
  automaton.
7
7
 
8
- `0.6.1-p1.2` (npm dist-tag `next`). The node twin is `@descix/frqtl-node` — the same
8
+ `0.6.1-p3.1` (npm dist-tag `next`). The node twin is `@descix/frqtl-node` — the same
9
9
  modules, built from the same source.
10
10
 
11
11
  ## Install
@@ -134,11 +134,11 @@ into its own document, where no kind is registered.
134
134
  | `.` | the parts, `bootScene`, `bootProject`, `engine`, `engineState`, `FrqtlCapture`, `RenderStages`, `FieldBuilder`, `CaptureEnvelope`, `validateRendererProvider` |
135
135
  | `./boot` | `bootScene`, `bootProject` (in node it throws, naming `@descix/frqtl-node`) |
136
136
  | `./parts`, `./parts/*` | the parts barrel; one part = one file |
137
- | `./project` | `FRQTL_WEB_SPECIFIERS`, `libPathOf`, `importMapFor`, `pageImportMapFor`, `FRQTL_WEB_HOST_SPECIFIERS`, `linkProject`, `sketchProject`, `SKETCH_ENTRY`, `projectIdentity`, `MANIFEST_FILE`, `MANIFEST_KEYS`, `normalizeManifest`, `parseManifest`, `serializeManifest`, `manifestFor`, `RECORD_FILES`, `RECORD_KEYS`, `CHANGE_KEYS`, `OPS`, `BY`, `CLIP_SECONDS`, `CLIP_NAME`, `clipName`, `jsonText`, `recordFolderFaults` |
138
- | `./registry` | the walk-through rungs, the showcase roster, the scene list (`sceneGroups`), `projectOf`, a showcase tile's link (`showcaseHref(row)` relative to the serving site, `showcaseUrl(row)` absolute on `SHOWCASE_SITE.origin`; `row` is an element of the same imported `EXHIBITS`, and the link carries the row's effective mode on a multi-mode rung) |
137
+ | `./project` | `FRQTL_WEB_SPECIFIERS`, `libPathOf`, `importMapFor`, `pageImportMapFor`, `FRQTL_WEB_HOST_SPECIFIERS`, `linkProject`, `sketchProject`, `SKETCH_ENTRY`, `projectIdentity`, `MANIFEST_FILE`, `MANIFEST_KEYS`, `normalizeManifest`, `parseManifest`, `serializeManifest`, `manifestFor`, `RECORD_FILES`, `RECORD_KEYS`, `CHANGE_KEYS`, `OPS`, `BY`, `CLIP_SECONDS`, `CLIP_NAME`, `clipName`, `jsonText`, `recordFolderFaults`, `applyRows` |
138
+ | `./registry` | the walk-through rungs, the showcase roster, the scene list (`sceneGroups`), `projectOf`, a showcase tile's link (`showcaseHref(row)` relative to the serving site, `showcaseUrl(row)` absolute on `SHOWCASE_SITE.origin`; `row` is an element of the same imported `EXHIBITS`, and the link carries the row's effective mode on a multi-mode rung), and how STUDIO resolved the link it opened with (`STUDIO_LANDING_ATTR` on `<html>`, a `STUDIO_LANDING_OUTCOMES` id) |
139
139
  | `./kinds` | `registerKind`, `kindNamed`, `kindOf`, `registeredKinds` — the kind registry a composed fork registers in |
140
140
  | `./host-view` | `declareHostView`, `HOST_VIEW_OUTCOMES`, `CONTRACT_VIOLATIONS`, `HOST_SDK_SCRIPT` — the DeSciX host-view declarer an app calls under its own policy (below) |
141
- | `./site-graph` | `SITE_GRAPH_DIR`, `SITE_BUILD_ATTR`, `SITE_BUILD_ID_RE`, `STATIC_APP_PAGE` — the static site's shape (graph directory, build-stamp attribute, build id pattern, IDE entry page), for a reader of a served site (both packages) |
141
+ | `./site-graph` | `SITE_GRAPH_DIR`, `SITE_BUILD_ATTR`, `SITE_BUILD_ID_RE`, `siteBuildStampOf`, `STATIC_APP_PAGE`, `HOST_PROVIDED_ATTR`, `SITE_PLACEMENTS`, `SITE_ENTRY_PAGES`, `isSiteEntry`, `siteGraphFaults` — the static site's shape (graph directory, build-stamp attribute, build id pattern and its reader, IDE entry page, the attribute declaring a file host-provided, the graph directory of each placed package, the entry pages) and the rule that a served graph is the placed releases' bytes, for a reader of a served site (both packages) |
142
142
  | `./shim/controls/registry.js`, `./shim/render/sun-look.js`, `./compat/renderer/display-slot.js`, `./compat/renderer/orbit-bag.js`, `./objects/setup/_collisionMatrixLanes.js`, `./compat/engine.js` | the six non-part modules a scene may import (the rows of `FRQTL_WEB_SPECIFIERS`) |
143
143
  | `./objects/objects/tagger.js`, `./objects/schema/index.js`, `./shim/render/heat-colormap.js`, `./objects/schema/valueNormalizer.js`, `./objects/objects/Box.js`, `./objects/objects/QuantumEmitter.js`, `./shim/expr/ast-schema.js`, `./objects/objects/actionCompiler.js`, `./objects/v1-replacements.js`, `./objects/objects/slitLinerScatter.js`, `./objects/setup/setupSphereEmitter3D.js`, `./objects/objects/directedRedirectProgram.js`, `./compat/renderer/lo-drawn-center.js`, `./objects/setup/setupTunnelPointExit.js`, `./objects/constants/WallBehaviors.js`, `./objects/objects/absorbRadiation.js`, `./objects/geometry/SlabFace.js` | the 17 part-internal modules a forked part file imports (the `tier: 'part-internal'` rows of `FRQTL_WEB_SPECIFIERS`): not a scene API — the linker admits them only from a `parts/*.js` file — and they move with the parts |
144
144
  | `./dist-manifest.json` | sha256 of every dist file |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descix/frqtl-web",
3
- "version": "0.6.1-p1.2",
3
+ "version": "0.6.1-p3.1",
4
4
  "files": {
5
5
  "artifact/double-slit.html": "25d93abfd0961a5e063429395801160a599fbb8e92c774a3128d5b0ba4ac415a",
6
6
  "artifact/sun.html": "4ec3515a3a94553bb862a7894ecd43757004fd8087ba60ce97622a410b615383",
@@ -10,7 +10,7 @@
10
10
  "experiments/empty/index.html": "063a8a4b23c4242d67a20a442235c798f18fdea1a3a8aebb29872a88030c2e30",
11
11
  "fat/pkg-web/egpt_wasm.js": "4e9c3f04fcfe7b0a481dadd9a87f9bf76c6f34741ff1cdf57fecc2e76c56b8e5",
12
12
  "fat/pkg-web/egpt_wasm_bg.wasm": "e204498ac7439c294653476c0d214345713e6170819281b27bbbcba217a5a5e9",
13
- "frqtl-web.min.js": "37ae7d54e409fcda624ffddec4375e319b4a72e2a3ac06f4ec847441443d1b14",
13
+ "frqtl-web.min.js": "05a52d39a8cb4532e1def4a7ab922f981c9ddcca0057f1a3f4e9168137e896f7",
14
14
  "frqtl/assets/vendor/acorn.LICENSE": "76a876cf886ff9be2a8b5e2e86514fed06223c8c9f0c1e9ee9606e93841e00b7",
15
15
  "frqtl/assets/vendor/acorn.PINNED.json": "52d5c4cf628a586aec54f780ab6b8d22ae7c22cfb290d0d86c2f589f3106b101",
16
16
  "frqtl/assets/vendor/acorn.mjs": "efb0124a960b34d53f9928c4926bfcfd300bb6a3d7ab64ee949b3a8bed1c7e5f",
@@ -177,7 +177,7 @@
177
177
  "frqtl/experiments/_shared/retired-globals.js": "966764b68e011fbf4183b74df8ade57596ec8114694f29d005784d7fe619df6b",
178
178
  "frqtl/objects/FrqtlApp.js": "e3232b09eb576427df2a52393a5603b4c084d6edba5667b03afb161fd6d76b9b",
179
179
  "frqtl/objects/ObjectFactory.js": "a8f050ce61b7ab9c9b4f81e9eeaebf05c3cc0b532c741ce93d6e952489772b11",
180
- "frqtl/objects/RecipeContext.js": "c8614d30b785b333c44a59f0a6bdd15a595dd0023f85ef9385f40eda5802eba8",
180
+ "frqtl/objects/RecipeContext.js": "4d53e1d8a48f4567aeb882abac6f46cd649a51a3af4b543a6bec7ce74e77d7a8",
181
181
  "frqtl/objects/collectors/DataCollector.js": "8736d6cb77eec36ce2adcf2bc3b0d2436eeb70a73b77182ff053efdc6ca071df",
182
182
  "frqtl/objects/constants/WallBehaviors.js": "a05c6e06923962e2cc2cf7204131e5d20bf83c5c8e85fbb13867872040345e40",
183
183
  "frqtl/objects/geometry/SlabFace.js": "847921b124d3bc1692e88c363c087d392a1baa7c652a3a61e381d0f8a8342e57",
@@ -335,7 +335,7 @@
335
335
  "notebooks/iso-number-theory-four-views.html": "55f8655078a8bd4c35c22531177a7a035661183683d6bb193b60e52298233baa",
336
336
  "notebooks/iso-pi-log-fraction-loop.html": "17112759c5328001009b95f239f35532d8d2ac66742bc5af06f38da71323392a",
337
337
  "notebooks/matrix.html": "d52d62a45fcdb2a9754664e280f4c97f4590ec35046b4997b4700afbbd941025",
338
- "notebooks/notebooks.json": "390e8eb0073051e47d9b56aeaa20a738fbf955feed1cdda76d83db8efdf2e0f3",
338
+ "notebooks/notebooks.json": "d9e9c21ae1dd87e28183d3aed64af58be200143ba0ac45d5159a82f57ed6d89d",
339
339
  "notebooks/polynomials.html": "c990a386756b7e83a565e1246549a1241fa9757e07a30a724c73d691be2a53ce",
340
340
  "notebooks/prime-composite.html": "57469ba011c1a1082a614647acde985340fb8d5286fedc6fb0fd76f56d0e26e9",
341
341
  "notebooks/rational-core.html": "62817c4f3d8aa7c9aa7b26e7adca54c3a648539de74daf5fdfa2a9ebb9327522",
@@ -347,7 +347,7 @@
347
347
  "notebooks/stats.html": "360db52d77ef46c690e7c865a7ce672d5032b916a0a0796f6070d5f17b03132b",
348
348
  "notebooks/transcendentals.html": "1dfc5d40f0e3e6cccc785fb73d73ef82e24048d7affd10143370779ef2032b8c",
349
349
  "notebooks/view-vendored-d3.html": "debeeef830f8c328b3b6e13b0b8fe26021ba55802b89d8dbe78b8a0c6c002eac",
350
- "sdk.html": "e53adfd12ab53546f3908e9ba87e34f169e992512b558e2196c27e89e214b4b8",
350
+ "sdk.html": "79d0a4e475b302aadb15d5b051979c43b8f1e0c896347822ddc988d6c6a3a823",
351
351
  "shim/bundle/index.js": "edc501a039ce47102657604df71fbc17ba3e4760ca087055351231c7469f5c50",
352
352
  "shim/bundle/indexHtml.js": "2c4fbc502bb33fce93596cee19e143a58bb63c18d0b18ea597f81610e3a9a027",
353
353
  "shim/bundle/zip.js": "00f7b5fb5f36ff40a59d86758c503d9d7fb43949c1b5a4f2e7367c43d92786f9",
@@ -357,14 +357,14 @@
357
357
  "shim/engine/artifact-shell.js": "f23c327500f8174b12d464868f6ec9c1701e7a9a5faa1c43a2ddafc3191dc38c",
358
358
  "shim/engine/boot-phases.js": "c6e12e12824bcf6f1a289f46e41c898a5416c80c131594525145aae9a3eefbfa",
359
359
  "shim/engine/engine-stack-boot.js": "0abf57dcff2ca2bb025c787a17875d49d54d9218ac08c78cb9c678dbb6118d08",
360
- "shim/engine/router.js": "e0563d9b6cc9da08fe915b1d0218faf446a827ff9196038c9f85622f7d1c0fcd",
361
- "shim/engine/site-graph.js": "55276c1aa1a4d64f2939610993b00b6bf9d10b331361ac2c4997b949303b7fd4",
360
+ "shim/engine/router.js": "62a1995871557536f48903eec14849b135f7d5d5e68c77139b61289a405072b3",
361
+ "shim/engine/site-graph.js": "b0d2569c67516d08bba17a152d5d3bfa0b036666eda7f11df74b4d68854e1b93",
362
362
  "shim/experiment-frame/index.js": "5a0219aaa225d8f808c405b08623ce85ada37d83fb4f55f983db3303e431e47f",
363
363
  "shim/expr/ast-schema.js": "4f1133b887639bbd86fab976292323bf4a955cdc873ff7ca8e8a8eb3b416923f",
364
364
  "shim/field-descriptor/index.js": "6647d57d1523519114adc0a5cb66335ec5121c39ab294b9c97bdfb9e5d7f61e0",
365
365
  "shim/frame-data/index.js": "df6957b0b4a8e0ee0035bc970647b90089b421ae7f05911cc047d48457164be6",
366
- "shim/host/host-view.js": "38aa2ae18c89dd5a80dd35fa5a1a6d9597d33fa2c8596a93bdb86149dbcf52dc",
367
- "shim/host/index.js": "67691951a7ff35b4baf7332987d0128d1eefd0ad185d2989674bea90b17c02f3",
366
+ "shim/host/host-view.js": "feec2f5fdc318e75cd01768c24891f85d2694a269696fcfffd9567d31983cf43",
367
+ "shim/host/index.js": "fade4b171218965570aa2e67e841920ebb3d972ff15e1cfa0394fd3fa123d82c",
368
368
  "shim/index.js": "96165c6161ffddbace0be0cde0b3a83943298531537dd2cc9c6e281b8274ff19",
369
369
  "shim/notebook/canvas-guard.js": "b19d3a86df3835bd617c7130cde997b6f8a8a0c140f95338b733115d5947ed7b",
370
370
  "shim/notebook/catalog.js": "68243a154e12bf36a76598aa554119f6e3b8b5363c8452d157c8a562b9c38dc1",
@@ -388,20 +388,22 @@
388
388
  "shim/page-params/index.js": "c58732b8127da8c2b4ecfd922bf46a6c9a5e9ab7017f41c095a6ec937011f0fa",
389
389
  "shim/project/fork.js": "07555f24c7e6d1bbe723853bc09ad570b9cd36cef248a07e98e7398d41ac70da",
390
390
  "shim/project/identity.js": "8d3e0bb9df75eecf7d11a1ea7948ff66c559973a891574d0b208c9e8f8faf504",
391
- "shim/project/index.js": "81d1a5d84c8bd5f31de8d9849d385509a73582e2ec6db4f779b018fe1b25404f",
391
+ "shim/project/index.js": "ba0d7812445aad52c36d6dd806e2d8c6b87d43e4d7c4494e9c0bfa9da8503a03",
392
392
  "shim/project/link.js": "0e3fc878bc45d9916baacd7cf129687ec6e82efd4f6f5036e4697180b3d0f87a",
393
393
  "shim/project/manifest.js": "442267af07ae1b977ff6aeaca49d98ce82b77f548cfdd1ed0f258b3429d75f31",
394
394
  "shim/project/parts-module.js": "b08e0149f086640692e1b2ff8e0d7ae0379c2bc934a0891418de5c2b8c0e8e60",
395
+ "shim/project/parts-spelling.js": "f43c356d8c08077a76190cb88bad4daa4280c112d120ee478ba67993c77c41ea",
395
396
  "shim/project/parts-writer.js": "121fa67261d6f366190c9ac4961fceed2f26ca7f35cf3fbffc767829afc69978",
396
397
  "shim/project/read-text.js": "b89bd70e3a271e1f42c8ce9427a20cdd9a4c4c9c31b64c49ff1f56b095620136",
397
- "shim/project/record-format.js": "b680c3752f20535c08be832c6808fae000c2d2325f8caee57f98351043d091be",
398
- "shim/project/specifiers.js": "c8bbff6bfbbdf00d09a39500daf54a952e1447522ecebb808a3838c9d534387e",
398
+ "shim/project/record-format.js": "95cbb99d294e66c94f9f1921664cd932649c6d6b187b17928b8fb4b955ca880f",
399
+ "shim/project/specifiers.js": "288e5e06e53b873449190f6f85855177a72e52623bd11eef016acafb8095d829",
399
400
  "shim/registry/copy-gate.js": "cfbf52669c849b8837b326f2743458f1ead0720cad51a6c6d409c9bd6c7f9495",
400
401
  "shim/registry/exhibits.js": "e137951429929dae6c38e996546b66dd19b575ee4f0aafbddf28096c847a27fc",
401
- "shim/registry/index.js": "eb805ee170ee8be71c179577fcb48b9845012ba63674316fbf9b5d7664f86f1f",
402
+ "shim/registry/index.js": "3a96c6b8790058663bb3157f6daecbcc199c2472d096b413e1766dd279832c05",
402
403
  "shim/registry/scene-roster.js": "318fe373f71b1c58d05425693f2fad4bd5368f6095b65817c6d637430a0bfb73",
403
404
  "shim/registry/scene-source.js": "c9c4b48c24d4b1ebee1549a7891a1ba708909b94b9403ce28eefbd902cacf49f",
404
405
  "shim/registry/showcase-link.js": "daf5c1426aeb3c578bace5e0edea9ba2538cd82336d2cdc944e5fed6decd7551",
406
+ "shim/registry/studio-landing.js": "c34c9e7e77087c2bfa6be9c34dafedb1e3256e92eb1aeb629b7f7182cd2edf9f",
405
407
  "shim/registry/walkthrough.js": "8f8b6f59e9e81c67c9c62f8fb271eee2e4d6e1fba6e116b227a2f1e3f9930230",
406
408
  "shim/render-state/apply.js": "94a9e60cb1722c9a82aa00f2f161fd65e6f438147333856a786e42a4ad5b7064",
407
409
  "shim/render-state/index.js": "72a6a3dcd8037893cb8fbd7ef32b126770e7efaec70847f8e4f2915ddb690b43",
@@ -74,6 +74,7 @@ import { ObjectSchema } from './schema/index.js';
74
74
  import { kindOf } from './kinds.js';
75
75
  import { linkProject } from '../../shim/project/link.js';
76
76
  import { patchParts, PARTS_EXPORT, entryKeys, entryLiteral } from '../../shim/project/parts-writer.js';
77
+ import { spellRect, spellCenter, captureCenter } from '../../shim/project/parts-spelling.js';
77
78
  import { moduleOfKind, PARTS_SPECIFIER } from '../../shim/project/parts-module.js';
78
79
  import { forkPartText, FORK_REFUSED } from '../../shim/project/fork.js';
79
80
  import { readText } from '../../shim/project/read-text.js';
@@ -347,47 +348,22 @@ import { Record, openRecordOf } from './record/Record.js';
347
348
  var _JSON = function (v) { return JSON.stringify(v); };
348
349
 
349
350
  /**
350
- * Spell a touched rect in the entry's OWN form (architect z addendum). A 6-tuple rect of a kind whose descriptor
351
- * derives reads from it (ObjectSchema.derivedReads: Wall `z`, `depth`) is written as the 4-tuple plus each derived
352
- * key whose value changed, when the entry spells any of those keys as plain properties (entryKeys); otherwise the
353
- * 6-tuple stands. A 4-tuple equal to the baseline's is not written (no literalizing an untouched expression).
354
- * Mutates and returns `props`.
351
+ * Spell a touched value in the entry's OWN form, reading the form off the held TEXT: the rule is
352
+ * lib/shim/project/parts-spelling.js spellRect / spellCenter (applyRows asks the same rule of a parts block).
353
+ * Each mutates and returns `props`.
355
354
  */
356
355
  function _spell(text, name, kind, props, baseline) {
357
- var derived = ObjectSchema.derivedReads(kind);
358
- if (!derived.length) { return props; }
359
- var spelled = entryKeys(text, name);
360
- var R4 = ObjectSchema.RECT_TUPLE[4], R6 = ObjectSchema.RECT_TUPLE[6];
361
- Object.keys(props).forEach(function (f) {
362
- var v = props[f];
363
- var rows = derived.filter(function (d) { return d.field === f && d.tuple === 6 && spelled.indexOf(d.name) !== -1; });
364
- if (!rows.length || !Array.isArray(v) || v.length !== 6) { return; }
365
- var b = Array.isArray(baseline[f]) && baseline[f].length === 6 ? baseline[f] : null;
366
- var four = R4.map(function (k) { return v[R6.indexOf(k)]; });
367
- if (b && _JSON(four) === _JSON(R4.map(function (k) { return b[R6.indexOf(k)]; }))) { delete props[f]; }
368
- else { props[f] = four; }
369
- rows.forEach(function (d) {
370
- var nv = v[R6.indexOf(d.key)];
371
- if (!b || nv !== b[R6.indexOf(d.key)]) { props[d.name] = nv; }
372
- });
373
- });
374
- return props;
356
+ return spellRect(props, { kind: kind, baseline: baseline, entryKeys: function () { return entryKeys(text, name); } });
375
357
  }
376
358
 
377
- /**
378
- * Spell a touched `center` in the entry's OWN arity: two numbers when the entry
379
- * spells two (a literal, or an array expression — entryLiteral's `length`) and the live z is 0; otherwise the
380
- * live [x, y, z] (an entry spelled three, a 3D hand off z 0, an entry whose center is not an array). The
381
- * read-back (_verifyWritten) guards every case. Mutates and returns `props`.
382
- */
383
359
  function _spellCenter(text, name, props) {
384
- var v = props.center;
385
- if (!Array.isArray(v) || v.length !== 3 || v[2] !== 0) { return props; }
386
- if (entryKeys(text, name).indexOf('center') === -1) { return props; }
387
- var r = entryLiteral(text, name, 'center');
388
- var n = r.literal ? (Array.isArray(r.value) ? r.value.length : null) : r.length;
389
- if (n === 2) { props.center = [v[0], v[1]]; }
390
- return props;
360
+ return spellCenter(props, {
361
+ entryKeys: function () { return entryKeys(text, name); },
362
+ centerLength: function () {
363
+ var r = entryLiteral(text, name, 'center');
364
+ return r.literal ? (Array.isArray(r.value) ? r.value.length : null) : (r.length === undefined ? null : r.length);
365
+ }
366
+ });
391
367
  }
392
368
 
393
369
  /**
@@ -403,8 +379,8 @@ import { Record, openRecordOf } from './record/Record.js';
403
379
  Object.keys(written).forEach(function (k) {
404
380
  var r = entryLiteral(text, name, k);
405
381
  decl[k] = r.literal ? r.value : undefined;
406
- // A two-number center declares z 0 (the reading placeDeclaredAt gives an omitted z).
407
- if (k === 'center' && Array.isArray(decl[k]) && decl[k].length === 2) { decl[k] = decl[k].concat([0]); }
382
+ // A two-number center declares z 0: read it in its capture form through the one inverse.
383
+ if (k === 'center' && Array.isArray(decl[k]) && decl[k].length === 2) { decl[k] = captureCenter(decl[k]); }
408
384
  });
409
385
  function refuse(k, declared, liveV) {
410
386
  refused.push({ op: 'set', name: name, key: k, reason: 'the written text declares ' + _JSON(declared) + ' but the live object is ' +
@@ -651,8 +627,9 @@ import { Record, openRecordOf } from './record/Record.js';
651
627
  * `center` patch sets where the entry STARTS. The loop's run state is kept. REFUSES (throws) while a hand
652
628
  * made since the last toSketch is unwritten (write it first: await exp.toSketch()), and a `name` patch (the
653
629
  * key is the name). `from` and `to` are the patched keys' capture (ObjectSchema.captureProps) before and after the
654
- * re-run — one form on both sides (a z-slab wall's rect is 6 numbers even when the patch typed 4); the patch as
655
- * typed is in `files`. With a Record open, its `setDeclared` row carries the same `from`/`to`, written after the re-run.
630
+ * re-run — one form on both sides (a z-slab wall's rect is 6 numbers even when the patch typed 4). The patch is
631
+ * written in the entry's own spelling (a rect beside `z`/`depth` as 4 numbers plus those keys; a `center` in the
632
+ * arity the entry spells, three numbers when z is not 0), as a hand's is. With a Record open, its `setDeclared` row carries the same `from`/`to`, written after the re-run.
656
633
  */
657
634
  RecipeContext.prototype.setDeclared = async function (name, patch, opts) {
658
635
  _requireWorld(this);
@@ -696,7 +673,10 @@ import { Record, openRecordOf } from './record/Record.js';
696
673
  from[k] = live[k] === undefined ? null : live[k];
697
674
  });
698
675
  var entry = this._project.entry;
676
+ // The patch is written in the entry's own spelling, as a hand's is (toSketch's order: rect, then center).
699
677
  var spelled = _spell(this._project.files[entry], name, kind, _plain(patch), live);
678
+ if (Array.isArray(spelled.center)) { spelled.center = captureCenter(spelled.center); }
679
+ _spellCenter(this._project.files[entry], name, spelled);
700
680
  var r = patchParts(this._project.files[entry], [{ op: 'set', name: name, props: spelled }], { entry: entry });
701
681
  if (r.refused.length) {
702
682
  throw new Error('[RecipeContext.setDeclared] the sketch text refused the patch: ' +
@@ -716,7 +696,7 @@ import { Record, openRecordOf } from './record/Record.js';
716
696
  runner.cameraControl.setOrbit(pose);
717
697
  kept.push('cameraPose');
718
698
  }
719
- // `to` is what the re-run declared, in the capture form `from` is in (the patch as typed is in the text).
699
+ // `to` is what the re-run declared, in the capture form `from` is in (the text holds the entry's spelling).
720
700
  var rebuilt = null;
721
701
  this._parts.forEach(function (row, o) { if (row.key === name) { rebuilt = o; } });
722
702
  if (!rebuilt) {