min-agent 0.6.0 → 0.6.2
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 +70 -118
- package/dist/cli.js +202 -202
- package/docs/API.md +2 -0
- package/package.json +2 -2
- package/skills/self-config/SKILL.md +2 -2
package/docs/API.md
CHANGED
|
@@ -21,6 +21,8 @@ min-agent serve --host 0.0.0.0 --port 3000
|
|
|
21
21
|
> CORS 未设置 token 时仅允许 localhost Origin(无 Origin 头的请求不受限);非 localhost Origin 返回 `403 origin_not_allowed`。设置 `MIN_AGENT_SERVE_TOKEN` 后不受 Origin 限制。
|
|
22
22
|
>
|
|
23
23
|
> 会话 ID 仅接受 `[A-Za-z0-9_-]+`,非法 ID 一律返回 404/400,防止路径穿越。
|
|
24
|
+
>
|
|
25
|
+
> 项目级写入:`scope: "project"` 的写接口(`/v1/permission`、`/v1/thinking`、`/v1/sandbox`、`/v1/budget`、`/v1/memory`、`/v1/mcp`、`/v1/skills/:name/enable|disable` 等)只有当前目录已存在 `.min-agent/`(由 `min-agent init` 创建)时才会落盘;目录不存在时写操作被跳过(响应仍返回成功,stderr 会打印跳过警告)。
|
|
24
26
|
|
|
25
27
|
---
|
|
26
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "min-agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Minimal AI coding agent with tool use, MCP, and skills support",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bugs": {
|
|
29
29
|
"url": "https://gitee.com/lemon8510/min-agent/issues"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://min-agent.com",
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "bun run src/cli.ts",
|
|
34
34
|
"build": "bun run scripts/bundle.ts",
|
|
@@ -19,9 +19,9 @@ This skill is already loaded. Follow it whenever the user asks to change min-age
|
|
|
19
19
|
| Global | `~/.min-agent/` (`MIN_AGENT_CONFIG_DIR` replaces this) | All projects; API keys live only here |
|
|
20
20
|
| Project | `<cwd>/.min-agent/` | This repo only |
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Never create `.min-agent/` yourself. It exists only after the user ran `min-agent init` (or created the folder on their own). Project scope is available only when `.min-agent/` already exists — otherwise use **global**. If the user wants project config in a directory without it, tell them to run `min-agent init` first. Never put `apiKey`, `token`, `serperApiKey`, or other secrets in project files.
|
|
23
23
|
|
|
24
|
-
Config files are **strict JSON** (no comments). Read the file before editing. Prefer the `edit` tool for existing files; `write` only when creating a new file. Keep unrelated keys. Create parent directories when needed.
|
|
24
|
+
Config files are **strict JSON** (no comments). Read the file before editing. Prefer the `edit` tool for existing files; `write` only when creating a new file. Keep unrelated keys. Create parent directories when needed — except `.min-agent/` itself.
|
|
25
25
|
|
|
26
26
|
## What goes where
|
|
27
27
|
|