mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-05-20 18:02:37 +00:00
feat(api): api update
This commit is contained in:
parent
002bf2d57f
commit
d8c9fc984c
5 changed files with 6 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
configured_endpoints: 22
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-d34620b462127c45497743c97fd3569f9e629d9fbd97c0707087eeddbd4b3de1.yml
|
||||
openapi_spec_hash: 23864c98d555350fe56f1d0e56f205c5
|
||||
config_hash: a8441af7cb2db855d79fd372ee3b9fb1
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-a1da357fcefd3105736841fbf44018022fade78e67ffc81e178cf9196da723ee.yml
|
||||
openapi_spec_hash: 9bd27afcc5b8f43d8e4223f7c984035f
|
||||
config_hash: 62b73a3397120578a992bffd1e69386a
|
||||
|
|
|
|||
9
api.md
9
api.md
|
|
@ -80,14 +80,7 @@ Methods:
|
|||
Types:
|
||||
|
||||
```python
|
||||
from opencode_ai.types import (
|
||||
Config,
|
||||
KeybindsConfig,
|
||||
LayoutConfig,
|
||||
McpLocalConfig,
|
||||
McpRemoteConfig,
|
||||
ModeConfig,
|
||||
)
|
||||
from opencode_ai.types import Config, KeybindsConfig, McpLocalConfig, McpRemoteConfig, ModeConfig
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ from .text_part import TextPart as TextPart
|
|||
from .tool_part import ToolPart as ToolPart
|
||||
from .mode_config import ModeConfig as ModeConfig
|
||||
from .user_message import UserMessage as UserMessage
|
||||
from .layout_config import LayoutConfig as LayoutConfig
|
||||
from .snapshot_part import SnapshotPart as SnapshotPart
|
||||
from .app_log_params import AppLogParams as AppLogParams
|
||||
from .keybinds_config import KeybindsConfig as KeybindsConfig
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ from .._utils import PropertyInfo
|
|||
from .._models import BaseModel
|
||||
from .log_level import LogLevel
|
||||
from .mode_config import ModeConfig
|
||||
from .layout_config import LayoutConfig
|
||||
from .keybinds_config import KeybindsConfig
|
||||
from .mcp_local_config import McpLocalConfig
|
||||
from .mcp_remote_config import McpRemoteConfig
|
||||
|
|
@ -144,8 +143,8 @@ class Config(BaseModel):
|
|||
keybinds: Optional[KeybindsConfig] = None
|
||||
"""Custom keybind configurations"""
|
||||
|
||||
layout: Optional[LayoutConfig] = None
|
||||
"""Layout to use for the TUI"""
|
||||
layout: Optional[Literal["auto", "stretch"]] = None
|
||||
"""@deprecated Always uses stretch layout."""
|
||||
|
||||
log_level: Optional[LogLevel] = None
|
||||
"""Minimum log level to write to log files"""
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
__all__ = ["LayoutConfig"]
|
||||
|
||||
LayoutConfig: TypeAlias = Literal["auto", "stretch"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue