@theholocron/astromech 5.1.1 → 5.1.3
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 +5 -40
- package/dist/index.mjs +152 -593
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -302,27 +302,13 @@ export declare const DOT_GITHUB_REPO = "theholocron/.github";
|
|
|
302
302
|
export declare const HOLOCRON_REPO = "theholocron/holocron";
|
|
303
303
|
/** How the templates spell a reference. Never emitted as it is, and never to be changed: {@link rehome} reads it. */
|
|
304
304
|
export declare const TEMPLATE_HOME: CiHome;
|
|
305
|
-
/**
|
|
306
|
-
* Whether a caller that calls its reusables at `home` keeps the names it had before they became the task id (the
|
|
307
|
-
* legacy-name gate): while 'home' is the frozen copies on `main`, the callers of a repo other than the one that hosts
|
|
308
|
-
* the reusables keep their old workflow, job and file names, because their rulesets list the checks those post. `ci-v1`
|
|
309
|
-
* has only flat names, so the gate is open there and every caller is flat (spec `ci-flat-task-vocabulary`, phase K).
|
|
310
|
-
*/
|
|
311
|
-
export declare function legacyGate(home?: CiHome): boolean;
|
|
312
305
|
/**
|
|
313
306
|
* `text` with every reference to a hosted reusable workflow at `home` rewritten to the file in the same checkout
|
|
314
|
-
* (`./.github/workflows/<name>.yml
|
|
307
|
+
* (`./.github/workflows/<name>.yml`). For the repo that serves the reusables: its own callers then run the reusable at
|
|
315
308
|
* their own commit, so a PR that edits one exercises it. Composite actions are left on their full ref, because a
|
|
316
309
|
* reusable called from another repository cannot see this checkout.
|
|
317
310
|
*/
|
|
318
311
|
export declare function localize(text: string, home?: CiHome): string;
|
|
319
|
-
/**
|
|
320
|
-
* `text` with each reference to a hosted composite action in `names` at `home` rewritten to its folder in the same
|
|
321
|
-
* checkout (`./ci/actions/<name>`). For the written copy of a reusable in the repo that hosts it, which only that
|
|
322
|
-
* repo's own callers run: a change to the action then takes effect at the PR's own commit, instead of waiting for
|
|
323
|
-
* the frozen copy in `theholocron/.github` that `home` still names. An action not in `names` keeps its full ref.
|
|
324
|
-
*/
|
|
325
|
-
export declare function localizeActions(text: string, names: readonly string[], home?: CiHome): string;
|
|
326
312
|
/**
|
|
327
313
|
* How strictly a repo enforces doc-comment coverage of its public API (`repoValidation.docsCoverage`, spec
|
|
328
314
|
* `tech-api-docs`): `off` (the default) does nothing, `warn` reports without failing and posts informational Codecov
|
|
@@ -1480,25 +1466,11 @@ export declare function isTask(name: string, id: string): boolean;
|
|
|
1480
1466
|
* old dotted names that are still accepted. What a config validator checks a `tasks:` entry against.
|
|
1481
1467
|
*/
|
|
1482
1468
|
export declare const KNOWN_TASKS: ReadonlySet<string>;
|
|
1483
|
-
/**
|
|
1484
|
-
* The thin caller `yaml` of task `id` spelled with the names it had before they became the task id: the old workflow
|
|
1485
|
-
* `name:` and the old id and `name:` of each job. This is the legacy-name gate (spec `ci-flat-task-vocabulary`, phase
|
|
1486
|
-
* F): a repo whose callers still call the frozen reusables in `theholocron/.github` keeps the checks its ruleset lists,
|
|
1487
|
-
* so only the repo that hosts the reusables (and, later, every repo once `CI_HOME` is `ci-v1`) gets the flat names.
|
|
1488
|
-
* An id with no old spelling is returned as it is. Only a job `name:` that is the id is rewritten, so a name a caller
|
|
1489
|
-
* builds itself (the grouped release's matrix name) is left to the entry's `replace`.
|
|
1490
|
-
*/
|
|
1491
|
-
export declare function legacyCaller(id: string, yaml: string): string;
|
|
1492
|
-
/**
|
|
1493
|
-
* The file name a thin caller of task `id` has while callers are legacy-named (see `legacyCaller`): the old task name
|
|
1494
|
-
* and `.yml`, `verification.unitTests.yml` for `test:unit`. An id with no old name (`preview`) keeps its own.
|
|
1495
|
-
*/
|
|
1496
|
-
export declare function legacyCallerFile(id: string): string;
|
|
1497
1469
|
/**
|
|
1498
1470
|
* The old file name of a flat reusable workflow — `test-unit.yml` is `verification.unitTests.yml`. The frozen copies in
|
|
1499
|
-
* `theholocron/.github` keep the old names and exist only there, so
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1471
|
+
* `theholocron/.github` keep the old names and exist only there, so the path of a frozen copy, and of a workflow that
|
|
1472
|
+
* is still dispatched there by name, is spelled with it (spec `ci-flat-task-vocabulary`). A file with no old name
|
|
1473
|
+
* (`preview.yml`, `ci.yml`) is returned as it is.
|
|
1502
1474
|
*/
|
|
1503
1475
|
export declare function legacyFile(file: string): string;
|
|
1504
1476
|
/**
|
|
@@ -1508,13 +1480,6 @@ export declare function legacyFile(file: string): string;
|
|
|
1508
1480
|
* `format` and the other formatting successors share the formatting workflow's name.
|
|
1509
1481
|
*/
|
|
1510
1482
|
export declare function legacyName(id: string): string | undefined;
|
|
1511
|
-
/**
|
|
1512
|
-
* The key of the workflow that carries `name` in a repo that still calls the frozen reusables in `theholocron/.github`
|
|
1513
|
-
* (the legacy-name gate): a flat id that shared an old workflow with others (`lint:markdown` and `format` with
|
|
1514
|
-
* `lint:editorconfig`, the old `sourceQuality.formatting`) maps to the first of them, because only that one has a
|
|
1515
|
-
* frozen reusable. Every other name is its own key, an old name mapping to its first successor.
|
|
1516
|
-
*/
|
|
1517
|
-
export declare function legacyWorkflowKey(name: string): string;
|
|
1518
1483
|
/**
|
|
1519
1484
|
* Script names npm and pnpm give a meaning of their own, so no task may be named like one (spec
|
|
1520
1485
|
* `ci-flat-task-vocabulary`, "npm lifecycle and package-manager names"): `pnpm publish` runs a script called `publish`
|
|
@@ -1562,7 +1527,7 @@ export declare function taskKey(name: string, id: string): string;
|
|
|
1562
1527
|
* the workflow that carries it. A flat id is its own key; an old name maps to the first id that replaced it
|
|
1563
1528
|
* (`sourceQuality.formatting` is `lint:editorconfig`); a task with no workflow of its own maps to the workflow that
|
|
1564
1529
|
* runs its check (`format` is `lint:code`, see `TaskDef.host`); a name with no old name (`preview`, an unknown one) is
|
|
1565
|
-
* its own key.
|
|
1530
|
+
* its own key.
|
|
1566
1531
|
*/
|
|
1567
1532
|
export declare function workflowKey(name: string): string;
|
|
1568
1533
|
/**
|