agentacta 1.1.2 → 1.1.3

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 (3) hide show
  1. package/config.js +1 -0
  2. package/indexer.js +6 -3
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -53,3 +53,4 @@ function loadConfig() {
53
53
  }
54
54
 
55
55
  module.exports = { loadConfig, CONFIG_FILE };
56
+ // v1.1.3
package/indexer.js CHANGED
@@ -290,11 +290,14 @@ function indexFile(db, filePath, agentName, stmts, archiveMode) {
290
290
  }
291
291
  if (!sessionType && !initialPrompt) sessionType = 'heartbeat';
292
292
  // Detect subagent: task-style prompts injected by sessions_spawn
293
- // These typically start with a date/time stamp and contain a detailed task
293
+ // These typically start with a date/time stamp (e.g. "[Wed 2026-...")
294
+ // But exclude System Messages (cron announcements injected into main session)
294
295
  if (!sessionType && initialPrompt) {
295
296
  const p = initialPrompt.trim();
296
- // Sub-agent prompts start with "[Wed 2026-..." or "You are working on..."
297
- if (/^\[(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+\d{4}-/.test(p)) sessionType = 'subagent';
297
+ // Sub-agent prompts start with "[Wed 2026-..." but NOT "[... [System Message]"
298
+ if (/^\[(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+\d{4}-/.test(p) && !p.includes('[System Message]')) {
299
+ sessionType = 'subagent';
300
+ }
298
301
  }
299
302
 
300
303
  const modelsJson = modelsSet.size > 0 ? JSON.stringify([...modelsSet]) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentacta",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Audit trail and search engine for AI agent sessions",
5
5
  "main": "index.js",
6
6
  "bin": {