@signetai/signet-memory-openclaw 0.167.0 → 0.168.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 +31 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10600,6 +10600,23 @@ function up106(db) {
10600
10600
  }
10601
10601
  db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
10602
10602
  }
10603
+ function hasColumn18(db, table, column) {
10604
+ return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
10605
+ }
10606
+ var TOKEN_COLUMNS = [
10607
+ ["tokens_input", "INTEGER"],
10608
+ ["tokens_output", "INTEGER"],
10609
+ ["tokens_cache_read", "INTEGER"],
10610
+ ["tokens_cache_write", "INTEGER"],
10611
+ ["tokens_cost", "REAL"]
10612
+ ];
10613
+ function up107(db) {
10614
+ for (const [column, type] of TOKEN_COLUMNS) {
10615
+ if (!hasColumn18(db, "dreaming_passes", column)) {
10616
+ db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
10617
+ }
10618
+ }
10619
+ }
10603
10620
  var MIGRATIONS = [
10604
10621
  {
10605
10622
  version: 1,
@@ -11440,6 +11457,20 @@ var MIGRATIONS = [
11440
11457
  artifacts: {
11441
11458
  columns: [{ table: "memories", column: "review_after" }]
11442
11459
  }
11460
+ },
11461
+ {
11462
+ version: 107,
11463
+ name: "dreaming-pass-usage",
11464
+ up: up107,
11465
+ artifacts: {
11466
+ columns: [
11467
+ { table: "dreaming_passes", column: "tokens_input" },
11468
+ { table: "dreaming_passes", column: "tokens_output" },
11469
+ { table: "dreaming_passes", column: "tokens_cache_read" },
11470
+ { table: "dreaming_passes", column: "tokens_cache_write" },
11471
+ { table: "dreaming_passes", column: "tokens_cost" }
11472
+ ]
11473
+ }
11443
11474
  }
11444
11475
  ];
11445
11476
  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.167.0",
3
+ "version": "0.168.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",