@hawkeyexl/manni 4.4.1 → 4.5.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 (163) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-GFNLTGOH.js → batch-GOE3UXOD.js} +11 -11
  3. package/dist/{build-COYIQ25L.js → build-M7BMEHL2.js} +13 -11
  4. package/dist/{calibrate-MDBLJKEE.js → calibrate-6RRAILUY.js} +12 -12
  5. package/dist/{capture-LRML2PKV.js → capture-RJPQ6B4N.js} +12 -12
  6. package/dist/{check-EDLBYL5N.js → check-BQD64X3N.js} +11 -11
  7. package/dist/{check-HYNGXYJV.js → check-ESNS7ZBC.js} +4 -4
  8. package/dist/{check-ASPIHA6B.js → check-RQIIIURI.js} +12 -12
  9. package/dist/{chunk-NXV7WE2D.js → chunk-3R5Y3XOL.js} +3 -3
  10. package/dist/{chunk-A5ULMVHQ.js → chunk-3YHAYXBC.js} +2 -2
  11. package/dist/{chunk-57NEQRVO.js → chunk-527HHQPS.js} +4 -4
  12. package/dist/{chunk-57NEQRVO.js.map → chunk-527HHQPS.js.map} +1 -1
  13. package/dist/{chunk-6OYEI2VV.js → chunk-52PDIZKV.js} +3 -3
  14. package/dist/{chunk-UJCVAWP7.js → chunk-6XTQDFGP.js} +2 -2
  15. package/dist/{chunk-UJCVAWP7.js.map → chunk-6XTQDFGP.js.map} +1 -1
  16. package/dist/{chunk-3VK37OR2.js → chunk-7OQAU4EA.js} +5 -5
  17. package/dist/{chunk-4IUC2MNL.js → chunk-7ZUCEMCY.js} +8 -8
  18. package/dist/{chunk-M2JCK5F6.js → chunk-B7XUEQF3.js} +13 -2
  19. package/dist/chunk-B7XUEQF3.js.map +1 -0
  20. package/dist/{chunk-MYMBCTDE.js → chunk-BOIF2XGG.js} +2 -2
  21. package/dist/{chunk-YJOGUXGP.js → chunk-C3KI45RF.js} +8 -6
  22. package/dist/{chunk-YJOGUXGP.js.map → chunk-C3KI45RF.js.map} +1 -1
  23. package/dist/{chunk-MMTSSTG7.js → chunk-C6HZ6C5T.js} +2 -2
  24. package/dist/{chunk-QQUKGCAJ.js → chunk-CP4ZM43V.js} +2 -2
  25. package/dist/chunk-DE7JSWXV.js +2462 -0
  26. package/dist/chunk-DE7JSWXV.js.map +1 -0
  27. package/dist/{chunk-YB4IBW3M.js → chunk-DX32P2DT.js} +2 -2
  28. package/dist/{chunk-RL5XWQOL.js → chunk-EL2BZTDL.js} +137 -50
  29. package/dist/chunk-EL2BZTDL.js.map +1 -0
  30. package/dist/{chunk-WB3QM6PP.js → chunk-ELZ2IIOF.js} +332 -2522
  31. package/dist/chunk-ELZ2IIOF.js.map +1 -0
  32. package/dist/{chunk-MWJLZMBL.js → chunk-F2OVHJNC.js} +10 -10
  33. package/dist/{chunk-I2AH3CJJ.js → chunk-FLF6AECQ.js} +7 -7
  34. package/dist/{chunk-GCQRPUSB.js → chunk-GAZFKZHM.js} +4 -4
  35. package/dist/{chunk-QZ6LRSNV.js → chunk-HQFVJDEN.js} +7 -7
  36. package/dist/{chunk-M3W7J6MU.js → chunk-HVFR66GQ.js} +2 -2
  37. package/dist/{chunk-2B7ZNTPV.js → chunk-IA7BMIPE.js} +2 -2
  38. package/dist/{chunk-PIKOVN6W.js → chunk-JQU7FHYH.js} +6 -6
  39. package/dist/{chunk-NLXTXE5Y.js → chunk-K3U5F2QT.js} +183 -31
  40. package/dist/chunk-K3U5F2QT.js.map +1 -0
  41. package/dist/{chunk-JCDXE76J.js → chunk-MZC62HPZ.js} +2 -2
  42. package/dist/{chunk-TK3FC4RF.js → chunk-NAZRLJAK.js} +3 -3
  43. package/dist/{chunk-JXLTXMJ7.js → chunk-NGK3N6F2.js} +3 -3
  44. package/dist/{chunk-PU6DFJMY.js → chunk-NN4ASVTY.js} +3 -3
  45. package/dist/{chunk-C4SQM22E.js → chunk-OIZ3XMKB.js} +13 -11
  46. package/dist/chunk-OIZ3XMKB.js.map +1 -0
  47. package/dist/{chunk-6JSSEWBG.js → chunk-QCBICNKC.js} +6 -6
  48. package/dist/chunk-QCBICNKC.js.map +1 -0
  49. package/dist/{chunk-DXNZS72W.js → chunk-QLUMKWQQ.js} +3 -3
  50. package/dist/{chunk-EPH54CAY.js → chunk-QY3DOZMS.js} +4 -4
  51. package/dist/{chunk-FBEQCK47.js → chunk-SJO2FTPG.js} +6 -6
  52. package/dist/{chunk-PNPQTHBT.js → chunk-SNEHX4VE.js} +2 -2
  53. package/dist/{chunk-SKSDRUUK.js → chunk-TA42STP7.js} +4 -4
  54. package/dist/{chunk-CK7SKVHR.js → chunk-TBAMBLF3.js} +3 -12
  55. package/dist/chunk-TBAMBLF3.js.map +1 -0
  56. package/dist/{chunk-IDV6HJCB.js → chunk-TCC737IS.js} +3 -3
  57. package/dist/{chunk-QRWGPQKO.js → chunk-TVIX653Q.js} +3 -3
  58. package/dist/{chunk-YTURO7SI.js → chunk-UK2I3ACY.js} +3 -3
  59. package/dist/{chunk-7UKO3ASZ.js → chunk-XWFNO5PO.js} +3 -3
  60. package/dist/{chunk-37LP5HMZ.js → chunk-YA63PVWI.js} +5 -5
  61. package/dist/chunk-YGFIQ6Y5.js +17 -0
  62. package/dist/chunk-YGFIQ6Y5.js.map +1 -0
  63. package/dist/{chunk-UQISLDAV.js → chunk-ZX43SRZR.js} +3 -3
  64. package/dist/{cli-MN7PYMBI.js → cli-6PGVHP7Y.js} +15 -15
  65. package/dist/{cli-6UB5N6CU.js → cli-AAG3N4NB.js} +16 -16
  66. package/dist/{cli-6HIDIFVT.js → cli-E3H6ZP4I.js} +2 -2
  67. package/dist/{cli-RPM5PELX.js → cli-HUIMNJT6.js} +20 -15
  68. package/dist/cli-HUIMNJT6.js.map +1 -0
  69. package/dist/{cli-VI7VHWNZ.js → cli-MHTYPVOD.js} +16 -16
  70. package/dist/{cli-LFP5ZGYS.js → cli-PRZHQ3QB.js} +15 -13
  71. package/dist/{cli-LFP5ZGYS.js.map → cli-PRZHQ3QB.js.map} +1 -1
  72. package/dist/{cli-3BIBYHFK.js → cli-QKIJOXGW.js} +13 -13
  73. package/dist/{cli-PYPX6O6E.js → cli-TYGOHJOJ.js} +25 -25
  74. package/dist/{cli-673OTRGE.js → cli-YW6VWBHX.js} +9 -9
  75. package/dist/cli.js +11 -11
  76. package/dist/docmeta.js +8 -8
  77. package/dist/{github-SXPGP5DB.js → github-3WMSTNTK.js} +13 -13
  78. package/dist/{github-6QMYOHC3.js → github-OXSJQ4PS.js} +11 -11
  79. package/dist/index.d.ts +30 -8
  80. package/dist/index.js +42 -38
  81. package/dist/index.js.map +1 -1
  82. package/dist/{json-SY7KLNC7.js → json-4DCKDGUV.js} +11 -11
  83. package/dist/lint-YDHVVZHT.js +30 -0
  84. package/dist/{list-KZNVTNVC.js → list-3ZO2NIYO.js} +11 -11
  85. package/dist/{list-Q57YTFUQ.js → list-EJH6VAOW.js} +11 -11
  86. package/dist/{page-KSGV5RD4.js → page-QEDB7EVU.js} +10 -10
  87. package/dist/{pretty-A5EGTN35.js → pretty-5DGEBZSV.js} +11 -11
  88. package/dist/{pretty-CXSDXNAS.js → pretty-SQX33UM2.js} +12 -12
  89. package/dist/{reporters-HUY7UXFS.js → reporters-OHSI3RMV.js} +12 -11
  90. package/dist/{reporters-K2VUKSAK.js → reporters-YELDDYJD.js} +4 -4
  91. package/dist/{run-3DYJNRIG.js → run-IP6NZHAG.js} +11 -11
  92. package/dist/{term-BIQUPMOR.js → term-2WMDZ4PY.js} +15 -15
  93. package/dist/{validate-53RKM2XG.js → validate-G6HH3YXL.js} +5 -5
  94. package/package.json +1 -1
  95. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  96. package/dist/chunk-6JSSEWBG.js.map +0 -1
  97. package/dist/chunk-C4SQM22E.js.map +0 -1
  98. package/dist/chunk-CK7SKVHR.js.map +0 -1
  99. package/dist/chunk-M2JCK5F6.js.map +0 -1
  100. package/dist/chunk-NLXTXE5Y.js.map +0 -1
  101. package/dist/chunk-RL5XWQOL.js.map +0 -1
  102. package/dist/chunk-WB3QM6PP.js.map +0 -1
  103. package/dist/cli-RPM5PELX.js.map +0 -1
  104. package/dist/lint-ASMJLLPA.js +0 -28
  105. /package/dist/{batch-GFNLTGOH.js.map → batch-GOE3UXOD.js.map} +0 -0
  106. /package/dist/{build-COYIQ25L.js.map → build-M7BMEHL2.js.map} +0 -0
  107. /package/dist/{calibrate-MDBLJKEE.js.map → calibrate-6RRAILUY.js.map} +0 -0
  108. /package/dist/{capture-LRML2PKV.js.map → capture-RJPQ6B4N.js.map} +0 -0
  109. /package/dist/{check-ASPIHA6B.js.map → check-BQD64X3N.js.map} +0 -0
  110. /package/dist/{check-EDLBYL5N.js.map → check-ESNS7ZBC.js.map} +0 -0
  111. /package/dist/{check-HYNGXYJV.js.map → check-RQIIIURI.js.map} +0 -0
  112. /package/dist/{chunk-NXV7WE2D.js.map → chunk-3R5Y3XOL.js.map} +0 -0
  113. /package/dist/{chunk-A5ULMVHQ.js.map → chunk-3YHAYXBC.js.map} +0 -0
  114. /package/dist/{chunk-6OYEI2VV.js.map → chunk-52PDIZKV.js.map} +0 -0
  115. /package/dist/{chunk-3VK37OR2.js.map → chunk-7OQAU4EA.js.map} +0 -0
  116. /package/dist/{chunk-4IUC2MNL.js.map → chunk-7ZUCEMCY.js.map} +0 -0
  117. /package/dist/{chunk-MYMBCTDE.js.map → chunk-BOIF2XGG.js.map} +0 -0
  118. /package/dist/{chunk-MMTSSTG7.js.map → chunk-C6HZ6C5T.js.map} +0 -0
  119. /package/dist/{chunk-QQUKGCAJ.js.map → chunk-CP4ZM43V.js.map} +0 -0
  120. /package/dist/{chunk-YB4IBW3M.js.map → chunk-DX32P2DT.js.map} +0 -0
  121. /package/dist/{chunk-MWJLZMBL.js.map → chunk-F2OVHJNC.js.map} +0 -0
  122. /package/dist/{chunk-I2AH3CJJ.js.map → chunk-FLF6AECQ.js.map} +0 -0
  123. /package/dist/{chunk-GCQRPUSB.js.map → chunk-GAZFKZHM.js.map} +0 -0
  124. /package/dist/{chunk-QZ6LRSNV.js.map → chunk-HQFVJDEN.js.map} +0 -0
  125. /package/dist/{chunk-M3W7J6MU.js.map → chunk-HVFR66GQ.js.map} +0 -0
  126. /package/dist/{chunk-2B7ZNTPV.js.map → chunk-IA7BMIPE.js.map} +0 -0
  127. /package/dist/{chunk-PIKOVN6W.js.map → chunk-JQU7FHYH.js.map} +0 -0
  128. /package/dist/{chunk-JCDXE76J.js.map → chunk-MZC62HPZ.js.map} +0 -0
  129. /package/dist/{chunk-TK3FC4RF.js.map → chunk-NAZRLJAK.js.map} +0 -0
  130. /package/dist/{chunk-JXLTXMJ7.js.map → chunk-NGK3N6F2.js.map} +0 -0
  131. /package/dist/{chunk-PU6DFJMY.js.map → chunk-NN4ASVTY.js.map} +0 -0
  132. /package/dist/{chunk-DXNZS72W.js.map → chunk-QLUMKWQQ.js.map} +0 -0
  133. /package/dist/{chunk-EPH54CAY.js.map → chunk-QY3DOZMS.js.map} +0 -0
  134. /package/dist/{chunk-FBEQCK47.js.map → chunk-SJO2FTPG.js.map} +0 -0
  135. /package/dist/{chunk-PNPQTHBT.js.map → chunk-SNEHX4VE.js.map} +0 -0
  136. /package/dist/{chunk-SKSDRUUK.js.map → chunk-TA42STP7.js.map} +0 -0
  137. /package/dist/{chunk-IDV6HJCB.js.map → chunk-TCC737IS.js.map} +0 -0
  138. /package/dist/{chunk-QRWGPQKO.js.map → chunk-TVIX653Q.js.map} +0 -0
  139. /package/dist/{chunk-YTURO7SI.js.map → chunk-UK2I3ACY.js.map} +0 -0
  140. /package/dist/{chunk-7UKO3ASZ.js.map → chunk-XWFNO5PO.js.map} +0 -0
  141. /package/dist/{chunk-37LP5HMZ.js.map → chunk-YA63PVWI.js.map} +0 -0
  142. /package/dist/{chunk-UQISLDAV.js.map → chunk-ZX43SRZR.js.map} +0 -0
  143. /package/dist/{cli-MN7PYMBI.js.map → cli-6PGVHP7Y.js.map} +0 -0
  144. /package/dist/{cli-6UB5N6CU.js.map → cli-AAG3N4NB.js.map} +0 -0
  145. /package/dist/{cli-6HIDIFVT.js.map → cli-E3H6ZP4I.js.map} +0 -0
  146. /package/dist/{cli-VI7VHWNZ.js.map → cli-MHTYPVOD.js.map} +0 -0
  147. /package/dist/{cli-3BIBYHFK.js.map → cli-QKIJOXGW.js.map} +0 -0
  148. /package/dist/{cli-PYPX6O6E.js.map → cli-TYGOHJOJ.js.map} +0 -0
  149. /package/dist/{cli-673OTRGE.js.map → cli-YW6VWBHX.js.map} +0 -0
  150. /package/dist/{github-6QMYOHC3.js.map → github-3WMSTNTK.js.map} +0 -0
  151. /package/dist/{github-SXPGP5DB.js.map → github-OXSJQ4PS.js.map} +0 -0
  152. /package/dist/{json-SY7KLNC7.js.map → json-4DCKDGUV.js.map} +0 -0
  153. /package/dist/{lint-ASMJLLPA.js.map → lint-YDHVVZHT.js.map} +0 -0
  154. /package/dist/{list-KZNVTNVC.js.map → list-3ZO2NIYO.js.map} +0 -0
  155. /package/dist/{list-Q57YTFUQ.js.map → list-EJH6VAOW.js.map} +0 -0
  156. /package/dist/{page-KSGV5RD4.js.map → page-QEDB7EVU.js.map} +0 -0
  157. /package/dist/{pretty-A5EGTN35.js.map → pretty-5DGEBZSV.js.map} +0 -0
  158. /package/dist/{pretty-CXSDXNAS.js.map → pretty-SQX33UM2.js.map} +0 -0
  159. /package/dist/{reporters-HUY7UXFS.js.map → reporters-OHSI3RMV.js.map} +0 -0
  160. /package/dist/{reporters-K2VUKSAK.js.map → reporters-YELDDYJD.js.map} +0 -0
  161. /package/dist/{run-3DYJNRIG.js.map → run-IP6NZHAG.js.map} +0 -0
  162. /package/dist/{term-BIQUPMOR.js.map → term-2WMDZ4PY.js.map} +0 -0
  163. /package/dist/{validate-53RKM2XG.js.map → validate-G6HH3YXL.js.map} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  spliceEntryField,
