Skip to content

refactor: extract host process primitives#1134

Merged
thymikee merged 1 commit into
mainfrom
refactor/host-process-primitive
Jul 6, 2026
Merged

refactor: extract host process primitives#1134
thymikee merged 1 commit into
mainfrom
refactor/host-process-primitive

Conversation

@thymikee

@thymikee thymikee commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

Extract shared host process primitives after the managed web browser cleanup landed.

Move daemon identity and takeover checks into a daemon-owned module, keep browser/runner/app-log/trace cleanup policy at the call sites, and migrate matching callers/tests away from process-identity.ts.

Validation

  • pnpm format
  • node ./node_modules/oxfmt/bin/oxfmt --check scripts/clean-daemon.ts
  • pnpm check:quick
  • pnpm build
  • pnpm test:smoke
  • pnpm check:fallow --base origin/main
  • focused migrated Vitest coverage for host-process, daemon-process, web lifecycle, trace cleanup, runner adoption/session, daemon/client metro paths
  • pnpm check:unit full-suite reruns hit the existing Apple status-bar timing/contention failure in src/platforms/apple/core/__tests__/index.test.ts; that file passed in isolation with 96 tests

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.5 MB 1.5 MB +106 B
JS gzip 495.9 kB 496.1 kB +127 B
npm tarball 591.7 kB 591.9 kB +247 B
npm unpacked 2.1 MB 2.1 MB +106 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.1 ms 26.3 ms -0.8 ms
CLI --help 49.9 ms 50.2 ms +0.4 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/record-trace-recording.js -119 B -41 B
dist/src/runner-client.js -15 B +3 B
dist/src/client.js -4 B -3 B
dist/src/internal/daemon.js -4 B -2 B

@thymikee thymikee force-pushed the refactor/host-process-primitive branch from 7ad2ae7 to cc9000d Compare July 6, 2026 15:32
@thymikee thymikee force-pushed the refactor/host-process-primitive branch from cc9000d to 472c98b Compare July 6, 2026 16:57
@thymikee thymikee merged commit 54f6d45 into main Jul 6, 2026
21 checks passed
@thymikee thymikee deleted the refactor/host-process-primitive branch July 6, 2026 17:01
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-06 17:02 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant