@theholocron/astromech 5.0.0-alpha.392 → 5.0.0-alpha.393

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/README.md CHANGED
@@ -59,32 +59,36 @@ what it actually runs, and why. Tool names never appear in
59
59
  `holocron.config.ts` — they're an implementation detail this table
60
60
  documents, not a naming convention repos need to follow.
61
61
 
62
- | Task | Runs | Notes |
63
- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
64
- | `test:unit` | vitest | always runs with coverage: `vitest run --coverage`, there is no flag |
65
- | `typecheck` | tsc | `tsc --noEmit` |
66
- | `test:perf` | Lighthouse CI | only runs with a `lighthouse.config.*` present |
67
- | `lint:code` | eslint, actionlint, git-merge-conflict-markers | a `linterGroup` — see below |
68
- | `lint:editorconfig`, `lint:markdown` | editorconfig-checker, markdownlint-cli2 | each is a `linterGroup` of one tool |
69
- | `format` | prettier | writes by default, `--check` is read-only; no workflow of its own |
70
- | `lint:data` | yamllint | |
71
- | `lint:unused` | knip | |
72
- | `scan:secrets` | gitleaks | |
73
- | `scan:code` | CodeQL | no local equivalent — CI only |
74
- | `check-tokens` | `holocron doctor tokens` | scheduled daily in CI; fails on a rejected token or one with 7 days or fewer left; never part of `run ci` |
75
- | `build` | tsdown / vite / rollup / tsc, detected from the repo's own config file, or `package.json`'s own `dependencies`/`devDependencies` if that config file isn't there | |
76
- | `release` | semantic-release | no local equivalent — CI only; carries `preview` (npm dist-tags) |
77
- | `deploy` | Cloudflare Pages / Vercel | no local equivalent — CI only; carries `preview` |
78
- | `measure-bundle` | bundle-size upload to Codecov | no local equivalent — CI only |
79
- | `check-preview` | `holocron monitoring check <url>` against the PR's own Vercel preview URL | no local equivalent — CI only; triggered by `deployment_status`, not `push`/`pull_request` |
80
- | `check-notify` | _(none — manual workflow)_ | posts a labelled test message to every notification channel; fails per channel that does not work |
81
- | `sync-repo` | `holocron repo sync` | keeps generated files current |
82
- | `lint:commits` | commitlint | no local equivalent — enforced by the `commit-msg` hook locally, over the PR's commit range in CI |
83
- | `validate:specs` | `holocron probe specs check` | spec/ADR frontmatter — a leaf of the `validate` suite, not a linter |
84
- | `validate:docs` | `holocron probe docs validate` | docs presence (warns) and token docs (fails) — a leaf of the `validate` suite, not a linter |
85
- | `publish-wiki` | Fern | publishes `docs/wiki/*.md` — not a sync, a publish; carries `preview` |
86
- | `deploy-docs` | Astro build | the docs site itself; carries `preview` (defaults on) |
87
- | `deploy-components` | Storybook build | a browsable component catalog — "Storybook" is the tool, not the intent; carries `preview` (defaults on) |
62
+ | Task | Runs | Notes |
63
+ | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
64
+ | `test:unit` | vitest | always runs with coverage: `vitest run --coverage`, there is no flag |
65
+ | `typecheck` | tsc | `tsc --noEmit` |
66
+ | `test:perf` | Lighthouse CI | only runs with a `lighthouse.config.*` present |
67
+ | `lint:code` | eslint, actionlint, git-merge-conflict-markers | a `linterGroup` — see below |
68
+ | `lint:editorconfig`, `lint:markdown` | editorconfig-checker, markdownlint-cli2 | each is a `linterGroup` of one tool |
69
+ | `format` | prettier | writes by default, `--check` is read-only; no workflow of its own |
70
+ | `lint:data` | yamllint | |
71
+ | `lint:unused` | knip | |
72
+ | `scan:secrets` | gitleaks | |
73
+ | `scan:code` | CodeQL | no local equivalent — CI only |
74
+ | `check-tokens` | `holocron doctor tokens` | scheduled daily in CI; fails on a rejected token or one with 7 days or fewer left; never part of `run ci` |
75
+ | `build` | tsdown / vite / rollup / tsc, detected from the repo's own config file, or `package.json`'s own `dependencies`/`devDependencies` if that config file isn't there | |
76
+ | `release` | semantic-release | no local equivalent — CI only; carries `preview` (npm dist-tags) |
77
+ | `deploy` | Cloudflare Pages / Vercel | no local equivalent — CI only; carries `preview` |
78
+ | `measure-bundle` | bundle-size upload to Codecov | no local equivalent — CI only |
79
+ | `check-preview` | `holocron monitoring check <url>` against the PR's own Vercel preview URL | no local equivalent — CI only; triggered by `deployment_status`, not `push`/`pull_request` |
80
+ | `check-notify` | _(none — manual workflow)_ | posts a labelled test message to every notification channel; fails per channel that does not work |
81
+ | `sync-repo` | `holocron repo sync` | keeps generated files current |
82
+ | `lint:commits` | commitlint | no local equivalent — enforced by the `commit-msg` hook locally, over the PR's commit range in CI |
83
+ | `validate:specs` | `holocron probe specs check` | spec/ADR frontmatter — a leaf of the `validate` suite, not a linter |
84
+ | `validate:docs` | `holocron probe docs validate` | docs presence (warns) and token docs (fails) — a leaf of the `validate` suite, not a linter |
85
+ | `validate:deps` | `holocron probe deps check` | dependency catalogs — a leaf of the `validate` suite, not a linter |
86
+ | `validate:generated` | `holocron probe generated check` | generated files match the config — a leaf of the `validate` suite, not a linter |
87
+ | `measure-docs` | `holocron probe docs coverage` | doc-comment coverage, uploaded to Codecov as the `documentation` flag; the Codecov status gates, not the job |
88
+ | `remind-doctor` | _(none — posts through a webhook secret)_ | a weekly #alerts line that reminds a maintainer to run `doctor notifications --post` |
89
+ | `publish-wiki` | Fern | publishes `docs/wiki/*.md` — not a sync, a publish; carries `preview` |
90
+ | `deploy-docs` | Astro build | the docs site itself; carries `preview` (defaults on) |
91
+ | `deploy-components` | Storybook build | a browsable component catalog — "Storybook" is the tool, not the intent; carries `preview` (defaults on) |
88
92
 
89
93
  **`preview` is a cross-cutting feature, not a namespace.** npm has staging
90
94
  dist-tags, Cloudflare/Vercel do per-PR preview deploys, Fern previews
@@ -1,4 +1,4 @@
1
- import { n as coerceTasks, r as isTask, t as loadTasksConfig, u as normalizeTaskEntry } from "../load-_eGVkyoe.mjs";
1
+ import { n as coerceTasks, r as isTask, t as loadTasksConfig, u as normalizeTaskEntry } from "../load-BVlp7bFi.mjs";
2
2
  import { createDefineConfig, mergeLayers } from "@theholocron/datapad";
3
3
  // src/config/define/define.ts
