@better-i18n/schemas 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +18 -19
- package/src/ai-models.ts +251 -0
- package/src/content.ts +300 -0
- package/src/github.ts +130 -0
- package/src/index.ts +10 -0
- package/src/languages/index.ts +265 -0
- package/src/organizations/index.ts +4 -0
- package/src/organizations/organization.input.ts +23 -0
- package/src/projects/index.ts +4 -0
- package/src/projects/project.input.ts +221 -0
- package/src/subscription.ts +12 -0
- package/src/sync.ts +80 -0
- package/src/translations.ts +269 -0
- package/dist/ai-models.d.ts +0 -96
- package/dist/ai-models.d.ts.map +0 -1
- package/dist/ai-models.js +0 -189
- package/dist/ai-models.js.map +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -11
- package/dist/index.js.map +0 -1
package/src/sync.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Schema for triggering a sync operation.
|
|
5
|
+
*/
|
|
6
|
+
export const triggerSyncSchema = z.object({
|
|
7
|
+
repositoryId: z.string().uuid("Invalid repository ID"),
|
|
8
|
+
projectId: z.string().uuid("Invalid project ID"),
|
|
9
|
+
/**
|
|
10
|
+
* Optional: Only sync specific translation keys (incremental sync).
|
|
11
|
+
* When provided, only these keys will be translated instead of full repository sync.
|
|
12
|
+
* This is much faster and more quota-friendly for single key additions.
|
|
13
|
+
*/
|
|
14
|
+
newKeyIds: z.array(z.string().uuid()).optional(),
|
|
15
|
+
/**
|
|
16
|
+
* Optional: Type of sync job to create.
|
|
17
|
+
* - source_sync: Sync source keys from GitHub to DB (default)
|
|
18
|
+
* - publish: Generate translation files from DB and push to GitHub (create PR)
|
|
19
|
+
* - initial_import: Fast initial import of source keys only
|
|
20
|
+
* - bulk_translate: Translate existing keys without importing
|
|
21
|
+
*/
|
|
22
|
+
jobType: z.enum(["source_sync", "publish", "initial_import", "bulk_translate"]).optional().default("source_sync"),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Schema for getting sync status.
|
|
27
|
+
*/
|
|
28
|
+
export const getSyncStatusSchema = z.object({
|
|
29
|
+
jobId: z.string().uuid("Invalid job ID"),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Schema for listing sync history.
|
|
34
|
+
*/
|
|
35
|
+
export const listSyncHistorySchema = z.object({
|
|
36
|
+
repositoryId: z.string().uuid("Invalid repository ID").optional(),
|
|
37
|
+
projectId: z.string().uuid("Invalid project ID").optional(),
|
|
38
|
+
page: z.number().int().positive().default(1),
|
|
39
|
+
limit: z.number().int().positive().max(100).default(20),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Schema for triggering bulk translation.
|
|
44
|
+
*/
|
|
45
|
+
export const triggerBulkTranslationSchema = z.object({
|
|
46
|
+
repositoryId: z.string().uuid("Invalid repository ID"),
|
|
47
|
+
projectId: z.string().uuid("Invalid project ID"),
|
|
48
|
+
/**
|
|
49
|
+
* Optional: Specific key IDs to translate.
|
|
50
|
+
* If not provided, all keys from the repository will be translated.
|
|
51
|
+
*/
|
|
52
|
+
keyIds: z.array(z.string().uuid()).optional(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Type exports
|
|
56
|
+
export type TriggerSyncInput = z.infer<typeof triggerSyncSchema>;
|
|
57
|
+
export type GetSyncStatusInput = z.infer<typeof getSyncStatusSchema>;
|
|
58
|
+
export type ListSyncHistoryInput = z.infer<typeof listSyncHistorySchema>;
|
|
59
|
+
export type TriggerBulkTranslationInput = z.infer<
|
|
60
|
+
typeof triggerBulkTranslationSchema
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Schema for resyncing an existing sync job.
|
|
65
|
+
*/
|
|
66
|
+
export const resyncJobSchema = z.object({
|
|
67
|
+
jobId: z.string().uuid("Invalid job ID"),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export type ResyncJobInput = z.infer<typeof resyncJobSchema>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Schema for cancelling a sync job.
|
|
74
|
+
*/
|
|
75
|
+
export const cancelJobSchema = z.object({
|
|
76
|
+
jobId: z.string().uuid("Invalid job ID"),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export type CancelJobInput = z.infer<typeof cancelJobSchema>;
|
|
80
|
+
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Schema for listing translation keys.
|
|
5
|
+
*/
|
|
6
|
+
export const listTranslationKeysSchema = z.object({
|
|
7
|
+
projectId: z.string().uuid(),
|
|
8
|
+
page: z.number().min(1).default(1),
|
|
9
|
+
limit: z.number().min(1).max(5000).default(30),
|
|
10
|
+
search: z.string().optional(),
|
|
11
|
+
languageCodes: z.array(z.string()).optional(),
|
|
12
|
+
namespaces: z.array(z.string()).optional(),
|
|
13
|
+
status: z
|
|
14
|
+
.enum(["missing", "draft", "approved", "published", "all"])
|
|
15
|
+
.optional(),
|
|
16
|
+
missingLanguage: z.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Schema for getting a specific translation key.
|
|
21
|
+
*/
|
|
22
|
+
export const getTranslationKeySchema = z.object({
|
|
23
|
+
keyId: z.string().uuid(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Schema for creating a translation key.
|
|
28
|
+
*/
|
|
29
|
+
export const createTranslationKeySchema = z.object({
|
|
30
|
+
projectId: z.string().uuid(),
|
|
31
|
+
key: z.string().min(1),
|
|
32
|
+
sourceValue: z.string().optional(),
|
|
33
|
+
description: z.string().optional(),
|
|
34
|
+
context: z.string().optional(),
|
|
35
|
+
maxLength: z.number().positive().optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Schema for updating a translation key.
|
|
40
|
+
*/
|
|
41
|
+
export const updateTranslationKeySchema = z.object({
|
|
42
|
+
keyId: z.string().uuid(),
|
|
43
|
+
key: z.string().min(1).optional(),
|
|
44
|
+
description: z.string().optional(),
|
|
45
|
+
context: z.string().optional(),
|
|
46
|
+
maxLength: z.number().positive().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Schema for deleting a translation key.
|
|
51
|
+
*/
|
|
52
|
+
export const deleteTranslationKeySchema = z.object({
|
|
53
|
+
keyId: z.string().uuid(),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Schema for bulk deleting translation keys.
|
|
58
|
+
*/
|
|
59
|
+
export const deleteTranslationKeysSchema = z.object({
|
|
60
|
+
keyIds: z.array(z.string().uuid()).min(1),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Schema for deleting all keys in a namespace (server-side soft delete).
|
|
65
|
+
* Uses projectId + namespaceName since frontend doesn't have the DB namespace UUID.
|
|
66
|
+
*/
|
|
67
|
+
export const deleteNamespaceSchema = z.object({
|
|
68
|
+
projectId: z.string().uuid(),
|
|
69
|
+
namespaceName: z.string().min(1),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Schema for updating a translation.
|
|
74
|
+
* Supports both target language translations and source language edits.
|
|
75
|
+
*
|
|
76
|
+
* Status options:
|
|
77
|
+
* - draft: Translation exists but not yet approved
|
|
78
|
+
* - approved: Ready to publish
|
|
79
|
+
* Note: "published" status is set by sync-worker after successful publish, not via user API
|
|
80
|
+
*/
|
|
81
|
+
export const updateTranslationSchema = z.object({
|
|
82
|
+
keyId: z.string().uuid(),
|
|
83
|
+
languageCode: z.string().min(1),
|
|
84
|
+
value: z.string(),
|
|
85
|
+
status: z.enum(["draft", "approved"]).default("draft"),
|
|
86
|
+
// Source language editing fields
|
|
87
|
+
isSourceLanguage: z.boolean().optional().default(false),
|
|
88
|
+
reason: z.string().optional(), // For audit trail: why source was edited
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Schema for bulk updating translations.
|
|
93
|
+
* Allows updating multiple translations in a single request.
|
|
94
|
+
*
|
|
95
|
+
* Status options:
|
|
96
|
+
* - draft: Translation exists but not yet approved
|
|
97
|
+
* - approved: Ready to publish
|
|
98
|
+
* Note: "published" status is set by sync-worker after successful publish, not via user API
|
|
99
|
+
*/
|
|
100
|
+
export const bulkUpdateTranslationsSchema = z.object({
|
|
101
|
+
projectId: z.string().uuid(),
|
|
102
|
+
translations: z
|
|
103
|
+
.array(
|
|
104
|
+
z.object({
|
|
105
|
+
keyId: z.string().uuid(),
|
|
106
|
+
languageCode: z.string().min(1),
|
|
107
|
+
value: z.string(),
|
|
108
|
+
status: z.enum(["draft", "approved"]).default("draft"),
|
|
109
|
+
// Source language editing: when true, updates translationKey.sourceText instead of translation table
|
|
110
|
+
isSourceLanguage: z.boolean().optional().default(false),
|
|
111
|
+
}),
|
|
112
|
+
)
|
|
113
|
+
.min(1),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Types for translation operations.
|
|
118
|
+
*/
|
|
119
|
+
export type ListTranslationKeysInput = z.infer<
|
|
120
|
+
typeof listTranslationKeysSchema
|
|
121
|
+
>;
|
|
122
|
+
export type GetTranslationKeyInput = z.infer<typeof getTranslationKeySchema>;
|
|
123
|
+
export type CreateTranslationKeyInput = z.infer<
|
|
124
|
+
typeof createTranslationKeySchema
|
|
125
|
+
>;
|
|
126
|
+
export type UpdateTranslationKeyInput = z.infer<
|
|
127
|
+
typeof updateTranslationKeySchema
|
|
128
|
+
>;
|
|
129
|
+
export type DeleteTranslationKeyInput = z.infer<
|
|
130
|
+
typeof deleteTranslationKeySchema
|
|
131
|
+
>;
|
|
132
|
+
export type DeleteTranslationKeysInput = z.infer<
|
|
133
|
+
typeof deleteTranslationKeysSchema
|
|
134
|
+
>;
|
|
135
|
+
export type DeleteNamespaceInput = z.infer<typeof deleteNamespaceSchema>;
|
|
136
|
+
export type UpdateTranslationInput = z.infer<typeof updateTranslationSchema>;
|
|
137
|
+
export type BulkUpdateTranslationsInput = z.infer<
|
|
138
|
+
typeof bulkUpdateTranslationsSchema
|
|
139
|
+
>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Schema for generating AI translation suggestion.
|
|
143
|
+
*/
|
|
144
|
+
export const generateSuggestionSchema = z.object({
|
|
145
|
+
keyId: z.string().uuid(),
|
|
146
|
+
languageCode: z.string().min(1),
|
|
147
|
+
model: z
|
|
148
|
+
.enum([
|
|
149
|
+
"gemini-2.5-pro",
|
|
150
|
+
"gemini-2.5-flash",
|
|
151
|
+
"gemini-2.5-flash-lite",
|
|
152
|
+
"gemini-2.5-flash-lite-preview-06-17",
|
|
153
|
+
"gemini-2.0-flash",
|
|
154
|
+
])
|
|
155
|
+
.default("gemini-2.5-flash"),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Schema for AI suggestion (simplified, uses project system prompt).
|
|
160
|
+
*/
|
|
161
|
+
export const aiSuggestSchema = z.object({
|
|
162
|
+
keyId: z.string().uuid(),
|
|
163
|
+
sourceText: z.string(),
|
|
164
|
+
targetLanguage: z.string().min(1),
|
|
165
|
+
projectId: z.string().uuid(),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Schema for publishing translations (changing status from draft to approved).
|
|
170
|
+
* Note: translations array can be empty when publishing only language changes or deleted keys.
|
|
171
|
+
*/
|
|
172
|
+
export const publishTranslationsSchema = z.object({
|
|
173
|
+
projectId: z.string().uuid(),
|
|
174
|
+
translations: z.array(
|
|
175
|
+
z.object({
|
|
176
|
+
keyId: z.string().uuid(),
|
|
177
|
+
languageCode: z.string().min(1),
|
|
178
|
+
}),
|
|
179
|
+
),
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Schema for batch sync of translations.
|
|
184
|
+
*/
|
|
185
|
+
export const batchSyncTranslationsSchema = z.object({
|
|
186
|
+
projectId: z.string().uuid(),
|
|
187
|
+
translations: z
|
|
188
|
+
.array(
|
|
189
|
+
z.object({
|
|
190
|
+
keyId: z.string().uuid(),
|
|
191
|
+
languageCode: z.string().min(1),
|
|
192
|
+
value: z.string(),
|
|
193
|
+
baselineValue: z.string(), // Original value when loaded
|
|
194
|
+
status: z
|
|
195
|
+
.enum(["pending", "reviewed", "approved", "conflict", "synced"])
|
|
196
|
+
.default("pending"),
|
|
197
|
+
lastModified: z.string().datetime(), // ISO string
|
|
198
|
+
}),
|
|
199
|
+
)
|
|
200
|
+
.min(1),
|
|
201
|
+
createBaseline: z.boolean().default(true), // Whether to create new baseline after sync
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Schema for conflict detection.
|
|
206
|
+
*/
|
|
207
|
+
export const detectConflictsSchema = z.object({
|
|
208
|
+
projectId: z.string().uuid(),
|
|
209
|
+
translations: z
|
|
210
|
+
.array(
|
|
211
|
+
z.object({
|
|
212
|
+
keyId: z.string().uuid(),
|
|
213
|
+
languageCode: z.string().min(1),
|
|
214
|
+
value: z.string(),
|
|
215
|
+
baselineValue: z.string(),
|
|
216
|
+
lastModified: z.string().datetime(),
|
|
217
|
+
}),
|
|
218
|
+
)
|
|
219
|
+
.optional(), // Optional - if not provided, will fetch from server
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Schema for resolving conflicts.
|
|
224
|
+
*/
|
|
225
|
+
export const resolveConflictsSchema = z.object({
|
|
226
|
+
projectId: z.string().uuid(),
|
|
227
|
+
resolutions: z.array(
|
|
228
|
+
z.object({
|
|
229
|
+
keyId: z.string().uuid(),
|
|
230
|
+
languageCode: z.string().min(1),
|
|
231
|
+
resolution: z.enum(["local", "server", "merged"]),
|
|
232
|
+
mergedValue: z.string().optional(), // Required if resolution is "merged"
|
|
233
|
+
}),
|
|
234
|
+
),
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Schema for getting translation health statistics.
|
|
239
|
+
*/
|
|
240
|
+
export const getHealthStatsSchema = z.object({
|
|
241
|
+
projectId: z.string().uuid(),
|
|
242
|
+
repositoryId: z.string().uuid().optional(),
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
export type GenerateSuggestionInput = z.infer<typeof generateSuggestionSchema>;
|
|
246
|
+
export type AiSuggestInput = z.infer<typeof aiSuggestSchema>;
|
|
247
|
+
export type PublishTranslationsInput = z.infer<
|
|
248
|
+
typeof publishTranslationsSchema
|
|
249
|
+
>;
|
|
250
|
+
export type BatchSyncTranslationsInput = z.infer<
|
|
251
|
+
typeof batchSyncTranslationsSchema
|
|
252
|
+
>;
|
|
253
|
+
export type DetectConflictsInput = z.infer<typeof detectConflictsSchema>;
|
|
254
|
+
export type ResolveConflictsInput = z.infer<typeof resolveConflictsSchema>;
|
|
255
|
+
export type GetHealthStatsInput = z.infer<typeof getHealthStatsSchema>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Schema for adding a note to a translation key.
|
|
259
|
+
* Notes are stored as activities (not separate entities).
|
|
260
|
+
*/
|
|
261
|
+
export const addNoteSchema = z.object({
|
|
262
|
+
projectId: z.string().uuid(),
|
|
263
|
+
keyId: z.string().uuid(),
|
|
264
|
+
keyName: z.string().min(1),
|
|
265
|
+
namespace: z.string().optional(),
|
|
266
|
+
languageCode: z.string().optional(),
|
|
267
|
+
noteText: z.string().min(1).max(1000),
|
|
268
|
+
});
|
|
269
|
+
export type AddNoteInput = z.infer<typeof addNoteSchema>;
|
package/dist/ai-models.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared AI Model Configuration
|
|
3
|
-
* Single source of truth for all AI model definitions used across frontend and backend.
|
|
4
|
-
*/
|
|
5
|
-
export type ModelProvider = "better-ai" | "openai" | "gemini" | "claude" | "openrouter";
|
|
6
|
-
export type ModelCategory = "flagship" | "reasoning" | "performance" | "specialized" | "legacy";
|
|
7
|
-
export type ModelIcon = "OpenAI" | "Gemini" | "Claude" | "BetterAI";
|
|
8
|
-
export interface ModelColors {
|
|
9
|
-
/** Background color for UI elements */
|
|
10
|
-
background: string;
|
|
11
|
-
/** Hover background color */
|
|
12
|
-
hover: string;
|
|
13
|
-
/** Icon/text color */
|
|
14
|
-
icon: string;
|
|
15
|
-
}
|
|
16
|
-
export interface AIModelConfig {
|
|
17
|
-
/** UI display ID (e.g., "gpt-5.2", "gemini-3-flash") */
|
|
18
|
-
id: string;
|
|
19
|
-
/** Display name for UI (e.g., "ChatGPT 5.2", "Gemini 3 Flash") */
|
|
20
|
-
name: string;
|
|
21
|
-
/** Provider identifier */
|
|
22
|
-
provider: ModelProvider;
|
|
23
|
-
/** Icon to display for this model (from lucide-react or custom) */
|
|
24
|
-
icon: "OpenAI" | "Gemini" | "Claude" | "BetterAI";
|
|
25
|
-
/** Colors for UI elements */
|
|
26
|
-
colors: ModelColors;
|
|
27
|
-
/** Actual API model ID to send to provider SDK (e.g., "gpt-5.2", "gemini-2.5-flash") */
|
|
28
|
-
apiModelId: string;
|
|
29
|
-
/** Max context window in tokens */
|
|
30
|
-
contextSize: number;
|
|
31
|
-
/** Max output tokens */
|
|
32
|
-
maxOutput: number;
|
|
33
|
-
/** Model description */
|
|
34
|
-
description: string;
|
|
35
|
-
/** Optional badge (e.g., "New", "Fast", "Default") */
|
|
36
|
-
badge?: string;
|
|
37
|
-
/** Is this the default model? */
|
|
38
|
-
isDefault?: boolean;
|
|
39
|
-
/** Release date info */
|
|
40
|
-
releaseDate?: string;
|
|
41
|
-
/** Training data cutoff */
|
|
42
|
-
trainingData?: string;
|
|
43
|
-
/** Speed score 0-100 */
|
|
44
|
-
speed?: number;
|
|
45
|
-
/** Model category */
|
|
46
|
-
category?: ModelCategory;
|
|
47
|
-
/** Whether this model requires user's own API key (not platform key) */
|
|
48
|
-
requiresUserKey?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface ProviderInfo {
|
|
51
|
-
id: ModelProvider;
|
|
52
|
-
name: string;
|
|
53
|
-
brandColor: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* All available AI models - Single Source of Truth
|
|
57
|
-
*
|
|
58
|
-
* Important: `apiModelId` is the actual model ID sent to the provider's SDK.
|
|
59
|
-
* This may differ from `id` which is used for UI/selection purposes.
|
|
60
|
-
*
|
|
61
|
-
* We keep only the best/flagship models from each provider to avoid clutter.
|
|
62
|
-
*/
|
|
63
|
-
export declare const AI_MODELS: AIModelConfig[];
|
|
64
|
-
/**
|
|
65
|
-
* Get model config by ID
|
|
66
|
-
*/
|
|
67
|
-
export declare function getModelById(modelId: string): AIModelConfig | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Get the actual API model ID for a given UI model ID
|
|
70
|
-
*/
|
|
71
|
-
export declare function getApiModelId(modelId: string): string;
|
|
72
|
-
/**
|
|
73
|
-
* Get provider for a model ID
|
|
74
|
-
*/
|
|
75
|
-
export declare function getModelProvider(modelId: string): ModelProvider;
|
|
76
|
-
/**
|
|
77
|
-
* Get default model
|
|
78
|
-
*/
|
|
79
|
-
export declare function getDefaultModel(): AIModelConfig;
|
|
80
|
-
/**
|
|
81
|
-
* Get models by provider
|
|
82
|
-
*/
|
|
83
|
-
export declare function getModelsByProvider(provider: ModelProvider): AIModelConfig[];
|
|
84
|
-
/**
|
|
85
|
-
* Get models that don't require user API key (platform-provided)
|
|
86
|
-
*/
|
|
87
|
-
export declare function getPlatformModels(): AIModelConfig[];
|
|
88
|
-
/**
|
|
89
|
-
* Check if a model requires user's own API key
|
|
90
|
-
*/
|
|
91
|
-
export declare function modelRequiresUserKey(modelId: string): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Format context size for display (e.g., "128K", "2M")
|
|
94
|
-
*/
|
|
95
|
-
export declare function formatContextSize(tokens: number): string;
|
|
96
|
-
//# sourceMappingURL=ai-models.d.ts.map
|
package/dist/ai-models.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAGjB,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,WAAW,GACX,aAAa,GACb,aAAa,GACb,QAAQ,CAAC;AAGb,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAGpE,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,mEAAmE;IACnE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAClD,6BAA6B;IAC7B,MAAM,EAAE,WAAW,CAAC;IACpB,wFAAwF;IACxF,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAGD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,aAAa,EA2HpC,CAAC;AAMF;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEvE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAG/D;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAE/C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,GAAG,aAAa,EAAE,CAE5E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,EAAE,CAEnD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAG7D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKxD"}
|
package/dist/ai-models.js
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared AI Model Configuration
|
|
3
|
-
* Single source of truth for all AI model definitions used across frontend and backend.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* All available AI models - Single Source of Truth
|
|
7
|
-
*
|
|
8
|
-
* Important: `apiModelId` is the actual model ID sent to the provider's SDK.
|
|
9
|
-
* This may differ from `id` which is used for UI/selection purposes.
|
|
10
|
-
*
|
|
11
|
-
* We keep only the best/flagship models from each provider to avoid clutter.
|
|
12
|
-
*/
|
|
13
|
-
export const AI_MODELS = [
|
|
14
|
-
// ============================================
|
|
15
|
-
// Better AI - Platform Default (Powered by Gemini 3 Flash)
|
|
16
|
-
// ============================================
|
|
17
|
-
{
|
|
18
|
-
id: "better-ai",
|
|
19
|
-
name: "Better AI",
|
|
20
|
-
provider: "better-ai",
|
|
21
|
-
icon: "BetterAI",
|
|
22
|
-
colors: {
|
|
23
|
-
background: "bg-gray-50 dark:bg-neutral-700",
|
|
24
|
-
hover: "hover:bg-gray-100 dark:hover:bg-neutral-600",
|
|
25
|
-
icon: "text-gray-700 dark:text-white",
|
|
26
|
-
},
|
|
27
|
-
apiModelId: "gemini-3-pro-preview",
|
|
28
|
-
contextSize: 1_048_576, // 1M tokens (verified from Google docs)
|
|
29
|
-
maxOutput: 65_536,
|
|
30
|
-
description: "Most capable AI model powered by Gemini 3 Pro. Best for complex translations.",
|
|
31
|
-
isDefault: true,
|
|
32
|
-
badge: "Default",
|
|
33
|
-
releaseDate: "Jan 2025",
|
|
34
|
-
trainingData: "Jan 2025",
|
|
35
|
-
speed: 95,
|
|
36
|
-
category: "flagship",
|
|
37
|
-
requiresUserKey: false,
|
|
38
|
-
},
|
|
39
|
-
// ============================================
|
|
40
|
-
// OpenAI Models (via OpenRouter)
|
|
41
|
-
// ============================================
|
|
42
|
-
{
|
|
43
|
-
id: "gpt-5.2",
|
|
44
|
-
name: "GPT 5.2",
|
|
45
|
-
provider: "openrouter",
|
|
46
|
-
icon: "OpenAI",
|
|
47
|
-
colors: {
|
|
48
|
-
background: "bg-gray-200 dark:bg-neutral-700",
|
|
49
|
-
hover: "hover:bg-gray-300 dark:hover:bg-neutral-600",
|
|
50
|
-
icon: "text-gray-600 dark:text-white",
|
|
51
|
-
},
|
|
52
|
-
apiModelId: "openai/gpt-5.2",
|
|
53
|
-
contextSize: 400_000, // 400K tokens (GPT-5 series standard)
|
|
54
|
-
maxOutput: 128_000,
|
|
55
|
-
description: "OpenAI's latest flagship model via OpenRouter.",
|
|
56
|
-
badge: "New",
|
|
57
|
-
releaseDate: "2025",
|
|
58
|
-
trainingData: "2025",
|
|
59
|
-
speed: 95,
|
|
60
|
-
category: "flagship",
|
|
61
|
-
requiresUserKey: false,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: "gpt-5.1",
|
|
65
|
-
name: "GPT 5.1",
|
|
66
|
-
provider: "openrouter",
|
|
67
|
-
icon: "OpenAI",
|
|
68
|
-
colors: {
|
|
69
|
-
background: "bg-gray-200 dark:bg-neutral-700",
|
|
70
|
-
hover: "hover:bg-gray-300 dark:hover:bg-neutral-600",
|
|
71
|
-
icon: "text-gray-600 dark:text-white",
|
|
72
|
-
},
|
|
73
|
-
apiModelId: "openai/gpt-5.1",
|
|
74
|
-
contextSize: 400_000, // 400K tokens (GPT-5 series standard)
|
|
75
|
-
maxOutput: 128_000,
|
|
76
|
-
description: "OpenAI's capable model via OpenRouter.",
|
|
77
|
-
badge: "Fast",
|
|
78
|
-
releaseDate: "2025",
|
|
79
|
-
trainingData: "2025",
|
|
80
|
-
speed: 93,
|
|
81
|
-
category: "flagship",
|
|
82
|
-
requiresUserKey: false,
|
|
83
|
-
},
|
|
84
|
-
// ============================================
|
|
85
|
-
// Google Gemini Models
|
|
86
|
-
// ============================================
|
|
87
|
-
{
|
|
88
|
-
id: "gemini-3-pro",
|
|
89
|
-
name: "Gemini 3 Pro",
|
|
90
|
-
provider: "gemini",
|
|
91
|
-
icon: "Gemini",
|
|
92
|
-
colors: {
|
|
93
|
-
background: "bg-blue-50 dark:bg-blue-700",
|
|
94
|
-
hover: "hover:bg-blue-100 dark:hover:bg-blue-600",
|
|
95
|
-
icon: "text-blue-400 dark:text-blue-400",
|
|
96
|
-
},
|
|
97
|
-
apiModelId: "gemini-3-pro-preview",
|
|
98
|
-
contextSize: 1_048_576, // 1M tokens (verified from Google docs)
|
|
99
|
-
maxOutput: 65_536,
|
|
100
|
-
description: "Google's most capable model. Best for complex tasks.",
|
|
101
|
-
badge: "Pro",
|
|
102
|
-
releaseDate: "Jan 2025",
|
|
103
|
-
trainingData: "Jan 2025",
|
|
104
|
-
speed: 90,
|
|
105
|
-
category: "flagship",
|
|
106
|
-
requiresUserKey: false,
|
|
107
|
-
},
|
|
108
|
-
// ============================================
|
|
109
|
-
// Anthropic Claude (via OpenRouter) - Moved to bottom
|
|
110
|
-
// ============================================
|
|
111
|
-
{
|
|
112
|
-
id: "claude-4-sonnet",
|
|
113
|
-
name: "Claude Sonnet 4",
|
|
114
|
-
provider: "openrouter",
|
|
115
|
-
icon: "Claude",
|
|
116
|
-
colors: {
|
|
117
|
-
background: "bg-orange-50 dark:bg-orange-700",
|
|
118
|
-
hover: "hover:bg-orange-100 dark:hover:bg-orange-600",
|
|
119
|
-
icon: "text-orange-400 dark:text-orange-400",
|
|
120
|
-
},
|
|
121
|
-
apiModelId: "anthropic/claude-sonnet-4.5",
|
|
122
|
-
contextSize: 200_000,
|
|
123
|
-
maxOutput: 8_192,
|
|
124
|
-
description: "Anthropic's flagship. Excellent reasoning and writing via OpenRouter.",
|
|
125
|
-
badge: "New",
|
|
126
|
-
releaseDate: "2025",
|
|
127
|
-
speed: 90,
|
|
128
|
-
category: "flagship",
|
|
129
|
-
requiresUserKey: false,
|
|
130
|
-
},
|
|
131
|
-
];
|
|
132
|
-
// ============================================
|
|
133
|
-
// Helper Functions
|
|
134
|
-
// ============================================
|
|
135
|
-
/**
|
|
136
|
-
* Get model config by ID
|
|
137
|
-
*/
|
|
138
|
-
export function getModelById(modelId) {
|
|
139
|
-
return AI_MODELS.find((m) => m.id === modelId);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Get the actual API model ID for a given UI model ID
|
|
143
|
-
*/
|
|
144
|
-
export function getApiModelId(modelId) {
|
|
145
|
-
const model = getModelById(modelId);
|
|
146
|
-
return model?.apiModelId ?? modelId;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Get provider for a model ID
|
|
150
|
-
*/
|
|
151
|
-
export function getModelProvider(modelId) {
|
|
152
|
-
const model = getModelById(modelId);
|
|
153
|
-
return model?.provider ?? "better-ai";
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Get default model
|
|
157
|
-
*/
|
|
158
|
-
export function getDefaultModel() {
|
|
159
|
-
return AI_MODELS.find((m) => m.isDefault) ?? AI_MODELS[0];
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Get models by provider
|
|
163
|
-
*/
|
|
164
|
-
export function getModelsByProvider(provider) {
|
|
165
|
-
return AI_MODELS.filter((m) => m.provider === provider);
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Get models that don't require user API key (platform-provided)
|
|
169
|
-
*/
|
|
170
|
-
export function getPlatformModels() {
|
|
171
|
-
return AI_MODELS.filter((m) => !m.requiresUserKey);
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Check if a model requires user's own API key
|
|
175
|
-
*/
|
|
176
|
-
export function modelRequiresUserKey(modelId) {
|
|
177
|
-
const model = getModelById(modelId);
|
|
178
|
-
return model?.requiresUserKey ?? false;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Format context size for display (e.g., "128K", "2M")
|
|
182
|
-
*/
|
|
183
|
-
export function formatContextSize(tokens) {
|
|
184
|
-
if (tokens >= 1_000_000) {
|
|
185
|
-
return `${(tokens / 1_000_000).toFixed(0)}M`;
|
|
186
|
-
}
|
|
187
|
-
return `${(tokens / 1_000).toFixed(0)}K`;
|
|
188
|
-
}
|
|
189
|
-
//# sourceMappingURL=ai-models.js.map
|
package/dist/ai-models.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.js","sourceRoot":"","sources":["../src/ai-models.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AoB,CAAC,OAAe;IAClD,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,KAAK,EAAE,eAAe,IAAI,KAAK,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;QACxB,OAAO,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC/C,CAAC;IACD,OAAO,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AAC3C,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Better i18n Public Schemas
|
|
3
|
-
*
|
|
4
|
-
* This package contains public-facing types and schemas for:
|
|
5
|
-
* - AI model configurations (used by landing demo and SDKs)
|
|
6
|
-
* - MCP tool input/output types (future)
|
|
7
|
-
*
|
|
8
|
-
* Internal tRPC validation schemas are in the platform repo.
|
|
9
|
-
*/
|
|
10
|
-
export * from "./ai-models.js";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Better i18n Public Schemas
|
|
3
|
-
*
|
|
4
|
-
* This package contains public-facing types and schemas for:
|
|
5
|
-
* - AI model configurations (used by landing demo and SDKs)
|
|
6
|
-
* - MCP tool input/output types (future)
|
|
7
|
-
*
|
|
8
|
-
* Internal tRPC validation schemas are in the platform repo.
|
|
9
|
-
*/
|
|
10
|
-
export * from "./ai-models.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAC"}
|