Compare commits

..

No commits in common. "daaabf07fceb05e56b86c532c42a712fca2da2b8" and "366a7a1606c91ff1ef405efb8cee8d9549b56be2" have entirely different histories.

2 changed files with 4 additions and 7 deletions

View File

@ -2285,8 +2285,8 @@ export async function runSelfTest(): Promise<void> {
const workspaceHistoryRoot = cleanupRoots.find( const workspaceHistoryRoot = cleanupRoots.find(
(item) => item.root === ".kt-workspace", (item) => item.root === ".kt-workspace",
); );
if (!testArtifactsRoot?.preservedNames.includes("_templates")) { if (testArtifactsRoot?.preservedNames.includes("_templates")) {
throw new Error("cleanup template preservation self-check failed"); throw new Error("cleanup template migration self-check failed");
} }
if (!workspaceHistoryRoot?.preservedNames.includes("test-artifacts")) { if (!workspaceHistoryRoot?.preservedNames.includes("test-artifacts")) {
throw new Error("cleanup workspace root preservation self-check failed"); throw new Error("cleanup workspace root preservation self-check failed");

View File

@ -52,8 +52,8 @@ const workspaceRootPreservedNames = new Set([
/** /**
* Builds the directory names that represent generated artifact categories under * Builds the directory names that represent generated artifact categories under
* `.kt-workspace`; test artifact templates stay in place because KT page and * `.kt-workspace`; reusable templates and references are intentionally not
* business test flows use them as local scaffolding inputs. * preserved here because they belong in `workspace-assets`.
* *
* @param rootRelativePath - Cleanup root relative to the KT workspace. * @param rootRelativePath - Cleanup root relative to the KT workspace.
* @returns Category names that cleanup should skip when pruning `.kt-workspace`. * @returns Category names that cleanup should skip when pruning `.kt-workspace`.
@ -66,9 +66,6 @@ function buildPreservedNames(rootRelativePath: string): Set<string> {
preservedNames.add(name); preservedNames.add(name);
} }
} }
if (rootRelativePath === '.kt-workspace/test-artifacts') {
preservedNames.add('_templates');
}
return preservedNames; return preservedNames;
} }