skillmkt 0.4.13 → 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.
@@ -168,5 +168,15 @@ export async function run(ctx) {
168
168
 
169
169
  ok(`init done — default_targets: ${raw.default_targets.join(', ') || L('(无 installed harness,装好后 targets add)', '(no installed agent — use targets add later)')}`);
170
170
  info(`llm: ${model ? `${model} @ ${base_url}` : L('未配置(skillmkt init 随时重跑)', 'not configured (rerun skillmkt init anytime)')}`);
171
+
172
+ info(L('接下来怎么用:', 'What you can do next:'));
173
+ for (const [cmd, desc] of [
174
+ ['skillmkt install <路径>', L('收编一个本地 skill(目录或压缩包)', 'adopt a local skill (dir or archive)')],
175
+ ['skillmkt search <关键词>', L('搜远端 skill 市场', 'search the remote skill market')],
176
+ ['skillmkt list', L('看已管理的 skill', 'list managed skills')],
177
+ ['skillmkt serve', L('打开 Web 面板(冲突/裁决/合并可视化)', 'open the web panel (conflicts/decisions/merge)')],
178
+ ['skillmkt doctor', L('体检:配置、agent、端点连通性', 'health check: config, agents, endpoint')],
179
+ ['skillmkt --help', L('全部命令', 'all commands')],
180
+ ]) info(` ${cmd.padEnd(30)} ${desc}`);
171
181
  return 0;
172
182
  }
@@ -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.13",
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",