@driftsys/markspec 0.11.0 → 0.12.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/README.md +9 -0
- package/esm/ast/normalize.d.ts +4 -5
- package/esm/ast/normalize.d.ts.map +1 -1
- package/esm/ast/normalize.js +6 -37
- package/esm/collect/mod.d.ts +29 -9
- package/esm/collect/mod.d.ts.map +1 -1
- package/esm/collect/mod.js +36 -10
- package/esm/compiler/mod.d.ts.map +1 -1
- package/esm/compiler/mod.js +2 -6
- package/esm/config/markspec.d.ts +4 -2
- package/esm/config/markspec.d.ts.map +1 -1
- package/esm/discovery/mod.d.ts +24 -8
- package/esm/discovery/mod.d.ts.map +1 -1
- package/esm/discovery/mod.js +57 -21
- package/esm/discovery/projects.d.ts +109 -0
- package/esm/discovery/projects.d.ts.map +1 -0
- package/esm/discovery/projects.js +232 -0
- package/esm/formatter/entry_body.d.ts +86 -0
- package/esm/formatter/entry_body.d.ts.map +1 -0
- package/esm/formatter/entry_body.js +287 -0
- package/esm/formatter/mod.d.ts +13 -9
- package/esm/formatter/mod.d.ts.map +1 -1
- package/esm/formatter/mod.js +126 -50
- package/esm/gates/mod.d.ts.map +1 -1
- package/esm/gates/mod.js +5 -4
- package/esm/lint/runner.d.ts.map +1 -1
- package/esm/lint/runner.js +4 -4
- package/esm/lock/check.d.ts.map +1 -1
- package/esm/lock/check.js +2 -1
- package/esm/lock/edge_drift.d.ts +2 -0
- package/esm/lock/edge_drift.d.ts.map +1 -1
- package/esm/lock/edge_drift.js +4 -0
- package/esm/lock/mod.d.ts +1 -1
- package/esm/lock/mod.d.ts.map +1 -1
- package/esm/lock/mod.js +1 -1
- package/esm/mod.d.ts +10 -6
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +8 -6
- package/esm/model/mod.d.ts +21 -0
- package/esm/model/mod.d.ts.map +1 -1
- package/esm/model/mod.js +10 -0
- package/esm/parser/code_regions.d.ts +29 -0
- package/esm/parser/code_regions.d.ts.map +1 -0
- package/esm/parser/code_regions.js +38 -0
- package/esm/parser/markdown.d.ts.map +1 -1
- package/esm/parser/markdown.js +103 -40
- package/esm/parser/mod.d.ts.map +1 -1
- package/esm/parser/mod.js +7 -1
- package/esm/parser/translate.d.ts.map +1 -1
- package/esm/parser/translate.js +5 -0
- package/esm/refs/mod.d.ts.map +1 -1
- package/esm/refs/mod.js +8 -19
- package/esm/reporter/mod.d.ts.map +1 -1
- package/esm/reporter/mod.js +2 -2
- package/esm/util/fence.d.ts +20 -29
- package/esm/util/fence.d.ts.map +1 -1
- package/esm/util/fence.js +42 -50
- package/esm/util/modals.d.ts +6 -0
- package/esm/util/modals.d.ts.map +1 -1
- package/esm/util/modals.js +37 -0
- package/esm/validator/body_blocks.d.ts +2 -1
- package/esm/validator/body_blocks.d.ts.map +1 -1
- package/esm/validator/body_blocks.js +80 -2
- package/esm/validator/corpus.d.ts +6 -0
- package/esm/validator/corpus.d.ts.map +1 -1
- package/esm/validator/corpus.js +16 -4
- package/esm/validator/mod.d.ts +1 -1
- package/esm/validator/mod.d.ts.map +1 -1
- package/esm/validator/mod.js +1 -1
- package/esm/validator/pipeline.d.ts.map +1 -1
- package/esm/validator/pipeline.js +11 -8
- package/package.json +1 -1
- package/script/ast/normalize.d.ts +4 -5
- package/script/ast/normalize.d.ts.map +1 -1
- package/script/ast/normalize.js +5 -36
- package/script/collect/mod.d.ts +29 -9
- package/script/collect/mod.d.ts.map +1 -1
- package/script/collect/mod.js +38 -10
- package/script/compiler/mod.d.ts.map +1 -1
- package/script/compiler/mod.js +1 -5
- package/script/config/markspec.d.ts +4 -2
- package/script/config/markspec.d.ts.map +1 -1
- package/script/discovery/mod.d.ts +24 -8
- package/script/discovery/mod.d.ts.map +1 -1
- package/script/discovery/mod.js +56 -20
- package/script/discovery/projects.d.ts +109 -0
- package/script/discovery/projects.d.ts.map +1 -0
- package/script/discovery/projects.js +240 -0
- package/script/formatter/entry_body.d.ts +86 -0
- package/script/formatter/entry_body.d.ts.map +1 -0
- package/script/formatter/entry_body.js +292 -0
- package/script/formatter/mod.d.ts +13 -9
- package/script/formatter/mod.d.ts.map +1 -1
- package/script/formatter/mod.js +124 -48
- package/script/gates/mod.d.ts.map +1 -1
- package/script/gates/mod.js +15 -14
- package/script/lint/runner.d.ts.map +1 -1
- package/script/lint/runner.js +3 -3
- package/script/lock/check.d.ts.map +1 -1
- package/script/lock/check.js +2 -1
- package/script/lock/edge_drift.d.ts +2 -0
- package/script/lock/edge_drift.d.ts.map +1 -1
- package/script/lock/edge_drift.js +5 -0
- package/script/lock/mod.d.ts +1 -1
- package/script/lock/mod.d.ts.map +1 -1
- package/script/lock/mod.js +2 -1
- package/script/mod.d.ts +10 -6
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +20 -5
- package/script/model/mod.d.ts +21 -0
- package/script/model/mod.d.ts.map +1 -1
- package/script/model/mod.js +11 -0
- package/script/parser/code_regions.d.ts +29 -0
- package/script/parser/code_regions.d.ts.map +1 -0
- package/script/parser/code_regions.js +41 -0
- package/script/parser/markdown.d.ts.map +1 -1
- package/script/parser/markdown.js +102 -39
- package/script/parser/mod.d.ts.map +1 -1
- package/script/parser/mod.js +7 -1
- package/script/parser/translate.d.ts.map +1 -1
- package/script/parser/translate.js +5 -0
- package/script/refs/mod.d.ts.map +1 -1
- package/script/refs/mod.js +7 -18
- package/script/reporter/mod.d.ts.map +1 -1
- package/script/reporter/mod.js +1 -1
- package/script/util/fence.d.ts +20 -29
- package/script/util/fence.d.ts.map +1 -1
- package/script/util/fence.js +47 -54
- package/script/util/modals.d.ts +6 -0
- package/script/util/modals.d.ts.map +1 -1
- package/script/util/modals.js +38 -0
- package/script/validator/body_blocks.d.ts +2 -1
- package/script/validator/body_blocks.d.ts.map +1 -1
- package/script/validator/body_blocks.js +80 -2
- package/script/validator/corpus.d.ts +6 -0
- package/script/validator/corpus.d.ts.map +1 -1
- package/script/validator/corpus.js +16 -3
- package/script/validator/mod.d.ts +1 -1
- package/script/validator/mod.d.ts.map +1 -1
- package/script/validator/mod.js +2 -1
- package/script/validator/pipeline.d.ts.map +1 -1
- package/script/validator/pipeline.js +11 -8
package/esm/formatter/mod.js
CHANGED
|
@@ -13,15 +13,16 @@ import { MARKDOWN_EXTENSIONS } from "../discovery/mod.js";
|
|
|
13
13
|
import { ATTR_LINE_RE } from "../parser/attributes.js";
|
|
14
14
|
import { extractFrontMatter } from "../parser/frontmatter.js";
|
|
15
15
|
import { parseMarkdown } from "../parser/markdown.js";
|
|
16
|
-
import {
|
|
16
|
+
import { fencedCodeLines } from "../util/fence.js";
|
|
17
17
|
import { applyLineEnding, detectLineEnding, normalizeLineEndings, } from "../util/line_endings.js";
|
|
18
|
-
import {
|
|
18
|
+
import { isSentenceInitial as _isSentenceInitial, normalizeProseModals, } from "../util/modals.js";
|
|
19
19
|
import { synthesizedUlid } from "./synth_ulid.js";
|
|
20
20
|
import { buildBodyAst } from "../ast/build.js";
|
|
21
21
|
import { render as renderBodyAst } from "../ast/render.js";
|
|
22
22
|
import { normalizeBodyAst } from "../ast/normalize.js";
|
|
23
23
|
import { astEquivalent } from "../ast/equivalence.js";
|
|
24
24
|
import { formatProseSegments } from "./prose.js";
|
|
25
|
+
import { contentColumn } from "./entry_body.js";
|
|
25
26
|
import { MARKSPEC_MARKDOWN_GLOBAL_CONFIG, } from "./dprint.js";
|
|
26
27
|
import { markdownSemanticallyEquivalent } from "./md_equiv.js";
|
|
27
28
|
/**
|
|
@@ -43,7 +44,7 @@ export function isSentenceInitial(line, offset) {
|
|
|
43
44
|
*
|
|
44
45
|
* The pass skips:
|
|
45
46
|
*
|
|
46
|
-
* -
|
|
47
|
+
* - CommonMark fenced code blocks and inline-code spans — code is
|
|
47
48
|
* verbatim per round-trip invariants (spec §5.1).
|
|
48
49
|
* - Lines indented by four or more spaces (or a tab) — conservatively
|
|
49
50
|
* captures indented code blocks and attribute trailers, both of which
|
|
@@ -52,21 +53,12 @@ export function isSentenceInitial(line, offset) {
|
|
|
52
53
|
* @remarks Not called by `format()` as of SP3 Task 5 — body modal
|
|
53
54
|
* normalization moved to `normalizeBodyAst` in the AST pass (spec-correct
|
|
54
55
|
* verbatim-boundary handling). Retained as an exported symbol because
|
|
55
|
-
* `mod_test.ts` tests it directly
|
|
56
|
-
*
|
|
56
|
+
* `mod_test.ts` tests it directly. Both entry points delegate to the same
|
|
57
|
+
* AST-backed prose normalizer. Do NOT
|
|
57
58
|
* delete — external callers may depend on this export.
|
|
58
59
|
*/
|
|
59
60
|
export function normalizeModalKeywords(markdown) {
|
|
60
|
-
|
|
61
|
-
walkProseLines(markdown, (line, i) => {
|
|
62
|
-
// Indented-code / attribute-trailer lines aren't prose either.
|
|
63
|
-
if (/^( {4}|\t)/.test(line))
|
|
64
|
-
return;
|
|
65
|
-
let normalized = line.replace(RFC2119_MODAL_RE, (m) => m.toLowerCase());
|
|
66
|
-
normalized = normalized.replace(EARS_KEYWORD_RE, (m, _g1, offset) => isSentenceInitial(normalized, offset) ? m : m.toLowerCase());
|
|
67
|
-
lines[i] = normalized;
|
|
68
|
-
});
|
|
69
|
-
return lines.join("\n");
|
|
61
|
+
return normalizeProseModals(markdown);
|
|
70
62
|
}
|
|
71
63
|
/**
|
|
72
64
|
* Canonical front-matter key order per ADR-007. Core keys first, then
|
|
@@ -219,16 +211,19 @@ function emitBodyViaAst(lines, file, diagnostics, cachedEntries, proseFormat) {
|
|
|
219
211
|
for (const entry of sorted) {
|
|
220
212
|
if (!entry.body.trim())
|
|
221
213
|
continue; // empty or whitespace-only body
|
|
222
|
-
|
|
214
|
+
// List-item continuation indent: the item's content column, which
|
|
215
|
+
// follows every space after the marker (#865).
|
|
216
|
+
const indent = contentColumn(lines[entry.location.line - 1] ?? "", entry.location.column - 1);
|
|
223
217
|
const indentStr = " ".repeat(indent);
|
|
224
218
|
const titleLineIdx = entry.location.line - 1; // 0-based
|
|
225
219
|
// Locate the body segment in `lines` — between the title line and
|
|
226
220
|
// the attr block start (or item end when there is no attr block).
|
|
227
|
-
const
|
|
221
|
+
const itemEndFloor = entry.endLine ?? 0;
|
|
222
|
+
const range = findAttributeBlockRange(lines, entry.location.line, indent, itemEndFloor);
|
|
228
223
|
const bodyStart = titleLineIdx + 1;
|
|
229
224
|
const bodyEnd = range
|
|
230
225
|
? range.start
|
|
231
|
-
: findItemEnd(lines, titleLineIdx, indent);
|
|
226
|
+
: findItemEnd(lines, titleLineIdx, indent, itemEndFloor);
|
|
232
227
|
if (bodyEnd <= bodyStart)
|
|
233
228
|
continue; // no body lines to replace
|
|
234
229
|
// Route the body through the canonical AST: build → normalize
|
|
@@ -386,13 +381,16 @@ export function format(markdown, options) {
|
|
|
386
381
|
// `normalizeBodyAst` (more spec-correct: respects §2.5 verbatim
|
|
387
382
|
// boundaries and per-node sentence-initial context). `normalizeModalKeywords`
|
|
388
383
|
// stays exported/defined for other callers/tests but is not invoked here.
|
|
389
|
-
const body = rawBody;
|
|
390
|
-
const { entries } = parseMarkdown(body, { file });
|
|
391
384
|
const diagnostics = [...fm.diagnostics];
|
|
385
|
+
// Drop empty-valued trailer lines (`Id:`, `Satisfies:`) before the main
|
|
386
|
+
// pass; left in place they demote the whole trailer block to body code.
|
|
387
|
+
const repaired = removeEmptyTrailerLines(rawBody, parseMarkdown(rawBody, { file }).entries, diagnostics);
|
|
388
|
+
const body = repaired ?? rawBody;
|
|
389
|
+
const { entries } = parseMarkdown(body, { file });
|
|
392
390
|
// ADR-029: the whole-document Markdown pass is Markdown-only. Gate on the
|
|
393
391
|
// file extension HERE so the invariant has one home — a caller that wires
|
|
394
|
-
// formatMarkdownProse without its own guard (e.g. a future write tool
|
|
395
|
-
//
|
|
392
|
+
// formatMarkdownProse without its own guard (e.g. a future write tool
|
|
393
|
+
// forwarding options with a source-file label) cannot silently
|
|
396
394
|
// reflow a source file's doc comment as Markdown. The CommonMark-semantic
|
|
397
395
|
// gate cannot catch that class, so it must be prevented, not detected. The
|
|
398
396
|
// CLI/LSP call-site guards remain as defense-in-depth.
|
|
@@ -405,12 +403,19 @@ export function format(markdown, options) {
|
|
|
405
403
|
return { output: markdown, diagnostics, changed: false };
|
|
406
404
|
}
|
|
407
405
|
const lines = body.split("\n");
|
|
408
|
-
let changed =
|
|
406
|
+
let changed = repaired !== undefined;
|
|
409
407
|
// Process bottom-to-top so line splicing doesn't shift earlier entries.
|
|
410
408
|
const sorted = [...entries].sort((a, b) => b.location.line - a.location.line);
|
|
411
409
|
const genUlid = options?.generateUlid ?? defaultUlid;
|
|
412
410
|
for (const entry of sorted) {
|
|
413
|
-
const indent = (entry.location.column - 1)
|
|
411
|
+
const indent = contentColumn(lines[entry.location.line - 1] ?? "", entry.location.column - 1);
|
|
412
|
+
// `entry.endLine` comes from the parse of the unedited buffer. Entries
|
|
413
|
+
// are processed bottom to top, so only this entry's own edits move its
|
|
414
|
+
// end; the change in line count since here measures them.
|
|
415
|
+
const lengthAtStart = lines.length;
|
|
416
|
+
const itemEndFloor = () => entry.endLine === undefined
|
|
417
|
+
? 0
|
|
418
|
+
: entry.endLine + (lines.length - lengthAtStart);
|
|
414
419
|
let attrs = [...entry.rawAttributes];
|
|
415
420
|
const titleLineIdx = entry.location.line - 1;
|
|
416
421
|
// #686: a title that soft-wraps onto extra physical lines is a single
|
|
@@ -425,7 +430,7 @@ export function format(markdown, options) {
|
|
|
425
430
|
// attribute block so a malformed entry with no blank line before its
|
|
426
431
|
// trailer cannot swallow it.
|
|
427
432
|
if (titleLineIdx >= 0 && titleLineIdx < lines.length) {
|
|
428
|
-
const attrRange = findAttributeBlockRange(lines, entry.location.line, indent);
|
|
433
|
+
const attrRange = findAttributeBlockRange(lines, entry.location.line, indent, itemEndFloor());
|
|
429
434
|
const limit = attrRange ? attrRange.start : lines.length;
|
|
430
435
|
let titleEnd = titleLineIdx;
|
|
431
436
|
while (titleEnd + 1 < limit && lines[titleEnd + 1].trim() !== "") {
|
|
@@ -507,7 +512,7 @@ export function format(markdown, options) {
|
|
|
507
512
|
if (attrs.length === 0)
|
|
508
513
|
continue;
|
|
509
514
|
const normalized = sortAttributes(expandCsvValues(attrs));
|
|
510
|
-
const range = findAttributeBlockRange(lines, entry.location.line, indent);
|
|
515
|
+
const range = findAttributeBlockRange(lines, entry.location.line, indent, itemEndFloor());
|
|
511
516
|
if (range) {
|
|
512
517
|
// Replace existing attribute block.
|
|
513
518
|
const newBlock = renderAttributeBlock(normalized, indent);
|
|
@@ -519,7 +524,7 @@ export function format(markdown, options) {
|
|
|
519
524
|
}
|
|
520
525
|
else {
|
|
521
526
|
// No attribute block — insert one after the entry body.
|
|
522
|
-
const insertLine = findEntryBodyEnd(lines, entry, indent);
|
|
527
|
+
const insertLine = findEntryBodyEnd(lines, entry, indent, itemEndFloor());
|
|
523
528
|
const newBlock = renderAttributeBlock(normalized, indent);
|
|
524
529
|
lines.splice(insertLine, 0, "", ...newBlock.split("\n"));
|
|
525
530
|
changed = true;
|
|
@@ -560,8 +565,11 @@ export function format(markdown, options) {
|
|
|
560
565
|
: entries;
|
|
561
566
|
const extents = proseEntries.map((e) => {
|
|
562
567
|
const start = e.location.line - 1;
|
|
563
|
-
const entryIndent = (e.location.column - 1)
|
|
564
|
-
return {
|
|
568
|
+
const entryIndent = contentColumn(collapsedLines[start] ?? "", e.location.column - 1);
|
|
569
|
+
return {
|
|
570
|
+
start,
|
|
571
|
+
end: findItemEnd(collapsedLines, start, entryIndent, e.endLine ?? 0),
|
|
572
|
+
};
|
|
565
573
|
});
|
|
566
574
|
const prose = formatProseSegments(collapsedLines, extents, proseFormat);
|
|
567
575
|
if (prose.changed)
|
|
@@ -626,16 +634,10 @@ function renderFrontMatter(attrs) {
|
|
|
626
634
|
*/
|
|
627
635
|
function collapseBlankLines(lines) {
|
|
628
636
|
const out = [];
|
|
629
|
-
|
|
637
|
+
const fencedLines = fencedCodeLines(lines.join("\n"));
|
|
630
638
|
let prevBlank = false;
|
|
631
|
-
for (const line of lines) {
|
|
632
|
-
if (
|
|
633
|
-
out.push(line);
|
|
634
|
-
inFence = !inFence;
|
|
635
|
-
prevBlank = false;
|
|
636
|
-
continue;
|
|
637
|
-
}
|
|
638
|
-
if (inFence) {
|
|
639
|
+
for (const [i, line] of lines.entries()) {
|
|
640
|
+
if (fencedLines.has(i)) {
|
|
639
641
|
out.push(line);
|
|
640
642
|
prevBlank = false;
|
|
641
643
|
continue;
|
|
@@ -732,8 +734,8 @@ export function sortAttributes(attributes) {
|
|
|
732
734
|
* no trailing line-continuation characters.
|
|
733
735
|
*
|
|
734
736
|
* @param attributes - The attributes to render, in canonical order.
|
|
735
|
-
* @param indent -
|
|
736
|
-
*
|
|
737
|
+
* @param indent - The 0-based list item content column, or 0 inside
|
|
738
|
+
* source-file doc comments.
|
|
737
739
|
*/
|
|
738
740
|
export function renderAttributeBlock(attributes, indent) {
|
|
739
741
|
const prefix = " ".repeat(indent + 4);
|
|
@@ -744,18 +746,26 @@ export function renderAttributeBlock(attributes, indent) {
|
|
|
744
746
|
/**
|
|
745
747
|
* Find the 0-based line index where a list item's content ends.
|
|
746
748
|
* Exported for the ADR-029 prose pass (entry-extent computation).
|
|
747
|
-
* Scans forward from the
|
|
748
|
-
*
|
|
749
|
+
* Scans forward from the later of the line after the entry start and
|
|
750
|
+
* `itemEndFloor` until a line has less indent than the content column, a
|
|
751
|
+
* conventional sibling marker is found, or EOF. Pass the parser's
|
|
752
|
+
* `Entry.endLine` as `itemEndFloor` so that a lazy continuation line
|
|
753
|
+
* inside the item does not end the scan early; the default `0` keeps
|
|
754
|
+
* the indentation-only scan.
|
|
749
755
|
*/
|
|
750
|
-
export function findItemEnd(lines, startIdx, indent) {
|
|
756
|
+
export function findItemEnd(lines, startIdx, indent, itemEndFloor = 0) {
|
|
751
757
|
const indentStr = " ".repeat(indent);
|
|
752
|
-
//
|
|
758
|
+
// Recognize sibling bullets with one space after the marker.
|
|
753
759
|
const markerPrefix = " ".repeat(Math.max(0, indent - 2)) + "- ";
|
|
754
|
-
|
|
760
|
+
// `itemEndFloor` is the 0-based index just after the item's last content
|
|
761
|
+
// line, from the parser's `Entry.endLine`. The scan starts there, because
|
|
762
|
+
// an indentation scan ends the item early at a lazy continuation line
|
|
763
|
+
// (a paragraph line indented less than the item content).
|
|
764
|
+
for (let i = Math.max(startIdx + 1, itemEndFloor); i < lines.length; i++) {
|
|
755
765
|
const line = lines[i];
|
|
756
766
|
if (line.trim() === "")
|
|
757
767
|
continue;
|
|
758
|
-
// Sibling
|
|
768
|
+
// Sibling with a one-space marker; wider markers use the indent check.
|
|
759
769
|
if (line.startsWith(markerPrefix))
|
|
760
770
|
return i;
|
|
761
771
|
// Line with less indent than continuation
|
|
@@ -764,6 +774,72 @@ export function findItemEnd(lines, startIdx, indent) {
|
|
|
764
774
|
}
|
|
765
775
|
return lines.length;
|
|
766
776
|
}
|
|
777
|
+
/** A trailer-shaped line whose value may be empty: `Key:` or `Key: value`. */
|
|
778
|
+
const TRAILER_SHAPED_RE = /^[A-Z][A-Za-z-]*:(?:\s.*)?$/;
|
|
779
|
+
/** A trailer-shaped line with no value: `Key:` (spec §2 makes it MSL-P021). */
|
|
780
|
+
const EMPTY_TRAILER_RE = /^([A-Z][A-Za-z-]*):\s*$/;
|
|
781
|
+
/**
|
|
782
|
+
* Remove empty-valued `Key:` lines from each entry's trailing trailer block.
|
|
783
|
+
*
|
|
784
|
+
* An empty-valued line is not a valid trailer (spec §2, MSL-P021), so the
|
|
785
|
+
* parser treats the whole trailing block as body code. Left alone, the
|
|
786
|
+
* main pass would fence that block and append a fresh `Id:`, silently
|
|
787
|
+
* turning real trace links into inert body text. An empty value carries no
|
|
788
|
+
* information, so dropping the line is lossless: an `Id:` placeholder then
|
|
789
|
+
* gets stamped in place and the remaining trailers stay trailers.
|
|
790
|
+
*
|
|
791
|
+
* Only touches a block of contiguous lines at the very end of an entry,
|
|
792
|
+
* indented at least four columns past the entry body, in which every line
|
|
793
|
+
* is trailer-shaped. Emits one MSL-F001 info diagnostic per removed line.
|
|
794
|
+
*
|
|
795
|
+
* @returns The repaired text, or `undefined` when nothing was removed.
|
|
796
|
+
*/
|
|
797
|
+
function removeEmptyTrailerLines(body, entries, diagnostics) {
|
|
798
|
+
const lines = body.split("\n");
|
|
799
|
+
let removedAny = false;
|
|
800
|
+
const sorted = [...entries].sort((a, b) => b.location.line - a.location.line);
|
|
801
|
+
for (const entry of sorted) {
|
|
802
|
+
const indent = contentColumn(lines[entry.location.line - 1] ?? "", entry.location.column - 1);
|
|
803
|
+
const startIdx = entry.location.line - 1;
|
|
804
|
+
let end = findItemEnd(lines, startIdx, indent, entry.endLine ?? 0);
|
|
805
|
+
while (end > startIdx && lines[end - 1].trim() === "")
|
|
806
|
+
end--;
|
|
807
|
+
let start = end;
|
|
808
|
+
while (start - 1 > startIdx && lines[start - 1].trim() !== "")
|
|
809
|
+
start--;
|
|
810
|
+
if (start >= end || start - 1 <= startIdx)
|
|
811
|
+
continue;
|
|
812
|
+
const trailerIndent = " ".repeat(indent + 4);
|
|
813
|
+
const block = lines.slice(start, end);
|
|
814
|
+
const isTrailerBlock = block.every((l) => l.startsWith(trailerIndent) && TRAILER_SHAPED_RE.test(l.trim()));
|
|
815
|
+
if (!isTrailerBlock)
|
|
816
|
+
continue;
|
|
817
|
+
const kept = block.filter((l) => !EMPTY_TRAILER_RE.test(l.trim()));
|
|
818
|
+
if (kept.length === block.length)
|
|
819
|
+
continue;
|
|
820
|
+
for (const l of block) {
|
|
821
|
+
const key = EMPTY_TRAILER_RE.exec(l.trim())?.[1];
|
|
822
|
+
if (key === undefined)
|
|
823
|
+
continue;
|
|
824
|
+
diagnostics.push({
|
|
825
|
+
code: "MSL-F001",
|
|
826
|
+
severity: "info",
|
|
827
|
+
message: `removed empty '${key}:' trailer line from ${entry.displayId}`,
|
|
828
|
+
location: entry.location,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
if (kept.length > 0) {
|
|
832
|
+
lines.splice(start, end - start, ...kept);
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
// Whole block was placeholders: drop it and its leading blank line.
|
|
836
|
+
const from = lines[start - 1].trim() === "" ? start - 1 : start;
|
|
837
|
+
lines.splice(from, end - from);
|
|
838
|
+
}
|
|
839
|
+
removedAny = true;
|
|
840
|
+
}
|
|
841
|
+
return removedAny ? lines.join("\n") : undefined;
|
|
842
|
+
}
|
|
767
843
|
/**
|
|
768
844
|
* Find the 0-based line range [start, end) of the attribute block
|
|
769
845
|
* for an entry starting at the given line.
|
|
@@ -771,9 +847,9 @@ export function findItemEnd(lines, startIdx, indent) {
|
|
|
771
847
|
* Scans forward from the entry start to find the list item boundary,
|
|
772
848
|
* then walks backwards to find the contiguous trailing attribute block.
|
|
773
849
|
*/
|
|
774
|
-
export function findAttributeBlockRange(lines, entryStartLine, indent) {
|
|
850
|
+
export function findAttributeBlockRange(lines, entryStartLine, indent, itemEndFloor = 0) {
|
|
775
851
|
const startIdx = entryStartLine - 1;
|
|
776
|
-
const itemEnd = findItemEnd(lines, startIdx, indent);
|
|
852
|
+
const itemEnd = findItemEnd(lines, startIdx, indent, itemEndFloor);
|
|
777
853
|
// Walk backwards from itemEnd, skip trailing blank lines.
|
|
778
854
|
let scanEnd = itemEnd;
|
|
779
855
|
while (scanEnd > startIdx && lines[scanEnd - 1].trim() === "") {
|
|
@@ -802,9 +878,9 @@ export function findAttributeBlockRange(lines, entryStartLine, indent) {
|
|
|
802
878
|
* Find the 0-based line index where a new attribute block should be inserted
|
|
803
879
|
* (after the last non-blank body line of the entry).
|
|
804
880
|
*/
|
|
805
|
-
function findEntryBodyEnd(lines, entry, indent) {
|
|
881
|
+
function findEntryBodyEnd(lines, entry, indent, itemEndFloor = 0) {
|
|
806
882
|
const startIdx = entry.location.line - 1;
|
|
807
|
-
const itemEnd = findItemEnd(lines, startIdx, indent);
|
|
883
|
+
const itemEnd = findItemEnd(lines, startIdx, indent, itemEndFloor);
|
|
808
884
|
let insertAt = itemEnd;
|
|
809
885
|
while (insertAt > startIdx && lines[insertAt - 1].trim() === "") {
|
|
810
886
|
insertAt--;
|
package/esm/gates/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/gates/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/gates/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,QAAQ,IAAI,YAAY,EAE9B,MAAM,gBAAgB,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACvC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,MAAM,EAAE,SAAS,QAAQ,EAAE,EAC3B,mBAAmB,EAAE,cAAc,GAAG,SAAS,GAC9C,OAAO,CAAC,UAAU,EAAE,CAAC,CAwCvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,mBAAmB,EAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,KAAK,CAAC,EAAE;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAA;CAAE,GACtE,OAAO,CAAC,UAAU,EAAE,CAAC,CAuCvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,OAAO,EAAE,gBAAgB,GAAG,SAAS,GACpC,OAAO,CAAC,UAAU,EAAE,CAAC,CAQvB"}
|
package/esm/gates/mod.js
CHANGED
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
* `parser`, `refs`, `lock`, and `lint`, and nothing in those depends back on
|
|
18
18
|
* it — no cycle.
|
|
19
19
|
*/
|
|
20
|
+
import { isCorpusEntry } from "../model/mod.js";
|
|
20
21
|
import { format } from "../formatter/mod.js";
|
|
21
22
|
import { parseFile } from "../parser/mod.js";
|
|
22
23
|
import { buildRefIndex, canonicalizeRefs } from "../refs/mod.js";
|
|
23
|
-
import { detectOfflineEdgeDrift, verifyUpstreamCache, } from "../lock/mod.js";
|
|
24
|
+
import { detectOfflineEdgeDrift, formatEdgeDriftMessage, verifyUpstreamCache, } from "../lock/mod.js";
|
|
24
25
|
import { runLint } from "../lint/mod.js";
|
|
25
26
|
/**
|
|
26
27
|
* Format-drift gate — the `MSL-F010` (formatter drift) and `MSL-F011`
|
|
@@ -52,7 +53,7 @@ export async function fmtDriftGate(mdContents, entries, ledger, formatMarkdownPr
|
|
|
52
53
|
// consumer using a delivered corpus. Filter to `!e.origin`, mirroring
|
|
53
54
|
// lockfileDriftGate — deliberately BROADER than the validators'
|
|
54
55
|
// `emittableEntries` (upstream-only, #771); do not "unify" it.
|
|
55
|
-
const refIndex = buildRefIndex(entries.filter((e) => !e
|
|
56
|
+
const refIndex = buildRefIndex(entries.filter((e) => !isCorpusEntry(e)));
|
|
56
57
|
for (const [filePath, content] of mdContents) {
|
|
57
58
|
const formatted = format(content, {
|
|
58
59
|
file: filePath,
|
|
@@ -114,13 +115,13 @@ export async function lockfileDriftGate(lockParse, lockPath, entries, cache) {
|
|
|
114
115
|
// `!e.origin` (project-owned only) — deliberately BROADER than the
|
|
115
116
|
// validators' `emittableEntries` partition (upstream-only, #771): the
|
|
116
117
|
// edge ledger records only edges the project authors.
|
|
117
|
-
const projectEntries = entries.filter((e) => !e
|
|
118
|
+
const projectEntries = entries.filter((e) => !isCorpusEntry(e));
|
|
118
119
|
const drift = await detectOfflineEdgeDrift(projectEntries, lockParse.lockfile.generatedCache);
|
|
119
120
|
const diagnostics = drift.drifted
|
|
120
121
|
? [{
|
|
121
122
|
code: "MSL-L212",
|
|
122
123
|
severity: "error",
|
|
123
|
-
message:
|
|
124
|
+
message: formatEdgeDriftMessage(drift.lockedCount, drift.currentCount),
|
|
124
125
|
location: { file: lockPath, line: 1, column: 1 },
|
|
125
126
|
}]
|
|
126
127
|
: [];
|
package/esm/lint/runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/lint/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAUjD,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAY/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAgB9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAKT;AAMD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IACpC,6EAA6E;IAC7E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,yEAAyE;IACzE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,mDAAmD;IACnD,QAAQ,CAAC,QAAQ,CAAC,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,WAAW,CAAC;CAC7B;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA+FvE"}
|
package/esm/lint/runner.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* suppression hygiene on all Authored entries, applies suppression, and
|
|
7
7
|
* returns the final diagnostics.
|
|
8
8
|
*/
|
|
9
|
-
import { CORE_TYPE_HIERARCHY } from "../model/mod.js";
|
|
9
|
+
import { CORE_TYPE_HIERARCHY, isCorpusEntry } from "../model/mod.js";
|
|
10
10
|
import { resolvedCoreType } from "../validator/type_resolution.js";
|
|
11
11
|
import { runLexiconRules } from "./rules/lexicon.js";
|
|
12
12
|
import { runStructRules } from "./rules/struct.js";
|
|
@@ -121,7 +121,7 @@ export async function runLint(options) {
|
|
|
121
121
|
// validated but is never prose-linted — do not "unify" this filter.
|
|
122
122
|
const inScopeDiags = new Map();
|
|
123
123
|
for (const entry of entries) {
|
|
124
|
-
if (entry
|
|
124
|
+
if (isCorpusEntry(entry))
|
|
125
125
|
continue;
|
|
126
126
|
if (!isProseScope(entry, profile))
|
|
127
127
|
continue;
|
|
@@ -149,7 +149,7 @@ export async function runLint(options) {
|
|
|
149
149
|
for (const entry of entries) {
|
|
150
150
|
if (entry.shape !== "Authored")
|
|
151
151
|
continue;
|
|
152
|
-
if (entry
|
|
152
|
+
if (isCorpusEntry(entry))
|
|
153
153
|
continue;
|
|
154
154
|
hygieneDiags.push(...runSuppressionRules(entry));
|
|
155
155
|
}
|
|
@@ -184,6 +184,6 @@ export async function runLint(options) {
|
|
|
184
184
|
// ones). Corpus entries are excluded — counting them would skew band-counts
|
|
185
185
|
// and the mean on prose a consumer cannot act on (ADR-030 §D4). A no-op when
|
|
186
186
|
// no corpus is present.
|
|
187
|
-
const score = computeScoreRollup(out, entries.filter((e) => !e
|
|
187
|
+
const score = computeScoreRollup(out, entries.filter((e) => !isCorpusEntry(e)));
|
|
188
188
|
return { diagnostics: out, score };
|
|
189
189
|
}
|
package/esm/lock/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/lock/check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/lock/check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,iBAAiB,EAC3B,oBAAoB,EAAE,SAAS,MAAM,EAAE,GACtC,UAAU,EAAE,CA4Jd"}
|
package/esm/lock/check.js
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* Content integrity for those rows is the offline cache gate (a later
|
|
20
20
|
* task), not this online-vs-lockfile comparison.
|
|
21
21
|
*/
|
|
22
|
+
import { formatEdgeDriftMessage } from "./edge_drift.js";
|
|
22
23
|
/**
|
|
23
24
|
* Compare locked vs resolved upstreams; return one diagnostic per drift
|
|
24
25
|
* case. An empty result means the lockfile is in sync with the current
|
|
@@ -157,7 +158,7 @@ export function checkDrift(locked, resolved, declaredReferenceIds) {
|
|
|
157
158
|
diags.push({
|
|
158
159
|
code: "MSL-L212",
|
|
159
160
|
severity: "error",
|
|
160
|
-
message:
|
|
161
|
+
message: formatEdgeDriftMessage(locked.generatedCache.edgesCount, resolved.canonicalEdgeCount),
|
|
161
162
|
location: undefined,
|
|
162
163
|
});
|
|
163
164
|
}
|
package/esm/lock/edge_drift.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface OfflineEdgeDrift {
|
|
|
18
18
|
/** Edge count in the current project graph. */
|
|
19
19
|
readonly currentCount: number;
|
|
20
20
|
}
|
|
21
|
+
/** Build the actionable edge-drift message shared by CLI and core checks. */
|
|
22
|
+
export declare function formatEdgeDriftMessage(lockedCount: number, currentCount: number): string;
|
|
21
23
|
/**
|
|
22
24
|
* Compare the current project graph's canonical edge hash against a
|
|
23
25
|
* lockfile's generated-cache. Offline by design — no upstream resolution.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge_drift.d.ts","sourceRoot":"","sources":["../../src/lock/edge_drift.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,cAAc,EAAE,SAAS,KAAK,EAAE,EAChC,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,gBAAgB,CAAC,CAQ3B"}
|
|
1
|
+
{"version":3,"file":"edge_drift.d.ts","sourceRoot":"","sources":["../../src/lock/edge_drift.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,6EAA6E;AAC7E,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,MAAM,CAER;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,cAAc,EAAE,SAAS,KAAK,EAAE,EAChC,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,gBAAgB,CAAC,CAQ3B"}
|
package/esm/lock/edge_drift.js
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { extractEdgeQuads } from "./resolve.js";
|
|
11
11
|
import { hashCanonicalEdges } from "./canonical_edges.js";
|
|
12
|
+
/** Build the actionable edge-drift message shared by CLI and core checks. */
|
|
13
|
+
export function formatEdgeDriftMessage(lockedCount, currentCount) {
|
|
14
|
+
return `traceability edges drifted from markspec.lock: locked ${lockedCount} edge(s), current ${currentCount} — run \`markspec lock\` to refresh. (After upgrading MarkSpec this can also fire once because traceability inputs now include source-file doc comments; re-running \`markspec lock\` clears it.)`;
|
|
15
|
+
}
|
|
12
16
|
/**
|
|
13
17
|
* Compare the current project graph's canonical edge hash against a
|
|
14
18
|
* lockfile's generated-cache. Offline by design — no upstream resolution.
|
package/esm/lock/mod.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { checkDrift } from "./check.js";
|
|
|
16
16
|
export { sha256Bytes, sha256String } from "./hash.js";
|
|
17
17
|
export { canonicalEdgeJson, hashCanonicalEdges } from "./canonical_edges.js";
|
|
18
18
|
export type { EdgeQuad } from "./canonical_edges.js";
|
|
19
|
-
export { detectOfflineEdgeDrift } from "./edge_drift.js";
|
|
19
|
+
export { detectOfflineEdgeDrift, formatEdgeDriftMessage, } from "./edge_drift.js";
|
|
20
20
|
export type { OfflineEdgeDrift } from "./edge_drift.js";
|
|
21
21
|
export { verifyUpstreamCache } from "./cache_check.js";
|
|
22
22
|
export { extractEdgeLedger, extractEdgeQuads, resolveBoundEntries, resolveProfileChain, resolveReferences, resolveUpstreams, } from "./resolve.js";
|
package/esm/lock/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/lock/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,
|
|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GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,+BAA+B,EAC/B,8BAA8B,EAC9B,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,KAAK,EACV,0BAA0B,EAC1B,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,MAAM,EACX,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,aAAa,GACd,MAAM,iBAAiB,CAAC"}
|
package/esm/lock/mod.js
CHANGED
|
@@ -13,7 +13,7 @@ export { isBelowFloor } from "./compare.js";
|
|
|
13
13
|
export { checkDrift } from "./check.js";
|
|
14
14
|
export { sha256Bytes, sha256String } from "./hash.js";
|
|
15
15
|
export { canonicalEdgeJson, hashCanonicalEdges } from "./canonical_edges.js";
|
|
16
|
-
export { detectOfflineEdgeDrift } from "./edge_drift.js";
|
|
16
|
+
export { detectOfflineEdgeDrift, formatEdgeDriftMessage, } from "./edge_drift.js";
|
|
17
17
|
export { verifyUpstreamCache } from "./cache_check.js";
|
|
18
18
|
export { extractEdgeLedger, extractEdgeQuads, resolveBoundEntries, resolveProfileChain, resolveReferences, resolveUpstreams, } from "./resolve.js";
|
|
19
19
|
export { deriveUpstreamId, resolveProjectReferences, upstreamCacheRoot, } from "./upstream_refs.js";
|
package/esm/mod.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export declare const VERSION = "0.
|
|
12
|
-
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, CORE_SCHEMA_VERSION, DEFAULT_PROJECT_CONFIG, descendantsOf, emittableEntries, formatEntryOrigin, isUpstreamEntry, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, sameOriginSource, } from "./model/mod.js";
|
|
11
|
+
export declare const VERSION = "0.12.0";
|
|
12
|
+
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, CORE_SCHEMA_VERSION, DEFAULT_PROJECT_CONFIG, descendantsOf, emittableEntries, formatEntryOrigin, isCorpusEntry, isUpstreamEntry, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, sameOriginSource, } from "./model/mod.js";
|
|
13
13
|
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, DeliveredDocument, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryOrigin, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProjectRef, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, RelationDef, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
14
14
|
export { astEquivalent } from "./ast/equivalence.js";
|
|
15
15
|
export { normalizeBodyAst } from "./ast/normalize.js";
|
|
@@ -34,9 +34,11 @@ export { detectCaptions, detectDirectives, detectInlineRefs, isSupportedExtensio
|
|
|
34
34
|
export type { DetectCaptionsOptions, DetectDirectivesOptions, DetectInlineRefsOptions, DocCommentBlockMeta, LanguageDocCommentSpec, LineMap, ParseFileResult, ParseOptions, ParseSourceOptions, ParseSourceResult, SupportedLanguage, } from "./parser/mod.js";
|
|
35
35
|
export { format } from "./formatter/mod.js";
|
|
36
36
|
export type { FormatOptions, FormatResult } from "./formatter/mod.js";
|
|
37
|
+
export { readEntryBody, replaceEntryBody } from "./formatter/entry_body.js";
|
|
38
|
+
export type { EntryBodyEdit, EntryBodyRefusal, } from "./formatter/entry_body.js";
|
|
37
39
|
export { loadMarkdownFormatter, MARKSPEC_MARKDOWN_GLOBAL_CONFIG, MARKSPEC_MARKDOWN_PLUGIN_CONFIG, } from "./formatter/dprint.js";
|
|
38
40
|
export type { ProseFormatOptions, ProseFormatter } from "./formatter/dprint.js";
|
|
39
|
-
export { attributeCorpusDiagnostics, classifyEntriesStage, classifyEntry, compileDisplayIdPattern, detectCorpusCollisions, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, suppressDeclaredAttrR010, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
|
|
41
|
+
export { applyCorpusPostPass, attributeCorpusDiagnostics, classifyEntriesStage, classifyEntry, compileDisplayIdPattern, detectCorpusCollisions, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, suppressDeclaredAttrR010, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
|
|
40
42
|
export type { ClassifyResult, ClassifyStageResult, CorpusCollisionResult, EffectiveAttrScope, ListingFileContext, ListingKind, PipelineOptions, PipelineResult, ValidateResult, ValueValidator, } from "./validator/mod.js";
|
|
41
43
|
export { compile, generateInverses, serializeCompileResult, } from "./compiler/mod.js";
|
|
42
44
|
export type { CompileOptions, CompileResult, GenerateInversesResult, SerializedCompileResult, SerializedEntry, SerializedTypeRegistry, } from "./compiler/mod.js";
|
|
@@ -51,12 +53,12 @@ export type { EntryScore, LintDiagnostic, LintOptions, LintResult, RuleContribut
|
|
|
51
53
|
export * as typl from "./typl/mod.js";
|
|
52
54
|
export { uxilDeclaringTypes, validateUxilFamily, } from "./validator/uxil_family.js";
|
|
53
55
|
export * as uxil from "./uxil/mod.js";
|
|
54
|
-
export { canonicalEdgeJson, checkDrift, compileAcquiredTree, dependencyPinAssurance, deriveUpstreamId, detectOfflineEdgeDrift, extractEdgeLedger, extractEdgeQuads, hashCanonicalEdges, isBelowFloor, LOCKFILE_SCHEMA_VERSION, parseLockfile, parseLsRemote, resolveBoundEntries, resolveIntent, resolveProfileChain, resolveProjectDependencies, resolveProjectReferences, resolveReferences, resolveUpstreams, serializeLockfile, sha256Bytes, sha256String, upstreamCacheRoot, verifyUpstreamCache, } from "./lock/mod.js";
|
|
56
|
+
export { canonicalEdgeJson, checkDrift, compileAcquiredTree, dependencyPinAssurance, deriveUpstreamId, detectOfflineEdgeDrift, extractEdgeLedger, extractEdgeQuads, formatEdgeDriftMessage, hashCanonicalEdges, isBelowFloor, LOCKFILE_SCHEMA_VERSION, parseLockfile, parseLsRemote, resolveBoundEntries, resolveIntent, resolveProfileChain, resolveProjectDependencies, resolveProjectReferences, resolveReferences, resolveUpstreams, serializeLockfile, sha256Bytes, sha256String, upstreamCacheRoot, verifyUpstreamCache, } from "./lock/mod.js";
|
|
55
57
|
export type { AcquireCompileIO, BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, CompiledSnapshot, EdgeQuad, FetchUrl, GeneratedCache, GitIO, GitRef, LockedAttributes, LockEdge, Lockfile, LockfileMeta, LockfileToolchain, OfflineEdgeDrift, ParseLockfileResult, ReadFile as LockReadFile, RefList, ResolvedBoundEntry, ResolvedIntent, ResolvedProfile, ResolvedReference, ResolvedUpstreams, ResolveProjectDependenciesOptions, ResolveProjectDependenciesResult, ResolveProjectReferencesOptions, ResolveProjectReferencesResult, ResolveUpstreamsOptions, Upstream, UpstreamDependency, UpstreamDepsIO, UpstreamProfile, UpstreamReference, UpstreamRefsIO, UpstreamRegistry, } from "./lock/mod.js";
|
|
56
58
|
export { buildRefIndex, canonicalizeRefs, TRACE_ATTRIBUTE_KEYS, } from "./refs/mod.js";
|
|
57
59
|
export type { RefIndex } from "./refs/mod.js";
|
|
58
60
|
export { fmtDriftGate, lockfileDriftGate, proseLintGate } from "./gates/mod.js";
|
|
59
|
-
export { FENCE_RE, isLineFenced, walkProseLines } from "./util/fence.js";
|
|
61
|
+
export { FENCE_RE, fencedCodeLines, isLineFenced, walkProseLines, } from "./util/fence.js";
|
|
60
62
|
export type { ProseLineCallback } from "./util/fence.js";
|
|
61
63
|
export { isUnsafeRelPath } from "./util/paths.js";
|
|
62
64
|
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
@@ -64,7 +66,9 @@ export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as S
|
|
|
64
66
|
export { type Arch as SelfUpgradeArch, assertTrustedReleaseUrl, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
65
67
|
export { discoverFiles, isIgnored, MARKDOWN_EXTENSIONS, parseGitignore, RELEVANT_EXTENSIONS, SOURCE_EXTENSIONS, } from "./discovery/mod.js";
|
|
66
68
|
export type { DiscoverOptions, DiscoveryDirEntry, DiscoveryIO, GitignoreRule, } from "./discovery/mod.js";
|
|
67
|
-
export {
|
|
69
|
+
export { createProjectRootResolver, discoverProjectRoots, findNestedProjectRoots, isWithin, nearestRoot, resolveConfigRoot, } from "./discovery/projects.js";
|
|
70
|
+
export type { ProjectDiscoveryOptions, ProjectRootResolver, } from "./discovery/projects.js";
|
|
71
|
+
export { collectProjectEntries, UnreadableProjectFileError, } from "./collect/mod.js";
|
|
68
72
|
export type { CollectOptions } from "./collect/mod.js";
|
|
69
73
|
export { checkSnapshotSchema, deserializeEntry, extractSerializedEntries, } from "./compiler/deserialize.js";
|
|
70
74
|
export type { ExtractedEntries } from "./compiler/deserialize.js";
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,WAAW,CAAC;AAGhC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,IAAI,GACL,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAA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