@hawkeyexl/manni 4.0.3 → 4.2.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/dist/index.js CHANGED
@@ -3,55 +3,222 @@ import {
3
3
  BLOCK_KINDS,
4
4
  BUILTIN_SOURCE,
5
5
  BUILT_IN_DEFAULTS,
6
+ COVERAGE_FIELDS,
7
+ COVERAGE_FIELD_NAMES,
8
+ DEFAULT_CONFIG_FILENAME,
9
+ DEFAULT_MODEL,
10
+ DocevalsError,
11
+ EVAL_KEYS,
12
+ EXTERNAL_KEYS,
13
+ EmbedderUnavailableError,
14
+ FILL_PROMPT_VERSION,
15
+ FILL_SYSTEM_PROMPT,
16
+ FRONTMATTER_SCHEMA_ID,
17
+ FillCache,
18
+ GOLDEN_DIR,
19
+ GRAPH_NOT_APPLICABLE_TO_VARIANT,
20
+ GRAPH_NOT_SOFTWARE_SUBJECT,
21
+ GraphError,
22
+ GraphIndex,
6
23
  KeyError,
7
24
  LINT_JOBS,
8
25
  LINT_TOOLS,
26
+ LOCALIZATIONS_FILENAME,
9
27
  LintError,
28
+ MODEL_PROFILES,
29
+ NS,
30
+ PREFIXES,
31
+ PROPOSAL_SCHEMA,
32
+ REPORT_FORMATS as REPORT_FORMATS2,
10
33
  RULE_ID_PREFIX2 as RULE_ID_PREFIX,
34
+ SECTION_COVERAGE_FIELDS,
35
+ SEEDED_GOLDEN_FILE,
36
+ SOFTWARE_LIFECYCLE_IRIS,
37
+ SOFTWARE_SUBJECT_IRIS,
11
38
  STDIN_LABEL,
39
+ SUMMARY_FORMATS,
12
40
  TOOLS_BY_JOB,
13
41
  TOOL_NAME,
42
+ TOPIC_TYPE_IRIS,
43
+ UNDETERMINED,
44
+ VectorIndexError,
45
+ VectorMismatchError,
46
+ analyzeDoc,
47
+ appendPageEvals,
48
+ applyGraphFields,
49
+ assertProviderSelection,
50
+ buildFillUser,
51
+ buildSearchIndex,
52
+ byCodeUnit,
53
+ cacheKey,
14
54
  cite_exports,
15
55
  classifyRef as classifyRef2,
16
56
  clearMatcherCache,
17
57
  clearPatternCache,
18
58
  clearTemplateCaches,
59
+ collectGitHistory,
60
+ compactIri,
61
+ conceptSlug,
62
+ constructProvider,
63
+ createFetchResolver,
64
+ createLexicalIndex,
65
+ createLocalEmbedder,
66
+ createMockEmbedder,
67
+ createTrace,
68
+ createVectorIndex,
69
+ decodeVectorIndex,
70
+ defaultConfig,
71
+ deriveGraph,
72
+ discoverFiles,
73
+ discoverPages,
74
+ documentPreamble,
75
+ documentSectionOrder,
76
+ documentsByLanguage,
77
+ embedText,
78
+ emitJsonLd,
79
+ emitLocalizations,
80
+ emitRdfXml,
81
+ emitSearchIndex,
82
+ emitTurtle,
83
+ encodeSegment,
84
+ encodeVectorIndex,
85
+ existingGraphFields,
86
+ existingMetaProvenance,
87
+ expandTerm,
88
+ fillCacheKey,
89
+ findEntry,
90
+ frontmatterKind,
91
+ frontmatterSchema,
92
+ graderFor,
19
93
  headingMatches,
94
+ impact,
20
95
  isLintTool,
96
+ isValidProposal,
21
97
  isWildcard,
98
+ judgeCacheBody,
22
99
  listBuiltins as listBuiltins2,
23
100
  listFormats,
101
+ listGraderKinds,
102
+ listReviews,
24
103
  loadConfig as loadConfig2,
104
+ loadConfig2 as loadConfig3,
105
+ loadConfig3 as loadConfig4,
106
+ loadExternalReader,
107
+ loadGoldenCases,
108
+ loadGraph,
109
+ loadRunConfig,
25
110
  loadTemplate,
26
111
  loadTemplateFile,
112
+ makeGenerateScripts,
113
+ makeJudge,
114
+ makeProvider,
115
+ makeProvider2,
27
116
  matchSections,
117
+ mintAgentIri,
118
+ mintBuildActivityIri,
119
+ mintConceptIri,
120
+ mintDocIri,
121
+ mintGraphIri,
122
+ mintProductIri,
123
+ mintSchemeIri,
124
+ mintSectionIri,
125
+ normalize,
126
+ normalizeDocPath,
28
127
  occurrenceRange,
29
128
  parseConfig as parseConfig2,
129
+ parseConfig2 as parseConfig3,
130
+ parseConfig3 as parseConfig4,
131
+ parseFormat,
132
+ parseLocalizations,
30
133
  parserByName,
31
134
  parserForExtension,
135
+ partitionByLanguage,
136
+ profileFor,
137
+ projectPackage,
138
+ providerSpecFor,
139
+ providerSpecFor2,
140
+ reachedNodes,
141
+ readPage,
142
+ readTarget,
32
143
  rebaseConfig,
33
144
  reencryptMetadata,
145
+ registerGrader,
34
146
  render as render2,
147
+ render2 as render3,
148
+ renderCalibration,
149
+ renderEmbed,
150
+ renderFill as renderFill2,
35
151
  renderGithub,
36
152
  renderJson,
37
153
  renderJunit as renderJunit2,
154
+ renderList,
38
155
  renderPretty,
156
+ renderReviews,
39
157
  renderSarif as renderSarif2,
158
+ renderSearch,
40
159
  renderTemplates,
41
160
  renderTools,
161
+ renderTraverse,
162
+ resolveBaseIri,
163
+ resolveDocumentSet,
42
164
  resolveExtends,
43
165
  resolveLintRun,
166
+ resolvePage,
167
+ resolvePages,
168
+ resolveProviderIdentity,
169
+ resolveProviderIdentity2,
170
+ resolveSubject,
171
+ resolveVariant,
172
+ reverseReferences,
173
+ rrfMerge,
44
174
  ruleId,
45
175
  ruleName,
176
+ runBuild,
177
+ runCalibrate,
178
+ runEmbed,
179
+ runEvals,
180
+ runExport,
181
+ runFill as runFill2,
182
+ runFill2 as runFill3,
183
+ runGenerate,
184
+ runInit,
46
185
  runKeyRotate,
47
186
  runKeySet,
48
187
  runLint,
188
+ runList,
189
+ runPromote,
190
+ runQuery as runQuery2,
191
+ runReview,
192
+ runRun,
193
+ runSearch,
194
+ runStats,
49
195
  runTemplates,
50
196
  runTools,
197
+ runTraverse,
198
+ scopeExclusion,
199
+ scriptLocationFor,
200
+ searchIndexDigest,
201
+ searchIndexFilename,
202
+ sectionOccurrence,
203
+ sectionOccurrences,
204
+ sectionOwnText,
205
+ seedGoldenCases,
206
+ selectProvider,
207
+ sliceSection,
208
+ splitFragment,
209
+ storeToQuads,
210
+ stripFrontmatterBlock,
51
211
  supportedExtensions as supportedExtensions2,
212
+ traverse,
213
+ updateConfigEval,
214
+ updatePageEval,
52
215
  validateDocument,
53
- validateSections
54
- } from "./chunk-JYRY7SKD.js";
216
+ validateSections,
217
+ vectorIndexFilename,
218
+ withExternalMetadata,
219
+ withPrefix,
220
+ writeZip
221
+ } from "./chunk-UYDRDFYF.js";
55
222
  import {
56
223
  BinMissing,
57
224
  COMMON_FORMATS,
@@ -71,6 +238,7 @@ import {
71
238
  EXTERNAL_OWNED_SCHEMA,
72
239
  FIELD_SOURCES,
73
240
  FILL_FORMATS,
241
+ GRAPH_OUTPUT_KEYWORD,
74
242
  GitHubClient,
75
243
  GitLabClient,
76
244
  INTEGRITY_SHAPE,
@@ -89,6 +257,7 @@ import {
89
257
  STDIN_TOKEN,
90
258
  SchemaCache,
91
259
  Validator,
260
+ __default2 as __default,
92
261
  __export,
93
262
  applyFrontmatter,
94
263
  argvFor,
@@ -177,7 +346,80 @@ import {
177
346
  valueOf,
178
347
  vendorFileName,
179
348
  writeFileAtomic
180
- } from "./chunk-TQG3WCJY.js";
349
+ } from "./chunk-TH565O2N.js";
350
+
351
+ // src/docevals/index.ts
352
+ var docevals_exports = {};
353
+ __export(docevals_exports, {
354
+ DEFAULT_CONFIG_FILENAME: () => DEFAULT_CONFIG_FILENAME,
355
+ DocevalsError: () => DocevalsError,
356
+ EVAL_KEYS: () => EVAL_KEYS,
357
+ EXTERNAL_KEYS: () => EXTERNAL_KEYS,
358
+ FILL_PROMPT_VERSION: () => FILL_PROMPT_VERSION,
359
+ FILL_SYSTEM_PROMPT: () => FILL_SYSTEM_PROMPT,
360
+ FRONTMATTER_SCHEMA_ID: () => FRONTMATTER_SCHEMA_ID,
361
+ FillCache: () => FillCache,
362
+ GOLDEN_DIR: () => GOLDEN_DIR,
363
+ MockProvider: () => MockProvider,
364
+ PROPOSAL_SCHEMA: () => PROPOSAL_SCHEMA,
365
+ REPORT_FORMATS: () => REPORT_FORMATS2,
366
+ SEEDED_GOLDEN_FILE: () => SEEDED_GOLDEN_FILE,
367
+ SUMMARY_FORMATS: () => SUMMARY_FORMATS,
368
+ appendPageEvals: () => appendPageEvals,
369
+ buildFillUser: () => buildFillUser,
370
+ cacheKey: () => cacheKey,
371
+ computeConsensus: () => computeConsensus,
372
+ discoverPages: () => discoverPages,
373
+ fillCacheKey: () => fillCacheKey,
374
+ frontmatterSchema: () => frontmatterSchema,
375
+ graderFor: () => graderFor,
376
+ isValidProposal: () => isValidProposal,
377
+ judgeCacheBody: () => judgeCacheBody,
378
+ listGraderKinds: () => listGraderKinds,
379
+ listReviews: () => listReviews,
380
+ loadConfig: () => loadConfig2,
381
+ loadExternalReader: () => loadExternalReader,
382
+ loadGoldenCases: () => loadGoldenCases,
383
+ makeGenerateScripts: () => makeGenerateScripts,
384
+ makeJudge: () => makeJudge,
385
+ makeProvider: () => makeProvider,
386
+ mockVerdict: () => mockVerdict,
387
+ parseConfig: () => parseConfig2,
388
+ parseFormat: () => parseFormat,
389
+ providerSpecFor: () => providerSpecFor,
390
+ readPage: () => readPage,
391
+ readTarget: () => readTarget,
392
+ registerGrader: () => registerGrader,
393
+ render: () => render2,
394
+ renderCalibration: () => renderCalibration,
395
+ renderFill: () => renderFill2,
396
+ renderList: () => renderList,
397
+ renderReviews: () => renderReviews,
398
+ resolvePage: () => resolvePage,
399
+ resolvePages: () => resolvePages,
400
+ resolveProviderIdentity: () => resolveProviderIdentity,
401
+ runCalibrate: () => runCalibrate,
402
+ runEvals: () => runEvals,
403
+ runFill: () => runFill2,
404
+ runGenerate: () => runGenerate,
405
+ runInit: () => runInit,
406
+ runList: () => runList,
407
+ runPromote: () => runPromote,
408
+ runReview: () => runReview,
409
+ runRun: () => runRun,
410
+ scriptLocationFor: () => scriptLocationFor,
411
+ seedGoldenCases: () => seedGoldenCases,
412
+ stripFrontmatterBlock: () => stripFrontmatterBlock,
413
+ updateConfigEval: () => updateConfigEval,
414
+ updatePageEval: () => updatePageEval,
415
+ withExternalMetadata: () => withExternalMetadata,
416
+ zoneFor: () => zoneFor
417
+ });
418
+ import { computeConsensus, zoneFor } from "@hawkeyexl/inference";
419
+ import {
420
+ MockProvider,
421
+ mockVerdict
422
+ } from "@hawkeyexl/inference";
181
423
 
182
424
  // src/lint/index.ts
183
425
  var lint_exports = {};
@@ -200,17 +442,17 @@ __export(lint_exports, {
200
442
  isWildcard: () => isWildcard,
201
443
  listBuiltins: () => listBuiltins2,
202
444
  listFormats: () => listFormats,
203
- loadConfig: () => loadConfig2,
445
+ loadConfig: () => loadConfig4,
204
446
  loadTemplate: () => loadTemplate,
205
447
  loadTemplateFile: () => loadTemplateFile,
206
448
  matchSections: () => matchSections,
207
449
  occurrenceRange: () => occurrenceRange,
208
450
  palette: () => palette,
209
- parseConfig: () => parseConfig2,
451
+ parseConfig: () => parseConfig4,
210
452
  parserByName: () => parserByName,
211
453
  parserForExtension: () => parserForExtension,
212
454
  rebaseConfig: () => rebaseConfig,
213
- render: () => render2,
455
+ render: () => render3,
214
456
  renderGithub: () => renderGithub,
215
457
  renderJson: () => renderJson,
216
458
  renderJunit: () => renderJunit2,
@@ -236,6 +478,281 @@ function clearCaches() {
236
478
  clearPatternCache();
237
479
  }
238
480
 
481
+ // src/graph/index.ts
482
+ var graph_exports = {};
483
+ __export(graph_exports, {
484
+ COVERAGE_FIELDS: () => COVERAGE_FIELDS,
485
+ COVERAGE_FIELD_NAMES: () => COVERAGE_FIELD_NAMES,
486
+ DEFAULT_MODEL: () => DEFAULT_MODEL,
487
+ EmbedderUnavailableError: () => EmbedderUnavailableError,
488
+ FRONTMATTER_SCHEMA_ID: () => FRONTMATTER_SCHEMA_ID2,
489
+ GRAPH_NOT_APPLICABLE_TO_VARIANT: () => GRAPH_NOT_APPLICABLE_TO_VARIANT,
490
+ GRAPH_NOT_SOFTWARE_SUBJECT: () => GRAPH_NOT_SOFTWARE_SUBJECT,
491
+ GraphError: () => GraphError,
492
+ GraphIndex: () => GraphIndex,
493
+ LOCALIZATIONS_FILENAME: () => LOCALIZATIONS_FILENAME,
494
+ MODEL_PROFILES: () => MODEL_PROFILES,
495
+ MockProvider: () => MockProvider2,
496
+ NS: () => NS,
497
+ PREFIXES: () => PREFIXES,
498
+ SECTION_COVERAGE_FIELDS: () => SECTION_COVERAGE_FIELDS,
499
+ SOFTWARE_LIFECYCLE_IRIS: () => SOFTWARE_LIFECYCLE_IRIS,
500
+ SOFTWARE_SUBJECT_IRIS: () => SOFTWARE_SUBJECT_IRIS,
501
+ TOPIC_TYPE_IRIS: () => TOPIC_TYPE_IRIS,
502
+ UNDETERMINED: () => UNDETERMINED,
503
+ VectorIndexError: () => VectorIndexError,
504
+ VectorMismatchError: () => VectorMismatchError,
505
+ analyzeDoc: () => analyzeDoc,
506
+ applyGraphFields: () => applyGraphFields,
507
+ assemble: () => assemble,
508
+ assertProviderSelection: () => assertProviderSelection,
509
+ buildSearchIndex: () => buildSearchIndex,
510
+ collectGitHistory: () => collectGitHistory,
511
+ compactIri: () => compactIri,
512
+ conceptSlug: () => conceptSlug,
513
+ constructProvider: () => constructProvider,
514
+ createFetchResolver: () => createFetchResolver,
515
+ createLexicalIndex: () => createLexicalIndex,
516
+ createLocalEmbedder: () => createLocalEmbedder,
517
+ createMockEmbedder: () => createMockEmbedder,
518
+ createTrace: () => createTrace,
519
+ createVectorIndex: () => createVectorIndex,
520
+ decodeVectorIndex: () => decodeVectorIndex,
521
+ defaultConfig: () => defaultConfig,
522
+ defaultGraph: () => defaultGraph,
523
+ deriveGraph: () => deriveGraph,
524
+ discoverFiles: () => discoverFiles,
525
+ documentPreamble: () => documentPreamble,
526
+ documentSectionOrder: () => documentSectionOrder,
527
+ documentsByLanguage: () => documentsByLanguage,
528
+ embedText: () => embedText,
529
+ emitJsonLd: () => emitJsonLd,
530
+ emitLocalizations: () => emitLocalizations,
531
+ emitRdfXml: () => emitRdfXml,
532
+ emitSearchIndex: () => emitSearchIndex,
533
+ emitTurtle: () => emitTurtle,
534
+ encodeSegment: () => encodeSegment,
535
+ encodeVectorIndex: () => encodeVectorIndex,
536
+ existingGraphFields: () => existingGraphFields,
537
+ existingMetaProvenance: () => existingMetaProvenance,
538
+ expandTerm: () => expandTerm,
539
+ findEntry: () => findEntry,
540
+ frontmatterKind: () => frontmatterKind,
541
+ frontmatterSchema: () => frontmatterSchema2,
542
+ impact: () => impact,
543
+ literal: () => literal,
544
+ loadConfig: () => loadConfig3,
545
+ loadGraph: () => loadGraph,
546
+ loadRunConfig: () => loadRunConfig,
547
+ makeProvider: () => makeProvider2,
548
+ matchQuads: () => matchQuads,
549
+ mintAgentIri: () => mintAgentIri,
550
+ mintBuildActivityIri: () => mintBuildActivityIri,
551
+ mintConceptIri: () => mintConceptIri,
552
+ mintDocIri: () => mintDocIri,
553
+ mintGraphIri: () => mintGraphIri,
554
+ mintProductIri: () => mintProductIri,
555
+ mintSchemeIri: () => mintSchemeIri,
556
+ mintSectionIri: () => mintSectionIri,
557
+ namedNode: () => namedNode,
558
+ normalize: () => normalize,
559
+ normalizeDocPath: () => normalizeDocPath,
560
+ parseConfig: () => parseConfig3,
561
+ parseLocalizations: () => parseLocalizations,
562
+ partitionByLanguage: () => partitionByLanguage,
563
+ profileFor: () => profileFor,
564
+ projectPackage: () => projectPackage,
565
+ providerSpecFor: () => providerSpecFor2,
566
+ rdfjsQuads: () => rdfjsQuads,
567
+ reachedNodes: () => reachedNodes,
568
+ renderEmbed: () => renderEmbed,
569
+ renderSearch: () => renderSearch,
570
+ renderTraverse: () => renderTraverse,
571
+ resolveBaseIri: () => resolveBaseIri,
572
+ resolveDocumentSet: () => resolveDocumentSet,
573
+ resolveProviderIdentity: () => resolveProviderIdentity2,
574
+ resolveSubject: () => resolveSubject,
575
+ resolveVariant: () => resolveVariant,
576
+ reverseReferences: () => reverseReferences,
577
+ rrfMerge: () => rrfMerge,
578
+ runBuild: () => runBuild,
579
+ runEmbed: () => runEmbed,
580
+ runExport: () => runExport,
581
+ runFill: () => runFill3,
582
+ runQuery: () => runQuery2,
583
+ runSearch: () => runSearch,
584
+ runStats: () => runStats,
585
+ runTraverse: () => runTraverse,
586
+ scopeExclusion: () => scopeExclusion,
587
+ searchIndexDigest: () => searchIndexDigest,
588
+ searchIndexFilename: () => searchIndexFilename,
589
+ sectionOccurrence: () => sectionOccurrence,
590
+ sectionOccurrences: () => sectionOccurrences,
591
+ sectionOwnText: () => sectionOwnText,
592
+ selectProvider: () => selectProvider,
593
+ sliceSection: () => sliceSection,
594
+ splitFragment: () => splitFragment,
595
+ storeToQuads: () => storeToQuads,
596
+ traverse: () => traverse,
597
+ vectorIndexFilename: () => vectorIndexFilename,
598
+ withPrefix: () => withPrefix,
599
+ writeZip: () => writeZip
600
+ });
601
+
602
+ // src/graph/runtime/assemble.ts
603
+ async function assemble(resolver, nodes, options = {}) {
604
+ const trace = options.trace ?? createTrace();
605
+ const budget = options.maxChars ?? Infinity;
606
+ if (nodes.length === 0) {
607
+ return {
608
+ ...options.entry ? { entry: options.entry } : {},
609
+ context: [],
610
+ citations: [],
611
+ trace,
612
+ truncated: false,
613
+ refusal: {
614
+ reason: "no-route",
615
+ detail: "No node in the graph was reachable for this query under the active scope filter."
616
+ }
617
+ };
618
+ }
619
+ const context = [];
620
+ let used = 0;
621
+ let truncated = false;
622
+ let resolvedAny = false;
623
+ for (const node of nodes) {
624
+ const resolved = await resolver.resolve(node.iri);
625
+ if (!resolved) continue;
626
+ resolvedAny = true;
627
+ if (used + resolved.text.length > budget) {
628
+ truncated = true;
629
+ continue;
630
+ }
631
+ used += resolved.text.length;
632
+ context.push({
633
+ iri: resolved.iri,
634
+ title: resolved.title,
635
+ text: resolved.text,
636
+ sourceUrl: resolved.sourceUrl,
637
+ depth: node.depth
638
+ });
639
+ }
640
+ if (context.length === 0) {
641
+ return {
642
+ ...options.entry ? { entry: options.entry } : {},
643
+ context: [],
644
+ citations: [],
645
+ trace,
646
+ truncated,
647
+ refusal: {
648
+ reason: "no-content",
649
+ detail: resolvedAny ? "Every matching node's content exceeded the character budget." : "Matching nodes were found, but none of them resolved to readable content."
650
+ }
651
+ };
652
+ }
653
+ return {
654
+ ...options.entry ? { entry: options.entry } : {},
655
+ context,
656
+ citations: context.map((b) => ({
657
+ iri: b.iri,
658
+ title: b.title,
659
+ sourceUrl: b.sourceUrl
660
+ })),
661
+ trace,
662
+ truncated
663
+ };
664
+ }
665
+
666
+ // src/graph/runtime/rdfjs.ts
667
+ var XSD_STRING = "http://www.w3.org/2001/XMLSchema#string";
668
+ function namedNode(value) {
669
+ return {
670
+ termType: "NamedNode",
671
+ value,
672
+ equals(other) {
673
+ return !!other && other.termType === "NamedNode" && other.value === value;
674
+ }
675
+ };
676
+ }
677
+ function defaultGraph() {
678
+ return {
679
+ termType: "DefaultGraph",
680
+ value: "",
681
+ equals(other) {
682
+ return !!other && other.termType === "DefaultGraph";
683
+ }
684
+ };
685
+ }
686
+ function literal(value, datatype) {
687
+ const dt = namedNode(datatype ?? XSD_STRING);
688
+ return {
689
+ termType: "Literal",
690
+ value,
691
+ language: "",
692
+ datatype: dt,
693
+ equals(other) {
694
+ return !!other && other.termType === "Literal" && other.value === value && !!other.datatype && other.datatype.value === dt.value;
695
+ }
696
+ };
697
+ }
698
+ function toTerm(v) {
699
+ return v.kind === "iri" ? namedNode(v.value) : literal(v.value, v.datatype);
700
+ }
701
+ function makeQuad(s, p, o) {
702
+ const subject = namedNode(s);
703
+ const predicate = namedNode(p);
704
+ const object = toTerm(o);
705
+ const graph = defaultGraph();
706
+ return {
707
+ termType: "Quad",
708
+ subject,
709
+ predicate,
710
+ object,
711
+ graph,
712
+ equals(other) {
713
+ return !!other && subject.equals(other.subject) && predicate.equals(other.predicate) && object.equals(other.object);
714
+ }
715
+ };
716
+ }
717
+ function rdfjsQuads(graph) {
718
+ const quads = [];
719
+ for (const s of graph.ids()) {
720
+ const node = graph.node(s);
721
+ if (!node) continue;
722
+ for (const p of [...node.props.keys()].sort(byCodeUnit)) {
723
+ for (const v of node.props.get(p) ?? []) quads.push(makeQuad(s, p, v));
724
+ }
725
+ }
726
+ return quads;
727
+ }
728
+ function matchQuads(graph, subject, predicate, object) {
729
+ const quads = [];
730
+ const subjects = subject ? [subject] : graph.ids();
731
+ for (const s of subjects) {
732
+ const node = graph.node(s);
733
+ if (!node) continue;
734
+ const predicates = predicate ? [predicate] : [...node.props.keys()].sort(byCodeUnit);
735
+ for (const p of predicates) {
736
+ for (const v of node.props.get(p) ?? []) {
737
+ if (object !== void 0 && object !== null && v.value !== object) {
738
+ continue;
739
+ }
740
+ quads.push(makeQuad(s, p, v));
741
+ }
742
+ }
743
+ }
744
+ return quads;
745
+ }
746
+
747
+ // src/graph/schema.ts
748
+ var frontmatterSchema2 = __default;
749
+ var FRONTMATTER_SCHEMA_ID2 = __default.$id;
750
+
751
+ // src/graph/index.ts
752
+ import {
753
+ MockProvider as MockProvider2
754
+ } from "@hawkeyexl/inference";
755
+
239
756
  // src/key/index.ts
240
757
  var key_exports = {};
241
758
  __export(key_exports, {
@@ -266,6 +783,7 @@ export {
266
783
  EXTERNAL_OWNED_SCHEMA,
267
784
  FIELD_SOURCES,
268
785
  FILL_FORMATS,
786
+ GRAPH_OUTPUT_KEYWORD,
269
787
  GitHubClient,
270
788
  GitLabClient,
271
789
  INTEGRITY_SHAPE,
@@ -297,6 +815,7 @@ export {
297
815
  deriveFromCommands,
298
816
  deriveFromReviews,
299
817
  deriveMetadata,
818
+ docevals_exports as docevals,
300
819
  externalMetadataJoin,
301
820
  externalMetadataPointer,
302
821
  externalMetadataUrlProblem,
@@ -306,6 +825,7 @@ export {
306
825
  fetchSchemaBytes,
307
826
  frontmatterInnerText,
308
827
  getSchemasInfo,
828
+ graph_exports as graph,
309
829
  identityFromOrigin,
310
830
  integrityOf,
311
831
  isBuiltinField,