From abd99aeb7db5564cbfdf99b42e6a10bf3ccbafd5 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 17 Sep 2025 01:16:49 -0400 Subject: ignore: fix event type gen --- packages/sdk/go/config.go | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'packages/sdk/go/config.go') 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 -- cgit v1.2.3