← Về thư mục
openai4s/server/volcengine_arkcli.py
- ArkCliError · class · L65-L71 — class ArkCliError(RuntimeError)
- init · method · L68-L71 — def init(self, code: str, message: str) -> None
- CommandResult · class · L75-L80 — class CommandResult
- _child_env · function · L86-L94 — def _child_env(source: Mapping[str, str] | None = None) -> dict[str, str]
- _command_env · function · L106-L135 — def _command_env(argv: Sequence[str]) -> dict[str, str]
- _run_bounded · function · L138-L208 — def _run_bounded( argv: Sequence[str], timeout_s: float, cancel_event: threading.Event | None = None, ) -> CommandResult
- drain · function · L160-L173 — def drain(pipe: Any, target: bytearray) -> None
- _resolve_batch_shim · function · L217-L246 — def _resolve_batch_shim( path: str, *, which: Callable[[str], str | None] = shutil.which ) -> list[str] | None
- _text · function · L249-L250 — def _text(value: Any, limit: int = 160) -> str
- _mapping · function · L253-L254 — def _mapping(value: Any) -> dict[str, Any]
- _named · function · L257-L261 — def _named(mapping: Mapping[str, Any], *names: str) -> Any
- _flag · function · L264-L281 — def _flag(value: Any) -> bool | None
- _rows · function · L284-L296 — def _rows(payload: Any, *names: str) -> list[dict[str, Any]]
- _command_failure_detail · function · L299-L365 — def _command_failure_detail(result: CommandResult) -> str
- redact_token · function · L343-L358 — def redact_token(match: re.Match[str]) -> str
- _device_payload · function · L368-L383 — def _device_payload(value: str) -> dict[str, str]
- _normalize_device_code · function · L386-L407 — def _normalize_device_code(value: Any, authorize_url: str) -> str
- ArkCliBridge · class · L410-L818 — class ArkCliBridge
- init · method · L413-L428 — def init( self, *, executable: str | None = None, which: Callable[[str], str | None] = shutil.which, runner: CommandRunner = _run_bounded, ) -> None
- executable · method · L430-L453 — def executable(self) -> str
- availability · method · L455-L459 — def availability(self) -> dict[str, Any]
- version · method · L461-L471 — def version(self) -> str
- _run · method · L473-L518 — def _run( self, args: Sequence[str], *, timeout_s: float = _DEFAULT_TIMEOUT_S, cancel_event: threading.Event | None = None, ) -> CommandResult
- _json · method · L520-L529 — def _json( self, args: Sequence[str], *, timeout_s: float = _DEFAULT_TIMEOUT_S ) -> Any
- whoami · method · L531-L537 — def whoami(self) -> dict[str, Any]
- plans · method · L539-L540 — def plans(self) -> list[dict[str, Any]]
- usage · method · L542-L548 — def usage(self) -> dict[str, Any]
- profiles · method · L550-L553 — def profiles(self) -> list[dict[str, Any]]
- endpoint_inventory · method · L555-L602 — def endpoint_inventory(self, profile_name: str) -> list[dict[str, Any]]
- login_device_start · method · L604-L633 — def login_device_start(self) -> dict[str, Any]
- login_device_complete · method · L635-L647 — def login_device_complete( self, code: Any, cancel_event: threading.Event | None = None ) -> None
- logout · method · L649-L650 — def logout(self) -> None
- _plan_profile_types · method · L653-L655 — def _plan_profile_types(plan_key: str) -> tuple[str, ...]
- profile_for_plan · method · L657-L677 — def profile_for_plan(self, plan_key: str) -> str
- default_model · method · L679-L702 — def default_model(self, profile_name: str) -> str
- default_api_key · method · L704-L707 — def default_api_key(self, profile_name: str) -> str
- api_key_inventory · method · L709-L753 — def api_key_inventory(self, profile_name: str) -> list[dict[str, Any]]
- api_key · method · L755-L795 — def api_key(self, profile_name: str, key_id: str | None = None) -> str
- _raw_key · method · L797-L818 — def _raw_key(self, profile_name: str, key_id: Any) -> str