paperlint 18.8.0 → 18.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CLAUDE.md +7 -1
- package/README.md +3 -4
- package/dist/cli.js +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/skill-chunks/{chunk-NPQVDEE4.js → chunk-4MHEJ6FR.js} +50 -1
- package/dist/skill-chunks/{chunk-KWK6RT4T.js → chunk-EOVEVX67.js} +1 -1
- package/dist/skill-chunks/{chunk-65X5HVIJ.js → chunk-UL4INX2P.js} +1 -1
- package/docs/website.md +11 -9
- package/package.json +5 -3
- package/presets/agentverify-2027.jsonc +12 -6
- package/presets/agentverify-2027.md +11 -7
- package/presets/aidc-2026.jsonc +4 -4
- package/presets/aidc-2026.md +4 -0
- package/presets/nlbse-2027.jsonc +11 -6
- package/presets/nlbse-2027.md +7 -7
- package/scripts/sync-skills.test.ts +69 -0
- package/scripts/sync-skills.ts +57 -0
- package/skills/argument-arc/scripts/headings.js +2 -2
- package/skills/build-label-page/scripts/label-page.js +1 -1
- package/skills/cold-read-diff/scripts/cold-read.js +2 -2
- package/skills/label-agent-runs/scripts/labels.js +1 -1
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +3 -3
- package/skills/pc-panel-review/scripts/prior-reviews.js +1 -1
- package/skills/run-agent-grid/scripts/grid-guard.js +1 -1
- package/skills/verify-citations/scripts/bib-authors.js +3 -3
- package/skills/verify-citations/scripts/verify-cites.js +3 -3
- package/src/cli.ts +11 -3
- package/src/edition-rule.test.ts +16 -12
- package/src/lint-edited-site-example.test.ts +95 -0
- package/src/paper-includes.test.ts +7 -1
|
@@ -65,17 +65,23 @@
|
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
// (agentverify-2027.md)
|
|
71
|
-
// `registration`. Notification and camera-ready are the site's, at the end of the AoE day.
|
|
68
|
+
// HotCRP's submission and resubmission deadlines are the ends of 14 and 15 Nov AoE.
|
|
69
|
+
// The workshop CFP still lists 13 Nov AoE and the organizers confirmed there is no separate
|
|
70
|
+
// abstract deadline (agentverify-2027.md). Notification and camera-ready come from the workshop site.
|
|
72
71
|
"deadlines": [
|
|
73
72
|
{
|
|
74
73
|
"what": "submission",
|
|
75
|
-
"at": "2026-11-
|
|
74
|
+
"at": "2026-11-15T11:59:59Z",
|
|
76
75
|
"source": "portal",
|
|
77
76
|
"url": "https://icse2027-agentverify.hotcrp.com/deadlines",
|
|
78
|
-
"read": "2026-
|
|
77
|
+
"read": "2026-11-22",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"what": "resubmission",
|
|
81
|
+
"at": "2026-11-16T11:59:59Z",
|
|
82
|
+
"source": "portal",
|
|
83
|
+
"url": "https://icse2027-agentverify.hotcrp.com/deadlines",
|
|
84
|
+
"read": "2026-11-22",
|
|
79
85
|
},
|
|
80
86
|
{
|
|
81
87
|
"what": "notification",
|
|
@@ -30,8 +30,8 @@ researchr page `conf.researchr.org/home/agentverify-2027` only redirects to the
|
|
|
30
30
|
is offered (below).
|
|
31
31
|
- **Presenting**: «At least one author of each accepted paper must register and present.» Remote
|
|
32
32
|
presentation is allowed (below).
|
|
33
|
-
- **Deadlines (AoE)**: submission
|
|
34
|
-
camera-ready 29 Jan 2027.
|
|
33
|
+
- **Deadlines (AoE)**: HotCRP submission 14 Nov 2026 and resubmission 15 Nov 2026.
|
|
34
|
+
Reviews are due 5 Dec, final notification 11 Dec 2026, and camera-ready 29 Jan 2027.
|
|
35
35
|
|
|
36
36
|
## 🔴 The submission deadline moved
|
|
37
37
|
|
|
@@ -43,8 +43,12 @@ The organizers' email of 2026-10-23 (as received by an author; the email itself
|
|
|
43
43
|
Source: **organizers' email, 2026-10-23**. On 2026-10-26 every public source agreed with it: the
|
|
44
44
|
CFP, the home page («Papers are due November 13th, 2026 (AoE)»), the ICSE workshops page («Workshop
|
|
45
45
|
Papers Submission Deadline for all Workshops: 13 November 2026») and the portal (`"sub":1794657599`,
|
|
46
|
-
2026-11-14T11:59:59Z).
|
|
47
|
-
|
|
46
|
+
2026-11-14T11:59:59Z).
|
|
47
|
+
|
|
48
|
+
The [workshop CFP](https://agentverify2027.github.io/cfp.html) still lists 13 Nov AoE. The
|
|
49
|
+
[HotCRP deadlines page](https://icse2027-agentverify.hotcrp.com/deadlines), rechecked on
|
|
50
|
+
2026-11-21 UTC, gives 2026-11-15T11:59:59Z for new submissions and 2026-11-16T11:59:59Z
|
|
51
|
+
for updates to completed submissions. The preset follows the portal for both.
|
|
48
52
|
|
|
49
53
|
## Paper kinds and limits
|
|
50
54
|
|
|
@@ -63,9 +67,9 @@ body are a finding.
|
|
|
63
67
|
- **The IEEE template**, through `extends: paperlint:ieee-conference` ([`ieee-conference.md`](ieee-conference.md)).
|
|
64
68
|
- **Double-blind review** (`blind`), so `anonymity/identity` checks the PDF against the paper's
|
|
65
69
|
declared `identity`.
|
|
66
|
-
- **Portal and deadlines**:
|
|
67
|
-
|
|
68
|
-
abstract deadline.
|
|
70
|
+
- **Portal and deadlines**: paperlint's scheduled workflow refreshes submission and resubmission
|
|
71
|
+
from HotCRP. Notification and camera-ready come from the workshop site. The organizers confirmed
|
|
72
|
+
that there is no separate abstract deadline.
|
|
69
73
|
|
|
70
74
|
## Answered by the organizers (emails to an author, not public)
|
|
71
75
|
|
package/presets/aidc-2026.jsonc
CHANGED
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
// the HotCRP API, there.
|
|
41
41
|
"portal": { "kind": "hotcrp", "url": "https://aidc.submit.acsac.org" },
|
|
42
42
|
|
|
43
|
-
// Read from the portal's public deadlines page
|
|
44
|
-
//
|
|
43
|
+
// Read from the portal's public deadlines page. The camera-ready timestamp is the hard
|
|
44
|
+
// `final.done` value in its status object. The workshop site's earlier date is recorded in the card.
|
|
45
45
|
"deadlines": [
|
|
46
46
|
{
|
|
47
47
|
"what": "submission",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"what": "camera-ready",
|
|
55
|
-
"at": "2026-11-
|
|
55
|
+
"at": "2026-11-18T11:59:59Z",
|
|
56
56
|
"source": "portal",
|
|
57
57
|
"url": "https://aidc.submit.acsac.org/deadlines",
|
|
58
|
-
"read": "2026-
|
|
58
|
+
"read": "2026-11-22",
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
61
|
|
package/presets/aidc-2026.md
CHANGED
|
@@ -27,6 +27,10 @@ from it. The `submit-paper` skill reads this card for the venue's specifics.
|
|
|
27
27
|
2026-10-03 11:59:59 UTC (`"sub":1791028799`). The portal is what refuses the upload. The preset
|
|
28
28
|
carries its readings as `deadlines`, refreshed by paperlint's scheduled workflow when the portal
|
|
29
29
|
changes them.
|
|
30
|
+
- **Camera-ready**: the [workshop site](https://aidcworkshop.github.io/#important-dates) lists
|
|
31
|
+
2026-11-08T11:59:59Z. The [HotCRP deadlines page](https://aidc.submit.acsac.org/deadlines)
|
|
32
|
+
gives 2026-11-18T11:59:59Z as its hard `final.done` deadline. Both were rechecked on
|
|
33
|
+
2026-11-21 UTC. The preset follows HotCRP.
|
|
30
34
|
|
|
31
35
|
## Paper kinds and limits
|
|
32
36
|
|
package/presets/nlbse-2027.jsonc
CHANGED
|
@@ -38,17 +38,22 @@
|
|
|
38
38
|
// «should be performed electronically through HotCRP» (the call above).
|
|
39
39
|
"portal": { "kind": "hotcrp", "url": "https://icse2027-nlbse.hotcrp.com" },
|
|
40
40
|
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
// of the AoE day; the refresh adds the portal's the day it publishes one (the earlier binds).
|
|
44
|
-
// The competition papers' 27 Nov is in the card only: one reading per kind and source.
|
|
41
|
+
// The CFP's updated 20 Nov AoE paper deadline matches HotCRP's 21 Nov 11:59:59 UTC.
|
|
42
|
+
// The separate 27 Nov AoE deadline for tool competition and research challenge papers is in the card.
|
|
45
43
|
"deadlines": [
|
|
46
44
|
{
|
|
47
45
|
"what": "submission",
|
|
48
|
-
"at": "2026-11-
|
|
46
|
+
"at": "2026-11-21T11:59:59Z",
|
|
47
|
+
"source": "portal",
|
|
48
|
+
"url": "https://icse2027-nlbse.hotcrp.com/deadlines",
|
|
49
|
+
"read": "2026-11-22",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"what": "submission",
|
|
53
|
+
"at": "2026-11-21T11:59:59Z",
|
|
49
54
|
"source": "call",
|
|
50
55
|
"url": "https://conf.researchr.org/home/icse-2027/nlbse-2027",
|
|
51
|
-
"read": "2026-
|
|
56
|
+
"read": "2026-11-22",
|
|
52
57
|
},
|
|
53
58
|
{
|
|
54
59
|
"what": "notification",
|
package/presets/nlbse-2027.md
CHANGED
|
@@ -29,12 +29,11 @@ Sources read 2026-10-26: that page, the portal's
|
|
|
29
29
|
proceedings.» (tool competitions) and «Accepted papers will appear in the NLBSE ’27 proceedings.»
|
|
30
30
|
(research challenge, skill classification). IEEE comes from the ICSE page above. No archival /
|
|
31
31
|
non-archival choice is mentioned.
|
|
32
|
-
- **Deadlines (AoE)**: paper submission
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
carries the call's reading until the portal publishes one.
|
|
32
|
+
- **Deadlines (AoE)**: paper submission **20 Nov 2026**, tool competition and research challenge
|
|
33
|
+
papers **27 Nov 2026**, author notification 11 Dec 2026, and camera-ready 29 Jan 2027.
|
|
34
|
+
The [workshop CFP](https://conf.researchr.org/home/icse-2027/nlbse-2027) and
|
|
35
|
+
[HotCRP](https://icse2027-nlbse.hotcrp.com/deadlines) agree on the paper submission deadline,
|
|
36
|
+
2026-11-21T11:59:59Z. Both were rechecked on 2026-11-22 UTC.
|
|
38
37
|
|
|
39
38
|
## Paper kinds and limits
|
|
40
39
|
|
|
@@ -60,7 +59,8 @@ counts every page of the PDF: references that spill onto a page after a full bod
|
|
|
60
59
|
- **The IEEE template**, through `extends: paperlint:ieee-conference` ([`ieee-conference.md`](ieee-conference.md)).
|
|
61
60
|
- **Anonymous review** (`blind`), so `anonymity/identity` checks the PDF against the paper's
|
|
62
61
|
declared `identity`.
|
|
63
|
-
- **Portal and deadlines**:
|
|
62
|
+
- **Portal and deadlines**: the preset records paper submission from both sources, and notification
|
|
63
|
+
and camera-ready from the call. The separate competition and challenge deadline is listed above.
|
|
64
64
|
|
|
65
65
|
## Not verified
|
|
66
66
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
2
|
+
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { describe, expect, it } from "vitest";
|
|
6
|
+
import { syncSkills } from "./sync-skills.ts";
|
|
7
|
+
|
|
8
|
+
describe("repository skill sync", () => {
|
|
9
|
+
it("detects a missing or stale Codex skill, and regenerates it from the Claude skill", async () => {
|
|
10
|
+
const root = await mkdtemp(join(tmpdir(), "paperlint-skill-test-"));
|
|
11
|
+
try {
|
|
12
|
+
const claudeDir = join(root, ".claude", "skills", "add-venue");
|
|
13
|
+
const claudeFile = join(claudeDir, "SKILL.md");
|
|
14
|
+
const codexFile = join(
|
|
15
|
+
root,
|
|
16
|
+
".agents",
|
|
17
|
+
"skills",
|
|
18
|
+
"add-venue",
|
|
19
|
+
"SKILL.md",
|
|
20
|
+
);
|
|
21
|
+
const skill = [
|
|
22
|
+
"---",
|
|
23
|
+
"name: add-venue",
|
|
24
|
+
"description: Update a workshop.",
|
|
25
|
+
"---",
|
|
26
|
+
"",
|
|
27
|
+
"<!-- vigiles:sha256:abc compiled from .claude/skills/add-venue/SKILL.md.spec.ts -->",
|
|
28
|
+
"",
|
|
29
|
+
"# Check each deadline.",
|
|
30
|
+
"",
|
|
31
|
+
].join("\n");
|
|
32
|
+
|
|
33
|
+
await mkdir(claudeDir, { recursive: true });
|
|
34
|
+
await writeFile(claudeFile, skill);
|
|
35
|
+
await expect(syncSkills(root, true)).rejects.toThrow(
|
|
36
|
+
"npm run sync:skills",
|
|
37
|
+
);
|
|
38
|
+
await expect(readFile(codexFile, "utf8")).rejects.toThrow();
|
|
39
|
+
|
|
40
|
+
await syncSkills(root, false);
|
|
41
|
+
const generated = await readFile(codexFile, "utf8");
|
|
42
|
+
expect(generated).toContain("name: add-venue");
|
|
43
|
+
expect(generated).toContain("# Check each deadline.");
|
|
44
|
+
expect(generated).not.toContain("vigiles:sha256");
|
|
45
|
+
expect(await readFile(claudeFile, "utf8")).toBe(skill);
|
|
46
|
+
await syncSkills(root, true);
|
|
47
|
+
|
|
48
|
+
await writeFile(claudeFile, skill.replace("each deadline", "the portal"));
|
|
49
|
+
await expect(syncSkills(root, true)).rejects.toThrow(
|
|
50
|
+
"npm run sync:skills",
|
|
51
|
+
);
|
|
52
|
+
expect(await readFile(codexFile, "utf8")).toBe(generated);
|
|
53
|
+
await syncSkills(root, false);
|
|
54
|
+
expect(await readFile(codexFile, "utf8")).toContain(
|
|
55
|
+
"# Check the portal.",
|
|
56
|
+
);
|
|
57
|
+
} finally {
|
|
58
|
+
await rm(root, { recursive: true, force: true });
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it("the published CLI can check the tracked skill from a different directory", () => {
|
|
63
|
+
execFileSync(
|
|
64
|
+
process.execPath,
|
|
65
|
+
[join(import.meta.dirname, "sync-skills.ts"), "--check"],
|
|
66
|
+
{ cwd: tmpdir(), stdio: "pipe" },
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { generate } from "rulesync";
|
|
6
|
+
import { isMain } from "../skills/paper-pipeline/scripts/consumer.mjs";
|
|
7
|
+
|
|
8
|
+
const sourcePath = ".claude/skills/add-venue/SKILL.md";
|
|
9
|
+
|
|
10
|
+
/** Stage the compiled skill alone. Its eval and spec are repository authoring files. */
|
|
11
|
+
async function stageSkill(inputRoot: string, source: string): Promise<void> {
|
|
12
|
+
const skill = join(inputRoot, "skills", "add-venue");
|
|
13
|
+
await mkdir(skill, { recursive: true });
|
|
14
|
+
await writeFile(
|
|
15
|
+
join(skill, "SKILL.md"),
|
|
16
|
+
source.replace(
|
|
17
|
+
/^<!-- vigiles:sha256:.* -->\r?$/m,
|
|
18
|
+
"<!-- Generated by npm run sync:skills from the compiled Claude skill. -->",
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function syncSkills(root: string, check: boolean): Promise<void> {
|
|
24
|
+
const source = await readFile(join(root, sourcePath), "utf8");
|
|
25
|
+
const inputRoot = await mkdtemp(join(tmpdir(), "paperlint-rulesync-"));
|
|
26
|
+
try {
|
|
27
|
+
await stageSkill(inputRoot, source);
|
|
28
|
+
const result = await generate({
|
|
29
|
+
inputRoots: [inputRoot],
|
|
30
|
+
outputRoots: [root],
|
|
31
|
+
targets: ["codexcli"],
|
|
32
|
+
features: ["skills"],
|
|
33
|
+
check,
|
|
34
|
+
delete: false,
|
|
35
|
+
silent: true,
|
|
36
|
+
global: false,
|
|
37
|
+
});
|
|
38
|
+
assert.equal(
|
|
39
|
+
result.sourceLoadFailed,
|
|
40
|
+
false,
|
|
41
|
+
"Rulesync could not read add-venue",
|
|
42
|
+
);
|
|
43
|
+
assert.ok(
|
|
44
|
+
!check || !result.hasDiff,
|
|
45
|
+
"Run npm run sync:skills to refresh the Codex skill",
|
|
46
|
+
);
|
|
47
|
+
} finally {
|
|
48
|
+
await rm(inputRoot, { recursive: true, force: true });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (isMain(import.meta.url)) {
|
|
53
|
+
await syncSkills(
|
|
54
|
+
join(import.meta.dirname, ".."),
|
|
55
|
+
process.argv.includes("--check"),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -8,7 +8,7 @@ const __dirname = __plDirname(__filename);
|
|
|
8
8
|
import {
|
|
9
9
|
latexReader,
|
|
10
10
|
sourcesCodec
|
|
11
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
11
|
+
} from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
|
|
12
12
|
import {
|
|
13
13
|
callerPath,
|
|
14
14
|
decoded,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
runText
|
|
18
18
|
} from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
|
|
19
19
|
import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
20
|
-
import "../../../dist/skill-chunks/chunk-
|
|
20
|
+
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
21
21
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
22
22
|
|
|
23
23
|
// skills/argument-arc/scripts/headings-core.ts
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
26
26
|
import {
|
|
27
27
|
external_exports
|
|
28
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
28
|
+
} from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
29
29
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
30
30
|
|
|
31
31
|
// skills/build-label-page/scripts/label-page-cli.ts
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parseLatex,
|
|
11
11
|
sourcesCodec,
|
|
12
12
|
visit
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
|
|
14
14
|
import {
|
|
15
15
|
messageOf,
|
|
16
16
|
nodeFiles,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
t,
|
|
22
22
|
t10 as t2
|
|
23
23
|
} from "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
24
|
-
import "../../../dist/skill-chunks/chunk-
|
|
24
|
+
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
25
25
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
26
26
|
|
|
27
27
|
// skills/cold-read-diff/scripts/cold-read-core.ts
|
|
@@ -7,7 +7,7 @@ const __filename = __plFileURLToPath(import.meta.url);
|
|
|
7
7
|
const __dirname = __plDirname(__filename);
|
|
8
8
|
import {
|
|
9
9
|
external_exports
|
|
10
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
10
|
+
} from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
11
11
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
12
12
|
|
|
13
13
|
// skills/label-agent-runs/scripts/labels.ts
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
bibliographyAt,
|
|
11
11
|
bibliographyUnreadWhy,
|
|
12
12
|
isMain
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
|
|
14
14
|
import {
|
|
15
15
|
latexReader,
|
|
16
16
|
sourcesCodec
|
|
17
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
17
|
+
} from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
|
|
18
18
|
import "../../../dist/skill-chunks/chunk-IREAROCV.js";
|
|
19
19
|
import {
|
|
20
20
|
absolutePath,
|
|
21
21
|
nodeFiles
|
|
22
22
|
} from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
|
|
23
23
|
import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
24
|
-
import "../../../dist/skill-chunks/chunk-
|
|
24
|
+
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
25
25
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
26
26
|
|
|
27
27
|
// skills/paper-pipeline/scripts/extract-ref-facts.mjs
|
|
@@ -7,7 +7,7 @@ const __filename = __plFileURLToPath(import.meta.url);
|
|
|
7
7
|
const __dirname = __plDirname(__filename);
|
|
8
8
|
import {
|
|
9
9
|
external_exports
|
|
10
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
10
|
+
} from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
11
11
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
12
12
|
|
|
13
13
|
// skills/run-agent-grid/scripts/grid-guard.ts
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
bibliographyAt,
|
|
11
11
|
bibliographyUnreadWhy,
|
|
12
12
|
isMain
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
|
|
14
14
|
import {
|
|
15
15
|
latexReader,
|
|
16
16
|
sourcesCodec
|
|
17
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
17
|
+
} from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
|
|
18
18
|
import "../../../dist/skill-chunks/chunk-IREAROCV.js";
|
|
19
19
|
import {
|
|
20
20
|
absolutePath,
|
|
21
21
|
nodeFiles
|
|
22
22
|
} from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
|
|
23
23
|
import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
24
|
-
import "../../../dist/skill-chunks/chunk-
|
|
24
|
+
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
25
25
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
26
26
|
|
|
27
27
|
// skills/verify-citations/scripts/bib-authors.mjs
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
bibliographyUnreadWhy,
|
|
12
12
|
consumerContactEmail,
|
|
13
13
|
isMain
|
|
14
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
14
|
+
} from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
|
|
15
15
|
import {
|
|
16
16
|
latexReader,
|
|
17
17
|
sourcesCodec
|
|
18
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
18
|
+
} from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
|
|
19
19
|
import "../../../dist/skill-chunks/chunk-IREAROCV.js";
|
|
20
20
|
import {
|
|
21
21
|
absolutePath,
|
|
22
22
|
nodeFiles
|
|
23
23
|
} from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
|
|
24
24
|
import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
|
|
25
|
-
import "../../../dist/skill-chunks/chunk-
|
|
25
|
+
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
26
26
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
27
27
|
|
|
28
28
|
// skills/verify-citations/scripts/verify-cites.mjs
|
package/src/cli.ts
CHANGED
|
@@ -2921,6 +2921,10 @@ export async function lintText(
|
|
|
2921
2921
|
/** The formatter `paperlint lint` prints with. */
|
|
2922
2922
|
const LINT_FORMAT = "stylish";
|
|
2923
2923
|
|
|
2924
|
+
/** Printed under a clean `lint`, the README's disclaimer in one line. */
|
|
2925
|
+
const CLEAN_RUN_REMINDER =
|
|
2926
|
+
"Check the venue's own call before you submit: a call can change between editions, and a check can miss a case.";
|
|
2927
|
+
|
|
2924
2928
|
/**
|
|
2925
2929
|
* The end of `paperlint lint`: refuse an optional rule that reached no paper, print the findings, and
|
|
2926
2930
|
* decide the exit code. Pulled out of `run` so each question has its own function.
|
|
@@ -2978,12 +2982,16 @@ async function reportLint(
|
|
|
2978
2982
|
// short. The reverse order would read as "all clean — oh, and also this".
|
|
2979
2983
|
if (structure.length > 0) log(formatStructure(structure));
|
|
2980
2984
|
const out = await (await eslint.loadFormatter(LINT_FORMAT)).format(results);
|
|
2985
|
+
const clean = out.trim() === "" && structure.length === 0;
|
|
2981
2986
|
log(
|
|
2982
2987
|
out.trim() ||
|
|
2983
|
-
(
|
|
2984
|
-
?
|
|
2985
|
-
:
|
|
2988
|
+
(clean
|
|
2989
|
+
? `✓ ${String(results.length)} file(s) checked, no findings`
|
|
2990
|
+
: ""),
|
|
2986
2991
|
);
|
|
2992
|
+
// A clean run is the one result a reader could take as a guarantee, so it, and only it,
|
|
2993
|
+
// carries the README's reminder. Findings speak for themselves; --json is for machines.
|
|
2994
|
+
if (clean) log(` ${CLEAN_RUN_REMINDER}`);
|
|
2987
2995
|
}
|
|
2988
2996
|
if (structure.length > 0 || results.some((r) => r.errorCount > 0)) return 1;
|
|
2989
2997
|
// Warnings fail the run only when the threshold is named EXPLICITLY. A negative threshold means
|
package/src/edition-rule.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `paper/edition-over` (`src/edition-rule.ts`) on papers held in memory beside the
|
|
3
|
-
* with the clock fixed
|
|
4
|
-
*
|
|
2
|
+
* `paper/edition-over` (`src/edition-rule.ts`) on papers held in memory beside the preset catalog,
|
|
3
|
+
* with the clock and AIDC's deadlines fixed. The rule warns when every deadline has passed and names
|
|
4
|
+
* newer editions of the same series. It is silent while a deadline is ahead or no deadline is recorded.
|
|
5
5
|
*/
|
|
6
6
|
import { readdirSync, readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -13,15 +13,19 @@ import {
|
|
|
13
13
|
editionRules,
|
|
14
14
|
judgeEdition,
|
|
15
15
|
} from "./edition-rule.ts";
|
|
16
|
+
import { frozenText } from "../test/frozen-presets.ts";
|
|
16
17
|
import { venuePreset } from "../test/support.ts";
|
|
17
18
|
|
|
18
19
|
const VENUES = presetsDir();
|
|
19
20
|
const PAPERS = "/work/papers";
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
21
|
+
const presets = {
|
|
22
|
+
...Object.fromEntries(
|
|
23
|
+
readdirSync(VENUES)
|
|
24
|
+
.filter((f) => f.endsWith(".jsonc") || f.endsWith(".json"))
|
|
25
|
+
.map((f) => [join(VENUES, f), readFileSync(join(VENUES, f))]),
|
|
26
|
+
),
|
|
27
|
+
[join(VENUES, "aidc-2026.jsonc")]: frozenText("aidc-2026.jsonc"),
|
|
28
|
+
};
|
|
25
29
|
|
|
26
30
|
/** The rule over one paper's PIPELINE-STATUS.md at the instant `now`: each message, as ESLint words it. */
|
|
27
31
|
function lint(
|
|
@@ -34,7 +38,7 @@ function lint(
|
|
|
34
38
|
): string[] {
|
|
35
39
|
const dir = `${PAPERS}/p`;
|
|
36
40
|
const files = memoryFiles({
|
|
37
|
-
...
|
|
41
|
+
...presets,
|
|
38
42
|
[`${dir}/paperlint.json`]: JSON.stringify(settings),
|
|
39
43
|
...extra,
|
|
40
44
|
});
|
|
@@ -75,7 +79,7 @@ describe("paper/edition-over — every deadline of the edition has passed", () =
|
|
|
75
79
|
"2027-01-01T00:00:00Z",
|
|
76
80
|
),
|
|
77
81
|
).toEqual([
|
|
78
|
-
'AIDC 2026 is over: every deadline its preset records has passed, the last (camera-ready) at 2026-
|
|
82
|
+
'AIDC 2026 is over: every deadline its preset records has passed, the last (camera-ready) at 2026-10-31T11:59:59Z. paperlint ships no newer edition of it yet; if the paper goes elsewhere, point "extends" at that venue',
|
|
79
83
|
]);
|
|
80
84
|
});
|
|
81
85
|
|
|
@@ -102,12 +106,12 @@ describe("paper/edition-over — silent", () => {
|
|
|
102
106
|
[
|
|
103
107
|
"a deadline is still ahead",
|
|
104
108
|
{ extends: "paperlint:aidc-2026", kind: "regular" },
|
|
105
|
-
"2026-
|
|
109
|
+
"2026-10-30T00:00:00Z",
|
|
106
110
|
],
|
|
107
111
|
[
|
|
108
112
|
"at the last deadline's very instant",
|
|
109
113
|
{ extends: "paperlint:aidc-2026", kind: "regular" },
|
|
110
|
-
"2026-
|
|
114
|
+
"2026-10-31T11:59:59Z",
|
|
111
115
|
],
|
|
112
116
|
[
|
|
113
117
|
"an edition whose preset records no deadline",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* paperlint.dev/integrations quotes what the `lint-edited` hook shows Claude Code after an edit
|
|
3
|
+
* (site/src/pages/integrations/model/hook-example.json). This runs the real hook, in-process, on the
|
|
4
|
+
* edit the page describes and fails when what it prints is no longer the quote, so a reworded rule
|
|
5
|
+
* message or trailer cannot leave a stale copy on the site.
|
|
6
|
+
*
|
|
7
|
+
* The edit: a paper for ASE 2026, whose preset requires a «Data Availability Statement» section;
|
|
8
|
+
* a first edit leaves the paper as it is (the hook's snapshot of its errors), the second deletes
|
|
9
|
+
* that section, and the hook reports the one error the second edit introduced.
|
|
10
|
+
*/
|
|
11
|
+
import assert from "node:assert/strict";
|
|
12
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
13
|
+
import { join } from "node:path";
|
|
14
|
+
import { test } from "vitest";
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
import { useTempDir, writeTree } from "../test/support.ts";
|
|
17
|
+
import { runHook } from "./cli.ts";
|
|
18
|
+
|
|
19
|
+
const root = useTempDir("lint-edited-example-");
|
|
20
|
+
|
|
21
|
+
const EXAMPLE = z
|
|
22
|
+
.object({ file: z.string(), reason: z.string() })
|
|
23
|
+
.strict()
|
|
24
|
+
.parse(
|
|
25
|
+
JSON.parse(
|
|
26
|
+
readFileSync(
|
|
27
|
+
join(
|
|
28
|
+
import.meta.dirname,
|
|
29
|
+
"../site/src/pages/integrations/model/hook-example.json",
|
|
30
|
+
),
|
|
31
|
+
"utf8",
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
const body = (statement: boolean): string =>
|
|
37
|
+
[
|
|
38
|
+
"\\documentclass[sigconf,review,anonymous]{acmart}",
|
|
39
|
+
"\\begin{document}",
|
|
40
|
+
"\\section{Introduction}",
|
|
41
|
+
"Agents edit code.",
|
|
42
|
+
"\\section{Results}",
|
|
43
|
+
"They pass more tests.",
|
|
44
|
+
...(statement
|
|
45
|
+
? [
|
|
46
|
+
"\\section{Data Availability Statement}",
|
|
47
|
+
"The scripts and data are in the artifact.",
|
|
48
|
+
]
|
|
49
|
+
: []),
|
|
50
|
+
"\\end{document}",
|
|
51
|
+
"",
|
|
52
|
+
].join("\n");
|
|
53
|
+
|
|
54
|
+
/** The hook on an Edit of `file`; what it printed on stdout. */
|
|
55
|
+
async function hookOn(file: string, newString: string): Promise<string> {
|
|
56
|
+
const out: string[] = [];
|
|
57
|
+
const code = await runHook("lint-edited", {
|
|
58
|
+
stdin: () =>
|
|
59
|
+
JSON.stringify({
|
|
60
|
+
tool_name: "Edit",
|
|
61
|
+
tool_input: { file_path: file, new_string: newString },
|
|
62
|
+
}),
|
|
63
|
+
out: (t) => {
|
|
64
|
+
out.push(t);
|
|
65
|
+
},
|
|
66
|
+
err: (m: string) => {
|
|
67
|
+
throw new Error(`the hook complained: ${m}`);
|
|
68
|
+
},
|
|
69
|
+
run: () => {
|
|
70
|
+
throw new Error("an in-process hook spawns nothing");
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
assert.equal(code, 0);
|
|
74
|
+
return out.join("");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
test("the site's quote of the lint-edited hook is what the hook prints for that edit", async () => {
|
|
78
|
+
writeTree(root, {
|
|
79
|
+
"package.json": "{}\n",
|
|
80
|
+
"papers/my-paper/PIPELINE-STATUS.md": "# status\n",
|
|
81
|
+
"papers/my-paper/paperlint.json": JSON.stringify({
|
|
82
|
+
extends: "paperlint:ase-2026",
|
|
83
|
+
kind: "technical",
|
|
84
|
+
}),
|
|
85
|
+
"papers/my-paper/paper.tex": body(true),
|
|
86
|
+
});
|
|
87
|
+
const tex = join(root, EXAMPLE.file);
|
|
88
|
+
assert.equal(await hookOn(tex, "They pass more tests."), "");
|
|
89
|
+
writeFileSync(tex, body(false));
|
|
90
|
+
const { reason } = z
|
|
91
|
+
.object({ decision: z.literal("block"), reason: z.string() })
|
|
92
|
+
.strict()
|
|
93
|
+
.parse(JSON.parse(await hookOn(tex, "They pass more tests.")));
|
|
94
|
+
assert.equal(reason.replaceAll(root + "/", ""), EXAMPLE.reason);
|
|
95
|
+
});
|