📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-06-13 16:02:05 +00:00
parent fc2462186d
commit b4618ee9e9
203 changed files with 11452 additions and 629 deletions
@@ -12,6 +12,7 @@ import { writeFileSync, mkdtempSync, rmSync } from "node:fs";
import { fileURLToPath } from "node:url";
import path from "node:path";
import os from "node:os";
import { assembleSystemPrompt, VALID_MODES } from "./assemble-prompt.mjs";
import { readHistory, appendHistory, getTrend } from "./history.mjs";
import {
parseFrontmatterBooks,
@@ -77,6 +78,11 @@ test("handles 4-space indentation", () => {
assert.deepEqual(parseFrontmatterBooks(text), ["The Mythical Man-Month", "Code Complete"]);
});
test("handles CRLF line endings", () => {
const text = "---\r\nbooks:\r\n - The Mythical Man-Month\r\n - Code Complete\r\n---\r\n";
assert.deepEqual(parseFrontmatterBooks(text), ["The Mythical Man-Month", "Code Complete"]);
});
test("handles titles containing colons", () => {
const text = "---\nbooks:\n - Domain-Driven Design: Tackling Complexity\n---\n";
assert.deepEqual(parseFrontmatterBooks(text), ["Domain-Driven Design: Tackling Complexity"]);
@@ -234,6 +240,21 @@ test("handles full pr-review-guide pattern", () => {
);
});
// —— assembleSystemPrompt / VALID_MODES ————————————————————————————————
console.log("\nassembleSystemPrompt");
test("includes sweep in VALID_MODES", () => {
assert.ok(VALID_MODES.includes("sweep"));
});
test("assembles sweep prompt with both risk catalogs and sweep guide", () => {
const prompt = assembleSystemPrompt("sweep", path.join(__dirname, "..", "skills"));
assert.match(prompt, /## Risk 1: Cognitive Overload/);
assert.match(prompt, /## Risk T1: Test Obscurity/);
assert.match(prompt, /# Brooks-Lint .* Full Sweep Guide/);
});
// ── readHistory ────────────────────────────────────────────────────────────
console.log("\nreadHistory");