@descix/frqtl-web 0.6.1-p3.3 → 0.6.1-p3.4
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 +7 -7
- package/README.md +1 -1
- package/dist/dist-manifest.json +3 -3
- package/dist/sdk.html +1 -1
- package/dist/shim/engine/router.js +2 -2
- package/llms.txt +6 -6
- package/package.json +1 -1
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-p3.
|
|
8
|
+
`0.6.1-p3.4` (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-p3.
|
|
17
|
+
https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/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-p3.
|
|
21
|
+
https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/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-p3.
|
|
48
|
-
rung is a file under `dist/frqtl/scenes/`), and a part: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
47
|
+
Read a real one before writing your own: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/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.4/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-p3.
|
|
73
|
+
Or skip the map: `<script src="https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/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
|
|
@@ -127,6 +127,6 @@ Everything is a Frame (recursive); there is no separate "particle" class.
|
|
|
127
127
|
- The published build is WASM-only on the engine side (compiled surface).
|
|
128
128
|
|
|
129
129
|
## Curated notebooks
|
|
130
|
-
Index: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
130
|
+
Index: `https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/notebooks/notebooks.json`
|
|
131
131
|
|
|
132
132
|
## No account, credits, or tokens are needed for anything above.
|
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-p3.
|
|
8
|
+
`0.6.1-p3.4` (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
|
package/dist/dist-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descix/frqtl-web",
|
|
3
|
-
"version": "0.6.1-p3.
|
|
3
|
+
"version": "0.6.1-p3.4",
|
|
4
4
|
"files": {
|
|
5
5
|
"artifact/double-slit.html": "25d93abfd0961a5e063429395801160a599fbb8e92c774a3128d5b0ba4ac415a",
|
|
6
6
|
"artifact/sun.html": "4ec3515a3a94553bb862a7894ecd43757004fd8087ba60ce97622a410b615383",
|
|
@@ -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": "
|
|
350
|
+
"sdk.html": "e9a02e2cc50bb665cc9fdd12d3bae468b8e6270827532506918c2719f6514a5b",
|
|
351
351
|
"shim/bundle/index.js": "edc501a039ce47102657604df71fbc17ba3e4760ca087055351231c7469f5c50",
|
|
352
352
|
"shim/bundle/indexHtml.js": "2c4fbc502bb33fce93596cee19e143a58bb63c18d0b18ea597f81610e3a9a027",
|
|
353
353
|
"shim/bundle/zip.js": "00f7b5fb5f36ff40a59d86758c503d9d7fb43949c1b5a4f2e7367c43d92786f9",
|
|
@@ -357,7 +357,7 @@
|
|
|
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": "
|
|
360
|
+
"shim/engine/router.js": "3846722d4b9314c6176c62e0ff6b04cbf50b52b7195fd250426740f1f334065b",
|
|
361
361
|
"shim/engine/site-graph.js": "b0d2569c67516d08bba17a152d5d3bfa0b036666eda7f11df74b4d68854e1b93",
|
|
362
362
|
"shim/experiment-frame/index.js": "5a0219aaa225d8f808c405b08623ce85ada37d83fb4f55f983db3303e431e47f",
|
|
363
363
|
"shim/expr/ast-schema.js": "4f1133b887639bbd86fab976292323bf4a955cdc873ff7ca8e8a8eb3b416923f",
|
package/dist/sdk.html
CHANGED
|
@@ -132,7 +132,7 @@ universe.experimentTickFunctions.push(<span class="keyword">function</span> (u)
|
|
|
132
132
|
|
|
133
133
|
<p>In the browser (<code>@descix/frqtl-web</code>), <code>bootScene(mount, sketch)</code> boots the engine and the renderer and runs a sketch — a <code>buildExperiment(exp)</code> function whose first statement creates the world. Import the parts the sketch uses from the same dist the doors come from:</p>
|
|
134
134
|
|
|
135
|
-
<pre><code><span class="keyword">const</span> DIST = <span class="string">'https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
135
|
+
<pre><code><span class="keyword">const</span> DIST = <span class="string">'https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist'</span>;
|
|
136
136
|
<span class="keyword">const</span> { bootScene } = <span class="keyword">await</span> import(DIST + <span class="string">'/frqtl/experiments/_shared/doors.js'</span>);
|
|
137
137
|
<span class="keyword">const</span> { SphereEmitter } = <span class="keyword">await</span> import(DIST + <span class="string">'/frqtl/parts/index.js'</span>);
|
|
138
138
|
|
|
@@ -152,7 +152,7 @@ var DIST_PROFILE = buildDistProfile('../..');
|
|
|
152
152
|
// lib/shim/engine/test/router.test.mjs asserts them against the two
|
|
153
153
|
// package.json#version fields so a forgotten bump fails `make verify`, not a
|
|
154
154
|
// silent stale-CDN-URL bug.
|
|
155
|
-
var CDN_SDK_VERSION = '0.6.1-p3.
|
|
155
|
+
var CDN_SDK_VERSION = '0.6.1-p3.4'; // sdk/frqtl-web/package.json#version (the ONE version owner) — bound by router.test.mjs
|
|
156
156
|
var CDN_MATH_SDK_VERSION = '0.3.3-p2.1'; // sdk/egpt-math-sdk/package.json#version — bound by router.test.mjs; bumped with each npm publish
|
|
157
157
|
|
|
158
158
|
/**
|
|
@@ -526,7 +526,7 @@ var _assertProfileParity = (function () {
|
|
|
526
526
|
* // CDN mode (static hosting — the artifact host shell has no server, no page anchor):
|
|
527
527
|
* const cdnRouter = engineRouter({ mode: 'cdn', engine: 'wasm' });
|
|
528
528
|
* console.log(cdnRouter.resolve('compat/engine.js'));
|
|
529
|
-
* // 'https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
529
|
+
* // 'https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/frqtl/compat/engine.js'
|
|
530
530
|
*
|
|
531
531
|
* // CDN mode, self-hosted: a copy of dist/ served from the consumer's own origin:
|
|
532
532
|
* const selfHosted = engineRouter({ mode: 'cdn', engine: 'wasm', base: 'https://example.org/vendor/frqtl-web/dist' });
|
package/llms.txt
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> A discrete cellular-automata physics engine (compiled Rust → WASM) for the browser: interference,
|
|
4
4
|
> blackbody spectra and binding emerge from per-pixel rules (1 px/tick, single occupancy, momentum).
|
|
5
|
-
> 0.6.1-p3.
|
|
5
|
+
> 0.6.1-p3.4 on npm dist-tag `next`. Node twin: @descix/frqtl-node.
|
|
6
6
|
|
|
7
7
|
- Install: `npm install @descix/frqtl-web`
|
|
8
|
-
- Live page (claude.ai artifact-safe): https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
9
|
-
- One-file form (global FRQTL): https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
8
|
+
- Live page (claude.ai artifact-safe): https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/artifact/double-slit.html
|
|
9
|
+
- One-file form (global FRQTL): https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/frqtl-web.min.js — example https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/artifact/sun.html
|
|
10
10
|
- A scene is an ES module: `export default function buildExperiment(exp)`, first statement
|
|
11
11
|
`exp.createCanvas(w, h, cfg)` (2D, p5) or `exp.createScene(w, h, d, cfg)` (3D, three); parts from
|
|
12
|
-
`@descix/frqtl-web/parts`. Example: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
12
|
+
`@descix/frqtl-web/parts`. Example: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/frqtl/scenes/double-slit.js
|
|
13
13
|
- Doors (`@descix/frqtl-web/boot`): `bootScene(mount, buildExperiment, opts)`;
|
|
14
14
|
`bootProject(mount, { files: { 'sketch.js': text }, entry: 'sketch.js' }, opts)` or `{ url, entry }`; a folder whose
|
|
15
15
|
`frqtl.json` names its entry boots as `{ files }` or `{ url }` with no `entry`.
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
- `./host-view`: `declareHostView`, `HOST_VIEW_OUTCOMES`, `CONTRACT_VIOLATIONS`, `HOST_SDK_SCRIPT` (an app asks its DeSciX shell for a view, once: `declareHostView({ sdk: window.DeSciX, mode, fallback })`; the outcome is on the html element's dataset).
|
|
20
20
|
- `./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)
|
|
21
21
|
- `await recipeContext.fork(name, NewKind, { by })`: copies the `parts` entry's part file into the folder as `parts/<NewKind>.js` (class renamed, imports rewritten to package specifiers) and re-runs the scene in place.
|
|
22
|
-
- API reference: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
23
|
-
- Full agent guide: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.
|
|
22
|
+
- API reference: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/dist/sdk.html
|
|
23
|
+
- Full agent guide: https://cdn.jsdelivr.net/npm/@descix/frqtl-web@0.6.1-p3.4/CLAUDE.md
|
|
24
24
|
- Acceptance is visual; no CLI ships. No account, credits or tokens are needed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descix/frqtl-web",
|
|
3
|
-
"version": "0.6.1-p3.
|
|
3
|
+
"version": "0.6.1-p3.4",
|
|
4
4
|
"description": "FRQTL for the browser \u2014 the discrete fractal physics engine (compiled Rust \u2192 WASM), its parts as ES modules, the scene doors (bootScene, bootProject) and frqtl-web.min.js.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|