feat: add version display in toolbar (v0.1337)

- Display version number in center of bottom toolbar
- Load version from package.json via server's /api/status
- Version shown on initial load and SSE reconnect

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-25 04:04:24 +01:00
co-authored by Claude Opus 4.5
parent d19d6ceddd
commit ee6b6596d6
5 changed files with 38 additions and 1 deletions
+6
View File
@@ -28,6 +28,11 @@ import { generateClaudeMd } from '../templates/claude-md.js';
import { parseRalphLoopConfig, extractCompletionPhrase } from '../ralph-config.js';
import { writeHooksConfig } from '../hooks-config.js';
import { v4 as uuidv4 } from 'uuid';
import { createRequire } from 'node:module';
// Load version from package.json
const require = createRequire(import.meta.url);
const { version: APP_VERSION } = require('../../package.json');
import {
getErrorMessage,
ApiErrorCode,
@@ -2187,6 +2192,7 @@ export class WebServer extends EventEmitter {
}
return {
version: APP_VERSION,
sessions: this.getSessionsState(),
scheduledRuns: Array.from(this.scheduledRuns.values()),
respawnStatus,