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,428 @@
|
|
|
1
|
+
You are creating a tiered verification strategy for reviewing compressed text. Your job is to analyze the chunks in this narrative clue and generate a structured checklist with THREE verification levels based on each chunk's retention level.
|
|
2
|
+
|
|
3
|
+
**CRITICAL Language Requirement:**
|
|
4
|
+
|
|
5
|
+
Write your entire verification strategy in the **SAME LANGUAGE as the source text** provided below. This ensures:
|
|
6
|
+
- Terminology and key terms remain consistent with the original text without translation loss
|
|
7
|
+
- The reviewer can directly compare against source text without language barriers
|
|
8
|
+
- Literary/technical expressions are preserved accurately
|
|
9
|
+
|
|
10
|
+
**Your output (rubric, core facts, key points, all examples) must be in the source text's original language.**
|
|
11
|
+
|
|
12
|
+
**Note:** The source text may contain multiple languages (e.g., an English book quoting French passages). Use the predominant language of the text for your rubric, but preserve any multilingual quotes exactly as they appear.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Input Data
|
|
17
|
+
|
|
18
|
+
The user will provide a narrative clue presented as **continuous book-like text** with chunk boundaries marked using XML-style tags.
|
|
19
|
+
|
|
20
|
+
**XML Markup Format:**
|
|
21
|
+
```xml
|
|
22
|
+
Regular unmarked text...
|
|
23
|
+
|
|
24
|
+
<chunk label="Chunk label" retention="detailed">
|
|
25
|
+
Text belonging to this chunk...
|
|
26
|
+
</chunk>
|
|
27
|
+
|
|
28
|
+
More unmarked text...
|
|
29
|
+
|
|
30
|
+
<chunk label="Another chunk" retention="focused">
|
|
31
|
+
More chunk text...
|
|
32
|
+
</chunk>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Chunk Attributes:**
|
|
36
|
+
- `label`: Semantic label (required)
|
|
37
|
+
- `retention`: verbatim/detailed/focused/relevant (required)
|
|
38
|
+
|
|
39
|
+
**Reading Tips:**
|
|
40
|
+
- Read the text naturally like a book
|
|
41
|
+
- Unmarked text provides context (surrounding narrative)
|
|
42
|
+
- Marked chunks (`<chunk>`) are the focus points for verification
|
|
43
|
+
- If chunks overlap (same text, different attributes), the highest-priority attributes are shown
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Simplified Three-Level System
|
|
48
|
+
|
|
49
|
+
Both retention levels (for user-focused chunks) and importance levels (for book-coherence chunks) are mapped to a unified three-tier verification system:
|
|
50
|
+
|
|
51
|
+
| retention | importance | Priority Level | Completely Missing | Mentioned but Incomplete |
|
|
52
|
+
|-----------|-----------|---------------|-------------------|-------------------------|
|
|
53
|
+
| verbatim | — | **high (TIER 1a)** | CRITICAL | MAJOR (completeness check) |
|
|
54
|
+
| detailed | — | **high (TIER 1a)** | CRITICAL | MAJOR (completeness check) |
|
|
55
|
+
| — | critical | **high (TIER 1b)** | CRITICAL | MAJOR |
|
|
56
|
+
| focused | — | **medium** | MAJOR | MINOR |
|
|
57
|
+
| — | important | **medium** | MAJOR | MINOR |
|
|
58
|
+
| relevant | — | **low** | MINOR | MINOR |
|
|
59
|
+
| — | helpful | **low** | MINOR | MINOR |
|
|
60
|
+
|
|
61
|
+
**Merging rule**: When a chunk has both retention and importance attributes, use the **higher priority level** for verification (TIER 1a > TIER 1b > TIER 2 > TIER 3).
|
|
62
|
+
|
|
63
|
+
**Important principle**: Every chunk must be able to generate at least a MINOR issue. This ensures no chunk is effectively ignored during verification.
|
|
64
|
+
|
|
65
|
+
**Key differences between TIER 1a and TIER 1b:**
|
|
66
|
+
- **TIER 1a (verbatim/detailed)**: Core facts + Completeness check against source text. Student can achieve 100% by copying original text.
|
|
67
|
+
- **TIER 1b (critical)**: Core facts + Minor details (at least one). More flexible compression allowed.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Your Task
|
|
72
|
+
|
|
73
|
+
Analyze each marked `<chunk>` and assign it to one of THREE tiers based on its attributes:
|
|
74
|
+
|
|
75
|
+
### TIER 1 (high priority): verbatim OR detailed OR critical
|
|
76
|
+
|
|
77
|
+
**Two sub-types with different verification strategies:**
|
|
78
|
+
|
|
79
|
+
#### TIER 1a: verbatim OR detailed chunks
|
|
80
|
+
**Verification Condition:** "Core Facts + Completeness Check"
|
|
81
|
+
- Must include ALL items from the **core facts list**
|
|
82
|
+
- THEN compare with source text for information completeness
|
|
83
|
+
|
|
84
|
+
**Issue reporting:**
|
|
85
|
+
- **If completely missing:** CRITICAL issue
|
|
86
|
+
- **If core facts incomplete:** CRITICAL issue
|
|
87
|
+
- **If core facts satisfied but information incomplete compared to source:** MAJOR issue (guaranteed minimum)
|
|
88
|
+
|
|
89
|
+
**Strategy:**
|
|
90
|
+
- Extract the original chunk text from the markup (will be provided to reviewer)
|
|
91
|
+
- **FIRST, detect if this chunk contains literary/metaphorical content** (see guidelines below)
|
|
92
|
+
- Identify core facts (essential information, usually 2-5 items)
|
|
93
|
+
- Add completeness check instruction: reviewer must compare compressed text with source text
|
|
94
|
+
- The student CAN achieve 100% satisfaction by copying the original text (at the cost of compression ratio)
|
|
95
|
+
|
|
96
|
+
#### TIER 1b: critical importance chunks
|
|
97
|
+
**Verification Condition:** "Core + Minor"
|
|
98
|
+
- Must include ALL items from the **core facts list**
|
|
99
|
+
- PLUS at least ONE item from the **minor details list**
|
|
100
|
+
|
|
101
|
+
**Issue reporting:**
|
|
102
|
+
- **If completely missing:** CRITICAL issue
|
|
103
|
+
- **If mentioned but core incomplete or no minor details:** MAJOR issue
|
|
104
|
+
|
|
105
|
+
**Strategy:**
|
|
106
|
+
- Extract the original chunk text from the markup
|
|
107
|
+
- **FIRST, detect if this chunk contains literary/metaphorical content** (see guidelines below)
|
|
108
|
+
- Identify core facts (essential information that must be present)
|
|
109
|
+
- Identify minor details (supporting details, at least one required)
|
|
110
|
+
- Generate precise requirements
|
|
111
|
+
|
|
112
|
+
**Literary/Metaphorical Content Detection:**
|
|
113
|
+
|
|
114
|
+
Before extracting core facts, analyze the chunk text for these characteristics:
|
|
115
|
+
- **Metaphorical expressions**: 比喻性语言 (e.g., "掘墓人", "最后一根稻草", "凤凰涅槃")
|
|
116
|
+
- **Prophetic/foreshadowing tone**: 预示性叙述 (e.g., "命运为...准备了", "历史在等待", "注定要...")
|
|
117
|
+
- **Symbolic language**: 象征性表达 (e.g., "黑云压城", "星火燎原")
|
|
118
|
+
- **Authorial commentary**: 作者评论 (e.g., "这标志着...", "这意味着...")
|
|
119
|
+
- **Dramatic framing**: 戏剧性框架 (e.g., "浴火重生", "命运转折")
|
|
120
|
+
|
|
121
|
+
If the chunk contains ANY of these, mark it as **[LITERARY]** and follow special extraction rules:
|
|
122
|
+
|
|
123
|
+
**Special extraction rules for literary chunks:**
|
|
124
|
+
|
|
125
|
+
1. **Preserve metaphorical expressions in core facts**:
|
|
126
|
+
- DON'T: "某人出生"
|
|
127
|
+
- DO: "命运为王朝准备了'终结者'" (preserve the metaphorical framing)
|
|
128
|
+
|
|
129
|
+
2. **Capture the tone/function, not just facts**:
|
|
130
|
+
- DON'T: "某事件引发起义"
|
|
131
|
+
- DO: "某事件成为'压垮帝国的最后一根稻草'" (preserve judgmental/conclusive tone)
|
|
132
|
+
|
|
133
|
+
3. **Include literary language in both core facts AND minor details**:
|
|
134
|
+
- Core facts should capture essential metaphorical meanings
|
|
135
|
+
- Minor details should include vivid metaphors, dramatic descriptions
|
|
136
|
+
|
|
137
|
+
4. **Add explicit instructions in core facts**:
|
|
138
|
+
- Use quotation marks around key metaphorical terms to signal they must be preserved
|
|
139
|
+
- Example: Core fact: "使用'掘墓人'或类似metaphorical language描述人物的历史角色"
|
|
140
|
+
|
|
141
|
+
**Example (TIER 1a - detailed/verbatim chunk, factual):**
|
|
142
|
+
```
|
|
143
|
+
**地主拒绝帮助**
|
|
144
|
+
|
|
145
|
+
Source text:
|
|
146
|
+
<source>
|
|
147
|
+
主角的父母死后,他去找地主,请求看在父亲给他当了一辈子佃户的分上,找个地方埋葬父亲,但地主干净利落地拒绝了他。
|
|
148
|
+
</source>
|
|
149
|
+
|
|
150
|
+
Core facts (ALL required):
|
|
151
|
+
- 主角父母死后
|
|
152
|
+
- 主角去找地主求坟地
|
|
153
|
+
- 主角提到父亲当了一辈子佃户
|
|
154
|
+
- 地主拒绝了他
|
|
155
|
+
|
|
156
|
+
Completeness check:
|
|
157
|
+
- After verifying core facts, compare the compressed text with source text above
|
|
158
|
+
- Check if any substantive information is missing, understated, or significantly altered
|
|
159
|
+
- This is a "detailed" chunk - it should preserve ~100% information with rephrasing allowed
|
|
160
|
+
- If information is incomplete → report MAJOR issue (guaranteed minimum even if core facts are satisfied)
|
|
161
|
+
- The student can achieve 100% satisfaction by preserving the original text closely
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Example (TIER 1a - detailed/verbatim chunk, literary):**
|
|
165
|
+
```
|
|
166
|
+
**命运的预示** [LITERARY]
|
|
167
|
+
|
|
168
|
+
Source text:
|
|
169
|
+
<source>
|
|
170
|
+
历史为这个王朝准备了一个终结者:某人。当然他不会想到命运会交给他这样一个重要的任务。这一年,他十七岁。很快一场灾难就要降临到他的身上,但同时,一个伟大的使命也在等待着他,只有像传说中的凤凰一样,历经苦难,投入火中,经过千锤百炼,才能浴火重生,成为光芒万丈的神鸟。来吧,命运之子正在等待着你!
|
|
171
|
+
</source>
|
|
172
|
+
|
|
173
|
+
Core facts (ALL required):
|
|
174
|
+
- 使用metaphorical/prophetic language描述主角被命运选中(如"历史准备的终结者"、"命运之子"等)
|
|
175
|
+
- 这一年主角十七岁
|
|
176
|
+
- Foreshadowing双重命运:一场灾难即将降临 + 一个伟大的使命在等待
|
|
177
|
+
- 使用"凤凰"/"浴火重生"等metaphorical imagery描述转变历程
|
|
178
|
+
|
|
179
|
+
Completeness check:
|
|
180
|
+
- After verifying core facts, compare with source text for metaphorical/prophetic language preservation
|
|
181
|
+
- Check: Are metaphors like "千锤百炼"、"光芒万丈的神鸟"、"来吧,命运之子" preserved?
|
|
182
|
+
- This is a literary chunk - factual substitutions are NOT sufficient
|
|
183
|
+
- The prophetic tone and dramatic expressions should be largely preserved
|
|
184
|
+
- If tone/metaphors are significantly weakened → report MAJOR issue
|
|
185
|
+
|
|
186
|
+
Note: This is a literary/prophetic chunk requiring high preservation of style and metaphorical language.
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Example (TIER 1b - critical importance chunk):**
|
|
190
|
+
```
|
|
191
|
+
**主角决定参军**
|
|
192
|
+
|
|
193
|
+
Source text:
|
|
194
|
+
<source>
|
|
195
|
+
面对师兄的告发和朝廷的追捕,主角算了一卦,得到"逃跑必死,起义有生机"的启示。他意识到别无选择,只能参加起义军。
|
|
196
|
+
</source>
|
|
197
|
+
|
|
198
|
+
Core facts (ALL required):
|
|
199
|
+
- 师兄告发了主角
|
|
200
|
+
- 主角算卦得到启示
|
|
201
|
+
- 主角决定参加起义军
|
|
202
|
+
|
|
203
|
+
Minor details (at least ONE required):
|
|
204
|
+
- 卦象内容是"逃跑必死,起义有生机"
|
|
205
|
+
- 主角意识到别无选择
|
|
206
|
+
- 朝廷在追捕主角
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
### TIER 2 (medium priority): focused OR important
|
|
212
|
+
**Verification Condition:** "Any One"
|
|
213
|
+
- Must mention AT LEAST ONE item from the **key points list**
|
|
214
|
+
|
|
215
|
+
**If none mentioned:** MAJOR issue
|
|
216
|
+
**If at least one mentioned but incomplete:** MINOR issue
|
|
217
|
+
|
|
218
|
+
**Strategy:**
|
|
219
|
+
- Extract core meaning without requiring full text
|
|
220
|
+
- List key points (any one sufficient)
|
|
221
|
+
- Allow semantic equivalence, paraphrasing, reordering
|
|
222
|
+
|
|
223
|
+
**Example:**
|
|
224
|
+
```
|
|
225
|
+
**统领审问新兵**
|
|
226
|
+
|
|
227
|
+
Key points (at least ONE required):
|
|
228
|
+
- 统领审问主角
|
|
229
|
+
- 主角表现镇定
|
|
230
|
+
- 统领想看到慌乱但没看到
|
|
231
|
+
- 得知是熟人介绍后相信了
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### TIER 3 (low priority): relevant OR helpful
|
|
237
|
+
**Verification Condition:** "Existence"
|
|
238
|
+
- Must have ANY form of mention (any phrasing, any detail counts)
|
|
239
|
+
|
|
240
|
+
**If not mentioned at all:** MINOR issue
|
|
241
|
+
**If mentioned in any form (even incomplete):** MINOR issue (but acceptable)
|
|
242
|
+
|
|
243
|
+
**Strategy:**
|
|
244
|
+
- Brief description of what should be present
|
|
245
|
+
- Very flexible - any reference counts
|
|
246
|
+
|
|
247
|
+
**Example:**
|
|
248
|
+
```
|
|
249
|
+
**主角的家庭背景**
|
|
250
|
+
|
|
251
|
+
Existence check:
|
|
252
|
+
- 文本中必须有关于主角家庭生活的任何描述(任何形式的提及都算满足)
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Output Format (Natural language, will be embedded in reviewer prompt)
|
|
258
|
+
|
|
259
|
+
Structure your output EXACTLY as follows:
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
## Clue: "【Clue theme name based on actual content, 3-8 characters】"
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
### TIER 1 (HIGH PRIORITY - CRITICAL if missing, MAJOR if incomplete)
|
|
267
|
+
|
|
268
|
+
**For verbatim/detailed chunks:**
|
|
269
|
+
|
|
270
|
+
**【Chunk label】** [Add [LITERARY] tag if this chunk contains metaphorical/prophetic language]
|
|
271
|
+
|
|
272
|
+
Source text:
|
|
273
|
+
<source>
|
|
274
|
+
【Original chunk text extracted from markup】
|
|
275
|
+
</source>
|
|
276
|
+
|
|
277
|
+
Core facts (ALL required):
|
|
278
|
+
- 【Core fact 1 - if literary chunk, include metaphorical expressions with quotes】
|
|
279
|
+
- 【Core fact 2 - preserve tone/style requirements】
|
|
280
|
+
- 【Core fact 3】
|
|
281
|
+
- 【...】
|
|
282
|
+
|
|
283
|
+
Completeness check:
|
|
284
|
+
- After verifying core facts, compare the compressed text with source text above
|
|
285
|
+
- Check if any substantive information is missing, understated, or significantly altered
|
|
286
|
+
- This is a "detailed"/"verbatim" chunk - it should preserve ~100% information with rephrasing allowed
|
|
287
|
+
- If information is incomplete → report MAJOR issue (guaranteed minimum even if core facts are satisfied)
|
|
288
|
+
- The student can achieve 100% satisfaction by preserving the original text closely
|
|
289
|
+
|
|
290
|
+
[If literary chunk, add a note:]
|
|
291
|
+
Note: This is a literary/[metaphorical/prophetic/symbolic] chunk requiring high preservation of style and [metaphorical/prophetic/symbolic] language.
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
**For critical importance chunks:**
|
|
296
|
+
|
|
297
|
+
**【Chunk label】** [Add [LITERARY] tag if this chunk contains metaphorical/prophetic language]
|
|
298
|
+
|
|
299
|
+
Source text:
|
|
300
|
+
<source>
|
|
301
|
+
【Original chunk text extracted from markup】
|
|
302
|
+
</source>
|
|
303
|
+
|
|
304
|
+
Core facts (ALL required):
|
|
305
|
+
- 【Core fact 1 - if literary chunk, include metaphorical expressions with quotes】
|
|
306
|
+
- 【Core fact 2 - preserve tone/style requirements】
|
|
307
|
+
|
|
308
|
+
Minor details (at least ONE required):
|
|
309
|
+
- 【Minor detail 1 - include dramatic/metaphorical language if present】
|
|
310
|
+
- 【Minor detail 2】
|
|
311
|
+
- 【Minor detail 3】
|
|
312
|
+
|
|
313
|
+
[If literary chunk, add a note:]
|
|
314
|
+
Note: This is a literary/[metaphorical/prophetic/symbolic] chunk. Factual substitutions are NOT sufficient. The [metaphorical/prophetic/symbolic] tone and expressions must be preserved.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
### TIER 2 (MEDIUM PRIORITY - MAJOR if missing)
|
|
319
|
+
|
|
320
|
+
**【Chunk label】**
|
|
321
|
+
|
|
322
|
+
Key points (at least ONE required):
|
|
323
|
+
- 【Key point 1】
|
|
324
|
+
- 【Key point 2】
|
|
325
|
+
- 【Key point 3】
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
### TIER 3 (LOW PRIORITY - MINOR if missing)
|
|
330
|
+
|
|
331
|
+
**【Chunk label】**
|
|
332
|
+
|
|
333
|
+
Existence check:
|
|
334
|
+
- 【Description of what should be present in any form】
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
### NARRATIVE COHERENCE (OPTIONAL - only if this clue has importance chunks)
|
|
339
|
+
|
|
340
|
+
**When to include this section:**
|
|
341
|
+
- ONLY if this clue contains chunks with importance attributes (critical/important/helpful)
|
|
342
|
+
- Skip this section entirely if all chunks only have retention attributes
|
|
343
|
+
|
|
344
|
+
**What to check:**
|
|
345
|
+
Identify potential narrative gaps or logical jumps between chunks that could confuse readers:
|
|
346
|
+
|
|
347
|
+
**【Potential coherence issue description】**
|
|
348
|
+
- Expected flow: 【chunk A】 → 【chunk B】 → 【chunk C】
|
|
349
|
+
- Potential problem: 【describe what logical connection might be missing】
|
|
350
|
+
- Severity: MAJOR or MINOR
|
|
351
|
+
- Suggestion: 【what bridging information would help】
|
|
352
|
+
|
|
353
|
+
(Repeat for each identified coherence issue, typically 0-2 issues per clue)
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Important Guidelines:
|
|
361
|
+
|
|
362
|
+
1. **Clue naming:** Name based on what the chunks actually discuss (clue's real content), not user's general intent
|
|
363
|
+
|
|
364
|
+
2. **Tier assignment logic:**
|
|
365
|
+
- retention = verbatim OR detailed → TIER 1a (with completeness check)
|
|
366
|
+
- importance = critical → TIER 1b (with core + minor)
|
|
367
|
+
- retention = focused → TIER 2
|
|
368
|
+
- retention = relevant → TIER 3
|
|
369
|
+
- When a chunk has BOTH retention and importance: use the higher priority tier (1a > 1b > 2 > 3)
|
|
370
|
+
|
|
371
|
+
3. **Source text extraction:**
|
|
372
|
+
- For TIER 1 (all subtypes): Always extract original text from `<chunk>` tags and place in `<source>` tags
|
|
373
|
+
- For TIER 2-3: No need to quote full text (saves space)
|
|
374
|
+
|
|
375
|
+
4. **TIER 1a verification (verbatim/detailed chunks):**
|
|
376
|
+
- Core facts: Absolutely essential information (usually 2-5 items)
|
|
377
|
+
- NO minor details list - use completeness check instead
|
|
378
|
+
- Completeness check gives reviewer flexibility to judge "all information" against source text
|
|
379
|
+
- Student can achieve 100% satisfaction by closely preserving original text
|
|
380
|
+
|
|
381
|
+
5. **TIER 1b verification (critical importance chunks):**
|
|
382
|
+
- Core facts: Absolutely essential information (usually 2-4 items)
|
|
383
|
+
- Minor details: Supporting details that add richness (usually 2-5 items, only need 1)
|
|
384
|
+
- If a chunk is very simple, you can have 1-2 core facts and 1-2 minor details
|
|
385
|
+
|
|
386
|
+
6. **Key points quantity (TIER 2):**
|
|
387
|
+
- List 2-5 key points
|
|
388
|
+
- Reviewer only needs to find ONE to pass
|
|
389
|
+
- More options = more flexibility for compression
|
|
390
|
+
|
|
391
|
+
7. **Only use information explicitly stated in the source text** - do not add facts from general knowledge
|
|
392
|
+
|
|
393
|
+
8. **Generate abstract requirements, not specific phrasings** (for TIER 2):
|
|
394
|
+
- ✅ GOOD: "Multiple family members died in rapid succession"
|
|
395
|
+
- ❌ BAD: "On June 6th father died, June 9th brother died..." (too specific)
|
|
396
|
+
|
|
397
|
+
9. **Context awareness:**
|
|
398
|
+
- Unmarked text between chunks provides narrative context
|
|
399
|
+
- Use surrounding text to better understand chunk meaning
|
|
400
|
+
- This complete context helps you generate more accurate verification strategies
|
|
401
|
+
|
|
402
|
+
10. **Every chunk MUST appear in exactly ONE tier** - no chunk should be skipped
|
|
403
|
+
|
|
404
|
+
11. **Narrative Coherence (for importance chunks only)**:
|
|
405
|
+
- Check if this clue contains chunks with importance attributes (critical/important/helpful)
|
|
406
|
+
- If yes, analyze the logical flow between these chunks in the original text
|
|
407
|
+
- Identify potential narrative gaps:
|
|
408
|
+
- Are there large jumps between chunks that skip important context?
|
|
409
|
+
- Does the story jump from topic A to topic B without explanation?
|
|
410
|
+
- Is there missing motivation for key decisions (especially for importance=critical chunks)?
|
|
411
|
+
- Common coherence issues:
|
|
412
|
+
- **Abrupt topic change**: "After discussing X, suddenly talks about Y without transition"
|
|
413
|
+
- **Missing cause**: "Character decides to do Z, but the triggering event is not mentioned"
|
|
414
|
+
- **Background info timing**: "Background policy P appears out of context without explaining why it matters now"
|
|
415
|
+
- Only flag issues that would genuinely confuse readers
|
|
416
|
+
- Limit to 0-2 coherence issues per clue (don't over-flag)
|
|
417
|
+
- Example:
|
|
418
|
+
```
|
|
419
|
+
**缺少"元朝抓人政策"与"朱重八决定"的因果连接**
|
|
420
|
+
- Expected flow: 师兄告发 → 算卦 → **元朝抓人政策** → 朱重八意识到危险 → 决定造反
|
|
421
|
+
- Potential problem: 压缩文本在"算卦"之后突然插入"元朝官吏抓人",读者会困惑为什么突然讲政策背景
|
|
422
|
+
- Severity: MINOR
|
|
423
|
+
- Suggestion: 在提到元朝抓人政策时,加上"此时"或"而且"等过渡词,或说明"这意味着朱重八即使不造反也可能被抓"
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
**Your output will be directly used as the reviewer's instruction manual. Be clear, structured, and actionable.**
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Your Role
|
|
2
|
+
|
|
3
|
+
You are a student working on a text compression assignment. Your teacher has given you a text segment to compress while preserving important information.
|
|
4
|
+
|
|
5
|
+
Your teacher will review your work and give you feedback. If your compression misses important information or doesn't meet requirements, the teacher will tell you specifically what to fix. **Listen to your teacher's feedback and make the requested changes.**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Your Assignment
|
|
10
|
+
|
|
11
|
+
**Original text:** {{ original_length }} characters
|
|
12
|
+
**Target length:** {{ target_length }} characters ({{ compression_ratio }}%)
|
|
13
|
+
**Acceptable range:** {{ acceptable_min }} - {{ acceptable_max }} characters
|
|
14
|
+
|
|
15
|
+
Your compressed text must fall within the acceptable range. Going over the maximum is not acceptable for your first submission.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
{% if user_language %}
|
|
20
|
+
## Language Requirements
|
|
21
|
+
|
|
22
|
+
**Output language:** {{ user_language }}
|
|
23
|
+
|
|
24
|
+
**CRITICAL:** You must translate your compressed output to **{{ user_language }}** while maintaining:
|
|
25
|
+
- Semantic accuracy (preserve all key information)
|
|
26
|
+
- Natural expression (sound native in {{ user_language }}, not machine-translated)
|
|
27
|
+
- Terminology consistency (technical terms and proper nouns should be accurately rendered)
|
|
28
|
+
|
|
29
|
+
**Process:**
|
|
30
|
+
1. Read and understand the marked content in whatever language(s) it uses
|
|
31
|
+
2. Compress according to retention levels (`verbatim`, `detailed`, etc.)
|
|
32
|
+
3. Translate the compressed result to {{ user_language }}
|
|
33
|
+
4. Ensure the output reads naturally in {{ user_language }}
|
|
34
|
+
|
|
35
|
+
**Important Notes:**
|
|
36
|
+
- The input text may be in any language or mix of languages (e.g., an English book with French quotes)
|
|
37
|
+
- Your final output must be entirely in {{ user_language }}
|
|
38
|
+
- Your teacher will review the {{ user_language }} output for both information completeness and translation quality
|
|
39
|
+
|
|
40
|
+
{% else %}
|
|
41
|
+
**Language Note:** Keep your compressed output in the **SAME LANGUAGE(S) as the input text**. Do not translate.
|
|
42
|
+
|
|
43
|
+
- If the input contains multiple languages, preserve them as they appear
|
|
44
|
+
- Your output should read naturally in the source language(s)
|
|
45
|
+
{% endif %}
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Format Requirements (MUST FOLLOW)
|
|
50
|
+
|
|
51
|
+
### 1. Remove ALL `<chunk>` tags from your output
|
|
52
|
+
|
|
53
|
+
The input text contains `<chunk>` markup tags like this:
|
|
54
|
+
```
|
|
55
|
+
<chunk retention="detailed">Some important text here</chunk>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**These tags are ONLY markers to help you identify important content.** Think of them as highlighting on a page.
|
|
59
|
+
|
|
60
|
+
**Your output must be plain text with NO tags whatsoever:**
|
|
61
|
+
- ❌ WRONG: `<chunk retention="detailed">比如刮风啊...</chunk>`
|
|
62
|
+
- ✅ CORRECT: `比如刮风啊...`
|
|
63
|
+
|
|
64
|
+
### 2. Output plain text only
|
|
65
|
+
|
|
66
|
+
Do NOT add:
|
|
67
|
+
- Section headers (like "## Compressed Text")
|
|
68
|
+
- XML/HTML markup of any kind
|
|
69
|
+
- Explanatory comments mixed with the content
|
|
70
|
+
|
|
71
|
+
Your output should read like a natural excerpt from a longer article.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Compression Guidance
|
|
76
|
+
|
|
77
|
+
### Identify content priority from the markup:
|
|
78
|
+
|
|
79
|
+
**`<chunk retention="verbatim">...</chunk>`**: Preserve almost word-for-word
|
|
80
|
+
- Keep the exact wording, only fix obvious typos or punctuation errors
|
|
81
|
+
- Do NOT paraphrase or restructure
|
|
82
|
+
|
|
83
|
+
**`<chunk retention="detailed">...</chunk>`**: Preserve all facts
|
|
84
|
+
- Keep all substantive information (names, events, numbers, relationships)
|
|
85
|
+
- You may rephrase for better flow, but don't omit facts
|
|
86
|
+
|
|
87
|
+
**Text without markup tags**: Can be heavily compressed or deleted
|
|
88
|
+
- This is background filler between important content
|
|
89
|
+
- Delete entire paragraphs if they don't have markup
|
|
90
|
+
- Only keep ultra-short transitions if absolutely necessary (e.g., "三年后", "1344年", "此时")
|
|
91
|
+
|
|
92
|
+
### Your compression strategy:
|
|
93
|
+
|
|
94
|
+
1. **First, preserve all marked content** (`<chunk>` tags) - this is your priority
|
|
95
|
+
2. **Then, delete most unmarked text** - this is where you achieve compression
|
|
96
|
+
3. **Add minimal transitions** between marked sections if needed for coherence
|
|
97
|
+
|
|
98
|
+
### How to meet the length requirement:
|
|
99
|
+
|
|
100
|
+
The marked content will likely already take up significant space. To hit your target length:
|
|
101
|
+
- Delete most unmarked paragraphs entirely
|
|
102
|
+
- Only keep 1-2 word time/place markers between marked chunks if necessary
|
|
103
|
+
- Don't try to "summarize" unmarked text - just delete it
|
|
104
|
+
|
|
105
|
+
If you're approaching your length limit and still have unmarked text, delete more aggressively.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Context: Segmented Compression
|
|
110
|
+
|
|
111
|
+
You are compressing a **segment** of a larger work (like part of a book chapter). Your output will be concatenated with other compressed segments.
|
|
112
|
+
|
|
113
|
+
**Therefore:**
|
|
114
|
+
- Write as continuous prose, not a standalone summary
|
|
115
|
+
- Match the original's tone and structure
|
|
116
|
+
- Don't add concluding remarks or thematic wrap-ups
|
|
117
|
+
- End naturally where the segment ends
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Output Format
|
|
122
|
+
|
|
123
|
+
[Optional: If you face difficult trade-offs, write 1-2 sentences about your approach. Keep this brief.]
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
[Your compressed text - plain text only, no headers, no tags, written as continuous prose]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Classify the raw assistant reply into exactly one label.
|
|
2
|
+
|
|
3
|
+
Labels:
|
|
4
|
+
- malformed_json: the reply is trying to provide JSON, but it is broken or truncated
|
|
5
|
+
- natural_language: the reply is plain conversational language, apology, refusal, or explanation instead of JSON
|
|
6
|
+
- ambiguous: unclear or mixed
|
|
7
|
+
|
|
8
|
+
Reply with the label only.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} next
|
|
3
|
+
|
|
4
|
+
Purpose:
|
|
5
|
+
Continue any paged Wiki Graph result from its `nextCursor`.
|
|
6
|
+
|
|
7
|
+
Use when:
|
|
8
|
+
- A JSON or text result prints `nextCursor` or `Next page: {{ commandName }} next <cursor>`.
|
|
9
|
+
- You do not want to know whether the cursor came from `--query`, scope enumeration, or evidence.
|
|
10
|
+
|
|
11
|
+
Usage:
|
|
12
|
+
{{ commandName }} next <cursor> [--limit <n>] [--json|--jsonl] [--help|-h]
|
|
13
|
+
{{ commandName }} next <archive-uri> <cursor> [--limit <n>] [--json|--jsonl] [--help|-h]
|
|
14
|
+
|
|
15
|
+
Returns:
|
|
16
|
+
- The next result page for the cursor.
|
|
17
|
+
|
|
18
|
+
Notes:
|
|
19
|
+
- Cursors are opaque short tokens stored in local Wiki Graph state.
|
|
20
|
+
- Passing `<archive-uri>` is optional; when provided, it must match the archive stored in the cursor.
|
|
21
|
+
- Use `--limit` to override the next page size.
|
|
22
|
+
|
|
23
|
+
Examples:
|
|
24
|
+
{{ commandName }} next c_7Kp9x2aQ
|
|
25
|
+
{{ commandName }} next wikg:///books/book.wikg c_7Kp9x2aQ
|
|
26
|
+
|
|
27
|
+
Related help:
|
|
28
|
+
- URI scopes, pagination, JSON, and JSONL result shapes:
|
|
29
|
+
{{ commandName }} help uri
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} gc
|
|
3
|
+
|
|
4
|
+
Purpose:
|
|
5
|
+
Try to run Wiki Graph local garbage collection.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
{{ commandName }} gc [--force] [--dry-run] [--json]
|
|
9
|
+
|
|
10
|
+
Behavior:
|
|
11
|
+
GC scans local Wiki Graph state and cache resources, then releases expired or low-value resources that are not in use.
|
|
12
|
+
If another GC run is active, this command reports that it was skipped instead of waiting or starting a second run.
|
|
13
|
+
|
|
14
|
+
Options:
|
|
15
|
+
--force
|
|
16
|
+
Ignore normal cache lifetimes and remove disposable resources as soon as they are not in use.
|
|
17
|
+
This can remove warm SQLite caches and completed or failed build jobs that a normal GC run would keep temporarily.
|
|
18
|
+
Wikipedia page cache entries still follow their own TTL and are not removed early by `--force`.
|
|
19
|
+
--dry-run
|
|
20
|
+
Report what would be removed without deleting anything.
|
|
21
|
+
|
|
22
|
+
Managed areas:
|
|
23
|
+
- Wiki Graph coordinator workspace files and cached SQLite databases.
|
|
24
|
+
- Search query cache.
|
|
25
|
+
- Expired Wikipedia page cache.
|
|
26
|
+
- Completed build job records and their durable event, cache, log, and workspace files.
|
|
27
|
+
- Wiki Graph controlled temporary directories under the state directory.
|
|
28
|
+
|
|
29
|
+
Output:
|
|
30
|
+
Text output reports scanned resources, removed resources, and freed disk space.
|
|
31
|
+
With `--dry-run`, text output reports candidate removals and candidate freed disk space.
|
|
32
|
+
Use `--json` for a machine-readable run report.
|
|
33
|
+
|
|
34
|
+
Related help:
|
|
35
|
+
- Runtime cache, logs, workspaces, and local state:
|
|
36
|
+
{{ commandName }} help runtime
|
|
37
|
+
- Search index and generated-data readiness after cleanup:
|
|
38
|
+
{{ commandName }} help readiness
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} legacy migrate
|
|
3
|
+
|
|
4
|
+
Purpose:
|
|
5
|
+
Convert an `.sdpub` archive into the current `.wikg` format.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
{{ commandName }} legacy migrate <path.sdpub> [--output <path.wikg>]
|
|
9
|
+
|
|
10
|
+
Output:
|
|
11
|
+
If `--output` is omitted, the output path is the input path with `.sdpub` replaced by `.wikg`.
|
|
12
|
+
The input archive is not modified.
|
|
13
|
+
|
|
14
|
+
Examples:
|
|
15
|
+
{{ commandName }} legacy migrate ./book.sdpub
|
|
16
|
+
{{ commandName }} legacy migrate ./book.sdpub --output ./book.wikg
|
|
17
|
+
|
|
18
|
+
Related help:
|
|
19
|
+
- Current archive format, create/import, and export boundaries:
|
|
20
|
+
{{ commandName }} help format
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Help Type: command
|
|
2
|
+
Command: {{ commandName }} legacy
|
|
3
|
+
|
|
4
|
+
Purpose:
|
|
5
|
+
Expose the single `.sdpub` upgrade command.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
{{ commandName }} legacy migrate <path.sdpub> [--output <path.wikg>]
|
|
9
|
+
|
|
10
|
+
Commands:
|
|
11
|
+
migrate Convert an `.sdpub` archive into the current `.wikg` format.
|
|
12
|
+
|
|
13
|
+
Examples:
|
|
14
|
+
{{ commandName }} legacy migrate ./book.sdpub
|
|
15
|
+
{{ commandName }} legacy migrate ./book.sdpub --output ./book.wikg
|
|
16
|
+
|
|
17
|
+
See Also:
|
|
18
|
+
{{ commandName }} legacy migrate --help
|
|
19
|
+
{{ commandName }} help format
|