@theholocron/cli 4.9.0 → 4.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -146,7 +146,7 @@ interface RepoConfig {
146
146
  * no protection is applied and no `branch_protection_level` property is set.
147
147
  * Required-status-check contexts for `"strict"` are derived from the task
148
148
  * manifest — `{ required: true }` tasks + top-level `extraRequiredChecks`
149
- * (see `astro.requiredChecks()`).
149
+ * (see `astromech.requiredChecks()`).
150
150
  */
151
151
  protection?: RepoProtection;
152
152
  /**
@@ -386,9 +386,18 @@ interface HolocronConfig {
386
386
  /**
387
387
  * Required status-check contexts not backed by a `required` task (codecov
388
388
  * gates, the bundle-build check, …). `holocron setup` appends these to the
389
- * task-derived list from `astro.requiredChecks()`.
389
+ * task-derived list from `astromech.requiredChecks()`.
390
390
  */
391
391
  extraRequiredChecks?: string[];
392
+ /**
393
+ * Git hooks `holocron setup` installs. `true` / `{ prePush: true }` writes
394
+ * `.husky/pre-push` (runs `holocron ci` before every push); `false` /
395
+ * `{ prePush: false }` opts out. Omitted → on for `protection: "strict"`,
396
+ * off otherwise. `--hooks` / `--no-hooks` on `holocron setup` override.
397
+ */
398
+ hooks?: boolean | {
399
+ prePush?: boolean;
400
+ };
392
401
  providers: RawProvidersConfig;
393
402
  apps?: AppConfig[];
394
403
  doctor?: DoctorConfig;
@@ -461,6 +470,9 @@ interface ResolvedHolocronConfig {
461
470
  syncScripts?: boolean;
462
471
  holocronScript?: string;
463
472
  extraRequiredChecks?: string[];
473
+ hooks?: boolean | {
474
+ prePush?: boolean;
475
+ };
464
476
  providers: ResolvedProvidersConfig;
465
477
  apps: AppConfig[];
466
478
  doctor: DoctorConfig;
@@ -499,7 +511,7 @@ interface Capability {
499
511
  * Required status-check contexts **not** backed by a `required` task
500
512
  * (codecov gates, `Storybook Publish`, …). Unioned across all capabilities
501
513
  * onto the top-level `extraRequiredChecks`. Task-backed checks come from
502
- * `{ required: true }` task entries via `astro.requiredChecks()`.
514
+ * `{ required: true }` task entries via `astromech.requiredChecks()`.
503
515
  */
504
516
  extraRequiredChecks?: string[];
505
517
  /** Repo config fragment. Scalar fields: last writer wins. properties/topics/teams: merged. */
package/dist/index.mjs CHANGED
@@ -207,6 +207,7 @@ function resolveConfig(raw) {
207
207
  syncScripts: raw.syncScripts,
208
208
  holocronScript: raw.holocronScript,
209
209
  extraRequiredChecks: raw.extraRequiredChecks,
210
+ hooks: raw.hooks,
210
211
  providers,
211
212
  apps: raw.apps ?? [],
212
213
  doctor: raw.doctor ?? {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "4.9.0",
3
+ "version": "4.10.1",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -52,9 +52,9 @@
52
52
  "ora": "^9.4.1",
53
53
  "posthog-node": "^5.51.6",
54
54
  "yargs": "^18.1.0",
55
- "@theholocron/astromech": "4.9.0",
56
- "@theholocron/datapad": "4.9.0",
57
- "@theholocron/logger": "4.9.0"
55
+ "@theholocron/astromech": "4.10.1",
56
+ "@theholocron/logger": "4.10.1",
57
+ "@theholocron/datapad": "4.10.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@theholocron/eslint-config": "^8.0.0",
@@ -71,7 +71,7 @@
71
71
  "tsx": "4.23.12",
72
72
  "typescript": "^5.9.3",
73
73
  "vitest": "^4.1.11",
74
- "@theholocron/rollup-plugin-transform-template": "4.9.0"
74
+ "@theholocron/rollup-plugin-transform-template": "4.10.1"
75
75
  },
76
76
  "engines": {
77
77
  "node": ">=22.0.0"