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:
catlog22
2025-12-27 22:48:38 +08:00
parent 726151bfea
commit d705a3e7d9

View File

@@ -149,6 +149,7 @@ interface Queue {
}
interface QueueIndex {
active_queue_id: string | null;
active_item_id: string | null;
queues: {
id: string;
@@ -290,7 +291,7 @@ function ensureQueuesDir(): void {
function readQueueIndex(): QueueIndex {
const path = join(getQueuesDir(), 'index.json');
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'));
}