You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(host): explicit host for configuration reads and one entered runtime store #3794
Part of #3747. Follow-up to #3763 and #3772, which leave two pieces deferred in their PR bodies.
1. Narrow commandHostEnvironment() to command execution
About 60 call sites remain in the root platform-runtime-* files and the platform packages. They read configuration (toolchain and SDK paths, caches, path resolution) through the ambient, AsyncLocalStorage-bound commandHostEnvironment(). The holistic review on the stack decided:
Configuration reads take the host explicitly. Pass it as a parameter, through the runtime deps, or through a port bound at construction.
The ambient lookup is only for host-kit command execution and diagnostics.
Done when:
Every non-test call of commandHostEnvironment() outside host-kit's command execution and diagnostics is replaced by an explicit host.
A test on the daemon route proves configuration is read from the runtime's host and not from the process, when the two differ.
2. One entered runtime store
#3772 moved per-runtime state onto defineRuntimeSlots. Each module still exposes its own handle, collected into runtimeStates.
Required:
Collapse them into one store, entered once per runtime.
Modules declare slots; the runtime owns entry and disposal.
Done when:
No module-level handle or runtimeStates aggregation remains.
The two-runtime isolation tests (Apple runner, Android helper, PNG worker, daemon modules) still pass.
Activity
refactor(host): make the host explicit on contracts and shared test-k…
refactor(host): read Apple platform configuration from an explicit ho…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): make the host explicit on contracts, host-kit and sha…
refactor(host): read Apple platform configuration from an explicit ho…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): make the host explicit on contracts, host-kit and sha…
refactor(host): read Apple platform configuration from an explicit ho…
refactor(host): read Linux, Vega, web and HarmonyOS configuration fro…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): compose platforms with the runtime host at the root (#…
refactor(host): read every configuration value from an explicit host (#…
refactor(platforms): declare helper and runner state as slots of the …
refactor(daemon): enter one runtime store once, at start (#3794)
refactor(root): bind the runner host into the daemon's entered store (#…