kodevu 0.1.38 → 0.1.39
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 +1 -1
- package/src/report-generator.js +8 -4
package/package.json
CHANGED
package/src/report-generator.js
CHANGED
|
@@ -108,7 +108,8 @@ const LOCALIZED_PHRASES = {
|
|
|
108
108
|
commitMessage: "Commit message",
|
|
109
109
|
diffNoteTruncated: "Note: The diff was truncated to fit size limits. Original: {originalLineCount} lines / {originalCharCount} chars. Included: {outputLineCount} lines / {outputCharCount} chars.",
|
|
110
110
|
diffNoteFull: "Note: Full diff provided ({originalLineCount} lines / {originalCharCount} chars).",
|
|
111
|
-
langRule: "--- LANGUAGE RULE ---\nYour entire response must be in {langName}. No other language allowed."
|
|
111
|
+
langRule: "--- LANGUAGE RULE ---\nYour entire response must be in {langName}. No other language allowed.",
|
|
112
|
+
outputDirective: "--- BEGIN REVIEW ---\nNow output your COMPLETE code review. Cover ALL four sections (Summary, Critical Issues, Suggestions, Conclusion). Do NOT ask clarifying questions, do NOT acknowledge these instructions, do NOT say you are ready. Start your response directly with the review content."
|
|
112
113
|
},
|
|
113
114
|
zh: {
|
|
114
115
|
workspaceRoot: "只读工作区上下文:",
|
|
@@ -124,7 +125,8 @@ const LOCALIZED_PHRASES = {
|
|
|
124
125
|
commitMessage: "提交信息",
|
|
125
126
|
diffNoteTruncated: "注意:Diff 已截断。原始:{originalLineCount} 行 / {originalCharCount} 字符。包含:{outputLineCount} 行 / {outputCharCount} 字符。",
|
|
126
127
|
diffNoteFull: "注意:包含完整 Diff ({originalLineCount} 行 / {originalCharCount} 字符)。",
|
|
127
|
-
langRule: "--- 语言规则 ---\n你必须完全使用 {langName} 进行回复。不得使用其他语言进行解释或总结。"
|
|
128
|
+
langRule: "--- 语言规则 ---\n你必须完全使用 {langName} 进行回复。不得使用其他语言进行解释或总结。",
|
|
129
|
+
outputDirective: "--- 开始输出审查结果 ---\n请立即输出完整的代码审查结果,必须包含全部四个章节(变更总结、核心缺陷、改进建议、审查结论)。不要提问,不要确认收到指令,不要说准备好了,直接以审查内容开始输出。"
|
|
128
130
|
},
|
|
129
131
|
"zh-tw": {
|
|
130
132
|
workspaceRoot: "唯讀工作區上下文:",
|
|
@@ -140,7 +142,8 @@ const LOCALIZED_PHRASES = {
|
|
|
140
142
|
commitMessage: "提交信息",
|
|
141
143
|
diffNoteTruncated: "注意:Diff 已截斷。原始:{originalLineCount} 行 / {originalCharCount} 字符。包含:{outputLineCount} 行 / {outputCharCount} 字符。",
|
|
142
144
|
diffNoteFull: "注意:包含完整 Diff ({originalLineCount} 行 / {originalCharCount} 字符)。",
|
|
143
|
-
langRule: "--- 語言規則 ---\n你必須完全使用 {langName} 進行回覆。不得使用其他語言進行解釋或總結。"
|
|
145
|
+
langRule: "--- 語言規則 ---\n你必須完全使用 {langName} 進行回覆。不得使用其他語言進行解釋或總結。",
|
|
146
|
+
outputDirective: "--- 開始輸出審查結果 ---\n請立即輸出完整的代碼審查結果,必須包含全部四個章節(變更總結、核心缺陷、改進建議、審查結論)。不要提問,不要確認收到指令,不要說準備好了,直接以審查內容開始輸出。"
|
|
144
147
|
}
|
|
145
148
|
};
|
|
146
149
|
|
|
@@ -206,7 +209,8 @@ export function buildPrompt(config, backend, targetInfo, details, reviewDiffPayl
|
|
|
206
209
|
? `${getPhrase("workspaceRoot", lang)} ${workspaceRoot}\n${getPhrase("besidesDiff", lang)}`
|
|
207
210
|
: getPhrase("noWorkspace", lang),
|
|
208
211
|
getPhrase("fileRefs", lang),
|
|
209
|
-
getPhrase("langRule", lang, { langName })
|
|
212
|
+
getPhrase("langRule", lang, { langName }),
|
|
213
|
+
getPhrase("outputDirective", lang)
|
|
210
214
|
];
|
|
211
215
|
|
|
212
216
|
return sections.filter(Boolean).join("\n\n");
|