@stackmemoryai/stackmemory 0.5.51 → 0.5.52
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.
- package/dist/cli/commands/handoff.js +27 -12
- package/dist/cli/commands/handoff.js.map +2 -2
- package/dist/cli/index.js +8 -2
- package/dist/cli/index.js.map +2 -2
- package/dist/integrations/claude-code/lifecycle-hooks.js +3 -3
- package/dist/integrations/claude-code/lifecycle-hooks.js.map +1 -1
- package/package.json +1 -1
- package/scripts/auto-handoff.sh +1 -1
- package/scripts/claude-sm-autostart.js +174 -132
- package/scripts/setup-claude-integration.js +14 -10
- package/scripts/stackmemory-auto-handoff.sh +3 -3
- package/scripts/test-session-handoff.sh +2 -2
|
@@ -32,10 +32,10 @@ capture_handoff() {
|
|
|
32
32
|
echo -e "${YELLOW}📸 Capturing handoff context...${NC}"
|
|
33
33
|
log "Capturing handoff: reason=$reason, exit_code=$exit_code"
|
|
34
34
|
|
|
35
|
-
# Run stackmemory
|
|
35
|
+
# Run stackmemory capture command
|
|
36
36
|
if command -v "$STACKMEMORY_BIN" &> /dev/null; then
|
|
37
37
|
# Capture the handoff
|
|
38
|
-
"$STACKMEMORY_BIN"
|
|
38
|
+
"$STACKMEMORY_BIN" capture --no-commit 2>&1 | tee -a "$LOG_FILE"
|
|
39
39
|
|
|
40
40
|
# Save additional metadata
|
|
41
41
|
local metadata_file="${HANDOFF_DIR}/last-handoff-meta.json"
|
|
@@ -75,7 +75,7 @@ EOF
|
|
|
75
75
|
done
|
|
76
76
|
fi
|
|
77
77
|
|
|
78
|
-
echo -e "${GREEN}✨ Run 'stackmemory
|
|
78
|
+
echo -e "${GREEN}✨ Run 'stackmemory restore' in your next session${NC}"
|
|
79
79
|
else
|
|
80
80
|
echo -e "${RED}❌ StackMemory not found${NC}"
|
|
81
81
|
log "ERROR: StackMemory binary not found"
|
|
@@ -73,7 +73,7 @@ echo
|
|
|
73
73
|
|
|
74
74
|
# 3. Generate handoff
|
|
75
75
|
echo -e "${BLUE}3. Generating handoff summary...${NC}"
|
|
76
|
-
stackmemory
|
|
76
|
+
stackmemory capture > /tmp/handoff-test.md
|
|
77
77
|
echo -e "${GREEN}✓ Handoff generated${NC}"
|
|
78
78
|
echo " Saved to: /tmp/handoff-test.md"
|
|
79
79
|
echo
|
|
@@ -159,7 +159,7 @@ echo " • Last handoff: ./.stackmemory/last-handoff.md"
|
|
|
159
159
|
echo " • Session data: ~/.stackmemory/sessions/"
|
|
160
160
|
echo
|
|
161
161
|
echo -e "${YELLOW}💡 To use in new Claude session:${NC}"
|
|
162
|
-
echo " 1. Run: stackmemory
|
|
162
|
+
echo " 1. Run: stackmemory capture"
|
|
163
163
|
echo " 2. Copy the handoff summary"
|
|
164
164
|
echo " 3. Paste at start of new session"
|
|
165
165
|
echo " 4. Context will be automatically loaded"
|