skillmkt 0.4.26 → 0.4.28

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.
@@ -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
- info('');
42
- info(L('这些 skill 在 agent 目录里,但还没纳入管理:', 'these skills exist in agent dirs but are not managed yet:'));
43
- for (const e of extRows) info(` ${e.name.padEnd(30)} ${e.dir}`);
44
- const ex = extRows[0];
45
- info(L(`→ 收一个进来试试:skillmkt install ${ex.dir}/${ex.name.slice(1)}`, `→ to manage one, e.g.: skillmkt install ${ex.dir}/${ex.name.slice(1)}`));
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');
@@ -29,8 +29,8 @@ export async function run(ctx) {
29
29
 
30
30
  info(L('本地', 'LOCAL'));
31
31
  if (local.length) {
32
- table(local.map((r) => ({ name: r.name, where: `${r.where}${r.state === 'external' ? ' (external)' : ''}`, ver: r.version })),
33
- [{ key: 'name', title: 'skill' }, { key: 'where', title: 'where' }, { key: 'ver', title: 'ver' }]);
32
+ table(local.map((r) => ({ name: r.name, where: `${r.where}${r.state === 'external' ? ` ${L('(未管理)', '(external)')}` : ''}`, ver: r.version, desc: (r.description || '').slice(0, 50) })),
33
+ [{ key: 'name', title: 'skill' }, { key: 'where', title: L('位置', 'where') }, { key: 'ver', title: 'ver' }, { key: 'desc', title: L('说明', 'desc') }]);
34
34
  } else info(L(' (本地没匹配到)', ' (no local match)'));
35
35
 
36
36
  if (wantRemote) {
@@ -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
- if (externals) err(`${pad(L('agent目录', 'agent dirs'), 11)}${L(`${externals} 个 skill 但没被管理`, `${externals} skills, unmanaged`)} — ${L('install <path> 收进来', '`install <path>` to manage')}`);
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)'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillmkt",
3
- "version": "0.4.26",
3
+ "version": "0.4.28",
4
4
  "type": "module",
5
5
  "description": "Local-first agent skill manager: install, audit, merge, distribute.",
6
6
  "license": "MIT",