4
4
  /**
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as legacyName, c as CI_ORDER, i as resolveTaskName, l as TASKS, o as ownLegacyName, r as isTask, s as LEGACY_NAMES, t as loadTasksConfig, u as normalizeTaskEntry } from "./load-_eGVkyoe.mjs";
1
+ import { a as legacyName, c as CI_ORDER, i as resolveTaskName, l as TASKS, o as ownLegacyName, r as isTask, s as LEGACY_NAMES, t as loadTasksConfig, u as normalizeTaskEntry } from "./load-BVlp7bFi.mjs";
2
2
  import { n as alexrc_default, t as editorconfig_checker_default } from "./editorconfig-checker-B-hWWYHk.mjs";
3
3
  import { existsSync, readFileSync, readdirSync } from "node:fs";
4
4
  import { dirname, join, relative } from "node:path";
@@ -63,10 +63,12 @@ var markdown_default$1 = "name: lint:markdown\n\non: # yamllint disable-line rul
63
63
  var unused_default$1 = "name: Dead Code Analysis\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n dead-code-analysis:\n name: Run knip\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n persist-credentials: false\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Run knip\n with:\n task: lint:unused\n";
64
64
  var mark_stale_default$1 = "name: Stale\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n days-before-stale:\n description: Days of inactivity before an issue or PR is marked stale (applies to both unless type-specific value is set)\n type: number\n required: false\n default: 30\n days-before-close:\n description: Days after stale label before closing (applies to both unless type-specific value is set)\n type: number\n required: false\n default: 5\n days-before-issue-stale:\n description: Days of inactivity before an issue is marked stale; overrides days-before-stale when set to a non-negative value\n type: number\n required: false\n default: -1\n days-before-issue-close:\n description: Days after stale label before closing an issue; overrides days-before-close when set to a non-negative value\n type: number\n required: false\n default: -1\n days-before-pr-stale:\n description: Days of inactivity before a PR is marked stale; overrides days-before-stale when set to a non-negative value\n type: number\n required: false\n default: -1\n days-before-pr-close:\n description: Days after stale label before closing a PR; overrides days-before-close when set to a non-negative value\n type: number\n required: false\n default: -1\n exempt-issue-labels:\n description: Comma-separated labels that exempt an issue from being marked stale\n type: string\n required: false\n default: \"in-progress,wip\"\n exempt-pr-labels:\n description: Comma-separated labels that exempt a PR from being marked stale\n type: string\n required: false\n default: \"\"\n exempt-all-issue-milestones:\n description: Issues assigned to any milestone are never marked stale\n type: boolean\n required: false\n default: true\n exempt-all-pr-milestones:\n description: PRs assigned to any milestone are never marked stale\n type: boolean\n required: false\n default: true\n exempt-all-issue-projects:\n description: Issues assigned to any project are never marked stale\n type: boolean\n required: false\n default: true\n exempt-all-pr-projects:\n description: PRs assigned to any project are never marked stale\n type: boolean\n required: false\n default: true\n\njobs:\n stale:\n name: Mark stale issues and pull requests\n permissions:\n contents: write\n issues: write\n pull-requests: write\n runs-on: ubuntu-latest\n timeout-minutes: 10\n steps:\n - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0\n name: Run Stale\n with:\n close-issue-message: >\n This issue was closed because it has been stalled for\n ${{ inputs.days-before-close }} days with no activity.\n days-before-close: ${{ inputs.days-before-close }}\n days-before-issue-close: ${{ inputs.days-before-issue-close }}\n days-before-issue-stale: ${{ inputs.days-before-issue-stale }}\n days-before-pr-close: ${{ inputs.days-before-pr-close }}\n days-before-pr-stale: ${{ inputs.days-before-pr-stale }}\n days-before-stale: ${{ inputs.days-before-stale }}\n exempt-all-issue-milestones: ${{ inputs.exempt-all-issue-milestones }}\n exempt-all-issue-projects: ${{ inputs.exempt-all-issue-projects }}\n exempt-all-pr-milestones: ${{ inputs.exempt-all-pr-milestones }}\n exempt-all-pr-projects: ${{ inputs.exempt-all-pr-projects }}\n exempt-issue-labels: ${{ inputs.exempt-issue-labels }}\n exempt-pr-labels: ${{ inputs.exempt-pr-labels }}\n stale-issue-label: wontfix\n stale-issue-message: >\n This issue is stale because it has been open ${{ inputs.days-before-stale }}\n days with no activity. Remove the stale label or comment, or this will be\n closed in ${{ inputs.days-before-close }} days.\n stale-pr-label: wontfix\n stale-pr-message: >\n This PR is stale because it has been open ${{ inputs.days-before-stale }}\n days with no activity. Remove the stale label or comment, or this will be\n closed in ${{ inputs.days-before-close }} days.\n";
65
65
  var measure_bundle_default$1 = "name: Audit the Bundle Size\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n HOLOCRON_CODECOV_TOKEN:\n description: The Codecov upload token. Read first; the CODECOV_TOKEN secret is the fallback.\n required: false\n CODECOV_TOKEN:\n required: false\n TURBO_TOKEN:\n required: false\n\njobs:\n bundle-size:\n name: Upload bundle stats to Codecov\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n # Read by the bundle-stats uploader inside `holocron run build`.\n CODECOV_TOKEN: ${{ secrets.HOLOCRON_CODECOV_TOKEN || secrets.CODECOV_TOKEN }}\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Build and upload bundle stats\n with:\n task: build\n";
66
+ var measure_docs_default$1 = "name: Measure Documentation Coverage\n\n# Doc-comment coverage of the public API (#1368), measured with the repo's TypeDoc by `holocron probe docs coverage`\n# and uploaded to Codecov as the `documentation` flag (`--lcov`). The patch and project percentages show on every PR\n# next to the test coverage as `codecov/patch/documentation` and `codecov/project/documentation`, and Codecov fails\n# the patch status when a PR adds or changes an exported function, class, interface, type, constant or member of one\n# without a doc comment; old undocumented exports do not count against a PR. Pushes to the default branch upload it\n# too, so a PR has a base report to compare against.\n#\n# The gate is Codecov's `codecov/patch/documentation` (`extraRequiredChecks` in holocron.config.ts), not this job's own\n# check, which only measures and uploads. `holocron probe docs patch` stays in the CLI to run before pushing.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n measure-docs:\n name: Measure documentation coverage\n permissions:\n contents: read\n # The Codecov upload authenticates with the job's OIDC token.\n id-token: write\n runs-on: ubuntu-latest\n timeout-minutes: 15\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n # One TypeDoc pass over every package writes the report for the upload below. It does not fail on an\n # undocumented export: the Codecov status does.\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Measure the documentation coverage\n with:\n command: probe docs coverage\n args: --lcov coverage/docs.lcov\n\n # A pull request from a fork has no OIDC token to upload with, so Codecov has nothing to gate it on.\n - name: Upload the documentation coverage to Codecov\n if: >-\n ${{ !cancelled() && hashFiles('coverage/docs.lcov') != '' &&\n (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) }}\n uses: theholocron/.github/.github/actions/codecov-upload@main\n with:\n uploads: '[{\"flag\":\"documentation\",\"files\":\"coverage/docs.lcov\"}]'\n";
66
67
  var preview_default$1 = "name: Preview\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n type:\n description: \"Type of deployment: docs or storybook\"\n required: true\n type: string\n name:\n description: Repo name prefix used to filter the docs site package (<name>-site); omit to run pnpm -C docs build\n required: false\n type: string\n default: \"\"\n storybook-projects:\n description: >\n JSON array of { \"name\"?, \"workingDir\", \"outputDir\"? } objects for storybook deploys.\n Each is built via `pnpm -C <workingDir> build:storybook`. If \"name\" is provided the\n output is placed under `sandbox/<name>/`; omit \"name\" for single-repo deploys and the\n output lands directly in `sandbox/`.\n type: string\n required: false\n default: \"[]\"\n build-script:\n description: pnpm script that builds the Storybook static output (single storybook, type:storybook only)\n type: string\n required: false\n default: build:storybook\n output-dir:\n description: Directory where Storybook writes its static output (single storybook, type:storybook only)\n type: string\n required: false\n default: storybook-static\n cloudflare-project:\n description: >\n Cloudflare Pages project name. Falls back to the CLOUDFLARE_PAGES_PROJECT\n org variable (filled from the 1Password sync) when omitted — set that variable once and all repos get previews\n without per-repo config.\n required: false\n type: string\n default: \"\"\n\njobs:\n deploy-preview:\n name: Preview\n if: ${{ github.event.action != 'closed' }}\n runs-on: ubuntu-latest\n permissions:\n contents: read\n deployments: write\n pull-requests: write\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - name: Build workspace dependencies\n # The docs site imports workspace packages (e.g. a shared theme) via\n # `workspace:*` — its exports map points at dist/, which doesn't\n # exist until something builds it. Nothing else in this job does,\n # so without this step Vite fails to resolve the import entirely.\n if: ${{ inputs.type == 'docs' }}\n run: pnpm run build\n\n - name: Build docs site\n if: ${{ inputs.type == 'docs' && inputs.name != '' }}\n env:\n SITE_NAME: ${{ inputs.name }}\n run: pnpm --filter @theholocron/\"$SITE_NAME\"-site build\n\n - name: Build docs site\n if: ${{ inputs.type == 'docs' && inputs.name == '' }}\n run: pnpm -C docs build\n\n - name: Build Storybook projects\n if: ${{ inputs.storybook-projects != '[]' }}\n env:\n PROJECTS: ${{ inputs.storybook-projects }}\n run: |\n echo \"$PROJECTS\" | jq -c '.[]' | while IFS= read -r project; do\n workingDir=$(echo \"$project\" | jq -r '.workingDir')\n pnpm -C \"$workingDir\" build:storybook\n done\n\n - name: Build Storybook\n if: ${{ inputs.type == 'storybook' && inputs.storybook-projects == '[]' }}\n env:\n BUILD_SCRIPT: ${{ inputs.build-script }}\n run: pnpm run \"$BUILD_SCRIPT\"\n\n - name: Assemble site\n env:\n DEPLOY_TYPE: ${{ inputs.type }}\n SITE_NAME: ${{ inputs.name }}\n PROJECTS: ${{ inputs.storybook-projects }}\n STORYBOOK_OUTPUT_DIR: ${{ inputs.output-dir }}\n run: |\n mkdir -p _site\n if [ \"$DEPLOY_TYPE\" = \"docs\" ]; then\n if [ -n \"$SITE_NAME\" ]; then\n # Site built with base: /<name>/ — nest under _site/<name>/ so asset\n # paths match (/name/_astro/... → served at /name/_astro/...).\n mkdir -p \"_site/${SITE_NAME}\"\n cp -r docs/dist/. \"_site/${SITE_NAME}/\"\n # Redirect root to the base path so the preview URL lands correctly.\n printf \"/ /%s/ 301\\n\" \"$SITE_NAME\" > _site/_redirects\n else\n cp -r docs/dist/. _site/\n fi\n fi\n if [ \"$PROJECTS\" != \"[]\" ]; then\n echo \"$PROJECTS\" | jq -c '.[]' | while IFS= read -r project; do\n name=$(echo \"$project\" | jq -r '.name // \"\"')\n workingDir=$(echo \"$project\" | jq -r '.workingDir')\n outputDir=$(echo \"$project\" | jq -r '.outputDir // \"storybook-static\"')\n if [ -n \"$name\" ]; then\n target=\"_site/sandbox/${name}\"\n else\n target=\"_site/sandbox\"\n fi\n mkdir -p \"$target\"\n cp -r \"${workingDir}/${outputDir}/.\" \"$target/\"\n done\n elif [ \"$DEPLOY_TYPE\" = \"storybook\" ]; then\n mkdir -p _site/sandbox\n cp -r \"${STORYBOOK_OUTPUT_DIR}/.\" _site/sandbox/\n fi\n\n - name: Install Wrangler\n # The action's install step runs npm/pnpm in the repo root; pnpm fails\n # because it rejects adding to a workspace root without -w, and npm fails\n # because package.json contains pnpm catalog: references it cannot parse.\n # Pre-installing from /tmp (no package.json) lets the action find wrangler\n # already on PATH and skip its own install entirely.\n working-directory: /tmp\n run: npm install -g wrangler@4\n\n - name: Warn when the Cloudflare account id is missing\n # The deploy below needs it. It is an organization variable that `holocron secrets sync` writes from\n # the 1Password Environment named by `repo.variables.sync` in .holocron/repo.ts.\n if: ${{ (inputs.cloudflare-project != '' || (vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT) != '') && (vars.HOLOCRON_CLOUDFLARE_ACCOUNT_ID || vars.CLOUDFLARE_ACCOUNT_ID) == '' }}\n run: echo \"::warning title=CLOUDFLARE_ACCOUNT_ID is not set::The Pages deploy needs it. Add it to the 1Password Environment behind repo.variables.sync and run holocron secrets sync.\"\n\n - uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3\n id: deploy\n name: Deploy to Cloudflare Pages\n # Skip when neither the per-repo input nor the org variable is set.\n if: ${{ inputs.cloudflare-project != '' || (vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT) != '' }}\n with:\n apiToken: ${{ secrets.HOLOCRON_CLOUDFLARE_TOKEN || secrets.CLOUDFLARE_API_TOKEN }}\n accountId: ${{ vars.HOLOCRON_CLOUDFLARE_ACCOUNT_ID || vars.CLOUDFLARE_ACCOUNT_ID }}\n packageManager: npm\n command: >-\n pages deploy _site\n --project-name ${{ inputs.cloudflare-project || vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT }}\n --branch ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}\n --commit-dirty=true\n\n - name: Report preview URL\n if: ${{ steps.deploy.outputs.pages-deployment-alias-url != '' }}\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ALIAS: ${{ steps.deploy.outputs.pages-deployment-alias-url }}\n SITE_NAME: ${{ inputs.name }}\n PROJECT: ${{ inputs.cloudflare-project || vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT }}\n run: |\n PREVIEW_URL=\"${ALIAS%/}${SITE_NAME:+/${SITE_NAME}}/\"\n # GITHUB_HEAD_REF is the PR branch name — links the deployment to this PR's sidebar widget.\n PAYLOAD=$(printf '{\"ref\":\"%s\",\"environment\":\"%s\",\"description\":\"Cloudflare Pages\",\"production_environment\":false,\"auto_merge\":false,\"required_contexts\":[]}' \\\n \"$GITHUB_HEAD_REF\" \"${PROJECT} (Preview)\")\n DEPLOY_ID=$(echo \"$PAYLOAD\" | gh api \"repos/${GITHUB_REPOSITORY}/deployments\" \\\n --method POST --input - | jq -r '.id')\n gh api \"repos/${GITHUB_REPOSITORY}/deployments/${DEPLOY_ID}/statuses\" \\\n --method POST --field state=success --field environment_url=\"${PREVIEW_URL}\"\n\n cleanup:\n name: Clean up Preview\n if: ${{ github.event.action == 'closed' }}\n runs-on: ubuntu-latest\n permissions:\n contents: read\n deployments: write\n pull-requests: write\n steps:\n - name: Warn when the Cloudflare account id is missing\n # Without it the request below cannot find the preview deployments, so closing the PR leaves them behind.\n if: ${{ (inputs.cloudflare-project != '' || (vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT) != '') && (vars.HOLOCRON_CLOUDFLARE_ACCOUNT_ID || vars.CLOUDFLARE_ACCOUNT_ID) == '' }}\n run: echo \"::warning title=CLOUDFLARE_ACCOUNT_ID is not set::The preview deployments cannot be deleted without it. Add it to the 1Password Environment behind repo.variables.sync and run holocron secrets sync.\"\n\n - name: Delete Cloudflare Pages deployments for branch\n if: ${{ inputs.cloudflare-project != '' || (vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT) != '' }}\n env:\n CLOUDFLARE_API_TOKEN: ${{ secrets.HOLOCRON_CLOUDFLARE_TOKEN || secrets.CLOUDFLARE_API_TOKEN }}\n CLOUDFLARE_ACCOUNT_ID: ${{ vars.HOLOCRON_CLOUDFLARE_ACCOUNT_ID || vars.CLOUDFLARE_ACCOUNT_ID }}\n PROJECT: ${{ inputs.cloudflare-project || vars.HOLOCRON_CLOUDFLARE_PAGES_PROJECT || vars.CLOUDFLARE_PAGES_PROJECT }}\n BRANCH: ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n DEPLOYMENTS=$(curl -s \\\n \"https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/pages/projects/${PROJECT}/deployments\" \\\n -H \"Authorization: Bearer ${CLOUDFLARE_API_TOKEN}\" \\\n | jq -r --arg b \"$BRANCH\" \\\n '.result[] | select(.deployment_trigger.metadata.branch == $b) | .id')\n\n if [ -z \"$DEPLOYMENTS\" ]; then\n echo \"No deployments found for branch ${BRANCH} — nothing to clean up.\"\n exit 0\n fi\n\n for id in $DEPLOYMENTS; do\n echo \"Deleting CF Pages deployment: $id\"\n curl -s -X DELETE \\\n \"https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/pages/projects/${PROJECT}/deployments/${id}?force=true\" \\\n -H \"Authorization: Bearer ${CLOUDFLARE_API_TOKEN}\" | jq -r 'if .success then \" ✓ deleted\" else \" ✗ \\(.errors[0].message)\" end'\n done\n\n # Mark the GitHub Deployment environment as inactive.\n ENV_NAME=\"${PROJECT} (Preview)\"\n gh api \"repos/${GITHUB_REPOSITORY}/deployments\" \\\n | jq -r \".[] | select(.environment == \\\"${ENV_NAME}\\\") | .id\" \\\n | while read -r deploy_id; do\n gh api \"repos/${GITHUB_REPOSITORY}/deployments/${deploy_id}/statuses\" \\\n --method POST --field state=inactive 2>/dev/null || true\n done\n";
67
68
  var publish_wiki_default$1 = "name: Wiki\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n fern-version:\n description: >\n Fern CLI version to install. Pin this to avoid breaking changes when\n Fern updates their config schema.\n type: string\n required: false\n default: \"5.114.1\"\n preview:\n description: >\n When true, publishes a preview instead of production.\n Requires preview-id to be set.\n type: boolean\n required: false\n default: false\n preview-id:\n description: >\n Stable ID for the preview build. Use the PR number (e.g. \"pr-123\")\n so the same preview URL is reused on every push to the branch.\n type: string\n required: false\n default: \"\"\n fern-org:\n description: >\n DEPRECATED — the preview URL is now read from Fern's own output.\n Kept as a fallback for building the URL when that parse fails, and so\n existing callers do not error.\n type: string\n required: false\n default: \"\"\n base-path:\n description: >\n DEPRECATED — see fern-org. Basepath appended to the fallback preview\n URL (e.g. \"holocron\" for multi-source routing).\n type: string\n required: false\n default: \"\"\n secrets:\n HOLOCRON_FERN_TOKEN:\n required: false\n FERN_TOKEN:\n required: false\n\njobs:\n publish:\n name: Publish to Fern\n runs-on: ubuntu-latest\n timeout-minutes: 10\n permissions:\n contents: read\n deployments: write\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n\n - name: Install Fern CLI\n run: npm install -g \"fern-api@$FERN_VERSION\"\n env:\n FERN_VERSION: ${{ inputs.fern-version }}\n\n - name: Publish docs\n if: ${{ !inputs.preview }}\n run: fern generate --docs\n env:\n FERN_TOKEN: ${{ secrets.HOLOCRON_FERN_TOKEN || secrets.FERN_TOKEN }}\n\n - name: Preview docs\n id: preview\n if: ${{ inputs.preview && inputs.preview-id != '' }}\n env:\n FERN_TOKEN: ${{ secrets.HOLOCRON_FERN_TOKEN || secrets.FERN_TOKEN }}\n PREVIEW_ID: ${{ inputs.preview-id }}\n run: |\n out=$(fern generate --docs --preview --id \"$PREVIEW_ID\" 2>&1) || { printf '%s\\n' \"$out\"; exit 1; }\n printf '%s\\n' \"$out\"\n # Fern prints \"Published docs to https://<org>-preview-<id>.docs.buildwithfern.com/<path>\"\n url=$(printf '%s\\n' \"$out\" | grep -oiE 'https://[a-z0-9.-]+\\.docs\\.buildwithfern\\.com[^ )]*' | head -n1)\n echo \"url=$url\" >> \"$GITHUB_OUTPUT\"\n\n - name: Report preview URL\n if: ${{ inputs.preview && inputs.preview-id != '' }}\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n CAPTURED_URL: ${{ steps.preview.outputs.url }}\n FERN_ORG: ${{ inputs.fern-org }}\n PREVIEW_ID: ${{ inputs.preview-id }}\n BASE_PATH: ${{ inputs.base-path }}\n run: |\n PREVIEW_URL=\"$CAPTURED_URL\"\n if [ -z \"$PREVIEW_URL\" ] && [ -n \"$FERN_ORG\" ]; then\n PREVIEW_URL=\"https://${FERN_ORG}-preview-${PREVIEW_ID}.docs.buildwithfern.com${BASE_PATH:+/${BASE_PATH}}\"\n fi\n if [ -z \"$PREVIEW_URL\" ]; then\n echo \"::warning::no preview URL parsed from Fern output and no fern-org fallback — skipping the deployment widget\"\n exit 0\n fi\n PAYLOAD=$(printf '{\"ref\":\"%s\",\"environment\":\"wiki (Preview)\",\"description\":\"Wiki\",\"production_environment\":false,\"auto_merge\":false,\"required_contexts\":[]}' \\\n \"$GITHUB_HEAD_REF\")\n DEPLOY_ID=$(printf '%s\\n' \"$PAYLOAD\" | gh api \"repos/${GITHUB_REPOSITORY}/deployments\" \\\n --method POST --input - | jq -r '.id')\n gh api \"repos/${GITHUB_REPOSITORY}/deployments/${DEPLOY_ID}/statuses\" \\\n --method POST --field state=success --field environment_url=\"$PREVIEW_URL\"\n";
68
69
  var reconcile_projects_default$1 = "name: Reconcile Projects\n\n# Keeps the project boards true to their rules (SPEC-0020, #1744): runs `holocron project reconcile`, which sets an item's\n# status from the issue's state and its \"blocked by\" links (an open blocker means blocked, no blocker left means planned,\n# a closed issue means done), then `holocron doctor project`, which reports what reconcile cannot fix.\n#\n# `GITHUB_TOKEN` cannot write an organization project, so the job mints an installation token from a GitHub App. The App\n# needs the organization permission Projects (read and write), which a person grants; its id and private key reach the job\n# as the secrets below (`secrets: inherit` passes them from the caller). The boards a repo keeps come from its own\n# `providers.projects` in holocron.config.ts, so a repo that declares none passes `doctor project` as a skip.\n#\n# Scheduled hourly by the caller. A failed run reaches #alerts through `platform.notifications.yml`.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n SENTINEL_APP_ID:\n description: The id of the GitHub App whose installation token writes the boards.\n required: true\n SENTINEL_APP_PRIVATE_KEY:\n description: The private key of that GitHub App.\n required: true\n\njobs:\n reconcile-projects:\n name: Reconcile and check the boards\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n # Two runs could set the same item twice, so a second waits for the first.\n concurrency:\n group: reconcile-projects\n cancel-in-progress: false\n steps:\n - name: Generate GitHub App token\n id: app-token\n uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0\n with:\n app-id: ${{ secrets.SENTINEL_APP_ID }}\n private-key: ${{ secrets.SENTINEL_APP_PRIVATE_KEY }}\n owner: ${{ github.repository_owner }}\n permission-organization-projects: write\n permission-issues: read\n permission-pull-requests: read\n\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n # The token goes in the environment, never on the command line.\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Reconcile the boards\n id: reconcile\n env:\n HOLOCRON_ORG_TOKEN: ${{ steps.app-token.outputs.token }}\n with:\n command: project reconcile\n\n - name: List what changed\n if: ${{ !cancelled() && steps.reconcile.outputs.log-file != '' }}\n env:\n LOG_FILE: ${{ steps.reconcile.outputs.log-file }}\n run: |\n {\n echo \"### Project reconcile\"\n echo '```'\n cat \"$LOG_FILE\"\n echo '```'\n } >> \"$GITHUB_STEP_SUMMARY\"\n\n # What reconcile cannot fix: a board that differs from its template, a rule that is off, a missing App permission.\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Check the boards\n if: ${{ !cancelled() }}\n env:\n HOLOCRON_ORG_TOKEN: ${{ steps.app-token.outputs.token }}\n with:\n command: doctor project\n";
69
70
  var release_default$1 = "name: Release\n\n# Semantic-release with OIDC Trusted Publishing.\n# actions/setup-node writes a default NODE_AUTH_TOKEN=${{ github.token }}\n# which shadows OIDC auth. We explicitly clear it so npm falls through to\n# the Trusted Publisher OIDC exchange.\n# The calling repo must have a .releaserc.json that configures branches,\n# plugins, and any publish options. npm@11+ is installed to support OIDC.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n dry-run:\n description: >\n When true, runs semantic-release --dry-run: analyzes commits and\n previews the next release without git writes or publish. Only\n meaningful for workflow_dispatch triggers; push-triggered runs\n always run fully.\n type: boolean\n required: false\n default: false\n group:\n description: >\n Version group to release: a folder of the repo (`clients`,\n `observability`). Passed to the release config as RELEASE_GROUP, and\n scopes every tag lookup below to that group's `<group>-v*` tags, so\n releasing one group never reads another's. Empty releases the whole\n repo, with plain `v*` tags. Groups push release commits to the same\n branch, so release them one at a time (a matrix with `max-parallel: 1`);\n each run starts from the branch's current tip, not the commit that\n triggered the workflow.\n type: string\n required: false\n default: \"\"\n from-branch-tip:\n description: >\n When true, an ungrouped release starts from the branch's current tip\n instead of the commit that triggered the workflow. Set it when the\n repo-wide release runs after the version groups, whose release\n commits have moved the branch (semantic-release refuses to run\n behind its remote). A group always starts from the tip.\n type: boolean\n required: false\n default: false\n post-release:\n description: >\n When true, dispatches a readme sync broadcast after a successful\n release. Enable for packages consumed by other repos via the\n registry-doc system so downstream README installation blocks\n stay current.\n type: boolean\n required: false\n default: false\n run-build:\n description: Run `pnpm build` before releasing\n type: boolean\n required: false\n default: true\n deploy-on-release:\n description: >\n When true, runs a separate `deploy` job after a successful release\n (holocron#930): `holocron deploy on-release` deploys every workspace\n package whose `delivery.deploy` task is `with: { on: release }`, when\n the release is on its channel and changes its paths. The job is its\n own check, re-runnable on its own, and gets VERCEL_TOKEN; the release\n job never sees it. Off by default, so a repo that doesn't deploy from\n its release never exposes the token.\n type: boolean\n required: false\n default: false\n sentry-project:\n description: >\n Sentry project slug for sourcemap upload and release creation after\n publishing. Omit to skip the Sentry release step entirely.\n type: string\n required: false\n default: \"\"\n secrets:\n HOLOCRON_RELEASE_TOKEN:\n description: >\n Fine-grained PAT (Contents + Issues + Pull requests: write) owned by\n an admin. Required when the default branch is protected by a ruleset —\n github.token cannot push through rulesets, but an admin PAT can.\n Takes priority over HOLOCRON_SYNC_TOKEN. Falls back to github.token.\n required: false\n HOLOCRON_SYNC_TOKEN:\n description: >\n Legacy alias for HOLOCRON_RELEASE_TOKEN — kept for backward compatibility.\n Prefer HOLOCRON_RELEASE_TOKEN for new repos.\n required: false\n HOLOCRON_READ_TOKEN:\n description: >\n Fine-grained PAT for read-only GitHub API calls (e.g. resolving git\n committer identity via `gh api user`). Falls back to github.token.\n required: false\n GH_TOKEN:\n description: >\n Generic GitHub token fallback for `gh` CLI calls. Used when\n HOLOCRON_READ_TOKEN is not set.\n required: false\n SENTRY_AUTH_TOKEN:\n description: >\n Sentry auth token for sourcemap upload and release creation.\n Required when sentry-project is set. Use the org-level secret.\n required: false\n TURBO_TOKEN:\n required: false\n HOLOCRON_VERCEL_TOKEN:\n description: The Vercel token. Read first; the vendor-native VERCEL_TOKEN secret is the fallback.\n required: false\n VERCEL_TOKEN:\n description: >\n Vercel token for the deploy job. Only used when deploy-on-release is\n true, and only by that job.\n required: false\n\njobs:\n release:\n name: Semantic release\n permissions:\n contents: write\n id-token: write\n issues: write\n pull-requests: write\n runs-on: ubuntu-latest\n timeout-minutes: 30\n outputs:\n # Read by the deploy job (holocron#930). Empty unless semantic-release\n # published: `commit` is the release commit, `previous` the commit of\n # the release before it (to diff against), `channel` the new version's\n # prerelease identifier (`alpha`), empty for a stable release (`main`).\n commit: ${{ steps.release.outputs.commit }}\n previous: ${{ steps.release.outputs.previous }}\n channel: ${{ steps.release.outputs.channel }}\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n # Do not cancel in-progress releases — a partial release is worse than a slow one.\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n persist-credentials: false\n # A group's release commit moves the branch, so a later group's run must\n # release from the branch's current tip, not the commit that triggered the\n # workflow (semantic-release refuses to run behind its remote). Ungrouped,\n # the default (the triggering commit) is unchanged, unless `from-branch-tip`\n # says the groups ran first.\n ref: ${{ (inputs.group != '' || inputs.from-branch-tip) && github.ref || github.sha }}\n # Use HOLOCRON_RELEASE_TOKEN when available — git push (tags, release commits)\n # uses the checkout credential, not GITHUB_TOKEN env var. The\n # built-in github.token cannot push through branch protection rulesets.\n token: ${{ secrets.HOLOCRON_RELEASE_TOKEN || secrets.HOLOCRON_SYNC_TOKEN || github.token }}\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n # By path: the action is new and `theholocron/.github` is frozen (see the `format` action in lint/code.yml).\n - uses: ./ci/actions/git-identity\n name: Configure git identity\n with:\n scope: global\n resolve: \"true\"\n signoff: \"true\"\n token: ${{ secrets.HOLOCRON_READ_TOKEN || secrets.GH_TOKEN || github.token }}\n\n - name: Upgrade npm for OIDC support\n run: npm install -g npm@11 sigstore\n # sigstore is required by libnpmpublish/provenance.js at module parse\n # time — before any config takes effect. Some npm 11.x builds stopped\n # bundling it; installing it globally into the same prefix ensures it\n # resolves regardless of npm version. (Discovered 2026-07-09.)\n\n - run: pnpm build\n name: Build\n if: ${{ inputs.run-build == true }}\n\n - name: Release\n id: release\n run: |\n BEFORE=$(git rev-parse HEAD)\n # A group's tags are `<group>-v<version>`; without one, any tag (as before).\n MATCH=()\n PREFIX=\"v\"\n if [ -n \"$RELEASE_GROUP\" ]; then\n MATCH=(--match \"${RELEASE_GROUP}-v*\")\n PREFIX=\"${RELEASE_GROUP}-v\"\n fi\n PREVIOUS_TAG=$(git describe --tags --abbrev=0 \"${MATCH[@]}\" 2>/dev/null || true)\n PREVIOUS=\"\"\n if [ -n \"$PREVIOUS_TAG\" ]; then PREVIOUS=$(git rev-list -n 1 \"$PREVIOUS_TAG\"); fi\n if [ \"$DRY_RUN\" = \"true\" ]; then\n npx semantic-release --dry-run\n else\n npx semantic-release\n fi\n AFTER=$(git rev-parse HEAD)\n # semantic-release only commits (`chore(release): … [skip ci]`) when it\n # actually publishes. That commit gets no CI (and so no coverage\n # upload), which makes the next PR's `codecov/project` compare a full\n # report against a stale ancestor — a phantom drop (holocron#644).\n # Emit the new SHA so the steps below upload coverage for it.\n if [ \"$BEFORE\" != \"$AFTER\" ]; then\n echo \"commit=$AFTER\" >> \"$GITHUB_OUTPUT\"\n echo \"previous=$PREVIOUS\" >> \"$GITHUB_OUTPUT\"\n # The new version's channel: the prerelease identifier of its tag\n # (v5.0.0-alpha.108 or cli-v5.0.0-alpha.108 -> alpha), empty for a stable release.\n VERSION=$(git describe --tags --abbrev=0 \"${MATCH[@]}\")\n VERSION=${VERSION#\"$PREFIX\"}\n CHANNEL=\"\"\n case \"$VERSION\" in *-*) PRE=${VERSION#*-}; CHANNEL=${PRE%%.*} ;; esac\n echo \"channel=$CHANNEL\" >> \"$GITHUB_OUTPUT\"\n fi\n env:\n DRY_RUN: ${{ inputs.dry-run }}\n # Read by the repo's release config to release one version group.\n RELEASE_GROUP: ${{ inputs.group }}\n # Prefer HOLOCRON_RELEASE_TOKEN (fine-grained PAT, Contents+Issues+PRs write,\n # owned by an admin with ruleset bypass) so @semantic-release/git can\n # push the version-bump commit through branch protection. Falls back to\n # HOLOCRON_SYNC_TOKEN (legacy) then github.token for unprotected repos.\n GITHUB_TOKEN: ${{ secrets.HOLOCRON_RELEASE_TOKEN || secrets.HOLOCRON_SYNC_TOKEN || github.token }}\n HUSKY: \"0\"\n NPM_CONFIG_PROVENANCE: true\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Coverage for the release commit\n if: ${{ steps.release.outputs.commit != '' }}\n with:\n task: test:unit\n\n - uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1\n name: Upload release-commit coverage to Codecov\n if: ${{ steps.release.outputs.commit != '' }}\n # fail_ci_if_error makes a failed upload fail this step, so it is visible, but\n # continue-on-error keeps it from failing the job: the release has already\n # published, and the Sentry release steps below must still run (holocron#934).\n continue-on-error: true\n with:\n use_oidc: true\n fail_ci_if_error: true\n override_commit: ${{ steps.release.outputs.commit }}\n override_branch: ${{ github.ref_name }}\n\n - name: Get release version\n id: release_version\n if: ${{ inputs.sentry-project != '' && inputs.dry-run != true }}\n env:\n SENTRY_PROJECT: ${{ inputs.sentry-project }}\n RELEASE_GROUP: ${{ inputs.group }}\n run: |\n MATCH=()\n PREFIX=\"v\"\n if [ -n \"$RELEASE_GROUP\" ]; then\n MATCH=(--match \"${RELEASE_GROUP}-v*\")\n PREFIX=\"${RELEASE_GROUP}-v\"\n fi\n TAG=$(git describe --tags --abbrev=0 \"${MATCH[@]}\" 2>/dev/null || echo \"\")\n if [ -n \"$TAG\" ]; then\n echo \"release=${SENTRY_PROJECT}@${TAG#\"$PREFIX\"}\" >> \"$GITHUB_OUTPUT\"\n fi\n\n - name: Create Sentry release\n if: ${{ inputs.sentry-project != '' && steps.release_version.outputs.release != '' && inputs.dry-run != true }}\n uses: getsentry/action-release@e6703d0b00208e0b3687ba660d18ab5af7892821 # v3\n env:\n SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}\n SENTRY_ORG: ${{ vars.HOLOCRON_SENTRY_ORG || vars.SENTRY_ORG }}\n SENTRY_PROJECT: ${{ inputs.sentry-project }}\n with:\n environment: production\n version: ${{ steps.release_version.outputs.release }}\n sourcemaps: \"**/dist\"\n\n deploy:\n name: Deploy\n needs: release\n # Only after a release that actually published (`commit` is empty on a dry\n # run or when nothing was released). A failed deploy fails only this job:\n # the release is already on npm, and this job re-runs on its own.\n if: ${{ inputs.deploy-on-release == true && inputs.dry-run != true && needs.release.outputs.commit != '' }}\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 30\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout the release commit\n with:\n ref: ${{ needs.release.outputs.commit }}\n fetch-depth: 0\n persist-credentials: false\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Deploy packages that deploy on release\n env:\n VERCEL_TOKEN: ${{ secrets.HOLOCRON_VERCEL_TOKEN || secrets.VERCEL_TOKEN }}\n with:\n command: deploy on-release\n args: >-\n --channel=${{ needs.release.outputs.channel }}\n --from=${{ needs.release.outputs.previous }}\n --to=${{ needs.release.outputs.commit }}\n\n sync-readme:\n name: Post-release readme sync\n needs: release\n if: ${{ inputs.post-release == true && inputs.dry-run != true }}\n runs-on: ubuntu-latest\n timeout-minutes: 5\n steps:\n - name: Trigger broadcast readme sync\n run: |\n gh workflow run sync-dispatch.yml \\\n --repo \"$GITHUB_REPOSITORY_OWNER/.github\" \\\n --field \"steps=readme\"\n env:\n GH_TOKEN: ${{ secrets.HOLOCRON_SYNC_TOKEN || secrets.GH_TOKEN }}\n";
