From d2676feac6e22a0eebed1e68cddb8b998f3d7b34 Mon Sep 17 00:00:00 2001 From: yaowenc2 Date: Wed, 18 Mar 2026 21:38:00 -0700 Subject: [PATCH 1/9] feat: add chatbot template via generic GitHub template downloader Adds downloadGitHubTemplate() that clones InsForge/insforge-templates repo, copies the selected template to the project dir, writes .env.local with credentials, and runs migrations/db_int.sql if present. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands/create.ts | 80 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 3 deletions(-) diff --git a/src/commands/create.ts b/src/commands/create.ts index 4642c4d..787b48a 100644 --- a/src/commands/create.ts +++ b/src/commands/create.ts @@ -11,7 +11,7 @@ import { getProject, getProjectApiKey, } from '../lib/api/platform.js'; -import { getAnonKey } from '../lib/api/oss.js'; +import { getAnonKey, ossFetch } from '../lib/api/oss.js'; import { getGlobalConfig, saveGlobalConfig, saveProjectConfig, getFrontendUrl } from '../lib/config.js'; import { requireAuth } from '../lib/credentials.js'; import { handleError, getRootOpts, CLIError } from '../lib/errors.js'; @@ -59,7 +59,7 @@ export function registerCreateCommand(program: Command): void { .option('--name ', 'Project name') .option('--org-id ', 'Organization ID') .option('--region ', 'Deployment region (us-east, us-west, eu-central, ap-southeast)') - .option('--template