@stackmemoryai/stackmemory 0.5.1 → 0.5.2
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/config.js +81 -0
- package/dist/cli/commands/config.js.map +2 -2
- package/dist/cli/commands/decision.js +262 -0
- package/dist/cli/commands/decision.js.map +7 -0
- package/dist/cli/commands/handoff.js +87 -24
- package/dist/cli/commands/handoff.js.map +3 -3
- package/dist/cli/commands/service.js +684 -0
- package/dist/cli/commands/service.js.map +7 -0
- package/dist/cli/commands/sweep.js +311 -0
- package/dist/cli/commands/sweep.js.map +7 -0
- package/dist/cli/index.js +98 -4
- package/dist/cli/index.js.map +2 -2
- package/dist/core/config/storage-config.js +111 -0
- package/dist/core/config/storage-config.js.map +7 -0
- package/dist/core/session/enhanced-handoff.js +654 -0
- package/dist/core/session/enhanced-handoff.js.map +7 -0
- package/dist/daemon/session-daemon.js +308 -0
- package/dist/daemon/session-daemon.js.map +7 -0
- package/dist/skills/repo-ingestion-skill.js +54 -10
- package/dist/skills/repo-ingestion-skill.js.map +2 -2
- package/package.json +4 -1
- package/scripts/archive/check-all-duplicates.ts +2 -2
- package/scripts/archive/merge-linear-duplicates.ts +6 -4
- package/scripts/install-claude-hooks-auto.js +72 -15
- package/scripts/measure-handoff-impact.mjs +395 -0
- package/scripts/measure-handoff-impact.ts +450 -0
- package/templates/claude-hooks/on-startup.js +200 -19
- package/templates/services/com.stackmemory.guardian.plist +59 -0
- package/templates/services/stackmemory-guardian.service +41 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<!--
|
|
4
|
+
StackMemory Guardian Service - macOS launchd configuration
|
|
5
|
+
|
|
6
|
+
This plist is generated dynamically during `stackmemory service install`.
|
|
7
|
+
Edit this template to customize the service behavior.
|
|
8
|
+
|
|
9
|
+
Installation location: ~/Library/LaunchAgents/com.stackmemory.guardian.plist
|
|
10
|
+
-->
|
|
11
|
+
<plist version="1.0">
|
|
12
|
+
<dict>
|
|
13
|
+
<!-- Service identifier -->
|
|
14
|
+
<key>Label</key>
|
|
15
|
+
<string>com.stackmemory.guardian</string>
|
|
16
|
+
|
|
17
|
+
<!-- Command to execute -->
|
|
18
|
+
<key>ProgramArguments</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>/usr/local/bin/node</string>
|
|
21
|
+
<string>$HOME/.stackmemory/guardian.js</string>
|
|
22
|
+
</array>
|
|
23
|
+
|
|
24
|
+
<!-- Start automatically on login -->
|
|
25
|
+
<key>RunAtLoad</key>
|
|
26
|
+
<true/>
|
|
27
|
+
|
|
28
|
+
<!-- Restart on failure -->
|
|
29
|
+
<key>KeepAlive</key>
|
|
30
|
+
<dict>
|
|
31
|
+
<key>SuccessfulExit</key>
|
|
32
|
+
<false/>
|
|
33
|
+
</dict>
|
|
34
|
+
|
|
35
|
+
<!-- Working directory -->
|
|
36
|
+
<key>WorkingDirectory</key>
|
|
37
|
+
<string>$HOME/.stackmemory</string>
|
|
38
|
+
|
|
39
|
+
<!-- Log output -->
|
|
40
|
+
<key>StandardOutPath</key>
|
|
41
|
+
<string>$HOME/.stackmemory/logs/guardian.log</string>
|
|
42
|
+
|
|
43
|
+
<key>StandardErrorPath</key>
|
|
44
|
+
<string>$HOME/.stackmemory/logs/guardian.error.log</string>
|
|
45
|
+
|
|
46
|
+
<!-- Environment variables -->
|
|
47
|
+
<key>EnvironmentVariables</key>
|
|
48
|
+
<dict>
|
|
49
|
+
<key>HOME</key>
|
|
50
|
+
<string>$HOME</string>
|
|
51
|
+
<key>PATH</key>
|
|
52
|
+
<string>/usr/local/bin:/usr/bin:/bin</string>
|
|
53
|
+
</dict>
|
|
54
|
+
|
|
55
|
+
<!-- Minimum time between restarts (seconds) -->
|
|
56
|
+
<key>ThrottleInterval</key>
|
|
57
|
+
<integer>30</integer>
|
|
58
|
+
</dict>
|
|
59
|
+
</plist>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# StackMemory Guardian Service - Linux systemd configuration
|
|
2
|
+
#
|
|
3
|
+
# This service file is generated dynamically during `stackmemory service install`.
|
|
4
|
+
# Edit this template to customize the service behavior.
|
|
5
|
+
#
|
|
6
|
+
# Installation location: ~/.config/systemd/user/stackmemory-guardian.service
|
|
7
|
+
#
|
|
8
|
+
# Manual commands:
|
|
9
|
+
# systemctl --user start stackmemory-guardian
|
|
10
|
+
# systemctl --user stop stackmemory-guardian
|
|
11
|
+
# systemctl --user status stackmemory-guardian
|
|
12
|
+
# journalctl --user -u stackmemory-guardian -f
|
|
13
|
+
|
|
14
|
+
[Unit]
|
|
15
|
+
Description=StackMemory Guardian Service
|
|
16
|
+
Documentation=https://github.com/stackmemoryai/stackmemory
|
|
17
|
+
After=network.target
|
|
18
|
+
|
|
19
|
+
[Service]
|
|
20
|
+
Type=simple
|
|
21
|
+
|
|
22
|
+
# Command to execute
|
|
23
|
+
ExecStart=/usr/bin/node $HOME/.stackmemory/guardian.js
|
|
24
|
+
|
|
25
|
+
# Restart on failure with 30 second delay
|
|
26
|
+
Restart=on-failure
|
|
27
|
+
RestartSec=30
|
|
28
|
+
|
|
29
|
+
# Working directory
|
|
30
|
+
WorkingDirectory=$HOME/.stackmemory
|
|
31
|
+
|
|
32
|
+
# Environment
|
|
33
|
+
Environment=HOME=$HOME
|
|
34
|
+
Environment=PATH=/usr/local/bin:/usr/bin:/bin
|
|
35
|
+
|
|
36
|
+
# Log output
|
|
37
|
+
StandardOutput=append:$HOME/.stackmemory/logs/guardian.log
|
|
38
|
+
StandardError=append:$HOME/.stackmemory/logs/guardian.error.log
|
|
39
|
+
|
|
40
|
+
[Install]
|
|
41
|
+
WantedBy=default.target
|