Update script URL construction to reflect new 'scripts/' subdirectory

This commit is contained in:
Karolis2011 2025-11-30 00:02:25 +02:00
parent 606f200621
commit ed5c818508

View file

@ -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 -----------------------------------------------------