17
17
  unifiedDiff,
18
18
  withClaimLines
19
- } from "./chunk-4IUC2MNL.js";
19
+ } from "./chunk-7ZUCEMCY.js";
20
20
  import {
21
21
  CITATIONS_KEY,
22
22
  CITE_SECTION,
@@ -54,10 +54,10 @@ import {
54
54
  stripMarkers,
55
55
  twoManifestsRefusal,
56
56
  urlManifestRefusal
57
- } from "./chunk-PIKOVN6W.js";
57
+ } from "./chunk-JQU7FHYH.js";
58
58
  import {
59
59
  renderCheckGithub
60
- } from "./chunk-7UKO3ASZ.js";
60
+ } from "./chunk-XWFNO5PO.js";
61
61
  import {
62
62
  refusalLine,
63
63
  removalLine,
@@ -65,7 +65,7 @@ import {
65
65
  renderRemovePretty,
66
66
  renderUpdatePretty,
67
67
  rewriteLine
68
- } from "./chunk-JXLTXMJ7.js";
68
+ } from "./chunk-NGK3N6F2.js";
69
69
  import {
70
70
  blockMatches,
71
71
  claimEnd,
@@ -94,7 +94,7 @@ import {
94
94
  toValidationResult,
95
95
  unitAt,
96
96
  unitText
97
- } from "./chunk-SKSDRUUK.js";
97
+ } from "./chunk-TA42STP7.js";
98
98
  import {
99
99
  renderCheckJson,
100
100
  renderRemoveJson,
@@ -140,11 +140,11 @@ import {
140
140
  spellSource,
141
141
  statementForms,
142
142
  validateEntry
143
- } from "./chunk-YTURO7SI.js";
143
+ } from "./chunk-UK2I3ACY.js";
144
144
  import {
145
145
  reencryptData,
146
146
  reencryptMetadata
147
- } from "./chunk-QRWGPQKO.js";
147
+ } from "./chunk-TVIX653Q.js";
148
148
  import {
149
149
  ENCRYPTION_KEY_ENV,
150
150
  MAX_RANGE_LINES,
@@ -170,7 +170,7 @@ import {
170
170
  toBodyLines,
171
171
  toFileLines,
172
172
  writeEncryptionKey
173
- } from "./chunk-M3W7J6MU.js";
173
+ } from "./chunk-HVFR66GQ.js";
174
174
  import {
175
175
  LEGACY_CONFIG_NAMES,
176
176
  STDIN_TOKEN,
@@ -181,7 +181,7 @@ import {
181
181
  resolveTargetSet,
182
182
  supportedExtensions,
183
183
  writeFileAtomic
184
- } from "./chunk-57NEQRVO.js";
184
+ } from "./chunk-527HHQPS.js";
185
185
  import {
186
186
  findConfigFile,
187
187
  findFamilyConfigFile,
@@ -931,4 +931,4 @@ export {
931
931
  runKeyRotate,
932
932
  runKeySet
933
933
  };
934
- //# sourceMappingURL=chunk-MWJLZMBL.js.map
934
+ //# sourceMappingURL=chunk-F2OVHJNC.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  discoverArtifacts
4
- } from "./chunk-QQUKGCAJ.js";
4
+ } from "./chunk-CP4ZM43V.js";
5
5
  import {
6
6
  METADATA_KEY,
7
7
  assertProviderSelection,
@@ -14,10 +14,10 @@ import {
14
14
  resolveProviderIdentity,
15
15
  selectProvider,
16
16
  urlManifestRefusal
17
- } from "./chunk-FBEQCK47.js";
17
+ } from "./chunk-SJO2FTPG.js";
18
18
  import {
19
19
  discoverConfig
20
- } from "./chunk-NXV7WE2D.js";
20
+ } from "./chunk-3R5Y3XOL.js";
21
21
  import {
22
22
  discoverTraces
23
23
  } from "./chunk-4TSWU2SU.js";
