diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ab5b192d..7e8ed45d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,8 +6,8 @@ - Project manifest `webfront.project.json` (format 1: `name`, `version`, `dependencies`, `registry`, `scripts`, `entries`, `providers`, `test`, `permissions`), strictly validated; `wf init`, `wf install [--update]` and - manifest-driven `wf preview`/`wf embed` in developer distribution 0.5.0 (not published yet; the pin in - `DeveloperReleaseData.hpp` stays on 0.4.1 until 0.5.0 is published and verified). The lock records the digest of + manifest-driven `wf preview`/`wf embed` in developer distribution 0.5.0, which `DeveloperReleaseData.hpp` pins + (published as `developer-v0.5.0`). The lock records the digest of the manifest dependencies and reports a desynchronized state. `developer::Store::commitGroup` publishes manifest and lock through a synced intent journal with crash recovery and a concurrent-install precondition. New bridge callbacks `webfront.developer.state` and `webfront.developer.commitGroup`. Starters ship a manifest; diff --git a/docs/DEVELOPER_ENVIRONMENT.md b/docs/DEVELOPER_ENVIRONMENT.md index 39f1c36a..cffd9d5c 100644 --- a/docs/DEVELOPER_ENVIRONMENT.md +++ b/docs/DEVELOPER_ENVIRONMENT.md @@ -48,7 +48,7 @@ native tests from empty working directories, with developer callbacks absent. Pa HTTP 200, CORS `*` and the pinned archive bytes. These checks supplement offline CTest fixtures. The default configuration is generated in `include/webfront/system/DeveloperReleaseData.hpp` and targets -`https://ambroise-leclerc.github.io/WebFront/developer/0.4.1/environment.tgz`. This version, published and archived as `developer-v0.4.1`, generates providers that include ``. Published 0.4.0 stays immutable but targets the former include layout. The sources are ahead of that pin: `distribution.json` names 0.5.0 (the project manifest), which is not pinned until it has been published and verified (see `js/developer/tools/PUBLISHING.md`). The configuration pins one version and +`https://ambroise-leclerc.github.io/WebFront/developer/0.5.0/environment.tgz`. This version (project manifest, `wf restore`, `wf run`, `wf check` and the complete terminal) is published and archived as `developer-v0.5.0`. Published 0.4.1 and 0.4.0 stay immutable; 0.4.0 targets the former include layout. The configuration pins one version and its SHA-512 rather than resolving a mutable `latest` channel. An explicit `DeveloperBootstrapOptions{.environment = url, .integrity = trustedHash}` still selects a different HTTPS/CORS repository or a same-origin test fixture. Users install neither npm nor Node.js. @@ -142,7 +142,7 @@ examples are limited to Hello World and Life. Existing embedded React/Babel prov ## Project manifest (`webfront.project.json`) -Available from developer distribution 0.5.0, which is not published yet: the default configuration still pins 0.4.1, whose environment predates the manifest. +Available from developer distribution 0.5.0, which the default configuration pins; the 0.4.1 environment predates the manifest. A project has one manifest, the equivalent of `package.json`, which every `wf` command reads: ```json diff --git a/docs/PROJECT_STATUS.md b/docs/PROJECT_STATUS.md index 4f456561..49217549 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -9,8 +9,10 @@ removed without redirect headers (see `docs/CHANGELOG.md`). Browser sources live (bridge, fallback, bootstrap loader and embedding modules) and `js/developer/` (environment, terminal components, build tools, vendoring tools); tests live in `test/{unit,web,fuzz,fixtures,cmake}`. The CTest case `RepositoryLayout` enforces the root. The generated-provider include changed, so the developer -distribution is bumped to 0.4.1, published and archived as `developer-v0.4.1`. Version 0.5.0 (project manifest, #305) is -built from the sources but not pinned: `DeveloperReleaseData.hpp` moves to it only after `developer-v0.5.0` is published and verified. +distribution is bumped to 0.4.1, published and archived as `developer-v0.4.1`. Version 0.5.0 (project manifest, `wf restore`, +`wf run`/`wf exec`, `wf check`, the complete terminal) is pinned by `DeveloperReleaseData.hpp`, published and archived as `developer-v0.5.0`. On 2026-10-23 Pages returned HTTP 200, +CORS `*` and archives byte-identical to a reproducible local build; the live `--public` test (CEF, Linux) downloaded them, +fetched React from npm, ran the PI and Life previews and generated both providers. ## CI test duration (#298, 2026-10-21) diff --git a/include/webfront/system/DeveloperReleaseData.hpp b/include/webfront/system/DeveloperReleaseData.hpp index eed7156a..32c7ae3b 100644 --- a/include/webfront/system/DeveloperReleaseData.hpp +++ b/include/webfront/system/DeveloperReleaseData.hpp @@ -4,7 +4,7 @@ #include namespace webfront::developer::release { -inline constexpr std::string_view version{"0.4.1"}; -inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.4.1/environment.tgz"}; -inline constexpr std::string_view integrity{"sha512-GFvk1FWIVWBWAXLzJUEmaKo1CIMS82FZdhZyd/q8qE3/FA8CcxFN7G/u4gpQJNMJ9R1PKKLV0UXd2uuk08y0AA=="}; +inline constexpr std::string_view version{"0.5.0"}; +inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.5.0/environment.tgz"}; +inline constexpr std::string_view integrity{"sha512-TV6S61kUhnCJc99/Ow890Pro47mfZ0fBqki17lx0xnpCNmcfcqZPpO1SG09Su50WIEtRDopMxt3yvanFwbLEdQ=="}; } // namespace webfront::developer::release diff --git a/js/developer/environment/bundles.json b/js/developer/environment/bundles.json index fbc29bef..65c40f2b 100644 --- a/js/developer/environment/bundles.json +++ b/js/developer/environment/bundles.json @@ -44,5 +44,5 @@ "js/developer/vendor/package-lock.json": "f6aefe8b4cb0b15f866f41eae425f6654d2c6c2d96438fd0da878c5651585616", "js/core/bootstrap/bootstrap.bundle.mjs": "1069b307799ed2b0de53914748521731bc9796414a416d56340bbda983ef2443", "js/developer/environment/packages.bundle.mjs": "7c5b721c9252e81a4228bbef0441576fdb77af983e40675dbeab5976da582529", - "include/webfront/system/DeveloperReleaseData.hpp": "c97a8c3b21df3306c179f7b46d945159b5854f9d2810f135a4ab224c768c75d7" + "include/webfront/system/DeveloperReleaseData.hpp": "d5aaddb2ba839e4c8df46b7d37e2861163233a9018b0f2fb35a6f79831e16569" } diff --git a/test/web/DeveloperTest.cpp b/test/web/DeveloperTest.cpp index a5157f2d..4b8a62d1 100644 --- a/test/web/DeveloperTest.cpp +++ b/test/web/DeveloperTest.cpp @@ -224,7 +224,8 @@ int main(int argc, char** argv) { app.shutdown(); if (!passed.load()) return 1; - if (states->get("final") != "cancelled") { + const bool publicMode = argc == 4; // ends before the terminal checks, which need the local registry + if (!publicMode && states->get("final") != "cancelled") { std::cerr << "The command running at shutdown was not drained: " << states->get("final") << '\n'; return 1; } diff --git a/test/web/developer-specs.mjs b/test/web/developer-specs.mjs index 15e4ce03..066c72d8 100644 --- a/test/web/developer-specs.mjs +++ b/test/web/developer-specs.mjs @@ -16,6 +16,8 @@ async function writeFile(path, text) { await call('write', id, 'output', 0, new TextEncoder().encode(text)); await call('commit', id); } +// Ends the --public smoke test, which has no local registry for the checks that follow the generated headers. +class PublicSmokeDone extends Error {} try { await webFront.ready; for (let attempt = 0; attempt < 300; ++attempt) { @@ -144,6 +146,7 @@ try { const lifeHeader = await webFront.cppFunction('test.header')('LifeUI'); await runtime.execute(['embed', 'life-ui/main.tsx', '--output', 'generated/LifeUI.hpp'], context); assert(await webFront.cppFunction('test.header')('LifeUI') === lifeHeader, 'Life header must be deterministic'); + if (!config.registryExplicit) throw new PublicSmokeDone(); // A dependency added by hand desynchronizes the lock: commands say so and nothing is resolved implicitly. manifest.dependencies.scheduler = '*'; await writeFile('webfront.project.json', JSON.stringify(manifest, null, 2)); @@ -638,8 +641,12 @@ try { await waitState('final', 'running'); await webFront.cppFunction('test.report')(true, 'WASM + npm + TSX + PI + Life animation + deterministic headers + scripts + type check + terminal passed'); } catch (error) { - console.error(error); - await webFront.cppFunction('test.report')(false, String(error.stack ?? error)); + if (error instanceof PublicSmokeDone) + await webFront.cppFunction('test.report')(true, 'Public distribution: WASM + npm + TSX + PI + Life animation + deterministic headers passed'); + else { + console.error(error); + await webFront.cppFunction('test.report')(false, String(error.stack ?? error)); + } } finally { setTimeout(() => globalThis.close(), 0); }