@antelopejs/tooling-configs 0.8.0 → 0.8.1-next.362.g09d30e4
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 +2 -2
- package/dist/{api-BQLrI_S1.mjs → api-L60reYrb.mjs} +2 -30
- package/dist/bin/api-diff.mjs +2 -2
- package/dist/bin/capture.mjs +1 -1
- package/dist/bin/check-size.mjs +2 -2
- package/dist/bin/checks.mjs +2 -2
- package/dist/bin/comment-proof.mjs +2 -2
- package/dist/bin/garden.mjs +3 -23
- package/dist/bin/readme-strip.mjs +1 -1
- package/dist/bin/suppressions.mjs +3 -3
- package/dist/bin/sync.mjs +6 -6
- package/dist/bin/triage.mjs +1 -1
- package/dist/bin/verify.mjs +3 -3
- package/dist/{checks-C60vMFin.mjs → checks-DXmJNOKp.mjs} +1 -1
- package/dist/{files-BbzJEk-L.mjs → files-C0avD1Eo.mjs} +1 -1
- package/dist/{map-CbNbypUa.mjs → map-C3j9QGqf.mjs} +1 -1
- package/dist/oxc/fmt.mjs +1 -1
- package/dist/oxc/lint.mjs +1 -1
- package/dist/{shared-BCFFyp3l.mjs → shared-drrIacDt.mjs} +0 -1
- package/dist/{suppression-budget-De9nUzlD.mjs → suppression-budget-fGT7mwW5.mjs} +2 -2
- package/dist/{suppressions-CfJwL0fN.mjs → suppressions-CQq6ngSW.mjs} +1 -1
- package/dist/{typescript-C7eU-cig.mjs → typescript-BRlDIsP3.mjs} +2 -2
- package/package.json +24 -26
package/README.md
CHANGED
|
@@ -227,7 +227,7 @@ pnpm install
|
|
|
227
227
|
| Other `.github/workflows/*.yml` | Moves each call to a shared workflow the `v2` tag of `AntelopeJS/.github` ships (`ci-node.yml`, `ci-renovate-sync.yml`, `next-sync.yml`, `release-npm-public.yml`, `release-npm-private.yml`, `stale.yml`) to `@v2`, and leaves the rest of the file as it is. A call to a workflow `v2` does not ship keeps its ref |
|
|
228
228
|
| `.gitattributes` | Adds `* text=auto eol=lf` as the first line when no line holds it, so text files check out with LF on Windows whatever `core.autocrlf` says and a shell script still runs. Patterns the file already lists stay after it and override it |
|
|
229
229
|
| `.nvmrc` | `24` |
|
|
230
|
-
| `.agents/setup` |
|
|
230
|
+
| `.agents/setup` | Cloud session setup: switches to the `.nvmrc` Node, activates `packageManager` through corepack, installs with the frozen lockfile |
|
|
231
231
|
| `AGENTS.md` | Writes the managed block between `<!-- antelopejs-guardrails:start -->` and `:end -->`; text outside the markers stays |
|
|
232
232
|
| `README.md` of each `@antelopejs` package | Writes the generated compatibility block (see [Generated compatibility block](./docs/documentation-checks.md#generated-compatibility-block)); prose outside its markers stays |
|
|
233
233
|
| `CLAUDE.md` | `@AGENTS.md` |
|
|
@@ -342,7 +342,7 @@ Known differences between the two compilers' output:
|
|
|
342
342
|
|
|
343
343
|
- `rules` holds lint directives (`oxlint-disable`, `eslint-disable`, their `-line` and `-next-line` forms, in line or block comments, after code too) per rule they name; a directive naming several rules counts once per rule, and one naming none counts under `*`. A rule missing from `rules` has ceiling 0. The other fields count `@ts-expect-error`, `@ts-ignore` and `SAFETY:` comments. The counter is the one behind the proof tables: it reads comments from the parser, so strings and template literals are never counted, and it skips generated output as the size guard does.
|
|
344
344
|
- `config` holds the rules a lint config switches off, to `allow` or to a warning, keyed `<rule> for <glob>`: in `oxlint.config.*`, `.oxlintrc.json`, `.oxlintrc.jsonc` and `eslint.config.*` at any depth, every `rules` and `categories` map (a category as `category:<name>`) and an ESLint composer's `overrideRules` argument, one key per glob of the block's `files` (`*` when it has none). A nested config's globs are anchored at its directory and its blocks without `files` are `<dir>/**`, so a rule-off moved between config files is a new key. Rule maps, severities and globs held in same-file variables or spread from them count where they are used; the pack's presets are not in the file, so they never count. A glob is a key of its own, so adding, widening or renaming a glob, deleting `files`, or moving an override's rules to the top level creates a key at ceiling 0 and fails. Narrowing or splitting a scope is burn-down: a key may use the room a same-rule key whose glob contains its glob gives up (`*`, `**` and `**/*` contain every glob; a single-segment `*` never contains `**`; other glob syntax counts only when equal), in the full, staged and base checks, and `--update` moves that ceiling to the narrower key. A scope split into several narrower globs gives each the old ceiling, so the `config` total can rise while the files it covers do not; read totals per key, not as a measure of scope. `.` and `..` segments count only when equal. A failure names the fix: delete the entry and fix the code its rule reports, or put the exception on the line that needs it as a directive with a reason. A config entry switching off a rule no directive may name fails as an added directive does. Sync adds `config` at today's counts to a budget that predates it; until then config rule-offs are not capped.
|
|
345
|
-
- `agentFiles` is `true` once the budget counts the repository's own files under the agent directories (`.agents/`, `.claude
|
|
345
|
+
- `agentFiles` is `true` once the budget counts the repository's own files under the agent directories (`.agents/`, `.claude/` and the others), skipping only what `antelopejs-sync` writes there, which is what lint skips. A budget without it counts none of them, so upgrading fails nothing: `antelopejs-sync` adds each key's count in those files to its ceiling and sets the field. `antelopejs-suppressions --base` allows that one rise on a base without the field, by no more than the count in those files at the base per key (a directive the same branch adds there is not adoptable), and fails a budget that drops the field once the base has it.
|
|
346
346
|
- `antelopejs-suppressions` fails when a count is above its ceiling, printing each `file:line` in the files the change touched and the fix: fix the code, or remove another suppression of the same kind; a rule that keeps needing suppressions should be changed in the preset. It prints nothing on success.
|
|
347
347
|
- `antelopejs-suppressions --update` lowers each ceiling to the current count and keeps rules at zero. No command raises a ceiling.
|
|
348
348
|
- `SAFETY:` comments and directives disabling `anti-slop/require-safety-comment-for-type-assertion` share their room: a `SAFETY:` comment may use what those directives leave below their ceiling, in the full, base and staged checks, and `--update` moves that room to `safety`. Replacing such a directive with a `SAFETY:` comment needs no raise; their sum never rises.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as isString, f as parseJson, i as isObject } from "./json-CG2L7YFl.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
5
|
-
import {
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
6
|
//#region src/garden/api.ts
|
|
7
7
|
/** A GitHub or npm answer that is not a success. */
|
|
8
8
|
var ApiError = class extends Error {
|
|
@@ -17,18 +17,6 @@ var ApiError = class extends Error {
|
|
|
17
17
|
};
|
|
18
18
|
const GITHUB = "https://api.github.com";
|
|
19
19
|
const NPM = "https://registry.npmjs.org";
|
|
20
|
-
const CREDENTIAL_NAME = /TOKEN|SECRET|PASSW|CREDENTIAL|API_?KEY|PRIVATE_?KEY|ACCESS_?KEY/i;
|
|
21
|
-
const MINTED_TOKENS = /* @__PURE__ */ new Set(["GH_TOKEN", "GITHUB_TOKEN"]);
|
|
22
|
-
const CREDENTIAL_FILES = [
|
|
23
|
-
".aws/credentials",
|
|
24
|
-
".netrc",
|
|
25
|
-
".pypirc",
|
|
26
|
-
".config/gcloud/application_default_credentials.json",
|
|
27
|
-
".kube/config",
|
|
28
|
-
".ssh/id_rsa",
|
|
29
|
-
".ssh/id_ed25519",
|
|
30
|
-
".ssh/id_ecdsa"
|
|
31
|
-
];
|
|
32
20
|
const MAX_ATTEMPTS = 4;
|
|
33
21
|
function ghToken() {
|
|
34
22
|
return execFileSync("gh", ["auth", "token"], { encoding: "utf8" }).trim();
|
|
@@ -42,19 +30,6 @@ function nextLink(header) {
|
|
|
42
30
|
function withPaging(path) {
|
|
43
31
|
return path.includes("per_page=") ? path : `${path}${path.includes("?") ? "&" : "?"}per_page=100`;
|
|
44
32
|
}
|
|
45
|
-
function npmrcCarriesToken(home) {
|
|
46
|
-
const path = join(home, ".npmrc");
|
|
47
|
-
return existsSync(path) && /_auth(?:Token)?\s*=/.test(readFileSync(path, "utf8"));
|
|
48
|
-
}
|
|
49
|
-
/** Reads variable names only, never values. */
|
|
50
|
-
function readSecretSurface(names, home) {
|
|
51
|
-
const files = CREDENTIAL_FILES.filter((file) => existsSync(join(home, file)));
|
|
52
|
-
if (npmrcCarriesToken(home)) files.push(".npmrc");
|
|
53
|
-
return {
|
|
54
|
-
variables: names.filter((name) => CREDENTIAL_NAME.test(name) && !MINTED_TOKENS.has(name)).sort(),
|
|
55
|
-
files: files.sort()
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
33
|
/** Runs the released `antelopejs-registry --check` against committed manifests copied to a temporary directory. */
|
|
59
34
|
function registryCheck(files) {
|
|
60
35
|
const directory = mkdtempSync(join(tmpdir(), "garden-registry-"));
|
|
@@ -190,9 +165,6 @@ function createApi(token) {
|
|
|
190
165
|
async registryDiffers(files) {
|
|
191
166
|
return registryCheck(files);
|
|
192
167
|
},
|
|
193
|
-
secrets() {
|
|
194
|
-
return readSecretSurface(Object.keys(process.env), homedir());
|
|
195
|
-
},
|
|
196
168
|
now() {
|
|
197
169
|
return /* @__PURE__ */ new Date();
|
|
198
170
|
}
|
package/dist/bin/api-diff.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import { o as packageManager, s as parseManifest } from "../package-7oylgBeT.mjs
|
|
|
3
3
|
import { t as typescript6_default } from "../typescript6-HdyOMBv3.mjs";
|
|
4
4
|
import { r as installedTypeScriptMajor, t as asInstalledCompilerReads } from "../installed-typescript-CF_FR9DV.mjs";
|
|
5
5
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
6
|
-
import { c as resolveRevision, s as repositoryRoot } from "../files-
|
|
6
|
+
import { c as resolveRevision, s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
7
7
|
import { n as shimInvocation } from "../run-command-BlFRPORx.mjs";
|
|
8
|
-
import { _ as recordVerdict, c as unpublishedAt, d as revisionCounts, f as workspaceManifests, g as fillStars, h as describeAllowance, i as isTestSource, l as DIRECTORY_LINK, m as createAddedPolicy, o as outputRoot, p as allowedByGlob, r as isExportPath, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-
|
|
8
|
+
import { _ as recordVerdict, c as unpublishedAt, d as revisionCounts, f as workspaceManifests, g as fillStars, h as describeAllowance, i as isTestSource, l as DIRECTORY_LINK, m as createAddedPolicy, o as outputRoot, p as allowedByGlob, r as isExportPath, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-BRlDIsP3.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { copyFileSync, cpSync, existsSync, globSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { basename, dirname, isAbsolute, join, parse, posix, relative, resolve, sep } from "node:path";
|
package/dist/bin/capture.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { a as isString, c as object, f as parseJson, i as isObject, m as strings, r as flag, t as child, u as optStr } from "../json-CG2L7YFl.mjs";
|
|
3
3
|
import { n as parseScenes, r as selectScenes } from "../scenes-d-VQ0LOm.mjs";
|
|
4
4
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
5
|
-
import { s as repositoryRoot } from "../files-
|
|
5
|
+
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
6
6
|
import { t as relativeSlashed } from "../slash-BEgSnfYw.mjs";
|
|
7
7
|
import { t as killTree } from "../launch-D5cylwvb.mjs";
|
|
8
8
|
import { parse, stringify } from "yaml";
|
package/dist/bin/check-size.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
3
|
-
import { o as repositoryPath, s as repositoryRoot, t as authoredSizes, u as MAX_FILE_BYTES } from "../files-
|
|
4
|
-
import { l as worktreeSuppressions, o as revisionSuppressions } from "../suppressions-
|
|
3
|
+
import { o as repositoryPath, s as repositoryRoot, t as authoredSizes, u as MAX_FILE_BYTES } from "../files-C0avD1Eo.mjs";
|
|
4
|
+
import { l as worktreeSuppressions, o as revisionSuppressions } from "../suppressions-CQq6ngSW.mjs";
|
|
5
5
|
import { realpathSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { parseArgs } from "node:util";
|
package/dist/bin/checks.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
3
|
-
import { s as repositoryRoot } from "../files-
|
|
4
|
-
import { r as runChecks, t as CHECKS_SKIP_ENV } from "../checks-
|
|
3
|
+
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
4
|
+
import { r as runChecks, t as CHECKS_SKIP_ENV } from "../checks-DXmJNOKp.mjs";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
6
6
|
//#region src/bin/checks.ts
|
|
7
7
|
const SIGNAL_EXIT = /* @__PURE__ */ new Map([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
3
|
-
import { s as repositoryRoot } from "../files-
|
|
4
|
-
import { a as listsNoFiles, d as revisionCounts, n as extendedConfigs, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-
|
|
3
|
+
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
4
|
+
import { a as listsNoFiles, d as revisionCounts, n as extendedConfigs, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-BRlDIsP3.mjs";
|
|
5
5
|
import { copyFileSync, existsSync, mkdirSync } from "node:fs";
|
|
6
6
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
//#region src/guardrails/comment-proof.ts
|
package/dist/bin/garden.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { c as object, d as optTime, f as parseJson, h as time, i as isObject, l
|
|
|
4
4
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
5
5
|
import { _ as ciRenovateSyncCallers, c as CI_CONTEXT, d as CI_RENOVATE_SYNC_REF, g as ciNodeCallers, i as GITATTRIBUTES, l as CI_NODE_REF, n as RENOVATE_PRESET, o as LF_ATTRIBUTES, s as enforcesLf, t as RENOVATE_CONFIGS, u as CI_PATH } from "../renovate-D0su_v9p.mjs";
|
|
6
6
|
import { n as tagVersion, r as tooling, t as TOOLING_PACKAGE } from "../npm-CIIqL5SG.mjs";
|
|
7
|
-
import { i as ghToken, n as createApi, t as ApiError } from "../api-
|
|
7
|
+
import { i as ghToken, n as createApi, t as ApiError } from "../api-L60reYrb.mjs";
|
|
8
8
|
import { parseArgs } from "node:util";
|
|
9
9
|
import { inflateRawSync } from "node:zlib";
|
|
10
10
|
//#region src/garden/decode.ts
|
|
@@ -394,16 +394,12 @@ function skip(reason) {
|
|
|
394
394
|
//#region src/garden/checks/apps.ts
|
|
395
395
|
const ALTAB = "Altab-S-R-L";
|
|
396
396
|
const ORG_BASELINE = {
|
|
397
|
-
all: [
|
|
398
|
-
"amp-for-github",
|
|
399
|
-
"claude",
|
|
400
|
-
"chatgpt-codex-connector"
|
|
401
|
-
],
|
|
397
|
+
all: ["claude", "chatgpt-codex-connector"],
|
|
402
398
|
selectedOnly: []
|
|
403
399
|
};
|
|
404
400
|
const ALTAB_BASELINE = {
|
|
405
401
|
all: ["claude", "chatgpt-codex-connector"],
|
|
406
|
-
selectedOnly: [
|
|
402
|
+
selectedOnly: []
|
|
407
403
|
};
|
|
408
404
|
async function installations(api, org) {
|
|
409
405
|
return (await api.pages(`/orgs/${org}/installations`, "installations")).map((entry) => {
|
|
@@ -445,21 +441,6 @@ const aiApps = {
|
|
|
445
441
|
return found(findings);
|
|
446
442
|
}
|
|
447
443
|
};
|
|
448
|
-
const orbSecrets = {
|
|
449
|
-
id: "orb-secrets",
|
|
450
|
-
async run(context) {
|
|
451
|
-
const surface = context.api.secrets();
|
|
452
|
-
return found([...surface.variables.map((name) => finding({
|
|
453
|
-
repo: ORG,
|
|
454
|
-
check: "orb-secrets",
|
|
455
|
-
subject: `env:${name}`
|
|
456
|
-
}, `The environment variable ${name} is set in the scanning process.`, `${name} is removed from the scanner's environment.`)), ...surface.files.map((file) => finding({
|
|
457
|
-
repo: ORG,
|
|
458
|
-
check: "orb-secrets",
|
|
459
|
-
subject: `file:${file}`
|
|
460
|
-
}, `The credential file ~/${file} is readable by the scanning process.`, `~/${file} is removed from the scanner's machine.`))]);
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
444
|
//#endregion
|
|
464
445
|
//#region src/garden/zip.ts
|
|
465
446
|
const END_OF_CENTRAL_DIRECTORY = 101010256;
|
|
@@ -1384,7 +1365,6 @@ const CHECKS = [
|
|
|
1384
1365
|
branchGovernance,
|
|
1385
1366
|
orgChecksRuleset,
|
|
1386
1367
|
aiApps,
|
|
1387
|
-
orbSecrets,
|
|
1388
1368
|
packageSize,
|
|
1389
1369
|
templateBehindLatest,
|
|
1390
1370
|
templateMembership,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { d as toolingRoot } from "../package-7oylgBeT.mjs";
|
|
3
3
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
4
|
-
import { s as repositoryRoot } from "../files-
|
|
4
|
+
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
5
5
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { parseArgs } from "node:util";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
3
|
-
import { a as isAgentFile, c as resolveRevision, n as changedFiles, o as repositoryPath, s as repositoryRoot } from "../files-
|
|
4
|
-
import { a as parseBudget, c as stagedSuppressions, i as checkSuppressions, l as checkPolicy, n as SUPPRESSIONS_FILE, o as safetyCeiling, s as stagedNames, u as coveredLimits } from "../suppression-budget-
|
|
5
|
-
import { c as suppressionsIn, i as inWorktree, o as revisionSuppressions, r as countSuppressions } from "../suppressions-
|
|
3
|
+
import { a as isAgentFile, c as resolveRevision, n as changedFiles, o as repositoryPath, s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
4
|
+
import { a as parseBudget, c as stagedSuppressions, i as checkSuppressions, l as checkPolicy, n as SUPPRESSIONS_FILE, o as safetyCeiling, s as stagedNames, u as coveredLimits } from "../suppression-budget-fGT7mwW5.mjs";
|
|
5
|
+
import { c as suppressionsIn, i as inWorktree, o as revisionSuppressions, r as countSuppressions } from "../suppressions-CQq6ngSW.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, join, posix } from "node:path";
|
package/dist/bin/sync.mjs
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { a as managedPackage, c as repositoryTools, f as toolingVersions, l as serializeManifest, m as usesNuxt, n as bootstrapDependencies, o as packageManager, p as usesCaptures, r as bootstrappedManifest, s as parseManifest, t as addedDevDependencies, u as templatePackage } from "../package-7oylgBeT.mjs";
|
|
3
3
|
import { t as admits } from "../semver-BDxeEcP_.mjs";
|
|
4
4
|
import { i as presetConfig, n as SETUP_SCRIPT, r as lefthook, t as PRESET_CONFIGS } from "../templates-DLW0Ubfk.mjs";
|
|
5
|
-
import { a as VERIFY_KINDS, c as isVerifyKind, d as linkPointsAt, i as SYNCED_SKILL_FILES, l as skillFolder, o as claudeLink, s as claudeLinkTarget, u as planDocsSkills } from "../shared-
|
|
5
|
+
import { a as VERIFY_KINDS, c as isVerifyKind, d as linkPointsAt, i as SYNCED_SKILL_FILES, l as skillFolder, o as claudeLink, s as claudeLinkTarget, u as planDocsSkills } from "../shared-drrIacDt.mjs";
|
|
6
6
|
import { t as typescript6_default } from "../typescript6-HdyOMBv3.mjs";
|
|
7
7
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
8
8
|
import { _ as ciRenovateSyncCallers, a as GITATTRIBUTES_ARTIFACT, b as sharedWorkflow, c as CI_CONTEXT, f as callerPlan, g as ciNodeCallers, h as MISSING_CHECKS_WORKFLOW, m as ciWorkflow, p as ciProfile, r as renovateArtifacts, u as CI_PATH, v as hasChecksWorkflow, y as sharedRefArtifacts } from "../renovate-D0su_v9p.mjs";
|
|
9
|
-
import { i as gitFiles, s as repositoryRoot } from "../files-
|
|
9
|
+
import { i as gitFiles, s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
10
10
|
import { n as workspaceDirectories, r as workspacePatterns, t as planDocs } from "../docs-compat-CdgBviGf.mjs";
|
|
11
11
|
import { n as shimInvocation } from "../run-command-BlFRPORx.mjs";
|
|
12
|
-
import { a as matchingScripts, c as inWorkspace, d as runPnpm, i as verifyLayers, l as installsWithPnpm, n as droppedChecksSteps, o as stepsOf, s as pnpmLockfiles, u as moveDependencyRanges } from "../checks-
|
|
13
|
-
import { n as SUPPRESSIONS_FILE, r as adoptedBudget } from "../suppression-budget-
|
|
14
|
-
import { u as typescript } from "../suppressions-
|
|
15
|
-
import { t as DEFAULT_SHARED } from "../map-
|
|
12
|
+
import { a as matchingScripts, c as inWorkspace, d as runPnpm, i as verifyLayers, l as installsWithPnpm, n as droppedChecksSteps, o as stepsOf, s as pnpmLockfiles, u as moveDependencyRanges } from "../checks-DXmJNOKp.mjs";
|
|
13
|
+
import { n as SUPPRESSIONS_FILE, r as adoptedBudget } from "../suppression-budget-fGT7mwW5.mjs";
|
|
14
|
+
import { u as typescript } from "../suppressions-CQq6ngSW.mjs";
|
|
15
|
+
import { t as DEFAULT_SHARED } from "../map-C3j9QGqf.mjs";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import { isAlias, isMap, isNode, isScalar, isSeq, parseDocument, stringify } from "yaml";
|
|
18
18
|
import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, rmdirSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
package/dist/bin/triage.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { c as object, h as time, n as children, p as str, r as flag, s as num, t as child, u as optStr } from "../json-CG2L7YFl.mjs";
|
|
3
3
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
4
|
-
import { i as ghToken, r as createGraphql } from "../api-
|
|
4
|
+
import { i as ghToken, r as createGraphql } from "../api-L60reYrb.mjs";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
6
6
|
//#region src/triage/triage.ts
|
|
7
7
|
/** Open, unassigned issues labelled `needs-triage` in the organization's public, non-archived repositories. */
|
package/dist/bin/verify.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as VERIFY_KINDS, c as isVerifyKind, l as skillFolder } from "../shared-
|
|
2
|
+
import { a as VERIFY_KINDS, c as isVerifyKind, l as skillFolder } from "../shared-drrIacDt.mjs";
|
|
3
3
|
import { t as typescript6_default } from "../typescript6-HdyOMBv3.mjs";
|
|
4
4
|
import { a as isString, c as object, f as parseJson, i as isObject, n as children, p as str, s as num, t as child, u as optStr } from "../json-CG2L7YFl.mjs";
|
|
5
5
|
import { a as exitIs, c as interrupted, i as exists, r as equal, u as refused } from "../checks-CxkSu2E6.mjs";
|
|
6
6
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
7
|
-
import { s as repositoryRoot } from "../files-
|
|
7
|
+
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
8
8
|
import { t as packSteps } from "../pack-tarball-Cn4zGKn7.mjs";
|
|
9
|
-
import { C as matchesPath, S as pauseSync, _ as recordProcesses, a as readFeatures, b as withLocalBins, c as allocateRun, d as git, f as isolatedEnv, g as ownRun, h as operatorEnv, i as planFor, l as canonical, m as openWorkspace, n as SMOKE_FEATURE, o as CACHE_DIR, p as loadRun, r as checkMap, s as RUNS_DIR, u as commandRecords, v as removeTree, x as writeWhole, y as saveRun } from "../map-
|
|
9
|
+
import { C as matchesPath, S as pauseSync, _ as recordProcesses, a as readFeatures, b as withLocalBins, c as allocateRun, d as git, f as isolatedEnv, g as ownRun, h as operatorEnv, i as planFor, l as canonical, m as openWorkspace, n as SMOKE_FEATURE, o as CACHE_DIR, p as loadRun, r as checkMap, s as RUNS_DIR, u as commandRecords, v as removeTree, x as writeWhole, y as saveRun } from "../map-C3j9QGqf.mjs";
|
|
10
10
|
import { t as relativeSlashed } from "../slash-BEgSnfYw.mjs";
|
|
11
11
|
import { n as launch, r as spawnLaunched, t as killTree } from "../launch-D5cylwvb.mjs";
|
|
12
12
|
import { accessSync, appendFileSync, chmodSync, closeSync, constants, copyFileSync, cpSync, existsSync, linkSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, symlinkSync, unlinkSync, utimesSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as serializeManifest, o as packageManager, s as parseManifest } from "./package-7oylgBeT.mjs";
|
|
2
2
|
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
3
3
|
import { a as isString, f as parseJson, i as isObject, u as optStr } from "./json-CG2L7YFl.mjs";
|
|
4
|
-
import { i as gitFiles, l as trackedManifests } from "./files-
|
|
4
|
+
import { i as gitFiles, l as trackedManifests } from "./files-C0avD1Eo.mjs";
|
|
5
5
|
import { i as DMS_PACKAGES, n as workspaceDirectories } from "./docs-compat-CdgBviGf.mjs";
|
|
6
6
|
import { n as shimInvocation, t as runCommand } from "./run-command-BlFRPORx.mjs";
|
|
7
7
|
import { n as tagVersion } from "./npm-CIIqL5SG.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IGNORE_PATTERNS, r as SYNCED_AGENT_PATTERNS, t as AGENT_IGNORE_PATTERNS } from "./shared-
|
|
1
|
+
import { n as IGNORE_PATTERNS, r as SYNCED_AGENT_PATTERNS, t as AGENT_IGNORE_PATTERNS } from "./shared-drrIacDt.mjs";
|
|
2
2
|
import { closeSync, existsSync, lstatSync, openSync, readSync } from "node:fs";
|
|
3
3
|
import { dirname, join, matchesGlob, relative, resolve } from "node:path";
|
|
4
4
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as skillFolder } from "./shared-
|
|
1
|
+
import { l as skillFolder } from "./shared-drrIacDt.mjs";
|
|
2
2
|
import { c as object, f as parseJson, i as isObject, o as list, p as str, s as num } from "./json-CG2L7YFl.mjs";
|
|
3
3
|
import { c as leaseTmpDir, i as PARENT_TMPDIR, n as LEASE_DIR, r as LEASE_MARKER, t as DEV_STACK_VARIABLES } from "./env-DT0UJNeL.mjs";
|
|
4
4
|
import { t as relativeSlashed } from "./slash-BEgSnfYw.mjs";
|
package/dist/oxc/fmt.mjs
CHANGED
package/dist/oxc/lint.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as PRESET_CONFIGS } from "../templates-DLW0Ubfk.mjs";
|
|
2
2
|
import { n as typeAwareRuleSetting, t as TYPE_AWARE_RULES } from "../type-aware-rules-BxhHbizU.mjs";
|
|
3
3
|
import { n as TEST_FILE_GLOBS, t as ASSERTION_FUNCTION_NAMES } from "../shared-WC0z3y9F.mjs";
|
|
4
|
-
import { n as IGNORE_PATTERNS, r as SYNCED_AGENT_PATTERNS } from "../shared-
|
|
4
|
+
import { n as IGNORE_PATTERNS, r as SYNCED_AGENT_PATTERNS } from "../shared-drrIacDt.mjs";
|
|
5
5
|
import { defineConfig } from "oxlint";
|
|
6
6
|
//#region src/oxc/lint.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as isAgentFile, n as changedFiles } from "./files-
|
|
2
|
-
import { a as openDisablesIn, i as inWorktree, l as worktreeSuppressions, n as configKey, o as revisionSuppressions, r as countSuppressions, s as sortedKeys, t as atRevision } from "./suppressions-
|
|
1
|
+
import { a as isAgentFile, n as changedFiles } from "./files-C0avD1Eo.mjs";
|
|
2
|
+
import { a as openDisablesIn, i as inWorktree, l as worktreeSuppressions, n as configKey, o as revisionSuppressions, r as countSuppressions, s as sortedKeys, t as atRevision } from "./suppressions-CQq6ngSW.mjs";
|
|
3
3
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { join, matchesGlob } from "node:path";
|
|
5
5
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as markerPattern, t as DEFAULT_SAFETY_MARKERS } from "./require-safety-comment-for-type-assertion-mnb0CIxa.mjs";
|
|
2
2
|
import { t as requireTypeScript6 } from "./typescript-version-CptQKjGz.mjs";
|
|
3
|
-
import { i as gitFiles, r as generatedOutput } from "./files-
|
|
3
|
+
import { i as gitFiles, r as generatedOutput } from "./files-C0avD1Eo.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { existsSync, lstatSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as parseManifest } from "./package-7oylgBeT.mjs";
|
|
2
2
|
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
3
3
|
import { n as installedCompilerDefaults, r as installedTypeScriptMajor } from "./installed-typescript-CF_FR9DV.mjs";
|
|
4
|
-
import { c as resolveRevision, l as trackedManifests } from "./files-
|
|
4
|
+
import { c as resolveRevision, l as trackedManifests } from "./files-C0avD1Eo.mjs";
|
|
5
5
|
import { n as workspaceDirectories, r as workspacePatterns } from "./docs-compat-CdgBviGf.mjs";
|
|
6
|
-
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-
|
|
6
|
+
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-CQq6ngSW.mjs";
|
|
7
7
|
import { copyFileSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { dirname, isAbsolute, join, matchesGlob, relative, resolve, sep } from "node:path";
|
|
9
9
|
import { execFileSync, spawnSync } from "node:child_process";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/tooling-configs",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-next.362.g09d30e4",
|
|
4
4
|
"description": "Shared tooling presets for AntelopeJS repositories: oxlint (with the vendored anti-slop rules), oxfmt, ESLint for Nuxt layers, Knip, and a dependency range check",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -55,29 +55,6 @@
|
|
|
55
55
|
"access": "public",
|
|
56
56
|
"provenance": true
|
|
57
57
|
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"build": "tsdown",
|
|
60
|
-
"lint": "oxlint",
|
|
61
|
-
"lint:fix": "oxlint --fix",
|
|
62
|
-
"format": "oxfmt .",
|
|
63
|
-
"prepack": "pnpm run build",
|
|
64
|
-
"release": "pnpm run lint && pnpm run typecheck && pnpm run prepack && release-it",
|
|
65
|
-
"typecheck": "node src/bin/tsc.ts --noEmit",
|
|
66
|
-
"test": "node --test \"src/**/*.test.ts\"",
|
|
67
|
-
"checks": "node src/bin/checks.ts",
|
|
68
|
-
"format:check": "oxfmt --check .",
|
|
69
|
-
"size": "node src/bin/check-size.ts",
|
|
70
|
-
"prepare": "if [ -e .git ] && command -v git >/dev/null 2>&1 && command -v lefthook >/dev/null 2>&1 && GIT_DIR=.git GIT_WORK_TREE=. git rev-parse --git-dir >/dev/null 2>&1; then GIT_DIR=.git GIT_WORK_TREE=. lefthook install; fi",
|
|
71
|
-
"sync": "node src/bin/sync.ts",
|
|
72
|
-
"sync:check": "node src/bin/sync.ts --check",
|
|
73
|
-
"knip": "knip",
|
|
74
|
-
"suppressions": "node src/bin/suppressions.ts",
|
|
75
|
-
"suppressions:update": "node src/bin/suppressions.ts --update",
|
|
76
|
-
"docs:generate": "node src/docs/generate.ts",
|
|
77
|
-
"ci:shard": "node src/ci/shard.ts",
|
|
78
|
-
"ci:weights": "node src/ci/refresh-weights.ts",
|
|
79
|
-
"ci:weights:check": "node src/ci/check-weights.ts"
|
|
80
|
-
},
|
|
81
58
|
"dependencies": {
|
|
82
59
|
"@oxlint/plugins": "1.81.0",
|
|
83
60
|
"dts-bundle-generator": "^9.5.1",
|
|
@@ -175,5 +152,26 @@
|
|
|
175
152
|
"engines": {
|
|
176
153
|
"node": ">=22.18.0"
|
|
177
154
|
},
|
|
178
|
-
"
|
|
179
|
-
|
|
155
|
+
"gitHead": "09d30e4e5c3c4c16429d935dafee6c08b73b94e7",
|
|
156
|
+
"scripts": {
|
|
157
|
+
"build": "tsdown",
|
|
158
|
+
"lint": "oxlint",
|
|
159
|
+
"lint:fix": "oxlint --fix",
|
|
160
|
+
"format": "oxfmt .",
|
|
161
|
+
"release": "pnpm run lint && pnpm run typecheck && pnpm run prepack && release-it",
|
|
162
|
+
"typecheck": "node src/bin/tsc.ts --noEmit",
|
|
163
|
+
"test": "node --test \"src/**/*.test.ts\"",
|
|
164
|
+
"checks": "node src/bin/checks.ts",
|
|
165
|
+
"format:check": "oxfmt --check .",
|
|
166
|
+
"size": "node src/bin/check-size.ts",
|
|
167
|
+
"sync": "node src/bin/sync.ts",
|
|
168
|
+
"sync:check": "node src/bin/sync.ts --check",
|
|
169
|
+
"knip": "knip",
|
|
170
|
+
"suppressions": "node src/bin/suppressions.ts",
|
|
171
|
+
"suppressions:update": "node src/bin/suppressions.ts --update",
|
|
172
|
+
"docs:generate": "node src/docs/generate.ts",
|
|
173
|
+
"ci:shard": "node src/ci/shard.ts",
|
|
174
|
+
"ci:weights": "node src/ci/refresh-weights.ts",
|
|
175
|
+
"ci:weights:check": "node src/ci/check-weights.ts"
|
|
176
|
+
}
|
|
177
|
+
}
|