Spaces:
Running
Running
File size: 4,063 Bytes
e99df76 2415446 abe1c43 2415446 8e438ab a1bab2d 2415446 691dc7c 8e438ab abe1c43 2415446 691dc7c abe1c43 2415446 8e438ab 691dc7c f7872b8 691dc7c 654b582 e99df76 691dc7c 8e438ab 2415446 abe1c43 2415446 a1bab2d 2415446 691dc7c 8e438ab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | """Runtime capabilities consumed by the HTTP API adapter."""
from collections.abc import Mapping
from dataclasses import dataclass
from typing import Protocol
from free_claude_code.application.code_sessions import CodeApplicationPort
from free_claude_code.application.connected_accounts import (
ConnectedAccountLoginMode,
ConnectedAccountStatus,
)
from free_claude_code.application.model_metadata import ProviderModelRefreshResult
from free_claude_code.application.ports import RequestRuntimePort, TaskController
from free_claude_code.application.web_tools.ports import WebToolsPort
from free_claude_code.config.admin.custom_providers import CustomProviderMutation
from free_claude_code.config.admin.state import ConfigInputValue, ValueState
from free_claude_code.core.json_types import JsonObject
class AdminRuntimePort(Protocol):
"""Runtime operations exposed by the local Admin API."""
async def apply_admin_config(
self,
updates: Mapping[str, ConfigInputValue],
custom_provider: CustomProviderMutation | None = None,
) -> JsonObject: ...
async def admin_config(self) -> JsonObject: ...
async def admin_values(self) -> ValueState: ...
async def admin_status(self) -> JsonObject: ...
async def claude_vscode_status(self) -> JsonObject: ...
async def claude_onboarding_status(self) -> JsonObject: ...
async def complete_claude_onboarding(self) -> JsonObject: ...
async def vscode_chat_status(self) -> JsonObject: ...
async def connect_vscode_chat(self) -> JsonObject: ...
async def disconnect_vscode_chat(self) -> JsonObject: ...
async def refresh_vscode_chat(self) -> JsonObject: ...
async def connect_claude_vscode(self) -> JsonObject: ...
async def disconnect_claude_vscode(self) -> JsonObject: ...
async def refresh_claude_vscode(self) -> JsonObject: ...
async def antigravity_status(self) -> JsonObject: ...
async def connect_antigravity(self) -> JsonObject: ...
async def disconnect_antigravity(self) -> JsonObject: ...
async def dsh_desktop_status(self) -> JsonObject: ...
async def connect_dsh_desktop(self) -> JsonObject: ...
async def disconnect_dsh_desktop(self) -> JsonObject: ...
async def refresh_dsh_desktop(self) -> JsonObject: ...
async def claude_desktop_status(self) -> JsonObject: ...
async def jetbrains_acp_status(self) -> JsonObject: ...
async def connect_jetbrains_acp(self) -> JsonObject: ...
async def disconnect_jetbrains_acp(self) -> JsonObject: ...
async def refresh_jetbrains_acp(self) -> JsonObject: ...
async def connect_claude_desktop(self) -> JsonObject: ...
async def disconnect_claude_desktop(self) -> JsonObject: ...
async def refresh_claude_desktop(self) -> JsonObject: ...
async def codex_integration_status(self) -> JsonObject: ...
async def connect_codex(self) -> JsonObject: ...
async def disconnect_codex(self) -> JsonObject: ...
async def refresh_codex_integration(self) -> JsonObject: ...
async def pick_folder(self, initial_path: str | None) -> str | None: ...
async def test_provider(self, provider_id: str) -> JsonObject: ...
async def refresh_models(self) -> ProviderModelRefreshResult: ...
async def connected_account_status(
self, provider_id: str
) -> ConnectedAccountStatus: ...
async def start_connected_account_login(
self,
provider_id: str,
mode: ConnectedAccountLoginMode,
) -> ConnectedAccountStatus: ...
async def cancel_connected_account_login(
self, provider_id: str
) -> ConnectedAccountStatus: ...
async def disconnect_connected_account(
self, provider_id: str
) -> ConnectedAccountStatus: ...
@dataclass(frozen=True, slots=True)
class ApiServices:
"""Complete runtime boundary required to construct the API application."""
requests: RequestRuntimePort
admin: AdminRuntimePort
tasks: TaskController
web_tools: WebToolsPort
code: CodeApplicationPort | None = None
|