agentacta 1.4.0 → 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;
@@ -453,18 +474,21 @@ const server = http.createServer((req, res) => {
453
474
  res.write(': connected\n\n');
454
475
 
455
476
  let lastTs = query.after || new Date().toISOString();
477
+ let lastId = query.afterId || '';
456
478
 
457
479
  const onUpdate = () => {
458
480
  try {
459
481
  const rows = db.prepare(
460
482
  `SELECT e.*, s.summary as session_summary FROM events e
461
483
  JOIN sessions s ON s.id = e.session_id
462
- WHERE e.timestamp > ?
463
- ORDER BY e.timestamp ASC`
464
- ).all(lastTs);
484
+ WHERE (e.timestamp > ?) OR (e.timestamp = ? AND e.id > ?)
485
+ ORDER BY e.timestamp ASC, e.id ASC`
486
+ ).all(lastTs, lastTs, lastId);
465
487
  if (rows.length) {
466
- lastTs = rows[rows.length - 1].timestamp;
467
- res.write(`id: ${lastTs}\ndata: ${JSON.stringify(rows)}\n\n`);
488
+ const tail = rows[rows.length - 1];
489
+ lastTs = tail.timestamp || lastTs;
490
+ lastId = tail.id || lastId;
491
+ res.write(`id: ${lastTs}:${lastId}\ndata: ${JSON.stringify(rows)}\n\n`);
468
492
  }
469
493
  } catch (err) {
470
494
  console.error('Timeline SSE error:', err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentacta",
3
- "version": "1.4.0",
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": {