2026-05-03 21:37:00 +02:00
|
|
|
"""Structured markdown primitives for markitect-tool."""
|
|
|
|
|
|
|
|
|
|
from markitect_tool.core import (
|
|
|
|
|
ContentBlock,
|
|
|
|
|
Document,
|
|
|
|
|
Heading,
|
|
|
|
|
MarkdownParseError,
|
|
|
|
|
Section,
|
|
|
|
|
parse_markdown,
|
|
|
|
|
parse_markdown_file,
|
|
|
|
|
)
|
2026-05-03 22:51:13 +02:00
|
|
|
from markitect_tool.contract import (
|
|
|
|
|
ContractCheckResult,
|
|
|
|
|
ContractValidationResult,
|
|
|
|
|
DocumentContract,
|
|
|
|
|
check_document_contract,
|
|
|
|
|
check_markdown_file,
|
|
|
|
|
collect_metrics,
|
|
|
|
|
load_contract_file,
|
|
|
|
|
validate_contract,
|
|
|
|
|
validate_contract_file,
|
|
|
|
|
)
|
2026-05-04 01:35:32 +02:00
|
|
|
from markitect_tool.cache import (
|
|
|
|
|
CacheEntry,
|
|
|
|
|
CacheManifest,
|
|
|
|
|
CacheStatus,
|
|
|
|
|
build_cache,
|
|
|
|
|
cache_path_for,
|
|
|
|
|
detect_changes,
|
|
|
|
|
fingerprint_file,
|
|
|
|
|
load_cache,
|
|
|
|
|
save_cache,
|
|
|
|
|
scan_markdown_files,
|
|
|
|
|
)
|
2026-05-03 22:51:13 +02:00
|
|
|
from markitect_tool.diagnostics import Diagnostic, SourceLocation
|
2026-05-04 01:12:54 +02:00
|
|
|
from markitect_tool.generation import (
|
|
|
|
|
GeneratedDocument,
|
|
|
|
|
GenerationHookRequest,
|
|
|
|
|
GenerationHookResult,
|
|
|
|
|
GenerationPlan,
|
|
|
|
|
GenerationResult,
|
|
|
|
|
generate_stub_from_contract,
|
|
|
|
|
generate_with_hook,
|
|
|
|
|
load_generation_plan_file,
|
|
|
|
|
run_generation_plan,
|
|
|
|
|
)
|
2026-05-04 00:23:04 +02:00
|
|
|
from markitect_tool.ops import (
|
|
|
|
|
ComposeResult,
|
|
|
|
|
IncludeError,
|
|
|
|
|
IncludeResult,
|
|
|
|
|
TransformResult,
|
|
|
|
|
compose_files,
|
|
|
|
|
resolve_includes,
|
|
|
|
|
transform_markdown,
|
|
|
|
|
)
|
2026-05-04 00:12:07 +02:00
|
|
|
from markitect_tool.query import (
|
|
|
|
|
InvalidQueryError,
|
|
|
|
|
QueryMatch,
|
|
|
|
|
extract_document,
|
|
|
|
|
query_document,
|
|
|
|
|
)
|
2026-05-03 22:12:46 +02:00
|
|
|
from markitect_tool.schema import (
|
|
|
|
|
MarkdownSchema,
|
|
|
|
|
SchemaValidationResult,
|
|
|
|
|
ValidationViolation,
|
|
|
|
|
load_schema_file,
|
|
|
|
|
validate_document,
|
|
|
|
|
validate_markdown_file,
|
|
|
|
|
)
|
2026-05-04 01:12:54 +02:00
|
|
|
from markitect_tool.template import (
|
|
|
|
|
MissingTemplateVariable,
|
|
|
|
|
TemplateAnalysis,
|
|
|
|
|
TemplateError,
|
|
|
|
|
TemplateRenderResult,
|
|
|
|
|
analyze_template,
|
|
|
|
|
render_template,
|
|
|
|
|
)
|
2026-05-03 21:37:00 +02:00
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
"ContentBlock",
|
|
|
|
|
"Document",
|
|
|
|
|
"Heading",
|
|
|
|
|
"MarkdownParseError",
|
|
|
|
|
"Section",
|
|
|
|
|
"parse_markdown",
|
|
|
|
|
"parse_markdown_file",
|
2026-05-03 22:12:46 +02:00
|
|
|
"MarkdownSchema",
|
|
|
|
|
"SchemaValidationResult",
|
|
|
|
|
"ValidationViolation",
|
|
|
|
|
"load_schema_file",
|
|
|
|
|
"validate_document",
|
|
|
|
|
"validate_markdown_file",
|
2026-05-03 22:51:13 +02:00
|
|
|
"ContractCheckResult",
|
|
|
|
|
"ContractValidationResult",
|
|
|
|
|
"DocumentContract",
|
|
|
|
|
"check_document_contract",
|
|
|
|
|
"check_markdown_file",
|
|
|
|
|
"collect_metrics",
|
|
|
|
|
"load_contract_file",
|
|
|
|
|
"validate_contract",
|
|
|
|
|
"validate_contract_file",
|
2026-05-04 01:35:32 +02:00
|
|
|
"CacheEntry",
|
|
|
|
|
"CacheManifest",
|
|
|
|
|
"CacheStatus",
|
|
|
|
|
"build_cache",
|
|
|
|
|
"cache_path_for",
|
|
|
|
|
"detect_changes",
|
|
|
|
|
"fingerprint_file",
|
|
|
|
|
"load_cache",
|
|
|
|
|
"save_cache",
|
|
|
|
|
"scan_markdown_files",
|
2026-05-03 22:51:13 +02:00
|
|
|
"Diagnostic",
|
|
|
|
|
"SourceLocation",
|
2026-05-04 01:12:54 +02:00
|
|
|
"GeneratedDocument",
|
|
|
|
|
"GenerationHookRequest",
|
|
|
|
|
"GenerationHookResult",
|
|
|
|
|
"GenerationPlan",
|
|
|
|
|
"GenerationResult",
|
|
|
|
|
"generate_stub_from_contract",
|
|
|
|
|
"generate_with_hook",
|
|
|
|
|
"load_generation_plan_file",
|
|
|
|
|
"run_generation_plan",
|
2026-05-04 00:23:04 +02:00
|
|
|
"ComposeResult",
|
|
|
|
|
"IncludeError",
|
|
|
|
|
"IncludeResult",
|
|
|
|
|
"TransformResult",
|
|
|
|
|
"compose_files",
|
|
|
|
|
"resolve_includes",
|
|
|
|
|
"transform_markdown",
|
2026-05-04 00:12:07 +02:00
|
|
|
"InvalidQueryError",
|
|
|
|
|
"QueryMatch",
|
|
|
|
|
"extract_document",
|
|
|
|
|
"query_document",
|
2026-05-04 01:12:54 +02:00
|
|
|
"MissingTemplateVariable",
|
|
|
|
|
"TemplateAnalysis",
|
|
|
|
|
"TemplateError",
|
|
|
|
|
"TemplateRenderResult",
|
|
|
|
|
"analyze_template",
|
|
|
|
|
"render_template",
|
2026-05-03 21:37:00 +02:00
|
|
|
]
|