mcp-agents-memory 0.9.17 → 0.9.19
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/build/index.js +884 -632
- package/build/migrations/005_provenance.js +149 -149
- package/build/migrations/006_canonical_validation.js +149 -149
- package/build/migrations/007_seed_real_models.js +149 -149
- package/build/migrations/008_schema_realignment.js +149 -149
- package/build/migrations/009_skills_tables.js +149 -149
- package/build/migrations/010_subject_relationships.js +149 -149
- package/build/migrations/011_memories_metadata.js +149 -149
- package/build/migrations/012_memory_sources.js +149 -149
- package/build/migrations/013_refresh_models.js +149 -149
- package/build/migrations/014_drop_legacy_facts_constraints.js +149 -149
- package/build/migrations/015_agent_provenance.js +149 -149
- package/build/migrations/016_agent_curator.js +149 -149
- package/build/migrations/017_drop_trust_weight.js +149 -149
- package/build/migrations/018_transcript_queue.js +149 -149
- package/build/migrations/019_respec_fresh_v1.js +149 -149
- package/build/migrations/020_tag_processed_and_external_uuid.js +149 -149
- package/build/migrations/021_agent_model_nullable.js +149 -149
- package/build/migrations/022_device_name.js +149 -149
- package/build/migrations/023_librarian_gate.js +149 -149
- package/build/migrations/024_canonical_project_tag_projection.js +149 -149
- package/build/migrations/025_project_tag_alias_suggestions.js +149 -149
- package/build/migrations/026_project_alias_promoter_gate.js +149 -149
- package/build/migrations/027_entry_type.js +149 -149
- package/build/migrations/028_raw_message.js +149 -149
- package/build/migrations/029_venue.js +26000 -0
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -44,9 +44,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
44
|
mod
|
|
45
45
|
));
|
|
46
46
|
|
|
47
|
-
// node_modules/postgres-array/index.js
|
|
47
|
+
// ../mcp-agents-memory/node_modules/postgres-array/index.js
|
|
48
48
|
var require_postgres_array = __commonJS({
|
|
49
|
-
"node_modules/postgres-array/index.js"(exports) {
|
|
49
|
+
"../mcp-agents-memory/node_modules/postgres-array/index.js"(exports) {
|
|
50
50
|
"use strict";
|
|
51
51
|
exports.parse = function(source, transform2) {
|
|
52
52
|
return new ArrayParser(source, transform2).parse();
|
|
@@ -138,9 +138,9 @@ var require_postgres_array = __commonJS({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// node_modules/pg-types/lib/arrayParser.js
|
|
141
|
+
// ../mcp-agents-memory/node_modules/pg-types/lib/arrayParser.js
|
|
142
142
|
var require_arrayParser = __commonJS({
|
|
143
|
-
"node_modules/pg-types/lib/arrayParser.js"(exports, module) {
|
|
143
|
+
"../mcp-agents-memory/node_modules/pg-types/lib/arrayParser.js"(exports, module) {
|
|
144
144
|
var array2 = require_postgres_array();
|
|
145
145
|
module.exports = {
|
|
146
146
|
create: function(source, transform2) {
|
|
@@ -154,9 +154,9 @@ var require_arrayParser = __commonJS({
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
|
|
157
|
-
// node_modules/postgres-date/index.js
|
|
157
|
+
// ../mcp-agents-memory/node_modules/postgres-date/index.js
|
|
158
158
|
var require_postgres_date = __commonJS({
|
|
159
|
-
"node_modules/postgres-date/index.js"(exports, module) {
|
|
159
|
+
"../mcp-agents-memory/node_modules/postgres-date/index.js"(exports, module) {
|
|
160
160
|
"use strict";
|
|
161
161
|
var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/;
|
|
162
162
|
var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/;
|
|
@@ -241,9 +241,9 @@ var require_postgres_date = __commonJS({
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
|
|
244
|
-
// node_modules/xtend/mutable.js
|
|
244
|
+
// ../mcp-agents-memory/node_modules/xtend/mutable.js
|
|
245
245
|
var require_mutable = __commonJS({
|
|
246
|
-
"node_modules/xtend/mutable.js"(exports, module) {
|
|
246
|
+
"../mcp-agents-memory/node_modules/xtend/mutable.js"(exports, module) {
|
|
247
247
|
module.exports = extend2;
|
|
248
248
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
249
249
|
function extend2(target) {
|
|
@@ -260,9 +260,9 @@ var require_mutable = __commonJS({
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
// node_modules/postgres-interval/index.js
|
|
263
|
+
// ../mcp-agents-memory/node_modules/postgres-interval/index.js
|
|
264
264
|
var require_postgres_interval = __commonJS({
|
|
265
|
-
"node_modules/postgres-interval/index.js"(exports, module) {
|
|
265
|
+
"../mcp-agents-memory/node_modules/postgres-interval/index.js"(exports, module) {
|
|
266
266
|
"use strict";
|
|
267
267
|
var extend2 = require_mutable();
|
|
268
268
|
module.exports = PostgresInterval;
|
|
@@ -351,9 +351,9 @@ var require_postgres_interval = __commonJS({
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
|
|
354
|
-
// node_modules/postgres-bytea/index.js
|
|
354
|
+
// ../mcp-agents-memory/node_modules/postgres-bytea/index.js
|
|
355
355
|
var require_postgres_bytea = __commonJS({
|
|
356
|
-
"node_modules/postgres-bytea/index.js"(exports, module) {
|
|
356
|
+
"../mcp-agents-memory/node_modules/postgres-bytea/index.js"(exports, module) {
|
|
357
357
|
"use strict";
|
|
358
358
|
var bufferFrom = Buffer.from || Buffer;
|
|
359
359
|
module.exports = function parseBytea(input) {
|
|
@@ -387,9 +387,9 @@ var require_postgres_bytea = __commonJS({
|
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
|
|
390
|
-
// node_modules/pg-types/lib/textParsers.js
|
|
390
|
+
// ../mcp-agents-memory/node_modules/pg-types/lib/textParsers.js
|
|
391
391
|
var require_textParsers = __commonJS({
|
|
392
|
-
"node_modules/pg-types/lib/textParsers.js"(exports, module) {
|
|
392
|
+
"../mcp-agents-memory/node_modules/pg-types/lib/textParsers.js"(exports, module) {
|
|
393
393
|
var array2 = require_postgres_array();
|
|
394
394
|
var arrayParser = require_arrayParser();
|
|
395
395
|
var parseDate = require_postgres_date();
|
|
@@ -587,9 +587,9 @@ var require_textParsers = __commonJS({
|
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
// node_modules/pg-int8/index.js
|
|
590
|
+
// ../mcp-agents-memory/node_modules/pg-int8/index.js
|
|
591
591
|
var require_pg_int8 = __commonJS({
|
|
592
|
-
"node_modules/pg-int8/index.js"(exports, module) {
|
|
592
|
+
"../mcp-agents-memory/node_modules/pg-int8/index.js"(exports, module) {
|
|
593
593
|
"use strict";
|
|
594
594
|
var BASE = 1e6;
|
|
595
595
|
function readInt8(buffer) {
|
|
@@ -667,9 +667,9 @@ var require_pg_int8 = __commonJS({
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
// node_modules/pg-types/lib/binaryParsers.js
|
|
670
|
+
// ../mcp-agents-memory/node_modules/pg-types/lib/binaryParsers.js
|
|
671
671
|
var require_binaryParsers = __commonJS({
|
|
672
|
-
"node_modules/pg-types/lib/binaryParsers.js"(exports, module) {
|
|
672
|
+
"../mcp-agents-memory/node_modules/pg-types/lib/binaryParsers.js"(exports, module) {
|
|
673
673
|
var parseInt64 = require_pg_int8();
|
|
674
674
|
var parseBits = function(data, bits, offset, invert, callback) {
|
|
675
675
|
offset = offset || 0;
|
|
@@ -867,9 +867,9 @@ var require_binaryParsers = __commonJS({
|
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
|
|
870
|
-
// node_modules/pg-types/lib/builtins.js
|
|
870
|
+
// ../mcp-agents-memory/node_modules/pg-types/lib/builtins.js
|
|
871
871
|
var require_builtins = __commonJS({
|
|
872
|
-
"node_modules/pg-types/lib/builtins.js"(exports, module) {
|
|
872
|
+
"../mcp-agents-memory/node_modules/pg-types/lib/builtins.js"(exports, module) {
|
|
873
873
|
module.exports = {
|
|
874
874
|
BOOL: 16,
|
|
875
875
|
BYTEA: 17,
|
|
@@ -935,9 +935,9 @@ var require_builtins = __commonJS({
|
|
|
935
935
|
}
|
|
936
936
|
});
|
|
937
937
|
|
|
938
|
-
// node_modules/pg-types/index.js
|
|
938
|
+
// ../mcp-agents-memory/node_modules/pg-types/index.js
|
|
939
939
|
var require_pg_types = __commonJS({
|
|
940
|
-
"node_modules/pg-types/index.js"(exports) {
|
|
940
|
+
"../mcp-agents-memory/node_modules/pg-types/index.js"(exports) {
|
|
941
941
|
var textParsers = require_textParsers();
|
|
942
942
|
var binaryParsers = require_binaryParsers();
|
|
943
943
|
var arrayParser = require_arrayParser();
|
|
@@ -976,9 +976,9 @@ var require_pg_types = __commonJS({
|
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
978
|
|
|
979
|
-
// node_modules/pg/lib/defaults.js
|
|
979
|
+
// ../mcp-agents-memory/node_modules/pg/lib/defaults.js
|
|
980
980
|
var require_defaults = __commonJS({
|
|
981
|
-
"node_modules/pg/lib/defaults.js"(exports, module) {
|
|
981
|
+
"../mcp-agents-memory/node_modules/pg/lib/defaults.js"(exports, module) {
|
|
982
982
|
"use strict";
|
|
983
983
|
var user;
|
|
984
984
|
try {
|
|
@@ -1043,9 +1043,9 @@ var require_defaults = __commonJS({
|
|
|
1043
1043
|
}
|
|
1044
1044
|
});
|
|
1045
1045
|
|
|
1046
|
-
// node_modules/pg/lib/utils.js
|
|
1046
|
+
// ../mcp-agents-memory/node_modules/pg/lib/utils.js
|
|
1047
1047
|
var require_utils = __commonJS({
|
|
1048
|
-
"node_modules/pg/lib/utils.js"(exports, module) {
|
|
1048
|
+
"../mcp-agents-memory/node_modules/pg/lib/utils.js"(exports, module) {
|
|
1049
1049
|
"use strict";
|
|
1050
1050
|
var defaults3 = require_defaults();
|
|
1051
1051
|
var util2 = __require("util");
|
|
@@ -1201,9 +1201,9 @@ var require_utils = __commonJS({
|
|
|
1201
1201
|
}
|
|
1202
1202
|
});
|
|
1203
1203
|
|
|
1204
|
-
// node_modules/pg/lib/crypto/utils-legacy.js
|
|
1204
|
+
// ../mcp-agents-memory/node_modules/pg/lib/crypto/utils-legacy.js
|
|
1205
1205
|
var require_utils_legacy = __commonJS({
|
|
1206
|
-
"node_modules/pg/lib/crypto/utils-legacy.js"(exports, module) {
|
|
1206
|
+
"../mcp-agents-memory/node_modules/pg/lib/crypto/utils-legacy.js"(exports, module) {
|
|
1207
1207
|
"use strict";
|
|
1208
1208
|
var nodeCrypto = __require("crypto");
|
|
1209
1209
|
function md5(string3) {
|
|
@@ -1239,9 +1239,9 @@ var require_utils_legacy = __commonJS({
|
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|
|
1241
1241
|
|
|
1242
|
-
// node_modules/pg/lib/crypto/utils-webcrypto.js
|
|
1242
|
+
// ../mcp-agents-memory/node_modules/pg/lib/crypto/utils-webcrypto.js
|
|
1243
1243
|
var require_utils_webcrypto = __commonJS({
|
|
1244
|
-
"node_modules/pg/lib/crypto/utils-webcrypto.js"(exports, module) {
|
|
1244
|
+
"../mcp-agents-memory/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports, module) {
|
|
1245
1245
|
var nodeCrypto = __require("crypto");
|
|
1246
1246
|
module.exports = {
|
|
1247
1247
|
postgresMd5PasswordHash,
|
|
@@ -1290,9 +1290,9 @@ var require_utils_webcrypto = __commonJS({
|
|
|
1290
1290
|
}
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
-
// node_modules/pg/lib/crypto/utils.js
|
|
1293
|
+
// ../mcp-agents-memory/node_modules/pg/lib/crypto/utils.js
|
|
1294
1294
|
var require_utils2 = __commonJS({
|
|
1295
|
-
"node_modules/pg/lib/crypto/utils.js"(exports, module) {
|
|
1295
|
+
"../mcp-agents-memory/node_modules/pg/lib/crypto/utils.js"(exports, module) {
|
|
1296
1296
|
"use strict";
|
|
1297
1297
|
var useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15;
|
|
1298
1298
|
if (useLegacyCrypto) {
|
|
@@ -1303,9 +1303,9 @@ var require_utils2 = __commonJS({
|
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
|
|
1306
|
-
// node_modules/pg/lib/crypto/cert-signatures.js
|
|
1306
|
+
// ../mcp-agents-memory/node_modules/pg/lib/crypto/cert-signatures.js
|
|
1307
1307
|
var require_cert_signatures = __commonJS({
|
|
1308
|
-
"node_modules/pg/lib/crypto/cert-signatures.js"(exports, module) {
|
|
1308
|
+
"../mcp-agents-memory/node_modules/pg/lib/crypto/cert-signatures.js"(exports, module) {
|
|
1309
1309
|
function x509Error(msg, cert) {
|
|
1310
1310
|
return new Error("SASL channel binding: " + msg + " when parsing public certificate " + cert.toString("base64"));
|
|
1311
1311
|
}
|
|
@@ -1416,9 +1416,9 @@ var require_cert_signatures = __commonJS({
|
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
1418
|
|
|
1419
|
-
// node_modules/pg/lib/crypto/sasl.js
|
|
1419
|
+
// ../mcp-agents-memory/node_modules/pg/lib/crypto/sasl.js
|
|
1420
1420
|
var require_sasl = __commonJS({
|
|
1421
|
-
"node_modules/pg/lib/crypto/sasl.js"(exports, module) {
|
|
1421
|
+
"../mcp-agents-memory/node_modules/pg/lib/crypto/sasl.js"(exports, module) {
|
|
1422
1422
|
"use strict";
|
|
1423
1423
|
var crypto3 = require_utils2();
|
|
1424
1424
|
var { signatureAlgorithmHashFromCertificate } = require_cert_signatures();
|
|
@@ -1583,9 +1583,9 @@ var require_sasl = __commonJS({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
1585
|
|
|
1586
|
-
// node_modules/pg/lib/type-overrides.js
|
|
1586
|
+
// ../mcp-agents-memory/node_modules/pg/lib/type-overrides.js
|
|
1587
1587
|
var require_type_overrides = __commonJS({
|
|
1588
|
-
"node_modules/pg/lib/type-overrides.js"(exports, module) {
|
|
1588
|
+
"../mcp-agents-memory/node_modules/pg/lib/type-overrides.js"(exports, module) {
|
|
1589
1589
|
"use strict";
|
|
1590
1590
|
var types2 = require_pg_types();
|
|
1591
1591
|
function TypeOverrides2(userTypes) {
|
|
@@ -1618,9 +1618,9 @@ var require_type_overrides = __commonJS({
|
|
|
1618
1618
|
}
|
|
1619
1619
|
});
|
|
1620
1620
|
|
|
1621
|
-
// node_modules/pg-connection-string/index.js
|
|
1621
|
+
// ../mcp-agents-memory/node_modules/pg-connection-string/index.js
|
|
1622
1622
|
var require_pg_connection_string = __commonJS({
|
|
1623
|
-
"node_modules/pg-connection-string/index.js"(exports, module) {
|
|
1623
|
+
"../mcp-agents-memory/node_modules/pg-connection-string/index.js"(exports, module) {
|
|
1624
1624
|
"use strict";
|
|
1625
1625
|
function parse3(str2, options = {}) {
|
|
1626
1626
|
if (str2.charAt(0) === "/") {
|
|
@@ -1675,15 +1675,15 @@ var require_pg_connection_string = __commonJS({
|
|
|
1675
1675
|
if (config2.sslcert || config2.sslkey || config2.sslrootcert || config2.sslmode) {
|
|
1676
1676
|
config2.ssl = {};
|
|
1677
1677
|
}
|
|
1678
|
-
const
|
|
1678
|
+
const fs14 = config2.sslcert || config2.sslkey || config2.sslrootcert ? __require("fs") : null;
|
|
1679
1679
|
if (config2.sslcert) {
|
|
1680
|
-
config2.ssl.cert =
|
|
1680
|
+
config2.ssl.cert = fs14.readFileSync(config2.sslcert).toString();
|
|
1681
1681
|
}
|
|
1682
1682
|
if (config2.sslkey) {
|
|
1683
|
-
config2.ssl.key =
|
|
1683
|
+
config2.ssl.key = fs14.readFileSync(config2.sslkey).toString();
|
|
1684
1684
|
}
|
|
1685
1685
|
if (config2.sslrootcert) {
|
|
1686
|
-
config2.ssl.ca =
|
|
1686
|
+
config2.ssl.ca = fs14.readFileSync(config2.sslrootcert).toString();
|
|
1687
1687
|
}
|
|
1688
1688
|
if (options.useLibpqCompat && config2.uselibpqcompat) {
|
|
1689
1689
|
throw new Error("Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.");
|
|
@@ -1803,9 +1803,9 @@ See https://www.postgresql.org/docs/current/libpq-ssl.html for libpq SSL mode de
|
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
1805
|
|
|
1806
|
-
// node_modules/pg/lib/connection-parameters.js
|
|
1806
|
+
// ../mcp-agents-memory/node_modules/pg/lib/connection-parameters.js
|
|
1807
1807
|
var require_connection_parameters = __commonJS({
|
|
1808
|
-
"node_modules/pg/lib/connection-parameters.js"(exports, module) {
|
|
1808
|
+
"../mcp-agents-memory/node_modules/pg/lib/connection-parameters.js"(exports, module) {
|
|
1809
1809
|
"use strict";
|
|
1810
1810
|
var dns = __require("dns");
|
|
1811
1811
|
var defaults3 = require_defaults();
|
|
@@ -1944,9 +1944,9 @@ var require_connection_parameters = __commonJS({
|
|
|
1944
1944
|
}
|
|
1945
1945
|
});
|
|
1946
1946
|
|
|
1947
|
-
// node_modules/pg/lib/result.js
|
|
1947
|
+
// ../mcp-agents-memory/node_modules/pg/lib/result.js
|
|
1948
1948
|
var require_result = __commonJS({
|
|
1949
|
-
"node_modules/pg/lib/result.js"(exports, module) {
|
|
1949
|
+
"../mcp-agents-memory/node_modules/pg/lib/result.js"(exports, module) {
|
|
1950
1950
|
"use strict";
|
|
1951
1951
|
var types2 = require_pg_types();
|
|
1952
1952
|
var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;
|
|
@@ -2035,9 +2035,9 @@ var require_result = __commonJS({
|
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
2037
|
|
|
2038
|
-
// node_modules/pg/lib/query.js
|
|
2038
|
+
// ../mcp-agents-memory/node_modules/pg/lib/query.js
|
|
2039
2039
|
var require_query = __commonJS({
|
|
2040
|
-
"node_modules/pg/lib/query.js"(exports, module) {
|
|
2040
|
+
"../mcp-agents-memory/node_modules/pg/lib/query.js"(exports, module) {
|
|
2041
2041
|
"use strict";
|
|
2042
2042
|
var { EventEmitter } = __require("events");
|
|
2043
2043
|
var Result2 = require_result();
|
|
@@ -2232,9 +2232,9 @@ var require_query = __commonJS({
|
|
|
2232
2232
|
}
|
|
2233
2233
|
});
|
|
2234
2234
|
|
|
2235
|
-
// node_modules/pg-protocol/dist/messages.js
|
|
2235
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/messages.js
|
|
2236
2236
|
var require_messages = __commonJS({
|
|
2237
|
-
"node_modules/pg-protocol/dist/messages.js"(exports) {
|
|
2237
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/messages.js"(exports) {
|
|
2238
2238
|
"use strict";
|
|
2239
2239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2240
2240
|
exports.NoticeMessage = exports.DataRowMessage = exports.CommandCompleteMessage = exports.ReadyForQueryMessage = exports.NotificationResponseMessage = exports.BackendKeyDataMessage = exports.AuthenticationMD5Password = exports.ParameterStatusMessage = exports.ParameterDescriptionMessage = exports.RowDescriptionMessage = exports.Field = exports.CopyResponse = exports.CopyDataMessage = exports.DatabaseError = exports.copyDone = exports.emptyQuery = exports.replicationStart = exports.portalSuspended = exports.noData = exports.closeComplete = exports.bindComplete = exports.parseComplete = void 0;
|
|
@@ -2397,9 +2397,9 @@ var require_messages = __commonJS({
|
|
|
2397
2397
|
}
|
|
2398
2398
|
});
|
|
2399
2399
|
|
|
2400
|
-
// node_modules/pg-protocol/dist/buffer-writer.js
|
|
2400
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/buffer-writer.js
|
|
2401
2401
|
var require_buffer_writer = __commonJS({
|
|
2402
|
-
"node_modules/pg-protocol/dist/buffer-writer.js"(exports) {
|
|
2402
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/buffer-writer.js"(exports) {
|
|
2403
2403
|
"use strict";
|
|
2404
2404
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2405
2405
|
exports.Writer = void 0;
|
|
@@ -2478,9 +2478,9 @@ var require_buffer_writer = __commonJS({
|
|
|
2478
2478
|
}
|
|
2479
2479
|
});
|
|
2480
2480
|
|
|
2481
|
-
// node_modules/pg-protocol/dist/serializer.js
|
|
2481
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/serializer.js
|
|
2482
2482
|
var require_serializer = __commonJS({
|
|
2483
|
-
"node_modules/pg-protocol/dist/serializer.js"(exports) {
|
|
2483
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/serializer.js"(exports) {
|
|
2484
2484
|
"use strict";
|
|
2485
2485
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2486
2486
|
exports.serialize = void 0;
|
|
@@ -2695,9 +2695,9 @@ var require_serializer = __commonJS({
|
|
|
2695
2695
|
}
|
|
2696
2696
|
});
|
|
2697
2697
|
|
|
2698
|
-
// node_modules/pg-protocol/dist/buffer-reader.js
|
|
2698
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/buffer-reader.js
|
|
2699
2699
|
var require_buffer_reader = __commonJS({
|
|
2700
|
-
"node_modules/pg-protocol/dist/buffer-reader.js"(exports) {
|
|
2700
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/buffer-reader.js"(exports) {
|
|
2701
2701
|
"use strict";
|
|
2702
2702
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2703
2703
|
exports.BufferReader = void 0;
|
|
@@ -2754,9 +2754,9 @@ var require_buffer_reader = __commonJS({
|
|
|
2754
2754
|
}
|
|
2755
2755
|
});
|
|
2756
2756
|
|
|
2757
|
-
// node_modules/pg-protocol/dist/parser.js
|
|
2757
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/parser.js
|
|
2758
2758
|
var require_parser = __commonJS({
|
|
2759
|
-
"node_modules/pg-protocol/dist/parser.js"(exports) {
|
|
2759
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/parser.js"(exports) {
|
|
2760
2760
|
"use strict";
|
|
2761
2761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2762
2762
|
exports.Parser = void 0;
|
|
@@ -3061,9 +3061,9 @@ var require_parser = __commonJS({
|
|
|
3061
3061
|
}
|
|
3062
3062
|
});
|
|
3063
3063
|
|
|
3064
|
-
// node_modules/pg-protocol/dist/index.js
|
|
3064
|
+
// ../mcp-agents-memory/node_modules/pg-protocol/dist/index.js
|
|
3065
3065
|
var require_dist = __commonJS({
|
|
3066
|
-
"node_modules/pg-protocol/dist/index.js"(exports) {
|
|
3066
|
+
"../mcp-agents-memory/node_modules/pg-protocol/dist/index.js"(exports) {
|
|
3067
3067
|
"use strict";
|
|
3068
3068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3069
3069
|
exports.DatabaseError = exports.serialize = exports.parse = void 0;
|
|
@@ -3085,18 +3085,18 @@ var require_dist = __commonJS({
|
|
|
3085
3085
|
}
|
|
3086
3086
|
});
|
|
3087
3087
|
|
|
3088
|
-
// node_modules/pg-cloudflare/dist/empty.js
|
|
3088
|
+
// ../mcp-agents-memory/node_modules/pg-cloudflare/dist/empty.js
|
|
3089
3089
|
var require_empty = __commonJS({
|
|
3090
|
-
"node_modules/pg-cloudflare/dist/empty.js"(exports) {
|
|
3090
|
+
"../mcp-agents-memory/node_modules/pg-cloudflare/dist/empty.js"(exports) {
|
|
3091
3091
|
"use strict";
|
|
3092
3092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3093
3093
|
exports.default = {};
|
|
3094
3094
|
}
|
|
3095
3095
|
});
|
|
3096
3096
|
|
|
3097
|
-
// node_modules/pg/lib/stream.js
|
|
3097
|
+
// ../mcp-agents-memory/node_modules/pg/lib/stream.js
|
|
3098
3098
|
var require_stream = __commonJS({
|
|
3099
|
-
"node_modules/pg/lib/stream.js"(exports, module) {
|
|
3099
|
+
"../mcp-agents-memory/node_modules/pg/lib/stream.js"(exports, module) {
|
|
3100
3100
|
var { getStream, getSecureStream } = getStreamFuncs();
|
|
3101
3101
|
module.exports = {
|
|
3102
3102
|
/**
|
|
@@ -3160,9 +3160,9 @@ var require_stream = __commonJS({
|
|
|
3160
3160
|
}
|
|
3161
3161
|
});
|
|
3162
3162
|
|
|
3163
|
-
// node_modules/pg/lib/connection.js
|
|
3163
|
+
// ../mcp-agents-memory/node_modules/pg/lib/connection.js
|
|
3164
3164
|
var require_connection = __commonJS({
|
|
3165
|
-
"node_modules/pg/lib/connection.js"(exports, module) {
|
|
3165
|
+
"../mcp-agents-memory/node_modules/pg/lib/connection.js"(exports, module) {
|
|
3166
3166
|
"use strict";
|
|
3167
3167
|
var EventEmitter = __require("events").EventEmitter;
|
|
3168
3168
|
var { parse: parse3, serialize } = require_dist();
|
|
@@ -3343,9 +3343,9 @@ var require_connection = __commonJS({
|
|
|
3343
3343
|
}
|
|
3344
3344
|
});
|
|
3345
3345
|
|
|
3346
|
-
// node_modules/split2/index.js
|
|
3346
|
+
// ../mcp-agents-memory/node_modules/split2/index.js
|
|
3347
3347
|
var require_split2 = __commonJS({
|
|
3348
|
-
"node_modules/split2/index.js"(exports, module) {
|
|
3348
|
+
"../mcp-agents-memory/node_modules/split2/index.js"(exports, module) {
|
|
3349
3349
|
"use strict";
|
|
3350
3350
|
var { Transform } = __require("stream");
|
|
3351
3351
|
var { StringDecoder } = __require("string_decoder");
|
|
@@ -3444,9 +3444,9 @@ var require_split2 = __commonJS({
|
|
|
3444
3444
|
}
|
|
3445
3445
|
});
|
|
3446
3446
|
|
|
3447
|
-
// node_modules/pgpass/lib/helper.js
|
|
3447
|
+
// ../mcp-agents-memory/node_modules/pgpass/lib/helper.js
|
|
3448
3448
|
var require_helper = __commonJS({
|
|
3449
|
-
"node_modules/pgpass/lib/helper.js"(exports, module) {
|
|
3449
|
+
"../mcp-agents-memory/node_modules/pgpass/lib/helper.js"(exports, module) {
|
|
3450
3450
|
"use strict";
|
|
3451
3451
|
var path13 = __require("path");
|
|
3452
3452
|
var Stream2 = __require("stream").Stream;
|
|
@@ -3615,20 +3615,20 @@ var require_helper = __commonJS({
|
|
|
3615
3615
|
}
|
|
3616
3616
|
});
|
|
3617
3617
|
|
|
3618
|
-
// node_modules/pgpass/lib/index.js
|
|
3618
|
+
// ../mcp-agents-memory/node_modules/pgpass/lib/index.js
|
|
3619
3619
|
var require_lib = __commonJS({
|
|
3620
|
-
"node_modules/pgpass/lib/index.js"(exports, module) {
|
|
3620
|
+
"../mcp-agents-memory/node_modules/pgpass/lib/index.js"(exports, module) {
|
|
3621
3621
|
"use strict";
|
|
3622
3622
|
var path13 = __require("path");
|
|
3623
|
-
var
|
|
3623
|
+
var fs14 = __require("fs");
|
|
3624
3624
|
var helper = require_helper();
|
|
3625
3625
|
module.exports = function(connInfo, cb) {
|
|
3626
3626
|
var file = helper.getFileName();
|
|
3627
|
-
|
|
3627
|
+
fs14.stat(file, function(err3, stat) {
|
|
3628
3628
|
if (err3 || !helper.usePgPass(stat, file)) {
|
|
3629
3629
|
return cb(void 0);
|
|
3630
3630
|
}
|
|
3631
|
-
var st =
|
|
3631
|
+
var st = fs14.createReadStream(file);
|
|
3632
3632
|
helper.getPassword(connInfo, st, cb);
|
|
3633
3633
|
});
|
|
3634
3634
|
};
|
|
@@ -3636,9 +3636,9 @@ var require_lib = __commonJS({
|
|
|
3636
3636
|
}
|
|
3637
3637
|
});
|
|
3638
3638
|
|
|
3639
|
-
// node_modules/pg/lib/client.js
|
|
3639
|
+
// ../mcp-agents-memory/node_modules/pg/lib/client.js
|
|
3640
3640
|
var require_client = __commonJS({
|
|
3641
|
-
"node_modules/pg/lib/client.js"(exports, module) {
|
|
3641
|
+
"../mcp-agents-memory/node_modules/pg/lib/client.js"(exports, module) {
|
|
3642
3642
|
var EventEmitter = __require("events").EventEmitter;
|
|
3643
3643
|
var utils = require_utils();
|
|
3644
3644
|
var nodeUtils = __require("util");
|
|
@@ -4254,9 +4254,9 @@ var require_client = __commonJS({
|
|
|
4254
4254
|
}
|
|
4255
4255
|
});
|
|
4256
4256
|
|
|
4257
|
-
// node_modules/pg-pool/index.js
|
|
4257
|
+
// ../mcp-agents-memory/node_modules/pg-pool/index.js
|
|
4258
4258
|
var require_pg_pool = __commonJS({
|
|
4259
|
-
"node_modules/pg-pool/index.js"(exports, module) {
|
|
4259
|
+
"../mcp-agents-memory/node_modules/pg-pool/index.js"(exports, module) {
|
|
4260
4260
|
"use strict";
|
|
4261
4261
|
var EventEmitter = __require("events").EventEmitter;
|
|
4262
4262
|
var NOOP = function() {
|
|
@@ -4680,9 +4680,9 @@ var require_pg_pool = __commonJS({
|
|
|
4680
4680
|
}
|
|
4681
4681
|
});
|
|
4682
4682
|
|
|
4683
|
-
// node_modules/pg/lib/native/query.js
|
|
4683
|
+
// ../mcp-agents-memory/node_modules/pg/lib/native/query.js
|
|
4684
4684
|
var require_query2 = __commonJS({
|
|
4685
|
-
"node_modules/pg/lib/native/query.js"(exports, module) {
|
|
4685
|
+
"../mcp-agents-memory/node_modules/pg/lib/native/query.js"(exports, module) {
|
|
4686
4686
|
"use strict";
|
|
4687
4687
|
var EventEmitter = __require("events").EventEmitter;
|
|
4688
4688
|
var util2 = __require("util");
|
|
@@ -4821,9 +4821,9 @@ var require_query2 = __commonJS({
|
|
|
4821
4821
|
}
|
|
4822
4822
|
});
|
|
4823
4823
|
|
|
4824
|
-
// node_modules/pg/lib/native/client.js
|
|
4824
|
+
// ../mcp-agents-memory/node_modules/pg/lib/native/client.js
|
|
4825
4825
|
var require_client2 = __commonJS({
|
|
4826
|
-
"node_modules/pg/lib/native/client.js"(exports, module) {
|
|
4826
|
+
"../mcp-agents-memory/node_modules/pg/lib/native/client.js"(exports, module) {
|
|
4827
4827
|
var nodeUtils = __require("util");
|
|
4828
4828
|
var Native;
|
|
4829
4829
|
try {
|
|
@@ -5074,17 +5074,17 @@ var require_client2 = __commonJS({
|
|
|
5074
5074
|
}
|
|
5075
5075
|
});
|
|
5076
5076
|
|
|
5077
|
-
// node_modules/pg/lib/native/index.js
|
|
5077
|
+
// ../mcp-agents-memory/node_modules/pg/lib/native/index.js
|
|
5078
5078
|
var require_native = __commonJS({
|
|
5079
|
-
"node_modules/pg/lib/native/index.js"(exports, module) {
|
|
5079
|
+
"../mcp-agents-memory/node_modules/pg/lib/native/index.js"(exports, module) {
|
|
5080
5080
|
"use strict";
|
|
5081
5081
|
module.exports = require_client2();
|
|
5082
5082
|
}
|
|
5083
5083
|
});
|
|
5084
5084
|
|
|
5085
|
-
// node_modules/pg/lib/index.js
|
|
5085
|
+
// ../mcp-agents-memory/node_modules/pg/lib/index.js
|
|
5086
5086
|
var require_lib2 = __commonJS({
|
|
5087
|
-
"node_modules/pg/lib/index.js"(exports, module) {
|
|
5087
|
+
"../mcp-agents-memory/node_modules/pg/lib/index.js"(exports, module) {
|
|
5088
5088
|
"use strict";
|
|
5089
5089
|
var Client2 = require_client();
|
|
5090
5090
|
var defaults3 = require_defaults();
|
|
@@ -5148,10 +5148,10 @@ var require_lib2 = __commonJS({
|
|
|
5148
5148
|
}
|
|
5149
5149
|
});
|
|
5150
5150
|
|
|
5151
|
-
// node_modules/pg/esm/index.mjs
|
|
5151
|
+
// ../mcp-agents-memory/node_modules/pg/esm/index.mjs
|
|
5152
5152
|
var import_lib, Client, Pool, Connection, types, Query, DatabaseError, escapeIdentifier, escapeLiteral, Result, TypeOverrides, defaults, esm_default;
|
|
5153
5153
|
var init_esm = __esm({
|
|
5154
|
-
"node_modules/pg/esm/index.mjs"() {
|
|
5154
|
+
"../mcp-agents-memory/node_modules/pg/esm/index.mjs"() {
|
|
5155
5155
|
import_lib = __toESM(require_lib2(), 1);
|
|
5156
5156
|
Client = import_lib.default.Client;
|
|
5157
5157
|
Pool = import_lib.default.Pool;
|
|
@@ -5168,9 +5168,9 @@ var init_esm = __esm({
|
|
|
5168
5168
|
}
|
|
5169
5169
|
});
|
|
5170
5170
|
|
|
5171
|
-
// node_modules/asn1/lib/ber/errors.js
|
|
5171
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/ber/errors.js
|
|
5172
5172
|
var require_errors = __commonJS({
|
|
5173
|
-
"node_modules/asn1/lib/ber/errors.js"(exports, module) {
|
|
5173
|
+
"../mcp-agents-memory/node_modules/asn1/lib/ber/errors.js"(exports, module) {
|
|
5174
5174
|
module.exports = {
|
|
5175
5175
|
newInvalidAsn1Error: function(msg) {
|
|
5176
5176
|
var e = new Error();
|
|
@@ -5182,9 +5182,9 @@ var require_errors = __commonJS({
|
|
|
5182
5182
|
}
|
|
5183
5183
|
});
|
|
5184
5184
|
|
|
5185
|
-
// node_modules/asn1/lib/ber/types.js
|
|
5185
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/ber/types.js
|
|
5186
5186
|
var require_types = __commonJS({
|
|
5187
|
-
"node_modules/asn1/lib/ber/types.js"(exports, module) {
|
|
5187
|
+
"../mcp-agents-memory/node_modules/asn1/lib/ber/types.js"(exports, module) {
|
|
5188
5188
|
module.exports = {
|
|
5189
5189
|
EOC: 0,
|
|
5190
5190
|
Boolean: 1,
|
|
@@ -5222,9 +5222,9 @@ var require_types = __commonJS({
|
|
|
5222
5222
|
}
|
|
5223
5223
|
});
|
|
5224
5224
|
|
|
5225
|
-
// node_modules/safer-buffer/safer.js
|
|
5225
|
+
// ../mcp-agents-memory/node_modules/safer-buffer/safer.js
|
|
5226
5226
|
var require_safer = __commonJS({
|
|
5227
|
-
"node_modules/safer-buffer/safer.js"(exports, module) {
|
|
5227
|
+
"../mcp-agents-memory/node_modules/safer-buffer/safer.js"(exports, module) {
|
|
5228
5228
|
"use strict";
|
|
5229
5229
|
var buffer = __require("buffer");
|
|
5230
5230
|
var Buffer2 = buffer.Buffer;
|
|
@@ -5290,9 +5290,9 @@ var require_safer = __commonJS({
|
|
|
5290
5290
|
}
|
|
5291
5291
|
});
|
|
5292
5292
|
|
|
5293
|
-
// node_modules/asn1/lib/ber/reader.js
|
|
5293
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/ber/reader.js
|
|
5294
5294
|
var require_reader = __commonJS({
|
|
5295
|
-
"node_modules/asn1/lib/ber/reader.js"(exports, module) {
|
|
5295
|
+
"../mcp-agents-memory/node_modules/asn1/lib/ber/reader.js"(exports, module) {
|
|
5296
5296
|
var assert2 = __require("assert");
|
|
5297
5297
|
var Buffer2 = require_safer().Buffer;
|
|
5298
5298
|
var ASN1 = require_types();
|
|
@@ -5455,9 +5455,9 @@ var require_reader = __commonJS({
|
|
|
5455
5455
|
}
|
|
5456
5456
|
});
|
|
5457
5457
|
|
|
5458
|
-
// node_modules/asn1/lib/ber/writer.js
|
|
5458
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/ber/writer.js
|
|
5459
5459
|
var require_writer = __commonJS({
|
|
5460
|
-
"node_modules/asn1/lib/ber/writer.js"(exports, module) {
|
|
5460
|
+
"../mcp-agents-memory/node_modules/asn1/lib/ber/writer.js"(exports, module) {
|
|
5461
5461
|
var assert2 = __require("assert");
|
|
5462
5462
|
var Buffer2 = require_safer().Buffer;
|
|
5463
5463
|
var ASN1 = require_types();
|
|
@@ -5698,9 +5698,9 @@ var require_writer = __commonJS({
|
|
|
5698
5698
|
}
|
|
5699
5699
|
});
|
|
5700
5700
|
|
|
5701
|
-
// node_modules/asn1/lib/ber/index.js
|
|
5701
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/ber/index.js
|
|
5702
5702
|
var require_ber = __commonJS({
|
|
5703
|
-
"node_modules/asn1/lib/ber/index.js"(exports, module) {
|
|
5703
|
+
"../mcp-agents-memory/node_modules/asn1/lib/ber/index.js"(exports, module) {
|
|
5704
5704
|
var errors = require_errors();
|
|
5705
5705
|
var types2 = require_types();
|
|
5706
5706
|
var Reader = require_reader();
|
|
@@ -5722,9 +5722,9 @@ var require_ber = __commonJS({
|
|
|
5722
5722
|
}
|
|
5723
5723
|
});
|
|
5724
5724
|
|
|
5725
|
-
// node_modules/asn1/lib/index.js
|
|
5725
|
+
// ../mcp-agents-memory/node_modules/asn1/lib/index.js
|
|
5726
5726
|
var require_lib3 = __commonJS({
|
|
5727
|
-
"node_modules/asn1/lib/index.js"(exports, module) {
|
|
5727
|
+
"../mcp-agents-memory/node_modules/asn1/lib/index.js"(exports, module) {
|
|
5728
5728
|
var Ber = require_ber();
|
|
5729
5729
|
module.exports = {
|
|
5730
5730
|
Ber,
|
|
@@ -5734,9 +5734,9 @@ var require_lib3 = __commonJS({
|
|
|
5734
5734
|
}
|
|
5735
5735
|
});
|
|
5736
5736
|
|
|
5737
|
-
// node_modules/tweetnacl/nacl-fast.js
|
|
5737
|
+
// ../mcp-agents-memory/node_modules/tweetnacl/nacl-fast.js
|
|
5738
5738
|
var require_nacl_fast = __commonJS({
|
|
5739
|
-
"node_modules/tweetnacl/nacl-fast.js"(exports, module) {
|
|
5739
|
+
"../mcp-agents-memory/node_modules/tweetnacl/nacl-fast.js"(exports, module) {
|
|
5740
5740
|
(function(nacl) {
|
|
5741
5741
|
"use strict";
|
|
5742
5742
|
var gf = function(init) {
|
|
@@ -7954,9 +7954,9 @@ var require_nacl_fast = __commonJS({
|
|
|
7954
7954
|
}
|
|
7955
7955
|
});
|
|
7956
7956
|
|
|
7957
|
-
// node_modules/bcrypt-pbkdf/index.js
|
|
7957
|
+
// ../mcp-agents-memory/node_modules/bcrypt-pbkdf/index.js
|
|
7958
7958
|
var require_bcrypt_pbkdf = __commonJS({
|
|
7959
|
-
"node_modules/bcrypt-pbkdf/index.js"(exports, module) {
|
|
7959
|
+
"../mcp-agents-memory/node_modules/bcrypt-pbkdf/index.js"(exports, module) {
|
|
7960
7960
|
"use strict";
|
|
7961
7961
|
var crypto_hash_sha512 = require_nacl_fast().lowlevel.crypto_hash;
|
|
7962
7962
|
var BLF_J = 0;
|
|
@@ -9207,9 +9207,9 @@ var require_bcrypt_pbkdf = __commonJS({
|
|
|
9207
9207
|
}
|
|
9208
9208
|
});
|
|
9209
9209
|
|
|
9210
|
-
// node_modules/ssh2/lib/protocol/constants.js
|
|
9210
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/constants.js
|
|
9211
9211
|
var require_constants = __commonJS({
|
|
9212
|
-
"node_modules/ssh2/lib/protocol/constants.js"(exports, module) {
|
|
9212
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/constants.js"(exports, module) {
|
|
9213
9213
|
"use strict";
|
|
9214
9214
|
var crypto3 = __require("crypto");
|
|
9215
9215
|
var cpuInfo;
|
|
@@ -9599,9 +9599,9 @@ var require_constants = __commonJS({
|
|
|
9599
9599
|
}
|
|
9600
9600
|
});
|
|
9601
9601
|
|
|
9602
|
-
// node_modules/ssh2/lib/protocol/utils.js
|
|
9602
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/utils.js
|
|
9603
9603
|
var require_utils3 = __commonJS({
|
|
9604
|
-
"node_modules/ssh2/lib/protocol/utils.js"(exports, module) {
|
|
9604
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/utils.js"(exports, module) {
|
|
9605
9605
|
"use strict";
|
|
9606
9606
|
var Ber = require_lib3().Ber;
|
|
9607
9607
|
var DISCONNECT_REASON;
|
|
@@ -9923,9 +9923,9 @@ var require_sshcrypto = __commonJS({
|
|
|
9923
9923
|
}
|
|
9924
9924
|
});
|
|
9925
9925
|
|
|
9926
|
-
// node_modules/ssh2/lib/protocol/crypto/poly1305.js
|
|
9926
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/crypto/poly1305.js
|
|
9927
9927
|
var require_poly1305 = __commonJS({
|
|
9928
|
-
"node_modules/ssh2/lib/protocol/crypto/poly1305.js"(exports, module) {
|
|
9928
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/crypto/poly1305.js"(exports, module) {
|
|
9929
9929
|
var createPoly1305 = (function() {
|
|
9930
9930
|
var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : void 0;
|
|
9931
9931
|
if (typeof __filename !== "undefined") _scriptDir = _scriptDir || __filename;
|
|
@@ -10351,9 +10351,9 @@ var require_poly1305 = __commonJS({
|
|
|
10351
10351
|
}
|
|
10352
10352
|
});
|
|
10353
10353
|
|
|
10354
|
-
// node_modules/ssh2/lib/protocol/crypto.js
|
|
10354
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/crypto.js
|
|
10355
10355
|
var require_crypto = __commonJS({
|
|
10356
|
-
"node_modules/ssh2/lib/protocol/crypto.js"(exports, module) {
|
|
10356
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/crypto.js"(exports, module) {
|
|
10357
10357
|
"use strict";
|
|
10358
10358
|
var {
|
|
10359
10359
|
createCipheriv,
|
|
@@ -11675,9 +11675,9 @@ var require_crypto = __commonJS({
|
|
|
11675
11675
|
}
|
|
11676
11676
|
});
|
|
11677
11677
|
|
|
11678
|
-
// node_modules/ssh2/lib/protocol/keyParser.js
|
|
11678
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/keyParser.js
|
|
11679
11679
|
var require_keyParser = __commonJS({
|
|
11680
|
-
"node_modules/ssh2/lib/protocol/keyParser.js"(exports, module) {
|
|
11680
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/keyParser.js"(exports, module) {
|
|
11681
11681
|
"use strict";
|
|
11682
11682
|
var {
|
|
11683
11683
|
createDecipheriv,
|
|
@@ -12916,9 +12916,9 @@ ${formatted}-----END ${type} KEY-----`;
|
|
|
12916
12916
|
}
|
|
12917
12917
|
});
|
|
12918
12918
|
|
|
12919
|
-
// node_modules/ssh2/lib/agent.js
|
|
12919
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/agent.js
|
|
12920
12920
|
var require_agent = __commonJS({
|
|
12921
|
-
"node_modules/ssh2/lib/agent.js"(exports, module) {
|
|
12921
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/agent.js"(exports, module) {
|
|
12922
12922
|
"use strict";
|
|
12923
12923
|
var { Socket } = __require("net");
|
|
12924
12924
|
var { Duplex } = __require("stream");
|
|
@@ -13744,9 +13744,9 @@ var require_agent = __commonJS({
|
|
|
13744
13744
|
}
|
|
13745
13745
|
});
|
|
13746
13746
|
|
|
13747
|
-
// node_modules/ssh2/lib/protocol/zlib.js
|
|
13747
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/zlib.js
|
|
13748
13748
|
var require_zlib = __commonJS({
|
|
13749
|
-
"node_modules/ssh2/lib/protocol/zlib.js"(exports, module) {
|
|
13749
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/zlib.js"(exports, module) {
|
|
13750
13750
|
"use strict";
|
|
13751
13751
|
var { kMaxLength } = __require("buffer");
|
|
13752
13752
|
var {
|
|
@@ -13968,9 +13968,9 @@ var require_zlib = __commonJS({
|
|
|
13968
13968
|
}
|
|
13969
13969
|
});
|
|
13970
13970
|
|
|
13971
|
-
// node_modules/ssh2/lib/protocol/handlers.misc.js
|
|
13971
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/handlers.misc.js
|
|
13972
13972
|
var require_handlers_misc = __commonJS({
|
|
13973
|
-
"node_modules/ssh2/lib/protocol/handlers.misc.js"(exports, module) {
|
|
13973
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/handlers.misc.js"(exports, module) {
|
|
13974
13974
|
"use strict";
|
|
13975
13975
|
var {
|
|
13976
13976
|
bufferSlice,
|
|
@@ -14875,9 +14875,9 @@ var require_handlers_misc = __commonJS({
|
|
|
14875
14875
|
}
|
|
14876
14876
|
});
|
|
14877
14877
|
|
|
14878
|
-
// node_modules/ssh2/lib/protocol/handlers.js
|
|
14878
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/handlers.js
|
|
14879
14879
|
var require_handlers = __commonJS({
|
|
14880
|
-
"node_modules/ssh2/lib/protocol/handlers.js"(exports, module) {
|
|
14880
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/handlers.js"(exports, module) {
|
|
14881
14881
|
"use strict";
|
|
14882
14882
|
var MESSAGE_HANDLERS = new Array(256);
|
|
14883
14883
|
[
|
|
@@ -14894,9 +14894,9 @@ var require_handlers = __commonJS({
|
|
|
14894
14894
|
}
|
|
14895
14895
|
});
|
|
14896
14896
|
|
|
14897
|
-
// node_modules/ssh2/lib/protocol/kex.js
|
|
14897
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/kex.js
|
|
14898
14898
|
var require_kex = __commonJS({
|
|
14899
|
-
"node_modules/ssh2/lib/protocol/kex.js"(exports, module) {
|
|
14899
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/kex.js"(exports, module) {
|
|
14900
14900
|
"use strict";
|
|
14901
14901
|
var {
|
|
14902
14902
|
createDiffieHellman,
|
|
@@ -16481,9 +16481,9 @@ var require_kex = __commonJS({
|
|
|
16481
16481
|
}
|
|
16482
16482
|
});
|
|
16483
16483
|
|
|
16484
|
-
// node_modules/ssh2/package.json
|
|
16484
|
+
// ../mcp-agents-memory/node_modules/ssh2/package.json
|
|
16485
16485
|
var require_package = __commonJS({
|
|
16486
|
-
"node_modules/ssh2/package.json"(exports, module) {
|
|
16486
|
+
"../mcp-agents-memory/node_modules/ssh2/package.json"(exports, module) {
|
|
16487
16487
|
module.exports = {
|
|
16488
16488
|
name: "ssh2",
|
|
16489
16489
|
version: "1.17.0",
|
|
@@ -16536,9 +16536,9 @@ var require_package = __commonJS({
|
|
|
16536
16536
|
}
|
|
16537
16537
|
});
|
|
16538
16538
|
|
|
16539
|
-
// node_modules/ssh2/lib/protocol/Protocol.js
|
|
16539
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/Protocol.js
|
|
16540
16540
|
var require_Protocol = __commonJS({
|
|
16541
|
-
"node_modules/ssh2/lib/protocol/Protocol.js"(exports, module) {
|
|
16541
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/Protocol.js"(exports, module) {
|
|
16542
16542
|
"use strict";
|
|
16543
16543
|
var { inspect } = __require("util");
|
|
16544
16544
|
var { bindingAvailable, NullCipher, NullDecipher } = require_crypto();
|
|
@@ -18101,9 +18101,9 @@ var require_Protocol = __commonJS({
|
|
|
18101
18101
|
}
|
|
18102
18102
|
});
|
|
18103
18103
|
|
|
18104
|
-
// node_modules/ssh2/lib/protocol/node-fs-compat.js
|
|
18104
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/node-fs-compat.js
|
|
18105
18105
|
var require_node_fs_compat = __commonJS({
|
|
18106
|
-
"node_modules/ssh2/lib/protocol/node-fs-compat.js"(exports) {
|
|
18106
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/node-fs-compat.js"(exports) {
|
|
18107
18107
|
"use strict";
|
|
18108
18108
|
var assert2 = __require("assert");
|
|
18109
18109
|
var { inspect } = __require("util");
|
|
@@ -18198,13 +18198,13 @@ ${suffix}`;
|
|
|
18198
18198
|
}
|
|
18199
18199
|
});
|
|
18200
18200
|
|
|
18201
|
-
// node_modules/ssh2/lib/protocol/SFTP.js
|
|
18201
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/protocol/SFTP.js
|
|
18202
18202
|
var require_SFTP = __commonJS({
|
|
18203
|
-
"node_modules/ssh2/lib/protocol/SFTP.js"(exports, module) {
|
|
18203
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/protocol/SFTP.js"(exports, module) {
|
|
18204
18204
|
"use strict";
|
|
18205
18205
|
var EventEmitter = __require("events");
|
|
18206
|
-
var
|
|
18207
|
-
var { constants } =
|
|
18206
|
+
var fs14 = __require("fs");
|
|
18207
|
+
var { constants } = fs14;
|
|
18208
18208
|
var {
|
|
18209
18209
|
Readable: ReadableStream2,
|
|
18210
18210
|
Writable: WritableStream
|
|
@@ -18633,12 +18633,12 @@ var require_SFTP = __commonJS({
|
|
|
18633
18633
|
fastGet(remotePath, localPath, opts, cb) {
|
|
18634
18634
|
if (this.server)
|
|
18635
18635
|
throw new Error("Client-only method called in server mode");
|
|
18636
|
-
fastXfer(this,
|
|
18636
|
+
fastXfer(this, fs14, remotePath, localPath, opts, cb);
|
|
18637
18637
|
}
|
|
18638
18638
|
fastPut(localPath, remotePath, opts, cb) {
|
|
18639
18639
|
if (this.server)
|
|
18640
18640
|
throw new Error("Client-only method called in server mode");
|
|
18641
|
-
fastXfer(
|
|
18641
|
+
fastXfer(fs14, this, localPath, remotePath, opts, cb);
|
|
18642
18642
|
}
|
|
18643
18643
|
readFile(path13, options, callback_) {
|
|
18644
18644
|
if (this.server)
|
|
@@ -19899,13 +19899,13 @@ var require_SFTP = __commonJS({
|
|
|
19899
19899
|
if (--left === 0)
|
|
19900
19900
|
cb(err3);
|
|
19901
19901
|
};
|
|
19902
|
-
if (srcHandle && (src ===
|
|
19902
|
+
if (srcHandle && (src === fs14 || src.outgoing.state === "open"))
|
|
19903
19903
|
++left;
|
|
19904
|
-
if (dstHandle && (dst ===
|
|
19904
|
+
if (dstHandle && (dst === fs14 || dst.outgoing.state === "open"))
|
|
19905
19905
|
++left;
|
|
19906
|
-
if (srcHandle && (src ===
|
|
19906
|
+
if (srcHandle && (src === fs14 || src.outgoing.state === "open"))
|
|
19907
19907
|
src.close(srcHandle, cbfinal);
|
|
19908
|
-
if (dstHandle && (dst ===
|
|
19908
|
+
if (dstHandle && (dst === fs14 || dst.outgoing.state === "open"))
|
|
19909
19909
|
dst.close(dstHandle, cbfinal);
|
|
19910
19910
|
} else {
|
|
19911
19911
|
cb(err3);
|
|
@@ -19921,7 +19921,7 @@ var require_SFTP = __commonJS({
|
|
|
19921
19921
|
tryStat(null, { size: fileSize });
|
|
19922
19922
|
function tryStat(err4, attrs) {
|
|
19923
19923
|
if (err4) {
|
|
19924
|
-
if (src !==
|
|
19924
|
+
if (src !== fs14) {
|
|
19925
19925
|
src.stat(srcPath, (err_, attrs_) => {
|
|
19926
19926
|
if (err_)
|
|
19927
19927
|
return onerror(err4);
|
|
@@ -21252,9 +21252,9 @@ var require_SFTP = __commonJS({
|
|
|
21252
21252
|
}
|
|
21253
21253
|
});
|
|
21254
21254
|
|
|
21255
|
-
// node_modules/ssh2/lib/Channel.js
|
|
21255
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/Channel.js
|
|
21256
21256
|
var require_Channel = __commonJS({
|
|
21257
|
-
"node_modules/ssh2/lib/Channel.js"(exports, module) {
|
|
21257
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/Channel.js"(exports, module) {
|
|
21258
21258
|
"use strict";
|
|
21259
21259
|
var {
|
|
21260
21260
|
Duplex: DuplexStream,
|
|
@@ -21488,9 +21488,9 @@ var require_Channel = __commonJS({
|
|
|
21488
21488
|
}
|
|
21489
21489
|
});
|
|
21490
21490
|
|
|
21491
|
-
// node_modules/ssh2/lib/utils.js
|
|
21491
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/utils.js
|
|
21492
21492
|
var require_utils4 = __commonJS({
|
|
21493
|
-
"node_modules/ssh2/lib/utils.js"(exports, module) {
|
|
21493
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/utils.js"(exports, module) {
|
|
21494
21494
|
"use strict";
|
|
21495
21495
|
var { SFTP } = require_SFTP();
|
|
21496
21496
|
var MAX_CHANNEL = 2 ** 32 - 1;
|
|
@@ -21768,9 +21768,9 @@ var require_utils4 = __commonJS({
|
|
|
21768
21768
|
}
|
|
21769
21769
|
});
|
|
21770
21770
|
|
|
21771
|
-
// node_modules/ssh2/lib/client.js
|
|
21771
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/client.js
|
|
21772
21772
|
var require_client3 = __commonJS({
|
|
21773
|
-
"node_modules/ssh2/lib/client.js"(exports, module) {
|
|
21773
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/client.js"(exports, module) {
|
|
21774
21774
|
"use strict";
|
|
21775
21775
|
var {
|
|
21776
21776
|
createHash: createHash2,
|
|
@@ -23577,9 +23577,9 @@ var require_client3 = __commonJS({
|
|
|
23577
23577
|
}
|
|
23578
23578
|
});
|
|
23579
23579
|
|
|
23580
|
-
// node_modules/ssh2/lib/http-agents.js
|
|
23580
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/http-agents.js
|
|
23581
23581
|
var require_http_agents = __commonJS({
|
|
23582
|
-
"node_modules/ssh2/lib/http-agents.js"(exports) {
|
|
23582
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/http-agents.js"(exports) {
|
|
23583
23583
|
"use strict";
|
|
23584
23584
|
var { Agent: HttpAgent } = __require("http");
|
|
23585
23585
|
var { Agent: HttpsAgent } = __require("https");
|
|
@@ -23649,9 +23649,9 @@ var require_http_agents = __commonJS({
|
|
|
23649
23649
|
}
|
|
23650
23650
|
});
|
|
23651
23651
|
|
|
23652
|
-
// node_modules/ssh2/lib/server.js
|
|
23652
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/server.js
|
|
23653
23653
|
var require_server = __commonJS({
|
|
23654
|
-
"node_modules/ssh2/lib/server.js"(exports, module) {
|
|
23654
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/server.js"(exports, module) {
|
|
23655
23655
|
"use strict";
|
|
23656
23656
|
var { Server: netServer } = __require("net");
|
|
23657
23657
|
var EventEmitter = __require("events");
|
|
@@ -24825,9 +24825,9 @@ var require_server = __commonJS({
|
|
|
24825
24825
|
}
|
|
24826
24826
|
});
|
|
24827
24827
|
|
|
24828
|
-
// node_modules/ssh2/lib/keygen.js
|
|
24828
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/keygen.js
|
|
24829
24829
|
var require_keygen = __commonJS({
|
|
24830
|
-
"node_modules/ssh2/lib/keygen.js"(exports, module) {
|
|
24830
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/keygen.js"(exports, module) {
|
|
24831
24831
|
"use strict";
|
|
24832
24832
|
var {
|
|
24833
24833
|
createCipheriv,
|
|
@@ -25247,9 +25247,9 @@ var require_keygen = __commonJS({
|
|
|
25247
25247
|
}
|
|
25248
25248
|
});
|
|
25249
25249
|
|
|
25250
|
-
// node_modules/ssh2/lib/index.js
|
|
25250
|
+
// ../mcp-agents-memory/node_modules/ssh2/lib/index.js
|
|
25251
25251
|
var require_lib4 = __commonJS({
|
|
25252
|
-
"node_modules/ssh2/lib/index.js"(exports, module) {
|
|
25252
|
+
"../mcp-agents-memory/node_modules/ssh2/lib/index.js"(exports, module) {
|
|
25253
25253
|
"use strict";
|
|
25254
25254
|
var {
|
|
25255
25255
|
AgentProtocol,
|
|
@@ -25295,9 +25295,9 @@ var require_lib4 = __commonJS({
|
|
|
25295
25295
|
}
|
|
25296
25296
|
});
|
|
25297
25297
|
|
|
25298
|
-
// node_modules/tunnel-ssh/index.js
|
|
25298
|
+
// ../mcp-agents-memory/node_modules/tunnel-ssh/index.js
|
|
25299
25299
|
var require_tunnel_ssh = __commonJS({
|
|
25300
|
-
"node_modules/tunnel-ssh/index.js"(exports) {
|
|
25300
|
+
"../mcp-agents-memory/node_modules/tunnel-ssh/index.js"(exports) {
|
|
25301
25301
|
var net = __require("net");
|
|
25302
25302
|
var { Client: Client2 } = require_lib4();
|
|
25303
25303
|
var os14 = __require("os");
|
|
@@ -25414,9 +25414,9 @@ var require_tunnel_ssh = __commonJS({
|
|
|
25414
25414
|
}
|
|
25415
25415
|
});
|
|
25416
25416
|
|
|
25417
|
-
// node_modules/dotenv/package.json
|
|
25417
|
+
// ../mcp-agents-memory/node_modules/dotenv/package.json
|
|
25418
25418
|
var require_package2 = __commonJS({
|
|
25419
|
-
"node_modules/dotenv/package.json"(exports, module) {
|
|
25419
|
+
"../mcp-agents-memory/node_modules/dotenv/package.json"(exports, module) {
|
|
25420
25420
|
module.exports = {
|
|
25421
25421
|
name: "dotenv",
|
|
25422
25422
|
version: "16.6.1",
|
|
@@ -25482,10 +25482,10 @@ var require_package2 = __commonJS({
|
|
|
25482
25482
|
}
|
|
25483
25483
|
});
|
|
25484
25484
|
|
|
25485
|
-
// node_modules/dotenv/lib/main.js
|
|
25485
|
+
// ../mcp-agents-memory/node_modules/dotenv/lib/main.js
|
|
25486
25486
|
var require_main = __commonJS({
|
|
25487
|
-
"node_modules/dotenv/lib/main.js"(exports, module) {
|
|
25488
|
-
var
|
|
25487
|
+
"../mcp-agents-memory/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
25488
|
+
var fs14 = __require("fs");
|
|
25489
25489
|
var path13 = __require("path");
|
|
25490
25490
|
var os14 = __require("os");
|
|
25491
25491
|
var crypto3 = __require("crypto");
|
|
@@ -25594,7 +25594,7 @@ var require_main = __commonJS({
|
|
|
25594
25594
|
if (options && options.path && options.path.length > 0) {
|
|
25595
25595
|
if (Array.isArray(options.path)) {
|
|
25596
25596
|
for (const filepath of options.path) {
|
|
25597
|
-
if (
|
|
25597
|
+
if (fs14.existsSync(filepath)) {
|
|
25598
25598
|
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
25599
25599
|
}
|
|
25600
25600
|
}
|
|
@@ -25604,7 +25604,7 @@ var require_main = __commonJS({
|
|
|
25604
25604
|
} else {
|
|
25605
25605
|
possibleVaultPath = path13.resolve(process.cwd(), ".env.vault");
|
|
25606
25606
|
}
|
|
25607
|
-
if (
|
|
25607
|
+
if (fs14.existsSync(possibleVaultPath)) {
|
|
25608
25608
|
return possibleVaultPath;
|
|
25609
25609
|
}
|
|
25610
25610
|
return null;
|
|
@@ -25653,7 +25653,7 @@ var require_main = __commonJS({
|
|
|
25653
25653
|
const parsedAll = {};
|
|
25654
25654
|
for (const path14 of optionPaths) {
|
|
25655
25655
|
try {
|
|
25656
|
-
const parsed = DotenvModule.parse(
|
|
25656
|
+
const parsed = DotenvModule.parse(fs14.readFileSync(path14, { encoding }));
|
|
25657
25657
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
25658
25658
|
} catch (e) {
|
|
25659
25659
|
if (debug) {
|
|
@@ -25970,9 +25970,9 @@ var init_db = __esm({
|
|
|
25970
25970
|
}
|
|
25971
25971
|
});
|
|
25972
25972
|
|
|
25973
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
25973
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/code.js
|
|
25974
25974
|
var require_code = __commonJS({
|
|
25975
|
-
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
25975
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
25976
25976
|
"use strict";
|
|
25977
25977
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25978
25978
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -26124,9 +26124,9 @@ var require_code = __commonJS({
|
|
|
26124
26124
|
}
|
|
26125
26125
|
});
|
|
26126
26126
|
|
|
26127
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
26127
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/scope.js
|
|
26128
26128
|
var require_scope = __commonJS({
|
|
26129
|
-
"node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
26129
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
26130
26130
|
"use strict";
|
|
26131
26131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26132
26132
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -26269,9 +26269,9 @@ var require_scope = __commonJS({
|
|
|
26269
26269
|
}
|
|
26270
26270
|
});
|
|
26271
26271
|
|
|
26272
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
26272
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/index.js
|
|
26273
26273
|
var require_codegen = __commonJS({
|
|
26274
|
-
"node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
26274
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
26275
26275
|
"use strict";
|
|
26276
26276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26277
26277
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -26989,9 +26989,9 @@ var require_codegen = __commonJS({
|
|
|
26989
26989
|
}
|
|
26990
26990
|
});
|
|
26991
26991
|
|
|
26992
|
-
// node_modules/ajv/dist/compile/util.js
|
|
26992
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/util.js
|
|
26993
26993
|
var require_util = __commonJS({
|
|
26994
|
-
"node_modules/ajv/dist/compile/util.js"(exports) {
|
|
26994
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
26995
26995
|
"use strict";
|
|
26996
26996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26997
26997
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -27156,9 +27156,9 @@ var require_util = __commonJS({
|
|
|
27156
27156
|
}
|
|
27157
27157
|
});
|
|
27158
27158
|
|
|
27159
|
-
// node_modules/ajv/dist/compile/names.js
|
|
27159
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/names.js
|
|
27160
27160
|
var require_names = __commonJS({
|
|
27161
|
-
"node_modules/ajv/dist/compile/names.js"(exports) {
|
|
27161
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
27162
27162
|
"use strict";
|
|
27163
27163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27164
27164
|
var codegen_1 = require_codegen();
|
|
@@ -27195,9 +27195,9 @@ var require_names = __commonJS({
|
|
|
27195
27195
|
}
|
|
27196
27196
|
});
|
|
27197
27197
|
|
|
27198
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
27198
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/errors.js
|
|
27199
27199
|
var require_errors2 = __commonJS({
|
|
27200
|
-
"node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
27200
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
27201
27201
|
"use strict";
|
|
27202
27202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27203
27203
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -27317,9 +27317,9 @@ var require_errors2 = __commonJS({
|
|
|
27317
27317
|
}
|
|
27318
27318
|
});
|
|
27319
27319
|
|
|
27320
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
27320
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
27321
27321
|
var require_boolSchema = __commonJS({
|
|
27322
|
-
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
27322
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
27323
27323
|
"use strict";
|
|
27324
27324
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27325
27325
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -27368,9 +27368,9 @@ var require_boolSchema = __commonJS({
|
|
|
27368
27368
|
}
|
|
27369
27369
|
});
|
|
27370
27370
|
|
|
27371
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
27371
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/rules.js
|
|
27372
27372
|
var require_rules = __commonJS({
|
|
27373
|
-
"node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
27373
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
27374
27374
|
"use strict";
|
|
27375
27375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27376
27376
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -27399,9 +27399,9 @@ var require_rules = __commonJS({
|
|
|
27399
27399
|
}
|
|
27400
27400
|
});
|
|
27401
27401
|
|
|
27402
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
27402
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/applicability.js
|
|
27403
27403
|
var require_applicability = __commonJS({
|
|
27404
|
-
"node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
27404
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
27405
27405
|
"use strict";
|
|
27406
27406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27407
27407
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -27422,9 +27422,9 @@ var require_applicability = __commonJS({
|
|
|
27422
27422
|
}
|
|
27423
27423
|
});
|
|
27424
27424
|
|
|
27425
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
27425
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/dataType.js
|
|
27426
27426
|
var require_dataType = __commonJS({
|
|
27427
|
-
"node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
27427
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
27428
27428
|
"use strict";
|
|
27429
27429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27430
27430
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -27606,9 +27606,9 @@ var require_dataType = __commonJS({
|
|
|
27606
27606
|
}
|
|
27607
27607
|
});
|
|
27608
27608
|
|
|
27609
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
27609
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/defaults.js
|
|
27610
27610
|
var require_defaults2 = __commonJS({
|
|
27611
|
-
"node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
27611
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
27612
27612
|
"use strict";
|
|
27613
27613
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27614
27614
|
exports.assignDefaults = void 0;
|
|
@@ -27643,9 +27643,9 @@ var require_defaults2 = __commonJS({
|
|
|
27643
27643
|
}
|
|
27644
27644
|
});
|
|
27645
27645
|
|
|
27646
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
27646
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/code.js
|
|
27647
27647
|
var require_code2 = __commonJS({
|
|
27648
|
-
"node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
27648
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
27649
27649
|
"use strict";
|
|
27650
27650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27651
27651
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -27776,9 +27776,9 @@ var require_code2 = __commonJS({
|
|
|
27776
27776
|
}
|
|
27777
27777
|
});
|
|
27778
27778
|
|
|
27779
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
27779
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/keyword.js
|
|
27780
27780
|
var require_keyword = __commonJS({
|
|
27781
|
-
"node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
27781
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
27782
27782
|
"use strict";
|
|
27783
27783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27784
27784
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -27894,9 +27894,9 @@ var require_keyword = __commonJS({
|
|
|
27894
27894
|
}
|
|
27895
27895
|
});
|
|
27896
27896
|
|
|
27897
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
27897
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/subschema.js
|
|
27898
27898
|
var require_subschema = __commonJS({
|
|
27899
|
-
"node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
27899
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
27900
27900
|
"use strict";
|
|
27901
27901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27902
27902
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -27977,9 +27977,9 @@ var require_subschema = __commonJS({
|
|
|
27977
27977
|
}
|
|
27978
27978
|
});
|
|
27979
27979
|
|
|
27980
|
-
// node_modules/fast-deep-equal/index.js
|
|
27980
|
+
// ../mcp-agents-memory/node_modules/fast-deep-equal/index.js
|
|
27981
27981
|
var require_fast_deep_equal = __commonJS({
|
|
27982
|
-
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
27982
|
+
"../mcp-agents-memory/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
27983
27983
|
"use strict";
|
|
27984
27984
|
module.exports = function equal(a, b) {
|
|
27985
27985
|
if (a === b) return true;
|
|
@@ -28012,9 +28012,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
28012
28012
|
}
|
|
28013
28013
|
});
|
|
28014
28014
|
|
|
28015
|
-
// node_modules/json-schema-traverse/index.js
|
|
28015
|
+
// ../mcp-agents-memory/node_modules/json-schema-traverse/index.js
|
|
28016
28016
|
var require_json_schema_traverse = __commonJS({
|
|
28017
|
-
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
28017
|
+
"../mcp-agents-memory/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
28018
28018
|
"use strict";
|
|
28019
28019
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
28020
28020
|
if (typeof opts == "function") {
|
|
@@ -28100,9 +28100,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
28100
28100
|
}
|
|
28101
28101
|
});
|
|
28102
28102
|
|
|
28103
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
28103
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/resolve.js
|
|
28104
28104
|
var require_resolve = __commonJS({
|
|
28105
|
-
"node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
28105
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
28106
28106
|
"use strict";
|
|
28107
28107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28108
28108
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -28256,9 +28256,9 @@ var require_resolve = __commonJS({
|
|
|
28256
28256
|
}
|
|
28257
28257
|
});
|
|
28258
28258
|
|
|
28259
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
28259
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/validate/index.js
|
|
28260
28260
|
var require_validate = __commonJS({
|
|
28261
|
-
"node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
28261
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
28262
28262
|
"use strict";
|
|
28263
28263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28264
28264
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -28764,9 +28764,9 @@ var require_validate = __commonJS({
|
|
|
28764
28764
|
}
|
|
28765
28765
|
});
|
|
28766
28766
|
|
|
28767
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
28767
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/runtime/validation_error.js
|
|
28768
28768
|
var require_validation_error = __commonJS({
|
|
28769
|
-
"node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
28769
|
+
"../mcp-agents-memory/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
28770
28770
|
"use strict";
|
|
28771
28771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28772
28772
|
var ValidationError = class extends Error {
|
|
@@ -28780,9 +28780,9 @@ var require_validation_error = __commonJS({
|
|
|
28780
28780
|
}
|
|
28781
28781
|
});
|
|
28782
28782
|
|
|
28783
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
28783
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/ref_error.js
|
|
28784
28784
|
var require_ref_error = __commonJS({
|
|
28785
|
-
"node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
28785
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
28786
28786
|
"use strict";
|
|
28787
28787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28788
28788
|
var resolve_1 = require_resolve();
|
|
@@ -28797,9 +28797,9 @@ var require_ref_error = __commonJS({
|
|
|
28797
28797
|
}
|
|
28798
28798
|
});
|
|
28799
28799
|
|
|
28800
|
-
// node_modules/ajv/dist/compile/index.js
|
|
28800
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/compile/index.js
|
|
28801
28801
|
var require_compile = __commonJS({
|
|
28802
|
-
"node_modules/ajv/dist/compile/index.js"(exports) {
|
|
28802
|
+
"../mcp-agents-memory/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
28803
28803
|
"use strict";
|
|
28804
28804
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28805
28805
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -29021,9 +29021,9 @@ var require_compile = __commonJS({
|
|
|
29021
29021
|
}
|
|
29022
29022
|
});
|
|
29023
29023
|
|
|
29024
|
-
// node_modules/ajv/dist/refs/data.json
|
|
29024
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/refs/data.json
|
|
29025
29025
|
var require_data = __commonJS({
|
|
29026
|
-
"node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
29026
|
+
"../mcp-agents-memory/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
29027
29027
|
module.exports = {
|
|
29028
29028
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
29029
29029
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -29040,9 +29040,9 @@ var require_data = __commonJS({
|
|
|
29040
29040
|
}
|
|
29041
29041
|
});
|
|
29042
29042
|
|
|
29043
|
-
// node_modules/fast-uri/lib/utils.js
|
|
29043
|
+
// ../mcp-agents-memory/node_modules/fast-uri/lib/utils.js
|
|
29044
29044
|
var require_utils5 = __commonJS({
|
|
29045
|
-
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
29045
|
+
"../mcp-agents-memory/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
29046
29046
|
"use strict";
|
|
29047
29047
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
29048
29048
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -29297,9 +29297,9 @@ var require_utils5 = __commonJS({
|
|
|
29297
29297
|
}
|
|
29298
29298
|
});
|
|
29299
29299
|
|
|
29300
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
29300
|
+
// ../mcp-agents-memory/node_modules/fast-uri/lib/schemes.js
|
|
29301
29301
|
var require_schemes = __commonJS({
|
|
29302
|
-
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
29302
|
+
"../mcp-agents-memory/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
29303
29303
|
"use strict";
|
|
29304
29304
|
var { isUUID } = require_utils5();
|
|
29305
29305
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -29507,9 +29507,9 @@ var require_schemes = __commonJS({
|
|
|
29507
29507
|
}
|
|
29508
29508
|
});
|
|
29509
29509
|
|
|
29510
|
-
// node_modules/fast-uri/index.js
|
|
29510
|
+
// ../mcp-agents-memory/node_modules/fast-uri/index.js
|
|
29511
29511
|
var require_fast_uri = __commonJS({
|
|
29512
|
-
"node_modules/fast-uri/index.js"(exports, module) {
|
|
29512
|
+
"../mcp-agents-memory/node_modules/fast-uri/index.js"(exports, module) {
|
|
29513
29513
|
"use strict";
|
|
29514
29514
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils5();
|
|
29515
29515
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -29762,9 +29762,9 @@ var require_fast_uri = __commonJS({
|
|
|
29762
29762
|
}
|
|
29763
29763
|
});
|
|
29764
29764
|
|
|
29765
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
29765
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/runtime/uri.js
|
|
29766
29766
|
var require_uri = __commonJS({
|
|
29767
|
-
"node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
29767
|
+
"../mcp-agents-memory/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
29768
29768
|
"use strict";
|
|
29769
29769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29770
29770
|
var uri = require_fast_uri();
|
|
@@ -29773,9 +29773,9 @@ var require_uri = __commonJS({
|
|
|
29773
29773
|
}
|
|
29774
29774
|
});
|
|
29775
29775
|
|
|
29776
|
-
// node_modules/ajv/dist/core.js
|
|
29776
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/core.js
|
|
29777
29777
|
var require_core = __commonJS({
|
|
29778
|
-
"node_modules/ajv/dist/core.js"(exports) {
|
|
29778
|
+
"../mcp-agents-memory/node_modules/ajv/dist/core.js"(exports) {
|
|
29779
29779
|
"use strict";
|
|
29780
29780
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29781
29781
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -30384,9 +30384,9 @@ var require_core = __commonJS({
|
|
|
30384
30384
|
}
|
|
30385
30385
|
});
|
|
30386
30386
|
|
|
30387
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
30387
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/id.js
|
|
30388
30388
|
var require_id = __commonJS({
|
|
30389
|
-
"node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
30389
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
30390
30390
|
"use strict";
|
|
30391
30391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30392
30392
|
var def = {
|
|
@@ -30399,9 +30399,9 @@ var require_id = __commonJS({
|
|
|
30399
30399
|
}
|
|
30400
30400
|
});
|
|
30401
30401
|
|
|
30402
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
30402
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
30403
30403
|
var require_ref = __commonJS({
|
|
30404
|
-
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
30404
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
30405
30405
|
"use strict";
|
|
30406
30406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30407
30407
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -30521,9 +30521,9 @@ var require_ref = __commonJS({
|
|
|
30521
30521
|
}
|
|
30522
30522
|
});
|
|
30523
30523
|
|
|
30524
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
30524
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/index.js
|
|
30525
30525
|
var require_core2 = __commonJS({
|
|
30526
|
-
"node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
30526
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
30527
30527
|
"use strict";
|
|
30528
30528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30529
30529
|
var id_1 = require_id();
|
|
@@ -30542,9 +30542,9 @@ var require_core2 = __commonJS({
|
|
|
30542
30542
|
}
|
|
30543
30543
|
});
|
|
30544
30544
|
|
|
30545
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
30545
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
30546
30546
|
var require_limitNumber = __commonJS({
|
|
30547
|
-
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
30547
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
30548
30548
|
"use strict";
|
|
30549
30549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30550
30550
|
var codegen_1 = require_codegen();
|
|
@@ -30574,9 +30574,9 @@ var require_limitNumber = __commonJS({
|
|
|
30574
30574
|
}
|
|
30575
30575
|
});
|
|
30576
30576
|
|
|
30577
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
30577
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
30578
30578
|
var require_multipleOf = __commonJS({
|
|
30579
|
-
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
30579
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
30580
30580
|
"use strict";
|
|
30581
30581
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30582
30582
|
var codegen_1 = require_codegen();
|
|
@@ -30602,9 +30602,9 @@ var require_multipleOf = __commonJS({
|
|
|
30602
30602
|
}
|
|
30603
30603
|
});
|
|
30604
30604
|
|
|
30605
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
30605
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/runtime/ucs2length.js
|
|
30606
30606
|
var require_ucs2length = __commonJS({
|
|
30607
|
-
"node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
30607
|
+
"../mcp-agents-memory/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
30608
30608
|
"use strict";
|
|
30609
30609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30610
30610
|
function ucs2length(str2) {
|
|
@@ -30628,9 +30628,9 @@ var require_ucs2length = __commonJS({
|
|
|
30628
30628
|
}
|
|
30629
30629
|
});
|
|
30630
30630
|
|
|
30631
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
30631
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
30632
30632
|
var require_limitLength = __commonJS({
|
|
30633
|
-
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
30633
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
30634
30634
|
"use strict";
|
|
30635
30635
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30636
30636
|
var codegen_1 = require_codegen();
|
|
@@ -30660,9 +30660,9 @@ var require_limitLength = __commonJS({
|
|
|
30660
30660
|
}
|
|
30661
30661
|
});
|
|
30662
30662
|
|
|
30663
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
30663
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
30664
30664
|
var require_pattern = __commonJS({
|
|
30665
|
-
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
30665
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
30666
30666
|
"use strict";
|
|
30667
30667
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30668
30668
|
var code_1 = require_code2();
|
|
@@ -30697,9 +30697,9 @@ var require_pattern = __commonJS({
|
|
|
30697
30697
|
}
|
|
30698
30698
|
});
|
|
30699
30699
|
|
|
30700
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
30700
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
30701
30701
|
var require_limitProperties = __commonJS({
|
|
30702
|
-
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
30702
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
30703
30703
|
"use strict";
|
|
30704
30704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30705
30705
|
var codegen_1 = require_codegen();
|
|
@@ -30726,9 +30726,9 @@ var require_limitProperties = __commonJS({
|
|
|
30726
30726
|
}
|
|
30727
30727
|
});
|
|
30728
30728
|
|
|
30729
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
30729
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
30730
30730
|
var require_required = __commonJS({
|
|
30731
|
-
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
30731
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
30732
30732
|
"use strict";
|
|
30733
30733
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30734
30734
|
var code_1 = require_code2();
|
|
@@ -30808,9 +30808,9 @@ var require_required = __commonJS({
|
|
|
30808
30808
|
}
|
|
30809
30809
|
});
|
|
30810
30810
|
|
|
30811
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
30811
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
30812
30812
|
var require_limitItems = __commonJS({
|
|
30813
|
-
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
30813
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
30814
30814
|
"use strict";
|
|
30815
30815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30816
30816
|
var codegen_1 = require_codegen();
|
|
@@ -30837,9 +30837,9 @@ var require_limitItems = __commonJS({
|
|
|
30837
30837
|
}
|
|
30838
30838
|
});
|
|
30839
30839
|
|
|
30840
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
30840
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/runtime/equal.js
|
|
30841
30841
|
var require_equal = __commonJS({
|
|
30842
|
-
"node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
30842
|
+
"../mcp-agents-memory/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
30843
30843
|
"use strict";
|
|
30844
30844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30845
30845
|
var equal = require_fast_deep_equal();
|
|
@@ -30848,9 +30848,9 @@ var require_equal = __commonJS({
|
|
|
30848
30848
|
}
|
|
30849
30849
|
});
|
|
30850
30850
|
|
|
30851
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
30851
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
30852
30852
|
var require_uniqueItems = __commonJS({
|
|
30853
|
-
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
30853
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
30854
30854
|
"use strict";
|
|
30855
30855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30856
30856
|
var dataType_1 = require_dataType();
|
|
@@ -30915,9 +30915,9 @@ var require_uniqueItems = __commonJS({
|
|
|
30915
30915
|
}
|
|
30916
30916
|
});
|
|
30917
30917
|
|
|
30918
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
30918
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
30919
30919
|
var require_const = __commonJS({
|
|
30920
|
-
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
30920
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
30921
30921
|
"use strict";
|
|
30922
30922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30923
30923
|
var codegen_1 = require_codegen();
|
|
@@ -30944,9 +30944,9 @@ var require_const = __commonJS({
|
|
|
30944
30944
|
}
|
|
30945
30945
|
});
|
|
30946
30946
|
|
|
30947
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
30947
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
30948
30948
|
var require_enum = __commonJS({
|
|
30949
|
-
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
30949
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
30950
30950
|
"use strict";
|
|
30951
30951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30952
30952
|
var codegen_1 = require_codegen();
|
|
@@ -30993,9 +30993,9 @@ var require_enum = __commonJS({
|
|
|
30993
30993
|
}
|
|
30994
30994
|
});
|
|
30995
30995
|
|
|
30996
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
30996
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
30997
30997
|
var require_validation = __commonJS({
|
|
30998
|
-
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
30998
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
30999
30999
|
"use strict";
|
|
31000
31000
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31001
31001
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -31031,9 +31031,9 @@ var require_validation = __commonJS({
|
|
|
31031
31031
|
}
|
|
31032
31032
|
});
|
|
31033
31033
|
|
|
31034
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
31034
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
31035
31035
|
var require_additionalItems = __commonJS({
|
|
31036
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
31036
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
31037
31037
|
"use strict";
|
|
31038
31038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31039
31039
|
exports.validateAdditionalItems = void 0;
|
|
@@ -31084,9 +31084,9 @@ var require_additionalItems = __commonJS({
|
|
|
31084
31084
|
}
|
|
31085
31085
|
});
|
|
31086
31086
|
|
|
31087
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
31087
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
31088
31088
|
var require_items = __commonJS({
|
|
31089
|
-
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
31089
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
31090
31090
|
"use strict";
|
|
31091
31091
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31092
31092
|
exports.validateTuple = void 0;
|
|
@@ -31141,9 +31141,9 @@ var require_items = __commonJS({
|
|
|
31141
31141
|
}
|
|
31142
31142
|
});
|
|
31143
31143
|
|
|
31144
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
31144
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
31145
31145
|
var require_prefixItems = __commonJS({
|
|
31146
|
-
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
31146
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
31147
31147
|
"use strict";
|
|
31148
31148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31149
31149
|
var items_1 = require_items();
|
|
@@ -31158,9 +31158,9 @@ var require_prefixItems = __commonJS({
|
|
|
31158
31158
|
}
|
|
31159
31159
|
});
|
|
31160
31160
|
|
|
31161
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
31161
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
31162
31162
|
var require_items2020 = __commonJS({
|
|
31163
|
-
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
31163
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
31164
31164
|
"use strict";
|
|
31165
31165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31166
31166
|
var codegen_1 = require_codegen();
|
|
@@ -31193,9 +31193,9 @@ var require_items2020 = __commonJS({
|
|
|
31193
31193
|
}
|
|
31194
31194
|
});
|
|
31195
31195
|
|
|
31196
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
31196
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
31197
31197
|
var require_contains = __commonJS({
|
|
31198
|
-
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
31198
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
31199
31199
|
"use strict";
|
|
31200
31200
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31201
31201
|
var codegen_1 = require_codegen();
|
|
@@ -31287,9 +31287,9 @@ var require_contains = __commonJS({
|
|
|
31287
31287
|
}
|
|
31288
31288
|
});
|
|
31289
31289
|
|
|
31290
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
31290
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
31291
31291
|
var require_dependencies = __commonJS({
|
|
31292
|
-
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
31292
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
31293
31293
|
"use strict";
|
|
31294
31294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31295
31295
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -31381,9 +31381,9 @@ var require_dependencies = __commonJS({
|
|
|
31381
31381
|
}
|
|
31382
31382
|
});
|
|
31383
31383
|
|
|
31384
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
31384
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
31385
31385
|
var require_propertyNames = __commonJS({
|
|
31386
|
-
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
31386
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
31387
31387
|
"use strict";
|
|
31388
31388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31389
31389
|
var codegen_1 = require_codegen();
|
|
@@ -31424,9 +31424,9 @@ var require_propertyNames = __commonJS({
|
|
|
31424
31424
|
}
|
|
31425
31425
|
});
|
|
31426
31426
|
|
|
31427
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
31427
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
31428
31428
|
var require_additionalProperties = __commonJS({
|
|
31429
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
31429
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
31430
31430
|
"use strict";
|
|
31431
31431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31432
31432
|
var code_1 = require_code2();
|
|
@@ -31530,9 +31530,9 @@ var require_additionalProperties = __commonJS({
|
|
|
31530
31530
|
}
|
|
31531
31531
|
});
|
|
31532
31532
|
|
|
31533
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
31533
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
31534
31534
|
var require_properties = __commonJS({
|
|
31535
|
-
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
31535
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
31536
31536
|
"use strict";
|
|
31537
31537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31538
31538
|
var validate_1 = require_validate();
|
|
@@ -31588,9 +31588,9 @@ var require_properties = __commonJS({
|
|
|
31588
31588
|
}
|
|
31589
31589
|
});
|
|
31590
31590
|
|
|
31591
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
31591
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
31592
31592
|
var require_patternProperties = __commonJS({
|
|
31593
|
-
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
31593
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
31594
31594
|
"use strict";
|
|
31595
31595
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31596
31596
|
var code_1 = require_code2();
|
|
@@ -31662,9 +31662,9 @@ var require_patternProperties = __commonJS({
|
|
|
31662
31662
|
}
|
|
31663
31663
|
});
|
|
31664
31664
|
|
|
31665
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
31665
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
31666
31666
|
var require_not = __commonJS({
|
|
31667
|
-
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
31667
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
31668
31668
|
"use strict";
|
|
31669
31669
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31670
31670
|
var util_1 = require_util();
|
|
@@ -31693,9 +31693,9 @@ var require_not = __commonJS({
|
|
|
31693
31693
|
}
|
|
31694
31694
|
});
|
|
31695
31695
|
|
|
31696
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
31696
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
31697
31697
|
var require_anyOf = __commonJS({
|
|
31698
|
-
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
31698
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
31699
31699
|
"use strict";
|
|
31700
31700
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31701
31701
|
var code_1 = require_code2();
|
|
@@ -31710,9 +31710,9 @@ var require_anyOf = __commonJS({
|
|
|
31710
31710
|
}
|
|
31711
31711
|
});
|
|
31712
31712
|
|
|
31713
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
31713
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
31714
31714
|
var require_oneOf = __commonJS({
|
|
31715
|
-
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
31715
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
31716
31716
|
"use strict";
|
|
31717
31717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31718
31718
|
var codegen_1 = require_codegen();
|
|
@@ -31768,9 +31768,9 @@ var require_oneOf = __commonJS({
|
|
|
31768
31768
|
}
|
|
31769
31769
|
});
|
|
31770
31770
|
|
|
31771
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
31771
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
31772
31772
|
var require_allOf = __commonJS({
|
|
31773
|
-
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
31773
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
31774
31774
|
"use strict";
|
|
31775
31775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31776
31776
|
var util_1 = require_util();
|
|
@@ -31795,9 +31795,9 @@ var require_allOf = __commonJS({
|
|
|
31795
31795
|
}
|
|
31796
31796
|
});
|
|
31797
31797
|
|
|
31798
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
31798
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
31799
31799
|
var require_if = __commonJS({
|
|
31800
|
-
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
31800
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
31801
31801
|
"use strict";
|
|
31802
31802
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31803
31803
|
var codegen_1 = require_codegen();
|
|
@@ -31864,9 +31864,9 @@ var require_if = __commonJS({
|
|
|
31864
31864
|
}
|
|
31865
31865
|
});
|
|
31866
31866
|
|
|
31867
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
31867
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
31868
31868
|
var require_thenElse = __commonJS({
|
|
31869
|
-
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
31869
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
31870
31870
|
"use strict";
|
|
31871
31871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31872
31872
|
var util_1 = require_util();
|
|
@@ -31882,9 +31882,9 @@ var require_thenElse = __commonJS({
|
|
|
31882
31882
|
}
|
|
31883
31883
|
});
|
|
31884
31884
|
|
|
31885
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
31885
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
31886
31886
|
var require_applicator = __commonJS({
|
|
31887
|
-
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
31887
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
31888
31888
|
"use strict";
|
|
31889
31889
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31890
31890
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -31930,9 +31930,9 @@ var require_applicator = __commonJS({
|
|
|
31930
31930
|
}
|
|
31931
31931
|
});
|
|
31932
31932
|
|
|
31933
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
31933
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/format/format.js
|
|
31934
31934
|
var require_format = __commonJS({
|
|
31935
|
-
"node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
31935
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
31936
31936
|
"use strict";
|
|
31937
31937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31938
31938
|
var codegen_1 = require_codegen();
|
|
@@ -32020,9 +32020,9 @@ var require_format = __commonJS({
|
|
|
32020
32020
|
}
|
|
32021
32021
|
});
|
|
32022
32022
|
|
|
32023
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
32023
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/format/index.js
|
|
32024
32024
|
var require_format2 = __commonJS({
|
|
32025
|
-
"node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
32025
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
32026
32026
|
"use strict";
|
|
32027
32027
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32028
32028
|
var format_1 = require_format();
|
|
@@ -32031,9 +32031,9 @@ var require_format2 = __commonJS({
|
|
|
32031
32031
|
}
|
|
32032
32032
|
});
|
|
32033
32033
|
|
|
32034
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
32034
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/metadata.js
|
|
32035
32035
|
var require_metadata = __commonJS({
|
|
32036
|
-
"node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
32036
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
32037
32037
|
"use strict";
|
|
32038
32038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32039
32039
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -32054,9 +32054,9 @@ var require_metadata = __commonJS({
|
|
|
32054
32054
|
}
|
|
32055
32055
|
});
|
|
32056
32056
|
|
|
32057
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
32057
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/draft7.js
|
|
32058
32058
|
var require_draft7 = __commonJS({
|
|
32059
|
-
"node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
32059
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
32060
32060
|
"use strict";
|
|
32061
32061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32062
32062
|
var core_1 = require_core2();
|
|
@@ -32076,9 +32076,9 @@ var require_draft7 = __commonJS({
|
|
|
32076
32076
|
}
|
|
32077
32077
|
});
|
|
32078
32078
|
|
|
32079
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
32079
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
32080
32080
|
var require_types2 = __commonJS({
|
|
32081
|
-
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
32081
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
32082
32082
|
"use strict";
|
|
32083
32083
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32084
32084
|
exports.DiscrError = void 0;
|
|
@@ -32090,9 +32090,9 @@ var require_types2 = __commonJS({
|
|
|
32090
32090
|
}
|
|
32091
32091
|
});
|
|
32092
32092
|
|
|
32093
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
32093
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
32094
32094
|
var require_discriminator = __commonJS({
|
|
32095
|
-
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
32095
|
+
"../mcp-agents-memory/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
32096
32096
|
"use strict";
|
|
32097
32097
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32098
32098
|
var codegen_1 = require_codegen();
|
|
@@ -32195,9 +32195,9 @@ var require_discriminator = __commonJS({
|
|
|
32195
32195
|
}
|
|
32196
32196
|
});
|
|
32197
32197
|
|
|
32198
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
32198
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
32199
32199
|
var require_json_schema_draft_07 = __commonJS({
|
|
32200
|
-
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
32200
|
+
"../mcp-agents-memory/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
32201
32201
|
module.exports = {
|
|
32202
32202
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
32203
32203
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -32352,9 +32352,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
32352
32352
|
}
|
|
32353
32353
|
});
|
|
32354
32354
|
|
|
32355
|
-
// node_modules/ajv/dist/ajv.js
|
|
32355
|
+
// ../mcp-agents-memory/node_modules/ajv/dist/ajv.js
|
|
32356
32356
|
var require_ajv = __commonJS({
|
|
32357
|
-
"node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
32357
|
+
"../mcp-agents-memory/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
32358
32358
|
"use strict";
|
|
32359
32359
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32360
32360
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -32422,9 +32422,9 @@ var require_ajv = __commonJS({
|
|
|
32422
32422
|
}
|
|
32423
32423
|
});
|
|
32424
32424
|
|
|
32425
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
32425
|
+
// ../mcp-agents-memory/node_modules/ajv-formats/dist/formats.js
|
|
32426
32426
|
var require_formats = __commonJS({
|
|
32427
|
-
"node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
32427
|
+
"../mcp-agents-memory/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
32428
32428
|
"use strict";
|
|
32429
32429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32430
32430
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -32625,9 +32625,9 @@ var require_formats = __commonJS({
|
|
|
32625
32625
|
}
|
|
32626
32626
|
});
|
|
32627
32627
|
|
|
32628
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
32628
|
+
// ../mcp-agents-memory/node_modules/ajv-formats/dist/limit.js
|
|
32629
32629
|
var require_limit = __commonJS({
|
|
32630
|
-
"node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
32630
|
+
"../mcp-agents-memory/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
32631
32631
|
"use strict";
|
|
32632
32632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32633
32633
|
exports.formatLimitDefinition = void 0;
|
|
@@ -32697,9 +32697,9 @@ var require_limit = __commonJS({
|
|
|
32697
32697
|
}
|
|
32698
32698
|
});
|
|
32699
32699
|
|
|
32700
|
-
// node_modules/ajv-formats/dist/index.js
|
|
32700
|
+
// ../mcp-agents-memory/node_modules/ajv-formats/dist/index.js
|
|
32701
32701
|
var require_dist2 = __commonJS({
|
|
32702
|
-
"node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
32702
|
+
"../mcp-agents-memory/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
32703
32703
|
"use strict";
|
|
32704
32704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32705
32705
|
var formats_1 = require_formats();
|
|
@@ -32726,12 +32726,12 @@ var require_dist2 = __commonJS({
|
|
|
32726
32726
|
throw new Error(`Unknown format "${name}"`);
|
|
32727
32727
|
return f;
|
|
32728
32728
|
};
|
|
32729
|
-
function addFormats(ajv, list,
|
|
32729
|
+
function addFormats(ajv, list, fs14, exportName) {
|
|
32730
32730
|
var _a3;
|
|
32731
32731
|
var _b;
|
|
32732
32732
|
(_a3 = (_b = ajv.opts.code).formats) !== null && _a3 !== void 0 ? _a3 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
|
|
32733
32733
|
for (const f of list)
|
|
32734
|
-
ajv.addFormat(f,
|
|
32734
|
+
ajv.addFormat(f, fs14[f]);
|
|
32735
32735
|
}
|
|
32736
32736
|
module.exports = exports = formatsPlugin;
|
|
32737
32737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -32770,12 +32770,12 @@ __export(runner_exports, {
|
|
|
32770
32770
|
runAllMigrations: () => runAllMigrations
|
|
32771
32771
|
});
|
|
32772
32772
|
import { spawn } from "child_process";
|
|
32773
|
-
import
|
|
32773
|
+
import fs12 from "fs";
|
|
32774
32774
|
import path12 from "path";
|
|
32775
32775
|
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
32776
32776
|
function listMigrationFiles() {
|
|
32777
|
-
if (!
|
|
32778
|
-
return
|
|
32777
|
+
if (!fs12.existsSync(migrationsDir)) return [];
|
|
32778
|
+
return fs12.readdirSync(migrationsDir).filter((f) => MIGRATION_FILE_RE.test(f)).sort();
|
|
32779
32779
|
}
|
|
32780
32780
|
function runOne(file) {
|
|
32781
32781
|
return new Promise((resolve, reject) => {
|
|
@@ -32808,7 +32808,7 @@ var init_runner = __esm({
|
|
|
32808
32808
|
"src/migrations/runner.ts"() {
|
|
32809
32809
|
"use strict";
|
|
32810
32810
|
__dirname4 = path12.dirname(fileURLToPath4(import.meta.url));
|
|
32811
|
-
migrationsDir =
|
|
32811
|
+
migrationsDir = fs12.existsSync(path12.join(__dirname4, "migrations")) ? path12.join(__dirname4, "migrations") : __dirname4;
|
|
32812
32812
|
MIGRATION_FILE_RE = /^\d{3}_.+\.js$/;
|
|
32813
32813
|
}
|
|
32814
32814
|
});
|
|
@@ -32816,7 +32816,7 @@ var init_runner = __esm({
|
|
|
32816
32816
|
// src/index.ts
|
|
32817
32817
|
init_db();
|
|
32818
32818
|
|
|
32819
|
-
// node_modules/zod/v3/external.js
|
|
32819
|
+
// ../mcp-agents-memory/node_modules/zod/v3/external.js
|
|
32820
32820
|
var external_exports = {};
|
|
32821
32821
|
__export(external_exports, {
|
|
32822
32822
|
BRAND: () => BRAND,
|
|
@@ -32928,7 +32928,7 @@ __export(external_exports, {
|
|
|
32928
32928
|
void: () => voidType
|
|
32929
32929
|
});
|
|
32930
32930
|
|
|
32931
|
-
// node_modules/zod/v3/helpers/util.js
|
|
32931
|
+
// ../mcp-agents-memory/node_modules/zod/v3/helpers/util.js
|
|
32932
32932
|
var util;
|
|
32933
32933
|
(function(util2) {
|
|
32934
32934
|
util2.assertEqual = (_) => {
|
|
@@ -33062,7 +33062,7 @@ var getParsedType = (data) => {
|
|
|
33062
33062
|
}
|
|
33063
33063
|
};
|
|
33064
33064
|
|
|
33065
|
-
// node_modules/zod/v3/ZodError.js
|
|
33065
|
+
// ../mcp-agents-memory/node_modules/zod/v3/ZodError.js
|
|
33066
33066
|
var ZodIssueCode = util.arrayToEnum([
|
|
33067
33067
|
"invalid_type",
|
|
33068
33068
|
"invalid_literal",
|
|
@@ -33180,7 +33180,7 @@ ZodError.create = (issues) => {
|
|
|
33180
33180
|
return error2;
|
|
33181
33181
|
};
|
|
33182
33182
|
|
|
33183
|
-
// node_modules/zod/v3/locales/en.js
|
|
33183
|
+
// ../mcp-agents-memory/node_modules/zod/v3/locales/en.js
|
|
33184
33184
|
var errorMap = (issue2, _ctx) => {
|
|
33185
33185
|
let message;
|
|
33186
33186
|
switch (issue2.code) {
|
|
@@ -33283,7 +33283,7 @@ var errorMap = (issue2, _ctx) => {
|
|
|
33283
33283
|
};
|
|
33284
33284
|
var en_default = errorMap;
|
|
33285
33285
|
|
|
33286
|
-
// node_modules/zod/v3/errors.js
|
|
33286
|
+
// ../mcp-agents-memory/node_modules/zod/v3/errors.js
|
|
33287
33287
|
var overrideErrorMap = en_default;
|
|
33288
33288
|
function setErrorMap(map) {
|
|
33289
33289
|
overrideErrorMap = map;
|
|
@@ -33292,7 +33292,7 @@ function getErrorMap() {
|
|
|
33292
33292
|
return overrideErrorMap;
|
|
33293
33293
|
}
|
|
33294
33294
|
|
|
33295
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
33295
|
+
// ../mcp-agents-memory/node_modules/zod/v3/helpers/parseUtil.js
|
|
33296
33296
|
var makeIssue = (params) => {
|
|
33297
33297
|
const { data, path: path13, errorMaps, issueData } = params;
|
|
33298
33298
|
const fullPath = [...path13, ...issueData.path || []];
|
|
@@ -33402,14 +33402,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
33402
33402
|
var isValid = (x) => x.status === "valid";
|
|
33403
33403
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
33404
33404
|
|
|
33405
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
33405
|
+
// ../mcp-agents-memory/node_modules/zod/v3/helpers/errorUtil.js
|
|
33406
33406
|
var errorUtil;
|
|
33407
33407
|
(function(errorUtil2) {
|
|
33408
33408
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
33409
33409
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
33410
33410
|
})(errorUtil || (errorUtil = {}));
|
|
33411
33411
|
|
|
33412
|
-
// node_modules/zod/v3/types.js
|
|
33412
|
+
// ../mcp-agents-memory/node_modules/zod/v3/types.js
|
|
33413
33413
|
var ParseInputLazyPath = class {
|
|
33414
33414
|
constructor(parent, value, path13, key) {
|
|
33415
33415
|
this._cachedPath = [];
|
|
@@ -36857,7 +36857,7 @@ var coerce = {
|
|
|
36857
36857
|
};
|
|
36858
36858
|
var NEVER = INVALID;
|
|
36859
36859
|
|
|
36860
|
-
// node_modules/zod/v4/core/core.js
|
|
36860
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/core.js
|
|
36861
36861
|
var NEVER2 = Object.freeze({
|
|
36862
36862
|
status: "aborted"
|
|
36863
36863
|
});
|
|
@@ -36916,7 +36916,7 @@ function config(newConfig) {
|
|
|
36916
36916
|
return globalConfig;
|
|
36917
36917
|
}
|
|
36918
36918
|
|
|
36919
|
-
// node_modules/zod/v4/core/util.js
|
|
36919
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/util.js
|
|
36920
36920
|
var util_exports = {};
|
|
36921
36921
|
__export(util_exports, {
|
|
36922
36922
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -37437,7 +37437,7 @@ var Class = class {
|
|
|
37437
37437
|
}
|
|
37438
37438
|
};
|
|
37439
37439
|
|
|
37440
|
-
// node_modules/zod/v4/core/errors.js
|
|
37440
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/errors.js
|
|
37441
37441
|
var initializer = (inst, def) => {
|
|
37442
37442
|
inst.name = "$ZodError";
|
|
37443
37443
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -37512,7 +37512,7 @@ function formatError(error2, _mapper) {
|
|
|
37512
37512
|
return fieldErrors;
|
|
37513
37513
|
}
|
|
37514
37514
|
|
|
37515
|
-
// node_modules/zod/v4/core/parse.js
|
|
37515
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/parse.js
|
|
37516
37516
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
37517
37517
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
37518
37518
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -37564,7 +37564,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
37564
37564
|
};
|
|
37565
37565
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
37566
37566
|
|
|
37567
|
-
// node_modules/zod/v4/core/regexes.js
|
|
37567
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/regexes.js
|
|
37568
37568
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
37569
37569
|
var cuid2 = /^[0-9a-z]+$/;
|
|
37570
37570
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -37622,7 +37622,7 @@ var _null = /null/i;
|
|
|
37622
37622
|
var lowercase = /^[^A-Z]*$/;
|
|
37623
37623
|
var uppercase = /^[^a-z]*$/;
|
|
37624
37624
|
|
|
37625
|
-
// node_modules/zod/v4/core/checks.js
|
|
37625
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/checks.js
|
|
37626
37626
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
37627
37627
|
var _a3;
|
|
37628
37628
|
inst._zod ?? (inst._zod = {});
|
|
@@ -38007,7 +38007,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
38007
38007
|
};
|
|
38008
38008
|
});
|
|
38009
38009
|
|
|
38010
|
-
// node_modules/zod/v4/core/doc.js
|
|
38010
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/doc.js
|
|
38011
38011
|
var Doc = class {
|
|
38012
38012
|
constructor(args = []) {
|
|
38013
38013
|
this.content = [];
|
|
@@ -38043,14 +38043,14 @@ var Doc = class {
|
|
|
38043
38043
|
}
|
|
38044
38044
|
};
|
|
38045
38045
|
|
|
38046
|
-
// node_modules/zod/v4/core/versions.js
|
|
38046
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/versions.js
|
|
38047
38047
|
var version = {
|
|
38048
38048
|
major: 4,
|
|
38049
38049
|
minor: 0,
|
|
38050
38050
|
patch: 0
|
|
38051
38051
|
};
|
|
38052
38052
|
|
|
38053
|
-
// node_modules/zod/v4/core/schemas.js
|
|
38053
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/schemas.js
|
|
38054
38054
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
38055
38055
|
var _a3;
|
|
38056
38056
|
inst ?? (inst = {});
|
|
@@ -39288,7 +39288,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
39288
39288
|
}
|
|
39289
39289
|
}
|
|
39290
39290
|
|
|
39291
|
-
// node_modules/zod/v4/locales/en.js
|
|
39291
|
+
// ../mcp-agents-memory/node_modules/zod/v4/locales/en.js
|
|
39292
39292
|
var parsedType = (data) => {
|
|
39293
39293
|
const t = typeof data;
|
|
39294
39294
|
switch (t) {
|
|
@@ -39406,7 +39406,7 @@ function en_default2() {
|
|
|
39406
39406
|
};
|
|
39407
39407
|
}
|
|
39408
39408
|
|
|
39409
|
-
// node_modules/zod/v4/core/registries.js
|
|
39409
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/registries.js
|
|
39410
39410
|
var $ZodRegistry = class {
|
|
39411
39411
|
constructor() {
|
|
39412
39412
|
this._map = /* @__PURE__ */ new Map();
|
|
@@ -39454,7 +39454,7 @@ function registry() {
|
|
|
39454
39454
|
}
|
|
39455
39455
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
39456
39456
|
|
|
39457
|
-
// node_modules/zod/v4/core/api.js
|
|
39457
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/api.js
|
|
39458
39458
|
function _string(Class2, params) {
|
|
39459
39459
|
return new Class2({
|
|
39460
39460
|
type: "string",
|
|
@@ -39893,7 +39893,7 @@ function _refine(Class2, fn, _params) {
|
|
|
39893
39893
|
return schema;
|
|
39894
39894
|
}
|
|
39895
39895
|
|
|
39896
|
-
// node_modules/zod/v4/core/to-json-schema.js
|
|
39896
|
+
// ../mcp-agents-memory/node_modules/zod/v4/core/to-json-schema.js
|
|
39897
39897
|
var JSONSchemaGenerator = class {
|
|
39898
39898
|
constructor(params) {
|
|
39899
39899
|
this.counter = 0;
|
|
@@ -40660,7 +40660,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
40660
40660
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
40661
40661
|
}
|
|
40662
40662
|
|
|
40663
|
-
// node_modules/zod/v4/mini/schemas.js
|
|
40663
|
+
// ../mcp-agents-memory/node_modules/zod/v4/mini/schemas.js
|
|
40664
40664
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
40665
40665
|
if (!inst._zod)
|
|
40666
40666
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -40706,7 +40706,7 @@ function object(shape, params) {
|
|
|
40706
40706
|
return new ZodMiniObject(def);
|
|
40707
40707
|
}
|
|
40708
40708
|
|
|
40709
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
40709
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
40710
40710
|
function isZ4Schema(s) {
|
|
40711
40711
|
const schema = s;
|
|
40712
40712
|
return !!schema._zod;
|
|
@@ -40850,7 +40850,7 @@ function getLiteralValue(schema) {
|
|
|
40850
40850
|
return void 0;
|
|
40851
40851
|
}
|
|
40852
40852
|
|
|
40853
|
-
// node_modules/zod/v4/classic/iso.js
|
|
40853
|
+
// ../mcp-agents-memory/node_modules/zod/v4/classic/iso.js
|
|
40854
40854
|
var iso_exports2 = {};
|
|
40855
40855
|
__export(iso_exports2, {
|
|
40856
40856
|
ZodISODate: () => ZodISODate,
|
|
@@ -40891,7 +40891,7 @@ function duration2(params) {
|
|
|
40891
40891
|
return _isoDuration(ZodISODuration, params);
|
|
40892
40892
|
}
|
|
40893
40893
|
|
|
40894
|
-
// node_modules/zod/v4/classic/errors.js
|
|
40894
|
+
// ../mcp-agents-memory/node_modules/zod/v4/classic/errors.js
|
|
40895
40895
|
var initializer2 = (inst, issues) => {
|
|
40896
40896
|
$ZodError.init(inst, issues);
|
|
40897
40897
|
inst.name = "ZodError";
|
|
@@ -40925,13 +40925,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
40925
40925
|
Parent: Error
|
|
40926
40926
|
});
|
|
40927
40927
|
|
|
40928
|
-
// node_modules/zod/v4/classic/parse.js
|
|
40928
|
+
// ../mcp-agents-memory/node_modules/zod/v4/classic/parse.js
|
|
40929
40929
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
40930
40930
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
40931
40931
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
40932
40932
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
40933
40933
|
|
|
40934
|
-
// node_modules/zod/v4/classic/schemas.js
|
|
40934
|
+
// ../mcp-agents-memory/node_modules/zod/v4/classic/schemas.js
|
|
40935
40935
|
var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
40936
40936
|
$ZodType.init(inst, def);
|
|
40937
40937
|
inst.def = def;
|
|
@@ -41542,10 +41542,10 @@ function preprocess(fn, schema) {
|
|
|
41542
41542
|
return pipe(transform(fn), schema);
|
|
41543
41543
|
}
|
|
41544
41544
|
|
|
41545
|
-
// node_modules/zod/v4/classic/external.js
|
|
41545
|
+
// ../mcp-agents-memory/node_modules/zod/v4/classic/external.js
|
|
41546
41546
|
config(en_default2());
|
|
41547
41547
|
|
|
41548
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
41548
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
41549
41549
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
41550
41550
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
41551
41551
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -43076,12 +43076,12 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
43076
43076
|
}
|
|
43077
43077
|
};
|
|
43078
43078
|
|
|
43079
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
43079
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
43080
43080
|
function isTerminal(status) {
|
|
43081
43081
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
43082
43082
|
}
|
|
43083
43083
|
|
|
43084
|
-
// node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
43084
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
43085
43085
|
var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
43086
43086
|
var defaultOptions = {
|
|
43087
43087
|
name: void 0,
|
|
@@ -43115,7 +43115,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
43115
43115
|
...options
|
|
43116
43116
|
};
|
|
43117
43117
|
|
|
43118
|
-
// node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
43118
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
43119
43119
|
var getRefs = (options) => {
|
|
43120
43120
|
const _options = getDefaultOptions(options);
|
|
43121
43121
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -43136,7 +43136,7 @@ var getRefs = (options) => {
|
|
|
43136
43136
|
};
|
|
43137
43137
|
};
|
|
43138
43138
|
|
|
43139
|
-
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
43139
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
43140
43140
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
43141
43141
|
if (!refs?.errorMessages)
|
|
43142
43142
|
return;
|
|
@@ -43152,7 +43152,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
43152
43152
|
addErrorMessage(res, key, errorMessage, refs);
|
|
43153
43153
|
}
|
|
43154
43154
|
|
|
43155
|
-
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
43155
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
43156
43156
|
var getRelativePath = (pathA, pathB) => {
|
|
43157
43157
|
let i = 0;
|
|
43158
43158
|
for (; i < pathA.length && i < pathB.length; i++) {
|
|
@@ -43162,7 +43162,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
43162
43162
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
43163
43163
|
};
|
|
43164
43164
|
|
|
43165
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
43165
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
43166
43166
|
function parseAnyDef(refs) {
|
|
43167
43167
|
if (refs.target !== "openAi") {
|
|
43168
43168
|
return {};
|
|
@@ -43178,7 +43178,7 @@ function parseAnyDef(refs) {
|
|
|
43178
43178
|
};
|
|
43179
43179
|
}
|
|
43180
43180
|
|
|
43181
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
43181
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
43182
43182
|
function parseArrayDef(def, refs) {
|
|
43183
43183
|
const res = {
|
|
43184
43184
|
type: "array"
|
|
@@ -43202,7 +43202,7 @@ function parseArrayDef(def, refs) {
|
|
|
43202
43202
|
return res;
|
|
43203
43203
|
}
|
|
43204
43204
|
|
|
43205
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
43205
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
43206
43206
|
function parseBigintDef(def, refs) {
|
|
43207
43207
|
const res = {
|
|
43208
43208
|
type: "integer",
|
|
@@ -43248,24 +43248,24 @@ function parseBigintDef(def, refs) {
|
|
|
43248
43248
|
return res;
|
|
43249
43249
|
}
|
|
43250
43250
|
|
|
43251
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
43251
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
43252
43252
|
function parseBooleanDef() {
|
|
43253
43253
|
return {
|
|
43254
43254
|
type: "boolean"
|
|
43255
43255
|
};
|
|
43256
43256
|
}
|
|
43257
43257
|
|
|
43258
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
43258
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
43259
43259
|
function parseBrandedDef(_def, refs) {
|
|
43260
43260
|
return parseDef(_def.type._def, refs);
|
|
43261
43261
|
}
|
|
43262
43262
|
|
|
43263
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
43263
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
43264
43264
|
var parseCatchDef = (def, refs) => {
|
|
43265
43265
|
return parseDef(def.innerType._def, refs);
|
|
43266
43266
|
};
|
|
43267
43267
|
|
|
43268
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
43268
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
43269
43269
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
43270
43270
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
43271
43271
|
if (Array.isArray(strategy)) {
|
|
@@ -43324,7 +43324,7 @@ var integerDateParser = (def, refs) => {
|
|
|
43324
43324
|
return res;
|
|
43325
43325
|
};
|
|
43326
43326
|
|
|
43327
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
43327
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
43328
43328
|
function parseDefaultDef(_def, refs) {
|
|
43329
43329
|
return {
|
|
43330
43330
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -43332,12 +43332,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
43332
43332
|
};
|
|
43333
43333
|
}
|
|
43334
43334
|
|
|
43335
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
43335
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
43336
43336
|
function parseEffectsDef(_def, refs) {
|
|
43337
43337
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
43338
43338
|
}
|
|
43339
43339
|
|
|
43340
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
43340
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
43341
43341
|
function parseEnumDef(def) {
|
|
43342
43342
|
return {
|
|
43343
43343
|
type: "string",
|
|
@@ -43345,7 +43345,7 @@ function parseEnumDef(def) {
|
|
|
43345
43345
|
};
|
|
43346
43346
|
}
|
|
43347
43347
|
|
|
43348
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
43348
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
43349
43349
|
var isJsonSchema7AllOfType = (type) => {
|
|
43350
43350
|
if ("type" in type && type.type === "string")
|
|
43351
43351
|
return false;
|
|
@@ -43387,7 +43387,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
43387
43387
|
} : void 0;
|
|
43388
43388
|
}
|
|
43389
43389
|
|
|
43390
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
43390
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
43391
43391
|
function parseLiteralDef(def, refs) {
|
|
43392
43392
|
const parsedType2 = typeof def.value;
|
|
43393
43393
|
if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
|
|
@@ -43407,7 +43407,7 @@ function parseLiteralDef(def, refs) {
|
|
|
43407
43407
|
};
|
|
43408
43408
|
}
|
|
43409
43409
|
|
|
43410
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
43410
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
43411
43411
|
var emojiRegex2 = void 0;
|
|
43412
43412
|
var zodPatterns = {
|
|
43413
43413
|
/**
|
|
@@ -43732,7 +43732,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
43732
43732
|
return pattern;
|
|
43733
43733
|
}
|
|
43734
43734
|
|
|
43735
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
43735
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
43736
43736
|
function parseRecordDef(def, refs) {
|
|
43737
43737
|
if (refs.target === "openAi") {
|
|
43738
43738
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -43784,7 +43784,7 @@ function parseRecordDef(def, refs) {
|
|
|
43784
43784
|
return schema;
|
|
43785
43785
|
}
|
|
43786
43786
|
|
|
43787
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
43787
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
43788
43788
|
function parseMapDef(def, refs) {
|
|
43789
43789
|
if (refs.mapStrategy === "record") {
|
|
43790
43790
|
return parseRecordDef(def, refs);
|
|
@@ -43809,7 +43809,7 @@ function parseMapDef(def, refs) {
|
|
|
43809
43809
|
};
|
|
43810
43810
|
}
|
|
43811
43811
|
|
|
43812
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
43812
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
43813
43813
|
function parseNativeEnumDef(def) {
|
|
43814
43814
|
const object3 = def.values;
|
|
43815
43815
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -43823,7 +43823,7 @@ function parseNativeEnumDef(def) {
|
|
|
43823
43823
|
};
|
|
43824
43824
|
}
|
|
43825
43825
|
|
|
43826
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
43826
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
43827
43827
|
function parseNeverDef(refs) {
|
|
43828
43828
|
return refs.target === "openAi" ? void 0 : {
|
|
43829
43829
|
not: parseAnyDef({
|
|
@@ -43833,7 +43833,7 @@ function parseNeverDef(refs) {
|
|
|
43833
43833
|
};
|
|
43834
43834
|
}
|
|
43835
43835
|
|
|
43836
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
43836
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
43837
43837
|
function parseNullDef(refs) {
|
|
43838
43838
|
return refs.target === "openApi3" ? {
|
|
43839
43839
|
enum: ["null"],
|
|
@@ -43843,7 +43843,7 @@ function parseNullDef(refs) {
|
|
|
43843
43843
|
};
|
|
43844
43844
|
}
|
|
43845
43845
|
|
|
43846
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
43846
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
43847
43847
|
var primitiveMappings = {
|
|
43848
43848
|
ZodString: "string",
|
|
43849
43849
|
ZodNumber: "number",
|
|
@@ -43911,7 +43911,7 @@ var asAnyOf = (def, refs) => {
|
|
|
43911
43911
|
return anyOf.length ? { anyOf } : void 0;
|
|
43912
43912
|
};
|
|
43913
43913
|
|
|
43914
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
43914
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
43915
43915
|
function parseNullableDef(def, refs) {
|
|
43916
43916
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
43917
43917
|
if (refs.target === "openApi3") {
|
|
@@ -43943,7 +43943,7 @@ function parseNullableDef(def, refs) {
|
|
|
43943
43943
|
return base && { anyOf: [base, { type: "null" }] };
|
|
43944
43944
|
}
|
|
43945
43945
|
|
|
43946
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
43946
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
43947
43947
|
function parseNumberDef(def, refs) {
|
|
43948
43948
|
const res = {
|
|
43949
43949
|
type: "number"
|
|
@@ -43992,7 +43992,7 @@ function parseNumberDef(def, refs) {
|
|
|
43992
43992
|
return res;
|
|
43993
43993
|
}
|
|
43994
43994
|
|
|
43995
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
43995
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
43996
43996
|
function parseObjectDef(def, refs) {
|
|
43997
43997
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
43998
43998
|
const result = {
|
|
@@ -44062,7 +44062,7 @@ function safeIsOptional(schema) {
|
|
|
44062
44062
|
}
|
|
44063
44063
|
}
|
|
44064
44064
|
|
|
44065
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
44065
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
44066
44066
|
var parseOptionalDef = (def, refs) => {
|
|
44067
44067
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
44068
44068
|
return parseDef(def.innerType._def, refs);
|
|
@@ -44081,7 +44081,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
44081
44081
|
} : parseAnyDef(refs);
|
|
44082
44082
|
};
|
|
44083
44083
|
|
|
44084
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
44084
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
44085
44085
|
var parsePipelineDef = (def, refs) => {
|
|
44086
44086
|
if (refs.pipeStrategy === "input") {
|
|
44087
44087
|
return parseDef(def.in._def, refs);
|
|
@@ -44101,12 +44101,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
44101
44101
|
};
|
|
44102
44102
|
};
|
|
44103
44103
|
|
|
44104
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
44104
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
44105
44105
|
function parsePromiseDef(def, refs) {
|
|
44106
44106
|
return parseDef(def.type._def, refs);
|
|
44107
44107
|
}
|
|
44108
44108
|
|
|
44109
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
44109
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
44110
44110
|
function parseSetDef(def, refs) {
|
|
44111
44111
|
const items = parseDef(def.valueType._def, {
|
|
44112
44112
|
...refs,
|
|
@@ -44126,7 +44126,7 @@ function parseSetDef(def, refs) {
|
|
|
44126
44126
|
return schema;
|
|
44127
44127
|
}
|
|
44128
44128
|
|
|
44129
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
44129
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
44130
44130
|
function parseTupleDef(def, refs) {
|
|
44131
44131
|
if (def.rest) {
|
|
44132
44132
|
return {
|
|
@@ -44154,24 +44154,24 @@ function parseTupleDef(def, refs) {
|
|
|
44154
44154
|
}
|
|
44155
44155
|
}
|
|
44156
44156
|
|
|
44157
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
44157
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
44158
44158
|
function parseUndefinedDef(refs) {
|
|
44159
44159
|
return {
|
|
44160
44160
|
not: parseAnyDef(refs)
|
|
44161
44161
|
};
|
|
44162
44162
|
}
|
|
44163
44163
|
|
|
44164
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
44164
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
44165
44165
|
function parseUnknownDef(refs) {
|
|
44166
44166
|
return parseAnyDef(refs);
|
|
44167
44167
|
}
|
|
44168
44168
|
|
|
44169
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
44169
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
44170
44170
|
var parseReadonlyDef = (def, refs) => {
|
|
44171
44171
|
return parseDef(def.innerType._def, refs);
|
|
44172
44172
|
};
|
|
44173
44173
|
|
|
44174
|
-
// node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
44174
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
44175
44175
|
var selectParser = (def, typeName, refs) => {
|
|
44176
44176
|
switch (typeName) {
|
|
44177
44177
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -44247,7 +44247,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
44247
44247
|
}
|
|
44248
44248
|
};
|
|
44249
44249
|
|
|
44250
|
-
// node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
44250
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
44251
44251
|
function parseDef(def, refs, forceResolution = false) {
|
|
44252
44252
|
const seenItem = refs.seen.get(def);
|
|
44253
44253
|
if (refs.override) {
|
|
@@ -44303,7 +44303,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
44303
44303
|
return jsonSchema;
|
|
44304
44304
|
};
|
|
44305
44305
|
|
|
44306
|
-
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
44306
|
+
// ../mcp-agents-memory/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
44307
44307
|
var zodToJsonSchema = (schema, options) => {
|
|
44308
44308
|
const refs = getRefs(options);
|
|
44309
44309
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -44365,7 +44365,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
44365
44365
|
return combined;
|
|
44366
44366
|
};
|
|
44367
44367
|
|
|
44368
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
44368
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
44369
44369
|
function mapMiniTarget(t) {
|
|
44370
44370
|
if (!t)
|
|
44371
44371
|
return "draft-7";
|
|
@@ -44407,7 +44407,7 @@ function parseWithCompat(schema, data) {
|
|
|
44407
44407
|
return result.data;
|
|
44408
44408
|
}
|
|
44409
44409
|
|
|
44410
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
44410
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
44411
44411
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
44412
44412
|
var Protocol = class {
|
|
44413
44413
|
constructor(_options) {
|
|
@@ -45361,7 +45361,7 @@ function mergeCapabilities(base, additional) {
|
|
|
45361
45361
|
return result;
|
|
45362
45362
|
}
|
|
45363
45363
|
|
|
45364
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
45364
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
45365
45365
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
45366
45366
|
var import_ajv_formats = __toESM(require_dist2(), 1);
|
|
45367
45367
|
function createDefaultAjvInstance() {
|
|
@@ -45429,7 +45429,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
45429
45429
|
}
|
|
45430
45430
|
};
|
|
45431
45431
|
|
|
45432
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
45432
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
45433
45433
|
var ExperimentalServerTasks = class {
|
|
45434
45434
|
constructor(_server) {
|
|
45435
45435
|
this._server = _server;
|
|
@@ -45642,7 +45642,7 @@ var ExperimentalServerTasks = class {
|
|
|
45642
45642
|
}
|
|
45643
45643
|
};
|
|
45644
45644
|
|
|
45645
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
45645
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
45646
45646
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
45647
45647
|
if (!requests) {
|
|
45648
45648
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -45677,7 +45677,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
45677
45677
|
}
|
|
45678
45678
|
}
|
|
45679
45679
|
|
|
45680
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
45680
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
45681
45681
|
var Server = class extends Protocol {
|
|
45682
45682
|
/**
|
|
45683
45683
|
* Initializes this server with the given name and version information.
|
|
@@ -46057,7 +46057,7 @@ var Server = class extends Protocol {
|
|
|
46057
46057
|
}
|
|
46058
46058
|
};
|
|
46059
46059
|
|
|
46060
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
46060
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
46061
46061
|
var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
|
|
46062
46062
|
function isCompletable(schema) {
|
|
46063
46063
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -46071,7 +46071,7 @@ var McpZodTypeKind;
|
|
|
46071
46071
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
46072
46072
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
46073
46073
|
|
|
46074
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
46074
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
46075
46075
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
46076
46076
|
function validateToolName(name) {
|
|
46077
46077
|
const warnings = [];
|
|
@@ -46129,7 +46129,7 @@ function validateAndWarnToolName(name) {
|
|
|
46129
46129
|
return result.isValid;
|
|
46130
46130
|
}
|
|
46131
46131
|
|
|
46132
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
46132
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
46133
46133
|
var ExperimentalMcpServerTasks = class {
|
|
46134
46134
|
constructor(_mcpServer) {
|
|
46135
46135
|
this._mcpServer = _mcpServer;
|
|
@@ -46144,7 +46144,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
46144
46144
|
}
|
|
46145
46145
|
};
|
|
46146
46146
|
|
|
46147
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
46147
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
46148
46148
|
var McpServer = class {
|
|
46149
46149
|
constructor(serverInfo, options) {
|
|
46150
46150
|
this._registeredResources = {};
|
|
@@ -46936,10 +46936,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
46936
46936
|
}
|
|
46937
46937
|
};
|
|
46938
46938
|
|
|
46939
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
46939
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
46940
46940
|
import process2 from "node:process";
|
|
46941
46941
|
|
|
46942
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
46942
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
46943
46943
|
var ReadBuffer = class {
|
|
46944
46944
|
append(chunk) {
|
|
46945
46945
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -46967,7 +46967,7 @@ function serializeMessage(message) {
|
|
|
46967
46967
|
return JSON.stringify(message) + "\n";
|
|
46968
46968
|
}
|
|
46969
46969
|
|
|
46970
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
46970
|
+
// ../mcp-agents-memory/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
46971
46971
|
var StdioServerTransport = class {
|
|
46972
46972
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
46973
46973
|
this._stdin = _stdin;
|
|
@@ -47049,22 +47049,28 @@ function skipWhitespace(s, i) {
|
|
|
47049
47049
|
while (i < s.length && /\s/.test(s[i])) i++;
|
|
47050
47050
|
return i;
|
|
47051
47051
|
}
|
|
47052
|
+
function locateBuzzContext(text) {
|
|
47053
|
+
if (!text.startsWith("<base>")) return CONTEXT_OPEN.test(text.slice(0, 12)) ? { rest: text, pos: 0 } : null;
|
|
47054
|
+
const baseEnd = text.indexOf("</base>");
|
|
47055
|
+
if (baseEnd < 0) return null;
|
|
47056
|
+
const rest = text.slice(baseEnd + "</base>".length);
|
|
47057
|
+
let pos = skipWhitespace(rest, 0);
|
|
47058
|
+
for (; ; ) {
|
|
47059
|
+
const name = PREAMBLE_BLOCKS.find((b) => rest.startsWith(`<${b}>`, pos));
|
|
47060
|
+
if (!name) break;
|
|
47061
|
+
const close = rest.indexOf(`</${name}>`, pos);
|
|
47062
|
+
if (close < 0) return null;
|
|
47063
|
+
pos = skipWhitespace(rest, close + name.length + 3);
|
|
47064
|
+
}
|
|
47065
|
+
return CONTEXT_OPEN.test(rest.slice(pos, pos + 12)) ? { rest, pos } : null;
|
|
47066
|
+
}
|
|
47052
47067
|
function cleanBuzzEnvelope(message) {
|
|
47053
47068
|
try {
|
|
47054
47069
|
const text = message.trimStart();
|
|
47055
47070
|
if (!text.startsWith("<base>")) return null;
|
|
47056
|
-
const
|
|
47057
|
-
if (
|
|
47058
|
-
const rest
|
|
47059
|
-
let pos = skipWhitespace(rest, 0);
|
|
47060
|
-
for (; ; ) {
|
|
47061
|
-
const name = PREAMBLE_BLOCKS.find((b) => rest.startsWith(`<${b}>`, pos));
|
|
47062
|
-
if (!name) break;
|
|
47063
|
-
const close = rest.indexOf(`</${name}>`, pos);
|
|
47064
|
-
if (close < 0) return null;
|
|
47065
|
-
pos = skipWhitespace(rest, close + name.length + 3);
|
|
47066
|
-
}
|
|
47067
|
-
if (!CONTEXT_OPEN.test(rest.slice(pos, pos + 12))) return null;
|
|
47071
|
+
const loc = locateBuzzContext(text);
|
|
47072
|
+
if (!loc) return null;
|
|
47073
|
+
const { rest, pos } = loc;
|
|
47068
47074
|
const bodyStart = rest.indexOf("\n", pos) + 1;
|
|
47069
47075
|
const contextClose = rest.indexOf(CONTEXT_CLOSE, bodyStart - 1);
|
|
47070
47076
|
if (contextClose < 0) return null;
|
|
@@ -47094,9 +47100,109 @@ ${turnText}`;
|
|
|
47094
47100
|
return null;
|
|
47095
47101
|
}
|
|
47096
47102
|
}
|
|
47103
|
+
var EVENT_HEADER = /^(?:Event ID: [0-9a-f]{64}|Kind: \d+|Time: \d{4}-\d{2}-\d{2}T\S+|--- Event \d+ \(.*\) ---|Note: A new message arrived while you were working\..*)\s*$/;
|
|
47104
|
+
function buzzEmbeddingText(message) {
|
|
47105
|
+
try {
|
|
47106
|
+
if (!message.startsWith("<context>\n")) return message;
|
|
47107
|
+
const close = message.indexOf(CONTEXT_CLOSE);
|
|
47108
|
+
if (close < 0) return message;
|
|
47109
|
+
const turn = message.slice(close + CONTEXT_CLOSE.length);
|
|
47110
|
+
if (!TURN_OPEN.test(turn)) return message;
|
|
47111
|
+
const text = turn.split("\n").filter((line) => !EVENT_HEADER.test(line) && !isNostrMetaLine(line)).map(
|
|
47112
|
+
(line) => (
|
|
47113
|
+
// `$` 없이: 끝까지 되짚는 역추적을 막는다 (긴 줄에서 제곱 시간)
|
|
47114
|
+
line.replace(/^From: (.*?) \(npub:.*/, "From: $1").replace(/^Channel: (\S+) \(#[0-9a-f-]+\)/, "Channel: $1")
|
|
47115
|
+
)
|
|
47116
|
+
).join("\n").trim();
|
|
47117
|
+
return text || message;
|
|
47118
|
+
} catch {
|
|
47119
|
+
return message;
|
|
47120
|
+
}
|
|
47121
|
+
}
|
|
47122
|
+
function venueFromBuzzContext(message) {
|
|
47123
|
+
if (!CONTEXT_OPEN.test(message.slice(0, 12))) return null;
|
|
47124
|
+
const end = message.indexOf(CONTEXT_CLOSE);
|
|
47125
|
+
if (end < 0) return null;
|
|
47126
|
+
const lines = message.slice(0, end).split("\n").map((l) => l.replace(/\r$/, ""));
|
|
47127
|
+
const scope = lines.find((l) => l.startsWith("Scope: "))?.slice("Scope: ".length).trim();
|
|
47128
|
+
if (scope !== "thread" && scope !== "channel" && scope !== "dm") return null;
|
|
47129
|
+
if (scope === "dm") return "buzz:dm";
|
|
47130
|
+
const channel = lines.find((l) => l.startsWith("Channel: "))?.trimEnd();
|
|
47131
|
+
const m = channel ? /^Channel: (.+?) \(#[0-9a-f-]{36}\)$/.exec(channel) : null;
|
|
47132
|
+
return m ? `buzz:${m[1]}` : "buzz";
|
|
47133
|
+
}
|
|
47134
|
+
function looksLikeBuzzTurn(message) {
|
|
47135
|
+
const text = message.trimStart();
|
|
47136
|
+
if (text.startsWith("<base>")) return true;
|
|
47137
|
+
if (!CONTEXT_OPEN.test(text.slice(0, 12))) return false;
|
|
47138
|
+
const close = text.indexOf(CONTEXT_CLOSE);
|
|
47139
|
+
return close >= 0 && TURN_OPEN.test(text.slice(close + CONTEXT_CLOSE.length));
|
|
47140
|
+
}
|
|
47141
|
+
function venueFromBuzzMessage(message) {
|
|
47142
|
+
try {
|
|
47143
|
+
const loc = locateBuzzContext(message.trimStart());
|
|
47144
|
+
return loc ? venueFromBuzzContext(loc.rest.slice(loc.pos)) : null;
|
|
47145
|
+
} catch {
|
|
47146
|
+
return null;
|
|
47147
|
+
}
|
|
47148
|
+
}
|
|
47149
|
+
|
|
47150
|
+
// src/auto_save/venue.ts
|
|
47151
|
+
import fs2 from "fs";
|
|
47152
|
+
var INTERACTIVE_ENTRYPOINTS = /* @__PURE__ */ new Set(["cli", "claude-vscode"]);
|
|
47153
|
+
function classifySessionVenue(firstUserText, entrypoint) {
|
|
47154
|
+
if (buzzTurnVenue(firstUserText)) return "buzz";
|
|
47155
|
+
if (entrypoint && INTERACTIVE_ENTRYPOINTS.has(entrypoint)) return "terminal";
|
|
47156
|
+
if (/\bslack\b/i.test(firstUserText.slice(0, 500))) return "slack";
|
|
47157
|
+
if (entrypoint) return "auto";
|
|
47158
|
+
return null;
|
|
47159
|
+
}
|
|
47160
|
+
function buzzTurnVenue(message) {
|
|
47161
|
+
return venueFromBuzzMessage(message) ?? (looksLikeBuzzTurn(message) ? "buzz" : null);
|
|
47162
|
+
}
|
|
47163
|
+
var TAIL_CHUNK = 4 * 1024 * 1024;
|
|
47164
|
+
var TAIL_CAP = 64 * 1024 * 1024;
|
|
47165
|
+
var NEWLINE = 10;
|
|
47166
|
+
function lastBuzzVenueInFile(jsonlPath, uptoBytes, userText) {
|
|
47167
|
+
const fd = fs2.openSync(jsonlPath, "r");
|
|
47168
|
+
try {
|
|
47169
|
+
let end = uptoBytes;
|
|
47170
|
+
let carry = Buffer.alloc(0);
|
|
47171
|
+
while (end > 0 && uptoBytes - end < TAIL_CAP) {
|
|
47172
|
+
const start = Math.max(0, end - TAIL_CHUNK);
|
|
47173
|
+
const chunk = Buffer.allocUnsafe(end - start);
|
|
47174
|
+
fs2.readSync(fd, chunk, 0, chunk.length, start);
|
|
47175
|
+
const buf = carry.length ? Buffer.concat([chunk, carry]) : chunk;
|
|
47176
|
+
const firstNl = start > 0 ? buf.indexOf(NEWLINE) : -1;
|
|
47177
|
+
carry = firstNl >= 0 ? buf.subarray(0, firstNl) : start > 0 ? buf : Buffer.alloc(0);
|
|
47178
|
+
const whole = firstNl >= 0 ? buf.subarray(firstNl + 1) : start > 0 ? Buffer.alloc(0) : buf;
|
|
47179
|
+
const lines = whole.toString("utf-8").split("\n");
|
|
47180
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
47181
|
+
const text = lines[i] ? userText(lines[i]) : null;
|
|
47182
|
+
const venue = text ? buzzTurnVenue(text) : null;
|
|
47183
|
+
if (venue) return venue;
|
|
47184
|
+
}
|
|
47185
|
+
end = start;
|
|
47186
|
+
}
|
|
47187
|
+
return null;
|
|
47188
|
+
} finally {
|
|
47189
|
+
fs2.closeSync(fd);
|
|
47190
|
+
}
|
|
47191
|
+
}
|
|
47097
47192
|
|
|
47098
47193
|
// src/hot_path.ts
|
|
47099
|
-
var
|
|
47194
|
+
var missingColumns = /* @__PURE__ */ new Set();
|
|
47195
|
+
var MISSING_COLUMN_EFFECT = {
|
|
47196
|
+
raw_message: "Buzz \uBD09\uD22C \uC815\uB9AC\uAC00 \uC2DC\uC791\uB429\uB2C8\uB2E4. \uADF8 \uC804\uAE4C\uC9C0\uB294 \uC6D0\uBB38 \uADF8\uB300\uB85C \uC800\uC7A5\uD569\uB2C8\uB2E4.",
|
|
47197
|
+
venue: "\uB300\uD654 \uC790\uB9AC(venue) \uAE30\uB85D\uC774 \uC2DC\uC791\uB429\uB2C8\uB2E4. \uADF8 \uC804\uAE4C\uC9C0\uB294 venue \uC5C6\uC774 \uC800\uC7A5\uD569\uB2C8\uB2E4."
|
|
47198
|
+
};
|
|
47199
|
+
function missingOptionalColumn(err3, sql, cols) {
|
|
47200
|
+
const e = err3;
|
|
47201
|
+
if (e.code !== "42703") return void 0;
|
|
47202
|
+
const at = Number(e.position);
|
|
47203
|
+
const named = at > 0 ? /^[a-z_]+/.exec(sql.slice(at - 1))?.[0] : void 0;
|
|
47204
|
+
return cols.find(([c]) => named ? c === named : !!e.message?.includes(c))?.[0];
|
|
47205
|
+
}
|
|
47100
47206
|
async function insertRawMemory(params) {
|
|
47101
47207
|
const {
|
|
47102
47208
|
user_id,
|
|
@@ -47117,26 +47223,31 @@ async function insertRawMemory(params) {
|
|
|
47117
47223
|
const embeddingSql = embedding && embedding.length > 0 ? `[${embedding.join(",")}]` : null;
|
|
47118
47224
|
const tagProcessed = p_tag_id !== null;
|
|
47119
47225
|
const cleaned = role === "user" && !is_pinned && p_tag_id === null && embeddingSql === null ? cleanBuzzEnvelope(message) : null;
|
|
47120
|
-
const
|
|
47121
|
-
|
|
47226
|
+
const venue = params.venue ?? (role === "user" ? buzzTurnVenue(cleaned ?? message) : null);
|
|
47227
|
+
const optional2 = [];
|
|
47228
|
+
if (cleaned !== null) optional2.push(["raw_message", message]);
|
|
47229
|
+
if (venue) optional2.push(["venue", venue]);
|
|
47230
|
+
const buildInsert = (cols2) => {
|
|
47231
|
+
const text = cols2.some(([c]) => c === "raw_message") ? cleaned : message;
|
|
47232
|
+
const sql = `INSERT INTO memory (
|
|
47122
47233
|
user_id, agent_platform, agent_model,
|
|
47123
47234
|
subagent, subagent_model, subagent_role,
|
|
47124
47235
|
role, message,
|
|
47125
47236
|
p_tag_id, d_tag, embedding,
|
|
47126
47237
|
is_pinned, tag_processed, external_uuid,
|
|
47127
|
-
device_name${
|
|
47238
|
+
device_name${cols2.map(([c]) => `, ${c}`).join("")}
|
|
47128
47239
|
) VALUES (
|
|
47129
47240
|
$1, $2, $3,
|
|
47130
47241
|
$4, $5, $6,
|
|
47131
47242
|
$7, $8,
|
|
47132
47243
|
$9, $10::text[], $11::halfvec,
|
|
47133
47244
|
$12, $13, $14,
|
|
47134
|
-
$15${
|
|
47245
|
+
$15${cols2.map((_, i) => `, $${16 + i}`).join("")}
|
|
47135
47246
|
)
|
|
47136
47247
|
ON CONFLICT (external_uuid) WHERE external_uuid IS NOT NULL
|
|
47137
47248
|
DO NOTHING
|
|
47138
|
-
RETURNING id, created_at
|
|
47139
|
-
[
|
|
47249
|
+
RETURNING id, created_at`;
|
|
47250
|
+
const values = [
|
|
47140
47251
|
user_id,
|
|
47141
47252
|
agent_platform,
|
|
47142
47253
|
agent_model,
|
|
@@ -47152,24 +47263,26 @@ async function insertRawMemory(params) {
|
|
|
47152
47263
|
tagProcessed,
|
|
47153
47264
|
external_uuid,
|
|
47154
47265
|
device_name,
|
|
47155
|
-
...
|
|
47156
|
-
]
|
|
47157
|
-
|
|
47266
|
+
...cols2.map(([, v]) => v)
|
|
47267
|
+
];
|
|
47268
|
+
return { sql, values };
|
|
47269
|
+
};
|
|
47270
|
+
let cols = optional2.filter(([c]) => !missingColumns.has(c));
|
|
47158
47271
|
let result;
|
|
47159
|
-
|
|
47272
|
+
for (; ; ) {
|
|
47273
|
+
const { sql, values } = buildInsert(cols);
|
|
47160
47274
|
try {
|
|
47161
|
-
result = await
|
|
47275
|
+
result = await db.query(sql, values);
|
|
47276
|
+
break;
|
|
47162
47277
|
} catch (err3) {
|
|
47163
|
-
const
|
|
47164
|
-
if (
|
|
47165
|
-
|
|
47278
|
+
const missing = missingOptionalColumn(err3, sql, cols);
|
|
47279
|
+
if (!missing) throw err3;
|
|
47280
|
+
missingColumns.add(missing);
|
|
47166
47281
|
console.error(
|
|
47167
|
-
|
|
47282
|
+
`\u26A0\uFE0F [HotPath] memory.${missing} \uCE78\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \`mcp-agents-memory migrate\` \uC2E4\uD589 \uD6C4 \uC774 \uD504\uB85C\uC138\uC2A4\uB97C \uC7AC\uC2DC\uC791\uD574\uC57C ${MISSING_COLUMN_EFFECT[missing]}`
|
|
47168
47283
|
);
|
|
47169
|
-
|
|
47284
|
+
cols = cols.filter(([c]) => c !== missing);
|
|
47170
47285
|
}
|
|
47171
|
-
} else {
|
|
47172
|
-
result = await insert(message, null);
|
|
47173
47286
|
}
|
|
47174
47287
|
if (result.rows.length === 0) {
|
|
47175
47288
|
const existing = await db.query(
|
|
@@ -47236,7 +47349,7 @@ async function getUserProfile(userId) {
|
|
|
47236
47349
|
return r.rows[0] ?? { core_profile: null, sub_profile: null };
|
|
47237
47350
|
}
|
|
47238
47351
|
|
|
47239
|
-
// node_modules/openai/internal/tslib.mjs
|
|
47352
|
+
// ../mcp-agents-memory/node_modules/openai/internal/tslib.mjs
|
|
47240
47353
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
47241
47354
|
if (kind === "m")
|
|
47242
47355
|
throw new TypeError("Private method is not writable");
|
|
@@ -47254,7 +47367,7 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
|
47254
47367
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
47255
47368
|
}
|
|
47256
47369
|
|
|
47257
|
-
// node_modules/openai/internal/utils/uuid.mjs
|
|
47370
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/uuid.mjs
|
|
47258
47371
|
var uuid4 = function() {
|
|
47259
47372
|
const { crypto: crypto3 } = globalThis;
|
|
47260
47373
|
if (crypto3?.randomUUID) {
|
|
@@ -47266,7 +47379,7 @@ var uuid4 = function() {
|
|
|
47266
47379
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
47267
47380
|
};
|
|
47268
47381
|
|
|
47269
|
-
// node_modules/openai/internal/errors.mjs
|
|
47382
|
+
// ../mcp-agents-memory/node_modules/openai/internal/errors.mjs
|
|
47270
47383
|
function isAbortError(err3) {
|
|
47271
47384
|
return typeof err3 === "object" && err3 !== null && // Spec-compliant fetch implementations
|
|
47272
47385
|
("name" in err3 && err3.name === "AbortError" || // Expo fetch
|
|
@@ -47297,7 +47410,7 @@ var castToError = (err3) => {
|
|
|
47297
47410
|
return new Error(err3);
|
|
47298
47411
|
};
|
|
47299
47412
|
|
|
47300
|
-
// node_modules/openai/core/error.mjs
|
|
47413
|
+
// ../mcp-agents-memory/node_modules/openai/core/error.mjs
|
|
47301
47414
|
var OpenAIError = class extends Error {
|
|
47302
47415
|
};
|
|
47303
47416
|
var APIError = class _APIError extends OpenAIError {
|
|
@@ -47431,7 +47544,7 @@ var SubjectTokenProviderError = class extends OpenAIError {
|
|
|
47431
47544
|
}
|
|
47432
47545
|
};
|
|
47433
47546
|
|
|
47434
|
-
// node_modules/openai/internal/utils/values.mjs
|
|
47547
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/values.mjs
|
|
47435
47548
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
47436
47549
|
var isAbsoluteURL = (url) => {
|
|
47437
47550
|
return startsWithSchemeRegexp.test(url);
|
|
@@ -47474,13 +47587,13 @@ var safeJSON = (text) => {
|
|
|
47474
47587
|
}
|
|
47475
47588
|
};
|
|
47476
47589
|
|
|
47477
|
-
// node_modules/openai/internal/utils/sleep.mjs
|
|
47590
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/sleep.mjs
|
|
47478
47591
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
47479
47592
|
|
|
47480
|
-
// node_modules/openai/version.mjs
|
|
47593
|
+
// ../mcp-agents-memory/node_modules/openai/version.mjs
|
|
47481
47594
|
var VERSION = "6.34.0";
|
|
47482
47595
|
|
|
47483
|
-
// node_modules/openai/internal/detect-platform.mjs
|
|
47596
|
+
// ../mcp-agents-memory/node_modules/openai/internal/detect-platform.mjs
|
|
47484
47597
|
var isRunningInBrowser = () => {
|
|
47485
47598
|
return (
|
|
47486
47599
|
// @ts-ignore
|
|
@@ -47614,7 +47727,7 @@ var getPlatformHeaders = () => {
|
|
|
47614
47727
|
return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
|
|
47615
47728
|
};
|
|
47616
47729
|
|
|
47617
|
-
// node_modules/openai/internal/shims.mjs
|
|
47730
|
+
// ../mcp-agents-memory/node_modules/openai/internal/shims.mjs
|
|
47618
47731
|
function getDefaultFetch() {
|
|
47619
47732
|
if (typeof fetch !== "undefined") {
|
|
47620
47733
|
return fetch;
|
|
@@ -47686,7 +47799,7 @@ async function CancelReadableStream(stream) {
|
|
|
47686
47799
|
await cancelPromise;
|
|
47687
47800
|
}
|
|
47688
47801
|
|
|
47689
|
-
// node_modules/openai/internal/request-options.mjs
|
|
47802
|
+
// ../mcp-agents-memory/node_modules/openai/internal/request-options.mjs
|
|
47690
47803
|
var FallbackEncoder = ({ headers, body }) => {
|
|
47691
47804
|
return {
|
|
47692
47805
|
bodyHeaders: {
|
|
@@ -47696,7 +47809,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
47696
47809
|
};
|
|
47697
47810
|
};
|
|
47698
47811
|
|
|
47699
|
-
// node_modules/openai/internal/qs/formats.mjs
|
|
47812
|
+
// ../mcp-agents-memory/node_modules/openai/internal/qs/formats.mjs
|
|
47700
47813
|
var default_format = "RFC3986";
|
|
47701
47814
|
var default_formatter = (v) => String(v);
|
|
47702
47815
|
var formatters = {
|
|
@@ -47705,7 +47818,7 @@ var formatters = {
|
|
|
47705
47818
|
};
|
|
47706
47819
|
var RFC1738 = "RFC1738";
|
|
47707
47820
|
|
|
47708
|
-
// node_modules/openai/internal/qs/utils.mjs
|
|
47821
|
+
// ../mcp-agents-memory/node_modules/openai/internal/qs/utils.mjs
|
|
47709
47822
|
var has = (obj, key) => (has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has(obj, key));
|
|
47710
47823
|
var hex_table = /* @__PURE__ */ (() => {
|
|
47711
47824
|
const array2 = [];
|
|
@@ -47784,7 +47897,7 @@ function maybe_map(val, fn) {
|
|
|
47784
47897
|
return fn(val);
|
|
47785
47898
|
}
|
|
47786
47899
|
|
|
47787
|
-
// node_modules/openai/internal/qs/stringify.mjs
|
|
47900
|
+
// ../mcp-agents-memory/node_modules/openai/internal/qs/stringify.mjs
|
|
47788
47901
|
var array_prefix_generators = {
|
|
47789
47902
|
brackets(prefix) {
|
|
47790
47903
|
return String(prefix) + "[]";
|
|
@@ -48062,12 +48175,12 @@ function stringify(object3, opts = {}) {
|
|
|
48062
48175
|
return joined.length > 0 ? prefix + joined : "";
|
|
48063
48176
|
}
|
|
48064
48177
|
|
|
48065
|
-
// node_modules/openai/internal/utils/query.mjs
|
|
48178
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/query.mjs
|
|
48066
48179
|
function stringifyQuery(query) {
|
|
48067
48180
|
return stringify(query, { arrayFormat: "brackets" });
|
|
48068
48181
|
}
|
|
48069
48182
|
|
|
48070
|
-
// node_modules/openai/internal/utils/bytes.mjs
|
|
48183
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/bytes.mjs
|
|
48071
48184
|
function concatBytes(buffers) {
|
|
48072
48185
|
let length = 0;
|
|
48073
48186
|
for (const buffer of buffers) {
|
|
@@ -48092,7 +48205,7 @@ function decodeUTF8(bytes) {
|
|
|
48092
48205
|
return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder(), decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
|
|
48093
48206
|
}
|
|
48094
48207
|
|
|
48095
|
-
// node_modules/openai/internal/decoders/line.mjs
|
|
48208
|
+
// ../mcp-agents-memory/node_modules/openai/internal/decoders/line.mjs
|
|
48096
48209
|
var _LineDecoder_buffer;
|
|
48097
48210
|
var _LineDecoder_carriageReturnIndex;
|
|
48098
48211
|
var LineDecoder = class {
|
|
@@ -48169,7 +48282,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
48169
48282
|
return -1;
|
|
48170
48283
|
}
|
|
48171
48284
|
|
|
48172
|
-
// node_modules/openai/internal/utils/log.mjs
|
|
48285
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/log.mjs
|
|
48173
48286
|
var levelNumbers = {
|
|
48174
48287
|
off: 0,
|
|
48175
48288
|
error: 200,
|
|
@@ -48242,7 +48355,7 @@ var formatRequestDetails = (details) => {
|
|
|
48242
48355
|
return details;
|
|
48243
48356
|
};
|
|
48244
48357
|
|
|
48245
|
-
// node_modules/openai/core/streaming.mjs
|
|
48358
|
+
// ../mcp-agents-memory/node_modules/openai/core/streaming.mjs
|
|
48246
48359
|
var _Stream_client;
|
|
48247
48360
|
var Stream = class _Stream {
|
|
48248
48361
|
constructor(iterator, controller, client2) {
|
|
@@ -48500,7 +48613,7 @@ function partition(str2, delimiter) {
|
|
|
48500
48613
|
return [str2, "", ""];
|
|
48501
48614
|
}
|
|
48502
48615
|
|
|
48503
|
-
// node_modules/openai/internal/parse.mjs
|
|
48616
|
+
// ../mcp-agents-memory/node_modules/openai/internal/parse.mjs
|
|
48504
48617
|
async function defaultParseResponse(client2, props) {
|
|
48505
48618
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
48506
48619
|
const body = await (async () => {
|
|
@@ -48550,7 +48663,7 @@ function addRequestID(value, response) {
|
|
|
48550
48663
|
});
|
|
48551
48664
|
}
|
|
48552
48665
|
|
|
48553
|
-
// node_modules/openai/core/api-promise.mjs
|
|
48666
|
+
// ../mcp-agents-memory/node_modules/openai/core/api-promise.mjs
|
|
48554
48667
|
var _APIPromise_client;
|
|
48555
48668
|
var APIPromise = class _APIPromise extends Promise {
|
|
48556
48669
|
constructor(client2, responsePromise, parseResponse2 = defaultParseResponse) {
|
|
@@ -48613,7 +48726,7 @@ var APIPromise = class _APIPromise extends Promise {
|
|
|
48613
48726
|
};
|
|
48614
48727
|
_APIPromise_client = /* @__PURE__ */ new WeakMap();
|
|
48615
48728
|
|
|
48616
|
-
// node_modules/openai/core/pagination.mjs
|
|
48729
|
+
// ../mcp-agents-memory/node_modules/openai/core/pagination.mjs
|
|
48617
48730
|
var _AbstractPage_client;
|
|
48618
48731
|
var AbstractPage = class {
|
|
48619
48732
|
constructor(client2, response, body, options) {
|
|
@@ -48744,7 +48857,7 @@ var ConversationCursorPage = class extends AbstractPage {
|
|
|
48744
48857
|
}
|
|
48745
48858
|
};
|
|
48746
48859
|
|
|
48747
|
-
// node_modules/openai/auth/workload-identity-auth.mjs
|
|
48860
|
+
// ../mcp-agents-memory/node_modules/openai/auth/workload-identity-auth.mjs
|
|
48748
48861
|
var SUBJECT_TOKEN_TYPES = {
|
|
48749
48862
|
jwt: "urn:ietf:params:oauth:token-type:jwt",
|
|
48750
48863
|
id: "urn:ietf:params:oauth:token-type:id_token"
|
|
@@ -48829,7 +48942,7 @@ var WorkloadIdentityAuth = class {
|
|
|
48829
48942
|
}
|
|
48830
48943
|
};
|
|
48831
48944
|
|
|
48832
|
-
// node_modules/openai/internal/uploads.mjs
|
|
48945
|
+
// ../mcp-agents-memory/node_modules/openai/internal/uploads.mjs
|
|
48833
48946
|
var checkFileSupport = () => {
|
|
48834
48947
|
if (typeof File === "undefined") {
|
|
48835
48948
|
const { process: process3 } = globalThis;
|
|
@@ -48920,7 +49033,7 @@ var addFormValue = async (form, key, value) => {
|
|
|
48920
49033
|
}
|
|
48921
49034
|
};
|
|
48922
49035
|
|
|
48923
|
-
// node_modules/openai/internal/to-file.mjs
|
|
49036
|
+
// ../mcp-agents-memory/node_modules/openai/internal/to-file.mjs
|
|
48924
49037
|
var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
|
|
48925
49038
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
48926
49039
|
var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
|
|
@@ -48972,14 +49085,14 @@ function propsForError(value) {
|
|
|
48972
49085
|
return `; props: [${props.map((p) => `"${p}"`).join(", ")}]`;
|
|
48973
49086
|
}
|
|
48974
49087
|
|
|
48975
|
-
// node_modules/openai/core/resource.mjs
|
|
49088
|
+
// ../mcp-agents-memory/node_modules/openai/core/resource.mjs
|
|
48976
49089
|
var APIResource = class {
|
|
48977
49090
|
constructor(client2) {
|
|
48978
49091
|
this._client = client2;
|
|
48979
49092
|
}
|
|
48980
49093
|
};
|
|
48981
49094
|
|
|
48982
|
-
// node_modules/openai/internal/utils/path.mjs
|
|
49095
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/path.mjs
|
|
48983
49096
|
function encodeURIPath(str2) {
|
|
48984
49097
|
return str2.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
48985
49098
|
}
|
|
@@ -49034,7 +49147,7 @@ ${underline}`);
|
|
|
49034
49147
|
};
|
|
49035
49148
|
var path2 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
49036
49149
|
|
|
49037
|
-
// node_modules/openai/resources/chat/completions/messages.mjs
|
|
49150
|
+
// ../mcp-agents-memory/node_modules/openai/resources/chat/completions/messages.mjs
|
|
49038
49151
|
var Messages = class extends APIResource {
|
|
49039
49152
|
/**
|
|
49040
49153
|
* Get the messages in a stored chat completion. Only Chat Completions that have
|
|
@@ -49055,7 +49168,7 @@ var Messages = class extends APIResource {
|
|
|
49055
49168
|
}
|
|
49056
49169
|
};
|
|
49057
49170
|
|
|
49058
|
-
// node_modules/openai/lib/parser.mjs
|
|
49171
|
+
// ../mcp-agents-memory/node_modules/openai/lib/parser.mjs
|
|
49059
49172
|
function isChatCompletionFunctionTool(tool) {
|
|
49060
49173
|
return tool !== void 0 && "function" in tool && tool.function !== void 0;
|
|
49061
49174
|
}
|
|
@@ -49162,7 +49275,7 @@ function validateInputTools(tools) {
|
|
|
49162
49275
|
}
|
|
49163
49276
|
}
|
|
49164
49277
|
|
|
49165
|
-
// node_modules/openai/lib/chatCompletionUtils.mjs
|
|
49278
|
+
// ../mcp-agents-memory/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
49166
49279
|
var isAssistantMessage = (message) => {
|
|
49167
49280
|
return message?.role === "assistant";
|
|
49168
49281
|
};
|
|
@@ -49170,7 +49283,7 @@ var isToolMessage = (message) => {
|
|
|
49170
49283
|
return message?.role === "tool";
|
|
49171
49284
|
};
|
|
49172
49285
|
|
|
49173
|
-
// node_modules/openai/lib/EventStream.mjs
|
|
49286
|
+
// ../mcp-agents-memory/node_modules/openai/lib/EventStream.mjs
|
|
49174
49287
|
var _EventStream_instances;
|
|
49175
49288
|
var _EventStream_connectedPromise;
|
|
49176
49289
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -49359,12 +49472,12 @@ _EventStream_connectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_reso
|
|
|
49359
49472
|
return this._emit("error", new OpenAIError(String(error2)));
|
|
49360
49473
|
};
|
|
49361
49474
|
|
|
49362
|
-
// node_modules/openai/lib/RunnableFunction.mjs
|
|
49475
|
+
// ../mcp-agents-memory/node_modules/openai/lib/RunnableFunction.mjs
|
|
49363
49476
|
function isRunnableFunctionWithParse(fn) {
|
|
49364
49477
|
return typeof fn.parse === "function";
|
|
49365
49478
|
}
|
|
49366
49479
|
|
|
49367
|
-
// node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
49480
|
+
// ../mcp-agents-memory/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
49368
49481
|
var _AbstractChatCompletionRunner_instances;
|
|
49369
49482
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
49370
49483
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -49634,7 +49747,7 @@ _AbstractChatCompletionRunner_instances = /* @__PURE__ */ new WeakSet(), _Abstra
|
|
|
49634
49747
|
return typeof rawContent === "string" ? rawContent : rawContent === void 0 ? "undefined" : JSON.stringify(rawContent);
|
|
49635
49748
|
};
|
|
49636
49749
|
|
|
49637
|
-
// node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
49750
|
+
// ../mcp-agents-memory/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
49638
49751
|
var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
49639
49752
|
static runTools(client2, params, options) {
|
|
49640
49753
|
const runner = new _ChatCompletionRunner();
|
|
@@ -49653,7 +49766,7 @@ var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompl
|
|
|
49653
49766
|
}
|
|
49654
49767
|
};
|
|
49655
49768
|
|
|
49656
|
-
// node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
49769
|
+
// ../mcp-agents-memory/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
49657
49770
|
var STR = 1;
|
|
49658
49771
|
var NUM = 2;
|
|
49659
49772
|
var ARR = 4;
|
|
@@ -49865,7 +49978,7 @@ var _parseJSON = (jsonString, allow) => {
|
|
|
49865
49978
|
};
|
|
49866
49979
|
var partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM);
|
|
49867
49980
|
|
|
49868
|
-
// node_modules/openai/lib/ChatCompletionStream.mjs
|
|
49981
|
+
// ../mcp-agents-memory/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
49869
49982
|
var _ChatCompletionStream_instances;
|
|
49870
49983
|
var _ChatCompletionStream_params;
|
|
49871
49984
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -50345,7 +50458,7 @@ function assertIsEmpty(obj) {
|
|
|
50345
50458
|
function assertNever2(_x) {
|
|
50346
50459
|
}
|
|
50347
50460
|
|
|
50348
|
-
// node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
50461
|
+
// ../mcp-agents-memory/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
50349
50462
|
var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
50350
50463
|
static fromReadableStream(stream) {
|
|
50351
50464
|
const runner = new _ChatCompletionStreamingRunner(null);
|
|
@@ -50366,7 +50479,7 @@ var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends
|
|
|
50366
50479
|
}
|
|
50367
50480
|
};
|
|
50368
50481
|
|
|
50369
|
-
// node_modules/openai/resources/chat/completions/completions.mjs
|
|
50482
|
+
// ../mcp-agents-memory/node_modules/openai/resources/chat/completions/completions.mjs
|
|
50370
50483
|
var Completions = class extends APIResource {
|
|
50371
50484
|
constructor() {
|
|
50372
50485
|
super(...arguments);
|
|
@@ -50457,7 +50570,7 @@ var Completions = class extends APIResource {
|
|
|
50457
50570
|
};
|
|
50458
50571
|
Completions.Messages = Messages;
|
|
50459
50572
|
|
|
50460
|
-
// node_modules/openai/resources/chat/chat.mjs
|
|
50573
|
+
// ../mcp-agents-memory/node_modules/openai/resources/chat/chat.mjs
|
|
50461
50574
|
var Chat = class extends APIResource {
|
|
50462
50575
|
constructor() {
|
|
50463
50576
|
super(...arguments);
|
|
@@ -50466,7 +50579,7 @@ var Chat = class extends APIResource {
|
|
|
50466
50579
|
};
|
|
50467
50580
|
Chat.Completions = Completions;
|
|
50468
50581
|
|
|
50469
|
-
// node_modules/openai/internal/headers.mjs
|
|
50582
|
+
// ../mcp-agents-memory/node_modules/openai/internal/headers.mjs
|
|
50470
50583
|
var brand_privateNullableHeaders = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
50471
50584
|
function* iterateHeaders(headers) {
|
|
50472
50585
|
if (!headers)
|
|
@@ -50529,7 +50642,7 @@ var buildHeaders = (newHeaders) => {
|
|
|
50529
50642
|
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
50530
50643
|
};
|
|
50531
50644
|
|
|
50532
|
-
// node_modules/openai/resources/audio/speech.mjs
|
|
50645
|
+
// ../mcp-agents-memory/node_modules/openai/resources/audio/speech.mjs
|
|
50533
50646
|
var Speech = class extends APIResource {
|
|
50534
50647
|
/**
|
|
50535
50648
|
* Generates audio from the input text.
|
|
@@ -50558,7 +50671,7 @@ var Speech = class extends APIResource {
|
|
|
50558
50671
|
}
|
|
50559
50672
|
};
|
|
50560
50673
|
|
|
50561
|
-
// node_modules/openai/resources/audio/transcriptions.mjs
|
|
50674
|
+
// ../mcp-agents-memory/node_modules/openai/resources/audio/transcriptions.mjs
|
|
50562
50675
|
var Transcriptions = class extends APIResource {
|
|
50563
50676
|
create(body, options) {
|
|
50564
50677
|
return this._client.post("/audio/transcriptions", multipartFormRequestOptions({
|
|
@@ -50570,14 +50683,14 @@ var Transcriptions = class extends APIResource {
|
|
|
50570
50683
|
}
|
|
50571
50684
|
};
|
|
50572
50685
|
|
|
50573
|
-
// node_modules/openai/resources/audio/translations.mjs
|
|
50686
|
+
// ../mcp-agents-memory/node_modules/openai/resources/audio/translations.mjs
|
|
50574
50687
|
var Translations = class extends APIResource {
|
|
50575
50688
|
create(body, options) {
|
|
50576
50689
|
return this._client.post("/audio/translations", multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model } }, this._client));
|
|
50577
50690
|
}
|
|
50578
50691
|
};
|
|
50579
50692
|
|
|
50580
|
-
// node_modules/openai/resources/audio/audio.mjs
|
|
50693
|
+
// ../mcp-agents-memory/node_modules/openai/resources/audio/audio.mjs
|
|
50581
50694
|
var Audio = class extends APIResource {
|
|
50582
50695
|
constructor() {
|
|
50583
50696
|
super(...arguments);
|
|
@@ -50590,7 +50703,7 @@ Audio.Transcriptions = Transcriptions;
|
|
|
50590
50703
|
Audio.Translations = Translations;
|
|
50591
50704
|
Audio.Speech = Speech;
|
|
50592
50705
|
|
|
50593
|
-
// node_modules/openai/resources/batches.mjs
|
|
50706
|
+
// ../mcp-agents-memory/node_modules/openai/resources/batches.mjs
|
|
50594
50707
|
var Batches = class extends APIResource {
|
|
50595
50708
|
/**
|
|
50596
50709
|
* Creates and executes a batch from an uploaded file of requests
|
|
@@ -50620,7 +50733,7 @@ var Batches = class extends APIResource {
|
|
|
50620
50733
|
}
|
|
50621
50734
|
};
|
|
50622
50735
|
|
|
50623
|
-
// node_modules/openai/resources/beta/assistants.mjs
|
|
50736
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/assistants.mjs
|
|
50624
50737
|
var Assistants = class extends APIResource {
|
|
50625
50738
|
/**
|
|
50626
50739
|
* Create an assistant with a model and instructions.
|
|
@@ -50682,7 +50795,7 @@ var Assistants = class extends APIResource {
|
|
|
50682
50795
|
}
|
|
50683
50796
|
};
|
|
50684
50797
|
|
|
50685
|
-
// node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
50798
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
50686
50799
|
var Sessions = class extends APIResource {
|
|
50687
50800
|
/**
|
|
50688
50801
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -50708,7 +50821,7 @@ var Sessions = class extends APIResource {
|
|
|
50708
50821
|
}
|
|
50709
50822
|
};
|
|
50710
50823
|
|
|
50711
|
-
// node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
50824
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
50712
50825
|
var TranscriptionSessions = class extends APIResource {
|
|
50713
50826
|
/**
|
|
50714
50827
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -50734,7 +50847,7 @@ var TranscriptionSessions = class extends APIResource {
|
|
|
50734
50847
|
}
|
|
50735
50848
|
};
|
|
50736
50849
|
|
|
50737
|
-
// node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
50850
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
50738
50851
|
var Realtime = class extends APIResource {
|
|
50739
50852
|
constructor() {
|
|
50740
50853
|
super(...arguments);
|
|
@@ -50745,7 +50858,7 @@ var Realtime = class extends APIResource {
|
|
|
50745
50858
|
Realtime.Sessions = Sessions;
|
|
50746
50859
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
50747
50860
|
|
|
50748
|
-
// node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
50861
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
50749
50862
|
var Sessions2 = class extends APIResource {
|
|
50750
50863
|
/**
|
|
50751
50864
|
* Create a ChatKit session.
|
|
@@ -50785,7 +50898,7 @@ var Sessions2 = class extends APIResource {
|
|
|
50785
50898
|
}
|
|
50786
50899
|
};
|
|
50787
50900
|
|
|
50788
|
-
// node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
50901
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
50789
50902
|
var Threads = class extends APIResource {
|
|
50790
50903
|
/**
|
|
50791
50904
|
* Retrieve a ChatKit thread by its identifier.
|
|
@@ -50854,7 +50967,7 @@ var Threads = class extends APIResource {
|
|
|
50854
50967
|
}
|
|
50855
50968
|
};
|
|
50856
50969
|
|
|
50857
|
-
// node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
50970
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
50858
50971
|
var ChatKit = class extends APIResource {
|
|
50859
50972
|
constructor() {
|
|
50860
50973
|
super(...arguments);
|
|
@@ -50865,7 +50978,7 @@ var ChatKit = class extends APIResource {
|
|
|
50865
50978
|
ChatKit.Sessions = Sessions2;
|
|
50866
50979
|
ChatKit.Threads = Threads;
|
|
50867
50980
|
|
|
50868
|
-
// node_modules/openai/resources/beta/threads/messages.mjs
|
|
50981
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/threads/messages.mjs
|
|
50869
50982
|
var Messages2 = class extends APIResource {
|
|
50870
50983
|
/**
|
|
50871
50984
|
* Create a message.
|
|
@@ -50930,7 +51043,7 @@ var Messages2 = class extends APIResource {
|
|
|
50930
51043
|
}
|
|
50931
51044
|
};
|
|
50932
51045
|
|
|
50933
|
-
// node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
51046
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
50934
51047
|
var Steps = class extends APIResource {
|
|
50935
51048
|
/**
|
|
50936
51049
|
* Retrieves a run step.
|
|
@@ -50960,7 +51073,7 @@ var Steps = class extends APIResource {
|
|
|
50960
51073
|
}
|
|
50961
51074
|
};
|
|
50962
51075
|
|
|
50963
|
-
// node_modules/openai/internal/utils/base64.mjs
|
|
51076
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/base64.mjs
|
|
50964
51077
|
var toFloat32Array = (base64Str) => {
|
|
50965
51078
|
if (typeof Buffer !== "undefined") {
|
|
50966
51079
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -50976,7 +51089,7 @@ var toFloat32Array = (base64Str) => {
|
|
|
50976
51089
|
}
|
|
50977
51090
|
};
|
|
50978
51091
|
|
|
50979
|
-
// node_modules/openai/internal/utils/env.mjs
|
|
51092
|
+
// ../mcp-agents-memory/node_modules/openai/internal/utils/env.mjs
|
|
50980
51093
|
var readEnv = (env) => {
|
|
50981
51094
|
if (typeof globalThis.process !== "undefined") {
|
|
50982
51095
|
return globalThis.process.env?.[env]?.trim() ?? void 0;
|
|
@@ -50987,7 +51100,7 @@ var readEnv = (env) => {
|
|
|
50987
51100
|
return void 0;
|
|
50988
51101
|
};
|
|
50989
51102
|
|
|
50990
|
-
// node_modules/openai/lib/AssistantStream.mjs
|
|
51103
|
+
// ../mcp-agents-memory/node_modules/openai/lib/AssistantStream.mjs
|
|
50991
51104
|
var _AssistantStream_instances;
|
|
50992
51105
|
var _a;
|
|
50993
51106
|
var _AssistantStream_events;
|
|
@@ -51526,7 +51639,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
51526
51639
|
function assertNever3(_x) {
|
|
51527
51640
|
}
|
|
51528
51641
|
|
|
51529
|
-
// node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
51642
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
51530
51643
|
var Runs = class extends APIResource {
|
|
51531
51644
|
constructor() {
|
|
51532
51645
|
super(...arguments);
|
|
@@ -51693,7 +51806,7 @@ var Runs = class extends APIResource {
|
|
|
51693
51806
|
};
|
|
51694
51807
|
Runs.Steps = Steps;
|
|
51695
51808
|
|
|
51696
|
-
// node_modules/openai/resources/beta/threads/threads.mjs
|
|
51809
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/threads/threads.mjs
|
|
51697
51810
|
var Threads2 = class extends APIResource {
|
|
51698
51811
|
constructor() {
|
|
51699
51812
|
super(...arguments);
|
|
@@ -51774,7 +51887,7 @@ var Threads2 = class extends APIResource {
|
|
|
51774
51887
|
Threads2.Runs = Runs;
|
|
51775
51888
|
Threads2.Messages = Messages2;
|
|
51776
51889
|
|
|
51777
|
-
// node_modules/openai/resources/beta/beta.mjs
|
|
51890
|
+
// ../mcp-agents-memory/node_modules/openai/resources/beta/beta.mjs
|
|
51778
51891
|
var Beta = class extends APIResource {
|
|
51779
51892
|
constructor() {
|
|
51780
51893
|
super(...arguments);
|
|
@@ -51789,14 +51902,14 @@ Beta.ChatKit = ChatKit;
|
|
|
51789
51902
|
Beta.Assistants = Assistants;
|
|
51790
51903
|
Beta.Threads = Threads2;
|
|
51791
51904
|
|
|
51792
|
-
// node_modules/openai/resources/completions.mjs
|
|
51905
|
+
// ../mcp-agents-memory/node_modules/openai/resources/completions.mjs
|
|
51793
51906
|
var Completions2 = class extends APIResource {
|
|
51794
51907
|
create(body, options) {
|
|
51795
51908
|
return this._client.post("/completions", { body, ...options, stream: body.stream ?? false });
|
|
51796
51909
|
}
|
|
51797
51910
|
};
|
|
51798
51911
|
|
|
51799
|
-
// node_modules/openai/resources/containers/files/content.mjs
|
|
51912
|
+
// ../mcp-agents-memory/node_modules/openai/resources/containers/files/content.mjs
|
|
51800
51913
|
var Content = class extends APIResource {
|
|
51801
51914
|
/**
|
|
51802
51915
|
* Retrieve Container File Content
|
|
@@ -51811,7 +51924,7 @@ var Content = class extends APIResource {
|
|
|
51811
51924
|
}
|
|
51812
51925
|
};
|
|
51813
51926
|
|
|
51814
|
-
// node_modules/openai/resources/containers/files/files.mjs
|
|
51927
|
+
// ../mcp-agents-memory/node_modules/openai/resources/containers/files/files.mjs
|
|
51815
51928
|
var Files = class extends APIResource {
|
|
51816
51929
|
constructor() {
|
|
51817
51930
|
super(...arguments);
|
|
@@ -51855,7 +51968,7 @@ var Files = class extends APIResource {
|
|
|
51855
51968
|
};
|
|
51856
51969
|
Files.Content = Content;
|
|
51857
51970
|
|
|
51858
|
-
// node_modules/openai/resources/containers/containers.mjs
|
|
51971
|
+
// ../mcp-agents-memory/node_modules/openai/resources/containers/containers.mjs
|
|
51859
51972
|
var Containers = class extends APIResource {
|
|
51860
51973
|
constructor() {
|
|
51861
51974
|
super(...arguments);
|
|
@@ -51891,7 +52004,7 @@ var Containers = class extends APIResource {
|
|
|
51891
52004
|
};
|
|
51892
52005
|
Containers.Files = Files;
|
|
51893
52006
|
|
|
51894
|
-
// node_modules/openai/resources/conversations/items.mjs
|
|
52007
|
+
// ../mcp-agents-memory/node_modules/openai/resources/conversations/items.mjs
|
|
51895
52008
|
var Items = class extends APIResource {
|
|
51896
52009
|
/**
|
|
51897
52010
|
* Create items in a conversation with the given ID.
|
|
@@ -51926,7 +52039,7 @@ var Items = class extends APIResource {
|
|
|
51926
52039
|
}
|
|
51927
52040
|
};
|
|
51928
52041
|
|
|
51929
|
-
// node_modules/openai/resources/conversations/conversations.mjs
|
|
52042
|
+
// ../mcp-agents-memory/node_modules/openai/resources/conversations/conversations.mjs
|
|
51930
52043
|
var Conversations = class extends APIResource {
|
|
51931
52044
|
constructor() {
|
|
51932
52045
|
super(...arguments);
|
|
@@ -51959,7 +52072,7 @@ var Conversations = class extends APIResource {
|
|
|
51959
52072
|
};
|
|
51960
52073
|
Conversations.Items = Items;
|
|
51961
52074
|
|
|
51962
|
-
// node_modules/openai/resources/embeddings.mjs
|
|
52075
|
+
// ../mcp-agents-memory/node_modules/openai/resources/embeddings.mjs
|
|
51963
52076
|
var Embeddings = class extends APIResource {
|
|
51964
52077
|
/**
|
|
51965
52078
|
* Creates an embedding vector representing the input text.
|
|
@@ -52002,7 +52115,7 @@ var Embeddings = class extends APIResource {
|
|
|
52002
52115
|
}
|
|
52003
52116
|
};
|
|
52004
52117
|
|
|
52005
|
-
// node_modules/openai/resources/evals/runs/output-items.mjs
|
|
52118
|
+
// ../mcp-agents-memory/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
52006
52119
|
var OutputItems = class extends APIResource {
|
|
52007
52120
|
/**
|
|
52008
52121
|
* Get an evaluation run output item by ID.
|
|
@@ -52020,7 +52133,7 @@ var OutputItems = class extends APIResource {
|
|
|
52020
52133
|
}
|
|
52021
52134
|
};
|
|
52022
52135
|
|
|
52023
|
-
// node_modules/openai/resources/evals/runs/runs.mjs
|
|
52136
|
+
// ../mcp-agents-memory/node_modules/openai/resources/evals/runs/runs.mjs
|
|
52024
52137
|
var Runs2 = class extends APIResource {
|
|
52025
52138
|
constructor() {
|
|
52026
52139
|
super(...arguments);
|
|
@@ -52067,7 +52180,7 @@ var Runs2 = class extends APIResource {
|
|
|
52067
52180
|
};
|
|
52068
52181
|
Runs2.OutputItems = OutputItems;
|
|
52069
52182
|
|
|
52070
|
-
// node_modules/openai/resources/evals/evals.mjs
|
|
52183
|
+
// ../mcp-agents-memory/node_modules/openai/resources/evals/evals.mjs
|
|
52071
52184
|
var Evals = class extends APIResource {
|
|
52072
52185
|
constructor() {
|
|
52073
52186
|
super(...arguments);
|
|
@@ -52111,7 +52224,7 @@ var Evals = class extends APIResource {
|
|
|
52111
52224
|
};
|
|
52112
52225
|
Evals.Runs = Runs2;
|
|
52113
52226
|
|
|
52114
|
-
// node_modules/openai/resources/files.mjs
|
|
52227
|
+
// ../mcp-agents-memory/node_modules/openai/resources/files.mjs
|
|
52115
52228
|
var Files2 = class extends APIResource {
|
|
52116
52229
|
/**
|
|
52117
52230
|
* Upload a file that can be used across various endpoints. Individual files can be
|
|
@@ -52186,11 +52299,11 @@ var Files2 = class extends APIResource {
|
|
|
52186
52299
|
}
|
|
52187
52300
|
};
|
|
52188
52301
|
|
|
52189
|
-
// node_modules/openai/resources/fine-tuning/methods.mjs
|
|
52302
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
52190
52303
|
var Methods = class extends APIResource {
|
|
52191
52304
|
};
|
|
52192
52305
|
|
|
52193
|
-
// node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
52306
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
52194
52307
|
var Graders = class extends APIResource {
|
|
52195
52308
|
/**
|
|
52196
52309
|
* Run a grader.
|
|
@@ -52234,7 +52347,7 @@ var Graders = class extends APIResource {
|
|
|
52234
52347
|
}
|
|
52235
52348
|
};
|
|
52236
52349
|
|
|
52237
|
-
// node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
52350
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
52238
52351
|
var Alpha = class extends APIResource {
|
|
52239
52352
|
constructor() {
|
|
52240
52353
|
super(...arguments);
|
|
@@ -52243,7 +52356,7 @@ var Alpha = class extends APIResource {
|
|
|
52243
52356
|
};
|
|
52244
52357
|
Alpha.Graders = Graders;
|
|
52245
52358
|
|
|
52246
|
-
// node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
52359
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
52247
52360
|
var Permissions = class extends APIResource {
|
|
52248
52361
|
/**
|
|
52249
52362
|
* **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
|
|
@@ -52322,7 +52435,7 @@ var Permissions = class extends APIResource {
|
|
|
52322
52435
|
}
|
|
52323
52436
|
};
|
|
52324
52437
|
|
|
52325
|
-
// node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
52438
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
52326
52439
|
var Checkpoints = class extends APIResource {
|
|
52327
52440
|
constructor() {
|
|
52328
52441
|
super(...arguments);
|
|
@@ -52331,7 +52444,7 @@ var Checkpoints = class extends APIResource {
|
|
|
52331
52444
|
};
|
|
52332
52445
|
Checkpoints.Permissions = Permissions;
|
|
52333
52446
|
|
|
52334
|
-
// node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
52447
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
52335
52448
|
var Checkpoints2 = class extends APIResource {
|
|
52336
52449
|
/**
|
|
52337
52450
|
* List checkpoints for a fine-tuning job.
|
|
@@ -52351,7 +52464,7 @@ var Checkpoints2 = class extends APIResource {
|
|
|
52351
52464
|
}
|
|
52352
52465
|
};
|
|
52353
52466
|
|
|
52354
|
-
// node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
52467
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
52355
52468
|
var Jobs = class extends APIResource {
|
|
52356
52469
|
constructor() {
|
|
52357
52470
|
super(...arguments);
|
|
@@ -52464,7 +52577,7 @@ var Jobs = class extends APIResource {
|
|
|
52464
52577
|
};
|
|
52465
52578
|
Jobs.Checkpoints = Checkpoints2;
|
|
52466
52579
|
|
|
52467
|
-
// node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
52580
|
+
// ../mcp-agents-memory/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
52468
52581
|
var FineTuning = class extends APIResource {
|
|
52469
52582
|
constructor() {
|
|
52470
52583
|
super(...arguments);
|
|
@@ -52479,11 +52592,11 @@ FineTuning.Jobs = Jobs;
|
|
|
52479
52592
|
FineTuning.Checkpoints = Checkpoints;
|
|
52480
52593
|
FineTuning.Alpha = Alpha;
|
|
52481
52594
|
|
|
52482
|
-
// node_modules/openai/resources/graders/grader-models.mjs
|
|
52595
|
+
// ../mcp-agents-memory/node_modules/openai/resources/graders/grader-models.mjs
|
|
52483
52596
|
var GraderModels = class extends APIResource {
|
|
52484
52597
|
};
|
|
52485
52598
|
|
|
52486
|
-
// node_modules/openai/resources/graders/graders.mjs
|
|
52599
|
+
// ../mcp-agents-memory/node_modules/openai/resources/graders/graders.mjs
|
|
52487
52600
|
var Graders2 = class extends APIResource {
|
|
52488
52601
|
constructor() {
|
|
52489
52602
|
super(...arguments);
|
|
@@ -52492,7 +52605,7 @@ var Graders2 = class extends APIResource {
|
|
|
52492
52605
|
};
|
|
52493
52606
|
Graders2.GraderModels = GraderModels;
|
|
52494
52607
|
|
|
52495
|
-
// node_modules/openai/resources/images.mjs
|
|
52608
|
+
// ../mcp-agents-memory/node_modules/openai/resources/images.mjs
|
|
52496
52609
|
var Images = class extends APIResource {
|
|
52497
52610
|
/**
|
|
52498
52611
|
* Creates a variation of a given image. This endpoint only supports `dall-e-2`.
|
|
@@ -52515,7 +52628,7 @@ var Images = class extends APIResource {
|
|
|
52515
52628
|
}
|
|
52516
52629
|
};
|
|
52517
52630
|
|
|
52518
|
-
// node_modules/openai/resources/models.mjs
|
|
52631
|
+
// ../mcp-agents-memory/node_modules/openai/resources/models.mjs
|
|
52519
52632
|
var Models = class extends APIResource {
|
|
52520
52633
|
/**
|
|
52521
52634
|
* Retrieves a model instance, providing basic information about the model such as
|
|
@@ -52540,7 +52653,7 @@ var Models = class extends APIResource {
|
|
|
52540
52653
|
}
|
|
52541
52654
|
};
|
|
52542
52655
|
|
|
52543
|
-
// node_modules/openai/resources/moderations.mjs
|
|
52656
|
+
// ../mcp-agents-memory/node_modules/openai/resources/moderations.mjs
|
|
52544
52657
|
var Moderations = class extends APIResource {
|
|
52545
52658
|
/**
|
|
52546
52659
|
* Classifies if text and/or image inputs are potentially harmful. Learn more in
|
|
@@ -52551,7 +52664,7 @@ var Moderations = class extends APIResource {
|
|
|
52551
52664
|
}
|
|
52552
52665
|
};
|
|
52553
52666
|
|
|
52554
|
-
// node_modules/openai/resources/realtime/calls.mjs
|
|
52667
|
+
// ../mcp-agents-memory/node_modules/openai/resources/realtime/calls.mjs
|
|
52555
52668
|
var Calls = class extends APIResource {
|
|
52556
52669
|
/**
|
|
52557
52670
|
* Accept an incoming SIP call and configure the realtime session that will handle
|
|
@@ -52619,7 +52732,7 @@ var Calls = class extends APIResource {
|
|
|
52619
52732
|
}
|
|
52620
52733
|
};
|
|
52621
52734
|
|
|
52622
|
-
// node_modules/openai/resources/realtime/client-secrets.mjs
|
|
52735
|
+
// ../mcp-agents-memory/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
52623
52736
|
var ClientSecrets = class extends APIResource {
|
|
52624
52737
|
/**
|
|
52625
52738
|
* Create a Realtime client secret with an associated session configuration.
|
|
@@ -52649,7 +52762,7 @@ var ClientSecrets = class extends APIResource {
|
|
|
52649
52762
|
}
|
|
52650
52763
|
};
|
|
52651
52764
|
|
|
52652
|
-
// node_modules/openai/resources/realtime/realtime.mjs
|
|
52765
|
+
// ../mcp-agents-memory/node_modules/openai/resources/realtime/realtime.mjs
|
|
52653
52766
|
var Realtime2 = class extends APIResource {
|
|
52654
52767
|
constructor() {
|
|
52655
52768
|
super(...arguments);
|
|
@@ -52660,7 +52773,7 @@ var Realtime2 = class extends APIResource {
|
|
|
52660
52773
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
52661
52774
|
Realtime2.Calls = Calls;
|
|
52662
52775
|
|
|
52663
|
-
// node_modules/openai/lib/ResponsesParser.mjs
|
|
52776
|
+
// ../mcp-agents-memory/node_modules/openai/lib/ResponsesParser.mjs
|
|
52664
52777
|
function maybeParseResponse(response, params) {
|
|
52665
52778
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
52666
52779
|
return {
|
|
@@ -52781,7 +52894,7 @@ function addOutputText(rsp) {
|
|
|
52781
52894
|
rsp.output_text = texts.join("");
|
|
52782
52895
|
}
|
|
52783
52896
|
|
|
52784
|
-
// node_modules/openai/lib/responses/ResponseStream.mjs
|
|
52897
|
+
// ../mcp-agents-memory/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
52785
52898
|
var _ResponseStream_instances;
|
|
52786
52899
|
var _ResponseStream_params;
|
|
52787
52900
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -53043,7 +53156,7 @@ function finalizeResponse(snapshot, params) {
|
|
|
53043
53156
|
return maybeParseResponse(snapshot, params);
|
|
53044
53157
|
}
|
|
53045
53158
|
|
|
53046
|
-
// node_modules/openai/resources/responses/input-items.mjs
|
|
53159
|
+
// ../mcp-agents-memory/node_modules/openai/resources/responses/input-items.mjs
|
|
53047
53160
|
var InputItems = class extends APIResource {
|
|
53048
53161
|
/**
|
|
53049
53162
|
* Returns a list of input items for a given response.
|
|
@@ -53063,7 +53176,7 @@ var InputItems = class extends APIResource {
|
|
|
53063
53176
|
}
|
|
53064
53177
|
};
|
|
53065
53178
|
|
|
53066
|
-
// node_modules/openai/resources/responses/input-tokens.mjs
|
|
53179
|
+
// ../mcp-agents-memory/node_modules/openai/resources/responses/input-tokens.mjs
|
|
53067
53180
|
var InputTokens = class extends APIResource {
|
|
53068
53181
|
/**
|
|
53069
53182
|
* Returns input token counts of the request.
|
|
@@ -53081,7 +53194,7 @@ var InputTokens = class extends APIResource {
|
|
|
53081
53194
|
}
|
|
53082
53195
|
};
|
|
53083
53196
|
|
|
53084
|
-
// node_modules/openai/resources/responses/responses.mjs
|
|
53197
|
+
// ../mcp-agents-memory/node_modules/openai/resources/responses/responses.mjs
|
|
53085
53198
|
var Responses = class extends APIResource {
|
|
53086
53199
|
constructor() {
|
|
53087
53200
|
super(...arguments);
|
|
@@ -53170,7 +53283,7 @@ var Responses = class extends APIResource {
|
|
|
53170
53283
|
Responses.InputItems = InputItems;
|
|
53171
53284
|
Responses.InputTokens = InputTokens;
|
|
53172
53285
|
|
|
53173
|
-
// node_modules/openai/resources/skills/content.mjs
|
|
53286
|
+
// ../mcp-agents-memory/node_modules/openai/resources/skills/content.mjs
|
|
53174
53287
|
var Content2 = class extends APIResource {
|
|
53175
53288
|
/**
|
|
53176
53289
|
* Download a skill zip bundle by its ID.
|
|
@@ -53184,7 +53297,7 @@ var Content2 = class extends APIResource {
|
|
|
53184
53297
|
}
|
|
53185
53298
|
};
|
|
53186
53299
|
|
|
53187
|
-
// node_modules/openai/resources/skills/versions/content.mjs
|
|
53300
|
+
// ../mcp-agents-memory/node_modules/openai/resources/skills/versions/content.mjs
|
|
53188
53301
|
var Content3 = class extends APIResource {
|
|
53189
53302
|
/**
|
|
53190
53303
|
* Download a skill version zip bundle.
|
|
@@ -53199,7 +53312,7 @@ var Content3 = class extends APIResource {
|
|
|
53199
53312
|
}
|
|
53200
53313
|
};
|
|
53201
53314
|
|
|
53202
|
-
// node_modules/openai/resources/skills/versions/versions.mjs
|
|
53315
|
+
// ../mcp-agents-memory/node_modules/openai/resources/skills/versions/versions.mjs
|
|
53203
53316
|
var Versions = class extends APIResource {
|
|
53204
53317
|
constructor() {
|
|
53205
53318
|
super(...arguments);
|
|
@@ -53237,7 +53350,7 @@ var Versions = class extends APIResource {
|
|
|
53237
53350
|
};
|
|
53238
53351
|
Versions.Content = Content3;
|
|
53239
53352
|
|
|
53240
|
-
// node_modules/openai/resources/skills/skills.mjs
|
|
53353
|
+
// ../mcp-agents-memory/node_modules/openai/resources/skills/skills.mjs
|
|
53241
53354
|
var Skills = class extends APIResource {
|
|
53242
53355
|
constructor() {
|
|
53243
53356
|
super(...arguments);
|
|
@@ -53278,7 +53391,7 @@ var Skills = class extends APIResource {
|
|
|
53278
53391
|
Skills.Content = Content2;
|
|
53279
53392
|
Skills.Versions = Versions;
|
|
53280
53393
|
|
|
53281
|
-
// node_modules/openai/resources/uploads/parts.mjs
|
|
53394
|
+
// ../mcp-agents-memory/node_modules/openai/resources/uploads/parts.mjs
|
|
53282
53395
|
var Parts = class extends APIResource {
|
|
53283
53396
|
/**
|
|
53284
53397
|
* Adds a
|
|
@@ -53298,7 +53411,7 @@ var Parts = class extends APIResource {
|
|
|
53298
53411
|
}
|
|
53299
53412
|
};
|
|
53300
53413
|
|
|
53301
|
-
// node_modules/openai/resources/uploads/uploads.mjs
|
|
53414
|
+
// ../mcp-agents-memory/node_modules/openai/resources/uploads/uploads.mjs
|
|
53302
53415
|
var Uploads = class extends APIResource {
|
|
53303
53416
|
constructor() {
|
|
53304
53417
|
super(...arguments);
|
|
@@ -53361,7 +53474,7 @@ var Uploads = class extends APIResource {
|
|
|
53361
53474
|
};
|
|
53362
53475
|
Uploads.Parts = Parts;
|
|
53363
53476
|
|
|
53364
|
-
// node_modules/openai/lib/Util.mjs
|
|
53477
|
+
// ../mcp-agents-memory/node_modules/openai/lib/Util.mjs
|
|
53365
53478
|
var allSettledWithThrow = async (promises) => {
|
|
53366
53479
|
const results = await Promise.allSettled(promises);
|
|
53367
53480
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -53380,7 +53493,7 @@ var allSettledWithThrow = async (promises) => {
|
|
|
53380
53493
|
return values;
|
|
53381
53494
|
};
|
|
53382
53495
|
|
|
53383
|
-
// node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
53496
|
+
// ../mcp-agents-memory/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
53384
53497
|
var FileBatches = class extends APIResource {
|
|
53385
53498
|
/**
|
|
53386
53499
|
* Create a vector store file batch.
|
|
@@ -53497,7 +53610,7 @@ var FileBatches = class extends APIResource {
|
|
|
53497
53610
|
}
|
|
53498
53611
|
};
|
|
53499
53612
|
|
|
53500
|
-
// node_modules/openai/resources/vector-stores/files.mjs
|
|
53613
|
+
// ../mcp-agents-memory/node_modules/openai/resources/vector-stores/files.mjs
|
|
53501
53614
|
var Files3 = class extends APIResource {
|
|
53502
53615
|
/**
|
|
53503
53616
|
* Create a vector store file by attaching a
|
|
@@ -53629,7 +53742,7 @@ var Files3 = class extends APIResource {
|
|
|
53629
53742
|
}
|
|
53630
53743
|
};
|
|
53631
53744
|
|
|
53632
|
-
// node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
53745
|
+
// ../mcp-agents-memory/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
53633
53746
|
var VectorStores = class extends APIResource {
|
|
53634
53747
|
constructor() {
|
|
53635
53748
|
super(...arguments);
|
|
@@ -53700,7 +53813,7 @@ var VectorStores = class extends APIResource {
|
|
|
53700
53813
|
VectorStores.Files = Files3;
|
|
53701
53814
|
VectorStores.FileBatches = FileBatches;
|
|
53702
53815
|
|
|
53703
|
-
// node_modules/openai/resources/videos.mjs
|
|
53816
|
+
// ../mcp-agents-memory/node_modules/openai/resources/videos.mjs
|
|
53704
53817
|
var Videos = class extends APIResource {
|
|
53705
53818
|
/**
|
|
53706
53819
|
* Create a new video generation job from a prompt and optional reference assets.
|
|
@@ -53772,7 +53885,7 @@ var Videos = class extends APIResource {
|
|
|
53772
53885
|
}
|
|
53773
53886
|
};
|
|
53774
53887
|
|
|
53775
|
-
// node_modules/openai/resources/webhooks/webhooks.mjs
|
|
53888
|
+
// ../mcp-agents-memory/node_modules/openai/resources/webhooks/webhooks.mjs
|
|
53776
53889
|
var _Webhooks_instances;
|
|
53777
53890
|
var _Webhooks_validateSecret;
|
|
53778
53891
|
var _Webhooks_getRequiredHeader;
|
|
@@ -53851,7 +53964,7 @@ _Webhooks_instances = /* @__PURE__ */ new WeakSet(), _Webhooks_validateSecret =
|
|
|
53851
53964
|
return value;
|
|
53852
53965
|
};
|
|
53853
53966
|
|
|
53854
|
-
// node_modules/openai/client.mjs
|
|
53967
|
+
// ../mcp-agents-memory/node_modules/openai/client.mjs
|
|
53855
53968
|
var _OpenAI_instances;
|
|
53856
53969
|
var _a2;
|
|
53857
53970
|
var _OpenAI_encoder;
|
|
@@ -54387,7 +54500,7 @@ OpenAI.Containers = Containers;
|
|
|
54387
54500
|
OpenAI.Skills = Skills;
|
|
54388
54501
|
OpenAI.Videos = Videos;
|
|
54389
54502
|
|
|
54390
|
-
// node_modules/@google/generative-ai/dist/index.mjs
|
|
54503
|
+
// ../mcp-agents-memory/node_modules/@google/generative-ai/dist/index.mjs
|
|
54391
54504
|
var SchemaType;
|
|
54392
54505
|
(function(SchemaType2) {
|
|
54393
54506
|
SchemaType2["STRING"] = "string";
|
|
@@ -55616,7 +55729,7 @@ async function generateEmbedding(text) {
|
|
|
55616
55729
|
init_db();
|
|
55617
55730
|
|
|
55618
55731
|
// src/cold_path/jev_judge.ts
|
|
55619
|
-
import
|
|
55732
|
+
import fs3 from "fs";
|
|
55620
55733
|
var API_URL = "https://api.typesafe.ai/v1/systemone";
|
|
55621
55734
|
var MODEL = "jev-latest";
|
|
55622
55735
|
var TYPESAFE_KEY_PATH = "/home/admin_3alab/.config/typesafe/api_key";
|
|
@@ -55642,7 +55755,7 @@ function loadJevApiKey() {
|
|
|
55642
55755
|
const fromEnv = process.env.TYPESAFE_API_KEY?.trim();
|
|
55643
55756
|
if (fromEnv) return fromEnv;
|
|
55644
55757
|
try {
|
|
55645
|
-
return
|
|
55758
|
+
return fs3.readFileSync(TYPESAFE_KEY_PATH, "utf8").trim() || null;
|
|
55646
55759
|
} catch {
|
|
55647
55760
|
return null;
|
|
55648
55761
|
}
|
|
@@ -55976,7 +56089,7 @@ async function tagMessage(input) {
|
|
|
55976
56089
|
}
|
|
55977
56090
|
|
|
55978
56091
|
// src/auto_save/opencode_capture.ts
|
|
55979
|
-
import * as
|
|
56092
|
+
import * as fs4 from "node:fs";
|
|
55980
56093
|
import * as path4 from "node:path";
|
|
55981
56094
|
import * as os2 from "node:os";
|
|
55982
56095
|
var DEVICE_NAME = os2.hostname();
|
|
@@ -56172,7 +56285,7 @@ async function captureSessionStart(_cwd) {
|
|
|
56172
56285
|
_state = null;
|
|
56173
56286
|
_consecutiveFailures = 0;
|
|
56174
56287
|
const dbPath = resolveDbPath();
|
|
56175
|
-
if (!dbPath || !
|
|
56288
|
+
if (!dbPath || !fs4.existsSync(dbPath)) return;
|
|
56176
56289
|
const DatabaseSync = await loadSqlite();
|
|
56177
56290
|
if (!DatabaseSync) {
|
|
56178
56291
|
console.error(
|
|
@@ -56571,6 +56684,30 @@ function vectorToHalfvecSql(embedding) {
|
|
|
56571
56684
|
|
|
56572
56685
|
// src/tools/search_memory.ts
|
|
56573
56686
|
import os4 from "node:os";
|
|
56687
|
+
|
|
56688
|
+
// src/memory_columns.ts
|
|
56689
|
+
init_db();
|
|
56690
|
+
var cache2 = /* @__PURE__ */ new Map();
|
|
56691
|
+
async function hasMemoryColumn(column) {
|
|
56692
|
+
const c = cache2.get(column);
|
|
56693
|
+
if (c && (c.exists || Date.now() - c.checkedAt < 5 * 60 * 1e3)) return c.exists;
|
|
56694
|
+
let exists = false;
|
|
56695
|
+
try {
|
|
56696
|
+
const r = await db.query(
|
|
56697
|
+
// 쿼리가 search_path로 찾는 바로 그 memory 테이블 기준
|
|
56698
|
+
`SELECT 1 FROM pg_attribute
|
|
56699
|
+
WHERE attrelid = to_regclass('memory') AND attname = $1 AND NOT attisdropped LIMIT 1`,
|
|
56700
|
+
[column]
|
|
56701
|
+
);
|
|
56702
|
+
exists = r.rows.length > 0;
|
|
56703
|
+
} catch {
|
|
56704
|
+
exists = false;
|
|
56705
|
+
}
|
|
56706
|
+
cache2.set(column, { exists, checkedAt: Date.now() });
|
|
56707
|
+
return exists;
|
|
56708
|
+
}
|
|
56709
|
+
|
|
56710
|
+
// src/tools/search_memory.ts
|
|
56574
56711
|
var DEFAULT_LIMIT = 10;
|
|
56575
56712
|
var DEFAULT_FALLBACK_THRESHOLD = 0.3;
|
|
56576
56713
|
function parseDateRange(s) {
|
|
@@ -56645,7 +56782,10 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56645
56782
|
"\uAE30\uAE30 \uD55C\uC815. 'global'(\uAE30\uBCF8): \uC804 \uAE30\uAE30 \uAC80\uC0C9(\uB113\uAC8C). 'local': \uD604\uC7AC \uAE30\uAE30(hostname)\uB85C \uD55C\uC815(\uC774\uC5B4\uBC1B\uAE30\uC6A9, \uC881\uAC8C). zero-config \u2014 \uC11C\uBC84\uAC00 hostname \uC790\uB3D9 \uD574\uC11D."
|
|
56646
56783
|
),
|
|
56647
56784
|
limit: external_exports.number().int().min(1).max(50).optional().describe(`\uCD5C\uB300 \uACB0\uACFC \uC218 (default ${DEFAULT_LIMIT})`),
|
|
56648
|
-
include_archived: external_exports.boolean().optional().describe("archived \uBA54\uBAA8\uB9AC\uB3C4 \uD3EC\uD568 (default false)")
|
|
56785
|
+
include_archived: external_exports.boolean().optional().describe("archived \uBA54\uBAA8\uB9AC\uB3C4 \uD3EC\uD568 (default false)"),
|
|
56786
|
+
venue: external_exports.string().optional().describe(
|
|
56787
|
+
"\uB300\uD654\uAC00 \uC624\uAC04 \uC790\uB9AC\uB85C \uD55C\uC815. 'buzz'(\uBC84\uC988 \uC804\uCCB4) / 'buzz:<\uCC44\uB110>'(\uADF8 \uCC44\uB110, \uC608: buzz:DevRoom) / 'buzz:dm' / 'terminal'(\uC0AC\uB78C\uACFC 1:1) / 'slack' / 'auto'. \uACB0\uACFC\uB9C8\uB2E4 venue\uAC00 \uBD99\uC5B4 \uB098\uC628\uB2E4."
|
|
56788
|
+
)
|
|
56649
56789
|
}
|
|
56650
56790
|
},
|
|
56651
56791
|
async (args) => {
|
|
@@ -56698,6 +56838,13 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56698
56838
|
filters.push(`(m.device_name = $${p++} OR m.is_pinned = TRUE)`);
|
|
56699
56839
|
params.push(localDevice);
|
|
56700
56840
|
}
|
|
56841
|
+
const withVenue = await hasMemoryColumn("venue");
|
|
56842
|
+
const venueSel = withVenue ? ", m.venue" : "";
|
|
56843
|
+
const venueFilter = (n) => args.venue.includes(":") ? `lower(m.venue) = lower($${n})` : `(lower(m.venue) = lower($${n}) OR lower(m.venue) LIKE lower($${n}) || ':%')`;
|
|
56844
|
+
if (args.venue && withVenue) {
|
|
56845
|
+
filters.push(venueFilter(p++));
|
|
56846
|
+
params.push(args.venue);
|
|
56847
|
+
}
|
|
56701
56848
|
const whereSql = filters.join(" AND ");
|
|
56702
56849
|
let used = "recency";
|
|
56703
56850
|
let topSimilarity = void 0;
|
|
@@ -56712,7 +56859,7 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56712
56859
|
params.push(limit2);
|
|
56713
56860
|
const r = await db.query(
|
|
56714
56861
|
`SELECT m.id, m.role, m.message, m.agent_platform, m.agent_model, m.device_name,
|
|
56715
|
-
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at,
|
|
56862
|
+
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at${venueSel},
|
|
56716
56863
|
1 - (m.embedding <=> $${vecParam}::halfvec) AS similarity
|
|
56717
56864
|
FROM memory m
|
|
56718
56865
|
LEFT JOIN project_tags pt ON pt.id = canonical_project_tag_id(m.p_tag_id)
|
|
@@ -56733,6 +56880,7 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56733
56880
|
d_tag: row.d_tag ?? [],
|
|
56734
56881
|
is_pinned: row.is_pinned,
|
|
56735
56882
|
created_at: row.created_at,
|
|
56883
|
+
venue: row.venue ?? null,
|
|
56736
56884
|
similarity: Number(row.similarity)
|
|
56737
56885
|
}));
|
|
56738
56886
|
if (rows.length > 0) {
|
|
@@ -56768,12 +56916,16 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56768
56916
|
ilikeFilters.push(`(m.device_name = $${q++} OR m.is_pinned = TRUE)`);
|
|
56769
56917
|
ilikeParams.push(localDevice);
|
|
56770
56918
|
}
|
|
56919
|
+
if (args.venue && withVenue) {
|
|
56920
|
+
ilikeFilters.push(venueFilter(q++));
|
|
56921
|
+
ilikeParams.push(args.venue);
|
|
56922
|
+
}
|
|
56771
56923
|
ilikeFilters.push(`m.message ILIKE $${q++}`);
|
|
56772
56924
|
ilikeParams.push(`%${args.query}%`);
|
|
56773
56925
|
ilikeParams.push(limit2);
|
|
56774
56926
|
const r = await db.query(
|
|
56775
56927
|
`SELECT m.id, m.role, m.message, m.agent_platform, m.agent_model, m.device_name,
|
|
56776
|
-
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at
|
|
56928
|
+
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at${venueSel}
|
|
56777
56929
|
FROM memory m
|
|
56778
56930
|
LEFT JOIN project_tags pt ON pt.id = canonical_project_tag_id(m.p_tag_id)
|
|
56779
56931
|
WHERE ${ilikeFilters.join(" AND ")}
|
|
@@ -56792,7 +56944,8 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56792
56944
|
p_tag_name: row.p_tag_name,
|
|
56793
56945
|
d_tag: row.d_tag ?? [],
|
|
56794
56946
|
is_pinned: row.is_pinned,
|
|
56795
|
-
created_at: row.created_at
|
|
56947
|
+
created_at: row.created_at,
|
|
56948
|
+
venue: row.venue ?? null
|
|
56796
56949
|
}));
|
|
56797
56950
|
used = "ilike";
|
|
56798
56951
|
topSimilarity = void 0;
|
|
@@ -56802,7 +56955,7 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56802
56955
|
params.push(limit2);
|
|
56803
56956
|
const r = await db.query(
|
|
56804
56957
|
`SELECT m.id, m.role, m.message, m.agent_platform, m.agent_model, m.device_name,
|
|
56805
|
-
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at
|
|
56958
|
+
pt.name AS p_tag_name, m.d_tag, m.is_pinned, m.created_at${venueSel}
|
|
56806
56959
|
FROM memory m
|
|
56807
56960
|
LEFT JOIN project_tags pt ON pt.id = canonical_project_tag_id(m.p_tag_id)
|
|
56808
56961
|
WHERE ${whereSql}
|
|
@@ -56820,7 +56973,8 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56820
56973
|
p_tag_name: row.p_tag_name,
|
|
56821
56974
|
d_tag: row.d_tag ?? [],
|
|
56822
56975
|
is_pinned: row.is_pinned,
|
|
56823
|
-
created_at: row.created_at
|
|
56976
|
+
created_at: row.created_at,
|
|
56977
|
+
venue: row.venue ?? null
|
|
56824
56978
|
}));
|
|
56825
56979
|
used = "recency";
|
|
56826
56980
|
}
|
|
@@ -56832,6 +56986,7 @@ date_range \uC778\uC2DD \uD615\uC2DD:
|
|
|
56832
56986
|
threshold: used === "ilike" ? threshold : void 0,
|
|
56833
56987
|
top_similarity: topSimilarity,
|
|
56834
56988
|
count: rows.length,
|
|
56989
|
+
...args.venue && !withVenue ? { note: "\uC774 DB\uC5D4 \uC544\uC9C1 venue \uCE78\uC774 \uC5C6\uC5B4(migration 029 \uC804) venue \uD544\uD130\uB97C \uC801\uC6A9\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4." } : {},
|
|
56835
56990
|
results: rows
|
|
56836
56991
|
}, null, 2)
|
|
56837
56992
|
}]
|
|
@@ -58173,6 +58328,7 @@ var PINNED_LIMIT = 10;
|
|
|
58173
58328
|
var INJECT_PINNED_LIMIT = 5;
|
|
58174
58329
|
var BRIEF_MAX_CHARS = Number(process.env.BRIEF_MAX_CHARS ?? 8e3);
|
|
58175
58330
|
async function collectBrief(opts = {}) {
|
|
58331
|
+
const venueSel = await hasMemoryColumn("venue") ? ", venue" : "";
|
|
58176
58332
|
const userId = opts.userId ?? await getDefaultUserId();
|
|
58177
58333
|
const shortTermDays = opts.shortTermDays ?? Number(process.env.SHORT_TERM_DAYS ?? 3);
|
|
58178
58334
|
const currentPlatform = opts.currentPlatform ?? null;
|
|
@@ -58183,7 +58339,7 @@ async function collectBrief(opts = {}) {
|
|
|
58183
58339
|
);
|
|
58184
58340
|
const user = u.rows[0] ?? { user_name: "unknown", core_profile: null, sub_profile: null };
|
|
58185
58341
|
const pinnedMsgs = await db.query(
|
|
58186
|
-
`SELECT role, agent_platform, device_name, message, created_at
|
|
58342
|
+
`SELECT role, agent_platform, device_name, message, created_at${venueSel}
|
|
58187
58343
|
FROM memory
|
|
58188
58344
|
WHERE user_id = $1
|
|
58189
58345
|
AND is_active = TRUE
|
|
@@ -58211,7 +58367,7 @@ async function collectBrief(opts = {}) {
|
|
|
58211
58367
|
let recentOthers = [];
|
|
58212
58368
|
if (currentPlatform) {
|
|
58213
58369
|
const currentMsgs = await db.query(
|
|
58214
|
-
`SELECT role, agent_platform, device_name, message, created_at
|
|
58370
|
+
`SELECT role, agent_platform, device_name, message, created_at${venueSel}
|
|
58215
58371
|
FROM memory
|
|
58216
58372
|
WHERE user_id = $1
|
|
58217
58373
|
AND is_active = TRUE
|
|
@@ -58226,7 +58382,7 @@ async function collectBrief(opts = {}) {
|
|
|
58226
58382
|
);
|
|
58227
58383
|
recentCurrent = currentMsgs.rows.reverse().map(rowToMsg);
|
|
58228
58384
|
const othersMsgs = await db.query(
|
|
58229
|
-
`SELECT role, agent_platform, device_name, message, created_at
|
|
58385
|
+
`SELECT role, agent_platform, device_name, message, created_at${venueSel}
|
|
58230
58386
|
FROM memory
|
|
58231
58387
|
WHERE user_id = $1
|
|
58232
58388
|
AND is_active = TRUE
|
|
@@ -58241,7 +58397,7 @@ async function collectBrief(opts = {}) {
|
|
|
58241
58397
|
recentOthers = othersMsgs.rows.reverse().map(rowToMsg);
|
|
58242
58398
|
} else {
|
|
58243
58399
|
const msgs = await db.query(
|
|
58244
|
-
`SELECT role, agent_platform, device_name, message, created_at
|
|
58400
|
+
`SELECT role, agent_platform, device_name, message, created_at${venueSel}
|
|
58245
58401
|
FROM memory
|
|
58246
58402
|
WHERE user_id = $1
|
|
58247
58403
|
AND is_active = TRUE
|
|
@@ -58288,11 +58444,15 @@ async function collectBrief(opts = {}) {
|
|
|
58288
58444
|
};
|
|
58289
58445
|
}
|
|
58290
58446
|
function rowToMsg(r) {
|
|
58447
|
+
const raw = String(r.message ?? "");
|
|
58448
|
+
const buzz = buzzEmbeddingText(raw);
|
|
58449
|
+
const text = buzz === raw ? raw : buzz.split("\n").filter((l) => !/^<\/?[a-z-]+(\s[^>]*)?>\s*$/.test(l)).join(" ").replace(/\s+/g, " ").trim();
|
|
58291
58450
|
return {
|
|
58292
58451
|
role: r.role,
|
|
58293
58452
|
agent_platform: r.agent_platform,
|
|
58294
58453
|
device_name: r.device_name ?? null,
|
|
58295
|
-
|
|
58454
|
+
venue: r.venue ?? null,
|
|
58455
|
+
preview: text.slice(0, MAX_PREVIEW_STORE),
|
|
58296
58456
|
created_at: r.created_at
|
|
58297
58457
|
};
|
|
58298
58458
|
}
|
|
@@ -58422,7 +58582,8 @@ function fitSection(heading, lines, budget) {
|
|
|
58422
58582
|
function formatMsgLine(m, showPlatform, maxPreview = PREVIEW_COMPACT) {
|
|
58423
58583
|
const dt = m.created_at?.toISOString?.().slice(11, 16) ?? "";
|
|
58424
58584
|
const device = m.device_name ? `@${m.device_name} ` : "";
|
|
58425
|
-
const
|
|
58585
|
+
const venue = m.venue ? `${m.venue} ` : "";
|
|
58586
|
+
const platformTag = (showPlatform ? `${m.agent_platform} ${device}` : device) + venue;
|
|
58426
58587
|
const truncated = m.preview.length > maxPreview;
|
|
58427
58588
|
const text = truncated ? m.preview.slice(0, maxPreview) : m.preview;
|
|
58428
58589
|
return `- [${dt} ${platformTag}${m.role}] ${text}${truncated ? "\u2026" : ""}`;
|
|
@@ -58475,7 +58636,7 @@ agent_platform_filter=false.`,
|
|
|
58475
58636
|
import * as os10 from "node:os";
|
|
58476
58637
|
|
|
58477
58638
|
// src/auto_save/gemini_capture.ts
|
|
58478
|
-
import * as
|
|
58639
|
+
import * as fs5 from "node:fs";
|
|
58479
58640
|
import * as path5 from "node:path";
|
|
58480
58641
|
import * as os6 from "node:os";
|
|
58481
58642
|
import * as crypto2 from "node:crypto";
|
|
@@ -58501,12 +58662,12 @@ function deriveChatsDirCandidates(cwd) {
|
|
|
58501
58662
|
path5.join(GEMINI_TMP_ROOT, cwdHash, "chats"),
|
|
58502
58663
|
path5.join(GEMINI_TMP_ROOT, path5.basename(cwd), "chats")
|
|
58503
58664
|
];
|
|
58504
|
-
return candidates.filter((d) =>
|
|
58665
|
+
return candidates.filter((d) => fs5.existsSync(d));
|
|
58505
58666
|
}
|
|
58506
58667
|
async function readSessionFile(filePath) {
|
|
58507
58668
|
for (let attempt = 0; attempt < 2; attempt++) {
|
|
58508
58669
|
try {
|
|
58509
|
-
const raw =
|
|
58670
|
+
const raw = fs5.readFileSync(filePath, "utf-8");
|
|
58510
58671
|
if (!raw.trim()) return null;
|
|
58511
58672
|
return JSON.parse(raw);
|
|
58512
58673
|
} catch {
|
|
@@ -58596,23 +58757,23 @@ async function flushJsonFile(filePath, fileState, contentSeen) {
|
|
|
58596
58757
|
return { inserted, skipped, dedup };
|
|
58597
58758
|
}
|
|
58598
58759
|
async function flushJsonlFile(filePath, fileState, contentSeen) {
|
|
58599
|
-
if (!
|
|
58760
|
+
if (!fs5.existsSync(filePath)) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58600
58761
|
let stat;
|
|
58601
58762
|
try {
|
|
58602
|
-
stat =
|
|
58763
|
+
stat = fs5.statSync(filePath);
|
|
58603
58764
|
} catch {
|
|
58604
58765
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58605
58766
|
}
|
|
58606
58767
|
if (stat.size <= fileState.cursor) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58607
58768
|
const length = stat.size - fileState.cursor;
|
|
58608
|
-
const fd =
|
|
58769
|
+
const fd = fs5.openSync(filePath, "r");
|
|
58609
58770
|
let raw;
|
|
58610
58771
|
try {
|
|
58611
58772
|
const buf = Buffer.alloc(length);
|
|
58612
|
-
|
|
58773
|
+
fs5.readSync(fd, buf, 0, length, fileState.cursor);
|
|
58613
58774
|
raw = buf.toString("utf-8");
|
|
58614
58775
|
} finally {
|
|
58615
|
-
|
|
58776
|
+
fs5.closeSync(fd);
|
|
58616
58777
|
}
|
|
58617
58778
|
const lastNl = raw.lastIndexOf("\n");
|
|
58618
58779
|
if (lastNl === -1) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
@@ -58683,10 +58844,10 @@ async function flushAllFiles() {
|
|
|
58683
58844
|
let totalI = 0, totalS = 0, totalD = 0;
|
|
58684
58845
|
const contentSeen = /* @__PURE__ */ new Set();
|
|
58685
58846
|
for (const dir of _state2.chatsDirs) {
|
|
58686
|
-
if (!
|
|
58847
|
+
if (!fs5.existsSync(dir)) continue;
|
|
58687
58848
|
let entries;
|
|
58688
58849
|
try {
|
|
58689
|
-
entries =
|
|
58850
|
+
entries = fs5.readdirSync(dir, { withFileTypes: true });
|
|
58690
58851
|
} catch {
|
|
58691
58852
|
continue;
|
|
58692
58853
|
}
|
|
@@ -58751,7 +58912,7 @@ function captureSessionStart2(cwd) {
|
|
|
58751
58912
|
for (const dir of chatsDirs) {
|
|
58752
58913
|
let entries;
|
|
58753
58914
|
try {
|
|
58754
|
-
entries =
|
|
58915
|
+
entries = fs5.readdirSync(dir, { withFileTypes: true });
|
|
58755
58916
|
} catch {
|
|
58756
58917
|
continue;
|
|
58757
58918
|
}
|
|
@@ -58767,21 +58928,21 @@ function captureSessionStart2(cwd) {
|
|
|
58767
58928
|
if (format === "json") {
|
|
58768
58929
|
let session = null;
|
|
58769
58930
|
try {
|
|
58770
|
-
session = JSON.parse(
|
|
58931
|
+
session = JSON.parse(fs5.readFileSync(filePath, "utf-8"));
|
|
58771
58932
|
} catch {
|
|
58772
58933
|
}
|
|
58773
58934
|
cursor = session && Array.isArray(session.messages) ? session.messages.length : 0;
|
|
58774
58935
|
if (session?.sessionId) realSessionId = session.sessionId;
|
|
58775
58936
|
} else {
|
|
58776
58937
|
try {
|
|
58777
|
-
cursor =
|
|
58938
|
+
cursor = fs5.statSync(filePath).size;
|
|
58778
58939
|
} catch {
|
|
58779
58940
|
}
|
|
58780
58941
|
try {
|
|
58781
|
-
const fd =
|
|
58942
|
+
const fd = fs5.openSync(filePath, "r");
|
|
58782
58943
|
const buf = Buffer.alloc(512);
|
|
58783
|
-
const n =
|
|
58784
|
-
|
|
58944
|
+
const n = fs5.readSync(fd, buf, 0, 512, 0);
|
|
58945
|
+
fs5.closeSync(fd);
|
|
58785
58946
|
const firstLine = buf.slice(0, n).toString("utf-8").split("\n")[0].trim();
|
|
58786
58947
|
const header = JSON.parse(firstLine);
|
|
58787
58948
|
if (typeof header.sessionId === "string" && header.sessionId) {
|
|
@@ -58804,7 +58965,7 @@ function armDirWatchers() {
|
|
|
58804
58965
|
if (_watchers.length > 0) return;
|
|
58805
58966
|
for (const dir of _state2.chatsDirs) {
|
|
58806
58967
|
try {
|
|
58807
|
-
const w =
|
|
58968
|
+
const w = fs5.watch(dir, (_evt, filename) => {
|
|
58808
58969
|
if (filename && !filename.endsWith(".json") && !filename.endsWith(".jsonl")) return;
|
|
58809
58970
|
scheduleFlush();
|
|
58810
58971
|
});
|
|
@@ -58859,7 +59020,7 @@ async function captureSessionEnd2() {
|
|
|
58859
59020
|
}
|
|
58860
59021
|
|
|
58861
59022
|
// src/auto_save/grok_capture.ts
|
|
58862
|
-
import * as
|
|
59023
|
+
import * as fs6 from "node:fs";
|
|
58863
59024
|
import * as path6 from "node:path";
|
|
58864
59025
|
import * as os7 from "node:os";
|
|
58865
59026
|
var DEVICE_NAME4 = os7.hostname();
|
|
@@ -58880,7 +59041,7 @@ function extractSessionId(filePath) {
|
|
|
58880
59041
|
}
|
|
58881
59042
|
function countCompleteLines(filePath) {
|
|
58882
59043
|
try {
|
|
58883
|
-
const content =
|
|
59044
|
+
const content = fs6.readFileSync(filePath, "utf-8");
|
|
58884
59045
|
let n = 0;
|
|
58885
59046
|
for (let i = 0; i < content.length; i++) if (content[i] === "\n") n++;
|
|
58886
59047
|
return n;
|
|
@@ -58889,13 +59050,13 @@ function countCompleteLines(filePath) {
|
|
|
58889
59050
|
}
|
|
58890
59051
|
}
|
|
58891
59052
|
function* walkChatHistories(root) {
|
|
58892
|
-
if (!
|
|
59053
|
+
if (!fs6.existsSync(root)) return;
|
|
58893
59054
|
const stack = [root];
|
|
58894
59055
|
while (stack.length) {
|
|
58895
59056
|
const dir = stack.pop();
|
|
58896
59057
|
let entries;
|
|
58897
59058
|
try {
|
|
58898
|
-
entries =
|
|
59059
|
+
entries = fs6.readdirSync(dir, { withFileTypes: true });
|
|
58899
59060
|
} catch {
|
|
58900
59061
|
continue;
|
|
58901
59062
|
}
|
|
@@ -58910,7 +59071,7 @@ function* walkChatHistories(root) {
|
|
|
58910
59071
|
}
|
|
58911
59072
|
}
|
|
58912
59073
|
function captureSessionStart3(_cwd) {
|
|
58913
|
-
const rootExists =
|
|
59074
|
+
const rootExists = fs6.existsSync(SESSIONS_ROOT);
|
|
58914
59075
|
_state3 = {
|
|
58915
59076
|
rootExists,
|
|
58916
59077
|
files: /* @__PURE__ */ new Map()
|
|
@@ -58922,7 +59083,7 @@ function captureSessionStart3(_cwd) {
|
|
|
58922
59083
|
for (const filePath of walkChatHistories(SESSIONS_ROOT)) {
|
|
58923
59084
|
let stat;
|
|
58924
59085
|
try {
|
|
58925
|
-
stat =
|
|
59086
|
+
stat = fs6.statSync(filePath);
|
|
58926
59087
|
} catch {
|
|
58927
59088
|
continue;
|
|
58928
59089
|
}
|
|
@@ -58973,14 +59134,14 @@ function parseEntry(line, lineIndex) {
|
|
|
58973
59134
|
async function flushDeltaForFile2(filePath, fileState) {
|
|
58974
59135
|
let stat;
|
|
58975
59136
|
try {
|
|
58976
|
-
stat =
|
|
59137
|
+
stat = fs6.statSync(filePath);
|
|
58977
59138
|
} catch {
|
|
58978
59139
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58979
59140
|
}
|
|
58980
59141
|
if (stat.size === fileState.lastSize) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58981
59142
|
let content;
|
|
58982
59143
|
try {
|
|
58983
|
-
content =
|
|
59144
|
+
content = fs6.readFileSync(filePath, "utf-8");
|
|
58984
59145
|
} catch {
|
|
58985
59146
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
58986
59147
|
}
|
|
@@ -59027,7 +59188,7 @@ async function flushAllFiles2() {
|
|
|
59027
59188
|
if (!fileState) {
|
|
59028
59189
|
let stat = null;
|
|
59029
59190
|
try {
|
|
59030
|
-
stat =
|
|
59191
|
+
stat = fs6.statSync(filePath);
|
|
59031
59192
|
} catch {
|
|
59032
59193
|
}
|
|
59033
59194
|
const fileBirthMs = stat ? stat.birthtimeMs || stat.ctimeMs : SERVER_START_MS;
|
|
@@ -59087,7 +59248,7 @@ function armDirWatcher() {
|
|
|
59087
59248
|
if (!_state3 || !_state3.rootExists) return;
|
|
59088
59249
|
if (_watcher) return;
|
|
59089
59250
|
try {
|
|
59090
|
-
_watcher =
|
|
59251
|
+
_watcher = fs6.watch(SESSIONS_ROOT, { recursive: true }, (_evt, filename) => {
|
|
59091
59252
|
if (!filename) return;
|
|
59092
59253
|
if (path6.basename(filename) !== CHAT_FILE) return;
|
|
59093
59254
|
scheduleFlush2();
|
|
@@ -59142,7 +59303,7 @@ function isCaptureArmed3() {
|
|
|
59142
59303
|
}
|
|
59143
59304
|
|
|
59144
59305
|
// src/auto_save/antigravity_capture.ts
|
|
59145
|
-
import * as
|
|
59306
|
+
import * as fs7 from "node:fs";
|
|
59146
59307
|
import * as path7 from "node:path";
|
|
59147
59308
|
import * as os8 from "node:os";
|
|
59148
59309
|
var DEVICE_NAME5 = os8.hostname();
|
|
@@ -59167,7 +59328,7 @@ function extractSid(filePath) {
|
|
|
59167
59328
|
}
|
|
59168
59329
|
function countCompleteLines2(filePath) {
|
|
59169
59330
|
try {
|
|
59170
|
-
const content =
|
|
59331
|
+
const content = fs7.readFileSync(filePath, "utf-8");
|
|
59171
59332
|
let n = 0;
|
|
59172
59333
|
for (let i = 0; i < content.length; i++) if (content[i] === "\n") n++;
|
|
59173
59334
|
return n;
|
|
@@ -59176,13 +59337,13 @@ function countCompleteLines2(filePath) {
|
|
|
59176
59337
|
}
|
|
59177
59338
|
}
|
|
59178
59339
|
function* walkTranscripts(root) {
|
|
59179
|
-
if (!
|
|
59340
|
+
if (!fs7.existsSync(root)) return;
|
|
59180
59341
|
const stack = [root];
|
|
59181
59342
|
while (stack.length) {
|
|
59182
59343
|
const dir = stack.pop();
|
|
59183
59344
|
let entries;
|
|
59184
59345
|
try {
|
|
59185
|
-
entries =
|
|
59346
|
+
entries = fs7.readdirSync(dir, { withFileTypes: true });
|
|
59186
59347
|
} catch {
|
|
59187
59348
|
continue;
|
|
59188
59349
|
}
|
|
@@ -59204,7 +59365,7 @@ function* walkAllTranscripts() {
|
|
|
59204
59365
|
}
|
|
59205
59366
|
}
|
|
59206
59367
|
function captureSessionStart4(_cwd) {
|
|
59207
|
-
const rootExists = ROOTS.some((r) =>
|
|
59368
|
+
const rootExists = ROOTS.some((r) => fs7.existsSync(r.dir));
|
|
59208
59369
|
_state4 = {
|
|
59209
59370
|
rootExists,
|
|
59210
59371
|
files: /* @__PURE__ */ new Map()
|
|
@@ -59216,7 +59377,7 @@ function captureSessionStart4(_cwd) {
|
|
|
59216
59377
|
for (const { filePath, platform } of walkAllTranscripts()) {
|
|
59217
59378
|
let stat;
|
|
59218
59379
|
try {
|
|
59219
|
-
stat =
|
|
59380
|
+
stat = fs7.statSync(filePath);
|
|
59220
59381
|
} catch {
|
|
59221
59382
|
continue;
|
|
59222
59383
|
}
|
|
@@ -59229,7 +59390,7 @@ function captureSessionStart4(_cwd) {
|
|
|
59229
59390
|
});
|
|
59230
59391
|
count++;
|
|
59231
59392
|
}
|
|
59232
|
-
const liveRoots = ROOTS.filter((r) =>
|
|
59393
|
+
const liveRoots = ROOTS.filter((r) => fs7.existsSync(r.dir)).map((r) => r.platform);
|
|
59233
59394
|
console.error(`\u{1F4DD} [Antigravity] capture armed: ${count} transcript(s) across [${liveRoots.join(", ")}]`);
|
|
59234
59395
|
armDirWatcher2();
|
|
59235
59396
|
}
|
|
@@ -59267,14 +59428,14 @@ function parseEntry2(line) {
|
|
|
59267
59428
|
async function flushDeltaForFile3(filePath, fileState) {
|
|
59268
59429
|
let stat;
|
|
59269
59430
|
try {
|
|
59270
|
-
stat =
|
|
59431
|
+
stat = fs7.statSync(filePath);
|
|
59271
59432
|
} catch {
|
|
59272
59433
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
59273
59434
|
}
|
|
59274
59435
|
if (stat.size === fileState.lastSize) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
59275
59436
|
let content;
|
|
59276
59437
|
try {
|
|
59277
|
-
content =
|
|
59438
|
+
content = fs7.readFileSync(filePath, "utf-8");
|
|
59278
59439
|
} catch {
|
|
59279
59440
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
59280
59441
|
}
|
|
@@ -59323,7 +59484,7 @@ async function flushAllFiles3() {
|
|
|
59323
59484
|
if (!fileState) {
|
|
59324
59485
|
let stat = null;
|
|
59325
59486
|
try {
|
|
59326
|
-
stat =
|
|
59487
|
+
stat = fs7.statSync(filePath);
|
|
59327
59488
|
} catch {
|
|
59328
59489
|
}
|
|
59329
59490
|
const fileBirthMs = stat ? stat.birthtimeMs || stat.ctimeMs : SERVER_START_MS2;
|
|
@@ -59385,9 +59546,9 @@ function armDirWatcher2() {
|
|
|
59385
59546
|
if (!_state4 || !_state4.rootExists) return;
|
|
59386
59547
|
if (_watchers2.length) return;
|
|
59387
59548
|
for (const { dir } of ROOTS) {
|
|
59388
|
-
if (!
|
|
59549
|
+
if (!fs7.existsSync(dir)) continue;
|
|
59389
59550
|
try {
|
|
59390
|
-
const w =
|
|
59551
|
+
const w = fs7.watch(dir, { recursive: true }, (_evt, filename) => {
|
|
59391
59552
|
if (!filename) return;
|
|
59392
59553
|
if (path7.basename(filename) !== CHAT_FILE2) return;
|
|
59393
59554
|
scheduleFlush3();
|
|
@@ -59444,7 +59605,7 @@ function isCaptureArmed4() {
|
|
|
59444
59605
|
}
|
|
59445
59606
|
|
|
59446
59607
|
// src/auto_save/hermes_capture.ts
|
|
59447
|
-
import * as
|
|
59608
|
+
import * as fs8 from "node:fs";
|
|
59448
59609
|
import * as path8 from "node:path";
|
|
59449
59610
|
import * as os9 from "node:os";
|
|
59450
59611
|
var DEVICE_NAME6 = os9.hostname();
|
|
@@ -59500,8 +59661,44 @@ function parseNewRows(db2, afterId) {
|
|
|
59500
59661
|
}
|
|
59501
59662
|
return { rows, maxId };
|
|
59502
59663
|
}
|
|
59503
|
-
function
|
|
59504
|
-
if (
|
|
59664
|
+
function lookupSource(db2, sessionId, cache3) {
|
|
59665
|
+
if (cache3.has(sessionId)) return cache3.get(sessionId);
|
|
59666
|
+
let source = null;
|
|
59667
|
+
try {
|
|
59668
|
+
const row = db2.prepare(`SELECT source FROM sessions WHERE id = ? LIMIT 1`).get(sessionId);
|
|
59669
|
+
source = row?.source ?? null;
|
|
59670
|
+
} catch {
|
|
59671
|
+
source = null;
|
|
59672
|
+
}
|
|
59673
|
+
cache3.set(sessionId, source);
|
|
59674
|
+
return source;
|
|
59675
|
+
}
|
|
59676
|
+
var SOURCE_VENUE = { slack: "slack", cli: "terminal", subagent: "subagent", cron: "auto" };
|
|
59677
|
+
function rowVenue(db2, row, state) {
|
|
59678
|
+
const source = lookupSource(db2, row.sessionId, state.sourceCache);
|
|
59679
|
+
if (source !== "acp") return source ? SOURCE_VENUE[source] ?? null : null;
|
|
59680
|
+
const own = row.role === "user" ? buzzTurnVenue(row.message) : null;
|
|
59681
|
+
if (own) {
|
|
59682
|
+
state.buzzVenue.set(row.sessionId, own);
|
|
59683
|
+
return own;
|
|
59684
|
+
}
|
|
59685
|
+
if (!state.buzzVenue.has(row.sessionId)) {
|
|
59686
|
+
let seeded = null;
|
|
59687
|
+
try {
|
|
59688
|
+
const prev = db2.prepare(`SELECT content FROM messages WHERE session_id = ? AND id < ? AND role = 'user' ORDER BY id DESC LIMIT 20`).all(row.sessionId, row.id);
|
|
59689
|
+
for (const p of prev) {
|
|
59690
|
+
seeded = p.content ? buzzTurnVenue(p.content) : null;
|
|
59691
|
+
if (seeded) break;
|
|
59692
|
+
}
|
|
59693
|
+
} catch {
|
|
59694
|
+
seeded = null;
|
|
59695
|
+
}
|
|
59696
|
+
state.buzzVenue.set(row.sessionId, seeded);
|
|
59697
|
+
}
|
|
59698
|
+
return state.buzzVenue.get(row.sessionId) ?? null;
|
|
59699
|
+
}
|
|
59700
|
+
function lookupModel(db2, sessionId, cache3) {
|
|
59701
|
+
if (cache3.has(sessionId)) return cache3.get(sessionId);
|
|
59505
59702
|
let model = null;
|
|
59506
59703
|
try {
|
|
59507
59704
|
const row = db2.prepare(`SELECT model FROM sessions WHERE id = ? LIMIT 1`).get(sessionId);
|
|
@@ -59509,7 +59706,7 @@ function lookupModel(db2, sessionId, cache2) {
|
|
|
59509
59706
|
} catch {
|
|
59510
59707
|
model = null;
|
|
59511
59708
|
}
|
|
59512
|
-
|
|
59709
|
+
cache3.set(sessionId, model);
|
|
59513
59710
|
return model;
|
|
59514
59711
|
}
|
|
59515
59712
|
function isCaptureArmed5() {
|
|
@@ -59522,7 +59719,7 @@ async function captureSessionStart5(_cwd) {
|
|
|
59522
59719
|
}
|
|
59523
59720
|
_state5 = null;
|
|
59524
59721
|
_consecutiveOpenFailures = 0;
|
|
59525
|
-
if (!
|
|
59722
|
+
if (!fs8.existsSync(STATE_DB)) return;
|
|
59526
59723
|
const DatabaseSync = await loadSqlite2();
|
|
59527
59724
|
if (!DatabaseSync) {
|
|
59528
59725
|
console.error(
|
|
@@ -59554,7 +59751,7 @@ async function captureSessionStart5(_cwd) {
|
|
|
59554
59751
|
db2.close();
|
|
59555
59752
|
} catch {
|
|
59556
59753
|
}
|
|
59557
|
-
_state5 = { cursor: maxId, modelCache: /* @__PURE__ */ new Map() };
|
|
59754
|
+
_state5 = { cursor: maxId, modelCache: /* @__PURE__ */ new Map(), sourceCache: /* @__PURE__ */ new Map(), buzzVenue: /* @__PURE__ */ new Map(), venueByRow: /* @__PURE__ */ new Map() };
|
|
59558
59755
|
console.error(`\u{1F4DD} [Hermes] capture armed: cursor=${maxId} (live-from-now)`);
|
|
59559
59756
|
if (_pollTimer5) clearInterval(_pollTimer5);
|
|
59560
59757
|
_pollTimer5 = setInterval(() => {
|
|
@@ -59593,6 +59790,15 @@ async function flush2() {
|
|
|
59593
59790
|
const userId = await getDefaultUserId();
|
|
59594
59791
|
for (const r of rows) {
|
|
59595
59792
|
const agentModel = r.role === "user" ? null : lookupModel(db2, r.sessionId, _state5.modelCache) ?? "unknown";
|
|
59793
|
+
let venue = _state5.venueByRow.get(r.id);
|
|
59794
|
+
if (venue === void 0) {
|
|
59795
|
+
try {
|
|
59796
|
+
venue = rowVenue(db2, r, _state5);
|
|
59797
|
+
} catch {
|
|
59798
|
+
venue = null;
|
|
59799
|
+
}
|
|
59800
|
+
_state5.venueByRow.set(r.id, venue);
|
|
59801
|
+
}
|
|
59596
59802
|
try {
|
|
59597
59803
|
const res = await insertRawMemory({
|
|
59598
59804
|
user_id: userId,
|
|
@@ -59601,8 +59807,10 @@ async function flush2() {
|
|
|
59601
59807
|
role: r.role,
|
|
59602
59808
|
message: r.message,
|
|
59603
59809
|
external_uuid: `hermes:${r.id}`,
|
|
59604
|
-
device_name: DEVICE_NAME6
|
|
59810
|
+
device_name: DEVICE_NAME6,
|
|
59811
|
+
venue
|
|
59605
59812
|
});
|
|
59813
|
+
_state5.venueByRow.delete(r.id);
|
|
59606
59814
|
if (res.inserted) inserted++;
|
|
59607
59815
|
else dedup++;
|
|
59608
59816
|
} catch (err3) {
|
|
@@ -60478,7 +60686,7 @@ async function processOne(client2, row) {
|
|
|
60478
60686
|
promises.push(
|
|
60479
60687
|
(async () => {
|
|
60480
60688
|
try {
|
|
60481
|
-
embedding = await embedMessage(row.message);
|
|
60689
|
+
embedding = await embedMessage(buzzEmbeddingText(row.message));
|
|
60482
60690
|
} catch (err3) {
|
|
60483
60691
|
embedError = err3;
|
|
60484
60692
|
}
|
|
@@ -60685,7 +60893,7 @@ async function drainColdPath(maxTicks = 12) {
|
|
|
60685
60893
|
}
|
|
60686
60894
|
|
|
60687
60895
|
// src/auto_save/jsonl_capture.ts
|
|
60688
|
-
import * as
|
|
60896
|
+
import * as fs9 from "node:fs";
|
|
60689
60897
|
import * as path9 from "node:path";
|
|
60690
60898
|
import * as os12 from "node:os";
|
|
60691
60899
|
var CLIENT_PLATFORM2 = "claude-code";
|
|
@@ -60704,12 +60912,12 @@ function findProjectDir(cwd) {
|
|
|
60704
60912
|
const slug = cwdToSlug(cwd);
|
|
60705
60913
|
const slugPath = path9.join(PROJECTS_ROOT, slug);
|
|
60706
60914
|
try {
|
|
60707
|
-
if (
|
|
60915
|
+
if (fs9.statSync(slugPath).isDirectory()) return slugPath;
|
|
60708
60916
|
} catch {
|
|
60709
60917
|
}
|
|
60710
60918
|
let subdirs;
|
|
60711
60919
|
try {
|
|
60712
|
-
subdirs =
|
|
60920
|
+
subdirs = fs9.readdirSync(PROJECTS_ROOT, { withFileTypes: true });
|
|
60713
60921
|
} catch {
|
|
60714
60922
|
return null;
|
|
60715
60923
|
}
|
|
@@ -60718,7 +60926,7 @@ function findProjectDir(cwd) {
|
|
|
60718
60926
|
const dirPath = path9.join(PROJECTS_ROOT, subdir.name);
|
|
60719
60927
|
let files;
|
|
60720
60928
|
try {
|
|
60721
|
-
files =
|
|
60929
|
+
files = fs9.readdirSync(dirPath, { withFileTypes: true });
|
|
60722
60930
|
} catch {
|
|
60723
60931
|
continue;
|
|
60724
60932
|
}
|
|
@@ -60733,13 +60941,13 @@ function findProjectDir(cwd) {
|
|
|
60733
60941
|
function readCwdFromJsonl(jsonlPath) {
|
|
60734
60942
|
let fd;
|
|
60735
60943
|
try {
|
|
60736
|
-
fd =
|
|
60944
|
+
fd = fs9.openSync(jsonlPath, "r");
|
|
60737
60945
|
} catch {
|
|
60738
60946
|
return null;
|
|
60739
60947
|
}
|
|
60740
60948
|
try {
|
|
60741
60949
|
const buf = Buffer.alloc(2048);
|
|
60742
|
-
const bytesRead =
|
|
60950
|
+
const bytesRead = fs9.readSync(fd, buf, 0, 2048, 0);
|
|
60743
60951
|
const raw = buf.slice(0, bytesRead).toString("utf-8");
|
|
60744
60952
|
for (const line of raw.split("\n")) {
|
|
60745
60953
|
if (!line.trim()) continue;
|
|
@@ -60751,7 +60959,7 @@ function readCwdFromJsonl(jsonlPath) {
|
|
|
60751
60959
|
}
|
|
60752
60960
|
return null;
|
|
60753
60961
|
} finally {
|
|
60754
|
-
|
|
60962
|
+
fs9.closeSync(fd);
|
|
60755
60963
|
}
|
|
60756
60964
|
}
|
|
60757
60965
|
function captureSessionStart6(cwd) {
|
|
@@ -60781,7 +60989,7 @@ function _tryArm(cwd, attempt) {
|
|
|
60781
60989
|
_state6.projectDir = projectDir;
|
|
60782
60990
|
let entries;
|
|
60783
60991
|
try {
|
|
60784
|
-
entries =
|
|
60992
|
+
entries = fs9.readdirSync(projectDir, { withFileTypes: true });
|
|
60785
60993
|
} catch {
|
|
60786
60994
|
return;
|
|
60787
60995
|
}
|
|
@@ -60790,7 +60998,7 @@ function _tryArm(cwd, attempt) {
|
|
|
60790
60998
|
const jsonlPath = path9.join(projectDir, entry.name);
|
|
60791
60999
|
let stat;
|
|
60792
61000
|
try {
|
|
60793
|
-
stat =
|
|
61001
|
+
stat = fs9.statSync(jsonlPath);
|
|
60794
61002
|
} catch {
|
|
60795
61003
|
continue;
|
|
60796
61004
|
}
|
|
@@ -60836,27 +61044,48 @@ function parseEntry3(line) {
|
|
|
60836
61044
|
uuid: entry.uuid ?? `${entry.timestamp ?? ""}-${Math.random()}`,
|
|
60837
61045
|
role: entry.type,
|
|
60838
61046
|
message: messageText,
|
|
60839
|
-
agent_model
|
|
61047
|
+
agent_model,
|
|
61048
|
+
entrypoint: typeof entry.entrypoint === "string" ? entry.entrypoint : void 0
|
|
60840
61049
|
};
|
|
60841
61050
|
}
|
|
61051
|
+
var HEAD_SCAN_BYTES = 2 * 1024 * 1024;
|
|
61052
|
+
function sessionVenueKind(jsonlPath) {
|
|
61053
|
+
const fd = fs9.openSync(jsonlPath, "r");
|
|
61054
|
+
try {
|
|
61055
|
+
const size = fs9.fstatSync(fd).size;
|
|
61056
|
+
const buf = Buffer.allocUnsafe(Math.min(HEAD_SCAN_BYTES, size));
|
|
61057
|
+
fs9.readSync(fd, buf, 0, buf.length, 0);
|
|
61058
|
+
for (const line of buf.toString("utf-8").split("\n")) {
|
|
61059
|
+
const parsed = line.trim() ? parseEntry3(line) : null;
|
|
61060
|
+
if (parsed?.role === "user") return classifySessionVenue(parsed.message, parsed.entrypoint);
|
|
61061
|
+
}
|
|
61062
|
+
return size >= HEAD_SCAN_BYTES ? null : void 0;
|
|
61063
|
+
} finally {
|
|
61064
|
+
fs9.closeSync(fd);
|
|
61065
|
+
}
|
|
61066
|
+
}
|
|
61067
|
+
var userTextOf = (line) => {
|
|
61068
|
+
const parsed = parseEntry3(line);
|
|
61069
|
+
return parsed?.role === "user" ? parsed.message : null;
|
|
61070
|
+
};
|
|
60842
61071
|
async function flushDeltaForFile4(jsonlPath, fileState) {
|
|
60843
|
-
if (!
|
|
61072
|
+
if (!fs9.existsSync(jsonlPath)) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60844
61073
|
let stat;
|
|
60845
61074
|
try {
|
|
60846
|
-
stat =
|
|
61075
|
+
stat = fs9.statSync(jsonlPath);
|
|
60847
61076
|
} catch {
|
|
60848
61077
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60849
61078
|
}
|
|
60850
61079
|
if (stat.size <= fileState.cursorBytes) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60851
61080
|
const length = stat.size - fileState.cursorBytes;
|
|
60852
|
-
const fd =
|
|
61081
|
+
const fd = fs9.openSync(jsonlPath, "r");
|
|
60853
61082
|
let raw;
|
|
60854
61083
|
try {
|
|
60855
61084
|
const buf = Buffer.alloc(length);
|
|
60856
|
-
|
|
61085
|
+
fs9.readSync(fd, buf, 0, length, fileState.cursorBytes);
|
|
60857
61086
|
raw = buf.toString("utf-8");
|
|
60858
61087
|
} finally {
|
|
60859
|
-
|
|
61088
|
+
fs9.closeSync(fd);
|
|
60860
61089
|
}
|
|
60861
61090
|
const lastNl = raw.lastIndexOf("\n");
|
|
60862
61091
|
if (lastNl === -1) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
@@ -60865,6 +61094,14 @@ async function flushDeltaForFile4(jsonlPath, fileState) {
|
|
|
60865
61094
|
const newCursor = fileState.cursorBytes + advanceBy;
|
|
60866
61095
|
const lines = parsable.split("\n");
|
|
60867
61096
|
const userId = await getDefaultUserId();
|
|
61097
|
+
if (fileState.venueKind === void 0) {
|
|
61098
|
+
try {
|
|
61099
|
+
fileState.venueKind = sessionVenueKind(jsonlPath);
|
|
61100
|
+
} catch {
|
|
61101
|
+
fileState.venueKind = null;
|
|
61102
|
+
}
|
|
61103
|
+
}
|
|
61104
|
+
const deltaStart = fileState.cursorBytes;
|
|
60868
61105
|
let inserted = 0, skipped = 0, dedup = 0;
|
|
60869
61106
|
for (const line of lines) {
|
|
60870
61107
|
const trimmed = line.trim();
|
|
@@ -60881,6 +61118,20 @@ async function flushDeltaForFile4(jsonlPath, fileState) {
|
|
|
60881
61118
|
}
|
|
60882
61119
|
fileState.contentSeen.add(ck);
|
|
60883
61120
|
const externalUuid = `claude-code:${fileState.sessionId}:${parsed.uuid}`;
|
|
61121
|
+
let venue = fileState.venueKind ?? null;
|
|
61122
|
+
if (fileState.venueKind === "buzz") {
|
|
61123
|
+
const own = parsed.role === "user" ? buzzTurnVenue(parsed.message) : null;
|
|
61124
|
+
if (own) {
|
|
61125
|
+
fileState.buzzVenue = own;
|
|
61126
|
+
} else if (fileState.buzzVenue === void 0) {
|
|
61127
|
+
try {
|
|
61128
|
+
fileState.buzzVenue = lastBuzzVenueInFile(jsonlPath, deltaStart, userTextOf);
|
|
61129
|
+
} catch {
|
|
61130
|
+
fileState.buzzVenue = null;
|
|
61131
|
+
}
|
|
61132
|
+
}
|
|
61133
|
+
venue = own ?? fileState.buzzVenue ?? "buzz";
|
|
61134
|
+
}
|
|
60884
61135
|
const agentModel = parsed.role === "user" ? null : parsed.agent_model ?? "unknown";
|
|
60885
61136
|
try {
|
|
60886
61137
|
const result = await insertRawMemory({
|
|
@@ -60890,7 +61141,8 @@ async function flushDeltaForFile4(jsonlPath, fileState) {
|
|
|
60890
61141
|
role: parsed.role,
|
|
60891
61142
|
message: parsed.message,
|
|
60892
61143
|
external_uuid: externalUuid,
|
|
60893
|
-
device_name: DEVICE_NAME9
|
|
61144
|
+
device_name: DEVICE_NAME9,
|
|
61145
|
+
venue
|
|
60894
61146
|
});
|
|
60895
61147
|
if (result.inserted) inserted++;
|
|
60896
61148
|
else dedup++;
|
|
@@ -60905,10 +61157,10 @@ async function flushDeltaForFile4(jsonlPath, fileState) {
|
|
|
60905
61157
|
async function flushAllFiles4() {
|
|
60906
61158
|
if (!_state6 || !_state6.projectDir) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60907
61159
|
const projectDir = _state6.projectDir;
|
|
60908
|
-
if (!
|
|
61160
|
+
if (!fs9.existsSync(projectDir)) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60909
61161
|
let entries;
|
|
60910
61162
|
try {
|
|
60911
|
-
entries =
|
|
61163
|
+
entries = fs9.readdirSync(projectDir, { withFileTypes: true });
|
|
60912
61164
|
} catch {
|
|
60913
61165
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
60914
61166
|
}
|
|
@@ -60964,7 +61216,7 @@ function armDirWatcher3() {
|
|
|
60964
61216
|
if (!_state6 || !_state6.projectDir) return;
|
|
60965
61217
|
if (_watcher2) return;
|
|
60966
61218
|
try {
|
|
60967
|
-
_watcher2 =
|
|
61219
|
+
_watcher2 = fs9.watch(_state6.projectDir, (_eventType, filename) => {
|
|
60968
61220
|
if (filename && !filename.endsWith(".jsonl")) return;
|
|
60969
61221
|
scheduleFlush4();
|
|
60970
61222
|
});
|
|
@@ -61008,7 +61260,7 @@ async function captureSessionEnd6() {
|
|
|
61008
61260
|
}
|
|
61009
61261
|
|
|
61010
61262
|
// src/auto_save/codex_capture.ts
|
|
61011
|
-
import * as
|
|
61263
|
+
import * as fs10 from "node:fs";
|
|
61012
61264
|
import * as path10 from "node:path";
|
|
61013
61265
|
import * as os13 from "node:os";
|
|
61014
61266
|
import { spawnSync } from "node:child_process";
|
|
@@ -61056,13 +61308,13 @@ function extractSessionId2(filename) {
|
|
|
61056
61308
|
return m ? m[1] : null;
|
|
61057
61309
|
}
|
|
61058
61310
|
function* walkRollouts(root) {
|
|
61059
|
-
if (!
|
|
61311
|
+
if (!fs10.existsSync(root)) return;
|
|
61060
61312
|
const stack = [root];
|
|
61061
61313
|
while (stack.length) {
|
|
61062
61314
|
const dir = stack.pop();
|
|
61063
61315
|
let entries;
|
|
61064
61316
|
try {
|
|
61065
|
-
entries =
|
|
61317
|
+
entries = fs10.readdirSync(dir, { withFileTypes: true });
|
|
61066
61318
|
} catch {
|
|
61067
61319
|
continue;
|
|
61068
61320
|
}
|
|
@@ -61077,7 +61329,7 @@ function* walkRollouts(root) {
|
|
|
61077
61329
|
}
|
|
61078
61330
|
}
|
|
61079
61331
|
function captureSessionStart7(_cwd) {
|
|
61080
|
-
const rootExists =
|
|
61332
|
+
const rootExists = fs10.existsSync(SESSIONS_ROOT2);
|
|
61081
61333
|
_state7 = {
|
|
61082
61334
|
rootExists,
|
|
61083
61335
|
files: /* @__PURE__ */ new Map()
|
|
@@ -61089,7 +61341,7 @@ function captureSessionStart7(_cwd) {
|
|
|
61089
61341
|
for (const filePath of walkRollouts(SESSIONS_ROOT2)) {
|
|
61090
61342
|
let stat;
|
|
61091
61343
|
try {
|
|
61092
|
-
stat =
|
|
61344
|
+
stat = fs10.statSync(filePath);
|
|
61093
61345
|
} catch {
|
|
61094
61346
|
continue;
|
|
61095
61347
|
}
|
|
@@ -61143,23 +61395,23 @@ function extractModelFromTurnContext(line) {
|
|
|
61143
61395
|
}
|
|
61144
61396
|
}
|
|
61145
61397
|
async function flushDeltaForFile5(filePath, fileState) {
|
|
61146
|
-
if (!
|
|
61398
|
+
if (!fs10.existsSync(filePath)) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
61147
61399
|
let stat;
|
|
61148
61400
|
try {
|
|
61149
|
-
stat =
|
|
61401
|
+
stat = fs10.statSync(filePath);
|
|
61150
61402
|
} catch {
|
|
61151
61403
|
return { inserted: 0, skipped: 0, dedup: 0 };
|
|
61152
61404
|
}
|
|
61153
61405
|
if (stat.size <= fileState.cursorBytes) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
61154
61406
|
const length = stat.size - fileState.cursorBytes;
|
|
61155
|
-
const fd =
|
|
61407
|
+
const fd = fs10.openSync(filePath, "r");
|
|
61156
61408
|
let raw;
|
|
61157
61409
|
try {
|
|
61158
61410
|
const buf = Buffer.alloc(length);
|
|
61159
|
-
|
|
61411
|
+
fs10.readSync(fd, buf, 0, length, fileState.cursorBytes);
|
|
61160
61412
|
raw = buf.toString("utf-8");
|
|
61161
61413
|
} finally {
|
|
61162
|
-
|
|
61414
|
+
fs10.closeSync(fd);
|
|
61163
61415
|
}
|
|
61164
61416
|
const lastNl = raw.lastIndexOf("\n");
|
|
61165
61417
|
if (lastNl === -1) return { inserted: 0, skipped: 0, dedup: 0 };
|
|
@@ -61223,7 +61475,7 @@ async function flushAllFiles5() {
|
|
|
61223
61475
|
if (!sessionId) continue;
|
|
61224
61476
|
let stat = null;
|
|
61225
61477
|
try {
|
|
61226
|
-
stat =
|
|
61478
|
+
stat = fs10.statSync(filePath);
|
|
61227
61479
|
} catch {
|
|
61228
61480
|
}
|
|
61229
61481
|
const fileBirthMs = stat ? stat.birthtimeMs || stat.ctimeMs : SERVER_START_MS3;
|
|
@@ -61283,7 +61535,7 @@ function armDirWatcher4() {
|
|
|
61283
61535
|
if (!_state7 || !_state7.rootExists) return;
|
|
61284
61536
|
if (_watcher3) return;
|
|
61285
61537
|
try {
|
|
61286
|
-
_watcher3 =
|
|
61538
|
+
_watcher3 = fs10.watch(SESSIONS_ROOT2, { recursive: true }, (_evt, filename) => {
|
|
61287
61539
|
if (!filename) return;
|
|
61288
61540
|
const base = path10.basename(filename);
|
|
61289
61541
|
if (!base.startsWith("rollout-") || !base.endsWith(".jsonl")) return;
|
|
@@ -61336,16 +61588,16 @@ async function captureSessionEnd7() {
|
|
|
61336
61588
|
}
|
|
61337
61589
|
|
|
61338
61590
|
// src/version.ts
|
|
61339
|
-
import
|
|
61591
|
+
import fs11 from "fs";
|
|
61340
61592
|
import path11 from "path";
|
|
61341
61593
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
61342
61594
|
var __dirname3 = path11.dirname(fileURLToPath3(import.meta.url));
|
|
61343
61595
|
var packageJsonPath = path11.resolve(__dirname3, "..", "package.json");
|
|
61344
|
-
var packageJson = JSON.parse(
|
|
61596
|
+
var packageJson = JSON.parse(fs11.readFileSync(packageJsonPath, "utf8"));
|
|
61345
61597
|
var PACKAGE_VERSION2 = packageJson.version || "0.0.0";
|
|
61346
61598
|
|
|
61347
61599
|
// src/index.ts
|
|
61348
|
-
import
|
|
61600
|
+
import fs13 from "fs";
|
|
61349
61601
|
var BRIEF_DB_TIMEOUT_MS = 5e3;
|
|
61350
61602
|
var INSTRUCTIONS_MAX_CHARS = Number(process.env.INSTRUCTIONS_MAX_CHARS ?? 1900);
|
|
61351
61603
|
var INSTRUCTIONS_SEP = "\n\n---\n\n";
|
|
@@ -61542,7 +61794,7 @@ async function runMcpServer() {
|
|
|
61542
61794
|
if (process.env.SSH_ENABLED === "true" && !process.env.SSH_KEY_PATH) {
|
|
61543
61795
|
throw new Error("\u274C SSH_KEY_PATH is required when SSH is enabled");
|
|
61544
61796
|
}
|
|
61545
|
-
if (process.env.SSH_KEY_PATH && !
|
|
61797
|
+
if (process.env.SSH_KEY_PATH && !fs13.existsSync(process.env.SSH_KEY_PATH)) {
|
|
61546
61798
|
console.error(`\u26A0\uFE0F [WARNING] SSH key not found at: ${process.env.SSH_KEY_PATH}`);
|
|
61547
61799
|
}
|
|
61548
61800
|
try {
|