auto-sync: 2026-05-19 14:01:22

This commit is contained in:
cfdaily
2026-05-19 14:01:22 +08:00
parent 1baf26237e
commit 20a307874d
2 changed files with 10 additions and 7 deletions
+4
View File
@@ -14,6 +14,10 @@ export function setApiProjectId(pid: string | null) {
_currentProjectId = pid;
}
export function _getProjectId(): string | null {
return _currentProjectId;
}
function projectId(): string {
if (!_currentProjectId) throw new Error('No project selected');
return _currentProjectId;
+6 -7
View File
@@ -21,18 +21,17 @@ const STATUS_META: Record<string, { color: string; label: string }> = {
cancelled: { color: '#6b7280', label: '已取消' },
};
// v2.8: 对齐设计文档的 Modal 完整按钮
const VALID_TRANSITIONS: Record<string, string[]> = {
pending: ['claimed', 'cancelled'],
claimed: ['working', 'paused', 'cancelled'],
working: ['review', 'paused', 'escalated', 'cancelled'],
review: ['done', 'pending', 'failed', 'escalated'],
claimed: ['working', 'pending', 'paused', 'cancelled'],
working: ['review', 'blocked', 'failed', 'paused', 'escalated', 'waiting_human', 'cancelled'],
paused: ['working', 'cancelled'],
review: ['done', 'pending', 'failed', 'escalated', 'waiting_human', 'cancelled'],
escalated: ['working', 'pending', 'cancelled'],
waiting_human: ['done', 'pending'],
done: [],
failed: ['pending', 'escalated', 'cancelled'],
waiting_human: ['working', 'done', 'cancelled'],
blocked: ['pending', 'escalated', 'cancelled'],
failed: ['pending', 'escalated', 'cancelled'],
done: [],
cancelled: [],
};