@agentskill.sh/cli 1.0.4 → 1.0.5

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.4';
2
+ const VERSION = '1.0.5';
3
3
  export async function apiFetch(path, options) {
4
4
  const res = await fetch(`${API_BASE}${path}`, {
5
5
  ...options,
@@ -37,13 +37,8 @@ export async function installCommand(args) {
37
37
  // Parse owner from slug if present (e.g. @owner/slug or owner/slug)
38
38
  let apiPath;
39
39
  const cleanSlug = slug.startsWith('@') ? slug.slice(1) : slug;
40
- if (cleanSlug.includes('/')) {
41
- const [owner, name] = cleanSlug.split('/');
42
- apiPath = `/agent/skills/${encodeURIComponent(owner)}/${encodeURIComponent(name)}/install`;
43
- }
44
- else {
45
- apiPath = `/agent/skills/${encodeURIComponent(cleanSlug)}/install`;
46
- }
40
+ // Use encoded composite slug (owner%2Fname) for reliable lookup
41
+ apiPath = `/agent/skills/${encodeURIComponent(cleanSlug)}/install`;
47
42
  if (platform) {
48
43
  apiPath += apiPath.includes('?') ? `&platform=${platform}` : `?platform=${platform}`;
49
44
  }
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { listCommand } from './commands/list.js';
5
5
  import { removeCommand } from './commands/remove.js';
6
6
  import { feedbackCommand } from './commands/feedback.js';
7
7
  import { updateCommand } from './commands/update.js';
8
- const VERSION = '1.0.4';
8
+ const VERSION = '1.0.5';
9
9
  const HELP = `ags v${VERSION} — search, install, and manage AI agent skills
10
10
 
11
11
  Usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskill.sh/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Agent Skill CLI. Search, install, review, and manage AI agent skills from agentskill.sh.",
5
5
  "type": "module",
6
6
  "bin": {