@nodeve/checks 0.1.0
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 +64 -0
- package/dist/bin/build-helper-manifest.d.ts +3 -0
- package/dist/bin/build-helper-manifest.d.ts.map +1 -0
- package/dist/bin/build-helper-manifest.js +272 -0
- package/dist/bin/build-helper-manifest.js.map +1 -0
- package/dist/bin/build-lib-names.d.ts +3 -0
- package/dist/bin/build-lib-names.d.ts.map +1 -0
- package/dist/bin/build-lib-names.js +48 -0
- package/dist/bin/build-lib-names.js.map +1 -0
- package/dist/bin/catalog.d.ts +3 -0
- package/dist/bin/catalog.d.ts.map +1 -0
- package/dist/bin/catalog.js +139 -0
- package/dist/bin/catalog.js.map +1 -0
- package/dist/bin/doc-tokens.d.ts +3 -0
- package/dist/bin/doc-tokens.d.ts.map +1 -0
- package/dist/bin/doc-tokens.js +69 -0
- package/dist/bin/doc-tokens.js.map +1 -0
- package/dist/bin/helper-collisions.d.ts +3 -0
- package/dist/bin/helper-collisions.d.ts.map +1 -0
- package/dist/bin/helper-collisions.js +95 -0
- package/dist/bin/helper-collisions.js.map +1 -0
- package/dist/bin/inline-dupes.d.ts +3 -0
- package/dist/bin/inline-dupes.d.ts.map +1 -0
- package/dist/bin/inline-dupes.js +79 -0
- package/dist/bin/inline-dupes.js.map +1 -0
- package/dist/bin/page-size.d.ts +3 -0
- package/dist/bin/page-size.d.ts.map +1 -0
- package/dist/bin/page-size.js +52 -0
- package/dist/bin/page-size.js.map +1 -0
- package/dist/bin/reshape.d.ts +3 -0
- package/dist/bin/reshape.d.ts.map +1 -0
- package/dist/bin/reshape.js +149 -0
- package/dist/bin/reshape.js.map +1 -0
- package/dist/lib/config.d.ts +81 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +75 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/repo.d.ts +13 -0
- package/dist/lib/repo.d.ts.map +1 -0
- package/dist/lib/repo.js +21 -0
- package/dist/lib/repo.js.map +1 -0
- package/lefthook.checks.yml +44 -0
- package/nodeve.checks.example.js +65 -0
- package/package.json +46 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-repo configuration for the nodeve checks. A consumer drops a
|
|
3
|
+
* `nodeve.checks.js` (ESM, default-exporting the object below) at the repo root;
|
|
4
|
+
* anything omitted falls back to the org defaults here. Every section is
|
|
5
|
+
* optional, so a repo can adopt one check and leave the rest on defaults.
|
|
6
|
+
*
|
|
7
|
+
* // nodeve.checks.js
|
|
8
|
+
* export default {
|
|
9
|
+
* docTokens: { maxTokens: 3500, overrides: { 'CLAUDE.md': { maxTokens: 4000 } } },
|
|
10
|
+
* pageSize: { rules: [{ glob: '*+page.svelte', maxLines: 280 }] }, // opt-in
|
|
11
|
+
* };
|
|
12
|
+
*/
|
|
13
|
+
import { existsSync } from 'node:fs';
|
|
14
|
+
import { join } from 'node:path';
|
|
15
|
+
import { pathToFileURL } from 'node:url';
|
|
16
|
+
export const DEFAULTS = {
|
|
17
|
+
docTokens: {
|
|
18
|
+
maxLines: 150,
|
|
19
|
+
maxTokens: 3000,
|
|
20
|
+
enforce: ['CLAUDE.md', 'guide/*.md', 'docs/*.md'],
|
|
21
|
+
overrides: {},
|
|
22
|
+
},
|
|
23
|
+
reshape: {
|
|
24
|
+
globs: ['apps/*.ts', 'packages/*.ts'],
|
|
25
|
+
allowlist: [],
|
|
26
|
+
},
|
|
27
|
+
inlineDupes: {
|
|
28
|
+
globs: ['apps/*.ts'],
|
|
29
|
+
allowlist: [],
|
|
30
|
+
},
|
|
31
|
+
helperCollisions: {
|
|
32
|
+
globs: ['apps/*.ts', 'packages/*.ts'],
|
|
33
|
+
libs: ['remeda'],
|
|
34
|
+
libNamesPath: '.nodeve/lib-names.json',
|
|
35
|
+
threshold: 0.8,
|
|
36
|
+
allowlist: [],
|
|
37
|
+
},
|
|
38
|
+
// Opt-in: empty rules → no-op until a repo declares its own.
|
|
39
|
+
pageSize: { rules: [] },
|
|
40
|
+
// On by default: a workspace must declare a catalog (set enforce:false to opt out).
|
|
41
|
+
catalog: { enforce: true, allowlist: [] },
|
|
42
|
+
// Opt-in: no packages → no-op.
|
|
43
|
+
helperManifest: { packages: [], output: '.nodeve/helper-manifest.txt' },
|
|
44
|
+
};
|
|
45
|
+
const CONFIG_FILES = ['nodeve.checks.js', 'nodeve.checks.mjs', 'nodeve.checks.config.js'];
|
|
46
|
+
/** Load `nodeve.checks.*` from the repo root, shallow-merging each section over DEFAULTS. */
|
|
47
|
+
export async function loadConfig(root) {
|
|
48
|
+
for (const name of CONFIG_FILES) {
|
|
49
|
+
const path = join(root, name);
|
|
50
|
+
if (!existsSync(path))
|
|
51
|
+
continue;
|
|
52
|
+
const mod = (await import(pathToFileURL(path).href));
|
|
53
|
+
const user = mod.default ?? mod;
|
|
54
|
+
return {
|
|
55
|
+
docTokens: { ...DEFAULTS.docTokens, ...user.docTokens },
|
|
56
|
+
reshape: { ...DEFAULTS.reshape, ...user.reshape },
|
|
57
|
+
inlineDupes: { ...DEFAULTS.inlineDupes, ...user.inlineDupes },
|
|
58
|
+
helperCollisions: { ...DEFAULTS.helperCollisions, ...user.helperCollisions },
|
|
59
|
+
pageSize: { ...DEFAULTS.pageSize, ...user.pageSize },
|
|
60
|
+
catalog: { ...DEFAULTS.catalog, ...user.catalog },
|
|
61
|
+
helperManifest: { ...DEFAULTS.helperManifest, ...user.helperManifest },
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return DEFAULTS;
|
|
65
|
+
}
|
|
66
|
+
/** Shared CLI flag parsing — explicit paths plus the common toggles. */
|
|
67
|
+
export function parseArgs(argv) {
|
|
68
|
+
return {
|
|
69
|
+
paths: argv.filter((a) => !a.startsWith('--')),
|
|
70
|
+
warn: argv.includes('--warn'),
|
|
71
|
+
report: argv.includes('--report'),
|
|
72
|
+
verbose: argv.includes('--verbose'),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
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AC,QAAQ,CAAC,QAAQ,CAAC;QAC7B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;QACjC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;KACnC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Absolute path to the enclosing git work tree. Every check resolves its scope
|
|
3
|
+
* and reads against this, so a check behaves the same no matter which cwd the
|
|
4
|
+
* hook runner (or a developer) invokes it from.
|
|
5
|
+
*/
|
|
6
|
+
export declare function repoRoot(): string;
|
|
7
|
+
/**
|
|
8
|
+
* Tracked files matching any of `globs` (git pathspecs, repo-root-relative).
|
|
9
|
+
* git pathspec `*` matches `/`, so `apps/*.ts` recurses into subdirs. Returns
|
|
10
|
+
* `[]` for an empty glob list — an unconfigured opt-in check then no-ops.
|
|
11
|
+
*/
|
|
12
|
+
export declare function gitFiles(root: string, globs: string[]): string[];
|
|
13
|
+
//# sourceMappingURL=repo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../src/lib/repo.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,MAAM,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAIhE"}
|
package/dist/lib/repo.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process';
|
|
2
|
+
/**
|
|
3
|
+
* Absolute path to the enclosing git work tree. Every check resolves its scope
|
|
4
|
+
* and reads against this, so a check behaves the same no matter which cwd the
|
|
5
|
+
* hook runner (or a developer) invokes it from.
|
|
6
|
+
*/
|
|
7
|
+
export function repoRoot() {
|
|
8
|
+
return execFileSync('git', ['rev-parse', '--show-toplevel'], { encoding: 'utf8' }).trim();
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tracked files matching any of `globs` (git pathspecs, repo-root-relative).
|
|
12
|
+
* git pathspec `*` matches `/`, so `apps/*.ts` recurses into subdirs. Returns
|
|
13
|
+
* `[]` for an empty glob list — an unconfigured opt-in check then no-ops.
|
|
14
|
+
*/
|
|
15
|
+
export function gitFiles(root, globs) {
|
|
16
|
+
if (globs.length === 0)
|
|
17
|
+
return [];
|
|
18
|
+
const out = execFileSync('git', ['ls-files', ...globs], { cwd: root, encoding: 'utf8' });
|
|
19
|
+
return out.split('\n').filter(Boolean);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=repo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../src/lib/repo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,QAAQ;IACvB,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC3F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,KAAe;IACrD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,GAAG,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACzF,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Shared nodeve commit-gate checks, consumed via lefthook's `extends`:
|
|
2
|
+
#
|
|
3
|
+
# # lefthook.yml (consumer repo)
|
|
4
|
+
# extends:
|
|
5
|
+
# - node_modules/@nodeve/checks/lefthook.checks.yml
|
|
6
|
+
#
|
|
7
|
+
# Each job shells a published bin via its node_modules/.bin path — portable across
|
|
8
|
+
# pnpm and bun, and resolvable since lefthook runs from the repo root (lefthook
|
|
9
|
+
# does NOT add node_modules/.bin to PATH). Bins read the repo's optional
|
|
10
|
+
# `nodeve.checks.js` for budgets/globs/allowlists and derive the repo root from
|
|
11
|
+
# git, so they behave the same whatever cwd lefthook uses.
|
|
12
|
+
#
|
|
13
|
+
# `{staged_files}` scopes path-aware checks to what's being committed; the dup
|
|
14
|
+
# job scans its full configured scope because a duplicate is a property of the
|
|
15
|
+
# whole tree, not one file. Bypass with `git commit --no-verify`. Run a single
|
|
16
|
+
# check by hand any time, e.g. `node_modules/.bin/nodeve-check-doc-tokens --report`.
|
|
17
|
+
pre-commit:
|
|
18
|
+
parallel: true
|
|
19
|
+
jobs:
|
|
20
|
+
- name: doc-tokens
|
|
21
|
+
glob: "*.md"
|
|
22
|
+
run: node_modules/.bin/nodeve-check-doc-tokens {staged_files}
|
|
23
|
+
|
|
24
|
+
- name: reshape
|
|
25
|
+
glob: "*.ts"
|
|
26
|
+
run: node_modules/.bin/nodeve-check-reshape {staged_files}
|
|
27
|
+
|
|
28
|
+
- name: page-size
|
|
29
|
+
run: node_modules/.bin/nodeve-check-page-size {staged_files}
|
|
30
|
+
|
|
31
|
+
# Whole-tree property — every manifest's deps must single-source from a
|
|
32
|
+
# catalog. No-ops on repos without one, so it's safe to always run.
|
|
33
|
+
- name: catalog
|
|
34
|
+
glob: "**/package.json"
|
|
35
|
+
run: node_modules/.bin/nodeve-check-catalog
|
|
36
|
+
|
|
37
|
+
# Whole-tree relationships — scan the full configured scope, not just staged.
|
|
38
|
+
- name: inline-dupes
|
|
39
|
+
glob: "*.ts"
|
|
40
|
+
run: node_modules/.bin/nodeve-check-inline-dupes
|
|
41
|
+
|
|
42
|
+
- name: helper-collisions
|
|
43
|
+
glob: "*.ts"
|
|
44
|
+
run: node_modules/.bin/nodeve-check-helper-collisions {staged_files}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Copy to your repo root as `nodeve.checks.js` and trim to taste. Every section
|
|
2
|
+
// is optional — omitted keys fall back to the org defaults baked into
|
|
3
|
+
// @nodeve/checks. Shown values ARE the defaults unless noted.
|
|
4
|
+
export default {
|
|
5
|
+
docTokens: {
|
|
6
|
+
maxLines: 150,
|
|
7
|
+
maxTokens: 3000,
|
|
8
|
+
// Globs the gate fails on (git pathspecs; `*` recurses).
|
|
9
|
+
enforce: ['CLAUDE.md', 'guide/*.md', 'docs/*.md'],
|
|
10
|
+
// Per-file budget overrides, keyed by repo-root-relative path.
|
|
11
|
+
overrides: {
|
|
12
|
+
// 'CLAUDE.md': { maxTokens: 3500 },
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
reshape: {
|
|
17
|
+
globs: ['apps/*.ts', 'packages/*.ts'],
|
|
18
|
+
// `relPath::kind::keys` — confirmed boundaries where the identical-shape
|
|
19
|
+
// reshape IS the point (kind ∈ identity|spread-clone|projection|passthrough).
|
|
20
|
+
allowlist: [],
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
inlineDupes: {
|
|
24
|
+
globs: ['apps/*.ts'],
|
|
25
|
+
// Bare names that legitimately recur across files.
|
|
26
|
+
allowlist: [],
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
helperCollisions: {
|
|
30
|
+
globs: ['apps/*.ts', 'packages/*.ts'],
|
|
31
|
+
// Dependency surfaces you don't want reinvented inline.
|
|
32
|
+
libs: ['remeda'],
|
|
33
|
+
// Committed index, regenerated with `nodeve-build-lib-names`.
|
|
34
|
+
libNamesPath: '.nodeve/lib-names.json',
|
|
35
|
+
threshold: 0.8,
|
|
36
|
+
// `relPath::local→lib` — confirmed false positives.
|
|
37
|
+
allowlist: [],
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// Opt-in: empty by default → the check no-ops. Each rule fails a file matching
|
|
41
|
+
// `glob` that exceeds `maxLines`.
|
|
42
|
+
pageSize: {
|
|
43
|
+
rules: [
|
|
44
|
+
// { glob: '*+page.svelte', maxLines: 280 },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
// On by default. Every workspace MUST declare a catalog (pnpm-workspace.yaml
|
|
49
|
+
// or package.json#workspaces), and every dependency — deps, devDeps, peers —
|
|
50
|
+
// must reference it via `catalog:` rather than a literal pin. A repo with no
|
|
51
|
+
// catalog fails. Set `enforce: false` to deliberately opt out.
|
|
52
|
+
catalog: {
|
|
53
|
+
enforce: true,
|
|
54
|
+
// `manifest::name` — confirmed exceptions allowed to pin literally.
|
|
55
|
+
allowlist: [],
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
// Opt-in: list package dirs to index their public export surface for grepping.
|
|
59
|
+
helperManifest: {
|
|
60
|
+
packages: [
|
|
61
|
+
// 'packages/utils', 'packages/server',
|
|
62
|
+
],
|
|
63
|
+
output: '.nodeve/helper-manifest.txt',
|
|
64
|
+
},
|
|
65
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nodeve/checks",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Org-wide commit-gate checks (doc budgets, reshape/dup/helper smells, page size) and helper-index generators, driven by a per-repo config file and wired through lefthook.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"lefthook.checks.yml",
|
|
12
|
+
"nodeve.checks.example.js"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
"./config": {
|
|
16
|
+
"types": "./dist/lib/config.d.ts",
|
|
17
|
+
"default": "./dist/lib/config.js"
|
|
18
|
+
},
|
|
19
|
+
"./lefthook": "./lefthook.checks.yml"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"nodeve-check-doc-tokens": "./dist/bin/doc-tokens.js",
|
|
23
|
+
"nodeve-check-reshape": "./dist/bin/reshape.js",
|
|
24
|
+
"nodeve-check-inline-dupes": "./dist/bin/inline-dupes.js",
|
|
25
|
+
"nodeve-check-helper-collisions": "./dist/bin/helper-collisions.js",
|
|
26
|
+
"nodeve-check-page-size": "./dist/bin/page-size.js",
|
|
27
|
+
"nodeve-check-catalog": "./dist/bin/catalog.js",
|
|
28
|
+
"nodeve-build-lib-names": "./dist/bin/build-lib-names.js",
|
|
29
|
+
"nodeve-build-helper-manifest": "./dist/bin/build-helper-manifest.js"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"js-tiktoken": "^1.0.0",
|
|
33
|
+
"typescript": "^5.5.0",
|
|
34
|
+
"yaml": "^2.5.0",
|
|
35
|
+
"@nodeve/text": "0.1.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^22.0.0",
|
|
39
|
+
"@nodeve/config": "0.1.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"clean": "rm -rf dist",
|
|
44
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
45
|
+
}
|
|
46
|
+
}
|