@signetai/signet-memory-openclaw 0.117.3 → 0.118.1

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 +64 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9148,6 +9148,54 @@ function up67(db) {
9148
9148
  db.exec(`CREATE INDEX IF NOT EXISTS idx_${table}_proposal ON ${table}(agent_id, proposal_id)`);
9149
9149
  }
9150
9150
  }
9151
+ function up68(db) {
9152
+ db.exec(`
9153
+ CREATE TABLE IF NOT EXISTS daily_reflections (
9154
+ id TEXT PRIMARY KEY,
9155
+ agent_id TEXT NOT NULL DEFAULT 'default',
9156
+ date TEXT NOT NULL,
9157
+ summary TEXT NOT NULL DEFAULT '',
9158
+ patterns TEXT NOT NULL DEFAULT '[]',
9159
+ question TEXT,
9160
+ answer TEXT,
9161
+ answer_memory_id TEXT,
9162
+ content_key TEXT,
9163
+ memory_ids TEXT NOT NULL DEFAULT '[]',
9164
+ summary_ids TEXT NOT NULL DEFAULT '[]',
9165
+ model TEXT,
9166
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
9167
+ answered_at TEXT
9168
+ );
9169
+
9170
+ CREATE INDEX IF NOT EXISTS idx_daily_reflections_agent_date
9171
+ ON daily_reflections(agent_id, date, created_at DESC);
9172
+
9173
+ CREATE UNIQUE INDEX IF NOT EXISTS idx_daily_reflections_agent_content_key
9174
+ ON daily_reflections(agent_id, date, content_key)
9175
+ WHERE content_key IS NOT NULL;
9176
+ `);
9177
+ }
9178
+ function up69(db) {
9179
+ const cols = db.prepare("PRAGMA table_info(daily_reflections)").all();
9180
+ const colNames = new Set(cols.flatMap((c) => typeof c.name === "string" ? [c.name] : []));
9181
+ if (!colNames.has("content_key")) {
9182
+ db.exec("ALTER TABLE daily_reflections ADD COLUMN content_key TEXT");
9183
+ }
9184
+ db.exec(`
9185
+ DROP INDEX IF EXISTS idx_daily_reflections_agent_date;
9186
+ DROP INDEX IF EXISTS idx_daily_reflections_agent_content_key;
9187
+
9188
+ CREATE INDEX IF NOT EXISTS idx_daily_reflections_agent_created
9189
+ ON daily_reflections(agent_id, created_at DESC);
9190
+
9191
+ CREATE INDEX IF NOT EXISTS idx_daily_reflections_agent_date
9192
+ ON daily_reflections(agent_id, date, created_at DESC);
9193
+
9194
+ CREATE UNIQUE INDEX IF NOT EXISTS idx_daily_reflections_agent_content_key
9195
+ ON daily_reflections(agent_id, date, content_key)
9196
+ WHERE content_key IS NOT NULL;
9197
+ `);
9198
+ }
9151
9199
  var MIGRATIONS = [
9152
9200
  {
9153
9201
  version: 1,
@@ -9670,6 +9718,22 @@ var MIGRATIONS = [
9670
9718
  { table: "entity_dependencies", column: "proposal_evidence" }
9671
9719
  ]
9672
9720
  }
9721
+ },
9722
+ {
9723
+ version: 68,
9724
+ name: "daily-reflections",
9725
+ up: up68,
9726
+ artifacts: {
9727
+ tables: ["daily_reflections"]
9728
+ }
9729
+ },
9730
+ {
9731
+ version: 69,
9732
+ name: "daily-reflections-multiple-insights",
9733
+ up: up69,
9734
+ artifacts: {
9735
+ tables: ["daily_reflections"]
9736
+ }
9673
9737
  }
9674
9738
  ];
9675
9739
  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.117.3",
3
+ "version": "0.118.1",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",