@signetai/signet-memory-openclaw 0.113.0 → 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 +81 -14
  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;
@@ -10206,28 +10272,29 @@ class SignetClientP2 {
10206
10272
  async sendAgentMessage(opts) {
10207
10273
  return this.transport.post("/api/cross-agent/messages", opts);
10208
10274
  }
10275
+ predictorDeprecated() {
10276
+ throw new Error("Signet predictor APIs were removed in v0.112. Use memory search telemetry and pipeline diagnostics instead.");
10277
+ }
10209
10278
  async getPredictorStatus() {
10210
- return this.transport.get("/api/predictor/status");
10279
+ this.predictorDeprecated();
10211
10280
  }
10212
- async getComparisonsByProject(project) {
10213
- return this.transport.get("/api/predictor/comparisons/by-project", { project });
10281
+ async getComparisonsByProject(_project) {
10282
+ this.predictorDeprecated();
10214
10283
  }
10215
- async getComparisonsByEntity(entityId) {
10216
- return this.transport.get("/api/predictor/comparisons/by-entity", {
10217
- entity_id: entityId
10218
- });
10284
+ async getComparisonsByEntity(_entityId) {
10285
+ this.predictorDeprecated();
10219
10286
  }
10220
- async listComparisons(opts) {
10221
- return this.transport.get("/api/predictor/comparisons", opts);
10287
+ async listComparisons(_opts) {
10288
+ this.predictorDeprecated();
10222
10289
  }
10223
- async listTrainingRuns(opts) {
10224
- return this.transport.get("/api/predictor/training", opts);
10290
+ async listTrainingRuns(_opts) {
10291
+ this.predictorDeprecated();
10225
10292
  }
10226
10293
  async getTrainingPairsCount() {
10227
- return this.transport.get("/api/predictor/training-pairs-count");
10294
+ this.predictorDeprecated();
10228
10295
  }
10229
- async trainPredictor(opts) {
10230
- return this.transport.post("/api/predictor/train", opts ?? {});
10296
+ async trainPredictor(_opts) {
10297
+ this.predictorDeprecated();
10231
10298
  }
10232
10299
  }
10233
10300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.113.0",
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.0",
40
- "@signet/sdk": "0.113.0",
39
+ "@signet/core": "0.114.0",
40
+ "@signet/sdk": "0.114.0",
41
41
  "@types/node": "^22.0.0"
42
42
  },
43
43
  "peerDependencies": {