paperlint 20.6.2 → 20.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.
Files changed (70) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/adapters/revision-plan/index.d.ts +17 -0
  3. package/dist/adapters/revision-plan/index.d.ts.map +1 -0
  4. package/dist/adapters/revision-plan/index.js +168 -0
  5. package/dist/adapters/revision-plan/index.js.map +1 -0
  6. package/dist/domain/paper-layout.d.ts.map +1 -1
  7. package/dist/domain/paper-layout.js +4 -0
  8. package/dist/domain/paper-layout.js.map +1 -1
  9. package/dist/domain/preset-submission-fields.d.ts +15 -0
  10. package/dist/domain/preset-submission-fields.d.ts.map +1 -0
  11. package/dist/domain/preset-submission-fields.js +25 -0
  12. package/dist/domain/preset-submission-fields.js.map +1 -0
  13. package/dist/domain/revision-plan.d.ts +121 -0
  14. package/dist/domain/revision-plan.d.ts.map +1 -0
  15. package/dist/domain/revision-plan.js +15 -0
  16. package/dist/domain/revision-plan.js.map +1 -0
  17. package/dist/domain/venue-scope.d.ts +29 -0
  18. package/dist/domain/venue-scope.d.ts.map +1 -0
  19. package/dist/domain/venue-scope.js +18 -0
  20. package/dist/domain/venue-scope.js.map +1 -0
  21. package/dist/ports/revision-plan-codec.d.ts +7 -0
  22. package/dist/ports/revision-plan-codec.d.ts.map +1 -0
  23. package/dist/ports/revision-plan-codec.js +2 -0
  24. package/dist/ports/revision-plan-codec.js.map +1 -0
  25. package/dist/preset-merge.d.ts +34 -0
  26. package/dist/preset-merge.d.ts.map +1 -0
  27. package/dist/preset-merge.js +89 -0
  28. package/dist/preset-merge.js.map +1 -0
  29. package/dist/presets.d.ts +3 -2
  30. package/dist/presets.d.ts.map +1 -1
  31. package/dist/presets.js +3 -84
  32. package/dist/presets.js.map +1 -1
  33. package/dist/tex-requirements.d.ts +4 -1
  34. package/dist/tex-requirements.d.ts.map +1 -1
  35. package/dist/tex-requirements.js +3 -20
  36. package/dist/tex-requirements.js.map +1 -1
  37. package/docs/configuration.md +56 -0
  38. package/docs/layout.md +1 -0
  39. package/docs/rules/paper/allowed-files-only.md +1 -0
  40. package/docs/venues.md +6 -4
  41. package/package.json +2 -1
  42. package/presets/acl-latex.md +1 -1
  43. package/presets/langcode-2027.jsonc +106 -0
  44. package/presets/langcode-2027.md +79 -0
  45. package/presets/naacl-2027.jsonc +19 -0
  46. package/presets/naacl-2027.md +42 -0
  47. package/presets/venue-profile.schema.json +22 -1
  48. package/scripts/eslint-file-length.mjs +4 -4
  49. package/scripts/revision-plan-schema.test.ts +39 -0
  50. package/scripts/revision-plan-schema.ts +17 -0
  51. package/skills/paper-pipeline/revision-plan.schema.json +619 -0
  52. package/src/adapters/revision-plan/index.test.ts +207 -0
  53. package/src/adapters/revision-plan/index.ts +236 -0
  54. package/src/adapters/revision-plan/schema.test.ts +69 -0
  55. package/src/domain/paper-layout.test.ts +1 -0
  56. package/src/domain/paper-layout.ts +4 -0
  57. package/src/domain/preset-submission-fields.ts +49 -0
  58. package/src/domain/revision-plan.ts +127 -0
  59. package/src/domain/venue-scope.test.ts +33 -0
  60. package/src/domain/venue-scope.ts +39 -0
  61. package/src/paper-settings-commands.test.ts +1 -1
  62. package/src/ports/revision-plan-codec.ts +7 -0
  63. package/src/preset-card-rule.test.ts +2 -0
  64. package/src/preset-merge.ts +141 -0
  65. package/src/presets-scope.test.ts +177 -0
  66. package/src/presets.test.ts +17 -56
  67. package/src/presets.ts +5 -130
  68. package/src/tex-requirements.ts +14 -45
  69. package/src/tex-venue-rules.test.ts +3 -25
  70. package/src/venue-rules.test.ts +2 -2
