@epoch-agent/cli 0.21.0 → 0.22.0

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
@@ -81,8 +81,8 @@ epoch doctor # 装不上 / 跑不起来时第一个跑这个
81
81
  `.env` 里配了 key 的那一家(`applySecretsFromEnv` 第 2 步),显式覆盖现在排在
82
82
  它之后,所以 `-p openai-compatible` 不会被一把 `DEEPSEEK_API_KEY` 推翻;
83
83
  - `EPOCH_BASE_URL` 是**统一端点**:设了它 ⇒ 地址换成它,**且 type 强制落到
84
- `openai-compatible`**(15 家 loader 里只有 `openai` / `openai-compatible` 读
85
- `baseUrl`,其余 13 家只换地址会静默打回上游官网)。两个都设时以它为准。
84
+ `openai-compatible`**(收 `baseUrl` 的只有 `openai` / `openai-compatible` 和
85
+ 四家国产,其余各家只换地址会静默打回上游官网)。两个都设时以它为准。
86
86
  判据全文与复现在 [CONFIGURATION](../../docs/CONFIGURATION.md) 和
87
87
  [core 的用例](../core/__tests__/config-endpoint-override.test.ts)。
88
88
 
package/dist/index.js CHANGED
@@ -991,7 +991,11 @@ var log6 = (msg) => {
991
991
  process.stdout.write(msg + "\n");
992
992
  };
993
993
  function locations() {
994
- return { pluginsDir: pluginsDir(EPOCH_HOME), statePath: pluginsStatePath(EPOCH_HOME) };
994
+ return {
995
+ pluginsDir: pluginsDir(EPOCH_HOME),
996
+ statePath: pluginsStatePath(EPOCH_HOME),
997
+ marketplacesStatePath: marketplacesPath(EPOCH_HOME)
998
+ };
995
999
  }
996
1000
  function registerPluginCommand(program2) {
997
1001
  const cmd = program2.command("plugin").description(t8("plugin.cmd_root"));
@@ -1175,9 +1179,41 @@ function renderPreview(preview2) {
1175
1179
  lines.push("");
1176
1180
  lines.push(t8("plugin.brings_head_indented"));
1177
1181
  for (const line of renderInventory(inventory)) lines.push(` ${line}`);
1182
+ if (preview2.dependencies?.length) {
1183
+ lines.push("");
1184
+ lines.push(...renderDependencies(preview2.dependencies));
1185
+ }
1178
1186
  lines.push("");
1179
1187
  return lines;
1180
1188
  }
1189
+ function renderDependencies(deps) {
1190
+ const lines = [t8("plugin.deps_head_indented")];
1191
+ for (const dep of deps) {
1192
+ if (dep.status === "installed") {
1193
+ lines.push(` ${t8("plugin.dep_installed", { name: dep.name })}`);
1194
+ continue;
1195
+ }
1196
+ if (dep.status === "unresolved") {
1197
+ lines.push(` ${t8("plugin.dep_unresolved", { name: dep.name, reason: dep.reason ?? "" })}`);
1198
+ continue;
1199
+ }
1200
+ lines.push(
1201
+ ` ${t8("plugin.dep_plan", {
1202
+ name: dep.name,
1203
+ version: dep.manifest?.version ?? "",
1204
+ source: dep.source ?? ""
1205
+ })}`
1206
+ );
1207
+ if (dep.versionUnmet) {
1208
+ const { required, current } = dep.versionUnmet;
1209
+ lines.push(` ${t8("plugin.preview_version_unmet", { required, current })}`);
1210
+ }
1211
+ if (dep.inventory) {
1212
+ for (const line of renderInventory(dep.inventory)) lines.push(` ${line}`);
1213
+ }
1214
+ }
1215
+ return lines;
1216
+ }
1181
1217
  function renderInventory(inv) {
1182
1218
  const lines = [];
1183
1219
  if (inventoryTotal(inv) === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/cli",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "private": false,
5
5
  "description": "epoch-agent CLI 入口",
6
6
  "repository": {
@@ -22,12 +22,12 @@
22
22
  "commander": "^15.0.0",
23
23
  "ink": "^7.1.1",
24
24
  "react": "^19.2.8",
25
- "@epoch-agent/protocol": "0.21.0",
26
- "@epoch-agent/server": "0.21.0",
27
- "@epoch-agent/tui": "^0.21.0",
28
- "@epoch-agent/core": "0.21.0",
29
- "@epoch-agent/infra": "0.21.0",
30
- "@epoch-agent/runtime": "0.21.0"
25
+ "@epoch-agent/core": "0.22.0",
26
+ "@epoch-agent/protocol": "0.22.0",
27
+ "@epoch-agent/infra": "0.22.0",
28
+ "@epoch-agent/runtime": "0.22.0",
29
+ "@epoch-agent/server": "0.22.0",
30
+ "@epoch-agent/tui": "^0.22.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.20.1",