@stackmemoryai/stackmemory 0.2.6 → 0.2.8

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.
Files changed (406) hide show
  1. package/README.md +262 -83
  2. package/dist/scripts/cancel-duplicate-tasks.d.ts +7 -0
  3. package/dist/scripts/cancel-duplicate-tasks.d.ts.map +1 -0
  4. package/dist/scripts/cancel-duplicate-tasks.js +172 -0
  5. package/dist/scripts/cancel-duplicate-tasks.js.map +1 -0
  6. package/dist/scripts/list-linear-tasks.d.ts +6 -0
  7. package/dist/scripts/list-linear-tasks.d.ts.map +1 -0
  8. package/dist/scripts/list-linear-tasks.js +121 -0
  9. package/dist/scripts/list-linear-tasks.js.map +1 -0
  10. package/dist/scripts/merge-linear-duplicates-safe.d.ts +7 -0
  11. package/dist/scripts/merge-linear-duplicates-safe.d.ts.map +1 -0
  12. package/dist/scripts/merge-linear-duplicates-safe.js +267 -0
  13. package/dist/scripts/merge-linear-duplicates-safe.js.map +1 -0
  14. package/dist/scripts/show-linear-summary.d.ts +6 -0
  15. package/dist/scripts/show-linear-summary.d.ts.map +1 -0
  16. package/dist/scripts/show-linear-summary.js +120 -0
  17. package/dist/scripts/show-linear-summary.js.map +1 -0
  18. package/dist/scripts/status.js +6 -2
  19. package/dist/scripts/status.js.map +1 -1
  20. package/dist/src/cli/auto-detect.d.ts +61 -0
  21. package/dist/src/cli/auto-detect.d.ts.map +1 -0
  22. package/dist/src/cli/auto-detect.js +350 -0
  23. package/dist/src/cli/auto-detect.js.map +1 -0
  24. package/dist/src/cli/claude-sm.d.ts +7 -0
  25. package/dist/src/cli/claude-sm.d.ts.map +1 -0
  26. package/dist/src/cli/claude-sm.js +357 -0
  27. package/dist/src/cli/claude-sm.js.map +1 -0
  28. package/dist/src/cli/commands/config.d.ts +6 -0
  29. package/dist/src/cli/commands/config.d.ts.map +1 -0
  30. package/dist/src/cli/commands/config.js +224 -0
  31. package/dist/src/cli/commands/config.js.map +1 -0
  32. package/dist/src/cli/commands/context.d.ts +7 -0
  33. package/dist/src/cli/commands/context.d.ts.map +1 -0
  34. package/dist/src/cli/commands/context.js +365 -0
  35. package/dist/src/cli/commands/context.js.map +1 -0
  36. package/dist/src/cli/commands/linear-test.d.ts +6 -0
  37. package/dist/src/cli/commands/linear-test.d.ts.map +1 -0
  38. package/dist/src/cli/commands/linear-test.js +123 -0
  39. package/dist/src/cli/commands/linear-test.js.map +1 -0
  40. package/dist/src/cli/commands/linear.d.ts +6 -0
  41. package/dist/src/cli/commands/linear.d.ts.map +1 -0
  42. package/dist/src/cli/commands/linear.js +393 -0
  43. package/dist/src/cli/commands/linear.js.map +1 -0
  44. package/dist/src/cli/commands/log.d.ts +7 -0
  45. package/dist/src/cli/commands/log.d.ts.map +1 -0
  46. package/dist/src/cli/commands/log.js +168 -0
  47. package/dist/src/cli/commands/log.js.map +1 -0
  48. package/dist/src/cli/commands/onboard.d.ts +8 -0
  49. package/dist/src/cli/commands/onboard.d.ts.map +1 -0
  50. package/dist/src/cli/commands/onboard.js +363 -0
  51. package/dist/src/cli/commands/onboard.js.map +1 -0
  52. package/dist/src/cli/commands/projects.js +1 -1
  53. package/dist/src/cli/commands/projects.js.map +1 -1
  54. package/dist/src/cli/commands/search.d.ts +7 -0
  55. package/dist/src/cli/commands/search.d.ts.map +1 -0
  56. package/dist/src/cli/commands/search.js +162 -0
  57. package/dist/src/cli/commands/search.js.map +1 -0
  58. package/dist/src/cli/commands/session.d.ts +7 -0
  59. package/dist/src/cli/commands/session.d.ts.map +1 -0
  60. package/dist/src/cli/commands/session.js +222 -0
  61. package/dist/src/cli/commands/session.js.map +1 -0
  62. package/dist/src/cli/commands/tasks.d.ts +7 -0
  63. package/dist/src/cli/commands/tasks.d.ts.map +1 -0
  64. package/dist/src/cli/commands/tasks.js +229 -0
  65. package/dist/src/cli/commands/tasks.js.map +1 -0
  66. package/dist/src/cli/commands/webhook.d.ts +3 -0
  67. package/dist/src/cli/commands/webhook.d.ts.map +1 -0
  68. package/dist/src/cli/commands/webhook.js +157 -0
  69. package/dist/src/cli/commands/webhook.js.map +1 -0
  70. package/dist/src/cli/commands/worktree.d.ts +8 -0
  71. package/dist/src/cli/commands/worktree.d.ts.map +1 -0
  72. package/dist/src/cli/commands/worktree.js +339 -0
  73. package/dist/src/cli/commands/worktree.js.map +1 -0
  74. package/dist/src/cli/index.d.ts +2 -1
  75. package/dist/src/cli/index.d.ts.map +1 -1
  76. package/dist/src/cli/index.js +337 -50
  77. package/dist/src/cli/index.js.map +1 -1
  78. package/dist/src/cli/utils/viewer.d.ts.map +1 -1
  79. package/dist/src/cli/utils/viewer.js +3 -1
  80. package/dist/src/cli/utils/viewer.js.map +1 -1
  81. package/dist/src/core/config/config-manager.d.ts +95 -0
  82. package/dist/src/core/config/config-manager.d.ts.map +1 -0
  83. package/dist/src/core/config/config-manager.js +359 -0
  84. package/dist/src/core/config/config-manager.js.map +1 -0
  85. package/dist/src/core/config/types.d.ts +72 -0
  86. package/dist/src/core/config/types.d.ts.map +1 -0
  87. package/dist/src/core/config/types.js +127 -0
  88. package/dist/src/core/config/types.js.map +1 -0
  89. package/dist/src/core/context/auto-context.d.ts +22 -0
  90. package/dist/src/core/context/auto-context.d.ts.map +1 -0
  91. package/dist/src/core/context/auto-context.js +77 -0
  92. package/dist/src/core/context/auto-context.js.map +1 -0
  93. package/dist/src/core/context/compaction-handler.d.ts +119 -0
  94. package/dist/src/core/context/compaction-handler.d.ts.map +1 -0
  95. package/dist/src/core/context/compaction-handler.js +306 -0
  96. package/dist/src/core/context/compaction-handler.js.map +1 -0
  97. package/dist/src/core/context/frame-manager.d.ts +4 -0
  98. package/dist/src/core/context/frame-manager.d.ts.map +1 -1
  99. package/dist/src/core/context/frame-manager.js +350 -144
  100. package/dist/src/core/context/frame-manager.js.map +1 -1
  101. package/dist/src/core/context/model-aware-compaction.d.ts +101 -0
  102. package/dist/src/core/context/model-aware-compaction.d.ts.map +1 -0
  103. package/dist/src/core/context/model-aware-compaction.js +616 -0
  104. package/dist/src/core/context/model-aware-compaction.js.map +1 -0
  105. package/dist/src/core/errors/index.d.ts +135 -0
  106. package/dist/src/core/errors/index.d.ts.map +1 -0
  107. package/dist/src/core/errors/index.js +274 -0
  108. package/dist/src/core/errors/index.js.map +1 -0
  109. package/dist/src/core/errors/recovery.d.ts +86 -0
  110. package/dist/src/core/errors/recovery.d.ts.map +1 -0
  111. package/dist/src/core/errors/recovery.js +274 -0
  112. package/dist/src/core/errors/recovery.js.map +1 -0
  113. package/dist/src/core/projects/project-manager.d.ts.map +1 -1
  114. package/dist/src/core/projects/project-manager.js +240 -122
  115. package/dist/src/core/projects/project-manager.js.map +1 -1
  116. package/dist/src/core/query/query-parser.d.ts +104 -0
  117. package/dist/src/core/query/query-parser.d.ts.map +1 -0
  118. package/dist/src/core/query/query-parser.js +347 -0
  119. package/dist/src/core/query/query-parser.js.map +1 -0
  120. package/dist/src/core/retrieval/index.d.ts +8 -0
  121. package/dist/src/core/retrieval/index.d.ts.map +1 -0
  122. package/dist/src/core/retrieval/index.js +8 -0
  123. package/dist/src/core/retrieval/index.js.map +1 -0
  124. package/dist/src/core/retrieval/llm-context-retrieval.d.ts +71 -0
  125. package/dist/src/core/retrieval/llm-context-retrieval.d.ts.map +1 -0
  126. package/dist/src/core/retrieval/llm-context-retrieval.js +545 -0
  127. package/dist/src/core/retrieval/llm-context-retrieval.js.map +1 -0
  128. package/dist/src/core/retrieval/summary-generator.d.ts +63 -0
  129. package/dist/src/core/retrieval/summary-generator.d.ts.map +1 -0
  130. package/dist/src/core/retrieval/summary-generator.js +622 -0
  131. package/dist/src/core/retrieval/summary-generator.js.map +1 -0
  132. package/dist/src/core/retrieval/types.d.ts +257 -0
  133. package/dist/src/core/retrieval/types.d.ts.map +1 -0
  134. package/dist/src/core/retrieval/types.js +18 -0
  135. package/dist/src/core/retrieval/types.js.map +1 -0
  136. package/dist/src/core/session/index.d.ts +2 -0
  137. package/dist/src/core/session/index.d.ts.map +1 -0
  138. package/dist/src/core/session/index.js +2 -0
  139. package/dist/src/core/session/index.js.map +1 -0
  140. package/dist/src/core/session/session-manager.d.ts +69 -0
  141. package/dist/src/core/session/session-manager.d.ts.map +1 -0
  142. package/dist/src/core/session/session-manager.js +311 -0
  143. package/dist/src/core/session/session-manager.js.map +1 -0
  144. package/dist/src/core/trace/trace-detector.d.ts +108 -0
  145. package/dist/src/core/trace/trace-detector.d.ts.map +1 -0
  146. package/dist/src/core/trace/trace-detector.demo.d.ts +5 -0
  147. package/dist/src/core/trace/trace-detector.demo.d.ts.map +1 -0
  148. package/dist/src/core/trace/trace-detector.demo.js +145 -0
  149. package/dist/src/core/trace/trace-detector.demo.js.map +1 -0
  150. package/dist/src/core/trace/trace-detector.js +425 -0
  151. package/dist/src/core/trace/trace-detector.js.map +1 -0
  152. package/dist/src/core/trace/trace-store.d.ts +60 -0
  153. package/dist/src/core/trace/trace-store.d.ts.map +1 -0
  154. package/dist/src/core/trace/trace-store.js +323 -0
  155. package/dist/src/core/trace/trace-store.js.map +1 -0
  156. package/dist/src/core/trace/types.d.ts +81 -0
  157. package/dist/src/core/trace/types.d.ts.map +1 -0
  158. package/dist/src/core/trace/types.js +70 -0
  159. package/dist/src/core/trace/types.js.map +1 -0
  160. package/dist/src/core/utils/update-checker.d.ts.map +1 -1
  161. package/dist/src/core/utils/update-checker.js +82 -25
  162. package/dist/src/core/utils/update-checker.js.map +1 -1
  163. package/dist/src/core/worktree/worktree-manager.d.ts +110 -0
  164. package/dist/src/core/worktree/worktree-manager.d.ts.map +1 -0
  165. package/dist/src/core/worktree/worktree-manager.js +456 -0
  166. package/dist/src/core/worktree/worktree-manager.js.map +1 -0
  167. package/dist/src/features/analytics/core/analytics-service.d.ts +6 -0
  168. package/dist/src/features/analytics/core/analytics-service.d.ts.map +1 -1
  169. package/dist/src/features/analytics/core/analytics-service.js +125 -10
  170. package/dist/src/features/analytics/core/analytics-service.js.map +1 -1
  171. package/dist/src/features/analytics/queries/metrics-queries.d.ts.map +1 -1
  172. package/dist/src/features/analytics/queries/metrics-queries.js +220 -163
  173. package/dist/src/features/analytics/queries/metrics-queries.js.map +1 -1
  174. package/dist/src/features/browser/browser-mcp.d.ts.map +1 -1
  175. package/dist/src/features/browser/browser-mcp.js +3 -0
  176. package/dist/src/features/browser/browser-mcp.js.map +1 -1
  177. package/dist/src/features/tasks/pebbles-task-store.d.ts +4 -0
  178. package/dist/src/features/tasks/pebbles-task-store.d.ts.map +1 -1
  179. package/dist/src/features/tasks/pebbles-task-store.js +299 -141
  180. package/dist/src/features/tasks/pebbles-task-store.js.map +1 -1
  181. package/dist/src/integrations/linear/client.d.ts +28 -1
  182. package/dist/src/integrations/linear/client.d.ts.map +1 -1
  183. package/dist/src/integrations/linear/client.js +87 -0
  184. package/dist/src/integrations/linear/client.js.map +1 -1
  185. package/dist/src/integrations/linear/sync-manager.d.ts +76 -0
  186. package/dist/src/integrations/linear/sync-manager.d.ts.map +1 -0
  187. package/dist/src/integrations/linear/sync-manager.js +223 -0
  188. package/dist/src/integrations/linear/sync-manager.js.map +1 -0
  189. package/dist/src/integrations/linear/sync-service.d.ts +25 -0
  190. package/dist/src/integrations/linear/sync-service.d.ts.map +1 -0
  191. package/dist/src/integrations/linear/sync-service.js +198 -0
  192. package/dist/src/integrations/linear/sync-service.js.map +1 -0
  193. package/dist/src/integrations/linear/sync.d.ts +23 -1
  194. package/dist/src/integrations/linear/sync.d.ts.map +1 -1
  195. package/dist/src/integrations/linear/sync.js +156 -9
  196. package/dist/src/integrations/linear/sync.js.map +1 -1
  197. package/dist/src/integrations/linear/types.d.ts +75 -0
  198. package/dist/src/integrations/linear/types.d.ts.map +1 -0
  199. package/dist/src/integrations/linear/types.js +2 -0
  200. package/dist/src/integrations/linear/types.js.map +1 -0
  201. package/dist/src/integrations/linear/webhook-server.d.ts +32 -0
  202. package/dist/src/integrations/linear/webhook-server.d.ts.map +1 -0
  203. package/dist/src/integrations/linear/webhook-server.js +188 -0
  204. package/dist/src/integrations/linear/webhook-server.js.map +1 -0
  205. package/dist/src/integrations/linear/webhook.d.ts +95 -0
  206. package/dist/src/integrations/linear/webhook.d.ts.map +1 -0
  207. package/dist/src/integrations/linear/webhook.js +204 -0
  208. package/dist/src/integrations/linear/webhook.js.map +1 -0
  209. package/dist/src/integrations/mcp/server.d.ts +14 -0
  210. package/dist/src/integrations/mcp/server.d.ts.map +1 -1
  211. package/dist/src/integrations/mcp/server.js +849 -61
  212. package/dist/src/integrations/mcp/server.js.map +1 -1
  213. package/dist/src/integrations/mcp/trace-test.d.ts +5 -0
  214. package/dist/src/integrations/mcp/trace-test.d.ts.map +1 -0
  215. package/dist/src/integrations/mcp/trace-test.js +54 -0
  216. package/dist/src/integrations/mcp/trace-test.js.map +1 -0
  217. package/dist/src/servers/production/auth-middleware.d.ts +2 -2
  218. package/dist/src/servers/production/auth-middleware.d.ts.map +1 -1
  219. package/dist/src/servers/production/auth-middleware.js +1 -1
  220. package/dist/src/servers/production/auth-middleware.js.map +1 -1
  221. package/dist/src/services/config-service.d.ts +44 -0
  222. package/dist/src/services/config-service.d.ts.map +1 -0
  223. package/dist/src/services/config-service.js +61 -0
  224. package/dist/src/services/config-service.js.map +1 -0
  225. package/dist/src/services/context-service.d.ts +17 -0
  226. package/dist/src/services/context-service.d.ts.map +1 -0
  227. package/dist/src/services/context-service.js +88 -0
  228. package/dist/src/services/context-service.js.map +1 -0
  229. package/dist/src/types/task.d.ts +27 -0
  230. package/dist/src/types/task.d.ts.map +1 -0
  231. package/dist/src/types/task.js +2 -0
  232. package/dist/src/types/task.js.map +1 -0
  233. package/dist/src/utils/logger.d.ts +13 -0
  234. package/dist/src/utils/logger.d.ts.map +1 -0
  235. package/dist/src/utils/logger.js +52 -0
  236. package/dist/src/utils/logger.js.map +1 -0
  237. package/package.json +24 -10
  238. package/dist/attention-scoring/src/attention-tracker.d.ts +0 -79
  239. package/dist/attention-scoring/src/attention-tracker.d.ts.map +0 -1
  240. package/dist/attention-scoring/src/attention-tracker.js +0 -488
  241. package/dist/attention-scoring/src/attention-tracker.js.map +0 -1
  242. package/dist/attention-scoring/src/mcp-integration.d.ts +0 -56
  243. package/dist/attention-scoring/src/mcp-integration.d.ts.map +0 -1
  244. package/dist/attention-scoring/src/mcp-integration.js +0 -369
  245. package/dist/attention-scoring/src/mcp-integration.js.map +0 -1
  246. package/dist/index.js +0 -382
  247. package/dist/p2p-sync/src/p2p-sync.d.ts +0 -81
  248. package/dist/p2p-sync/src/p2p-sync.d.ts.map +0 -1
  249. package/dist/p2p-sync/src/p2p-sync.js +0 -457
  250. package/dist/p2p-sync/src/p2p-sync.js.map +0 -1
  251. package/dist/p2p-sync/src/team-context-sync.d.ts +0 -99
  252. package/dist/p2p-sync/src/team-context-sync.d.ts.map +0 -1
  253. package/dist/p2p-sync/src/team-context-sync.js +0 -491
  254. package/dist/p2p-sync/src/team-context-sync.js.map +0 -1
  255. package/dist/src/analytics/api/analytics-api.d.ts +0 -24
  256. package/dist/src/analytics/api/analytics-api.d.ts.map +0 -1
  257. package/dist/src/analytics/api/analytics-api.js +0 -279
  258. package/dist/src/analytics/api/analytics-api.js.map +0 -1
  259. package/dist/src/analytics/core/analytics-service.d.ts +0 -23
  260. package/dist/src/analytics/core/analytics-service.d.ts.map +0 -1
  261. package/dist/src/analytics/core/analytics-service.js +0 -160
  262. package/dist/src/analytics/core/analytics-service.js.map +0 -1
  263. package/dist/src/analytics/index.d.ts +0 -12
  264. package/dist/src/analytics/index.d.ts.map +0 -1
  265. package/dist/src/analytics/index.js +0 -11
  266. package/dist/src/analytics/index.js.map +0 -1
  267. package/dist/src/analytics/queries/metrics-queries.d.ts +0 -11
  268. package/dist/src/analytics/queries/metrics-queries.d.ts.map +0 -1
  269. package/dist/src/analytics/queries/metrics-queries.js +0 -179
  270. package/dist/src/analytics/queries/metrics-queries.js.map +0 -1
  271. package/dist/src/analytics/types/metrics.d.ts +0 -60
  272. package/dist/src/analytics/types/metrics.d.ts.map +0 -1
  273. package/dist/src/analytics/types/metrics.js +0 -2
  274. package/dist/src/analytics/types/metrics.js.map +0 -1
  275. package/dist/src/beads/beads-task-store.d.ts +0 -117
  276. package/dist/src/beads/beads-task-store.d.ts.map +0 -1
  277. package/dist/src/beads/beads-task-store.js +0 -318
  278. package/dist/src/beads/beads-task-store.js.map +0 -1
  279. package/dist/src/beads/task-aware-context.d.ts +0 -103
  280. package/dist/src/beads/task-aware-context.d.ts.map +0 -1
  281. package/dist/src/beads/task-aware-context.js +0 -395
  282. package/dist/src/beads/task-aware-context.js.map +0 -1
  283. package/dist/src/beads-task-store.d.ts +0 -117
  284. package/dist/src/beads-task-store.d.ts.map +0 -1
  285. package/dist/src/beads-task-store.js +0 -318
  286. package/dist/src/beads-task-store.js.map +0 -1
  287. package/dist/src/cli/analytics-viewer.d.ts +0 -3
  288. package/dist/src/cli/analytics-viewer.d.ts.map +0 -1
  289. package/dist/src/cli/analytics-viewer.js +0 -89
  290. package/dist/src/cli/analytics-viewer.js.map +0 -1
  291. package/dist/src/cli/cli.d.ts +0 -7
  292. package/dist/src/cli/cli.d.ts.map +0 -1
  293. package/dist/src/cli/cli.js +0 -704
  294. package/dist/src/cli/cli.js.map +0 -1
  295. package/dist/src/cli/project-commands.d.ts +0 -8
  296. package/dist/src/cli/project-commands.d.ts.map +0 -1
  297. package/dist/src/cli/project-commands.js +0 -212
  298. package/dist/src/cli/project-commands.js.map +0 -1
  299. package/dist/src/cli.d.ts +0 -7
  300. package/dist/src/cli.d.ts.map +0 -1
  301. package/dist/src/cli.js +0 -73
  302. package/dist/src/cli.js.map +0 -1
  303. package/dist/src/core/error-handler.d.ts +0 -46
  304. package/dist/src/core/error-handler.d.ts.map +0 -1
  305. package/dist/src/core/error-handler.js +0 -212
  306. package/dist/src/core/error-handler.js.map +0 -1
  307. package/dist/src/core/frame-manager.d.ts +0 -106
  308. package/dist/src/core/frame-manager.d.ts.map +0 -1
  309. package/dist/src/core/frame-manager.js +0 -387
  310. package/dist/src/core/frame-manager.js.map +0 -1
  311. package/dist/src/core/logger.d.ts +0 -24
  312. package/dist/src/core/logger.d.ts.map +0 -1
  313. package/dist/src/core/logger.js +0 -121
  314. package/dist/src/core/logger.js.map +0 -1
  315. package/dist/src/core/logger.test.d.ts +0 -2
  316. package/dist/src/core/logger.test.d.ts.map +0 -1
  317. package/dist/src/core/logger.test.js +0 -31
  318. package/dist/src/core/logger.test.js.map +0 -1
  319. package/dist/src/core/progress-tracker.d.ts +0 -95
  320. package/dist/src/core/progress-tracker.d.ts.map +0 -1
  321. package/dist/src/core/progress-tracker.js +0 -178
  322. package/dist/src/core/progress-tracker.js.map +0 -1
  323. package/dist/src/core/project-manager.d.ts +0 -130
  324. package/dist/src/core/project-manager.d.ts.map +0 -1
  325. package/dist/src/core/project-manager.js +0 -582
  326. package/dist/src/core/project-manager.js.map +0 -1
  327. package/dist/src/core/update-checker.d.ts +0 -38
  328. package/dist/src/core/update-checker.d.ts.map +0 -1
  329. package/dist/src/core/update-checker.js +0 -156
  330. package/dist/src/core/update-checker.js.map +0 -1
  331. package/dist/src/error-handler.d.ts +0 -42
  332. package/dist/src/error-handler.d.ts.map +0 -1
  333. package/dist/src/error-handler.js +0 -155
  334. package/dist/src/error-handler.js.map +0 -1
  335. package/dist/src/frame-manager.d.ts +0 -106
  336. package/dist/src/frame-manager.d.ts.map +0 -1
  337. package/dist/src/frame-manager.js +0 -361
  338. package/dist/src/frame-manager.js.map +0 -1
  339. package/dist/src/integrations/browser-mcp.d.ts +0 -94
  340. package/dist/src/integrations/browser-mcp.d.ts.map +0 -1
  341. package/dist/src/integrations/browser-mcp.js +0 -431
  342. package/dist/src/integrations/browser-mcp.js.map +0 -1
  343. package/dist/src/integrations/linear-auth.d.ts +0 -99
  344. package/dist/src/integrations/linear-auth.d.ts.map +0 -1
  345. package/dist/src/integrations/linear-auth.js +0 -319
  346. package/dist/src/integrations/linear-auth.js.map +0 -1
  347. package/dist/src/integrations/linear-auto-sync.d.ts +0 -77
  348. package/dist/src/integrations/linear-auto-sync.d.ts.map +0 -1
  349. package/dist/src/integrations/linear-auto-sync.js +0 -268
  350. package/dist/src/integrations/linear-auto-sync.js.map +0 -1
  351. package/dist/src/integrations/linear-client.d.ts +0 -86
  352. package/dist/src/integrations/linear-client.d.ts.map +0 -1
  353. package/dist/src/integrations/linear-client.js +0 -277
  354. package/dist/src/integrations/linear-client.js.map +0 -1
  355. package/dist/src/integrations/linear-config.d.ts +0 -51
  356. package/dist/src/integrations/linear-config.d.ts.map +0 -1
  357. package/dist/src/integrations/linear-config.js +0 -103
  358. package/dist/src/integrations/linear-config.js.map +0 -1
  359. package/dist/src/integrations/linear-sync.d.ts +0 -97
  360. package/dist/src/integrations/linear-sync.d.ts.map +0 -1
  361. package/dist/src/integrations/linear-sync.js +0 -391
  362. package/dist/src/integrations/linear-sync.js.map +0 -1
  363. package/dist/src/logger.d.ts +0 -24
  364. package/dist/src/logger.d.ts.map +0 -1
  365. package/dist/src/logger.js +0 -120
  366. package/dist/src/logger.js.map +0 -1
  367. package/dist/src/mcp/mcp-server.d.ts +0 -40
  368. package/dist/src/mcp/mcp-server.d.ts.map +0 -1
  369. package/dist/src/mcp/mcp-server.js +0 -828
  370. package/dist/src/mcp/mcp-server.js.map +0 -1
  371. package/dist/src/mcp-server.d.ts +0 -32
  372. package/dist/src/mcp-server.d.ts.map +0 -1
  373. package/dist/src/mcp-server.js +0 -441
  374. package/dist/src/mcp-server.js.map +0 -1
  375. package/dist/src/pebbles/pebbles-task-store.d.ts +0 -117
  376. package/dist/src/pebbles/pebbles-task-store.d.ts.map +0 -1
  377. package/dist/src/pebbles/pebbles-task-store.js +0 -335
  378. package/dist/src/pebbles/pebbles-task-store.js.map +0 -1
  379. package/dist/src/pebbles/task-aware-context.d.ts +0 -103
  380. package/dist/src/pebbles/task-aware-context.d.ts.map +0 -1
  381. package/dist/src/pebbles/task-aware-context.js +0 -412
  382. package/dist/src/pebbles/task-aware-context.js.map +0 -1
  383. package/dist/src/railway/index.d.ts +0 -7
  384. package/dist/src/railway/index.d.ts.map +0 -1
  385. package/dist/src/railway/index.js +0 -401
  386. package/dist/src/railway/index.js.map +0 -1
  387. package/dist/src/runway/auth/auth-middleware.d.ts +0 -66
  388. package/dist/src/runway/auth/auth-middleware.d.ts.map +0 -1
  389. package/dist/src/runway/auth/auth-middleware.js +0 -337
  390. package/dist/src/runway/auth/auth-middleware.js.map +0 -1
  391. package/dist/src/runway/server/runway-mcp-server.d.ts +0 -46
  392. package/dist/src/runway/server/runway-mcp-server.d.ts.map +0 -1
  393. package/dist/src/runway/server/runway-mcp-server.js +0 -601
  394. package/dist/src/runway/server/runway-mcp-server.js.map +0 -1
  395. package/dist/src/runway.bak/auth/auth-middleware.d.ts +0 -66
  396. package/dist/src/runway.bak/auth/auth-middleware.d.ts.map +0 -1
  397. package/dist/src/runway.bak/auth/auth-middleware.js +0 -337
  398. package/dist/src/runway.bak/auth/auth-middleware.js.map +0 -1
  399. package/dist/src/runway.bak/server/runway-mcp-server.d.ts +0 -46
  400. package/dist/src/runway.bak/server/runway-mcp-server.d.ts.map +0 -1
  401. package/dist/src/runway.bak/server/runway-mcp-server.js +0 -601
  402. package/dist/src/runway.bak/server/runway-mcp-server.js.map +0 -1
  403. package/dist/src/task-aware-context.d.ts +0 -103
  404. package/dist/src/task-aware-context.d.ts.map +0 -1
  405. package/dist/src/task-aware-context.js +0 -395
  406. package/dist/src/task-aware-context.js.map +0 -1
