Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(shared): host process references live in a HostProcess module #17641

Mergedjuliusmarmingemerged 1 commit intot3/host-home-directory fromrefs/pull/17641/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

The host process references were named exports of a camelCase @t3tools/shared/hostProcess module (HostProcessPlatform, HostProcessHomeDirectory, …), imported by name. Every other service module in the repo is PascalCase and namespace-imported.

The module is now @t3tools/shared/HostProcess, with short exports used through a namespace import:

import * as HostProcess from "@t3tools/shared/HostProcess";
const home = yield* HostProcess.HomeDirectory;
const isWindows = yield* HostProcess.isWindows;
  • Renamed exports: Platform, Architecture, Hostname, HomeDirectory, Environment, WorkingDirectory, ExecutablePath, Arguments, InvokedAs, IsExecutable, Addresses, UserId, and isWindows (was isHostWindows).
  • Reference keys follow the new module path (@t3tools/shared/HostProcess/<Name>). They're Context.References with defaults and are never persisted, so nothing depends on the old keys.
  • The rewrite is mechanical across 230 files. Typecheck is clean in all 17 affected workspaces, and the touched package and server tests pass.

Stacked on #17628.

🤖 Generated with Claude Code (Claude Opus 5.5, Claude Code harness)

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge added labelsmacroscope-review

    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire—5.0 KiB—6.8 KiB✅
      CodexThread snapshot wire—3.8 KiB—4.9 KiB✅
      CodexLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      CodexLive turn WebSocket decoded—20.9 KiB—29.3 KiB✅
      CodexLive turn messages—2—8✅
      ClaudeTotal thread wire—5.0 KiB—6.8 KiB✅
      ClaudeThread snapshot wire—3.8 KiB—4.9 KiB✅
      ClaudeLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      ClaudeLive turn WebSocket decoded—21.2 KiB—29.3 KiB✅
      ClaudeLive turn messages—2—8✅

      Baseline: unavailable · PR result: 5138598 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 5138598

      Macroscope's review found this PR approvable — This PR consistently renames and reorganizes existing host-process references across the monorepo without changing their defaults or runtime logic. Production consumers, tests, package exports, and tooling are migrated together, with no remaining old references or new product behavior.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. Review in Change Stack →
      ✨ Finishing Touches 💡 1
      🛠️ Fix failing CI checks 💡
      • Commit to this branch
      • Create a new PR

      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR

      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR


      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.
    6. juliusmarminge merged thise308522

    7. juliusmarminge closed this

Sign in to join this conversation.