chore: rework openapi spec and use stainless sdk

This commit is contained in:
adamdottv 2025-06-27 07:46:42 -05:00
parent 226a4a7f36
commit 79bbf90b72
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
28 changed files with 658 additions and 6634 deletions

View file

@ -7,7 +7,6 @@ import (
"os"
"github.com/BurntSushi/toml"
"github.com/sst/opencode/pkg/client"
)
type State struct {
@ -22,13 +21,6 @@ func NewState() *State {
}
}
func MergeState(state *State, config *client.ConfigInfo) *client.ConfigInfo {
if config.Theme == nil {
config.Theme = &state.Theme
}
return config
}
// SaveState writes the provided Config struct to the specified TOML file.
// It will create the file if it doesn't exist, or overwrite it if it does.
func SaveState(filePath string, state *State) error {