@hawkeyexl/manni 4.3.1 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +9 -1
  2. package/dist/batch-GFNLTGOH.js +36 -0
  3. package/dist/build-COYIQ25L.js +31 -0
  4. package/dist/calibrate-MDBLJKEE.js +31 -0
  5. package/dist/capture-LRML2PKV.js +32 -0
  6. package/dist/check-ASPIHA6B.js +40 -0
  7. package/dist/check-ASPIHA6B.js.map +1 -0
  8. package/dist/check-EDLBYL5N.js +27 -0
  9. package/dist/check-EDLBYL5N.js.map +1 -0
  10. package/dist/check-HYNGXYJV.js +18 -0
  11. package/dist/check-HYNGXYJV.js.map +1 -0
  12. package/dist/chunk-2B7ZNTPV.js +230 -0
  13. package/dist/chunk-2B7ZNTPV.js.map +1 -0
  14. package/dist/chunk-2H7UOFLK.js +11 -0
  15. package/dist/chunk-2H7UOFLK.js.map +1 -0
  16. package/dist/chunk-37LP5HMZ.js +1042 -0
  17. package/dist/chunk-37LP5HMZ.js.map +1 -0
  18. package/dist/chunk-3VK37OR2.js +2957 -0
  19. package/dist/chunk-3VK37OR2.js.map +1 -0
  20. package/dist/chunk-4IUC2MNL.js +2165 -0
  21. package/dist/chunk-4IUC2MNL.js.map +1 -0
  22. package/dist/{chunk-3R23C5DT.js → chunk-4TSWU2SU.js} +2 -14
  23. package/dist/chunk-4TSWU2SU.js.map +1 -0
  24. package/dist/chunk-57NEQRVO.js +10921 -0
  25. package/dist/chunk-57NEQRVO.js.map +1 -0
  26. package/dist/chunk-6JSSEWBG.js +6737 -0
  27. package/dist/chunk-6JSSEWBG.js.map +1 -0
  28. package/dist/chunk-6OYEI2VV.js +88 -0
  29. package/dist/chunk-6OYEI2VV.js.map +1 -0
  30. package/dist/chunk-77AINBYM.js +19 -0
  31. package/dist/chunk-77AINBYM.js.map +1 -0
  32. package/dist/chunk-7UKO3ASZ.js +54 -0
  33. package/dist/chunk-7UKO3ASZ.js.map +1 -0
  34. package/dist/chunk-A5ULMVHQ.js +164 -0
  35. package/dist/chunk-A5ULMVHQ.js.map +1 -0
  36. package/dist/chunk-C4SQM22E.js +299 -0
  37. package/dist/chunk-C4SQM22E.js.map +1 -0
  38. package/dist/chunk-CK7SKVHR.js +1042 -0
  39. package/dist/chunk-CK7SKVHR.js.map +1 -0
  40. package/dist/{chunk-G5CM2VGQ.js → chunk-DXNZS72W.js} +8 -94
  41. package/dist/chunk-DXNZS72W.js.map +1 -0
  42. package/dist/chunk-EPH54CAY.js +374 -0
  43. package/dist/chunk-EPH54CAY.js.map +1 -0
  44. package/dist/{chunk-KJR7OVDX.js → chunk-FBEQCK47.js} +56 -137
  45. package/dist/chunk-FBEQCK47.js.map +1 -0
  46. package/dist/{chunk-IOYXPBCL.js → chunk-G3T47CFV.js} +1 -7
  47. package/dist/{chunk-IOYXPBCL.js.map → chunk-G3T47CFV.js.map} +1 -1
  48. package/dist/chunk-GCQRPUSB.js +1287 -0
  49. package/dist/chunk-GCQRPUSB.js.map +1 -0
  50. package/dist/chunk-GLP5PSXB.js +72 -0
  51. package/dist/chunk-GLP5PSXB.js.map +1 -0
  52. package/dist/chunk-I2AH3CJJ.js +1192 -0
  53. package/dist/chunk-I2AH3CJJ.js.map +1 -0
  54. package/dist/chunk-IDV6HJCB.js +388 -0
  55. package/dist/chunk-IDV6HJCB.js.map +1 -0
  56. package/dist/chunk-IKEWBMCN.js +98 -0
  57. package/dist/chunk-IKEWBMCN.js.map +1 -0
  58. package/dist/chunk-JCDXE76J.js +52 -0
  59. package/dist/chunk-JCDXE76J.js.map +1 -0
  60. package/dist/chunk-JXLTXMJ7.js +455 -0
  61. package/dist/chunk-JXLTXMJ7.js.map +1 -0
  62. package/dist/chunk-LJ2RDH3F.js +49 -0
  63. package/dist/chunk-LJ2RDH3F.js.map +1 -0
  64. package/dist/chunk-M2JCK5F6.js +805 -0
  65. package/dist/chunk-M2JCK5F6.js.map +1 -0
  66. package/dist/chunk-M3W7J6MU.js +4398 -0
  67. package/dist/chunk-M3W7J6MU.js.map +1 -0
  68. package/dist/chunk-MMTSSTG7.js +23 -0
  69. package/dist/chunk-MMTSSTG7.js.map +1 -0
  70. package/dist/chunk-MNH7QO4Z.js +15 -0
  71. package/dist/chunk-MNH7QO4Z.js.map +1 -0
  72. package/dist/chunk-MWJLZMBL.js +934 -0
  73. package/dist/chunk-MWJLZMBL.js.map +1 -0
  74. package/dist/chunk-MYMBCTDE.js +387 -0
  75. package/dist/chunk-MYMBCTDE.js.map +1 -0
  76. package/dist/chunk-NCPWXHDO.js +683 -0
  77. package/dist/chunk-NCPWXHDO.js.map +1 -0
  78. package/dist/chunk-NLXTXE5Y.js +1661 -0
  79. package/dist/chunk-NLXTXE5Y.js.map +1 -0
  80. package/dist/{chunk-CFDUZRM2.js → chunk-NXV7WE2D.js} +32 -240
  81. package/dist/chunk-NXV7WE2D.js.map +1 -0
  82. package/dist/chunk-OWBRDNRZ.js +16 -0
  83. package/dist/chunk-OWBRDNRZ.js.map +1 -0
  84. package/dist/{chunk-KTSJ2ZHA.js → chunk-PAU352SV.js} +5 -3
  85. package/dist/{chunk-KTSJ2ZHA.js.map → chunk-PAU352SV.js.map} +1 -1
  86. package/dist/chunk-PCE7QHXJ.js +68 -0
  87. package/dist/chunk-PCE7QHXJ.js.map +1 -0
  88. package/dist/chunk-PIKOVN6W.js +1651 -0
  89. package/dist/chunk-PIKOVN6W.js.map +1 -0
  90. package/dist/chunk-PNPQTHBT.js +17 -0
  91. package/dist/chunk-PNPQTHBT.js.map +1 -0
  92. package/dist/chunk-PU6DFJMY.js +1975 -0
  93. package/dist/chunk-PU6DFJMY.js.map +1 -0
  94. package/dist/chunk-Q35YIDBV.js +1202 -0
  95. package/dist/chunk-Q35YIDBV.js.map +1 -0
  96. package/dist/{chunk-5HNHEUD5.js → chunk-QQUKGCAJ.js} +3 -3
  97. package/dist/chunk-QRWGPQKO.js +198 -0
  98. package/dist/chunk-QRWGPQKO.js.map +1 -0
  99. package/dist/{chunk-UBMMXS2Y.js → chunk-QZ6LRSNV.js} +69 -48
  100. package/dist/{chunk-UBMMXS2Y.js.map → chunk-QZ6LRSNV.js.map} +1 -1
  101. package/dist/chunk-RL5XWQOL.js +3872 -0
  102. package/dist/chunk-RL5XWQOL.js.map +1 -0
  103. package/dist/chunk-RNVYGWIC.js +30 -0
  104. package/dist/chunk-RNVYGWIC.js.map +1 -0
  105. package/dist/chunk-SE4JN5XN.js +19 -0
  106. package/dist/chunk-SE4JN5XN.js.map +1 -0
  107. package/dist/chunk-SKSDRUUK.js +622 -0
  108. package/dist/chunk-SKSDRUUK.js.map +1 -0
  109. package/dist/chunk-TIUTIOFB.js +25 -0
  110. package/dist/chunk-TIUTIOFB.js.map +1 -0
  111. package/dist/chunk-TK3FC4RF.js +3090 -0
  112. package/dist/chunk-TK3FC4RF.js.map +1 -0
  113. package/dist/chunk-TU2WUBVZ.js +2 -0
  114. package/dist/chunk-TU2WUBVZ.js.map +1 -0
  115. package/dist/chunk-TZOYZK2E.js +98 -0
  116. package/dist/chunk-TZOYZK2E.js.map +1 -0
  117. package/dist/chunk-UJCVAWP7.js +178 -0
  118. package/dist/chunk-UJCVAWP7.js.map +1 -0
  119. package/dist/chunk-UKZNLVJW.js +17 -0
  120. package/dist/chunk-UKZNLVJW.js.map +1 -0
  121. package/dist/{chunk-HAPTXWU2.js → chunk-UQISLDAV.js} +4 -4
  122. package/dist/chunk-WB3QM6PP.js +5440 -0
  123. package/dist/chunk-WB3QM6PP.js.map +1 -0
  124. package/dist/chunk-YB4IBW3M.js +96 -0
  125. package/dist/chunk-YB4IBW3M.js.map +1 -0
  126. package/dist/chunk-YEUYKR62.js +72 -0
  127. package/dist/chunk-YEUYKR62.js.map +1 -0
  128. package/dist/chunk-YJOGUXGP.js +634 -0
  129. package/dist/chunk-YJOGUXGP.js.map +1 -0
  130. package/dist/chunk-YNHZHSSM.js +41 -0
  131. package/dist/chunk-YNHZHSSM.js.map +1 -0
  132. package/dist/chunk-YTURO7SI.js +979 -0
  133. package/dist/chunk-YTURO7SI.js.map +1 -0
  134. package/dist/chunk-ZXRAE55H.js +31 -0
  135. package/dist/chunk-ZXRAE55H.js.map +1 -0
  136. package/dist/cli-3BIBYHFK.js +473 -0
  137. package/dist/cli-3BIBYHFK.js.map +1 -0
  138. package/dist/cli-673OTRGE.js +28 -0
  139. package/dist/cli-673OTRGE.js.map +1 -0
  140. package/dist/cli-6HIDIFVT.js +1203 -0
  141. package/dist/cli-6HIDIFVT.js.map +1 -0
  142. package/dist/cli-6UB5N6CU.js +232 -0
  143. package/dist/cli-6UB5N6CU.js.map +1 -0
  144. package/dist/cli-LFP5ZGYS.js +346 -0
  145. package/dist/cli-LFP5ZGYS.js.map +1 -0
  146. package/dist/cli-MN7PYMBI.js +552 -0
  147. package/dist/cli-MN7PYMBI.js.map +1 -0
  148. package/dist/cli-PYPX6O6E.js +739 -0
  149. package/dist/cli-PYPX6O6E.js.map +1 -0
  150. package/dist/cli-RPM5PELX.js +626 -0
  151. package/dist/cli-RPM5PELX.js.map +1 -0
  152. package/dist/cli-VI7VHWNZ.js +423 -0
  153. package/dist/cli-VI7VHWNZ.js.map +1 -0
  154. package/dist/cli.d.ts +12 -2
  155. package/dist/cli.js +109 -7661
  156. package/dist/cli.js.map +1 -1
  157. package/dist/docmeta.js +15 -3
  158. package/dist/docmeta.js.map +1 -1
  159. package/dist/github-6QMYOHC3.js +27 -0
  160. package/dist/github-6QMYOHC3.js.map +1 -0
  161. package/dist/github-SXPGP5DB.js +32 -0
  162. package/dist/github-SXPGP5DB.js.map +1 -0
  163. package/dist/index.d.ts +65 -3
  164. package/dist/index.js +407 -337
  165. package/dist/index.js.map +1 -1
  166. package/dist/json-7WV7KL6H.js +17 -0
  167. package/dist/json-7WV7KL6H.js.map +1 -0
  168. package/dist/json-SY7KLNC7.js +35 -0
  169. package/dist/json-SY7KLNC7.js.map +1 -0
  170. package/dist/lint-ASMJLLPA.js +28 -0
  171. package/dist/lint-ASMJLLPA.js.map +1 -0
  172. package/dist/list-KZNVTNVC.js +31 -0
  173. package/dist/list-KZNVTNVC.js.map +1 -0
  174. package/dist/list-Q57YTFUQ.js +29 -0
  175. package/dist/list-Q57YTFUQ.js.map +1 -0
  176. package/dist/page-KSGV5RD4.js +41 -0
  177. package/dist/page-KSGV5RD4.js.map +1 -0
  178. package/dist/picker-3XF36MJF.js +14 -0
  179. package/dist/picker-3XF36MJF.js.map +1 -0
  180. package/dist/pretty-A5EGTN35.js +37 -0
  181. package/dist/pretty-A5EGTN35.js.map +1 -0
  182. package/dist/pretty-CXSDXNAS.js +43 -0
  183. package/dist/pretty-CXSDXNAS.js.map +1 -0
  184. package/dist/reporters-HUY7UXFS.js +42 -0
  185. package/dist/reporters-HUY7UXFS.js.map +1 -0
  186. package/dist/reporters-K2VUKSAK.js +71 -0
  187. package/dist/reporters-K2VUKSAK.js.map +1 -0
  188. package/dist/reporters-M6LJ2IYU.js +21 -0
  189. package/dist/reporters-M6LJ2IYU.js.map +1 -0
  190. package/dist/run-3DYJNRIG.js +33 -0
  191. package/dist/run-3DYJNRIG.js.map +1 -0
  192. package/dist/term-BIQUPMOR.js +1592 -0
  193. package/dist/term-BIQUPMOR.js.map +1 -0
  194. package/dist/types-Y6TXHM7M.js +10 -0
  195. package/dist/types-Y6TXHM7M.js.map +1 -0
  196. package/dist/validate-53RKM2XG.js +16 -0
  197. package/dist/validate-53RKM2XG.js.map +1 -0
  198. package/package.json +1 -1
  199. package/plugin/manni/.claude-plugin/plugin.json +9 -0
  200. package/plugin/manni/hooks/hooks.json +69 -0
  201. package/plugin/manni/hooks/manni.mjs +157 -0
  202. package/plugin/manni/skills/check/SKILL.md +20 -0
  203. package/plugin/manni/skills/evals/SKILL.md +27 -0
  204. package/plugin/manni/skills/fix/SKILL.md +56 -0
  205. package/plugin/manni/skills/setup/SKILL.md +41 -0
  206. package/dist/batch-A5HZKYIW.js +0 -18
  207. package/dist/calibrate-S5K6QHUY.js +0 -13
  208. package/dist/capture-OZEZDABQ.js +0 -15
  209. package/dist/chunk-3R23C5DT.js.map +0 -1
  210. package/dist/chunk-CFDUZRM2.js.map +0 -1
  211. package/dist/chunk-G5CM2VGQ.js.map +0 -1
  212. package/dist/chunk-KJR7OVDX.js.map +0 -1
  213. package/dist/chunk-V4KUVE47.js +0 -27170
  214. package/dist/chunk-V4KUVE47.js.map +0 -1
  215. package/dist/chunk-ZQBTK3DO.js +0 -26518
  216. package/dist/chunk-ZQBTK3DO.js.map +0 -1
  217. package/dist/picker-6HRMETE7.js +0 -12
  218. package/plugin/tracevals/.claude-plugin/plugin.json +0 -9
  219. package/plugin/tracevals/hooks/hooks.json +0 -17
  220. /package/dist/{batch-A5HZKYIW.js.map → batch-GFNLTGOH.js.map} +0 -0
  221. /package/dist/{calibrate-S5K6QHUY.js.map → build-COYIQ25L.js.map} +0 -0
  222. /package/dist/{capture-OZEZDABQ.js.map → calibrate-MDBLJKEE.js.map} +0 -0
  223. /package/dist/{picker-6HRMETE7.js.map → capture-LRML2PKV.js.map} +0 -0
  224. /package/dist/{chunk-5HNHEUD5.js.map → chunk-QQUKGCAJ.js.map} +0 -0
  225. /package/dist/{chunk-HAPTXWU2.js.map → chunk-UQISLDAV.js.map} +0 -0
