refactor: rename 'tier' to 'level' across the codebase
- Updated WorkerState type to use 'level' instead of 'tier'. - Modified functions related to worker state management, including parseWorkerState, emptyWorkerState, getSessionForLevel, activateWorker, and deactivateWorker to reflect the new terminology. - Adjusted health check logic to utilize 'level' instead of 'tier'. - Refactored tick and setup tools to accommodate the change from 'tier' to 'level', including model configuration and workspace scaffolding. - Updated tests to ensure consistency with the new 'level' terminology. - Revised documentation and comments to reflect the changes in terminology from 'tier' to 'level'.
This commit is contained in:
@@ -34,7 +34,7 @@ export type NotifyEvent =
|
||||
issueTitle: string;
|
||||
issueUrl: string;
|
||||
role: "dev" | "qa";
|
||||
tier: string;
|
||||
level: string;
|
||||
sessionAction: "spawn" | "send";
|
||||
}
|
||||
| {
|
||||
@@ -69,7 +69,7 @@ function buildMessage(event: NotifyEvent): string {
|
||||
switch (event.type) {
|
||||
case "workerStart": {
|
||||
const action = event.sessionAction === "spawn" ? "🚀 Started" : "▶️ Resumed";
|
||||
return `${action} ${event.role.toUpperCase()} (${event.tier}) on #${event.issueId}: ${event.issueTitle}\n🔗 ${event.issueUrl}`;
|
||||
return `${action} ${event.role.toUpperCase()} (${event.level}) on #${event.issueId}: ${event.issueTitle}\n🔗 ${event.issueUrl}`;
|
||||
}
|
||||
|
||||
case "workerComplete": {
|
||||
@@ -253,7 +253,7 @@ export async function notifyTickPickups(
|
||||
issueTitle: pickup.issueTitle,
|
||||
issueUrl: pickup.issueUrl,
|
||||
role: pickup.role,
|
||||
tier: pickup.tier,
|
||||
level: pickup.level,
|
||||
sessionAction: pickup.sessionAction,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user