@signetai/connector-base 0.226.26 → 0.227.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.
- package/dist/agent-dir.js +318 -329
- package/dist/index.js +318 -329
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10752,6 +10752,9 @@ function up4(db) {
|
|
|
10752
10752
|
WHERE resolved_at IS NULL;
|
|
10753
10753
|
`);
|
|
10754
10754
|
}
|
|
10755
|
+
function up5(db) {
|
|
10756
|
+
db.exec("DROP TABLE IF EXISTS mcp_invocations");
|
|
10757
|
+
}
|
|
10755
10758
|
var MEMORIES_FTS_TOKENIZER = "unicode61";
|
|
10756
10759
|
var FTS_STATE_TABLE = "memories_fts_state";
|
|
10757
10760
|
function normalizeSql(sql) {
|
|
@@ -10867,7 +10870,7 @@ function memoriesFtsNeedsTokenizerRepair(sql) {
|
|
|
10867
10870
|
return true;
|
|
10868
10871
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER}'`);
|
|
10869
10872
|
}
|
|
10870
|
-
function
|
|
10873
|
+
function up6(db) {
|
|
10871
10874
|
db.exec(`
|
|
10872
10875
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
10873
10876
|
version INTEGER PRIMARY KEY,
|
|
@@ -10965,7 +10968,7 @@ function addColumnIfMissing2(db, table, column, definition) {
|
|
|
10965
10968
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
10966
10969
|
}
|
|
10967
10970
|
}
|
|
10968
|
-
function
|
|
10971
|
+
function up7(db) {
|
|
10969
10972
|
addColumnIfMissing2(db, "memories", "content_hash", "TEXT");
|
|
10970
10973
|
addColumnIfMissing2(db, "memories", "normalized_content", "TEXT");
|
|
10971
10974
|
addColumnIfMissing2(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
@@ -11083,7 +11086,7 @@ function addColumnIfMissing3(db, table, column, definition) {
|
|
|
11083
11086
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11084
11087
|
return true;
|
|
11085
11088
|
}
|
|
11086
|
-
function
|
|
11089
|
+
function up8(db) {
|
|
11087
11090
|
addColumnIfMissing3(db, "memories", "why", "TEXT");
|
|
11088
11091
|
addColumnIfMissing3(db, "memories", "project", "TEXT");
|
|
11089
11092
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
@@ -11120,7 +11123,7 @@ function addColumnIfMissing4(db, table, column, definition) {
|
|
|
11120
11123
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11121
11124
|
}
|
|
11122
11125
|
}
|
|
11123
|
-
function
|
|
11126
|
+
function up9(db) {
|
|
11124
11127
|
addColumnIfMissing4(db, "memory_history", "actor_type", "TEXT");
|
|
11125
11128
|
addColumnIfMissing4(db, "memory_history", "session_id", "TEXT");
|
|
11126
11129
|
addColumnIfMissing4(db, "memory_history", "request_id", "TEXT");
|
|
@@ -11153,7 +11156,7 @@ function addColumnIfMissing5(db, table, column, definition) {
|
|
|
11153
11156
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11154
11157
|
}
|
|
11155
11158
|
}
|
|
11156
|
-
function
|
|
11159
|
+
function up10(db) {
|
|
11157
11160
|
addColumnIfMissing5(db, "entities", "canonical_name", "TEXT");
|
|
11158
11161
|
addColumnIfMissing5(db, "entities", "mentions", "INTEGER DEFAULT 0");
|
|
11159
11162
|
addColumnIfMissing5(db, "entities", "embedding", "BLOB");
|
|
@@ -11170,7 +11173,7 @@ function hasColumn4(db, table, column) {
|
|
|
11170
11173
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11171
11174
|
return rows.some((r2) => r2.name === column);
|
|
11172
11175
|
}
|
|
11173
|
-
function
|
|
11176
|
+
function up11(db) {
|
|
11174
11177
|
if (!hasColumn4(db, "memories", "idempotency_key")) {
|
|
11175
11178
|
db.exec("ALTER TABLE memories ADD COLUMN idempotency_key TEXT");
|
|
11176
11179
|
}
|
|
@@ -11185,7 +11188,7 @@ function hasColumn5(db, table, column) {
|
|
|
11185
11188
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11186
11189
|
return rows.some((r2) => r2.name === column);
|
|
11187
11190
|
}
|
|
11188
|
-
function
|
|
11191
|
+
function up12(db) {
|
|
11189
11192
|
db.exec(`
|
|
11190
11193
|
CREATE TABLE IF NOT EXISTS documents (
|
|
11191
11194
|
id TEXT PRIMARY KEY,
|
|
@@ -11242,7 +11245,7 @@ function up11(db) {
|
|
|
11242
11245
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
|
|
11243
11246
|
}
|
|
11244
11247
|
}
|
|
11245
|
-
function
|
|
11248
|
+
function up13(db) {
|
|
11246
11249
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
|
|
11247
11250
|
if (tables.length === 0)
|
|
11248
11251
|
return;
|
|
@@ -11259,7 +11262,7 @@ function up12(db) {
|
|
|
11259
11262
|
ON embeddings(content_hash)
|
|
11260
11263
|
`);
|
|
11261
11264
|
}
|
|
11262
|
-
function
|
|
11265
|
+
function up14(db) {
|
|
11263
11266
|
db.exec(`
|
|
11264
11267
|
CREATE TABLE IF NOT EXISTS summary_jobs (
|
|
11265
11268
|
id TEXT PRIMARY KEY,
|
|
@@ -11279,7 +11282,7 @@ function up13(db) {
|
|
|
11279
11282
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
11280
11283
|
ON summary_jobs(status)`);
|
|
11281
11284
|
}
|
|
11282
|
-
function
|
|
11285
|
+
function up15(db) {
|
|
11283
11286
|
db.exec(`
|
|
11284
11287
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
11285
11288
|
id INTEGER PRIMARY KEY,
|
|
@@ -11290,7 +11293,7 @@ function up14(db) {
|
|
|
11290
11293
|
)
|
|
11291
11294
|
`);
|
|
11292
11295
|
}
|
|
11293
|
-
function
|
|
11296
|
+
function up16(db) {
|
|
11294
11297
|
db.exec(`
|
|
11295
11298
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
11296
11299
|
id TEXT PRIMARY KEY,
|
|
@@ -11310,7 +11313,7 @@ function up15(db) {
|
|
|
11310
11313
|
ON session_scores(session_key);
|
|
11311
11314
|
`);
|
|
11312
11315
|
}
|
|
11313
|
-
function
|
|
11316
|
+
function up17(db) {
|
|
11314
11317
|
db.exec(`
|
|
11315
11318
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
11316
11319
|
id TEXT PRIMARY KEY,
|
|
@@ -11351,7 +11354,7 @@ function addColumnIfMissing6(db, table, column, definition) {
|
|
|
11351
11354
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11352
11355
|
}
|
|
11353
11356
|
}
|
|
11354
|
-
function
|
|
11357
|
+
function up18(db) {
|
|
11355
11358
|
db.exec(`
|
|
11356
11359
|
CREATE TABLE IF NOT EXISTS ingestion_jobs (
|
|
11357
11360
|
id TEXT PRIMARY KEY,
|
|
@@ -11377,7 +11380,7 @@ function up17(db) {
|
|
|
11377
11380
|
addColumnIfMissing6(db, "memories", "source_path", "TEXT");
|
|
11378
11381
|
addColumnIfMissing6(db, "memories", "source_section", "TEXT");
|
|
11379
11382
|
}
|
|
11380
|
-
function
|
|
11383
|
+
function up19(db) {
|
|
11381
11384
|
db.exec(`
|
|
11382
11385
|
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
11383
11386
|
id TEXT PRIMARY KEY,
|
|
@@ -11402,7 +11405,7 @@ function addColumnIfMissing7(db, table, column, definition) {
|
|
|
11402
11405
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11403
11406
|
}
|
|
11404
11407
|
}
|
|
11405
|
-
function
|
|
11408
|
+
function up20(db) {
|
|
11406
11409
|
db.exec(`
|
|
11407
11410
|
CREATE TABLE IF NOT EXISTS session_memories (
|
|
11408
11411
|
id TEXT PRIMARY KEY,
|
|
@@ -11429,7 +11432,7 @@ function up19(db) {
|
|
|
11429
11432
|
addColumnIfMissing7(db, "session_scores", "confidence", "REAL");
|
|
11430
11433
|
addColumnIfMissing7(db, "session_scores", "continuity_reasoning", "TEXT");
|
|
11431
11434
|
}
|
|
11432
|
-
function
|
|
11435
|
+
function up21(db) {
|
|
11433
11436
|
db.exec(`
|
|
11434
11437
|
CREATE TABLE IF NOT EXISTS session_checkpoints (
|
|
11435
11438
|
id TEXT PRIMARY KEY,
|
|
@@ -11451,7 +11454,7 @@ function up20(db) {
|
|
|
11451
11454
|
ON session_checkpoints(project_normalized, created_at DESC);
|
|
11452
11455
|
`);
|
|
11453
11456
|
}
|
|
11454
|
-
function
|
|
11457
|
+
function up22(db) {
|
|
11455
11458
|
const cols = db.prepare("PRAGMA table_info(scheduled_tasks)").all();
|
|
11456
11459
|
const colNames = new Set(cols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
11457
11460
|
if (!colNames.has("skill_name")) {
|
|
@@ -11462,7 +11465,7 @@ function up21(db) {
|
|
|
11462
11465
|
CHECK (skill_mode IN ('inject', 'slash') OR skill_mode IS NULL)`);
|
|
11463
11466
|
}
|
|
11464
11467
|
}
|
|
11465
|
-
function
|
|
11468
|
+
function up23(db) {
|
|
11466
11469
|
const existing = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='skill_meta'").get();
|
|
11467
11470
|
if (existing)
|
|
11468
11471
|
return;
|
|
@@ -11494,7 +11497,7 @@ function up22(db) {
|
|
|
11494
11497
|
CREATE INDEX idx_skill_meta_source ON skill_meta(source);
|
|
11495
11498
|
`);
|
|
11496
11499
|
}
|
|
11497
|
-
function
|
|
11500
|
+
function up24(db) {
|
|
11498
11501
|
const entityCols = db.prepare("PRAGMA table_info(entities)").all();
|
|
11499
11502
|
const entityColNames = new Set(entityCols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
11500
11503
|
if (!entityColNames.has("agent_id")) {
|
|
@@ -11579,13 +11582,13 @@ function addColumnIfMissing8(db, table, column, definition) {
|
|
|
11579
11582
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11580
11583
|
}
|
|
11581
11584
|
}
|
|
11582
|
-
function
|
|
11585
|
+
function up25(db) {
|
|
11583
11586
|
addColumnIfMissing8(db, "session_memories", "entity_slot", "INTEGER");
|
|
11584
11587
|
addColumnIfMissing8(db, "session_memories", "aspect_slot", "INTEGER");
|
|
11585
11588
|
addColumnIfMissing8(db, "session_memories", "is_constraint", "INTEGER NOT NULL DEFAULT 0");
|
|
11586
11589
|
addColumnIfMissing8(db, "session_memories", "structural_density", "INTEGER");
|
|
11587
11590
|
}
|
|
11588
|
-
function
|
|
11591
|
+
function up26(db) {
|
|
11589
11592
|
const columns = db.prepare("PRAGMA table_info(session_checkpoints)").all();
|
|
11590
11593
|
const columnNames = new Set(columns.flatMap((column) => typeof column.name === "string" ? [column.name] : []));
|
|
11591
11594
|
if (!columnNames.has("focal_entity_ids")) {
|
|
@@ -11610,25 +11613,25 @@ function addColumnIfMissing9(db, table, column, definition) {
|
|
|
11610
11613
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11611
11614
|
}
|
|
11612
11615
|
}
|
|
11613
|
-
function
|
|
11616
|
+
function up27(db) {
|
|
11614
11617
|
addColumnIfMissing9(db, "entities", "pinned", "INTEGER NOT NULL DEFAULT 0");
|
|
11615
11618
|
addColumnIfMissing9(db, "entities", "pinned_at", "TEXT");
|
|
11616
11619
|
db.exec("CREATE INDEX IF NOT EXISTS idx_entities_pinned ON entities(agent_id, pinned, pinned_at DESC)");
|
|
11617
11620
|
}
|
|
11618
|
-
function up27(_db) {}
|
|
11619
11621
|
function up28(_db) {}
|
|
11622
|
+
function up29(_db) {}
|
|
11620
11623
|
function addColumnIfMissing10(db, table, column, definition) {
|
|
11621
11624
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11622
11625
|
if (!cols.some((c2) => c2.name === column)) {
|
|
11623
11626
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11624
11627
|
}
|
|
11625
11628
|
}
|
|
11626
|
-
function
|
|
11629
|
+
function up30(db) {
|
|
11627
11630
|
addColumnIfMissing10(db, "session_memories", "agent_relevance_score", "REAL");
|
|
11628
11631
|
addColumnIfMissing10(db, "session_memories", "agent_feedback_count", "INTEGER DEFAULT 0");
|
|
11629
11632
|
}
|
|
11630
|
-
function
|
|
11631
|
-
function
|
|
11633
|
+
function up31(_db) {}
|
|
11634
|
+
function up32(db) {
|
|
11632
11635
|
db.exec(`
|
|
11633
11636
|
UPDATE entities
|
|
11634
11637
|
SET canonical_name = REPLACE(REPLACE(REPLACE(
|
|
@@ -11637,7 +11640,7 @@ function up31(db) {
|
|
|
11637
11640
|
WHERE canonical_name IS NULL
|
|
11638
11641
|
`);
|
|
11639
11642
|
}
|
|
11640
|
-
function
|
|
11643
|
+
function up33(db) {
|
|
11641
11644
|
db.exec(`
|
|
11642
11645
|
CREATE TABLE IF NOT EXISTS memories_cold (
|
|
11643
11646
|
archive_id TEXT PRIMARY KEY,
|
|
@@ -11674,7 +11677,7 @@ function up32(db) {
|
|
|
11674
11677
|
CREATE INDEX IF NOT EXISTS idx_cold_source ON memories_cold(cold_source_id);
|
|
11675
11678
|
`);
|
|
11676
11679
|
}
|
|
11677
|
-
function
|
|
11680
|
+
function up34(db) {
|
|
11678
11681
|
db.exec(`
|
|
11679
11682
|
CREATE TABLE IF NOT EXISTS session_summaries (
|
|
11680
11683
|
id TEXT PRIMARY KEY,
|
|
@@ -11719,7 +11722,7 @@ function up33(db) {
|
|
|
11719
11722
|
WHERE session_key IS NOT NULL;
|
|
11720
11723
|
`);
|
|
11721
11724
|
}
|
|
11722
|
-
function
|
|
11725
|
+
function up35(db) {
|
|
11723
11726
|
db.exec(`
|
|
11724
11727
|
CREATE TABLE IF NOT EXISTS memory_jobs_new (
|
|
11725
11728
|
id TEXT PRIMARY KEY,
|
|
@@ -11764,7 +11767,7 @@ function up34(db) {
|
|
|
11764
11767
|
ON memory_jobs(failed_at);
|
|
11765
11768
|
`);
|
|
11766
11769
|
}
|
|
11767
|
-
function
|
|
11770
|
+
function up36(db) {
|
|
11768
11771
|
const depCols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
|
|
11769
11772
|
if (!depCols.some((c2) => c2.name === "reason")) {
|
|
11770
11773
|
db.exec("ALTER TABLE entity_dependencies ADD COLUMN reason TEXT");
|
|
@@ -11774,7 +11777,7 @@ function up35(db) {
|
|
|
11774
11777
|
db.exec("ALTER TABLE entities ADD COLUMN last_synthesized_at TEXT");
|
|
11775
11778
|
}
|
|
11776
11779
|
}
|
|
11777
|
-
function
|
|
11780
|
+
function up37(db) {
|
|
11778
11781
|
const cols = db.prepare("PRAGMA table_info(embeddings)").all();
|
|
11779
11782
|
if (cols.length === 0)
|
|
11780
11783
|
return;
|
|
@@ -11782,14 +11785,14 @@ function up36(db) {
|
|
|
11782
11785
|
db.exec("ALTER TABLE embeddings ADD COLUMN vector BLOB");
|
|
11783
11786
|
}
|
|
11784
11787
|
}
|
|
11785
|
-
function
|
|
11788
|
+
function up38(db) {
|
|
11786
11789
|
const cols = db.prepare("PRAGMA table_info(memories)").all();
|
|
11787
11790
|
if (!cols.some((c2) => c2.name === "scope")) {
|
|
11788
11791
|
db.exec("ALTER TABLE memories ADD COLUMN scope TEXT DEFAULT NULL");
|
|
11789
11792
|
}
|
|
11790
11793
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope) WHERE scope IS NOT NULL");
|
|
11791
11794
|
}
|
|
11792
|
-
function
|
|
11795
|
+
function up39(db) {
|
|
11793
11796
|
db.exec("DROP INDEX IF EXISTS idx_memories_content_hash_unique");
|
|
11794
11797
|
db.exec(`
|
|
11795
11798
|
CREATE UNIQUE INDEX idx_memories_content_hash_unique
|
|
@@ -11797,7 +11800,7 @@ function up38(db) {
|
|
|
11797
11800
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
11798
11801
|
`);
|
|
11799
11802
|
}
|
|
11800
|
-
function
|
|
11803
|
+
function up40(db) {
|
|
11801
11804
|
db.exec(`
|
|
11802
11805
|
CREATE VIRTUAL TABLE IF NOT EXISTS entities_fts USING fts5(
|
|
11803
11806
|
name, canonical_name,
|
|
@@ -11829,13 +11832,13 @@ function up39(db) {
|
|
|
11829
11832
|
END
|
|
11830
11833
|
`);
|
|
11831
11834
|
}
|
|
11832
|
-
function
|
|
11835
|
+
function up41(db) {
|
|
11833
11836
|
const cols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
|
|
11834
11837
|
if (!cols.some((c2) => c2.name === "confidence")) {
|
|
11835
11838
|
db.exec("ALTER TABLE entity_dependencies ADD COLUMN confidence REAL DEFAULT 0.7");
|
|
11836
11839
|
}
|
|
11837
11840
|
}
|
|
11838
|
-
function
|
|
11841
|
+
function up42(db) {
|
|
11839
11842
|
db.exec(`
|
|
11840
11843
|
CREATE TABLE IF NOT EXISTS entity_communities (
|
|
11841
11844
|
id TEXT PRIMARY KEY,
|
|
@@ -11853,7 +11856,7 @@ function up41(db) {
|
|
|
11853
11856
|
db.exec("ALTER TABLE entities ADD COLUMN community_id TEXT REFERENCES entity_communities(id)");
|
|
11854
11857
|
}
|
|
11855
11858
|
}
|
|
11856
|
-
function
|
|
11859
|
+
function up43(db) {
|
|
11857
11860
|
db.exec(`
|
|
11858
11861
|
CREATE TABLE IF NOT EXISTS memory_hints (
|
|
11859
11862
|
id TEXT PRIMARY KEY,
|
|
@@ -11893,7 +11896,7 @@ function up42(db) {
|
|
|
11893
11896
|
END
|
|
11894
11897
|
`);
|
|
11895
11898
|
}
|
|
11896
|
-
function
|
|
11899
|
+
function up44(db) {
|
|
11897
11900
|
db.exec(`
|
|
11898
11901
|
DELETE FROM entity_dependencies
|
|
11899
11902
|
WHERE id NOT IN (
|
|
@@ -11911,7 +11914,7 @@ function up43(db) {
|
|
|
11911
11914
|
)
|
|
11912
11915
|
`);
|
|
11913
11916
|
}
|
|
11914
|
-
function
|
|
11917
|
+
function up45(db) {
|
|
11915
11918
|
db.exec(`
|
|
11916
11919
|
CREATE TABLE IF NOT EXISTS session_transcripts (
|
|
11917
11920
|
session_key TEXT PRIMARY KEY,
|
|
@@ -11934,7 +11937,7 @@ function addColumnIfMissing11(db, table, column, definition) {
|
|
|
11934
11937
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11935
11938
|
}
|
|
11936
11939
|
}
|
|
11937
|
-
function
|
|
11940
|
+
function up46(db) {
|
|
11938
11941
|
addColumnIfMissing11(db, "session_memories", "path_json", "TEXT");
|
|
11939
11942
|
db.exec(`
|
|
11940
11943
|
CREATE TABLE IF NOT EXISTS path_feedback_events (
|
|
@@ -12009,7 +12012,7 @@ function addColumnIfMissing12(db, table, column, definition) {
|
|
|
12009
12012
|
return;
|
|
12010
12013
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12011
12014
|
}
|
|
12012
|
-
function
|
|
12015
|
+
function up47(db) {
|
|
12013
12016
|
addColumnIfMissing12(db, "session_memories", "entity_slot", "INTEGER");
|
|
12014
12017
|
addColumnIfMissing12(db, "session_memories", "aspect_slot", "INTEGER");
|
|
12015
12018
|
addColumnIfMissing12(db, "session_memories", "is_constraint", "INTEGER NOT NULL DEFAULT 0");
|
|
@@ -12097,7 +12100,7 @@ function addColumnIfMissing13(db, table, column, definition) {
|
|
|
12097
12100
|
return;
|
|
12098
12101
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12099
12102
|
}
|
|
12100
|
-
function
|
|
12103
|
+
function up48(db) {
|
|
12101
12104
|
db.exec(`
|
|
12102
12105
|
CREATE TABLE IF NOT EXISTS agents (
|
|
12103
12106
|
id TEXT PRIMARY KEY,
|
|
@@ -12126,7 +12129,7 @@ function addColumnIfMissing14(db, table, column, definition) {
|
|
|
12126
12129
|
return;
|
|
12127
12130
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12128
12131
|
}
|
|
12129
|
-
function
|
|
12132
|
+
function up49(db) {
|
|
12130
12133
|
addColumnIfMissing14(db, "session_summaries", "source_type", "TEXT");
|
|
12131
12134
|
addColumnIfMissing14(db, "session_summaries", "source_ref", "TEXT");
|
|
12132
12135
|
addColumnIfMissing14(db, "session_summaries", "meta_json", "TEXT");
|
|
@@ -12152,7 +12155,7 @@ function addColumnIfMissing15(db, table, column, definition) {
|
|
|
12152
12155
|
return;
|
|
12153
12156
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12154
12157
|
}
|
|
12155
|
-
function
|
|
12158
|
+
function up50(db) {
|
|
12156
12159
|
addColumnIfMissing15(db, "session_transcripts", "updated_at", "TEXT");
|
|
12157
12160
|
addColumnIfMissing15(db, "summary_jobs", "agent_id", "TEXT NOT NULL DEFAULT 'default'");
|
|
12158
12161
|
addColumnIfMissing15(db, "session_scores", "agent_id", "TEXT NOT NULL DEFAULT 'default'");
|
|
@@ -12223,7 +12226,7 @@ function up49(db) {
|
|
|
12223
12226
|
ON memory_md_heads(lease_expires_at);
|
|
12224
12227
|
`);
|
|
12225
12228
|
}
|
|
12226
|
-
function
|
|
12229
|
+
function up51(db) {
|
|
12227
12230
|
db.exec(`
|
|
12228
12231
|
DROP INDEX IF EXISTS idx_summaries_session_depth;
|
|
12229
12232
|
|
|
@@ -12284,7 +12287,7 @@ function up50(db) {
|
|
|
12284
12287
|
AND COALESCE(source_type, 'summary') = 'summary';
|
|
12285
12288
|
`);
|
|
12286
12289
|
}
|
|
12287
|
-
function
|
|
12290
|
+
function up52(db) {
|
|
12288
12291
|
db.exec(`
|
|
12289
12292
|
DROP TRIGGER IF EXISTS session_transcripts_fts_ai;
|
|
12290
12293
|
DROP TRIGGER IF EXISTS session_transcripts_fts_ad;
|
|
@@ -12382,7 +12385,7 @@ function up51(db) {
|
|
|
12382
12385
|
AND COALESCE(source_type, 'summary') = 'summary';
|
|
12383
12386
|
`);
|
|
12384
12387
|
}
|
|
12385
|
-
function
|
|
12388
|
+
function up53(db) {
|
|
12386
12389
|
db.exec(`
|
|
12387
12390
|
CREATE TABLE IF NOT EXISTS memory_thread_heads (
|
|
12388
12391
|
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
@@ -12500,7 +12503,7 @@ function up52(db) {
|
|
|
12500
12503
|
WHERE excluded.latest_at >= memory_thread_heads.latest_at;
|
|
12501
12504
|
`);
|
|
12502
12505
|
}
|
|
12503
|
-
function
|
|
12506
|
+
function up54(db) {
|
|
12504
12507
|
db.exec(`
|
|
12505
12508
|
CREATE TABLE IF NOT EXISTS session_extract_cursors (
|
|
12506
12509
|
session_key TEXT NOT NULL,
|
|
@@ -12517,7 +12520,7 @@ function hasTable(db, name) {
|
|
|
12517
12520
|
WHERE type = 'table' AND name = ?
|
|
12518
12521
|
LIMIT 1`).get(name) !== undefined;
|
|
12519
12522
|
}
|
|
12520
|
-
function
|
|
12523
|
+
function up55(db) {
|
|
12521
12524
|
db.exec(`
|
|
12522
12525
|
CREATE TABLE IF NOT EXISTS entity_dependency_history (
|
|
12523
12526
|
id TEXT PRIMARY KEY,
|
|
@@ -12687,7 +12690,7 @@ function addColumnIfMissing16(db, table, column, definition) {
|
|
|
12687
12690
|
return;
|
|
12688
12691
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12689
12692
|
}
|
|
12690
|
-
function
|
|
12693
|
+
function up56(db) {
|
|
12691
12694
|
addColumnIfMissing16(db, "summary_jobs", "session_id", "TEXT");
|
|
12692
12695
|
addColumnIfMissing16(db, "summary_jobs", "trigger", "TEXT NOT NULL DEFAULT 'session_end'");
|
|
12693
12696
|
addColumnIfMissing16(db, "summary_jobs", "captured_at", "TEXT");
|
|
@@ -12779,24 +12782,8 @@ function up55(db) {
|
|
|
12779
12782
|
VALUES ('rebuild');
|
|
12780
12783
|
`);
|
|
12781
12784
|
}
|
|
12782
|
-
function
|
|
12783
|
-
|
|
12784
|
-
CREATE TABLE IF NOT EXISTS mcp_invocations (
|
|
12785
|
-
id TEXT PRIMARY KEY,
|
|
12786
|
-
server_id TEXT NOT NULL,
|
|
12787
|
-
tool_name TEXT NOT NULL,
|
|
12788
|
-
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
12789
|
-
source TEXT NOT NULL CHECK(source IN ('cli','agent','mcp','dashboard')),
|
|
12790
|
-
latency_ms INTEGER NOT NULL,
|
|
12791
|
-
success INTEGER NOT NULL DEFAULT 1,
|
|
12792
|
-
error_text TEXT,
|
|
12793
|
-
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
12794
|
-
);
|
|
12795
|
-
CREATE INDEX IF NOT EXISTS idx_mcp_inv_server ON mcp_invocations(server_id, created_at);
|
|
12796
|
-
CREATE INDEX IF NOT EXISTS idx_mcp_inv_agent ON mcp_invocations(agent_id, created_at);
|
|
12797
|
-
`);
|
|
12798
|
-
}
|
|
12799
|
-
function up57(db) {
|
|
12785
|
+
function up57(_db) {}
|
|
12786
|
+
function up58(db) {
|
|
12800
12787
|
db.exec(`
|
|
12801
12788
|
CREATE TABLE IF NOT EXISTS skill_invocations (
|
|
12802
12789
|
id TEXT PRIMARY KEY,
|
|
@@ -12812,7 +12799,7 @@ function up57(db) {
|
|
|
12812
12799
|
CREATE INDEX IF NOT EXISTS idx_skill_inv_agent ON skill_invocations(agent_id, created_at);
|
|
12813
12800
|
`);
|
|
12814
12801
|
}
|
|
12815
|
-
function
|
|
12802
|
+
function up59(db) {
|
|
12816
12803
|
db.exec(`
|
|
12817
12804
|
CREATE TABLE IF NOT EXISTS task_scope_hints (
|
|
12818
12805
|
task_id TEXT PRIMARY KEY REFERENCES scheduled_tasks(id) ON DELETE CASCADE,
|
|
@@ -12843,7 +12830,7 @@ function up58(db) {
|
|
|
12843
12830
|
ON task_scope_hints(agent_id, updated_at);
|
|
12844
12831
|
`);
|
|
12845
12832
|
}
|
|
12846
|
-
function
|
|
12833
|
+
function up60(db) {
|
|
12847
12834
|
db.exec(`
|
|
12848
12835
|
CREATE TABLE IF NOT EXISTS dreaming_state (
|
|
12849
12836
|
agent_id TEXT PRIMARY KEY NOT NULL,
|
|
@@ -12886,7 +12873,7 @@ function ensureMemoriesScopeColumns(db) {
|
|
|
12886
12873
|
if (!names.has("scope"))
|
|
12887
12874
|
db.exec("ALTER TABLE memories ADD COLUMN scope TEXT");
|
|
12888
12875
|
}
|
|
12889
|
-
function
|
|
12876
|
+
function up61(db) {
|
|
12890
12877
|
ensureMemoriesScopeColumns(db);
|
|
12891
12878
|
db.exec("DROP INDEX IF EXISTS idx_memories_content_hash_unique");
|
|
12892
12879
|
db.exec(`
|
|
@@ -12899,20 +12886,20 @@ function up60(db) {
|
|
|
12899
12886
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
12900
12887
|
`);
|
|
12901
12888
|
}
|
|
12902
|
-
function
|
|
12889
|
+
function up62(db) {
|
|
12903
12890
|
const sql = readMemoriesFtsSql(db);
|
|
12904
12891
|
if (sql !== null && !memoriesFtsNeedsTokenizerRepair(sql))
|
|
12905
12892
|
return;
|
|
12906
12893
|
recreateMemoriesFts(db);
|
|
12907
12894
|
}
|
|
12908
|
-
function
|
|
12895
|
+
function up63(db) {
|
|
12909
12896
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_entities_order
|
|
12910
12897
|
ON entities(agent_id, pinned DESC, pinned_at DESC, mentions DESC, updated_at DESC, name)`);
|
|
12911
12898
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_entities_extracted_mentions
|
|
12912
12899
|
ON entities(entity_type, mentions)
|
|
12913
12900
|
WHERE entity_type = 'extracted'`);
|
|
12914
12901
|
}
|
|
12915
|
-
function
|
|
12902
|
+
function up64(db) {
|
|
12916
12903
|
const cols = db.prepare("PRAGMA table_info(entity_attributes)").all();
|
|
12917
12904
|
if (!cols.some((col) => col.name === "claim_key")) {
|
|
12918
12905
|
db.exec("ALTER TABLE entity_attributes ADD COLUMN claim_key TEXT");
|
|
@@ -12921,7 +12908,7 @@ function up63(db) {
|
|
|
12921
12908
|
ON entity_attributes(agent_id, aspect_id, claim_key, status)
|
|
12922
12909
|
WHERE claim_key IS NOT NULL`);
|
|
12923
12910
|
}
|
|
12924
|
-
function
|
|
12911
|
+
function up65(db) {
|
|
12925
12912
|
const cols = db.prepare("PRAGMA table_info(entity_attributes)").all();
|
|
12926
12913
|
if (!cols.some((col) => col.name === "group_key")) {
|
|
12927
12914
|
db.exec("ALTER TABLE entity_attributes ADD COLUMN group_key TEXT");
|
|
@@ -12933,13 +12920,13 @@ function up64(db) {
|
|
|
12933
12920
|
ON entity_attributes(agent_id, aspect_id, group_key, claim_key, status)
|
|
12934
12921
|
WHERE claim_key IS NOT NULL`);
|
|
12935
12922
|
}
|
|
12936
|
-
function
|
|
12923
|
+
function up66(db) {
|
|
12937
12924
|
const cols = db.prepare("PRAGMA table_info(memory_artifacts)").all();
|
|
12938
12925
|
if (cols.some((col) => col.name === "source_mtime_ms"))
|
|
12939
12926
|
return;
|
|
12940
12927
|
db.exec("ALTER TABLE memory_artifacts ADD COLUMN source_mtime_ms REAL");
|
|
12941
12928
|
}
|
|
12942
|
-
function
|
|
12929
|
+
function up67(db) {
|
|
12943
12930
|
const cols = db.prepare("PRAGMA table_info(memory_artifacts)").all();
|
|
12944
12931
|
const names = new Set(cols.map((col) => col.name));
|
|
12945
12932
|
if (!names.has("is_deleted")) {
|
|
@@ -12953,7 +12940,7 @@ function up66(db) {
|
|
|
12953
12940
|
ON memory_artifacts(agent_id, is_deleted, deleted_at)
|
|
12954
12941
|
`);
|
|
12955
12942
|
}
|
|
12956
|
-
function
|
|
12943
|
+
function up68(db) {
|
|
12957
12944
|
db.exec("DROP TRIGGER IF EXISTS memories_au");
|
|
12958
12945
|
db.exec(`
|
|
12959
12946
|
CREATE TRIGGER IF NOT EXISTS memories_au AFTER UPDATE OF content ON memories BEGIN
|
|
@@ -12971,7 +12958,7 @@ function addColumnIfMissing17(db, table, column, definition) {
|
|
|
12971
12958
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12972
12959
|
}
|
|
12973
12960
|
}
|
|
12974
|
-
function
|
|
12961
|
+
function up69(db) {
|
|
12975
12962
|
for (const table of ["entities", "entity_communities", "entity_attributes", "entity_dependencies"]) {
|
|
12976
12963
|
addColumnIfMissing17(db, table, "source_id", "TEXT");
|
|
12977
12964
|
addColumnIfMissing17(db, table, "source_kind", "TEXT");
|
|
@@ -12991,7 +12978,7 @@ function hasColumn7(db, table, column) {
|
|
|
12991
12978
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12992
12979
|
return rows.some((row) => row.name === column);
|
|
12993
12980
|
}
|
|
12994
|
-
function
|
|
12981
|
+
function up70(db) {
|
|
12995
12982
|
if (!hasTable2(db, "embeddings"))
|
|
12996
12983
|
return;
|
|
12997
12984
|
if (!hasColumn7(db, "embeddings", "agent_id")) {
|
|
@@ -12999,7 +12986,7 @@ function up69(db) {
|
|
|
12999
12986
|
}
|
|
13000
12987
|
db.exec("CREATE INDEX IF NOT EXISTS idx_embeddings_agent_source ON embeddings(agent_id, source_type, source_id)");
|
|
13001
12988
|
}
|
|
13002
|
-
function
|
|
12989
|
+
function up71(db) {
|
|
13003
12990
|
db.exec(`
|
|
13004
12991
|
CREATE TABLE IF NOT EXISTS memory_search_telemetry (
|
|
13005
12992
|
id TEXT PRIMARY KEY,
|
|
@@ -13040,7 +13027,7 @@ function addColumnIfMissing18(db, table, column, definition) {
|
|
|
13040
13027
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13041
13028
|
}
|
|
13042
13029
|
}
|
|
13043
|
-
function
|
|
13030
|
+
function up72(db) {
|
|
13044
13031
|
db.exec(`
|
|
13045
13032
|
CREATE TABLE IF NOT EXISTS ontology_proposals (
|
|
13046
13033
|
id TEXT PRIMARY KEY,
|
|
@@ -13083,7 +13070,7 @@ function up71(db) {
|
|
|
13083
13070
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_${table}_proposal ON ${table}(agent_id, proposal_id)`);
|
|
13084
13071
|
}
|
|
13085
13072
|
}
|
|
13086
|
-
function
|
|
13073
|
+
function up73(db) {
|
|
13087
13074
|
db.exec(`
|
|
13088
13075
|
CREATE TABLE IF NOT EXISTS daily_reflections (
|
|
13089
13076
|
id TEXT PRIMARY KEY,
|
|
@@ -13110,7 +13097,7 @@ function up72(db) {
|
|
|
13110
13097
|
WHERE content_key IS NOT NULL;
|
|
13111
13098
|
`);
|
|
13112
13099
|
}
|
|
13113
|
-
function
|
|
13100
|
+
function up74(db) {
|
|
13114
13101
|
const cols = db.prepare("PRAGMA table_info(daily_reflections)").all();
|
|
13115
13102
|
const colNames = new Set(cols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
13116
13103
|
if (!colNames.has("content_key")) {
|
|
@@ -13147,7 +13134,7 @@ function backfillVersionRoots(db) {
|
|
|
13147
13134
|
WHERE version_root_id IS NULL
|
|
13148
13135
|
`);
|
|
13149
13136
|
}
|
|
13150
|
-
function
|
|
13137
|
+
function up75(db) {
|
|
13151
13138
|
for (const table of ["entities", "entity_aspects", "entity_dependencies"]) {
|
|
13152
13139
|
addColumnIfMissing19(db, table, "status", "TEXT NOT NULL DEFAULT 'active'");
|
|
13153
13140
|
addColumnIfMissing19(db, table, "archived_at", "TEXT");
|
|
@@ -13182,7 +13169,7 @@ function up74(db) {
|
|
|
13182
13169
|
ON entity_aspects(agent_id, proposal_id);
|
|
13183
13170
|
`);
|
|
13184
13171
|
}
|
|
13185
|
-
function
|
|
13172
|
+
function up76(db) {
|
|
13186
13173
|
db.exec(`
|
|
13187
13174
|
CREATE TABLE IF NOT EXISTS epistemic_assertions (
|
|
13188
13175
|
id TEXT PRIMARY KEY,
|
|
@@ -13238,7 +13225,7 @@ function ensureMemoriesScopeColumns2(db) {
|
|
|
13238
13225
|
if (!names.has("runtime_path"))
|
|
13239
13226
|
db.exec("ALTER TABLE memories ADD COLUMN runtime_path TEXT");
|
|
13240
13227
|
}
|
|
13241
|
-
function
|
|
13228
|
+
function up77(db) {
|
|
13242
13229
|
ensureMemoriesScopeColumns2(db);
|
|
13243
13230
|
db.exec("DROP INDEX IF EXISTS idx_memories_idempotency_key");
|
|
13244
13231
|
db.exec(`
|
|
@@ -13252,7 +13239,7 @@ function up76(db) {
|
|
|
13252
13239
|
WHERE idempotency_key IS NOT NULL AND is_deleted = 0
|
|
13253
13240
|
`);
|
|
13254
13241
|
}
|
|
13255
|
-
function
|
|
13242
|
+
function up78(db) {
|
|
13256
13243
|
db.exec(`
|
|
13257
13244
|
CREATE TABLE IF NOT EXISTS session_context_epochs (
|
|
13258
13245
|
session_key TEXT NOT NULL,
|
|
@@ -13287,7 +13274,7 @@ function up77(db) {
|
|
|
13287
13274
|
ON session_recall_events(item_kind, item_id, created_at DESC);
|
|
13288
13275
|
`);
|
|
13289
13276
|
}
|
|
13290
|
-
function
|
|
13277
|
+
function up79(db) {
|
|
13291
13278
|
db.exec(`
|
|
13292
13279
|
CREATE TABLE IF NOT EXISTS aggregate_memory_sources (
|
|
13293
13280
|
aggregate_memory_id TEXT NOT NULL,
|
|
@@ -13306,7 +13293,7 @@ function addColumnIfMissing20(db, table, column, definition) {
|
|
|
13306
13293
|
return;
|
|
13307
13294
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13308
13295
|
}
|
|
13309
|
-
function
|
|
13296
|
+
function up80(db) {
|
|
13310
13297
|
addColumnIfMissing20(db, "memory_artifacts", "source_id", "TEXT");
|
|
13311
13298
|
addColumnIfMissing20(db, "memory_artifacts", "source_root", "TEXT");
|
|
13312
13299
|
addColumnIfMissing20(db, "memory_artifacts", "source_external_id", "TEXT");
|
|
@@ -13319,7 +13306,7 @@ function up79(db) {
|
|
|
13319
13306
|
ON memory_artifacts(agent_id, source_id, source_root);
|
|
13320
13307
|
`);
|
|
13321
13308
|
}
|
|
13322
|
-
function
|
|
13309
|
+
function up81(db) {
|
|
13323
13310
|
db.exec(`
|
|
13324
13311
|
CREATE TABLE IF NOT EXISTS temporal_edges (
|
|
13325
13312
|
id TEXT PRIMARY KEY,
|
|
@@ -13342,7 +13329,7 @@ function up80(db) {
|
|
|
13342
13329
|
ON temporal_edges(agent_id, subject_type, subject_id);
|
|
13343
13330
|
`);
|
|
13344
13331
|
}
|
|
13345
|
-
function
|
|
13332
|
+
function up82(db) {
|
|
13346
13333
|
db.exec(`
|
|
13347
13334
|
CREATE TABLE IF NOT EXISTS entity_aliases (
|
|
13348
13335
|
id TEXT PRIMARY KEY,
|
|
@@ -13366,7 +13353,7 @@ function up81(db) {
|
|
|
13366
13353
|
ON entity_aliases(agent_id, canonical_alias, status);
|
|
13367
13354
|
`);
|
|
13368
13355
|
}
|
|
13369
|
-
function
|
|
13356
|
+
function up83(db) {
|
|
13370
13357
|
db.exec(`
|
|
13371
13358
|
CREATE TABLE IF NOT EXISTS api_keys (
|
|
13372
13359
|
id TEXT PRIMARY KEY,
|
|
@@ -13394,7 +13381,7 @@ function up82(db) {
|
|
|
13394
13381
|
ON api_keys(connector, harness);
|
|
13395
13382
|
`);
|
|
13396
13383
|
}
|
|
13397
|
-
function
|
|
13384
|
+
function up84(db) {
|
|
13398
13385
|
db.exec(`
|
|
13399
13386
|
CREATE TABLE IF NOT EXISTS transcript_capture_jobs (
|
|
13400
13387
|
id TEXT PRIMARY KEY,
|
|
@@ -13429,7 +13416,7 @@ function hasColumn10(db, table, column) {
|
|
|
13429
13416
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13430
13417
|
return rows.some((row) => row.name === column);
|
|
13431
13418
|
}
|
|
13432
|
-
function
|
|
13419
|
+
function up85(db) {
|
|
13433
13420
|
if (!hasColumn10(db, "documents", "agent_id")) {
|
|
13434
13421
|
db.exec("ALTER TABLE documents ADD COLUMN agent_id TEXT NOT NULL DEFAULT 'default'");
|
|
13435
13422
|
}
|
|
@@ -13515,7 +13502,7 @@ function up84(db) {
|
|
|
13515
13502
|
db.exec("CREATE INDEX IF NOT EXISTS idx_documents_agent_project ON documents(agent_id, project)");
|
|
13516
13503
|
db.exec("CREATE INDEX IF NOT EXISTS idx_documents_source_scope ON documents(source_url, agent_id, project)");
|
|
13517
13504
|
}
|
|
13518
|
-
function
|
|
13505
|
+
function up86(db) {
|
|
13519
13506
|
db.exec(`
|
|
13520
13507
|
CREATE TABLE IF NOT EXISTS aggregate_evidence_sources (
|
|
13521
13508
|
aggregate_memory_id TEXT NOT NULL,
|
|
@@ -13537,7 +13524,7 @@ function hasColumn11(db, table, column) {
|
|
|
13537
13524
|
return rows.some((row) => row.name === column);
|
|
13538
13525
|
}
|
|
13539
13526
|
var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
13540
|
-
function
|
|
13527
|
+
function up87(db) {
|
|
13541
13528
|
for (const column of COLUMNS) {
|
|
13542
13529
|
if (!hasColumn11(db, "skill_invocations", column)) {
|
|
13543
13530
|
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
@@ -13618,7 +13605,7 @@ function documentScopeColumnsPreservingExisting(db) {
|
|
|
13618
13605
|
`);
|
|
13619
13606
|
}
|
|
13620
13607
|
try {
|
|
13621
|
-
|
|
13608
|
+
up85(db);
|
|
13622
13609
|
if (preserveAgentId) {
|
|
13623
13610
|
db.exec(`
|
|
13624
13611
|
UPDATE documents
|
|
@@ -13638,12 +13625,12 @@ function documentScopeColumnsPreservingExisting(db) {
|
|
|
13638
13625
|
db.exec("DROP TABLE IF EXISTS temp.__signet_doc_project_guard");
|
|
13639
13626
|
}
|
|
13640
13627
|
}
|
|
13641
|
-
function
|
|
13642
|
-
|
|
13628
|
+
function up88(db) {
|
|
13629
|
+
up84(db);
|
|
13643
13630
|
if (hasTable3(db, "documents")) {
|
|
13644
13631
|
documentScopeColumnsPreservingExisting(db);
|
|
13645
13632
|
}
|
|
13646
|
-
|
|
13633
|
+
up86(db);
|
|
13647
13634
|
addColumnIfMissing21(db, "memories", "superseded_by", "TEXT");
|
|
13648
13635
|
addColumnIfMissing21(db, "memories", "superseded_at", "TEXT");
|
|
13649
13636
|
addColumnIfMissing21(db, "memories", "superseded_reason", "TEXT");
|
|
@@ -13700,7 +13687,7 @@ function up87(db) {
|
|
|
13700
13687
|
AND ${sourceAgentId} = ${targetAgentId}
|
|
13701
13688
|
`);
|
|
13702
13689
|
}
|
|
13703
|
-
function
|
|
13690
|
+
function up89(db) {
|
|
13704
13691
|
db.exec(`
|
|
13705
13692
|
CREATE TABLE IF NOT EXISTS legacy_markdown_imports (
|
|
13706
13693
|
path TEXT PRIMARY KEY,
|
|
@@ -13730,7 +13717,7 @@ function up88(db) {
|
|
|
13730
13717
|
ON legacy_markdown_chunks(memory_id);
|
|
13731
13718
|
`);
|
|
13732
13719
|
}
|
|
13733
|
-
function
|
|
13720
|
+
function up90(db) {
|
|
13734
13721
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name IN ('relations', 'entity_dependencies')").all();
|
|
13735
13722
|
const tableNames = new Set(tables.map((r2) => String(r2.name)));
|
|
13736
13723
|
if (!tableNames.has("relations") || !tableNames.has("entity_dependencies"))
|
|
@@ -13789,7 +13776,7 @@ function addColumnIfMissing22(db, table, column, definition) {
|
|
|
13789
13776
|
return;
|
|
13790
13777
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13791
13778
|
}
|
|
13792
|
-
function
|
|
13779
|
+
function up91(db) {
|
|
13793
13780
|
addColumnIfMissing22(db, "summary_jobs", "content_hash", "TEXT");
|
|
13794
13781
|
db.exec(`
|
|
13795
13782
|
CREATE INDEX IF NOT EXISTS idx_summary_jobs_agent_session_content_hash
|
|
@@ -13802,14 +13789,14 @@ function addColumnIfMissing23(db, table, column, definition) {
|
|
|
13802
13789
|
return;
|
|
13803
13790
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13804
13791
|
}
|
|
13805
|
-
function
|
|
13792
|
+
function up92(db) {
|
|
13806
13793
|
addColumnIfMissing23(db, "summary_jobs", "boundary_reason", "TEXT");
|
|
13807
13794
|
db.exec(`
|
|
13808
13795
|
CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
|
|
13809
13796
|
ON summary_jobs(agent_id, session_key, boundary_reason)
|
|
13810
13797
|
`);
|
|
13811
13798
|
}
|
|
13812
|
-
function
|
|
13799
|
+
function up93(db) {
|
|
13813
13800
|
db.exec(`
|
|
13814
13801
|
CREATE TABLE IF NOT EXISTS transcript_recovery_files (
|
|
13815
13802
|
agent_id TEXT NOT NULL,
|
|
@@ -13827,7 +13814,7 @@ function up92(db) {
|
|
|
13827
13814
|
ON transcript_capture_jobs(agent_id, session_id, status);
|
|
13828
13815
|
`);
|
|
13829
13816
|
}
|
|
13830
|
-
function
|
|
13817
|
+
function up94(db) {
|
|
13831
13818
|
db.exec(`
|
|
13832
13819
|
CREATE TABLE IF NOT EXISTS job_cancellations (
|
|
13833
13820
|
id TEXT PRIMARY KEY,
|
|
@@ -13855,7 +13842,7 @@ function indexExists(db, table, indexName) {
|
|
|
13855
13842
|
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
13856
13843
|
return rows.some((row) => row.name === indexName);
|
|
13857
13844
|
}
|
|
13858
|
-
function
|
|
13845
|
+
function up95(db) {
|
|
13859
13846
|
db.exec(`
|
|
13860
13847
|
CREATE TABLE IF NOT EXISTS job_archive (
|
|
13861
13848
|
id TEXT PRIMARY KEY,
|
|
@@ -13882,7 +13869,7 @@ function indexExists2(db, table, indexName) {
|
|
|
13882
13869
|
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
13883
13870
|
return rows.some((row) => row.name === indexName);
|
|
13884
13871
|
}
|
|
13885
|
-
function
|
|
13872
|
+
function up96(db) {
|
|
13886
13873
|
db.exec(`
|
|
13887
13874
|
CREATE TABLE IF NOT EXISTS embedding_index_state (
|
|
13888
13875
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
@@ -13895,7 +13882,7 @@ function up95(db) {
|
|
|
13895
13882
|
)
|
|
13896
13883
|
`);
|
|
13897
13884
|
}
|
|
13898
|
-
function
|
|
13885
|
+
function up97(db) {
|
|
13899
13886
|
db.exec(`
|
|
13900
13887
|
CREATE TABLE IF NOT EXISTS embeddings_staging (
|
|
13901
13888
|
id TEXT PRIMARY KEY,
|
|
@@ -13914,7 +13901,7 @@ function up96(db) {
|
|
|
13914
13901
|
ON embeddings_staging(agent_id, source_type, source_id);
|
|
13915
13902
|
`);
|
|
13916
13903
|
}
|
|
13917
|
-
function
|
|
13904
|
+
function up98(db) {
|
|
13918
13905
|
const columns = db.prepare("PRAGMA table_info(dreaming_state)").all();
|
|
13919
13906
|
if (!columns.some((column) => column.name === "evidence_cursor")) {
|
|
13920
13907
|
db.exec("ALTER TABLE dreaming_state ADD COLUMN evidence_cursor TEXT");
|
|
@@ -13925,7 +13912,7 @@ function hasColumn13(db, table, column) {
|
|
|
13925
13912
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13926
13913
|
return rows.some((r2) => r2.name === column);
|
|
13927
13914
|
}
|
|
13928
|
-
function
|
|
13915
|
+
function up99(db) {
|
|
13929
13916
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name = 'memories'").all();
|
|
13930
13917
|
if (tables.length === 0)
|
|
13931
13918
|
return;
|
|
@@ -13950,23 +13937,23 @@ function up98(db) {
|
|
|
13950
13937
|
function hasColumn14(db, table, column) {
|
|
13951
13938
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
13952
13939
|
}
|
|
13953
|
-
function
|
|
13940
|
+
function up100(db) {
|
|
13954
13941
|
const hasMemories = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'memories'").get();
|
|
13955
13942
|
if (!hasMemories || !hasColumn14(db, "memories", "memory_kind") || !hasColumn14(db, "memories", "type"))
|
|
13956
13943
|
return;
|
|
13957
13944
|
db.exec("UPDATE memories SET memory_kind = NULL WHERE type = 'session_summary'");
|
|
13958
13945
|
}
|
|
13959
|
-
function
|
|
13946
|
+
function up101(db) {
|
|
13960
13947
|
db.exec("DROP TABLE IF EXISTS ingestion_jobs");
|
|
13961
13948
|
}
|
|
13962
|
-
function
|
|
13949
|
+
function up102(db) {
|
|
13963
13950
|
const columns = db.prepare("PRAGMA table_info(dreaming_state)").all();
|
|
13964
13951
|
if (!columns.some((column) => column.name === "last_failure_at")) {
|
|
13965
13952
|
db.exec("ALTER TABLE dreaming_state ADD COLUMN last_failure_at TEXT");
|
|
13966
13953
|
}
|
|
13967
13954
|
db.exec("UPDATE dreaming_state SET last_failure_at = updated_at WHERE consecutive_failures > 0 AND last_failure_at IS NULL");
|
|
13968
13955
|
}
|
|
13969
|
-
function
|
|
13956
|
+
function up103(db) {
|
|
13970
13957
|
db.exec(`
|
|
13971
13958
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_exclusions (
|
|
13972
13959
|
agent_id TEXT NOT NULL,
|
|
@@ -13983,7 +13970,7 @@ function up102(db) {
|
|
|
13983
13970
|
ON dreaming_evidence_exclusions (agent_id, resolved_at, requeue_requested_at, excluded_at DESC);
|
|
13984
13971
|
`);
|
|
13985
13972
|
}
|
|
13986
|
-
function
|
|
13973
|
+
function up104(db) {
|
|
13987
13974
|
db.exec(`
|
|
13988
13975
|
CREATE TABLE IF NOT EXISTS dreaming_tool_calls (
|
|
13989
13976
|
id TEXT PRIMARY KEY,
|
|
@@ -14003,7 +13990,7 @@ function up103(db) {
|
|
|
14003
13990
|
ON dreaming_tool_calls (agent_id, pass_id, sequence ASC);
|
|
14004
13991
|
`);
|
|
14005
13992
|
}
|
|
14006
|
-
function
|
|
13993
|
+
function up105(db) {
|
|
14007
13994
|
const columns = db.prepare("PRAGMA table_info(dreaming_passes)").all();
|
|
14008
13995
|
if (!columns.some((column) => column.name === "evidence_window_json")) {
|
|
14009
13996
|
db.exec("ALTER TABLE dreaming_passes ADD COLUMN evidence_window_json TEXT");
|
|
@@ -14012,7 +13999,7 @@ function up104(db) {
|
|
|
14012
13999
|
db.exec("ALTER TABLE dreaming_passes ADD COLUMN runbook_json TEXT");
|
|
14013
14000
|
}
|
|
14014
14001
|
}
|
|
14015
|
-
function
|
|
14002
|
+
function up106(db) {
|
|
14016
14003
|
db.exec(`
|
|
14017
14004
|
CREATE TABLE IF NOT EXISTS dreaming_attention (
|
|
14018
14005
|
id TEXT PRIMARY KEY,
|
|
@@ -14034,7 +14021,7 @@ function up105(db) {
|
|
|
14034
14021
|
function hasColumn15(db, table, column) {
|
|
14035
14022
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14036
14023
|
}
|
|
14037
|
-
function
|
|
14024
|
+
function up107(db) {
|
|
14038
14025
|
const requiredMemoryColumns = [
|
|
14039
14026
|
"content_hash",
|
|
14040
14027
|
"normalized_content",
|
|
@@ -14085,7 +14072,7 @@ function up106(db) {
|
|
|
14085
14072
|
WHERE EXISTS (SELECT 1 FROM memory_entity_mentions WHERE entity_id = entities.id)
|
|
14086
14073
|
`);
|
|
14087
14074
|
}
|
|
14088
|
-
function
|
|
14075
|
+
function up108(db) {
|
|
14089
14076
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name IN ('memories', 'entity_attributes')").all();
|
|
14090
14077
|
if (tables.length !== 2)
|
|
14091
14078
|
return;
|
|
@@ -14108,7 +14095,7 @@ function tableExists(db, table) {
|
|
|
14108
14095
|
function hasColumn16(db, table, column) {
|
|
14109
14096
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14110
14097
|
}
|
|
14111
|
-
function
|
|
14098
|
+
function up109(db) {
|
|
14112
14099
|
db.exec(`
|
|
14113
14100
|
CREATE TABLE IF NOT EXISTS derived_memory_sources (
|
|
14114
14101
|
derived_memory_id TEXT NOT NULL,
|
|
@@ -14151,7 +14138,7 @@ function up108(db) {
|
|
|
14151
14138
|
`);
|
|
14152
14139
|
}
|
|
14153
14140
|
}
|
|
14154
|
-
function
|
|
14141
|
+
function up110(db) {
|
|
14155
14142
|
db.exec(`
|
|
14156
14143
|
DROP TRIGGER IF EXISTS entities_fts_ai;
|
|
14157
14144
|
DROP TRIGGER IF EXISTS entities_fts_ad;
|
|
@@ -14240,7 +14227,7 @@ function up109(db) {
|
|
|
14240
14227
|
function hasColumn17(db, table, column) {
|
|
14241
14228
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14242
14229
|
}
|
|
14243
|
-
function
|
|
14230
|
+
function up111(db) {
|
|
14244
14231
|
if (!hasColumn17(db, "memories", "review_after")) {
|
|
14245
14232
|
db.exec("ALTER TABLE memories ADD COLUMN review_after TEXT;");
|
|
14246
14233
|
}
|
|
@@ -14256,14 +14243,14 @@ var TOKEN_COLUMNS = [
|
|
|
14256
14243
|
["tokens_cache_write", "INTEGER"],
|
|
14257
14244
|
["tokens_cost", "REAL"]
|
|
14258
14245
|
];
|
|
14259
|
-
function
|
|
14246
|
+
function up112(db) {
|
|
14260
14247
|
for (const [column, type] of TOKEN_COLUMNS) {
|
|
14261
14248
|
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
14262
14249
|
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
14263
14250
|
}
|
|
14264
14251
|
}
|
|
14265
14252
|
}
|
|
14266
|
-
function
|
|
14253
|
+
function up113(db) {
|
|
14267
14254
|
db.exec(`
|
|
14268
14255
|
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
14269
14256
|
day TEXT NOT NULL,
|
|
@@ -14276,7 +14263,7 @@ function up112(db) {
|
|
|
14276
14263
|
);
|
|
14277
14264
|
`);
|
|
14278
14265
|
}
|
|
14279
|
-
function
|
|
14266
|
+
function up114(db) {
|
|
14280
14267
|
db.exec(`
|
|
14281
14268
|
CREATE TABLE IF NOT EXISTS telemetry_install (
|
|
14282
14269
|
id TEXT PRIMARY KEY,
|
|
@@ -14284,7 +14271,7 @@ function up113(db) {
|
|
|
14284
14271
|
);
|
|
14285
14272
|
`);
|
|
14286
14273
|
}
|
|
14287
|
-
function
|
|
14274
|
+
function up115(db) {
|
|
14288
14275
|
db.exec(`
|
|
14289
14276
|
CREATE INDEX IF NOT EXISTS idx_memory_entity_mentions_entity_memory
|
|
14290
14277
|
ON memory_entity_mentions(entity_id, memory_id);
|
|
@@ -14295,7 +14282,7 @@ function hasColumn19(db, table, column) {
|
|
|
14295
14282
|
return rows.some((row) => row.name === column);
|
|
14296
14283
|
}
|
|
14297
14284
|
var COLUMNS2 = ["first_remember_at", "first_recall_at"];
|
|
14298
|
-
function
|
|
14285
|
+
function up116(db) {
|
|
14299
14286
|
for (const column of COLUMNS2) {
|
|
14300
14287
|
if (!hasColumn19(db, "telemetry_install", column)) {
|
|
14301
14288
|
db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
|
|
@@ -14311,7 +14298,7 @@ function addColumnIfMissing24(db, column, definition) {
|
|
|
14311
14298
|
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
14312
14299
|
}
|
|
14313
14300
|
}
|
|
14314
|
-
function
|
|
14301
|
+
function up117(db) {
|
|
14315
14302
|
addColumnIfMissing24(db, "source", "TEXT NOT NULL DEFAULT 'daemon'");
|
|
14316
14303
|
addColumnIfMissing24(db, "claim_token", "TEXT");
|
|
14317
14304
|
addColumnIfMissing24(db, "claimed_at", "TEXT");
|
|
@@ -14320,7 +14307,7 @@ function up116(db) {
|
|
|
14320
14307
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
14321
14308
|
`);
|
|
14322
14309
|
}
|
|
14323
|
-
function
|
|
14310
|
+
function up118(db) {
|
|
14324
14311
|
db.exec(`
|
|
14325
14312
|
CREATE TABLE IF NOT EXISTS session_claims (
|
|
14326
14313
|
session_key TEXT NOT NULL,
|
|
@@ -14341,7 +14328,7 @@ function up117(db) {
|
|
|
14341
14328
|
ON session_claims(agent_id, state, expires_at);
|
|
14342
14329
|
`);
|
|
14343
14330
|
}
|
|
14344
|
-
function
|
|
14331
|
+
function up119(db) {
|
|
14345
14332
|
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'entity_attributes'").get();
|
|
14346
14333
|
if (table == null)
|
|
14347
14334
|
return;
|
|
@@ -14350,7 +14337,7 @@ function up118(db) {
|
|
|
14350
14337
|
ON entity_attributes(memory_id, agent_id, status, importance);
|
|
14351
14338
|
`);
|
|
14352
14339
|
}
|
|
14353
|
-
function
|
|
14340
|
+
function up120(db) {
|
|
14354
14341
|
db.exec(`
|
|
14355
14342
|
CREATE TABLE IF NOT EXISTS cross_agent_messages (
|
|
14356
14343
|
id TEXT PRIMARY KEY,
|
|
@@ -14407,7 +14394,7 @@ function addColumnIfMissing25(db, column, definition) {
|
|
|
14407
14394
|
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
14408
14395
|
}
|
|
14409
14396
|
}
|
|
14410
|
-
function
|
|
14397
|
+
function up121(db) {
|
|
14411
14398
|
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
14412
14399
|
if (table == null)
|
|
14413
14400
|
return;
|
|
@@ -14608,7 +14595,7 @@ function backfillTranscriptsFromSummaryJobs(db) {
|
|
|
14608
14595
|
insert.run(...values);
|
|
14609
14596
|
}
|
|
14610
14597
|
}
|
|
14611
|
-
function
|
|
14598
|
+
function up122(db) {
|
|
14612
14599
|
if (!hasTable4(db, "session_transcripts"))
|
|
14613
14600
|
return;
|
|
14614
14601
|
addColumnIfMissing26(db, "session_transcripts", "completed_at", "TEXT");
|
|
@@ -14661,7 +14648,7 @@ function up121(db) {
|
|
|
14661
14648
|
ON session_transcripts(agent_id, content_hash);
|
|
14662
14649
|
`);
|
|
14663
14650
|
}
|
|
14664
|
-
function
|
|
14651
|
+
function up123(db) {
|
|
14665
14652
|
db.exec(`
|
|
14666
14653
|
CREATE INDEX IF NOT EXISTS idx_memory_jobs_pressure_status
|
|
14667
14654
|
ON memory_jobs(status)
|
|
@@ -14680,12 +14667,12 @@ function up122(db) {
|
|
|
14680
14667
|
function hasColumn22(db, table, column) {
|
|
14681
14668
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14682
14669
|
}
|
|
14683
|
-
function
|
|
14670
|
+
function up124(db) {
|
|
14684
14671
|
if (!hasColumn22(db, "telemetry_install", "last_seen_version")) {
|
|
14685
14672
|
db.exec("ALTER TABLE telemetry_install ADD COLUMN last_seen_version TEXT");
|
|
14686
14673
|
}
|
|
14687
14674
|
}
|
|
14688
|
-
function
|
|
14675
|
+
function up125(db) {
|
|
14689
14676
|
db.exec(`
|
|
14690
14677
|
CREATE TABLE IF NOT EXISTS source_lifecycle_state (
|
|
14691
14678
|
agent_id TEXT NOT NULL,
|
|
@@ -14714,7 +14701,7 @@ function addColumnIfMissing27(db, column, definition) {
|
|
|
14714
14701
|
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
14715
14702
|
}
|
|
14716
14703
|
}
|
|
14717
|
-
function
|
|
14704
|
+
function up126(db) {
|
|
14718
14705
|
addColumnIfMissing27(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
14719
14706
|
addColumnIfMissing27(db, "last_attempt_at", "TEXT");
|
|
14720
14707
|
addColumnIfMissing27(db, "sent_at", "TEXT");
|
|
@@ -14735,7 +14722,7 @@ function up125(db) {
|
|
|
14735
14722
|
VALUES (1, CURRENT_TIMESTAMP);
|
|
14736
14723
|
`);
|
|
14737
14724
|
}
|
|
14738
|
-
function
|
|
14725
|
+
function up127(db) {
|
|
14739
14726
|
const columns = db.prepare("PRAGMA table_info(dreaming_evidence_exclusions)").all();
|
|
14740
14727
|
const names = new Set(columns.map((column) => column.name));
|
|
14741
14728
|
if (!names.has("failure_class")) {
|
|
@@ -14752,7 +14739,7 @@ function up126(db) {
|
|
|
14752
14739
|
}
|
|
14753
14740
|
db.exec("CREATE INDEX IF NOT EXISTS idx_dreaming_evidence_exclusions_retry ON dreaming_evidence_exclusions (resolved_at, requeue_requested_at, failure_class, retry_count, last_requeued_at)");
|
|
14754
14741
|
}
|
|
14755
|
-
function
|
|
14742
|
+
function up128(db) {
|
|
14756
14743
|
db.exec(`
|
|
14757
14744
|
CREATE TABLE IF NOT EXISTS embedding_index_failures (
|
|
14758
14745
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
@@ -14776,7 +14763,7 @@ function up127(db) {
|
|
|
14776
14763
|
ON embedding_index_failures(source_type, source_id);
|
|
14777
14764
|
`);
|
|
14778
14765
|
}
|
|
14779
|
-
function
|
|
14766
|
+
function up129(db) {
|
|
14780
14767
|
db.exec(`
|
|
14781
14768
|
CREATE TABLE IF NOT EXISTS imported_source_lifecycle (
|
|
14782
14769
|
id TEXT PRIMARY KEY,
|
|
@@ -14826,7 +14813,7 @@ function backfillTable(db, params) {
|
|
|
14826
14813
|
FROM ${params.table}${params.where ? ` WHERE ${params.where}` : ""}`).all();
|
|
14827
14814
|
backfill(db, rows, params.sourceKind, params.scannedAt);
|
|
14828
14815
|
}
|
|
14829
|
-
function
|
|
14816
|
+
function up130(db) {
|
|
14830
14817
|
db.exec(`
|
|
14831
14818
|
CREATE TABLE IF NOT EXISTS memory_content_safety (
|
|
14832
14819
|
agent_id TEXT NOT NULL,
|
|
@@ -14883,7 +14870,7 @@ function up129(db) {
|
|
|
14883
14870
|
scannedAt
|
|
14884
14871
|
});
|
|
14885
14872
|
}
|
|
14886
|
-
function
|
|
14873
|
+
function up131(db) {
|
|
14887
14874
|
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
14888
14875
|
if (!table)
|
|
14889
14876
|
return;
|
|
@@ -14917,7 +14904,7 @@ function up130(db) {
|
|
|
14917
14904
|
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
14918
14905
|
`);
|
|
14919
14906
|
}
|
|
14920
|
-
function
|
|
14907
|
+
function up132(db) {
|
|
14921
14908
|
db.exec(`
|
|
14922
14909
|
CREATE TABLE IF NOT EXISTS ontology_contradictions (
|
|
14923
14910
|
id TEXT PRIMARY KEY,
|
|
@@ -14973,7 +14960,7 @@ function up131(db) {
|
|
|
14973
14960
|
ON ontology_contradictions(agent_id, left_source_id, right_source_id);
|
|
14974
14961
|
`);
|
|
14975
14962
|
}
|
|
14976
|
-
function
|
|
14963
|
+
function up133(db) {
|
|
14977
14964
|
db.exec(`
|
|
14978
14965
|
CREATE INDEX IF NOT EXISTS idx_memory_jobs_diagnostics_status_created_at
|
|
14979
14966
|
ON memory_jobs(status, created_at)
|
|
@@ -14988,7 +14975,7 @@ function up132(db) {
|
|
|
14988
14975
|
function tableExists3(db, table) {
|
|
14989
14976
|
return db.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?").get(table) != null;
|
|
14990
14977
|
}
|
|
14991
|
-
function
|
|
14978
|
+
function up134(db) {
|
|
14992
14979
|
if (!tableExists3(db, "memory_jobs"))
|
|
14993
14980
|
return;
|
|
14994
14981
|
if (!tableExists3(db, "job_cancellations")) {
|
|
@@ -15037,7 +15024,7 @@ function up133(db) {
|
|
|
15037
15024
|
AND status IN ('pending', 'leased');
|
|
15038
15025
|
`);
|
|
15039
15026
|
}
|
|
15040
|
-
function
|
|
15027
|
+
function up135(db) {
|
|
15041
15028
|
db.exec(`
|
|
15042
15029
|
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
15043
15030
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
@@ -15077,7 +15064,7 @@ function up134(db) {
|
|
|
15077
15064
|
END;
|
|
15078
15065
|
`);
|
|
15079
15066
|
}
|
|
15080
|
-
function
|
|
15067
|
+
function up136(db) {
|
|
15081
15068
|
db.exec(`
|
|
15082
15069
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_consumption (
|
|
15083
15070
|
agent_id TEXT NOT NULL,
|
|
@@ -15100,13 +15087,13 @@ function up135(db) {
|
|
|
15100
15087
|
ON dreaming_evidence_consumption(agent_id, pass_id, delivered_offset, source_length);
|
|
15101
15088
|
`);
|
|
15102
15089
|
}
|
|
15103
|
-
function
|
|
15090
|
+
function up137(db) {
|
|
15104
15091
|
db.exec(`
|
|
15105
15092
|
CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_observer_entity
|
|
15106
15093
|
ON epistemic_assertions(agent_id, subject_entity_id, status, asserted_at DESC, created_at DESC);
|
|
15107
15094
|
`);
|
|
15108
15095
|
}
|
|
15109
|
-
function
|
|
15096
|
+
function up138(db) {
|
|
15110
15097
|
db.exec(`
|
|
15111
15098
|
CREATE TABLE IF NOT EXISTS memory_head_revisions (
|
|
15112
15099
|
id TEXT PRIMARY KEY,
|
|
@@ -15158,7 +15145,7 @@ function up137(db) {
|
|
|
15158
15145
|
if (!names.has("format_version"))
|
|
15159
15146
|
db.exec("ALTER TABLE memory_md_heads ADD COLUMN format_version INTEGER NOT NULL DEFAULT 1");
|
|
15160
15147
|
}
|
|
15161
|
-
function
|
|
15148
|
+
function up139(db) {
|
|
15162
15149
|
db.exec(`
|
|
15163
15150
|
CREATE TABLE memory_head_entries_v134 (
|
|
15164
15151
|
entry_id TEXT NOT NULL, agent_id TEXT NOT NULL, canonical_text TEXT NOT NULL,
|
|
@@ -15176,7 +15163,7 @@ function up138(db) {
|
|
|
15176
15163
|
ON memory_head_entries(agent_id, entry_id, last_revision DESC);
|
|
15177
15164
|
`);
|
|
15178
15165
|
}
|
|
15179
|
-
function
|
|
15166
|
+
function up140(db) {
|
|
15180
15167
|
db.exec(`
|
|
15181
15168
|
CREATE TABLE IF NOT EXISTS memory_head_publications (
|
|
15182
15169
|
agent_id TEXT NOT NULL,
|
|
@@ -15192,7 +15179,7 @@ function up139(db) {
|
|
|
15192
15179
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
15193
15180
|
`);
|
|
15194
15181
|
}
|
|
15195
|
-
function
|
|
15182
|
+
function up141(db) {
|
|
15196
15183
|
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r2) => r2.name));
|
|
15197
15184
|
for (const [name, type] of [
|
|
15198
15185
|
["entry_id", "TEXT"],
|
|
@@ -15206,7 +15193,7 @@ function up140(db) {
|
|
|
15206
15193
|
}
|
|
15207
15194
|
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
15208
15195
|
}
|
|
15209
|
-
function
|
|
15196
|
+
function up142(db) {
|
|
15210
15197
|
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r2) => r2.name));
|
|
15211
15198
|
for (const [name, type] of [
|
|
15212
15199
|
["head_revision", "INTEGER"],
|
|
@@ -15228,7 +15215,7 @@ function addColumnIfMissing28(db, table, column, definition) {
|
|
|
15228
15215
|
if (!hasColumn25(db, table, column))
|
|
15229
15216
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
15230
15217
|
}
|
|
15231
|
-
function
|
|
15218
|
+
function up143(db) {
|
|
15232
15219
|
addColumnIfMissing28(db, "memories", "manual_override", "INTEGER DEFAULT 0");
|
|
15233
15220
|
db.exec(`
|
|
15234
15221
|
CREATE TABLE IF NOT EXISTS transcript_capture_status (
|
|
@@ -15533,7 +15520,7 @@ function up142(db) {
|
|
|
15533
15520
|
GROUP BY j.agent_id;
|
|
15534
15521
|
`);
|
|
15535
15522
|
}
|
|
15536
|
-
function
|
|
15523
|
+
function up144(db) {
|
|
15537
15524
|
db.exec(`
|
|
15538
15525
|
CREATE TABLE IF NOT EXISTS native_source_sync_state (
|
|
15539
15526
|
agent_id TEXT NOT NULL,
|
|
@@ -15549,7 +15536,7 @@ function up143(db) {
|
|
|
15549
15536
|
ON native_source_sync_state(agent_id, status);
|
|
15550
15537
|
`);
|
|
15551
15538
|
}
|
|
15552
|
-
function
|
|
15539
|
+
function up145(db) {
|
|
15553
15540
|
db.exec(`
|
|
15554
15541
|
CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
|
|
15555
15542
|
agent_id TEXT NOT NULL,
|
|
@@ -15561,7 +15548,7 @@ function up144(db) {
|
|
|
15561
15548
|
);
|
|
15562
15549
|
`);
|
|
15563
15550
|
}
|
|
15564
|
-
function
|
|
15551
|
+
function up146(db) {
|
|
15565
15552
|
db.exec(`
|
|
15566
15553
|
CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
|
|
15567
15554
|
agent_id TEXT NOT NULL,
|
|
@@ -15575,13 +15562,13 @@ function up145(db) {
|
|
|
15575
15562
|
);
|
|
15576
15563
|
`);
|
|
15577
15564
|
}
|
|
15578
|
-
function
|
|
15565
|
+
function up147(db) {
|
|
15579
15566
|
const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
|
|
15580
15567
|
if (!columns.some((column) => column.name === "frontier")) {
|
|
15581
15568
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
15582
15569
|
}
|
|
15583
15570
|
}
|
|
15584
|
-
function
|
|
15571
|
+
function up148(db) {
|
|
15585
15572
|
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
15586
15573
|
const additions = [
|
|
15587
15574
|
["migration_phase", "TEXT"],
|
|
@@ -15616,13 +15603,13 @@ function up147(db) {
|
|
|
15616
15603
|
`);
|
|
15617
15604
|
}
|
|
15618
15605
|
}
|
|
15619
|
-
function
|
|
15606
|
+
function up149(db) {
|
|
15620
15607
|
const columns = new Set(db.prepare("PRAGMA table_info(memory_jobs)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
15621
15608
|
if (!columns.has("lease_token")) {
|
|
15622
15609
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN lease_token TEXT");
|
|
15623
15610
|
}
|
|
15624
15611
|
}
|
|
15625
|
-
function
|
|
15612
|
+
function up150(db) {
|
|
15626
15613
|
db.exec(`
|
|
15627
15614
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_reviews (
|
|
15628
15615
|
agent_id TEXT NOT NULL,
|
|
@@ -15640,7 +15627,7 @@ function up149(db) {
|
|
|
15640
15627
|
ON dreaming_evidence_reviews (agent_id, reviewed_at DESC);
|
|
15641
15628
|
`);
|
|
15642
15629
|
}
|
|
15643
|
-
function
|
|
15630
|
+
function up151(db) {
|
|
15644
15631
|
db.exec(`
|
|
15645
15632
|
CREATE TABLE IF NOT EXISTS source_import_jobs (
|
|
15646
15633
|
id TEXT PRIMARY KEY, kind TEXT NOT NULL CHECK (kind = 'import'), agent_id TEXT NOT NULL,
|
|
@@ -15707,16 +15694,16 @@ function up150(db) {
|
|
|
15707
15694
|
}
|
|
15708
15695
|
db.exec("CREATE INDEX IF NOT EXISTS idx_session_transcripts_agent_source ON session_transcripts(agent_id, source_id)");
|
|
15709
15696
|
}
|
|
15710
|
-
function
|
|
15697
|
+
function up152(db) {
|
|
15711
15698
|
db.exec("CREATE INDEX IF NOT EXISTS idx_source_import_files_job_state ON source_import_files(job_id, state)");
|
|
15712
15699
|
}
|
|
15713
|
-
function
|
|
15700
|
+
function up153(db) {
|
|
15714
15701
|
const columns = db.prepare("PRAGMA table_info(source_import_record_attempts)").all();
|
|
15715
15702
|
if (!columns.some((column) => column.name === "source_id")) {
|
|
15716
15703
|
db.exec("ALTER TABLE source_import_record_attempts ADD COLUMN source_id TEXT");
|
|
15717
15704
|
}
|
|
15718
15705
|
}
|
|
15719
|
-
function
|
|
15706
|
+
function up154(db) {
|
|
15720
15707
|
const addColumn = (table, column, definition) => {
|
|
15721
15708
|
const statement = db.prepare("SELECT 1 AS found FROM pragma_table_info(?) WHERE name = ?");
|
|
15722
15709
|
let exists;
|
|
@@ -15737,7 +15724,7 @@ function addColumnIfMissing29(db, table, column, definition) {
|
|
|
15737
15724
|
if (!columns.some((row) => row.name === column))
|
|
15738
15725
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
15739
15726
|
}
|
|
15740
|
-
function
|
|
15727
|
+
function up155(db) {
|
|
15741
15728
|
addColumnIfMissing29(db, "memory_md_heads", "is_current", "INTEGER NOT NULL DEFAULT 0");
|
|
15742
15729
|
addColumnIfMissing29(db, "dreaming_passes", "head_base_revision", "INTEGER");
|
|
15743
15730
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_head_revisions_content_hash ON memory_head_revisions(content_hash)");
|
|
@@ -15887,7 +15874,7 @@ function up154(db) {
|
|
|
15887
15874
|
`);
|
|
15888
15875
|
}
|
|
15889
15876
|
}
|
|
15890
|
-
function
|
|
15877
|
+
function up156(db) {
|
|
15891
15878
|
db.exec(`
|
|
15892
15879
|
CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
|
|
15893
15880
|
operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
|
|
@@ -15912,7 +15899,7 @@ function up155(db) {
|
|
|
15912
15899
|
ON vector_repair_checkpoints(status, updated_at);
|
|
15913
15900
|
`);
|
|
15914
15901
|
}
|
|
15915
|
-
function
|
|
15902
|
+
function up157(db) {
|
|
15916
15903
|
db.exec(`
|
|
15917
15904
|
CREATE TABLE IF NOT EXISTS embedding_repair_checkpoints (
|
|
15918
15905
|
checkpoint_id TEXT PRIMARY KEY,
|
|
@@ -15933,7 +15920,7 @@ function up156(db) {
|
|
|
15933
15920
|
ON embedding_repair_checkpoints(status, updated_at);
|
|
15934
15921
|
`);
|
|
15935
15922
|
}
|
|
15936
|
-
function
|
|
15923
|
+
function up158(db) {
|
|
15937
15924
|
const columns = new Set(db.prepare("PRAGMA table_info(embedding_repair_checkpoints)").all().map((row) => row.name));
|
|
15938
15925
|
if (!columns.has("profile_fingerprint")) {
|
|
15939
15926
|
db.exec("ALTER TABLE embedding_repair_checkpoints ADD COLUMN profile_fingerprint TEXT");
|
|
@@ -15948,7 +15935,7 @@ function up157(db) {
|
|
|
15948
15935
|
);
|
|
15949
15936
|
`);
|
|
15950
15937
|
}
|
|
15951
|
-
function
|
|
15938
|
+
function up159(db) {
|
|
15952
15939
|
db.exec(`
|
|
15953
15940
|
CREATE INDEX IF NOT EXISTS idx_memories_agent_kind
|
|
15954
15941
|
ON memories(agent_id, memory_kind);
|
|
@@ -15958,13 +15945,13 @@ var MIGRATIONS = [
|
|
|
15958
15945
|
{
|
|
15959
15946
|
version: 1,
|
|
15960
15947
|
name: "baseline",
|
|
15961
|
-
up:
|
|
15948
|
+
up: up6,
|
|
15962
15949
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
15963
15950
|
},
|
|
15964
15951
|
{
|
|
15965
15952
|
version: 2,
|
|
15966
15953
|
name: "pipeline-v2",
|
|
15967
|
-
up:
|
|
15954
|
+
up: up7,
|
|
15968
15955
|
artifacts: {
|
|
15969
15956
|
tables: ["memory_history", "memory_jobs", "entities", "relations", "memory_entity_mentions"]
|
|
15970
15957
|
}
|
|
@@ -15972,12 +15959,12 @@ var MIGRATIONS = [
|
|
|
15972
15959
|
{
|
|
15973
15960
|
version: 3,
|
|
15974
15961
|
name: "unique-content-hash",
|
|
15975
|
-
up:
|
|
15962
|
+
up: up8
|
|
15976
15963
|
},
|
|
15977
15964
|
{
|
|
15978
15965
|
version: 4,
|
|
15979
15966
|
name: "history-actor-and-retention",
|
|
15980
|
-
up:
|
|
15967
|
+
up: up9,
|
|
15981
15968
|
artifacts: {
|
|
15982
15969
|
columns: [{ table: "memory_history", column: "actor_type" }]
|
|
15983
15970
|
}
|
|
@@ -15985,7 +15972,7 @@ var MIGRATIONS = [
|
|
|
15985
15972
|
{
|
|
15986
15973
|
version: 5,
|
|
15987
15974
|
name: "graph-extended",
|
|
15988
|
-
up:
|
|
15975
|
+
up: up10,
|
|
15989
15976
|
artifacts: {
|
|
15990
15977
|
columns: [{ table: "entities", column: "canonical_name" }]
|
|
15991
15978
|
}
|
|
@@ -15993,7 +15980,7 @@ var MIGRATIONS = [
|
|
|
15993
15980
|
{
|
|
15994
15981
|
version: 6,
|
|
15995
15982
|
name: "idempotency-key",
|
|
15996
|
-
up:
|
|
15983
|
+
up: up11,
|
|
15997
15984
|
artifacts: {
|
|
15998
15985
|
columns: [{ table: "memories", column: "idempotency_key" }]
|
|
15999
15986
|
}
|
|
@@ -16001,42 +15988,42 @@ var MIGRATIONS = [
|
|
|
16001
15988
|
{
|
|
16002
15989
|
version: 7,
|
|
16003
15990
|
name: "documents-and-connectors",
|
|
16004
|
-
up:
|
|
15991
|
+
up: up12,
|
|
16005
15992
|
artifacts: { tables: ["documents", "document_memories", "connectors"] }
|
|
16006
15993
|
},
|
|
16007
15994
|
{
|
|
16008
15995
|
version: 8,
|
|
16009
15996
|
name: "embeddings-unique-hash",
|
|
16010
|
-
up:
|
|
15997
|
+
up: up13
|
|
16011
15998
|
},
|
|
16012
15999
|
{
|
|
16013
16000
|
version: 9,
|
|
16014
16001
|
name: "summary-jobs",
|
|
16015
|
-
up:
|
|
16002
|
+
up: up14,
|
|
16016
16003
|
artifacts: { tables: ["summary_jobs"] }
|
|
16017
16004
|
},
|
|
16018
16005
|
{
|
|
16019
16006
|
version: 10,
|
|
16020
16007
|
name: "umap-cache",
|
|
16021
|
-
up:
|
|
16008
|
+
up: up15,
|
|
16022
16009
|
artifacts: { tables: ["umap_cache"] }
|
|
16023
16010
|
},
|
|
16024
16011
|
{
|
|
16025
16012
|
version: 11,
|
|
16026
16013
|
name: "session-scores",
|
|
16027
|
-
up:
|
|
16014
|
+
up: up16,
|
|
16028
16015
|
artifacts: { tables: ["session_scores"] }
|
|
16029
16016
|
},
|
|
16030
16017
|
{
|
|
16031
16018
|
version: 12,
|
|
16032
16019
|
name: "scheduled-tasks",
|
|
16033
|
-
up:
|
|
16020
|
+
up: up17,
|
|
16034
16021
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
16035
16022
|
},
|
|
16036
16023
|
{
|
|
16037
16024
|
version: 13,
|
|
16038
16025
|
name: "ingestion-tracking",
|
|
16039
|
-
up:
|
|
16026
|
+
up: up18,
|
|
16040
16027
|
artifacts: {
|
|
16041
16028
|
columns: [
|
|
16042
16029
|
{ table: "memories", column: "source_path" },
|
|
@@ -16047,13 +16034,13 @@ var MIGRATIONS = [
|
|
|
16047
16034
|
{
|
|
16048
16035
|
version: 14,
|
|
16049
16036
|
name: "telemetry",
|
|
16050
|
-
up:
|
|
16037
|
+
up: up19,
|
|
16051
16038
|
artifacts: { tables: ["telemetry_events"] }
|
|
16052
16039
|
},
|
|
16053
16040
|
{
|
|
16054
16041
|
version: 15,
|
|
16055
16042
|
name: "session-memories",
|
|
16056
|
-
up:
|
|
16043
|
+
up: up20,
|
|
16057
16044
|
artifacts: {
|
|
16058
16045
|
tables: ["session_memories"],
|
|
16059
16046
|
columns: [
|
|
@@ -16065,13 +16052,13 @@ var MIGRATIONS = [
|
|
|
16065
16052
|
{
|
|
16066
16053
|
version: 16,
|
|
16067
16054
|
name: "session-checkpoints",
|
|
16068
|
-
up:
|
|
16055
|
+
up: up21,
|
|
16069
16056
|
artifacts: { tables: ["session_checkpoints"] }
|
|
16070
16057
|
},
|
|
16071
16058
|
{
|
|
16072
16059
|
version: 17,
|
|
16073
16060
|
name: "task-skills",
|
|
16074
|
-
up:
|
|
16061
|
+
up: up22,
|
|
16075
16062
|
artifacts: {
|
|
16076
16063
|
columns: [{ table: "scheduled_tasks", column: "skill_name" }]
|
|
16077
16064
|
}
|
|
@@ -16079,13 +16066,13 @@ var MIGRATIONS = [
|
|
|
16079
16066
|
{
|
|
16080
16067
|
version: 18,
|
|
16081
16068
|
name: "skill-meta",
|
|
16082
|
-
up:
|
|
16069
|
+
up: up23,
|
|
16083
16070
|
artifacts: { tables: ["skill_meta"] }
|
|
16084
16071
|
},
|
|
16085
16072
|
{
|
|
16086
16073
|
version: 19,
|
|
16087
16074
|
name: "knowledge-structure",
|
|
16088
|
-
up:
|
|
16075
|
+
up: up24,
|
|
16089
16076
|
artifacts: {
|
|
16090
16077
|
tables: ["entity_aspects", "entity_attributes", "entity_dependencies", "task_meta"],
|
|
16091
16078
|
columns: [{ table: "entities", column: "agent_id" }]
|
|
@@ -16094,7 +16081,7 @@ var MIGRATIONS = [
|
|
|
16094
16081
|
{
|
|
16095
16082
|
version: 20,
|
|
16096
16083
|
name: "session-structural-columns",
|
|
16097
|
-
up:
|
|
16084
|
+
up: up25,
|
|
16098
16085
|
artifacts: {
|
|
16099
16086
|
columns: [
|
|
16100
16087
|
{ table: "session_memories", column: "entity_slot" },
|
|
@@ -16107,7 +16094,7 @@ var MIGRATIONS = [
|
|
|
16107
16094
|
{
|
|
16108
16095
|
version: 21,
|
|
16109
16096
|
name: "checkpoint-structural",
|
|
16110
|
-
up:
|
|
16097
|
+
up: up26,
|
|
16111
16098
|
artifacts: {
|
|
16112
16099
|
columns: [{ table: "session_checkpoints", column: "focal_entity_ids" }]
|
|
16113
16100
|
}
|
|
@@ -16115,7 +16102,7 @@ var MIGRATIONS = [
|
|
|
16115
16102
|
{
|
|
16116
16103
|
version: 22,
|
|
16117
16104
|
name: "entity-pinning",
|
|
16118
|
-
up:
|
|
16105
|
+
up: up27,
|
|
16119
16106
|
artifacts: {
|
|
16120
16107
|
columns: [
|
|
16121
16108
|
{ table: "entities", column: "pinned" },
|
|
@@ -16126,17 +16113,17 @@ var MIGRATIONS = [
|
|
|
16126
16113
|
{
|
|
16127
16114
|
version: 23,
|
|
16128
16115
|
name: "retired-scorer-gap",
|
|
16129
|
-
up:
|
|
16116
|
+
up: up28
|
|
16130
16117
|
},
|
|
16131
16118
|
{
|
|
16132
16119
|
version: 24,
|
|
16133
16120
|
name: "retired-scorer-gap",
|
|
16134
|
-
up:
|
|
16121
|
+
up: up29
|
|
16135
16122
|
},
|
|
16136
16123
|
{
|
|
16137
16124
|
version: 25,
|
|
16138
16125
|
name: "agent-feedback",
|
|
16139
|
-
up:
|
|
16126
|
+
up: up30,
|
|
16140
16127
|
artifacts: {
|
|
16141
16128
|
columns: [{ table: "session_memories", column: "agent_relevance_score" }]
|
|
16142
16129
|
}
|
|
@@ -16144,32 +16131,32 @@ var MIGRATIONS = [
|
|
|
16144
16131
|
{
|
|
16145
16132
|
version: 26,
|
|
16146
16133
|
name: "retired-scorer-gap",
|
|
16147
|
-
up:
|
|
16134
|
+
up: up31
|
|
16148
16135
|
},
|
|
16149
16136
|
{
|
|
16150
16137
|
version: 27,
|
|
16151
16138
|
name: "backfill-canonical-names",
|
|
16152
|
-
up:
|
|
16139
|
+
up: up32
|
|
16153
16140
|
},
|
|
16154
16141
|
{
|
|
16155
16142
|
version: 28,
|
|
16156
16143
|
name: "lossless-retention",
|
|
16157
|
-
up:
|
|
16144
|
+
up: up33
|
|
16158
16145
|
},
|
|
16159
16146
|
{
|
|
16160
16147
|
version: 29,
|
|
16161
16148
|
name: "session-summary-dag",
|
|
16162
|
-
up:
|
|
16149
|
+
up: up34
|
|
16163
16150
|
},
|
|
16164
16151
|
{
|
|
16165
16152
|
version: 30,
|
|
16166
16153
|
name: "nullable-memory-job-memory-id",
|
|
16167
|
-
up:
|
|
16154
|
+
up: up35
|
|
16168
16155
|
},
|
|
16169
16156
|
{
|
|
16170
16157
|
version: 31,
|
|
16171
16158
|
name: "dependency-reason",
|
|
16172
|
-
up:
|
|
16159
|
+
up: up36,
|
|
16173
16160
|
artifacts: {
|
|
16174
16161
|
columns: [
|
|
16175
16162
|
{ table: "entity_dependencies", column: "reason" },
|
|
@@ -16180,7 +16167,7 @@ var MIGRATIONS = [
|
|
|
16180
16167
|
{
|
|
16181
16168
|
version: 32,
|
|
16182
16169
|
name: "embeddings-vector-column",
|
|
16183
|
-
up:
|
|
16170
|
+
up: up37,
|
|
16184
16171
|
artifacts: {
|
|
16185
16172
|
columns: [{ table: "embeddings", column: "vector", optional: true }]
|
|
16186
16173
|
}
|
|
@@ -16188,7 +16175,7 @@ var MIGRATIONS = [
|
|
|
16188
16175
|
{
|
|
16189
16176
|
version: 33,
|
|
16190
16177
|
name: "scope",
|
|
16191
|
-
up:
|
|
16178
|
+
up: up38,
|
|
16192
16179
|
artifacts: {
|
|
16193
16180
|
columns: [{ table: "memories", column: "scope" }]
|
|
16194
16181
|
}
|
|
@@ -16196,17 +16183,17 @@ var MIGRATIONS = [
|
|
|
16196
16183
|
{
|
|
16197
16184
|
version: 34,
|
|
16198
16185
|
name: "scope-aware-dedup",
|
|
16199
|
-
up:
|
|
16186
|
+
up: up39
|
|
16200
16187
|
},
|
|
16201
16188
|
{
|
|
16202
16189
|
version: 35,
|
|
16203
16190
|
name: "entity-fts",
|
|
16204
|
-
up:
|
|
16191
|
+
up: up40
|
|
16205
16192
|
},
|
|
16206
16193
|
{
|
|
16207
16194
|
version: 36,
|
|
16208
16195
|
name: "dependency-confidence",
|
|
16209
|
-
up:
|
|
16196
|
+
up: up41,
|
|
16210
16197
|
artifacts: {
|
|
16211
16198
|
columns: [{ table: "entity_dependencies", column: "confidence" }]
|
|
16212
16199
|
}
|
|
@@ -16214,7 +16201,7 @@ var MIGRATIONS = [
|
|
|
16214
16201
|
{
|
|
16215
16202
|
version: 37,
|
|
16216
16203
|
name: "entity-communities",
|
|
16217
|
-
up:
|
|
16204
|
+
up: up42,
|
|
16218
16205
|
artifacts: {
|
|
16219
16206
|
tables: ["entity_communities"],
|
|
16220
16207
|
columns: [{ table: "entities", column: "community_id" }]
|
|
@@ -16223,24 +16210,24 @@ var MIGRATIONS = [
|
|
|
16223
16210
|
{
|
|
16224
16211
|
version: 38,
|
|
16225
16212
|
name: "memory-hints",
|
|
16226
|
-
up:
|
|
16213
|
+
up: up43,
|
|
16227
16214
|
artifacts: { tables: ["memory_hints"] }
|
|
16228
16215
|
},
|
|
16229
16216
|
{
|
|
16230
16217
|
version: 39,
|
|
16231
16218
|
name: "dedup-entity-dependencies",
|
|
16232
|
-
up:
|
|
16219
|
+
up: up44
|
|
16233
16220
|
},
|
|
16234
16221
|
{
|
|
16235
16222
|
version: 40,
|
|
16236
16223
|
name: "session-transcripts",
|
|
16237
|
-
up:
|
|
16224
|
+
up: up45,
|
|
16238
16225
|
artifacts: { tables: ["session_transcripts"] }
|
|
16239
16226
|
},
|
|
16240
16227
|
{
|
|
16241
16228
|
version: 41,
|
|
16242
16229
|
name: "path-feedback",
|
|
16243
|
-
up:
|
|
16230
|
+
up: up46,
|
|
16244
16231
|
artifacts: {
|
|
16245
16232
|
tables: [
|
|
16246
16233
|
"path_feedback_events",
|
|
@@ -16255,7 +16242,7 @@ var MIGRATIONS = [
|
|
|
16255
16242
|
{
|
|
16256
16243
|
version: 42,
|
|
16257
16244
|
name: "session-memories-agent-id",
|
|
16258
|
-
up:
|
|
16245
|
+
up: up47,
|
|
16259
16246
|
artifacts: {
|
|
16260
16247
|
columns: [{ table: "session_memories", column: "agent_id" }]
|
|
16261
16248
|
}
|
|
@@ -16263,7 +16250,7 @@ var MIGRATIONS = [
|
|
|
16263
16250
|
{
|
|
16264
16251
|
version: 43,
|
|
16265
16252
|
name: "agents-table",
|
|
16266
|
-
up:
|
|
16253
|
+
up: up48,
|
|
16267
16254
|
artifacts: {
|
|
16268
16255
|
tables: ["agents"],
|
|
16269
16256
|
columns: [
|
|
@@ -16275,7 +16262,7 @@ var MIGRATIONS = [
|
|
|
16275
16262
|
{
|
|
16276
16263
|
version: 44,
|
|
16277
16264
|
name: "memory-md-temporal-head",
|
|
16278
|
-
up:
|
|
16265
|
+
up: up49,
|
|
16279
16266
|
artifacts: {
|
|
16280
16267
|
columns: [
|
|
16281
16268
|
{ table: "session_summaries", column: "source_type" },
|
|
@@ -16287,7 +16274,7 @@ var MIGRATIONS = [
|
|
|
16287
16274
|
{
|
|
16288
16275
|
version: 45,
|
|
16289
16276
|
name: "lossless-working-memory-hardening",
|
|
16290
|
-
up:
|
|
16277
|
+
up: up50,
|
|
16291
16278
|
artifacts: {
|
|
16292
16279
|
tables: ["session_transcripts_fts", "memory_md_heads"],
|
|
16293
16280
|
columns: [
|
|
@@ -16300,17 +16287,17 @@ var MIGRATIONS = [
|
|
|
16300
16287
|
{
|
|
16301
16288
|
version: 46,
|
|
16302
16289
|
name: "session-summary-uniqueness",
|
|
16303
|
-
up:
|
|
16290
|
+
up: up51
|
|
16304
16291
|
},
|
|
16305
16292
|
{
|
|
16306
16293
|
version: 47,
|
|
16307
16294
|
name: "agent-scoped-temporal-uniqueness",
|
|
16308
|
-
up:
|
|
16295
|
+
up: up52
|
|
16309
16296
|
},
|
|
16310
16297
|
{
|
|
16311
16298
|
version: 48,
|
|
16312
16299
|
name: "thread-heads",
|
|
16313
|
-
up:
|
|
16300
|
+
up: up53,
|
|
16314
16301
|
artifacts: {
|
|
16315
16302
|
tables: ["memory_thread_heads"]
|
|
16316
16303
|
}
|
|
@@ -16318,7 +16305,7 @@ var MIGRATIONS = [
|
|
|
16318
16305
|
{
|
|
16319
16306
|
version: 49,
|
|
16320
16307
|
name: "session-extract-cursors",
|
|
16321
|
-
up:
|
|
16308
|
+
up: up54,
|
|
16322
16309
|
artifacts: {
|
|
16323
16310
|
tables: ["session_extract_cursors"]
|
|
16324
16311
|
}
|
|
@@ -16326,7 +16313,7 @@ var MIGRATIONS = [
|
|
|
16326
16313
|
{
|
|
16327
16314
|
version: 50,
|
|
16328
16315
|
name: "related-to-audit",
|
|
16329
|
-
up:
|
|
16316
|
+
up: up55,
|
|
16330
16317
|
artifacts: {
|
|
16331
16318
|
tables: ["entity_dependency_history"]
|
|
16332
16319
|
}
|
|
@@ -16334,7 +16321,7 @@ var MIGRATIONS = [
|
|
|
16334
16321
|
{
|
|
16335
16322
|
version: 51,
|
|
16336
16323
|
name: "memory-md-rolling-window-lineage",
|
|
16337
|
-
up:
|
|
16324
|
+
up: up56,
|
|
16338
16325
|
artifacts: {
|
|
16339
16326
|
tables: ["memory_artifacts", "memory_artifact_tombstones", "memory_artifacts_fts"],
|
|
16340
16327
|
columns: [
|
|
@@ -16349,15 +16336,12 @@ var MIGRATIONS = [
|
|
|
16349
16336
|
{
|
|
16350
16337
|
version: 52,
|
|
16351
16338
|
name: "mcp-invocations",
|
|
16352
|
-
up:
|
|
16353
|
-
artifacts: {
|
|
16354
|
-
tables: ["mcp_invocations"]
|
|
16355
|
-
}
|
|
16339
|
+
up: up57
|
|
16356
16340
|
},
|
|
16357
16341
|
{
|
|
16358
16342
|
version: 53,
|
|
16359
16343
|
name: "skill-invocations",
|
|
16360
|
-
up:
|
|
16344
|
+
up: up58,
|
|
16361
16345
|
artifacts: {
|
|
16362
16346
|
tables: ["skill_invocations"]
|
|
16363
16347
|
}
|
|
@@ -16365,7 +16349,7 @@ var MIGRATIONS = [
|
|
|
16365
16349
|
{
|
|
16366
16350
|
version: 54,
|
|
16367
16351
|
name: "task-agent-scope",
|
|
16368
|
-
up:
|
|
16352
|
+
up: up59,
|
|
16369
16353
|
artifacts: {
|
|
16370
16354
|
tables: ["task_scope_hints"]
|
|
16371
16355
|
}
|
|
@@ -16373,7 +16357,7 @@ var MIGRATIONS = [
|
|
|
16373
16357
|
{
|
|
16374
16358
|
version: 55,
|
|
16375
16359
|
name: "dreaming-state",
|
|
16376
|
-
up:
|
|
16360
|
+
up: up60,
|
|
16377
16361
|
artifacts: {
|
|
16378
16362
|
tables: ["dreaming_state", "dreaming_passes"]
|
|
16379
16363
|
}
|
|
@@ -16381,22 +16365,22 @@ var MIGRATIONS = [
|
|
|
16381
16365
|
{
|
|
16382
16366
|
version: 56,
|
|
16383
16367
|
name: "agent-scoped-content-hash",
|
|
16384
|
-
up:
|
|
16368
|
+
up: up61
|
|
16385
16369
|
},
|
|
16386
16370
|
{
|
|
16387
16371
|
version: 57,
|
|
16388
16372
|
name: "memories-fts-tokenizer-repair",
|
|
16389
|
-
up:
|
|
16373
|
+
up: up62
|
|
16390
16374
|
},
|
|
16391
16375
|
{
|
|
16392
16376
|
version: 58,
|
|
16393
16377
|
name: "knowledge-graph-indices",
|
|
16394
|
-
up:
|
|
16378
|
+
up: up63
|
|
16395
16379
|
},
|
|
16396
16380
|
{
|
|
16397
16381
|
version: 59,
|
|
16398
16382
|
name: "entity-attribute-claim-key",
|
|
16399
|
-
up:
|
|
16383
|
+
up: up64,
|
|
16400
16384
|
artifacts: {
|
|
16401
16385
|
columns: [{ table: "entity_attributes", column: "claim_key" }]
|
|
16402
16386
|
}
|
|
@@ -16404,7 +16388,7 @@ var MIGRATIONS = [
|
|
|
16404
16388
|
{
|
|
16405
16389
|
version: 60,
|
|
16406
16390
|
name: "entity-attribute-group-key",
|
|
16407
|
-
up:
|
|
16391
|
+
up: up65,
|
|
16408
16392
|
artifacts: {
|
|
16409
16393
|
columns: [{ table: "entity_attributes", column: "group_key" }]
|
|
16410
16394
|
}
|
|
@@ -16412,7 +16396,7 @@ var MIGRATIONS = [
|
|
|
16412
16396
|
{
|
|
16413
16397
|
version: 61,
|
|
16414
16398
|
name: "memory-artifact-source-mtime",
|
|
16415
|
-
up:
|
|
16399
|
+
up: up66,
|
|
16416
16400
|
artifacts: {
|
|
16417
16401
|
columns: [{ table: "memory_artifacts", column: "source_mtime_ms" }]
|
|
16418
16402
|
}
|
|
@@ -16420,7 +16404,7 @@ var MIGRATIONS = [
|
|
|
16420
16404
|
{
|
|
16421
16405
|
version: 62,
|
|
16422
16406
|
name: "memory-artifact-soft-delete",
|
|
16423
|
-
up:
|
|
16407
|
+
up: up67,
|
|
16424
16408
|
artifacts: {
|
|
16425
16409
|
columns: [
|
|
16426
16410
|
{ table: "memory_artifacts", column: "is_deleted" },
|
|
@@ -16431,12 +16415,12 @@ var MIGRATIONS = [
|
|
|
16431
16415
|
{
|
|
16432
16416
|
version: 63,
|
|
16433
16417
|
name: "content-only-memories-fts-update",
|
|
16434
|
-
up:
|
|
16418
|
+
up: up68
|
|
16435
16419
|
},
|
|
16436
16420
|
{
|
|
16437
16421
|
version: 64,
|
|
16438
16422
|
name: "source-graph-provenance",
|
|
16439
|
-
up:
|
|
16423
|
+
up: up69,
|
|
16440
16424
|
artifacts: {
|
|
16441
16425
|
columns: [
|
|
16442
16426
|
{ table: "entities", column: "source_path" },
|
|
@@ -16449,7 +16433,7 @@ var MIGRATIONS = [
|
|
|
16449
16433
|
{
|
|
16450
16434
|
version: 65,
|
|
16451
16435
|
name: "source-embedding-agent-scope",
|
|
16452
|
-
up:
|
|
16436
|
+
up: up70,
|
|
16453
16437
|
artifacts: {
|
|
16454
16438
|
columns: [{ table: "embeddings", column: "agent_id", optional: true }]
|
|
16455
16439
|
}
|
|
@@ -16457,7 +16441,7 @@ var MIGRATIONS = [
|
|
|
16457
16441
|
{
|
|
16458
16442
|
version: 66,
|
|
16459
16443
|
name: "memory-search-telemetry",
|
|
16460
|
-
up:
|
|
16444
|
+
up: up71,
|
|
16461
16445
|
artifacts: {
|
|
16462
16446
|
tables: ["memory_search_telemetry"]
|
|
16463
16447
|
}
|
|
@@ -16465,7 +16449,7 @@ var MIGRATIONS = [
|
|
|
16465
16449
|
{
|
|
16466
16450
|
version: 67,
|
|
16467
16451
|
name: "ontology-proposals",
|
|
16468
|
-
up:
|
|
16452
|
+
up: up72,
|
|
16469
16453
|
artifacts: {
|
|
16470
16454
|
tables: ["ontology_proposals"],
|
|
16471
16455
|
columns: [
|
|
@@ -16479,7 +16463,7 @@ var MIGRATIONS = [
|
|
|
16479
16463
|
{
|
|
16480
16464
|
version: 68,
|
|
16481
16465
|
name: "daily-reflections",
|
|
16482
|
-
up:
|
|
16466
|
+
up: up73,
|
|
16483
16467
|
artifacts: {
|
|
16484
16468
|
tables: ["daily_reflections"]
|
|
16485
16469
|
}
|
|
@@ -16487,7 +16471,7 @@ var MIGRATIONS = [
|
|
|
16487
16471
|
{
|
|
16488
16472
|
version: 69,
|
|
16489
16473
|
name: "daily-reflections-multiple-insights",
|
|
16490
|
-
up:
|
|
16474
|
+
up: up74,
|
|
16491
16475
|
artifacts: {
|
|
16492
16476
|
tables: ["daily_reflections"]
|
|
16493
16477
|
}
|
|
@@ -16495,7 +16479,7 @@ var MIGRATIONS = [
|
|
|
16495
16479
|
{
|
|
16496
16480
|
version: 70,
|
|
16497
16481
|
name: "ontology-control-plane-state",
|
|
16498
|
-
up:
|
|
16482
|
+
up: up75,
|
|
16499
16483
|
artifacts: {
|
|
16500
16484
|
columns: [
|
|
16501
16485
|
{ table: "entities", column: "status" },
|
|
@@ -16510,7 +16494,7 @@ var MIGRATIONS = [
|
|
|
16510
16494
|
{
|
|
16511
16495
|
version: 71,
|
|
16512
16496
|
name: "epistemic-assertions",
|
|
16513
|
-
up:
|
|
16497
|
+
up: up76,
|
|
16514
16498
|
artifacts: {
|
|
16515
16499
|
tables: ["epistemic_assertions"]
|
|
16516
16500
|
}
|
|
@@ -16518,7 +16502,7 @@ var MIGRATIONS = [
|
|
|
16518
16502
|
{
|
|
16519
16503
|
version: 72,
|
|
16520
16504
|
name: "agent-scoped-idempotency-key",
|
|
16521
|
-
up:
|
|
16505
|
+
up: up77,
|
|
16522
16506
|
artifacts: {
|
|
16523
16507
|
columns: [
|
|
16524
16508
|
{ table: "memories", column: "idempotency_key" },
|
|
@@ -16529,7 +16513,7 @@ var MIGRATIONS = [
|
|
|
16529
16513
|
{
|
|
16530
16514
|
version: 73,
|
|
16531
16515
|
name: "recall-context-dedupe",
|
|
16532
|
-
up:
|
|
16516
|
+
up: up78,
|
|
16533
16517
|
artifacts: {
|
|
16534
16518
|
tables: ["session_context_epochs", "session_recall_events"]
|
|
16535
16519
|
}
|
|
@@ -16537,7 +16521,7 @@ var MIGRATIONS = [
|
|
|
16537
16521
|
{
|
|
16538
16522
|
version: 74,
|
|
16539
16523
|
name: "aggregate-memory-links",
|
|
16540
|
-
up:
|
|
16524
|
+
up: up79,
|
|
16541
16525
|
artifacts: {
|
|
16542
16526
|
tables: ["aggregate_memory_sources"]
|
|
16543
16527
|
}
|
|
@@ -16545,7 +16529,7 @@ var MIGRATIONS = [
|
|
|
16545
16529
|
{
|
|
16546
16530
|
version: 75,
|
|
16547
16531
|
name: "memory-artifact-source-provenance",
|
|
16548
|
-
up:
|
|
16532
|
+
up: up80,
|
|
16549
16533
|
artifacts: {
|
|
16550
16534
|
columns: [
|
|
16551
16535
|
{ table: "memory_artifacts", column: "source_id" },
|
|
@@ -16559,7 +16543,7 @@ var MIGRATIONS = [
|
|
|
16559
16543
|
{
|
|
16560
16544
|
version: 76,
|
|
16561
16545
|
name: "temporal-edges",
|
|
16562
|
-
up:
|
|
16546
|
+
up: up81,
|
|
16563
16547
|
artifacts: {
|
|
16564
16548
|
tables: ["temporal_edges"]
|
|
16565
16549
|
}
|
|
@@ -16567,7 +16551,7 @@ var MIGRATIONS = [
|
|
|
16567
16551
|
{
|
|
16568
16552
|
version: 77,
|
|
16569
16553
|
name: "entity-aliases",
|
|
16570
|
-
up:
|
|
16554
|
+
up: up82,
|
|
16571
16555
|
artifacts: {
|
|
16572
16556
|
tables: ["entity_aliases"]
|
|
16573
16557
|
}
|
|
@@ -16575,7 +16559,7 @@ var MIGRATIONS = [
|
|
|
16575
16559
|
{
|
|
16576
16560
|
version: 78,
|
|
16577
16561
|
name: "api-keys",
|
|
16578
|
-
up:
|
|
16562
|
+
up: up83,
|
|
16579
16563
|
artifacts: {
|
|
16580
16564
|
tables: ["api_keys"]
|
|
16581
16565
|
}
|
|
@@ -16583,7 +16567,7 @@ var MIGRATIONS = [
|
|
|
16583
16567
|
{
|
|
16584
16568
|
version: 79,
|
|
16585
16569
|
name: "transcript-capture-jobs",
|
|
16586
|
-
up:
|
|
16570
|
+
up: up84,
|
|
16587
16571
|
artifacts: {
|
|
16588
16572
|
tables: ["transcript_capture_jobs"]
|
|
16589
16573
|
}
|
|
@@ -16591,7 +16575,7 @@ var MIGRATIONS = [
|
|
|
16591
16575
|
{
|
|
16592
16576
|
version: 80,
|
|
16593
16577
|
name: "document-scope-columns",
|
|
16594
|
-
up:
|
|
16578
|
+
up: up85,
|
|
16595
16579
|
artifacts: {
|
|
16596
16580
|
columns: [
|
|
16597
16581
|
{ table: "documents", column: "agent_id" },
|
|
@@ -16602,7 +16586,7 @@ var MIGRATIONS = [
|
|
|
16602
16586
|
{
|
|
16603
16587
|
version: 81,
|
|
16604
16588
|
name: "aggregate-evidence-sources",
|
|
16605
|
-
up:
|
|
16589
|
+
up: up86,
|
|
16606
16590
|
artifacts: {
|
|
16607
16591
|
tables: ["aggregate_evidence_sources"]
|
|
16608
16592
|
}
|
|
@@ -16610,7 +16594,7 @@ var MIGRATIONS = [
|
|
|
16610
16594
|
{
|
|
16611
16595
|
version: 82,
|
|
16612
16596
|
name: "skill-invocations-harness",
|
|
16613
|
-
up:
|
|
16597
|
+
up: up87,
|
|
16614
16598
|
artifacts: {
|
|
16615
16599
|
columns: [
|
|
16616
16600
|
{ table: "skill_invocations", column: "harness" },
|
|
@@ -16621,7 +16605,7 @@ var MIGRATIONS = [
|
|
|
16621
16605
|
{
|
|
16622
16606
|
version: 83,
|
|
16623
16607
|
name: "memory-lifecycle-repair",
|
|
16624
|
-
up:
|
|
16608
|
+
up: up88,
|
|
16625
16609
|
artifacts: {
|
|
16626
16610
|
tables: ["transcript_capture_jobs", "aggregate_evidence_sources", "entity_dependencies"],
|
|
16627
16611
|
columns: [
|
|
@@ -16636,7 +16620,7 @@ var MIGRATIONS = [
|
|
|
16636
16620
|
{
|
|
16637
16621
|
version: 84,
|
|
16638
16622
|
name: "legacy-markdown-import-state",
|
|
16639
|
-
up:
|
|
16623
|
+
up: up89,
|
|
16640
16624
|
artifacts: {
|
|
16641
16625
|
tables: ["legacy_markdown_imports", "legacy_markdown_chunks"]
|
|
16642
16626
|
}
|
|
@@ -16644,7 +16628,7 @@ var MIGRATIONS = [
|
|
|
16644
16628
|
{
|
|
16645
16629
|
version: 85,
|
|
16646
16630
|
name: "backfill-relations-to-dependencies",
|
|
16647
|
-
up:
|
|
16631
|
+
up: up90,
|
|
16648
16632
|
artifacts: {
|
|
16649
16633
|
tables: ["entity_dependencies"]
|
|
16650
16634
|
}
|
|
@@ -16652,7 +16636,7 @@ var MIGRATIONS = [
|
|
|
16652
16636
|
{
|
|
16653
16637
|
version: 86,
|
|
16654
16638
|
name: "summary-jobs-content-hash",
|
|
16655
|
-
up:
|
|
16639
|
+
up: up91,
|
|
16656
16640
|
artifacts: {
|
|
16657
16641
|
columns: [{ table: "summary_jobs", column: "content_hash" }]
|
|
16658
16642
|
}
|
|
@@ -16660,7 +16644,7 @@ var MIGRATIONS = [
|
|
|
16660
16644
|
{
|
|
16661
16645
|
version: 87,
|
|
16662
16646
|
name: "summary-jobs-boundary-reason",
|
|
16663
|
-
up:
|
|
16647
|
+
up: up92,
|
|
16664
16648
|
artifacts: {
|
|
16665
16649
|
columns: [{ table: "summary_jobs", column: "boundary_reason" }]
|
|
16666
16650
|
}
|
|
@@ -16668,7 +16652,7 @@ var MIGRATIONS = [
|
|
|
16668
16652
|
{
|
|
16669
16653
|
version: 88,
|
|
16670
16654
|
name: "transcript-recovery-files",
|
|
16671
|
-
up:
|
|
16655
|
+
up: up93,
|
|
16672
16656
|
artifacts: {
|
|
16673
16657
|
tables: ["transcript_recovery_files"]
|
|
16674
16658
|
}
|
|
@@ -16676,7 +16660,7 @@ var MIGRATIONS = [
|
|
|
16676
16660
|
{
|
|
16677
16661
|
version: 89,
|
|
16678
16662
|
name: "job-cancellations",
|
|
16679
|
-
up:
|
|
16663
|
+
up: up94,
|
|
16680
16664
|
artifacts: {
|
|
16681
16665
|
tables: ["job_cancellations"]
|
|
16682
16666
|
}
|
|
@@ -16684,7 +16668,7 @@ var MIGRATIONS = [
|
|
|
16684
16668
|
{
|
|
16685
16669
|
version: 90,
|
|
16686
16670
|
name: "job-archive",
|
|
16687
|
-
up:
|
|
16671
|
+
up: up95,
|
|
16688
16672
|
artifacts: {
|
|
16689
16673
|
tables: ["job_archive"]
|
|
16690
16674
|
}
|
|
@@ -16692,25 +16676,25 @@ var MIGRATIONS = [
|
|
|
16692
16676
|
{
|
|
16693
16677
|
version: 91,
|
|
16694
16678
|
name: "embedding-index-generations",
|
|
16695
|
-
up:
|
|
16679
|
+
up: up96,
|
|
16696
16680
|
artifacts: { tables: ["embedding_index_state"] }
|
|
16697
16681
|
},
|
|
16698
16682
|
{
|
|
16699
16683
|
version: 92,
|
|
16700
16684
|
name: "embedding-staging-store",
|
|
16701
|
-
up:
|
|
16685
|
+
up: up97,
|
|
16702
16686
|
artifacts: { tables: ["embeddings_staging"] }
|
|
16703
16687
|
},
|
|
16704
16688
|
{
|
|
16705
16689
|
version: 93,
|
|
16706
16690
|
name: "dreaming-evidence-cursor",
|
|
16707
|
-
up:
|
|
16691
|
+
up: up98,
|
|
16708
16692
|
artifacts: { columns: [{ table: "dreaming_state", column: "evidence_cursor" }] }
|
|
16709
16693
|
},
|
|
16710
16694
|
{
|
|
16711
16695
|
version: 94,
|
|
16712
16696
|
name: "memory-kind",
|
|
16713
|
-
up:
|
|
16697
|
+
up: up99,
|
|
16714
16698
|
artifacts: {
|
|
16715
16699
|
columns: [
|
|
16716
16700
|
{ table: "memories", column: "memory_kind" },
|
|
@@ -16721,35 +16705,35 @@ var MIGRATIONS = [
|
|
|
16721
16705
|
{
|
|
16722
16706
|
version: 95,
|
|
16723
16707
|
name: "compaction-recall-projections",
|
|
16724
|
-
up:
|
|
16708
|
+
up: up100
|
|
16725
16709
|
},
|
|
16726
16710
|
{
|
|
16727
16711
|
version: 96,
|
|
16728
16712
|
name: "retire-legacy-ingestion",
|
|
16729
|
-
up:
|
|
16713
|
+
up: up101
|
|
16730
16714
|
},
|
|
16731
16715
|
{
|
|
16732
16716
|
version: 97,
|
|
16733
16717
|
name: "dreaming-failure-backoff",
|
|
16734
|
-
up:
|
|
16718
|
+
up: up102,
|
|
16735
16719
|
artifacts: { columns: [{ table: "dreaming_state", column: "last_failure_at" }] }
|
|
16736
16720
|
},
|
|
16737
16721
|
{
|
|
16738
16722
|
version: 98,
|
|
16739
16723
|
name: "dreaming-evidence-exclusions",
|
|
16740
|
-
up:
|
|
16724
|
+
up: up103,
|
|
16741
16725
|
artifacts: { tables: ["dreaming_evidence_exclusions"] }
|
|
16742
16726
|
},
|
|
16743
16727
|
{
|
|
16744
16728
|
version: 99,
|
|
16745
16729
|
name: "dreaming-tool-calls",
|
|
16746
|
-
up:
|
|
16730
|
+
up: up104,
|
|
16747
16731
|
artifacts: { tables: ["dreaming_tool_calls"] }
|
|
16748
16732
|
},
|
|
16749
16733
|
{
|
|
16750
16734
|
version: 100,
|
|
16751
16735
|
name: "dreaming-runbook",
|
|
16752
|
-
up:
|
|
16736
|
+
up: up105,
|
|
16753
16737
|
artifacts: {
|
|
16754
16738
|
columns: [
|
|
16755
16739
|
{ table: "dreaming_passes", column: "evidence_window_json" },
|
|
@@ -16760,23 +16744,23 @@ var MIGRATIONS = [
|
|
|
16760
16744
|
{
|
|
16761
16745
|
version: 101,
|
|
16762
16746
|
name: "dreaming-attention",
|
|
16763
|
-
up:
|
|
16747
|
+
up: up106,
|
|
16764
16748
|
artifacts: { tables: ["dreaming_attention"] }
|
|
16765
16749
|
},
|
|
16766
16750
|
{
|
|
16767
16751
|
version: 102,
|
|
16768
16752
|
name: "attribute-semantic-memories",
|
|
16769
|
-
up:
|
|
16753
|
+
up: up107
|
|
16770
16754
|
},
|
|
16771
16755
|
{
|
|
16772
16756
|
version: 103,
|
|
16773
16757
|
name: "semantic-memory-kind",
|
|
16774
|
-
up:
|
|
16758
|
+
up: up108
|
|
16775
16759
|
},
|
|
16776
16760
|
{
|
|
16777
16761
|
version: 104,
|
|
16778
16762
|
name: "derived-memory-provenance",
|
|
16779
|
-
up:
|
|
16763
|
+
up: up109,
|
|
16780
16764
|
artifacts: {
|
|
16781
16765
|
tables: ["derived_memory_sources"],
|
|
16782
16766
|
columns: [{ table: "memories", column: "stale_at" }]
|
|
@@ -16785,12 +16769,12 @@ var MIGRATIONS = [
|
|
|
16785
16769
|
{
|
|
16786
16770
|
version: 105,
|
|
16787
16771
|
name: "agent-scoped-entity-name",
|
|
16788
|
-
up:
|
|
16772
|
+
up: up110
|
|
16789
16773
|
},
|
|
16790
16774
|
{
|
|
16791
16775
|
version: 106,
|
|
16792
16776
|
name: "memory-review-after",
|
|
16793
|
-
up:
|
|
16777
|
+
up: up111,
|
|
16794
16778
|
artifacts: {
|
|
16795
16779
|
columns: [{ table: "memories", column: "review_after" }]
|
|
16796
16780
|
}
|
|
@@ -16798,7 +16782,7 @@ var MIGRATIONS = [
|
|
|
16798
16782
|
{
|
|
16799
16783
|
version: 107,
|
|
16800
16784
|
name: "dreaming-pass-usage",
|
|
16801
|
-
up:
|
|
16785
|
+
up: up112,
|
|
16802
16786
|
artifacts: {
|
|
16803
16787
|
columns: [
|
|
16804
16788
|
{ table: "dreaming_passes", column: "tokens_input" },
|
|
@@ -16812,7 +16796,7 @@ var MIGRATIONS = [
|
|
|
16812
16796
|
{
|
|
16813
16797
|
version: 108,
|
|
16814
16798
|
name: "embedding-usage",
|
|
16815
|
-
up:
|
|
16799
|
+
up: up113,
|
|
16816
16800
|
artifacts: {
|
|
16817
16801
|
tables: ["embedding_usage"]
|
|
16818
16802
|
}
|
|
@@ -16820,7 +16804,7 @@ var MIGRATIONS = [
|
|
|
16820
16804
|
{
|
|
16821
16805
|
version: 109,
|
|
16822
16806
|
name: "telemetry-install",
|
|
16823
|
-
up:
|
|
16807
|
+
up: up114,
|
|
16824
16808
|
artifacts: {
|
|
16825
16809
|
tables: ["telemetry_install"]
|
|
16826
16810
|
}
|
|
@@ -16828,12 +16812,12 @@ var MIGRATIONS = [
|
|
|
16828
16812
|
{
|
|
16829
16813
|
version: 110,
|
|
16830
16814
|
name: "memory-mention-join-index",
|
|
16831
|
-
up:
|
|
16815
|
+
up: up115
|
|
16832
16816
|
},
|
|
16833
16817
|
{
|
|
16834
16818
|
version: 111,
|
|
16835
16819
|
name: "telemetry-first-use",
|
|
16836
|
-
up:
|
|
16820
|
+
up: up116,
|
|
16837
16821
|
artifacts: {
|
|
16838
16822
|
columns: [
|
|
16839
16823
|
{ table: "telemetry_install", column: "first_remember_at" },
|
|
@@ -16844,7 +16828,7 @@ var MIGRATIONS = [
|
|
|
16844
16828
|
{
|
|
16845
16829
|
version: 112,
|
|
16846
16830
|
name: "telemetry-queue-ownership",
|
|
16847
|
-
up:
|
|
16831
|
+
up: up117,
|
|
16848
16832
|
artifacts: {
|
|
16849
16833
|
columns: [
|
|
16850
16834
|
{ table: "telemetry_events", column: "source" },
|
|
@@ -16856,7 +16840,7 @@ var MIGRATIONS = [
|
|
|
16856
16840
|
{
|
|
16857
16841
|
version: 113,
|
|
16858
16842
|
name: "session-claims",
|
|
16859
|
-
up:
|
|
16843
|
+
up: up118,
|
|
16860
16844
|
artifacts: {
|
|
16861
16845
|
tables: ["session_claims"],
|
|
16862
16846
|
columns: [
|
|
@@ -16870,12 +16854,12 @@ var MIGRATIONS = [
|
|
|
16870
16854
|
{
|
|
16871
16855
|
version: 114,
|
|
16872
16856
|
name: "memory-traversal-hydration-index",
|
|
16873
|
-
up:
|
|
16857
|
+
up: up119
|
|
16874
16858
|
},
|
|
16875
16859
|
{
|
|
16876
16860
|
version: 115,
|
|
16877
16861
|
name: "cross-agent-message-notifications",
|
|
16878
|
-
up:
|
|
16862
|
+
up: up120,
|
|
16879
16863
|
artifacts: {
|
|
16880
16864
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
16881
16865
|
}
|
|
@@ -16883,7 +16867,7 @@ var MIGRATIONS = [
|
|
|
16883
16867
|
{
|
|
16884
16868
|
version: 116,
|
|
16885
16869
|
name: "acp-delivery-reconciliation",
|
|
16886
|
-
up:
|
|
16870
|
+
up: up121,
|
|
16887
16871
|
artifacts: {
|
|
16888
16872
|
columns: [
|
|
16889
16873
|
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
@@ -16897,7 +16881,7 @@ var MIGRATIONS = [
|
|
|
16897
16881
|
{
|
|
16898
16882
|
version: 117,
|
|
16899
16883
|
name: "retire-summary-worker",
|
|
16900
|
-
up:
|
|
16884
|
+
up: up122,
|
|
16901
16885
|
artifacts: {
|
|
16902
16886
|
columns: [
|
|
16903
16887
|
{ table: "session_transcripts", column: "completed_at" },
|
|
@@ -16908,24 +16892,24 @@ var MIGRATIONS = [
|
|
|
16908
16892
|
{
|
|
16909
16893
|
version: 118,
|
|
16910
16894
|
name: "queue-pressure-indices",
|
|
16911
|
-
up:
|
|
16895
|
+
up: up123
|
|
16912
16896
|
},
|
|
16913
16897
|
{
|
|
16914
16898
|
version: 119,
|
|
16915
16899
|
name: "telemetry-version-observation",
|
|
16916
|
-
up:
|
|
16900
|
+
up: up124,
|
|
16917
16901
|
artifacts: { columns: [{ table: "telemetry_install", column: "last_seen_version" }] }
|
|
16918
16902
|
},
|
|
16919
16903
|
{
|
|
16920
16904
|
version: 120,
|
|
16921
16905
|
name: "source-lifecycle-telemetry",
|
|
16922
|
-
up:
|
|
16906
|
+
up: up125,
|
|
16923
16907
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
16924
16908
|
},
|
|
16925
16909
|
{
|
|
16926
16910
|
version: 121,
|
|
16927
16911
|
name: "telemetry-delivery-health",
|
|
16928
|
-
up:
|
|
16912
|
+
up: up126,
|
|
16929
16913
|
artifacts: {
|
|
16930
16914
|
tables: ["telemetry_delivery_state"],
|
|
16931
16915
|
columns: [
|
|
@@ -16939,7 +16923,7 @@ var MIGRATIONS = [
|
|
|
16939
16923
|
{
|
|
16940
16924
|
version: 122,
|
|
16941
16925
|
name: "dreaming-evidence-retry",
|
|
16942
|
-
up:
|
|
16926
|
+
up: up127,
|
|
16943
16927
|
artifacts: {
|
|
16944
16928
|
columns: [
|
|
16945
16929
|
{ table: "dreaming_evidence_exclusions", column: "failure_class" },
|
|
@@ -16952,13 +16936,13 @@ var MIGRATIONS = [
|
|
|
16952
16936
|
{
|
|
16953
16937
|
version: 123,
|
|
16954
16938
|
name: "embedding-index-failures",
|
|
16955
|
-
up:
|
|
16939
|
+
up: up128,
|
|
16956
16940
|
artifacts: { tables: ["embedding_index_failures"] }
|
|
16957
16941
|
},
|
|
16958
16942
|
{
|
|
16959
16943
|
version: 124,
|
|
16960
16944
|
name: "import-derived-lifecycle",
|
|
16961
|
-
up:
|
|
16945
|
+
up: up129,
|
|
16962
16946
|
artifacts: {
|
|
16963
16947
|
tables: ["imported_source_lifecycle"]
|
|
16964
16948
|
}
|
|
@@ -16966,77 +16950,77 @@ var MIGRATIONS = [
|
|
|
16966
16950
|
{
|
|
16967
16951
|
version: 125,
|
|
16968
16952
|
name: "memory-content-safety",
|
|
16969
|
-
up:
|
|
16953
|
+
up: up130,
|
|
16970
16954
|
artifacts: { tables: ["memory_content_safety"] }
|
|
16971
16955
|
},
|
|
16972
16956
|
{
|
|
16973
16957
|
version: 126,
|
|
16974
16958
|
name: "dreaming-surprisal-attention",
|
|
16975
|
-
up:
|
|
16959
|
+
up: up131,
|
|
16976
16960
|
artifacts: { tables: ["dreaming_attention"] }
|
|
16977
16961
|
},
|
|
16978
16962
|
{
|
|
16979
16963
|
version: 127,
|
|
16980
16964
|
name: "ontology-contradictions",
|
|
16981
|
-
up:
|
|
16965
|
+
up: up132,
|
|
16982
16966
|
artifacts: { tables: ["ontology_contradictions"] }
|
|
16983
16967
|
},
|
|
16984
16968
|
{
|
|
16985
16969
|
version: 128,
|
|
16986
16970
|
name: "bounded-queue-diagnostics",
|
|
16987
|
-
up:
|
|
16971
|
+
up: up133
|
|
16988
16972
|
},
|
|
16989
16973
|
{
|
|
16990
16974
|
version: 129,
|
|
16991
16975
|
name: "retire-structural-jobs",
|
|
16992
|
-
up:
|
|
16976
|
+
up: up134
|
|
16993
16977
|
},
|
|
16994
16978
|
{
|
|
16995
16979
|
version: 130,
|
|
16996
16980
|
name: "embedding-repair-state",
|
|
16997
|
-
up:
|
|
16981
|
+
up: up135,
|
|
16998
16982
|
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
16999
16983
|
},
|
|
17000
16984
|
{
|
|
17001
16985
|
version: 131,
|
|
17002
16986
|
name: "dreaming-evidence-consumption",
|
|
17003
|
-
up:
|
|
16987
|
+
up: up136,
|
|
17004
16988
|
artifacts: { tables: ["dreaming_evidence_consumption"] }
|
|
17005
16989
|
},
|
|
17006
16990
|
{
|
|
17007
16991
|
version: 132,
|
|
17008
16992
|
name: "observer-scoped-epistemic-assertions",
|
|
17009
|
-
up:
|
|
16993
|
+
up: up137,
|
|
17010
16994
|
artifacts: { tables: ["epistemic_assertions"] }
|
|
17011
16995
|
},
|
|
17012
16996
|
{
|
|
17013
16997
|
version: 133,
|
|
17014
16998
|
name: "dreaming-memory-head",
|
|
17015
|
-
up:
|
|
16999
|
+
up: up138,
|
|
17016
17000
|
artifacts: { tables: ["memory_head_revisions", "memory_head_entries", "memory_head_revision_entries"] }
|
|
17017
17001
|
},
|
|
17018
17002
|
{
|
|
17019
17003
|
version: 134,
|
|
17020
17004
|
name: "scope-memory-head-entries",
|
|
17021
|
-
up:
|
|
17005
|
+
up: up139,
|
|
17022
17006
|
artifacts: { tables: ["memory_head_entries"] }
|
|
17023
17007
|
},
|
|
17024
17008
|
{
|
|
17025
17009
|
version: 135,
|
|
17026
17010
|
name: "memory-head-publication",
|
|
17027
|
-
up:
|
|
17011
|
+
up: up140,
|
|
17028
17012
|
artifacts: { tables: ["memory_head_publications"] }
|
|
17029
17013
|
},
|
|
17030
17014
|
{
|
|
17031
17015
|
version: 136,
|
|
17032
17016
|
name: "memory-head-revisions",
|
|
17033
|
-
up:
|
|
17017
|
+
up: up141,
|
|
17034
17018
|
artifacts: { tables: ["memory_head_revisions"] }
|
|
17035
17019
|
},
|
|
17036
17020
|
{
|
|
17037
17021
|
version: 137,
|
|
17038
17022
|
name: "dreaming-head-manifest",
|
|
17039
|
-
up:
|
|
17023
|
+
up: up142,
|
|
17040
17024
|
artifacts: {
|
|
17041
17025
|
columns: [
|
|
17042
17026
|
{ table: "dreaming_passes", column: "head_revision" },
|
|
@@ -17047,7 +17031,7 @@ var MIGRATIONS = [
|
|
|
17047
17031
|
{
|
|
17048
17032
|
version: 138,
|
|
17049
17033
|
name: "bounded-status-projections",
|
|
17050
|
-
up:
|
|
17034
|
+
up: up143,
|
|
17051
17035
|
artifacts: {
|
|
17052
17036
|
tables: ["transcript_capture_status", "memories_duplicate_hash_counts", "memories_diagnostics_state"]
|
|
17053
17037
|
}
|
|
@@ -17055,31 +17039,31 @@ var MIGRATIONS = [
|
|
|
17055
17039
|
{
|
|
17056
17040
|
version: 139,
|
|
17057
17041
|
name: "native-source-sync-state",
|
|
17058
|
-
up:
|
|
17042
|
+
up: up144,
|
|
17059
17043
|
artifacts: { tables: ["native_source_sync_state"] }
|
|
17060
17044
|
},
|
|
17061
17045
|
{
|
|
17062
17046
|
version: 140,
|
|
17063
17047
|
name: "transcript-recovery-frontier",
|
|
17064
|
-
up:
|
|
17048
|
+
up: up145,
|
|
17065
17049
|
artifacts: { tables: ["transcript_recovery_frontiers"] }
|
|
17066
17050
|
},
|
|
17067
17051
|
{
|
|
17068
17052
|
version: 141,
|
|
17069
17053
|
name: "source-sync-checkpoints",
|
|
17070
|
-
up:
|
|
17054
|
+
up: up146,
|
|
17071
17055
|
artifacts: { tables: ["source_sync_checkpoints"] }
|
|
17072
17056
|
},
|
|
17073
17057
|
{
|
|
17074
17058
|
version: 142,
|
|
17075
17059
|
name: "source-sync-frontier",
|
|
17076
|
-
up:
|
|
17060
|
+
up: up147,
|
|
17077
17061
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
17078
17062
|
},
|
|
17079
17063
|
{
|
|
17080
17064
|
version: 143,
|
|
17081
17065
|
name: "embedding-index-progress",
|
|
17082
|
-
up:
|
|
17066
|
+
up: up148,
|
|
17083
17067
|
artifacts: {
|
|
17084
17068
|
columns: [
|
|
17085
17069
|
{ table: "embedding_index_state", column: "migration_phase" },
|
|
@@ -17095,19 +17079,19 @@ var MIGRATIONS = [
|
|
|
17095
17079
|
{
|
|
17096
17080
|
version: 144,
|
|
17097
17081
|
name: "memory-job-lease-token",
|
|
17098
|
-
up:
|
|
17082
|
+
up: up149,
|
|
17099
17083
|
artifacts: { columns: [{ table: "memory_jobs", column: "lease_token" }] }
|
|
17100
17084
|
},
|
|
17101
17085
|
{
|
|
17102
17086
|
version: 145,
|
|
17103
17087
|
name: "dreaming-evidence-reviews",
|
|
17104
|
-
up:
|
|
17088
|
+
up: up150,
|
|
17105
17089
|
artifacts: { tables: ["dreaming_evidence_reviews"] }
|
|
17106
17090
|
},
|
|
17107
17091
|
{
|
|
17108
17092
|
version: 146,
|
|
17109
17093
|
name: "source-transcript-import",
|
|
17110
|
-
up:
|
|
17094
|
+
up: up151,
|
|
17111
17095
|
artifacts: {
|
|
17112
17096
|
tables: [
|
|
17113
17097
|
"source_import_jobs",
|
|
@@ -17126,19 +17110,19 @@ var MIGRATIONS = [
|
|
|
17126
17110
|
{
|
|
17127
17111
|
version: 147,
|
|
17128
17112
|
name: "source-import-replay-file-slots",
|
|
17129
|
-
up:
|
|
17113
|
+
up: up152,
|
|
17130
17114
|
artifacts: { tables: ["source_import_files"] }
|
|
17131
17115
|
},
|
|
17132
17116
|
{
|
|
17133
17117
|
version: 148,
|
|
17134
17118
|
name: "source-import-attempt-provenance",
|
|
17135
|
-
up:
|
|
17119
|
+
up: up153,
|
|
17136
17120
|
artifacts: { columns: [{ table: "source_import_record_attempts", column: "source_id" }] }
|
|
17137
17121
|
},
|
|
17138
17122
|
{
|
|
17139
17123
|
version: 149,
|
|
17140
17124
|
name: "transcript-import-state-machine",
|
|
17141
|
-
up:
|
|
17125
|
+
up: up154,
|
|
17142
17126
|
artifacts: {
|
|
17143
17127
|
columns: [
|
|
17144
17128
|
{ table: "source_import_jobs", column: "duplicate_mode" },
|
|
@@ -17150,7 +17134,7 @@ var MIGRATIONS = [
|
|
|
17150
17134
|
{
|
|
17151
17135
|
version: 150,
|
|
17152
17136
|
name: "memory-head-freshness",
|
|
17153
|
-
up:
|
|
17137
|
+
up: up155,
|
|
17154
17138
|
artifacts: {
|
|
17155
17139
|
columns: [
|
|
17156
17140
|
{ table: "memory_md_heads", column: "is_current" },
|
|
@@ -17196,7 +17180,7 @@ var MIGRATIONS = [
|
|
|
17196
17180
|
{
|
|
17197
17181
|
version: 153,
|
|
17198
17182
|
name: "vector-repair-checkpoints",
|
|
17199
|
-
up:
|
|
17183
|
+
up: up156,
|
|
17200
17184
|
artifacts: { tables: ["vector_repair_checkpoints"] }
|
|
17201
17185
|
},
|
|
17202
17186
|
{
|
|
@@ -17223,13 +17207,13 @@ var MIGRATIONS = [
|
|
|
17223
17207
|
{
|
|
17224
17208
|
version: 156,
|
|
17225
17209
|
name: "embedding-repair-checkpoints",
|
|
17226
|
-
up:
|
|
17210
|
+
up: up157,
|
|
17227
17211
|
artifacts: { tables: ["embedding_repair_checkpoints"] }
|
|
17228
17212
|
},
|
|
17229
17213
|
{
|
|
17230
17214
|
version: 157,
|
|
17231
17215
|
name: "embedding-repair-progress",
|
|
17232
|
-
up:
|
|
17216
|
+
up: up158,
|
|
17233
17217
|
artifacts: {
|
|
17234
17218
|
tables: ["embedding_repair_progress"],
|
|
17235
17219
|
columns: [{ table: "embedding_repair_checkpoints", column: "profile_fingerprint" }]
|
|
@@ -17238,8 +17222,13 @@ var MIGRATIONS = [
|
|
|
17238
17222
|
{
|
|
17239
17223
|
version: 158,
|
|
17240
17224
|
name: "dreaming-candidate-scan-index",
|
|
17241
|
-
up:
|
|
17225
|
+
up: up159,
|
|
17242
17226
|
artifacts: { indexes: ["idx_memories_agent_kind"] }
|
|
17227
|
+
},
|
|
17228
|
+
{
|
|
17229
|
+
version: 159,
|
|
17230
|
+
name: "retire-obsolete-invocation-ledger",
|
|
17231
|
+
up: up5
|
|
17243
17232
|
}
|
|
17244
17233
|
];
|
|
17245
17234
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|