@signetai/signet-memory-openclaw 0.179.2 → 0.181.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.
- package/dist/index.js +30 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10658,6 +10658,24 @@ function up111(db) {
|
|
|
10658
10658
|
}
|
|
10659
10659
|
}
|
|
10660
10660
|
}
|
|
10661
|
+
function hasColumn20(db, table, column) {
|
|
10662
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
10663
|
+
return rows.some((row) => row.name === column);
|
|
10664
|
+
}
|
|
10665
|
+
function addColumnIfMissing23(db, column, definition) {
|
|
10666
|
+
if (!hasColumn20(db, "telemetry_events", column)) {
|
|
10667
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10668
|
+
}
|
|
10669
|
+
}
|
|
10670
|
+
function up112(db) {
|
|
10671
|
+
addColumnIfMissing23(db, "source", "TEXT NOT NULL DEFAULT 'daemon'");
|
|
10672
|
+
addColumnIfMissing23(db, "claim_token", "TEXT");
|
|
10673
|
+
addColumnIfMissing23(db, "claimed_at", "TEXT");
|
|
10674
|
+
db.exec(`
|
|
10675
|
+
CREATE INDEX IF NOT EXISTS idx_telemetry_events_queue
|
|
10676
|
+
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
10677
|
+
`);
|
|
10678
|
+
}
|
|
10661
10679
|
var MIGRATIONS = [
|
|
10662
10680
|
{
|
|
10663
10681
|
version: 1,
|
|
@@ -11544,6 +11562,18 @@ var MIGRATIONS = [
|
|
|
11544
11562
|
{ table: "telemetry_install", column: "first_recall_at" }
|
|
11545
11563
|
]
|
|
11546
11564
|
}
|
|
11565
|
+
},
|
|
11566
|
+
{
|
|
11567
|
+
version: 112,
|
|
11568
|
+
name: "telemetry-queue-ownership",
|
|
11569
|
+
up: up112,
|
|
11570
|
+
artifacts: {
|
|
11571
|
+
columns: [
|
|
11572
|
+
{ table: "telemetry_events", column: "source" },
|
|
11573
|
+
{ table: "telemetry_events", column: "claim_token" },
|
|
11574
|
+
{ table: "telemetry_events", column: "claimed_at" }
|
|
11575
|
+
]
|
|
11576
|
+
}
|
|
11547
11577
|
}
|
|
11548
11578
|
];
|
|
11549
11579
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|