Skip to content

Commit 0b80def

Browse files
committed
refactor: route application lifecycle through runtime facts
Moves the canonical `open`, `prepare`, `close` and internal `runtime` descriptors behind package-owned lifecycle bindings admitted from device runtime facts, while daemon request/session policy and public response construction stay put. Based on main, which already carries the boot unit, the parametrized cutover gate and the apps unit. Readiness is package-owned there, so the Apple and Android bindings call ensureAppleReady/ensureAndroidReady rather than a root readiness bag; ensureAppleReady gained an onColdBootStart hook so open keeps warming the runner cache in parallel with a cold boot, and a narrow markBooted port publishes readiness' fresh observation so a flow still makes one simctl listing. Cutover rows take R24-R27, clear of the accepted catalog and the sibling install stack, and cutoverTableDefects rejects a duplicate rule id. Two defects this unit introduced are fixed here rather than shipped: `open <app> <url>` dropped the URL on a first open, and test-IME activation was first fatal on an unobtainable helper and then over-caught. Helper unavailability is a typed non-activation outcome now; fence, lock and post-record failures propagate. The duplication the unit had accumulated is gone: one runtime-admission module instead of five per-command copies, one direct-lifecycle binding factory instead of six hand-rolled packages, one transport-hint predicate, one session finalization path, and no identity-wrapper module.
1 parent c7565cb commit 0b80def

203 files changed

Lines changed: 14076 additions & 5954 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/capture-kit/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@ export {
2626
appLogSessionArtifactsMatch,
2727
assertAppLogSessionArtifacts,
2828
} from './app-log-session-artifacts.ts';
29-
export {
30-
createUnavailablePlatformRuntimeBinding,
31-
createUnavailablePlatformRuntimeFacts,
32-
createUnavailablePlatformRuntimeOwner,
33-
} from './platform-runtime-unavailable.ts';
3429
export { mergeNetworkDumps, readRecentNetworkTrafficFromText } from './network-traffic.ts';

packages/capture-kit/src/platform-runtime-unavailable.test.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)