mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-28 23:52:09 -04:00
fix(tools): re-export dropped helpers through the split shim
Address review finding from #4423: the compatibility facade claimed to preserve every original top-level symbol but omitted three helpers the old src.tool_implementations exposed. Re-export them and pin them in the shim protection test: - _string_arg, _validate_cookbook_ssh_target <- src/tools/cookbook.py - _mcp_allowed_commands <- src/agent_tools/admin_tools.py (lazily via __getattr__, to keep the agent_tools.__init__ <-> facade import acyclic after the #3629 admin-tools migration) All three added to tests/test_tool_implementations_shim.py _EXPECTED so the test contract now matches its "every original top-level function" comment. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -25,13 +25,14 @@ _EXPECTED = [
|
||||
"do_serve_model", "do_serve_preset", "do_stop_served_model",
|
||||
"do_tail_serve_output", "do_trigger_research", "do_vault_get",
|
||||
"do_vault_search", "do_vault_unlock",
|
||||
# 15 module-private helpers (importable by name too)
|
||||
# module-private helpers (importable by name too)
|
||||
"_cookbook_apply_retry_suggestion", "_cookbook_env_for_host",
|
||||
"_cookbook_kill_session", "_cookbook_register_task", "_cookbook_servers",
|
||||
"_ensure_served_endpoint", "_infer_serve_host", "_infer_serve_port",
|
||||
"_internal_headers", "_load_vault_config", "_parse_tool_args",
|
||||
"_resolve_cookbook_host", "_run_bw", "_scan_running_model_processes",
|
||||
"_skill_dump",
|
||||
"_internal_headers", "_load_vault_config", "_mcp_allowed_commands",
|
||||
"_parse_tool_args", "_resolve_cookbook_host", "_run_bw",
|
||||
"_scan_running_model_processes", "_skill_dump", "_string_arg",
|
||||
"_validate_cookbook_ssh_target",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user