@hawkeyexl/manni 4.0.2 → 4.1.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 +5 -4
- package/dist/{chunk-TK5PYPFU.js → chunk-I57KBF45.js} +1096 -755
- package/dist/chunk-I57KBF45.js.map +1 -0
- package/dist/{chunk-KSH7XS2R.js → chunk-JODRT4NF.js} +5 -7
- package/dist/chunk-JODRT4NF.js.map +1 -0
- package/dist/{chunk-L26XRFBJ.js → chunk-S3NDEIOW.js} +6022 -245
- package/dist/chunk-S3NDEIOW.js.map +1 -0
- package/dist/cli.js +470 -38
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +1815 -240
- package/dist/index.js +139 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
- package/dist/chunk-KSH7XS2R.js.map +0 -1
- package/dist/chunk-L26XRFBJ.js.map +0 -1
- package/dist/chunk-TK5PYPFU.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,55 +3,114 @@ import {
|
|
|
3
3
|
BLOCK_KINDS,
|
|
4
4
|
BUILTIN_SOURCE,
|
|
5
5
|
BUILT_IN_DEFAULTS,
|
|
6
|
+
DEFAULT_CONFIG_FILENAME,
|
|
7
|
+
DocevalsError,
|
|
8
|
+
EVAL_KEYS,
|
|
9
|
+
EXTERNAL_KEYS,
|
|
10
|
+
FILL_PROMPT_VERSION,
|
|
11
|
+
FILL_SYSTEM_PROMPT,
|
|
12
|
+
FRONTMATTER_SCHEMA_ID,
|
|
13
|
+
FillCache,
|
|
14
|
+
GOLDEN_DIR,
|
|
6
15
|
KeyError,
|
|
7
16
|
LINT_JOBS,
|
|
8
17
|
LINT_TOOLS,
|
|
9
18
|
LintError,
|
|
19
|
+
PROPOSAL_SCHEMA,
|
|
20
|
+
REPORT_FORMATS as REPORT_FORMATS2,
|
|
10
21
|
RULE_ID_PREFIX2 as RULE_ID_PREFIX,
|
|
22
|
+
SEEDED_GOLDEN_FILE,
|
|
11
23
|
STDIN_LABEL,
|
|
24
|
+
SUMMARY_FORMATS,
|
|
12
25
|
TOOLS_BY_JOB,
|
|
13
26
|
TOOL_NAME,
|
|
27
|
+
appendPageEvals,
|
|
28
|
+
buildFillUser,
|
|
29
|
+
cacheKey,
|
|
14
30
|
cite_exports,
|
|
15
31
|
classifyRef as classifyRef2,
|
|
16
32
|
clearMatcherCache,
|
|
17
33
|
clearPatternCache,
|
|
18
34
|
clearTemplateCaches,
|
|
35
|
+
discoverPages,
|
|
36
|
+
fillCacheKey,
|
|
37
|
+
frontmatterSchema,
|
|
38
|
+
graderFor,
|
|
19
39
|
headingMatches,
|
|
20
40
|
isLintTool,
|
|
41
|
+
isValidProposal,
|
|
21
42
|
isWildcard,
|
|
43
|
+
judgeCacheBody,
|
|
22
44
|
listBuiltins as listBuiltins2,
|
|
23
45
|
listFormats,
|
|
46
|
+
listGraderKinds,
|
|
47
|
+
listReviews,
|
|
24
48
|
loadConfig as loadConfig2,
|
|
49
|
+
loadConfig2 as loadConfig3,
|
|
50
|
+
loadExternalReader,
|
|
51
|
+
loadGoldenCases,
|
|
25
52
|
loadTemplate,
|
|
26
53
|
loadTemplateFile,
|
|
54
|
+
makeGenerateScripts,
|
|
55
|
+
makeJudge,
|
|
56
|
+
makeProvider,
|
|
27
57
|
matchSections,
|
|
28
58
|
occurrenceRange,
|
|
29
59
|
parseConfig as parseConfig2,
|
|
60
|
+
parseConfig2 as parseConfig3,
|
|
61
|
+
parseFormat,
|
|
30
62
|
parserByName,
|
|
31
63
|
parserForExtension,
|
|
64
|
+
providerSpecFor,
|
|
65
|
+
readPage,
|
|
66
|
+
readTarget,
|
|
32
67
|
rebaseConfig,
|
|
33
68
|
reencryptMetadata,
|
|
69
|
+
registerGrader,
|
|
34
70
|
render as render2,
|
|
71
|
+
render2 as render3,
|
|
72
|
+
renderCalibration,
|
|
73
|
+
renderFill as renderFill2,
|
|
35
74
|
renderGithub,
|
|
36
75
|
renderJson,
|
|
37
76
|
renderJunit as renderJunit2,
|
|
77
|
+
renderList,
|
|
38
78
|
renderPretty,
|
|
79
|
+
renderReviews,
|
|
39
80
|
renderSarif as renderSarif2,
|
|
40
81
|
renderTemplates,
|
|
41
82
|
renderTools,
|
|
42
83
|
resolveExtends,
|
|
43
84
|
resolveLintRun,
|
|
85
|
+
resolvePage,
|
|
86
|
+
resolvePages,
|
|
87
|
+
resolveProviderIdentity,
|
|
44
88
|
ruleId,
|
|
45
89
|
ruleName,
|
|
90
|
+
runCalibrate,
|
|
91
|
+
runEvals,
|
|
92
|
+
runFill as runFill2,
|
|
93
|
+
runGenerate,
|
|
94
|
+
runInit,
|
|
46
95
|
runKeyRotate,
|
|
47
96
|
runKeySet,
|
|
48
97
|
runLint,
|
|
98
|
+
runList,
|
|
99
|
+
runPromote,
|
|
100
|
+
runReview,
|
|
101
|
+
runRun,
|
|
49
102
|
runTemplates,
|
|
50
103
|
runTools,
|
|
104
|
+
scriptLocationFor,
|
|
105
|
+
seedGoldenCases,
|
|
106
|
+
stripFrontmatterBlock,
|
|
51
107
|
supportedExtensions as supportedExtensions2,
|
|
108
|
+
updateConfigEval,
|
|
109
|
+
updatePageEval,
|
|
52
110
|
validateDocument,
|
|
53
|
-
validateSections
|
|
54
|
-
|
|
111
|
+
validateSections,
|
|
112
|
+
withExternalMetadata
|
|
113
|
+
} from "./chunk-S3NDEIOW.js";
|
|
55
114
|
import {
|
|
56
115
|
BinMissing,
|
|
57
116
|
COMMON_FORMATS,
|
|
@@ -177,7 +236,80 @@ import {
|
|
|
177
236
|
valueOf,
|
|
178
237
|
vendorFileName,
|
|
179
238
|
writeFileAtomic
|
|
180
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-I57KBF45.js";
|
|
240
|
+
|
|
241
|
+
// src/docevals/index.ts
|
|
242
|
+
var docevals_exports = {};
|
|
243
|
+
__export(docevals_exports, {
|
|
244
|
+
DEFAULT_CONFIG_FILENAME: () => DEFAULT_CONFIG_FILENAME,
|
|
245
|
+
DocevalsError: () => DocevalsError,
|
|
246
|
+
EVAL_KEYS: () => EVAL_KEYS,
|
|
247
|
+
EXTERNAL_KEYS: () => EXTERNAL_KEYS,
|
|
248
|
+
FILL_PROMPT_VERSION: () => FILL_PROMPT_VERSION,
|
|
249
|
+
FILL_SYSTEM_PROMPT: () => FILL_SYSTEM_PROMPT,
|
|
250
|
+
FRONTMATTER_SCHEMA_ID: () => FRONTMATTER_SCHEMA_ID,
|
|
251
|
+
FillCache: () => FillCache,
|
|
252
|
+
GOLDEN_DIR: () => GOLDEN_DIR,
|
|
253
|
+
MockProvider: () => MockProvider,
|
|
254
|
+
PROPOSAL_SCHEMA: () => PROPOSAL_SCHEMA,
|
|
255
|
+
REPORT_FORMATS: () => REPORT_FORMATS2,
|
|
256
|
+
SEEDED_GOLDEN_FILE: () => SEEDED_GOLDEN_FILE,
|
|
257
|
+
SUMMARY_FORMATS: () => SUMMARY_FORMATS,
|
|
258
|
+
appendPageEvals: () => appendPageEvals,
|
|
259
|
+
buildFillUser: () => buildFillUser,
|
|
260
|
+
cacheKey: () => cacheKey,
|
|
261
|
+
computeConsensus: () => computeConsensus,
|
|
262
|
+
discoverPages: () => discoverPages,
|
|
263
|
+
fillCacheKey: () => fillCacheKey,
|
|
264
|
+
frontmatterSchema: () => frontmatterSchema,
|
|
265
|
+
graderFor: () => graderFor,
|
|
266
|
+
isValidProposal: () => isValidProposal,
|
|
267
|
+
judgeCacheBody: () => judgeCacheBody,
|
|
268
|
+
listGraderKinds: () => listGraderKinds,
|
|
269
|
+
listReviews: () => listReviews,
|
|
270
|
+
loadConfig: () => loadConfig2,
|
|
271
|
+
loadExternalReader: () => loadExternalReader,
|
|
272
|
+
loadGoldenCases: () => loadGoldenCases,
|
|
273
|
+
makeGenerateScripts: () => makeGenerateScripts,
|
|
274
|
+
makeJudge: () => makeJudge,
|
|
275
|
+
makeProvider: () => makeProvider,
|
|
276
|
+
mockVerdict: () => mockVerdict,
|
|
277
|
+
parseConfig: () => parseConfig2,
|
|
278
|
+
parseFormat: () => parseFormat,
|
|
279
|
+
providerSpecFor: () => providerSpecFor,
|
|
280
|
+
readPage: () => readPage,
|
|
281
|
+
readTarget: () => readTarget,
|
|
282
|
+
registerGrader: () => registerGrader,
|
|
283
|
+
render: () => render2,
|
|
284
|
+
renderCalibration: () => renderCalibration,
|
|
285
|
+
renderFill: () => renderFill2,
|
|
286
|
+
renderList: () => renderList,
|
|
287
|
+
renderReviews: () => renderReviews,
|
|
288
|
+
resolvePage: () => resolvePage,
|
|
289
|
+
resolvePages: () => resolvePages,
|
|
290
|
+
resolveProviderIdentity: () => resolveProviderIdentity,
|
|
291
|
+
runCalibrate: () => runCalibrate,
|
|
292
|
+
runEvals: () => runEvals,
|
|
293
|
+
runFill: () => runFill2,
|
|
294
|
+
runGenerate: () => runGenerate,
|
|
295
|
+
runInit: () => runInit,
|
|
296
|
+
runList: () => runList,
|
|
297
|
+
runPromote: () => runPromote,
|
|
298
|
+
runReview: () => runReview,
|
|
299
|
+
runRun: () => runRun,
|
|
300
|
+
scriptLocationFor: () => scriptLocationFor,
|
|
301
|
+
seedGoldenCases: () => seedGoldenCases,
|
|
302
|
+
stripFrontmatterBlock: () => stripFrontmatterBlock,
|
|
303
|
+
updateConfigEval: () => updateConfigEval,
|
|
304
|
+
updatePageEval: () => updatePageEval,
|
|
305
|
+
withExternalMetadata: () => withExternalMetadata,
|
|
306
|
+
zoneFor: () => zoneFor
|
|
307
|
+
});
|
|
308
|
+
import { computeConsensus, zoneFor } from "@hawkeyexl/inference";
|
|
309
|
+
import {
|
|
310
|
+
MockProvider,
|
|
311
|
+
mockVerdict
|
|
312
|
+
} from "@hawkeyexl/inference";
|
|
181
313
|
|
|
182
314
|
// src/lint/index.ts
|
|
183
315
|
var lint_exports = {};
|
|
@@ -200,17 +332,17 @@ __export(lint_exports, {
|
|
|
200
332
|
isWildcard: () => isWildcard,
|
|
201
333
|
listBuiltins: () => listBuiltins2,
|
|
202
334
|
listFormats: () => listFormats,
|
|
203
|
-
loadConfig: () =>
|
|
335
|
+
loadConfig: () => loadConfig3,
|
|
204
336
|
loadTemplate: () => loadTemplate,
|
|
205
337
|
loadTemplateFile: () => loadTemplateFile,
|
|
206
338
|
matchSections: () => matchSections,
|
|
207
339
|
occurrenceRange: () => occurrenceRange,
|
|
208
340
|
palette: () => palette,
|
|
209
|
-
parseConfig: () =>
|
|
341
|
+
parseConfig: () => parseConfig3,
|
|
210
342
|
parserByName: () => parserByName,
|
|
211
343
|
parserForExtension: () => parserForExtension,
|
|
212
344
|
rebaseConfig: () => rebaseConfig,
|
|
213
|
-
render: () =>
|
|
345
|
+
render: () => render3,
|
|
214
346
|
renderGithub: () => renderGithub,
|
|
215
347
|
renderJson: () => renderJson,
|
|
216
348
|
renderJunit: () => renderJunit2,
|
|
@@ -297,6 +429,7 @@ export {
|
|
|
297
429
|
deriveFromCommands,
|
|
298
430
|
deriveFromReviews,
|
|
299
431
|
deriveMetadata,
|
|
432
|
+
docevals_exports as docevals,
|
|
300
433
|
externalMetadataJoin,
|
|
301
434
|
externalMetadataPointer,
|
|
302
435
|
externalMetadataUrlProblem,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lint/index.ts","../src/key/index.ts"],"sourcesContent":["/** Programmatic API for manni lint. */\nimport { clearTemplateCaches } from \"./core/template-registry.js\";\nimport { clearMatcherCache } from \"./core/resolve-template.js\";\nimport { clearPatternCache } from \"./rules/index.js\";\n\n/**\n * Drop every process-lifetime cache: parsed built-ins, fetched template files,\n * compiled override globs, and compiled heading patterns.\n *\n * A CLI run never needs this - it lints one docset and exits, and the caches\n * are what stop a tree of one doctype from re-reading the same template per\n * page. A long-lived host is the different case: the maps grow with the number\n * of distinct refs and patterns seen, and a cached remote template is served\n * for the life of the process, so one republished upstream is never picked up.\n * Call this between runs, or when a template may have changed underneath.\n */\nexport function clearCaches(): void {\n clearTemplateCaches();\n clearMatcherCache();\n clearPatternCache();\n}\n\nexport { runLint, STDIN_LABEL } from \"./commands/lint.js\";\nexport type {\n LintOptions,\n LintRun,\n LintSummary,\n LintFileResult,\n} from \"./commands/lint.js\";\nexport { runTemplates, BUILTIN_SOURCE } from \"./commands/templates.js\";\nexport type {\n TemplateInfo,\n TemplatesInfo,\n TemplatesOptions,\n} from \"./commands/templates.js\";\nexport { runTools, BUILT_IN_DEFAULTS } from \"./commands/tools.js\";\nexport type { FormatInfo, ToolInfo, ToolsOptions } from \"./commands/tools.js\";\nexport {\n LINT_JOBS,\n LINT_TOOLS,\n TOOLS_BY_JOB,\n isLintTool,\n loadConfig,\n parseConfig,\n rebaseConfig,\n resolveLintRun,\n} from \"./core/config.js\";\nexport type {\n LintConfig,\n LintJob,\n LintJobConfig,\n LintRunOptions,\n LintTool,\n ResolvedLintRun,\n} from \"./core/config.js\";\nexport { validateDocument, validateSections } from \"./core/validator.js\";\nexport { matchSections } from \"./core/match.js\";\nexport type { Match, MatchResult } from \"./core/match.js\";\nexport {\n BLOCK_KINDS,\n headingMatches,\n isWildcard,\n occurrenceRange,\n} from \"./core/template.js\";\nexport type {\n AdmonitionsRule,\n AttributesRule,\n BlockKind,\n BlockRule,\n CodeBlocksRule,\n ElementsRule,\n HeadingRule,\n ImagesRule,\n ListItemsRule,\n ListsRule,\n Occurrences,\n ParagraphsRule,\n Rule,\n TablesRule,\n Template,\n TemplateFile,\n} from \"./core/template.js\";\nexport {\n listBuiltins,\n loadTemplate,\n loadTemplateFile,\n resolveExtends,\n classifyRef,\n} from \"./core/template-registry.js\";\nexport type {\n BuiltinInfo,\n LoadTemplateOptions,\n RefKind,\n TemplateResolver,\n} from \"./core/template-registry.js\";\n// Targets resolve through the family's walker (`src/meta/internal.ts`), which\n// is what makes `--ext`, `--exclude`, `.gitignore` handling and `--allow-empty`\n// mean the same thing here as they do for `meta` and `cite`.\nexport { STDIN_TOKEN } from \"../meta/internal.js\";\nexport {\n listFormats,\n parserByName,\n parserForExtension,\n supportedExtensions,\n} from \"./parsers/index.js\";\nexport {\n render,\n renderPretty,\n renderJson,\n renderGithub,\n renderJunit,\n renderTemplates,\n renderTools,\n} from \"./reporters/index.js\";\nexport type {\n ReportFormat,\n ReportOptions,\n ListFormat,\n} from \"./reporters/index.js\";\nexport { renderSarif } from \"./reporters/sarif.js\";\nexport type { SarifOptions } from \"./reporters/sarif.js\";\n// A finding's durable identity, so a caller filing or correlating findings\n// spells the id the same way every reporter does.\nexport { RULE_ID_PREFIX, TOOL_NAME, ruleId, ruleName } from \"./core/rule-id.js\";\n// Colour is the family's decision, made once in `src/shared/color.js`. These\n// are re-exported here so a library caller building lint's reports does not\n// have to reach for another tool's entry point to turn ANSI on or off.\nexport { palette, shouldColor } from \"../shared/color.js\";\nexport * from \"./types.js\";\n","/**\n * The key domain's programmatic API, exported from the package as the `key`\n * namespace: `import { key } from \"@hawkeyexl/manni\"`. The command cores, and\n * the family's encryption primitives a caller needs beside them.\n */\nexport * from \"./types.js\";\nexport { KeyError } from \"./errors.js\";\nexport { runKeySet } from \"./commands/set.js\";\nexport { runKeyRotate } from \"./commands/rotate.js\";\nexport { decryptValue, encryptValue, isEncryptedValue } from \"../shared/encryption.js\";\nexport type { EncryptionContext } from \"../shared/encryption.js\";\nexport { resolveEncryptionKey } from \"../shared/encryption-key.js\";\nexport type { KeySource, ResolvedKey } from \"../shared/encryption-key.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,sBAAAC;AAAA,EAAA;AAAA,oBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA,gBAAAC;AAAA,EAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAC;AAAA,EAAA;AAAA;AAAA;AAgBO,SAAS,cAAoB;AAClC,sBAAoB;AACpB,oBAAkB;AAClB,oBAAkB;AACpB;;;ACpBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":["classifyRef","listBuiltins","loadConfig","parseConfig","render","renderJunit","renderSarif","supportedExtensions"]}
|
|
1
|
+
{"version":3,"sources":["../src/docevals/index.ts","../src/lint/index.ts","../src/key/index.ts"],"sourcesContent":["/** Programmatic API for manni docevals. */\nexport { loadConfig, parseConfig, DEFAULT_CONFIG_FILENAME } from \"./core/config.js\";\nexport type { DocevalsConfig, EvalDef, SuiteDef, ProviderName } from \"./core/config.js\";\nexport { discoverPages, readPage, stripFrontmatterBlock } from \"./core/discover.js\";\nexport type { PageFile } from \"./core/discover.js\";\nexport {\n loadExternalReader,\n withExternalMetadata,\n EVAL_KEYS,\n EXTERNAL_KEYS,\n} from \"./core/external.js\";\nexport type { ExternalMetadataReader, PageExternal } from \"./core/external.js\";\nexport { resolvePage, resolvePages } from \"./core/resolve.js\";\nexport type { ResolvedEval, ResolvedPagePlan, PageProblem } from \"./core/resolve.js\";\nexport { runList, renderList } from \"./commands/list.js\";\nexport type { ListOptions, ListRun } from \"./commands/list.js\";\nexport { runEvals } from \"./core/engine.js\";\nexport type {\n EngineReport,\n JudgeFn,\n JudgeOptions,\n RunOptions,\n RunProblem,\n} from \"./core/engine.js\";\nexport { runRun } from \"./commands/run.js\";\nexport type { RunCommandOptions } from \"./commands/run.js\";\n// From the library, not local copies: judge.ts calls the library's versions,\n// so re-exporting a second implementation here would let a consumer's\n// computeConsensus() diverge from what the judge actually ran — the drift this\n// extraction exists to end.\nexport { computeConsensus, zoneFor } from \"@hawkeyexl/inference\";\nexport type { ZoneThresholds } from \"@hawkeyexl/inference\";\nexport { makeJudge } from \"./judge/judge.js\";\nexport {\n makeProvider,\n providerSpecFor,\n resolveProviderIdentity,\n} from \"./judge/provider.js\";\n// The provider contract and the offline test seam come from the shared\n// inference layer; re-exported so downstream code keeps one import site.\n// `InferenceProvider` is what this package used to call `JudgeProvider`.\nexport {\n MockProvider,\n mockVerdict,\n type CompleteJSONRequest,\n type CompleteJSONResponse,\n type InferenceProvider,\n type MockResponse,\n} from \"@hawkeyexl/inference\";\nexport {\n render,\n parseFormat,\n REPORT_FORMATS,\n SUMMARY_FORMATS,\n} from \"./reporters/index.js\";\nexport type { ColorOptions, ReportFormat, SummaryFormat } from \"./reporters/index.js\";\nexport {\n listReviews,\n renderReviews,\n runReview,\n} from \"./commands/review.js\";\nexport { runGenerate } from \"./commands/generate.js\";\nexport type { GenerateOptions, GenerateRun } from \"./commands/generate.js\";\nexport { runFill, renderFill } from \"./commands/fill.js\";\nexport type {\n FillOptions,\n FillReport,\n FillPageResult,\n FillStatus,\n ProposedEval,\n} from \"./commands/fill.js\";\nexport {\n FILL_PROMPT_VERSION,\n FILL_SYSTEM_PROMPT,\n PROPOSAL_SCHEMA,\n buildFillUser,\n isValidProposal,\n} from \"./fill/prompt.js\";\nexport { FillCache, fillCacheKey } from \"./fill/cache.js\";\nexport { runPromote } from \"./commands/promote.js\";\nexport type { PromoteOptions, PromoteProposal } from \"./commands/promote.js\";\nexport { makeGenerateScripts, scriptLocationFor } from \"./graders/scriptgen.js\";\nexport {\n runCalibrate,\n renderCalibration,\n loadGoldenCases,\n seedGoldenCases,\n GOLDEN_DIR,\n SEEDED_GOLDEN_FILE,\n} from \"./commands/calibrate.js\";\nexport type {\n CalibrateOptions,\n CalibrationReport,\n CalibrationCaseResult,\n GoldenCase,\n SeedResult,\n} from \"./commands/calibrate.js\";\nexport { runInit } from \"./commands/init.js\";\nexport { registerGrader, graderFor, listGraderKinds } from \"./graders/registry.js\";\nexport type { Grader, GraderContext, GraderTarget, ExecFn } from \"./graders/types.js\";\nexport {\n updatePageEval,\n updateConfigEval,\n appendPageEvals,\n} from \"./core/frontmatter-edit.js\";\nexport type { NewEvalEntry } from \"./core/frontmatter-edit.js\";\nexport { frontmatterSchema, FRONTMATTER_SCHEMA_ID } from \"./schema.js\";\n// The judge cache key and the exact body it hashes. Exported so that anything\n// asking \"is this verdict already cached?\" — `scripts/check-docs-cache.mjs`\n// above all — computes it with the judge's own code instead of reproducing the\n// composition by hand, which is how that script silently keyed on the raw page\n// body after the judge started prefixing the chunk budget.\nexport { cacheKey, judgeCacheBody } from \"./judge/cache.js\";\nexport type { JudgeCacheBody } from \"./judge/cache.js\";\nexport { readTarget } from \"./core/target.js\";\nexport * from \"./types.js\";\n","/** Programmatic API for manni lint. */\nimport { clearTemplateCaches } from \"./core/template-registry.js\";\nimport { clearMatcherCache } from \"./core/resolve-template.js\";\nimport { clearPatternCache } from \"./rules/index.js\";\n\n/**\n * Drop every process-lifetime cache: parsed built-ins, fetched template files,\n * compiled override globs, and compiled heading patterns.\n *\n * A CLI run never needs this - it lints one docset and exits, and the caches\n * are what stop a tree of one doctype from re-reading the same template per\n * page. A long-lived host is the different case: the maps grow with the number\n * of distinct refs and patterns seen, and a cached remote template is served\n * for the life of the process, so one republished upstream is never picked up.\n * Call this between runs, or when a template may have changed underneath.\n */\nexport function clearCaches(): void {\n clearTemplateCaches();\n clearMatcherCache();\n clearPatternCache();\n}\n\nexport { runLint, STDIN_LABEL } from \"./commands/lint.js\";\nexport type {\n LintOptions,\n LintRun,\n LintSummary,\n LintFileResult,\n} from \"./commands/lint.js\";\nexport { runTemplates, BUILTIN_SOURCE } from \"./commands/templates.js\";\nexport type {\n TemplateInfo,\n TemplatesInfo,\n TemplatesOptions,\n} from \"./commands/templates.js\";\nexport { runTools, BUILT_IN_DEFAULTS } from \"./commands/tools.js\";\nexport type { FormatInfo, ToolInfo, ToolsOptions } from \"./commands/tools.js\";\nexport {\n LINT_JOBS,\n LINT_TOOLS,\n TOOLS_BY_JOB,\n isLintTool,\n loadConfig,\n parseConfig,\n rebaseConfig,\n resolveLintRun,\n} from \"./core/config.js\";\nexport type {\n LintConfig,\n LintJob,\n LintJobConfig,\n LintRunOptions,\n LintTool,\n ResolvedLintRun,\n} from \"./core/config.js\";\nexport { validateDocument, validateSections } from \"./core/validator.js\";\nexport { matchSections } from \"./core/match.js\";\nexport type { Match, MatchResult } from \"./core/match.js\";\nexport {\n BLOCK_KINDS,\n headingMatches,\n isWildcard,\n occurrenceRange,\n} from \"./core/template.js\";\nexport type {\n AdmonitionsRule,\n AttributesRule,\n BlockKind,\n BlockRule,\n CodeBlocksRule,\n ElementsRule,\n HeadingRule,\n ImagesRule,\n ListItemsRule,\n ListsRule,\n Occurrences,\n ParagraphsRule,\n Rule,\n TablesRule,\n Template,\n TemplateFile,\n} from \"./core/template.js\";\nexport {\n listBuiltins,\n loadTemplate,\n loadTemplateFile,\n resolveExtends,\n classifyRef,\n} from \"./core/template-registry.js\";\nexport type {\n BuiltinInfo,\n LoadTemplateOptions,\n RefKind,\n TemplateResolver,\n} from \"./core/template-registry.js\";\n// Targets resolve through the family's walker (`src/meta/internal.ts`), which\n// is what makes `--ext`, `--exclude`, `.gitignore` handling and `--allow-empty`\n// mean the same thing here as they do for `meta` and `cite`.\nexport { STDIN_TOKEN } from \"../meta/internal.js\";\nexport {\n listFormats,\n parserByName,\n parserForExtension,\n supportedExtensions,\n} from \"./parsers/index.js\";\nexport {\n render,\n renderPretty,\n renderJson,\n renderGithub,\n renderJunit,\n renderTemplates,\n renderTools,\n} from \"./reporters/index.js\";\nexport type {\n ReportFormat,\n ReportOptions,\n ListFormat,\n} from \"./reporters/index.js\";\nexport { renderSarif } from \"./reporters/sarif.js\";\nexport type { SarifOptions } from \"./reporters/sarif.js\";\n// A finding's durable identity, so a caller filing or correlating findings\n// spells the id the same way every reporter does.\nexport { RULE_ID_PREFIX, TOOL_NAME, ruleId, ruleName } from \"./core/rule-id.js\";\n// Colour is the family's decision, made once in `src/shared/color.js`. These\n// are re-exported here so a library caller building lint's reports does not\n// have to reach for another tool's entry point to turn ANSI on or off.\nexport { palette, shouldColor } from \"../shared/color.js\";\nexport * from \"./types.js\";\n","/**\n * The key domain's programmatic API, exported from the package as the `key`\n * namespace: `import { key } from \"@hawkeyexl/manni\"`. The command cores, and\n * the family's encryption primitives a caller needs beside them.\n */\nexport * from \"./types.js\";\nexport { KeyError } from \"./errors.js\";\nexport { runKeySet } from \"./commands/set.js\";\nexport { runKeyRotate } from \"./commands/rotate.js\";\nexport { decryptValue, encryptValue, isEncryptedValue } from \"../shared/encryption.js\";\nexport type { EncryptionContext } from \"../shared/encryption.js\";\nexport { resolveEncryptionKey } from \"../shared/encryption-key.js\";\nexport type { KeySource, ResolvedKey } from \"../shared/encryption-key.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAAC;AAAA,EAAA;AAAA,oBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BA,SAAS,kBAAkB,eAAe;AAW1C;AAAA,EACE;AAAA,EACA;AAAA,OAKK;;;AChDP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,sBAAAC;AAAA,EAAA;AAAA,oBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA,gBAAAC;AAAA,EAAA;AAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA,qBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAC;AAAA,EAAA;AAAA;AAAA;AAgBO,SAAS,cAAoB;AAClC,sBAAoB;AACpB,oBAAkB;AAClB,oBAAkB;AACpB;;;ACpBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":["REPORT_FORMATS","loadConfig","parseConfig","render","renderFill","runFill","classifyRef","listBuiltins","loadConfig","parseConfig","render","renderJunit","renderSarif","supportedExtensions"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"docs:check-action": "node scripts/check-action-reference.mjs",
|
|
56
56
|
"docs:check-api": "node scripts/check-api-reference.mjs",
|
|
57
57
|
"docs:check-links": "node scripts/check-doc-links.mjs",
|
|
58
|
+
"docs:check-docevals": "node dist/cli.js docevals run --deterministic-only --no-generate",
|
|
58
59
|
"docs:check-tables": "node scripts/check-table-rows.mjs",
|
|
59
60
|
"docs:check-versions": "node scripts/check-versions.mjs",
|
|
60
61
|
"docs:sync-versions": "node scripts/sync-versions.mjs",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"@apidevtools/json-schema-ref-parser": "^11.9.3",
|
|
85
86
|
"@asciidoctor/core": "^3.0.4",
|
|
86
87
|
"@axe-core/playwright": "^4.13.0",
|
|
87
|
-
"@hawkeyexl/inference": "^0.
|
|
88
|
+
"@hawkeyexl/inference": "^0.4.0",
|
|
88
89
|
"@xmldom/xmldom": "^0.9.12",
|
|
89
90
|
"ajv": "^8.17.1",
|
|
90
91
|
"ajv-draft-04": "^1.0.0",
|
|
@@ -129,5 +130,13 @@
|
|
|
129
130
|
"typescript": "^6.0.3",
|
|
130
131
|
"typescript-eslint": "^8.68.0",
|
|
131
132
|
"vitest": "^4.1.11"
|
|
133
|
+
},
|
|
134
|
+
"peerDependencies": {
|
|
135
|
+
"node-llama-cpp": "^3.19.0"
|
|
136
|
+
},
|
|
137
|
+
"peerDependenciesMeta": {
|
|
138
|
+
"node-llama-cpp": {
|
|
139
|
+
"optional": true
|
|
140
|
+
}
|
|
132
141
|
}
|
|
133
142
|
}
|