tuna-agent 0.1.161 → 0.1.162
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 = 'QUAN TRỌNG — NGÔN NGỮ PHẢN HỒI: Luôn trả lời, báo cáo và giao tiếp với người dùng bằng TIẾNG VIỆT, kể cả khi task, skill, code, tài liệu hay context viết bằng tiếng Anh. Giữ nguyên thuật ngữ kỹ thuật, tên riêng, lệnh, code; phần diễn giải/kết luận phải bằng tiếng Việt.';
|
|
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
|
}
|