mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
This commit is contained in:
parent
4a23b715a2
commit
dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions
|
|
@ -1,3 +1,13 @@
|
|||
"""
|
||||
Public hooks API surface.
|
||||
|
||||
Design contract:
|
||||
- Typed-first internals: loaders/policy/config operate on `HookEntry`.
|
||||
- Compatibility wrappers: `_compat` helpers accept legacy dict entries.
|
||||
- External callers should migrate to typed APIs over time; wrappers remain for
|
||||
incremental rollout and backward compatibility.
|
||||
"""
|
||||
|
||||
from .internal_hooks import (
|
||||
HookEvent,
|
||||
HookHandler,
|
||||
|
|
@ -11,6 +21,10 @@ from .internal_hooks import (
|
|||
)
|
||||
|
||||
from .loader import load_internal_hooks
|
||||
from .config import should_include_hook, should_include_hook_compat
|
||||
from .policy import resolve_hook_entries_compat
|
||||
from .hooks_status import build_workspace_hook_status
|
||||
from .eligibility_from_metadata import hook_eligibility_from_message_metadata
|
||||
|
||||
__all__ = [
|
||||
"HookEvent",
|
||||
|
|
@ -23,5 +37,10 @@ __all__ = [
|
|||
"trigger_hook",
|
||||
"create_hook_event",
|
||||
"load_internal_hooks",
|
||||
"should_include_hook",
|
||||
"should_include_hook_compat",
|
||||
"resolve_hook_entries_compat",
|
||||
"build_workspace_hook_status",
|
||||
"hook_eligibility_from_message_metadata",
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue