重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。

同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。

Made-with: Cursor
This commit is contained in:
oliver 2026-04-26 08:34:33 +08:00
parent 4a23b715a2
commit dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions

View file

@ -16,6 +16,7 @@ from oclaw.runtime.tools.base import ToolSpec
from oclaw.runtime.tools.catalog import _is_truthy
from oclaw.runtime.tools.expert_registry import materialize_tools_for_expert, preview_expert_tools
from oclaw.runtime.tools.mcp.adapter import materialize_mcp_tools_for_specialist
from oclaw.runtime.tools.plugin_loader import materialize_plugin_tools
from oclaw.runtime.tools.public_registry import materialize_public_tools, preview_public_tools
@ -118,6 +119,18 @@ def build_internal_tool_specs(
"skipped_expert": list(exp_diag.get("skipped") or []),
"source_by_name": source_by_name,
}
plugin_rows = materialize_plugin_tools()
for row in plugin_rows:
spec = getattr(row, "tool", None)
if not isinstance(spec, ToolSpec):
continue
nm = str(spec.name or "").strip()
if not nm or nm in seen:
continue
seen.add(nm)
merged.append(spec)
source_by_name[nm] = "plugin"
diag["plugin_count"] = len(plugin_rows)
return merged, diag