@signetai/signet-memory-openclaw 0.214.0 → 0.214.2
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 +104 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16321,6 +16321,38 @@ function up139(db) {
|
|
|
16321
16321
|
ON native_source_sync_state(agent_id, status);
|
|
16322
16322
|
`);
|
|
16323
16323
|
}
|
|
16324
|
+
function up140(db) {
|
|
16325
|
+
db.exec(`
|
|
16326
|
+
CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
|
|
16327
|
+
agent_id TEXT NOT NULL,
|
|
16328
|
+
harness TEXT NOT NULL,
|
|
16329
|
+
root_path TEXT NOT NULL,
|
|
16330
|
+
cursor_path TEXT,
|
|
16331
|
+
updated_at TEXT NOT NULL,
|
|
16332
|
+
PRIMARY KEY (agent_id, harness, root_path)
|
|
16333
|
+
);
|
|
16334
|
+
`);
|
|
16335
|
+
}
|
|
16336
|
+
function up141(db) {
|
|
16337
|
+
db.exec(`
|
|
16338
|
+
CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
|
|
16339
|
+
agent_id TEXT NOT NULL,
|
|
16340
|
+
source_key TEXT NOT NULL,
|
|
16341
|
+
phase TEXT NOT NULL,
|
|
16342
|
+
cursor TEXT,
|
|
16343
|
+
scanned INTEGER NOT NULL DEFAULT 0,
|
|
16344
|
+
complete INTEGER NOT NULL DEFAULT 0,
|
|
16345
|
+
updated_at TEXT NOT NULL,
|
|
16346
|
+
PRIMARY KEY (agent_id, source_key, phase)
|
|
16347
|
+
);
|
|
16348
|
+
`);
|
|
16349
|
+
}
|
|
16350
|
+
function up142(db) {
|
|
16351
|
+
const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
|
|
16352
|
+
if (!columns.some((column) => column.name === "frontier")) {
|
|
16353
|
+
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
16354
|
+
}
|
|
16355
|
+
}
|
|
16324
16356
|
var MIGRATIONS = [
|
|
16325
16357
|
{
|
|
16326
16358
|
version: 1,
|
|
@@ -17424,6 +17456,24 @@ var MIGRATIONS = [
|
|
|
17424
17456
|
name: "native-source-sync-state",
|
|
17425
17457
|
up: up139,
|
|
17426
17458
|
artifacts: { tables: ["native_source_sync_state"] }
|
|
17459
|
+
},
|
|
17460
|
+
{
|
|
17461
|
+
version: 140,
|
|
17462
|
+
name: "transcript-recovery-frontier",
|
|
17463
|
+
up: up140,
|
|
17464
|
+
artifacts: { tables: ["transcript_recovery_frontiers"] }
|
|
17465
|
+
},
|
|
17466
|
+
{
|
|
17467
|
+
version: 141,
|
|
17468
|
+
name: "source-sync-checkpoints",
|
|
17469
|
+
up: up141,
|
|
17470
|
+
artifacts: { tables: ["source_sync_checkpoints"] }
|
|
17471
|
+
},
|
|
17472
|
+
{
|
|
17473
|
+
version: 142,
|
|
17474
|
+
name: "source-sync-frontier",
|
|
17475
|
+
up: up142,
|
|
17476
|
+
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
17427
17477
|
}
|
|
17428
17478
|
];
|
|
17429
17479
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -29402,7 +29452,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
29402
29452
|
return true;
|
|
29403
29453
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
29404
29454
|
}
|
|
29405
|
-
function
|
|
29455
|
+
function up143(db) {
|
|
29406
29456
|
db.exec(`
|
|
29407
29457
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
29408
29458
|
version INTEGER PRIMARY KEY,
|
|
@@ -29912,7 +29962,7 @@ function up1310(db) {
|
|
|
29912
29962
|
addColumnIfMissing52(db, "memories", "source_path", "TEXT");
|
|
29913
29963
|
addColumnIfMissing52(db, "memories", "source_section", "TEXT");
|
|
29914
29964
|
}
|
|
29915
|
-
function
|
|
29965
|
+
function up144(db) {
|
|
29916
29966
|
db.exec(`
|
|
29917
29967
|
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
29918
29968
|
id TEXT PRIMARY KEY,
|
|
@@ -34084,11 +34134,43 @@ function up1392(db) {
|
|
|
34084
34134
|
ON native_source_sync_state(agent_id, status);
|
|
34085
34135
|
`);
|
|
34086
34136
|
}
|
|
34137
|
+
function up1402(db) {
|
|
34138
|
+
db.exec(`
|
|
34139
|
+
CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
|
|
34140
|
+
agent_id TEXT NOT NULL,
|
|
34141
|
+
harness TEXT NOT NULL,
|
|
34142
|
+
root_path TEXT NOT NULL,
|
|
34143
|
+
cursor_path TEXT,
|
|
34144
|
+
updated_at TEXT NOT NULL,
|
|
34145
|
+
PRIMARY KEY (agent_id, harness, root_path)
|
|
34146
|
+
);
|
|
34147
|
+
`);
|
|
34148
|
+
}
|
|
34149
|
+
function up1412(db) {
|
|
34150
|
+
db.exec(`
|
|
34151
|
+
CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
|
|
34152
|
+
agent_id TEXT NOT NULL,
|
|
34153
|
+
source_key TEXT NOT NULL,
|
|
34154
|
+
phase TEXT NOT NULL,
|
|
34155
|
+
cursor TEXT,
|
|
34156
|
+
scanned INTEGER NOT NULL DEFAULT 0,
|
|
34157
|
+
complete INTEGER NOT NULL DEFAULT 0,
|
|
34158
|
+
updated_at TEXT NOT NULL,
|
|
34159
|
+
PRIMARY KEY (agent_id, source_key, phase)
|
|
34160
|
+
);
|
|
34161
|
+
`);
|
|
34162
|
+
}
|
|
34163
|
+
function up1422(db) {
|
|
34164
|
+
const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
|
|
34165
|
+
if (!columns.some((column) => column.name === "frontier")) {
|
|
34166
|
+
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
34167
|
+
}
|
|
34168
|
+
}
|
|
34087
34169
|
var MIGRATIONS2 = [
|
|
34088
34170
|
{
|
|
34089
34171
|
version: 1,
|
|
34090
34172
|
name: "baseline",
|
|
34091
|
-
up:
|
|
34173
|
+
up: up143,
|
|
34092
34174
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
34093
34175
|
},
|
|
34094
34176
|
{
|
|
@@ -34177,7 +34259,7 @@ var MIGRATIONS2 = [
|
|
|
34177
34259
|
{
|
|
34178
34260
|
version: 14,
|
|
34179
34261
|
name: "telemetry",
|
|
34180
|
-
up:
|
|
34262
|
+
up: up144,
|
|
34181
34263
|
artifacts: { tables: ["telemetry_events"] }
|
|
34182
34264
|
},
|
|
34183
34265
|
{
|
|
@@ -35187,6 +35269,24 @@ var MIGRATIONS2 = [
|
|
|
35187
35269
|
name: "native-source-sync-state",
|
|
35188
35270
|
up: up1392,
|
|
35189
35271
|
artifacts: { tables: ["native_source_sync_state"] }
|
|
35272
|
+
},
|
|
35273
|
+
{
|
|
35274
|
+
version: 140,
|
|
35275
|
+
name: "transcript-recovery-frontier",
|
|
35276
|
+
up: up1402,
|
|
35277
|
+
artifacts: { tables: ["transcript_recovery_frontiers"] }
|
|
35278
|
+
},
|
|
35279
|
+
{
|
|
35280
|
+
version: 141,
|
|
35281
|
+
name: "source-sync-checkpoints",
|
|
35282
|
+
up: up1412,
|
|
35283
|
+
artifacts: { tables: ["source_sync_checkpoints"] }
|
|
35284
|
+
},
|
|
35285
|
+
{
|
|
35286
|
+
version: 142,
|
|
35287
|
+
name: "source-sync-frontier",
|
|
35288
|
+
up: up1422,
|
|
35289
|
+
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
35190
35290
|
}
|
|
35191
35291
|
];
|
|
35192
35292
|
var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
|