@cellaware/utils 9.2.2 → 9.3.0
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.
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
export const DASHBOARD_VISIBILITY_PRIVATE = 'private';
|
|
2
2
|
export const DASHBOARD_VISIBILITY_PUBLIC = 'public';
|
|
3
3
|
export const DASHBOARD_VISIBILITY_GLOBAL = 'global';
|
|
4
|
-
export const DASHBOARD_PARAMETER_DATE_OPTIONS = [
|
|
5
|
-
'parameter-date-option-minus-3',
|
|
6
|
-
'parameter-date-option-minus-2',
|
|
7
|
-
'parameter-date-option-minus-1',
|
|
8
|
-
'parameter-date-option-today',
|
|
9
|
-
'parameter-date-option-plus-1',
|
|
10
|
-
'parameter-date-option-plus-2',
|
|
11
|
-
'parameter-date-option-plus-3'
|
|
12
|
-
];
|
|
13
4
|
export function initDashboard() {
|
|
14
5
|
return {
|
|
15
6
|
dashboardId: '',
|
package/dist/llm/chain-store.js
CHANGED
|
@@ -138,15 +138,24 @@ export class ChainStore {
|
|
|
138
138
|
initBuiltinChains(defaultModelName) {
|
|
139
139
|
// Translation Chain:
|
|
140
140
|
{
|
|
141
|
-
|
|
141
|
+
const prompt = `You are a professional software localization translator.
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
Translate the following English text into {language}.
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
Requirements:
|
|
146
|
+
- Preserve the original meaning and intent.
|
|
147
|
+
- Use natural, concise language appropriate for a software UI.
|
|
148
|
+
- Preserve placeholders, variables, interpolation syntax, HTML, punctuation, and special characters exactly as written.
|
|
149
|
+
- Do not translate product names, technical identifiers, or code-like values unless they are clearly natural-language text.
|
|
150
|
+
- Do not add explanations, notes, quotation marks, or extra formatting.
|
|
151
|
+
- Return only the translated text.
|
|
152
|
+
|
|
153
|
+
English:
|
|
146
154
|
{statement}
|
|
147
155
|
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
{language}:
|
|
157
|
+
`;
|
|
158
|
+
this.addExistingChain(createSingleActionChain(TRANSLATION_CHAIN_NAME, defaultModelName ?? 'gpt-5.6-luna', ['statement', 'language'], prompt, 1));
|
|
150
159
|
}
|
|
151
160
|
}
|
|
152
161
|
static getTokenUsage(chainName, modelName, tokenUsage) {
|