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:
1
package-lock.json
generated
1
package-lock.json
generated
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 ──────────────────────────────────────────────────
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user