wiki-graph-core 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/data/editor/clue_reviewer.jinja +410 -0
- package/data/editor/clue_reviewer_generator.jinja +428 -0
- package/data/editor/revision_feedback.jinja +5 -0
- package/data/editor/text_compressor.jinja +127 -0
- package/data/guaranteed/response_intent_classifier.jinja +8 -0
- package/data/help/commands/archive/next.jinja +29 -0
- package/data/help/commands/gc.jinja +38 -0
- package/data/help/commands/legacy/migrate.jinja +20 -0
- package/data/help/commands/legacy.jinja +19 -0
- package/data/help/commands/maintenance/chapter/add.jinja +41 -0
- package/data/help/commands/maintenance/chapter/list.jinja +33 -0
- package/data/help/commands/maintenance/chapter/move.jinja +36 -0
- package/data/help/commands/maintenance/chapter/remove.jinja +26 -0
- package/data/help/commands/maintenance/chapter/reset.jinja +29 -0
- package/data/help/commands/maintenance/chapter/set-source.jinja +34 -0
- package/data/help/commands/maintenance/chapter/set-summary.jinja +31 -0
- package/data/help/commands/maintenance/chapter/set-title.jinja +29 -0
- package/data/help/commands/maintenance/chapter/tree.jinja +58 -0
- package/data/help/commands/maintenance/chapter.jinja +59 -0
- package/data/help/commands/maintenance/cover.jinja +28 -0
- package/data/help/commands/maintenance/meta.jinja +55 -0
- package/data/help/commands/predicate.jinja +460 -0
- package/data/help/commands/root.jinja +83 -0
- package/data/help/commands/transform.jinja +34 -0
- package/data/help/commands/uri.jinja +274 -0
- package/data/help/topics/config.jinja +88 -0
- package/data/help/topics/format.jinja +72 -0
- package/data/help/topics/readiness.jinja +99 -0
- package/data/help/topics/recipe.jinja +151 -0
- package/data/help/topics/runtime.jinja +62 -0
- package/data/help/topics/uri.jinja +178 -0
- package/data/output/epub/cover.xhtml.jinja +13 -0
- package/data/output/epub/nav.xhtml.jinja +12 -0
- package/data/output/epub/package.opf.xml.jinja +39 -0
- package/data/output/epub/section.xhtml.jinja +12 -0
- package/data/topologization/book_coherence_extraction.jinja +223 -0
- package/data/topologization/chunk_extraction.jinja +233 -0
- package/data/topologization/evidence_choice.jinja +38 -0
- package/data/topologization/translate_chunks.jinja +138 -0
- package/data/topologization/user_focused_extraction.jinja +378 -0
- package/dist/archive/query/archive-view.d.ts +26 -0
- package/dist/archive/query/archive-view.js +4540 -0
- package/dist/archive/query/archive-view.js.map +1 -0
- package/dist/archive/query/continuation-cursor.d.ts +61 -0
- package/dist/archive/query/continuation-cursor.js +363 -0
- package/dist/archive/query/continuation-cursor.js.map +1 -0
- package/dist/archive/query/index.d.ts +29 -0
- package/dist/archive/query/index.js +63 -0
- package/dist/archive/query/index.js.map +1 -0
- package/dist/archive/query/lexical-search.d.ts +22 -0
- package/dist/archive/query/lexical-search.js +137 -0
- package/dist/archive/query/lexical-search.js.map +1 -0
- package/dist/archive/query/search-cache.d.ts +192 -0
- package/dist/archive/query/search-cache.js +1248 -0
- package/dist/archive/query/search-cache.js.map +1 -0
- package/dist/archive/search-index/index.d.ts +26 -0
- package/dist/archive/search-index/index.js +29 -0
- package/dist/archive/search-index/index.js.map +1 -0
- package/dist/archive/search-index/search-index.d.ts +26 -0
- package/dist/archive/search-index/search-index.js +555 -0
- package/dist/archive/search-index/search-index.js.map +1 -0
- package/dist/archive/search-index/search-tokenizer.d.ts +16 -0
- package/dist/archive/search-index/search-tokenizer.js +225 -0
- package/dist/archive/search-index/search-tokenizer.js.map +1 -0
- package/dist/common/cli-command.d.ts +4 -0
- package/dist/common/cli-command.js +7 -0
- package/dist/common/cli-command.js.map +1 -0
- package/dist/common/data-dir.d.ts +3 -0
- package/dist/common/data-dir.js +48 -0
- package/dist/common/data-dir.js.map +1 -0
- package/dist/common/language.d.ts +55 -0
- package/dist/common/language.js +208 -0
- package/dist/common/language.js.map +1 -0
- package/dist/common/llm-scope.d.ts +19 -0
- package/dist/common/llm-scope.js +31 -0
- package/dist/common/llm-scope.js.map +1 -0
- package/dist/common/logging.d.ts +22 -0
- package/dist/common/logging.js +141 -0
- package/dist/common/logging.js.map +1 -0
- package/dist/common/template.d.ts +8 -0
- package/dist/common/template.js +54 -0
- package/dist/common/template.js.map +1 -0
- package/dist/common/tinyld-language.d.ts +6 -0
- package/dist/common/tinyld-language.js +34 -0
- package/dist/common/tinyld-language.js.map +1 -0
- package/dist/common/wiki-graph-dir.d.ts +10 -0
- package/dist/common/wiki-graph-dir.js +41 -0
- package/dist/common/wiki-graph-dir.js.map +1 -0
- package/dist/common/wiki-graph-temp.d.ts +6 -0
- package/dist/common/wiki-graph-temp.js +21 -0
- package/dist/common/wiki-graph-temp.js.map +1 -0
- package/dist/common/wiki-graph-uri.d.ts +28 -0
- package/dist/common/wiki-graph-uri.js +171 -0
- package/dist/common/wiki-graph-uri.js.map +1 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.js +13 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/task-context.d.ts +41 -0
- package/dist/context/task-context.js +111 -0
- package/dist/context/task-context.js.map +1 -0
- package/dist/document/database.d.ts +30 -0
- package/dist/document/database.js +273 -0
- package/dist/document/database.js.map +1 -0
- package/dist/document/document.d.ts +153 -0
- package/dist/document/document.js +615 -0
- package/dist/document/document.js.map +1 -0
- package/dist/document/fragments.d.ts +63 -0
- package/dist/document/fragments.js +371 -0
- package/dist/document/fragments.js.map +1 -0
- package/dist/document/index.d.ts +13 -0
- package/dist/document/index.js +62 -0
- package/dist/document/index.js.map +1 -0
- package/dist/document/schema.d.ts +8 -0
- package/dist/document/schema.js +472 -0
- package/dist/document/schema.js.map +1 -0
- package/dist/document/shared-state-database.d.ts +9 -0
- package/dist/document/shared-state-database.js +193 -0
- package/dist/document/shared-state-database.js.map +1 -0
- package/dist/document/stores.d.ts +203 -0
- package/dist/document/stores.js +1678 -0
- package/dist/document/stores.js.map +1 -0
- package/dist/document/text-streams.d.ts +86 -0
- package/dist/document/text-streams.js +515 -0
- package/dist/document/text-streams.js.map +1 -0
- package/dist/document/types.d.ts +148 -0
- package/dist/document/types.js +69 -0
- package/dist/document/types.js.map +1 -0
- package/dist/editor/clue.d.ts +27 -0
- package/dist/editor/clue.js +158 -0
- package/dist/editor/clue.js.map +1 -0
- package/dist/editor/compressor.d.ts +18 -0
- package/dist/editor/compressor.js +68 -0
- package/dist/editor/compressor.js.map +1 -0
- package/dist/editor/editor.d.ts +39 -0
- package/dist/editor/editor.js +253 -0
- package/dist/editor/editor.js.map +1 -0
- package/dist/editor/feedback.d.ts +16 -0
- package/dist/editor/feedback.js +104 -0
- package/dist/editor/feedback.js.map +1 -0
- package/dist/editor/index.d.ts +17 -0
- package/dist/editor/index.js +5 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/language-review.d.ts +14 -0
- package/dist/editor/language-review.js +35 -0
- package/dist/editor/language-review.js.map +1 -0
- package/dist/editor/log.d.ts +37 -0
- package/dist/editor/log.js +202 -0
- package/dist/editor/log.js.map +1 -0
- package/dist/editor/markup.d.ts +20 -0
- package/dist/editor/markup.js +294 -0
- package/dist/editor/markup.js.map +1 -0
- package/dist/editor/prompt-templates.d.ts +6 -0
- package/dist/editor/prompt-templates.js +11 -0
- package/dist/editor/prompt-templates.js.map +1 -0
- package/dist/editor/response.d.ts +5 -0
- package/dist/editor/response.js +31 -0
- package/dist/editor/response.js.map +1 -0
- package/dist/editor/review.d.ts +34 -0
- package/dist/editor/review.js +189 -0
- package/dist/editor/review.js.map +1 -0
- package/dist/editor/types.d.ts +31 -0
- package/dist/editor/types.js +21 -0
- package/dist/editor/types.js.map +1 -0
- package/dist/evidence-selection/anchor-resolver.d.ts +43 -0
- package/dist/evidence-selection/anchor-resolver.js +783 -0
- package/dist/evidence-selection/anchor-resolver.js.map +1 -0
- package/dist/evidence-selection/anchor-types.d.ts +27 -0
- package/dist/evidence-selection/anchor-types.js +1 -0
- package/dist/evidence-selection/anchor-types.js.map +1 -0
- package/dist/evidence-selection/index.d.ts +8 -0
- package/dist/evidence-selection/index.js +32 -0
- package/dist/evidence-selection/index.js.map +1 -0
- package/dist/evidence-selection/prompt.d.ts +18 -0
- package/dist/evidence-selection/prompt.js +54 -0
- package/dist/evidence-selection/prompt.js.map +1 -0
- package/dist/evidence-selection/quote-score.d.ts +29 -0
- package/dist/evidence-selection/quote-score.js +331 -0
- package/dist/evidence-selection/quote-score.js.map +1 -0
- package/dist/evidence-selection/selection-resolver.d.ts +19 -0
- package/dist/evidence-selection/selection-resolver.js +303 -0
- package/dist/evidence-selection/selection-resolver.js.map +1 -0
- package/dist/evidence-selection/text.d.ts +4 -0
- package/dist/evidence-selection/text.js +66 -0
- package/dist/evidence-selection/text.js.map +1 -0
- package/dist/evidence-selection/types.d.ts +36 -0
- package/dist/evidence-selection/types.js +1 -0
- package/dist/evidence-selection/types.js.map +1 -0
- package/dist/facade/app.d.ts +75 -0
- package/dist/facade/app.js +141 -0
- package/dist/facade/app.js.map +1 -0
- package/dist/facade/build-queue.d.ts +181 -0
- package/dist/facade/build-queue.js +1442 -0
- package/dist/facade/build-queue.js.map +1 -0
- package/dist/facade/chapter-build.d.ts +60 -0
- package/dist/facade/chapter-build.js +1020 -0
- package/dist/facade/chapter-build.js.map +1 -0
- package/dist/facade/chapter.d.ts +168 -0
- package/dist/facade/chapter.js +944 -0
- package/dist/facade/chapter.js.map +1 -0
- package/dist/facade/digest.d.ts +55 -0
- package/dist/facade/digest.js +168 -0
- package/dist/facade/digest.js.map +1 -0
- package/dist/facade/graph.d.ts +60 -0
- package/dist/facade/graph.js +203 -0
- package/dist/facade/graph.js.map +1 -0
- package/dist/facade/import.d.ts +49 -0
- package/dist/facade/import.js +262 -0
- package/dist/facade/import.js.map +1 -0
- package/dist/facade/index.d.ts +39 -0
- package/dist/facade/index.js +171 -0
- package/dist/facade/index.js.map +1 -0
- package/dist/facade/knowledge-graph-build.d.ts +75 -0
- package/dist/facade/knowledge-graph-build.js +897 -0
- package/dist/facade/knowledge-graph-build.js.map +1 -0
- package/dist/facade/llm-sampling.d.ts +11 -0
- package/dist/facade/llm-sampling.js +58 -0
- package/dist/facade/llm-sampling.js.map +1 -0
- package/dist/facade/types.d.ts +8 -0
- package/dist/facade/types.js +1 -0
- package/dist/facade/types.js.map +1 -0
- package/dist/facade/wiki-graph-archive.d.ts +41 -0
- package/dist/facade/wiki-graph-archive.js +130 -0
- package/dist/facade/wiki-graph-archive.js.map +1 -0
- package/dist/gc/files.d.ts +15 -0
- package/dist/gc/files.js +141 -0
- package/dist/gc/files.js.map +1 -0
- package/dist/gc/index.d.ts +2 -0
- package/dist/gc/index.js +5 -0
- package/dist/gc/index.js.map +1 -0
- package/dist/gc/lock.d.ts +3 -0
- package/dist/gc/lock.js +137 -0
- package/dist/gc/lock.js.map +1 -0
- package/dist/gc/runner.d.ts +9 -0
- package/dist/gc/runner.js +129 -0
- package/dist/gc/runner.js.map +1 -0
- package/dist/gc/tmp-gc.d.ts +5 -0
- package/dist/gc/tmp-gc.js +57 -0
- package/dist/gc/tmp-gc.js.map +1 -0
- package/dist/gc/types.d.ts +24 -0
- package/dist/gc/types.js +1 -0
- package/dist/gc/types.js.map +1 -0
- package/dist/gc.cjs +10041 -0
- package/dist/gc.cjs.map +1 -0
- package/dist/gc.d.cts +10 -0
- package/dist/gc.d.ts +2 -0
- package/dist/gc.js +5 -0
- package/dist/gc.js.map +1 -0
- package/dist/guaranteed/classifier.d.ts +10 -0
- package/dist/guaranteed/classifier.js +88 -0
- package/dist/guaranteed/classifier.js.map +1 -0
- package/dist/guaranteed/errors.d.ts +38 -0
- package/dist/guaranteed/errors.js +73 -0
- package/dist/guaranteed/errors.js.map +1 -0
- package/dist/guaranteed/index.d.ts +7 -0
- package/dist/guaranteed/index.js +21 -0
- package/dist/guaranteed/index.js.map +1 -0
- package/dist/guaranteed/request.d.ts +8 -0
- package/dist/guaranteed/request.js +206 -0
- package/dist/guaranteed/request.js.map +1 -0
- package/dist/guaranteed/response.d.ts +12 -0
- package/dist/guaranteed/response.js +98 -0
- package/dist/guaranteed/response.js.map +1 -0
- package/dist/guaranteed/types.d.ts +20 -0
- package/dist/guaranteed/types.js +1 -0
- package/dist/guaranteed/types.js.map +1 -0
- package/dist/index-B8NNnQ8P.d.ts +424 -0
- package/dist/index.cjs +34774 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2462 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +168 -0
- package/dist/index.js.map +1 -0
- package/dist/legacy-sdpub/upgrade.d.ts +7 -0
- package/dist/legacy-sdpub/upgrade.js +795 -0
- package/dist/legacy-sdpub/upgrade.js.map +1 -0
- package/dist/llm/cache.d.ts +13 -0
- package/dist/llm/cache.js +35 -0
- package/dist/llm/cache.js.map +1 -0
- package/dist/llm/client.d.ts +26 -0
- package/dist/llm/client.js +572 -0
- package/dist/llm/client.js.map +1 -0
- package/dist/llm/context.d.ts +22 -0
- package/dist/llm/context.js +78 -0
- package/dist/llm/context.js.map +1 -0
- package/dist/llm/errors.d.ts +7 -0
- package/dist/llm/errors.js +12 -0
- package/dist/llm/errors.js.map +1 -0
- package/dist/llm/index.d.ts +7 -0
- package/dist/llm/index.js +17 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/request-log.d.ts +9 -0
- package/dist/llm/request-log.js +35 -0
- package/dist/llm/request-log.js.map +1 -0
- package/dist/llm/sampling.d.ts +11 -0
- package/dist/llm/sampling.js +67 -0
- package/dist/llm/sampling.js.map +1 -0
- package/dist/llm/types.d.ts +50 -0
- package/dist/llm/types.js +1 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/output/epub/archive.d.ts +9 -0
- package/dist/output/epub/archive.js +81 -0
- package/dist/output/epub/archive.js.map +1 -0
- package/dist/output/epub/book.d.ts +15 -0
- package/dist/output/epub/book.js +76 -0
- package/dist/output/epub/book.js.map +1 -0
- package/dist/output/epub/content.d.ts +9 -0
- package/dist/output/epub/content.js +35 -0
- package/dist/output/epub/content.js.map +1 -0
- package/dist/output/epub/index.d.ts +20 -0
- package/dist/output/epub/index.js +14 -0
- package/dist/output/epub/index.js.map +1 -0
- package/dist/output/epub/model.d.ts +24 -0
- package/dist/output/epub/model.js +1 -0
- package/dist/output/epub/model.js.map +1 -0
- package/dist/output/epub/navigation.d.ts +10 -0
- package/dist/output/epub/navigation.js +39 -0
- package/dist/output/epub/navigation.js.map +1 -0
- package/dist/output/epub/package.d.ts +17 -0
- package/dist/output/epub/package.js +29 -0
- package/dist/output/epub/package.js.map +1 -0
- package/dist/output/epub/shared.d.ts +4 -0
- package/dist/output/epub/shared.js +12 -0
- package/dist/output/epub/shared.js.map +1 -0
- package/dist/output/epub/templates.d.ts +35 -0
- package/dist/output/epub/templates.js +26 -0
- package/dist/output/epub/templates.js.map +1 -0
- package/dist/output/index.d.ts +14 -0
- package/dist/output/index.js +11 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/plain-text.d.ts +18 -0
- package/dist/output/plain-text.js +56 -0
- package/dist/output/plain-text.js.map +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +14 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/progress/reporter.d.ts +10 -0
- package/dist/progress/reporter.js +79 -0
- package/dist/progress/reporter.js.map +1 -0
- package/dist/progress/tracker.d.ts +37 -0
- package/dist/progress/tracker.js +119 -0
- package/dist/progress/tracker.js.map +1 -0
- package/dist/progress/types.d.ts +28 -0
- package/dist/progress/types.js +1 -0
- package/dist/progress/types.js.map +1 -0
- package/dist/reader/attention/attention.d.ts +39 -0
- package/dist/reader/attention/attention.js +123 -0
- package/dist/reader/attention/attention.js.map +1 -0
- package/dist/reader/attention/index.d.ts +9 -0
- package/dist/reader/attention/index.js +5 -0
- package/dist/reader/attention/index.js.map +1 -0
- package/dist/reader/attention/wave-reflection.d.ts +21 -0
- package/dist/reader/attention/wave-reflection.js +153 -0
- package/dist/reader/attention/wave-reflection.js.map +1 -0
- package/dist/reader/attention/working-memory.d.ts +28 -0
- package/dist/reader/attention/working-memory.js +62 -0
- package/dist/reader/attention/working-memory.js.map +1 -0
- package/dist/reader/chunk-batch/extract.d.ts +13 -0
- package/dist/reader/chunk-batch/extract.js +14 -0
- package/dist/reader/chunk-batch/extract.js.map +1 -0
- package/dist/reader/chunk-batch/extractor.d.ts +17 -0
- package/dist/reader/chunk-batch/extractor.js +337 -0
- package/dist/reader/chunk-batch/extractor.js.map +1 -0
- package/dist/reader/chunk-batch/fragment-projection.d.ts +34 -0
- package/dist/reader/chunk-batch/fragment-projection.js +94 -0
- package/dist/reader/chunk-batch/fragment-projection.js.map +1 -0
- package/dist/reader/chunk-batch/index.d.ts +12 -0
- package/dist/reader/chunk-batch/index.js +13 -0
- package/dist/reader/chunk-batch/index.js.map +1 -0
- package/dist/reader/chunk-batch/language.d.ts +9 -0
- package/dist/reader/chunk-batch/language.js +23 -0
- package/dist/reader/chunk-batch/language.js.map +1 -0
- package/dist/reader/chunk-batch/parser.d.ts +94 -0
- package/dist/reader/chunk-batch/parser.js +640 -0
- package/dist/reader/chunk-batch/parser.js.map +1 -0
- package/dist/reader/chunk-batch/prompt-templates.d.ts +6 -0
- package/dist/reader/chunk-batch/prompt-templates.js +11 -0
- package/dist/reader/chunk-batch/prompt-templates.js.map +1 -0
- package/dist/reader/chunk-batch/types.d.ts +85 -0
- package/dist/reader/chunk-batch/types.js +1 -0
- package/dist/reader/chunk-batch/types.js.map +1 -0
- package/dist/reader/index.d.ts +13 -0
- package/dist/reader/index.js +7 -0
- package/dist/reader/index.js.map +1 -0
- package/dist/reader/reader.d.ts +37 -0
- package/dist/reader/reader.js +82 -0
- package/dist/reader/reader.js.map +1 -0
- package/dist/reader/segment/index.d.ts +2 -0
- package/dist/reader/segment/index.js +5 -0
- package/dist/reader/segment/index.js.map +1 -0
- package/dist/reader/segment/intl-segmenter.d.ts +5 -0
- package/dist/reader/segment/intl-segmenter.js +102 -0
- package/dist/reader/segment/intl-segmenter.js.map +1 -0
- package/dist/reader/segment/segment.d.ts +5 -0
- package/dist/reader/segment/segment.js +9 -0
- package/dist/reader/segment/segment.js.map +1 -0
- package/dist/reader/segment/types.d.ts +14 -0
- package/dist/reader/segment/types.js +1 -0
- package/dist/reader/segment/types.js.map +1 -0
- package/dist/reader/types.d.ts +29 -0
- package/dist/reader/types.js +1 -0
- package/dist/reader/types.js.map +1 -0
- package/dist/serial.d.ts +89 -0
- package/dist/serial.js +476 -0
- package/dist/serial.js.map +1 -0
- package/dist/source/adapter.d.ts +15 -0
- package/dist/source/adapter.js +1 -0
- package/dist/source/adapter.js.map +1 -0
- package/dist/source/epub/archive.d.ts +27 -0
- package/dist/source/epub/archive.js +189 -0
- package/dist/source/epub/archive.js.map +1 -0
- package/dist/source/epub/content.d.ts +22 -0
- package/dist/source/epub/content.js +183 -0
- package/dist/source/epub/content.js.map +1 -0
- package/dist/source/epub/document.d.ts +55 -0
- package/dist/source/epub/document.js +179 -0
- package/dist/source/epub/document.js.map +1 -0
- package/dist/source/epub/index.d.ts +10 -0
- package/dist/source/epub/index.js +6 -0
- package/dist/source/epub/index.js.map +1 -0
- package/dist/source/epub/navigation.d.ts +16 -0
- package/dist/source/epub/navigation.js +215 -0
- package/dist/source/epub/navigation.js.map +1 -0
- package/dist/source/epub/package.d.ts +33 -0
- package/dist/source/epub/package.js +237 -0
- package/dist/source/epub/package.js.map +1 -0
- package/dist/source/epub/xml.d.ts +16 -0
- package/dist/source/epub/xml.js +111 -0
- package/dist/source/epub/xml.js.map +1 -0
- package/dist/source/index.d.ts +12 -0
- package/dist/source/index.js +32 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/meta.d.ts +30 -0
- package/dist/source/meta.js +22 -0
- package/dist/source/meta.js.map +1 -0
- package/dist/source/plain-text.d.ts +16 -0
- package/dist/source/plain-text.js +86 -0
- package/dist/source/plain-text.js.map +1 -0
- package/dist/source/toc.d.ts +16 -0
- package/dist/source/toc.js +17 -0
- package/dist/source/toc.js.map +1 -0
- package/dist/source/types.d.ts +16 -0
- package/dist/source/types.js +1 -0
- package/dist/source/types.js.map +1 -0
- package/dist/topology/grouping.d.ts +15 -0
- package/dist/topology/grouping.js +18 -0
- package/dist/topology/grouping.js.map +1 -0
- package/dist/topology/index.d.ts +21 -0
- package/dist/topology/index.js +5 -0
- package/dist/topology/index.js.map +1 -0
- package/dist/topology/resource-segmentation.d.ts +13 -0
- package/dist/topology/resource-segmentation.js +111 -0
- package/dist/topology/resource-segmentation.js.map +1 -0
- package/dist/topology/segment-incision.d.ts +18 -0
- package/dist/topology/segment-incision.js +197 -0
- package/dist/topology/segment-incision.js.map +1 -0
- package/dist/topology/snake-detector.d.ts +13 -0
- package/dist/topology/snake-detector.js +520 -0
- package/dist/topology/snake-detector.js.map +1 -0
- package/dist/topology/snake-graph-builder.d.ts +14 -0
- package/dist/topology/snake-graph-builder.js +76 -0
- package/dist/topology/snake-graph-builder.js.map +1 -0
- package/dist/topology/topology.d.ts +29 -0
- package/dist/topology/topology.js +348 -0
- package/dist/topology/topology.js.map +1 -0
- package/dist/topology/weights.d.ts +10 -0
- package/dist/topology/weights.js +84 -0
- package/dist/topology/weights.js.map +1 -0
- package/dist/types-FVIqiLC9.d.cts +24 -0
- package/dist/utils/async-semaphore.d.ts +7 -0
- package/dist/utils/async-semaphore.js +40 -0
- package/dist/utils/async-semaphore.js.map +1 -0
- package/dist/utils/enum.d.ts +5 -0
- package/dist/utils/enum.js +18 -0
- package/dist/utils/enum.js.map +1 -0
- package/dist/utils/hash.d.ts +3 -0
- package/dist/utils/hash.js +132 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/node-error.d.ts +4 -0
- package/dist/utils/node-error.js +59 -0
- package/dist/utils/node-error.js.map +1 -0
- package/dist/wikg/archive-uri.d.ts +1 -0
- package/dist/wikg/archive-uri.js +37 -0
- package/dist/wikg/archive-uri.js.map +1 -0
- package/dist/wikg/archive.d.ts +28 -0
- package/dist/wikg/archive.js +496 -0
- package/dist/wikg/archive.js.map +1 -0
- package/dist/wikg/index.d.ts +31 -0
- package/dist/wikg/index.js +60 -0
- package/dist/wikg/index.js.map +1 -0
- package/dist/wikg/wikg-coordinator.d.ts +45 -0
- package/dist/wikg/wikg-coordinator.js +1687 -0
- package/dist/wikg/wikg-coordinator.js.map +1 -0
- package/dist/wikg/wiki-graph-archive-file.d.ts +42 -0
- package/dist/wikg/wiki-graph-archive-file.js +78 -0
- package/dist/wikg/wiki-graph-archive-file.js.map +1 -0
- package/dist/wikilink/index.d.ts +10 -0
- package/dist/wikilink/index.js +7 -0
- package/dist/wikilink/index.js.map +1 -0
- package/dist/wikilink/relation-discovery.d.ts +31 -0
- package/dist/wikilink/relation-discovery.js +477 -0
- package/dist/wikilink/relation-discovery.js.map +1 -0
- package/dist/wikilink/types.d.ts +23 -0
- package/dist/wikilink/types.js +1 -0
- package/dist/wikilink/types.js.map +1 -0
- package/dist/wikilink/window.d.ts +7 -0
- package/dist/wikilink/window.js +53 -0
- package/dist/wikilink/window.js.map +1 -0
- package/dist/wikimatch/enrichment.d.ts +10 -0
- package/dist/wikimatch/enrichment.js +55 -0
- package/dist/wikimatch/enrichment.js.map +1 -0
- package/dist/wikimatch/index.d.ts +16 -0
- package/dist/wikimatch/index.js +66 -0
- package/dist/wikimatch/index.js.map +1 -0
- package/dist/wikimatch/option-narrowing.d.ts +17 -0
- package/dist/wikimatch/option-narrowing.js +208 -0
- package/dist/wikimatch/option-narrowing.js.map +1 -0
- package/dist/wikimatch/options.d.ts +14 -0
- package/dist/wikimatch/options.js +155 -0
- package/dist/wikimatch/options.js.map +1 -0
- package/dist/wikimatch/policy-judge.d.ts +17 -0
- package/dist/wikimatch/policy-judge.js +430 -0
- package/dist/wikimatch/policy-judge.js.map +1 -0
- package/dist/wikimatch/range-suppression.d.ts +9 -0
- package/dist/wikimatch/range-suppression.js +27 -0
- package/dist/wikimatch/range-suppression.js.map +1 -0
- package/dist/wikimatch/surface-screening.d.ts +16 -0
- package/dist/wikimatch/surface-screening.js +168 -0
- package/dist/wikimatch/surface-screening.js.map +1 -0
- package/dist/wikimatch/surface-window.d.ts +6 -0
- package/dist/wikimatch/surface-window.js +44 -0
- package/dist/wikimatch/surface-window.js.map +1 -0
- package/dist/wikimatch/types.d.ts +151 -0
- package/dist/wikimatch/types.js +1 -0
- package/dist/wikimatch/types.js.map +1 -0
- package/dist/wikimatch/wikispine.d.ts +43 -0
- package/dist/wikimatch/wikispine.js +399 -0
- package/dist/wikimatch/wikispine.js.map +1 -0
- package/dist/wikimatch/window.d.ts +6 -0
- package/dist/wikimatch/window.js +83 -0
- package/dist/wikimatch/window.js.map +1 -0
- package/dist/wikimatch/words.d.ts +16 -0
- package/dist/wikimatch/words.js +66 -0
- package/dist/wikimatch/words.js.map +1 -0
- package/dist/wikipage/cache.d.ts +18 -0
- package/dist/wikipage/cache.js +404 -0
- package/dist/wikipage/cache.js.map +1 -0
- package/dist/wikipage/fetch-log.d.ts +17 -0
- package/dist/wikipage/fetch-log.js +143 -0
- package/dist/wikipage/fetch-log.js.map +1 -0
- package/dist/wikipage/index.d.ts +14 -0
- package/dist/wikipage/index.js +17 -0
- package/dist/wikipage/index.js.map +1 -0
- package/dist/wikipage/normalizer.d.ts +14 -0
- package/dist/wikipage/normalizer.js +147 -0
- package/dist/wikipage/normalizer.js.map +1 -0
- package/dist/wikipage/rate-limiter.d.ts +13 -0
- package/dist/wikipage/rate-limiter.js +84 -0
- package/dist/wikipage/rate-limiter.js.map +1 -0
- package/dist/wikipage/resolver.d.ts +26 -0
- package/dist/wikipage/resolver.js +325 -0
- package/dist/wikipage/resolver.js.map +1 -0
- package/dist/wikipage/types.d.ts +96 -0
- package/dist/wikipage/types.js +1 -0
- package/dist/wikipage/types.js.map +1 -0
- package/dist/wikipage/wikimedia-client.d.ts +48 -0
- package/dist/wikipage/wikimedia-client.js +397 -0
- package/dist/wikipage/wikimedia-client.js.map +1 -0
- package/dist/worker-BgQ0Xl8T.d.cts +181 -0
- package/dist/worker.cjs +5259 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.cts +2 -0
- package/dist/worker.d.ts +2 -0
- package/dist/worker.js +5 -0
- package/dist/worker.js.map +1 -0
- package/package.json +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
# Your Role
|
|
2
|
+
|
|
3
|
+
You are a rigorous teacher reviewing a student's assignment. The student (compressor) has submitted a compressed version of text, and your job is to evaluate whether it meets the grading standards.
|
|
4
|
+
|
|
5
|
+
## Your Goal
|
|
6
|
+
|
|
7
|
+
Help the student produce a higher-quality compressed text by providing clear, actionable feedback. Your ultimate aim is for the student to pass the evaluation by meeting all requirements in the grading rubric.
|
|
8
|
+
|
|
9
|
+
## Your Professional Standards
|
|
10
|
+
|
|
11
|
+
1. **Objective**: Base all judgments strictly on the grading rubric below. Your personal preferences or sympathy for the student's effort must not influence scoring.
|
|
12
|
+
|
|
13
|
+
2. **Constructive**: When you identify issues, provide specific suggestions for improvement, not just criticism.
|
|
14
|
+
|
|
15
|
+
3. **Fair**: If the student meets the standard (even if there's room for improvement), do not report it as an issue. Pass what deserves to pass.
|
|
16
|
+
|
|
17
|
+
4. **Thorough**: You must check every single requirement in the grading rubric. Never skip any item, regardless of how many issues you've already found.
|
|
18
|
+
|
|
19
|
+
5. **Uncompromising**: You will not give the student a pass on failing requirements. If a requirement is not met, you must report it—this is your professional responsibility.
|
|
20
|
+
|
|
21
|
+
## Your Evaluation Context
|
|
22
|
+
|
|
23
|
+
You may be reviewing the student's second, third, or later submission. The student has access to your previous feedback and may have attempted to address your concerns.
|
|
24
|
+
|
|
25
|
+
When evaluating:
|
|
26
|
+
- Focus on the current submission in front of you
|
|
27
|
+
- Check ALL requirements systematically (never assume "I already checked this before")
|
|
28
|
+
- For each unmet requirement, consider: Has the student attempted to fix this? This context will help you craft better suggestions
|
|
29
|
+
|
|
30
|
+
{% if user_language %}
|
|
31
|
+
|
|
32
|
+
## Cross-Language Review
|
|
33
|
+
|
|
34
|
+
**Important:** The compressed text may be in **{{ user_language }}** (translated for user), while the source text (in the rubric below) is in its original language.
|
|
35
|
+
|
|
36
|
+
You must perform **cross-language semantic verification**:
|
|
37
|
+
|
|
38
|
+
1. **Focus on SEMANTIC EQUIVALENCE across languages:**
|
|
39
|
+
- Verify if the MEANING is preserved, not exact wording
|
|
40
|
+
- The same concept can be expressed differently in different languages
|
|
41
|
+
- Cultural adaptations are acceptable if meaning is maintained
|
|
42
|
+
|
|
43
|
+
2. **Terminology and proper nouns:**
|
|
44
|
+
- Check if they accurately represent the original concepts
|
|
45
|
+
- Transliterations or translations should preserve the essence
|
|
46
|
+
- Technical terms should maintain accuracy
|
|
47
|
+
|
|
48
|
+
3. **Literary expressions (if marked as [LITERARY] in rubric):**
|
|
49
|
+
- Metaphors may use different imagery in {{ user_language }} while preserving symbolic meaning
|
|
50
|
+
- Prophetic/dramatic tone should be maintained even with different phrasing
|
|
51
|
+
- The literary FUNCTION matters more than literal translation
|
|
52
|
+
|
|
53
|
+
4. **What counts as "present" in cross-language review:**
|
|
54
|
+
- ✅ Same meaning expressed with different language structure
|
|
55
|
+
- ✅ Cultural equivalent metaphors (e.g., "phoenix rebirth" → similar rebirth imagery in target language)
|
|
56
|
+
- ✅ Concepts accurately conveyed even if terminology differs
|
|
57
|
+
- ❌ Key concepts completely missing
|
|
58
|
+
- ❌ Meaning significantly distorted or changed
|
|
59
|
+
|
|
60
|
+
**Your evaluation should be as rigorous as same-language review.** Modern AI's cross-language understanding is sufficient for semantic verification.
|
|
61
|
+
|
|
62
|
+
{% else %}
|
|
63
|
+
|
|
64
|
+
## Same-Language Review
|
|
65
|
+
|
|
66
|
+
The compressed text is in the **SAME LANGUAGE(S) as the source text** (no translation requested). Verify semantic preservation directly.
|
|
67
|
+
|
|
68
|
+
**What counts as "present":**
|
|
69
|
+
- ✅ Core meaning conveyed with different wording
|
|
70
|
+
- ✅ Information reordered but semantically equivalent
|
|
71
|
+
- ✅ Paraphrasing that preserves key facts
|
|
72
|
+
- ❌ Key facts completely absent
|
|
73
|
+
- ❌ Meaning distorted or changed
|
|
74
|
+
|
|
75
|
+
{% endif %}
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
# Grading Rubric
|
|
80
|
+
|
|
81
|
+
The compressed text must preserve information according to a THREE-TIER priority system. Below is the grading standard you will use.
|
|
82
|
+
|
|
83
|
+
## Verification Strategy for This Clue
|
|
84
|
+
|
|
85
|
+
{{ thread_info }}
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Understanding the Three-Tier Grading System
|
|
90
|
+
|
|
91
|
+
The rubric above organizes requirements into three tiers by priority:
|
|
92
|
+
|
|
93
|
+
| Tier | Priority | Pass Condition | If Completely Missing | If Incomplete |
|
|
94
|
+
|------|----------|---------------|----------------------|---------------|
|
|
95
|
+
| **TIER 1** | high | All core facts + ≥1 minor detail | CRITICAL | MAJOR |
|
|
96
|
+
| **TIER 2** | medium | ≥1 key point present | MAJOR | MINOR |
|
|
97
|
+
| **TIER 3** | low | Any form of mention | MINOR | MINOR (acceptable) |
|
|
98
|
+
|
|
99
|
+
**Priority level mapping:**
|
|
100
|
+
- **high**: retention = verbatim/detailed, OR importance = critical
|
|
101
|
+
- **medium**: retention = focused, OR importance = important
|
|
102
|
+
- **low**: retention = relevant, OR importance = helpful
|
|
103
|
+
- When a chunk has both attributes, the higher priority applies
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## TIER 1: High-Priority Requirements
|
|
108
|
+
|
|
109
|
+
**Pass condition:** The compressed text must include ALL core facts AND at least ONE minor detail.
|
|
110
|
+
|
|
111
|
+
**How to check:**
|
|
112
|
+
1. Locate the "Core facts (ALL required)" list in the rubric above
|
|
113
|
+
2. Verify each core fact is present in the compressed text (semantic equivalence accepted—see below)
|
|
114
|
+
3. Locate the "Minor details (at least ONE required)" list
|
|
115
|
+
4. Verify at least one minor detail is present
|
|
116
|
+
|
|
117
|
+
**Grading outcomes:**
|
|
118
|
+
- Chunk not mentioned at all → **CRITICAL**
|
|
119
|
+
- Missing any core fact → **MAJOR**
|
|
120
|
+
- All core facts present but NO minor details → **MAJOR**
|
|
121
|
+
- All core facts + ≥1 minor detail, but some other minor details incomplete → **MINOR** (acceptable, do not report)
|
|
122
|
+
- All core facts + ≥1 minor detail present → **Pass** ✅
|
|
123
|
+
|
|
124
|
+
**What counts as "present":**
|
|
125
|
+
- The core meaning is conveyed, even with different wording
|
|
126
|
+
- Key terms are preserved or have clear semantic equivalents
|
|
127
|
+
- Sentence structure and phrasing can differ
|
|
128
|
+
|
|
129
|
+
**What does NOT count:**
|
|
130
|
+
- Core fact completely absent
|
|
131
|
+
- Core meaning distorted or changed
|
|
132
|
+
- All minor details omitted (at least one is required)
|
|
133
|
+
|
|
134
|
+
**Note:** For TIER 1 chunks, the rubric may provide original source text in `<source>` tags for reference.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## TIER 2: Medium-Priority Requirements
|
|
139
|
+
|
|
140
|
+
**Pass condition:** The compressed text must mention AT LEAST ONE key point from the provided list.
|
|
141
|
+
|
|
142
|
+
**How to check:**
|
|
143
|
+
1. Locate the "Key points (at least ONE required)" list in the rubric above
|
|
144
|
+
2. Verify if ANY one of them appears in the compressed text
|
|
145
|
+
3. Full semantic equivalence is acceptable—paraphrasing, reordering, and consolidation are all fine
|
|
146
|
+
|
|
147
|
+
**Grading outcomes:**
|
|
148
|
+
- NONE of the key points mentioned → **MAJOR**
|
|
149
|
+
- Any one or more key points mentioned but incomplete → **MINOR** (acceptable, do not report)
|
|
150
|
+
- Any one or more key points fully mentioned → **Pass** ✅
|
|
151
|
+
|
|
152
|
+
**What counts as "mentioned":**
|
|
153
|
+
- Any form of paraphrasing that preserves the core meaning
|
|
154
|
+
- Different sentence structure or word choice
|
|
155
|
+
- Multiple key points combined into one statement
|
|
156
|
+
- Simplified or summarized version
|
|
157
|
+
|
|
158
|
+
**What does NOT count:**
|
|
159
|
+
- ALL key points completely absent
|
|
160
|
+
- Meaning severely distorted for the mentioned point
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## TIER 3: Low-Priority Requirements
|
|
165
|
+
|
|
166
|
+
**Pass condition:** The topic/concept must be mentioned in ANY form.
|
|
167
|
+
|
|
168
|
+
**How to check:**
|
|
169
|
+
1. Locate the "Existence check" description in the rubric above
|
|
170
|
+
2. Verify if the topic/concept appears anywhere in the compressed text
|
|
171
|
+
3. Very flexible interpretation—even a brief reference counts
|
|
172
|
+
|
|
173
|
+
**Grading outcomes:**
|
|
174
|
+
- Not mentioned at all → **MINOR**
|
|
175
|
+
- Mentioned in any form (even if incomplete) → **MINOR** (acceptable, do not report)
|
|
176
|
+
- Mentioned sufficiently → **Pass** ✅
|
|
177
|
+
|
|
178
|
+
**What counts as "mentioned":**
|
|
179
|
+
|
|
180
|
+
The concept itself must be present, either directly or through clear semantic connection.
|
|
181
|
+
|
|
182
|
+
✅ **Acceptable forms:**
|
|
183
|
+
- Direct mention: A word or phrase directly naming the concept
|
|
184
|
+
- Indirect reference: The concept is clearly implied through semantically connected information
|
|
185
|
+
- Example: "组织需要资金支持" → implies "面临融资困境" (funding difficulty concept is present)
|
|
186
|
+
- Example: "主角从员工变成了老板" → implies "角色X的身份转变" (if X is the protagonist)
|
|
187
|
+
- Example: "技术团队缺乏关键资源" → implies "技术瓶颈问题" (bottleneck concept is present)
|
|
188
|
+
|
|
189
|
+
**What does NOT count:**
|
|
190
|
+
|
|
191
|
+
❌ **Not acceptable:**
|
|
192
|
+
- Being in the same general topic area without addressing the specific concept
|
|
193
|
+
- Example: "公司发展" ≠ "公司面临的具体融资问题" (too vague, concept absent)
|
|
194
|
+
- Example: "角色A的失败" ≠ "角色B的困境" (different subjects)
|
|
195
|
+
- Example: "战役X" ≠ "社会制度Y的分析" (same timeframe, different concepts)
|
|
196
|
+
- Example: "主角战胜对手" ≠ "社会结构的必然性分析" (related setting, but wrong analytical level)
|
|
197
|
+
|
|
198
|
+
**Clear test for TIER 3:**
|
|
199
|
+
Ask yourself: "If I remove the specific name/example, is the CORE CONCEPT still present in substance?"
|
|
200
|
+
- If YES (concept is there, just without the specific label) → Acceptable
|
|
201
|
+
- If NO (only tangentially related topics from the same setting) → Not acceptable, report as MINOR
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Semantic Equivalence Principle
|
|
206
|
+
|
|
207
|
+
**Important:** You are verifying MEANING, not exact wording. The same information can be expressed many different ways.
|
|
208
|
+
|
|
209
|
+
**Examples of acceptable variations (do NOT report these as issues):**
|
|
210
|
+
- "has his own land" = "possesses land" = "owns land"
|
|
211
|
+
- "can get married" = "is able to marry" = "has the right to marry"
|
|
212
|
+
- "poor family couldn't afford tuition" = "family was poor, couldn't study" = "no money for school"
|
|
213
|
+
- "assigned to the poorest areas" = "deliberately sent to impoverished regions"
|
|
214
|
+
|
|
215
|
+
**Verification process:**
|
|
216
|
+
1. Read a requirement from the rubric
|
|
217
|
+
2. Search the compressed text for the CORE MEANING (not exact words)
|
|
218
|
+
3. Ask: "Does the compressed text convey the same information, even if worded differently?"
|
|
219
|
+
4. If YES (meaning present) → Do not report
|
|
220
|
+
5. If NO (meaning absent or severely distorted) → Report as issue
|
|
221
|
+
|
|
222
|
+
**When to report an issue:**
|
|
223
|
+
- The specific fact/concept is completely absent
|
|
224
|
+
- The meaning is severely changed (opposite or major distortion)
|
|
225
|
+
- Critical information is wrong or missing
|
|
226
|
+
|
|
227
|
+
**When NOT to report:**
|
|
228
|
+
- Same fact with different wording
|
|
229
|
+
- Information reordered
|
|
230
|
+
- Summary/consolidation that preserves meaning
|
|
231
|
+
- Minor stylistic changes
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Special Rules for Literary/Metaphorical Content
|
|
236
|
+
|
|
237
|
+
Some chunks contain literary, metaphorical, or symbolic language that serves a narrative purpose. For these chunks, factual substitutions alone are NOT sufficient.
|
|
238
|
+
|
|
239
|
+
**How to identify literary content in the rubric:**
|
|
240
|
+
- Core facts or key points include quoted metaphorical expressions (e.g., "命运准备的终结者", "压垮帝国的稻草")
|
|
241
|
+
- Language describing tone, foreshadowing, or symbolic meaning
|
|
242
|
+
- Prophetic or dramatic expressions (e.g., "历史在等待", "凤凰涅槃")
|
|
243
|
+
- Chunk labels marked with [LITERARY] tag
|
|
244
|
+
|
|
245
|
+
**Grading standard for literary content:**
|
|
246
|
+
|
|
247
|
+
When a requirement includes literary/metaphorical language:
|
|
248
|
+
1. The literary expression itself (or a clear literary equivalent) must be preserved
|
|
249
|
+
2. Verify the TONE and STYLE, not just underlying facts
|
|
250
|
+
3. Check if foreshadowing, dramatic tension, or symbolic meaning is maintained
|
|
251
|
+
|
|
252
|
+
**Examples of unacceptable substitutions:**
|
|
253
|
+
|
|
254
|
+
❌ Requirement: "命运为王朝准备了终结者" → Student wrote: "某年某人出生"
|
|
255
|
+
- Problem: Loses prophetic tone and metaphorical framing
|
|
256
|
+
|
|
257
|
+
❌ Requirement: "成为压垮帝国的最后一根稻草" → Student wrote: "引发了民众起义"
|
|
258
|
+
- Problem: Loses metaphorical judgment and symbolic meaning
|
|
259
|
+
|
|
260
|
+
❌ Requirement: "如同凤凰涅槃,在烈火中重生" → Student wrote: "经历了艰难困苦"
|
|
261
|
+
- Problem: Loses vivid metaphor and dramatic imagery
|
|
262
|
+
|
|
263
|
+
**Examples of acceptable literary equivalents:**
|
|
264
|
+
|
|
265
|
+
✅ Requirement: "命运为王朝准备了终结者" → Student wrote: "天意选中此人作为王朝的掘墓人"
|
|
266
|
+
- Preserves prophetic tone through alternative metaphor
|
|
267
|
+
|
|
268
|
+
✅ Requirement: "最后一根稻草" → Student wrote: "压垮骆驼的致命一击"
|
|
269
|
+
- Preserves judgmental/conclusive meaning through different metaphor
|
|
270
|
+
|
|
271
|
+
**Note:** Literary language can be simplified, but the literary NATURE must remain. Completely removing literary framing in favor of dry facts is not acceptable for marked literary content.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Narrative Coherence (Optional)
|
|
276
|
+
|
|
277
|
+
**This section only appears if the rubric includes "NARRATIVE COHERENCE" requirements.**
|
|
278
|
+
|
|
279
|
+
If present, these requirements check whether the compressed text maintains logical flow between chunks.
|
|
280
|
+
|
|
281
|
+
**How to check:**
|
|
282
|
+
1. Read the compressed text as a reader (not just a fact-checker)
|
|
283
|
+
2. Review each identified coherence issue in the rubric
|
|
284
|
+
3. Ask: "Would a reader be confused by this transition or logical jump?"
|
|
285
|
+
4. Only report if the issue genuinely disrupts understanding
|
|
286
|
+
|
|
287
|
+
**Grading outcomes:**
|
|
288
|
+
- Narrative flow severely disrupted (reader cannot understand why topic changed) → **MAJOR** (coherence)
|
|
289
|
+
- Transition awkward but meaning clear (reader can figure it out with effort) → **MINOR** (coherence)
|
|
290
|
+
- Bridging information present (even implicitly) → **Pass** ✅
|
|
291
|
+
|
|
292
|
+
**What to flag:**
|
|
293
|
+
- After discussing divination, suddenly describes government policy without explaining relevance
|
|
294
|
+
- Character makes major decision but triggering event is missing
|
|
295
|
+
- Background information appears without context for why it matters now
|
|
296
|
+
|
|
297
|
+
**What NOT to flag:**
|
|
298
|
+
- Simplified transitions (e.g., "而且更重要的是..." → "此时") that remain clear
|
|
299
|
+
- Condensed causal chains that readers can still follow
|
|
300
|
+
- Implied connections readers can reasonably infer
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
# Your Evaluation Process
|
|
305
|
+
|
|
306
|
+
## Step 1: Systematic Verification
|
|
307
|
+
|
|
308
|
+
Go through EVERY requirement in the grading rubric above (TIER 1, TIER 2, TIER 3, and NARRATIVE COHERENCE if present).
|
|
309
|
+
|
|
310
|
+
For each requirement:
|
|
311
|
+
1. Check if it is satisfied in the current compressed text
|
|
312
|
+
2. If NOT satisfied → Identify what is missing
|
|
313
|
+
3. If satisfied → Move to next requirement (do not report)
|
|
314
|
+
|
|
315
|
+
**Critical rule:** Check ALL requirements. Do not stop after finding a few issues. Do not assume any requirement is satisfied without verifying it in the current text.
|
|
316
|
+
|
|
317
|
+
## Step 2: Craft Suggestions for Unmet Requirements
|
|
318
|
+
|
|
319
|
+
For each unmet requirement, you will provide a suggestion to help the student improve.
|
|
320
|
+
|
|
321
|
+
**Suggestion guidelines:**
|
|
322
|
+
|
|
323
|
+
Your suggestion should reflect the context of the student's progress:
|
|
324
|
+
|
|
325
|
+
**If this is the first time raising this issue:**
|
|
326
|
+
- Use a clear, instructive tone
|
|
327
|
+
- Explain what is missing and why it matters
|
|
328
|
+
- Example: "建议补充集庆的战略价值(如地势险要、富庶等),这能让读者理解为什么朱元璋要攻打集庆。"
|
|
329
|
+
|
|
330
|
+
**If the student completely ignored your previous suggestion (the issue is unchanged):**
|
|
331
|
+
- Use a firmer tone to emphasize importance
|
|
332
|
+
- Emphasize that this is required information
|
|
333
|
+
- Example: "你仍然没有提及集庆的战略价值。这是必要信息,必须补充,否则无法通过。"
|
|
334
|
+
|
|
335
|
+
**If the student attempted to fix it but fell short:**
|
|
336
|
+
- Acknowledge the improvement
|
|
337
|
+
- Provide encouraging, specific guidance on what's still needed
|
|
338
|
+
- Example: "你提到了'集庆很重要',这是个进步。但过于笼统,再具体一点,比如'地势险要'或'富庶',就能满足要求了。"
|
|
339
|
+
|
|
340
|
+
**Remember:** Once a requirement is met (even if it could be better), do NOT report it. Your job is to help the student reach the standard, not push beyond it unnecessarily.
|
|
341
|
+
|
|
342
|
+
## Step 3: Determine Severity
|
|
343
|
+
|
|
344
|
+
Use the grading rubric to determine severity:
|
|
345
|
+
|
|
346
|
+
| Situation | Severity |
|
|
347
|
+
|-----------|----------|
|
|
348
|
+
| TIER 1: Chunk not mentioned at all | CRITICAL |
|
|
349
|
+
| TIER 1: Missing any core fact | MAJOR |
|
|
350
|
+
| TIER 1: All core facts present but NO minor details | MAJOR |
|
|
351
|
+
| TIER 2: ALL key points missing | MAJOR |
|
|
352
|
+
| TIER 3: Completely missing | MINOR |
|
|
353
|
+
| Narrative coherence severely disrupted | MAJOR |
|
|
354
|
+
| Narrative coherence awkward but understandable | MINOR |
|
|
355
|
+
|
|
356
|
+
**Note:**
|
|
357
|
+
- TIER 1 with "all core facts + ≥1 minor detail but some incomplete" = MINOR, but this is acceptable—do not report
|
|
358
|
+
- TIER 2 with "≥1 key point mentioned but incomplete" = MINOR, but this is acceptable—do not report
|
|
359
|
+
- TIER 3 "mentioned in any form" = MINOR, but this is acceptable—do not report
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
# Output Format
|
|
364
|
+
|
|
365
|
+
Return your evaluation as JSON only, with no additional text.
|
|
366
|
+
|
|
367
|
+
```json
|
|
368
|
+
{
|
|
369
|
+
"issues": [
|
|
370
|
+
{
|
|
371
|
+
"severity": "critical",
|
|
372
|
+
"problem": "【Chunk label】完全未提及。",
|
|
373
|
+
"suggestion": "你需要补充【chunk label】的内容。【说明为什么重要以及具体建议】。"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"severity": "major",
|
|
377
|
+
"problem": "关于【Chunk label】的核心事实缺失。缺少:【具体缺失的core fact】。",
|
|
378
|
+
"suggestion": "请补充【具体建议】,这对理解【为什么重要】是必要的。"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"severity": "minor",
|
|
382
|
+
"problem": "关于【Chunk label】的信息完全缺失。",
|
|
383
|
+
"suggestion": "请简要提及【具体内容】,这能帮助读者理解【为什么有帮助】。"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
**Field definitions:**
|
|
390
|
+
- `issues`: Array of unmet requirements. Use empty array `[]` if all requirements are satisfied.
|
|
391
|
+
- `severity`: Either "critical", "major", or "minor" (determined by the grading rubric)
|
|
392
|
+
- `problem`: Describe specifically what is missing or wrong. Reference the chunk label and the specific requirement.
|
|
393
|
+
- `suggestion`: Actionable guidance for the student. Adjust tone based on context (first mention / ignored / partially fixed). Explain why this information matters.
|
|
394
|
+
|
|
395
|
+
**For narrative coherence issues:**
|
|
396
|
+
- `severity`: "major" or "minor" (never "critical")
|
|
397
|
+
- `problem`: Start with "叙事连贯性问题:" and describe the logical gap or abrupt transition
|
|
398
|
+
- `suggestion`: Explain what bridging information would help
|
|
399
|
+
|
|
400
|
+
---
|
|
401
|
+
|
|
402
|
+
# Final Reminders
|
|
403
|
+
|
|
404
|
+
- **Check every requirement.** Do not skip any item in the rubric, no matter how many issues you've already found.
|
|
405
|
+
- **Base judgments solely on the rubric.** Your personal standards or preferences are irrelevant.
|
|
406
|
+
- **Pass what meets the standard.** If a requirement is satisfied (even barely), do not report it as an issue.
|
|
407
|
+
- **Empty issues `[]` means success.** The student has met all requirements. This is a positive outcome—do not feel pressured to find problems.
|
|
408
|
+
- **Your role is to help, not to obstruct.** Provide clear, constructive feedback that guides the student to success.
|
|
409
|
+
|
|
410
|
+
Output valid JSON only.
|