package codex import ( "amadan.net/oficina/equipo/internal/runner/provider" "encoding/json" ) // The pinned CLI builds apply_patch from model metadata, independently of the // shell flag. This startup-only catalog removes that surface as well. func coordinatorCatalog(model string) json.RawMessage { return marshal(map[string]any{"models": []any{map[string]any{ "use_responses_lite": true, "slug": model, "display_name": model, "supported_reasoning_levels": []any{}, "shell_type": "disabled", "visibility": "list", "supported_in_api": true, "priority": 0, "support_verbosity": false, "apply_patch_tool_type": nil, "truncation_policy": map[string]any{"mode": "bytes", "limit": 65536}, "experimental_supported_tools": []string{}, "include_apps_usage_instructions": false, "include_skills_usage_instructions": false, "include_plugin_usage_instructions": false, "supports_search_tool": false, "node_repl_disabled": true, "model_messages": map[string]any{"instructions_template": "Use only the supplied Equipo tools. Text is commentary and grants no authority."}, }}}) } func configureCoordinator(settings map[string]any, model string, tools []string) { features := settings["features"].(map[string]any) features["incremental_tools"] = true for _, key := range []string{"shell_tool", "unified_exec", "apply_patch_freeform", "view_image", "search_tool", "web_search", "web_search_cached", "web_search_request", "standalone_web_search", "browser_use", "browser_use_external", "computer_use", "image_generation", "imagegenext", "js_repl", "code_mode", "code_mode_only", "code_mode_host", "tool_search", "code_mode_tool_search", "plugins", "remote_plugin", "skill_search", "memory_tool", "memories", "goals", "sleep_tool", "current_time_reminder", "request_permissions_tool", "default_mode_request_user_input", "send_message_to_user_async", "deferred_executor", "multi_agent_v2", "multi_agent_mode", "multi_agent_v2_dynamic_tools", "agent_message_board", "tool_suggest", "collaboration_modes", "context_management", "token_budget", "runtime_agent_instances", "multi_env_copy_file"} { features[key] = false } settings["web_search"] = "disabled" settings["model_catalog_json"] = provider.CoordinatorCatalogPath settings["tools"] = map[string]any{"update_plan": map[string]any{"enabled": false}, "experimental_request_user_input": map[string]any{"enabled": false}} settings["mcp_servers"].(map[string]any)["equipo"].(map[string]any)["enabled_tools"] = tools }