@agentskill.sh/cli 1.0.8 → 1.0.9

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/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const API_BASE = 'https://agentskill.sh/api';
2
- const VERSION = '1.0.8';
2
+ const VERSION = '1.0.9';
3
3
  export async function apiFetch(path, options) {
4
4
  const res = await fetch(`${API_BASE}${path}`, {
5
5
  ...options,
@@ -36,20 +36,21 @@ export async function searchCommand(args) {
36
36
  const rows = data.results.map(s => ({
37
37
  name: s.name,
38
38
  owner: `@${s.owner}`,
39
- desc: truncate(s.description || '', 60),
39
+ desc: truncate(s.description || '', 50),
40
+ quality: s.contentQualityScore != null ? `${s.contentQualityScore}/100` : '\u2014',
40
41
  security: s.securityScore != null ? `${s.securityScore}/100` : '\u2014',
41
42
  }));
42
43
  const cols = {
43
44
  name: Math.max(4, ...rows.map(r => r.name.length)),
44
45
  owner: Math.max(6, ...rows.map(r => r.owner.length)),
45
- desc: Math.max(11, ...rows.map(r => r.desc.length)),
46
+ quality: Math.max(7, ...rows.map(r => r.quality.length)),
46
47
  security: Math.max(8, ...rows.map(r => r.security.length)),
47
48
  };
48
49
  const pad = (s, w) => s + ' '.repeat(Math.max(0, w - s.length));
49
- console.log(` ${pad('Name', cols.name)} ${pad('Author', cols.owner)} ${pad('Security', cols.security)} Description`);
50
- console.log(` ${'-'.repeat(cols.name)} ${'-'.repeat(cols.owner)} ${'-'.repeat(cols.security)} ${'-'.repeat(11)}`);
50
+ console.log(` ${pad('Name', cols.name)} ${pad('Author', cols.owner)} ${pad('Quality', cols.quality)} ${pad('Security', cols.security)} Description`);
51
+ console.log(` ${'-'.repeat(cols.name)} ${'-'.repeat(cols.owner)} ${'-'.repeat(cols.quality)} ${'-'.repeat(cols.security)} ${'-'.repeat(11)}`);
51
52
  for (const r of rows) {
52
- console.log(` ${pad(r.name, cols.name)} ${pad(r.owner, cols.owner)} ${pad(r.security, cols.security)} ${r.desc}`);
53
+ console.log(` ${pad(r.name, cols.name)} ${pad(r.owner, cols.owner)} ${pad(r.quality, cols.quality)} ${pad(r.security, cols.security)} ${r.desc}`);
53
54
  }
54
55
  console.log(`\nInstall: npx @agentskill.sh/cli install <slug>`);
55
56
  }
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { removeCommand } from './commands/remove.js';
6
6
  import { feedbackCommand } from './commands/feedback.js';
7
7
  import { updateCommand } from './commands/update.js';
8
8
  import { setupCommand } from './commands/setup.js';
9
- const VERSION = '1.0.8';
9
+ const VERSION = '1.0.9';
10
10
  const HELP = `ags v${VERSION} — search, install, and manage AI agent skills
11
11
 
12
12
  Usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskill.sh/cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Agent Skill CLI. Search, install, review, and manage AI agent skills from agentskill.sh.",
5
5
  "type": "module",
6
6
  "bin": {