@theholocron/cli 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +31 -11
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +13 -7
- package/dist/index.mjs +5 -7
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -144,10 +144,11 @@ interface RepoConfig {
|
|
|
144
144
|
/**
|
|
145
145
|
* Branch protection preset applied by `holocron setup`. When omitted,
|
|
146
146
|
* no protection is applied and no `branch_protection_level` property is set.
|
|
147
|
+
* Required-status-check contexts for `"strict"` are derived from the task
|
|
148
|
+
* manifest — `{ required: true }` tasks + top-level `extraRequiredChecks`
|
|
149
|
+
* (see `astro.requiredChecks()`).
|
|
147
150
|
*/
|
|
148
151
|
protection?: RepoProtection;
|
|
149
|
-
/** CI check context names required on the default branch (only used when `protection` is "strict"). */
|
|
150
|
-
requiredChecks?: string[];
|
|
151
152
|
/**
|
|
152
153
|
* GitHub teams granted repository access. Synced by `holocron setup`, which
|
|
153
154
|
* also writes `.github/CODEOWNERS` for teams with write-or-higher permission.
|
|
@@ -494,8 +495,13 @@ interface Capability {
|
|
|
494
495
|
tasks?: TaskEntry[];
|
|
495
496
|
/** Provider config. Shallow-merged at the top level; later capabilities override per-key. */
|
|
496
497
|
providers?: RawProvidersConfig;
|
|
497
|
-
/**
|
|
498
|
-
|
|
498
|
+
/**
|
|
499
|
+
* Required status-check contexts **not** backed by a `required` task
|
|
500
|
+
* (codecov gates, `Storybook Publish`, …). Unioned across all capabilities
|
|
501
|
+
* onto the top-level `extraRequiredChecks`. Task-backed checks come from
|
|
502
|
+
* `{ required: true }` task entries via `astro.requiredChecks()`.
|
|
503
|
+
*/
|
|
504
|
+
extraRequiredChecks?: string[];
|
|
499
505
|
/** Repo config fragment. Scalar fields: last writer wins. properties/topics/teams: merged. */
|
|
500
506
|
repo?: Partial<Omit<RepoConfig, "name">>;
|
|
501
507
|
/** Org name. Last writer wins. */
|
|
@@ -509,9 +515,9 @@ interface Capability {
|
|
|
509
515
|
interface ComposedPreset {
|
|
510
516
|
tasks: TaskEntry[];
|
|
511
517
|
providers: RawProvidersConfig;
|
|
512
|
-
repo: Partial<Omit<RepoConfig, "name"
|
|
513
|
-
|
|
514
|
-
|
|
518
|
+
repo: Partial<Omit<RepoConfig, "name">>;
|
|
519
|
+
/** Non-task required-check contexts, unioned across capabilities. */
|
|
520
|
+
extraRequiredChecks: string[];
|
|
515
521
|
org?: string;
|
|
516
522
|
domain?: string;
|
|
517
523
|
docs?: DocsConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -260,10 +260,10 @@ function compose(...args) {
|
|
|
260
260
|
...cap.providers
|
|
261
261
|
};
|
|
262
262
|
const checksSeen = /* @__PURE__ */ new Set();
|
|
263
|
-
const
|
|
264
|
-
for (const cap of caps) for (const check of cap.
|
|
263
|
+
const extraRequiredChecks = [];
|
|
264
|
+
for (const cap of caps) for (const check of cap.extraRequiredChecks ?? []) if (!checksSeen.has(check)) {
|
|
265
265
|
checksSeen.add(check);
|
|
266
|
-
|
|
266
|
+
extraRequiredChecks.push(check);
|
|
267
267
|
}
|
|
268
268
|
let repo = {};
|
|
269
269
|
for (const cap of caps) {
|
|
@@ -298,10 +298,8 @@ function compose(...args) {
|
|
|
298
298
|
return {
|
|
299
299
|
tasks: [...taskMap.values()],
|
|
300
300
|
providers,
|
|
301
|
-
repo
|
|
302
|
-
|
|
303
|
-
requiredChecks
|
|
304
|
-
},
|
|
301
|
+
repo,
|
|
302
|
+
extraRequiredChecks,
|
|
305
303
|
...org !== void 0 ? { org } : {},
|
|
306
304
|
...domain !== void 0 ? { domain } : {},
|
|
307
305
|
...docs !== void 0 ? { docs } : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
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.
|
|
56
|
-
"@theholocron/
|
|
57
|
-
"@theholocron/
|
|
55
|
+
"@theholocron/astromech": "4.9.0",
|
|
56
|
+
"@theholocron/datapad": "4.9.0",
|
|
57
|
+
"@theholocron/logger": "4.9.0"
|
|
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.
|
|
74
|
+
"@theholocron/rollup-plugin-transform-template": "4.9.0"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=22.0.0"
|