mednotes-opencode 0.1.0
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/.opencode/agents/med-chat-triager.md +204 -0
- package/.opencode/agents/med-flashcard-maker.md +63 -0
- package/.opencode/agents/med-knowledge-architect.md +230 -0
- package/.opencode/agents/med-link-graph-curator.md +177 -0
- package/.opencode/agents/med-publish-guard.md +62 -0
- package/.opencode/commands/flashcards.md +25 -0
- package/.opencode/commands/mednotes/create.md +25 -0
- package/.opencode/commands/mednotes/enrich.md +27 -0
- package/.opencode/commands/mednotes/fix-wiki.md +27 -0
- package/.opencode/commands/mednotes/history.md +22 -0
- package/.opencode/commands/mednotes/link-body.md +25 -0
- package/.opencode/commands/mednotes/link-related.md +27 -0
- package/.opencode/commands/mednotes/link.md +27 -0
- package/.opencode/commands/mednotes/pdf-library.md +27 -0
- package/.opencode/commands/mednotes/process-chats.md +23 -0
- package/.opencode/commands/mednotes/setup.md +21 -0
- package/.opencode/commands/mednotes/status.md +27 -0
- package/.opencode/commands/mednotes/telemetry.md +27 -0
- package/.opencode/commands/report.md +26 -0
- package/.opencode/mednotes/AGENTS.md +57 -0
- package/.opencode/mednotes/agents/med-chat-triager.md +197 -0
- package/.opencode/mednotes/agents/med-flashcard-maker.md +56 -0
- package/.opencode/mednotes/agents/med-knowledge-architect.md +224 -0
- package/.opencode/mednotes/agents/med-link-graph-curator.md +171 -0
- package/.opencode/mednotes/agents/med-publish-guard.md +55 -0
- package/.opencode/mednotes/contracts/.gitkeep +1 -0
- package/.opencode/mednotes/contracts/agents.json +116 -0
- package/.opencode/mednotes/contracts/opencode-plugin.json +70 -0
- package/.opencode/mednotes/docs/agent-prompt-hardening.md +567 -0
- package/.opencode/mednotes/docs/agent-role-contracts.md +94 -0
- package/.opencode/mednotes/docs/anki-mcp-twenty-rules.md +214 -0
- package/.opencode/mednotes/docs/anki-templates/README.md +39 -0
- package/.opencode/mednotes/docs/anki-templates/cloze.back.html +23 -0
- package/.opencode/mednotes/docs/anki-templates/cloze.front.html +14 -0
- package/.opencode/mednotes/docs/anki-templates/qa.back.html +24 -0
- package/.opencode/mednotes/docs/anki-templates/qa.front.html +14 -0
- package/.opencode/mednotes/docs/anki-templates/style.css +182 -0
- package/.opencode/mednotes/docs/atomicity-splitting-policy.md +113 -0
- package/.opencode/mednotes/docs/extension-docs.md +40 -0
- package/.opencode/mednotes/docs/flashcard-ingestion.md +278 -0
- package/.opencode/mednotes/docs/knowledge-architect.md +208 -0
- package/.opencode/mednotes/docs/merge-policy.md +110 -0
- package/.opencode/mednotes/docs/public-vocabulary.md +104 -0
- package/.opencode/mednotes/docs/semantic-linker.md +141 -0
- package/.opencode/mednotes/docs/taxonomy-policy.md +90 -0
- package/.opencode/mednotes/docs/triage-policy.md +187 -0
- package/.opencode/mednotes/docs/vault-version-control.md +758 -0
- package/.opencode/mednotes/docs/vocabulary-db-recovery.md +58 -0
- package/.opencode/mednotes/docs/workflow-output-contract.md +779 -0
- package/.opencode/mednotes/hooks/hooks.json +79 -0
- package/.opencode/mednotes/package-lock.json +6361 -0
- package/.opencode/mednotes/package.json +15 -0
- package/.opencode/mednotes/pyproject.toml +48 -0
- package/.opencode/mednotes/scripts/bootstrap_windows_python_uv.cmd +13 -0
- package/.opencode/mednotes/scripts/bootstrap_windows_python_uv.ps1 +172 -0
- package/.opencode/mednotes/scripts/enrich_notes.py +23 -0
- package/.opencode/mednotes/scripts/full_reset_windows_python_uv.cmd +13 -0
- package/.opencode/mednotes/scripts/hooks/antigravity_hook_status.mjs +212 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/adapters/antigravity.mjs +169 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/adapters/harness_payload.mjs +103 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/adapters/opencode_plugin.mjs +341 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/adapters/opencode_user_config_sync.mjs +177 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/anki_preflight.mjs +214 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/cli.mjs +143 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/diagnostics.mjs +11 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/domain/agent_directive_core.mjs +160 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/fsm_directive.mjs +1470 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/hook_errors.mjs +120 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/retention.mjs +114 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/runtime.mjs +174 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/telemetry_capture.mjs +511 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook/vault_guard.mjs +624 -0
- package/.opencode/mednotes/scripts/hooks/mednotes_hook.mjs +5 -0
- package/.opencode/mednotes/scripts/mednotes/_runtime_paths.py +24 -0
- package/.opencode/mednotes/scripts/mednotes/anki_model_validator.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/capture_extension_diff.py +1562 -0
- package/.opencode/mednotes/scripts/mednotes/feedback_report.py +16 -0
- package/.opencode/mednotes/scripts/mednotes/flashcard_index.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/flashcard_pipeline.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/flashcard_report.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/flashcard_sources.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/obsidian/README.md +6 -0
- package/.opencode/mednotes/scripts/mednotes/obsidian_note_utils.py +20 -0
- package/.opencode/mednotes/scripts/mednotes/pdf_library/cli.py +16 -0
- package/.opencode/mednotes/scripts/mednotes/project_fsm.py +229 -0
- package/.opencode/mednotes/scripts/mednotes/setup_telemetry_email.py +404 -0
- package/.opencode/mednotes/scripts/mednotes/sync_anki_twenty_rules.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/sync_opencode_user_config.py +36 -0
- package/.opencode/mednotes/scripts/mednotes/wiki/cli.py +20 -0
- package/.opencode/mednotes/scripts/mednotes/wiki_graph.py +18 -0
- package/.opencode/mednotes/scripts/mednotes/wiki_tree.py +134 -0
- package/.opencode/mednotes/scripts/reset_windows_python_uv.ps1 +625 -0
- package/.opencode/mednotes/scripts/run_python.mjs +109 -0
- package/.opencode/mednotes/scripts/vault/vault_commit.ps1 +19 -0
- package/.opencode/mednotes/scripts/vault/vault_commit.sh +18 -0
- package/.opencode/mednotes/scripts/vault/vault_git.ps1 +19 -0
- package/.opencode/mednotes/scripts/vault/vault_git.py +3107 -0
- package/.opencode/mednotes/scripts/vault/vault_git.sh +18 -0
- package/.opencode/mednotes/scripts/vault/vault_precommit.ps1 +19 -0
- package/.opencode/mednotes/scripts/vault/vault_precommit.sh +18 -0
- package/.opencode/mednotes/skills/THIRD_PARTY_NOTICES.md +45 -0
- package/.opencode/mednotes/skills/create-medical-flashcards/SKILL.md +113 -0
- package/.opencode/mednotes/skills/create-medical-note/SKILL.md +90 -0
- package/.opencode/mednotes/skills/enrich-medical-note/SKILL.md +120 -0
- package/.opencode/mednotes/skills/fix-medical-wiki/SKILL.md +559 -0
- package/.opencode/mednotes/skills/link-medical-wiki/SKILL.md +224 -0
- package/.opencode/mednotes/skills/obsidian-cli/SKILL.md +118 -0
- package/.opencode/mednotes/skills/obsidian-markdown/SKILL.md +207 -0
- package/.opencode/mednotes/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
- package/.opencode/mednotes/skills/obsidian-markdown/references/EMBEDS.md +63 -0
- package/.opencode/mednotes/skills/obsidian-markdown/references/PROPERTIES.md +61 -0
- package/.opencode/mednotes/skills/obsidian-ops/SKILL.md +136 -0
- package/.opencode/mednotes/skills/pdf-library/SKILL.md +45 -0
- package/.opencode/mednotes/skills/process-medical-chats/SKILL.md +246 -0
- package/.opencode/mednotes/skills/workflow-report/SKILL.md +100 -0
- package/.opencode/mednotes/src/mednotes/__init__.py +5 -0
- package/.opencode/mednotes/src/mednotes/domains/__init__.py +5 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/README.md +26 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/__init__.py +2 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/build_demo_apkg.py +177 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/contracts.py +385 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/flashcards_machine.py +522 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/fsm.py +817 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/index.py +630 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/install_models.py +445 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/model.py +359 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/obsidian_links.py +135 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/obsidian_note_utils.py +546 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/pipeline.py +580 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/report.py +510 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/sources.py +682 -0
- package/.opencode/mednotes/src/mednotes/domains/flashcards/sync_rules.py +184 -0
- package/.opencode/mednotes/src/mednotes/domains/history/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/history/history_fsm.py +852 -0
- package/.opencode/mednotes/src/mednotes/domains/history/history_machine.py +453 -0
- package/.opencode/mednotes/src/mednotes/domains/setup/__init__.py +7 -0
- package/.opencode/mednotes/src/mednotes/domains/setup/setup_fsm.py +808 -0
- package/.opencode/mednotes/src/mednotes/domains/setup/setup_machine.py +973 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/README.md +64 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/api.py +668 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/batch_state.py +102 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/atomicity/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/atomicity/atomicity.py +877 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/body_link/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/body_link/body_linker.py +1562 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/effects/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/effects/effect_adapters.py +949 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/effects/fix_wiki_runtime_adapters.py +433 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/graph/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/graph/coverage.py +413 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/graph/graph.py +396 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/graph/graph_fixes.py +161 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/hygiene/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/hygiene/hygiene.py +483 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/__init__.py +2 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/anchors.py +185 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/__init__.py +0 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/cache.py +223 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/config.py +131 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/download.py +224 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/frontmatter.py +59 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/insert.py +227 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/core/local_import.py +54 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/sources/__init__.py +42 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/sources/web_profiles.py +99 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/sources/web_search.py +203 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/illustrate/sources/wikimedia.py +102 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/markdown/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/markdown/markdown_db_adapter.mjs +434 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/markdown/markdown_node_runtime.py +274 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/markdown/markdown_query.py +227 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/artifacts.py +605 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/canonical_merge.py +277 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/markdown_zones.py +85 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/meaning_planner.py +307 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_iter.py +67 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_merge.py +278 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_plan.py +409 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_policy.py +22 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/__init__.py +79 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/fixes.py +264 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/frontmatter.py +435 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/models.py +208 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/prompts.py +37 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/tables.py +236 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/note_style/validate.py +404 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/provenance.py +478 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/raw_chats.py +273 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/notes/sources_backfill.py +235 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/__init__.py +10 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/anchors.py +16 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/captions.py +47 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/cli.py +179 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/cloud.py +52 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/config.py +196 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/context_packets.py +76 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/db.py +81 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/doctor.py +102 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/figure_ids.py +42 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/ingest.py +326 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/insert.py +316 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/mentions.py +57 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/ocr.py +71 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/paths.py +35 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/pdf_engine.py +77 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/schema.py +155 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/search.py +188 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/tui/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/tui/app.py +89 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/tui/image_backend.py +29 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/pdf/tui/state.py +65 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/publish/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/publish/publish.py +1139 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/publish/publish_receipts.py +365 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/publish/publish_recovery.py +240 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/agent_behavior_corpus.py +2069 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/agent_report_validation.py +4448 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/agent_run_audit.py +852 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/architect_prompt_eval.py +341 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/body_linker_eval.py +240 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/curator_output_validation.py +175 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/curator_prompt_eval.py +865 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/quality/triager_prompt_eval.py +1295 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/related_notes/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/related_notes/related_notes.py +1920 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/related_notes/related_notes_headless.py +1186 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/specialist/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/specialist/plan_attestation.py +148 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/specialist/specialist_receipts.py +360 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/specialist/specialist_runtime.py +52 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/specialist/specialist_task_runner.py +2470 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/style/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/style/style.py +1952 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/subagents/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/subagents/agents.py +1767 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/alias_projection.py +331 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/link_terms.py +151 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/llm_disambiguation.py +182 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/__init__.py +116 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/audit.py +201 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/migration.py +314 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/normalize.py +72 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/policy.py +135 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/resolve.py +413 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/schema.py +157 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/taxonomy/status.py +137 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/vocabulary_bootstrap.py +509 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/vocabulary_curator_batch.py +1115 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/vocabulary_ingestion.py +632 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/vocabulary_map.py +930 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/capabilities/vocabulary/vocabulary_recovery.py +1388 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/cli.py +6665 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/common.py +69 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/config.py +210 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/__init__.py +74 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/agent_report.py +242 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/agent_run_audit.py +196 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/agents.py +601 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/curator.py +256 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/effect_payloads.py +519 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/happy_path.py +190 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/link_git.py +110 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/link_runtime_artifact.py +52 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/note_plan.py +75 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/paths.py +114 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/public_report.py +53 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/publish.py +111 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/raw_coverage.py +217 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/related_notes.py +136 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/related_notes_headless.py +153 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/related_notes_runtime.py +395 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/schema_registry.py +637 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/specialist.py +432 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/status.py +62 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/style_rewrite.py +568 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/vocabulary_ingestion.py +223 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/workflow_blockers.py +510 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/workflow_guardrails.py +637 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/workflow_outcomes.py +121 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/contracts/workflow_receipts.py +100 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/__main__.py +4 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/cli.py +275 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/__init__.py +2 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/candidates.py +193 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/cli.py +189 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/gemini.py +220 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/inputs.py +120 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/models.py +34 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/parsing.py +48 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/prompts.py +216 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/quality.py +54 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/reporting.py +24 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/runner.py +433 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/utils.py +39 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/enrich/workflow/vault_guard_bridge.py +17 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_context_packets.py +454 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_decision_projection.py +133 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_effects.py +1260 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_fsm.py +2768 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_machine.py +1588 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_plan.py +306 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_primary_objective.py +316 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_problem.py +153 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_receipt_evidence.py +306 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_states.py +290 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/fix_wiki_user_report.py +342 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/fix_wiki/health.py +6332 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_fsm.py +1119 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_git.py +638 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_machine.py +1106 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_retry_governance.py +374 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_runtime_result.py +485 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/link_triggers.py +183 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/linking.py +2758 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/reference_repair.py +718 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link/related_notes_fsm.py +1855 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link_related/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/link_related/link_related_machine.py +834 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/process_chats/__init__.py +1 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/process_chats/process_chats_fsm.py +1592 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/process_chats/process_chats_machine.py +3097 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/process_chats/process_chats_primary_objective.py +28 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/flows/process_chats/process_chats_runtime_result.py +185 -0
- package/.opencode/mednotes/src/mednotes/domains/wiki/performance.py +97 -0
- package/.opencode/mednotes/src/mednotes/kernel/__init__.py +6 -0
- package/.opencode/mednotes/src/mednotes/kernel/agent_directive.py +336 -0
- package/.opencode/mednotes/src/mednotes/kernel/base.py +51 -0
- package/.opencode/mednotes/src/mednotes/kernel/blockers.py +39 -0
- package/.opencode/mednotes/src/mednotes/kernel/effect_executor.py +55 -0
- package/.opencode/mednotes/src/mednotes/kernel/effect_intent.py +69 -0
- package/.opencode/mednotes/src/mednotes/kernel/effects.py +160 -0
- package/.opencode/mednotes/src/mednotes/kernel/errors.py +38 -0
- package/.opencode/mednotes/src/mednotes/kernel/fsm_event.py +35 -0
- package/.opencode/mednotes/src/mednotes/kernel/fsm_model.py +55 -0
- package/.opencode/mednotes/src/mednotes/kernel/fsm_transition_result.py +75 -0
- package/.opencode/mednotes/src/mednotes/kernel/guardrails.py +188 -0
- package/.opencode/mednotes/src/mednotes/kernel/progress.py +319 -0
- package/.opencode/mednotes/src/mednotes/kernel/public_report.py +346 -0
- package/.opencode/mednotes/src/mednotes/kernel/state_machine.py +164 -0
- package/.opencode/mednotes/src/mednotes/kernel/workflow.py +619 -0
- package/.opencode/mednotes/src/mednotes/platform/__init__.py +5 -0
- package/.opencode/mednotes/src/mednotes/platform/backup_policy.py +382 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/__init__.py +62 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/cli.py +275 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/contracts.py +83 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/core.py +4168 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/integrity.py +989 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/operational_contract.py +2293 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/telemetry.py +875 -0
- package/.opencode/mednotes/src/mednotes/platform/feedback/telemetry_config.py +65 -0
- package/.opencode/mednotes/src/mednotes/platform/opencode_runtime_config.py +182 -0
- package/.opencode/mednotes/src/mednotes/platform/paths/__init__.py +1560 -0
- package/.opencode/mednotes/src/mednotes/platform/secrets.py +89 -0
- package/.opencode/mednotes/src/mednotes/platform/user_config.py +103 -0
- package/.opencode/mednotes/src/mednotes/platform/vault_guard.py +214 -0
- package/.opencode/mednotes/uv.lock +932 -0
- package/.opencode/mednotes.generated.json +395 -0
- package/.opencode/opencode.json +31 -0
- package/.opencode/plugins/mednotes-fsm.mjs +7 -0
- package/.opencode/plugins/mednotes_hook/adapters/antigravity.mjs +169 -0
- package/.opencode/plugins/mednotes_hook/adapters/harness_payload.mjs +103 -0
- package/.opencode/plugins/mednotes_hook/adapters/opencode_plugin.mjs +341 -0
- package/.opencode/plugins/mednotes_hook/adapters/opencode_user_config_sync.mjs +177 -0
- package/.opencode/plugins/mednotes_hook/anki_preflight.mjs +214 -0
- package/.opencode/plugins/mednotes_hook/cli.mjs +143 -0
- package/.opencode/plugins/mednotes_hook/diagnostics.mjs +11 -0
- package/.opencode/plugins/mednotes_hook/domain/agent_directive_core.mjs +160 -0
- package/.opencode/plugins/mednotes_hook/fsm_directive.mjs +1470 -0
- package/.opencode/plugins/mednotes_hook/hook_errors.mjs +120 -0
- package/.opencode/plugins/mednotes_hook/retention.mjs +114 -0
- package/.opencode/plugins/mednotes_hook/runtime.mjs +174 -0
- package/.opencode/plugins/mednotes_hook/telemetry_capture.mjs +511 -0
- package/.opencode/plugins/mednotes_hook/vault_guard.mjs +624 -0
- package/AGENTS.md +57 -0
- package/README.md +194 -0
- package/adapters/antigravity/agents.json +80 -0
- package/adapters/antigravity/templates/med-chat-triager.md +214 -0
- package/adapters/antigravity/templates/med-flashcard-maker.md +72 -0
- package/adapters/antigravity/templates/med-knowledge-architect.md +241 -0
- package/adapters/antigravity/templates/med-link-graph-curator.md +187 -0
- package/adapters/antigravity/templates/med-publish-guard.md +71 -0
- package/adapters/gemini-cli/gemini-extension.json +14 -0
- package/adapters/gemini-cli/package.json +15 -0
- package/adapters/gemini-cli/pyproject.toml +48 -0
- package/bin/mednotes-opencode.mjs +155 -0
- package/contracts/agents.json +116 -0
- package/core/agents/med-chat-triager.md +197 -0
- package/core/agents/med-flashcard-maker.md +56 -0
- package/core/agents/med-knowledge-architect.md +224 -0
- package/core/agents/med-link-graph-curator.md +171 -0
- package/core/agents/med-publish-guard.md +55 -0
- package/core/commands/flashcards.toml +22 -0
- package/core/commands/mednotes/create.toml +22 -0
- package/core/commands/mednotes/enrich.toml +24 -0
- package/core/commands/mednotes/fix-wiki.toml +24 -0
- package/core/commands/mednotes/history.toml +19 -0
- package/core/commands/mednotes/link-body.toml +22 -0
- package/core/commands/mednotes/link-related.toml +24 -0
- package/core/commands/mednotes/link.toml +24 -0
- package/core/commands/mednotes/pdf-library.toml +24 -0
- package/core/commands/mednotes/process-chats.toml +20 -0
- package/core/commands/mednotes/setup.toml +18 -0
- package/core/commands/mednotes/status.toml +24 -0
- package/core/commands/mednotes/telemetry.toml +24 -0
- package/core/commands/report.toml +23 -0
- package/core/skills/THIRD_PARTY_NOTICES.md +45 -0
- package/core/skills/create-medical-flashcards/SKILL.md +113 -0
- package/core/skills/create-medical-note/SKILL.md +90 -0
- package/core/skills/enrich-medical-note/SKILL.md +120 -0
- package/core/skills/fix-medical-wiki/SKILL.md +559 -0
- package/core/skills/link-medical-wiki/SKILL.md +224 -0
- package/core/skills/obsidian-cli/SKILL.md +118 -0
- package/core/skills/obsidian-markdown/SKILL.md +207 -0
- package/core/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
- package/core/skills/obsidian-markdown/references/EMBEDS.md +63 -0
- package/core/skills/obsidian-markdown/references/PROPERTIES.md +61 -0
- package/core/skills/obsidian-ops/SKILL.md +136 -0
- package/core/skills/pdf-library/SKILL.md +45 -0
- package/core/skills/process-medical-chats/SKILL.md +246 -0
- package/core/skills/workflow-report/SKILL.md +100 -0
- package/package.json +45 -0
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
"""Stable programmatic API for deterministic Wiki workflows.
|
|
2
|
+
|
|
3
|
+
Use this module as the public Python import surface for scripts outside the
|
|
4
|
+
``wiki`` package. Use ``wiki/cli.py`` only as the public terminal entrypoint.
|
|
5
|
+
Modules inside ``wiki`` may import each other as package internals.
|
|
6
|
+
"""
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from mednotes.domains.wiki.batch_state import batch_state_from, canonical_json_hash, file_sha256
|
|
10
|
+
from mednotes.domains.wiki.capabilities.atomicity.atomicity import (
|
|
11
|
+
ATOMICITY_SPLIT_BUNDLE_SCHEMA,
|
|
12
|
+
ATOMICITY_SPLIT_PLAN_SCHEMA,
|
|
13
|
+
ATOMICITY_SPLIT_RECEIPT_SCHEMA,
|
|
14
|
+
apply_atomicity_split_bundle,
|
|
15
|
+
build_atomicity_split_plan,
|
|
16
|
+
)
|
|
17
|
+
from mednotes.domains.wiki.capabilities.effects.effect_adapters import (
|
|
18
|
+
LinkWorkflowEffectAdapter as LinkWorkflowEffectAdapter,
|
|
19
|
+
)
|
|
20
|
+
from mednotes.domains.wiki.capabilities.effects.effect_adapters import (
|
|
21
|
+
RelatedNotesEffectAdapter as RelatedNotesEffectAdapter,
|
|
22
|
+
)
|
|
23
|
+
from mednotes.domains.wiki.capabilities.effects.effect_adapters import (
|
|
24
|
+
SpecialistModelEffectAdapter as SpecialistModelEffectAdapter,
|
|
25
|
+
)
|
|
26
|
+
from mednotes.domains.wiki.capabilities.effects.effect_adapters import (
|
|
27
|
+
WaitExternalEffectAdapter as WaitExternalEffectAdapter,
|
|
28
|
+
)
|
|
29
|
+
from mednotes.domains.wiki.capabilities.effects.effect_adapters import (
|
|
30
|
+
WikiSubworkflowEffectAdapter as WikiSubworkflowEffectAdapter,
|
|
31
|
+
)
|
|
32
|
+
from mednotes.domains.wiki.capabilities.graph.coverage import (
|
|
33
|
+
RAW_COVERAGE_SCHEMA,
|
|
34
|
+
validate_raw_coverage,
|
|
35
|
+
validate_raw_coverage_structure,
|
|
36
|
+
)
|
|
37
|
+
from mednotes.domains.wiki.capabilities.graph.graph import main as graph_main
|
|
38
|
+
from mednotes.domains.wiki.capabilities.graph.graph_fixes import GRAPH_FIX_SCHEMA, fix_wiki_graph
|
|
39
|
+
from mednotes.domains.wiki.capabilities.hygiene.hygiene import (
|
|
40
|
+
ROOT_HYGIENE_AUDIT_SCHEMA,
|
|
41
|
+
WIKI_HYGIENE_CLEANUP_SCHEMA,
|
|
42
|
+
WIKI_HYGIENE_SCHEMA,
|
|
43
|
+
audit_user_root_hygiene,
|
|
44
|
+
cleanup_wiki_hygiene,
|
|
45
|
+
collect_wiki_hygiene,
|
|
46
|
+
)
|
|
47
|
+
from mednotes.domains.wiki.capabilities.markdown.markdown_node_runtime import (
|
|
48
|
+
MarkdownNodeRuntimeUnavailable,
|
|
49
|
+
ensure_markdown_node_runtime,
|
|
50
|
+
markdown_node_runtime_status,
|
|
51
|
+
)
|
|
52
|
+
from mednotes.domains.wiki.capabilities.markdown.markdown_query import (
|
|
53
|
+
MARKDOWN_QUERY_BLOCKED_REASON,
|
|
54
|
+
MARKDOWN_QUERY_NEXT_ACTION,
|
|
55
|
+
MarkdownDbChatMetadataProvider,
|
|
56
|
+
MarkdownQueryUnavailable,
|
|
57
|
+
)
|
|
58
|
+
from mednotes.domains.wiki.capabilities.notes.artifacts import (
|
|
59
|
+
ARTIFACT_HTML_MANIFEST_SCHEMA,
|
|
60
|
+
ARTIFACT_HTML_VALIDATION_SCHEMA,
|
|
61
|
+
chat_id_from_raw,
|
|
62
|
+
discover_artifact_manifests,
|
|
63
|
+
required_artifacts_for_raw,
|
|
64
|
+
validate_artifact_batch,
|
|
65
|
+
validate_note_artifacts,
|
|
66
|
+
)
|
|
67
|
+
from mednotes.domains.wiki.capabilities.notes.canonical_merge import CANONICAL_MERGE_APPLY_SCHEMA, apply_canonical_merge
|
|
68
|
+
from mednotes.domains.wiki.capabilities.notes.note_merge import apply_note_merge
|
|
69
|
+
from mednotes.domains.wiki.capabilities.notes.note_plan import (
|
|
70
|
+
ATTACH_TO_PLANNED_MEANING_ACTION,
|
|
71
|
+
NEEDS_CONTEXT_ACTION,
|
|
72
|
+
PLANNED_MEANING_ACTION,
|
|
73
|
+
TRIAGE_NOTE_PLAN_SCHEMA,
|
|
74
|
+
TRIAGE_NOTE_PLAN_V2_SCHEMA,
|
|
75
|
+
load_triage_note_plan,
|
|
76
|
+
normalize_triage_note_plan_v2,
|
|
77
|
+
note_plan_hash,
|
|
78
|
+
parse_triage_note_plan,
|
|
79
|
+
serialize_triage_note_plan,
|
|
80
|
+
)
|
|
81
|
+
from mednotes.domains.wiki.capabilities.notes.raw_chats import (
|
|
82
|
+
atomic_write_text,
|
|
83
|
+
covered_raw_chat_index,
|
|
84
|
+
create_backup,
|
|
85
|
+
list_by_status,
|
|
86
|
+
list_raw_files,
|
|
87
|
+
mutate_raw_frontmatter,
|
|
88
|
+
parse_frontmatter,
|
|
89
|
+
prune_backup_files,
|
|
90
|
+
raw_summary,
|
|
91
|
+
read_note_meta,
|
|
92
|
+
split_frontmatter,
|
|
93
|
+
update_frontmatter,
|
|
94
|
+
)
|
|
95
|
+
from mednotes.domains.wiki.capabilities.publish.publish import (
|
|
96
|
+
plan_publish_batch,
|
|
97
|
+
publish_batch,
|
|
98
|
+
resolve_collision,
|
|
99
|
+
stage_note,
|
|
100
|
+
taxonomy_new_leaf_authorization_for_manifest,
|
|
101
|
+
taxonomy_new_leaf_authorization_from_plan,
|
|
102
|
+
write_new_note,
|
|
103
|
+
)
|
|
104
|
+
from mednotes.domains.wiki.capabilities.publish.publish import (
|
|
105
|
+
publish_batch_operation_result as publish_batch_operation_result,
|
|
106
|
+
)
|
|
107
|
+
from mednotes.domains.wiki.capabilities.publish.publish_receipts import (
|
|
108
|
+
PUBLISH_DRY_RUN_RECEIPTS_SCHEMA,
|
|
109
|
+
clear_publish_dry_run,
|
|
110
|
+
publish_receipts_path,
|
|
111
|
+
record_publish_dry_run,
|
|
112
|
+
require_publish_dry_run,
|
|
113
|
+
)
|
|
114
|
+
from mednotes.domains.wiki.capabilities.publish.publish_recovery import (
|
|
115
|
+
PUBLISH_STATE_DIAGNOSIS_SCHEMA,
|
|
116
|
+
diagnose_publish_state,
|
|
117
|
+
)
|
|
118
|
+
from mednotes.domains.wiki.capabilities.quality.agent_behavior_corpus import (
|
|
119
|
+
AGENT_BEHAVIOR_CASE_DRAFT_REPORT_SCHEMA,
|
|
120
|
+
AGENT_BEHAVIOR_CASE_DRAFT_SCHEMA,
|
|
121
|
+
AGENT_BEHAVIOR_CONTRACT_EVAL_SCHEMA,
|
|
122
|
+
AGENT_BEHAVIOR_CORPUS_REPORT_SCHEMA,
|
|
123
|
+
AGENT_BEHAVIOR_CORPUS_SCHEMA,
|
|
124
|
+
agent_behavior_baseline_paths,
|
|
125
|
+
evaluate_agent_behavior_corpus,
|
|
126
|
+
suggest_agent_behavior_cases_from_evidence,
|
|
127
|
+
suggest_agent_behavior_cases_from_telemetry,
|
|
128
|
+
validate_agent_behavior_report_path,
|
|
129
|
+
)
|
|
130
|
+
from mednotes.domains.wiki.capabilities.quality.agent_report_validation import validate_agent_run_report
|
|
131
|
+
from mednotes.domains.wiki.capabilities.quality.agent_run_audit import audit_agent_transcript
|
|
132
|
+
from mednotes.domains.wiki.capabilities.quality.architect_prompt_eval import (
|
|
133
|
+
ARCHITECT_PROMPT_EVAL_SCHEMA,
|
|
134
|
+
evaluate_architect_prompt_outputs,
|
|
135
|
+
)
|
|
136
|
+
from mednotes.domains.wiki.capabilities.quality.body_linker_eval import (
|
|
137
|
+
BODY_LINKER_EVAL_REPORT_SCHEMA,
|
|
138
|
+
BODY_LINKER_EVAL_SUITE_SCHEMA,
|
|
139
|
+
evaluate_body_linker_cases,
|
|
140
|
+
)
|
|
141
|
+
from mednotes.domains.wiki.capabilities.quality.curator_output_validation import validate_curator_batch_outputs
|
|
142
|
+
from mednotes.domains.wiki.capabilities.quality.curator_prompt_eval import (
|
|
143
|
+
CURATOR_PROMPT_EVAL_SCHEMA,
|
|
144
|
+
CURATOR_PROMPT_EXPECTATIONS_SCHEMA,
|
|
145
|
+
CURATOR_PROMPT_GOLDEN_EXPECTATIONS_SCHEMA,
|
|
146
|
+
build_curator_prompt_expectations_template,
|
|
147
|
+
canonical_payload_hash,
|
|
148
|
+
evaluate_curator_prompt_outputs,
|
|
149
|
+
load_curator_prompt_expectations,
|
|
150
|
+
promote_curator_prompt_baseline,
|
|
151
|
+
)
|
|
152
|
+
from mednotes.domains.wiki.capabilities.quality.triager_prompt_eval import (
|
|
153
|
+
TRIAGER_EVAL_RETRY_NEXT_ACTION,
|
|
154
|
+
TRIAGER_PROMPT_EVAL_SCHEMA,
|
|
155
|
+
TRIAGER_PROMPT_EXPECTATIONS_SCHEMA,
|
|
156
|
+
evaluate_triager_prompt_output,
|
|
157
|
+
load_triager_prompt_expectations,
|
|
158
|
+
validate_triager_prompt_eval_for_note_plan,
|
|
159
|
+
)
|
|
160
|
+
from mednotes.domains.wiki.capabilities.related_notes.related_notes import (
|
|
161
|
+
DEFAULT_MAX_LINKS as DEFAULT_RELATED_NOTES_MAX_LINKS,
|
|
162
|
+
)
|
|
163
|
+
from mednotes.domains.wiki.capabilities.related_notes.related_notes import (
|
|
164
|
+
DEFAULT_MIN_SCORE as DEFAULT_RELATED_NOTES_MIN_SCORE,
|
|
165
|
+
)
|
|
166
|
+
from mednotes.domains.wiki.capabilities.related_notes.related_notes import (
|
|
167
|
+
RELATED_NOTES_EXPORT_SCHEMA,
|
|
168
|
+
RELATED_NOTES_SYNC_RECEIPT_SCHEMA,
|
|
169
|
+
RELATED_NOTES_SYNC_SCHEMA,
|
|
170
|
+
recover_related_notes_export,
|
|
171
|
+
sync_related_notes,
|
|
172
|
+
)
|
|
173
|
+
from mednotes.domains.wiki.capabilities.related_notes.related_notes import (
|
|
174
|
+
recover_related_notes_export_operation_result as recover_related_notes_export_operation_result,
|
|
175
|
+
)
|
|
176
|
+
from mednotes.domains.wiki.capabilities.related_notes.related_notes import (
|
|
177
|
+
sync_related_notes_operation_result as sync_related_notes_operation_result,
|
|
178
|
+
)
|
|
179
|
+
from mednotes.domains.wiki.capabilities.specialist.specialist_task_runner import (
|
|
180
|
+
finalize_agy_specialist_task,
|
|
181
|
+
finalize_opencode_architect_task,
|
|
182
|
+
finalize_opencode_specialist_task,
|
|
183
|
+
)
|
|
184
|
+
from mednotes.domains.wiki.capabilities.style.style import (
|
|
185
|
+
apply_style_rewrite,
|
|
186
|
+
apply_style_rewrite_from_manifest,
|
|
187
|
+
collect_style_rewrite_outputs,
|
|
188
|
+
finalize_collect_apply_style_rewrite,
|
|
189
|
+
finalize_style_rewrite_apply_receipt,
|
|
190
|
+
finalize_style_rewrite_atomic_apply_result,
|
|
191
|
+
finalize_style_rewrite_output,
|
|
192
|
+
fix_note_style_file,
|
|
193
|
+
fix_wiki_style,
|
|
194
|
+
style_rewrite_manifest_required_receipt,
|
|
195
|
+
validate_note_style_file,
|
|
196
|
+
validate_wiki_note_contract,
|
|
197
|
+
validate_wiki_style,
|
|
198
|
+
)
|
|
199
|
+
from mednotes.domains.wiki.capabilities.subagents.agents import CANONICAL_MERGE_PLAN_SCHEMA, plan_subagents
|
|
200
|
+
from mednotes.domains.wiki.capabilities.vocabulary.taxonomy import (
|
|
201
|
+
CANONICAL_AREA_ALIASES,
|
|
202
|
+
CANONICAL_TAXONOMY,
|
|
203
|
+
CANONICAL_TAXONOMY_ALIASES,
|
|
204
|
+
CANONICAL_TAXONOMY_POLICY,
|
|
205
|
+
TAXONOMY_STATUS_SCHEMA,
|
|
206
|
+
TaxonomyAreaPolicy,
|
|
207
|
+
TaxonomyDecisionRequired,
|
|
208
|
+
TaxonomyResolution,
|
|
209
|
+
TaxonomySpecialtyPolicy,
|
|
210
|
+
_write_json_atomic,
|
|
211
|
+
apply_taxonomy_migration,
|
|
212
|
+
canonical_taxonomy_invariants,
|
|
213
|
+
canonical_taxonomy_tree,
|
|
214
|
+
normalize_taxonomy,
|
|
215
|
+
render_taxonomy_status_markdown,
|
|
216
|
+
resolve_target_for_note,
|
|
217
|
+
resolve_taxonomy,
|
|
218
|
+
rollback_taxonomy_migration,
|
|
219
|
+
safe_title,
|
|
220
|
+
target_for_note,
|
|
221
|
+
taxonomy_audit,
|
|
222
|
+
taxonomy_migration_plan,
|
|
223
|
+
taxonomy_status,
|
|
224
|
+
taxonomy_tree,
|
|
225
|
+
)
|
|
226
|
+
from mednotes.domains.wiki.capabilities.vocabulary.vocabulary_curator_batch import (
|
|
227
|
+
CURATOR_PROMPT_IDENTITY_SCHEMA,
|
|
228
|
+
VOCABULARY_CURATOR_BATCH_OUTPUT_MANIFEST_SCHEMA,
|
|
229
|
+
VOCABULARY_CURATOR_BATCH_PLAN_SCHEMA,
|
|
230
|
+
VOCABULARY_CURATOR_BATCH_RECEIPT_SCHEMA,
|
|
231
|
+
agent_output_ignored_notice,
|
|
232
|
+
apply_curator_batch_outputs,
|
|
233
|
+
build_curator_prompt_identity,
|
|
234
|
+
build_vocabulary_curator_batch_plan,
|
|
235
|
+
collect_curator_outputs,
|
|
236
|
+
curator_plan_hash,
|
|
237
|
+
)
|
|
238
|
+
from mednotes.domains.wiki.capabilities.vocabulary.vocabulary_ingestion import (
|
|
239
|
+
INGESTION_RECEIPT_SCHEMA,
|
|
240
|
+
INGESTION_SCHEMA,
|
|
241
|
+
apply_semantic_ingestion,
|
|
242
|
+
)
|
|
243
|
+
from mednotes.domains.wiki.capabilities.vocabulary.vocabulary_recovery import (
|
|
244
|
+
VOCABULARY_RECOVERY_PLAN_SCHEMA,
|
|
245
|
+
VOCABULARY_RECOVERY_RECEIPT_SCHEMA,
|
|
246
|
+
VOCABULARY_STATUS_SCHEMA,
|
|
247
|
+
apply_vocabulary_recovery_plan,
|
|
248
|
+
build_vocabulary_recovery_plan,
|
|
249
|
+
diagnose_vocabulary_status,
|
|
250
|
+
vocabulary_status,
|
|
251
|
+
)
|
|
252
|
+
from mednotes.domains.wiki.common import (
|
|
253
|
+
BLOCKER_RESOLUTION_SCHEMA,
|
|
254
|
+
EXIT_IO,
|
|
255
|
+
EXIT_LINKER,
|
|
256
|
+
EXIT_MISSING,
|
|
257
|
+
EXIT_OK,
|
|
258
|
+
EXIT_USAGE,
|
|
259
|
+
EXIT_VALIDATION,
|
|
260
|
+
MIGRATION_PLAN_SCHEMA,
|
|
261
|
+
MIGRATION_RECEIPT_SCHEMA,
|
|
262
|
+
NOTE_MERGE_APPLY_SCHEMA,
|
|
263
|
+
NOTE_MERGE_PLAN_SCHEMA,
|
|
264
|
+
SUBAGENT_PLAN_SCHEMA,
|
|
265
|
+
WIKI_CLI_RELPATH,
|
|
266
|
+
WIKI_HEALTH_FIX_SCHEMA,
|
|
267
|
+
CollisionError,
|
|
268
|
+
FileWriteError,
|
|
269
|
+
MedOpsError,
|
|
270
|
+
MissingPathError,
|
|
271
|
+
ValidationError,
|
|
272
|
+
_json,
|
|
273
|
+
_now_iso,
|
|
274
|
+
wiki_cli_relative_command,
|
|
275
|
+
)
|
|
276
|
+
from mednotes.domains.wiki.config import (
|
|
277
|
+
DEFAULT_CATALOG_PATH,
|
|
278
|
+
DEFAULT_RAW_DIR,
|
|
279
|
+
DEFAULT_VOCABULARY_DB_PATH,
|
|
280
|
+
DEFAULT_WIKI_DIR,
|
|
281
|
+
MedConfig,
|
|
282
|
+
WikiPathResolutionError,
|
|
283
|
+
_path,
|
|
284
|
+
resolve_config,
|
|
285
|
+
validate_config,
|
|
286
|
+
)
|
|
287
|
+
from mednotes.domains.wiki.contracts.agent_run_audit import AuditWorkflow as AuditWorkflow
|
|
288
|
+
from mednotes.domains.wiki.contracts.agents import NextSpecialistTask as NextSpecialistTask
|
|
289
|
+
from mednotes.domains.wiki.contracts.agents import PlanOutputReceipt as PlanOutputReceipt
|
|
290
|
+
from mednotes.domains.wiki.contracts.agents import SpecialistContinuationWorkItem as SpecialistContinuationWorkItem
|
|
291
|
+
from mednotes.domains.wiki.contracts.agents import SubagentBatchPlan as SubagentBatchPlan
|
|
292
|
+
from mednotes.domains.wiki.contracts.effect_payloads import LinkWorkflowRunEffectPayload as LinkWorkflowRunEffectPayload
|
|
293
|
+
from mednotes.domains.wiki.contracts.effect_payloads import (
|
|
294
|
+
RelatedNotesExportEffectPayload as RelatedNotesExportEffectPayload,
|
|
295
|
+
)
|
|
296
|
+
from mednotes.domains.wiki.contracts.happy_path import HappyPathRunMetrics as HappyPathRunMetrics
|
|
297
|
+
from mednotes.domains.wiki.contracts.happy_path import happy_path_round_metrics as happy_path_round_metrics
|
|
298
|
+
from mednotes.domains.wiki.contracts.paths import WikiPathResolutionPayload as WikiPathResolutionPayload
|
|
299
|
+
from mednotes.domains.wiki.contracts.related_notes_runtime import LinkRelatedSyncResult
|
|
300
|
+
from mednotes.domains.wiki.contracts.specialist import SpecialistNextApplyStep as SpecialistNextApplyStep
|
|
301
|
+
from mednotes.domains.wiki.contracts.status import StatusSnapshot as StatusSnapshot
|
|
302
|
+
from mednotes.domains.wiki.contracts.style_rewrite import (
|
|
303
|
+
StyleRewriteAtomicApplyAgentStdout as StyleRewriteAtomicApplyAgentStdout,
|
|
304
|
+
)
|
|
305
|
+
from mednotes.domains.wiki.contracts.style_rewrite import (
|
|
306
|
+
StyleRewriteAtomicApplyResult as StyleRewriteAtomicApplyResult,
|
|
307
|
+
)
|
|
308
|
+
from mednotes.domains.wiki.contracts.workflow_guardrails import (
|
|
309
|
+
LINK_REQUIRED_INPUTS,
|
|
310
|
+
PUBLISH_REQUIRED_INPUTS,
|
|
311
|
+
SUBAGENT_OUTPUT_CONTRACT_BLOCKED_REASON,
|
|
312
|
+
annotate_payload,
|
|
313
|
+
error_context,
|
|
314
|
+
harden_operational_payload,
|
|
315
|
+
require_subagent_output_contract,
|
|
316
|
+
subagent_output_contract_errors,
|
|
317
|
+
)
|
|
318
|
+
from mednotes.domains.wiki.contracts.workflow_outcomes import attach_human_decision_packet
|
|
319
|
+
from mednotes.domains.wiki.flows.fix_wiki.fix_wiki_fsm import (
|
|
320
|
+
build_fix_wiki_fsm_result,
|
|
321
|
+
fix_wiki_cli_exit_code,
|
|
322
|
+
fix_wiki_fsm_facts_from_runtime,
|
|
323
|
+
)
|
|
324
|
+
from mednotes.domains.wiki.flows.fix_wiki.health import fix_wiki_agent_stdout_report as fix_wiki_agent_stdout_report
|
|
325
|
+
from mednotes.domains.wiki.flows.fix_wiki.health import fix_wiki_health
|
|
326
|
+
from mednotes.domains.wiki.flows.link.link_fsm import (
|
|
327
|
+
build_link_fsm_result,
|
|
328
|
+
link_cli_exit_code,
|
|
329
|
+
)
|
|
330
|
+
from mednotes.domains.wiki.flows.link.link_runtime_result import (
|
|
331
|
+
LinkerRunResult,
|
|
332
|
+
link_fsm_facts_from_linker_result,
|
|
333
|
+
)
|
|
334
|
+
from mednotes.domains.wiki.flows.link.link_triggers import LINK_TRIGGER_CONTEXT_SCHEMA, write_trigger_context
|
|
335
|
+
from mednotes.domains.wiki.flows.link.linking import (
|
|
336
|
+
LINK_DIAGNOSIS_SCHEMA,
|
|
337
|
+
LINK_RUN_RECEIPT_SCHEMA,
|
|
338
|
+
LINK_RUN_SCHEMA,
|
|
339
|
+
apply_link_diagnosis,
|
|
340
|
+
diagnose_links,
|
|
341
|
+
graph_audit,
|
|
342
|
+
run_linker,
|
|
343
|
+
)
|
|
344
|
+
from mednotes.domains.wiki.flows.link.related_notes_fsm import (
|
|
345
|
+
LINK_RELATED_SCHEMA,
|
|
346
|
+
link_related_cli_exit_code,
|
|
347
|
+
link_related_fsm_payload_from_sync_result,
|
|
348
|
+
)
|
|
349
|
+
from mednotes.domains.wiki.flows.process_chats.process_chats_fsm import (
|
|
350
|
+
PROCESS_CHATS_SCHEMA,
|
|
351
|
+
ProcessChatsFsmFacts,
|
|
352
|
+
ProcessChatsLinkerRun,
|
|
353
|
+
ProcessChatsOperationalSummary,
|
|
354
|
+
ProcessChatsPublishOperationResult,
|
|
355
|
+
build_process_chats_fsm_result,
|
|
356
|
+
process_chats_cli_exit_code,
|
|
357
|
+
)
|
|
358
|
+
from mednotes.domains.wiki.flows.process_chats.process_chats_machine import (
|
|
359
|
+
NoPendingRawChatsEvent,
|
|
360
|
+
NoTriagedRawChatsEvent,
|
|
361
|
+
ProcessChatsErrorContext,
|
|
362
|
+
ProcessChatsPublishRuntimeObservation,
|
|
363
|
+
ProcessChatsState,
|
|
364
|
+
RollbackFailureRecordedEvent,
|
|
365
|
+
TriagedRawChatsAvailableEvent,
|
|
366
|
+
)
|
|
367
|
+
from mednotes.domains.wiki.flows.process_chats.process_chats_runtime_result import (
|
|
368
|
+
process_chats_fsm_payload_from_publish_result,
|
|
369
|
+
)
|
|
370
|
+
from mednotes.domains.wiki.performance import (
|
|
371
|
+
cooperative_cpu_yield_scope,
|
|
372
|
+
cooperative_cpu_yield_settings_from_env,
|
|
373
|
+
)
|
|
374
|
+
from mednotes.kernel.agent_directive import AgentDirective as AgentDirective
|
|
375
|
+
from mednotes.kernel.base import JsonArrayAdapter, JsonObject, JsonObjectAdapter, JsonValue
|
|
376
|
+
from mednotes.kernel.effect_executor import WorkflowEffectExecutor as WorkflowEffectExecutor
|
|
377
|
+
from mednotes.kernel.effects import WorkflowEffect as WorkflowEffect
|
|
378
|
+
from mednotes.kernel.effects import WorkflowEffectKind as WorkflowEffectKind
|
|
379
|
+
from mednotes.kernel.effects import WorkflowEffectResult as WorkflowEffectResult
|
|
380
|
+
from mednotes.kernel.effects import WorkflowEffectStatus as WorkflowEffectStatus
|
|
381
|
+
from mednotes.kernel.progress import WorkflowProgressEvent as WorkflowProgressEvent
|
|
382
|
+
from mednotes.kernel.progress import WorkflowProgressEventType as WorkflowProgressEventType
|
|
383
|
+
from mednotes.kernel.progress import WorkflowProgressStatus as WorkflowProgressStatus
|
|
384
|
+
from mednotes.kernel.progress import build_progress_view_model as build_progress_view_model
|
|
385
|
+
from mednotes.kernel.progress import fold_progress_events as fold_progress_events
|
|
386
|
+
from mednotes.kernel.workflow import VersionControlSafety as VersionControlSafety
|
|
387
|
+
from mednotes.platform.backup_policy import (
|
|
388
|
+
BACKUP_CLEANUP_SCHEMA,
|
|
389
|
+
DEFAULT_BACKUP_POLICY,
|
|
390
|
+
BackupPolicy,
|
|
391
|
+
archive_legacy_backups,
|
|
392
|
+
collect_legacy_backup_candidates,
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
__all__ = [
|
|
396
|
+
"CANONICAL_TAXONOMY",
|
|
397
|
+
"CANONICAL_AREA_ALIASES",
|
|
398
|
+
"CANONICAL_TAXONOMY_ALIASES",
|
|
399
|
+
"CANONICAL_TAXONOMY_POLICY",
|
|
400
|
+
"DEFAULT_CATALOG_PATH",
|
|
401
|
+
"DEFAULT_RAW_DIR",
|
|
402
|
+
"DEFAULT_VOCABULARY_DB_PATH",
|
|
403
|
+
"DEFAULT_WIKI_DIR",
|
|
404
|
+
"EXIT_IO",
|
|
405
|
+
"EXIT_LINKER",
|
|
406
|
+
"EXIT_MISSING",
|
|
407
|
+
"EXIT_OK",
|
|
408
|
+
"EXIT_USAGE",
|
|
409
|
+
"EXIT_VALIDATION",
|
|
410
|
+
"LINK_REQUIRED_INPUTS",
|
|
411
|
+
"PUBLISH_REQUIRED_INPUTS",
|
|
412
|
+
"SUBAGENT_OUTPUT_CONTRACT_BLOCKED_REASON",
|
|
413
|
+
"harden_operational_payload",
|
|
414
|
+
"NOTE_MERGE_APPLY_SCHEMA",
|
|
415
|
+
"NOTE_MERGE_PLAN_SCHEMA",
|
|
416
|
+
"MIGRATION_PLAN_SCHEMA",
|
|
417
|
+
"MIGRATION_RECEIPT_SCHEMA",
|
|
418
|
+
"PUBLISH_DRY_RUN_RECEIPTS_SCHEMA",
|
|
419
|
+
"PUBLISH_STATE_DIAGNOSIS_SCHEMA",
|
|
420
|
+
"PROCESS_CHATS_SCHEMA",
|
|
421
|
+
"ProcessChatsLinkerRun",
|
|
422
|
+
"ProcessChatsPublishRuntimeObservation",
|
|
423
|
+
"ProcessChatsPublishOperationResult",
|
|
424
|
+
"NextSpecialistTask",
|
|
425
|
+
"PlanOutputReceipt",
|
|
426
|
+
"SpecialistNextApplyStep",
|
|
427
|
+
"StatusSnapshot",
|
|
428
|
+
"StyleRewriteAtomicApplyResult",
|
|
429
|
+
"StyleRewriteAtomicApplyAgentStdout",
|
|
430
|
+
"SubagentBatchPlan",
|
|
431
|
+
"WikiPathResolutionPayload",
|
|
432
|
+
"RAW_COVERAGE_SCHEMA",
|
|
433
|
+
"RELATED_NOTES_EXPORT_SCHEMA",
|
|
434
|
+
"LINK_DIAGNOSIS_SCHEMA",
|
|
435
|
+
"LINK_RUN_SCHEMA",
|
|
436
|
+
"LINK_RUN_RECEIPT_SCHEMA",
|
|
437
|
+
"LINK_TRIGGER_CONTEXT_SCHEMA",
|
|
438
|
+
"LinkerRunResult",
|
|
439
|
+
"build_link_fsm_result",
|
|
440
|
+
"link_cli_exit_code",
|
|
441
|
+
"link_fsm_facts_from_linker_result",
|
|
442
|
+
"process_chats_cli_exit_code",
|
|
443
|
+
"process_chats_fsm_payload_from_publish_result",
|
|
444
|
+
"link_related_cli_exit_code",
|
|
445
|
+
"link_related_fsm_payload_from_sync_result",
|
|
446
|
+
"MARKDOWN_QUERY_BLOCKED_REASON",
|
|
447
|
+
"MARKDOWN_QUERY_NEXT_ACTION",
|
|
448
|
+
"RELATED_NOTES_SYNC_RECEIPT_SCHEMA",
|
|
449
|
+
"RELATED_NOTES_SYNC_SCHEMA",
|
|
450
|
+
"LINK_RELATED_SCHEMA",
|
|
451
|
+
"LinkRelatedSyncResult",
|
|
452
|
+
"ARTIFACT_HTML_MANIFEST_SCHEMA",
|
|
453
|
+
"ARTIFACT_HTML_VALIDATION_SCHEMA",
|
|
454
|
+
"ATOMICITY_SPLIT_BUNDLE_SCHEMA",
|
|
455
|
+
"ATOMICITY_SPLIT_PLAN_SCHEMA",
|
|
456
|
+
"ATOMICITY_SPLIT_RECEIPT_SCHEMA",
|
|
457
|
+
"BODY_LINKER_EVAL_REPORT_SCHEMA",
|
|
458
|
+
"BODY_LINKER_EVAL_SUITE_SCHEMA",
|
|
459
|
+
"ATTACH_TO_PLANNED_MEANING_ACTION",
|
|
460
|
+
"NEEDS_CONTEXT_ACTION",
|
|
461
|
+
"PLANNED_MEANING_ACTION",
|
|
462
|
+
"TRIAGE_NOTE_PLAN_SCHEMA",
|
|
463
|
+
"TRIAGE_NOTE_PLAN_V2_SCHEMA",
|
|
464
|
+
"TRIAGER_PROMPT_EVAL_SCHEMA",
|
|
465
|
+
"TRIAGER_PROMPT_EXPECTATIONS_SCHEMA",
|
|
466
|
+
"SUBAGENT_PLAN_SCHEMA",
|
|
467
|
+
"TAXONOMY_STATUS_SCHEMA",
|
|
468
|
+
"BLOCKER_RESOLUTION_SCHEMA",
|
|
469
|
+
"CANONICAL_MERGE_PLAN_SCHEMA",
|
|
470
|
+
"CANONICAL_MERGE_APPLY_SCHEMA",
|
|
471
|
+
"WIKI_CLI_RELPATH",
|
|
472
|
+
"WIKI_HEALTH_FIX_SCHEMA",
|
|
473
|
+
"WIKI_HYGIENE_CLEANUP_SCHEMA",
|
|
474
|
+
"WIKI_HYGIENE_SCHEMA",
|
|
475
|
+
"ROOT_HYGIENE_AUDIT_SCHEMA",
|
|
476
|
+
"GRAPH_FIX_SCHEMA",
|
|
477
|
+
"INGESTION_RECEIPT_SCHEMA",
|
|
478
|
+
"INGESTION_SCHEMA",
|
|
479
|
+
"VOCABULARY_RECOVERY_PLAN_SCHEMA",
|
|
480
|
+
"VOCABULARY_RECOVERY_RECEIPT_SCHEMA",
|
|
481
|
+
"VOCABULARY_STATUS_SCHEMA",
|
|
482
|
+
"VOCABULARY_CURATOR_BATCH_OUTPUT_MANIFEST_SCHEMA",
|
|
483
|
+
"VOCABULARY_CURATOR_BATCH_PLAN_SCHEMA",
|
|
484
|
+
"VOCABULARY_CURATOR_BATCH_RECEIPT_SCHEMA",
|
|
485
|
+
"ARCHITECT_PROMPT_EVAL_SCHEMA",
|
|
486
|
+
"CURATOR_PROMPT_IDENTITY_SCHEMA",
|
|
487
|
+
"CURATOR_PROMPT_EVAL_SCHEMA",
|
|
488
|
+
"CURATOR_PROMPT_EXPECTATIONS_SCHEMA",
|
|
489
|
+
"CURATOR_PROMPT_GOLDEN_EXPECTATIONS_SCHEMA",
|
|
490
|
+
"AGENT_BEHAVIOR_CORPUS_SCHEMA",
|
|
491
|
+
"AGENT_BEHAVIOR_CORPUS_REPORT_SCHEMA",
|
|
492
|
+
"AGENT_BEHAVIOR_CONTRACT_EVAL_SCHEMA",
|
|
493
|
+
"AGENT_BEHAVIOR_CASE_DRAFT_SCHEMA",
|
|
494
|
+
"AGENT_BEHAVIOR_CASE_DRAFT_REPORT_SCHEMA",
|
|
495
|
+
"BACKUP_CLEANUP_SCHEMA",
|
|
496
|
+
"BackupPolicy",
|
|
497
|
+
"DEFAULT_BACKUP_POLICY",
|
|
498
|
+
"DEFAULT_RELATED_NOTES_MAX_LINKS",
|
|
499
|
+
"DEFAULT_RELATED_NOTES_MIN_SCORE",
|
|
500
|
+
"archive_legacy_backups",
|
|
501
|
+
"annotate_payload",
|
|
502
|
+
"attach_human_decision_packet",
|
|
503
|
+
"apply_link_diagnosis",
|
|
504
|
+
"audit_agent_transcript",
|
|
505
|
+
"audit_user_root_hygiene",
|
|
506
|
+
"collect_legacy_backup_candidates",
|
|
507
|
+
"CollisionError",
|
|
508
|
+
"FileWriteError",
|
|
509
|
+
"MedConfig",
|
|
510
|
+
"MedOpsError",
|
|
511
|
+
"MissingPathError",
|
|
512
|
+
"MarkdownDbChatMetadataProvider",
|
|
513
|
+
"MarkdownNodeRuntimeUnavailable",
|
|
514
|
+
"MarkdownQueryUnavailable",
|
|
515
|
+
"TaxonomyAreaPolicy",
|
|
516
|
+
"TaxonomyResolution",
|
|
517
|
+
"TaxonomyDecisionRequired",
|
|
518
|
+
"TaxonomySpecialtyPolicy",
|
|
519
|
+
"ValidationError",
|
|
520
|
+
"VersionControlSafety",
|
|
521
|
+
"JsonArrayAdapter",
|
|
522
|
+
"JsonObject",
|
|
523
|
+
"JsonObjectAdapter",
|
|
524
|
+
"JsonValue",
|
|
525
|
+
"WikiPathResolutionError",
|
|
526
|
+
"_json",
|
|
527
|
+
"_now_iso",
|
|
528
|
+
"wiki_cli_relative_command",
|
|
529
|
+
"_path",
|
|
530
|
+
"_write_json_atomic",
|
|
531
|
+
"apply_curator_batch_outputs",
|
|
532
|
+
"agent_output_ignored_notice",
|
|
533
|
+
"apply_vocabulary_recovery_plan",
|
|
534
|
+
"apply_atomicity_split_bundle",
|
|
535
|
+
"apply_canonical_merge",
|
|
536
|
+
"apply_note_merge",
|
|
537
|
+
"apply_style_rewrite_from_manifest",
|
|
538
|
+
"build_atomicity_split_plan",
|
|
539
|
+
"apply_semantic_ingestion",
|
|
540
|
+
"apply_style_rewrite",
|
|
541
|
+
"apply_taxonomy_migration",
|
|
542
|
+
"apply_vocabulary_recovery_plan",
|
|
543
|
+
"atomic_write_text",
|
|
544
|
+
"batch_state_from",
|
|
545
|
+
"build_vocabulary_curator_batch_plan",
|
|
546
|
+
"build_curator_prompt_identity",
|
|
547
|
+
"collect_curator_outputs",
|
|
548
|
+
"collect_style_rewrite_outputs",
|
|
549
|
+
"cooperative_cpu_yield_scope",
|
|
550
|
+
"cooperative_cpu_yield_settings_from_env",
|
|
551
|
+
"finalize_collect_apply_style_rewrite",
|
|
552
|
+
"finalize_style_rewrite_atomic_apply_result",
|
|
553
|
+
"finalize_style_rewrite_apply_receipt",
|
|
554
|
+
"finalize_style_rewrite_output",
|
|
555
|
+
"finalize_agy_specialist_task",
|
|
556
|
+
"finalize_opencode_architect_task",
|
|
557
|
+
"finalize_opencode_specialist_task",
|
|
558
|
+
"curator_plan_hash",
|
|
559
|
+
"build_curator_prompt_expectations_template",
|
|
560
|
+
"build_vocabulary_recovery_plan",
|
|
561
|
+
"canonical_taxonomy_invariants",
|
|
562
|
+
"canonical_taxonomy_tree",
|
|
563
|
+
"canonical_json_hash",
|
|
564
|
+
"canonical_payload_hash",
|
|
565
|
+
"chat_id_from_raw",
|
|
566
|
+
"clear_publish_dry_run",
|
|
567
|
+
"covered_raw_chat_index",
|
|
568
|
+
"cleanup_wiki_hygiene",
|
|
569
|
+
"collect_wiki_hygiene",
|
|
570
|
+
"create_backup",
|
|
571
|
+
"discover_artifact_manifests",
|
|
572
|
+
"diagnose_publish_state",
|
|
573
|
+
"diagnose_vocabulary_status",
|
|
574
|
+
"diagnose_links",
|
|
575
|
+
"error_context",
|
|
576
|
+
"evaluate_body_linker_cases",
|
|
577
|
+
"evaluate_architect_prompt_outputs",
|
|
578
|
+
"evaluate_curator_prompt_outputs",
|
|
579
|
+
"evaluate_triager_prompt_output",
|
|
580
|
+
"evaluate_agent_behavior_corpus",
|
|
581
|
+
"agent_behavior_baseline_paths",
|
|
582
|
+
"validate_agent_behavior_report_path",
|
|
583
|
+
"validate_agent_run_report",
|
|
584
|
+
"ensure_markdown_node_runtime",
|
|
585
|
+
"suggest_agent_behavior_cases_from_evidence",
|
|
586
|
+
"suggest_agent_behavior_cases_from_telemetry",
|
|
587
|
+
"load_curator_prompt_expectations",
|
|
588
|
+
"promote_curator_prompt_baseline",
|
|
589
|
+
"fix_note_style_file",
|
|
590
|
+
"fix_wiki_health",
|
|
591
|
+
"fix_wiki_graph",
|
|
592
|
+
"fix_wiki_cli_exit_code",
|
|
593
|
+
"file_sha256",
|
|
594
|
+
"fix_wiki_style",
|
|
595
|
+
"graph_audit",
|
|
596
|
+
"graph_main",
|
|
597
|
+
"list_by_status",
|
|
598
|
+
"list_raw_files",
|
|
599
|
+
"load_triage_note_plan",
|
|
600
|
+
"normalize_triage_note_plan_v2",
|
|
601
|
+
"load_triager_prompt_expectations",
|
|
602
|
+
"load_curator_prompt_expectations",
|
|
603
|
+
"markdown_node_runtime_status",
|
|
604
|
+
"require_subagent_output_contract",
|
|
605
|
+
"subagent_output_contract_errors",
|
|
606
|
+
"mutate_raw_frontmatter",
|
|
607
|
+
"normalize_taxonomy",
|
|
608
|
+
"note_plan_hash",
|
|
609
|
+
"parse_frontmatter",
|
|
610
|
+
"parse_triage_note_plan",
|
|
611
|
+
"ProcessChatsFsmFacts",
|
|
612
|
+
"ProcessChatsOperationalSummary",
|
|
613
|
+
"ProcessChatsState",
|
|
614
|
+
"plan_publish_batch",
|
|
615
|
+
"plan_subagents",
|
|
616
|
+
"publish_batch",
|
|
617
|
+
"publish_receipts_path",
|
|
618
|
+
"taxonomy_new_leaf_authorization_for_manifest",
|
|
619
|
+
"taxonomy_new_leaf_authorization_from_plan",
|
|
620
|
+
"prune_backup_files",
|
|
621
|
+
"raw_summary",
|
|
622
|
+
"read_note_meta",
|
|
623
|
+
"record_publish_dry_run",
|
|
624
|
+
"recover_related_notes_export",
|
|
625
|
+
"required_artifacts_for_raw",
|
|
626
|
+
"resolve_collision",
|
|
627
|
+
"resolve_config",
|
|
628
|
+
"resolve_target_for_note",
|
|
629
|
+
"resolve_taxonomy",
|
|
630
|
+
"render_taxonomy_status_markdown",
|
|
631
|
+
"require_publish_dry_run",
|
|
632
|
+
"rollback_taxonomy_migration",
|
|
633
|
+
"run_linker",
|
|
634
|
+
"safe_title",
|
|
635
|
+
"serialize_triage_note_plan",
|
|
636
|
+
"split_frontmatter",
|
|
637
|
+
"stage_note",
|
|
638
|
+
"style_rewrite_manifest_required_receipt",
|
|
639
|
+
"sync_related_notes",
|
|
640
|
+
"target_for_note",
|
|
641
|
+
"taxonomy_audit",
|
|
642
|
+
"taxonomy_migration_plan",
|
|
643
|
+
"taxonomy_status",
|
|
644
|
+
"taxonomy_tree",
|
|
645
|
+
"TRIAGER_EVAL_RETRY_NEXT_ACTION",
|
|
646
|
+
"NoPendingRawChatsEvent",
|
|
647
|
+
"NoTriagedRawChatsEvent",
|
|
648
|
+
"ProcessChatsErrorContext",
|
|
649
|
+
"RollbackFailureRecordedEvent",
|
|
650
|
+
"TriagedRawChatsAvailableEvent",
|
|
651
|
+
"update_frontmatter",
|
|
652
|
+
"validate_config",
|
|
653
|
+
"validate_curator_batch_outputs",
|
|
654
|
+
"validate_artifact_batch",
|
|
655
|
+
"validate_note_style_file",
|
|
656
|
+
"validate_note_artifacts",
|
|
657
|
+
"validate_raw_coverage",
|
|
658
|
+
"validate_raw_coverage_structure",
|
|
659
|
+
"validate_triager_prompt_eval_for_note_plan",
|
|
660
|
+
"validate_wiki_note_contract",
|
|
661
|
+
"validate_wiki_style",
|
|
662
|
+
"vocabulary_status",
|
|
663
|
+
"write_new_note",
|
|
664
|
+
"write_trigger_context",
|
|
665
|
+
"build_process_chats_fsm_result",
|
|
666
|
+
"build_fix_wiki_fsm_result",
|
|
667
|
+
"fix_wiki_fsm_facts_from_runtime",
|
|
668
|
+
]
|