diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 31479f5..e90952b 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -1,4 +1,4 @@ -# BTerminal — Claude Behavioral Guide +# Agent Orchestrator — Claude Behavioral Guide ## Workflow @@ -22,7 +22,7 @@ ## Rules - Do not modify v1 code (`bterminal.py`) unless explicitly asked — it is production-stable. -- v2/v3 work goes on the `v2-mission-control` branch, not master. +- v2/v3 work goes on the `dexter_changes` branch (repo: agent-orchestrator), not master. - v2 architecture decisions must reference `docs/task_plan.md` Decisions Log. - v3 architecture decisions must reference `docs/v3-task_plan.md` Decisions Log. - When adding new decisions, append to the Decisions Log table with date. diff --git a/v2/index.html b/v2/index.html index 3a22257..47d67ec 100644 --- a/v2/index.html +++ b/v2/index.html @@ -3,7 +3,7 @@ - BTerminal + Agent Orchestrator
diff --git a/v2/src-tauri/src/btmsg.rs b/v2/src-tauri/src/btmsg.rs index b5ca5aa..ca5e4b1 100644 --- a/v2/src-tauri/src/btmsg.rs +++ b/v2/src-tauri/src/btmsg.rs @@ -33,7 +33,7 @@ fn open_db() -> Result { .map_err(|e| format!("Failed to open btmsg.db: {e}"))?; conn.query_row("PRAGMA journal_mode=WAL", [], |_| Ok(())) .map_err(|e| format!("Failed to set WAL mode: {e}"))?; - conn.pragma_update(None, "busy_timeout", 5000) + conn.query_row("PRAGMA busy_timeout = 5000", [], |_| Ok(())) .map_err(|e| format!("Failed to set busy_timeout: {e}"))?; Ok(conn) } @@ -480,7 +480,7 @@ fn open_db_or_create() -> Result { conn.query_row("PRAGMA journal_mode=WAL", [], |_| Ok(())) .map_err(|e| format!("Failed to set WAL mode: {e}"))?; - conn.pragma_update(None, "busy_timeout", 5000) + conn.query_row("PRAGMA busy_timeout = 5000", [], |_| Ok(())) .map_err(|e| format!("Failed to set busy_timeout: {e}"))?; // Create tables if they don't exist (same schema as Python btmsg CLI) diff --git a/v2/src-tauri/src/bttask.rs b/v2/src-tauri/src/bttask.rs index 6c46cfe..642bb01 100644 --- a/v2/src-tauri/src/bttask.rs +++ b/v2/src-tauri/src/bttask.rs @@ -33,7 +33,7 @@ fn open_db() -> Result { .map_err(|e| format!("Failed to open btmsg.db: {e}"))?; conn.query_row("PRAGMA journal_mode=WAL", [], |_| Ok(())) .map_err(|e| format!("Failed to set WAL mode: {e}"))?; - conn.pragma_update(None, "busy_timeout", 5000) + conn.query_row("PRAGMA busy_timeout = 5000", [], |_| Ok(())) .map_err(|e| format!("Failed to set busy_timeout: {e}"))?; // Migration: add version column if missing diff --git a/v2/src-tauri/tauri.conf.json b/v2/src-tauri/tauri.conf.json index 60920c8..0853781 100644 --- a/v2/src-tauri/tauri.conf.json +++ b/v2/src-tauri/tauri.conf.json @@ -1,8 +1,8 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "bterminal", + "productName": "agent-orchestrator", "version": "0.1.0", - "identifier": "com.dexterfromlab.bterminal", + "identifier": "com.dexterfromlab.agent-orchestrator", "build": { "frontendDist": "../dist", "devUrl": "http://localhost:9700", @@ -12,7 +12,7 @@ "app": { "windows": [ { - "title": "BTerminal", + "title": "Agent Orchestrator", "width": 1920, "height": 1080, "resizable": true, @@ -27,7 +27,7 @@ "plugins": { "updater": { "endpoints": [ - "https://github.com/DexterFromLab/BTerminal/releases/latest/download/latest.json" + "https://github.com/DexterFromLab/agent-orchestrator/releases/latest/download/latest.json" ], "dialog": true, "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEJCRkZEMERDMTUwMzY5MjIKUldRaWFRTVYzTkQvdTYwRDh6YStaSE9rWUZYYkRGd3UvVUcydE1IQVdTM29uNTRPTlpjQmFqVFEK" @@ -50,7 +50,7 @@ ], "category": "DeveloperTool", "shortDescription": "Multi-session Claude agent dashboard", - "longDescription": "BTerminal is a terminal emulator with integrated Claude AI agent sessions, SSH management, and a tiling pane layout. Built with Tauri, Svelte 5, and xterm.js.", + "longDescription": "Agent Orchestrator is a multi-project agent dashboard with integrated Claude AI sessions, SSH management, and multi-agent orchestration. Built with Tauri, Svelte 5, and xterm.js.", "linux": { "deb": { "depends": [ diff --git a/v2/src/lib/components/Context/ContextPane.svelte b/v2/src/lib/components/Context/ContextPane.svelte index d7d2834..98666b8 100644 --- a/v2/src/lib/components/Context/ContextPane.svelte +++ b/v2/src/lib/components/Context/ContextPane.svelte @@ -32,7 +32,7 @@ loading = true; try { // Register project if not already (INSERT OR IGNORE) - await ctxRegisterProject(projectName, `BTerminal project: ${projectName}`, projectCwd); + await ctxRegisterProject(projectName, `Agent Orchestrator project: ${projectName}`, projectCwd); const [ctx, shared, sums] = await Promise.all([ ctxGetContext(projectName), diff --git a/v2/src/lib/components/StatusBar/StatusBar.svelte b/v2/src/lib/components/StatusBar/StatusBar.svelte index fd33dd6..ff9f0bf 100644 --- a/v2/src/lib/components/StatusBar/StatusBar.svelte +++ b/v2/src/lib/components/StatusBar/StatusBar.svelte @@ -155,7 +155,7 @@ {/if} - BTerminal v3 + Agent Orchestrator v3 diff --git a/v2/src/lib/components/Workspace/CommsTab.svelte b/v2/src/lib/components/Workspace/CommsTab.svelte index 0739ab1..5cb919b 100644 --- a/v2/src/lib/components/Workspace/CommsTab.svelte +++ b/v2/src/lib/components/Workspace/CommsTab.svelte @@ -54,8 +54,8 @@ try { agents = await getGroupAgents(groupId); channels = await getChannels(groupId); - } catch { - // btmsg.db might not exist + } catch (e) { + console.error('[CommsTab] loadData failed:', e); } } @@ -70,8 +70,8 @@ } else if (currentView.type === 'channel') { channelMessages = await getChannelMessages(currentView.channelId, 100); } - } catch { - // silently fail + } catch (e) { + console.error('[CommsTab] loadMessages failed:', e); } } @@ -91,7 +91,8 @@ $effect(() => { void groupId; if (groupId) { - ensureAdmin(groupId).catch(() => {}); + console.log('[CommsTab] groupId:', groupId); + ensureAdmin(groupId).catch((e) => console.error('[CommsTab] ensureAdmin failed:', e)); loadData(); } });