skillset 0.13.0 → 0.13.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/dist/cli.js +15 -12
- package/dist/create.js +15 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17591,7 +17591,7 @@ var CI_WORKFLOW_PATH = ".github/workflows/skillset-ci.yml";
|
|
|
17591
17591
|
function renderCiWorkflow() {
|
|
17592
17592
|
return [
|
|
17593
17593
|
"# Scaffolded by skillset init --include ci. Skillset does not manage this file; edit freely.",
|
|
17594
|
-
"#
|
|
17594
|
+
"# Consider pinning skillset to an exact version for reproducible CI runs.",
|
|
17595
17595
|
"# Notes:",
|
|
17596
17596
|
"# - Mechanical fixes pushed with GITHUB_TOKEN do not retrigger workflows; if your",
|
|
17597
17597
|
"# branch protection requires checks on the fixed commit, push with a PAT instead.",
|
|
@@ -17633,7 +17633,7 @@ function renderCiWorkflow() {
|
|
|
17633
17633
|
" - name: Run skillset ci",
|
|
17634
17634
|
" id: skillset",
|
|
17635
17635
|
" run: >-",
|
|
17636
|
-
" bunx skillset
|
|
17636
|
+
" bunx skillset ci",
|
|
17637
17637
|
" ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && '--fix' || '' }}",
|
|
17638
17638
|
' --report "$RUNNER_TEMP/skillset-ci-report.md"',
|
|
17639
17639
|
" continue-on-error: true",
|
|
@@ -19479,14 +19479,14 @@ async function resolveSkillsetCommand(rootPath = process.cwd(), env = process.en
|
|
|
19479
19479
|
if (await isLocalSkillsetCheckout(rootPath)) {
|
|
19480
19480
|
return { argv: ["bun", "./apps/skillset/src/cli.ts"], kind: "argv" };
|
|
19481
19481
|
}
|
|
19482
|
-
if (await commandExists("skillset", rootPath))
|
|
19482
|
+
if (await commandExists("skillset", rootPath, env))
|
|
19483
19483
|
return { argv: ["skillset"], kind: "argv" };
|
|
19484
|
-
if (await commandExists("bunx", rootPath))
|
|
19485
|
-
return { argv: ["bunx", "skillset
|
|
19486
|
-
if (await commandExists("bun", rootPath))
|
|
19487
|
-
return { argv: ["bun", "x", "skillset
|
|
19488
|
-
if (await commandExists("npx", rootPath))
|
|
19489
|
-
return { argv: ["npx", "--yes", "skillset
|
|
19484
|
+
if (await commandExists("bunx", rootPath, env))
|
|
19485
|
+
return { argv: ["bunx", "skillset"], kind: "argv" };
|
|
19486
|
+
if (await commandExists("bun", rootPath, env))
|
|
19487
|
+
return { argv: ["bun", "x", "skillset"], kind: "argv" };
|
|
19488
|
+
if (await commandExists("npx", rootPath, env))
|
|
19489
|
+
return { argv: ["npx", "--yes", "skillset"], kind: "argv" };
|
|
19490
19490
|
throw new Error("skillset: could not find a Skillset CLI runner; install skillset or set SKILLSET_HOOK_COMMAND");
|
|
19491
19491
|
}
|
|
19492
19492
|
async function runSkillsetCommand(args, options) {
|
|
@@ -19517,8 +19517,11 @@ async function runShell(command, args, options) {
|
|
|
19517
19517
|
});
|
|
19518
19518
|
return proc.exited;
|
|
19519
19519
|
}
|
|
19520
|
-
async function commandExists(command, cwd) {
|
|
19521
|
-
const result = await capture(["sh", "-lc", `command -v ${shellQuote(command)} >/dev/null 2>&1`], {
|
|
19520
|
+
async function commandExists(command, cwd, env) {
|
|
19521
|
+
const result = await capture(["/bin/sh", "-lc", `command -v ${shellQuote(command)} >/dev/null 2>&1`], {
|
|
19522
|
+
cwd,
|
|
19523
|
+
env
|
|
19524
|
+
});
|
|
19522
19525
|
return result.exitCode === 0;
|
|
19523
19526
|
}
|
|
19524
19527
|
async function isLocalSkillsetCheckout(rootPath) {
|
|
@@ -19537,7 +19540,7 @@ async function capture(argv, options) {
|
|
|
19537
19540
|
const proc = Bun.spawn({
|
|
19538
19541
|
cmd: [...argv],
|
|
19539
19542
|
cwd: options.cwd,
|
|
19540
|
-
env: gitSafeEnv(),
|
|
19543
|
+
env: gitSafeEnv(options.env),
|
|
19541
19544
|
stderr: "ignore",
|
|
19542
19545
|
stdout: "ignore"
|
|
19543
19546
|
});
|
package/dist/create.js
CHANGED
|
@@ -17591,7 +17591,7 @@ var CI_WORKFLOW_PATH = ".github/workflows/skillset-ci.yml";
|
|
|
17591
17591
|
function renderCiWorkflow() {
|
|
17592
17592
|
return [
|
|
17593
17593
|
"# Scaffolded by skillset init --include ci. Skillset does not manage this file; edit freely.",
|
|
17594
|
-
"#
|
|
17594
|
+
"# Consider pinning skillset to an exact version for reproducible CI runs.",
|
|
17595
17595
|
"# Notes:",
|
|
17596
17596
|
"# - Mechanical fixes pushed with GITHUB_TOKEN do not retrigger workflows; if your",
|
|
17597
17597
|
"# branch protection requires checks on the fixed commit, push with a PAT instead.",
|
|
@@ -17633,7 +17633,7 @@ function renderCiWorkflow() {
|
|
|
17633
17633
|
" - name: Run skillset ci",
|
|
17634
17634
|
" id: skillset",
|
|
17635
17635
|
" run: >-",
|
|
17636
|
-
" bunx skillset
|
|
17636
|
+
" bunx skillset ci",
|
|
17637
17637
|
" ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && '--fix' || '' }}",
|
|
17638
17638
|
' --report "$RUNNER_TEMP/skillset-ci-report.md"',
|
|
17639
17639
|
" continue-on-error: true",
|
|
@@ -19479,14 +19479,14 @@ async function resolveSkillsetCommand(rootPath = process.cwd(), env = process.en
|
|
|
19479
19479
|
if (await isLocalSkillsetCheckout(rootPath)) {
|
|
19480
19480
|
return { argv: ["bun", "./apps/skillset/src/cli.ts"], kind: "argv" };
|
|
19481
19481
|
}
|
|
19482
|
-
if (await commandExists("skillset", rootPath))
|
|
19482
|
+
if (await commandExists("skillset", rootPath, env))
|
|
19483
19483
|
return { argv: ["skillset"], kind: "argv" };
|
|
19484
|
-
if (await commandExists("bunx", rootPath))
|
|
19485
|
-
return { argv: ["bunx", "skillset
|
|
19486
|
-
if (await commandExists("bun", rootPath))
|
|
19487
|
-
return { argv: ["bun", "x", "skillset
|
|
19488
|
-
if (await commandExists("npx", rootPath))
|
|
19489
|
-
return { argv: ["npx", "--yes", "skillset
|
|
19484
|
+
if (await commandExists("bunx", rootPath, env))
|
|
19485
|
+
return { argv: ["bunx", "skillset"], kind: "argv" };
|
|
19486
|
+
if (await commandExists("bun", rootPath, env))
|
|
19487
|
+
return { argv: ["bun", "x", "skillset"], kind: "argv" };
|
|
19488
|
+
if (await commandExists("npx", rootPath, env))
|
|
19489
|
+
return { argv: ["npx", "--yes", "skillset"], kind: "argv" };
|
|
19490
19490
|
throw new Error("skillset: could not find a Skillset CLI runner; install skillset or set SKILLSET_HOOK_COMMAND");
|
|
19491
19491
|
}
|
|
19492
19492
|
async function runSkillsetCommand(args, options) {
|
|
@@ -19517,8 +19517,11 @@ async function runShell(command, args, options) {
|
|
|
19517
19517
|
});
|
|
19518
19518
|
return proc.exited;
|
|
19519
19519
|
}
|
|
19520
|
-
async function commandExists(command, cwd) {
|
|
19521
|
-
const result = await capture(["sh", "-lc", `command -v ${shellQuote(command)} >/dev/null 2>&1`], {
|
|
19520
|
+
async function commandExists(command, cwd, env) {
|
|
19521
|
+
const result = await capture(["/bin/sh", "-lc", `command -v ${shellQuote(command)} >/dev/null 2>&1`], {
|
|
19522
|
+
cwd,
|
|
19523
|
+
env
|
|
19524
|
+
});
|
|
19522
19525
|
return result.exitCode === 0;
|
|
19523
19526
|
}
|
|
19524
19527
|
async function isLocalSkillsetCheckout(rootPath) {
|
|
@@ -19537,7 +19540,7 @@ async function capture(argv, options) {
|
|
|
19537
19540
|
const proc = Bun.spawn({
|
|
19538
19541
|
cmd: [...argv],
|
|
19539
19542
|
cwd: options.cwd,
|
|
19540
|
-
env: gitSafeEnv(),
|
|
19543
|
+
env: gitSafeEnv(options.env),
|
|
19541
19544
|
stderr: "ignore",
|
|
19542
19545
|
stdout: "ignore"
|
|
19543
19546
|
});
|