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,460 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} <uri> {{ predicate }}
|
|
3
|
+
|
|
4
|
+
URI Predicate Command
|
|
5
|
+
|
|
6
|
+
Target:
|
|
7
|
+
{{ uri }}
|
|
8
|
+
|
|
9
|
+
Predicate:
|
|
10
|
+
{{ predicate }}
|
|
11
|
+
|
|
12
|
+
{% if predicate == "related" %}
|
|
13
|
+
Purpose:
|
|
14
|
+
Expand from the current chunk or entity object to nearby objects.
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
{{ commandName }} {{ uri }} related [--query <query>] [--reverse] [--all] [--limit <n>] [--context <n>] [--cursor <token>] [--role <any|subject|object|self>] [--evidence [n]] [--json|--jsonl]
|
|
18
|
+
|
|
19
|
+
Notes:
|
|
20
|
+
- Chunk targets return nearby Reading Graph chunks.
|
|
21
|
+
- Entity targets return Knowledge Graph triples involving the entity.
|
|
22
|
+
- `--query` filters and ranks related results with the current FTS index.
|
|
23
|
+
- Without `--query`, `--reverse` reads Document Flow order backward. See `{{ commandName }} help uri`.
|
|
24
|
+
- `--role` only applies to entity targets.
|
|
25
|
+
- Use `{{ commandName }} {{ uri }} evidence --help` when source grounding is the main goal.
|
|
26
|
+
{% elif predicate == "evidence" %}
|
|
27
|
+
Purpose:
|
|
28
|
+
Trace the current object back to source-backed evidence.
|
|
29
|
+
|
|
30
|
+
Usage:
|
|
31
|
+
{{ commandName }} {{ uri }} evidence [--query <query>] [--reverse] [--all] [--limit <n>] [--context <n>] [--cursor <token>] [--json|--jsonl]
|
|
32
|
+
|
|
33
|
+
Notes:
|
|
34
|
+
- Evidence is for grounding, verification, and citation support.
|
|
35
|
+
- `--query` filters and ranks evidence with the current FTS index.
|
|
36
|
+
- Without `--query`, `--reverse` reads Document Flow order backward. See `{{ commandName }} help uri`.
|
|
37
|
+
- Evidence previews include nearby source context by default; use `--context 0` for exact cited ranges.
|
|
38
|
+
- Source and scope URIs are not evidence targets.
|
|
39
|
+
{% elif predicate == "pack" %}
|
|
40
|
+
Purpose:
|
|
41
|
+
Build bounded Agent-readable context around the current chunk or entity object.
|
|
42
|
+
|
|
43
|
+
Usage:
|
|
44
|
+
{{ commandName }} {{ uri }} pack [--budget <chars>] [--json|--jsonl]
|
|
45
|
+
|
|
46
|
+
Notes:
|
|
47
|
+
- Default budget is 5000 characters.
|
|
48
|
+
- Use this after selecting a useful chunk or entity.
|
|
49
|
+
- Use `evidence` first when verification matters more than context assembly.
|
|
50
|
+
{% elif predicate == "create" %}
|
|
51
|
+
Purpose:
|
|
52
|
+
Create the archive at this URI.
|
|
53
|
+
|
|
54
|
+
Usage:
|
|
55
|
+
{{ commandName }} {{ uri }} create [--import <epub-path>] [--replace] [--json]
|
|
56
|
+
|
|
57
|
+
Notes:
|
|
58
|
+
- Without `--import`, create an empty `.wikg` archive.
|
|
59
|
+
- `--import <epub-path>` creates the archive and imports EPUB metadata, cover, chapter tree, and source text.
|
|
60
|
+
- `create` does not read stdin; `--import` only accepts EPUB input.
|
|
61
|
+
- EPUB import runs only the import/source stage and does not call an LLM provider.
|
|
62
|
+
- Existing archives are not overwritten by default. Use `--replace` only when the target archive should be discarded and recreated.
|
|
63
|
+
- Parent directories must already exist.
|
|
64
|
+
- On success, text output is the archive object (`<archive>`). With `--json`, output is `{"uri":"..."}`.
|
|
65
|
+
|
|
66
|
+
Examples:
|
|
67
|
+
{{ commandName }} {{ uri }} create --json
|
|
68
|
+
{{ commandName }} {{ uri }} create --import ./book.epub
|
|
69
|
+
|
|
70
|
+
Next:
|
|
71
|
+
{{ commandName }} {{ uri }} inspect
|
|
72
|
+
{% elif predicate == "export" %}
|
|
73
|
+
Purpose:
|
|
74
|
+
Export a projection from this archive.
|
|
75
|
+
|
|
76
|
+
Usage:
|
|
77
|
+
{{ commandName }} {{ uri }} export [--output-format markdown|txt|epub] [--output <path>]
|
|
78
|
+
|
|
79
|
+
Notes:
|
|
80
|
+
- Default output format is markdown when omitted by the parser, but explicit `--output-format` is recommended.
|
|
81
|
+
- Without `--output`, exported content is written to stdout.
|
|
82
|
+
- `--json` and `--jsonl` are not supported; the output stream is the exported projection.
|
|
83
|
+
- Text exports depend on available source/summary content. Missing summaries produce an error that points to the generation command.
|
|
84
|
+
- Export does not build Reading Graph or Knowledge Graph coverage.
|
|
85
|
+
- Projections are portable views; they do not replace the `.wikg` archive.
|
|
86
|
+
|
|
87
|
+
Examples:
|
|
88
|
+
{{ commandName }} {{ uri }} export --output-format markdown --output book.md
|
|
89
|
+
{{ commandName }} {{ uri }} export --output-format txt > book.txt
|
|
90
|
+
{% elif predicate == "inspect" %}
|
|
91
|
+
Purpose:
|
|
92
|
+
Inspect archive readiness before `--query`, retrieval, or starting generated work.
|
|
93
|
+
|
|
94
|
+
Usage:
|
|
95
|
+
{{ commandName }} {{ uri }} inspect [--json]
|
|
96
|
+
|
|
97
|
+
Notes:
|
|
98
|
+
- Run this before broad Reading Graph, Reading Summary, or Knowledge Graph work.
|
|
99
|
+
- The report includes content counts, FTS index readiness, generation coverage, retrieval guidance, recommended next commands, planning estimates, and concurrency hints.
|
|
100
|
+
- Use `--json` for a machine-readable report with the same recommendations.
|
|
101
|
+
{% elif predicate == "add" and target.name == "chapter-collection-scope" %}
|
|
102
|
+
Purpose:
|
|
103
|
+
Add a chapter to the archive.
|
|
104
|
+
|
|
105
|
+
Usage:
|
|
106
|
+
{{ commandName }} {{ uri }} add [--parent <chapter-uri>] [--title <title>] [--input <path|->] [--json]
|
|
107
|
+
|
|
108
|
+
Notes:
|
|
109
|
+
- Without `--input`, creates an empty planned chapter placeholder.
|
|
110
|
+
- With `--input <path>`, creates a chapter and fills source text.
|
|
111
|
+
- Use `--input -` to read source text from stdin.
|
|
112
|
+
- Source input must not be empty when `--input` is used.
|
|
113
|
+
{% elif predicate == "add" and target.name == "job-collection-scope" %}
|
|
114
|
+
Purpose:
|
|
115
|
+
Add a local generation job.
|
|
116
|
+
|
|
117
|
+
Usage:
|
|
118
|
+
{{ commandName }} {{ uri }} add --input <archive-uri|chapter-uri> --task reading-graph|reading-summary|knowledge-graph --accept-cost [--boost] [--llm <json>] [--prompt <text>]
|
|
119
|
+
|
|
120
|
+
Notes:
|
|
121
|
+
- Generation jobs may call an LLM provider and incur cost.
|
|
122
|
+
- Archive input adds jobs for all eligible chapters; chapter input adds one job.
|
|
123
|
+
- `--llm <json>` stores a job-local LLM object; it does not update `wikg://local/config/llm`.
|
|
124
|
+
{% elif predicate == "move" %}
|
|
125
|
+
Purpose:
|
|
126
|
+
Move this chapter in the chapter tree.
|
|
127
|
+
|
|
128
|
+
Usage:
|
|
129
|
+
{{ commandName }} {{ uri }} move [--parent <chapter-uri>] [--after <chapter-uri>] [--before <chapter-uri>]
|
|
130
|
+
{% elif predicate == "remove" %}
|
|
131
|
+
Purpose:
|
|
132
|
+
Remove this chapter.
|
|
133
|
+
|
|
134
|
+
Usage:
|
|
135
|
+
{{ commandName }} {{ uri }} remove [--confirm]
|
|
136
|
+
{% elif predicate == "reset" %}
|
|
137
|
+
Purpose:
|
|
138
|
+
Delete later-stage artifacts for this chapter.
|
|
139
|
+
|
|
140
|
+
Usage:
|
|
141
|
+
{{ commandName }} {{ uri }} reset --to source|reading-graph|reading-summary|knowledge-graph [--confirm]
|
|
142
|
+
{% elif predicate == "set" %}
|
|
143
|
+
{% if target.name == "chapter-tree-object" %}
|
|
144
|
+
Purpose:
|
|
145
|
+
Replace the chapter tree with a JSON tree document.
|
|
146
|
+
|
|
147
|
+
Usage:
|
|
148
|
+
{{ commandName }} {{ uri }} set --input <tree.json|->
|
|
149
|
+
|
|
150
|
+
Notes:
|
|
151
|
+
- The input is a chapter tree JSON document produced by the chapter tree view.
|
|
152
|
+
- Use `--input -` to read the tree JSON from stdin.
|
|
153
|
+
- This rewires chapter hierarchy and order; it does not rewrite chapter source text or generated graph content.
|
|
154
|
+
{% elif target.name == "chapter-source-object" %}
|
|
155
|
+
Purpose:
|
|
156
|
+
Replace this chapter source text.
|
|
157
|
+
|
|
158
|
+
Usage:
|
|
159
|
+
{{ commandName }} {{ uri }} set [text] [--input <path|->]
|
|
160
|
+
|
|
161
|
+
Notes:
|
|
162
|
+
- Source text is read from a positional value, `--input <path>`, or `--input -` for stdin.
|
|
163
|
+
- Source replacement invalidates later generated work for that chapter.
|
|
164
|
+
- Use `{{ commandName }} {{ uri }} --help` to inspect the source object before replacing it.
|
|
165
|
+
{% elif target.name == "chapter-summary-object" %}
|
|
166
|
+
Purpose:
|
|
167
|
+
Replace this chapter summary text.
|
|
168
|
+
|
|
169
|
+
Usage:
|
|
170
|
+
{{ commandName }} {{ uri }} set [text] [--input <path|->]
|
|
171
|
+
|
|
172
|
+
Notes:
|
|
173
|
+
- The input is plain summary text from a positional value, `--input <path>`, or `--input -` for stdin.
|
|
174
|
+
- This sets the summary resource directly; it does not call an LLM provider.
|
|
175
|
+
{% elif target.name == "chapter-title-object" %}
|
|
176
|
+
Purpose:
|
|
177
|
+
Replace this chapter title.
|
|
178
|
+
|
|
179
|
+
Usage:
|
|
180
|
+
{{ commandName }} {{ uri }} set <title>
|
|
181
|
+
|
|
182
|
+
Notes:
|
|
183
|
+
- Use `clear` on the same title URI to remove an explicit title.
|
|
184
|
+
{% elif target.name == "job-target-object" %}
|
|
185
|
+
Purpose:
|
|
186
|
+
Change the generation target for this local job.
|
|
187
|
+
|
|
188
|
+
Usage:
|
|
189
|
+
{{ commandName }} {{ uri }} set reading-graph|reading-summary|knowledge-graph
|
|
190
|
+
|
|
191
|
+
Notes:
|
|
192
|
+
- This changes what the job will generate when resumed or picked up by a worker.
|
|
193
|
+
- Use `{{ commandName }} {{ uri }} --help` to inspect the current job target first.
|
|
194
|
+
{% elif target.name == "local-config-section" %}
|
|
195
|
+
Purpose:
|
|
196
|
+
Replace this entire local config section with a JSON object.
|
|
197
|
+
|
|
198
|
+
Usage:
|
|
199
|
+
{{ commandName }} {{ uri }} set <json> [--json]
|
|
200
|
+
{{ commandName }} {{ uri }} set --json-input <json> [--json]
|
|
201
|
+
|
|
202
|
+
{% if "/llm" in uri %}
|
|
203
|
+
Schema:
|
|
204
|
+
{
|
|
205
|
+
"provider": "openai|openai-compatible|anthropic|google",
|
|
206
|
+
"model": "<model-name>",
|
|
207
|
+
"baseURL": "<url>",
|
|
208
|
+
"name": "<display-name>"
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
Notes:
|
|
212
|
+
- Allowed keys: provider, model, baseURL, name, apiKey.
|
|
213
|
+
- `apiKey` is sensitive and cannot be set from JSON.
|
|
214
|
+
- If current output shows `"apiKey":"****"`, passing the same masked value preserves the existing secret.
|
|
215
|
+
- To add or replace the secret, use `{{ commandName }} {{ uri }} put apiKey --secret`.
|
|
216
|
+
- To remove the secret, use `{{ commandName }} {{ uri }} delete apiKey`.
|
|
217
|
+
{% elif "/wikispine" in uri %}
|
|
218
|
+
Schema:
|
|
219
|
+
{
|
|
220
|
+
"provider": "fetch|cli"
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
Notes:
|
|
224
|
+
- `fetch` uses the built-in WikiSpine service endpoint.
|
|
225
|
+
- `cli` runs the local `wikispine` command from PATH.
|
|
226
|
+
{% elif "/concurrent" in uri %}
|
|
227
|
+
Schema:
|
|
228
|
+
{
|
|
229
|
+
"job": 3,
|
|
230
|
+
"request": 6
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
Notes:
|
|
234
|
+
- Allowed keys: job, request.
|
|
235
|
+
- Values must be positive integers.
|
|
236
|
+
{% endif %}
|
|
237
|
+
|
|
238
|
+
Examples:
|
|
239
|
+
{% if "/llm" in uri %}
|
|
240
|
+
{{ commandName }} {{ uri }} set '{"provider":"openai","model":"gpt-4.1"}'
|
|
241
|
+
{{ commandName }} {{ uri }} set --json-input '{"provider":"openai-compatible","model":"model-name"}'
|
|
242
|
+
{{ commandName }} {{ uri }} set '{"provider":"google","model":"gemini-2.5-pro"}' --json
|
|
243
|
+
{% elif "/wikispine" in uri %}
|
|
244
|
+
{{ commandName }} {{ uri }} set '{"provider":"fetch"}'
|
|
245
|
+
{{ commandName }} {{ uri }} set '{"provider":"cli"}'
|
|
246
|
+
{% elif "/concurrent" in uri %}
|
|
247
|
+
{{ commandName }} {{ uri }} set '{"job":3,"request":6}'
|
|
248
|
+
{{ commandName }} {{ uri }} set --json-input '{"job":2,"request":4}'
|
|
249
|
+
{% endif %}
|
|
250
|
+
{% elif "/meta" in uri %}
|
|
251
|
+
Purpose:
|
|
252
|
+
Replace this metadata object from a JSON object or input value.
|
|
253
|
+
|
|
254
|
+
Usage:
|
|
255
|
+
{{ commandName }} {{ uri }} set <json> [--json]
|
|
256
|
+
{{ commandName }} {{ uri }} set --input <path|-> [--json]
|
|
257
|
+
{{ commandName }} {{ uri }} set --json-input <json> [--json]
|
|
258
|
+
|
|
259
|
+
Notes:
|
|
260
|
+
- Metadata shape depends on whether this is archive metadata or object metadata.
|
|
261
|
+
- Use `--input -` when metadata JSON should come from stdin.
|
|
262
|
+
- `put`, `delete`, and `clear` are usually safer for single-key metadata edits.
|
|
263
|
+
{% else %}
|
|
264
|
+
Purpose:
|
|
265
|
+
This URI target has no generic `set` behavior.
|
|
266
|
+
|
|
267
|
+
Usage:
|
|
268
|
+
{{ commandName }} {{ uri }} --help
|
|
269
|
+
|
|
270
|
+
Notes:
|
|
271
|
+
- `set` is target-specific. Use the URI help page to find the writable child resource or supported predicate.
|
|
272
|
+
{% endif %}
|
|
273
|
+
{% elif predicate == "clear" %}
|
|
274
|
+
Purpose:
|
|
275
|
+
Clear this writable resource or local config section.
|
|
276
|
+
|
|
277
|
+
Usage:
|
|
278
|
+
{{ commandName }} {{ uri }} clear
|
|
279
|
+
|
|
280
|
+
{% if target.name == "local-config-section" %}
|
|
281
|
+
Notes:
|
|
282
|
+
- Clears every key in this local config section, including secrets.
|
|
283
|
+
- No confirmation prompt is shown.
|
|
284
|
+
- Success output is the now-empty JSON object: `{}`.
|
|
285
|
+
{% elif "/meta" in uri %}
|
|
286
|
+
Notes:
|
|
287
|
+
- Clears all metadata keys for this metadata object.
|
|
288
|
+
- No confirmation prompt is shown.
|
|
289
|
+
{% else %}
|
|
290
|
+
Notes:
|
|
291
|
+
- This predicate is only available on URI targets that explicitly support clearing.
|
|
292
|
+
{% endif %}
|
|
293
|
+
{% elif predicate == "enable" %}
|
|
294
|
+
Purpose:
|
|
295
|
+
Enable searchable FTS index support for this archive on this machine.
|
|
296
|
+
|
|
297
|
+
Usage:
|
|
298
|
+
{{ commandName }} {{ uri }} enable [--jsonl]
|
|
299
|
+
|
|
300
|
+
Notes:
|
|
301
|
+
- This initializes or repairs the local searchable index and may take time on large archives.
|
|
302
|
+
- After the index is enabled, CLI archive writes keep it synchronized automatically.
|
|
303
|
+
- Do not run this after every generation job; run it when `inspect` says query support is unavailable or the index needs repair.
|
|
304
|
+
- By default the index is stored as local cache outside the `.wikg` archive. Use `embed` when the index should travel with the archive.
|
|
305
|
+
- Enabling uses local CPU and disk only; it does not call an LLM provider.
|
|
306
|
+
- Text success output is a short status summary.
|
|
307
|
+
- With `--jsonl`, progress is emitted as line-delimited event records such as step/status/error records.
|
|
308
|
+
- After enable succeeds, `--query`, `related --query`, and `evidence --query` become available.
|
|
309
|
+
{% elif predicate == "disable" %}
|
|
310
|
+
Purpose:
|
|
311
|
+
Disable searchable FTS index support for this archive and remove the current index materialization.
|
|
312
|
+
|
|
313
|
+
Usage:
|
|
314
|
+
{{ commandName }} {{ uri }} disable [--json]
|
|
315
|
+
|
|
316
|
+
Notes:
|
|
317
|
+
- Disabling removes the current local or embedded index materialization.
|
|
318
|
+
- After disable succeeds, `--query`, `related --query`, and `evidence --query` are unavailable until `enable` or `embed` is run again.
|
|
319
|
+
- Use this when intentionally dropping index state, not as routine cleanup after generation.
|
|
320
|
+
{% elif predicate == "embed" %}
|
|
321
|
+
Purpose:
|
|
322
|
+
Use an archive-embedded searchable FTS index.
|
|
323
|
+
|
|
324
|
+
Usage:
|
|
325
|
+
{{ commandName }} {{ uri }} embed [--json]
|
|
326
|
+
|
|
327
|
+
Notes:
|
|
328
|
+
- This switches the index storage policy to the `.wikg` archive and ensures the embedded index is current.
|
|
329
|
+
- After embedding, CLI archive writes keep the embedded index synchronized automatically.
|
|
330
|
+
- This makes the archive more portable, but increases archive size.
|
|
331
|
+
- Use it when distributing a `.wikg` with keyword retrieval ready for another machine.
|
|
332
|
+
{% elif predicate == "external" %}
|
|
333
|
+
Purpose:
|
|
334
|
+
Use external local-cache storage for the searchable FTS index.
|
|
335
|
+
|
|
336
|
+
Usage:
|
|
337
|
+
{{ commandName }} {{ uri }} external [--json]
|
|
338
|
+
|
|
339
|
+
Notes:
|
|
340
|
+
- This switches the index storage policy back to local cache outside the `.wikg` archive.
|
|
341
|
+
- The archive no longer carries embedded index data.
|
|
342
|
+
- If query support is needed on this machine after externalizing, run `{{ commandName }} {{ uri }} enable`.
|
|
343
|
+
{% elif predicate == "clean" %}
|
|
344
|
+
Purpose:
|
|
345
|
+
Remove completed local generation jobs.
|
|
346
|
+
|
|
347
|
+
Usage:
|
|
348
|
+
{{ commandName }} {{ uri }} clean
|
|
349
|
+
{% elif predicate == "watch" %}
|
|
350
|
+
Purpose:
|
|
351
|
+
Follow durable local job progress.
|
|
352
|
+
|
|
353
|
+
Usage:
|
|
354
|
+
{{ commandName }} {{ uri }} watch [--jsonl] [--from beginning|now]
|
|
355
|
+
{% elif predicate == "pause" %}
|
|
356
|
+
Purpose:
|
|
357
|
+
Pause this local job.
|
|
358
|
+
|
|
359
|
+
Usage:
|
|
360
|
+
{{ commandName }} {{ uri }} pause
|
|
361
|
+
{% elif predicate == "resume" %}
|
|
362
|
+
Purpose:
|
|
363
|
+
Resume this local job.
|
|
364
|
+
|
|
365
|
+
Usage:
|
|
366
|
+
{{ commandName }} {{ uri }} resume
|
|
367
|
+
{% elif predicate == "cancel" %}
|
|
368
|
+
Purpose:
|
|
369
|
+
Cancel this local job.
|
|
370
|
+
|
|
371
|
+
Usage:
|
|
372
|
+
{{ commandName }} {{ uri }} cancel
|
|
373
|
+
{% elif predicate == "boost" %}
|
|
374
|
+
Purpose:
|
|
375
|
+
Move this local job forward in the local job scheduler.
|
|
376
|
+
|
|
377
|
+
Usage:
|
|
378
|
+
{{ commandName }} {{ uri }} boost
|
|
379
|
+
{% elif predicate == "put" %}
|
|
380
|
+
Purpose:
|
|
381
|
+
Set one key in this local config section.
|
|
382
|
+
|
|
383
|
+
Usage:
|
|
384
|
+
{{ commandName }} {{ uri }} put <key> <value>
|
|
385
|
+
{{ commandName }} {{ uri }} put <key> --json-input <json>
|
|
386
|
+
{% if "/llm" in uri %}
|
|
387
|
+
{{ commandName }} {{ uri }} put <key> --secret
|
|
388
|
+
{% endif %}
|
|
389
|
+
|
|
390
|
+
{% if target.name == "local-config-section" %}
|
|
391
|
+
{% if "/llm" in uri %}
|
|
392
|
+
Keys:
|
|
393
|
+
- provider: openai, openai-compatible, anthropic, or google
|
|
394
|
+
- model: non-empty model name
|
|
395
|
+
- baseURL: non-empty provider base URL string
|
|
396
|
+
- name: non-empty display name
|
|
397
|
+
- apiKey: secret; use `--secret`
|
|
398
|
+
{% elif "/wikispine" in uri %}
|
|
399
|
+
Keys:
|
|
400
|
+
- provider: fetch or cli
|
|
401
|
+
{% elif "/concurrent" in uri %}
|
|
402
|
+
Keys:
|
|
403
|
+
- job: positive integer
|
|
404
|
+
- request: positive integer
|
|
405
|
+
{% endif %}
|
|
406
|
+
|
|
407
|
+
Notes:
|
|
408
|
+
- Positional `<value>` is stored as a string.
|
|
409
|
+
- `--json-input` stores a JSON value and is useful for numeric config sections.
|
|
410
|
+
{% if "/llm" in uri %}
|
|
411
|
+
- `--secret` reads the value from an interactive terminal without echoing it; use it for `apiKey`.
|
|
412
|
+
{% endif %}
|
|
413
|
+
- Success output is the full section JSON with sensitive values masked.
|
|
414
|
+
{% endif %}
|
|
415
|
+
{% elif predicate == "delete" %}
|
|
416
|
+
Purpose:
|
|
417
|
+
Delete one key from this local config section.
|
|
418
|
+
|
|
419
|
+
Usage:
|
|
420
|
+
{{ commandName }} {{ uri }} delete <key>
|
|
421
|
+
|
|
422
|
+
{% if target.name == "local-config-section" %}
|
|
423
|
+
Notes:
|
|
424
|
+
- Deletes the key if present; deleting an absent key leaves the section unchanged.
|
|
425
|
+
- Success output is the full section JSON after deletion.
|
|
426
|
+
- Key aliases are normalized where supported, for example `api-key` to `apiKey`.
|
|
427
|
+
{% endif %}
|
|
428
|
+
{% elif predicate == "test" %}
|
|
429
|
+
Purpose:
|
|
430
|
+
Test connectivity for this local config section.
|
|
431
|
+
|
|
432
|
+
Usage:
|
|
433
|
+
{{ commandName }} {{ uri }} test [--json]
|
|
434
|
+
|
|
435
|
+
Notes:
|
|
436
|
+
- For `llm`, this sends a small request to the configured model.
|
|
437
|
+
- For `wikispine`, this checks the built-in fetch service or local `wikispine` command.
|
|
438
|
+
- Text success output is intentionally short.
|
|
439
|
+
- With `--json`, success and failure both return `{ "ok": true|false, ... }`; failures set a non-zero exit code.
|
|
440
|
+
- Without `--json`, failures print the command error. Use `{{ commandName }} help readiness` and `{{ commandName }} help config` to recover.
|
|
441
|
+
{% if "/wikispine" in uri %}
|
|
442
|
+
- Runtime setup and recovery guide: https://raw.githubusercontent.com/oomol-lab/wiki-graph/refs/heads/main/docs/wikispine-runtime.md
|
|
443
|
+
{% endif %}
|
|
444
|
+
{% endif %}
|
|
445
|
+
|
|
446
|
+
Related help:
|
|
447
|
+
- {{ commandName }} {{ uri }} --help
|
|
448
|
+
- {{ commandName }} help uri
|
|
449
|
+
{% if predicate == "related" or predicate == "evidence" or predicate == "pack" or predicate == "enable" or predicate == "disable" or predicate == "embed" or predicate == "external" or target.name == "index-object" or target.name == "job-collection-scope" %}
|
|
450
|
+
- {{ commandName }} help readiness
|
|
451
|
+
{% endif %}
|
|
452
|
+
{% if predicate == "create" or predicate == "export" %}
|
|
453
|
+
- {{ commandName }} help format
|
|
454
|
+
{% endif %}
|
|
455
|
+
{% if target.name == "job-collection-scope" or target.name == "job-object" or target.name == "job-target-object" %}
|
|
456
|
+
- {{ commandName }} help runtime
|
|
457
|
+
{% endif %}
|
|
458
|
+
{% if target.name == "local-config-section" %}
|
|
459
|
+
- {{ commandName }} help config
|
|
460
|
+
{% endif %}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }}
|
|
3
|
+
|
|
4
|
+
Wiki Graph CLI
|
|
5
|
+
|
|
6
|
+
Alias:
|
|
7
|
+
`{{ fullCommandName }}` is also installed as the full command name. Use it when `{{ commandName }}` conflicts with another local tool.
|
|
8
|
+
|
|
9
|
+
Purpose:
|
|
10
|
+
Operate `.wikg` knowledge-base archives through stable Wiki Graph objects.
|
|
11
|
+
A `.wikg` archive is managed storage for source text and generated knowledge structures.
|
|
12
|
+
Use CLI commands to inspect, retrieve, generate, edit, and export it.
|
|
13
|
+
|
|
14
|
+
Do not edit archive internals:
|
|
15
|
+
A `.wikg` file is a zip-based archive, but Agents must not unzip it, rewrite internal files, or bypass this CLI.
|
|
16
|
+
Direct internal edits can break consistency and damage the archive.
|
|
17
|
+
Use the CLI's retrieval, generation, metadata, chapter, config, and maintenance commands to modify it.
|
|
18
|
+
|
|
19
|
+
Knowledge-base contents:
|
|
20
|
+
A `.wikg` archive can contain:
|
|
21
|
+
- Knowledge Graph: entity and predicate networks for concepts, relations, and claims.
|
|
22
|
+
- Reading Graph: attention chunks that preserve source-backed reading context.
|
|
23
|
+
- Summaries: compressed reading outputs for chapters or archive scopes.
|
|
24
|
+
- Source text: original chapter content and source ranges.
|
|
25
|
+
These structures are URI-addressed and can be retrieved efficiently with keywords.
|
|
26
|
+
|
|
27
|
+
Required first step for Agents:
|
|
28
|
+
If you receive an unfamiliar archive, inspect it before querying, generating, or editing:
|
|
29
|
+
{{ commandName }} <archive-uri> inspect
|
|
30
|
+
|
|
31
|
+
Recommended next page:
|
|
32
|
+
Read the workflow recipe after this root page:
|
|
33
|
+
{{ commandName }} help recipe
|
|
34
|
+
It contains the practical flow: create/import, inspect, retrieve, choose objects, notice index/job blockers, and export.
|
|
35
|
+
|
|
36
|
+
Core concepts:
|
|
37
|
+
- Archive: a `.wikg` file addressed by an archive URI.
|
|
38
|
+
- Scope: a URI target that can enumerate objects and accept `--query`.
|
|
39
|
+
- Object: a URI target that reads one concrete archive object.
|
|
40
|
+
- Predicate: an operation bound to a URI target, such as `create`, `set`, `evidence`, `related`, or `pack`.
|
|
41
|
+
- Cursor: a continuation token consumed by `{{ commandName }} next`.
|
|
42
|
+
|
|
43
|
+
Important object families:
|
|
44
|
+
chapter, chunk, entity, triple, summary, index, job, config, meta.
|
|
45
|
+
|
|
46
|
+
What to learn where:
|
|
47
|
+
- Normal workflow, object choice, and practical Agent behavior:
|
|
48
|
+
{{ commandName }} help recipe
|
|
49
|
+
- Search index, LLM, WikiSpine, and generated-data prerequisites:
|
|
50
|
+
{{ commandName }} help readiness
|
|
51
|
+
- URI grammar, scope/object routing, pagination, and short URI handling:
|
|
52
|
+
{{ commandName }} help uri
|
|
53
|
+
- Input/output formats, inference, stdin, stdout, import, export, transform, JSON, and JSONL:
|
|
54
|
+
{{ commandName }} help format
|
|
55
|
+
- Local LLM, concurrency, and WikiSpine provider configuration:
|
|
56
|
+
{{ commandName }} help config
|
|
57
|
+
- Advanced runtime behavior, workers, cache, logs, and debugging:
|
|
58
|
+
{{ commandName }} help runtime
|
|
59
|
+
|
|
60
|
+
Help contract:
|
|
61
|
+
The CLI help system is part of the product contract. When you do not know what a target or operation supports, ask the CLI for the next document.
|
|
62
|
+
- Use `{{ commandName }} <uri> --help` to inspect a URI command, its default behavior, and supported predicates.
|
|
63
|
+
- Use `{{ commandName }} <uri> <predicate> --help` to inspect a URI-bound predicate command.
|
|
64
|
+
- Use `{{ commandName }} <non-predicate-command> --help` for non-predicate commands such as `transform`, `gc`, `legacy`, and `next`.
|
|
65
|
+
- Use `{{ commandName }} help <topic>` for cross-command concepts, constraints, and runtime behavior.
|
|
66
|
+
- Treat `{{ commandName }} --help` as the root page of the same help system.
|
|
67
|
+
- Use `{{ commandName }} legacy migrate --help` only when upgrading an `.sdpub` archive.
|
|
68
|
+
|
|
69
|
+
Non-predicate command entry points:
|
|
70
|
+
{{ commandName }} transform --help
|
|
71
|
+
{{ commandName }} next --help
|
|
72
|
+
{{ commandName }} gc --help
|
|
73
|
+
{{ commandName }} legacy --help
|
|
74
|
+
{{ commandName }} help [topic] [--help|-h]
|
|
75
|
+
|
|
76
|
+
Help topics:
|
|
77
|
+
{% for topic in helpTopics %}
|
|
78
|
+
- {{ commandName }} help {{ topic.name }}
|
|
79
|
+
{{ topic.summary }}
|
|
80
|
+
{% endfor %}
|
|
81
|
+
|
|
82
|
+
Formats:
|
|
83
|
+
{{ formats | join(", ") }}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} transform
|
|
3
|
+
|
|
4
|
+
Purpose:
|
|
5
|
+
Run a direct one-shot digest/export.
|
|
6
|
+
This is not a plain file-format converter; source inputs usually require LLM-backed digest work, and `--output-format wikg` can create a reusable `.wikg` archive.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
{{ commandName }} transform [--input <path>] [--output <path>] [--input-format <format>] [--output-format <format>] [--digest-dir <path>] [--llm <json>] [--prompt <text>] [--stage <planned|source|reading-graph|reading-summary>] [--verbose|-v]
|
|
10
|
+
|
|
11
|
+
Behavior:
|
|
12
|
+
- Reads from `--input <path>`, or from stdin when `--input` is omitted.
|
|
13
|
+
- Writes to `--output <path>`, or to stdout when `--output` is omitted.
|
|
14
|
+
- Source inputs (`epub`, `txt`, `markdown`) call an LLM unless `--output-format wikg --stage planned|source` is used.
|
|
15
|
+
- Existing `.wikg` input can be exported to text without running digest generation.
|
|
16
|
+
- Does not leave a managed archive unless `--output-format wikg` is selected.
|
|
17
|
+
|
|
18
|
+
LLM-backed source examples:
|
|
19
|
+
cat chapter.txt | {{ commandName }} transform --input-format txt --output-format markdown
|
|
20
|
+
{{ commandName }} transform --input book.epub --output digest.md --output-format markdown
|
|
21
|
+
|
|
22
|
+
Existing archive export example:
|
|
23
|
+
{{ commandName }} transform --input book.wikg --output digest.md --output-format markdown
|
|
24
|
+
|
|
25
|
+
Where to go next:
|
|
26
|
+
- Prefer reusable archives:
|
|
27
|
+
{{ commandName }} wikg://book.wikg create
|
|
28
|
+
{{ commandName }} wikg://book.wikg create --import ./book.epub
|
|
29
|
+
- Configure LLM defaults:
|
|
30
|
+
{{ commandName }} wikg://local/config/llm
|
|
31
|
+
- Format inference, stdin, stdout, and legal conversions:
|
|
32
|
+
{{ commandName }} help format
|
|
33
|
+
- Runtime behavior for stdin/stdout, logs, and failures:
|
|
34
|
+
{{ commandName }} help runtime
|