paperlint 18.4.0 → 18.5.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.
Files changed (104) hide show
  1. package/CLAUDE.md +5 -1
  2. package/dist/adapters/latex/abstract.d.ts +11 -0
  3. package/dist/adapters/latex/abstract.d.ts.map +1 -1
  4. package/dist/adapters/latex/abstract.js +1 -1
  5. package/dist/adapters/latex/abstract.js.map +1 -1
  6. package/dist/adapters/latex/index.d.ts.map +1 -1
  7. package/dist/adapters/latex/index.js +3 -0
  8. package/dist/adapters/latex/index.js.map +1 -1
  9. package/dist/adapters/latex/macros.d.ts +6 -0
  10. package/dist/adapters/latex/macros.d.ts.map +1 -0
  11. package/dist/adapters/latex/macros.js +27 -0
  12. package/dist/adapters/latex/macros.js.map +1 -0
  13. package/dist/adapters/osf/host.io.d.ts +12 -0
  14. package/dist/adapters/osf/host.io.d.ts.map +1 -0
  15. package/dist/adapters/osf/host.io.js +119 -0
  16. package/dist/adapters/osf/host.io.js.map +1 -0
  17. package/dist/adapters/osf/index.d.ts +10 -0
  18. package/dist/adapters/osf/index.d.ts.map +1 -0
  19. package/dist/adapters/osf/index.js +10 -0
  20. package/dist/adapters/osf/index.js.map +1 -0
  21. package/dist/adapters/osf/response.d.ts +11 -0
  22. package/dist/adapters/osf/response.d.ts.map +1 -0
  23. package/dist/adapters/osf/response.js +87 -0
  24. package/dist/adapters/osf/response.js.map +1 -0
  25. package/dist/artifact-upload-rule.d.ts +66 -0
  26. package/dist/artifact-upload-rule.d.ts.map +1 -0
  27. package/dist/artifact-upload-rule.js +151 -0
  28. package/dist/artifact-upload-rule.js.map +1 -0
  29. package/dist/artifact.d.ts +35 -0
  30. package/dist/artifact.d.ts.map +1 -0
  31. package/dist/artifact.js +251 -0
  32. package/dist/artifact.js.map +1 -0
  33. package/dist/cli.d.ts +9 -1
  34. package/dist/cli.d.ts.map +1 -1
  35. package/dist/cli.js +136 -23
  36. package/dist/cli.js.map +1 -1
  37. package/dist/domain/artifact-upload.d.ts +44 -0
  38. package/dist/domain/artifact-upload.d.ts.map +1 -0
  39. package/dist/domain/artifact-upload.js +80 -0
  40. package/dist/domain/artifact-upload.js.map +1 -0
  41. package/dist/domain/paper-dirs.d.ts +16 -0
  42. package/dist/domain/paper-dirs.d.ts.map +1 -0
  43. package/dist/domain/paper-dirs.js +42 -0
  44. package/dist/domain/paper-dirs.js.map +1 -0
  45. package/dist/eslint-rules/CLAUDE.md.spec.d.ts.map +1 -1
  46. package/dist/eslint-rules/CLAUDE.md.spec.js +1 -0
  47. package/dist/eslint-rules/CLAUDE.md.spec.js.map +1 -1
  48. package/dist/paper-files.d.ts +25 -42
  49. package/dist/paper-files.d.ts.map +1 -1
  50. package/dist/paper-files.js +101 -9
  51. package/dist/paper-files.js.map +1 -1
  52. package/dist/ports/artifact-host.d.ts +54 -0
  53. package/dist/ports/artifact-host.d.ts.map +1 -0
  54. package/dist/ports/artifact-host.js +2 -0
  55. package/dist/ports/artifact-host.js.map +1 -0
  56. package/dist/ports/latex.d.ts +9 -0
  57. package/dist/ports/latex.d.ts.map +1 -1
  58. package/dist/submission-confirm-hook.d.ts +11 -1
  59. package/dist/submission-confirm-hook.d.ts.map +1 -1
  60. package/dist/submission-confirm-hook.js +83 -21
  61. package/dist/submission-confirm-hook.js.map +1 -1
  62. package/dist/types.d.ts +6 -0
  63. package/dist/types.d.ts.map +1 -1
  64. package/docs/artifact-upload.md +124 -0
  65. package/docs/optional-rules.md +1 -0
  66. package/docs/osf-artifact.md +4 -1
  67. package/docs/rules/artifact/upload-current.md +85 -0
  68. package/docs/rules.md +1 -0
  69. package/eslint-rules/CLAUDE.md +5 -1
  70. package/eslint-rules/CLAUDE.md.spec.ts +3 -0
  71. package/package.json +1 -1
  72. package/src/adapters/latex/abstract.ts +3 -1
  73. package/src/adapters/latex/index.ts +3 -0
  74. package/src/adapters/latex/macros.test.ts +31 -0
  75. package/src/adapters/latex/macros.ts +43 -0
  76. package/src/adapters/osf/cassette/README.md +20 -0
  77. package/src/adapters/osf/cassette/get-file.json +108 -0
  78. package/src/adapters/osf/cassette/get-listing.json +111 -0
  79. package/src/adapters/osf/cassette/get-missing.json +1 -0
  80. package/src/adapters/osf/cassette/put-new.json +31 -0
  81. package/src/adapters/osf/host.io.ts +156 -0
  82. package/src/adapters/osf/host.test.ts +274 -0
  83. package/src/adapters/osf/index.ts +14 -0
  84. package/src/adapters/osf/response.ts +105 -0
  85. package/src/artifact-upload-rule.test.ts +213 -0
  86. package/src/artifact-upload-rule.ts +213 -0
  87. package/src/artifact.test.ts +504 -0
  88. package/src/artifact.ts +402 -0
  89. package/src/cli.test.ts +271 -1
  90. package/src/cli.ts +168 -23
  91. package/src/domain/artifact-upload.test.ts +80 -0
  92. package/src/domain/artifact-upload.ts +111 -0
  93. package/src/domain/paper-dirs.test.ts +91 -0
  94. package/src/domain/paper-dirs.ts +62 -0
  95. package/src/new-paper.test.ts +8 -2
  96. package/src/paper-files.test.ts +88 -0
  97. package/src/paper-files.ts +98 -9
  98. package/src/paper-settings-commands.test.ts +18 -0
  99. package/src/ports/artifact-host.ts +65 -0
  100. package/src/ports/latex.ts +10 -0
  101. package/src/rule-cases.test.ts +44 -0
  102. package/src/submission-confirm-hook.test.ts +113 -1
  103. package/src/submission-confirm-hook.ts +120 -27
  104. package/src/types.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"submission-confirm-hook.d.ts","sourceRoot":"","sources":["../src/submission-confirm-hook.ts"],"names":[],"mappings":"AAkEA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAG5D,4GAA4G;AAC5G,UAAU,SAAS;IACjB,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,wEAAwE;IACxE,OAAO,CAAC,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,C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;AAyQD,0GAA0G;AAC1G,eAAO,MAAM,gBAAgB,EAAE,UAE9B,CAAC;AA+BF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,WAAW,GAChB,UAAU,GAAG,IAAI,CAenB"}
