Revert "Better encapsulation for API config"#1394
Conversation
This reverts commit 86401fa.
|
| const promises: Promise<any>[] = [] | ||
|
|
||
| // For each property in apiConfiguration, update the appropriate state | ||
| Object.entries(apiConfiguration).forEach(([key, value]) => { |
There was a problem hiding this comment.
The updateApiConfiguration implementation now iterates over the apiConfiguration object's entries and updates secrets and global state directly. Consider extracting this logic into a helper function for improved clarity and reduced redundancy if it recurs.
This reverts commit 86401fa.
Important
Reverts encapsulation of API configuration, removing
getApiConfigurationandupdateApiConfigurationmethods fromContextProxyand adjusting related tests.getApiConfigurationandupdateApiConfigurationmethods fromContextProxyincontextProxy.ts.contextProxy.test.ts.ClineProvider.tsto handle API configuration directly withoutContextProxymethods.getApiConfigurationandupdateApiConfigurationinClineProvider.test.ts.ClineProvider.test.tsto reflect direct handling of API configuration.ApiConfigurationimport fromcontextProxy.tsandcontextProxy.test.ts.This description was created by
for f683e45. It will automatically update as commits are pushed.