@sentropic/cluster-mesh 0.24.0 → 0.25.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.
Files changed (97) hide show
  1. package/README.md +5 -0
  2. package/dist/engram-memory/wire-adaptation.d.ts +1 -1
  3. package/dist/engram-memory/wire-adaptation.d.ts.map +1 -1
  4. package/dist/engram-memory/wire-adaptation.js +24 -8
  5. package/dist/engram-memory/wire-adaptation.js.map +1 -1
  6. package/dist/identity-contracts/access.d.ts +54 -0
  7. package/dist/identity-contracts/access.d.ts.map +1 -0
  8. package/dist/identity-contracts/access.js +168 -0
  9. package/dist/identity-contracts/access.js.map +1 -0
  10. package/dist/identity-contracts/accounts.d.ts +44 -0
  11. package/dist/identity-contracts/accounts.d.ts.map +1 -0
  12. package/dist/identity-contracts/accounts.js +149 -0
  13. package/dist/identity-contracts/accounts.js.map +1 -0
  14. package/dist/identity-contracts/descriptors.d.ts +12 -0
  15. package/dist/identity-contracts/descriptors.d.ts.map +1 -0
  16. package/dist/identity-contracts/descriptors.js +57 -0
  17. package/dist/identity-contracts/descriptors.js.map +1 -0
  18. package/dist/identity-contracts/doubles.d.ts +115 -0
  19. package/dist/identity-contracts/doubles.d.ts.map +1 -0
  20. package/dist/identity-contracts/doubles.js +340 -0
  21. package/dist/identity-contracts/doubles.js.map +1 -0
  22. package/dist/identity-contracts/enforcement.d.ts +27 -0
  23. package/dist/identity-contracts/enforcement.d.ts.map +1 -0
  24. package/dist/identity-contracts/enforcement.js +155 -0
  25. package/dist/identity-contracts/enforcement.js.map +1 -0
  26. package/dist/identity-contracts/errors.d.ts +71 -0
  27. package/dist/identity-contracts/errors.d.ts.map +1 -0
  28. package/dist/identity-contracts/errors.js +129 -0
  29. package/dist/identity-contracts/errors.js.map +1 -0
  30. package/dist/identity-contracts/index.d.ts +12 -0
  31. package/dist/identity-contracts/index.d.ts.map +1 -0
  32. package/dist/identity-contracts/index.js +13 -0
  33. package/dist/identity-contracts/index.js.map +1 -0
  34. package/dist/identity-contracts/ports.d.ts +116 -0
  35. package/dist/identity-contracts/ports.d.ts.map +1 -0
  36. package/dist/identity-contracts/ports.js +7 -0
  37. package/dist/identity-contracts/ports.js.map +1 -0
  38. package/dist/identity-contracts/resolution.d.ts +56 -0
  39. package/dist/identity-contracts/resolution.d.ts.map +1 -0
  40. package/dist/identity-contracts/resolution.js +87 -0
  41. package/dist/identity-contracts/resolution.js.map +1 -0
  42. package/dist/identity-contracts/tenancy.d.ts +52 -0
  43. package/dist/identity-contracts/tenancy.d.ts.map +1 -0
  44. package/dist/identity-contracts/tenancy.js +171 -0
  45. package/dist/identity-contracts/tenancy.js.map +1 -0
  46. package/dist/identity-contracts/types.d.ts +253 -0
  47. package/dist/identity-contracts/types.d.ts.map +1 -0
  48. package/dist/identity-contracts/types.js +7 -0
  49. package/dist/identity-contracts/types.js.map +1 -0
  50. package/dist/identity-contracts/workspaces.d.ts +37 -0
  51. package/dist/identity-contracts/workspaces.d.ts.map +1 -0
  52. package/dist/identity-contracts/workspaces.js +118 -0
  53. package/dist/identity-contracts/workspaces.js.map +1 -0
  54. package/dist/index.d.ts +1 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +1 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/integrations/mcp/memory-compose.d.ts +11 -0
  59. package/dist/integrations/mcp/memory-compose.d.ts.map +1 -0
  60. package/dist/integrations/mcp/memory-compose.js +79 -0
  61. package/dist/integrations/mcp/memory-compose.js.map +1 -0
  62. package/dist/integrations/mcp/memory-definition.d.ts +28 -0
  63. package/dist/integrations/mcp/memory-definition.d.ts.map +1 -0
  64. package/dist/integrations/mcp/memory-definition.js +2 -0
  65. package/dist/integrations/mcp/memory-definition.js.map +1 -0
  66. package/dist/integrations/mcp/memory-manifest.d.ts +4 -0
  67. package/dist/integrations/mcp/memory-manifest.d.ts.map +1 -0
  68. package/dist/integrations/mcp/memory-manifest.js +9 -0
  69. package/dist/integrations/mcp/memory-manifest.js.map +1 -0
  70. package/dist/integrations/mcp/memory-transport.d.ts +21 -0
  71. package/dist/integrations/mcp/memory-transport.d.ts.map +1 -0
  72. package/dist/integrations/mcp/memory-transport.js +47 -0
  73. package/dist/integrations/mcp/memory-transport.js.map +1 -0
  74. package/dist/integrations/mcp/memory.d.ts +19 -0
  75. package/dist/integrations/mcp/memory.d.ts.map +1 -0
  76. package/dist/integrations/mcp/memory.js +40 -0
  77. package/dist/integrations/mcp/memory.js.map +1 -0
  78. package/dist/loaders/mcp/index.d.ts +1 -0
  79. package/dist/loaders/mcp/index.d.ts.map +1 -1
  80. package/dist/loaders/mcp/index.js +1 -0
  81. package/dist/loaders/mcp/index.js.map +1 -1
  82. package/dist/loaders/mcp/memory.d.ts +6 -0
  83. package/dist/loaders/mcp/memory.d.ts.map +1 -0
  84. package/dist/loaders/mcp/memory.js +9 -0
  85. package/dist/loaders/mcp/memory.js.map +1 -0
  86. package/dist/modules/catalog.d.ts +2 -0
  87. package/dist/modules/catalog.d.ts.map +1 -1
  88. package/dist/modules/catalog.js +15 -1
  89. package/dist/modules/catalog.js.map +1 -1
  90. package/dist/modules/contracts.d.ts +1 -1
  91. package/dist/modules/contracts.d.ts.map +1 -1
  92. package/dist/modules/contracts.js +2 -0
  93. package/dist/modules/contracts.js.map +1 -1
  94. package/docs/memory-mcp-candidate.md +46 -0
  95. package/docs/memory-mcp.md +98 -0
  96. package/examples/memory-mcp-stdio.mjs +42 -0
  97. package/package.json +11 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/identity-contracts/workspaces.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,w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CAAC,SAAS,yBAAyB,EAAE,CAAC,CAAC;CAC1F;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;CAChC,GAAG,wBAAwB,CA6G3B"}