@@ -3,7 +3,8 @@
3
3
  * PreToolUse on `Bash` (`plugin/hooks/hooks.json`): a command that sends a submission — `paperlint
4
4
  * submission new|update` with `--save` or `--submit` — runs only when the person has said yes, in an
5
5
  * `AskUserQuestion` asked since the last send, to a question naming the paper folder (its full path)
6
- * and the sha256 of the PDF it sends.
6
+ * and the sha256 of the PDF it sends. An upload of the artifact, `paperlint artifact upload … --save`,
7
+ * is a send too: the question names the paper folder and the sha256 of the file it uploads.
7
8
  * A command that names a portal's host runs only after a yes to a question naming that host and the
8
9
  * command's first 60 characters. Without the yes the command is refused (`"permissionDecision":
9
10
  * "deny"`), and the reason tells the agent exactly what to ask. Anything else: no output.
@@ -85,12 +86,22 @@ function allLeaves(command, parse) {
85
86
  ...top.flatMap((l) => l.args.filter((a) => /\s/u.test(a)).flatMap((a) => allLeaves(a, parse))),
86
87
  ];
87
88
  }
88
- /** A `paperlint submission new|update` with `--save` or `--submit`, in the words of one command. */
89
+ /**
90
+ * Where a `paperlint artifact … upload … --save` stands in one command's words; -1 for none. The CLI
91
+ * reads the subcommand wherever the flags leave it (`artifact --to osf upload …`), so any `upload`
92
+ * after `artifact` counts here; `readUpload`, the CLI's own parser, then reads the words, and words
93
+ * it cannot read cleanly are refused rather than let through.
94
+ */
95
+ const uploadAt = (l) => l.hasFlag("save")
96
+ ? l.args.findIndex((x, i) => x === "artifact" && l.args.slice(i + 1).includes("upload"))
97
+ : -1;
98
+ /** A `paperlint submission new|update` with `--save` or `--submit`, or an upload that saves, in the words of one command. */
89
99
  function isSend(l) {
90
100
  const at = l.args.indexOf("submission");
91
- return (at >= 0 &&
101
+ return ((at >= 0 &&
92
102
  l.args.slice(at + 1).some((w) => w === "new" || w === "update") &&
93
- l.hasFlag("save", "submit"));
103
+ l.hasFlag("save", "submit")) ||
104
+ uploadAt(l) >= 0);
94
105
  }
95
106
  /** Programs that change the directory the rest of the command line runs in. */
96
107
  const MOVES = new Set(["cd", "pushd", "popd"]);
@@ -99,15 +110,23 @@ const MOVES = new Set(["cd", "pushd", "popd"]);
99
110
  * argument parser reads them, or null where they cannot be told for certain — the words do not
100
111
  * parse, or something before it may have changed the directory.
101
112
  */
102
- function sendsIn(leaves, readSend) {
113
+ function sendsIn(leaves, deps) {
103
114
  return leaves.flatMap((l, n) => {
104
115
  const at = l.args.findIndex((x, i) => x === "submission" && /^(?:new|update)$/u.test(l.args[i + 1] ?? ""));
105
- if (at < 0 || !l.hasFlag("save", "submit"))
116
+ const sends = at >= 0 && l.hasFlag("save", "submit");
117
+ const up = uploadAt(l);
118
+ if (!sends && up < 0)
106
119
  return [];
107
120
  const moved = leaves
108
121
  .slice(0, n + 1)
109
122
  .some((x) => MOVES.has(x.head) || x.chdir !== null);
110
- return [moved ? null : readSend(l.args.slice(at + 1))];
123
+ if (moved)
124
+ return [null];
125
+ return [
126
+ sends
127
+ ? deps.readSend(l.args.slice(at + 1))
128
+ : deps.readUpload(l.args.slice(up + 1)),
129
+ ];
111
130
  });
112
131
  }
113
132
  /** The words of the commands that may name a host: those with a dot, lowercased. */
@@ -157,8 +176,25 @@ function factsLines(paperDir, sha, files) {
157
176
  : [];
158
177
  return [...stale, bodyPages(f.value)];
159
178
  }
179
+ /** One upload, described: the paper, the file it uploads and its sha256, and where it goes. */
180
+ function describeUpload(u, cwd, files) {
181
+ const paperDir = resolve(cwd, u.paper ?? ".");
182
+ const bytes = files.readBytes(callerPath(resolve(cwd, u.artifact)));
183
+ const sha = bytes === null ? null : sha256Hex(bytes).slice(0, SHA_SHOWN);
184
+ return {
185
+ upload: true,
186
+ named: sha === null ? null : { folder: paperDir, sha, project: u.project },
187
+ lines: [
188
+ `paper folder: ${paperDir}`,
189
+ `artifact: ${u.artifact}${sha === null ? " — NOT FOUND" : `, sha256 ${sha}`}`,
190
+ `to: ${u.host} project ${u.project}`,
191
+ ],
192
+ };
193
+ }
160
194
  /** One send, described: the paper, the PDF as the command resolves it, what the build saw. */
161
195
  function describe(send, cwd, deps) {
196
+ if ("artifact" in send)
197
+ return describeUpload(send, cwd, deps.files);
162
198
  const paperDir = resolve(cwd, send.paper ?? ".");
163
199
  const p = paperPreset(paperDir, deps);
164
200
  const own = paperPdf(paperDir, p.kind === "settings-problem" ? null : p.settings);
@@ -180,6 +216,14 @@ const SHA_SHOWN = 12;
180
216
  const UNRESOLVED = "could not resolve which PDF this send uploads — check the dry run";
181
217
  const NOT_SENT = "Not run: this sends the paper to the venue's portal";
182
218
  const NAMES_PORTAL = "Not run: this command names a venue's submission portal";
219
+ const NOT_UPLOADED = "Not run: this uploads the paper's artifact to its host";
220
+ /** What to ask before an artifact upload. */
221
+ const HOW_TO_ASK_UPLOAD = [
222
+ "Ask the person with AskUserQuestion first, then run this command again. In the question, give the paper folder (the full path), the artifact's file and sha256, and the project, as written above.",
223
+ 'Options: "Yes, upload it" and "No". One yes lets one upload through.',
224
+ ].join("\n");
225
+ /** Whether every send of a command is an artifact upload: then it is asked about as one. */
226
+ const onlyUploads = (described) => described.every((d) => d.upload === true);
183
227
  /** What to ask, once every send's PDF is known. */
184
228
  const HOW_TO_ASK = [
185
229
  "Ask the person with AskUserQuestion first, then run this command again. In the question, give:",
@@ -270,10 +314,10 @@ const hasAll = (text, keys) => keys.every((k) => text.toLowerCase().includes(k.t
270
314
  /** `text` as a literal inside a regular expression. */
271
315
  const literal = (text) => text.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
272
316
  /**
273
- * Whether a question names the folder `folder` and not a longer path that starts with it
274
- * (`/w/paper` is not `/w/paper2` or `/w/paper.old`), nor one it ends: the whole path, case-sensitive.
317
+ * Whether a question names `word` (a folder, a project id) and not a longer one that starts with it
318
+ * (`/w/paper` is not `/w/paper2` or `/w/paper.old`), nor one it ends: the whole word, case-sensitive.
275
319
  */
276
- const namesFolder = (question, folder) => new RegExp(`(?<![\\w.-])${literal(folder)}(?![\\w.-])`, "u").test(question);
320
+ const namesWhole = (question, word) => new RegExp(`(?<![\\w.-])${literal(word)}(?![\\w.-])`, "u").test(question);
277
321
  /**
278
322
  * The answers used up after one more need: it takes the latest answer not yet taken whose question
279
323
  * `names` it, and that answer must be a yes; null when there is none, or it is not.
@@ -285,8 +329,10 @@ function takeYes(answers, taken, names) {
285
329
  const found = answers[at];
286
330
  return found !== undefined && isYes(found) ? new Set([...taken, at]) : null;
287
331
  }
288
- /** What a yes to one send must name: its sha256 (any case) and its folder (the whole path, as written). */
289
- const namesSend = (s) => (question) => hasAll(question, [s.sha]) && namesFolder(question, s.folder);
332
+ /** What a yes to one send must name: its sha256 (any case), its folder (the whole path, as written) and its project. */
333
+ const namesSend = (s) => (question) => hasAll(question, [s.sha]) &&
334
+ namesWhole(question, s.folder) &&
335
+ (s.project === undefined || namesWhole(question, s.project));
290
336
  /** What a yes to a command that names a portal must name: the host (any case) and the command's start, literally. */
291
337
  const namesPortal = (host, start) => (question) => hasAll(question, [host]) && question.includes(start);
292
338
  /**
@@ -301,15 +347,21 @@ const everyNeedHasItsYes = (answers, sends, portal) => [...sends.map(namesSend),
301
347
  function describedSends(command, cwd, deps) {
302
348
  const sends = /[`$]/u.test(command)