71
+ var remind_doctor_default$1 = "name: Remind Doctor\n\n# A weekly nudge to run the drift check by hand (#1585). `holocron doctor notifications` compares the layout with the\n# live server and reads the Worker, the tracker and the secrets with provider tokens, which stay on a maintainer's\n# machine rather than in CI. This posts one line to #alerts, no ping, naming the command that checks and shares the\n# result. A missing webhook secret skips the post and never fails the run.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n HOLOCRON_NOTIFY_WEBHOOK_ALERTS:\n description: The #alerts webhook the reminder posts to. Without it the post is skipped.\n required: false\n\njobs:\n remind-doctor:\n name: Remind to run the drift check\n permissions: {}\n runs-on: ubuntu-latest\n timeout-minutes: 2\n steps:\n - uses: theholocron/.github/.github/actions/notify@main\n name: \"Remind #alerts\"\n with:\n webhook: ${{ secrets.HOLOCRON_NOTIFY_WEBHOOK_ALERTS }}\n message: \"🩺 ${{ github.repository }}: time for the weekly drift check. Run `holocron doctor notifications --built-only --post` to compare the server with the layout and post the result here.\"\n";
70
72
  var code_default$2 = "name: Security\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n language:\n description: CodeQL language to analyze\n type: string\n required: false\n default: javascript-typescript\n\njobs:\n analyze:\n name: Analyze (${{ inputs.language }})\n permissions:\n actions: read\n contents: read\n security-events: write\n runs-on: ubuntu-latest\n timeout-minutes: 45\n # Do not cancel in-progress security scans.\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n\n - uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3\n name: Initialize CodeQL\n with:\n languages: ${{ inputs.language }}\n\n - uses: github/codeql-action/autobuild@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3\n name: Autobuild\n\n - uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3\n name: Analyze\n with:\n category: /language:${{ inputs.language }}\n";