@@ -34,7 +34,7 @@ import {
34
34
  externalWriteWarnings,
35
35
  mergeMetaProvenance,
36
36
  offerExternalHomes
37
- } from "./chunk-A5ULMVHQ.js";
37
+ } from "./chunk-3YHAYXBC.js";
38
38
  import {
39
39
  keyHome,
40
40
  marksValidator,
@@ -42,12 +42,12 @@ import {
42
42
  readManifestOrEmpty,
43
43
  readManifestValue,
44
44
  spliceManifestValue
45
- } from "./chunk-M3W7J6MU.js";
45
+ } from "./chunk-HVFR66GQ.js";
46
46
  import {
47
47
  DocmetaError,
48
48
  extractFrontmatter,
49
49
  writeFileAtomic
50
- } from "./chunk-57NEQRVO.js";
50
+ } from "./chunk-527HHQPS.js";
51
51
  import {
52
52
  palette
53
53
  } from "./chunk-RNVYGWIC.js";
@@ -1189,4 +1189,4 @@ export {
1189
1189
  runFill,
1190
1190
  renderFill
1191
1191
  };
1192
- //# sourceMappingURL=chunk-I2AH3CJJ.js.map
1192
+ //# sourceMappingURL=chunk-FLF6AECQ.js.map
@@ -22,7 +22,7 @@ import {
22
22
  updateConfigEval,
23
23
  updateManifestEval,
24
24
  updatePageEval
25
- } from "./chunk-37LP5HMZ.js";
25
+ } from "./chunk-YA63PVWI.js";
26
26
  import {
27
27
  DEFAULT_CONFIG_FILENAME,
28
28
  assertRegisteredGraders,
@@ -41,7 +41,7 @@ import {
41
41
  sha256,
42
42
  splitBody,
43
43
  withExternalMetadata
44
- } from "./chunk-3VK37OR2.js";
44
+ } from "./chunk-7OQAU4EA.js";
45
45
  import {
46
46
  isTurnBudgetSkip
47
47
  } from "./chunk-LJ2RDH3F.js";
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-77AINBYM.js";
58
58
  import {
59
59
  mergeMetaProvenance
60
- } from "./chunk-A5ULMVHQ.js";
60
+ } from "./chunk-3YHAYXBC.js";
61
61
  import {
62
62
  palette
63
63
  } from "./chunk-RNVYGWIC.js";
