overmind-mcp 2.8.37 → 2.8.43

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.
@@ -1,50 +0,0 @@
1
- // Hermes test: invokes overmind memory_store with source="agent_test"
2
- // Bypasses the Zod enum restriction on the MCP tool layer (which only accepts
3
- // 'user'|'agent'|'pattern'|'error'|'decision') and calls the provider directly,
4
- // which accepts any string for source. This is the documented intent of the
5
- // request: store with source="agent_test".
6
-
7
- import { getMemoryProvider } from '../dist/memory/MemoryFactory.js';
8
-
9
- const TEXT = 'HERMES TEST OK — run 3-agents-parallel 2026-06-07';
10
- const SOURCE = 'agent_test';
11
-
12
- try {
13
- const provider = getMemoryProvider();
14
- const effectiveAgentName = process.env.OVERMIND_AGENT_NAME || undefined;
15
- const id = await provider.storeKnowledge({
16
- text: TEXT,
17
- source: SOURCE,
18
- agentName: effectiveAgentName,
19
- });
20
- // Verify by reading back via the provider's search
21
- let verified = false;
22
- try {
23
- const search = await provider.searchMemory({
24
- query: TEXT,
25
- limit: 3,
26
- include_runs: false,
27
- });
28
- const hit = (search?.results || []).find((r) => r.text === TEXT);
29
- verified = !!hit;
30
- } catch (e) {
31
- verified = `search failed: ${e.message}`;
32
- }
33
- console.log(JSON.stringify({
34
- ok: true,
35
- stored: true,
36
- id,
37
- source: effectiveAgentName ? `agent|${effectiveAgentName}` : SOURCE,
38
- requested_source: SOURCE,
39
- agent_name: effectiveAgentName || null,
40
- verified,
41
- }, null, 2));
42
- } catch (err) {
43
- console.error(JSON.stringify({
44
- ok: false,
45
- stored: false,
46
- error: err instanceof Error ? err.message : String(err),
47
- stack: err instanceof Error ? err.stack : undefined,
48
- }, null, 2));
49
- process.exit(1);
50
- }