min-agent 0.1.2 → 0.1.4

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
@@ -1,11 +1,11 @@
1
1
  # min-agent
2
2
 
3
- 轻量级 AI Coding Agent,支持工具调用(读写文件、Shell、搜索)、MCP 与 Skill。
3
+ 轻量级 AI Agent,支持工具调用(读写文件、Shell、搜索)、MCP 与 Skill。
4
4
  兼容 OpenAI 风格 API(OpenAI、Ollama、vLLM、MiniMax、DeepSeek 等)。
5
5
 
6
6
  ## 安装
7
7
 
8
- 需要本机已安装 **Node.js 20+**(LTS)。`npm install -g` `npx -y min-agent` 使用发布包内的 **编译产物**,**不要求安装 Bun**。
8
+ 需要 **Node.js 20+**。入口为 **`bin/min-agent.js`**(含 `#!/usr/bin/env node`),由 npm/npx 生成 `.cmd` 时用 **`node` 执行**,避免 Windows 把无 shebang 的 `dist/cli.js` 当成「用默认应用打开」。发布包内含 **`tsc` 编译后的 `dist/`**(多文件 ESM),安装时会随 **`dependencies`** 安装 `ai`、`glob` 等;npm 会与同级包 **dedupe**。
9
9
 
10
10
  ```bash
11
11
  npm install -g min-agent
@@ -13,8 +13,6 @@ npm install -g min-agent
13
13
  npx -y min-agent --help
14
14
  ```
15
15
 
16
- 从本仓库开发时:先执行 `npm install` 与 `npm run build`,再运行 `node bin/min-agent.js …`(或继续用 `bun run src/cli.ts` 做开发)。
17
-
18
16
  ## 快速开始
19
17
 
20
18
  ```bash
package/bin/min-agent.js CHANGED
@@ -1,2 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ /**
3
+ * CLI shim: Windows / npx rely on this path + npm-generated .cmd calling `node`.
4
+ * Do not point `bin` directly at dist/cli.js (no shebang, wrong file association).
5
+ */
2
6
  import "../dist/cli.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "min-agent",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Minimal AI coding agent with tool use, MCP, and skills support",
6
6
  "license": "MIT",
@@ -50,7 +50,8 @@
50
50
  "@ai-sdk/provider": "3.0.8",
51
51
  "@modelcontextprotocol/sdk": "1.27.1",
52
52
  "ai": "6.0.168",
53
- "glob": "13.0.5"
53
+ "glob": "13.0.5",
54
+ "zod": "^3.25.76"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@types/node": "22.13.9",