303
349
  ? []
304
- : sendsIn(deps.shellLeaves(command), deps.readSend);
350
+ : sendsIn(deps.shellLeaves(command), deps);
305
351
  return (sends.length === 0 ? [null] : sends).map((x) => x === null ? { named: null, lines: [UNRESOLVED] } : describe(x, cwd, deps));
306
352
  }
307
353
  /** The refusal of a send whose PDF is not known or not there: there is no sha256 to ask about. */
308
- const noPdf = (described) => [
309
- `${NOT_SENT}, and paperlint cannot find the PDF it uploads, so there is no sha256 to ask the person about.`,
310
- ...blocks(described),
311
- "Name the paper folder and the PDF plainly (no cd, no $…), build the PDF, run the dry run, and ask then.",
312
- ];
354
+ const noPdf = (described) => onlyUploads(described)
355
+ ? [
356
+ `${NOT_UPLOADED}, and paperlint cannot find the file it uploads, so there is no sha256 to ask the person about.`,
357
+ ...blocks(described),
358
+ "Name the paper folder and the file plainly (no cd, no $…), run the dry run, and ask then.",
359
+ ]
360
+ : [
361
+ `${NOT_SENT}, and paperlint cannot find the PDF it uploads, so there is no sha256 to ask the person about.`,
362
+ ...blocks(described),
363
+ "Name the paper folder and the PDF plainly (no cd, no $…), build the PDF, run the dry run, and ask then.",
364
+ ];
313
365
  /** The presets' hosts; when they cannot be read, none, and why. */