@@ -0,0 +1,118 @@
1
+ // Identity core contracts: workspaces per repo and workspace memberships (F08).
2
+ // By default a workspace may use every enrolled CLI; a restriction is an
3
+ // explicit policy record owned by a later lot, never an absence side effect.
4
+ import { IdentityConflictError, IdentityNotFoundError, WorkspaceAlreadyEnrolledError } from './errors.js';
5
+ import { systemIdentityClock, } from './types.js';
6
+ export function createWorkspaceDirectory(input) {
7
+ const clock = input.clock ?? systemIdentityClock;
8
+ async function requireWorkspace(workspaceId) {
9
+ const workspace = await input.workspaces.findWorkspace(workspaceId);
10
+ if (!workspace)
11
+ throw new IdentityNotFoundError('workspace', workspaceId);
12
+ return workspace;
13
+ }
14
+ return {
15
+ async enrolWorkspace(enrolment) {
16
+ const existing = await input.workspaces.findWorkspace(enrolment.workspaceId);
17
+ if (existing)
18
+ throw new IdentityConflictError('duplicate', `Workspace exists: ${enrolment.workspaceId}`);
19
+ if (enrolment.repoIdentity !== null) {
20
+ const sameRepo = await input.workspaces.findWorkspaceByRepoIdentity(enrolment.tenantId, enrolment.repoIdentity);
21
+ if (sameRepo)
22
+ throw new WorkspaceAlreadyEnrolledError(sameRepo.workspaceId);
23
+ }
24
+ const now = clock();
25
+ const record = {
26
+ workspaceId: enrolment.workspaceId,
27
+ tenantId: enrolment.tenantId,
28
+ repoIdentity: enrolment.repoIdentity,
29
+ aliases: [],
30
+ enrolledAt: now,
31
+ };
32
+ await input.workspaces.enrolWorkspace(record);
33
+ await input.members.putWorkspaceMember({
34
+ workspaceId: record.workspaceId,
35
+ userId: enrolment.creatorUserId,
36
+ role: 'admin',
37
+ });
38
+ await input.audit.append({ at: now, kind: 'workspace.enrolled', subjectId: record.workspaceId });
39
+ return record;
40
+ },
41
+ async getWorkspace(workspaceId) {
42
+ return requireWorkspace(workspaceId);
43
+ },
44
+ async addWorkspaceMember(member) {
45
+ await requireWorkspace(member.workspaceId);
46
+ const now = clock();
47
+ const record = await input.members.putWorkspaceMember({
48
+ workspaceId: member.workspaceId,
49
+ userId: member.userId,
50
+ role: member.role,
51
+ });
52
+ await input.audit.append({
53
+ at: now,
54
+ kind: 'workspace.member_added',
55
+ actorId: member.actorId,
56
+ subjectId: `${member.workspaceId}/${member.userId}`,
57
+ });
58
+ return record;
59
+ },
60
+ async setWorkspaceRole(member) {
61
+ await requireWorkspace(member.workspaceId);
62
+ const existing = await input.members.findWorkspaceMember(member.workspaceId, member.userId);
63
+ if (!existing)
64
+ throw new IdentityNotFoundError('membership', `${member.workspaceId}/${member.userId}`);
65
+ const now = clock();
66
+ const record = await input.members.putWorkspaceMember({
67
+ workspaceId: member.workspaceId,
68
+ userId: member.userId,
69
+ role: member.role,
70
+ });
71
+ await input.audit.append({
72
+ at: now,
73
+ kind: 'workspace.member_role_changed',
74
+ actorId: member.actorId,
75
+ subjectId: `${member.workspaceId}/${member.userId}`,
76
+ });
77
+ return record;
78
+ },
79
+ async removeWorkspaceMember(removal) {
80
+ await requireWorkspace(removal.workspaceId);
81
+ const members = await input.members.listWorkspaceMembers(removal.workspaceId);
82
+ const target = members.find((member) => member.userId === removal.userId);
83
+ if (!target)
84
+ return false;
85
+ const admins = members.filter((member) => member.role === 'admin');
86
+ if (target.role === 'admin' && admins.length === 1) {
87
+ throw new IdentityConflictError('last_admin', `Cannot remove the last admin of ${removal.workspaceId}`);
88
+ }
89
+ const removed = await input.members.removeWorkspaceMember(removal.workspaceId, removal.userId);
90
+ if (removed) {
91
+ await input.audit.append({
92
+ at: clock(),
93
+ kind: 'workspace.member_removed',
94
+ actorId: removal.actorId,
95
+ subjectId: `${removal.workspaceId}/${removal.userId}`,
96
+ });
97
+ }
98
+ return removed;
99
+ },
100
+ async approveWorkspaceAlias(workspaceId, alias, actorId) {
101
+ await requireWorkspace(workspaceId);
102
+ const updated = await input.workspaces.approveWorkspaceAlias(workspaceId, alias);
103
+ await input.audit.append({
104
+ at: clock(),
105
+ kind: 'workspace.alias_approved',
106
+ actorId,
107
+ subjectId: workspaceId,
108
+ detail: alias,
109
+ });
110
+ return updated;
111
+ },
112
+ async listWorkspaceMembers(workspaceId) {
113
+ await requireWorkspace(workspaceId);
114
+ return input.members.listWorkspaceMembers(workspaceId);
115
+ },
116
+ };
117
+ }
118
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/identity-contracts/workspaces.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yEAAyE;AACzE,6EAA6E;AAE7E,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAM1G,OAAO,EACL,mBAAmB,GAKpB,MAAM,YAAY,CAAC;AA+BpB,MAAM,UAAU,wBAAwB,CAAC,KAKxC;IACC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,mBAAmB,CAAC;IACjD,KAAK,UAAU,gBAAgB,CAAC,WAAmB;QACjD,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QACpE,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,qBAAqB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC1E,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO;QACL,KAAK,CAAC,cAAc,CAAC,SAAS;YAC5B,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YAC7E,IAAI,QAAQ;g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OAAO,CAAC;QACjB,CAAC;QACD,KAAK,CAAC,qBAAqB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO;YACrD,MAAM,gBAAgB,CAAC,WAAW,CAAC,CAAC;YACpC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YACjF,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;gBACvB,EAAE,EAAE,KAAK,EAAE;gBACX,IAAI,EAAE,0BAA0B;gBAChC,OAAO;gBACP,SAAS,EAAE,WAAW;gBACtB,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,KAAK,CAAC,oBAAoB,CAAC,WAAW;YACpC,MAAM,gBAAgB,CAAC,WAAW,CAAC,CAAC;YACpC,OAAO,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QACzD,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -37,4 +37,5 @@ export * from './modules/errors.js';
37
37
  export * from './modules/contracts.js';
