From 611854e4b68a2bfa30b336c1fa5135765c593f0f Mon Sep 17 00:00:00 2001
From: adamdotdevin <2363879+adamdottv@users.noreply.github.com>
Date: Fri, 18 Jul 2025 13:03:27 -0500
Subject: feat(tui): simpler layout, always stretched
---
packages/tui/sdk/.stats.yml | 6 +++---
packages/tui/sdk/api.md | 1 -
packages/tui/sdk/config.go | 35 ++++++++++++++++++-----------------
3 files changed, 21 insertions(+), 21 deletions(-)
(limited to 'packages/tui/sdk')
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:
- opencode.Config
- opencode.KeybindsConfig
-- opencode.LayoutConfig
- opencode.McpLocalConfig
- opencode.McpRemoteConfig
- opencode.ModeConfig
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"`
--
cgit v1.2.3