kodevu 0.1.46 → 0.1.47
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 +6 -6
- package/src/reviewers.js +1 -0
package/package.json
CHANGED
package/src/report-generator.js
CHANGED
|
@@ -21,12 +21,12 @@ List points for improvement regarding code style, performance, or architectural
|
|
|
21
21
|
### 4. Conclusion
|
|
22
22
|
Summarize with a "Pass" or "Needs Revision". If no clear flaws are found, state "No clear flaws found" and mention any residual risks.
|
|
23
23
|
|
|
24
|
-
Note: You are in a read-only review mode. Do not act as if you are "applying the patch" or "executing code". Provide only textual analysis and feedback.`,
|
|
24
|
+
Note: You are in a read-only review mode. Do not attempt to call any external tools or MCP (Model Context Protocol) tools. Do not act as if you are "applying the patch" or "executing code". Provide only textual analysis and feedback.`,
|
|
25
25
|
phrases: {
|
|
26
26
|
workspaceRoot: "Workspace context (read-only):",
|
|
27
27
|
noWorkspace: "No local repository workspace is available for this review run.",
|
|
28
28
|
besidesDiff: "You can read related files in the workspace to understand call sites, shared utilities, configuration, or data flow.",
|
|
29
|
-
reviewFromDiff: "Review primarily based on the provided diff. Do not assume access to other local files or shell commands.",
|
|
29
|
+
reviewFromDiff: "Review primarily based on the provided diff. Do not assume access to other local files or shell commands. You MUST NOT call any MCP tools.",
|
|
30
30
|
fileRefs: "Reference files using plain text like 'path/to/file.js:123'. Do not generate clickable workspace links.",
|
|
31
31
|
repoType: "Repository Type",
|
|
32
32
|
changeId: "Change ID",
|
|
@@ -60,12 +60,12 @@ Note: You are in a read-only review mode. Do not act as if you are "applying the
|
|
|
60
60
|
### 4. 审查结论 (Conclusion)
|
|
61
61
|
如果发现明显缺陷,总结修复建议;如果未发现明显缺陷,请说明“未发现明显缺陷”并指出可能的残留风险。
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
注意:你正处于只读审查模式,禁止调用任何外部工具或 MCP (Model Context Protocol) 工具。请勿表现出“正在应用补丁”或“准备执行代码”的行为。只需提供文字审查分析。`,
|
|
64
64
|
phrases: {
|
|
65
65
|
workspaceRoot: "只读工作区上下文:",
|
|
66
66
|
noWorkspace: "此审查运行没有可用的本地仓库工作区。",
|
|
67
67
|
besidesDiff: "你可以阅读工作区中的其他文件以了解调用点、工具类、配置或数据流。",
|
|
68
|
-
reviewFromDiff: "主要根据提供的 Diff 进行审查。不要假设可以访问其他文件或执行 Shell
|
|
68
|
+
reviewFromDiff: "主要根据提供的 Diff 进行审查。不要假设可以访问其他文件或执行 Shell 命令。你绝不能调用任何 MCP 工具。",
|
|
69
69
|
fileRefs: "使用纯文本引用文件,如 'path/to/file.js:123'。不要生成可点击的链接。",
|
|
70
70
|
repoType: "仓库类型",
|
|
71
71
|
changeId: "变更 ID",
|
|
@@ -99,12 +99,12 @@ Note: You are in a read-only review mode. Do not act as if you are "applying the
|
|
|
99
99
|
### 4. 審查結論 (Conclusion)
|
|
100
100
|
如果發現明顯缺陷,總結修復建議;如果未發現明顯缺陷,請說明「未發現明顯缺陷」並指出可能的殘留風險。
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
注意:你正處於唯讀審查模式,禁止調用任何外部工具或 MCP (Model Context Protocol) 工具。請勿表現出「正在應用補丁」或「準備執行代碼」的行為。只需提供文字審查分析。`,
|
|
103
103
|
phrases: {
|
|
104
104
|
workspaceRoot: "唯讀工作區上下文:",
|
|
105
105
|
noWorkspace: "此審查運行沒有可用的本地倉庫工作區。",
|
|
106
106
|
besidesDiff: "你可以閱讀工作區中的其他文件以了解調用點、工具類、配置或資料流。",
|
|
107
|
-
reviewFromDiff: "主要根據提供的 Diff 進行審查。不要假設可以訪問其他文件或執行 Shell
|
|
107
|
+
reviewFromDiff: "主要根據提供的 Diff 進行審查。不要假設可以訪問其他文件或執行 Shell 命令。你絕不能調用任何 MCP 工具。",
|
|
108
108
|
fileRefs: "使用純文本引用文件,如 'path/to/file.js:123'。不要生成可點擊的連結。",
|
|
109
109
|
repoType: "倉庫類型",
|
|
110
110
|
changeId: "變更 ID",
|
package/src/reviewers.js
CHANGED
|
@@ -82,6 +82,7 @@ export const REVIEWERS = {
|
|
|
82
82
|
`Use the file-reading tools to open this exact file path: ${reviewInputFile}`,
|
|
83
83
|
"That file contains the full review instructions and the unified diff to review.",
|
|
84
84
|
"Follow the instructions from that file exactly and output the final review directly.",
|
|
85
|
+
"Do not call any MCP tools or external tools except for reading the initial instruction file.",
|
|
85
86
|
"Do not ask clarifying questions. Do not mention tool usage. Do not say you are ready.",
|
|
86
87
|
"Start immediately with the review content."
|
|
87
88
|
].join("\n");
|