71
73
  var secrets_default$1 = "name: Secret Detection\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n secret-detection:\n name: Run gitleaks\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n # gitleaks has no npm distribution — install the prebuilt binary via\n # the maintainer's own documented install script.\n # NOTE: unverified against a live CI run at authoring time (D12) — flag\n # here if this needs adjustment.\n - name: Install gitleaks\n run: |\n curl -sSfL https://raw.githubusercontent.com/gitleaks/gitleaks/master/install.sh | sh -s -- -b /usr/local/bin\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Run gitleaks\n with:\n task: scan:secrets\n";
72
74
  var sync_dispatch_default = "name: Sync Dispatch\n\non: # yamllint disable-line rule:truthy\n workflow_dispatch:\n inputs:\n steps:\n description: >\n Sync steps to pass to each repo's sync.yml. Default is \"readme\"\n (only README marker blocks are updated).\n type: string\n required: false\n default: readme\n\npermissions:\n contents: read\n\njobs:\n broadcast:\n name: Broadcast sync to all repos\n runs-on: ubuntu-latest\n timeout-minutes: 15\n steps:\n - name: Dispatch sync to all repos with sync.yml\n run: |\n gh api \"/orgs/$GITHUB_REPOSITORY_OWNER/repos\" --paginate --jq '.[].name' \\\n | while IFS= read -r repo; do\n gh api \"/repos/$GITHUB_REPOSITORY_OWNER/$repo/contents/.github/workflows/sync.yml\" --silent 2>/dev/null || continue\n echo \"Dispatching sync to $GITHUB_REPOSITORY_OWNER/$repo\"\n gh workflow run sync.yml \\\n --repo \"$GITHUB_REPOSITORY_OWNER/$repo\" \\\n --field \"steps=$STEPS\" \\\n || echo \"Warning: could not dispatch to $GITHUB_REPOSITORY_OWNER/$repo — skipping\"\n done\n env:\n GH_TOKEN: ${{ secrets.HOLOCRON_SYNC_TOKEN }}\n STEPS: ${{ inputs.steps }}\n";
