paperlint 19.0.1 → 19.0.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/.claude-plugin/plugin.json +1 -1
- package/CLAUDE.md +2 -2
- package/dist/CLAUDE.md.spec.d.ts.map +1 -1
- package/dist/CLAUDE.md.spec.js +7 -1
- package/dist/CLAUDE.md.spec.js.map +1 -1
- package/dist/cli.d.ts +2 -21
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +46 -98
- package/dist/cli.js.map +1 -1
- package/dist/doctor.d.ts +8 -10
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +27 -37
- package/dist/doctor.js.map +1 -1
- package/dist/folder-layout-hook.js +1 -1
- package/dist/hooks-notice.d.ts +9 -1
- package/dist/hooks-notice.d.ts.map +1 -1
- package/dist/hooks-notice.js +16 -18
- package/dist/hooks-notice.js.map +1 -1
- package/dist/hooks-settings.d.ts +1 -1
- package/dist/hooks-settings.js +1 -1
- package/dist/init.d.ts +1 -1
- package/dist/init.js +5 -5
- package/dist/lib/paper-config.d.ts +4 -9
- package/dist/lib/paper-config.d.ts.map +1 -1
- package/dist/lib/paper-config.js +4 -9
- package/dist/lib/paper-config.js.map +1 -1
- package/dist/papers-roots.d.ts +19 -0
- package/dist/papers-roots.d.ts.map +1 -0
- package/dist/papers-roots.js +42 -0
- package/dist/papers-roots.js.map +1 -0
- package/dist/retired-hooks.d.ts +6 -0
- package/dist/retired-hooks.d.ts.map +1 -0
- package/dist/retired-hooks.js +34 -0
- package/dist/retired-hooks.js.map +1 -0
- package/dist/skill-chunks/chunk-C2G5EK7S.js +579 -0
- package/dist/skill-chunks/{chunk-UL4INX2P.js → chunk-L3NJUJUP.js} +446 -446
- package/dist/skill-chunks/{chunk-EOVEVX67.js → chunk-X4VKG4KT.js} +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/install.md +12 -14
- package/docs/layout.md +2 -5
- package/docs/rules/paper/allowed-files-only.md +1 -2
- package/docs/testing.md +1 -1
- package/eslint.config.mjs +1 -1
- package/lib/paper-config.harness.mjs +4 -8
- package/lib/paper-config.ts +4 -9
- package/package.json +2 -3
- package/plugin/hooks/hooks.json +0 -22
- package/scripts/coverage-config.test.ts +0 -1
- package/scripts/eslint-file-length.mjs +0 -1
- package/skills/argument-arc/scripts/headings.js +2 -2
- package/skills/build-label-page/scripts/label-page.js +125 -125
- package/skills/cold-read-diff/scripts/cold-read.js +11 -11
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +3 -3
- package/skills/paper-status/SKILL.md +1 -2
- package/skills/paper-status/SKILL.md.spec.ts +0 -1
- package/skills/pc-panel-review/scripts/prior-reviews.js +1 -1
- package/skills/verify-citations/scripts/bib-authors.js +3 -3
- package/skills/verify-citations/scripts/verify-cites.js +3 -3
- package/src/CLAUDE.md +16 -1
- package/src/CLAUDE.md.spec.ts +12 -1
- package/src/cli.harness.mjs +16 -80
- package/src/cli.test.ts +6 -36
- package/src/cli.ts +49 -145
- package/src/doctor.harness.mjs +17 -59
- package/src/doctor.test.ts +1 -1
- package/src/doctor.ts +26 -41
- package/src/domain/paper-folder.test.ts +1 -1
- package/src/folder-layout-hook.ts +1 -1
- package/src/hooks-notice.test.ts +21 -74
- package/src/hooks-notice.ts +37 -18
- package/src/hooks-settings.harness.ts +27 -29
- package/src/hooks-settings.ts +1 -1
- package/src/in-process-hooks.test.ts +18 -0
- package/src/init.ts +5 -5
- package/src/lint-edited-site-example.test.ts +0 -3
- package/src/papers-roots.test.ts +56 -0
- package/src/papers-roots.ts +56 -0
- package/src/retired-hooks.test.ts +155 -0
- package/src/retired-hooks.ts +41 -0
- package/src/types.ts +1 -1
- package/dist/skill-chunks/chunk-GRSXIWYF.js +0 -352
- package/hooks/CLAUDE.md +0 -34
- package/hooks/CLAUDE.md.spec.ts +0 -30
- package/hooks/hooks.harness.ts +0 -704
- package/hooks/paper-edit-guard.hook.d.mts +0 -12
- package/hooks/paper-edit-guard.hook.mjs +0 -443
- package/hooks/paper-edit-guard.test.ts +0 -66
- package/hooks/paper-skills-nudge.hook.d.mts +0 -22
- package/hooks/paper-skills-nudge.hook.mjs +0 -199
- package/hooks/paper-skills-nudge.test.ts +0 -122
- package/hooks/paper-status-gates.hook.mjs +0 -158
- package/hooks/paper-status-gates.sh +0 -93
- package/hooks/paper-status-gates.test.ts +0 -101
package/dist/hooks-notice.js
CHANGED
|
@@ -25,28 +25,26 @@ import { callerPath } from "./caller-path.js";
|
|
|
25
25
|
import { isRecord } from "./domain/record.js";
|
|
26
26
|
import { SKILLS_HOME } from "./link-skills.js";
|
|
27
27
|
/** The hooks that may carry the notice: PostToolUse ones. A PreToolUse hook never does. */
|
|
28
|
-
export const NOTICE_HOOKS = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
28
|
+
export const NOTICE_HOOKS = ["lint-edited"];
|
|
29
|
+
/** What `paperlint hook [name]` says when it cannot run a hook: no name, or no such hook shipped. It names the remedy; the caller does not deny (#324). */
|
|
30
|
+
export const hookNotRunningText = (name, version) => name === undefined || name === ""
|
|
31
|
+
? "paperlint: `hook` needs a name, e.g. `paperlint hook lint-edited`; no hook is running."
|
|
32
|
+
: `paperlint: unknown hook \`${name}\` — this paperlint has no such hook; it is NOT running (installed: paperlint ${version}). Run \`npm install\`, or remove \`paperlint hook ${name}\` from .claude/settings.json.`;
|
|
33
33
|
/** Where the version last told is kept, relative to the project root. */
|
|
34
34
|
export const NOTICE_STATE = join("node_modules", ".cache", "paperlint", "unwired-hooks.json");
|
|
35
35
|
const SKILLS_HOME_SHOWN = `${SKILLS_HOME}/`;
|
|
36
|
+
/** One clause of the notice: the names after their sentence, or nothing when there are none. */
|
|
37
|
+
const clause = (names, says) => names.length === 0 ? [] : [`${says}: ${names.join(", ")}`];
|
|
38
|
+
/** The clauses the notice joins: missing hooks, unlinked skills, retired hooks still wired. */
|
|
39
|
+
const owedClauses = (missing, owed) => [
|
|
40
|
+
...clause(missing, "expects hooks that this project has not wired"),
|
|
41
|
+
...clause(owed.skills ?? [], `ships skills that are not linked into ${SKILLS_HOME_SHOWN}`),
|
|
42
|
+
...clause(owed.retired ?? [], "no longer ships hooks this project still wires, which now run nothing"),
|
|
43
|
+
].join(", and ");
|
|
36
44
|
/** The instruction the agent reads. `byHand`: `init` writes no hooks then, so the remedy differs. */
|
|
37
|
-
export const noticeText = (version, missing, byHand,
|
|
38
|
-
const what =
|
|
39
|
-
|
|
40
|
-
? []
|
|
41
|
-
: [
|
|
42
|
-
`expects hooks that this project has not wired: ${missing.join(", ")}`,
|
|
43
|
-
]),
|
|
44
|
-
...(skills.length === 0
|
|
45
|
-
? []
|
|
46
|
-
: [
|
|
47
|
-
`ships skills that are not linked into ${SKILLS_HOME_SHOWN}: ${skills.join(", ")}`,
|
|
48
|
-
]),
|
|
49
|
-
].join(", and ");
|
|
45
|
+
export const noticeText = (version, missing, byHand, owed = {}) => {
|
|
46
|
+
const what = owedClauses(missing, owed);
|
|
47
|
+
const skills = owed.skills ?? [];
|
|
50
48
|
const handHooks = byHand && missing.length > 0;
|
|
51
49
|
return (`⚠ paperlint ${version} ${what}. ` +
|
|
52
50
|
(handHooks
|
package/dist/hooks-notice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-notice.js","sourceRoot":"","sources":["../src/hooks-notice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,2FAA2F;AAC3F,MAAM,CAAC,MAAM,YAAY,GAAsB
|
|
1
|
+
{"version":3,"file":"hooks-notice.js","sourceRoot":"","sources":["../src/hooks-notice.ts"],"names":[],"mappings":"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/hooks-settings.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type WireResult = {
|
|
|
91
91
|
* 🔴 ANOTHER SPELLING OF THE SAME HOOK STOPS THE WRITE. vigiles' merge owns only commands whose
|
|
92
92
|
* path token is MANAGED_BY; a hook wired by hand through `vigiles … run-program …/hooks/x.hook.mjs`
|
|
93
93
|
* is not recognised as ours, so a merge would ADD a second copy — and Claude Code dedupes only
|
|
94
|
-
* identical handlers, so the
|
|
94
|
+
* identical handlers, so the hook would run twice. Writing nothing and saying so is the only
|
|
95
95
|
* answer that cannot make it worse.
|
|
96
96
|
*/
|
|
97
97
|
export declare function wireHooks(root: string, merge: Merge, wiring?: Wiring): WireResult;
|
package/dist/hooks-settings.js
CHANGED
|
@@ -168,7 +168,7 @@ export function readSettings(root) {
|
|
|
168
168
|
* 🔴 ANOTHER SPELLING OF THE SAME HOOK STOPS THE WRITE. vigiles' merge owns only commands whose
|
|
169
169
|
* path token is MANAGED_BY; a hook wired by hand through `vigiles … run-program …/hooks/x.hook.mjs`
|
|
170
170
|
* is not recognised as ours, so a merge would ADD a second copy — and Claude Code dedupes only
|
|
171
|
-
* identical handlers, so the
|
|
171
|
+
* identical handlers, so the hook would run twice. Writing nothing and saying so is the only
|
|
172
172
|
* answer that cannot make it worse.
|
|
173
173
|
*/
|
|
174
174
|
export function wireHooks(root, merge, wiring = shippedWiring()) {
|
package/dist/init.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export type HooksOutcome = WireResult | {
|
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
146
|
* The hooks step: decide, then wire. `hooks: false` is `--no-hooks`. The default without a human
|
|
147
|
-
* is YES — installing a package whose purpose includes an
|
|
147
|
+
* is YES — installing a package whose purpose includes checking an agent's edits makes "yes" guessable, and
|
|
148
148
|
* the edit is idempotent and shows up in `git diff` (the rule `docs/install.md` took from
|
|
149
149
|
* Playwright: ask only about what cannot be guessed or is expensive).
|
|
150
150
|
*/
|
package/dist/init.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 🔴 THE HOOKS, THE RULES AND THE CLI READ THE PAPERS DIRECTORY FROM ONE PLACE — the root
|
|
5
5
|
* `paperlint.json`, or its default `papers` when the file is absent. An install that wrote it
|
|
6
|
-
* anywhere else would give
|
|
7
|
-
*
|
|
6
|
+
* anywhere else would give hooks watching a directory that does not exist — and a
|
|
7
|
+
* hook watching nothing is byte-identical, from outside, to a hook that is working (issue #33).
|
|
8
8
|
*
|
|
9
9
|
* The yardstick is how many actions happen between "I want this" and "it works": two, `npm i` and
|
|
10
10
|
* this command (`docs/install.md`). Nothing is left to edit by hand.
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* only place Claude Code looks for project skills (`link-skills.ts`). An
|
|
20
20
|
* entry of the same name that paperlint did not make is reported, never replaced.
|
|
21
21
|
* hooks WRITTEN into `.claude/settings.json` by vigiles' merge (`hooks-settings.ts`);
|
|
22
|
-
* asked of a human (Yes preselected), YES without one —
|
|
23
|
-
* for, and the edit is idempotent and visible in `git diff`. `--no-hooks` skips.
|
|
22
|
+
* asked of a human (Yes preselected), YES without one — checking an agent's edits is what the package
|
|
23
|
+
* is for, and the edit is idempotent and visible in `git diff`. `--no-hooks` skips.
|
|
24
24
|
* CI workflow ASKED, because writing a file into `.github/` is not guessable and not
|
|
25
25
|
* cheap to undo. Prior art: Playwright's initializer asks exactly this.
|
|
26
26
|
* Without a human: NO.
|
|
@@ -293,7 +293,7 @@ export function nextSteps(papersDir = DEFAULT_PAPERS_ROOT, { toolchain = false }
|
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* The hooks step: decide, then wire. `hooks: false` is `--no-hooks`. The default without a human
|
|
296
|
-
* is YES — installing a package whose purpose includes an
|
|
296
|
+
* is YES — installing a package whose purpose includes checking an agent's edits makes "yes" guessable, and
|
|
297
297
|
* the edit is idempotent and shows up in `git diff` (the rule `docs/install.md` took from
|
|
298
298
|
* Playwright: ask only about what cannot be guessed or is expensive).
|
|
299
299
|
*/
|
|
@@ -2,16 +2,11 @@
|
|
|
2
2
|
* Where the consumer declares its settings — the ONE SOURCE for everything that is allowed to
|
|
3
3
|
* import it.
|
|
4
4
|
*
|
|
5
|
-
* 🔴
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* arbitrary — a hook's capabilities equal its API surface, so allowing imports would mean
|
|
9
|
-
* allowing a reach into `child_process`. The restriction is wider than strictly necessary
|
|
10
|
-
* (importing plain constants adds no capability), and that is discussed in zernie/vigiles#245,
|
|
11
|
-
* but until it is relaxed the hooks duplicate, and drift is caught by the cross-check in
|
|
12
|
-
* `hooks/hooks.harness.ts`.
|
|
5
|
+
* 🔴 NO HOOK KEEPS A COPY. The hooks once were vigiles programs (`hooks/*.hook.mjs`), forbidden to
|
|
6
|
+
* import anything but `vigiles/hook`, so each carried its own copy of these values; they now run
|
|
7
|
+
* in-process and import from here (zernie/vigiles#245, #472 for the way back to the runtime).
|
|
13
8
|
*
|
|
14
|
-
* 🔴
|
|
9
|
+
* 🔴 THE REST WERE DUPLICATING FOR NO REASON AT ALL. `eslint-rules/papers.mjs` and
|
|
15
10
|
* `skills/paper-pipeline/scripts/consumer.mjs` are not hooks, carry no import restriction, and
|
|
16
11
|
* could always have taken the value from here. Worse, their copies were not covered by the
|
|
17
12
|
* cross-check at all — it compared the three hooks against each other, while these two lived
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-config.d.ts","sourceRoot":"","sources":["../../lib/paper-config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paper-config.d.ts","sourceRoot":"","sources":["../../lib/paper-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,MAAoB,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,MAAyB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAGzC,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAoB,GAC7C,MAAM,CAmBR;AAKD;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAQ/C;AAED,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB,EAAE,MAAiB,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAoB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BzD,CAAC;AAEH,8FAA8F;AAC9F,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAO3C,CAAC;AAEH,sGAAsG;AACtG,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAO1C,CAAC"}
|
package/dist/lib/paper-config.js
CHANGED
|
@@ -2,16 +2,11 @@
|
|
|
2
2
|
* Where the consumer declares its settings — the ONE SOURCE for everything that is allowed to
|
|
3
3
|
* import it.
|
|
4
4
|
*
|
|
5
|
-
* 🔴
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* arbitrary — a hook's capabilities equal its API surface, so allowing imports would mean
|
|
9
|
-
* allowing a reach into `child_process`. The restriction is wider than strictly necessary
|
|
10
|
-
* (importing plain constants adds no capability), and that is discussed in zernie/vigiles#245,
|
|
11
|
-
* but until it is relaxed the hooks duplicate, and drift is caught by the cross-check in
|
|
12
|
-
* `hooks/hooks.harness.ts`.
|
|
5
|
+
* 🔴 NO HOOK KEEPS A COPY. The hooks once were vigiles programs (`hooks/*.hook.mjs`), forbidden to
|
|
6
|
+
* import anything but `vigiles/hook`, so each carried its own copy of these values; they now run
|
|
7
|
+
* in-process and import from here (zernie/vigiles#245, #472 for the way back to the runtime).
|
|
13
8
|
*
|
|
14
|
-
* 🔴
|
|
9
|
+
* 🔴 THE REST WERE DUPLICATING FOR NO REASON AT ALL. `eslint-rules/papers.mjs` and
|
|
15
10
|
* `skills/paper-pipeline/scripts/consumer.mjs` are not hooks, carry no import restriction, and
|
|
16
11
|
* could always have taken the value from here. Worse, their copies were not covered by the
|
|
17
12
|
* cross-check at all — it compared the three hooks against each other, while these two lived
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-config.js","sourceRoot":"","sources":["../../lib/paper-config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paper-config.js","sourceRoot":"","sources":["../../lib/paper-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAW,WAAW,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC5D,WAAW;IACX,oBAAoB;CACrB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,QAAgB,EAChB,SAAoC,UAAU;IAE9C,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,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AmB,GAAW,QAAQ,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAW,WAAW,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAqC,MAAM,CAAC,MAAM,CAAC;IAC3E,SAAS,EAAE,mEAAmE;IAC9E,SAAS,EAAE,0DAA0D;IACrE,KAAK,EACH,sHAAsH;IACxH,OAAO,EACL,4FAA4F;IAC9F,IAAI,EAAE,iEAAiE;IACvE,GAAG,EAAE,qFAAqF;IAC1F,QAAQ,EACN,oMAAoM;IACtM,IAAI,EAAE,iMAAiM;IACvM,UAAU,EACR,wNAAwN;IAC1N,OAAO,EACL,yNAAyN;IAC3N,MAAM,EACJ,oaAAoa;IACta,MAAM,EACJ,gTAAgT;IAClT,QAAQ,EACN,0UAA0U;IAC5U,OAAO,EAAE,kDAAkD;IAC3D,QAAQ,EAAE,yDAAyD;IACnE,YAAY,EAAE,6DAA6D;IAC3E,YAAY,EACV,sEAAsE;IACxE,QAAQ,EAAE,gEAAgE;CAC3E,CAAC,CAAC;AAEH,8FAA8F;AAC9F,MAAM,CAAC,MAAM,eAAe,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC9D,MAAM;IACN,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,UAAU;CACX,CAAC,CAAC;AAEH,sGAAsG;AACtG,MAAM,CAAC,MAAM,cAAc,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC7D,WAAW;IACX,WAAW;IACX,SAAS;IACT,UAAU;IACV,cAAc;IACd,cAAc;CACf,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The papers directory field of the settings, read by its one declared name; the default when absent. */
|
|
2
|
+
export declare function papersDirOf(opts: {
|
|
3
|
+
readonly papersDir?: unknown;
|
|
4
|
+
}): unknown;
|
|
5
|
+
/** The papers directory may be one directory or several; both spellings normalise to a list. */
|
|
6
|
+
export declare function toPaths(papers: unknown): readonly string[];
|
|
7
|
+
/** The papers directories of a read config, absolute: each relative to the project root. */
|
|
8
|
+
export declare const papersRoots: (cfg: {
|
|
9
|
+
readonly opts: {
|
|
10
|
+
readonly papersDir?: unknown;
|
|
11
|
+
};
|
|
12
|
+
readonly root: string;
|
|
13
|
+
}) => readonly string[];
|
|
14
|
+
/**
|
|
15
|
+
* The segments of `file` below the first of `roots` that holds it, the paper's folder first; null
|
|
16
|
+
* when it is under none of them. `file` must be absolute; so must the roots (`papersRoots`).
|
|
17
|
+
*/
|
|
18
|
+
export declare function segmentsUnder(file: string, roots: readonly string[]): readonly string[] | null;
|
|
19
|
+
//# sourceMappingURL=papers-roots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"papers-roots.d.ts","sourceRoot":"","sources":["../src/papers-roots.ts"],"names":[],"mappings":"AAcA,0GAA0G;AAC1G,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAG3E;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CAO1D;AAED,4FAA4F;AAC5F,eAAO,MAAM,WAAW,GAAI,KAAK;IAC/B,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,KAAG,SAAS,MAAM,EACkD,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,SAAS,MAAM,EAAE,GAAG,IAAI,CAW1B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the project's papers are, and where a path sits among them: the one reader of the
|
|
3
|
+
* `papersDir` setting, for `paperlint lint` and for the hooks that ask which paper a write lands in.
|
|
4
|
+
*
|
|
5
|
+
* ── WHY ONE MODULE ───────────────────────────────────────────────────────────────
|
|
6
|
+
* The hooks shipped as standalone programs could import nothing but `vigiles/hook`, so each read the
|
|
7
|
+
* setting again and tidied its spelling with regular expressions; `"./papers"`, `"x/../papers"` and a
|
|
8
|
+
* list of directories each slipped past a different copy (#326). Here the setting is read once, every
|
|
9
|
+
* directory is made absolute with `path.resolve`, and a path is placed by `path.relative`, so every
|
|
10
|
+
* spelling the project root resolves the same way is the same directory, by construction.
|
|
11
|
+
*/
|
|
12
|
+
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
13
|
+
import { DEFAULT_PAPERS_ROOT } from "#lib/paper-config";
|
|
14
|
+
/** The papers directory field of the settings, read by its one declared name; the default when absent. */
|
|
15
|
+
export function papersDirOf(opts) {
|
|
16
|
+
const declared = opts.papersDir;
|
|
17
|
+
return declared === undefined ? DEFAULT_PAPERS_ROOT : declared;
|
|
18
|
+
}
|
|
19
|
+
/** The papers directory may be one directory or several; both spellings normalise to a list. */
|
|
20
|
+
export function toPaths(papers) {
|
|
21
|
+
if (typeof papers === "string")
|
|
22
|
+
return papers.trim() ? [papers.trim()] : [];
|
|
23
|
+
if (Array.isArray(papers))
|
|
24
|
+
return papers.filter((x) => typeof x === "string" && x.trim() !== "");
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
/** The papers directories of a read config, absolute: each relative to the project root. */
|
|
28
|
+
export const papersRoots = (cfg) => toPaths(papersDirOf(cfg.opts)).map((rel) => resolve(cfg.root, rel));
|
|
29
|
+
/**
|
|
30
|
+
* The segments of `file` below the first of `roots` that holds it, the paper's folder first; null
|
|
31
|
+
* when it is under none of them. `file` must be absolute; so must the roots (`papersRoots`).
|
|
32
|
+
*/
|
|
33
|
+
export function segmentsUnder(file, roots) {
|
|
34
|
+
const below = roots
|
|
35
|
+
.map((root) => relative(root, file))
|
|
36
|
+
.find((rel) => rel !== "" &&
|
|
37
|
+
rel !== ".." &&
|
|
38
|
+
!rel.startsWith(`..${sep}`) &&
|
|
39
|
+
!isAbsolute(rel));
|
|
40
|
+
return below === undefined ? null : below.split(sep);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=papers-roots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"papers-roots.js","sourceRoot":"","sources":["../src/papers-roots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,0GAA0G;AAC1G,MAAM,UAAU,WAAW,CAAC,IAAsC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;IAChC,OAAO,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC;AACjE,CAAC;AAED,gGAAgG;AAChG,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAC7D,CAAC;IACJ,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,4FAA4F;AAC5F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAG3B,EAAqB,EAAE,CACtB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,KAAwB;IAExB,MAAM,KAAK,GAAG,KAAK;SAChB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SACnC,IAAI,CACH,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,KAAK,EAAE;QACV,GAAG,KAAK,IAAI;QACZ,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC;QAC3B,CAAC,UAAU,CAAC,GAAG,CAAC,CACnB,CAAC;IACJ,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const RETIRED_HOOKS: readonly string[];
|
|
2
|
+
/** The retired hooks the project's settings still run, in any spelling, each once; none when the file does not parse. */
|
|
3
|
+
export declare function retiredWired(root: string): readonly string[];
|
|
4
|
+
/** What `paperlint doctor` prints under its hooks section for them; nothing when none is wired. */
|
|
5
|
+
export declare const retiredLines: (retired: readonly string[]) => readonly string[];
|
|
6
|
+
//# sourceMappingURL=retired-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retired-hooks.d.ts","sourceRoot":"","sources":["../src/retired-hooks.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAI1C,CAAC;AAEF,yHAAyH;AACzH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAQ5D;AAED,mGAAmG;AACnG,eAAO,MAAM,YAAY,GAAI,SAAS,SAAS,MAAM,EAAE,KAAG,SAAS,MAAM,EAMlE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hooks an earlier paperlint shipped and this one does not. `paperlint init` writes the hook entries
|
|
3
|
+
* into `.claude/settings.json` once, and an upgrade does not run it again, so a project keeps calling
|
|
4
|
+
* a removed hook on every tool call. Running `init` again rewrites every entry it wrote, which drops
|
|
5
|
+
* them (measured on 2026-11-23); until then `paperlint hook <name>` runs nothing for these names and
|
|
6
|
+
* exits 0, and `paperlint doctor` and the once-per-version notice name them.
|
|
7
|
+
*
|
|
8
|
+
* A name is added here in the release that removes the hook, and is never taken out.
|
|
9
|
+
*/
|
|
10
|
+
import { SETTINGS_PATH, commandsIn, hookRun, readSettings, } from "./hooks-settings.js";
|
|
11
|
+
export const RETIRED_HOOKS = [
|
|
12
|
+
"paper-status-gates",
|
|
13
|
+
"paper-edit-guard",
|
|
14
|
+
"paper-skills-nudge",
|
|
15
|
+
];
|
|
16
|
+
/** The retired hooks the project's settings still run, in any spelling, each once; none when the file does not parse. */
|
|
17
|
+
export function retiredWired(root) {
|
|
18
|
+
const read = readSettings(root);
|
|
19
|
+
if (read.status === "unparsable")
|
|
20
|
+
return [];
|
|
21
|
+
const names = commandsIn(read.settings).flatMap(({ command }) => {
|
|
22
|
+
const run = hookRun(command);
|
|
23
|
+
return run !== null && RETIRED_HOOKS.includes(run.name) ? [run.name] : [];
|
|
24
|
+
});
|
|
25
|
+
return [...new Set(names)];
|
|
26
|
+
}
|
|
27
|
+
/** What `paperlint doctor` prints under its hooks section for them; nothing when none is wired. */
|
|
28
|
+
export const retiredLines = (retired) => retired.length === 0
|
|
29
|
+
? []
|
|
30
|
+
: [
|
|
31
|
+
` ⚠ retired — still wired, but this paperlint no longer ships: ${retired.join(", ")}`,
|
|
32
|
+
` they run nothing now; \`npx paperlint init\` removes the entries it wrote, delete any others from ${SETTINGS_PATH}`,
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=retired-hooks.js.map
|
|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