@kenhkl/agent-moss 0.17.25 → 0.17.27
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/cli.js +399 -24
- package/dist/engine/coordinator.js +383 -22
- package/dist/rules/heuristic_rules.json +44 -1
- package/dist/rules/logic_rules.json +8 -0
- package/dist/server.js +399 -24
- package/package.json +1 -1
|
@@ -79,6 +79,14 @@
|
|
|
79
79
|
"searchreplace"
|
|
80
80
|
],
|
|
81
81
|
"_single_file_write_tools_comment": "单文件写工具(action_type 已转小写):语义是「把声明的内容写到声明的一个路径」。read_before_write 对它们只取工具声明的路径(command 第一个路径 / JSON 的 file_path|filePath|path),不扫 content —— 否则内容正文里的路径会被误当成写目标。bash 类工具不走这条(重定向目标可能不在第一个)。",
|
|
82
|
+
"precise_edit_write_tools": [
|
|
83
|
+
"edit",
|
|
84
|
+
"file_edit",
|
|
85
|
+
"editfile",
|
|
86
|
+
"searchreplace",
|
|
87
|
+
"search_replace"
|
|
88
|
+
],
|
|
89
|
+
"_precise_edit_write_tools_comment": "精确编辑工具(action_type 按后缀匹配):只替换 oldString/局部片段,不重写整个文件。read_before_write 对它们只要求「读过」(部分读也算),不要求读到文件末尾 —— 模型读到 oldString 所在片段就能精确编辑;按整文件覆盖的标准要求全量读会误报(2026-11 鸿蒙实测:readFile 带 offset/limit 读一段后 editFile 被拦)。整文件覆盖工具(writefile)仍要求全量读。",
|
|
82
90
|
"_reused": "不重复存的两组:① 写/删命令词边界正则 = platform_traits.json 的 write_command_res(逐字相同);② 工具排除前缀 = heuristic_rules.json 的 sensitive_excluded_prefixes(逐字相同);③ 临时目录名单 = heuristic_rules.json 的 temp_dirs(L1/L2 共用一份)。",
|
|
83
91
|
"protected_write_prefixes": [
|
|
84
92
|
"/etc/",
|