@@ -1,139 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- DocmetaError,
4
- FAMILY_CONFIG_NAMES,
5
- META_CONTEXT,
3
+ configDir
4
+ } from "./chunk-4TSWU2SU.js";
5
+ import {
6
+ TracevalsError
7
+ } from "./chunk-UKZNLVJW.js";
8
+ import {
9
+ EXECUTION_GRANTS,
10
+ configuredGrants,
11
+ isExecutionGrant,
12
+ unknownGrantsMessage
13
+ } from "./chunk-YNHZHSSM.js";
14
+ import {
15
+ metaProvenanceEntries
16
+ } from "./chunk-A5ULMVHQ.js";
17
+ import {
6
18
  __default4 as __default,
19
+ extractFrontmatter
20
+ } from "./chunk-57NEQRVO.js";
21
+ import {
22
+ FAMILY_CONFIG_NAMES,
7
23
  assertKnownProvider,
8
- decryptValue,
9
- encryptValue,
10
- escapePointerSegment,
11
- extractFrontmatter,
12
- extractorByName,
13
- extractorForExtension,
14
24
  findConfigFileSync,
15
- isEncryptedValue,
16
- keyHome,
17
- lazyKey,
18
- loadExternalMetadata,
19
- loadMetaSection,
20
- marksValidator,
21
- memberOf,
22
- mergeWithMarks,
23
- metaProvenanceEntries,
24
- pageMarks,
25
- pageSchemaSet,
26
- readConfigFileSync,
27
- rebaseConfigSchemaRefs,
28
- schemaTrustRoot,
29
- supportedExtensions,
30
- withValueAt
31
- } from "./chunk-ZQBTK3DO.js";
32
- import {
33
- TracevalsError,
34
- configDir
35
- } from "./chunk-3R23C5DT.js";
25
+ readConfigFileSync
26
+ } from "./chunk-Q35YIDBV.js";
36
27
  import {
37
28
  errorMessage
38
- } from "./chunk-IOYXPBCL.js";
39
-
40
- // src/meta/core/reencrypt.ts
41
- import { extname } from "node:path";
42
- var CITATIONS_KEY = "citations";
43
- var NOT_OURS = "does not decrypt under the current key";
44
- var READ_ONLY = "this format cannot be written";
45
- function reencryptMetadata(page, opts) {
46
- const extractor = page.format !== void 0 ? extractorByName(page.format) : extractorForExtension(extname(page.file));
47
- if (!extractor) {
48
- throw new DocmetaError(
49
- page.format !== void 0 ? `Unknown format "${page.format}" for "${page.file}".` : `Unsupported file type "${extname(page.file)}" for "${page.file}". Supported: ${supportedExtensions().join(", ")}.`
50
- );
51
- }
52
- return reencryptWith(extractor, page, opts);
53
- }
54
- function tokensIn(data) {
55
- const found = [];
56
- const walk = (node, pointer, top) => {
57
- if (isEncryptedValue(node)) {
58
- found.push({ pointer, top, token: node });
59
- return;
60
- }
61
- if (Array.isArray(node)) {
62
- node.forEach((item, i) => {
63
- walk(item, `${pointer}/${String(i)}`, top);
64
- });
65
- return;
66
- }
67
- if (typeof node === "object" && node !== null && !(node instanceof Date)) {
68
- for (const [k, v] of Object.entries(node)) {
69
- walk(v, `${pointer}/${escapePointerSegment(k)}`, top);
70
- }
71
- }
72
- };
73
- for (const [key, value] of Object.entries(data)) {
74
- if (key === CITATIONS_KEY) continue;
75
- walk(value, `/${escapePointerSegment(key)}`, key);
76
- }
77
- return found;
78
- }
79
- function reencryptData(data, opts) {
80
- const writable = opts.writable ?? true;
81
- const rewritten = [];
82
- const skipped = [];
83
- const found = tokensIn(data);
84
- for (const { pointer, token } of found) {
85
- const opened = decryptValue(token, opts.fromKey, META_CONTEXT);
86
- if (opened.ok) {
87
- if (!writable) {
88
- skipped.push({ pointer, message: READ_ONLY });
89
- continue;
90
- }
91
- rewritten.push({
92
- pointer,
93
- from: token,
94
- to: encryptValue(opened.value, opts.toKey, META_CONTEXT)
95
- });
96
- continue;
97
- }
98
- if (decryptValue(token, opts.toKey, META_CONTEXT).ok) continue;
99
- skipped.push({ pointer, message: NOT_OURS });
100
- }
101
- if (rewritten.length === 0) return { data, rewritten, skipped, keys: [] };
102
- let next = data;
103
- for (const r of rewritten) next = withValueAt(next, r.pointer, r.to);
104
- const done = new Set(rewritten.map((r) => r.pointer));
105
- const keys = [...new Set(found.filter((f) => done.has(f.pointer)).map((f) => f.top))];
106
- return { data: next, rewritten, skipped, keys };
107
- }
108
- function reencryptWith(extractor, page, opts) {
109
- const read = (content2) => {
110
- try {
111
- return extractor.extract(content2, page.file).data;
112
- } catch (err) {
113
- if (err instanceof DocmetaError) throw err;
114
- throw new DocmetaError(`${page.file}: ${errorMessage(err)}`);
115
- }
116
- };
117
- const data = read(page.content);
118
- const apply = extractor.apply;
119
- const plan = reencryptData(data, { ...opts, writable: apply !== void 0 });
120
- const { rewritten, skipped } = plan;
121
- if (rewritten.length === 0 || apply === void 0) {
122
- return { content: page.content, rewritten: [], skipped };
123
- }
124
- const patch = {};
125
- for (const top of plan.keys) patch[top] = plan.data[top];
126
- const content = apply(page.content, patch, { filePath: page.file });
127
- const reread = tokensIn(read(content));
128
- for (const r of rewritten) {
129
- if (!reread.some((f) => f.pointer === r.pointer && f.token === r.to)) {
130
- throw new DocmetaError(
131
- `${page.file}: the ${extractor.name} writer did not keep ${r.pointer}; nothing was re-encrypted.`
132
- );
133
- }
134
- }
135
- return { content, rewritten, skipped };
136
- }
29
+ } from "./chunk-G3T47CFV.js";
137
30
 
