mocode-ai 1.4.6 → 1.4.7

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 CHANGED
@@ -8,6 +8,18 @@ A terminal coding agent: give it a goal, and it **completes it autonomously**
8
8
 
9
9
  MoCode explores your code, reads/writes/edits files, runs shell commands, and searches the web on its own, driving the task forward through a loop of "think → call a tool → observe the result → think again." It works with any OpenAI-compatible endpoint (GLM, DeepSeek, Qwen, local Ollama / vLLM, etc.), runs as a full-screen TUI with streaming output and visible reasoning.
10
10
 
11
+ ## Demo
12
+
13
+ See mocode complete real tasks autonomously:
14
+
15
+ **Fixing documentation drift in its own codebase** — mocode counts the actual built-in tools, finds the mismatch with `package.json` and `AGENTS.md`, and rewrites them so all three sources agree.
16
+
17
+ <p align="center"><img src="./assets/demo-doc-fix.gif" alt="mocode autonomously fixes documentation drift" width="100%"></p>
18
+
19
+ **Building a web app from scratch, with visual self-verification** — mocode creates a complete Pomodoro timer (HTML/CSS/JS, no third-party libs, Web Audio API), then uses `dev_server` + `browser` + `screenshot` to inspect its own render and iterate until the layout looks right.
20
+
21
+ <p align="center"><img src="./assets/demo-build-pomodoro.gif" alt="mocode builds a Pomodoro web app and self-verifies via browser screenshots" width="100%"></p>
22
+
11
23
  ## Engineering discipline
12
24
 
13
25
  MoCode keeps code-level control light and leaves task strategy to the agent:
package/README.zh-CN.md CHANGED
@@ -8,6 +8,18 @@
8
8
 
9
9
  mocode 自己探索代码、读写改文件、执行命令、联网查资料,以「思考 → 调用工具 → 观察结果 → 再思考」的循环一步步把任务推进到完成。接任意 OpenAI 兼容接口(GLM、DeepSeek、Qwen、本地 Ollama / vLLM 等),全屏 TUI 交互,流式输出、思考过程可见。
10
10
 
11
+ ## 演示
12
+
13
+ 看 mocode 自主完成真实任务:
14
+
15
+ **修自己仓库的文档漂移** —— mocode 逐个数清 `src/tools/builtins/index.ts` 里的实际工具数,发现 `package.json` 和 `AGENTS.md` 的描述不一致,自动改齐并跑测试验证。
16
+
17
+ <p align="center"><img src="./assets/demo-doc-fix.gif" alt="mocode 自主修复文档漂移" width="100%"></p>
18
+
19
+ **从零做一个网页应用,自己截图反复改到满意** —— mocode 用原生 HTML/CSS/JS(不引第三方库)+ Web Audio API 完成一个番茄钟,再调用 `dev_server` + `browser` + `screenshot` 检查渲染效果,发现布局问题就改代码再截图,直到满意。
20
+
21
+ <p align="center"><img src="./assets/demo-build-pomodoro.gif" alt="mocode 从零搭建番茄钟并通过浏览器截图自检" width="100%"></p>
22
+
11
23
  ## 架构
12
24
 
13
25
  MoCode 是一个分层的自治运行时:终端交互层驱动 Agent 内核,内核通过受控能力平面执行真实操作,持久化认知层则让长任务和跨会话工作保持连贯。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mocode-ai",
3
- "version": "1.4.6",
4
- "description": "终端编码 agent:LLM + tool-call 循环 + 流式输出(含思考)+ 16 个工具,接任意 OpenAI 兼容后端。",
3
+ "version": "1.4.7",
4
+ "description": "终端编码 agent:LLM + tool-call 循环 + 流式输出(含思考)+ 25 个工具,接任意 OpenAI 兼容后端。",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "mocode": "bin/mocode.js",