From b811d4c31107ef0694469c94e2c3732ec4ca37fb Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sat, 29 Aug 2026 15:00:23 +0000 Subject: [PATCH] fix(build): DIGEST_RELPATH is a forward-slash literal on every platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit path.join built it with backslashes on Windows, so the wiring test's string comparisons against setup and hosts/*.ts (which carry the forward-slash literal) could never match there — windows-free-tests red. path.join(root, DIGEST_RELPATH) at the write site normalizes fine. Co-Authored-By: Claude Fable 5 --- scripts/gen-agents-digest.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/gen-agents-digest.ts b/scripts/gen-agents-digest.ts index 738edcaae..b8f7a44bd 100644 --- a/scripts/gen-agents-digest.ts +++ b/scripts/gen-agents-digest.ts @@ -27,7 +27,11 @@ import * as fs from 'fs'; import * as path from 'path'; const ROOT = path.resolve(import.meta.dir, '..'); -export const DIGEST_RELPATH = path.join('agents-digest', 'gstack-AGENTS.md'); +// Repo-relative with FORWARD slashes on every platform: this constant is +// compared against literals in shell scripts, host configs, and docs (the +// wiring test), where a Windows path.join backslash form would never match. +// path.join(root, DIGEST_RELPATH) at the write site normalizes it fine. +export const DIGEST_RELPATH = 'agents-digest/gstack-AGENTS.md'; export const DIGEST_BYTE_BUDGET = 2048; export function generateAgentsDigest(opts?: { root?: string }): { content: string; bytes: number } {