- Removed the deprecated tiers.ts file and migrated all related functionality to roles/index.js. - Updated tests and tools to reflect the new role structure, replacing references to "dev", "qa", and "architect" with "developer", "tester", and "architect". - Adjusted workflow configurations and state management to accommodate the new role naming conventions. - Enhanced project registration and health check tools to support dynamic role handling. - Updated task creation, update, and completion processes to align with the new role definitions. - Improved documentation and comments to clarify role responsibilities and usage.
43 lines
895 B
TypeScript
43 lines
895 B
TypeScript
/**
|
|
* roles/ — Centralized role configuration.
|
|
*
|
|
* Single source of truth for all worker roles in DevClaw.
|
|
* To add a new role, add an entry to registry.ts — everything else derives from it.
|
|
*/
|
|
export { ROLE_REGISTRY } from "./registry.js";
|
|
export type { RoleConfig, RoleId } from "./types.js";
|
|
export {
|
|
// Role IDs
|
|
type WorkerRole,
|
|
getAllRoleIds,
|
|
isValidRole,
|
|
getRole,
|
|
requireRole,
|
|
// Role aliases
|
|
ROLE_ALIASES,
|
|
canonicalRole,
|
|
// Level aliases
|
|
LEVEL_ALIASES,
|
|
canonicalLevel,
|
|
// Levels
|
|
getLevelsForRole,
|
|
getAllLevels,
|
|
isLevelForRole,
|
|
roleForLevel,
|
|
getDefaultLevel,
|
|
// Models
|
|
getDefaultModel,
|
|
getAllDefaultModels,
|
|
resolveModel,
|
|
// Emoji
|
|
getEmoji,
|
|
getFallbackEmoji,
|
|
// Completion
|
|
getCompletionResults,
|
|
isValidResult,
|
|
// Session keys
|
|
getSessionKeyRolePattern,
|
|
// Notifications
|
|
isNotificationEnabled,
|
|
} from "./selectors.js";
|