codebee 0.1.0 → 0.1.1

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.
@@ -84,31 +84,40 @@ DEFAULT_CATALOG = [
84
84
  },
85
85
  {
86
86
  "id": "openclaw", "name": "OpenClaw", "cli_group": "installable",
87
- "note": "网关型个人 AI 智能体(原 Clawdbot);编排模板装好后需验证",
87
+ "note": "网关型个人 AI 智能体(原 Clawdbot);编排模板装好后需验证;"
88
+ "默认模型在 openclaw.json 的 agents.defaults.model.primary"
89
+ "(顶层 model 键会被 schema 校验拒绝启动,绝不写顶层)",
88
90
  "detect": {"cli": "openclaw"},
89
91
  "orch": {"kind": "generic", "command": "openclaw", "argv_template": ["{prompt}"]},
90
- "config": {"path": "~/.openclaw/openclaw.json", "format": "json", "model_key": None},
92
+ "config": {"path": "~/.openclaw/openclaw.json", "format": "json-path",
93
+ "model_key": "agents.defaults.model.primary"},
91
94
  "install": "npm install -g openclaw",
92
95
  "upgrade": "npm install -g openclaw@latest",
93
96
  "default_enabled": False,
94
97
  },
95
98
  {
96
99
  "id": "kimi-code", "name": "Kimi Code", "cli_group": "installable",
97
- "note": "月之暗面 Kimi 编码 CLI(TypeScript 版,需 Node ≥22.19);旧 Python 版 kimi-cli 正在下线",
100
+ "note": "月之暗面 Kimi 编码 CLI(TypeScript 版,需 Node ≥22.19);旧 Python 版 "
101
+ "kimi-cli 正在下线;默认模型在 ~/.kimi-code/config.toml 的顶层 "
102
+ "default_model(值须是 [models] 表里定义的别名),首启自动建文件",
98
103
  "detect": {"cli": "kimi"},
99
104
  "orch": {"kind": "generic", "command": "kimi", "argv_template": ["-p", "{prompt}"]},
100
- "config": {"path": "~/.kimi/config.json", "format": "json", "model_key": None},
105
+ "config": {"path": "~/.kimi-code/config.toml", "format": "toml-section",
106
+ "model_key": "default_model"},
101
107
  "install": "npm install -g @moonshot-ai/kimi-code",
102
108
  "upgrade": "npm install -g @moonshot-ai/kimi-code@latest",
103
109
  "default_enabled": False,
104
110
  },
105
111
  {
106
112
  "id": "mimo-code", "name": "MiMo Code", "cli_group": "installable",
107
- "note": "小米 MiMo Code(opencode 衍生);无头调用是子命令 mimo run \"提示词\",-p 在该 CLI 是 --password",
113
+ "note": "小米 MiMo Code(opencode 衍生);无头调用是子命令 mimo run \"提示词\""
114
+ "-p 在该 CLI 是 --password;默认模型在 ~/.config/mimocode/mimocode.jsonc "
115
+ "顶层 model(provider/model 格式),onboarding 自动建文件",
108
116
  "detect": {"cli": "mimo"},
109
117
  "orch": {"kind": "generic", "command": "mimo", "argv_template": ["run", "{prompt}"],
110
118
  "resume_argv_template": ["run", "-s", "{session}"]},
111
- "config": {"path": "~/.mimo/config.json", "format": "json", "model_key": None},
119
+ "config": {"path": "~/.config/mimocode/mimocode.jsonc", "format": "jsonc",
120
+ "model_key": "model"},
112
121
  "install": "npm install -g @mimo-ai/cli",
113
122
  "upgrade": "npm install -g @mimo-ai/cli@latest",
114
123
  "default_enabled": False,
@@ -127,10 +136,13 @@ DEFAULT_CATALOG = [
127
136
  },
128
137
  {
129
138
  "id": "pi", "name": "Pi", "cli_group": "installable",
130
- "note": "Earendil Works 的 Pi 编码 CLI(需 Node ≥22.19);包名必须带 @earendil-works/ 前缀",
139
+ "note": "Earendil Works 的 Pi 编码 CLI(需 Node ≥22.19);包名必须带 @earendil-works/ 前缀;"
140
+ "默认模型在 ~/.pi/agent/settings.json 的 defaultModel(须配 defaultProvider 才能解析)",
131
141
  "detect": {"cli": "pi"},
132
142
  "orch": {"kind": "generic", "command": "pi", "argv_template": ["-p", "{prompt}"]},
133
- "config": {"path": "~/.pi/config.json", "format": "json", "model_key": None},
143
+ "config": {"path": "~/.pi/agent/settings.json", "format": "json-path",
144
+ "model_key": "defaultModel",
145
+ "model_extra_keys": {"defaultProvider": ""}},
134
146
  "install": "npm install -g --ignore-scripts @earendil-works/pi-coding-agent",
135
147
  "upgrade": "npm install -g --ignore-scripts @earendil-works/pi-coding-agent@latest",
136
148
  "default_enabled": False,
@@ -185,13 +197,22 @@ LAUNCH_PATCH = { "codex-cli": {"kind": "console", "command": "codex"},
185
197
  # config.format 修正({id: config 字段}):load() 幂等覆盖。qwen 的 settings.json
186
198
  # 顶层 "model" 是 legacy(被忽略并告警)——老用户的 catalog.json 里 qwencode 还是
187
199
  # format=json,不修正的话每次打开都会写无效字段;覆盖无风险(写了也不生效)。
200
+ # grok/kimi/mimo/pi/openclaw 同理:真实落点均经官方文档/源码查证(详见各条目 note
201
+ # 与 tests/test_grok_build.py),早期错标(不存在的文件/错误键名)导致保存默认模型
202
+ # 必然失败或写进无效键,覆盖无风险。
188
203
  CONFIG_PATCH = {
189
204
  "qwencode": {"path": "~/.qwen/settings.json", "format": None, "model_key": None},
190
- # grok 实测配置是 TOML(config.toml 的 [models] default);早期版本错标成
191
- # config.json + format=json,文件永远不存在导致「保存默认模型」必然失败——
192
- # 必须覆盖修正(写 config.json 无任何效果,覆盖无风险)。
193
205
  "grok-build": {"path": "~/.grok/config.toml", "format": "toml-section",
194
206
  "model_key": "models.default"},
207
+ "kimi-code": {"path": "~/.kimi-code/config.toml", "format": "toml-section",
208
+ "model_key": "default_model"},
209
+ "mimo-code": {"path": "~/.config/mimocode/mimocode.jsonc", "format": "jsonc",
210
+ "model_key": "model"},
211
+ "pi": {"path": "~/.pi/agent/settings.json", "format": "json-path",
212
+ "model_key": "defaultModel",
213
+ "model_extra_keys": {"defaultProvider": ""}},
214
+ "openclaw": {"path": "~/.openclaw/openclaw.json", "format": "json-path",
215
+ "model_key": "agents.defaults.model.primary"},
195
216
  }
196
217
 
197
218