agentacta 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -349,9 +349,9 @@ const server = http.createServer((req, res) => {
349
349
  }
350
350
  }
351
351
  else if (pathname === '/api/timeline') {
352
- const date = query.date || new Date().toISOString().slice(0, 10);
353
- const from = date + 'T00:00:00.000Z';
354
- const to = date + 'T23:59:59.999Z';
352
+ const date = query.date || (() => { const n = new Date(); return `${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,'0')}-${String(n.getDate()).padStart(2,'0')}`; })();
353
+ const from = new Date(date + 'T00:00:00').toISOString();
354
+ const to = new Date(date + 'T23:59:59.999').toISOString();
355
355
  const events = db.prepare(
356
356
  `SELECT e.*, s.summary as session_summary FROM events e
357
357
  JOIN sessions s ON s.id = e.session_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentacta",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Audit trail and search engine for AI agent sessions",
5
5
  "main": "index.js",
6
6
  "bin": {