mocode-ai 1.0.14 → 1.1.0
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/README.md +2 -19
- package/README.zh-CN.md +1 -1
- package/bin/mocode-agent-host.js +1 -1
- package/dist/agent/core.js +4 -3
- package/dist/agent/mode.js +9 -10
- package/dist/agent/spawn.js +2 -2
- package/dist/config/index.js +43 -65
- package/dist/context/artifacts.js +2 -2
- package/dist/context/classifier.js +3 -6
- package/dist/context/encoders/_util.js +2 -1
- package/dist/context/encoders/index.js +3 -4
- package/dist/context/lifecycle.js +3 -23
- package/dist/context/relevance.js +3 -22
- package/dist/host/protocol.js +19 -1
- package/dist/host/stdio.js +203 -0
- package/dist/i18n/index.js +0 -30
- package/dist/memory/index.js +6 -0
- package/dist/repl/index.js +24 -276
- package/dist/sandbox/policy.js +6 -4
- package/dist/skills/builtin-skills.js +56 -0
- package/dist/skills/discover.js +7 -0
- package/dist/skills/index.js +23 -4
- package/dist/tools/builtins/glob.js +1 -1
- package/dist/tools/builtins/grep.js +1 -1
- package/dist/tools/builtins/index.js +0 -14
- package/dist/tools/builtins/read-file.js +1 -1
- package/dist/tools/constants.js +2 -1
- package/package.json +1 -1
package/dist/tools/constants.js
CHANGED
|
@@ -28,7 +28,8 @@ export const IGNORE = ['**/node_modules/**', '**/.git/**'];
|
|
|
28
28
|
* plan 模式下从工具 schema 里剔除的工具(模型根本看不到 → 调不到):
|
|
29
29
|
* 写盘 / 命令 / 记忆写入类 + sub-agent(派生子 agent,plan 模式只读不可有副作用)。单一事实源,
|
|
30
30
|
* 被 llm(planChatTools)与 agent(防御 backstop)共用。
|
|
31
|
-
* 只读工具(read_file/glob/grep/
|
|
31
|
+
* 只读工具(read_file/glob/grep/web_search/web_fetch/use_skill/ask_human/memory_search/memory_list)保留。
|
|
32
|
+
* 注:codegraph 已 skill 化(用 run_command 调 CLI),不算核心工具,不在此屏蔽集。
|
|
32
33
|
*/
|
|
33
34
|
export const PLAN_DISABLED_TOOLS = new Set([
|
|
34
35
|
'write_file',
|