- Introduced ExecutionMode type for project execution modes (parallel, sequential). - Updated SetupOpts to use ExecutionMode instead of string literals. - Enhanced workflow states to include a new "In Review" state with appropriate transitions. - Implemented TestHarness for end-to-end testing, including command interception and workspace setup. - Created TestProvider for in-memory issue tracking during tests. - Refactored project registration and setup tools to utilize ExecutionMode. - Updated various tools to ensure compatibility with new workflow and execution modes. - Added new dependencies: cockatiel for resilience and zod for schema validation.
78 lines
2.0 KiB
TypeScript
78 lines
2.0 KiB
TypeScript
/**
|
|
* roles/registry.ts — Single source of truth for all worker roles.
|
|
*
|
|
* Adding a new role? Just add an entry here. Everything else derives from this.
|
|
*
|
|
* Each role defines:
|
|
* - Identity (id, displayName)
|
|
* - Levels and models
|
|
* - Emoji for announcements
|
|
* - Valid completion results
|
|
* - Session key matching
|
|
* - Notification preferences
|
|
*/
|
|
import type { RoleConfig } from "./types.js";
|
|
|
|
export const ROLE_REGISTRY: Record<string, RoleConfig> = {
|
|
developer: {
|
|
id: "developer",
|
|
displayName: "DEVELOPER",
|
|
levels: ["junior", "medior", "senior"],
|
|
defaultLevel: "medior",
|
|
models: {
|
|
junior: "anthropic/claude-haiku-4-5",
|
|
medior: "anthropic/claude-sonnet-4-5",
|
|
senior: "anthropic/claude-opus-4-6",
|
|
},
|
|
emoji: {
|
|
junior: "⚡",
|
|
medior: "🔧",
|
|
senior: "🧠",
|
|
},
|
|
fallbackEmoji: "🔧",
|
|
completionResults: ["done", "review", "blocked"],
|
|
sessionKeyPattern: "developer",
|
|
notifications: { onStart: true, onComplete: true },
|
|
},
|
|
|
|
tester: {
|
|
id: "tester",
|
|
displayName: "TESTER",
|
|
levels: ["junior", "medior", "senior"],
|
|
defaultLevel: "medior",
|
|
models: {
|
|
junior: "anthropic/claude-haiku-4-5",
|
|
medior: "anthropic/claude-sonnet-4-5",
|
|
senior: "anthropic/claude-opus-4-6",
|
|
},
|
|
emoji: {
|
|
junior: "⚡",
|
|
medior: "🔍",
|
|
senior: "🧠",
|
|
},
|
|
fallbackEmoji: "🔍",
|
|
completionResults: ["pass", "fail", "refine", "blocked"],
|
|
sessionKeyPattern: "tester",
|
|
notifications: { onStart: true, onComplete: true },
|
|
},
|
|
|
|
architect: {
|
|
id: "architect",
|
|
displayName: "ARCHITECT",
|
|
levels: ["junior", "senior"],
|
|
defaultLevel: "junior",
|
|
models: {
|
|
junior: "anthropic/claude-sonnet-4-5",
|
|
senior: "anthropic/claude-opus-4-6",
|
|
},
|
|
emoji: {
|
|
junior: "📐",
|
|
senior: "🏗️",
|
|
},
|
|
fallbackEmoji: "🏗️",
|
|
completionResults: ["done", "blocked"],
|
|
sessionKeyPattern: "architect",
|
|
notifications: { onStart: true, onComplete: true },
|
|
},
|
|
};
|