* test(#2142): failing-first coverage for quick-task archival at milestone close-out * enhance(#2142): archive quick tasks at milestone close-out * fix(#2142): resolve review findings — readme injection, move/reset ordering, owned state write * fix(#2142): fold archival under milestone namespace, expose index IR, dedupe reset decision * test(#2142): assert archive-dir-relative summary path in index IR * docs(#2142): backfill changeset pr number to 3592 * test(#2142): skip newline-fixture injection test on windows (control chars illegal in path names) --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -19,7 +19,7 @@ import { collectSection } from './markdown-sectionizer.cjs';
|
||||
import { splitLines } from './text-lines.cjs';
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import planningWorkspace = require('./planning-workspace.cjs');
|
||||
const { planningDir } = planningWorkspace;
|
||||
const { planningDir, quickDirFrom } = planningWorkspace;
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import frontmatter = require('./frontmatter.cjs');
|
||||
const { extractFrontmatter, spliceFrontmatter } = frontmatter;
|
||||
@@ -530,7 +530,9 @@ function resolveQuickTaskSummaryFile(taskDir: string, dirName: string): string |
|
||||
* Incomplete if SUMMARY.md missing or status !== 'complete'.
|
||||
*/
|
||||
function scanQuickTasks(planDir: string): ScanOutcome<QuickTaskItem> {
|
||||
const quickDir = path.join(planDir, 'quick');
|
||||
// #2142: routed through the shared quickDirFrom composer (planning-workspace.cts)
|
||||
// so `.planning/quick` has exactly ONE owner instead of two ad-hoc path.joins.
|
||||
const quickDir = quickDirFrom(planDir);
|
||||
if (!fs.existsSync(quickDir)) return { items: [], acknowledged: 0 };
|
||||
|
||||
let entries: fs.Dirent[];
|
||||
@@ -1682,4 +1684,7 @@ export = {
|
||||
formatAuditReport,
|
||||
listAuditPhaseTargets,
|
||||
cmdAuditAcknowledge,
|
||||
// #2142: exported so src/milestone.cts's archiveQuickTaskDirectories README
|
||||
// index generator shares this ONE discovery rule rather than re-deriving it.
|
||||
resolveQuickTaskSummaryFile,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user