@theholocron/astromech 5.0.0-alpha.267 → 5.0.0-alpha.269

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
@@ -53,30 +53,31 @@ what it actually runs, and why. Tool names never appear in
53
53
  `holocron.config.ts` — they're an implementation detail this table
54
54
  documents, not a naming convention repos need to follow.
55
55
 
56
- | Task | Runs | Notes |
57
- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
58
- | `verification.unitTests` | vitest | carries the `--coverage` org default |
59
- | `verification.typeSafety` | tsc | `tsc --noEmit` |
60
- | `verification.performance` | Lighthouse CI | only runs with a `lighthouse.config.*` present |
61
- | `sourceQuality.staticAnalysis` | eslint, actionlint, git-merge-conflict-markers | a `linterGroup` — see below |
62
- | `sourceQuality.formatting` | prettier, editorconfig-checker, markdownlint-cli2 | a `linterGroup` |
63
- | `sourceQuality.structuredDataValidation` | yamllint | |
64
- | `sourceQuality.deadCodeAnalysis` | knip | |
65
- | `security.secretDetection` | gitleaks | |
66
- | `security.codeScanning` | CodeQL | no local equivalent — CI only |
67
- | `security.dependencyReview` | GitHub's native Dependabot alerts/graph | a capability-model method (`Source.enableVulnerabilityAlerts()`), not a task |
68
- | `delivery.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 | |
69
- | `delivery.publish` | semantic-release | no local equivalent — CI only; carries `preview` (npm dist-tags) |
70
- | `delivery.deploy` | Cloudflare Pages / Vercel | no local equivalent — CI only; carries `preview` |
71
- | `delivery.bundleSize` | bundle-size upload to Codecov | no local equivalent — CI only |
72
- | `delivery.previewCheck` | `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` |
73
- | `platform.notifyCheck` | _(none — manual workflow)_ | posts a labelled test message to every notification channel; fails per channel that does not work |
74
- | `platform.repoSync` | `holocron repo sync` | keeps generated files current |
75
- | `platform.commitStandards` | commitlint | no local equivalent — enforced by the `commit-msg` hook locally, over the PR's commit range in CI |
76
- | `platform.repoValidation` | `scripts/validate-adrs.mjs`, `scripts/validate-docs-presence.mjs` | a job-bearing task — spec/ADR frontmatter and docs-presence, not linters |
77
- | `knowledge.wiki` | Fern | publishes `docs/wiki/*.md` — not a sync, a publish; carries `preview` |
78
- | `knowledge.docs` | Astro build | the docs site itself; carries `preview` (defaults on) |
79
- | `knowledge.components` | Storybook build | a browsable component catalog — "Storybook" is the tool, not the intent; carries `preview` (defaults on) |
56
+ | Task | Runs | Notes |
57
+ | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
58
+ | `verification.unitTests` | vitest | carries the `--coverage` org default |
59
+ | `verification.typeSafety` | tsc | `tsc --noEmit` |
60
+ | `verification.performance` | Lighthouse CI | only runs with a `lighthouse.config.*` present |
61
+ | `sourceQuality.staticAnalysis` | eslint, actionlint, git-merge-conflict-markers | a `linterGroup` — see below |
62
+ | `sourceQuality.formatting` | prettier, editorconfig-checker, markdownlint-cli2 | a `linterGroup` |
63
+ | `sourceQuality.structuredDataValidation` | yamllint | |
64
+ | `sourceQuality.deadCodeAnalysis` | knip | |
65
+ | `security.secretDetection` | gitleaks | |
66
+ | `security.codeScanning` | CodeQL | no local equivalent — CI only |
67
+ | `security.tokenExpiry` | `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` |
68
+ | `security.dependencyReview` | GitHub's native Dependabot alerts/graph | a capability-model method (`Source.enableVulnerabilityAlerts()`), not a task |
69
+ | `delivery.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 | |
70
+ | `delivery.publish` | semantic-release | no local equivalent — CI only; carries `preview` (npm dist-tags) |
71
+ | `delivery.deploy` | Cloudflare Pages / Vercel | no local equivalent — CI only; carries `preview` |
72
+ | `delivery.bundleSize` | bundle-size upload to Codecov | no local equivalent — CI only |
73
+ | `delivery.previewCheck` | `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` |
74
+ | `platform.notifyCheck` | _(none — manual workflow)_ | posts a labelled test message to every notification channel; fails per channel that does not work |
75
+ | `platform.repoSync` | `holocron repo sync` | keeps generated files current |
76
+ | `platform.commitStandards` | commitlint | no local equivalent — enforced by the `commit-msg` hook locally, over the PR's commit range in CI |
77
+ | `platform.repoValidation` | `scripts/validate-adrs.mjs`, `scripts/validate-docs-presence.mjs` | a job-bearing task — spec/ADR frontmatter and docs-presence, not linters |
78
+ | `knowledge.wiki` | Fern | publishes `docs/wiki/*.md` — not a sync, a publish; carries `preview` |
79
+ | `knowledge.docs` | Astro build | the docs site itself; carries `preview` (defaults on) |
80
+ | `knowledge.components` | Storybook build | a browsable component catalog — "Storybook" is the tool, not the intent; carries `preview` (defaults on) |
80
81
 
81
82
  **`preview` is a cross-cutting feature, not a namespace.** npm has staging
82
83
  dist-tags, Cloudflare/Vercel do per-PR preview deploys, Fern previews
package/dist/index.mjs CHANGED
@@ -433,6 +433,8 @@ var review_default$1 = "name: Review\n\n# ReviewDog is the annotation layer —
433
433
  var security_codeScanning_default$1 = "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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0\n name: Initialize CodeQL\n with:\n languages: ${{ inputs.language }}\n\n - uses: github/codeql-action/autobuild@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0\n name: Autobuild\n\n - uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0\n name: Analyze\n with:\n category: /language:${{ inputs.language }}\n";
434
434
  // src/templates/reusable/security.secretDetection.yml
435
435
  var security_secretDetection_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.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\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: security.secretDetection\n";
436
+ // src/templates/reusable/security.tokenExpiry.yml
437
+ var security_tokenExpiry_default$1 = "name: Token Expiry\n\n# Runs `holocron doctor tokens` on a schedule, so a token that has been rejected or is about to expire (7 days or\n# fewer left) fails this job and GitHub's failed-workflow notification reaches the team before an operation breaks.\n#\n# Daily, not weekly: the warning window is 7 days, so a weekly run could land just outside it and the next one just\n# after the token lapsed. A daily run fails every day inside the window, which keeps the reminder in view until the\n# token is renewed.\n#\n# A token that is not set is skipped, not a failure, so a repo passes only the secrets it uses. Secrets reach the\n# job through `secrets: inherit`; the declared list below is for callers that pass them explicitly.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n HOLOCRON_READ_TOKEN:\n description: Fine-grained token for reading repos and Actions runs.\n required: false\n HOLOCRON_ISSUES_TOKEN:\n description: Fine-grained token for issues.\n required: false\n HOLOCRON_SYNC_TOKEN:\n description: Fine-grained token for `sync github`.\n required: false\n HOLOCRON_RELEASE_TOKEN:\n description: Fine-grained token for releases.\n required: false\n HOLOCRON_ADMIN_TOKEN:\n description: Fine-grained token for repo settings.\n required: false\n HOLOCRON_SECRETS_TOKEN:\n description: Fine-grained organization token for organization secrets.\n required: false\n HOLOCRON_DEPLOY_TOKEN:\n description: Fine-grained token for GitHub Pages.\n required: false\n HOLOCRON_ORG_TOKEN:\n description: Fine-grained organization token for teams and organization variables.\n required: false\n HOLOCRON_USER_SYNC_TOKEN:\n description: Fine-grained token for the account links files.\n required: false\n\njobs:\n token-expiry:\n name: Run holocron doctor tokens\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n HOLOCRON_READ_TOKEN: ${{ secrets.HOLOCRON_READ_TOKEN }}\n HOLOCRON_ISSUES_TOKEN: ${{ secrets.HOLOCRON_ISSUES_TOKEN }}\n HOLOCRON_SYNC_TOKEN: ${{ secrets.HOLOCRON_SYNC_TOKEN }}\n HOLOCRON_RELEASE_TOKEN: ${{ secrets.HOLOCRON_RELEASE_TOKEN }}\n HOLOCRON_ADMIN_TOKEN: ${{ secrets.HOLOCRON_ADMIN_TOKEN }}\n HOLOCRON_SECRETS_TOKEN: ${{ secrets.HOLOCRON_SECRETS_TOKEN }}\n HOLOCRON_DEPLOY_TOKEN: ${{ secrets.HOLOCRON_DEPLOY_TOKEN }}\n HOLOCRON_ORG_TOKEN: ${{ secrets.HOLOCRON_ORG_TOKEN }}\n HOLOCRON_USER_SYNC_TOKEN: ${{ secrets.HOLOCRON_USER_SYNC_TOKEN }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\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: Run holocron doctor tokens\n with:\n task: security.tokenExpiry\n";
436
438
  // src/templates/reusable/sourceQuality.deadCodeAnalysis.yml
437
439
  var sourceQuality_deadCodeAnalysis_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.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\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: sourceQuality.deadCodeAnalysis\n";
438
440
  // src/templates/reusable/sourceQuality.formatting.yml
@@ -495,6 +497,8 @@ var review_default = "name: Source Quality\n\non: # yamllint disable-line rule:t
495
497
  var security_codeScanning_default = "name: Security\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 security:\n name: Code Scanning\n uses: theholocron/.github/.github/workflows/security.codeScanning.yml@main\n secrets: inherit\n";
496
498
  // src/templates/workflows/security.secretDetection.yml
497
499
  var security_secretDetection_default = "name: Security\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\nconcurrency:\n group: security-secret-detection-${{ github.ref }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n\njobs:\n secret-detection:\n name: Secret Detection\n uses: theholocron/.github/.github/workflows/security.secretDetection.yml@main\n secrets: inherit\n";
500
+ // src/templates/workflows/security.tokenExpiry.yml
501
+ var security_tokenExpiry_default = "name: Token Expiry\n\non: # yamllint disable-line rule:truthy\n schedule:\n - cron: \"17 6 * * *\"\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n token-expiry:\n name: Token Expiry\n uses: theholocron/.github/.github/workflows/security.tokenExpiry.yml@main\n secrets: inherit\n";
498
502
  // src/templates/workflows/sourceQuality.deadCodeAnalysis.yml
499
503
  var sourceQuality_deadCodeAnalysis_default = "name: Source Quality\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n dead-code-analysis:\n name: Dead Code Analysis\n uses: theholocron/.github/.github/workflows/sourceQuality.deadCodeAnalysis.yml@main\n secrets: inherit\n";
500
504
  // src/templates/workflows/sourceQuality.formatting.yml
@@ -701,6 +705,7 @@ const WORKFLOW_TEMPLATES = {
701
705
  "sourceQuality.deadCodeAnalysis": sourceQuality_deadCodeAnalysis_default,
702
706
  "security.secretDetection": security_secretDetection_default,
703
707
  "security.codeScanning": security_codeScanning_default,
708
+ "security.tokenExpiry": security_tokenExpiry_default,
704
709
  "delivery.build": delivery_build_default,
705
710
  "delivery.publish": delivery_publish_default,
706
711
  "delivery.deploy": delivery_deploy_default,
@@ -1046,6 +1051,7 @@ const REUSABLE_WORKFLOWS = {
1046
1051
  preview: preview_default$1,
1047
1052
  greetings: greetings_default$1,
1048
1053
  review: review_default$1,
1054
+ "security.tokenExpiry": security_tokenExpiry_default$1,
1049
1055
  stale: stale_default$1,
1050
1056
  "sync-dispatch": sync_dispatch_default,
1051
1057
  tag: tag_default,
@@ -1211,6 +1217,7 @@ const TASKS = {
1211
1217
  linterGroup: ["gitleaks"]
1212
1218
  },
1213
1219
  "security.codeScanning": { local: null },
1220
+ "security.tokenExpiry": { local: { command: "doctor tokens" } },
1214
1221
  "delivery.build": {
1215
1222
  local: { detect: [
1216
1223
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.267",
3
+ "version": "5.0.0-alpha.269",
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",
@@ -50,10 +50,10 @@
50
50
  "@commitlint/lint": "^21.2.3",
51
51
  "@commitlint/load": "^21.2.3",
52
52
  "@commitlint/types": "^21.2.3",
53
- "@theholocron/datapad": "5.0.0-alpha.267",
53
+ "@theholocron/datapad": "5.0.0-alpha.269",
54
+ "@theholocron/pkg-utils": "^1.16.1-alpha.1",
54
55
  "@theholocron/fs-utils": "^1.16.1-alpha.1",
55
- "@theholocron/json-utils": "^1.16.1-alpha.1",
56
- "@theholocron/pkg-utils": "^1.16.1-alpha.1"
56
+ "@theholocron/json-utils": "^1.16.1-alpha.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@commitlint/config-conventional": "^21.2.3",
@@ -71,11 +71,11 @@
71
71
  "vitest": "^5.0.5",
72
72
  "@theholocron/commitlint-config": "^8.9.0-alpha.3",
73
73
  "@theholocron/semantic-release-config": "^8.9.0-alpha.3",
74
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.3",
75
74
  "@theholocron/eslint-config": "^8.9.0-alpha.3",
75
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.3",
76
+ "@theholocron/tsconfig": "^8.9.0-alpha.3",
76
77
  "@theholocron/tsdown-config": "^8.9.0-alpha.3",
77
- "@theholocron/vitest-config": "^8.9.0-alpha.3",
78
- "@theholocron/tsconfig": "^8.9.0-alpha.3"
78
+ "@theholocron/vitest-config": "^8.9.0-alpha.3"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@semantic-release/commit-analyzer": "^13",