@@ -1284,4 +1284,4 @@ export {
1284
1284
  renderCalibration,
1285
1285
  runInit
1286
1286
  };
1287
- //# sourceMappingURL=chunk-GCQRPUSB.js.map
1287
+ //# sourceMappingURL=chunk-GAZFKZHM.js.map
@@ -22,7 +22,7 @@ import {
22
22
  runRelocate,
23
23
  runVendorSchema,
24
24
  terminalConfirm
25
- } from "./chunk-6JSSEWBG.js";
25
+ } from "./chunk-QCBICNKC.js";
26
26
  import {
27
27
  collect,
28
28
  configOption,
@@ -32,7 +32,7 @@ import {
32
32
  rowsToFindings,
33
33
  runValidate,
34
34
  splitList
35
- } from "./chunk-TK3FC4RF.js";
35
+ } from "./chunk-NAZRLJAK.js";
36
36
  import {
37
37
  LOCATION_EXTERNAL_SCHEMA,
38
38
  LOCATION_PAGE_SCHEMA,
@@ -44,7 +44,7 @@ import {
44
44
  planRelocation,
45
45
  relocateFailed,
46
46
  relocationContext
47
- } from "./chunk-M3W7J6MU.js";
47
+ } from "./chunk-HVFR66GQ.js";
48
48
  import {
49
49
  COMMON_FORMATS,
50
50
  COMMON_FORMAT_LIST,
@@ -60,7 +60,7 @@ import {
60
60
  isQueryFormat,
61
61
  isReportFormat,
62
62
  render
63
- } from "./chunk-IDV6HJCB.js";
63
+ } from "./chunk-TCC737IS.js";
64
64
  import {
65
65
  DocmetaError,
66
66
  STDIN_LABEL,
@@ -70,7 +70,7 @@ import {
70
70
  schemaLoadOptions,
71
71
  supportedExtensions,
72
72
  toJsonText
73
- } from "./chunk-57NEQRVO.js";
73
+ } from "./chunk-527HHQPS.js";
74
74
  import {
75
75
  fail
76
76
  } from "./chunk-YEUYKR62.js";
