MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / InitAIModeConfigWatcher

Function InitAIModeConfigWatcher

pkg/aiusechat/usechat-mode.go:261–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261func InitAIModeConfigWatcher() {
262 watcher := wconfig.GetWatcher()
263 watcher.RegisterUpdateHandler(handleConfigUpdate)
264 log.Printf("AI mode config watcher initialized\n")
265}
266
267func handleConfigUpdate(fullConfig wconfig.FullConfigType) {
268 resolvedConfigs := ComputeResolvedAIModeConfigs(fullConfig)

Callers 1

mainFunction · 0.92

Calls 2

GetWatcherFunction · 0.92
RegisterUpdateHandlerMethod · 0.80

Tested by

no test coverage detected