paperlint 18.6.0 → 18.8.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/.claude-plugin/marketplace.json +11 -0
- package/.claude-plugin/plugin.json +7 -0
- package/CLAUDE.md +3 -3
- package/CONTRIBUTING.md +5 -2
- package/README.md +6 -6
- package/dist/adapters/clack/index.d.ts +3 -0
- package/dist/adapters/clack/index.d.ts.map +1 -0
- package/dist/adapters/clack/index.js +3 -0
- package/dist/adapters/clack/index.js.map +1 -0
- package/dist/adapters/clack/prompts.io.d.ts +8 -0
- package/dist/adapters/clack/prompts.io.d.ts.map +1 -0
- package/dist/adapters/clack/prompts.io.js +20 -0
- package/dist/adapters/clack/prompts.io.js.map +1 -0
- package/dist/adapters/claude-code/claude.io.d.ts +13 -0
- package/dist/adapters/claude-code/claude.io.d.ts.map +1 -0
- package/dist/adapters/claude-code/claude.io.js +68 -0
- package/dist/adapters/claude-code/claude.io.js.map +1 -0
- package/dist/adapters/claude-code/index.d.ts +4 -0
- package/dist/adapters/claude-code/index.d.ts.map +1 -0
- package/dist/adapters/claude-code/index.js +4 -0
- package/dist/adapters/claude-code/index.js.map +1 -0
- package/dist/adapters/claude-code/plugin.d.ts +19 -0
- package/dist/adapters/claude-code/plugin.d.ts.map +1 -0
- package/dist/adapters/claude-code/plugin.js +66 -0
- package/dist/adapters/claude-code/plugin.js.map +1 -0
- package/dist/adapters/package-manager/index.d.ts +4 -0
- package/dist/adapters/package-manager/index.d.ts.map +1 -0
- package/dist/adapters/package-manager/index.js +4 -0
- package/dist/adapters/package-manager/index.js.map +1 -0
- package/dist/adapters/package-manager/install.io.d.ts +3 -0
- package/dist/adapters/package-manager/install.io.d.ts.map +1 -0
- package/dist/adapters/package-manager/install.io.js +23 -0
- package/dist/adapters/package-manager/install.io.js.map +1 -0
- package/dist/adapters/package-manager/manager.d.ts +13 -0
- package/dist/adapters/package-manager/manager.d.ts.map +1 -0
- package/dist/adapters/package-manager/manager.js +22 -0
- package/dist/adapters/package-manager/manager.js.map +1 -0
- package/dist/adapters/study-registry/index.d.ts +2 -2
- package/dist/cli.d.ts +9 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +73 -13
- package/dist/cli.js.map +1 -1
- package/dist/doctor-plugin.d.ts +23 -0
- package/dist/doctor-plugin.d.ts.map +1 -0
- package/dist/doctor-plugin.js +56 -0
- package/dist/doctor-plugin.js.map +1 -0
- package/dist/doctor.d.ts +6 -1
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +69 -26
- package/dist/doctor.js.map +1 -1
- package/dist/hooks-settings.d.ts +18 -0
- package/dist/hooks-settings.d.ts.map +1 -1
- package/dist/hooks-settings.js +25 -0
- package/dist/hooks-settings.js.map +1 -1
- package/dist/init.d.ts +47 -16
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +231 -86
- package/dist/init.js.map +1 -1
- package/dist/link-skills.d.ts +15 -0
- package/dist/link-skills.d.ts.map +1 -1
- package/dist/link-skills.js +18 -1
- package/dist/link-skills.js.map +1 -1
- package/dist/plugin-offer.d.ts +73 -0
- package/dist/plugin-offer.d.ts.map +1 -0
- package/dist/plugin-offer.js +96 -0
- package/dist/plugin-offer.js.map +1 -0
- package/dist/ports/claude-code.d.ts +31 -0
- package/dist/ports/claude-code.d.ts.map +1 -0
- package/dist/ports/claude-code.js +2 -0
- package/dist/ports/claude-code.js.map +1 -0
- package/dist/ports/project-install.d.ts +19 -0
- package/dist/ports/project-install.d.ts.map +1 -0
- package/dist/ports/project-install.js +2 -0
- package/dist/ports/project-install.js.map +1 -0
- package/dist/ports/prompts.d.ts +31 -0
- package/dist/ports/prompts.d.ts.map +1 -0
- package/dist/ports/prompts.js +2 -0
- package/dist/ports/prompts.js.map +1 -0
- package/dist/self-install.d.ts +65 -0
- package/dist/self-install.d.ts.map +1 -0
- package/dist/self-install.js +145 -0
- package/dist/self-install.js.map +1 -0
- package/dist/skill-chunks/chunk-65X5HVIJ.js +26462 -0
- package/dist/skill-chunks/chunk-6NU6CXUS.js +258 -0
- package/dist/skill-chunks/chunk-GRSXIWYF.js +352 -0
- package/dist/skill-chunks/chunk-IREAROCV.js +84 -0
- package/dist/skill-chunks/chunk-KWK6RT4T.js +24267 -0
- package/dist/skill-chunks/chunk-NPQVDEE4.js +19681 -0
- package/dist/skill-chunks/chunk-PJ4KNV4J.js +45 -0
- package/dist/skill-chunks/dist-UPCJMLBM.js +385 -0
- package/dist/skill-chunks/pdfjs-LUMEFOH2.js +39518 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/e2e.md +10 -0
- package/docs/install.md +88 -29
- package/docs/prior-art/README.md +2 -0
- package/docs/prior-art/one-command-install.md +33 -0
- package/docs/prior-art/prompt-libraries.md +32 -0
- package/eslint.config.mjs +1 -0
- package/hooks/CLAUDE.md +2 -2
- package/hooks/CLAUDE.md.spec.ts +1 -1
- package/lib/skill-checks.mjs +13 -6
- package/lib/skill-checks.test.mjs +28 -15
- package/lib/skill-corpus.mjs +5 -2
- package/package.json +8 -3
- package/plugin/CLAUDE.md +22 -14
- package/plugin/CLAUDE.md.spec.ts +20 -12
- package/scripts/bundle-skills.test.ts +226 -0
- package/scripts/bundle-skills.ts +304 -0
- package/scripts/plugin-version.test.ts +80 -0
- package/scripts/plugin-version.ts +58 -0
- package/skills/CLAUDE.md +2 -2
- package/skills/CLAUDE.md.spec.ts +1 -1
- package/skills/argument-arc/SKILL.md +2 -2
- package/skills/argument-arc/SKILL.md.spec.ts +1 -1
- package/skills/argument-arc/scripts/headings.js +57 -13
- package/skills/build-label-page/scripts/label-page.js +2005 -93
- package/skills/cold-read-diff/scripts/cold-read.js +221 -14
- package/skills/label-agent-runs/scripts/labels.js +272 -348
- package/skills/paper-pipeline/references/anonymization.md +4 -3
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +304 -0
- package/skills/pc-panel-review/scripts/prior-reviews.js +7244 -12
- package/skills/run-agent-grid/scripts/grid-guard.js +562 -627
- package/skills/submit-paper/SKILL.md +5 -4
- package/skills/submit-paper/SKILL.md.spec.ts +4 -3
- package/skills/submit-paper/check-deanon.sh +17 -2
- package/skills/submit-paper/check-deanon.test.ts +141 -0
- package/skills/verify-citations/SKILL.md +9 -9
- package/skills/verify-citations/SKILL.md.spec.ts +8 -8
- package/skills/verify-citations/scripts/bib-authors.js +228 -0
- package/skills/verify-citations/scripts/verify-cites.js +816 -0
- package/src/adapters/clack/index.ts +2 -0
- package/src/adapters/clack/prompts.io.ts +35 -0
- package/src/adapters/clack/prompts.test.ts +58 -0
- package/src/adapters/claude-code/claude.io.ts +103 -0
- package/src/adapters/claude-code/index.test.ts +233 -0
- package/src/adapters/claude-code/index.ts +11 -0
- package/src/adapters/claude-code/plugin.ts +82 -0
- package/src/adapters/package-manager/index.test.ts +67 -0
- package/src/adapters/package-manager/index.ts +3 -0
- package/src/adapters/package-manager/install.io.ts +27 -0
- package/src/adapters/package-manager/manager.ts +33 -0
- package/src/cli.harness.mjs +47 -26
- package/src/cli.test.ts +179 -2
- package/src/cli.ts +130 -10
- package/src/doctor-plugin.test.ts +103 -0
- package/src/doctor-plugin.ts +83 -0
- package/src/doctor.test.ts +111 -2
- package/src/doctor.ts +83 -32
- package/src/hooks-notice.test.ts +82 -0
- package/src/hooks-settings.ts +49 -0
- package/src/init-plugin.test.ts +178 -0
- package/src/init.test.ts +138 -27
- package/src/init.ts +341 -124
- package/src/link-skills.test.ts +34 -1
- package/src/link-skills.ts +34 -0
- package/src/parse-args.test.ts +2 -0
- package/src/plugin-offer.test.ts +276 -0
- package/src/plugin-offer.ts +160 -0
- package/src/ports/claude-code.ts +30 -0
- package/src/ports/project-install.ts +18 -0
- package/src/ports/prompts.ts +27 -0
- package/src/self-install.test.ts +267 -0
- package/src/self-install.ts +224 -0
- package/src/types.ts +4 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { createRequire as __plCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __plFileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __plDirname } from "node:path";
|
|
4
|
+
const require = __plCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __plFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __plDirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/domain/text.ts
|
|
9
|
+
var messageOf = (e) => e instanceof Error ? e.message : String(e);
|
|
10
|
+
var codeOf = (e) => typeof e === "object" && e !== null && "code" in e && typeof e.code === "string" ? e.code : void 0;
|
|
11
|
+
|
|
12
|
+
// src/adapters/node/files.io.ts
|
|
13
|
+
import {
|
|
14
|
+
mkdirSync,
|
|
15
|
+
readFileSync,
|
|
16
|
+
renameSync,
|
|
17
|
+
rmSync,
|
|
18
|
+
statSync,
|
|
19
|
+
writeFileSync
|
|
20
|
+
} from "node:fs";
|
|
21
|
+
import { dirname } from "node:path";
|
|
22
|
+
var errorCode = (e) => codeOf(e);
|
|
23
|
+
var nodeFiles = {
|
|
24
|
+
isFile(p) {
|
|
25
|
+
return statSync(p, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
26
|
+
},
|
|
27
|
+
readBytes(p) {
|
|
28
|
+
try {
|
|
29
|
+
return readFileSync(p);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
if (errorCode(e) === "ENOENT") return null;
|
|
32
|
+
throw e;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
writeAtomic(p, bytes) {
|
|
36
|
+
const part = `${p}.part`;
|
|
37
|
+
mkdirSync(dirname(p), { recursive: true });
|
|
38
|
+
try {
|
|
39
|
+
writeFileSync(part, bytes);
|
|
40
|
+
renameSync(part, p);
|
|
41
|
+
} finally {
|
|
42
|
+
rmSync(part, { force: true });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// src/domain/paths.ts
|
|
48
|
+
import { isAbsolute, join, posix } from "node:path";
|
|
49
|
+
|
|
50
|
+
// src/domain/result.ts
|
|
51
|
+
var ok = (value) => ({ ok: true, value });
|
|
52
|
+
var err = (error) => ({ ok: false, error });
|
|
53
|
+
|
|
54
|
+
// src/domain/paths.ts
|
|
55
|
+
var isAbsolutePath = (p) => isAbsolute(p);
|
|
56
|
+
function absolutePath(p) {
|
|
57
|
+
if (!isAbsolutePath(p)) throw new Error(`not an absolute path: ${p}`);
|
|
58
|
+
return p;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// src/domain/tex-document.ts
|
|
62
|
+
var collapse = (s) => s.split(/\s+/u).filter(Boolean).join(" ");
|
|
63
|
+
var optionsInEffect = (line) => ({
|
|
64
|
+
cls: line.cls,
|
|
65
|
+
options: [...line.options, ...line.passed.flatMap((p) => p.options)]
|
|
66
|
+
});
|
|
67
|
+
var readWhole = (line) => line.unread.length === 0 && line.passed.every((p) => p.unread.length === 0);
|
|
68
|
+
var missingOptions = (got, want) => want.options.filter((o) => !got.options.includes(o));
|
|
69
|
+
function venueClass(have, want) {
|
|
70
|
+
if (have.cls !== want.cls) return { kind: "replace", by: want };
|
|
71
|
+
const missing = missingOptions(have, want);
|
|
72
|
+
return missing.length === 0 ? { kind: "keep" } : { kind: "add", options: missing };
|
|
73
|
+
}
|
|
74
|
+
var documentClassLine = (d) => `\\documentclass${d.options.length > 0 ? `[${d.options.join(",")}]` : ""}{${d.cls}}`;
|
|
75
|
+
var runText = (run) => run.segments.map((s) => s.text).join("");
|
|
76
|
+
var OPAQUE = "\uFFFC";
|
|
77
|
+
var LINE_BREAK = "\u2028";
|
|
78
|
+
|
|
79
|
+
// src/domain/sources-record.ts
|
|
80
|
+
var SOURCES_SCHEMA = 1;
|
|
81
|
+
var SOURCES_DIR = "_build";
|
|
82
|
+
var SOURCES_FILE = "sources.json";
|
|
83
|
+
var JOBNAME = "paper";
|
|
84
|
+
function changesSince(r, now) {
|
|
85
|
+
return Object.entries(r.sha256).flatMap(
|
|
86
|
+
([path, recorded]) => {
|
|
87
|
+
const current = now(path);
|
|
88
|
+
if (current === recorded) return [];
|
|
89
|
+
if (current === null) return [{ path, change: "deleted" }];
|
|
90
|
+
return [{ path, change: recorded === null ? "added" : "edited" }];
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
var describeChanges = (cs) => cs.map((c) => `${c.path} ${c.change}`).join(", ");
|
|
95
|
+
function spelledIn(names, name) {
|
|
96
|
+
if (names.includes(name)) return name;
|
|
97
|
+
const [only, ...more] = names.filter(
|
|
98
|
+
(n) => n.toLowerCase() === name.toLowerCase()
|
|
99
|
+
);
|
|
100
|
+
return only !== void 0 && more.length === 0 ? only : null;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// src/caller-path.ts
|
|
104
|
+
import { resolve } from "node:path";
|
|
105
|
+
var callerPath = (p) => absolutePath(resolve(p));
|
|
106
|
+
|
|
107
|
+
// src/paper-record.ts
|
|
108
|
+
import { resolve as resolve3 } from "node:path";
|
|
109
|
+
|
|
110
|
+
// src/domain/sha256.ts
|
|
111
|
+
import { createHash } from "node:crypto";
|
|
112
|
+
var SHA256 = /^[0-9a-f]{64}$/;
|
|
113
|
+
var isSha256 = (s) => SHA256.test(s);
|
|
114
|
+
function parseSha256(s) {
|
|
115
|
+
if (!isSha256(s))
|
|
116
|
+
throw new Error(`not a sha256 (64 lowercase hex digits): ${s}`);
|
|
117
|
+
return s;
|
|
118
|
+
}
|
|
119
|
+
var sha256Hex = (bytes) => parseSha256(createHash("sha256").update(bytes).digest("hex"));
|
|
120
|
+
|
|
121
|
+
// src/sources-record.ts
|
|
122
|
+
import { join as join2, posix as posix2, resolve as resolve2 } from "node:path";
|
|
123
|
+
var sourcesPath = (paperDir) => join2(paperDir, SOURCES_DIR, SOURCES_FILE);
|
|
124
|
+
|
|
125
|
+
// src/paper-record.ts
|
|
126
|
+
var digestOf = (dir, files) => (path) => {
|
|
127
|
+
const b = files.readBytes(callerPath(resolve3(dir, path)));
|
|
128
|
+
return b === null ? null : sha256Hex(b);
|
|
129
|
+
};
|
|
130
|
+
function paperRecord(dir, deps) {
|
|
131
|
+
const raw = deps.files.readBytes(callerPath(sourcesPath(dir)));
|
|
132
|
+
if (raw === null) return { kind: "none", unreadable: null };
|
|
133
|
+
const parsed = deps.codec.parse(new TextDecoder().decode(raw));
|
|
134
|
+
if (!parsed.ok) return { kind: "none", unreadable: parsed.why };
|
|
135
|
+
const changed = changesSince(parsed.record, digestOf(dir, deps.files));
|
|
136
|
+
return changed.length === 0 ? { kind: "fresh", record: parsed.record } : { kind: "stale", changed };
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// src/tex-paper.ts
|
|
140
|
+
import { basename, dirname as dirname2, join as join3 } from "node:path";
|
|
141
|
+
|
|
142
|
+
// src/domain/paper-source.ts
|
|
143
|
+
import { posix as posix3 } from "node:path";
|
|
144
|
+
var candidates = (target) => {
|
|
145
|
+
const t = posix3.normalize(target.trim());
|
|
146
|
+
return posix3.extname(t) === "" ? [`${t}.tex`, t] : [t];
|
|
147
|
+
};
|
|
148
|
+
function found(target, read) {
|
|
149
|
+
const hits = candidates(target).flatMap((path) => {
|
|
150
|
+
const text = read(path);
|
|
151
|
+
return text === null ? [] : [{ path, text }];
|
|
152
|
+
});
|
|
153
|
+
return hits[0] ?? null;
|
|
154
|
+
}
|
|
155
|
+
var shifted = (segments, by) => segments.map((s) => ({ ...s, start: s.start + by, end: s.end + by }));
|
|
156
|
+
var copied = ({ file, text, from, to, via }) => ({
|
|
157
|
+
text: text.slice(from, to),
|
|
158
|
+
segments: to > from ? [{ start: 0, end: to - from, file, source: text, from, via }] : []
|
|
159
|
+
});
|
|
160
|
+
var NOTHING = { text: "", segments: [] };
|
|
161
|
+
var joined = (pieces) => pieces.reduce(
|
|
162
|
+
(acc, p) => ({
|
|
163
|
+
text: acc.text + p.text,
|
|
164
|
+
segments: [...acc.segments, ...shifted(p.segments, acc.text.length)]
|
|
165
|
+
}),
|
|
166
|
+
NOTHING
|
|
167
|
+
);
|
|
168
|
+
function spliced(file, text, range, ctx) {
|
|
169
|
+
const incs = ctx.deps.includes(text).filter((i) => i.span.start >= range.start && i.span.end <= range.end);
|
|
170
|
+
const at = (from, to) => copied({ file, text, from, to, via: ctx.via });
|
|
171
|
+
const { pieces, cursor } = incs.reduce(
|
|
172
|
+
(acc, inc) => ({
|
|
173
|
+
pieces: [
|
|
174
|
+
...acc.pieces,
|
|
175
|
+
at(acc.cursor, inc.span.start),
|
|
176
|
+
included(inc, ctx)
|
|
177
|
+
],
|
|
178
|
+
cursor: inc.span.end
|
|
179
|
+
}),
|
|
180
|
+
{ pieces: [], cursor: range.start }
|
|
181
|
+
);
|
|
182
|
+
return joined([...pieces, at(cursor, range.end)]);
|
|
183
|
+
}
|
|
184
|
+
var endOfLine = (file, text, via) => ({
|
|
185
|
+
text: "\n",
|
|
186
|
+
segments: [{ start: 0, end: 1, file, source: text, from: text.length, via }]
|
|
187
|
+
});
|
|
188
|
+
function included(inc, ctx) {
|
|
189
|
+
const via = ctx.via ?? inc.span;
|
|
190
|
+
const hit = found(inc.target, ctx.deps.read);
|
|
191
|
+
if (hit === null || ctx.stack.includes(hit.path)) return NOTHING;
|
|
192
|
+
const body = inc.macro === "subfile" ? ctx.deps.documentBody(hit.text) : null;
|
|
193
|
+
const range = body ?? { start: 0, end: hit.text.length };
|
|
194
|
+
const piece = spliced(hit.path, hit.text, range, {
|
|
195
|
+
deps: ctx.deps,
|
|
196
|
+
stack: [...ctx.stack, hit.path],
|
|
197
|
+
via
|
|
198
|
+
});
|
|
199
|
+
const endsLine = range.end === hit.text.length && hit.text !== "" && !hit.text.endsWith("\n");
|
|
200
|
+
return endsLine ? joined([piece, endOfLine(hit.path, hit.text, via)]) : piece;
|
|
201
|
+
}
|
|
202
|
+
function assemblePaper(main, text, deps) {
|
|
203
|
+
const p = spliced(
|
|
204
|
+
main,
|
|
205
|
+
text,
|
|
206
|
+
{ start: 0, end: text.length },
|
|
207
|
+
{ deps, stack: [main], via: null }
|
|
208
|
+
);
|
|
209
|
+
return { main, text: p.text, segments: p.segments };
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// src/tex-paper.ts
|
|
213
|
+
var decoded = (b) => b === null ? null : new TextDecoder().decode(b);
|
|
214
|
+
function readPaper(filename, src, deps) {
|
|
215
|
+
const dir = dirname2(filename);
|
|
216
|
+
const record = paperRecord(dir, deps);
|
|
217
|
+
const listed = record.kind === "fresh" ? record.record.inputs.map((i) => i.path) : [];
|
|
218
|
+
return assemblePaper(basename(filename), src, {
|
|
219
|
+
// No record: no include is looked at, so there is nothing to splice.
|
|
220
|
+
includes: record.kind === "fresh" ? deps.latex.includes : () => [],
|
|
221
|
+
documentBody: deps.latex.documentBody,
|
|
222
|
+
read: (rel) => {
|
|
223
|
+
const recorded = spelledIn(listed, rel);
|
|
224
|
+
return recorded === null ? null : decoded(deps.files.readBytes(callerPath(join3(dir, recorded))));
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// src/domain/record.ts
|
|
230
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
231
|
+
var fieldOf = (v, key) => isRecord(v) ? v[key] : void 0;
|
|
232
|
+
|
|
233
|
+
export {
|
|
234
|
+
isRecord,
|
|
235
|
+
fieldOf,
|
|
236
|
+
ok,
|
|
237
|
+
err,
|
|
238
|
+
collapse,
|
|
239
|
+
optionsInEffect,
|
|
240
|
+
readWhole,
|
|
241
|
+
venueClass,
|
|
242
|
+
documentClassLine,
|
|
243
|
+
runText,
|
|
244
|
+
OPAQUE,
|
|
245
|
+
LINE_BREAK,
|
|
246
|
+
messageOf,
|
|
247
|
+
nodeFiles,
|
|
248
|
+
absolutePath,
|
|
249
|
+
SOURCES_SCHEMA,
|
|
250
|
+
SOURCES_FILE,
|
|
251
|
+
JOBNAME,
|
|
252
|
+
describeChanges,
|
|
253
|
+
spelledIn,
|
|
254
|
+
callerPath,
|
|
255
|
+
paperRecord,
|
|
256
|
+
decoded,
|
|
257
|
+
readPaper
|
|
258
|
+
};
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { createRequire as __plCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __plFileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __plDirname } from "node:path";
|
|
4
|
+
const require = __plCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __plFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __plDirname(__filename);
|
|
7
|
+
|
|
8
|
+
// node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
|
|
9
|
+
function e(e7, t23, n22) {
|
|
10
|
+
let r7 = (n23) => e7(n23, ...t23);
|
|
11
|
+
return n22 === void 0 ? r7 : Object.assign(r7, { lazy: n22, lazyArgs: t23 });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// node_modules/remeda/dist/purry.js
|
|
15
|
+
function t(t23, n22, r7) {
|
|
16
|
+
let i4 = t23.length - n22.length;
|
|
17
|
+
if (i4 === 0) return t23(...n22);
|
|
18
|
+
if (i4 === 1) return e(t23, n22, r7);
|
|
19
|
+
throw Error(`Wrong number of arguments`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// node_modules/remeda/dist/chunk.js
|
|
23
|
+
function t2(...t23) {
|
|
24
|
+
return t(n, t23);
|
|
25
|
+
}
|
|
26
|
+
function n(e7, t23) {
|
|
27
|
+
if (t23 < 1) throw RangeError(`chunk: A chunk size of '${t23.toString()}' would result in an infinite array`);
|
|
28
|
+
if (e7.length === 0) return [];
|
|
29
|
+
if (t23 >= e7.length) return [[...e7]];
|
|
30
|
+
let n22 = Math.ceil(e7.length / t23), r7 = Array(n22);
|
|
31
|
+
if (t23 === 1) for (let [t24, n23] of e7.entries()) r7[t24] = [n23];
|
|
32
|
+
else for (let i4 = 0; i4 < n22; i4 += 1) {
|
|
33
|
+
let n23 = i4 * t23;
|
|
34
|
+
r7[i4] = e7.slice(n23, n23 + t23);
|
|
35
|
+
}
|
|
36
|
+
return r7;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// node_modules/remeda/dist/last.js
|
|
40
|
+
function t3(...t23) {
|
|
41
|
+
return t(n2, t23);
|
|
42
|
+
}
|
|
43
|
+
var n2 = (e7) => e7.at(-1);
|
|
44
|
+
|
|
45
|
+
// node_modules/remeda/dist/countBy.js
|
|
46
|
+
function t4(...t23) {
|
|
47
|
+
return t(n3, t23);
|
|
48
|
+
}
|
|
49
|
+
var n3 = (e7, t23) => {
|
|
50
|
+
let n22 = /* @__PURE__ */ new Map();
|
|
51
|
+
for (let [r7, i4] of e7.entries()) {
|
|
52
|
+
let a3 = t23(i4, r7, e7);
|
|
53
|
+
if (a3 !== void 0) {
|
|
54
|
+
let e8 = n22.get(a3);
|
|
55
|
+
e8 === void 0 ? n22.set(a3, 1) : n22.set(a3, e8 + 1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return Object.fromEntries(n22);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// node_modules/remeda/dist/utilityEvaluators-IxVD3t2o.js
|
|
62
|
+
var e2 = { done: true, hasNext: false };
|
|
63
|
+
var t5 = { done: false, hasNext: false };
|
|
64
|
+
var n4 = () => e2;
|
|
65
|
+
|
|
66
|
+
// node_modules/remeda/dist/pipe.js
|
|
67
|
+
function t6(e7, ...t23) {
|
|
68
|
+
let i4 = e7, o = t23.map((e8) => `lazy` in e8 ? { lazyEvaluator: e8.lazy(...e8.lazyArgs), isSingle: e8.lazy.single ?? false, index: 0, items: [] } : void 0), s = 0;
|
|
69
|
+
for (; s < t23.length; ) {
|
|
70
|
+
if (o[s] === void 0 || !a(i4)) {
|
|
71
|
+
let e9 = t23[s];
|
|
72
|
+
i4 = e9(i4), s += 1;
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
let e8 = n5(o, s), c = r(i4, e8), { isSingle: l } = e8.at(-1);
|
|
76
|
+
i4 = l ? c[0] : c, s += e8.length;
|
|
77
|
+
}
|
|
78
|
+
return i4;
|
|
79
|
+
}
|
|
80
|
+
function n5(e7, t23) {
|
|
81
|
+
let n22 = [];
|
|
82
|
+
for (let r7 = t23; r7 < e7.length; r7++) {
|
|
83
|
+
let t24 = e7[r7];
|
|
84
|
+
if (t24 === void 0 || (n22.push(t24), t24.isSingle)) break;
|
|
85
|
+
}
|
|
86
|
+
return n22;
|
|
87
|
+
}
|
|
88
|
+
function r(e7, t23) {
|
|
89
|
+
let n22 = [];
|
|
90
|
+
for (let r7 of e7) if (i(r7, n22, t23)) break;
|
|
91
|
+
return n22;
|
|
92
|
+
}
|
|
93
|
+
function i(t23, n22, r7) {
|
|
94
|
+
if (r7.length === 0) return n22.push(t23), false;
|
|
95
|
+
let a3 = t23, o = t5, s = false;
|
|
96
|
+
for (let [e7, { items: t24, lazyEvaluator: c }] of r7.entries()) if (t24.push(a3), o = c(a3, t24.length - 1, t24), o.done && (s = true), o.hasNext) {
|
|
97
|
+
if (o.hasMany ?? false) {
|
|
98
|
+
for (let t25 of o.next) if (i(t25, n22, r7.slice(e7 + 1))) return true;
|
|
99
|
+
return s;
|
|
100
|
+
}
|
|
101
|
+
a3 = o.next;
|
|
102
|
+
} else break;
|
|
103
|
+
return o.hasNext && n22.push(a3), s;
|
|
104
|
+
}
|
|
105
|
+
function a(e7) {
|
|
106
|
+
return typeof e7 == `string` || typeof e7 == `object` && !!e7 && Symbol.iterator in e7;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// node_modules/remeda/dist/purryFromLazy-BoPMn2L_.js
|
|
110
|
+
function t7(t23, n22) {
|
|
111
|
+
let r7 = n22.length - t23.length;
|
|
112
|
+
if (r7 === 1) {
|
|
113
|
+
let [r8, ...i4] = n22;
|
|
114
|
+
return t6(r8, { lazy: t23, lazyArgs: i4 });
|
|
115
|
+
}
|
|
116
|
+
if (r7 === 0) {
|
|
117
|
+
let r8 = { lazy: t23, lazyArgs: n22 };
|
|
118
|
+
return Object.assign((t24) => t6(t24, r8), r8);
|
|
119
|
+
}
|
|
120
|
+
throw Error(`Wrong number of arguments`);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// node_modules/remeda/dist/hasAtLeast.js
|
|
124
|
+
function t8(...t23) {
|
|
125
|
+
return t(n6, t23);
|
|
126
|
+
}
|
|
127
|
+
var n6 = (e7, t23) => e7.length >= t23;
|
|
128
|
+
|
|
129
|
+
// node_modules/remeda/dist/purryOrderRules-ufWoj2V5.js
|
|
130
|
+
var e3 = { asc: (e7, t23) => e7 > t23, desc: (e7, t23) => e7 < t23 };
|
|
131
|
+
function t9(e7, t23) {
|
|
132
|
+
let [n22, ...a3] = t23;
|
|
133
|
+
if (!i2(n22)) return e7(n22, r2(...a3));
|
|
134
|
+
let o = r2(n22, ...a3);
|
|
135
|
+
return (t24) => e7(t24, o);
|
|
136
|
+
}
|
|
137
|
+
function r2(t23, n22, ...i4) {
|
|
138
|
+
let a3 = typeof t23 == `function` ? t23 : t23[0], o = typeof t23 == `function` ? `asc` : t23[1], s = e3[o], c = n22 === void 0 ? void 0 : r2(n22, ...i4);
|
|
139
|
+
return (e7, t24) => {
|
|
140
|
+
let n23 = a3(e7), r7 = a3(t24);
|
|
141
|
+
return s(n23, r7) ? 1 : s(r7, n23) ? -1 : c?.(e7, t24) ?? 0;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function i2(t23) {
|
|
145
|
+
if (a2(t23)) return true;
|
|
146
|
+
if (typeof t23 != `object` || !Array.isArray(t23)) return false;
|
|
147
|
+
let [n22, r7, ...i4] = t23;
|
|
148
|
+
return a2(n22) && typeof r7 == `string` && Object.hasOwn(e3, r7) && i4.length === 0;
|
|
149
|
+
}
|
|
150
|
+
var a2 = (e7) => typeof e7 == `function` && e7.length === 1;
|
|
151
|
+
|
|
152
|
+
// node_modules/remeda/dist/entries.js
|
|
153
|
+
function t10(...t23) {
|
|
154
|
+
return t(Object.entries, t23);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// node_modules/remeda/dist/flatMap.js
|
|
158
|
+
function t11(...t23) {
|
|
159
|
+
return t(n7, t23, r3);
|
|
160
|
+
}
|
|
161
|
+
var n7 = (e7, t23) => e7.flatMap(t23);
|
|
162
|
+
var r3 = (e7) => (t23, n22, r7) => {
|
|
163
|
+
let i4 = e7(t23, n22, r7);
|
|
164
|
+
return Array.isArray(i4) ? { done: false, hasNext: true, hasMany: true, next: i4 } : { done: false, hasNext: true, next: i4 };
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
// node_modules/remeda/dist/forEachObj.js
|
|
168
|
+
function t12(...t23) {
|
|
169
|
+
return t(n8, t23);
|
|
170
|
+
}
|
|
171
|
+
function n8(e7, t23) {
|
|
172
|
+
for (let [n22, r7] of Object.entries(e7)) t23(r7, n22, e7);
|
|
173
|
+
return e7;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// node_modules/remeda/dist/fromKeys.js
|
|
177
|
+
function t13(...t23) {
|
|
178
|
+
return t(n9, t23);
|
|
179
|
+
}
|
|
180
|
+
function n9(e7, t23) {
|
|
181
|
+
let n22 = {};
|
|
182
|
+
for (let [r7, i4] of e7.entries()) n22[i4] = t23(i4, r7, e7);
|
|
183
|
+
return n22;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// node_modules/remeda/dist/indexBy.js
|
|
187
|
+
function t14(...t23) {
|
|
188
|
+
return t(n10, t23);
|
|
189
|
+
}
|
|
190
|
+
function n10(e7, t23) {
|
|
191
|
+
let n22 = {};
|
|
192
|
+
for (let [r7, i4] of e7.entries()) {
|
|
193
|
+
let a3 = t23(i4, r7, e7);
|
|
194
|
+
n22[a3] = i4;
|
|
195
|
+
}
|
|
196
|
+
return n22;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// node_modules/remeda/dist/isDefined.js
|
|
200
|
+
function e4(e7) {
|
|
201
|
+
return e7 !== void 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// node_modules/remeda/dist/isIncludedIn.js
|
|
205
|
+
function e5(e7, t23) {
|
|
206
|
+
if (t23 === void 0) {
|
|
207
|
+
let t24 = new Set(e7);
|
|
208
|
+
return (e8) => t24.has(e8);
|
|
209
|
+
}
|
|
210
|
+
return t23.includes(e7);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// node_modules/remeda/dist/mapKeys.js
|
|
214
|
+
function t15(...t23) {
|
|
215
|
+
return t(n11, t23);
|
|
216
|
+
}
|
|
217
|
+
function n11(e7, t23) {
|
|
218
|
+
let n22 = {};
|
|
219
|
+
for (let [r7, i4] of Object.entries(e7)) {
|
|
220
|
+
let a3 = t23(r7, i4, e7);
|
|
221
|
+
n22[a3] = i4;
|
|
222
|
+
}
|
|
223
|
+
return n22;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// node_modules/remeda/dist/mapValues.js
|
|
227
|
+
function t16(...t23) {
|
|
228
|
+
return t(n12, t23);
|
|
229
|
+
}
|
|
230
|
+
function n12(e7, t23) {
|
|
231
|
+
let n22 = {};
|
|
232
|
+
for (let [r7, i4] of Object.entries(e7)) n22[r7] = t23(i4, r7, e7);
|
|
233
|
+
return n22;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// node_modules/remeda/dist/mapWithFeedback.js
|
|
237
|
+
function t17(...t23) {
|
|
238
|
+
return t7(n13, t23);
|
|
239
|
+
}
|
|
240
|
+
var n13 = (e7, t23) => {
|
|
241
|
+
let n22 = t23;
|
|
242
|
+
return (t24, r7, i4) => (n22 = e7(n22, t24, r7, i4), { done: false, hasNext: true, next: n22 });
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// node_modules/remeda/dist/omit.js
|
|
246
|
+
function n14(...t23) {
|
|
247
|
+
return t(r4, t23);
|
|
248
|
+
}
|
|
249
|
+
function r4(e7, n22) {
|
|
250
|
+
if (!t8(n22, 1)) return { ...e7 };
|
|
251
|
+
if (!t8(n22, 2)) {
|
|
252
|
+
let { [n22[0]]: t23, ...r8 } = e7;
|
|
253
|
+
return r8;
|
|
254
|
+
}
|
|
255
|
+
let r7 = { ...e7 };
|
|
256
|
+
for (let e8 of n22) delete r7[e8];
|
|
257
|
+
return r7;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// node_modules/remeda/dist/once.js
|
|
261
|
+
function e6(e7) {
|
|
262
|
+
let t23 = false, n22;
|
|
263
|
+
return () => (t23 ||= (n22 = e7(), true), n22);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// node_modules/remeda/dist/only.js
|
|
267
|
+
function t18(...t23) {
|
|
268
|
+
return t(n15, t23);
|
|
269
|
+
}
|
|
270
|
+
var n15 = (e7) => e7.length === 1 ? e7[0] : void 0;
|
|
271
|
+
|
|
272
|
+
// node_modules/remeda/dist/pick.js
|
|
273
|
+
function t19(...t23) {
|
|
274
|
+
return t(n16, t23);
|
|
275
|
+
}
|
|
276
|
+
function n16(e7, t23) {
|
|
277
|
+
let n22 = {};
|
|
278
|
+
for (let r7 of t23) r7 in e7 && (n22[r7] = e7[r7]);
|
|
279
|
+
return n22;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// node_modules/remeda/dist/pickBy.js
|
|
283
|
+
function t20(...t23) {
|
|
284
|
+
return t(n17, t23);
|
|
285
|
+
}
|
|
286
|
+
function n17(e7, t23) {
|
|
287
|
+
let n22 = {};
|
|
288
|
+
for (let [r7, i4] of Object.entries(e7)) t23(i4, r7, e7) && (n22[r7] = i4);
|
|
289
|
+
return n22;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// node_modules/remeda/dist/pullObject.js
|
|
293
|
+
function t21(...t23) {
|
|
294
|
+
return t(n18, t23);
|
|
295
|
+
}
|
|
296
|
+
function n18(e7, t23, n22) {
|
|
297
|
+
let r7 = {};
|
|
298
|
+
for (let [i4, a3] of e7.entries()) {
|
|
299
|
+
let o = t23(a3, i4, e7);
|
|
300
|
+
r7[o] = n22(a3, i4, e7);
|
|
301
|
+
}
|
|
302
|
+
return r7;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// node_modules/remeda/dist/sortBy.js
|
|
306
|
+
function t22(...t23) {
|
|
307
|
+
return t9(n19, t23);
|
|
308
|
+
}
|
|
309
|
+
var n19 = (e7, t23) => [...e7].sort(t23);
|
|
310
|
+
|
|
311
|
+
// node_modules/remeda/dist/unique.js
|
|
312
|
+
function n20(...e7) {
|
|
313
|
+
return t7(r5, e7);
|
|
314
|
+
}
|
|
315
|
+
function r5() {
|
|
316
|
+
let t23 = /* @__PURE__ */ new Set();
|
|
317
|
+
return (n22) => t23.has(n22) ? t5 : (t23.add(n22), { done: false, hasNext: true, next: n22 });
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// node_modules/remeda/dist/zip.js
|
|
321
|
+
function n21(...t23) {
|
|
322
|
+
return t(r6, t23, i3);
|
|
323
|
+
}
|
|
324
|
+
var r6 = (e7, t23) => e7.length < t23.length ? e7.map((e8, n22) => [e8, t23[n22]]) : t23.map((t24, n22) => [e7[n22], t24]);
|
|
325
|
+
var i3 = (e7) => e7.length === 0 ? n4 : (t23, n22) => ({ hasNext: true, next: [t23, e7[n22]], done: n22 >= e7.length - 1 });
|
|
326
|
+
|
|
327
|
+
export {
|
|
328
|
+
t2 as t,
|
|
329
|
+
t4 as t2,
|
|
330
|
+
t6 as t3,
|
|
331
|
+
t8 as t4,
|
|
332
|
+
t10 as t5,
|
|
333
|
+
t11 as t6,
|
|
334
|
+
t12 as t7,
|
|
335
|
+
t13 as t8,
|
|
336
|
+
t14 as t9,
|
|
337
|
+
e4 as e,
|
|
338
|
+
e5 as e2,
|
|
339
|
+
t3 as t10,
|
|
340
|
+
t15 as t11,
|
|
341
|
+
t16 as t12,
|
|
342
|
+
t17 as t13,
|
|
343
|
+
n14 as n,
|
|
344
|
+
e6 as e3,
|
|
345
|
+
t18 as t14,
|
|
346
|
+
t19 as t15,
|
|
347
|
+
t20 as t16,
|
|
348
|
+
t21 as t17,
|
|
349
|
+
t22 as t18,
|
|
350
|
+
n20 as n2,
|
|
351
|
+
n21 as n3
|
|
352
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { createRequire as __plCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __plFileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __plDirname } from "node:path";
|
|
4
|
+
const require = __plCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __plFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __plDirname(__filename);
|
|
7
|
+
|
|
8
|
+
// lib/paper-config.ts
|
|
9
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
10
|
+
import { dirname, join, resolve } from "node:path";
|
|
11
|
+
var CONFIG_KEY = "paperlint";
|
|
12
|
+
var CONFIG_FILE = "paperlint.json";
|
|
13
|
+
var PAPER_MARKERS = Object.freeze([
|
|
14
|
+
"paper.tex",
|
|
15
|
+
"PIPELINE-STATUS.md"
|
|
16
|
+
]);
|
|
17
|
+
function findProjectRoot(startDir, isFile = existsSync) {
|
|
18
|
+
const start = resolve(startDir);
|
|
19
|
+
const isPaper = (d) => PAPER_MARKERS.some((m) => isFile(join(d, m)));
|
|
20
|
+
const walk = (found) => {
|
|
21
|
+
let d = start;
|
|
22
|
+
while (!found(d)) {
|
|
23
|
+
if (dirname(d) === d) return null;
|
|
24
|
+
d = dirname(d);
|
|
25
|
+
}
|
|
26
|
+
return d;
|
|
27
|
+
};
|
|
28
|
+
return walk((d) => isFile(join(d, CONFIG_FILE)) && !isPaper(d)) ?? walk((d) => isFile(join(d, "package.json"))) ?? start;
|
|
29
|
+
}
|
|
30
|
+
var isObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
31
|
+
function settingsOf(root) {
|
|
32
|
+
let v;
|
|
33
|
+
try {
|
|
34
|
+
v = JSON.parse(readFileSync(join(root, CONFIG_FILE), "utf8"));
|
|
35
|
+
} catch {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
return isObject(v) ? v : void 0;
|
|
39
|
+
}
|
|
40
|
+
var SETTINGS_KEYS = Object.freeze({
|
|
41
|
+
papersDir: `the papers directory, default "papers" \u2014 every command, the hooks`,
|
|
42
|
+
structure: "which files a paper directory must hold \u2014 paperlint lint",
|
|
43
|
+
rules: "rule overrides: { id: severity } for every paper in scope, or ESLint blocks (files, ignores, rules) \u2014 paperlint lint",
|
|
44
|
+
extends: "the venue preset: paperlint:<name> or ./path.jsonc \u2014 the pdf/ venue rules, paperlint build",
|
|
45
|
+
kind: "the kind of paper, whose page limit applies \u2014 format/page-limit",
|
|
46
|
+
pdf: "where the built PDF is, relative to the paper, when it is not paper.pdf \u2014 the facts",
|
|
47
|
+
identity: "what identifies the authors \u2014 names, handles, emails, affiliations, own project names; a blind venue's PDF must not say any of them \u2014 anonymity/identity. The root's list and a paper's are joined",
|
|
48
|
+
talk: `how this paper is presented: { "mode": "remote-video", "dir"?, "files"?, "one_slide"? } \u2014 the talk/ rules. Set only in a paper's own paperlint.json; in the root paperlint.json it is an error`,
|
|
49
|
+
submission: `which submission on the venue's portal is this paper's: { "id": <number> } \u2014 paperlint submission, with the preset's "portal". Set only in a paper's own paperlint.json; in the root paperlint.json it is an error`,
|
|
50
|
+
authors: `the authors as the venue's portal should record them, in order: [{ "name", "email", "affiliation"? }] \u2014 paperlint submission new. Set only in a paper's own paperlint.json; in the root paperlint.json it is an error`,
|
|
51
|
+
fields: `the paper's answers to the venue's own form fields, keyed as the preset's "submission_fields" names them: { "topics": ["<an option>"], "paper_type": "<one option>", "pc_conflicts": { "<pc email>": "<conflict type>" }, \u2026 } \u2014 checked against those fields, every required one filled, then sent by paperlint submission new and update. Set only in a paper's own paperlint.json; in the root paperlint.json it is an error`,
|
|
52
|
+
cycles: "the paper's attempts at venues, oldest first: [{ id, venue, kind, opened, phase?, deadlines, submission?, outcome }] \u2014 extends, kind and submission are then the current attempt's, and the cycle/ rules judge the record. Set only in a paper's own paperlint.json; in the root paperlint.json it is an error",
|
|
53
|
+
artifact: `the paper's reproduction artifact and what it must hold: { "dir": "<folder>" or "files": "<committed list of its paths>", "required"?: ["README", "LICENSE"], "promises"?: { "<label>": "<glob>" } } \u2014 artifact/required-files, artifact/promised. Set only in a paper's own paperlint.json; in the root paperlint.json it is an error`,
|
|
54
|
+
scripts: "how skill prose names the scripts \u2014 consumer.mjs",
|
|
55
|
+
timezone: "the zone deadline anchors are written in \u2014 consumer.mjs",
|
|
56
|
+
contactEmail: "the polite-pool address for citation lookups \u2014 consumer.mjs",
|
|
57
|
+
triggerCases: "the consumer's own skill trigger cases \u2014 lib/skill-trigger-cases.mjs",
|
|
58
|
+
$comment: "a note for humans (JSON Schema's own comment keyword); ignored"
|
|
59
|
+
});
|
|
60
|
+
var PAPER_ONLY_KEYS = Object.freeze([
|
|
61
|
+
"talk",
|
|
62
|
+
"submission",
|
|
63
|
+
"authors",
|
|
64
|
+
"fields",
|
|
65
|
+
"cycles",
|
|
66
|
+
"artifact"
|
|
67
|
+
]);
|
|
68
|
+
var ROOT_ONLY_KEYS = Object.freeze([
|
|
69
|
+
"papersDir",
|
|
70
|
+
"structure",
|
|
71
|
+
"scripts",
|
|
72
|
+
"timezone",
|
|
73
|
+
"contactEmail",
|
|
74
|
+
"triggerCases"
|
|
75
|
+
]);
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
CONFIG_KEY,
|
|
79
|
+
CONFIG_FILE,
|
|
80
|
+
findProjectRoot,
|
|
81
|
+
settingsOf,
|
|
82
|
+
SETTINGS_KEYS,
|
|
83
|
+
ROOT_ONLY_KEYS
|
|
84
|
+
};
|