fix(memory-mcp): keep reading profile and awareness from the .mind file

The memory MCP server serves the .mind file directly, so it uses the
substrate's IdentityLayer and AwarenessLayer instead of the waggle.db ones
that @waggle/core now exports. The WaggleDB-only constructors caught the
mismatch at build time.
This commit is contained in:
shumeiko.it
2026-10-23 14:51:20 +02:00
parent ad2ca875cb
commit 0325c4eb11
5 changed files with 7 additions and 4 deletions

1
package-lock.json generated
View File

@@ -24872,6 +24872,7 @@
"dependencies": {
"@modelcontextprotocol/sdk": "^1.25.3",
"@waggle/core": "*",
"@waggle/hive-mind-core": "*",
"@waggle/shared": "*",
"@waggle/wiki-compiler": "*",
"zod": "^3.23.0"

View File

@@ -42,6 +42,7 @@
"dependencies": {
"@modelcontextprotocol/sdk": "^1.25.3",
"@waggle/core": "*",
"@waggle/hive-mind-core": "*",
"@waggle/shared": "*",
"@waggle/wiki-compiler": "*",
"zod": "^3.23.0"

View File

@@ -12,8 +12,6 @@ import {
FrameStore,
HybridSearch,
KnowledgeGraph,
IdentityLayer,
AwarenessLayer,
SessionStore,
WorkspaceManager,
MultiMindCache,
@@ -31,6 +29,9 @@ import {
type EmbeddingProviderInstance,
type EmbeddingProviderConfig,
} from '@waggle/core';
// This server reads the profile and awareness tables of the .mind file itself,
// so it uses the substrate's layers, not waggle.db's.
import { IdentityLayer, AwarenessLayer } from '@waggle/hive-mind-core';
// ── Data directory ──────────────────────────────────────────────────

View File

@@ -1,6 +1,6 @@
/**
* Awareness tools — get_awareness + set_awareness.
* Wraps AwarenessLayer from @waggle/core.
* Wraps AwarenessLayer from @waggle/hive-mind-core.
*/
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';

View File

@@ -1,6 +1,6 @@
/**
* Identity tools — get_identity + set_identity.
* Wraps IdentityLayer from @waggle/core.
* Wraps IdentityLayer from @waggle/hive-mind-core.
*/
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';