@signetai/signet-memory-openclaw 0.145.10 → 0.146.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 +1 -1
package/dist/index.js CHANGED
@@ -9615,6 +9615,25 @@ function up81(db) {
9615
9615
  ON aggregate_evidence_sources(source_kind, source_id);
9616
9616
  `);
9617
9617
  }
9618
+ function hasColumn11(db, table, column) {
9619
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9620
+ return rows.some((row) => row.name === column);
9621
+ }
9622
+ var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
9623
+ function up82(db) {
9624
+ for (const column of COLUMNS) {
9625
+ if (!hasColumn11(db, "skill_invocations", column)) {
9626
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
9627
+ }
9628
+ }
9629
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
9630
+ db.exec(`
9631
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
9632
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
9633
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
9634
+ `);
9635
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
9636
+ }
9618
9637
  var MIGRATIONS = [
9619
9638
  {
9620
9639
  version: 1,
@@ -10268,6 +10287,17 @@ var MIGRATIONS = [
10268
10287
  artifacts: {
10269
10288
  tables: ["aggregate_evidence_sources"]
10270
10289
  }
10290
+ },
10291
+ {
10292
+ version: 82,
10293
+ name: "skill-invocations-harness",
10294
+ up: up82,
10295
+ artifacts: {
10296
+ columns: [
10297
+ { table: "skill_invocations", column: "harness" },
10298
+ { table: "skill_invocations", column: "tool_use_id" }
10299
+ ]
10300
+ }
10271
10301
  }
10272
10302
  ];
10273
10303
  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.145.10",
3
+ "version": "0.146.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",