GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — refactor(server): import Effect services as namespaces by juliusmarminge · Pull Request #14385 · pingdotgg/t3code Conversation
|
| files | imports | |
|---|---|---|
before (base 8297ccf85d) |
135 | 322 |
| after | 5 | 8 |
The 5 remaining files are left alone on purpose, because open PRs are changing them:
src/provider/Drivers/OpenCodeDriver.ts: { ServerConfig }, { ServerSettingsService }, { OpenCodeRuntime }src/provider/Drivers/CodexManagedProvider.ts: { ServerSettingsService }src/provider/Layers/OpenCodeProvider.ts: { OpenCodeRuntime }src/provider/ModelManifest.ts: { ServerConfig }src/provider/Layers/OpenCodeProvider.test.ts: { ServerConfig }, { OpenCodeRuntime }. This file is not on the protected list, but the OpenCode 2 stack (feat(server): detect OpenCode 1.x or 2.x per instance and route by it #14239 and above) edits its import block.A grep for layer as , make as and Live as in this area now finds nothing. The remaining named imports from service modules are pure helpers (for example makeLinuxCgroupController from AcpSessionRuntime.ts, and makeClaudeQueryOptions in a script), which the convention allows.
Non-canonical export names are still referenced through namespaces here. Renaming any of them touches files in open PRs (#5589, #9376, #9635 for the Cursor/Codex/Antigravity ones), so they are left for later:
provider/Layers/CursorSdkCatalog.ts: CursorSdkCatalogLive, makeCursorSdkCatalog, makeCursorSdkCatalogTestLayer (should be layer / make / a test layer)provider/CodexInstallation.ts, provider/AntigravityInstallation.ts: makeCodexInstallation, makeAntigravityInstallation, and the layer exposed only as a static Tag.layer with no module-level layer, so call sites read CodexInstallation.CodexInstallation.layerprovider/acp/AcpRegistryRuntimeCoordinator.ts: the layer is module-private and exposed only through static get layer()provider/acp/AcpRegistrySupport.ts: makeAcpRegistryCatalog. The AcpRegistryCatalog tag lives in a support module and is not named for it.provider/opencodeRuntime.ts (protected): OpenCodeRuntimeLivepersistence/Layers/Sqlite.ts: layerConfig, makeSqlitePersistenceLive, SqlitePersistenceMemorydevice/DeviceService.ts: makeWithHostsclaudeAgentSdkQueryRunnerLiveLayer, codexAppServerClientFactoryFromSettingsLayer, cursorAgentSdkRunnerLiveLayer, UsageLimitRecoveryWorker.workerLive, ProviderAdapterRegistry.makeLayer / layerFromProviderInstanceRegistry*Live / *Layer names without a service tag (runtimeLayer.ts, http.ts route layers, ProviderRegistry.ts / ProviderInstanceRegistryHydration.ts / AcpRegistryCatalog.ts under provider/Layers/, MCP toolkit *HandlersLive). The audit doesn't cover these, and they belong with the export-rename follow-up.provider/Services/* hold the tags while provider/Layers/* hold the implementations, and persistence/Services + persistence/Layers are split the same way. So one service is spread over two modules, against the one-module-per-service convention.layerTest accessors on ServerConfig and ServerSettingsService are still used by files outside this PR (assets, checkpointing, telemetry, textGeneration, workspace tests).cd apps/server && vp exec tsc --noEmit -p .: exit 0, no error TS / warning TS.vp test run on the tests for every touched file, plus ProviderRegistry.test.ts, ProviderInstanceRegistryLive.test.ts, all src/mcp/** tests, ws.test.ts, cli/project.test.ts, and the serverRuntimeStartup/serverLifecycleEvents/serverRuntimeState/serverSettings tests: 103 files, 1359 tests passed. No server.test.ts exists on V2. server.ts layer wiring is covered by tsc, since a missing provide fails the requirements type.vp lint on the 139 touched files: exit 0. The warning set is identical to base (16 pre-existing, 0 new).vp run knip:check: exit 0.vp check, -r test/typecheck, live provider tests (*.live.test.ts).Model: Claude Opus 5.5 (Claude Code)
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t, git, device, scheduling and relay modules Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and remaining modules Covers the src/ root (ws.ts, server.ts and others), integration/, scripts/, and the remaining src directories whose only violations were tag imports of ServerConfig and ServerSettingsService. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This is a large but predominantly mechanical namespace-import refactor with no intended behavior or default changes. Human review is still required because the diff includes authentication/security-related production files, which are treated as sensitive regardless of the narrowness of the edits. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
16d72f4
into
t3code/codex-turn-mapping
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.