Repository navigation
Done
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Description
As the developer who will later extract a host-agnostic core (#13, epic #11),
I want the extension's folders to depend on each other in one direction and pure logic to be free of incidental vscode imports,
so that extracting packages/core later is a move, not a rewrite.
Context (docs/cleanup/host-boundary.md)
179 of 369 files import vscode; only 101 are vscode-free transitively. 9 two-way folder cycles (e.g. code_analysis ↔ servers 6/13 edges, babia_templates ↔ code_analysis 2/21). 22 files build template paths by hand; there is no central resolver, and four server files fall back to a __dirname path that is wrong from the bundle.
Scope (plain cleanup only; anything that introduces host ports belongs to #13)
- Import model/security files directly instead of the
remote_access/collaborationbarrels inservers/runtime/*(≈ 6 files become vscode-free). activeServerRegistryuses a Node emitter instead ofvscode.EventEmitter(event contract unchanged).- One
resolveTemplatePath()used by the 22 call sites; remove or fix the__dirnamefallback; atemplatesRoot()test helper for the 38 tests. - Move UI side effects out of
sessionRegistry.ts(return a status, caller notifies) and thehandleServerActionsimport out ofmultiServerLauncher.ts(coordinated with the server-split story). - Move the pure
commandRegistrytocore/so feature folders stop importingcommands/shared. - A dependency-direction test (folder import matrix) that pins the remaining allowed edges and fails on a new cycle.
Acceptance criteria
- Two-way folder cycles 9 → ≤ 2 (each remaining one documented).
- Transitively vscode-free files 101 → measured increase, recorded in
docs/cleanup/host-boundary.md. - Production bundle behaviour unchanged:
npm test,test:analysisgreen; manual F5 analysis + server start recorded. - No new interface or package is created (that is [Story] Extract a host-agnostic Code-XR core from the VS Code extension #13).
Metadata
Metadata
Assignees
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
Merge pull request #60 from Code-XR-Project/claude/project-thread-n2s…
aMonteSl commentedon Nov 25, 2026
Done in #60, merged into
v1.2.1with CI green on Linux, macOS and Windows.vscode: 97 → 109.test/tooling/folderDependencies.json.core/server, and to [Story] Extract a host-agnostic Code-XR core from the VS Code extension #13 for the event and callback seams.The dependency-direction test now guards against new cycles.
Generated by Claude Code
refactor(src): dissolve the collaboration and remote-access barrels (#55
refactor(src): move the server runtime and registry into core/server (#…