38
38
  export { createClusterMeshModules } from './modules/registry.js';
39
39
  export { CLUSTER_MESH_TOPOLOGY_INVALID, ClusterMeshTopologyError, isClusterMeshTopologyError, verifyClusterMeshTopology, type ClusterMeshTopologyReason, type ClusterMeshTopologyReport, type TopologyPackage, type VerifyClusterMeshTopologyOptions, } from './modules/topology.js';
40
+ export * from './identity-contracts/index.js';
40
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACz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racts.js';
38
38
  export { createClusterMeshModules } from './modules/registry.js';
39
39
  export { CLUSTER_MESH_TOPOLOGY_INVALID, ClusterMeshTopologyError, isClusterMeshTopologyError, verifyClusterMeshTopology, } from './modules/topology.js';
40
+ export * from './identity-contracts/index.js';
40
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAs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AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,GAK1B,MAAM,uBAAuB,CAAC;AAC/B,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import type * as MemoryMcp from '@sentropic/engram/mcp-memory';
3
+ import type * as MemorySubstrate from '@sentropic/engram/memory-substrate';
4
+ import type { ProviderParameterSchema, RegistryDefinition } from '@sentropic/mcp-platform/registry';
5
+ import type { EngramMemoryDefinitionOptions, EngramMemoryRuntime } from './memory-definition.js';
6
+ /** The producer owns all memory semantics; this module supplies the PostgreSQL handle. */
7
+ export declare function composeEngramMemoryDefinition(mcp: typeof MemoryMcp, substrate: typeof MemorySubstrate, host: EngramMemoryDefinitionOptions, parameterSchema: ProviderParameterSchema): Promise<{
8
+ definition: RegistryDefinition;
9
+ runtime: EngramMemoryRuntime;
10
+ }>;
11
+ //# sourceMappingURL=memory-compose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-compose.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-compose.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAKpG,OAAO,KAAK,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGjG,0FAA0F;AAC1F,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,OAAO,SAAS,EACrB,SAAS,EAAE,OAAO,eAAe,EACjC,IAAI,EAAE,6BAA6B,EACnC,eAAe,EAAE,uBAAuB,GACvC,OAAO,CAAC;IAAE,UAAU,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,mBAAmB,CAAA;CAAE,CAAC,CA8D3E"}
@@ -0,0 +1,79 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import { computeManifestDigest } from '@sentropic/mcp-platform/tool-configuration';
3
+ import { MEMORY_TOOL_NAMES } from '@sentropic/mcp-platform/memory';
4
+ import { createMemoryNeutralHandle } from '../../engram-memory/neutral-handle.js';
5
+ import { verifyHostBinding } from '../../engram-memory/binding.js';
6
+ import { createEngramMemoryWireManifest } from './memory-manifest.js';
7
+ /** The producer owns all memory semantics; this module supplies the PostgreSQL handle. */
8
+ export async function composeEngramMemoryDefinition(mcp, substrate, host, parameterSchema) {
9
+ if (host.activation?.hostEnabled !== true || host.activation.tenantEnabled !== true || host.activation.persisted !== true) {
10
+ throw new Error('memory MCP requires persisted host and tenant activation');
11
+ }
12
+ if (JSON.stringify(mcp.MEMORY_TOOL_NAMES) !== JSON.stringify(MEMORY_TOOL_NAMES)) {
13
+ throw new Error('incompatible memory MCP tool inventory');
14
+ }
15
+ if ('allow_unfenced_memory_store' in host.dependencies || 'on_unfenced_memory_store_permitted' in host.dependencies) {
16
+ throw new Error('memory MCP requires a fenced PostgreSQL store');
17
+ }
18
+ if (host.provider.readHost.clock !== host.dependencies.clock || host.provider.writeHost.clock !== host.dependencies.clock) {
19
+ throw new Error('memory MCP requires one shared host clock');
20
+ }
21
+ const { scopeBinding, storage } = host;
22
+ const resolved = scopeBinding.resolveScope(host.scopeRef);
23
+ if (!resolved || resolved.tenantId !== scopeBinding.scope.tenantId || resolved.workspaceId !== scopeBinding.scope.workspaceId) {
24
+ throw new Error('memory MCP scope reference differs from the host binding');
25
+ }
26
+ await verifyHostBinding(storage.kernel, storage.binding, scopeBinding.scope, scopeBinding.store_id);
27
+ const neutral = createMemoryNeutralHandle({ ...storage, scope: scopeBinding.scope });
28
+ let store;
29
+ const close = async () => {
30
+ try {
31
+ if (store)
32
+ await store.close();
33
+ }
34
+ finally {
35
+ await storage.kernel.ownership?.release();
36
+ }
37
+ };
38
+ try {
39
+ const opened = await substrate.openModuleStorageCanonicalMemoryStoreV1({
40
+ handle: neutral.handle, grant: storage.binding.memoryGrant, scope_binding: scopeBinding,
41
+ clock: host.dependencies.clock, deadline_at: host.deadlineAt,
42
+ });
43
+ if (!opened.ok)
44
+ throw new Error(`memory canonical store refused: ${opened.error.code}`);
45
+ store = opened.value;
46
+ const fence = neutral.getFence();
47
+ if (!fence)
48
+ throw new Error('memory canonical store has no acquired fence');
49
+ const dependencies = { ...host.dependencies, canonical_store: store };
50
+ const binding = { scope_ref: host.scopeRef, store_id: scopeBinding.store_id };
51
+ const adapter = mcp.createEngramMemoryProviderV1({ ...host.provider,
52
+ readFacets: mcp.createMemoryReadFacetsV1(dependencies, binding),
53
+ writeFacets: { ...binding, engine: mcp.createMemoryPortV2(dependencies) },
54
+ hostBindings: { ...host.hostBindings, profileBindings: mcp.MEMORY_FROZEN_PROFILE_BINDINGS_V1,
55
+ engine: { mutationPortVersion: 2, recallPortVersion: 3, readPortVersion: 1,
56
+ engineId: host.engineId, canonicalStoreId: scopeBinding.store_id, fenceProvenanceId: fence.fenceId } },
57
+ });
58
+ const server = await mcp.createEngramMemoryMcpServerV1(adapter);
59
+ // Discovery uses SDK object roots; the adapter retains its strict producer manifest.
60
+ const manifest = createEngramMemoryWireManifest(adapter.manifest);
61
+ const handlers = {};
62
+ const toolValues = {};
63
+ for (const tool of adapter.manifest.tools) {
64
+ const handlerId = `${tool.name}-handler`;
65
+ handlers[handlerId] = { handlerId, capabilityRef: tool.name,
66
+ configSchema: { type: 'object', properties: {}, additionalProperties: false } };
67
+ toolValues[tool.name] = { handlerId, values: {} };
68
+ }
69
+ return { runtime: { server, adapter, close }, definition: {
70
+ manifest, adapter, parameterSchema, handlers, toolValues, requiredPorts: [],
71
+ provenance: { ...host.provenance, manifestDigest: computeManifestDigest(manifest) },
72
+ } };
73
+ }
74
+ catch (error) {
75
+ await close();
76
+ throw error;
77
+ }
78
+ }
79
+ //# sourceMappingURL=memory-compose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-compose.js","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-compose.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAI7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,GAAqB,EACrB,SAAiC,EACjC,IAAmC,EACnC,eAAwC;IAExC,IAAI,IAAI,CAAC,UAAU,EAAE,WAAW,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QAC1H,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAC9E,CAAC;IACD,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAChF,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IACD,IAAI,6BAA6B,IAAI,IAAI,CAAC,YAAY,IAAI,oCAAoC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACpH,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,IAAI,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CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAChE,qFAAqF;QACrF,MAAM,QAAQ,GAAG,8BAA8B,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAwF,EAAE,CAAC;QACzG,MAAM,UAAU,GAA2E,EAAE,CAAC;QAC9F,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;YAC1C,MAAM,SAAS,GAAG,GAAG,IAAI,CAAC,IAAI,UAAU,CAAC;YACzC,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,CAAC,IAAI;gBACzD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE,CAAC;YAClF,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QACpD,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE;gBACxD,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE;gBAC3E,UAAU,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EAAE;aACpF,EAAE,CAAC;IACN,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,KAAK,EAAE,CAAC;QACd,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,28 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import type { McpMemoryProviderOptions, EngramMemoryMcpServerV1 } from '@sentropic/engram/mcp-memory';
3
+ import type { MemoryEngineDependenciesV2, ModuleStorageMemoryStoreOptionsV1 } from '@sentropic/engram/memory-substrate';
4
+ import type { CreateMemoryNeutralHandleInput } from '../../engram-memory/neutral-handle.js';
5
+ import type { ToolConfigurationProvenance } from '@sentropic/mcp-platform/tool-configuration';
6
+ /** Host authorities stay explicit; the builtin owns only the in-process wiring. */
7
+ export interface EngramMemoryDefinitionOptions {
8
+ readonly activation: {
9
+ readonly hostEnabled: true;
10
+ readonly tenantEnabled: true;
11
+ readonly persisted: true;
12
+ };
13
+ readonly storage: CreateMemoryNeutralHandleInput;
14
+ readonly scopeBinding: ModuleStorageMemoryStoreOptionsV1['scope_binding'];
15
+ readonly scopeRef: string;
16
+ readonly deadlineAt: string;
17
+ readonly engineId: string;
18
+ readonly dependencies: Omit<MemoryEngineDependenciesV2, 'canonical_store' | 'allow_unfenced_memory_store' | 'on_unfenced_memory_store_permitted'>;
19
+ readonly provider: Omit<McpMemoryProviderOptions, 'readFacets' | 'writeFacets' | 'hostBindings'>;
20
+ readonly hostBindings: Omit<McpMemoryProviderOptions['hostBindings'], 'engine' | 'profileBindings'>;
21
+ readonly provenance: Omit<ToolConfigurationProvenance, 'manifestDigest'>;
22
+ }
23
+ export interface EngramMemoryRuntime {
24
+ readonly server: EngramMemoryMcpServerV1;
25
+ readonly adapter: ReturnType<typeof import('@sentropic/engram/mcp-memory')['createEngramMemoryProviderV1']>;
26
+ close(): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=memory-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-definition.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-definition.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,KAAK,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACxH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,KAAK,EAAE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version":3,"file":"memory-definition.js","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-definition.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppMcpProviderManifest } from '@sentropic/mcp-platform';
2
+ /** SDK discovery requires object roots; preserve every producer constraint. */
3
+ export declare function createEngramMemoryWireManifest(manifest: AppMcpProviderManifest): AppMcpProviderManifest;
4
+ //# sourceMappingURL=memory-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-manifest.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,+EAA+E;AAC/E,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,sBAAsB,GAAG,sBAAsB,CAMvG"}
@@ -0,0 +1,9 @@
1
+ /** SDK discovery requires object roots; preserve every producer constraint. */
2
+ export function createEngramMemoryWireManifest(manifest) {
3
+ return { ...manifest, tools: manifest.tools.map(tool => ({
4
+ ...tool,
5
+ inputSchema: { type: 'object', ...tool.inputSchema },
6
+ outputSchema: { type: 'object', ...tool.outputSchema },
7
+ })) };
8
+ }
9
+ //# sourceMappingURL=memory-manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-manifest.js","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-manifest.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,UAAU,8BAA8B,CAAC,QAAgC;IAC7E,OAAO,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACvD,GAAG,IAAI;YACP,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,WAAsC,EAAE;YAC/E,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,YAAuC,EAAE;SAClF,CAAC,CAAC,EAAE,CAAC;AACR,CAAC"}
@@ -0,0 +1,21 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
+ import { type StpConnectorContext } from '@sentropic/mcp-platform/memory';
4
+ import type { McpWireBridgeOptions } from '@sentropic/mcp-platform/transport/bridge';
5
+ import type { CompiledMcpRegistry } from '@sentropic/mcp-platform/registry';
6
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
7
+ import type { EngramMemoryBuiltin } from './memory.js';
8
+ export interface EngramMemoryTransportDefinition {
9
+ /** Trusted host attachment resolver; model arguments confer no authority. */
10
+ resolveContext(tool: string, args: unknown, signal: AbortSignal): StpConnectorContext | Promise<StpConnectorContext>;
11
+ limits: McpWireBridgeOptions['limits'];
12
+ formatFailure: McpWireBridgeOptions['formatFailure'];
13
+ }
14
+ /** Same native registration for host-owned stdio and HTTP transports. */
15
+ export declare function registerEngramMemoryTools(server: Server, options: {
16
+ modules: ClusterMeshModules;
17
+ registry: CompiledMcpRegistry;
18
+ builtin: EngramMemoryBuiltin;
19
+ definition: EngramMemoryTransportDefinition;
20
+ }): Promise<void>;
21
+ //# sourceMappingURL=memory-transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-transport.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-transport.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAmC,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC3G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,+BAA+B;IAC9C,6EAA6E;IAC7E,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrH,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACvC,aAAa,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;CACtD;AAED,yEAAyE;AACzE,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;IACvE,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,+BAA+B,CAAC;CAC7C,GAAG,OAAO,CAAC,IAAI,CAAC,CAiChB"}
@@ -0,0 +1,47 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import { requireTrustedInvocationContext } from '@sentropic/mcp-platform/memory';
3
+ import { loadMcpPlatformBridge } from '../../loaders/mcp/bridge.js';
4
+ import { loadMcpPlatformToolSchemas } from '../../loaders/mcp/tool-schemas.js';
5
+ import { loadMcpPlatformResultCodec } from '../../loaders/mcp/result-codec.js';
6
+ /** Same native registration for host-owned stdio and HTTP transports. */
7
+ export async function registerEngramMemoryTools(server, options) {
8
+ const runtime = options.builtin.runtime();
9
+ if (!runtime)
10
+ throw new Error('memory MCP builtin has not been selected and compiled');
11
+ const tools = (await runtime.server.listTools()).tools;
12
+ for (const tool of tools) {
13
+ const selected = options.registry.resolveTool(tool.name);
14
+ if (selected?.providerId !== options.builtin.providerId || JSON.stringify(selected.inputSchema) !== JSON.stringify(tool.inputSchema)) {
15
+ throw new Error('memory MCP tool differs from the compiled plan');
16
+ }
17
+ }
18
+ const bridge = await loadMcpPlatformBridge(options.modules);
19
+ const schemas = await loadMcpPlatformToolSchemas(options.modules);
20
+ const codec = await loadMcpPlatformResultCodec(options.modules);
21
+ const { McpError } = await import('@modelcontextprotocol/sdk/types.js');
22
+ bridge.registerMcpWireTools(server, tools, {
23
+ run: async (tool, args, { signal }) => {
24
+ let ctx;
25
+ try {
26
+ ctx = requireTrustedInvocationContext(await options.definition.resolveContext(tool, args, signal));
27
+ }
28
+ catch {
29
+ throw new McpError(-32603, 'Trusted invocation context unavailable');
30
+ }
31
+ try {
32
+ const result = await runtime.server.callTool(tool, args, ctx, {
33
+ idempotencyKey: ctx.memory?.binding.idempotency_key,
34
+ elicitationRef: ctx.memory?.binding.elicitation_ref,
35
+ }, signal);
36
+ return codec.validateMcpWireResult(result, options.definition.limits);
37
+ }
38
+ catch (error) {
39
+ if (typeof error === 'object' && error !== null && 'code' in error && error.code === -32603) {
40
+ throw new McpError(-32603, 'Trusted invocation context unavailable');
41
+ }
42
+ throw error;
43
+ }
44
+ },
45
+ }, { ...options.definition, schemas: schemas.compileMcpToolSchemas(tools, options.definition.limits) });
46
+ }
47
+ //# sourceMappingURL=memory-transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-transport.js","sourceRoot":"","sources":["../../../src/integrations/mcp/memory-transport.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAG7C,OAAO,EAAE,+BAA+B,EAA4B,MAAM,gCAAgC,CAAC;AAI3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAU/E,yEAAyE;AACzE,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,MAAc,EAAE,OAK/D;IACC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC1C,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,uDAAuD,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C;YAC/E,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;oBAC5D,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe;oBACnD,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe;iBACpD,EAAE,MAAM,CAAC,CAAC;gBACX,OAAO,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACxE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;oBAC5F,MAAM,IAAI,QAAQ,CAAC,CAAC,KAAK,EAAE,wCAAwC,CAAC,CAAC;gBACvE,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KACF,EAAE,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC1G,CAAC"}
@@ -0,0 +1,19 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ import type { McpRegistryBuiltin } from '../../mcp/registry.js';
4
+ import type { EngramMemoryDefinitionOptions, EngramMemoryRuntime } from './memory-definition.js';
5
+ export type { EngramMemoryDefinitionOptions, EngramMemoryRuntime } from './memory-definition.js';
6
+ export { registerEngramMemoryTools, type EngramMemoryTransportDefinition } from './memory-transport.js';
7
+ export { createEngramMemoryWireManifest } from './memory-manifest.js';
8
+ export interface EngramMemoryBuiltin extends McpRegistryBuiltin {
9
+ /** Available after selected materialization. `runtime()?.close()` belongs to the host-pool
10
+ teardown, never to per-attachment teardown: the host calls it while closing its own pool.
11
+ Close shuts the canonical store and releases kernel ownership; the host stops serving the
12
+ runtime MCP server around the same teardown. */
13
+ runtime(): EngramMemoryRuntime | undefined;
14
+ }
15
+ export declare function createEngramMemoryBuiltin(options: {
16
+ modules: ClusterMeshModules;
17
+ definition: EngramMemoryDefinitionOptions;
18
+ }): EngramMemoryBuiltin;
19
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/memory.ts"],"names":[],"mappings":"AACA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,uBAAuB,CAAC;AAGpF,OAAO,KAAK,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACjG,YAAY,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,KAAK,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxG,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D;;;uDAGmD;IACnD,OAAO,IAAI,mBAAmB,GAAG,SAAS,CAAC;CAC5C;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IACjD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,UAAU,EAAE,6BAA6B,CAAC;CAC3C,GAAG,mBAAmB,CA+BtB"}
@@ -0,0 +1,40 @@
1
+ // Static catalog metadata; optional peer code is acquired only by the qualified loader.
2
+ import '../../modules/topology-guard-mcp.js';
3
+ import { MEMORY_PROVIDER_ID, MEMORY_TOOL_NAMES } from '@sentropic/mcp-platform/memory';
4
+ import { loadEngramMemoryMcp, loadEngramMemorySubstrate } from '../../loaders/mcp/memory.js';
5
+ import { composeEngramMemoryDefinition } from './memory-compose.js';
6
+ export { registerEngramMemoryTools } from './memory-transport.js';
7
+ export { createEngramMemoryWireManifest } from './memory-manifest.js';
8
+ export function createEngramMemoryBuiltin(options) {
9
+ let runtime;
10
+ let loading;
11
+ const parameterSchema = {
12
+ properties: {
13
+ mode: { type: 'string', enum: ['embedded-local'] },
14
+ hostBindingRef: { type: 'string', minLength: 1, maxLength: 128,
15
+ enum: [options.definition.hostBindings?.hostBindingRef] },
16
+ }, required: ['mode', 'hostBindingRef'],
17
+ };
18
+ return {
19
+ providerId: MEMORY_PROVIDER_ID, version: '1.0.0', capabilities: [...MEMORY_TOOL_NAMES],
20
+ parameterSchema,
21
+ runtime: () => runtime,
22
+ load: () => {
23
+ loading ??= (async () => {
24
+ // Both peer entries must qualify before acquiring ownership or opening a store.
25
+ const mcp = await loadEngramMemoryMcp(options.modules);
26
+ const substrate = await loadEngramMemorySubstrate(options.modules);
27
+ // A second bundled engine owns a different private fenced-store registry.
28
+ // Never advertise tools whose engine cannot admit the substrate's store.
29
+ if (mcp.createMemoryPortV2 !== substrate.createMemoryPortV2) {
30
+ throw new Error('engram memory public entries do not share the engine/provenance instance');
31
+ }
32
+ const composed = await composeEngramMemoryDefinition(mcp, substrate, options.definition, parameterSchema);
33
+ runtime = composed.runtime;
34
+ return composed.definition;
35
+ })().catch(error => { loading = undefined; throw error; });
36
+ return loading;
37
+ },
38
+ };
39
+ }
40
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../src/integrations/mcp/memory.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,6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AAM,6BAA6B,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;gBAC1G,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;gBAC3B,OAAO,QAAQ,CAAC,UAAU,CAAC;YAC7B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3D,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -6,4 +6,5 @@ export { loadMcpPlatformHono } from './hono.js';
6
6
  export { loadMcpPlatformRegistry } from './registry.js';
