- Add --swarm <count> capability to launch up to 100 agents in parallel - Support multiple providers: --claude, --openai, --gemini, --grok, --local - Implement lazy agent spawning for efficient resource usage - Add automatic authentication for all providers - Create parallel file processing with progress tracking - Migrate all tests from Jest to Vitest - Add comprehensive test coverage for swarm functionality - Support idiomatic usage: dev --claude --swarm 5 -p 'edit files...' - Version bump to 2.1.0
22 lines
383 B
TypeScript
22 lines
383 B
TypeScript
// Sample TypeScript code for testing
|
|
interface User {
|
|
id: number;
|
|
name: string;
|
|
email: string;
|
|
}
|
|
|
|
export class UserService {
|
|
private users: User[] = [];
|
|
|
|
addUser(user: User): void {
|
|
this.users.push(user);
|
|
}
|
|
|
|
getUser(id: number): User | undefined {
|
|
return this.users.find(user => user.id === id);
|
|
}
|
|
|
|
getAllUsers(): User[] {
|
|
return [...this.users];
|
|
}
|
|
} |