From edf6fec6260e4ed7e2c83e40915a5e8b15b0d977 Mon Sep 17 00:00:00 2001 From: zzy-life <68179477+zzy-life@users.noreply.github.com> Date: Fri, 14 Nov 2025 16:26:33 +0800 Subject: [PATCH 1/2] Fixing the issue where `npm run setup` is not working on a Windows system. --- scripts/setup.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/setup.ts b/scripts/setup.ts index f68f62cf..939f30f5 100755 --- a/scripts/setup.ts +++ b/scripts/setup.ts @@ -2113,7 +2113,12 @@ async function main() { await setup.setup(); } -if (import.meta.url === `file://${process.argv[1]}`) { +// Run if this is the main module (supports both direct execution and tsx) +const isMainModule = import.meta.url.endsWith('setup.ts') || + import.meta.url === `file://${process.argv[1]}` || + process.argv[1]?.endsWith('setup.ts'); + +if (isMainModule) { main().catch((error) => { console.error('Setup failed:', error); process.exit(1); From 3e5cc61dfb609bfc1b34691bdfc34a7902ca5ed4 Mon Sep 17 00:00:00 2001 From: zzy-life <68179477+zzy-life@users.noreply.github.com> Date: Fri, 14 Nov 2025 17:03:10 +0800 Subject: [PATCH 2/2] Update Node.js version requirement to v22 or later "vite": "npm:rolldown-vite@7.1.13", requires NodeJS V22 or later. --- docs/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/setup.md b/docs/setup.md index 89a61c01..58b3b55f 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -11,7 +11,7 @@ Local first time setup guide for VibSDK - get your AI coding platform running lo Before getting started, make sure you have: ### Required -- **Node.js** (v18 or later) +- **Node.js** (v22 or later) - **Cloudflare account** with API access - **Cloudflare API Token** with appropriate permissions