Files
shard-wiki/src/shard_wiki/engine/__init__.py
tegwick b48a99d3c2 feat(engine): typed-extension runtime (WP-0014 T2)
engine/extension.py: Extension contract (id/provides/declares_types/depends_on/
conflicts_with + bound hooks), ExtensionRuntime (register-with-verification,
activate = dependency closure + conflict + type-collision checks rejecting
impossible profiles), and ActiveExtensions with deterministic (topological, id-tie)
hook dispatch — transform hooks chain, collect hooks gather. 9 tests green,
coverage floor held, pyflakes clean. Marks T2 done.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 00:11:18 +02:00

27 lines
732 B
Python

"""engine/ — shard-wiki's native, headless wiki engine (a canonical-mode shard backend).
A small page-store kernel + a typed-extension runtime (WikiEngineCoreArchitecture). The engine
is *one shard*: it is consumed by the orchestrator only via its `EngineShardAdapter`; it never
imports the derived tier (`union`/`projection`).
"""
from shard_wiki.engine.extension import (
ActiveExtensions,
Extension,
ExtensionError,
ExtensionRuntime,
Hook,
)
from shard_wiki.engine.kernel import EngineKernel
from shard_wiki.engine.links import extract_wikilinks
__all__ = [
"EngineKernel",
"extract_wikilinks",
"Hook",
"Extension",
"ExtensionError",
"ExtensionRuntime",
"ActiveExtensions",
]