paperlint 20.8.0 → 20.9.1

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 (41) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/skill-chunks/{chunk-J5XYPERO.js → chunk-FOYA3JCS.js} +0 -6
  3. package/dist/skill-chunks/chunk-KCX34KV4.js +7610 -0
  4. package/dist/skill-chunks/{chunk-WYQTXKNM.js → chunk-KIKDPXE4.js} +2 -2
  5. package/dist/skill-chunks/{chunk-EDHTB7KT.js → chunk-MX3LJNFG.js} +4 -2
  6. package/dist/skill-chunks/chunk-UE2CAVD6.js +34 -0
  7. package/dist/skill-chunks/{chunk-QPWFSYJG.js → chunk-ZWJMR4TF.js} +5 -7
  8. package/dist/skills/paper-pipeline/scripts/revision-plan-core.d.ts +79 -0
  9. package/dist/skills/paper-pipeline/scripts/revision-plan.d.ts +2 -0
  10. package/package.json +1 -1
  11. package/scripts/bundle-skills.ts +1 -0
  12. package/scripts/test.test.ts +1 -0
  13. package/scripts/test.ts +4 -0
  14. package/skills/argument-arc/scripts/headings.js +3 -2
  15. package/skills/cold-read-diff/scripts/cold-read.js +3 -2
  16. package/skills/find-venue/SKILL.md +3 -2
  17. package/skills/find-venue/SKILL.md.spec.ts +2 -1
  18. package/skills/harden-paper/SKILL.md +5 -1
  19. package/skills/harden-paper/SKILL.md.spec.ts +4 -0
  20. package/skills/paper-pipeline/SKILL.md +29 -4
  21. package/skills/paper-pipeline/SKILL.md.spec.ts +28 -3
  22. package/skills/paper-pipeline/scripts/README.md +6 -5
  23. package/skills/paper-pipeline/scripts/extract-ref-facts.js +4 -3
  24. package/skills/paper-pipeline/scripts/revision-plan-core.js +194 -0
  25. package/skills/paper-pipeline/scripts/revision-plan-core.ts +286 -0
  26. package/skills/paper-pipeline/scripts/revision-plan.js +462 -0
  27. package/skills/paper-pipeline/scripts/revision-plan.test.ts +386 -0
  28. package/skills/paper-pipeline/scripts/revision-plan.ts +21 -0
  29. package/skills/paper-status/SKILL.md +2 -1
  30. package/skills/paper-status/SKILL.md.spec.ts +1 -0
  31. package/skills/pc-panel-review/SKILL.md +5 -2
  32. package/skills/pc-panel-review/SKILL.md.spec.ts +4 -1
  33. package/skills/pc-panel-review/pc-panel-review.harness.ts +122 -0
  34. package/skills/pc-panel-review/scripts/prior-reviews.js +11 -7031
  35. package/skills/study-accepted-papers/SKILL.md +5 -2
  36. package/skills/study-accepted-papers/SKILL.md.spec.ts +4 -1
  37. package/skills/study-accepted-papers/scripts/corpus-licences.js +1 -1
  38. package/skills/tighten-paper/SKILL.md +3 -2
  39. package/skills/tighten-paper/SKILL.md.spec.ts +2 -1
  40. package/skills/verify-citations/scripts/bib-authors.js +4 -3
  41. package/skills/verify-citations/scripts/verify-cites.js +4 -3
