Skip to content

v3.0.0: Zero-Config Automated Installation

Choose a tag to compare

@harperaa harperaa released this 08 Feb 03:37
· 314 commits to main since this release

🚀 Zero-Config Automated Installation

Secure Vibe Coding OS now installs itself. The new /install command and scripts/setup.mjs automate the entire 7-step manual setup process into a single guided flow — no Clerk account, no dashboard copy-pasting, no manual secret generation.

Major Features

  • /install Slash Command: Interactive guided installation that collects site name, admin email, and Clerk preference via AskUserQuestion, then orchestrates the full setup automatically
  • scripts/setup.mjs Setup Script: Deterministic Node.js script with subcommands:
    • init — Creates Clerk accountless application, generates CSRF/session secrets, creates JWT template with proper aud: "convex" claim, derives frontend API URL, writes all values to .env.local
    • convex-setup — Checks login status, parses teams, creates Convex project non-interactively via --configure=new --team --project --dev-deployment=cloud flags
    • configure — Exchanges Svix one-time token for API token (undocumented endpoint discovery), creates webhook endpoint with correct event filters, retrieves signing secret, sets all Convex environment variables via CLI
    • detect-port — Finds first available port from 3000 upward for accurate dev URL display
  • Svix Token Exchange: Discovered and implemented programmatic webhook creation via Svix's POST /api/v1/auth/one-time-token/ endpoint, bypassing the browser-only dashboard limitation

Improvements

  • Fully Automated Convex Setup: Non-interactive project creation using Convex CLI hidden flags (--login-flow poll, --configure=new). Handles login, team selection, and project creation without requiring the user to run commands in a separate terminal
  • Billing Error Boundary: CustomClerkPricing now checks clerk.__unstable__environment.commerceSettings.billing.user.enabled before rendering <PricingTable/>, showing a clean "Pricing plans coming soon" fallback instead of a dev-mode error
  • Fresh Install Fix: Init script clears Convex placeholder values (CONVEX_DEPLOYMENT, NEXT_PUBLIC_CONVEX_URL) from .env.example so npx convex dev prompts for fresh project setup instead of failing with InvalidDeploymentName
  • Convex False-Failure Recovery: convex-setup checks .env.local after non-zero CLI exit before reporting failure — the Convex CLI may exit non-zero due to warnings while still successfully creating the project
  • Email Validation: Admin email prompt explains importance for security dashboard access, keeps asking until a valid email is provided
  • Smart Port Detection: Completion summary detects first available port from 3000 upward to show the correct dev URL
  • Optional Billing Steps: Remaining manual steps (Clerk billing) shown as optional in completion summary
  • Claim URL Clarity: Users directed to only click Claim button and skip remaining steps on the Clerk claim page
  • Blog Banner Images: Generated missing AI banner images for all three blog posts via Gemini Pro
  • Vulnerability Fixes: Bumped next to ^15.5.10, added overrides for lodash (>=4.17.22) and tar (>=7.5.7) to resolve all npm audit vulnerabilities
  • README Quick Install Section: Added automated install instructions before the manual steps
  • Self-Installer Skill: Updated to reference /install as the preferred approach over Playwright-based browser automation

What's Included

This release includes 8 commits:

  • 14ee0f8: Add blog banner images, detect-port subcommand, and dotenv dep
  • 3e4a4d6: Improve install flow: email validation, optional steps, port detection, vuln fixes
  • a1ed979: Fix email prompt, claim URL timing, and Convex false-failure
  • ab308d8: Automate Convex project setup with non-interactive CLI flags
  • d201a68: Fix fresh install: clear Convex placeholders and handle non-interactive terminal
  • a055bd1: Add automated /install command and setup script
  • 0431ddd: bump convex version
  • f0b5cf5: updated CLAUDE.md to include convex check

Files Changed:

  • ➕ Added: .claude/commands/install.md, .claude/commands/create-blog.md, scripts/setup.mjs, scripts/generate-image.js, public/blog/images/*.png
  • ✏️ Updated: README.md, components/custom-clerk-pricing.tsx, package.json, package-lock.json, public/sitemap.xml, .claude/skills/self-installer/SKILL.md, CLAUDE.md, .cursor/rules/convex_rules.mdc
  • 🔄 Auto-generated: convex/_generated/*

📥 How to Update

For New Users

git clone https://github.com/harperaa/secure-vibe-coding-OS.git
cd secure-vibe-coding-OS
npm install
claude
# Then type: /install

For Existing Users

Option 1: Merge everything

git fetch origin --tags
git merge v3.0.0
npm install

Option 2: Use pull commands

/pull-repo-safe

One command to rule them all. From git clone to a fully configured SaaS app with authentication, webhooks, and real-time database — in under 5 minutes.