diff --git a/.claude/docs/AI_WORKFLOWS.md b/.claude/docs/AI_WORKFLOWS.md
index 79fac06a9..8fdf2c13b 100644
--- a/.claude/docs/AI_WORKFLOWS.md
+++ b/.claude/docs/AI_WORKFLOWS.md
@@ -7,7 +7,7 @@
0. **Know the version's scope.** The active version is **v1.2.1, a maintenance release: cleanup, optimization and hygiene, no new features.** Read `V1.2.1_STATUS.md` for the ranked backlog and the baseline numbers. If a task would add user-visible behaviour, it belongs in 1.3.0 — say so instead of quietly widening 1.2.1.
1. **One unit of work per session** — one feature, one bug, one refactor, or one docs/release task. Finish and validate it before starting anything else. **Exception — the v1.2.1 cleanup programme:** there the unit is the *commit*, not the session. One roadmap item = one bisectable commit, a session may land several in roadmap order with the gate run after each, and a red gate ends the session at the last green commit (`cleanup` skill §1).
-2. **Start from `INDEX.md`** and read only the documents mapped to your task type. Do not scan `src/` broadly; `src/code_analysis/` alone is 246 files.
+2. **Start from `INDEX.md`** and read only the documents mapped to your task type. Do not scan `src/` broadly; `src/core/analysis/` and `src/features/analysis/` together are about 120 files.
3. **Distinguish claim levels** in everything you report and write: confirmed (you verified it), self-assessed (a doc claims it), inferred, open question.
4. **Validate before declaring done**: at minimum `npm run test:basic`; plus the narrowest specialized script for the touched area (matrix in `DEVELOPMENT.md`).
5. **End-of-session checklist**:
@@ -21,7 +21,7 @@
1. Read: `ARCHITECTURE.md`, `V1.2.1_STATUS.md` (the active status doc), plus the area doc (`XR_COMPONENTS.md` and/or `PYTHON_ANALYSIS.md`) and any relevant `docs/*.md` feature doc.
2. Check the scope of the active version — 1.2.1 is maintenance only (`V1.2.1_STATUS.md`, `v1.2.1/ROADMAP.md`), so a feature belongs in 1.3.0; `docs/project/ROADMAP_V1.2.0.md` is the historical 1.2.0 plan. Respect scope decisions (e.g., boats/Code City is paused).
-3. Follow the per-feature module convention (`commands/` + `model/` + `runtime|services/` + `views/{items,interactions}`); register commands through the module's registration array consumed by `src/commands/index.ts` (IDs must be unique — `assertUniqueCommandIds` enforces this).
+3. Follow the per-feature module convention (`commands/` + `model/` + `runtime|services/` + `views/{items,interactions}`); register commands through the module's registration array consumed by `src/app/commands/registerAllCommands.ts` (IDs must be unique — `assertUniqueCommandIds` enforces this).
4. If the feature adds metrics or chart dimensions, plan the Python schema ↔ TS validator sync first (`PYTHON_ANALYSIS.md` → field-schema contract).
5. Add tests: unit `.test.cjs` in `test//`; runtime changes under `templates/components/` get a runtime test; consider a manual harness for visual behavior.
6. Validate: narrow test script → `npm run test:basic` → F5 manual flow (`DEVELOPMENT.md`).
@@ -31,7 +31,7 @@
1. Read: `ARCHITECTURE.md` module map to locate the subsystem; the area doc if the bug touches a contract seam.
2. **Reproduce first** — via the narrowest test script or the F5 flow. Write a failing test when feasible (`test//*.test.cjs` or `test/python/`).
-3. Fix at the root cause; do not patch around watchers/session lifecycle without reading `engine/core/analysisSession.ts` + `engine/watchers/` behavior.
+3. Fix at the root cause; do not patch around watchers/session lifecycle without reading `core/analysis/session/analysisSession.ts` + `core/analysis/watchers/` behavior.
4. Validate: the new/affected test + `npm run test:basic`.
5. Update CHANGELOG (Fixed) and, if the bug revealed wrong documentation, correct the doc in the same session.
@@ -52,7 +52,7 @@ Full procedure lives in the **`cleanup` skill** — invoke it. Summary:
1. Confirm scope with the user first if the refactor crosses module boundaries or touches a contract seam (field schema, chart registry, command registration, component injection, SSE keying).
2. Read: `ARCHITECTURE.md` (esp. "cross-module contracts") + the area doc.
3. Refactors must be behavior-neutral: run the full relevant matrix before *and* after (`test:basic`, plus `test:python`/`test:analysis` if analysis is touched, harnesses if runtimes are touched).
-4. Respect known duplication that is historical, not accidental (e.g. `active_servers/views/` vs `views/active_servers/`) — don't "clean up" aggregation wiring without tracing imports.
+4. Respect known duplication that is historical, not accidental (e.g. the two example item factories and click handlers in `features/examples/views/`) — don't "clean up" aggregation wiring without tracing imports.
5. Update `ARCHITECTURE.md` if module responsibilities or seams moved.
## Playbook: documentation update
@@ -66,7 +66,7 @@ Full procedure lives in the **`cleanup` skill** — invoke it. Summary:
1. Read: `V1.2.1_STATUS.md` (entire file), `v1.2.1/ROADMAP.md` (decisions and exit criteria; `docs/project/ROADMAP_V1.2.0.md` holds the historical 1.2.0 ones), `DEVELOPMENT.md` (packaging).
2. Resolve every open verification row in `V1.2.1_STATUS.md` (each has a how-to-verify hint).
-3. Reconcile docs: README "What's New" → the release's content; CHANGELOG `[1.2.1]` → its provisional date moved to the real release date; roadmap statuses; language-count claim fixed against `src/utils/languageMetadata.ts`; rename leftovers.
+3. Reconcile docs: README "What's New" → the release's content; CHANGELOG `[1.2.1]` → its provisional date moved to the real release date; roadmap statuses; language-count claim fixed against `src/core/analysis/languages/languageMetadata.ts`; rename leftovers.
4. Quality gate: `npm run test:all` + `npm run test:analysis` + harnesses for touched runtimes; F5 smoke of the three analysis modes.
5. Package: `npm run package:vsix`; **inspect the VSIX contents** against the package.json `files` allowlist (no `.vscodeignore` exists — the allowlist is the only control). Verify no unintended files ship and nothing required is missing.
6. Respect the pre-release sequence a feature release used (1.2.0: `1.2.0-alpha.1` → … → `rc.1` → stable) — do not jump to stable.
diff --git a/.claude/docs/ARCHITECTURE.md b/.claude/docs/ARCHITECTURE.md
index f0e6d0fd9..ed3690d13 100644
--- a/.claude/docs/ARCHITECTURE.md
+++ b/.claude/docs/ARCHITECTURE.md
@@ -6,36 +6,36 @@
## The one-paragraph summary
-CodeXR is a VS Code extension (~337 TS files) that analyzes source code with a **Python backend** (Lizard metrics, run in a managed virtual environment) and renders the results as **BabiaXR/A-Frame XR scenes** served by **local HTTP/HTTPS servers** with **SSE live-reload**. The extension side is TypeScript; the in-scene runtime is plain JavaScript living in `templates/components/` and injected into generated HTML.
+CodeXR is a VS Code extension (291 TS files under `src/`, in five layers since #55) that analyzes source code with a **Python backend** (Lizard metrics, run in a managed virtual environment) and renders the results as **BabiaXR/A-Frame XR scenes** served by **local HTTP/HTTPS servers** with **SSE live-reload**. The extension side is TypeScript; the in-scene runtime is plain JavaScript living in `templates/components/` and injected into generated HTML.
## Main data flow (the pipeline)
```
User command (context menu / tree / palette)
- └─> src/code_analysis/commands/... (per-mode command handlers)
- └─> engine/launchers/launcherXRAnalysis.ts | launcherLivePanel.ts | launcherVisualizeDOM.ts
- └─> engine/launchers/launchPipeline.ts → creates a UnifiedAnalysisSession
- ├─> engine/utils/executePython.ts → spawns managed venv, runs python/main.py → JSON metrics
- ├─> src/babia_templates/ → validates dimension mapping, fills HTML template
+ └─> src/features/analysis/commands/... (per-mode command handlers)
+ └─> src/core/analysis/launchers/launcherXRAnalysis.ts | launcherLivePanel.ts | launcherVisualizeDOM.ts
+ └─> launchers/launchPipeline.ts → creates a UnifiedAnalysisSession
+ ├─> python/executePython.ts → spawns managed venv, runs python/main.py → JSON metrics
+ ├─> src/core/charts/ → validates dimension mapping, fills HTML template
│ (chart registry + placeholder processing over templates/xr/...)
- ├─> engine/components/customComponents/*ComponentAsset.ts
+ ├─> scene-assets/*ComponentAsset.ts
│ → inlines browser runtimes from templates/components/**/*.js into the HTML
- └─> engine/servers/serverLaunchOrchestrator.ts (+ sessionServerManager)
- └─> src/servers/runtime (HTTP/HTTPS) serves the scene
- └─> registered in src/active_servers → shown in sidebar tree
-Live updates: engine/watchers/* detect file changes → re-run Python →
- engine/servers/sseNotificationManager.ts → src/servers/runtime/sse/SSEManager.ts → browser reloads data
+ └─> session-servers/serverLaunchOrchestrator.ts (+ sessionServerManager)
+ └─> src/core/server (HTTP/HTTPS) serves the scene
+ └─> registered in src/core/server/registry → shown in sidebar tree (src/features/active-servers)
+Live updates: core/analysis/watchers/* detect file changes → re-run Python →
+ core/analysis/session-servers/sseNotificationManager.ts → src/core/server/sse/SSEManager.ts → browser reloads data
```
-Three analysis modes share this pipeline: **XR** (A-Frame scene in browser/headset), **LivePanel** (2D webview panel), **DOM visualization** (HTML DOM structure in XR). Each mode has its own launcher and parser (`engine/parsers/`); one shared requirement processor (`engine/processors/FileRequirementProcessor.ts` → `analysisBootstrap.ts`) loads the templates the mode needs.
+Three analysis modes share this pipeline: **XR** (A-Frame scene in browser/headset), **LivePanel** (2D webview panel), **DOM visualization** (HTML DOM structure in XR). Each mode has its own launcher and parser (`core/analysis/parsers/`); one shared requirement processor (`core/analysis/processors/FileRequirementProcessor.ts` → `analysisBootstrap.ts`) loads the templates the mode needs.
## Activation flow (`src/extension.ts`)
-1. `initializeExtensionContext` + `CodeXRLogger.initialize` (`src/core/`). The logger attaches the "CodeXR" output channel to the vscode-free log sink; everything logged before this (including at module load) was buffered by the sink and is flushed into the channel now.
+1. `initializeExtensionContext` + `CodeXRLogger.initialize` (`src/platform/`). The logger attaches the "CodeXR" output channel to the vscode-free log sink; everything logged before this (including at module load) was buffered by the sink and is flushed into the channel now.
2. Singletons initialized: `AnalysisConfigurationStorage`, `CollaborationProfileManager`, `RemoteAccessManager`, `ServerSettingsManager`, `getActiveServerRegistry()`, `ServerControl`.
-3. `ModularTreeDataProvider` (`src/views/ModularTreeDataProvider.ts`) registered as the single tree view `codexrTree` (one activity-bar container hosts all sections: servers, active servers, examples, visualize data, analyses, python env, visualization settings, learn more). **Collaboration is not a root section**: `CollaborationSectionProvider` is mounted by `ActiveServersSectionProvider` as the nested `COLLABORATION` group (item type `collaboration-group`), so its items — including `Join Remote Session` — render inside `ACTIVE SERVERS`.
-4. `registerAllCommands` (`src/commands/index.ts`) merges command arrays from every feature module and registers them via `CommandBuilder.registerAll`. **`assertUniqueCommandIds` throws on duplicate command IDs** — keep this in mind when adding commands.
-5. `StartupCoordinator` (`src/core/startup/startupCoordinator.ts`, max 3 concurrent) defers heavy work: restore server settings + ensure HTTPS cert pair, init `ServerWatcherIntegration`, init Python env + prefetch XR field schema, clean stale analysis artifacts.
+3. `ModularTreeDataProvider` (`src/app/sidebar/ModularTreeDataProvider.ts`) registered as the single tree view `codexrTree` (one activity-bar container hosts all sections: servers, active servers, examples, visualize data, analyses, python env, visualization settings, learn more). **Collaboration is not a root section**: `CollaborationSectionProvider` is mounted by `ActiveServersSectionProvider` as the nested `COLLABORATION` group (item type `collaboration-group`), so its items — including `Join Remote Session` — render inside `ACTIVE SERVERS`.
+4. `registerAllCommands` (`src/app/commands/registerAllCommands.ts`) merges command arrays from every feature module and registers them via `CommandBuilder.registerAll`. **`assertUniqueCommandIds` throws on duplicate command IDs** — keep this in mind when adding commands.
+5. `StartupCoordinator` (`src/app/startup/startupCoordinator.ts`, max 3 concurrent) defers heavy work: restore server settings + ensure HTTPS cert pair, init `ServerWatcherIntegration`, init Python env + prefetch XR field schema, clean stale analysis artifacts.
`deactivate()` tears down remote access, the active-server registry, the SSE manager + `fileToServerMap`, and the tree provider.
@@ -45,55 +45,60 @@ Three analysis modes share this pipeline: **XR** (A-Frame scene in browser/heads
| Module | Responsibility | Key files |
|---|---|---|
-| `code_analysis/` | **The core (246 files).** Analysis engine, sessions, watchers, Python backend, dependency + historical analysis | `engine/launchers/launcherXRAnalysis.ts`, `engine/core/analysisSession.ts`, `engine/orchestrator` → `analysisOrchestrator.ts` |
-| `code_analysis/engine/` | Pipeline: launchers, parsers, the requirement processor, session servers, watchers, component-asset injection | `launchPipeline.ts`, `servers/sessionServerManager.ts`, `watchers/sessionWatcherManager.ts`, `utils/executePython.ts` |
+| `features/analysis/` | The ANALYSES section: the per-mode analysis commands (file, directory, DOM, clean), the tree and its subsections (active analyses, files/project by language, analysis settings), the workspace scan and the server watcher integration | `commands/analysisCommandRegistrations.ts`, `commands/analysisCommands.ts`, `commands/{file,directory,dom}/`, `views/AnalysisSectionProvider.ts`, `sections/active-analyses/activeAnalysesCommands.ts` (Active Analyses actions and export), `sections/settings/` (one folder per setting; `chartTypeCommandFactory.ts` and the two `shared*SettingCore.ts` at its root), `workspace/workspaceSnapshotService.ts`, `workspace/workspaceFileScanner.ts`, `services/serverWatcherIntegration.ts` |
+| `core/analysis/` | **The analysis engine.** Pipeline: launchers, parsers, the requirement processor, sessions, session servers, watchers, refresh, the Python bridge, the scene-asset injection, the language tables | `analysisOrchestrator.ts`, `launchers/launchPipeline.ts`, `launchers/launcherXRAnalysis.ts`, `session/analysisSession.ts`, `session/sessionRegistry.ts`, `session-servers/sessionServerManager.ts`, `watchers/sessionWatcherManager.ts`, `python/executePython.ts`, `python/xrFieldSchemaService.ts`, `configuration/analysisConfigurationStorage.ts`, `languages/languageMetadata.ts`, `languages/supportedLanguages.ts` |
| `code_analysis/python/` | Python analysis backend (see `PYTHON_ANALYSIS.md`) | `main.py`, `tools/lizard_analyzer.py`, `utils/xr_field_schema.py` |
-| `code_analysis/dependencies/` | Dependency-graph analysis service (see `docs/features/DEPENDENCY_GRAPH_XR.md`) | `DependencyGraphService` *[inferred name from docs]* |
-| `code_analysis/historical/` | Git history: comparator + Project Evolution. Both services compose a `GitAnalysisSessionContext` (catalogue, per-commit payload cache, analyze/exclude) and a `SingleJobGate` (one job at a time, last successful request); `gitAnalysisShared.ts` holds the pure helpers the export core shares | `gitRepositoryService.ts`, `historicalComparisonService.ts`, `projectEvolutionService.ts`, `gitAnalysisSessionContext.ts`, `gitAnalysisShared.ts` |
-| `code_analysis/services/` | Cross-cutting services | `xrFieldSchemaService.ts`, `workspaceSnapshotService.ts`, `serverWatcherIntegration.ts` |
-| `babia_templates/` | Chart template system: registry, models, dimension validation, HTML placeholder processing | `registry/chartRegistry.ts`, `processing/dimensionValidator.ts`, `processing/templateHTMLProcessor.ts` |
-| `babia_examples/` | Bundled BabiaXR demo examples (tree section + launcher) | `runtime/exampleLauncher.ts` |
-| `servers/` | Server **infrastructure**: HTTP/HTTPS, ports, self-signed certs, SSE, collaboration/broadcast signaling | `runtime/httpServer.ts` (façade + composition root), `runtime/httpsServerBase.ts` (state, port search, TLS wiring and delegation shared by `httpsCustomServer.ts`/`httpsDefaultServer.ts`; TLS literal in `httpsTlsOptions.ts`), `runtime/sse/SSEManager.ts`, `runtime/collaboration/collaborationRoomServer.ts`, `runtime/multiServerLauncher.ts` (launch orchestration; `runtime/serverFactory.ts` picks, builds and starts the server class; the toasts after a launch are in `views/interactions/launchNotifications.ts`) |
-| `servers/runtime/http/` | Response helpers (`httpRespond.ts`: free functions `sendJsonResponse`/`sendErrorResponse`/CORS/body reading) + `StaticAssetServer` (pages, MIME, traversal guard, no-store) | `httpRespond.ts`, `staticAssets.ts` |
-| `servers/runtime/remote/` | Remote pairing + authorization: `RemoteAccessPolicy` (request/WS auth, cookie-free allowlist) and `RemotePairingApi` (identity → pair → confirm → browser token exchange, guest page) | `remoteAccessPolicy.ts`, `remotePairingApi.ts`, `pairingPage.ts` |
-| `servers/runtime/ws/` | The WebSocket scaffold the room and the broadcast server share: one path on the shared server's `upgrade` event, authorize-or-destroy, detach; plus the wire constant `DEFAULT_ROOM_ID` | `webSocketEndpoint.ts` |
-| `servers/runtime/collaboration/` | WebSocket room + session descriptor API (`CollaborationSessionApi`: descriptor, avatar model, room id). The room server (`collaborationRoomServer.ts`: connection lifecycle, message routing, membership and roles) is the façade over `roomRegistry.ts` (peer and room maps, broadcast), `roomSharedState.ts` (entities, locks, presence, presenter), `participantIdentity.ts` (names and avatar colours), `roomMessageCodec.ts` (parse/send/normalize) and `roomTypes.ts` | `collaborationRoomServer.ts`, `collaborationSessionApi.ts` |
-| `servers/runtime/broadcast/` | Screen-broadcast signalling (sender/viewer roles, peer-to-peer negotiation, the media relay for viewers P2P cannot reach). The server (`screenBroadcastSignalingServer.ts`) is the façade over `relayPolicy.ts` (who is relayed, the audience told to the sender, per-viewer thinning thresholds), `mediaFrame.ts` (the relay wire format shared with the runtime: header constants, validation, header read) and `broadcastTypes.ts` | `screenBroadcastSignalingServer.ts` |
-| `servers/runtime/analysis/` | Analysis features behind the server: `AnalysisFeatureHost` (capability-gated service construction, refresh wiring, LivePanel SSE notifiers, dispose) + one bridge per feature + the room-message router. Bridges depend on the host; nothing here imports the façade | `analysisFeatureHost.ts`, `analysisMessageRouter.ts`, `dependencyGraphBridge.ts`, `historicalComparisonBridge.ts`, `projectEvolutionBridge.ts`, `analysisBridgeReplies.ts` (the git bridges' shared reference and error replies) |
-| `active_servers/` | Registry + lifecycle of **running** server instances (tree section, stop/open/copy-URL actions) | `registry/activeServerRegistry.ts`, `runtime/serverControl.ts`, `services/serverOpenActions.ts` (open a registered server in the browser or the panel; used by the tree actions and the launch notifications), `views/interactions/handleServerActions.ts` (the tree's server actions; the dialog text is in `serverDetailsFormat.ts`), `services/withServer.ts` (the unknown-id guard every server action shares) |
-| `views/` | The unified sidebar tree: one provider delegating to per-section providers | `ModularTreeDataProvider.ts` (section-item bridge table), `sectionDefinitions.ts` (the eight root sections), `*/items/`, `*/interactions/` |
-| `commands/` | Central command registration aggregator | `index.ts` (`registerAllCommands`, `assertUniqueCommandIds`) |
-| `collaboration/` | Identity/profiles for collaborative sessions (names, avatars) | `CollaborationProfileManager` |
-| `remote_access/` | Cross-network sharing via pinned `cloudflared` Quick Tunnel | `cloudflaredBinaryManager`, `remoteAccessManager`, `remoteSessionAuthority` |
-| `python_env/` | Managed Python virtual environment (create/verify/reinstall + UI state) | `runtime/venvManager.ts` |
-| `visualize_data/` | User-driven "visualize your own JSON" flow | commands + launcher |
-| `visualization_settings/` | Visualization settings (colors, chart config) + color picker | storage + model |
-| `core/` | Extension context, logging, startup coordination | `extensionContext.ts`, `logging/sink.ts` (vscode-free: `getLogger(scope)`, pre-activation buffer, console fallback), `logging/logger.ts` (attaches the output channel, tracks `codeXR.debug.verboseLogs`), `logging/logPolicy.ts`, `startup/startupCoordinator.ts` |
-| `platform/` | Extension-host plumbing with no feature knowledge (the layer `docs/cleanup/src-layout.md` proposes; filled as files move) | `templatePaths.ts` (`resolveTemplatePath`), `commands/commandRegistry.ts` (`ExtensionCommandRegistration`, `assertUniqueCommandIds`: the pure command model every feature imports), `tree/baseInterfaces.ts` (the section-provider contract every sidebar section implements) |
-| `learn_more/` | "Learn more" help section in the tree | commands + views |
-| `utils/` | Shared helpers | `languageMetadata.ts`, `fileToServerMap.ts`, `commandBuilder.ts`, `errorHandler.ts`, `nonceGenerator.ts` |
-
-**Per-feature layout convention** (followed by most modules): `commands/` + `model(s)/` + `runtime/` or `services/` + `views/{items,interactions}` + `registry|storage|state/`. When adding a feature, mirror this pattern.
-
-**Folder dependencies** (story #42): which top-level folder may import which is data in `test/tooling/folderDependencies.json`, checked by `test/tooling/dependencyDirection.test.cjs` (type imports count). A new cross-folder direction fails the gate until it is added there; a new two-way pair also needs a written reason. Five pairs remain, each documented in that file (all inside the server/analysis subsystems: `active_servers`, `servers`, `remote_access`, `code_analysis`). `platform/` and `core/` import no feature folder.
-
-**Barrel policy** (decided 2026-09-18, measured): 82% of the relative imports in `src/` (807 of 981) already name a concrete file, and 32 of the 82 `index.ts` barrels have no importer at all. So: **import the concrete file; do not add a barrel "for symmetry"**. A barrel earns its place only with real fan-in (e.g. `src/views/index.ts`, `src/commands/shared/index.ts`, `engine/components/customComponents/index.ts`). An unimported barrel is dead code and keeps otherwise-dead modules looking referenced.
+| `core/dependencies/` | Dependency-graph analysis service (see `docs/features/DEPENDENCY_GRAPH_XR.md`) | `DependencyGraphService` *[inferred name from docs]* |
+| `core/export/` | Analysis export: the manifest, the package transaction and the Git-revision exporter with its Python worker pool | `exportManifest.ts`, `exportPackageTransaction.ts`, `gitRevisionExporter.ts`, `gitRevisionExportCore.ts`, `gitTimelineBlobAnalyzer.ts` |
+| `core/history/` | Git history: comparator + Project Evolution. Both services compose a `GitAnalysisSessionContext` (catalogue, per-commit payload cache, analyze/exclude) and a `SingleJobGate` (one job at a time, last successful request); `gitAnalysisShared.ts` holds the pure helpers the export core shares | `gitRepositoryService.ts`, `historicalComparisonService.ts`, `projectEvolutionService.ts`, `gitAnalysisSessionContext.ts`, `gitAnalysisShared.ts` |
+| `core/charts/` | Chart template system: registry, models, dimension validation, HTML placeholder processing, the visualization configuration read by every launch | `chartRegistry.ts`, `chartModels.ts`, `xrFieldModels.ts`, `templateCharts.ts`, `chartPresentation.ts`, `getVisualizationConfiguration.ts` (lazy `require` of `settings/settingsAccessors.ts`), `processing/dimensionValidator.ts`, `processing/templateHTMLProcessor.ts`, `processing/templateProcessor.ts`, `processing/placeholders/` |
+| `features/examples/` | Bundled BabiaXR demo examples (tree section + launcher) | `services/exampleLauncher.ts`, `commands/babiaExamplesCommands.ts`, `commands/babiaExamplesCommandRegistrations.ts`, `model/babiaExampleModel.ts`, `views/BabiaExamplesSectionProvider.ts`, `views/babiaExamplesTreeView.ts`, `views/{exampleItems,babiaExampleItems}.ts`, `views/{handleExampleClicks,handleBabiaExampleClicks}.ts` (two factories and two click handlers: a duplication recorded for 1.3.0, src-layout.md §2.1) |
+| `core/server/` | Server **infrastructure**: HTTP/HTTPS, ports, self-signed certs, SSE, collaboration/broadcast signaling, server settings, the running-server registry and its control | `httpServer.ts` (façade + composition root), `httpsServerBase.ts` (state, port search, TLS wiring and delegation shared by `httpsCustomServer.ts`/`httpsDefaultServer.ts`; TLS literal in `httpsTlsOptions.ts`), `sse/SSEManager.ts`, `collaboration/collaborationRoomServer.ts`, `multiServerLauncher.ts` (launch orchestration; `serverFactory.ts` picks, builds and starts the server class; the toasts after a launch are in `features/active-servers/views/launchNotifications.ts`, the one allow-listed upward edge), `launchServerWithFile.ts` (was `servers/runtime/index.ts`), `serverControl.ts`, `serverSettingsManager.ts`, `networkUtils.ts`, `fileToServerMap.ts` |
+| `core/server/registry/` | The running-server registry (stays in core: the analysis engine, the server and two features use it) | `activeServerRegistry.ts`, `activeServerModel.ts`, `serverRegistrar.ts` |
+| `core/server/http/` | Response helpers (`httpRespond.ts`: free functions `sendJsonResponse`/`sendErrorResponse`/CORS/body reading) + `StaticAssetServer` (pages, MIME, traversal guard, no-store) | `httpRespond.ts`, `staticAssets.ts` |
+| `core/server/remote/` | Remote pairing + authorization: `RemoteAccessPolicy` (request/WS auth, cookie-free allowlist) and `RemotePairingApi` (identity → pair → confirm → browser token exchange, guest page) | `remoteAccessPolicy.ts`, `remotePairingApi.ts`, `pairingPage.ts` |
+| `core/server/ws/` | The WebSocket scaffold the room and the broadcast server share: one path on the shared server's `upgrade` event, authorize-or-destroy, detach; plus the wire constant `DEFAULT_ROOM_ID` | `webSocketEndpoint.ts` |
+| `core/server/collaboration/` | WebSocket room + session descriptor API (`CollaborationSessionApi`: descriptor, avatar model, room id). The room server (`collaborationRoomServer.ts`: connection lifecycle, message routing, membership and roles) is the façade over `roomRegistry.ts` (peer and room maps, broadcast), `roomSharedState.ts` (entities, locks, presence, presenter), `participantIdentity.ts` (names and avatar colours), `roomMessageCodec.ts` (parse/send/normalize) and `roomTypes.ts` | `collaborationRoomServer.ts`, `collaborationSessionApi.ts` |
+| `core/server/broadcast/` | Screen-broadcast signalling (sender/viewer roles, peer-to-peer negotiation, the media relay for viewers P2P cannot reach). The server (`screenBroadcastSignalingServer.ts`) is the façade over `relayPolicy.ts` (who is relayed, the audience told to the sender, per-viewer thinning thresholds), `mediaFrame.ts` (the relay wire format shared with the runtime: header constants, validation, header read) and `broadcastTypes.ts` | `screenBroadcastSignalingServer.ts` |
+| `core/server/analysis/` | Analysis features behind the server: `AnalysisFeatureHost` (capability-gated service construction, refresh wiring, LivePanel SSE notifiers, dispose) + one bridge per feature + the room-message router. Bridges depend on the host; nothing here imports the façade | `analysisFeatureHost.ts`, `analysisMessageRouter.ts`, `dependencyGraphBridge.ts`, `historicalComparisonBridge.ts`, `projectEvolutionBridge.ts`, `analysisBridgeReplies.ts` (the git bridges' shared reference and error replies) |
+| `features/active-servers/` | The ACTIVE SERVERS section: the **running** servers' tree and actions (stop/open/copy-URL), the preview renderer and the launch toasts; the registry and `serverControl.ts` are in `core/server/` | `views/ActiveServersSectionProvider.ts`, `views/activeServerItems.ts`, `views/handleServerActions.ts` (the tree's server actions; the dialog text is in `serverDetailsFormat.ts`), `views/launchNotifications.ts`, `services/serverOpenActions.ts` (open a registered server in the browser or the panel; used by the tree actions and the launch notifications), `services/withServer.ts` (the unknown-id guard every server action shares), `services/previewRenderer.ts`, `commands/activeServersCommands.ts`, `commands/activeServersCommandRegistrations.ts` |
+| `features/servers/` | The SERVERS section: server configuration commands and tree | `commands/serverCommands.ts`, `commands/serverCommandRegistrations.ts`, `views/ServersSectionProvider.ts`, `views/serverItems.ts`, `views/configurationItems.ts`, `views/handleConfigurationClicks.ts` |
+| `app/` | The composition root under `extension.ts`: the one command aggregator, the unified sidebar tree and the deferred startup work. The only layer that may import every feature | `commands/registerAllCommands.ts` (`registerAllCommands`; `assertUniqueCommandIds` is in `platform/commands/commandRegistry.ts`), `commands/generalCommands.ts`, `sidebar/ModularTreeDataProvider.ts` (section-item bridge table with the eight lazy `require()`s), `sidebar/sectionDefinitions.ts` (the eight root sections), `sidebar/sectionChild.ts`, `sidebar/commonCommands.ts`, `startup/startupCoordinator.ts` |
+| `core/collaboration/` | Identity/profiles for collaborative sessions (names, avatars), used by the server and two features | `collaborationProfileManager.ts`, `collaborationProfile.ts`, `anonymousName.ts`, `connectedParticipant.ts` |
+| `features/collaboration/` | The collaboration commands and the COLLABORATION tree group (nested inside ACTIVE SERVERS) | `commands/collaborationCommands.ts`, `views/CollaborationSectionProvider.ts`, `views/collaborationItems.ts` |
+| `core/remote-access/` | Cross-network sharing via pinned `cloudflared` Quick Tunnel (no sidebar section of its own) | `cloudflaredBinaryManager.ts`, `remoteAccessManager.ts`, `remoteSessionAuthority.ts`, `remoteAccessModel.ts` |
+| `core/python-env/` | Managed Python virtual environment (create/verify/reinstall + UI state); used by the analysis engine and the git export | `venvManager.ts`, `pythonPackageManifest.ts`, `pythonEnvStorage.ts`, `pythonEnvUtils.ts`, `pythonEnvUiState.ts` |
+| `features/python-env/` | The Python-environment commands and sidebar section | `commands/pythonEnvCommands.ts`, `commands/pythonEnvCommandRegistrations.ts`, `views/PythonEnvSectionProvider.ts`, `views/pythonEnvItems.ts` |
+| `features/visualize-data/` | User-driven "visualize your own JSON" flow | `commands/visualizeDataCommands.ts`, `commands/visualizeDataCommandRegistrations.ts`, `model/visualizeDataModel.ts`, `model/visualizeDataState.ts`, `services/visualizationLauncher.ts`, `services/visualizationRestorer.ts`, `services/jsonFieldAnalyzer.ts`, `views/VisualizeDataSectionProvider.ts`, `views/visualizeDataItems.ts` (item factory), `views/visualizeDataSectionItems.ts` (section adapter) |
+| `core/charts/settings/` | The visualization-settings store (palette, environment, colours) that the chart pipeline reads | `settingsModel.ts`, `settingsStorage.ts`, `settingsFile.ts`, `settingsAccessors.ts` |
+| `features/visualization-settings/` | The visualization-settings commands, sidebar section and colour picker | `commands/visualizationSettingsCommands.ts`, `commands/visualizationSettingsCommandRegistrations.ts`, `views/VisualizationSettingsSectionProvider.ts`, `views/visualizationSettingsItems.ts` (item factory), `views/visualizationSettingsSectionItems.ts` (section adapter), `views/handleSettingsInteraction.ts`, `views/colorPickerUtils.ts`, `views/dynamicColorIconGenerator.ts` |
+| `platform/` | Extension-host plumbing with no feature knowledge (the layer `docs/cleanup/src-layout.md` proposes; filled as files move) | `extensionContext.ts`, `logging/sink.ts` (vscode-free: `getLogger(scope)`, pre-activation buffer, console fallback), `logging/logger.ts` (attaches the output channel, tracks `codeXR.debug.verboseLogs`), `logging/logPolicy.ts`, `templatePaths.ts` (`resolveTemplatePath`), `commands/commandRegistry.ts` (`ExtensionCommandRegistration`, `assertUniqueCommandIds`: the pure command model every feature imports), `commands/commandBuilder.ts`, `tree/baseInterfaces.ts` (the section-provider contract every sidebar section implements), `ui/errorHandler.ts`, `ui/detailDialog.ts`, `webview/panelManager.ts` (the `serverId → WebviewPanel` registry) |
+| `shared/` | Helpers with no VS Code and no domain | `nonceGenerator.ts` |
+| `features/learn-more/` | "Learn more" help section in the tree | `commands/learnMoreCommands.ts`, `commands/learnMoreCommandRegistrations.ts`, `views/LearnMoreSectionProvider.ts`, `views/learnMoreItems.ts`, `views/handleLearnMoreClicks.ts` |
+
+**Layout** (story #55, `docs/cleanup/src-layout.md` §3; pinned by `test/tooling/srcLayout.test.cjs`): `src/` holds `extension.ts` and five layers, `app/` (composition root) → `features/` (one folder per sidebar section) → `core/` (the engine, one folder per domain) → `platform/` (VS Code host plumbing, no feature knowledge) → `shared/` (no VS Code, no domain). Folder names are kebab-case; `core/` and `features/` hold folders only; there are no re-export barrels.
+
+**Per-feature layout convention**: `features//` has `commands/` (`Commands.ts`, the handlers, and `CommandRegistrations.ts`, the registration array `app/commands/registerAllCommands.ts` collects), `views/` (the `*SectionProvider.ts`, item factories and click handlers, flat), and where needed `services/`, `model/`, `runtime/`. A section with subsections nests them under `sections//` (see `features/analysis/`). Engine code that more than one feature, the servers or the analysis pipeline uses goes in `core//`, not in a feature. When adding a feature, mirror this pattern.
+
+**Folder dependencies** (stories #42, #55): which folder may import which is data in `test/tooling/folderDependencies.json`, checked by `test/tooling/dependencyDirection.test.cjs` (type imports count). A folder is the first directory under `src/`, or the first two under `core/` and `features/` (`twoLevelAreas`); the same file holds the layer order `app → features → core → platform → shared` (`layers`), which the test enforces (no upward edge, no feature importing another feature) except for the reasoned entries in `layerExceptions`. A new cross-folder direction fails the gate until it is added there; a new two-way pair also needs a written reason. The remaining pairs are each documented in that file (all inside the server/analysis subsystems: `core/server`, `core/remote-access`, `core/analysis` with `core/history`, plus `core/server`/`features/active-servers`, which is the one allow-listed upward edge). `platform/` imports no feature folder, and `core/` none besides that edge.
+
+**Barrel policy** (decided 2026-09-18, measured): 82% of the relative imports in `src/` (807 of 981) already name a concrete file, and 32 of the 82 `index.ts` barrels have no importer at all. So: **import the concrete file; do not add a barrel "for symmetry"**. An unimported barrel is dead code and keeps otherwise-dead modules looking referenced. Story #55 (batch 0) dissolved every re-export barrel that was left: `src/` has none, and the two `index.ts` files that held code are renamed in the move.
**Export convention**: export what another file or a test consumes. A symbol used only inside its own file does not need `export`; an exported symbol with no consumer anywhere in `src/` **and** `test/` is dead (tests load compiled code from `out/`, so a test-only consumer counts as a consumer).
-Note: there is some historical duplication — e.g. `active_servers/views/` **and** `views/active_servers/`. The `src/views/` tree and `src/commands/index.ts` are the current *aggregation points*; per-module `views/`/`commands/` folders are the feature implementations they pull from. *[inferred from import wiring]*
+Note: before #55 a feature was split between a feature folder and `views//` (e.g. `active_servers/views/` **and** `views/active_servers/`); the moves put both halves in `features//views/`. `src/app/sidebar/` and `src/app/commands/registerAllCommands.ts` are the current *aggregation points*; per-module `views/`/`commands/` folders are the feature implementations they pull from. *[inferred from import wiring]*
## Cross-module contracts (the seams that matter)
-1. **XR field schema**: Python defines analyzable fields in `code_analysis/python/utils/xr_field_schema.py`; TypeScript consumes it via `code_analysis/services/xrFieldSchemaService.ts` (backed by `main.py --mode schema`). Dimension-mapping validation in `babia_templates/processing/dimensionValidator.ts` checks user mappings against this schema. **Changing metrics on the Python side requires keeping this schema in sync.**
-2. **Chart registry**: `babia_templates/registry/chartRegistry.ts` (`BabiaChartRegistry` singleton) is the source of truth for available chart types and their dimension requirements.
-3. **File ↔ server mapping**: `src/utils/fileToServerMap.ts` links analyzed files to the server instance serving their visualization; SSE clients are keyed by file URI in `SSEManager`.
-4. **Component-asset injection**: TS files in `code_analysis/engine/components/customComponents/*ComponentAsset.ts` read runtime JS from `templates/components/` and inline it into generated HTML. A runtime shipped as one file is a row of the `SINGLE_FILE_RUNTIME_ASSETS` descriptor table in `customComponents/singleFileRuntimeAssets.ts` (output name, folder, refusal label), and its `*ComponentAsset.ts` is a thin wrapper keeping the named exports; multi-part runtimes go through `runtimeAssembly.ts`. The browser runtimes never import TS code; the contract is the injected globals and entity schemas (see `templates/components/COMPONENTS.md`).
-5. **Command registration**: every module exports a command-registration array consumed by `src/commands/index.ts`. Command IDs use prefixes `codeXR.*` / `codexr.*` (both exist — check before adding).
+1. **XR field schema**: Python defines analyzable fields in `code_analysis/python/utils/xr_field_schema.py`; TypeScript consumes it via `core/analysis/python/xrFieldSchemaService.ts` (backed by `main.py --mode schema`). Dimension-mapping validation in `core/charts/processing/dimensionValidator.ts` checks user mappings against this schema. **Changing metrics on the Python side requires keeping this schema in sync.**
+2. **Chart registry**: `core/charts/chartRegistry.ts` (`BabiaChartRegistry` singleton) is the source of truth for available chart types and their dimension requirements.
+3. **File ↔ server mapping**: `src/core/server/fileToServerMap.ts` links analyzed files to the server instance serving their visualization; SSE clients are keyed by file URI in `SSEManager`.
+4. **Component-asset injection**: TS files in `core/analysis/scene-assets/*ComponentAsset.ts` read runtime JS from `templates/components/` and inline it into generated HTML. A runtime shipped as one file is a row of the `SINGLE_FILE_RUNTIME_ASSETS` descriptor table in `scene-assets/singleFileRuntimeAssets.ts` (output name, folder, refusal label), and its `*ComponentAsset.ts` is a thin wrapper keeping the named exports; multi-part runtimes go through `runtimeAssembly.ts`. The browser runtimes never import TS code; the contract is the injected globals and entity schemas (see `templates/components/COMPONENTS.md`).
+5. **Command registration**: every module exports a command-registration array consumed by `src/app/commands/registerAllCommands.ts`. Command IDs use prefixes `codeXR.*` / `codexr.*` (both exist — check before adding).
## Logging (since 1.2.1)
-Every diagnostic of the extension host goes through `src/core/logging`. A module logs with `const logger = getLogger('SCOPE')` from `core/logging/sink.ts`, which has no `vscode` import, so any module (and any unit test that loads it from `out/` without the fake vscode) can log. Lines land in the **CodeXR** output channel as `[ISO time] [LEVEL] [SCOPE] message`, with an optional metadata line (an Error's stack, a string, or JSON).
+Every diagnostic of the extension host goes through `src/platform/logging`. A module logs with `const logger = getLogger('SCOPE')` from `platform/logging/sink.ts`, which has no `vscode` import, so any module (and any unit test that loads it from `out/` without the fake vscode) can log. Lines land in the **CodeXR** output channel as `[ISO time] [LEVEL] [SCOPE] message`, with an optional metadata line (an Error's stack, a string, or JSON).
- **Levels.** `warn` and `error` are always written. `debug` and `info` are written only in development mode or with `codeXR.debug.verboseLogs` on (`logPolicy.ts`). Anything carrying a file system path is `debug`, passed lazily (`logger.debug(() => ...)`), so it costs nothing while verbose logging is off. A caught failure is reported at `warn` or `error`, never only at `debug`.
- **Before activation** the sink keeps up to 1,000 lines in a buffer and flushes them through the level policy when `CodeXRLogger.initialize` attaches the channel; while no channel is attached (and after it is disposed), `warn`/`error` are also echoed to the console.
@@ -115,6 +120,6 @@ Every diagnostic of the extension host goes through `src/core/logging`. A module
## How future agents should use this document
-- Use the module map to jump straight to the right folder instead of scanning `src/` (`code_analysis/` alone is 246 files).
+- Use the module map to jump straight to the right folder instead of scanning `src/` (`core/analysis/` and `features/analysis/` together are about 120 files).
- Use the "cross-module contracts" section to know what else must change when you touch a seam (especially Python metrics ↔ field schema ↔ dimension validation).
- For feature-specific depth (dependency graph, historical comparison, project evolution, remote access), read the existing docs in `docs/` — this file deliberately does not duplicate them. See `INDEX.md` for the task → docs mapping.
diff --git a/.claude/docs/DEVELOPMENT.md b/.claude/docs/DEVELOPMENT.md
index cfbe14dba..d2f1fe2c4 100644
--- a/.claude/docs/DEVELOPMENT.md
+++ b/.claude/docs/DEVELOPMENT.md
@@ -20,7 +20,7 @@
| `npm run compile:dev-host` | `compile` + `scripts/prepare-dev-extension.mjs` → stages an isolated dev copy under `.vscode-test/dev-extension` | Used automatically by the primary F5 launch config |
| `npm run watch` | webpack watch mode | Iterating on TS changes |
| `npm run typecheck` | `tsc --noEmit` (non-incremental) over the whole project with `tsconfig.check.json`, which extends `tsconfig.json` and adds `noUnusedLocals`, `noFallthroughCasesInSwitch`, `noImplicitReturns` and `noUnusedParameters` (an unused parameter kept for a signature is named `_x`). `compile`, `compile-tests` and webpack stay on `tsconfig.json`, so an unused symbol fails the gate but never the F5 build. Then a second pass, `tsconfig.tooling.json`: `checkJs` over `scripts/*.mjs`, `webpack.config.js` and `eslint.config.mjs` (strict except `noImplicitAny`; a JSDoc `@type` is the fix for a finding there) | Fast correctness gate; part of `test:basic` |
-| `npm run lint` | ESLint (flat config, `eslint.config.mjs`) over explicit roots — `src/`, `test/`, `scripts/`, `templates/`, `webpack.config.js`, `eslint.config.mjs` — with a `--max-warnings` budget (the number in the script). The roots are listed rather than `eslint .`, so the scope is reviewable in the diff | Part of `test:basic` (~7 s: the type-aware block builds the TypeScript program). Style and unused-symbol rules are errors (Node-side JS also gets `no-undef` and `no-eval`). The standalone `templates/` runtimes get a relaxed browser block (classic scripts: top-level names are page globals, `== null` is allowed; the LivePanel page's shared globals are listed in the config); the multi-part runtime directories (`templates/components/codexr/*/*Runtime/`) are ignored, because a part does not parse on its own; `no-console` is an error over `src/**/*.ts` with the log sink (`src/core/logging/sink.ts`) as the only allowlisted file (extension diagnostics go through the logger, see ARCHITECTURE.md "Logging"); the warn-only budget rules, all on `src/` (`no-explicit-any`; `complexity` 15, `max-depth` 4, `max-params` 5, `max-lines-per-function` 80, `max-lines` 600; type-aware `no-misused-promises`), count toward the budget, which is recorded in the guardrail baseline (`eslint.maxWarnings`) and only ever lowered: when a cleanup removes warnings, lower the number in the script and run `guardrails:update`. The type-aware `no-floating-promises` (with `checkThenables`) is an **error** since v1.2.1 T56-T59: await the promise, or mark a deliberate fire-and-forget with `void` |
+| `npm run lint` | ESLint (flat config, `eslint.config.mjs`) over explicit roots — `src/`, `test/`, `scripts/`, `templates/`, `webpack.config.js`, `eslint.config.mjs` — with a `--max-warnings` budget (the number in the script). The roots are listed rather than `eslint .`, so the scope is reviewable in the diff | Part of `test:basic` (~7 s: the type-aware block builds the TypeScript program). Style and unused-symbol rules are errors (Node-side JS also gets `no-undef` and `no-eval`). The standalone `templates/` runtimes get a relaxed browser block (classic scripts: top-level names are page globals, `== null` is allowed; the LivePanel page's shared globals are listed in the config); the multi-part runtime directories (`templates/components/codexr/*/*Runtime/`) are ignored, because a part does not parse on its own; `no-console` is an error over `src/**/*.ts` with the log sink (`src/platform/logging/sink.ts`) as the only allowlisted file (extension diagnostics go through the logger, see ARCHITECTURE.md "Logging"); the warn-only budget rules, all on `src/` (`no-explicit-any`; `complexity` 15, `max-depth` 4, `max-params` 5, `max-lines-per-function` 80, `max-lines` 600; type-aware `no-misused-promises`), count toward the budget, which is recorded in the guardrail baseline (`eslint.maxWarnings`) and only ever lowered: when a cleanup removes warnings, lower the number in the script and run `guardrails:update`. The type-aware `no-floating-promises` (with `checkThenables`) is an **error** since v1.2.1 T56-T59: await the promise, or mark a deliberate fire-and-forget with `void` |
| `npm run compile-tests` | Removes `out/`, then `tsc -p . --outDir out`. Starting empty matters: tsc never deletes output for a source that is gone, so a module deleted from `src/` would keep a compiled twin the suites still load | Part of `test:basic` |
| `npm run watch-tests` | `tsc -p . -w --outDir out`: keeps `out/` current while iterating on tests (the runner's stale-output check is per file, so this stays valid) | Iterating with `npm run test:unit` |
| `npm test` = `npm run test:basic` | `typecheck` + `lint` + `compile-tests` (tsc → `out/`) + `test:unit`. Needs **no** webpack build | **The default gate. Run before declaring any change done.** |
@@ -40,8 +40,8 @@
| `node scripts/vsix-listing.mjs [--vsix ] [--out ]` | Reads the built VSIX's zip directory (Node builtins) and checks it: required entries (`dist/extension.js`, the Python `main.py`, `templates/`, `examples/`, the icon, README/CHANGELOG/LICENSE) present; source maps, TypeScript sources, Python bytecode, build configs, `src/`/`test/`/`node_modules/`… absent. Exits 1 on any violation | After `npm run package:vsix`; CI runs it in the package job |
| `npm run report:manual-metrics` | analysis test runner in report-only mode | Metric reports without assertions |
| `npm run guardrails:measure` | `test/tooling/measureGuardrails.cjs` — prints the cleanup metrics from the TypeScript AST (~2 s): `console.*` per module, console-only catch blocks, `any`, suppressions, files over 500 lines, functions over 80 lines, CCN over 10/15/20/30, modules unreachable from `src/extension.ts`, `console.log` in `templates/`, the lint `--max-warnings` | Before and after any cleanup item |
-| `npm run guardrails:update` | Same script with `--write`: regenerates `test/tooling/guardrail-baseline.json` | In the **same commit** as a change that moves a metric — the baseline diff is that item's recorded before/after |
-| `npm run python:requirements` | `compile-tests` + `test/tooling/pythonRequirements.cjs --write`: regenerates `backend/requirements.txt` from `CODEXR_PYTHON_PACKAGES` in `src/python_env/runtime/pythonPackageManifest.ts` (the source of truth); `test/python_env/pythonRequirements.test.cjs` fails while the two disagree | In the same commit as any change to the Python package pins |
+| `npm run guardrails:update` | Same script with `--write`: regenerates `test/tooling/guardrail-baseline.json`. For a commit that moves files, pass the move map: `npm run guardrails:update -- --renamed ../../docs/cleanup/src-move-map.json` re-keys the committed baseline through it (paths at their new location, per-module counts regrouped from the per-file ones), so a pure move reports no change and needs no waiver. `console.byModule` / `any.byModule` group by the first folder under `src/`, or the first two under `src/core/` and `src/features/` | In the **same commit** as a change that moves a metric — the baseline diff is that item's recorded before/after |
+| `npm run python:requirements` | `compile-tests` + `test/tooling/pythonRequirements.cjs --write`: regenerates `backend/requirements.txt` from `CODEXR_PYTHON_PACKAGES` in `src/core/python-env/pythonPackageManifest.ts` (the source of truth); `test/python_env/pythonRequirements.test.cjs` fails while the two disagree | In the same commit as any change to the Python package pins |
**Test framework note**: unit tests are **`.test.cjs` files run by Node's native test runner** (`node --test`), *not* Mocha (there is no Mocha in the dependency tree). New unit tests go in `test//*.test.cjs`.
@@ -76,7 +76,8 @@ test/
│ lintContract (what lint/typecheck cover and how strict), npmScripts
│ (every script target exists; every test:* script is documented here),
│ dependencyDirection (the folder import matrix and its two-way pairs,
-│ data in folderDependencies.json; `node test/tooling/folderDependencies.cjs`)
+│ data in folderDependencies.json; `node test/tooling/folderDependencies.cjs`),
+│ srcLayout (src/ = five layers + extension.ts, kebab-case folders, no barrels)
├── manual/ browser-run HTML harnesses (xr-containment, project-evolution-playback…)
└── runners/ the .cjs runner scripts npm scripts point to (the two Python-only ones,
run-python-tests and run-analysis-tests, are in backend/scripts/)
diff --git a/.claude/docs/INDEX.md b/.claude/docs/INDEX.md
index 0a928f67b..ab5a8dd78 100644
--- a/.claude/docs/INDEX.md
+++ b/.claude/docs/INDEX.md
@@ -62,11 +62,11 @@
| **New feature** | `ARCHITECTURE.md` → `V1.2.1_STATUS.md` → area doc(s) → `AI_WORKFLOWS.md` §feature. **Note: features are out of scope for 1.2.1** | per module convention |
| **Bug fix** | `ARCHITECTURE.md` (module map) → `AI_WORKFLOWS.md` §bug fix; area doc if a contract seam is involved | the one module |
| **Refactor** | `ARCHITECTURE.md` (contracts!) → `AI_WORKFLOWS.md` §refactor | crossing modules |
-| **XR visuals / scene / runtimes** | `XR_COMPONENTS.md` → `templates/components/COMPONENTS.md`; `docs/xr-testing/XR_DEBUG_COMMANDS.md` when debugging | `templates/`, `src/babia_templates/`, `engine/components/` |
-| **Analysis / metrics / languages** | `PYTHON_ANALYSIS.md` → `ARCHITECTURE.md` §contracts | `src/code_analysis/python/`, `engine/`, `src/utils/languageMetadata.ts` |
-| **Dependency graph** | `XR_COMPONENTS.md` → `docs/features/DEPENDENCY_GRAPH_XR.md` | `code_analysis/dependencies/`, graph runtime |
-| **Historical / Project Evolution** | `V1.2.0_STATUS.md` → `docs/features/HISTORICAL_COMPARISON_XR.md` / `docs/features/PROJECT_EVOLUTION_XR.md` | `code_analysis/historical/` |
-| **Servers / SSE / collaboration / remote** | `ARCHITECTURE.md` → `docs/features/CLOUDFLARE_REMOTE_ACCESS.md` for tunnels | `src/servers/`, `active_servers/`, `collaboration/`, `remote_access/` |
+| **XR visuals / scene / runtimes** | `XR_COMPONENTS.md` → `templates/components/COMPONENTS.md`; `docs/xr-testing/XR_DEBUG_COMMANDS.md` when debugging | `templates/`, `src/core/charts/`, `src/core/analysis/scene-assets/` |
+| **Analysis / metrics / languages** | `PYTHON_ANALYSIS.md` → `ARCHITECTURE.md` §contracts | `backend/src/`, `src/core/analysis/`, `src/core/analysis/languages/languageMetadata.ts` |
+| **Dependency graph** | `XR_COMPONENTS.md` → `docs/features/DEPENDENCY_GRAPH_XR.md` | `core/dependencies/`, graph runtime |
+| **Historical / Project Evolution** | `V1.2.0_STATUS.md` → `docs/features/HISTORICAL_COMPARISON_XR.md` / `docs/features/PROJECT_EVOLUTION_XR.md` | `core/history/`, `core/export/` |
+| **Servers / SSE / collaboration / remote** | `ARCHITECTURE.md` → `docs/features/CLOUDFLARE_REMOTE_ACCESS.md` for tunnels | `src/core/server/`, `src/features/servers/`, `src/features/active-servers/`, `core/collaboration/`, `features/collaboration/`, `core/remote-access/` |
| **Build / test / tooling** | `DEVELOPMENT.md` | `scripts/`, configs |
| **Docs update** | `AI_WORKFLOWS.md` §docs → `V1.2.1_STATUS.md` §carried-over debt → `V1.2.0_STATUS.md` §documentation debt | `docs/`, `.claude/docs/` |
| **Release preparation** | `V1.2.1_STATUS.md` (all) → `AI_WORKFLOWS.md` §release → `DEVELOPMENT.md` §packaging; `docs/project/ROADMAP_V1.2.0.md` only for historical exit criteria | everything user-visible |
@@ -78,7 +78,7 @@
| `node_modules/`, `dist/`, `out/`, `output/`, `artifacts/`, `.vscode-test/` | Generated / dependencies; never read or edit |
| `tsconfig.tsbuildinfo`, `package-lock.json` | Build cache / lockfile; huge, no signal |
| `resources/` (media), `examples/` | Binary/media assets; only relevant when explicitly working on them |
-| `src/code_analysis/` *as a whole* | 246 files — enter via `ARCHITECTURE.md` module map, never scan |
+| `src/core/analysis/` + `src/features/analysis/` *as a whole* | about 120 files — enter via `ARCHITECTURE.md` module map, never scan |
| `package.json` *as a whole* | ~70 commands; grep the section you need |
## Keeping this index current
diff --git a/.claude/docs/PYTHON_ANALYSIS.md b/.claude/docs/PYTHON_ANALYSIS.md
index 09e9d4a17..8f08e7514 100644
--- a/.claude/docs/PYTHON_ANALYSIS.md
+++ b/.claude/docs/PYTHON_ANALYSIS.md
@@ -18,7 +18,7 @@ The Python backend is a frequent source of confusion:
- `--mode {livePanel, xr, schema, dependencies}`
- `--type {file, directory, project}`
-The TS bridge is `src/code_analysis/engine/utils/executePython.ts`, which spawns the venv's interpreter against `main.py` and parses the JSON. Progress is streamed via `python/utils/progress_logger.py` conventions. *[inferred: exact progress protocol — verify in executePython.ts if you need it]*
+The TS bridge is `src/core/analysis/python/executePython.ts`, which spawns the venv's interpreter against `main.py` and parses the JSON. Progress is streamed via `python/utils/progress_logger.py` conventions. *[inferred: exact progress protocol — verify in executePython.ts if you need it]*
## Layout
@@ -45,8 +45,8 @@ src/code_analysis/python/
## The field-schema contract (critical seam)
1. `python/utils/xr_field_schema.py` defines which metric fields exist per analysis type.
-2. TS fetches it via `main.py --mode schema`, cached/served by `src/code_analysis/services/xrFieldSchemaService.ts` (prefetched at startup by the `StartupCoordinator`).
-3. `src/babia_templates/processing/dimensionValidator.ts` validates user dimension mappings against that schema before launching an XR scene.
+2. TS fetches it via `main.py --mode schema`, cached/served by `src/core/analysis/python/xrFieldSchemaService.ts` (prefetched at startup by the `StartupCoordinator`).
+3. `src/core/charts/processing/dimensionValidator.ts` validates user dimension mappings against that schema before launching an XR scene.
**Rule**: any metric added/renamed/removed in Python must flow through the schema, and the analysis/manual-metrics tests must be re-run. A mismatch surfaces as dimension-mapping validation failures or empty charts.
@@ -60,7 +60,7 @@ src/code_analysis/python/
Python source is also pinned on **quote style and import order** by source-text tests (`main.py`'s `choices=['livePanel', …]`, `print('=== JSON_START ===')`, the imports that follow the `sys.path` setup). No formatter, no isort.
-## Virtual environment (`src/python_env/`)
+## Virtual environment (`src/core/python-env/`, commands and tree in `src/features/python-env/`)
- `runtime/venvManager.ts` creates/verifies/reinstalls the venv; package manifest and env UI state live alongside it. User-facing commands: `codeXR.pythonEnv.*` (create/delete/status/reinitialize/verify/debug).
- Python dependencies (e.g. `lizard`, `tree-sitter-language-pack`) are installed into this venv at runtime. **Needs verification**: the exact dependency manifest location (there is no top-level `requirements.txt`; the manifest appears to live inside `src/python_env/` — confirm before changing dependencies).
@@ -69,7 +69,7 @@ Python source is also pinned on **quote style and import order** by source-text
## Languages and metrics
- Metrics: cyclomatic complexity (CCN), LOC/comment lines, function/class counts, parameters — primarily via **Lizard**. Dependency relations via **tree-sitter-language-pack** (pinned; confidence levels exact/best-effort/unsupported/ambiguous — see `docs/features/DEPENDENCY_GRAPH_XR.md`).
-- Language support: README claims 24, dependency-graph doc and roadmap say 23, and `backend/tests/fixtures/dependency-languages/` holds ~25 fixture languages. **The source of truth is `src/utils/languageMetadata.ts` (TS side) + `python/utils/metric_language_contract.py` (Python side)** — check those, not the docs, when a language question matters. (Recorded as documentation debt in `V1.2.0_STATUS.md`.)
+- Language support: README claims 24, dependency-graph doc and roadmap say 23, and `backend/tests/fixtures/dependency-languages/` holds ~25 fixture languages. **The source of truth is `src/core/analysis/languages/languageMetadata.ts` (TS side) + `python/utils/metric_language_contract.py` (Python side)** — check those, not the docs, when a language question matters. (Recorded as documentation debt in `V1.2.0_STATUS.md`.)
## Testing the Python side
diff --git a/.claude/docs/XR_COMPONENTS.md b/.claude/docs/XR_COMPONENTS.md
index f52a7209d..d0da10cef 100644
--- a/.claude/docs/XR_COMPONENTS.md
+++ b/.claude/docs/XR_COMPONENTS.md
@@ -1,14 +1,14 @@
# Code-XR XR / BabiaXR Layer
-> **Purpose**: How XR scenes are generated, which browser-side runtimes exist, and where the feature-level docs live. Read before touching `templates/`, `src/babia_templates/`, or `engine/components/`.
+> **Purpose**: How XR scenes are generated, which browser-side runtimes exist, and where the feature-level docs live. Read before touching `templates/`, `src/core/charts/`, or `engine/components/`.
> **Stability**: Stable — update when the scene-generation mechanism or the set of table modes changes.
> This file deliberately does **not** duplicate the deep feature docs in `docs/` — it summarizes and links.
## How a scene is generated
1. **Template HTML**: raw A-Frame scene templates live in `templates/xr/` (main: `templates/xr/file/xr-visualization.html`; DOM mode: `templates/xr/html/dom-visualization-template.html`). LivePanel webviews use `templates/analysis_livePanel/{file,directory}/`.
-2. **Placeholder processing**: `src/babia_templates/processing/` (`templateProcessor.ts`, `templateHTMLProcessor.ts`, `placeholders/createChart.ts`, `placeholders/createStructure.ts`) fills templates with chart entities, data paths and dimension mappings.
-3. **Runtime injection**: `src/code_analysis/engine/components/customComponents/*ComponentAsset.ts` read browser-side JS from `templates/components/**` and inline it into the generated HTML. The generated page is fully self-contained per analysis session. Large runtimes are **multi-part** (focused module files under `codexr///`, order declared in that directory's `manifest.json`, concatenated by `runtimeAssembly.ts` back into the flat output name — see "Multi-part runtimes" in `templates/components/COMPONENTS.md`; tests read them via `test/helpers/runtimeAssembly.cjs`).
+2. **Placeholder processing**: `src/core/charts/processing/` (`templateProcessor.ts`, `templateHTMLProcessor.ts`, `placeholders/createChart.ts`, `placeholders/createStructure.ts`) fills templates with chart entities, data paths and dimension mappings.
+3. **Runtime injection**: `src/core/analysis/scene-assets/*ComponentAsset.ts` read browser-side JS from `templates/components/**` and inline it into the generated HTML. The generated page is fully self-contained per analysis session. Large runtimes are **multi-part** (focused module files under `codexr///`, order declared in that directory's `manifest.json`, concatenated by `runtimeAssembly.ts` back into the flat output name — see "Multi-part runtimes" in `templates/components/COMPONENTS.md`; tests read them via `test/helpers/runtimeAssembly.cjs`).
4. **Serving + live reload**: the scene is served by a per-session local server; SSE client scripts (`templates/xr/sse/live_sse_fileXR.js`, `live_sse_fileDOM.js`) reconnect to `SSEManager` so re-analysis refreshes data in place.
**Two worlds, one contract**: TypeScript (extension host) and the runtimes (browser JS, A-Frame components) never share code. The contract is the injected globals, entity attributes and JSON data files. `templates/components/COMPONENTS.md` is the authoritative inventory of runtimes and their **recommended load order** — read it before adding/reordering runtimes.
@@ -32,8 +32,8 @@ The analysis table is the central XR surface; the old "pedestal" was split into
## Chart system
-- **Registry**: `src/babia_templates/registry/chartRegistry.ts` (`BabiaChartRegistry` singleton) — chart types + dimension requirements (`models/chartModels.ts`: `ChartMetadata`, `DimensionMapping`).
-- **Presentation contract**: `src/babia_templates/charts/chartPresentation.ts` (`CHART_PRESENTATION_PROFILES`) is the single source for how every chart presents on the table — entity rotation (pie/donut stand at `90 0 0`, Babia's own convention), containment fit strategy (`uniform` / `planar-uniform` / per-axis), base component attributes beyond the mapped fields (bubbles' `heightMax`/`radiusMax`, cyls' `radiusMax`, boats' full base), row budget + ranking dimension for the top-N data slice, the Babia element-key dimensions (duplicate keys collapse elements, so slices de-duplicate), and `surfaceLift` (clearance above the anchor plane — it sits at the tabletop slab, ~1.7 cm under the visible glass, which slices round-bottomed geometry; note the anchor's ~1.5 cm anti-jitter deadband swallows smaller lifts). Templates are BUILT from it (`buildChartEntityHtml` in `templateCharts.ts`), the scene injects it as JSON (`#codexr-chart-base-config`, `createStructure.ts`), and the mapping runtime keeps a fallback mirror — same pattern that already protected babia-boats.
+- **Registry**: `src/core/charts/chartRegistry.ts` (`BabiaChartRegistry` singleton) — chart types + dimension requirements (`models/chartModels.ts`: `ChartMetadata`, `DimensionMapping`).
+- **Presentation contract**: `src/core/charts/chartPresentation.ts` (`CHART_PRESENTATION_PROFILES`) is the single source for how every chart presents on the table — entity rotation (pie/donut stand at `90 0 0`, Babia's own convention), containment fit strategy (`uniform` / `planar-uniform` / per-axis), base component attributes beyond the mapped fields (bubbles' `heightMax`/`radiusMax`, cyls' `radiusMax`, boats' full base), row budget + ranking dimension for the top-N data slice, the Babia element-key dimensions (duplicate keys collapse elements, so slices de-duplicate), and `surfaceLift` (clearance above the anchor plane — it sits at the tabletop slab, ~1.7 cm under the visible glass, which slices round-bottomed geometry; note the anchor's ~1.5 cm anti-jitter deadband swallows smaller lifts). Templates are BUILT from it (`buildChartEntityHtml` in `templateCharts.ts`), the scene injects it as JSON (`#codexr-chart-base-config`, `createStructure.ts`), and the mapping runtime keeps a fallback mirror — same pattern that already protected babia-boats.
- **Rotation has exactly one owner: the presentation profile.** Anywhere a babia chart component is attached to an entity, the entity's `rotation` must be (re)derived from `getChartPresentation(chartId).rotation` — never inherited, never left over. Three builders learned this the hard way and now follow it: the live switch (`applyChartTypeToEntity`), the evolution movie (`buildEvolutionChart`) and the comparison clones (`createChartFromTemplate`). The same applies to the `data-codexr-active-chart-id` marker, which the containment reads to pick the fit strategy and the surface lift — a stale marker mis-fits the chart. Note that the containment's own transform snapshots (`cloneTransform`/`restoreTransform`) deliberately carry position, scale and visibility only, so they can never be the source of a rotation problem.
- **Row-budgeted datasource**: every chart except boats reads from a CodeXR-maintained sliced `babia-queryjson` entity (`codexrChartDataSlice__`, `chartDataSlice.js` part of the mapping runtime). The slice ranks rows by the mapped magnitude, honours `numeric-positive` value rules by VALUE (a zero radius makes babia-cylsmap compute `-Infinity` axis lengths), and keeps one row per Babia element key. It subscribes to the real producer's NotiBuffer, so re-analysis pushes and evolution frame swaps flow through.
- **Validation**: `processing/dimensionValidator.ts` validates mappings against the Python-derived field schema (see `PYTHON_ANALYSIS.md` → field-schema contract) before launch. The in-scene Mapping UI performs transactional mapping changes with safe recovery.
@@ -51,7 +51,7 @@ Browser-console APIs (`CodeXR.help()`, `CodeXRDebug`, `CodeXRChartDebug`, `CodeX
## Collaboration & remote layer (summary only)
-- Collaborative rooms: WebSocket signaling in `src/servers/runtime/collaboration/collaborationRoomServer.ts` + broadcast signaling for virtual screens; server-authoritative admin operations (host/guest roles, host transfer) — v1.2.0's "Collaboration 2.0".
+- Collaborative rooms: WebSocket signaling in `src/core/server/collaboration/collaborationRoomServer.ts` + broadcast signaling for virtual screens; server-authoritative admin operations (host/guest roles, host transfer) — v1.2.0's "Collaboration 2.0".
- Cross-network access: opt-in Cloudflare Quick Tunnel per server (pinned `cloudflared`, token invites, pairing codes, revocation) — see `docs/features/CLOUDFLARE_REMOTE_ACCESS.md` (Spanish) for limits and the authorization flow.
## How future agents should use this document
diff --git a/.claude/docs/v1.2.1/sessions/55-src-layout.md b/.claude/docs/v1.2.1/sessions/55-src-layout.md
new file mode 100644
index 000000000..7b9ff8c6a
--- /dev/null
+++ b/.claude/docs/v1.2.1/sessions/55-src-layout.md
@@ -0,0 +1,65 @@
+# Session: #55 Reorganize `src/` feature-first (epic #26)
+
+Date: 2026-11-25. Branch `claude/project-thread-n2s3q6-src-layout`, from `v1.2.1` at `41cfc523` (`origin/v1.2.1` did not move during the session, so nothing was merged). Story: Code-XR-Project/Code-XR#55. Plan and map: `docs/cleanup/src-layout.md` (§4 map refreshed in the first commit, §7 the result) and `docs/cleanup/src-move-map.json`. Every batch of the plan landed.
+
+## Commits
+
+| SHA | Subject | Files |
+|---|---|---|
+| `cbcd9d24` | docs(cleanup): refresh the src/ move map on the current tree | map JSON + §4.1 |
+| `992f84b2` | test(tooling): move-aware guardrail ratchet and layered folder units | tooling |
+| `87506796` | refactor(src): dissolve the views and analysis-views barrels (#55 B0) | 26 barrels |
+| `4867f66f` | refactor(src): dissolve the analysis-commands barrels (#55 B0) | 10 barrels |
+| `c8a1511a` | refactor(src): dissolve the collaboration and remote-access barrels (#55 B0) | 2 barrels |
+| `e5e99e5b` | refactor(src): dissolve the remaining re-export barrels (#55 B0) | 8 barrels |
+| `d69654c8` | B1 platform and shared | 9 |
+| `98d443e4` | B2 learn-more | 5 |
+| `e91522f5` | B3 python-env | 9 |
+| `e7d9166e` | B4 visualization settings | 13 |
+| `74eba0b0` | B5 visualize-data | 12 |
+| `81c806d0` | B6 examples | 10 |
+| `d5ad7dd0` | B7 core/charts | 11 |
+| `4cab8b25` | B8 collaboration and remote access | 11 |
+| `f27411a8` | B9 core/server | 44 |
+| `0caf1d5f` | B10 servers and active-servers | 16 |
+| `7f129583` | B11 core/dependencies, core/history, core/export | 21 |
+| `46321462` | B12 core/analysis | 64 |
+| `a730f894` | B13 features/analysis | 55 |
+| `11cf9c8f` | B14 app/ | 7 |
+| (this commit) | test(tooling): pin the src/ layout; CHANGELOG, docs, §7, this log | - |
+
+Each move commit body lists its rows of the map, the renames, the pins it retargeted, the eslint and `folderDependencies.json` changes and its H3 result.
+
+## Proof (H3, `src-layout.md` §6), every batch
+
+- `compare-out.mjs` (A.6): 291 of 291 compiled modules equivalent, 0 problems. Batch 0 used a barrel-aware variant (a `require` of a barrel resolved to the declaring module): 311 → 301 → 299 → 291 modules, 0 problems.
+- webpack `mode: none` stats: 512 modules, 279 of them under `src/`, after every move batch.
+- `test/baseline/featureBaseline.test.cjs` green without `--write` (commands, menus, views, settings, shipped files unchanged).
+- `npm test` after every commit: 1,059 of 1,059 (1,064 with the closing commit's layout test), typecheck clean, lint 0 errors and 158 warnings (the budget), `unreachable = 0`.
+- Guardrails: `guardrails:update -- --renamed` each batch, ratcheted metrics unchanged, waivers still the 6 pre-existing ones.
+- Extra suites: B3, B11, B12 `test:python` (73) and `test:analysis` green; B7, B9, B12 `test:xr-harness` green (B7 and B12 also `test:xr-immersive-harness`). In this sandbox the harnesses run with a Playwright preload that serves the CDN scripts locally.
+- `npm run package:vsix` against a build of `41cfc523`: the same 199 files, all byte-identical except `CHANGELOG.md`, `dist/extension.js` (21 KB smaller: the 46 barrel modules are gone) and the lazy `get-port` chunk, renamed `756.extension.js` → `515.extension.js` by webpack's deterministic ids (its contents are identical apart from the id).
+
+## Decisions and deviations
+
+- **Map refresh (§4.1):** six files changed destination against the original analysis (`sink.ts`, `settingsFile.ts`, `xrFieldModels.ts`, `pythonStderrStream.ts`, `chartTypeCommandFactory.ts`, and `sha256Generator.ts`, which goes to `core/analysis/utils/` instead of `shared/` because it now imports the logger).
+- **`vscodeFreeFloor` 109 → 106** (batch 0). Only the three deleted vscode-free barrels left the count; no surviving file lost the property. The note in `folderDependencies.json` says so.
+- **Any-free lint locks followed their files.** When a locked file moved into a folder that also holds files with `any`, the lock moved to the whole folder and those files went into `ignores` (`activeServerItems.ts`, `executePython.ts`, the seven `core/server` files). B10 also restored the lock on `platform/webview/panelManager.ts`, which B1 had moved without carrying it.
+- **Vacuous guards retargeted.** Three "this must not exist" checks would have passed for free once their folder was gone. They now look at the folder the file would occupy today: `visualStyleComponentAsset.ts` (scene-assets), the removed agent-context feature (features/analysis) and the legacy storage folder (core/analysis). The asserted value is unchanged.
+- **New test helper** `test/helpers/sceneAssetModules.cjs`: four tests loaded the `customComponents/index.js` barrel. They now merge the 20 scene-asset modules by name, and the folder is named once.
+- **Not edited:** `templates/components/COMPONENTS.md` (shipped) still says `src/.../customComponents/runtimeAssembly.ts`. Historical docs keep the old paths.
+- **Comments in `src/`:** the codemod changed specifiers only. The one comment that named a moved path (`platform/commands/commandRegistry.ts` → `src/commands/index.ts`) was updated in B14. H3 compares with `--removeComments`, so this is safe.
+
+## F5 smoke checklist (maintainer)
+
+The plan asks for an F5 run ("Run CodeXR Extension") after B9, B12 and B14. This environment has no VS Code host, so the three runs are still open. Run each against its commit (`f27411a8`, `46321462`, `11cf9c8f`), or once on the branch head, which covers all three:
+
+- [ ] The sidebar opens. All eight root sections render: Servers, Active Servers (with the nested Collaboration group), Examples, Visualize Data, Analyses, Python Env, Visualization Settings, Learn More.
+- [ ] One XR analysis runs: right-click a source file → XR analysis. The scene opens in the browser, and editing the file live-reloads it.
+- [ ] A server starts and stops: Servers → start the default server, it appears under Active Servers, then stop it from the tree.
+- [ ] The CodeXR output channel shows no activation error.
+
+## Risks
+
+- Open branches that touch `src/` will conflict on every moved path. A rebase needs the A.5 codemod run on that branch with `docs/cleanup/src-move-map.json`; resolving by hand does not scale.
+- Tests read compiled modules from `out/` by path. A stale `out/` from before the move can hide a missing retarget, so always run `rm -rf apps/vscode-extension/out` first.
diff --git a/.claude/skills/add-language/SKILL.md b/.claude/skills/add-language/SKILL.md
index 7fd978f1d..72b790609 100644
--- a/.claude/skills/add-language/SKILL.md
+++ b/.claude/skills/add-language/SKILL.md
@@ -7,18 +7,18 @@ description: Add or adjust supported-language coverage in CodeXR — the Python
Language support spans two worlds that must change together. The **source of truth** is code, not docs (README says 24, other docs 23 — known documentation debt):
-- TS side: `src/utils/languageMetadata.ts`
+- TS side: `src/core/analysis/languages/languageMetadata.ts`
- Python side: `src/code_analysis/python/utils/metric_language_contract.py`
## Checklist for adding/changing a language
1. **Python contract**: declare the language's metric capabilities in `metric_language_contract.py`. Metrics come primarily from Lizard; dependency relations from `tree-sitter-language-pack` (`utils/dependency_analysis_engine.py`) with confidence levels exact / best-effort / unsupported / ambiguous.
2. **Field schema impact**: if any metric field is added/renamed, it must flow through `python/utils/xr_field_schema.py` → `--mode schema` → `xrFieldSchemaService.ts` → `dimensionValidator.ts`. A mismatch surfaces as dimension-mapping failures or empty charts. See `.claude/docs/PYTHON_ANALYSIS.md` §field-schema contract.
-3. **TS metadata**: mirror the language in `src/utils/languageMetadata.ts` (extensions, display name, capabilities).
+3. **TS metadata**: mirror the language in `src/core/analysis/languages/languageMetadata.ts` (extensions, display name, capabilities).
4. **Fixtures**:
- `backend/manual_test/_metrics.` (flat, one or more files per language; `deep/` holds the recursive-directory extras) — consumed by `npm run test:analysis` (see `backend/manual_test/README.md`).
- `backend/tests/fixtures/dependency-languages/` — sample source for dependency-graph tests.
-5. **Venv dependencies**: if a new Python package is needed, it goes through the managed venv manifest in `src/python_env/` (`venvManager.ts`) — never assume system Python, never add an implicit download (no downloads without explicit user consent).
+5. **Venv dependencies**: if a new Python package is needed, it goes through the managed venv manifest in `src/core/python-env/` (`venvManager.ts`, `pythonPackageManifest.ts`) — never assume system Python, never add an implicit download (no downloads without explicit user consent).
## Validation
diff --git a/.claude/skills/cleanup/SKILL.md b/.claude/skills/cleanup/SKILL.md
index 26bb9dc2d..443e40dbc 100644
--- a/.claude/skills/cleanup/SKILL.md
+++ b/.claude/skills/cleanup/SKILL.md
@@ -27,7 +27,7 @@ Never delete on the strength of a name, a comment, or a doc's claim. Deadness is
|---|---|---|
| 1 | Zero importers | static `import`, `export … from`, dynamic `import()`, `require()` — `npm run guardrails:measure` lists the modules unreachable from `src/extension.ts` |
| 2 | No reference by name or path string | `grep -rn "" src templates test scripts webpack.config.js package.json` — browser runtimes and Python scripts are loaded by path strings, which an import graph cannot see |
-| 3 | Registers no command | `src/commands/index.ts` and the module's own `commands/` folder |
+| 3 | Registers no command | `src/app/commands/registerAllCommands.ts` and the module's own `commands/` folder |
| 4 | **No test reads it as text** | about half the unit tests `readFileSync` a `src/` or `templates/` file and regex it; such a file is pinned even with zero importers |
| Other claims | Proof required |
@@ -40,8 +40,8 @@ Before acting on anything, grep `.claude/docs/v1.2.1/AUDIT.md` for the file: eac
Traps this repo has already set:
- **A module can look dead and still register commands** — `debugThemeProblem.ts` was one until W2-49 removed it with its two ids. Command IDs go through `assertUniqueCommandIds` and `test/commands/internalCommandIds.cjs`; removing a registration without removing its entry there turns the command contract test red.
-- **`src/active_servers/views/` vs `src/views/active_servers/` is deliberate**, not accidental duplication (`AI_WORKFLOWS.md` §refactor). Half of it is dead and half is the busiest module in the area; trace imports file by file.
-- **Two files are called `serverItems.ts`.** `src/views/servers/items/serverItems.ts` is alive and text-pinned by a test; `src/active_servers/views/items/serverItems.ts` is the dead one. Basename greps lie here.
+- **The active-servers tree used to live in two folders** (`src/active_servers/views/` and `src/views/active_servers/`); story #55 put both halves in `src/features/active-servers/views/`. The registry and `ServerControl` it drives are in `src/core/server/`. Trace imports file by file before calling any of it dead.
+- **Basename greps lie.** There used to be two `serverItems.ts` (the dead one was removed in W2); `src/features/servers/views/serverItems.ts` is alive and text-pinned by a test. #55 renamed the feature command wrappers to `*CommandRegistrations.ts` so they no longer share a basename with the feature's own `*Commands.ts`.
- **Python is reachable through a wider gate than its own contract.** The incremental re-analysis path feeds Python extensions the metric contract does not list (`.rs`, `.jsx`, `.r`, …), so an analyzer branch that looks unreachable from Python alone can still run.
## 3. Characterize before you reshape
diff --git a/.claude/skills/runtime-component/SKILL.md b/.claude/skills/runtime-component/SKILL.md
index 39e841a85..85899afb7 100644
--- a/.claude/skills/runtime-component/SKILL.md
+++ b/.claude/skills/runtime-component/SKILL.md
@@ -15,8 +15,8 @@ These files are injected into user-facing generated pages — treat them like sh
## Two injection paths — know which one you're on
**XR scenes**: each runtime is inlined into generated HTML by a matching
-`src/code_analysis/engine/components/customComponents/*ComponentAsset.ts`.
-A new XR runtime needs: the JS under `templates/components/codexr//`, a component asset TS file that reads it (a single-file runtime: a row in `SINGLE_FILE_RUNTIME_ASSETS` in `customComponents/singleFileRuntimeAssets.ts` plus thin wrappers), wiring where assets are injected, and a row in `COMPONENTS.md` at the right load position.
+`src/core/analysis/scene-assets/*ComponentAsset.ts`.
+A new XR runtime needs: the JS under `templates/components/codexr//`, a component asset TS file that reads it (a single-file runtime: a row in `SINGLE_FILE_RUNTIME_ASSETS` in `scene-assets/singleFileRuntimeAssets.ts` plus thin wrappers), wiring where assets are injected, and a row in `COMPONENTS.md` at the right load position.
**LivePanel shared components**: files under `templates/components/livepanel/` are bundled by `LivePanelParser.processTemplateFiles` — shared JS is concatenated **ahead of** the template's own script into `main.js`, shared CSS ahead of the template stylesheet into `style.css`. No component-asset file involved. Anything you put there reaches every LivePanel template (file and directory) automatically.
diff --git a/.claude/skills/verify/SKILL.md b/.claude/skills/verify/SKILL.md
index 4fdb1c144..877bdf4db 100644
--- a/.claude/skills/verify/SKILL.md
+++ b/.claude/skills/verify/SKILL.md
@@ -17,7 +17,7 @@ Never claim a change works without running tests or the F5 flow. Route by what w
| `python/html/html_dom_parser.py` or DOM mode | `npm run test:htmlanalysis` |
| `templates/components/**` runtimes | the matching `test/analysis/*.test.cjs` via `node --test test/analysis/.test.cjs`; table/containment → `npm run test:xr-harness`; project evolution → `npm run test:project-evolution-harness` |
| `templates/analysis_livePanel/**` | `node --test test/analysis/directoryLivePanelUi.test.cjs test/analysis/livePanelDomIntegration.test.cjs` |
-| `src/servers/**` | suites under `test/servers/` |
+| `src/core/server/**`, `src/features/servers/**`, `src/features/active-servers/**` | suites under `test/servers/` |
| `src/commands/**` or command registration | `node --test test/commands/commandRegistry.test.cjs` (unique IDs enforced) |
| Language support / metrics output | `npm run test:analysis` (XR and LivePanel must produce identical `data.json`) |
diff --git a/CLAUDE.md b/CLAUDE.md
index 4e931d91e..90f951753 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -76,7 +76,7 @@ Full matrix and manual-validation flow: `.claude/docs/DEVELOPMENT.md`.
- **Never edit**: `dist/`, `out/`, `output/`, `artifacts/`, `.vscode-test/`, `node_modules/`, `tsconfig.tsbuildinfo`. (`dist/` contains a copy of the Python backend — the source is `backend/src/`.)
- **`templates/**`, `examples/**` ship inside the VSIX** (`docs/**` stopped shipping in 1.2.1) (package.json `files` allowlist; there is no `.vscodeignore`). `.claude/**` does not ship. Think before adding files to shipped folders.
-- Command IDs must be unique — `assertUniqueCommandIds` in `src/commands/index.ts` throws on duplicates.
+- Command IDs must be unique — `assertUniqueCommandIds` (`src/platform/commands/commandRegistry.ts`, called by `src/app/commands/registerAllCommands.ts`) throws on duplicates.
- JS under `templates/components/` is injected into user-facing generated scenes; treat changes there like shipping frontend code (and respect the load order in `templates/components/COMPONENTS.md`).
- Project principles (roadmap exit criteria): no telemetry, no network calls or downloads without explicit user consent, server-validated admin operations.
- Don't delete or rewrite existing docs; record inconsistencies in `.claude/docs/V1.2.1_STATUS.md` instead (the historical list is `V1.2.0_STATUS.md` → "Documentation debt"; `INDEX.md` routes docs work through both).
@@ -84,5 +84,5 @@ Full matrix and manual-validation flow: `.claude/docs/DEVELOPMENT.md`.
## Context management
- Never scan `node_modules/`, `dist/`, `out/`, `output/`, `artifacts/`, `.vscode-test/`, `package-lock.json`.
-- `src/code_analysis/` is 246 files and `package.json` is ~1,000 lines — navigate via the module map in `ARCHITECTURE.md` and targeted Grep, never wholesale reads.
+- `src/core/analysis/` + `src/features/analysis/` are about 120 files and `package.json` is ~1,000 lines — navigate via the module map in `ARCHITECTURE.md` and targeted Grep, never wholesale reads.
- Long-form knowledge lives in `.claude/docs/`, decisions live in the repo (status doc, CHANGELOG) — not in chat history. If you learn something durable, write it into the right doc before the session ends.
diff --git a/apps/vscode-extension/CHANGELOG.md b/apps/vscode-extension/CHANGELOG.md
index 7a6afa166..eba68f680 100644
--- a/apps/vscode-extension/CHANGELOG.md
+++ b/apps/vscode-extension/CHANGELOG.md
@@ -14,6 +14,7 @@
- **Tests that cannot give a false green.** The test build now starts from a clean slate, refuses to run against stale output, and measures the per-language analysis fixtures with exactly the analyzer version the extension installs for you.
- **Continuous integration.** The same gates a developer runs locally now run on Windows and Linux for every pull request.
- **A repository ready to grow.** The source repository is now organized as a monorepo: the extension, its Python analysis backend and the space for the upcoming Code-XR IDE live side by side, and continuous integration also runs on macOS. The packaged extension is the same: no file was added to or removed from it.
+- **Changed (internal): `src/` reorganized feature-first; no behaviour change.** Each sidebar section's commands, tree and services now sit together in one folder, the shared engine (analysis, servers, charts, history, export) in another, and the host plumbing in a third, with every folder named the same way; a check now keeps it that way. Only files moved: the compiled modules were compared one by one before and after, and the packaged extension holds the same files.
#### Removed
diff --git a/apps/vscode-extension/eslint.config.mjs b/apps/vscode-extension/eslint.config.mjs
index ce5ce5280..377d4407f 100644
--- a/apps/vscode-extension/eslint.config.mjs
+++ b/apps/vscode-extension/eslint.config.mjs
@@ -3,12 +3,12 @@ import tsParser from "@typescript-eslint/parser";
import globals from "globals";
// Logging programme (ROADMAP W4-L, LOG-02): extension diagnostics go through
-// the logger (src/core/logging), never straight to the console. The sink is
+// the logger (src/platform/logging), never straight to the console. The sink is
// the one file allowed to call console.*: it is the fallback while no output
// channel is attached. Browser runtimes under templates/ are not covered:
// their console is the page's.
const NO_CONSOLE_FILES = ["src/**/*.ts"];
-const CONSOLE_ALLOWLIST = ["src/core/logging/sink.ts"];
+const CONSOLE_ALLOWLIST = ["src/platform/logging/sink.ts"];
const NODE_JS_RULES = {
"no-undef": "error",
@@ -140,14 +140,14 @@ export default [{
// must still fall back to the default (modernization.md §7, row 9).
files: [
// historicalComparison.test.cjs pins `source.kind === 'workingCopy') || null` here (S pin).
- "src/code_analysis/historical/projectEvolutionService.ts",
- "src/servers/runtime/analysis/dependencyGraphBridge.ts",
- "src/servers/runtime/analysis/projectEvolutionBridge.ts",
- "src/servers/runtime/collaboration/collaborationRoomServer.ts",
- "src/servers/runtime/collaboration/roomSharedState.ts",
- "src/servers/storage/serverSettingsManager.ts",
- "src/visualize_data/state/visualizeDataState.ts",
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_shared/sharedDimensionMappingSettingCore.ts",
+ "src/core/history/projectEvolutionService.ts",
+ "src/core/server/analysis/dependencyGraphBridge.ts",
+ "src/core/server/analysis/projectEvolutionBridge.ts",
+ "src/core/server/collaboration/collaborationRoomServer.ts",
+ "src/core/server/collaboration/roomSharedState.ts",
+ "src/core/server/serverSettingsManager.ts",
+ "src/features/visualize-data/model/visualizeDataState.ts",
+ "src/features/analysis/sections/settings/sharedDimensionMappingSettingCore.ts",
],
rules: {
"@typescript-eslint/prefer-nullish-coalescing": "off",
@@ -157,9 +157,9 @@ export default [{
// the tree provider are load-bearing (cleanup skill §4), and the other two
// defer a relative import to break a load-time module cycle.
files: [
- "src/views/ModularTreeDataProvider.ts",
- "src/code_analysis/engine/watchers/directoryReAnalyzer.ts",
- "src/utils/getVisualizationConfiguration.ts",
+ "src/app/sidebar/ModularTreeDataProvider.ts",
+ "src/core/analysis/watchers/directoryReAnalyzer.ts",
+ "src/core/charts/getVisualizationConfiguration.ts",
],
rules: {
"@typescript-eslint/no-require-imports": "off",
@@ -167,13 +167,31 @@ export default [{
}, {
// Folders whose `any`s were typed away (story #56, modernization.md §7):
// there no-explicit-any is an error, not a budget warning. A folder joins
- // the list in the commit that brings it to zero.
+ // the list in the commit that brings it to zero. When #55 moved a locked
+ // file into a folder that also holds files with `any`, the lock moved to
+ // that whole folder and those files are listed in `ignores` (each leaves
+ // the list when it is typed).
name: "codexr/any-free-folders",
files: [
- "src/active_servers/**/*.ts",
- "src/code_analysis/engine/watchers/**/*.ts",
- "src/code_analysis/services/**/*.ts",
- "src/code_analysis/views/subsections/active_analyses/**/*.ts",
+ "src/core/server/**/*.ts",
+ "src/features/active-servers/**/*.ts",
+ "src/platform/webview/**/*.ts",
+ "src/core/analysis/python/**/*.ts",
+ "src/core/analysis/watchers/**/*.ts",
+ "src/features/analysis/services/**/*.ts",
+ "src/features/analysis/workspace/**/*.ts",
+ "src/features/analysis/sections/active-analyses/**/*.ts",
+ ],
+ ignores: [
+ "src/core/server/http/httpRespond.ts",
+ "src/core/server/httpsTlsOptions.ts",
+ "src/core/server/launchServerWithFile.ts",
+ "src/core/server/multiServerLauncher.ts",
+ "src/core/server/serverFactory.ts",
+ "src/core/server/serverSettingsManager.ts",
+ "src/core/server/sse/SSEManager.ts",
+ "src/core/analysis/python/executePython.ts",
+ "src/features/active-servers/views/activeServerItems.ts",
],
rules: {
"@typescript-eslint/no-explicit-any": "error",
diff --git a/apps/vscode-extension/src/commands/common/generalCommands.ts b/apps/vscode-extension/src/app/commands/generalCommands.ts
similarity index 93%
rename from apps/vscode-extension/src/commands/common/generalCommands.ts
rename to apps/vscode-extension/src/app/commands/generalCommands.ts
index 8452942ee..41be83039 100644
--- a/apps/vscode-extension/src/commands/common/generalCommands.ts
+++ b/apps/vscode-extension/src/app/commands/generalCommands.ts
@@ -1,6 +1,6 @@
-import { CommonCommands } from '../../utils/commonCommands';
+import { CommonCommands } from '../sidebar/commonCommands';
import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
-import { getLogger } from '../../core/logging/sink';
+import { getLogger } from '../../platform/logging/sink';
const logger = getLogger('GENERAL_COMMANDS');
diff --git a/apps/vscode-extension/src/commands/index.ts b/apps/vscode-extension/src/app/commands/registerAllCommands.ts
similarity index 56%
rename from apps/vscode-extension/src/commands/index.ts
rename to apps/vscode-extension/src/app/commands/registerAllCommands.ts
index 9f9c3339f..f110739bf 100644
--- a/apps/vscode-extension/src/commands/index.ts
+++ b/apps/vscode-extension/src/app/commands/registerAllCommands.ts
@@ -1,18 +1,18 @@
import * as vscode from 'vscode';
-import { getServerCommandRegistrations } from './servers/serverCommands';
-import { getActiveServersCommandRegistrations } from './active_servers/activeServersCommands';
-import { getBabiaExamplesCommandRegistrations } from './babia_examples/babiaExamplesCommands';
-import { getVisualizeDataCommandRegistrations } from './visualize_data/visualizeDataCommands';
-import { getAnalysisCommandRegistrations } from './analysis';
-import { getPythonEnvCommandRegistrations } from './python_env/pythonEnvCommands';
-import { getVisualizationSettingsCommandRegistrations } from './visualization_settings/visualizationSettingsCommands';
-import { getLearnMoreCommandRegistrations } from './learn_more/learnMoreCommands';
-import { getGeneralCommandRegistrations } from './common/generalCommands';
-import { getCollaborationCommandRegistrations } from './collaboration/collaborationCommands';
-import { ExtensionCommandRegistration, assertUniqueCommandIds } from '../platform/commands/commandRegistry';
-import { CommandBuilder } from '../utils/commandBuilder';
-import { BabiaExamplesTreeDataProvider } from '../babia_examples/views/babiaExamplesTreeView';
-import { CodeXRLogger } from '../core/logging/logger';
+import { getServerCommandRegistrations } from '../../features/servers/commands/serverCommandRegistrations';
+import { getActiveServersCommandRegistrations } from '../../features/active-servers/commands/activeServersCommandRegistrations';
+import { getBabiaExamplesCommandRegistrations } from '../../features/examples/commands/babiaExamplesCommandRegistrations';
+import { getVisualizeDataCommandRegistrations } from '../../features/visualize-data/commands/visualizeDataCommandRegistrations';
+import { getAnalysisCommandRegistrations } from '../../features/analysis/commands/analysisCommandRegistrations';
+import { getPythonEnvCommandRegistrations } from '../../features/python-env/commands/pythonEnvCommandRegistrations';
+import { getVisualizationSettingsCommandRegistrations } from '../../features/visualization-settings/commands/visualizationSettingsCommandRegistrations';
+import { getLearnMoreCommandRegistrations } from '../../features/learn-more/commands/learnMoreCommandRegistrations';
+import { getGeneralCommandRegistrations } from './generalCommands';
+import { getCollaborationCommandRegistrations } from '../../features/collaboration/commands/collaborationCommands';
+import { ExtensionCommandRegistration, assertUniqueCommandIds } from '../../platform/commands/commandRegistry';
+import { CommandBuilder } from '../../platform/commands/commandBuilder';
+import { BabiaExamplesTreeDataProvider } from '../../features/examples/views/babiaExamplesTreeView';
+import { CodeXRLogger } from '../../platform/logging/logger';
interface RefreshableTreeProvider {
refresh(): void;
refreshSection?(sectionName: string): void;
diff --git a/apps/vscode-extension/src/views/ModularTreeDataProvider.ts b/apps/vscode-extension/src/app/sidebar/ModularTreeDataProvider.ts
similarity index 92%
rename from apps/vscode-extension/src/views/ModularTreeDataProvider.ts
rename to apps/vscode-extension/src/app/sidebar/ModularTreeDataProvider.ts
index e8842026d..f4f2f22fb 100644
--- a/apps/vscode-extension/src/views/ModularTreeDataProvider.ts
+++ b/apps/vscode-extension/src/app/sidebar/ModularTreeDataProvider.ts
@@ -1,10 +1,10 @@
import * as vscode from 'vscode';
-import { SectionProvider, ModularTreeItem } from '../platform/tree/baseInterfaces';
+import { SectionProvider, ModularTreeItem } from '../../platform/tree/baseInterfaces';
import { createSectionDefinitions, LazySectionDefinition } from './sectionDefinitions';
-import type { SectionChild } from './common/sectionChild';
-import { PythonEnvUiStateService } from '../python_env/runtime/pythonEnvUiState';
-import { VenvManager } from '../python_env/runtime/venvManager';
-import { CodeXRLogger } from '../core/logging/logger';
+import type { SectionChild } from './sectionChild';
+import { PythonEnvUiStateService } from '../../core/python-env/pythonEnvUiState';
+import { VenvManager } from '../../core/python-env/venvManager';
+import { CodeXRLogger } from '../../platform/logging/logger';
const logger = CodeXRLogger.getLogger('MODULAR_TREE');
@@ -41,14 +41,14 @@ interface SectionItemAdapter {
/** One row per section, in sidebar order. */
const SECTION_ITEM_ADAPTERS: ReadonlyMap = new Map([
['SERVERS', {
- load: () => require('./servers/items/serverItems').ServerTreeItem,
+ load: () => require('../../features/servers/views/serverItems').ServerTreeItem,
itemTypeKeys: ['serverItemType'],
defaultItemType: 'config-option',
constructorExtras: [],
payloadKeys: [],
}],
['activeServers', {
- load: () => require('./active_servers/items/activeServerItems').ActiveServerTreeItem,
+ load: () => require('../../features/active-servers/views/activeServerItems').ActiveServerTreeItem,
itemTypeKeys: ['activeServerItemType'],
defaultItemType: 'server-item',
// Participant rows carry their peer, which context-menu commands
@@ -58,42 +58,42 @@ const SECTION_ITEM_ADAPTERS: ReadonlyMap = new Map require('./babia_examples/items/babiaExampleItems').BabiaExampleTreeItem,
+ load: () => require('../../features/examples/views/babiaExampleItems').BabiaExampleTreeItem,
itemTypeKeys: ['babiaItemType'],
defaultItemType: 'example-item',
constructorExtras: ['babiaExample'],
payloadKeys: ['babiaExample'],
}],
['visualizeData', {
- load: () => require('./visualize_data/items/visualizeDataItems').VisualizeDataModularTreeItem,
+ load: () => require('../../features/visualize-data/views/visualizeDataSectionItems').VisualizeDataModularTreeItem,
itemTypeKeys: ['visualizeDataItemType'],
defaultItemType: 'error',
constructorExtras: ['visualizeDataItem'],
payloadKeys: ['visualizeDataItem'],
}],
['analysis', {
- load: () => require('../code_analysis/views/items/analysisItems').CodeAnalysisTreeItem,
+ load: () => require('../../features/analysis/views/analysisItems').CodeAnalysisTreeItem,
itemTypeKeys: ['analysisItemType', 'type'],
defaultItemType: 'item',
constructorExtras: [],
payloadKeys: ['originalAnalysisItem'],
}],
['pythonEnv', {
- load: () => require('../python_env/views/items/pythonEnvItems').PythonEnvModularTreeItem,
+ load: () => require('../../features/python-env/views/pythonEnvItems').PythonEnvModularTreeItem,
itemTypeKeys: ['pythonEnvItemType'],
defaultItemType: 'info',
constructorExtras: [],
payloadKeys: [],
}],
['visualizationSettings', {
- load: () => require('./visualization_settings/items/visualizationSettingsItems').VisualizationSettingsModularTreeItem,
+ load: () => require('../../features/visualization-settings/views/visualizationSettingsSectionItems').VisualizationSettingsModularTreeItem,
itemTypeKeys: ['visualizationSettingsItemType'],
defaultItemType: 'error',
constructorExtras: ['originalSettingsItem'],
payloadKeys: ['originalSettingsItem'],
}],
['learnMore', {
- load: () => require('./learn_more/items/learnMoreItems').LearnMoreModularTreeItem,
+ load: () => require('../../features/learn-more/views/learnMoreItems').LearnMoreModularTreeItem,
itemTypeKeys: ['learnMoreItemType'],
defaultItemType: 'action',
constructorExtras: [],
diff --git a/apps/vscode-extension/src/utils/commonCommands.ts b/apps/vscode-extension/src/app/sidebar/commonCommands.ts
similarity index 94%
rename from apps/vscode-extension/src/utils/commonCommands.ts
rename to apps/vscode-extension/src/app/sidebar/commonCommands.ts
index bb3d57b72..144104415 100644
--- a/apps/vscode-extension/src/utils/commonCommands.ts
+++ b/apps/vscode-extension/src/app/sidebar/commonCommands.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { CodeXRLogger } from '../core/logging/logger';
+import { CodeXRLogger } from '../../platform/logging/logger';
const logger = CodeXRLogger.getLogger('COMMON_COMMANDS');
diff --git a/apps/vscode-extension/src/app/sidebar/sectionChild.ts b/apps/vscode-extension/src/app/sidebar/sectionChild.ts
new file mode 100644
index 000000000..d00907dc8
--- /dev/null
+++ b/apps/vscode-extension/src/app/sidebar/sectionChild.ts
@@ -0,0 +1,25 @@
+// Types only: every import here is `import type`, so this module never loads
+// the item modules. ModularTreeDataProvider loads them lazily on purpose.
+import type { ServerTreeItem } from '../../features/servers/views/serverItems';
+import type { ActiveServerTreeItem } from '../../features/active-servers/views/activeServerItems';
+import type { BabiaExampleTreeItem } from '../../features/examples/views/babiaExampleItems';
+import type { VisualizeDataModularTreeItem } from '../../features/visualize-data/views/visualizeDataSectionItems';
+import type { CodeAnalysisTreeItem } from '../../features/analysis/views/analysisItems';
+import type { PythonEnvModularTreeItem } from '../../features/python-env/views/pythonEnvItems';
+import type { VisualizationSettingsModularTreeItem } from '../../features/visualization-settings/views/visualizationSettingsSectionItems';
+import type { LearnMoreModularTreeItem } from '../../features/learn-more/views/learnMoreItems';
+
+/**
+ * An item as a section provider produces and consumes it: one of the eight
+ * section item classes, in sidebar order. ModularTreeDataProvider bridges
+ * these to and from the ModularTreeItem the view renders.
+ */
+export type SectionChild =
+ | ServerTreeItem
+ | ActiveServerTreeItem
+ | BabiaExampleTreeItem
+ | VisualizeDataModularTreeItem
+ | CodeAnalysisTreeItem
+ | PythonEnvModularTreeItem
+ | VisualizationSettingsModularTreeItem
+ | LearnMoreModularTreeItem;
diff --git a/apps/vscode-extension/src/views/sectionDefinitions.ts b/apps/vscode-extension/src/app/sidebar/sectionDefinitions.ts
similarity index 84%
rename from apps/vscode-extension/src/views/sectionDefinitions.ts
rename to apps/vscode-extension/src/app/sidebar/sectionDefinitions.ts
index 3152622d7..a3b44c906 100644
--- a/apps/vscode-extension/src/views/sectionDefinitions.ts
+++ b/apps/vscode-extension/src/app/sidebar/sectionDefinitions.ts
@@ -1,18 +1,18 @@
import * as vscode from 'vscode';
-import { SectionProvider, ModularTreeItem } from '../platform/tree/baseInterfaces';
-import { ServersSectionProvider } from './servers';
-import { ActiveServersSectionProvider } from './active_servers';
-import { BabiaExamplesSectionProvider } from './babia_examples';
-import { VisualizeDataSectionProvider } from './visualize_data';
-import { PythonEnvSectionProvider } from './python_env';
-import { AnalysisSectionProvider } from '../code_analysis/views/AnalysisSectionProvider';
-import { VisualizationSettingsSectionProvider } from './visualization_settings';
-import { LearnMoreSectionProvider } from './learn_more';
-import type { PythonEnvUiStateService } from '../python_env/runtime/pythonEnvUiState';
-import type { VenvManager } from '../python_env/runtime/venvManager';
-import { PythonEnvItems } from '../python_env/views/items/pythonEnvItems';
-import type { SectionChild } from './common/sectionChild';
-import { getActiveServerRegistry } from '../active_servers/registry/activeServerRegistry';
+import { SectionProvider, ModularTreeItem } from '../../platform/tree/baseInterfaces';
+import { ServersSectionProvider } from '../../features/servers/views/ServersSectionProvider';
+import { ActiveServersSectionProvider } from '../../features/active-servers/views/ActiveServersSectionProvider';
+import { BabiaExamplesSectionProvider } from '../../features/examples/views/BabiaExamplesSectionProvider';
+import { VisualizeDataSectionProvider } from '../../features/visualize-data/views/VisualizeDataSectionProvider';
+import { PythonEnvSectionProvider } from '../../features/python-env/views/PythonEnvSectionProvider';
+import { AnalysisSectionProvider } from '../../features/analysis/views/AnalysisSectionProvider';
+import { VisualizationSettingsSectionProvider } from '../../features/visualization-settings/views/VisualizationSettingsSectionProvider';
+import { LearnMoreSectionProvider } from '../../features/learn-more/views/LearnMoreSectionProvider';
+import type { PythonEnvUiStateService } from '../../core/python-env/pythonEnvUiState';
+import type { VenvManager } from '../../core/python-env/venvManager';
+import { PythonEnvItems } from '../../features/python-env/views/pythonEnvItems';
+import type { SectionChild } from './sectionChild';
+import { getActiveServerRegistry } from '../../core/server/registry/activeServerRegistry';
/**
* One root section of the sidebar tree. The header is rebuilt on every
diff --git a/apps/vscode-extension/src/core/startup/startupCoordinator.ts b/apps/vscode-extension/src/app/startup/startupCoordinator.ts
similarity index 100%
rename from apps/vscode-extension/src/core/startup/startupCoordinator.ts
rename to apps/vscode-extension/src/app/startup/startupCoordinator.ts
diff --git a/apps/vscode-extension/src/code_analysis/commands/directory_analysis/index.ts b/apps/vscode-extension/src/code_analysis/commands/directory_analysis/index.ts
deleted file mode 100644
index 8a3c2384d..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/directory_analysis/index.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Directory Analysis Commands Index
- * Exports for directory analysis command modules
- */
-
-export { DirectoryAnalysisCommands } from './directoryAnalysisCommands';
-export { DirectoryAnalysisLivePanelCommands } from './directoryAnalysisLivePanelCommands';
-export { DirectoryAnalysisXRCommands } from './directoryAnalysisXRCommands';
-export { ProjectAnalysisCommands } from './projectAnalysisCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/dom_visualization/index.ts b/apps/vscode-extension/src/code_analysis/commands/dom_visualization/index.ts
deleted file mode 100644
index 8f9b9e2fb..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/dom_visualization/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * DOM Visualization Commands Index
- * Central export point for DOM visualization commands
- */
-
-export { DOMVisualizationCommands } from './domVisualizationCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/file_analysis/index.ts b/apps/vscode-extension/src/code_analysis/commands/file_analysis/index.ts
deleted file mode 100644
index de1ad1663..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/file_analysis/index.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * File Analysis Commands Module
- * Exports for file analysis commands - Russian dolls pattern
- */
-
-export { FileAnalysisCommands } from './fileAnalysisCommands';
-export { FileAnalysisLivePanelCommands } from './fileAnalysisLivePanelCommands';
-export { FileAnalysisXRCommands } from './fileAnalysisXRCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts
deleted file mode 100644
index 75e6ac391..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Analysis Directory Mode Commands Module
- * Exports for analysis directory mode commands
- */
-
-export { AnalysisDirectoryModeCommands } from './analysisDirectoryModeCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts
deleted file mode 100644
index 0af22862c..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Analysis File Mode Commands Module
- * Exports for analysis file mode commands
- */
-
-export { AnalysisFileModeCommands, CommandRegistration } from './analysisFileModeCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts
deleted file mode 100644
index 123f020c0..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Auto-Analysis Delay Commands Module
- * Exports for auto-analysis delay commands
- */
-
-export { AutoAnalysisDelayCommands } from './autoAnalysisDelayCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts
deleted file mode 100644
index 41422e0c4..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Auto-Analysis Enabled Commands Module
- * Exports for auto-analysis enabled commands
- */
-
-export { AutoAnalysisEnabledCommands } from './autoAnalysisEnabledCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts
deleted file mode 100644
index f952072e1..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Profile Configuration Commands Module
- * Exports for profile configuration commands
- */
-
-export { ProfileConfigurationCommands } from './profileConfigurationCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts
deleted file mode 100644
index abc98ccc8..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * View Theme Commands Module
- * Exports for view theme commands
- */
-
-export { ViewThemeCommands } from './viewThemeCommands';
diff --git a/apps/vscode-extension/src/code_analysis/commands/subsections/index.ts b/apps/vscode-extension/src/code_analysis/commands/subsections/index.ts
deleted file mode 100644
index 3306e8f1d..000000000
--- a/apps/vscode-extension/src/code_analysis/commands/subsections/index.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * New Code Analysis Subsection Commands
- * Exports for all subsection command modules
- */
-
-export { AnalysisSettingsCommands } from './analysis_settings/analysisSettingsCommands';
-export { ActiveAnalysesCommandRegistrations } from './active_analyses/activeAnalysesCommands';
-export { ProjectByLanguageCommands } from './project_by_language/projectByLanguageCommands';
-export { FilesByLanguageCommands } from './files_by_language/filesByLanguageCommands';
-
-// Export the shared interfaces
-export { CommandRegistration } from './analysis_settings/analysis_file_mode';
diff --git a/apps/vscode-extension/src/code_analysis/configuration/index.ts b/apps/vscode-extension/src/code_analysis/configuration/index.ts
deleted file mode 100644
index f1a16f50c..000000000
--- a/apps/vscode-extension/src/code_analysis/configuration/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Configuration Module
- * Central exports for all configuration functionality
- */
-
-export { AnalysisConfigurationStorage } from './analysisConfigurationStorage';
-export * from './models';
diff --git a/apps/vscode-extension/src/code_analysis/configuration/models/index.ts b/apps/vscode-extension/src/code_analysis/configuration/models/index.ts
deleted file mode 100644
index 81c797635..000000000
--- a/apps/vscode-extension/src/code_analysis/configuration/models/index.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Storage Models Module
- * Exports for all storage-related models and types
- */
-
-export {
- AnalysisFileMode,
- AnalysisDirectoryMode,
- ChartType,
- ViewTheme,
- AutoAnalysisDelay,
- AutoAnalysisDelayConfig,
- AnalysisConfiguration,
- ConfigurationMetadata,
- AnalysisConfigurationFile,
- DEFAULT_ANALYSIS_CONFIGURATION,
- DEFAULT_CONFIGURATION_FILE
-} from './analysisConfiguration';
diff --git a/apps/vscode-extension/src/code_analysis/dependencies/index.ts b/apps/vscode-extension/src/code_analysis/dependencies/index.ts
deleted file mode 100644
index 29ea0b9f3..000000000
--- a/apps/vscode-extension/src/code_analysis/dependencies/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './dependencyGraphModels';
-export * from './dependencyGraphService';
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/index.ts b/apps/vscode-extension/src/code_analysis/engine/components/customComponents/index.ts
deleted file mode 100644
index 1a15c8129..000000000
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/index.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-export * from './virtualScreenComponentAsset';
-export * from './commonComponentAsset';
-export * from './commonGitRefPickerComponentAsset';
-export * from './collaborationComponentAsset';
-export * from './avatarComponentAsset';
-export * from './codexrRoomComponentAsset';
-export * from './pointerPolicyComponentAsset';
-export * from './immersiveRigComponentAsset';
-export * from './xrChartMappingUiComponentAsset';
-export * from './xrChartDebugComponentAsset';
-export * from './analysisTableComponentAsset';
-export * from './analysisModeComponentAsset';
-export * from './historicalComparisonComponentAsset';
-export * from './projectEvolutionComponentAsset';
-export * from './dependencyGraphComponentAsset';
-export * from './guideScreenComponentAsset';
-export * from './logoComponentAsset';
-export * from './renderBudgetComponentAsset';
-export * from './dependencyVisualBudgetComponentAsset';
-export * from './codexrDebugComponentAsset';
diff --git a/apps/vscode-extension/src/code_analysis/historical/index.ts b/apps/vscode-extension/src/code_analysis/historical/index.ts
deleted file mode 100644
index 5d3421140..000000000
--- a/apps/vscode-extension/src/code_analysis/historical/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export * from './historicalComparisonModels';
-export * from './gitRepositoryService';
-export * from './gitAnalysisEligibility';
-export * from './historicalComparisonService';
-export * from './projectEvolutionService';
-export * from './analysisUpdateEvents';
diff --git a/apps/vscode-extension/src/code_analysis/refresh/index.ts b/apps/vscode-extension/src/code_analysis/refresh/index.ts
deleted file mode 100644
index 8551a36c4..000000000
--- a/apps/vscode-extension/src/code_analysis/refresh/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './analysisRefreshCoordinator';
diff --git a/apps/vscode-extension/src/code_analysis/views/index.ts b/apps/vscode-extension/src/code_analysis/views/index.ts
deleted file mode 100644
index 1272631af..000000000
--- a/apps/vscode-extension/src/code_analysis/views/index.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Analysis Views Module
- * Exports for analysis view components.
- */
-export { AnalysisSectionProvider } from './AnalysisSectionProvider';
-export { CodeAnalysisTreeItem } from './items';
-export { CodeAnalysisInteractionHandler } from './interactions';
-
diff --git a/apps/vscode-extension/src/code_analysis/views/interactions/index.ts b/apps/vscode-extension/src/code_analysis/views/interactions/index.ts
deleted file mode 100644
index a5f97030c..000000000
--- a/apps/vscode-extension/src/code_analysis/views/interactions/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * New Code Analysis Interactions Module
- * Exports for interaction handlers
- */
-
-export { CodeAnalysisInteractionHandler } from './handleAnalysisClicks';
-
diff --git a/apps/vscode-extension/src/code_analysis/views/items/index.ts b/apps/vscode-extension/src/code_analysis/views/items/index.ts
deleted file mode 100644
index 89077f3f1..000000000
--- a/apps/vscode-extension/src/code_analysis/views/items/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * New Code Analysis Items Module
- * Exports for view items
- */
-
-export { CodeAnalysisTreeItem } from './analysisItems';
-
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts
deleted file mode 100644
index 0b048f5fb..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Analysis Directory Mode Module
- * Exports for analysis directory mode setting
- */
-
-export { AnalysisDirectorySetting, AnalysisDirectoryMode } from './analysisDirectoryMode';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts
deleted file mode 100644
index fd7961ec5..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Analysis File Mode Component
- * Exports for analysis file mode functionality
- */
-
-export { AnalysisFileSetting, AnalysisFileMode } from './analysisFileMode';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts
deleted file mode 100644
index bc83fadc4..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Auto-Analysis Delay Setting Module
- * Exports for auto-analysis delay setting functionality
- */
-
-export { AutoAnalysisDelaySetting, AutoAnalysisDelayConfig, AutoAnalysisDelay } from './autoAnalysisDelay';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts
deleted file mode 100644
index 76a510265..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Auto-Analysis Enabled Setting Module
- * Exports for auto-analysis enabled setting functionality
- */
-
-export { AutoAnalysisEnabledSetting } from './autoAnalysisEnabled';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts
deleted file mode 100644
index 783541229..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Chart Type Directory Setting Module
- * Exports for chart type directory setting
- */
-
-export { ChartTypeDirectorySetting, AnalysisMode, ChartType, ChartTypeInfo } from './chartTypeDirectory';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts
deleted file mode 100644
index 5f69123a5..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Chart Type File Setting Module
- * Exports for chart type file setting
- */
-
-export { ChartTypeFileSetting, AnalysisMode, ChartType, ChartTypeInfo } from './chartTypeFile';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts
deleted file mode 100644
index 39bca295f..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Dimension Mapping Directory Setting Module
- * Exports for dimension mapping directory setting.
- */
-
-export { DimensionMappingDirectorySetting } from './dimensionMappingDirectory';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts
deleted file mode 100644
index f5f17c991..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Files by Language Sorting Setting Module
- * Exports for Files by Language sorting configuration
- */
-
-export { FilesByLanguageSortingSetting } from './filesByLanguageSorting';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/index.ts
deleted file mode 100644
index 52fdea544..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/index.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Analysis Settings Subsection Module
- * Exports for analysis settings subsection
- */
-
-export { AnalysisSettingsSubsectionProvider } from './analysisSettingsSubsectionProvider';
-export { AnalysisFileSetting, AnalysisFileMode } from './analysis_file_mode';
-export { AnalysisDirectorySetting, AnalysisDirectoryMode } from './analysis_directory_mode';
-export { ViewThemeSetting, ViewTheme } from './view_theme';
-export { AutoAnalysisDelaySetting, AutoAnalysisDelayConfig, AutoAnalysisDelay } from './auto_analysis_delay';
-export { AutoAnalysisEnabledSetting } from './auto_analysis_enabled';
-export { ProfileConfigurationSetting } from './profile_configuration';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts
deleted file mode 100644
index e2196a013..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Profile Configuration Module
- * Exports for profile configuration functionality
- */
-
-export { ProfileConfigurationSetting } from './profileConfiguration';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts
deleted file mode 100644
index 8cca4b239..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * View Theme Setting Module
- * Exports for view theme setting functionality
- */
-
-export { ViewThemeSetting, ViewTheme } from './viewTheme';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/files_by_language/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/files_by_language/index.ts
deleted file mode 100644
index 807681270..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/files_by_language/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Files by Language Subsection Module
- * Exports for files by language subsection
- */
-
-export { FilesByLanguageSubsectionProvider } from './filesByLanguageSubsectionProvider';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/index.ts
deleted file mode 100644
index 4eeaed07a..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/index.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * New Code Analysis View Subsections Module
- * Central exports for all view subsections
- */
-
-export { AnalysisSettingsSubsectionProvider, AnalysisFileSetting, AnalysisFileMode } from './analysis_settings';
-// SIMPLIFIED: Removed ActiveAnalysesSubsectionProvider (replaced by direct service usage)
-export { ProjectByLanguageSubsectionProvider } from './project_by_language';
-export { FilesByLanguageSubsectionProvider } from './files_by_language';
diff --git a/apps/vscode-extension/src/code_analysis/views/subsections/project_by_language/index.ts b/apps/vscode-extension/src/code_analysis/views/subsections/project_by_language/index.ts
deleted file mode 100644
index 24400f644..000000000
--- a/apps/vscode-extension/src/code_analysis/views/subsections/project_by_language/index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Project by Language Subsection Module
- * Exports for project by language subsection
- */
-
-export { ProjectByLanguageSubsectionProvider } from './projectByLanguageSubsectionProvider';
diff --git a/apps/vscode-extension/src/collaboration/index.ts b/apps/vscode-extension/src/collaboration/index.ts
deleted file mode 100644
index 01ddc5f4d..000000000
--- a/apps/vscode-extension/src/collaboration/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from './model/collaborationProfile';
-export * from './model/anonymousName';
-export * from './model/connectedParticipant';
-export * from './services/collaborationProfileManager';
diff --git a/apps/vscode-extension/src/commands/analysis/index.ts b/apps/vscode-extension/src/commands/analysis/index.ts
deleted file mode 100644
index 7c82a64a8..000000000
--- a/apps/vscode-extension/src/commands/analysis/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { getAnalysisCommandRegistrations } from './AnalysisCommands';
diff --git a/apps/vscode-extension/src/code_analysis/engine/analysisOrchestrator.ts b/apps/vscode-extension/src/core/analysis/analysisOrchestrator.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/analysisOrchestrator.ts
rename to apps/vscode-extension/src/core/analysis/analysisOrchestrator.ts
index 112e2e0bc..39341a1b9 100644
--- a/apps/vscode-extension/src/code_analysis/engine/analysisOrchestrator.ts
+++ b/apps/vscode-extension/src/core/analysis/analysisOrchestrator.ts
@@ -7,9 +7,9 @@ import * as vscode from 'vscode';
import { LauncherLivePanel } from './launchers/launcherLivePanel';
import { LauncherXRAnalysis } from './launchers/launcherXRAnalysis';
import { LauncherVisualizeDOM } from './launchers/launcherVisualizeDOM';
-import { UnifiedSessionRegistry } from './core/sessionRegistry';
-import { UnifiedAnalysisSession, AnalysisMode, TargetType } from './core/analysisSession';
-import { getLogger } from '../../core/logging/sink';
+import { UnifiedSessionRegistry } from './session/sessionRegistry';
+import { UnifiedAnalysisSession, AnalysisMode, TargetType } from './session/analysisSession';
+import { getLogger } from '../../platform/logging/sink';
const logger = getLogger('ANALYSIS_ORCHESTRATOR');
diff --git a/apps/vscode-extension/src/code_analysis/configuration/models/analysisConfiguration.ts b/apps/vscode-extension/src/core/analysis/configuration/analysisConfiguration.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/configuration/models/analysisConfiguration.ts
rename to apps/vscode-extension/src/core/analysis/configuration/analysisConfiguration.ts
diff --git a/apps/vscode-extension/src/code_analysis/configuration/analysisConfigurationStorage.ts b/apps/vscode-extension/src/core/analysis/configuration/analysisConfigurationStorage.ts
similarity index 99%
rename from apps/vscode-extension/src/code_analysis/configuration/analysisConfigurationStorage.ts
rename to apps/vscode-extension/src/core/analysis/configuration/analysisConfigurationStorage.ts
index b0a895b4b..c9632f67a 100644
--- a/apps/vscode-extension/src/code_analysis/configuration/analysisConfigurationStorage.ts
+++ b/apps/vscode-extension/src/core/analysis/configuration/analysisConfigurationStorage.ts
@@ -17,8 +17,8 @@ import {
FilesByLanguageSortingConfig,
XRBabiaUiConfig,
DEFAULT_ANALYSIS_CONFIGURATION
-} from './models/analysisConfiguration';
-import { getLogger } from '../../core/logging/sink';
+} from './analysisConfiguration';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('ANALYSIS');
diff --git a/apps/vscode-extension/src/utils/languageMetadata.ts b/apps/vscode-extension/src/core/analysis/languages/languageMetadata.ts
similarity index 100%
rename from apps/vscode-extension/src/utils/languageMetadata.ts
rename to apps/vscode-extension/src/core/analysis/languages/languageMetadata.ts
diff --git a/apps/vscode-extension/src/utils/supportedLanguages.ts b/apps/vscode-extension/src/core/analysis/languages/supportedLanguages.ts
similarity index 100%
rename from apps/vscode-extension/src/utils/supportedLanguages.ts
rename to apps/vscode-extension/src/core/analysis/languages/supportedLanguages.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/launchers/launchPipeline.ts b/apps/vscode-extension/src/core/analysis/launchers/launchPipeline.ts
similarity index 96%
rename from apps/vscode-extension/src/code_analysis/engine/launchers/launchPipeline.ts
rename to apps/vscode-extension/src/core/analysis/launchers/launchPipeline.ts
index a719fbd5c..9d8e04f30 100644
--- a/apps/vscode-extension/src/code_analysis/engine/launchers/launchPipeline.ts
+++ b/apps/vscode-extension/src/core/analysis/launchers/launchPipeline.ts
@@ -12,12 +12,12 @@
*/
import * as vscode from 'vscode';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { UnifiedSessionRegistry } from '../core/sessionRegistry';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { UnifiedSessionRegistry } from '../session/sessionRegistry';
import { ProcessedRequirements } from '../processors/FileRequirementProcessor';
import { SaveFiles } from '../utils/saveFiles';
-import { SessionServerManager } from '../servers/sessionServerManager';
-import { getLogger } from '../../../core/logging/sink';
+import { SessionServerManager } from '../session-servers/sessionServerManager';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LAUNCH_PIPELINE');
diff --git a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherLivePanel.ts b/apps/vscode-extension/src/core/analysis/launchers/launcherLivePanel.ts
similarity index 93%
rename from apps/vscode-extension/src/code_analysis/engine/launchers/launcherLivePanel.ts
rename to apps/vscode-extension/src/core/analysis/launchers/launcherLivePanel.ts
index 28251e5de..71feaf9c2 100644
--- a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherLivePanel.ts
+++ b/apps/vscode-extension/src/core/analysis/launchers/launcherLivePanel.ts
@@ -7,13 +7,13 @@
*/
import * as vscode from 'vscode';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { UnifiedSessionRegistry } from '../core/sessionRegistry';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { UnifiedSessionRegistry } from '../session/sessionRegistry';
import { FileRequirementProcessor, ProcessedRequirements } from '../processors/FileRequirementProcessor';
import { SessionWatcherManager } from '../watchers/sessionWatcherManager';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
import { executeLaunchPipeline } from './launchPipeline';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LAUNCHER_LIVE_PANEL');
diff --git a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherVisualizeDOM.ts b/apps/vscode-extension/src/core/analysis/launchers/launcherVisualizeDOM.ts
similarity index 94%
rename from apps/vscode-extension/src/code_analysis/engine/launchers/launcherVisualizeDOM.ts
rename to apps/vscode-extension/src/core/analysis/launchers/launcherVisualizeDOM.ts
index d5bfe4537..4fa1c923b 100644
--- a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherVisualizeDOM.ts
+++ b/apps/vscode-extension/src/core/analysis/launchers/launcherVisualizeDOM.ts
@@ -4,11 +4,11 @@
*/
import * as vscode from 'vscode';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
import { FileRequirementProcessor } from '../processors/FileRequirementProcessor';
import { SessionWatcherManager } from '../watchers/sessionWatcherManager';
import { executeLaunchPipeline } from './launchPipeline';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LAUNCHER_VISUALIZE_DOM');
diff --git a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherXRAnalysis.ts b/apps/vscode-extension/src/core/analysis/launchers/launcherXRAnalysis.ts
similarity index 93%
rename from apps/vscode-extension/src/code_analysis/engine/launchers/launcherXRAnalysis.ts
rename to apps/vscode-extension/src/core/analysis/launchers/launcherXRAnalysis.ts
index ad9f045d8..5abf2230f 100644
--- a/apps/vscode-extension/src/code_analysis/engine/launchers/launcherXRAnalysis.ts
+++ b/apps/vscode-extension/src/core/analysis/launchers/launcherXRAnalysis.ts
@@ -8,17 +8,17 @@
*/
import * as vscode from 'vscode';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { UnifiedSessionRegistry } from '../core/sessionRegistry';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { UnifiedSessionRegistry } from '../session/sessionRegistry';
import { FileRequirementProcessor, ProcessedRequirements } from '../processors/FileRequirementProcessor';
import { SessionWatcherManager } from '../watchers/sessionWatcherManager';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
-import { DimensionValidator } from '../../../babia_templates/processing/dimensionValidator';
-import { BabiaChartRegistry } from '../../../babia_templates/registry/chartRegistry';
-import { DimensionMapping } from '../../../babia_templates/models/chartModels';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
+import { DimensionValidator } from '../../charts/processing/dimensionValidator';
+import { BabiaChartRegistry } from '../../charts/chartRegistry';
+import { DimensionMapping } from '../../charts/chartModels';
import { executeLaunchPipeline } from './launchPipeline';
-import { XRFieldSchemaService } from '../../services/xrFieldSchemaService';
-import { getLogger } from '../../../core/logging/sink';
+import { XRFieldSchemaService } from '../python/xrFieldSchemaService';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LAUNCHER_XR_ANALYSIS');
diff --git a/apps/vscode-extension/src/code_analysis/engine/parsers/directoryXRParser.ts b/apps/vscode-extension/src/core/analysis/parsers/directoryXRParser.ts
similarity index 70%
rename from apps/vscode-extension/src/code_analysis/engine/parsers/directoryXRParser.ts
rename to apps/vscode-extension/src/core/analysis/parsers/directoryXRParser.ts
index 26dd62720..6c856b05e 100644
--- a/apps/vscode-extension/src/code_analysis/engine/parsers/directoryXRParser.ts
+++ b/apps/vscode-extension/src/core/analysis/parsers/directoryXRParser.ts
@@ -6,62 +6,35 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
-import { TemplateProcessor } from '../../../babia_templates/processing/templateProcessor';
-import { ExecutePython } from '../utils/executePython';
-import { DimensionMapping } from '../../../babia_templates/models/chartModels';
-import { XRFieldSchemaService } from '../../services/xrFieldSchemaService';
-import { SHA256Generator } from '../../../utils/sha256Generator';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
+import { TemplateProcessor } from '../../charts/processing/templateProcessor';
+import { ExecutePython } from '../python/executePython';
+import { DimensionMapping } from '../../charts/chartModels';
+import { XRFieldSchemaService } from '../python/xrFieldSchemaService';
+import { SHA256Generator } from '../utils/sha256Generator';
import { buildTrackedFileSnapshot } from '../watchers/directorySnapshot';
import { resolveTrackedSystemPath } from '../watchers/directoryReanalysisData';
-import {
- ANALYSIS_TABLE_RUNTIME_OUTPUT_NAME,
- ANALYSIS_MODE_RUNTIME_OUTPUT_NAME,
- HISTORICAL_COMPARISON_RUNTIME_OUTPUT_NAME,
- PROJECT_EVOLUTION_RUNTIME_OUTPUT_NAME,
- DEPENDENCY_GRAPH_RUNTIME_OUTPUT_NAME,
- GUIDE_SCREEN_RUNTIME_OUTPUT_NAME,
- GUIDE_PAGE_OUTPUT_NAME,
- readGuideScreenRuntimeContent,
- readGuidePageContent,
- LOGO_RUNTIME_OUTPUT_NAME,
- readLogoRuntimeContent,
- RENDER_BUDGET_RUNTIME_OUTPUT_NAME,
- DEPENDENCY_VISUAL_BUDGET_RUNTIME_OUTPUT_NAME,
- CODEXR_DEBUG_RUNTIME_OUTPUT_NAME,
- CODEXR_COMMON_RUNTIME_OUTPUT_NAME,
- CODEXR_AVATAR_RUNTIME_OUTPUT_NAME,
- CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME,
- CODEXR_ROOM_RUNTIME_OUTPUT_NAME,
- readAnalysisTableRuntimeContent,
- readAnalysisModeRuntimeContent,
- readHistoricalComparisonRuntimeContent,
- readProjectEvolutionRuntimeContent,
- readDependencyGraphRuntimeContent,
- readRenderBudgetRuntimeContent,
- readDependencyVisualBudgetRuntimeContent,
- readCodeXrDebugRuntimeContent,
- readCodeXrCommonRuntimeContent,
- readCodeXrGitRefPickerContent,
- CODEXR_GIT_REF_PICKER_OUTPUT_NAME,
- readCodeXrAvatarRuntimeContent,
- readCodeXrCollaborationRuntimeContent,
- readCodeXrRoomRuntimeContent,
- readCodeXrRoomTextureContents,
- readVirtualScreenManagerRuntimeContent,
- VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME,
- readVirtualScreenRuntimeContent,
- VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME,
- readXrChartDebugRuntimeContent,
- XR_CHART_DEBUG_RUNTIME_OUTPUT_NAME,
- readXrChartMappingUiRuntimeContent,
- XR_CHART_MAPPING_UI_RUNTIME_OUTPUT_NAME,
- readPointerPolicyRuntimeContent,
- POINTER_POLICY_RUNTIME_OUTPUT_NAME,
- readImmersiveRigRuntimeContent,
- IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME,
-} from '../components/customComponents';
+import { ANALYSIS_TABLE_RUNTIME_OUTPUT_NAME, readAnalysisTableRuntimeContent } from '../scene-assets/analysisTableComponentAsset';
+import { ANALYSIS_MODE_RUNTIME_OUTPUT_NAME, readAnalysisModeRuntimeContent } from '../scene-assets/analysisModeComponentAsset';
+import { HISTORICAL_COMPARISON_RUNTIME_OUTPUT_NAME, readHistoricalComparisonRuntimeContent } from '../scene-assets/historicalComparisonComponentAsset';
+import { PROJECT_EVOLUTION_RUNTIME_OUTPUT_NAME, readProjectEvolutionRuntimeContent } from '../scene-assets/projectEvolutionComponentAsset';
+import { DEPENDENCY_GRAPH_RUNTIME_OUTPUT_NAME, readDependencyGraphRuntimeContent } from '../scene-assets/dependencyGraphComponentAsset';
+import { GUIDE_SCREEN_RUNTIME_OUTPUT_NAME, GUIDE_PAGE_OUTPUT_NAME, readGuideScreenRuntimeContent, readGuidePageContent } from '../scene-assets/guideScreenComponentAsset';
+import { LOGO_RUNTIME_OUTPUT_NAME, readLogoRuntimeContent } from '../scene-assets/logoComponentAsset';
+import { RENDER_BUDGET_RUNTIME_OUTPUT_NAME, readRenderBudgetRuntimeContent } from '../scene-assets/renderBudgetComponentAsset';
+import { DEPENDENCY_VISUAL_BUDGET_RUNTIME_OUTPUT_NAME, readDependencyVisualBudgetRuntimeContent } from '../scene-assets/dependencyVisualBudgetComponentAsset';
+import { CODEXR_DEBUG_RUNTIME_OUTPUT_NAME, readCodeXrDebugRuntimeContent } from '../scene-assets/codexrDebugComponentAsset';
+import { CODEXR_COMMON_RUNTIME_OUTPUT_NAME, readCodeXrCommonRuntimeContent } from '../scene-assets/commonComponentAsset';
+import { CODEXR_AVATAR_RUNTIME_OUTPUT_NAME, readCodeXrAvatarRuntimeContent } from '../scene-assets/avatarComponentAsset';
+import { CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME, readCodeXrCollaborationRuntimeContent } from '../scene-assets/collaborationComponentAsset';
+import { CODEXR_ROOM_RUNTIME_OUTPUT_NAME, readCodeXrRoomRuntimeContent, readCodeXrRoomTextureContents } from '../scene-assets/codexrRoomComponentAsset';
+import { readCodeXrGitRefPickerContent, CODEXR_GIT_REF_PICKER_OUTPUT_NAME } from '../scene-assets/commonGitRefPickerComponentAsset';
+import { readVirtualScreenManagerRuntimeContent, VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME, readVirtualScreenRuntimeContent, VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME } from '../scene-assets/virtualScreenComponentAsset';
+import { readXrChartDebugRuntimeContent, XR_CHART_DEBUG_RUNTIME_OUTPUT_NAME } from '../scene-assets/xrChartDebugComponentAsset';
+import { readXrChartMappingUiRuntimeContent, XR_CHART_MAPPING_UI_RUNTIME_OUTPUT_NAME } from '../scene-assets/xrChartMappingUiComponentAsset';
+import { readPointerPolicyRuntimeContent, POINTER_POLICY_RUNTIME_OUTPUT_NAME } from '../scene-assets/pointerPolicyComponentAsset';
+import { readImmersiveRigRuntimeContent, IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME } from '../scene-assets/immersiveRigComponentAsset';
import { resolveTemplatePath } from '../../../platform/templatePaths';
/**
diff --git a/apps/vscode-extension/src/code_analysis/engine/parsers/fileXRParser.ts b/apps/vscode-extension/src/core/analysis/parsers/fileXRParser.ts
similarity index 73%
rename from apps/vscode-extension/src/code_analysis/engine/parsers/fileXRParser.ts
rename to apps/vscode-extension/src/core/analysis/parsers/fileXRParser.ts
index 6b16ed107..e8c62a758 100644
--- a/apps/vscode-extension/src/code_analysis/engine/parsers/fileXRParser.ts
+++ b/apps/vscode-extension/src/core/analysis/parsers/fileXRParser.ts
@@ -1,60 +1,35 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
-import { DimensionValidator } from '../../../babia_templates/processing/dimensionValidator';
-import { chartTemplates } from '../../../babia_templates/charts/templateCharts';
-import { ChartMetadata, DimensionMapping } from '../../../babia_templates/models/chartModels';
-import { TemplateProcessor } from '../../../babia_templates/processing/templateProcessor';
-import { ExecutePython } from '../utils/executePython';
-import { XRFieldSchemaService } from '../../services/xrFieldSchemaService';
-import {
- ANALYSIS_TABLE_RUNTIME_OUTPUT_NAME,
- ANALYSIS_MODE_RUNTIME_OUTPUT_NAME,
- HISTORICAL_COMPARISON_RUNTIME_OUTPUT_NAME,
- PROJECT_EVOLUTION_RUNTIME_OUTPUT_NAME,
- CODEXR_COMMON_RUNTIME_OUTPUT_NAME,
- CODEXR_AVATAR_RUNTIME_OUTPUT_NAME,
- copyAnalysisTableRuntimeToOutput,
- copyAnalysisModeRuntimeToOutput,
- copyHistoricalComparisonRuntimeToOutput,
- copyProjectEvolutionRuntimeToOutput,
- copyCodeXrCommonRuntimeToOutput,
- copyCodeXrGitRefPickerToOutput,
- CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME,
- copyCodeXrRoomAssetsToOutput,
- copyCodeXrAvatarRuntimeToOutput,
- copyCodeXrCollaborationRuntimeToOutput,
- CODEXR_ROOM_RUNTIME_OUTPUT_NAME,
- copyVirtualScreenManagerRuntimeToOutput,
- copyVirtualScreenRuntimeToOutput,
- VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME,
- VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME,
- copyXrChartDebugRuntimeToOutput,
- XR_CHART_DEBUG_RUNTIME_OUTPUT_NAME,
- copyXrChartMappingUiRuntimeToOutput,
- XR_CHART_MAPPING_UI_RUNTIME_OUTPUT_NAME,
- copyPointerPolicyRuntimeToOutput,
- POINTER_POLICY_RUNTIME_OUTPUT_NAME,
- copyImmersiveRigRuntimeToOutput,
- IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME,
- copyCodeXrDebugRuntimeToOutput,
- CODEXR_DEBUG_RUNTIME_OUTPUT_NAME,
- copyRenderBudgetRuntimeToOutput,
- RENDER_BUDGET_RUNTIME_OUTPUT_NAME,
- copyDependencyVisualBudgetRuntimeToOutput,
- DEPENDENCY_VISUAL_BUDGET_RUNTIME_OUTPUT_NAME,
- copyDependencyGraphRuntimeToOutput,
- DEPENDENCY_GRAPH_RUNTIME_OUTPUT_NAME,
- copyGuideScreenRuntimeToOutput,
- copyGuidePageToOutput,
- GUIDE_SCREEN_RUNTIME_OUTPUT_NAME,
- GUIDE_PAGE_OUTPUT_NAME,
- copyLogoRuntimeToOutput,
- LOGO_RUNTIME_OUTPUT_NAME,
-} from '../components/customComponents';
-import { getLogger } from '../../../core/logging/sink';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
+import { DimensionValidator } from '../../charts/processing/dimensionValidator';
+import { chartTemplates } from '../../charts/templateCharts';
+import { ChartMetadata, DimensionMapping } from '../../charts/chartModels';
+import { TemplateProcessor } from '../../charts/processing/templateProcessor';
+import { ExecutePython } from '../python/executePython';
+import { XRFieldSchemaService } from '../python/xrFieldSchemaService';
+import { ANALYSIS_TABLE_RUNTIME_OUTPUT_NAME, copyAnalysisTableRuntimeToOutput } from '../scene-assets/analysisTableComponentAsset';
+import { ANALYSIS_MODE_RUNTIME_OUTPUT_NAME, copyAnalysisModeRuntimeToOutput } from '../scene-assets/analysisModeComponentAsset';
+import { HISTORICAL_COMPARISON_RUNTIME_OUTPUT_NAME, copyHistoricalComparisonRuntimeToOutput } from '../scene-assets/historicalComparisonComponentAsset';
+import { PROJECT_EVOLUTION_RUNTIME_OUTPUT_NAME, copyProjectEvolutionRuntimeToOutput } from '../scene-assets/projectEvolutionComponentAsset';
+import { CODEXR_COMMON_RUNTIME_OUTPUT_NAME, copyCodeXrCommonRuntimeToOutput } from '../scene-assets/commonComponentAsset';
+import { CODEXR_AVATAR_RUNTIME_OUTPUT_NAME, copyCodeXrAvatarRuntimeToOutput } from '../scene-assets/avatarComponentAsset';
+import { copyCodeXrGitRefPickerToOutput } from '../scene-assets/commonGitRefPickerComponentAsset';
+import { CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME, copyCodeXrCollaborationRuntimeToOutput } from '../scene-assets/collaborationComponentAsset';
+import { copyCodeXrRoomAssetsToOutput, CODEXR_ROOM_RUNTIME_OUTPUT_NAME } from '../scene-assets/codexrRoomComponentAsset';
+import { copyVirtualScreenManagerRuntimeToOutput, copyVirtualScreenRuntimeToOutput, VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME, VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME } from '../scene-assets/virtualScreenComponentAsset';
+import { copyXrChartDebugRuntimeToOutput, XR_CHART_DEBUG_RUNTIME_OUTPUT_NAME } from '../scene-assets/xrChartDebugComponentAsset';
+import { copyXrChartMappingUiRuntimeToOutput, XR_CHART_MAPPING_UI_RUNTIME_OUTPUT_NAME } from '../scene-assets/xrChartMappingUiComponentAsset';
+import { copyPointerPolicyRuntimeToOutput, POINTER_POLICY_RUNTIME_OUTPUT_NAME } from '../scene-assets/pointerPolicyComponentAsset';
+import { copyImmersiveRigRuntimeToOutput, IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME } from '../scene-assets/immersiveRigComponentAsset';
+import { copyCodeXrDebugRuntimeToOutput, CODEXR_DEBUG_RUNTIME_OUTPUT_NAME } from '../scene-assets/codexrDebugComponentAsset';
+import { copyRenderBudgetRuntimeToOutput, RENDER_BUDGET_RUNTIME_OUTPUT_NAME } from '../scene-assets/renderBudgetComponentAsset';
+import { copyDependencyVisualBudgetRuntimeToOutput, DEPENDENCY_VISUAL_BUDGET_RUNTIME_OUTPUT_NAME } from '../scene-assets/dependencyVisualBudgetComponentAsset';
+import { copyDependencyGraphRuntimeToOutput, DEPENDENCY_GRAPH_RUNTIME_OUTPUT_NAME } from '../scene-assets/dependencyGraphComponentAsset';
+import { copyGuideScreenRuntimeToOutput, copyGuidePageToOutput, GUIDE_SCREEN_RUNTIME_OUTPUT_NAME, GUIDE_PAGE_OUTPUT_NAME } from '../scene-assets/guideScreenComponentAsset';
+import { copyLogoRuntimeToOutput, LOGO_RUNTIME_OUTPUT_NAME } from '../scene-assets/logoComponentAsset';
+import { getLogger } from '../../../platform/logging/sink';
import { resolveTemplatePath } from '../../../platform/templatePaths';
const logger = getLogger('FILE_XR_PARSER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/parsers/livePanelParser.ts b/apps/vscode-extension/src/core/analysis/parsers/livePanelParser.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/parsers/livePanelParser.ts
rename to apps/vscode-extension/src/core/analysis/parsers/livePanelParser.ts
index c663aacc3..c0fa5585c 100644
--- a/apps/vscode-extension/src/code_analysis/engine/parsers/livePanelParser.ts
+++ b/apps/vscode-extension/src/core/analysis/parsers/livePanelParser.ts
@@ -13,9 +13,9 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { generateNonce } from '../../../utils/nonceGenerator';
+import { generateNonce } from '../../../shared/nonceGenerator';
import { ThemeUtils } from '../utils/themeUtils';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
import { resolveTemplatePath } from '../../../platform/templatePaths';
const logger = getLogger('LIVE_PANEL_PARSER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/parsers/visualizeDOMParser.ts b/apps/vscode-extension/src/core/analysis/parsers/visualizeDOMParser.ts
similarity index 89%
rename from apps/vscode-extension/src/code_analysis/engine/parsers/visualizeDOMParser.ts
rename to apps/vscode-extension/src/core/analysis/parsers/visualizeDOMParser.ts
index 8da65f247..bdb2ae267 100644
--- a/apps/vscode-extension/src/code_analysis/engine/parsers/visualizeDOMParser.ts
+++ b/apps/vscode-extension/src/core/analysis/parsers/visualizeDOMParser.ts
@@ -1,23 +1,12 @@
import * as vscode from 'vscode';
import * as path from 'path';
-import { TemplateHTMLProcessor, HTMLTemplateData } from '../../../babia_templates/processing/templateHTMLProcessor';
-import {
- CODEXR_AVATAR_RUNTIME_OUTPUT_NAME,
- CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME,
- CODEXR_DOM_SCENE_COLLAB_RUNTIME_OUTPUT_NAME,
- readCodeXrAvatarRuntimeContent,
- readCodeXrCollaborationRuntimeContent,
- readCodeXrDomSceneCollaborationRuntimeContent,
- readVirtualScreenManagerRuntimeContent,
- VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME,
- readVirtualScreenRuntimeContent,
- VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME,
- readPointerPolicyRuntimeContent,
- POINTER_POLICY_RUNTIME_OUTPUT_NAME,
- readImmersiveRigRuntimeContent,
- IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME,
-} from '../components/customComponents';
-import { getLogger } from '../../../core/logging/sink';
+import { TemplateHTMLProcessor, HTMLTemplateData } from '../../charts/processing/templateHTMLProcessor';
+import { CODEXR_AVATAR_RUNTIME_OUTPUT_NAME, readCodeXrAvatarRuntimeContent } from '../scene-assets/avatarComponentAsset';
+import { CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME, CODEXR_DOM_SCENE_COLLAB_RUNTIME_OUTPUT_NAME, readCodeXrCollaborationRuntimeContent, readCodeXrDomSceneCollaborationRuntimeContent } from '../scene-assets/collaborationComponentAsset';
+import { readVirtualScreenManagerRuntimeContent, VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME, readVirtualScreenRuntimeContent, VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME } from '../scene-assets/virtualScreenComponentAsset';
+import { readPointerPolicyRuntimeContent, POINTER_POLICY_RUNTIME_OUTPUT_NAME } from '../scene-assets/pointerPolicyComponentAsset';
+import { readImmersiveRigRuntimeContent, IMMERSIVE_RIG_RUNTIME_OUTPUT_NAME } from '../scene-assets/immersiveRigComponentAsset';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DOM_PARSER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/processors/FileRequirementProcessor.ts b/apps/vscode-extension/src/core/analysis/processors/FileRequirementProcessor.ts
similarity index 93%
rename from apps/vscode-extension/src/code_analysis/engine/processors/FileRequirementProcessor.ts
rename to apps/vscode-extension/src/core/analysis/processors/FileRequirementProcessor.ts
index 461e7bed2..a2ce3edca 100644
--- a/apps/vscode-extension/src/code_analysis/engine/processors/FileRequirementProcessor.ts
+++ b/apps/vscode-extension/src/core/analysis/processors/FileRequirementProcessor.ts
@@ -1,8 +1,8 @@
import * as vscode from 'vscode';
import { ThemeUtils } from '../utils/themeUtils';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
import { AnalysisBootstrap, BootstrapProcessedRequirements } from './analysisBootstrap';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('FILE_REQUIREMENT_PROCESSOR');
diff --git a/apps/vscode-extension/src/code_analysis/engine/processors/analysisBootstrap.ts b/apps/vscode-extension/src/core/analysis/processors/analysisBootstrap.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/processors/analysisBootstrap.ts
rename to apps/vscode-extension/src/core/analysis/processors/analysisBootstrap.ts
index d5ec10087..6288dd673 100644
--- a/apps/vscode-extension/src/code_analysis/engine/processors/analysisBootstrap.ts
+++ b/apps/vscode-extension/src/core/analysis/processors/analysisBootstrap.ts
@@ -1,15 +1,15 @@
import * as vscode from 'vscode';
import * as path from 'path';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { ExecutePython } from '../utils/executePython';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { ExecutePython } from '../python/executePython';
import { LivePanelParser } from '../parsers/livePanelParser';
import { VisualizeDOMParser } from '../parsers/visualizeDOMParser';
import { FileXRParser, ParsedXRFileAnalysis } from '../parsers/fileXRParser';
import { directoryXRParser, DirectoryXRParsingResult } from '../parsers/directoryXRParser';
-import { SHA256Generator } from '../../../utils/sha256Generator';
+import { SHA256Generator } from '../utils/sha256Generator';
import { buildTrackedFileSnapshot } from '../watchers/directorySnapshot';
import { resolveTrackedSystemPath } from '../watchers/directoryReanalysisData';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('ANALYSIS_BOOTSTRAP');
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/backendScriptPath.ts b/apps/vscode-extension/src/core/analysis/python/backendScriptPath.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/utils/backendScriptPath.ts
rename to apps/vscode-extension/src/core/analysis/python/backendScriptPath.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/executePython.ts b/apps/vscode-extension/src/core/analysis/python/executePython.ts
similarity index 99%
rename from apps/vscode-extension/src/code_analysis/engine/utils/executePython.ts
rename to apps/vscode-extension/src/core/analysis/python/executePython.ts
index 94e0d8f85..d1b5bac18 100644
--- a/apps/vscode-extension/src/code_analysis/engine/utils/executePython.ts
+++ b/apps/vscode-extension/src/core/analysis/python/executePython.ts
@@ -2,11 +2,11 @@ import * as vscode from 'vscode';
import * as path from 'path';
import * as cp from 'child_process';
import * as fs from 'fs';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { VenvManager } from '../../../python_env/runtime/venvManager';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { VenvManager } from '../../python-env/venvManager';
import { getBackendScriptCandidates, resolveBackendScriptPath } from './backendScriptPath';
import { classifyStderrLine } from './pythonStderrStream';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('EXECUTE_PYTHON');
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/pythonStderrStream.ts b/apps/vscode-extension/src/core/analysis/python/pythonStderrStream.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/utils/pythonStderrStream.ts
rename to apps/vscode-extension/src/core/analysis/python/pythonStderrStream.ts
diff --git a/apps/vscode-extension/src/code_analysis/services/xrFieldSchemaService.ts b/apps/vscode-extension/src/core/analysis/python/xrFieldSchemaService.ts
similarity index 94%
rename from apps/vscode-extension/src/code_analysis/services/xrFieldSchemaService.ts
rename to apps/vscode-extension/src/core/analysis/python/xrFieldSchemaService.ts
index 73cad5588..0f5c535d8 100644
--- a/apps/vscode-extension/src/code_analysis/services/xrFieldSchemaService.ts
+++ b/apps/vscode-extension/src/core/analysis/python/xrFieldSchemaService.ts
@@ -1,13 +1,13 @@
import * as vscode from 'vscode';
-import { DimensionDataType } from '../../babia_templates/models/chartModels';
+import { DimensionDataType } from '../../charts/chartModels';
import type {
XRFieldDefinition,
XRFieldSchema,
XRFieldTypeMap,
XRSchemaTargetType,
-} from '../../babia_templates/models/xrFieldModels';
-import { ExecutePython } from '../engine/utils/executePython';
-import { getLogger } from '../../core/logging/sink';
+} from '../../charts/xrFieldModels';
+import { ExecutePython } from './executePython';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('XR_FIELD_SCHEMA');
@@ -17,7 +17,7 @@ export type {
XRFieldTypeMap,
XRFieldValueType,
XRSchemaTargetType,
-} from '../../babia_templates/models/xrFieldModels';
+} from '../../charts/xrFieldModels';
interface GetSchemaOptions {
allowCacheFallback?: boolean;
diff --git a/apps/vscode-extension/src/code_analysis/refresh/analysisRefreshCoordinator.ts b/apps/vscode-extension/src/core/analysis/refresh/analysisRefreshCoordinator.ts
similarity index 99%
rename from apps/vscode-extension/src/code_analysis/refresh/analysisRefreshCoordinator.ts
rename to apps/vscode-extension/src/core/analysis/refresh/analysisRefreshCoordinator.ts
index 59af3335e..264091555 100644
--- a/apps/vscode-extension/src/code_analysis/refresh/analysisRefreshCoordinator.ts
+++ b/apps/vscode-extension/src/core/analysis/refresh/analysisRefreshCoordinator.ts
@@ -1,5 +1,5 @@
import { defaultControllerView } from './analysisViewModes';
-import { getLogger } from '../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('ANALYSIS_REFRESH_COORDINATOR');
diff --git a/apps/vscode-extension/src/code_analysis/refresh/analysisViewModes.ts b/apps/vscode-extension/src/core/analysis/refresh/analysisViewModes.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/refresh/analysisViewModes.ts
rename to apps/vscode-extension/src/core/analysis/refresh/analysisViewModes.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/analysisModeComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/analysisModeComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/analysisModeComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/analysisModeComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/analysisTableComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/analysisTableComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/analysisTableComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/analysisTableComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/avatarComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/avatarComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/avatarComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/avatarComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/codexrDebugComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/codexrDebugComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/codexrDebugComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/codexrDebugComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/codexrRoomComponentAsset.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/codexrRoomComponentAsset.ts
index 541b73656..7e9d347bc 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/codexrRoomComponentAsset.ts
@@ -6,7 +6,7 @@ import {
assertSourceExists,
resolveRuntimeAssetSourcePath,
} from './singleFileRuntimeAssets';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
const ROOM_RUNTIME = SINGLE_FILE_RUNTIME_ASSETS.room;
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/collaborationComponentAsset.ts
similarity index 96%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/collaborationComponentAsset.ts
index e0f0a1481..bbd0f4ded 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/collaborationComponentAsset.ts
@@ -2,7 +2,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { assembleRuntimeContent, writeAssembledRuntimeToOutput } from './runtimeAssembly';
import { assertSourceExists } from './singleFileRuntimeAssets';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
export const CODEXR_COLLABORATION_RUNTIME_OUTPUT_NAME = 'codexrCollaborationRuntime.js';
export const CODEXR_DOM_SCENE_COLLAB_RUNTIME_OUTPUT_NAME = 'codexrDomSceneCollaborationRuntime.js';
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/commonComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/commonComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/commonComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/commonComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/commonGitRefPickerComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/commonGitRefPickerComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/commonGitRefPickerComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/commonGitRefPickerComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/dependencyGraphComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/dependencyGraphComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/dependencyGraphComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/dependencyGraphComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/dependencyVisualBudgetComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/dependencyVisualBudgetComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/dependencyVisualBudgetComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/dependencyVisualBudgetComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/guideScreenComponentAsset.ts
similarity index 95%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/guideScreenComponentAsset.ts
index 31582e621..afe749245 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/guideScreenComponentAsset.ts
@@ -1,7 +1,7 @@
import * as path from 'path';
import * as fs from 'fs';
import { assembleRuntimeContent, writeAssembledRuntimeToOutput } from './runtimeAssembly';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
export const GUIDE_SCREEN_RUNTIME_OUTPUT_NAME = 'guideScreenRuntime.js';
export const GUIDE_PAGE_OUTPUT_NAME = 'guide.html';
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/historicalComparisonComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/historicalComparisonComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/historicalComparisonComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/historicalComparisonComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/immersiveRigComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/immersiveRigComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/immersiveRigComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/immersiveRigComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/logoComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/logoComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/logoComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/logoComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/pointerPolicyComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/pointerPolicyComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/pointerPolicyComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/pointerPolicyComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/projectEvolutionComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/projectEvolutionComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/projectEvolutionComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/projectEvolutionComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/renderBudgetComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/renderBudgetComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/renderBudgetComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/renderBudgetComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/runtimeAssembly.ts b/apps/vscode-extension/src/core/analysis/scene-assets/runtimeAssembly.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/runtimeAssembly.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/runtimeAssembly.ts
index d0dafe9d5..e6aea44c6 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/runtimeAssembly.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/runtimeAssembly.ts
@@ -1,6 +1,6 @@
import * as path from 'path';
import * as fs from 'fs';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
/**
* Assembly of multi-part CodeXR browser runtimes.
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts b/apps/vscode-extension/src/core/analysis/scene-assets/singleFileRuntimeAssets.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/singleFileRuntimeAssets.ts
index ef81d2154..0a8a0af54 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/singleFileRuntimeAssets.ts
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
/**
* Scene runtimes shipped as one JS file, copied verbatim from
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/virtualScreenComponentAsset.ts
similarity index 96%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/virtualScreenComponentAsset.ts
index b0a6888f2..cf19f891f 100644
--- a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts
+++ b/apps/vscode-extension/src/core/analysis/scene-assets/virtualScreenComponentAsset.ts
@@ -2,7 +2,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { assembleRuntimeContent, writeAssembledRuntimeToOutput } from './runtimeAssembly';
import { assertSourceExists } from './singleFileRuntimeAssets';
-import { resolveTemplatePath } from '../../../../platform/templatePaths';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
export const VIRTUAL_SCREEN_RUNTIME_OUTPUT_NAME = 'virtualScreenRuntime.js';
export const VIRTUAL_SCREEN_MANAGER_RUNTIME_OUTPUT_NAME = 'codexrMultiScreenManagerRuntime.js';
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/xrChartDebugComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/xrChartDebugComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/xrChartDebugComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/xrChartDebugComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/components/customComponents/xrChartMappingUiComponentAsset.ts b/apps/vscode-extension/src/core/analysis/scene-assets/xrChartMappingUiComponentAsset.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/components/customComponents/xrChartMappingUiComponentAsset.ts
rename to apps/vscode-extension/src/core/analysis/scene-assets/xrChartMappingUiComponentAsset.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/servers/serverLaunchOrchestrator.ts b/apps/vscode-extension/src/core/analysis/session-servers/serverLaunchOrchestrator.ts
similarity index 94%
rename from apps/vscode-extension/src/code_analysis/engine/servers/serverLaunchOrchestrator.ts
rename to apps/vscode-extension/src/core/analysis/session-servers/serverLaunchOrchestrator.ts
index e128c9408..197090e87 100644
--- a/apps/vscode-extension/src/code_analysis/engine/servers/serverLaunchOrchestrator.ts
+++ b/apps/vscode-extension/src/core/analysis/session-servers/serverLaunchOrchestrator.ts
@@ -6,16 +6,16 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { MultiServerLauncher } from '../../../servers/runtime/multiServerLauncher';
-import { ServerSettingsManager } from '../../../servers/storage/serverSettingsManager';
-import { fileToServerMap } from '../../../utils/fileToServerMap';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
+import { MultiServerLauncher } from '../../server/multiServerLauncher';
+import { ServerSettingsManager } from '../../server/serverSettingsManager';
+import { fileToServerMap } from '../../server/fileToServerMap';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
import {
ServerLaunchRequest,
ServerLaunchResult,
SessionServerInfo,
-} from './models/sessionServerModels';
-import { getLogger } from '../../../core/logging/sink';
+} from './sessionServerModels';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SERVER_LAUNCH_ORCHESTRATOR');
diff --git a/apps/vscode-extension/src/code_analysis/engine/servers/sessionServerManager.ts b/apps/vscode-extension/src/core/analysis/session-servers/sessionServerManager.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/servers/sessionServerManager.ts
rename to apps/vscode-extension/src/core/analysis/session-servers/sessionServerManager.ts
index 913c3d517..96a8eced9 100644
--- a/apps/vscode-extension/src/code_analysis/engine/servers/sessionServerManager.ts
+++ b/apps/vscode-extension/src/core/analysis/session-servers/sessionServerManager.ts
@@ -6,13 +6,13 @@
import * as vscode from 'vscode';
import { ServerLaunchOrchestrator } from './serverLaunchOrchestrator';
import { SSENotificationManager } from './sseNotificationManager';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
import {
SessionServerInfo,
ServerLaunchRequest,
SessionServerStatus
-} from './models/sessionServerModels';
-import { getLogger } from '../../../core/logging/sink';
+} from './sessionServerModels';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SESSION_SERVER_MANAGER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/servers/models/sessionServerModels.ts b/apps/vscode-extension/src/core/analysis/session-servers/sessionServerModels.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/servers/models/sessionServerModels.ts
rename to apps/vscode-extension/src/core/analysis/session-servers/sessionServerModels.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/servers/sseNotificationManager.ts b/apps/vscode-extension/src/core/analysis/session-servers/sseNotificationManager.ts
similarity index 96%
rename from apps/vscode-extension/src/code_analysis/engine/servers/sseNotificationManager.ts
rename to apps/vscode-extension/src/core/analysis/session-servers/sseNotificationManager.ts
index b5e94d947..49108e3e1 100644
--- a/apps/vscode-extension/src/code_analysis/engine/servers/sseNotificationManager.ts
+++ b/apps/vscode-extension/src/core/analysis/session-servers/sseNotificationManager.ts
@@ -3,9 +3,9 @@
* Maneja las notificaciones SSE para sesiones de análisis
*/
-import { SessionServerInfo, SSENotification } from './models/sessionServerModels';
-import { SSEManager } from '../../../servers/runtime/sse/SSEManager';
-import { getLogger } from '../../../core/logging/sink';
+import { SessionServerInfo, SSENotification } from './sessionServerModels';
+import { SSEManager } from '../../server/sse/SSEManager';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SSE_NOTIFICATION_MANAGER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/core/analysisSession.ts b/apps/vscode-extension/src/core/analysis/session/analysisSession.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/core/analysisSession.ts
rename to apps/vscode-extension/src/core/analysis/session/analysisSession.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/core/sessionRegistry.ts b/apps/vscode-extension/src/core/analysis/session/sessionRegistry.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/core/sessionRegistry.ts
rename to apps/vscode-extension/src/core/analysis/session/sessionRegistry.ts
index 0c612b0ae..1700e1f7d 100644
--- a/apps/vscode-extension/src/code_analysis/engine/core/sessionRegistry.ts
+++ b/apps/vscode-extension/src/core/analysis/session/sessionRegistry.ts
@@ -6,7 +6,7 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs/promises';
-import { generateNonce } from '../../../utils/nonceGenerator';
+import { generateNonce } from '../../../shared/nonceGenerator';
import {
UnifiedAnalysisSession,
AnalysisMode,
@@ -14,8 +14,8 @@ import {
AnalysisStatus,
SessionCreationParams
} from './analysisSession';
-import { SHA256Generator } from '../../../utils/sha256Generator';
-import { getLogger } from '../../../core/logging/sink';
+import { SHA256Generator } from '../utils/sha256Generator';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('UNIFIED_REGISTRY');
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/fileHashCalculator.ts b/apps/vscode-extension/src/core/analysis/utils/fileHashCalculator.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/utils/fileHashCalculator.ts
rename to apps/vscode-extension/src/core/analysis/utils/fileHashCalculator.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/saveFiles.ts b/apps/vscode-extension/src/core/analysis/utils/saveFiles.ts
similarity index 99%
rename from apps/vscode-extension/src/code_analysis/engine/utils/saveFiles.ts
rename to apps/vscode-extension/src/core/analysis/utils/saveFiles.ts
index e98ebde3c..b085e22df 100644
--- a/apps/vscode-extension/src/code_analysis/engine/utils/saveFiles.ts
+++ b/apps/vscode-extension/src/core/analysis/utils/saveFiles.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SAVE_FILES');
diff --git a/apps/vscode-extension/src/utils/sha256Generator.ts b/apps/vscode-extension/src/core/analysis/utils/sha256Generator.ts
similarity index 97%
rename from apps/vscode-extension/src/utils/sha256Generator.ts
rename to apps/vscode-extension/src/core/analysis/utils/sha256Generator.ts
index 4f7176676..7ae79982b 100644
--- a/apps/vscode-extension/src/utils/sha256Generator.ts
+++ b/apps/vscode-extension/src/core/analysis/utils/sha256Generator.ts
@@ -5,7 +5,7 @@
import * as crypto from 'crypto';
import * as fs from 'fs';
-import { getLogger } from '../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SHA256_GENERATOR');
diff --git a/apps/vscode-extension/src/code_analysis/engine/utils/themeUtils.ts b/apps/vscode-extension/src/core/analysis/utils/themeUtils.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/utils/themeUtils.ts
rename to apps/vscode-extension/src/core/analysis/utils/themeUtils.ts
index 99acd98fe..8e511434b 100644
--- a/apps/vscode-extension/src/code_analysis/engine/utils/themeUtils.ts
+++ b/apps/vscode-extension/src/core/analysis/utils/themeUtils.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { CodeXRLogger } from '../../../core/logging/logger';
+import { CodeXRLogger } from '../../../platform/logging/logger';
const logger = CodeXRLogger.getLogger('THEME_UTILS');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/analysisFilePolicy.ts b/apps/vscode-extension/src/core/analysis/watchers/analysisFilePolicy.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/analysisFilePolicy.ts
rename to apps/vscode-extension/src/core/analysis/watchers/analysisFilePolicy.ts
index 74f559427..89b93fe86 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/analysisFilePolicy.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/analysisFilePolicy.ts
@@ -1,7 +1,7 @@
import * as path from 'path';
import {
getAllSupportedExtensions,
-} from '../../../utils/supportedLanguages';
+} from '../languages/supportedLanguages';
const DIRECTORY_IGNORES = new Set([
'.git',
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/configurationConverter.ts b/apps/vscode-extension/src/core/analysis/watchers/configurationConverter.ts
similarity index 91%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/configurationConverter.ts
rename to apps/vscode-extension/src/core/analysis/watchers/configurationConverter.ts
index 4444b00e1..c8d2c75d3 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/configurationConverter.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/configurationConverter.ts
@@ -3,8 +3,8 @@
* Convierte la configuración de AutoAnalysisDelay a milisegundos
*/
-import { AutoAnalysisDelayConfig } from '../../configuration/models/analysisConfiguration';
-import { getLogger } from '../../../core/logging/sink';
+import { AutoAnalysisDelayConfig } from '../configuration/analysisConfiguration';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('CONFIG_CONVERTER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/debounceManager.ts b/apps/vscode-extension/src/core/analysis/watchers/debounceManager.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/debounceManager.ts
rename to apps/vscode-extension/src/core/analysis/watchers/debounceManager.ts
index c71c3dc29..385427c79 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/debounceManager.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/debounceManager.ts
@@ -9,9 +9,9 @@
*/
import * as vscode from 'vscode';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
import { ConfigurationConverter } from './configurationConverter';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('DEBOUNCE_MANAGER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/directoryReAnalyzer.ts b/apps/vscode-extension/src/core/analysis/watchers/directoryReAnalyzer.ts
similarity index 95%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/directoryReAnalyzer.ts
rename to apps/vscode-extension/src/core/analysis/watchers/directoryReAnalyzer.ts
index be413b9b9..fb60256c5 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/directoryReAnalyzer.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/directoryReAnalyzer.ts
@@ -6,10 +6,10 @@ import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { ExecutePython } from '../utils/executePython';
-import { SessionServerManager } from '../servers/sessionServerManager';
-import { SHA256Generator } from '../../../utils/sha256Generator';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { ExecutePython } from '../python/executePython';
+import { SessionServerManager } from '../session-servers/sessionServerManager';
+import { SHA256Generator } from '../utils/sha256Generator';
import { FileHashTracker } from './fileHashTracker';
import {
AnalysisFileEntry,
@@ -25,8 +25,8 @@ import {
upsertXRFiles,
XRAnalysisData,
} from './directoryReanalysisData';
-import { analysisUpdateEvents } from '../../historical';
-import { getLogger } from '../../../core/logging/sink';
+import { analysisUpdateEvents } from '../../history/analysisUpdateEvents';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('DIRECTORY_REANALYZER');
@@ -264,7 +264,7 @@ export class DirectoryReAnalyzer {
async sendSSENotification(session: UnifiedAnalysisSession): Promise {
try {
- const { SSEManager } = require('../../../servers/runtime/sse/SSEManager');
+ const { SSEManager } = require('../../server/sse/SSEManager');
const sseManager = SSEManager.getInstance();
if (session.analysisMode === 'XR') {
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/directoryReanalysisData.ts b/apps/vscode-extension/src/core/analysis/watchers/directoryReanalysisData.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/directoryReanalysisData.ts
rename to apps/vscode-extension/src/core/analysis/watchers/directoryReanalysisData.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/directorySnapshot.ts b/apps/vscode-extension/src/core/analysis/watchers/directorySnapshot.ts
similarity index 100%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/directorySnapshot.ts
rename to apps/vscode-extension/src/core/analysis/watchers/directorySnapshot.ts
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts b/apps/vscode-extension/src/core/analysis/watchers/directoryWatcherOrchestrator.ts
similarity index 96%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts
rename to apps/vscode-extension/src/core/analysis/watchers/directoryWatcherOrchestrator.ts
index 4b63ff34c..cef63484e 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/directoryWatcherOrchestrator.ts
@@ -6,23 +6,20 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { UnifiedSessionRegistry } from '../core/sessionRegistry';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { UnifiedSessionRegistry } from '../session/sessionRegistry';
import { DebounceManager } from './debounceManager';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
import { ConfigurationConverter } from './configurationConverter';
import { FileHashTracker } from './fileHashTracker';
import { DirectoryReAnalyzer } from './directoryReAnalyzer';
import { ReAnalysisManager } from './reAnalysisManager';
-import { handleError, ErrorDomain, ErrorSeverity } from '../../../utils/errorHandler';
-import { SHA256Generator } from '../../../utils/sha256Generator';
+import { handleError, ErrorDomain, ErrorSeverity } from '../../../platform/ui/errorHandler';
+import { SHA256Generator } from '../utils/sha256Generator';
import { isRelevantDirectoryEvent, shouldIgnoreDirectoryName } from './analysisFilePolicy';
import { scanDirectoryScope } from './directorySnapshot';
-import {
- AnalysisSourceChangeBatch,
- analysisRefreshCoordinator,
-} from '../../refresh';
-import { getLogger } from '../../../core/logging/sink';
+import { AnalysisSourceChangeBatch, analysisRefreshCoordinator } from '../refresh/analysisRefreshCoordinator';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('DIRECTORY_WATCHER_ORCHESTRATOR');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/fileHashTracker.ts b/apps/vscode-extension/src/core/analysis/watchers/fileHashTracker.ts
similarity index 98%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/fileHashTracker.ts
rename to apps/vscode-extension/src/core/analysis/watchers/fileHashTracker.ts
index 2d7d206de..3bc6ed38a 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/fileHashTracker.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/fileHashTracker.ts
@@ -4,7 +4,7 @@
*/
import { FileHash } from '../utils/fileHashCalculator';
-import { SHA256Generator } from '../../../utils/sha256Generator';
+import { SHA256Generator } from '../utils/sha256Generator';
import { buildTrackedFileSnapshot, FileStatSnapshot } from './directorySnapshot';
import { shouldIgnoreFileName } from './analysisFilePolicy';
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts b/apps/vscode-extension/src/core/analysis/watchers/fileWatcherOrchestrator.ts
similarity index 95%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts
rename to apps/vscode-extension/src/core/analysis/watchers/fileWatcherOrchestrator.ts
index 6095373de..8dd5e14dd 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/fileWatcherOrchestrator.ts
@@ -6,19 +6,16 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { UnifiedSessionRegistry } from '../core/sessionRegistry';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { UnifiedSessionRegistry } from '../session/sessionRegistry';
import { ReAnalysisManager } from './reAnalysisManager';
import { DebounceManager, DebounceStatus } from './debounceManager';
-import { AnalysisConfigurationStorage } from '../../configuration/analysisConfigurationStorage';
+import { AnalysisConfigurationStorage } from '../configuration/analysisConfigurationStorage';
import { ConfigurationConverter } from './configurationConverter';
import { getFileStatSnapshot } from './directorySnapshot';
-import { SHA256Generator } from '../../../utils/sha256Generator';
-import {
- AnalysisSourceChangeBatch,
- analysisRefreshCoordinator,
-} from '../../refresh';
-import { getLogger } from '../../../core/logging/sink';
+import { SHA256Generator } from '../utils/sha256Generator';
+import { AnalysisSourceChangeBatch, analysisRefreshCoordinator } from '../refresh/analysisRefreshCoordinator';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('FILE_WATCHER_ORCHESTRATOR');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/reAnalysisManager.ts b/apps/vscode-extension/src/core/analysis/watchers/reAnalysisManager.ts
similarity index 94%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/reAnalysisManager.ts
rename to apps/vscode-extension/src/core/analysis/watchers/reAnalysisManager.ts
index fab25be54..d6580a152 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/reAnalysisManager.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/reAnalysisManager.ts
@@ -6,13 +6,13 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs/promises';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
-import { ExecutePython } from '../utils/executePython';
-import { SSEManager } from '../../../servers/runtime/sse/SSEManager';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
+import { ExecutePython } from '../python/executePython';
+import { SSEManager } from '../../server/sse/SSEManager';
import { FileRequirementProcessor } from '../processors/FileRequirementProcessor';
import { SaveFiles } from '../utils/saveFiles';
-import { analysisUpdateEvents } from '../../historical';
-import { getLogger } from '../../../core/logging/sink';
+import { analysisUpdateEvents } from '../../history/analysisUpdateEvents';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('RE_ANALYSIS_MANAGER');
diff --git a/apps/vscode-extension/src/code_analysis/engine/watchers/sessionWatcherManager.ts b/apps/vscode-extension/src/core/analysis/watchers/sessionWatcherManager.ts
similarity index 97%
rename from apps/vscode-extension/src/code_analysis/engine/watchers/sessionWatcherManager.ts
rename to apps/vscode-extension/src/core/analysis/watchers/sessionWatcherManager.ts
index 99eddbc7a..6ff2a5ad3 100644
--- a/apps/vscode-extension/src/code_analysis/engine/watchers/sessionWatcherManager.ts
+++ b/apps/vscode-extension/src/core/analysis/watchers/sessionWatcherManager.ts
@@ -5,10 +5,10 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
-import { UnifiedAnalysisSession } from '../core/analysisSession';
+import { UnifiedAnalysisSession } from '../session/analysisSession';
import { FileWatcherOrchestrator } from './fileWatcherOrchestrator';
import { DirectoryWatcherOrchestrator } from './directoryWatcherOrchestrator';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SESSION_WATCHER_MANAGER');
diff --git a/apps/vscode-extension/src/babia_templates/models/chartModels.ts b/apps/vscode-extension/src/core/charts/chartModels.ts
similarity index 100%
rename from apps/vscode-extension/src/babia_templates/models/chartModels.ts
rename to apps/vscode-extension/src/core/charts/chartModels.ts
diff --git a/apps/vscode-extension/src/babia_templates/charts/chartPresentation.ts b/apps/vscode-extension/src/core/charts/chartPresentation.ts
similarity index 100%
rename from apps/vscode-extension/src/babia_templates/charts/chartPresentation.ts
rename to apps/vscode-extension/src/core/charts/chartPresentation.ts
diff --git a/apps/vscode-extension/src/babia_templates/registry/chartRegistry.ts b/apps/vscode-extension/src/core/charts/chartRegistry.ts
similarity index 93%
rename from apps/vscode-extension/src/babia_templates/registry/chartRegistry.ts
rename to apps/vscode-extension/src/core/charts/chartRegistry.ts
index 80403ab56..e52c3bd4e 100644
--- a/apps/vscode-extension/src/babia_templates/registry/chartRegistry.ts
+++ b/apps/vscode-extension/src/core/charts/chartRegistry.ts
@@ -1,6 +1,6 @@
-import { ChartMetadata } from '../models/chartModels';
-import { chartTemplates } from '../charts/templateCharts';
-import { getLogger } from '../../core/logging/sink';
+import { ChartMetadata } from './chartModels';
+import { chartTemplates } from './templateCharts';
+import { getLogger } from '../../platform/logging/sink';
const logger = getLogger('BABIA_TEMPLATES');
diff --git a/apps/vscode-extension/src/utils/getVisualizationConfiguration.ts b/apps/vscode-extension/src/core/charts/getVisualizationConfiguration.ts
similarity index 93%
rename from apps/vscode-extension/src/utils/getVisualizationConfiguration.ts
rename to apps/vscode-extension/src/core/charts/getVisualizationConfiguration.ts
index 88e29575d..457281d17 100644
--- a/apps/vscode-extension/src/utils/getVisualizationConfiguration.ts
+++ b/apps/vscode-extension/src/core/charts/getVisualizationConfiguration.ts
@@ -1,4 +1,4 @@
-import { getLogger } from '../core/logging/sink';
+import { getLogger } from '../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_CONFIG');
@@ -28,7 +28,7 @@ export async function getVisualizationConfiguration(): Promise {
private readonly manager: CollaborationProfileManager;
diff --git a/apps/vscode-extension/src/views/collaboration/items/collaborationItems.ts b/apps/vscode-extension/src/features/collaboration/views/collaborationItems.ts
similarity index 94%
rename from apps/vscode-extension/src/views/collaboration/items/collaborationItems.ts
rename to apps/vscode-extension/src/features/collaboration/views/collaborationItems.ts
index e4723c3ff..9055e0ed6 100644
--- a/apps/vscode-extension/src/views/collaboration/items/collaborationItems.ts
+++ b/apps/vscode-extension/src/features/collaboration/views/collaborationItems.ts
@@ -1,8 +1,6 @@
import * as vscode from 'vscode';
-import {
- CollaborationConfiguration,
- COLLABORATION_AVATARS,
-} from '../../../collaboration';
+import { CollaborationConfiguration } from '../../../core/collaboration/collaborationProfileManager';
+import { COLLABORATION_AVATARS } from '../../../core/collaboration/collaborationProfile';
export type CollaborationItemType = 'identity' | 'avatar' | 'asset' | 'session' | 'info';
diff --git a/apps/vscode-extension/src/commands/babia_examples/babiaExamplesCommands.ts b/apps/vscode-extension/src/features/examples/commands/babiaExamplesCommandRegistrations.ts
similarity index 52%
rename from apps/vscode-extension/src/commands/babia_examples/babiaExamplesCommands.ts
rename to apps/vscode-extension/src/features/examples/commands/babiaExamplesCommandRegistrations.ts
index df1c78c1e..388013514 100644
--- a/apps/vscode-extension/src/commands/babia_examples/babiaExamplesCommands.ts
+++ b/apps/vscode-extension/src/features/examples/commands/babiaExamplesCommandRegistrations.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { BabiaExamplesCommands } from '../../babia_examples/commands/babiaExamplesCommands';
-import { BabiaExamplesTreeDataProvider } from '../../babia_examples/views/babiaExamplesTreeView';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { BabiaExamplesCommands } from './babiaExamplesCommands';
+import { BabiaExamplesTreeDataProvider } from '../views/babiaExamplesTreeView';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
export function getBabiaExamplesCommandRegistrations(
context: vscode.ExtensionContext,
diff --git a/apps/vscode-extension/src/babia_examples/commands/babiaExamplesCommands.ts b/apps/vscode-extension/src/features/examples/commands/babiaExamplesCommands.ts
similarity index 96%
rename from apps/vscode-extension/src/babia_examples/commands/babiaExamplesCommands.ts
rename to apps/vscode-extension/src/features/examples/commands/babiaExamplesCommands.ts
index 6a5b78664..678698385 100644
--- a/apps/vscode-extension/src/babia_examples/commands/babiaExamplesCommands.ts
+++ b/apps/vscode-extension/src/features/examples/commands/babiaExamplesCommands.ts
@@ -1,10 +1,10 @@
import * as vscode from 'vscode';
import { BABIA_EXAMPLE_LIBRARIES, BabiaExample } from '../model/babiaExampleModel';
-import { ExampleClickHandler } from '../views/interactions/handleExampleClicks';
+import { ExampleClickHandler } from '../views/handleExampleClicks';
import { BabiaExamplesTreeDataProvider } from '../views/babiaExamplesTreeView';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
-import { DetailRow, formatDetailSections } from '../../utils/detailDialog';
-import { getLogger } from '../../core/logging/sink';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
+import { DetailRow, formatDetailSections } from '../../../platform/ui/detailDialog';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('EXAMPLES');
diff --git a/apps/vscode-extension/src/babia_examples/model/babiaExampleModel.ts b/apps/vscode-extension/src/features/examples/model/babiaExampleModel.ts
similarity index 100%
rename from apps/vscode-extension/src/babia_examples/model/babiaExampleModel.ts
rename to apps/vscode-extension/src/features/examples/model/babiaExampleModel.ts
diff --git a/apps/vscode-extension/src/babia_examples/runtime/exampleLauncher.ts b/apps/vscode-extension/src/features/examples/services/exampleLauncher.ts
similarity index 99%
rename from apps/vscode-extension/src/babia_examples/runtime/exampleLauncher.ts
rename to apps/vscode-extension/src/features/examples/services/exampleLauncher.ts
index 133caecaf..996f0f7d7 100644
--- a/apps/vscode-extension/src/babia_examples/runtime/exampleLauncher.ts
+++ b/apps/vscode-extension/src/features/examples/services/exampleLauncher.ts
@@ -2,8 +2,8 @@ import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
import { BabiaExample, ExampleScanResult } from '../model/babiaExampleModel';
-import { MultiServerLauncher, MultiServerLaunchResult } from '../../servers/runtime/multiServerLauncher';
-import { getLogger } from '../../core/logging/sink';
+import { MultiServerLauncher, MultiServerLaunchResult } from '../../../core/server/multiServerLauncher';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('EXAMPLES');
diff --git a/apps/vscode-extension/src/views/babia_examples/BabiaExamplesSectionProvider.ts b/apps/vscode-extension/src/features/examples/views/BabiaExamplesSectionProvider.ts
similarity index 89%
rename from apps/vscode-extension/src/views/babia_examples/BabiaExamplesSectionProvider.ts
rename to apps/vscode-extension/src/features/examples/views/BabiaExamplesSectionProvider.ts
index f6c95d61c..c70e2a33d 100644
--- a/apps/vscode-extension/src/views/babia_examples/BabiaExamplesSectionProvider.ts
+++ b/apps/vscode-extension/src/features/examples/views/BabiaExamplesSectionProvider.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
-import { BaseSectionProvider } from '../../platform/tree/baseInterfaces';
-import { BabiaExampleTreeItem, BabiaExampleItemFactory } from './items/babiaExampleItems';
-import { BabiaExampleClickHandler } from './interactions/handleBabiaExampleClicks';
-import { ExampleLauncher } from '../../babia_examples/runtime/exampleLauncher';
-import { getLogger } from '../../core/logging/sink';
+import { BaseSectionProvider } from '../../../platform/tree/baseInterfaces';
+import { BabiaExampleTreeItem, BabiaExampleItemFactory } from './babiaExampleItems';
+import { BabiaExampleClickHandler } from './handleBabiaExampleClicks';
+import { ExampleLauncher } from '../services/exampleLauncher';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('BABIA_EXAMPLES_MODULAR');
diff --git a/apps/vscode-extension/src/views/babia_examples/items/babiaExampleItems.ts b/apps/vscode-extension/src/features/examples/views/babiaExampleItems.ts
similarity index 95%
rename from apps/vscode-extension/src/views/babia_examples/items/babiaExampleItems.ts
rename to apps/vscode-extension/src/features/examples/views/babiaExampleItems.ts
index 60e574393..57b69d9c0 100644
--- a/apps/vscode-extension/src/views/babia_examples/items/babiaExampleItems.ts
+++ b/apps/vscode-extension/src/features/examples/views/babiaExampleItems.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { BabiaExample } from '../../../babia_examples/model/babiaExampleModel';
-import { ExampleIcons } from '../../../babia_examples/views/items/exampleItems';
-import { getLogger } from '../../../core/logging/sink';
+import { BabiaExample } from '../model/babiaExampleModel';
+import { ExampleIcons } from './exampleItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('BABIA_EXAMPLES');
diff --git a/apps/vscode-extension/src/babia_examples/views/babiaExamplesTreeView.ts b/apps/vscode-extension/src/features/examples/views/babiaExamplesTreeView.ts
similarity index 96%
rename from apps/vscode-extension/src/babia_examples/views/babiaExamplesTreeView.ts
rename to apps/vscode-extension/src/features/examples/views/babiaExamplesTreeView.ts
index 1f57e1937..5e6c11aac 100644
--- a/apps/vscode-extension/src/babia_examples/views/babiaExamplesTreeView.ts
+++ b/apps/vscode-extension/src/features/examples/views/babiaExamplesTreeView.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { ExampleLauncher } from '../runtime/exampleLauncher';
-import { BabiaExampleTreeItem, ExampleItemFactory } from './items/exampleItems';
-import { getLogger } from '../../core/logging/sink';
+import { ExampleLauncher } from '../services/exampleLauncher';
+import { BabiaExampleTreeItem, ExampleItemFactory } from './exampleItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('EXAMPLES_UI');
diff --git a/apps/vscode-extension/src/babia_examples/views/items/exampleItems.ts b/apps/vscode-extension/src/features/examples/views/exampleItems.ts
similarity index 98%
rename from apps/vscode-extension/src/babia_examples/views/items/exampleItems.ts
rename to apps/vscode-extension/src/features/examples/views/exampleItems.ts
index 95772a997..fca89be43 100644
--- a/apps/vscode-extension/src/babia_examples/views/items/exampleItems.ts
+++ b/apps/vscode-extension/src/features/examples/views/exampleItems.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { BabiaExample } from '../../model/babiaExampleModel';
+import { BabiaExample } from '../model/babiaExampleModel';
/**
* Tree item types for Babia examples
diff --git a/apps/vscode-extension/src/views/babia_examples/interactions/handleBabiaExampleClicks.ts b/apps/vscode-extension/src/features/examples/views/handleBabiaExampleClicks.ts
similarity index 96%
rename from apps/vscode-extension/src/views/babia_examples/interactions/handleBabiaExampleClicks.ts
rename to apps/vscode-extension/src/features/examples/views/handleBabiaExampleClicks.ts
index 805a6653a..92c9ab76d 100644
--- a/apps/vscode-extension/src/views/babia_examples/interactions/handleBabiaExampleClicks.ts
+++ b/apps/vscode-extension/src/features/examples/views/handleBabiaExampleClicks.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { BabiaExampleTreeItem } from '../items/babiaExampleItems';
-import { ExampleLauncher } from '../../../babia_examples/runtime/exampleLauncher';
-import { getLogger } from '../../../core/logging/sink';
+import { BabiaExampleTreeItem } from './babiaExampleItems';
+import { ExampleLauncher } from '../services/exampleLauncher';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('BABIA_EXAMPLES_MODULAR');
diff --git a/apps/vscode-extension/src/babia_examples/views/interactions/handleExampleClicks.ts b/apps/vscode-extension/src/features/examples/views/handleExampleClicks.ts
similarity index 96%
rename from apps/vscode-extension/src/babia_examples/views/interactions/handleExampleClicks.ts
rename to apps/vscode-extension/src/features/examples/views/handleExampleClicks.ts
index e4e97c25a..45b83be8b 100644
--- a/apps/vscode-extension/src/babia_examples/views/interactions/handleExampleClicks.ts
+++ b/apps/vscode-extension/src/features/examples/views/handleExampleClicks.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { BabiaExample } from '../../model/babiaExampleModel';
-import { ExampleLauncher } from '../../runtime/exampleLauncher';
-import { getLogger } from '../../../core/logging/sink';
+import { BabiaExample } from '../model/babiaExampleModel';
+import { ExampleLauncher } from '../services/exampleLauncher';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('EXAMPLES');
diff --git a/apps/vscode-extension/src/commands/learn_more/learnMoreCommands.ts b/apps/vscode-extension/src/features/learn-more/commands/learnMoreCommandRegistrations.ts
similarity index 56%
rename from apps/vscode-extension/src/commands/learn_more/learnMoreCommands.ts
rename to apps/vscode-extension/src/features/learn-more/commands/learnMoreCommandRegistrations.ts
index ae81bc84a..eaef9a063 100644
--- a/apps/vscode-extension/src/commands/learn_more/learnMoreCommands.ts
+++ b/apps/vscode-extension/src/features/learn-more/commands/learnMoreCommandRegistrations.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { LearnMoreCommands } from '../../learn_more/commands/learnMoreCommands';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { LearnMoreCommands } from './learnMoreCommands';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
export function getLearnMoreCommandRegistrations(
_context: vscode.ExtensionContext,
diff --git a/apps/vscode-extension/src/learn_more/commands/learnMoreCommands.ts b/apps/vscode-extension/src/features/learn-more/commands/learnMoreCommands.ts
similarity index 96%
rename from apps/vscode-extension/src/learn_more/commands/learnMoreCommands.ts
rename to apps/vscode-extension/src/features/learn-more/commands/learnMoreCommands.ts
index 56b1f3564..dc4ac8358 100644
--- a/apps/vscode-extension/src/learn_more/commands/learnMoreCommands.ts
+++ b/apps/vscode-extension/src/features/learn-more/commands/learnMoreCommands.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
/** Official CodeXR site. */
const CODEXR_WEBSITE_URL = 'https://code-xr.adrianmonteslinares.com/';
diff --git a/apps/vscode-extension/src/views/learn_more/LearnMoreSectionProvider.ts b/apps/vscode-extension/src/features/learn-more/views/LearnMoreSectionProvider.ts
similarity index 87%
rename from apps/vscode-extension/src/views/learn_more/LearnMoreSectionProvider.ts
rename to apps/vscode-extension/src/features/learn-more/views/LearnMoreSectionProvider.ts
index ce865b184..cfc705c72 100644
--- a/apps/vscode-extension/src/views/learn_more/LearnMoreSectionProvider.ts
+++ b/apps/vscode-extension/src/features/learn-more/views/LearnMoreSectionProvider.ts
@@ -4,10 +4,10 @@
*/
import * as vscode from 'vscode';
-import { BaseSectionProvider } from '../../platform/tree/baseInterfaces';
-import { LearnMoreModularTreeItem, LearnMoreModularItemFactory } from './items/learnMoreItems';
-import { LearnMoreClickHandler } from './interactions/handleLearnMoreClicks';
-import { getLogger } from '../../core/logging/sink';
+import { BaseSectionProvider } from '../../../platform/tree/baseInterfaces';
+import { LearnMoreModularTreeItem, LearnMoreModularItemFactory } from './learnMoreItems';
+import { LearnMoreClickHandler } from './handleLearnMoreClicks';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LEARN_MORE');
diff --git a/apps/vscode-extension/src/views/learn_more/interactions/handleLearnMoreClicks.ts b/apps/vscode-extension/src/features/learn-more/views/handleLearnMoreClicks.ts
similarity index 91%
rename from apps/vscode-extension/src/views/learn_more/interactions/handleLearnMoreClicks.ts
rename to apps/vscode-extension/src/features/learn-more/views/handleLearnMoreClicks.ts
index a35e343b2..d55fbf15c 100644
--- a/apps/vscode-extension/src/views/learn_more/interactions/handleLearnMoreClicks.ts
+++ b/apps/vscode-extension/src/features/learn-more/views/handleLearnMoreClicks.ts
@@ -4,7 +4,7 @@
*/
import * as vscode from 'vscode';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LEARN_MORE');
diff --git a/apps/vscode-extension/src/views/learn_more/items/learnMoreItems.ts b/apps/vscode-extension/src/features/learn-more/views/learnMoreItems.ts
similarity index 98%
rename from apps/vscode-extension/src/views/learn_more/items/learnMoreItems.ts
rename to apps/vscode-extension/src/features/learn-more/views/learnMoreItems.ts
index ffd0c7bc9..db9327333 100644
--- a/apps/vscode-extension/src/views/learn_more/items/learnMoreItems.ts
+++ b/apps/vscode-extension/src/features/learn-more/views/learnMoreItems.ts
@@ -4,7 +4,7 @@
*/
import * as vscode from 'vscode';
-import { getLogger } from '../../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('LEARN_MORE');
diff --git a/apps/vscode-extension/src/commands/python_env/pythonEnvCommands.ts b/apps/vscode-extension/src/features/python-env/commands/pythonEnvCommandRegistrations.ts
similarity index 77%
rename from apps/vscode-extension/src/commands/python_env/pythonEnvCommands.ts
rename to apps/vscode-extension/src/features/python-env/commands/pythonEnvCommandRegistrations.ts
index 715951c99..e640d7cf6 100644
--- a/apps/vscode-extension/src/commands/python_env/pythonEnvCommands.ts
+++ b/apps/vscode-extension/src/features/python-env/commands/pythonEnvCommandRegistrations.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { PythonEnvCommands } from '../../python_env/commands/pythonEnvCommands';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { PythonEnvCommands } from './pythonEnvCommands';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
let pythonEnvCommands: PythonEnvCommands | undefined;
diff --git a/apps/vscode-extension/src/python_env/commands/pythonEnvCommands.ts b/apps/vscode-extension/src/features/python-env/commands/pythonEnvCommands.ts
similarity index 98%
rename from apps/vscode-extension/src/python_env/commands/pythonEnvCommands.ts
rename to apps/vscode-extension/src/features/python-env/commands/pythonEnvCommands.ts
index 346e6c664..854c43015 100644
--- a/apps/vscode-extension/src/python_env/commands/pythonEnvCommands.ts
+++ b/apps/vscode-extension/src/features/python-env/commands/pythonEnvCommands.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { VenvManager } from '../runtime/venvManager';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
-import { CodeXRLogger } from '../../core/logging/logger';
+import { VenvManager } from '../../../core/python-env/venvManager';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
+import { CodeXRLogger } from '../../../platform/logging/logger';
const logger = CodeXRLogger.getLogger('PYTHON_ENV_COMMANDS');
diff --git a/apps/vscode-extension/src/views/python_env/PythonEnvSectionProvider.ts b/apps/vscode-extension/src/features/python-env/views/PythonEnvSectionProvider.ts
similarity index 79%
rename from apps/vscode-extension/src/views/python_env/PythonEnvSectionProvider.ts
rename to apps/vscode-extension/src/features/python-env/views/PythonEnvSectionProvider.ts
index 82c09ae71..a782a038b 100644
--- a/apps/vscode-extension/src/views/python_env/PythonEnvSectionProvider.ts
+++ b/apps/vscode-extension/src/features/python-env/views/PythonEnvSectionProvider.ts
@@ -1,8 +1,8 @@
import * as vscode from 'vscode';
-import { BaseSectionProvider } from '../../platform/tree/baseInterfaces';
-import { VenvManager } from '../../python_env/runtime/venvManager';
-import { PythonEnvUiStateService } from '../../python_env/runtime/pythonEnvUiState';
-import { PythonEnvItems, PythonEnvModularTreeItem } from '../../python_env/views/items/pythonEnvItems';
+import { BaseSectionProvider } from '../../../platform/tree/baseInterfaces';
+import { VenvManager } from '../../../core/python-env/venvManager';
+import { PythonEnvUiStateService } from '../../../core/python-env/pythonEnvUiState';
+import { PythonEnvItems, PythonEnvModularTreeItem } from './pythonEnvItems';
/**
* Python environment section provider for the modular tree view.
diff --git a/apps/vscode-extension/src/python_env/views/items/pythonEnvItems.ts b/apps/vscode-extension/src/features/python-env/views/pythonEnvItems.ts
similarity index 99%
rename from apps/vscode-extension/src/python_env/views/items/pythonEnvItems.ts
rename to apps/vscode-extension/src/features/python-env/views/pythonEnvItems.ts
index 67028b3d7..34717d91c 100644
--- a/apps/vscode-extension/src/python_env/views/items/pythonEnvItems.ts
+++ b/apps/vscode-extension/src/features/python-env/views/pythonEnvItems.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { PythonEnvUiState } from '../../runtime/pythonEnvUiState';
+import { PythonEnvUiState } from '../../../core/python-env/pythonEnvUiState';
export type PythonEnvItemType = 'section' | 'status' | 'action' | 'warning' | 'error' | 'loading' | 'info';
diff --git a/apps/vscode-extension/src/commands/servers/serverCommands.ts b/apps/vscode-extension/src/features/servers/commands/serverCommandRegistrations.ts
similarity index 94%
rename from apps/vscode-extension/src/commands/servers/serverCommands.ts
rename to apps/vscode-extension/src/features/servers/commands/serverCommandRegistrations.ts
index 0e7f43dcd..df7a7e887 100644
--- a/apps/vscode-extension/src/commands/servers/serverCommands.ts
+++ b/apps/vscode-extension/src/features/servers/commands/serverCommandRegistrations.ts
@@ -9,8 +9,8 @@ import {
configureRemoteAccess,
resetToDefault,
setExtensionContext
-} from '../../servers/commands/serverCommands';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+} from './serverCommands';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
/**
* Server command declarations for centralized registration.
diff --git a/apps/vscode-extension/src/servers/commands/serverCommands.ts b/apps/vscode-extension/src/features/servers/commands/serverCommands.ts
similarity index 96%
rename from apps/vscode-extension/src/servers/commands/serverCommands.ts
rename to apps/vscode-extension/src/features/servers/commands/serverCommands.ts
index 6e7ad20d3..5d557d5a7 100644
--- a/apps/vscode-extension/src/servers/commands/serverCommands.ts
+++ b/apps/vscode-extension/src/features/servers/commands/serverCommands.ts
@@ -1,11 +1,12 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { handleHttpModeClick, handlePortClick, handleAutoOpenClick, handleOpenModeClick } from '../views/interactions/handleConfigurationClicks';
-import { MultiServerLauncher } from '../runtime/multiServerLauncher';
-import { ServerSettingsManager, ServerSettings } from '../storage/serverSettingsManager';
-import { CloudflaredBinaryManager, RemoteAccessManager } from '../../remote_access';
-import { getLogger } from '../../core/logging/sink';
+import { handleHttpModeClick, handlePortClick, handleAutoOpenClick, handleOpenModeClick } from '../views/handleConfigurationClicks';
+import { MultiServerLauncher } from '../../../core/server/multiServerLauncher';
+import { ServerSettingsManager, ServerSettings } from '../../../core/server/serverSettingsManager';
+import { CloudflaredBinaryManager } from '../../../core/remote-access/cloudflaredBinaryManager';
+import { RemoteAccessManager } from '../../../core/remote-access/remoteAccessManager';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SERVER');
diff --git a/apps/vscode-extension/src/views/servers/ServersSectionProvider.ts b/apps/vscode-extension/src/features/servers/views/ServersSectionProvider.ts
similarity index 90%
rename from apps/vscode-extension/src/views/servers/ServersSectionProvider.ts
rename to apps/vscode-extension/src/features/servers/views/ServersSectionProvider.ts
index 7f014bde4..a9dfe9908 100644
--- a/apps/vscode-extension/src/views/servers/ServersSectionProvider.ts
+++ b/apps/vscode-extension/src/features/servers/views/ServersSectionProvider.ts
@@ -1,8 +1,8 @@
import * as vscode from 'vscode';
-import { BaseSectionProvider } from '../../platform/tree/baseInterfaces';
-import { ServerTreeItem, ServerItemFactory } from './items/serverItems';
-import { ServerSettingsManager } from '../../servers/storage/serverSettingsManager';
-import { getLogger } from '../../core/logging/sink';
+import { BaseSectionProvider } from '../../../platform/tree/baseInterfaces';
+import { ServerTreeItem, ServerItemFactory } from './serverItems';
+import { ServerSettingsManager } from '../../../core/server/serverSettingsManager';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SERVERS');
diff --git a/apps/vscode-extension/src/servers/views/items/configurationItems.ts b/apps/vscode-extension/src/features/servers/views/configurationItems.ts
similarity index 87%
rename from apps/vscode-extension/src/servers/views/items/configurationItems.ts
rename to apps/vscode-extension/src/features/servers/views/configurationItems.ts
index c05ee07d2..fae78bc64 100644
--- a/apps/vscode-extension/src/servers/views/items/configurationItems.ts
+++ b/apps/vscode-extension/src/features/servers/views/configurationItems.ts
@@ -1,4 +1,4 @@
-import { ServerSettingsManager } from '../../storage/serverSettingsManager';
+import { ServerSettingsManager } from '../../../core/server/serverSettingsManager';
/**
* Ensure persisted server configuration has been loaded.
diff --git a/apps/vscode-extension/src/servers/views/interactions/handleConfigurationClicks.ts b/apps/vscode-extension/src/features/servers/views/handleConfigurationClicks.ts
similarity index 98%
rename from apps/vscode-extension/src/servers/views/interactions/handleConfigurationClicks.ts
rename to apps/vscode-extension/src/features/servers/views/handleConfigurationClicks.ts
index 7dfcbc3db..7ffe1f868 100644
--- a/apps/vscode-extension/src/servers/views/interactions/handleConfigurationClicks.ts
+++ b/apps/vscode-extension/src/features/servers/views/handleConfigurationClicks.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { ensureServerConfigReady, updateServerConfig, getServerConfig } from '../items/configurationItems';
-import { getLogger } from '../../../core/logging/sink';
+import { ensureServerConfigReady, updateServerConfig, getServerConfig } from './configurationItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SERVER');
diff --git a/apps/vscode-extension/src/views/servers/items/serverItems.ts b/apps/vscode-extension/src/features/servers/views/serverItems.ts
similarity index 97%
rename from apps/vscode-extension/src/views/servers/items/serverItems.ts
rename to apps/vscode-extension/src/features/servers/views/serverItems.ts
index 4a0f5af19..06790700b 100644
--- a/apps/vscode-extension/src/views/servers/items/serverItems.ts
+++ b/apps/vscode-extension/src/features/servers/views/serverItems.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { getServerConfig } from '../../../servers/views/items/configurationItems';
-import { getLogger } from '../../../core/logging/sink';
+import { getServerConfig } from './configurationItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('SERVERS');
diff --git a/apps/vscode-extension/src/commands/visualization_settings/visualizationSettingsCommands.ts b/apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts
similarity index 54%
rename from apps/vscode-extension/src/commands/visualization_settings/visualizationSettingsCommands.ts
rename to apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts
index 6d322a743..deb8aac5a 100644
--- a/apps/vscode-extension/src/commands/visualization_settings/visualizationSettingsCommands.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { VisualizationSettingsCommands } from '../../visualization_settings/commands/visualizationSettingsCommands';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { VisualizationSettingsCommands } from './visualizationSettingsCommands';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
export function getVisualizationSettingsCommandRegistrations(
context: vscode.ExtensionContext,
diff --git a/apps/vscode-extension/src/visualization_settings/commands/visualizationSettingsCommands.ts b/apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommands.ts
similarity index 88%
rename from apps/vscode-extension/src/visualization_settings/commands/visualizationSettingsCommands.ts
rename to apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommands.ts
index d98bb7152..42712d0c4 100644
--- a/apps/vscode-extension/src/visualization_settings/commands/visualizationSettingsCommands.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/commands/visualizationSettingsCommands.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { VisualizationSettingsInteractionHandler } from '../views/interactions/handleSettingsInteraction';
-import { initializeSettingsAccessors } from '../utils/settingsAccessors';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { VisualizationSettingsInteractionHandler } from '../views/handleSettingsInteraction';
+import { initializeSettingsAccessors } from '../../../core/charts/settings/settingsAccessors';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
export class VisualizationSettingsCommands {
private interactionHandler: VisualizationSettingsInteractionHandler;
diff --git a/apps/vscode-extension/src/views/visualization_settings/VisualizationSettingsSectionProvider.ts b/apps/vscode-extension/src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts
similarity index 91%
rename from apps/vscode-extension/src/views/visualization_settings/VisualizationSettingsSectionProvider.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts
index 958f6a3fd..fb211e216 100644
--- a/apps/vscode-extension/src/views/visualization_settings/VisualizationSettingsSectionProvider.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
-import { SectionProvider } from '../../platform/tree/baseInterfaces';
-import { VisualizationSettingsModularTreeItem, VisualizationSettingsModularItemFactory } from './items/visualizationSettingsItems';
-import { VisualizationSettingsClickHandler } from './interactions/handleVisualizationSettingsClicks';
-import { VisualizationSettingsStorage } from '../../visualization_settings/storage/settingsStorage';
-import { getLogger } from '../../core/logging/sink';
+import { SectionProvider } from '../../../platform/tree/baseInterfaces';
+import { VisualizationSettingsModularTreeItem, VisualizationSettingsModularItemFactory } from './visualizationSettingsSectionItems';
+import { VisualizationSettingsClickHandler } from './handleVisualizationSettingsClicks';
+import { VisualizationSettingsStorage } from '../../../core/charts/settings/settingsStorage';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_SETTINGS_MODULAR');
diff --git a/apps/vscode-extension/src/visualization_settings/utils/colorPickerUtils.ts b/apps/vscode-extension/src/features/visualization-settings/views/colorPickerUtils.ts
similarity index 95%
rename from apps/vscode-extension/src/visualization_settings/utils/colorPickerUtils.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/colorPickerUtils.ts
index bce3f639f..e60676c98 100644
--- a/apps/vscode-extension/src/visualization_settings/utils/colorPickerUtils.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/colorPickerUtils.ts
@@ -1,8 +1,8 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { getLogger } from '../../core/logging/sink';
-import { resolveTemplatePath } from '../../platform/templatePaths';
+import { getLogger } from '../../../platform/logging/sink';
+import { resolveTemplatePath } from '../../../platform/templatePaths';
const logger = getLogger('COLOR_PICKER_UTILS');
diff --git a/apps/vscode-extension/src/visualization_settings/utils/dynamicColorIconGenerator.ts b/apps/vscode-extension/src/features/visualization-settings/views/dynamicColorIconGenerator.ts
similarity index 99%
rename from apps/vscode-extension/src/visualization_settings/utils/dynamicColorIconGenerator.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/dynamicColorIconGenerator.ts
index 10f58c9b6..6c9496fa8 100644
--- a/apps/vscode-extension/src/visualization_settings/utils/dynamicColorIconGenerator.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/dynamicColorIconGenerator.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { getLogger } from '../../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('DYNAMIC_COLOR_ICON_GENERATOR');
diff --git a/apps/vscode-extension/src/visualization_settings/views/interactions/handleSettingsInteraction.ts b/apps/vscode-extension/src/features/visualization-settings/views/handleSettingsInteraction.ts
similarity index 98%
rename from apps/vscode-extension/src/visualization_settings/views/interactions/handleSettingsInteraction.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/handleSettingsInteraction.ts
index 558f38f5a..5c2cccade 100644
--- a/apps/vscode-extension/src/visualization_settings/views/interactions/handleSettingsInteraction.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/handleSettingsInteraction.ts
@@ -8,11 +8,11 @@ import {
EnvironmentPreset,
ChartPalette,
DEFAULT_VISUALIZATION_SETTINGS
-} from '../../model/settingsModel';
-import { VisualizationSettingsStorage } from '../../storage/settingsStorage';
-import { ColorPickerUtils, ColorPickerOptions } from '../../utils/colorPickerUtils';
-import { DynamicColorIconGenerator } from '../../utils/dynamicColorIconGenerator';
-import { getLogger } from '../../../core/logging/sink';
+} from '../../../core/charts/settings/settingsModel';
+import { VisualizationSettingsStorage } from '../../../core/charts/settings/settingsStorage';
+import { ColorPickerUtils, ColorPickerOptions } from './colorPickerUtils';
+import { DynamicColorIconGenerator } from './dynamicColorIconGenerator';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('HANDLE_SETTINGS_INTERACTION');
diff --git a/apps/vscode-extension/src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts b/apps/vscode-extension/src/features/visualization-settings/views/handleVisualizationSettingsClicks.ts
similarity index 97%
rename from apps/vscode-extension/src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/handleVisualizationSettingsClicks.ts
index ac8e70a2e..efb59c64e 100644
--- a/apps/vscode-extension/src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/handleVisualizationSettingsClicks.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { VisualizationSettingsModularTreeItem } from '../items/visualizationSettingsItems';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizationSettingsModularTreeItem } from './visualizationSettingsSectionItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_SETTINGS_MODULAR');
diff --git a/apps/vscode-extension/src/visualization_settings/views/items/visualizationSettingsItems.ts b/apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsItems.ts
similarity index 96%
rename from apps/vscode-extension/src/visualization_settings/views/items/visualizationSettingsItems.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsItems.ts
index 470d909d8..581d316ac 100644
--- a/apps/vscode-extension/src/visualization_settings/views/items/visualizationSettingsItems.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsItems.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { VisualizationSettings, SETTING_FIELDS, SettingField } from '../../model/settingsModel';
-import { DynamicColorIconGenerator } from '../../utils/dynamicColorIconGenerator';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizationSettings, SETTING_FIELDS, SettingField } from '../../../core/charts/settings/settingsModel';
+import { DynamicColorIconGenerator } from './dynamicColorIconGenerator';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_SETTINGS_ITEMS');
diff --git a/apps/vscode-extension/src/views/visualization_settings/items/visualizationSettingsItems.ts b/apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsSectionItems.ts
similarity index 94%
rename from apps/vscode-extension/src/views/visualization_settings/items/visualizationSettingsItems.ts
rename to apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsSectionItems.ts
index 6a8dd57da..56b191603 100644
--- a/apps/vscode-extension/src/views/visualization_settings/items/visualizationSettingsItems.ts
+++ b/apps/vscode-extension/src/features/visualization-settings/views/visualizationSettingsSectionItems.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { VisualizationSettingsTreeItem, VisualizationSettingsItemFactory } from '../../../visualization_settings/views/items/visualizationSettingsItems';
-import { VisualizationSettings } from '../../../visualization_settings/model/settingsModel';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizationSettingsTreeItem, VisualizationSettingsItemFactory } from './visualizationSettingsItems';
+import { VisualizationSettings } from '../../../core/charts/settings/settingsModel';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_SETTINGS_MODULAR');
diff --git a/apps/vscode-extension/src/commands/visualize_data/visualizeDataCommands.ts b/apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommandRegistrations.ts
similarity index 56%
rename from apps/vscode-extension/src/commands/visualize_data/visualizeDataCommands.ts
rename to apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommandRegistrations.ts
index 86fe92823..4a658bdbd 100644
--- a/apps/vscode-extension/src/commands/visualize_data/visualizeDataCommands.ts
+++ b/apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommandRegistrations.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { VisualizeDataCommands } from '../../visualize_data/commands/visualizeDataCommands';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
+import { VisualizeDataCommands } from './visualizeDataCommands';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
export function getVisualizeDataCommandRegistrations(
context: vscode.ExtensionContext,
diff --git a/apps/vscode-extension/src/visualize_data/commands/visualizeDataCommands.ts b/apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommands.ts
similarity index 92%
rename from apps/vscode-extension/src/visualize_data/commands/visualizeDataCommands.ts
rename to apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommands.ts
index 723cca27f..f670127af 100644
--- a/apps/vscode-extension/src/visualize_data/commands/visualizeDataCommands.ts
+++ b/apps/vscode-extension/src/features/visualize-data/commands/visualizeDataCommands.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
-import { VisualizationLauncher } from '../views/interactions/visualizationLauncher';
+import { VisualizationLauncher } from '../services/visualizationLauncher';
import { VisualizeDataModel } from '../model/visualizeDataModel';
-import { VisualizationRestorer, StoredVisualization } from '../runtime/visualizationRestorer';
-import { ExtensionCommandRegistration } from '../../platform/commands/commandRegistry';
-import { getLogger } from '../../core/logging/sink';
+import { VisualizationRestorer, StoredVisualization } from '../services/visualizationRestorer';
+import { ExtensionCommandRegistration } from '../../../platform/commands/commandRegistry';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_COMMANDS');
diff --git a/apps/vscode-extension/src/visualize_data/model/visualizeDataModel.ts b/apps/vscode-extension/src/features/visualize-data/model/visualizeDataModel.ts
similarity index 97%
rename from apps/vscode-extension/src/visualize_data/model/visualizeDataModel.ts
rename to apps/vscode-extension/src/features/visualize-data/model/visualizeDataModel.ts
index a3395c5ee..ad5083b5c 100644
--- a/apps/vscode-extension/src/visualize_data/model/visualizeDataModel.ts
+++ b/apps/vscode-extension/src/features/visualize-data/model/visualizeDataModel.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
-import { VisualizeDataStateManager } from '../state/visualizeDataState';
-import { getLogger } from '../../core/logging/sink';
+import { VisualizeDataStateManager } from './visualizeDataState';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_MODEL');
diff --git a/apps/vscode-extension/src/visualize_data/state/visualizeDataState.ts b/apps/vscode-extension/src/features/visualize-data/model/visualizeDataState.ts
similarity index 98%
rename from apps/vscode-extension/src/visualize_data/state/visualizeDataState.ts
rename to apps/vscode-extension/src/features/visualize-data/model/visualizeDataState.ts
index 9434bf790..1fc011573 100644
--- a/apps/vscode-extension/src/visualize_data/state/visualizeDataState.ts
+++ b/apps/vscode-extension/src/features/visualize-data/model/visualizeDataState.ts
@@ -1,8 +1,8 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
-import { ChartMetadata, DimensionMapping } from '../../babia_templates/models/chartModels';
-import { JsonAnalysisResult } from '../../utils/jsonFieldAnalyzer';
-import { getLogger } from '../../core/logging/sink';
+import { ChartMetadata, DimensionMapping } from '../../../core/charts/chartModels';
+import { JsonAnalysisResult } from '../services/jsonFieldAnalyzer';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_STATE');
diff --git a/apps/vscode-extension/src/utils/jsonFieldAnalyzer.ts b/apps/vscode-extension/src/features/visualize-data/services/jsonFieldAnalyzer.ts
similarity index 99%
rename from apps/vscode-extension/src/utils/jsonFieldAnalyzer.ts
rename to apps/vscode-extension/src/features/visualize-data/services/jsonFieldAnalyzer.ts
index ed689bc7d..0eb9525c5 100644
--- a/apps/vscode-extension/src/utils/jsonFieldAnalyzer.ts
+++ b/apps/vscode-extension/src/features/visualize-data/services/jsonFieldAnalyzer.ts
@@ -1,5 +1,5 @@
import * as fs from 'fs';
-import { getLogger } from '../core/logging/sink';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('JSON_FIELD_ANALYZER');
diff --git a/apps/vscode-extension/src/visualize_data/views/interactions/visualizationLauncher.ts b/apps/vscode-extension/src/features/visualize-data/services/visualizationLauncher.ts
similarity index 97%
rename from apps/vscode-extension/src/visualize_data/views/interactions/visualizationLauncher.ts
rename to apps/vscode-extension/src/features/visualize-data/services/visualizationLauncher.ts
index 80dced897..9f60b51c1 100644
--- a/apps/vscode-extension/src/visualize_data/views/interactions/visualizationLauncher.ts
+++ b/apps/vscode-extension/src/features/visualize-data/services/visualizationLauncher.ts
@@ -1,14 +1,14 @@
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
-import { BabiaChartRegistry } from '../../../babia_templates/registry/chartRegistry';
-import { VisualizeDataStateManager, VisualizeDataState } from '../../state/visualizeDataState';
-import { JsonFieldAnalyzer } from '../../../utils/jsonFieldAnalyzer';
-import { DimensionMapping } from '../../../babia_templates/models/chartModels';
-import { generateNonce } from '../../../utils/nonceGenerator';
-import { TemplateProcessor } from '../../../babia_templates/processing/templateProcessor';
-import { launchServerWithFile } from '../../../servers/runtime/index';
-import { getLogger } from '../../../core/logging/sink';
+import { BabiaChartRegistry } from '../../../core/charts/chartRegistry';
+import { VisualizeDataStateManager, VisualizeDataState } from '../model/visualizeDataState';
+import { JsonFieldAnalyzer } from './jsonFieldAnalyzer';
+import { DimensionMapping } from '../../../core/charts/chartModels';
+import { generateNonce } from '../../../shared/nonceGenerator';
+import { TemplateProcessor } from '../../../core/charts/processing/templateProcessor';
+import { launchServerWithFile } from '../../../core/server/launchServerWithFile';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_LAUNCHER');
diff --git a/apps/vscode-extension/src/visualize_data/runtime/visualizationRestorer.ts b/apps/vscode-extension/src/features/visualize-data/services/visualizationRestorer.ts
similarity index 97%
rename from apps/vscode-extension/src/visualize_data/runtime/visualizationRestorer.ts
rename to apps/vscode-extension/src/features/visualize-data/services/visualizationRestorer.ts
index 603936d7e..03b3742bd 100644
--- a/apps/vscode-extension/src/visualize_data/runtime/visualizationRestorer.ts
+++ b/apps/vscode-extension/src/features/visualize-data/services/visualizationRestorer.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
-import { launchServerWithFile } from '../../servers/runtime/index';
-import { getActiveServerRegistry } from '../../active_servers/registry/activeServerRegistry';
-import { getLogger } from '../../core/logging/sink';
+import { launchServerWithFile } from '../../../core/server/launchServerWithFile';
+import { getActiveServerRegistry } from '../../../core/server/registry/activeServerRegistry';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZATION_RESTORER');
diff --git a/apps/vscode-extension/src/views/visualize_data/VisualizeDataSectionProvider.ts b/apps/vscode-extension/src/features/visualize-data/views/VisualizeDataSectionProvider.ts
similarity index 92%
rename from apps/vscode-extension/src/views/visualize_data/VisualizeDataSectionProvider.ts
rename to apps/vscode-extension/src/features/visualize-data/views/VisualizeDataSectionProvider.ts
index 302340a2f..0b879c498 100644
--- a/apps/vscode-extension/src/views/visualize_data/VisualizeDataSectionProvider.ts
+++ b/apps/vscode-extension/src/features/visualize-data/views/VisualizeDataSectionProvider.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
-import { SectionProvider } from '../../platform/tree/baseInterfaces';
-import { VisualizeDataModularTreeItem, VisualizeDataModularItemFactory } from './items/visualizeDataItems';
-import { VisualizeDataClickHandler } from './interactions/handleVisualizeDataClicks';
-import { VisualizeDataStateManager } from '../../visualize_data/state/visualizeDataState';
-import { VisualizeDataModel } from '../../visualize_data/model/visualizeDataModel';
+import { SectionProvider } from '../../../platform/tree/baseInterfaces';
+import { VisualizeDataModularTreeItem, VisualizeDataModularItemFactory } from './visualizeDataSectionItems';
+import { VisualizeDataClickHandler } from './handleVisualizeDataClicks';
+import { VisualizeDataStateManager } from '../model/visualizeDataState';
+import { VisualizeDataModel } from '../model/visualizeDataModel';
/**
* Visualize Data section provider - manages data visualization configuration and launch
diff --git a/apps/vscode-extension/src/views/visualize_data/interactions/handleVisualizeDataClicks.ts b/apps/vscode-extension/src/features/visualize-data/views/handleVisualizeDataClicks.ts
similarity index 98%
rename from apps/vscode-extension/src/views/visualize_data/interactions/handleVisualizeDataClicks.ts
rename to apps/vscode-extension/src/features/visualize-data/views/handleVisualizeDataClicks.ts
index 4f0b2a1a4..754f07228 100644
--- a/apps/vscode-extension/src/views/visualize_data/interactions/handleVisualizeDataClicks.ts
+++ b/apps/vscode-extension/src/features/visualize-data/views/handleVisualizeDataClicks.ts
@@ -1,6 +1,6 @@
import * as vscode from 'vscode';
-import { VisualizeDataModularTreeItem } from '../items/visualizeDataItems';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizeDataModularTreeItem } from './visualizeDataSectionItems';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_MODULAR');
diff --git a/apps/vscode-extension/src/visualize_data/views/items/visualizationItem.ts b/apps/vscode-extension/src/features/visualize-data/views/visualizationItem.ts
similarity index 98%
rename from apps/vscode-extension/src/visualize_data/views/items/visualizationItem.ts
rename to apps/vscode-extension/src/features/visualize-data/views/visualizationItem.ts
index 2c726fc59..a90f00553 100644
--- a/apps/vscode-extension/src/visualize_data/views/items/visualizationItem.ts
+++ b/apps/vscode-extension/src/features/visualize-data/views/visualizationItem.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { StoredVisualization } from '../../runtime/visualizationRestorer';
+import { StoredVisualization } from '../services/visualizationRestorer';
/**
* Tree item types for browse visualizations
diff --git a/apps/vscode-extension/src/visualize_data/views/items/visualizeDataItems.ts b/apps/vscode-extension/src/features/visualize-data/views/visualizeDataItems.ts
similarity index 98%
rename from apps/vscode-extension/src/visualize_data/views/items/visualizeDataItems.ts
rename to apps/vscode-extension/src/features/visualize-data/views/visualizeDataItems.ts
index 1c64694aa..27079390b 100644
--- a/apps/vscode-extension/src/visualize_data/views/items/visualizeDataItems.ts
+++ b/apps/vscode-extension/src/features/visualize-data/views/visualizeDataItems.ts
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
-import { VisualizeDataStateManager, VisualizeDataState } from '../../state/visualizeDataState';
-import { ChartDimension } from '../../../babia_templates/models/chartModels';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizeDataStateManager, VisualizeDataState } from '../model/visualizeDataState';
+import { ChartDimension } from '../../../core/charts/chartModels';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_ITEMS');
diff --git a/apps/vscode-extension/src/views/visualize_data/items/visualizeDataItems.ts b/apps/vscode-extension/src/features/visualize-data/views/visualizeDataSectionItems.ts
similarity index 94%
rename from apps/vscode-extension/src/views/visualize_data/items/visualizeDataItems.ts
rename to apps/vscode-extension/src/features/visualize-data/views/visualizeDataSectionItems.ts
index 601e9e84e..36b03fff0 100644
--- a/apps/vscode-extension/src/views/visualize_data/items/visualizeDataItems.ts
+++ b/apps/vscode-extension/src/features/visualize-data/views/visualizeDataSectionItems.ts
@@ -1,9 +1,9 @@
import * as vscode from 'vscode';
-import { VisualizeDataTreeItem, VisualizeDataItemFactory } from '../../../visualize_data/views/items/visualizeDataItems';
-import { VisualizeDataState } from '../../../visualize_data/state/visualizeDataState';
-import { VisualizationRestorer } from '../../../visualize_data/runtime/visualizationRestorer';
-import { BrowseVisualizationItemFactory } from '../../../visualize_data/views/items/visualizationItem';
-import { getLogger } from '../../../core/logging/sink';
+import { VisualizeDataTreeItem, VisualizeDataItemFactory } from './visualizeDataItems';
+import { VisualizeDataState } from '../model/visualizeDataState';
+import { VisualizationRestorer } from '../services/visualizationRestorer';
+import { BrowseVisualizationItemFactory } from './visualizationItem';
+import { getLogger } from '../../../platform/logging/sink';
const logger = getLogger('VISUALIZE_DATA_MODULAR');
diff --git a/apps/vscode-extension/src/utils/commandBuilder.ts b/apps/vscode-extension/src/platform/commands/commandBuilder.ts
similarity index 89%
rename from apps/vscode-extension/src/utils/commandBuilder.ts
rename to apps/vscode-extension/src/platform/commands/commandBuilder.ts
index 7e13ca171..6b7499b4e 100644
--- a/apps/vscode-extension/src/utils/commandBuilder.ts
+++ b/apps/vscode-extension/src/platform/commands/commandBuilder.ts
@@ -8,9 +8,9 @@
*/
import * as vscode from 'vscode';
-import type { ExtensionCommandRegistration } from '../platform/commands/commandRegistry';
-import { handleError, ErrorDomain, ErrorSeverity } from './errorHandler';
-import { getLogger } from '../core/logging/sink';
+import type { ExtensionCommandRegistration } from './commandRegistry';
+import { handleError, ErrorDomain, ErrorSeverity } from '../ui/errorHandler';
+import { getLogger } from '../logging/sink';
const logger = getLogger('COMMAND_BUILDER');
diff --git a/apps/vscode-extension/src/platform/commands/commandRegistry.ts b/apps/vscode-extension/src/platform/commands/commandRegistry.ts
index 3757f6198..22a2feb27 100644
--- a/apps/vscode-extension/src/platform/commands/commandRegistry.ts
+++ b/apps/vscode-extension/src/platform/commands/commandRegistry.ts
@@ -2,7 +2,7 @@
* Shared command registration model used across the entire extension.
*
* Commands are declared as metadata and registered centrally from
- * `src/commands/index.ts` through CommandBuilder.
+ * `src/app/commands/registerAllCommands.ts` through CommandBuilder.
*/
export interface ExtensionCommandRegistration {
diff --git a/apps/vscode-extension/src/core/extensionContext.ts b/apps/vscode-extension/src/platform/extensionContext.ts
similarity index 94%
rename from apps/vscode-extension/src/core/extensionContext.ts
rename to apps/vscode-extension/src/platform/extensionContext.ts
index 6a859cd04..c837526ad 100644
--- a/apps/vscode-extension/src/core/extensionContext.ts
+++ b/apps/vscode-extension/src/platform/extensionContext.ts
@@ -10,7 +10,7 @@
* initializeExtensionContext(context);
*
* // In any consumer (no context parameter needed):
- * import { getExtensionContext } from '../core/extensionContext';
+ * import { getExtensionContext } from './extensionContext';
* const ctx = getExtensionContext();
*/
diff --git a/apps/vscode-extension/src/core/logging/logPolicy.ts b/apps/vscode-extension/src/platform/logging/logPolicy.ts
similarity index 100%
rename from apps/vscode-extension/src/core/logging/logPolicy.ts
rename to apps/vscode-extension/src/platform/logging/logPolicy.ts
diff --git a/apps/vscode-extension/src/core/logging/logger.ts b/apps/vscode-extension/src/platform/logging/logger.ts
similarity index 100%
rename from apps/vscode-extension/src/core/logging/logger.ts
rename to apps/vscode-extension/src/platform/logging/logger.ts
diff --git a/apps/vscode-extension/src/core/logging/sink.ts b/apps/vscode-extension/src/platform/logging/sink.ts
similarity index 100%
rename from apps/vscode-extension/src/core/logging/sink.ts
rename to apps/vscode-extension/src/platform/logging/sink.ts
diff --git a/apps/vscode-extension/src/utils/detailDialog.ts b/apps/vscode-extension/src/platform/ui/detailDialog.ts
similarity index 100%
rename from apps/vscode-extension/src/utils/detailDialog.ts
rename to apps/vscode-extension/src/platform/ui/detailDialog.ts
diff --git a/apps/vscode-extension/src/utils/errorHandler.ts b/apps/vscode-extension/src/platform/ui/errorHandler.ts
similarity index 97%
rename from apps/vscode-extension/src/utils/errorHandler.ts
rename to apps/vscode-extension/src/platform/ui/errorHandler.ts
index dea68c555..9e3eeb816 100644
--- a/apps/vscode-extension/src/utils/errorHandler.ts
+++ b/apps/vscode-extension/src/platform/ui/errorHandler.ts
@@ -6,7 +6,7 @@
*/
import * as vscode from 'vscode';
-import { CodeXRLogger } from '../core/logging/logger';
+import { CodeXRLogger } from '../logging/logger';
const logger = CodeXRLogger.getLogger('ERROR_HANDLER');
diff --git a/apps/vscode-extension/src/active_servers/services/panelManager.ts b/apps/vscode-extension/src/platform/webview/panelManager.ts
similarity index 99%
rename from apps/vscode-extension/src/active_servers/services/panelManager.ts
rename to apps/vscode-extension/src/platform/webview/panelManager.ts
index b786bf3b3..7c12dc8e5 100644
--- a/apps/vscode-extension/src/active_servers/services/panelManager.ts
+++ b/apps/vscode-extension/src/platform/webview/panelManager.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { getLogger } from '../../core/logging/sink';
+import { getLogger } from '../logging/sink';
const logger = getLogger('ACTIVE_SERVER_PANEL');
diff --git a/apps/vscode-extension/src/remote_access/index.ts b/apps/vscode-extension/src/remote_access/index.ts
deleted file mode 100644
index 86e780470..000000000
--- a/apps/vscode-extension/src/remote_access/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from './model/remoteAccessModel';
-export * from './security/remoteSessionAuthority';
-export * from './services/cloudflaredBinaryManager';
-export * from './services/remoteAccessManager';
diff --git a/apps/vscode-extension/src/utils/nonceGenerator.ts b/apps/vscode-extension/src/shared/nonceGenerator.ts
similarity index 100%
rename from apps/vscode-extension/src/utils/nonceGenerator.ts
rename to apps/vscode-extension/src/shared/nonceGenerator.ts
diff --git a/apps/vscode-extension/src/views/active_servers/index.ts b/apps/vscode-extension/src/views/active_servers/index.ts
deleted file mode 100644
index 34b3ce1c1..000000000
--- a/apps/vscode-extension/src/views/active_servers/index.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Active Servers View Module
- * Exports for the modular Active Servers section
- */
-
-// Section Provider
-export { ActiveServersSectionProvider } from './ActiveServersSectionProvider';
-
-// Items
-export { ActiveServerTreeItem, ActiveServerItemFactory } from './items/activeServerItems';
diff --git a/apps/vscode-extension/src/views/babia_examples/index.ts b/apps/vscode-extension/src/views/babia_examples/index.ts
deleted file mode 100644
index 70dd3d039..000000000
--- a/apps/vscode-extension/src/views/babia_examples/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Babia Examples View Module
- * Exports for the modular Babia Examples section
- */
-
-// Section Provider
-export { BabiaExamplesSectionProvider } from './BabiaExamplesSectionProvider';
-
-// Items
-export { BabiaExampleTreeItem, BabiaExampleItemFactory } from './items/babiaExampleItems';
-
-// Interactions
-export { BabiaExampleClickHandler } from './interactions/handleBabiaExampleClicks';
diff --git a/apps/vscode-extension/src/views/collaboration/index.ts b/apps/vscode-extension/src/views/collaboration/index.ts
deleted file mode 100644
index 6f866b97d..000000000
--- a/apps/vscode-extension/src/views/collaboration/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './CollaborationSectionProvider';
-export * from './items/collaborationItems';
diff --git a/apps/vscode-extension/src/views/common/sectionChild.ts b/apps/vscode-extension/src/views/common/sectionChild.ts
deleted file mode 100644
index 3732420fe..000000000
--- a/apps/vscode-extension/src/views/common/sectionChild.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// Types only: every import here is `import type`, so this module never loads
-// the item modules. ModularTreeDataProvider loads them lazily on purpose.
-import type { ServerTreeItem } from '../servers/items/serverItems';
-import type { ActiveServerTreeItem } from '../active_servers/items/activeServerItems';
-import type { BabiaExampleTreeItem } from '../babia_examples/items/babiaExampleItems';
-import type { VisualizeDataModularTreeItem } from '../visualize_data/items/visualizeDataItems';
-import type { CodeAnalysisTreeItem } from '../../code_analysis/views/items/analysisItems';
-import type { PythonEnvModularTreeItem } from '../../python_env/views/items/pythonEnvItems';
-import type { VisualizationSettingsModularTreeItem } from '../visualization_settings/items/visualizationSettingsItems';
-import type { LearnMoreModularTreeItem } from '../learn_more/items/learnMoreItems';
-
-/**
- * An item as a section provider produces and consumes it: one of the eight
- * section item classes, in sidebar order. ModularTreeDataProvider bridges
- * these to and from the ModularTreeItem the view renders.
- */
-export type SectionChild =
- | ServerTreeItem
- | ActiveServerTreeItem
- | BabiaExampleTreeItem
- | VisualizeDataModularTreeItem
- | CodeAnalysisTreeItem
- | PythonEnvModularTreeItem
- | VisualizationSettingsModularTreeItem
- | LearnMoreModularTreeItem;
diff --git a/apps/vscode-extension/src/views/index.ts b/apps/vscode-extension/src/views/index.ts
deleted file mode 100644
index ba9d4d082..000000000
--- a/apps/vscode-extension/src/views/index.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Modular Views Index
- * Central exports for all modular view components.
- */
-
-// Main modular tree provider
-export { ModularTreeDataProvider } from './ModularTreeDataProvider';
-
-// Common interfaces and utilities
-export * from '../platform/tree/baseInterfaces';
-
-// Section providers
-export * from './servers';
-export * from './active_servers';
-export * from './babia_examples';
-export * from './visualize_data';
-export * from './python_env';
-export * from './visualization_settings';
-export * from './collaboration';
-export * from './learn_more';
-
-// New code analysis views (experimental)
-export * from '../code_analysis/views';
-
diff --git a/apps/vscode-extension/src/views/learn_more/index.ts b/apps/vscode-extension/src/views/learn_more/index.ts
deleted file mode 100644
index 75b094308..000000000
--- a/apps/vscode-extension/src/views/learn_more/index.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Learn More Views Index
- * Central exports for learn more view components
- */
-
-export { LearnMoreSectionProvider } from './LearnMoreSectionProvider';
-export { LearnMoreModularTreeItem, LearnMoreModularItemFactory } from './items/learnMoreItems';
-export { LearnMoreClickHandler } from './interactions/handleLearnMoreClicks';
diff --git a/apps/vscode-extension/src/views/python_env/index.ts b/apps/vscode-extension/src/views/python_env/index.ts
deleted file mode 100644
index 97d6662ae..000000000
--- a/apps/vscode-extension/src/views/python_env/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Python Environment View Module
- * Exports for the modular Python environment section.
- */
-
-// Section Provider
-export { PythonEnvSectionProvider } from './PythonEnvSectionProvider';
diff --git a/apps/vscode-extension/src/views/servers/index.ts b/apps/vscode-extension/src/views/servers/index.ts
deleted file mode 100644
index 1988c5875..000000000
--- a/apps/vscode-extension/src/views/servers/index.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Servers View Module
- * Exports for the modular Servers section
- */
-
-// Section Provider
-export { ServersSectionProvider } from './ServersSectionProvider';
-
-// Items
-export { ServerTreeItem, ServerItemFactory } from './items/serverItems';
diff --git a/apps/vscode-extension/src/views/visualization_settings/index.ts b/apps/vscode-extension/src/views/visualization_settings/index.ts
deleted file mode 100644
index 2f8bbf435..000000000
--- a/apps/vscode-extension/src/views/visualization_settings/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Visualization Settings View Module
- * Exports for the modular Visualization Settings section
- */
-
-// Section Provider
-export { VisualizationSettingsSectionProvider } from './VisualizationSettingsSectionProvider';
-
-// Items
-export { VisualizationSettingsModularTreeItem, VisualizationSettingsModularItemFactory } from './items/visualizationSettingsItems';
-
-// Interactions
-export { VisualizationSettingsClickHandler } from './interactions/handleVisualizationSettingsClicks';
diff --git a/apps/vscode-extension/src/views/visualize_data/index.ts b/apps/vscode-extension/src/views/visualize_data/index.ts
deleted file mode 100644
index c262f84e0..000000000
--- a/apps/vscode-extension/src/views/visualize_data/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Visualize Data View Module
- * Exports for the modular Visualize Data section
- */
-
-// Section Provider
-export { VisualizeDataSectionProvider } from './VisualizeDataSectionProvider';
-
-// Items
-export { VisualizeDataModularTreeItem, VisualizeDataModularItemFactory } from './items/visualizeDataItems';
-
-// Interactions
-export { VisualizeDataClickHandler } from './interactions/handleVisualizeDataClicks';
diff --git a/apps/vscode-extension/src/visualization_settings/index.ts b/apps/vscode-extension/src/visualization_settings/index.ts
deleted file mode 100644
index 0895e8741..000000000
--- a/apps/vscode-extension/src/visualization_settings/index.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Visualization Settings Module
- * Main entry point for visualization configuration management
- */
-
-export { VisualizationSettings, DEFAULT_VISUALIZATION_SETTINGS, SettingFieldType } from './model/settingsModel';
-export { VisualizationSettingsStorage } from './storage/settingsStorage';
-export { VisualizationSettingsItemFactory, VisualizationSettingsTreeItem } from './views/items/visualizationSettingsItems';
-export { VisualizationSettingsInteractionHandler } from './views/interactions/handleSettingsInteraction';
-
-// Export settings accessors for babia-templates integration
-export {
- initializeSettingsAccessors,
- getSelectedBackgroundColor,
- getSelectedGroundColor,
- getSelectedEnvironment,
- getSelectedPalette,
- getAllSelectedSettings
-} from './utils/settingsAccessors';
diff --git a/apps/vscode-extension/test/analysis/activeAnalysesActions.test.cjs b/apps/vscode-extension/test/analysis/activeAnalysesActions.test.cjs
index 4183a3dc0..38415ee98 100644
--- a/apps/vscode-extension/test/analysis/activeAnalysesActions.test.cjs
+++ b/apps/vscode-extension/test/analysis/activeAnalysesActions.test.cjs
@@ -24,14 +24,13 @@ test('Active Analyses contributes the new action commands and removes the legacy
});
test('Active Analyses tree items use showActions on left click', () => {
- const sectionProvider = readProjectFile('src', 'code_analysis', 'views', 'AnalysisSectionProvider.ts');
+ const sectionProvider = readProjectFile('src', 'features', 'analysis', 'views', 'AnalysisSectionProvider.ts');
const dataService = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'services',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesDataService.ts',
);
@@ -44,11 +43,10 @@ test('Active Analyses tree items use showActions on left click', () => {
test('Active Analyses commands implement quick pick actions and recursive export from savedFilesPath first', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
@@ -64,19 +62,18 @@ test('Active Analyses commands implement quick pick actions and recursive export
test('Active Analyses command registration injects ExtensionContext into its singleton', () => {
const registrationSource = readProjectFile(
'src',
- 'code_analysis',
- 'commands',
- 'subsections',
- 'active_analyses',
- 'activeAnalysesCommands.ts',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
+ 'activeAnalysesCommandRegistrations.ts',
);
const commandSource = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
@@ -97,11 +94,10 @@ test('Active Analyses command registration injects ExtensionContext into its sin
test('Export produces a self-contained copy: dependency pre-generation plus destination-only post-processing', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
@@ -144,11 +140,10 @@ test('Export produces a self-contained copy: dependency pre-generation plus dest
test('the export modal decides what ships, before the destination is picked', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
@@ -172,7 +167,7 @@ test('the export modal decides what ships, before the destination is picked', ()
assert.match(source, /Maximum speed — \$\{maximumPlan\.workerCount\} workers/);
// Selection semantics live in the vscode-free helper.
- const selection = require('../../out/code_analysis/export/exportModeSelection.js');
+ const selection = require('../../out/core/export/exportModeSelection.js');
const allCapabilities = { dependencyGraph: true, historicalComparison: true, projectEvolution: true };
const items = selection.buildExportModeItems(allCapabilities);
assert.deepEqual(items.map((item) => item.modeId), ['normal', 'dependency-graph', 'historical', 'evolution']);
@@ -216,11 +211,10 @@ test('the export modal decides what ships, before the destination is picked', ()
test('Close Analysis confirmation uses the improved modal copy', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
diff --git a/apps/vscode-extension/test/analysis/activeAnalysesCommands.test.cjs b/apps/vscode-extension/test/analysis/activeAnalysesCommands.test.cjs
index a727a2f53..832a53f54 100644
--- a/apps/vscode-extension/test/analysis/activeAnalysesCommands.test.cjs
+++ b/apps/vscode-extension/test/analysis/activeAnalysesCommands.test.cjs
@@ -1,6 +1,6 @@
/**
* Behavioural characterization of the Active Analyses command handlers
- * (src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts),
+ * (src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts),
* executed from out/ under the fake vscode.
*
* What it pins, so that reshaping the handlers cannot change what a user sees:
@@ -21,7 +21,7 @@ const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
-const MODULE = 'code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.js';
+const MODULE = 'features/analysis/sections/active-analyses/activeAnalysesCommands.js';
const COMMANDS = {
showActions: 'codeXR.analysis.activeAnalyses.showActions',
@@ -239,8 +239,8 @@ test('closeOutcome: declining the confirmation closes nothing', async () => {
// performance, the modal 'Continue Export' confirmation and only then the
// destination picker. Each step's dismissal ends the wizard right there.
-const GIT_EXPORTER_MODULE = 'code_analysis/export/gitRevisionExporter.js';
-const GIT_OPTIONS_MODULE = 'code_analysis/export/gitExportOptions.js';
+const GIT_EXPORTER_MODULE = 'core/export/gitRevisionExporter.js';
+const GIT_OPTIONS_MODULE = 'core/export/gitExportOptions.js';
/**
* Answers are consumed FIFO by every dialog and message; a function answer
diff --git a/apps/vscode-extension/test/analysis/activeAnalysesPresentation.test.cjs b/apps/vscode-extension/test/analysis/activeAnalysesPresentation.test.cjs
index 2399280a3..4c7fc8335 100644
--- a/apps/vscode-extension/test/analysis/activeAnalysesPresentation.test.cjs
+++ b/apps/vscode-extension/test/analysis/activeAnalysesPresentation.test.cjs
@@ -12,7 +12,7 @@ const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'tes
// TreeItem for the context-menu commands. Runs the real service from out/
// against a stub session registry.
-const MODULE = 'code_analysis/views/subsections/active_analyses/services/activeAnalysesDataService.js';
+const MODULE = 'features/analysis/sections/active-analyses/activeAnalysesDataService.js';
async function render(sessions) {
const fake = createFakeVscode();
diff --git a/apps/vscode-extension/test/analysis/analysisMessageRouter.test.cjs b/apps/vscode-extension/test/analysis/analysisMessageRouter.test.cjs
index 9f8183ec3..937920bd8 100644
--- a/apps/vscode-extension/test/analysis/analysisMessageRouter.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisMessageRouter.test.cjs
@@ -13,10 +13,10 @@ const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'tes
async function withRouter(snapshots, body) {
await withFakeVscode(createFakeVscode(), async ({ requireOut }) => {
- const { analysisRefreshCoordinator } = requireOut('code_analysis/refresh/analysisRefreshCoordinator.js');
+ const { analysisRefreshCoordinator } = requireOut('core/analysis/refresh/analysisRefreshCoordinator.js');
const calls = [];
analysisRefreshCoordinator.setSnapshotAvailable = (...args) => calls.push(['setSnapshotAvailable', ...args]);
- const { AnalysisMessageRouter } = requireOut('servers/runtime/analysis/analysisMessageRouter.js');
+ const { AnalysisMessageRouter } = requireOut('core/server/analysis/analysisMessageRouter.js');
const host = {
sessionId: 'session-1',
historicalComparisonService: undefined,
@@ -124,10 +124,10 @@ test('router: the wrong snapshot field does not count as available', async () =>
test('router: no room means no snapshot, so the dependency graph falls back to the menu', async () => {
await withFakeVscode(createFakeVscode(), async ({ requireOut }) => {
- const { analysisRefreshCoordinator } = requireOut('code_analysis/refresh/analysisRefreshCoordinator.js');
+ const { analysisRefreshCoordinator } = requireOut('core/analysis/refresh/analysisRefreshCoordinator.js');
const calls = [];
analysisRefreshCoordinator.setSnapshotAvailable = (...args) => calls.push(['setSnapshotAvailable', ...args]);
- const { AnalysisMessageRouter } = requireOut('servers/runtime/analysis/analysisMessageRouter.js');
+ const { AnalysisMessageRouter } = requireOut('core/server/analysis/analysisMessageRouter.js');
const host = {
sessionId: 's',
changeAnalysisViewMode: (...args) => calls.push(['change', ...args]),
diff --git a/apps/vscode-extension/test/analysis/analysisNamespace.test.cjs b/apps/vscode-extension/test/analysis/analysisNamespace.test.cjs
index 48e28a46d..7c0a8972a 100644
--- a/apps/vscode-extension/test/analysis/analysisNamespace.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisNamespace.test.cjs
@@ -77,15 +77,15 @@ test('package manifest keeps runtime artifacts inside dist-based packaging', ()
test('analysis settings no longer expose the XR mapping UI toggle', () => {
const analysisProvider = fs.readFileSync(
- path.join(projectRoot, 'src', 'code_analysis', 'views', 'subsections', 'analysis_settings', 'analysisSettingsSubsectionProvider.ts'),
+ path.join(projectRoot, 'src', 'features', 'analysis', 'sections', 'settings', 'analysisSettingsSubsectionProvider.ts'),
'utf8',
);
const analysisCommands = fs.readFileSync(
- path.join(projectRoot, 'src', 'code_analysis', 'commands', 'subsections', 'analysis_settings', 'analysisSettingsCommands.ts'),
+ path.join(projectRoot, 'src', 'features', 'analysis', 'sections', 'settings', 'analysisSettingsCommands.ts'),
'utf8',
);
const commandCollector = fs.readFileSync(
- path.join(projectRoot, 'src', 'code_analysis', 'commands', 'analysisCommands.ts'),
+ path.join(projectRoot, 'src', 'features', 'analysis', 'commands', 'analysisCommands.ts'),
'utf8',
);
diff --git a/apps/vscode-extension/test/analysis/analysisOrchestratorDuplicate.test.cjs b/apps/vscode-extension/test/analysis/analysisOrchestratorDuplicate.test.cjs
index d31974949..e72a1bc84 100644
--- a/apps/vscode-extension/test/analysis/analysisOrchestratorDuplicate.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisOrchestratorDuplicate.test.cjs
@@ -23,9 +23,9 @@ async function withOrchestrator(body) {
const workRoot = fs.realpathSync.native(fs.mkdtempSync(path.join(os.tmpdir(), 'codexr-orchestrator-')));
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- const { UnifiedSessionRegistry } = requireOut('code_analysis/engine/core/sessionRegistry.js');
+ const { UnifiedSessionRegistry } = requireOut('core/analysis/session/sessionRegistry.js');
const registry = UnifiedSessionRegistry.getInstance(context);
- const { AnalysisOrchestrator } = requireOut('code_analysis/engine/analysisOrchestrator.js');
+ const { AnalysisOrchestrator } = requireOut('core/analysis/analysisOrchestrator.js');
const fired = [];
registry.onSessionChanged((session) => fired.push(session.id));
await body({ registry, AnalysisOrchestrator, fake, context, workRoot, fired });
diff --git a/apps/vscode-extension/test/analysis/analysisPaths.test.cjs b/apps/vscode-extension/test/analysis/analysisPaths.test.cjs
index abbe9000f..9c11b969b 100644
--- a/apps/vscode-extension/test/analysis/analysisPaths.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisPaths.test.cjs
@@ -4,9 +4,9 @@ const fs = require('node:fs');
const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
-const executePythonSource = fs.readFileSync(path.join(projectRoot, 'src', 'code_analysis', 'engine', 'utils', 'executePython.ts'), 'utf8');
+const executePythonSource = fs.readFileSync(path.join(projectRoot, 'src', 'core', 'analysis', 'python', 'executePython.ts'), 'utf8');
// executePython and the Git export resolve backend scripts through this helper.
-const backendScriptPathSource = fs.readFileSync(path.join(projectRoot, 'src', 'code_analysis', 'engine', 'utils', 'backendScriptPath.ts'), 'utf8');
+const backendScriptPathSource = fs.readFileSync(path.join(projectRoot, 'src', 'core', 'analysis', 'python', 'backendScriptPath.ts'), 'utf8');
const pythonPathSources = executePythonSource + backendScriptPathSource;
const webpackConfigSource = fs.readFileSync(path.join(projectRoot, 'webpack.config.js'), 'utf8');
@@ -36,8 +36,8 @@ test('Python analysis uses the Lizard analyzer directly', () => {
test('analysis configuration uses the active storage module and no legacy storage shims', () => {
const legacyStoragePath = path.join(projectRoot, 'src', 'utils', 'analysisSettingsStorage.ts');
- const emptyStoragePath = path.join(projectRoot, 'src', 'code_analysis', 'storage');
- const activeStoragePath = path.join(projectRoot, 'src', 'code_analysis', 'configuration', 'analysisConfigurationStorage.ts');
+ const emptyStoragePath = path.join(projectRoot, 'src', 'core', 'analysis', 'storage');
+ const activeStoragePath = path.join(projectRoot, 'src', 'core', 'analysis', 'configuration', 'analysisConfigurationStorage.ts');
assert.equal(fs.existsSync(legacyStoragePath), false);
assert.equal(fs.existsSync(emptyStoragePath), false);
diff --git a/apps/vscode-extension/test/analysis/analysisRefreshCoordinator.test.cjs b/apps/vscode-extension/test/analysis/analysisRefreshCoordinator.test.cjs
index 18a864639..94d5b2c09 100644
--- a/apps/vscode-extension/test/analysis/analysisRefreshCoordinator.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisRefreshCoordinator.test.cjs
@@ -3,7 +3,7 @@ const test = require('node:test');
const {
AnalysisRefreshCoordinator,
-} = require('../../out/code_analysis/refresh/analysisRefreshCoordinator.js');
+} = require('../../out/core/analysis/refresh/analysisRefreshCoordinator.js');
const flush = () => new Promise(resolve => setTimeout(resolve, 10));
diff --git a/apps/vscode-extension/test/analysis/analysisServerCapabilities.test.cjs b/apps/vscode-extension/test/analysis/analysisServerCapabilities.test.cjs
index 20b18b39f..054c9a22b 100644
--- a/apps/vscode-extension/test/analysis/analysisServerCapabilities.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisServerCapabilities.test.cjs
@@ -20,8 +20,8 @@ function loadCapabilitiesModule() {
const sourcePath = path.join(
projectRoot,
'src',
- 'servers',
- 'runtime',
+ 'core',
+ 'server',
'analysisServerCapabilities.ts',
);
const source = fs.readFileSync(sourcePath, 'utf8');
@@ -102,7 +102,7 @@ test('resolveAnalysisServerCapabilities returns an independent object per call (
});
test('the analysis host resolves capabilities from the session mode and gates every optional service behind them', () => {
- const httpServer = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const httpServer = readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
// Uses the single shared capability resolver, keyed off the real session mode.
assert.match(httpServer, /import \{ resolveAnalysisServerCapabilities \} from '\.\.\/analysisServerCapabilities';/);
@@ -116,7 +116,7 @@ test('the analysis host resolves capabilities from the session mode and gates ev
});
test('the analysis host no longer constructs the XR-only feature services unconditionally', () => {
- const httpServer = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const httpServer = readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
// The historical/project-evolution services must never be reachable without
// first passing their capability gate — otherwise a non-XR launch throws.
@@ -131,8 +131,8 @@ test('the analysis host no longer constructs the XR-only feature services uncond
});
test('The XR-only services still throw for non-XR sessions, so gating their construction is load-bearing, not cosmetic', () => {
- const historical = readProjectFile('src', 'code_analysis', 'historical', 'historicalComparisonService.ts');
- const projectEvolution = readProjectFile('src', 'code_analysis', 'historical', 'projectEvolutionService.ts');
+ const historical = readProjectFile('src', 'core', 'history', 'historicalComparisonService.ts');
+ const projectEvolution = readProjectFile('src', 'core', 'history', 'projectEvolutionService.ts');
// Constructors resolve the session eagerly (this is what aborted the launch).
assert.match(historical, /const session = this\.getSession\(\)[\s\S]*new GitRepositoryService\(session\.targetPath/);
@@ -144,7 +144,7 @@ test('The XR-only services still throw for non-XR sessions, so gating their cons
});
test('DependencyGraphService is safe to attach for LivePanel: it never throws in its constructor and reports availability instead', () => {
- const dependency = readProjectFile('src', 'code_analysis', 'dependencies', 'dependencyGraphService.ts');
+ const dependency = readProjectFile('src', 'core', 'dependencies', 'dependencyGraphService.ts');
// No eager getSession() in the constructor (contrast with the XR-only services).
const constructorBlock = dependency.slice(
diff --git a/apps/vscode-extension/test/analysis/analysisTreeBridge.test.cjs b/apps/vscode-extension/test/analysis/analysisTreeBridge.test.cjs
index 247f43b26..c87c84317 100644
--- a/apps/vscode-extension/test/analysis/analysisTreeBridge.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisTreeBridge.test.cjs
@@ -7,7 +7,7 @@ const { readConcatenated } = require('../helpers/sourceText.cjs');
const projectRoot = path.resolve(__dirname, '..', '..');
const baseInterfacesSource = fs.readFileSync(path.join(projectRoot, 'src', 'platform', 'tree', 'baseInterfaces.ts'), 'utf8');
// The provider and the section literals it registers (split out in W5-16).
-const modularTreeSource = readConcatenated(['src/views/ModularTreeDataProvider.ts', 'src/views/sectionDefinitions.ts']);
+const modularTreeSource = readConcatenated(['src/app/sidebar/ModularTreeDataProvider.ts', 'src/app/sidebar/sectionDefinitions.ts']);
test('modular tree base interfaces use the neutral analysis bridge properties', () => {
assert.match(baseInterfacesSource, /analysisItemType\?:/);
diff --git a/apps/vscode-extension/test/analysis/analysisViewModes.test.cjs b/apps/vscode-extension/test/analysis/analysisViewModes.test.cjs
index b66122663..7b1ce7661 100644
--- a/apps/vscode-extension/test/analysis/analysisViewModes.test.cjs
+++ b/apps/vscode-extension/test/analysis/analysisViewModes.test.cjs
@@ -1,6 +1,6 @@
/**
* The host's one table of default controller views per analysis mode
- * (src/code_analysis/refresh/analysisViewModes.ts). The refresh coordinator,
+ * (src/core/analysis/refresh/analysisViewModes.ts). The refresh coordinator,
* the export manifest and the collaboration router all read it; the browser
* copy is kept in step by controllerViewMapSync.test.cjs.
*/
@@ -13,7 +13,7 @@ const {
ANALYSIS_CONTROLLER_VIEW_BY_MODE,
FALLBACK_CONTROLLER_VIEW,
defaultControllerView,
-} = require(path.join(projectRoot, 'out', 'code_analysis', 'refresh', 'analysisViewModes.js'));
+} = require(path.join(projectRoot, 'out', 'core', 'analysis', 'refresh', 'analysisViewModes.js'));
test('every analysis mode has the default controller view 1.2.0 shipped', () => {
assert.deepEqual({ ...ANALYSIS_CONTROLLER_VIEW_BY_MODE }, {
diff --git a/apps/vscode-extension/test/analysis/babiaChartDimensionContract.test.cjs b/apps/vscode-extension/test/analysis/babiaChartDimensionContract.test.cjs
index 771f78c85..3cce15887 100644
--- a/apps/vscode-extension/test/analysis/babiaChartDimensionContract.test.cjs
+++ b/apps/vscode-extension/test/analysis/babiaChartDimensionContract.test.cjs
@@ -29,8 +29,8 @@ function assertChartContract(source, chartId, dimensions) {
}
test('BabiaXR chart templates keep the audited dimension type contract', () => {
- const templateCharts = readProjectFile('src', 'babia_templates', 'charts', 'templateCharts.ts');
- const createChart = readProjectFile('src', 'babia_templates', 'processing', 'placeholders', 'createChart.ts');
+ const templateCharts = readProjectFile('src', 'core', 'charts', 'templateCharts.ts');
+ const createChart = readProjectFile('src', 'core', 'charts', 'processing', 'placeholders', 'createChart.ts');
assertChartContract(templateCharts, 'bars', [
{ name: 'x_axis', type: 'any' },
diff --git a/apps/vscode-extension/test/analysis/backendScriptPath.test.cjs b/apps/vscode-extension/test/analysis/backendScriptPath.test.cjs
index 7cded5686..572d9c37d 100644
--- a/apps/vscode-extension/test/analysis/backendScriptPath.test.cjs
+++ b/apps/vscode-extension/test/analysis/backendScriptPath.test.cjs
@@ -34,7 +34,7 @@ function makeInstalledLayout() {
function withHelper(callback) {
return withFakeVscode(createFakeVscode(), ({ requireOut }) =>
- callback(requireOut('code_analysis/engine/utils/backendScriptPath.js')));
+ callback(requireOut('core/analysis/python/backendScriptPath.js')));
}
test('the shipped dist copy wins in every mode', () => {
diff --git a/apps/vscode-extension/test/analysis/chartTypeCommands.test.cjs b/apps/vscode-extension/test/analysis/chartTypeCommands.test.cjs
index 5a0f25255..89a7bf9e7 100644
--- a/apps/vscode-extension/test/analysis/chartTypeCommands.test.cjs
+++ b/apps/vscode-extension/test/analysis/chartTypeCommands.test.cjs
@@ -1,7 +1,7 @@
/**
* Behavioural characterization of the two chart-type commands
- * (code_analysis/commands/subsections/analysis_settings/chart_type_file|
- * chart_type_directory), written before ROADMAP T45 built both from one
+ * (features/analysis/sections/settings/chart-type-file|
+ * chart-type-directory), written before ROADMAP T45 built both from one
* factory. Their error toasts speak two dialects (the file one interpolates
* the error itself, the directory one its message) and both are kept
* verbatim, so they are pinned here side by side.
@@ -13,10 +13,10 @@ const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
-const BASE = 'code_analysis/commands/subsections/analysis_settings';
+const BASE = 'features/analysis/sections/settings';
const CASES = [
{
- module: `${BASE}/chart_type_file/chartTypeFileCommands.js`,
+ module: `${BASE}/chart-type-file/chartTypeFileCommands.js`,
className: 'ChartTypeFileCommands',
commandId: 'codeXR.analysis.selectChartTypeFile',
description: 'Select chart type for file analysis visualization',
@@ -24,7 +24,7 @@ const CASES = [
nonErrorToast: 'Failed to select chart type: plain failure',
},
{
- module: `${BASE}/chart_type_directory/chartTypeDirectoryCommands.js`,
+ module: `${BASE}/chart-type-directory/chartTypeDirectoryCommands.js`,
className: 'ChartTypeDirectoryCommands',
commandId: 'codeXR.analysis.selectChartTypeDirectory',
description: 'Select chart type for directory analysis visualization',
diff --git a/apps/vscode-extension/test/analysis/chartTypeSettings.test.cjs b/apps/vscode-extension/test/analysis/chartTypeSettings.test.cjs
index 6fd8491f9..d7eb95d57 100644
--- a/apps/vscode-extension/test/analysis/chartTypeSettings.test.cjs
+++ b/apps/vscode-extension/test/analysis/chartTypeSettings.test.cjs
@@ -13,8 +13,8 @@ const assert = require('node:assert/strict');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require('../helpers/fakeVscode.cjs');
-const FILE = { module: 'code_analysis/views/subsections/analysis_settings/chart_type_file/chartTypeFile.js', className: 'ChartTypeFileSetting' };
-const DIRECTORY = { module: 'code_analysis/views/subsections/analysis_settings/chart_type_directory/chartTypeDirectory.js', className: 'ChartTypeDirectorySetting' };
+const FILE = { module: 'features/analysis/sections/settings/chart-type-file/chartTypeFile.js', className: 'ChartTypeFileSetting' };
+const DIRECTORY = { module: 'features/analysis/sections/settings/chart-type-directory/chartTypeDirectory.js', className: 'ChartTypeDirectorySetting' };
function silenceConsole() {
const methods = ['log', 'info', 'warn', 'error', 'debug'];
@@ -48,7 +48,7 @@ async function withSetting(kind, values, body) {
try {
await withFakeVscode(fake, async ({ requireOut }) => {
const Setting = requireOut(kind.module)[kind.className];
- const { BabiaChartRegistry } = requireOut('babia_templates/registry/chartRegistry.js');
+ const { BabiaChartRegistry } = requireOut('core/charts/chartRegistry.js');
const setting = new Setting(context);
const { storage, calls } = recordingStorage(values);
setting.storage = storage;
diff --git a/apps/vscode-extension/test/analysis/collaborationRuntime.test.cjs b/apps/vscode-extension/test/analysis/collaborationRuntime.test.cjs
index f924f34f7..0442146e9 100644
--- a/apps/vscode-extension/test/analysis/collaborationRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/collaborationRuntime.test.cjs
@@ -188,7 +188,7 @@ test('automatic avatar colour survives profile normalization and validation', ()
ASSIGNABLE_AVATAR_IDS,
VALID_AVATAR_IDS,
normalizeCollaborationProfile,
- } = require(path.join(projectRoot, 'out', 'collaboration', 'model', 'collaborationProfile.js'));
+ } = require(path.join(projectRoot, 'out', 'core', 'collaboration', 'collaborationProfile.js'));
assert.equal(AUTO_AVATAR_ID, 'auto');
assert.equal(DEFAULT_COLLABORATION_PROFILE.avatarId, AUTO_AVATAR_ID);
diff --git a/apps/vscode-extension/test/analysis/controllerViewMapSync.test.cjs b/apps/vscode-extension/test/analysis/controllerViewMapSync.test.cjs
index 264738e0d..162909e3c 100644
--- a/apps/vscode-extension/test/analysis/controllerViewMapSync.test.cjs
+++ b/apps/vscode-extension/test/analysis/controllerViewMapSync.test.cjs
@@ -588,7 +588,7 @@ test('the extension host enters every analysis mode with the view the browser en
// than one place, and where it lives is about to change. What has to hold
// is what the refresh coordinator answers, since that answer is the
// controllerView of the snapshot the browser then routes.
- const { AnalysisRefreshCoordinator } = require(path.join(projectRoot, 'out', 'code_analysis', 'refresh', 'analysisRefreshCoordinator.js'));
+ const { AnalysisRefreshCoordinator } = require(path.join(projectRoot, 'out', 'core', 'analysis', 'refresh', 'analysisRefreshCoordinator.js'));
const hostDefaults = Object.fromEntries(ANALYSIS_MODES.map((mode) => {
// One coordinator per mode: it remembers the last view of every mode it has been in.
const coordinator = new AnalysisRefreshCoordinator();
diff --git a/apps/vscode-extension/test/analysis/dependencyFileScope.test.cjs b/apps/vscode-extension/test/analysis/dependencyFileScope.test.cjs
index 774c04a76..cb628dd83 100644
--- a/apps/vscode-extension/test/analysis/dependencyFileScope.test.cjs
+++ b/apps/vscode-extension/test/analysis/dependencyFileScope.test.cjs
@@ -27,9 +27,9 @@ async function withService(sessionOf, callback) {
const pythonCalls = [];
try {
return await withFakeVscode(fake, async ({ requireOut }) => {
- const { DependencyGraphService } = requireOut('code_analysis/dependencies/dependencyGraphService.js');
+ const { DependencyGraphService } = requireOut('core/dependencies/dependencyGraphService.js');
// The ExecutePython class the service already loaded.
- const { ExecutePython } = require(path.join(projectRoot, 'out', 'code_analysis', 'engine', 'utils', 'executePython.js'));
+ const { ExecutePython } = require(path.join(projectRoot, 'out', 'core', 'analysis', 'python', 'executePython.js'));
let respond = (target) => ({ nodes: [{ id: path.basename(target) }], edges: [], extra: 'kept' });
ExecutePython.prototype.executeDependencyAnalysis = async function (...args) {
pythonCalls.push(args.map((arg) => (typeof arg === 'string' ? arg.split(root).join('') : arg)));
diff --git a/apps/vscode-extension/test/analysis/dependencyGraph.test.cjs b/apps/vscode-extension/test/analysis/dependencyGraph.test.cjs
index 62b36ec23..07287eca1 100644
--- a/apps/vscode-extension/test/analysis/dependencyGraph.test.cjs
+++ b/apps/vscode-extension/test/analysis/dependencyGraph.test.cjs
@@ -10,7 +10,7 @@ const read = (relative) => fs.readFileSync(path.join(root, relative), 'utf8');
test('dependency graph is a first-class analysis table mode', () => {
const table = readAssembledRuntime('analysis-table', 'analysisTableRuntime.js');
- const models = read('src/code_analysis/historical/historicalComparisonModels.ts');
+ const models = read('src/core/history/historicalComparisonModels.ts');
assert.match(table, /dependency-graph/);
assert.match(models, /'dependency-graph'/);
assert.match(table, /#7c3aed/);
@@ -183,7 +183,7 @@ test('file scope projection keeps symbols and aggregates other project files', (
});
test('render budget runtime is packaged before dependency rendering', () => {
- const parser = read('src/code_analysis/engine/parsers/directoryXRParser.ts');
+ const parser = read('src/core/analysis/parsers/directoryXRParser.ts');
const template = read('templates/xr/file/xr-visualization.html');
const budget = readAssembledRuntime('render-budget', 'renderBudgetRuntime.js');
assert.match(parser, /RENDER_BUDGET_RUNTIME_OUTPUT_NAME/);
@@ -255,7 +255,7 @@ test('dependency detail override combines with performance conservatively', () =
test('dependency graph keeps density control local and packages diagnostics', () => {
const runtime = readAssembledRuntime('dependency-graph', 'dependencyGraphRuntime.js');
- const parser = read('src/code_analysis/engine/parsers/directoryXRParser.ts');
+ const parser = read('src/core/analysis/parsers/directoryXRParser.ts');
assert.match(runtime, /Detail: /);
assert.match(runtime, /setDetailOverride/);
assert.match(runtime, /CodeXRCommonRuntime\?\.createTooltip/);
@@ -365,7 +365,7 @@ test('dependency metric axes use readable shared scales', () => {
});
test('directory XR parser packages the dependency runtime', () => {
- const parser = read('src/code_analysis/engine/parsers/directoryXRParser.ts');
+ const parser = read('src/core/analysis/parsers/directoryXRParser.ts');
const template = read('templates/xr/file/xr-visualization.html');
assert.match(parser, /CODEXR_COMMON_RUNTIME_OUTPUT_NAME/);
assert.match(parser, /readCodeXrCommonRuntimeContent/);
@@ -375,7 +375,7 @@ test('directory XR parser packages the dependency runtime', () => {
});
test('file XR parser packages the dependency runtime', () => {
- const parser = read('src/code_analysis/engine/parsers/fileXRParser.ts');
+ const parser = read('src/core/analysis/parsers/fileXRParser.ts');
assert.match(parser, /copyCodeXrCommonRuntimeToOutput/);
assert.match(parser, /CODEXR_COMMON_RUNTIME_OUTPUT_NAME/);
assert.match(parser, /copyDependencyGraphRuntimeToOutput/);
@@ -564,12 +564,12 @@ test('XR SSE signals normal analysis readiness after Babia stabilization', () =>
});
test('dependency server preserves cached datasets and no longer accepts granularity', () => {
- const server = read('src/servers/runtime/analysis/analysisMessageRouter.ts')
- + read('src/servers/runtime/analysis/dependencyGraphBridge.ts')
- + read('src/servers/runtime/analysis/analysisFeatureHost.ts')
- + read('src/servers/runtime/httpServer.ts');
- const service = read('src/code_analysis/dependencies/dependencyGraphService.ts');
- const models = read('src/code_analysis/dependencies/dependencyGraphModels.ts');
+ const server = read('src/core/server/analysis/analysisMessageRouter.ts')
+ + read('src/core/server/analysis/dependencyGraphBridge.ts')
+ + read('src/core/server/analysis/analysisFeatureHost.ts')
+ + read('src/core/server/httpServer.ts');
+ const service = read('src/core/dependencies/dependencyGraphService.ts');
+ const models = read('src/core/dependencies/dependencyGraphModels.ts');
assert.match(server, /hasCachedDataset/);
assert.match(server, /Restoring dependency graph/);
assert.match(server, /existingDependencyState\?\.layout/);
@@ -586,22 +586,22 @@ test('dependency server preserves cached datasets and no longer accepts granular
});
test('python dependency packages are pinned centrally', () => {
- const manifest = read('src/python_env/runtime/pythonPackageManifest.ts');
+ const manifest = read('src/core/python-env/pythonPackageManifest.ts');
assert.match(manifest, /lizard/);
assert.match(manifest, /tree-sitter-language-pack/);
assert.match(manifest, /version: '1\.8\.1'/);
});
test('dependency graph availability gate allows LivePanel directory/project analyses', () => {
- const service = read('src/code_analysis/dependencies/dependencyGraphService.ts');
+ const service = read('src/core/dependencies/dependencyGraphService.ts');
assert.match(service, /session\.analysisMode !== 'XR' && session\.analysisMode !== 'LivePanel'/);
});
test('LivePanel dependency graph summary REST endpoint is thin and reuses the existing service', () => {
- const server = read('src/servers/runtime/analysis/analysisMessageRouter.ts')
- + read('src/servers/runtime/analysis/dependencyGraphBridge.ts')
- + read('src/servers/runtime/analysis/analysisFeatureHost.ts')
- + read('src/servers/runtime/httpServer.ts');
+ const server = read('src/core/server/analysis/analysisMessageRouter.ts')
+ + read('src/core/server/analysis/dependencyGraphBridge.ts')
+ + read('src/core/server/analysis/analysisFeatureHost.ts')
+ + read('src/core/server/httpServer.ts');
assert.match(server, /case '\/dependency-graph\/summary':/);
assert.match(server, /public async handleDependencyGraphSummary\(/);
assert.match(server, /this\.dependencyGraphService\.getAvailability\(\)/);
@@ -611,10 +611,10 @@ test('LivePanel dependency graph summary REST endpoint is thin and reuses the ex
});
test('LivePanel ties the dependency graph into the re-analysis chain as a background mode and pushes updates over SSE', () => {
- const server = read('src/servers/runtime/analysis/analysisMessageRouter.ts')
- + read('src/servers/runtime/analysis/dependencyGraphBridge.ts')
- + read('src/servers/runtime/analysis/analysisFeatureHost.ts')
- + read('src/servers/runtime/httpServer.ts');
+ const server = read('src/core/server/analysis/analysisMessageRouter.ts')
+ + read('src/core/server/analysis/dependencyGraphBridge.ts')
+ + read('src/core/server/analysis/analysisFeatureHost.ts')
+ + read('src/core/server/httpServer.ts');
// Background refresh: recompute the dependency graph on every source change,
// seed the initial dataset, and clean up on dispose.
assert.match(server, /setBackgroundRefresh\(livePanelSessionId, 'dependency-graph', true\)/);
@@ -626,7 +626,7 @@ test('LivePanel ties the dependency graph into the re-analysis chain as a backgr
});
test('the refresh coordinator exposes background modes that publishChanges runs while inactive', () => {
- const coordinator = read('src/code_analysis/refresh/analysisRefreshCoordinator.ts');
+ const coordinator = read('src/core/analysis/refresh/analysisRefreshCoordinator.ts');
assert.match(coordinator, /backgroundModes: Set/);
assert.match(coordinator, /public setBackgroundRefresh\(/);
assert.match(coordinator, /for \(const backgroundMode of state\.backgroundModes\)/);
@@ -634,14 +634,14 @@ test('the refresh coordinator exposes background modes that publishChanges runs
});
test('the dependency service consumes an incremental change batch (changed files only, extraction cache)', () => {
- const service = read('src/code_analysis/dependencies/dependencyGraphService.ts');
+ const service = read('src/core/dependencies/dependencyGraphService.ts');
// The incremental request feeds the Python analyzer the change batch + a cache.
assert.match(service, /const requestPath = path\.join\(requestDirectory, 'refresh-request\.json'\)/);
assert.match(service, /this\.extractionCachePath/);
- const server = read('src/servers/runtime/analysis/analysisMessageRouter.ts')
- + read('src/servers/runtime/analysis/dependencyGraphBridge.ts')
- + read('src/servers/runtime/analysis/analysisFeatureHost.ts')
- + read('src/servers/runtime/httpServer.ts');
+ const server = read('src/core/server/analysis/analysisMessageRouter.ts')
+ + read('src/core/server/analysis/dependencyGraphBridge.ts')
+ + read('src/core/server/analysis/analysisFeatureHost.ts')
+ + read('src/core/server/httpServer.ts');
// The handler builds the request from the coordinator batch (first run full, then incremental).
assert.match(server, /changedFiles: batch\.changedFiles/);
assert.match(server, /forceFullScan: batch\.forceRefresh \|\| !this\.dependencyGraphService\.hasGeneratedDataset\(\)/);
@@ -902,10 +902,10 @@ test('flow size and speed are a room-shared catalogue rendered in the panel', ()
assert.match(source, /publishState\(\{ flowSpeed: cycleValue\(currentFlowSpeed, flowSpeedIds, 1\) \}\)/);
// The analysis server validates and persists the same contract.
- const server = read('src/servers/runtime/analysis/analysisMessageRouter.ts')
- + read('src/servers/runtime/analysis/dependencyGraphBridge.ts')
- + read('src/servers/runtime/analysis/analysisFeatureHost.ts')
- + read('src/servers/runtime/httpServer.ts');
+ const server = read('src/core/server/analysis/analysisMessageRouter.ts')
+ + read('src/core/server/analysis/dependencyGraphBridge.ts')
+ + read('src/core/server/analysis/analysisFeatureHost.ts')
+ + read('src/core/server/httpServer.ts');
assert.match(server, /allowedFlowSizes = new Set\(\['s', 'm', 'l', 'xl'\]\)/);
assert.match(server, /allowedFlowSpeeds = new Set\(\['x05', 'x1', 'x2', 'x3'\]\)/);
assert.match(server, /flowSize: existingDependencyState\?\.flowSize \|\| 'm'/);
diff --git a/apps/vscode-extension/test/analysis/dependencyGraphBridge.test.cjs b/apps/vscode-extension/test/analysis/dependencyGraphBridge.test.cjs
index 57276a42b..9e929c4f8 100644
--- a/apps/vscode-extension/test/analysis/dependencyGraphBridge.test.cjs
+++ b/apps/vscode-extension/test/analysis/dependencyGraphBridge.test.cjs
@@ -1,6 +1,6 @@
/**
* Behavioural characterization of the dependency-graph room bridge
- * (src/servers/runtime/analysis/dependencyGraphBridge.ts), written before
+ * (src/core/server/analysis/dependencyGraphBridge.ts), written before
* ROADMAP T29 (hoisted vocabularies and sanitizeDependencyScope) and T30 (the
* start-message defaults table) reshaped it. Until this suite the two
* handlers were pinned only by regexes over their own text.
@@ -25,7 +25,7 @@ const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
-const BRIDGE_MODULE = 'servers/runtime/analysis/dependencyGraphBridge.js';
+const BRIDGE_MODULE = 'core/server/analysis/dependencyGraphBridge.js';
function createMessageContext() {
const context = {
@@ -99,7 +99,7 @@ function createRoomHooks(existingEntity) {
async function withBridge(body) {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const coordinatorModule = requireOut('code_analysis/refresh/analysisRefreshCoordinator.js');
+ const coordinatorModule = requireOut('core/analysis/refresh/analysisRefreshCoordinator.js');
const coordinatorCalls = [];
const coordinator = coordinatorModule.analysisRefreshCoordinator;
coordinator.setSnapshotAvailable = (...args) => coordinatorCalls.push(['setSnapshotAvailable', ...args]);
diff --git a/apps/vscode-extension/test/analysis/dimensionMappingShared.test.cjs b/apps/vscode-extension/test/analysis/dimensionMappingShared.test.cjs
index b606893a1..4c8089184 100644
--- a/apps/vscode-extension/test/analysis/dimensionMappingShared.test.cjs
+++ b/apps/vscode-extension/test/analysis/dimensionMappingShared.test.cjs
@@ -12,29 +12,28 @@ function readProjectFile(...segments) {
test('file and directory dimension mapping settings delegate to the shared core', () => {
const sharedCore = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_shared',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
'sharedDimensionMappingSettingCore.ts',
);
const fileSetting = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_file',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-file',
'dimensionMappingFile.ts',
);
const directorySetting = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_directory',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-directory',
'dimensionMappingDirectory.ts',
);
@@ -61,20 +60,20 @@ test('file and directory dimension mapping settings delegate to the shared core'
test('file and directory dimension mapping commands use the same dimension-name flow', () => {
const fileCommands = readProjectFile(
'src',
- 'code_analysis',
- 'commands',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_file',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-file',
'dimensionMappingFileCommands.ts',
);
const directoryCommands = readProjectFile(
'src',
- 'code_analysis',
- 'commands',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_directory',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-directory',
'dimensionMappingDirectoryCommands.ts',
);
diff --git a/apps/vscode-extension/test/analysis/dimensionValidator.test.cjs b/apps/vscode-extension/test/analysis/dimensionValidator.test.cjs
index 2081967b8..b0dba260c 100644
--- a/apps/vscode-extension/test/analysis/dimensionValidator.test.cjs
+++ b/apps/vscode-extension/test/analysis/dimensionValidator.test.cjs
@@ -6,7 +6,7 @@ const assert = require('node:assert/strict');
// rule passes run one after another and each appends), the early `continue`
// of the per-mapping pass, and isValid. The module is pure (type-only
// imports), so it loads from out/ directly.
-const { DimensionValidator } = require('../../out/babia_templates/processing/dimensionValidator.js');
+const { DimensionValidator } = require('../../out/core/charts/processing/dimensionValidator.js');
const CHART = {
name: 'Bars',
diff --git a/apps/vscode-extension/test/analysis/directoryAnalysisStartup.test.cjs b/apps/vscode-extension/test/analysis/directoryAnalysisStartup.test.cjs
index 4724fd465..72085a140 100644
--- a/apps/vscode-extension/test/analysis/directoryAnalysisStartup.test.cjs
+++ b/apps/vscode-extension/test/analysis/directoryAnalysisStartup.test.cjs
@@ -10,7 +10,7 @@ function readProjectFile(...segments) {
}
test('directory sessions defer recursive discovery and initial hashing until after the first analysis', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'core', 'sessionRegistry.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'session', 'sessionRegistry.ts');
assert.equal(source.includes('filterDirectoriesForAnalysis'), false);
assert.equal(source.includes('discoverDirectoriesToAnalyze'), false);
@@ -19,15 +19,15 @@ test('directory sessions defer recursive discovery and initial hashing until aft
});
test('directory python execution avoids passing large --files argument lists', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'utils', 'executePython.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'python', 'executePython.ts');
assert.equal(source.includes("'--files'"), false);
assert.match(source, /Python coordinator will scan and filter directory contents internally/);
});
test('directory analysis bootstrap hydrates filesToHash after the initial analysis for XR and LivePanel', () => {
- const bootstrapSource = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
- const xrSource = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
+ const bootstrapSource = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
+ const xrSource = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
assert.match(bootstrapSource, /const trackedFiles = await this\.buildTrackedFiles\(session, payload\);/);
assert.match(bootstrapSource, /session\.filesToHash = trackedFiles/);
diff --git a/apps/vscode-extension/test/analysis/directorySnapshotRuntime.test.cjs b/apps/vscode-extension/test/analysis/directorySnapshotRuntime.test.cjs
index 6b7d42dfc..cd77fee27 100644
--- a/apps/vscode-extension/test/analysis/directorySnapshotRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/directorySnapshotRuntime.test.cjs
@@ -4,7 +4,7 @@ const fs = require('node:fs');
const path = require('node:path');
const os = require('node:os');
-const { scanDirectoryScope } = require('../../out/code_analysis/engine/watchers/directorySnapshot.js');
+const { scanDirectoryScope } = require('../../out/core/analysis/watchers/directorySnapshot.js');
function createTempDir(prefix) {
return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
diff --git a/apps/vscode-extension/test/analysis/domSceneTemplateContract.test.cjs b/apps/vscode-extension/test/analysis/domSceneTemplateContract.test.cjs
index 404a02db3..683e09396 100644
--- a/apps/vscode-extension/test/analysis/domSceneTemplateContract.test.cjs
+++ b/apps/vscode-extension/test/analysis/domSceneTemplateContract.test.cjs
@@ -150,7 +150,7 @@ async function runDomPipeline() {
try {
const files = await withFakeVscode(fake, async ({ requireOut }) => {
- const { VisualizeDOMParser } = requireOut('code_analysis/engine/parsers/visualizeDOMParser.js');
+ const { VisualizeDOMParser } = requireOut('core/analysis/parsers/visualizeDOMParser.js');
return new VisualizeDOMParser(context).processHTMLTemplates({
htmlContent: '
contract probe
',
fileName: 'probe.html',
diff --git a/apps/vscode-extension/test/analysis/embeddedRuntimeAssets.test.cjs b/apps/vscode-extension/test/analysis/embeddedRuntimeAssets.test.cjs
index 720324d9a..42000ddb6 100644
--- a/apps/vscode-extension/test/analysis/embeddedRuntimeAssets.test.cjs
+++ b/apps/vscode-extension/test/analysis/embeddedRuntimeAssets.test.cjs
@@ -16,7 +16,7 @@ const os = require('node:os');
const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
-const components = require(path.join(projectRoot, 'out', 'code_analysis', 'engine', 'components', 'customComponents', 'index.js'));
+const components = require('../helpers/sceneAssetModules.cjs').loadSceneAssetModules();
const RUNTIMES = [
{
diff --git a/apps/vscode-extension/test/analysis/executePythonResults.test.cjs b/apps/vscode-extension/test/analysis/executePythonResults.test.cjs
index 1126d4dfe..7667c647e 100644
--- a/apps/vscode-extension/test/analysis/executePythonResults.test.cjs
+++ b/apps/vscode-extension/test/analysis/executePythonResults.test.cjs
@@ -48,7 +48,7 @@ async function run(call, backend = {}, { python, silentConsole = true } = {}) {
const silence = silentConsole ? muteConsole() : { restore() {} };
try {
return await withFakeVscode(fake, async ({ requireOut }) => {
- const { ExecutePython } = requireOut('code_analysis/engine/utils/executePython.js');
+ const { ExecutePython } = requireOut('core/analysis/python/executePython.js');
const executor = new ExecutePython(context);
const interpreter = typeof python === 'function' ? python(extensionPath) : process.execPath;
executor.venvManager = { getPythonExecutablePath: () => interpreter };
diff --git a/apps/vscode-extension/test/analysis/exportManifest.test.cjs b/apps/vscode-extension/test/analysis/exportManifest.test.cjs
index 3d4fc73a2..7464d52c8 100644
--- a/apps/vscode-extension/test/analysis/exportManifest.test.cjs
+++ b/apps/vscode-extension/test/analysis/exportManifest.test.cjs
@@ -14,7 +14,7 @@ const {
refreshRuntimeCopies,
relativizeExportArtifacts,
writeExportReadme,
-} = require('../../out/code_analysis/export/exportManifest.js');
+} = require('../../out/core/export/exportManifest.js');
const XR_CAPABILITIES = {
dependencyGraph: true,
diff --git a/apps/vscode-extension/test/analysis/exportManifestSnapshot.test.cjs b/apps/vscode-extension/test/analysis/exportManifestSnapshot.test.cjs
index d65272a18..2f4d35c93 100644
--- a/apps/vscode-extension/test/analysis/exportManifestSnapshot.test.cjs
+++ b/apps/vscode-extension/test/analysis/exportManifestSnapshot.test.cjs
@@ -8,7 +8,7 @@ const {
EXPORT_MANIFEST_FILE_NAME,
buildExportManifest,
relativizeExportArtifacts,
-} = require('../../out/code_analysis/export/exportManifest.js');
+} = require('../../out/core/export/exportManifest.js');
// Characterization of buildExportManifest (ROADMAP W4-T19, CX-01): one
// whole-manifest snapshot per scenario, compared as serialized JSON so the
diff --git a/apps/vscode-extension/test/analysis/exportPackageTransaction.test.cjs b/apps/vscode-extension/test/analysis/exportPackageTransaction.test.cjs
index 05390c7bf..8eb6b1c2b 100644
--- a/apps/vscode-extension/test/analysis/exportPackageTransaction.test.cjs
+++ b/apps/vscode-extension/test/analysis/exportPackageTransaction.test.cjs
@@ -10,7 +10,7 @@ const {
pruneExportPackage,
publishExportPackage,
validateExportPackage,
-} = require('../../out/code_analysis/export/exportPackageTransaction.js');
+} = require('../../out/core/export/exportPackageTransaction.js');
function makeRoot() {
return fs.mkdtempSync(path.join(os.tmpdir(), 'codexr-export-transaction-'));
diff --git a/apps/vscode-extension/test/analysis/exportPackageValidation.test.cjs b/apps/vscode-extension/test/analysis/exportPackageValidation.test.cjs
index 6c8777200..a927cfe46 100644
--- a/apps/vscode-extension/test/analysis/exportPackageValidation.test.cjs
+++ b/apps/vscode-extension/test/analysis/exportPackageValidation.test.cjs
@@ -4,7 +4,7 @@ const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
-const { validateExportPackage } = require('../../out/code_analysis/export/exportPackageTransaction.js');
+const { validateExportPackage } = require('../../out/core/export/exportPackageTransaction.js');
// Characterization of validateExportPackage (ROADMAP W4-T28, CX-07) beside
// the happy path in exportPackageTransaction.test.cjs: every required root
diff --git a/apps/vscode-extension/test/analysis/fileHashTrackerRuntime.test.cjs b/apps/vscode-extension/test/analysis/fileHashTrackerRuntime.test.cjs
index f291344b6..65ff0f65a 100644
--- a/apps/vscode-extension/test/analysis/fileHashTrackerRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/fileHashTrackerRuntime.test.cjs
@@ -4,8 +4,8 @@ const fs = require('node:fs');
const path = require('node:path');
const os = require('node:os');
-const { FileHashTracker } = require('../../out/code_analysis/engine/watchers/fileHashTracker.js');
-const { SHA256Generator } = require('../../out/utils/sha256Generator.js');
+const { FileHashTracker } = require('../../out/core/analysis/watchers/fileHashTracker.js');
+const { SHA256Generator } = require('../../out/core/analysis/utils/sha256Generator.js');
function createTempDir(prefix) {
return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
diff --git a/apps/vscode-extension/test/analysis/gitAnalysisShared.test.cjs b/apps/vscode-extension/test/analysis/gitAnalysisShared.test.cjs
index c76140c84..2f69bea54 100644
--- a/apps/vscode-extension/test/analysis/gitAnalysisShared.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitAnalysisShared.test.cjs
@@ -1,6 +1,6 @@
/**
* The pure helpers shared by historical comparison, project evolution and
- * the export-time Git pre-analysis (src/code_analysis/historical/gitAnalysisShared.ts).
+ * the export-time Git pre-analysis (src/core/history/gitAnalysisShared.ts).
* Loaded from out/ with no vscode stub: the module must stay vscode-free.
*/
const test = require('node:test');
@@ -10,7 +10,7 @@ const os = require('node:os');
const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
-const { toPortableRelativePath, buildAnalyzerCacheKey, decorateDirectoryEntries } = require(path.join(projectRoot, 'out', 'code_analysis', 'historical', 'gitAnalysisShared.js'));
+const { toPortableRelativePath, buildAnalyzerCacheKey, decorateDirectoryEntries } = require(path.join(projectRoot, 'out', 'core', 'history', 'gitAnalysisShared.js'));
test('toPortableRelativePath: relative candidates are cleaned to POSIX, with an unknown fallback', () => {
const root = path.join(os.tmpdir(), 'codexr-root');
diff --git a/apps/vscode-extension/test/analysis/gitExportPreflight.test.cjs b/apps/vscode-extension/test/analysis/gitExportPreflight.test.cjs
index c1fe33745..abf65b6a0 100644
--- a/apps/vscode-extension/test/analysis/gitExportPreflight.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitExportPreflight.test.cjs
@@ -47,7 +47,7 @@ async function inspect(targetPath) {
const context = fakeExtensionContext();
try {
return await withFakeVscode(createFakeVscode(), async ({ requireOut }) => {
- const { inspectGitRevisionExport } = requireOut('code_analysis/export/gitRevisionExporter.js');
+ const { inspectGitRevisionExport } = requireOut('core/export/gitRevisionExporter.js');
try {
return await inspectGitRevisionExport(context, { id: 'sess', targetPath });
} catch (error) {
diff --git a/apps/vscode-extension/test/analysis/gitHistoryServices.test.cjs b/apps/vscode-extension/test/analysis/gitHistoryServices.test.cjs
index 5f52b99d7..44605bd8e 100644
--- a/apps/vscode-extension/test/analysis/gitHistoryServices.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitHistoryServices.test.cjs
@@ -2,10 +2,10 @@
* Behavioural characterization of the two Git-history services and their
* collaboration bridges (W5-01, hist TEST-01').
*
- * src/code_analysis/historical/historicalComparisonService.ts
- * src/code_analysis/historical/projectEvolutionService.ts
- * src/servers/runtime/analysis/historicalComparisonBridge.ts
- * src/servers/runtime/analysis/projectEvolutionBridge.ts
+ * src/core/history/historicalComparisonService.ts
+ * src/core/history/projectEvolutionService.ts
+ * src/core/server/analysis/historicalComparisonBridge.ts
+ * src/core/server/analysis/projectEvolutionBridge.ts
*
* Until this suite the four files were pinned only by regexes over their own
* text, which blocks every behaviour-neutral reshaping. Everything here runs
@@ -33,10 +33,10 @@ const childProcess = require('node:child_process');
const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
-const HISTORICAL_MODULE = 'code_analysis/historical/historicalComparisonService.js';
-const EVOLUTION_MODULE = 'code_analysis/historical/projectEvolutionService.js';
-const HISTORICAL_BRIDGE_MODULE = 'servers/runtime/analysis/historicalComparisonBridge.js';
-const EVOLUTION_BRIDGE_MODULE = 'servers/runtime/analysis/projectEvolutionBridge.js';
+const HISTORICAL_MODULE = 'core/history/historicalComparisonService.js';
+const EVOLUTION_MODULE = 'core/history/projectEvolutionService.js';
+const HISTORICAL_BRIDGE_MODULE = 'core/server/analysis/historicalComparisonBridge.js';
+const EVOLUTION_BRIDGE_MODULE = 'core/server/analysis/projectEvolutionBridge.js';
// ------------------------------------------------------------------ fixture repo
@@ -196,25 +196,25 @@ async function withServices(options, body) {
const sessions = new Map((options.sessions || []).map((session) => [session.id, session]));
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- const { UnifiedSessionRegistry } = requireOut('code_analysis/engine/core/sessionRegistry.js');
+ const { UnifiedSessionRegistry } = requireOut('core/analysis/session/sessionRegistry.js');
UnifiedSessionRegistry.getInstance = () => ({ getSession: (id) => sessions.get(id) });
- const { ExecutePython } = requireOut('code_analysis/engine/utils/executePython.js');
+ const { ExecutePython } = requireOut('core/analysis/python/executePython.js');
ExecutePython.prototype.executeAnalysis = function stubbedAnalysis(session) {
return analyzer.run(session);
};
- const { AnalysisConfigurationStorage } = requireOut('code_analysis/configuration/analysisConfigurationStorage.js');
+ const { AnalysisConfigurationStorage } = requireOut('core/analysis/configuration/analysisConfigurationStorage.js');
AnalysisConfigurationStorage.getInstance = () => ({
getDimensionMappingFile: async () => ({ height: 'ccn', area: '', color: 7 }),
getDimensionMappingDirectory: async () => ({ height: 'totalLines', width: 'totalLines', color: '' }),
});
- const { GitRepositoryService } = requireOut('code_analysis/historical/gitRepositoryService.js');
+ const { GitRepositoryService } = requireOut('core/history/gitRepositoryService.js');
const materialized = [];
const originalMaterialize = GitRepositoryService.prototype.materialize;
GitRepositoryService.prototype.materialize = function countedMaterialize(source) {
materialized.push(source.kind === 'gitRef' ? source.commitSha : source.id);
return originalMaterialize.call(this, source);
};
- const eligibility = requireOut('code_analysis/historical/gitAnalysisEligibility.js');
+ const eligibility = requireOut('core/history/gitAnalysisEligibility.js');
const { HistoricalComparisonService } = requireOut(HISTORICAL_MODULE);
const { ProjectEvolutionService } = requireOut(EVOLUTION_MODULE);
await body({
@@ -913,7 +913,7 @@ async function settle() {
async function withBridges(body) {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const coordinatorModule = requireOut('code_analysis/refresh/analysisRefreshCoordinator.js');
+ const coordinatorModule = requireOut('core/analysis/refresh/analysisRefreshCoordinator.js');
const coordinatorCalls = [];
const coordinator = coordinatorModule.analysisRefreshCoordinator;
coordinator.setRefreshEnabled = (...args) => coordinatorCalls.push(['setRefreshEnabled', ...args]);
@@ -921,7 +921,7 @@ async function withBridges(body) {
coordinator.refreshMode = async (...args) => {
coordinatorCalls.push(['refreshMode', ...args]);
};
- const { GitAnalysisSourceError } = requireOut('code_analysis/historical/gitAnalysisEligibility.js');
+ const { GitAnalysisSourceError } = requireOut('core/history/gitAnalysisEligibility.js');
const { HistoricalComparisonBridge } = requireOut(HISTORICAL_BRIDGE_MODULE);
const { ProjectEvolutionBridge } = requireOut(EVOLUTION_BRIDGE_MODULE);
await body({ HistoricalComparisonBridge, ProjectEvolutionBridge, GitAnalysisSourceError, coordinatorCalls });
diff --git a/apps/vscode-extension/test/analysis/gitListReferences.test.cjs b/apps/vscode-extension/test/analysis/gitListReferences.test.cjs
index 08d031914..b013c5481 100644
--- a/apps/vscode-extension/test/analysis/gitListReferences.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitListReferences.test.cjs
@@ -2,7 +2,7 @@ const test = require('node:test');
const assert = require('node:assert/strict');
const crypto = require('node:crypto');
-const { GitRepositoryService } = require('../../out/code_analysis/historical/gitRepositoryService.js');
+const { GitRepositoryService } = require('../../out/core/history/gitRepositoryService.js');
// Characterization of GitRepositoryService.listReferences (ROADMAP W4-T25,
// CX-04) per output format. historicalComparison.test.cjs drives it against
diff --git a/apps/vscode-extension/test/analysis/gitMaterializeDirectory.test.cjs b/apps/vscode-extension/test/analysis/gitMaterializeDirectory.test.cjs
index 4c5129b9d..578710698 100644
--- a/apps/vscode-extension/test/analysis/gitMaterializeDirectory.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitMaterializeDirectory.test.cjs
@@ -4,7 +4,7 @@ const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
-const { GitRepositoryService } = require('../../out/code_analysis/historical/gitRepositoryService.js');
+const { GitRepositoryService } = require('../../out/core/history/gitRepositoryService.js');
// Characterization of GitRepositoryService.materializeDirectory (ROADMAP
// W4-T26, CX-11) with `git ls-tree` and `git show` stubbed: which tree it
diff --git a/apps/vscode-extension/test/analysis/gitRefPickerRuntime.test.cjs b/apps/vscode-extension/test/analysis/gitRefPickerRuntime.test.cjs
index c943ed663..28cb1ac09 100644
--- a/apps/vscode-extension/test/analysis/gitRefPickerRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitRefPickerRuntime.test.cjs
@@ -277,9 +277,9 @@ test('registerGitGatedMode enables or disables the mode option with a shared rea
test('both Git services delegate availability to GitRepositoryService', () => {
const read = (relative) => fs.readFileSync(path.join(projectRoot, relative), 'utf8');
- const gitService = read('src/code_analysis/historical/gitRepositoryService.ts');
- const historical = read('src/code_analysis/historical/historicalComparisonService.ts');
- const evolution = read('src/code_analysis/historical/projectEvolutionService.ts');
+ const gitService = read('src/core/history/gitRepositoryService.ts');
+ const historical = read('src/core/history/historicalComparisonService.ts');
+ const evolution = read('src/core/history/projectEvolutionService.ts');
assert.match(gitService, /public async getAvailability\(/);
assert.match(historical, /return this\.gitService\.getAvailability\(/);
@@ -294,7 +294,7 @@ test('the browser sampler is a faithful port of the extension sampler', () => {
projectRoot, 'templates', 'components', 'common', 'codexrGitRefPickerRuntime.js',
)).sampleTimeline;
const extensionSampler = require(path.join(
- projectRoot, 'out', 'code_analysis', 'historical', 'gitTimelineSampler.js',
+ projectRoot, 'out', 'core', 'history', 'gitTimelineSampler.js',
)).sampleTimeline;
const day = 24 * 60 * 60;
diff --git a/apps/vscode-extension/test/analysis/gitRevisionExportPhases.test.cjs b/apps/vscode-extension/test/analysis/gitRevisionExportPhases.test.cjs
index cd7713584..247510141 100644
--- a/apps/vscode-extension/test/analysis/gitRevisionExportPhases.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitRevisionExportPhases.test.cjs
@@ -4,7 +4,7 @@ const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
-const { runGitRevisionExport } = require('../../out/code_analysis/export/gitRevisionExportCore.js');
+const { runGitRevisionExport } = require('../../out/core/export/gitRevisionExportCore.js');
// Characterization of runGitRevisionExport (ROADMAP W4-T22/T23, CX-02) with a
// fake Git service instead of a fixture repository, so each scenario chooses
diff --git a/apps/vscode-extension/test/analysis/gitRevisionExporter.test.cjs b/apps/vscode-extension/test/analysis/gitRevisionExporter.test.cjs
index 4723c7e0b..e102bfd80 100644
--- a/apps/vscode-extension/test/analysis/gitRevisionExporter.test.cjs
+++ b/apps/vscode-extension/test/analysis/gitRevisionExporter.test.cjs
@@ -8,25 +8,25 @@ const path = require('node:path');
const {
decorateRevisionPayload,
runGitRevisionExport,
-} = require('../../out/code_analysis/export/gitRevisionExportCore.js');
+} = require('../../out/core/export/gitRevisionExportCore.js');
const {
calculateGitExportWorkerPlan,
validateGitRevisionScope,
-} = require('../../out/code_analysis/export/gitExportOptions.js');
+} = require('../../out/core/export/gitExportOptions.js');
const {
GitTimelineBlobAnalyzer,
-} = require('../../out/code_analysis/export/gitTimelineBlobAnalyzer.js');
+} = require('../../out/core/export/gitTimelineBlobAnalyzer.js');
const {
GitExportPythonWorkerPool,
-} = require('../../out/code_analysis/export/gitExportPythonWorkerPool.js');
+} = require('../../out/core/export/gitExportPythonWorkerPool.js');
const {
GitAnalysisSourceCatalog,
validateGitAnalysisPayload,
-} = require('../../out/code_analysis/historical/gitAnalysisEligibility.js');
-const { sampleTimeline } = require('../../out/code_analysis/historical/gitTimelineSampler.js');
+} = require('../../out/core/history/gitAnalysisEligibility.js');
+const { sampleTimeline } = require('../../out/core/history/gitTimelineSampler.js');
function loadGitRepositoryService() {
- return require('../../out/code_analysis/historical/gitRepositoryService.js').GitRepositoryService;
+ return require('../../out/core/history/gitRepositoryService.js').GitRepositoryService;
}
function runGit(repositoryPath, args) {
diff --git a/apps/vscode-extension/test/analysis/guideScreenRuntime.test.cjs b/apps/vscode-extension/test/analysis/guideScreenRuntime.test.cjs
index 8b6b079de..5f914ef23 100644
--- a/apps/vscode-extension/test/analysis/guideScreenRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/guideScreenRuntime.test.cjs
@@ -74,8 +74,8 @@ test('the XR guide screen is interactive, configurable, and safe without A-Frame
});
test('both XR parsers ship the guide runtime and the served guide.html page', () => {
- const fileParser = read('src/code_analysis/engine/parsers/fileXRParser.ts');
- const directoryParser = read('src/code_analysis/engine/parsers/directoryXRParser.ts');
+ const fileParser = read('src/core/analysis/parsers/fileXRParser.ts');
+ const directoryParser = read('src/core/analysis/parsers/directoryXRParser.ts');
const sceneTemplate = read('templates/xr/file/xr-visualization.html');
const guidePage = read('templates/guide/guide.html');
diff --git a/apps/vscode-extension/test/analysis/historicalComparison.test.cjs b/apps/vscode-extension/test/analysis/historicalComparison.test.cjs
index d7cada5c9..b18708063 100644
--- a/apps/vscode-extension/test/analysis/historicalComparison.test.cjs
+++ b/apps/vscode-extension/test/analysis/historicalComparison.test.cjs
@@ -18,8 +18,8 @@ function loadGitRepositoryService() {
const sourcePath = path.join(
projectRoot,
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'gitRepositoryService.ts',
);
const previousLoader = require.extensions['.ts'];
@@ -48,7 +48,7 @@ function loadGitRepositoryService() {
}
function loadTimelineSampler() {
- const sourcePath = path.join(projectRoot, 'src', 'code_analysis', 'historical', 'gitTimelineSampler.ts');
+ const sourcePath = path.join(projectRoot, 'src', 'core', 'history', 'gitTimelineSampler.ts');
const previousLoader = require.extensions['.ts'];
require.extensions['.ts'] = function compileTypeScript(module, filename) {
const source = fs.readFileSync(filename, 'utf8');
@@ -182,8 +182,8 @@ function runGit(repositoryPath, args) {
test('historical Git service resolves server-owned refs without checkout, fetch, shell, or .git writes', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'gitRepositoryService.ts',
);
@@ -326,8 +326,8 @@ test('historical Git service materializes repository roots, branches, tags, comm
test('historical snapshots use private extension storage and publish only immutable result artifacts', () => {
const source = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'historicalComparisonService.ts',
);
@@ -345,7 +345,7 @@ test('historical snapshots use private extension storage and publish only immuta
// its key name. Exact output: gitHistoryServices.test.cjs.
assert.match(source, /decorateDirectoryEntries\(payload, session\.targetPath, analyzedTargetPath, \['comparisonKey'\]\)/);
assert.match(
- readConcatenated(['src/code_analysis/historical/gitAnalysisShared.ts']),
+ readConcatenated(['src/core/history/gitAnalysisShared.ts']),
/filePath: buildBabiaStyleFilePath\(originalTargetPath, relativePath\),[\s\S]{0,500}relativePath,[\s\S]{0,500}decorated\[field\] = key/,
);
assert.match(source, /let added = 0/);
@@ -355,20 +355,20 @@ test('historical snapshots use private extension storage and publish only immuta
});
test('historical comparison is authoritative, shared per room, and rejects concurrent work', () => {
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisMessageRouter.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'historicalComparisonBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'projectEvolutionBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'analysisMessageRouter.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'historicalComparisonBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'projectEvolutionBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
const service = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'historicalComparisonService.ts',
);
const room = readProjectFile(
'src',
- 'servers',
- 'runtime',
+ 'core',
+ 'server',
'collaboration',
'collaborationRoomServer.ts',
);
@@ -384,7 +384,7 @@ test('historical comparison is authoritative, shared per room, and rejects concu
assert.match(server, /await this\.historicalComparisonService\.getAvailability\(\)/);
// The capability payload is built by the extracted CollaborationSessionApi.
assert.match(
- readProjectFile('src', 'servers', 'runtime', 'collaboration', 'collaborationSessionApi.ts'),
+ readProjectFile('src', 'core', 'server', 'collaboration', 'collaborationSessionApi.ts'),
/historicalComparisonReason: historicalComparison\.reason/,
);
assert.match(server, /entityKind: 'historical-comparison'/);
@@ -397,26 +397,26 @@ test('historical comparison is authoritative, shared per room, and rejects concu
});
test('project evolution builds a chronological Git movie and publishes shared XR state', () => {
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisMessageRouter.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'historicalComparisonBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'projectEvolutionBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'analysisMessageRouter.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'historicalComparisonBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'projectEvolutionBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
const service = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'projectEvolutionService.ts',
);
const models = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'historicalComparisonModels.ts',
);
const gitService = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'gitRepositoryService.ts',
);
const runtime = readAssembledRuntime('project-evolution', 'projectEvolutionRuntime.js');
@@ -473,7 +473,7 @@ test('project evolution builds a chronological Git movie and publishes shared XR
assert.match(service, /source\.commitSha === picked\.commitSha/);
assert.match(service, /sourceId === 'working-copy'[\s\S]{0,80}timeline\.length - 1/);
assert.match(service, /throw new Error\('project-evolution-range-not-found'\)/);
- const sampler = readProjectFile('src', 'code_analysis', 'historical', 'gitTimelineSampler.ts');
+ const sampler = readProjectFile('src', 'core', 'history', 'gitTimelineSampler.ts');
assert.match(sampler, /export function sampleTimeline/);
assert.match(sampler, /function isMilestone/);
assert.match(sampler, /function fillWidestGaps/);
@@ -481,7 +481,7 @@ test('project evolution builds a chronological Git movie and publishes shared XR
assert.match(server, /new ProjectEvolutionService/);
assert.match(server, /projectEvolutionService\.getAvailability/);
// The capability payload is built by the extracted CollaborationSessionApi.
- const sessionApi = readProjectFile('src', 'servers', 'runtime', 'collaboration', 'collaborationSessionApi.ts');
+ const sessionApi = readProjectFile('src', 'core', 'server', 'collaboration', 'collaborationSessionApi.ts');
assert.match(sessionApi, /projectEvolution: projectEvolution\.enabled/);
assert.match(sessionApi, /projectEvolutionReason: projectEvolution\.reason/);
assert.match(server, /message\.type === 'project-evolution-references-request'/);
@@ -718,8 +718,8 @@ test('project evolution builds a chronological Git movie and publishes shared XR
// service shares with historical comparison and the export lives in
// gitAnalysisShared.ts since #38 (retargeted haystack, same assertions).
const portablePaths = readConcatenated([
- 'src/code_analysis/historical/projectEvolutionService.ts',
- 'src/code_analysis/historical/gitAnalysisShared.ts',
+ 'src/core/history/projectEvolutionService.ts',
+ 'src/core/history/gitAnalysisShared.ts',
]);
assert.match(portablePaths, /toPortableRelativePath\(analyzedTargetPath, sourcePath\)/, 'canary: the service still routes paths through the shared helper');
assert.match(portablePaths, /if \(!path\.isAbsolute\(candidate\)\)/);
@@ -927,8 +927,8 @@ test('historical source selector keeps commit cards compact and identifies live
const runtime = readAssembledRuntime('historical-comparison', 'historicalComparisonRuntime.js');
const gitService = readProjectFile(
'src',
- 'code_analysis',
- 'historical',
+ 'core',
+ 'history',
'gitRepositoryService.ts',
);
diff --git a/apps/vscode-extension/test/analysis/launcherClosures.test.cjs b/apps/vscode-extension/test/analysis/launcherClosures.test.cjs
index 305c7b6a7..58e3749ed 100644
--- a/apps/vscode-extension/test/analysis/launcherClosures.test.cjs
+++ b/apps/vscode-extension/test/analysis/launcherClosures.test.cjs
@@ -23,8 +23,8 @@ const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
const LAUNCHERS = [
- { module: 'code_analysis/engine/launchers/launcherLivePanel.js', className: 'LauncherLivePanel', withTheme: true, methods: ['launchFileLivePanelAnalysis', 'launchDirectoryLivePanelAnalysis'] },
- { module: 'code_analysis/engine/launchers/launcherXRAnalysis.js', className: 'LauncherXRAnalysis', withTheme: false, methods: ['launchFileXRAnalysis', 'launchDirectoryXRAnalysis'] },
+ { module: 'core/analysis/launchers/launcherLivePanel.js', className: 'LauncherLivePanel', withTheme: true, methods: ['launchFileLivePanelAnalysis', 'launchDirectoryLivePanelAnalysis'] },
+ { module: 'core/analysis/launchers/launcherXRAnalysis.js', className: 'LauncherXRAnalysis', withTheme: false, methods: ['launchFileXRAnalysis', 'launchDirectoryXRAnalysis'] },
];
async function withLaunchers(body) {
@@ -33,21 +33,21 @@ async function withLaunchers(body) {
try {
await withFakeVscode(fake, async ({ requireOut }) => {
const calls = [];
- const pipeline = requireOut('code_analysis/engine/launchers/launchPipeline.js');
+ const pipeline = requireOut('core/analysis/launchers/launchPipeline.js');
const configs = [];
pipeline.executeLaunchPipeline = async (session, launchContext, config) => {
configs.push(config);
};
- const { UnifiedSessionRegistry } = requireOut('code_analysis/engine/core/sessionRegistry.js');
+ const { UnifiedSessionRegistry } = requireOut('core/analysis/session/sessionRegistry.js');
UnifiedSessionRegistry.getInstance = () => ({ updateSessionStatus() {} });
- const { AnalysisConfigurationStorage } = requireOut('code_analysis/configuration/analysisConfigurationStorage.js');
+ const { AnalysisConfigurationStorage } = requireOut('core/analysis/configuration/analysisConfigurationStorage.js');
AnalysisConfigurationStorage.getInstance = () => ({
async getViewTheme() {
calls.push(['getViewTheme']);
return 'dark';
},
});
- const { FileRequirementProcessor } = requireOut('code_analysis/engine/processors/FileRequirementProcessor.js');
+ const { FileRequirementProcessor } = requireOut('core/analysis/processors/FileRequirementProcessor.js');
const behaviour = { processResult: { processed: true }, watchResult: 'watcher-1', fail: null };
let processorInstances = 0;
FileRequirementProcessor.prototype.processRequirements = async function recordProcess(...args) {
@@ -59,7 +59,7 @@ async function withLaunchers(body) {
}
return behaviour.processResult;
};
- const { SessionWatcherManager } = requireOut('code_analysis/engine/watchers/sessionWatcherManager.js');
+ const { SessionWatcherManager } = requireOut('core/analysis/watchers/sessionWatcherManager.js');
let watcherInstances = 0;
SessionWatcherManager.prototype.startWatchingSession = async function recordWatch(...args) {
watcherInstances += this.__seen ? 0 : 1;
diff --git a/apps/vscode-extension/test/analysis/livePanelDomIntegration.test.cjs b/apps/vscode-extension/test/analysis/livePanelDomIntegration.test.cjs
index 6aa074b2b..0be8eaa83 100644
--- a/apps/vscode-extension/test/analysis/livePanelDomIntegration.test.cjs
+++ b/apps/vscode-extension/test/analysis/livePanelDomIntegration.test.cjs
@@ -32,7 +32,7 @@ function loadLivePanelParserWithStubbedVscode() {
// The scope closes as soon as the class is loaded: the parser and everything
// it imported stay usable, but nothing bound to this fake is left in
// require.cache for the suites that run after this one.
- const { LivePanelParser } = withFakeVscode(fake, ({ requireOut }) => requireOut('code_analysis/engine/parsers/livePanelParser.js'));
+ const { LivePanelParser } = withFakeVscode(fake, ({ requireOut }) => requireOut('core/analysis/parsers/livePanelParser.js'));
return {
LivePanelParser,
@@ -52,7 +52,7 @@ function extractMethodBlock(source, methodName) {
}
test('LivePanel directory launcher no longer blocks on empty directoriesToAnalyze before the first analysis', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'launchers', 'launcherLivePanel.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'launchers', 'launcherLivePanel.ts');
assert.equal(source.includes('No directories to analyze'), false);
assert.match(source, /Directory targets will be resolved by the Python coordinator during the initial analysis/);
@@ -60,8 +60,8 @@ test('LivePanel directory launcher no longer blocks on empty directoriesToAnalyz
});
test('FileRequirementProcessor delegates all analysis startup paths to AnalysisBootstrap', () => {
- const processor = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'FileRequirementProcessor.ts');
- const bootstrap = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
+ const processor = readProjectFile('src', 'core', 'analysis', 'processors', 'FileRequirementProcessor.ts');
+ const bootstrap = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
assert.match(processor, /import \{ AnalysisBootstrap, BootstrapProcessedRequirements \} from '\.\/analysisBootstrap';/);
assert.match(processor, /this\.analysisBootstrap = new AnalysisBootstrap\(context\);/);
@@ -75,9 +75,9 @@ test('FileRequirementProcessor delegates all analysis startup paths to AnalysisB
});
test('LivePanel and XR bootstrap share the first Python analysis and tracked file hydration', () => {
- const bootstrap = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
- const fileXRParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
- const directoryXRParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
+ const bootstrap = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
+ const fileXRParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
+ const directoryXRParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
assert.match(bootstrap, /const analysisResult = await this\.executePython\.executeAnalysis\(session\);/);
assert.match(bootstrap, /session\.hash256 = await SHA256Generator\.generateFileHash\(session\.targetPath\);/);
@@ -88,9 +88,9 @@ test('LivePanel and XR bootstrap share the first Python analysis and tracked fil
});
test('VisualizeDOM launch and regeneration now go through the shared bootstrap path', () => {
- const launcher = readProjectFile('src', 'code_analysis', 'engine', 'launchers', 'launcherVisualizeDOM.ts');
- const reanalysisManager = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'reAnalysisManager.ts');
- const bootstrap = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
+ const launcher = readProjectFile('src', 'core', 'analysis', 'launchers', 'launcherVisualizeDOM.ts');
+ const reanalysisManager = readProjectFile('src', 'core', 'analysis', 'watchers', 'reAnalysisManager.ts');
+ const bootstrap = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
const domBootstrap = extractMethodBlock(bootstrap, 'bootstrapVisualizeDOM');
assert.match(launcher, /const processor = new FileRequirementProcessor\(context\);/);
@@ -103,7 +103,7 @@ test('VisualizeDOM launch and regeneration now go through the shared bootstrap p
});
test('Server launch fails explicitly when an analysis session has no generated main HTML file', () => {
- const orchestrator = readProjectFile('src', 'code_analysis', 'engine', 'servers', 'serverLaunchOrchestrator.ts');
+ const orchestrator = readProjectFile('src', 'core', 'analysis', 'session-servers', 'serverLaunchOrchestrator.ts');
assert.match(orchestrator, /const preferredMainFile = typeof session\?\.metadata\?\.mainHtmlFileName === 'string'/);
assert.match(orchestrator, /const htmlFilePath = this\.findMainHtmlFile\(tempDir, preferredMainFile\);/);
@@ -114,8 +114,8 @@ test('Server launch fails explicitly when an analysis session has no generated m
test('VisualizeDOM runtime mounts babia-html from a JSON payload so full documents survive semicolons in style and script tags', () => {
const template = readProjectFile('templates', 'xr', 'html', 'dom-visualization-template.html');
const sseClient = readProjectFile('templates', 'xr', 'sse', 'live_sse_fileDOM.js');
- const reanalysisManager = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'reAnalysisManager.ts');
- const templateProcessor = readProjectFile('src', 'babia_templates', 'processing', 'templateHTMLProcessor.ts');
+ const reanalysisManager = readProjectFile('src', 'core', 'analysis', 'watchers', 'reAnalysisManager.ts');
+ const templateProcessor = readProjectFile('src', 'core', 'charts', 'processing', 'templateHTMLProcessor.ts');
assert.match(template, /html2canvas\.min\.js/);
assert.match(template, /babia-html="renderHTML: true; renderHTMLOnlyLeafs: true; distanceLevels: 0\.7"/);
@@ -138,7 +138,7 @@ test('VisualizeDOM runtime mounts babia-html from a JSON payload so full documen
});
test('HTML DOM Python integration now emits JSON markers and ExecutePython keeps a direct JSON fallback', () => {
- const executePython = readProjectFile('src', 'code_analysis', 'engine', 'utils', 'executePython.ts');
+ const executePython = readProjectFile('src', 'core', 'analysis', 'python', 'executePython.ts');
const htmlParser = readProjectFile('..', '..', 'backend', 'src', 'html', 'html_dom_parser.py');
assert.match(htmlParser, /def emit_json_result\(result: Dict\[str, Any\]\) -> None:/);
@@ -209,10 +209,10 @@ test('LivePanel directory template and script expose unified directory aggregate
// error chain) with no equivalent failure on the XR side.
test('LivePanelParser resolves templates from context.extensionPath like every other parser, never the extension registry', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'livePanelParser.ts');
- const bootstrap = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
- const fileXRParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
- const visualizeDOMParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'visualizeDOMParser.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'parsers', 'livePanelParser.ts');
+ const bootstrap = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
+ const fileXRParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
+ const visualizeDOMParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'visualizeDOMParser.ts');
assert.match(source, /constructor\(context: vscode\.ExtensionContext\)/);
assert.match(source, /this\.context = context;/);
diff --git a/apps/vscode-extension/test/analysis/livePanelHistorical.test.cjs b/apps/vscode-extension/test/analysis/livePanelHistorical.test.cjs
index e05693c45..2878585d6 100644
--- a/apps/vscode-extension/test/analysis/livePanelHistorical.test.cjs
+++ b/apps/vscode-extension/test/analysis/livePanelHistorical.test.cjs
@@ -22,7 +22,7 @@ function readProjectFile(...segments) {
}
test('the capability table grants LivePanel historical comparison while project evolution stays XR-only', () => {
- const capabilities = readProjectFile('src', 'servers', 'runtime', 'analysisServerCapabilities.ts');
+ const capabilities = readProjectFile('src', 'core', 'server', 'analysisServerCapabilities.ts');
const livePanelEntry = capabilities.match(/LivePanel: \{[\s\S]*?\},/)?.[0] || '';
assert.match(livePanelEntry, /dependencyGraph: true/);
assert.match(livePanelEntry, /historicalComparison: true/);
@@ -30,15 +30,15 @@ test('the capability table grants LivePanel historical comparison while project
});
test('the historical comparison service admits LivePanel sessions and still throws for anything else', () => {
- const service = readProjectFile('src', 'code_analysis', 'historical', 'historicalComparisonService.ts');
+ const service = readProjectFile('src', 'core', 'history', 'historicalComparisonService.ts');
assert.match(service, /session\.analysisMode !== 'XR' && session\.analysisMode !== 'LivePanel'/);
assert.match(service, /historical-comparison-session-unavailable/);
});
test('HttpServer exposes LivePanel REST endpoints for references and async compare', () => {
// Routing stays in the façade; the handlers live in the historical bridge.
- const routing = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts');
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'historicalComparisonBridge.ts');
+ const routing = readProjectFile('src', 'core', 'server', 'httpServer.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'historicalComparisonBridge.ts');
assert.match(routing, /case '\/historical\/references':/);
assert.match(routing, /case '\/historical\/compare':/);
assert.match(server, /public async handleHistoricalReferences\(/);
@@ -51,7 +51,7 @@ test('HttpServer exposes LivePanel REST endpoints for references and async compa
});
test('the analysis host pushes historical progress and results to LivePanel over SSE', () => {
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
assert.match(server, /public notifyLivePanelHistoricalProgress\(/);
assert.match(server, /public notifyLivePanelHistoricalUpdated\(/);
assert.match(server, /type: 'historical-progress'/);
@@ -62,7 +62,7 @@ test('the analysis host pushes historical progress and results to LivePanel over
});
test('a live comparison refreshes after every incremental re-analysis and republishes over SSE', () => {
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
// LivePanel sessions schedule the refresh straight from analysisUpdateEvents
// (no XR view-mode gate); the schedule itself no-ops without a live source.
assert.match(server, /if \(this\.analysisMode === 'LivePanel'\) \{[\s\S]*?this\.scheduleHistoricalComparisonRefresh\(\);[\s\S]*?return;/);
@@ -71,9 +71,9 @@ test('a live comparison refreshes after every incremental re-analysis and republ
});
test('file comparisons only offer versions that actually contain the analyzed file', () => {
- const service = readProjectFile('src', 'code_analysis', 'historical', 'historicalComparisonService.ts');
- const catalog = readProjectFile('src', 'code_analysis', 'historical', 'gitAnalysisEligibility.ts');
- const index = readProjectFile('src', 'code_analysis', 'historical', 'gitTimelineBlobIndex.ts');
+ const service = readProjectFile('src', 'core', 'history', 'historicalComparisonService.ts');
+ const catalog = readProjectFile('src', 'core', 'history', 'gitAnalysisEligibility.ts');
+ const index = readProjectFile('src', 'core', 'history', 'gitTimelineBlobIndex.ts');
// The shared read-only Git catalogue filters target absence before either
// Historical or Evolution publishes its reference list.
assert.match(service, /this\.sourceCatalog\.filterSources\([\s\S]*sources: references\.sources/);
@@ -86,8 +86,8 @@ test('file comparisons only offer versions that actually contain the analyzed fi
// the revision analysis is shared with project evolution and lives in
// gitAnalysisSessionContext.ts; the service selects the 'throw' policy.
const analysis = readConcatenated([
- 'src/code_analysis/historical/historicalComparisonService.ts',
- 'src/code_analysis/historical/gitAnalysisSessionContext.ts',
+ 'src/core/history/historicalComparisonService.ts',
+ 'src/core/history/gitAnalysisSessionContext.ts',
]);
assert.match(analysis, /missingTarget: 'throw'/, 'canary: historical comparison refuses a revision without the target');
assert.match(analysis, /if \(!materialized\.targetPath\)[\s\S]*this\.excludeSource\([\s\S]*'target-missing'/);
@@ -95,8 +95,8 @@ test('file comparisons only offer versions that actually contain the analyzed fi
});
test('file comparisons analyze only the analyzed file itself, at function scope', () => {
- const gitService = readProjectFile('src', 'code_analysis', 'historical', 'gitRepositoryService.ts');
- const service = readProjectFile('src', 'code_analysis', 'historical', 'historicalComparisonService.ts');
+ const gitService = readProjectFile('src', 'core', 'history', 'gitRepositoryService.ts');
+ const service = readProjectFile('src', 'core', 'history', 'historicalComparisonService.ts');
const panel = readProjectFile('templates', 'components', 'livepanel', 'historicalPanel.js');
// Only the analyzed file is materialized from the Git reference — never the
// surrounding directory.
@@ -105,8 +105,8 @@ test('file comparisons analyze only the analyzed file itself, at function scope'
// The historical session analyzes that single materialized file (the
// per-revision session is built by the shared gitAnalysisSessionContext)...
const analysis = readConcatenated([
- 'src/code_analysis/historical/historicalComparisonService.ts',
- 'src/code_analysis/historical/gitAnalysisSessionContext.ts',
+ 'src/core/history/historicalComparisonService.ts',
+ 'src/core/history/gitAnalysisSessionContext.ts',
]);
assert.match(analysis, /new GitAnalysisSessionContext\(/, 'canary: the service delegates revision analysis to the shared context');
assert.match(analysis, /targetPath: materialized\.targetPath/);
@@ -117,7 +117,7 @@ test('file comparisons analyze only the analyzed file itself, at function scope'
});
test('LivePanel dependency seeding covers file sessions as well as directories', () => {
- const server = readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts');
+ const server = readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts');
// The old directory-only guard is gone; any LivePanel session seeds and
// background-refreshes its dependency dataset (the service resolves the
// project root for file targets).
diff --git a/apps/vscode-extension/test/analysis/offlineHistoricalDelta.test.cjs b/apps/vscode-extension/test/analysis/offlineHistoricalDelta.test.cjs
index 9c8d7b938..cc69b3e9e 100644
--- a/apps/vscode-extension/test/analysis/offlineHistoricalDelta.test.cjs
+++ b/apps/vscode-extension/test/analysis/offlineHistoricalDelta.test.cjs
@@ -37,8 +37,8 @@ const { readSource } = require(path.join(projectRoot, 'test', 'helpers', 'source
// == Where the two implementations live ==
// A refactor that moves either side retargets THIS block and nothing below it.
-const EXTENSION_MODULE = 'code_analysis/historical/historicalComparisonService.js';
-const EXTENSION_SOURCE = 'src/code_analysis/historical/historicalComparisonService.ts';
+const EXTENSION_MODULE = 'core/history/historicalComparisonService.js';
+const EXTENSION_SOURCE = 'src/core/history/historicalComparisonService.ts';
const runtimeSource = readAssembledRuntime('historical-comparison', 'historicalComparisonRuntime.js');
function loadExtensionDelta(requireOut) {
@@ -414,7 +414,7 @@ test('payload pairs shaped by the export decorator get the same counters on both
// The decorator that writes the per-revision payloads of an export: the
// browser port only ever sees entries shaped by it.
const { decorateRevisionPayload } = require(path.join(
- projectRoot, 'out', 'code_analysis', 'export', 'gitRevisionExportCore.js',
+ projectRoot, 'out', 'core', 'export', 'gitRevisionExportCore.js',
));
// Pure path arithmetic, nothing is created on disk. Each revision is
// analyzed in its own snapshot folder, as a materialized commit is.
diff --git a/apps/vscode-extension/test/analysis/profileConfigurationCommands.test.cjs b/apps/vscode-extension/test/analysis/profileConfigurationCommands.test.cjs
index 17c5728b2..29af0197f 100644
--- a/apps/vscode-extension/test/analysis/profileConfigurationCommands.test.cjs
+++ b/apps/vscode-extension/test/analysis/profileConfigurationCommands.test.cjs
@@ -1,7 +1,7 @@
/**
* Behavioural characterization of the Load Profile and Delete Profile
- * commands (src/code_analysis/commands/subsections/analysis_settings/
- * profile_configuration/profileConfigurationCommands.ts), written before
+ * commands (src/features/analysis/sections/settings/
+ * profile-configuration/profileConfigurationCommands.ts), written before
* ROADMAP T37 folded their byte-identical profile-listing block into one
* helper. No test exercised the file before this suite.
*
@@ -18,8 +18,8 @@ const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
const { createFakeVscode, withFakeVscode, fakeExtensionContext } = require(path.join(projectRoot, 'test', 'helpers', 'fakeVscode.cjs'));
-const COMMANDS_MODULE = 'code_analysis/commands/subsections/analysis_settings/profile_configuration/profileConfigurationCommands.js';
-const STORAGE_MODULE = 'code_analysis/configuration/analysisConfigurationStorage.js';
+const COMMANDS_MODULE = 'features/analysis/sections/settings/profile-configuration/profileConfigurationCommands.js';
+const STORAGE_MODULE = 'core/analysis/configuration/analysisConfigurationStorage.js';
async function withProfileCommands(body) {
const fake = createFakeVscode();
diff --git a/apps/vscode-extension/test/analysis/pythonStderrProgress.test.cjs b/apps/vscode-extension/test/analysis/pythonStderrProgress.test.cjs
index 88ac9b3d5..4b2ce431e 100644
--- a/apps/vscode-extension/test/analysis/pythonStderrProgress.test.cjs
+++ b/apps/vscode-extension/test/analysis/pythonStderrProgress.test.cjs
@@ -91,7 +91,7 @@ async function runFileAnalysis(stderrLines, exitCode = 0) {
const silence = muteConsole();
try {
return await withFakeVscode(fake, async ({ requireOut }) => {
- const { ExecutePython } = requireOut('code_analysis/engine/utils/executePython.js');
+ const { ExecutePython } = requireOut('core/analysis/python/executePython.js');
const executor = new ExecutePython(context);
// The venv is not under test: node stands in for its interpreter.
executor.venvManager = { getPythonExecutablePath: () => process.execPath };
diff --git a/apps/vscode-extension/test/analysis/pythonStderrStream.test.cjs b/apps/vscode-extension/test/analysis/pythonStderrStream.test.cjs
index b7872dbb9..4a5ef5832 100644
--- a/apps/vscode-extension/test/analysis/pythonStderrStream.test.cjs
+++ b/apps/vscode-extension/test/analysis/pythonStderrStream.test.cjs
@@ -5,7 +5,7 @@ const path = require('node:path');
// The pure stderr classifier ExecutePython uses (ROADMAP W4-L04). The end-to-end
// report sequence is pinned in pythonStderrProgress.test.cjs; this pins the
// log lines and the null cases, line by line.
-const { classifyStderrLine } = require(path.join(__dirname, '..', '..', 'out', 'code_analysis', 'engine', 'utils', 'pythonStderrStream.js'));
+const { classifyStderrLine } = require(path.join(__dirname, '..', '..', 'out', 'core', 'analysis', 'python', 'pythonStderrStream.js'));
test('a full progress line logs four lines and reports the basename with an increment of 100/total', () => {
const line = JSON.stringify({ progress: {
diff --git a/apps/vscode-extension/test/analysis/reanalysisArchitecture.test.cjs b/apps/vscode-extension/test/analysis/reanalysisArchitecture.test.cjs
index 875ecfd9f..11b719611 100644
--- a/apps/vscode-extension/test/analysis/reanalysisArchitecture.test.cjs
+++ b/apps/vscode-extension/test/analysis/reanalysisArchitecture.test.cjs
@@ -11,9 +11,9 @@ function readProjectFile(...segments) {
}
test('watcher startup and cleanup go through SessionWatcherManager for XR and VisualizeDOM', () => {
- const xrLauncher = readProjectFile('src', 'code_analysis', 'engine', 'launchers', 'launcherXRAnalysis.ts');
- const domLauncher = readProjectFile('src', 'code_analysis', 'engine', 'launchers', 'launcherVisualizeDOM.ts');
- const integration = readProjectFile('src', 'code_analysis', 'services', 'serverWatcherIntegration.ts');
+ const xrLauncher = readProjectFile('src', 'core', 'analysis', 'launchers', 'launcherXRAnalysis.ts');
+ const domLauncher = readProjectFile('src', 'core', 'analysis', 'launchers', 'launcherVisualizeDOM.ts');
+ const integration = readProjectFile('src', 'features', 'analysis', 'services', 'serverWatcherIntegration.ts');
assert.match(xrLauncher, /import \{ SessionWatcherManager \} from '\.\.\/watchers\/sessionWatcherManager';/);
assert.equal(xrLauncher.includes('new FileWatcherOrchestrator('), false);
@@ -25,11 +25,11 @@ test('watcher startup and cleanup go through SessionWatcherManager for XR and Vi
});
test('file and directory watchers use the hybrid stat-plus-hash reanalysis gate', () => {
- const fileWatcher = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'fileWatcherOrchestrator.ts');
- const directoryWatcher = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'directoryWatcherOrchestrator.ts');
- const reAnalysisManager = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'reAnalysisManager.ts');
- const directoryReAnalyzer = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'directoryReAnalyzer.ts');
- const executePython = readProjectFile('src', 'code_analysis', 'engine', 'utils', 'executePython.ts');
+ const fileWatcher = readProjectFile('src', 'core', 'analysis', 'watchers', 'fileWatcherOrchestrator.ts');
+ const directoryWatcher = readProjectFile('src', 'core', 'analysis', 'watchers', 'directoryWatcherOrchestrator.ts');
+ const reAnalysisManager = readProjectFile('src', 'core', 'analysis', 'watchers', 'reAnalysisManager.ts');
+ const directoryReAnalyzer = readProjectFile('src', 'core', 'analysis', 'watchers', 'directoryReAnalyzer.ts');
+ const executePython = readProjectFile('src', 'core', 'analysis', 'python', 'executePython.ts');
assert.match(fileWatcher, /this\.lastKnownMtimeMs === statSnapshot\.mtimeMs && this\.lastKnownSize === statSnapshot\.size/);
assert.match(fileWatcher, /currentHash === this\.lastDetectedHash/);
@@ -65,23 +65,22 @@ test('coding-agent integration surfaces are removed', () => {
const packageJson = JSON.parse(readProjectFile('package.json'));
const webpackConfig = readProjectFile('webpack.config.js');
const extension = readProjectFile('src', 'extension.ts');
- const analysisCommands = readProjectFile('src', 'code_analysis', 'commands', 'analysisCommands.ts');
- const analysisProvider = readProjectFile('src', 'code_analysis', 'views', 'AnalysisSectionProvider.ts');
+ const analysisCommands = readProjectFile('src', 'features', 'analysis', 'commands', 'analysisCommands.ts');
+ const analysisProvider = readProjectFile('src', 'features', 'analysis', 'views', 'AnalysisSectionProvider.ts');
const activeAnalysesCommands = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'active_analyses',
- 'commands',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'active-analyses',
'activeAnalysesCommands.ts',
);
- const httpServer = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisFeatureHost.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'analysisMessageRouter.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'dependencyGraphBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'historicalComparisonBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'projectEvolutionBridge.ts');
+ const httpServer = readProjectFile('src', 'core', 'server', 'httpServer.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'analysisFeatureHost.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'analysisMessageRouter.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'dependencyGraphBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'historicalComparisonBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'projectEvolutionBridge.ts');
const camelName = 'agent' + 'Context';
const titleName = 'Agent' + ' Context';
const commandPrefix = ['codeXR', camelName].join('.');
@@ -112,9 +111,9 @@ test('coding-agent integration surfaces are removed', () => {
);
}
- assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'code_analysis', underscoredFolder)), false);
- assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'code_analysis', 'commands', underscoredFolder)), false);
- assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'code_analysis', 'views', 'subsections', underscoredFolder)), false);
+ assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'features', 'analysis', underscoredFolder)), false);
+ assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'features', 'analysis', 'commands', underscoredFolder)), false);
+ assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'features', 'analysis', 'sections', underscoredFolder)), false);
assert.equal(fs.existsSync(path.join(projectRoot, 'docs', `${underscoredFolder.toUpperCase()}.md`)), false);
assert.equal(fs.existsSync(path.join(projectRoot, 'docs', `${underscoredFolder.toUpperCase()}_AGENT_USAGE.md`)), false);
@@ -124,12 +123,12 @@ test('coding-agent integration surfaces are removed', () => {
});
test('watcher configuration changes propagate to active sessions and directory rename events trigger partial refresh', () => {
- const sessionWatcherManager = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'sessionWatcherManager.ts');
- const delayCommands = readProjectFile('src', 'code_analysis', 'commands', 'subsections', 'analysis_settings', 'auto_analysis_delay', 'autoAnalysisDelayCommands.ts');
- const enabledCommands = readProjectFile('src', 'code_analysis', 'commands', 'subsections', 'analysis_settings', 'auto_analysis_enabled', 'autoAnalysisEnabledCommands.ts');
- const fileWatcher = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'fileWatcherOrchestrator.ts');
- const directoryWatcher = readProjectFile('src', 'code_analysis', 'engine', 'watchers', 'directoryWatcherOrchestrator.ts');
- const analysisBootstrap = readProjectFile('src', 'code_analysis', 'engine', 'processors', 'analysisBootstrap.ts');
+ const sessionWatcherManager = readProjectFile('src', 'core', 'analysis', 'watchers', 'sessionWatcherManager.ts');
+ const delayCommands = readProjectFile('src', 'features', 'analysis', 'sections', 'settings', 'auto-analysis-delay', 'autoAnalysisDelayCommands.ts');
+ const enabledCommands = readProjectFile('src', 'features', 'analysis', 'sections', 'settings', 'auto-analysis-enabled', 'autoAnalysisEnabledCommands.ts');
+ const fileWatcher = readProjectFile('src', 'core', 'analysis', 'watchers', 'fileWatcherOrchestrator.ts');
+ const directoryWatcher = readProjectFile('src', 'core', 'analysis', 'watchers', 'directoryWatcherOrchestrator.ts');
+ const analysisBootstrap = readProjectFile('src', 'core', 'analysis', 'processors', 'analysisBootstrap.ts');
assert.match(sessionWatcherManager, /async updateAllWatcherConfigurations\(\): Promise/);
assert.match(sessionWatcherManager, /static async refreshActiveWatcherConfigurations\(context: vscode\.ExtensionContext\): Promise/);
@@ -154,19 +153,19 @@ test('watcher configuration changes propagate to active sessions and directory r
test('mode activation reconciles watcher hashes without forcing a full analysis', () => {
const manager = readProjectFile(
- 'src', 'code_analysis', 'engine', 'watchers', 'sessionWatcherManager.ts',
+ 'src', 'core', 'analysis', 'watchers', 'sessionWatcherManager.ts',
);
const fileWatcher = readProjectFile(
- 'src', 'code_analysis', 'engine', 'watchers', 'fileWatcherOrchestrator.ts',
+ 'src', 'core', 'analysis', 'watchers', 'fileWatcherOrchestrator.ts',
);
const directoryWatcher = readProjectFile(
- 'src', 'code_analysis', 'engine', 'watchers', 'directoryWatcherOrchestrator.ts',
+ 'src', 'core', 'analysis', 'watchers', 'directoryWatcherOrchestrator.ts',
);
- const server = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'historicalComparisonBridge.ts')
- + readProjectFile('src', 'servers', 'runtime', 'analysis', 'projectEvolutionBridge.ts');
+ const server = readProjectFile('src', 'core', 'server', 'httpServer.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'historicalComparisonBridge.ts')
+ + readProjectFile('src', 'core', 'server', 'analysis', 'projectEvolutionBridge.ts');
const coordinator = readProjectFile(
- 'src', 'code_analysis', 'refresh', 'analysisRefreshCoordinator.ts',
+ 'src', 'core', 'analysis', 'refresh', 'analysisRefreshCoordinator.ts',
);
assert.match(manager, /static async reconcileSession/);
diff --git a/apps/vscode-extension/test/analysis/roomAndGuideAssets.test.cjs b/apps/vscode-extension/test/analysis/roomAndGuideAssets.test.cjs
index 8d0a52e93..4a0571729 100644
--- a/apps/vscode-extension/test/analysis/roomAndGuideAssets.test.cjs
+++ b/apps/vscode-extension/test/analysis/roomAndGuideAssets.test.cjs
@@ -14,7 +14,7 @@ const os = require('node:os');
const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
-const components = require('../../out/code_analysis/engine/components/customComponents/index.js');
+const components = require('../helpers/sceneAssetModules.cjs').loadSceneAssetModules();
const ROOM_DIR = path.join(projectRoot, 'templates', 'components', 'codexr', 'xr-room');
const RUNTIME = path.join(ROOM_DIR, 'codexrRoomRuntime.js');
diff --git a/apps/vscode-extension/test/analysis/runtimeAssemblyParity.test.cjs b/apps/vscode-extension/test/analysis/runtimeAssemblyParity.test.cjs
index 93ebbd9d5..35f99cedd 100644
--- a/apps/vscode-extension/test/analysis/runtimeAssemblyParity.test.cjs
+++ b/apps/vscode-extension/test/analysis/runtimeAssemblyParity.test.cjs
@@ -24,7 +24,7 @@ const helper = require(helperPath);
// The production assembler depends on fs and path only (no vscode), so its
// compiled module loads as is.
const production = require(path.join(
- projectRoot, 'out', 'code_analysis', 'engine', 'components', 'customComponents', 'runtimeAssembly.js',
+ projectRoot, 'out', 'core', 'analysis', 'scene-assets', 'runtimeAssembly.js',
));
// A floor, not a list: runtimes are discovered from disk, and the floor only
@@ -72,7 +72,7 @@ function assertSameAssembly(tested, shipped, label) {
+ ` helper: ${excerpt(tested)}\n`
+ ` production: ${excerpt(shipped)}\n`
+ 'The runtime suites would be testing a runtime that users never get: bring the helper back in line with '
- + 'src/code_analysis/engine/components/customComponents/runtimeAssembly.ts.',
+ + 'src/core/analysis/scene-assets/runtimeAssembly.ts.',
);
}
diff --git a/apps/vscode-extension/test/analysis/sessionRegistryCreate.test.cjs b/apps/vscode-extension/test/analysis/sessionRegistryCreate.test.cjs
index 29e1e80e9..f605e085a 100644
--- a/apps/vscode-extension/test/analysis/sessionRegistryCreate.test.cjs
+++ b/apps/vscode-extension/test/analysis/sessionRegistryCreate.test.cjs
@@ -37,7 +37,7 @@ async function withRegistry(body, fakeOptions = {}) {
const restoreConsole = silenceConsole();
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- const { UnifiedSessionRegistry } = requireOut('code_analysis/engine/core/sessionRegistry.js');
+ const { UnifiedSessionRegistry } = requireOut('core/analysis/session/sessionRegistry.js');
const registry = UnifiedSessionRegistry.getInstance(context);
const fired = [];
registry.onSessionChanged((session) => fired.push(session));
diff --git a/apps/vscode-extension/test/analysis/singleFileRuntimeAssets.test.cjs b/apps/vscode-extension/test/analysis/singleFileRuntimeAssets.test.cjs
index 81dc855fb..73073a07e 100644
--- a/apps/vscode-extension/test/analysis/singleFileRuntimeAssets.test.cjs
+++ b/apps/vscode-extension/test/analysis/singleFileRuntimeAssets.test.cjs
@@ -17,7 +17,7 @@ const os = require('node:os');
const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
-const components = require('../../out/code_analysis/engine/components/customComponents/index.js');
+const components = require('../helpers/sceneAssetModules.cjs').loadSceneAssetModules();
const ASSETS = [
{
diff --git a/apps/vscode-extension/test/analysis/uiPolicy.test.cjs b/apps/vscode-extension/test/analysis/uiPolicy.test.cjs
index c5560ddee..8c6e150d7 100644
--- a/apps/vscode-extension/test/analysis/uiPolicy.test.cjs
+++ b/apps/vscode-extension/test/analysis/uiPolicy.test.cjs
@@ -67,23 +67,23 @@ function monorepoTextFiles() {
}
test('auto-analysis delay defaults to RealTime and selector labels are plain text', () => {
- const model = readProjectFile('src', 'code_analysis', 'configuration', 'models', 'analysisConfiguration.ts');
+ const model = readProjectFile('src', 'core', 'analysis', 'configuration', 'analysisConfiguration.ts');
const profile = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'profile_configuration',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'profile-configuration',
'profileConfiguration.ts',
);
const commands = readProjectFile(
'src',
- 'code_analysis',
- 'commands',
- 'subsections',
- 'analysis_settings',
- 'auto_analysis_delay',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'auto-analysis-delay',
'autoAnalysisDelayCommands.ts',
);
@@ -96,11 +96,11 @@ test('auto-analysis delay defaults to RealTime and selector labels are plain tex
});
test('XR mapping UI is always injected and no longer has an enabled config flag', () => {
- const fileParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
- const directoryParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
- const storage = readProjectFile('src', 'code_analysis', 'configuration', 'analysisConfigurationStorage.ts');
- const model = readProjectFile('src', 'code_analysis', 'configuration', 'models', 'analysisConfiguration.ts');
- const templateProcessor = readProjectFile('src', 'babia_templates', 'processing', 'templateProcessor.ts');
+ const fileParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
+ const directoryParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
+ const storage = readProjectFile('src', 'core', 'analysis', 'configuration', 'analysisConfigurationStorage.ts');
+ const model = readProjectFile('src', 'core', 'analysis', 'configuration', 'analysisConfiguration.ts');
+ const templateProcessor = readProjectFile('src', 'core', 'charts', 'processing', 'templateProcessor.ts');
assert.match(fileParser, /babiaUiVisibleByDefault: babiaUiConfig\.visibleByDefault/);
assert.match(directoryParser, /babiaUiVisibleByDefault: babiaUiConfig\.visibleByDefault/);
diff --git a/apps/vscode-extension/test/analysis/virtualScreenRuntime.test.cjs b/apps/vscode-extension/test/analysis/virtualScreenRuntime.test.cjs
index 82b05ff78..b8f04389e 100644
--- a/apps/vscode-extension/test/analysis/virtualScreenRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/virtualScreenRuntime.test.cjs
@@ -10,19 +10,19 @@ const { assertAbsent, readConcatenated } = require(path.join(projectRoot, 'test'
// guards on "the room" read all of them, so code moving between them cannot
// slip past a guard.
const ROOM_SERVER_FILES = [
- 'src/servers/runtime/collaboration/collaborationRoomServer.ts',
- 'src/servers/runtime/collaboration/roomTypes.ts',
- 'src/servers/runtime/collaboration/roomMessageCodec.ts',
- 'src/servers/runtime/collaboration/participantIdentity.ts',
- 'src/servers/runtime/collaboration/roomRegistry.ts',
- 'src/servers/runtime/collaboration/roomSharedState.ts',
+ 'src/core/server/collaboration/collaborationRoomServer.ts',
+ 'src/core/server/collaboration/roomTypes.ts',
+ 'src/core/server/collaboration/roomMessageCodec.ts',
+ 'src/core/server/collaboration/participantIdentity.ts',
+ 'src/core/server/collaboration/roomRegistry.ts',
+ 'src/core/server/collaboration/roomSharedState.ts',
];
// The screen broadcast server and the modules split out of it (same reason).
const BROADCAST_SERVER_FILES = [
- 'src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts',
- 'src/servers/runtime/broadcast/mediaFrame.ts',
- 'src/servers/runtime/broadcast/relayPolicy.ts',
- 'src/servers/runtime/broadcast/broadcastTypes.ts',
+ 'src/core/server/broadcast/screenBroadcastSignalingServer.ts',
+ 'src/core/server/broadcast/mediaFrame.ts',
+ 'src/core/server/broadcast/relayPolicy.ts',
+ 'src/core/server/broadcast/broadcastTypes.ts',
];
const runtimeSource = readAssembledRuntime('virtual-screen', 'virtualScreenRuntime.js');
const runtimeModule = requireAssembledRuntime('virtual-screen', 'virtualScreenRuntime.js');
@@ -70,10 +70,10 @@ test('virtual screen runtime includes WebRTC broadcasting primitives and shared-
const multiScreenManagerSource = readProjectFile('templates', 'components', 'codexr', 'virtual-screen', 'codexrMultiScreenManagerRuntime.js');
const collaborationRuntimeSource = readAssembledRuntime('collaboration', 'codexrCollaborationRuntime.js');
const avatarRuntimeSource = readProjectFile('templates', 'components', 'codexr', 'avatar', 'codexrAvatarRuntime.js');
- const httpServerSource = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts');
- const sessionApiSource = readProjectFile('src', 'servers', 'runtime', 'collaboration', 'collaborationSessionApi.ts');
- const broadcastServerSource = readProjectFile('src', 'servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.ts');
- const runtimeIndexSource = readProjectFile('src', 'servers', 'runtime', 'index.ts');
+ const httpServerSource = readProjectFile('src', 'core', 'server', 'httpServer.ts');
+ const sessionApiSource = readProjectFile('src', 'core', 'server', 'collaboration', 'collaborationSessionApi.ts');
+ const broadcastServerSource = readProjectFile('src', 'core', 'server', 'broadcast', 'screenBroadcastSignalingServer.ts');
+ const runtimeIndexSource = readProjectFile('src', 'core', 'server', 'launchServerWithFile.ts');
assert.match(runtimeSource, /broadcastEnabled: true/);
assert.match(runtimeSource, /signalingPath: '\/codexr-broadcast'/);
@@ -241,12 +241,12 @@ test('virtual screen runtime requests screen audio and exposes broadcast-aware s
});
test('analysis asset pipeline packages collaboration, screen, manager, and DOM shared runtimes together', () => {
- const fileParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
- const directoryParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
- const domParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'visualizeDOMParser.ts');
- const componentAsset = readProjectFile('src', 'code_analysis', 'engine', 'components', 'customComponents', 'virtualScreenComponentAsset.ts');
- const collaborationAsset = readProjectFile('src', 'code_analysis', 'engine', 'components', 'customComponents', 'collaborationComponentAsset.ts');
- const avatarAsset = readProjectFile('src', 'code_analysis', 'engine', 'components', 'customComponents', 'avatarComponentAsset.ts');
+ const fileParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
+ const directoryParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
+ const domParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'visualizeDOMParser.ts');
+ const componentAsset = readProjectFile('src', 'core', 'analysis', 'scene-assets', 'virtualScreenComponentAsset.ts');
+ const collaborationAsset = readProjectFile('src', 'core', 'analysis', 'scene-assets', 'collaborationComponentAsset.ts');
+ const avatarAsset = readProjectFile('src', 'core', 'analysis', 'scene-assets', 'avatarComponentAsset.ts');
assert.match(fileParser, /copyVirtualScreenRuntimeToOutput/);
assert.match(fileParser, /copyVirtualScreenManagerRuntimeToOutput/);
@@ -524,7 +524,7 @@ test('a controller drag claims its stick and owns the pointer for its duration',
test('the relay wire format matches the one the server relays and validates', () => {
// The server side is the compiled frame module the relay runs, not its
// source text: its constants are compared with the runtime's own.
- const frameModule = require(path.join(projectRoot, 'out', 'servers', 'runtime', 'broadcast', 'mediaFrame.js'));
+ const frameModule = require(path.join(projectRoot, 'out', 'core', 'server', 'broadcast', 'mediaFrame.js'));
const runtimeConstant = (name) => {
const match = runtimeSource.match(new RegExp(`const ${name} = (0x[0-9a-f]+|\\d+);`));
assert.ok(match, `${name} not found in the runtime`);
@@ -661,7 +661,7 @@ test('no viewer is ever refused: the capacity rejection is gone from both ends',
// Congestion is handled by thinning per viewer instead.
// The compiled relay policy is asked directly: a viewer is thinned by its
// own backlog, the top layer first, every delta past the second threshold.
- const { shouldThinFrame } = require(path.join(projectRoot, 'out', 'servers', 'runtime', 'broadcast', 'relayPolicy.js'));
+ const { shouldThinFrame } = require(path.join(projectRoot, 'out', 'core', 'server', 'broadcast', 'relayPolicy.js'));
assert.equal(shouldThinFrame(512 * 1024, 1), false);
assert.equal(shouldThinFrame(512 * 1024 + 1, 1), true);
assert.equal(shouldThinFrame(512 * 1024 + 1, 0), false);
@@ -718,7 +718,7 @@ test('a viewer only reaches live through its own first frame, never the sender s
assert.match(runtimeSource, /const alreadyLiveViewer = state\.broadcastRole === 'viewer' && state\.broadcastStatus === 'live';/);
// The server, for its part, parks early viewers instead of refusing them.
const serverSource = readProjectFile(
- 'src', 'servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.ts',
+ 'src', 'core', 'server', 'broadcast', 'screenBroadcastSignalingServer.ts',
);
assert.match(serverSource, /private parkViewer\(/);
assert.match(serverSource, /type: 'viewer-waiting'/);
@@ -740,7 +740,7 @@ test('sharing over someone else\'s live broadcast is refused up front, with no d
assert.match(runtimeSource, /case 'broadcast-denied':/);
assert.doesNotMatch(runtimeSource, /broadcast-replaced/);
const serverSource = readProjectFile(
- 'src', 'servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.ts',
+ 'src', 'core', 'server', 'broadcast', 'screenBroadcastSignalingServer.ts',
);
assert.match(serverSource, /type: 'broadcast-denied'/);
assertAbsent(readConcatenated(BROADCAST_SERVER_FILES), /broadcast-replaced/, { canary: /type: 'broadcast-denied'/ });
diff --git a/apps/vscode-extension/test/analysis/watcherExtensionContract.test.cjs b/apps/vscode-extension/test/analysis/watcherExtensionContract.test.cjs
index 86a2813b8..b10a1e7d9 100644
--- a/apps/vscode-extension/test/analysis/watcherExtensionContract.test.cjs
+++ b/apps/vscode-extension/test/analysis/watcherExtensionContract.test.cjs
@@ -7,8 +7,8 @@ const vm = require('node:vm');
const { createRequire } = require('node:module');
const { projectRoot, readSource, assertAbsent } = require('../helpers/sourceText.cjs');
-const { getAllSupportedExtensions } = require('../../out/utils/supportedLanguages.js');
-const { scanDirectoryScope } = require('../../out/code_analysis/engine/watchers/directorySnapshot.js');
+const { getAllSupportedExtensions } = require('../../out/core/analysis/languages/supportedLanguages.js');
+const { scanDirectoryScope } = require('../../out/core/analysis/watchers/directorySnapshot.js');
// The directory watcher and the metric contract disagree on which files are
// source code, and users' data depends on the disagreement.
@@ -29,7 +29,7 @@ const { scanDirectoryScope } = require('../../out/code_analysis/engine/watchers/
// copies of the contract, so that neither a cleanup of analysisFilePolicy.ts nor
// an "unreachable branch" deletion in the Python tools can move it silently.
-const POLICY_MODULE = path.join(projectRoot, 'out', 'code_analysis', 'engine', 'watchers', 'analysisFilePolicy.js');
+const POLICY_MODULE = path.join(projectRoot, 'out', 'core', 'analysis', 'watchers', 'analysisFilePolicy.js');
const PYTHON_CONTRACT_SOURCE = '../../backend/src/utils/metric_language_contract.py';
// This list IS the contract, so it is written out instead of derived: the
diff --git a/apps/vscode-extension/test/analysis/workspaceSnapshotModel.test.cjs b/apps/vscode-extension/test/analysis/workspaceSnapshotModel.test.cjs
index c9652a28c..c9f449a94 100644
--- a/apps/vscode-extension/test/analysis/workspaceSnapshotModel.test.cjs
+++ b/apps/vscode-extension/test/analysis/workspaceSnapshotModel.test.cjs
@@ -3,7 +3,7 @@ const assert = require('node:assert/strict');
const {
shouldSkipWorkspaceEntry,
sortWorkspaceEntries,
-} = require('../../out/code_analysis/services/workspaceSnapshotModel.js');
+} = require('../../out/features/analysis/workspace/workspaceSnapshotModel.js');
test('shouldSkipWorkspaceEntry filters hidden and generated entries', () => {
assert.equal(shouldSkipWorkspaceEntry('.git'), true);
diff --git a/apps/vscode-extension/test/analysis/xrAnalysisTableRuntime.test.cjs b/apps/vscode-extension/test/analysis/xrAnalysisTableRuntime.test.cjs
index 26d637db9..99e67464c 100644
--- a/apps/vscode-extension/test/analysis/xrAnalysisTableRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrAnalysisTableRuntime.test.cjs
@@ -1417,7 +1417,7 @@ test('runtime source reflects the render-first phase controller and geometry-rea
test('generated XR presets give the vertical controller enough headroom for tiny Babia geometry', () => {
const templateCharts = fs.readFileSync(
- path.join(projectRoot, 'src', 'babia_templates', 'charts', 'templateCharts.ts'),
+ path.join(projectRoot, 'src', 'core', 'charts', 'templateCharts.ts'),
'utf8',
);
const historicalRuntime = readAssembledRuntime('historical-comparison', 'historicalComparisonRuntime.js');
diff --git a/apps/vscode-extension/test/analysis/xrChartMappingUiRuntime.test.cjs b/apps/vscode-extension/test/analysis/xrChartMappingUiRuntime.test.cjs
index 1673b538d..15ee30714 100644
--- a/apps/vscode-extension/test/analysis/xrChartMappingUiRuntime.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrChartMappingUiRuntime.test.cjs
@@ -472,7 +472,7 @@ test('boats runtime base comes from the injected chart-base config, with a faith
// Drift guard: the runtime fallback must spell out the SAME construction
// the generator publishes (chartPresentation.BOATS_BASE_COMPONENT_ATTRIBUTES).
const chartPresentation = fs.readFileSync(
- path.join(projectRoot, 'src', 'babia_templates', 'charts', 'chartPresentation.ts'),
+ path.join(projectRoot, 'src', 'core', 'charts', 'chartPresentation.ts'),
'utf8',
);
for (const fragment of [
@@ -495,7 +495,7 @@ test('runtime presentation fallback mirrors the generator profiles field by fiel
// a fallback mirror for scenes generated before the config existed. Any
// drift between the two is a bug.
const { CHART_PRESENTATION_PROFILES } = require(path.join(
- projectRoot, 'out', 'babia_templates', 'charts', 'chartPresentation.js',
+ projectRoot, 'out', 'core', 'charts', 'chartPresentation.js',
));
const runtime = loadRuntime();
for (const [chartId, profile] of Object.entries(CHART_PRESENTATION_PROFILES)) {
diff --git a/apps/vscode-extension/test/analysis/xrDataSource.test.cjs b/apps/vscode-extension/test/analysis/xrDataSource.test.cjs
index d820261a2..fdb46515b 100644
--- a/apps/vscode-extension/test/analysis/xrDataSource.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrDataSource.test.cjs
@@ -11,21 +11,21 @@ function readProjectFile(...segments) {
}
test('file XR parser uses data.json for the XR template data entity', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
assert.match(source, /TemplateProcessor\.generateXRVisualization\([\s\S]*'data\.json'/);
assert.equal(source.includes('./data.json'), false);
});
test('directory XR parser keeps using data.json for standard and deep XR analysis', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
assert.match(source, /TemplateProcessor\.generateXRVisualization\([\s\S]*'data\.json'/);
});
test('XR boats tree builder follows the shared tree contract (normal-analysis convention in every mode)', () => {
- const source = readProjectFile('src', 'babia_templates', 'processing', 'placeholders', 'createStructure.ts');
- const chartPresentation = readProjectFile('src', 'babia_templates', 'charts', 'chartPresentation.ts');
+ const source = readProjectFile('src', 'core', 'charts', 'processing', 'placeholders', 'createStructure.ts');
+ const chartPresentation = readProjectFile('src', 'core', 'charts', 'chartPresentation.ts');
const sceneTemplate = readProjectFile('templates', 'xr', 'file', 'xr-visualization.html');
// One canonical contract — the normal analysis' original one: directory
@@ -50,7 +50,7 @@ test('XR boats tree builder follows the shared tree contract (normal-analysis co
});
test('XR mapping UI config includes live chart selector metadata', () => {
- const processor = readProjectFile('src', 'babia_templates', 'processing', 'templateProcessor.ts');
+ const processor = readProjectFile('src', 'core', 'charts', 'processing', 'templateProcessor.ts');
assert.match(processor, /availableCharts/);
assert.match(processor, /dimensionsByChart/);
@@ -62,7 +62,7 @@ test('XR mapping UI config includes live chart selector metadata', () => {
test('local XR server prevents stale runtime script caching', () => {
// Static serving lives in the extracted StaticAssetServer module.
- const server = readProjectFile('src', 'servers', 'runtime', 'http', 'staticAssets.ts');
+ const server = readProjectFile('src', 'core', 'server', 'http', 'staticAssets.ts');
assert.ok(server.includes('/\\.(:html|js|mjs|json|map)$/i.test(filePath)'));
assert.match(server, /Cache-Control'\] = 'no-store, no-cache, must-revalidate, max-age=0'/);
@@ -71,17 +71,17 @@ test('local XR server prevents stale runtime script caching', () => {
});
test('Babia Boats is the default XR file and directory chart while CodeXR Boats remains paused', () => {
- const config = readProjectFile('src', 'code_analysis', 'configuration', 'models', 'analysisConfiguration.ts');
+ const config = readProjectFile('src', 'core', 'analysis', 'configuration', 'analysisConfiguration.ts');
const profile = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'profile_configuration',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'profile-configuration',
'profileConfiguration.ts',
);
- const templateCharts = readProjectFile('src', 'babia_templates', 'charts', 'templateCharts.ts');
+ const templateCharts = readProjectFile('src', 'core', 'charts', 'templateCharts.ts');
assert.match(config, /chartTypeFile: 'boats'/);
assert.match(config, /chartTypeDirectory: 'boats'/);
@@ -92,8 +92,8 @@ test('Babia Boats is the default XR file and directory chart while CodeXR Boats
});
test('boats base construction is canonical: one object feeds the template, no duplicate remains', () => {
- const chartPresentation = readProjectFile('src', 'babia_templates', 'charts', 'chartPresentation.ts');
- const createChart = readProjectFile('src', 'babia_templates', 'processing', 'placeholders', 'createChart.ts');
+ const chartPresentation = readProjectFile('src', 'core', 'charts', 'chartPresentation.ts');
+ const createChart = readProjectFile('src', 'core', 'charts', 'processing', 'placeholders', 'createChart.ts');
assert.match(
chartPresentation,
@@ -119,7 +119,7 @@ test('boats base construction is canonical: one object feeds the template, no du
// The rendered template is BUILT from the profile object — assert on the
// compiled output, where drift would actually surface.
- const { chartTemplates } = require(path.join(projectRoot, 'out', 'babia_templates', 'charts', 'templateCharts.js'));
+ const { chartTemplates } = require(path.join(projectRoot, 'out', 'core', 'charts', 'templateCharts.js'));
const boats = chartTemplates.find((chart) => chart.id === 'boats');
assert.ok(boats);
assert.match(boats.htmlTemplate, /babia-boats="from: tree;/);
@@ -144,13 +144,13 @@ test('pie and donut XR chart templates render upright on the analysis table', ()
// demos stand them with rotation 90 0 0 on the entity, and the profile is
// the single source of that rotation for the generator AND the live
// chart switch.
- const { CHART_PRESENTATION_PROFILES } = require(path.join(projectRoot, 'out', 'babia_templates', 'charts', 'chartPresentation.js'));
+ const { CHART_PRESENTATION_PROFILES } = require(path.join(projectRoot, 'out', 'core', 'charts', 'chartPresentation.js'));
assert.equal(CHART_PRESENTATION_PROFILES.pie.rotation, '90 0 0');
assert.equal(CHART_PRESENTATION_PROFILES.donut.rotation, '90 0 0');
assert.equal(CHART_PRESENTATION_PROFILES.pie.fit, 'uniform');
assert.equal(CHART_PRESENTATION_PROFILES.donut.fit, 'uniform');
- const { chartTemplates } = require(path.join(projectRoot, 'out', 'babia_templates', 'charts', 'templateCharts.js'));
+ const { chartTemplates } = require(path.join(projectRoot, 'out', 'core', 'charts', 'templateCharts.js'));
const donut = chartTemplates.find((chart) => chart.id === 'donut');
const pie = chartTemplates.find((chart) => chart.id === 'pie');
assert.ok(donut);
@@ -177,7 +177,7 @@ test('XR template keeps babia-queryjson bound to the injected DATA_SOURCE placeh
test('XR template owns the initial chart through a CodeXR analysis surface', () => {
const template = readProjectFile('templates', 'xr', 'file', 'xr-visualization.html');
- const processor = readProjectFile('src', 'babia_templates', 'processing', 'templateProcessor.ts');
+ const processor = readProjectFile('src', 'core', 'charts', 'processing', 'templateProcessor.ts');
const modeRuntime = readAssembledRuntime('analysis-mode', 'analysisModeRuntime.js');
assert.match(template, /id="codexrAnalysisSurface"[\s\S]*data-codexr-analysis-surface="true"/);
@@ -252,8 +252,8 @@ test('XR and DOM templates pin aframe-babia-components to the supported version'
});
test('XR parsers include CodeXR room runtime in generated assets', () => {
- const fileParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'fileXRParser.ts');
- const directoryParser = readProjectFile('src', 'code_analysis', 'engine', 'parsers', 'directoryXRParser.ts');
+ const fileParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'fileXRParser.ts');
+ const directoryParser = readProjectFile('src', 'core', 'analysis', 'parsers', 'directoryXRParser.ts');
assert.match(fileParser, /copyCodeXrRoomAssetsToOutput/);
assert.match(fileParser, /copyCodeXrCommonRuntimeToOutput/);
@@ -280,7 +280,7 @@ test('XR parsers include CodeXR room runtime in generated assets', () => {
assert.doesNotMatch(directoryParser, /\[CODEXR_VISUAL_STYLE_RUNTIME_OUTPUT_NAME, readCodeXrVisualStyleRuntimeContent\]/);
// The abandoned visual-style feature was deleted in 1.2.1 (W2-55): neither
// its asset module nor its runtime may come back unwired.
- assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'code_analysis', 'engine', 'components', 'customComponents', 'visualStyleComponentAsset.ts')), false);
+ assert.equal(fs.existsSync(path.join(projectRoot, 'src', 'core', 'analysis', 'scene-assets', 'visualStyleComponentAsset.ts')), false);
assert.equal(fs.existsSync(path.join(projectRoot, 'templates', 'components', 'common', 'codexrVisualStyleRuntime.js')), false);
assert.doesNotMatch(directoryParser, /\[CODEXR_BOATS_RUNTIME_OUTPUT_NAME, readCodeXrBoatsRuntimeContent\]/);
assert.doesNotMatch(directoryParser, /codeXrBoatsTextures\.forEach\(\(asset\) => \{/);
@@ -295,7 +295,7 @@ test('XR parsers include CodeXR room runtime in generated assets', () => {
});
test('all XR charts share the containment preset', () => {
- const templateCharts = readProjectFile('src', 'babia_templates', 'charts', 'templateCharts.ts');
+ const templateCharts = readProjectFile('src', 'core', 'charts', 'templateCharts.ts');
assert.match(templateCharts, /export const XR_TABLE_BOOTSTRAP_PLANAR_MAX = 0\.84;/);
assert.match(templateCharts, /export const XR_TABLE_STEADY_PLANAR_MIN = 0\.78;/);
@@ -307,7 +307,7 @@ test('all XR charts share the containment preset', () => {
assert.match(templateCharts, /function buildChartEntityHtml\(/);
const sourceMatches = templateCharts.match(/codexr-chart-containment="\$\{UNIVERSAL_XR_TABLE_SETTINGS\}"/g) || [];
assert.equal(sourceMatches.length, 1);
- const { chartTemplates } = require(path.join(projectRoot, 'out', 'babia_templates', 'charts', 'templateCharts.js'));
+ const { chartTemplates } = require(path.join(projectRoot, 'out', 'core', 'charts', 'templateCharts.js'));
assert.equal(chartTemplates.length, 8);
for (const chart of chartTemplates) {
assert.ok(chart.htmlTemplate.includes('codexr-chart-containment="enabled: true;'), `${chart.id} carries the containment preset`);
diff --git a/apps/vscode-extension/test/analysis/xrFieldSchemaIntegration.test.cjs b/apps/vscode-extension/test/analysis/xrFieldSchemaIntegration.test.cjs
index bbd4be16c..09cc477ae 100644
--- a/apps/vscode-extension/test/analysis/xrFieldSchemaIntegration.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrFieldSchemaIntegration.test.cjs
@@ -30,29 +30,28 @@ test('XR schema registry includes the new file and directory metrics used by the
test('shared dimension mapping core consumes the schema service instead of hardcoded field lists', () => {
const sharedCore = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_shared',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
'sharedDimensionMappingSettingCore.ts',
);
const fileSetting = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_file',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-file',
'dimensionMappingFile.ts',
);
const directorySetting = readProjectFile(
'src',
- 'code_analysis',
- 'views',
- 'subsections',
- 'analysis_settings',
- 'dimension_mapping_directory',
+ 'features',
+ 'analysis',
+ 'sections',
+ 'settings',
+ 'dimension-mapping-directory',
'dimensionMappingDirectory.ts',
);
@@ -69,19 +68,21 @@ test('shared dimension mapping core consumes the schema service instead of hardc
test('XR schema consumers support text-only dimensions for categorical chart axes', () => {
const schemaService = readProjectFile(
'src',
- 'code_analysis',
- 'services',
+ 'core',
+ 'analysis',
+ 'python',
'xrFieldSchemaService.ts',
);
const templateProcessor = readProjectFile(
'src',
- 'babia_templates',
+ 'core',
+ 'charts',
'processing',
'templateProcessor.ts',
);
const templateCharts = readProjectFile(
'src',
- 'babia_templates',
+ 'core',
'charts',
'templateCharts.ts',
);
@@ -100,7 +101,7 @@ test('XR schema consumers support text-only dimensions for categorical chart axe
});
test('XR launcher validates mappings with schema-provided field types before execution', () => {
- const source = readProjectFile('src', 'code_analysis', 'engine', 'launchers', 'launcherXRAnalysis.ts');
+ const source = readProjectFile('src', 'core', 'analysis', 'launchers', 'launcherXRAnalysis.ts');
assert.match(source, /getFieldTypeMap\(analysisType, true\)/);
assert.match(source, /Python field schema is not available yet/);
@@ -108,8 +109,8 @@ test('XR launcher validates mappings with schema-provided field types before exe
});
test('boats chart metadata keeps numeric-only area and height with any-valued color', () => {
- const templateCharts = readProjectFile('src', 'babia_templates', 'charts', 'templateCharts.ts');
- const createChart = readProjectFile('src', 'babia_templates', 'processing', 'placeholders', 'createChart.ts');
+ const templateCharts = readProjectFile('src', 'core', 'charts', 'templateCharts.ts');
+ const createChart = readProjectFile('src', 'core', 'charts', 'processing', 'placeholders', 'createChart.ts');
assert.doesNotMatch(templateCharts, /id: 'codexr-boats'/);
diff --git a/apps/vscode-extension/test/analysis/xrMappingUiModel.test.cjs b/apps/vscode-extension/test/analysis/xrMappingUiModel.test.cjs
index a6f53bf51..cd1fdc898 100644
--- a/apps/vscode-extension/test/analysis/xrMappingUiModel.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrMappingUiModel.test.cjs
@@ -76,8 +76,8 @@ function buildCases(chartTemplates) {
function capture() {
const fake = createFakeVscode();
return withFakeVscode(fake, ({ requireOut }) => {
- const { TemplateProcessor } = requireOut('babia_templates/processing/templateProcessor.js');
- const { chartTemplates } = requireOut('babia_templates/charts/templateCharts.js');
+ const { TemplateProcessor } = requireOut('core/charts/processing/templateProcessor.js');
+ const { chartTemplates } = requireOut('core/charts/templateCharts.js');
return buildCases(chartTemplates).map((entry) => {
const result = TemplateProcessor.buildBabiaUiPlaceholders(
entry.chartId,
diff --git a/apps/vscode-extension/test/analysis/xrRuntimeManifestAsymmetry.test.cjs b/apps/vscode-extension/test/analysis/xrRuntimeManifestAsymmetry.test.cjs
index de48231b0..055227783 100644
--- a/apps/vscode-extension/test/analysis/xrRuntimeManifestAsymmetry.test.cjs
+++ b/apps/vscode-extension/test/analysis/xrRuntimeManifestAsymmetry.test.cjs
@@ -6,7 +6,7 @@ const path = require('node:path');
const { projectRoot, readSource } = require('../helpers/sourceText.cjs');
// The asset family never imports `vscode`, so the compiled barrel loads as it is.
-const components = require('../../out/code_analysis/engine/components/customComponents/index.js');
+const components = require('../helpers/sceneAssetModules.cjs').loadSceneAssetModules();
/*
* fileXRParser.ts copies a run of runtime assets into the scene folder and then
@@ -43,8 +43,8 @@ const components = require('../../out/code_analysis/engine/components/customComp
* the F5 flow (open a file analysis and a directory analysis in XR).
*/
-const FILE_XR_PARSER = 'src/code_analysis/engine/parsers/fileXRParser.ts';
-const DIRECTORY_XR_PARSER = 'src/code_analysis/engine/parsers/directoryXRParser.ts';
+const FILE_XR_PARSER = 'src/core/analysis/parsers/fileXRParser.ts';
+const DIRECTORY_XR_PARSER = 'src/core/analysis/parsers/directoryXRParser.ts';
const RUNTIME_ASSETS_COPIED_BY_FILE_XR = [
'analysisModeRuntime.js',
diff --git a/apps/vscode-extension/test/baseline/featureSurface.cjs b/apps/vscode-extension/test/baseline/featureSurface.cjs
index a0f93861c..0a270ffea 100644
--- a/apps/vscode-extension/test/baseline/featureSurface.cjs
+++ b/apps/vscode-extension/test/baseline/featureSurface.cjs
@@ -92,10 +92,10 @@ async function collectRuntime() {
let chartTypes = [];
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- requireOut('commands/index.js').registerAllCommands(context);
+ requireOut('app/commands/registerAllCommands.js').registerAllCommands(context);
await new Promise((resolve) => setImmediate(resolve));
await new Promise((resolve) => setImmediate(resolve));
- chartTypes = requireOut('babia_templates/charts/templateCharts.js').chartTemplates
+ chartTypes = requireOut('core/charts/templateCharts.js').chartTemplates
.map((chart) => `${chart.id} | ${chart.name}`);
});
} finally {
@@ -110,7 +110,7 @@ async function collectRuntime() {
function collectSourceContracts() {
// In-scene analysis modes the XR controller can switch to.
- const refresh = readText(path.join(projectRoot, 'src', 'code_analysis', 'refresh', 'analysisRefreshCoordinator.ts'));
+ const refresh = readText(path.join(projectRoot, 'src', 'core', 'analysis', 'refresh', 'analysisRefreshCoordinator.ts'));
const modeUnion = refresh.match(/export type AnalysisRefreshMode\s*=([^;]+);/);
if (!modeUnion) {
throw new Error('AnalysisRefreshMode not found: retarget featureSurface.cjs to where it moved');
@@ -148,8 +148,8 @@ function collectSourceContracts() {
/** Python entry points the extension spawns directly (executePython.ts, gitRevisionExporter.ts). */
function collectPythonEntryPoints() {
const sources = [
- path.join(projectRoot, 'src', 'code_analysis', 'engine', 'utils', 'executePython.ts'),
- path.join(projectRoot, 'src', 'code_analysis', 'export', 'gitRevisionExporter.ts'),
+ path.join(projectRoot, 'src', 'core', 'analysis', 'python', 'executePython.ts'),
+ path.join(projectRoot, 'src', 'core', 'export', 'gitRevisionExporter.ts'),
].map(readText).join('\n');
const scripts = [...sources.matchAll(/['"]([A-Za-z_/]+\.py)['"]/g)].map((m) => m[1]);
// Also path.join('dir', 'script.py') spellings.
diff --git a/apps/vscode-extension/test/collaboration/avatarIdSync.test.cjs b/apps/vscode-extension/test/collaboration/avatarIdSync.test.cjs
index 9378e142d..3f9990624 100644
--- a/apps/vscode-extension/test/collaboration/avatarIdSync.test.cjs
+++ b/apps/vscode-extension/test/collaboration/avatarIdSync.test.cjs
@@ -31,7 +31,7 @@ function requireOut(relativePath) {
}
function loadExtensionModel() {
- const model = requireOut('collaboration/model/collaborationProfile.js');
+ const model = requireOut('core/collaboration/collaborationProfile.js');
const palette = model.COLLABORATION_AVATARS.map((avatar) => avatar.id);
// Every test below compares against this list or iterates it: an empty or
@@ -121,7 +121,7 @@ function joinRoom(socket, roomId) {
/** Runs `body` against a live room server and always tears the sockets and the listener down. */
async function withRoomServer(options, body) {
- const { CollaborationRoomServer } = requireOut('servers/runtime/collaboration/collaborationRoomServer.js');
+ const { CollaborationRoomServer } = requireOut('core/server/collaboration/collaborationRoomServer.js');
const server = http.createServer((_req, res) => {
res.writeHead(200);
res.end('ok');
diff --git a/apps/vscode-extension/test/commands/commandContributions.test.cjs b/apps/vscode-extension/test/commands/commandContributions.test.cjs
index 5feabd18d..c50bc3cb7 100644
--- a/apps/vscode-extension/test/commands/commandContributions.test.cjs
+++ b/apps/vscode-extension/test/commands/commandContributions.test.cjs
@@ -29,7 +29,7 @@ function loadCommandSurface() {
console.log = () => {};
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- requireOut('commands/index.js').registerAllCommands(context);
+ requireOut('app/commands/registerAllCommands.js').registerAllCommands(context);
// Let the storage loads that registration kicks off settle inside the scope.
await new Promise((resolve) => setImmediate(resolve));
await new Promise((resolve) => setImmediate(resolve));
diff --git a/apps/vscode-extension/test/directory_analysis/directoryReAnalyzer.test.cjs b/apps/vscode-extension/test/directory_analysis/directoryReAnalyzer.test.cjs
index 9cf958ecb..10503d405 100644
--- a/apps/vscode-extension/test/directory_analysis/directoryReAnalyzer.test.cjs
+++ b/apps/vscode-extension/test/directory_analysis/directoryReAnalyzer.test.cjs
@@ -14,7 +14,7 @@ const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'tes
// clients and shows the status-bar count. Runs the real class from out/ with
// its Python runner and SSE notification stubbed.
-const MODULE = 'code_analysis/engine/watchers/directoryReAnalyzer.js';
+const MODULE = 'core/analysis/watchers/directoryReAnalyzer.js';
function entry(filePath, extra = {}) {
return { filePath, fileName: path.basename(filePath), status: 'success', totalLines: 10, codeLines: 8, language: 'Python', ...extra };
@@ -33,7 +33,7 @@ async function apply({ data, changeSet, options, reanalysis = (files) => files.m
return await withFakeVscode(fake, async ({ requireOut }) => {
const { DirectoryReAnalyzer } = requireOut(MODULE);
// The instance the analyzer already loaded (requireOut would load a fresh copy).
- const { analysisUpdateEvents } = require(path.join(projectRoot, 'out', 'code_analysis', 'historical', 'analysisUpdateEvents.js'));
+ const { analysisUpdateEvents } = require(path.join(projectRoot, 'out', 'core', 'history', 'analysisUpdateEvents.js'));
const events = [];
const off = analysisUpdateEvents.on((event) => events.push({ sessionId: event.sessionId, targetPath: event.targetPath }));
const analyzer = Object.create(DirectoryReAnalyzer.prototype);
diff --git a/apps/vscode-extension/test/directory_analysis/directoryReanalysisData.test.cjs b/apps/vscode-extension/test/directory_analysis/directoryReanalysisData.test.cjs
index 229ab9d72..83d547ad9 100644
--- a/apps/vscode-extension/test/directory_analysis/directoryReanalysisData.test.cjs
+++ b/apps/vscode-extension/test/directory_analysis/directoryReanalysisData.test.cjs
@@ -14,7 +14,7 @@ const {
resolveTrackedSystemPath,
upsertLivePanelFiles,
upsertXRFiles,
-} = require('../../out/code_analysis/engine/watchers/directoryReanalysisData.js');
+} = require('../../out/core/analysis/watchers/directoryReanalysisData.js');
function createTempDir(prefix) {
return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
diff --git a/apps/vscode-extension/test/helpers/fakeVscode.cjs b/apps/vscode-extension/test/helpers/fakeVscode.cjs
index 61386c633..6b35b209f 100644
--- a/apps/vscode-extension/test/helpers/fakeVscode.cjs
+++ b/apps/vscode-extension/test/helpers/fakeVscode.cjs
@@ -583,7 +583,7 @@ function isCompiledModule(filename) {
return filename === compiledRoot || filename.startsWith(compiledRoot + path.sep);
}
-const compiledLogSink = path.join(compiledRoot, 'core', 'logging', 'sink.js');
+const compiledLogSink = path.join(compiledRoot, 'platform', 'logging', 'sink.js');
/**
* The one exception to "modules cached before the scope are left alone": the
@@ -601,7 +601,7 @@ function evictLogSink() {
* `fake.vscode`. The callback may be sync or async; either way `Module._load`
* is restored afterwards and every out/ module loaded meanwhile is evicted from
* `require.cache`, so nothing bound to the fake survives the call. The log
- * sink (out/core/logging/sink.js) is always loaded fresh inside the scope.
+ * sink (out/platform/logging/sink.js) is always loaded fresh inside the scope.
*/
function withFakeVscode(fake, callback) {
if (!fake || !fake.vscode) {
diff --git a/apps/vscode-extension/test/helpers/fakeVscode.test.cjs b/apps/vscode-extension/test/helpers/fakeVscode.test.cjs
index 15f84b842..5985b9c2c 100644
--- a/apps/vscode-extension/test/helpers/fakeVscode.test.cjs
+++ b/apps/vscode-extension/test/helpers/fakeVscode.test.cjs
@@ -11,7 +11,7 @@ const {
} = require('./fakeVscode.cjs');
const projectRoot = path.resolve(__dirname, '..', '..');
-const compiledLogger = path.join(projectRoot, 'out', 'core', 'logging', 'logger.js');
+const compiledLogger = path.join(projectRoot, 'out', 'platform', 'logging', 'logger.js');
function requireVscodeOutsideTheScope() {
// Resolved through Module._load like any other request: once the scope is
@@ -36,7 +36,7 @@ test('a compiled module that imports vscode loads and runs inside the scope', ()
try {
withFakeVscode(fake, ({ requireOut }) => {
- const { CodeXRLogger } = requireOut('core/logging/logger.js');
+ const { CodeXRLogger } = requireOut('platform/logging/logger.js');
CodeXRLogger.initialize(context);
CodeXRLogger.getLogger('PROBE').warn('loaded under the fake');
});
@@ -56,7 +56,7 @@ test('the scope always closes: the hook is restored and compiled modules are evi
// sync callback
withFakeVscode(fake, ({ requireOut }) => {
- requireOut('core/logging/logger.js');
+ requireOut('platform/logging/logger.js');
assert.ok(require.cache[compiledLogger], 'cached while the scope is open');
});
assert.equal(require.cache[compiledLogger], undefined, 'evicted: a singleton bound to a dead fake must not reach the next suite');
@@ -65,7 +65,7 @@ test('the scope always closes: the hook is restored and compiled modules are evi
// async callback: cleanup waits for the promise
let releaseCallback;
const pending = withFakeVscode(fake, async ({ requireOut }) => {
- requireOut('core/logging/logger.js');
+ requireOut('platform/logging/logger.js');
await new Promise((resolve) => { releaseCallback = resolve; });
return 'done';
});
@@ -83,11 +83,11 @@ test('the scope always closes: the hook is restored and compiled modules are evi
});
test('modules that were already cached before the scope are left alone', () => {
- const policyPath = path.join(projectRoot, 'out', 'core', 'logging', 'logPolicy.js');
+ const policyPath = path.join(projectRoot, 'out', 'platform', 'logging', 'logPolicy.js');
const policyBefore = require(policyPath);
withFakeVscode(createFakeVscode(), ({ requireOut }) => {
- requireOut('core/logging/logger.js');
+ requireOut('platform/logging/logger.js');
});
assert.equal(require(policyPath), policyBefore, 'a vscode-free module another suite holds is not reloaded behind its back');
@@ -121,7 +121,7 @@ test('strict mode still loads a compiled module that does `import * as vscode`',
try {
withFakeVscode(fake, ({ requireOut }) => {
- const { CodeXRLogger } = requireOut('core/logging/logger.js');
+ const { CodeXRLogger } = requireOut('platform/logging/logger.js');
CodeXRLogger.initialize(context);
CodeXRLogger.getLogger('STRICT').error('loaded');
});
@@ -249,7 +249,7 @@ test('fakeExtensionContext gives real storage directories and isolated state', a
});
test('the log sink is the exception: every scope loads it fresh, so a channel never receives lines buffered outside', () => {
- const sinkPath = path.join(projectRoot, 'out', 'core', 'logging', 'sink.js');
+ const sinkPath = path.join(projectRoot, 'out', 'platform', 'logging', 'sink.js');
const fake = createFakeVscode();
const context = fakeExtensionContext({ extensionMode: ExtensionMode.Development });
const original = console.warn;
@@ -257,7 +257,7 @@ test('the log sink is the exception: every scope loads it fresh, so a channel ne
try {
require(sinkPath).getLogger('OUTSIDE').warn('buffered outside any scope');
withFakeVscode(fake, ({ requireOut }) => {
- const { CodeXRLogger } = requireOut('core/logging/logger.js');
+ const { CodeXRLogger } = requireOut('platform/logging/logger.js');
CodeXRLogger.initialize(context);
});
} finally {
diff --git a/apps/vscode-extension/test/helpers/runtimeAssembly.cjs b/apps/vscode-extension/test/helpers/runtimeAssembly.cjs
index 0fb3665a0..fc708ba57 100644
--- a/apps/vscode-extension/test/helpers/runtimeAssembly.cjs
+++ b/apps/vscode-extension/test/helpers/runtimeAssembly.cjs
@@ -1,5 +1,5 @@
/**
- * Test-side mirror of src/.../customComponents/runtimeAssembly.ts.
+ * Test-side mirror of src/core/analysis/scene-assets/runtimeAssembly.ts.
*
* Multi-part runtimes live as focused module files under
* templates/components/codexr/// with their
diff --git a/apps/vscode-extension/test/helpers/sceneAssetModules.cjs b/apps/vscode-extension/test/helpers/sceneAssetModules.cjs
new file mode 100644
index 000000000..b23303437
--- /dev/null
+++ b/apps/vscode-extension/test/helpers/sceneAssetModules.cjs
@@ -0,0 +1,50 @@
+/**
+ * The compiled scene-asset modules, merged into one namespace.
+ *
+ * Until #55 dissolved it, a re-export barrel (`customComponents/index.ts`)
+ * gave the tests this namespace; they look entry points up by name
+ * (`components[token]`), so they keep one object, built here from the same
+ * 20 modules the barrel re-exported. The folder is named once, in
+ * SCENE_ASSETS_OUT.
+ */
+const path = require('node:path');
+
+const projectRoot = path.resolve(__dirname, '..', '..');
+const SCENE_ASSETS_OUT = path.join(projectRoot, 'out', 'core', 'analysis', 'scene-assets');
+
+const SCENE_ASSET_MODULES = [
+ 'virtualScreenComponentAsset',
+ 'commonComponentAsset',
+ 'commonGitRefPickerComponentAsset',
+ 'collaborationComponentAsset',
+ 'avatarComponentAsset',
+ 'codexrRoomComponentAsset',
+ 'pointerPolicyComponentAsset',
+ 'immersiveRigComponentAsset',
+ 'xrChartMappingUiComponentAsset',
+ 'xrChartDebugComponentAsset',
+ 'analysisTableComponentAsset',
+ 'analysisModeComponentAsset',
+ 'historicalComparisonComponentAsset',
+ 'projectEvolutionComponentAsset',
+ 'dependencyGraphComponentAsset',
+ 'guideScreenComponentAsset',
+ 'logoComponentAsset',
+ 'renderBudgetComponentAsset',
+ 'dependencyVisualBudgetComponentAsset',
+ 'codexrDebugComponentAsset',
+];
+
+function loadSceneAssetModules() {
+ const merged = {};
+ for (const name of SCENE_ASSET_MODULES) {
+ for (const [key, value] of Object.entries(require(path.join(SCENE_ASSETS_OUT, `${name}.js`)))) {
+ if (!(key in merged)) {
+ merged[key] = value;
+ }
+ }
+ }
+ return merged;
+}
+
+module.exports = { loadSceneAssetModules, SCENE_ASSETS_OUT, SCENE_ASSET_MODULES };
diff --git a/apps/vscode-extension/test/helpers/sourceText.test.cjs b/apps/vscode-extension/test/helpers/sourceText.test.cjs
index b0ec945fd..7479429ac 100644
--- a/apps/vscode-extension/test/helpers/sourceText.test.cjs
+++ b/apps/vscode-extension/test/helpers/sourceText.test.cjs
@@ -25,7 +25,7 @@ test('readSource names the fix when a pinned file is gone', () => {
});
test('readConcatenated follows code across several files', () => {
- const haystack = readConcatenated(['src/extension.ts', 'src/commands/index.ts']);
+ const haystack = readConcatenated(['src/extension.ts', 'src/app/commands/registerAllCommands.ts']);
assert.match(haystack, /export (async )?function activate/);
assert.match(haystack, /assertUniqueCommandIds/);
@@ -33,16 +33,16 @@ test('readConcatenated follows code across several files', () => {
});
test('collectFiles and readSourceTree walk a directory in a stable order', () => {
- const files = collectFiles('src/core', { extensions: ['.ts'] });
+ const files = collectFiles('src/platform', { extensions: ['.ts'] });
- assert.ok(files.includes('src/core/logging/logger.ts'));
+ assert.ok(files.includes('src/platform/logging/logger.ts'));
assert.deepEqual(files, files.slice().sort());
assert.equal(
- collectFiles('src/core', { extensions: ['.ts'], exclude: (file) => file.includes('/logging/') })
+ collectFiles('src/platform', { extensions: ['.ts'], exclude: (file) => file.includes('/logging/') })
.some((file) => file.includes('/logging/')),
false,
);
- assert.match(readSourceTree('src/core/logging', { extensions: ['.ts'] }), /class CodeXRLogger/);
+ assert.match(readSourceTree('src/platform/logging', { extensions: ['.ts'] }), /class CodeXRLogger/);
});
test('assertAbsent refuses to pass against the wrong haystack', () => {
diff --git a/apps/vscode-extension/test/logging/logPolicy.test.cjs b/apps/vscode-extension/test/logging/logPolicy.test.cjs
index 69585a1ae..f27e2de8c 100644
--- a/apps/vscode-extension/test/logging/logPolicy.test.cjs
+++ b/apps/vscode-extension/test/logging/logPolicy.test.cjs
@@ -1,6 +1,6 @@
const test = require('node:test');
const assert = require('node:assert/strict');
-const { isVerboseLoggingEnabled, shouldEmitLog } = require('../../out/core/logging/logPolicy.js');
+const { isVerboseLoggingEnabled, shouldEmitLog } = require('../../out/platform/logging/logPolicy.js');
test('verbose logging is always enabled in development mode', () => {
assert.equal(isVerboseLoggingEnabled('development', false), true);
diff --git a/apps/vscode-extension/test/logging/logger.test.cjs b/apps/vscode-extension/test/logging/logger.test.cjs
index de31915c3..6ed574d2c 100644
--- a/apps/vscode-extension/test/logging/logger.test.cjs
+++ b/apps/vscode-extension/test/logging/logger.test.cjs
@@ -22,8 +22,8 @@ function withLogger(options, scenario) {
try {
withFakeVscode(fake, ({ requireOut }) => {
// The sink holds the logging state; the fake scope loads it fresh.
- const sink = requireOut('core/logging/sink.js');
- const { CodeXRLogger } = requireOut('core/logging/logger.js');
+ const sink = requireOut('platform/logging/sink.js');
+ const { CodeXRLogger } = requireOut('platform/logging/logger.js');
scenario({ CodeXRLogger, fake, context, sink });
});
} finally {
diff --git a/apps/vscode-extension/test/packaging/packagedLayout.test.cjs b/apps/vscode-extension/test/packaging/packagedLayout.test.cjs
index 8fa8e72f0..06d1f5471 100644
--- a/apps/vscode-extension/test/packaging/packagedLayout.test.cjs
+++ b/apps/vscode-extension/test/packaging/packagedLayout.test.cjs
@@ -235,18 +235,18 @@ test('the compiled resolvers find what they need in a materialized packaged layo
try {
const { pythonEntryPoints } = await collectSurface();
const result = await withFakeVscode(createFakeVscode(), async ({ requireOut }) => {
- const { resolveBackendScriptPath } = requireOut('code_analysis/engine/utils/backendScriptPath.js');
+ const { resolveBackendScriptPath } = requireOut('core/analysis/python/backendScriptPath.js');
const scripts = pythonEntryPoints.map((entry) => resolveBackendScriptPath(context, entry.split(' | ')[0]));
const { assertCodeXrCommonRuntimeSourceExists } = requireOut(
- 'code_analysis/engine/components/customComponents/commonComponentAsset.js',
+ 'core/analysis/scene-assets/commonComponentAsset.js',
);
const commonRuntime = assertCodeXrCommonRuntimeSourceExists(extensionRoot);
- const { ExampleLauncher } = requireOut('babia_examples/runtime/exampleLauncher.js');
+ const { ExampleLauncher } = requireOut('features/examples/services/exampleLauncher.js');
const examples = await new ExampleLauncher(context).scanExamples();
- const { SaveFiles } = requireOut('code_analysis/engine/utils/saveFiles.js');
+ const { SaveFiles } = requireOut('core/analysis/utils/saveFiles.js');
const outputDirectory = await new SaveFiles().saveFilesToStorage(
new Map([['index.html', '']]),
'fileAnalysis',
diff --git a/apps/vscode-extension/test/packaging/resourceConsumers.test.cjs b/apps/vscode-extension/test/packaging/resourceConsumers.test.cjs
index 79556c1c7..6147131d8 100644
--- a/apps/vscode-extension/test/packaging/resourceConsumers.test.cjs
+++ b/apps/vscode-extension/test/packaging/resourceConsumers.test.cjs
@@ -27,10 +27,10 @@ const packageJson = JSON.parse(readSource('package.json'));
// The compiled consumers this suite EXECUTES. When one of them moves, retarget
// the constant; do not fall back to reading its source, which cannot tell a
// live lookup from a table that nobody calls.
-const PROFILE_MANAGER_MODULE = 'collaboration/services/collaborationProfileManager.js';
-const LANGUAGE_TABLE_MODULE = 'utils/languageMetadata.js';
-const LANGUAGE_ICON_MODULE = 'code_analysis/utils/workspaceFileScanner.js';
-const SAVE_FILES_MODULE = 'code_analysis/engine/utils/saveFiles.js';
+const PROFILE_MANAGER_MODULE = 'core/collaboration/collaborationProfileManager.js';
+const LANGUAGE_TABLE_MODULE = 'core/analysis/languages/languageMetadata.js';
+const LANGUAGE_ICON_MODULE = 'features/analysis/workspace/workspaceFileScanner.js';
+const SAVE_FILES_MODULE = 'core/analysis/utils/saveFiles.js';
/**
* Ships, but nothing reaches it. Every entry is debt and carries its reason.
diff --git a/apps/vscode-extension/test/python_env/analysisRunnerPin.test.cjs b/apps/vscode-extension/test/python_env/analysisRunnerPin.test.cjs
index f4d642ab9..1306fc477 100644
--- a/apps/vscode-extension/test/python_env/analysisRunnerPin.test.cjs
+++ b/apps/vscode-extension/test/python_env/analysisRunnerPin.test.cjs
@@ -8,7 +8,7 @@ const { readPinnedLizardRequirement } = require(path.join(projectRoot, '..', '..
const {
CODEXR_PYTHON_PACKAGES,
getPinnedPythonRequirement,
-} = require(path.join(projectRoot, 'out', 'python_env', 'runtime', 'pythonPackageManifest.js'));
+} = require(path.join(projectRoot, 'out', 'core', 'python-env', 'pythonPackageManifest.js'));
test('the analysis test runner measures fixtures with the lizard version users get', () => {
// The extension installs an exact lizard into the managed venv. If the
diff --git a/apps/vscode-extension/test/python_env/pythonEnvUtils.test.cjs b/apps/vscode-extension/test/python_env/pythonEnvUtils.test.cjs
index f339786f4..66fb7ee9b 100644
--- a/apps/vscode-extension/test/python_env/pythonEnvUtils.test.cjs
+++ b/apps/vscode-extension/test/python_env/pythonEnvUtils.test.cjs
@@ -1,6 +1,6 @@
const test = require('node:test');
const assert = require('node:assert/strict');
-const { PythonEnvUtils } = require('../../out/python_env/utils/pythonEnvUtils.js');
+const { PythonEnvUtils } = require('../../out/core/python-env/pythonEnvUtils.js');
function normalizePath(value) {
return value.replace(/\\/g, '/');
diff --git a/apps/vscode-extension/test/runners/run-xr-immersive-harness.cjs b/apps/vscode-extension/test/runners/run-xr-immersive-harness.cjs
index 40dec012a..29aa247de 100644
--- a/apps/vscode-extension/test/runners/run-xr-immersive-harness.cjs
+++ b/apps/vscode-extension/test/runners/run-xr-immersive-harness.cjs
@@ -132,7 +132,7 @@ assert.match(viewLifecycle, /setAttribute\?\.\('position', '0\.07 1\.75 -10\.75'
// The mapping panel never opts into hiding on AR.
const templateProcessor = fs.readFileSync(
- path.join(projectRoot, 'src', 'babia_templates', 'processing', 'templateProcessor.ts'),
+ path.join(projectRoot, 'src', 'core', 'charts', 'processing', 'templateProcessor.ts'),
'utf8',
);
assert.match(templateProcessor, /hideOnEnterAr: false/);
diff --git a/apps/vscode-extension/test/servers/activeServerRegistry.test.cjs b/apps/vscode-extension/test/servers/activeServerRegistry.test.cjs
index 77bcfc2ac..6dab45c24 100644
--- a/apps/vscode-extension/test/servers/activeServerRegistry.test.cjs
+++ b/apps/vscode-extension/test/servers/activeServerRegistry.test.cjs
@@ -2,7 +2,7 @@
/**
* Characterization of the active-server registry's change event
- * (active_servers/registry/activeServerRegistry.ts), through compiled out/
+ * (core/server/registry/activeServerRegistry.ts), through compiled out/
* code. Three consumers subscribe to `onRegistryChange` (the ACTIVE SERVERS
* tree, the analysis watcher integration and the remote-access manager) and
* rely on the VS Code `Event` contract: `(listener, thisArgs?, disposables?)`
@@ -16,7 +16,7 @@ const path = require('node:path');
const { createFakeVscode, withFakeVscode } = require('../helpers/fakeVscode.cjs');
-const REGISTRY = 'active_servers/registry/activeServerRegistry.js';
+const REGISTRY = 'core/server/registry/activeServerRegistry.js';
const projectRoot = path.resolve(__dirname, '..', '..');
function loadRegistry(callback) {
@@ -134,7 +134,7 @@ test('registry dispose: clears the servers without delivering registryCleared',
test('registry events: a throwing listener is reported and does not stop the others', () => {
withFakeVscode(createFakeVscode(), ({ requireOut }) => {
- const { observeLogEntries } = requireOut('core/logging/sink.js');
+ const { observeLogEntries } = requireOut('platform/logging/sink.js');
const { ActiveServerRegistry } = requireOut(REGISTRY);
const registry = ActiveServerRegistry.getInstance();
const errors = [];
diff --git a/apps/vscode-extension/test/servers/activeServersCommands.test.cjs b/apps/vscode-extension/test/servers/activeServersCommands.test.cjs
index 3bba18e50..c5a8d82ac 100644
--- a/apps/vscode-extension/test/servers/activeServersCommands.test.cjs
+++ b/apps/vscode-extension/test/servers/activeServersCommands.test.cjs
@@ -1,6 +1,6 @@
/**
* Behavioural characterization of the active-servers command registrations
- * (src/active_servers/commands/activeServersCommands.ts), written before
+ * (src/features/active-servers/commands/activeServersCommands.ts), written before
* ROADMAP T44 turned the eleven identical "server id from a tree item"
* handlers into a table. It runs the compiled module from out/ under the
* fake vscode, with every ServerActionHandlers static replaced by a
@@ -56,7 +56,7 @@ const TREE_ITEM_COMMANDS = {
async function withCommands(body) {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const { ServerActionHandlers } = requireOut('active_servers/views/interactions/handleServerActions.js');
+ const { ServerActionHandlers } = requireOut('features/active-servers/views/handleServerActions.js');
const calls = [];
const methods = [
...Object.values(TREE_ITEM_COMMANDS),
@@ -70,7 +70,7 @@ async function withCommands(body) {
};
}
try {
- const { ActiveServersCommands } = requireOut('active_servers/commands/activeServersCommands.js');
+ const { ActiveServersCommands } = requireOut('features/active-servers/commands/activeServersCommands.js');
await body({ fake, ActiveServersCommands, calls });
} finally {
Object.assign(ServerActionHandlers, originals);
diff --git a/apps/vscode-extension/test/servers/collaborationRoomServer.test.cjs b/apps/vscode-extension/test/servers/collaborationRoomServer.test.cjs
index e06f5e2f5..339855d0c 100644
--- a/apps/vscode-extension/test/servers/collaborationRoomServer.test.cjs
+++ b/apps/vscode-extension/test/servers/collaborationRoomServer.test.cjs
@@ -7,7 +7,7 @@ const WebSocket = require('ws');
const projectRoot = path.resolve(__dirname, '..', '..');
function loadCollaborationRoomServer() {
- return require(path.join(projectRoot, 'out', 'servers', 'runtime', 'collaboration', 'collaborationRoomServer.js'));
+ return require(path.join(projectRoot, 'out', 'core', 'server', 'collaboration', 'collaborationRoomServer.js'));
}
function waitForOpen(socket) {
diff --git a/apps/vscode-extension/test/servers/httpsCertificates.test.cjs b/apps/vscode-extension/test/servers/httpsCertificates.test.cjs
index 6d2734c99..ccf30e3b9 100644
--- a/apps/vscode-extension/test/servers/httpsCertificates.test.cjs
+++ b/apps/vscode-extension/test/servers/httpsCertificates.test.cjs
@@ -9,11 +9,11 @@ const packageJson = JSON.parse(fs.readFileSync(path.join(projectRoot, 'package.j
const webpackConfigSource = fs.readFileSync(path.join(projectRoot, 'webpack.config.js'), 'utf8');
const packageVsixSource = fs.readFileSync(path.join(projectRoot, 'scripts', 'package-vsix.mjs'), 'utf8');
const extensionSource = fs.readFileSync(path.join(projectRoot, 'src', 'extension.ts'), 'utf8');
-const httpsDefaultServerSource = fs.readFileSync(path.join(projectRoot, 'src', 'servers', 'runtime', 'httpsDefaultServer.ts'), 'utf8');
-const httpsCustomServerSource = fs.readFileSync(path.join(projectRoot, 'src', 'servers', 'runtime', 'httpsCustomServer.ts'), 'utf8');
+const httpsDefaultServerSource = fs.readFileSync(path.join(projectRoot, 'src', 'core', 'server', 'httpsDefaultServer.ts'), 'utf8');
+const httpsCustomServerSource = fs.readFileSync(path.join(projectRoot, 'src', 'core', 'server', 'httpsCustomServer.ts'), 'utf8');
function loadGeneratedHttpsCertificateManager() {
- return require(path.join(projectRoot, 'out', 'servers', 'runtime', 'generatedHttpsCertificateManager.js'));
+ return require(path.join(projectRoot, 'out', 'core', 'server', 'generatedHttpsCertificateManager.js'));
}
test('GeneratedHttpsCertificateManager creates certificate assets inside VS Code global storage and reuses them', async () => {
diff --git a/apps/vscode-extension/test/servers/lanUrl.test.cjs b/apps/vscode-extension/test/servers/lanUrl.test.cjs
index 12175e01a..1882313ad 100644
--- a/apps/vscode-extension/test/servers/lanUrl.test.cjs
+++ b/apps/vscode-extension/test/servers/lanUrl.test.cjs
@@ -3,9 +3,9 @@
* local-network (LAN) address without a localhost guard, written before
* ROADMAP T48 made them call NetworkUtils.getPrimaryExternalUrl:
* - the "Local network address" row under an active server
- * (views/active_servers/items/activeServerItems.ts);
+ * (features/active-servers/views/activeServerItems.ts);
* - the "Network" line of the server details
- * (active_servers/views/interactions/serverDetailsFormat.ts);
+ * (features/active-servers/views/serverDetailsFormat.ts);
* - "Copy Network URL" (ServerActionHandlers.copyLanUrl).
*
* The first two take the protocol from certMode ('http' -> http, anything
@@ -35,7 +35,7 @@ function makeServer(overrides) {
async function withNetwork(body) {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const { NetworkUtils } = requireOut('servers/utils/networkUtils.js');
+ const { NetworkUtils } = requireOut('core/server/networkUtils.js');
NetworkUtils.getLocalIPAddress = () => '192.0.2.7';
await body({ fake, requireOut });
});
@@ -43,8 +43,8 @@ async function withNetwork(body) {
test('the "Local network address" row: protocol from certMode, the local IP and the port', async () => {
await withNetwork(async ({ requireOut }) => {
- const { ActiveServerItemFactory } = requireOut('views/active_servers/items/activeServerItems.js');
- const { ServerSettingsManager } = requireOut('servers/storage/serverSettingsManager.js');
+ const { ActiveServerItemFactory } = requireOut('features/active-servers/views/activeServerItems.js');
+ const { ServerSettingsManager } = requireOut('core/server/serverSettingsManager.js');
ServerSettingsManager.getInstance = () => ({ getServerSettings: () => ({ remoteAccess: { enabled: false } }) });
const cases = [
[{ certMode: 'http', url: 'http://localhost:5555' }, 'http://192.0.2.7:5555'],
@@ -63,7 +63,7 @@ test('the "Local network address" row: protocol from certMode, the local IP and
test('the details "Network" line: protocol from certMode', async () => {
await withNetwork(async ({ requireOut }) => {
- const { formatServerDetails } = requireOut('active_servers/views/interactions/serverDetailsFormat.js');
+ const { formatServerDetails } = requireOut('features/active-servers/views/serverDetailsFormat.js');
assert.match(formatServerDetails(makeServer({ certMode: 'http', url: 'http://localhost:5555' })), /http:\/\/192\.0\.2\.7:5555/);
assert.match(formatServerDetails(makeServer({ certMode: 'default' })), /https:\/\/192\.0\.2\.7:5555/);
});
@@ -71,8 +71,8 @@ test('the details "Network" line: protocol from certMode', async () => {
test('Copy Network URL: protocol from the server URL scheme', async () => {
await withNetwork(async ({ fake, requireOut }) => {
- const { getActiveServerRegistry } = requireOut('active_servers/registry/activeServerRegistry.js');
- const { ServerActionHandlers } = requireOut('active_servers/views/interactions/handleServerActions.js');
+ const { getActiveServerRegistry } = requireOut('core/server/registry/activeServerRegistry.js');
+ const { ServerActionHandlers } = requireOut('features/active-servers/views/handleServerActions.js');
const registry = getActiveServerRegistry();
const originalGetServer = registry.getServer;
const servers = {
diff --git a/apps/vscode-extension/test/servers/multiServerLauncher.test.cjs b/apps/vscode-extension/test/servers/multiServerLauncher.test.cjs
index bd516e0da..af19589d2 100644
--- a/apps/vscode-extension/test/servers/multiServerLauncher.test.cjs
+++ b/apps/vscode-extension/test/servers/multiServerLauncher.test.cjs
@@ -229,9 +229,9 @@ async function runScenario(scenario) {
// Load the launcher (and with it the whole module graph) once,
// then patch the modules it holds: a second requireOut of a
// dependency would build a fresh copy nobody else references.
- const { MultiServerLauncher } = requireOut('servers/runtime/multiServerLauncher.js');
+ const { MultiServerLauncher } = requireOut('core/server/multiServerLauncher.js');
const loaded = (relativePath) => require(path.join(projectRoot, 'out', ...relativePath.split('/')));
- observeLogsAsConsole(loaded('core/logging/sink.js'), record);
+ observeLogsAsConsole(loaded('platform/logging/sink.js'), record);
const makeFakeServer = (kind) => class {
constructor(config) {
this.isFakeServer = true;
@@ -253,11 +253,11 @@ async function runScenario(scenario) {
return `${url}/?codexr_token=fixture`;
}
};
- loaded('servers/runtime/httpServer.js').HttpServer = makeFakeServer('http');
- loaded('servers/runtime/httpsDefaultServer.js').HttpsDefaultServer = makeFakeServer('https-default');
- loaded('servers/runtime/httpsCustomServer.js').HttpsCustomServer = makeFakeServer('https-custom');
+ loaded('core/server/httpServer.js').HttpServer = makeFakeServer('http');
+ loaded('core/server/httpsDefaultServer.js').HttpsDefaultServer = makeFakeServer('https-default');
+ loaded('core/server/httpsCustomServer.js').HttpsCustomServer = makeFakeServer('https-custom');
- const { ServerSettingsManager } = loaded('servers/storage/serverSettingsManager.js');
+ const { ServerSettingsManager } = loaded('core/server/serverSettingsManager.js');
ServerSettingsManager.getInstance = (ctx) => {
assert.equal(ctx, context);
return {
@@ -266,7 +266,7 @@ async function runScenario(scenario) {
};
};
- const { PortManager } = loaded('servers/runtime/portManager.js');
+ const { PortManager } = loaded('core/server/portManager.js');
PortManager.isPortAvailable = async (...args) => {
transcript.portCalls.push(['isPortAvailable', ...args]);
return scenario.portFree !== false;
@@ -279,10 +279,10 @@ async function runScenario(scenario) {
return args[0];
};
- const { NetworkUtils } = loaded('servers/utils/networkUtils.js');
+ const { NetworkUtils } = loaded('core/server/networkUtils.js');
NetworkUtils.getLocalIPAddress = () => scenario.localIp || '192.0.2.10';
- const { PreviewRenderer } = loaded('servers/runtime/previewRenderer.js');
+ const { PreviewRenderer } = loaded('features/active-servers/services/previewRenderer.js');
PreviewRenderer.openPreview = async (...args) => {
transcript.previews.push(normalize(args, context));
if (scenario.previewFails) {
@@ -291,13 +291,13 @@ async function runScenario(scenario) {
};
if (scenario.registrarFails) {
- const { ServerRegistrar } = loaded('active_servers/services/serverRegistrar.js');
+ const { ServerRegistrar } = loaded('core/server/registry/serverRegistrar.js');
ServerRegistrar.prototype.registerServer = () => {
throw new Error('registry unavailable');
};
}
if (scenario.registryLookupFailsOnce) {
- const { ActiveServerRegistry } = loaded('active_servers/registry/activeServerRegistry.js');
+ const { ActiveServerRegistry } = loaded('core/server/registry/activeServerRegistry.js');
const realGetServer = ActiveServerRegistry.prototype.getServer;
let failed = false;
ActiveServerRegistry.prototype.getServer = function getServer(...args) {
diff --git a/apps/vscode-extension/test/servers/remoteAccessImplementation.test.cjs b/apps/vscode-extension/test/servers/remoteAccessImplementation.test.cjs
index eedc77ce7..d62677f37 100644
--- a/apps/vscode-extension/test/servers/remoteAccessImplementation.test.cjs
+++ b/apps/vscode-extension/test/servers/remoteAccessImplementation.test.cjs
@@ -10,12 +10,12 @@ const projectRoot = path.resolve(__dirname, '..', '..');
// guards on "the room" read all of them, so code moving between them cannot
// slip past a guard.
const ROOM_SERVER_FILES = [
- 'src/servers/runtime/collaboration/collaborationRoomServer.ts',
- 'src/servers/runtime/collaboration/roomTypes.ts',
- 'src/servers/runtime/collaboration/roomMessageCodec.ts',
- 'src/servers/runtime/collaboration/participantIdentity.ts',
- 'src/servers/runtime/collaboration/roomRegistry.ts',
- 'src/servers/runtime/collaboration/roomSharedState.ts',
+ 'src/core/server/collaboration/collaborationRoomServer.ts',
+ 'src/core/server/collaboration/roomTypes.ts',
+ 'src/core/server/collaboration/roomMessageCodec.ts',
+ 'src/core/server/collaboration/participantIdentity.ts',
+ 'src/core/server/collaboration/roomRegistry.ts',
+ 'src/core/server/collaboration/roomSharedState.ts',
];
function readProjectFile(...parts) {
@@ -23,9 +23,9 @@ function readProjectFile(...parts) {
}
test('remote access defaults to enabled, with a one-shot migration for older settings files', () => {
- const settings = readProjectFile('src', 'servers', 'storage', 'serverSettingsManager.ts');
- const model = readProjectFile('src', 'remote_access', 'model', 'remoteAccessModel.ts');
- const items = readProjectFile('src', 'views', 'servers', 'items', 'serverItems.ts');
+ const settings = readProjectFile('src', 'core', 'server', 'serverSettingsManager.ts');
+ const model = readProjectFile('src', 'core', 'remote-access', 'remoteAccessModel.ts');
+ const items = readProjectFile('src', 'features', 'servers', 'views', 'serverItems.ts');
assert.match(settings, /remoteAccess: \{ \.\.\.DEFAULT_REMOTE_ACCESS_SETTINGS \}/);
assert.match(settings, /version: '1\.2\.0'/);
// The default is ON; persisted files predating it carry enabled: false and
@@ -39,9 +39,9 @@ test('remote access defaults to enabled, with a one-shot migration for older set
});
test('invitation links carry no TTL and the download consent is asked once', () => {
- const authority = readProjectFile('src', 'remote_access', 'security', 'remoteSessionAuthority.ts');
- const pairingApi = readProjectFile('src', 'servers', 'runtime', 'remote', 'remotePairingApi.ts');
- const binaryManager = readProjectFile('src', 'remote_access', 'services', 'cloudflaredBinaryManager.ts');
+ const authority = readProjectFile('src', 'core', 'remote-access', 'remoteSessionAuthority.ts');
+ const pairingApi = readProjectFile('src', 'core', 'server', 'remote', 'remotePairingApi.ts');
+ const binaryManager = readProjectFile('src', 'core', 'remote-access', 'cloudflaredBinaryManager.ts');
// The 30-minute invitation TTL made the sidebar's address die while the
// tunnel stayed up. Invitations now live until revocation.
assert.doesNotMatch(authority, /INVITATION_TTL_MS/);
@@ -58,21 +58,21 @@ test('invitation links carry no TTL and the download consent is asked once', ()
});
test('remote HTTP and WebSocket access require server-issued sessions', () => {
- const httpServer = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts');
+ const httpServer = readProjectFile('src', 'core', 'server', 'httpServer.ts');
// Cookie policy and the pairing endpoints live in the extracted remote/ modules.
- const accessPolicy = readProjectFile('src', 'servers', 'runtime', 'remote', 'remoteAccessPolicy.ts');
- const pairingApi = readProjectFile('src', 'servers', 'runtime', 'remote', 'remotePairingApi.ts');
+ const accessPolicy = readProjectFile('src', 'core', 'server', 'remote', 'remoteAccessPolicy.ts');
+ const pairingApi = readProjectFile('src', 'core', 'server', 'remote', 'remotePairingApi.ts');
const roomServer = readProjectFile(
'src',
- 'servers',
- 'runtime',
+ 'core',
+ 'server',
'collaboration',
'collaborationRoomServer.ts',
);
const broadcastServer = readProjectFile(
'src',
- 'servers',
- 'runtime',
+ 'core',
+ 'server',
'broadcast',
'screenBroadcastSignalingServer.ts',
);
@@ -89,14 +89,14 @@ test('remote HTTP and WebSocket access require server-issued sessions', () => {
test('cloudflared is pinned, checksum-verified, and launched without a shell', () => {
const binaryManager = readProjectFile(
'src',
- 'remote_access',
- 'services',
+ 'core',
+ 'remote-access',
'cloudflaredBinaryManager.ts',
);
const remoteManager = readProjectFile(
'src',
- 'remote_access',
- 'services',
+ 'core',
+ 'remote-access',
'remoteAccessManager.ts',
);
assert.match(binaryManager, /CLOUDFLARED_VERSION = '2026\.5\.2'/);
@@ -111,22 +111,23 @@ test('cloudflared is pinned, checksum-verified, and launched without a shell', (
test('active servers exposes expandable information, participants, and conditional invitations', () => {
const provider = readProjectFile(
'src',
+ 'features',
+ 'active-servers',
'views',
- 'active_servers',
'ActiveServersSectionProvider.ts',
);
const items = readProjectFile(
'src',
+ 'features',
+ 'active-servers',
'views',
- 'active_servers',
- 'items',
'activeServerItems.ts',
);
const actions = readProjectFile(
'src',
- 'active_servers',
+ 'features',
+ 'active-servers',
'views',
- 'interactions',
'handleServerActions.ts',
);
assert.match(items, /TreeItemCollapsibleState\.Collapsed/);
@@ -139,11 +140,11 @@ test('active servers exposes expandable information, participants, and condition
});
test('external browser pairing selects identity before requesting the code', () => {
- const pairingPage = readProjectFile('src', 'servers', 'runtime', 'remote', 'pairingPage.ts');
+ const pairingPage = readProjectFile('src', 'core', 'server', 'remote', 'pairingPage.ts');
const authority = readProjectFile(
'src',
- 'remote_access',
- 'security',
+ 'core',
+ 'remote-access',
'remoteSessionAuthority.ts',
);
assert.match(pairingPage, /\/api\/remote\/identity/);
@@ -154,7 +155,7 @@ test('external browser pairing selects identity before requesting the code', ()
});
test('guest pairing pages stay self-contained for the response CSP', () => {
- const pairingPage = readProjectFile('src', 'servers', 'runtime', 'remote', 'pairingPage.ts');
+ const pairingPage = readProjectFile('src', 'core', 'server', 'remote', 'pairingPage.ts');
// No img-src directive is sent, and an unpaired guest cannot fetch static
// assets, so external references and data: images would break the page.
assert.doesNotMatch(pairingPage, / {
test('the host can remove a guest from the participant modal and the tree context menu', () => {
const actions = readProjectFile(
- 'src', 'active_servers', 'views', 'interactions', 'handleServerActions.ts',
+ 'src', 'features', 'active-servers', 'views', 'handleServerActions.ts',
);
const commands = readProjectFile(
- 'src', 'active_servers', 'commands', 'activeServersCommands.ts',
+ 'src', 'features', 'active-servers', 'commands', 'activeServersCommands.ts',
);
const items = readProjectFile(
- 'src', 'views', 'active_servers', 'items', 'activeServerItems.ts',
+ 'src', 'features', 'active-servers', 'views', 'activeServerItems.ts',
);
const manifest = JSON.parse(readProjectFile('package.json'));
@@ -199,7 +200,7 @@ test('the host can remove a guest from the participant modal and the tree contex
// The rendered item is rebuilt twice by the modular tree; the participant
// must survive both conversions or the context menu has no target at all
// (this is exactly what broke the right-click path once).
- const modularTree = readProjectFile('src', 'views', 'ModularTreeDataProvider.ts');
+ const modularTree = readProjectFile('src', 'app', 'sidebar', 'ModularTreeDataProvider.ts');
// Both conversions are characterized behaviourally by
// test/views/modularTreeSnapshot.test.cjs; these keep the intent readable.
assert.match(modularTree, /payloadKeys: \['activeServer', 'participant'\]/);
@@ -217,9 +218,9 @@ test('the host can remove a guest from the participant modal and the tree contex
});
test('participant removal is server-authoritative and revokes remote sessions', () => {
- const room = readProjectFile('src', 'servers', 'runtime', 'collaboration', 'collaborationRoomServer.ts');
- const httpServer = readProjectFile('src', 'servers', 'runtime', 'httpServer.ts');
- const authority = readProjectFile('src', 'remote_access', 'security', 'remoteSessionAuthority.ts');
+ const room = readProjectFile('src', 'core', 'server', 'collaboration', 'collaborationRoomServer.ts');
+ const httpServer = readProjectFile('src', 'core', 'server', 'httpServer.ts');
+ const authority = readProjectFile('src', 'core', 'remote-access', 'remoteSessionAuthority.ts');
// Both kick paths share one wire format, so browsers cannot tell them apart.
assert.match(room, /public removeParticipant\(roomId: string, peerId: string\): ParticipantRemovalResult/);
@@ -235,8 +236,8 @@ test('participant removal is server-authoritative and revokes remote sessions',
});
test('disabling cross-network connections uninstalls the managed cloudflared download', () => {
- const binaryManager = readProjectFile('src', 'remote_access', 'services', 'cloudflaredBinaryManager.ts');
- const serverCommands = readProjectFile('src', 'servers', 'commands', 'serverCommands.ts');
+ const binaryManager = readProjectFile('src', 'core', 'remote-access', 'cloudflaredBinaryManager.ts');
+ const serverCommands = readProjectFile('src', 'features', 'servers', 'commands', 'serverCommands.ts');
// The manager owns exactly the managed download, never a system binary
// found on PATH: uninstall only removes CodeXR's own storage directory.
@@ -254,7 +255,7 @@ test('disabling cross-network connections uninstalls the managed cloudflared dow
});
test('declining the cloudflared download turns cross-network off instead of leaving it silently broken', () => {
- const remoteManager = readProjectFile('src', 'remote_access', 'services', 'remoteAccessManager.ts');
+ const remoteManager = readProjectFile('src', 'core', 'remote-access', 'remoteAccessManager.ts');
const resolveIndex = remoteManager.indexOf('const binaryPath = await this.binaryManager.resolveBinary(true);');
const disableIndex = remoteManager.indexOf(
diff --git a/apps/vscode-extension/test/servers/remoteSessionAuthority.test.cjs b/apps/vscode-extension/test/servers/remoteSessionAuthority.test.cjs
index a30642d6f..f3d95bb1f 100644
--- a/apps/vscode-extension/test/servers/remoteSessionAuthority.test.cjs
+++ b/apps/vscode-extension/test/servers/remoteSessionAuthority.test.cjs
@@ -8,8 +8,8 @@ function loadAuthority() {
return require(path.join(
projectRoot,
'out',
- 'remote_access',
- 'security',
+ 'core',
+ 'remote-access',
'remoteSessionAuthority.js',
)).RemoteSessionAuthority;
}
diff --git a/apps/vscode-extension/test/servers/screenBroadcastSignalingServer.test.cjs b/apps/vscode-extension/test/servers/screenBroadcastSignalingServer.test.cjs
index 0bba39e6a..d37ae4a22 100644
--- a/apps/vscode-extension/test/servers/screenBroadcastSignalingServer.test.cjs
+++ b/apps/vscode-extension/test/servers/screenBroadcastSignalingServer.test.cjs
@@ -7,7 +7,7 @@ const WebSocket = require('ws');
const projectRoot = path.resolve(__dirname, '..', '..');
function loadBroadcastSignalingServer() {
- return require(path.join(projectRoot, 'out', 'servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.js'));
+ return require(path.join(projectRoot, 'out', 'core', 'server', 'broadcast', 'screenBroadcastSignalingServer.js'));
}
function waitForOpen(socket) {
diff --git a/apps/vscode-extension/test/servers/serverActionHandlers.test.cjs b/apps/vscode-extension/test/servers/serverActionHandlers.test.cjs
index 6843941ea..e0642aa5a 100644
--- a/apps/vscode-extension/test/servers/serverActionHandlers.test.cjs
+++ b/apps/vscode-extension/test/servers/serverActionHandlers.test.cjs
@@ -463,24 +463,24 @@ async function runScenario(scenario) {
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- const { ServerActionHandlers } = requireOut('active_servers/views/interactions/handleServerActions.js');
+ const { ServerActionHandlers } = requireOut('features/active-servers/views/handleServerActions.js');
const loaded = (relativePath) => require(path.join(projectRoot, 'out', ...relativePath.split('/')));
- observeLogsAsConsole(loaded('core/logging/sink.js'), record);
+ observeLogsAsConsole(loaded('platform/logging/sink.js'), record);
- const { PreviewRenderer } = loaded('servers/runtime/previewRenderer.js');
+ const { PreviewRenderer } = loaded('features/active-servers/services/previewRenderer.js');
PreviewRenderer.openPreview = async (...args) => {
transcript.calls.push(normalize(['openPreview', ...args]));
if (scenario.previewFails) {
throw new Error('no browser available');
}
};
- const { NetworkUtils } = loaded('servers/utils/networkUtils.js');
+ const { NetworkUtils } = loaded('core/server/networkUtils.js');
NetworkUtils.getLocalIPAddress = () => localIp;
- const { ServerSettingsManager } = loaded('servers/storage/serverSettingsManager.js');
+ const { ServerSettingsManager } = loaded('core/server/serverSettingsManager.js');
ServerSettingsManager.getInstance = () => ({
getServerSettings: () => ({ remoteAccess: { enabled: scenario.remoteEnabled === true } }),
});
- const { RemoteAccessManager } = loaded('remote_access/services/remoteAccessManager.js');
+ const { RemoteAccessManager } = loaded('core/remote-access/remoteAccessManager.js');
RemoteAccessManager.getInstance = () => (scenario.remoteManager === 'missing' ? null : {
startSharing: async (serverId) => {
transcript.calls.push(['startSharing', serverId]);
@@ -496,7 +496,7 @@ async function runScenario(scenario) {
transcript.calls.push(['stopAll']);
},
});
- const { ServerControl } = loaded('active_servers/runtime/serverControl.js');
+ const { ServerControl } = loaded('core/server/serverControl.js');
const control = { stopServer: [...((scenario.control || {}).stopServer || [])], stopAllServers: [...((scenario.control || {}).stopAllServers || [])] };
for (const method of ['stopServer', 'stopAllServers']) {
ServerControl[method] = async (...args) => {
@@ -510,7 +510,7 @@ async function runScenario(scenario) {
}
Date.now = () => NOW;
- const { getActiveServerRegistry } = loaded('active_servers/registry/activeServerRegistry.js');
+ const { getActiveServerRegistry } = loaded('core/server/registry/activeServerRegistry.js');
const registry = getActiveServerRegistry();
const ids = [];
for (const config of scenario.servers || []) {
diff --git a/apps/vscode-extension/test/servers/serverCommandsContextGuard.test.cjs b/apps/vscode-extension/test/servers/serverCommandsContextGuard.test.cjs
index 201705144..16b6e9de6 100644
--- a/apps/vscode-extension/test/servers/serverCommandsContextGuard.test.cjs
+++ b/apps/vscode-extension/test/servers/serverCommandsContextGuard.test.cjs
@@ -1,6 +1,6 @@
/**
* Behavioural characterization of the "no extension context yet" guard in
- * src/servers/commands/serverCommands.ts, written before ROADMAP T51 moved
+ * src/features/servers/commands/serverCommands.ts, written before ROADMAP T51 moved
* its three copies into one helper. Each entry point reaches the guard by
* its own path (startLocalServer after a file was picked, resetToDefault
* after the confirmation, configureRemoteAccess at once); each must answer
@@ -18,7 +18,7 @@ const GUARD_TOAST = { kind: 'error', message: 'SERVER: Extension context not ava
test('every entry point that needs the extension context refuses with the same toast before it is set', async () => {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const commands = requireOut('servers/commands/serverCommands.js');
+ const commands = requireOut('features/servers/commands/serverCommands.js');
await commands.configureRemoteAccess();
assert.deepEqual(fake.messages, [GUARD_TOAST]);
diff --git a/apps/vscode-extension/test/servers/serverConfigReaders.test.cjs b/apps/vscode-extension/test/servers/serverConfigReaders.test.cjs
index 3ae89b3f1..6c1916a12 100644
--- a/apps/vscode-extension/test/servers/serverConfigReaders.test.cjs
+++ b/apps/vscode-extension/test/servers/serverConfigReaders.test.cjs
@@ -2,8 +2,8 @@
* Behavioural characterization of the two readers of the server
* configuration, written before ROADMAP T52 kept only one:
* - the private getServerConfig() behind the Servers tree's option rows
- * (views/servers/items/serverItems.ts);
- * - the exported getServerConfig() of servers/views/items/configurationItems.ts,
+ * (features/servers/views/serverItems.ts);
+ * - the exported getServerConfig() of features/servers/views/configurationItems.ts,
* used by the configuration click handlers.
* Both answer ServerSettingsManager's legacy config, read at call time.
*/
@@ -17,9 +17,9 @@ const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'tes
test('both server-config readers answer the legacy config of the settings manager, read at call time', async () => {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const { ServerSettingsManager } = requireOut('servers/storage/serverSettingsManager.js');
- const { ServerItemFactory } = requireOut('views/servers/items/serverItems.js');
- const configurationItems = requireOut('servers/views/items/configurationItems.js');
+ const { ServerSettingsManager } = requireOut('core/server/serverSettingsManager.js');
+ const { ServerItemFactory } = requireOut('features/servers/views/serverItems.js');
+ const configurationItems = requireOut('features/servers/views/configurationItems.js');
let config = { httpMode: 'HTTP', port: 4100, autoOpen: true, openMode: 'browser', remoteAccessEnabled: false };
const originalGetInstance = ServerSettingsManager.getInstance;
diff --git a/apps/vscode-extension/test/servers/serverLifecycle.test.cjs b/apps/vscode-extension/test/servers/serverLifecycle.test.cjs
index 3b94fe4a5..16bf79d06 100644
--- a/apps/vscode-extension/test/servers/serverLifecycle.test.cjs
+++ b/apps/vscode-extension/test/servers/serverLifecycle.test.cjs
@@ -86,7 +86,7 @@ function captureConsole() {
* inside the scope, before the first line to capture.
*/
observeLogger() {
- observeLogsAsConsole(require(path.join(__dirname, '..', '..', 'out', 'core', 'logging', 'sink.js')), record);
+ observeLogsAsConsole(require(path.join(__dirname, '..', '..', 'out', 'platform', 'logging', 'sink.js')), record);
},
/** Values replaced by stable placeholders in every later line (ports, temp paths). */
setReplacements(next) {
@@ -100,8 +100,8 @@ function captureConsole() {
/** Stubs NetworkUtils and PortManager (shared by every server module in this load). */
function installNetworkStubs(requireOut, freePort) {
- const { NetworkUtils } = requireOut('servers/utils/networkUtils.js');
- const { PortManager } = requireOut('servers/runtime/portManager.js');
+ const { NetworkUtils } = requireOut('core/server/networkUtils.js');
+ const { PortManager } = requireOut('core/server/portManager.js');
const calls = [];
NetworkUtils.getPrimaryExternalUrl = (port, protocol) => `${protocol}://192.0.2.10:${port}`;
NetworkUtils.generateServerUrls = (port, protocol) => ({
@@ -301,8 +301,8 @@ test.after(() => {
test('HTTPS constructors keep their guard order and messages', async () => {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const { HttpsCustomServer } = requireOut('servers/runtime/httpsCustomServer.js');
- const { HttpsDefaultServer } = requireOut('servers/runtime/httpsDefaultServer.js');
+ const { HttpsCustomServer } = requireOut('core/server/httpsCustomServer.js');
+ const { HttpsDefaultServer } = requireOut('core/server/httpsDefaultServer.js');
const context = sharedContext();
const consoleCapture = captureConsole();
consoleCapture.observeLogger();
@@ -336,7 +336,7 @@ test('HttpsDefaultServer: generated pair, TLS surface, VR toast and dispose-befo
await withFakeVscode(fake, async ({ requireOut }) => {
consoleCapture.observeLogger();
const calls = installNetworkStubs(requireOut, port);
- const { HttpsDefaultServer } = requireOut('servers/runtime/httpsDefaultServer.js');
+ const { HttpsDefaultServer } = requireOut('core/server/httpsDefaultServer.js');
const certDirectory = path.join(sharedStorage, 'global', 'server-certs');
consoleCapture.setReplacements([[certDirectory, ''], [String(port), '']]);
@@ -416,8 +416,8 @@ test('HttpsCustomServer: valid pair, redacted config, no toast; invalid pair fal
await withFakeVscode(fake, async ({ requireOut }) => {
consoleCapture.observeLogger();
const calls = installNetworkStubs(requireOut, port);
- const { HttpsCustomServer } = requireOut('servers/runtime/httpsCustomServer.js');
- const { GeneratedHttpsCertificateManager } = requireOut('servers/runtime/generatedHttpsCertificateManager.js');
+ const { HttpsCustomServer } = requireOut('core/server/httpsCustomServer.js');
+ const { GeneratedHttpsCertificateManager } = requireOut('core/server/generatedHttpsCertificateManager.js');
const generated = await new GeneratedHttpsCertificateManager(context).ensureDefaultCertificatePair();
// A valid custom pair: copied out of the generated store.
@@ -531,7 +531,7 @@ test('HttpServer: start, second start, health, stop order and idempotent stop',
await withFakeVscode(fake, async ({ requireOut }) => {
consoleCapture.observeLogger();
installNetworkStubs(requireOut, port);
- const { HttpServer } = requireOut('servers/runtime/httpServer.js');
+ const { HttpServer } = requireOut('core/server/httpServer.js');
consoleCapture.setReplacements([[String(port), '']]);
const server = new HttpServer({ port, host: '127.0.0.1', staticRoot: templatesRoot() });
assert.equal(await server.start(), `http://localhost:${port}`);
@@ -574,7 +574,7 @@ test('HttpServer: start, second start, health, stop order and idempotent stop',
test('httpsTlsOptions: the shared TLS literal both HTTPS servers listen with', async () => {
const fake = createFakeVscode();
await withFakeVscode(fake, async ({ requireOut }) => {
- const { HTTPS_CIPHER_SUITES, buildTlsServerOptions, isCertificateRejectedByClient } = requireOut('servers/runtime/httpsTlsOptions.js');
+ const { HTTPS_CIPHER_SUITES, buildTlsServerOptions, isCertificateRejectedByClient } = requireOut('core/server/httpsTlsOptions.js');
assert.deepEqual([...HTTPS_CIPHER_SUITES], ALLOWED_CIPHERS);
const { SNICallback, ...literal } = buildTlsServerOptions('CERT', 'KEY');
assert.deepEqual(literal, {
diff --git a/apps/vscode-extension/test/servers/webSocketEndpoints.test.cjs b/apps/vscode-extension/test/servers/webSocketEndpoints.test.cjs
index 48ad69ad8..7c9f41a98 100644
--- a/apps/vscode-extension/test/servers/webSocketEndpoints.test.cjs
+++ b/apps/vscode-extension/test/servers/webSocketEndpoints.test.cjs
@@ -63,8 +63,8 @@ function nextMessage(socket, type) {
}
test('room and broadcast endpoints share one server, each on its own path, and fall back to the same default room', async () => {
- const { CollaborationRoomServer } = out('servers', 'runtime', 'collaboration', 'collaborationRoomServer.js');
- const { ScreenBroadcastSignalingServer } = out('servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.js');
+ const { CollaborationRoomServer } = out('core', 'server', 'collaboration', 'collaborationRoomServer.js');
+ const { ScreenBroadcastSignalingServer } = out('core', 'server', 'broadcast', 'screenBroadcastSignalingServer.js');
const server = http.createServer((_req, res) => res.end('ok'));
const scopes = [];
// Paths given without the leading slash are normalized.
@@ -113,8 +113,8 @@ test('room and broadcast endpoints share one server, each on its own path, and f
});
test('an unauthorized upgrade has its socket destroyed; an authorized one on the same path connects', async () => {
- const { CollaborationRoomServer } = out('servers', 'runtime', 'collaboration', 'collaborationRoomServer.js');
- const { ScreenBroadcastSignalingServer } = out('servers', 'runtime', 'broadcast', 'screenBroadcastSignalingServer.js');
+ const { CollaborationRoomServer } = out('core', 'server', 'collaboration', 'collaborationRoomServer.js');
+ const { ScreenBroadcastSignalingServer } = out('core', 'server', 'broadcast', 'screenBroadcastSignalingServer.js');
const server = http.createServer((_req, res) => res.end('ok'));
const allow = (request) => new URL(request.url, 'http://x').searchParams.get('ok') === '1';
const room = new CollaborationRoomServer(server, '/codexr-room', { authorizeUpgrade: allow });
diff --git a/apps/vscode-extension/test/startup/startupCoordinator.test.cjs b/apps/vscode-extension/test/startup/startupCoordinator.test.cjs
index 098c42a34..0c6a4fff6 100644
--- a/apps/vscode-extension/test/startup/startupCoordinator.test.cjs
+++ b/apps/vscode-extension/test/startup/startupCoordinator.test.cjs
@@ -1,6 +1,6 @@
const test = require('node:test');
const assert = require('node:assert/strict');
-const { StartupCoordinator } = require('../../out/core/startup/startupCoordinator.js');
+const { StartupCoordinator } = require('../../out/app/startup/startupCoordinator.js');
function wait(ms = 5) {
return new Promise((resolve) => setTimeout(resolve, ms));
diff --git a/apps/vscode-extension/test/tooling/dependencyDirection.test.cjs b/apps/vscode-extension/test/tooling/dependencyDirection.test.cjs
index 58c52a9b8..8c7c199b6 100644
--- a/apps/vscode-extension/test/tooling/dependencyDirection.test.cjs
+++ b/apps/vscode-extension/test/tooling/dependencyDirection.test.cjs
@@ -1,10 +1,11 @@
'use strict';
/**
- * Pins which top-level folders of src/ may import which (story #42). The
- * allowed edges, the documented two-way pairs and the vscode-free floor are
- * data in folderDependencies.json; this file only compares them with the
- * measured import graph (folderDependencies.cjs).
+ * Pins which folders of src/ may import which (stories #42, #55). The
+ * allowed edges, the layer order and its exceptions, the documented two-way
+ * pairs and the vscode-free floor are data in folderDependencies.json; this
+ * file only compares them with the measured import graph
+ * (folderDependencies.cjs).
*
* A failure here means an import crossed folders in a new direction. Prefer
* importing the concrete lower-level file instead; if the new direction is
@@ -32,13 +33,21 @@ function measuredEdgeKeys() {
.sort();
}
+function measuredFileEdges() {
+ return Object.values(measured.edges).flatMap((targets) => Object.values(targets).flat());
+}
+
test('the measurement reads the code: it finds the source files and both runtime and type-only edges', () => {
- assert.ok(measured.fileCount > 300, `only ${measured.fileCount} src files were read`);
- // A runtime import (feature commands use the command model) ...
- assert.ok(measured.edges.commands?.platform, 'commands -> platform is not seen');
+ assert.ok(measured.fileCount > 280, `only ${measured.fileCount} src files were read`);
+ const fileEdges = measuredFileEdges();
+ // A runtime import (the extension entry point imports the logger) ...
+ assert.ok(
+ fileEdges.some((edge) => /^extension\.ts -> .*\/logger\.ts$/.test(edge)),
+ 'extension.ts -> logger.ts is not seen',
+ );
// ... and an `import type` one (the participant summary in the servers' API).
assert.ok(
- (measured.edges.servers?.collaboration || []).some((edge) => edge.startsWith('servers/runtime/httpsServerBase.ts ->')),
+ fileEdges.some((edge) => /\/httpsServerBase\.ts -> .*\/connectedParticipant\.ts$/.test(edge)),
'the type-only import in httpsServerBase.ts is not seen',
);
});
@@ -63,6 +72,24 @@ test('every allowed direction is still used (remove an entry once its last impor
assert.deepEqual(allowedEdgeKeys().filter((key) => !present.has(key)), []);
});
+test('no allowed direction goes up the layers or across features, unless it is a listed exception', () => {
+ const rank = (folder) => data.layers.indexOf(folder.split('/')[0]);
+ const breaksLayering = (key) => {
+ const [from, to] = key.split('->');
+ const [fromRank, toRank] = [rank(from), rank(to)];
+ if (fromRank < 0 || toRank < 0) {
+ return false;
+ }
+ return toRank < fromRank || (fromRank === toRank && from.startsWith('features/'));
+ };
+ const allowed = allowedEdgeKeys();
+ assert.deepEqual(allowed.filter(breaksLayering).filter((key) => !data.layerExceptions[key]), []);
+ for (const [key, reason] of Object.entries(data.layerExceptions)) {
+ assert.ok(allowed.includes(key) && breaksLayering(key), `${key} is not an allowed edge that breaks the layering`);
+ assert.ok(typeof reason === 'string' && reason.length > 40, `${key} has no written reason`);
+ }
+});
+
test('the two-way folder pairs are exactly the documented ones, each with a reason', () => {
assert.deepEqual(Object.keys(data.twoWayPairs).sort(), measured.twoWayPairs);
for (const [pair, reason] of Object.entries(data.twoWayPairs)) {
diff --git a/apps/vscode-extension/test/tooling/folderDependencies.cjs b/apps/vscode-extension/test/tooling/folderDependencies.cjs
index 0121412ca..2d206cd14 100644
--- a/apps/vscode-extension/test/tooling/folderDependencies.cjs
+++ b/apps/vscode-extension/test/tooling/folderDependencies.cjs
@@ -4,7 +4,9 @@
* The folder-level import graph of src/, for the dependency-direction test.
*
* A "folder" is the first directory under src/ (`src/extension.ts` is
- * "(root)"). Every relative import counts, including `import type`,
+ * "(root)"), or the first two under the areas listed in `twoLevelAreas` of
+ * folderDependencies.json (`core/server`, `features/analysis`): there each
+ * subsystem or feature is its own unit. Every relative import counts, including `import type`,
* `export … from`, dynamic `import()`, `require()` and `import('…')` type
* nodes: a type edge is still an edge a future package split has to honour.
*
@@ -37,9 +39,18 @@ function toSrcRelative(file) {
return path.relative(srcRoot, file).split(path.sep).join('/');
}
+function readData() {
+ return JSON.parse(fs.readFileSync(dataPath, 'utf8'));
+}
+
+const twoLevelAreas = new Set(readData().twoLevelAreas || []);
+
function folderOf(file) {
const segments = toSrcRelative(file).split('/');
- return segments.length > 1 ? segments[0] : ROOT_FOLDER;
+ if (segments.length === 1) {
+ return ROOT_FOLDER;
+ }
+ return twoLevelAreas.has(segments[0]) && segments.length > 2 ? `${segments[0]}/${segments[1]}` : segments[0];
}
function resolveRelative(fromFile, specifier) {
@@ -142,19 +153,15 @@ function twoWayPairs(edges) {
return pairs.sort();
}
-function sourceFolders() {
- return fs.readdirSync(srcRoot, { withFileTypes: true })
- .filter((entry) => entry.isDirectory())
- .map((entry) => entry.name)
- .concat(ROOT_FOLDER)
- .sort();
+function sourceFolders({ graph }) {
+ return [...new Set([...graph.keys()].map(folderOf))].sort();
}
function measure() {
const fileGraph = buildFileGraph();
const edges = folderEdges(fileGraph);
return {
- folders: sourceFolders(),
+ folders: sourceFolders(fileGraph),
edges,
twoWayPairs: twoWayPairs(edges),
vscodeFree: vscodeFreeFiles(fileGraph),
@@ -162,11 +169,7 @@ function measure() {
};
}
-function readData() {
- return JSON.parse(fs.readFileSync(dataPath, 'utf8'));
-}
-
-module.exports = { measure, readData, dataPath, ROOT_FOLDER };
+module.exports = { measure, readData, folderOf, dataPath, ROOT_FOLDER };
if (require.main === module) {
const measured = measure();
diff --git a/apps/vscode-extension/test/tooling/folderDependencies.json b/apps/vscode-extension/test/tooling/folderDependencies.json
index e0ceccbcf..ace538c7a 100644
--- a/apps/vscode-extension/test/tooling/folderDependencies.json
+++ b/apps/vscode-extension/test/tooling/folderDependencies.json
@@ -1,31 +1,143 @@
{
- "description": "Allowed import directions between the top-level folders of src/ (story #42). Checked by test/tooling/dependencyDirection.test.cjs; `node test/tooling/folderDependencies.cjs` prints the measured matrix. When files move (story #55), rewrite this file, not the test.",
+ "description": "Allowed import directions between the folders of src/ (stories #42, #55). A folder is the first directory under src/, or the first two under the areas in `twoLevelAreas`. Checked by test/tooling/dependencyDirection.test.cjs; `node test/tooling/folderDependencies.cjs` prints the measured matrix. When files move, rewrite this file, not the test.",
+ "twoLevelAreas": [
+ "core",
+ "features"
+ ],
+ "layers": [
+ "app",
+ "features",
+ "core",
+ "platform",
+ "shared"
+ ],
+ "layersNote": "Top to bottom: a folder may import its own layer or a lower one, never a higher one, and a feature never imports another feature. Folders outside these areas (the pre-#55 tree, `(root)`) are not ranked. Each exception needs a reason.",
+ "layerExceptions": {
+ "core/server->features/active-servers": "core/server/multiServerLauncher.ts shows the post-launch toasts (open in browser / panel, copy URL) from features/active-servers/views/launchNotifications.ts. Known since #42 (item 5) and #39; the fix is a notification callback the feature registers with the launcher (#13 host ports).",
+ "features/active-servers->features/collaboration": "The COLLABORATION tree group is nested inside ACTIVE SERVERS by design (ARCHITECTURE \"Activation flow\"): ActiveServersSectionProvider builds it with CollaborationSectionProvider and activeServerItems uses collaborationItems. The alternative, moving the two collaboration view files under features/active-servers/views/, was left to the maintainer (src-layout.md §3.5)."
+ },
"mayImport": {
- "(root)": ["active_servers", "code_analysis", "collaboration", "commands", "core", "remote_access", "servers", "utils", "views"],
- "active_servers": ["code_analysis", "collaboration", "core", "platform", "remote_access", "servers", "utils"],
- "babia_examples": ["core", "platform", "servers", "utils"],
- "babia_templates": ["core", "platform", "utils"],
- "code_analysis": ["active_servers", "babia_templates", "core", "platform", "python_env", "servers", "utils"],
- "collaboration": [],
- "commands": ["active_servers", "babia_examples", "code_analysis", "collaboration", "core", "learn_more", "platform", "python_env", "remote_access", "servers", "utils", "visualization_settings", "visualize_data"],
- "core": [],
- "learn_more": ["platform"],
+ "(root)": [
+ "app",
+ "core/analysis",
+ "core/collaboration",
+ "core/remote-access",
+ "core/server",
+ "features/analysis",
+ "features/python-env",
+ "platform"
+ ],
+ "app": [
+ "core/python-env",
+ "core/server",
+ "features/active-servers",
+ "features/analysis",
+ "features/collaboration",
+ "features/examples",
+ "features/learn-more",
+ "features/python-env",
+ "features/servers",
+ "features/visualization-settings",
+ "features/visualize-data",
+ "platform"
+ ],
+ "core/analysis": [
+ "core/charts",
+ "core/history",
+ "core/python-env",
+ "core/server",
+ "platform",
+ "shared"
+ ],
+ "core/charts": [
+ "platform",
+ "shared"
+ ],
+ "core/collaboration": [],
+ "core/dependencies": [
+ "core/analysis"
+ ],
+ "core/export": [
+ "core/analysis",
+ "core/history",
+ "core/python-env",
+ "platform"
+ ],
+ "core/history": [
+ "core/analysis"
+ ],
+ "core/python-env": [
+ "platform"
+ ],
+ "core/remote-access": [
+ "core/collaboration",
+ "core/server",
+ "platform"
+ ],
+ "core/server": [
+ "core/analysis",
+ "core/collaboration",
+ "core/dependencies",
+ "core/history",
+ "core/remote-access",
+ "features/active-servers",
+ "platform",
+ "shared"
+ ],
+ "features/active-servers": [
+ "core/collaboration",
+ "core/remote-access",
+ "core/server",
+ "features/collaboration",
+ "platform"
+ ],
+ "features/analysis": [
+ "core/analysis",
+ "core/charts",
+ "core/export",
+ "core/server",
+ "platform"
+ ],
+ "features/collaboration": [
+ "core/collaboration",
+ "core/remote-access",
+ "platform"
+ ],
+ "features/examples": [
+ "core/server",
+ "platform"
+ ],
+ "features/learn-more": [
+ "platform"
+ ],
+ "features/python-env": [
+ "core/python-env",
+ "platform"
+ ],
+ "features/servers": [
+ "core/remote-access",
+ "core/server",
+ "platform"
+ ],
+ "features/visualization-settings": [
+ "core/charts",
+ "platform"
+ ],
+ "features/visualize-data": [
+ "core/charts",
+ "core/server",
+ "platform",
+ "shared"
+ ],
"platform": [],
- "python_env": ["core", "platform"],
- "remote_access": ["active_servers", "collaboration", "core", "servers"],
- "servers": ["active_servers", "code_analysis", "collaboration", "core", "platform", "remote_access", "utils"],
- "utils": ["core", "platform", "visualization_settings"],
- "views": ["active_servers", "babia_examples", "code_analysis", "collaboration", "core", "platform", "python_env", "servers", "visualization_settings", "visualize_data"],
- "visualization_settings": ["core", "platform"],
- "visualize_data": ["active_servers", "babia_templates", "core", "platform", "servers", "utils"]
+ "shared": []
},
"twoWayPairs": {
- "active_servers<->code_analysis": "Stopping a server closes its analysis session (active_servers/runtime/serverControl.ts -> code_analysis sessionRegistry), and the analysis watchers follow server removal (code_analysis/services/serverWatcherIntegration.ts -> the active-server registry and ServerControl). Both sides are the analysis<->server pair of docs/cleanup/src-layout.md §3.5; breaking it needs an event or callback seam, which is story #13 territory.",
- "active_servers<->remote_access": "The active-server model and registry carry RemoteAccessState (types from remote_access/model), and RemoteAccessManager watches the registry to stop a tunnel when its server goes. In src-layout.md the registry joins core/server, so this becomes the core server<->remote-access pair.",
- "active_servers<->servers": "The running-server registry (active_servers) and the server runtime (servers) are one subsystem split in two folders: the launcher registers servers and opens previews through active_servers, ServerControl stops them through the SSE manager. src-layout.md merges the registry, registrar and ServerControl into core/server; what then remains is the one upward edge multiServerLauncher -> launchNotifications (a view), allow-listed there.",
- "code_analysis<->servers": "The analysis bridges are hosted by the HTTP server (servers/runtime/analysis/* -> code_analysis historical, dependencies, refresh, watchers), and the analysis engine launches and notifies servers (serverLaunchOrchestrator, SSE). The analysis<->server pair of src-layout.md §3.5; inverting it means registering the bridges from the analysis side (#13).",
- "remote_access<->servers": "The servers authorize remote requests with RemoteSessionAuthority and the remote-access model (servers -> remote_access, 9 edges), and RemoteAccessManager reads and turns off the cross-network setting through ServerSettingsManager (remote_access -> servers, 1 edge). Breaking it needs that setting behind an injected accessor (#13)."
+ "core/analysis<->core/history": "Was inside code_analysis before #55. The Git history services compose the analysis session, the session registry, ExecutePython, the configuration storage and the analysis file policy (core/history -> core/analysis), while the re-analysis watchers publish on analysisUpdateEvents (core/analysis/watchers -> core/history/analysisUpdateEvents.ts). Moving that event bus next to the watchers would remove the pair.",
+ "core/analysis<->core/server": "The analysis<->server pair of docs/cleanup/src-layout.md §3.5. The analysis bridges are hosted by the HTTP server (core/server/analysis/* -> core/analysis refresh, watchers and the session registry) and stopping a server closes its analysis session (core/server/serverControl.ts -> core/analysis/session); the analysis engine launches and notifies servers (core/analysis/session-servers -> multiServerLauncher, SSEManager, fileToServerMap, ServerSettingsManager). Inverting it means registering the bridges from the analysis side and an event or callback seam for the session (#13).",
+ "core/remote-access<->core/server": "The servers authorize remote requests with RemoteSessionAuthority and the remote-access model (core/server -> core/remote-access), and RemoteAccessManager watches the running-server registry to stop a tunnel when its server goes and reads and turns off the cross-network setting through ServerSettingsManager (core/remote-access -> core/server). Breaking it needs that setting and the registry events behind an injected accessor (#13).",
+ "core/server<->features/active-servers": "The one upward edge of docs/cleanup/src-layout.md §3.5 seen from both sides: core/server/multiServerLauncher.ts shows the post-launch toasts from features/active-servers/views/launchNotifications.ts (#42 item 5 / #39; listed in layerExceptions), while the ACTIVE SERVERS feature drives the registry, ServerControl and the server settings. Moving the toasts behind a callback the feature registers removes the pair."
},
- "vscodeFreeFloor": 109,
- "vscodeFreeNote": "src files from which no import path reaches `vscode` (type imports included). 97 when #42 started; may only go up. Raise the floor when it does."
+ "vscodeFreeFloor": 106,
+ "vscodeFreeNote": "src files from which no import path reaches `vscode` (type imports included). 97 when #42 started; may only go up. Raise the floor when it does. #55 batch 0 lowered it 109 -> 106 only because three vscode-free re-export barrels were deleted (configuration/models, customComponents, refresh index.ts); no surviving file lost the property."
}
diff --git a/apps/vscode-extension/test/tooling/guardrail-baseline.json b/apps/vscode-extension/test/tooling/guardrail-baseline.json
index 7afa24210..7acd984c9 100644
--- a/apps/vscode-extension/test/tooling/guardrail-baseline.json
+++ b/apps/vscode-extension/test/tooling/guardrail-baseline.json
@@ -3,7 +3,7 @@
"generatedBy": "node test/tooling/measureGuardrails.cjs --write",
"definitions": {
"console.total": "CallExpression nodes whose callee is console. in src/**/*.ts (console calls inside template strings are text, not nodes, and are not counted)",
- "console.byModule": "console.total grouped by the first directory under src/ (files directly in src/ count as \"(root)\")",
+ "console.byModule": "console.total grouped by the first directory under src/, or the first two for src/core/ and src/features/ (files directly in src/ count as \"(root)\")",
"catch.consoleOnly": "catch clauses with at least one statement where every statement is a console.* call",
"catch.emptyNoComment": "catch clauses with an empty block that also carries no comment explaining the swallow",
"any.total": "AnyKeyword type nodes in src/**/*.ts (\": any\", \"as any\", \"\", \"any[]\", generic arguments)",
@@ -20,38 +20,41 @@
"ratcheted": {
"console.total": 2,
"console.byModule": {
- "core": 2
+ "platform": 2
},
"catch.consoleOnly": 0,
"catch.emptyNoComment": 0,
"any.total": 84,
"any.byModule": {
- "babia_templates": 2,
- "code_analysis": 18,
- "commands": 6,
- "platform": 7,
- "python_env": 5,
- "servers": 11,
- "utils": 13,
- "views": 15,
- "visualization_settings": 5,
- "visualize_data": 2
+ "app": 8,
+ "core/analysis": 14,
+ "core/charts": 6,
+ "core/python-env": 5,
+ "core/server": 10,
+ "features/active-servers": 1,
+ "features/analysis": 10,
+ "features/examples": 3,
+ "features/learn-more": 1,
+ "features/servers": 1,
+ "features/visualization-settings": 3,
+ "features/visualize-data": 10,
+ "platform": 12
},
"suppressions.total": 0,
"size.filesOver500": [
- "src/active_servers/views/interactions/handleServerActions.ts",
- "src/code_analysis/engine/utils/executePython.ts",
- "src/code_analysis/export/exportManifest.ts",
- "src/code_analysis/historical/gitRepositoryService.ts",
- "src/code_analysis/refresh/analysisRefreshCoordinator.ts",
- "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts",
- "src/python_env/runtime/venvManager.ts",
- "src/remote_access/security/remoteSessionAuthority.ts",
- "src/remote_access/services/remoteAccessManager.ts",
- "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts",
- "src/servers/runtime/collaboration/collaborationRoomServer.ts",
- "src/servers/runtime/httpServer.ts",
- "src/views/active_servers/items/activeServerItems.ts"
+ "src/core/analysis/python/executePython.ts",
+ "src/core/analysis/refresh/analysisRefreshCoordinator.ts",
+ "src/core/export/exportManifest.ts",
+ "src/core/history/gitRepositoryService.ts",
+ "src/core/python-env/venvManager.ts",
+ "src/core/remote-access/remoteAccessManager.ts",
+ "src/core/remote-access/remoteSessionAuthority.ts",
+ "src/core/server/broadcast/screenBroadcastSignalingServer.ts",
+ "src/core/server/collaboration/collaborationRoomServer.ts",
+ "src/core/server/httpServer.ts",
+ "src/features/active-servers/views/activeServerItems.ts",
+ "src/features/active-servers/views/handleServerActions.ts",
+ "src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts"
],
"functions.over80Lines": 36,
"complexity.over10": 53,
@@ -68,75 +71,122 @@
}
},
"informational": {
- "src.files": 337,
- "src.lines": 49563,
+ "src.files": 291,
+ "src.lines": 49064,
"src.functions": 3338,
"src.unreachableLines": 0,
+ "console.byFile": {
+ "src/platform/logging/sink.ts": 2
+ },
"console.topFiles": [
{
- "file": "src/core/logging/sink.ts",
+ "file": "src/platform/logging/sink.ts",
"count": 2
}
],
+ "any.byFile": {
+ "src/app/commands/registerAllCommands.ts": 1,
+ "src/app/sidebar/ModularTreeDataProvider.ts": 5,
+ "src/app/sidebar/commonCommands.ts": 2,
+ "src/core/analysis/parsers/directoryXRParser.ts": 2,
+ "src/core/analysis/parsers/fileXRParser.ts": 3,
+ "src/core/analysis/processors/analysisBootstrap.ts": 2,
+ "src/core/analysis/python/executePython.ts": 2,
+ "src/core/analysis/session-servers/serverLaunchOrchestrator.ts": 2,
+ "src/core/analysis/session-servers/sessionServerModels.ts": 1,
+ "src/core/analysis/session/analysisSession.ts": 1,
+ "src/core/analysis/utils/themeUtils.ts": 1,
+ "src/core/charts/processing/templateProcessor.ts": 2,
+ "src/core/charts/settings/settingsAccessors.ts": 1,
+ "src/core/charts/settings/settingsStorage.ts": 3,
+ "src/core/python-env/venvManager.ts": 5,
+ "src/core/server/http/httpRespond.ts": 1,
+ "src/core/server/httpsTlsOptions.ts": 1,
+ "src/core/server/launchServerWithFile.ts": 1,
+ "src/core/server/multiServerLauncher.ts": 1,
+ "src/core/server/serverFactory.ts": 1,
+ "src/core/server/serverSettingsManager.ts": 4,
+ "src/core/server/sse/SSEManager.ts": 1,
+ "src/features/active-servers/views/activeServerItems.ts": 1,
+ "src/features/analysis/commands/analysisCommandRegistrations.ts": 5,
+ "src/features/analysis/commands/dom/uriPathConverter.ts": 1,
+ "src/features/analysis/sections/settings/analysis-file-mode/analysisFileModeCommands.ts": 1,
+ "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingUtils.ts": 1,
+ "src/features/analysis/sections/settings/profile-configuration/profileConfiguration.ts": 1,
+ "src/features/analysis/views/AnalysisSectionProvider.ts": 1,
+ "src/features/examples/views/handleBabiaExampleClicks.ts": 3,
+ "src/features/learn-more/views/handleLearnMoreClicks.ts": 1,
+ "src/features/servers/views/configurationItems.ts": 1,
+ "src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts": 2,
+ "src/features/visualization-settings/views/visualizationSettingsItems.ts": 1,
+ "src/features/visualize-data/services/jsonFieldAnalyzer.ts": 5,
+ "src/features/visualize-data/services/visualizationLauncher.ts": 1,
+ "src/features/visualize-data/services/visualizationRestorer.ts": 1,
+ "src/features/visualize-data/views/VisualizeDataSectionProvider.ts": 1,
+ "src/features/visualize-data/views/visualizeDataSectionItems.ts": 2,
+ "src/platform/commands/commandBuilder.ts": 5,
+ "src/platform/commands/commandRegistry.ts": 2,
+ "src/platform/tree/baseInterfaces.ts": 5
+ },
"any.topFiles": [
{
- "file": "src/commands/analysis/AnalysisCommands.ts",
+ "file": "src/app/sidebar/ModularTreeDataProvider.ts",
"count": 5
},
{
- "file": "src/platform/tree/baseInterfaces.ts",
+ "file": "src/core/python-env/venvManager.ts",
"count": 5
},
{
- "file": "src/python_env/runtime/venvManager.ts",
+ "file": "src/features/analysis/commands/analysisCommandRegistrations.ts",
"count": 5
},
{
- "file": "src/utils/commandBuilder.ts",
+ "file": "src/features/visualize-data/services/jsonFieldAnalyzer.ts",
"count": 5
},
{
- "file": "src/utils/jsonFieldAnalyzer.ts",
+ "file": "src/platform/commands/commandBuilder.ts",
"count": 5
},
{
- "file": "src/views/ModularTreeDataProvider.ts",
+ "file": "src/platform/tree/baseInterfaces.ts",
"count": 5
},
{
- "file": "src/servers/storage/serverSettingsManager.ts",
+ "file": "src/core/server/serverSettingsManager.ts",
"count": 4
},
{
- "file": "src/code_analysis/engine/parsers/fileXRParser.ts",
+ "file": "src/core/analysis/parsers/fileXRParser.ts",
"count": 3
},
{
- "file": "src/views/babia_examples/interactions/handleBabiaExampleClicks.ts",
+ "file": "src/core/charts/settings/settingsStorage.ts",
"count": 3
},
{
- "file": "src/visualization_settings/storage/settingsStorage.ts",
+ "file": "src/features/examples/views/handleBabiaExampleClicks.ts",
"count": 3
},
{
- "file": "src/babia_templates/processing/templateProcessor.ts",
+ "file": "src/app/sidebar/commonCommands.ts",
"count": 2
},
{
- "file": "src/code_analysis/engine/parsers/directoryXRParser.ts",
+ "file": "src/core/analysis/parsers/directoryXRParser.ts",
"count": 2
},
{
- "file": "src/code_analysis/engine/processors/analysisBootstrap.ts",
+ "file": "src/core/analysis/processors/analysisBootstrap.ts",
"count": 2
},
{
- "file": "src/code_analysis/engine/servers/serverLaunchOrchestrator.ts",
+ "file": "src/core/analysis/python/executePython.ts",
"count": 2
},
{
- "file": "src/code_analysis/engine/utils/executePython.ts",
+ "file": "src/core/analysis/session-servers/serverLaunchOrchestrator.ts",
"count": 2
}
],
@@ -145,102 +195,102 @@
"ccn": 20,
"lines": 73,
"function": "sampleTimeline",
- "file": "src/code_analysis/historical/gitTimelineSampler.ts"
+ "file": "src/core/history/gitTimelineSampler.ts"
},
{
"ccn": 19,
"lines": 50,
"function": "handleMessage",
- "file": "src/servers/runtime/collaboration/collaborationRoomServer.ts"
+ "file": "src/core/server/collaboration/collaborationRoomServer.ts"
},
{
"ccn": 18,
"lines": 47,
"function": "closeAnalysis",
- "file": "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts"
+ "file": "src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts"
},
{
"ccn": 17,
"lines": 51,
"function": "recalculateLivePanelSummary",
- "file": "src/code_analysis/engine/watchers/directoryReanalysisData.ts"
+ "file": "src/core/analysis/watchers/directoryReanalysisData.ts"
},
{
"ccn": 17,
"lines": 44,
"function": "handleCollaborationMessage",
- "file": "src/servers/runtime/analysis/analysisMessageRouter.ts"
+ "file": "src/core/server/analysis/analysisMessageRouter.ts"
},
{
"ccn": 17,
"lines": 98,
"function": "startBroadcast",
- "file": "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts"
+ "file": "src/core/server/broadcast/screenBroadcastSignalingServer.ts"
},
{
"ccn": 17,
"lines": 55,
"function": "updateFromLegacyConfig",
- "file": "src/servers/storage/serverSettingsManager.ts"
+ "file": "src/core/server/serverSettingsManager.ts"
},
{
"ccn": 16,
"lines": 31,
"function": "validateConfig",
- "file": "src/active_servers/services/serverRegistrar.ts"
+ "file": "src/core/server/registry/serverRegistrar.ts"
},
{
"ccn": 15,
"lines": 81,
"function": "closeAssociatedAnalysisSession",
- "file": "src/active_servers/runtime/serverControl.ts"
+ "file": "src/core/server/serverControl.ts"
},
{
"ccn": 15,
"lines": 88,
"function": "startLocalServer",
- "file": "src/servers/commands/serverCommands.ts"
+ "file": "src/features/servers/commands/serverCommands.ts"
}
],
"size.largest10": [
{
- "file": "src/python_env/runtime/venvManager.ts",
+ "file": "src/core/python-env/venvManager.ts",
"lines": 851
},
{
- "file": "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts",
+ "file": "src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts",
"lines": 803
},
{
- "file": "src/code_analysis/export/exportManifest.ts",
+ "file": "src/core/export/exportManifest.ts",
"lines": 746
},
{
- "file": "src/remote_access/security/remoteSessionAuthority.ts",
+ "file": "src/core/remote-access/remoteSessionAuthority.ts",
"lines": 632
},
{
- "file": "src/active_servers/views/interactions/handleServerActions.ts",
- "lines": 623
+ "file": "src/features/active-servers/views/handleServerActions.ts",
+ "lines": 624
},
{
- "file": "src/code_analysis/historical/gitRepositoryService.ts",
+ "file": "src/core/history/gitRepositoryService.ts",
"lines": 617
},
{
- "file": "src/servers/runtime/httpServer.ts",
+ "file": "src/core/server/httpServer.ts",
"lines": 582
},
{
- "file": "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts",
+ "file": "src/core/server/broadcast/screenBroadcastSignalingServer.ts",
"lines": 581
},
{
- "file": "src/code_analysis/engine/utils/executePython.ts",
+ "file": "src/core/analysis/python/executePython.ts",
"lines": 567
},
{
- "file": "src/remote_access/services/remoteAccessManager.ts",
+ "file": "src/core/remote-access/remoteAccessManager.ts",
"lines": 567
}
]
diff --git a/apps/vscode-extension/test/tooling/guardrailRatchet.test.cjs b/apps/vscode-extension/test/tooling/guardrailRatchet.test.cjs
index 30714013b..e360211d4 100644
--- a/apps/vscode-extension/test/tooling/guardrailRatchet.test.cjs
+++ b/apps/vscode-extension/test/tooling/guardrailRatchet.test.cjs
@@ -1,7 +1,7 @@
const test = require('node:test');
const assert = require('node:assert/strict');
-const { measure, readBaseline, compareRatcheted, describeChange } = require('./measureGuardrails.cjs');
+const { measure, readBaseline, compareRatcheted, rekeyBaseline, describeChange, moduleOf } = require('./measureGuardrails.cjs');
const bulletList = (changes) => changes.map((change) => ` - ${describeChange(change)}`).join('\n');
@@ -86,3 +86,51 @@ test('the comparison tells a regression from an improvement', () => {
assert.deepEqual(compareRatcheted({ 'eslint.maxWarnings': 130 }, { 'eslint.maxWarnings': 120 }).worse.length, 1);
assert.deepEqual(compareRatcheted({ 'eslint.maxWarnings': null }, { 'eslint.maxWarnings': 120 }).worse.length, 1);
});
+
+test('modules are the first folder under src/, or the first two under core/ and features/', () => {
+ assert.equal(moduleOf('src/extension.ts'), '(root)');
+ assert.equal(moduleOf('src/platform/logging/logger.ts'), 'platform');
+ assert.equal(moduleOf('src/core/server/http/httpRespond.ts'), 'core/server');
+ assert.equal(moduleOf('src/features/analysis/views/analysisItems.ts'), 'features/analysis');
+ assert.equal(moduleOf('src/core/example.ts'), 'core');
+});
+
+test('--renamed re-keys the baseline through a move map, so a pure move reports no change', () => {
+ const onDisk = new Set(['src/features/x/views/big.ts', 'src/core/server/a.ts', 'src/old/still.ts']);
+ const exists = (file) => onDisk.has(file);
+ const moves = {
+ 'src/old/big.ts': 'src/features/x/views/big.ts',
+ 'src/old/a.ts': 'src/core/server/a.ts',
+ 'src/old/still.ts': 'src/core/server/still.ts', // later batch: not moved yet
+ };
+ const committed = {
+ ratcheted: {
+ 'any.byModule': { old: 5 },
+ 'console.byModule': { old: 1 },
+ 'size.filesOver500': ['src/old/big.ts', 'src/old/still.ts'],
+ 'reachability.unreachable': [],
+ },
+ informational: {
+ 'any.byFile': { 'src/old/big.ts': 2, 'src/old/a.ts': 1, 'src/old/still.ts': 2 },
+ 'console.byFile': { 'src/old/a.ts': 1 },
+ },
+ waivers: [],
+ };
+ const measured = {
+ 'any.byModule': { 'core/server': 1, 'features/x': 2, old: 2 },
+ 'console.byModule': { 'core/server': 1 },
+ 'size.filesOver500': ['src/features/x/views/big.ts', 'src/old/still.ts'],
+ 'reachability.unreachable': [],
+ };
+ const rekeyed = rekeyBaseline(committed, moves, measured, exists);
+ assert.deepEqual(compareRatcheted(measured, rekeyed.ratcheted), { worse: [], moved: [] });
+ // Without the map the same move looks like a regression.
+ assert.ok(compareRatcheted(measured, committed.ratcheted).worse.length > 0);
+ // A count that really changed is still caught after re-keying.
+ const worse = compareRatcheted({ ...measured, 'any.byModule': { 'core/server': 2, 'features/x': 2, old: 2 } }, rekeyed.ratcheted).worse;
+ assert.deepEqual(worse.map((change) => change.metric), ['any.byModule.core/server']);
+ // A baseline recorded before the per-file counts existed accepts a pure regrouping only.
+ const legacy = { ratcheted: { 'console.byModule': { core: 2 }, 'any.byModule': {} }, informational: {}, waivers: [] };
+ assert.deepEqual(rekeyBaseline(legacy, {}, { 'console.byModule': { 'core/logging': 2 }, 'any.byModule': {} }, exists).ratcheted['console.byModule'], { 'core/logging': 2 });
+ assert.deepEqual(rekeyBaseline(legacy, {}, { 'console.byModule': { 'core/logging': 3 }, 'any.byModule': {} }, exists).ratcheted['console.byModule'], { core: 2 });
+});
diff --git a/apps/vscode-extension/test/tooling/lintContract.test.cjs b/apps/vscode-extension/test/tooling/lintContract.test.cjs
index 5b73802d5..bb6735b4b 100644
--- a/apps/vscode-extension/test/tooling/lintContract.test.cjs
+++ b/apps/vscode-extension/test/tooling/lintContract.test.cjs
@@ -202,8 +202,8 @@ test('no-console is an error over all of src/, and the log sink is the only exce
const [block] = blocks;
assert.equal(block.rules['no-console'], 'error');
assert.deepEqual(block.files, ['src/**/*.ts']);
- assert.deepEqual(block.ignores, ['src/core/logging/sink.ts']);
- assert.ok(fs.existsSync(path.join(projectRoot, 'src', 'core', 'logging', 'sink.ts')), 'the allowlisted sink exists');
+ assert.deepEqual(block.ignores, ['src/platform/logging/sink.ts']);
+ assert.ok(fs.existsSync(path.join(projectRoot, 'src', 'platform', 'logging', 'sink.ts')), 'the allowlisted sink exists');
});
// Idioms story #56 brought to zero in src/ (docs/cleanup/modernization.md §7).
@@ -245,9 +245,9 @@ test('only the three files with deliberate lazy require() may use it', async ()
assert.equal(exemptions.length, 1, 'one exemption block');
assert.deepEqual([...exemptions[0].files].sort(), [
- 'src/code_analysis/engine/watchers/directoryReAnalyzer.ts',
- 'src/utils/getVisualizationConfiguration.ts',
- 'src/views/ModularTreeDataProvider.ts',
+ 'src/app/sidebar/ModularTreeDataProvider.ts',
+ 'src/core/analysis/watchers/directoryReAnalyzer.ts',
+ 'src/core/charts/getVisualizationConfiguration.ts',
]);
for (const file of exemptions[0].files) {
assert.ok(fs.existsSync(path.join(projectRoot, file)), `${file} exists`);
diff --git a/apps/vscode-extension/test/tooling/measureGuardrails.cjs b/apps/vscode-extension/test/tooling/measureGuardrails.cjs
index 6dcfd19bb..80511f6e9 100644
--- a/apps/vscode-extension/test/tooling/measureGuardrails.cjs
+++ b/apps/vscode-extension/test/tooling/measureGuardrails.cjs
@@ -6,6 +6,13 @@
*
* node test/tooling/measureGuardrails.cjs print the measurement
* node test/tooling/measureGuardrails.cjs --write regenerate the baseline
+ * … --write --renamed the same, for a commit that moves files
+ *
+ * `--renamed` takes a move map (`{ "src/old.ts": "src/new.ts" }`, or an object
+ * whose `moves` key is one, like docs/cleanup/src-move-map.json) and re-keys the
+ * committed baseline through it before comparing: a path that moved is compared
+ * at its new location, and the per-module counts are regrouped from the per-file
+ * ones. A pure move then reports no change, and the ratchet needs no waiver.
*
* The committed baseline (guardrail-baseline.json) is the "before" number of
* every cleanup item: a commit that moves a metric regenerates the baseline,
@@ -31,7 +38,7 @@ const SKIPPED_DIRECTORIES = new Set(['node_modules', 'dist', 'out', 'output', 'a
const definitions = {
'console.total': 'CallExpression nodes whose callee is console. in src/**/*.ts (console calls inside template strings are text, not nodes, and are not counted)',
- 'console.byModule': 'console.total grouped by the first directory under src/ (files directly in src/ count as "(root)")',
+ 'console.byModule': 'console.total grouped by the first directory under src/, or the first two for src/core/ and src/features/ (files directly in src/ count as "(root)")',
'catch.consoleOnly': 'catch clauses with at least one statement where every statement is a console.* call',
'catch.emptyNoComment': 'catch clauses with an empty block that also carries no comment explaining the swallow',
'any.total': 'AnyKeyword type nodes in src/**/*.ts (": any", "as any", "", "any[]", generic arguments)',
@@ -74,9 +81,15 @@ function collectFiles(root, extensions) {
return files.sort();
}
+/** Areas of src/ whose sub-folders are separate modules (subsystems, features). */
+const TWO_LEVEL_AREAS = new Set(['core', 'features']);
+
function moduleOf(posixPath) {
const segments = posixPath.split('/');
- return segments.length > 2 ? segments[1] : '(root)';
+ if (segments.length <= 2) {
+ return '(root)';
+ }
+ return TWO_LEVEL_AREAS.has(segments[1]) && segments.length > 3 ? `${segments[1]}/${segments[2]}` : segments[1];
}
function isFunctionLike(node) {
@@ -313,7 +326,9 @@ function measureSource() {
'src.lines': totalLines,
'src.functions': functions.length,
'src.unreachableLines': unreachable.reduce((sum, file) => sum + lineCounts[file], 0),
+ 'console.byFile': sortedObject(consoleByFile),
'console.topFiles': topEntries(consoleByFile, 15),
+ 'any.byFile': sortedObject(anyByFile),
'any.topFiles': topEntries(anyByFile, 15),
'complexity.worst10': functions
.slice()
@@ -439,6 +454,52 @@ function compareRatcheted(measured, baseline) {
return { worse, moved };
}
+function readMoveMap(mapPath) {
+ const parsed = JSON.parse(fs.readFileSync(path.resolve(mapPath), 'utf8'));
+ return parsed.moves && typeof parsed.moves === 'object' ? parsed.moves : parsed;
+}
+
+/**
+ * The committed baseline as it reads after the moves in `moves` (old -> new,
+ * paths relative to the extension root). A path is re-keyed only when the move
+ * has happened on disk (old gone, new present), so one cumulative map serves
+ * every batch. `byModule` counts are regrouped from the recorded per-file
+ * counts; a baseline recorded before those existed is accepted when the new
+ * grouping only splits its modules (same totals per first-level folder).
+ */
+function rekeyBaseline(baseline, moves, measured, exists = (file) => fs.existsSync(path.join(projectRoot, file))) {
+ const moved = (file) => {
+ const target = moves[file];
+ return target && target !== file && !exists(file) && exists(target) ? target : file;
+ };
+ const ratcheted = { ...baseline.ratcheted };
+ for (const metric of ['size.filesOver500', 'reachability.unreachable']) {
+ if (Array.isArray(ratcheted[metric])) {
+ ratcheted[metric] = ratcheted[metric].map(moved).sort();
+ }
+ }
+ const firstLevel = (byModule) => {
+ const collapsed = {};
+ for (const [name, count] of Object.entries(byModule || {})) {
+ increment(collapsed, name.split('/')[0], count);
+ }
+ return JSON.stringify(sortedObject(collapsed));
+ };
+ for (const prefix of ['console', 'any']) {
+ const byFile = baseline.informational && baseline.informational[`${prefix}.byFile`];
+ if (byFile) {
+ const regrouped = {};
+ for (const [file, count] of Object.entries(byFile)) {
+ increment(regrouped, moduleOf(moved(file)), count);
+ }
+ ratcheted[`${prefix}.byModule`] = sortedObject(regrouped);
+ } else if (measured && firstLevel(measured[`${prefix}.byModule`]) === firstLevel(ratcheted[`${prefix}.byModule`])) {
+ ratcheted[`${prefix}.byModule`] = measured[`${prefix}.byModule`];
+ }
+ }
+ return { ...baseline, ratcheted };
+}
+
function describeChange(change) {
const detail = change.detail ? ` (${change.detail})` : '';
return `${change.metric}: ${change.from} -> ${change.to}${detail}`;
@@ -450,7 +511,8 @@ function describeChange(change) {
* lint rule that raises the warning ceiling once).
*/
function writeBaseline(measurement, options = {}) {
- const previous = fs.existsSync(baselinePath) ? readBaseline() : undefined;
+ const committed = fs.existsSync(baselinePath) ? readBaseline() : undefined;
+ const previous = committed && options.moves ? rekeyBaseline(committed, options.moves, measurement.ratcheted) : committed;
const waivers = previous ? previous.waivers.slice() : [];
if (previous) {
@@ -482,8 +544,14 @@ if (require.main === module) {
console.error('--allow-regression needs a reason.');
process.exit(1);
}
+ const renamedIndex = process.argv.indexOf('--renamed');
+ if (renamedIndex >= 0 && !process.argv[renamedIndex + 1]) {
+ console.error('--renamed needs a move map (JSON).');
+ process.exit(1);
+ }
try {
- writeBaseline(measurement, { allowRegression, date: new Date().toISOString().slice(0, 10) });
+ const moves = renamedIndex >= 0 ? readMoveMap(process.argv[renamedIndex + 1]) : undefined;
+ writeBaseline(measurement, { allowRegression, moves, date: new Date().toISOString().slice(0, 10) });
console.log(`Baseline written to ${toPosix(baselinePath)}`);
} catch (error) {
console.error(error.message);
@@ -494,4 +562,4 @@ if (require.main === module) {
}
}
-module.exports = { measure, readBaseline, writeBaseline, compareRatcheted, describeChange, baselinePath, definitions };
+module.exports = { measure, readBaseline, writeBaseline, compareRatcheted, rekeyBaseline, describeChange, moduleOf, baselinePath, definitions };
diff --git a/apps/vscode-extension/test/tooling/pythonRequirements.cjs b/apps/vscode-extension/test/tooling/pythonRequirements.cjs
index 0e8bffdae..df49d2fac 100644
--- a/apps/vscode-extension/test/tooling/pythonRequirements.cjs
+++ b/apps/vscode-extension/test/tooling/pythonRequirements.cjs
@@ -3,7 +3,7 @@
/**
* backend/requirements.txt is GENERATED from the one source of truth for the
* Python packages Code-XR installs: CODEXR_PYTHON_PACKAGES in
- * src/python_env/runtime/pythonPackageManifest.ts (the extension installs those
+ * src/core/python-env/pythonPackageManifest.ts (the extension installs those
* exact versions into the user's managed venv). The file exists so the backend
* can be set up, and the future IDE can reuse the pin, without reading the
* extension's TypeScript.
@@ -20,12 +20,12 @@ const path = require('node:path');
const projectRoot = path.resolve(__dirname, '..', '..');
const requirementsPath = path.join(projectRoot, '..', '..', 'backend', 'requirements.txt');
-const manifestModule = path.join(projectRoot, 'out', 'python_env', 'runtime', 'pythonPackageManifest.js');
+const manifestModule = path.join(projectRoot, 'out', 'core', 'python-env', 'pythonPackageManifest.js');
function renderRequirements(packages, getPinnedPythonRequirement) {
const header = [
'# GENERATED - do not edit. Source of truth:',
- '# apps/vscode-extension/src/python_env/runtime/pythonPackageManifest.ts',
+ '# apps/vscode-extension/src/core/python-env/pythonPackageManifest.ts',
'# Regenerate with `npm run python:requirements` (from the repository root).',
'# These are the exact versions the extension installs into its managed venv.',
];
diff --git a/apps/vscode-extension/test/tooling/srcLayout.test.cjs b/apps/vscode-extension/test/tooling/srcLayout.test.cjs
new file mode 100644
index 000000000..b7c6f8e4d
--- /dev/null
+++ b/apps/vscode-extension/test/tooling/srcLayout.test.cjs
@@ -0,0 +1,102 @@
+'use strict';
+
+/**
+ * Pins the shape of src/ that story #55 produced (docs/cleanup/src-layout.md
+ * §3): five areas plus the entry point, kebab-case folder names, and no
+ * re-export-only index.ts. Which area may import which is
+ * dependencyDirection.test.cjs; this file only checks names and places.
+ *
+ * A failure here means a folder or file landed outside the layout. Put it in
+ * the area it belongs to (src-layout.md §3.1), name the folder in kebab-case,
+ * and import the concrete file instead of adding a barrel (ARCHITECTURE.md
+ * "Barrel policy").
+ */
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs');
+const path = require('node:path');
+
+const projectRoot = path.resolve(__dirname, '..', '..');
+const sourceRoot = path.join(projectRoot, 'src');
+
+const AREAS = ['app', 'core', 'features', 'platform', 'shared'];
+const ENTRY_POINT = 'extension.ts';
+// core/ and features/ are read two levels deep (folderDependencies.json
+// twoLevelAreas): a loose file at their root would belong to no unit.
+const FOLDER_ONLY_AREAS = ['core', 'features'];
+const KEBAB_CASE = /^[a-z0-9]+(-[a-z0-9]+)*$/;
+
+/** Every folder under src/, as a posix path relative to src/. */
+function listFolders(directory = sourceRoot) {
+ const folders = [];
+ for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
+ if (!entry.isDirectory()) {
+ continue;
+ }
+ const full = path.join(directory, entry.name);
+ folders.push(path.relative(sourceRoot, full).split(path.sep).join('/'));
+ folders.push(...listFolders(full));
+ }
+ return folders;
+}
+
+function listFiles(directory = sourceRoot) {
+ return fs.readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
+ const full = path.join(directory, entry.name);
+ return entry.isDirectory() ? listFiles(full) : [full];
+ });
+}
+
+/**
+ * True when a module only re-exports other modules: once comments and every
+ * `export ... from '...'` statement are taken out, nothing is left.
+ */
+function isReExportOnly(source) {
+ const rest = source
+ .replace(/\/\*[\s\S]*?\*\//g, '')
+ .replace(/\/\/[^\n]*/g, '')
+ .replace(/export\s+(type\s+)?(\*(\s+as\s+\w+)?|\{[^}]*\})\s*from\s*['"][^'"]+['"]\s*;?/g, '')
+ .replace(/['"]use strict['"]\s*;?/g, '');
+ return rest.trim() === '';
+}
+
+test('the barrel check recognises re-export-only modules and nothing else', () => {
+ assert.equal(isReExportOnly("export * from './a';\nexport { b, c as d } from './b';\n"), true);
+ assert.equal(isReExportOnly("/** doc */\nexport type {\n A,\n B,\n} from './types';\n"), true);
+ assert.equal(isReExportOnly("export * as ns from './a';"), true);
+ assert.equal(isReExportOnly("export * from './a';\nexport function run(): void {}\n"), false);
+ assert.equal(isReExportOnly("import { a } from './a';\nexport const b = a;\n"), false);
+});
+
+test('src/ holds the five areas and the entry point, nothing else', () => {
+ const entries = fs.readdirSync(sourceRoot).sort();
+ assert.deepEqual(entries, [...AREAS, ENTRY_POINT].sort());
+ for (const area of AREAS) {
+ assert.ok(fs.statSync(path.join(sourceRoot, area)).isDirectory(), `${area} is a folder`);
+ }
+});
+
+test('core/ and features/ hold folders only', () => {
+ for (const area of FOLDER_ONLY_AREAS) {
+ const loose = fs.readdirSync(path.join(sourceRoot, area), { withFileTypes: true })
+ .filter((entry) => !entry.isDirectory())
+ .map((entry) => `${area}/${entry.name}`);
+ assert.deepEqual(loose, [], `loose files at the root of ${area}/`);
+ }
+});
+
+test('every folder under src/ is named in kebab-case', () => {
+ const folders = listFolders();
+ assert.ok(folders.length > AREAS.length, 'the walk finds the nested folders');
+ const misnamed = folders.filter((folder) => !KEBAB_CASE.test(folder.split('/').at(-1)));
+ assert.deepEqual(misnamed, []);
+});
+
+test('no index.ts under src/ only re-exports other modules', () => {
+ const barrels = listFiles()
+ .filter((file) => path.basename(file) === 'index.ts')
+ .filter((file) => isReExportOnly(fs.readFileSync(file, 'utf8')))
+ .map((file) => path.relative(sourceRoot, file).split(path.sep).join('/'));
+ assert.deepEqual(barrels, []);
+});
diff --git a/apps/vscode-extension/test/utils/languageTables.test.cjs b/apps/vscode-extension/test/utils/languageTables.test.cjs
index e1a3446fa..902e2862a 100644
--- a/apps/vscode-extension/test/utils/languageTables.test.cjs
+++ b/apps/vscode-extension/test/utils/languageTables.test.cjs
@@ -4,12 +4,12 @@ const assert = require('node:assert/strict');
/**
* Characterization of the two live language tables (1.2.1, roadmap W1-10).
*
- * - utils/supportedLanguages decides what is ANALYSED: getAllSupportedExtensions
+ * - core/analysis/languages/supportedLanguages decides what is ANALYSED: getAllSupportedExtensions
* (minus HTML) is the metric-analysis extension set of the watchers,
* isSupportedExtension is the table's membership predicate (its two src
* callers, both dead, went in 1.2.1 W2-26 / W2-30), and
* getLanguageByExtension routes HTML files to the DOM view by language name.
- * - utils/languageMetadata decides what is LABELLED: getLanguageForFile groups the
+ * - core/analysis/languages/languageMetadata decides what is LABELLED: getLanguageForFile groups the
* "Files by Language" tree, marks files as supported in the workspace snapshot,
* and gates the XR file command.
*
@@ -27,8 +27,8 @@ const assert = require('node:assert/strict');
* straight from out/. If one of them ever starts to need the editor API, these
* two requires throw.
*/
-const analysed = require('../../out/utils/supportedLanguages.js');
-const labelled = require('../../out/utils/languageMetadata.js');
+const analysed = require('../../out/core/analysis/languages/supportedLanguages.js');
+const labelled = require('../../out/core/analysis/languages/languageMetadata.js');
/**
* One row per language: display name, key of the analysis table (the value
diff --git a/apps/vscode-extension/test/utils/templatePaths.test.cjs b/apps/vscode-extension/test/utils/templatePaths.test.cjs
index 8e997166c..336e0bf1b 100644
--- a/apps/vscode-extension/test/utils/templatePaths.test.cjs
+++ b/apps/vscode-extension/test/utils/templatePaths.test.cjs
@@ -51,7 +51,7 @@ test('from the bundle layout (dist/), the server default static root is still {
- const { HttpServer } = loadAsBundled('servers/runtime/httpServer.js', extensionRoot);
+ const { HttpServer } = loadAsBundled('core/server/httpServer.js', extensionRoot);
const server = new HttpServer({ port: 0, extensionContext: { extensionPath: extensionRoot, subscriptions: [] } });
assert.equal(server.getConfig().staticRoot, path.join(extensionRoot, 'templates'));
});
@@ -62,7 +62,7 @@ test('from the bundle layout (dist/), the server default static root is still {
withFakeVscode(createFakeVscode(), ({ requireOut }) => {
- const { HttpServer } = requireOut('servers/runtime/httpServer.js');
+ const { HttpServer } = requireOut('core/server/httpServer.js');
assert.throws(() => new HttpServer({ port: 0 }), { message: 'SERVER: HttpServer needs a staticRoot or an extension context' });
});
});
diff --git a/apps/vscode-extension/test/utils/uriPathConverter.test.cjs b/apps/vscode-extension/test/utils/uriPathConverter.test.cjs
index 4e0c90bb5..4b33e4bcb 100644
--- a/apps/vscode-extension/test/utils/uriPathConverter.test.cjs
+++ b/apps/vscode-extension/test/utils/uriPathConverter.test.cjs
@@ -12,7 +12,7 @@ const { createFakeVscode, withFakeVscode } = require(path.join(projectRoot, 'tes
// Uri behaviour comes from the fake vscode (file: URIs resolve through
// node:url, so expectations are built the same way and stay OS-agnostic).
-const MODULE = 'utils/uriPathConverter.js';
+const MODULE = 'features/analysis/commands/dom/uriPathConverter.js';
const filePath = path.resolve('/repo/src/a.ts');
const fileUri = url.pathToFileURL(filePath).toString();
diff --git a/apps/vscode-extension/test/views/modularTreeSnapshot.test.cjs b/apps/vscode-extension/test/views/modularTreeSnapshot.test.cjs
index 273841a83..38b4f782a 100644
--- a/apps/vscode-extension/test/views/modularTreeSnapshot.test.cjs
+++ b/apps/vscode-extension/test/views/modularTreeSnapshot.test.cjs
@@ -208,8 +208,8 @@ async function captureSnapshot() {
try {
await withFakeVscode(fake, async ({ requireOut }) => {
// extension.ts initializes the server settings singleton before the tree.
- requireOut('servers/storage/serverSettingsManager.js').ServerSettingsManager.getInstance(context);
- const { ModularTreeDataProvider } = requireOut('views/ModularTreeDataProvider.js');
+ requireOut('core/server/serverSettingsManager.js').ServerSettingsManager.getInstance(context);
+ const { ModularTreeDataProvider } = requireOut('app/sidebar/ModularTreeDataProvider.js');
const provider = new ModularTreeDataProvider(context);
try {
diff --git a/apps/vscode-extension/test/visualization_settings/settingsStorage.test.cjs b/apps/vscode-extension/test/visualization_settings/settingsStorage.test.cjs
index e3de476e7..faf09d1db 100644
--- a/apps/vscode-extension/test/visualization_settings/settingsStorage.test.cjs
+++ b/apps/vscode-extension/test/visualization_settings/settingsStorage.test.cjs
@@ -8,7 +8,7 @@ const { createFakeVscode, fakeExtensionContext, withFakeVscode } = require('../h
/**
* First behavioural net for src/visualization_settings, which had no test of
* any kind. It executes the compiled storage and the accessors that scene
- * generation reads (through utils/getVisualizationConfiguration), against a
+ * generation reads (through core/charts/getVisualizationConfiguration), against a
* real temp globalStorage folder and an in-memory globalState.
*
* Planned changes that must leave all of this as it is: the logging migration,
@@ -101,9 +101,9 @@ async function withSettings(callback, options = {}) {
try {
await withQuietConsole(() => withFakeVscode(fake, ({ requireOut }) => {
- const { DEFAULT_VISUALIZATION_SETTINGS } = requireOut('visualization_settings/model/settingsModel.js');
- const { VisualizationSettingsStorage } = requireOut('visualization_settings/storage/settingsStorage.js');
- const accessors = requireOut('visualization_settings/utils/settingsAccessors.js');
+ const { DEFAULT_VISUALIZATION_SETTINGS } = requireOut('core/charts/settings/settingsModel.js');
+ const { VisualizationSettingsStorage } = requireOut('core/charts/settings/settingsStorage.js');
+ const accessors = requireOut('core/charts/settings/settingsAccessors.js');
if (options.initializeAccessors !== false) {
accessors.initializeSettingsAccessors(context);
diff --git a/apps/vscode-extension/test/visualize_data/dimensionFieldMapping.test.cjs b/apps/vscode-extension/test/visualize_data/dimensionFieldMapping.test.cjs
index 59b87a1e0..517835239 100644
--- a/apps/vscode-extension/test/visualize_data/dimensionFieldMapping.test.cjs
+++ b/apps/vscode-extension/test/visualize_data/dimensionFieldMapping.test.cjs
@@ -49,7 +49,7 @@ async function map(dimensionName, { state, pick, confirm }) {
const context = fakeExtensionContext();
try {
await withFakeVscode(fake, async ({ requireOut }) => {
- const { VisualizationLauncher } = requireOut('visualize_data/views/interactions/visualizationLauncher.js');
+ const { VisualizationLauncher } = requireOut('features/visualize-data/services/visualizationLauncher.js');
const launcher = Object.create(VisualizationLauncher.prototype);
launcher.context = context;
launcher.stateManager = {
diff --git a/apps/vscode-extension/test/visualize_data/visualizeDataModel.test.cjs b/apps/vscode-extension/test/visualize_data/visualizeDataModel.test.cjs
index d5056d1e3..49db362ac 100644
--- a/apps/vscode-extension/test/visualize_data/visualizeDataModel.test.cjs
+++ b/apps/vscode-extension/test/visualize_data/visualizeDataModel.test.cjs
@@ -150,9 +150,9 @@ function openSession(workbench, callback) {
// The state module goes first: requireOut() always reloads the file it is
// given, so asking for it after the model would hand the test a second
// singleton instead of the one the model talks to.
- const { VisualizeDataStateManager } = requireOut('visualize_data/state/visualizeDataState.js');
- const { VisualizeDataModel } = requireOut('visualize_data/model/visualizeDataModel.js');
- const { JsonFieldAnalyzer } = requireOut('utils/jsonFieldAnalyzer.js');
+ const { VisualizeDataStateManager } = requireOut('features/visualize-data/model/visualizeDataState.js');
+ const { VisualizeDataModel } = requireOut('features/visualize-data/model/visualizeDataModel.js');
+ const { JsonFieldAnalyzer } = requireOut('features/visualize-data/services/jsonFieldAnalyzer.js');
assert.equal(VisualizeDataStateManager.hasInstance(), false, 'precondition: a session starts without a state manager, or a reload would prove nothing');
diff --git a/backend/README.md b/backend/README.md
index 03cf89405..374372f45 100644
--- a/backend/README.md
+++ b/backend/README.md
@@ -5,7 +5,7 @@ The Python service that produces every analysis Code-XR shows: Lizard-based code
| Path | Content |
|---|---|
| `src/` | The backend. Entry point `src/main.py`; modules grouped by capability (`utils/`, `XR/`, `livePanels/`, `html/`, `export/`, `tools/`, ...). |
-| `requirements.txt` | The exact Python packages (lizard, tree-sitter-language-pack) the extension installs into its managed venv. **Generated** from `apps/vscode-extension/src/python_env/runtime/pythonPackageManifest.ts` by `npm run python:requirements`; a unit test fails while they disagree. |
+| `requirements.txt` | The exact Python packages (lizard, tree-sitter-language-pack) the extension installs into its managed venv. **Generated** from `apps/vscode-extension/src/core/python-env/pythonPackageManifest.ts` by `npm run python:requirements`; a unit test fails while they disagree. |
| `tests/` | `unittest` suites grouped by capability, plus golden snapshots of the dependency engine and the sample sources they are built from (`tests/fixtures/dependency-languages/`). `tests/manual_metrics_suite.py` is not a discovered `test_*.py` suite: `npm run test:analysis` runs it, with the pinned lizard, over `manual_test/`. |
| `manual_test/` | Per-language fixtures (one or more per supported language, plus `deep/`) for the end-to-end analysis checks and for manual validation in the extension. |
| `requirements-dev.txt`, `ruff.toml` | Development tools only (never installed into the user's venv): the pinned `ruff` and its lint configuration (pyflakes, the pycodestyle error classes and a few pyupgrade lock-ins; no formatter, no import sorting; fixture corpora excluded). |
diff --git a/backend/requirements.txt b/backend/requirements.txt
index 1fe3ed5b3..4b3324c24 100644
--- a/backend/requirements.txt
+++ b/backend/requirements.txt
@@ -1,5 +1,5 @@
# GENERATED - do not edit. Source of truth:
-# apps/vscode-extension/src/python_env/runtime/pythonPackageManifest.ts
+# apps/vscode-extension/src/core/python-env/pythonPackageManifest.ts
# Regenerate with `npm run python:requirements` (from the repository root).
# These are the exact versions the extension installs into its managed venv.
lizard==1.17.31 # code complexity analysis
diff --git a/backend/scripts/run-analysis-tests.cjs b/backend/scripts/run-analysis-tests.cjs
index d6f7560a7..1f9a3e885 100644
--- a/backend/scripts/run-analysis-tests.cjs
+++ b/backend/scripts/run-analysis-tests.cjs
@@ -78,7 +78,7 @@ function ensureVenv(systemPython) {
/**
* The extension installs an exact lizard version into the user's managed venv
- * (apps/vscode-extension/src/python_env/runtime/pythonPackageManifest.ts). The
+ * (apps/vscode-extension/src/core/python-env/pythonPackageManifest.ts). The
* fixtures must be measured with that same version, so the requirement is read
* from backend/requirements.txt, the generated mirror of that manifest
* (apps/vscode-extension/test/python_env/pythonRequirements.test.cjs keeps the
diff --git a/backend/tests/analyzers/test_analyzer_extension_coverage.py b/backend/tests/analyzers/test_analyzer_extension_coverage.py
index 107c18ac1..67c4c585a 100644
--- a/backend/tests/analyzers/test_analyzer_extension_coverage.py
+++ b/backend/tests/analyzers/test_analyzer_extension_coverage.py
@@ -128,7 +128,7 @@ def _source(*lines):
# Extensions OUTSIDE the Python contract that still reach these analyzers in a
# live session: the TypeScript watcher gate (DIRECTORY_ANALYSIS_EXTENSIONS in
-# src/code_analysis/engine/watchers/analysisFilePolicy.ts) is wider than the
+# src/core/analysis/watchers/analysisFilePolicy.ts) is wider than the
# contract, and the re-analysis of a changed file
# (summaryFiles/file_reanalysis_coordinator.py -> build_file_snapshot) applies no
# contract filter of its own. The arms below are therefore live, although no
diff --git a/docs/cleanup/src-layout.md b/docs/cleanup/src-layout.md
index 2972af99f..0a3be4ef5 100644
--- a/docs/cleanup/src-layout.md
+++ b/docs/cleanup/src-layout.md
@@ -1,6 +1,6 @@
# `src/` layout: analysis and move plan (story #55)
-> **Status:** analysis only, 2026-11-25, measured on `v1.2.1` at `e16b95e8` (after PRs #44–#57, #40 included). No source file is changed by this document. **Story:** [#55](https://github.com/Code-XR-Project/Code-XR/issues/55), epic [#26](https://github.com/Code-XR-Project/Code-XR/issues/26).
+> **Status:** executed by story #55 on 2026-11-25; the result is in [§7](#7-result-story-55-executed-2026-11-25). The analysis below is kept as written: analysis only, 2026-11-25, measured on `v1.2.1` at `e16b95e8` (after PRs #44–#57, #40 included). No source file is changed by this document. **Story:** [#55](https://github.com/Code-XR-Project/Code-XR/issues/55), epic [#26](https://github.com/Code-XR-Project/Code-XR/issues/26).
> **Update from #42 (layering):** three rows of the move map are already done at their destination here: `commands/shared/commandRegistry.ts` → `platform/commands/commandRegistry.ts` (the `commands/shared` barrel is deleted), `views/common/baseInterfaces.ts` → `platform/tree/baseInterfaces.ts`, and the new `platform/templatePaths.ts` (`resolveTemplatePath`; the `__dirname`-depth constraint in §3.4 is gone). Two of the five `core/` pairs of §3.5 are broken: `analysis↔charts` (the XR field types moved to `babia_templates/models/xrFieldModels.ts`) and `collaboration↔remote-access` (`CollaborationClientKind` declared in `collaboration/model/connectedParticipant.ts`). The folder matrix is data in `test/tooling/folderDependencies.json` (#42's direction test): rewrite it with each batch.
> Paths are relative to `apps/vscode-extension/` (so `src/…` is the extension source) unless stated otherwise. Every number below comes from the scripts in the [appendix](#appendix-scripts) and can be re-run.
@@ -399,7 +399,7 @@ src/
│ │ ├── session/ [2] session-servers/ [4] utils/ [3] watchers/ [11]
│ ├── charts/ [5] chartModels.ts, chartRegistry.ts, chartPresentation.ts, templateCharts.ts, getVisualizationConfiguration.ts
│ │ ├── processing/ [3] └── placeholders/ [2]
-│ │ └── settings/ [3] settingsModel.ts, settingsStorage.ts, settingsAccessors.ts
+│ │ └── settings/ [4] settingsModel.ts, settingsStorage.ts, settingsFile.ts, settingsAccessors.ts
│ ├── collaboration/ [4] profile model, anonymous names, participants, profile manager
│ ├── dependencies/ [2]
│ ├── export/ [8]
@@ -412,11 +412,11 @@ src/
│ └── remote/ [4] sse/ [2] ws/ [1]
├── platform/ [1] extensionContext.ts
│ ├── commands/ [2] commandRegistry.ts, commandBuilder.ts
-│ ├── logging/ [2] logger.ts, logPolicy.ts
+│ ├── logging/ [3] logger.ts, logPolicy.ts, sink.ts
│ ├── tree/ [1] baseInterfaces.ts
│ ├── ui/ [2] detailDialog.ts, errorHandler.ts
│ └── webview/ [1] panelManager.ts
-└── shared/ [2] nonceGenerator.ts, sha256Generator.ts
+└── shared/ [1] nonceGenerator.ts (sha256Generator.ts: core/analysis/utils, §4.1)
```
Notes on choices that are not obvious:
@@ -449,7 +449,17 @@ Notes on choices that are not obvious:
## 4. Move map
-Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barrel, dissolved in batch 0 (its importers are retargeted to the declaring files, the barrel is deleted). **—** = stays. The batch numbers refer to §5.
+Every `.ts` file under `src/` (337 after the refresh of §4.1), relative to `src/`. **B0** = re-export barrel, dissolved in batch 0 (its importers are retargeted to the declaring files, the barrel is deleted). **—** = stays. The batch numbers refer to §5.
+
+### 4.1 Refresh before the move (2026-11-25, on `v1.2.1` at `41cfc523`)
+
+The map was re-generated on the tree as it stands after #34, #35, #42 and #56 (337 files, 49,226 lines). Rows that changed:
+
+- **Already at their destination (#42), now `—`:** `platform/commands/commandRegistry.ts`, `platform/tree/baseInterfaces.ts`, and the new `platform/templatePaths.ts`. The `commands/shared/index.ts` barrel is already gone, so batch 0 dissolves 46 barrels, not 47.
+- **New files, placed by the §3.1 rule next to the file they were split from:** `core/logging/sink.ts` → `platform/logging/` (B1, with `logger.ts`), `visualization_settings/storage/settingsFile.ts` → `core/charts/settings/` (B4, with `settingsStorage.ts`), `babia_templates/models/xrFieldModels.ts` → `core/charts/` (B7, with `chartModels.ts`), `code_analysis/engine/utils/pythonStderrStream.ts` → `core/analysis/python/` (B12, with `executePython.ts`), `…/chart_type_shared/chartTypeCommandFactory.ts` → `features/analysis/sections/settings/` (B13, with `sharedChartTypeSettingCore.ts`).
+- **Changed destination:** `utils/sha256Generator.ts` → `core/analysis/utils/` (B12) instead of `shared/`. #34 gave it a logger, so in `shared/` it would import `platform/` (an upward edge); all seven importers are in the analysis engine.
+
+Re-measured with A.4 on the refreshed map: **one upward edge** (`core/server/multiServerLauncher.ts` → `features/active-servers/views/launchNotifications.ts`), **one cross-feature pair** (`active-servers` → `collaboration`), and three two-way pairs inside `core/` (`analysis↔server` 6/12, `analysis↔history` 2/9, `remote-access↔server` 3/10; #42 broke `analysis↔charts` and `collaboration↔remote-access`). Target shape (A.7 with the map): 291 files, 99 folders, 0 snake_case, 0 barrels.
| Old (`src/…`) | New (`src/…`) | Batch |
|---|---|---|
@@ -472,6 +482,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `babia_templates/charts/chartPresentation.ts` | `core/charts/chartPresentation.ts` | B7 |
| `babia_templates/charts/templateCharts.ts` | `core/charts/templateCharts.ts` | B7 |
| `babia_templates/models/chartModels.ts` | `core/charts/chartModels.ts` | B7 |
+| `babia_templates/models/xrFieldModels.ts` | `core/charts/xrFieldModels.ts` | B7 |
| `babia_templates/processing/dimensionValidator.ts` | `core/charts/processing/dimensionValidator.ts` | B7 |
| `babia_templates/processing/placeholders/createChart.ts` | `core/charts/processing/placeholders/createChart.ts` | B7 |
| `babia_templates/processing/placeholders/createStructure.ts` | `core/charts/processing/placeholders/createStructure.ts` | B7 |
@@ -503,6 +514,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts` | *(dissolved: re-export barrel)* | B0 |
| `code_analysis/commands/subsections/analysis_settings/chart_type_directory/chartTypeDirectoryCommands.ts` | `features/analysis/sections/settings/chart-type-directory/chartTypeDirectoryCommands.ts` | B13 |
| `code_analysis/commands/subsections/analysis_settings/chart_type_file/chartTypeFileCommands.ts` | `features/analysis/sections/settings/chart-type-file/chartTypeFileCommands.ts` | B13 |
+| `code_analysis/commands/subsections/analysis_settings/chart_type_shared/chartTypeCommandFactory.ts` | `features/analysis/sections/settings/chartTypeCommandFactory.ts` | B13 |
| `code_analysis/commands/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectoryCommands.ts` | `features/analysis/sections/settings/dimension-mapping-directory/dimensionMappingDirectoryCommands.ts` | B13 |
| `code_analysis/commands/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFileCommands.ts` | `features/analysis/sections/settings/dimension-mapping-file/dimensionMappingFileCommands.ts` | B13 |
| `code_analysis/commands/subsections/analysis_settings/filesByLanguageSortingCommands.ts` | `features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingCommands.ts` | B13 |
@@ -563,6 +575,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `code_analysis/engine/utils/backendScriptPath.ts` | `core/analysis/python/backendScriptPath.ts` | B12 |
| `code_analysis/engine/utils/executePython.ts` | `core/analysis/python/executePython.ts` | B12 |
| `code_analysis/engine/utils/fileHashCalculator.ts` | `core/analysis/utils/fileHashCalculator.ts` | B12 |
+| `code_analysis/engine/utils/pythonStderrStream.ts` | `core/analysis/python/pythonStderrStream.ts` | B12 |
| `code_analysis/engine/utils/saveFiles.ts` | `core/analysis/utils/saveFiles.ts` | B12 |
| `code_analysis/engine/utils/themeUtils.ts` | `core/analysis/utils/themeUtils.ts` | B12 |
| `code_analysis/engine/watchers/analysisFilePolicy.ts` | `core/analysis/watchers/analysisFilePolicy.ts` | B12 |
@@ -659,16 +672,18 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `commands/learn_more/learnMoreCommands.ts` | `features/learn-more/commands/learnMoreCommandRegistrations.ts` | B2 |
| `commands/python_env/pythonEnvCommands.ts` | `features/python-env/commands/pythonEnvCommandRegistrations.ts` | B3 |
| `commands/servers/serverCommands.ts` | `features/servers/commands/serverCommandRegistrations.ts` | B10 |
-| `commands/shared/commandRegistry.ts` | `platform/commands/commandRegistry.ts` | B1 |
-| `commands/shared/index.ts` | *(dissolved: re-export barrel)* | B0 |
| `commands/visualization_settings/visualizationSettingsCommands.ts` | `features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts` | B4 |
| `commands/visualize_data/visualizeDataCommands.ts` | `features/visualize-data/commands/visualizeDataCommandRegistrations.ts` | B5 |
| `core/extensionContext.ts` | `platform/extensionContext.ts` | B1 |
| `core/logging/logger.ts` | `platform/logging/logger.ts` | B1 |
| `core/logging/logPolicy.ts` | `platform/logging/logPolicy.ts` | B1 |
+| `core/logging/sink.ts` | `platform/logging/sink.ts` | B1 |
| `core/startup/startupCoordinator.ts` | `app/startup/startupCoordinator.ts` | B14 |
| `extension.ts` | `extension.ts` | — |
| `learn_more/commands/learnMoreCommands.ts` | `features/learn-more/commands/learnMoreCommands.ts` | B2 |
+| `platform/commands/commandRegistry.ts` | `platform/commands/commandRegistry.ts` | — |
+| `platform/templatePaths.ts` | `platform/templatePaths.ts` | — |
+| `platform/tree/baseInterfaces.ts` | `platform/tree/baseInterfaces.ts` | — |
| `python_env/commands/pythonEnvCommands.ts` | `features/python-env/commands/pythonEnvCommands.ts` | B3 |
| `python_env/runtime/pythonEnvUiState.ts` | `core/python-env/pythonEnvUiState.ts` | B3 |
| `python_env/runtime/pythonPackageManifest.ts` | `core/python-env/pythonPackageManifest.ts` | B3 |
@@ -734,7 +749,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `utils/jsonFieldAnalyzer.ts` | `features/visualize-data/services/jsonFieldAnalyzer.ts` | B5 |
| `utils/languageMetadata.ts` | `core/analysis/languages/languageMetadata.ts` | B12 |
| `utils/nonceGenerator.ts` | `shared/nonceGenerator.ts` | B1 |
-| `utils/sha256Generator.ts` | `shared/sha256Generator.ts` | B1 |
+| `utils/sha256Generator.ts` | `core/analysis/utils/sha256Generator.ts` | B12 |
| `utils/supportedLanguages.ts` | `core/analysis/languages/supportedLanguages.ts` | B12 |
| `utils/uriPathConverter.ts` | `features/analysis/commands/dom/uriPathConverter.ts` | B13 |
| `views/active_servers/ActiveServersSectionProvider.ts` | `features/active-servers/views/ActiveServersSectionProvider.ts` | B10 |
@@ -747,7 +762,6 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `views/collaboration/CollaborationSectionProvider.ts` | `features/collaboration/views/CollaborationSectionProvider.ts` | B8 |
| `views/collaboration/index.ts` | *(dissolved: re-export barrel)* | B0 |
| `views/collaboration/items/collaborationItems.ts` | `features/collaboration/views/collaborationItems.ts` | B8 |
-| `views/common/baseInterfaces.ts` | `platform/tree/baseInterfaces.ts` | B1 |
| `views/common/sectionChild.ts` | `app/sidebar/sectionChild.ts` | B14 |
| `views/index.ts` | *(dissolved: re-export barrel)* | B0 |
| `views/learn_more/index.ts` | *(dissolved: re-export barrel)* | B0 |
@@ -772,6 +786,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `visualization_settings/commands/visualizationSettingsCommands.ts` | `features/visualization-settings/commands/visualizationSettingsCommands.ts` | B4 |
| `visualization_settings/index.ts` | *(dissolved: re-export barrel)* | B0 |
| `visualization_settings/model/settingsModel.ts` | `core/charts/settings/settingsModel.ts` | B4 |
+| `visualization_settings/storage/settingsFile.ts` | `core/charts/settings/settingsFile.ts` | B4 |
| `visualization_settings/storage/settingsStorage.ts` | `core/charts/settings/settingsStorage.ts` | B4 |
| `visualization_settings/utils/colorPickerUtils.ts` | `features/visualization-settings/views/colorPickerUtils.ts` | B4 |
| `visualization_settings/utils/dynamicColorIconGenerator.ts` | `features/visualization-settings/views/dynamicColorIconGenerator.ts` | B4 |
@@ -786,347 +801,7 @@ Every `.ts` file under `src/` (332), relative to `src/`. **B0** = re-export barr
| `visualize_data/views/items/visualizationItem.ts` | `features/visualize-data/views/visualizationItem.ts` | B5 |
| `visualize_data/views/items/visualizeDataItems.ts` | `features/visualize-data/views/visualizeDataItems.ts` | B5 |
-Machine-readable form: keys and values use the `src/…` form that tests and docs use, and `null` means dissolved.
-
-Move map as JSON (332 entries)
-
-```json
-{
- "src/active_servers/commands/activeServersCommands.ts": "src/features/active-servers/commands/activeServersCommands.ts",
- "src/active_servers/model/activeServerModel.ts": "src/core/server/registry/activeServerModel.ts",
- "src/active_servers/registry/activeServerRegistry.ts": "src/core/server/registry/activeServerRegistry.ts",
- "src/active_servers/runtime/serverControl.ts": "src/core/server/serverControl.ts",
- "src/active_servers/services/panelManager.ts": "src/platform/webview/panelManager.ts",
- "src/active_servers/services/serverOpenActions.ts": "src/features/active-servers/services/serverOpenActions.ts",
- "src/active_servers/services/serverRegistrar.ts": "src/core/server/registry/serverRegistrar.ts",
- "src/active_servers/services/withServer.ts": "src/features/active-servers/services/withServer.ts",
- "src/active_servers/views/interactions/handleServerActions.ts": "src/features/active-servers/views/handleServerActions.ts",
- "src/active_servers/views/interactions/serverDetailsFormat.ts": "src/features/active-servers/views/serverDetailsFormat.ts",
- "src/babia_examples/commands/babiaExamplesCommands.ts": "src/features/examples/commands/babiaExamplesCommands.ts",
- "src/babia_examples/model/babiaExampleModel.ts": "src/features/examples/model/babiaExampleModel.ts",
- "src/babia_examples/runtime/exampleLauncher.ts": "src/features/examples/services/exampleLauncher.ts",
- "src/babia_examples/views/babiaExamplesTreeView.ts": "src/features/examples/views/babiaExamplesTreeView.ts",
- "src/babia_examples/views/interactions/handleExampleClicks.ts": "src/features/examples/views/handleExampleClicks.ts",
- "src/babia_examples/views/items/exampleItems.ts": "src/features/examples/views/exampleItems.ts",
- "src/babia_templates/charts/chartPresentation.ts": "src/core/charts/chartPresentation.ts",
- "src/babia_templates/charts/templateCharts.ts": "src/core/charts/templateCharts.ts",
- "src/babia_templates/models/chartModels.ts": "src/core/charts/chartModels.ts",
- "src/babia_templates/processing/dimensionValidator.ts": "src/core/charts/processing/dimensionValidator.ts",
- "src/babia_templates/processing/placeholders/createChart.ts": "src/core/charts/processing/placeholders/createChart.ts",
- "src/babia_templates/processing/placeholders/createStructure.ts": "src/core/charts/processing/placeholders/createStructure.ts",
- "src/babia_templates/processing/templateHTMLProcessor.ts": "src/core/charts/processing/templateHTMLProcessor.ts",
- "src/babia_templates/processing/templateProcessor.ts": "src/core/charts/processing/templateProcessor.ts",
- "src/babia_templates/registry/chartRegistry.ts": "src/core/charts/chartRegistry.ts",
- "src/code_analysis/commands/analysisCommands.ts": "src/features/analysis/commands/analysisCommands.ts",
- "src/code_analysis/commands/clean_analysis/cleanAnalysisCommands.ts": "src/features/analysis/commands/cleanAnalysisCommands.ts",
- "src/code_analysis/commands/directory_analysis/directoryAnalysisCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisCommands.ts",
- "src/code_analysis/commands/directory_analysis/directoryAnalysisLivePanelCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisLivePanelCommands.ts",
- "src/code_analysis/commands/directory_analysis/directoryAnalysisXRCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisXRCommands.ts",
- "src/code_analysis/commands/directory_analysis/index.ts": null,
- "src/code_analysis/commands/directory_analysis/projectAnalysisCommands.ts": "src/features/analysis/commands/directory/projectAnalysisCommands.ts",
- "src/code_analysis/commands/dom_visualization/domVisualizationCommands.ts": "src/features/analysis/commands/dom/domVisualizationCommands.ts",
- "src/code_analysis/commands/dom_visualization/index.ts": null,
- "src/code_analysis/commands/file_analysis/fileAnalysisCommands.ts": "src/features/analysis/commands/file/fileAnalysisCommands.ts",
- "src/code_analysis/commands/file_analysis/fileAnalysisLivePanelCommands.ts": "src/features/analysis/commands/file/fileAnalysisLivePanelCommands.ts",
- "src/code_analysis/commands/file_analysis/fileAnalysisXRCommands.ts": "src/features/analysis/commands/file/fileAnalysisXRCommands.ts",
- "src/code_analysis/commands/file_analysis/index.ts": null,
- "src/code_analysis/commands/subsections/active_analyses/activeAnalysesCommands.ts": "src/features/analysis/sections/active-analyses/activeAnalysesCommandRegistrations.ts",
- "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryModeCommands.ts": "src/features/analysis/sections/settings/analysis-directory-mode/analysisDirectoryModeCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/analysisFileModeCommands.ts": "src/features/analysis/sections/settings/analysis-file-mode/analysisFileModeCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/analysisSettingsCommands.ts": "src/features/analysis/sections/settings/analysisSettingsCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelayCommands.ts": "src/features/analysis/sections/settings/auto-analysis-delay/autoAnalysisDelayCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabledCommands.ts": "src/features/analysis/sections/settings/auto-analysis-enabled/autoAnalysisEnabledCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/chart_type_directory/chartTypeDirectoryCommands.ts": "src/features/analysis/sections/settings/chart-type-directory/chartTypeDirectoryCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/chart_type_file/chartTypeFileCommands.ts": "src/features/analysis/sections/settings/chart-type-file/chartTypeFileCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectoryCommands.ts": "src/features/analysis/sections/settings/dimension-mapping-directory/dimensionMappingDirectoryCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFileCommands.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingFileCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/filesByLanguageSortingCommands.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/profileConfigurationCommands.ts": "src/features/analysis/sections/settings/profile-configuration/profileConfigurationCommands.ts",
- "src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts": null,
- "src/code_analysis/commands/subsections/analysis_settings/view_theme/viewThemeCommands.ts": "src/features/analysis/sections/settings/view-theme/viewThemeCommands.ts",
- "src/code_analysis/commands/subsections/files_by_language/filesByLanguageCommands.ts": "src/features/analysis/sections/files-by-language/filesByLanguageCommands.ts",
- "src/code_analysis/commands/subsections/index.ts": null,
- "src/code_analysis/commands/subsections/project_by_language/projectByLanguageCommands.ts": "src/features/analysis/sections/project-by-language/projectByLanguageCommands.ts",
- "src/code_analysis/configuration/analysisConfigurationStorage.ts": "src/core/analysis/configuration/analysisConfigurationStorage.ts",
- "src/code_analysis/configuration/index.ts": null,
- "src/code_analysis/configuration/models/analysisConfiguration.ts": "src/core/analysis/configuration/analysisConfiguration.ts",
- "src/code_analysis/configuration/models/index.ts": null,
- "src/code_analysis/dependencies/dependencyGraphModels.ts": "src/core/dependencies/dependencyGraphModels.ts",
- "src/code_analysis/dependencies/dependencyGraphService.ts": "src/core/dependencies/dependencyGraphService.ts",
- "src/code_analysis/dependencies/index.ts": null,
- "src/code_analysis/engine/analysisOrchestrator.ts": "src/core/analysis/analysisOrchestrator.ts",
- "src/code_analysis/engine/components/customComponents/analysisModeComponentAsset.ts": "src/core/analysis/scene-assets/analysisModeComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/analysisTableComponentAsset.ts": "src/core/analysis/scene-assets/analysisTableComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/avatarComponentAsset.ts": "src/core/analysis/scene-assets/avatarComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/codexrDebugComponentAsset.ts": "src/core/analysis/scene-assets/codexrDebugComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts": "src/core/analysis/scene-assets/codexrRoomComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts": "src/core/analysis/scene-assets/collaborationComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/commonComponentAsset.ts": "src/core/analysis/scene-assets/commonComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/commonGitRefPickerComponentAsset.ts": "src/core/analysis/scene-assets/commonGitRefPickerComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/dependencyGraphComponentAsset.ts": "src/core/analysis/scene-assets/dependencyGraphComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/dependencyVisualBudgetComponentAsset.ts": "src/core/analysis/scene-assets/dependencyVisualBudgetComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts": "src/core/analysis/scene-assets/guideScreenComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/historicalComparisonComponentAsset.ts": "src/core/analysis/scene-assets/historicalComparisonComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/immersiveRigComponentAsset.ts": "src/core/analysis/scene-assets/immersiveRigComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/index.ts": null,
- "src/code_analysis/engine/components/customComponents/logoComponentAsset.ts": "src/core/analysis/scene-assets/logoComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/pointerPolicyComponentAsset.ts": "src/core/analysis/scene-assets/pointerPolicyComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/projectEvolutionComponentAsset.ts": "src/core/analysis/scene-assets/projectEvolutionComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/renderBudgetComponentAsset.ts": "src/core/analysis/scene-assets/renderBudgetComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/runtimeAssembly.ts": "src/core/analysis/scene-assets/runtimeAssembly.ts",
- "src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts": "src/core/analysis/scene-assets/singleFileRuntimeAssets.ts",
- "src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts": "src/core/analysis/scene-assets/virtualScreenComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/xrChartDebugComponentAsset.ts": "src/core/analysis/scene-assets/xrChartDebugComponentAsset.ts",
- "src/code_analysis/engine/components/customComponents/xrChartMappingUiComponentAsset.ts": "src/core/analysis/scene-assets/xrChartMappingUiComponentAsset.ts",
- "src/code_analysis/engine/core/analysisSession.ts": "src/core/analysis/session/analysisSession.ts",
- "src/code_analysis/engine/core/sessionRegistry.ts": "src/core/analysis/session/sessionRegistry.ts",
- "src/code_analysis/engine/launchers/launcherLivePanel.ts": "src/core/analysis/launchers/launcherLivePanel.ts",
- "src/code_analysis/engine/launchers/launcherVisualizeDOM.ts": "src/core/analysis/launchers/launcherVisualizeDOM.ts",
- "src/code_analysis/engine/launchers/launcherXRAnalysis.ts": "src/core/analysis/launchers/launcherXRAnalysis.ts",
- "src/code_analysis/engine/launchers/launchPipeline.ts": "src/core/analysis/launchers/launchPipeline.ts",
- "src/code_analysis/engine/parsers/directoryXRParser.ts": "src/core/analysis/parsers/directoryXRParser.ts",
- "src/code_analysis/engine/parsers/fileXRParser.ts": "src/core/analysis/parsers/fileXRParser.ts",
- "src/code_analysis/engine/parsers/livePanelParser.ts": "src/core/analysis/parsers/livePanelParser.ts",
- "src/code_analysis/engine/parsers/visualizeDOMParser.ts": "src/core/analysis/parsers/visualizeDOMParser.ts",
- "src/code_analysis/engine/processors/analysisBootstrap.ts": "src/core/analysis/processors/analysisBootstrap.ts",
- "src/code_analysis/engine/processors/FileRequirementProcessor.ts": "src/core/analysis/processors/FileRequirementProcessor.ts",
- "src/code_analysis/engine/servers/models/sessionServerModels.ts": "src/core/analysis/session-servers/sessionServerModels.ts",
- "src/code_analysis/engine/servers/serverLaunchOrchestrator.ts": "src/core/analysis/session-servers/serverLaunchOrchestrator.ts",
- "src/code_analysis/engine/servers/sessionServerManager.ts": "src/core/analysis/session-servers/sessionServerManager.ts",
- "src/code_analysis/engine/servers/sseNotificationManager.ts": "src/core/analysis/session-servers/sseNotificationManager.ts",
- "src/code_analysis/engine/utils/backendScriptPath.ts": "src/core/analysis/python/backendScriptPath.ts",
- "src/code_analysis/engine/utils/executePython.ts": "src/core/analysis/python/executePython.ts",
- "src/code_analysis/engine/utils/fileHashCalculator.ts": "src/core/analysis/utils/fileHashCalculator.ts",
- "src/code_analysis/engine/utils/saveFiles.ts": "src/core/analysis/utils/saveFiles.ts",
- "src/code_analysis/engine/utils/themeUtils.ts": "src/core/analysis/utils/themeUtils.ts",
- "src/code_analysis/engine/watchers/analysisFilePolicy.ts": "src/core/analysis/watchers/analysisFilePolicy.ts",
- "src/code_analysis/engine/watchers/configurationConverter.ts": "src/core/analysis/watchers/configurationConverter.ts",
- "src/code_analysis/engine/watchers/debounceManager.ts": "src/core/analysis/watchers/debounceManager.ts",
- "src/code_analysis/engine/watchers/directoryReanalysisData.ts": "src/core/analysis/watchers/directoryReanalysisData.ts",
- "src/code_analysis/engine/watchers/directoryReAnalyzer.ts": "src/core/analysis/watchers/directoryReAnalyzer.ts",
- "src/code_analysis/engine/watchers/directorySnapshot.ts": "src/core/analysis/watchers/directorySnapshot.ts",
- "src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts": "src/core/analysis/watchers/directoryWatcherOrchestrator.ts",
- "src/code_analysis/engine/watchers/fileHashTracker.ts": "src/core/analysis/watchers/fileHashTracker.ts",
- "src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts": "src/core/analysis/watchers/fileWatcherOrchestrator.ts",
- "src/code_analysis/engine/watchers/reAnalysisManager.ts": "src/core/analysis/watchers/reAnalysisManager.ts",
- "src/code_analysis/engine/watchers/sessionWatcherManager.ts": "src/core/analysis/watchers/sessionWatcherManager.ts",
- "src/code_analysis/export/exportManifest.ts": "src/core/export/exportManifest.ts",
- "src/code_analysis/export/exportModeSelection.ts": "src/core/export/exportModeSelection.ts",
- "src/code_analysis/export/exportPackageTransaction.ts": "src/core/export/exportPackageTransaction.ts",
- "src/code_analysis/export/gitExportOptions.ts": "src/core/export/gitExportOptions.ts",
- "src/code_analysis/export/gitExportPythonWorkerPool.ts": "src/core/export/gitExportPythonWorkerPool.ts",
- "src/code_analysis/export/gitRevisionExportCore.ts": "src/core/export/gitRevisionExportCore.ts",
- "src/code_analysis/export/gitRevisionExporter.ts": "src/core/export/gitRevisionExporter.ts",
- "src/code_analysis/export/gitTimelineBlobAnalyzer.ts": "src/core/export/gitTimelineBlobAnalyzer.ts",
- "src/code_analysis/historical/analysisUpdateEvents.ts": "src/core/history/analysisUpdateEvents.ts",
- "src/code_analysis/historical/gitAnalysisEligibility.ts": "src/core/history/gitAnalysisEligibility.ts",
- "src/code_analysis/historical/gitAnalysisSessionContext.ts": "src/core/history/gitAnalysisSessionContext.ts",
- "src/code_analysis/historical/gitAnalysisShared.ts": "src/core/history/gitAnalysisShared.ts",
- "src/code_analysis/historical/gitBatchObjectReader.ts": "src/core/history/gitBatchObjectReader.ts",
- "src/code_analysis/historical/gitRepositoryService.ts": "src/core/history/gitRepositoryService.ts",
- "src/code_analysis/historical/gitTimelineBlobIndex.ts": "src/core/history/gitTimelineBlobIndex.ts",
- "src/code_analysis/historical/gitTimelineSampler.ts": "src/core/history/gitTimelineSampler.ts",
- "src/code_analysis/historical/historicalComparisonModels.ts": "src/core/history/historicalComparisonModels.ts",
- "src/code_analysis/historical/historicalComparisonService.ts": "src/core/history/historicalComparisonService.ts",
- "src/code_analysis/historical/index.ts": null,
- "src/code_analysis/historical/projectEvolutionService.ts": "src/core/history/projectEvolutionService.ts",
- "src/code_analysis/refresh/analysisRefreshCoordinator.ts": "src/core/analysis/refresh/analysisRefreshCoordinator.ts",
- "src/code_analysis/refresh/analysisViewModes.ts": "src/core/analysis/refresh/analysisViewModes.ts",
- "src/code_analysis/refresh/index.ts": null,
- "src/code_analysis/services/serverWatcherIntegration.ts": "src/features/analysis/services/serverWatcherIntegration.ts",
- "src/code_analysis/services/workspaceSnapshotModel.ts": "src/features/analysis/workspace/workspaceSnapshotModel.ts",
- "src/code_analysis/services/workspaceSnapshotService.ts": "src/features/analysis/workspace/workspaceSnapshotService.ts",
- "src/code_analysis/services/xrFieldSchemaService.ts": "src/core/analysis/python/xrFieldSchemaService.ts",
- "src/code_analysis/utils/filesByLanguageSortingUtils.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingUtils.ts",
- "src/code_analysis/utils/workspaceFileScanner.ts": "src/features/analysis/workspace/workspaceFileScanner.ts",
- "src/code_analysis/views/AnalysisSectionProvider.ts": "src/features/analysis/views/AnalysisSectionProvider.ts",
- "src/code_analysis/views/index.ts": null,
- "src/code_analysis/views/interactions/handleAnalysisClicks.ts": "src/features/analysis/views/handleAnalysisClicks.ts",
- "src/code_analysis/views/interactions/index.ts": null,
- "src/code_analysis/views/items/analysisItems.ts": "src/features/analysis/views/analysisItems.ts",
- "src/code_analysis/views/items/index.ts": null,
- "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts": "src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts",
- "src/code_analysis/views/subsections/active_analyses/services/activeAnalysesDataService.ts": "src/features/analysis/sections/active-analyses/activeAnalysesDataService.ts",
- "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryMode.ts": "src/features/analysis/sections/settings/analysis-directory-mode/analysisDirectoryMode.ts",
- "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/analysisFileMode.ts": "src/features/analysis/sections/settings/analysis-file-mode/analysisFileMode.ts",
- "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/analysisSettingsSubsectionProvider.ts": "src/features/analysis/sections/settings/analysisSettingsSubsectionProvider.ts",
- "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelay.ts": "src/features/analysis/sections/settings/auto-analysis-delay/autoAnalysisDelay.ts",
- "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabled.ts": "src/features/analysis/sections/settings/auto-analysis-enabled/autoAnalysisEnabled.ts",
- "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/chartTypeDirectory.ts": "src/features/analysis/sections/settings/chart-type-directory/chartTypeDirectory.ts",
- "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/chart_type_file/chartTypeFile.ts": "src/features/analysis/sections/settings/chart-type-file/chartTypeFile.ts",
- "src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/chart_type_shared/sharedChartTypeSettingCore.ts": "src/features/analysis/sections/settings/sharedChartTypeSettingCore.ts",
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectory.ts": "src/features/analysis/sections/settings/dimension-mapping-directory/dimensionMappingDirectory.ts",
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFile.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingFile.ts",
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingValidator.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingValidator.ts",
- "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_shared/sharedDimensionMappingSettingCore.ts": "src/features/analysis/sections/settings/sharedDimensionMappingSettingCore.ts",
- "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/filesByLanguageSorting.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSorting.ts",
- "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/profile_configuration/profileConfiguration.ts": "src/features/analysis/sections/settings/profile-configuration/profileConfiguration.ts",
- "src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts": null,
- "src/code_analysis/views/subsections/analysis_settings/view_theme/viewTheme.ts": "src/features/analysis/sections/settings/view-theme/viewTheme.ts",
- "src/code_analysis/views/subsections/files_by_language/filesByLanguageSubsectionProvider.ts": "src/features/analysis/sections/files-by-language/filesByLanguageSubsectionProvider.ts",
- "src/code_analysis/views/subsections/files_by_language/index.ts": null,
- "src/code_analysis/views/subsections/index.ts": null,
- "src/code_analysis/views/subsections/project_by_language/index.ts": null,
- "src/code_analysis/views/subsections/project_by_language/projectByLanguageSubsectionProvider.ts": "src/features/analysis/sections/project-by-language/projectByLanguageSubsectionProvider.ts",
- "src/collaboration/index.ts": null,
- "src/collaboration/model/anonymousName.ts": "src/core/collaboration/anonymousName.ts",
- "src/collaboration/model/collaborationProfile.ts": "src/core/collaboration/collaborationProfile.ts",
- "src/collaboration/model/connectedParticipant.ts": "src/core/collaboration/connectedParticipant.ts",
- "src/collaboration/services/collaborationProfileManager.ts": "src/core/collaboration/collaborationProfileManager.ts",
- "src/commands/active_servers/activeServersCommands.ts": "src/features/active-servers/commands/activeServersCommandRegistrations.ts",
- "src/commands/analysis/AnalysisCommands.ts": "src/features/analysis/commands/analysisCommandRegistrations.ts",
- "src/commands/analysis/index.ts": null,
- "src/commands/babia_examples/babiaExamplesCommands.ts": "src/features/examples/commands/babiaExamplesCommandRegistrations.ts",
- "src/commands/collaboration/collaborationCommands.ts": "src/features/collaboration/commands/collaborationCommands.ts",
- "src/commands/common/generalCommands.ts": "src/app/commands/generalCommands.ts",
- "src/commands/index.ts": "src/app/commands/registerAllCommands.ts",
- "src/commands/learn_more/learnMoreCommands.ts": "src/features/learn-more/commands/learnMoreCommandRegistrations.ts",
- "src/commands/python_env/pythonEnvCommands.ts": "src/features/python-env/commands/pythonEnvCommandRegistrations.ts",
- "src/commands/servers/serverCommands.ts": "src/features/servers/commands/serverCommandRegistrations.ts",
- "src/commands/shared/commandRegistry.ts": "src/platform/commands/commandRegistry.ts",
- "src/commands/shared/index.ts": null,
- "src/commands/visualization_settings/visualizationSettingsCommands.ts": "src/features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts",
- "src/commands/visualize_data/visualizeDataCommands.ts": "src/features/visualize-data/commands/visualizeDataCommandRegistrations.ts",
- "src/core/extensionContext.ts": "src/platform/extensionContext.ts",
- "src/core/logging/logger.ts": "src/platform/logging/logger.ts",
- "src/core/logging/logPolicy.ts": "src/platform/logging/logPolicy.ts",
- "src/core/startup/startupCoordinator.ts": "src/app/startup/startupCoordinator.ts",
- "src/extension.ts": "src/extension.ts",
- "src/learn_more/commands/learnMoreCommands.ts": "src/features/learn-more/commands/learnMoreCommands.ts",
- "src/python_env/commands/pythonEnvCommands.ts": "src/features/python-env/commands/pythonEnvCommands.ts",
- "src/python_env/runtime/pythonEnvUiState.ts": "src/core/python-env/pythonEnvUiState.ts",
- "src/python_env/runtime/pythonPackageManifest.ts": "src/core/python-env/pythonPackageManifest.ts",
- "src/python_env/runtime/venvManager.ts": "src/core/python-env/venvManager.ts",
- "src/python_env/storage/pythonEnvStorage.ts": "src/core/python-env/pythonEnvStorage.ts",
- "src/python_env/utils/pythonEnvUtils.ts": "src/core/python-env/pythonEnvUtils.ts",
- "src/python_env/views/items/pythonEnvItems.ts": "src/features/python-env/views/pythonEnvItems.ts",
- "src/remote_access/index.ts": null,
- "src/remote_access/model/remoteAccessModel.ts": "src/core/remote-access/remoteAccessModel.ts",
- "src/remote_access/security/remoteSessionAuthority.ts": "src/core/remote-access/remoteSessionAuthority.ts",
- "src/remote_access/services/cloudflaredBinaryManager.ts": "src/core/remote-access/cloudflaredBinaryManager.ts",
- "src/remote_access/services/remoteAccessManager.ts": "src/core/remote-access/remoteAccessManager.ts",
- "src/servers/commands/serverCommands.ts": "src/features/servers/commands/serverCommands.ts",
- "src/servers/runtime/analysis/analysisBridgeReplies.ts": "src/core/server/analysis/analysisBridgeReplies.ts",
- "src/servers/runtime/analysis/analysisFeatureHost.ts": "src/core/server/analysis/analysisFeatureHost.ts",
- "src/servers/runtime/analysis/analysisMessageRouter.ts": "src/core/server/analysis/analysisMessageRouter.ts",
- "src/servers/runtime/analysis/dependencyGraphBridge.ts": "src/core/server/analysis/dependencyGraphBridge.ts",
- "src/servers/runtime/analysis/historicalComparisonBridge.ts": "src/core/server/analysis/historicalComparisonBridge.ts",
- "src/servers/runtime/analysis/projectEvolutionBridge.ts": "src/core/server/analysis/projectEvolutionBridge.ts",
- "src/servers/runtime/analysisServerCapabilities.ts": "src/core/server/analysisServerCapabilities.ts",
- "src/servers/runtime/broadcast/broadcastTypes.ts": "src/core/server/broadcast/broadcastTypes.ts",
- "src/servers/runtime/broadcast/mediaFrame.ts": "src/core/server/broadcast/mediaFrame.ts",
- "src/servers/runtime/broadcast/relayPolicy.ts": "src/core/server/broadcast/relayPolicy.ts",
- "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts": "src/core/server/broadcast/screenBroadcastSignalingServer.ts",
- "src/servers/runtime/collaboration/collaborationRoomServer.ts": "src/core/server/collaboration/collaborationRoomServer.ts",
- "src/servers/runtime/collaboration/collaborationSessionApi.ts": "src/core/server/collaboration/collaborationSessionApi.ts",
- "src/servers/runtime/collaboration/participantIdentity.ts": "src/core/server/collaboration/participantIdentity.ts",
- "src/servers/runtime/collaboration/roomMessageCodec.ts": "src/core/server/collaboration/roomMessageCodec.ts",
- "src/servers/runtime/collaboration/roomRegistry.ts": "src/core/server/collaboration/roomRegistry.ts",
- "src/servers/runtime/collaboration/roomSharedState.ts": "src/core/server/collaboration/roomSharedState.ts",
- "src/servers/runtime/collaboration/roomTypes.ts": "src/core/server/collaboration/roomTypes.ts",
- "src/servers/runtime/generatedHttpsCertificateManager.ts": "src/core/server/generatedHttpsCertificateManager.ts",
- "src/servers/runtime/http/httpRespond.ts": "src/core/server/http/httpRespond.ts",
- "src/servers/runtime/http/staticAssets.ts": "src/core/server/http/staticAssets.ts",
- "src/servers/runtime/httpsCustomServer.ts": "src/core/server/httpsCustomServer.ts",
- "src/servers/runtime/httpsDefaultServer.ts": "src/core/server/httpsDefaultServer.ts",
- "src/servers/runtime/httpServer.ts": "src/core/server/httpServer.ts",
- "src/servers/runtime/httpsServerBase.ts": "src/core/server/httpsServerBase.ts",
- "src/servers/runtime/httpsTlsOptions.ts": "src/core/server/httpsTlsOptions.ts",
- "src/servers/runtime/index.ts": "src/core/server/launchServerWithFile.ts",
- "src/servers/runtime/multiServerLauncher.ts": "src/core/server/multiServerLauncher.ts",
- "src/servers/runtime/portManager.ts": "src/core/server/portManager.ts",
- "src/servers/runtime/previewRenderer.ts": "src/features/active-servers/services/previewRenderer.ts",
- "src/servers/runtime/remote/brandMark.ts": "src/core/server/remote/brandMark.ts",
- "src/servers/runtime/remote/pairingPage.ts": "src/core/server/remote/pairingPage.ts",
- "src/servers/runtime/remote/remoteAccessPolicy.ts": "src/core/server/remote/remoteAccessPolicy.ts",
- "src/servers/runtime/remote/remotePairingApi.ts": "src/core/server/remote/remotePairingApi.ts",
- "src/servers/runtime/serverFactory.ts": "src/core/server/serverFactory.ts",
- "src/servers/runtime/sse/sseClientRegistry.ts": "src/core/server/sse/sseClientRegistry.ts",
- "src/servers/runtime/sse/SSEManager.ts": "src/core/server/sse/SSEManager.ts",
- "src/servers/runtime/ws/webSocketEndpoint.ts": "src/core/server/ws/webSocketEndpoint.ts",
- "src/servers/storage/serverSettingsManager.ts": "src/core/server/serverSettingsManager.ts",
- "src/servers/utils/networkUtils.ts": "src/core/server/networkUtils.ts",
- "src/servers/views/interactions/handleConfigurationClicks.ts": "src/features/servers/views/handleConfigurationClicks.ts",
- "src/servers/views/interactions/launchNotifications.ts": "src/features/active-servers/views/launchNotifications.ts",
- "src/servers/views/items/configurationItems.ts": "src/features/servers/views/configurationItems.ts",
- "src/utils/commandBuilder.ts": "src/platform/commands/commandBuilder.ts",
- "src/utils/commonCommands.ts": "src/app/sidebar/commonCommands.ts",
- "src/utils/detailDialog.ts": "src/platform/ui/detailDialog.ts",
- "src/utils/errorHandler.ts": "src/platform/ui/errorHandler.ts",
- "src/utils/fileToServerMap.ts": "src/core/server/fileToServerMap.ts",
- "src/utils/getVisualizationConfiguration.ts": "src/core/charts/getVisualizationConfiguration.ts",
- "src/utils/jsonFieldAnalyzer.ts": "src/features/visualize-data/services/jsonFieldAnalyzer.ts",
- "src/utils/languageMetadata.ts": "src/core/analysis/languages/languageMetadata.ts",
- "src/utils/nonceGenerator.ts": "src/shared/nonceGenerator.ts",
- "src/utils/sha256Generator.ts": "src/shared/sha256Generator.ts",
- "src/utils/supportedLanguages.ts": "src/core/analysis/languages/supportedLanguages.ts",
- "src/utils/uriPathConverter.ts": "src/features/analysis/commands/dom/uriPathConverter.ts",
- "src/views/active_servers/ActiveServersSectionProvider.ts": "src/features/active-servers/views/ActiveServersSectionProvider.ts",
- "src/views/active_servers/index.ts": null,
- "src/views/active_servers/items/activeServerItems.ts": "src/features/active-servers/views/activeServerItems.ts",
- "src/views/babia_examples/BabiaExamplesSectionProvider.ts": "src/features/examples/views/BabiaExamplesSectionProvider.ts",
- "src/views/babia_examples/index.ts": null,
- "src/views/babia_examples/interactions/handleBabiaExampleClicks.ts": "src/features/examples/views/handleBabiaExampleClicks.ts",
- "src/views/babia_examples/items/babiaExampleItems.ts": "src/features/examples/views/babiaExampleItems.ts",
- "src/views/collaboration/CollaborationSectionProvider.ts": "src/features/collaboration/views/CollaborationSectionProvider.ts",
- "src/views/collaboration/index.ts": null,
- "src/views/collaboration/items/collaborationItems.ts": "src/features/collaboration/views/collaborationItems.ts",
- "src/views/common/baseInterfaces.ts": "src/platform/tree/baseInterfaces.ts",
- "src/views/common/sectionChild.ts": "src/app/sidebar/sectionChild.ts",
- "src/views/index.ts": null,
- "src/views/learn_more/index.ts": null,
- "src/views/learn_more/interactions/handleLearnMoreClicks.ts": "src/features/learn-more/views/handleLearnMoreClicks.ts",
- "src/views/learn_more/items/learnMoreItems.ts": "src/features/learn-more/views/learnMoreItems.ts",
- "src/views/learn_more/LearnMoreSectionProvider.ts": "src/features/learn-more/views/LearnMoreSectionProvider.ts",
- "src/views/ModularTreeDataProvider.ts": "src/app/sidebar/ModularTreeDataProvider.ts",
- "src/views/python_env/index.ts": null,
- "src/views/python_env/PythonEnvSectionProvider.ts": "src/features/python-env/views/PythonEnvSectionProvider.ts",
- "src/views/sectionDefinitions.ts": "src/app/sidebar/sectionDefinitions.ts",
- "src/views/servers/index.ts": null,
- "src/views/servers/items/serverItems.ts": "src/features/servers/views/serverItems.ts",
- "src/views/servers/ServersSectionProvider.ts": "src/features/servers/views/ServersSectionProvider.ts",
- "src/views/visualization_settings/index.ts": null,
- "src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts": "src/features/visualization-settings/views/handleVisualizationSettingsClicks.ts",
- "src/views/visualization_settings/items/visualizationSettingsItems.ts": "src/features/visualization-settings/views/visualizationSettingsSectionItems.ts",
- "src/views/visualization_settings/VisualizationSettingsSectionProvider.ts": "src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts",
- "src/views/visualize_data/index.ts": null,
- "src/views/visualize_data/interactions/handleVisualizeDataClicks.ts": "src/features/visualize-data/views/handleVisualizeDataClicks.ts",
- "src/views/visualize_data/items/visualizeDataItems.ts": "src/features/visualize-data/views/visualizeDataSectionItems.ts",
- "src/views/visualize_data/VisualizeDataSectionProvider.ts": "src/features/visualize-data/views/VisualizeDataSectionProvider.ts",
- "src/visualization_settings/commands/visualizationSettingsCommands.ts": "src/features/visualization-settings/commands/visualizationSettingsCommands.ts",
- "src/visualization_settings/index.ts": null,
- "src/visualization_settings/model/settingsModel.ts": "src/core/charts/settings/settingsModel.ts",
- "src/visualization_settings/storage/settingsStorage.ts": "src/core/charts/settings/settingsStorage.ts",
- "src/visualization_settings/utils/colorPickerUtils.ts": "src/features/visualization-settings/views/colorPickerUtils.ts",
- "src/visualization_settings/utils/dynamicColorIconGenerator.ts": "src/features/visualization-settings/views/dynamicColorIconGenerator.ts",
- "src/visualization_settings/utils/settingsAccessors.ts": "src/core/charts/settings/settingsAccessors.ts",
- "src/visualization_settings/views/interactions/handleSettingsInteraction.ts": "src/features/visualization-settings/views/handleSettingsInteraction.ts",
- "src/visualization_settings/views/items/visualizationSettingsItems.ts": "src/features/visualization-settings/views/visualizationSettingsItems.ts",
- "src/visualize_data/commands/visualizeDataCommands.ts": "src/features/visualize-data/commands/visualizeDataCommands.ts",
- "src/visualize_data/model/visualizeDataModel.ts": "src/features/visualize-data/model/visualizeDataModel.ts",
- "src/visualize_data/runtime/visualizationRestorer.ts": "src/features/visualize-data/services/visualizationRestorer.ts",
- "src/visualize_data/state/visualizeDataState.ts": "src/features/visualize-data/model/visualizeDataState.ts",
- "src/visualize_data/views/interactions/visualizationLauncher.ts": "src/features/visualize-data/services/visualizationLauncher.ts",
- "src/visualize_data/views/items/visualizationItem.ts": "src/features/visualize-data/views/visualizationItem.ts",
- "src/visualize_data/views/items/visualizeDataItems.ts": "src/features/visualize-data/views/visualizeDataItems.ts"
-}
-```
-
+Machine-readable form: [`src-move-map.json`](src-move-map.json) (`moves`: old → new, `null` = dissolved, key = value = stays; `batch`: the batch of each row). Keys and values use the `src/…` form that tests and docs use. It is the input of the batch codemod (A.5), of `measureGuardrails.cjs --renamed` and of the H3 check (A.6).
## 5. Move plan
@@ -1200,6 +875,36 @@ The bundle cannot be byte-identical. In `npm run compile` (webpack `mode: 'none'
3. **Same user surface.** `test/baseline/featureBaseline.test.cjs` green, with **no** `--write`: commands, menus, views, settings, persisted keys, shipped files, chart types, in-scene modes and Python CLI are unchanged. The command set is also pinned by `assertUniqueCommandIds` at activation.
4. **All gates:** `npm test`, `npm run lint` (warning budget unchanged), `npm run typecheck`, the reachability guardrail (`unreachable = 0`), plus the batch's specialised suites (§5.3). The maintainer runs one F5 smoke after B9, B12 and B14 (open the sidebar, run one XR analysis, start and stop a server).
+## 7. Result (story #55 executed, 2026-11-25)
+
+The move ran on branch `claude/project-thread-n2s3q6-src-layout`, from `v1.2.1` at `41cfc523`: the map refresh (§4.1, `cbcd9d24`), the tooling commit (`992f84b2`: `measureGuardrails.cjs --renamed`, two-level units under `core/` and `features/`, the layer test), batch 0 in four commits, then B1–B14 in table order, one commit each, and a closing commit with the layout guard (`test/tooling/srcLayout.test.cjs`). The session log is `.claude/docs/v1.2.1/sessions/55-src-layout.md`.
+
+**Files per batch** (moved with `git mv`; batch 0 deletes): B0 46 barrels · B1 9 · B2 5 · B3 9 · B4 13 · B5 12 · B6 10 · B7 11 · B8 11 · B9 44 · B10 16 · B11 21 · B12 64 · B13 55 · B14 7. Total: 287 moved, 46 deleted, 4 already in place (`extension.ts` and the three `platform/` files of #42).
+
+**H3 for every batch** (§6): `compare-out.mjs` 291 of 291 compiled modules equivalent, 0 problems (batch 0: 311 → 291 modules with its barrel-aware variant, 0 problems); webpack (mode none) 512 modules / 279 `src` modules after every move batch; `featureBaseline` green without `--write`; `npm test` 1,059 of 1,059 and lint at the 158-warning budget after every commit; guardrails re-keyed with `--renamed`, ratcheted metrics unchanged, waivers still 6. B3, B11 and B12 also ran `test:python` and `test:analysis`; B7, B9 and B12 the XR harness (B7 and B12 the immersive harness too).
+
+**Package** (`npm run package:vsix`, against the same build of `41cfc523`): the same 199 files. Every file is byte-identical except `CHANGELOG.md` (the story's line), `dist/extension.js` (1,194,937 → 1,173,899 bytes: the 46 barrel modules are gone from the bundle) and the lazy `get-port` chunk, renamed `756.extension.js` → `515.extension.js` by webpack's deterministic ids. Its contents are identical apart from the id.
+
+**Shape** (A.7, `treestats.mjs`):
+
+| Metric | Before (`41cfc523`) | After |
+|---|---:|---:|
+| `.ts` files | 337 | 291 |
+| lines | 49,226 | 48,773 |
+| folders | 172 | 99 |
+| top-level entries of `src/` | 16 folders + `extension.ts` | 5 layers + `extension.ts` |
+| snake_case / camelCase folder names | 57 / 1 | 0 / 0 |
+| kebab-case folder names | 0 | 23 |
+| single-file leaf folders | 70 | 9 |
+| `index.ts` files (re-export barrels) | 48 (46) | 0 (0) |
+| max depth below `src/` | 5 | 5 |
+| folder units in `folderDependencies.json` / allowed edges | 17 / 78 | 22 / 73 |
+| two-way folder pairs | 5 | 4 |
+
+The four pairs left are all inside the server/analysis subsystems, each with its reason in `folderDependencies.json`: `core/analysis<->core/history`, `core/analysis<->core/server`, `core/remote-access<->core/server`, and `core/server<->features/active-servers`. The last one is the one upward edge (§3.5). The other `layerExceptions` entry is the cross-feature edge `features/active-servers -> features/collaboration` (the nested COLLABORATION group).
+
+**Left as found:** `templates/components/COMPONENTS.md` still says `src/.../customComponents/runtimeAssembly.ts` (now `src/core/analysis/scene-assets/runtimeAssembly.ts`). `templates/` ships, and this story changes no shipped file. Historical docs (`V1.2.0_STATUS.md`, the session logs, `AUDIT.md`, the ROADMAP tables) keep the old paths. The bootstrap `vscodeFreeFloor` was lowered 109 → 106 in batch 0, only because three vscode-free barrels were deleted.
+
## Appendix: scripts
All of them are read-only measurements except A.5, which moves files. They are ES modules for Node ≥ 20 (`.mjs`). Copy them to a scratch folder, and pass the extension root (`apps/vscode-extension`) or the repo root as stated. They are kept here instead of `scripts/`: `scripts/` is linted and shipped-adjacent, and these tools are only needed while #55 runs.
diff --git a/docs/cleanup/src-move-map.json b/docs/cleanup/src-move-map.json
new file mode 100644
index 000000000..f28f9c00e
--- /dev/null
+++ b/docs/cleanup/src-move-map.json
@@ -0,0 +1,681 @@
+{
+ "description": "Move map of story #55 (docs/cleanup/src-layout.md §4), refreshed on the tree after #34, #35, #42 and #56. Keys and values are paths relative to apps/vscode-extension; null = re-export barrel dissolved in batch 0; key == value = stays.",
+ "moves": {
+ "src/active_servers/commands/activeServersCommands.ts": "src/features/active-servers/commands/activeServersCommands.ts",
+ "src/active_servers/model/activeServerModel.ts": "src/core/server/registry/activeServerModel.ts",
+ "src/active_servers/registry/activeServerRegistry.ts": "src/core/server/registry/activeServerRegistry.ts",
+ "src/active_servers/runtime/serverControl.ts": "src/core/server/serverControl.ts",
+ "src/active_servers/services/panelManager.ts": "src/platform/webview/panelManager.ts",
+ "src/active_servers/services/serverOpenActions.ts": "src/features/active-servers/services/serverOpenActions.ts",
+ "src/active_servers/services/serverRegistrar.ts": "src/core/server/registry/serverRegistrar.ts",
+ "src/active_servers/services/withServer.ts": "src/features/active-servers/services/withServer.ts",
+ "src/active_servers/views/interactions/handleServerActions.ts": "src/features/active-servers/views/handleServerActions.ts",
+ "src/active_servers/views/interactions/serverDetailsFormat.ts": "src/features/active-servers/views/serverDetailsFormat.ts",
+ "src/babia_examples/commands/babiaExamplesCommands.ts": "src/features/examples/commands/babiaExamplesCommands.ts",
+ "src/babia_examples/model/babiaExampleModel.ts": "src/features/examples/model/babiaExampleModel.ts",
+ "src/babia_examples/runtime/exampleLauncher.ts": "src/features/examples/services/exampleLauncher.ts",
+ "src/babia_examples/views/babiaExamplesTreeView.ts": "src/features/examples/views/babiaExamplesTreeView.ts",
+ "src/babia_examples/views/interactions/handleExampleClicks.ts": "src/features/examples/views/handleExampleClicks.ts",
+ "src/babia_examples/views/items/exampleItems.ts": "src/features/examples/views/exampleItems.ts",
+ "src/babia_templates/charts/chartPresentation.ts": "src/core/charts/chartPresentation.ts",
+ "src/babia_templates/charts/templateCharts.ts": "src/core/charts/templateCharts.ts",
+ "src/babia_templates/models/chartModels.ts": "src/core/charts/chartModels.ts",
+ "src/babia_templates/models/xrFieldModels.ts": "src/core/charts/xrFieldModels.ts",
+ "src/babia_templates/processing/dimensionValidator.ts": "src/core/charts/processing/dimensionValidator.ts",
+ "src/babia_templates/processing/placeholders/createChart.ts": "src/core/charts/processing/placeholders/createChart.ts",
+ "src/babia_templates/processing/placeholders/createStructure.ts": "src/core/charts/processing/placeholders/createStructure.ts",
+ "src/babia_templates/processing/templateHTMLProcessor.ts": "src/core/charts/processing/templateHTMLProcessor.ts",
+ "src/babia_templates/processing/templateProcessor.ts": "src/core/charts/processing/templateProcessor.ts",
+ "src/babia_templates/registry/chartRegistry.ts": "src/core/charts/chartRegistry.ts",
+ "src/code_analysis/commands/analysisCommands.ts": "src/features/analysis/commands/analysisCommands.ts",
+ "src/code_analysis/commands/clean_analysis/cleanAnalysisCommands.ts": "src/features/analysis/commands/cleanAnalysisCommands.ts",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisCommands.ts",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisLivePanelCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisLivePanelCommands.ts",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisXRCommands.ts": "src/features/analysis/commands/directory/directoryAnalysisXRCommands.ts",
+ "src/code_analysis/commands/directory_analysis/index.ts": null,
+ "src/code_analysis/commands/directory_analysis/projectAnalysisCommands.ts": "src/features/analysis/commands/directory/projectAnalysisCommands.ts",
+ "src/code_analysis/commands/dom_visualization/domVisualizationCommands.ts": "src/features/analysis/commands/dom/domVisualizationCommands.ts",
+ "src/code_analysis/commands/dom_visualization/index.ts": null,
+ "src/code_analysis/commands/file_analysis/fileAnalysisCommands.ts": "src/features/analysis/commands/file/fileAnalysisCommands.ts",
+ "src/code_analysis/commands/file_analysis/fileAnalysisLivePanelCommands.ts": "src/features/analysis/commands/file/fileAnalysisLivePanelCommands.ts",
+ "src/code_analysis/commands/file_analysis/fileAnalysisXRCommands.ts": "src/features/analysis/commands/file/fileAnalysisXRCommands.ts",
+ "src/code_analysis/commands/file_analysis/index.ts": null,
+ "src/code_analysis/commands/subsections/active_analyses/activeAnalysesCommands.ts": "src/features/analysis/sections/active-analyses/activeAnalysesCommandRegistrations.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryModeCommands.ts": "src/features/analysis/sections/settings/analysis-directory-mode/analysisDirectoryModeCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/analysisFileModeCommands.ts": "src/features/analysis/sections/settings/analysis-file-mode/analysisFileModeCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/analysisSettingsCommands.ts": "src/features/analysis/sections/settings/analysisSettingsCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelayCommands.ts": "src/features/analysis/sections/settings/auto-analysis-delay/autoAnalysisDelayCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabledCommands.ts": "src/features/analysis/sections/settings/auto-analysis-enabled/autoAnalysisEnabledCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_directory/chartTypeDirectoryCommands.ts": "src/features/analysis/sections/settings/chart-type-directory/chartTypeDirectoryCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_file/chartTypeFileCommands.ts": "src/features/analysis/sections/settings/chart-type-file/chartTypeFileCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_shared/chartTypeCommandFactory.ts": "src/features/analysis/sections/settings/chartTypeCommandFactory.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectoryCommands.ts": "src/features/analysis/sections/settings/dimension-mapping-directory/dimensionMappingDirectoryCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFileCommands.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingFileCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/filesByLanguageSortingCommands.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/profileConfigurationCommands.ts": "src/features/analysis/sections/settings/profile-configuration/profileConfigurationCommands.ts",
+ "src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts": null,
+ "src/code_analysis/commands/subsections/analysis_settings/view_theme/viewThemeCommands.ts": "src/features/analysis/sections/settings/view-theme/viewThemeCommands.ts",
+ "src/code_analysis/commands/subsections/files_by_language/filesByLanguageCommands.ts": "src/features/analysis/sections/files-by-language/filesByLanguageCommands.ts",
+ "src/code_analysis/commands/subsections/index.ts": null,
+ "src/code_analysis/commands/subsections/project_by_language/projectByLanguageCommands.ts": "src/features/analysis/sections/project-by-language/projectByLanguageCommands.ts",
+ "src/code_analysis/configuration/analysisConfigurationStorage.ts": "src/core/analysis/configuration/analysisConfigurationStorage.ts",
+ "src/code_analysis/configuration/index.ts": null,
+ "src/code_analysis/configuration/models/analysisConfiguration.ts": "src/core/analysis/configuration/analysisConfiguration.ts",
+ "src/code_analysis/configuration/models/index.ts": null,
+ "src/code_analysis/dependencies/dependencyGraphModels.ts": "src/core/dependencies/dependencyGraphModels.ts",
+ "src/code_analysis/dependencies/dependencyGraphService.ts": "src/core/dependencies/dependencyGraphService.ts",
+ "src/code_analysis/dependencies/index.ts": null,
+ "src/code_analysis/engine/analysisOrchestrator.ts": "src/core/analysis/analysisOrchestrator.ts",
+ "src/code_analysis/engine/components/customComponents/analysisModeComponentAsset.ts": "src/core/analysis/scene-assets/analysisModeComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/analysisTableComponentAsset.ts": "src/core/analysis/scene-assets/analysisTableComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/avatarComponentAsset.ts": "src/core/analysis/scene-assets/avatarComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/codexrDebugComponentAsset.ts": "src/core/analysis/scene-assets/codexrDebugComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts": "src/core/analysis/scene-assets/codexrRoomComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts": "src/core/analysis/scene-assets/collaborationComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/commonComponentAsset.ts": "src/core/analysis/scene-assets/commonComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/commonGitRefPickerComponentAsset.ts": "src/core/analysis/scene-assets/commonGitRefPickerComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/dependencyGraphComponentAsset.ts": "src/core/analysis/scene-assets/dependencyGraphComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/dependencyVisualBudgetComponentAsset.ts": "src/core/analysis/scene-assets/dependencyVisualBudgetComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts": "src/core/analysis/scene-assets/guideScreenComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/historicalComparisonComponentAsset.ts": "src/core/analysis/scene-assets/historicalComparisonComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/immersiveRigComponentAsset.ts": "src/core/analysis/scene-assets/immersiveRigComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/index.ts": null,
+ "src/code_analysis/engine/components/customComponents/logoComponentAsset.ts": "src/core/analysis/scene-assets/logoComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/pointerPolicyComponentAsset.ts": "src/core/analysis/scene-assets/pointerPolicyComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/projectEvolutionComponentAsset.ts": "src/core/analysis/scene-assets/projectEvolutionComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/renderBudgetComponentAsset.ts": "src/core/analysis/scene-assets/renderBudgetComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/runtimeAssembly.ts": "src/core/analysis/scene-assets/runtimeAssembly.ts",
+ "src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts": "src/core/analysis/scene-assets/singleFileRuntimeAssets.ts",
+ "src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts": "src/core/analysis/scene-assets/virtualScreenComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/xrChartDebugComponentAsset.ts": "src/core/analysis/scene-assets/xrChartDebugComponentAsset.ts",
+ "src/code_analysis/engine/components/customComponents/xrChartMappingUiComponentAsset.ts": "src/core/analysis/scene-assets/xrChartMappingUiComponentAsset.ts",
+ "src/code_analysis/engine/core/analysisSession.ts": "src/core/analysis/session/analysisSession.ts",
+ "src/code_analysis/engine/core/sessionRegistry.ts": "src/core/analysis/session/sessionRegistry.ts",
+ "src/code_analysis/engine/launchers/launcherLivePanel.ts": "src/core/analysis/launchers/launcherLivePanel.ts",
+ "src/code_analysis/engine/launchers/launcherVisualizeDOM.ts": "src/core/analysis/launchers/launcherVisualizeDOM.ts",
+ "src/code_analysis/engine/launchers/launcherXRAnalysis.ts": "src/core/analysis/launchers/launcherXRAnalysis.ts",
+ "src/code_analysis/engine/launchers/launchPipeline.ts": "src/core/analysis/launchers/launchPipeline.ts",
+ "src/code_analysis/engine/parsers/directoryXRParser.ts": "src/core/analysis/parsers/directoryXRParser.ts",
+ "src/code_analysis/engine/parsers/fileXRParser.ts": "src/core/analysis/parsers/fileXRParser.ts",
+ "src/code_analysis/engine/parsers/livePanelParser.ts": "src/core/analysis/parsers/livePanelParser.ts",
+ "src/code_analysis/engine/parsers/visualizeDOMParser.ts": "src/core/analysis/parsers/visualizeDOMParser.ts",
+ "src/code_analysis/engine/processors/analysisBootstrap.ts": "src/core/analysis/processors/analysisBootstrap.ts",
+ "src/code_analysis/engine/processors/FileRequirementProcessor.ts": "src/core/analysis/processors/FileRequirementProcessor.ts",
+ "src/code_analysis/engine/servers/models/sessionServerModels.ts": "src/core/analysis/session-servers/sessionServerModels.ts",
+ "src/code_analysis/engine/servers/serverLaunchOrchestrator.ts": "src/core/analysis/session-servers/serverLaunchOrchestrator.ts",
+ "src/code_analysis/engine/servers/sessionServerManager.ts": "src/core/analysis/session-servers/sessionServerManager.ts",
+ "src/code_analysis/engine/servers/sseNotificationManager.ts": "src/core/analysis/session-servers/sseNotificationManager.ts",
+ "src/code_analysis/engine/utils/backendScriptPath.ts": "src/core/analysis/python/backendScriptPath.ts",
+ "src/code_analysis/engine/utils/executePython.ts": "src/core/analysis/python/executePython.ts",
+ "src/code_analysis/engine/utils/fileHashCalculator.ts": "src/core/analysis/utils/fileHashCalculator.ts",
+ "src/code_analysis/engine/utils/pythonStderrStream.ts": "src/core/analysis/python/pythonStderrStream.ts",
+ "src/code_analysis/engine/utils/saveFiles.ts": "src/core/analysis/utils/saveFiles.ts",
+ "src/code_analysis/engine/utils/themeUtils.ts": "src/core/analysis/utils/themeUtils.ts",
+ "src/code_analysis/engine/watchers/analysisFilePolicy.ts": "src/core/analysis/watchers/analysisFilePolicy.ts",
+ "src/code_analysis/engine/watchers/configurationConverter.ts": "src/core/analysis/watchers/configurationConverter.ts",
+ "src/code_analysis/engine/watchers/debounceManager.ts": "src/core/analysis/watchers/debounceManager.ts",
+ "src/code_analysis/engine/watchers/directoryReanalysisData.ts": "src/core/analysis/watchers/directoryReanalysisData.ts",
+ "src/code_analysis/engine/watchers/directoryReAnalyzer.ts": "src/core/analysis/watchers/directoryReAnalyzer.ts",
+ "src/code_analysis/engine/watchers/directorySnapshot.ts": "src/core/analysis/watchers/directorySnapshot.ts",
+ "src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts": "src/core/analysis/watchers/directoryWatcherOrchestrator.ts",
+ "src/code_analysis/engine/watchers/fileHashTracker.ts": "src/core/analysis/watchers/fileHashTracker.ts",
+ "src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts": "src/core/analysis/watchers/fileWatcherOrchestrator.ts",
+ "src/code_analysis/engine/watchers/reAnalysisManager.ts": "src/core/analysis/watchers/reAnalysisManager.ts",
+ "src/code_analysis/engine/watchers/sessionWatcherManager.ts": "src/core/analysis/watchers/sessionWatcherManager.ts",
+ "src/code_analysis/export/exportManifest.ts": "src/core/export/exportManifest.ts",
+ "src/code_analysis/export/exportModeSelection.ts": "src/core/export/exportModeSelection.ts",
+ "src/code_analysis/export/exportPackageTransaction.ts": "src/core/export/exportPackageTransaction.ts",
+ "src/code_analysis/export/gitExportOptions.ts": "src/core/export/gitExportOptions.ts",
+ "src/code_analysis/export/gitExportPythonWorkerPool.ts": "src/core/export/gitExportPythonWorkerPool.ts",
+ "src/code_analysis/export/gitRevisionExportCore.ts": "src/core/export/gitRevisionExportCore.ts",
+ "src/code_analysis/export/gitRevisionExporter.ts": "src/core/export/gitRevisionExporter.ts",
+ "src/code_analysis/export/gitTimelineBlobAnalyzer.ts": "src/core/export/gitTimelineBlobAnalyzer.ts",
+ "src/code_analysis/historical/analysisUpdateEvents.ts": "src/core/history/analysisUpdateEvents.ts",
+ "src/code_analysis/historical/gitAnalysisEligibility.ts": "src/core/history/gitAnalysisEligibility.ts",
+ "src/code_analysis/historical/gitAnalysisSessionContext.ts": "src/core/history/gitAnalysisSessionContext.ts",
+ "src/code_analysis/historical/gitAnalysisShared.ts": "src/core/history/gitAnalysisShared.ts",
+ "src/code_analysis/historical/gitBatchObjectReader.ts": "src/core/history/gitBatchObjectReader.ts",
+ "src/code_analysis/historical/gitRepositoryService.ts": "src/core/history/gitRepositoryService.ts",
+ "src/code_analysis/historical/gitTimelineBlobIndex.ts": "src/core/history/gitTimelineBlobIndex.ts",
+ "src/code_analysis/historical/gitTimelineSampler.ts": "src/core/history/gitTimelineSampler.ts",
+ "src/code_analysis/historical/historicalComparisonModels.ts": "src/core/history/historicalComparisonModels.ts",
+ "src/code_analysis/historical/historicalComparisonService.ts": "src/core/history/historicalComparisonService.ts",
+ "src/code_analysis/historical/index.ts": null,
+ "src/code_analysis/historical/projectEvolutionService.ts": "src/core/history/projectEvolutionService.ts",
+ "src/code_analysis/refresh/analysisRefreshCoordinator.ts": "src/core/analysis/refresh/analysisRefreshCoordinator.ts",
+ "src/code_analysis/refresh/analysisViewModes.ts": "src/core/analysis/refresh/analysisViewModes.ts",
+ "src/code_analysis/refresh/index.ts": null,
+ "src/code_analysis/services/serverWatcherIntegration.ts": "src/features/analysis/services/serverWatcherIntegration.ts",
+ "src/code_analysis/services/workspaceSnapshotModel.ts": "src/features/analysis/workspace/workspaceSnapshotModel.ts",
+ "src/code_analysis/services/workspaceSnapshotService.ts": "src/features/analysis/workspace/workspaceSnapshotService.ts",
+ "src/code_analysis/services/xrFieldSchemaService.ts": "src/core/analysis/python/xrFieldSchemaService.ts",
+ "src/code_analysis/utils/filesByLanguageSortingUtils.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSortingUtils.ts",
+ "src/code_analysis/utils/workspaceFileScanner.ts": "src/features/analysis/workspace/workspaceFileScanner.ts",
+ "src/code_analysis/views/AnalysisSectionProvider.ts": "src/features/analysis/views/AnalysisSectionProvider.ts",
+ "src/code_analysis/views/index.ts": null,
+ "src/code_analysis/views/interactions/handleAnalysisClicks.ts": "src/features/analysis/views/handleAnalysisClicks.ts",
+ "src/code_analysis/views/interactions/index.ts": null,
+ "src/code_analysis/views/items/analysisItems.ts": "src/features/analysis/views/analysisItems.ts",
+ "src/code_analysis/views/items/index.ts": null,
+ "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts": "src/features/analysis/sections/active-analyses/activeAnalysesCommands.ts",
+ "src/code_analysis/views/subsections/active_analyses/services/activeAnalysesDataService.ts": "src/features/analysis/sections/active-analyses/activeAnalysesDataService.ts",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryMode.ts": "src/features/analysis/sections/settings/analysis-directory-mode/analysisDirectoryMode.ts",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/analysisFileMode.ts": "src/features/analysis/sections/settings/analysis-file-mode/analysisFileMode.ts",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/analysisSettingsSubsectionProvider.ts": "src/features/analysis/sections/settings/analysisSettingsSubsectionProvider.ts",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelay.ts": "src/features/analysis/sections/settings/auto-analysis-delay/autoAnalysisDelay.ts",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabled.ts": "src/features/analysis/sections/settings/auto-analysis-enabled/autoAnalysisEnabled.ts",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/chartTypeDirectory.ts": "src/features/analysis/sections/settings/chart-type-directory/chartTypeDirectory.ts",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_file/chartTypeFile.ts": "src/features/analysis/sections/settings/chart-type-file/chartTypeFile.ts",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_shared/sharedChartTypeSettingCore.ts": "src/features/analysis/sections/settings/sharedChartTypeSettingCore.ts",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectory.ts": "src/features/analysis/sections/settings/dimension-mapping-directory/dimensionMappingDirectory.ts",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFile.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingFile.ts",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingValidator.ts": "src/features/analysis/sections/settings/dimension-mapping-file/dimensionMappingValidator.ts",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_shared/sharedDimensionMappingSettingCore.ts": "src/features/analysis/sections/settings/sharedDimensionMappingSettingCore.ts",
+ "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/filesByLanguageSorting.ts": "src/features/analysis/sections/settings/files-by-language-sorting/filesByLanguageSorting.ts",
+ "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/profile_configuration/profileConfiguration.ts": "src/features/analysis/sections/settings/profile-configuration/profileConfiguration.ts",
+ "src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts": null,
+ "src/code_analysis/views/subsections/analysis_settings/view_theme/viewTheme.ts": "src/features/analysis/sections/settings/view-theme/viewTheme.ts",
+ "src/code_analysis/views/subsections/files_by_language/filesByLanguageSubsectionProvider.ts": "src/features/analysis/sections/files-by-language/filesByLanguageSubsectionProvider.ts",
+ "src/code_analysis/views/subsections/files_by_language/index.ts": null,
+ "src/code_analysis/views/subsections/index.ts": null,
+ "src/code_analysis/views/subsections/project_by_language/index.ts": null,
+ "src/code_analysis/views/subsections/project_by_language/projectByLanguageSubsectionProvider.ts": "src/features/analysis/sections/project-by-language/projectByLanguageSubsectionProvider.ts",
+ "src/collaboration/index.ts": null,
+ "src/collaboration/model/anonymousName.ts": "src/core/collaboration/anonymousName.ts",
+ "src/collaboration/model/collaborationProfile.ts": "src/core/collaboration/collaborationProfile.ts",
+ "src/collaboration/model/connectedParticipant.ts": "src/core/collaboration/connectedParticipant.ts",
+ "src/collaboration/services/collaborationProfileManager.ts": "src/core/collaboration/collaborationProfileManager.ts",
+ "src/commands/active_servers/activeServersCommands.ts": "src/features/active-servers/commands/activeServersCommandRegistrations.ts",
+ "src/commands/analysis/AnalysisCommands.ts": "src/features/analysis/commands/analysisCommandRegistrations.ts",
+ "src/commands/analysis/index.ts": null,
+ "src/commands/babia_examples/babiaExamplesCommands.ts": "src/features/examples/commands/babiaExamplesCommandRegistrations.ts",
+ "src/commands/collaboration/collaborationCommands.ts": "src/features/collaboration/commands/collaborationCommands.ts",
+ "src/commands/common/generalCommands.ts": "src/app/commands/generalCommands.ts",
+ "src/commands/index.ts": "src/app/commands/registerAllCommands.ts",
+ "src/commands/learn_more/learnMoreCommands.ts": "src/features/learn-more/commands/learnMoreCommandRegistrations.ts",
+ "src/commands/python_env/pythonEnvCommands.ts": "src/features/python-env/commands/pythonEnvCommandRegistrations.ts",
+ "src/commands/servers/serverCommands.ts": "src/features/servers/commands/serverCommandRegistrations.ts",
+ "src/commands/visualization_settings/visualizationSettingsCommands.ts": "src/features/visualization-settings/commands/visualizationSettingsCommandRegistrations.ts",
+ "src/commands/visualize_data/visualizeDataCommands.ts": "src/features/visualize-data/commands/visualizeDataCommandRegistrations.ts",
+ "src/core/extensionContext.ts": "src/platform/extensionContext.ts",
+ "src/core/logging/logger.ts": "src/platform/logging/logger.ts",
+ "src/core/logging/logPolicy.ts": "src/platform/logging/logPolicy.ts",
+ "src/core/logging/sink.ts": "src/platform/logging/sink.ts",
+ "src/core/startup/startupCoordinator.ts": "src/app/startup/startupCoordinator.ts",
+ "src/extension.ts": "src/extension.ts",
+ "src/learn_more/commands/learnMoreCommands.ts": "src/features/learn-more/commands/learnMoreCommands.ts",
+ "src/platform/commands/commandRegistry.ts": "src/platform/commands/commandRegistry.ts",
+ "src/platform/templatePaths.ts": "src/platform/templatePaths.ts",
+ "src/platform/tree/baseInterfaces.ts": "src/platform/tree/baseInterfaces.ts",
+ "src/python_env/commands/pythonEnvCommands.ts": "src/features/python-env/commands/pythonEnvCommands.ts",
+ "src/python_env/runtime/pythonEnvUiState.ts": "src/core/python-env/pythonEnvUiState.ts",
+ "src/python_env/runtime/pythonPackageManifest.ts": "src/core/python-env/pythonPackageManifest.ts",
+ "src/python_env/runtime/venvManager.ts": "src/core/python-env/venvManager.ts",
+ "src/python_env/storage/pythonEnvStorage.ts": "src/core/python-env/pythonEnvStorage.ts",
+ "src/python_env/utils/pythonEnvUtils.ts": "src/core/python-env/pythonEnvUtils.ts",
+ "src/python_env/views/items/pythonEnvItems.ts": "src/features/python-env/views/pythonEnvItems.ts",
+ "src/remote_access/index.ts": null,
+ "src/remote_access/model/remoteAccessModel.ts": "src/core/remote-access/remoteAccessModel.ts",
+ "src/remote_access/security/remoteSessionAuthority.ts": "src/core/remote-access/remoteSessionAuthority.ts",
+ "src/remote_access/services/cloudflaredBinaryManager.ts": "src/core/remote-access/cloudflaredBinaryManager.ts",
+ "src/remote_access/services/remoteAccessManager.ts": "src/core/remote-access/remoteAccessManager.ts",
+ "src/servers/commands/serverCommands.ts": "src/features/servers/commands/serverCommands.ts",
+ "src/servers/runtime/analysis/analysisBridgeReplies.ts": "src/core/server/analysis/analysisBridgeReplies.ts",
+ "src/servers/runtime/analysis/analysisFeatureHost.ts": "src/core/server/analysis/analysisFeatureHost.ts",
+ "src/servers/runtime/analysis/analysisMessageRouter.ts": "src/core/server/analysis/analysisMessageRouter.ts",
+ "src/servers/runtime/analysis/dependencyGraphBridge.ts": "src/core/server/analysis/dependencyGraphBridge.ts",
+ "src/servers/runtime/analysis/historicalComparisonBridge.ts": "src/core/server/analysis/historicalComparisonBridge.ts",
+ "src/servers/runtime/analysis/projectEvolutionBridge.ts": "src/core/server/analysis/projectEvolutionBridge.ts",
+ "src/servers/runtime/analysisServerCapabilities.ts": "src/core/server/analysisServerCapabilities.ts",
+ "src/servers/runtime/broadcast/broadcastTypes.ts": "src/core/server/broadcast/broadcastTypes.ts",
+ "src/servers/runtime/broadcast/mediaFrame.ts": "src/core/server/broadcast/mediaFrame.ts",
+ "src/servers/runtime/broadcast/relayPolicy.ts": "src/core/server/broadcast/relayPolicy.ts",
+ "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts": "src/core/server/broadcast/screenBroadcastSignalingServer.ts",
+ "src/servers/runtime/collaboration/collaborationRoomServer.ts": "src/core/server/collaboration/collaborationRoomServer.ts",
+ "src/servers/runtime/collaboration/collaborationSessionApi.ts": "src/core/server/collaboration/collaborationSessionApi.ts",
+ "src/servers/runtime/collaboration/participantIdentity.ts": "src/core/server/collaboration/participantIdentity.ts",
+ "src/servers/runtime/collaboration/roomMessageCodec.ts": "src/core/server/collaboration/roomMessageCodec.ts",
+ "src/servers/runtime/collaboration/roomRegistry.ts": "src/core/server/collaboration/roomRegistry.ts",
+ "src/servers/runtime/collaboration/roomSharedState.ts": "src/core/server/collaboration/roomSharedState.ts",
+ "src/servers/runtime/collaboration/roomTypes.ts": "src/core/server/collaboration/roomTypes.ts",
+ "src/servers/runtime/generatedHttpsCertificateManager.ts": "src/core/server/generatedHttpsCertificateManager.ts",
+ "src/servers/runtime/http/httpRespond.ts": "src/core/server/http/httpRespond.ts",
+ "src/servers/runtime/http/staticAssets.ts": "src/core/server/http/staticAssets.ts",
+ "src/servers/runtime/httpsCustomServer.ts": "src/core/server/httpsCustomServer.ts",
+ "src/servers/runtime/httpsDefaultServer.ts": "src/core/server/httpsDefaultServer.ts",
+ "src/servers/runtime/httpServer.ts": "src/core/server/httpServer.ts",
+ "src/servers/runtime/httpsServerBase.ts": "src/core/server/httpsServerBase.ts",
+ "src/servers/runtime/httpsTlsOptions.ts": "src/core/server/httpsTlsOptions.ts",
+ "src/servers/runtime/index.ts": "src/core/server/launchServerWithFile.ts",
+ "src/servers/runtime/multiServerLauncher.ts": "src/core/server/multiServerLauncher.ts",
+ "src/servers/runtime/portManager.ts": "src/core/server/portManager.ts",
+ "src/servers/runtime/previewRenderer.ts": "src/features/active-servers/services/previewRenderer.ts",
+ "src/servers/runtime/remote/brandMark.ts": "src/core/server/remote/brandMark.ts",
+ "src/servers/runtime/remote/pairingPage.ts": "src/core/server/remote/pairingPage.ts",
+ "src/servers/runtime/remote/remoteAccessPolicy.ts": "src/core/server/remote/remoteAccessPolicy.ts",
+ "src/servers/runtime/remote/remotePairingApi.ts": "src/core/server/remote/remotePairingApi.ts",
+ "src/servers/runtime/serverFactory.ts": "src/core/server/serverFactory.ts",
+ "src/servers/runtime/sse/sseClientRegistry.ts": "src/core/server/sse/sseClientRegistry.ts",
+ "src/servers/runtime/sse/SSEManager.ts": "src/core/server/sse/SSEManager.ts",
+ "src/servers/runtime/ws/webSocketEndpoint.ts": "src/core/server/ws/webSocketEndpoint.ts",
+ "src/servers/storage/serverSettingsManager.ts": "src/core/server/serverSettingsManager.ts",
+ "src/servers/utils/networkUtils.ts": "src/core/server/networkUtils.ts",
+ "src/servers/views/interactions/handleConfigurationClicks.ts": "src/features/servers/views/handleConfigurationClicks.ts",
+ "src/servers/views/interactions/launchNotifications.ts": "src/features/active-servers/views/launchNotifications.ts",
+ "src/servers/views/items/configurationItems.ts": "src/features/servers/views/configurationItems.ts",
+ "src/utils/commandBuilder.ts": "src/platform/commands/commandBuilder.ts",
+ "src/utils/commonCommands.ts": "src/app/sidebar/commonCommands.ts",
+ "src/utils/detailDialog.ts": "src/platform/ui/detailDialog.ts",
+ "src/utils/errorHandler.ts": "src/platform/ui/errorHandler.ts",
+ "src/utils/fileToServerMap.ts": "src/core/server/fileToServerMap.ts",
+ "src/utils/getVisualizationConfiguration.ts": "src/core/charts/getVisualizationConfiguration.ts",
+ "src/utils/jsonFieldAnalyzer.ts": "src/features/visualize-data/services/jsonFieldAnalyzer.ts",
+ "src/utils/languageMetadata.ts": "src/core/analysis/languages/languageMetadata.ts",
+ "src/utils/nonceGenerator.ts": "src/shared/nonceGenerator.ts",
+ "src/utils/sha256Generator.ts": "src/core/analysis/utils/sha256Generator.ts",
+ "src/utils/supportedLanguages.ts": "src/core/analysis/languages/supportedLanguages.ts",
+ "src/utils/uriPathConverter.ts": "src/features/analysis/commands/dom/uriPathConverter.ts",
+ "src/views/active_servers/ActiveServersSectionProvider.ts": "src/features/active-servers/views/ActiveServersSectionProvider.ts",
+ "src/views/active_servers/index.ts": null,
+ "src/views/active_servers/items/activeServerItems.ts": "src/features/active-servers/views/activeServerItems.ts",
+ "src/views/babia_examples/BabiaExamplesSectionProvider.ts": "src/features/examples/views/BabiaExamplesSectionProvider.ts",
+ "src/views/babia_examples/index.ts": null,
+ "src/views/babia_examples/interactions/handleBabiaExampleClicks.ts": "src/features/examples/views/handleBabiaExampleClicks.ts",
+ "src/views/babia_examples/items/babiaExampleItems.ts": "src/features/examples/views/babiaExampleItems.ts",
+ "src/views/collaboration/CollaborationSectionProvider.ts": "src/features/collaboration/views/CollaborationSectionProvider.ts",
+ "src/views/collaboration/index.ts": null,
+ "src/views/collaboration/items/collaborationItems.ts": "src/features/collaboration/views/collaborationItems.ts",
+ "src/views/common/sectionChild.ts": "src/app/sidebar/sectionChild.ts",
+ "src/views/index.ts": null,
+ "src/views/learn_more/index.ts": null,
+ "src/views/learn_more/interactions/handleLearnMoreClicks.ts": "src/features/learn-more/views/handleLearnMoreClicks.ts",
+ "src/views/learn_more/items/learnMoreItems.ts": "src/features/learn-more/views/learnMoreItems.ts",
+ "src/views/learn_more/LearnMoreSectionProvider.ts": "src/features/learn-more/views/LearnMoreSectionProvider.ts",
+ "src/views/ModularTreeDataProvider.ts": "src/app/sidebar/ModularTreeDataProvider.ts",
+ "src/views/python_env/index.ts": null,
+ "src/views/python_env/PythonEnvSectionProvider.ts": "src/features/python-env/views/PythonEnvSectionProvider.ts",
+ "src/views/sectionDefinitions.ts": "src/app/sidebar/sectionDefinitions.ts",
+ "src/views/servers/index.ts": null,
+ "src/views/servers/items/serverItems.ts": "src/features/servers/views/serverItems.ts",
+ "src/views/servers/ServersSectionProvider.ts": "src/features/servers/views/ServersSectionProvider.ts",
+ "src/views/visualization_settings/index.ts": null,
+ "src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts": "src/features/visualization-settings/views/handleVisualizationSettingsClicks.ts",
+ "src/views/visualization_settings/items/visualizationSettingsItems.ts": "src/features/visualization-settings/views/visualizationSettingsSectionItems.ts",
+ "src/views/visualization_settings/VisualizationSettingsSectionProvider.ts": "src/features/visualization-settings/views/VisualizationSettingsSectionProvider.ts",
+ "src/views/visualize_data/index.ts": null,
+ "src/views/visualize_data/interactions/handleVisualizeDataClicks.ts": "src/features/visualize-data/views/handleVisualizeDataClicks.ts",
+ "src/views/visualize_data/items/visualizeDataItems.ts": "src/features/visualize-data/views/visualizeDataSectionItems.ts",
+ "src/views/visualize_data/VisualizeDataSectionProvider.ts": "src/features/visualize-data/views/VisualizeDataSectionProvider.ts",
+ "src/visualization_settings/commands/visualizationSettingsCommands.ts": "src/features/visualization-settings/commands/visualizationSettingsCommands.ts",
+ "src/visualization_settings/index.ts": null,
+ "src/visualization_settings/model/settingsModel.ts": "src/core/charts/settings/settingsModel.ts",
+ "src/visualization_settings/storage/settingsFile.ts": "src/core/charts/settings/settingsFile.ts",
+ "src/visualization_settings/storage/settingsStorage.ts": "src/core/charts/settings/settingsStorage.ts",
+ "src/visualization_settings/utils/colorPickerUtils.ts": "src/features/visualization-settings/views/colorPickerUtils.ts",
+ "src/visualization_settings/utils/dynamicColorIconGenerator.ts": "src/features/visualization-settings/views/dynamicColorIconGenerator.ts",
+ "src/visualization_settings/utils/settingsAccessors.ts": "src/core/charts/settings/settingsAccessors.ts",
+ "src/visualization_settings/views/interactions/handleSettingsInteraction.ts": "src/features/visualization-settings/views/handleSettingsInteraction.ts",
+ "src/visualization_settings/views/items/visualizationSettingsItems.ts": "src/features/visualization-settings/views/visualizationSettingsItems.ts",
+ "src/visualize_data/commands/visualizeDataCommands.ts": "src/features/visualize-data/commands/visualizeDataCommands.ts",
+ "src/visualize_data/model/visualizeDataModel.ts": "src/features/visualize-data/model/visualizeDataModel.ts",
+ "src/visualize_data/runtime/visualizationRestorer.ts": "src/features/visualize-data/services/visualizationRestorer.ts",
+ "src/visualize_data/state/visualizeDataState.ts": "src/features/visualize-data/model/visualizeDataState.ts",
+ "src/visualize_data/views/interactions/visualizationLauncher.ts": "src/features/visualize-data/services/visualizationLauncher.ts",
+ "src/visualize_data/views/items/visualizationItem.ts": "src/features/visualize-data/views/visualizationItem.ts",
+ "src/visualize_data/views/items/visualizeDataItems.ts": "src/features/visualize-data/views/visualizeDataItems.ts"
+ },
+ "batch": {
+ "src/active_servers/commands/activeServersCommands.ts": "B10",
+ "src/active_servers/model/activeServerModel.ts": "B9",
+ "src/active_servers/registry/activeServerRegistry.ts": "B9",
+ "src/active_servers/runtime/serverControl.ts": "B9",
+ "src/active_servers/services/panelManager.ts": "B1",
+ "src/active_servers/services/serverOpenActions.ts": "B10",
+ "src/active_servers/services/serverRegistrar.ts": "B9",
+ "src/active_servers/services/withServer.ts": "B10",
+ "src/active_servers/views/interactions/handleServerActions.ts": "B10",
+ "src/active_servers/views/interactions/serverDetailsFormat.ts": "B10",
+ "src/babia_examples/commands/babiaExamplesCommands.ts": "B6",
+ "src/babia_examples/model/babiaExampleModel.ts": "B6",
+ "src/babia_examples/runtime/exampleLauncher.ts": "B6",
+ "src/babia_examples/views/babiaExamplesTreeView.ts": "B6",
+ "src/babia_examples/views/interactions/handleExampleClicks.ts": "B6",
+ "src/babia_examples/views/items/exampleItems.ts": "B6",
+ "src/babia_templates/charts/chartPresentation.ts": "B7",
+ "src/babia_templates/charts/templateCharts.ts": "B7",
+ "src/babia_templates/models/chartModels.ts": "B7",
+ "src/babia_templates/models/xrFieldModels.ts": "B7",
+ "src/babia_templates/processing/dimensionValidator.ts": "B7",
+ "src/babia_templates/processing/placeholders/createChart.ts": "B7",
+ "src/babia_templates/processing/placeholders/createStructure.ts": "B7",
+ "src/babia_templates/processing/templateHTMLProcessor.ts": "B7",
+ "src/babia_templates/processing/templateProcessor.ts": "B7",
+ "src/babia_templates/registry/chartRegistry.ts": "B7",
+ "src/code_analysis/commands/analysisCommands.ts": "B13",
+ "src/code_analysis/commands/clean_analysis/cleanAnalysisCommands.ts": "B13",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisCommands.ts": "B13",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisLivePanelCommands.ts": "B13",
+ "src/code_analysis/commands/directory_analysis/directoryAnalysisXRCommands.ts": "B13",
+ "src/code_analysis/commands/directory_analysis/index.ts": "B0",
+ "src/code_analysis/commands/directory_analysis/projectAnalysisCommands.ts": "B13",
+ "src/code_analysis/commands/dom_visualization/domVisualizationCommands.ts": "B13",
+ "src/code_analysis/commands/dom_visualization/index.ts": "B0",
+ "src/code_analysis/commands/file_analysis/fileAnalysisCommands.ts": "B13",
+ "src/code_analysis/commands/file_analysis/fileAnalysisLivePanelCommands.ts": "B13",
+ "src/code_analysis/commands/file_analysis/fileAnalysisXRCommands.ts": "B13",
+ "src/code_analysis/commands/file_analysis/index.ts": "B0",
+ "src/code_analysis/commands/subsections/active_analyses/activeAnalysesCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryModeCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_directory_mode/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/analysisFileModeCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/analysis_file_mode/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/analysisSettingsCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelayCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_delay/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabledCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/auto_analysis_enabled/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_directory/chartTypeDirectoryCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_file/chartTypeFileCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/chart_type_shared/chartTypeCommandFactory.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectoryCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFileCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/filesByLanguageSortingCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/profile_configuration/profileConfigurationCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/analysis_settings/view_theme/index.ts": "B0",
+ "src/code_analysis/commands/subsections/analysis_settings/view_theme/viewThemeCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/files_by_language/filesByLanguageCommands.ts": "B13",
+ "src/code_analysis/commands/subsections/index.ts": "B0",
+ "src/code_analysis/commands/subsections/project_by_language/projectByLanguageCommands.ts": "B13",
+ "src/code_analysis/configuration/analysisConfigurationStorage.ts": "B12",
+ "src/code_analysis/configuration/index.ts": "B0",
+ "src/code_analysis/configuration/models/analysisConfiguration.ts": "B12",
+ "src/code_analysis/configuration/models/index.ts": "B0",
+ "src/code_analysis/dependencies/dependencyGraphModels.ts": "B11",
+ "src/code_analysis/dependencies/dependencyGraphService.ts": "B11",
+ "src/code_analysis/dependencies/index.ts": "B0",
+ "src/code_analysis/engine/analysisOrchestrator.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/analysisModeComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/analysisTableComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/avatarComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/codexrDebugComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/codexrRoomComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/collaborationComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/commonComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/commonGitRefPickerComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/dependencyGraphComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/dependencyVisualBudgetComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/guideScreenComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/historicalComparisonComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/immersiveRigComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/index.ts": "B0",
+ "src/code_analysis/engine/components/customComponents/logoComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/pointerPolicyComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/projectEvolutionComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/renderBudgetComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/runtimeAssembly.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/singleFileRuntimeAssets.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/virtualScreenComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/xrChartDebugComponentAsset.ts": "B12",
+ "src/code_analysis/engine/components/customComponents/xrChartMappingUiComponentAsset.ts": "B12",
+ "src/code_analysis/engine/core/analysisSession.ts": "B12",
+ "src/code_analysis/engine/core/sessionRegistry.ts": "B12",
+ "src/code_analysis/engine/launchers/launcherLivePanel.ts": "B12",
+ "src/code_analysis/engine/launchers/launcherVisualizeDOM.ts": "B12",
+ "src/code_analysis/engine/launchers/launcherXRAnalysis.ts": "B12",
+ "src/code_analysis/engine/launchers/launchPipeline.ts": "B12",
+ "src/code_analysis/engine/parsers/directoryXRParser.ts": "B12",
+ "src/code_analysis/engine/parsers/fileXRParser.ts": "B12",
+ "src/code_analysis/engine/parsers/livePanelParser.ts": "B12",
+ "src/code_analysis/engine/parsers/visualizeDOMParser.ts": "B12",
+ "src/code_analysis/engine/processors/analysisBootstrap.ts": "B12",
+ "src/code_analysis/engine/processors/FileRequirementProcessor.ts": "B12",
+ "src/code_analysis/engine/servers/models/sessionServerModels.ts": "B12",
+ "src/code_analysis/engine/servers/serverLaunchOrchestrator.ts": "B12",
+ "src/code_analysis/engine/servers/sessionServerManager.ts": "B12",
+ "src/code_analysis/engine/servers/sseNotificationManager.ts": "B12",
+ "src/code_analysis/engine/utils/backendScriptPath.ts": "B12",
+ "src/code_analysis/engine/utils/executePython.ts": "B12",
+ "src/code_analysis/engine/utils/fileHashCalculator.ts": "B12",
+ "src/code_analysis/engine/utils/pythonStderrStream.ts": "B12",
+ "src/code_analysis/engine/utils/saveFiles.ts": "B12",
+ "src/code_analysis/engine/utils/themeUtils.ts": "B12",
+ "src/code_analysis/engine/watchers/analysisFilePolicy.ts": "B12",
+ "src/code_analysis/engine/watchers/configurationConverter.ts": "B12",
+ "src/code_analysis/engine/watchers/debounceManager.ts": "B12",
+ "src/code_analysis/engine/watchers/directoryReanalysisData.ts": "B12",
+ "src/code_analysis/engine/watchers/directoryReAnalyzer.ts": "B12",
+ "src/code_analysis/engine/watchers/directorySnapshot.ts": "B12",
+ "src/code_analysis/engine/watchers/directoryWatcherOrchestrator.ts": "B12",
+ "src/code_analysis/engine/watchers/fileHashTracker.ts": "B12",
+ "src/code_analysis/engine/watchers/fileWatcherOrchestrator.ts": "B12",
+ "src/code_analysis/engine/watchers/reAnalysisManager.ts": "B12",
+ "src/code_analysis/engine/watchers/sessionWatcherManager.ts": "B12",
+ "src/code_analysis/export/exportManifest.ts": "B11",
+ "src/code_analysis/export/exportModeSelection.ts": "B11",
+ "src/code_analysis/export/exportPackageTransaction.ts": "B11",
+ "src/code_analysis/export/gitExportOptions.ts": "B11",
+ "src/code_analysis/export/gitExportPythonWorkerPool.ts": "B11",
+ "src/code_analysis/export/gitRevisionExportCore.ts": "B11",
+ "src/code_analysis/export/gitRevisionExporter.ts": "B11",
+ "src/code_analysis/export/gitTimelineBlobAnalyzer.ts": "B11",
+ "src/code_analysis/historical/analysisUpdateEvents.ts": "B11",
+ "src/code_analysis/historical/gitAnalysisEligibility.ts": "B11",
+ "src/code_analysis/historical/gitAnalysisSessionContext.ts": "B11",
+ "src/code_analysis/historical/gitAnalysisShared.ts": "B11",
+ "src/code_analysis/historical/gitBatchObjectReader.ts": "B11",
+ "src/code_analysis/historical/gitRepositoryService.ts": "B11",
+ "src/code_analysis/historical/gitTimelineBlobIndex.ts": "B11",
+ "src/code_analysis/historical/gitTimelineSampler.ts": "B11",
+ "src/code_analysis/historical/historicalComparisonModels.ts": "B11",
+ "src/code_analysis/historical/historicalComparisonService.ts": "B11",
+ "src/code_analysis/historical/index.ts": "B0",
+ "src/code_analysis/historical/projectEvolutionService.ts": "B11",
+ "src/code_analysis/refresh/analysisRefreshCoordinator.ts": "B12",
+ "src/code_analysis/refresh/analysisViewModes.ts": "B12",
+ "src/code_analysis/refresh/index.ts": "B0",
+ "src/code_analysis/services/serverWatcherIntegration.ts": "B13",
+ "src/code_analysis/services/workspaceSnapshotModel.ts": "B13",
+ "src/code_analysis/services/workspaceSnapshotService.ts": "B13",
+ "src/code_analysis/services/xrFieldSchemaService.ts": "B12",
+ "src/code_analysis/utils/filesByLanguageSortingUtils.ts": "B13",
+ "src/code_analysis/utils/workspaceFileScanner.ts": "B13",
+ "src/code_analysis/views/AnalysisSectionProvider.ts": "B13",
+ "src/code_analysis/views/index.ts": "B0",
+ "src/code_analysis/views/interactions/handleAnalysisClicks.ts": "B13",
+ "src/code_analysis/views/interactions/index.ts": "B0",
+ "src/code_analysis/views/items/analysisItems.ts": "B13",
+ "src/code_analysis/views/items/index.ts": "B0",
+ "src/code_analysis/views/subsections/active_analyses/commands/activeAnalysesCommands.ts": "B13",
+ "src/code_analysis/views/subsections/active_analyses/services/activeAnalysesDataService.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/analysisDirectoryMode.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_directory_mode/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/analysisFileMode.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/analysis_file_mode/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/analysisSettingsSubsectionProvider.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/autoAnalysisDelay.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_delay/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/autoAnalysisEnabled.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/auto_analysis_enabled/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/chartTypeDirectory.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_directory/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_file/chartTypeFile.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_file/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/chart_type_shared/sharedChartTypeSettingCore.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/dimensionMappingDirectory.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_directory/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingFile.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_file/dimensionMappingValidator.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/dimension_mapping_shared/sharedDimensionMappingSettingCore.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/filesByLanguageSorting.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/files_by_language_sorting/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/profile_configuration/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/profile_configuration/profileConfiguration.ts": "B13",
+ "src/code_analysis/views/subsections/analysis_settings/view_theme/index.ts": "B0",
+ "src/code_analysis/views/subsections/analysis_settings/view_theme/viewTheme.ts": "B13",
+ "src/code_analysis/views/subsections/files_by_language/filesByLanguageSubsectionProvider.ts": "B13",
+ "src/code_analysis/views/subsections/files_by_language/index.ts": "B0",
+ "src/code_analysis/views/subsections/index.ts": "B0",
+ "src/code_analysis/views/subsections/project_by_language/index.ts": "B0",
+ "src/code_analysis/views/subsections/project_by_language/projectByLanguageSubsectionProvider.ts": "B13",
+ "src/collaboration/index.ts": "B0",
+ "src/collaboration/model/anonymousName.ts": "B8",
+ "src/collaboration/model/collaborationProfile.ts": "B8",
+ "src/collaboration/model/connectedParticipant.ts": "B8",
+ "src/collaboration/services/collaborationProfileManager.ts": "B8",
+ "src/commands/active_servers/activeServersCommands.ts": "B10",
+ "src/commands/analysis/AnalysisCommands.ts": "B13",
+ "src/commands/analysis/index.ts": "B0",
+ "src/commands/babia_examples/babiaExamplesCommands.ts": "B6",
+ "src/commands/collaboration/collaborationCommands.ts": "B8",
+ "src/commands/common/generalCommands.ts": "B14",
+ "src/commands/index.ts": "B14",
+ "src/commands/learn_more/learnMoreCommands.ts": "B2",
+ "src/commands/python_env/pythonEnvCommands.ts": "B3",
+ "src/commands/servers/serverCommands.ts": "B10",
+ "src/commands/visualization_settings/visualizationSettingsCommands.ts": "B4",
+ "src/commands/visualize_data/visualizeDataCommands.ts": "B5",
+ "src/core/extensionContext.ts": "B1",
+ "src/core/logging/logger.ts": "B1",
+ "src/core/logging/logPolicy.ts": "B1",
+ "src/core/logging/sink.ts": "B1",
+ "src/core/startup/startupCoordinator.ts": "B14",
+ "src/extension.ts": "—",
+ "src/learn_more/commands/learnMoreCommands.ts": "B2",
+ "src/platform/commands/commandRegistry.ts": "—",
+ "src/platform/templatePaths.ts": "—",
+ "src/platform/tree/baseInterfaces.ts": "—",
+ "src/python_env/commands/pythonEnvCommands.ts": "B3",
+ "src/python_env/runtime/pythonEnvUiState.ts": "B3",
+ "src/python_env/runtime/pythonPackageManifest.ts": "B3",
+ "src/python_env/runtime/venvManager.ts": "B3",
+ "src/python_env/storage/pythonEnvStorage.ts": "B3",
+ "src/python_env/utils/pythonEnvUtils.ts": "B3",
+ "src/python_env/views/items/pythonEnvItems.ts": "B3",
+ "src/remote_access/index.ts": "B0",
+ "src/remote_access/model/remoteAccessModel.ts": "B8",
+ "src/remote_access/security/remoteSessionAuthority.ts": "B8",
+ "src/remote_access/services/cloudflaredBinaryManager.ts": "B8",
+ "src/remote_access/services/remoteAccessManager.ts": "B8",
+ "src/servers/commands/serverCommands.ts": "B10",
+ "src/servers/runtime/analysis/analysisBridgeReplies.ts": "B9",
+ "src/servers/runtime/analysis/analysisFeatureHost.ts": "B9",
+ "src/servers/runtime/analysis/analysisMessageRouter.ts": "B9",
+ "src/servers/runtime/analysis/dependencyGraphBridge.ts": "B9",
+ "src/servers/runtime/analysis/historicalComparisonBridge.ts": "B9",
+ "src/servers/runtime/analysis/projectEvolutionBridge.ts": "B9",
+ "src/servers/runtime/analysisServerCapabilities.ts": "B9",
+ "src/servers/runtime/broadcast/broadcastTypes.ts": "B9",
+ "src/servers/runtime/broadcast/mediaFrame.ts": "B9",
+ "src/servers/runtime/broadcast/relayPolicy.ts": "B9",
+ "src/servers/runtime/broadcast/screenBroadcastSignalingServer.ts": "B9",
+ "src/servers/runtime/collaboration/collaborationRoomServer.ts": "B9",
+ "src/servers/runtime/collaboration/collaborationSessionApi.ts": "B9",
+ "src/servers/runtime/collaboration/participantIdentity.ts": "B9",
+ "src/servers/runtime/collaboration/roomMessageCodec.ts": "B9",
+ "src/servers/runtime/collaboration/roomRegistry.ts": "B9",
+ "src/servers/runtime/collaboration/roomSharedState.ts": "B9",
+ "src/servers/runtime/collaboration/roomTypes.ts": "B9",
+ "src/servers/runtime/generatedHttpsCertificateManager.ts": "B9",
+ "src/servers/runtime/http/httpRespond.ts": "B9",
+ "src/servers/runtime/http/staticAssets.ts": "B9",
+ "src/servers/runtime/httpsCustomServer.ts": "B9",
+ "src/servers/runtime/httpsDefaultServer.ts": "B9",
+ "src/servers/runtime/httpServer.ts": "B9",
+ "src/servers/runtime/httpsServerBase.ts": "B9",
+ "src/servers/runtime/httpsTlsOptions.ts": "B9",
+ "src/servers/runtime/index.ts": "B9",
+ "src/servers/runtime/multiServerLauncher.ts": "B9",
+ "src/servers/runtime/portManager.ts": "B9",
+ "src/servers/runtime/previewRenderer.ts": "B10",
+ "src/servers/runtime/remote/brandMark.ts": "B9",
+ "src/servers/runtime/remote/pairingPage.ts": "B9",
+ "src/servers/runtime/remote/remoteAccessPolicy.ts": "B9",
+ "src/servers/runtime/remote/remotePairingApi.ts": "B9",
+ "src/servers/runtime/serverFactory.ts": "B9",
+ "src/servers/runtime/sse/sseClientRegistry.ts": "B9",
+ "src/servers/runtime/sse/SSEManager.ts": "B9",
+ "src/servers/runtime/ws/webSocketEndpoint.ts": "B9",
+ "src/servers/storage/serverSettingsManager.ts": "B9",
+ "src/servers/utils/networkUtils.ts": "B9",
+ "src/servers/views/interactions/handleConfigurationClicks.ts": "B10",
+ "src/servers/views/interactions/launchNotifications.ts": "B10",
+ "src/servers/views/items/configurationItems.ts": "B10",
+ "src/utils/commandBuilder.ts": "B1",
+ "src/utils/commonCommands.ts": "B14",
+ "src/utils/detailDialog.ts": "B1",
+ "src/utils/errorHandler.ts": "B1",
+ "src/utils/fileToServerMap.ts": "B9",
+ "src/utils/getVisualizationConfiguration.ts": "B7",
+ "src/utils/jsonFieldAnalyzer.ts": "B5",
+ "src/utils/languageMetadata.ts": "B12",
+ "src/utils/nonceGenerator.ts": "B1",
+ "src/utils/sha256Generator.ts": "B12",
+ "src/utils/supportedLanguages.ts": "B12",
+ "src/utils/uriPathConverter.ts": "B13",
+ "src/views/active_servers/ActiveServersSectionProvider.ts": "B10",
+ "src/views/active_servers/index.ts": "B0",
+ "src/views/active_servers/items/activeServerItems.ts": "B10",
+ "src/views/babia_examples/BabiaExamplesSectionProvider.ts": "B6",
+ "src/views/babia_examples/index.ts": "B0",
+ "src/views/babia_examples/interactions/handleBabiaExampleClicks.ts": "B6",
+ "src/views/babia_examples/items/babiaExampleItems.ts": "B6",
+ "src/views/collaboration/CollaborationSectionProvider.ts": "B8",
+ "src/views/collaboration/index.ts": "B0",
+ "src/views/collaboration/items/collaborationItems.ts": "B8",
+ "src/views/common/sectionChild.ts": "B14",
+ "src/views/index.ts": "B0",
+ "src/views/learn_more/index.ts": "B0",
+ "src/views/learn_more/interactions/handleLearnMoreClicks.ts": "B2",
+ "src/views/learn_more/items/learnMoreItems.ts": "B2",
+ "src/views/learn_more/LearnMoreSectionProvider.ts": "B2",
+ "src/views/ModularTreeDataProvider.ts": "B14",
+ "src/views/python_env/index.ts": "B0",
+ "src/views/python_env/PythonEnvSectionProvider.ts": "B3",
+ "src/views/sectionDefinitions.ts": "B14",
+ "src/views/servers/index.ts": "B0",
+ "src/views/servers/items/serverItems.ts": "B10",
+ "src/views/servers/ServersSectionProvider.ts": "B10",
+ "src/views/visualization_settings/index.ts": "B0",
+ "src/views/visualization_settings/interactions/handleVisualizationSettingsClicks.ts": "B4",
+ "src/views/visualization_settings/items/visualizationSettingsItems.ts": "B4",
+ "src/views/visualization_settings/VisualizationSettingsSectionProvider.ts": "B4",
+ "src/views/visualize_data/index.ts": "B0",
+ "src/views/visualize_data/interactions/handleVisualizeDataClicks.ts": "B5",
+ "src/views/visualize_data/items/visualizeDataItems.ts": "B5",
+ "src/views/visualize_data/VisualizeDataSectionProvider.ts": "B5",
+ "src/visualization_settings/commands/visualizationSettingsCommands.ts": "B4",
+ "src/visualization_settings/index.ts": "B0",
+ "src/visualization_settings/model/settingsModel.ts": "B4",
+ "src/visualization_settings/storage/settingsFile.ts": "B4",
+ "src/visualization_settings/storage/settingsStorage.ts": "B4",
+ "src/visualization_settings/utils/colorPickerUtils.ts": "B4",
+ "src/visualization_settings/utils/dynamicColorIconGenerator.ts": "B4",
+ "src/visualization_settings/utils/settingsAccessors.ts": "B4",
+ "src/visualization_settings/views/interactions/handleSettingsInteraction.ts": "B4",
+ "src/visualization_settings/views/items/visualizationSettingsItems.ts": "B4",
+ "src/visualize_data/commands/visualizeDataCommands.ts": "B5",
+ "src/visualize_data/model/visualizeDataModel.ts": "B5",
+ "src/visualize_data/runtime/visualizationRestorer.ts": "B5",
+ "src/visualize_data/state/visualizeDataState.ts": "B5",
+ "src/visualize_data/views/interactions/visualizationLauncher.ts": "B5",
+ "src/visualize_data/views/items/visualizationItem.ts": "B5",
+ "src/visualize_data/views/items/visualizeDataItems.ts": "B5"
+ }
+}
diff --git a/media/SHOTLIST.md b/media/SHOTLIST.md
index 4bc9c566d..86bc84adf 100644
--- a/media/SHOTLIST.md
+++ b/media/SHOTLIST.md
@@ -174,7 +174,7 @@ XR, not just how it looks. JPEG ~1600 px, 115-152 KB each.
The two sides of the joining flow, used by the README's cross-network tutorial. One folder per role, because every shot belongs to exactly one of them.
-**`invited_user/`** is what the person joining sees in their browser. Rendered from the **real production page** (`src/servers/runtime/remote/pairingPage.ts`, compiled and served as-is, so the HTML, CSS and client script are exactly what a guest gets) with only the three endpoints it calls stubbed: a faithful capture would otherwise need a live Cloudflare tunnel and a second machine. The alias and the code shown are therefore invented, and nothing else is. Captured at 640 px wide, `deviceScaleFactor: 2`, dark scheme. Retaken after the page adopted the product site's design tokens (slate surfaces, steel-blue accent, no glass or neon glow), so **whenever that styling changes these four must be retaken together** with the script that produced them.
+**`invited_user/`** is what the person joining sees in their browser. Rendered from the **real production page** (`src/core/server/remote/pairingPage.ts`, compiled and served as-is, so the HTML, CSS and client script are exactly what a guest gets) with only the three endpoints it calls stubbed: a faithful capture would otherwise need a live Cloudflare tunnel and a second machine. The alias and the code shown are therefore invented, and nothing else is. Captured at 640 px wide, `deviceScaleFactor: 2`, dark scheme. Retaken after the page adopted the product site's design tokens (slate surfaces, steel-blue accent, no glass or neon glow), so **whenever that styling changes these four must be retaken together** with the script that produced them.
| File | Size | What it shows |
|---|---|---|
diff --git a/packages/README.md b/packages/README.md
index 6566c67ae..68898e26f 100644
--- a/packages/README.md
+++ b/packages/README.md
@@ -6,7 +6,7 @@ The target is two packages that both apps (the VS Code extension and the future
| Package | Will contain | Lives today in |
|---|---|---|
-| `packages/core` | Editor-agnostic analysis and metrics logic: field schema, chart models, analysis results, dependency/evolution data shaping. | `apps/vscode-extension/src/` (`code_analysis/`, `babia_templates/`, parts of `visualize_data/`) |
+| `packages/core` | Editor-agnostic analysis and metrics logic: field schema, chart models, analysis results, dependency/evolution data shaping. | `apps/vscode-extension/src/` (`core/analysis/`, `core/charts/`, parts of `features/visualize-data/`) |
| `packages/xr-scenes` | A-Frame / BabiaXR scene templates, the browser runtimes under `templates/components/`, LivePanel and guide pages. | `apps/vscode-extension/templates/` |
## Why they were not extracted in the monorepo move
@@ -14,7 +14,7 @@ The target is two packages that both apps (the VS Code extension and the future
The move was kept **behaviour-neutral**: the packaged VSIX has the same 360 files; the only changes inside it are the development-only fallback path to the backend in the bundle and the script paths in `package.json`. A clean extraction of either package needs refactoring first, which belongs in its own reviewed change:
- **Templates are resolved at runtime from the extension folder.** About fifteen modules build paths such as `path.join(context.extensionPath, 'templates', ...)`, and the VSIX ships `templates/**` through the `files` allowlist. Moving them out needs a build step that stages them back into the extension, plus a different answer for the F5 "workspace direct" launch.
-- **The TypeScript logic imports `vscode` throughout.** `code_analysis/` mixes pure logic with views, commands and `ExtensionContext`. Pulling out `core` means first separating the editor-agnostic parts behind an interface, which is a structural refactor (see wave W5 of the v1.2.1 programme).
+- **The TypeScript logic imports `vscode` throughout.** `core/analysis/` still mixes pure logic with `ExtensionContext` and the VS Code API. Pulling out `core` means first separating the editor-agnostic parts behind an interface, which is a structural refactor (see wave W5 of the v1.2.1 programme).
- **About half of the unit tests read source files as text** (`readFileSync` + regex) by path. Every file that moves needs those tests retargeted in the same commit.
The Python backend had none of these problems (the extension already copied it into `dist/` at build time), so it moved to [`../backend/`](../backend/) now.