wiki-graph-core 0.3.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/LICENSE +201 -0
- package/data/editor/clue_reviewer.jinja +410 -0
- package/data/editor/clue_reviewer_generator.jinja +428 -0
- package/data/editor/revision_feedback.jinja +5 -0
- package/data/editor/text_compressor.jinja +127 -0
- package/data/guaranteed/response_intent_classifier.jinja +8 -0
- package/data/help/commands/archive/next.jinja +29 -0
- package/data/help/commands/gc.jinja +38 -0
- package/data/help/commands/legacy/migrate.jinja +20 -0
- package/data/help/commands/legacy.jinja +19 -0
- package/data/help/commands/maintenance/chapter/add.jinja +41 -0
- package/data/help/commands/maintenance/chapter/list.jinja +33 -0
- package/data/help/commands/maintenance/chapter/move.jinja +36 -0
- package/data/help/commands/maintenance/chapter/remove.jinja +26 -0
- package/data/help/commands/maintenance/chapter/reset.jinja +29 -0
- package/data/help/commands/maintenance/chapter/set-source.jinja +34 -0
- package/data/help/commands/maintenance/chapter/set-summary.jinja +31 -0
- package/data/help/commands/maintenance/chapter/set-title.jinja +29 -0
- package/data/help/commands/maintenance/chapter/tree.jinja +58 -0
- package/data/help/commands/maintenance/chapter.jinja +59 -0
- package/data/help/commands/maintenance/cover.jinja +28 -0
- package/data/help/commands/maintenance/meta.jinja +55 -0
- package/data/help/commands/predicate.jinja +460 -0
- package/data/help/commands/root.jinja +83 -0
- package/data/help/commands/transform.jinja +34 -0
- package/data/help/commands/uri.jinja +274 -0
- package/data/help/topics/config.jinja +88 -0
- package/data/help/topics/format.jinja +72 -0
- package/data/help/topics/readiness.jinja +99 -0
- package/data/help/topics/recipe.jinja +151 -0
- package/data/help/topics/runtime.jinja +62 -0
- package/data/help/topics/uri.jinja +178 -0
- package/data/output/epub/cover.xhtml.jinja +13 -0
- package/data/output/epub/nav.xhtml.jinja +12 -0
- package/data/output/epub/package.opf.xml.jinja +39 -0
- package/data/output/epub/section.xhtml.jinja +12 -0
- package/data/topologization/book_coherence_extraction.jinja +223 -0
- package/data/topologization/chunk_extraction.jinja +233 -0
- package/data/topologization/evidence_choice.jinja +38 -0
- package/data/topologization/translate_chunks.jinja +138 -0
- package/data/topologization/user_focused_extraction.jinja +378 -0
- package/dist/archive/query/archive-view.d.ts +26 -0
- package/dist/archive/query/archive-view.js +4540 -0
- package/dist/archive/query/archive-view.js.map +1 -0
- package/dist/archive/query/continuation-cursor.d.ts +61 -0
- package/dist/archive/query/continuation-cursor.js +363 -0
- package/dist/archive/query/continuation-cursor.js.map +1 -0
- package/dist/archive/query/index.d.ts +29 -0
- package/dist/archive/query/index.js +63 -0
- package/dist/archive/query/index.js.map +1 -0
- package/dist/archive/query/lexical-search.d.ts +22 -0
- package/dist/archive/query/lexical-search.js +137 -0
- package/dist/archive/query/lexical-search.js.map +1 -0
- package/dist/archive/query/search-cache.d.ts +192 -0
- package/dist/archive/query/search-cache.js +1248 -0
- package/dist/archive/query/search-cache.js.map +1 -0
- package/dist/archive/search-index/index.d.ts +26 -0
- package/dist/archive/search-index/index.js +29 -0
- package/dist/archive/search-index/index.js.map +1 -0
- package/dist/archive/search-index/search-index.d.ts +26 -0
- package/dist/archive/search-index/search-index.js +555 -0
- package/dist/archive/search-index/search-index.js.map +1 -0
- package/dist/archive/search-index/search-tokenizer.d.ts +16 -0
- package/dist/archive/search-index/search-tokenizer.js +225 -0
- package/dist/archive/search-index/search-tokenizer.js.map +1 -0
- package/dist/common/cli-command.d.ts +4 -0
- package/dist/common/cli-command.js +7 -0
- package/dist/common/cli-command.js.map +1 -0
- package/dist/common/data-dir.d.ts +3 -0
- package/dist/common/data-dir.js +48 -0
- package/dist/common/data-dir.js.map +1 -0
- package/dist/common/language.d.ts +55 -0
- package/dist/common/language.js +208 -0
- package/dist/common/language.js.map +1 -0
- package/dist/common/llm-scope.d.ts +19 -0
- package/dist/common/llm-scope.js +31 -0
- package/dist/common/llm-scope.js.map +1 -0
- package/dist/common/logging.d.ts +22 -0
- package/dist/common/logging.js +141 -0
- package/dist/common/logging.js.map +1 -0
- package/dist/common/template.d.ts +8 -0
- package/dist/common/template.js +54 -0
- package/dist/common/template.js.map +1 -0
- package/dist/common/tinyld-language.d.ts +6 -0
- package/dist/common/tinyld-language.js +34 -0
- package/dist/common/tinyld-language.js.map +1 -0
- package/dist/common/wiki-graph-dir.d.ts +10 -0
- package/dist/common/wiki-graph-dir.js +41 -0
- package/dist/common/wiki-graph-dir.js.map +1 -0
- package/dist/common/wiki-graph-temp.d.ts +6 -0
- package/dist/common/wiki-graph-temp.js +21 -0
- package/dist/common/wiki-graph-temp.js.map +1 -0
- package/dist/common/wiki-graph-uri.d.ts +28 -0
- package/dist/common/wiki-graph-uri.js +171 -0
- package/dist/common/wiki-graph-uri.js.map +1 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.js +13 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/task-context.d.ts +41 -0
- package/dist/context/task-context.js +111 -0
- package/dist/context/task-context.js.map +1 -0
- package/dist/document/database.d.ts +30 -0
- package/dist/document/database.js +273 -0
- package/dist/document/database.js.map +1 -0
- package/dist/document/document.d.ts +153 -0
- package/dist/document/document.js +615 -0
- package/dist/document/document.js.map +1 -0
- package/dist/document/fragments.d.ts +63 -0
- package/dist/document/fragments.js +371 -0
- package/dist/document/fragments.js.map +1 -0
- package/dist/document/index.d.ts +13 -0
- package/dist/document/index.js +62 -0
- package/dist/document/index.js.map +1 -0
- package/dist/document/schema.d.ts +8 -0
- package/dist/document/schema.js +472 -0
- package/dist/document/schema.js.map +1 -0
- package/dist/document/shared-state-database.d.ts +9 -0
- package/dist/document/shared-state-database.js +193 -0
- package/dist/document/shared-state-database.js.map +1 -0
- package/dist/document/stores.d.ts +203 -0
- package/dist/document/stores.js +1678 -0
- package/dist/document/stores.js.map +1 -0
- package/dist/document/text-streams.d.ts +86 -0
- package/dist/document/text-streams.js +515 -0
- package/dist/document/text-streams.js.map +1 -0
- package/dist/document/types.d.ts +148 -0
- package/dist/document/types.js +69 -0
- package/dist/document/types.js.map +1 -0
- package/dist/editor/clue.d.ts +27 -0
- package/dist/editor/clue.js +158 -0
- package/dist/editor/clue.js.map +1 -0
- package/dist/editor/compressor.d.ts +18 -0
- package/dist/editor/compressor.js +68 -0
- package/dist/editor/compressor.js.map +1 -0
- package/dist/editor/editor.d.ts +39 -0
- package/dist/editor/editor.js +253 -0
- package/dist/editor/editor.js.map +1 -0
- package/dist/editor/feedback.d.ts +16 -0
- package/dist/editor/feedback.js +104 -0
- package/dist/editor/feedback.js.map +1 -0
- package/dist/editor/index.d.ts +17 -0
- package/dist/editor/index.js +5 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/language-review.d.ts +14 -0
- package/dist/editor/language-review.js +35 -0
- package/dist/editor/language-review.js.map +1 -0
- package/dist/editor/log.d.ts +37 -0
- package/dist/editor/log.js +202 -0
- package/dist/editor/log.js.map +1 -0
- package/dist/editor/markup.d.ts +20 -0
- package/dist/editor/markup.js +294 -0
- package/dist/editor/markup.js.map +1 -0
- package/dist/editor/prompt-templates.d.ts +6 -0
- package/dist/editor/prompt-templates.js +11 -0
- package/dist/editor/prompt-templates.js.map +1 -0
- package/dist/editor/response.d.ts +5 -0
- package/dist/editor/response.js +31 -0
- package/dist/editor/response.js.map +1 -0
- package/dist/editor/review.d.ts +34 -0
- package/dist/editor/review.js +189 -0
- package/dist/editor/review.js.map +1 -0
- package/dist/editor/types.d.ts +31 -0
- package/dist/editor/types.js +21 -0
- package/dist/editor/types.js.map +1 -0
- package/dist/evidence-selection/anchor-resolver.d.ts +43 -0
- package/dist/evidence-selection/anchor-resolver.js +783 -0
- package/dist/evidence-selection/anchor-resolver.js.map +1 -0
- package/dist/evidence-selection/anchor-types.d.ts +27 -0
- package/dist/evidence-selection/anchor-types.js +1 -0
- package/dist/evidence-selection/anchor-types.js.map +1 -0
- package/dist/evidence-selection/index.d.ts +8 -0
- package/dist/evidence-selection/index.js +32 -0
- package/dist/evidence-selection/index.js.map +1 -0
- package/dist/evidence-selection/prompt.d.ts +18 -0
- package/dist/evidence-selection/prompt.js +54 -0
- package/dist/evidence-selection/prompt.js.map +1 -0
- package/dist/evidence-selection/quote-score.d.ts +29 -0
- package/dist/evidence-selection/quote-score.js +331 -0
- package/dist/evidence-selection/quote-score.js.map +1 -0
- package/dist/evidence-selection/selection-resolver.d.ts +19 -0
- package/dist/evidence-selection/selection-resolver.js +303 -0
- package/dist/evidence-selection/selection-resolver.js.map +1 -0
- package/dist/evidence-selection/text.d.ts +4 -0
- package/dist/evidence-selection/text.js +66 -0
- package/dist/evidence-selection/text.js.map +1 -0
- package/dist/evidence-selection/types.d.ts +36 -0
- package/dist/evidence-selection/types.js +1 -0
- package/dist/evidence-selection/types.js.map +1 -0
- package/dist/facade/app.d.ts +75 -0
- package/dist/facade/app.js +141 -0
- package/dist/facade/app.js.map +1 -0
- package/dist/facade/build-queue.d.ts +181 -0
- package/dist/facade/build-queue.js +1442 -0
- package/dist/facade/build-queue.js.map +1 -0
- package/dist/facade/chapter-build.d.ts +60 -0
- package/dist/facade/chapter-build.js +1020 -0
- package/dist/facade/chapter-build.js.map +1 -0
- package/dist/facade/chapter.d.ts +168 -0
- package/dist/facade/chapter.js +944 -0
- package/dist/facade/chapter.js.map +1 -0
- package/dist/facade/digest.d.ts +55 -0
- package/dist/facade/digest.js +168 -0
- package/dist/facade/digest.js.map +1 -0
- package/dist/facade/graph.d.ts +60 -0
- package/dist/facade/graph.js +203 -0
- package/dist/facade/graph.js.map +1 -0
- package/dist/facade/import.d.ts +49 -0
- package/dist/facade/import.js +262 -0
- package/dist/facade/import.js.map +1 -0
- package/dist/facade/index.d.ts +39 -0
- package/dist/facade/index.js +171 -0
- package/dist/facade/index.js.map +1 -0
- package/dist/facade/knowledge-graph-build.d.ts +75 -0
- package/dist/facade/knowledge-graph-build.js +897 -0
- package/dist/facade/knowledge-graph-build.js.map +1 -0
- package/dist/facade/llm-sampling.d.ts +11 -0
- package/dist/facade/llm-sampling.js +58 -0
- package/dist/facade/llm-sampling.js.map +1 -0
- package/dist/facade/types.d.ts +8 -0
- package/dist/facade/types.js +1 -0
- package/dist/facade/types.js.map +1 -0
- package/dist/facade/wiki-graph-archive.d.ts +41 -0
- package/dist/facade/wiki-graph-archive.js +130 -0
- package/dist/facade/wiki-graph-archive.js.map +1 -0
- package/dist/gc/files.d.ts +15 -0
- package/dist/gc/files.js +141 -0
- package/dist/gc/files.js.map +1 -0
- package/dist/gc/index.d.ts +2 -0
- package/dist/gc/index.js +5 -0
- package/dist/gc/index.js.map +1 -0
- package/dist/gc/lock.d.ts +3 -0
- package/dist/gc/lock.js +137 -0
- package/dist/gc/lock.js.map +1 -0
- package/dist/gc/runner.d.ts +9 -0
- package/dist/gc/runner.js +129 -0
- package/dist/gc/runner.js.map +1 -0
- package/dist/gc/tmp-gc.d.ts +5 -0
- package/dist/gc/tmp-gc.js +57 -0
- package/dist/gc/tmp-gc.js.map +1 -0
- package/dist/gc/types.d.ts +24 -0
- package/dist/gc/types.js +1 -0
- package/dist/gc/types.js.map +1 -0
- package/dist/gc.cjs +10041 -0
- package/dist/gc.cjs.map +1 -0
- package/dist/gc.d.cts +10 -0
- package/dist/gc.d.ts +2 -0
- package/dist/gc.js +5 -0
- package/dist/gc.js.map +1 -0
- package/dist/guaranteed/classifier.d.ts +10 -0
- package/dist/guaranteed/classifier.js +88 -0
- package/dist/guaranteed/classifier.js.map +1 -0
- package/dist/guaranteed/errors.d.ts +38 -0
- package/dist/guaranteed/errors.js +73 -0
- package/dist/guaranteed/errors.js.map +1 -0
- package/dist/guaranteed/index.d.ts +7 -0
- package/dist/guaranteed/index.js +21 -0
- package/dist/guaranteed/index.js.map +1 -0
- package/dist/guaranteed/request.d.ts +8 -0
- package/dist/guaranteed/request.js +206 -0
- package/dist/guaranteed/request.js.map +1 -0
- package/dist/guaranteed/response.d.ts +12 -0
- package/dist/guaranteed/response.js +98 -0
- package/dist/guaranteed/response.js.map +1 -0
- package/dist/guaranteed/types.d.ts +20 -0
- package/dist/guaranteed/types.js +1 -0
- package/dist/guaranteed/types.js.map +1 -0
- package/dist/index-B8NNnQ8P.d.ts +424 -0
- package/dist/index.cjs +34774 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2462 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +168 -0
- package/dist/index.js.map +1 -0
- package/dist/legacy-sdpub/upgrade.d.ts +7 -0
- package/dist/legacy-sdpub/upgrade.js +795 -0
- package/dist/legacy-sdpub/upgrade.js.map +1 -0
- package/dist/llm/cache.d.ts +13 -0
- package/dist/llm/cache.js +35 -0
- package/dist/llm/cache.js.map +1 -0
- package/dist/llm/client.d.ts +26 -0
- package/dist/llm/client.js +572 -0
- package/dist/llm/client.js.map +1 -0
- package/dist/llm/context.d.ts +22 -0
- package/dist/llm/context.js +78 -0
- package/dist/llm/context.js.map +1 -0
- package/dist/llm/errors.d.ts +7 -0
- package/dist/llm/errors.js +12 -0
- package/dist/llm/errors.js.map +1 -0
- package/dist/llm/index.d.ts +7 -0
- package/dist/llm/index.js +17 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/request-log.d.ts +9 -0
- package/dist/llm/request-log.js +35 -0
- package/dist/llm/request-log.js.map +1 -0
- package/dist/llm/sampling.d.ts +11 -0
- package/dist/llm/sampling.js +67 -0
- package/dist/llm/sampling.js.map +1 -0
- package/dist/llm/types.d.ts +50 -0
- package/dist/llm/types.js +1 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/output/epub/archive.d.ts +9 -0
- package/dist/output/epub/archive.js +81 -0
- package/dist/output/epub/archive.js.map +1 -0
- package/dist/output/epub/book.d.ts +15 -0
- package/dist/output/epub/book.js +76 -0
- package/dist/output/epub/book.js.map +1 -0
- package/dist/output/epub/content.d.ts +9 -0
- package/dist/output/epub/content.js +35 -0
- package/dist/output/epub/content.js.map +1 -0
- package/dist/output/epub/index.d.ts +20 -0
- package/dist/output/epub/index.js +14 -0
- package/dist/output/epub/index.js.map +1 -0
- package/dist/output/epub/model.d.ts +24 -0
- package/dist/output/epub/model.js +1 -0
- package/dist/output/epub/model.js.map +1 -0
- package/dist/output/epub/navigation.d.ts +10 -0
- package/dist/output/epub/navigation.js +39 -0
- package/dist/output/epub/navigation.js.map +1 -0
- package/dist/output/epub/package.d.ts +17 -0
- package/dist/output/epub/package.js +29 -0
- package/dist/output/epub/package.js.map +1 -0
- package/dist/output/epub/shared.d.ts +4 -0
- package/dist/output/epub/shared.js +12 -0
- package/dist/output/epub/shared.js.map +1 -0
- package/dist/output/epub/templates.d.ts +35 -0
- package/dist/output/epub/templates.js +26 -0
- package/dist/output/epub/templates.js.map +1 -0
- package/dist/output/index.d.ts +14 -0
- package/dist/output/index.js +11 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/plain-text.d.ts +18 -0
- package/dist/output/plain-text.js +56 -0
- package/dist/output/plain-text.js.map +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +14 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/progress/reporter.d.ts +10 -0
- package/dist/progress/reporter.js +79 -0
- package/dist/progress/reporter.js.map +1 -0
- package/dist/progress/tracker.d.ts +37 -0
- package/dist/progress/tracker.js +119 -0
- package/dist/progress/tracker.js.map +1 -0
- package/dist/progress/types.d.ts +28 -0
- package/dist/progress/types.js +1 -0
- package/dist/progress/types.js.map +1 -0
- package/dist/reader/attention/attention.d.ts +39 -0
- package/dist/reader/attention/attention.js +123 -0
- package/dist/reader/attention/attention.js.map +1 -0
- package/dist/reader/attention/index.d.ts +9 -0
- package/dist/reader/attention/index.js +5 -0
- package/dist/reader/attention/index.js.map +1 -0
- package/dist/reader/attention/wave-reflection.d.ts +21 -0
- package/dist/reader/attention/wave-reflection.js +153 -0
- package/dist/reader/attention/wave-reflection.js.map +1 -0
- package/dist/reader/attention/working-memory.d.ts +28 -0
- package/dist/reader/attention/working-memory.js +62 -0
- package/dist/reader/attention/working-memory.js.map +1 -0
- package/dist/reader/chunk-batch/extract.d.ts +13 -0
- package/dist/reader/chunk-batch/extract.js +14 -0
- package/dist/reader/chunk-batch/extract.js.map +1 -0
- package/dist/reader/chunk-batch/extractor.d.ts +17 -0
- package/dist/reader/chunk-batch/extractor.js +337 -0
- package/dist/reader/chunk-batch/extractor.js.map +1 -0
- package/dist/reader/chunk-batch/fragment-projection.d.ts +34 -0
- package/dist/reader/chunk-batch/fragment-projection.js +94 -0
- package/dist/reader/chunk-batch/fragment-projection.js.map +1 -0
- package/dist/reader/chunk-batch/index.d.ts +12 -0
- package/dist/reader/chunk-batch/index.js +13 -0
- package/dist/reader/chunk-batch/index.js.map +1 -0
- package/dist/reader/chunk-batch/language.d.ts +9 -0
- package/dist/reader/chunk-batch/language.js +23 -0
- package/dist/reader/chunk-batch/language.js.map +1 -0
- package/dist/reader/chunk-batch/parser.d.ts +94 -0
- package/dist/reader/chunk-batch/parser.js +640 -0
- package/dist/reader/chunk-batch/parser.js.map +1 -0
- package/dist/reader/chunk-batch/prompt-templates.d.ts +6 -0
- package/dist/reader/chunk-batch/prompt-templates.js +11 -0
- package/dist/reader/chunk-batch/prompt-templates.js.map +1 -0
- package/dist/reader/chunk-batch/types.d.ts +85 -0
- package/dist/reader/chunk-batch/types.js +1 -0
- package/dist/reader/chunk-batch/types.js.map +1 -0
- package/dist/reader/index.d.ts +13 -0
- package/dist/reader/index.js +7 -0
- package/dist/reader/index.js.map +1 -0
- package/dist/reader/reader.d.ts +37 -0
- package/dist/reader/reader.js +82 -0
- package/dist/reader/reader.js.map +1 -0
- package/dist/reader/segment/index.d.ts +2 -0
- package/dist/reader/segment/index.js +5 -0
- package/dist/reader/segment/index.js.map +1 -0
- package/dist/reader/segment/intl-segmenter.d.ts +5 -0
- package/dist/reader/segment/intl-segmenter.js +102 -0
- package/dist/reader/segment/intl-segmenter.js.map +1 -0
- package/dist/reader/segment/segment.d.ts +5 -0
- package/dist/reader/segment/segment.js +9 -0
- package/dist/reader/segment/segment.js.map +1 -0
- package/dist/reader/segment/types.d.ts +14 -0
- package/dist/reader/segment/types.js +1 -0
- package/dist/reader/segment/types.js.map +1 -0
- package/dist/reader/types.d.ts +29 -0
- package/dist/reader/types.js +1 -0
- package/dist/reader/types.js.map +1 -0
- package/dist/serial.d.ts +89 -0
- package/dist/serial.js +476 -0
- package/dist/serial.js.map +1 -0
- package/dist/source/adapter.d.ts +15 -0
- package/dist/source/adapter.js +1 -0
- package/dist/source/adapter.js.map +1 -0
- package/dist/source/epub/archive.d.ts +27 -0
- package/dist/source/epub/archive.js +189 -0
- package/dist/source/epub/archive.js.map +1 -0
- package/dist/source/epub/content.d.ts +22 -0
- package/dist/source/epub/content.js +183 -0
- package/dist/source/epub/content.js.map +1 -0
- package/dist/source/epub/document.d.ts +55 -0
- package/dist/source/epub/document.js +179 -0
- package/dist/source/epub/document.js.map +1 -0
- package/dist/source/epub/index.d.ts +10 -0
- package/dist/source/epub/index.js +6 -0
- package/dist/source/epub/index.js.map +1 -0
- package/dist/source/epub/navigation.d.ts +16 -0
- package/dist/source/epub/navigation.js +215 -0
- package/dist/source/epub/navigation.js.map +1 -0
- package/dist/source/epub/package.d.ts +33 -0
- package/dist/source/epub/package.js +237 -0
- package/dist/source/epub/package.js.map +1 -0
- package/dist/source/epub/xml.d.ts +16 -0
- package/dist/source/epub/xml.js +111 -0
- package/dist/source/epub/xml.js.map +1 -0
- package/dist/source/index.d.ts +12 -0
- package/dist/source/index.js +32 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/meta.d.ts +30 -0
- package/dist/source/meta.js +22 -0
- package/dist/source/meta.js.map +1 -0
- package/dist/source/plain-text.d.ts +16 -0
- package/dist/source/plain-text.js +86 -0
- package/dist/source/plain-text.js.map +1 -0
- package/dist/source/toc.d.ts +16 -0
- package/dist/source/toc.js +17 -0
- package/dist/source/toc.js.map +1 -0
- package/dist/source/types.d.ts +16 -0
- package/dist/source/types.js +1 -0
- package/dist/source/types.js.map +1 -0
- package/dist/topology/grouping.d.ts +15 -0
- package/dist/topology/grouping.js +18 -0
- package/dist/topology/grouping.js.map +1 -0
- package/dist/topology/index.d.ts +21 -0
- package/dist/topology/index.js +5 -0
- package/dist/topology/index.js.map +1 -0
- package/dist/topology/resource-segmentation.d.ts +13 -0
- package/dist/topology/resource-segmentation.js +111 -0
- package/dist/topology/resource-segmentation.js.map +1 -0
- package/dist/topology/segment-incision.d.ts +18 -0
- package/dist/topology/segment-incision.js +197 -0
- package/dist/topology/segment-incision.js.map +1 -0
- package/dist/topology/snake-detector.d.ts +13 -0
- package/dist/topology/snake-detector.js +520 -0
- package/dist/topology/snake-detector.js.map +1 -0
- package/dist/topology/snake-graph-builder.d.ts +14 -0
- package/dist/topology/snake-graph-builder.js +76 -0
- package/dist/topology/snake-graph-builder.js.map +1 -0
- package/dist/topology/topology.d.ts +29 -0
- package/dist/topology/topology.js +348 -0
- package/dist/topology/topology.js.map +1 -0
- package/dist/topology/weights.d.ts +10 -0
- package/dist/topology/weights.js +84 -0
- package/dist/topology/weights.js.map +1 -0
- package/dist/types-FVIqiLC9.d.cts +24 -0
- package/dist/utils/async-semaphore.d.ts +7 -0
- package/dist/utils/async-semaphore.js +40 -0
- package/dist/utils/async-semaphore.js.map +1 -0
- package/dist/utils/enum.d.ts +5 -0
- package/dist/utils/enum.js +18 -0
- package/dist/utils/enum.js.map +1 -0
- package/dist/utils/hash.d.ts +3 -0
- package/dist/utils/hash.js +132 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/node-error.d.ts +4 -0
- package/dist/utils/node-error.js +59 -0
- package/dist/utils/node-error.js.map +1 -0
- package/dist/wikg/archive-uri.d.ts +1 -0
- package/dist/wikg/archive-uri.js +37 -0
- package/dist/wikg/archive-uri.js.map +1 -0
- package/dist/wikg/archive.d.ts +28 -0
- package/dist/wikg/archive.js +496 -0
- package/dist/wikg/archive.js.map +1 -0
- package/dist/wikg/index.d.ts +31 -0
- package/dist/wikg/index.js +60 -0
- package/dist/wikg/index.js.map +1 -0
- package/dist/wikg/wikg-coordinator.d.ts +45 -0
- package/dist/wikg/wikg-coordinator.js +1687 -0
- package/dist/wikg/wikg-coordinator.js.map +1 -0
- package/dist/wikg/wiki-graph-archive-file.d.ts +42 -0
- package/dist/wikg/wiki-graph-archive-file.js +78 -0
- package/dist/wikg/wiki-graph-archive-file.js.map +1 -0
- package/dist/wikilink/index.d.ts +10 -0
- package/dist/wikilink/index.js +7 -0
- package/dist/wikilink/index.js.map +1 -0
- package/dist/wikilink/relation-discovery.d.ts +31 -0
- package/dist/wikilink/relation-discovery.js +477 -0
- package/dist/wikilink/relation-discovery.js.map +1 -0
- package/dist/wikilink/types.d.ts +23 -0
- package/dist/wikilink/types.js +1 -0
- package/dist/wikilink/types.js.map +1 -0
- package/dist/wikilink/window.d.ts +7 -0
- package/dist/wikilink/window.js +53 -0
- package/dist/wikilink/window.js.map +1 -0
- package/dist/wikimatch/enrichment.d.ts +10 -0
- package/dist/wikimatch/enrichment.js +55 -0
- package/dist/wikimatch/enrichment.js.map +1 -0
- package/dist/wikimatch/index.d.ts +16 -0
- package/dist/wikimatch/index.js +66 -0
- package/dist/wikimatch/index.js.map +1 -0
- package/dist/wikimatch/option-narrowing.d.ts +17 -0
- package/dist/wikimatch/option-narrowing.js +208 -0
- package/dist/wikimatch/option-narrowing.js.map +1 -0
- package/dist/wikimatch/options.d.ts +14 -0
- package/dist/wikimatch/options.js +155 -0
- package/dist/wikimatch/options.js.map +1 -0
- package/dist/wikimatch/policy-judge.d.ts +17 -0
- package/dist/wikimatch/policy-judge.js +430 -0
- package/dist/wikimatch/policy-judge.js.map +1 -0
- package/dist/wikimatch/range-suppression.d.ts +9 -0
- package/dist/wikimatch/range-suppression.js +27 -0
- package/dist/wikimatch/range-suppression.js.map +1 -0
- package/dist/wikimatch/surface-screening.d.ts +16 -0
- package/dist/wikimatch/surface-screening.js +168 -0
- package/dist/wikimatch/surface-screening.js.map +1 -0
- package/dist/wikimatch/surface-window.d.ts +6 -0
- package/dist/wikimatch/surface-window.js +44 -0
- package/dist/wikimatch/surface-window.js.map +1 -0
- package/dist/wikimatch/types.d.ts +151 -0
- package/dist/wikimatch/types.js +1 -0
- package/dist/wikimatch/types.js.map +1 -0
- package/dist/wikimatch/wikispine.d.ts +43 -0
- package/dist/wikimatch/wikispine.js +399 -0
- package/dist/wikimatch/wikispine.js.map +1 -0
- package/dist/wikimatch/window.d.ts +6 -0
- package/dist/wikimatch/window.js +83 -0
- package/dist/wikimatch/window.js.map +1 -0
- package/dist/wikimatch/words.d.ts +16 -0
- package/dist/wikimatch/words.js +66 -0
- package/dist/wikimatch/words.js.map +1 -0
- package/dist/wikipage/cache.d.ts +18 -0
- package/dist/wikipage/cache.js +404 -0
- package/dist/wikipage/cache.js.map +1 -0
- package/dist/wikipage/fetch-log.d.ts +17 -0
- package/dist/wikipage/fetch-log.js +143 -0
- package/dist/wikipage/fetch-log.js.map +1 -0
- package/dist/wikipage/index.d.ts +14 -0
- package/dist/wikipage/index.js +17 -0
- package/dist/wikipage/index.js.map +1 -0
- package/dist/wikipage/normalizer.d.ts +14 -0
- package/dist/wikipage/normalizer.js +147 -0
- package/dist/wikipage/normalizer.js.map +1 -0
- package/dist/wikipage/rate-limiter.d.ts +13 -0
- package/dist/wikipage/rate-limiter.js +84 -0
- package/dist/wikipage/rate-limiter.js.map +1 -0
- package/dist/wikipage/resolver.d.ts +26 -0
- package/dist/wikipage/resolver.js +325 -0
- package/dist/wikipage/resolver.js.map +1 -0
- package/dist/wikipage/types.d.ts +96 -0
- package/dist/wikipage/types.js +1 -0
- package/dist/wikipage/types.js.map +1 -0
- package/dist/wikipage/wikimedia-client.d.ts +48 -0
- package/dist/wikipage/wikimedia-client.js +397 -0
- package/dist/wikipage/wikimedia-client.js.map +1 -0
- package/dist/worker-BgQ0Xl8T.d.cts +181 -0
- package/dist/worker.cjs +5259 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.cts +2 -0
- package/dist/worker.d.ts +2 -0
- package/dist/worker.js +5 -0
- package/dist/worker.js.map +1 -0
- package/package.json +78 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export { Language, LanguageCode, formatLanguageForPrompt, getLanguageCode, getWikipageLanguageCode, normalizeLanguageCode } from './common/language.js';
|
|
2
|
+
export { WIKI_GRAPH_CONTEXT_VERSION, WikiGraphTask, WikiGraphTaskContext, WikiGraphTaskContextOptions, WikiGraphTaskIdentity, WikiGraphTaskType, createWikiGraphTaskId } from './context/task-context.js';
|
|
3
|
+
export { LLM } from './llm/client.js';
|
|
4
|
+
export { LLMOptions, LLMRequestOptions, LLMStreamProgressCallback, LLMTokenUsage, LLMTokenUsageCallback, LLMessage } from './llm/types.js';
|
|
5
|
+
export { LLMPaymentRequiredError } from './llm/errors.js';
|
|
6
|
+
export { WIKI_GRAPH_EDITOR_SCOPES, WIKI_GRAPH_READER_SCOPES, WIKI_GRAPH_SCOPES, WikiGraphScope } from './common/llm-scope.js';
|
|
7
|
+
export { withLoggingContext } from './common/logging.js';
|
|
8
|
+
export { CLI_FULL_COMMAND, CLI_PRIMARY_COMMAND } from './common/cli-command.js';
|
|
9
|
+
export { resolveDataDirPath } from './common/data-dir.js';
|
|
10
|
+
export { createEnv } from './common/template.js';
|
|
11
|
+
export { resolveWikiGraphCoreDatabasePath, resolveWikiGraphHomeDirectoryPath } from './common/wiki-graph-dir.js';
|
|
12
|
+
export { createWikiGraphTempDirectory, resolveWikiGraphStateRootPath } from './common/wiki-graph-temp.js';
|
|
13
|
+
export { Database } from './document/database.js';
|
|
14
|
+
export { ensureSharedStateDatabaseInitialized, openSharedStateDatabase } from './document/shared-state-database.js';
|
|
15
|
+
export { ReadonlyTextStreams as ReadonlyFragments, ReadonlySerialTextStream as ReadonlySerialFragments, ReadonlySerialTextStream, ReadonlyTextStreams, SerialTextStream, TextStreams } from './document/text-streams.js';
|
|
16
|
+
export { FragmentDraft, Fragments, SerialFragments } from './document/fragments.js';
|
|
17
|
+
export { DirectoryDocument, Document, DocumentContext, ReadonlyDocument } from './document/document.js';
|
|
18
|
+
export { SCHEMA_SQL } from './document/schema.js';
|
|
19
|
+
export { ChunkStore, FragmentGroupStore, GraphBuildParameterStore, MentionLinkStore, MentionStore, ObjectMetadataStore, ReadingEdgeStore, ReadonlyChunkStore, ReadonlyFragmentGroupStore, ReadonlyGraphBuildParameterStore, ReadonlyMentionLinkStore, ReadonlyMentionStore, ReadonlyObjectMetadataStore, ReadonlyReadingEdgeStore, ReadonlySerialStore, ReadonlySnakeChunkStore, ReadonlySnakeEdgeStore, ReadonlySnakeStore, SerialStore, SnakeChunkStore, SnakeEdgeStore, SnakeStore } from './document/stores.js';
|
|
20
|
+
export { ChunkImportance, ChunkRecord, ChunkRetention, CreateSnakeRecord, FragmentRecord, GraphBuildParameterRecord, MentionLinkRecord, MentionRecord, ObjectMetadataKind, ObjectMetadataTarget, ReadingEdgeRecord, SentenceGroupRecord, SentenceId, SentenceRecord, SerialRecord, SnakeChunkRecord, SnakeEdgeRecord, SnakeRecord, expectChunkImportance, expectChunkRetention, isChunkImportance, isChunkRetention } from './document/types.js';
|
|
21
|
+
export { EVIDENCE_SELECTION_JSON_SHAPE, EVIDENCE_SELECTION_PROMPT_FRAGMENT, formatEvidenceSelectionChoicePrompt } from './evidence-selection/prompt.js';
|
|
22
|
+
export { EvidenceQuoteMatchStrategy, EvidenceQuoteScore, normalizeEvidenceDisplayText, normalizeEvidenceText, scoreEvidenceQuote } from './evidence-selection/quote-score.js';
|
|
23
|
+
export { rankEvidenceQuote, resolveEvidenceSelection, resolveEvidenceSelectionList } from './evidence-selection/selection-resolver.js';
|
|
24
|
+
export { EvidenceSelection, EvidenceSelectionCandidate, EvidenceSelectionFailure, EvidenceSelectionList, EvidenceSelectionResolution, EvidenceSelectionSentence, EvidenceSentenceId } from './evidence-selection/types.js';
|
|
25
|
+
export { WikipageCache } from './wikipage/cache.js';
|
|
26
|
+
export { createDisambiguationProfileNormalizer } from './wikipage/normalizer.js';
|
|
27
|
+
export { RateLimiter, parseRetryAfterMs } from './wikipage/rate-limiter.js';
|
|
28
|
+
export { WikipageResolver } from './wikipage/resolver.js';
|
|
29
|
+
export { WikimediaClient } from './wikipage/wikimedia-client.js';
|
|
30
|
+
export { CachedDisambiguationRecord, CachedPageRecord, CachedQidRecord, DisambiguationExpansion, DisambiguationLinkedQid, DisambiguationMeaningPriority, DisambiguationPageText, DisambiguationProfile, DisambiguationProfileMeaning, DisambiguationProfileNormalizer, DisambiguationProfileNormalizerInput, QidResolution, WikipageResolverOptions, WikipageSitelink } from './wikipage/types.js';
|
|
31
|
+
export { JudgeWikimatchPolicyOptions, formatCandidateForPrompt, judgeWikimatchPolicy, parsePolicyResponse, validatePolicyResponse } from './wikimatch/policy-judge.js';
|
|
32
|
+
export { NarrowWikimatchCandidateOptionsOptions, narrowWikimatchCandidateOptions, parseNarrowingResponse, validateNarrowingResponse } from './wikimatch/option-narrowing.js';
|
|
33
|
+
export { countWikimatchCandidateOptions, countWikimatchQidOption, filterCandidateQidOptions, listCandidateSelectableQids, sliceCandidateByOptionBudget, splitCandidateByOptionBudget } from './wikimatch/options.js';
|
|
34
|
+
export { applyQidResolutions, enrichWikimatchCandidates } from './wikimatch/enrichment.js';
|
|
35
|
+
export { JudgeWikimatchSurfaceProtectionOptions, judgeWikimatchSurfaceProtection, parseSurfaceProtectionResponse, validateSurfaceProtectionResponse } from './wikimatch/surface-screening.js';
|
|
36
|
+
export { buildWikimatchSurfaceProtectionInput } from './wikimatch/surface-window.js';
|
|
37
|
+
export { suppressContainedRanges } from './wikimatch/range-suppression.js';
|
|
38
|
+
export { DEFAULT_WIKISPINE_FETCH_ENDPOINT, MatchWikispineSentenceCandidatesOptions, TestWikispineRuntimeOptions, WikispineProvider, WikispineRuntimeTestResult, matchWikispineSentenceCandidates, testWikispineRuntime } from './wikimatch/wikispine.js';
|
|
39
|
+
export { buildWikimatchWindows } from './wikimatch/window.js';
|
|
40
|
+
export { expandRangeByWords, listWordBoundaries } from './wikimatch/words.js';
|
|
41
|
+
export { BuildWikimatchSurfaceProtectionInputOptions, BuildWikimatchWindowsOptions, NarrowWikimatchCandidateOptionsInput, WikimatchAcceptedMention, WikimatchCandidate, WikimatchCandidateOptionNarrowingFallback, WikimatchCandidateOptionNarrowingItemOutput, WikimatchCandidateOptionNarrowingResponse, WikimatchCandidateOptionNarrowingResult, WikimatchConflictGroup, WikimatchPolicyContinuation, WikimatchPolicyDecision, WikimatchPolicyDecisionOutput, WikimatchPolicyFallback, WikimatchPolicyJudgeInput, WikimatchPolicyJudgeResult, WikimatchPolicyResponse, WikimatchPolicyUpdate, WikimatchProtectedSurface, WikimatchQidOption, WikimatchSentence, WikimatchSurface, WikimatchSurfaceProtectionBuildResult, WikimatchSurfaceProtectionFallback, WikimatchSurfaceProtectionInput, WikimatchSurfaceProtectionResponse, WikimatchSurfaceProtectionResult, WikimatchTextRange, WikimatchWindow } from './wikimatch/types.js';
|
|
42
|
+
export { createDefaultWikiGraphSampling } from './facade/llm-sampling.js';
|
|
43
|
+
export { WikiGraph, WikiGraphLLMOptions, WikiGraphOpenSessionOptions, WikiGraphOptions, WikiGraphSourceSessionOptions, WikiGraphTextStreamSessionOptions } from './facade/app.js';
|
|
44
|
+
export { A as ArchiveBacklinkBucket, a as ArchiveBacklinks, b as ArchiveCollectionOptions, c as ArchiveCollectionResult, d as ArchiveCollectionType, e as ArchiveEvidence, f as ArchiveEvidenceItem, g as ArchiveFindEvidencePreview, h as ArchiveFindField, i as ArchiveFindFilterType, j as ArchiveFindHit, k as ArchiveFindObjectType, l as ArchiveFindOptions, m as ArchiveFindOrder, n as ArchiveFindPosition, o as ArchiveFindResult, p as ArchiveIndex, q as ArchiveIndexSettings, r as ArchiveListItem, s as ArchiveListKind, t as ArchiveNodeLabel, u as ArchiveNodeSourceFragment, v as ArchiveObjectType, w as ArchivePack, x as ArchivePage, y as ArchiveRelatedResult, z as ArchiveTriplePattern, S as SEARCH_INDEX_FTS_HIT_LIMIT, B as SEARCH_OBJECT_PROPERTY_KIND, C as SEARCH_OBJECT_PROPERTY_OWNER_KIND, D as SearchIndexInput, E as SearchIndexObjectHit, F as SearchIndexProgressEvent, G as SearchIndexProgressPhase, H as SearchIndexProgressReporter, I as SearchIndexQueryResult, J as SearchIndexStatus, K as SearchIndexTextHit, L as SearchObjectPropertyKind, M as SearchObjectPropertyOwnerKind, T as TEXT_SENTENCE_KIND, N as TextSentenceKind, O as clearDirtyArchiveSearchIndex, P as createArchiveSearchIndexFingerprint, Q as createSearchIndexFingerprint, R as ensureSearchIndex, U as findArchiveObjects, V as formatChapterId, W as formatEdgeId, X as formatNodeId, Y as formatSummaryId, Z as getArchiveIndex, _ as grepArchiveObjects, $ as isArchiveSearchIndexCurrent, a0 as isSearchIndexCurrent, a1 as listAllArchiveLinks, a2 as listArchiveCollection, a3 as listArchiveEvidence, a4 as listArchiveLinks, a5 as listArchiveObjects, a6 as listRelatedArchiveObjects, a7 as packArchiveContext, a8 as querySearchIndex, a9 as readArchiveIndexSettings, aa as readArchivePage, ab as readArchiveSearchIndexStatus, ac as readArchiveText, ad as readSearchIndexFingerprintFromDatabase, ae as readSearchIndexStatus, af as rebuildArchiveSearchIndex, ag as setFtsIndexEmbedded } from './index-B8NNnQ8P.js';
|
|
45
|
+
export { ContinuationCursor, createContinuationCursor, readContinuationCursor } from './archive/query/continuation-cursor.js';
|
|
46
|
+
export { SearchSessionDescriptor, SearchSessionInput, SearchSessionPage, createSearchSession, deleteArchiveSearchSessions, readCachedSearchSessionPage, runSearchCacheGc } from './archive/query/search-cache.js';
|
|
47
|
+
export { AddBuildJobOptions, BuildJob, BuildJobConflictScope, BuildJobEvent, BuildJobExecutionContext, BuildJobListOptions, BuildJobProgressCounter, BuildJobProgressReporter, BuildJobState, BuildJobTarget, BuildJobWorkerOptions, addBuildJob, assertBuildJobInputRevision, assertNoActiveBuildJobConflicts, assertNoActiveBuildJobs, boostBuildJob, cancelBuildJob, cleanBuildJobs, getBuildJob, listBuildJobs, pauseBuildJob, readBuildJobEvents, recordBuildJobInputRevision, resolveBuildJobId, resumeBuildJob, runBuildJobWorker, runBuildQueueGc, updateBuildJobTarget } from './facade/build-queue.js';
|
|
48
|
+
export { BuildChapterGraphArtifactOptions, BuildChapterSummaryArtifactOptions, ChapterGraphBuildArtifact, buildChapterGraphArtifact, buildChapterSummaryArtifact, buildChapterSummaryArtifactFromSnapshot, commitChapterGraphArtifact, commitChapterSummaryArtifact, readChapterBuildInput, snapshotChapterSummaryInput } from './facade/chapter-build.js';
|
|
49
|
+
export { BuildChapterKnowledgeGraphArtifactOptions, ChapterKnowledgeGraphBuildArtifact, ChapterKnowledgeGraphInputSnapshot, buildChapterKnowledgeGraphArtifact, clearChapterKnowledgeGraph, commitChapterKnowledgeGraphArtifact, createEnrichmentProgressReporter, generateChapterKnowledgeGraphArtifact, generateChapterKnowledgeGraphArtifactFromSnapshot, groundWikimatchCandidates, snapshotChapterKnowledgeGraphInput } from './facade/knowledge-graph-build.js';
|
|
50
|
+
export { AddChapterOptions, AdvanceChapterStagesOptions, AdvanceChapterStagesProgressCallback, AdvanceChapterStagesProgressEvent, AdvanceChapterStagesResult, CHAPTER_STAGES, ChapterDetails, ChapterEntry, ChapterStage, ChapterTree, ChapterTreeApplyResult, ChapterTreeInput, ChapterTreeInputNode, ChapterTreeMoveChange, ChapterTreeNode, ChapterTreeTitleChange, GenerateChapterGraphOptions, GenerateChapterSummaryOptions, MoveChapterOptions, addChapter, advanceChapterStages, applyChapterTree, generateChapterGraph, generateChapterSummary, getChapterDetails, getChapterTree, listChapters, moveChapter, parseChapterTreeInput, removeChapter, resetChapter, setChapterSource, setChapterSummary, setChapterTitle } from './facade/chapter.js';
|
|
51
|
+
export { GraphEdge, GraphEvidenceLine, GraphNeighbor, GraphNode, GraphPathStep, GraphSearchField, GraphSearchHit, GraphStatus, findGraphPath, getGraphEvidence, getGraphNode, getGraphStatus, listGraphNeighbors, listGraphNodes, searchGraphNodes } from './facade/graph.js';
|
|
52
|
+
export { WikiGraphArchive } from './facade/wiki-graph-archive.js';
|
|
53
|
+
export { WikiGraphSerialEntry } from './facade/types.js';
|
|
54
|
+
export { readWikgArchiveFormatVersion, writeWikgArchive } from './wikg/archive.js';
|
|
55
|
+
export { LocatedWikiGraphUri, WIKI_GRAPH_JOB_URI_PREFIX, WIKI_GRAPH_URI_PREFIX, formatLocatedChapterResourceUri, formatLocatedChapterSourceCollectionUri, formatLocatedChapterUri, formatLocatedWikiGraphUri, formatWikiGraphCommandUri, isWikiGraphJobUri, isWikiGraphUri, parseLocatedWikiGraphUri, requireArchiveUri, requireLocatedObjectOrArchiveUri, requireLocatedObjectUri } from './common/wiki-graph-uri.js';
|
|
56
|
+
export { WikiGraphArchiveFile } from './wikg/wiki-graph-archive-file.js';
|
|
57
|
+
export { BookMeta } from './source/meta.js';
|
|
58
|
+
export { TOC_FILE_VERSION } from './source/toc.js';
|
|
59
|
+
export { migrateLegacySdpubToWikg } from './legacy-sdpub/upgrade.js';
|
|
60
|
+
export { GuaranteedRequest, GuaranteedRequestController } from './guaranteed/types.js';
|
|
61
|
+
export { formatError } from './utils/node-error.js';
|
|
62
|
+
export { DigestProgressEvent, SerialDiscoveryItem, SerialProgressEvent, SerialsDiscoveredEvent, WikiGraphOperation, WikiGraphProgressCallback, WikiGraphProgressEvent, WikiGraphProgressEventType } from './progress/types.js';
|
|
63
|
+
import './llm/context.js';
|
|
64
|
+
import './llm/cache.js';
|
|
65
|
+
import 'ai';
|
|
66
|
+
import 'pino';
|
|
67
|
+
import 'nunjucks';
|
|
68
|
+
import 'sqlite3';
|
|
69
|
+
import './source/types.js';
|
|
70
|
+
import './gc/types.js';
|
|
71
|
+
import './wikipage/fetch-log.js';
|
|
72
|
+
import './facade/digest.js';
|
|
73
|
+
import './reader/types.js';
|
|
74
|
+
import './reader/attention/attention.js';
|
|
75
|
+
import './reader/chunk-batch/types.js';
|
|
76
|
+
import './reader/segment/types.js';
|
|
77
|
+
import './serial.js';
|
|
78
|
+
import 'yauzl';
|
|
79
|
+
import 'zod';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatLanguageForPrompt,
|
|
3
|
+
getLanguageCode,
|
|
4
|
+
getWikipageLanguageCode,
|
|
5
|
+
Language,
|
|
6
|
+
LanguageCode,
|
|
7
|
+
normalizeLanguageCode
|
|
8
|
+
} from "./common/language.js";
|
|
9
|
+
import {
|
|
10
|
+
createWikiGraphTaskId,
|
|
11
|
+
WikiGraphTask,
|
|
12
|
+
WikiGraphTaskContext,
|
|
13
|
+
WIKI_GRAPH_CONTEXT_VERSION
|
|
14
|
+
} from "./context/index.js";
|
|
15
|
+
import { LLM, LLMPaymentRequiredError } from "./llm/index.js";
|
|
16
|
+
import {
|
|
17
|
+
WikiGraphScope,
|
|
18
|
+
WIKI_GRAPH_EDITOR_SCOPES,
|
|
19
|
+
WIKI_GRAPH_READER_SCOPES,
|
|
20
|
+
WIKI_GRAPH_SCOPES
|
|
21
|
+
} from "./common/llm-scope.js";
|
|
22
|
+
import { withLoggingContext } from "./common/logging.js";
|
|
23
|
+
import { CLI_FULL_COMMAND, CLI_PRIMARY_COMMAND } from "./common/cli-command.js";
|
|
24
|
+
import { resolveDataDirPath } from "./common/data-dir.js";
|
|
25
|
+
import { createEnv } from "./common/template.js";
|
|
26
|
+
import {
|
|
27
|
+
resolveWikiGraphCoreDatabasePath,
|
|
28
|
+
resolveWikiGraphHomeDirectoryPath
|
|
29
|
+
} from "./common/wiki-graph-dir.js";
|
|
30
|
+
import {
|
|
31
|
+
createWikiGraphTempDirectory,
|
|
32
|
+
resolveWikiGraphStateRootPath
|
|
33
|
+
} from "./common/wiki-graph-temp.js";
|
|
34
|
+
import {
|
|
35
|
+
EVIDENCE_SELECTION_JSON_SHAPE,
|
|
36
|
+
EVIDENCE_SELECTION_PROMPT_FRAGMENT,
|
|
37
|
+
formatEvidenceSelectionChoicePrompt,
|
|
38
|
+
normalizeEvidenceDisplayText,
|
|
39
|
+
normalizeEvidenceText,
|
|
40
|
+
rankEvidenceQuote,
|
|
41
|
+
resolveEvidenceSelection,
|
|
42
|
+
resolveEvidenceSelectionList,
|
|
43
|
+
scoreEvidenceQuote
|
|
44
|
+
} from "./evidence-selection/index.js";
|
|
45
|
+
import {
|
|
46
|
+
RateLimiter,
|
|
47
|
+
parseRetryAfterMs,
|
|
48
|
+
WikimediaClient,
|
|
49
|
+
WikipageCache,
|
|
50
|
+
WikipageResolver,
|
|
51
|
+
createDisambiguationProfileNormalizer
|
|
52
|
+
} from "./wikipage/index.js";
|
|
53
|
+
import {
|
|
54
|
+
buildWikimatchWindows,
|
|
55
|
+
judgeWikimatchPolicy,
|
|
56
|
+
parsePolicyResponse,
|
|
57
|
+
validatePolicyResponse
|
|
58
|
+
} from "./wikimatch/index.js";
|
|
59
|
+
import { createDefaultWikiGraphSampling } from "./facade/llm-sampling.js";
|
|
60
|
+
import {
|
|
61
|
+
WikiGraphArchive,
|
|
62
|
+
WikiGraph
|
|
63
|
+
} from "./facade/index.js";
|
|
64
|
+
import {
|
|
65
|
+
formatLocatedChapterResourceUri,
|
|
66
|
+
formatLocatedChapterSourceCollectionUri,
|
|
67
|
+
formatLocatedChapterUri,
|
|
68
|
+
isWikiGraphJobUri,
|
|
69
|
+
isWikiGraphUri,
|
|
70
|
+
readWikgArchiveFormatVersion,
|
|
71
|
+
formatWikiGraphCommandUri,
|
|
72
|
+
formatLocatedWikiGraphUri,
|
|
73
|
+
parseLocatedWikiGraphUri,
|
|
74
|
+
requireArchiveUri,
|
|
75
|
+
requireLocatedObjectOrArchiveUri,
|
|
76
|
+
requireLocatedObjectUri,
|
|
77
|
+
WikiGraphArchiveFile,
|
|
78
|
+
WIKI_GRAPH_JOB_URI_PREFIX,
|
|
79
|
+
WIKI_GRAPH_URI_PREFIX,
|
|
80
|
+
writeWikgArchive
|
|
81
|
+
} from "./wikg/index.js";
|
|
82
|
+
import {
|
|
83
|
+
DirectoryDocument,
|
|
84
|
+
openSharedStateDatabase
|
|
85
|
+
} from "./document/index.js";
|
|
86
|
+
import { TOC_FILE_VERSION } from "./source/index.js";
|
|
87
|
+
import { isArchiveSearchIndexCurrent } from "./archive/query/index.js";
|
|
88
|
+
import { readArchiveIndexSettings } from "./archive/search-index/index.js";
|
|
89
|
+
import { migrateLegacySdpubToWikg } from "./legacy-sdpub/upgrade.js";
|
|
90
|
+
import { formatError } from "./utils/node-error.js";
|
|
91
|
+
export * from "./archive/query/index.js";
|
|
92
|
+
export * from "./archive/search-index/index.js";
|
|
93
|
+
export * from "./document/index.js";
|
|
94
|
+
export * from "./facade/index.js";
|
|
95
|
+
export * from "./wikimatch/index.js";
|
|
96
|
+
export {
|
|
97
|
+
CLI_FULL_COMMAND,
|
|
98
|
+
CLI_PRIMARY_COMMAND,
|
|
99
|
+
DirectoryDocument,
|
|
100
|
+
EVIDENCE_SELECTION_JSON_SHAPE,
|
|
101
|
+
EVIDENCE_SELECTION_PROMPT_FRAGMENT,
|
|
102
|
+
LLM,
|
|
103
|
+
LLMPaymentRequiredError,
|
|
104
|
+
Language,
|
|
105
|
+
LanguageCode,
|
|
106
|
+
RateLimiter,
|
|
107
|
+
TOC_FILE_VERSION,
|
|
108
|
+
WIKI_GRAPH_CONTEXT_VERSION,
|
|
109
|
+
WIKI_GRAPH_EDITOR_SCOPES,
|
|
110
|
+
WIKI_GRAPH_JOB_URI_PREFIX,
|
|
111
|
+
WIKI_GRAPH_READER_SCOPES,
|
|
112
|
+
WIKI_GRAPH_SCOPES,
|
|
113
|
+
WIKI_GRAPH_URI_PREFIX,
|
|
114
|
+
WikiGraph,
|
|
115
|
+
WikiGraphArchive,
|
|
116
|
+
WikiGraphArchiveFile,
|
|
117
|
+
WikiGraphScope,
|
|
118
|
+
WikiGraphTask,
|
|
119
|
+
WikiGraphTaskContext,
|
|
120
|
+
WikimediaClient,
|
|
121
|
+
WikipageCache,
|
|
122
|
+
WikipageResolver,
|
|
123
|
+
buildWikimatchWindows,
|
|
124
|
+
createDefaultWikiGraphSampling,
|
|
125
|
+
createDisambiguationProfileNormalizer,
|
|
126
|
+
createEnv,
|
|
127
|
+
createWikiGraphTaskId,
|
|
128
|
+
createWikiGraphTempDirectory,
|
|
129
|
+
formatError,
|
|
130
|
+
formatEvidenceSelectionChoicePrompt,
|
|
131
|
+
formatLanguageForPrompt,
|
|
132
|
+
formatLocatedChapterResourceUri,
|
|
133
|
+
formatLocatedChapterSourceCollectionUri,
|
|
134
|
+
formatLocatedChapterUri,
|
|
135
|
+
formatLocatedWikiGraphUri,
|
|
136
|
+
formatWikiGraphCommandUri,
|
|
137
|
+
getLanguageCode,
|
|
138
|
+
getWikipageLanguageCode,
|
|
139
|
+
isArchiveSearchIndexCurrent,
|
|
140
|
+
isWikiGraphJobUri,
|
|
141
|
+
isWikiGraphUri,
|
|
142
|
+
judgeWikimatchPolicy,
|
|
143
|
+
migrateLegacySdpubToWikg,
|
|
144
|
+
normalizeEvidenceDisplayText,
|
|
145
|
+
normalizeEvidenceText,
|
|
146
|
+
normalizeLanguageCode,
|
|
147
|
+
openSharedStateDatabase,
|
|
148
|
+
parseLocatedWikiGraphUri,
|
|
149
|
+
parsePolicyResponse,
|
|
150
|
+
parseRetryAfterMs,
|
|
151
|
+
rankEvidenceQuote,
|
|
152
|
+
readArchiveIndexSettings,
|
|
153
|
+
readWikgArchiveFormatVersion,
|
|
154
|
+
requireArchiveUri,
|
|
155
|
+
requireLocatedObjectOrArchiveUri,
|
|
156
|
+
requireLocatedObjectUri,
|
|
157
|
+
resolveDataDirPath,
|
|
158
|
+
resolveEvidenceSelection,
|
|
159
|
+
resolveEvidenceSelectionList,
|
|
160
|
+
resolveWikiGraphCoreDatabasePath,
|
|
161
|
+
resolveWikiGraphHomeDirectoryPath,
|
|
162
|
+
resolveWikiGraphStateRootPath,
|
|
163
|
+
scoreEvidenceQuote,
|
|
164
|
+
validatePolicyResponse,
|
|
165
|
+
withLoggingContext,
|
|
166
|
+
writeWikgArchive
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n formatLanguageForPrompt,\n getLanguageCode,\n getWikipageLanguageCode,\n Language,\n LanguageCode,\n normalizeLanguageCode,\n} from \"./common/language.js\";\nexport {\n createWikiGraphTaskId,\n WikiGraphTask,\n WikiGraphTaskContext,\n WIKI_GRAPH_CONTEXT_VERSION,\n type WikiGraphTaskContextOptions,\n type WikiGraphTaskIdentity,\n type WikiGraphTaskType,\n} from \"./context/index.js\";\nexport { LLM, LLMPaymentRequiredError } from \"./llm/index.js\";\nexport type {\n LLMessage,\n LLMOptions,\n LLMRequestOptions,\n LLMStreamProgressCallback,\n LLMTokenUsage,\n LLMTokenUsageCallback,\n} from \"./llm/index.js\";\nexport {\n WikiGraphScope,\n WIKI_GRAPH_EDITOR_SCOPES,\n WIKI_GRAPH_READER_SCOPES,\n WIKI_GRAPH_SCOPES,\n} from \"./common/llm-scope.js\";\nexport { withLoggingContext } from \"./common/logging.js\";\nexport { CLI_FULL_COMMAND, CLI_PRIMARY_COMMAND } from \"./common/cli-command.js\";\nexport { resolveDataDirPath } from \"./common/data-dir.js\";\nexport { createEnv } from \"./common/template.js\";\nexport {\n resolveWikiGraphCoreDatabasePath,\n resolveWikiGraphHomeDirectoryPath,\n} from \"./common/wiki-graph-dir.js\";\nexport {\n createWikiGraphTempDirectory,\n resolveWikiGraphStateRootPath,\n} from \"./common/wiki-graph-temp.js\";\nexport {\n EVIDENCE_SELECTION_JSON_SHAPE,\n EVIDENCE_SELECTION_PROMPT_FRAGMENT,\n formatEvidenceSelectionChoicePrompt,\n normalizeEvidenceDisplayText,\n normalizeEvidenceText,\n rankEvidenceQuote,\n resolveEvidenceSelection,\n resolveEvidenceSelectionList,\n scoreEvidenceQuote,\n type EvidenceQuoteMatchStrategy,\n type EvidenceQuoteScore,\n type EvidenceSelection,\n type EvidenceSelectionCandidate,\n type EvidenceSelectionFailure,\n type EvidenceSelectionList,\n type EvidenceSelectionResolution,\n type EvidenceSelectionSentence,\n type EvidenceSentenceId,\n} from \"./evidence-selection/index.js\";\nexport {\n RateLimiter,\n parseRetryAfterMs,\n WikimediaClient,\n WikipageCache,\n WikipageResolver,\n createDisambiguationProfileNormalizer,\n type CachedDisambiguationRecord,\n type CachedPageRecord,\n type CachedQidRecord,\n type DisambiguationExpansion,\n type DisambiguationLinkedQid,\n type DisambiguationMeaningPriority,\n type DisambiguationPageText,\n type DisambiguationProfile,\n type DisambiguationProfileMeaning,\n type DisambiguationProfileNormalizer,\n type DisambiguationProfileNormalizerInput,\n type QidResolution,\n type WikipageResolverOptions,\n type WikipageSitelink,\n} from \"./wikipage/index.js\";\nexport {\n buildWikimatchWindows,\n judgeWikimatchPolicy,\n parsePolicyResponse,\n validatePolicyResponse,\n type BuildWikimatchWindowsOptions,\n type JudgeWikimatchPolicyOptions,\n type WikimatchAcceptedMention,\n type WikimatchCandidate,\n type WikimatchConflictGroup,\n type WikimatchPolicyDecision,\n type WikimatchPolicyDecisionOutput,\n type WikimatchPolicyFallback,\n type WikimatchPolicyJudgeInput,\n type WikimatchPolicyJudgeResult,\n type WikimatchPolicyResponse,\n type WikimatchPolicyUpdate,\n type WikimatchQidOption,\n type WikimatchTextRange,\n type WikimatchWindow,\n} from \"./wikimatch/index.js\";\nexport { createDefaultWikiGraphSampling } from \"./facade/llm-sampling.js\";\nexport {\n type DigestProgressEvent,\n type SerialDiscoveryItem,\n WikiGraphArchive,\n WikiGraph,\n type WikiGraphOptions,\n type WikiGraphLLMOptions,\n type WikiGraphOpenSessionOptions,\n type WikiGraphProgressCallback,\n type WikiGraphProgressEvent,\n type WikiGraphProgressEventType,\n type WikiGraphOperation,\n type SerialsDiscoveredEvent,\n type SerialProgressEvent,\n type WikiGraphSourceSessionOptions,\n type WikiGraphTextStreamSessionOptions,\n} from \"./facade/index.js\";\nexport type { WikiGraphSerialEntry } from \"./facade/index.js\";\nexport {\n formatLocatedChapterResourceUri,\n formatLocatedChapterSourceCollectionUri,\n formatLocatedChapterUri,\n isWikiGraphJobUri,\n isWikiGraphUri,\n readWikgArchiveFormatVersion,\n formatWikiGraphCommandUri,\n formatLocatedWikiGraphUri,\n parseLocatedWikiGraphUri,\n requireArchiveUri,\n requireLocatedObjectOrArchiveUri,\n requireLocatedObjectUri,\n WikiGraphArchiveFile,\n WIKI_GRAPH_JOB_URI_PREFIX,\n WIKI_GRAPH_URI_PREFIX,\n writeWikgArchive,\n} from \"./wikg/index.js\";\nexport type { LocatedWikiGraphUri } from \"./wikg/index.js\";\nexport {\n DirectoryDocument,\n openSharedStateDatabase,\n} from \"./document/index.js\";\nexport type { Database, Document, ReadonlyDocument } from \"./document/index.js\";\nexport { TOC_FILE_VERSION } from \"./source/index.js\";\nexport type { BookMeta } from \"./source/index.js\";\nexport { isArchiveSearchIndexCurrent } from \"./archive/query/index.js\";\nexport { readArchiveIndexSettings } from \"./archive/search-index/index.js\";\nexport { migrateLegacySdpubToWikg } from \"./legacy-sdpub/upgrade.js\";\nexport type {\n GuaranteedRequest,\n GuaranteedRequestController,\n} from \"./guaranteed/index.js\";\nexport { formatError } from \"./utils/node-error.js\";\nexport * from \"./archive/query/index.js\";\nexport * from \"./archive/search-index/index.js\";\nexport * from \"./document/index.js\";\nexport * from \"./facade/index.js\";\nexport * from \"./wikimatch/index.js\";\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,KAAK,+BAA+B;AAS7C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0BAA0B;AACnC,SAAS,kBAAkB,2BAA2B;AACtD,SAAS,0BAA0B;AACnC,SAAS,iBAAiB;AAC1B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAUK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAeK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAgBK;AACP,SAAS,sCAAsC;AAC/C;AAAA,EAGE;AAAA,EACA;AAAA,OAYK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,wBAAwB;AAEjC,SAAS,mCAAmC;AAC5C,SAAS,gCAAgC;AACzC,SAAS,gCAAgC;AAKzC,SAAS,mBAAmB;AAC5B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface LegacySdpubMigrationResult {
|
|
2
|
+
readonly inputPath: string;
|
|
3
|
+
readonly outputPath: string;
|
|
4
|
+
}
|
|
5
|
+
declare function migrateLegacySdpubToWikg(inputPath: string, outputPath?: string): Promise<LegacySdpubMigrationResult>;
|
|
6
|
+
|
|
7
|
+
export { type LegacySdpubMigrationResult, migrateLegacySdpubToWikg };
|