@@ -85,7 +85,7 @@ import {
85
85
  } from "./chunk-Q35YIDBV.js";
86
86
  import {
87
87
  package_default
88
- } from "./chunk-UJCVAWP7.js";
88
+ } from "./chunk-6XTQDFGP.js";
89
89
  import {
90
90
  programName
91
91
  } from "./chunk-OWBRDNRZ.js";
@@ -1523,4 +1523,4 @@ export {
1523
1523
  parseQueryParams,
1524
1524
  buildProgram
1525
1525
  };
1526
- //# sourceMappingURL=chunk-QZ6LRSNV.js.map
1526
+ //# sourceMappingURL=chunk-HQFVJDEN.js.map
@@ -42,7 +42,7 @@ import {
42
42
  schemaLoadOptions,
43
43
  schemaTrustRoot,
44
44
  writeFileAtomic
45
- } from "./chunk-57NEQRVO.js";
45
+ } from "./chunk-527HHQPS.js";
46
46
  import {
47
47
  STDIN_LINES_MARKER
48
48
  } from "./chunk-YEUYKR62.js";
@@ -4395,4 +4395,4 @@ export {
4395
4395
  parseProvenanceTarget,
4396
4396
  attributeRange
4397
4397
  };
4398
- //# sourceMappingURL=chunk-M3W7J6MU.js.map
4398
+ //# sourceMappingURL=chunk-HVFR66GQ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  TERM_FIELDS,
4
4
  displayPath,
5
5
  plural
6
- } from "./chunk-PU6DFJMY.js";
6
+ } from "./chunk-NN4ASVTY.js";
7
7
  import {
8
8
  palette
9
9
  } from "./chunk-RNVYGWIC.js";
@@ -227,4 +227,4 @@ export {
227
227
  renderValeWiring,
228
228
  renderFormatsPretty
229
229
  };
