Skip to content

Commit 9a96868

Browse files
alpslaclaude
andcommitted
fix: Revert enum type annotations to correct approach
Reverted keyof typeof changes back to direct enum types. The original issue was resolved by earlier fixes to core package enum exports. Direct enum type annotations (AgentProvider, AgentRole) are the correct approach for enum values in function parameters. Build now passes successfully. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d297466 commit 9a96868

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

packages/agents/src/multi-agent/factory.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ export class MultiAgentFactory {
156156
name: string,
157157
strategy: AnalysisStrategy,
158158
primaryAgentSelection: {
159-
provider: keyof typeof AgentProvider,
160-
role: keyof typeof AgentRole,
159+
provider: AgentProvider,
160+
role: AgentRole,
161161
position?: AgentPosition
162162
},
163163
secondaryAgentSelections: Array<{
164-
provider: keyof typeof AgentProvider,
165-
role: keyof typeof AgentRole,
164+
provider: AgentProvider,
165+
role: AgentRole,
166166
position?: AgentPosition
167167
}> = [],
168168
options: {
@@ -234,18 +234,18 @@ export class MultiAgentFactory {
234234
name: string,
235235
strategy: AnalysisStrategy,
236236
primaryConfig: {
237-
provider: keyof typeof AgentProvider,
238-
role: keyof typeof AgentRole,
237+
provider: AgentProvider,
238+
role: AgentRole,
239239
position: AgentPosition
240240
},
241241
secondaryConfigs: Array<{
242-
provider: keyof typeof AgentProvider,
243-
role: keyof typeof AgentRole,
242+
provider: AgentProvider,
243+
role: AgentRole,
244244
position: AgentPosition
245245
}>,
246246
fallbackConfigs?: Array<{
247-
provider: keyof typeof AgentProvider,
248-
role: keyof typeof AgentRole,
247+
provider: AgentProvider,
248+
role: AgentRole,
249249
position: AgentPosition,
250250
priority?: number
251251
}>,

0 commit comments

Comments
 (0)