@epoch-agent/cli 0.21.0 → 0.23.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 +2 -2
- package/dist/index.js +44 -1
- package/package.json +7 -7
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
|
|
85
|
-
|
|
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
|
@@ -84,6 +84,7 @@ async function withRuntime(fn) {
|
|
|
84
84
|
function renderRole(role) {
|
|
85
85
|
const lines = [];
|
|
86
86
|
lines.push(` ${role.name} [${roleSourceLabel(role.source)}]`);
|
|
87
|
+
if (role.displayName) lines.push(` ${t2("agents.display_name", { name: role.displayName })}`);
|
|
87
88
|
lines.push(` ${role.description}`);
|
|
88
89
|
lines.push(
|
|
89
90
|
` ${role.tools ? t2("agents.tools_declared", { tools: role.tools.join(", ") }) : t2("agents.tools_inherited")}`
|
|
@@ -991,7 +992,11 @@ var log6 = (msg) => {
|
|
|
991
992
|
process.stdout.write(msg + "\n");
|
|
992
993
|
};
|
|
993
994
|
function locations() {
|
|
994
|
-
return {
|
|
995
|
+
return {
|
|
996
|
+
pluginsDir: pluginsDir(EPOCH_HOME),
|
|
997
|
+
statePath: pluginsStatePath(EPOCH_HOME),
|
|
998
|
+
marketplacesStatePath: marketplacesPath(EPOCH_HOME)
|
|
999
|
+
};
|
|
995
1000
|
}
|
|
996
1001
|
function registerPluginCommand(program2) {
|
|
997
1002
|
const cmd = program2.command("plugin").description(t8("plugin.cmd_root"));
|
|
@@ -1175,9 +1180,47 @@ function renderPreview(preview2) {
|
|
|
1175
1180
|
lines.push("");
|
|
1176
1181
|
lines.push(t8("plugin.brings_head_indented"));
|
|
1177
1182
|
for (const line of renderInventory(inventory)) lines.push(` ${line}`);
|
|
1183
|
+
if (preview2.dependencies?.length) {
|
|
1184
|
+
lines.push("");
|
|
1185
|
+
lines.push(...renderDependencies(preview2.dependencies));
|
|
1186
|
+
}
|
|
1178
1187
|
lines.push("");
|
|
1179
1188
|
return lines;
|
|
1180
1189
|
}
|
|
1190
|
+
function renderDependencies(deps) {
|
|
1191
|
+
const lines = [t8("plugin.deps_head_indented")];
|
|
1192
|
+
for (const dep of deps) {
|
|
1193
|
+
const label = depLabel(dep);
|
|
1194
|
+
if (dep.status === "installed") {
|
|
1195
|
+
lines.push(` ${t8("plugin.dep_installed", { label })}`);
|
|
1196
|
+
continue;
|
|
1197
|
+
}
|
|
1198
|
+
if (dep.status === "unresolved") {
|
|
1199
|
+
lines.push(` ${t8("plugin.dep_unresolved", { label, reason: dep.reason ?? "" })}`);
|
|
1200
|
+
continue;
|
|
1201
|
+
}
|
|
1202
|
+
lines.push(
|
|
1203
|
+
` ${t8("plugin.dep_plan", {
|
|
1204
|
+
label,
|
|
1205
|
+
version: dep.manifest?.version ?? "",
|
|
1206
|
+
source: dep.source ?? ""
|
|
1207
|
+
})}`
|
|
1208
|
+
);
|
|
1209
|
+
if (dep.versionUnmet) {
|
|
1210
|
+
const { required, current } = dep.versionUnmet;
|
|
1211
|
+
lines.push(` ${t8("plugin.preview_version_unmet", { required, current })}`);
|
|
1212
|
+
}
|
|
1213
|
+
if (dep.inventory) {
|
|
1214
|
+
for (const line of renderInventory(dep.inventory)) lines.push(` ${line}`);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
return lines;
|
|
1218
|
+
}
|
|
1219
|
+
function depLabel(dep) {
|
|
1220
|
+
const display = dep.displayName;
|
|
1221
|
+
if (!display || display === dep.name) return dep.name;
|
|
1222
|
+
return t8("plugin.dep_label_named", { display, name: dep.name });
|
|
1223
|
+
}
|
|
1181
1224
|
function renderInventory(inv) {
|
|
1182
1225
|
const lines = [];
|
|
1183
1226
|
if (inventoryTotal(inv) === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.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/
|
|
26
|
-
"@epoch-agent/
|
|
27
|
-
"@epoch-agent/
|
|
28
|
-
"@epoch-agent/
|
|
29
|
-
"@epoch-agent/
|
|
30
|
-
"@epoch-agent/
|
|
25
|
+
"@epoch-agent/core": "0.23.0",
|
|
26
|
+
"@epoch-agent/infra": "0.23.0",
|
|
27
|
+
"@epoch-agent/runtime": "0.23.0",
|
|
28
|
+
"@epoch-agent/protocol": "0.23.0",
|
|
29
|
+
"@epoch-agent/server": "0.23.0",
|
|
30
|
+
"@epoch-agent/tui": "^0.23.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.20.1",
|