@theholocron/astromech 5.0.0-alpha.421 → 5.0.0-alpha.423
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 +9 -9
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +19 -12
- package/dist/index.mjs +38 -29
- package/dist/lint/index.d.mts +6 -6
- package/dist/lint/index.mjs +6 -6
- package/dist/{load-BWX_CDp6.mjs → load-BpZu8IZr.mjs} +2 -2
- package/dist/repo-validation/index.d.mts +2 -2
- package/dist/repo-validation/index.mjs +3 -3
- package/dist/{schema.type-BfeI4AnM.d.mts → schema.type-DRfLKO70.d.mts} +2 -2
- package/package.json +10 -10
package/dist/lint/index.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import { QualifiedConfig } from "@commitlint/types";
|
|
|
2
2
|
/**
|
|
3
3
|
* The org's canonical `alex` (inclusive-language) config, as raw parsed
|
|
4
4
|
* data rather than the pre-rendered file strings `createRcConfig()`/
|
|
5
|
-
* `createIgnoreConfig()` produce for `holocron
|
|
5
|
+
* `createIgnoreConfig()` produce for `holocron setup` to write into a
|
|
6
6
|
* repo's own `.alexrc.json`/`.alexignore`.
|
|
7
7
|
*
|
|
8
|
-
* `.alexrc.json` is explicitly "generated by `holocron
|
|
8
|
+
* `.alexrc.json` is explicitly "generated by `holocron setup` — do not
|
|
9
9
|
* edit manually" (this repo's own `AGENTS.md`) — the real source of truth
|
|
10
10
|
* is this JSON file, one canonical copy, not each repo's synced one. A
|
|
11
11
|
* central Sentinel check (holocron#769/#793) reads it directly rather
|
|
@@ -15,7 +15,7 @@ import { QualifiedConfig } from "@commitlint/types";
|
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* The org's canonical `alex` (inclusive-language) config as data: the words it allows, from the one JSON file
|
|
18
|
-
* `holocron
|
|
18
|
+
* `holocron setup` writes into each repo's `.alexrc.json`.
|
|
19
19
|
*/
|
|
20
20
|
export declare const ALEX_CONFIG: {
|
|
21
21
|
/** The words `alex` accepts despite its default rules. */
|
|
@@ -25,7 +25,7 @@ export declare const ALEX_CONFIG: {
|
|
|
25
25
|
* Glob-ish path patterns `alex` skips. Kept as a literal here rather than
|
|
26
26
|
* importing `../templates/configs/alexjs/alexignore` directly — that file
|
|
27
27
|
* (like `commit-msg`/`pre-push`) is deliberately extensionless, matching
|
|
28
|
-
* the real filename `holocron
|
|
28
|
+
* the real filename `holocron setup` writes, which ECMAScript's own
|
|
29
29
|
* module resolution (`moduleResolution: "nodenext"`) can't import across
|
|
30
30
|
* a package boundary without an extension. Keep in sync with that file by
|
|
31
31
|
* hand; it changes rarely.
|
|
@@ -33,7 +33,7 @@ export declare const ALEX_CONFIG: {
|
|
|
33
33
|
export declare const ALEX_IGNORE_PATTERNS: string[];
|
|
34
34
|
/**
|
|
35
35
|
* The paths editorconfig-checker skips, read from the same
|
|
36
|
-
* `editorconfig-checker.json` template `holocron
|
|
36
|
+
* `editorconfig-checker.json` template `holocron setup` writes as a repo's
|
|
37
37
|
* `.editorconfig-checker.json` — so Sentinel's central editorconfig check
|
|
38
38
|
* (holocron#927) excludes exactly what CI's editorconfig-checker does, from
|
|
39
39
|
* one source.
|
|
@@ -49,7 +49,7 @@ export declare const ALEX_IGNORE_PATTERNS: string[];
|
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
51
|
* The paths editorconfig-checker skips, as regular-expression sources matched against a repo-relative path; the
|
|
52
|
-
* list `holocron
|
|
52
|
+
* list `holocron setup` writes into `.editorconfig-checker.json`.
|
|
53
53
|
*/
|
|
54
54
|
export declare const EDITORCONFIG_CHECKER_EXCLUDE: readonly string[];
|
|
55
55
|
/** `true` when `path` matches any {@link EDITORCONFIG_CHECKER_EXCLUDE} pattern. */
|
package/dist/lint/index.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import lint from "@commitlint/lint";
|
|
|
6
6
|
/**
|
|
7
7
|
* The org's canonical `alex` (inclusive-language) config, as raw parsed
|
|
8
8
|
* data rather than the pre-rendered file strings `createRcConfig()`/
|
|
9
|
-
* `createIgnoreConfig()` produce for `holocron
|
|
9
|
+
* `createIgnoreConfig()` produce for `holocron setup` to write into a
|
|
10
10
|
* repo's own `.alexrc.json`/`.alexignore`.
|
|
11
11
|
*
|
|
12
|
-
* `.alexrc.json` is explicitly "generated by `holocron
|
|
12
|
+
* `.alexrc.json` is explicitly "generated by `holocron setup` — do not
|
|
13
13
|
* edit manually" (this repo's own `AGENTS.md`) — the real source of truth
|
|
14
14
|
* is this JSON file, one canonical copy, not each repo's synced one. A
|
|
15
15
|
* central Sentinel check (holocron#769/#793) reads it directly rather
|
|
@@ -19,7 +19,7 @@ import lint from "@commitlint/lint";
|
|
|
19
19
|
*/
|
|
20
20
|
/**
|
|
21
21
|
* The org's canonical `alex` (inclusive-language) config as data: the words it allows, from the one JSON file
|
|
22
|
-
* `holocron
|
|
22
|
+
* `holocron setup` writes into each repo's `.alexrc.json`.
|
|
23
23
|
*/
|
|
24
24
|
const ALEX_CONFIG = alexrc_default;
|
|
25
25
|
// src/lint/alex-ignore-patterns/alex-ignore-patterns.ts
|
|
@@ -27,7 +27,7 @@ const ALEX_CONFIG = alexrc_default;
|
|
|
27
27
|
* Glob-ish path patterns `alex` skips. Kept as a literal here rather than
|
|
28
28
|
* importing `../templates/configs/alexjs/alexignore` directly — that file
|
|
29
29
|
* (like `commit-msg`/`pre-push`) is deliberately extensionless, matching
|
|
30
|
-
* the real filename `holocron
|
|
30
|
+
* the real filename `holocron setup` writes, which ECMAScript's own
|
|
31
31
|
* module resolution (`moduleResolution: "nodenext"`) can't import across
|
|
32
32
|
* a package boundary without an extension. Keep in sync with that file by
|
|
33
33
|
* hand; it changes rarely.
|
|
@@ -40,7 +40,7 @@ const ALEX_IGNORE_PATTERNS = [
|
|
|
40
40
|
// src/lint/editorconfig-checker-exclude/editorconfig-checker-exclude.ts
|
|
41
41
|
/**
|
|
42
42
|
* The paths editorconfig-checker skips, read from the same
|
|
43
|
-
* `editorconfig-checker.json` template `holocron
|
|
43
|
+
* `editorconfig-checker.json` template `holocron setup` writes as a repo's
|
|
44
44
|
* `.editorconfig-checker.json` — so Sentinel's central editorconfig check
|
|
45
45
|
* (holocron#927) excludes exactly what CI's editorconfig-checker does, from
|
|
46
46
|
* one source.
|
|
@@ -56,7 +56,7 @@ const ALEX_IGNORE_PATTERNS = [
|
|
|
56
56
|
*/
|
|
57
57
|
/**
|
|
58
58
|
* The paths editorconfig-checker skips, as regular-expression sources matched against a repo-relative path; the
|
|
59
|
-
* list `holocron
|
|
59
|
+
* list `holocron setup` writes into `.editorconfig-checker.json`.
|
|
60
60
|
*/
|
|
61
61
|
const EDITORCONFIG_CHECKER_EXCLUDE = editorconfig_checker_default.Exclude;
|
|
62
62
|
// src/lint/is-editorconfig-excluded/is-editorconfig-excluded.ts
|
|
@@ -334,12 +334,12 @@ const TASKS = {
|
|
|
334
334
|
"reconcile-projects": {
|
|
335
335
|
group: "Platform",
|
|
336
336
|
scope: "repo",
|
|
337
|
-
local: { command: "project
|
|
337
|
+
local: { command: "reconcile project" }
|
|
338
338
|
},
|
|
339
339
|
"sync-specs": {
|
|
340
340
|
group: "Knowledge",
|
|
341
341
|
scope: "repo",
|
|
342
|
-
local: { command: "specs
|
|
342
|
+
local: { command: "sync specs" }
|
|
343
343
|
},
|
|
344
344
|
"preview-specs": {
|
|
345
345
|
group: "Knowledge",
|
|
@@ -286,13 +286,13 @@ export declare function updateFrontmatter(text: string, changes: FrontmatterChan
|
|
|
286
286
|
/**
|
|
287
287
|
* The findings for one ADR's text. Errors: no frontmatter; a missing `id`, or one that is not `ADR-<the filename's
|
|
288
288
|
* four-digit prefix>`; a missing or empty `title`; a missing or unknown `status`; a missing or malformed `date`. A
|
|
289
|
-
* warning: an `accepted` ADR with no `discussion.url`, the address of its discussion post, which `holocron specs
|
|
289
|
+
* warning: an `accepted` ADR with no `discussion.url`, the address of its discussion post, which `holocron sync specs`
|
|
290
290
|
* writes. A GitHub Discussion link does not count.
|
|
291
291
|
*/
|
|
292
292
|
export declare function validateAdr(file: string, content: string): SpecFinding[];
|
|
293
293
|
/**
|
|
294
294
|
* The findings for one spec's text. Errors: no frontmatter; a missing or unknown `status`; an `id` that is not
|
|
295
|
-
* `SPEC-` and four digits. Warnings: a missing `id` (`holocron specs
|
|
295
|
+
* `SPEC-` and four digits. Warnings: a missing `id` (`holocron sync specs` numbers it, so a new spec needs none); a missing
|
|
296
296
|
* `issue` (every spec has a companion GitHub issue), except on an `archived` or `superseded` spec, many of which
|
|
297
297
|
* predate the issue-first process.
|
|
298
298
|
*/
|
|
@@ -204,7 +204,7 @@ function isValidIsoDate(value) {
|
|
|
204
204
|
/**
|
|
205
205
|
* The findings for one ADR's text. Errors: no frontmatter; a missing `id`, or one that is not `ADR-<the filename's
|
|
206
206
|
* four-digit prefix>`; a missing or empty `title`; a missing or unknown `status`; a missing or malformed `date`. A
|
|
207
|
-
* warning: an `accepted` ADR with no `discussion.url`, the address of its discussion post, which `holocron specs
|
|
207
|
+
* warning: an `accepted` ADR with no `discussion.url`, the address of its discussion post, which `holocron sync specs`
|
|
208
208
|
* writes. A GitHub Discussion link does not count.
|
|
209
209
|
*/
|
|
210
210
|
function validateAdr(file, content) {
|
|
@@ -241,7 +241,7 @@ function validateAdr(file, content) {
|
|
|
241
241
|
// src/repo-validation/specs/validate-spec/validate-spec.ts
|
|
242
242
|
/**
|
|
243
243
|
* The findings for one spec's text. Errors: no frontmatter; a missing or unknown `status`; an `id` that is not
|
|
244
|
-
* `SPEC-` and four digits. Warnings: a missing `id` (`holocron specs
|
|
244
|
+
* `SPEC-` and four digits. Warnings: a missing `id` (`holocron sync specs` numbers it, so a new spec needs none); a missing
|
|
245
245
|
* `issue` (every spec has a companion GitHub issue), except on an `archived` or `superseded` spec, many of which
|
|
246
246
|
* predate the issue-first process.
|
|
247
247
|
*/
|
|
@@ -275,7 +275,7 @@ function validateSpec(file, content) {
|
|
|
275
275
|
file,
|
|
276
276
|
line: 1,
|
|
277
277
|
rule: "id",
|
|
278
|
-
reason: "missing `id` — `holocron specs
|
|
278
|
+
reason: "missing `id` — `holocron sync specs` numbers a spec once it is on the default branch",
|
|
279
279
|
severity: "warning"
|
|
280
280
|
});
|
|
281
281
|
else if (!/^SPEC-\d{4,}$/.test(id.value)) findings.push({
|
|
@@ -71,11 +71,11 @@ interface TasksConfig {
|
|
|
71
71
|
/**
|
|
72
72
|
* Required status-check contexts not backed by a task — codecov gates,
|
|
73
73
|
* a bundle-build check, … Appended to `astromech.requiredChecks()` after the
|
|
74
|
-
* `required`-task contexts. (`DCO` is prepended by `holocron
|
|
74
|
+
* `required`-task contexts. (`DCO` is prepended by `holocron setup` itself.)
|
|
75
75
|
*/
|
|
76
76
|
extraRequiredChecks?: string[];
|
|
77
77
|
/**
|
|
78
|
-
* Git hooks `holocron
|
|
78
|
+
* Git hooks `holocron setup` installs. `true` / `{ prePush: true }` writes
|
|
79
79
|
* `.husky/pre-push` (runs `holocron run ci`); `false` / `{ prePush: false }`
|
|
80
80
|
* opts out. Omitted → on for `protection: "strict"` repos, off otherwise.
|
|
81
81
|
* When enabled, `packageScripts()` also emits `prepare: "husky"`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/astromech",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.423",
|
|
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.
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.423",
|
|
59
59
|
"@theholocron/fs-utils": "^1.17.0-alpha.4",
|
|
60
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.4",
|
|
60
61
|
"@theholocron/json-utils": "^1.17.0-alpha.4",
|
|
61
|
-
"@theholocron/pkg-utils": "^1.17.0-alpha.4"
|
|
62
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.4"
|
|
62
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.4"
|
|
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/
|
|
78
|
-
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.
|
|
79
|
-
"@theholocron/
|
|
80
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.
|
|
81
|
-
"@theholocron/
|
|
82
|
-
"@theholocron/
|
|
77
|
+
"@theholocron/commitlint-config": "^8.9.0-alpha.17",
|
|
78
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.17",
|
|
79
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.17",
|
|
80
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.17",
|
|
81
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.17",
|
|
82
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.17"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=22"
|