@@ -79,7 +81,9 @@ var unit_default$1 = "name: Test\n\non: # yamllint disable-line rule:truthy\n w
79
81
  var visual_default$1 = "name: Visual Regression\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n chromatic-projects:\n description: >\n JSON array of Chromatic projects to build, one matrix job per entry.\n Each entry: { \"tokenName\": \"WEB\", \"workingDir\": \"apps/web\", \"buildScript\": \"build:storybook\" }.\n tokenName maps to secret CHROMATIC_PROJECT_TOKEN_<TOKENNAME>; use \"default\"\n (or omit for the legacy empty-string form) to use the bare CHROMATIC_PROJECT_TOKEN\n secret for single-project repos.\n buildScript defaults to \"build:storybook\" when omitted.\n Required -- this task only exists in a repo's workflow list when it\n opts into Chromatic at all (holocron#394/#1062): GitHub evaluates a\n job's `if:` before expanding its `strategy.matrix`, so no default\n here (empty or otherwise) can make a *disabled* Chromatic job\n disappear from PR checks -- only not generating this job's thin\n caller in the first place can. A repo that doesn't want Chromatic\n simply omits `verification.visualRegression` from its `tasks:`.\n type: string\n required: true\n secrets:\n CHROMATIC_PROJECT_TOKEN:\n required: false\n\njobs:\n visual-and-composition:\n name: Run visual and composition tests\n strategy:\n fail-fast: false\n matrix:\n project: ${{ fromJSON(inputs.chromatic-projects) }}\n permissions:\n contents: read\n statuses: write\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: chromaui/action@1efa9d9b64308fe98fcf1eb4629f12639ffac902 # v18\n name: Publish to Chromatic\n with:\n projectToken: ${{ (matrix.project.tokenName == 'default' || matrix.project.tokenName == '') && secrets.CHROMATIC_PROJECT_TOKEN || secrets[format('CHROMATIC_PROJECT_TOKEN_{0}', matrix.project.tokenName)] }}\n token: ${{ github.token }}\n buildScriptName: ${{ matrix.project.buildScript || 'build:storybook' }}\n workingDir: ${{ matrix.project.workingDir || '.' }}\n storybookBaseDir: ${{ matrix.project.storybookBaseDir || '' }}\n untraced: ${{ matrix.project.untraced || '' }}\n onlyStoryFiles: ${{ matrix.project.onlyStoryFiles || '' }}\n exitZeroOnChanges: ${{ matrix.project.exitZeroOnChanges || false }}\n";
