From 0e2bd8368df5b139ec47ddeb75ad94bd89d5c5a0 Mon Sep 17 00:00:00 2001 From: Miskovy Date: Wed, 28 Oct 2026 15:54:31 +0300 Subject: [PATCH 1/2] chore(release): prepare explicit 1.0.0-rc.5 candidate baseline --- .github/workflows/ci.yml | 3 + README.md | 7 +- docs/README.md | 6 +- docs/release-v1.0.0-rc.5.md | 121 ++++ docs/releasing.md | 167 ++--- docs/stability.md | 12 +- package-lock.json | 6 +- package.json | 2 +- packages/runtime/README.md | 8 +- packages/runtime/package.json | 4 +- scripts/browser/run.mjs | 45 +- scripts/package-smoke.mjs | 92 ++- scripts/rc/README.md | 82 ++- scripts/rc/api-freeze.mjs | 35 +- scripts/rc/artifact.mjs | 68 ++ scripts/rc/baseline.mjs | 131 +++- scripts/rc/baseline.test.mjs | 142 +++- scripts/rc/consumer.ts | 4 +- scripts/rc/contracts.mjs | 27 + scripts/rc/frozen-rc5.json | 1171 +++++++++++++++++++++++++++++++ scripts/rc/package.mjs | 74 +- scripts/rc/prepare.mjs | 164 +++++ scripts/rc/qualify.mjs | 48 +- scripts/rc/repro.mjs | 19 +- scripts/rc/soak.mjs | 30 +- scripts/release/npm-release.mjs | 28 +- 26 files changed, 2219 insertions(+), 277 deletions(-) create mode 100644 docs/release-v1.0.0-rc.5.md create mode 100644 scripts/rc/artifact.mjs create mode 100644 scripts/rc/contracts.mjs create mode 100644 scripts/rc/frozen-rc5.json create mode 100644 scripts/rc/prepare.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c99cbb4..88de5af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,9 @@ jobs: env: PJS_EXPECTED_NODE: ${{ matrix.node }} PJS_RELEASE_NPM_CLI: ${{ steps.release-cli.outputs.path || steps.release-cli-windows.outputs.path }} + - name: Registered release candidate qualification + if: startsWith(github.head_ref, 'release/') || startsWith(github.ref_name, 'release/') + run: node scripts/rc/qualify.mjs --npm-cli="${{ steps.release-cli.outputs.path || steps.release-cli-windows.outputs.path }}" --release-npm-cli="${{ steps.release-cli.outputs.path || steps.release-cli-windows.outputs.path }}" --profile=standard --output=.node-tools/rc-candidate.json - name: Retain supported minimum identity and supplemental evidence if: always() uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index d340bc8..8b1f7e4 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,11 @@ a prerelease.** As checked on 23 October 2026, [npm `next` and `latest`](https:/ both select RC4. Final v1.0.0 has not been released. CI reports validation results; it does not establish stable-release or production-readiness approval. +**Prepared candidate: 1.0.0-rc.5**, containing integrated Checkpoints 1–4, +patched Node support, CommonJS and browser execution. It is not published; npm tags +still select RC4. Read the [release notes/migration](docs/release-v1.0.0-rc.5.md) +and [candidate procedure](docs/releasing.md). Existing release holds remain unresolved. + ## Quickstart ```sh @@ -121,7 +126,7 @@ See the [core API guide](docs/guide/core-api.md) for contracts and options. ## Development status Merged source includes S1, corrected Stage A, B1–B4, C1-A/Q, C2 and C3. It differs -from published RC4 despite unchanged version fields. Checkout examples use the +from published RC4 as the RC5 candidate. Checkout examples use the six new development option names with deprecated aliases; RC4 uses the older spellings and declarations. Later containment controls are also absent from RC4. diff --git a/docs/README.md b/docs/README.md index 19478c5..c26b34e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,6 +5,10 @@ contract you need. The current guides describe **integrated development source through C3 and the approved P1/P2/P3 promotion**, not the immutable package already published on npm. +Integrated Checkpoints 1–4, Node support and host cleanup are now prepared as +the unpublished [RC5 candidate](release-v1.0.0-rc.5.md). Its version/baseline selection +does not clear release holds or begin the retained-alias window. + ## Using PJS | Need | Read | @@ -36,7 +40,7 @@ qualification, the historical strict JavaScript byte-identity failure and the explicit maintainer-approved revised acceptance. Release holds, the unauthorized transition prerelease, C4 and Stage F/G remain separate; the alias window has not started. -Unchanged manifest versions do not make development bytes published RC4. +RC5 candidate manifests do not indicate publication or change immutable RC4. - [Stability and exact Node/platform evidence](stability.md). - [Historical Node 24.0.0 development-floor qualification](research/node24-floor-qualification.md). diff --git a/docs/release-v1.0.0-rc.5.md b/docs/release-v1.0.0-rc.5.md new file mode 100644 index 0000000..5f109c1 --- /dev/null +++ b/docs/release-v1.0.0-rc.5.md @@ -0,0 +1,121 @@ +# PJS 1.0.0-rc.5 candidate + +**Status: prepared for review, not published.** As checked read-only on 28 October +2026, npm latest/next still select RC4; RC5's npm version and GitHub release return +explicit 404s and the remote tag is absent. This note authorizes no publication, +tag, alias removal or final-v1.0 readiness claim. Separately tracked release holds +and their applicability remain unresolved; see [releasing](releasing.md). + +The candidate contains integrated Checkpoints 1–4, patched Node support, the +browser no-replacement graceful-drain correction and typed host-boundary cleanup. +There are zero production dependencies. The baseline intentionally differs from +immutable RC4: compare semantics and supported contracts across releases; require +exact source/declaration/package identity only within the selected release baseline. + +## Included behavior + +- Opt-in physical cancellation on run and all four range APIs. Default cancellation + still settles callers logically. Node retains occupancy/credits until validated + completion or confirmed exit; terminate work and leases use exclusive placement. +- Bounded opt-in ordinary/per-partition retries require repeatable: true. Successful + or delivered partitions do not replay. One registered-task fallback follows + eligible primary retries. Replacement restores capacity, not task success; a + crash does not prove an execution had no side effects. +- Explicit rebuildInput reconstructs recovery inputs after dispatch capacity is + claimed, using fresh transfer lists. It never repairs detached buffers or inserts + hidden backup copies. Initial inputs still use the ordinary input/factory path. +- Cooperative cancellation uses shared atomic polling for CPU loops and an + invocation-local signal for async cleanup. Ignoring it does not force escalation. + Caller rejection alone never releases an occupied execution slot. +- Elastic min/max worker bounds with opt-in idleTimeout, and selected Node worker + resourceLimits. Limits cover selected JS-engine resources, not total RSS/native + allocation. Fixed pools remain the default without elasticity. +- Stable dispatch priorities, guarded custom comparison and configurable async + concurrency per worker. Overlapping waits does **not** add CPU threads. Synchronous + JavaScript remains on each worker's one JS thread. Destructive work is exclusive. +- Bounded, deliberately lossy progress uses invocation-local contexts. Progress is + informational, not a result or a credit release. Payloads are runtime-validated + bounded JSON even when an application declares an unconstrained progress schema. + Default invocation is still exactly execute(input); cooperative/progress opt-in + supplies execute(input, context). +- Synchronous CommonJS require and ESM import share one Node ESM graph, constructors, + errors, task handles and transfer helpers. Registered Node modules retain file: + URLs and support callable namespace exports, then callable own properties of a + CommonJS default object. Task modules may import asynchronously inside workers. +- Explicit @pjavascript/runtime/browser uses real dedicated module workers, HTTP(S) + registered ESM and Node-free/inert public graphs. Copied-asset native modules and + Vite dev/production under non-root bases are the defined loading profiles, not a + universal bundler claim. Bootstrap and helper assets must share a canonical graph. + +## RC4 migration + +Node minimums are **22.23.4, 24.22.1, 26.12.1** within their majors: +`^22.23.4 || ^24.22.1 || ^26.12.1`. Stay on current patched releases; installing PJS +does not upgrade Node. Node 20 is unsupported. Consult the +[official Node lifecycle schedule](https://github.com/nodejs/Release/blob/main/schedule.json); +the supported exact minimum is independent of lifecycle labels. + +Use the [core guide](guide/core-api.md) for full signatures and examples. TypeScript +consumers should compile against the selected candidate, rather than RC4 declarations: + +| RC4 spelling / declaration | RC5 contract | +| -------------------------------------- | -------------------------------------------------------------- | +| experimentalDispatchBatchSize | dispatchBatchSize | +| experimentalMaxBufferedResults | maxBufferedResults | +| experimentalOutputConstructor | outputConstructor | +| experimentalResultBytes | resultBytes | +| experimentalMaxResultBytes | maxResultBytes | +| experimentalMaxReservedResultBytes | maxReservedResultBytes | +| Generic async iterator stream view | Named closeable PjsRangeStream; iterator return/throw clean up | +| Broad binary backing types | Strict byte-result types require ordinary ArrayBuffer backing | +| Unsupported registry.snapshot() access | Register before construction; snapshot remains internal | +| Inferred diagnostic/error shapes | Named PjsRuntimeStats and diagnostic/error context types | + +All **six deprecated aliases remain accepted**. Supplying both spellings of a pair +rejects, including inherited or undefined presence. No removal version is selected. +The shared transition window starts only with a deliberately published release, +not version preparation, this PR, merge or successful validation. New resilience, +priority, concurrency and progress controls are opt-in; their defaults retain prior +behavior. Map/stream modes, clone/transfer/shared ownership, result ordering, parent +deadlines and exactly-once caller settlement remain in their existing owners. + +Ordinary CommonJS applications can synchronously require the root; .cts and .mts +consumers use the same NodeNext declaration graph under both locked compilers. See +the [CommonJS example](guide/core-api.md#commonjs-consumption-development). Browser +users explicitly import /browser and follow [deployment/CSP/CORS/MIME guidance](guide/browser.md). +Raw task URLs do not compile TypeScript or bundle dependencies. PJS executes trusted +application task modules; workers are not an untrusted-code sandbox. + +## Browser and memory boundaries + +Worker.terminate() exposes no observable native join. Browser revocation commits +local retirement/terminal accounting only after posting/input cleanup; it does not +certify native exit or shared backing safe to reuse. Worker bounds count managed +endpoints. Replacement never replays ambiguous old execution. Browser retries and +fallback support validated task-error recovery and genuine skipped suffixes only; +worker-crash/execution-lease recovery causes reject before factories/transfers. + +Browser cooperation requires usable shared memory in page and worker, normally +with cross-origin isolation. Without it, cooperation rejects and progress uses +bounded message credits; a CPU loop may send only its first update until it yields. +Browser resourceLimits presence rejects. Silent self-close is not completion +evidence. Shutdown is local retirement, not a shared-memory quiescence certificate. +Shared inputs remain the application's responsibility; cancellation/retry never +roll back effects. Result-byte credits do not cap total RSS. + +## Candidate evidence and remaining decisions + +The explicit [RC5 baseline](../scripts/rc/frozen-rc5.json) freezes intended inputs; +clean committed receipts identify actual SHA/tree, baseline digest and archive +SHA-256. [Existing tooling](../scripts/rc/README.md) performs independent clean-build +reproduction and stages one canonical archive. Installed Node/browser consumers +and the existing dry-run publication helper must consume that exact archive. +Large receipts and failed attempts remain outside Git; actual outcomes and paths +are reported in the preparation PR, not inferred from historical passing runs. + +Chromium evidence does not establish Firefox/WebKit, macOS or ARM64 support. +Normal minimum-version CI and candidate reproduction do not satisfy unresolved +final-readiness/hold requirements by implication. Remaining maintainer decisions +are review of this version/baseline/migration contract, applicability and disposition +of the existing holds/Stage F requirements, and any **separate future authorization** +for release actions. No publication eligibility is asserted here. diff --git a/docs/releasing.md b/docs/releasing.md index 8f1aa76..e85fc24 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -20,102 +20,78 @@ GitHub's repository **Packages** sidebar represents GitHub Packages. This projec does not publish a duplicate there or create another package identity. Any later organization/linked-artifact or GitHub Packages adoption is a separate decision. -## RC4 candidate qualification - -The [RC4 candidate note](release-v1.0.0-rc.4.md) defines this release's scope. -The active [baseline](../scripts/rc/frozen-rc4.json) freezes the merged R1A runtime, -RC4 metadata, declarations and every packed file. The old R1A repair allowance is -removed. Run the [qualification commands](../scripts/rc/README.md) from a committed, -clean tree. The RC4 qualification historically used four CI cells with standard soak; two independent clean local builds -run full qualification/extended soak and require identical archives. Preserve the -candidate commit, report, canonical tarball and SHA-256 together. Any subsequent -change invalidates qualification of that commit and requires qualification again. -RC3 is an immutable GitHub prerelease with no npm publication: its release -validator stopped before the OIDC step. RC4 is published on npm with registry signatures and a provenance attestation. -The procedure below applies to future deliberately approved releases. PR qualification now tests the selected -npm CLI without credentials/scripts and validates the actual candidate tarball -through the same release helper; unknown JSON shapes fail before review. - -## Runtime feature qualification after RC4 - -RC4 is already published and immutable. Feature branches intentionally change -runtime source bytes and use ordinary contract qualification: +## RC5 candidate preparation and validation + +`1.0.0-rc.5` is a **review candidate**, not a published release or final-v1.0 +readiness declaration. On 28 October 2026 read-only checks returned explicit npm +and GitHub-release 404s for RC5 and a successful empty remote-tag query. The package +metadata remained accessible with latest/next at RC4. Recheck availability before +any separately authorized publication. This PR creates no tag, release or registry state. + +The explicit reviewed map in [baseline.mjs](../scripts/rc/baseline.mjs) registers +RC4 and RC5 only. Unknown versions, missing baseline files, tag/version mismatches, +workspace/package/lock metadata drift, and source/declaration/artifact drift fail +closed. Historical [frozen-rc4.json](../scripts/rc/frozen-rc4.json) is unchanged, +including its original Node 24.21.0 publication pin; validate RC4 at its original +tag/source and artifact, never against new RC5 bytes. RC4 historical reports remain +evidence for that artifact only. The RC5 [baseline](../scripts/rc/frozen-rc5.json) +selects the integrated implementation and reviewed Node 24.22.1/npm 11.19.0 toolchain. + +Baseline writing is a deliberate preparation operation, separate from every +read-only check: ```sh -npm run release:npm -- .node-tools/release-cli -npm run runtime:qualify -- --release-npm-cli=/absolute/path/to/provisioned/npm-cli.js --output=.node-tools/new-runtime-report.json +npm run build +node scripts/rc/prepare.mjs --version=1.0.0-rc.5 --npm-cli=/absolute/reviewed/npm-cli.js ``` -The provisioner prints the selected path. Start from a clean committed tree and -choose a new output filename. The six Linux/Windows x64 Node 22.23.4/24.22.1/26.12.1 CI cells -use this path: build, all contracts (including the bounded containment soak), -types, compatibility compiler, installed package, release tooling, lint, formatting, -documentation and diff checks. Reports retain exact versions, source commit and outputs. -This is not approval to publish the unchanged version or a new candidate. - -The [24.0.0 floor report](research/node24-floor-qualification.md) records historical -development-candidate outcomes, not the new support minimums. Active supplemental -compiler/inventory and executable-identity checks now run on all six cells. -Floor evidence does not qualify a later final release or replace Stage F's -selected floor/current-patch matrix, extended campaigns and reproduction gates. - -The release-specific `rc:qualify`, API/package freezes and committed -`frozen-rc4.json` remain intact. They must fail for changed feature bytes rather -than pretend R1 is the RC4 artifact. Qualify RC4 from its historical tag/commit; -a future release requires a separately reviewed version and baseline. -The `release.published` workflow, OIDC binding and publication guards are unchanged. - -## Proposed future candidate gates — Stage F remains separate - -C1-A/Q, C2 and C3 are integrated at main -`0f79db5e1192dd47db32d2e300fc382a0f431462`. The authoritative -[Stage C decisions](research/v1-api-migration-plan.md#decisions-for-maintainer-review) -record approved P1/P2/P3 development promotion while keeping the combined -six-alias transition prerelease and later C4 removal separate. The -[promotion report](research/p1-p2-p3-development-promotion.md) records fresh -qualification, the historical strict JavaScript byte-identity failure and the -explicit maintainer-approved revised acceptance. No transition -prerelease is authorized and no window starts from a promotion commit or merge. Hold applicability remains -unresolved; actual versions, support-floor changes and publication are unselected. -Historical runtime evidence is not final-candidate qualification. - -The blocker is concrete: [baseline.mjs](../scripts/rc/baseline.mjs) selects -`frozen-rc4.json` unconditionally. RC API/package/qualification/reproduction -scripts and the publish workflow consequently enforce RC4 identity. Feature -qualification is not permission to publish a new candidate through that freeze. -Do not edit RC4 hashes or skip exact-source/declaration/package checks to proceed. - -Before F, implement a separately reviewed explicit release-version-to-baseline -selection. Reject unknown versions, tag/version/source mismatches and missing -baselines; no default to RC4 and no "current source" auto-acceptance. Retain the -historical RC4 path for its original commit/tag. Select a new unused prerelease, -intentional semantic contract and exact candidate baseline together. Define how -qualification binds to the final committed source without a self-referential -commit hash in its own baseline (for example, hash the explicitly enumerated -source/manifest inputs and bind reports to their committed SHA). Freeze before -the accepted qualification run; any material candidate change invalidates it. - -Semantic compatibility checks review supported declarations, behavior/defaults, -errors and ownership against the approved B/C contract; exact reproducibility -checks compare the complete packed artifact and metadata. A declaration-byte -hash alone cannot prove semantics, and semantic equivalence cannot excuse changed -bytes under an immutable version. Two clean builds of the selected final source -must reproduce the approved archive; installed consumers and rehearsal must use -that exact staged archive with recorded SHA-256. Recheck it immediately before -any later authorized publication. - -Follow S1 integration → A decision review → B fixes → C promotions/alias removal -→ F final qualification/rehearsal → G separate authorization. F qualifies the -promised Node floors (currently 22.23.4, 24.22.1 and 26.12.1) and selected -current patches in each major, Linux/Windows x64, with exact versions and reviewed -release npm. S1's 22.13.0/24.21.0 results do not prove 24.0.0 or qualify future -source. Apply the [floor failure decision](stability.md#proposed-node-and-platform-policy), -standard R2/R3 raw-child reconciliation and required extended/reproduction gates. -The current publisher does not run those full campaigns; enforce source-bound -evidence before final release authorization instead of assuming a successful CD -job establishes them. Node support maintenance does not change RC selectors, PJS -versions, frozen baselines or release authorization. Conditional internal -cleanup/optimization must finish before F. +Only RC5 can be prepared by this writer. Existing output requires an explicit +--replace=true. Review input changes before regeneration; validation never writes +expected values. The baseline hashes the full source/test/declaration inventories, +both public export sets, workspace/package/lock metadata, selected release/tooling/ +consumer inputs, and every packed file plus the compressed archive. Its own file +and Git SHA/tree are excluded to avoid a self-reference. Unpacked historical +research and documentation outside the enumerated inputs are excluded, not +requalified. Receipts bind the actual clean committed SHA/tree, baseline hash and +tarball SHA-256. Material candidate changes require explicit regeneration and +affected checks again; never edit a digest to hide an unexplained mismatch. + +From the clean committed candidate use the existing normal validation and RC +requirements described in [RC tooling](../scripts/rc/README.md). The release branch +runs the unchanged six-cell Linux/Windows minimum matrix, standard R2/R3 and the +existing real-browser job, plus registered candidate qualification. Reproduction +uses two independent clean builds: full qualification and the existing bounded RC +extended soak in A, build/independent consumers in B, then compares the **actual +archives**. This is not a new benchmark or extended R2/R3 campaign. + +Stage the reproduced canonical archive with its receipt/checksum outside Git. +Set PJS_CANDIDATE_TARBALL to that absolute archive for the installed Node and browser +harnesses; they validate and install those bytes instead of repacking. RC package +validation also accepts --tarball=absolute/path. The existing release helper's +tarball mode checks the selected baseline, artifact and immutable digest, runs +selected-npm **publish --dry-run --ignore-scripts**, and installs the same archive. +No rehearsal may invoke actual publication. All failed receipts remain retained; +use new output paths for retries. + + + +## Preparation is not publication eligibility + +Separately tracked release holds and their applicability remain **unresolved**. +The [post-C3 decisions](research/v1-api-migration-plan.md#decisions-for-maintainer-review), +[ADR 0023](adr/0023-v1-api-stability-decisions.md) and +[stability policy](stability.md) still govern them. This work neither investigates +nor clears excluded findings. RC5 selection resolves the version/baseline preparation +choice only. No alias window starts from this PR; actual deliberate publication is +required and no alias-removal release is selected. + +The existing Stage F/G requirements for final readiness, including separately +selected current patches, extended evidence and hold applicability, have not been +silently replaced by candidate CI. Their unresolved applicability/publication +clearance is a maintainer decision. Normal supported-minimum and Chromium results +do not establish all current patches, other browser engines, macOS, ARM64, final +v1.0 readiness or authorization to publish. Historical reports and holds remain +unchanged. See [RC5 notes and migration](release-v1.0.0-rc.5.md). ## One-time maintainer configuration @@ -180,11 +156,10 @@ and two-build reproduction. See upstream 8. For an absent version, CD runs `npm ci`, `test:release` (including the selected real npm CLI dry-run regression), `test:contracts` (including build), `test:types`, `typecheck:compat`, `test:package`, lint, formatting, documentation and diff checks. The existing - broad CI matrix remains separate. CD also enforces the active exact RC4 + broad CI matrix remains separate. CD also enforces the explicitly selected version source/declaration/export/manifest baseline. Its final artifact check compares - every packed file with the committed RC4 hashes; no repair exception is accepted - and no extended research campaign runs here. Future releases must deliberately - review a new version and baseline together. + every packed file with the selected committed hashes; no repair exception is accepted + and no extended research campaign runs here. Unknown versions remain blocked until a version and baseline are deliberately reviewed together. 9. CD packs once into runner temporary staging. It validates the actual tarball's name, version, plausible file count, allowed contents, zero runtime dependencies and repository metadata, performs a publish dry-run and runs an diff --git a/docs/stability.md b/docs/stability.md index 14cd239..6fe801d 100644 --- a/docs/stability.md +++ b/docs/stability.md @@ -7,12 +7,12 @@ select [`@pjavascript/runtime@1.0.0-rc.4`](https://registry.npmjs.org/@pjavascri and [GitHub RC4](https://github.com/Miskovy/parallel-javascript/releases/tag/v1.0.0-rc.4) is a prerelease. Final v1.0.0 has not been released. -Development main `0f79db5e1192dd47db32d2e300fc382a0f431462` integrates S1, -corrected Stage A, B1–B4, C1-A/Q, C2 and C3. It differs from immutable published -RC4 despite unchanged version fields; those new bytes must not replace RC4. -The [canonical inventory](research/v1-api-contract-inventory.md) records **61 root -names, 342 members and 158 diagnostic leaves**, with no additional named reachable -types. The [v0.15 inventory](research/v0.15-public-api-inventory.md) is historical. +Integrated Checkpoints 1–4, patched Node support and host cleanup are prepared +as the **unpublished 1.0.0-rc.5 candidate**. Version metadata does not publish it or +replace RC4. The [RC5 migration note](release-v1.0.0-rc.5.md) explains intentional +changes. Current [public inventories](research/v1-api-contract-inventory.md) record +71 Node root exports / 168 diagnostic leaves and 72 browser root exports / 167 +leaves, with no additional reachable named types. Historical inventories remain unchanged. B1 exposes the existing closeable stream contract; B2 narrows strict results to ordinary backing; B3 removes unsupported registry.snapshot() access; B4 names diff --git a/package-lock.json b/package-lock.json index 904ba2a..c7b23ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pjs-workspace", - "version": "1.0.0-rc.4", + "version": "1.0.0-rc.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pjs-workspace", - "version": "1.0.0-rc.4", + "version": "1.0.0-rc.5", "license": "MIT", "workspaces": [ "packages/*" @@ -2906,7 +2906,7 @@ }, "packages/runtime": { "name": "@pjavascript/runtime", - "version": "1.0.0-rc.4", + "version": "1.0.0-rc.5", "license": "MIT", "engines": { "node": "^22.23.4 || ^24.22.1 || ^26.12.1" diff --git a/package.json b/package.json index e1aa471..a66d9ad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pjs-workspace", "private": true, - "version": "1.0.0-rc.4", + "version": "1.0.0-rc.5", "license": "MIT", "type": "module", "workspaces": [ diff --git a/packages/runtime/README.md b/packages/runtime/README.md index e471286..8415d2a 100644 --- a/packages/runtime/README.md +++ b/packages/runtime/README.md @@ -8,6 +8,11 @@ One ESM implementation; development builds also support CommonJS require, with n production dependencies. Tasks are trusted local module exports with Node capabilities. Worker isolates are not an untrusted-code sandbox. +This package is the prepared **1.0.0-rc.5 candidate**, with integrated Checkpoints +1–4. It has not been published; npm install commands below still select immutable +RC4. See [RC5 notes and migration](https://github.com/Miskovy/parallel-javascript/blob/main/docs/release-v1.0.0-rc.5.md). +Candidate validation does not clear existing release holds or authorize publication. + ## Install ```sh @@ -94,8 +99,7 @@ of transferred buffers. Await shutdown for final resource cleanup. ## Development versus published RC4 This README in a locally packed development build may describe later source. -Merged main includes S1, corrected Stage A, B1–B4, C1-A/Q, C2 and C3; unchanged -`rc.4` version fields do not make it the published artifact. Later development +Merged main includes S1, corrected Stage A, B1–B4, C1-A/Q, C2 and C3; the selected RC5 version identifies a review candidate, not a published artifact. Later development adds closeable stream and ordinary-backed binary types, removes unsupported registry.snapshot() access, and names diagnostic/error types including PjsRuntimeStats. Those corrections are absent from immutable RC4. diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 1763615..f3ad301 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,7 +1,7 @@ { "name": "@pjavascript/runtime", - "version": "1.0.0-rc.4", - "description": "Explicit CPU task runtime for Node.js", + "version": "1.0.0-rc.5", + "description": "Explicit task runtime for Node.js and browser module workers", "type": "module", "engines": { "node": "^22.23.4 || ^24.22.1 || ^26.12.1" diff --git a/scripts/browser/run.mjs b/scripts/browser/run.mjs index f4fbb9d..206cc69 100644 --- a/scripts/browser/run.mjs +++ b/scripts/browser/run.mjs @@ -1,4 +1,6 @@ import assert from 'node:assert/strict'; +import { assertArtifact } from '../rc/artifact.mjs'; +import { assertFrozenWorkspace, assertFrozenFiles } from '../rc/baseline.mjs'; import { execFileSync } from 'node:child_process'; import { cp, mkdtemp, readFile, mkdir, writeFile, rm } from 'node:fs/promises'; import { createServer } from 'node:http'; @@ -38,22 +40,41 @@ try { join(consumer, 'package.json'), '{"private":true,"type":"module"}', ); - const [packed] = JSON.parse( - command([ - npm, - 'pack', - '--workspace', - '@pjavascript/runtime', - '--pack-destination', - temporary, - '--json', - ]), - ); + const staged = process.env.PJS_CANDIDATE_TARBALL; + let packed; + if (staged) { + assertFrozenWorkspace(root); + assertFrozenFiles(root); + const artifact = assertArtifact(resolve(staged)); + packed = artifact.packed; + const git = (...args) => + execFileSync('git', args, { cwd: root, encoding: 'utf8' }).trim(); + assert.equal(git('status', '--short'), ''); + console.log( + JSON.stringify({ + sourceCommit: git('rev-parse', 'HEAD'), + sourceTree: git('rev-parse', 'HEAD^{tree}'), + artifactSha256: artifact.sha256, + }), + ); + } else { + [packed] = JSON.parse( + command([ + npm, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--pack-destination', + temporary, + '--json', + ]), + ); + } command( [ npm, 'install', - join(temporary, packed.filename), + staged ? resolve(staged) : join(temporary, packed.filename), '--offline', '--ignore-scripts', '--no-audit', diff --git a/scripts/package-smoke.mjs b/scripts/package-smoke.mjs index fe03cea..f05ba76 100644 --- a/scripts/package-smoke.mjs +++ b/scripts/package-smoke.mjs @@ -1,4 +1,6 @@ import assert from 'node:assert/strict'; +import { assertArtifact } from './rc/artifact.mjs'; +import { assertFrozenWorkspace, assertFrozenFiles } from './rc/baseline.mjs'; import { spawnSync } from 'node:child_process'; import { createHash } from 'node:crypto'; import { @@ -58,39 +60,66 @@ try { type: 'module', }), ); - const dry = JSON.parse( - run( - 'pack dry run', - process.execPath, - [ - npmCli, - 'pack', - '--workspace', - '@pjavascript/runtime', - '--dry-run', - '--json', - ], + const staged = process.env.PJS_CANDIDATE_TARBALL; + let packed; + if (staged) { + assertFrozenWorkspace(root); + assertFrozenFiles(root); + packed = assertArtifact(resolve(staged)).packed; + report.sourceCommit = run( + 'candidate SHA', + 'git', + ['rev-parse', 'HEAD'], root, - ), - )[0]; - const packed = JSON.parse( - run( - 'pack', - process.execPath, - [ - npmCli, - 'pack', - '--workspace', - '@pjavascript/runtime', - '--pack-destination', - temporary, - '--json', - ], + ).trim(); + report.sourceTree = run( + 'candidate tree', + 'git', + ['rev-parse', 'HEAD^{tree}'], root, - ), - )[0]; + ).trim(); + assert.equal( + run('clean candidate', 'git', ['status', '--short'], root).trim(), + '', + ); + } else { + const dry = JSON.parse( + run( + 'pack dry run', + process.execPath, + [ + npmCli, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--dry-run', + '--json', + ], + root, + ), + )[0]; + packed = JSON.parse( + run( + 'pack', + process.execPath, + [ + npmCli, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--pack-destination', + temporary, + '--json', + ], + root, + ), + )[0]; + assert.deepEqual( + packed.files.map((file) => file.path).sort(), + dry.files.map((file) => file.path).sort(), + ); + } const files = packed.files.map((file) => file.path).sort(); - assert.deepEqual(files, dry.files.map((file) => file.path).sort()); for (const required of [ 'dist/index.js', 'dist/index.d.ts', @@ -105,9 +134,10 @@ try { /^(dist\/|src\/|package.json$|README.md$|LICENSE$)/.test(file), ), ); - const tarball = join(temporary, packed.filename); + const tarball = staged ? resolve(staged) : join(temporary, packed.filename); report.tarball = { ...packed, + path: tarball, sha256: createHash('sha256').update(readFileSync(tarball)).digest('hex'), }; if (reportPath) { diff --git a/scripts/rc/README.md b/scripts/rc/README.md index b24e4d4..9bd7148 100644 --- a/scripts/rc/README.md +++ b/scripts/rc/README.md @@ -1,24 +1,27 @@ # RC contract qualification -This tooling qualifies the exact `1.0.0-rc.4` candidate; it adds no product API. -[`frozen-rc4.json`](frozen-rc4.json) freezes all 25 production source files, all -24 runtime test/fixture/type/config files, 25 declarations, 38 named exports (16 runtime values), the full package manifest, -206 runtime contracts, 29 release/baseline regressions, the reviewed publication -toolchain and all 128 packed file hashes. Its runtime provenance is merged -R1A commit `2387e1efd0cfb225387132266d0152949315b411`. Qualification reports record -HEAD separately: the release candidate includes versioning, documentation and gates -on top of that runtime. The immutable [`frozen-rc3.json`](frozen-rc3.json), historical [`frozen-v015.json`](frozen-v015.json) and -v0.15.0 tag remain unchanged; they are no longer the active candidate baseline. - -There are no repair allowlists or compatibility bypass flags. Unknown/duplicate -arguments fail closed. Whole source/declaration inventories detect added/removed -files. Package validation compares every artifact byte, including generated JS, -maps, README, LICENSE and metadata. Baselines are reviewed release inputs; no -build or qualification command regenerates them. A future candidate must explicitly -review and replace its baseline and version together. -All output paths must be new. Existing output is refused, including an incomplete -failed run: choose another filename to retain failures. Historical soaks are not -invoked because some overwrite historical research artifacts. +The active review candidate is **1.0.0-rc.5**, not a publication. Explicit +version selection in [baseline.mjs](baseline.mjs) registers only RC4 and RC5. +[frozen-rc4.json](frozen-rc4.json) remains immutable and applies to its original +source/tag; its 206-test/38-export evidence must not be attributed to RC5. +[frozen-rc5.json](frozen-rc5.json) freezes the integrated implementation's source, +tests, declarations, both export sets, complete package/lock metadata, release +inputs and packed files/archive. Validation never regenerates expected hashes. +All six deprecated aliases and existing release holds remain unchanged. + +Prepare explicitly after intended input changes (existing RC5 output requires +--replace=true), review the resulting baseline, then commit before qualification: + +```sh +npm run build +node scripts/rc/prepare.mjs --version=1.0.0-rc.5 --npm-cli=/absolute/reviewed/npm-cli.js +``` + +No self-referential commit/hash is stored in the baseline. Its explicit exclusions +are recorded there; qualification receipts record actual clean SHA/tree, selected +baseline hash and artifact SHA-256. Unknown versions, mismatched versions/tags, +missing baselines and drift fail closed. Output receipts must use new paths; +failed attempts are retained. Historical research artifacts are never overwritten. ## Profiles and bounds @@ -53,8 +56,8 @@ From a clean exact candidate checkout: ```sh npm ci npm run release:npm -- /absolute/new/release-cli -npm run rc:qualify -- --release-npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --profile=standard --output=/absolute/new/validation.json -npm run rc:repro -- --release-npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --scratch-dir=/absolute/sufficient-storage --output=/absolute/new/repro.json --canonical-dir=/absolute/new/package-dir +npm run rc:qualify -- --npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --release-npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --profile=standard --output=/absolute/new/validation.json +npm run rc:repro -- --npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --release-npm-cli=/absolute/new/release-cli/node_modules/npm/bin/npm-cli.js --scratch-dir=/absolute/sufficient-storage --output=/absolute/new/repro.json --canonical-dir=/absolute/new/package-dir ``` The qualification command requires a clean tree and performs explicit process.execPath gates, release/baseline regressions (including credential-free real selected-npm dry-run), runtime test runner @@ -69,8 +72,9 @@ each, full current-Node qualification plus extended soak in A, build/package in then requires identical packed file hashes and archive bytes. It retains the canonical tarball/checksum. Dependencies and package sources come from the exact committed candidate. -Ordinary npm (including Node 22.13.0's npm 10.9.2) performs dependency installation, -packing and installed-consumer validation. Publication-specific operations must +For candidate packing/reproduction select the independently reviewed npm CLI +for both --npm-cli and --release-npm-cli. Ordinary runtime CI still records its +own npm separately for dependency installation and normal consumer checks. Publication-specific operations must select the separately provisioned npm 11.19.0; unsupported publisher versions fail before executing the fixture's lifecycle traps. Production publication additionally requires Node 24.22.1. The version/integrity policy lives in @@ -84,19 +88,33 @@ consumer/fixture temporary files also fit. Preserve retained reports and canonic artifacts; remove only reconstructible caches or dependency directories. Storage failure does not satisfy any reproducibility gate. -## Isolated Windows Node minimum +## Exact staged artifact -Use existing portable binaries without changing PATH or the default Node. Example -paths below describe this Windows checkout's ignored local tooling: +Reproduction independently packs A and B and compares their file hashes and +complete compressed archives. It stages A only after equality is established. +It removes any inherited staged-artifact override so the comparison cannot reuse +the same archive twice. Preserve candidate.json, reports and checksum together. -```powershell -& .\.node-tools\node-v22.13.0-win-x64\node.exe scripts/rc/qualify.mjs --release-npm-cli=E:/reviewed-release-cli/node_modules/npm/bin/npm-cli.js --profile=standard --npm-cli=E:/Miskovy/Work/pjs/pjs/.node-tools/node-v22.13.0-win-x64/node_modules/npm/bin/npm-cli.js --output=.node-tools/rc4/new-minimum.json +```sh +PJS_CANDIDATE_TARBALL=/absolute/canonical/package.tgz npm run test:package +PJS_CANDIDATE_TARBALL=/absolute/canonical/package.tgz npm run test:browser +npm run test:rc:package -- --tarball=/absolute/canonical/package.tgz --npm-cli=/absolute/reviewed/npm-cli.js --output=/absolute/new/staged-package.json ``` -Select the installed 22.23.3 executable/npm CLI similarly. Commands run tests and -compilers directly through that Node binary; invoking npm alone through a Node 22 -wrapper would let literal node script commands resolve the default Node 24. -No persistent or process-local PATH override is used by the qualifier. +These paths validate the selected baseline and install the exact archive without +repacking it. RC qualification accepts --tarball=absolute/path too and forwards +it to the Node consumers. The existing release helper tarball mode is the sole +publication rehearsal: selected npm publish --dry-run --ignore-scripts plus an +offline install, never publication. No OIDC, tag, release or registry mutation is +authorized by these commands. Browser execution is separately performed by the +existing real native/Vite fixtures; retain actual engine/version output. + +## Isolated Windows minimums + +Use the existing Linux/Windows x64 matrix at Node 22.23.4, 24.22.1 and 26.12.1. +Direct manual invocations must use the intended node.exe and absolute reviewed +npm CLI paths. Reports record process.execPath and actual versions. No evidence +from another host is inferred for an unexecuted cell. ## Reduced individual checks diff --git a/scripts/rc/api-freeze.mjs b/scripts/rc/api-freeze.mjs index c7208f9..8b99b58 100644 --- a/scripts/rc/api-freeze.mjs +++ b/scripts/rc/api-freeze.mjs @@ -3,8 +3,9 @@ import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import ts from 'typescript'; +import { namedExports } from './contracts.mjs'; import { - baseline, + baselineForWorkspace, assertArguments, assertFrozenFiles, assertFrozenWorkspace, @@ -12,6 +13,7 @@ import { const root = fileURLToPath(new URL('../../', import.meta.url)); assertArguments([]); +const baseline = baselineForWorkspace(root); assertFrozenWorkspace(root); assertFrozenFiles(root); for (const path of Object.keys(baseline.runtimeSource)) { @@ -34,31 +36,22 @@ for (const path of Object.keys(baseline.runtimeSource)) { }; walk(tree); } -const source = ts.createSourceFile( - 'index.ts', - readFileSync(resolve(root, 'packages/runtime/src/index.ts'), 'utf8'), - ts.ScriptTarget.Latest, - true, -); -const named = source.statements - .filter(ts.isExportDeclaration) - .flatMap((s) => { - assert.ok( - s.exportClause && ts.isNamedExports(s.exportClause), - 'Explicit exports required', - ); - return s.exportClause.elements.map((e) => ({ - name: e.name.text, - kind: s.isTypeOnly || e.isTypeOnly ? 'type' : 'value', - module: s.moduleSpecifier.text, - })); - }) - .sort((a, b) => a.name.localeCompare(b.name)); +const named = namedExports(root, 'packages/runtime/src/index.ts'); assert.deepEqual(named, baseline.namedExports); assert.deepEqual( Object.keys(await import('@pjavascript/runtime')).sort(), baseline.runtimeValues, ); +if (baseline.browserNamedExports) { + assert.deepEqual( + namedExports(root, 'packages/runtime/src/browser/index.ts'), + baseline.browserNamedExports, + ); + assert.deepEqual( + Object.keys(await import('@pjavascript/runtime/browser')).sort(), + baseline.browserRuntimeValues, + ); +} const manifest = JSON.parse( readFileSync(resolve(root, 'packages/runtime/package.json')), ); diff --git a/scripts/rc/artifact.mjs b/scripts/rc/artifact.mjs new file mode 100644 index 0000000..c6791dc --- /dev/null +++ b/scripts/rc/artifact.mjs @@ -0,0 +1,68 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import { createHash } from 'node:crypto'; +import { readFileSync, statSync } from 'node:fs'; +import { basename } from 'node:path'; +import { assertFrozenPackage, loadBaseline } from './baseline.mjs'; +import { parseTarListing } from '../release/npm-release.mjs'; + +export const sha256 = (bytes) => + createHash('sha256').update(bytes).digest('hex'); + +/** Inspect bytes only. Preparation and validation deliberately use separate paths. */ +export function readArtifact(path) { + const tar = (args) => + execFileSync('tar', args, { maxBuffer: 16 * 1024 ** 2 }); + const entries = parseTarListing(tar(['-tzf', path]).toString()); + assert.ok( + entries.length > 0 && new Set(entries).size === entries.length, + 'Duplicate/empty archive inventory', + ); + assert.ok( + entries.every( + (name) => + /^package\/(dist\/|src\/|package.json$|README.md$|LICENSE$)/.test( + name, + ) && !name.split('/').includes('..'), + ), + 'Invalid archive path', + ); + const hashes = {}, + files = []; + let manifest; + for (const entry of entries) { + const bytes = tar(['-xOf', path, entry]); + const name = entry.slice(8); + hashes[name] = sha256(bytes); + files.push({ path: name, size: bytes.length }); + if (name === 'package.json') manifest = JSON.parse(bytes); + } + assert.ok(manifest, 'Missing package manifest'); + return { + manifest, + hashes, + packed: { + name: manifest.name, + version: manifest.version, + filename: basename(path), + size: statSync(path).size, + unpackedSize: files.reduce((sum, file) => sum + file.size, 0), + entryCount: files.length, + files, + }, + sha256: sha256(readFileSync(path)), + }; +} + +export function assertArtifact(path, expected = undefined) { + const artifact = readArtifact(path); + const baseline = expected ?? loadBaseline(artifact.manifest.version); + assertFrozenPackage(artifact.manifest, artifact.hashes, baseline); + if (baseline.archiveSha256) + assert.equal( + artifact.sha256, + baseline.archiveSha256, + 'Frozen archive SHA-256 mismatch', + ); + return artifact; +} diff --git a/scripts/rc/baseline.mjs b/scripts/rc/baseline.mjs index 3e76492..b32b4bf 100644 --- a/scripts/rc/baseline.mjs +++ b/scripts/rc/baseline.mjs @@ -1,11 +1,104 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { readFileSync, readdirSync } from 'node:fs'; -import { join, relative } from 'node:path'; +import { join, relative, dirname } from 'node:path'; -export const baseline = JSON.parse( - readFileSync(new URL('./frozen-rc4.json', import.meta.url)), -); +import { fileURLToPath } from 'node:url'; + +export const registeredBaselines = Object.freeze({ + '1.0.0-rc.4': 'frozen-rc4.json', + '1.0.0-rc.5': 'frozen-rc5.json', +}); +const directory = dirname(fileURLToPath(import.meta.url)); +export const immutableRc4Sha256 = + 'a77cbb893c1b39123d05c7c4e09aeac95643c65f3a25be6d31d3fea39e6ae55b'; +export function baselineFile(version, baseDirectory = directory) { + assert.ok( + Object.hasOwn(registeredBaselines, version), + `Unregistered release version: ${version}`, + ); + return join(baseDirectory, registeredBaselines[version]); +} +export function loadBaseline( + version, + { tag = `v${version}`, baseDirectory = directory } = {}, +) { + assert.equal(tag, `v${version}`, 'Baseline tag/version mismatch'); + const bytes = readFileSync(baselineFile(version, baseDirectory)); + if (version === '1.0.0-rc.4') + assert.equal( + createHash('sha256').update(bytes).digest('hex'), + immutableRc4Sha256, + 'Immutable RC4 baseline changed', + ); + const data = JSON.parse(bytes); + assert.equal(data.release, tag, 'Baseline release/tag mismatch'); + assert.equal( + data.manifest.version, + version, + 'Baseline manifest/version mismatch', + ); + assert.equal( + data.manifest.name, + '@pjavascript/runtime', + 'Baseline package identity mismatch', + ); + if (version === '1.0.0-rc.5') { + assert.equal(data.schema, 2, 'Unsupported RC5 baseline schema'); + assert.match( + data.archiveSha256, + /^[a-f0-9]{64}$/, + 'Missing RC5 archive identity', + ); + for (const path of [ + 'package.json', + 'package-lock.json', + 'packages/runtime/package.json', + ]) + assert.match( + data.inputs?.[path], + /^[a-f0-9]{64}$/, + `Missing frozen metadata input: ${path}`, + ); + assert.equal( + data.archiveToolchain.node, + data.releaseToolchain.node, + 'Archive Node/toolchain mismatch', + ); + assert.equal( + data.archiveToolchain.npm, + data.releaseToolchain.npm, + 'Archive npm/toolchain mismatch', + ); + } + if (data.schema === 2) { + assert.equal( + data.previousBaselineSha256, + immutableRc4Sha256, + 'RC4 preservation mismatch', + ); + assert.equal( + createHash('sha256') + .update(readFileSync(baselineFile('1.0.0-rc.4', baseDirectory))) + .digest('hex'), + immutableRc4Sha256, + 'Immutable RC4 baseline changed', + ); + } + return data; +} +export function baselineForWorkspace(root, options) { + const workspace = JSON.parse(readFileSync(join(root, 'package.json'))); + const manifest = JSON.parse( + readFileSync(join(root, 'packages/runtime/package.json')), + ); + assert.equal( + workspace.version, + manifest.version, + 'Workspace/package version mismatch', + ); + return loadBaseline(manifest.version, options); +} export function assertArguments(names, args = process.argv.slice(2)) { for (const arg of args) @@ -20,7 +113,10 @@ export function assertArguments(names, args = process.argv.slice(2)) { ); } -export function assertFrozenWorkspace(root) { +export function assertFrozenWorkspace( + root, + baseline = baselineForWorkspace(root), +) { const read = (path) => JSON.parse(readFileSync(join(root, path))); assert.deepEqual(read('packages/runtime/package.json'), baseline.manifest); assert.equal(read('package.json').version, baseline.manifest.version); @@ -35,6 +131,15 @@ export function assertFrozenWorkspace(root) { baseline.manifest.version, 'Lockfile version mismatch', ); + if (baseline.schema === 2) + for (const path of ['package.json', 'package-lock.json']) + assert.equal( + createHash('sha256') + .update(readFileSync(join(root, path))) + .digest('hex'), + baseline.inputs[path], + `Frozen workspace metadata changed: ${path}`, + ); } function inventory(root, directory, suffix) { @@ -49,7 +154,7 @@ function inventory(root, directory, suffix) { .sort(); } -export function assertFrozenFiles(root) { +export function assertFrozenFiles(root, baseline = baselineForWorkspace(root)) { for (const [directory, suffix, expected, prefix] of [ ['packages/runtime/src', '.ts', baseline.runtimeSource, ''], ['packages/runtime/test', '', baseline.runtimeTests, ''], @@ -76,9 +181,21 @@ export function assertFrozenFiles(root) { `Frozen bytes changed: ${path}`, ); } + for (const [path, digest] of Object.entries(baseline.inputs ?? {})) + assert.equal( + createHash('sha256') + .update(readFileSync(join(root, path))) + .digest('hex'), + digest, + `Frozen input changed: ${path}`, + ); } -export function assertFrozenPackage(manifest, hashes) { +export function assertFrozenPackage( + manifest, + hashes, + baseline = loadBaseline(manifest.version), +) { assert.deepEqual( manifest, baseline.manifest, diff --git a/scripts/rc/baseline.test.mjs b/scripts/rc/baseline.test.mjs index 47f0b69..d217093 100644 --- a/scripts/rc/baseline.test.mjs +++ b/scripts/rc/baseline.test.mjs @@ -15,19 +15,24 @@ import { test } from 'node:test'; import { releaseToolchain } from '../release/toolchain.mjs'; import { fileURLToPath } from 'node:url'; import { - baseline, + baselineForWorkspace, + loadBaseline, + baselineFile, assertArguments, assertFrozenFiles, assertFrozenPackage, assertFrozenWorkspace, } from './baseline.mjs'; +import { assertArtifact, readArtifact } from './artifact.mjs'; const root = fileURLToPath(new URL('../../', import.meta.url)); +const baseline = baselineForWorkspace(root); function copyCandidate() { const temporary = mkdtempSync(join(tmpdir(), 'pjs-freeze-')); for (const path of [ ...Object.keys(baseline.runtimeSource), ...Object.keys(baseline.runtimeTests), + ...Object.keys(baseline.inputs ?? {}), ...Object.keys(baseline.declarations).map( (path) => 'packages/runtime/' + path, ), @@ -42,11 +47,39 @@ function copyCandidate() { } test('RC4 source/tests/API match immutable RC3 and merged R1A', () => { - assertFrozenWorkspace(root); - assertFrozenFiles(root); + const baseline = loadBaseline('1.0.0-rc.4'); assert.equal(baseline.release, 'v1.0.0-rc.4'); assert.equal(baseline.contractTests, 206); - assert.deepEqual(baseline.releaseToolchain, releaseToolchain); + assert.deepEqual( + baseline.releaseToolchain, + JSON.parse( + execFileSync( + 'git', + ['show', 'v1.0.0-rc.4:scripts/release/toolchain.json'], + { cwd: root, encoding: 'utf8' }, + ), + ), + ); + assert.deepEqual( + baseline.manifest, + JSON.parse( + execFileSync( + 'git', + ['show', 'v1.0.0-rc.4:packages/runtime/package.json'], + { cwd: root, encoding: 'utf8' }, + ), + ), + ); + for (const path of ['package.json', 'package-lock.json']) + assert.equal( + JSON.parse( + execFileSync('git', ['show', `v1.0.0-rc.4:${path}`], { + cwd: root, + encoding: 'utf8', + }), + ).version, + '1.0.0-rc.4', + ); const historical = JSON.parse( readFileSync(new URL('./frozen-v015.json', import.meta.url)), ); @@ -96,6 +129,59 @@ test('RC4 source/tests/API match immutable RC3 and merged R1A', () => { ); }); +test('current registered candidate source, declarations and metadata match its reviewed baseline', () => { + assertFrozenWorkspace(root); + assertFrozenFiles(root); + assert.equal(baseline.manifest.version, '1.0.0-rc.5'); + assert.equal(baseline.contractTests, 476); + assert.deepEqual(baseline.releaseToolchain, releaseToolchain); +}); +test('selection is explicit, version-aware and tag-bound, with no fallback', () => { + for (const version of ['1.0.0-rc.4', '1.0.0-rc.5']) { + assert.equal(loadBaseline(version).manifest.version, version); + assert.throws( + () => loadBaseline(version, { tag: 'v1.0.0' }), + /tag\/version/, + ); + } + for (const version of ['1.0.0', '1.0.0-rc.6', '__proto__', '../frozen-rc4']) + assert.throws(() => loadBaseline(version), /Unregistered release/); +}); +test('missing baseline and mismatched frozen identities fail closed', (t) => { + const directory = mkdtempSync(join(tmpdir(), 'pjs-selected-baseline-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + for (const version of ['1.0.0-rc.4', '1.0.0-rc.5']) + assert.throws( + () => loadBaseline(version, { baseDirectory: directory }), + /ENOENT/, + ); + for (const change of [ + { release: 'v1.0.0-rc.4' }, + { manifest: { ...baseline.manifest, version: '1.0.0' } }, + ]) { + writeFileSync( + baselineFile('1.0.0-rc.5', directory), + JSON.stringify({ ...baseline, ...change }), + ); + assert.throws( + () => loadBaseline('1.0.0-rc.5', { baseDirectory: directory }), + /mismatch/, + ); + } +}); +test('qualification inputs cannot drift independently of package source', () => { + const temporary = copyCandidate(); + try { + writeFileSync( + join(temporary, 'scripts/release/npm-release.mjs'), + '// changed release path', + ); + assert.throws(() => assertFrozenFiles(temporary), /Frozen input changed/); + } finally { + rmSync(temporary, { recursive: true, force: true }); + } +}); + for (const path of [ 'packages/runtime/test/physical-boundary.test.mjs', 'packages/runtime/src/workers/worker.ts', @@ -214,3 +300,51 @@ test('unknown and duplicate options fail closed', () => { assertArguments(['output'], ['--output=a', '--output=b']), ); }); + +test('exact staged archives reject changed compressed bytes even with identical files', (t) => { + const directory = mkdtempSync(join(tmpdir(), 'pjs-artifact-freeze-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + mkdirSync(join(directory, 'package')); + writeFileSync( + join(directory, 'package/package.json'), + JSON.stringify(baseline.manifest), + ); + writeFileSync( + join(directory, 'package/README.md'), + 'synthetic archive identity fixture', + ); + const tarball = join(directory, 'candidate.tgz'); + execFileSync('tar', [ + '-czf', + tarball, + '-C', + directory, + 'package/package.json', + 'package/README.md', + ]); + const original = readArtifact(tarball); + const expected = { + manifest: original.manifest, + packageFiles: original.hashes, + archiveSha256: original.sha256, + }; + assertArtifact(tarball, expected); + const bytes = readFileSync(tarball); + assert.equal(bytes[0], 0x1f); + assert.equal(bytes[1], 0x8b); + bytes[4] ^= 1; // gzip timestamp header; decompressed files and CRC stay unchanged. + writeFileSync(tarball, bytes); + assert.deepEqual(readArtifact(tarball).hashes, original.hashes); + assert.throws( + () => assertArtifact(tarball, expected), + /archive SHA-256 mismatch/, + ); + assert.throws( + () => + assertArtifact(tarball, { + ...expected, + manifest: { ...expected.manifest, version: '1.0.0-rc.4' }, + }), + /manifest changed/, + ); +}); diff --git a/scripts/rc/consumer.ts b/scripts/rc/consumer.ts index 40918b3..057aa51 100644 --- a/scripts/rc/consumer.ts +++ b/scripts/rc/consumer.ts @@ -24,7 +24,7 @@ const task: PjsTask = registry.register( new URL('../tasks.mjs', import.meta.url), 'work', ); -const binary = registry.register( +const binary = registry.register>( 'binary', new URL('../tasks.mjs', import.meta.url), 'work', @@ -38,7 +38,7 @@ try { assert.equal(await runtime.run(task, { value: 42 }, options), 42); const shared = sharedReadonly(new Float64Array([1, 2, 3])); assert.equal(await runtime.run(task, { mode: 'sum', data: shared }), 6); - const stream: AsyncIterable> = + const stream: AsyncIterable>> = runtime.streamRange( binary, { start: 0, end: 5, grainSize: 2 }, diff --git a/scripts/rc/contracts.mjs b/scripts/rc/contracts.mjs new file mode 100644 index 0000000..721ff2d --- /dev/null +++ b/scripts/rc/contracts.mjs @@ -0,0 +1,27 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import ts from 'typescript'; + +export function namedExports(root, path) { + const source = ts.createSourceFile( + path, + readFileSync(resolve(root, path), 'utf8'), + ts.ScriptTarget.Latest, + true, + ); + return source.statements + .filter(ts.isExportDeclaration) + .flatMap((statement) => { + assert.ok( + statement.exportClause && ts.isNamedExports(statement.exportClause), + 'Explicit exports required', + ); + return statement.exportClause.elements.map((entry) => ({ + name: entry.name.text, + kind: statement.isTypeOnly || entry.isTypeOnly ? 'type' : 'value', + module: statement.moduleSpecifier.text, + })); + }) + .sort((a, b) => a.name.localeCompare(b.name)); +} diff --git a/scripts/rc/frozen-rc5.json b/scripts/rc/frozen-rc5.json new file mode 100644 index 0000000..abb12e0 --- /dev/null +++ b/scripts/rc/frozen-rc5.json @@ -0,0 +1,1171 @@ +{ + "schema": 2, + "release": "v1.0.0-rc.5", + "previousBaselineFile": "scripts/rc/frozen-rc4.json", + "previousBaselineSha256": "a77cbb893c1b39123d05c7c4e09aeac95643c65f3a25be6d31d3fea39e6ae55b", + "contractTests": 476, + "namedExports": [ + { + "name": "BinaryStreamRangeOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "CountOnlyStreamRangeOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PartitionInput", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PartitionOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PartitionRange", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PjsBinaryResult", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PjsBinaryResultContractError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsBinaryResultErrorContext", + "kind": "type", + "module": "./errors/index.js" + }, + { + "name": "PjsCancelledError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsContainmentStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsDispatchStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { "name": "PjsError", "kind": "value", "module": "./errors/index.js" }, + { + "name": "PjsErrorContext", + "kind": "type", + "module": "./errors/index.js" + }, + { + "name": "PjsExecutionLeaseError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsMapContractError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsMapResultStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsOperationSnapshot", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsOperationStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsOperationStatus", + "kind": "type", + "module": "./diagnostics.js" + }, + { "name": "PjsOutcomeStats", "kind": "type", "module": "./diagnostics.js" }, + { + "name": "PjsOwnedTypedArray", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PjsPartitionStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsProgressStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsQueueFullError", + "kind": "value", + "module": "./errors/index.js" + }, + { "name": "PjsQueueStats", "kind": "type", "module": "./diagnostics.js" }, + { + "name": "PjsRangeResultMode", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsRangeStream", + "kind": "type", + "module": "./partition/stream.js" + }, + { + "name": "PjsResultCapacityError", + "kind": "value", + "module": "./errors/index.js" + }, + { "name": "PjsRuntime", "kind": "value", "module": "./runtime.js" }, + { "name": "PjsRuntimeOptions", "kind": "type", "module": "./runtime.js" }, + { + "name": "PjsRuntimeStateError", + "kind": "value", + "module": "./errors/index.js" + }, + { "name": "PjsRuntimeStats", "kind": "type", "module": "./diagnostics.js" }, + { + "name": "PjsSchedulingStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { + "name": "PjsSerializationError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsStreamResultStats", + "kind": "type", + "module": "./diagnostics.js" + }, + { "name": "PjsTask", "kind": "type", "module": "./tasks/registry.js" }, + { "name": "PjsTaskError", "kind": "value", "module": "./errors/index.js" }, + { + "name": "PjsTaskErrorDetails", + "kind": "type", + "module": "./errors/index.js" + }, + { + "name": "PjsTaskRegistrationError", + "kind": "value", + "module": "./errors/index.js" + }, + { + "name": "PjsTaskRegistry", + "kind": "value", + "module": "./tasks/registry.js" + }, + { + "name": "PjsTimeoutError", + "kind": "value", + "module": "./errors/index.js" + }, + { "name": "PjsTimingStats", "kind": "type", "module": "./diagnostics.js" }, + { "name": "PjsTransfer", "kind": "type", "module": "./tasks/transfer.js" }, + { + "name": "PjsTypedArray", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PjsTypedArrayConstructor", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "PjsWorkerError", + "kind": "value", + "module": "./errors/index.js" + }, + { "name": "PjsWorkerStats", "kind": "type", "module": "./diagnostics.js" }, + { "name": "ProgressValue", "kind": "type", "module": "./types/index.js" }, + { + "name": "RangePartition", + "kind": "type", + "module": "./partition/range.js" + }, + { "name": "RecoveryAttempt", "kind": "type", "module": "./types/index.js" }, + { "name": "RecoveryCause", "kind": "type", "module": "./types/index.js" }, + { "name": "RestartPolicy", "kind": "type", "module": "./types/index.js" }, + { + "name": "ResultByteDeclaration", + "kind": "type", + "module": "./partition/range.js" + }, + { "name": "RetryOptions", "kind": "type", "module": "./types/index.js" }, + { "name": "RunOptions", "kind": "type", "module": "./types/index.js" }, + { "name": "RuntimeState", "kind": "type", "module": "./types/index.js" }, + { "name": "SchedulingTask", "kind": "type", "module": "./types/index.js" }, + { + "name": "sharedReadonly", + "kind": "value", + "module": "./tasks/shared.js" + }, + { "name": "ShutdownOptions", "kind": "type", "module": "./types/index.js" }, + { + "name": "StreamRangeOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "StreamRangeResult", + "kind": "type", + "module": "./partition/stream.js" + }, + { "name": "TaskContext", "kind": "type", "module": "./types/index.js" }, + { "name": "TaskProgress", "kind": "type", "module": "./types/index.js" }, + { "name": "TaskSnapshot", "kind": "type", "module": "./types/index.js" }, + { "name": "TaskStatus", "kind": "type", "module": "./types/index.js" }, + { "name": "transfer", "kind": "value", "module": "./tasks/transfer.js" }, + { + "name": "TypedMapRangeOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "UpperBoundBinaryStreamRangeOptions", + "kind": "type", + "module": "./partition/range.js" + }, + { + "name": "WorkerResourceLimits", + "kind": "type", + "module": "./types/index.js" + }, + { "name": "WorkerState", "kind": "type", "module": "./types/index.js" }, + { "name": "WorkerStatus", "kind": "type", "module": "./types/index.js" } + ], + "runtimeValues": [ + "PjsBinaryResultContractError", + "PjsCancelledError", + "PjsError", + "PjsExecutionLeaseError", + "PjsMapContractError", + "PjsQueueFullError", + "PjsResultCapacityError", + "PjsRuntime", + "PjsRuntimeStateError", + "PjsSerializationError", + "PjsTaskError", + "PjsTaskRegistrationError", + "PjsTaskRegistry", + "PjsTimeoutError", + "PjsWorkerError", + "sharedReadonly", + "transfer" + ], + "browserNamedExports": [ + { + "name": "BinaryStreamRangeOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "browserCapabilities", + "kind": "value", + "module": "./capabilities.js" + }, + { + "name": "BrowserCapabilities", + "kind": "type", + "module": "./capabilities.js" + }, + { + "name": "CountOnlyStreamRangeOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PartitionInput", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PartitionOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PartitionRange", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PjsBinaryResult", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PjsBinaryResultContractError", + "kind": "value", + "module": "../errors/index.js" + }, + { + "name": "PjsBinaryResultErrorContext", + "kind": "type", + "module": "../errors/index.js" + }, + { + "name": "PjsCancelledError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsContainmentStats", "kind": "type", "module": "./types.js" }, + { + "name": "PjsDispatchStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { "name": "PjsError", "kind": "value", "module": "../errors/index.js" }, + { + "name": "PjsErrorContext", + "kind": "type", + "module": "../errors/index.js" + }, + { + "name": "PjsExecutionLeaseError", + "kind": "value", + "module": "../errors/index.js" + }, + { + "name": "PjsMapContractError", + "kind": "value", + "module": "../errors/index.js" + }, + { + "name": "PjsMapResultStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsOperationSnapshot", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsOperationStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsOperationStatus", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsOutcomeStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsOwnedTypedArray", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PjsPartitionStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsProgressStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsQueueFullError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsQueueStats", "kind": "type", "module": "../diagnostics.js" }, + { + "name": "PjsRangeResultMode", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsRangeStream", + "kind": "type", + "module": "../partition/stream.js" + }, + { + "name": "PjsResultCapacityError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsRuntime", "kind": "value", "module": "./runtime.js" }, + { "name": "PjsRuntimeOptions", "kind": "type", "module": "./types.js" }, + { + "name": "PjsRuntimeStateError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsRuntimeStats", "kind": "type", "module": "./types.js" }, + { + "name": "PjsSchedulingStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { + "name": "PjsSerializationError", + "kind": "value", + "module": "../errors/index.js" + }, + { + "name": "PjsStreamResultStats", + "kind": "type", + "module": "../diagnostics.js" + }, + { "name": "PjsTask", "kind": "type", "module": "../tasks/registry.js" }, + { "name": "PjsTaskError", "kind": "value", "module": "../errors/index.js" }, + { + "name": "PjsTaskErrorDetails", + "kind": "type", + "module": "../errors/index.js" + }, + { + "name": "PjsTaskRegistrationError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsTaskRegistry", "kind": "value", "module": "./registry.js" }, + { + "name": "PjsTimeoutError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsTimingStats", "kind": "type", "module": "../diagnostics.js" }, + { "name": "PjsTransfer", "kind": "type", "module": "./transfer.js" }, + { + "name": "PjsTypedArray", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PjsTypedArrayConstructor", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "PjsWorkerError", + "kind": "value", + "module": "../errors/index.js" + }, + { "name": "PjsWorkerStats", "kind": "type", "module": "./types.js" }, + { "name": "ProgressValue", "kind": "type", "module": "../types/index.js" }, + { + "name": "RangePartition", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "RecoveryAttempt", + "kind": "type", + "module": "../types/index.js" + }, + { "name": "RecoveryCause", "kind": "type", "module": "../types/index.js" }, + { "name": "RestartPolicy", "kind": "type", "module": "../types/index.js" }, + { + "name": "ResultByteDeclaration", + "kind": "type", + "module": "../partition/range.js" + }, + { "name": "RetryOptions", "kind": "type", "module": "../types/index.js" }, + { "name": "RunOptions", "kind": "type", "module": "../types/index.js" }, + { "name": "RuntimeState", "kind": "type", "module": "../types/index.js" }, + { "name": "SchedulingTask", "kind": "type", "module": "../types/index.js" }, + { + "name": "sharedReadonly", + "kind": "value", + "module": "../tasks/shared.js" + }, + { + "name": "ShutdownOptions", + "kind": "type", + "module": "../types/index.js" + }, + { + "name": "StreamRangeOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "StreamRangeResult", + "kind": "type", + "module": "../partition/stream.js" + }, + { "name": "TaskContext", "kind": "type", "module": "../types/index.js" }, + { "name": "TaskProgress", "kind": "type", "module": "../types/index.js" }, + { "name": "TaskSnapshot", "kind": "type", "module": "../types/index.js" }, + { "name": "TaskStatus", "kind": "type", "module": "../types/index.js" }, + { "name": "transfer", "kind": "value", "module": "./transfer.js" }, + { + "name": "TypedMapRangeOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { + "name": "UpperBoundBinaryStreamRangeOptions", + "kind": "type", + "module": "../partition/range.js" + }, + { "name": "WorkerState", "kind": "type", "module": "./types.js" }, + { "name": "WorkerStatus", "kind": "type", "module": "../types/index.js" } + ], + "browserRuntimeValues": [ + "PjsBinaryResultContractError", + "PjsCancelledError", + "PjsError", + "PjsExecutionLeaseError", + "PjsMapContractError", + "PjsQueueFullError", + "PjsResultCapacityError", + "PjsRuntime", + "PjsRuntimeStateError", + "PjsSerializationError", + "PjsTaskError", + "PjsTaskRegistrationError", + "PjsTaskRegistry", + "PjsTimeoutError", + "PjsWorkerError", + "browserCapabilities", + "sharedReadonly", + "transfer" + ], + "runtimeSource": { + "packages/runtime/src/api/range/contracts.ts": "26ec581aaa74a002527235c713cd7d91bc7b4e1faf76f2172f2a915c989f5d42", + "packages/runtime/src/api/range/parallel-for.ts": "6aedd0d3740c866035c6bb287c936d8cb10f20fe044acecf39029a48751fbbc3", + "packages/runtime/src/api/range/parallel-map-range.ts": "42df79b047476b03fc22ce4abffe7048cec94f635908a8b6a04851ec64a15275", + "packages/runtime/src/api/range/partition-range.ts": "72e40023e28d9e8519af152846f7ce2cf8999b93e2021db28c2b7ae890aaa031", + "packages/runtime/src/api/range/stream-range.ts": "d2891a04577cf5c2fc0d7c6adec2d47ffd30fc4752580365db0b64c08232610a", + "packages/runtime/src/api/run.ts": "c91b06e886c3f9b3d6aa46d9a7d1c26275964d6f15e917e9915542b4584e7643", + "packages/runtime/src/browser/bootstrap.ts": "f71531f17846a96f62278e748cb75d1a0cf37b7daeb587b3d6498b627908fb55", + "packages/runtime/src/browser/capabilities.ts": "cdaa13a3d0ab05c34ca249e9e6a696a858e63c47f8d423b62204b9714ba1a25f", + "packages/runtime/src/browser/index.ts": "5bb4fb21a6f48df30aefec433612daac8fa9bc0be2672ea6917b6c0022dbcef3", + "packages/runtime/src/browser/registry.ts": "baf7ce5d523ba120d187cfa295e28c1f2bf61b3268730f9a1a65a7dd72e9f4c0", + "packages/runtime/src/browser/runtime.ts": "a0a2202cc7d5825d845d908f70e7ba29184aa7501851e21f4f21bc3cfa13c19d", + "packages/runtime/src/browser/statistics.ts": "b2237d75adeab385f84dbee2a8a12bb76f6fd267c813a43b91f1d271b1dd4b60", + "packages/runtime/src/browser/transfer.ts": "02696466fc39bb0d25a64f56065ce07bd1632abd7369ca87f1ef656ee054612a", + "packages/runtime/src/browser/types.ts": "e670dfa4337f150f16df0ef69104a50a1a16713b83a32baa0e8394504f764b01", + "packages/runtime/src/composition/create-runtime-components.ts": "0d144e9d145c54498b67ee299e11ac60b35a49bb4b4bbabe570c2bccff330365", + "packages/runtime/src/configuration/runtime-options.ts": "9a5bee3b9ca973365384f08db49ace4e9bef6c7dceab26c8979da8b017cdf8f4", + "packages/runtime/src/diagnostics.ts": "793200c01864e3ec8e8e2ab541ab12be12d629243b659898d3da589a758e4ca1", + "packages/runtime/src/dispatch/dispatcher.ts": "7b796784c1e05465925ac332cd13c85dc5ac069cb3b665f80b763d54589e5998", + "packages/runtime/src/errors/index.ts": "7b61c3163219b12db19a49c0e0bd7a5454726647b526bc0c3f18a10e6ee42edd", + "packages/runtime/src/hosts/browser/capabilities.ts": "0eaf3e81da5ca68e6a00a9bc56d7c94b580a5fd70a74f04c32ce4065c6d767b8", + "packages/runtime/src/hosts/browser/host.ts": "0df8083883aa5855cbf651e9ca0e1fdc04219aa2b9d3ab42240f449561f64742", + "packages/runtime/src/hosts/browser/protocol.ts": "36b32fbbe9911cc97774c95eafb16cc12a8eeebd8ca010fecd256635b8319d9a", + "packages/runtime/src/hosts/browser/worker-connection.ts": "b32ae7eb2a1b73704f3b494bbea3f9f5661bdb8aa69dd207227df0b36f1ec7c3", + "packages/runtime/src/hosts/contracts.ts": "d966f68fa2f9ab93335a87765d5d2e14497798f504f56d31b61f75d0ab86e11d", + "packages/runtime/src/hosts/node-statistics.ts": "c5f3f515e7dd83491c499ac55e69c7031aeaf2154807fc6f6815fd149f4b4f4b", + "packages/runtime/src/hosts/node.ts": "bbebd8187fa39e57580652ce967f12d126565e656e89d3290b5987ff0456c3af", + "packages/runtime/src/index.ts": "280f5a51c086f9bf33f7fe7e96757a61fae1ddb45959b66b8db8798f6906bfcb", + "packages/runtime/src/internal/binary-brands.ts": "f5fd696203847170bdaae10a4a79302683337efe628936da02cd7e53378c937e", + "packages/runtime/src/internal/integer.ts": "c1d5f34cd7a4d6aa228910e0a7e7f7929e21bea0f84e231d5984a3b7e7d51b6c", + "packages/runtime/src/internal/option-spelling.ts": "cf09938f50e539e24380a3e644a64bdb1e9832543b5d0d9525172a4f261cca76", + "packages/runtime/src/lifecycle/runtime-controller.ts": "17e44e9d541e1ade94a899d851ce40e9de6822a42f63bfd9ec4ccc60e34f677e", + "packages/runtime/src/partition/binary-core.ts": "e88bdfcd08fca0f4ffbace8f4e4726c278e16ff6f1cb7da34421889484193000", + "packages/runtime/src/partition/binary.ts": "8d8d9c70691a584888cbaa9c4cc49ea3c9e8680e841c9fd87ca1e6e60cad2508", + "packages/runtime/src/partition/coordinator.ts": "3c01cbaf7c04f857a7a1ce3541c7198b4d3db9731088ed962fa70c51b17a5b24", + "packages/runtime/src/partition/operation.ts": "ea2e3eab7f1e9325a69a67a96a45accc24ee300234fbe94c420f43e706729fed", + "packages/runtime/src/partition/range.ts": "37535446c8e295789e8d5cbe0684baf9f665bced6667af2d7623a58f31ca1960", + "packages/runtime/src/partition/results/map-assembly.ts": "d0355e9c1eb6d54ae41531bcfe93d3000424b399b64785da7b66efca69f7b4a9", + "packages/runtime/src/partition/stream.ts": "051903a9debca44f0e872c8abe6a83c7d2f7b2f1b4ef0f05a274ce067410ca91", + "packages/runtime/src/partition/validation.ts": "bc8bceb089b2204d0acb9f4c7045ce5084cb8fda748d6ea1f0d844c448ef40d6", + "packages/runtime/src/pool/pool.ts": "b1f804c6908873adf981c21c9bdc35d44fadf30d3cf16e7b1c6b0ba68a57ff6d", + "packages/runtime/src/results/credit.ts": "3a1828c33c212e8d8ee7da9c79f836e6a75fbb4a569d1307f404a314ff7dac28", + "packages/runtime/src/runtime-facade.ts": "738cdfdf14c196305b1f245b864e191b8eb02ad83de44ceee0303d163df014c0", + "packages/runtime/src/runtime.ts": "7f404187cbeb5c490b8652e779fb6e8d9e53edba71d691b5d23ab4f4051e227b", + "packages/runtime/src/scheduler/fifo.ts": "1f608d2154ac4ef3e03ad3ccf1d1aac46bb7c1ac920c2e430ec77e799765a7ab", + "packages/runtime/src/tasks/coordinator.ts": "47a41b128e1127ade13f036f66de86eb4fd3a345802d4db2d2469307135680e4", + "packages/runtime/src/tasks/registry.ts": "3f5a5d9bad0646a9e4abbb0bc38be6daf91bf5d9fb55ff527c260d03db73e915", + "packages/runtime/src/tasks/shared.ts": "617743b86d39db1a23aa601e94d57ce9cb0861f466ba09c34883ad7e2fd2c0fc", + "packages/runtime/src/tasks/task.ts": "f7cca4218b159998ec285a9978cd3652fb3de672843ce4e3bd8b6a1b3efece81", + "packages/runtime/src/tasks/transfer-core.ts": "e3b1d4496705da9c84d7dd5cacea343a313fa16c3d1a7caa2711a474f4a225b8", + "packages/runtime/src/tasks/transfer.ts": "c28f8c401e9eb0029a10279111638f37ffe3c591e234baedff4d0d15b05c797f", + "packages/runtime/src/telemetry/metrics.ts": "031d1994dd4fec40d50b265f4e59c00dd9348d089d507ed87019bb1fef7b088e", + "packages/runtime/src/telemetry/profile.ts": "831b42554f3dcb74a45ae42bdfca5811eab921d8c248986ca1859af26f9496f7", + "packages/runtime/src/telemetry/runtime.ts": "9607242110c00b36b5b303bffdf95c575159a89c69303b809686f14d93483dc9", + "packages/runtime/src/telemetry/snapshot.ts": "73fc053b52120d16b13c2b69294cf9a7f8fdc6111fa9accbefa6435cfd1da7ff", + "packages/runtime/src/types/index.ts": "108ae18b1d76a54be1a7f60dfca732f99b681ffc8e7d131173d389e78765f310", + "packages/runtime/src/workers/bootstrap.ts": "e790a2e5c6dbaf7fd0ea6478a3cd8e6155af14f4acbc90f7769e3b3ebadb0ae3", + "packages/runtime/src/workers/invocations.ts": "ecb38a57e2b5d862e8092a7a3ca2631d5a54d1ec4c363b9681ca9250a77e49b7", + "packages/runtime/src/workers/progress.ts": "099604c2f89a043ac4aca3de2eed0c96a367803591ff9ff4970a4eb137be92b3", + "packages/runtime/src/workers/protocol.ts": "5a20f54aaec353de9c124864f13c86a29af7f9ecf0c0f70bdddf3b63a269b84a", + "packages/runtime/src/workers/worker.ts": "9dbe65da913ec098f254c7eda6004e6c3104d226f4b194f9c562559128baa44a" + }, + "runtimeTests": { + "packages/runtime/test/batch.test.mjs": "da27b41ccbc4a597b32f6ec8c169aa6f8fcec4943d86bbbe7f60c54d5309a632", + "packages/runtime/test/binary-result.test.mjs": "ee9f54ca52fc96c3935683e7c79fb03acbc53034a8c0a36ce30c1c20a536ab43", + "packages/runtime/test/browser-controls.test.mjs": "7f0b7be08c55c558e8633af466de2afbe7c1e85bc501fc8f6d01c3c0a1acb018", + "packages/runtime/test/c2-options.test.mjs": "f394e531af9669613352384ca46e7ca6c9beb69433d3877c24ffab19c2968f02", + "packages/runtime/test/c3-options.test.mjs": "b40f6126d1287d5f3401d802228877e13dd3fea653b199787617cc9893d8c737", + "packages/runtime/test/checkpoint-one.test.mjs": "6c66d7dbb4a43410eefd202889dbc80c7730882e2d63afd07c4061a21f6c9449", + "packages/runtime/test/checkpoint-three.test.mjs": "ba7858e44443323c92221951c37a28d549724a172c3347d1caf26a8bad876e90", + "packages/runtime/test/checkpoint-two.test.mjs": "cb9b7843ee98956fa478bc38e6bc256d852bb96087086b0c350d3aa94e477aea", + "packages/runtime/test/closeable-stream.test.mjs": "663a1566cafb88ea1e7d9365ab32bcf0fb1aaa46f8dbe8898bad2e5f172d2b8d", + "packages/runtime/test/commonjs.test.mjs": "4b9952d0c48e4764fa6efad5e55a31ae8a6480e9ab0b6acd0cacffcf1b0dd0b2", + "packages/runtime/test/completion.test.mjs": "adecbd4846c003fbb97e4935cd6b0414d50548ca5ab427c0b48ef69d18c4179d", + "packages/runtime/test/containment.test.mjs": "608309991e33cb2e0de9082d85f666fee83088a0c2f99181bccd4932dd9b3c06", + "packages/runtime/test/diagnostics.test.mjs": "ddd3b3aed41b53c5f76be121dfa1eed1051eb42161864a7b694802fe707efb74", + "packages/runtime/test/fixtures/broken.mjs": "bd7e2480d5f6bc450d5f0024e5d8b78ce8bcbccc71b945660ba9106b94336087", + "packages/runtime/test/fixtures/checkpoint-one-tasks.mjs": "a2188d477f92a523bfd627d0ec555f41fd36301bc9cfd8f4e0f6443e8101c356", + "packages/runtime/test/fixtures/checkpoint-three-tasks.mjs": "d6710a34e51aad6a59dc53c173d2346d3921f4f943ccde6a29a8ec1804edac0a", + "packages/runtime/test/fixtures/checkpoint-two-tasks.mjs": "cf47e24e8f8f55f950f3192c6d5e49b93ca4dab0551cd3313f55682c103c54af", + "packages/runtime/test/fixtures/commonjs-function.cjs": "fa2e5d11ddbe394c0bf899c2e9305eef5ec79520166b8262c4a839da45a27c4e", + "packages/runtime/test/fixtures/commonjs-named.cjs": "d57190151d4e1d7901903140a3cf68ef358912e7ba46a89b338af3b73dab8ec9", + "packages/runtime/test/fixtures/commonjs-namespace.mjs": "2385d7610bb496b4ae6011936fbddd7a50da24716c9715f3b0a67d235a04a378", + "packages/runtime/test/fixtures/commonjs-object.cjs": "279ae856b99a1936318327b236938a4e8715551ba8d4659ff13ba2b47a75e501", + "packages/runtime/test/fixtures/containment-tasks.mjs": "59b6fffd847003454486e620e6f3ed4fa5a375f5130b8e9465f185b31d2cbd1e", + "packages/runtime/test/fixtures/hanging-import.mjs": "5b9a6689d226104b61ad384931f385be2931d0656894e55b2713273ea2a43b81", + "packages/runtime/test/fixtures/memory-tasks.mjs": "48326f4284af25b7f47b6fa6b75e83845aceec4a31d1e7937258cc8c59c32998", + "packages/runtime/test/fixtures/partition-tasks.mjs": "add612a198f718ec19b4d2edacd0b0f3ebeb34c94affbae62f9a4ec1e348288c", + "packages/runtime/test/fixtures/physical-boundary-tasks.mjs": "159a161858138115f225f82189e0868f46c6ce9c4bb08386e24e7ac8641fab4e", + "packages/runtime/test/fixtures/resilience-tasks.mjs": "572e43e5bdcf77a9b5dbff78f9656b12f6baf171ae4d3cf4982e9e3819354f16", + "packages/runtime/test/fixtures/shared-tasks.mjs": "aa2d3f81da337e36c6297c741298701c2af535e2f21218b866a2ce5f413d9ad8", + "packages/runtime/test/fixtures/tasks.mjs": "df49e8c964cd17f1be76b65c042bc986c78ba9927496c658636ce9a556d23be6", + "packages/runtime/test/fixtures/transfer-tasks.mjs": "5e5e54a87956f0a54d1d979877034a7a2c85f311c2b3a160cac3aaea750159a7", + "packages/runtime/test/helpers/containment.mjs": "262b47ddd8a15a2da884fb69d03f0f1ebd32db0a46c4676812fdfb74f7f7bf97", + "packages/runtime/test/helpers/lifecycle-generator.mjs": "c11ad7859ca6d0c4b17c7a3766e5d76367f355bf44e5df3eb469c8ffe834d19a", + "packages/runtime/test/helpers/lifecycle-model.mjs": "4ccda25a064b5b4e184a51ebbacfaa0c14a6f29a487ba259e3c126052a613c0b", + "packages/runtime/test/helpers/lifecycle-oracles.mjs": "4b847c85538c60a3addd19acc0dc7c2ac48e01605c4d17433ddb024ea03a12de", + "packages/runtime/test/helpers/lifecycle-runner.mjs": "05ea2eeecb6a1925528dc7e6af38b8db59ed3eefc2fd3a71a0de6f0e3c967f1a", + "packages/runtime/test/helpers/memory-lifecycle.mjs": "5de83deca317e600c8005325baf8fe7acc0b96e4751902bf0703de1de9f3b106", + "packages/runtime/test/helpers/runtime-inspection.mjs": "cd86badf321165977e177c2ea4d7f33249df50b0b40e3f10bc6fe5b4574d8683", + "packages/runtime/test/host-boundary.test.mjs": "290c347216c3121ab2db95a62a5a01ee9ecb1549196941a310fd17a4eefb0a5a", + "packages/runtime/test/host-contracts.test.ts": "4ee1c187e3cd3d3a3b67a3fd15b821eddb7b86498c2bbd8e7ebaef495b5d0683", + "packages/runtime/test/map.test.mjs": "083c540b68f953a447eb557e394b4403bd816112246d302c19a5db5255a5349a", + "packages/runtime/test/matrix.test.mjs": "cf9a9ba12151f1ecb399636e1773a2b9f12239e4ac16c064f94d5e293216a4dd", + "packages/runtime/test/memory-lifecycle.test.mjs": "9a0de295bcd022f83e1b88b046271a8d8b1cb96f7c09d13499810cdf36224f25", + "packages/runtime/test/memory-observability.test.mjs": "4c7e0c550d9311e93a4e58ea8c1460b21d71dd2480ef8e3b5a5ccd2c448b4020", + "packages/runtime/test/model-lifecycle.test.mjs": "a6c0374dedc5eed77d0972824f8ef93a9d7e8a249e3b1643bdde157ad94dfa8f", + "packages/runtime/test/model-real-worker.test.mjs": "b0f0432101da063c759a72005cda696e209cc8ca3680357d21b26d062df26cb5", + "packages/runtime/test/partition.test.mjs": "1256d268d26d8e5aced7f22fbf554b0a34790bd512e03c186b43a2e98af3f6ac", + "packages/runtime/test/physical-boundary.test.mjs": "878e121139a1ced37000ddfcc4ac475ebe0724953400ed1a51b24d88f9c78846", + "packages/runtime/test/public-options.test.mjs": "11c2ec08d2295b356ab351fedaefdaa7c97fd4ca4863a655b115d2d7f6d1fe24", + "packages/runtime/test/registry.test.mjs": "a37c94931cbf64e49334bd9b770d0a3fc91fa97aa1cd25f80eb8b04993be921d", + "packages/runtime/test/resilience.test.mjs": "3866a3551a9cd3139fb255cf96e4d9cd5fda81c6b164b85e14a903d88b73078b", + "packages/runtime/test/result-credit.test.mjs": "f6e13396c9ddf90f9010a413a6b333fd9dc1cc9e509c55110466592ae02bc471", + "packages/runtime/test/runtime-boundaries.test.mjs": "2953239e5412fdbc38f641211738bc3a4247b65d60179bfcddd8ec3ea9913722", + "packages/runtime/test/runtime.test.mjs": "2ca16d6c2a9634209e747caea86ce419cf56f856c813b63249efb993530f7991", + "packages/runtime/test/shared.test.mjs": "d04afa2bc7cdeeb3e20c8de39385b77263270e787a687f86e495fd72aebfe326", + "packages/runtime/test/stream.test.mjs": "5e313b0ca7434c1d9d6b6919aee5057e0f0cba7d224ec0e92c3ff602b461d2e0", + "packages/runtime/test/transfer.test.mjs": "348c0b13f9714748a06bb8beb20974f71c320664eb6e3a89fcc35b41d4c8216a", + "packages/runtime/test/tsconfig.json": "ceebe752ba35dde4ff5b0e77408b9f43e78bddb6d0aa2f5c7a797b6d1e561287", + "packages/runtime/test/types.test.ts": "8a0ecba8e445429941f3b8ab9f1c17b0324124f3a58ccce9071e2842a0ca9f69", + "packages/runtime/test/upper-bound-result.test.mjs": "3c17a125392873b1edd0daac9c2a3052ac5af03b15db91dc0dc9ce568f422300" + }, + "declarations": { + "dist/api/range/contracts.d.ts": "3c7004b0150f780d9639e799fc1c6f01a21999a8328843f522e93c4eca07310b", + "dist/api/range/parallel-for.d.ts": "a6ec89459d50b7fe9339894dd8f7a9813e80844b938b3482c4053c81871d9e1f", + "dist/api/range/parallel-map-range.d.ts": "59c5cf7847b046a3bdebc60ae92441df5a506f2cdecb32522bd775225028011a", + "dist/api/range/partition-range.d.ts": "462b6cf99a881634eb9037387a53f07a721bf4c8180d1a6e1bac9114f92f97c8", + "dist/api/range/stream-range.d.ts": "8b415d49e355edeb15612811deb60efd9189e9c5393b36f30270a8992a50a025", + "dist/api/run.d.ts": "23028c95c75df066c0ded70542466680cf4f8e942aa277f59c1593e0baee5449", + "dist/browser/bootstrap.d.ts": "089fbfd7f9aada2383c495bbddcbf2d09578b973df7790d71e455bd6b6f5c04d", + "dist/browser/capabilities.d.ts": "2eef9cd69632ac3e15f2bf8f78028e0fed6a548bfd0d2d596bbc6175595df31b", + "dist/browser/index.d.ts": "1351c27902358b1b7d18394bfd71b9ea8c1543de204e504a8fe56b3807c8c61e", + "dist/browser/registry.d.ts": "f9bedffb5227304fe1148c932902171e8d2d1a3c6a8d3e0af4d7ce2392df1374", + "dist/browser/runtime.d.ts": "1d5256cb4abf6495181c84491a9da0679b5824664bd932615689362328de3767", + "dist/browser/statistics.d.ts": "8f76ce850823ecd9ecc2f5ce75a7a492b921ac3e767241c8e83a2b377f359c26", + "dist/browser/transfer.d.ts": "5b36fc3e00983a152472941d9b0dd71ef4c778eae15539e592683b7e8777563e", + "dist/browser/types.d.ts": "3c55c56b7ba42f92882a62be51b8bb3c3662425f470ff57f6ea28b0752911150", + "dist/composition/create-runtime-components.d.ts": "5120e15381d093df6a5f1b05ea6c1e92072acb0ecf3c687bb75c3cfa349b281c", + "dist/configuration/runtime-options.d.ts": "88b97842703a21db0fb61516e2981dd53789f24493799ab3537b54b3d1c05964", + "dist/diagnostics.d.ts": "107afa98bb0a44e15e39bdd065f0de44a8666365cba7b39b8eb61559cdcb3b12", + "dist/dispatch/dispatcher.d.ts": "bb06bb3c4c9a4ac34234f58cdc7a7e4d8696ebb4e3219972eb9e4c263cfd9a3a", + "dist/errors/index.d.ts": "24a80aacf18e3587eac13cd59904ac8556af07584edc6be814e3506bab11f67a", + "dist/hosts/browser/capabilities.d.ts": "d32de45e6c2196da09b21a4a159eaea9b5adc11f63108d69eac79fa6cc55fafc", + "dist/hosts/browser/host.d.ts": "24f344bf5cb051ae36b784ff830ac6b7c5847eb298414a2014e5dae32d96b896", + "dist/hosts/browser/protocol.d.ts": "239defb34a6efdea31e5094a24ddd376c5704255afb646b219f286d5f79c2136", + "dist/hosts/browser/worker-connection.d.ts": "acf3d25eee2732f5dabf074fd51c0e0fa40aceabfe1fabbbdab27884befa1b96", + "dist/hosts/contracts.d.ts": "f723ab49a0bd8bdb809d34020381bb7e6f8d76d5e20cc32ee28679b13e0d4f58", + "dist/hosts/node-statistics.d.ts": "b2aaeee252cf8443af1090d6ee5fb44d7a468f423d6ff1f20273f6b9022c6cd9", + "dist/hosts/node.d.ts": "7b73a0c4cf69896b993ed4ca2c247be1b64f9047cbd3f81097e20f908be0c617", + "dist/index.d.ts": "215e7f0e6f76d4653d96c7e7646f17f49987c9324f812360b8475e63af51dd92", + "dist/internal/binary-brands.d.ts": "0def9e64ee388f27eb8b144d5b512dbc93a46db0eee64cb0679927cef253ed34", + "dist/internal/integer.d.ts": "5753b8818139e38ce3cca56a5c4418392ff80f87aab5e6cb913f6fbc8f63663d", + "dist/internal/option-spelling.d.ts": "a69787f824d0ddbca6f002192de8c55b4fe6c5508cec4819c34f383e2a7f7d2a", + "dist/lifecycle/runtime-controller.d.ts": "26c689e9e722bd8a3d42f3df6f2196090486e6e19f8129d2e648cc2aadc81139", + "dist/partition/binary-core.d.ts": "af7decd815c52ab389447b086d40284302e7a4f46d0c10a3b9158b768c023b97", + "dist/partition/binary.d.ts": "677bbbf6e6ff42821aaa586ce549a17dd0efa5bc59e342e20f843d273b52d56b", + "dist/partition/coordinator.d.ts": "6dafa9295f3140bd6d990f0cfc1b4fba5c35942b100437b3ccc96b20a8b41bef", + "dist/partition/operation.d.ts": "beb7256dd1d46d9264abfe73cafd6f171de23eae861e53a6c9373c45e646516d", + "dist/partition/range.d.ts": "89a3c8b82626c727120cfe07d740226c0081c32325af111abb7c452e7efe8d32", + "dist/partition/results/map-assembly.d.ts": "6bc0d04a8da70f02a7882f284fe5ff3d5bfd91a4195cd08c2cfcc1d0950891ff", + "dist/partition/stream.d.ts": "fc0a493fe9cff1a39f49903ec3e72264731332eb35acba57df0e9dbbbdb41955", + "dist/partition/validation.d.ts": "18d0db6c1b07510fe3286517dea9cc4e1d0a6f7444823322e387ab657c15de57", + "dist/pool/pool.d.ts": "bbde8d3229b0a88df95e12c66d664fba80a694be4ea81c6f25b254e12ce5f19b", + "dist/results/credit.d.ts": "60a3ffbaeca509603e62140816ca9331fa92ba4e9862b21e6cdbee2a12d5b2f2", + "dist/runtime-facade.d.ts": "28dfddef30d443397816fe4791b087fdfb5368f4b5b76c3437477ac659cd7537", + "dist/runtime.d.ts": "185f5ee3f3e6c584ecab7300a0b4bdb90fd910841a533039137d909e0765842a", + "dist/scheduler/fifo.d.ts": "3b5cb86d7ae0c7e74e5bd15302bc8bcecef47c098b021f2e71e5410f50dc0f40", + "dist/tasks/coordinator.d.ts": "79683d68106aa1d0dcb187712f5007fe8dc5aae999482469b107d4bc53892a35", + "dist/tasks/registry.d.ts": "298b5cc79b4f83f3330e24fc85c26fd13984ce9b1ba7ccf30e7cb99635175cb6", + "dist/tasks/shared.d.ts": "2b5f60e704be1d1b71ab9bc708e01801dbb7517b30fcb588139b98ac3b171b15", + "dist/tasks/task.d.ts": "ed4458b91995c578683caacf071d8865e65f3016984904970b9e196b7ca3c895", + "dist/tasks/transfer-core.d.ts": "df967a7974a03640278e012012f8fa86db17c3208e849388b568831430a81ce8", + "dist/tasks/transfer.d.ts": "c2338a8e38a8d99b96400c524530f6934dd218c003c36756763b76802275f790", + "dist/telemetry/metrics.d.ts": "7145c8861d7e0e90ffa522d535cec3dc8431f4b9a43c5ebfc944d37af2560e74", + "dist/telemetry/profile.d.ts": "81b3fd387783a87ad070694511582ce17835186a931b80e3604d50fda7403f52", + "dist/telemetry/runtime.d.ts": "34e728588c532657b05b5e431b94495c9a4e9c09f3b8d07a07bebabe6e51fdd3", + "dist/telemetry/snapshot.d.ts": "fc0c6209ba3eed124608be1f53a872c56099999a769f1f62bf4986c0f987f283", + "dist/types/index.d.ts": "63cff19df4c11775c14aac628a5fbc72e03ed4a0ee8a93ecc877a4792a0f2877", + "dist/workers/bootstrap.d.ts": "089fbfd7f9aada2383c495bbddcbf2d09578b973df7790d71e455bd6b6f5c04d", + "dist/workers/invocations.d.ts": "38688305f7a29dae9b54420489c92d9b0fc62e1e7463e476c5cb4dd39630cb20", + "dist/workers/progress.d.ts": "1b0c5e3e13b6dbf8876dd934e0ea3aab7bea943c5f7814cdecc463fa5911680d", + "dist/workers/protocol.d.ts": "a120716e4dcc59273e991de81ebfd50107f4bb5ebe68587a2cdfa9b7b9432aad", + "dist/workers/worker.d.ts": "065aa799be7c48a1043f0897f806817992bc6c864cec1bbb49deb7ff46408d47" + }, + "manifest": { + "name": "@pjavascript/runtime", + "version": "1.0.0-rc.5", + "description": "Explicit task runtime for Node.js and browser module workers", + "type": "module", + "engines": { "node": "^22.23.4 || ^24.22.1 || ^26.12.1" }, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.js" + }, + "./browser": { + "types": "./dist/browser/index.d.ts", + "import": "./dist/browser/index.js", + "default": "./dist/browser/index.js" + } + }, + "files": ["dist", "src"], + "scripts": { "build": "tsc -p tsconfig.json" }, + "license": "MIT", + "types": "./dist/index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/Miskovy/parallel-javascript.git", + "directory": "packages/runtime" + }, + "bugs": { "url": "https://github.com/Miskovy/parallel-javascript/issues" }, + "homepage": "https://github.com/Miskovy/parallel-javascript#readme", + "keywords": ["nodejs", "worker-threads", "parallel", "cpu"] + }, + "packageFiles": { + "LICENSE": "7977502d5d3bdd267520de1cce1176142296dd2a0d00309206703c7bba990135", + "dist/internal/binary-brands.js": "aa2b696d609ff2872e338207e10cd9e9086464e98c0695689a5ab3d86f44d403", + "dist/partition/binary-core.js": "058352feed654035ffb2fb71cb591b17bb6a3f7b3ca2cca107cc2fec83cf0ab0", + "dist/partition/binary.js": "ddb9e2d518449e823bac7ded8caf932eb98035ac2ab3508329360e36b7661dc4", + "dist/browser/bootstrap.js": "438127d9a0f6efb25b2973ace5608a06ce9899a11a3c7d08ddad95c0bddaa64b", + "dist/workers/bootstrap.js": "d009ad4d19d416529107aee829cc747dd86d606bfc20d9f1e28e809e49393722", + "dist/browser/capabilities.js": "11a3e287c12a393c9873597da517286c94a01ee2c21ddb3268d466a8ab08f9fa", + "dist/hosts/browser/capabilities.js": "28545b535f673b319e042f9a80968312358633130bec71655ca4f3b8f4f1ba01", + "dist/api/range/contracts.js": "427a6852d1b4fbc59c12b396120836e73895fb11bee3ec3841f58f9c9f32499d", + "dist/hosts/contracts.js": "427a6852d1b4fbc59c12b396120836e73895fb11bee3ec3841f58f9c9f32499d", + "dist/partition/coordinator.js": "8ba53cb9fb35509798392cf1e946ae1c34b87b8e77f66353575f2456b4d6f7e9", + "dist/tasks/coordinator.js": "162fa73be11a9ac15409a7ab6942d8b872f1772e3acb46b6b53c72c8a3e12ae5", + "dist/composition/create-runtime-components.js": "0580ce6e5825f8c950b4c66d5386e5fafc60ba371738454fb5957a51fb0be751", + "dist/results/credit.js": "5211d1507d79beffeb9e4fb4857afbd9dfa6b665a223cd0cf432021930479e83", + "dist/diagnostics.js": "b84fc4bac1fa2a4554cbc33b8b20f56908a2de8c302e63178c2981bfd185dc08", + "dist/dispatch/dispatcher.js": "521f9e3ce9f94ad06748f17704510c9a95a238c7952a21c309bcfa5dd993f8ab", + "dist/scheduler/fifo.js": "519de082388284939cdc6a2dc01190c5464991f19ecd9c8f716215ae74e60ec5", + "dist/hosts/browser/host.js": "0ddedd6b433935144cc8799e7ef1afe57422361a837ff2de4b1970913a5983c2", + "dist/browser/index.js": "4caf07437a46825fa556a7dde99e483bfc940bd3dcb04754456e4d91df7313df", + "dist/errors/index.js": "344f23c9c3a824c4a5742cc3208da0e76e3f05516edb79492749c092d92568a2", + "dist/index.js": "7c98dcad3823d3054b470e5cf144f8424443df3a1e27cb9ce84280397b142736", + "dist/types/index.js": "827c148a2159c5d098f9fe33185b555382ad63931193dda5f41f6af38a6a4445", + "dist/internal/integer.js": "e30e3850679a0f8e19d3139d8acb1d84a6295322d293137cb2a9917eafc85f36", + "dist/workers/invocations.js": "4089bcdcbe16bc1374b47fe2ca916379419b1660a6ae4dfac8e75948a3a8f52d", + "dist/partition/results/map-assembly.js": "822715808e1aab783f95b481af14050236eadbaeb8c71ec3d4faa93d440e25dc", + "dist/telemetry/metrics.js": "ad6d810e300d1ea100d1230948cb820cab6afcfab05a19d81f8ad3d19ecf2324", + "dist/hosts/node-statistics.js": "553d4068598db001bc7b7a567746a23233104fe9e82ed568a2759d2822d5b9a2", + "dist/hosts/node.js": "e7a303e383b16ce5c4f0b89b1bcb038b3fcf97d113522d41a7e1f0a3c34857f2", + "dist/partition/operation.js": "3ea03974ab402457dabb42e81ca98503198c7fb73e45a9de002df9fa6aa683f7", + "dist/internal/option-spelling.js": "d9916c73b7ec99a821c4a303101af0d5fa9245fb6f1b9698f4bc7eebb8b56303", + "dist/api/range/parallel-for.js": "4834c61228ddf64d5f61227f7d437c9c87d68b4899e12359406e617851f3504c", + "dist/api/range/parallel-map-range.js": "a32458166666ab0869ec0c4b9d3e78f7da5d420863c60044df397431017970b9", + "dist/api/range/partition-range.js": "0c4a1ab2825ca18793470888824485c9e429eb5258cffe5c882e7a96a318894b", + "dist/pool/pool.js": "c6154622709cc75c0faeceda0738cc7459bbf6dd0f8ca9f820eb15b3759a57f6", + "dist/telemetry/profile.js": "2ff1f354516c4b3b18ad72d9743f85ddc411bfba24a2f344442af19f0eeb1874", + "dist/workers/progress.js": "a473a9bc3348e9cd84daf5c5cb1fbc15ce7261a4090c5990e4f80d9737e299e1", + "dist/hosts/browser/protocol.js": "01716b7bfcb954a8d34962a415c0e827b89c3583d8940b5b6db1c5e96211741b", + "dist/workers/protocol.js": "4632d7db60b757624643a8c73f98e4bf215a1472d7ff42a961601167d042f903", + "dist/partition/range.js": "c337bdfe20b39ca9525a7ffaea71e375ce768072fe303cc8e204bf883372acae", + "dist/browser/registry.js": "0df161756108a5403b842eb1f99d2540a360c1969fd15ce101704fc365a9e2a0", + "dist/tasks/registry.js": "84c0ebdfe8bbce6e28f6c41b35304301361e9502605346c6a4f11cee254224ac", + "dist/api/run.js": "fcddeefbaed3182d054160dfd000c123f7d993b3713419a0eb229e4fc8a2aed4", + "dist/lifecycle/runtime-controller.js": "82ab942ddae193336cbb987d3ba195bf296df231f4ba82bde0953794510bf96d", + "dist/runtime-facade.js": "3051560260a95e934f4251bbc17cd465faed52c89a9f373dda973fd0ec461687", + "dist/configuration/runtime-options.js": "813093eb138016665ffed558b58a7ef08c988fd4ff0996cd1ff41a4f41bfeb9c", + "dist/browser/runtime.js": "b78f65346819948f6dce9c5ec3992740a53dfbbd5b5910e338619b8db20e872d", + "dist/runtime.js": "30af765b4048b6e7f8fce9988b7e4a57bb7e70795406c9de52598e1d0b445f07", + "dist/telemetry/runtime.js": "f9aa9aaaa6a497524607111858ff0ab304d262ce2dd73497a994728c7fa59d3c", + "dist/tasks/shared.js": "c5159449868dfd8d89d09886422e97577804ea75da98fd4fa343dd9bf3a3d165", + "dist/telemetry/snapshot.js": "85a67be6f1b8b6754888d1d139c6d70b294df5524ff2a539124be37c53c576ac", + "dist/browser/statistics.js": "004e335a09f19fee053ea2d8b5895de04bd7fcaa4f44802b697defc14034d3e0", + "dist/api/range/stream-range.js": "5ac2ca9f1850b526c16480256012c0cc14b713ffda0a0e426d48e0accf3ca4f2", + "dist/partition/stream.js": "e36287674450b1f8a799fb4a7eddc25566c56c844fcc16200aca438255903fc8", + "dist/tasks/task.js": "058a2c45e24e915dd86989a39da0d72b42d01a54e0f7bb7505f0e04cbc8b6c38", + "dist/tasks/transfer-core.js": "9420897dda54c55fbecd80c032c822f8731f0c50a23d4f366ae0fbe29bde6c18", + "dist/browser/transfer.js": "802fcc1bd1e4b1f1825b1a9fcd27dfd4b7ac69aaef5c5745e9acd47baf904917", + "dist/tasks/transfer.js": "9eba9cec038c1f07c6847ec3d857fc05f961c6e7adaa2b23d8bab246d8316e49", + "dist/browser/types.js": "01ae2a5b120382f9a648ced7ee8507493a134f216d100fc61600c6c9738235d2", + "dist/partition/validation.js": "a1f61bcdcc02844cf79c38e6d283d4c14192458520c60770cee2672bb23aba14", + "dist/hosts/browser/worker-connection.js": "74690c18b2d4774080d35b35159ae1742641b452a2acf3d0ed7f179935f7ee63", + "dist/workers/worker.js": "666eb61ce1485818ed5f4deee43b8f1834c74ece027ccdd1fd90c78274fc1105", + "package.json": "9f117e596ccc447b4bc8bcc7ef02883179d64a3fb977158a0dad8329baff87f3", + "dist/internal/binary-brands.d.ts.map": "b0028eb04b34478377769ca32aeb2610439ce6b0bb57e1215b5118e2f424d9f1", + "dist/internal/binary-brands.js.map": "7b5e56023fbf73829ed51b1f313ea2e48bb61dfdf9005917fb79f8ebadfe7e89", + "dist/partition/binary-core.d.ts.map": "e38dacff8f16ab2637733adc9a04da8258c1ff03dc0a3b47626e970e74a6d7b4", + "dist/partition/binary-core.js.map": "ee15d4a11d6449a999bcda874cc0aa63a9db18f010dd34aef28fa9ec45926316", + "dist/partition/binary.d.ts.map": "b2293ae8e4c390ad866273ab4bb2c0885e692faa8a8d8f27bc9c753ed4f5ae91", + "dist/partition/binary.js.map": "bbadd1793718ea15c46bc14b4f426e2aa71dc702e6452d9a8f042d6957c85369", + "dist/browser/bootstrap.d.ts.map": "6ea3ab2f55317a36dc67249585661a4d6fdd423f9285ae7d2768e765372de0d0", + "dist/workers/bootstrap.d.ts.map": "0c56b103e4b14e120788ae73443838b77025de8cbf720d34a256e3bad3852f2b", + "dist/browser/bootstrap.js.map": "474770aef5fa34d13fc38e8bd93339cfca5d3c325918d1e9dfdcbeb719812830", + "dist/workers/bootstrap.js.map": "ee8d644548afa7d756d192766f293a25bbf054b1b1e2a87fa2feac1204c62f28", + "dist/browser/capabilities.d.ts.map": "c4e65259acdd5085846fd665791ceb0f3d405f780515c4ed317ee232cb873fab", + "dist/hosts/browser/capabilities.d.ts.map": "2d21d1e34b4e1f21fae6bc10cc7b48a2fd7dbb4a8c26d537a5cb3a78e08749cd", + "dist/browser/capabilities.js.map": "ee778b9db422ddb6442c18fb183dba2b416635ab8c697af0571973a363b3cf86", + "dist/hosts/browser/capabilities.js.map": "6e220febd62f2d1477bbd4da89464e5a1c024c2e99cfa7b24ee4d445194acab1", + "dist/api/range/contracts.d.ts.map": "1e450d40fecc87cf2e95af937ba2b9bc86b1fdaf7a0d56b18bc6c25fd5730480", + "dist/hosts/contracts.d.ts.map": "e5c21d1cbd5604c412b1e5436cf46efd95cd07a025a2eecfdeb90c3c285fff5a", + "dist/api/range/contracts.js.map": "f7e711d16dde183661fc200eb8dba7ce8c229b9fa19c30694e11f4ec1151d736", + "dist/hosts/contracts.js.map": "ab524f3b8d7bf897c7949712223c6769806e13ae266a626706c951fe3323afcf", + "dist/partition/coordinator.d.ts.map": "ca6966c8ff068e7c592af9ef967210c82e8d9efaf1dbe562d0adabb80072c55b", + "dist/tasks/coordinator.d.ts.map": "10dc0c6edba12d1e5fe8ac2d3b4497fb57f86fa2a4b6ad443fad73e820006407", + "dist/partition/coordinator.js.map": "2b3dd6ec757810a6d47a39f9181b7702a805534a912a37643e33c708115521a2", + "dist/tasks/coordinator.js.map": "c08f390f60da722363c6047da9b7bfb268e6b0acd1be364020f792c0359f60e1", + "dist/composition/create-runtime-components.d.ts.map": "05fae6d41f8d64279d0334083211d4a3d5a4e6668621812330d573509aeb99d1", + "dist/composition/create-runtime-components.js.map": "0ea03f56958da72c11b4712cae0048fb0f8eb7c4d982da798f07385ddb44eb64", + "dist/results/credit.d.ts.map": "8832024d0df4cd012b6ae66aaf99c8fd05442062896c6f2cb439f3d4b91a3f0d", + "dist/results/credit.js.map": "e2dfad992155077c36ee4a74f80f5d5c26de1faa6f965072e429ac80be7402cb", + "dist/diagnostics.d.ts.map": "de98ae785be2c02b432bc84cf2cb38b0915a47421c74a2b7ee97c2444921efe8", + "dist/diagnostics.js.map": "586767e9755130baa6ae03af82a29b4fa183d42a35cf4e0d21479fe25f97a031", + "dist/dispatch/dispatcher.d.ts.map": "223cc38d6f101c7b76fbeac2c5294f945efc997ec5da1c2b7211e46a94930aa3", + "dist/dispatch/dispatcher.js.map": "197ff6c252f54bdd1e93a9ffe3d09dec9a6c9dcec5e710ed813c07b7edd727f6", + "dist/scheduler/fifo.d.ts.map": "6fe8e2d50f933f1faa6ab451c9a7af3354b817d410bdabdd996a9638c147316d", + "dist/scheduler/fifo.js.map": "f149207d795f44256d0b4e80a3d0180af05dd42e0b3c38a5129f16c432909d47", + "dist/hosts/browser/host.d.ts.map": "b100894182ec195e18a6d7f33d116f3985df46e051f84bb153b483cd414dec07", + "dist/hosts/browser/host.js.map": "e69ae25035365db7f0bcefaeadf9520e972311025ab81c128e053752b574fdb3", + "dist/browser/index.d.ts.map": "6bcb7f4f38aae272dc3033163029d039087651efb7a13ea845d3a01338ab8a34", + "dist/errors/index.d.ts.map": "9050a1da98dbebf784674179b55f923b3fbe0c0aceb50b4d9ea36bf11d137189", + "dist/index.d.ts.map": "f49a1b2dc954186b20dbfd41fe9019157837ed77bcdb3b4a878260681f3cfc0f", + "dist/types/index.d.ts.map": "f770c955116bfddd1d5b29346d1db3f756e221c693f78809897c8074dbe440a5", + "dist/browser/index.js.map": "20222ea852af8ade5701c4afc65546ef0e422b7c6c47669b9fd658d8152dc9f8", + "dist/errors/index.js.map": "bcf276f95330a573faa9906c24502c578b838ddfe40ae0365c9b491a8d5dd9ef", + "dist/index.js.map": "7a364baaac41c80b1acc5aaf40f5313fa281618ce848b87c2b924ea496e4afb2", + "dist/types/index.js.map": "c4ac53ade294b76aa27a4b8b63477beeecc81827655f68f64c9bc4c7bbeeb817", + "dist/internal/integer.d.ts.map": "86197bb7bb9ec384fa9bd02c5b0dab8b3a58212c89af0b5d79c3174df1da22d4", + "dist/internal/integer.js.map": "59ae3e52e096703f2aa46792552ba529418476e4b2a7f5a427c0b68f45b3cea0", + "dist/workers/invocations.d.ts.map": "088618e7da07384eb8a7e3cb5a3a73c04989d6ad68207cb77c40c4f703029d9a", + "dist/workers/invocations.js.map": "79033dc3140a19a42fbc46d85c25a03b91ea3b64408f4c0d46e9358a7fda1e6c", + "dist/partition/results/map-assembly.d.ts.map": "22dc7a1f0312e8c4efdcfde1233648c02e68d8687b1fd2fe8e2c3eb9b91d0e51", + "dist/partition/results/map-assembly.js.map": "343f32335bef5a6eb830aef858e7375aebc75f752cbc53f987b0b7c025b33f12", + "dist/telemetry/metrics.d.ts.map": "4e8c003e673756e906a5903a7e12daa090e8054a11c0aa6d7e1f77b11881a63d", + "dist/telemetry/metrics.js.map": "3685505ab7c2d39173a33726951ba8ba8b6ff7648072283f97f96c81ca5adb1b", + "dist/hosts/node-statistics.d.ts.map": "3911aa9302706d3deb64348527a0491c623d42908976944ba39c6200b442d159", + "dist/hosts/node-statistics.js.map": "b01cfdfff7918c21c3db98984307679684a4f5b135112f4d9fd1830aee34ee9a", + "dist/hosts/node.d.ts.map": "4b6f42763958fd8fb8f8ad923dbf00af75bd205bc87e00eca2f58584b5ee999d", + "dist/hosts/node.js.map": "fc3165b5bb3235718d70868d3d99e087659c941781f8df2ac638843a6eafdfd7", + "dist/partition/operation.d.ts.map": "1c15090462c66a6f9c7a213abb1f095e8adbc4959866d1616f383f44c1040a93", + "dist/partition/operation.js.map": "988a04d986117f3573a39f4b27b66a7de540b552383d39098309f93a9d0e5ec3", + "dist/internal/option-spelling.d.ts.map": "0c0ca031cd9b90c434ca8b95bbb11b7b3a9da2f7324723c921717760bd3dd963", + "dist/internal/option-spelling.js.map": "753bf6a0c52dc79f1049f69b2625c7efb5871ad75cb0c0acad18ef3ddbe6f52c", + "dist/api/range/parallel-for.d.ts.map": "a07f46da2bacb8813254999c304bc23daf9c103f89f9782f44adbb8bf729f251", + "dist/api/range/parallel-for.js.map": "4ff13c73d3860f2c6b537ccf3f1b01ea93587fbde0f7bfd9b9764e25a40b416f", + "dist/api/range/parallel-map-range.d.ts.map": "fd9e4c48fd561484aa1c3760b3fd46c44dfd8eca2d30f9bf5b360b63ad1c1adc", + "dist/api/range/parallel-map-range.js.map": "d733554e54a6b7e31a97b88cff6d7fe6d8004d9501823dfc61d41ce5045462c0", + "dist/api/range/partition-range.d.ts.map": "9ccb7ab4e522f9490f9c5e66b1ec317b7a8dec4e671cce863cce958d8ac4d64c", + "dist/api/range/partition-range.js.map": "489d42475826ef314c1f6c20d2287bf78a8ae9a71fd3d1ccc77125e4c913e61f", + "dist/pool/pool.d.ts.map": "3dba5956597170c1ade0cee4286ed6583a25c84ffea3fef284e600829de110be", + "dist/pool/pool.js.map": "de2d72cca31a82aa70dc81adbc9b59e33d24f98f52e09d104b418eea11312ba9", + "dist/telemetry/profile.d.ts.map": "2f810472eaab5031cccb39eef71d0bdc8aadda583d5c68060f6306a46de12111", + "dist/telemetry/profile.js.map": "43b8490771b46ef7733cff7a23794bd8a552d72ccc139e89e0e0c134a6af4a07", + "dist/workers/progress.d.ts.map": "138a5ed60096cb42eb758579850233139d2fa105bbb3953a75667ed563a4f7c0", + "dist/workers/progress.js.map": "9943deb853e7f4374661ed37d2d886d9b23b9fe88fdb75525ac83d152603d99a", + "dist/hosts/browser/protocol.d.ts.map": "37110ceebc6506df2793af09a9e1f856f9eca1dac09d1ddab772bfc12aaab44a", + "dist/workers/protocol.d.ts.map": "45b2491e8e31280553e7cc5efaaa314258b1263bdf016466b978d26e62427fcb", + "dist/hosts/browser/protocol.js.map": "10459ad4d35c78e5cba3b6f7d8079acca5da5242bada61c6c7a43a9233e06151", + "dist/workers/protocol.js.map": "7d7a402bb7241e8649f2c52e78a88542cdf25a02729b5a53b59d118f2b81613b", + "dist/partition/range.d.ts.map": "bc34a3a45b808f6d8f93ad667d3defdc1d5483bdafb81241b8819e70fc1c072f", + "dist/partition/range.js.map": "a9ad8684f26b5ff0abad82e18532a5d64f800f85023fba9c5a0aaaf269ebe9fe", + "dist/browser/registry.d.ts.map": "cba197ccbf5f18f3e63e87d96280f230b1e311bd5f676a0e32ada0024138bbde", + "dist/tasks/registry.d.ts.map": "3cfa1b24b29ed09e88704c2ad57fb6a647793f1d3b0e6548fdef4f22b2621cd3", + "dist/browser/registry.js.map": "13b14fd397b925acc321ebf9a1bbd21ff62e2c9a9a38f78eec8ae55f62655557", + "dist/tasks/registry.js.map": "3f49df1f69ba4c53377905ae733a6ef00941573760ba7aa7b6b29b7d32e4c1d9", + "dist/api/run.d.ts.map": "3e4173132cacf2a499f594a442c40baee0a42ddc7fd746e4e5e70bb177af581e", + "dist/api/run.js.map": "3b9659bd999eefd15d3544a0c15f74650df2345b3f3dd69607733c62d08cb31a", + "dist/lifecycle/runtime-controller.d.ts.map": "f14414a90fd541cbe225a88e42edab220c1df2f4bc964ede46575a77ab0c83ab", + "dist/lifecycle/runtime-controller.js.map": "daf7cfafd00dce2435a162663a548bc753c80a77115415c4c957e8164b62dfd5", + "dist/runtime-facade.d.ts.map": "825d5b5f153f7a63001a195df574ead5553cee94fa0666ef5ef376835c3187d3", + "dist/runtime-facade.js.map": "07c18c6fecb76f97bd5e4c49f297beee5c71184ee2bbe249b9c2a56e73a41703", + "dist/configuration/runtime-options.d.ts.map": "40785b8f165536eccf97d187b577ad2aa54e60154555fb9f19517927d8d92f66", + "dist/configuration/runtime-options.js.map": "b423c5e1153f0a280ddc0f310754dd3671a6d23e82082d262882fefe7073864b", + "dist/browser/runtime.d.ts.map": "af5c15b98406c6f1d4ee53992ecda4421e852e98c6abf77274cbb81249599c0e", + "dist/runtime.d.ts.map": "961d1db7da1a868040c7c2a954c9aae2d6e2d8ffc4895bc5ed82fcff9b2e3d53", + "dist/telemetry/runtime.d.ts.map": "5803e93417b4077872673c2685d525f6ff060f159a576c5f2d663effa5fbc34d", + "dist/browser/runtime.js.map": "41d717978df48321b59f9882cf5484109e20ce21acf39d3daf230d68422586b7", + "dist/runtime.js.map": "8bc2ad1f64f19e939a78b9fc5bef44fb11206086441c721ccdd148bddac4ee8f", + "dist/telemetry/runtime.js.map": "6ecd28b4fb4e617efa026e213a9a65c5eba69bf68be0dabd90ef97f4c8b42a6f", + "dist/tasks/shared.d.ts.map": "e36097662b4d7efbd7335f6e7c3a955b633649b11a92a7cd801163df055ed359", + "dist/tasks/shared.js.map": "dd5d87d74c815084dac9318cd7bae03a18f3ac1c67454233e04d7d59c3ebb00b", + "dist/telemetry/snapshot.d.ts.map": "70951fa4719ae4ebd7287cf2f1dc312200712c58a0259554294678b3018938e6", + "dist/telemetry/snapshot.js.map": "fbad421af83b7b8ee54063728d12686d0782c91840daef4e9c3b6b6befb145bd", + "dist/browser/statistics.d.ts.map": "81ffe5513caa4c5c46283619e7144c66f2c03e6ff36438ff3fe4fd79d256c02f", + "dist/browser/statistics.js.map": "7b4f18f2e9b40f7ed4db1b2dc47b8ef4f29c6b80e31b18956bddb6236c9df1aa", + "dist/api/range/stream-range.d.ts.map": "02153b1029c6a93773d6d951255cfa9a1aef18c828c42540655a148bcde56e54", + "dist/api/range/stream-range.js.map": "dc5a722b3e72ba01d8ead1f7bd32a220d372cf039adc91d2732e96957126d559", + "dist/partition/stream.d.ts.map": "4936a2c9fc65011f125336c34af778d33bcfb2e59aa2107e1cd668005e43ee9b", + "dist/partition/stream.js.map": "888424697b4b7d8efdef5c4c8d6bd11d2001cf165b379659429d7288928b90f6", + "dist/tasks/task.d.ts.map": "7c448e5d03027a4f773b00cd7ea60c1ad9086b1f779c7712a2b658f8cd9032b5", + "dist/tasks/task.js.map": "428f07462b00248528f498598e77ef959f275c26b7600b8f907cb44620de6df7", + "dist/tasks/transfer-core.d.ts.map": "a581f37cbeca49a79d27a5a3a23cd5d5619774a1efb5ddbba9dcc56ca56ea9d0", + "dist/tasks/transfer-core.js.map": "ab9f7ba21ab360d604819bf22ba7e01cdf9499366326fc0606e6ce3bae2f94da", + "dist/browser/transfer.d.ts.map": "c9537267d11ec70e2436c78216ff5531a3ff1e586e44126772429d7ffc72657d", + "dist/tasks/transfer.d.ts.map": "3c5454c7faf143370adbe819afab6bb2ca18c06cd8c22f374707b545bb59cc57", + "dist/browser/transfer.js.map": "6fbc394b68831d28865f4182d0eaf82ba17ce29bfab66d4783ceaf0cab6f57cd", + "dist/tasks/transfer.js.map": "5f21d973edf415405f1406cf258c1163460cf97aceba3a526fa0ffd55a743918", + "dist/browser/types.d.ts.map": "ef19a4625d3ece2d717d9bb155d8235decc787f356359c62f86232b2c191450b", + "dist/browser/types.js.map": "7507fa1f78d08d201bcafc7581d4ca325fbf4f3f10cf98254454dbf90e55497b", + "dist/partition/validation.d.ts.map": "104a8b5c85946f07eecbe570d60f33c591b8bb329eefb32d9ad03db4d4e0a22b", + "dist/partition/validation.js.map": "e022b3fa84c82f65feb78e6561f95eb143c03100dcfbc63a4ea3fb9ba848bdd3", + "dist/hosts/browser/worker-connection.d.ts.map": "4aa8b5ae30f3f0c7c600f7abd5fc618e5869df7f35e01c74fff90bdd4b143e70", + "dist/hosts/browser/worker-connection.js.map": "77b6ec96750d49a055bb6629d18de7b019487106758c060491dfb05081882eaf", + "dist/workers/worker.d.ts.map": "56eef78709edfaf5d2e4bac0318bf4f47fe1a82ed675b2b2cbea67092bc61875", + "dist/workers/worker.js.map": "23714d43a25b46cd8bdae2da23b8daca8763867a0c18130d46448001dab47cfd", + "README.md": "97fac53fa51a01b1d51acae4b6e2e36aecde1e1703335d73cea42543534c884b", + "dist/internal/binary-brands.d.ts": "0def9e64ee388f27eb8b144d5b512dbc93a46db0eee64cb0679927cef253ed34", + "src/internal/binary-brands.ts": "f5fd696203847170bdaae10a4a79302683337efe628936da02cd7e53378c937e", + "dist/partition/binary-core.d.ts": "af7decd815c52ab389447b086d40284302e7a4f46d0c10a3b9158b768c023b97", + "src/partition/binary-core.ts": "e88bdfcd08fca0f4ffbace8f4e4726c278e16ff6f1cb7da34421889484193000", + "dist/partition/binary.d.ts": "677bbbf6e6ff42821aaa586ce549a17dd0efa5bc59e342e20f843d273b52d56b", + "src/partition/binary.ts": "8d8d9c70691a584888cbaa9c4cc49ea3c9e8680e841c9fd87ca1e6e60cad2508", + "dist/browser/bootstrap.d.ts": "089fbfd7f9aada2383c495bbddcbf2d09578b973df7790d71e455bd6b6f5c04d", + "dist/workers/bootstrap.d.ts": "089fbfd7f9aada2383c495bbddcbf2d09578b973df7790d71e455bd6b6f5c04d", + "src/browser/bootstrap.ts": "f71531f17846a96f62278e748cb75d1a0cf37b7daeb587b3d6498b627908fb55", + "src/workers/bootstrap.ts": "e790a2e5c6dbaf7fd0ea6478a3cd8e6155af14f4acbc90f7769e3b3ebadb0ae3", + "dist/browser/capabilities.d.ts": "2eef9cd69632ac3e15f2bf8f78028e0fed6a548bfd0d2d596bbc6175595df31b", + "dist/hosts/browser/capabilities.d.ts": "d32de45e6c2196da09b21a4a159eaea9b5adc11f63108d69eac79fa6cc55fafc", + "src/browser/capabilities.ts": "cdaa13a3d0ab05c34ca249e9e6a696a858e63c47f8d423b62204b9714ba1a25f", + "src/hosts/browser/capabilities.ts": "0eaf3e81da5ca68e6a00a9bc56d7c94b580a5fd70a74f04c32ce4065c6d767b8", + "dist/api/range/contracts.d.ts": "3c7004b0150f780d9639e799fc1c6f01a21999a8328843f522e93c4eca07310b", + "dist/hosts/contracts.d.ts": "f723ab49a0bd8bdb809d34020381bb7e6f8d76d5e20cc32ee28679b13e0d4f58", + "src/api/range/contracts.ts": "26ec581aaa74a002527235c713cd7d91bc7b4e1faf76f2172f2a915c989f5d42", + "src/hosts/contracts.ts": "d966f68fa2f9ab93335a87765d5d2e14497798f504f56d31b61f75d0ab86e11d", + "dist/partition/coordinator.d.ts": "6dafa9295f3140bd6d990f0cfc1b4fba5c35942b100437b3ccc96b20a8b41bef", + "dist/tasks/coordinator.d.ts": "79683d68106aa1d0dcb187712f5007fe8dc5aae999482469b107d4bc53892a35", + "src/partition/coordinator.ts": "3c01cbaf7c04f857a7a1ce3541c7198b4d3db9731088ed962fa70c51b17a5b24", + "src/tasks/coordinator.ts": "47a41b128e1127ade13f036f66de86eb4fd3a345802d4db2d2469307135680e4", + "dist/composition/create-runtime-components.d.ts": "5120e15381d093df6a5f1b05ea6c1e92072acb0ecf3c687bb75c3cfa349b281c", + "src/composition/create-runtime-components.ts": "0d144e9d145c54498b67ee299e11ac60b35a49bb4b4bbabe570c2bccff330365", + "dist/results/credit.d.ts": "60a3ffbaeca509603e62140816ca9331fa92ba4e9862b21e6cdbee2a12d5b2f2", + "src/results/credit.ts": "3a1828c33c212e8d8ee7da9c79f836e6a75fbb4a569d1307f404a314ff7dac28", + "dist/diagnostics.d.ts": "107afa98bb0a44e15e39bdd065f0de44a8666365cba7b39b8eb61559cdcb3b12", + "src/diagnostics.ts": "793200c01864e3ec8e8e2ab541ab12be12d629243b659898d3da589a758e4ca1", + "dist/dispatch/dispatcher.d.ts": "bb06bb3c4c9a4ac34234f58cdc7a7e4d8696ebb4e3219972eb9e4c263cfd9a3a", + "src/dispatch/dispatcher.ts": "7b796784c1e05465925ac332cd13c85dc5ac069cb3b665f80b763d54589e5998", + "dist/scheduler/fifo.d.ts": "3b5cb86d7ae0c7e74e5bd15302bc8bcecef47c098b021f2e71e5410f50dc0f40", + "src/scheduler/fifo.ts": "1f608d2154ac4ef3e03ad3ccf1d1aac46bb7c1ac920c2e430ec77e799765a7ab", + "dist/hosts/browser/host.d.ts": "24f344bf5cb051ae36b784ff830ac6b7c5847eb298414a2014e5dae32d96b896", + "src/hosts/browser/host.ts": "0df8083883aa5855cbf651e9ca0e1fdc04219aa2b9d3ab42240f449561f64742", + "dist/browser/index.d.ts": "1351c27902358b1b7d18394bfd71b9ea8c1543de204e504a8fe56b3807c8c61e", + "dist/errors/index.d.ts": "24a80aacf18e3587eac13cd59904ac8556af07584edc6be814e3506bab11f67a", + "dist/index.d.ts": "215e7f0e6f76d4653d96c7e7646f17f49987c9324f812360b8475e63af51dd92", + "dist/types/index.d.ts": "63cff19df4c11775c14aac628a5fbc72e03ed4a0ee8a93ecc877a4792a0f2877", + "src/browser/index.ts": "5bb4fb21a6f48df30aefec433612daac8fa9bc0be2672ea6917b6c0022dbcef3", + "src/errors/index.ts": "7b61c3163219b12db19a49c0e0bd7a5454726647b526bc0c3f18a10e6ee42edd", + "src/index.ts": "280f5a51c086f9bf33f7fe7e96757a61fae1ddb45959b66b8db8798f6906bfcb", + "src/types/index.ts": "108ae18b1d76a54be1a7f60dfca732f99b681ffc8e7d131173d389e78765f310", + "dist/internal/integer.d.ts": "5753b8818139e38ce3cca56a5c4418392ff80f87aab5e6cb913f6fbc8f63663d", + "src/internal/integer.ts": "c1d5f34cd7a4d6aa228910e0a7e7f7929e21bea0f84e231d5984a3b7e7d51b6c", + "dist/workers/invocations.d.ts": "38688305f7a29dae9b54420489c92d9b0fc62e1e7463e476c5cb4dd39630cb20", + "src/workers/invocations.ts": "ecb38a57e2b5d862e8092a7a3ca2631d5a54d1ec4c363b9681ca9250a77e49b7", + "dist/partition/results/map-assembly.d.ts": "6bc0d04a8da70f02a7882f284fe5ff3d5bfd91a4195cd08c2cfcc1d0950891ff", + "src/partition/results/map-assembly.ts": "d0355e9c1eb6d54ae41531bcfe93d3000424b399b64785da7b66efca69f7b4a9", + "dist/telemetry/metrics.d.ts": "7145c8861d7e0e90ffa522d535cec3dc8431f4b9a43c5ebfc944d37af2560e74", + "src/telemetry/metrics.ts": "031d1994dd4fec40d50b265f4e59c00dd9348d089d507ed87019bb1fef7b088e", + "dist/hosts/node-statistics.d.ts": "b2aaeee252cf8443af1090d6ee5fb44d7a468f423d6ff1f20273f6b9022c6cd9", + "src/hosts/node-statistics.ts": "c5f3f515e7dd83491c499ac55e69c7031aeaf2154807fc6f6815fd149f4b4f4b", + "dist/hosts/node.d.ts": "7b73a0c4cf69896b993ed4ca2c247be1b64f9047cbd3f81097e20f908be0c617", + "src/hosts/node.ts": "bbebd8187fa39e57580652ce967f12d126565e656e89d3290b5987ff0456c3af", + "dist/partition/operation.d.ts": "beb7256dd1d46d9264abfe73cafd6f171de23eae861e53a6c9373c45e646516d", + "src/partition/operation.ts": "ea2e3eab7f1e9325a69a67a96a45accc24ee300234fbe94c420f43e706729fed", + "dist/internal/option-spelling.d.ts": "a69787f824d0ddbca6f002192de8c55b4fe6c5508cec4819c34f383e2a7f7d2a", + "src/internal/option-spelling.ts": "cf09938f50e539e24380a3e644a64bdb1e9832543b5d0d9525172a4f261cca76", + "dist/api/range/parallel-for.d.ts": "a6ec89459d50b7fe9339894dd8f7a9813e80844b938b3482c4053c81871d9e1f", + "src/api/range/parallel-for.ts": "6aedd0d3740c866035c6bb287c936d8cb10f20fe044acecf39029a48751fbbc3", + "dist/api/range/parallel-map-range.d.ts": "59c5cf7847b046a3bdebc60ae92441df5a506f2cdecb32522bd775225028011a", + "src/api/range/parallel-map-range.ts": "42df79b047476b03fc22ce4abffe7048cec94f635908a8b6a04851ec64a15275", + "dist/api/range/partition-range.d.ts": "462b6cf99a881634eb9037387a53f07a721bf4c8180d1a6e1bac9114f92f97c8", + "src/api/range/partition-range.ts": "72e40023e28d9e8519af152846f7ce2cf8999b93e2021db28c2b7ae890aaa031", + "dist/pool/pool.d.ts": "bbde8d3229b0a88df95e12c66d664fba80a694be4ea81c6f25b254e12ce5f19b", + "src/pool/pool.ts": "b1f804c6908873adf981c21c9bdc35d44fadf30d3cf16e7b1c6b0ba68a57ff6d", + "dist/telemetry/profile.d.ts": "81b3fd387783a87ad070694511582ce17835186a931b80e3604d50fda7403f52", + "src/telemetry/profile.ts": "831b42554f3dcb74a45ae42bdfca5811eab921d8c248986ca1859af26f9496f7", + "dist/workers/progress.d.ts": "1b0c5e3e13b6dbf8876dd934e0ea3aab7bea943c5f7814cdecc463fa5911680d", + "src/workers/progress.ts": "099604c2f89a043ac4aca3de2eed0c96a367803591ff9ff4970a4eb137be92b3", + "dist/hosts/browser/protocol.d.ts": "239defb34a6efdea31e5094a24ddd376c5704255afb646b219f286d5f79c2136", + "dist/workers/protocol.d.ts": "a120716e4dcc59273e991de81ebfd50107f4bb5ebe68587a2cdfa9b7b9432aad", + "src/hosts/browser/protocol.ts": "36b32fbbe9911cc97774c95eafb16cc12a8eeebd8ca010fecd256635b8319d9a", + "src/workers/protocol.ts": "5a20f54aaec353de9c124864f13c86a29af7f9ecf0c0f70bdddf3b63a269b84a", + "dist/partition/range.d.ts": "89a3c8b82626c727120cfe07d740226c0081c32325af111abb7c452e7efe8d32", + "src/partition/range.ts": "37535446c8e295789e8d5cbe0684baf9f665bced6667af2d7623a58f31ca1960", + "dist/browser/registry.d.ts": "f9bedffb5227304fe1148c932902171e8d2d1a3c6a8d3e0af4d7ce2392df1374", + "dist/tasks/registry.d.ts": "298b5cc79b4f83f3330e24fc85c26fd13984ce9b1ba7ccf30e7cb99635175cb6", + "src/browser/registry.ts": "baf7ce5d523ba120d187cfa295e28c1f2bf61b3268730f9a1a65a7dd72e9f4c0", + "src/tasks/registry.ts": "3f5a5d9bad0646a9e4abbb0bc38be6daf91bf5d9fb55ff527c260d03db73e915", + "dist/api/run.d.ts": "23028c95c75df066c0ded70542466680cf4f8e942aa277f59c1593e0baee5449", + "src/api/run.ts": "c91b06e886c3f9b3d6aa46d9a7d1c26275964d6f15e917e9915542b4584e7643", + "dist/lifecycle/runtime-controller.d.ts": "26c689e9e722bd8a3d42f3df6f2196090486e6e19f8129d2e648cc2aadc81139", + "src/lifecycle/runtime-controller.ts": "17e44e9d541e1ade94a899d851ce40e9de6822a42f63bfd9ec4ccc60e34f677e", + "dist/runtime-facade.d.ts": "28dfddef30d443397816fe4791b087fdfb5368f4b5b76c3437477ac659cd7537", + "src/runtime-facade.ts": "738cdfdf14c196305b1f245b864e191b8eb02ad83de44ceee0303d163df014c0", + "dist/configuration/runtime-options.d.ts": "88b97842703a21db0fb61516e2981dd53789f24493799ab3537b54b3d1c05964", + "src/configuration/runtime-options.ts": "9a5bee3b9ca973365384f08db49ace4e9bef6c7dceab26c8979da8b017cdf8f4", + "dist/browser/runtime.d.ts": "1d5256cb4abf6495181c84491a9da0679b5824664bd932615689362328de3767", + "dist/runtime.d.ts": "185f5ee3f3e6c584ecab7300a0b4bdb90fd910841a533039137d909e0765842a", + "dist/telemetry/runtime.d.ts": "34e728588c532657b05b5e431b94495c9a4e9c09f3b8d07a07bebabe6e51fdd3", + "src/browser/runtime.ts": "a0a2202cc7d5825d845d908f70e7ba29184aa7501851e21f4f21bc3cfa13c19d", + "src/runtime.ts": "7f404187cbeb5c490b8652e779fb6e8d9e53edba71d691b5d23ab4f4051e227b", + "src/telemetry/runtime.ts": "9607242110c00b36b5b303bffdf95c575159a89c69303b809686f14d93483dc9", + "dist/tasks/shared.d.ts": "2b5f60e704be1d1b71ab9bc708e01801dbb7517b30fcb588139b98ac3b171b15", + "src/tasks/shared.ts": "617743b86d39db1a23aa601e94d57ce9cb0861f466ba09c34883ad7e2fd2c0fc", + "dist/telemetry/snapshot.d.ts": "fc0c6209ba3eed124608be1f53a872c56099999a769f1f62bf4986c0f987f283", + "src/telemetry/snapshot.ts": "73fc053b52120d16b13c2b69294cf9a7f8fdc6111fa9accbefa6435cfd1da7ff", + "dist/browser/statistics.d.ts": "8f76ce850823ecd9ecc2f5ce75a7a492b921ac3e767241c8e83a2b377f359c26", + "src/browser/statistics.ts": "b2237d75adeab385f84dbee2a8a12bb76f6fd267c813a43b91f1d271b1dd4b60", + "dist/api/range/stream-range.d.ts": "8b415d49e355edeb15612811deb60efd9189e9c5393b36f30270a8992a50a025", + "src/api/range/stream-range.ts": "d2891a04577cf5c2fc0d7c6adec2d47ffd30fc4752580365db0b64c08232610a", + "dist/partition/stream.d.ts": "fc0a493fe9cff1a39f49903ec3e72264731332eb35acba57df0e9dbbbdb41955", + "src/partition/stream.ts": "051903a9debca44f0e872c8abe6a83c7d2f7b2f1b4ef0f05a274ce067410ca91", + "dist/tasks/task.d.ts": "ed4458b91995c578683caacf071d8865e65f3016984904970b9e196b7ca3c895", + "src/tasks/task.ts": "f7cca4218b159998ec285a9978cd3652fb3de672843ce4e3bd8b6a1b3efece81", + "dist/tasks/transfer-core.d.ts": "df967a7974a03640278e012012f8fa86db17c3208e849388b568831430a81ce8", + "src/tasks/transfer-core.ts": "e3b1d4496705da9c84d7dd5cacea343a313fa16c3d1a7caa2711a474f4a225b8", + "dist/browser/transfer.d.ts": "5b36fc3e00983a152472941d9b0dd71ef4c778eae15539e592683b7e8777563e", + "dist/tasks/transfer.d.ts": "c2338a8e38a8d99b96400c524530f6934dd218c003c36756763b76802275f790", + "src/browser/transfer.ts": "02696466fc39bb0d25a64f56065ce07bd1632abd7369ca87f1ef656ee054612a", + "src/tasks/transfer.ts": "c28f8c401e9eb0029a10279111638f37ffe3c591e234baedff4d0d15b05c797f", + "dist/browser/types.d.ts": "3c55c56b7ba42f92882a62be51b8bb3c3662425f470ff57f6ea28b0752911150", + "src/browser/types.ts": "e670dfa4337f150f16df0ef69104a50a1a16713b83a32baa0e8394504f764b01", + "dist/partition/validation.d.ts": "18d0db6c1b07510fe3286517dea9cc4e1d0a6f7444823322e387ab657c15de57", + "src/partition/validation.ts": "bc8bceb089b2204d0acb9f4c7045ce5084cb8fda748d6ea1f0d844c448ef40d6", + "dist/hosts/browser/worker-connection.d.ts": "acf3d25eee2732f5dabf074fd51c0e0fa40aceabfe1fabbbdab27884befa1b96", + "src/hosts/browser/worker-connection.ts": "b32ae7eb2a1b73704f3b494bbea3f9f5661bdb8aa69dd207227df0b36f1ec7c3", + "dist/workers/worker.d.ts": "065aa799be7c48a1043f0897f806817992bc6c864cec1bbb49deb7ff46408d47", + "src/workers/worker.ts": "9dbe65da913ec098f254c7eda6004e6c3104d226f4b194f9c562559128baa44a" + }, + "archiveSha256": "ae3a6daa0a74fc2f71cafbaf6086d7a97d152c2303282ee3266e775979fffc83", + "archiveToolchain": { + "node": "24.22.1", + "npm": "11.19.0", + "platform": "linux", + "arch": "x64" + }, + "inputs": { + ".github/workflows/ci.yml": "39977ad3b8b1c7686890784b86cef26a9b9427bb408495b0efe19d55d1d6e113", + ".github/workflows/publish-npm.yml": "008dc326589397476517cccf27cb95a5b5cd6ac9813abd1e17ab74749ea1e90c", + "README.md": "31768f4338fcbf90af57fabeb40f69ec7d31f15fe056482e2c1fd55115c78b2b", + "docs/release-v1.0.0-rc.5.md": "f3514e3ee5f22ea66377b82e5dc7c74f910d3934c3338210927d8018239e97df", + "docs/releasing.md": "b5415c1b7a4e469d35c098f3ef95297b88b8dece7fc04e48195ae6f39b31bdd9", + "examples/basic-run.mjs": "ceabb3380855bffc8e099a199a338eda134be173479b09d31801f050ce3dac58", + "examples/browser/copy-assets.mjs": "0e4cb6097a6467948fcc62404a11a2a9c88df0531f3a8a53f4c618b1438eeb19", + "examples/browser/host.js": "41528aa31a95829641ea356fa92ff604f648a17b8c9ad3b65c2293c2c9d1c5cf", + "examples/browser/index.html": "114909013d888510ea7a352bdc67ca31c1fc0ff5089542df206cbf36bfd17b3b", + "examples/browser/tasks.js": "9ea596e5b4dfb4ba5fc56993729fec77f8de11f7902ac0860fb33cd0d5b66ee1", + "examples/browser/vite-host.js": "4607b1a66b19a04818aa167407487f1b1e6107f8b06e41c6b7e62cbda9dec660", + "examples/cancellation.mjs": "92c2876a405f774b8704d6f95bcad4cbc9be7ccfe9438490156400b6a58fff90", + "examples/prime-search.mjs": "a944c7b840b72d8187506049b1a10a01109737dd32b6f271199e6aa63593c51f", + "examples/range-work.mjs": "482f2db785d08fd35f5f77b936eae8aeacba4d26d6f5089c98e8d57af216d420", + "examples/shared-input.mjs": "4badb0394fd68c2f6b16c56309408028e984df0ef3130377e2b4c94d86330647", + "examples/streaming-binary.mjs": "fe4753b9ba1ee8736e9be1fff943e4b07e53b31ca5b4cd5feabf03bc9d6bc360", + "examples/tasks.mjs": "9af503ee4af82565a3eb1bc4ce457f8bfd1a96f74fc4e29d3465d81d4b997dcd", + "examples/transfer-task.mjs": "177cb11e4f567a744e65a8a755c79312019e604a52db33605b8ea5b7af8d54d0", + "examples/transfer.mjs": "e69218700f1079affe43387cbcc4c3d383769245253b2f124a677768f95a71cf", + "package-lock.json": "2b1eb8f61489397c45bfcaa2f4f8714d2e76372ac2ae2f4cf3ce51dbbf3a2414", + "package.json": "249bf6eb8420161cf25d33ec48f2e6288fdb14d7edd81203cc5543f948cb3523", + "packages/runtime/package.json": "9f117e596ccc447b4bc8bcc7ef02883179d64a3fb977158a0dad8329baff87f3", + "packages/runtime/tsconfig.browser-worker.json": "8b909455483ba78738fc7416e1c73bf4371f463d222ae588f12c4eca0c3dcda6", + "packages/runtime/tsconfig.browser.json": "49fed3537ef992278c4d660e3b8d3caa9a51e19d80530fe30d3befe45ab7ca91", + "packages/runtime/tsconfig.json": "b60926d0fc960d49f920218c75396faa65796212a96eba7ba05c4066bcafa5b8", + "scripts/api-contract-inventory.mjs": "7b9dade378baf94edb44e41c45e7cbf887f71dd9255b6647c065c5e86cdc8d75", + "scripts/browser/fixtures/cases.js": "70c159c8b92f5c588f8af06368817b4a89b4d0ec1f871b8be9e249ef26f2160d", + "scripts/browser/fixtures/consumer.ts": "c35ba98682c652192ef23f8127f3cf5bc7feb34c6bf6edae7ab9b35157e90be9", + "scripts/browser/fixtures/hanging.js": "f3dbf57b19ec164d1aba2a737b165a6711205476c5282a2ddb76637685d7bedb", + "scripts/browser/fixtures/tasks.js": "aa9c01b6f69822855099c7a16d2e09df5a1847d5107a20006db3f231415ffb88", + "scripts/browser/run.mjs": "2f2ba51b362dc52161beb0e5457ce0b69ab51706f789c4bdf428faae98c5a822", + "scripts/package-consumer/binary.mjs": "58e85f23a2aa1b38e81d951ba88b0f75dfe947128a595992d467ca58157651a9", + "scripts/package-consumer/c2.mjs": "14dc33c9de276f597e2c9e9e047751e127fa26aeceec60bf5c27ad34fcf40274", + "scripts/package-consumer/c3.mjs": "f9b81cd04dd6421f11c7e30cc93bd05645fe160ea519f84b40de68d0a3b6be08", + "scripts/package-consumer/commonjs-consumer.cts": "d3487e2415089b77b9816642849a10f9a66d79c8e8e381547f5b083e5e464c2e", + "scripts/package-consumer/commonjs-default.cjs": "ec9994f909408d9898020f2ad936164472054b12f46800391b7d88e082401e38", + "scripts/package-consumer/commonjs-tasks.cjs": "1115424fb3f5d837fcc0bcf776b72d9251a7bcb52bd35f365cc15ccebdead120", + "scripts/package-consumer/commonjs.cjs": "71991639575351f4ebbf3b521cbb6e12393f2f1f1d9d95ce1597da0a5c233ab0", + "scripts/package-consumer/consumer.ts": "883fc1db1460f8d68a82d3bc483d2387f48528ee75574d89386d54e0b6b2bbe1", + "scripts/package-consumer/containment-tasks.mjs": "786a0aababc1f6fe28770250ff8e15bb6153222fa2eae38628ce106df469dcbd", + "scripts/package-consumer/containment.mjs": "5c1ce00b6ebad1bf05df638e138a9df91278ffbfae531cbf061d743181d3f57e", + "scripts/package-consumer/containment.ts": "e1eb5baf106a2e79e272d414dc504b7511802a99b63dd364af0edaf0ede6d0f4", + "scripts/package-consumer/diagnostics.ts": "16a0b23723945a112995392a9caa457735c9b48c2f4abab76b217b99b1ded48e", + "scripts/package-consumer/esm-consumer.mts": "e8b558e5a90b38ecdf73b81e3a9fda60f3b7044a2ac429c70fe8d9e9ea5b9823", + "scripts/package-consumer/mixed-loading.mjs": "0a80f96a4d7a32a6d982f5dc2be04e4df27be9a0fd24997f536ed7e34d5a4740", + "scripts/package-consumer/smoke.mjs": "0b2d3596e46907b892cbb04d30e8c22821e6f14c078f02778decf202b68c3654", + "scripts/package-consumer/stream.mjs": "113ffd433d5734c48a1a9c930b504d27308e0ff6702ff54eea6319382d4f91a9", + "scripts/package-consumer/task.ts": "3381345766a74d181a54c946ed2caeced7450a4be598fb873fa9980479a7039f", + "scripts/package-consumer/tasks.mjs": "df86f09c8172b256f6d438e55700e4b59722642fe0208d146de0945436fe015c", + "scripts/package-consumer/tsconfig.json": "823d322a424ccddde557a9d9ba615f40a6a418c4df82b38f5a01d3d1acb12d8d", + "scripts/package-consumer/tsconfig.modules.json": "67e92d8a8fc27b01f61b25b71667457f5279fd679f301bb5077ca876cf41cd18", + "scripts/package-consumer/tsconfig.types.json": "8b7d7fca6126d0d07214ebc9a0d0fb148ab72b23bfd81c5d0506a5efe36b0bf3", + "scripts/package-smoke.mjs": "692dd6ecc2b6cc4bbfe5b3ee1e89a7668bd94b19101001b85e77ec187bdad630", + "scripts/rc/README.md": "353c46426dc58824a9cf38ff513b3c30b4fdcea790c27d645fa476a23670e436", + "scripts/rc/api-freeze.mjs": "83c8c90dded588fae0e87e15935487dbd546152276570f5a8051a6ece1356956", + "scripts/rc/artifact.mjs": "e7ecc9c380beaa5f5fe8c7fb16ebf3d4f46fedeb87917f6f8686898e1f17eeba", + "scripts/rc/baseline.mjs": "d624eee936aad37955531e7b3c9e17b2415f772fae7381f96336ee7a8f46c724", + "scripts/rc/baseline.test.mjs": "94749d6ee72c4e2591891803e4142a63bef98f4e4564630faec45214618bf180", + "scripts/rc/consumer.ts": "32dab7a6c76b6a43a2694cf4042b1332c00e483a281e89d96c8f4e8b4326e902", + "scripts/rc/contracts.mjs": "8798bfb36a744e3a04eee59ba551602d5fc86068beb98c61ca88d7580c825d02", + "scripts/rc/frozen-rc3.json": "4f8fccd27a102a27e2dba9179fffa59e25ba72fdd8c0ed571742c3a7544d16d1", + "scripts/rc/frozen-rc4.json": "a77cbb893c1b39123d05c7c4e09aeac95643c65f3a25be6d31d3fea39e6ae55b", + "scripts/rc/frozen-v015.json": "e0a89f0476a23f9cfc28f0830ee6dce73e69a0045a31ed7aa5ee77381c11f1ed", + "scripts/rc/package.mjs": "2f2e95ce6912022769a3b059e7ff4da435ee11c0d3725be5a2c3cde2fd5a46a2", + "scripts/rc/prepare.mjs": "fadec849e86f797f4f188d7660af71b2e49b388e34c4148fb1004fa7a783d018", + "scripts/rc/qualify.mjs": "adf8d181434fce2a8c63b02f23e987224a9ddbd4276aa7de0e139376bf52d724", + "scripts/rc/repro.mjs": "bc021e8899e3af2c4ba1c4e28127014f116cb3550f4876532638179494e8676c", + "scripts/rc/soak.mjs": "6fa4d7dc66bdfbefcea07146e929def1d1186f99d0615b35a9e09e748520445e", + "scripts/rc/tasks.mjs": "35ead9ecdac66d2a1f82472688a5fb06fde8deceb9c3f8c722f43b925659ee4f", + "scripts/release/npm-cli.test.mjs": "fd3eb72c299b1c0e9b9af52ba4283a5f5dc4609a2d09921207bc781202e3ef31", + "scripts/release/npm-release.mjs": "9029ea93dc133278db2cd629b4c0f540ef3b86d79ee1344932087a18ffb3e0f0", + "scripts/release/npm-release.test.mjs": "50c54363269d91dc68f071d2b3ff13a13af6f43a2c9143ea1b722750c5f5f6f0", + "scripts/release/toolchain.json": "0b0426ccc9d1ce5568df062f1aa3c182e06fd9c671e40f51c6f1325a04a36439", + "scripts/release/toolchain.mjs": "0ac8dfe102838775cd79bc694d1c1e5b34a3f8cc3480b3314e10c03722b41491", + "scripts/runtime-qualify.mjs": "3d2a3a0ec4c2ec4f13494efbadb67c2ca3a51dfb50bf6dc119b0ab53200e4df4", + "scripts/test-contracts.mjs": "df9cdbdd4cb4a148ef4fd162518a5dcb42f2d6c8c570f7c8c1afc38f7a11c851" + }, + "releaseToolchain": { + "node": "24.22.1", + "npm": "11.19.0", + "npmTarball": "https://registry.npmjs.org/npm/-/npm-11.19.0.tgz", + "npmIntegrity": "sha512-SDd/hHg3KqHE5Ht2NHWxNYNtqCQ2pXAPLl6OtQhPyED5PHsRfrOtO199MZTIG2cQoQ1ZRI9t28shrD+2cr3AAw==" + }, + "exclusions": [ + "This baseline file (no self-hash)", + "Git commit/tree/tag metadata: receipts bind the actual committed candidate", + "Ignored build outputs, dependencies, caches, receipts and temporary staging outside the packed file inventory", + "Historical research/reports and unpacked documentation not explicitly listed in inputs; existing holds remain unresolved" + ] +} diff --git a/scripts/rc/package.mjs b/scripts/rc/package.mjs index 98ec009..df28a3f 100644 --- a/scripts/rc/package.mjs +++ b/scripts/rc/package.mjs @@ -1,4 +1,5 @@ import assert from 'node:assert/strict'; +import { assertArtifact } from './artifact.mjs'; import { spawnSync } from 'node:child_process'; import { createHash } from 'node:crypto'; import { @@ -16,15 +17,21 @@ import { dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { performance } from 'node:perf_hooks'; import { - baseline, + baselineForWorkspace, assertArguments, assertFrozenFiles, assertFrozenWorkspace, assertFrozenPackage, } from './baseline.mjs'; -assertArguments(['output', 'npm-cli', 'pack-dir']); +assertArguments(['output', 'npm-cli', 'pack-dir', 'tarball']); const root = fileURLToPath(new URL('../../', import.meta.url)); +const runGit = (...args) => { + const r = spawnSync('git', args, { cwd: root, encoding: 'utf8' }); + assert.equal(r.status, 0, r.stderr); + return r.stdout.trim(); +}; +const baseline = baselineForWorkspace(root); assertFrozenWorkspace(root); assertFrozenFiles(root); const arg = (name) => @@ -39,7 +46,14 @@ assert.ok( ); const npmCli = resolve(selectedNpm); const packDir = resolve( - arg('pack-dir') ?? join(root, '.node-tools/rc4/packages', process.version), + arg('pack-dir') ?? + join( + root, + '.node-tools', + baseline.manifest.version, + 'packages', + process.version, + ), ); mkdirSync(packDir, { recursive: true }); const temporary = mkdtempSync(join(tmpdir(), 'PJS RC external with spaces ')); @@ -49,6 +63,8 @@ const unrelated = join(temporary, 'unrelated working directory'); for (const dir of [js, ts, unrelated]) mkdirSync(dir); const report = { schema: 1, + sourceCommit: runGit('rev-parse', 'HEAD'), + sourceTree: runGit('rev-parse', 'HEAD^{tree}'), node: process.version, versions: process.versions, platform: process.platform, @@ -85,37 +101,43 @@ function run(label, args, cwd = root) { return r.stdout; } try { - const dry = JSON.parse( - run('pack dry run', [ - npmCli, - 'pack', - '--workspace', - '@pjavascript/runtime', - '--dry-run', - '--json', - ]), - )[0]; - const packed = JSON.parse( - run('actual pack', [ - npmCli, - 'pack', - '--workspace', - '@pjavascript/runtime', - '--pack-destination', - packDir, - '--json', - ]), - )[0]; + const staged = arg('tarball') ?? process.env.PJS_CANDIDATE_TARBALL; + let packed; + if (staged) packed = assertArtifact(resolve(staged), baseline).packed; + else { + const dry = JSON.parse( + run('pack dry run', [ + npmCli, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--dry-run', + '--json', + ]), + )[0]; + packed = JSON.parse( + run('actual pack', [ + npmCli, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--pack-destination', + packDir, + '--json', + ]), + )[0]; + assert.deepEqual(packed.files, dry.files); + } assert.equal(packed.name, '@pjavascript/runtime'); assert.equal(packed.version, baseline.manifest.version); - assert.deepEqual(packed.files, dry.files); assert.equal(packed.entryCount, Object.keys(baseline.packageFiles).length); assert.ok( packed.files.every((f) => /^(dist\/|src\/|package.json$|README.md$|LICENSE$)/.test(f.path), ), ); - const tarball = join(packDir, packed.filename); + const tarball = staged ? resolve(staged) : join(packDir, packed.filename); + assertArtifact(tarball, baseline); report.tarball = { ...packed, path: tarball, sha256: hash(tarball) }; for (const [name, dir] of [ ['js', js], diff --git a/scripts/rc/prepare.mjs b/scripts/rc/prepare.mjs new file mode 100644 index 0000000..42b4205 --- /dev/null +++ b/scripts/rc/prepare.mjs @@ -0,0 +1,164 @@ +// Explicit preparation command. Validation never imports or calls this writer. +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import { readFileSync, readdirSync, writeFileSync, mkdtempSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import { tmpdir } from 'node:os'; +import { fileURLToPath } from 'node:url'; +import { format, resolveConfig } from 'prettier'; +import { assertArguments, baselineFile } from './baseline.mjs'; +import { namedExports } from './contracts.mjs'; +import { readArtifact, sha256 } from './artifact.mjs'; +import { + releaseToolchain, + assertPublicationToolchain, +} from '../release/toolchain.mjs'; + +assertArguments(['version', 'npm-cli', 'replace']); +const arg = (name) => + process.argv + .find((value) => value.startsWith(`--${name}=`)) + ?.slice(name.length + 3); +const version = arg('version'); +assert.equal( + version, + '1.0.0-rc.5', + 'Preparation may only write the explicitly reviewed RC5 baseline', +); +assert.ok(arg('replace') === undefined || arg('replace') === 'true'); +const root = fileURLToPath(new URL('../../', import.meta.url)); +const cli = arg('npm-cli'); +assert.ok(cli, 'Supply the independently provisioned release npm CLI'); +const npmVersion = execFileSync(process.execPath, [cli, '--version'], { + encoding: 'utf8', +}).trim(); +assertPublicationToolchain(process.versions.node, npmVersion); +for (const path of ['package.json', 'packages/runtime/package.json']) + assert.equal(JSON.parse(readFileSync(join(root, path))).version, version); +const lock = JSON.parse(readFileSync(join(root, 'package-lock.json'))); +for (const v of [ + lock.version, + lock.packages[''].version, + lock.packages['packages/runtime'].version, +]) + assert.equal(v, version); +const inventory = (directory, suffix = '') => + readdirSync(join(root, directory), { recursive: true, withFileTypes: true }) + .filter((entry) => entry.isFile() && entry.name.endsWith(suffix)) + .map((entry) => + relative(root, join(entry.parentPath, entry.name)).replaceAll('\\', '/'), + ) + .sort(); +const hashes = (paths) => + Object.fromEntries( + paths.map((path) => [path, sha256(readFileSync(join(root, path)))]), + ); +const stage = mkdtempSync(join(tmpdir(), 'pjs-rc5-prepare-')); +const [packed] = JSON.parse( + execFileSync( + process.execPath, + [ + cli, + 'pack', + '--workspace', + '@pjavascript/runtime', + '--ignore-scripts', + '--pack-destination', + stage, + '--json', + ], + { cwd: root, encoding: 'utf8' }, + ), +); +const artifact = readArtifact(join(stage, packed.filename)); +assert.equal(artifact.manifest.name, '@pjavascript/runtime'); +const inputs = [ + ...new Set([ + 'package.json', + 'package-lock.json', + 'packages/runtime/package.json', + 'packages/runtime/tsconfig.json', + 'packages/runtime/tsconfig.browser.json', + 'packages/runtime/tsconfig.browser-worker.json', + 'README.md', + 'docs/releasing.md', + 'docs/release-v1.0.0-rc.5.md', + '.github/workflows/ci.yml', + '.github/workflows/publish-npm.yml', + 'scripts/package-smoke.mjs', + 'scripts/runtime-qualify.mjs', + 'scripts/test-contracts.mjs', + 'scripts/api-contract-inventory.mjs', + ...[ + 'scripts/rc', + 'scripts/release', + 'scripts/package-consumer', + 'scripts/browser', + 'examples', + ].flatMap((dir) => inventory(dir)), + ]), +] + .filter((path) => path !== 'scripts/rc/frozen-rc5.json') + .sort(); +const source = 'packages/runtime/'; +const baseline = { + schema: 2, + release: `v${version}`, + previousBaselineFile: 'scripts/rc/frozen-rc4.json', + previousBaselineSha256: sha256( + readFileSync(join(root, 'scripts/rc/frozen-rc4.json')), + ), + contractTests: 476, + namedExports: namedExports(root, 'packages/runtime/src/index.ts'), + runtimeValues: Object.keys( + await import('../../packages/runtime/dist/index.js'), + ).sort(), + browserNamedExports: namedExports( + root, + 'packages/runtime/src/browser/index.ts', + ), + browserRuntimeValues: Object.keys( + await import('../../packages/runtime/dist/browser/index.js'), + ).sort(), + runtimeSource: hashes(inventory('packages/runtime/src', '.ts')), + runtimeTests: hashes(inventory('packages/runtime/test')), + declarations: Object.fromEntries( + Object.entries(hashes(inventory('packages/runtime/dist', '.d.ts'))).map( + ([path, hash]) => [path.slice(source.length), hash], + ), + ), + manifest: artifact.manifest, + packageFiles: artifact.hashes, + archiveSha256: artifact.sha256, + archiveToolchain: { + node: process.versions.node, + npm: npmVersion, + platform: process.platform, + arch: process.arch, + }, + inputs: hashes(inputs), + releaseToolchain, + exclusions: [ + 'This baseline file (no self-hash)', + 'Git commit/tree/tag metadata: receipts bind the actual committed candidate', + 'Ignored build outputs, dependencies, caches, receipts and temporary staging outside the packed file inventory', + 'Historical research/reports and unpacked documentation not explicitly listed in inputs; existing holds remain unresolved', + ], +}; +const output = baselineFile(version); +const formatted = await format(JSON.stringify(baseline), { + ...(await resolveConfig(output)), + parser: 'json', +}); +writeFileSync(output, formatted, { + flag: arg('replace') === 'true' ? 'w' : 'wx', +}); +console.log( + JSON.stringify({ + version, + baseline: baselineFile(version), + preparationTarball: join(stage, packed.filename), + sha256: artifact.sha256, + note: 'Preparation artifact only; qualify a clean committed candidate and stage the reproduced archive before review.', + }), +); diff --git a/scripts/rc/qualify.mjs b/scripts/rc/qualify.mjs index ce2e91f..4dab034 100644 --- a/scripts/rc/qualify.mjs +++ b/scripts/rc/qualify.mjs @@ -10,14 +10,16 @@ import { classifyReleaseNpmVersion, } from '../release/toolchain.mjs'; import { - baseline, + baselineForWorkspace, + baselineFile, assertArguments, assertFrozenWorkspace, } from './baseline.mjs'; -assertArguments(['output', 'npm-cli', 'release-npm-cli', 'profile']); +assertArguments(['output', 'npm-cli', 'release-npm-cli', 'profile', 'tarball']); const root = fileURLToPath(new URL('../../', import.meta.url)); +const baseline = baselineForWorkspace(root); assertFrozenWorkspace(root); const arg = (name, fallback) => process.argv @@ -45,7 +47,10 @@ const profile = arg('profile', 'standard'); const expectedTests = baseline.contractTests; // Additive CD regressions; preserve RC4's immutable historical test count. const convergenceTests = 14; -const expectedReleaseTests = baseline.releaseContractTests + convergenceTests; +const expectedReleaseTests = + baseline.schema === 2 + ? undefined + : baseline.releaseContractTests + convergenceTests; assert.ok(['smoke', 'standard', 'extended'].includes(profile)); const scratch = absoluteOutput + '.parts'; mkdirSync(scratch, { recursive: true }); @@ -70,7 +75,9 @@ const report = { convergence: convergenceTests, expected: expectedReleaseTests, }, - baselineSha256: hash('scripts/rc/frozen-rc4.json'), + baselinePath: baselineFile(baseline.manifest.version), + baselineSha256: hash(baselineFile(baseline.manifest.version)), + sourceTree: git('rev-parse', 'HEAD^{tree}'), startingStatus: git('status', '--short'), node: process.version, nodeExecutable: process.execPath, @@ -119,6 +126,10 @@ function run(label, args, executable = process.execPath) { PJS_NPM_CLI: releaseNpmCli, PJS_NPM_CONTRACT_REPORT: join(scratch, 'npm-dry-run.json'), PJS_CONTRACT_REPORT: join(scratch, 'contracts.json'), + npm_execpath: npmCli, + ...(arg('tarball') + ? { PJS_CANDIDATE_TARBALL: resolve(arg('tarball')) } + : {}), }, }); report.checks.push({ @@ -147,14 +158,11 @@ try { 'scripts/release/npm-cli.test.mjs', 'scripts/rc/baseline.test.mjs', ]); - assert.match( - releaseOutput, - new RegExp(`[ℹ#] tests ${expectedReleaseTests}\\b`), - ); - assert.match( - releaseOutput, - new RegExp(`[ℹ#] pass ${expectedReleaseTests}\\b`), - ); + const releaseCount = Number(releaseOutput.match(/[ℹ#] tests (\d+)\b/)[1]); + if (expectedReleaseTests !== undefined) + assert.equal(releaseCount, expectedReleaseTests); + assert.match(releaseOutput, new RegExp(`[ℹ#] pass ${releaseCount}\\b`)); + report.releaseContracts.executed = releaseCount; assert.match(releaseOutput, /[ℹ#] skipped 0\b/); run('existing package smoke', ['scripts/package-smoke.mjs']); run('test:types', [ @@ -189,7 +197,7 @@ try { run('documentation links', ['scripts/check-docs.mjs']); run('diff --check', ['diff', '--check'], 'git'); report.apiFreeze = JSON.parse( - run('RC4 exact source/declaration/export/manifest freeze', [ + run(`${baseline.release} exact source/declaration/export/manifest freeze`, [ 'scripts/rc/api-freeze.mjs', ]), ); @@ -202,6 +210,7 @@ try { `--npm-cli=${npmCli}`, `--output=${packageOutput}`, `--pack-dir=${join(scratch, 'packed')}`, + ...(arg('tarball') ? [`--tarball=${resolve(arg('tarball'))}`] : []), ], ); report.package = JSON.parse(readFileSync(packageOutput)); @@ -219,7 +228,7 @@ try { 'scripts/release/npm-release.mjs', 'tarball', packMetadata, - join(scratch, 'packed'), + dirname(report.package.tarball.path), baseline.manifest.version, 'next', ], @@ -257,7 +266,9 @@ try { ); assert.equal( report.preservation.rc3BaselineBefore, - baseline.previousBaselineSha256, + baseline.schema === 2 + ? hash('scripts/rc/frozen-rc3.json') + : baseline.previousBaselineSha256, ); assert.equal( git('rev-parse', 'v1.0.0-rc.3'), @@ -279,7 +290,10 @@ try { report.preservation.tagObjectAfter, report.preservation.tagObjectBefore, ); - assert.equal(hash('scripts/rc/frozen-rc4.json'), report.baselineSha256); + assert.equal( + hash(baselineFile(baseline.manifest.version)), + report.baselineSha256, + ); report.endingStatus = git('status', '--short'); assert.equal( report.endingStatus, @@ -294,7 +308,7 @@ try { node: process.version, sourceCommit: report.sourceCommit, tests: expectedTests, - exports: 38, + exports: baseline.namedExports.length, profile, operations: report.soak.operationCounts, }), diff --git a/scripts/rc/repro.mjs b/scripts/rc/repro.mjs index 68c4c3f..5ddc1fc 100644 --- a/scripts/rc/repro.mjs +++ b/scripts/rc/repro.mjs @@ -6,7 +6,11 @@ import { tmpdir } from 'node:os'; import { join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { performance } from 'node:perf_hooks'; -import { assertArguments } from './baseline.mjs'; +import { + assertArguments, + baselineForWorkspace, + assertFrozenWorkspace, +} from './baseline.mjs'; assertArguments([ 'output', @@ -28,6 +32,8 @@ assert.ok( releaseNpmCli, 'Select --release-npm-cli for pinned publication qualification', ); +const baseline = baselineForWorkspace(root); +assertFrozenWorkspace(root, baseline); const candidate = execFileSync('git', ['rev-parse', 'HEAD'], { cwd: root, encoding: 'utf8', @@ -43,6 +49,10 @@ const temporary = mkdtempSync(join(scratchDirectory, 'PJS RC clean states ')); const report = { schema: 1, sourceCommit: candidate, + sourceTree: execFileSync('git', ['rev-parse', 'HEAD^{tree}'], { + cwd: root, + encoding: 'utf8', + }).trim(), node: process.version, versions: process.versions, temporary, @@ -56,7 +66,10 @@ save(); function run(label, executable, args, cwd = root) { console.log('START ' + label); const start = performance.now(); + const env = { ...process.env }; + delete env.PJS_CANDIDATE_TARBALL; const r = spawnSync(executable, args, { + env, cwd, encoding: 'utf8', timeout: 900000, @@ -199,7 +212,8 @@ try { ); report.canonical = { ...report.states[0].package.tarball }; const destination = resolve( - arg('canonical-dir') ?? join(root, '.node-tools/rc4/canonical'), + arg('canonical-dir') ?? + join(root, '.node-tools', baseline.manifest.version, 'canonical'), ); mkdirSync(destination, { recursive: true }); const target = join(destination, report.canonical.filename); @@ -220,6 +234,7 @@ try { JSON.stringify( { sourceCommit: candidate, + sourceTree: report.sourceTree, version: report.canonical.version, baselineSha256: report.states[0].qualification.baselineSha256, filename: report.canonical.filename, diff --git a/scripts/rc/soak.mjs b/scripts/rc/soak.mjs index 62bfb9c..808838d 100644 --- a/scripts/rc/soak.mjs +++ b/scripts/rc/soak.mjs @@ -13,6 +13,7 @@ const { PjsCancelledError, PjsTimeoutError, PjsWorkerError, + PjsExecutionLeaseError, PjsTaskError, PjsQueueFullError, PjsSerializationError, @@ -131,7 +132,7 @@ function create(options = {}) { } function inspect(runtime) { const stats = runtime.stats(); - const credit = runtime.resultCredits; + const credit = runtime.components.resultCredits; return { state: stats.state, tasks: stats.tasks.pending, @@ -152,25 +153,27 @@ function inspect(runtime) { ...credit.creditDiagnostics(), reservedBytes: stats.streamResults.currentReservedResultBytes, buffers: stats.streamResults.buffered, - productionClaims: runtime.dispatcher.admissionReservations, - reservedWorkers: runtime.dispatcher.reservedWorkers.size, + productionClaims: runtime.components.dispatcher.admissionReservations, + reservedWorkers: runtime.components.dispatcher.reservedWorkers.size, }; } function invariant(runtime) { const stats = runtime.stats(); - const credit = runtime.resultCredits; + const credit = runtime.components.resultCredits; const composition = credit.creditDiagnostics(); assert.equal( composition.unreconciledResultBytes + composition.reconciledResultBytes, stats.streamResults.currentReservedResultBytes, ); assert.ok(stats.queue.size <= stats.queue.capacity); - assert.ok(stats.workers.total <= runtime.dispatcher.pool.options.workers); + assert.ok( + stats.workers.total <= runtime.components.dispatcher.pool.options.workers, + ); assert.equal( new Set(stats.workers.details.map((w) => w.id)).size, stats.workers.total, ); - for (const operation of runtime.rangeCoordinator.operations.values()) { + for (const operation of runtime.components.rangeCoordinator.operations.values()) { if (!operation.stream) continue; assert.ok( operation.stream.buffered + operation.children.size <= @@ -214,7 +217,7 @@ async function quiescent(runtime, label) { 'reconciledResultBytes', ]) assert.equal(d[key], 0, `${label}: ${key}`); - assert.equal(runtime.resultCredits.diagnostics().operations, 0); + assert.equal(runtime.components.resultCredits.diagnostics().operations, 0); } async function stop(runtime, label, options) { await runtime.shutdown(options); @@ -225,7 +228,7 @@ async function stop(runtime, label, options) { report.terminals.push({ label, ...d, - creditOperations: runtime.resultCredits.diagnostics().operations, + creditOperations: runtime.components.resultCredits.diagnostics().operations, tasksMetrics: runtime.stats().tasks, partitions: runtime.stats().partitions, }); @@ -711,6 +714,15 @@ try { ); await quiescent(runtime, 'all contract errors cleaned'); assert.equal(await runtime.run(task, { value: 91 }), 91); + // RC5 adds a public lease error; retain the all-exported-errors requirement. + await expectError( + capture(runtime.run(task, { gate: gate() }, { executionLease: 30 })), + PjsExecutionLeaseError, + ); + await quiescent( + runtime, + 'lease failure retains ownership through confirmed exit', + ); for (const badExport of [false, true]) { const registry = new PjsTaskRegistry(); registry.register( @@ -969,7 +981,7 @@ try { const errors = Object.keys(api) .filter((name) => name.endsWith('Error')) .sort(); - assert.equal(errors.length, 12); + assert.equal(errors.length, 13); assert.deepEqual(Object.keys(report.publicErrors).sort(), errors); report.operationCounts = report.terminals.reduce( (sum, t) => ({ diff --git a/scripts/release/npm-release.mjs b/scripts/release/npm-release.mjs index 0c8485e..4e3928c 100644 --- a/scripts/release/npm-release.mjs +++ b/scripts/release/npm-release.mjs @@ -13,7 +13,13 @@ import { basename, join, resolve } from 'node:path'; import { performance } from 'node:perf_hooks'; import { fileURLToPath } from 'node:url'; import { setTimeout as delay } from 'node:timers/promises'; -import { baseline, assertFrozenPackage } from '../rc/baseline.mjs'; +import { + baselineForWorkspace, + loadBaseline, + assertFrozenWorkspace, + assertFrozenFiles, + assertFrozenPackage, +} from '../rc/baseline.mjs'; import { assertSupportedReleaseNpmVersion } from './toolchain.mjs'; export const packageName = '@pjavascript/runtime'; @@ -491,9 +497,10 @@ async function main() { validateManifest(manifest, manifest.version); assert.equal( manifest.version, - baseline.manifest.version, + baselineForWorkspace(root).manifest.version, 'Review a matching release baseline before publication', ); + assertFrozenWorkspace(root); const { version, distTag } = releasePolicy( manifest.version, event.release, @@ -531,6 +538,9 @@ async function main() { } case 'tarball': { const [packJson, directory, version, distTag] = args; + const baseline = loadBaseline(version); + assertFrozenWorkspace(root, baseline); + assertFrozenFiles(root, baseline); assert.equal(distTag, semver.exec(version)?.[4] ? 'next' : 'latest'); const reports = JSON.parse(readFileSync(packJson)); assert.equal(reports.length, 1); @@ -577,6 +587,15 @@ async function main() { ]), ), ); + if (baseline.archiveSha256) + assert.equal( + createHash('sha256').update(readFileSync(tarball)).digest('hex'), + baseline.archiveSha256, + 'Frozen archive SHA-256 mismatch', + ); + const validatedSha256 = createHash('sha256') + .update(readFileSync(tarball)) + .digest('hex'); // Inspect and install the artifact that the workflow will publish; never repack it. const dry = parsePublishDryRunReport( npm([ @@ -596,6 +615,11 @@ async function main() { const sha256 = createHash('sha256') .update(readFileSync(tarball)) .digest('hex'); + assert.equal( + sha256, + validatedSha256, + 'Artifact changed during rehearsal', + ); output('tarball', tarball); output('sha256', sha256); summary( From 2565f5f93c2e1af4558611b43f92f199f4e8bb30 Mon Sep 17 00:00:00 2001 From: Miskovy Date: Wed, 28 Oct 2026 17:23:30 +0300 Subject: [PATCH 2/2] fix(release): resolve absolute selected baseline paths --- scripts/rc/frozen-rc5.json | 2 +- scripts/rc/qualify.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rc/frozen-rc5.json b/scripts/rc/frozen-rc5.json index abb12e0..ace7178 100644 --- a/scripts/rc/frozen-rc5.json +++ b/scripts/rc/frozen-rc5.json @@ -1144,7 +1144,7 @@ "scripts/rc/frozen-v015.json": "e0a89f0476a23f9cfc28f0830ee6dce73e69a0045a31ed7aa5ee77381c11f1ed", "scripts/rc/package.mjs": "2f2e95ce6912022769a3b059e7ff4da435ee11c0d3725be5a2c3cde2fd5a46a2", "scripts/rc/prepare.mjs": "fadec849e86f797f4f188d7660af71b2e49b388e34c4148fb1004fa7a783d018", - "scripts/rc/qualify.mjs": "adf8d181434fce2a8c63b02f23e987224a9ddbd4276aa7de0e139376bf52d724", + "scripts/rc/qualify.mjs": "49a799e5c0d0df2fc1aecd6b926a5181f9b68a6fb24517ce3f01a8c21046a981", "scripts/rc/repro.mjs": "bc021e8899e3af2c4ba1c4e28127014f116cb3550f4876532638179494e8676c", "scripts/rc/soak.mjs": "6fa4d7dc66bdfbefcea07146e929def1d1186f99d0615b35a9e09e748520445e", "scripts/rc/tasks.mjs": "35ead9ecdac66d2a1f82472688a5fb06fde8deceb9c3f8c722f43b925659ee4f", diff --git a/scripts/rc/qualify.mjs b/scripts/rc/qualify.mjs index 4dab034..be9ae50 100644 --- a/scripts/rc/qualify.mjs +++ b/scripts/rc/qualify.mjs @@ -58,7 +58,7 @@ const git = (...args) => execFileSync('git', args, { cwd: root, encoding: 'utf8' }).trim(); const hash = (path) => createHash('sha256') - .update(readFileSync(join(root, path))) + .update(readFileSync(resolve(root, path))) .digest('hex'); const sourceFiles = git('ls-files', 'packages/runtime/src').split('\n'); const testFiles = git('ls-files', 'packages/runtime/test').split('\n');