@hawkeyexl/manni 4.16.0 → 4.17.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.
- package/README.md +1 -1
- package/dist/{batch-L5W4JS7A.js → batch-SAW4E46C.js} +14 -14
- package/dist/{build-GNZUVDZX.js → build-F6S3W77I.js} +15 -14
- package/dist/{calibrate-2LYIDN6U.js → calibrate-3DW2VV7F.js} +15 -15
- package/dist/{capture-OEDMFU5Z.js → capture-PKEYY2VO.js} +14 -14
- package/dist/{check-JR2TYL2Y.js → check-7PUIHLFM.js} +15 -15
- package/dist/{check-NLLFHNWG.js → check-EZN7YNVF.js} +14 -15
- package/dist/{check-Z5VGDSDT.js → check-LRX2YFDF.js} +13 -14
- package/dist/check-NW7GHSX6.js +47 -0
- package/dist/{cli-THEU2QG2.js → chunk-245W2Q7C.js} +133 -365
- package/dist/chunk-245W2Q7C.js.map +1 -0
- package/dist/{chunk-LEOQO3S6.js → chunk-2A5OIZHT.js} +7 -7
- package/dist/{chunk-FU3OCYYH.js → chunk-2LCJNH73.js} +2 -2
- package/dist/{chunk-7UC55CAU.js → chunk-2TLNAGVJ.js} +187 -159
- package/dist/chunk-2TLNAGVJ.js.map +1 -0
- package/dist/{chunk-6ANTGYNT.js → chunk-3446DW4W.js} +2 -2
- package/dist/{chunk-7GB3KEEM.js → chunk-3UYSONT4.js} +7 -453
- package/dist/chunk-3UYSONT4.js.map +1 -0
- package/dist/{chunk-NFJGIBES.js → chunk-4GGADKTU.js} +82 -238
- package/dist/chunk-4GGADKTU.js.map +1 -0
- package/dist/{chunk-YF6IZXAC.js → chunk-5QOTR53S.js} +7 -7
- package/dist/{chunk-2XRET3ZG.js → chunk-5VNFO2RT.js} +12 -38
- package/dist/chunk-5VNFO2RT.js.map +1 -0
- package/dist/{chunk-6YFEV7CM.js → chunk-64EDFJ5S.js} +5 -5
- package/dist/chunk-6J2ED4ED.js +545 -0
- package/dist/chunk-6J2ED4ED.js.map +1 -0
- package/dist/{chunk-2AUULNIJ.js → chunk-ABAFKOQF.js} +3 -3
- package/dist/{chunk-3GLDB7MZ.js → chunk-AIZBZYQM.js} +1311 -18
- package/dist/chunk-AIZBZYQM.js.map +1 -0
- package/dist/{chunk-GQQ2AX63.js → chunk-B5R5BWMY.js} +14 -429
- package/dist/chunk-B5R5BWMY.js.map +1 -0
- package/dist/{chunk-ZT5NUSZA.js → chunk-D3AO2PMV.js} +9 -9
- package/dist/{chunk-EZCJPF72.js → chunk-DSJTYRI5.js} +3 -3
- package/dist/{chunk-OJ7FEM2G.js → chunk-DU6CXY5R.js} +47 -10
- package/dist/chunk-DU6CXY5R.js.map +1 -0
- package/dist/{chunk-WD33LE5A.js → chunk-FAS3SRQB.js} +927 -99
- package/dist/chunk-FAS3SRQB.js.map +1 -0
- package/dist/{chunk-DTG6S2UG.js → chunk-FEURGKJC.js} +2 -2
- package/dist/{chunk-EA5KKIFG.js → chunk-FPPHEHPZ.js} +3 -3
- package/dist/chunk-HEVYEI6O.js +1338 -0
- package/dist/chunk-HEVYEI6O.js.map +1 -0
- package/dist/{chunk-5OOQ3HQ3.js → chunk-IGE6CIKZ.js} +11 -2
- package/dist/chunk-IGE6CIKZ.js.map +1 -0
- package/dist/{chunk-WT3AATHC.js → chunk-JK56UPNQ.js} +252 -425
- package/dist/chunk-JK56UPNQ.js.map +1 -0
- package/dist/{chunk-B3XXCDYW.js → chunk-KAWS7H4C.js} +2385 -2061
- package/dist/chunk-KAWS7H4C.js.map +1 -0
- package/dist/{chunk-O6YTTBSN.js → chunk-KB4MNUKC.js} +2 -2
- package/dist/{chunk-GR6QQ7GM.js → chunk-KCNBM42T.js} +4 -4
- package/dist/chunk-KUXAHHDE.js +314 -0
- package/dist/chunk-KUXAHHDE.js.map +1 -0
- package/dist/{chunk-EOSQENQF.js → chunk-LDIUA4ZG.js} +2 -2
- package/dist/{chunk-L3YGGYBG.js → chunk-M6DNOHJO.js} +3 -3
- package/dist/{chunk-4L3JBAW4.js → chunk-MBLVLQWI.js} +2 -2
- package/dist/{chunk-4HEEXPVX.js → chunk-MDXDTO7E.js} +6 -6
- package/dist/{chunk-WDENIUC7.js → chunk-MDZXRHIJ.js} +1 -1
- package/dist/chunk-MDZXRHIJ.js.map +1 -0
- package/dist/{chunk-IGRXQC3H.js → chunk-N25KDXOV.js} +2 -2
- package/dist/{chunk-DW22KCLN.js → chunk-NPZWOPOH.js} +3 -3
- package/dist/chunk-OZL5M764.js +443 -0
- package/dist/chunk-OZL5M764.js.map +1 -0
- package/dist/{chunk-NDBISART.js → chunk-PS4Y7EPP.js} +3 -3
- package/dist/{chunk-F4GXZMEO.js → chunk-Q7E43SXN.js} +12 -7
- package/dist/{chunk-F4GXZMEO.js.map → chunk-Q7E43SXN.js.map} +1 -1
- package/dist/{chunk-63GILHR5.js → chunk-QIKCIREY.js} +4 -4
- package/dist/{chunk-ZJZQPOJO.js → chunk-QIWSEKA6.js} +2 -2
- package/dist/{chunk-F6B2TNXU.js → chunk-TNYIXIYV.js} +6 -6
- package/dist/{chunk-CSLJMML4.js → chunk-TUMR35B3.js} +4 -4
- package/dist/{chunk-DSTRT6YD.js → chunk-U5NSIZRS.js} +3 -3
- package/dist/chunk-UP6NBQ62.js +2 -0
- package/dist/{chunk-BMYCLTFK.js → chunk-VRMQSP7O.js} +3 -3
- package/dist/{chunk-IM67NRUW.js → chunk-W7IEP7IG.js} +2 -2
- package/dist/{chunk-5PO2BWZF.js → chunk-W7XOMNYC.js} +2 -2
- package/dist/{chunk-6NTNLKNQ.js → chunk-WBXVQW57.js} +6 -5
- package/dist/{chunk-6NTNLKNQ.js.map → chunk-WBXVQW57.js.map} +1 -1
- package/dist/{chunk-PBZZUNDV.js → chunk-WP5EKWTU.js} +7 -7
- package/dist/chunk-WRSWZEVU.js +580 -0
- package/dist/chunk-WRSWZEVU.js.map +1 -0
- package/dist/{chunk-LPBVWUKS.js → chunk-WZSL7KF2.js} +2 -2
- package/dist/{chunk-GC47NBGO.js → chunk-XCEEJEVA.js} +4 -4
- package/dist/{chunk-4LLYPDNG.js → chunk-XPGK4ECA.js} +7 -7
- package/dist/{chunk-AWAXAJ6R.js → chunk-XRWQQHBR.js} +2 -2
- package/dist/{chunk-D4ANAOY7.js → chunk-XWUIFSWK.js} +20 -6
- package/dist/chunk-XWUIFSWK.js.map +1 -0
- package/dist/{chunk-IL62WATF.js → chunk-YJHHXM5B.js} +2 -2
- package/dist/{chunk-NH6B6DDI.js → chunk-ZEYNLKOH.js} +4 -4
- package/dist/{chunk-PHNAQ4QX.js → chunk-ZIXU7A4C.js} +21 -21
- package/dist/{cli-LZW6Z33F.js → cli-5ZQXVWWC.js} +18 -19
- package/dist/{cli-LZW6Z33F.js.map → cli-5ZQXVWWC.js.map} +1 -1
- package/dist/{cli-5QTSTGTX.js → cli-D5WYQVUF.js} +18 -18
- package/dist/{cli-4Y2XY52B.js → cli-FCGGNZ5C.js} +2 -2
- package/dist/{cli-DBMPGGOV.js → cli-FNX4LXMI.js} +37 -37
- package/dist/{cli-KAUXC7EZ.js → cli-LQRHK23G.js} +9 -9
- package/dist/{cli-RWRYV5FB.js → cli-LRKBCQRS.js} +9 -9
- package/dist/{cli-2EKRURBU.js → cli-NJC3H3CW.js} +15 -15
- package/dist/{cli-2SDBEUER.js → cli-OHKWCJIJ.js} +21 -21
- package/dist/{cli-BXUZ3KEQ.js → cli-RKYIZ6KU.js} +634 -36
- package/dist/cli-RKYIZ6KU.js.map +1 -0
- package/dist/cli-TJDQ5GUW.js +379 -0
- package/dist/cli-TJDQ5GUW.js.map +1 -0
- package/dist/{cli-TZ2OHF3H.js → cli-VC3BXCVR.js} +19 -19
- package/dist/cli.js +14 -14
- package/dist/docmeta.js +8 -8
- package/dist/{github-UR6LMUMW.js → github-6PV2JTZ7.js} +13 -14
- package/dist/github-7ZT4KYQU.js +35 -0
- package/dist/graph/runtime.d.ts +633 -217
- package/dist/graph/runtime.js +1001 -370
- package/dist/graph/runtime.js.map +1 -1
- package/dist/index.d.ts +2617 -1945
- package/dist/index.js +108 -64
- package/dist/index.js.map +1 -1
- package/dist/{json-QTYN2JQB.js → json-VWXLDTXR.js} +13 -14
- package/dist/{labels-UM2AFR5S.js → labels-ZJK27RL3.js} +12 -13
- package/dist/{labels-UM2AFR5S.js.map → labels-ZJK27RL3.js.map} +1 -1
- package/dist/{lint-LOFNZZPR.js → lint-5OERIERT.js} +13 -13
- package/dist/{list-GU7S6KEX.js → list-MANBRF7Z.js} +13 -14
- package/dist/{list-EPMHOU7T.js → list-SEEANTU6.js} +15 -15
- package/dist/{page-25CN3AFY.js → page-O4M65KMJ.js} +13 -14
- package/dist/{prepare-5GYMBF4P.js → prepare-3WULLZER.js} +13 -13
- package/dist/{pretty-QW6OSYRS.js → pretty-5FRBLTXU.js} +13 -14
- package/dist/{pretty-52Z74O6F.js → pretty-D3M366JD.js} +14 -15
- package/dist/{reporters-WT53GD4P.js → reporters-4WWZRHKI.js} +4 -4
- package/dist/{reporters-FSXJ42EB.js → reporters-6TEJDXXO.js} +4 -4
- package/dist/{reporters-3FXX2W4X.js → reporters-GDCZ5P7C.js} +12 -12
- package/dist/{run-H7XJMUWK.js → run-TZDLG6EN.js} +16 -16
- package/dist/sarif-PUZAMEFQ.js +36 -0
- package/dist/{sarif-C427U3NA.js → sarif-SSSPOUCK.js} +11 -11
- package/dist/site/rehype.d.ts +33 -0
- package/dist/site/rehype.js +49 -0
- package/dist/site/rehype.js.map +1 -0
- package/dist/{term-VG65JRNR.js → term-DHWMUL5N.js} +18 -19
- package/dist/{term-VG65JRNR.js.map → term-DHWMUL5N.js.map} +1 -1
- package/dist/{types-VMOT7RAL.js → types-7N7ETP3W.js} +2 -2
- package/dist/{validate-K36F54UB.js → validate-4AW7KIIY.js} +5 -5
- package/package.json +10 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/shapes/graph/shapes-1.2.0.ttl +1161 -0
- package/dist/check-LVO4HZ3F.js +0 -36
- package/dist/chunk-2XRET3ZG.js.map +0 -1
- package/dist/chunk-3GLDB7MZ.js.map +0 -1
- package/dist/chunk-3WZQ2FR3.js +0 -236
- package/dist/chunk-3WZQ2FR3.js.map +0 -1
- package/dist/chunk-5OOQ3HQ3.js.map +0 -1
- package/dist/chunk-7GB3KEEM.js.map +0 -1
- package/dist/chunk-7UC55CAU.js.map +0 -1
- package/dist/chunk-B3XXCDYW.js.map +0 -1
- package/dist/chunk-D4ANAOY7.js.map +0 -1
- package/dist/chunk-GQQ2AX63.js.map +0 -1
- package/dist/chunk-IKEWBMCN.js +0 -98
- package/dist/chunk-IKEWBMCN.js.map +0 -1
- package/dist/chunk-NFJGIBES.js.map +0 -1
- package/dist/chunk-OJ7FEM2G.js.map +0 -1
- package/dist/chunk-WD33LE5A.js.map +0 -1
- package/dist/chunk-WDENIUC7.js.map +0 -1
- package/dist/chunk-WT3AATHC.js.map +0 -1
- package/dist/chunk-YUTVAMWW.js +0 -2
- package/dist/cli-BXUZ3KEQ.js.map +0 -1
- package/dist/cli-THEU2QG2.js.map +0 -1
- package/dist/github-ICZ5UDGX.js +0 -36
- package/dist/sarif-UVAFWZKS.js +0 -37
- /package/dist/{batch-L5W4JS7A.js.map → batch-SAW4E46C.js.map} +0 -0
- /package/dist/{build-GNZUVDZX.js.map → build-F6S3W77I.js.map} +0 -0
- /package/dist/{calibrate-2LYIDN6U.js.map → calibrate-3DW2VV7F.js.map} +0 -0
- /package/dist/{capture-OEDMFU5Z.js.map → capture-PKEYY2VO.js.map} +0 -0
- /package/dist/{check-JR2TYL2Y.js.map → check-7PUIHLFM.js.map} +0 -0
- /package/dist/{check-LVO4HZ3F.js.map → check-EZN7YNVF.js.map} +0 -0
- /package/dist/{check-NLLFHNWG.js.map → check-LRX2YFDF.js.map} +0 -0
- /package/dist/{check-Z5VGDSDT.js.map → check-NW7GHSX6.js.map} +0 -0
- /package/dist/{chunk-LEOQO3S6.js.map → chunk-2A5OIZHT.js.map} +0 -0
- /package/dist/{chunk-FU3OCYYH.js.map → chunk-2LCJNH73.js.map} +0 -0
- /package/dist/{chunk-6ANTGYNT.js.map → chunk-3446DW4W.js.map} +0 -0
- /package/dist/{chunk-YF6IZXAC.js.map → chunk-5QOTR53S.js.map} +0 -0
- /package/dist/{chunk-6YFEV7CM.js.map → chunk-64EDFJ5S.js.map} +0 -0
- /package/dist/{chunk-2AUULNIJ.js.map → chunk-ABAFKOQF.js.map} +0 -0
- /package/dist/{chunk-ZT5NUSZA.js.map → chunk-D3AO2PMV.js.map} +0 -0
- /package/dist/{chunk-EZCJPF72.js.map → chunk-DSJTYRI5.js.map} +0 -0
- /package/dist/{chunk-DTG6S2UG.js.map → chunk-FEURGKJC.js.map} +0 -0
- /package/dist/{chunk-EA5KKIFG.js.map → chunk-FPPHEHPZ.js.map} +0 -0
- /package/dist/{chunk-O6YTTBSN.js.map → chunk-KB4MNUKC.js.map} +0 -0
- /package/dist/{chunk-GR6QQ7GM.js.map → chunk-KCNBM42T.js.map} +0 -0
- /package/dist/{chunk-EOSQENQF.js.map → chunk-LDIUA4ZG.js.map} +0 -0
- /package/dist/{chunk-L3YGGYBG.js.map → chunk-M6DNOHJO.js.map} +0 -0
- /package/dist/{chunk-4L3JBAW4.js.map → chunk-MBLVLQWI.js.map} +0 -0
- /package/dist/{chunk-4HEEXPVX.js.map → chunk-MDXDTO7E.js.map} +0 -0
- /package/dist/{chunk-IGRXQC3H.js.map → chunk-N25KDXOV.js.map} +0 -0
- /package/dist/{chunk-DW22KCLN.js.map → chunk-NPZWOPOH.js.map} +0 -0
- /package/dist/{chunk-NDBISART.js.map → chunk-PS4Y7EPP.js.map} +0 -0
- /package/dist/{chunk-63GILHR5.js.map → chunk-QIKCIREY.js.map} +0 -0
- /package/dist/{chunk-ZJZQPOJO.js.map → chunk-QIWSEKA6.js.map} +0 -0
- /package/dist/{chunk-F6B2TNXU.js.map → chunk-TNYIXIYV.js.map} +0 -0
- /package/dist/{chunk-CSLJMML4.js.map → chunk-TUMR35B3.js.map} +0 -0
- /package/dist/{chunk-DSTRT6YD.js.map → chunk-U5NSIZRS.js.map} +0 -0
- /package/dist/{chunk-YUTVAMWW.js.map → chunk-UP6NBQ62.js.map} +0 -0
- /package/dist/{chunk-BMYCLTFK.js.map → chunk-VRMQSP7O.js.map} +0 -0
- /package/dist/{chunk-IM67NRUW.js.map → chunk-W7IEP7IG.js.map} +0 -0
- /package/dist/{chunk-5PO2BWZF.js.map → chunk-W7XOMNYC.js.map} +0 -0
- /package/dist/{chunk-PBZZUNDV.js.map → chunk-WP5EKWTU.js.map} +0 -0
- /package/dist/{chunk-LPBVWUKS.js.map → chunk-WZSL7KF2.js.map} +0 -0
- /package/dist/{chunk-GC47NBGO.js.map → chunk-XCEEJEVA.js.map} +0 -0
- /package/dist/{chunk-4LLYPDNG.js.map → chunk-XPGK4ECA.js.map} +0 -0
- /package/dist/{chunk-AWAXAJ6R.js.map → chunk-XRWQQHBR.js.map} +0 -0
- /package/dist/{chunk-IL62WATF.js.map → chunk-YJHHXM5B.js.map} +0 -0
- /package/dist/{chunk-NH6B6DDI.js.map → chunk-ZEYNLKOH.js.map} +0 -0
- /package/dist/{chunk-PHNAQ4QX.js.map → chunk-ZIXU7A4C.js.map} +0 -0
- /package/dist/{cli-5QTSTGTX.js.map → cli-D5WYQVUF.js.map} +0 -0
- /package/dist/{cli-4Y2XY52B.js.map → cli-FCGGNZ5C.js.map} +0 -0
- /package/dist/{cli-DBMPGGOV.js.map → cli-FNX4LXMI.js.map} +0 -0
- /package/dist/{cli-KAUXC7EZ.js.map → cli-LQRHK23G.js.map} +0 -0
- /package/dist/{cli-RWRYV5FB.js.map → cli-LRKBCQRS.js.map} +0 -0
- /package/dist/{cli-2EKRURBU.js.map → cli-NJC3H3CW.js.map} +0 -0
- /package/dist/{cli-2SDBEUER.js.map → cli-OHKWCJIJ.js.map} +0 -0
- /package/dist/{cli-TZ2OHF3H.js.map → cli-VC3BXCVR.js.map} +0 -0
- /package/dist/{github-ICZ5UDGX.js.map → github-6PV2JTZ7.js.map} +0 -0
- /package/dist/{github-UR6LMUMW.js.map → github-7ZT4KYQU.js.map} +0 -0
- /package/dist/{json-QTYN2JQB.js.map → json-VWXLDTXR.js.map} +0 -0
- /package/dist/{lint-LOFNZZPR.js.map → lint-5OERIERT.js.map} +0 -0
- /package/dist/{list-EPMHOU7T.js.map → list-MANBRF7Z.js.map} +0 -0
- /package/dist/{list-GU7S6KEX.js.map → list-SEEANTU6.js.map} +0 -0
- /package/dist/{page-25CN3AFY.js.map → page-O4M65KMJ.js.map} +0 -0
- /package/dist/{prepare-5GYMBF4P.js.map → prepare-3WULLZER.js.map} +0 -0
- /package/dist/{pretty-52Z74O6F.js.map → pretty-5FRBLTXU.js.map} +0 -0
- /package/dist/{pretty-QW6OSYRS.js.map → pretty-D3M366JD.js.map} +0 -0
- /package/dist/{reporters-3FXX2W4X.js.map → reporters-4WWZRHKI.js.map} +0 -0
- /package/dist/{reporters-FSXJ42EB.js.map → reporters-6TEJDXXO.js.map} +0 -0
- /package/dist/{reporters-WT53GD4P.js.map → reporters-GDCZ5P7C.js.map} +0 -0
- /package/dist/{run-H7XJMUWK.js.map → run-TZDLG6EN.js.map} +0 -0
- /package/dist/{sarif-C427U3NA.js.map → sarif-PUZAMEFQ.js.map} +0 -0
- /package/dist/{sarif-UVAFWZKS.js.map → sarif-SSSPOUCK.js.map} +0 -0
- /package/dist/{types-VMOT7RAL.js.map → types-7N7ETP3W.js.map} +0 -0
- /package/dist/{validate-K36F54UB.js.map → validate-4AW7KIIY.js.map} +0 -0
package/dist/graph/runtime.d.ts
CHANGED
|
@@ -1,113 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Graph derivation: DocModel[] → deduplicated Quad[]. This file is the
|
|
3
|
-
* vocabulary mapping — the deterministic rules for what documentation
|
|
4
|
-
* structure becomes which triples.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
type Term = {
|
|
8
|
-
kind: "iri";
|
|
9
|
-
value: string;
|
|
10
|
-
} | {
|
|
11
|
-
kind: "literal";
|
|
12
|
-
value: string;
|
|
13
|
-
datatype?: string;
|
|
14
|
-
/** A language tag, for a literal that carries one. Never set with `datatype`. */
|
|
15
|
-
language?: string;
|
|
16
|
-
};
|
|
17
|
-
interface Quad {
|
|
18
|
-
s: string;
|
|
19
|
-
p: string;
|
|
20
|
-
o: Term;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* `GraphIndex` — the browser-native in-memory graph (ADR 01018).
|
|
25
|
-
*
|
|
26
|
-
* Built from `graph.jsonld` (the Phase 6 export) with **no RDF parser**: that
|
|
27
|
-
* artifact is plain `JSON.parse`-able, deterministically sorted, and free of
|
|
28
|
-
* blank nodes, so a `Map`-based adjacency index is all the runtime needs. Node
|
|
29
|
-
* callers can also build from quads (`fromQuads`) so the CLI can read Turtle.
|
|
30
|
-
*
|
|
31
|
-
* Platform-neutral: no `node:` imports, no npm dependencies, no I/O — the
|
|
32
|
-
* caller supplies the bytes. Type-only imports are erased at build time.
|
|
33
|
-
*
|
|
34
|
-
* Every accessor returns deterministically sorted results, so traversal order
|
|
35
|
-
* (and therefore the trace) is byte-stable for a given graph.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/** An object value: an IRI reference or a literal. */
|
|
39
|
-
type Value = {
|
|
40
|
-
kind: "iri";
|
|
41
|
-
value: string;
|
|
42
|
-
} | {
|
|
43
|
-
kind: "literal";
|
|
44
|
-
value: string;
|
|
45
|
-
datatype?: string;
|
|
46
|
-
language?: string;
|
|
47
|
-
};
|
|
48
|
-
interface GraphNode {
|
|
49
|
-
id: string;
|
|
50
|
-
/** Full class IRIs, sorted. */
|
|
51
|
-
types: string[];
|
|
52
|
-
/** Full predicate IRI → values, in insertion-normalized sorted order. */
|
|
53
|
-
props: Map<string, Value[]>;
|
|
54
|
-
}
|
|
55
|
-
declare class GraphIndex {
|
|
56
|
-
private readonly nodes;
|
|
57
|
-
/** subject → predicate → object IRIs (sorted). */
|
|
58
|
-
private readonly outbound;
|
|
59
|
-
/** object → predicate → subject IRIs (sorted). */
|
|
60
|
-
private readonly inbound;
|
|
61
|
-
/** class IRI → instance IRIs (sorted). */
|
|
62
|
-
private readonly byType;
|
|
63
|
-
/** prefix → namespace, from the artifact's own `@context`. */
|
|
64
|
-
readonly context: Record<string, string>;
|
|
65
|
-
private constructor();
|
|
66
|
-
/**
|
|
67
|
-
* Build from a `graph.jsonld` document — a JSON string or the parsed object.
|
|
68
|
-
* CURIE keys and `@type` values are expanded using the document's own
|
|
69
|
-
* `@context`, so the index is self-describing.
|
|
70
|
-
*/
|
|
71
|
-
static fromJsonLd(input: string | object): GraphIndex;
|
|
72
|
-
/** Build from dockg's internal quad shape (the Node/CLI path). */
|
|
73
|
-
static fromQuads(quads: Quad[], context?: Record<string, string>): GraphIndex;
|
|
74
|
-
/** Expand a CURIE (`dcterms:title`) to a full IRI using `@context`. */
|
|
75
|
-
expand(term: string): string;
|
|
76
|
-
/** Compact a full IRI to a CURIE when a context namespace matches. */
|
|
77
|
-
compact(iri: string): string;
|
|
78
|
-
private addJsonLdNode;
|
|
79
|
-
private toValue;
|
|
80
|
-
private ensureNode;
|
|
81
|
-
private addTriple;
|
|
82
|
-
/** Sort every collection so traversal order is deterministic. */
|
|
83
|
-
private finalize;
|
|
84
|
-
/** Every node IRI, sorted. */
|
|
85
|
-
ids(): string[];
|
|
86
|
-
size(): number;
|
|
87
|
-
node(iri: string): GraphNode | undefined;
|
|
88
|
-
has(iri: string): boolean;
|
|
89
|
-
/** Class IRIs of a node, sorted. */
|
|
90
|
-
types(iri: string): string[];
|
|
91
|
-
/** Instances of a class, sorted. */
|
|
92
|
-
instancesOf(classIri: string): string[];
|
|
93
|
-
/** All values for a predicate, sorted. */
|
|
94
|
-
values(iri: string, predicate: string): Value[];
|
|
95
|
-
/** Literal lexical forms for a predicate, sorted. */
|
|
96
|
-
literals(iri: string, predicate: string): string[];
|
|
97
|
-
/** The first literal for a predicate, if any. */
|
|
98
|
-
literal(iri: string, predicate: string): string | undefined;
|
|
99
|
-
/** Outbound IRI targets: all predicates, or one. Sorted. */
|
|
100
|
-
out(iri: string, predicate?: string): Array<{
|
|
101
|
-
predicate: string;
|
|
102
|
-
target: string;
|
|
103
|
-
}>;
|
|
104
|
-
/** Inbound IRI sources (who points at this node). Sorted. */
|
|
105
|
-
in(iri: string, predicate?: string): Array<{
|
|
106
|
-
predicate: string;
|
|
107
|
-
target: string;
|
|
108
|
-
}>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
1
|
/**
|
|
112
2
|
* Query trace — the explainability contract (ADR 01018). Every runtime stage
|
|
113
3
|
* appends to a trace, and no API returns results without one: retrieval
|
|
@@ -181,87 +71,6 @@ declare function createTrace(): QueryTrace;
|
|
|
181
71
|
*/
|
|
182
72
|
declare function reachedNodes(trace: QueryTrace): Set<string>;
|
|
183
73
|
|
|
184
|
-
type Direction = "out" | "in" | "both";
|
|
185
|
-
interface ScopeFilter {
|
|
186
|
-
/** Product variant: an IRI, a `dcterms:title` (e.g. "SP-X100"), or a slug. */
|
|
187
|
-
variant?: string;
|
|
188
|
-
/** Software subject: an IRI or a `graph.about-product-aspect` value (e.g. "architecture"). */
|
|
189
|
-
subject?: string;
|
|
190
|
-
/**
|
|
191
|
-
* BCP-47 tag (ADR 01037). Matched against `dcterms:language` after both are
|
|
192
|
-
* canonicalized, since tags are case-insensitive. There is no fallback:
|
|
193
|
-
* `de-AT` is not `de`, because relatedness between locales is an inference
|
|
194
|
-
* and this runtime does not infer.
|
|
195
|
-
*/
|
|
196
|
-
language?: string;
|
|
197
|
-
}
|
|
198
|
-
interface TraverseOptions extends ScopeFilter {
|
|
199
|
-
/** Starting nodes (IRIs). */
|
|
200
|
-
seeds: string[];
|
|
201
|
-
/** Maximum hops from a seed. Default 1. */
|
|
202
|
-
depth?: number;
|
|
203
|
-
/** Restrict to these predicates (full IRIs). Default: every predicate. */
|
|
204
|
-
predicates?: string[];
|
|
205
|
-
/** Which edge directions to follow. Default "out". */
|
|
206
|
-
direction?: Direction;
|
|
207
|
-
/** Stop after this many nodes (seeds included). */
|
|
208
|
-
limit?: number;
|
|
209
|
-
/**
|
|
210
|
-
* Follow `rdf:type` edges into class nodes. Default false, deliberately:
|
|
211
|
-
* class nodes are schema, not content, and every document shares them — so
|
|
212
|
-
* traversing them makes every document reachable from every other in two
|
|
213
|
-
* hops (`a → graph:Document → b`). That is exactly the edge contamination
|
|
214
|
-
* graph-governed retrieval exists to avoid. A `predicates` list that names
|
|
215
|
-
* `rdf:type` follows them too, because it asked for them by name.
|
|
216
|
-
*/
|
|
217
|
-
includeTypeEdges?: boolean;
|
|
218
|
-
/** Append to an existing trace instead of starting a new one. */
|
|
219
|
-
trace?: QueryTrace;
|
|
220
|
-
}
|
|
221
|
-
interface TraversedNode {
|
|
222
|
-
iri: string;
|
|
223
|
-
/** Hops from the nearest seed; seeds are 0. */
|
|
224
|
-
depth: number;
|
|
225
|
-
}
|
|
226
|
-
interface TraverseResult {
|
|
227
|
-
nodes: TraversedNode[];
|
|
228
|
-
trace: QueryTrace;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Resolve a variant input to its IRI: an exact node IRI, a `dcterms:title`
|
|
232
|
-
* match on an `iirds:ProductVariant`, or a trailing-segment slug match.
|
|
233
|
-
*/
|
|
234
|
-
declare function resolveVariant(graph: GraphIndex, input: string): string | undefined;
|
|
235
|
-
/** Resolve a software-subject input to its iiRDS IRI. */
|
|
236
|
-
declare function resolveSubject(graph: GraphIndex, input: string): string | undefined;
|
|
237
|
-
/**
|
|
238
|
-
* Decide whether a node survives the scope filter, and if not, why.
|
|
239
|
-
*
|
|
240
|
-
* Rules, in the spirit of ADR 01014 (absence of a positive claim is not a
|
|
241
|
-
* negative claim, so both polarities are explicit):
|
|
242
|
-
* - An explicit negative (`graph:notApplicableToVariant` /
|
|
243
|
-
* `graph:notSoftwareSubject`) naming the target **excludes** the node.
|
|
244
|
-
* - A node that declares a positive set which omits the target is **excluded**
|
|
245
|
-
* — it scoped itself elsewhere — recorded under the positive predicate so
|
|
246
|
-
* the trace distinguishes this from an explicit negative.
|
|
247
|
-
* - A node that makes no claim is **kept**: unscoped content applies broadly.
|
|
248
|
-
*/
|
|
249
|
-
declare function scopeExclusion(graph: GraphIndex, iri: string, scope: {
|
|
250
|
-
variantIri?: string;
|
|
251
|
-
subjectIri?: string;
|
|
252
|
-
language?: string;
|
|
253
|
-
}): ScopeExclusion | undefined;
|
|
254
|
-
/** Breadth-first traversal with scope filtering and full trace recording. */
|
|
255
|
-
declare function traverse(graph: GraphIndex, options: TraverseOptions): TraverseResult;
|
|
256
|
-
/** Who links to this node (one hop inbound over `dcterms:references`). */
|
|
257
|
-
declare function reverseReferences(graph: GraphIndex, iri: string, options?: Omit<TraverseOptions, "seeds" | "direction" | "predicates">): TraverseResult;
|
|
258
|
-
/**
|
|
259
|
-
* Transitive inbound reach — "what is affected if this node changes".
|
|
260
|
-
* Excludes the node itself from the returned set. Defaults to depth 3 rather
|
|
261
|
-
* than the walker's 1, because impact analysis is only useful transitively.
|
|
262
|
-
*/
|
|
263
|
-
declare function impact(graph: GraphIndex, iri: string, options?: Omit<TraverseOptions, "seeds" | "direction">): TraverseResult;
|
|
264
|
-
|
|
265
74
|
interface ResolvedContent {
|
|
266
75
|
iri: string;
|
|
267
76
|
text: string;
|
|
@@ -350,10 +159,91 @@ declare function sliceSection(markdown: string, title: string, level?: number, o
|
|
|
350
159
|
*/
|
|
351
160
|
declare function sectionOwnText(markdown: string, title: string, level?: number, occurrence?: number): string | undefined;
|
|
352
161
|
/**
|
|
353
|
-
* A resolver that fetches document sources over HTTP. Documents map through
|
|
354
|
-
* `graph:path`; sections slice their parent document by heading.
|
|
162
|
+
* A resolver that fetches document sources over HTTP. Documents map through
|
|
163
|
+
* `graph:path`; sections slice their parent document by heading.
|
|
164
|
+
*/
|
|
165
|
+
declare function createFetchResolver(graph: GraphIndex, options?: FetchResolverOptions): ContentResolver;
|
|
166
|
+
|
|
167
|
+
type Direction = "out" | "in" | "both";
|
|
168
|
+
interface ScopeFilter {
|
|
169
|
+
/** Product variant: an IRI, a `dcterms:title` (e.g. "SP-X100"), or a slug. */
|
|
170
|
+
variant?: string;
|
|
171
|
+
/** Software subject: an IRI or a `graph.about-product-aspect` value (e.g. "architecture"). */
|
|
172
|
+
subject?: string;
|
|
173
|
+
/**
|
|
174
|
+
* BCP-47 tag (ADR 01037). Matched against `dcterms:language` after both are
|
|
175
|
+
* canonicalized, since tags are case-insensitive. There is no fallback:
|
|
176
|
+
* `de-AT` is not `de`, because relatedness between locales is an inference
|
|
177
|
+
* and this runtime does not infer.
|
|
178
|
+
*/
|
|
179
|
+
language?: string;
|
|
180
|
+
}
|
|
181
|
+
interface TraverseOptions extends ScopeFilter {
|
|
182
|
+
/** Starting nodes (IRIs). */
|
|
183
|
+
seeds: string[];
|
|
184
|
+
/** Maximum hops from a seed. Default 1. */
|
|
185
|
+
depth?: number;
|
|
186
|
+
/** Restrict to these predicates (full IRIs). Default: every predicate. */
|
|
187
|
+
predicates?: string[];
|
|
188
|
+
/** Which edge directions to follow. Default "out". */
|
|
189
|
+
direction?: Direction;
|
|
190
|
+
/** Stop after this many nodes (seeds included). */
|
|
191
|
+
limit?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Follow `rdf:type` edges into class nodes. Default false, deliberately:
|
|
194
|
+
* class nodes are schema, not content, and every document shares them — so
|
|
195
|
+
* traversing them makes every document reachable from every other in two
|
|
196
|
+
* hops (`a → graph:Document → b`). That is exactly the edge contamination
|
|
197
|
+
* graph-governed retrieval exists to avoid. A `predicates` list that names
|
|
198
|
+
* `rdf:type` follows them too, because it asked for them by name.
|
|
199
|
+
*/
|
|
200
|
+
includeTypeEdges?: boolean;
|
|
201
|
+
/** Append to an existing trace instead of starting a new one. */
|
|
202
|
+
trace?: QueryTrace;
|
|
203
|
+
}
|
|
204
|
+
interface TraversedNode {
|
|
205
|
+
iri: string;
|
|
206
|
+
/** Hops from the nearest seed; seeds are 0. */
|
|
207
|
+
depth: number;
|
|
208
|
+
}
|
|
209
|
+
interface TraverseResult {
|
|
210
|
+
nodes: TraversedNode[];
|
|
211
|
+
trace: QueryTrace;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Resolve a variant input to its IRI: an exact node IRI, a `dcterms:title`
|
|
215
|
+
* match on an `iirds:ProductVariant`, or a trailing-segment slug match.
|
|
216
|
+
*/
|
|
217
|
+
declare function resolveVariant(graph: GraphIndex, input: string): string | undefined;
|
|
218
|
+
/** Resolve a software-subject input to its iiRDS IRI. */
|
|
219
|
+
declare function resolveSubject(graph: GraphIndex, input: string): string | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* Decide whether a node survives the scope filter, and if not, why.
|
|
222
|
+
*
|
|
223
|
+
* Rules, in the spirit of ADR 01014 (absence of a positive claim is not a
|
|
224
|
+
* negative claim, so both polarities are explicit):
|
|
225
|
+
* - An explicit negative (`graph:notApplicableToVariant` /
|
|
226
|
+
* `graph:notSoftwareSubject`) naming the target **excludes** the node.
|
|
227
|
+
* - A node that declares a positive set which omits the target is **excluded**
|
|
228
|
+
* — it scoped itself elsewhere — recorded under the positive predicate so
|
|
229
|
+
* the trace distinguishes this from an explicit negative.
|
|
230
|
+
* - A node that makes no claim is **kept**: unscoped content applies broadly.
|
|
231
|
+
*/
|
|
232
|
+
declare function scopeExclusion(graph: GraphIndex, iri: string, scope: {
|
|
233
|
+
variantIri?: string;
|
|
234
|
+
subjectIri?: string;
|
|
235
|
+
language?: string;
|
|
236
|
+
}): ScopeExclusion | undefined;
|
|
237
|
+
/** Breadth-first traversal with scope filtering and full trace recording. */
|
|
238
|
+
declare function traverse(graph: GraphIndex, options: TraverseOptions): TraverseResult;
|
|
239
|
+
/** Who links to this node (one hop inbound over `dcterms:references`). */
|
|
240
|
+
declare function reverseReferences(graph: GraphIndex, iri: string, options?: Omit<TraverseOptions, "seeds" | "direction" | "predicates">): TraverseResult;
|
|
241
|
+
/**
|
|
242
|
+
* Transitive inbound reach — "what is affected if this node changes".
|
|
243
|
+
* Excludes the node itself from the returned set. Defaults to depth 3 rather
|
|
244
|
+
* than the walker's 1, because impact analysis is only useful transitively.
|
|
355
245
|
*/
|
|
356
|
-
declare function
|
|
246
|
+
declare function impact(graph: GraphIndex, iri: string, options?: Omit<TraverseOptions, "seeds" | "direction">): TraverseResult;
|
|
357
247
|
|
|
358
248
|
/**
|
|
359
249
|
* Context assembly (ADR 01018) — the runtime's terminal stage.
|
|
@@ -384,7 +274,13 @@ interface Citation {
|
|
|
384
274
|
title?: string;
|
|
385
275
|
sourceUrl: string;
|
|
386
276
|
}
|
|
387
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Why nothing was served. `assemble` gives the first two; the served cores
|
|
279
|
+
* (proposal 0090) add a trust floor that left out every match, a corpus with
|
|
280
|
+
* several languages and none named (never from `lookup`), a start node the
|
|
281
|
+
* graph lacks, and a scope filter that names nothing.
|
|
282
|
+
*/
|
|
283
|
+
type RefusalReason = "no-route" | "no-content" | "withheld" | "lang-required" | "unknown-node" | "unknown-scope";
|
|
388
284
|
interface Refusal {
|
|
389
285
|
reason: RefusalReason;
|
|
390
286
|
detail: string;
|
|
@@ -434,35 +330,268 @@ interface AssembleOptions {
|
|
|
434
330
|
*/
|
|
435
331
|
declare function assemble(resolver: ContentResolver, nodes: TraversedNode[], options?: AssembleOptions): Promise<RetrievalBundle>;
|
|
436
332
|
|
|
437
|
-
|
|
438
|
-
|
|
333
|
+
/**
|
|
334
|
+
* Graph derivation: DocModel[] → deduplicated Quad[]. This file is the
|
|
335
|
+
* vocabulary mapping — the deterministic rules for what documentation
|
|
336
|
+
* structure becomes which triples.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
type Term = {
|
|
340
|
+
kind: "iri";
|
|
341
|
+
value: string;
|
|
342
|
+
} | {
|
|
343
|
+
kind: "literal";
|
|
439
344
|
value: string;
|
|
345
|
+
datatype?: string;
|
|
346
|
+
/** A language tag, for a literal that carries one. Never set with `datatype`. */
|
|
440
347
|
language?: string;
|
|
441
|
-
|
|
442
|
-
|
|
348
|
+
};
|
|
349
|
+
interface Quad {
|
|
350
|
+
s: string;
|
|
351
|
+
p: string;
|
|
352
|
+
o: Term;
|
|
443
353
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* `GraphIndex` — the browser-native in-memory graph (ADR 01018).
|
|
357
|
+
*
|
|
358
|
+
* Built from `graph.jsonld` (the Phase 6 export) with **no RDF parser**: that
|
|
359
|
+
* artifact is plain `JSON.parse`-able, deterministically sorted, and free of
|
|
360
|
+
* blank nodes, so a `Map`-based adjacency index is all the runtime needs. Node
|
|
361
|
+
* callers can also build from quads (`fromQuads`) so the CLI can read Turtle.
|
|
362
|
+
*
|
|
363
|
+
* Platform-neutral: no `node:` imports, no npm dependencies, no I/O — the
|
|
364
|
+
* caller supplies the bytes. Type-only imports are erased at build time.
|
|
365
|
+
*
|
|
366
|
+
* Every accessor returns deterministically sorted results, so traversal order
|
|
367
|
+
* (and therefore the trace) is byte-stable for a given graph.
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
/** An object value: an IRI reference or a literal. */
|
|
371
|
+
type Value = {
|
|
372
|
+
kind: "iri";
|
|
373
|
+
value: string;
|
|
374
|
+
} | {
|
|
375
|
+
kind: "literal";
|
|
376
|
+
value: string;
|
|
377
|
+
datatype?: string;
|
|
378
|
+
language?: string;
|
|
379
|
+
};
|
|
380
|
+
interface GraphNode {
|
|
381
|
+
id: string;
|
|
382
|
+
/** Full class IRIs, sorted. */
|
|
383
|
+
types: string[];
|
|
384
|
+
/** Full predicate IRI → values, in insertion-normalized sorted order. */
|
|
385
|
+
props: Map<string, Value[]>;
|
|
451
386
|
}
|
|
452
|
-
declare
|
|
453
|
-
|
|
454
|
-
|
|
387
|
+
declare class GraphIndex {
|
|
388
|
+
private readonly nodes;
|
|
389
|
+
/** subject → predicate → object IRIs (sorted). */
|
|
390
|
+
private readonly outbound;
|
|
391
|
+
/** object → predicate → subject IRIs (sorted). */
|
|
392
|
+
private readonly inbound;
|
|
393
|
+
/** class IRI → instance IRIs (sorted). */
|
|
394
|
+
private readonly byType;
|
|
395
|
+
/** prefix → namespace, from the artifact's own `@context`. */
|
|
396
|
+
readonly context: Record<string, string>;
|
|
397
|
+
private constructor();
|
|
398
|
+
/**
|
|
399
|
+
* Build from a `graph.jsonld` document — a JSON string or the parsed object.
|
|
400
|
+
* CURIE keys and `@type` values are expanded using the document's own
|
|
401
|
+
* `@context`, so the index is self-describing.
|
|
402
|
+
*/
|
|
403
|
+
static fromJsonLd(input: string | object): GraphIndex;
|
|
404
|
+
/** Build from dockg's internal quad shape (the Node/CLI path). */
|
|
405
|
+
static fromQuads(quads: Quad[], context?: Record<string, string>): GraphIndex;
|
|
406
|
+
/** Expand a CURIE (`dcterms:title`) to a full IRI using `@context`. */
|
|
407
|
+
expand(term: string): string;
|
|
408
|
+
/** Compact a full IRI to a CURIE when a context namespace matches. */
|
|
409
|
+
compact(iri: string): string;
|
|
410
|
+
private addJsonLdNode;
|
|
411
|
+
private toValue;
|
|
412
|
+
private ensureNode;
|
|
413
|
+
private addTriple;
|
|
414
|
+
/** Sort every collection so traversal order is deterministic. */
|
|
415
|
+
private finalize;
|
|
416
|
+
/** Every node IRI, sorted. */
|
|
417
|
+
ids(): string[];
|
|
418
|
+
size(): number;
|
|
419
|
+
node(iri: string): GraphNode | undefined;
|
|
420
|
+
has(iri: string): boolean;
|
|
421
|
+
/** Class IRIs of a node, sorted. */
|
|
422
|
+
types(iri: string): string[];
|
|
423
|
+
/** Instances of a class, sorted. */
|
|
424
|
+
instancesOf(classIri: string): string[];
|
|
425
|
+
/** All values for a predicate, sorted. */
|
|
426
|
+
values(iri: string, predicate: string): Value[];
|
|
427
|
+
/** Literal lexical forms for a predicate, sorted. */
|
|
428
|
+
literals(iri: string, predicate: string): string[];
|
|
429
|
+
/** The first literal for a predicate, if any. */
|
|
430
|
+
literal(iri: string, predicate: string): string | undefined;
|
|
431
|
+
/** Outbound IRI targets: all predicates, or one. Sorted. */
|
|
432
|
+
out(iri: string, predicate?: string): Array<{
|
|
433
|
+
predicate: string;
|
|
434
|
+
target: string;
|
|
435
|
+
}>;
|
|
436
|
+
/** Inbound IRI sources (who points at this node). Sorted. */
|
|
437
|
+
in(iri: string, predicate?: string): Array<{
|
|
438
|
+
predicate: string;
|
|
439
|
+
target: string;
|
|
440
|
+
}>;
|
|
441
|
+
}
|
|
442
|
+
|
|
455
443
|
/**
|
|
456
|
-
* The
|
|
457
|
-
*
|
|
444
|
+
* The chunk artifact's shapes (proposal 0090): `chunks.json`, the manifest,
|
|
445
|
+
* and one `chunks.<tag>.jsonl` row per servable passage, each carrying its
|
|
446
|
+
* provenance record. `manni graph export chunks` writes them on the Node side;
|
|
447
|
+
* every host reads them. Types only, so the runtime bundle stays
|
|
448
|
+
* platform-neutral.
|
|
458
449
|
*/
|
|
459
|
-
|
|
450
|
+
/** What a pin's finding says: cite's rule, at the severity `cite.severity` resolves. */
|
|
451
|
+
interface PinFinding {
|
|
452
|
+
rule: string;
|
|
453
|
+
severity: "notice" | "warning" | "error";
|
|
454
|
+
}
|
|
455
|
+
/** One citation pin whose claim overlaps the passage. */
|
|
456
|
+
interface PinItem {
|
|
457
|
+
/** The citation's `id`, when it has one. */
|
|
458
|
+
id: string | null;
|
|
459
|
+
/** The body lines the claim occupies now: `N` or `N-M`. */
|
|
460
|
+
claim: string;
|
|
461
|
+
/** `path:lines` as the entry spells it; an encrypted path stays its token. */
|
|
462
|
+
source: string;
|
|
463
|
+
/** The commit the source end was recorded at, as recorded, or `null`. */
|
|
464
|
+
commit: string | null;
|
|
465
|
+
/** Empty means current. */
|
|
466
|
+
findings: PinFinding[];
|
|
467
|
+
/** The entry's `last-verified` as written, or `null`. */
|
|
468
|
+
lastVerified: string | null;
|
|
469
|
+
/** The entry's `verified-by` entries, or `[]`. */
|
|
470
|
+
verifiedBy: unknown[];
|
|
471
|
+
}
|
|
472
|
+
interface PinSummary {
|
|
473
|
+
total: number;
|
|
474
|
+
current: number;
|
|
475
|
+
notice: number;
|
|
476
|
+
warning: number;
|
|
477
|
+
error: number;
|
|
478
|
+
items: PinItem[];
|
|
479
|
+
}
|
|
460
480
|
/**
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
*
|
|
481
|
+
* A merge-safe date (proposals 0069, 0072): the derived UTC day, and whether
|
|
482
|
+
* the page names it. `stamp` is `null` exactly when `day` is: with no derived
|
|
483
|
+
* day there is nothing to compare the page against.
|
|
464
484
|
*/
|
|
465
|
-
|
|
485
|
+
interface DerivedDate {
|
|
486
|
+
day: string | null;
|
|
487
|
+
stamp: "current" | "stale" | "absent" | null;
|
|
488
|
+
}
|
|
489
|
+
interface ProvenanceDates {
|
|
490
|
+
created: DerivedDate;
|
|
491
|
+
lastUpdated: DerivedDate;
|
|
492
|
+
/** The page's `last-verified` as written, or `null`. */
|
|
493
|
+
lastVerified: string | null;
|
|
494
|
+
/** The page's `verified-by` entries, or `[]`. */
|
|
495
|
+
verifiedBy: unknown[];
|
|
496
|
+
}
|
|
497
|
+
interface EvalItem {
|
|
498
|
+
name: string;
|
|
499
|
+
suite: string;
|
|
500
|
+
grader: string;
|
|
501
|
+
outcome: "pass" | "fail" | "needs-review" | "skipped" | "error";
|
|
502
|
+
confidence?: number;
|
|
503
|
+
}
|
|
504
|
+
interface ProvenanceEvals {
|
|
505
|
+
/** `sha256-<64 hex>` of the report the verdicts came from. */
|
|
506
|
+
report: string;
|
|
507
|
+
/** Whether the page still has the bytes the verdicts judged. */
|
|
508
|
+
current: boolean;
|
|
509
|
+
pass: number;
|
|
510
|
+
fail: number;
|
|
511
|
+
needsReview: number;
|
|
512
|
+
skipped: number;
|
|
513
|
+
error: number;
|
|
514
|
+
items: EvalItem[];
|
|
515
|
+
}
|
|
516
|
+
/** A statement (proposal 0099) anchored inside the passage: on a block, or on a section's heading. */
|
|
517
|
+
interface PassageStatement {
|
|
518
|
+
/** Body lines, `N-M`. */
|
|
519
|
+
lines: string;
|
|
520
|
+
status: "current" | "changed" | "unpinned";
|
|
521
|
+
/** Its delivered fields. */
|
|
522
|
+
data: Record<string, unknown>;
|
|
523
|
+
}
|
|
524
|
+
/** The proof one served passage carries. Self-contained: copied out alone, it still says what it describes. */
|
|
525
|
+
interface ProvenanceRecord {
|
|
526
|
+
node: string;
|
|
527
|
+
page: string;
|
|
528
|
+
lines: string;
|
|
529
|
+
/** The docs commit, or `null` outside git. */
|
|
530
|
+
commit: string | null;
|
|
531
|
+
worktree: "clean" | "modified" | null;
|
|
532
|
+
pins: PinSummary;
|
|
533
|
+
dates: ProvenanceDates;
|
|
534
|
+
/** `null` when no docevals report was given. */
|
|
535
|
+
evals: ProvenanceEvals | null;
|
|
536
|
+
statements: PassageStatement[];
|
|
537
|
+
}
|
|
538
|
+
/** One line of `chunks.<tag>.jsonl`. */
|
|
539
|
+
interface ChunkRow {
|
|
540
|
+
/** The graph node IRI. */
|
|
541
|
+
id: string;
|
|
542
|
+
/** The digest of the graph the row was built from. */
|
|
543
|
+
graph: string;
|
|
544
|
+
page: string;
|
|
545
|
+
/** Body lines, `N-M`. */
|
|
546
|
+
lines: string;
|
|
547
|
+
language: string;
|
|
548
|
+
title: string;
|
|
549
|
+
text: string;
|
|
550
|
+
/** Present when the manifest names a model for the row's language. */
|
|
551
|
+
vector?: number[];
|
|
552
|
+
/** The page's delivered fields, overlaid by its heading statements down to this section. */
|
|
553
|
+
metadata: Record<string, unknown>;
|
|
554
|
+
provenance: ProvenanceRecord;
|
|
555
|
+
}
|
|
556
|
+
type WithholdReason = "drifted" | "failing";
|
|
557
|
+
/** `chunks.json`. Keys are sorted, and nothing in it reads the wall clock. */
|
|
558
|
+
interface ChunksManifest {
|
|
559
|
+
format: "manni-graph-chunks";
|
|
560
|
+
version: 1;
|
|
561
|
+
/** `sha256-<64 hex>` of `graphFile`. */
|
|
562
|
+
graph: string;
|
|
563
|
+
graphFile: string;
|
|
564
|
+
searchIndex: string;
|
|
565
|
+
commit: string | null;
|
|
566
|
+
worktree: "clean" | "modified" | null;
|
|
567
|
+
retrieve: {
|
|
568
|
+
seeds: number;
|
|
569
|
+
depth: number;
|
|
570
|
+
maxChars: number;
|
|
571
|
+
withhold: WithholdReason[];
|
|
572
|
+
};
|
|
573
|
+
evals: {
|
|
574
|
+
report: string;
|
|
575
|
+
digest: string;
|
|
576
|
+
} | null;
|
|
577
|
+
/** Each language's rows, and the model its vector sidecar was embedded with, or `null` without one. */
|
|
578
|
+
languages: Record<string, {
|
|
579
|
+
file: string;
|
|
580
|
+
rows: number;
|
|
581
|
+
model: {
|
|
582
|
+
id: string;
|
|
583
|
+
dimensions: number;
|
|
584
|
+
} | null;
|
|
585
|
+
}>;
|
|
586
|
+
pages: Record<string, {
|
|
587
|
+
metadata: Record<string, unknown>;
|
|
588
|
+
}>;
|
|
589
|
+
withheld: {
|
|
590
|
+
id: string;
|
|
591
|
+
page: string;
|
|
592
|
+
because: WithholdReason[];
|
|
593
|
+
}[];
|
|
594
|
+
}
|
|
466
595
|
|
|
467
596
|
/** One indexable node. Empty fields are omitted so the artifact stays tight. */
|
|
468
597
|
interface SearchEntry {
|
|
@@ -699,6 +828,293 @@ declare function rrfMerge(rankings: EntryCandidate[][], k?: number): EntryCandid
|
|
|
699
828
|
*/
|
|
700
829
|
declare function findEntry(query: string, options: FindEntryOptions): Promise<EntryResult>;
|
|
701
830
|
|
|
831
|
+
/** One condition on a chunk row's `metadata`. A list field matches when it contains the value. */
|
|
832
|
+
interface WhereCondition {
|
|
833
|
+
field: string;
|
|
834
|
+
value: string;
|
|
835
|
+
}
|
|
836
|
+
/** What a vector store is asked. `vector` is `null` when the host did not embed the query. */
|
|
837
|
+
interface VectorStoreQuery {
|
|
838
|
+
text: string;
|
|
839
|
+
vector: number[] | null;
|
|
840
|
+
k: number;
|
|
841
|
+
language: string | null;
|
|
842
|
+
/** Every condition must hold. Empty when the caller set none. */
|
|
843
|
+
where: WhereCondition[];
|
|
844
|
+
}
|
|
845
|
+
interface VectorStoreMatch {
|
|
846
|
+
id: string;
|
|
847
|
+
score: number;
|
|
848
|
+
/** The row, when the store holds it. Otherwise the id is read through the `ChunkSource`. */
|
|
849
|
+
row?: ChunkRow;
|
|
850
|
+
}
|
|
851
|
+
/** Ranks chunk rows for a query. */
|
|
852
|
+
interface VectorStore {
|
|
853
|
+
query(q: VectorStoreQuery): Promise<VectorStoreMatch[]>;
|
|
854
|
+
}
|
|
855
|
+
/** Reads chunk rows by id, from one language or, with `null`, from every one. */
|
|
856
|
+
interface ChunkSource {
|
|
857
|
+
get(ids: string[], language: string | null): Promise<ChunkRow[]>;
|
|
858
|
+
}
|
|
859
|
+
/** A `fetch` as the runtime uses it: GET for files, POST for the HTTP store. */
|
|
860
|
+
type RetrieverFetch = (url: string, init?: {
|
|
861
|
+
method: string;
|
|
862
|
+
headers: Record<string, string>;
|
|
863
|
+
body: string;
|
|
864
|
+
}) => Promise<{
|
|
865
|
+
ok: boolean;
|
|
866
|
+
status: number;
|
|
867
|
+
text(): Promise<string>;
|
|
868
|
+
}>;
|
|
869
|
+
/** The rows or the graph were built from another graph than the manifest names. */
|
|
870
|
+
declare class StaleArtifactError extends Error {
|
|
871
|
+
constructor(manifestGraph: string, found: string, file?: string);
|
|
872
|
+
}
|
|
873
|
+
/** The query embedder is not the model the queried language's rows were embedded with. */
|
|
874
|
+
declare class ModelMismatchError extends Error {
|
|
875
|
+
readonly expected: string;
|
|
876
|
+
readonly actual: string;
|
|
877
|
+
constructor(expected: string, actual: string);
|
|
878
|
+
}
|
|
879
|
+
type PassageRole = "match" | "context" | "dependent";
|
|
880
|
+
interface WithheldNode {
|
|
881
|
+
node: string;
|
|
882
|
+
because: WithholdReason[];
|
|
883
|
+
/** `export` when the rows left it out, `query` when this call did. */
|
|
884
|
+
at: "export" | "query";
|
|
885
|
+
}
|
|
886
|
+
interface FilteredNode {
|
|
887
|
+
node: string;
|
|
888
|
+
/** The first `where` field the row did not satisfy. */
|
|
889
|
+
field: string;
|
|
890
|
+
}
|
|
891
|
+
/** The trace a served result carries: the walk's, plus what the trust floor and the filter left out. */
|
|
892
|
+
interface RetrievalTrace {
|
|
893
|
+
entry: {
|
|
894
|
+
/** The ranked entry candidates that became matches, or the node a walk started from. */
|
|
895
|
+
candidates: EntryCandidate[];
|
|
896
|
+
/** `"lexical"` when the vector path was wanted and unavailable. */
|
|
897
|
+
fallback?: "lexical";
|
|
898
|
+
/** On `lookup`: each language's best entry score. */
|
|
899
|
+
languages?: Record<string, number>;
|
|
900
|
+
/** On `lookup`: the language chosen. */
|
|
901
|
+
chosen?: string;
|
|
902
|
+
};
|
|
903
|
+
hops: Hop[];
|
|
904
|
+
exclusions: ScopeExclusion[];
|
|
905
|
+
resolutions: Resolution[];
|
|
906
|
+
withheld: WithheldNode[];
|
|
907
|
+
filtered: FilteredNode[];
|
|
908
|
+
}
|
|
909
|
+
/** One served passage in a bundle. */
|
|
910
|
+
interface PassageBlock extends ContextBlock {
|
|
911
|
+
title: string;
|
|
912
|
+
page: string;
|
|
913
|
+
provenance: ProvenanceRecord;
|
|
914
|
+
role: PassageRole;
|
|
915
|
+
}
|
|
916
|
+
/** What `retrieve`, `traverse` and `impact` return. */
|
|
917
|
+
interface PassageBundle {
|
|
918
|
+
/** The question, on `retrieve`. */
|
|
919
|
+
question?: string;
|
|
920
|
+
/** The node the walk started from, on `traverse` and `impact`. */
|
|
921
|
+
node?: string;
|
|
922
|
+
language: string | null;
|
|
923
|
+
context: PassageBlock[];
|
|
924
|
+
citations: Citation[];
|
|
925
|
+
/** The delivered fields of each cited page, once per page. */
|
|
926
|
+
pages: Record<string, {
|
|
927
|
+
metadata: Record<string, unknown>;
|
|
928
|
+
}>;
|
|
929
|
+
trace: RetrievalTrace;
|
|
930
|
+
/** Present when nothing could be served. `context` is then empty. */
|
|
931
|
+
refusal?: Refusal;
|
|
932
|
+
/** True when the budget dropped a passage. */
|
|
933
|
+
truncated: boolean;
|
|
934
|
+
}
|
|
935
|
+
interface LookupPassage {
|
|
936
|
+
iri: string;
|
|
937
|
+
title: string;
|
|
938
|
+
page: string;
|
|
939
|
+
lines: string;
|
|
940
|
+
/** `null` when the section's budget ran out before it. */
|
|
941
|
+
text: string | null;
|
|
942
|
+
truncated: boolean;
|
|
943
|
+
provenance: ProvenanceRecord;
|
|
944
|
+
}
|
|
945
|
+
interface LookupMatch extends LookupPassage {
|
|
946
|
+
rank: number;
|
|
947
|
+
/** `null` where a path did not run, or did not rank the passage. */
|
|
948
|
+
score: {
|
|
949
|
+
lexical: number | null;
|
|
950
|
+
vector: number | null;
|
|
951
|
+
fused: number;
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
interface LookupReached extends LookupPassage {
|
|
955
|
+
depth: number;
|
|
956
|
+
}
|
|
957
|
+
/** An edge in the graph's own direction. */
|
|
958
|
+
interface LookupEdge {
|
|
959
|
+
from: string;
|
|
960
|
+
predicate: string;
|
|
961
|
+
to: string;
|
|
962
|
+
}
|
|
963
|
+
interface LookupSection<P> {
|
|
964
|
+
passages: P[];
|
|
965
|
+
truncated: boolean;
|
|
966
|
+
}
|
|
967
|
+
interface LookupWalk extends LookupSection<LookupReached> {
|
|
968
|
+
edges: LookupEdge[];
|
|
969
|
+
}
|
|
970
|
+
/** What `lookup` returns: three full sections, each with its proof. */
|
|
971
|
+
interface LookupResult {
|
|
972
|
+
question: string;
|
|
973
|
+
language: string | null;
|
|
974
|
+
matches: LookupSection<LookupMatch>;
|
|
975
|
+
traversal: LookupWalk;
|
|
976
|
+
impact: LookupWalk;
|
|
977
|
+
pages: Record<string, {
|
|
978
|
+
metadata: Record<string, unknown>;
|
|
979
|
+
}>;
|
|
980
|
+
citations: Citation[];
|
|
981
|
+
trace: RetrievalTrace;
|
|
982
|
+
/** Present only when there are no matches, or every match was withheld. Every section is then empty. */
|
|
983
|
+
refusal?: Refusal;
|
|
984
|
+
}
|
|
985
|
+
/** The model one language's rows were embedded with, as `chunks.json` records it. */
|
|
986
|
+
interface EmbeddingModel {
|
|
987
|
+
id: string;
|
|
988
|
+
dimensions: number;
|
|
989
|
+
}
|
|
990
|
+
interface RetrieverContext {
|
|
991
|
+
manifest: ChunksManifest;
|
|
992
|
+
graph: GraphIndex;
|
|
993
|
+
/** One language's lexical index, or `undefined` when it has none. */
|
|
994
|
+
lexical(language: string): Promise<LexicalIndex | undefined>;
|
|
995
|
+
store: VectorStore;
|
|
996
|
+
chunks: ChunkSource;
|
|
997
|
+
/** The query embedder for one model, or `null` to send no query vector. */
|
|
998
|
+
embedder(model: EmbeddingModel): Promise<QueryEmbedder | null>;
|
|
999
|
+
}
|
|
1000
|
+
type RetrieveMode = "lexical" | "vector" | "hybrid";
|
|
1001
|
+
interface RetrieveOptions {
|
|
1002
|
+
question: string;
|
|
1003
|
+
lang?: string;
|
|
1004
|
+
variant?: string;
|
|
1005
|
+
softwareSubject?: string;
|
|
1006
|
+
seeds?: number;
|
|
1007
|
+
depth?: number;
|
|
1008
|
+
maxChars?: number;
|
|
1009
|
+
mode?: RetrieveMode;
|
|
1010
|
+
/** Tightens the trust floor for this call. */
|
|
1011
|
+
withhold?: WithholdReason[];
|
|
1012
|
+
where?: WhereCondition[];
|
|
1013
|
+
}
|
|
1014
|
+
interface WalkOptions {
|
|
1015
|
+
node: string;
|
|
1016
|
+
/** Walk inward, to what depends on the node. */
|
|
1017
|
+
impact?: boolean;
|
|
1018
|
+
depth?: number;
|
|
1019
|
+
predicates?: string[];
|
|
1020
|
+
reverse?: boolean;
|
|
1021
|
+
lang?: string;
|
|
1022
|
+
variant?: string;
|
|
1023
|
+
softwareSubject?: string;
|
|
1024
|
+
limit?: number;
|
|
1025
|
+
maxChars?: number;
|
|
1026
|
+
withhold?: WithholdReason[];
|
|
1027
|
+
where?: WhereCondition[];
|
|
1028
|
+
}
|
|
1029
|
+
interface LookupOptions {
|
|
1030
|
+
question: string;
|
|
1031
|
+
/** The serve host's query-time floor. */
|
|
1032
|
+
withhold?: WithholdReason[];
|
|
1033
|
+
}
|
|
1034
|
+
/** Rank, choose, walk outward, assemble: the bundle a steering caller asked for. */
|
|
1035
|
+
declare function retrieve(input: RetrieverContext & RetrieveOptions): Promise<PassageBundle>;
|
|
1036
|
+
/**
|
|
1037
|
+
* The one call: a question in, three full sections out. It enters every
|
|
1038
|
+
* localization, keeps the one whose best match scores highest, and never asks
|
|
1039
|
+
* for a language.
|
|
1040
|
+
*/
|
|
1041
|
+
declare function lookup(input: RetrieverContext & LookupOptions): Promise<LookupResult>;
|
|
1042
|
+
/** Ranks rows by cosine in memory, among those meeting `where`. Rows without a vector are never ranked. */
|
|
1043
|
+
declare function createStaticVectorStore(rows: readonly ChunkRow[]): VectorStore;
|
|
1044
|
+
/**
|
|
1045
|
+
* A store behind a site's own server. It POSTs `{ text, vector, k, language,
|
|
1046
|
+
* where }` as JSON and expects `{ matches: [{ id, score, row? }] }`.
|
|
1047
|
+
*/
|
|
1048
|
+
declare function createHttpVectorStore(options: {
|
|
1049
|
+
url: string;
|
|
1050
|
+
fetch?: RetrieverFetch;
|
|
1051
|
+
}): VectorStore;
|
|
1052
|
+
/** The rows of one `chunks.<tag>.jsonl`, for ingestion into a vector DB. */
|
|
1053
|
+
declare function parseChunkRows(text: string): ChunkRow[];
|
|
1054
|
+
/** `chunks.json`, checked to be one, down to the fields the cores read. */
|
|
1055
|
+
declare function parseChunksManifest(input: string | object): ChunksManifest;
|
|
1056
|
+
/** Reads one `chunks.<tag>.jsonl`, given as its text or its URL. */
|
|
1057
|
+
declare function createChunkFileSource(textOrUrl: string, options?: {
|
|
1058
|
+
fetch?: RetrieverFetch;
|
|
1059
|
+
}): ChunkSource;
|
|
1060
|
+
interface CreateRetrieverOptions {
|
|
1061
|
+
/** `chunks.json`: its URL, or the parsed manifest. Every other file resolves from its directory. */
|
|
1062
|
+
manifest: string | object;
|
|
1063
|
+
/** Default: the static store over the rows' vectors. */
|
|
1064
|
+
store?: VectorStore;
|
|
1065
|
+
/** Default: the chunk files the manifest names. */
|
|
1066
|
+
chunks?: ChunkSource;
|
|
1067
|
+
/** Default: `graph/embed` with each language's model, loaded when first queried. `false` forces lexical entry. */
|
|
1068
|
+
embed?: QueryEmbedder | false;
|
|
1069
|
+
/** Default: the global `fetch`. */
|
|
1070
|
+
fetch?: RetrieverFetch;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* The cores over one artifact. `withhold` on `retrieve`, `traverse` and
|
|
1074
|
+
* `impact` tightens the floor the artifact was exported with, per call, as
|
|
1075
|
+
* the CLI's `--withhold` does. It never lowers it: exported rows stay out.
|
|
1076
|
+
* `lookup` takes only a question and serves the exported floor.
|
|
1077
|
+
*/
|
|
1078
|
+
interface Retriever {
|
|
1079
|
+
readonly manifest: ChunksManifest;
|
|
1080
|
+
lookup(question: string): Promise<LookupResult>;
|
|
1081
|
+
retrieve(question: string, options?: Pick<RetrieveOptions, "lang" | "variant" | "softwareSubject" | "depth" | "maxChars" | "mode" | "where" | "withhold">): Promise<PassageBundle>;
|
|
1082
|
+
traverse(node: string, options?: Pick<WalkOptions, "depth" | "predicates" | "reverse" | "lang" | "variant" | "softwareSubject" | "limit" | "maxChars" | "where" | "withhold">): Promise<PassageBundle>;
|
|
1083
|
+
impact(node: string, options?: Pick<WalkOptions, "depth" | "lang" | "variant" | "softwareSubject" | "limit" | "maxChars" | "where" | "withhold">): Promise<PassageBundle>;
|
|
1084
|
+
}
|
|
1085
|
+
/** The retrieval cores over a published artifact. Returns data and calls no model but the embedder. */
|
|
1086
|
+
declare function createRetriever(options: CreateRetrieverOptions): Promise<Retriever>;
|
|
1087
|
+
|
|
1088
|
+
interface RdfTerm {
|
|
1089
|
+
termType: "NamedNode" | "Literal" | "DefaultGraph";
|
|
1090
|
+
value: string;
|
|
1091
|
+
language?: string;
|
|
1092
|
+
datatype?: RdfTerm;
|
|
1093
|
+
equals(other?: RdfTerm | null): boolean;
|
|
1094
|
+
}
|
|
1095
|
+
interface RdfQuad {
|
|
1096
|
+
termType: "Quad";
|
|
1097
|
+
subject: RdfTerm;
|
|
1098
|
+
predicate: RdfTerm;
|
|
1099
|
+
object: RdfTerm;
|
|
1100
|
+
graph: RdfTerm;
|
|
1101
|
+
equals(other?: RdfQuad | null): boolean;
|
|
1102
|
+
}
|
|
1103
|
+
declare function namedNode(value: string): RdfTerm;
|
|
1104
|
+
declare function defaultGraph(): RdfTerm;
|
|
1105
|
+
declare function literal(value: string, datatype?: string, language?: string): RdfTerm;
|
|
1106
|
+
/**
|
|
1107
|
+
* The whole index as RDF/JS quads, in the index's deterministic order. Feed to
|
|
1108
|
+
* any RDF/JS store (`new Store(rdfjsQuads(graph))`) to run SPARQL.
|
|
1109
|
+
*/
|
|
1110
|
+
declare function rdfjsQuads(graph: GraphIndex): RdfQuad[];
|
|
1111
|
+
/**
|
|
1112
|
+
* Triple-pattern match returning RDF/JS quads. A null/undefined position is a
|
|
1113
|
+
* wildcard. Convenience for callers who want RDF/JS terms without pulling in a
|
|
1114
|
+
* store; the walker API is the richer (and traced) way to query.
|
|
1115
|
+
*/
|
|
1116
|
+
declare function matchQuads(graph: GraphIndex, subject?: string | null, predicate?: string | null, object?: string | null): RdfQuad[];
|
|
1117
|
+
|
|
702
1118
|
/** Conventional filename, written beside the graph. */
|
|
703
1119
|
declare const LOCALIZATIONS_FILENAME = "localizations.json";
|
|
704
1120
|
/**
|
|
@@ -751,4 +1167,4 @@ declare function vectorIndexFilename(language: string): string;
|
|
|
751
1167
|
declare function emitLocalizations(doc: LocalizationsDoc): string;
|
|
752
1168
|
declare function parseLocalizations(text: string): LocalizationsDoc | undefined;
|
|
753
1169
|
|
|
754
|
-
export { type AssembleOptions, type Citation, type ContentResolver, type ContextBlock, type Direction, type EntryCandidate, type EntryRankings, type EntryResult, type EntryVia, type FetchResolverOptions, type FindEntryOptions, GraphIndex, type GraphNode, type Hop, LOCALIZATIONS_FILENAME, type LexicalIndex, type LexicalSearchOptions, type LocalizationEntry, type LocalizationsDoc, type QueryEmbedder, type QueryTrace, type RdfQuad, type RdfTerm, type Refusal, type RefusalReason, type Resolution, type ResolvedContent, type RetrievalBundle, type ScopeExclusion, type ScopeFilter, type SearchArtifact, type SearchEntry, type SearchIndexDoc, type TraverseOptions, type TraverseResult, type TraversedNode, UNDETERMINED, type Value, type VectorArtifact, type VectorIndex, type VectorIndexDoc, VectorIndexError, type VectorIndexHeader, type VectorMismatch, VectorMismatchError, type VectorSearchOptions, assemble, createFetchResolver, createLexicalIndex, createTrace, createVectorIndex, decodeVectorIndex, defaultGraph, documentPreamble, documentSectionOrder, emitLocalizations, encodeVectorIndex, findEntry, impact, literal, matchQuads, namedNode, normalize, parseLocalizations, rdfjsQuads, reachedNodes, resolveSubject, resolveVariant, reverseReferences, rrfMerge, scopeExclusion, searchIndexDigest, searchIndexFilename, sectionOccurrence, sectionOccurrences, sectionOwnText, sliceSection, splitFragment, traverse, vectorIndexFilename };
|
|
1170
|
+
export { type AssembleOptions, type ChunkRow, type ChunkSource, type ChunksManifest, type Citation, type ContentResolver, type ContextBlock, type CreateRetrieverOptions, type DerivedDate, type Direction, type EmbeddingModel, type EntryCandidate, type EntryRankings, type EntryResult, type EntryVia, type EvalItem, type FetchResolverOptions, type FilteredNode, type FindEntryOptions, GraphIndex, type GraphNode, type Hop, LOCALIZATIONS_FILENAME, type LexicalIndex, type LexicalSearchOptions, type LocalizationEntry, type LocalizationsDoc, type LookupEdge, type LookupMatch, type LookupOptions, type LookupPassage, type LookupReached, type LookupResult, type LookupSection, type LookupWalk, ModelMismatchError, type PassageBlock, type PassageBundle, type PassageRole, type PassageStatement, type PinFinding, type PinItem, type PinSummary, type ProvenanceDates, type ProvenanceEvals, type ProvenanceRecord, type QueryEmbedder, type QueryTrace, type RdfQuad, type RdfTerm, type Refusal, type RefusalReason, type Resolution, type ResolvedContent, type RetrievalBundle, type RetrievalTrace, type RetrieveMode, type RetrieveOptions, type Retriever, type RetrieverContext, type RetrieverFetch, type ScopeExclusion, type ScopeFilter, type SearchArtifact, type SearchEntry, type SearchIndexDoc, StaleArtifactError, type TraverseOptions, type TraverseResult, type TraversedNode, UNDETERMINED, type Value, type VectorArtifact, type VectorIndex, type VectorIndexDoc, VectorIndexError, type VectorIndexHeader, type VectorMismatch, VectorMismatchError, type VectorSearchOptions, type VectorStore, type VectorStoreMatch, type VectorStoreQuery, type WhereCondition, type WithheldNode, type WithholdReason, assemble, createChunkFileSource, createFetchResolver, createHttpVectorStore, createLexicalIndex, createRetriever, createStaticVectorStore, createTrace, createVectorIndex, decodeVectorIndex, defaultGraph, documentPreamble, documentSectionOrder, emitLocalizations, encodeVectorIndex, findEntry, impact, literal, lookup, matchQuads, namedNode, normalize, parseChunkRows, parseChunksManifest, parseLocalizations, rdfjsQuads, reachedNodes, resolveSubject, resolveVariant, retrieve, reverseReferences, rrfMerge, scopeExclusion, searchIndexDigest, searchIndexFilename, sectionOccurrence, sectionOccurrences, sectionOwnText, sliceSection, splitFragment, traverse, vectorIndexFilename };
|