@signetai/connector-base 0.190.0 → 0.191.0

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/dist/index.js +30 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10869,6 +10869,23 @@ function up121(db) {
10869
10869
  VALUES (1, CURRENT_TIMESTAMP);
10870
10870
  `);
10871
10871
  }
10872
+ function up122(db) {
10873
+ const columns = db.prepare("PRAGMA table_info(dreaming_evidence_exclusions)").all();
10874
+ const names = new Set(columns.map((column) => column.name));
10875
+ if (!names.has("failure_class")) {
10876
+ db.exec("ALTER TABLE dreaming_evidence_exclusions ADD COLUMN failure_class TEXT NOT NULL DEFAULT 'unknown' CHECK (failure_class IN ('incomplete_transcript', 'source_projection', 'scope_mismatch', 'quote_mismatch', 'unknown'))");
10877
+ }
10878
+ if (!names.has("source_fingerprint")) {
10879
+ db.exec("ALTER TABLE dreaming_evidence_exclusions ADD COLUMN source_fingerprint TEXT");
10880
+ }
10881
+ if (!names.has("retry_count")) {
10882
+ db.exec("ALTER TABLE dreaming_evidence_exclusions ADD COLUMN retry_count INTEGER NOT NULL DEFAULT 0");
10883
+ }
10884
+ if (!names.has("last_requeued_at")) {
10885
+ db.exec("ALTER TABLE dreaming_evidence_exclusions ADD COLUMN last_requeued_at TEXT");
10886
+ }
10887
+ db.exec("CREATE INDEX IF NOT EXISTS idx_dreaming_evidence_exclusions_retry ON dreaming_evidence_exclusions (resolved_at, requeue_requested_at, failure_class, retry_count, last_requeued_at)");
10888
+ }
10872
10889
  var MIGRATIONS = [
10873
10890
  {
10874
10891
  version: 1,
@@ -11850,6 +11867,19 @@ var MIGRATIONS = [
11850
11867
  { table: "telemetry_events", column: "last_failure_code" }
11851
11868
  ]
11852
11869
  }
11870
+ },
11871
+ {
11872
+ version: 122,
11873
+ name: "dreaming-evidence-retry",
11874
+ up: up122,
11875
+ artifacts: {
11876
+ columns: [
11877
+ { table: "dreaming_evidence_exclusions", column: "failure_class" },
11878
+ { table: "dreaming_evidence_exclusions", column: "source_fingerprint" },
11879
+ { table: "dreaming_evidence_exclusions", column: "retry_count" },
11880
+ { table: "dreaming_evidence_exclusions", column: "last_requeued_at" }
11881
+ ]
11882
+ }
11853
11883
  }
11854
11884
  ];
11855
11885
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-base",
3
- "version": "0.190.0",
3
+ "version": "0.191.0",
4
4
  "description": "Base class for Signet harness connectors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@signetai/core": "0.190.0",
29
+ "@signetai/core": "0.191.0",
30
30
  "json5": "^2.2.3",
31
31
  "jsonc-parser": "3.3.1"
32
32
  },