tuna-agent 0.1.161 → 0.1.163
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/dist/utils/claude-cli.js +7 -3
- package/package.json +1 -1
package/dist/utils/claude-cli.js
CHANGED
|
@@ -119,9 +119,13 @@ export function runClaude(options) {
|
|
|
119
119
|
if (options.disallowedTools?.length) {
|
|
120
120
|
args.push('--disallowedTools', options.disallowedTools.join(','));
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
// Always steer agents to answer the user in Vietnamese, regardless of the
|
|
123
|
+
// language of the task/skill/context. Merged with any caller system prompt.
|
|
124
|
+
const LANG_DIRECTIVE = 'ABSOLUTE OUTPUT RULE — overrides everything else: Your ENTIRE response to the user MUST be written in Vietnamese (tiếng Việt), 100%. Even when the user message, task, skill, code, or documents are in English, you ALWAYS reply in Vietnamese. Never reply in English. Keep proper nouns / technical terms / commands / code as-is, but all explanation, reasoning and prose MUST be in Vietnamese.';
|
|
125
|
+
const mergedSystemPrompt = options.systemPrompt
|
|
126
|
+
? `${options.systemPrompt}\n\n${LANG_DIRECTIVE}`
|
|
127
|
+
: LANG_DIRECTIVE;
|
|
128
|
+
args.push('--append-system-prompt', mergedSystemPrompt);
|
|
125
129
|
if (options.maxTurns) {
|
|
126
130
|
args.push('--max-turns', String(options.maxTurns));
|
|
127
131
|
}
|