skillmkt 0.4.14 → 0.4.15

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.
@@ -25,6 +25,8 @@ export async function renderDashboard(ctx) {
25
25
  const upstream = readYAMLFile(path.join(hub, 'state', 'upstream.yml'), { skills: {} });
26
26
  const conflicts = listYAML(path.join(hub, 'conflicts'));
27
27
 
28
- dashboard({ hub, library, scan: { rows, harnesses, managedHash }, upstream, conflicts, llm, project });
28
+ // llm 解析链有 env 兜底——config.yml 没写 llm 但 env 提供了时,标注来源免得用户困惑
29
+ const llmVia = llm && !config.llm?.base_url ? 'env' : null;
30
+ dashboard({ hub, library, scan: { rows, harnesses, managedHash }, upstream, conflicts, llm, llmVia, project });
29
31
  return 0;
30
32
  }
@@ -25,7 +25,7 @@ export const fail = (s) => err(`✗ ${s}`);
25
25
  export const info = (s) => err(` ${s}`);
26
26
 
27
27
  // 裸跑仪表盘:只摆"需要注意力"的信息
28
- export function dashboard({ hub, library, scan, upstream, conflicts, llm, project }) {
28
+ export function dashboard({ hub, library, scan, upstream, conflicts, llm, llmVia, project }) {
29
29
  const skills = Object.keys(library.skills || {});
30
30
  const updates = Object.keys(upstream?.skills || {}).filter(
31
31
  (n) => upstream.skills[n]?.tree_hash !== (scan.managedHash?.[n] ?? null) && upstream.skills[n]
@@ -35,7 +35,7 @@ export function dashboard({ hub, library, scan, upstream, conflicts, llm, projec
35
35
  const audits = skills.map((n) => library.skills[n].audit);
36
36
  const bad = audits.filter((a) => a === 'suspicious' || a === 'quarantined').length;
37
37
 
38
- err(`skillmkt · hub ${hub}${llm ? ` · llm ${llm.model} ✓` : ''}`);
38
+ err(`skillmkt · hub ${hub}${llm ? ` · llm ${llm.model} ✓${llmVia === 'env' ? L('(来自环境变量,未写 config.yml)', ' (from env vars, 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
41
  const hs = scan.harnesses.filter((h) => h.state !== 'absent')
@@ -48,7 +48,9 @@ export function dashboard({ hub, library, scan, upstream, conflicts, llm, projec
48
48
  const hints = [];
49
49
  if (pending) hints.push(L('skillmkt conflicts --ui 裁决冲突(开面板看图)', 'skillmkt conflicts --ui decide conflicts (visual panel)'));
50
50
  if (updates) hints.push(L('skillmkt outdated 看可更新项', 'skillmkt outdated view updates'));
51
- if (externals) hints.push(L('skillmkt list 查看 ◌external 路径', 'skillmkt list view ◌external paths'));
52
- hints.push(L('skillmkt list 安装矩阵', 'skillmkt list install matrix'), L('skillmkt --help 全部命令', 'skillmkt --help all commands'));
51
+ hints.push(externals
52
+ ? L('skillmkt list 安装矩阵 + ◌external 路径', 'skillmkt list install matrix + ◌external paths')
53
+ : L('skillmkt list 安装矩阵', 'skillmkt list install matrix'));
54
+ hints.push(L('skillmkt --help 全部命令', 'skillmkt --help all commands'));
53
55
  hints.slice(0, 4).forEach((h) => err(h));
54
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillmkt",
3
- "version": "0.4.14",
3
+ "version": "0.4.15",
4
4
  "type": "module",
5
5
  "description": "Local-first agent skill manager: install, audit, merge, distribute.",
6
6
  "license": "MIT",