refactor(#181): migrate workstream inventory builder to sdk/src/workstream (#250)

This commit is contained in:
Tom Boucher
2026-05-24 21:32:53 -04:00
committed by GitHub
parent 59bcdf03b6
commit 22e9c1de62
13 changed files with 22 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
* Query handlers should render outputs from this inventory instead of
* rescanning workstream directories directly.
*
* Pure projection logic lives in ../workstream-inventory/builder.ts.
* Pure projection logic lives in ../workstream/builder.ts.
* This module handles I/O orchestration only.
*/
@@ -14,16 +14,16 @@ import { join } from 'node:path';
import { scanPhasePlans } from './plan-scan.js';
import { stateExtractField } from '../state/index.js';
import { readActiveWorkstream } from './active-workstream-store.js';
import { buildWorkstreamInventory } from '../workstream-inventory/builder.js';
import { buildWorkstreamInventory } from '../workstream/builder.js';
// Re-export types from the builder so downstream consumers can import from here.
export type {
WorkstreamPhaseInventory,
WorkstreamInventory,
WorkstreamInventoryList,
} from '../workstream-inventory/builder.js';
} from '../workstream/builder.js';
import type { WorkstreamInventory, WorkstreamInventoryList } from '../workstream-inventory/builder.js';
import type { WorkstreamInventory, WorkstreamInventoryList } from '../workstream/builder.js';
export const planningRoot = (projectDir: string): string =>
join(projectDir, '.planning');