@signetai/signet-memory-openclaw 0.207.2 → 0.208.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 +94 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15964,6 +15964,34 @@ function up135(db) {
|
|
|
15964
15964
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
15965
15965
|
`);
|
|
15966
15966
|
}
|
|
15967
|
+
function up136(db) {
|
|
15968
|
+
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r2) => r2.name));
|
|
15969
|
+
for (const [name, type] of [
|
|
15970
|
+
["entry_id", "TEXT"],
|
|
15971
|
+
["entry_text", "TEXT"],
|
|
15972
|
+
["operation", "TEXT"],
|
|
15973
|
+
["source_refs_json", "TEXT"],
|
|
15974
|
+
["supporting_quotes_json", "TEXT"]
|
|
15975
|
+
]) {
|
|
15976
|
+
if (!cols.has(name))
|
|
15977
|
+
db.exec(`ALTER TABLE memory_head_revisions ADD COLUMN ${name} ${type}`);
|
|
15978
|
+
}
|
|
15979
|
+
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
15980
|
+
}
|
|
15981
|
+
function up137(db) {
|
|
15982
|
+
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r2) => r2.name));
|
|
15983
|
+
for (const [name, type] of [
|
|
15984
|
+
["head_revision", "INTEGER"],
|
|
15985
|
+
["head_hash", "TEXT"],
|
|
15986
|
+
["head_added", "INTEGER NOT NULL DEFAULT 0"],
|
|
15987
|
+
["head_updated", "INTEGER NOT NULL DEFAULT 0"],
|
|
15988
|
+
["head_removed", "INTEGER NOT NULL DEFAULT 0"],
|
|
15989
|
+
["head_deferred", "INTEGER NOT NULL DEFAULT 0"],
|
|
15990
|
+
["head_no_op", "INTEGER NOT NULL DEFAULT 0"]
|
|
15991
|
+
])
|
|
15992
|
+
if (!cols.has(name))
|
|
15993
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${name} ${type}`);
|
|
15994
|
+
}
|
|
15967
15995
|
var MIGRATIONS = [
|
|
15968
15996
|
{
|
|
15969
15997
|
version: 1,
|
|
@@ -17036,6 +17064,23 @@ var MIGRATIONS = [
|
|
|
17036
17064
|
name: "memory-head-publication",
|
|
17037
17065
|
up: up135,
|
|
17038
17066
|
artifacts: { tables: ["memory_head_publications"] }
|
|
17067
|
+
},
|
|
17068
|
+
{
|
|
17069
|
+
version: 136,
|
|
17070
|
+
name: "memory-head-revisions",
|
|
17071
|
+
up: up136,
|
|
17072
|
+
artifacts: { tables: ["memory_head_revisions"] }
|
|
17073
|
+
},
|
|
17074
|
+
{
|
|
17075
|
+
version: 137,
|
|
17076
|
+
name: "dreaming-head-manifest",
|
|
17077
|
+
up: up137,
|
|
17078
|
+
artifacts: {
|
|
17079
|
+
columns: [
|
|
17080
|
+
{ table: "dreaming_passes", column: "head_revision" },
|
|
17081
|
+
{ table: "dreaming_passes", column: "head_hash" }
|
|
17082
|
+
]
|
|
17083
|
+
}
|
|
17039
17084
|
}
|
|
17040
17085
|
];
|
|
17041
17086
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -29014,7 +29059,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
29014
29059
|
return true;
|
|
29015
29060
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
29016
29061
|
}
|
|
29017
|
-
function
|
|
29062
|
+
function up138(db) {
|
|
29018
29063
|
db.exec(`
|
|
29019
29064
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
29020
29065
|
version INTEGER PRIMARY KEY,
|
|
@@ -29498,7 +29543,7 @@ function addColumnIfMissing52(db, table, column, definition) {
|
|
|
29498
29543
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
29499
29544
|
}
|
|
29500
29545
|
}
|
|
29501
|
-
function
|
|
29546
|
+
function up139(db) {
|
|
29502
29547
|
db.exec(`
|
|
29503
29548
|
CREATE TABLE IF NOT EXISTS ingestion_jobs (
|
|
29504
29549
|
id TEXT PRIMARY KEY,
|
|
@@ -33339,11 +33384,39 @@ function up1352(db) {
|
|
|
33339
33384
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
33340
33385
|
`);
|
|
33341
33386
|
}
|
|
33387
|
+
function up1362(db) {
|
|
33388
|
+
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r22) => r22.name));
|
|
33389
|
+
for (const [name, type] of [
|
|
33390
|
+
["entry_id", "TEXT"],
|
|
33391
|
+
["entry_text", "TEXT"],
|
|
33392
|
+
["operation", "TEXT"],
|
|
33393
|
+
["source_refs_json", "TEXT"],
|
|
33394
|
+
["supporting_quotes_json", "TEXT"]
|
|
33395
|
+
]) {
|
|
33396
|
+
if (!cols.has(name))
|
|
33397
|
+
db.exec(`ALTER TABLE memory_head_revisions ADD COLUMN ${name} ${type}`);
|
|
33398
|
+
}
|
|
33399
|
+
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
33400
|
+
}
|
|
33401
|
+
function up1372(db) {
|
|
33402
|
+
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r22) => r22.name));
|
|
33403
|
+
for (const [name, type] of [
|
|
33404
|
+
["head_revision", "INTEGER"],
|
|
33405
|
+
["head_hash", "TEXT"],
|
|
33406
|
+
["head_added", "INTEGER NOT NULL DEFAULT 0"],
|
|
33407
|
+
["head_updated", "INTEGER NOT NULL DEFAULT 0"],
|
|
33408
|
+
["head_removed", "INTEGER NOT NULL DEFAULT 0"],
|
|
33409
|
+
["head_deferred", "INTEGER NOT NULL DEFAULT 0"],
|
|
33410
|
+
["head_no_op", "INTEGER NOT NULL DEFAULT 0"]
|
|
33411
|
+
])
|
|
33412
|
+
if (!cols.has(name))
|
|
33413
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${name} ${type}`);
|
|
33414
|
+
}
|
|
33342
33415
|
var MIGRATIONS2 = [
|
|
33343
33416
|
{
|
|
33344
33417
|
version: 1,
|
|
33345
33418
|
name: "baseline",
|
|
33346
|
-
up:
|
|
33419
|
+
up: up138,
|
|
33347
33420
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
33348
33421
|
},
|
|
33349
33422
|
{
|
|
@@ -33421,7 +33494,7 @@ var MIGRATIONS2 = [
|
|
|
33421
33494
|
{
|
|
33422
33495
|
version: 13,
|
|
33423
33496
|
name: "ingestion-tracking",
|
|
33424
|
-
up:
|
|
33497
|
+
up: up139,
|
|
33425
33498
|
artifacts: {
|
|
33426
33499
|
columns: [
|
|
33427
33500
|
{ table: "memories", column: "source_path" },
|
|
@@ -34411,6 +34484,23 @@ var MIGRATIONS2 = [
|
|
|
34411
34484
|
name: "memory-head-publication",
|
|
34412
34485
|
up: up1352,
|
|
34413
34486
|
artifacts: { tables: ["memory_head_publications"] }
|
|
34487
|
+
},
|
|
34488
|
+
{
|
|
34489
|
+
version: 136,
|
|
34490
|
+
name: "memory-head-revisions",
|
|
34491
|
+
up: up1362,
|
|
34492
|
+
artifacts: { tables: ["memory_head_revisions"] }
|
|
34493
|
+
},
|
|
34494
|
+
{
|
|
34495
|
+
version: 137,
|
|
34496
|
+
name: "dreaming-head-manifest",
|
|
34497
|
+
up: up1372,
|
|
34498
|
+
artifacts: {
|
|
34499
|
+
columns: [
|
|
34500
|
+
{ table: "dreaming_passes", column: "head_revision" },
|
|
34501
|
+
{ table: "dreaming_passes", column: "head_hash" }
|
|
34502
|
+
]
|
|
34503
|
+
}
|
|
34414
34504
|
}
|
|
34415
34505
|
];
|
|
34416
34506
|
var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
|