🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix: handle boolean memory-key flag in post-edit hook
rUv234ea1e7ffbc
diff --git a/src/cli/simple-commands/hooks.js b/src/cli/simple-commands/hooks.jsindex 6698fd78d6..5b2a9e6316 100644--- a/src/cli/simple-commands/hooks.js+++ b/src/cli/simple-commands/hooks.js@@ -438,7 +438,16 @@ async function postTaskCommand(subArgs, flags) {async function postEditCommand(subArgs, flags) {const options = flags;const file = options.file || 'unknown-file';- const memoryKey = options['memory-key'] || options.memoryKey;+ let memoryKey = options['memory-key'] || options.memoryKey;++ // Handle case where memory-key is passed as a boolean flag without value+ if (memoryKey === true) {+ // Generate a default memory key based on the file path and timestamp+ const path = await import('path');+ const basename = path.basename(file);+ memoryKey = `edit:${basename}:${Date.now()}`;+ }+const format = options.format || false;const updateMemory = options['update-memory'] || false;const trainNeural = options['train-neural'] || false;@@ -566,7 +575,7 @@ async function postEditCommand(subArgs, flags) {metadata: { hookType: 'post-edit', file, formatted: formatResult?.attempted || false },});- if (memoryKey) {+ if (memoryKey && typeof memoryKey === 'string') {await store.store(memoryKey,{