WORK-484
ID:WORK-484Status:ready

fileRoots + plan scan + loadContentFromTree plumbs; in-memory full-build test

Finish the consumer migration and the virtual entry point: scan fileRoots and the plan plugin's configure scan through the provider, expose projectFiles + gitTimestamps on loadContentFromTree, and prove a full site builds from a pure in-memory map.

Priority:highComplexity:moderateMilestone:v0.27.0Source:SPEC-113
claude/v0-27-0-planning-sgq68k View source

Criteria completion

Criteria completion: 0 of 3 (0%) checked; tracking started on Jun 25, no incremental history yet0%25%50%75%100%Jun 25Jul 11

Tracking started Jun 25 — check back for trends.

Branches 3
History 1
  1. 4eab338
    Created (ready)by bjornolofandersson

Scope

  • fileRootspackages/content/src/file-roots.ts scanning reads through the provider instead of direct fs.
  • Plan plugin — the @refrakt-md/plan configure-time scan accepts a provider from the pipeline context (hosted deployments that don't build plan sites simply don't provide plan content).
  • loadContentFromTree — accepts projectFiles?: ProjectFiles and exposes gitTimestamps (processContentTree already accepts the map; this is the missing one-line plumb). loadContent (fs mode) constructs fsProjectFiles(projectRoot) and threads it.
  • Integration test — a full site build from a pure in-memory Map (no fs access): pages, partials, layouts, a src-directory sandbox, and a snippet all resolve.

Acceptance Criteria

  • fileRoots scanning and the plan plugin's configure scan read through the provider.
  • loadContentFromTree accepts projectFiles and gitTimestamps; a full in-memory-map build (no fs) is covered by an integration test — pages, partials, layouts, a src-directory sandbox, and a snippet all resolve.
  • loadContent (fs mode) is unchanged for well-formed projects (existing suites green); the only behavioural change is containment on previously-unguarded paths.

Dependencies

  • WORK-481, WORK-482, WORK-483 — providers + the migrated consumers the integration test exercises.

References

  • SPEC-113 §3–4 — packages/content/src/{file-roots,site}.ts, the plan plugin configure hook, loadContentFromTree/processContentTree.