@signetai/signet-memory-openclaw 0.151.0 → 0.152.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 +71 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10152,6 +10152,61 @@ function up88(db) {
10152
10152
  ON transcript_capture_jobs(agent_id, session_id, status);
10153
10153
  `);
10154
10154
  }
10155
+ function up89(db) {
10156
+ db.exec(`
10157
+ CREATE TABLE IF NOT EXISTS job_cancellations (
10158
+ id TEXT PRIMARY KEY,
10159
+ source_table TEXT NOT NULL,
10160
+ source_id TEXT NOT NULL,
10161
+ status_before TEXT NOT NULL,
10162
+ payload_json TEXT NOT NULL,
10163
+ reason TEXT,
10164
+ actor TEXT NOT NULL,
10165
+ actor_type TEXT NOT NULL,
10166
+ request_id TEXT,
10167
+ created_at TEXT NOT NULL
10168
+ )
10169
+ `);
10170
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
10171
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
10172
+ ON job_cancellations(source_table, source_id)`);
10173
+ }
10174
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
10175
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
10176
+ ON job_cancellations(created_at)`);
10177
+ }
10178
+ }
10179
+ function indexExists(db, table, indexName) {
10180
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
10181
+ return rows.some((row) => row.name === indexName);
10182
+ }
10183
+ function up90(db) {
10184
+ db.exec(`
10185
+ CREATE TABLE IF NOT EXISTS job_archive (
10186
+ id TEXT PRIMARY KEY,
10187
+ source_table TEXT NOT NULL,
10188
+ source_id TEXT NOT NULL,
10189
+ status TEXT NOT NULL,
10190
+ payload_json TEXT NOT NULL,
10191
+ archived_at TEXT NOT NULL,
10192
+ archived_by TEXT NOT NULL,
10193
+ reason TEXT,
10194
+ created_at TEXT NOT NULL
10195
+ )
10196
+ `);
10197
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
10198
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
10199
+ ON job_archive(source_table, source_id)`);
10200
+ }
10201
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
10202
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
10203
+ ON job_archive(archived_at)`);
10204
+ }
10205
+ }
10206
+ function indexExists2(db, table, indexName) {
10207
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
10208
+ return rows.some((row) => row.name === indexName);
10209
+ }
10155
10210
  var MIGRATIONS = [
10156
10211
  {
10157
10212
  version: 1,
@@ -10871,6 +10926,22 @@ var MIGRATIONS = [
10871
10926
  artifacts: {
10872
10927
  tables: ["transcript_recovery_files"]
10873
10928
  }
10929
+ },
10930
+ {
10931
+ version: 89,
10932
+ name: "job-cancellations",
10933
+ up: up89,
10934
+ artifacts: {
10935
+ tables: ["job_cancellations"]
10936
+ }
10937
+ },
10938
+ {
10939
+ version: 90,
10940
+ name: "job-archive",
10941
+ up: up90,
10942
+ artifacts: {
10943
+ tables: ["job_archive"]
10944
+ }
10874
10945
  }
10875
10946
  ];
10876
10947
  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.151.0",
3
+ "version": "0.152.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",