dotmem 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/DOTMEM.md +538 -539
- package/MEMORY.md +4 -4
- package/PACKAGE.md +1 -1
- package/README.md +250 -199
- package/agent.cjs +13 -0
- package/agent.js +13 -0
- package/bin/cli.cjs +5 -0
- package/bin/cli.js +5 -0
- package/bin/mcp.cjs +5 -0
- package/bin/mcp.js +5 -0
- package/cli.cjs +27 -6
- package/cli.js +27 -6
- package/global.cjs +30 -5
- package/global.js +30 -5
- package/index.cjs +30 -5
- package/index.js +30 -5
- package/llms.txt +2 -2
- package/mcp.cjs +31 -6
- package/mcp.js +31 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18,6 +18,18 @@ var __export = (target, all) => {
|
|
|
18
18
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
// suppress-idb-warning.ts
|
|
22
|
+
var orig;
|
|
23
|
+
var init_suppress_idb_warning = __esm({
|
|
24
|
+
"suppress-idb-warning.ts"() {
|
|
25
|
+
orig = console.warn.bind(console);
|
|
26
|
+
console.warn = (...args) => {
|
|
27
|
+
if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
|
|
28
|
+
orig(...args);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
21
33
|
// core/env.ts
|
|
22
34
|
var DEV;
|
|
23
35
|
var init_env = __esm({
|
|
@@ -4469,7 +4481,7 @@ function encodeMemFile(stateValue, preserved) {
|
|
|
4469
4481
|
function decodeMemDocument(value) {
|
|
4470
4482
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Invalid .mem file format");
|
|
4471
4483
|
const file = value;
|
|
4472
|
-
if (file.format !== MEM_FORMAT) throw new Error("Invalid .mem file format");
|
|
4484
|
+
if (file.format !== MEM_FORMAT && file.format !== MEM_FORMAT_LEGACY) throw new Error("Invalid .mem file format");
|
|
4473
4485
|
if (file.version === MEM_FORMAT_VERSION_V1) {
|
|
4474
4486
|
if (!file.knowledge) throw new Error("Invalid .mem file format");
|
|
4475
4487
|
return { state: validateSourceState(file.knowledge) };
|
|
@@ -4551,11 +4563,12 @@ function decodeMemDocument(value) {
|
|
|
4551
4563
|
preserved: { map: structuredClone(map), data: structuredClone(stateRecord) }
|
|
4552
4564
|
};
|
|
4553
4565
|
}
|
|
4554
|
-
var MEM_FORMAT, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4566
|
+
var MEM_FORMAT, MEM_FORMAT_LEGACY, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4555
4567
|
var init_mem_codec = __esm({
|
|
4556
4568
|
"core/knowledge/mem-codec.ts"() {
|
|
4557
4569
|
init_state();
|
|
4558
4570
|
MEM_FORMAT = "dotmem.knowledge";
|
|
4571
|
+
MEM_FORMAT_LEGACY = "memorio.knowledge";
|
|
4559
4572
|
MEM_FORMAT_VERSION = 2;
|
|
4560
4573
|
MEM_FORMAT_VERSION_V1 = 1;
|
|
4561
4574
|
expectedFields = {
|
|
@@ -4734,12 +4747,13 @@ async function inspectMem(input) {
|
|
|
4734
4747
|
return { status: artifactError.code, representation: "unknown", message: artifactError.message, parts: [] };
|
|
4735
4748
|
}
|
|
4736
4749
|
}
|
|
4737
|
-
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, signaturePayload, base64UrlEncode, base64UrlDecode, keyIdentity, signaturePath, encodePackage, isZip, decodePackage, verifySignature;
|
|
4750
|
+
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_FORMAT_LEGACY, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, signaturePayload, base64UrlEncode, base64UrlDecode, keyIdentity, signaturePath, encodePackage, isZip, decodePackage, verifySignature;
|
|
4738
4751
|
var init_mem_package = __esm({
|
|
4739
4752
|
"core/knowledge/mem-package.ts"() {
|
|
4740
4753
|
init_browser();
|
|
4741
4754
|
init_mem_codec();
|
|
4742
4755
|
MEM_PACKAGE_FORMAT = "dotmem.package";
|
|
4756
|
+
MEM_PACKAGE_FORMAT_LEGACY = "memorio.package";
|
|
4743
4757
|
MEM_PACKAGE_VERSION = 1;
|
|
4744
4758
|
MEM_PACKAGE_LIMITS = Object.freeze({
|
|
4745
4759
|
maximumPackageBytes: 10 * 1024 * 1024,
|
|
@@ -4930,10 +4944,10 @@ ${contentId}
|
|
|
4930
4944
|
if (!parts[path]) throw new MemArtifactError("invalid", `Missing MEM package part: ${path}`);
|
|
4931
4945
|
}
|
|
4932
4946
|
const manifest = parseJson(parts[MANIFEST_PATH], MANIFEST_PATH);
|
|
4933
|
-
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4947
|
+
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format !== MEM_PACKAGE_FORMAT_LEGACY || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4934
4948
|
throw new MemArtifactError("unsupported", "Unsupported MEM package format or version");
|
|
4935
4949
|
}
|
|
4936
|
-
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4950
|
+
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format !== MEM_FORMAT_LEGACY || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4937
4951
|
throw new MemArtifactError("invalid", "Invalid MEM package manifest");
|
|
4938
4952
|
}
|
|
4939
4953
|
const integrity = parseJson(parts[INTEGRITY_PATH], INTEGRITY_PATH);
|
|
@@ -6957,6 +6971,7 @@ function _inferConfidence(claim) {
|
|
|
6957
6971
|
var LOGIC_MEM_FILE, nodeCwd2, cachedRuntime, LogicEngine, logic, logic_default;
|
|
6958
6972
|
var init_logic = __esm({
|
|
6959
6973
|
"core/logic/index.ts"() {
|
|
6974
|
+
init_suppress_idb_warning();
|
|
6960
6975
|
init_knowledge();
|
|
6961
6976
|
init_mem_repository();
|
|
6962
6977
|
init_acquisition_boundary();
|
|
@@ -7224,6 +7239,9 @@ Do not store secrets unless dotmem explicitly supports secure secret storage.
|
|
|
7224
7239
|
}
|
|
7225
7240
|
});
|
|
7226
7241
|
|
|
7242
|
+
// index.ts
|
|
7243
|
+
init_suppress_idb_warning();
|
|
7244
|
+
|
|
7227
7245
|
// core/idb.ts
|
|
7228
7246
|
var idb = {
|
|
7229
7247
|
db: {},
|
|
@@ -7563,7 +7581,11 @@ var security = {
|
|
|
7563
7581
|
createSanitizer
|
|
7564
7582
|
};
|
|
7565
7583
|
|
|
7584
|
+
// core/memory/index.ts
|
|
7585
|
+
init_suppress_idb_warning();
|
|
7586
|
+
|
|
7566
7587
|
// core/memory/journal.ts
|
|
7588
|
+
init_suppress_idb_warning();
|
|
7567
7589
|
init_env();
|
|
7568
7590
|
var g = globalThis;
|
|
7569
7591
|
function namespace() {
|
|
@@ -7770,6 +7792,7 @@ var journal_default = journal;
|
|
|
7770
7792
|
init_brain();
|
|
7771
7793
|
|
|
7772
7794
|
// core/memory/knowledge-runtime.ts
|
|
7795
|
+
init_suppress_idb_warning();
|
|
7773
7796
|
init_knowledge();
|
|
7774
7797
|
init_project_identity();
|
|
7775
7798
|
init_user_paths();
|
|
@@ -8118,6 +8141,7 @@ var policy = {
|
|
|
8118
8141
|
};
|
|
8119
8142
|
|
|
8120
8143
|
// core/memory/entries.ts
|
|
8144
|
+
init_suppress_idb_warning();
|
|
8121
8145
|
init_env();
|
|
8122
8146
|
var MEMORY_INDEX_KEY = "__dotmem_memory_index__";
|
|
8123
8147
|
var SUPERSEDED_PREFIX = "__dotmem_superseded__";
|
|
@@ -8662,6 +8686,7 @@ var context = {
|
|
|
8662
8686
|
};
|
|
8663
8687
|
|
|
8664
8688
|
// core/memory/acquire.ts
|
|
8689
|
+
init_suppress_idb_warning();
|
|
8665
8690
|
init_env();
|
|
8666
8691
|
init_project_identity();
|
|
8667
8692
|
init_project_anchor();
|
package/llms.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dotmem — AI memory layer for agents and apps (v0.0.8).
|
|
2
|
-
Storage root: <user-home>/.
|
|
2
|
+
Storage root: <user-home>/.dotmem (override: DOTMEM_STORAGE_ROOT)
|
|
3
3
|
|
|
4
4
|
=== Canonical identity and architecture ===
|
|
5
5
|
- Dotmem is the active project and owner of memory, continuity, profiles, agents, and MCP capabilities.
|
|
@@ -364,7 +364,7 @@ Projection statuses:
|
|
|
364
364
|
dotmem, npx dotmem, Joy, Jo
|
|
365
365
|
|
|
366
366
|
Handshake: npx dotmem handshake --status
|
|
367
|
-
Storage: <user-home>/.
|
|
367
|
+
Storage: <user-home>/.dotmem (override: DOTMEM_STORAGE_ROOT)
|
|
368
368
|
Project: <storage>/projects/<project-id>.mem
|
|
369
369
|
User: <storage>/user.mem
|
|
370
370
|
Agent: <storage>/agent.mem
|
package/mcp.cjs
CHANGED
|
@@ -22,6 +22,18 @@ var __export = (target, all) => {
|
|
|
22
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
// suppress-idb-warning.ts
|
|
26
|
+
var orig;
|
|
27
|
+
var init_suppress_idb_warning = __esm({
|
|
28
|
+
"suppress-idb-warning.ts"() {
|
|
29
|
+
orig = console.warn.bind(console);
|
|
30
|
+
console.warn = (...args) => {
|
|
31
|
+
if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
|
|
32
|
+
orig(...args);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
25
37
|
// core/env.ts
|
|
26
38
|
var DEV;
|
|
27
39
|
var init_env = __esm({
|
|
@@ -4466,7 +4478,7 @@ function encodeMemFile(stateValue, preserved) {
|
|
|
4466
4478
|
function decodeMemDocument(value) {
|
|
4467
4479
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Invalid .mem file format");
|
|
4468
4480
|
const file = value;
|
|
4469
|
-
if (file.format !== MEM_FORMAT) throw new Error("Invalid .mem file format");
|
|
4481
|
+
if (file.format !== MEM_FORMAT && file.format !== MEM_FORMAT_LEGACY) throw new Error("Invalid .mem file format");
|
|
4470
4482
|
if (file.version === MEM_FORMAT_VERSION_V1) {
|
|
4471
4483
|
if (!file.knowledge) throw new Error("Invalid .mem file format");
|
|
4472
4484
|
return { state: validateSourceState(file.knowledge) };
|
|
@@ -4548,11 +4560,12 @@ function decodeMemDocument(value) {
|
|
|
4548
4560
|
preserved: { map: structuredClone(map), data: structuredClone(stateRecord) }
|
|
4549
4561
|
};
|
|
4550
4562
|
}
|
|
4551
|
-
var MEM_FORMAT, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4563
|
+
var MEM_FORMAT, MEM_FORMAT_LEGACY, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4552
4564
|
var init_mem_codec = __esm({
|
|
4553
4565
|
"core/knowledge/mem-codec.ts"() {
|
|
4554
4566
|
init_state();
|
|
4555
4567
|
MEM_FORMAT = "dotmem.knowledge";
|
|
4568
|
+
MEM_FORMAT_LEGACY = "memorio.knowledge";
|
|
4556
4569
|
MEM_FORMAT_VERSION = 2;
|
|
4557
4570
|
MEM_FORMAT_VERSION_V1 = 1;
|
|
4558
4571
|
expectedFields = {
|
|
@@ -4658,12 +4671,13 @@ async function decodeMemArtifact(input) {
|
|
|
4658
4671
|
throw new MemArtifactError(message.startsWith("Unsupported") ? "unsupported" : "invalid", message);
|
|
4659
4672
|
}
|
|
4660
4673
|
}
|
|
4661
|
-
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, encodePackage, isZip, decodePackage;
|
|
4674
|
+
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_FORMAT_LEGACY, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, encodePackage, isZip, decodePackage;
|
|
4662
4675
|
var init_mem_package = __esm({
|
|
4663
4676
|
"core/knowledge/mem-package.ts"() {
|
|
4664
4677
|
init_browser();
|
|
4665
4678
|
init_mem_codec();
|
|
4666
4679
|
MEM_PACKAGE_FORMAT = "dotmem.package";
|
|
4680
|
+
MEM_PACKAGE_FORMAT_LEGACY = "memorio.package";
|
|
4667
4681
|
MEM_PACKAGE_VERSION = 1;
|
|
4668
4682
|
MEM_PACKAGE_LIMITS = Object.freeze({
|
|
4669
4683
|
maximumPackageBytes: 10 * 1024 * 1024,
|
|
@@ -4837,10 +4851,10 @@ var init_mem_package = __esm({
|
|
|
4837
4851
|
if (!parts[path]) throw new MemArtifactError("invalid", `Missing MEM package part: ${path}`);
|
|
4838
4852
|
}
|
|
4839
4853
|
const manifest = parseJson(parts[MANIFEST_PATH], MANIFEST_PATH);
|
|
4840
|
-
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4854
|
+
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format !== MEM_PACKAGE_FORMAT_LEGACY || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4841
4855
|
throw new MemArtifactError("unsupported", "Unsupported MEM package format or version");
|
|
4842
4856
|
}
|
|
4843
|
-
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4857
|
+
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format !== MEM_FORMAT_LEGACY || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4844
4858
|
throw new MemArtifactError("invalid", "Invalid MEM package manifest");
|
|
4845
4859
|
}
|
|
4846
4860
|
const integrity = parseJson(parts[INTEGRITY_PATH], INTEGRITY_PATH);
|
|
@@ -6805,6 +6819,7 @@ function _inferConfidence(claim) {
|
|
|
6805
6819
|
var LOGIC_MEM_FILE, nodeCwd2, cachedRuntime, LogicEngine, logic, logic_default;
|
|
6806
6820
|
var init_logic = __esm({
|
|
6807
6821
|
"core/logic/index.ts"() {
|
|
6822
|
+
init_suppress_idb_warning();
|
|
6808
6823
|
init_knowledge();
|
|
6809
6824
|
init_mem_repository();
|
|
6810
6825
|
init_acquisition_boundary();
|
|
@@ -7168,11 +7183,18 @@ var init_note_types = __esm({
|
|
|
7168
7183
|
}
|
|
7169
7184
|
});
|
|
7170
7185
|
|
|
7186
|
+
// core/mcp/index.ts
|
|
7187
|
+
init_suppress_idb_warning();
|
|
7188
|
+
|
|
7171
7189
|
// package.json
|
|
7172
7190
|
var package_default = {
|
|
7173
|
-
version: "0.0
|
|
7191
|
+
version: "0.1.0"};
|
|
7192
|
+
|
|
7193
|
+
// core/memory/index.ts
|
|
7194
|
+
init_suppress_idb_warning();
|
|
7174
7195
|
|
|
7175
7196
|
// core/memory/journal.ts
|
|
7197
|
+
init_suppress_idb_warning();
|
|
7176
7198
|
init_env();
|
|
7177
7199
|
var g = globalThis;
|
|
7178
7200
|
function namespace() {
|
|
@@ -7379,6 +7401,7 @@ var journal_default = journal;
|
|
|
7379
7401
|
init_brain();
|
|
7380
7402
|
|
|
7381
7403
|
// core/memory/knowledge-runtime.ts
|
|
7404
|
+
init_suppress_idb_warning();
|
|
7382
7405
|
init_knowledge();
|
|
7383
7406
|
init_project_identity();
|
|
7384
7407
|
init_user_paths();
|
|
@@ -7776,6 +7799,7 @@ var policy = {
|
|
|
7776
7799
|
};
|
|
7777
7800
|
|
|
7778
7801
|
// core/memory/entries.ts
|
|
7802
|
+
init_suppress_idb_warning();
|
|
7779
7803
|
init_env();
|
|
7780
7804
|
var MEMORY_INDEX_KEY = "__dotmem_memory_index__";
|
|
7781
7805
|
var SUPERSEDED_PREFIX = "__dotmem_superseded__";
|
|
@@ -8320,6 +8344,7 @@ var context = {
|
|
|
8320
8344
|
};
|
|
8321
8345
|
|
|
8322
8346
|
// core/memory/acquire.ts
|
|
8347
|
+
init_suppress_idb_warning();
|
|
8323
8348
|
init_env();
|
|
8324
8349
|
init_project_identity();
|
|
8325
8350
|
init_project_anchor();
|
package/mcp.js
CHANGED
|
@@ -19,6 +19,18 @@ var __export = (target, all) => {
|
|
|
19
19
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
// suppress-idb-warning.ts
|
|
23
|
+
var orig;
|
|
24
|
+
var init_suppress_idb_warning = __esm({
|
|
25
|
+
"suppress-idb-warning.ts"() {
|
|
26
|
+
orig = console.warn.bind(console);
|
|
27
|
+
console.warn = (...args) => {
|
|
28
|
+
if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
|
|
29
|
+
orig(...args);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
22
34
|
// core/env.ts
|
|
23
35
|
var DEV;
|
|
24
36
|
var init_env = __esm({
|
|
@@ -4463,7 +4475,7 @@ function encodeMemFile(stateValue, preserved) {
|
|
|
4463
4475
|
function decodeMemDocument(value) {
|
|
4464
4476
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Invalid .mem file format");
|
|
4465
4477
|
const file = value;
|
|
4466
|
-
if (file.format !== MEM_FORMAT) throw new Error("Invalid .mem file format");
|
|
4478
|
+
if (file.format !== MEM_FORMAT && file.format !== MEM_FORMAT_LEGACY) throw new Error("Invalid .mem file format");
|
|
4467
4479
|
if (file.version === MEM_FORMAT_VERSION_V1) {
|
|
4468
4480
|
if (!file.knowledge) throw new Error("Invalid .mem file format");
|
|
4469
4481
|
return { state: validateSourceState(file.knowledge) };
|
|
@@ -4545,11 +4557,12 @@ function decodeMemDocument(value) {
|
|
|
4545
4557
|
preserved: { map: structuredClone(map), data: structuredClone(stateRecord) }
|
|
4546
4558
|
};
|
|
4547
4559
|
}
|
|
4548
|
-
var MEM_FORMAT, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4560
|
+
var MEM_FORMAT, MEM_FORMAT_LEGACY, MEM_FORMAT_VERSION, MEM_FORMAT_VERSION_V1, expectedFields, epistemicTypes, revisionKinds, claimKinds, isJsonValue2, createMemInterpretationMap, validateSourceState, trimRecord, fieldIndexes, validateVocabulary, put, get, optionalGet, requireRecord, putOptional;
|
|
4549
4561
|
var init_mem_codec = __esm({
|
|
4550
4562
|
"core/knowledge/mem-codec.ts"() {
|
|
4551
4563
|
init_state();
|
|
4552
4564
|
MEM_FORMAT = "dotmem.knowledge";
|
|
4565
|
+
MEM_FORMAT_LEGACY = "memorio.knowledge";
|
|
4553
4566
|
MEM_FORMAT_VERSION = 2;
|
|
4554
4567
|
MEM_FORMAT_VERSION_V1 = 1;
|
|
4555
4568
|
expectedFields = {
|
|
@@ -4655,12 +4668,13 @@ async function decodeMemArtifact(input) {
|
|
|
4655
4668
|
throw new MemArtifactError(message.startsWith("Unsupported") ? "unsupported" : "invalid", message);
|
|
4656
4669
|
}
|
|
4657
4670
|
}
|
|
4658
|
-
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, encodePackage, isZip, decodePackage;
|
|
4671
|
+
var MEM_PACKAGE_FORMAT, MEM_PACKAGE_FORMAT_LEGACY, MEM_PACKAGE_VERSION, MEM_PACKAGE_LIMITS, MEM_PACKAGE_WRITE_MARGIN_BYTES, MEM_PACKAGE_WRITE_LIMITS, MANIFEST_PATH, MAP_PATH, DATA_PATH, INTEGRITY_PATH, requiredParts, encoder2, decoder, MemArtifactError, stableValue, jsonBytes, sha256, parseJson, validEntryPath, concatenate, readZipParts, createManifest, digestTableIdentity, encodePackage, isZip, decodePackage;
|
|
4659
4672
|
var init_mem_package = __esm({
|
|
4660
4673
|
"core/knowledge/mem-package.ts"() {
|
|
4661
4674
|
init_browser();
|
|
4662
4675
|
init_mem_codec();
|
|
4663
4676
|
MEM_PACKAGE_FORMAT = "dotmem.package";
|
|
4677
|
+
MEM_PACKAGE_FORMAT_LEGACY = "memorio.package";
|
|
4664
4678
|
MEM_PACKAGE_VERSION = 1;
|
|
4665
4679
|
MEM_PACKAGE_LIMITS = Object.freeze({
|
|
4666
4680
|
maximumPackageBytes: 10 * 1024 * 1024,
|
|
@@ -4834,10 +4848,10 @@ var init_mem_package = __esm({
|
|
|
4834
4848
|
if (!parts[path]) throw new MemArtifactError("invalid", `Missing MEM package part: ${path}`);
|
|
4835
4849
|
}
|
|
4836
4850
|
const manifest = parseJson(parts[MANIFEST_PATH], MANIFEST_PATH);
|
|
4837
|
-
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4851
|
+
if (manifest.format !== MEM_PACKAGE_FORMAT && manifest.format !== MEM_PACKAGE_FORMAT_LEGACY || manifest.version !== MEM_PACKAGE_VERSION) {
|
|
4838
4852
|
throw new MemArtifactError("unsupported", "Unsupported MEM package format or version");
|
|
4839
4853
|
}
|
|
4840
|
-
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4854
|
+
if (manifest.memory?.format !== MEM_FORMAT && manifest.memory?.format !== MEM_FORMAT_LEGACY || manifest.memory.version !== MEM_FORMAT_VERSION || manifest.parts?.map !== MAP_PATH || manifest.parts?.data !== DATA_PATH || manifest.parts?.integrity !== INTEGRITY_PATH) {
|
|
4841
4855
|
throw new MemArtifactError("invalid", "Invalid MEM package manifest");
|
|
4842
4856
|
}
|
|
4843
4857
|
const integrity = parseJson(parts[INTEGRITY_PATH], INTEGRITY_PATH);
|
|
@@ -6802,6 +6816,7 @@ function _inferConfidence(claim) {
|
|
|
6802
6816
|
var LOGIC_MEM_FILE, nodeCwd2, cachedRuntime, LogicEngine, logic, logic_default;
|
|
6803
6817
|
var init_logic = __esm({
|
|
6804
6818
|
"core/logic/index.ts"() {
|
|
6819
|
+
init_suppress_idb_warning();
|
|
6805
6820
|
init_knowledge();
|
|
6806
6821
|
init_mem_repository();
|
|
6807
6822
|
init_acquisition_boundary();
|
|
@@ -7165,11 +7180,18 @@ var init_note_types = __esm({
|
|
|
7165
7180
|
}
|
|
7166
7181
|
});
|
|
7167
7182
|
|
|
7183
|
+
// core/mcp/index.ts
|
|
7184
|
+
init_suppress_idb_warning();
|
|
7185
|
+
|
|
7168
7186
|
// package.json
|
|
7169
7187
|
var package_default = {
|
|
7170
|
-
version: "0.0
|
|
7188
|
+
version: "0.1.0"};
|
|
7189
|
+
|
|
7190
|
+
// core/memory/index.ts
|
|
7191
|
+
init_suppress_idb_warning();
|
|
7171
7192
|
|
|
7172
7193
|
// core/memory/journal.ts
|
|
7194
|
+
init_suppress_idb_warning();
|
|
7173
7195
|
init_env();
|
|
7174
7196
|
var g = globalThis;
|
|
7175
7197
|
function namespace() {
|
|
@@ -7376,6 +7398,7 @@ var journal_default = journal;
|
|
|
7376
7398
|
init_brain();
|
|
7377
7399
|
|
|
7378
7400
|
// core/memory/knowledge-runtime.ts
|
|
7401
|
+
init_suppress_idb_warning();
|
|
7379
7402
|
init_knowledge();
|
|
7380
7403
|
init_project_identity();
|
|
7381
7404
|
init_user_paths();
|
|
@@ -7773,6 +7796,7 @@ var policy = {
|
|
|
7773
7796
|
};
|
|
7774
7797
|
|
|
7775
7798
|
// core/memory/entries.ts
|
|
7799
|
+
init_suppress_idb_warning();
|
|
7776
7800
|
init_env();
|
|
7777
7801
|
var MEMORY_INDEX_KEY = "__dotmem_memory_index__";
|
|
7778
7802
|
var SUPERSEDED_PREFIX = "__dotmem_superseded__";
|
|
@@ -8317,6 +8341,7 @@ var context = {
|
|
|
8317
8341
|
};
|
|
8318
8342
|
|
|
8319
8343
|
// core/memory/acquire.ts
|
|
8344
|
+
init_suppress_idb_warning();
|
|
8320
8345
|
init_env();
|
|
8321
8346
|
init_project_identity();
|
|
8322
8347
|
init_project_anchor();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dotmem",
|
|
3
3
|
"codeName": "dotmem",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "The AI memory layer for agents and apps: acquired experience, discovery, context projection, continuity, and logic engine. Built on Memorio's state+store foundation.",
|