package/README.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  StackMemory is a **memory runtime** for AI coding and writing tools that preserves full project context across:
6
6
 
7
- * chat thread resets
8
- * model switching
9
- * editor restarts
10
- * long-running repos with thousands of interactions
7
+ - chat thread resets
8
+ - model switching
9
+ - editor restarts
10
+ - long-running repos with thousands of interactions
11
11
 
12
12
  Instead of a linear chat log, StackMemory organizes memory as a **call stack** of scoped work (frames), allowing context to naturally unwind without lossy compaction.
13
13
 
@@ -19,16 +19,18 @@ Instead of a linear chat log, StackMemory organizes memory as a **call stack** o
19
19
 
20
20
  Modern AI tools forget:
21
21
 
22
- * why decisions were made
23
- * which constraints still apply
24
- * what changed earlier in the repo
25
- * what tools already ran and why
22
+ - why decisions were made
23
+ - which constraints still apply
24
+ - what changed earlier in the repo
25
+ - what tools already ran and why
26
26
 
27
27
  StackMemory fixes this by:
28
28
 
29
- * storing **everything losslessly** (events, tool calls, decisions)
30
- * injecting only the **relevant working set** into model context
31
- * keeping memory **project-scoped**, not chat-scoped
29
+ - storing **everything losslessly** (events, tool calls, decisions) with infinite remote retention
30
+ - using **LLM-driven intelligent retrieval** to inject only the most relevant context
31
+ - organizing memory as a **call stack with up to 10,000 frames** instead of linear chat logs
32
+ - providing **configurable importance scoring** to prioritize what matters for your workflow
33
+ - enabling **team collaboration** through shared and individual frame stacks
32
34
 