80
82
  var typecheck_default$1 = "name: Typecheck\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n affected:\n description: Run only the packages changed since the PR base, plus their dependents (turbo --affected). Needs a turbo.json; checks out full history. Other repos keep today's behaviour while this is false.\n type: boolean\n required: false\n default: false\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n typecheck:\n name: Run tsc --noEmit\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.HOLOCRON_TURBO_TEAM || vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n # --affected needs the base commit, which a depth-1 checkout does not have.\n fetch-depth: ${{ inputs.affected && '0' || '1' }}\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Type check\n with:\n task: typecheck\n affected: ${{ inputs.affected }}\n";
81
83
  var update_deps_default$1 = "name: Dependencies\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n merge-token:\n description: >\n Optional privileged token for auto-merge. Falls back to GITHUB_TOKEN.\n Required when branch protection enforces required reviews — GITHUB_TOKEN\n cannot approve its own PRs.\n required: false\n\njobs:\n dependabot:\n name: Update the dependencies\n permissions:\n contents: write\n pull-requests: write\n runs-on: ubuntu-latest\n timeout-minutes: 5\n if: github.event.pull_request.user.login == 'dependabot[bot]'\n steps:\n - uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0\n name: Fetch Dependabot metadata\n id: metadata\n\n - run: gh pr merge --auto --squash \"$PR_URL\"\n # --squash is intentional: repo protection sets allow_merge_commit: false,\n # so --merge would fail on any repo using the standard preset.\n name: Enable auto-merge for Dependabot PRs\n if: steps.metadata.outputs.update-type == 'version-update:semver-patch'\n env:\n PR_URL: ${{ github.event.pull_request.html_url }}\n GH_TOKEN: ${{ secrets.merge-token || github.token }}\n";
84
+ var deps_default$1 = "name: Validate Dependency Catalogs\n\n# Dependency catalogs (#1380): fails when a workspace package.json breaks the catalog rule written at the top of\n# pnpm-workspace.yaml (a hard-coded version, a workspace package pinned to a version, a dependency in the wrong\n# catalog or an unused catalog entry). Checked by `holocron probe deps check`, which reads the manifests live.\n#\n# There is deliberately no `paths:` filter in a caller: a required check that is skipped blocks the merge.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n validate-deps:\n name: Check dependency catalogs\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Check the dependency catalogs\n with:\n task: validate:deps\n";
82
85
  var docs_default$1 = "name: Validate Docs\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n validate-docs:\n name: Validate docs presence\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Validate docs presence for new packages\n with:\n task: validate:docs\n env:\n HOLOCRON_BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}\n # The PR title and description, read by the script for a `feat` and a `[skip docs] <reason>` marker. They\n # reach the script through the environment, never inline in a command.\n HOLOCRON_PR_TITLE: ${{ github.event.pull_request.title }}\n HOLOCRON_PR_BODY: ${{ github.event.pull_request.body }}\n # The bare names stay until every caller's CLI reads the prefixed ones (#1864); a CLI that predates them\n # reads only these.\n BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}\n PR_TITLE: ${{ github.event.pull_request.title }}\n PR_BODY: ${{ github.event.pull_request.body }}\n";
86
+ var generated_default$1 = "name: Validate Generated Files\n\n# Generated files (#1405): fails when a file `holocron repo setup` / `holocron repo sync` writes from the config\n# differs from the committed copy, differs the second time it is generated, or when a workflow in .github/workflows is\n# neither generated nor marked \"# HAND-MAINTAINED\". Checked by `holocron probe generated check`, which needs no token.\n#\n# There is deliberately no `paths:` filter in a caller: a required check that is skipped blocks the merge.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n validate-generated:\n name: Check generated files\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Check the generated files\n with:\n task: validate:generated\n";
83
87
  var specs_default$1 = "name: Validate Specs\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n validate-specs:\n name: Validate ADRs and specs\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n steps:\n - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Validate ADR and spec frontmatter\n with:\n task: validate:specs\n";
84
88
  var action_default$8 = "name: Auto Commit\ndescription: >\n Commit and push any file changes using stefanzweifel/git-auto-commit-action.\n If a branch name is provided and differs from the current branch, a new branch\n is created automatically.\n\ninputs:\n token:\n description: >\n GitHub token with push access to the target branch. Used to authenticate\n the git remote so the commit can be pushed.\n required: true\n branch:\n description: >\n Branch to commit to. Leave empty to commit to the current branch (useful\n in PR contexts). Provide an explicit name (e.g. chore/auto-sync-<sha>) to push\n to a separate branch.\n required: false\n default: \"\"\n commit-message:\n description: Commit message.\n required: true\n commit-options:\n description: >\n Additional options passed to git commit (e.g. --no-verify).\n required: false\n default: \"\"\n commit-user-name:\n description: Git user.name for the commit.\n required: false\n default: \"github-actions[bot]\"\n commit-user-email:\n description: Git user.email for the commit.\n required: false\n default: \"41898282+github-actions[bot]@users.noreply.github.com\"\n commit-author:\n description: >\n Git author string in \"Name <email>\" format.\n required: false\n default: \"github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>\"\n\noutputs:\n changes-detected:\n description: \"'true' if any files were committed, 'false' otherwise.\"\n value: ${{ steps.commit.outputs.changes_detected }}\n\nruns:\n using: composite\n steps:\n - name: Configure git remote with token\n shell: bash\n run: |\n REMOTE_URL=$(git remote get-url origin)\n AUTHED_URL=$(echo \"$REMOTE_URL\" | sed \"s|https://|https://x-access-token:${TOKEN}@|\")\n git remote set-url origin \"$AUTHED_URL\"\n env:\n TOKEN: ${{ inputs.token }}\n\n - name: Reset branch to current HEAD\n if: ${{ inputs.branch != '' }}\n shell: bash\n run: git checkout -B \"$BRANCH\"\n env:\n BRANCH: ${{ inputs.branch }}\n\n - name: Build signed commit message\n id: msg\n shell: bash\n run: |\n TRAILER=\"Signed-off-by: ${COMMIT_USER_NAME} <${COMMIT_USER_EMAIL}>\"\n if echo \"$COMMIT_MESSAGE\" | grep -qF \"$TRAILER\"; then\n FINAL=\"$COMMIT_MESSAGE\"\n else\n FINAL=\"${COMMIT_MESSAGE}\"$'\\n\\n'\"${TRAILER}\"\n fi\n {\n echo \"value<<EOF_TRAILER\"\n printf '%s' \"$FINAL\"\n echo \"\"\n echo \"EOF_TRAILER\"\n } >> \"$GITHUB_OUTPUT\"\n env:\n COMMIT_MESSAGE: ${{ inputs.commit-message }}\n COMMIT_USER_NAME: ${{ inputs.commit-user-name }}\n COMMIT_USER_EMAIL: ${{ inputs.commit-user-email }}\n\n - uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0\n id: commit\n with:\n branch: ${{ inputs.branch }}\n commit_message: ${{ steps.msg.outputs.value }}\n commit_options: ${{ inputs.commit-options }}\n commit_user_name: ${{ inputs.commit-user-name }}\n commit_user_email: ${{ inputs.commit-user-email }}\n commit_author: ${{ inputs.commit-author }}\n";
85
89
  var action_default$7 = "name: Codecov upload\ndescription: >\n Upload coverage to Codecov with one flag per group, authenticated with the job's OIDC token (the job\n needs `id-token: write`). Downloads the Codecov CLI and verifies its GPG signature and checksum first,\n as `codecov/codecov-action` does. `codecov-action` takes one `flags:` value per step and a job cannot\n generate steps, so a list of groups needs this loop.\n\ninputs:\n uploads:\n description: >\n JSON list of `{\"flag\": \"utils\", \"files\": \"utils/*/coverage/lcov.info\"}`. `files` is a glob relative to\n the workspace. A group whose glob matches nothing is skipped with a note, not an error.\n required: true\n allow-empty:\n description: >\n `\"true\"` lets a run with no coverage file in any group finish quietly (an affected run that selected\n nothing). Otherwise that is an error, so a missing report is not mistaken for a pass.\n required: false\n default: \"false\"\n\noutputs:\n uploaded:\n description: How many flags were uploaded (0 when no group had a coverage file).\n value: ${{ steps.upload.outputs.uploaded }}\n\nruns:\n using: composite\n\n steps:\n - name: Download the Codecov CLI\n shell: bash\n run: |\n set -euo pipefail\n dir=\"$RUNNER_TEMP/codecov-cli\"\n mkdir -p \"$dir\" && cd \"$dir\"\n base=https://cli.codecov.io/latest/linux\n curl -sSf --retry 3 -o codecov \"$base/codecov\"\n curl -sSf --retry 3 -O \"$base/codecov.SHA256SUM\"\n curl -sSf --retry 3 -O \"$base/codecov.SHA256SUM.sig\"\n export GNUPGHOME=\"$dir/gnupg\" && mkdir -m 700 \"$GNUPGHOME\"\n curl -sSf --retry 3 https://keybase.io/codecovsecops/pgp_keys.asc | gpg --batch --import\n gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM\n sha256sum -c codecov.SHA256SUM\n chmod +x codecov\n echo \"CODECOV_CLI=$dir/codecov\" >> \"$GITHUB_ENV\"\n\n - name: Upload each flag\n id: upload\n shell: bash\n env:\n UPLOADS: ${{ inputs.uploads }}\n ALLOW_EMPTY: ${{ inputs.allow-empty }}\n run: |\n set -euo pipefail\n if [ -z \"${ACTIONS_ID_TOKEN_REQUEST_URL:-}\" ]; then\n echo \"::error::No OIDC token available: give the job \\`permissions: id-token: write\\`.\"\n exit 1\n fi\n if ! jq -e 'type == \"array\" and all(.[]; (.flag // \"\") != \"\" and (.files // \"\") != \"\")' <<<\"$UPLOADS\" >/dev/null; then\n echo \"::error::uploads must be a JSON list of {\\\"flag\\\", \\\"files\\\"} with both set.\"\n exit 1\n fi\n # The token codecov-action asks for with `use_oidc: true`.\n token=\"$(curl -sSf -H \"Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN\" \\\n \"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io\" | jq -r .value)\"\n if [ -z \"$token\" ] || [ \"$token\" = null ]; then\n echo \"::error::Could not get an OIDC token.\"\n exit 1\n fi\n echo \"::add-mask::$token\"\n # What codecov-action does before it uploads: tell Codecov about the commit and open the report that\n # the per-flag uploads attach to. Uploading alone leaves the report unprocessed and posts no status.\n \"$CODECOV_CLI\" create-commit -t \"$token\" --fail-on-error --git-service github\n \"$CODECOV_CLI\" create-report -t \"$token\" --fail-on-error --git-service github\n uploaded=0\n # Read the list on fd 3: the loop body must not share stdin with the CLI, which could swallow the\n # remaining entries. A process substitution (not a pipe) keeps `uploaded` in this shell.\n while read -r entry <&3; do\n flag=\"$(jq -r .flag <<<\"$entry\")\"\n mapfile -t files < <(compgen -G \"$(jq -r .files <<<\"$entry\")\" || true)\n if [ \"${#files[@]}\" -eq 0 ]; then\n echo \"· $flag: no coverage files\"\n continue\n fi\n args=()\n for f in \"${files[@]}\"; do args+=(--file \"$f\"); done\n echo \"→ $flag: ${#files[@]} file(s)\"\n \"$CODECOV_CLI\" do-upload -t \"$token\" --flag \"$flag\" --disable-search --fail-on-error --git-service github \"${args[@]}\"\n uploaded=$((uploaded + 1))\n done 3< <(jq -c '.[]' <<<\"$UPLOADS\")\n echo \"uploaded=$uploaded\" >> \"$GITHUB_OUTPUT\"\n if [ \"$uploaded\" -eq 0 ] && [ \"$ALLOW_EMPTY\" != \"true\" ]; then\n echo \"::error::No group has a coverage file, so nothing was uploaded.\"\n exit 1\n fi\n";
