@antelopejs/tooling-configs 0.5.2 → 0.5.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/README.md CHANGED
@@ -35,7 +35,7 @@ The AntelopeJS guardrail pack: shared lint, format and dead-code presets, the co
35
35
  | bin | `antelopejs-comment-proof <base-ref>` | Compares comment-free JavaScript emit against committed HEAD |
36
36
  | bin | `antelopejs-body-check <body.md \| -> [--head <sha>] [--base <sha>]` | Checks a PR body's proof and findings blocks against HEAD; `--findings` prints the findings block |
37
37
  | bin | `antelopejs-check-interface-ranges` | Fails on interface ranges that break module startup |
38
- | bin | `antelopejs-garden [--json] [--apply-pauses] [--apply] [--apply-prunes]` | The Gardener's scans of the organization through the GitHub API and npm |
38
+ | bin | `antelopejs-garden [--json] [--apply] [--apply-prunes]` | The Gardener's scans of the organization through the GitHub API and npm |
39
39
  | bin | `antelopejs-triage [--json]` | Community Triage's ranked shortlist of untriaged issues |
40
40
  | bin | `antelopejs-verify <command>` | The harness of the shared `verify-interface`, `verify-module` and `verify-template` skills |
41
41
  | bin | `antelopejs-lease run \| status \| down \| gc` | Ports, a mongod, logs and tmp per worktree; see [Run a DMS from a git worktree](./docs/agent-worktrees.md) |
@@ -44,9 +44,11 @@ The AntelopeJS guardrail pack: shared lint, format and dead-code presets, the co
44
44
 
45
45
  `antelopejs-garden` is the Gardener's deterministic scan. It reads the non-archived AntelopeJS repositories whose `pack` property is `full` or `template` and whose `tier` is N1 to N3, through the GitHub API and the npm registry, authenticated with the token `gh` is logged in with. It never clones.
46
46
 
47
- - `--json` prints `{ generatedAt, findings, pauses, prunes, skipped }`. A finding is `{ key, repo, check, subject, severity, evidence, doneMeans }` with the key `repo|check|subject`, sorted. `skipped` lists every check whose source does not exist yet, or that could not run.
47
+ - `--json` prints `{ generatedAt, findings, prunes, skipped }`. A finding is `{ key, repo, check, subject, severity, evidence, doneMeans }` with the key `repo|check|subject`, sorted. `skipped` lists every check whose source does not exist yet, or that could not run.
48
48
  - Without `--json` it prints failures only. The exit code is non-zero only when a check could not run.
49
- - `--apply-pauses` sets the repository variable `NEXT_AUTOMERGE` to `shadow` on repositories where it is `on`, when `checks` is red on `next`, the ratchet file is back on a Clean repository, or governance drifted. It never sets `on` and writes nothing else.
49
+ - The `branch-governance` check reads the rules in force on the default branch of every in-scope repository. It reports an `urgent` finding for each missing `deletion`, `non_fast_forward`, `required_linear_history` and `pull_request` rule (subject `<branch>:rule:<type>`), and a `normal` one when no rule requires `ci / checks` from GitHub Actions (`<branch>:checks`). It reads each ruleset that contributes a rule and reports an `urgent` `<branch>:bypass` finding when its bypass list holds an actor other than the admin repository role or an organization administrator, in any bypass mode. A repository ruleset that still lets the Maintain role bypass is reported this way.
50
+ - The `repo-admins` check reads the collaborators of every non-archived repository (`affiliation=all`, so direct, team and organization-owner access) and reports one `normal` finding per login that holds the `admin` role outside `Upd4ting`, `mwesto`, `dada-sudo`, `Thomasims` and `alessaloisio`. The finding has `repo` set to the organization, the subject `repo-admin:<login>` and the repositories in its evidence, so a person is one finding however many repositories they administer. The Maintain role is not read: it has no bypass on a default branch ruleset. The separate `governance-drift` check reports each organization owner outside `Upd4ting`, `mwesto` and `dada-sudo` (subject `org-admin:<login>`).
51
+ - The `org-checks-ruleset` check reads the organization rulesets and reports an `urgent` finding, with `repo` set to the organization, when `Default branch protection` or `Required CI` is missing or has drifted. `Default branch protection` must be active, target branches, match `~DEFAULT_BRANCH` and apply to `~ALL` repositories. `Required CI` must be active, target branches, match `~DEFAULT_BRANCH`, apply to the `pack` property values `full` and `template`, and require `ci / checks` from GitHub Actions.
50
52
  - `--apply` turns `delete_branch_on_merge` on for each repository the `conformance` check reports it off on, and writes nothing else.
51
53
  - The `stale-branches` check lists, in one finding per repository, the branches other than the default, `next` and protected ones that head a merged or closed pull request at their current commit, or have no open pull request and no commit for 30 days. A branch that heads or receives an open pull request is never listed. `prunes` holds one `{ repo, branch, reason }` per listed branch, and `--apply-prunes` deletes exactly those refs.
