ruvnet/ruflo · error · Error
${v.error}
Error message
${v.error} What it means
Error "${v.error}" thrown in ruvnet/ruflo.
Source
Thrown at v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts:1317
description: 'Export memory entries to a JSON file (keys, namespaces, timestamps, and values when available). Use when native Write is wrong because the data is rows in .swarm/memory.db, not a file you can copy. For ingesting an export elsewhere use memory_import. (CSV output and embedding-vector export are follow-ups.)',
category: 'memory',
inputSchema: {
type: 'object',
properties: {
outputPath: { type: 'string', description: 'File path to write the JSON export to' },
format: { type: 'string', enum: ['json', 'csv'], description: 'Export format (csv falls back to json today)' },
namespace: { type: 'string', description: 'Limit export to one namespace' },
includeVectors: { type: 'boolean', description: 'Include embedding vectors (advisory — not exported yet)' },
},
required: ['outputPath'],
},
handler: async (input) => {
await ensureInitialized();
const { listEntries } = await getMemoryFunctions();
const outputPath = String(input.outputPath ?? '');
if (!outputPath) return { error: 'outputPath is required' };
const namespace = input.namespace ? String(input.namespace) : undefined;
if (namespace) { const v = validateIdentifier(namespace, 'namespace'); if (!v.valid) throw new Error(v.error); }
// #2073: pass includeContent so the value field carries the actual
// entry body. Without this, `value` is always null because listEntries
// strips content by default (callers pay for the JSON parse only when
// they need it).
const all = await listEntries({ limit: 100000, namespace, includeContent: true });
const payload = {
schema: 'ruflo-memory-export/v1',
exportedAt: new Date().toISOString(),
namespace: namespace ?? null,
count: all.entries.length,
entries: all.entries.map(e => ({
key: e.key,
namespace: e.namespace,
// #2073: `e.content` is the stored value string; `e.value` was a
// never-populated alias. Fall back to null only if content is
// missing for backward-compat with the schema.
value: typeof e.content === 'string' ? e.content : ((e as { value?: unknown }).value ?? null),
createdAt: e.createdAt, updatedAt: e.updatedAt, accessCount: e.accessCount, hasEmbedding: e.hasEmbedding, size: e.size,View on GitHub (pinned to 6b01dc5a68)
When it happens
Trigger: Thrown at v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts:1317 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@6b01dc5a68 (2026-08-12).
Data as JSON: /api/errors/9f4cfd345a04a37b.
Report an issue: GitHub.