@@ -0,0 +1,462 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __plCreateRequire } from "node:module";
3
+ import { fileURLToPath as __plFileURLToPath } from "node:url";
4
+ import { dirname as __plDirname } from "node:path";
5
+ const require = __plCreateRequire(import.meta.url);
6
+ const __filename = __plFileURLToPath(import.meta.url);
7
+ const __dirname = __plDirname(__filename);
8
+ import {
9
+ CYCLE_ID_PATTERN,
10
+ cycleId,
11
+ paperPreset,
12
+ presetsDir,
13
+ unusablePresetLine
14
+ } from "../../../dist/skill-chunks/chunk-KCX34KV4.js";
15
+ import {
16
+ SERIES_ID
17
+ } from "../../../dist/skill-chunks/chunk-UE2CAVD6.js";
18
+ import "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
19
+ import "../../../dist/skill-chunks/chunk-ZWJMR4TF.js";
20
+ import {
21
+ callerPath,
22
+ nodeFiles
23
+ } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
24
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
25
+ import {
26
+ external_exports
27
+ } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
28
+ import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
29
+
30
+ // src/domain/study-registry.ts
31
+ import { isAbsolute, posix, win32 } from "node:path";
32
+
33
+ // src/domain/layout-tree.ts
34
+ var leaf = (name, note) => ({
35
+ name,
36
+ note,
37
+ children: []
38
+ });
39
+ var rowsOf = (nodes, indent) => nodes.flatMap((n, i) => {
40
+ const last = i === nodes.length - 1;
41
+ return [
42
+ { left: `${indent}${last ? "\u2514\u2500\u2500 " : "\u251C\u2500\u2500 "}${n.name}`, note: n.note },
43
+ ...rowsOf(n.children, `${indent}${last ? " " : "\u2502 "}`)
44
+ ];
45
+ });
46
+ function renderTree(root, nodes) {
47
+ const rows = rowsOf(nodes, "");
48
+ const width = Math.max(0, ...rows.map((r) => r.left.length));
49
+ return [
50
+ root,
51
+ ...rows.map((r) => `${r.left.padEnd(width)} \u2190 ${r.note}`)
52
+ ].join("\n");
53
+ }
54
+
55
+ // src/domain/repro-layout.ts
56
+ var REPRO_DIR = "repro";
57
+ var STUDIES_FILE = "studies.json";
58
+ var README = "README.md";
59
+ var REPRO_FILE_NOTES = [
60
+ {
61
+ name: README,
62
+ note: "the index: one line per study, generated from studies.json"
63
+ },
64
+ {
65
+ name: STUDIES_FILE,
66
+ note: "the study registry: id, title, status and result of each study"
67
+ },
68
+ { name: ".gitignore", note: "keeps the scripts' byproducts out of git" },
69
+ {
70
+ name: "CLAUDE.md",
71
+ note: "optional: instructions an agent loads when it works in repro/"
72
+ },
73
+ {
74
+ name: "AGENTS.md",
75
+ note: "optional: the same, for agents that read AGENTS.md"
76
+ }
77
+ ];
78
+ var REPRO_FILES = REPRO_FILE_NOTES.map(
79
+ (f) => f.name
80
+ );
81
+ var TOOLS_DIR = "tools";
82
+ var DATA_DIR = "data";
83
+ var REPRO_DIR_NOTES = [
84
+ {
85
+ name: TOOLS_DIR,
86
+ note: "scripts used across the paper (numbers, figures, anonymity check, harnesses)"
87
+ },
88
+ { name: DATA_DIR, note: "shared data (tables, caches)" }
89
+ ];
90
+ var REPRO_DIRS = REPRO_DIR_NOTES.map((d) => d.name);
91
+ var STUDY_NODE = {
92
+ name: "<id>-<slug>/",
93
+ note: "one folder per study or spike, named by its row in studies.json (P1-S03-baseline)",
94
+ children: [
95
+ leaf(README, "required: what it asks, how to run it, what it found")
96
+ ]
97
+ };
98
+ var REPRO_NODES = [
99
+ ...REPRO_FILE_NOTES.map((f) => leaf(f.name, f.note)),
100
+ ...REPRO_DIR_NOTES.map((d) => leaf(`${d.name}/`, d.note)),
101
+ STUDY_NODE
102
+ ];
103
+ var REPRO_LAYOUT_TREE = renderTree(
104
+ `${REPRO_DIR}/`,
105
+ REPRO_NODES
106
+ );
107
+
108
+ // src/domain/index-columns.ts
109
+ var NOT_APPLICABLE = "\u2014";
110
+ var commitCell = (c) => `${c.commit.slice(0, 12)} ${c.date.slice(0, 10)}`;
111
+ var modeCell = (f) => {
112
+ if (f.mode === null) return NOT_APPLICABLE;
113
+ return f.mode.kind === "exploratory" ? `exploratory: ${f.mode.reason}` : f.mode.kind;
114
+ };
115
+ var historyCell = (pick, absent) => (f) => {
116
+ if (f.mode?.kind !== "decide_before_run") return NOT_APPLICABLE;
117
+ if (f.history === null) return "not read";
118
+ if (f.history.kind === "unread") return `unknown (${f.history.why})`;
119
+ return pick(f.history) ?? absent;
120
+ };
121
+ var decisionCell = historyCell(
122
+ (h) => h.decision === null ? null : `${commitCell(h.decision)}${h.decisionDeleted ? ", deleted since" : ""}`,
123
+ "not committed"
124
+ );
125
+ var firstOutputCell = historyCell(
126
+ (h) => h.firstOutput === null ? null : commitCell(h.firstOutput),
127
+ "none"
128
+ );
129
+
130
+ // src/domain/study-registry.ts
131
+ var isInside = (path) => {
132
+ if (path.includes("\\") || isAbsolute(path) || win32.isAbsolute(path))
133
+ return false;
134
+ const n = posix.normalize(path);
135
+ return n !== ".." && !n.startsWith("../");
136
+ };
137
+ var cell = (s) => s.replace(/\r?\n/gu, " ").replace(/\\/gu, "\\\\").replace(/\|/gu, "\\|");
138
+ var COLUMNS = [
139
+ { head: "id", of: (s) => s.id, fromGit: false },
140
+ { head: "title", of: (s) => cell(s.title), fromGit: false },
141
+ { head: "status", of: (s) => s.status, fromGit: false },
142
+ { head: "result", of: (s) => cell(s.result ?? "\u2014"), fromGit: false },
143
+ { head: "in paper", of: (s) => s.in_paper, fromGit: false },
144
+ { head: "mode", of: (_, f) => cell(modeCell(f)), fromGit: false },
145
+ { head: "decision", of: (_, f) => decisionCell(f), fromGit: true },
146
+ { head: "first output", of: (_, f) => firstOutputCell(f), fromGit: true },
147
+ {
148
+ head: "folder",
149
+ of: (s) => `[${s.folder}/](${s.folder}/)`,
150
+ fromGit: false
151
+ }
152
+ ];
153
+ var FROM_GIT = COLUMNS.flatMap((c, i) => c.fromGit ? [i] : []);
154
+ var REGISTRY = "`repro/studies.json`";
155
+ var STALE_HEAD = {
156
+ differs: `The index in \`repro/README.md\` (between the \`studies:begin\` and \`studies:end\` markers) is not the one ${REGISTRY} generates.`,
157
+ "no-markers": "`repro/README.md` has no index of the studies (the `studies:begin` and `studies:end` markers).",
158
+ "no-readme": "`repro/README.md`, the index of the studies, does not exist."
159
+ };
160
+
161
+ // src/domain/revision-plan.ts
162
+ var REVISION_PLAN = "revision-plan.json";
163
+ var ROW_ID_PATTERN = /^R[1-9][0-9]*$/u;
164
+ var RULE_ID_PATTERN = /^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/u;
165
+ var DROP_KINDS = ["not-doing", "accepted-cap"];
166
+ var ROW_STATES = [
167
+ "todo",
168
+ "doing",
169
+ "done",
170
+ "dropped",
171
+ "by-rule"
172
+ ];
173
+
174
+ // src/adapters/revision-plan/index.ts
175
+ var words = external_exports.string().trim().min(1, "a non-empty text");
176
+ var date = external_exports.iso.date();
177
+ var cycle = external_exports.string().regex(
178
+ new RegExp(`^${CYCLE_ID_PATTERN}$`, "u"),
179
+ "a cycle id: lowercase words and digits joined by hyphens, as in `langcode-2027`"
180
+ ).transform(cycleId);
181
+ var series = external_exports.string().regex(
182
+ SERIES_ID,
183
+ "a venue corpus's series: its folder under venues/, as in `usenix-sec`"
184
+ );
185
+ var paperFile = external_exports.string().min(1, "a path relative to the paper folder").refine(
186
+ isInside,
187
+ "a path inside the paper folder: relative, with `/` between its parts, never above it"
188
+ );
189
+ var oneOf = (key, tags, options) => external_exports.discriminatedUnion(key, options, {
190
+ error: `"${key}" is one of ${tags.map((t) => `"${t}"`).join(", ")}`
191
+ });
192
+ var edition = external_exports.int().min(1900).max(2999);
193
+ var bar = oneOf(
194
+ "kind",
195
+ ["corpus", "proxy", "none"],
196
+ [
197
+ external_exports.strictObject({
198
+ kind: external_exports.literal("corpus"),
199
+ series,
200
+ // A tuple with a rest element, not `.array().nonempty()`: zod 4 infers the latter as
201
+ // `number[]`, which the domain's `[number, ...number[]]` refuses.
202
+ editions: external_exports.tuple([edition], edition, {
203
+ error: "at least one edition the corpus covers"
204
+ })
205
+ }),
206
+ external_exports.strictObject({
207
+ kind: external_exports.literal("proxy"),
208
+ series,
209
+ stands_in_for: words
210
+ }),
211
+ external_exports.strictObject({ kind: external_exports.literal("none"), why: words })
212
+ ]
213
+ );
214
+ var measurement = oneOf(
215
+ "kind",
216
+ ["open", "enough"],
217
+ [
218
+ external_exports.strictObject({ kind: external_exports.literal("open") }),
219
+ external_exports.strictObject({
220
+ kind: external_exports.literal("enough"),
221
+ since: date,
222
+ evidence: paperFile
223
+ })
224
+ ]
225
+ );
226
+ var source = oneOf(
227
+ "kind",
228
+ ["author", "venue", "finding", "prior-reviews"],
229
+ [
230
+ external_exports.strictObject({ kind: external_exports.literal("author") }),
231
+ external_exports.strictObject({ kind: external_exports.literal("venue") }),
232
+ external_exports.strictObject({
233
+ kind: external_exports.literal("finding"),
234
+ file: paperFile,
235
+ finding: external_exports.union([words, external_exports.int().min(1)])
236
+ }),
237
+ external_exports.strictObject({ kind: external_exports.literal("prior-reviews"), cycle })
238
+ ]
239
+ );
240
+ var base = {
241
+ id: external_exports.string().regex(ROW_ID_PATTERN, "a row id: R and a number, as in `R3`"),
242
+ what: words,
243
+ from: source,
244
+ added: date
245
+ };
246
+ var row = oneOf("state", ROW_STATES, [
247
+ external_exports.strictObject({ ...base, state: external_exports.enum(["todo", "doing"]) }),
248
+ external_exports.strictObject({ ...base, state: external_exports.literal("done"), evidence: words }),
249
+ external_exports.strictObject({
250
+ ...base,
251
+ state: external_exports.literal("dropped"),
252
+ reason: words,
253
+ kind: external_exports.enum(DROP_KINDS)
254
+ }),
255
+ external_exports.strictObject({
256
+ ...base,
257
+ state: external_exports.literal("by-rule"),
258
+ rule: external_exports.string().regex(
259
+ RULE_ID_PATTERN,
260
+ "a rule id as `paperlint lint` reports it, as in `tex/required-section`"
261
+ )
262
+ })
263
+ ]);
264
+ var repeats = (ids) => ids.flatMap((v, i) => {
265
+ const first = ids.indexOf(v);
266
+ return first === i ? [] : [[i, first]];
267
+ });
268
+ var plan = external_exports.strictObject({
269
+ cycle,
270
+ written: date,
271
+ bar,
272
+ measurement,
273
+ remaining: external_exports.array(row)
274
+ }).superRefine((p, ctx) => {
275
+ repeats(p.remaining.map((r) => r.id)).forEach(([i, first]) => {
276
+ ctx.addIssue({
277
+ code: "custom",
278
+ path: ["remaining", i, "id"],
279
+ message: `"${String(p.remaining[i]?.id)}" is the id of row ${String(first + 1)} too: each row has its own`
280
+ });
281
+ });
282
+ });
283
+ function jsonOf(text) {
284
+ try {
285
+ return JSON.parse(text);
286
+ } catch {
287
+ return void 0;
288
+ }
289
+ }
290
+ var problemOf = (i) => ({
291
+ path: [
292
+ ...i.path.filter((s) => typeof s !== "symbol"),
293
+ ...i.code === "unrecognized_keys" ? i.keys.slice(0, 1) : []
294
+ ],
295
+ message: i.message
296
+ });
297
+ function parseRevisionPlan(text) {
298
+ const json = jsonOf(text);
299
+ if (json === void 0)
300
+ return { ok: false, problems: [{ path: [], message: "not JSON" }] };
301
+ const parsed = plan.safeParse(json, {
302
+ error: (i) => i.code === "invalid_type" && i.input === void 0 ? "missing: the shape requires it here" : void 0
303
+ });
304
+ if (!parsed.success)
305
+ return { ok: false, problems: parsed.error.issues.map(problemOf) };
306
+ const value = parsed.data;
307
+ return { ok: true, plan: value };
308
+ }
309
+ var revisionPlanCodec = {
310
+ parse: parseRevisionPlan
311
+ };
312
+
313
+ // skills/paper-pipeline/scripts/revision-plan-core.ts
314
+ import { join } from "node:path";
315
+ var cycleFit = (plan2, current) => {
316
+ if (current === null) return { kind: "no-cycles" };
317
+ if (current.kind !== "cycle") return { kind: "no-open-cycle" };
318
+ return current.cycle.id === plan2.cycle ? { kind: "current" } : { kind: "stale", current: current.cycle.id };
319
+ };
320
+ var readPlan = (dir, deps) => {
321
+ const bytes = deps.files.readBytes(callerPath(join(dir, REVISION_PLAN)));
322
+ if (bytes === null) return { kind: "none" };
323
+ const parsed = deps.codec.parse(new TextDecoder().decode(bytes));
324
+ return parsed.ok ? { kind: "read", plan: parsed.plan } : { kind: "unreadable", problems: parsed.problems };
325
+ };
326
+ var barLine = (b) => {
327
+ switch (b.kind) {
328
+ case "corpus":
329
+ return `bar: the accepted papers of ${b.series}, ${b.editions.join(", ")}`;
330
+ case "proxy":
331
+ return `bar: the accepted papers of ${b.series}, standing in for ${b.stands_in_for}`;
332
+ case "none":
333
+ return `bar: none \u2014 ${b.why}`;
334
+ }
335
+ };
336
+ var measurementLine = (m) => m.kind === "open" ? "measurement: open \u2014 new evidence may still be added" : `measurement: enough since ${m.since} (${m.evidence}) \u2014 no new study, only the text`;
337
+ var fitLine = (plan2, fit) => {
338
+ const head = `plan: ${plan2.cycle}, written ${plan2.written}`;
339
+ switch (fit.kind) {
340
+ case "current":
341
+ return `${head} \xB7 the current cycle`;
342
+ case "stale":
343
+ return `${head} \xB7 the current cycle is ${fit.current} \u2014 rewrite the plan for it`;
344
+ case "no-open-cycle":
345
+ return `${head} \xB7 the paper has no open cycle`;
346
+ case "no-cycles":
347
+ return `${head} \xB7 paperlint.json keeps no cycles to hold it against`;
348
+ }
349
+ };
350
+ var scopeLines = (p) => {
351
+ switch (p.kind) {
352
+ case "none":
353
+ return ["scope: no venue \u2014 paperlint.json names no preset"];
354
+ case "resolved":
355
+ return p.preset.scope === null ? [
356
+ `scope: none recorded \u2014 ${p.preset.id} has no \`scope\` in its preset (add-venue)`
357
+ ] : scopeText(p.preset.scope);
358
+ case "preset-problem":
359
+ return [];
360
+ }
361
+ };
362
+ var scopeText = (s) => [
363
+ `scope: ${s.url} (read ${s.read})`,
364
+ ...s.sentences.map((t) => ` > ${t}`),
365
+ ...s.topics.length === 0 ? [] : [" topics:", ...s.topics.map((t) => ` - ${t}`)]
366
+ ];
367
+ var STATE_WIDTH = 8;
368
+ var rowLine = (r) => {
369
+ const head = `${r.id} ${r.state.padEnd(STATE_WIDTH)} ${r.what}`;
370
+ switch (r.state) {
371
+ case "todo":
372
+ case "doing":
373
+ return head;
374
+ case "done":
375
+ return `${head} \u2014 evidence: ${r.evidence}`;
376
+ case "dropped":
377
+ return `${head} \u2014 ${r.kind}: ${r.reason}`;
378
+ case "by-rule":
379
+ return `${head} \u2014 closed when paperlint lint reports nothing for ${r.rule}`;
380
+ }
381
+ };
382
+ var stopOf = (rows) => {
383
+ const open = rows.filter((r) => r.state === "todo" || r.state === "doing").map((r) => r.id);
384
+ const byRule = rows.filter((r) => r.state === "by-rule").map((r) => r.id);
385
+ return open.length === 0 && byRule.length === 0 ? { kind: "met" } : { kind: "not-met", open, byRule };
386
+ };
387
+ var stopLine = (s) => {
388
+ if (s.kind === "met") return "stop: met \u2014 every row is done or dropped";
389
+ const parts = [
390
+ ...s.open.length === 0 ? [] : [`open ${s.open.join(" ")}`],
391
+ ...s.byRule.length === 0 ? [] : [`paperlint lint decides ${s.byRule.join(" ")}`]
392
+ ];
393
+ return `stop: not met \u2014 ${parts.join(" \xB7 ")}`;
394
+ };
395
+ var addedAfter = (plan2) => plan2.remaining.filter((r) => r.added > plan2.written).map((r) => r.id);
396
+ var noPlan = (dir, scope) => ({
397
+ code: 0,
398
+ lines: [
399
+ `plan: none written \u2014 ${join(dir, REVISION_PLAN)} does not exist`,
400
+ ...scope,
401
+ "stop: no plan \u2014 nothing says what is left"
402
+ ]
403
+ });
404
+ var unreadable = (dir, problems) => ({
405
+ code: 1,
406
+ lines: [
407
+ `plan: unreadable \u2014 ${join(dir, REVISION_PLAN)}`,
408
+ ...problems.map(
409
+ (p) => ` ${p.path.length === 0 ? "(the file)" : p.path.join(".")}: ${p.message}`
410
+ ),
411
+ "stop: unreadable \u2014 fix the plan first"
412
+ ]
413
+ });
414
+ var report = (dir, deps) => {
415
+ const preset = paperPreset(callerPath(dir), deps);
416
+ if (preset.kind === "settings-problem")
417
+ return { code: 1, lines: [unusablePresetLine(dir, preset)] };
418
+ const read = readPlan(dir, deps);
419
+ const scope = scopeLines(preset);
420
+ switch (read.kind) {
421
+ case "none":
422
+ return noPlan(dir, scope);
423
+ case "unreadable":
424
+ return unreadable(dir, read.problems);
425
+ case "read":
426
+ return { code: 0, lines: planLines(read.plan, preset, scope) };
427
+ }
428
+ };
429
+ var growthLine = (grown) => grown.length === 0 ? "rows added after the plan was written: 0" : `rows added after the plan was written: ${String(grown.length)} (${grown.join(" ")})`;
430
+ var planLines = (plan2, preset, scope) => {
431
+ const fit = cycleFit(plan2, preset.settings?.cycles?.current ?? null);
432
+ return [
433
+ fitLine(plan2, fit),
434
+ barLine(plan2.bar),
435
+ measurementLine(plan2.measurement),
436
+ growthLine(addedAfter(plan2)),
437
+ ...preset.kind === "preset-problem" ? [`scope: unknown \u2014 ${unusablePresetLine("", preset)}`] : scope,
438
+ ...plan2.remaining.map(rowLine),
439
+ fit.kind === "stale" ? `stop: unknown \u2014 the plan is for ${plan2.cycle}, not ${fit.current}` : stopLine(stopOf(plan2.remaining))
440
+ ];
441
+ };
442
+ function main(argv, deps, { out, err }) {
443
+ const [arg] = argv;
444
+ if (arg === void 0) {
445
+ err("usage: node revision-plan.js <paper-dir>\n");
446
+ return 2;
447
+ }
448
+ const r = report(arg, deps);
449
+ (r.code === 0 ? out : err)(`${r.lines.join("\n")}
450
+ `);
451
+ return r.code;
452
+ }
453
+
454
+ // skills/paper-pipeline/scripts/revision-plan.ts
455
+ process.exitCode = main(
456
+ process.argv.slice(2),
457
+ { files: nodeFiles, codec: revisionPlanCodec, venuesDir: presetsDir() },
458
+ {
459
+ out: (s) => process.stdout.write(s),
460
+ err: (s) => process.stderr.write(s)
461
+ }
462
+ );