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
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} <uri>
|
|
3
|
+
|
|
4
|
+
URI Command
|
|
5
|
+
|
|
6
|
+
Target:
|
|
7
|
+
{{ uri }}
|
|
8
|
+
|
|
9
|
+
{% if target.name == "archive-scope" %}
|
|
10
|
+
URI type:
|
|
11
|
+
Archive scope
|
|
12
|
+
|
|
13
|
+
Default behavior:
|
|
14
|
+
- `{{ commandName }} {{ uri }}` enumerates archive-level objects.
|
|
15
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval across archive scopes.
|
|
16
|
+
|
|
17
|
+
Use when:
|
|
18
|
+
- You need the archive entry point before narrowing to chapters, chunks, entities, triples, source, or summaries.
|
|
19
|
+
{% elif target.name == "chapter-collection-scope" %}
|
|
20
|
+
URI type:
|
|
21
|
+
Chapter collection scope
|
|
22
|
+
|
|
23
|
+
Default behavior:
|
|
24
|
+
- `{{ commandName }} {{ uri }}` enumerates chapters.
|
|
25
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval to chapter objects.
|
|
26
|
+
|
|
27
|
+
Use when:
|
|
28
|
+
- You need chapter ids, chapter readiness, or a starting point for chapter-scoped retrieval.
|
|
29
|
+
{% elif target.name == "chapter-scope" %}
|
|
30
|
+
URI type:
|
|
31
|
+
Chapter scope
|
|
32
|
+
|
|
33
|
+
Default behavior:
|
|
34
|
+
- `{{ commandName }} {{ uri }}` enumerates objects inside this chapter.
|
|
35
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval inside this chapter.
|
|
36
|
+
|
|
37
|
+
Use when:
|
|
38
|
+
- You already selected a chapter and want local source, summary, chunk, entity, or triple objects.
|
|
39
|
+
{% elif target.name == "chunk-scope" %}
|
|
40
|
+
URI type:
|
|
41
|
+
Chunk scope
|
|
42
|
+
|
|
43
|
+
Default behavior:
|
|
44
|
+
- `{{ commandName }} {{ uri }}` enumerates Reading Graph chunks.
|
|
45
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval to chunks in this scope.
|
|
46
|
+
|
|
47
|
+
Use when:
|
|
48
|
+
- You need candidate Reading Graph chunks before selecting a concrete chunk URI.
|
|
49
|
+
{% elif target.name == "entity-scope" %}
|
|
50
|
+
URI type:
|
|
51
|
+
Entity scope
|
|
52
|
+
|
|
53
|
+
Default behavior:
|
|
54
|
+
- `{{ commandName }} {{ uri }}` enumerates Knowledge Graph entities.
|
|
55
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval to entities in this scope.
|
|
56
|
+
|
|
57
|
+
Use when:
|
|
58
|
+
- You need candidate entities before selecting a concrete entity URI.
|
|
59
|
+
{% elif target.name == "triple-scope" %}
|
|
60
|
+
URI type:
|
|
61
|
+
Triple scope
|
|
62
|
+
|
|
63
|
+
Default behavior:
|
|
64
|
+
- `{{ commandName }} {{ uri }}` enumerates Knowledge Graph triples matching this scope or pattern.
|
|
65
|
+
- `{{ commandName }} {{ uri }} --query <query>` applies keyword retrieval to triples in this scope.
|
|
66
|
+
|
|
67
|
+
Use when:
|
|
68
|
+
- You need relation candidates or a triple pattern such as `_` placeholders.
|
|
69
|
+
{% elif target.name == "chapter-source-object" %}
|
|
70
|
+
URI type:
|
|
71
|
+
Chapter source object
|
|
72
|
+
|
|
73
|
+
Default behavior:
|
|
74
|
+
- `{{ commandName }} {{ uri }}` reads source text.
|
|
75
|
+
- Source range fragments such as `#4..8` read sentence numbers 4 through 8, inclusive.
|
|
76
|
+
- Range sentence numbers are 1-based. `#1` is the first sentence; `#1..2` is the first two sentences.
|
|
77
|
+
- Whole source reads are plain text streams and do not support `--json`; source range fragments are structured range objects and support `--json`.
|
|
78
|
+
|
|
79
|
+
Use when:
|
|
80
|
+
- You need continuous original wording from a selected chapter.
|
|
81
|
+
{% elif target.name == "chapter-summary-object" or target.name == "summary-object" %}
|
|
82
|
+
URI type:
|
|
83
|
+
Summary object
|
|
84
|
+
|
|
85
|
+
Default behavior:
|
|
86
|
+
- `{{ commandName }} {{ uri }}` reads summary text.
|
|
87
|
+
- Summary range fragments such as `#4..8` read sentence numbers 4 through 8, inclusive.
|
|
88
|
+
- Range sentence numbers are 1-based. `#1` is the first sentence; `#1..2` is the first two sentences.
|
|
89
|
+
- Whole summary reads are plain text streams and do not support `--json`; summary range fragments are structured range objects and support `--json`.
|
|
90
|
+
|
|
91
|
+
Use when:
|
|
92
|
+
- You need compact readable prose before tracing source evidence.
|
|
93
|
+
{% elif target.name == "chapter-title-object" %}
|
|
94
|
+
URI type:
|
|
95
|
+
Chapter title object
|
|
96
|
+
|
|
97
|
+
Default behavior:
|
|
98
|
+
- `{{ commandName }} {{ uri }}` reads the chapter title.
|
|
99
|
+
|
|
100
|
+
Use when:
|
|
101
|
+
- You need the current title or want to set or clear it.
|
|
102
|
+
{% elif target.name == "chapter-tree-object" %}
|
|
103
|
+
URI type:
|
|
104
|
+
Chapter tree object
|
|
105
|
+
|
|
106
|
+
Default behavior:
|
|
107
|
+
- `{{ commandName }} {{ uri }}` reads the table-of-contents tree.
|
|
108
|
+
|
|
109
|
+
Use when:
|
|
110
|
+
- You need the global chapter structure before choosing scopes.
|
|
111
|
+
{% elif target.name == "chapter-state-object" %}
|
|
112
|
+
URI type:
|
|
113
|
+
Chapter state object
|
|
114
|
+
|
|
115
|
+
Default behavior:
|
|
116
|
+
- `{{ commandName }} {{ uri }}` reads generated artifact readiness.
|
|
117
|
+
|
|
118
|
+
Use when:
|
|
119
|
+
- You need to know whether source, Reading Graph, Reading Summary, or Knowledge Graph data exists for a chapter.
|
|
120
|
+
{% elif target.name == "chunk-object" %}
|
|
121
|
+
URI type:
|
|
122
|
+
Chunk object
|
|
123
|
+
|
|
124
|
+
Default behavior:
|
|
125
|
+
- `{{ commandName }} {{ uri }}` reads one Reading Graph chunk.
|
|
126
|
+
|
|
127
|
+
Use when:
|
|
128
|
+
- You selected a chunk and need to read, expand, verify, or pack it.
|
|
129
|
+
{% elif target.name == "entity-object" %}
|
|
130
|
+
URI type:
|
|
131
|
+
Entity object
|
|
132
|
+
|
|
133
|
+
Default behavior:
|
|
134
|
+
- `{{ commandName }} {{ uri }}` reads one Knowledge Graph entity.
|
|
135
|
+
|
|
136
|
+
Use when:
|
|
137
|
+
- You selected an entity and need related triples, source evidence, or packed context.
|
|
138
|
+
{% elif target.name == "entity-wikipage-object" %}
|
|
139
|
+
URI type:
|
|
140
|
+
Entity wikipage object
|
|
141
|
+
|
|
142
|
+
Default behavior:
|
|
143
|
+
- `{{ commandName }} {{ uri }}` reads mapped Wikipedia page data for the entity.
|
|
144
|
+
|
|
145
|
+
Use when:
|
|
146
|
+
- You need canonical mapped pages before considering external web lookup.
|
|
147
|
+
{% elif target.name == "triple-object" %}
|
|
148
|
+
URI type:
|
|
149
|
+
Triple object
|
|
150
|
+
|
|
151
|
+
Default behavior:
|
|
152
|
+
- `{{ commandName }} {{ uri }}` reads one Knowledge Graph relation.
|
|
153
|
+
|
|
154
|
+
Use when:
|
|
155
|
+
- You selected a concrete subject, predicate, and object relation.
|
|
156
|
+
{% elif target.name == "cover-object" %}
|
|
157
|
+
URI type:
|
|
158
|
+
Cover object
|
|
159
|
+
|
|
160
|
+
Default behavior:
|
|
161
|
+
- `{{ commandName }} {{ uri }}` writes raw cover bytes to stdout.
|
|
162
|
+
|
|
163
|
+
Use when:
|
|
164
|
+
- You need to redirect or pipe the cover resource.
|
|
165
|
+
{% elif target.name == "index-object" %}
|
|
166
|
+
URI type:
|
|
167
|
+
Index object
|
|
168
|
+
|
|
169
|
+
Default behavior:
|
|
170
|
+
- `{{ commandName }} {{ uri }}` reads the archive FTS index policy.
|
|
171
|
+
|
|
172
|
+
Use when:
|
|
173
|
+
- You need to inspect, enable, disable, embed, or externalize searchable FTS index support.
|
|
174
|
+
{% elif target.name == "job-collection-scope" %}
|
|
175
|
+
URI type:
|
|
176
|
+
Local job collection scope
|
|
177
|
+
|
|
178
|
+
Default behavior:
|
|
179
|
+
- `{{ commandName }} {{ uri }}` shows local generation jobs.
|
|
180
|
+
|
|
181
|
+
Use when:
|
|
182
|
+
- You need to inspect, add, or clean local generation jobs.
|
|
183
|
+
{% elif target.name == "job-object" %}
|
|
184
|
+
URI type:
|
|
185
|
+
Local job object
|
|
186
|
+
|
|
187
|
+
Default behavior:
|
|
188
|
+
- `{{ commandName }} {{ uri }}` reads local job status.
|
|
189
|
+
|
|
190
|
+
Use when:
|
|
191
|
+
- You need job status, progress, or lifecycle control.
|
|
192
|
+
{% elif target.name == "job-target-object" %}
|
|
193
|
+
URI type:
|
|
194
|
+
Local job target object
|
|
195
|
+
|
|
196
|
+
Default behavior:
|
|
197
|
+
- `{{ commandName }} {{ uri }}` is not a retrieval shortcut. Use `set`.
|
|
198
|
+
|
|
199
|
+
Use when:
|
|
200
|
+
- You need to change an active job target.
|
|
201
|
+
{% elif target.name == "local-config-section" %}
|
|
202
|
+
URI type:
|
|
203
|
+
Local config section
|
|
204
|
+
|
|
205
|
+
Default behavior:
|
|
206
|
+
- `{{ commandName }} {{ uri }}` reads the section.
|
|
207
|
+
|
|
208
|
+
Use when:
|
|
209
|
+
- You need to read, replace, edit, clear, or test local configuration.
|
|
210
|
+
{% if "/wikispine" in uri %}
|
|
211
|
+
|
|
212
|
+
WikiSpine runtime guide:
|
|
213
|
+
https://raw.githubusercontent.com/oomol-lab/wiki-graph/refs/heads/main/docs/wikispine-runtime.md
|
|
214
|
+
{% endif %}
|
|
215
|
+
{% endif %}
|
|
216
|
+
|
|
217
|
+
Predicate commands:
|
|
218
|
+
{% if target.predicates.length %}
|
|
219
|
+
{% for predicate in target.predicates %}
|
|
220
|
+
{% if predicate == "add" %}
|
|
221
|
+
- add: create a child object or local job. Help: {{ commandName }} {{ uri }} add --help
|
|
222
|
+
{% elif predicate == "boost" %}
|
|
223
|
+
- boost: move a waiting job forward. Help: {{ commandName }} {{ uri }} boost --help
|
|
224
|
+
{% elif predicate == "cancel" %}
|
|
225
|
+
- cancel: cancel a local job. Help: {{ commandName }} {{ uri }} cancel --help
|
|
226
|
+
{% elif predicate == "clean" %}
|
|
227
|
+
- clean: remove completed local jobs. Help: {{ commandName }} {{ uri }} clean --help
|
|
228
|
+
{% elif predicate == "clear" %}
|
|
229
|
+
- clear: clear a writable resource or config section. Help: {{ commandName }} {{ uri }} clear --help
|
|
230
|
+
{% elif predicate == "create" %}
|
|
231
|
+
- create: create the archive; use `--replace` only when discarding an existing archive. Help: {{ commandName }} {{ uri }} create --help
|
|
232
|
+
{% elif predicate == "delete" %}
|
|
233
|
+
- delete: delete a config key. Help: {{ commandName }} {{ uri }} delete --help
|
|
234
|
+
{% elif predicate == "disable" %}
|
|
235
|
+
- disable: disable searchable index support and remove index materialization. Help: {{ commandName }} {{ uri }} disable --help
|
|
236
|
+
{% elif predicate == "embed" %}
|
|
237
|
+
- embed: use archive-embedded searchable index storage. Help: {{ commandName }} {{ uri }} embed --help
|
|
238
|
+
{% elif predicate == "enable" %}
|
|
239
|
+
- enable: enable searchable index support and bring it to current. Help: {{ commandName }} {{ uri }} enable --help
|
|
240
|
+
{% elif predicate == "evidence" %}
|
|
241
|
+
- evidence: trace this object to source-backed evidence; supports `--reverse` without `--query`. Help: {{ commandName }} {{ uri }} evidence --help
|
|
242
|
+
{% elif predicate == "export" %}
|
|
243
|
+
- export: export an archive projection. Help: {{ commandName }} {{ uri }} export --help
|
|
244
|
+
{% elif predicate == "external" %}
|
|
245
|
+
- external: use local-cache searchable index storage. Help: {{ commandName }} {{ uri }} external --help
|
|
246
|
+
{% elif predicate == "inspect" %}
|
|
247
|
+
- inspect: inspect archive readiness. Help: {{ commandName }} {{ uri }} inspect --help
|
|
248
|
+
{% elif predicate == "move" %}
|
|
249
|
+
- move: move a chapter in the tree. Help: {{ commandName }} {{ uri }} move --help
|
|
250
|
+
{% elif predicate == "pack" %}
|
|
251
|
+
- pack: assemble bounded context around this object. Help: {{ commandName }} {{ uri }} pack --help
|
|
252
|
+
{% elif predicate == "pause" %}
|
|
253
|
+
- pause: pause a local job. Help: {{ commandName }} {{ uri }} pause --help
|
|
254
|
+
{% elif predicate == "put" %}
|
|
255
|
+
- put: set one config key. Help: {{ commandName }} {{ uri }} put --help
|
|
256
|
+
{% elif predicate == "related" %}
|
|
257
|
+
- related: expand from this object to nearby objects; supports `--reverse` without `--query`. Help: {{ commandName }} {{ uri }} related --help
|
|
258
|
+
{% elif predicate == "remove" %}
|
|
259
|
+
- remove: remove a chapter. Help: {{ commandName }} {{ uri }} remove --help
|
|
260
|
+
{% elif predicate == "reset" %}
|
|
261
|
+
- reset: delete later-stage chapter artifacts. Help: {{ commandName }} {{ uri }} reset --help
|
|
262
|
+
{% elif predicate == "resume" %}
|
|
263
|
+
- resume: resume a local job. Help: {{ commandName }} {{ uri }} resume --help
|
|
264
|
+
{% elif predicate == "set" %}
|
|
265
|
+
- set: modify this writable target. Help: {{ commandName }} {{ uri }} set --help
|
|
266
|
+
{% elif predicate == "test" %}
|
|
267
|
+
- test: test local config connectivity. Help: {{ commandName }} {{ uri }} test --help
|
|
268
|
+
{% elif predicate == "watch" %}
|
|
269
|
+
- watch: follow local job progress. Help: {{ commandName }} {{ uri }} watch --help
|
|
270
|
+
{% endif %}
|
|
271
|
+
{% endfor %}
|
|
272
|
+
{% else %}
|
|
273
|
+
This URI has no additional predicate commands. Use the naked URI command shown above.
|
|
274
|
+
{% endif %}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Help Type: topic
|
|
2
|
+
Topic: config
|
|
3
|
+
|
|
4
|
+
Configuration
|
|
5
|
+
|
|
6
|
+
Purpose:
|
|
7
|
+
Configuration is managed through local Wiki Graph URIs, not by editing files directly.
|
|
8
|
+
`wikg://local/config` is a namespace; operate on a child section.
|
|
9
|
+
|
|
10
|
+
Sections:
|
|
11
|
+
`wikg://local/config/llm`
|
|
12
|
+
LLM provider, model, optional base URL, client name, and API key.
|
|
13
|
+
|
|
14
|
+
`wikg://local/config/concurrent`
|
|
15
|
+
Local concurrency settings:
|
|
16
|
+
- `job`: simultaneous generation jobs. Default: 3.
|
|
17
|
+
- `request`: concurrent LLM requests. Default: 6.
|
|
18
|
+
|
|
19
|
+
`wikg://local/config/wikispine`
|
|
20
|
+
WikiSpine runtime provider for Knowledge Graph builds:
|
|
21
|
+
- `provider`: `cli` or `fetch`.
|
|
22
|
+
- `fetch` uses the built-in WikiSpine service endpoint.
|
|
23
|
+
- `cli` runs the local `wikispine` command from PATH.
|
|
24
|
+
|
|
25
|
+
Operations:
|
|
26
|
+
Read a section:
|
|
27
|
+
{{ commandName }} wikg://local/config/llm
|
|
28
|
+
{{ commandName }} wikg://local/config/concurrent
|
|
29
|
+
{{ commandName }} wikg://local/config/wikispine
|
|
30
|
+
|
|
31
|
+
Replace a section with a JSON object:
|
|
32
|
+
{{ commandName }} wikg://local/config/llm set '{"provider":"openai","model":"gpt-4.1"}'
|
|
33
|
+
{{ commandName }} wikg://local/config/concurrent set '{"job":3,"request":6}'
|
|
34
|
+
{{ commandName }} wikg://local/config/wikispine set '{"provider":"fetch"}'
|
|
35
|
+
|
|
36
|
+
Update one key:
|
|
37
|
+
{{ commandName }} wikg://local/config/llm put provider openai
|
|
38
|
+
{{ commandName }} wikg://local/config/llm put model gpt-4.1
|
|
39
|
+
{{ commandName }} wikg://local/config/concurrent put job 3
|
|
40
|
+
{{ commandName }} wikg://local/config/concurrent put request 6
|
|
41
|
+
{{ commandName }} wikg://local/config/wikispine put provider cli
|
|
42
|
+
{{ commandName }} wikg://local/config/wikispine put provider fetch
|
|
43
|
+
|
|
44
|
+
Store the API key:
|
|
45
|
+
{{ commandName }} wikg://local/config/llm put apiKey --secret
|
|
46
|
+
|
|
47
|
+
Secret handling:
|
|
48
|
+
- `apiKey` is read through an interactive hidden prompt.
|
|
49
|
+
- `apiKey` is masked as `****` in command output.
|
|
50
|
+
- `set --json` cannot set a real `apiKey`.
|
|
51
|
+
- `set --json` may include `"apiKey":"****"` to preserve an existing secret.
|
|
52
|
+
- Omitting `apiKey` from `set --json` removes it from the section.
|
|
53
|
+
|
|
54
|
+
Minimum LLM-backed operation configuration:
|
|
55
|
+
- `llm.provider`
|
|
56
|
+
- `llm.model`
|
|
57
|
+
- Provider credentials when required by the selected provider.
|
|
58
|
+
|
|
59
|
+
One-run overrides:
|
|
60
|
+
`--llm <json>` can provide an LLM object for one invocation.
|
|
61
|
+
It accepts direct LLM objects and common OpenAI-compatible aliases such as `baseUrl`.
|
|
62
|
+
A base URL implies `openai-compatible` when `provider` is omitted.
|
|
63
|
+
Generation jobs may also receive `--llm <json>` at `{{ commandName }} wikg://local/job add`;
|
|
64
|
+
that job-local LLM object is stored with the job and does not appear in `wikg://local/config/llm`.
|
|
65
|
+
|
|
66
|
+
Examples:
|
|
67
|
+
{{ commandName }} wikg://local/config/llm put provider openai
|
|
68
|
+
{{ commandName }} wikg://local/config/llm put model gpt-4.1
|
|
69
|
+
{{ commandName }} wikg://local/config/llm put apiKey --secret
|
|
70
|
+
{{ commandName }} wikg://local/config/llm test
|
|
71
|
+
{{ commandName }} wikg://local/config/wikispine put provider fetch
|
|
72
|
+
{{ commandName }} wikg://local/config/wikispine test
|
|
73
|
+
|
|
74
|
+
WikiSpine:
|
|
75
|
+
Knowledge Graph builds require WikiSpine. If `wikispine` is missing,
|
|
76
|
+
configure one provider and run the config test before starting Knowledge Graph work.
|
|
77
|
+
Runtime setup and recovery guide:
|
|
78
|
+
https://raw.githubusercontent.com/oomol-lab/wiki-graph/refs/heads/main/docs/wikispine-runtime.md
|
|
79
|
+
|
|
80
|
+
Where to go next:
|
|
81
|
+
- Need the normal workflow:
|
|
82
|
+
{{ commandName }} help recipe
|
|
83
|
+
- Need to understand why index, LLM, or WikiSpine blocks retrieval/generation:
|
|
84
|
+
{{ commandName }} help readiness
|
|
85
|
+
- Need URI grammar:
|
|
86
|
+
{{ commandName }} help uri
|
|
87
|
+
- Need runtime effects for generation jobs:
|
|
88
|
+
{{ commandName }} help runtime
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Help Type: topic
|
|
2
|
+
Topic: format
|
|
3
|
+
|
|
4
|
+
Format Rules
|
|
5
|
+
|
|
6
|
+
Purpose:
|
|
7
|
+
Format rules cover archive file formats, explicit stdin/stdout behavior, and command output shapes for Agents and scripts.
|
|
8
|
+
|
|
9
|
+
Managed archive format:
|
|
10
|
+
wikg
|
|
11
|
+
|
|
12
|
+
Archive create/import input:
|
|
13
|
+
epub via `{{ commandName }} <archive-uri> create --import <epub-path>`
|
|
14
|
+
|
|
15
|
+
Export formats:
|
|
16
|
+
txt, markdown, epub
|
|
17
|
+
|
|
18
|
+
Transform input/output formats:
|
|
19
|
+
input: wikg, epub, txt, markdown
|
|
20
|
+
output: wikg, txt, markdown
|
|
21
|
+
|
|
22
|
+
Inference rules:
|
|
23
|
+
- File paths use their extension when the format flag is omitted.
|
|
24
|
+
- Transform stdin requires an explicit `--input-format`.
|
|
25
|
+
- Commands that accept content input use `--input <path>` for files and `--input -` for stdin.
|
|
26
|
+
- Archive chapter/source text commands read plain source text and do not use `--input-format`.
|
|
27
|
+
- Stdout text export requires an explicit or inferable output format.
|
|
28
|
+
- `transform --stage` is only valid when creating `.wikg` from source input.
|
|
29
|
+
|
|
30
|
+
Command output shapes:
|
|
31
|
+
- Default text output is for direct human reading and quick inspection.
|
|
32
|
+
- Use `--json` when an Agent or script needs one stable machine-readable response.
|
|
33
|
+
- Use `--jsonl` when a command returns many records, streams progress, or feeds a Unix pipeline.
|
|
34
|
+
- Whole `source` and `summary` text objects are plain text streams and do not support `--json`.
|
|
35
|
+
- Ranged fragments such as `/source#20..30` and `/summary#20..30` are structured range objects and support `--json`.
|
|
36
|
+
- Source and summary range numbers are 1-based and inclusive.
|
|
37
|
+
- Commands that do not support `--json` or `--jsonl` say so in their command help or error message.
|
|
38
|
+
|
|
39
|
+
JSON:
|
|
40
|
+
`--json` prints one JSON value to stdout.
|
|
41
|
+
It is usually the best Agent-facing format for inspecting one object, one result page, one config section, one job, or one command report.
|
|
42
|
+
Prefer it over parsing text when you need fields such as `uri`, `title`, `state`, `nextCursor`, readiness flags, or job status.
|
|
43
|
+
|
|
44
|
+
JSONL:
|
|
45
|
+
`--jsonl` prints one JSON record per line.
|
|
46
|
+
Use it for object inventories, large scope traversal, progress streams, and pipe-oriented downstream processing.
|
|
47
|
+
JSONL may contain both object records and control records.
|
|
48
|
+
A paged scope can end with a control record such as:
|
|
49
|
+
{"type":"page","nextCursor":"..."}
|
|
50
|
+
Filter by `type` when a downstream program expects only archive objects.
|
|
51
|
+
|
|
52
|
+
Full-scope export pattern:
|
|
53
|
+
`--jsonl` is an output shape; it does not imply `--all`.
|
|
54
|
+
Use `--all --jsonl` when intentionally exporting every object from the selected scope.
|
|
55
|
+
Prefer the narrowest useful scope before full export.
|
|
56
|
+
Avoid `--all` without `--jsonl` for large result sets because text and JSON output are buffered before printing.
|
|
57
|
+
Avoid `--all | head` as a preview pattern. Shell truncation only limits what you read.
|
|
58
|
+
|
|
59
|
+
Stdout and stderr:
|
|
60
|
+
Machine-readable command results go to stdout.
|
|
61
|
+
Progress, warnings, and diagnostics go to stderr.
|
|
62
|
+
Commands that accept `--json` or `--jsonl` emit machine-readable error objects when those flags are present.
|
|
63
|
+
|
|
64
|
+
Examples:
|
|
65
|
+
{{ commandName }} wikg://book.wikg create
|
|
66
|
+
{{ commandName }} wikg://book.wikg create --import ./book.epub
|
|
67
|
+
{{ commandName }} wikg://book.wikg export --output-format markdown --output out.md
|
|
68
|
+
cat chapter.txt | {{ commandName }} transform --input-format txt --output-format markdown
|
|
69
|
+
{{ commandName }} wikg://book.wikg inspect --json
|
|
70
|
+
{{ commandName }} wikg://book.wikg/entity --all --jsonl
|
|
71
|
+
|
|
72
|
+
Transforming source input usually requires LLM configuration.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Help Type: topic
|
|
2
|
+
Topic: readiness
|
|
3
|
+
|
|
4
|
+
Readiness
|
|
5
|
+
|
|
6
|
+
Purpose:
|
|
7
|
+
Use this when `inspect` reports missing `--query` support, generated data, or provider configuration.
|
|
8
|
+
Readiness explains what must exist before `--query`, Reading Graph, summaries, and Knowledge Graph retrieval can work.
|
|
9
|
+
|
|
10
|
+
Start with inspect:
|
|
11
|
+
{{ commandName }} <archive-uri> inspect
|
|
12
|
+
|
|
13
|
+
FTS readiness:
|
|
14
|
+
`--query` uses the archive FTS index. Without a current index, keyword retrieval is unavailable for scopes, evidence, and related results.
|
|
15
|
+
|
|
16
|
+
Default behavior:
|
|
17
|
+
`{{ commandName }} <archive-uri>/index enable` enables the searchable index as local cache outside the `.wikg` archive.
|
|
18
|
+
This keeps the archive smaller, but the index does not travel with copied archive files.
|
|
19
|
+
If another user receives the `.wikg`, they usually need to enable their own local index.
|
|
20
|
+
After an index is enabled, CLI archive writes keep it synchronized automatically.
|
|
21
|
+
Do not enable the index again after every generation job.
|
|
22
|
+
|
|
23
|
+
Portable behavior:
|
|
24
|
+
`{{ commandName }} <archive-uri>/index embed` switches to an archive-embedded searchable index and ensures it is current.
|
|
25
|
+
This makes the archive more self-contained, but increases file size.
|
|
26
|
+
After embedding, CLI archive writes keep the embedded index synchronized automatically.
|
|
27
|
+
If you are unsure, enable the local index first and embed only when distribution convenience matters.
|
|
28
|
+
|
|
29
|
+
Commands:
|
|
30
|
+
{{ commandName }} <archive-uri>/index
|
|
31
|
+
{{ commandName }} <archive-uri>/index enable --help
|
|
32
|
+
{{ commandName }} <archive-uri>/index disable --help
|
|
33
|
+
{{ commandName }} <archive-uri>/index embed --help
|
|
34
|
+
{{ commandName }} <archive-uri>/index external --help
|
|
35
|
+
|
|
36
|
+
Generation readiness:
|
|
37
|
+
Reading Graph, Reading Summary, and Knowledge Graph data are generated artifacts.
|
|
38
|
+
They do not appear just because source text exists.
|
|
39
|
+
|
|
40
|
+
All generation jobs require LLM configuration:
|
|
41
|
+
{{ commandName }} wikg://local/config/llm
|
|
42
|
+
{{ commandName }} wikg://local/config/llm test
|
|
43
|
+
|
|
44
|
+
Inspect job commands before starting expensive work:
|
|
45
|
+
{{ commandName }} wikg://local/job --help
|
|
46
|
+
{{ commandName }} wikg://local/job add --help
|
|
47
|
+
|
|
48
|
+
LLM readiness:
|
|
49
|
+
`wikg://local/config/llm` is required for generating:
|
|
50
|
+
- Reading Graph
|
|
51
|
+
- Reading Summary
|
|
52
|
+
- Knowledge Graph
|
|
53
|
+
|
|
54
|
+
Minimum configuration:
|
|
55
|
+
provider
|
|
56
|
+
model
|
|
57
|
+
provider credentials when required
|
|
58
|
+
|
|
59
|
+
Common path:
|
|
60
|
+
{{ commandName }} wikg://local/config/llm put provider openai
|
|
61
|
+
{{ commandName }} wikg://local/config/llm put model gpt-4.1
|
|
62
|
+
{{ commandName }} wikg://local/config/llm put apiKey --secret
|
|
63
|
+
{{ commandName }} wikg://local/config/llm test
|
|
64
|
+
|
|
65
|
+
WikiSpine readiness:
|
|
66
|
+
Knowledge Graph generation also requires WikiSpine.
|
|
67
|
+
WikiSpine provides entity candidate lookup for Knowledge Graph construction.
|
|
68
|
+
|
|
69
|
+
Provider choices:
|
|
70
|
+
- `fetch`: use the built-in WikiSpine HTTP service. This is usually easier for Agents and hosted setups.
|
|
71
|
+
- `cli`: run the local `wikispine` command from PATH. This is useful for offline or locally controlled environments, but requires local runtime setup and data.
|
|
72
|
+
|
|
73
|
+
Configure one provider, then test it:
|
|
74
|
+
{{ commandName }} wikg://local/config/wikispine put provider fetch
|
|
75
|
+
{{ commandName }} wikg://local/config/wikispine test
|
|
76
|
+
|
|
77
|
+
{{ commandName }} wikg://local/config/wikispine put provider cli
|
|
78
|
+
{{ commandName }} wikg://local/config/wikispine test
|
|
79
|
+
|
|
80
|
+
Runtime setup and recovery guide:
|
|
81
|
+
https://raw.githubusercontent.com/oomol-lab/wiki-graph/refs/heads/main/docs/wikispine-runtime.md
|
|
82
|
+
|
|
83
|
+
How to choose:
|
|
84
|
+
- Need keyword retrieval on this machine: enable local index.
|
|
85
|
+
- Need to send a more self-contained `.wikg`: consider embedding the index.
|
|
86
|
+
- Need to intentionally drop query support or index materialization: disable index.
|
|
87
|
+
- Need generated Reading Graph or summaries: configure LLM and use local jobs.
|
|
88
|
+
- Need Knowledge Graph: configure LLM and WikiSpine, then use local jobs.
|
|
89
|
+
- Not sure whether to embed index or generate missing data: keep the archive external/local first, inspect again, and decide later.
|
|
90
|
+
|
|
91
|
+
Where to go next:
|
|
92
|
+
- Normal workflow:
|
|
93
|
+
{{ commandName }} help recipe
|
|
94
|
+
- Exact config fields and secret handling:
|
|
95
|
+
{{ commandName }} help config
|
|
96
|
+
- Job runtime, logs, cache, and failures:
|
|
97
|
+
{{ commandName }} help runtime
|
|
98
|
+
- URI and predicate help for index/job/config targets:
|
|
99
|
+
{{ commandName }} <uri> --help
|