230
- //# sourceMappingURL=chunk-2B7ZNTPV.js.map
230
+ //# sourceMappingURL=chunk-IA7BMIPE.js.map
@@ -12,7 +12,7 @@ import {
12
12
  shortCommit,
13
13
  toValidationResult,
14
14
  unitText
15
- } from "./chunk-SKSDRUUK.js";
15
+ } from "./chunk-TA42STP7.js";
16
16
  import {
17
17
  SEVERITIES
18
18
  } from "./chunk-77AINBYM.js";
@@ -34,10 +34,10 @@ import {
34
34
  sliceLines,
35
35
  sourceRange,
36
36
  spellSource
37
- } from "./chunk-YTURO7SI.js";
37
+ } from "./chunk-UK2I3ACY.js";
38
38
  import {
39
39
  STDIN_REQUIRES_AS
40
- } from "./chunk-TK3FC4RF.js";
40
+ } from "./chunk-NAZRLJAK.js";
41
41
  import {
42
42
  MAX_RANGE_LINES,
43
43
  MOVE_BUDGET_BYTES,
@@ -58,7 +58,7 @@ import {
58
58
  spellLines,
59
59
  splitLines,
60
60
  toBodyLines
61
- } from "./chunk-M3W7J6MU.js";
61
+ } from "./chunk-HVFR66GQ.js";
62
62
  import {
63
63
  STDIN_LABEL,
64
64
  STDIN_TOKEN,
@@ -72,7 +72,7 @@ import {
72
72
  resolveTargetSet,
73
73
  settleBaseline,
74
74
  supportedExtensions
75
- } from "./chunk-57NEQRVO.js";
75
+ } from "./chunk-527HHQPS.js";
76
76
  import {
77
77
  decryptValue,
78
78
  encryptValue,
@@ -1648,4 +1648,4 @@ export {
1648
1648
  sayNotices,
1649
1649
  runCheck
1650
1650
  };
1651
- //# sourceMappingURL=chunk-PIKOVN6W.js.map
1651
+ //# sourceMappingURL=chunk-JQU7FHYH.js.map
@@ -34,25 +34,33 @@ import {
34
34
  mintSchemeIri,
35
35
  mintSectionIri,
36
36
  normalizeDocPath
37
- } from "./chunk-M2JCK5F6.js";
37
+ } from "./chunk-B7XUEQF3.js";
38
+ import {
39
+ parserByName,
40
+ parserForExtension,
41
+ supportedExtensions,
42
+ unsupportedFormatMessage
43
+ } from "./chunk-ELZ2IIOF.js";
38
44
  import {
39
45
  metaPageView
40
- } from "./chunk-QRWGPQKO.js";
46
+ } from "./chunk-TVIX653Q.js";
41
47
  import {
42
48
  STDIN_REQUIRES_AS
43
- } from "./chunk-TK3FC4RF.js";
49
+ } from "./chunk-NAZRLJAK.js";
44
50
  import {
45
51
  writeTextAtomic
46
- } from "./chunk-M3W7J6MU.js";
52
+ } from "./chunk-HVFR66GQ.js";
47
53
  import {
48
- extractFrontmatter
49
- } from "./chunk-57NEQRVO.js";
54
+ extractFrontmatter,
55
+ extractorForExtension
56
+ } from "./chunk-527HHQPS.js";
50
57
  import {
51
- selectCollections
58
+ selectCollections,
59
+ warn
52
60
  } from "./chunk-Q35YIDBV.js";
53
61
  import {
54
62
  package_default
55
- } from "./chunk-UJCVAWP7.js";
63
+ } from "./chunk-6XTQDFGP.js";
56
64
  import {
57
65
  errorMessage
58
66
  } from "./chunk-G3T47CFV.js";
@@ -63,6 +71,7 @@ import { dirname, resolve as resolve3 } from "node:path";
63
71
 
64
72
  // src/graph/core/analyze.ts
65
73
  import { createHash } from "node:crypto";
74
+ import { extname } from "node:path";
66
75
  import { unified } from "unified";
67
76
  import remarkParse from "remark-parse";
68
77
  import remarkGfm from "remark-gfm";
@@ -70,9 +79,24 @@ import remarkFrontmatter from "remark-frontmatter";
70
79
  import remarkMdx from "remark-mdx";
71
80
  import { toString as mdastToString } from "mdast-util-to-string";
72
81
  import GithubSlugger from "github-slugger";
73
- var DOC_FORMATS = ["markdown", "mdx"];
82
+ var DOC_FORMATS = [
83
+ "asciidoc",
84
+ "html",
85
+ "markdown",
86
+ "mdx",
87
+ "rst",
88
+ "xml"
89
+ ];
90
+ function isTreeFormat(format) {
91
+ return format !== "markdown" && format !== "mdx";
92
+ }
93
+ function isDocFormat(name) {
94
+ return DOC_FORMATS.includes(name);
95
+ }
74
96
  function formatOf(path, format) {
75
- return format ?? (path.endsWith(".mdx") ? "mdx" : "markdown");
97
+ if (format !== void 0) return format;
98
+ const name = parserForExtension(extname(path))?.name;
99
+ return name !== void 0 && isDocFormat(name) ? name : "markdown";
76
100
  }
77
101
  var processor = unified().use(remarkParse).use(remarkGfm).use(remarkFrontmatter, ["yaml", "toml"]);
78
102
  var mdxProcessor = unified().use(remarkParse).use(remarkGfm).use(remarkFrontmatter, ["yaml", "toml"]).use(remarkMdx);
@@ -255,17 +279,25 @@ function classifyImage(docPath, rawTarget) {
255
279
  const resolved = resolveRelative(docPath, rawTarget);
256
280
  return { raw: rawTarget, target: resolved ?? rawTarget, external: false };
257
281
  }
258
- function analyzeDoc(content, relPath, allPaths, options = {}) {
259
- const routes = options.routes ?? [];
260
- const path = normalizeDocPath(relPath);
261
- let meta;
282
+ function extractorFor(format) {
283
+ return extractorForExtension(parserByName(format)?.extensions[0] ?? "");
284
+ }
285
+ function metadataOf(content, path, format) {
262
286
  try {
263
- meta = extractFrontmatter(content, "markdown");
287
+ const meta = format === "markdown" || format === "mdx" ? extractFrontmatter(content, "markdown") : extractorFor(format)?.extract(content, path);
288
+ return meta === void 0 ? { data: {}, present: false } : { data: meta.data, present: meta.present };
264
289
  } catch (error) {
265
290
  throw new GraphError(`${path}: ${errorMessage(error)}`);
266
291
  }
292
+ }
293
+ function analyzeDoc(content, relPath, allPaths, options = {}) {
294
+ const routes = options.routes ?? [];
295
+ const path = normalizeDocPath(relPath);
267
296
  const format = formatOf(path, options.format);
268
- const body = (options.parse ?? parseBody)(content, path, format);
297
+ const parse = options.parse ?? parseBody;
298
+ let body = isTreeFormat(format) ? parse(content, path, format) : void 0;
299
+ const meta = metadataOf(content, path, format);
300
+ body ??= parse(content, path, format);
269
301
  const links = [];
270
302
  for (const target of body.linkTargets) {
271
303
  const link = classifyLink(path, target, allPaths, routes);
@@ -292,6 +324,7 @@ function analyzeDoc(content, relPath, allPaths, options = {}) {
292
324
  };
293
325
  }
294
326
  function parseBody(content, path, format) {
327
+ if (isTreeFormat(format)) return parseTreeBody(content, path, format);
295
328
  const isMdx = format === "mdx";
296
329
  let tree;
297
330
  try {
@@ -385,6 +418,118 @@ function parseBody(content, path, format) {
385
418
  codeLanguages: [...codeLanguages].sort()
386
419
  };
387
420
  }
421
+ function parseTree(content, path, format) {
422
+ const parser = parserByName(format);
423
+ if (parser === void 0) {
424
+ throw new GraphError(`No parser reads ${format}.`);
425
+ }
426
+ try {
427
+ return parser.parse(content, path);
428
+ } catch (error) {
429
+ throw new GraphError(
430
+ `Could not parse ${format} in ${path}: ${errorMessage(error)}`
431
+ );
432
+ }
433
+ }
434
+ var IRI_SAFE_ID = /^[A-Za-z_][A-Za-z0-9_.:-]*$/;
435
+ function mintTreeSections(roots) {
436
+ const out = {
437
+ sections: [],
438
+ owned: [],
439
+ unowned: [],
440
+ firstH1: void 0
441
+ };
442
+ const slugger = new GithubSlugger();
443
+ const taken = /* @__PURE__ */ new Set();
444
+ const childCount = /* @__PURE__ */ new Map();
445
+ const anchorFor = (node) => {
446
+ const id = node.id;
447
+ if (id !== void 0 && IRI_SAFE_ID.test(id) && !id.startsWith("prov.")) {
448
+ let anchor2 = id;
449
+ for (let n = 1; taken.has(anchor2); n++) anchor2 = `${id}-${String(n)}`;
450
+ taken.add(anchor2);
451
+ return anchor2;
452
+ }
453
+ let anchor = slugger.slug(node.title);
454
+ while (taken.has(anchor)) anchor = slugger.slug(node.title);
455
+ taken.add(anchor);
456
+ return anchor;
457
+ };
458
+ const walk = (nodes, parentSlug) => {
459
+ for (const node of nodes) {
460
+ if (node.level === 0 || node.synthetic || node.title.trim() === "") {
461
+ out.unowned.push(...node.children);
462
+ walk(node.sections, parentSlug);
463
+ continue;
464
+ }
465
+ const slug = anchorFor(node);
466
+ if (node.level === 1 && out.firstH1 === void 0) {
467
+ out.firstH1 = node.title;
468
+ }
469
+ const parentKey = parentSlug ?? "";
470
+ const order = (childCount.get(parentKey) ?? 0) + 1;
471
+ childCount.set(parentKey, order);
472
+ out.sections.push({
473
+ slug,
474
+ title: node.title,
475
+ level: node.level,
476
+ order,
477
+ parentSlug
478
+ });
479
+ out.owned.push(node.children);
480
+ walk(node.sections, slug);
481
+ }
482
+ };
483
+ walk(roots, null);
484
+ return out;
485
+ }
486
+ function eachContent(nodes, fn) {
487
+ for (const node of nodes) {
488
+ fn(node);
489
+ switch (node.kind) {
490
+ case "list":
491
+ for (const item of node.items) eachContent(item.children, fn);
492
+ break;
493
+ case "table":
494
+ for (const row of node.children) {
495
+ for (const cell of row.children) eachContent(cell.children, fn);
496
+ }
497
+ break;
498
+ case "definitionList":
499
+ for (const item of node.children) eachContent(item.definition, fn);
500
+ break;
501
+ case "admonition":
502
+ case "blockquote":
503
+ case "element":
504
+ eachContent(node.children, fn);
505
+ break;
506
+ default:
507
+ break;
508
+ }
509
+ }
510
+ }
511
+ function treeContent(sections) {
512
+ return sections.flatMap((s) => [...s.children, ...treeContent(s.sections)]);
513
+ }
514
+ function parseTreeBody(content, path, format) {
515
+ const tree = parseTree(content, path, format);
516
+ const minted = mintTreeSections(tree.sections);
517
+ const imageTargets = [];
518
+ const codeLanguages = /* @__PURE__ */ new Set();
519
+ eachContent(treeContent(tree.sections), (node) => {
520
+ if (node.kind === "image") imageTargets.push(node.url);
521
+ else if (node.kind === "codeBlock" && node.language) {
522
+ codeLanguages.add(node.language);
523
+ }
524
+ });
525
+ return {
526
+ ...minted.firstH1 === void 0 ? {} : { firstH1: minted.firstH1 },
527
+ sections: minted.sections,
528
+ linkTargets: tree.links.map((l) => l.target),
529
+ imageTargets,
530
+ codeLanguages: [...codeLanguages].sort()
531
+ };
532
+ }
388
533
  function visit(node, fn) {
389
534
  const children = node.children;
390
535
  if (!children) return;
@@ -1012,7 +1157,7 @@ function dedupe(quads) {
1012
1157
 
1013
1158
  // src/graph/core/discover.ts
1014
1159
  import { statSync } from "node:fs";
1015
- import { extname, relative, resolve } from "node:path";
1160
+ import { extname as extname2, relative, resolve } from "node:path";
1016
1161
  import fg from "fast-glob";
1017
1162
  function discoverFiles(inputs, exclude, cwd) {
1018
1163
  const matches = fg.sync(inputs, {
@@ -1027,18 +1172,18 @@ function discoverFiles(inputs, exclude, cwd) {
1027
1172
  );
1028
1173
  }
1029
1174
  var FAMILY_EXCLUDE = ["**/node_modules/**", "**/.git/**"];
1030
- var SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([".md", ".markdown", ".mdx"]);
1031
- var DEFAULT_EXTENSIONS = [".md", ".mdx", ".markdown"];
1175
+ var DEFAULT_EXTENSIONS = supportedExtensions();
1032
1176
  var STDIN = "-";
1033
1177
  function assertInputFormat(paths, as) {
1034
- if (as !== void 0 && !DOC_FORMATS.includes(as)) {
1178
+ if (as === void 0) {
1179
+ if (paths.includes(STDIN)) throw new GraphError(STDIN_REQUIRES_AS);
1180
+ return void 0;
1181
+ }
1182
+ if (!isDocFormat(as)) {
1035
1183
  throw new GraphError(
1036
1184
  `Unknown format "${as}". Known formats: ${DOC_FORMATS.join(", ")}.`
1037
1185
  );
1038
1186
  }
1039
- if (paths.includes(STDIN) && as === void 0) {
1040
- throw new GraphError(STDIN_REQUIRES_AS);
1041
- }
1042
1187
  return as;
1043
1188
  }
1044
1189
  function expandInputs(inputs, base, ignore) {
@@ -1119,8 +1264,16 @@ function resolveDocumentSet(config, options = {}, verb = "build", cwd = process.
1119
1264
  });
1120
1265
  }
1121
1266
  const exts = normalizeExtensions(options.ext ?? DEFAULT_EXTENSIONS);
1122
- const keepNamed = (p) => format !== void 0 || SUPPORTED_EXTENSIONS.has(extname(p).toLowerCase());
1123
- const keepWalked = (p) => exts.has(extname(p).toLowerCase());
1267
+ const keepNamed = (p) => {
1268
+ const ext = extname2(p);
1269
+ if (format !== void 0 || parserForExtension(ext) !== void 0) {
1270
+ return true;
1271
+ }
1272
+ const label = relative(base, p).replace(/\\/g, "/");
1273
+ warn(`skipped ${label}: ${unsupportedFormatMessage(ext || label)}`);
1274
+ return false;
1275
+ };
1276
+ const keepWalked = (p) => exts.has(extname2(p).toLowerCase());
1124
1277
  return [
1125
1278
  ...new Set(
1126
1279
  [...named.filter(keepNamed), ...walked.filter(keepWalked)].map(
@@ -1537,10 +1690,6 @@ async function withExternalMetadata(docs, view) {
1537
1690
  }
1538
1691
  return out;
1539
1692
  }
1540
- function ownMetadata(content) {
1541
- const meta = extractFrontmatter(content, "markdown");
1542
- return { data: meta.data, present: meta.present };
1543
- }
1544
1693
 
1545
1694
  // src/graph/commands/build.ts
1546
1695
  var GIT_ABSENT_WARNING = "the graph has no revision history or commit agents";
@@ -1629,7 +1778,11 @@ async function buildGraph(opts = {}) {
1629
1778
 
1630
1779
  export {
1631
1780
  formatOf,
1781
+ extractorFor,
1782
+ metadataOf,
1632
1783
  analyzeDoc,
1784
+ parseTree,
1785
+ mintTreeSections,
1633
1786
  discoverFiles,
1634
1787
  DEFAULT_EXTENSIONS,
1635
1788
  STDIN,
@@ -1652,10 +1805,9 @@ export {
1652
1805
  collectGitHistory,
1653
1806
  openMetaView,
1654
1807
  mergePage,
1655
- ownMetadata,
1656
1808
  GIT_ABSENT_WARNING,
1657
1809
  gitAbsentWarning,
1658
1810
  runBuild,
1659
1811
  buildGraph
1660
1812
  };
1661
- //# sourceMappingURL=chunk-NLXTXE5Y.js.map
1813
+ //# sourceMappingURL=chunk-K3U5F2QT.js.map