7
7
  export { loadMcpPlatformStdio } from './stdio.js';
8
8
  export { loadArtifactsMcp } from './artifacts.js';
9
+ export { loadEngramMemoryMcp, loadEngramMemorySubstrate } from './memory.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/loaders/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/loaders/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC"}
@@ -6,4 +6,5 @@ export { loadMcpPlatformHono } from './hono.js';
6
6
  export { loadMcpPlatformRegistry } from './registry.js';
7
7
  export { loadMcpPlatformStdio } from './stdio.js';
8
8
  export { loadArtifactsMcp } from './artifacts.js';
9
+ export { loadEngramMemoryMcp, loadEngramMemorySubstrate } from './memory.js';
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/loaders/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/loaders/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ import type { ClusterMeshModules } from '../../modules/contracts.js';
3
+ /** Qualified optional peer acquisition; missing/incompatible peers never become stubs. */
4
+ export declare function loadEngramMemoryMcp(modules: ClusterMeshModules): Promise<typeof import('@sentropic/engram/mcp-memory')>;
5
+ export declare function loadEngramMemorySubstrate(modules: ClusterMeshModules): Promise<typeof import('@sentropic/engram/memory-substrate')>;
6
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/loaders/mcp/memory.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,0FAA0F;AAC1F,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,cAAc,8BAA8B,CAAC,CAAC,CAExD;AAED,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,cAAc,oCAAoC,CAAC,CAAC,CAE9D"}
@@ -0,0 +1,9 @@
1
+ import '../../modules/topology-guard-mcp.js';
2
+ /** Qualified optional peer acquisition; missing/incompatible peers never become stubs. */
3
+ export async function loadEngramMemoryMcp(modules) {
4
+ return await modules.load('mcp/memory');
5
+ }
6
+ export async function loadEngramMemorySubstrate(modules) {
7
+ return await modules.load('engram-memory/substrate');
8
+ }
9
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../src/loaders/mcp/memory.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAG7C,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAA2B;IAE3B,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,YAAY,CAAkD,CAAC;AAC3F,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,OAA2B;IAE3B,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAwD,CAAC;AAC9G,CAAC"}
@@ -8,6 +8,8 @@ export declare const MCP_PLATFORM_RANGE = ">=0.4.0 <0.5.0";
8
8
  export declare const ARTIFACTS_PACKAGE = "@sentropic/artifacts";
