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