@signetai/connector-base 0.226.9 → 0.226.14
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 +709 -1441
- package/dist/index.js +732 -1464
- package/dist/lenient-json.js +13 -11
- package/package.json +2 -2
package/dist/agent-dir.js
CHANGED
|
@@ -18,12 +18,14 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
}
|
|
19
19
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
20
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(mod))
|
|
23
|
+
if (!__hasOwnProp.call(to, key))
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
}
|
|
27
29
|
if (canCache)
|
|
28
30
|
cache.set(mod, to);
|
|
29
31
|
return to;
|
|
@@ -50,11 +52,9 @@ import { promisify } from "node:util";
|
|
|
50
52
|
import { createHash } from "node:crypto";
|
|
51
53
|
import { homedir as homedir2 } from "node:os";
|
|
52
54
|
import { join as join2, resolve } from "node:path";
|
|
53
|
-
import { createHash as createHash2 } from "node:crypto";
|
|
54
|
-
import { createRequire as createRequire2 } from "node:module";
|
|
55
55
|
import {
|
|
56
56
|
closeSync as closeSync2,
|
|
57
|
-
existsSync as
|
|
57
|
+
existsSync as existsSync7,
|
|
58
58
|
fsyncSync as fsyncSync2,
|
|
59
59
|
mkdirSync as mkdirSync3,
|
|
60
60
|
openSync as openSync2,
|
|
@@ -65,15 +65,15 @@ import {
|
|
|
65
65
|
writeSync
|
|
66
66
|
} from "node:fs";
|
|
67
67
|
import { homedir as homedir4 } from "node:os";
|
|
68
|
-
import { dirname as
|
|
69
|
-
import { createRequire as
|
|
68
|
+
import { dirname as dirname4, join as join8, resolve as resolve2 } from "node:path";
|
|
69
|
+
import { createRequire as createRequire2 } from "node:module";
|
|
70
70
|
import { homedir as homedir5 } from "node:os";
|
|
71
|
-
import { dirname as
|
|
71
|
+
import { dirname as dirname5, join as join9, resolve as resolve3 } from "node:path";
|
|
72
72
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
73
|
-
import { basename, dirname as
|
|
73
|
+
import { basename, dirname as dirname6, resolve as resolve5 } from "node:path";
|
|
74
74
|
import { homedir as homedir8 } from "node:os";
|
|
75
|
-
import { existsSync as
|
|
76
|
-
import { join as
|
|
75
|
+
import { existsSync as existsSync14, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
|
|
76
|
+
import { join as join14 } from "node:path";
|
|
77
77
|
var __create2 = Object.create;
|
|
78
78
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
79
79
|
var __defProp2 = Object.defineProperty;
|
|
@@ -94,12 +94,14 @@ var __toESM2 = (mod, isNodeMode, target) => {
|
|
|
94
94
|
}
|
|
95
95
|
target = mod != null ? __create2(__getProtoOf2(mod)) : {};
|
|
96
96
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
98
|
+
for (let key of __getOwnPropNames2(mod))
|
|
99
|
+
if (!__hasOwnProp2.call(to, key))
|
|
100
|
+
__defProp2(to, key, {
|
|
101
|
+
get: __accessProp2.bind(mod, key),
|
|
102
|
+
enumerable: true
|
|
103
|
+
});
|
|
104
|
+
}
|
|
103
105
|
if (canCache)
|
|
104
106
|
cache.set(mod, to);
|
|
105
107
|
return to;
|
|
@@ -120,7 +122,7 @@ var __export = (target, all) => {
|
|
|
120
122
|
};
|
|
121
123
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
122
124
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
123
|
-
var require_identity = __commonJS2((exports)
|
|
125
|
+
var require_identity = __commonJS2(function(exports) {
|
|
124
126
|
var ALIAS = Symbol.for("yaml.alias");
|
|
125
127
|
var DOC = Symbol.for("yaml.document");
|
|
126
128
|
var MAP = Symbol.for("yaml.map");
|
|
@@ -172,7 +174,7 @@ var require_identity = __commonJS2((exports) => {
|
|
|
172
174
|
exports.isScalar = isScalar;
|
|
173
175
|
exports.isSeq = isSeq;
|
|
174
176
|
});
|
|
175
|
-
var require_visit = __commonJS2((exports)
|
|
177
|
+
var require_visit = __commonJS2(function(exports) {
|
|
176
178
|
var identity = require_identity();
|
|
177
179
|
var BREAK = Symbol("break visit");
|
|
178
180
|
var SKIP = Symbol("skip children");
|
|
@@ -325,7 +327,7 @@ var require_visit = __commonJS2((exports) => {
|
|
|
325
327
|
exports.visit = visit;
|
|
326
328
|
exports.visitAsync = visitAsync;
|
|
327
329
|
});
|
|
328
|
-
var require_directives = __commonJS2((exports)
|
|
330
|
+
var require_directives = __commonJS2(function(exports) {
|
|
329
331
|
var identity = require_identity();
|
|
330
332
|
var visit = require_visit();
|
|
331
333
|
var escapeChars = {
|
|
@@ -475,7 +477,7 @@ var require_directives = __commonJS2((exports) => {
|
|
|
475
477
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
476
478
|
exports.Directives = Directives;
|
|
477
479
|
});
|
|
478
|
-
var require_anchors = __commonJS2((exports)
|
|
480
|
+
var require_anchors = __commonJS2(function(exports) {
|
|
479
481
|
var identity = require_identity();
|
|
480
482
|
var visit = require_visit();
|
|
481
483
|
function anchorIsValid(anchor) {
|
|
@@ -535,7 +537,7 @@ var require_anchors = __commonJS2((exports) => {
|
|
|
535
537
|
exports.createNodeAnchors = createNodeAnchors;
|
|
536
538
|
exports.findNewAnchor = findNewAnchor;
|
|
537
539
|
});
|
|
538
|
-
var require_applyReviver = __commonJS2((exports)
|
|
540
|
+
var require_applyReviver = __commonJS2(function(exports) {
|
|
539
541
|
function applyReviver(reviver, obj, key, val) {
|
|
540
542
|
if (val && typeof val === "object") {
|
|
541
543
|
if (Array.isArray(val)) {
|
|
@@ -580,7 +582,7 @@ var require_applyReviver = __commonJS2((exports) => {
|
|
|
580
582
|
}
|
|
581
583
|
exports.applyReviver = applyReviver;
|
|
582
584
|
});
|
|
583
|
-
var require_toJS = __commonJS2((exports)
|
|
585
|
+
var require_toJS = __commonJS2(function(exports) {
|
|
584
586
|
var identity = require_identity();
|
|
585
587
|
function toJS(value, arg, ctx) {
|
|
586
588
|
if (Array.isArray(value))
|
|
@@ -605,7 +607,7 @@ var require_toJS = __commonJS2((exports) => {
|
|
|
605
607
|
}
|
|
606
608
|
exports.toJS = toJS;
|
|
607
609
|
});
|
|
608
|
-
var require_Node = __commonJS2((exports)
|
|
610
|
+
var require_Node = __commonJS2(function(exports) {
|
|
609
611
|
var applyReviver = require_applyReviver();
|
|
610
612
|
var identity = require_identity();
|
|
611
613
|
var toJS = require_toJS();
|
|
@@ -640,7 +642,7 @@ var require_Node = __commonJS2((exports) => {
|
|
|
640
642
|
}
|
|
641
643
|
exports.NodeBase = NodeBase;
|
|
642
644
|
});
|
|
643
|
-
var require_Alias = __commonJS2((exports)
|
|
645
|
+
var require_Alias = __commonJS2(function(exports) {
|
|
644
646
|
var anchors = require_anchors();
|
|
645
647
|
var visit = require_visit();
|
|
646
648
|
var identity = require_identity();
|
|
@@ -748,7 +750,7 @@ var require_Alias = __commonJS2((exports) => {
|
|
|
748
750
|
}
|
|
749
751
|
exports.Alias = Alias;
|
|
750
752
|
});
|
|
751
|
-
var require_Scalar = __commonJS2((exports)
|
|
753
|
+
var require_Scalar = __commonJS2(function(exports) {
|
|
752
754
|
var identity = require_identity();
|
|
753
755
|
var Node = require_Node();
|
|
754
756
|
var toJS = require_toJS();
|
|
@@ -774,7 +776,7 @@ var require_Scalar = __commonJS2((exports) => {
|
|
|
774
776
|
exports.Scalar = Scalar;
|
|
775
777
|
exports.isScalarValue = isScalarValue;
|
|
776
778
|
});
|
|
777
|
-
var require_createNode = __commonJS2((exports)
|
|
779
|
+
var require_createNode = __commonJS2(function(exports) {
|
|
778
780
|
var Alias = require_Alias();
|
|
779
781
|
var identity = require_identity();
|
|
780
782
|
var Scalar = require_Scalar();
|
|
@@ -844,7 +846,7 @@ var require_createNode = __commonJS2((exports) => {
|
|
|
844
846
|
}
|
|
845
847
|
exports.createNode = createNode;
|
|
846
848
|
});
|
|
847
|
-
var require_Collection = __commonJS2((exports)
|
|
849
|
+
var require_Collection = __commonJS2(function(exports) {
|
|
848
850
|
var createNode = require_createNode();
|
|
849
851
|
var identity = require_identity();
|
|
850
852
|
var Node = require_Node();
|
|
@@ -957,7 +959,7 @@ var require_Collection = __commonJS2((exports) => {
|
|
|
957
959
|
exports.collectionFromPath = collectionFromPath;
|
|
958
960
|
exports.isEmptyPath = isEmptyPath;
|
|
959
961
|
});
|
|
960
|
-
var require_stringifyComment = __commonJS2((exports)
|
|
962
|
+
var require_stringifyComment = __commonJS2(function(exports) {
|
|
961
963
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
962
964
|
function indentComment(comment, indent) {
|
|
963
965
|
if (/^\n+$/.test(comment))
|
|
@@ -972,7 +974,7 @@ var require_stringifyComment = __commonJS2((exports) => {
|
|
|
972
974
|
exports.lineComment = lineComment;
|
|
973
975
|
exports.stringifyComment = stringifyComment;
|
|
974
976
|
});
|
|
975
|
-
var require_foldFlowLines = __commonJS2((exports)
|
|
977
|
+
var require_foldFlowLines = __commonJS2(function(exports) {
|
|
976
978
|
var FOLD_FLOW = "flow";
|
|
977
979
|
var FOLD_BLOCK = "block";
|
|
978
980
|
var FOLD_QUOTED = "quoted";
|
|
@@ -1107,7 +1109,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1107
1109
|
exports.FOLD_QUOTED = FOLD_QUOTED;
|
|
1108
1110
|
exports.foldFlowLines = foldFlowLines;
|
|
1109
1111
|
});
|
|
1110
|
-
var require_stringifyString = __commonJS2((exports)
|
|
1112
|
+
var require_stringifyString = __commonJS2(function(exports) {
|
|
1111
1113
|
var Scalar = require_Scalar();
|
|
1112
1114
|
var foldFlowLines = require_foldFlowLines();
|
|
1113
1115
|
var getFoldOptions = (ctx, isBlock) => ({
|
|
@@ -1403,7 +1405,7 @@ ${indent}`);
|
|
|
1403
1405
|
}
|
|
1404
1406
|
exports.stringifyString = stringifyString;
|
|
1405
1407
|
});
|
|
1406
|
-
var require_stringify = __commonJS2((exports)
|
|
1408
|
+
var require_stringify = __commonJS2(function(exports) {
|
|
1407
1409
|
var anchors = require_anchors();
|
|
1408
1410
|
var identity = require_identity();
|
|
1409
1411
|
var stringifyComment = require_stringifyComment();
|
|
@@ -1522,7 +1524,7 @@ ${ctx.indent}${str}`;
|
|
|
1522
1524
|
exports.createStringifyContext = createStringifyContext;
|
|
1523
1525
|
exports.stringify = stringify;
|
|
1524
1526
|
});
|
|
1525
|
-
var require_stringifyPair = __commonJS2((exports)
|
|
1527
|
+
var require_stringifyPair = __commonJS2(function(exports) {
|
|
1526
1528
|
var identity = require_identity();
|
|
1527
1529
|
var Scalar = require_Scalar();
|
|
1528
1530
|
var stringify = require_stringify();
|
|
@@ -1656,7 +1658,7 @@ ${ctx.indent}`;
|
|
|
1656
1658
|
}
|
|
1657
1659
|
exports.stringifyPair = stringifyPair;
|
|
1658
1660
|
});
|
|
1659
|
-
var require_log = __commonJS2((exports)
|
|
1661
|
+
var require_log = __commonJS2(function(exports) {
|
|
1660
1662
|
var node_process = __require("process");
|
|
1661
1663
|
function debug(logLevel, ...messages) {
|
|
1662
1664
|
if (logLevel === "debug")
|
|
@@ -1673,7 +1675,7 @@ var require_log = __commonJS2((exports) => {
|
|
|
1673
1675
|
exports.debug = debug;
|
|
1674
1676
|
exports.warn = warn;
|
|
1675
1677
|
});
|
|
1676
|
-
var require_merge = __commonJS2((exports)
|
|
1678
|
+
var require_merge = __commonJS2(function(exports) {
|
|
1677
1679
|
var identity = require_identity();
|
|
1678
1680
|
var Scalar = require_Scalar();
|
|
1679
1681
|
var MERGE_KEY = "<<";
|
|
@@ -1728,7 +1730,7 @@ var require_merge = __commonJS2((exports) => {
|
|
|
1728
1730
|
exports.isMergeKey = isMergeKey;
|
|
1729
1731
|
exports.merge = merge;
|
|
1730
1732
|
});
|
|
1731
|
-
var require_addPairToJSMap = __commonJS2((exports)
|
|
1733
|
+
var require_addPairToJSMap = __commonJS2(function(exports) {
|
|
1732
1734
|
var log = require_log();
|
|
1733
1735
|
var merge = require_merge();
|
|
1734
1736
|
var stringify = require_stringify();
|
|
@@ -1787,7 +1789,7 @@ var require_addPairToJSMap = __commonJS2((exports) => {
|
|
|
1787
1789
|
}
|
|
1788
1790
|
exports.addPairToJSMap = addPairToJSMap;
|
|
1789
1791
|
});
|
|
1790
|
-
var require_Pair = __commonJS2((exports)
|
|
1792
|
+
var require_Pair = __commonJS2(function(exports) {
|
|
1791
1793
|
var createNode = require_createNode();
|
|
1792
1794
|
var stringifyPair = require_stringifyPair();
|
|
1793
1795
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -1823,7 +1825,7 @@ var require_Pair = __commonJS2((exports) => {
|
|
|
1823
1825
|
exports.Pair = Pair;
|
|
1824
1826
|
exports.createPair = createPair;
|
|
1825
1827
|
});
|
|
1826
|
-
var require_stringifyCollection = __commonJS2((exports)
|
|
1828
|
+
var require_stringifyCollection = __commonJS2(function(exports) {
|
|
1827
1829
|
var identity = require_identity();
|
|
1828
1830
|
var stringify = require_stringify();
|
|
1829
1831
|
var stringifyComment = require_stringifyComment();
|
|
@@ -1973,7 +1975,7 @@ ${indent}${end}`;
|
|
|
1973
1975
|
}
|
|
1974
1976
|
exports.stringifyCollection = stringifyCollection;
|
|
1975
1977
|
});
|
|
1976
|
-
var require_YAMLMap = __commonJS2((exports)
|
|
1978
|
+
var require_YAMLMap = __commonJS2(function(exports) {
|
|
1977
1979
|
var stringifyCollection = require_stringifyCollection();
|
|
1978
1980
|
var addPairToJSMap = require_addPairToJSMap();
|
|
1979
1981
|
var Collection = require_Collection();
|
|
@@ -2098,7 +2100,7 @@ var require_YAMLMap = __commonJS2((exports) => {
|
|
|
2098
2100
|
exports.YAMLMap = YAMLMap;
|
|
2099
2101
|
exports.findPair = findPair;
|
|
2100
2102
|
});
|
|
2101
|
-
var require_map = __commonJS2((exports)
|
|
2103
|
+
var require_map = __commonJS2(function(exports) {
|
|
2102
2104
|
var identity = require_identity();
|
|
2103
2105
|
var YAMLMap = require_YAMLMap();
|
|
2104
2106
|
var map = {
|
|
@@ -2115,7 +2117,7 @@ var require_map = __commonJS2((exports) => {
|
|
|
2115
2117
|
};
|
|
2116
2118
|
exports.map = map;
|
|
2117
2119
|
});
|
|
2118
|
-
var require_YAMLSeq = __commonJS2((exports)
|
|
2120
|
+
var require_YAMLSeq = __commonJS2(function(exports) {
|
|
2119
2121
|
var createNode = require_createNode();
|
|
2120
2122
|
var stringifyCollection = require_stringifyCollection();
|
|
2121
2123
|
var Collection = require_Collection();
|
|
@@ -2206,7 +2208,7 @@ var require_YAMLSeq = __commonJS2((exports) => {
|
|
|
2206
2208
|
}
|
|
2207
2209
|
exports.YAMLSeq = YAMLSeq;
|
|
2208
2210
|
});
|
|
2209
|
-
var require_seq = __commonJS2((exports)
|
|
2211
|
+
var require_seq = __commonJS2(function(exports) {
|
|
2210
2212
|
var identity = require_identity();
|
|
2211
2213
|
var YAMLSeq = require_YAMLSeq();
|
|
2212
2214
|
var seq = {
|
|
@@ -2223,7 +2225,7 @@ var require_seq = __commonJS2((exports) => {
|
|
|
2223
2225
|
};
|
|
2224
2226
|
exports.seq = seq;
|
|
2225
2227
|
});
|
|
2226
|
-
var require_string = __commonJS2((exports)
|
|
2228
|
+
var require_string = __commonJS2(function(exports) {
|
|
2227
2229
|
var stringifyString = require_stringifyString();
|
|
2228
2230
|
var string = {
|
|
2229
2231
|
identify: (value) => typeof value === "string",
|
|
@@ -2237,7 +2239,7 @@ var require_string = __commonJS2((exports) => {
|
|
|
2237
2239
|
};
|
|
2238
2240
|
exports.string = string;
|
|
2239
2241
|
});
|
|
2240
|
-
var require_null = __commonJS2((exports)
|
|
2242
|
+
var require_null = __commonJS2(function(exports) {
|
|
2241
2243
|
var Scalar = require_Scalar();
|
|
2242
2244
|
var nullTag = {
|
|
2243
2245
|
identify: (value) => value == null,
|
|
@@ -2250,7 +2252,7 @@ var require_null = __commonJS2((exports) => {
|
|
|
2250
2252
|
};
|
|
2251
2253
|
exports.nullTag = nullTag;
|
|
2252
2254
|
});
|
|
2253
|
-
var require_bool = __commonJS2((exports)
|
|
2255
|
+
var require_bool = __commonJS2(function(exports) {
|
|
2254
2256
|
var Scalar = require_Scalar();
|
|
2255
2257
|
var boolTag = {
|
|
2256
2258
|
identify: (value) => typeof value === "boolean",
|
|
@@ -2269,7 +2271,7 @@ var require_bool = __commonJS2((exports) => {
|
|
|
2269
2271
|
};
|
|
2270
2272
|
exports.boolTag = boolTag;
|
|
2271
2273
|
});
|
|
2272
|
-
var require_stringifyNumber = __commonJS2((exports)
|
|
2274
|
+
var require_stringifyNumber = __commonJS2(function(exports) {
|
|
2273
2275
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2274
2276
|
if (typeof value === "bigint")
|
|
2275
2277
|
return String(value);
|
|
@@ -2291,7 +2293,7 @@ var require_stringifyNumber = __commonJS2((exports) => {
|
|
|
2291
2293
|
}
|
|
2292
2294
|
exports.stringifyNumber = stringifyNumber;
|
|
2293
2295
|
});
|
|
2294
|
-
var require_float = __commonJS2((exports)
|
|
2296
|
+
var require_float = __commonJS2(function(exports) {
|
|
2295
2297
|
var Scalar = require_Scalar();
|
|
2296
2298
|
var stringifyNumber = require_stringifyNumber();
|
|
2297
2299
|
var floatNaN = {
|
|
@@ -2332,7 +2334,7 @@ var require_float = __commonJS2((exports) => {
|
|
|
2332
2334
|
exports.floatExp = floatExp;
|
|
2333
2335
|
exports.floatNaN = floatNaN;
|
|
2334
2336
|
});
|
|
2335
|
-
var require_int = __commonJS2((exports)
|
|
2337
|
+
var require_int = __commonJS2(function(exports) {
|
|
2336
2338
|
var stringifyNumber = require_stringifyNumber();
|
|
2337
2339
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2338
2340
|
var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
|
@@ -2372,7 +2374,7 @@ var require_int = __commonJS2((exports) => {
|
|
|
2372
2374
|
exports.intHex = intHex;
|
|
2373
2375
|
exports.intOct = intOct;
|
|
2374
2376
|
});
|
|
2375
|
-
var require_schema = __commonJS2((exports)
|
|
2377
|
+
var require_schema = __commonJS2(function(exports) {
|
|
2376
2378
|
var map = require_map();
|
|
2377
2379
|
var _null = require_null();
|
|
2378
2380
|
var seq = require_seq();
|
|
@@ -2395,7 +2397,7 @@ var require_schema = __commonJS2((exports) => {
|
|
|
2395
2397
|
];
|
|
2396
2398
|
exports.schema = schema;
|
|
2397
2399
|
});
|
|
2398
|
-
var require_schema2 = __commonJS2((exports)
|
|
2400
|
+
var require_schema2 = __commonJS2(function(exports) {
|
|
2399
2401
|
var Scalar = require_Scalar();
|
|
2400
2402
|
var map = require_map();
|
|
2401
2403
|
var seq = require_seq();
|
|
@@ -2457,7 +2459,7 @@ var require_schema2 = __commonJS2((exports) => {
|
|
|
2457
2459
|
var schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
|
|
2458
2460
|
exports.schema = schema;
|
|
2459
2461
|
});
|
|
2460
|
-
var require_binary = __commonJS2((exports)
|
|
2462
|
+
var require_binary = __commonJS2(function(exports) {
|
|
2461
2463
|
var node_buffer = __require("buffer");
|
|
2462
2464
|
var Scalar = require_Scalar();
|
|
2463
2465
|
var stringifyString = require_stringifyString();
|
|
@@ -2510,7 +2512,7 @@ var require_binary = __commonJS2((exports) => {
|
|
|
2510
2512
|
};
|
|
2511
2513
|
exports.binary = binary;
|
|
2512
2514
|
});
|
|
2513
|
-
var require_pairs = __commonJS2((exports)
|
|
2515
|
+
var require_pairs = __commonJS2(function(exports) {
|
|
2514
2516
|
var identity = require_identity();
|
|
2515
2517
|
var Pair = require_Pair();
|
|
2516
2518
|
var Scalar = require_Scalar();
|
|
@@ -2583,7 +2585,7 @@ ${cn.comment}` : item.comment;
|
|
|
2583
2585
|
exports.pairs = pairs;
|
|
2584
2586
|
exports.resolvePairs = resolvePairs;
|
|
2585
2587
|
});
|
|
2586
|
-
var require_omap = __commonJS2((exports)
|
|
2588
|
+
var require_omap = __commonJS2(function(exports) {
|
|
2587
2589
|
var identity = require_identity();
|
|
2588
2590
|
var toJS = require_toJS();
|
|
2589
2591
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2653,7 +2655,7 @@ var require_omap = __commonJS2((exports) => {
|
|
|
2653
2655
|
exports.YAMLOMap = YAMLOMap;
|
|
2654
2656
|
exports.omap = omap;
|
|
2655
2657
|
});
|
|
2656
|
-
var require_bool2 = __commonJS2((exports)
|
|
2658
|
+
var require_bool2 = __commonJS2(function(exports) {
|
|
2657
2659
|
var Scalar = require_Scalar();
|
|
2658
2660
|
function boolStringify({ value, source }, ctx) {
|
|
2659
2661
|
const boolObj = value ? trueTag : falseTag;
|
|
@@ -2680,7 +2682,7 @@ var require_bool2 = __commonJS2((exports) => {
|
|
|
2680
2682
|
exports.falseTag = falseTag;
|
|
2681
2683
|
exports.trueTag = trueTag;
|
|
2682
2684
|
});
|
|
2683
|
-
var require_float2 = __commonJS2((exports)
|
|
2685
|
+
var require_float2 = __commonJS2(function(exports) {
|
|
2684
2686
|
var Scalar = require_Scalar();
|
|
2685
2687
|
var stringifyNumber = require_stringifyNumber();
|
|
2686
2688
|
var floatNaN = {
|
|
@@ -2724,7 +2726,7 @@ var require_float2 = __commonJS2((exports) => {
|
|
|
2724
2726
|
exports.floatExp = floatExp;
|
|
2725
2727
|
exports.floatNaN = floatNaN;
|
|
2726
2728
|
});
|
|
2727
|
-
var require_int2 = __commonJS2((exports)
|
|
2729
|
+
var require_int2 = __commonJS2(function(exports) {
|
|
2728
2730
|
var stringifyNumber = require_stringifyNumber();
|
|
2729
2731
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2730
2732
|
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
@@ -2798,7 +2800,7 @@ var require_int2 = __commonJS2((exports) => {
|
|
|
2798
2800
|
exports.intHex = intHex;
|
|
2799
2801
|
exports.intOct = intOct;
|
|
2800
2802
|
});
|
|
2801
|
-
var require_set = __commonJS2((exports)
|
|
2803
|
+
var require_set = __commonJS2(function(exports) {
|
|
2802
2804
|
var identity = require_identity();
|
|
2803
2805
|
var Pair = require_Pair();
|
|
2804
2806
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2879,7 +2881,7 @@ var require_set = __commonJS2((exports) => {
|
|
|
2879
2881
|
exports.YAMLSet = YAMLSet;
|
|
2880
2882
|
exports.set = set;
|
|
2881
2883
|
});
|
|
2882
|
-
var require_timestamp = __commonJS2((exports)
|
|
2884
|
+
var require_timestamp = __commonJS2(function(exports) {
|
|
2883
2885
|
var stringifyNumber = require_stringifyNumber();
|
|
2884
2886
|
function parseSexagesimal(str, asBigInt) {
|
|
2885
2887
|
const sign = str[0];
|
|
@@ -2959,7 +2961,7 @@ var require_timestamp = __commonJS2((exports) => {
|
|
|
2959
2961
|
exports.intTime = intTime;
|
|
2960
2962
|
exports.timestamp = timestamp;
|
|
2961
2963
|
});
|
|
2962
|
-
var require_schema3 = __commonJS2((exports)
|
|
2964
|
+
var require_schema3 = __commonJS2(function(exports) {
|
|
2963
2965
|
var map = require_map();
|
|
2964
2966
|
var _null = require_null();
|
|
2965
2967
|
var seq = require_seq();
|
|
@@ -2998,7 +3000,7 @@ var require_schema3 = __commonJS2((exports) => {
|
|
|
2998
3000
|
];
|
|
2999
3001
|
exports.schema = schema;
|
|
3000
3002
|
});
|
|
3001
|
-
var require_tags = __commonJS2((exports)
|
|
3003
|
+
var require_tags = __commonJS2(function(exports) {
|
|
3002
3004
|
var map = require_map();
|
|
3003
3005
|
var _null = require_null();
|
|
3004
3006
|
var seq = require_seq();
|
|
@@ -3087,7 +3089,7 @@ var require_tags = __commonJS2((exports) => {
|
|
|
3087
3089
|
exports.coreKnownTags = coreKnownTags;
|
|
3088
3090
|
exports.getTags = getTags;
|
|
3089
3091
|
});
|
|
3090
|
-
var require_Schema = __commonJS2((exports)
|
|
3092
|
+
var require_Schema = __commonJS2(function(exports) {
|
|
3091
3093
|
var identity = require_identity();
|
|
3092
3094
|
var map = require_map();
|
|
3093
3095
|
var seq = require_seq();
|
|
@@ -3115,7 +3117,7 @@ var require_Schema = __commonJS2((exports) => {
|
|
|
3115
3117
|
}
|
|
3116
3118
|
exports.Schema = Schema;
|
|
3117
3119
|
});
|
|
3118
|
-
var require_stringifyDocument = __commonJS2((exports)
|
|
3120
|
+
var require_stringifyDocument = __commonJS2(function(exports) {
|
|
3119
3121
|
var identity = require_identity();
|
|
3120
3122
|
var stringify = require_stringify();
|
|
3121
3123
|
var stringifyComment = require_stringifyComment();
|
|
@@ -3193,7 +3195,7 @@ var require_stringifyDocument = __commonJS2((exports) => {
|
|
|
3193
3195
|
}
|
|
3194
3196
|
exports.stringifyDocument = stringifyDocument;
|
|
3195
3197
|
});
|
|
3196
|
-
var require_Document = __commonJS2((exports)
|
|
3198
|
+
var require_Document = __commonJS2(function(exports) {
|
|
3197
3199
|
var Alias = require_Alias();
|
|
3198
3200
|
var Collection = require_Collection();
|
|
3199
3201
|
var identity = require_identity();
|
|
@@ -3426,7 +3428,7 @@ var require_Document = __commonJS2((exports) => {
|
|
|
3426
3428
|
}
|
|
3427
3429
|
exports.Document = Document;
|
|
3428
3430
|
});
|
|
3429
|
-
var require_errors = __commonJS2((exports)
|
|
3431
|
+
var require_errors = __commonJS2(function(exports) {
|
|
3430
3432
|
|
|
3431
3433
|
class YAMLError extends Error {
|
|
3432
3434
|
constructor(name, pos, code, message) {
|
|
@@ -3490,7 +3492,7 @@ ${pointer}
|
|
|
3490
3492
|
exports.YAMLWarning = YAMLWarning;
|
|
3491
3493
|
exports.prettifyError = prettifyError;
|
|
3492
3494
|
});
|
|
3493
|
-
var require_resolve_props = __commonJS2((exports)
|
|
3495
|
+
var require_resolve_props = __commonJS2(function(exports) {
|
|
3494
3496
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3495
3497
|
let spaceBefore = false;
|
|
3496
3498
|
let atNewline = startOnNewline;
|
|
@@ -3618,7 +3620,7 @@ var require_resolve_props = __commonJS2((exports) => {
|
|
|
3618
3620
|
}
|
|
3619
3621
|
exports.resolveProps = resolveProps;
|
|
3620
3622
|
});
|
|
3621
|
-
var require_util_contains_newline = __commonJS2((exports)
|
|
3623
|
+
var require_util_contains_newline = __commonJS2(function(exports) {
|
|
3622
3624
|
function containsNewline(key) {
|
|
3623
3625
|
if (!key)
|
|
3624
3626
|
return null;
|
|
@@ -3656,7 +3658,7 @@ var require_util_contains_newline = __commonJS2((exports) => {
|
|
|
3656
3658
|
}
|
|
3657
3659
|
exports.containsNewline = containsNewline;
|
|
3658
3660
|
});
|
|
3659
|
-
var require_util_flow_indent_check = __commonJS2((exports)
|
|
3661
|
+
var require_util_flow_indent_check = __commonJS2(function(exports) {
|
|
3660
3662
|
var utilContainsNewline = require_util_contains_newline();
|
|
3661
3663
|
function flowIndentCheck(indent, fc, onError) {
|
|
3662
3664
|
if (fc?.type === "flow-collection") {
|
|
@@ -3669,7 +3671,7 @@ var require_util_flow_indent_check = __commonJS2((exports) => {
|
|
|
3669
3671
|
}
|
|
3670
3672
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3671
3673
|
});
|
|
3672
|
-
var require_util_map_includes = __commonJS2((exports)
|
|
3674
|
+
var require_util_map_includes = __commonJS2(function(exports) {
|
|
3673
3675
|
var identity = require_identity();
|
|
3674
3676
|
function mapIncludes(ctx, items, search) {
|
|
3675
3677
|
const { uniqueKeys } = ctx.options;
|
|
@@ -3680,7 +3682,7 @@ var require_util_map_includes = __commonJS2((exports) => {
|
|
|
3680
3682
|
}
|
|
3681
3683
|
exports.mapIncludes = mapIncludes;
|
|
3682
3684
|
});
|
|
3683
|
-
var require_resolve_block_map = __commonJS2((exports)
|
|
3685
|
+
var require_resolve_block_map = __commonJS2(function(exports) {
|
|
3684
3686
|
var Pair = require_Pair();
|
|
3685
3687
|
var YAMLMap = require_YAMLMap();
|
|
3686
3688
|
var resolveProps = require_resolve_props();
|
|
@@ -3785,7 +3787,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3785
3787
|
}
|
|
3786
3788
|
exports.resolveBlockMap = resolveBlockMap;
|
|
3787
3789
|
});
|
|
3788
|
-
var require_resolve_block_seq = __commonJS2((exports)
|
|
3790
|
+
var require_resolve_block_seq = __commonJS2(function(exports) {
|
|
3789
3791
|
var YAMLSeq = require_YAMLSeq();
|
|
3790
3792
|
var resolveProps = require_resolve_props();
|
|
3791
3793
|
var utilFlowIndentCheck = require_util_flow_indent_check();
|
|
@@ -3831,7 +3833,7 @@ var require_resolve_block_seq = __commonJS2((exports) => {
|
|
|
3831
3833
|
}
|
|
3832
3834
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
3833
3835
|
});
|
|
3834
|
-
var require_resolve_end = __commonJS2((exports)
|
|
3836
|
+
var require_resolve_end = __commonJS2(function(exports) {
|
|
3835
3837
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3836
3838
|
let comment = "";
|
|
3837
3839
|
if (end) {
|
|
@@ -3869,7 +3871,7 @@ var require_resolve_end = __commonJS2((exports) => {
|
|
|
3869
3871
|
}
|
|
3870
3872
|
exports.resolveEnd = resolveEnd;
|
|
3871
3873
|
});
|
|
3872
|
-
var require_resolve_flow_collection = __commonJS2((exports)
|
|
3874
|
+
var require_resolve_flow_collection = __commonJS2(function(exports) {
|
|
3873
3875
|
var identity = require_identity();
|
|
3874
3876
|
var Pair = require_Pair();
|
|
3875
3877
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4058,7 +4060,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
4058
4060
|
}
|
|
4059
4061
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4060
4062
|
});
|
|
4061
|
-
var require_compose_collection = __commonJS2((exports)
|
|
4063
|
+
var require_compose_collection = __commonJS2(function(exports) {
|
|
4062
4064
|
var identity = require_identity();
|
|
4063
4065
|
var Scalar = require_Scalar();
|
|
4064
4066
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4118,7 +4120,7 @@ var require_compose_collection = __commonJS2((exports) => {
|
|
|
4118
4120
|
}
|
|
4119
4121
|
exports.composeCollection = composeCollection;
|
|
4120
4122
|
});
|
|
4121
|
-
var require_resolve_block_scalar = __commonJS2((exports)
|
|
4123
|
+
var require_resolve_block_scalar = __commonJS2(function(exports) {
|
|
4122
4124
|
var Scalar = require_Scalar();
|
|
4123
4125
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
4124
4126
|
const start = scalar.offset;
|
|
@@ -4309,7 +4311,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
|
|
|
4309
4311
|
}
|
|
4310
4312
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4311
4313
|
});
|
|
4312
|
-
var require_resolve_flow_scalar = __commonJS2((exports)
|
|
4314
|
+
var require_resolve_flow_scalar = __commonJS2(function(exports) {
|
|
4313
4315
|
var Scalar = require_Scalar();
|
|
4314
4316
|
var resolveEnd = require_resolve_end();
|
|
4315
4317
|
function resolveFlowScalar(scalar, strict, onError) {
|
|
@@ -4524,7 +4526,7 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
|
|
|
4524
4526
|
}
|
|
4525
4527
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4526
4528
|
});
|
|
4527
|
-
var require_compose_scalar = __commonJS2((exports)
|
|
4529
|
+
var require_compose_scalar = __commonJS2(function(exports) {
|
|
4528
4530
|
var identity = require_identity();
|
|
4529
4531
|
var Scalar = require_Scalar();
|
|
4530
4532
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
@@ -4600,7 +4602,7 @@ var require_compose_scalar = __commonJS2((exports) => {
|
|
|
4600
4602
|
}
|
|
4601
4603
|
exports.composeScalar = composeScalar;
|
|
4602
4604
|
});
|
|
4603
|
-
var require_util_empty_scalar_position = __commonJS2((exports)
|
|
4605
|
+
var require_util_empty_scalar_position = __commonJS2(function(exports) {
|
|
4604
4606
|
function emptyScalarPosition(offset, before, pos) {
|
|
4605
4607
|
if (before) {
|
|
4606
4608
|
pos ?? (pos = before.length);
|
|
@@ -4625,7 +4627,7 @@ var require_util_empty_scalar_position = __commonJS2((exports) => {
|
|
|
4625
4627
|
}
|
|
4626
4628
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4627
4629
|
});
|
|
4628
|
-
var require_compose_node = __commonJS2((exports)
|
|
4630
|
+
var require_compose_node = __commonJS2(function(exports) {
|
|
4629
4631
|
var Alias = require_Alias();
|
|
4630
4632
|
var identity = require_identity();
|
|
4631
4633
|
var composeCollection = require_compose_collection();
|
|
@@ -4726,7 +4728,7 @@ var require_compose_node = __commonJS2((exports) => {
|
|
|
4726
4728
|
exports.composeEmptyNode = composeEmptyNode;
|
|
4727
4729
|
exports.composeNode = composeNode;
|
|
4728
4730
|
});
|
|
4729
|
-
var require_compose_doc = __commonJS2((exports)
|
|
4731
|
+
var require_compose_doc = __commonJS2(function(exports) {
|
|
4730
4732
|
var Document = require_Document();
|
|
4731
4733
|
var composeNode = require_compose_node();
|
|
4732
4734
|
var resolveEnd = require_resolve_end();
|
|
@@ -4764,7 +4766,7 @@ var require_compose_doc = __commonJS2((exports) => {
|
|
|
4764
4766
|
}
|
|
4765
4767
|
exports.composeDoc = composeDoc;
|
|
4766
4768
|
});
|
|
4767
|
-
var require_composer = __commonJS2((exports)
|
|
4769
|
+
var require_composer = __commonJS2(function(exports) {
|
|
4768
4770
|
var node_process = __require("process");
|
|
4769
4771
|
var directives = require_directives();
|
|
4770
4772
|
var Document = require_Document();
|
|
@@ -4953,7 +4955,7 @@ ${end.comment}` : end.comment;
|
|
|
4953
4955
|
}
|
|
4954
4956
|
exports.Composer = Composer;
|
|
4955
4957
|
});
|
|
4956
|
-
var require_cst_scalar = __commonJS2((exports)
|
|
4958
|
+
var require_cst_scalar = __commonJS2(function(exports) {
|
|
4957
4959
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4958
4960
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
4959
4961
|
var errors = require_errors();
|
|
@@ -5141,7 +5143,7 @@ var require_cst_scalar = __commonJS2((exports) => {
|
|
|
5141
5143
|
exports.resolveAsScalar = resolveAsScalar;
|
|
5142
5144
|
exports.setScalarValue = setScalarValue;
|
|
5143
5145
|
});
|
|
5144
|
-
var require_cst_stringify = __commonJS2((exports)
|
|
5146
|
+
var require_cst_stringify = __commonJS2(function(exports) {
|
|
5145
5147
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5146
5148
|
function stringifyToken(token) {
|
|
5147
5149
|
switch (token.type) {
|
|
@@ -5197,7 +5199,7 @@ var require_cst_stringify = __commonJS2((exports) => {
|
|
|
5197
5199
|
}
|
|
5198
5200
|
exports.stringify = stringify;
|
|
5199
5201
|
});
|
|
5200
|
-
var require_cst_visit = __commonJS2((exports)
|
|
5202
|
+
var require_cst_visit = __commonJS2(function(exports) {
|
|
5201
5203
|
var BREAK = Symbol("break visit");
|
|
5202
5204
|
var SKIP = Symbol("skip children");
|
|
5203
5205
|
var REMOVE = Symbol("remove item");
|
|
@@ -5254,7 +5256,7 @@ var require_cst_visit = __commonJS2((exports) => {
|
|
|
5254
5256
|
}
|
|
5255
5257
|
exports.visit = visit;
|
|
5256
5258
|
});
|
|
5257
|
-
var require_cst = __commonJS2((exports)
|
|
5259
|
+
var require_cst = __commonJS2(function(exports) {
|
|
5258
5260
|
var cstScalar = require_cst_scalar();
|
|
5259
5261
|
var cstStringify = require_cst_stringify();
|
|
5260
5262
|
var cstVisit = require_cst_visit();
|
|
@@ -5353,7 +5355,7 @@ var require_cst = __commonJS2((exports) => {
|
|
|
5353
5355
|
exports.prettyToken = prettyToken;
|
|
5354
5356
|
exports.tokenType = tokenType;
|
|
5355
5357
|
});
|
|
5356
|
-
var require_lexer = __commonJS2((exports)
|
|
5358
|
+
var require_lexer = __commonJS2(function(exports) {
|
|
5357
5359
|
var cst = require_cst();
|
|
5358
5360
|
function isEmpty(ch) {
|
|
5359
5361
|
switch (ch) {
|
|
@@ -5948,7 +5950,7 @@ var require_lexer = __commonJS2((exports) => {
|
|
|
5948
5950
|
}
|
|
5949
5951
|
exports.Lexer = Lexer;
|
|
5950
5952
|
});
|
|
5951
|
-
var require_line_counter = __commonJS2((exports)
|
|
5953
|
+
var require_line_counter = __commonJS2(function(exports) {
|
|
5952
5954
|
|
|
5953
5955
|
class LineCounter {
|
|
5954
5956
|
constructor() {
|
|
@@ -5975,7 +5977,7 @@ var require_line_counter = __commonJS2((exports) => {
|
|
|
5975
5977
|
}
|
|
5976
5978
|
exports.LineCounter = LineCounter;
|
|
5977
5979
|
});
|
|
5978
|
-
var require_parser = __commonJS2((exports)
|
|
5980
|
+
var require_parser = __commonJS2(function(exports) {
|
|
5979
5981
|
var node_process = __require("process");
|
|
5980
5982
|
var cst = require_cst();
|
|
5981
5983
|
var lexer = require_lexer();
|
|
@@ -6829,7 +6831,7 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6829
6831
|
}
|
|
6830
6832
|
exports.Parser = Parser;
|
|
6831
6833
|
});
|
|
6832
|
-
var require_public_api = __commonJS2((exports)
|
|
6834
|
+
var require_public_api = __commonJS2(function(exports) {
|
|
6833
6835
|
var composer = require_composer();
|
|
6834
6836
|
var Document = require_Document();
|
|
6835
6837
|
var errors = require_errors();
|
|
@@ -6921,7 +6923,7 @@ var require_public_api = __commonJS2((exports) => {
|
|
|
6921
6923
|
exports.parseDocument = parseDocument;
|
|
6922
6924
|
exports.stringify = stringify;
|
|
6923
6925
|
});
|
|
6924
|
-
var require_dist = __commonJS2((exports)
|
|
6926
|
+
var require_dist = __commonJS2(function(exports) {
|
|
6925
6927
|
var composer = require_composer();
|
|
6926
6928
|
var Document = require_Document();
|
|
6927
6929
|
var Schema = require_Schema();
|
|
@@ -6968,715 +6970,6 @@ var require_dist = __commonJS2((exports) => {
|
|
|
6968
6970
|
exports.visit = visit.visit;
|
|
6969
6971
|
exports.visitAsync = visit.visitAsync;
|
|
6970
6972
|
});
|
|
6971
|
-
var require_keyring_linux_x64_musl = __commonJS2((exports, module) => {
|
|
6972
|
-
module.exports = __require("./keyring.linux-x64-musl-gxd42x54.node");
|
|
6973
|
-
});
|
|
6974
|
-
var require_package = __commonJS2((exports, module) => {
|
|
6975
|
-
module.exports = {
|
|
6976
|
-
name: "@napi-rs/keyring-linux-x64-musl",
|
|
6977
|
-
version: "1.3.0",
|
|
6978
|
-
cpu: [
|
|
6979
|
-
"x64"
|
|
6980
|
-
],
|
|
6981
|
-
main: "keyring.linux-x64-musl.node",
|
|
6982
|
-
files: [
|
|
6983
|
-
"keyring.linux-x64-musl.node"
|
|
6984
|
-
],
|
|
6985
|
-
description: "https://github.com/hwchen/keyring-rs Node.js binding via https://napi.rs",
|
|
6986
|
-
keywords: [
|
|
6987
|
-
"napi-rs",
|
|
6988
|
-
"NAPI",
|
|
6989
|
-
"N-API",
|
|
6990
|
-
"Rust",
|
|
6991
|
-
"node-addon",
|
|
6992
|
-
"node-addon-api"
|
|
6993
|
-
],
|
|
6994
|
-
license: "MIT",
|
|
6995
|
-
engines: {
|
|
6996
|
-
node: ">= 10"
|
|
6997
|
-
},
|
|
6998
|
-
repository: "https://github.com/Brooooooklyn/keyring-node",
|
|
6999
|
-
publishConfig: {
|
|
7000
|
-
registry: "https://registry.npmjs.org/",
|
|
7001
|
-
access: "public"
|
|
7002
|
-
},
|
|
7003
|
-
os: [
|
|
7004
|
-
"linux"
|
|
7005
|
-
],
|
|
7006
|
-
libc: [
|
|
7007
|
-
"musl"
|
|
7008
|
-
]
|
|
7009
|
-
};
|
|
7010
|
-
});
|
|
7011
|
-
var require_keyring_linux_x64_gnu = __commonJS2((exports, module) => {
|
|
7012
|
-
module.exports = __require("./keyring.linux-x64-gnu-0wbgnj90.node");
|
|
7013
|
-
});
|
|
7014
|
-
var require_package2 = __commonJS2((exports, module) => {
|
|
7015
|
-
module.exports = {
|
|
7016
|
-
name: "@napi-rs/keyring-linux-x64-gnu",
|
|
7017
|
-
version: "1.3.0",
|
|
7018
|
-
cpu: [
|
|
7019
|
-
"x64"
|
|
7020
|
-
],
|
|
7021
|
-
main: "keyring.linux-x64-gnu.node",
|
|
7022
|
-
files: [
|
|
7023
|
-
"keyring.linux-x64-gnu.node"
|
|
7024
|
-
],
|
|
7025
|
-
description: "https://github.com/hwchen/keyring-rs Node.js binding via https://napi.rs",
|
|
7026
|
-
keywords: [
|
|
7027
|
-
"napi-rs",
|
|
7028
|
-
"NAPI",
|
|
7029
|
-
"N-API",
|
|
7030
|
-
"Rust",
|
|
7031
|
-
"node-addon",
|
|
7032
|
-
"node-addon-api"
|
|
7033
|
-
],
|
|
7034
|
-
license: "MIT",
|
|
7035
|
-
engines: {
|
|
7036
|
-
node: ">= 10"
|
|
7037
|
-
},
|
|
7038
|
-
repository: "https://github.com/Brooooooklyn/keyring-node",
|
|
7039
|
-
publishConfig: {
|
|
7040
|
-
registry: "https://registry.npmjs.org/",
|
|
7041
|
-
access: "public"
|
|
7042
|
-
},
|
|
7043
|
-
os: [
|
|
7044
|
-
"linux"
|
|
7045
|
-
],
|
|
7046
|
-
libc: [
|
|
7047
|
-
"glibc"
|
|
7048
|
-
]
|
|
7049
|
-
};
|
|
7050
|
-
});
|
|
7051
|
-
var require_keyring = __commonJS2((exports, module) => {
|
|
7052
|
-
var __filename2 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
|
|
7053
|
-
var { createRequire: createRequire22 } = __require("node:module");
|
|
7054
|
-
__require = createRequire22(__filename2);
|
|
7055
|
-
var { readFileSync: readFileSync3 } = __require("node:fs");
|
|
7056
|
-
var nativeBinding = null;
|
|
7057
|
-
var loadErrors = [];
|
|
7058
|
-
var isMusl = () => {
|
|
7059
|
-
let musl = false;
|
|
7060
|
-
if (process.platform === "linux") {
|
|
7061
|
-
musl = isMuslFromFilesystem();
|
|
7062
|
-
if (musl === null) {
|
|
7063
|
-
musl = isMuslFromReport();
|
|
7064
|
-
}
|
|
7065
|
-
if (musl === null) {
|
|
7066
|
-
musl = isMuslFromChildProcess();
|
|
7067
|
-
}
|
|
7068
|
-
}
|
|
7069
|
-
return musl;
|
|
7070
|
-
};
|
|
7071
|
-
var isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
7072
|
-
var isMuslFromFilesystem = () => {
|
|
7073
|
-
try {
|
|
7074
|
-
return readFileSync3("/usr/bin/ldd", "utf-8").includes("musl");
|
|
7075
|
-
} catch {
|
|
7076
|
-
return null;
|
|
7077
|
-
}
|
|
7078
|
-
};
|
|
7079
|
-
var isMuslFromReport = () => {
|
|
7080
|
-
let report = null;
|
|
7081
|
-
if (typeof process.report?.getReport === "function") {
|
|
7082
|
-
process.report.excludeNetwork = true;
|
|
7083
|
-
report = process.report.getReport();
|
|
7084
|
-
}
|
|
7085
|
-
if (!report) {
|
|
7086
|
-
return null;
|
|
7087
|
-
}
|
|
7088
|
-
if (report.header && report.header.glibcVersionRuntime) {
|
|
7089
|
-
return false;
|
|
7090
|
-
}
|
|
7091
|
-
if (Array.isArray(report.sharedObjects)) {
|
|
7092
|
-
if (report.sharedObjects.some(isFileMusl)) {
|
|
7093
|
-
return true;
|
|
7094
|
-
}
|
|
7095
|
-
}
|
|
7096
|
-
return false;
|
|
7097
|
-
};
|
|
7098
|
-
var isMuslFromChildProcess = () => {
|
|
7099
|
-
try {
|
|
7100
|
-
return __require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
|
|
7101
|
-
} catch (e) {
|
|
7102
|
-
return false;
|
|
7103
|
-
}
|
|
7104
|
-
};
|
|
7105
|
-
function requireNative() {
|
|
7106
|
-
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
7107
|
-
try {
|
|
7108
|
-
nativeBinding = __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
7109
|
-
} catch (err) {
|
|
7110
|
-
loadErrors.push(err);
|
|
7111
|
-
}
|
|
7112
|
-
} else if (process.platform === "android") {
|
|
7113
|
-
if (process.arch === "arm64") {
|
|
7114
|
-
try {
|
|
7115
|
-
return (() => {
|
|
7116
|
-
throw new Error("Cannot require module " + "./keyring.android-arm64.node");
|
|
7117
|
-
})();
|
|
7118
|
-
} catch (e) {
|
|
7119
|
-
loadErrors.push(e);
|
|
7120
|
-
}
|
|
7121
|
-
try {
|
|
7122
|
-
const binding = (() => {
|
|
7123
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-android-arm64");
|
|
7124
|
-
})();
|
|
7125
|
-
const bindingPackageVersion = (() => {
|
|
7126
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-android-arm64/package.json");
|
|
7127
|
-
})().version;
|
|
7128
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7129
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7130
|
-
}
|
|
7131
|
-
return binding;
|
|
7132
|
-
} catch (e) {
|
|
7133
|
-
loadErrors.push(e);
|
|
7134
|
-
}
|
|
7135
|
-
} else if (process.arch === "arm") {
|
|
7136
|
-
try {
|
|
7137
|
-
return (() => {
|
|
7138
|
-
throw new Error("Cannot require module " + "./keyring.android-arm-eabi.node");
|
|
7139
|
-
})();
|
|
7140
|
-
} catch (e) {
|
|
7141
|
-
loadErrors.push(e);
|
|
7142
|
-
}
|
|
7143
|
-
try {
|
|
7144
|
-
const binding = (() => {
|
|
7145
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-android-arm-eabi");
|
|
7146
|
-
})();
|
|
7147
|
-
const bindingPackageVersion = (() => {
|
|
7148
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-android-arm-eabi/package.json");
|
|
7149
|
-
})().version;
|
|
7150
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7151
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7152
|
-
}
|
|
7153
|
-
return binding;
|
|
7154
|
-
} catch (e) {
|
|
7155
|
-
loadErrors.push(e);
|
|
7156
|
-
}
|
|
7157
|
-
} else {
|
|
7158
|
-
loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
7159
|
-
}
|
|
7160
|
-
} else if (process.platform === "win32") {
|
|
7161
|
-
if (process.arch === "x64") {
|
|
7162
|
-
try {
|
|
7163
|
-
return (() => {
|
|
7164
|
-
throw new Error("Cannot require module " + "./keyring.win32-x64-msvc.node");
|
|
7165
|
-
})();
|
|
7166
|
-
} catch (e) {
|
|
7167
|
-
loadErrors.push(e);
|
|
7168
|
-
}
|
|
7169
|
-
try {
|
|
7170
|
-
const binding = (() => {
|
|
7171
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-x64-msvc");
|
|
7172
|
-
})();
|
|
7173
|
-
const bindingPackageVersion = (() => {
|
|
7174
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-x64-msvc/package.json");
|
|
7175
|
-
})().version;
|
|
7176
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7177
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7178
|
-
}
|
|
7179
|
-
return binding;
|
|
7180
|
-
} catch (e) {
|
|
7181
|
-
loadErrors.push(e);
|
|
7182
|
-
}
|
|
7183
|
-
} else if (process.arch === "ia32") {
|
|
7184
|
-
try {
|
|
7185
|
-
return (() => {
|
|
7186
|
-
throw new Error("Cannot require module " + "./keyring.win32-ia32-msvc.node");
|
|
7187
|
-
})();
|
|
7188
|
-
} catch (e) {
|
|
7189
|
-
loadErrors.push(e);
|
|
7190
|
-
}
|
|
7191
|
-
try {
|
|
7192
|
-
const binding = (() => {
|
|
7193
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-ia32-msvc");
|
|
7194
|
-
})();
|
|
7195
|
-
const bindingPackageVersion = (() => {
|
|
7196
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-ia32-msvc/package.json");
|
|
7197
|
-
})().version;
|
|
7198
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7199
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7200
|
-
}
|
|
7201
|
-
return binding;
|
|
7202
|
-
} catch (e) {
|
|
7203
|
-
loadErrors.push(e);
|
|
7204
|
-
}
|
|
7205
|
-
} else if (process.arch === "arm64") {
|
|
7206
|
-
try {
|
|
7207
|
-
return (() => {
|
|
7208
|
-
throw new Error("Cannot require module " + "./keyring.win32-arm64-msvc.node");
|
|
7209
|
-
})();
|
|
7210
|
-
} catch (e) {
|
|
7211
|
-
loadErrors.push(e);
|
|
7212
|
-
}
|
|
7213
|
-
try {
|
|
7214
|
-
const binding = (() => {
|
|
7215
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-arm64-msvc");
|
|
7216
|
-
})();
|
|
7217
|
-
const bindingPackageVersion = (() => {
|
|
7218
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-win32-arm64-msvc/package.json");
|
|
7219
|
-
})().version;
|
|
7220
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7221
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7222
|
-
}
|
|
7223
|
-
return binding;
|
|
7224
|
-
} catch (e) {
|
|
7225
|
-
loadErrors.push(e);
|
|
7226
|
-
}
|
|
7227
|
-
} else {
|
|
7228
|
-
loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
7229
|
-
}
|
|
7230
|
-
} else if (process.platform === "darwin") {
|
|
7231
|
-
try {
|
|
7232
|
-
return (() => {
|
|
7233
|
-
throw new Error("Cannot require module " + "./keyring.darwin-universal.node");
|
|
7234
|
-
})();
|
|
7235
|
-
} catch (e) {
|
|
7236
|
-
loadErrors.push(e);
|
|
7237
|
-
}
|
|
7238
|
-
try {
|
|
7239
|
-
const binding = (() => {
|
|
7240
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-universal");
|
|
7241
|
-
})();
|
|
7242
|
-
const bindingPackageVersion = (() => {
|
|
7243
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-universal/package.json");
|
|
7244
|
-
})().version;
|
|
7245
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7246
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7247
|
-
}
|
|
7248
|
-
return binding;
|
|
7249
|
-
} catch (e) {
|
|
7250
|
-
loadErrors.push(e);
|
|
7251
|
-
}
|
|
7252
|
-
if (process.arch === "x64") {
|
|
7253
|
-
try {
|
|
7254
|
-
return (() => {
|
|
7255
|
-
throw new Error("Cannot require module " + "./keyring.darwin-x64.node");
|
|
7256
|
-
})();
|
|
7257
|
-
} catch (e) {
|
|
7258
|
-
loadErrors.push(e);
|
|
7259
|
-
}
|
|
7260
|
-
try {
|
|
7261
|
-
const binding = (() => {
|
|
7262
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-x64");
|
|
7263
|
-
})();
|
|
7264
|
-
const bindingPackageVersion = (() => {
|
|
7265
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-x64/package.json");
|
|
7266
|
-
})().version;
|
|
7267
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7268
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7269
|
-
}
|
|
7270
|
-
return binding;
|
|
7271
|
-
} catch (e) {
|
|
7272
|
-
loadErrors.push(e);
|
|
7273
|
-
}
|
|
7274
|
-
} else if (process.arch === "arm64") {
|
|
7275
|
-
try {
|
|
7276
|
-
return (() => {
|
|
7277
|
-
throw new Error("Cannot require module " + "./keyring.darwin-arm64.node");
|
|
7278
|
-
})();
|
|
7279
|
-
} catch (e) {
|
|
7280
|
-
loadErrors.push(e);
|
|
7281
|
-
}
|
|
7282
|
-
try {
|
|
7283
|
-
const binding = (() => {
|
|
7284
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-arm64");
|
|
7285
|
-
})();
|
|
7286
|
-
const bindingPackageVersion = (() => {
|
|
7287
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-darwin-arm64/package.json");
|
|
7288
|
-
})().version;
|
|
7289
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7290
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7291
|
-
}
|
|
7292
|
-
return binding;
|
|
7293
|
-
} catch (e) {
|
|
7294
|
-
loadErrors.push(e);
|
|
7295
|
-
}
|
|
7296
|
-
} else {
|
|
7297
|
-
loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
7298
|
-
}
|
|
7299
|
-
} else if (process.platform === "freebsd") {
|
|
7300
|
-
if (process.arch === "x64") {
|
|
7301
|
-
try {
|
|
7302
|
-
return (() => {
|
|
7303
|
-
throw new Error("Cannot require module " + "./keyring.freebsd-x64.node");
|
|
7304
|
-
})();
|
|
7305
|
-
} catch (e) {
|
|
7306
|
-
loadErrors.push(e);
|
|
7307
|
-
}
|
|
7308
|
-
try {
|
|
7309
|
-
const binding = (() => {
|
|
7310
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-freebsd-x64");
|
|
7311
|
-
})();
|
|
7312
|
-
const bindingPackageVersion = (() => {
|
|
7313
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-freebsd-x64/package.json");
|
|
7314
|
-
})().version;
|
|
7315
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7316
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7317
|
-
}
|
|
7318
|
-
return binding;
|
|
7319
|
-
} catch (e) {
|
|
7320
|
-
loadErrors.push(e);
|
|
7321
|
-
}
|
|
7322
|
-
} else if (process.arch === "arm64") {
|
|
7323
|
-
try {
|
|
7324
|
-
return (() => {
|
|
7325
|
-
throw new Error("Cannot require module " + "./keyring.freebsd-arm64.node");
|
|
7326
|
-
})();
|
|
7327
|
-
} catch (e) {
|
|
7328
|
-
loadErrors.push(e);
|
|
7329
|
-
}
|
|
7330
|
-
try {
|
|
7331
|
-
const binding = (() => {
|
|
7332
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-freebsd-arm64");
|
|
7333
|
-
})();
|
|
7334
|
-
const bindingPackageVersion = (() => {
|
|
7335
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-freebsd-arm64/package.json");
|
|
7336
|
-
})().version;
|
|
7337
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7338
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7339
|
-
}
|
|
7340
|
-
return binding;
|
|
7341
|
-
} catch (e) {
|
|
7342
|
-
loadErrors.push(e);
|
|
7343
|
-
}
|
|
7344
|
-
} else {
|
|
7345
|
-
loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
7346
|
-
}
|
|
7347
|
-
} else if (process.platform === "linux") {
|
|
7348
|
-
if (process.arch === "x64") {
|
|
7349
|
-
if (isMusl()) {
|
|
7350
|
-
try {
|
|
7351
|
-
return (() => {
|
|
7352
|
-
throw new Error("Cannot require module " + "./keyring.linux-x64-musl.node");
|
|
7353
|
-
})();
|
|
7354
|
-
} catch (e) {
|
|
7355
|
-
loadErrors.push(e);
|
|
7356
|
-
}
|
|
7357
|
-
try {
|
|
7358
|
-
const binding = require_keyring_linux_x64_musl();
|
|
7359
|
-
const bindingPackageVersion = require_package().version;
|
|
7360
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7361
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7362
|
-
}
|
|
7363
|
-
return binding;
|
|
7364
|
-
} catch (e) {
|
|
7365
|
-
loadErrors.push(e);
|
|
7366
|
-
}
|
|
7367
|
-
} else {
|
|
7368
|
-
try {
|
|
7369
|
-
return (() => {
|
|
7370
|
-
throw new Error("Cannot require module " + "./keyring.linux-x64-gnu.node");
|
|
7371
|
-
})();
|
|
7372
|
-
} catch (e) {
|
|
7373
|
-
loadErrors.push(e);
|
|
7374
|
-
}
|
|
7375
|
-
try {
|
|
7376
|
-
const binding = require_keyring_linux_x64_gnu();
|
|
7377
|
-
const bindingPackageVersion = require_package2().version;
|
|
7378
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7379
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7380
|
-
}
|
|
7381
|
-
return binding;
|
|
7382
|
-
} catch (e) {
|
|
7383
|
-
loadErrors.push(e);
|
|
7384
|
-
}
|
|
7385
|
-
}
|
|
7386
|
-
} else if (process.arch === "arm64") {
|
|
7387
|
-
if (isMusl()) {
|
|
7388
|
-
try {
|
|
7389
|
-
return (() => {
|
|
7390
|
-
throw new Error("Cannot require module " + "./keyring.linux-arm64-musl.node");
|
|
7391
|
-
})();
|
|
7392
|
-
} catch (e) {
|
|
7393
|
-
loadErrors.push(e);
|
|
7394
|
-
}
|
|
7395
|
-
try {
|
|
7396
|
-
const binding = (() => {
|
|
7397
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm64-musl");
|
|
7398
|
-
})();
|
|
7399
|
-
const bindingPackageVersion = (() => {
|
|
7400
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm64-musl/package.json");
|
|
7401
|
-
})().version;
|
|
7402
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7403
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7404
|
-
}
|
|
7405
|
-
return binding;
|
|
7406
|
-
} catch (e) {
|
|
7407
|
-
loadErrors.push(e);
|
|
7408
|
-
}
|
|
7409
|
-
} else {
|
|
7410
|
-
try {
|
|
7411
|
-
return (() => {
|
|
7412
|
-
throw new Error("Cannot require module " + "./keyring.linux-arm64-gnu.node");
|
|
7413
|
-
})();
|
|
7414
|
-
} catch (e) {
|
|
7415
|
-
loadErrors.push(e);
|
|
7416
|
-
}
|
|
7417
|
-
try {
|
|
7418
|
-
const binding = (() => {
|
|
7419
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm64-gnu");
|
|
7420
|
-
})();
|
|
7421
|
-
const bindingPackageVersion = (() => {
|
|
7422
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm64-gnu/package.json");
|
|
7423
|
-
})().version;
|
|
7424
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7425
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7426
|
-
}
|
|
7427
|
-
return binding;
|
|
7428
|
-
} catch (e) {
|
|
7429
|
-
loadErrors.push(e);
|
|
7430
|
-
}
|
|
7431
|
-
}
|
|
7432
|
-
} else if (process.arch === "arm") {
|
|
7433
|
-
if (isMusl()) {
|
|
7434
|
-
try {
|
|
7435
|
-
return (() => {
|
|
7436
|
-
throw new Error("Cannot require module " + "./keyring.linux-arm-musleabihf.node");
|
|
7437
|
-
})();
|
|
7438
|
-
} catch (e) {
|
|
7439
|
-
loadErrors.push(e);
|
|
7440
|
-
}
|
|
7441
|
-
try {
|
|
7442
|
-
const binding = (() => {
|
|
7443
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm-musleabihf");
|
|
7444
|
-
})();
|
|
7445
|
-
const bindingPackageVersion = (() => {
|
|
7446
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm-musleabihf/package.json");
|
|
7447
|
-
})().version;
|
|
7448
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7449
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7450
|
-
}
|
|
7451
|
-
return binding;
|
|
7452
|
-
} catch (e) {
|
|
7453
|
-
loadErrors.push(e);
|
|
7454
|
-
}
|
|
7455
|
-
} else {
|
|
7456
|
-
try {
|
|
7457
|
-
return (() => {
|
|
7458
|
-
throw new Error("Cannot require module " + "./keyring.linux-arm-gnueabihf.node");
|
|
7459
|
-
})();
|
|
7460
|
-
} catch (e) {
|
|
7461
|
-
loadErrors.push(e);
|
|
7462
|
-
}
|
|
7463
|
-
try {
|
|
7464
|
-
const binding = (() => {
|
|
7465
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm-gnueabihf");
|
|
7466
|
-
})();
|
|
7467
|
-
const bindingPackageVersion = (() => {
|
|
7468
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-arm-gnueabihf/package.json");
|
|
7469
|
-
})().version;
|
|
7470
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7471
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7472
|
-
}
|
|
7473
|
-
return binding;
|
|
7474
|
-
} catch (e) {
|
|
7475
|
-
loadErrors.push(e);
|
|
7476
|
-
}
|
|
7477
|
-
}
|
|
7478
|
-
} else if (process.arch === "riscv64") {
|
|
7479
|
-
if (isMusl()) {
|
|
7480
|
-
try {
|
|
7481
|
-
return (() => {
|
|
7482
|
-
throw new Error("Cannot require module " + "./keyring.linux-riscv64-musl.node");
|
|
7483
|
-
})();
|
|
7484
|
-
} catch (e) {
|
|
7485
|
-
loadErrors.push(e);
|
|
7486
|
-
}
|
|
7487
|
-
try {
|
|
7488
|
-
const binding = (() => {
|
|
7489
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-riscv64-musl");
|
|
7490
|
-
})();
|
|
7491
|
-
const bindingPackageVersion = (() => {
|
|
7492
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-riscv64-musl/package.json");
|
|
7493
|
-
})().version;
|
|
7494
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7495
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7496
|
-
}
|
|
7497
|
-
return binding;
|
|
7498
|
-
} catch (e) {
|
|
7499
|
-
loadErrors.push(e);
|
|
7500
|
-
}
|
|
7501
|
-
} else {
|
|
7502
|
-
try {
|
|
7503
|
-
return (() => {
|
|
7504
|
-
throw new Error("Cannot require module " + "./keyring.linux-riscv64-gnu.node");
|
|
7505
|
-
})();
|
|
7506
|
-
} catch (e) {
|
|
7507
|
-
loadErrors.push(e);
|
|
7508
|
-
}
|
|
7509
|
-
try {
|
|
7510
|
-
const binding = (() => {
|
|
7511
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-riscv64-gnu");
|
|
7512
|
-
})();
|
|
7513
|
-
const bindingPackageVersion = (() => {
|
|
7514
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-riscv64-gnu/package.json");
|
|
7515
|
-
})().version;
|
|
7516
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7517
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7518
|
-
}
|
|
7519
|
-
return binding;
|
|
7520
|
-
} catch (e) {
|
|
7521
|
-
loadErrors.push(e);
|
|
7522
|
-
}
|
|
7523
|
-
}
|
|
7524
|
-
} else if (process.arch === "ppc64") {
|
|
7525
|
-
try {
|
|
7526
|
-
return (() => {
|
|
7527
|
-
throw new Error("Cannot require module " + "./keyring.linux-ppc64-gnu.node");
|
|
7528
|
-
})();
|
|
7529
|
-
} catch (e) {
|
|
7530
|
-
loadErrors.push(e);
|
|
7531
|
-
}
|
|
7532
|
-
try {
|
|
7533
|
-
const binding = (() => {
|
|
7534
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-ppc64-gnu");
|
|
7535
|
-
})();
|
|
7536
|
-
const bindingPackageVersion = (() => {
|
|
7537
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-ppc64-gnu/package.json");
|
|
7538
|
-
})().version;
|
|
7539
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7540
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7541
|
-
}
|
|
7542
|
-
return binding;
|
|
7543
|
-
} catch (e) {
|
|
7544
|
-
loadErrors.push(e);
|
|
7545
|
-
}
|
|
7546
|
-
} else if (process.arch === "s390x") {
|
|
7547
|
-
try {
|
|
7548
|
-
return (() => {
|
|
7549
|
-
throw new Error("Cannot require module " + "./keyring.linux-s390x-gnu.node");
|
|
7550
|
-
})();
|
|
7551
|
-
} catch (e) {
|
|
7552
|
-
loadErrors.push(e);
|
|
7553
|
-
}
|
|
7554
|
-
try {
|
|
7555
|
-
const binding = (() => {
|
|
7556
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-s390x-gnu");
|
|
7557
|
-
})();
|
|
7558
|
-
const bindingPackageVersion = (() => {
|
|
7559
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-linux-s390x-gnu/package.json");
|
|
7560
|
-
})().version;
|
|
7561
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7562
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7563
|
-
}
|
|
7564
|
-
return binding;
|
|
7565
|
-
} catch (e) {
|
|
7566
|
-
loadErrors.push(e);
|
|
7567
|
-
}
|
|
7568
|
-
} else {
|
|
7569
|
-
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
7570
|
-
}
|
|
7571
|
-
} else if (process.platform === "openharmony") {
|
|
7572
|
-
if (process.arch === "arm64") {
|
|
7573
|
-
try {
|
|
7574
|
-
return (() => {
|
|
7575
|
-
throw new Error("Cannot require module " + "./keyring.openharmony-arm64.node");
|
|
7576
|
-
})();
|
|
7577
|
-
} catch (e) {
|
|
7578
|
-
loadErrors.push(e);
|
|
7579
|
-
}
|
|
7580
|
-
try {
|
|
7581
|
-
const binding = (() => {
|
|
7582
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-arm64");
|
|
7583
|
-
})();
|
|
7584
|
-
const bindingPackageVersion = (() => {
|
|
7585
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-arm64/package.json");
|
|
7586
|
-
})().version;
|
|
7587
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7588
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7589
|
-
}
|
|
7590
|
-
return binding;
|
|
7591
|
-
} catch (e) {
|
|
7592
|
-
loadErrors.push(e);
|
|
7593
|
-
}
|
|
7594
|
-
} else if (process.arch === "x64") {
|
|
7595
|
-
try {
|
|
7596
|
-
return (() => {
|
|
7597
|
-
throw new Error("Cannot require module " + "./keyring.openharmony-x64.node");
|
|
7598
|
-
})();
|
|
7599
|
-
} catch (e) {
|
|
7600
|
-
loadErrors.push(e);
|
|
7601
|
-
}
|
|
7602
|
-
try {
|
|
7603
|
-
const binding = (() => {
|
|
7604
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-x64");
|
|
7605
|
-
})();
|
|
7606
|
-
const bindingPackageVersion = (() => {
|
|
7607
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-x64/package.json");
|
|
7608
|
-
})().version;
|
|
7609
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7610
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7611
|
-
}
|
|
7612
|
-
return binding;
|
|
7613
|
-
} catch (e) {
|
|
7614
|
-
loadErrors.push(e);
|
|
7615
|
-
}
|
|
7616
|
-
} else if (process.arch === "arm") {
|
|
7617
|
-
try {
|
|
7618
|
-
return (() => {
|
|
7619
|
-
throw new Error("Cannot require module " + "./keyring.openharmony-arm.node");
|
|
7620
|
-
})();
|
|
7621
|
-
} catch (e) {
|
|
7622
|
-
loadErrors.push(e);
|
|
7623
|
-
}
|
|
7624
|
-
try {
|
|
7625
|
-
const binding = (() => {
|
|
7626
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-arm");
|
|
7627
|
-
})();
|
|
7628
|
-
const bindingPackageVersion = (() => {
|
|
7629
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-openharmony-arm/package.json");
|
|
7630
|
-
})().version;
|
|
7631
|
-
if (bindingPackageVersion !== "1.3.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
7632
|
-
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
7633
|
-
}
|
|
7634
|
-
return binding;
|
|
7635
|
-
} catch (e) {
|
|
7636
|
-
loadErrors.push(e);
|
|
7637
|
-
}
|
|
7638
|
-
} else {
|
|
7639
|
-
loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
7640
|
-
}
|
|
7641
|
-
} else {
|
|
7642
|
-
loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
7643
|
-
}
|
|
7644
|
-
}
|
|
7645
|
-
nativeBinding = requireNative();
|
|
7646
|
-
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
7647
|
-
try {
|
|
7648
|
-
nativeBinding = (() => {
|
|
7649
|
-
throw new Error("Cannot require module " + "./keyring.wasi.cjs");
|
|
7650
|
-
})();
|
|
7651
|
-
} catch (err) {
|
|
7652
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
7653
|
-
loadErrors.push(err);
|
|
7654
|
-
}
|
|
7655
|
-
}
|
|
7656
|
-
if (!nativeBinding) {
|
|
7657
|
-
try {
|
|
7658
|
-
nativeBinding = (() => {
|
|
7659
|
-
throw new Error("Cannot require module " + "@napi-rs/keyring-wasm32-wasi");
|
|
7660
|
-
})();
|
|
7661
|
-
} catch (err) {
|
|
7662
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
7663
|
-
loadErrors.push(err);
|
|
7664
|
-
}
|
|
7665
|
-
}
|
|
7666
|
-
}
|
|
7667
|
-
}
|
|
7668
|
-
if (!nativeBinding) {
|
|
7669
|
-
if (loadErrors.length > 0) {
|
|
7670
|
-
throw new Error(`Cannot find native binding. ` + `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` + "Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors });
|
|
7671
|
-
}
|
|
7672
|
-
throw new Error(`Failed to load native binding`);
|
|
7673
|
-
}
|
|
7674
|
-
module.exports = nativeBinding;
|
|
7675
|
-
module.exports.AsyncEntry = nativeBinding.AsyncEntry;
|
|
7676
|
-
module.exports.Entry = nativeBinding.Entry;
|
|
7677
|
-
module.exports.findCredentials = nativeBinding.findCredentials;
|
|
7678
|
-
module.exports.findCredentialsAsync = nativeBinding.findCredentialsAsync;
|
|
7679
|
-
});
|
|
7680
6973
|
async function A(A2 = {}) {
|
|
7681
6974
|
var I, g = A2, C = !!globalThis.window, B = !!globalThis.WorkerGlobalScope, Q = (globalThis.process?.versions?.node && globalThis.process, import.meta.url);
|
|
7682
6975
|
if (C || B) {
|
|
@@ -7894,26 +7187,26 @@ var init_libsodium = __esm(() => {
|
|
|
7894
7187
|
});
|
|
7895
7188
|
var exports_libsodium_wrappers = {};
|
|
7896
7189
|
__export(exports_libsodium_wrappers, {
|
|
7897
|
-
|
|
7898
|
-
to_string: () => g,
|
|
7899
|
-
to_hex: () => f,
|
|
7900
|
-
to_base64: () => E,
|
|
7901
|
-
symbols: () => c,
|
|
7902
|
-
ready: () => s,
|
|
7903
|
-
pad: () => u,
|
|
7904
|
-
output_formats: () => T,
|
|
7905
|
-
memzero: () => y,
|
|
7906
|
-
memcmp: () => i,
|
|
7907
|
-
libsodium: () => r,
|
|
7908
|
-
is_zero: () => h,
|
|
7909
|
-
increment: () => p,
|
|
7910
|
-
from_string: () => v,
|
|
7911
|
-
from_hex: () => b,
|
|
7912
|
-
from_base64: () => x,
|
|
7913
|
-
default: () => libsodium_wrappers_default,
|
|
7914
|
-
compare: () => l,
|
|
7190
|
+
add: () => o,
|
|
7915
7191
|
base64_variants: () => m,
|
|
7916
|
-
|
|
7192
|
+
compare: () => l,
|
|
7193
|
+
default: () => libsodium_wrappers_default,
|
|
7194
|
+
from_base64: () => x,
|
|
7195
|
+
from_hex: () => b,
|
|
7196
|
+
from_string: () => v,
|
|
7197
|
+
increment: () => p,
|
|
7198
|
+
is_zero: () => h,
|
|
7199
|
+
libsodium: () => r,
|
|
7200
|
+
memcmp: () => i,
|
|
7201
|
+
memzero: () => y,
|
|
7202
|
+
output_formats: () => T,
|
|
7203
|
+
pad: () => u,
|
|
7204
|
+
ready: () => s,
|
|
7205
|
+
symbols: () => c,
|
|
7206
|
+
to_base64: () => E,
|
|
7207
|
+
to_hex: () => f,
|
|
7208
|
+
to_string: () => g,
|
|
7209
|
+
unpad: () => d
|
|
7917
7210
|
});
|
|
7918
7211
|
function c() {
|
|
7919
7212
|
return Object.keys(t).sort();
|
|
@@ -11246,7 +10539,6 @@ var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, wit
|
|
|
11246
10539
|
Object.defineProperty(execFileHiddenImpl, promisify.custom, {
|
|
11247
10540
|
value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
|
|
11248
10541
|
});
|
|
11249
|
-
var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
|
|
11250
10542
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
|
|
11251
10543
|
var MEMORY_CONTENT_SAFETY_REASONS = [
|
|
11252
10544
|
"prompt_injection",
|
|
@@ -11413,6 +10705,52 @@ function up2(db) {
|
|
|
11413
10705
|
CREATE INDEX idx_memory_artifacts_agent_sha ON memory_artifacts(agent_id, source_sha256, COALESCE(source_id, ''), COALESCE(is_deleted, 0), captured_at DESC, source_path)
|
|
11414
10706
|
`);
|
|
11415
10707
|
}
|
|
10708
|
+
function addColumnIfMissing(db, column, definition) {
|
|
10709
|
+
const columns = db.prepare("PRAGMA table_info(transcript_capture_jobs)").all();
|
|
10710
|
+
if (columns.some((row) => row.name === column))
|
|
10711
|
+
return;
|
|
10712
|
+
db.exec(`ALTER TABLE transcript_capture_jobs ADD COLUMN ${column} ${definition}`);
|
|
10713
|
+
}
|
|
10714
|
+
function up3(db) {
|
|
10715
|
+
const table = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'transcript_capture_jobs'").get();
|
|
10716
|
+
if (!table?.present)
|
|
10717
|
+
return;
|
|
10718
|
+
addColumnIfMissing(db, "source_identity", "TEXT");
|
|
10719
|
+
addColumnIfMissing(db, "source_sha256", "TEXT");
|
|
10720
|
+
addColumnIfMissing(db, "source_size_bytes", "INTEGER");
|
|
10721
|
+
addColumnIfMissing(db, "source_mtime_ms", "REAL");
|
|
10722
|
+
addColumnIfMissing(db, "source_format", "TEXT");
|
|
10723
|
+
addColumnIfMissing(db, "audit_path", "TEXT");
|
|
10724
|
+
db.exec(`
|
|
10725
|
+
CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_source_identity
|
|
10726
|
+
ON transcript_capture_jobs(agent_id, source_identity, status);
|
|
10727
|
+
CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_source_digest
|
|
10728
|
+
ON transcript_capture_jobs(agent_id, source_sha256);
|
|
10729
|
+
`);
|
|
10730
|
+
}
|
|
10731
|
+
function up4(db) {
|
|
10732
|
+
db.exec(`
|
|
10733
|
+
CREATE TABLE IF NOT EXISTS source_sync_failures (
|
|
10734
|
+
agent_id TEXT NOT NULL,
|
|
10735
|
+
source_key TEXT NOT NULL,
|
|
10736
|
+
phase TEXT NOT NULL,
|
|
10737
|
+
item_path TEXT NOT NULL,
|
|
10738
|
+
fingerprint TEXT NOT NULL,
|
|
10739
|
+
failure_code TEXT NOT NULL,
|
|
10740
|
+
terminal INTEGER NOT NULL DEFAULT 1,
|
|
10741
|
+
diagnostic TEXT NOT NULL,
|
|
10742
|
+
attempt_count INTEGER NOT NULL DEFAULT 1,
|
|
10743
|
+
first_observed_at TEXT NOT NULL,
|
|
10744
|
+
last_observed_at TEXT NOT NULL,
|
|
10745
|
+
retry_after TEXT,
|
|
10746
|
+
resolved_at TEXT,
|
|
10747
|
+
PRIMARY KEY (agent_id, source_key, phase, item_path)
|
|
10748
|
+
);
|
|
10749
|
+
CREATE INDEX IF NOT EXISTS idx_source_sync_failures_active
|
|
10750
|
+
ON source_sync_failures(agent_id, source_key, phase, item_path)
|
|
10751
|
+
WHERE resolved_at IS NULL;
|
|
10752
|
+
`);
|
|
10753
|
+
}
|
|
11416
10754
|
var MEMORIES_FTS_TOKENIZER = "unicode61";
|
|
11417
10755
|
var FTS_STATE_TABLE = "memories_fts_state";
|
|
11418
10756
|
function normalizeSql(sql) {
|
|
@@ -11528,7 +10866,7 @@ function memoriesFtsNeedsTokenizerRepair(sql) {
|
|
|
11528
10866
|
return true;
|
|
11529
10867
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER}'`);
|
|
11530
10868
|
}
|
|
11531
|
-
function
|
|
10869
|
+
function up5(db) {
|
|
11532
10870
|
db.exec(`
|
|
11533
10871
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
11534
10872
|
version INTEGER PRIMARY KEY,
|
|
@@ -11621,27 +10959,27 @@ function hasColumn(db, table, column) {
|
|
|
11621
10959
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11622
10960
|
return rows.some((r2) => r2.name === column);
|
|
11623
10961
|
}
|
|
11624
|
-
function
|
|
10962
|
+
function addColumnIfMissing2(db, table, column, definition) {
|
|
11625
10963
|
if (!hasColumn(db, table, column)) {
|
|
11626
10964
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11627
10965
|
}
|
|
11628
10966
|
}
|
|
11629
|
-
function
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
10967
|
+
function up6(db) {
|
|
10968
|
+
addColumnIfMissing2(db, "memories", "content_hash", "TEXT");
|
|
10969
|
+
addColumnIfMissing2(db, "memories", "normalized_content", "TEXT");
|
|
10970
|
+
addColumnIfMissing2(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
10971
|
+
addColumnIfMissing2(db, "memories", "deleted_at", "TEXT");
|
|
10972
|
+
addColumnIfMissing2(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
10973
|
+
addColumnIfMissing2(db, "memories", "embedding_model", "TEXT");
|
|
10974
|
+
addColumnIfMissing2(db, "memories", "extraction_model", "TEXT");
|
|
10975
|
+
addColumnIfMissing2(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
10976
|
+
addColumnIfMissing2(db, "memories", "who", "TEXT");
|
|
10977
|
+
addColumnIfMissing2(db, "memories", "why", "TEXT");
|
|
10978
|
+
addColumnIfMissing2(db, "memories", "project", "TEXT");
|
|
10979
|
+
addColumnIfMissing2(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
10980
|
+
addColumnIfMissing2(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
10981
|
+
addColumnIfMissing2(db, "memories", "last_accessed", "TEXT");
|
|
10982
|
+
addColumnIfMissing2(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
11645
10983
|
db.exec(`
|
|
11646
10984
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
11647
10985
|
id TEXT PRIMARY KEY,
|
|
@@ -11737,16 +11075,16 @@ function up4(db) {
|
|
|
11737
11075
|
ON memory_entity_mentions(entity_id);
|
|
11738
11076
|
`);
|
|
11739
11077
|
}
|
|
11740
|
-
function
|
|
11078
|
+
function addColumnIfMissing3(db, table, column, definition) {
|
|
11741
11079
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11742
11080
|
if (rows.some((r2) => r2.name === column))
|
|
11743
11081
|
return false;
|
|
11744
11082
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11745
11083
|
return true;
|
|
11746
11084
|
}
|
|
11747
|
-
function
|
|
11748
|
-
|
|
11749
|
-
|
|
11085
|
+
function up7(db) {
|
|
11086
|
+
addColumnIfMissing3(db, "memories", "why", "TEXT");
|
|
11087
|
+
addColumnIfMissing3(db, "memories", "project", "TEXT");
|
|
11750
11088
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
11751
11089
|
db.exec(`
|
|
11752
11090
|
UPDATE memories
|
|
@@ -11776,15 +11114,15 @@ function hasColumn2(db, table, column) {
|
|
|
11776
11114
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11777
11115
|
return rows.some((r2) => r2.name === column);
|
|
11778
11116
|
}
|
|
11779
|
-
function
|
|
11117
|
+
function addColumnIfMissing4(db, table, column, definition) {
|
|
11780
11118
|
if (!hasColumn2(db, table, column)) {
|
|
11781
11119
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11782
11120
|
}
|
|
11783
11121
|
}
|
|
11784
|
-
function
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11122
|
+
function up8(db) {
|
|
11123
|
+
addColumnIfMissing4(db, "memory_history", "actor_type", "TEXT");
|
|
11124
|
+
addColumnIfMissing4(db, "memory_history", "session_id", "TEXT");
|
|
11125
|
+
addColumnIfMissing4(db, "memory_history", "request_id", "TEXT");
|
|
11788
11126
|
db.exec(`
|
|
11789
11127
|
CREATE INDEX IF NOT EXISTS idx_memories_deleted_at
|
|
11790
11128
|
ON memories(deleted_at)
|
|
@@ -11809,21 +11147,21 @@ function hasColumn3(db, table, column) {
|
|
|
11809
11147
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11810
11148
|
return rows.some((r2) => r2.name === column);
|
|
11811
11149
|
}
|
|
11812
|
-
function
|
|
11150
|
+
function addColumnIfMissing5(db, table, column, definition) {
|
|
11813
11151
|
if (!hasColumn3(db, table, column)) {
|
|
11814
11152
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
11815
11153
|
}
|
|
11816
11154
|
}
|
|
11817
|
-
function
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11155
|
+
function up9(db) {
|
|
11156
|
+
addColumnIfMissing5(db, "entities", "canonical_name", "TEXT");
|
|
11157
|
+
addColumnIfMissing5(db, "entities", "mentions", "INTEGER DEFAULT 0");
|
|
11158
|
+
addColumnIfMissing5(db, "entities", "embedding", "BLOB");
|
|
11159
|
+
addColumnIfMissing5(db, "relations", "mentions", "INTEGER DEFAULT 1");
|
|
11160
|
+
addColumnIfMissing5(db, "relations", "confidence", "REAL DEFAULT 0.5");
|
|
11161
|
+
addColumnIfMissing5(db, "relations", "updated_at", "TEXT");
|
|
11162
|
+
addColumnIfMissing5(db, "memory_entity_mentions", "mention_text", "TEXT");
|
|
11163
|
+
addColumnIfMissing5(db, "memory_entity_mentions", "confidence", "REAL");
|
|
11164
|
+
addColumnIfMissing5(db, "memory_entity_mentions", "created_at", "TEXT");
|
|
11827
11165
|
db.exec("CREATE INDEX IF NOT EXISTS idx_entities_canonical_name ON entities(canonical_name)");
|
|
11828
11166
|
db.exec("CREATE INDEX IF NOT EXISTS idx_relations_composite ON relations(source_entity_id, relation_type)");
|
|
11829
11167
|
}
|
|
@@ -11831,7 +11169,7 @@ function hasColumn4(db, table, column) {
|
|
|
11831
11169
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11832
11170
|
return rows.some((r2) => r2.name === column);
|
|
11833
11171
|
}
|
|
11834
|
-
function
|
|
11172
|
+
function up10(db) {
|
|
11835
11173
|
if (!hasColumn4(db, "memories", "idempotency_key")) {
|
|
11836
11174
|
db.exec("ALTER TABLE memories ADD COLUMN idempotency_key TEXT");
|
|
11837
11175
|
}
|
|
@@ -11846,7 +11184,7 @@ function hasColumn5(db, table, column) {
|
|
|
11846
11184
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
11847
11185
|
return rows.some((r2) => r2.name === column);
|
|
11848
11186
|
}
|
|
11849
|
-
function
|
|
11187
|
+
function up11(db) {
|
|
11850
11188
|
db.exec(`
|
|
11851
11189
|
CREATE TABLE IF NOT EXISTS documents (
|
|
11852
11190
|
id TEXT PRIMARY KEY,
|
|
@@ -11903,7 +11241,7 @@ function up9(db) {
|
|
|
11903
11241
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
|
|
11904
11242
|
}
|
|
11905
11243
|
}
|
|
11906
|
-
function
|
|
11244
|
+
function up12(db) {
|
|
11907
11245
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
|
|
11908
11246
|
if (tables.length === 0)
|
|
11909
11247
|
return;
|
|
@@ -11920,7 +11258,7 @@ function up10(db) {
|
|
|
11920
11258
|
ON embeddings(content_hash)
|
|
11921
11259
|
`);
|
|
11922
11260
|
}
|
|
11923
|
-
function
|
|
11261
|
+
function up13(db) {
|
|
11924
11262
|
db.exec(`
|
|
11925
11263
|
CREATE TABLE IF NOT EXISTS summary_jobs (
|
|
11926
11264
|
id TEXT PRIMARY KEY,
|
|
@@ -11940,7 +11278,7 @@ function up11(db) {
|
|
|
11940
11278
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
11941
11279
|
ON summary_jobs(status)`);
|
|
11942
11280
|
}
|
|
11943
|
-
function
|
|
11281
|
+
function up14(db) {
|
|
11944
11282
|
db.exec(`
|
|
11945
11283
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
11946
11284
|
id INTEGER PRIMARY KEY,
|
|
@@ -11951,7 +11289,7 @@ function up12(db) {
|
|
|
11951
11289
|
)
|
|
11952
11290
|
`);
|
|
11953
11291
|
}
|
|
11954
|
-
function
|
|
11292
|
+
function up15(db) {
|
|
11955
11293
|
db.exec(`
|
|
11956
11294
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
11957
11295
|
id TEXT PRIMARY KEY,
|
|
@@ -11971,7 +11309,7 @@ function up13(db) {
|
|
|
11971
11309
|
ON session_scores(session_key);
|
|
11972
11310
|
`);
|
|
11973
11311
|
}
|
|
11974
|
-
function
|
|
11312
|
+
function up16(db) {
|
|
11975
11313
|
db.exec(`
|
|
11976
11314
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
11977
11315
|
id TEXT PRIMARY KEY,
|
|
@@ -12006,13 +11344,13 @@ function up14(db) {
|
|
|
12006
11344
|
ON task_runs(status);
|
|
12007
11345
|
`);
|
|
12008
11346
|
}
|
|
12009
|
-
function
|
|
11347
|
+
function addColumnIfMissing6(db, table, column, definition) {
|
|
12010
11348
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12011
11349
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12012
11350
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12013
11351
|
}
|
|
12014
11352
|
}
|
|
12015
|
-
function
|
|
11353
|
+
function up17(db) {
|
|
12016
11354
|
db.exec(`
|
|
12017
11355
|
CREATE TABLE IF NOT EXISTS ingestion_jobs (
|
|
12018
11356
|
id TEXT PRIMARY KEY,
|
|
@@ -12035,10 +11373,10 @@ function up15(db) {
|
|
|
12035
11373
|
CREATE INDEX IF NOT EXISTS idx_ingestion_jobs_source_path
|
|
12036
11374
|
ON ingestion_jobs(source_path);
|
|
12037
11375
|
`);
|
|
12038
|
-
|
|
12039
|
-
|
|
11376
|
+
addColumnIfMissing6(db, "memories", "source_path", "TEXT");
|
|
11377
|
+
addColumnIfMissing6(db, "memories", "source_section", "TEXT");
|
|
12040
11378
|
}
|
|
12041
|
-
function
|
|
11379
|
+
function up18(db) {
|
|
12042
11380
|
db.exec(`
|
|
12043
11381
|
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
12044
11382
|
id TEXT PRIMARY KEY,
|
|
@@ -12057,13 +11395,13 @@ function up16(db) {
|
|
|
12057
11395
|
ON telemetry_events(sent_to_posthog) WHERE sent_to_posthog = 0;
|
|
12058
11396
|
`);
|
|
12059
11397
|
}
|
|
12060
|
-
function
|
|
11398
|
+
function addColumnIfMissing7(db, table, column, definition) {
|
|
12061
11399
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12062
11400
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12063
11401
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12064
11402
|
}
|
|
12065
11403
|
}
|
|
12066
|
-
function
|
|
11404
|
+
function up19(db) {
|
|
12067
11405
|
db.exec(`
|
|
12068
11406
|
CREATE TABLE IF NOT EXISTS session_memories (
|
|
12069
11407
|
id TEXT PRIMARY KEY,
|
|
@@ -12087,10 +11425,10 @@ function up17(db) {
|
|
|
12087
11425
|
CREATE INDEX IF NOT EXISTS idx_session_memories_memory
|
|
12088
11426
|
ON session_memories(memory_id);
|
|
12089
11427
|
`);
|
|
12090
|
-
|
|
12091
|
-
|
|
11428
|
+
addColumnIfMissing7(db, "session_scores", "confidence", "REAL");
|
|
11429
|
+
addColumnIfMissing7(db, "session_scores", "continuity_reasoning", "TEXT");
|
|
12092
11430
|
}
|
|
12093
|
-
function
|
|
11431
|
+
function up20(db) {
|
|
12094
11432
|
db.exec(`
|
|
12095
11433
|
CREATE TABLE IF NOT EXISTS session_checkpoints (
|
|
12096
11434
|
id TEXT PRIMARY KEY,
|
|
@@ -12112,7 +11450,7 @@ function up18(db) {
|
|
|
12112
11450
|
ON session_checkpoints(project_normalized, created_at DESC);
|
|
12113
11451
|
`);
|
|
12114
11452
|
}
|
|
12115
|
-
function
|
|
11453
|
+
function up21(db) {
|
|
12116
11454
|
const cols = db.prepare("PRAGMA table_info(scheduled_tasks)").all();
|
|
12117
11455
|
const colNames = new Set(cols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
12118
11456
|
if (!colNames.has("skill_name")) {
|
|
@@ -12123,7 +11461,7 @@ function up19(db) {
|
|
|
12123
11461
|
CHECK (skill_mode IN ('inject', 'slash') OR skill_mode IS NULL)`);
|
|
12124
11462
|
}
|
|
12125
11463
|
}
|
|
12126
|
-
function
|
|
11464
|
+
function up22(db) {
|
|
12127
11465
|
const existing = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='skill_meta'").get();
|
|
12128
11466
|
if (existing)
|
|
12129
11467
|
return;
|
|
@@ -12155,7 +11493,7 @@ function up20(db) {
|
|
|
12155
11493
|
CREATE INDEX idx_skill_meta_source ON skill_meta(source);
|
|
12156
11494
|
`);
|
|
12157
11495
|
}
|
|
12158
|
-
function
|
|
11496
|
+
function up23(db) {
|
|
12159
11497
|
const entityCols = db.prepare("PRAGMA table_info(entities)").all();
|
|
12160
11498
|
const entityColNames = new Set(entityCols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
12161
11499
|
if (!entityColNames.has("agent_id")) {
|
|
@@ -12234,19 +11572,19 @@ function up21(db) {
|
|
|
12234
11572
|
CREATE INDEX IF NOT EXISTS idx_task_meta_retention ON task_meta(retention_until);
|
|
12235
11573
|
`);
|
|
12236
11574
|
}
|
|
12237
|
-
function
|
|
11575
|
+
function addColumnIfMissing8(db, table, column, definition) {
|
|
12238
11576
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12239
11577
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12240
11578
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12241
11579
|
}
|
|
12242
11580
|
}
|
|
12243
|
-
function
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
11581
|
+
function up24(db) {
|
|
11582
|
+
addColumnIfMissing8(db, "session_memories", "entity_slot", "INTEGER");
|
|
11583
|
+
addColumnIfMissing8(db, "session_memories", "aspect_slot", "INTEGER");
|
|
11584
|
+
addColumnIfMissing8(db, "session_memories", "is_constraint", "INTEGER NOT NULL DEFAULT 0");
|
|
11585
|
+
addColumnIfMissing8(db, "session_memories", "structural_density", "INTEGER");
|
|
12248
11586
|
}
|
|
12249
|
-
function
|
|
11587
|
+
function up25(db) {
|
|
12250
11588
|
const columns = db.prepare("PRAGMA table_info(session_checkpoints)").all();
|
|
12251
11589
|
const columnNames = new Set(columns.flatMap((column) => typeof column.name === "string" ? [column.name] : []));
|
|
12252
11590
|
if (!columnNames.has("focal_entity_ids")) {
|
|
@@ -12265,31 +11603,31 @@ function up23(db) {
|
|
|
12265
11603
|
db.exec("ALTER TABLE session_checkpoints ADD COLUMN traversal_memory_count INTEGER");
|
|
12266
11604
|
}
|
|
12267
11605
|
}
|
|
12268
|
-
function
|
|
11606
|
+
function addColumnIfMissing9(db, table, column, definition) {
|
|
12269
11607
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12270
11608
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12271
11609
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12272
11610
|
}
|
|
12273
11611
|
}
|
|
12274
|
-
function
|
|
12275
|
-
|
|
12276
|
-
|
|
11612
|
+
function up26(db) {
|
|
11613
|
+
addColumnIfMissing9(db, "entities", "pinned", "INTEGER NOT NULL DEFAULT 0");
|
|
11614
|
+
addColumnIfMissing9(db, "entities", "pinned_at", "TEXT");
|
|
12277
11615
|
db.exec("CREATE INDEX IF NOT EXISTS idx_entities_pinned ON entities(agent_id, pinned, pinned_at DESC)");
|
|
12278
11616
|
}
|
|
12279
|
-
function
|
|
12280
|
-
function
|
|
12281
|
-
function
|
|
11617
|
+
function up27(_db) {}
|
|
11618
|
+
function up28(_db) {}
|
|
11619
|
+
function addColumnIfMissing10(db, table, column, definition) {
|
|
12282
11620
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12283
11621
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12284
11622
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12285
11623
|
}
|
|
12286
11624
|
}
|
|
12287
|
-
function up27(db) {
|
|
12288
|
-
addColumnIfMissing9(db, "session_memories", "agent_relevance_score", "REAL");
|
|
12289
|
-
addColumnIfMissing9(db, "session_memories", "agent_feedback_count", "INTEGER DEFAULT 0");
|
|
12290
|
-
}
|
|
12291
|
-
function up28(_db) {}
|
|
12292
11625
|
function up29(db) {
|
|
11626
|
+
addColumnIfMissing10(db, "session_memories", "agent_relevance_score", "REAL");
|
|
11627
|
+
addColumnIfMissing10(db, "session_memories", "agent_feedback_count", "INTEGER DEFAULT 0");
|
|
11628
|
+
}
|
|
11629
|
+
function up30(_db) {}
|
|
11630
|
+
function up31(db) {
|
|
12293
11631
|
db.exec(`
|
|
12294
11632
|
UPDATE entities
|
|
12295
11633
|
SET canonical_name = REPLACE(REPLACE(REPLACE(
|
|
@@ -12298,7 +11636,7 @@ function up29(db) {
|
|
|
12298
11636
|
WHERE canonical_name IS NULL
|
|
12299
11637
|
`);
|
|
12300
11638
|
}
|
|
12301
|
-
function
|
|
11639
|
+
function up32(db) {
|
|
12302
11640
|
db.exec(`
|
|
12303
11641
|
CREATE TABLE IF NOT EXISTS memories_cold (
|
|
12304
11642
|
archive_id TEXT PRIMARY KEY,
|
|
@@ -12335,7 +11673,7 @@ function up30(db) {
|
|
|
12335
11673
|
CREATE INDEX IF NOT EXISTS idx_cold_source ON memories_cold(cold_source_id);
|
|
12336
11674
|
`);
|
|
12337
11675
|
}
|
|
12338
|
-
function
|
|
11676
|
+
function up33(db) {
|
|
12339
11677
|
db.exec(`
|
|
12340
11678
|
CREATE TABLE IF NOT EXISTS session_summaries (
|
|
12341
11679
|
id TEXT PRIMARY KEY,
|
|
@@ -12380,7 +11718,7 @@ function up31(db) {
|
|
|
12380
11718
|
WHERE session_key IS NOT NULL;
|
|
12381
11719
|
`);
|
|
12382
11720
|
}
|
|
12383
|
-
function
|
|
11721
|
+
function up34(db) {
|
|
12384
11722
|
db.exec(`
|
|
12385
11723
|
CREATE TABLE IF NOT EXISTS memory_jobs_new (
|
|
12386
11724
|
id TEXT PRIMARY KEY,
|
|
@@ -12425,7 +11763,7 @@ function up32(db) {
|
|
|
12425
11763
|
ON memory_jobs(failed_at);
|
|
12426
11764
|
`);
|
|
12427
11765
|
}
|
|
12428
|
-
function
|
|
11766
|
+
function up35(db) {
|
|
12429
11767
|
const depCols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
|
|
12430
11768
|
if (!depCols.some((c2) => c2.name === "reason")) {
|
|
12431
11769
|
db.exec("ALTER TABLE entity_dependencies ADD COLUMN reason TEXT");
|
|
@@ -12435,7 +11773,7 @@ function up33(db) {
|
|
|
12435
11773
|
db.exec("ALTER TABLE entities ADD COLUMN last_synthesized_at TEXT");
|
|
12436
11774
|
}
|
|
12437
11775
|
}
|
|
12438
|
-
function
|
|
11776
|
+
function up36(db) {
|
|
12439
11777
|
const cols = db.prepare("PRAGMA table_info(embeddings)").all();
|
|
12440
11778
|
if (cols.length === 0)
|
|
12441
11779
|
return;
|
|
@@ -12443,14 +11781,14 @@ function up34(db) {
|
|
|
12443
11781
|
db.exec("ALTER TABLE embeddings ADD COLUMN vector BLOB");
|
|
12444
11782
|
}
|
|
12445
11783
|
}
|
|
12446
|
-
function
|
|
11784
|
+
function up37(db) {
|
|
12447
11785
|
const cols = db.prepare("PRAGMA table_info(memories)").all();
|
|
12448
11786
|
if (!cols.some((c2) => c2.name === "scope")) {
|
|
12449
11787
|
db.exec("ALTER TABLE memories ADD COLUMN scope TEXT DEFAULT NULL");
|
|
12450
11788
|
}
|
|
12451
11789
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope) WHERE scope IS NOT NULL");
|
|
12452
11790
|
}
|
|
12453
|
-
function
|
|
11791
|
+
function up38(db) {
|
|
12454
11792
|
db.exec("DROP INDEX IF EXISTS idx_memories_content_hash_unique");
|
|
12455
11793
|
db.exec(`
|
|
12456
11794
|
CREATE UNIQUE INDEX idx_memories_content_hash_unique
|
|
@@ -12458,7 +11796,7 @@ function up36(db) {
|
|
|
12458
11796
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
12459
11797
|
`);
|
|
12460
11798
|
}
|
|
12461
|
-
function
|
|
11799
|
+
function up39(db) {
|
|
12462
11800
|
db.exec(`
|
|
12463
11801
|
CREATE VIRTUAL TABLE IF NOT EXISTS entities_fts USING fts5(
|
|
12464
11802
|
name, canonical_name,
|
|
@@ -12490,13 +11828,13 @@ function up37(db) {
|
|
|
12490
11828
|
END
|
|
12491
11829
|
`);
|
|
12492
11830
|
}
|
|
12493
|
-
function
|
|
11831
|
+
function up40(db) {
|
|
12494
11832
|
const cols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
|
|
12495
11833
|
if (!cols.some((c2) => c2.name === "confidence")) {
|
|
12496
11834
|
db.exec("ALTER TABLE entity_dependencies ADD COLUMN confidence REAL DEFAULT 0.7");
|
|
12497
11835
|
}
|
|
12498
11836
|
}
|
|
12499
|
-
function
|
|
11837
|
+
function up41(db) {
|
|
12500
11838
|
db.exec(`
|
|
12501
11839
|
CREATE TABLE IF NOT EXISTS entity_communities (
|
|
12502
11840
|
id TEXT PRIMARY KEY,
|
|
@@ -12514,7 +11852,7 @@ function up39(db) {
|
|
|
12514
11852
|
db.exec("ALTER TABLE entities ADD COLUMN community_id TEXT REFERENCES entity_communities(id)");
|
|
12515
11853
|
}
|
|
12516
11854
|
}
|
|
12517
|
-
function
|
|
11855
|
+
function up42(db) {
|
|
12518
11856
|
db.exec(`
|
|
12519
11857
|
CREATE TABLE IF NOT EXISTS memory_hints (
|
|
12520
11858
|
id TEXT PRIMARY KEY,
|
|
@@ -12554,7 +11892,7 @@ function up40(db) {
|
|
|
12554
11892
|
END
|
|
12555
11893
|
`);
|
|
12556
11894
|
}
|
|
12557
|
-
function
|
|
11895
|
+
function up43(db) {
|
|
12558
11896
|
db.exec(`
|
|
12559
11897
|
DELETE FROM entity_dependencies
|
|
12560
11898
|
WHERE id NOT IN (
|
|
@@ -12572,7 +11910,7 @@ function up41(db) {
|
|
|
12572
11910
|
)
|
|
12573
11911
|
`);
|
|
12574
11912
|
}
|
|
12575
|
-
function
|
|
11913
|
+
function up44(db) {
|
|
12576
11914
|
db.exec(`
|
|
12577
11915
|
CREATE TABLE IF NOT EXISTS session_transcripts (
|
|
12578
11916
|
session_key TEXT PRIMARY KEY,
|
|
@@ -12589,14 +11927,14 @@ function up42(db) {
|
|
|
12589
11927
|
ON session_transcripts(created_at);
|
|
12590
11928
|
`);
|
|
12591
11929
|
}
|
|
12592
|
-
function
|
|
11930
|
+
function addColumnIfMissing11(db, table, column, definition) {
|
|
12593
11931
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12594
11932
|
if (!cols.some((c2) => c2.name === column)) {
|
|
12595
11933
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12596
11934
|
}
|
|
12597
11935
|
}
|
|
12598
|
-
function
|
|
12599
|
-
|
|
11936
|
+
function up45(db) {
|
|
11937
|
+
addColumnIfMissing11(db, "session_memories", "path_json", "TEXT");
|
|
12600
11938
|
db.exec(`
|
|
12601
11939
|
CREATE TABLE IF NOT EXISTS path_feedback_events (
|
|
12602
11940
|
id TEXT PRIMARY KEY,
|
|
@@ -12664,21 +12002,21 @@ function up43(db) {
|
|
|
12664
12002
|
);
|
|
12665
12003
|
`);
|
|
12666
12004
|
}
|
|
12667
|
-
function
|
|
12005
|
+
function addColumnIfMissing12(db, table, column, definition) {
|
|
12668
12006
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12669
12007
|
if (cols.some((col) => col.name === column))
|
|
12670
12008
|
return;
|
|
12671
12009
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12672
12010
|
}
|
|
12673
|
-
function
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12011
|
+
function up46(db) {
|
|
12012
|
+
addColumnIfMissing12(db, "session_memories", "entity_slot", "INTEGER");
|
|
12013
|
+
addColumnIfMissing12(db, "session_memories", "aspect_slot", "INTEGER");
|
|
12014
|
+
addColumnIfMissing12(db, "session_memories", "is_constraint", "INTEGER NOT NULL DEFAULT 0");
|
|
12015
|
+
addColumnIfMissing12(db, "session_memories", "structural_density", "INTEGER");
|
|
12016
|
+
addColumnIfMissing12(db, "session_memories", "predictor_rank", "INTEGER");
|
|
12017
|
+
addColumnIfMissing12(db, "session_memories", "agent_relevance_score", "REAL");
|
|
12018
|
+
addColumnIfMissing12(db, "session_memories", "agent_feedback_count", "INTEGER DEFAULT 0");
|
|
12019
|
+
addColumnIfMissing12(db, "session_memories", "path_json", "TEXT");
|
|
12682
12020
|
const cols = db.prepare("PRAGMA table_info(session_memories)").all();
|
|
12683
12021
|
const hasAgent = cols.some((col) => col.name === "agent_id");
|
|
12684
12022
|
const agentExpr = hasAgent ? "COALESCE(NULLIF(agent_id, ''), 'default')" : "'default'";
|
|
@@ -12752,13 +12090,13 @@ function up44(db) {
|
|
|
12752
12090
|
ON session_memories(agent_id, session_key);
|
|
12753
12091
|
`);
|
|
12754
12092
|
}
|
|
12755
|
-
function
|
|
12093
|
+
function addColumnIfMissing13(db, table, column, definition) {
|
|
12756
12094
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12757
12095
|
if (cols.some((c2) => c2.name === column))
|
|
12758
12096
|
return;
|
|
12759
12097
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12760
12098
|
}
|
|
12761
|
-
function
|
|
12099
|
+
function up47(db) {
|
|
12762
12100
|
db.exec(`
|
|
12763
12101
|
CREATE TABLE IF NOT EXISTS agents (
|
|
12764
12102
|
id TEXT PRIMARY KEY,
|
|
@@ -12772,8 +12110,8 @@ function up45(db) {
|
|
|
12772
12110
|
const now = new Date().toISOString();
|
|
12773
12111
|
db.prepare(`INSERT OR IGNORE INTO agents (id, name, read_policy, created_at, updated_at)
|
|
12774
12112
|
VALUES ('default', 'default', 'shared', ?, ?)`).run(now, now);
|
|
12775
|
-
|
|
12776
|
-
|
|
12113
|
+
addColumnIfMissing13(db, "memories", "agent_id", "TEXT DEFAULT 'default'");
|
|
12114
|
+
addColumnIfMissing13(db, "memories", "visibility", "TEXT DEFAULT 'global'");
|
|
12777
12115
|
db.exec(`
|
|
12778
12116
|
CREATE INDEX IF NOT EXISTS idx_memories_agent_id
|
|
12779
12117
|
ON memories(agent_id);
|
|
@@ -12781,16 +12119,16 @@ function up45(db) {
|
|
|
12781
12119
|
ON memories(agent_id, visibility);
|
|
12782
12120
|
`);
|
|
12783
12121
|
}
|
|
12784
|
-
function
|
|
12122
|
+
function addColumnIfMissing14(db, table, column, definition) {
|
|
12785
12123
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12786
12124
|
if (cols.some((c2) => c2.name === column))
|
|
12787
12125
|
return;
|
|
12788
12126
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12789
12127
|
}
|
|
12790
|
-
function
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12128
|
+
function up48(db) {
|
|
12129
|
+
addColumnIfMissing14(db, "session_summaries", "source_type", "TEXT");
|
|
12130
|
+
addColumnIfMissing14(db, "session_summaries", "source_ref", "TEXT");
|
|
12131
|
+
addColumnIfMissing14(db, "session_summaries", "meta_json", "TEXT");
|
|
12794
12132
|
db.exec(`
|
|
12795
12133
|
UPDATE session_summaries
|
|
12796
12134
|
SET source_type = CASE
|
|
@@ -12807,16 +12145,16 @@ function up46(db) {
|
|
|
12807
12145
|
ON session_summaries(source_ref);
|
|
12808
12146
|
`);
|
|
12809
12147
|
}
|
|
12810
|
-
function
|
|
12148
|
+
function addColumnIfMissing15(db, table, column, definition) {
|
|
12811
12149
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
12812
12150
|
if (cols.some((col) => col.name === column))
|
|
12813
12151
|
return;
|
|
12814
12152
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
12815
12153
|
}
|
|
12816
|
-
function
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12154
|
+
function up49(db) {
|
|
12155
|
+
addColumnIfMissing15(db, "session_transcripts", "updated_at", "TEXT");
|
|
12156
|
+
addColumnIfMissing15(db, "summary_jobs", "agent_id", "TEXT NOT NULL DEFAULT 'default'");
|
|
12157
|
+
addColumnIfMissing15(db, "session_scores", "agent_id", "TEXT NOT NULL DEFAULT 'default'");
|
|
12820
12158
|
db.exec(`
|
|
12821
12159
|
UPDATE session_transcripts
|
|
12822
12160
|
SET updated_at = COALESCE(updated_at, created_at)
|
|
@@ -12884,7 +12222,7 @@ function up47(db) {
|
|
|
12884
12222
|
ON memory_md_heads(lease_expires_at);
|
|
12885
12223
|
`);
|
|
12886
12224
|
}
|
|
12887
|
-
function
|
|
12225
|
+
function up50(db) {
|
|
12888
12226
|
db.exec(`
|
|
12889
12227
|
DROP INDEX IF EXISTS idx_summaries_session_depth;
|
|
12890
12228
|
|
|
@@ -12945,7 +12283,7 @@ function up48(db) {
|
|
|
12945
12283
|
AND COALESCE(source_type, 'summary') = 'summary';
|
|
12946
12284
|
`);
|
|
12947
12285
|
}
|
|
12948
|
-
function
|
|
12286
|
+
function up51(db) {
|
|
12949
12287
|
db.exec(`
|
|
12950
12288
|
DROP TRIGGER IF EXISTS session_transcripts_fts_ai;
|
|
12951
12289
|
DROP TRIGGER IF EXISTS session_transcripts_fts_ad;
|
|
@@ -13043,7 +12381,7 @@ function up49(db) {
|
|
|
13043
12381
|
AND COALESCE(source_type, 'summary') = 'summary';
|
|
13044
12382
|
`);
|
|
13045
12383
|
}
|
|
13046
|
-
function
|
|
12384
|
+
function up52(db) {
|
|
13047
12385
|
db.exec(`
|
|
13048
12386
|
CREATE TABLE IF NOT EXISTS memory_thread_heads (
|
|
13049
12387
|
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
@@ -13161,7 +12499,7 @@ function up50(db) {
|
|
|
13161
12499
|
WHERE excluded.latest_at >= memory_thread_heads.latest_at;
|
|
13162
12500
|
`);
|
|
13163
12501
|
}
|
|
13164
|
-
function
|
|
12502
|
+
function up53(db) {
|
|
13165
12503
|
db.exec(`
|
|
13166
12504
|
CREATE TABLE IF NOT EXISTS session_extract_cursors (
|
|
13167
12505
|
session_key TEXT NOT NULL,
|
|
@@ -13178,7 +12516,7 @@ function hasTable(db, name) {
|
|
|
13178
12516
|
WHERE type = 'table' AND name = ?
|
|
13179
12517
|
LIMIT 1`).get(name) !== undefined;
|
|
13180
12518
|
}
|
|
13181
|
-
function
|
|
12519
|
+
function up54(db) {
|
|
13182
12520
|
db.exec(`
|
|
13183
12521
|
CREATE TABLE IF NOT EXISTS entity_dependency_history (
|
|
13184
12522
|
id TEXT PRIMARY KEY,
|
|
@@ -13342,18 +12680,18 @@ function up52(db) {
|
|
|
13342
12680
|
AND (reason IS NULL OR length(trim(reason)) = 0)
|
|
13343
12681
|
`);
|
|
13344
12682
|
}
|
|
13345
|
-
function
|
|
12683
|
+
function addColumnIfMissing16(db, table, column, definition) {
|
|
13346
12684
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13347
12685
|
if (cols.some((col) => col.name === column))
|
|
13348
12686
|
return;
|
|
13349
12687
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13350
12688
|
}
|
|
13351
|
-
function
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
|
|
13355
|
-
|
|
13356
|
-
|
|
12689
|
+
function up55(db) {
|
|
12690
|
+
addColumnIfMissing16(db, "summary_jobs", "session_id", "TEXT");
|
|
12691
|
+
addColumnIfMissing16(db, "summary_jobs", "trigger", "TEXT NOT NULL DEFAULT 'session_end'");
|
|
12692
|
+
addColumnIfMissing16(db, "summary_jobs", "captured_at", "TEXT");
|
|
12693
|
+
addColumnIfMissing16(db, "summary_jobs", "started_at", "TEXT");
|
|
12694
|
+
addColumnIfMissing16(db, "summary_jobs", "ended_at", "TEXT");
|
|
13357
12695
|
db.exec(`
|
|
13358
12696
|
UPDATE summary_jobs
|
|
13359
12697
|
SET
|
|
@@ -13440,7 +12778,7 @@ function up53(db) {
|
|
|
13440
12778
|
VALUES ('rebuild');
|
|
13441
12779
|
`);
|
|
13442
12780
|
}
|
|
13443
|
-
function
|
|
12781
|
+
function up56(db) {
|
|
13444
12782
|
db.exec(`
|
|
13445
12783
|
CREATE TABLE IF NOT EXISTS mcp_invocations (
|
|
13446
12784
|
id TEXT PRIMARY KEY,
|
|
@@ -13457,7 +12795,7 @@ function up54(db) {
|
|
|
13457
12795
|
CREATE INDEX IF NOT EXISTS idx_mcp_inv_agent ON mcp_invocations(agent_id, created_at);
|
|
13458
12796
|
`);
|
|
13459
12797
|
}
|
|
13460
|
-
function
|
|
12798
|
+
function up57(db) {
|
|
13461
12799
|
db.exec(`
|
|
13462
12800
|
CREATE TABLE IF NOT EXISTS skill_invocations (
|
|
13463
12801
|
id TEXT PRIMARY KEY,
|
|
@@ -13473,7 +12811,7 @@ function up55(db) {
|
|
|
13473
12811
|
CREATE INDEX IF NOT EXISTS idx_skill_inv_agent ON skill_invocations(agent_id, created_at);
|
|
13474
12812
|
`);
|
|
13475
12813
|
}
|
|
13476
|
-
function
|
|
12814
|
+
function up58(db) {
|
|
13477
12815
|
db.exec(`
|
|
13478
12816
|
CREATE TABLE IF NOT EXISTS task_scope_hints (
|
|
13479
12817
|
task_id TEXT PRIMARY KEY REFERENCES scheduled_tasks(id) ON DELETE CASCADE,
|
|
@@ -13504,7 +12842,7 @@ function up56(db) {
|
|
|
13504
12842
|
ON task_scope_hints(agent_id, updated_at);
|
|
13505
12843
|
`);
|
|
13506
12844
|
}
|
|
13507
|
-
function
|
|
12845
|
+
function up59(db) {
|
|
13508
12846
|
db.exec(`
|
|
13509
12847
|
CREATE TABLE IF NOT EXISTS dreaming_state (
|
|
13510
12848
|
agent_id TEXT PRIMARY KEY NOT NULL,
|
|
@@ -13547,7 +12885,7 @@ function ensureMemoriesScopeColumns(db) {
|
|
|
13547
12885
|
if (!names.has("scope"))
|
|
13548
12886
|
db.exec("ALTER TABLE memories ADD COLUMN scope TEXT");
|
|
13549
12887
|
}
|
|
13550
|
-
function
|
|
12888
|
+
function up60(db) {
|
|
13551
12889
|
ensureMemoriesScopeColumns(db);
|
|
13552
12890
|
db.exec("DROP INDEX IF EXISTS idx_memories_content_hash_unique");
|
|
13553
12891
|
db.exec(`
|
|
@@ -13560,20 +12898,20 @@ function up58(db) {
|
|
|
13560
12898
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
13561
12899
|
`);
|
|
13562
12900
|
}
|
|
13563
|
-
function
|
|
12901
|
+
function up61(db) {
|
|
13564
12902
|
const sql = readMemoriesFtsSql(db);
|
|
13565
12903
|
if (sql !== null && !memoriesFtsNeedsTokenizerRepair(sql))
|
|
13566
12904
|
return;
|
|
13567
12905
|
recreateMemoriesFts(db);
|
|
13568
12906
|
}
|
|
13569
|
-
function
|
|
12907
|
+
function up62(db) {
|
|
13570
12908
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_entities_order
|
|
13571
12909
|
ON entities(agent_id, pinned DESC, pinned_at DESC, mentions DESC, updated_at DESC, name)`);
|
|
13572
12910
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_entities_extracted_mentions
|
|
13573
12911
|
ON entities(entity_type, mentions)
|
|
13574
12912
|
WHERE entity_type = 'extracted'`);
|
|
13575
12913
|
}
|
|
13576
|
-
function
|
|
12914
|
+
function up63(db) {
|
|
13577
12915
|
const cols = db.prepare("PRAGMA table_info(entity_attributes)").all();
|
|
13578
12916
|
if (!cols.some((col) => col.name === "claim_key")) {
|
|
13579
12917
|
db.exec("ALTER TABLE entity_attributes ADD COLUMN claim_key TEXT");
|
|
@@ -13582,7 +12920,7 @@ function up61(db) {
|
|
|
13582
12920
|
ON entity_attributes(agent_id, aspect_id, claim_key, status)
|
|
13583
12921
|
WHERE claim_key IS NOT NULL`);
|
|
13584
12922
|
}
|
|
13585
|
-
function
|
|
12923
|
+
function up64(db) {
|
|
13586
12924
|
const cols = db.prepare("PRAGMA table_info(entity_attributes)").all();
|
|
13587
12925
|
if (!cols.some((col) => col.name === "group_key")) {
|
|
13588
12926
|
db.exec("ALTER TABLE entity_attributes ADD COLUMN group_key TEXT");
|
|
@@ -13594,13 +12932,13 @@ function up62(db) {
|
|
|
13594
12932
|
ON entity_attributes(agent_id, aspect_id, group_key, claim_key, status)
|
|
13595
12933
|
WHERE claim_key IS NOT NULL`);
|
|
13596
12934
|
}
|
|
13597
|
-
function
|
|
12935
|
+
function up65(db) {
|
|
13598
12936
|
const cols = db.prepare("PRAGMA table_info(memory_artifacts)").all();
|
|
13599
12937
|
if (cols.some((col) => col.name === "source_mtime_ms"))
|
|
13600
12938
|
return;
|
|
13601
12939
|
db.exec("ALTER TABLE memory_artifacts ADD COLUMN source_mtime_ms REAL");
|
|
13602
12940
|
}
|
|
13603
|
-
function
|
|
12941
|
+
function up66(db) {
|
|
13604
12942
|
const cols = db.prepare("PRAGMA table_info(memory_artifacts)").all();
|
|
13605
12943
|
const names = new Set(cols.map((col) => col.name));
|
|
13606
12944
|
if (!names.has("is_deleted")) {
|
|
@@ -13614,7 +12952,7 @@ function up64(db) {
|
|
|
13614
12952
|
ON memory_artifacts(agent_id, is_deleted, deleted_at)
|
|
13615
12953
|
`);
|
|
13616
12954
|
}
|
|
13617
|
-
function
|
|
12955
|
+
function up67(db) {
|
|
13618
12956
|
db.exec("DROP TRIGGER IF EXISTS memories_au");
|
|
13619
12957
|
db.exec(`
|
|
13620
12958
|
CREATE TRIGGER IF NOT EXISTS memories_au AFTER UPDATE OF content ON memories BEGIN
|
|
@@ -13627,17 +12965,17 @@ function hasColumn6(db, table, column) {
|
|
|
13627
12965
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13628
12966
|
return rows.some((row) => row.name === column);
|
|
13629
12967
|
}
|
|
13630
|
-
function
|
|
12968
|
+
function addColumnIfMissing17(db, table, column, definition) {
|
|
13631
12969
|
if (!hasColumn6(db, table, column)) {
|
|
13632
12970
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13633
12971
|
}
|
|
13634
12972
|
}
|
|
13635
|
-
function
|
|
12973
|
+
function up68(db) {
|
|
13636
12974
|
for (const table of ["entities", "entity_communities", "entity_attributes", "entity_dependencies"]) {
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
12975
|
+
addColumnIfMissing17(db, table, "source_id", "TEXT");
|
|
12976
|
+
addColumnIfMissing17(db, table, "source_kind", "TEXT");
|
|
12977
|
+
addColumnIfMissing17(db, table, "source_path", "TEXT");
|
|
12978
|
+
addColumnIfMissing17(db, table, "source_root", "TEXT");
|
|
13641
12979
|
}
|
|
13642
12980
|
db.exec("CREATE INDEX IF NOT EXISTS idx_entities_source ON entities(agent_id, source_id, source_path)");
|
|
13643
12981
|
db.exec("CREATE INDEX IF NOT EXISTS idx_entity_communities_source ON entity_communities(agent_id, source_id, source_path)");
|
|
@@ -13652,7 +12990,7 @@ function hasColumn7(db, table, column) {
|
|
|
13652
12990
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13653
12991
|
return rows.some((row) => row.name === column);
|
|
13654
12992
|
}
|
|
13655
|
-
function
|
|
12993
|
+
function up69(db) {
|
|
13656
12994
|
if (!hasTable2(db, "embeddings"))
|
|
13657
12995
|
return;
|
|
13658
12996
|
if (!hasColumn7(db, "embeddings", "agent_id")) {
|
|
@@ -13660,7 +12998,7 @@ function up67(db) {
|
|
|
13660
12998
|
}
|
|
13661
12999
|
db.exec("CREATE INDEX IF NOT EXISTS idx_embeddings_agent_source ON embeddings(agent_id, source_type, source_id)");
|
|
13662
13000
|
}
|
|
13663
|
-
function
|
|
13001
|
+
function up70(db) {
|
|
13664
13002
|
db.exec(`
|
|
13665
13003
|
CREATE TABLE IF NOT EXISTS memory_search_telemetry (
|
|
13666
13004
|
id TEXT PRIMARY KEY,
|
|
@@ -13696,12 +13034,12 @@ function hasColumn8(db, table, column) {
|
|
|
13696
13034
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13697
13035
|
return rows.some((row) => row.name === column);
|
|
13698
13036
|
}
|
|
13699
|
-
function
|
|
13037
|
+
function addColumnIfMissing18(db, table, column, definition) {
|
|
13700
13038
|
if (!hasColumn8(db, table, column)) {
|
|
13701
13039
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13702
13040
|
}
|
|
13703
13041
|
}
|
|
13704
|
-
function
|
|
13042
|
+
function up71(db) {
|
|
13705
13043
|
db.exec(`
|
|
13706
13044
|
CREATE TABLE IF NOT EXISTS ontology_proposals (
|
|
13707
13045
|
id TEXT PRIMARY KEY,
|
|
@@ -13739,12 +13077,12 @@ function up69(db) {
|
|
|
13739
13077
|
ON ontology_proposals(agent_id, source_kind, source_id);
|
|
13740
13078
|
`);
|
|
13741
13079
|
for (const table of ["entity_attributes", "entity_dependencies"]) {
|
|
13742
|
-
|
|
13743
|
-
|
|
13080
|
+
addColumnIfMissing18(db, table, "proposal_id", "TEXT");
|
|
13081
|
+
addColumnIfMissing18(db, table, "proposal_evidence", "TEXT NOT NULL DEFAULT '[]'");
|
|
13744
13082
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_${table}_proposal ON ${table}(agent_id, proposal_id)`);
|
|
13745
13083
|
}
|
|
13746
13084
|
}
|
|
13747
|
-
function
|
|
13085
|
+
function up72(db) {
|
|
13748
13086
|
db.exec(`
|
|
13749
13087
|
CREATE TABLE IF NOT EXISTS daily_reflections (
|
|
13750
13088
|
id TEXT PRIMARY KEY,
|
|
@@ -13771,7 +13109,7 @@ function up70(db) {
|
|
|
13771
13109
|
WHERE content_key IS NOT NULL;
|
|
13772
13110
|
`);
|
|
13773
13111
|
}
|
|
13774
|
-
function
|
|
13112
|
+
function up73(db) {
|
|
13775
13113
|
const cols = db.prepare("PRAGMA table_info(daily_reflections)").all();
|
|
13776
13114
|
const colNames = new Set(cols.flatMap((c2) => typeof c2.name === "string" ? [c2.name] : []));
|
|
13777
13115
|
if (!colNames.has("content_key")) {
|
|
@@ -13796,7 +13134,7 @@ function hasColumn9(db, table, column) {
|
|
|
13796
13134
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13797
13135
|
return rows.some((row) => row.name === column);
|
|
13798
13136
|
}
|
|
13799
|
-
function
|
|
13137
|
+
function addColumnIfMissing19(db, table, column, definition) {
|
|
13800
13138
|
if (!hasColumn9(db, table, column)) {
|
|
13801
13139
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13802
13140
|
}
|
|
@@ -13808,23 +13146,23 @@ function backfillVersionRoots(db) {
|
|
|
13808
13146
|
WHERE version_root_id IS NULL
|
|
13809
13147
|
`);
|
|
13810
13148
|
}
|
|
13811
|
-
function
|
|
13149
|
+
function up74(db) {
|
|
13812
13150
|
for (const table of ["entities", "entity_aspects", "entity_dependencies"]) {
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13151
|
+
addColumnIfMissing19(db, table, "status", "TEXT NOT NULL DEFAULT 'active'");
|
|
13152
|
+
addColumnIfMissing19(db, table, "archived_at", "TEXT");
|
|
13153
|
+
addColumnIfMissing19(db, table, "archived_by", "TEXT");
|
|
13154
|
+
addColumnIfMissing19(db, table, "archive_reason", "TEXT");
|
|
13817
13155
|
}
|
|
13818
13156
|
for (const table of ["entities", "entity_aspects"]) {
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
}
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13157
|
+
addColumnIfMissing19(db, table, "proposal_id", "TEXT");
|
|
13158
|
+
addColumnIfMissing19(db, table, "proposal_evidence", "TEXT NOT NULL DEFAULT '[]'");
|
|
13159
|
+
}
|
|
13160
|
+
addColumnIfMissing19(db, "entity_attributes", "version", "INTEGER NOT NULL DEFAULT 1");
|
|
13161
|
+
addColumnIfMissing19(db, "entity_attributes", "version_root_id", "TEXT");
|
|
13162
|
+
addColumnIfMissing19(db, "entity_attributes", "previous_attribute_id", "TEXT");
|
|
13163
|
+
addColumnIfMissing19(db, "entity_attributes", "archived_at", "TEXT");
|
|
13164
|
+
addColumnIfMissing19(db, "entity_attributes", "archived_by", "TEXT");
|
|
13165
|
+
addColumnIfMissing19(db, "entity_attributes", "archive_reason", "TEXT");
|
|
13828
13166
|
backfillVersionRoots(db);
|
|
13829
13167
|
db.exec(`
|
|
13830
13168
|
CREATE INDEX IF NOT EXISTS idx_entities_status
|
|
@@ -13843,7 +13181,7 @@ function up72(db) {
|
|
|
13843
13181
|
ON entity_aspects(agent_id, proposal_id);
|
|
13844
13182
|
`);
|
|
13845
13183
|
}
|
|
13846
|
-
function
|
|
13184
|
+
function up75(db) {
|
|
13847
13185
|
db.exec(`
|
|
13848
13186
|
CREATE TABLE IF NOT EXISTS epistemic_assertions (
|
|
13849
13187
|
id TEXT PRIMARY KEY,
|
|
@@ -13899,7 +13237,7 @@ function ensureMemoriesScopeColumns2(db) {
|
|
|
13899
13237
|
if (!names.has("runtime_path"))
|
|
13900
13238
|
db.exec("ALTER TABLE memories ADD COLUMN runtime_path TEXT");
|
|
13901
13239
|
}
|
|
13902
|
-
function
|
|
13240
|
+
function up76(db) {
|
|
13903
13241
|
ensureMemoriesScopeColumns2(db);
|
|
13904
13242
|
db.exec("DROP INDEX IF EXISTS idx_memories_idempotency_key");
|
|
13905
13243
|
db.exec(`
|
|
@@ -13913,7 +13251,7 @@ function up74(db) {
|
|
|
13913
13251
|
WHERE idempotency_key IS NOT NULL AND is_deleted = 0
|
|
13914
13252
|
`);
|
|
13915
13253
|
}
|
|
13916
|
-
function
|
|
13254
|
+
function up77(db) {
|
|
13917
13255
|
db.exec(`
|
|
13918
13256
|
CREATE TABLE IF NOT EXISTS session_context_epochs (
|
|
13919
13257
|
session_key TEXT NOT NULL,
|
|
@@ -13948,7 +13286,7 @@ function up75(db) {
|
|
|
13948
13286
|
ON session_recall_events(item_kind, item_id, created_at DESC);
|
|
13949
13287
|
`);
|
|
13950
13288
|
}
|
|
13951
|
-
function
|
|
13289
|
+
function up78(db) {
|
|
13952
13290
|
db.exec(`
|
|
13953
13291
|
CREATE TABLE IF NOT EXISTS aggregate_memory_sources (
|
|
13954
13292
|
aggregate_memory_id TEXT NOT NULL,
|
|
@@ -13961,18 +13299,18 @@ function up76(db) {
|
|
|
13961
13299
|
ON aggregate_memory_sources(agent_id, aggregate_memory_id);
|
|
13962
13300
|
`);
|
|
13963
13301
|
}
|
|
13964
|
-
function
|
|
13302
|
+
function addColumnIfMissing20(db, table, column, definition) {
|
|
13965
13303
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
13966
13304
|
if (cols.some((col) => col.name === column))
|
|
13967
13305
|
return;
|
|
13968
13306
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
13969
13307
|
}
|
|
13970
|
-
function
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13308
|
+
function up79(db) {
|
|
13309
|
+
addColumnIfMissing20(db, "memory_artifacts", "source_id", "TEXT");
|
|
13310
|
+
addColumnIfMissing20(db, "memory_artifacts", "source_root", "TEXT");
|
|
13311
|
+
addColumnIfMissing20(db, "memory_artifacts", "source_external_id", "TEXT");
|
|
13312
|
+
addColumnIfMissing20(db, "memory_artifacts", "source_parent_path", "TEXT");
|
|
13313
|
+
addColumnIfMissing20(db, "memory_artifacts", "source_meta_json", "TEXT");
|
|
13976
13314
|
db.exec(`
|
|
13977
13315
|
CREATE INDEX IF NOT EXISTS idx_memory_artifacts_agent_source
|
|
13978
13316
|
ON memory_artifacts(agent_id, source_id, source_external_id);
|
|
@@ -13980,7 +13318,7 @@ function up77(db) {
|
|
|
13980
13318
|
ON memory_artifacts(agent_id, source_id, source_root);
|
|
13981
13319
|
`);
|
|
13982
13320
|
}
|
|
13983
|
-
function
|
|
13321
|
+
function up80(db) {
|
|
13984
13322
|
db.exec(`
|
|
13985
13323
|
CREATE TABLE IF NOT EXISTS temporal_edges (
|
|
13986
13324
|
id TEXT PRIMARY KEY,
|
|
@@ -14003,7 +13341,7 @@ function up78(db) {
|
|
|
14003
13341
|
ON temporal_edges(agent_id, subject_type, subject_id);
|
|
14004
13342
|
`);
|
|
14005
13343
|
}
|
|
14006
|
-
function
|
|
13344
|
+
function up81(db) {
|
|
14007
13345
|
db.exec(`
|
|
14008
13346
|
CREATE TABLE IF NOT EXISTS entity_aliases (
|
|
14009
13347
|
id TEXT PRIMARY KEY,
|
|
@@ -14027,7 +13365,7 @@ function up79(db) {
|
|
|
14027
13365
|
ON entity_aliases(agent_id, canonical_alias, status);
|
|
14028
13366
|
`);
|
|
14029
13367
|
}
|
|
14030
|
-
function
|
|
13368
|
+
function up82(db) {
|
|
14031
13369
|
db.exec(`
|
|
14032
13370
|
CREATE TABLE IF NOT EXISTS api_keys (
|
|
14033
13371
|
id TEXT PRIMARY KEY,
|
|
@@ -14055,7 +13393,7 @@ function up80(db) {
|
|
|
14055
13393
|
ON api_keys(connector, harness);
|
|
14056
13394
|
`);
|
|
14057
13395
|
}
|
|
14058
|
-
function
|
|
13396
|
+
function up83(db) {
|
|
14059
13397
|
db.exec(`
|
|
14060
13398
|
CREATE TABLE IF NOT EXISTS transcript_capture_jobs (
|
|
14061
13399
|
id TEXT PRIMARY KEY,
|
|
@@ -14090,7 +13428,7 @@ function hasColumn10(db, table, column) {
|
|
|
14090
13428
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14091
13429
|
return rows.some((row) => row.name === column);
|
|
14092
13430
|
}
|
|
14093
|
-
function
|
|
13431
|
+
function up84(db) {
|
|
14094
13432
|
if (!hasColumn10(db, "documents", "agent_id")) {
|
|
14095
13433
|
db.exec("ALTER TABLE documents ADD COLUMN agent_id TEXT NOT NULL DEFAULT 'default'");
|
|
14096
13434
|
}
|
|
@@ -14176,7 +13514,7 @@ function up82(db) {
|
|
|
14176
13514
|
db.exec("CREATE INDEX IF NOT EXISTS idx_documents_agent_project ON documents(agent_id, project)");
|
|
14177
13515
|
db.exec("CREATE INDEX IF NOT EXISTS idx_documents_source_scope ON documents(source_url, agent_id, project)");
|
|
14178
13516
|
}
|
|
14179
|
-
function
|
|
13517
|
+
function up85(db) {
|
|
14180
13518
|
db.exec(`
|
|
14181
13519
|
CREATE TABLE IF NOT EXISTS aggregate_evidence_sources (
|
|
14182
13520
|
aggregate_memory_id TEXT NOT NULL,
|
|
@@ -14198,7 +13536,7 @@ function hasColumn11(db, table, column) {
|
|
|
14198
13536
|
return rows.some((row) => row.name === column);
|
|
14199
13537
|
}
|
|
14200
13538
|
var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
14201
|
-
function
|
|
13539
|
+
function up86(db) {
|
|
14202
13540
|
for (const column of COLUMNS) {
|
|
14203
13541
|
if (!hasColumn11(db, "skill_invocations", column)) {
|
|
14204
13542
|
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
@@ -14256,7 +13594,7 @@ function hasColumn12(db, table, column) {
|
|
|
14256
13594
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14257
13595
|
return rows.some((row) => row.name === column);
|
|
14258
13596
|
}
|
|
14259
|
-
function
|
|
13597
|
+
function addColumnIfMissing21(db, table, column, definition) {
|
|
14260
13598
|
if (!hasColumn12(db, table, column))
|
|
14261
13599
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
14262
13600
|
}
|
|
@@ -14279,7 +13617,7 @@ function documentScopeColumnsPreservingExisting(db) {
|
|
|
14279
13617
|
`);
|
|
14280
13618
|
}
|
|
14281
13619
|
try {
|
|
14282
|
-
|
|
13620
|
+
up84(db);
|
|
14283
13621
|
if (preserveAgentId) {
|
|
14284
13622
|
db.exec(`
|
|
14285
13623
|
UPDATE documents
|
|
@@ -14299,25 +13637,25 @@ function documentScopeColumnsPreservingExisting(db) {
|
|
|
14299
13637
|
db.exec("DROP TABLE IF EXISTS temp.__signet_doc_project_guard");
|
|
14300
13638
|
}
|
|
14301
13639
|
}
|
|
14302
|
-
function
|
|
14303
|
-
|
|
13640
|
+
function up87(db) {
|
|
13641
|
+
up83(db);
|
|
14304
13642
|
if (hasTable3(db, "documents")) {
|
|
14305
13643
|
documentScopeColumnsPreservingExisting(db);
|
|
14306
13644
|
}
|
|
14307
|
-
|
|
14308
|
-
|
|
14309
|
-
|
|
14310
|
-
|
|
13645
|
+
up85(db);
|
|
13646
|
+
addColumnIfMissing21(db, "memories", "superseded_by", "TEXT");
|
|
13647
|
+
addColumnIfMissing21(db, "memories", "superseded_at", "TEXT");
|
|
13648
|
+
addColumnIfMissing21(db, "memories", "superseded_reason", "TEXT");
|
|
14311
13649
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_superseded_by ON memories(superseded_by)");
|
|
14312
13650
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_active_supersession ON memories(is_deleted, superseded_by)");
|
|
14313
13651
|
if (!hasTable3(db, "relations") || !hasTable3(db, "entity_dependencies"))
|
|
14314
13652
|
return;
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
13653
|
+
addColumnIfMissing21(db, "entity_dependencies", "confidence", "REAL");
|
|
13654
|
+
addColumnIfMissing21(db, "entity_dependencies", "reason", "TEXT");
|
|
13655
|
+
addColumnIfMissing21(db, "entity_dependencies", "source_id", "TEXT");
|
|
13656
|
+
addColumnIfMissing21(db, "entity_dependencies", "source_kind", "TEXT");
|
|
13657
|
+
addColumnIfMissing21(db, "entity_dependencies", "proposal_evidence", "TEXT NOT NULL DEFAULT '[]'");
|
|
13658
|
+
addColumnIfMissing21(db, "entity_dependencies", "status", "TEXT NOT NULL DEFAULT 'active'");
|
|
14321
13659
|
const relationConfidence = hasColumn12(db, "relations", "confidence") ? "r.confidence" : "NULL";
|
|
14322
13660
|
const relationUpdatedAt = hasColumn12(db, "relations", "updated_at") ? "r.updated_at" : "r.created_at";
|
|
14323
13661
|
const sourceAgentId = hasColumn12(db, "entities", "agent_id") ? "COALESCE(NULLIF(TRIM(src.agent_id), ''), 'default')" : "'default'";
|
|
@@ -14361,7 +13699,7 @@ function up85(db) {
|
|
|
14361
13699
|
AND ${sourceAgentId} = ${targetAgentId}
|
|
14362
13700
|
`);
|
|
14363
13701
|
}
|
|
14364
|
-
function
|
|
13702
|
+
function up88(db) {
|
|
14365
13703
|
db.exec(`
|
|
14366
13704
|
CREATE TABLE IF NOT EXISTS legacy_markdown_imports (
|
|
14367
13705
|
path TEXT PRIMARY KEY,
|
|
@@ -14391,7 +13729,7 @@ function up86(db) {
|
|
|
14391
13729
|
ON legacy_markdown_chunks(memory_id);
|
|
14392
13730
|
`);
|
|
14393
13731
|
}
|
|
14394
|
-
function
|
|
13732
|
+
function up89(db) {
|
|
14395
13733
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name IN ('relations', 'entity_dependencies')").all();
|
|
14396
13734
|
const tableNames = new Set(tables.map((r2) => String(r2.name)));
|
|
14397
13735
|
if (!tableNames.has("relations") || !tableNames.has("entity_dependencies"))
|
|
@@ -14444,33 +13782,33 @@ function up87(db) {
|
|
|
14444
13782
|
AND target_entity_id IS NOT NULL
|
|
14445
13783
|
AND relation_type IS NOT NULL`);
|
|
14446
13784
|
}
|
|
14447
|
-
function
|
|
13785
|
+
function addColumnIfMissing22(db, table, column, definition) {
|
|
14448
13786
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14449
13787
|
if (cols.some((col) => col.name === column))
|
|
14450
13788
|
return;
|
|
14451
13789
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
14452
13790
|
}
|
|
14453
|
-
function
|
|
14454
|
-
|
|
13791
|
+
function up90(db) {
|
|
13792
|
+
addColumnIfMissing22(db, "summary_jobs", "content_hash", "TEXT");
|
|
14455
13793
|
db.exec(`
|
|
14456
13794
|
CREATE INDEX IF NOT EXISTS idx_summary_jobs_agent_session_content_hash
|
|
14457
13795
|
ON summary_jobs(agent_id, session_key, content_hash)
|
|
14458
13796
|
`);
|
|
14459
13797
|
}
|
|
14460
|
-
function
|
|
13798
|
+
function addColumnIfMissing23(db, table, column, definition) {
|
|
14461
13799
|
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14462
13800
|
if (cols.some((col) => col.name === column))
|
|
14463
13801
|
return;
|
|
14464
13802
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
14465
13803
|
}
|
|
14466
|
-
function
|
|
14467
|
-
|
|
13804
|
+
function up91(db) {
|
|
13805
|
+
addColumnIfMissing23(db, "summary_jobs", "boundary_reason", "TEXT");
|
|
14468
13806
|
db.exec(`
|
|
14469
13807
|
CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
|
|
14470
13808
|
ON summary_jobs(agent_id, session_key, boundary_reason)
|
|
14471
13809
|
`);
|
|
14472
13810
|
}
|
|
14473
|
-
function
|
|
13811
|
+
function up92(db) {
|
|
14474
13812
|
db.exec(`
|
|
14475
13813
|
CREATE TABLE IF NOT EXISTS transcript_recovery_files (
|
|
14476
13814
|
agent_id TEXT NOT NULL,
|
|
@@ -14488,7 +13826,7 @@ function up90(db) {
|
|
|
14488
13826
|
ON transcript_capture_jobs(agent_id, session_id, status);
|
|
14489
13827
|
`);
|
|
14490
13828
|
}
|
|
14491
|
-
function
|
|
13829
|
+
function up93(db) {
|
|
14492
13830
|
db.exec(`
|
|
14493
13831
|
CREATE TABLE IF NOT EXISTS job_cancellations (
|
|
14494
13832
|
id TEXT PRIMARY KEY,
|
|
@@ -14516,7 +13854,7 @@ function indexExists(db, table, indexName) {
|
|
|
14516
13854
|
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
14517
13855
|
return rows.some((row) => row.name === indexName);
|
|
14518
13856
|
}
|
|
14519
|
-
function
|
|
13857
|
+
function up94(db) {
|
|
14520
13858
|
db.exec(`
|
|
14521
13859
|
CREATE TABLE IF NOT EXISTS job_archive (
|
|
14522
13860
|
id TEXT PRIMARY KEY,
|
|
@@ -14543,7 +13881,7 @@ function indexExists2(db, table, indexName) {
|
|
|
14543
13881
|
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
14544
13882
|
return rows.some((row) => row.name === indexName);
|
|
14545
13883
|
}
|
|
14546
|
-
function
|
|
13884
|
+
function up95(db) {
|
|
14547
13885
|
db.exec(`
|
|
14548
13886
|
CREATE TABLE IF NOT EXISTS embedding_index_state (
|
|
14549
13887
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
@@ -14556,7 +13894,7 @@ function up93(db) {
|
|
|
14556
13894
|
)
|
|
14557
13895
|
`);
|
|
14558
13896
|
}
|
|
14559
|
-
function
|
|
13897
|
+
function up96(db) {
|
|
14560
13898
|
db.exec(`
|
|
14561
13899
|
CREATE TABLE IF NOT EXISTS embeddings_staging (
|
|
14562
13900
|
id TEXT PRIMARY KEY,
|
|
@@ -14575,7 +13913,7 @@ function up94(db) {
|
|
|
14575
13913
|
ON embeddings_staging(agent_id, source_type, source_id);
|
|
14576
13914
|
`);
|
|
14577
13915
|
}
|
|
14578
|
-
function
|
|
13916
|
+
function up97(db) {
|
|
14579
13917
|
const columns = db.prepare("PRAGMA table_info(dreaming_state)").all();
|
|
14580
13918
|
if (!columns.some((column) => column.name === "evidence_cursor")) {
|
|
14581
13919
|
db.exec("ALTER TABLE dreaming_state ADD COLUMN evidence_cursor TEXT");
|
|
@@ -14586,7 +13924,7 @@ function hasColumn13(db, table, column) {
|
|
|
14586
13924
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14587
13925
|
return rows.some((r2) => r2.name === column);
|
|
14588
13926
|
}
|
|
14589
|
-
function
|
|
13927
|
+
function up98(db) {
|
|
14590
13928
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name = 'memories'").all();
|
|
14591
13929
|
if (tables.length === 0)
|
|
14592
13930
|
return;
|
|
@@ -14611,23 +13949,23 @@ function up96(db) {
|
|
|
14611
13949
|
function hasColumn14(db, table, column) {
|
|
14612
13950
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14613
13951
|
}
|
|
14614
|
-
function
|
|
13952
|
+
function up99(db) {
|
|
14615
13953
|
const hasMemories = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'memories'").get();
|
|
14616
13954
|
if (!hasMemories || !hasColumn14(db, "memories", "memory_kind") || !hasColumn14(db, "memories", "type"))
|
|
14617
13955
|
return;
|
|
14618
13956
|
db.exec("UPDATE memories SET memory_kind = NULL WHERE type = 'session_summary'");
|
|
14619
13957
|
}
|
|
14620
|
-
function
|
|
13958
|
+
function up100(db) {
|
|
14621
13959
|
db.exec("DROP TABLE IF EXISTS ingestion_jobs");
|
|
14622
13960
|
}
|
|
14623
|
-
function
|
|
13961
|
+
function up101(db) {
|
|
14624
13962
|
const columns = db.prepare("PRAGMA table_info(dreaming_state)").all();
|
|
14625
13963
|
if (!columns.some((column) => column.name === "last_failure_at")) {
|
|
14626
13964
|
db.exec("ALTER TABLE dreaming_state ADD COLUMN last_failure_at TEXT");
|
|
14627
13965
|
}
|
|
14628
13966
|
db.exec("UPDATE dreaming_state SET last_failure_at = updated_at WHERE consecutive_failures > 0 AND last_failure_at IS NULL");
|
|
14629
13967
|
}
|
|
14630
|
-
function
|
|
13968
|
+
function up102(db) {
|
|
14631
13969
|
db.exec(`
|
|
14632
13970
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_exclusions (
|
|
14633
13971
|
agent_id TEXT NOT NULL,
|
|
@@ -14644,7 +13982,7 @@ function up100(db) {
|
|
|
14644
13982
|
ON dreaming_evidence_exclusions (agent_id, resolved_at, requeue_requested_at, excluded_at DESC);
|
|
14645
13983
|
`);
|
|
14646
13984
|
}
|
|
14647
|
-
function
|
|
13985
|
+
function up103(db) {
|
|
14648
13986
|
db.exec(`
|
|
14649
13987
|
CREATE TABLE IF NOT EXISTS dreaming_tool_calls (
|
|
14650
13988
|
id TEXT PRIMARY KEY,
|
|
@@ -14664,7 +14002,7 @@ function up101(db) {
|
|
|
14664
14002
|
ON dreaming_tool_calls (agent_id, pass_id, sequence ASC);
|
|
14665
14003
|
`);
|
|
14666
14004
|
}
|
|
14667
|
-
function
|
|
14005
|
+
function up104(db) {
|
|
14668
14006
|
const columns = db.prepare("PRAGMA table_info(dreaming_passes)").all();
|
|
14669
14007
|
if (!columns.some((column) => column.name === "evidence_window_json")) {
|
|
14670
14008
|
db.exec("ALTER TABLE dreaming_passes ADD COLUMN evidence_window_json TEXT");
|
|
@@ -14673,7 +14011,7 @@ function up102(db) {
|
|
|
14673
14011
|
db.exec("ALTER TABLE dreaming_passes ADD COLUMN runbook_json TEXT");
|
|
14674
14012
|
}
|
|
14675
14013
|
}
|
|
14676
|
-
function
|
|
14014
|
+
function up105(db) {
|
|
14677
14015
|
db.exec(`
|
|
14678
14016
|
CREATE TABLE IF NOT EXISTS dreaming_attention (
|
|
14679
14017
|
id TEXT PRIMARY KEY,
|
|
@@ -14695,7 +14033,7 @@ function up103(db) {
|
|
|
14695
14033
|
function hasColumn15(db, table, column) {
|
|
14696
14034
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14697
14035
|
}
|
|
14698
|
-
function
|
|
14036
|
+
function up106(db) {
|
|
14699
14037
|
const requiredMemoryColumns = [
|
|
14700
14038
|
"content_hash",
|
|
14701
14039
|
"normalized_content",
|
|
@@ -14746,7 +14084,7 @@ function up104(db) {
|
|
|
14746
14084
|
WHERE EXISTS (SELECT 1 FROM memory_entity_mentions WHERE entity_id = entities.id)
|
|
14747
14085
|
`);
|
|
14748
14086
|
}
|
|
14749
|
-
function
|
|
14087
|
+
function up107(db) {
|
|
14750
14088
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name IN ('memories', 'entity_attributes')").all();
|
|
14751
14089
|
if (tables.length !== 2)
|
|
14752
14090
|
return;
|
|
@@ -14769,7 +14107,7 @@ function tableExists(db, table) {
|
|
|
14769
14107
|
function hasColumn16(db, table, column) {
|
|
14770
14108
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14771
14109
|
}
|
|
14772
|
-
function
|
|
14110
|
+
function up108(db) {
|
|
14773
14111
|
db.exec(`
|
|
14774
14112
|
CREATE TABLE IF NOT EXISTS derived_memory_sources (
|
|
14775
14113
|
derived_memory_id TEXT NOT NULL,
|
|
@@ -14812,7 +14150,7 @@ function up106(db) {
|
|
|
14812
14150
|
`);
|
|
14813
14151
|
}
|
|
14814
14152
|
}
|
|
14815
|
-
function
|
|
14153
|
+
function up109(db) {
|
|
14816
14154
|
db.exec(`
|
|
14817
14155
|
DROP TRIGGER IF EXISTS entities_fts_ai;
|
|
14818
14156
|
DROP TRIGGER IF EXISTS entities_fts_ad;
|
|
@@ -14901,7 +14239,7 @@ function up107(db) {
|
|
|
14901
14239
|
function hasColumn17(db, table, column) {
|
|
14902
14240
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
14903
14241
|
}
|
|
14904
|
-
function
|
|
14242
|
+
function up110(db) {
|
|
14905
14243
|
if (!hasColumn17(db, "memories", "review_after")) {
|
|
14906
14244
|
db.exec("ALTER TABLE memories ADD COLUMN review_after TEXT;");
|
|
14907
14245
|
}
|
|
@@ -14917,14 +14255,14 @@ var TOKEN_COLUMNS = [
|
|
|
14917
14255
|
["tokens_cache_write", "INTEGER"],
|
|
14918
14256
|
["tokens_cost", "REAL"]
|
|
14919
14257
|
];
|
|
14920
|
-
function
|
|
14258
|
+
function up111(db) {
|
|
14921
14259
|
for (const [column, type] of TOKEN_COLUMNS) {
|
|
14922
14260
|
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
14923
14261
|
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
14924
14262
|
}
|
|
14925
14263
|
}
|
|
14926
14264
|
}
|
|
14927
|
-
function
|
|
14265
|
+
function up112(db) {
|
|
14928
14266
|
db.exec(`
|
|
14929
14267
|
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
14930
14268
|
day TEXT NOT NULL,
|
|
@@ -14937,7 +14275,7 @@ function up110(db) {
|
|
|
14937
14275
|
);
|
|
14938
14276
|
`);
|
|
14939
14277
|
}
|
|
14940
|
-
function
|
|
14278
|
+
function up113(db) {
|
|
14941
14279
|
db.exec(`
|
|
14942
14280
|
CREATE TABLE IF NOT EXISTS telemetry_install (
|
|
14943
14281
|
id TEXT PRIMARY KEY,
|
|
@@ -14945,7 +14283,7 @@ function up111(db) {
|
|
|
14945
14283
|
);
|
|
14946
14284
|
`);
|
|
14947
14285
|
}
|
|
14948
|
-
function
|
|
14286
|
+
function up114(db) {
|
|
14949
14287
|
db.exec(`
|
|
14950
14288
|
CREATE INDEX IF NOT EXISTS idx_memory_entity_mentions_entity_memory
|
|
14951
14289
|
ON memory_entity_mentions(entity_id, memory_id);
|
|
@@ -14956,7 +14294,7 @@ function hasColumn19(db, table, column) {
|
|
|
14956
14294
|
return rows.some((row) => row.name === column);
|
|
14957
14295
|
}
|
|
14958
14296
|
var COLUMNS2 = ["first_remember_at", "first_recall_at"];
|
|
14959
|
-
function
|
|
14297
|
+
function up115(db) {
|
|
14960
14298
|
for (const column of COLUMNS2) {
|
|
14961
14299
|
if (!hasColumn19(db, "telemetry_install", column)) {
|
|
14962
14300
|
db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
|
|
@@ -14967,21 +14305,21 @@ function hasColumn20(db, table, column) {
|
|
|
14967
14305
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
14968
14306
|
return rows.some((row) => row.name === column);
|
|
14969
14307
|
}
|
|
14970
|
-
function
|
|
14308
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
14971
14309
|
if (!hasColumn20(db, "telemetry_events", column)) {
|
|
14972
14310
|
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
14973
14311
|
}
|
|
14974
14312
|
}
|
|
14975
|
-
function
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14313
|
+
function up116(db) {
|
|
14314
|
+
addColumnIfMissing24(db, "source", "TEXT NOT NULL DEFAULT 'daemon'");
|
|
14315
|
+
addColumnIfMissing24(db, "claim_token", "TEXT");
|
|
14316
|
+
addColumnIfMissing24(db, "claimed_at", "TEXT");
|
|
14979
14317
|
db.exec(`
|
|
14980
14318
|
CREATE INDEX IF NOT EXISTS idx_telemetry_events_queue
|
|
14981
14319
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
14982
14320
|
`);
|
|
14983
14321
|
}
|
|
14984
|
-
function
|
|
14322
|
+
function up117(db) {
|
|
14985
14323
|
db.exec(`
|
|
14986
14324
|
CREATE TABLE IF NOT EXISTS session_claims (
|
|
14987
14325
|
session_key TEXT NOT NULL,
|
|
@@ -15002,7 +14340,7 @@ function up115(db) {
|
|
|
15002
14340
|
ON session_claims(agent_id, state, expires_at);
|
|
15003
14341
|
`);
|
|
15004
14342
|
}
|
|
15005
|
-
function
|
|
14343
|
+
function up118(db) {
|
|
15006
14344
|
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'entity_attributes'").get();
|
|
15007
14345
|
if (table == null)
|
|
15008
14346
|
return;
|
|
@@ -15011,7 +14349,7 @@ function up116(db) {
|
|
|
15011
14349
|
ON entity_attributes(memory_id, agent_id, status, importance);
|
|
15012
14350
|
`);
|
|
15013
14351
|
}
|
|
15014
|
-
function
|
|
14352
|
+
function up119(db) {
|
|
15015
14353
|
db.exec(`
|
|
15016
14354
|
CREATE TABLE IF NOT EXISTS cross_agent_messages (
|
|
15017
14355
|
id TEXT PRIMARY KEY,
|
|
@@ -15063,26 +14401,26 @@ function up117(db) {
|
|
|
15063
14401
|
function hasColumn21(db, table, column) {
|
|
15064
14402
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
15065
14403
|
}
|
|
15066
|
-
function
|
|
14404
|
+
function addColumnIfMissing25(db, column, definition) {
|
|
15067
14405
|
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
15068
14406
|
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
15069
14407
|
}
|
|
15070
14408
|
}
|
|
15071
|
-
function
|
|
14409
|
+
function up120(db) {
|
|
15072
14410
|
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
15073
14411
|
if (table == null)
|
|
15074
14412
|
return;
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
14413
|
+
addColumnIfMissing25(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
14414
|
+
addColumnIfMissing25(db, "delivery_attempt_id", "TEXT");
|
|
14415
|
+
addColumnIfMissing25(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
14416
|
+
addColumnIfMissing25(db, "delivery_lease_token", "TEXT");
|
|
14417
|
+
addColumnIfMissing25(db, "delivery_lease_expires_at", "TEXT");
|
|
14418
|
+
addColumnIfMissing25(db, "delivery_attempt_started_at", "TEXT");
|
|
14419
|
+
addColumnIfMissing25(db, "delivery_updated_at", "TEXT");
|
|
14420
|
+
addColumnIfMissing25(db, "acp_base_url", "TEXT");
|
|
14421
|
+
addColumnIfMissing25(db, "acp_target_agent_name", "TEXT");
|
|
14422
|
+
addColumnIfMissing25(db, "acp_timeout_ms", "INTEGER");
|
|
14423
|
+
addColumnIfMissing25(db, "acp_metadata_json", "TEXT");
|
|
15086
14424
|
db.exec(`
|
|
15087
14425
|
UPDATE cross_agent_messages
|
|
15088
14426
|
SET delivery_state = CASE delivery_status
|
|
@@ -15107,7 +14445,7 @@ function up118(db) {
|
|
|
15107
14445
|
function hasTable4(db, table) {
|
|
15108
14446
|
return db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = ?").get(table) != null;
|
|
15109
14447
|
}
|
|
15110
|
-
function
|
|
14448
|
+
function addColumnIfMissing26(db, table, column, definition) {
|
|
15111
14449
|
const columns = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
15112
14450
|
if (columns.some((row) => row.name === column))
|
|
15113
14451
|
return;
|
|
@@ -15269,11 +14607,11 @@ function backfillTranscriptsFromSummaryJobs(db) {
|
|
|
15269
14607
|
insert.run(...values);
|
|
15270
14608
|
}
|
|
15271
14609
|
}
|
|
15272
|
-
function
|
|
14610
|
+
function up121(db) {
|
|
15273
14611
|
if (!hasTable4(db, "session_transcripts"))
|
|
15274
14612
|
return;
|
|
15275
|
-
|
|
15276
|
-
|
|
14613
|
+
addColumnIfMissing26(db, "session_transcripts", "completed_at", "TEXT");
|
|
14614
|
+
addColumnIfMissing26(db, "session_transcripts", "content_hash", "TEXT");
|
|
15277
14615
|
backfillTranscriptHashes(db);
|
|
15278
14616
|
if (hasTable4(db, "transcript_capture_jobs")) {
|
|
15279
14617
|
const captureColumns = db.prepare("PRAGMA table_info(transcript_capture_jobs)").all();
|
|
@@ -15322,7 +14660,7 @@ function up119(db) {
|
|
|
15322
14660
|
ON session_transcripts(agent_id, content_hash);
|
|
15323
14661
|
`);
|
|
15324
14662
|
}
|
|
15325
|
-
function
|
|
14663
|
+
function up122(db) {
|
|
15326
14664
|
db.exec(`
|
|
15327
14665
|
CREATE INDEX IF NOT EXISTS idx_memory_jobs_pressure_status
|
|
15328
14666
|
ON memory_jobs(status)
|
|
@@ -15341,12 +14679,12 @@ function up120(db) {
|
|
|
15341
14679
|
function hasColumn22(db, table, column) {
|
|
15342
14680
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
15343
14681
|
}
|
|
15344
|
-
function
|
|
14682
|
+
function up123(db) {
|
|
15345
14683
|
if (!hasColumn22(db, "telemetry_install", "last_seen_version")) {
|
|
15346
14684
|
db.exec("ALTER TABLE telemetry_install ADD COLUMN last_seen_version TEXT");
|
|
15347
14685
|
}
|
|
15348
14686
|
}
|
|
15349
|
-
function
|
|
14687
|
+
function up124(db) {
|
|
15350
14688
|
db.exec(`
|
|
15351
14689
|
CREATE TABLE IF NOT EXISTS source_lifecycle_state (
|
|
15352
14690
|
agent_id TEXT NOT NULL,
|
|
@@ -15370,16 +14708,16 @@ function up122(db) {
|
|
|
15370
14708
|
function hasColumn23(db, table, column) {
|
|
15371
14709
|
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
15372
14710
|
}
|
|
15373
|
-
function
|
|
14711
|
+
function addColumnIfMissing27(db, column, definition) {
|
|
15374
14712
|
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
15375
14713
|
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
15376
14714
|
}
|
|
15377
14715
|
}
|
|
15378
|
-
function
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
14716
|
+
function up125(db) {
|
|
14717
|
+
addColumnIfMissing27(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
14718
|
+
addColumnIfMissing27(db, "last_attempt_at", "TEXT");
|
|
14719
|
+
addColumnIfMissing27(db, "sent_at", "TEXT");
|
|
14720
|
+
addColumnIfMissing27(db, "last_failure_code", "TEXT");
|
|
15383
14721
|
db.exec(`
|
|
15384
14722
|
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
15385
14723
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
@@ -15396,7 +14734,7 @@ function up123(db) {
|
|
|
15396
14734
|
VALUES (1, CURRENT_TIMESTAMP);
|
|
15397
14735
|
`);
|
|
15398
14736
|
}
|
|
15399
|
-
function
|
|
14737
|
+
function up126(db) {
|
|
15400
14738
|
const columns = db.prepare("PRAGMA table_info(dreaming_evidence_exclusions)").all();
|
|
15401
14739
|
const names = new Set(columns.map((column) => column.name));
|
|
15402
14740
|
if (!names.has("failure_class")) {
|
|
@@ -15413,7 +14751,7 @@ function up124(db) {
|
|
|
15413
14751
|
}
|
|
15414
14752
|
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)");
|
|
15415
14753
|
}
|
|
15416
|
-
function
|
|
14754
|
+
function up127(db) {
|
|
15417
14755
|
db.exec(`
|
|
15418
14756
|
CREATE TABLE IF NOT EXISTS embedding_index_failures (
|
|
15419
14757
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
@@ -15437,7 +14775,7 @@ function up125(db) {
|
|
|
15437
14775
|
ON embedding_index_failures(source_type, source_id);
|
|
15438
14776
|
`);
|
|
15439
14777
|
}
|
|
15440
|
-
function
|
|
14778
|
+
function up128(db) {
|
|
15441
14779
|
db.exec(`
|
|
15442
14780
|
CREATE TABLE IF NOT EXISTS imported_source_lifecycle (
|
|
15443
14781
|
id TEXT PRIMARY KEY,
|
|
@@ -15487,7 +14825,7 @@ function backfillTable(db, params) {
|
|
|
15487
14825
|
FROM ${params.table}${params.where ? ` WHERE ${params.where}` : ""}`).all();
|
|
15488
14826
|
backfill(db, rows, params.sourceKind, params.scannedAt);
|
|
15489
14827
|
}
|
|
15490
|
-
function
|
|
14828
|
+
function up129(db) {
|
|
15491
14829
|
db.exec(`
|
|
15492
14830
|
CREATE TABLE IF NOT EXISTS memory_content_safety (
|
|
15493
14831
|
agent_id TEXT NOT NULL,
|
|
@@ -15544,7 +14882,7 @@ function up127(db) {
|
|
|
15544
14882
|
scannedAt
|
|
15545
14883
|
});
|
|
15546
14884
|
}
|
|
15547
|
-
function
|
|
14885
|
+
function up130(db) {
|
|
15548
14886
|
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
15549
14887
|
if (!table)
|
|
15550
14888
|
return;
|
|
@@ -15578,7 +14916,7 @@ function up128(db) {
|
|
|
15578
14916
|
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
15579
14917
|
`);
|
|
15580
14918
|
}
|
|
15581
|
-
function
|
|
14919
|
+
function up131(db) {
|
|
15582
14920
|
db.exec(`
|
|
15583
14921
|
CREATE TABLE IF NOT EXISTS ontology_contradictions (
|
|
15584
14922
|
id TEXT PRIMARY KEY,
|
|
@@ -15634,7 +14972,7 @@ function up129(db) {
|
|
|
15634
14972
|
ON ontology_contradictions(agent_id, left_source_id, right_source_id);
|
|
15635
14973
|
`);
|
|
15636
14974
|
}
|
|
15637
|
-
function
|
|
14975
|
+
function up132(db) {
|
|
15638
14976
|
db.exec(`
|
|
15639
14977
|
CREATE INDEX IF NOT EXISTS idx_memory_jobs_diagnostics_status_created_at
|
|
15640
14978
|
ON memory_jobs(status, created_at)
|
|
@@ -15649,7 +14987,7 @@ function up130(db) {
|
|
|
15649
14987
|
function tableExists3(db, table) {
|
|
15650
14988
|
return db.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?").get(table) != null;
|
|
15651
14989
|
}
|
|
15652
|
-
function
|
|
14990
|
+
function up133(db) {
|
|
15653
14991
|
if (!tableExists3(db, "memory_jobs"))
|
|
15654
14992
|
return;
|
|
15655
14993
|
if (!tableExists3(db, "job_cancellations")) {
|
|
@@ -15698,7 +15036,7 @@ function up131(db) {
|
|
|
15698
15036
|
AND status IN ('pending', 'leased');
|
|
15699
15037
|
`);
|
|
15700
15038
|
}
|
|
15701
|
-
function
|
|
15039
|
+
function up134(db) {
|
|
15702
15040
|
db.exec(`
|
|
15703
15041
|
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
15704
15042
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
@@ -15738,7 +15076,7 @@ function up132(db) {
|
|
|
15738
15076
|
END;
|
|
15739
15077
|
`);
|
|
15740
15078
|
}
|
|
15741
|
-
function
|
|
15079
|
+
function up135(db) {
|
|
15742
15080
|
db.exec(`
|
|
15743
15081
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_consumption (
|
|
15744
15082
|
agent_id TEXT NOT NULL,
|
|
@@ -15761,13 +15099,13 @@ function up133(db) {
|
|
|
15761
15099
|
ON dreaming_evidence_consumption(agent_id, pass_id, delivered_offset, source_length);
|
|
15762
15100
|
`);
|
|
15763
15101
|
}
|
|
15764
|
-
function
|
|
15102
|
+
function up136(db) {
|
|
15765
15103
|
db.exec(`
|
|
15766
15104
|
CREATE INDEX IF NOT EXISTS idx_epistemic_assertions_observer_entity
|
|
15767
15105
|
ON epistemic_assertions(agent_id, subject_entity_id, status, asserted_at DESC, created_at DESC);
|
|
15768
15106
|
`);
|
|
15769
15107
|
}
|
|
15770
|
-
function
|
|
15108
|
+
function up137(db) {
|
|
15771
15109
|
db.exec(`
|
|
15772
15110
|
CREATE TABLE IF NOT EXISTS memory_head_revisions (
|
|
15773
15111
|
id TEXT PRIMARY KEY,
|
|
@@ -15819,7 +15157,7 @@ function up135(db) {
|
|
|
15819
15157
|
if (!names.has("format_version"))
|
|
15820
15158
|
db.exec("ALTER TABLE memory_md_heads ADD COLUMN format_version INTEGER NOT NULL DEFAULT 1");
|
|
15821
15159
|
}
|
|
15822
|
-
function
|
|
15160
|
+
function up138(db) {
|
|
15823
15161
|
db.exec(`
|
|
15824
15162
|
CREATE TABLE memory_head_entries_v134 (
|
|
15825
15163
|
entry_id TEXT NOT NULL, agent_id TEXT NOT NULL, canonical_text TEXT NOT NULL,
|
|
@@ -15837,7 +15175,7 @@ function up136(db) {
|
|
|
15837
15175
|
ON memory_head_entries(agent_id, entry_id, last_revision DESC);
|
|
15838
15176
|
`);
|
|
15839
15177
|
}
|
|
15840
|
-
function
|
|
15178
|
+
function up139(db) {
|
|
15841
15179
|
db.exec(`
|
|
15842
15180
|
CREATE TABLE IF NOT EXISTS memory_head_publications (
|
|
15843
15181
|
agent_id TEXT NOT NULL,
|
|
@@ -15853,7 +15191,7 @@ function up137(db) {
|
|
|
15853
15191
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
15854
15192
|
`);
|
|
15855
15193
|
}
|
|
15856
|
-
function
|
|
15194
|
+
function up140(db) {
|
|
15857
15195
|
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r2) => r2.name));
|
|
15858
15196
|
for (const [name, type] of [
|
|
15859
15197
|
["entry_id", "TEXT"],
|
|
@@ -15867,7 +15205,7 @@ function up138(db) {
|
|
|
15867
15205
|
}
|
|
15868
15206
|
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
15869
15207
|
}
|
|
15870
|
-
function
|
|
15208
|
+
function up141(db) {
|
|
15871
15209
|
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r2) => r2.name));
|
|
15872
15210
|
for (const [name, type] of [
|
|
15873
15211
|
["head_revision", "INTEGER"],
|
|
@@ -15885,12 +15223,12 @@ function hasColumn25(db, table, column) {
|
|
|
15885
15223
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
15886
15224
|
return rows.some((row) => row.name === column);
|
|
15887
15225
|
}
|
|
15888
|
-
function
|
|
15226
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
15889
15227
|
if (!hasColumn25(db, table, column))
|
|
15890
15228
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
15891
15229
|
}
|
|
15892
|
-
function
|
|
15893
|
-
|
|
15230
|
+
function up142(db) {
|
|
15231
|
+
addColumnIfMissing28(db, "memories", "manual_override", "INTEGER DEFAULT 0");
|
|
15894
15232
|
db.exec(`
|
|
15895
15233
|
CREATE TABLE IF NOT EXISTS transcript_capture_status (
|
|
15896
15234
|
agent_id TEXT PRIMARY KEY,
|
|
@@ -16194,7 +15532,7 @@ function up140(db) {
|
|
|
16194
15532
|
GROUP BY j.agent_id;
|
|
16195
15533
|
`);
|
|
16196
15534
|
}
|
|
16197
|
-
function
|
|
15535
|
+
function up143(db) {
|
|
16198
15536
|
db.exec(`
|
|
16199
15537
|
CREATE TABLE IF NOT EXISTS native_source_sync_state (
|
|
16200
15538
|
agent_id TEXT NOT NULL,
|
|
@@ -16210,7 +15548,7 @@ function up141(db) {
|
|
|
16210
15548
|
ON native_source_sync_state(agent_id, status);
|
|
16211
15549
|
`);
|
|
16212
15550
|
}
|
|
16213
|
-
function
|
|
15551
|
+
function up144(db) {
|
|
16214
15552
|
db.exec(`
|
|
16215
15553
|
CREATE TABLE IF NOT EXISTS transcript_recovery_frontiers (
|
|
16216
15554
|
agent_id TEXT NOT NULL,
|
|
@@ -16222,7 +15560,7 @@ function up142(db) {
|
|
|
16222
15560
|
);
|
|
16223
15561
|
`);
|
|
16224
15562
|
}
|
|
16225
|
-
function
|
|
15563
|
+
function up145(db) {
|
|
16226
15564
|
db.exec(`
|
|
16227
15565
|
CREATE TABLE IF NOT EXISTS source_sync_checkpoints (
|
|
16228
15566
|
agent_id TEXT NOT NULL,
|
|
@@ -16236,13 +15574,13 @@ function up143(db) {
|
|
|
16236
15574
|
);
|
|
16237
15575
|
`);
|
|
16238
15576
|
}
|
|
16239
|
-
function
|
|
15577
|
+
function up146(db) {
|
|
16240
15578
|
const columns = db.prepare("PRAGMA table_info(source_sync_checkpoints)").all();
|
|
16241
15579
|
if (!columns.some((column) => column.name === "frontier")) {
|
|
16242
15580
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
16243
15581
|
}
|
|
16244
15582
|
}
|
|
16245
|
-
function
|
|
15583
|
+
function up147(db) {
|
|
16246
15584
|
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
16247
15585
|
const additions = [
|
|
16248
15586
|
["migration_phase", "TEXT"],
|
|
@@ -16277,13 +15615,13 @@ function up145(db) {
|
|
|
16277
15615
|
`);
|
|
16278
15616
|
}
|
|
16279
15617
|
}
|
|
16280
|
-
function
|
|
15618
|
+
function up148(db) {
|
|
16281
15619
|
const columns = new Set(db.prepare("PRAGMA table_info(memory_jobs)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
16282
15620
|
if (!columns.has("lease_token")) {
|
|
16283
15621
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN lease_token TEXT");
|
|
16284
15622
|
}
|
|
16285
15623
|
}
|
|
16286
|
-
function
|
|
15624
|
+
function up149(db) {
|
|
16287
15625
|
db.exec(`
|
|
16288
15626
|
CREATE TABLE IF NOT EXISTS dreaming_evidence_reviews (
|
|
16289
15627
|
agent_id TEXT NOT NULL,
|
|
@@ -16301,7 +15639,7 @@ function up147(db) {
|
|
|
16301
15639
|
ON dreaming_evidence_reviews (agent_id, reviewed_at DESC);
|
|
16302
15640
|
`);
|
|
16303
15641
|
}
|
|
16304
|
-
function
|
|
15642
|
+
function up150(db) {
|
|
16305
15643
|
db.exec(`
|
|
16306
15644
|
CREATE TABLE IF NOT EXISTS source_import_jobs (
|
|
16307
15645
|
id TEXT PRIMARY KEY, kind TEXT NOT NULL CHECK (kind = 'import'), agent_id TEXT NOT NULL,
|
|
@@ -16368,16 +15706,16 @@ function up148(db) {
|
|
|
16368
15706
|
}
|
|
16369
15707
|
db.exec("CREATE INDEX IF NOT EXISTS idx_session_transcripts_agent_source ON session_transcripts(agent_id, source_id)");
|
|
16370
15708
|
}
|
|
16371
|
-
function
|
|
15709
|
+
function up151(db) {
|
|
16372
15710
|
db.exec("CREATE INDEX IF NOT EXISTS idx_source_import_files_job_state ON source_import_files(job_id, state)");
|
|
16373
15711
|
}
|
|
16374
|
-
function
|
|
15712
|
+
function up152(db) {
|
|
16375
15713
|
const columns = db.prepare("PRAGMA table_info(source_import_record_attempts)").all();
|
|
16376
15714
|
if (!columns.some((column) => column.name === "source_id")) {
|
|
16377
15715
|
db.exec("ALTER TABLE source_import_record_attempts ADD COLUMN source_id TEXT");
|
|
16378
15716
|
}
|
|
16379
15717
|
}
|
|
16380
|
-
function
|
|
15718
|
+
function up153(db) {
|
|
16381
15719
|
const addColumn = (table, column, definition) => {
|
|
16382
15720
|
const statement = db.prepare("SELECT 1 AS found FROM pragma_table_info(?) WHERE name = ?");
|
|
16383
15721
|
let exists;
|
|
@@ -16393,14 +15731,14 @@ function up151(db) {
|
|
|
16393
15731
|
addColumn("source_import_jobs", "next_attempt_at", "TEXT");
|
|
16394
15732
|
addColumn("source_import_files", "error", "TEXT");
|
|
16395
15733
|
}
|
|
16396
|
-
function
|
|
15734
|
+
function addColumnIfMissing29(db, table, column, definition) {
|
|
16397
15735
|
const columns = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
16398
15736
|
if (!columns.some((row) => row.name === column))
|
|
16399
15737
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
16400
15738
|
}
|
|
16401
|
-
function
|
|
16402
|
-
|
|
16403
|
-
|
|
15739
|
+
function up154(db) {
|
|
15740
|
+
addColumnIfMissing29(db, "memory_md_heads", "is_current", "INTEGER NOT NULL DEFAULT 0");
|
|
15741
|
+
addColumnIfMissing29(db, "dreaming_passes", "head_base_revision", "INTEGER");
|
|
16404
15742
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_head_revisions_content_hash ON memory_head_revisions(content_hash)");
|
|
16405
15743
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memory_md_heads_content_hash ON memory_md_heads(content_hash)");
|
|
16406
15744
|
db.exec(`
|
|
@@ -16548,7 +15886,7 @@ function up152(db) {
|
|
|
16548
15886
|
`);
|
|
16549
15887
|
}
|
|
16550
15888
|
}
|
|
16551
|
-
function
|
|
15889
|
+
function up155(db) {
|
|
16552
15890
|
db.exec(`
|
|
16553
15891
|
CREATE TABLE IF NOT EXISTS vector_repair_checkpoints (
|
|
16554
15892
|
operation TEXT NOT NULL CHECK (operation IN ('resync', 'clean-orphans')),
|
|
@@ -16573,17 +15911,53 @@ function up153(db) {
|
|
|
16573
15911
|
ON vector_repair_checkpoints(status, updated_at);
|
|
16574
15912
|
`);
|
|
16575
15913
|
}
|
|
15914
|
+
function up156(db) {
|
|
15915
|
+
db.exec(`
|
|
15916
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_checkpoints (
|
|
15917
|
+
checkpoint_id TEXT PRIMARY KEY,
|
|
15918
|
+
agent_id TEXT NOT NULL CHECK (length(trim(agent_id)) > 0),
|
|
15919
|
+
model TEXT NOT NULL CHECK (length(trim(model)) > 0),
|
|
15920
|
+
status TEXT NOT NULL DEFAULT 'running' CHECK (status IN ('running', 'complete', 'failed')),
|
|
15921
|
+
batches INTEGER NOT NULL DEFAULT 0 CHECK (batches >= 0),
|
|
15922
|
+
selected INTEGER NOT NULL DEFAULT 0 CHECK (selected >= 0),
|
|
15923
|
+
written INTEGER NOT NULL DEFAULT 0 CHECK (written >= 0),
|
|
15924
|
+
failed INTEGER NOT NULL DEFAULT 0 CHECK (failed >= 0),
|
|
15925
|
+
stale INTEGER NOT NULL DEFAULT 0 CHECK (stale >= 0),
|
|
15926
|
+
cross_agent_hash_conflicts INTEGER NOT NULL DEFAULT 0 CHECK (cross_agent_hash_conflicts >= 0),
|
|
15927
|
+
last_error TEXT,
|
|
15928
|
+
created_at TEXT NOT NULL,
|
|
15929
|
+
updated_at TEXT NOT NULL
|
|
15930
|
+
);
|
|
15931
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_checkpoints_status
|
|
15932
|
+
ON embedding_repair_checkpoints(status, updated_at);
|
|
15933
|
+
`);
|
|
15934
|
+
}
|
|
15935
|
+
function up157(db) {
|
|
15936
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_repair_checkpoints)").all().map((row) => row.name));
|
|
15937
|
+
if (!columns.has("profile_fingerprint")) {
|
|
15938
|
+
db.exec("ALTER TABLE embedding_repair_checkpoints ADD COLUMN profile_fingerprint TEXT");
|
|
15939
|
+
}
|
|
15940
|
+
db.exec(`
|
|
15941
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_progress (
|
|
15942
|
+
agent_id TEXT PRIMARY KEY CHECK (length(trim(agent_id)) > 0),
|
|
15943
|
+
last_completed_at TEXT,
|
|
15944
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
15945
|
+
last_error TEXT,
|
|
15946
|
+
updated_at TEXT NOT NULL
|
|
15947
|
+
);
|
|
15948
|
+
`);
|
|
15949
|
+
}
|
|
16576
15950
|
var MIGRATIONS = [
|
|
16577
15951
|
{
|
|
16578
15952
|
version: 1,
|
|
16579
15953
|
name: "baseline",
|
|
16580
|
-
up:
|
|
15954
|
+
up: up5,
|
|
16581
15955
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
16582
15956
|
},
|
|
16583
15957
|
{
|
|
16584
15958
|
version: 2,
|
|
16585
15959
|
name: "pipeline-v2",
|
|
16586
|
-
up:
|
|
15960
|
+
up: up6,
|
|
16587
15961
|
artifacts: {
|
|
16588
15962
|
tables: ["memory_history", "memory_jobs", "entities", "relations", "memory_entity_mentions"]
|
|
16589
15963
|
}
|
|
@@ -16591,12 +15965,12 @@ var MIGRATIONS = [
|
|
|
16591
15965
|
{
|
|
16592
15966
|
version: 3,
|
|
16593
15967
|
name: "unique-content-hash",
|
|
16594
|
-
up:
|
|
15968
|
+
up: up7
|
|
16595
15969
|
},
|
|
16596
15970
|
{
|
|
16597
15971
|
version: 4,
|
|
16598
15972
|
name: "history-actor-and-retention",
|
|
16599
|
-
up:
|
|
15973
|
+
up: up8,
|
|
16600
15974
|
artifacts: {
|
|
16601
15975
|
columns: [{ table: "memory_history", column: "actor_type" }]
|
|
16602
15976
|
}
|
|
@@ -16604,7 +15978,7 @@ var MIGRATIONS = [
|
|
|
16604
15978
|
{
|
|
16605
15979
|
version: 5,
|
|
16606
15980
|
name: "graph-extended",
|
|
16607
|
-
up:
|
|
15981
|
+
up: up9,
|
|
16608
15982
|
artifacts: {
|
|
16609
15983
|
columns: [{ table: "entities", column: "canonical_name" }]
|
|
16610
15984
|
}
|
|
@@ -16612,7 +15986,7 @@ var MIGRATIONS = [
|
|
|
16612
15986
|
{
|
|
16613
15987
|
version: 6,
|
|
16614
15988
|
name: "idempotency-key",
|
|
16615
|
-
up:
|
|
15989
|
+
up: up10,
|
|
16616
15990
|
artifacts: {
|
|
16617
15991
|
columns: [{ table: "memories", column: "idempotency_key" }]
|
|
16618
15992
|
}
|
|
@@ -16620,42 +15994,42 @@ var MIGRATIONS = [
|
|
|
16620
15994
|
{
|
|
16621
15995
|
version: 7,
|
|
16622
15996
|
name: "documents-and-connectors",
|
|
16623
|
-
up:
|
|
15997
|
+
up: up11,
|
|
16624
15998
|
artifacts: { tables: ["documents", "document_memories", "connectors"] }
|
|
16625
15999
|
},
|
|
16626
16000
|
{
|
|
16627
16001
|
version: 8,
|
|
16628
16002
|
name: "embeddings-unique-hash",
|
|
16629
|
-
up:
|
|
16003
|
+
up: up12
|
|
16630
16004
|
},
|
|
16631
16005
|
{
|
|
16632
16006
|
version: 9,
|
|
16633
16007
|
name: "summary-jobs",
|
|
16634
|
-
up:
|
|
16008
|
+
up: up13,
|
|
16635
16009
|
artifacts: { tables: ["summary_jobs"] }
|
|
16636
16010
|
},
|
|
16637
16011
|
{
|
|
16638
16012
|
version: 10,
|
|
16639
16013
|
name: "umap-cache",
|
|
16640
|
-
up:
|
|
16014
|
+
up: up14,
|
|
16641
16015
|
artifacts: { tables: ["umap_cache"] }
|
|
16642
16016
|
},
|
|
16643
16017
|
{
|
|
16644
16018
|
version: 11,
|
|
16645
16019
|
name: "session-scores",
|
|
16646
|
-
up:
|
|
16020
|
+
up: up15,
|
|
16647
16021
|
artifacts: { tables: ["session_scores"] }
|
|
16648
16022
|
},
|
|
16649
16023
|
{
|
|
16650
16024
|
version: 12,
|
|
16651
16025
|
name: "scheduled-tasks",
|
|
16652
|
-
up:
|
|
16026
|
+
up: up16,
|
|
16653
16027
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
16654
16028
|
},
|
|
16655
16029
|
{
|
|
16656
16030
|
version: 13,
|
|
16657
16031
|
name: "ingestion-tracking",
|
|
16658
|
-
up:
|
|
16032
|
+
up: up17,
|
|
16659
16033
|
artifacts: {
|
|
16660
16034
|
columns: [
|
|
16661
16035
|
{ table: "memories", column: "source_path" },
|
|
@@ -16666,13 +16040,13 @@ var MIGRATIONS = [
|
|
|
16666
16040
|
{
|
|
16667
16041
|
version: 14,
|
|
16668
16042
|
name: "telemetry",
|
|
16669
|
-
up:
|
|
16043
|
+
up: up18,
|
|
16670
16044
|
artifacts: { tables: ["telemetry_events"] }
|
|
16671
16045
|
},
|
|
16672
16046
|
{
|
|
16673
16047
|
version: 15,
|
|
16674
16048
|
name: "session-memories",
|
|
16675
|
-
up:
|
|
16049
|
+
up: up19,
|
|
16676
16050
|
artifacts: {
|
|
16677
16051
|
tables: ["session_memories"],
|
|
16678
16052
|
columns: [
|
|
@@ -16684,13 +16058,13 @@ var MIGRATIONS = [
|
|
|
16684
16058
|
{
|
|
16685
16059
|
version: 16,
|
|
16686
16060
|
name: "session-checkpoints",
|
|
16687
|
-
up:
|
|
16061
|
+
up: up20,
|
|
16688
16062
|
artifacts: { tables: ["session_checkpoints"] }
|
|
16689
16063
|
},
|
|
16690
16064
|
{
|
|
16691
16065
|
version: 17,
|
|
16692
16066
|
name: "task-skills",
|
|
16693
|
-
up:
|
|
16067
|
+
up: up21,
|
|
16694
16068
|
artifacts: {
|
|
16695
16069
|
columns: [{ table: "scheduled_tasks", column: "skill_name" }]
|
|
16696
16070
|
}
|
|
@@ -16698,13 +16072,13 @@ var MIGRATIONS = [
|
|
|
16698
16072
|
{
|
|
16699
16073
|
version: 18,
|
|
16700
16074
|
name: "skill-meta",
|
|
16701
|
-
up:
|
|
16075
|
+
up: up22,
|
|
16702
16076
|
artifacts: { tables: ["skill_meta"] }
|
|
16703
16077
|
},
|
|
16704
16078
|
{
|
|
16705
16079
|
version: 19,
|
|
16706
16080
|
name: "knowledge-structure",
|
|
16707
|
-
up:
|
|
16081
|
+
up: up23,
|
|
16708
16082
|
artifacts: {
|
|
16709
16083
|
tables: ["entity_aspects", "entity_attributes", "entity_dependencies", "task_meta"],
|
|
16710
16084
|
columns: [{ table: "entities", column: "agent_id" }]
|
|
@@ -16713,7 +16087,7 @@ var MIGRATIONS = [
|
|
|
16713
16087
|
{
|
|
16714
16088
|
version: 20,
|
|
16715
16089
|
name: "session-structural-columns",
|
|
16716
|
-
up:
|
|
16090
|
+
up: up24,
|
|
16717
16091
|
artifacts: {
|
|
16718
16092
|
columns: [
|
|
16719
16093
|
{ table: "session_memories", column: "entity_slot" },
|
|
@@ -16726,7 +16100,7 @@ var MIGRATIONS = [
|
|
|
16726
16100
|
{
|
|
16727
16101
|
version: 21,
|
|
16728
16102
|
name: "checkpoint-structural",
|
|
16729
|
-
up:
|
|
16103
|
+
up: up25,
|
|
16730
16104
|
artifacts: {
|
|
16731
16105
|
columns: [{ table: "session_checkpoints", column: "focal_entity_ids" }]
|
|
16732
16106
|
}
|
|
@@ -16734,7 +16108,7 @@ var MIGRATIONS = [
|
|
|
16734
16108
|
{
|
|
16735
16109
|
version: 22,
|
|
16736
16110
|
name: "entity-pinning",
|
|
16737
|
-
up:
|
|
16111
|
+
up: up26,
|
|
16738
16112
|
artifacts: {
|
|
16739
16113
|
columns: [
|
|
16740
16114
|
{ table: "entities", column: "pinned" },
|
|
@@ -16745,17 +16119,17 @@ var MIGRATIONS = [
|
|
|
16745
16119
|
{
|
|
16746
16120
|
version: 23,
|
|
16747
16121
|
name: "retired-scorer-gap",
|
|
16748
|
-
up:
|
|
16122
|
+
up: up27
|
|
16749
16123
|
},
|
|
16750
16124
|
{
|
|
16751
16125
|
version: 24,
|
|
16752
16126
|
name: "retired-scorer-gap",
|
|
16753
|
-
up:
|
|
16127
|
+
up: up28
|
|
16754
16128
|
},
|
|
16755
16129
|
{
|
|
16756
16130
|
version: 25,
|
|
16757
16131
|
name: "agent-feedback",
|
|
16758
|
-
up:
|
|
16132
|
+
up: up29,
|
|
16759
16133
|
artifacts: {
|
|
16760
16134
|
columns: [{ table: "session_memories", column: "agent_relevance_score" }]
|
|
16761
16135
|
}
|
|
@@ -16763,32 +16137,32 @@ var MIGRATIONS = [
|
|
|
16763
16137
|
{
|
|
16764
16138
|
version: 26,
|
|
16765
16139
|
name: "retired-scorer-gap",
|
|
16766
|
-
up:
|
|
16140
|
+
up: up30
|
|
16767
16141
|
},
|
|
16768
16142
|
{
|
|
16769
16143
|
version: 27,
|
|
16770
16144
|
name: "backfill-canonical-names",
|
|
16771
|
-
up:
|
|
16145
|
+
up: up31
|
|
16772
16146
|
},
|
|
16773
16147
|
{
|
|
16774
16148
|
version: 28,
|
|
16775
16149
|
name: "lossless-retention",
|
|
16776
|
-
up:
|
|
16150
|
+
up: up32
|
|
16777
16151
|
},
|
|
16778
16152
|
{
|
|
16779
16153
|
version: 29,
|
|
16780
16154
|
name: "session-summary-dag",
|
|
16781
|
-
up:
|
|
16155
|
+
up: up33
|
|
16782
16156
|
},
|
|
16783
16157
|
{
|
|
16784
16158
|
version: 30,
|
|
16785
16159
|
name: "nullable-memory-job-memory-id",
|
|
16786
|
-
up:
|
|
16160
|
+
up: up34
|
|
16787
16161
|
},
|
|
16788
16162
|
{
|
|
16789
16163
|
version: 31,
|
|
16790
16164
|
name: "dependency-reason",
|
|
16791
|
-
up:
|
|
16165
|
+
up: up35,
|
|
16792
16166
|
artifacts: {
|
|
16793
16167
|
columns: [
|
|
16794
16168
|
{ table: "entity_dependencies", column: "reason" },
|
|
@@ -16799,7 +16173,7 @@ var MIGRATIONS = [
|
|
|
16799
16173
|
{
|
|
16800
16174
|
version: 32,
|
|
16801
16175
|
name: "embeddings-vector-column",
|
|
16802
|
-
up:
|
|
16176
|
+
up: up36,
|
|
16803
16177
|
artifacts: {
|
|
16804
16178
|
columns: [{ table: "embeddings", column: "vector", optional: true }]
|
|
16805
16179
|
}
|
|
@@ -16807,7 +16181,7 @@ var MIGRATIONS = [
|
|
|
16807
16181
|
{
|
|
16808
16182
|
version: 33,
|
|
16809
16183
|
name: "scope",
|
|
16810
|
-
up:
|
|
16184
|
+
up: up37,
|
|
16811
16185
|
artifacts: {
|
|
16812
16186
|
columns: [{ table: "memories", column: "scope" }]
|
|
16813
16187
|
}
|
|
@@ -16815,17 +16189,17 @@ var MIGRATIONS = [
|
|
|
16815
16189
|
{
|
|
16816
16190
|
version: 34,
|
|
16817
16191
|
name: "scope-aware-dedup",
|
|
16818
|
-
up:
|
|
16192
|
+
up: up38
|
|
16819
16193
|
},
|
|
16820
16194
|
{
|
|
16821
16195
|
version: 35,
|
|
16822
16196
|
name: "entity-fts",
|
|
16823
|
-
up:
|
|
16197
|
+
up: up39
|
|
16824
16198
|
},
|
|
16825
16199
|
{
|
|
16826
16200
|
version: 36,
|
|
16827
16201
|
name: "dependency-confidence",
|
|
16828
|
-
up:
|
|
16202
|
+
up: up40,
|
|
16829
16203
|
artifacts: {
|
|
16830
16204
|
columns: [{ table: "entity_dependencies", column: "confidence" }]
|
|
16831
16205
|
}
|
|
@@ -16833,7 +16207,7 @@ var MIGRATIONS = [
|
|
|
16833
16207
|
{
|
|
16834
16208
|
version: 37,
|
|
16835
16209
|
name: "entity-communities",
|
|
16836
|
-
up:
|
|
16210
|
+
up: up41,
|
|
16837
16211
|
artifacts: {
|
|
16838
16212
|
tables: ["entity_communities"],
|
|
16839
16213
|
columns: [{ table: "entities", column: "community_id" }]
|
|
@@ -16842,24 +16216,24 @@ var MIGRATIONS = [
|
|
|
16842
16216
|
{
|
|
16843
16217
|
version: 38,
|
|
16844
16218
|
name: "memory-hints",
|
|
16845
|
-
up:
|
|
16219
|
+
up: up42,
|
|
16846
16220
|
artifacts: { tables: ["memory_hints"] }
|
|
16847
16221
|
},
|
|
16848
16222
|
{
|
|
16849
16223
|
version: 39,
|
|
16850
16224
|
name: "dedup-entity-dependencies",
|
|
16851
|
-
up:
|
|
16225
|
+
up: up43
|
|
16852
16226
|
},
|
|
16853
16227
|
{
|
|
16854
16228
|
version: 40,
|
|
16855
16229
|
name: "session-transcripts",
|
|
16856
|
-
up:
|
|
16230
|
+
up: up44,
|
|
16857
16231
|
artifacts: { tables: ["session_transcripts"] }
|
|
16858
16232
|
},
|
|
16859
16233
|
{
|
|
16860
16234
|
version: 41,
|
|
16861
16235
|
name: "path-feedback",
|
|
16862
|
-
up:
|
|
16236
|
+
up: up45,
|
|
16863
16237
|
artifacts: {
|
|
16864
16238
|
tables: [
|
|
16865
16239
|
"path_feedback_events",
|
|
@@ -16874,7 +16248,7 @@ var MIGRATIONS = [
|
|
|
16874
16248
|
{
|
|
16875
16249
|
version: 42,
|
|
16876
16250
|
name: "session-memories-agent-id",
|
|
16877
|
-
up:
|
|
16251
|
+
up: up46,
|
|
16878
16252
|
artifacts: {
|
|
16879
16253
|
columns: [{ table: "session_memories", column: "agent_id" }]
|
|
16880
16254
|
}
|
|
@@ -16882,7 +16256,7 @@ var MIGRATIONS = [
|
|
|
16882
16256
|
{
|
|
16883
16257
|
version: 43,
|
|
16884
16258
|
name: "agents-table",
|
|
16885
|
-
up:
|
|
16259
|
+
up: up47,
|
|
16886
16260
|
artifacts: {
|
|
16887
16261
|
tables: ["agents"],
|
|
16888
16262
|
columns: [
|
|
@@ -16894,7 +16268,7 @@ var MIGRATIONS = [
|
|
|
16894
16268
|
{
|
|
16895
16269
|
version: 44,
|
|
16896
16270
|
name: "memory-md-temporal-head",
|
|
16897
|
-
up:
|
|
16271
|
+
up: up48,
|
|
16898
16272
|
artifacts: {
|
|
16899
16273
|
columns: [
|
|
16900
16274
|
{ table: "session_summaries", column: "source_type" },
|
|
@@ -16906,7 +16280,7 @@ var MIGRATIONS = [
|
|
|
16906
16280
|
{
|
|
16907
16281
|
version: 45,
|
|
16908
16282
|
name: "lossless-working-memory-hardening",
|
|
16909
|
-
up:
|
|
16283
|
+
up: up49,
|
|
16910
16284
|
artifacts: {
|
|
16911
16285
|
tables: ["session_transcripts_fts", "memory_md_heads"],
|
|
16912
16286
|
columns: [
|
|
@@ -16919,17 +16293,17 @@ var MIGRATIONS = [
|
|
|
16919
16293
|
{
|
|
16920
16294
|
version: 46,
|
|
16921
16295
|
name: "session-summary-uniqueness",
|
|
16922
|
-
up:
|
|
16296
|
+
up: up50
|
|
16923
16297
|
},
|
|
16924
16298
|
{
|
|
16925
16299
|
version: 47,
|
|
16926
16300
|
name: "agent-scoped-temporal-uniqueness",
|
|
16927
|
-
up:
|
|
16301
|
+
up: up51
|
|
16928
16302
|
},
|
|
16929
16303
|
{
|
|
16930
16304
|
version: 48,
|
|
16931
16305
|
name: "thread-heads",
|
|
16932
|
-
up:
|
|
16306
|
+
up: up52,
|
|
16933
16307
|
artifacts: {
|
|
16934
16308
|
tables: ["memory_thread_heads"]
|
|
16935
16309
|
}
|
|
@@ -16937,7 +16311,7 @@ var MIGRATIONS = [
|
|
|
16937
16311
|
{
|
|
16938
16312
|
version: 49,
|
|
16939
16313
|
name: "session-extract-cursors",
|
|
16940
|
-
up:
|
|
16314
|
+
up: up53,
|
|
16941
16315
|
artifacts: {
|
|
16942
16316
|
tables: ["session_extract_cursors"]
|
|
16943
16317
|
}
|
|
@@ -16945,7 +16319,7 @@ var MIGRATIONS = [
|
|
|
16945
16319
|
{
|
|
16946
16320
|
version: 50,
|
|
16947
16321
|
name: "related-to-audit",
|
|
16948
|
-
up:
|
|
16322
|
+
up: up54,
|
|
16949
16323
|
artifacts: {
|
|
16950
16324
|
tables: ["entity_dependency_history"]
|
|
16951
16325
|
}
|
|
@@ -16953,7 +16327,7 @@ var MIGRATIONS = [
|
|
|
16953
16327
|
{
|
|
16954
16328
|
version: 51,
|
|
16955
16329
|
name: "memory-md-rolling-window-lineage",
|
|
16956
|
-
up:
|
|
16330
|
+
up: up55,
|
|
16957
16331
|
artifacts: {
|
|
16958
16332
|
tables: ["memory_artifacts", "memory_artifact_tombstones", "memory_artifacts_fts"],
|
|
16959
16333
|
columns: [
|
|
@@ -16968,7 +16342,7 @@ var MIGRATIONS = [
|
|
|
16968
16342
|
{
|
|
16969
16343
|
version: 52,
|
|
16970
16344
|
name: "mcp-invocations",
|
|
16971
|
-
up:
|
|
16345
|
+
up: up56,
|
|
16972
16346
|
artifacts: {
|
|
16973
16347
|
tables: ["mcp_invocations"]
|
|
16974
16348
|
}
|
|
@@ -16976,7 +16350,7 @@ var MIGRATIONS = [
|
|
|
16976
16350
|
{
|
|
16977
16351
|
version: 53,
|
|
16978
16352
|
name: "skill-invocations",
|
|
16979
|
-
up:
|
|
16353
|
+
up: up57,
|
|
16980
16354
|
artifacts: {
|
|
16981
16355
|
tables: ["skill_invocations"]
|
|
16982
16356
|
}
|
|
@@ -16984,7 +16358,7 @@ var MIGRATIONS = [
|
|
|
16984
16358
|
{
|
|
16985
16359
|
version: 54,
|
|
16986
16360
|
name: "task-agent-scope",
|
|
16987
|
-
up:
|
|
16361
|
+
up: up58,
|
|
16988
16362
|
artifacts: {
|
|
16989
16363
|
tables: ["task_scope_hints"]
|
|
16990
16364
|
}
|
|
@@ -16992,7 +16366,7 @@ var MIGRATIONS = [
|
|
|
16992
16366
|
{
|
|
16993
16367
|
version: 55,
|
|
16994
16368
|
name: "dreaming-state",
|
|
16995
|
-
up:
|
|
16369
|
+
up: up59,
|
|
16996
16370
|
artifacts: {
|
|
16997
16371
|
tables: ["dreaming_state", "dreaming_passes"]
|
|
16998
16372
|
}
|
|
@@ -17000,22 +16374,22 @@ var MIGRATIONS = [
|
|
|
17000
16374
|
{
|
|
17001
16375
|
version: 56,
|
|
17002
16376
|
name: "agent-scoped-content-hash",
|
|
17003
|
-
up:
|
|
16377
|
+
up: up60
|
|
17004
16378
|
},
|
|
17005
16379
|
{
|
|
17006
16380
|
version: 57,
|
|
17007
16381
|
name: "memories-fts-tokenizer-repair",
|
|
17008
|
-
up:
|
|
16382
|
+
up: up61
|
|
17009
16383
|
},
|
|
17010
16384
|
{
|
|
17011
16385
|
version: 58,
|
|
17012
16386
|
name: "knowledge-graph-indices",
|
|
17013
|
-
up:
|
|
16387
|
+
up: up62
|
|
17014
16388
|
},
|
|
17015
16389
|
{
|
|
17016
16390
|
version: 59,
|
|
17017
16391
|
name: "entity-attribute-claim-key",
|
|
17018
|
-
up:
|
|
16392
|
+
up: up63,
|
|
17019
16393
|
artifacts: {
|
|
17020
16394
|
columns: [{ table: "entity_attributes", column: "claim_key" }]
|
|
17021
16395
|
}
|
|
@@ -17023,7 +16397,7 @@ var MIGRATIONS = [
|
|
|
17023
16397
|
{
|
|
17024
16398
|
version: 60,
|
|
17025
16399
|
name: "entity-attribute-group-key",
|
|
17026
|
-
up:
|
|
16400
|
+
up: up64,
|
|
17027
16401
|
artifacts: {
|
|
17028
16402
|
columns: [{ table: "entity_attributes", column: "group_key" }]
|
|
17029
16403
|
}
|
|
@@ -17031,7 +16405,7 @@ var MIGRATIONS = [
|
|
|
17031
16405
|
{
|
|
17032
16406
|
version: 61,
|
|
17033
16407
|
name: "memory-artifact-source-mtime",
|
|
17034
|
-
up:
|
|
16408
|
+
up: up65,
|
|
17035
16409
|
artifacts: {
|
|
17036
16410
|
columns: [{ table: "memory_artifacts", column: "source_mtime_ms" }]
|
|
17037
16411
|
}
|
|
@@ -17039,7 +16413,7 @@ var MIGRATIONS = [
|
|
|
17039
16413
|
{
|
|
17040
16414
|
version: 62,
|
|
17041
16415
|
name: "memory-artifact-soft-delete",
|
|
17042
|
-
up:
|
|
16416
|
+
up: up66,
|
|
17043
16417
|
artifacts: {
|
|
17044
16418
|
columns: [
|
|
17045
16419
|
{ table: "memory_artifacts", column: "is_deleted" },
|
|
@@ -17050,12 +16424,12 @@ var MIGRATIONS = [
|
|
|
17050
16424
|
{
|
|
17051
16425
|
version: 63,
|
|
17052
16426
|
name: "content-only-memories-fts-update",
|
|
17053
|
-
up:
|
|
16427
|
+
up: up67
|
|
17054
16428
|
},
|
|
17055
16429
|
{
|
|
17056
16430
|
version: 64,
|
|
17057
16431
|
name: "source-graph-provenance",
|
|
17058
|
-
up:
|
|
16432
|
+
up: up68,
|
|
17059
16433
|
artifacts: {
|
|
17060
16434
|
columns: [
|
|
17061
16435
|
{ table: "entities", column: "source_path" },
|
|
@@ -17068,7 +16442,7 @@ var MIGRATIONS = [
|
|
|
17068
16442
|
{
|
|
17069
16443
|
version: 65,
|
|
17070
16444
|
name: "source-embedding-agent-scope",
|
|
17071
|
-
up:
|
|
16445
|
+
up: up69,
|
|
17072
16446
|
artifacts: {
|
|
17073
16447
|
columns: [{ table: "embeddings", column: "agent_id", optional: true }]
|
|
17074
16448
|
}
|
|
@@ -17076,7 +16450,7 @@ var MIGRATIONS = [
|
|
|
17076
16450
|
{
|
|
17077
16451
|
version: 66,
|
|
17078
16452
|
name: "memory-search-telemetry",
|
|
17079
|
-
up:
|
|
16453
|
+
up: up70,
|
|
17080
16454
|
artifacts: {
|
|
17081
16455
|
tables: ["memory_search_telemetry"]
|
|
17082
16456
|
}
|
|
@@ -17084,7 +16458,7 @@ var MIGRATIONS = [
|
|
|
17084
16458
|
{
|
|
17085
16459
|
version: 67,
|
|
17086
16460
|
name: "ontology-proposals",
|
|
17087
|
-
up:
|
|
16461
|
+
up: up71,
|
|
17088
16462
|
artifacts: {
|
|
17089
16463
|
tables: ["ontology_proposals"],
|
|
17090
16464
|
columns: [
|
|
@@ -17098,7 +16472,7 @@ var MIGRATIONS = [
|
|
|
17098
16472
|
{
|
|
17099
16473
|
version: 68,
|
|
17100
16474
|
name: "daily-reflections",
|
|
17101
|
-
up:
|
|
16475
|
+
up: up72,
|
|
17102
16476
|
artifacts: {
|
|
17103
16477
|
tables: ["daily_reflections"]
|
|
17104
16478
|
}
|
|
@@ -17106,7 +16480,7 @@ var MIGRATIONS = [
|
|
|
17106
16480
|
{
|
|
17107
16481
|
version: 69,
|
|
17108
16482
|
name: "daily-reflections-multiple-insights",
|
|
17109
|
-
up:
|
|
16483
|
+
up: up73,
|
|
17110
16484
|
artifacts: {
|
|
17111
16485
|
tables: ["daily_reflections"]
|
|
17112
16486
|
}
|
|
@@ -17114,7 +16488,7 @@ var MIGRATIONS = [
|
|
|
17114
16488
|
{
|
|
17115
16489
|
version: 70,
|
|
17116
16490
|
name: "ontology-control-plane-state",
|
|
17117
|
-
up:
|
|
16491
|
+
up: up74,
|
|
17118
16492
|
artifacts: {
|
|
17119
16493
|
columns: [
|
|
17120
16494
|
{ table: "entities", column: "status" },
|
|
@@ -17129,7 +16503,7 @@ var MIGRATIONS = [
|
|
|
17129
16503
|
{
|
|
17130
16504
|
version: 71,
|
|
17131
16505
|
name: "epistemic-assertions",
|
|
17132
|
-
up:
|
|
16506
|
+
up: up75,
|
|
17133
16507
|
artifacts: {
|
|
17134
16508
|
tables: ["epistemic_assertions"]
|
|
17135
16509
|
}
|
|
@@ -17137,7 +16511,7 @@ var MIGRATIONS = [
|
|
|
17137
16511
|
{
|
|
17138
16512
|
version: 72,
|
|
17139
16513
|
name: "agent-scoped-idempotency-key",
|
|
17140
|
-
up:
|
|
16514
|
+
up: up76,
|
|
17141
16515
|
artifacts: {
|
|
17142
16516
|
columns: [
|
|
17143
16517
|
{ table: "memories", column: "idempotency_key" },
|
|
@@ -17148,7 +16522,7 @@ var MIGRATIONS = [
|
|
|
17148
16522
|
{
|
|
17149
16523
|
version: 73,
|
|
17150
16524
|
name: "recall-context-dedupe",
|
|
17151
|
-
up:
|
|
16525
|
+
up: up77,
|
|
17152
16526
|
artifacts: {
|
|
17153
16527
|
tables: ["session_context_epochs", "session_recall_events"]
|
|
17154
16528
|
}
|
|
@@ -17156,7 +16530,7 @@ var MIGRATIONS = [
|
|
|
17156
16530
|
{
|
|
17157
16531
|
version: 74,
|
|
17158
16532
|
name: "aggregate-memory-links",
|
|
17159
|
-
up:
|
|
16533
|
+
up: up78,
|
|
17160
16534
|
artifacts: {
|
|
17161
16535
|
tables: ["aggregate_memory_sources"]
|
|
17162
16536
|
}
|
|
@@ -17164,7 +16538,7 @@ var MIGRATIONS = [
|
|
|
17164
16538
|
{
|
|
17165
16539
|
version: 75,
|
|
17166
16540
|
name: "memory-artifact-source-provenance",
|
|
17167
|
-
up:
|
|
16541
|
+
up: up79,
|
|
17168
16542
|
artifacts: {
|
|
17169
16543
|
columns: [
|
|
17170
16544
|
{ table: "memory_artifacts", column: "source_id" },
|
|
@@ -17178,7 +16552,7 @@ var MIGRATIONS = [
|
|
|
17178
16552
|
{
|
|
17179
16553
|
version: 76,
|
|
17180
16554
|
name: "temporal-edges",
|
|
17181
|
-
up:
|
|
16555
|
+
up: up80,
|
|
17182
16556
|
artifacts: {
|
|
17183
16557
|
tables: ["temporal_edges"]
|
|
17184
16558
|
}
|
|
@@ -17186,7 +16560,7 @@ var MIGRATIONS = [
|
|
|
17186
16560
|
{
|
|
17187
16561
|
version: 77,
|
|
17188
16562
|
name: "entity-aliases",
|
|
17189
|
-
up:
|
|
16563
|
+
up: up81,
|
|
17190
16564
|
artifacts: {
|
|
17191
16565
|
tables: ["entity_aliases"]
|
|
17192
16566
|
}
|
|
@@ -17194,7 +16568,7 @@ var MIGRATIONS = [
|
|
|
17194
16568
|
{
|
|
17195
16569
|
version: 78,
|
|
17196
16570
|
name: "api-keys",
|
|
17197
|
-
up:
|
|
16571
|
+
up: up82,
|
|
17198
16572
|
artifacts: {
|
|
17199
16573
|
tables: ["api_keys"]
|
|
17200
16574
|
}
|
|
@@ -17202,7 +16576,7 @@ var MIGRATIONS = [
|
|
|
17202
16576
|
{
|
|
17203
16577
|
version: 79,
|
|
17204
16578
|
name: "transcript-capture-jobs",
|
|
17205
|
-
up:
|
|
16579
|
+
up: up83,
|
|
17206
16580
|
artifacts: {
|
|
17207
16581
|
tables: ["transcript_capture_jobs"]
|
|
17208
16582
|
}
|
|
@@ -17210,7 +16584,7 @@ var MIGRATIONS = [
|
|
|
17210
16584
|
{
|
|
17211
16585
|
version: 80,
|
|
17212
16586
|
name: "document-scope-columns",
|
|
17213
|
-
up:
|
|
16587
|
+
up: up84,
|
|
17214
16588
|
artifacts: {
|
|
17215
16589
|
columns: [
|
|
17216
16590
|
{ table: "documents", column: "agent_id" },
|
|
@@ -17221,7 +16595,7 @@ var MIGRATIONS = [
|
|
|
17221
16595
|
{
|
|
17222
16596
|
version: 81,
|
|
17223
16597
|
name: "aggregate-evidence-sources",
|
|
17224
|
-
up:
|
|
16598
|
+
up: up85,
|
|
17225
16599
|
artifacts: {
|
|
17226
16600
|
tables: ["aggregate_evidence_sources"]
|
|
17227
16601
|
}
|
|
@@ -17229,7 +16603,7 @@ var MIGRATIONS = [
|
|
|
17229
16603
|
{
|
|
17230
16604
|
version: 82,
|
|
17231
16605
|
name: "skill-invocations-harness",
|
|
17232
|
-
up:
|
|
16606
|
+
up: up86,
|
|
17233
16607
|
artifacts: {
|
|
17234
16608
|
columns: [
|
|
17235
16609
|
{ table: "skill_invocations", column: "harness" },
|
|
@@ -17240,7 +16614,7 @@ var MIGRATIONS = [
|
|
|
17240
16614
|
{
|
|
17241
16615
|
version: 83,
|
|
17242
16616
|
name: "memory-lifecycle-repair",
|
|
17243
|
-
up:
|
|
16617
|
+
up: up87,
|
|
17244
16618
|
artifacts: {
|
|
17245
16619
|
tables: ["transcript_capture_jobs", "aggregate_evidence_sources", "entity_dependencies"],
|
|
17246
16620
|
columns: [
|
|
@@ -17255,7 +16629,7 @@ var MIGRATIONS = [
|
|
|
17255
16629
|
{
|
|
17256
16630
|
version: 84,
|
|
17257
16631
|
name: "legacy-markdown-import-state",
|
|
17258
|
-
up:
|
|
16632
|
+
up: up88,
|
|
17259
16633
|
artifacts: {
|
|
17260
16634
|
tables: ["legacy_markdown_imports", "legacy_markdown_chunks"]
|
|
17261
16635
|
}
|
|
@@ -17263,7 +16637,7 @@ var MIGRATIONS = [
|
|
|
17263
16637
|
{
|
|
17264
16638
|
version: 85,
|
|
17265
16639
|
name: "backfill-relations-to-dependencies",
|
|
17266
|
-
up:
|
|
16640
|
+
up: up89,
|
|
17267
16641
|
artifacts: {
|
|
17268
16642
|
tables: ["entity_dependencies"]
|
|
17269
16643
|
}
|
|
@@ -17271,7 +16645,7 @@ var MIGRATIONS = [
|
|
|
17271
16645
|
{
|
|
17272
16646
|
version: 86,
|
|
17273
16647
|
name: "summary-jobs-content-hash",
|
|
17274
|
-
up:
|
|
16648
|
+
up: up90,
|
|
17275
16649
|
artifacts: {
|
|
17276
16650
|
columns: [{ table: "summary_jobs", column: "content_hash" }]
|
|
17277
16651
|
}
|
|
@@ -17279,7 +16653,7 @@ var MIGRATIONS = [
|
|
|
17279
16653
|
{
|
|
17280
16654
|
version: 87,
|
|
17281
16655
|
name: "summary-jobs-boundary-reason",
|
|
17282
|
-
up:
|
|
16656
|
+
up: up91,
|
|
17283
16657
|
artifacts: {
|
|
17284
16658
|
columns: [{ table: "summary_jobs", column: "boundary_reason" }]
|
|
17285
16659
|
}
|
|
@@ -17287,7 +16661,7 @@ var MIGRATIONS = [
|
|
|
17287
16661
|
{
|
|
17288
16662
|
version: 88,
|
|
17289
16663
|
name: "transcript-recovery-files",
|
|
17290
|
-
up:
|
|
16664
|
+
up: up92,
|
|
17291
16665
|
artifacts: {
|
|
17292
16666
|
tables: ["transcript_recovery_files"]
|
|
17293
16667
|
}
|
|
@@ -17295,7 +16669,7 @@ var MIGRATIONS = [
|
|
|
17295
16669
|
{
|
|
17296
16670
|
version: 89,
|
|
17297
16671
|
name: "job-cancellations",
|
|
17298
|
-
up:
|
|
16672
|
+
up: up93,
|
|
17299
16673
|
artifacts: {
|
|
17300
16674
|
tables: ["job_cancellations"]
|
|
17301
16675
|
}
|
|
@@ -17303,7 +16677,7 @@ var MIGRATIONS = [
|
|
|
17303
16677
|
{
|
|
17304
16678
|
version: 90,
|
|
17305
16679
|
name: "job-archive",
|
|
17306
|
-
up:
|
|
16680
|
+
up: up94,
|
|
17307
16681
|
artifacts: {
|
|
17308
16682
|
tables: ["job_archive"]
|
|
17309
16683
|
}
|
|
@@ -17311,25 +16685,25 @@ var MIGRATIONS = [
|
|
|
17311
16685
|
{
|
|
17312
16686
|
version: 91,
|
|
17313
16687
|
name: "embedding-index-generations",
|
|
17314
|
-
up:
|
|
16688
|
+
up: up95,
|
|
17315
16689
|
artifacts: { tables: ["embedding_index_state"] }
|
|
17316
16690
|
},
|
|
17317
16691
|
{
|
|
17318
16692
|
version: 92,
|
|
17319
16693
|
name: "embedding-staging-store",
|
|
17320
|
-
up:
|
|
16694
|
+
up: up96,
|
|
17321
16695
|
artifacts: { tables: ["embeddings_staging"] }
|
|
17322
16696
|
},
|
|
17323
16697
|
{
|
|
17324
16698
|
version: 93,
|
|
17325
16699
|
name: "dreaming-evidence-cursor",
|
|
17326
|
-
up:
|
|
16700
|
+
up: up97,
|
|
17327
16701
|
artifacts: { columns: [{ table: "dreaming_state", column: "evidence_cursor" }] }
|
|
17328
16702
|
},
|
|
17329
16703
|
{
|
|
17330
16704
|
version: 94,
|
|
17331
16705
|
name: "memory-kind",
|
|
17332
|
-
up:
|
|
16706
|
+
up: up98,
|
|
17333
16707
|
artifacts: {
|
|
17334
16708
|
columns: [
|
|
17335
16709
|
{ table: "memories", column: "memory_kind" },
|
|
@@ -17340,35 +16714,35 @@ var MIGRATIONS = [
|
|
|
17340
16714
|
{
|
|
17341
16715
|
version: 95,
|
|
17342
16716
|
name: "compaction-recall-projections",
|
|
17343
|
-
up:
|
|
16717
|
+
up: up99
|
|
17344
16718
|
},
|
|
17345
16719
|
{
|
|
17346
16720
|
version: 96,
|
|
17347
16721
|
name: "retire-legacy-ingestion",
|
|
17348
|
-
up:
|
|
16722
|
+
up: up100
|
|
17349
16723
|
},
|
|
17350
16724
|
{
|
|
17351
16725
|
version: 97,
|
|
17352
16726
|
name: "dreaming-failure-backoff",
|
|
17353
|
-
up:
|
|
16727
|
+
up: up101,
|
|
17354
16728
|
artifacts: { columns: [{ table: "dreaming_state", column: "last_failure_at" }] }
|
|
17355
16729
|
},
|
|
17356
16730
|
{
|
|
17357
16731
|
version: 98,
|
|
17358
16732
|
name: "dreaming-evidence-exclusions",
|
|
17359
|
-
up:
|
|
16733
|
+
up: up102,
|
|
17360
16734
|
artifacts: { tables: ["dreaming_evidence_exclusions"] }
|
|
17361
16735
|
},
|
|
17362
16736
|
{
|
|
17363
16737
|
version: 99,
|
|
17364
16738
|
name: "dreaming-tool-calls",
|
|
17365
|
-
up:
|
|
16739
|
+
up: up103,
|
|
17366
16740
|
artifacts: { tables: ["dreaming_tool_calls"] }
|
|
17367
16741
|
},
|
|
17368
16742
|
{
|
|
17369
16743
|
version: 100,
|
|
17370
16744
|
name: "dreaming-runbook",
|
|
17371
|
-
up:
|
|
16745
|
+
up: up104,
|
|
17372
16746
|
artifacts: {
|
|
17373
16747
|
columns: [
|
|
17374
16748
|
{ table: "dreaming_passes", column: "evidence_window_json" },
|
|
@@ -17379,23 +16753,23 @@ var MIGRATIONS = [
|
|
|
17379
16753
|
{
|
|
17380
16754
|
version: 101,
|
|
17381
16755
|
name: "dreaming-attention",
|
|
17382
|
-
up:
|
|
16756
|
+
up: up105,
|
|
17383
16757
|
artifacts: { tables: ["dreaming_attention"] }
|
|
17384
16758
|
},
|
|
17385
16759
|
{
|
|
17386
16760
|
version: 102,
|
|
17387
16761
|
name: "attribute-semantic-memories",
|
|
17388
|
-
up:
|
|
16762
|
+
up: up106
|
|
17389
16763
|
},
|
|
17390
16764
|
{
|
|
17391
16765
|
version: 103,
|
|
17392
16766
|
name: "semantic-memory-kind",
|
|
17393
|
-
up:
|
|
16767
|
+
up: up107
|
|
17394
16768
|
},
|
|
17395
16769
|
{
|
|
17396
16770
|
version: 104,
|
|
17397
16771
|
name: "derived-memory-provenance",
|
|
17398
|
-
up:
|
|
16772
|
+
up: up108,
|
|
17399
16773
|
artifacts: {
|
|
17400
16774
|
tables: ["derived_memory_sources"],
|
|
17401
16775
|
columns: [{ table: "memories", column: "stale_at" }]
|
|
@@ -17404,12 +16778,12 @@ var MIGRATIONS = [
|
|
|
17404
16778
|
{
|
|
17405
16779
|
version: 105,
|
|
17406
16780
|
name: "agent-scoped-entity-name",
|
|
17407
|
-
up:
|
|
16781
|
+
up: up109
|
|
17408
16782
|
},
|
|
17409
16783
|
{
|
|
17410
16784
|
version: 106,
|
|
17411
16785
|
name: "memory-review-after",
|
|
17412
|
-
up:
|
|
16786
|
+
up: up110,
|
|
17413
16787
|
artifacts: {
|
|
17414
16788
|
columns: [{ table: "memories", column: "review_after" }]
|
|
17415
16789
|
}
|
|
@@ -17417,7 +16791,7 @@ var MIGRATIONS = [
|
|
|
17417
16791
|
{
|
|
17418
16792
|
version: 107,
|
|
17419
16793
|
name: "dreaming-pass-usage",
|
|
17420
|
-
up:
|
|
16794
|
+
up: up111,
|
|
17421
16795
|
artifacts: {
|
|
17422
16796
|
columns: [
|
|
17423
16797
|
{ table: "dreaming_passes", column: "tokens_input" },
|
|
@@ -17431,7 +16805,7 @@ var MIGRATIONS = [
|
|
|
17431
16805
|
{
|
|
17432
16806
|
version: 108,
|
|
17433
16807
|
name: "embedding-usage",
|
|
17434
|
-
up:
|
|
16808
|
+
up: up112,
|
|
17435
16809
|
artifacts: {
|
|
17436
16810
|
tables: ["embedding_usage"]
|
|
17437
16811
|
}
|
|
@@ -17439,7 +16813,7 @@ var MIGRATIONS = [
|
|
|
17439
16813
|
{
|
|
17440
16814
|
version: 109,
|
|
17441
16815
|
name: "telemetry-install",
|
|
17442
|
-
up:
|
|
16816
|
+
up: up113,
|
|
17443
16817
|
artifacts: {
|
|
17444
16818
|
tables: ["telemetry_install"]
|
|
17445
16819
|
}
|
|
@@ -17447,12 +16821,12 @@ var MIGRATIONS = [
|
|
|
17447
16821
|
{
|
|
17448
16822
|
version: 110,
|
|
17449
16823
|
name: "memory-mention-join-index",
|
|
17450
|
-
up:
|
|
16824
|
+
up: up114
|
|
17451
16825
|
},
|
|
17452
16826
|
{
|
|
17453
16827
|
version: 111,
|
|
17454
16828
|
name: "telemetry-first-use",
|
|
17455
|
-
up:
|
|
16829
|
+
up: up115,
|
|
17456
16830
|
artifacts: {
|
|
17457
16831
|
columns: [
|
|
17458
16832
|
{ table: "telemetry_install", column: "first_remember_at" },
|
|
@@ -17463,7 +16837,7 @@ var MIGRATIONS = [
|
|
|
17463
16837
|
{
|
|
17464
16838
|
version: 112,
|
|
17465
16839
|
name: "telemetry-queue-ownership",
|
|
17466
|
-
up:
|
|
16840
|
+
up: up116,
|
|
17467
16841
|
artifacts: {
|
|
17468
16842
|
columns: [
|
|
17469
16843
|
{ table: "telemetry_events", column: "source" },
|
|
@@ -17475,7 +16849,7 @@ var MIGRATIONS = [
|
|
|
17475
16849
|
{
|
|
17476
16850
|
version: 113,
|
|
17477
16851
|
name: "session-claims",
|
|
17478
|
-
up:
|
|
16852
|
+
up: up117,
|
|
17479
16853
|
artifacts: {
|
|
17480
16854
|
tables: ["session_claims"],
|
|
17481
16855
|
columns: [
|
|
@@ -17489,12 +16863,12 @@ var MIGRATIONS = [
|
|
|
17489
16863
|
{
|
|
17490
16864
|
version: 114,
|
|
17491
16865
|
name: "memory-traversal-hydration-index",
|
|
17492
|
-
up:
|
|
16866
|
+
up: up118
|
|
17493
16867
|
},
|
|
17494
16868
|
{
|
|
17495
16869
|
version: 115,
|
|
17496
16870
|
name: "cross-agent-message-notifications",
|
|
17497
|
-
up:
|
|
16871
|
+
up: up119,
|
|
17498
16872
|
artifacts: {
|
|
17499
16873
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
17500
16874
|
}
|
|
@@ -17502,7 +16876,7 @@ var MIGRATIONS = [
|
|
|
17502
16876
|
{
|
|
17503
16877
|
version: 116,
|
|
17504
16878
|
name: "acp-delivery-reconciliation",
|
|
17505
|
-
up:
|
|
16879
|
+
up: up120,
|
|
17506
16880
|
artifacts: {
|
|
17507
16881
|
columns: [
|
|
17508
16882
|
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
@@ -17516,7 +16890,7 @@ var MIGRATIONS = [
|
|
|
17516
16890
|
{
|
|
17517
16891
|
version: 117,
|
|
17518
16892
|
name: "retire-summary-worker",
|
|
17519
|
-
up:
|
|
16893
|
+
up: up121,
|
|
17520
16894
|
artifacts: {
|
|
17521
16895
|
columns: [
|
|
17522
16896
|
{ table: "session_transcripts", column: "completed_at" },
|
|
@@ -17527,24 +16901,24 @@ var MIGRATIONS = [
|
|
|
17527
16901
|
{
|
|
17528
16902
|
version: 118,
|
|
17529
16903
|
name: "queue-pressure-indices",
|
|
17530
|
-
up:
|
|
16904
|
+
up: up122
|
|
17531
16905
|
},
|
|
17532
16906
|
{
|
|
17533
16907
|
version: 119,
|
|
17534
16908
|
name: "telemetry-version-observation",
|
|
17535
|
-
up:
|
|
16909
|
+
up: up123,
|
|
17536
16910
|
artifacts: { columns: [{ table: "telemetry_install", column: "last_seen_version" }] }
|
|
17537
16911
|
},
|
|
17538
16912
|
{
|
|
17539
16913
|
version: 120,
|
|
17540
16914
|
name: "source-lifecycle-telemetry",
|
|
17541
|
-
up:
|
|
16915
|
+
up: up124,
|
|
17542
16916
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
17543
16917
|
},
|
|
17544
16918
|
{
|
|
17545
16919
|
version: 121,
|
|
17546
16920
|
name: "telemetry-delivery-health",
|
|
17547
|
-
up:
|
|
16921
|
+
up: up125,
|
|
17548
16922
|
artifacts: {
|
|
17549
16923
|
tables: ["telemetry_delivery_state"],
|
|
17550
16924
|
columns: [
|
|
@@ -17558,7 +16932,7 @@ var MIGRATIONS = [
|
|
|
17558
16932
|
{
|
|
17559
16933
|
version: 122,
|
|
17560
16934
|
name: "dreaming-evidence-retry",
|
|
17561
|
-
up:
|
|
16935
|
+
up: up126,
|
|
17562
16936
|
artifacts: {
|
|
17563
16937
|
columns: [
|
|
17564
16938
|
{ table: "dreaming_evidence_exclusions", column: "failure_class" },
|
|
@@ -17571,13 +16945,13 @@ var MIGRATIONS = [
|
|
|
17571
16945
|
{
|
|
17572
16946
|
version: 123,
|
|
17573
16947
|
name: "embedding-index-failures",
|
|
17574
|
-
up:
|
|
16948
|
+
up: up127,
|
|
17575
16949
|
artifacts: { tables: ["embedding_index_failures"] }
|
|
17576
16950
|
},
|
|
17577
16951
|
{
|
|
17578
16952
|
version: 124,
|
|
17579
16953
|
name: "import-derived-lifecycle",
|
|
17580
|
-
up:
|
|
16954
|
+
up: up128,
|
|
17581
16955
|
artifacts: {
|
|
17582
16956
|
tables: ["imported_source_lifecycle"]
|
|
17583
16957
|
}
|
|
@@ -17585,77 +16959,77 @@ var MIGRATIONS = [
|
|
|
17585
16959
|
{
|
|
17586
16960
|
version: 125,
|
|
17587
16961
|
name: "memory-content-safety",
|
|
17588
|
-
up:
|
|
16962
|
+
up: up129,
|
|
17589
16963
|
artifacts: { tables: ["memory_content_safety"] }
|
|
17590
16964
|
},
|
|
17591
16965
|
{
|
|
17592
16966
|
version: 126,
|
|
17593
16967
|
name: "dreaming-surprisal-attention",
|
|
17594
|
-
up:
|
|
16968
|
+
up: up130,
|
|
17595
16969
|
artifacts: { tables: ["dreaming_attention"] }
|
|
17596
16970
|
},
|
|
17597
16971
|
{
|
|
17598
16972
|
version: 127,
|
|
17599
16973
|
name: "ontology-contradictions",
|
|
17600
|
-
up:
|
|
16974
|
+
up: up131,
|
|
17601
16975
|
artifacts: { tables: ["ontology_contradictions"] }
|
|
17602
16976
|
},
|
|
17603
16977
|
{
|
|
17604
16978
|
version: 128,
|
|
17605
16979
|
name: "bounded-queue-diagnostics",
|
|
17606
|
-
up:
|
|
16980
|
+
up: up132
|
|
17607
16981
|
},
|
|
17608
16982
|
{
|
|
17609
16983
|
version: 129,
|
|
17610
16984
|
name: "retire-structural-jobs",
|
|
17611
|
-
up:
|
|
16985
|
+
up: up133
|
|
17612
16986
|
},
|
|
17613
16987
|
{
|
|
17614
16988
|
version: 130,
|
|
17615
16989
|
name: "embedding-repair-state",
|
|
17616
|
-
up:
|
|
16990
|
+
up: up134,
|
|
17617
16991
|
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
17618
16992
|
},
|
|
17619
16993
|
{
|
|
17620
16994
|
version: 131,
|
|
17621
16995
|
name: "dreaming-evidence-consumption",
|
|
17622
|
-
up:
|
|
16996
|
+
up: up135,
|
|
17623
16997
|
artifacts: { tables: ["dreaming_evidence_consumption"] }
|
|
17624
16998
|
},
|
|
17625
16999
|
{
|
|
17626
17000
|
version: 132,
|
|
17627
17001
|
name: "observer-scoped-epistemic-assertions",
|
|
17628
|
-
up:
|
|
17002
|
+
up: up136,
|
|
17629
17003
|
artifacts: { tables: ["epistemic_assertions"] }
|
|
17630
17004
|
},
|
|
17631
17005
|
{
|
|
17632
17006
|
version: 133,
|
|
17633
17007
|
name: "dreaming-memory-head",
|
|
17634
|
-
up:
|
|
17008
|
+
up: up137,
|
|
17635
17009
|
artifacts: { tables: ["memory_head_revisions", "memory_head_entries", "memory_head_revision_entries"] }
|
|
17636
17010
|
},
|
|
17637
17011
|
{
|
|
17638
17012
|
version: 134,
|
|
17639
17013
|
name: "scope-memory-head-entries",
|
|
17640
|
-
up:
|
|
17014
|
+
up: up138,
|
|
17641
17015
|
artifacts: { tables: ["memory_head_entries"] }
|
|
17642
17016
|
},
|
|
17643
17017
|
{
|
|
17644
17018
|
version: 135,
|
|
17645
17019
|
name: "memory-head-publication",
|
|
17646
|
-
up:
|
|
17020
|
+
up: up139,
|
|
17647
17021
|
artifacts: { tables: ["memory_head_publications"] }
|
|
17648
17022
|
},
|
|
17649
17023
|
{
|
|
17650
17024
|
version: 136,
|
|
17651
17025
|
name: "memory-head-revisions",
|
|
17652
|
-
up:
|
|
17026
|
+
up: up140,
|
|
17653
17027
|
artifacts: { tables: ["memory_head_revisions"] }
|
|
17654
17028
|
},
|
|
17655
17029
|
{
|
|
17656
17030
|
version: 137,
|
|
17657
17031
|
name: "dreaming-head-manifest",
|
|
17658
|
-
up:
|
|
17032
|
+
up: up141,
|
|
17659
17033
|
artifacts: {
|
|
17660
17034
|
columns: [
|
|
17661
17035
|
{ table: "dreaming_passes", column: "head_revision" },
|
|
@@ -17666,7 +17040,7 @@ var MIGRATIONS = [
|
|
|
17666
17040
|
{
|
|
17667
17041
|
version: 138,
|
|
17668
17042
|
name: "bounded-status-projections",
|
|
17669
|
-
up:
|
|
17043
|
+
up: up142,
|
|
17670
17044
|
artifacts: {
|
|
17671
17045
|
tables: ["transcript_capture_status", "memories_duplicate_hash_counts", "memories_diagnostics_state"]
|
|
17672
17046
|
}
|
|
@@ -17674,31 +17048,31 @@ var MIGRATIONS = [
|
|
|
17674
17048
|
{
|
|
17675
17049
|
version: 139,
|
|
17676
17050
|
name: "native-source-sync-state",
|
|
17677
|
-
up:
|
|
17051
|
+
up: up143,
|
|
17678
17052
|
artifacts: { tables: ["native_source_sync_state"] }
|
|
17679
17053
|
},
|
|
17680
17054
|
{
|
|
17681
17055
|
version: 140,
|
|
17682
17056
|
name: "transcript-recovery-frontier",
|
|
17683
|
-
up:
|
|
17057
|
+
up: up144,
|
|
17684
17058
|
artifacts: { tables: ["transcript_recovery_frontiers"] }
|
|
17685
17059
|
},
|
|
17686
17060
|
{
|
|
17687
17061
|
version: 141,
|
|
17688
17062
|
name: "source-sync-checkpoints",
|
|
17689
|
-
up:
|
|
17063
|
+
up: up145,
|
|
17690
17064
|
artifacts: { tables: ["source_sync_checkpoints"] }
|
|
17691
17065
|
},
|
|
17692
17066
|
{
|
|
17693
17067
|
version: 142,
|
|
17694
17068
|
name: "source-sync-frontier",
|
|
17695
|
-
up:
|
|
17069
|
+
up: up146,
|
|
17696
17070
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
17697
17071
|
},
|
|
17698
17072
|
{
|
|
17699
17073
|
version: 143,
|
|
17700
17074
|
name: "embedding-index-progress",
|
|
17701
|
-
up:
|
|
17075
|
+
up: up147,
|
|
17702
17076
|
artifacts: {
|
|
17703
17077
|
columns: [
|
|
17704
17078
|
{ table: "embedding_index_state", column: "migration_phase" },
|
|
@@ -17714,19 +17088,19 @@ var MIGRATIONS = [
|
|
|
17714
17088
|
{
|
|
17715
17089
|
version: 144,
|
|
17716
17090
|
name: "memory-job-lease-token",
|
|
17717
|
-
up:
|
|
17091
|
+
up: up148,
|
|
17718
17092
|
artifacts: { columns: [{ table: "memory_jobs", column: "lease_token" }] }
|
|
17719
17093
|
},
|
|
17720
17094
|
{
|
|
17721
17095
|
version: 145,
|
|
17722
17096
|
name: "dreaming-evidence-reviews",
|
|
17723
|
-
up:
|
|
17097
|
+
up: up149,
|
|
17724
17098
|
artifacts: { tables: ["dreaming_evidence_reviews"] }
|
|
17725
17099
|
},
|
|
17726
17100
|
{
|
|
17727
17101
|
version: 146,
|
|
17728
17102
|
name: "source-transcript-import",
|
|
17729
|
-
up:
|
|
17103
|
+
up: up150,
|
|
17730
17104
|
artifacts: {
|
|
17731
17105
|
tables: [
|
|
17732
17106
|
"source_import_jobs",
|
|
@@ -17745,19 +17119,19 @@ var MIGRATIONS = [
|
|
|
17745
17119
|
{
|
|
17746
17120
|
version: 147,
|
|
17747
17121
|
name: "source-import-replay-file-slots",
|
|
17748
|
-
up:
|
|
17122
|
+
up: up151,
|
|
17749
17123
|
artifacts: { tables: ["source_import_files"] }
|
|
17750
17124
|
},
|
|
17751
17125
|
{
|
|
17752
17126
|
version: 148,
|
|
17753
17127
|
name: "source-import-attempt-provenance",
|
|
17754
|
-
up:
|
|
17128
|
+
up: up152,
|
|
17755
17129
|
artifacts: { columns: [{ table: "source_import_record_attempts", column: "source_id" }] }
|
|
17756
17130
|
},
|
|
17757
17131
|
{
|
|
17758
17132
|
version: 149,
|
|
17759
17133
|
name: "transcript-import-state-machine",
|
|
17760
|
-
up:
|
|
17134
|
+
up: up153,
|
|
17761
17135
|
artifacts: {
|
|
17762
17136
|
columns: [
|
|
17763
17137
|
{ table: "source_import_jobs", column: "duplicate_mode" },
|
|
@@ -17769,7 +17143,7 @@ var MIGRATIONS = [
|
|
|
17769
17143
|
{
|
|
17770
17144
|
version: 150,
|
|
17771
17145
|
name: "memory-head-freshness",
|
|
17772
|
-
up:
|
|
17146
|
+
up: up154,
|
|
17773
17147
|
artifacts: {
|
|
17774
17148
|
columns: [
|
|
17775
17149
|
{ table: "memory_md_heads", column: "is_current" },
|
|
@@ -17815,8 +17189,44 @@ var MIGRATIONS = [
|
|
|
17815
17189
|
{
|
|
17816
17190
|
version: 153,
|
|
17817
17191
|
name: "vector-repair-checkpoints",
|
|
17818
|
-
up:
|
|
17192
|
+
up: up155,
|
|
17819
17193
|
artifacts: { tables: ["vector_repair_checkpoints"] }
|
|
17194
|
+
},
|
|
17195
|
+
{
|
|
17196
|
+
version: 154,
|
|
17197
|
+
name: "transcript-capture-source-identity",
|
|
17198
|
+
up: up3,
|
|
17199
|
+
artifacts: {
|
|
17200
|
+
columns: [
|
|
17201
|
+
{ table: "transcript_capture_jobs", column: "source_identity" },
|
|
17202
|
+
{ table: "transcript_capture_jobs", column: "source_sha256" },
|
|
17203
|
+
{ table: "transcript_capture_jobs", column: "source_size_bytes" },
|
|
17204
|
+
{ table: "transcript_capture_jobs", column: "source_mtime_ms" },
|
|
17205
|
+
{ table: "transcript_capture_jobs", column: "source_format" },
|
|
17206
|
+
{ table: "transcript_capture_jobs", column: "audit_path" }
|
|
17207
|
+
]
|
|
17208
|
+
}
|
|
17209
|
+
},
|
|
17210
|
+
{
|
|
17211
|
+
version: 155,
|
|
17212
|
+
name: "source-sync-failures",
|
|
17213
|
+
up: up4,
|
|
17214
|
+
artifacts: { tables: ["source_sync_failures"], indexes: ["idx_source_sync_failures_active"] }
|
|
17215
|
+
},
|
|
17216
|
+
{
|
|
17217
|
+
version: 156,
|
|
17218
|
+
name: "embedding-repair-checkpoints",
|
|
17219
|
+
up: up156,
|
|
17220
|
+
artifacts: { tables: ["embedding_repair_checkpoints"] }
|
|
17221
|
+
},
|
|
17222
|
+
{
|
|
17223
|
+
version: 157,
|
|
17224
|
+
name: "embedding-repair-progress",
|
|
17225
|
+
up: up157,
|
|
17226
|
+
artifacts: {
|
|
17227
|
+
tables: ["embedding_repair_progress"],
|
|
17228
|
+
columns: [{ table: "embedding_repair_checkpoints", column: "profile_fingerprint" }]
|
|
17229
|
+
}
|
|
17820
17230
|
}
|
|
17821
17231
|
];
|
|
17822
17232
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -17831,158 +17241,16 @@ function expandHome(p2, home = homedir2()) {
|
|
|
17831
17241
|
return join2(home, p2.slice(2));
|
|
17832
17242
|
return p2;
|
|
17833
17243
|
}
|
|
17834
|
-
var
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
function classifyError(error) {
|
|
17845
|
-
const message = errorMessage(error);
|
|
17846
|
-
const code = typeof error === "object" && error !== null && "code" in error ? String(error.code) : "";
|
|
17847
|
-
const detail = `${code} ${message}`.toLowerCase();
|
|
17848
|
-
if (/noentry|no entry|no such item|item.*not found|credential.*missing|does not exist/.test(detail)) {
|
|
17849
|
-
return { state: "missing", message };
|
|
17850
|
-
}
|
|
17851
|
-
if (/locked|interaction|required|authfailed|authentication|islocked|prompt/.test(detail)) {
|
|
17852
|
-
return { state: "locked", message };
|
|
17853
|
-
}
|
|
17854
|
-
if (/permission|access denied|denied/.test(detail)) {
|
|
17855
|
-
return { state: "permission-denied", message };
|
|
17856
|
-
}
|
|
17857
|
-
if (/unsupported|not implemented|dbus|secret service|keyutils|connection|unavailable|no such file/.test(detail)) {
|
|
17858
|
-
return { state: "unavailable", message };
|
|
17859
|
-
}
|
|
17860
|
-
return { state: "corrupt", message };
|
|
17861
|
-
}
|
|
17862
|
-
function tryRequireOverride() {
|
|
17863
|
-
const override = process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim();
|
|
17864
|
-
if (!override)
|
|
17865
|
-
return null;
|
|
17866
|
-
const isAbsolute = override.startsWith("/") || /^\\\\[^\\]+\\[^\\]+/.test(override) || /^[A-Za-z]:[\\/]/.test(override);
|
|
17867
|
-
if (!isAbsolute)
|
|
17868
|
-
return null;
|
|
17869
|
-
try {
|
|
17870
|
-
return require2(override);
|
|
17871
|
-
} catch {
|
|
17872
|
-
return null;
|
|
17873
|
-
}
|
|
17874
|
-
}
|
|
17875
|
-
async function loadModule() {
|
|
17876
|
-
modulePromise ??= (async () => {
|
|
17877
|
-
const override = process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim();
|
|
17878
|
-
if (override)
|
|
17879
|
-
return tryRequireOverride();
|
|
17880
|
-
return await Promise.resolve().then(() => __toESM2(require_keyring(), 1)).catch(() => null);
|
|
17881
|
-
})();
|
|
17882
|
-
return modulePromise;
|
|
17883
|
-
}
|
|
17884
|
-
function loadModuleSync() {
|
|
17885
|
-
if (syncModule !== undefined)
|
|
17886
|
-
return syncModule;
|
|
17887
|
-
if (process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim()) {
|
|
17888
|
-
syncModule = tryRequireOverride();
|
|
17889
|
-
return syncModule;
|
|
17890
|
-
}
|
|
17891
|
-
const override = tryRequireOverride();
|
|
17892
|
-
if (override) {
|
|
17893
|
-
syncModule = override;
|
|
17894
|
-
return syncModule;
|
|
17895
|
-
}
|
|
17896
|
-
try {
|
|
17897
|
-
syncModule = require2("@napi-rs/keyring");
|
|
17898
|
-
} catch {
|
|
17899
|
-
syncModule = null;
|
|
17900
|
-
}
|
|
17901
|
-
return syncModule;
|
|
17902
|
-
}
|
|
17903
|
-
function linuxKeyringAvailable() {
|
|
17904
|
-
if (process.platform !== "linux")
|
|
17905
|
-
return null;
|
|
17906
|
-
if (process.env.SIGNET_SECRETS_LINUX_KEYRING === "keyutils") {
|
|
17907
|
-
return { state: "unsupported", message: "Linux keyutils is not an implicit Signet secrets backend" };
|
|
17908
|
-
}
|
|
17909
|
-
if (!process.env.DBUS_SESSION_BUS_ADDRESS) {
|
|
17910
|
-
return {
|
|
17911
|
-
state: "unavailable",
|
|
17912
|
-
message: "Linux Secret Service requires a user D-Bus session; no prompt or desktop session is available"
|
|
17913
|
-
};
|
|
17914
|
-
}
|
|
17915
|
-
try {
|
|
17916
|
-
execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
17917
|
-
stdio: "ignore",
|
|
17918
|
-
timeout: 1000
|
|
17919
|
-
});
|
|
17920
|
-
return null;
|
|
17921
|
-
} catch {
|
|
17922
|
-
return {
|
|
17923
|
-
state: "unavailable",
|
|
17924
|
-
message: "Linux Secret Service is not registered on the user D-Bus session"
|
|
17925
|
-
};
|
|
17926
|
-
}
|
|
17927
|
-
}
|
|
17928
|
-
|
|
17929
|
-
class NativeSecretKeyringAdapter {
|
|
17930
|
-
platform = process.platform;
|
|
17931
|
-
service = SERVICE;
|
|
17932
|
-
account;
|
|
17933
|
-
constructor(workspace) {
|
|
17934
|
-
this.account = workspaceAccount(workspace);
|
|
17935
|
-
}
|
|
17936
|
-
async entry() {
|
|
17937
|
-
const mod = await loadModule();
|
|
17938
|
-
if (!mod)
|
|
17939
|
-
return null;
|
|
17940
|
-
return new mod.AsyncEntry(this.service, this.account);
|
|
17941
|
-
}
|
|
17942
|
-
async get() {
|
|
17943
|
-
const linuxUnavailable = linuxKeyringAvailable();
|
|
17944
|
-
if (linuxUnavailable)
|
|
17945
|
-
return linuxUnavailable;
|
|
17946
|
-
try {
|
|
17947
|
-
const entry = await this.entry();
|
|
17948
|
-
if (!entry)
|
|
17949
|
-
return { state: "unsupported", message: "The native keyring module is not installed for this platform" };
|
|
17950
|
-
const value = await entry.getPassword();
|
|
17951
|
-
return value === undefined || value === null || value.length === 0 ? { state: "missing" } : { state: "found", value };
|
|
17952
|
-
} catch (error) {
|
|
17953
|
-
return classifyError(error);
|
|
17954
|
-
}
|
|
17955
|
-
}
|
|
17956
|
-
async set(value) {
|
|
17957
|
-
const linuxUnavailable = linuxKeyringAvailable();
|
|
17958
|
-
if (linuxUnavailable)
|
|
17959
|
-
return linuxUnavailable;
|
|
17960
|
-
try {
|
|
17961
|
-
const entry = await this.entry();
|
|
17962
|
-
if (!entry)
|
|
17963
|
-
return { state: "unsupported", message: "The native keyring module is not installed for this platform" };
|
|
17964
|
-
await entry.setPassword(value);
|
|
17965
|
-
return { state: "found", value };
|
|
17966
|
-
} catch (error) {
|
|
17967
|
-
return classifyError(error);
|
|
17968
|
-
}
|
|
17969
|
-
}
|
|
17970
|
-
getStatus() {
|
|
17971
|
-
const linuxUnavailable = linuxKeyringAvailable();
|
|
17972
|
-
if (linuxUnavailable)
|
|
17973
|
-
return linuxUnavailable;
|
|
17974
|
-
try {
|
|
17975
|
-
const mod = loadModuleSync();
|
|
17976
|
-
if (!mod)
|
|
17977
|
-
return { state: "unsupported", message: "The native keyring module is not installed for this platform" };
|
|
17978
|
-
const entry = new mod.Entry(this.service, this.account);
|
|
17979
|
-
const value = entry.getPassword();
|
|
17980
|
-
return value === undefined || value === null || value.length === 0 ? { state: "missing" } : { state: "found", value };
|
|
17981
|
-
} catch (error) {
|
|
17982
|
-
return classifyError(error);
|
|
17983
|
-
}
|
|
17984
|
-
}
|
|
17985
|
-
}
|
|
17244
|
+
var STATES = new Set([
|
|
17245
|
+
"found",
|
|
17246
|
+
"missing",
|
|
17247
|
+
"locked",
|
|
17248
|
+
"unavailable",
|
|
17249
|
+
"permission-denied",
|
|
17250
|
+
"corrupt",
|
|
17251
|
+
"unsupported"
|
|
17252
|
+
]);
|
|
17253
|
+
var mutation = Promise.resolve();
|
|
17986
17254
|
var LOOPBACK_HOST = "127.0.0.1";
|
|
17987
17255
|
function normalizeLoopbackHost(host) {
|
|
17988
17256
|
const normalized = host.trim().toLowerCase().replace(/^\[|\]$/g, "");
|
|
@@ -18081,9 +17349,9 @@ function readTrimmedEnv(env, name) {
|
|
|
18081
17349
|
function readConfigHome(env, home) {
|
|
18082
17350
|
const raw = env.XDG_CONFIG_HOME;
|
|
18083
17351
|
if (typeof raw !== "string")
|
|
18084
|
-
return
|
|
17352
|
+
return join8(home, ".config");
|
|
18085
17353
|
const trimmed = raw.trim();
|
|
18086
|
-
return trimmed.length > 0 ? normalizeWorkspacePath(trimmed, home) :
|
|
17354
|
+
return trimmed.length > 0 ? normalizeWorkspacePath(trimmed, home) : join8(home, ".config");
|
|
18087
17355
|
}
|
|
18088
17356
|
function isExistingDirectory(path) {
|
|
18089
17357
|
try {
|
|
@@ -18096,12 +17364,12 @@ function isRecord5(value) {
|
|
|
18096
17364
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18097
17365
|
}
|
|
18098
17366
|
function getWorkspaceConfigPath(env = process.env, home = homedir4()) {
|
|
18099
|
-
return
|
|
17367
|
+
return join8(readConfigHome(env, home), "signet", "workspace.json");
|
|
18100
17368
|
}
|
|
18101
17369
|
function readConfiguredWorkspacePath(env = process.env, home = homedir4(), options = {}) {
|
|
18102
17370
|
const strict = options.strict ?? true;
|
|
18103
17371
|
const configPath = getWorkspaceConfigPath(env, home);
|
|
18104
|
-
if (!
|
|
17372
|
+
if (!existsSync7(configPath))
|
|
18105
17373
|
return null;
|
|
18106
17374
|
let raw;
|
|
18107
17375
|
try {
|
|
@@ -18150,7 +17418,7 @@ function resolveWorkspacePath(options = {}) {
|
|
|
18150
17418
|
};
|
|
18151
17419
|
}
|
|
18152
17420
|
return {
|
|
18153
|
-
path:
|
|
17421
|
+
path: join8(home, DEFAULT_AGENTS_DIRNAME),
|
|
18154
17422
|
source: "default",
|
|
18155
17423
|
configPath,
|
|
18156
17424
|
configuredPath: configValue
|
|
@@ -18170,10 +17438,10 @@ function resolveEnvWorkspace(env, home, requireExisting) {
|
|
|
18170
17438
|
}
|
|
18171
17439
|
var native = null;
|
|
18172
17440
|
try {
|
|
18173
|
-
const esmRequire =
|
|
17441
|
+
const esmRequire = createRequire2(import.meta.url);
|
|
18174
17442
|
native = esmRequire("@signet/native");
|
|
18175
17443
|
} catch {}
|
|
18176
|
-
var GRAPHIQ_DEFAULT_INSTALL_DIR =
|
|
17444
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join9(homedir5(), ".local", "bin");
|
|
18177
17445
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
18178
17446
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
18179
17447
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -18315,14 +17583,14 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18315
17583
|
skipped: [],
|
|
18316
17584
|
errors: []
|
|
18317
17585
|
};
|
|
18318
|
-
if (!
|
|
17586
|
+
if (!existsSync14(sourceDir)) {
|
|
18319
17587
|
return result;
|
|
18320
17588
|
}
|
|
18321
|
-
const targetParent =
|
|
18322
|
-
if (!
|
|
17589
|
+
const targetParent = join14(targetDir, "..");
|
|
17590
|
+
if (!existsSync14(targetParent)) {
|
|
18323
17591
|
mkdirSync8(targetParent, { recursive: true });
|
|
18324
17592
|
}
|
|
18325
|
-
if (!
|
|
17593
|
+
if (!existsSync14(targetDir)) {
|
|
18326
17594
|
mkdirSync8(targetDir, { recursive: true });
|
|
18327
17595
|
}
|
|
18328
17596
|
let entries;
|
|
@@ -18336,8 +17604,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18336
17604
|
return result;
|
|
18337
17605
|
}
|
|
18338
17606
|
for (const entry of entries) {
|
|
18339
|
-
const srcPath =
|
|
18340
|
-
const destPath =
|
|
17607
|
+
const srcPath = join14(sourceDir, entry);
|
|
17608
|
+
const destPath = join14(targetDir, entry);
|
|
18341
17609
|
try {
|
|
18342
17610
|
const src = lstatSync(srcPath);
|
|
18343
17611
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|