9
9
  /** Artifacts 0.1.3 admits the platform 0.4 family used by native wrapping. */
10
10
  export declare const ARTIFACTS_RANGE = ">=0.2.0 <0.3.0";
11
+ export declare const ENGRAM_MEMORY_PACKAGE = "@sentropic/engram";
12
+ export declare const ENGRAM_MEMORY_RANGE = ">=0.22.0 <0.23.0";
11
13
  export declare const LLM_MESH_RANGE = "0.19.2 || >=0.22.0 <0.33.0";
12
14
  export declare const LLM_MESH_SPEECH_RANGE = ">=0.28.0 <0.33.0";
13
15
  export declare const LLM_GATEWAY_RANGE = ">=0.19.0 <0.23.0";
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/modules/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAE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SAAS,qBAAqB,EAiB9D,CAAC"}
@@ -7,6 +7,8 @@ export const MCP_PLATFORM_RANGE = '>=0.4.0 <0.5.0';
7
7
  export const ARTIFACTS_PACKAGE = '@sentropic/artifacts';
8
8
  /** Artifacts 0.1.3 admits the platform 0.4 family used by native wrapping. */
9
9
  export const ARTIFACTS_RANGE = '>=0.2.0 <0.3.0';
10
+ export const ENGRAM_MEMORY_PACKAGE = '@sentropic/engram';
11
+ export const ENGRAM_MEMORY_RANGE = '>=0.22.0 <0.23.0';
10
12
  export const LLM_MESH_RANGE = '0.19.2 || >=0.22.0 <0.33.0';
