agent-trace 0.2.8 → 0.2.9

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/agent-trace.cjs +4 -1
  2. package/package.json +1 -1
package/agent-trace.cjs CHANGED
@@ -25107,9 +25107,9 @@ var SqliteClient = class {
25107
25107
  this.db = new import_better_sqlite3.default(dbPath);
25108
25108
  this.db.pragma("journal_mode = WAL");
25109
25109
  this.db.pragma("synchronous = NORMAL");
25110
+ this.migrateCacheTokenColumns();
25110
25111
  this.migrateDeduplicateEvents();
25111
25112
  this.db.exec(SCHEMA_SQL);
25112
- this.migrateCacheTokenColumns();
25113
25113
  this.migrateRebuildBrokenTraces();
25114
25114
  }
25115
25115
  async insertJsonEachRow(request) {
@@ -28767,12 +28767,15 @@ var SqlitePersistence = class {
28767
28767
  }
28768
28768
  async persistAcceptedEvent(event, trace) {
28769
28769
  const eventWrite = this.eventWriter.writeEvent(event).catch((error) => {
28770
+ console.error(`[agent-trace] sqlite_events write failed: ${String(error)}`);
28770
28771
  this.writeFailures.push(`sqlite_events: ${String(error)}`);
28771
28772
  });
28772
28773
  const traceWrite = this.sessionTraceWriter.writeTrace(trace).catch((error) => {
28774
+ console.error(`[agent-trace] sqlite_traces write failed: ${String(error)}`);
28773
28775
  this.writeFailures.push(`sqlite_traces: ${String(error)}`);
28774
28776
  });
28775
28777
  const sessionWrite = this.postgresWriter.writeTrace(trace).catch((error) => {
28778
+ console.error(`[agent-trace] sqlite_sessions write failed: ${String(error)}`);
28776
28779
  this.writeFailures.push(`sqlite_sessions: ${String(error)}`);
28777
28780
  });
28778
28781
  await Promise.all([eventWrite, traceWrite, sessionWrite]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-trace",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Self-hosted observability for AI coding agents. One command, zero config.",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {