feat(cli): bundle SRT and use platform-native runner shells

This commit is contained in:
yiling
2026-11-17 23:08:20 +08:00
parent 07e69717e5
commit 17f14390be
31 changed files with 787 additions and 134 deletions
+9 -1
View File
@@ -23,7 +23,15 @@ function pathParts(value: string): string[] {
if (
value.includes('\\') ||
value.includes('\0') ||
parts.some((part) => !part || part === '.' || part === '..' || part.includes(':'))
parts.some(
(part) =>
!part ||
part === '.' ||
part === '..' ||
part.includes(':') ||
/[. ]$/.test(part) ||
/^(?:con|prn|aux|nul|conin\$|conout\$|com[1-9¹²³]|lpt[1-9¹²³])(?: *\.|$)/i.test(part),
)
)
throw new Error('Invalid workspace path.')
return parts