agentacta 2026.3.5 → 2026.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,20 +39,10 @@ AgentActa gives you one place to inspect the full trail.
39
39
  - ⚡ Live indexing via file watching
40
40
  - 📱 Mobile-friendly UI
41
41
  - 💡 Search suggestions based on real data
42
+ - ⌨️ Command palette (⌘K / Ctrl+K) for quick navigation
43
+ - 🎨 Theme settings (system, light, dark, OLED)
44
+ - 🏥 Health endpoint for monitoring (`/api/health`)
42
45
 
43
- ## Demo
44
-
45
- https://github.com/mirajchokshi/agentacta/raw/main/screenshots/demo-final.mp4
46
-
47
- ## Screenshots
48
-
49
- ![Search](screenshots/search.png)
50
- ![Sessions](screenshots/sessions.png)
51
- ![Session Detail](screenshots/session-detail.png)
52
- ![Timeline](screenshots/timeline.png)
53
- ![Files](screenshots/files.png)
54
- ![Stats](screenshots/stats.png)
55
- ![Search Results](screenshots/search-results.png)
56
46
 
57
47
  ## Quick start
58
48
 
@@ -170,6 +160,7 @@ Default config:
170
160
  | `GET /api/export/session/:id?format=md` | Export one session |
171
161
  | `GET /api/timeline/stream?after=<ts>` | SSE stream for live timeline updates |
172
162
  | `POST /api/maintenance` | VACUUM + WAL checkpoint (returns size before/after) |
163
+ | `GET /api/health` | Server status, version, uptime, session count |
173
164
  | `GET /api/export/search?q=<query>&format=md` | Export search results |
174
165
 
175
166
  Agent integration example:
@@ -179,19 +170,6 @@ const res = await fetch('http://localhost:4003/api/search?q=deployment+issue&lim
179
170
  const data = await res.json();
180
171
  ```
181
172
 
182
- ## Demo mode
183
-
184
- ```bash
185
- # seed demo data + run
186
- npm run demo
187
-
188
- # or split steps
189
- node scripts/seed-demo.js
190
- node index.js --demo
191
- ```
192
-
193
- Demo mode creates 7 realistic sessions (weather app build path: scaffolding, API, frontend, debugging, deployment, tests, sub-agent task).
194
-
195
173
  ## Security
196
174
 
197
175
  AgentActa binds to `127.0.0.1` by default.
package/index.js CHANGED
@@ -4,6 +4,13 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const { EventEmitter } = require('events');
6
6
 
7
+ // --version / -v flag: print version and exit
8
+ if (process.argv.includes('--version') || process.argv.includes('-v')) {
9
+ const pkg = require('./package.json');
10
+ console.log(`${pkg.name} v${pkg.version}`);
11
+ process.exit(0);
12
+ }
13
+
7
14
  // --demo flag: use demo session data (must run before config load)
8
15
  if (process.argv.includes('--demo')) {
9
16
  const demoDir = path.join(__dirname, 'demo');
@@ -193,6 +200,20 @@ const server = http.createServer((req, res) => {
193
200
  return json(res, { ok: true, sessions: result.sessions, events: result.events });
194
201
  }
195
202
 
203
+ else if (pathname === '/api/health') {
204
+ const pkg = require('./package.json');
205
+ const sessions = db.prepare('SELECT COUNT(*) as c FROM sessions').get().c;
206
+ const dbSize = getDbSize();
207
+ return json(res, {
208
+ status: 'ok',
209
+ version: pkg.version,
210
+ uptime: Math.round(process.uptime()),
211
+ sessions,
212
+ dbSizeBytes: dbSize.bytes,
213
+ node: process.version
214
+ });
215
+ }
216
+
196
217
  else if (pathname === '/api/config') {
197
218
  const dbSize = getDbSize();
198
219
  const archiveCount = db.prepare('SELECT COUNT(*) as c FROM archive').get().c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentacta",
3
- "version": "2026.3.5",
3
+ "version": "2026.3.6",
4
4
  "description": "Audit trail and search engine for AI agent sessions",
5
5
  "main": "index.js",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -1148,6 +1148,14 @@ async function viewStats() {
1148
1148
  ${data.agents && data.agents.length > 1 ? `<div class="section-label">Agents</div><div class="filters" style="margin-bottom:var(--space-xl)">${data.agents.map(a => `<span class="filter-chip">${escHtml(a)}</span>`).join('')}</div>` : ''}
1149
1149
  <div class="section-label">Tools Used</div>
1150
1150
  <div class="tools-grid">${[...new Set((data.tools||[]).filter(t => t).map(t => fmtToolGroup(t)))].sort().map(t => `<span class="tool-chip">${escHtml(t)}</span>`).join('')}</div>
1151
+
1152
+ <div class="section-label">System Info</div>
1153
+ <div id="systemInfoContainer" style="display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:var(--space-md);margin-bottom:var(--space-md)">
1154
+ <div class="config-card"><div class="config-label">Version</div><div class="config-value" id="sysVersion">…</div></div>
1155
+ <div class="config-card"><div class="config-label">Uptime</div><div class="config-value" id="sysUptime">…</div></div>
1156
+ <div class="config-card"><div class="config-label">Indexed Sessions</div><div class="config-value" id="sysSessions">…</div></div>
1157
+ <div class="config-card"><div class="config-label">Node.js</div><div class="config-value" id="sysNode">…</div></div>
1158
+ </div>
1151
1159
  </div>`;
1152
1160
 
1153
1161
  content.innerHTML = html;
@@ -1187,6 +1195,31 @@ async function viewStats() {
1187
1195
  optimizeBtn.disabled = false;
1188
1196
  });
1189
1197
  }
1198
+
1199
+ // Fetch system info
1200
+ api('/health').then(h => {
1201
+ if (h._error) return;
1202
+ const fmtUptime = (s) => {
1203
+ const d = Math.floor(s / 86400);
1204
+ const hr = Math.floor((s % 86400) / 3600);
1205
+ const m = Math.floor((s % 3600) / 60);
1206
+ if (d > 0) return `${d}d ${hr}h`;
1207
+ if (hr > 0) return `${hr}h ${m}m`;
1208
+ return `${m}m`;
1209
+ };
1210
+ const fmtBytes = (b) => {
1211
+ if (b >= 1024 * 1024) return `${(b / (1024 * 1024)).toFixed(1)} MB`;
1212
+ return `${(b / 1024).toFixed(1)} KB`;
1213
+ };
1214
+ const v = $('#sysVersion');
1215
+ const u = $('#sysUptime');
1216
+ const sc = $('#sysSessions');
1217
+ const n = $('#sysNode');
1218
+ if (v) v.textContent = `v${h.version}`;
1219
+ if (u) u.textContent = fmtUptime(h.uptime);
1220
+ if (sc) sc.textContent = String(h.sessions);
1221
+ if (n) n.textContent = h.node;
1222
+ });
1190
1223
  }
1191
1224
 
1192
1225
  async function viewFiles() {