@signetai/signet-memory-openclaw 0.120.0 → 0.121.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 +50 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9262,6 +9262,48 @@ function up70(db) {
9262
9262
  ON entity_aspects(agent_id, proposal_id);
9263
9263
  `);
9264
9264
  }
9265
+ function up71(db) {
9266
+ db.exec(`
9267
+ CREATE TABLE IF NOT EXISTS epistemic_assertions (
9268
+ id TEXT PRIMARY KEY,
9269
+ agent_id TEXT NOT NULL DEFAULT 'default',
9270
+ subject_entity_id TEXT NOT NULL REFERENCES entities(id) ON DELETE CASCADE,
9271
+ claim_attribute_id TEXT REFERENCES entity_attributes(id) ON DELETE SET NULL,
9272
+ predicate TEXT NOT NULL CHECK (
9273
+ predicate IN ('claims', 'believes', 'observed', 'decided', 'prefers', 'denies', 'questions')
9274
+ ),
9275
+ content TEXT NOT NULL,
9276
+ normalized_content TEXT NOT NULL,
9277
+ speaker TEXT,
9278
+ asserted_at TEXT NOT NULL,
9279
+ confidence REAL NOT NULL DEFAULT 0.0 CHECK (confidence >= 0.0 AND confidence <= 1.0),
9280
+ evidence TEXT NOT NULL DEFAULT '[]',
9281
+ source_kind TEXT,
9282
+ source_id TEXT,
9283
+ source_path TEXT,
9284
+ source_root TEXT,
9285
+ status TEXT NOT NULL DEFAULT 'active' CHECK (status IN ('active', 'archived', 'superseded')),
9286
+ supersedes_assertion_id TEXT REFERENCES epistemic_assertions(id) ON DELETE SET NULL,
9287
+ archived_at TEXT,
9288
+ archived_by TEXT,
9289
+ archive_reason TEXT,
9290
+ created_by TEXT NOT NULL DEFAULT 'operator',
9291
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
9292
+ updated_at TEXT NOT NULL DEFAULT (datetime('now'))
9293
+ );
9294
+
9295
+ CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_agent_entity
9296
+ ON epistemic_assertions(agent_id, subject_entity_id, status, asserted_at DESC);
9297
+ CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_agent_speaker
9298
+ ON epistemic_assertions(agent_id, speaker, asserted_at DESC);
9299
+ CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_agent_predicate
9300
+ ON epistemic_assertions(agent_id, predicate, status, asserted_at DESC);
9301
+ CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_agent_source
9302
+ ON epistemic_assertions(agent_id, source_kind, source_id);
9303
+ CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_claim
9304
+ ON epistemic_assertions(agent_id, claim_attribute_id);
9305
+ `);
9306
+ }
9265
9307
  var MIGRATIONS = [
9266
9308
  {
9267
9309
  version: 1,
@@ -9815,6 +9857,14 @@ var MIGRATIONS = [
9815
9857
  { table: "entity_dependencies", column: "status" }
9816
9858
  ]
9817
9859
  }
9860
+ },
9861
+ {
9862
+ version: 71,
9863
+ name: "epistemic-assertions",
9864
+ up: up71,
9865
+ artifacts: {
9866
+ tables: ["epistemic_assertions"]
9867
+ }
9818
9868
  }
9819
9869
  ];
9820
9870
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.120.0",
3
+ "version": "0.121.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",