@signetai/signet-memory-openclaw 0.113.1 → 0.114.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 +66 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9096,6 +9096,58 @@ function up66(db) {
9096
9096
  ON memory_search_telemetry(no_hits, created_at DESC);
9097
9097
  `);
9098
9098
  }
9099
+ function hasColumn8(db, table, column) {
9100
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9101
+ return rows.some((row) => row.name === column);
9102
+ }
9103
+ function addColumnIfMissing17(db, table, column, definition) {
9104
+ if (!hasColumn8(db, table, column)) {
9105
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
9106
+ }
9107
+ }
9108
+ function up67(db) {
9109
+ db.exec(`
9110
+ CREATE TABLE IF NOT EXISTS ontology_proposals (
9111
+ id TEXT PRIMARY KEY,
9112
+ agent_id TEXT NOT NULL DEFAULT 'default',
9113
+ operation TEXT NOT NULL,
9114
+ status TEXT NOT NULL DEFAULT 'pending'
9115
+ CHECK (status IN ('pending', 'applied', 'rejected', 'failed')),
9116
+ payload TEXT NOT NULL,
9117
+ confidence REAL NOT NULL DEFAULT 0.0
9118
+ CHECK (confidence >= 0.0 AND confidence <= 1.0),
9119
+ rationale TEXT NOT NULL DEFAULT '',
9120
+ evidence TEXT NOT NULL DEFAULT '[]',
9121
+ risk TEXT,
9122
+ source_kind TEXT,
9123
+ source_id TEXT,
9124
+ source_path TEXT,
9125
+ source_root TEXT,
9126
+ created_by TEXT NOT NULL DEFAULT 'ontology-proposal',
9127
+ applied_by TEXT,
9128
+ rejected_by TEXT,
9129
+ result TEXT,
9130
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
9131
+ updated_at TEXT NOT NULL DEFAULT (datetime('now')),
9132
+ applied_at TEXT,
9133
+ rejected_at TEXT
9134
+ );
9135
+
9136
+ CREATE INDEX IF NOT EXISTS idx_ontology_proposals_agent_status
9137
+ ON ontology_proposals(agent_id, status, updated_at DESC);
9138
+
9139
+ CREATE INDEX IF NOT EXISTS idx_ontology_proposals_agent_operation
9140
+ ON ontology_proposals(agent_id, operation, updated_at DESC);
9141
+
9142
+ CREATE INDEX IF NOT EXISTS idx_ontology_proposals_source
9143
+ ON ontology_proposals(agent_id, source_kind, source_id);
9144
+ `);
9145
+ for (const table of ["entity_attributes", "entity_dependencies"]) {
9146
+ addColumnIfMissing17(db, table, "proposal_id", "TEXT");
9147
+ addColumnIfMissing17(db, table, "proposal_evidence", "TEXT NOT NULL DEFAULT '[]'");
9148
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_${table}_proposal ON ${table}(agent_id, proposal_id)`);
9149
+ }
9150
+ }
9099
9151
  var MIGRATIONS = [
9100
9152
  {
9101
9153
  version: 1,
@@ -9604,6 +9656,20 @@ var MIGRATIONS = [
9604
9656
  artifacts: {
9605
9657
  tables: ["memory_search_telemetry"]
9606
9658
  }
9659
+ },
9660
+ {
9661
+ version: 67,
9662
+ name: "ontology-proposals",
9663
+ up: up67,
9664
+ artifacts: {
9665
+ tables: ["ontology_proposals"],
9666
+ columns: [
9667
+ { table: "entity_attributes", column: "proposal_id" },
9668
+ { table: "entity_attributes", column: "proposal_evidence" },
9669
+ { table: "entity_dependencies", column: "proposal_id" },
9670
+ { table: "entity_dependencies", column: "proposal_evidence" }
9671
+ ]
9672
+ }
9607
9673
  }
9608
9674
  ];
9609
9675
  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.113.1",
3
+ "version": "0.114.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "@sinclair/typebox": "0.34.47"
37
37
  },
38
38
  "devDependencies": {
39
- "@signet/core": "0.113.1",
40
- "@signet/sdk": "0.113.1",
39
+ "@signet/core": "0.114.0",
40
+ "@signet/sdk": "0.114.0",
41
41
  "@types/node": "^22.0.0"
42
42
  },
43
43
  "peerDependencies": {