legends810/testingnew
0
1import { LLMManager } from '~/lib/modules/llm/manager';2import type { Template } from '~/types/template';3 4export const WORK_DIR_NAME = 'project';5export const WORK_DIR = `/home/${WORK_DIR_NAME}`;6export const MODIFICATIONS_TAG_NAME = 'bolt_file_modifications';7export const MODEL_REGEX = /^\[Model: (.*?)\]\n\n/;8export const PROVIDER_REGEX = /\[Provider: (.*?)\]\n\n/;9export const DEFAULT_MODEL = 'claude-3-5-haiku-latest';10export const PROMPT_COOKIE_KEY = 'cachedPrompt';11 12const llmManager = LLMManager.getInstance(import.meta.env);13 14export const PROVIDER_LIST = llmManager.getAllProviders();15export const DEFAULT_PROVIDER = llmManager.getDefaultProvider();16 17export const providerBaseUrlEnvKeys: Record<string, { baseUrlKey?: string; apiTokenKey?: string }> = {};18PROVIDER_LIST.forEach((provider) => {19 providerBaseUrlEnvKeys[provider.name] = {20 baseUrlKey: provider.config.baseUrlKey,21 apiTokenKey: provider.config.apiTokenKey,22 };23});24 25// starter Templates26 27export const STARTER_TEMPLATES: Template[] = [28 {29 name: 'bolt-astro-basic',30 label: 'Astro Basic',31 description: 'Lightweight Astro starter template for building fast static websites',32 githubRepo: 'thecodacus/bolt-astro-basic-template',33 tags: ['astro', 'blog', 'performance'],34 icon: 'i-bolt:astro',35 },36 {37 name: 'bolt-nextjs-shadcn',38 label: 'Next.js with shadcn/ui',39 description: 'Next.js starter fullstack template integrated with shadcn/ui components and styling system',40 githubRepo: 'thecodacus/bolt-nextjs-shadcn-template',41 tags: ['nextjs', 'react', 'typescript', 'shadcn', 'tailwind'],42 icon: 'i-bolt:nextjs',43 },44 {45 name: 'bolt-qwik-ts',46 label: 'Qwik TypeScript',47 description: 'Qwik framework starter with TypeScript for building resumable applications',48 githubRepo: 'thecodacus/bolt-qwik-ts-template',49 tags: ['qwik', 'typescript', 'performance', 'resumable'],50 icon: 'i-bolt:qwik',51 },52 {53 name: 'bolt-remix-ts',54 label: 'Remix TypeScript',55 description: 'Remix framework starter with TypeScript for full-stack web applications',56 githubRepo: 'thecodacus/bolt-remix-ts-template',57 tags: ['remix', 'typescript', 'fullstack', 'react'],58 icon: 'i-bolt:remix',59 },60 {61 name: 'bolt-slidev',62 label: 'Slidev Presentation',63 description: 'Slidev starter template for creating developer-friendly presentations using Markdown',64 githubRepo: 'thecodacus/bolt-slidev-template',65 tags: ['slidev', 'presentation', 'markdown'],66 icon: 'i-bolt:slidev',67 },68 {69 name: 'bolt-sveltekit',70 label: 'SvelteKit',71 description: 'SvelteKit starter template for building fast, efficient web applications',72 githubRepo: 'bolt-sveltekit-template',73 tags: ['svelte', 'sveltekit', 'typescript'],74 icon: 'i-bolt:svelte',75 },76 {77 name: 'vanilla-vite',78 label: 'Vanilla + Vite',79 description: 'Minimal Vite starter template for vanilla JavaScript projects',80 githubRepo: 'thecodacus/vanilla-vite-template',81 tags: ['vite', 'vanilla-js', 'minimal'],82 icon: 'i-bolt:vite',83 },84 {85 name: 'bolt-vite-react',86 label: 'React + Vite + typescript',87 description: 'React starter template powered by Vite for fast development experience',88 githubRepo: 'thecodacus/bolt-vite-react-ts-template',89 tags: ['react', 'vite', 'frontend'],90 icon: 'i-bolt:react',91 },92 {93 name: 'bolt-vite-ts',94 label: 'Vite + TypeScript',95 description: 'Vite starter template with TypeScript configuration for type-safe development',96 githubRepo: 'thecodacus/bolt-vite-ts-template',97 tags: ['vite', 'typescript', 'minimal'],98 icon: 'i-bolt:typescript',99 },100 {101 name: 'bolt-vue',102 label: 'Vue.js',103 description: 'Vue.js starter template with modern tooling and best practices',104 githubRepo: 'thecodacus/bolt-vue-template',105 tags: ['vue', 'typescript', 'frontend'],106 icon: 'i-bolt:vue',107 },108 {109 name: 'bolt-angular',110 label: 'Angular Starter',111 description: 'A modern Angular starter template with TypeScript support and best practices configuration',112 githubRepo: 'thecodacus/bolt-angular-template',113 tags: ['angular', 'typescript', 'frontend', 'spa'],114 icon: 'i-bolt:angular',115 },116];117 