Skip to content

Commit 579024e

Browse files
chore: prepare v0.3.18 release with RLM fixes
- Fixed all RLM database and initialization errors - Added comprehensive test suites for end-to-end testing - Improved mock subagent responses for testing - Fixed all lint errors and warnings - Updated npm version to 0.3.18
1 parent c4ac739 commit 579024e

8 files changed

Lines changed: 661 additions & 16 deletions

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackmemoryai/stackmemory",
3-
"version": "0.3.17",
3+
"version": "0.3.18",
44
"description": "Lossless memory runtime for AI coding tools - organizes context as a call stack instead of linear chat logs, with team collaboration and infinite retention",
55
"engines": {
66
"node": ">=20.0.0",

scripts/test-rlm-basic.sh

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
#!/bin/bash
2+
3+
# Basic RLM functionality test
4+
echo "================================"
5+
echo "Basic RLM End-to-End Test"
6+
echo "================================"
7+
echo ""
8+
9+
# Colors
10+
GREEN='\033[0;32m'
11+
RED='\033[0;31m'
12+
YELLOW='\033[1;33m'
13+
NC='\033[0m'
14+
15+
# Build first
16+
echo "Building project..."
17+
npm run build > /dev/null 2>&1
18+
19+
echo ""
20+
echo "Test 1: Basic RLM Execution"
21+
echo "----------------------------"
22+
OUTPUT=$(stackmemory skills rlm "Create a hello world function" 2>&1)
23+
echo "$OUTPUT" | head -20
24+
25+
# Check for key components
26+
echo ""
27+
echo "Checking key components:"
28+
29+
if echo "$OUTPUT" | grep -q "RLM execution completed"; then
30+
echo -e "${GREEN}✓ RLM execution completed${NC}"
31+
else
32+
echo -e "${RED}✗ RLM execution did not complete${NC}"
33+
fi
34+
35+
if echo "$OUTPUT" | grep -q "Created frame"; then
36+
echo -e "${GREEN}✓ Frame created${NC}"
37+
else
38+
echo -e "${RED}✗ Frame not created${NC}"
39+
fi
40+
41+
if echo "$OUTPUT" | grep -q "Closed frame"; then
42+
echo -e "${GREEN}✓ Frame closed${NC}"
43+
else
44+
echo -e "${RED}✗ Frame not closed${NC}"
45+
fi
46+
47+
if echo "$OUTPUT" | grep -q "planning subagent"; then
48+
echo -e "${GREEN}✓ Planning subagent spawned${NC}"
49+
else
50+
echo -e "${RED}✗ Planning subagent not spawned${NC}"
51+
fi
52+
53+
if echo "$OUTPUT" | grep -q "Review stage.*complete"; then
54+
echo -e "${GREEN}✓ Review stage completed${NC}"
55+
else
56+
echo -e "${RED}✗ Review stage not completed${NC}"
57+
fi
58+
59+
if echo "$OUTPUT" | grep -q "Quality threshold met"; then
60+
echo -e "${GREEN}✓ Quality threshold met${NC}"
61+
else
62+
echo -e "${RED}✗ Quality threshold not met${NC}"
63+
fi
64+
65+
if echo "$OUTPUT" | grep -q "mockMode: true"; then
66+
echo -e "${GREEN}✓ Mock mode active${NC}"
67+
else
68+
echo -e "${RED}✗ Mock mode not active${NC}"
69+
fi
70+
71+
echo ""
72+
echo "Test 2: Execution Summary"
73+
echo "-------------------------"
74+
echo "$OUTPUT" | grep -A 10 "Execution Summary"
75+
76+
echo ""
77+
echo "Test 3: Frame Persistence"
78+
echo "-------------------------"
79+
FRAMES_BEFORE=$(stackmemory status 2>&1 | grep -oE "Frames: [0-9]+" | awk '{print $2}')
80+
stackmemory skills rlm "Test task for frame counting" > /dev/null 2>&1
81+
FRAMES_AFTER=$(stackmemory status 2>&1 | grep -oE "Frames: [0-9]+" | awk '{print $2}')
82+
83+
echo "Frames before: ${FRAMES_BEFORE:-0}"
84+
echo "Frames after: ${FRAMES_AFTER:-0}"
85+
86+
if [ "${FRAMES_AFTER:-0}" -gt "${FRAMES_BEFORE:-0}" ]; then
87+
echo -e "${GREEN}✓ Frames persisted to database${NC}"
88+
else
89+
echo -e "${YELLOW}⚠ Frame count unchanged (may be cleaned up)${NC}"
90+
fi
91+
92+
echo ""
93+
echo "Test 4: Mock Subagent Responses"
94+
echo "-------------------------------"
95+
OUTPUT=$(stackmemory skills rlm "Create a REST API" 2>&1)
96+
97+
if echo "$OUTPUT" | grep -q "Mock .* subagent completed"; then
98+
echo -e "${GREEN}✓ Mock subagents responding${NC}"
99+
else
100+
echo -e "${RED}✗ Mock subagents not responding${NC}"
101+
fi
102+
103+
# Extract improvements if present
104+
echo ""
105+
echo "Improvements found:"
106+
echo "$OUTPUT" | grep -A 5 "Improvements:" | head -6
107+
108+
echo ""
109+
echo "Test 5: Error Handling"
110+
echo "----------------------"
111+
# This should handle gracefully even with problematic input
112+
OUTPUT=$(stackmemory skills rlm "" 2>&1)
113+
if echo "$OUTPUT" | grep -q "RLM execution completed\|failed"; then
114+
echo -e "${GREEN}✓ Empty input handled gracefully${NC}"
115+
else
116+
echo -e "${RED}✗ Empty input caused crash${NC}"
117+
fi
118+
119+
echo ""
120+
echo "================================"
121+
echo "Test Complete"
122+
echo "================================"

0 commit comments

Comments
 (0)