@@ -0,0 +1,619 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "cycle": {
6
+ "type": "string",
7
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
8
+ },
9
+ "written": {
10
+ "type": "string",
11
+ "format": "date",
12
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
13
+ },
14
+ "bar": {
15
+ "oneOf": [
16
+ {
17
+ "type": "object",
18
+ "properties": {
19
+ "kind": {
20
+ "type": "string",
21
+ "const": "corpus"
22
+ },
23
+ "series": {
24
+ "type": "string",
25
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
26
+ },
27
+ "editions": {
28
+ "type": "array",
29
+ "prefixItems": [
30
+ {
31
+ "type": "integer",
32
+ "minimum": 1900,
33
+ "maximum": 2999
34
+ }
35
+ ],
36
+ "items": {
37
+ "type": "integer",
38
+ "minimum": 1900,
39
+ "maximum": 2999
40
+ },
41
+ "minItems": 1
42
+ }
43
+ },
44
+ "required": [
45
+ "kind",
46
+ "series",
47
+ "editions"
48
+ ],
49
+ "additionalProperties": false
50
+ },
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "kind": {
55
+ "type": "string",
56
+ "const": "proxy"
57
+ },
58
+ "series": {
59
+ "type": "string",
60
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
61
+ },
62
+ "stands_in_for": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ }
66
+ },
67
+ "required": [
68
+ "kind",
69
+ "series",
70
+ "stands_in_for"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "kind": {
78
+ "type": "string",
79
+ "const": "none"
80
+ },
81
+ "why": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ }
85
+ },
86
+ "required": [
87
+ "kind",
88
+ "why"
89
+ ],
90
+ "additionalProperties": false
91
+ }
92
+ ]
93
+ },
94
+ "measurement": {
95
+ "oneOf": [
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "kind": {
100
+ "type": "string",
101
+ "const": "open"
102
+ }
103
+ },
104
+ "required": [
105
+ "kind"
106
+ ],
107
+ "additionalProperties": false
108
+ },
109
+ {
110
+ "type": "object",
111
+ "properties": {
112
+ "kind": {
113
+ "type": "string",
114
+ "const": "enough"
115
+ },
116
+ "since": {
117
+ "type": "string",
118
+ "format": "date",
119
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
120
+ },
121
+ "evidence": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ }
125
+ },
126
+ "required": [
127
+ "kind",
128
+ "since",
129
+ "evidence"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ ]
134
+ },
135
+ "remaining": {
136
+ "type": "array",
137
+ "items": {
138
+ "oneOf": [
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "id": {
143
+ "type": "string",
144
+ "pattern": "^R[1-9][0-9]*$"
145
+ },
146
+ "what": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ },
150
+ "from": {
151
+ "oneOf": [
152
+ {
153
+ "type": "object",
154
+ "properties": {
155
+ "kind": {
156
+ "type": "string",
157
+ "const": "author"
158
+ }
159
+ },
160
+ "required": [
161
+ "kind"
162
+ ],
163
+ "additionalProperties": false
164
+ },
165
+ {
166
+ "type": "object",
167
+ "properties": {
168
+ "kind": {
169
+ "type": "string",
170
+ "const": "venue"
171
+ }
172
+ },
173
+ "required": [
174
+ "kind"
175
+ ],
176
+ "additionalProperties": false
177
+ },
178
+ {
179
+ "type": "object",
180
+ "properties": {
181
+ "kind": {
182
+ "type": "string",
183
+ "const": "finding"
184
+ },
185
+ "file": {
186
+ "type": "string",
187
+ "minLength": 1
188
+ },
189
+ "finding": {
190
+ "anyOf": [
191
+ {
192
+ "type": "string",
193
+ "minLength": 1
194
+ },
195
+ {
196
+ "type": "integer",
197
+ "minimum": 1,
198
+ "maximum": 9007199254740991
199
+ }
200
+ ]
201
+ }
202
+ },
203
+ "required": [
204
+ "kind",
205
+ "file",
206
+ "finding"
207
+ ],
208
+ "additionalProperties": false
209
+ },
210
+ {
211
+ "type": "object",
212
+ "properties": {
213
+ "kind": {
214
+ "type": "string",
215
+ "const": "prior-reviews"
216
+ },
217
+ "cycle": {
218
+ "type": "string",
219
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
220
+ }
221
+ },
222
+ "required": [
223
+ "kind",
224
+ "cycle"
225
+ ],
226
+ "additionalProperties": false
227
+ }
228
+ ]
229
+ },
230
+ "added": {
231
+ "type": "string",
232
+ "format": "date",
233
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
234
+ },
235
+ "state": {
236
+ "type": "string",
237
+ "enum": [
238
+ "todo",
239
+ "doing"
240
+ ]
241
+ }
242
+ },
243
+ "required": [
244
+ "id",
245
+ "what",
246
+ "from",
247
+ "added",
248
+ "state"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "id": {
256
+ "type": "string",
257
+ "pattern": "^R[1-9][0-9]*$"
258
+ },
259
+ "what": {
260
+ "type": "string",
261
+ "minLength": 1
262
+ },
263
+ "from": {
264
+ "oneOf": [
265
+ {
266
+ "type": "object",
267
+ "properties": {
268
+ "kind": {
269
+ "type": "string",
270
+ "const": "author"
271
+ }
272
+ },
273
+ "required": [
274
+ "kind"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "kind": {
282
+ "type": "string",
283
+ "const": "venue"
284
+ }
285
+ },
286
+ "required": [
287
+ "kind"
288
+ ],
289
+ "additionalProperties": false
290
+ },
291
+ {
292
+ "type": "object",
293
+ "properties": {
294
+ "kind": {
295
+ "type": "string",
296
+ "const": "finding"
297
+ },
298
+ "file": {
299
+ "type": "string",
300
+ "minLength": 1
301
+ },
302
+ "finding": {
303
+ "anyOf": [
304
+ {
305
+ "type": "string",
306
+ "minLength": 1
307
+ },
308
+ {
309
+ "type": "integer",
310
+ "minimum": 1,
311
+ "maximum": 9007199254740991
312
+ }
313
+ ]
314
+ }
315
+ },
316
+ "required": [
317
+ "kind",
318
+ "file",
319
+ "finding"
320
+ ],
321
+ "additionalProperties": false
322
+ },
323
+ {
324
+ "type": "object",
325
+ "properties": {
326
+ "kind": {
327
+ "type": "string",
328
+ "const": "prior-reviews"
329
+ },
330
+ "cycle": {
331
+ "type": "string",
332
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
333
+ }
334
+ },
335
+ "required": [
336
+ "kind",
337
+ "cycle"
338
+ ],
339
+ "additionalProperties": false
340
+ }
341
+ ]
342
+ },
343
+ "added": {
344
+ "type": "string",
345
+ "format": "date",
346
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
347
+ },
348
+ "state": {
349
+ "type": "string",
350
+ "const": "done"
351
+ },
352
+ "evidence": {
353
+ "type": "string",
354
+ "minLength": 1
355
+ }
356
+ },
357
+ "required": [
358
+ "id",
359
+ "what",
360
+ "from",
361
+ "added",
362
+ "state",
363
+ "evidence"
364
+ ],
365
+ "additionalProperties": false
366
+ },
367
+ {
368
+ "type": "object",
369
+ "properties": {
370
+ "id": {
371
+ "type": "string",
372
+ "pattern": "^R[1-9][0-9]*$"
373
+ },
374
+ "what": {
375
+ "type": "string",
376
+ "minLength": 1
377
+ },
378
+ "from": {
379
+ "oneOf": [
380
+ {
381
+ "type": "object",
382
+ "properties": {
383
+ "kind": {
384
+ "type": "string",
385
+ "const": "author"
386
+ }
387
+ },
388
+ "required": [
389
+ "kind"
390
+ ],
391
+ "additionalProperties": false
392
+ },
393
+ {
394
+ "type": "object",
395
+ "properties": {
396
+ "kind": {
397
+ "type": "string",
398
+ "const": "venue"
399
+ }
400
+ },
401
+ "required": [
402
+ "kind"
403
+ ],
404
+ "additionalProperties": false
405
+ },
406
+ {
407
+ "type": "object",
408
+ "properties": {
409
+ "kind": {
410
+ "type": "string",
411
+ "const": "finding"
412
+ },
413
+ "file": {
414
+ "type": "string",
415
+ "minLength": 1
416
+ },
417
+ "finding": {
418
+ "anyOf": [
419
+ {
420
+ "type": "string",
421
+ "minLength": 1
422
+ },
423
+ {
424
+ "type": "integer",
425
+ "minimum": 1,
426
+ "maximum": 9007199254740991
427
+ }
428
+ ]
429
+ }
430
+ },
431
+ "required": [
432
+ "kind",
433
+ "file",
434
+ "finding"
435
+ ],
436
+ "additionalProperties": false
437
+ },
438
+ {
439
+ "type": "object",
440
+ "properties": {
441
+ "kind": {
442
+ "type": "string",
443
+ "const": "prior-reviews"
444
+ },
445
+ "cycle": {
446
+ "type": "string",
447
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
448
+ }
449
+ },
450
+ "required": [
451
+ "kind",
452
+ "cycle"
453
+ ],
454
+ "additionalProperties": false
455
+ }
456
+ ]
457
+ },
458
+ "added": {
459
+ "type": "string",
460
+ "format": "date",
461
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
462
+ },
463
+ "state": {
464
+ "type": "string",
465
+ "const": "dropped"
466
+ },
467
+ "reason": {
468
+ "type": "string",
469
+ "minLength": 1
470
+ },
471
+ "kind": {
472
+ "type": "string",
473
+ "enum": [
474
+ "not-doing",
475
+ "accepted-cap"
476
+ ]
477
+ }
478
+ },
479
+ "required": [
480
+ "id",
481
+ "what",
482
+ "from",
483
+ "added",
484
+ "state",
485
+ "reason",
486
+ "kind"
487
+ ],
488
+ "additionalProperties": false
489
+ },
490
+ {
491
+ "type": "object",
492
+ "properties": {
493
+ "id": {
494
+ "type": "string",
495
+ "pattern": "^R[1-9][0-9]*$"
496
+ },
497
+ "what": {
498
+ "type": "string",
499
+ "minLength": 1
500
+ },
501
+ "from": {
502
+ "oneOf": [
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "kind": {
507
+ "type": "string",
508
+ "const": "author"
509
+ }
510
+ },
511
+ "required": [
512
+ "kind"
513
+ ],
514
+ "additionalProperties": false
515
+ },
516
+ {
517
+ "type": "object",
518
+ "properties": {
519
+ "kind": {
520
+ "type": "string",
521
+ "const": "venue"
522
+ }
523
+ },
524
+ "required": [
525
+ "kind"
526
+ ],
527
+ "additionalProperties": false
528
+ },
529
+ {
530
+ "type": "object",
531
+ "properties": {
532
+ "kind": {
533
+ "type": "string",
534
+ "const": "finding"
535
+ },
536
+ "file": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ },
540
+ "finding": {
541
+ "anyOf": [
542
+ {
543
+ "type": "string",
544
+ "minLength": 1
545
+ },
546
+ {
547
+ "type": "integer",
548
+ "minimum": 1,
549
+ "maximum": 9007199254740991
550
+ }
551
+ ]
552
+ }
553
+ },
554
+ "required": [
555
+ "kind",
556
+ "file",
557
+ "finding"
558
+ ],
559
+ "additionalProperties": false
560
+ },
561
+ {
562
+ "type": "object",
563
+ "properties": {
564
+ "kind": {
565
+ "type": "string",
566
+ "const": "prior-reviews"
567
+ },
568
+ "cycle": {
569
+ "type": "string",
570
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
571
+ }
572
+ },
573
+ "required": [
574
+ "kind",
575
+ "cycle"
576
+ ],
577
+ "additionalProperties": false
578
+ }
579
+ ]
580
+ },
581
+ "added": {
582
+ "type": "string",
583
+ "format": "date",
584
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
585
+ },
586
+ "state": {
587
+ "type": "string",
588
+ "const": "by-rule"
589
+ },
590
+ "rule": {
591
+ "type": "string",
592
+ "pattern": "^[a-z][a-z0-9-]*\\/[a-z][a-z0-9-]*$"
593
+ }
594
+ },
595
+ "required": [
596
+ "id",
597
+ "what",
598
+ "from",
599
+ "added",
600
+ "state",
601
+ "rule"
602
+ ],
603
+ "additionalProperties": false
604
+ }
605
+ ]
606
+ }
607
+ }
608
+ },
609
+ "required": [
610
+ "cycle",
611
+ "written",
612
+ "bar",
613
+ "measurement",
614
+ "remaining"
615
+ ],
616
+ "additionalProperties": false,
617
+ "title": "A paper's revision-plan.json",
618
+ "description": "The paper's revision plan for its current cycle: the accepted papers it is held against (bar), whether evidence is still being gathered (measurement), and the closed list of what remains (remaining). This schema lists the fields; it cannot express that each row's id is unique or that a path stays inside the paper folder, which the lint rule revision-plan/record checks with the rest."
619
+ }