diff options
| author | Dax Raad <[email protected]> | 2025-09-17 01:16:49 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-17 01:17:56 -0400 |
| commit | abd99aeb7db5564cbfdf99b42e6a10bf3ccbafd5 (patch) | |
| tree | 541b052844e30a86be3916803a36544e6c22517f /packages/sdk/go/config.go | |
| parent | ad5fc76b11957013aec9a7ecc14e687b1df40fcb (diff) | |
| download | opencode-abd99aeb7db5564cbfdf99b42e6a10bf3ccbafd5.tar.gz opencode-abd99aeb7db5564cbfdf99b42e6a10bf3ccbafd5.zip | |
ignore: fix event type gen
Diffstat (limited to 'packages/sdk/go/config.go')
| -rw-r--r-- | packages/sdk/go/config.go | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/packages/sdk/go/config.go b/packages/sdk/go/config.go index d469bdff1..c79de17f0 100644 --- a/packages/sdk/go/config.go +++ b/packages/sdk/go/config.go @@ -90,8 +90,9 @@ type Config struct { // TUI specific settings Tui ConfigTui `json:"tui"` // Custom username to display in conversations instead of system username - Username string `json:"username"` - JSON configJSON `json:"-"` + Username string `json:"username"` + Watcher ConfigWatcher `json:"watcher"` + JSON configJSON `json:"-"` } // configJSON contains the JSON metadata for the struct [Config] @@ -121,6 +122,7 @@ type configJSON struct { Tools apijson.Field Tui apijson.Field Username apijson.Field + Watcher apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1772,6 +1774,26 @@ func (r configTuiJSON) RawJSON() string { return r.raw } +type ConfigWatcher struct { + Ignore []string `json:"ignore"` + JSON configWatcherJSON `json:"-"` +} + +// configWatcherJSON contains the JSON metadata for the struct [ConfigWatcher] +type configWatcherJSON struct { + Ignore apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *ConfigWatcher) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r configWatcherJSON) RawJSON() string { + return r.raw +} + // Custom keybind configurations type KeybindsConfig struct { // Next agent |
