Skip to content

Commit d8c9fc9

Browse files
feat(api): api update
1 parent 002bf2d commit d8c9fc9

5 files changed

Lines changed: 6 additions & 22 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-d34620b462127c45497743c97fd3569f9e629d9fbd97c0707087eeddbd4b3de1.yml
3-
openapi_spec_hash: 23864c98d555350fe56f1d0e56f205c5
4-
config_hash: a8441af7cb2db855d79fd372ee3b9fb1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-a1da357fcefd3105736841fbf44018022fade78e67ffc81e178cf9196da723ee.yml
3+
openapi_spec_hash: 9bd27afcc5b8f43d8e4223f7c984035f
4+
config_hash: 62b73a3397120578a992bffd1e69386a

api.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,7 @@ Methods:
8080
Types:
8181

8282
```python
83-
from opencode_ai.types import (
84-
Config,
85-
KeybindsConfig,
86-
LayoutConfig,
87-
McpLocalConfig,
88-
McpRemoteConfig,
89-
ModeConfig,
90-
)
83+
from opencode_ai.types import Config, KeybindsConfig, McpLocalConfig, McpRemoteConfig, ModeConfig
9184
```
9285

9386
Methods:

src/opencode_ai/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from .tool_part import ToolPart as ToolPart
2525
from .mode_config import ModeConfig as ModeConfig
2626
from .user_message import UserMessage as UserMessage
27-
from .layout_config import LayoutConfig as LayoutConfig
2827
from .snapshot_part import SnapshotPart as SnapshotPart
2928
from .app_log_params import AppLogParams as AppLogParams
3029
from .keybinds_config import KeybindsConfig as KeybindsConfig

src/opencode_ai/types/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from .._models import BaseModel
1010
from .log_level import LogLevel
1111
from .mode_config import ModeConfig
12-
from .layout_config import LayoutConfig
1312
from .keybinds_config import KeybindsConfig
1413
from .mcp_local_config import McpLocalConfig
1514
from .mcp_remote_config import McpRemoteConfig
@@ -144,8 +143,8 @@ class Config(BaseModel):
144143
keybinds: Optional[KeybindsConfig] = None
145144
"""Custom keybind configurations"""
146145

147-
layout: Optional[LayoutConfig] = None
148-
"""Layout to use for the TUI"""
146+
layout: Optional[Literal["auto", "stretch"]] = None
147+
"""@deprecated Always uses stretch layout."""
149148

150149
log_level: Optional[LogLevel] = None
151150
"""Minimum log level to write to log files"""

src/opencode_ai/types/layout_config.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)