138
31
  // src/tracevals/calibrate/labels.ts
139
32
  import { readFile } from "node:fs/promises";
@@ -530,35 +423,6 @@ function compileRedactPatterns(sources) {
530
423
  var MANIFEST_VERSION = 1;
531
424
  var DEFAULT_CAPTURE_DIR = ".manni/tracevals/sessions";
532
425
 
533
- // src/shared/execution.ts
534
- var EXECUTION_GRANTS = [
535
- "frontmatter-commands"
536
- ];
537
- function isExecutionGrant(value) {
538
- return EXECUTION_GRANTS.includes(value);
539
- }
540
- function unknownGrantsMessage(unknown) {
541
- return `unknown execution grant${unknown.length > 1 ? "s" : ""} ${unknown.map((u) => `"${u}"`).join(", ")}; expected one of ${EXECUTION_GRANTS.join(" | ")}`;
542
- }
543
- function allowExecutionMessage(value) {
544
- return `--allow-execution must be one of ${EXECUTION_GRANTS.join(" | ")}, got "${value}"`;
545
- }
546
- var NOT_GRANTED_REASON = "frontmatter commands not granted (execution.allow: [frontmatter-commands])";
547
- function grantsFor(configured, flags = {}) {
548
- if (flags.execution === false) return /* @__PURE__ */ new Set();
549
- const named = flags.allowExecution;
550
- return new Set(
551
- named === void 0 ? configured : configured.filter((g) => named.includes(g))
552
- );
553
- }
554
- function configuredGrants(section) {
555
- if (!section || typeof section !== "object") return [];
556
- const execution = section.execution;
557
- if (!execution || typeof execution !== "object") return [];
558
- const allow = execution.allow;
559
- return Array.isArray(allow) ? allow.filter((g) => typeof g === "string") : [];
560
- }
561
-
562
426
  // src/tracevals/core/config.ts
563
427
  var configSchema = config_schema_default;
564
428
  var DEFAULT_CONFIG_FILENAME = FAMILY_CONFIG_NAMES[0] ?? "manni.config.yaml";
@@ -582,7 +446,7 @@ function camelCaseHint(key, parentSchema) {
582
446
  function movedProviderHint(instancePath, keyword) {
583
447
  return instancePath === "/provider" && keyword === "type" ? `; "provider" is now a provider name; per-provider settings moved to the top-level providers: map` : "";
584
448
  }
585
- function parseConfig2(raw, file = {}) {
449
+ function parseConfig(raw, file = {}) {
586
450
  const source = file.source ?? DEFAULT_CONFIG_FILENAME;
587
451
  const unknownGrants = configuredGrants(raw).filter((g) => !isExecutionGrant(g));
588
452
  if (unknownGrants.length > 0) {
@@ -676,14 +540,14 @@ function parseConfig2(raw, file = {}) {
676
540
  }
677
541
  async function discoverConfig(dir = process.cwd(), lookup = {}) {
678
542
  if (lookup.noConfig === true) {
679
- return { config: parseConfig2({}), dir, collections: [] };
543
+ return { config: parseConfig({}), dir, collections: [] };
680
544
  }
681
545
  const file = await Promise.resolve().then(
682
546
  () => lookup.configPath === void 0 ? findConfigFileSync(dir, CONFIG_FILE) : readConfigFileSync(lookup.configPath, dir, CONFIG_FILE)
683
547
  );
684
- if (file === null) return { config: parseConfig2({}), dir, collections: [] };
548
+ if (file === null) return { config: parseConfig({}), dir, collections: [] };
685
549
  return {
686
- config: parseConfig2(file.value ?? {}, {
550
+ config: parseConfig(file.value ?? {}, {
687
551
  source: file.source,
688
552
  ...file.providers !== void 0 ? { providers: file.providers } : {}
689
553
  }),
@@ -692,7 +556,7 @@ async function discoverConfig(dir = process.cwd(), lookup = {}) {
692
556
  path: file.path
693
557
  };
694
558
  }
695
- async function loadConfig2(dir = process.cwd(), lookup = {}) {
559
+ async function loadConfig(dir = process.cwd(), lookup = {}) {
696
560
  return (await discoverConfig(dir, lookup)).config;
697
561
  }
698
562
 
@@ -701,7 +565,7 @@ import { createHash } from "node:crypto";
701
565
  import { mkdir, readFile as readFile2, writeFile } from "node:fs/promises";
702
566
  import {
703
567
  dirname as dirname2,
704
- extname as extname2,
568
+ extname,
705
569
  isAbsolute,
706
570
  join,
707
571
  relative,
@@ -731,7 +595,7 @@ function manifestPathFor(dir, sessionId) {
731
595
  return join(dir, `${safeSessionId(sessionId)}.json`);
732
596
  }
733
597
  function siblingManifestPath(tracePath) {
734
- const ext = extname2(tracePath);
598
+ const ext = extname(tracePath);
735
599
  const stem = ext === "" ? tracePath : tracePath.slice(0, -ext.length);
736
600
  return `${stem}.manifest.json`;
737
601
  }
@@ -851,67 +715,6 @@ function checkContent(manifest, actual) {
851
715
  };
852
716
  }
853
717
 
854
- // src/meta/core/page-view.ts
855
- async function metaPageView(opts) {
856
- const { cwd } = opts;
857
- const loaded = opts.noConfig === true ? null : await loadMetaSection(opts.configPath, cwd);
858
- const config = loaded ? rebaseConfigSchemaRefs(loaded.config, loaded.dir, cwd) : null;
859
- const configDir2 = loaded?.dir ?? cwd;
860
- const collections = loaded?.collections ?? [];
861
- const validator = marksValidator({
862
- config,
863
- cwd,
864
- ...loaded ? { configDir: loaded.dir } : {}
865
- })();
866
- const marksOptions = {
867
- validator,
868
- config,
869
- cwd,
870
- trustRoot: schemaTrustRoot(cwd, loaded?.dir)
871
- };
872
- const membersOf = (label) => memberOf(collections, configDir2, cwd, label);
873
- const index = await loadExternalMetadata(collections, {
874
- configDir: configDir2,
875
- base: cwd,
876
- offline: config?.offline ?? false,
877
- ...opts.pages === void 0 ? {} : { pages: opts.pages }
878
- });
879
- const joinKey = lazyKey(loaded?.configFile, void 0);
880
- const marks = pageMarks(marksOptions);
881
- const ctx = {
882
- cwd,
883
- base: cwd,
884
- noConfig: loaded === null,
885
- config,
886
- ...loaded ? { configDir: loaded.dir, configPath: loaded.path } : {},
887
- ...loaded?.configFile !== void 0 ? { configFile: loaded.configFile } : {},
888
- collections,
889
- declaredCollections: collections,
890
- targets: [],
891
- validator
892
- };
893
- return {
894
- validator,
895
- refsFor: (label, data) => pageSchemaSet(marksOptions, label, data, membersOf(label)),
896
- merge: (label, extracted) => mergeWithMarks(label, extracted, index, membersOf(label), cwd, {
897
- encryptionKey: joinKey,
898
- marks
899
- }),
900
- home: (label, data, key) => keyHome(ctx, label, data, key)
901
- };
902
- }
903
-
904
- // src/meta/core/declared-at.ts
905
- function declaredAt(label, pointer, metadata) {
906
- const at = metadata.locate?.(pointer);
907
- if (at !== void 0) {
908
- return { file: at.file, ...at.line === void 0 ? {} : { line: at.line } };
909
- }
910
- if (!metadata.extracted.present) return { file: label };
911
- const line = metadata.extracted.lineFor(pointer);
912
- return { file: label, ...line === void 0 ? {} : { line } };
913
- }
914
-
915
718
  // src/tracevals/trace/availability.ts
916
719
  function newAvailability() {
917
720
  return { recorded: false, skills: [], agents: [], tools: [], mcpServers: [] };
@@ -1881,17 +1684,6 @@ function anchorList(raw) {
1881
1684
  }
1882
1685
 
1883
1686
  export {
1884
- reencryptMetadata,
1885
- reencryptData,
1886
- metaPageView,
1887
- declaredAt,
1888
- EXECUTION_GRANTS,
1889
- isExecutionGrant,
1890
- unknownGrantsMessage,
1891
- allowExecutionMessage,
1892
- NOT_GRANTED_REASON,
1893
- grantsFor,
1894
- configuredGrants,
1895
1687
  REDACTION_PATTERNS,
1896
1688
  CUSTOM_PLACEHOLDER,
1897
1689
  makeRedactor,
@@ -1904,9 +1696,9 @@ export {
1904
1696
  loadLabels,
1905
1697
  DEFAULT_CONFIG_FILENAME,
1906
1698
  CONFIG_SECTION_KEY,
1907
- parseConfig2 as parseConfig,
1699
+ parseConfig,
1908
1700
  discoverConfig,
1909
- loadConfig2 as loadConfig,
1701
+ loadConfig,
1910
1702
  newAvailability,
1911
1703
  availableAt,
1912
1704
  offeredNames,
@@ -1938,4 +1730,4 @@ export {
1938
1730
  ARTIFACT_EVALS_SCHEMA_ID,
1939
1731
  extractEvals
1940
1732
  };
1941
- //# sourceMappingURL=chunk-CFDUZRM2.js.map
1733
+ //# sourceMappingURL=chunk-NXV7WE2D.js.map