@@ -136,10 +140,12 @@ const WORKFLOWS = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assig
136
140
  "../workflows/lint/unused.yml": unused_default$1,
137
141
  "../workflows/mark-stale.yml": mark_stale_default$1,
138
142
  "../workflows/measure-bundle.yml": measure_bundle_default$1,
143
+ "../workflows/measure-docs.yml": measure_docs_default$1,
139
144
  "../workflows/preview.yml": preview_default$1,
140
145
  "../workflows/publish-wiki.yml": publish_wiki_default$1,
141
146
  "../workflows/reconcile-projects.yml": reconcile_projects_default$1,
142
147
  "../workflows/release.yml": release_default$1,
148
+ "../workflows/remind-doctor.yml": remind_doctor_default$1,
143
149
  "../workflows/scan/code.yml": code_default$2,
144
150
  "../workflows/scan/secrets.yml": secrets_default$1,
145
151
  "../workflows/sync-dispatch.yml": sync_dispatch_default,
@@ -152,7 +158,9 @@ const WORKFLOWS = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assig
152
158
  "../workflows/test/visual.yml": visual_default$1,
153
159
  "../workflows/typecheck.yml": typecheck_default$1,
154
160
  "../workflows/update-deps.yml": update_deps_default$1,
161
+ "../workflows/validate/deps.yml": deps_default$1,
155
162
  "../workflows/validate/docs.yml": docs_default$1,
163
+ "../workflows/validate/generated.yml": generated_default$1,
156
164
  "../workflows/validate/specs.yml": specs_default$1
157
165
  })).map(([path, text]) => [idFromSource(path), text]));
158
166
  /** Composite actions, by action name (`<name>/action.yml`). */
@@ -327,6 +335,13 @@ const LEGACY_CALLERS = {
327
335
  name: "Preview"
328
336
  } }
329
337
  },
338
+ "measure-docs": {
339
+ name: "Source Quality",
340
+ jobs: { "measure-docs": {
341
+ id: "docs-coverage",
342
+ name: "Docs coverage"
343
+ } }
344
+ },
330
345
  "publish-wiki": {
331
346
  name: "Knowledge",
332
347
  jobs: {
@@ -340,6 +355,13 @@ const LEGACY_CALLERS = {
340
355
  }
341
356
  }
342
357
  },
