From 1f4776e6891348d2dbdcbbf704c0a5901b008ecf Mon Sep 17 00:00:00 2001
From: Adam Malczewski <github@tradam.dev>
Date: Wed, 20 May 2026 23:37:01 +0900
Subject: feat: Claude Reset scheduler + fix key config and Claude grouping

- Added claude-pro key pointing to default credentials, claude-max
  pointing to .credentials-2.json (docker path /root/.claude/)
- POST /models/wake sends 'hi' to haiku for all Claude accounts
- ClaudeReset.svelte: 2 AM rows + 2 PM rows of 6 hour blocks each
  (12-hour American format). Click blocks to schedule wake at :15
- Key Usage now groups all Claude accounts under one 'Claude' card
  instead of duplicating under claude-pro and claude-max cards
---
 packages/frontend/src/lib/components/SidebarPanel.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'packages/frontend/src/lib/components/SidebarPanel.svelte')

diff --git a/packages/frontend/src/lib/components/SidebarPanel.svelte b/packages/frontend/src/lib/components/SidebarPanel.svelte
index 2184818..ddd8ebd 100644
--- a/packages/frontend/src/lib/components/SidebarPanel.svelte
+++ b/packages/frontend/src/lib/components/SidebarPanel.svelte
@@ -5,6 +5,7 @@
 	import SkillsBrowser from "./SkillsBrowser.svelte";
 	import PermissionLog from "./PermissionLog.svelte";
 	import KeyUsage from "./KeyUsage.svelte";
+	import ClaudeReset from "./ClaudeReset.svelte";
 	import type { TaskItem, LogEntry, KeyInfo, ModelInfo } from "../types.js";
 
 	const {
@@ -25,7 +26,7 @@
 
 	let selected = $state("Tasks");
 
-	const options = ["Key Usage", "Model Status", "Tasks", "Config", "Skills", "Permission Log"];
+	const options = ["Key Usage", "Claude Reset", "Model Status", "Tasks", "Config", "Skills", "Permission Log"];
 </script>
 
 <div class="bg-base-200 rounded-lg p-3">
@@ -41,6 +42,8 @@
 	<div class="mt-2">
 		{#if selected === "Key Usage"}
 			<KeyUsage {keys} {apiBase} />
+		{:else if selected === "Claude Reset"}
+			<ClaudeReset {apiBase} />
 		{:else if selected === "Model Status"}
 			<ModelStatus {models} {keys} {tags} />
 		{:else if selected === "Tasks"}
-- 
cgit v1.2.3