314
366
  function readHosts(cwd, deps) {
315
367
  try {
@@ -325,6 +377,14 @@ const fallbackLines = (h) => h.failed === null
325
377
  : [
326
378
  `The venue presets could not be read (${h.failed}), so only HotCRP-hosted sites and paperlint sends are recognised until they are fixed.`,
327
379
  ];
380
+ /** How a refusal opens, and what it says to ask: a portal named, a paperlint send, or only uploads. */
381
+ function wordsFor(paperlint, described) {
382
+ if (!paperlint)
383
+ return { base: NAMES_PORTAL, ask: [] };
384
+ return onlyUploads(described)
385
+ ? { base: NOT_UPLOADED, ask: [HOW_TO_ASK_UPLOAD] }
386
+ : { base: NOT_SENT, ask: [HOW_TO_ASK] };
387
+ }
328
388
  /**
329
389
  * A command that sends: let through (null) when the person said yes to it since the last send —
330
390
  * each paperlint send by its paper folder and its PDF's sha256, a yes of its own for each, a portal
@@ -336,7 +396,7 @@ function decide(c, payload, deps) {
336
396
  const named = described.flatMap((d) => (d.named === null ? [] : [d.named]));
337
397
  if (named.length < described.length)
338
398
  return noPdf(described);
339
- const base = c.paperlint ? NOT_SENT : NAMES_PORTAL;
399
+ const { base, ask } = wordsFor(c.paperlint, described);
340
400
  const read = transcriptOf(payload, deps.files);
341
401
  if (typeof read !== "string")
342
402
  return [
@@ -350,7 +410,7 @@ function decide(c, payload, deps) {
350
410
  return [
351
411
  `${base}, and the person has not said yes to it since the last send.`,
352
412
  ...blocks(described),
353
- ...(c.paperlint ? [HOW_TO_ASK] : []),
413
+ ...ask,
354
414
  ...portalLines(c.host, start),
355
415
  ];
356
416
  }
@@ -365,7 +425,9 @@ function earlierSend(c, payload, deps) {
365
425
  current: stringField(payload, "tool_use_id"),
366
426
  mayHold: (text) => {
367
427
  const plain = text.replace(/["'\\]/gu, "").toLowerCase();
368
- return (plain.includes("submission") || known.some((h) => plain.includes(h)));
428
+ return (plain.includes("submission") ||
429
+ plain.includes("artifact") ||
430
+ known.some((h) => plain.includes(h)));
369
431
  },
370
432
  sends: (command) => {
371
433
  const leaves = allLeaves(command, deps.shellLeaves);
@@ -1 +1 @@
1
- {"version":3,"file":"submission-confirm-hook.js","sourceRoot":"","sources":["../src/submission-confirm-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAkB,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAmB,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAoC3C,MAAM,IAAI,GAAG,CAAC,MAAc,EAAc,EAAE,CAAC,CAAC;IAC5C,kBAAkB,EAAE;QAClB,aAAa,EAAE,YAAY;QAC3B,kBAAkB,EAAE,MAAM;QAC1B,wBAAwB,EAAE,MAAM;KACjC;CACF,CAAC,CAAC;AAEH,0GA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M,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACtC,MAAM,GAAG,GACP,OAAO,KAAK,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACxE,IAAI,CAAC;QACH,OAAO,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CACT,0EAA0E,SAAS,CAAC,CAAC,CAAC,GAAG,CAC1F,CAAC;IACJ,CAAC;AACH,CAAC"}
package/dist/types.d.ts CHANGED
@@ -70,6 +70,12 @@ export interface Args {
70
70
  submit: boolean;
71
71
  /** `--save` for `submission update`: really change the submission; without it, a dry run. */
72
72
  save: boolean;
73
+ /** `--url`, `--host`, `--to`, `--node`, `--numbers` for `artifact`: where the upload is, and what it holds. */
74
+ url: string | null;
75
+ host: string | null;
76
+ to: string | null;
77
+ node: string | null;
78
+ numbers: string | null;
73
79
  /**
74
80
  * `--allow-venue-name` for `new`: create the folder even though its name names a venue. Skips
75
81
  * that one refusal and no other.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;sCAGkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sFAAsF;IACtF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 +1,124 @@
1
+ # The artifact's upload record
2
+
3
+ When a paper's reproduction artifact is uploaded (to OSF, Zenodo, Figshare, an anonymous mirror, an
4
+ institutional page), one small JSON file in the paper says what was uploaded, where, and what the
5
+ paper printed at that moment. The opt-in rule [`artifact/upload-current`](rules/artifact/upload-current.md)
6
+ reads it to say when the paper's numbers have moved past the upload. Everything here is optional:
7
+ with the rule off, nothing reads the file.
8
+
9
+ Four layers, each usable without the ones below it:
10
+
11
+ | layer | what it is | network |
12
+ | ------------------------------------ | ---------------------------------------------------------------- | ------- |
13
+ | the record | a documented JSON file; write it by hand or from your own script | no |
14
+ | `artifact/upload-current` | the rule that compares the record with the paper's numbers now | no |
15
+ | `paperlint artifact record` | writes the record for an upload made any way, to any host | no |
16
+ | `paperlint artifact upload` / `show` | an optional wrapper over a host paperlint has an adapter for | yes |
17
+
18
+ The shape follows `quarto publish`, whose `_publish.yml` records "the service, id, and URL of the
19
+ published content" and is "suitable for checking in to version control" (quarto.org, publishing to
20
+ Quarto Pub): the record is a fact in the repository, and the rule reads that fact, never the host.
21
+
22
+ ## The record
23
+
24
+ Default path `<paper>/submission/artifact-upload.json` (the rule's `record` option names another):
25
+
26
+ ```json
27
+ {
28
+ "version": 1,
29
+ "host": "osf",
30
+ "url": "https://osf.io/abcde/",
31
+ "file": "artifact.zip",
32
+ "id": "0123456789abcdef01234567",
33
+ "sha256": "59bd16dfc39e768f82bb8ec74467e571e80ed284683b586f077dbf1aa2483ecd",
34
+ "md5": "3f395fbbb68716f38f5ff7fa9d740e3b",
35
+ "uploadedAt": "2026-11-01T10:00:00Z",
36
+ "numbers": { "nRepos": "63", "pctPass": "41.2\\%" }
37
+ }
38
+ ```
39
+
40
+ | field | required | what |
41
+ | ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
42
+ | `version` | yes | `1`; a reader refuses a version it does not know |
43
+ | `host` | yes | the host's name: `osf`, `zenodo`, `other`, … — any name; `show` checks hashes only for a host paperlint has an adapter for |
44
+ | `url` | yes | where it is: the project, the record or the file page |
45
+ | `file` | yes | the uploaded file's name |
46
+ | `id` | no | the host's id of the file (OSF: the file's id); `show` finds the file by it, else by `file` in the project `url` names |
47
+ | `sha256` | no | the file's sha256, 64 lowercase hex digits |
48
+ | `md5` | no | the file's md5, 32 lowercase hex digits |
49
+ | `uploadedAt` | yes | when, ISO 8601 with a zone (`2026-11-01T10:00:00Z`) |
50
+ | `numbers` | yes | the paper's number macros at upload time, name → value as written in the numbers file (`\newcommand{\nRepos}{63}` → `"nRepos": "63"`) |
51
+
52
+ Any other key is refused, so a typo does not read as "not set". From a script, `numbers` is every
53
+ argument-less `\newcommand`, `\newcommand*`, `\renewcommand`, `\providecommand` and `\def` of the
54
+ numbers file, its body as written, without the macro's backslash.
55
+
56
+ ## `paperlint artifact record`
57
+
58
+ ```bash
59
+ npx paperlint artifact record artifact.zip --url https://osf.io/abcde/ papers/my-paper
60
+ ```
61
+
62
+ No network. Hashes the zip (sha256 and md5), reads the numbers file, and writes the record with the
63
+ current time. The numbers file is `--numbers <file>` (relative to the paper), else the `numbers`
64
+ option of `artifact/upload-current` where `paperlint lint` turns it on for that paper: the command
65
+ asks ESLint for the rule's options on the paper's `PIPELINE-STATUS.md`, so a `rules` object, a list
66
+ of blocks, the root `paperlint.json` and the paper's own all count the same as they do for lint, and
67
+ the record goes to the rule's `record` path. `--host <name>` names the host; without it, a url an adapter
68
+ recognises names its host (`osf.io` → `osf`), and any other is `other`. The zip is relative to where
69
+ the command runs; the paper folder defaults to the current one. Exit 2, and nothing written, when
70
+ the zip, the url or the numbers are missing, or the url is not one.
71
+
72
+ ## `paperlint artifact upload`
73
+
74
+ ```bash
75
+ npx paperlint artifact upload --to osf artifact.zip --node abcde papers/my-paper # dry run
76
+ npx paperlint artifact upload --to osf artifact.zip --node abcde papers/my-paper --save # uploads
77
+ ```
78
+
79
+ A DRY RUN unless `--save`: it prints the file, its size and sha256, the project, the record it
80
+ would write and whether the token is set, and sends nothing. With `--save` it uploads (a new version
81
+ of the file of the same name at the project's top level, else a new file), reads the host's hashes
82
+ back, refuses to write a record when the host's sha256 is not the one sent (exit 1), and otherwise
83
+ writes the same record as `record`, with the host's `id`, page and hashes. `--node` is the project's
84
+ id (OSF: the five characters after `osf.io/`). The dry run may leave it out and take the project of
85
+ an existing record's url, and then names it in its last line; `--save` uploads only to a project
86
+ named with `--node`, so the project the person said yes to is the one the file goes to.
87
+
88
+ The token is read from the environment only, never printed: `OSF_TOKEN_OSF_IO`, made at
89
+ `osf.io/settings/tokens` with the scope `osf.full_write`. A plain `OSF_TOKEN` is not read (it is
90
+ named when set), as `submission` names its per-site variables. In a Claude Code session with
91
+ paperlint's hooks, `artifact upload … --save` runs only after the person's yes to a question naming
92
+ the paper folder, the file's sha256 and the project (`submission-confirm`, the same gate as
93
+ `submission … --save`).
94
+
95
+ ## `paperlint artifact show`
96
+
97
+ ```bash
98
+ npx paperlint artifact show papers/my-paper
99
+ ```
100
+
101
+ Prints the record, then, for a host whose adapter reads hashes, the hashes the host holds now and
102
+ `match yes` (exit 0) or `match no` (exit 1). A host with no adapter, or one that gives no hash: it
103
+ says so and prints the record's own hashes, to compare on the host's page. With `OSF_TOKEN_OSF_IO`
104
+ set it reads a project that is not public; without, a public one. Exit 2 when there is no record,
105
+ it does not parse, or the host does not answer.
106
+
107
+ ## Hosts
108
+
109
+ | host | upload | hashes read back | adapter |
110
+ | ----- | ------ | ---------------- | ------------------- |
111
+ | `osf` | yes | sha256, md5 | `src/adapters/osf/` |
112
+
113
+ Any other host works with `record` and the rule; only `upload` and `show` need an adapter. A new
114
+ host is one folder in `src/adapters/<host>/` implementing `src/ports/artifact-host.ts`, its recorded
115
+ answers and tests, and one line in `ARTIFACT_HOSTS` (`src/cli.ts`); the record and the rule do not
116
+ change.
117
+
118
+ ## What none of this sees
119
+
120
+ - A file replaced on the host after `show` ran, or replaced by hand without a new record.
121
+ - Whether the archive's contents compute the numbers the record holds: the record says what the
122
+ paper printed when it was uploaded.
123
+ - OSF view-only links: `show` addresses the project by its guid, with the owner's token when it is
124
+ not public; a reviewer's view-only link was not tested.
@@ -64,6 +64,7 @@ writing, not a number the venue states.
64
64
  | [`study/declare-sample`](rules/study/declare-sample.md) | experimental: a study's `prereg.json` declares its population, screens, coverage and the author's check of the drawn units | papers with a sampled study; no preset turns it on — [page](rules/study/declare-sample.md) |
65
65
  | [`cycle/changes-since-approved`](rules/cycle/changes-since-approved.md) | experimental: what the approved text had (numbers, cite keys) and the draft lacks is declared in `changes.yaml` | papers that keep an approved version; no preset turns it on — [page](rules/cycle/changes-since-approved.md) |
66
66
  | [`cycle/changes-since-approved-coverage`](rules/cycle/changes-since-approved-coverage.md) | experimental: each paragraph of the approved text that is gone is covered by a `changes.yaml` entry | the same; a warning — [page](rules/cycle/changes-since-approved-coverage.md) |
67
+ | [`artifact/upload-current`](rules/artifact/upload-current.md) | the paper prints the numbers its uploaded artifact was built for, as the upload record (`paperlint artifact record`) says | papers with an uploaded artifact and a file of number macros; turned on with `["warn", { "numbers": "numbersdef.tex" }]` — [page](rules/artifact/upload-current.md) |
67
68
 
68
69
  ## `pdf/last-page-balance`
69
70
 
@@ -4,11 +4,14 @@ For a double-blind venue without a supplementary upload, the reproduction artifa
4
4
  on an [OSF](https://osf.io) project behind an anonymized view-only link (creating the project and
5
5
  the link: `submit-paper`, step 2). This page replaces or adds a file on that project through the
6
6
  [OSF API](https://developer.osf.io/), when the web interface is inconvenient.
7
+ `paperlint artifact upload --to osf` does the same and writes the upload record
8
+ ([`artifact-upload.md`](artifact-upload.md)); this page is the manual way.
7
9
 
8
10
  ## The token
9
11
 
10
12
  Make a personal access token at `osf.io/settings/tokens` with the scope `osf.full_write` (a
11
- read-only token cannot write); it is shown once. Set it in your environment as `OSF_TOKEN`. Never
13
+ read-only token cannot write); it is shown once. Set it in your environment as `OSF_TOKEN` for the
14
+ lines below (`paperlint artifact upload` reads `OSF_TOKEN_OSF_IO` instead). Never
12
15
  commit it, print it or write it into a file, and delete it on the same page after the upload.
13
16
 
14
17
  ## Replace a file
@@ -0,0 +1,85 @@
1
+ # artifact/upload-current
2
+
3
+ **OPT-IN: off unless you turn it on with its options.** **Level:** whatever you give it; `warn` is
4
+ meant · **Reads:** the paper's upload record (`submission/artifact-upload.json`), its numbers file,
5
+ `paper.tex` and the body files of the last build · **Reported on:** the first line of the paper's
6
+ `PIPELINE-STATUS.md`
7
+
8
+ ## What it catches
9
+
10
+ The paper prints a number its uploaded artifact was not built for. The upload record
11
+ ([format](../../artifact-upload.md)) holds the paper's number macros as they were when the artifact
12
+ was uploaded; the rule compares them with the numbers file now and reports, once:
13
+
14
+ ```text
15
+ papers/my-paper/PIPELINE-STATUS.md
16
+ 1:1 warning the paper prints 4 numbers the upload of 2026-11-01 (https://osf.io/abcde/) was not
17
+ built for: 3 new (nA, nB, nC), 1 changed (nRepos) — rebuild and upload the artifact,
18
+ then record it again (`paperlint artifact record <zip> --url <url>`)
19
+ artifact/upload-current
20
+ ```
21
+
22
+ Only the macros the paper's source uses count: a macro defined in the numbers file and printed
23
+ nowhere never fires. A key is _new_ when the record lacks it, _changed_ when the record holds
24
+ another value.
25
+
26
+ Turned on and missing what it needs, it says so once and judges nothing else: no `numbers` option;
27
+ the numbers file missing, or defining no macro without arguments; no record (it names
28
+ `paperlint artifact record`); a record that is not one (it says which field and why).
29
+
30
+ ## Why
31
+
32
+ A reviewer runs the archive the paper links. When the paper's numbers move after the upload (a
33
+ rerun, a new study, a fixed bug), the archive reproduces numbers the paper no longer prints, and
34
+ nothing in the build says so. The record is the one fact that survives the upload: what the paper
35
+ printed when the archive was made.
36
+
37
+ ## Examples
38
+
39
+ Turning it on, in the paper's `paperlint.json`:
40
+
41
+ ```json
42
+ {
43
+ "rules": {
44
+ "artifact/upload-current": ["warn", { "numbers": "numbersdef.tex" }]
45
+ }
46
+ }
47
+ ```
48
+
49
+ Failing: `numbersdef.tex` says `\newcommand{\nRepos}{64}`, the body prints `\nRepos`, and the
50
+ record's `numbers` has `"nRepos": "63"`.
51
+
52
+ Passing: the record's `numbers` holds `"nRepos": "64"`; or the rule is not turned on.
53
+
54
+ ## Options
55
+
56
+ | option | required | what |
57
+ | --------- | -------- | ----------------------------------------------------------------------------------- |
58
+ | `numbers` | yes | the paper's file of number macros, relative to the paper |
59
+ | `record` | no | the upload record, relative to the paper; default `submission/artifact-upload.json` |
60
+
61
+ The numbers file holds `\newcommand{\key}{value}` lines (`\newcommand*`, `\renewcommand`,
62
+ `\providecommand` and `\def\key{value}` too); a macro with arguments is skipped. A value is compared
63
+ as written in its definition, so `41.2\%` and `41.2 \%` differ.
64
+
65
+ ## What it does not check
66
+
67
+ - **The host.** The rule never calls the network: it trusts the record. Whether the host still holds
68
+ the file the record names is `paperlint artifact show` (by hash, where the host gives one).
69
+ - **The archive's inside.** Whether the uploaded archive computes those numbers is not looked at;
70
+ the record says what the paper printed when it was uploaded, not what the archive produces.
71
+ - **Numbers typed into the prose.** A number not printed through a macro of the numbers file is
72
+ invisible here (opt-in `tex/claim-provenance` looks at those).
73
+ - **Uses outside the paper's files.** Uses are read in `paper.tex` and, when the last build's record
74
+ (`_build/sources.json`) is fresh, the body files it lists; with no record or a stale one,
75
+ `paper.tex` alone, and `paper/sources-fresh` says so.
76
+ - **Which definition TeX keeps.** A macro defined twice keeps its last definition here, whatever
77
+ the definer (`\providecommand` keeps the first in TeX).
78
+
79
+ ## How to fix
80
+
81
+ Rebuild the artifact, upload it, and record the upload: `paperlint artifact record <zip> --url <url>`
82
+ (any host), or `paperlint artifact upload --to osf <zip> --save`, which writes the same record. Do
83
+ not re-record without uploading: the record would then claim an archive that was never built. If the
84
+ archive deliberately stays as it is, turn the rule off for the paper, or silence the finding with a
85
+ disable comment and its reason at the top of `PIPELINE-STATUS.md`.
package/docs/rules.md CHANGED
@@ -22,6 +22,7 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
22
22
  | [`paper/edition-over`](rules/paper/edition-over.md) | warn | `paperlint.json` → the venue preset, and the clock | every deadline the paper's edition preset records has passed: the edition is over; names the newer editions of the series paperlint ships — [page](rules/paper/edition-over.md) |
23
23
  | [`artifact/required-files`](rules/artifact/required-files.md) | error; silent without `artifact.required` | `paperlint.json` (`artifact`) → the artifact's folder or its committed list of paths | a name the paper requires at the artifact's top level (`README`, `LICENSE`; any extension) is not there, or the folder or list is missing — [page](rules/artifact/required-files.md) |
24
24
  | [`artifact/promised`](rules/artifact/promised.md) | error; silent without `artifact.promises` | `paperlint.json` (`artifact`) → the artifact's folder or its committed list of paths | a promise of the paper (a label and a glob) matches no path of the artifact, or the folder or list is missing — [page](rules/artifact/promised.md) |
25
+ | [`artifact/upload-current`](rules/artifact/upload-current.md) | opt-in; off unless turned on with its options | the upload record and the paper's numbers file | the paper prints number macros its uploaded artifact was not built for (new keys, changed values), by the record written at upload; never calls the network — [page](rules/artifact/upload-current.md) |
25
26
  | [`paper/allowed-files-only`](rules/paper/allowed-files-only.md) | error | the paper folder's root listing → `paperlint.json` | a file or folder at the paper's root is not part of the layout (`PLAN.md`, `archive/`, a stray PDF); reported on `PIPELINE-STATUS.md`, once per entry, with where it goes; `extra/` takes anything — [page](rules/paper/allowed-files-only.md) |
26
27
  | [`repro/allowed-files-only`](rules/repro/allowed-files-only.md) | error | the listing of the paper's `repro/` | an entry at the top of `repro/` is not `README.md`, `studies.json`, `.gitignore`, `tools/`, `data/` or a study folder named `<id>-<slug>` (or, in a paper without the registry, `<slug>-YYYY-MM-DD`), or a study folder has no `README.md`; reported on `PIPELINE-STATUS.md`, once per entry, with where it goes by kind (a script → `repro/tools/`, data → `repro/data/`, a note → its study or `research/`) — [page](rules/repro/allowed-files-only.md) |
27
28
  | [`repro/study-registered`](rules/repro/study-registered.md) | error | the listing of the paper's `repro/`, `repro/studies.json`, `repro/README.md`, each study's `plan.json` | a study folder with no row in `repro/studies.json`, a row whose folder is missing or not `<id>-<slug>`, a bad or repeated id, a title over 8 words, `done` without a result and an existing result file, `superseded` without an existing successor, a row naming a measurement the registry does not declare, a measurement with no study or an unknown requirement, a headline measurement not approved by the author, a plan that is missing, malformed or — once the study runs — unfilled, a headline study that has run without the author's check in its plan, or the index in `repro/README.md` out of sync with the registry; `paperlint studies new` and `paperlint studies index` write both — [page](rules/repro/study-registered.md) |
@@ -1,4 +1,4 @@
1
- <!-- vigiles:sha256:75393007efd6bb96 compiled from eslint-rules/CLAUDE.md.spec.ts -->
1
+ <!-- vigiles:sha256:a24e4a23a4caaf86 compiled from eslint-rules/CLAUDE.md.spec.ts -->
2
2
 
3
3
  # CLAUDE.md
4
4
 
@@ -43,3 +43,7 @@ the checks push every paper toward a blog post.
43
43
  ### Lint Rule Over Script
44
44
 
45
45
  **Guidance only** — A check over a syntax tree is a lint rule, not a script. It fires in the editor on save, gets the AST for free, and has a suppression syntax people already know. A script is for corpus-wide questions — index connectivity, ratios across many files. When the work has to run a program, a script may do the work and write facts to a JSON file, and a rule judges that file: the verdict still lands in the engine.
46
+
47
+ ### A Rule Is Configured The Eslint Way
48
+
49
+ **Guidance only** — Provisional, pending #599 (the author is not sure it is right). A rule's own switches (what to require, a threshold, a file to compare) come from its options where it is turned on: `["warn", { … }]`. A new rule is not on by default and silent until some key of `paperlint.json` is declared: that hides a check behind a setting nobody sees in the rule list. A fact several rules share about a paper (its venue, cycles, artifact, talk) reaches them through ESLint's `settings`, filled once by `buildConfig` from `paperlint.json`; a rule does not open `paperlint.json` itself. A rule whose subject IS `paperlint.json` (it validates the config) is exempt. Where an outside service varies (an artifact host, a portal), the rule reads a file of facts a command wrote and never the service; the services are adapters behind a port, as `src/ports/submission-portal.ts` and `src/adapters/hotcrp/` are, and eslint-plugin-import's `settings["import/resolver"]` is the ESLint precedent. About 25 existing rules predate this; #599 decides whether to move them, narrow this rule, or drop it and allow a rule to read `paperlint.json`. The author proposed this on 2026-11-21.
@@ -40,5 +40,8 @@ the checks push every paper toward a blog post.
40
40
  "lint-rule-over-script": guidance(
41
41
  "A check over a syntax tree is a lint rule, not a script. It fires in the editor on save, gets the AST for free, and has a suppression syntax people already know. A script is for corpus-wide questions — index connectivity, ratios across many files. When the work has to run a program, a script may do the work and write facts to a JSON file, and a rule judges that file: the verdict still lands in the engine.",
42
42
  ),
43
+ "a-rule-is-configured-the-eslint-way": guidance(
44
+ 'Provisional, pending #599 (the author is not sure it is right). A rule\'s own switches (what to require, a threshold, a file to compare) come from its options where it is turned on: `["warn", { … }]`. A new rule is not on by default and silent until some key of `paperlint.json` is declared: that hides a check behind a setting nobody sees in the rule list. A fact several rules share about a paper (its venue, cycles, artifact, talk) reaches them through ESLint\'s `settings`, filled once by `buildConfig` from `paperlint.json`; a rule does not open `paperlint.json` itself. A rule whose subject IS `paperlint.json` (it validates the config) is exempt. Where an outside service varies (an artifact host, a portal), the rule reads a file of facts a command wrote and never the service; the services are adapters behind a port, as `src/ports/submission-portal.ts` and `src/adapters/hotcrp/` are, and eslint-plugin-import\'s `settings["import/resolver"]` is the ESLint precedent. About 25 existing rules predate this; #599 decides whether to move them, narrow this rule, or drop it and allow a rule to read `paperlint.json`. The author proposed this on 2026-11-21.',
45
+ ),
43
46
  },
44
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "18.4.0",
3
+ "version": "18.5.0",
4
4
  "description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
5
5
  "type": "module",
6
6
  "license": "MIT",