skillmkt 0.4.26 → 0.4.27
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/commands/list.js +9 -5
- package/client/lib/render.js +1 -2
- package/package.json +1 -1
package/client/commands/list.js
CHANGED
|
@@ -38,11 +38,15 @@ export async function run(ctx) {
|
|
|
38
38
|
if (tableRows.length) table(tableRows, cols);
|
|
39
39
|
else info(L('(清单是空的——先 skillmkt install <路径> 收一个进来,或 skillmkt search 去搜)', '(list is empty — skillmkt install <path> to add one, or skillmkt search to find one)'));
|
|
40
40
|
if (extRows.length) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
if (ctx.flags.raw.scan) {
|
|
42
|
+
info('');
|
|
43
|
+
info(L('这些 skill 在 agent 目录里,但还没纳入管理:', 'these skills exist in agent dirs but are not managed yet:'));
|
|
44
|
+
for (const e of extRows) info(` ${e.name.padEnd(30)} ${e.dir}`);
|
|
45
|
+
const ex = extRows[0];
|
|
46
|
+
info(L(`→ 收一个进来试试:skillmkt install ${ex.dir}/${ex.name.slice(1)}`, `→ to manage one, e.g.: skillmkt install ${ex.dir}/${ex.name.slice(1)}`));
|
|
47
|
+
} else {
|
|
48
|
+
info(L(`(另有 ${extRows.length} 个 skill 散在 agent 目录——skillmkt list --scan 查看)`, `(${extRows.length} more skills scattered in agent dirs — skillmkt list --scan to view)`));
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
if (ctx.project) {
|
|
48
52
|
const projRows = rows.filter((r) => r.where === 'project');
|
package/client/lib/render.js
CHANGED
|
@@ -38,7 +38,6 @@ export function dashboard({ hub, library, scan, upstream, conflicts, llm, llmVia
|
|
|
38
38
|
(n) => upstream.skills[n]?.tree_hash !== (scan.managedHash?.[n] ?? null) && upstream.skills[n]
|
|
39
39
|
).length;
|
|
40
40
|
const pending = conflicts.filter((c) => c.status === 'pending').length;
|
|
41
|
-
const externals = scan.rows.filter((r) => r.state === 'external').length;
|
|
42
41
|
const audits = skills.map((n) => library.skills[n].audit);
|
|
43
42
|
const bad = audits.filter((a) => a === 'suspicious' || a === 'quarantined').length;
|
|
44
43
|
|
|
@@ -54,7 +53,7 @@ export function dashboard({ hub, library, scan, upstream, conflicts, llm, llmVia
|
|
|
54
53
|
if (parts.length) err(`${pad(L('agent', 'agents'), 11)}${parts.join(' · ')}`);
|
|
55
54
|
if (project) err(`${pad(L('项目', 'project'), 11)}${project.root}`);
|
|
56
55
|
if (pending) err(`${pad(L('冲突', 'conflicts'), 11)}${L(`${pending} 个待裁决`, `${pending} pending`)} — ${L('需要裁决', 'needs your decision')}`);
|
|
57
|
-
|
|
56
|
+
// 散在 agent 目录的外部 skill 不显示——只有 `list --scan` 主动扫描才列
|
|
58
57
|
err('');
|
|
59
58
|
const hints = [];
|
|
60
59
|
if (pending) hints.push(L('skillmkt conflicts --ui 裁决冲突(开面板看图)', 'skillmkt conflicts --ui decide conflicts (visual panel)'));
|