52
54
 
@@ -196,7 +198,7 @@ pnpm dlx --package=@antelopejs/tooling-configs antelopejs-sync --init
196
198
  npx --package=@antelopejs/tooling-configs antelopejs-sync --init
197
199
  ```
198
200
 
199
- `--init` adds `node_modules` to `.gitignore` and declares each of `@antelopejs/tooling-configs`, `oxlint`, `oxlint-tsgolint` and `oxfmt` the repository does not declare yet. It installs with the repository's package manager, runs `antelopejs-sync`, installs again when sync added devDependencies, and formats `package.json` with the installed oxfmt. It takes the full profile only and rejects `--check` and `--profile template`. Install output shows only when the install fails.
201
+ `--init` adds `node_modules` to `.gitignore` and declares each of `@antelopejs/tooling-configs`, `oxlint`, `oxlint-tsgolint` and `oxfmt` the repository does not declare yet. In a pnpm or npm workspace, it sets each member's declared pack tools to the root's ranges, so the workspace installs one copy of the pack, and moves the `options` of a member's oxlint config, which oxlint accepts only in the root config, to the same flags on the member's `oxlint` scripts. It stops before installing when an option has no command-line flag. It installs with the repository's package manager, runs `antelopejs-sync`, installs again when sync added devDependencies, and formats `package.json` with the installed oxfmt. It takes the full profile only and rejects `--check` and `--profile template`. Install output shows only when the install fails.
200
202
 
201
203
  It then sets `delete_branch_on_merge` through `gh` when it can, even when an earlier step failed. When `gh` is missing, unauthenticated or refused, `--init` prints the `gh api -X PATCH repos/{owner}/{repo} -F delete_branch_on_merge=true` command to run and exits 1. After any failure, fix what it printed and rerun `antelopejs-sync --init`. Commit and push to the default branch afterwards, so the first run reports `ci / checks`.
202
204
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { a as packageManager, o as parseManifest } from "../package-DxxcxOzp.mjs";
2
+ import { o as packageManager, s as parseManifest } from "../package-DiaBP7bI.mjs";
3
3
  import { t as runCli } from "../cli-4Tv71vYk.mjs";
4
4
  import { c as repositoryRoot, l as resolveRevision } from "../files-DJ0TeaTU.mjs";
5
- import { a as DIRECTORY_LINK, c as revisionCounts, d as createAddedPolicy, f as describeAllowance, i as stampProof, l as workspaceManifests, m as recordVerdict, o as compareRevisions, p as fillStars, u as allowedByGlob } from "../proof-stamp-D9yo2dxU.mjs";
6
- import { c as packagesAt, i as isTestSource, l as unpublishedAt, o as loadTypeScript, r as isExportPath, s as outputRoot, t as emitPackage } from "../typescript-D7SaSmsl.mjs";
5
+ import { a as DIRECTORY_LINK, c as revisionCounts, d as createAddedPolicy, f as describeAllowance, i as stampProof, l as workspaceManifests, m as recordVerdict, o as compareRevisions, p as fillStars, u as allowedByGlob } from "../proof-stamp-BPIdT5ik.mjs";
6
+ import { c as packagesAt, i as isTestSource, l as unpublishedAt, o as loadTypeScript, r as isExportPath, s as outputRoot, t as emitPackage } from "../typescript-DJzdex32.mjs";
7
7
  import { createRequire } from "node:module";
8
8
  import { copyFileSync, cpSync, existsSync, globSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
9
9
  import { basename, dirname, isAbsolute, join, parse, posix, relative, resolve, sep } from "node:path";
@@ -2,7 +2,7 @@
2
2
  import { t as runCli } from "../cli-4Tv71vYk.mjs";
3
3
  import { c as repositoryRoot, l as resolveRevision } from "../files-DJ0TeaTU.mjs";
4
4
  import { t as lintDiagnostics } from "../oxlint-BbpTFFmf.mjs";
5
- import { n as proofDigest, r as proofLines, s as revisionCountRows, t as parseProofStamp } from "../proof-stamp-D9yo2dxU.mjs";
5
+ import { n as proofDigest, r as proofLines, s as revisionCountRows, t as parseProofStamp } from "../proof-stamp-BPIdT5ik.mjs";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { spawnSync } from "node:child_process";
8
8
  import { parseArgs } from "node:util";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as runCli } from "../cli-4Tv71vYk.mjs";
3
3
  import { c as repositoryRoot, n as authoredSizes, s as repositoryPath } from "../files-DJ0TeaTU.mjs";
4
- import { l as worktreeSuppressions, o as revisionSuppressions } from "../suppressions-BroaaGJ_.mjs";
4
+ import { l as worktreeSuppressions, o as revisionSuppressions } from "../suppressions-CQTcKCi1.mjs";
5
5
  import { t as checkSize } from "../size-DBatLT-F.mjs";
6
6
  import { resolve } from "node:path";
7
7
  import { parseArgs } from "node:util";