@leviyuan/lodestar 0.11.9 → 0.11.11
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 +33 -0
- package/dist/lodestar.js +192 -191
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,39 @@ curl -sS -X POST http://127.0.0.1:9876/notify \
|
|
|
104
104
|
-d '{"project":"xxx","text":"build done","level":"info"}'
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
`/notify` 还支持可选的 `images` 字段,传本地图片绝对路径,夜航星上传到飞书后渲染在正文之前(上传失败会在卡片里显式标红,不会静默丢):
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
curl -sS -X POST http://127.0.0.1:9876/notify \
|
|
111
|
+
-H 'Content-Type: application/json' \
|
|
112
|
+
-d '{"project":"xxx","level":"warn","text":"卡点截图如下","images":["/abs/shot.png"]}'
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 🧩 项目级隔离配置(外部项目接入)
|
|
116
|
+
|
|
117
|
+
默认每个飞书群对应 `projects_root` 下同名目录,跑 Claude Code 默认工具集。当一个外部项目(不在 `projects_root` 下、且需要干净隔离的 agent)想接入时,在 `~/.config/lodestar/config.toml` 加一个 `[projects.<群名>]` 节即可 —— **未配置的项目行为完全不变**:
|
|
118
|
+
|
|
119
|
+
```toml
|
|
120
|
+
[projects.calculator2]
|
|
121
|
+
cwd = "/abs/path/to/evolving_data/calculator2"
|
|
122
|
+
setting_sources = "project"
|
|
123
|
+
strict_mcp = "true"
|
|
124
|
+
tools = "Read,Write,Edit,Bash,Glob,Grep"
|
|
125
|
+
load_project_mcp = "true"
|
|
126
|
+
keep_lodestar_instructions = "true"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
| 字段 | 作用 | 默认 |
|
|
130
|
+
| --- | --- | --- |
|
|
131
|
+
| `cwd` | agent 工作目录(绝对路径) | `projects_root/<群名>` |
|
|
132
|
+
| `setting_sources` | `project` 只读项目级设置,不加载用户级全局插件/技能 | `user` |
|
|
133
|
+
| `strict_mcp` | 只挂下方项目 MCP,忽略全局 MCP | 关 |
|
|
134
|
+
| `tools` | 允许的内置工具(逗号分隔);MCP 工具由 `load_project_mcp` 自动可用,不用列在这里 | claude_code 全套 |
|
|
135
|
+
| `load_project_mcp` | 读取 `<cwd>/.mcp.json` 并挂载其 MCP 服务 | 关 |
|
|
136
|
+
| `keep_lodestar_instructions` | 保留夜航星卡片/输出约定系统提示 | 开 |
|
|
137
|
+
|
|
138
|
+
`strict_mcp = "true"` 时,项目 `.mcp.json` 是 agent 能挂上 MCP 的唯一通路 —— 全局插件/技能被全部挡掉,agent 干净专注。典型用法:外部自动化引擎在自己的目录里维护规则文件,夜航星负责飞书通道和卡片渲染,两者通过群消息驱动协作。
|
|
139
|
+
|
|
107
140
|
---
|
|
108
141
|
|
|
109
142
|
> [!TIP]
|