@epoch-agent/cli 0.22.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/dist/index.js +10 -3
- package/package.json +7 -7
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")}`
|
|
@@ -1189,17 +1190,18 @@ function renderPreview(preview2) {
|
|
|
1189
1190
|
function renderDependencies(deps) {
|
|
1190
1191
|
const lines = [t8("plugin.deps_head_indented")];
|
|
1191
1192
|
for (const dep of deps) {
|
|
1193
|
+
const label = depLabel(dep);
|
|
1192
1194
|
if (dep.status === "installed") {
|
|
1193
|
-
lines.push(` ${t8("plugin.dep_installed", {
|
|
1195
|
+
lines.push(` ${t8("plugin.dep_installed", { label })}`);
|
|
1194
1196
|
continue;
|
|
1195
1197
|
}
|
|
1196
1198
|
if (dep.status === "unresolved") {
|
|
1197
|
-
lines.push(` ${t8("plugin.dep_unresolved", {
|
|
1199
|
+
lines.push(` ${t8("plugin.dep_unresolved", { label, reason: dep.reason ?? "" })}`);
|
|
1198
1200
|
continue;
|
|
1199
1201
|
}
|
|
1200
1202
|
lines.push(
|
|
1201
1203
|
` ${t8("plugin.dep_plan", {
|
|
1202
|
-
|
|
1204
|
+
label,
|
|
1203
1205
|
version: dep.manifest?.version ?? "",
|
|
1204
1206
|
source: dep.source ?? ""
|
|
1205
1207
|
})}`
|
|
@@ -1214,6 +1216,11 @@ function renderDependencies(deps) {
|
|
|
1214
1216
|
}
|
|
1215
1217
|
return lines;
|
|
1216
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
|
+
}
|
|
1217
1224
|
function renderInventory(inv) {
|
|
1218
1225
|
const lines = [];
|
|
1219
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/core": "0.
|
|
26
|
-
"@epoch-agent/
|
|
27
|
-
"@epoch-agent/
|
|
28
|
-
"@epoch-agent/
|
|
29
|
-
"@epoch-agent/server": "0.
|
|
30
|
-
"@epoch-agent/tui": "^0.
|
|
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",
|