33
35
  ---
34
36
 
@@ -45,9 +47,9 @@ StackMemory fixes this by:
45
47
 
46
48
  Frames can span:
47
49
 
48
- * multiple chat turns
49
- * multiple tool calls
50
- * multiple sessions
50
+ - multiple chat turns
51
+ - multiple tool calls
52
+ - multiple sessions
51
53
 
52
54
  ---
53
55
 
@@ -55,19 +57,19 @@ Frames can span:
55
57
 
56
58
  ### Hosted (default)
57
59
 
58
- * Cloud-backed memory runtime
59
- * Fast indexing + retrieval
60
- * Durable storage
61
- * Per-project pricing
62
- * Works out-of-the-box
60
+ - Cloud-backed memory runtime
61
+ - Fast indexing + retrieval
62
+ - Durable storage
63
+ - Per-project pricing
64
+ - Works out-of-the-box
63
65
 
64
66
  ### Open-source local mirror
65
67
 
66
- * SQLite-based
67
- * Fully inspectable
68
- * Offline / air-gapped
69
- * Intentionally **N versions behind**
70
- * No sync, no org features
68
+ - SQLite-based
69
+ - Fully inspectable
70
+ - Offline / air-gapped
71
+ - Intentionally **N versions behind**
72
+ - No sync, no org features
71
73
 
