@theholocron/cli 3.16.0 → 3.16.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.mjs CHANGED
@@ -3320,14 +3320,23 @@ async function runSetup(input) {
3320
3320
  }
3321
3321
  if (loader.has("source") && config.docs) {
3322
3322
  const source = loader.get("source");
3323
- const deployToken = process.env.HOLOCRON_DEPLOY_TOKEN;
3323
+ const resolveDeployToken = createFeatureResolver({
3324
+ envName: "HOLOCRON_DEPLOY_TOKEN",
3325
+ keyringKey: "github.deploy"
3326
+ });
3327
+ let deployToken;
3328
+ try {
3329
+ deployToken = resolveDeployToken({ keyring: input.keyring });
3330
+ } catch (err) {
3331
+ if (!(err instanceof AuthError)) throw err;
3332
+ }
3324
3333
  print(style.step("docs"));
3325
3334
  if (!deployToken) {
3326
3335
  steps.push({
3327
3336
  capability: "source",
3328
3337
  step: "configure GitHub Pages",
3329
3338
  status: "skip",
3330
- message: "HOLOCRON_DEPLOY_TOKEN not setskipping Pages setup"
3339
+ message: "no deploy token found set HOLOCRON_DEPLOY_TOKEN or run: holocron auth set github.deploy <PAT>"
3331
3340
  });
3332
3341
  print(formatStep(steps[steps.length - 1]));
3333
3342
  } else if (source.configurePages) {
@@ -3447,6 +3456,14 @@ async function runSetup(input) {
3447
3456
  print("");
3448
3457
  const summaryLine = ` ${summary.ok} ok, ${summary.fail} fail, ${summary.skip} skipped${dryRun ? `, ${summary.dryRun} would-do` : ""}`;
3449
3458
  print(summary.fail > 0 ? style.fail(summaryLine.trim()) : style.success(summaryLine.trim()));
3459
+ const skippedSteps = steps.filter((s) => s.status === "skip");
3460
+ if (skippedSteps.length > 0) {
3461
+ print("");
3462
+ print(style.hint(" Skipped:"));
3463
+ for (const s of skippedSteps)
3464
+ /* v8 ignore next -- all skip steps set message; empty fallback is defensive */
3465
+ print(style.hint(` · ${s.step}${s.message ? ` (${s.message})` : ""}`));
3466
+ }
3450
3467
  if (steps.some((s) => s.reason === "permissions")) {
3451
3468
  print("");
3452
3469
  print(style.warn("Some steps failed with 403 (insufficient token permissions)."));