@antelopejs/tooling-configs 0.2.19 → 0.3.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.
@@ -100,13 +100,11 @@ function staleNeeds(document, path) {
100
100
  //#endregion
101
101
  //#region src/guardrails/ci-workflow.ts
102
102
  const CI_PATH = ".github/workflows/ci.yml";
103
- const MUTATION_PATH = ".github/workflows/mutation.yml";
104
103
  /** The status context GitHub derives from the caller job id and the shared workflow's `checks` job. */
105
104
  const CI_CONTEXT = `ci / checks`;
106
105
  const RENOVATE_SYNC_JOB_ID = "renovate-sync";
107
106
  const CI_NODE_REF = "AntelopeJS/.github/.github/workflows/ci-node.yml@v1";
108
107
  const CI_RENOVATE_SYNC_REF = "AntelopeJS/.github/.github/workflows/ci-renovate-sync.yml@v1";
109
- const MUTATION_REF = "AntelopeJS/.github/.github/workflows/mutation.yml@v1";
110
108
  const CI_CALLER = `name: ci
111
109
 
112
110
  on:
@@ -139,27 +137,6 @@ jobs:
139
137
  uses: ${CI_RENOVATE_SYNC_REF}
140
138
  `;
141
139
  const PRINT_WIDTH = 80;
142
- const WEEK_MINUTES = 10080;
143
- /** Spreads the weekly runs of different repositories over the week so they do not queue together. */
144
- function mutationCaller(packageName) {
145
- let slot = 0;
146
- for (const character of packageName) slot = (slot * 31 + character.charCodeAt(0)) % WEEK_MINUTES;
147
- const day = Math.floor(slot / 1440) % 7;
148
- return `name: mutation
149
-
150
- on:
151
- schedule:
152
- - cron: "${slot % 60} ${Math.floor(slot % 1440 / 60)} * * ${day}"
153
- workflow_dispatch:
154
-
155
- permissions:
156
- contents: read
157
-
158
- jobs:
159
- mutation:
160
- uses: ${MUTATION_REF}
161
- `;
162
- }
163
140
  function flatSequence(seq) {
164
141
  const items = [];
165
142
  for (const item of seq.items) {
@@ -367,4 +344,4 @@ function ciWorkflow(current, callers, syncCallers, docsFiles) {
367
344
  });
368
345
  }
369
346
  //#endregion
370
- export { MUTATION_PATH as a, MISSING_CHECKS_WORKFLOW as c, hasChecksWorkflow as d, CI_RENOVATE_SYNC_REF as i, ciNodeCallers as l, CI_NODE_REF as n, ciWorkflow as o, CI_PATH as r, mutationCaller as s, CI_CONTEXT as t, ciRenovateSyncCallers as u };
347
+ export { ciWorkflow as a, ciRenovateSyncCallers as c, CI_RENOVATE_SYNC_REF as i, hasChecksWorkflow as l, CI_NODE_REF as n, MISSING_CHECKS_WORKFLOW as o, CI_PATH as r, ciNodeCallers as s, CI_CONTEXT as t };
@@ -7,14 +7,12 @@ interface JsonObject {
7
7
  //#region src/verify/types.d.ts
8
8
  /** A kind of one-way door, the closed list of Upd4ting/outer-loop#42. */
9
9
  type DoorKind = "data" | "format" | "contract" | "outbound" | "exposure" | "publish";
10
- /** Path rules for one door kind: the globs, the declared funnel modules and the journeys that contain it. */
10
+ /** Path rules for one door kind: the globs and the declared funnel modules. */
11
11
  interface DoorRule {
12
12
  /** Repository paths whose change opens a door of this kind, on top of the pack's defaults for the repo kind. */
13
13
  globs: string[];
14
14
  /** The only modules allowed to make this kind's calls (outbound clients, raw deletes); also path rules. */
15
15
  funnels: string[];
16
- /** Journeys, as `feature/journey`, whose pass contains a Data or Format door of this kind. */
17
- containments: string[];
18
16
  /** Why these paths are doors in this repository. */
19
17
  why: string;
20
18
  }
@@ -170,7 +168,7 @@ interface JourneyContext {
170
168
  * Ends the journey as not verified, for example when provider sandbox keys
171
169
  * are missing or something the journey depends on outside the harness's
172
170
  * services and apps stopped answering. An environment failure is never a
173
- * failing check: `seeded` counts only failing checks as catches.
171
+ * failing check.
174
172
  */
175
173
  notVerified(reason: string): never;
176
174
  service(name: string): ServiceEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/tooling-configs",
3
- "version": "0.2.19",
3
+ "version": "0.3.1",
4
4
  "description": "Shared tooling presets for AntelopeJS repositories: oxlint (with the vendored anti-slop rules), oxfmt, ESLint for Nuxt layers, Knip, and an interface range check",
5
5
  "keywords": [
6
6
  "antelopejs",