skillmkt 0.4.20 → 0.4.21
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/client/lib/render.js +8 -3
- package/package.json +1 -1
package/client/lib/render.js
CHANGED
|
@@ -38,9 +38,14 @@ export function dashboard({ hub, library, scan, upstream, conflicts, llm, llmVia
|
|
|
38
38
|
err(`skillmkt · hub ${hub}${llm ? ` · llm ${llm.model} ✓${llmVia ? L(`(来自 ${llmVia},未写 config.yml)`, ` (from ${llmVia}, not in config.yml)`) : ''}` : ''}`);
|
|
39
39
|
err('');
|
|
40
40
|
err(`skills ${skills.length} installed${updates ? ` · ${updates} update available` : ''} · audit ${audits.length - bad}✓${bad ? `/${bad}⚠` : ''}`);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
// 按状态分组展示(●已装/○仅CLI/~疑似),不再符号+文字混排
|
|
42
|
+
const grp = (st) => scan.harnesses.filter((h) => h.state === st).map((h) => h.id);
|
|
43
|
+
const parts = [
|
|
44
|
+
grp('installed').length && `${L('已装', 'installed')} ${grp('installed').join(' ')}`,
|
|
45
|
+
grp('available').length && `${L('可装', 'installable')} ${grp('available').join(' ')}`,
|
|
46
|
+
grp('likely').length && `${L('疑似', 'likely')} ${grp('likely').join(' ')}`,
|
|
47
|
+
].filter(Boolean);
|
|
48
|
+
if (parts.length) err(`agents ${parts.join(' · ')}`);
|
|
44
49
|
if (project) err(`project ${project.root}`);
|
|
45
50
|
if (pending) err(`conflicts ${pending} pending — ${L('需要裁决', 'needs your decision')}`);
|
|
46
51
|
if (externals) err(`external ${externals} ${L('未收编 — install <path> 纳入管理', 'unmanaged — `install <path>` to adopt')}`);
|