mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
fix: Add active_queue_id to QueueIndex interface
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -149,6 +149,7 @@ interface Queue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface QueueIndex {
|
interface QueueIndex {
|
||||||
|
active_queue_id: string | null;
|
||||||
active_item_id: string | null;
|
active_item_id: string | null;
|
||||||
queues: {
|
queues: {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -290,7 +291,7 @@ function ensureQueuesDir(): void {
|
|||||||
function readQueueIndex(): QueueIndex {
|
function readQueueIndex(): QueueIndex {
|
||||||
const path = join(getQueuesDir(), 'index.json');
|
const path = join(getQueuesDir(), 'index.json');
|
||||||
if (!existsSync(path)) {
|
if (!existsSync(path)) {
|
||||||
return { active_item_id: null, queues: [] };
|
return { active_queue_id: null, active_item_id: null, queues: [] };
|
||||||
}
|
}
|
||||||
return JSON.parse(readFileSync(path, 'utf-8'));
|
return JSON.parse(readFileSync(path, 'utf-8'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user