Skip to content

Commit f24c421

Browse files
fix: Resolve ESM import and error handling issues
- Add .js extensions to all relative imports (fixes ERR_MODULE_NOT_FOUND) - Fix getFrame() to return undefined instead of throwing on missing frames - Add resilience to context-bridge for missing frames - Fix Database import issues in monitor and quality commands - Update test to expect undefined instead of error for getFrame() - Update test scripts for correct CLI syntax - Add comprehensive persistence testing utilities These fixes resolve frame sync errors and import resolution issues that were causing stackmemory status to fail.
1 parent 8de6389 commit f24c421

12 files changed

Lines changed: 499 additions & 265 deletions

scripts/test-hooks-persistence.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ echo
7070
# Test on-clear hook
7171
echo -e "${BLUE}2. Testing on-clear hook (context preservation)...${NC}"
7272
echo "Creating test context..."
73-
echo "test-context-$(date +%s)" | ~/.stackmemory/bin/stackmemory context add --type task --tags test,hook
73+
~/.stackmemory/bin/stackmemory context add observation "test-context-$(date +%s)"
7474
FRAME_BEFORE=$(get_latest_frame)
7575
echo "Frame ID before clear: $FRAME_BEFORE"
7676

@@ -178,7 +178,7 @@ echo "Simulating work session..."
178178

179179
# Create some activity
180180
for i in {1..3}; do
181-
echo "Activity $i" | ~/.stackmemory/bin/stackmemory context add --type activity --tags monitor,test
181+
~/.stackmemory/bin/stackmemory context add observation "Activity $i"
182182
sleep 0.5
183183
done
184184

0 commit comments

Comments
 (0)