forked from codinit-dev/codinit-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
92 lines (85 loc) · 3.04 KB
/
Copy pathconstants.ts
File metadata and controls
92 lines (85 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { LLMManager } from '~/lib/modules/llm/manager';
import type { Template } from '~/types/template';
export const WORK_DIR_NAME = 'project';
export const WORK_DIR = `/home/${WORK_DIR_NAME}`;
export const MODIFICATIONS_TAG_NAME = 'codinit_file_modifications';
export const MODEL_REGEX = /^\[Model: (.*?)\]\n\n/;
export const PROVIDER_REGEX = /\[Provider: (.*?)\]\n\n/;
export const DEFAULT_MODEL = 'claude-4-5-sonnet-latest';
export const PROMPT_COOKIE_KEY = 'cachedPrompt';
export const TOOL_EXECUTION_APPROVAL = {
APPROVE: 'tool_execution_approved',
REJECT: 'tool_execution_rejected',
};
export const TOOL_EXECUTION_DENIED = 'tool_execution_denied';
export const TOOL_EXECUTION_ERROR = 'tool_execution_error';
export const TOOL_NO_EXECUTE_FUNCTION = 'tool_no_execute_function';
const llmManager = LLMManager.getInstance(import.meta.env);
export const PROVIDER_LIST = llmManager.getAllProviders();
export const DEFAULT_PROVIDER = llmManager.getDefaultProvider();
export const providerBaseUrlEnvKeys: Record<string, { baseUrlKey?: string; apiTokenKey?: string }> = {};
PROVIDER_LIST.forEach((provider) => {
providerBaseUrlEnvKeys[provider.name] = {
baseUrlKey: provider.config.baseUrlKey,
apiTokenKey: provider.config.apiTokenKey,
};
});
// starter Templates
export const STARTER_TEMPLATES: Template[] = [
{
name: 'Next.js',
label: 'Next.js',
description: 'Next.js shadcn starter template using the App Router for building modern React applications',
githubRepo: 'codinit-dev/codinit-nextjs',
icon: 'i-codinit:nextjs',
},
{
name: 'Expo',
label: 'Expo',
description: 'Expo starter template for building cross-platform mobile apps with native code access',
githubRepo: 'codinit-dev/expo-starter',
icon: 'i-codinit:expo',
},
{
name: 'shadcn/ui Vite React',
label: 'Vite + React + shadcn/ui',
description: 'Vite React starter with shadcn/ui components for fast development',
githubRepo: 'codinit-dev/vite-shadcn',
icon: 'i-codinit:shadcn',
},
{
name: 'Astro',
label: 'Astro',
description: 'Astro starter template for building fast, content-focused websites',
githubRepo: 'codinit-dev/astro',
icon: 'i-codinit:astro',
},
{
name: 'Typescript',
label: 'Typescript',
description: 'Typescript starter template for building fast, efficient web applications',
githubRepo: 'codinit-dev/typescript',
icon: 'i-codinit:typescript',
},
{
name: 'Vite React TS',
label: 'Vite + React + TypeScript',
description: 'Vite React TypeScript starter for fast development experience',
githubRepo: 'codinit-dev/vite-react-ts-starter',
icon: 'i-codinit:vite',
},
{
name: 'Angular',
label: 'Angular',
description: 'Modern Angular starter with standalone components and TypeScript',
githubRepo: 'codinit-dev/angular',
icon: 'i-codinit:angular',
},
{
name: 'Qwik',
label: 'Qwik',
description: 'Modern Qwik starter with standalone components and TypeScript',
githubRepo: 'codinit-dev/qwik',
icon: 'i-codinit:qwik',
},
];