From ed5c818508dc38db01b4c10872a44f4ba6d8d78c Mon Sep 17 00:00:00 2001 From: Karolis2011 Date: Sun, 30 Nov 2025 00:02:25 +0200 Subject: [PATCH] Update script URL construction to reflect new 'scripts/' subdirectory --- loader.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader.ts b/loader.ts index 5a7c9ac..50068bd 100644 --- a/loader.ts +++ b/loader.ts @@ -55,7 +55,8 @@ function _buildRawUrl(cmd: string, ref: string): string { // Heuristic: tags typically start with 'v', otherwise treat as branch const isTag = /^v[0-9]/.test(ref); const kind = isTag ? "tag" : "branch"; - return `${BASE_RAW}/${kind}/${encodeURIComponent(ref)}/${encodeURIComponent(cmd)}.ts`; + // Scripts now live under the 'scripts/' subdirectory + return `${BASE_RAW}/${kind}/${encodeURIComponent(ref)}/scripts/${encodeURIComponent(cmd)}.ts`; } // --- Daemon mode -----------------------------------------------------