@agentskill.sh/cli 1.0.4 → 1.0.6
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 +1 -1
- package/dist/commands/install.js +3 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
package/dist/commands/install.js
CHANGED
|
@@ -17,7 +17,7 @@ function buildSkillHeader(skill) {
|
|
|
17
17
|
'# Rubric: 5=perfect 4=good 3=friction 2=partial 1=broken',
|
|
18
18
|
'# Submit: POST https://agentskill.sh/api/skills/' + encodeURIComponent(skill.slug) + '/agent-feedback',
|
|
19
19
|
'# Body: {"score":N,"comment":"brief reason","platform":"<your-platform>","autoRated":true}',
|
|
20
|
-
`# User override: npx
|
|
20
|
+
`# User override: npx @agentskill.sh/cli feedback ${skill.slug} <1-5> [comment]`,
|
|
21
21
|
'# ---',
|
|
22
22
|
'',
|
|
23
23
|
].join('\n');
|
|
@@ -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
|
-
|
|
41
|
-
|
|
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.
|
|
8
|
+
const VERSION = '1.0.6';
|
|
9
9
|
const HELP = `ags v${VERSION} — search, install, and manage AI agent skills
|
|
10
10
|
|
|
11
11
|
Usage:
|
|
@@ -35,7 +35,7 @@ Examples:
|
|
|
35
35
|
ags feedback seo-optimizer 5 "Worked perfectly"
|
|
36
36
|
ags update
|
|
37
37
|
|
|
38
|
-
More info: https://agentskill.sh/
|
|
38
|
+
More info: https://agentskill.sh/install
|
|
39
39
|
`;
|
|
40
40
|
async function main() {
|
|
41
41
|
const args = process.argv.slice(2);
|