diff options
Diffstat (limited to 'packages/tui/sdk')
| -rw-r--r-- | packages/tui/sdk/.stats.yml | 6 | ||||
| -rw-r--r-- | packages/tui/sdk/api.md | 1 | ||||
| -rw-r--r-- | packages/tui/sdk/config.go | 35 |
3 files changed, 21 insertions, 21 deletions
diff --git a/packages/tui/sdk/.stats.yml b/packages/tui/sdk/.stats.yml index 0f1eb3f11..02591cbbb 100644 --- a/packages/tui/sdk/.stats.yml +++ b/packages/tui/sdk/.stats.yml @@ -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 diff --git a/packages/tui/sdk/api.md b/packages/tui/sdk/api.md index 68320cc04..15b177e92 100644 --- a/packages/tui/sdk/api.md +++ b/packages/tui/sdk/api.md @@ -64,7 +64,6 @@ Response Types: - <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#Config">Config</a> - <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#KeybindsConfig">KeybindsConfig</a> -- <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#LayoutConfig">LayoutConfig</a> - <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#McpLocalConfig">McpLocalConfig</a> - <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#McpRemoteConfig">McpRemoteConfig</a> - <a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go">opencode</a>.<a href="https://pkg.go.dev/github.com/sst/opencode-sdk-go#ModeConfig">ModeConfig</a> diff --git a/packages/tui/sdk/config.go b/packages/tui/sdk/config.go index f54c6a75a..34788dacd 100644 --- a/packages/tui/sdk/config.go +++ b/packages/tui/sdk/config.go @@ -55,8 +55,8 @@ type Config struct { Instructions []string `json:"instructions"` // Custom keybind configurations Keybinds KeybindsConfig `json:"keybinds"` - // Layout to use for the TUI - Layout LayoutConfig `json:"layout"` + // @deprecated Always uses stretch layout. + Layout ConfigLayout `json:"layout"` // Minimum log level to write to log files LogLevel LogLevel `json:"log_level"` // MCP (Model Context Protocol) server configurations @@ -197,6 +197,22 @@ func (r configExperimentalHookSessionCompletedJSON) RawJSON() string { return r.raw } +// @deprecated Always uses stretch layout. +type ConfigLayout string + +const ( + ConfigLayoutAuto ConfigLayout = "auto" + ConfigLayoutStretch ConfigLayout = "stretch" +) + +func (r ConfigLayout) IsKnown() bool { + switch r { + case ConfigLayoutAuto, ConfigLayoutStretch: + return true + } + return false +} + type ConfigMcp struct { // Type of MCP server connection Type ConfigMcpType `json:"type,required"` @@ -574,21 +590,6 @@ func (r keybindsConfigJSON) RawJSON() string { return r.raw } -type LayoutConfig string - -const ( - LayoutConfigAuto LayoutConfig = "auto" - LayoutConfigStretch LayoutConfig = "stretch" -) - -func (r LayoutConfig) IsKnown() bool { - switch r { - case LayoutConfigAuto, LayoutConfigStretch: - return true - } - return false -} - type McpLocalConfig struct { // Command and arguments to run the MCP server Command []string `json:"command,required"` |