72
74
  > OSS is for trust and inspection.
73
75
  > Hosted is for scale, performance, and teams.
@@ -78,9 +80,9 @@ Frames can span:
78
80
 
79
81
  StackMemory integrates as an **MCP tool** and is invoked on **every interaction** in:
80
82
 
81
- * Claude Code
82
- * compatible editors
83
- * future MCP-enabled tools
83
+ - Claude Code
84
+ - compatible editors
85
+ - future MCP-enabled tools
84
86
 
85
87
  The editor never manages memory directly — it simply asks StackMemory for the **context bundle**.
86
88
 
@@ -101,44 +103,87 @@ This creates a **project-scoped memory space** tied to the repo.
101
103
 
102
104
  ---
103
105
 
104
- ### Step 2: Install MCP client
106
+ ### Step 2: Install StackMemory
105
107
 
106
108
  ```bash
107
- npm install -g stackmemory-mcp
109
+ npm install -g @stackmemoryai/stackmemory@latest
108
110
  ```
109
111
 
110
- or via binary:
112
+ ---
113
+
114
+ ### Step 3: Setup Claude Code Integration (Automated)
111
115
 
112
116
  ```bash
113
- curl -fsSL https://stackmemory.dev/install | sh
117
+ # Automatic setup - configures MCP and session hooks
118
+ npm run claude:setup
114
119
  ```