11
13
  export const LLM_MESH_SPEECH_RANGE = '>=0.28.0 <0.33.0';
12
14
  export const LLM_GATEWAY_RANGE = '>=0.19.0 <0.23.0';
@@ -67,7 +69,19 @@ export const PROVIDER_CATALOG = {
67
69
  'createArtifactsRegistryDefinition', 'createArtifactsToolExecutor',
68
70
  'ARTIFACTS_PROVIDER_ID', 'ARTIFACTS_TOOL_NAMES',
69
71
  ]),
70
- comments: { id: 'comments', owner: 'comments', packageName: '@sentropic/cluster-mesh', subpath: './comments', range: '>=0.21.0 <0.25.0',
72
+ 'mcp/memory': {
73
+ id: 'mcp/memory', owner: 'engram', packageName: ENGRAM_MEMORY_PACKAGE,
74
+ subpath: './mcp-memory', range: ENGRAM_MEMORY_RANGE, meshCoherence: false, authPeers: [],
75
+ requiredMembers: ['createEngramMemoryProviderV1', 'createEngramMemoryMcpServerV1',
76
+ 'createMemoryPortV2', 'createMemoryReadFacetsV1', 'MEMORY_PROVIDER_MANIFEST',
77
+ 'MEMORY_TOOL_NAMES', 'MEMORY_FROZEN_PROFILE_BINDINGS_V1'],
78
+ },
79
+ 'engram-memory/substrate': {
80
+ id: 'engram-memory/substrate', owner: 'engram', packageName: ENGRAM_MEMORY_PACKAGE,
81
+ subpath: './memory-substrate', range: ENGRAM_MEMORY_RANGE, meshCoherence: false, authPeers: [],
82
+ requiredMembers: ['openModuleStorageCanonicalMemoryStoreV1', 'createMemoryPortV2'],
83
+ },
84
+ comments: { id: 'comments', owner: 'comments', packageName: '@sentropic/cluster-mesh', subpath: './comments', range: '>=0.21.0 <0.26.0',
71
85
  requiredMembers: ['createCommentsModule', 'createCommentsPostgresStorage'], namespace: '/comments', meshCoherence: false,
72
86
  authPeers: [{ packageName: '@sentropic/comments', subpath: '.', range: COMMENTS_RANGE, requiredMembers: ['createAnnotationRevision', 'validateCapacityDescriptor', 'hashRecord'] }] },
73
87
  };