@theholocron/cli 3.16.0 → 3.17.0

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
@@ -3277,6 +3277,14 @@ async function runSetup(input) {
3277
3277
  steps.push(await runStep("source", "sync topics", dryRun, () => source.syncTopics(topics)));
3278
3278
  print(formatStep(steps[steps.length - 1]));
3279
3279
  }
3280
+ if (config.description && source.syncDescription) {
3281
+ steps.push(await runStep("source", "sync description", dryRun, () => source.syncDescription(config.description)));
3282
+ print(formatStep(steps[steps.length - 1]));
3283
+ }
3284
+ if (config.homepage && source.syncHomepage) {
3285
+ steps.push(await runStep("source", "sync homepage", dryRun, () => source.syncHomepage(config.homepage)));
3286
+ print(formatStep(steps[steps.length - 1]));
3287
+ }
3280
3288
  const teams = repo?.teams ?? [];
3281
3289
  if (teams.length > 0) if (source.syncTeams) {
3282
3290
  steps.push(await runStep("source", "sync teams", dryRun, () => source.syncTeams(teams)));
@@ -3320,14 +3328,23 @@ async function runSetup(input) {
3320
3328
  }
3321
3329
  if (loader.has("source") && config.docs) {
3322
3330
  const source = loader.get("source");
3323
- const deployToken = process.env.HOLOCRON_DEPLOY_TOKEN;
3331
+ const resolveDeployToken = createFeatureResolver({
3332
+ envName: "HOLOCRON_DEPLOY_TOKEN",
3333
+ keyringKey: "github.deploy"
3334
+ });
3335
+ let deployToken;
3336
+ try {
3337
+ deployToken = resolveDeployToken({ keyring: input.keyring });
3338
+ } catch (err) {
3339
+ if (!(err instanceof AuthError)) throw err;
3340
+ }
3324
3341
  print(style.step("docs"));
3325
3342
  if (!deployToken) {
3326
3343
  steps.push({
3327
3344
  capability: "source",
3328
3345
  step: "configure GitHub Pages",
3329
3346
  status: "skip",
3330
- message: "HOLOCRON_DEPLOY_TOKEN not setskipping Pages setup"
3347
+ message: "no deploy token found set HOLOCRON_DEPLOY_TOKEN or run: holocron auth set github.deploy <PAT>"
3331
3348
  });
3332
3349
  print(formatStep(steps[steps.length - 1]));
3333
3350
  } else if (source.configurePages) {
@@ -3447,6 +3464,14 @@ async function runSetup(input) {
3447
3464
  print("");
3448
3465
  const summaryLine = ` ${summary.ok} ok, ${summary.fail} fail, ${summary.skip} skipped${dryRun ? `, ${summary.dryRun} would-do` : ""}`;
3449
3466
  print(summary.fail > 0 ? style.fail(summaryLine.trim()) : style.success(summaryLine.trim()));
3467
+ const skippedSteps = steps.filter((s) => s.status === "skip");
3468
+ if (skippedSteps.length > 0) {
3469
+ print("");
3470
+ print(style.hint(" Skipped:"));
3471
+ for (const s of skippedSteps)
3472
+ /* v8 ignore next -- all skip steps set message; empty fallback is defensive */
3473
+ print(style.hint(` · ${s.step}${s.message ? ` (${s.message})` : ""}`));
3474
+ }
3450
3475
  if (steps.some((s) => s.reason === "permissions")) {
3451
3476
  print("");
3452
3477
  print(style.warn("Some steps failed with 403 (insufficient token permissions)."));