Merge remote-tracking branch 'origin/main' into ponytail-inspiration-review

# Conflicts:
#	CHANGELOG.md
#	TODOS.md
#	VERSION
#	docs/TESTING_INTERNALS.md
#	package.json
#	scripts/test-free-shards.ts
#	test/helpers/llm-judge.ts
#	test/helpers/touchfiles-data.ts
This commit is contained in:
Garry Tan
2026-08-29 16:11:58 +00:00
173 changed files with 6796 additions and 1346 deletions
+4 -2
View File
@@ -78,10 +78,12 @@ scripts/gen-agents-digest.ts, not this file.
return { content, bytes: Buffer.byteLength(content, 'utf-8') };
}
export function writeAgentsDigest(opts?: { root?: string }): { outPath: string; bytes: number } {
export function writeAgentsDigest(opts?: { root?: string; outRoot?: string }): { outPath: string; bytes: number } {
const root = opts?.root ?? ROOT;
const { content, bytes } = generateAgentsDigest({ root });
const outPath = path.join(root, DIGEST_RELPATH);
// outRoot: outputs-only rule for --out-dir renders — inputs (VERSION) read
// from root, the artifact lands wherever the caller isolates outputs.
const outPath = path.join(opts?.outRoot ?? root, DIGEST_RELPATH);
fs.mkdirSync(path.dirname(outPath), { recursive: true });
fs.writeFileSync(outPath, content);
return { outPath, bytes };