358
+ "remind-doctor": {
359
+ name: "Platform",
360
+ jobs: { "remind-doctor": {
361
+ id: "doctor-reminder",
362
+ name: "Doctor reminder"
363
+ } }
364
+ },
343
365
  "reconcile-projects": {
344
366
  name: "Platform",
345
367
  jobs: { "reconcile-projects": {
@@ -432,6 +454,20 @@ const LEGACY_CALLERS = {
432
454
  name: "Repo Validation"
433
455
  } }
434
456
  },
457
+ "validate:deps": {
458
+ name: "Source Quality",
459
+ jobs: { "validate-deps": {
460
+ id: "dependency-catalogs",
461
+ name: "Dependency catalogs"
462
+ } }
463
+ },
464
+ "validate:generated": {
465
+ name: "Source Quality",
466
+ jobs: { "validate-generated": {
467
+ id: "generated-files",
468
+ name: "Generated files"
469
+ } }
470
+ },
435
471
  "deploy-docs": {
436
472
  name: "Deploy",
437
473
  jobs: {
@@ -789,6 +825,8 @@ var unused_default = "name: lint:unused\n\non: # yamllint disable-line rule:trut
789
825
  var mark_stale_default = "name: mark-stale\n\non: # yamllint disable-line rule:truthy\n schedule:\n - cron: \"30 1 * * *\"\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n\njobs:\n mark-stale:\n name: mark-stale\n uses: theholocron/.github/.github/workflows/mark-stale.yml@main\n with:\n exempt-issue-labels: \"in-progress,wip\"\n exempt-all-issue-milestones: true\n exempt-all-issue-projects: true\n exempt-all-pr-projects: true\n secrets: inherit\n";
790
826
  // src/templates/workflows/measure-bundle.yml
791
827
  var measure_bundle_default = "name: measure-bundle\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n measure-bundle:\n name: measure-bundle\n uses: theholocron/.github/.github/workflows/measure-bundle.yml@main\n secrets: inherit\n";
828
+ // src/templates/workflows/measure-docs.yml
829
+ var measure_docs_default = "name: measure-docs\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\npermissions:\n contents: read\n id-token: write\n\njobs:\n measure-docs:\n name: measure-docs\n uses: theholocron/.github/.github/workflows/measure-docs.yml@main\n secrets: inherit\n";
792
830
  // src/templates/workflows/preview.yml
793
831
  var preview_default = "name: preview\n\non: # yamllint disable-line rule:truthy\n pull_request:\n branches: [main]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n deployments: write\n pull-requests: write\n\njobs:\n preview:\n name: preview\n uses: theholocron/.github/.github/workflows/preview.yml@main\n secrets: inherit\n";
794
832
  // src/templates/workflows/publish-wiki.yml
@@ -797,6 +835,8 @@ var publish_wiki_default = "name: publish-wiki\n\non: # yamllint disable-line ru
797
835
  var reconcile_projects_default = "name: reconcile-projects\n\non: # yamllint disable-line rule:truthy\n schedule:\n - cron: \"23 * * * *\"\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n reconcile-projects:\n name: reconcile-projects\n uses: theholocron/.github/.github/workflows/reconcile-projects.yml@main\n secrets: inherit\n";
798
836
  // src/templates/workflows/release.yml
799
837
  var release_default = "name: release\n\non: # yamllint disable-line rule:truthy\n push:\n branches:\n - main\n - alpha\n workflow_dispatch:\n inputs:\n dry_run:\n description: >\n Dry run — analyze commits and preview the release without git writes\n or publish. Push-triggered runs always run fully; this only applies\n to manual workflow_dispatch triggers.\n required: false\n default: true\n type: boolean\n\npermissions:\n contents: write\n id-token: write\n issues: write\n pull-requests: write\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: false\n\njobs:\n release:\n name: release\n uses: theholocron/.github/.github/workflows/release.yml@main\n with:\n dry-run: ${{ inputs.dry_run == true }}\n secrets: inherit\n";
838
+ // src/templates/workflows/remind-doctor.yml
839
+ var remind_doctor_default = "name: remind-doctor\n\non: # yamllint disable-line rule:truthy\n schedule:\n - cron: \"0 14 * * 1\"\n workflow_dispatch: {}\n\npermissions: {}\n\njobs:\n remind-doctor:\n name: remind-doctor\n uses: theholocron/.github/.github/workflows/remind-doctor.yml@main\n secrets: inherit\n";
800
840
  // src/templates/workflows/scan/code.yml
801
841
  var code_default = "name: scan:code\n\non: # yamllint disable-line rule:truthy\n push:\n branches:\n - main\n pull_request:\n branches:\n - main\n schedule:\n - cron: \"0 0 * * 1\"\n\npermissions:\n actions: read\n contents: read\n security-events: write\n\njobs:\n scan-code:\n name: scan:code\n uses: theholocron/.github/.github/workflows/scan-code.yml@main\n secrets: inherit\n";
802
842
  // src/templates/workflows/scan/secrets.yml
@@ -815,8 +855,12 @@ var visual_default = "name: test:visual\n\non: # yamllint disable-line rule:trut
815
855
  var typecheck_default = "name: typecheck\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\nconcurrency:\n group: typecheck-${{ github.ref }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n\njobs:\n typecheck:\n name: typecheck\n uses: theholocron/.github/.github/workflows/typecheck.yml@main\n secrets: inherit\n";
816
856
  // src/templates/workflows/update-deps.yml
817
857
  var update_deps_default = "name: update-deps\n\non: # yamllint disable-line rule:truthy\n pull_request:\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n update-deps:\n name: update-deps\n uses: theholocron/.github/.github/workflows/update-deps.yml@main\n secrets: inherit\n";
858
+ // src/templates/workflows/validate/deps.yml
859
+ var deps_default = "name: validate:deps\n\non: # yamllint disable-line rule:truthy\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n validate-deps:\n name: validate:deps\n uses: theholocron/.github/.github/workflows/validate-deps.yml@main\n secrets: inherit\n";
818
860
  // src/templates/workflows/validate/docs.yml
819
861
  var docs_default = "name: validate:docs\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n validate-docs:\n name: validate:docs\n uses: theholocron/.github/.github/workflows/validate-docs.yml@main\n secrets: inherit\n";
862
+ // src/templates/workflows/validate/generated.yml
863
+ var generated_default = "name: validate:generated\n\non: # yamllint disable-line rule:truthy\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n validate-generated:\n name: validate:generated\n uses: theholocron/.github/.github/workflows/validate-generated.yml@main\n secrets: inherit\n";
820
864
  // src/templates/workflows/validate/specs.yml
821
865
  var specs_default = "name: validate:specs\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n validate-specs:\n name: validate:specs\n uses: theholocron/.github/.github/workflows/validate-specs.yml@main\n secrets: inherit\n";
822
866
  // src/generators/github-action-thin-callers/grouped-publish/grouped-publish.ts
@@ -1013,10 +1057,12 @@ const WORKFLOW_TEMPLATES = rehomeAll(Object.fromEntries(Object.entries(/* @__PUR
1013
1057
  "../../templates/workflows/lint/unused.yml": unused_default,
1014
1058
  "../../templates/workflows/mark-stale.yml": mark_stale_default,
1015
1059
  "../../templates/workflows/measure-bundle.yml": measure_bundle_default,
1060
+ "../../templates/workflows/measure-docs.yml": measure_docs_default,
1016
1061
  "../../templates/workflows/preview.yml": preview_default,
1017
1062
  "../../templates/workflows/publish-wiki.yml": publish_wiki_default,
1018
1063
  "../../templates/workflows/reconcile-projects.yml": reconcile_projects_default,
1019
1064
  "../../templates/workflows/release.yml": release_default,
1065
+ "../../templates/workflows/remind-doctor.yml": remind_doctor_default,
1020
1066
  "../../templates/workflows/scan/code.yml": code_default,
1021
1067
  "../../templates/workflows/scan/secrets.yml": secrets_default,
1022
1068
  "../../templates/workflows/sync-repo.yml": sync_repo_default,
@@ -1026,7 +1072,9 @@ const WORKFLOW_TEMPLATES = rehomeAll(Object.fromEntries(Object.entries(/* @__PUR
1026
1072
  "../../templates/workflows/test/visual.yml": visual_default,
1027
1073
  "../../templates/workflows/typecheck.yml": typecheck_default,
1028
1074
  "../../templates/workflows/update-deps.yml": update_deps_default,
1075
+ "../../templates/workflows/validate/deps.yml": deps_default,
1029
1076
  "../../templates/workflows/validate/docs.yml": docs_default,
1077
+ "../../templates/workflows/validate/generated.yml": generated_default,
1030
1078
  "../../templates/workflows/validate/specs.yml": specs_default
1031
1079
  })).map(([path, text]) => [idFromSource(path), text])));
1032
1080
  /** The task names that have a thin-caller workflow template. */
@@ -1058,6 +1106,8 @@ const WORKFLOW_CHECK_CONTEXTS = {
1058
1106
  "lint:commits": "lint:commits / Run commitlint",
1059
1107
  "validate:specs": "validate:specs / Validate ADRs and specs",
1060
1108
  "validate:docs": "validate:docs / Validate docs presence",
1109
+ "validate:deps": "validate:deps / Check dependency catalogs",
1110
+ "validate:generated": "validate:generated / Check generated files",
1061
1111
  "measure-bundle": "measure-bundle / Upload bundle stats to Codecov"
1062
1112
  };
1063
1113
  /**
@@ -3194,8 +3244,10 @@ function runCi(input) {
3194
3244
  // src/tasks/deploy-on-release/constants.ts
3195
3245
  /** A stable release (no prerelease identifier) is on `main`, the default channel for a task. */
3196
3246
  const MAIN_CHANNEL = "main";
3197
- /** The package script the deploy runs, still the old task name until the packages' scripts are renamed (spec phase C). */
3198
- const DEPLOY_SCRIPT = "delivery.deploy";
3247
+ /** The package script the deploy runs: the flat task id, as `apps/sentinel` names it. */
3248
+ const DEPLOY_SCRIPT = "deploy";
3249
+ /** The old spelling of {@link DEPLOY_SCRIPT}, for a package whose scripts have not been renamed. Used only when that is the one it has. */
3250
+ const LEGACY_DEPLOY_SCRIPT = "delivery.deploy";
3199
3251
  /** How long to wait for npm to serve the release's versions, and how often to ask. */
3200
3252
  const WAIT_TIMEOUT_MS = 3e5;
3201
3253
  const WAIT_INTERVAL_MS = 1e4;
@@ -3260,6 +3312,24 @@ function workspaceDependencies(pkg, all, options) {
3260
3312
  function defaultPaths(repoRoot, pkg, all) {
3261
3313
  return [pkg, ...workspaceDependencies(pkg, all, { includeDevDependencies: true })].map(({ dir }) => `${relative(repoRoot, dir).replace(/\\/g, "/")}/`);
3262
3314
  }
3315
+ // src/tasks/deploy-on-release/deploy-script/deploy-script.ts
3316
+ /** The `scripts` of the `package.json` in `dir`; empty when it has none or cannot be read. */
3317
+ function scriptsOf(readJson, dir) {
3318
+ try {
3319
+ return readJson(join(dir, "package.json"))?.scripts ?? {};
3320
+ } catch {
3321
+ return {};
3322
+ }
3323
+ }
3324
+ /**
3325
+ * The script a release-time deploy runs in the package at `dir`: `deploy`, or the old `delivery.deploy` when that
3326
+ * is the only one it has. A package with neither, or one whose `package.json` cannot be read, gets `deploy`, so
3327
+ * the failure names the script the package is expected to have.
3328
+ */
3329
+ function deployScript(readJson, dir) {
3330
+ const scripts = scriptsOf(readJson, dir);
3331
+ return !("deploy" in scripts) && "delivery.deploy" in scripts ? LEGACY_DEPLOY_SCRIPT : DEPLOY_SCRIPT;
3332
+ }
3263
3333
  // src/tasks/deploy-on-release/deploy-targets/deploy-targets.ts
3264
3334
  /**
3265
3335
  * The packages whose manifest declares a release-time `delivery.deploy`
@@ -3373,7 +3443,7 @@ function workspacePackages(repoRoot, { readJson, listDirs }) {
3373
3443
  * `with.paths`. It first waits for npm to serve the release's new versions of
3374
3444
  * those dependencies ({@link waitForPublished}) — the registry can lag a version
3375
3445
  * it has just accepted, and the deploy installs them — then runs
3376
- * `pnpm --filter <package> delivery.deploy`.
3446
+ * `pnpm --filter <package> run deploy` (its old `delivery.deploy` script when that is the one it has).
3377
3447
  *
3378
3448
  * The release is already published by then, so a failed deploy can't undo it;
3379
3449
  * it fails this job instead, loudly and re-runnable on its own. A task is
@@ -3476,7 +3546,8 @@ async function deployOnRelease(options, { run = defaultRun, readJson = defaultRe
3476
3546
  const result = run("pnpm", [
3477
3547
  "--filter",
3478
3548
  name,
3479
- DEPLOY_SCRIPT
3549
+ "run",
3550
+ deployScript(readJson, target.pkg.dir)
3480
3551
  ], {
3481
3552
  cwd,
3482
3553
  env: process.env,
@@ -275,6 +275,18 @@ const TASKS = {
275
275
  suite: "validate",
276
276
  local: { command: "probe docs validate" }
277
277
  },
278
+ "validate:deps": {
279
+ group: "Platform",
280
+ scope: "repo",
281
+ suite: "validate",
282
+ local: { command: "probe deps check" }
283
+ },
284
+ "validate:generated": {
285
+ group: "Platform",
286
+ scope: "repo",
287
+ suite: "validate",
288
+ local: { command: "probe generated check" }
289
+ },
278
290
  "validate:plugin": {
279
291
  group: "Platform",
280
292
  scope: "package",
@@ -282,6 +294,16 @@ const TASKS = {
282
294
  workflow: false,
283
295
  local: null
284
296
  },
297
+ "measure-docs": {
298
+ group: "Platform",
299
+ scope: "repo",
300
+ local: { command: "probe docs coverage" }
301
+ },
302
+ "remind-doctor": {
303
+ group: "Platform",
304
+ scope: "repo",
305
+ local: null
306
+ },
285
307
  "sync-repo": {
286
308
  group: "Platform",
287
309
  scope: "repo",
@@ -338,6 +360,8 @@ const CI_ORDER = [
338
360
  "lint:commits",
339
361
  "validate:specs",
340
362
  "validate:docs",
363
+ "validate:deps",
364
+ "validate:generated",
341
365
  "test:unit",
342
366
  "build",
343
367
  "lint:unused",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.392",
3
+ "version": "5.0.0-alpha.393",
4
4
  "description": "The Holocron task runner — one task manifest drives `holocron run`, `holocron run ci`, the CI workflows, package.json scripts, linters, and required checks.",
5
5
  "keywords": [
6
6
  "ci",
@@ -55,11 +55,11 @@
55
55
  "@commitlint/lint": "^21.2.3",
56
56
  "@commitlint/load": "^21.2.3",
57
57
  "@commitlint/types": "^21.2.3",
58
+ "@theholocron/datapad": "5.0.0-alpha.393",
58
59
  "@theholocron/fs-utils": "^1.17.0-alpha.3",
59
- "@theholocron/datapad": "5.0.0-alpha.392",
60
60
  "@theholocron/misc-utils": "^1.17.0-alpha.3",
61
- "@theholocron/pkg-utils": "^1.17.0-alpha.3",
62
- "@theholocron/json-utils": "^1.17.0-alpha.3"
61
+ "@theholocron/json-utils": "^1.17.0-alpha.3",
62
+ "@theholocron/pkg-utils": "^1.17.0-alpha.3"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@commitlint/config-conventional": "^21.2.3",
@@ -74,12 +74,12 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vitest": "^5.1.0",
76
76
  "@theholocron/ci": "1.0.0",
77
- "@theholocron/eslint-config": "^8.9.0-alpha.15",
78
77
  "@theholocron/commitlint-config": "^8.9.0-alpha.15",
79
- "@theholocron/tsconfig": "^8.9.0-alpha.15",
78
+ "@theholocron/eslint-config": "^8.9.0-alpha.15",
80
79
  "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.15",
81
- "@theholocron/vitest-config": "^8.9.0-alpha.15",
82
- "@theholocron/tsdown-config": "^8.9.0-alpha.15"
80
+ "@theholocron/tsconfig": "^8.9.0-alpha.15",
81
+ "@theholocron/tsdown-config": "^8.9.0-alpha.15",
82
+ "@theholocron/vitest-config": "^8.9.0-alpha.15"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=22"