mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 15:39:41 +02:00
chore: bump version to 0.1437
This commit is contained in:
@@ -132,8 +132,13 @@ const MAX_TRACKED_AGENTS = 500; // Maximum agents to track (LRU eviction when ex
|
||||
const INTERNAL_AGENT_PATTERNS = [
|
||||
/^\[?SUGGESTION MODE/i, // Claude Code's internal suggestion mode
|
||||
/^Suggest what user might/i, // Suggestion mode prompt variant
|
||||
/^aprompt$/i, // Internal prompt agent
|
||||
/^a\s?prompt/i, // Variants of internal prompt agent
|
||||
];
|
||||
|
||||
// Minimum description length - very short descriptions are likely internal or malformed
|
||||
const MIN_DESCRIPTION_LENGTH = 5;
|
||||
|
||||
// Display/preview length constants
|
||||
const TEXT_PREVIEW_LENGTH = 200; // Length for text previews in tool results
|
||||
const USER_TEXT_PREVIEW_LENGTH = 80; // Length for user message previews
|
||||
@@ -165,9 +170,12 @@ export class SubagentWatcher extends EventEmitter {
|
||||
/**
|
||||
* Check if a description matches internal Claude Code agent patterns.
|
||||
* These are not real user-initiated subagents and should be filtered out.
|
||||
* Also filters out very short descriptions that are likely internal or malformed.
|
||||
*/
|
||||
private isInternalAgent(description: string | undefined): boolean {
|
||||
if (!description) return false;
|
||||
// Filter out very short descriptions (likely internal or malformed)
|
||||
if (description.length < MIN_DESCRIPTION_LENGTH) return true;
|
||||
return INTERNAL_AGENT_PATTERNS.some(pattern => pattern.test(description));
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,19 @@ export interface SessionConfig {
|
||||
createdAt: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Available session colors for visual differentiation
|
||||
*/
|
||||
export type SessionColor =
|
||||
| 'default'
|
||||
| 'red'
|
||||
| 'orange'
|
||||
| 'yellow'
|
||||
| 'green'
|
||||
| 'blue'
|
||||
| 'purple'
|
||||
| 'pink';
|
||||
|
||||
/**
|
||||
* Current state of a session
|
||||
*/
|
||||
@@ -163,6 +176,8 @@ export interface SessionState {
|
||||
niceEnabled?: boolean;
|
||||
/** Nice value (-20 to 19) */
|
||||
niceValue?: number;
|
||||
/** User-assigned color for visual differentiation */
|
||||
color?: SessionColor;
|
||||
}
|
||||
|
||||
// ========== Global Stats Types ==========
|
||||
@@ -381,6 +396,26 @@ export interface RespawnConfig {
|
||||
aiPlanCheckCooldownMs?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Named respawn configuration preset for quick setup
|
||||
*/
|
||||
export interface RespawnPreset {
|
||||
/** Unique preset identifier */
|
||||
id: string;
|
||||
/** User-friendly preset name */
|
||||
name: string;
|
||||
/** Description of when to use this preset */
|
||||
description?: string;
|
||||
/** The respawn configuration (without enabled flag) */
|
||||
config: Omit<RespawnConfig, 'enabled'>;
|
||||
/** Duration in minutes (optional default) */
|
||||
durationMinutes?: number;
|
||||
/** Whether this is a built-in preset */
|
||||
builtIn?: boolean;
|
||||
/** Timestamp when created */
|
||||
createdAt: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Application configuration
|
||||
*/
|
||||
|
||||
+4
-97
@@ -685,8 +685,6 @@ class ClaudemanApp {
|
||||
// SSE connection status tracking
|
||||
this.reconnectAttempts = 0;
|
||||
this.maxReconnectAttempts = 10;
|
||||
this.lastDataReceived = Date.now();
|
||||
this.freshnessInterval = null;
|
||||
this.isOnline = navigator.onLine;
|
||||
|
||||
// Accessibility: Focus trap for modals
|
||||
@@ -781,8 +779,6 @@ class ClaudemanApp {
|
||||
this.startSystemStatsPolling();
|
||||
// Setup online/offline detection
|
||||
this.setupOnlineDetection();
|
||||
// Start freshness timer
|
||||
this.startFreshnessTimer();
|
||||
// Load server-stored settings (async, re-applies visibility after load)
|
||||
this.loadAppSettingsFromServer().then(() => {
|
||||
this.applyHeaderVisibilitySettings();
|
||||
@@ -1274,13 +1270,8 @@ class ClaudemanApp {
|
||||
// Store all event listeners for cleanup on reconnect
|
||||
const listeners = [];
|
||||
const addListener = (event, handler) => {
|
||||
// Wrap handler to mark data received on every SSE event
|
||||
const wrappedHandler = (e) => {
|
||||
this.markDataReceived();
|
||||
handler(e);
|
||||
};
|
||||
this.eventSource.addEventListener(event, wrappedHandler);
|
||||
listeners.push({ event, handler: wrappedHandler });
|
||||
this.eventSource.addEventListener(event, handler);
|
||||
listeners.push({ event, handler });
|
||||
};
|
||||
|
||||
// Create cleanup function to remove all listeners
|
||||
@@ -1295,7 +1286,6 @@ class ClaudemanApp {
|
||||
|
||||
this.eventSource.onopen = () => {
|
||||
this.reconnectAttempts = 0;
|
||||
this.lastDataReceived = Date.now();
|
||||
this.setConnectionStatus('connected');
|
||||
};
|
||||
this.eventSource.onerror = () => {
|
||||
@@ -2197,35 +2187,8 @@ class ClaudemanApp {
|
||||
});
|
||||
}
|
||||
|
||||
setConnectionStatus(status) {
|
||||
const dot = document.querySelector('.status-dot');
|
||||
const text = document.querySelector('.status-text');
|
||||
if (!dot || !text) return;
|
||||
|
||||
dot.className = 'status-dot ' + status;
|
||||
|
||||
const statusLabels = {
|
||||
connected: 'Connected',
|
||||
connecting: 'Connecting...',
|
||||
reconnecting: `Reconnecting (${this.reconnectAttempts}/${this.maxReconnectAttempts})`,
|
||||
disconnected: 'Disconnected',
|
||||
offline: 'Offline'
|
||||
};
|
||||
text.textContent = statusLabels[status] || status;
|
||||
|
||||
// Update title with more details
|
||||
const container = document.getElementById('connectionStatus');
|
||||
if (container) {
|
||||
if (status === 'reconnecting') {
|
||||
container.title = `SSE reconnecting - attempt ${this.reconnectAttempts} of ${this.maxReconnectAttempts}`;
|
||||
} else if (status === 'disconnected') {
|
||||
container.title = 'SSE connection lost - max reconnection attempts reached';
|
||||
} else if (status === 'offline') {
|
||||
container.title = 'Browser is offline - waiting for network';
|
||||
} else {
|
||||
container.title = 'SSE connection status';
|
||||
}
|
||||
}
|
||||
setConnectionStatus(_status) {
|
||||
// Connection status UI removed - method kept for compatibility
|
||||
}
|
||||
|
||||
setupOnlineDetection() {
|
||||
@@ -2240,62 +2203,6 @@ class ClaudemanApp {
|
||||
});
|
||||
}
|
||||
|
||||
startFreshnessTimer() {
|
||||
// Clear existing interval if any
|
||||
if (this.freshnessInterval) {
|
||||
clearInterval(this.freshnessInterval);
|
||||
}
|
||||
|
||||
// Update freshness display every second
|
||||
this.freshnessInterval = setInterval(() => {
|
||||
this.updateFreshnessDisplay();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
updateFreshnessDisplay() {
|
||||
const freshnessEl = document.getElementById('statusFreshness');
|
||||
if (!freshnessEl) return;
|
||||
|
||||
const dot = document.querySelector('.status-dot');
|
||||
const isConnected = dot?.classList.contains('connected');
|
||||
|
||||
// Only show freshness when connected
|
||||
if (!isConnected) {
|
||||
freshnessEl.textContent = '';
|
||||
freshnessEl.className = 'status-freshness';
|
||||
return;
|
||||
}
|
||||
|
||||
const elapsed = Math.floor((Date.now() - this.lastDataReceived) / 1000);
|
||||
|
||||
// Format the elapsed time
|
||||
let timeText;
|
||||
if (elapsed < 60) {
|
||||
timeText = `${elapsed}s ago`;
|
||||
} else if (elapsed < 3600) {
|
||||
const mins = Math.floor(elapsed / 60);
|
||||
timeText = `${mins}m ago`;
|
||||
} else {
|
||||
const hours = Math.floor(elapsed / 3600);
|
||||
timeText = `${hours}h ago`;
|
||||
}
|
||||
|
||||
freshnessEl.textContent = timeText;
|
||||
|
||||
// Apply staleness classes
|
||||
freshnessEl.className = 'status-freshness';
|
||||
if (elapsed > 30) {
|
||||
freshnessEl.classList.add('very-stale');
|
||||
} else if (elapsed > 10) {
|
||||
freshnessEl.classList.add('stale');
|
||||
}
|
||||
}
|
||||
|
||||
// Call this when any SSE event is received to update lastDataReceived
|
||||
markDataReceived() {
|
||||
this.lastDataReceived = Date.now();
|
||||
}
|
||||
|
||||
handleInit(data) {
|
||||
// Update version display
|
||||
if (data.version) {
|
||||
|
||||
+139
-17
@@ -13,6 +13,8 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Skip link for keyboard users -->
|
||||
<a href="#terminalContainer" class="skip-link">Skip to terminal</a>
|
||||
<div class="app">
|
||||
<!-- Compact Header with Session Tabs -->
|
||||
<header class="header">
|
||||
@@ -21,14 +23,14 @@
|
||||
</div>
|
||||
|
||||
<!-- Session Tabs -->
|
||||
<div class="session-tabs" id="sessionTabs">
|
||||
<div class="session-tabs" id="sessionTabs" role="tablist" aria-label="Session tabs">
|
||||
</div>
|
||||
|
||||
<div class="header-right">
|
||||
<div class="header-font-controls">
|
||||
<button class="btn-icon-header btn-sm" onclick="app.decreaseFontSize()" title="Decrease font (Ctrl+-)">A-</button>
|
||||
<span class="font-size-display" id="fontSizeDisplay">14</span>
|
||||
<button class="btn-icon-header btn-sm" onclick="app.increaseFontSize()" title="Increase font (Ctrl++)">A+</button>
|
||||
<button class="btn-icon-header btn-sm" onclick="app.decreaseFontSize()" title="Decrease font (Ctrl+-)" aria-label="Decrease font size">A-</button>
|
||||
<span class="font-size-display" id="fontSizeDisplay" aria-label="Current font size">14</span>
|
||||
<button class="btn-icon-header btn-sm" onclick="app.increaseFontSize()" title="Increase font (Ctrl++)" aria-label="Increase font size">A+</button>
|
||||
</div>
|
||||
<div class="header-system-stats" id="headerSystemStats" title="System resource usage">
|
||||
<div class="stat-item">
|
||||
@@ -46,11 +48,11 @@
|
||||
<span class="stat-value" id="statMem">--</span>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-icon-header btn-notifications" onclick="app.toggleNotifications()" title="Notifications">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
|
||||
<button class="btn-icon-header btn-notifications" onclick="app.toggleNotifications()" title="Notifications" aria-label="Toggle notifications">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
|
||||
<span class="notification-badge" id="notifBadge" style="display:none;">0</span>
|
||||
</button>
|
||||
<button class="btn-icon-header btn-settings" onclick="app.openAppSettings()" title="App Settings"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></button>
|
||||
<button class="btn-icon-header btn-settings" onclick="app.openAppSettings()" title="App Settings" aria-label="Open app settings"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></button>
|
||||
<div class="header-tokens" id="headerTokens" title="Total tokens across all sessions">0 tokens</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -62,7 +64,7 @@
|
||||
<div class="timer-progress"><div class="timer-progress-fill" id="timerProgress"></div></div>
|
||||
<span class="timer-meta" id="timerMeta">0 tasks | $0.00</span>
|
||||
</div>
|
||||
<button class="btn-icon-only" onclick="app.stopCurrentRun()" title="Stop">■</button>
|
||||
<button class="btn-icon-only" onclick="app.stopCurrentRun()" title="Stop" aria-label="Stop current run">■</button>
|
||||
</div>
|
||||
|
||||
<!-- Respawn Banner - Compact 2-column layout -->
|
||||
@@ -76,7 +78,7 @@
|
||||
<span class="respawn-cycles">#<span id="respawnCycleCount">0</span></span>
|
||||
<span class="respawn-timer" id="respawnTimer" style="display: none;"></span>
|
||||
<span class="respawn-tokens" id="respawnTokens" style="display: none;"></span>
|
||||
<button class="btn-icon-only" onclick="app.stopRespawn()" title="Stop Respawn">■</button>
|
||||
<button class="btn-icon-only" onclick="app.stopRespawn()" title="Stop Respawn" aria-label="Stop respawn">■</button>
|
||||
</div>
|
||||
<div class="respawn-status-row2" id="respawnStatusRow2">
|
||||
<span class="detection-hook" id="detectionHook" style="display: none;"></span>
|
||||
@@ -309,7 +311,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3>Keyboard Shortcuts</h3>
|
||||
<button class="modal-close" onclick="app.closeHelp()">×</button>
|
||||
<button class="modal-close" onclick="app.closeHelp()" aria-label="Close help">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="shortcuts-grid">
|
||||
@@ -412,7 +414,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3>Session Options</h3>
|
||||
<button class="modal-close" onclick="app.closeSessionOptions()">×</button>
|
||||
<button class="modal-close" onclick="app.closeSessionOptions()" aria-label="Close session options">×</button>
|
||||
</div>
|
||||
<!-- Modal Tabs -->
|
||||
<div class="modal-tabs">
|
||||
@@ -456,6 +458,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-section-header">Presets</div>
|
||||
<div class="form-row">
|
||||
<label>Load Preset</label>
|
||||
<div class="preset-selector">
|
||||
<select id="respawnPresetSelect" onchange="app.updatePresetDescription()">
|
||||
<option value="">-- Select preset --</option>
|
||||
<optgroup label="Built-in" id="builtinPresetsGroup">
|
||||
</optgroup>
|
||||
<optgroup label="Custom" id="customPresetsGroup">
|
||||
</optgroup>
|
||||
</select>
|
||||
<button type="button" class="btn btn-sm" onclick="app.loadRespawnPreset()" title="Apply preset">Apply</button>
|
||||
<button type="button" class="btn btn-sm btn-secondary" onclick="app.saveCurrentAsPreset()" title="Save current config as preset">Save As...</button>
|
||||
</div>
|
||||
<p class="form-hint" id="presetDescriptionHint"></p>
|
||||
</div>
|
||||
|
||||
<div class="form-section-header">Respawn Cycle</div>
|
||||
<div class="form-row">
|
||||
<label>1. Update Prompt</label>
|
||||
@@ -492,6 +511,37 @@
|
||||
|
||||
<!-- Context Management Tab Content -->
|
||||
<div class="modal-tab-content hidden" id="context-tab">
|
||||
<div class="form-section-header">Appearance</div>
|
||||
<div class="form-row">
|
||||
<label>Session Color</label>
|
||||
<div class="color-picker" id="sessionColorPicker">
|
||||
<button type="button" class="color-swatch" data-color="default" title="Default">
|
||||
<span class="swatch-inner" style="background: var(--bg-hover)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="red" title="Red">
|
||||
<span class="swatch-inner" style="background: var(--session-red)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="orange" title="Orange">
|
||||
<span class="swatch-inner" style="background: var(--session-orange)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="yellow" title="Yellow">
|
||||
<span class="swatch-inner" style="background: var(--session-yellow)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="green" title="Green">
|
||||
<span class="swatch-inner" style="background: var(--session-green)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="blue" title="Blue">
|
||||
<span class="swatch-inner" style="background: var(--session-blue)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="purple" title="Purple">
|
||||
<span class="swatch-inner" style="background: var(--session-purple)"></span>
|
||||
</button>
|
||||
<button type="button" class="color-swatch" data-color="pink" title="Pink">
|
||||
<span class="swatch-inner" style="background: var(--session-pink)"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-section-header">Token Management</div>
|
||||
<div class="context-settings-grid">
|
||||
<div class="context-setting">
|
||||
@@ -618,7 +668,7 @@
|
||||
<div class="modal-content modal-sm">
|
||||
<div class="modal-header">
|
||||
<h3>Close Session</h3>
|
||||
<button class="modal-close" onclick="app.cancelCloseSession()">×</button>
|
||||
<button class="modal-close" onclick="app.cancelCloseSession()" aria-label="Cancel close session">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="modal-session-name" id="closeConfirmSessionName"></p>
|
||||
@@ -645,7 +695,7 @@
|
||||
<div class="modal-content modal-lg">
|
||||
<div class="modal-header">
|
||||
<h3>App Settings</h3>
|
||||
<button class="modal-close" onclick="app.closeAppSettings()">×</button>
|
||||
<button class="modal-close" onclick="app.closeAppSettings()" aria-label="Close app settings">×</button>
|
||||
</div>
|
||||
<div class="modal-tabs">
|
||||
<button class="modal-tab-btn active" data-tab="settings-display">Display</button>
|
||||
@@ -879,6 +929,7 @@
|
||||
<span class="settings-status" id="notifPermissionStatus">?</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="form-hint" style="grid-column: 1 / -1; margin-top: -8px;">For remote access, HTTPS is required. Start with: <code>claudeman web --https</code></span>
|
||||
|
||||
<!-- Alerts Section -->
|
||||
<div class="settings-section-header">Alerts</div>
|
||||
@@ -923,6 +974,52 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Event Type Preferences -->
|
||||
<div class="settings-grid" style="margin-top: 12px;">
|
||||
<div class="settings-section-header">Per-Event Settings</div>
|
||||
</div>
|
||||
<div class="event-type-grid">
|
||||
<div class="event-header">Event</div>
|
||||
<div class="event-header">On</div>
|
||||
<div class="event-header">Browser</div>
|
||||
<div class="event-header">Sound</div>
|
||||
|
||||
<div class="event-label">Permission prompts</div>
|
||||
<input type="checkbox" id="eventPermissionEnabled" checked>
|
||||
<input type="checkbox" id="eventPermissionBrowser" checked>
|
||||
<input type="checkbox" id="eventPermissionAudio" checked>
|
||||
|
||||
<div class="event-label">Questions from Claude</div>
|
||||
<input type="checkbox" id="eventQuestionEnabled" checked>
|
||||
<input type="checkbox" id="eventQuestionBrowser" checked>
|
||||
<input type="checkbox" id="eventQuestionAudio" checked>
|
||||
|
||||
<div class="event-label">Session idle</div>
|
||||
<input type="checkbox" id="eventIdleEnabled" checked>
|
||||
<input type="checkbox" id="eventIdleBrowser" checked>
|
||||
<input type="checkbox" id="eventIdleAudio">
|
||||
|
||||
<div class="event-label">Response complete</div>
|
||||
<input type="checkbox" id="eventStopEnabled" checked>
|
||||
<input type="checkbox" id="eventStopBrowser">
|
||||
<input type="checkbox" id="eventStopAudio">
|
||||
|
||||
<div class="event-label">Respawn cycles</div>
|
||||
<input type="checkbox" id="eventRespawnEnabled" checked>
|
||||
<input type="checkbox" id="eventRespawnBrowser">
|
||||
<input type="checkbox" id="eventRespawnAudio">
|
||||
|
||||
<div class="event-label">Task complete</div>
|
||||
<input type="checkbox" id="eventRalphEnabled" checked>
|
||||
<input type="checkbox" id="eventRalphBrowser" checked>
|
||||
<input type="checkbox" id="eventRalphAudio" checked>
|
||||
|
||||
<div class="event-label">Subagent activity</div>
|
||||
<input type="checkbox" id="eventSubagentEnabled">
|
||||
<input type="checkbox" id="eventSubagentBrowser">
|
||||
<input type="checkbox" id="eventSubagentAudio">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
@@ -938,7 +1035,7 @@
|
||||
<div class="modal-content modal-lg">
|
||||
<div class="modal-header">
|
||||
<h3>Add Case</h3>
|
||||
<button class="modal-close" onclick="app.closeCreateCaseModal()">×</button>
|
||||
<button class="modal-close" onclick="app.closeCreateCaseModal()" aria-label="Close create case">×</button>
|
||||
</div>
|
||||
<div class="modal-tabs">
|
||||
<button class="modal-tab-btn active" data-tab="case-create">Create New</button>
|
||||
@@ -990,7 +1087,7 @@
|
||||
<span class="agent-count" id="wizardAgentCount">0</span>
|
||||
</button>
|
||||
<button class="btn-icon-only wizard-minimize-btn" id="wizardMinimizeBtn" onclick="app.minimizeRalphWizard()" title="Minimize wizard">‒</button>
|
||||
<button class="modal-close" onclick="app.closeRalphWizard()">×</button>
|
||||
<button class="modal-close" onclick="app.closeRalphWizard()" aria-label="Close Ralph wizard">×</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1187,7 +1284,7 @@
|
||||
<div class="modal-content modal-sm">
|
||||
<div class="modal-header">
|
||||
<h3>Kill All Sessions</h3>
|
||||
<button class="modal-close" onclick="app.closeKillAllModal()">×</button>
|
||||
<button class="modal-close" onclick="app.closeKillAllModal()" aria-label="Close kill all modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="modal-warning-text">Choose how to close <span id="killAllCount">0</span> session(s):</p>
|
||||
@@ -1228,7 +1325,7 @@
|
||||
<div class="modal-content token-stats-modal">
|
||||
<div class="modal-header">
|
||||
<h3>Token Usage Statistics</h3>
|
||||
<button class="modal-close" onclick="app.closeTokenStats()">×</button>
|
||||
<button class="modal-close" onclick="app.closeTokenStats()" aria-label="Close token statistics">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="stats-summary" id="statsSummary"></div>
|
||||
@@ -1246,6 +1343,31 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Save Preset Modal -->
|
||||
<div class="modal" id="savePresetModal">
|
||||
<div class="modal-backdrop" onclick="app.closeSavePresetModal()"></div>
|
||||
<div class="modal-content modal-sm">
|
||||
<div class="modal-header">
|
||||
<h3>Save Respawn Preset</h3>
|
||||
<button class="modal-close" onclick="app.closeSavePresetModal()" aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-row">
|
||||
<label>Preset Name</label>
|
||||
<input type="text" id="presetNameInput" placeholder="My Custom Preset" maxlength="30">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Description (optional)</label>
|
||||
<input type="text" id="presetDescriptionInput" placeholder="When to use this preset" maxlength="100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-secondary" onclick="app.closeSavePresetModal()">Cancel</button>
|
||||
<button class="btn btn-primary" onclick="app.confirmSavePreset()">Save Preset</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SVG Overlay for Subagent Connection Lines -->
|
||||
<svg id="connectionLines" class="connection-lines-svg">
|
||||
<!-- Lines drawn dynamically -->
|
||||
|
||||
@@ -336,50 +336,6 @@ body {
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.connection-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--yellow);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-dot.connected { background: var(--green); }
|
||||
.status-dot.disconnected { background: var(--red); }
|
||||
.status-dot.connecting {
|
||||
background: var(--yellow);
|
||||
animation: status-pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
.status-dot.reconnecting {
|
||||
background: var(--orange, #f97316);
|
||||
animation: status-pulse 1s ease-in-out infinite;
|
||||
}
|
||||
.status-dot.offline {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
|
||||
@keyframes status-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.5; transform: scale(1.2); }
|
||||
}
|
||||
|
||||
.status-freshness {
|
||||
font-size: 0.6rem;
|
||||
color: var(--text-dim);
|
||||
margin-left: 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-freshness.stale { color: var(--yellow); }
|
||||
.status-freshness.very-stale { color: var(--red); }
|
||||
|
||||
.header-tokens {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user