skills-agents 0.1.0 → 0.1.1
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/bin.mjs +7 -3
- package/package.json +1 -1
package/bin.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { mkdirSync, writeFileSync } from 'node:fs'
|
|
|
15
15
|
import { homedir } from 'node:os'
|
|
16
16
|
import { join } from 'node:path'
|
|
17
17
|
|
|
18
|
-
const VERSION = '0.1.
|
|
18
|
+
const VERSION = '0.1.1'
|
|
19
19
|
|
|
20
20
|
const HELP = `skills-agents ${VERSION} — install skills and subagents from a well-known source
|
|
21
21
|
|
|
@@ -195,18 +195,22 @@ async function main() {
|
|
|
195
195
|
const wantSkills = opts.skills.length > 0 || opts.agents.length === 0
|
|
196
196
|
const wantAgents = opts.agents.length > 0 || opts.skills.length === 0
|
|
197
197
|
|
|
198
|
+
// Skills and subagents are independent halves. A non-zero exit from the
|
|
199
|
+
// skills CLI (e.g. a downstream target that rejects a global install) must
|
|
200
|
+
// not stop us from installing subagents — track each half separately and
|
|
201
|
+
// combine at the end.
|
|
198
202
|
let exitCode = 0
|
|
199
203
|
|
|
200
204
|
if (wantSkills) {
|
|
201
205
|
const skillsIndex = await fetchIndex(opts.source, 'skills')
|
|
202
206
|
if (skillsIndex?.length) {
|
|
203
|
-
exitCode = installSkills(opts)
|
|
207
|
+
exitCode = installSkills(opts) || exitCode
|
|
204
208
|
} else if (opts.skills.length) {
|
|
205
209
|
fail('this source lists no skills')
|
|
206
210
|
}
|
|
207
211
|
}
|
|
208
212
|
|
|
209
|
-
if (wantAgents
|
|
213
|
+
if (wantAgents) {
|
|
210
214
|
const agentsIndex = await fetchIndex(opts.source, 'agents')
|
|
211
215
|
if (agentsIndex?.length) {
|
|
212
216
|
await installAgents(opts, agentsIndex)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skills-agents",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Install agent skills (SKILL.md) and subagents (AGENT.md) from any well-known source with one command — skills for Claude Code, Codex, and Cursor via the skills CLI; subagents downloaded natively.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skills",
|