feat(sdk): enable plugin management and gate Desktop tool parity

This commit is contained in:
fz committed 2026-10-23 23:36:47 +08:00
1 parent 92b011e57c
commit a42991af24
18 files changed
+520 -8

No files matched your search

+2
View File
@@ -91,6 +91,7 @@ LEGACY_CUSTOM_DISABLED_ROWS = (
"tool-fs",
"tool-fs-search",
"tool-goal",
"tool-plugin-manager",
"tool-schedule",
"tool-skill",
"tool-str-replace-editor",
@@ -476,6 +477,7 @@ def completion_chunks(body: dict[str, object]) -> list[dict[str, object]]:
return text_chunks(RESUME_TEXT)
if prompt == DYNAMIC_TOOLS_PROMPT:
assert_advertised_tool(body, "read")
assert_advertised_tool(body, "plugin_manager")
if "snapshot_ping" in advertised_tool_names(body):
raise AssertionError("dynamic tool was registered before its enabling read")
return tool_call_chunks("python-dynamic-read", "read", {"file_path": "dynamic-tool-task.txt"})