min-agent 0.1.3 → 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
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## 安装
7
7
 
8
- 需要 **Node.js 20+**。发布包内含 **`tsc` 编译后的 `dist/`**(多文件 ESM),安装时会随 **`package.json` 的 `dependencies`** 安装 `ai`、`glob` 等;npm 会与同级的其它包 **dedupe**,全局安装时依赖集中在全局 `node_modules` 下,便于复用。若需单文件、零依赖安装,可自行用 esbuild 等打 bundle(本仓库默认不发布 bundle)。
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
@@ -0,0 +1,6 @@
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
+ */
6
+ import "../dist/cli.js"
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "min-agent",
3
- "version": "0.1.3",
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",
7
7
  "bin": {
8
- "min-agent": "./dist/cli.js"
8
+ "min-agent": "./bin/min-agent.js"
9
9
  },
10
10
  "engines": {
11
11
  "node": ">=20.0.0"
12
12
  },
13
13
  "files": [
14
+ "bin",
14
15
  "dist",
15
16
  "docs",
16
17
  "README.md",