@remnic/core 9.3.614 → 9.3.616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-cli.js +3 -3
- package/dist/access-http.d.ts +1 -1
- package/dist/access-http.js +5 -5
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-mcp.js +4 -4
- package/dist/access-schema.d.ts +48 -36
- package/dist/access-schema.js +1 -1
- package/dist/{access-service-DGG_2xPK.d.ts → access-service-CBNEKjzN.d.ts} +70 -5
- package/dist/access-service.d.ts +1 -1
- package/dist/access-service.js +2 -2
- package/dist/{chunk-B6FDZPCF.js → chunk-5OHHEORR.js} +50 -15
- package/dist/chunk-5OHHEORR.js.map +1 -0
- package/dist/{chunk-T5XWMMU2.js → chunk-EXUAP5LH.js} +2 -2
- package/dist/{chunk-EUML3N6B.js → chunk-IMA6GU4Y.js} +3 -3
- package/dist/chunk-IMA6GU4Y.js.map +1 -0
- package/dist/{chunk-7YQFWOF7.js → chunk-KGLPJROV.js} +4 -4
- package/dist/{chunk-VPGUMLBA.js → chunk-NM5NQYJE.js} +16 -16
- package/dist/chunk-NM5NQYJE.js.map +1 -0
- package/dist/{chunk-QEMCQFDW.js → chunk-WD2W4234.js} +8 -2
- package/dist/chunk-WD2W4234.js.map +1 -0
- package/dist/{chunk-ADNZVFXG.js → chunk-ZK32E74R.js} +142 -31
- package/dist/chunk-ZK32E74R.js.map +1 -0
- package/dist/{cli-DWeu7eTY.d.ts → cli-Cw729yLf.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +6 -6
- package/dist/explicit-capture.d.ts +10 -0
- package/dist/explicit-capture.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/orchestrator.js +2 -2
- package/dist/schemas.d.ts +64 -64
- package/dist/shared-context/manager.d.ts +2 -2
- package/dist/transfer/types.d.ts +12 -12
- package/package.json +1 -1
- package/src/access-http.ts +21 -10
- package/src/access-mcp.test.ts +109 -0
- package/src/access-mcp.ts +46 -2
- package/src/access-schema.ts +11 -0
- package/src/access-service-coding-write.test.ts +478 -0
- package/src/access-service.ts +237 -32
- package/src/explicit-capture.ts +19 -2
- package/dist/chunk-ADNZVFXG.js.map +0 -1
- package/dist/chunk-B6FDZPCF.js.map +0 -1
- package/dist/chunk-EUML3N6B.js.map +0 -1
- package/dist/chunk-QEMCQFDW.js.map +0 -1
- package/dist/chunk-VPGUMLBA.js.map +0 -1
- /package/dist/{chunk-T5XWMMU2.js.map → chunk-EXUAP5LH.js.map} +0 -0
- /package/dist/{chunk-7YQFWOF7.js.map → chunk-KGLPJROV.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-D24OXEPB.js";
|
|
12
12
|
import {
|
|
13
13
|
EngramAccessInputError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZK32E74R.js";
|
|
15
15
|
import {
|
|
16
16
|
projectTagProjectId
|
|
17
17
|
} from "./chunk-EDQVAMQI.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-JUC24CTX.js";
|
|
27
27
|
import {
|
|
28
28
|
validateRequest
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WD2W4234.js";
|
|
30
30
|
|
|
31
31
|
// src/access-mcp.ts
|
|
32
32
|
import { readFile } from "fs/promises";
|
|
@@ -64,7 +64,9 @@ var STRICT_MCP_SCHEMA_KEYS = {
|
|
|
64
64
|
"tags",
|
|
65
65
|
"entityRef",
|
|
66
66
|
"ttl",
|
|
67
|
-
"sourceReason"
|
|
67
|
+
"sourceReason",
|
|
68
|
+
"cwd",
|
|
69
|
+
"projectTag"
|
|
68
70
|
],
|
|
69
71
|
suggestionSubmit: [
|
|
70
72
|
"schemaVersion",
|
|
@@ -78,7 +80,9 @@ var STRICT_MCP_SCHEMA_KEYS = {
|
|
|
78
80
|
"tags",
|
|
79
81
|
"entityRef",
|
|
80
82
|
"ttl",
|
|
81
|
-
"sourceReason"
|
|
83
|
+
"sourceReason",
|
|
84
|
+
"cwd",
|
|
85
|
+
"projectTag"
|
|
82
86
|
],
|
|
83
87
|
capsuleExport: [
|
|
84
88
|
"name",
|
|
@@ -87,10 +91,32 @@ var STRICT_MCP_SCHEMA_KEYS = {
|
|
|
87
91
|
"includeKinds",
|
|
88
92
|
"peerIds",
|
|
89
93
|
"includeTranscripts",
|
|
90
|
-
"encrypt"
|
|
94
|
+
"encrypt",
|
|
95
|
+
"cwd",
|
|
96
|
+
"projectTag"
|
|
91
97
|
],
|
|
92
|
-
capsuleImport: ["archivePath", "namespace", "mode", "passphrase"],
|
|
93
|
-
capsuleList: ["namespace"]
|
|
98
|
+
capsuleImport: ["archivePath", "namespace", "mode", "passphrase", "cwd", "projectTag"],
|
|
99
|
+
capsuleList: ["namespace", "cwd", "projectTag"]
|
|
100
|
+
};
|
|
101
|
+
var MCP_GIT_CONTEXT_SCHEMA_PROPS_SCOPED = {
|
|
102
|
+
cwd: {
|
|
103
|
+
type: "string",
|
|
104
|
+
description: "Optional working directory. When no explicit namespace is given, resolves the project namespace this write is stored in (mirrors recall/observe)."
|
|
105
|
+
},
|
|
106
|
+
projectTag: {
|
|
107
|
+
type: "string",
|
|
108
|
+
description: "Optional project tag for non-git project scoping. When no explicit namespace is given, routes this write to the tagged project namespace."
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var MCP_GIT_CONTEXT_SCHEMA_PROPS_IGNORED = {
|
|
112
|
+
cwd: {
|
|
113
|
+
type: "string",
|
|
114
|
+
description: "Accepted for MCP client compatibility (git-context auto-injection); ignored by this tool."
|
|
115
|
+
},
|
|
116
|
+
projectTag: {
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "Accepted for MCP client compatibility; ignored by this tool."
|
|
119
|
+
}
|
|
94
120
|
};
|
|
95
121
|
function parseMcpRequest(schemaName, args) {
|
|
96
122
|
const allowedKeys = STRICT_MCP_SCHEMA_KEYS[schemaName];
|
|
@@ -490,7 +516,8 @@ var EngramMcpServer = class {
|
|
|
490
516
|
description: "Optional peer id allow-list for the peers/ subtree."
|
|
491
517
|
},
|
|
492
518
|
includeTranscripts: { type: "boolean" },
|
|
493
|
-
encrypt: { type: "boolean" }
|
|
519
|
+
encrypt: { type: "boolean" },
|
|
520
|
+
...MCP_GIT_CONTEXT_SCHEMA_PROPS_IGNORED
|
|
494
521
|
},
|
|
495
522
|
required: ["name"],
|
|
496
523
|
additionalProperties: false
|
|
@@ -515,7 +542,8 @@ var EngramMcpServer = class {
|
|
|
515
542
|
passphrase: {
|
|
516
543
|
type: "string",
|
|
517
544
|
description: "Passphrase for encrypted capsule archives."
|
|
518
|
-
}
|
|
545
|
+
},
|
|
546
|
+
...MCP_GIT_CONTEXT_SCHEMA_PROPS_IGNORED
|
|
519
547
|
},
|
|
520
548
|
required: ["archivePath"],
|
|
521
549
|
additionalProperties: false
|
|
@@ -527,7 +555,8 @@ var EngramMcpServer = class {
|
|
|
527
555
|
inputSchema: {
|
|
528
556
|
type: "object",
|
|
529
557
|
properties: {
|
|
530
|
-
namespace: { type: "string" }
|
|
558
|
+
namespace: { type: "string" },
|
|
559
|
+
...MCP_GIT_CONTEXT_SCHEMA_PROPS_IGNORED
|
|
531
560
|
},
|
|
532
561
|
additionalProperties: false
|
|
533
562
|
}
|
|
@@ -628,7 +657,8 @@ var EngramMcpServer = class {
|
|
|
628
657
|
tags: { type: "array", items: { type: "string" } },
|
|
629
658
|
entityRef: { type: "string" },
|
|
630
659
|
ttl: { type: "string" },
|
|
631
|
-
sourceReason: { type: "string" }
|
|
660
|
+
sourceReason: { type: "string" },
|
|
661
|
+
...MCP_GIT_CONTEXT_SCHEMA_PROPS_SCOPED
|
|
632
662
|
},
|
|
633
663
|
required: ["content"],
|
|
634
664
|
additionalProperties: false
|
|
@@ -651,7 +681,8 @@ var EngramMcpServer = class {
|
|
|
651
681
|
tags: { type: "array", items: { type: "string" } },
|
|
652
682
|
entityRef: { type: "string" },
|
|
653
683
|
ttl: { type: "string" },
|
|
654
|
-
sourceReason: { type: "string" }
|
|
684
|
+
sourceReason: { type: "string" },
|
|
685
|
+
...MCP_GIT_CONTEXT_SCHEMA_PROPS_SCOPED
|
|
655
686
|
},
|
|
656
687
|
required: ["content"],
|
|
657
688
|
additionalProperties: false
|
|
@@ -2246,7 +2277,9 @@ ${body}`;
|
|
|
2246
2277
|
tags: body.tags,
|
|
2247
2278
|
entityRef: body.entityRef,
|
|
2248
2279
|
ttl: body.ttl,
|
|
2249
|
-
sourceReason: body.sourceReason
|
|
2280
|
+
sourceReason: body.sourceReason,
|
|
2281
|
+
cwd: body.cwd,
|
|
2282
|
+
projectTag: body.projectTag
|
|
2250
2283
|
});
|
|
2251
2284
|
}
|
|
2252
2285
|
case "engram.suggestion_submit": {
|
|
@@ -2264,7 +2297,9 @@ ${body}`;
|
|
|
2264
2297
|
tags: body.tags,
|
|
2265
2298
|
entityRef: body.entityRef,
|
|
2266
2299
|
ttl: body.ttl,
|
|
2267
|
-
sourceReason: body.sourceReason
|
|
2300
|
+
sourceReason: body.sourceReason,
|
|
2301
|
+
cwd: body.cwd,
|
|
2302
|
+
projectTag: body.projectTag
|
|
2268
2303
|
});
|
|
2269
2304
|
}
|
|
2270
2305
|
case "engram.entity_get":
|
|
@@ -2868,4 +2903,4 @@ ${body}`;
|
|
|
2868
2903
|
export {
|
|
2869
2904
|
EngramMcpServer
|
|
2870
2905
|
};
|
|
2871
|
-
//# sourceMappingURL=chunk-
|
|
2906
|
+
//# sourceMappingURL=chunk-5OHHEORR.js.map
|