mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
refactor(issue): remove assigned_executor from QueueItem interface
Queue is an execution plan without executor assignment. Executor is determined at runtime by /issue:execute command. Changes: - Remove assigned_executor from QueueItem interface - Remove from dag nodes, list display, execution_hints - Simplify queue list output (remove Executor column) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,6 @@ interface QueueItem {
|
|||||||
execution_group: string;
|
execution_group: string;
|
||||||
depends_on: string[];
|
depends_on: string[];
|
||||||
semantic_priority: number;
|
semantic_priority: number;
|
||||||
assigned_executor: 'codex' | 'gemini' | 'agent';
|
|
||||||
task_count?: number; // For solution-level queues
|
task_count?: number; // For solution-level queues
|
||||||
files_touched?: string[]; // For solution-level queues
|
files_touched?: string[]; // For solution-level queues
|
||||||
queued_at?: string;
|
queued_at?: string;
|
||||||
@@ -978,7 +977,6 @@ async function queueAction(subAction: string | undefined, issueId: string | unde
|
|||||||
issue_id: item.issue_id,
|
issue_id: item.issue_id,
|
||||||
solution_id: item.solution_id,
|
solution_id: item.solution_id,
|
||||||
status: item.status,
|
status: item.status,
|
||||||
executor: item.assigned_executor,
|
|
||||||
priority: item.semantic_priority,
|
priority: item.semantic_priority,
|
||||||
depends_on: item.depends_on || [],
|
depends_on: item.depends_on || [],
|
||||||
task_count: item.task_count || 1,
|
task_count: item.task_count || 1,
|
||||||
@@ -1195,7 +1193,6 @@ async function queueAction(subAction: string | undefined, issueId: string | unde
|
|||||||
execution_group: 'P1',
|
execution_group: 'P1',
|
||||||
depends_on: [],
|
depends_on: [],
|
||||||
semantic_priority: 0.5,
|
semantic_priority: 0.5,
|
||||||
assigned_executor: 'codex',
|
|
||||||
task_count: solution.tasks?.length || 0,
|
task_count: solution.tasks?.length || 0,
|
||||||
files_touched: Array.from(filesTouched)
|
files_touched: Array.from(filesTouched)
|
||||||
});
|
});
|
||||||
@@ -1237,11 +1234,11 @@ async function queueAction(subAction: string | undefined, issueId: string | unde
|
|||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
if (isSolutionLevel) {
|
if (isSolutionLevel) {
|
||||||
console.log(chalk.gray('ItemID'.padEnd(10) + 'Issue'.padEnd(15) + 'Tasks'.padEnd(8) + 'Status'.padEnd(12) + 'Executor'));
|
console.log(chalk.gray('ItemID'.padEnd(10) + 'Issue'.padEnd(15) + 'Tasks'.padEnd(8) + 'Status'));
|
||||||
} else {
|
} else {
|
||||||
console.log(chalk.gray('ItemID'.padEnd(10) + 'Issue'.padEnd(15) + 'Task'.padEnd(8) + 'Status'.padEnd(12) + 'Executor'));
|
console.log(chalk.gray('ItemID'.padEnd(10) + 'Issue'.padEnd(15) + 'Task'.padEnd(8) + 'Status'));
|
||||||
}
|
}
|
||||||
console.log(chalk.gray('-'.repeat(60)));
|
console.log(chalk.gray('-'.repeat(48)));
|
||||||
|
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
const statusColor = {
|
const statusColor = {
|
||||||
@@ -1261,8 +1258,7 @@ async function queueAction(subAction: string | undefined, issueId: string | unde
|
|||||||
item.item_id.padEnd(10) +
|
item.item_id.padEnd(10) +
|
||||||
item.issue_id.substring(0, 13).padEnd(15) +
|
item.issue_id.substring(0, 13).padEnd(15) +
|
||||||
thirdCol +
|
thirdCol +
|
||||||
statusColor(item.status.padEnd(12)) +
|
statusColor(item.status)
|
||||||
item.assigned_executor
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1371,7 +1367,6 @@ async function nextAction(itemId: string | undefined, options: IssueOptions): Pr
|
|||||||
resumed: isResume,
|
resumed: isResume,
|
||||||
resume_note: isResume ? `Resuming interrupted item (started: ${nextItem.started_at})` : undefined,
|
resume_note: isResume ? `Resuming interrupted item (started: ${nextItem.started_at})` : undefined,
|
||||||
execution_hints: {
|
execution_hints: {
|
||||||
executor: nextItem.assigned_executor,
|
|
||||||
task_count: solution.tasks?.length || 0,
|
task_count: solution.tasks?.length || 0,
|
||||||
estimated_minutes: totalMinutes
|
estimated_minutes: totalMinutes
|
||||||
},
|
},
|
||||||
@@ -1429,7 +1424,6 @@ async function detailAction(itemId: string | undefined, options: IssueOptions):
|
|||||||
exploration_context: solution.exploration_context || {}
|
exploration_context: solution.exploration_context || {}
|
||||||
},
|
},
|
||||||
execution_hints: {
|
execution_hints: {
|
||||||
executor: queueItem.assigned_executor,
|
|
||||||
task_count: solution.tasks?.length || 0,
|
task_count: solution.tasks?.length || 0,
|
||||||
estimated_minutes: totalMinutes
|
estimated_minutes: totalMinutes
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user