@polyengine/runtime 0.3.1 → 0.4.0-pre.g234c440
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/embedder/copy.js
CHANGED
|
@@ -29,7 +29,7 @@ export const COPY_URL = import.meta.url;
|
|
|
29
29
|
* @internal — copy-identity constant for the A9 multi-copy diagnostics; not
|
|
30
30
|
* host-facing.
|
|
31
31
|
*/
|
|
32
|
-
export const RUNTIME_VERSION = "0.
|
|
32
|
+
export const RUNTIME_VERSION = "0.4.0";
|
|
33
33
|
/**
|
|
34
34
|
* Compose a cross-copy diagnostic: what was foreign, which copy is speaking,
|
|
35
35
|
* the census of every copy in the graph, and the by-value remediation.
|
package/esm/task/scheduler.js
CHANGED
|
@@ -194,6 +194,16 @@ export function schedulerSeedForTesting(value) {
|
|
|
194
194
|
seed = value === null ? null : value >>> 0;
|
|
195
195
|
rngState = seed ?? 0;
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Test hook: snapshot the module's current seed without mutating it. Used by
|
|
199
|
+
* the `just sched-seeds` regression guard (sched_seed_guard_test.ts) to
|
|
200
|
+
* confirm `readSeed()` actually picked up `POLYENGINE_SCHED_SEED` from the
|
|
201
|
+
* environment at import time, rather than silently falling back to FIFO for
|
|
202
|
+
* lack of `--allow-env`.
|
|
203
|
+
*/
|
|
204
|
+
export function schedulerSeedSnapshotForTesting() {
|
|
205
|
+
return seed;
|
|
206
|
+
}
|
|
197
207
|
export function schedulerPolicy() {
|
|
198
208
|
return seed === null ? "fifo" : "seeded-shuffle";
|
|
199
209
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyengine/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-pre.g234c440",
|
|
4
4
|
"description": "A WebAssembly Component Model host for JavaScript engines: plan executor, canonical ABI, 0.3 task scheduler, JSPI bridge, and embedder API.",
|
|
5
5
|
"homepage": "https://github.com/polymorph-components/polyengine#readme",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@polyengine/protocol": "^0.
|
|
58
|
+
"@polyengine/protocol": "^0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"_generatedBy": "dnt@0.43.2"
|
|
61
61
|
}
|
package/types/embedder/copy.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const COPY_URL: string;
|
|
|
17
17
|
* @internal — copy-identity constant for the A9 multi-copy diagnostics; not
|
|
18
18
|
* host-facing.
|
|
19
19
|
*/
|
|
20
|
-
export declare const RUNTIME_VERSION = "0.
|
|
20
|
+
export declare const RUNTIME_VERSION = "0.4.0";
|
|
21
21
|
/**
|
|
22
22
|
* Compose a cross-copy diagnostic: what was foreign, which copy is speaking,
|
|
23
23
|
* the census of every copy in the graph, and the by-value remediation.
|
|
@@ -97,6 +97,14 @@ export declare function instancePoisonCause(inst: object): unknown;
|
|
|
97
97
|
export declare function withPoisonCause(inst: object, base: string): string;
|
|
98
98
|
/** Test hook: switch policy at runtime. `null` restores FIFO. */
|
|
99
99
|
export declare function schedulerSeedForTesting(value: number | null): void;
|
|
100
|
+
/**
|
|
101
|
+
* Test hook: snapshot the module's current seed without mutating it. Used by
|
|
102
|
+
* the `just sched-seeds` regression guard (sched_seed_guard_test.ts) to
|
|
103
|
+
* confirm `readSeed()` actually picked up `POLYENGINE_SCHED_SEED` from the
|
|
104
|
+
* environment at import time, rather than silently falling back to FIFO for
|
|
105
|
+
* lack of `--allow-env`.
|
|
106
|
+
*/
|
|
107
|
+
export declare function schedulerSeedSnapshotForTesting(): number | null;
|
|
100
108
|
export declare function schedulerPolicy(): "fifo" | "seeded-shuffle";
|
|
101
109
|
/**
|
|
102
110
|
* Pick one candidate. FIFO (index 0 — candidates are supplied in
|