115
120
 
116
- ---
121
+ This automatically:
117
122
 
118
- ### Step 3: Configure Claude Code / editor
123
+ - Creates `~/.claude/stackmemory-mcp.json` MCP configuration
124
+ - Sets up session initialization hooks
125
+ - Updates `~/.claude/config.json` with StackMemory integration
119
126
 
120
- Add StackMemory as an MCP tool:
127
+ **Manual setup alternative:**
121
128
 
122
- ```json
129
+ <details>
130
+ <summary>Click to expand manual setup steps</summary>
131
+
132
+ Create MCP configuration:
133
+
134
+ ```bash
135
+ mkdir -p ~/.claude
136
+ cat > ~/.claude/stackmemory-mcp.json << 'EOF'
123
137
  {
124
- "tools": {
138
+ "mcpServers": {
125
139
  "stackmemory": {
126
- "command": "stackmemory-mcp",
127
- "args": ["--project", "github:org/repo"]
140
+ "command": "stackmemory",
141
+ "args": ["mcp-server"],
142
+ "env": { "NODE_ENV": "production" }
128
143
  }
129
144
  }
130
145
  }
146
+ EOF
131
147
  ```
132
148
 
133
- That's it.
149
+ Update Claude config:
150
+
151
+ ```json
152
+ {
153
+ "mcp": {
154
+ "configFiles": ["~/.claude/stackmemory-mcp.json"]
155
+ }
156
+ }
157
+ ```
158
+
159
+ </details>
160
+
161
+ **That's it.**
162
+
163
+ Every Claude Code session now automatically:
164
+
165
+ 1. **Captures all tool calls** - Bash, Edit, Read, Write operations get logged
166
+ 2. **Maintains frame stack** - Task/subtask context persists across sessions
167
+ 3. **References previous work** - Decisions, constraints, and artifacts automatically surface
168
+ 4. **Syncs with Linear** - Bidirectional task synchronization when configured
134
169
 
135
- Every message now:
170
+ Available MCP tools in Claude Code:
136
171
 
137
- 1. Gets logged losslessly
138
- 2. Updates the call stack
139
- 3. Retrieves the correct context automatically
172
+ | Tool | Description |
173
+ | -------------------- | ------------------------------------------ |
174
+ | `get_context` | Retrieve relevant context for current work |
175
+ | `add_decision` | Record a decision with rationale |
176
+ | `start_frame` | Begin a new context frame |
177
+ | `close_frame` | Close current frame with summary |
178
+ | `create_task` | Create a new task |
179
+ | `update_task_status` | Update task status |
180
+ | `get_active_tasks` | List active tasks (with filters) |
181
+ | `get_task_metrics` | Get task analytics |
182
+ | `linear_sync` | Sync with Linear |
183
+ | `linear_update_task` | Update Linear issue |
184
+ | `linear_get_tasks` | Get tasks from Linear |
140
185
 
141
- No prompts to manage. No summaries to babysit.
186
+ No prompts to manage. No summaries to babysit. Just seamless context continuity.
142
187
 
143
188
  ---
144
189
 
@@ -190,24 +235,20 @@ All project memory lives locally.
190
235
  On every message/tool call:
191
236
 
192
237
  1. **Ingest**
193
-
194
- * New message delta is appended as events
238
+ - New message delta is appended as events
195
239
 
196
240
  2. **Index**
197
-
198
- * Anchors updated
199
- * Digests generated when frames close
241
+ - Anchors updated
242
+ - Digests generated when frames close
200
243
 
201
244
  3. **Retrieve**
202
-
203
- * Active call stack (hot)
204
- * Relevant digests (warm)
205
- * Pointers to raw data (cold)
245
+ - Active call stack (hot)
246
+ - Relevant digests (warm)
247
+ - Pointers to raw data (cold)
206
248
 
207
249
  4. **Return context bundle**
208
-
209
- * Sized to token budget
210
- * No global compaction
250
+ - Sized to token budget
251
+ - No global compaction
211
252
 
212
253
  ---
213
254
 
@@ -236,16 +277,16 @@ On every message/tool call:
236
277
 
237
278
  ### Free tier (hosted)
238
279
 
239
- * 1 project
240
- * Up to **X MB stored**
241
- * Up to **Y MB retrieval egress / month**
280
+ - 1 project
281
+ - Up to **X MB stored**
282
+ - Up to **Y MB retrieval egress / month**
242
283
 
243
284
  ### Paid tiers
244
285
 
245
- * Per-project pricing
246
- * Higher storage + retrieval
247
- * Team sharing
248
- * Org controls
286
+ - Per-project pricing
287
+ - Higher storage + retrieval
288
+ - Team sharing
289
+ - Org controls
249
290
 
250
291
  **No seat-based pricing.**
251
292
 
@@ -258,6 +299,7 @@ StackMemory can automatically save context when using Claude Code, ensuring your
258
299
  ### Quick Setup
259
300
 
260
301
  1. **Install the wrapper script**:
302
+
261
303
  ```bash
262
304
  # Make scripts executable
263
305
  chmod +x scripts/claude-code-wrapper.sh scripts/stackmemory-daemon.sh
@@ -268,6 +310,7 @@ source ~/.zshrc
268
310
  ```
269
311
 
270
312
  2. **Use Claude Code with auto-save**:
313
+
271
314
  ```bash
272
315
  # Instead of: claude-code
273
316
  # Use: claude
@@ -278,7 +321,9 @@ source ~/.zshrc
278
321
  ### Integration Methods
279
322
 
280
323
  #### 1. Shell Wrapper (Recommended)
324
+
281
325
  Automatically saves context when Claude Code exits:
326
+
282
327
  ```bash
283
328
  # Basic usage
284
329
  claude
@@ -291,7 +336,9 @@ claude --auto-sync --sync-interval=10
291
336
  ```
292
337
 
293
338
  #### 2. Linear Auto-Sync Daemon
339
+
294
340
  Continuously syncs with Linear in the background:
341
+
295
342
  ```bash
296
343
  # Start auto-sync (default: 5 minutes)
297
344
  ./scripts/linear-auto-sync.sh start
@@ -310,11 +357,14 @@ Continuously syncs with Linear in the background:
310
357
  ```
311
358
 
312
359
  **Requirements:**
360
+
313
361
  - Set `LINEAR_API_KEY` environment variable
314
362
  - Run in a StackMemory-initialized project
315
363
 
316
364
  #### 3. Background Daemon
365
+
317
366
  Continuously saves context every 5 minutes:
367
+
318
368
  ```bash
319
369
  # Start daemon
320
370
  ./scripts/stackmemory-daemon.sh &
@@ -327,14 +377,18 @@ kill $(cat /tmp/stackmemory-daemon.pid)
327
377
  ```
328
378
 
329
379
  #### 4. Git Hooks
380
+
330
381
  Save context automatically on git commits:
382
+
331
383
  ```bash
332
384
  # Install in current repo
333
385
  ./scripts/setup-git-hooks.sh
334
386
  ```
335
387
 
336
388
  #### 5. Manual Function
389
+
337
390
  Add to `~/.zshrc`:
391
+
338
392
  ```bash
339
393
  claude_with_sm() {
340
394
  claude "$@"
@@ -361,20 +415,20 @@ claude_with_sm() {
361
415
 
362
416
  ## Guarantees
363
417
 
364
- * ✅ Lossless storage (no destructive compaction)
365
- * ✅ Project-scoped isolation
366
- * ✅ Survives new chat threads
367
- * ✅ Survives model switching
368
- * ✅ Inspectable local mirror
418
+ - ✅ Lossless storage (no destructive compaction)
419
+ - ✅ Project-scoped isolation
420
+ - ✅ Survives new chat threads
421
+ - ✅ Survives model switching
422
+ - ✅ Inspectable local mirror
369
423
 
370
424
  ---
371
425
 
372
426
  ## Non-goals
373
427
 
374
- * ❌ Chat UI
375
- * ❌ Vector DB replacement
376
- * ❌ Tool execution runtime
377
- * ❌ Prompt engineering framework
428
+ - ❌ Chat UI
429
+ - ❌ Vector DB replacement
430
+ - ❌ Tool execution runtime
431
+ - ❌ Prompt engineering framework
378
432
 
379
433
  ---
380
434
 
@@ -386,40 +440,165 @@ claude_with_sm() {
386
440
 
387
441
  ---
388
442
 
443
+ ## CLI Commands Reference
444
+
445
+ StackMemory provides a comprehensive CLI for task management, context tracking, and Linear integration.
446
+
447
+ ### Core Commands
448
+
449
+ ```bash
450
+ stackmemory init # Initialize StackMemory in current project
451
+ stackmemory status # Show current StackMemory status
452
+ stackmemory progress # Show recent changes and progress
453
+ ```
454
+
455
+ ### Task Management
456
+
457
+ ```bash
458
+ # List tasks
459
+ stackmemory tasks list # List all active tasks
460
+ stackmemory tasks list --status pending # Filter by status
461
+ stackmemory tasks list --priority high # Filter by priority
462
+ stackmemory tasks list --query "bug" # Search in title/description
463
+ stackmemory tasks list --all # Include completed tasks
464
+
465
+ # Manage tasks
466
+ stackmemory task add "Fix login bug" --priority high --tags "bug,auth"
467
+ stackmemory task show <task-id> # Show task details
468
+ stackmemory task start <task-id> # Start working on task
469
+ stackmemory task done <task-id> # Mark task complete
470
+ ```
471
+
472
+ ### Search
473
+
474
+ ```bash
475
+ stackmemory search "analytics" # Search tasks and context
476
+ stackmemory search "api" --tasks # Search only tasks
477
+ stackmemory search "decision" --context # Search only context
478
+ ```
479
+
480
+ ### Activity Log
481
+
482
+ ```bash
483
+ stackmemory log # View recent activity
484
+ stackmemory log --lines 50 # Show more entries
485
+ stackmemory log --type task # Filter by type (task, frame, event, sync)
486
+ stackmemory log --follow # Watch for changes in real-time
487
+ ```
488
+
489
+ ### Context Stack Management
490
+
491
+ ```bash
492
+ # View context
493
+ stackmemory context show # Show current context stack
494
+ stackmemory context show --verbose # Show detailed frame info
495
+
496
+ # Manage context frames
497
+ stackmemory context push "feature-work" --type task
498
+ stackmemory context push "debug-session" --type session
499
+ stackmemory context add decision "Using SQLite for storage"
500
+ stackmemory context add observation "API returns 404 on missing user"
501
+ stackmemory context pop # Pop top frame
502
+ stackmemory context pop --all # Clear entire stack
503
+ ```
504
+
505
+ ### Analytics Dashboard
506
+
507
+ ```bash
508
+ stackmemory analytics --view # Terminal dashboard
509
+ stackmemory analytics --port 3000 # Web dashboard
510
+ stackmemory analytics --sync # Sync before displaying
511
+ stackmemory analytics --export json # Export metrics as JSON
512
+ stackmemory analytics --export csv # Export as CSV
513
+ ```
514
+
515
+ ### Linear Integration
516
+
517
+ ```bash
518
+ # Setup
519
+ stackmemory linear setup # OAuth setup
520
+ stackmemory linear status # Check connection
521
+
522
+ # Sync
523
+ stackmemory linear sync # Bidirectional sync
524
+ stackmemory linear sync --direction from_linear
525
+ stackmemory linear sync --direction to_linear
526
+
527
+ # Auto-sync
528
+ stackmemory linear auto-sync --start # Start background sync
529
+ stackmemory linear auto-sync --stop # Stop background sync
530
+ stackmemory linear auto-sync --status # Check sync status
531
+
532
+ # Update tasks
533
+ stackmemory linear update ENG-123 --status in-progress
534
+ stackmemory linear update ENG-123 --status done
535
+
536
+ # Configure
537
+ stackmemory linear config --show
538
+ stackmemory linear config --set-interval 15
539
+ ```
540
+
541
+ ### MCP Server
542
+
543
+ ```bash
544
+ stackmemory mcp-server # Start MCP server for Claude
545
+ stackmemory mcp-server --port 3001 # Custom port
546
+ ```
547
+
548
+ ---
549
+
389
550
  ## Status
390
551
 
391
- * Hosted: **Private beta**
392
- * OSS mirror: **Early preview**
393
- * MCP integration: **Stable**
552
+ - Hosted: **Private beta**
553
+ - OSS mirror: **Early preview**
554
+ - MCP integration: **Stable**
555
+ - CLI: **v0.2.7** - Full task, context, and Linear management
394
556
 
395
557
  ---
396
558
 
397
559
  ## Roadmap (high level)
398
560
 
399
- * Team / org projects
400
- * Cross-repo memory
401
- * Background project compilers
402
- * Fine-grained retention policies
403
- * Editor UX surfacing frame boundaries
561
+ ### Phase 2: Intelligence Layer (In Progress)
562
+ - Query language with NLP and structured formats
563
+ - LLM-driven context retrieval with compressed summaries
564
+ - 60/40 hybrid digest generation during idle time
565
+ - Configurable weight profiles for scoring
566
+ - Smart trace detection and bundling
567
+
568
+ ### Phase 3: Collaboration
569
+ - Dual stack architecture (individual + shared)
570
+ - Frame handoff between developers
571
+ - Stack merge conflict resolution
572
+ - Team awareness and notifications
573
+ - Permission-based frame operations
574
+
575
+ ### Phase 4: Scale & Performance
576
+ - Two-tier storage (local + infinite remote)
577
+ - Incremental garbage collection
578
+ - Predictive migration and prefetching
579
+ - Enterprise security features
580
+ - Cost-optimized storage tiers
404
581
 
405
582
  ---
406
583
 
407
584
  ## License
408
585
 
409
- * Hosted service: Proprietary
410
- * Open-source mirror: Apache 2.0 / MIT (TBD)
586
+ - Hosted service: Proprietary
587
+ - Open-source mirror: Apache 2.0 / MIT (TBD)
411
588
 
412
589
  ---
413
590
 
414
591
  ## Additional Resources
415
592
 
416
593
  ### ML System Design
594
+
417
595
  - [ML System Insights](./ML_SYSTEM_INSIGHTS.md) - Comprehensive analysis of 300+ production ML systems
418
596
  - [Agent Instructions](./AGENTS.md) - Specific guidance for AI agents working with ML systems
419
597
 
420
598
  ### Documentation
599
+
421
600
  - [Product Requirements](./PRD.md) - Detailed product specifications
422
601
  - [Technical Architecture](./TECHNICAL_ARCHITECTURE.md) - System design and database schemas
423
602
  - [Beads Integration](./BEADS_INTEGRATION.md) - Git-native memory patterns from Beads ecosystem
424
603
 
425
- ---
604
+ ---
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Script to cancel duplicate Linear tasks
4
+ * Uses the actual Linear API to find and cancel duplicates
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=cancel-duplicate-tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-duplicate-tasks.d.ts","sourceRoot":"","sources":["../../scripts/cancel-duplicate-tasks.ts"],"names":[],"mappings":";AAEA;;;GAGG"}