fix(hooks/shared): replace as any with proper Record type cast
Cast pluginConfig.agents to Record type with proper structure Remove eslint-disable comment for no-explicit-any Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -15,8 +15,7 @@ export function resolveCompactionModel(
|
||||
}
|
||||
|
||||
const agentConfigKey = getAgentConfigKey(sessionAgentName)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const agentConfig = (pluginConfig.agents as any)[agentConfigKey]
|
||||
const agentConfig = (pluginConfig.agents as Record<string, { compaction?: { model?: string } } | undefined>)[agentConfigKey]
|
||||
const compactionConfig = agentConfig?.compaction
|
||||
|
||||
if (!compactionConfig?.model) {
|
||||
|
||||
Reference in New Issue
Block a user