Rename levels to use consistent industry-standard terminology: - dev: medior → mid - qa: reviewer → mid, tester → junior, add senior level - architect: opus → senior, sonnet → junior Add backward-compatible migration for projects.json and openclaw.json config via level aliases in selectors and projects parser. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
827 B
TypeScript
39 lines
827 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,
|
|
// 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";
|