@stackmemoryai/stackmemory 1.12.0 → 1.14.0
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/LICENSE +131 -64
- package/README.md +3 -1
- package/bin/claude-sm +16 -1
- package/bin/claude-smd +16 -1
- package/bin/codex-smd +16 -1
- package/bin/gemini-sm +16 -1
- package/bin/hermes-sm +21 -0
- package/bin/hermes-smd +21 -0
- package/bin/opencode-sm +16 -1
- package/dist/src/cli/codex-sm.js +51 -11
- package/dist/src/cli/commands/brain.js +206 -0
- package/dist/src/cli/commands/company-os.js +184 -0
- package/dist/src/cli/commands/context.js +5 -0
- package/dist/src/cli/commands/operator.js +127 -0
- package/dist/src/cli/commands/orchestrate.js +2 -0
- package/dist/src/cli/commands/orchestrator.js +3 -2
- package/dist/src/cli/commands/patterns.js +254 -0
- package/dist/src/cli/commands/portal.js +161 -0
- package/dist/src/cli/commands/scaffold.js +92 -0
- package/dist/src/cli/commands/setup.js +1 -4
- package/dist/src/cli/commands/sync.js +253 -0
- package/dist/src/cli/commands/tasks.js +130 -1
- package/dist/src/cli/commands/vision.js +221 -0
- package/dist/src/cli/hermes-sm.js +224 -0
- package/dist/src/cli/index.js +15 -10
- package/dist/src/cli/utils/real-cli-bin.js +72 -0
- package/dist/src/core/brain/brain-store.js +187 -0
- package/dist/src/core/brain/brain-sync.js +193 -0
- package/dist/src/core/brain/index.js +78 -0
- package/dist/src/core/brain/types.js +10 -0
- package/dist/src/core/cache/token-estimator.js +24 -1
- package/dist/src/core/config/feature-flags.js +2 -6
- package/dist/src/core/context/frame-database.js +44 -0
- package/dist/src/core/context/recursive-context-manager.js +1 -1
- package/dist/src/core/context/rehydration.js +2 -1
- package/dist/src/core/database/sqlite-adapter.js +14 -1
- package/dist/src/core/models/model-router.js +33 -1
- package/dist/src/core/models/provider-pricing.js +58 -4
- package/dist/src/core/patterns/index.js +22 -0
- package/dist/src/core/patterns/pattern-applier.js +39 -0
- package/dist/src/core/patterns/pattern-observer.js +157 -0
- package/dist/src/core/patterns/pattern-store.js +259 -0
- package/dist/src/core/patterns/types.js +19 -0
- package/dist/src/core/retrieval/llm-context-retrieval.js +5 -4
- package/dist/src/core/retrieval/unified-context-assembler.js +11 -66
- package/dist/src/core/skill-packs/types.js +14 -1
- package/dist/src/core/storage/cloud-sync-manager.js +116 -0
- package/dist/src/core/storage/cloud-sync.js +574 -0
- package/dist/src/core/storage/two-tier-storage.js +5 -1
- package/dist/src/core/tasks/master-tasks-template.js +43 -0
- package/dist/src/core/tasks/md-task-parser.js +138 -0
- package/dist/src/core/vision/index.js +27 -0
- package/dist/src/core/vision/signals.js +79 -0
- package/dist/src/core/vision/types.js +22 -0
- package/dist/src/core/vision/vision-file.js +146 -0
- package/dist/src/core/vision/vision-loop.js +220 -0
- package/dist/src/core/wiki/wiki-compiler.js +103 -1
- package/dist/src/daemon/daemon-config.js +45 -0
- package/dist/src/daemon/services/desire-path-service.js +566 -0
- package/dist/src/daemon/services/research-stream-service.js +320 -0
- package/dist/src/daemon/services/telemetry-service.js +192 -0
- package/dist/src/daemon/unified-daemon.js +28 -1
- package/dist/src/features/browser/cli-browser-agent.js +417 -0
- package/dist/src/features/browser/stagehand-workflows.js +578 -0
- package/dist/src/features/operator/adapter-factory.js +62 -0
- package/dist/src/features/operator/browser-adapter.js +109 -0
- package/dist/src/features/operator/desktop-adapter.js +125 -0
- package/dist/src/features/operator/index.js +39 -0
- package/dist/src/features/operator/llm-decision.js +137 -0
- package/dist/src/features/operator/operator-logger.js +92 -0
- package/dist/src/features/operator/overnight-runner.js +327 -0
- package/dist/src/features/operator/screen-adapter.js +91 -0
- package/dist/src/features/operator/session-manager.js +127 -0
- package/dist/src/features/operator/state-machine.js +227 -0
- package/dist/src/features/operator/task-queue.js +81 -0
- package/dist/src/features/portal/index.js +26 -0
- package/dist/src/features/portal/server.js +240 -0
- package/dist/src/features/portal/types.js +14 -0
- package/dist/src/features/portal/ui.js +195 -0
- package/dist/src/features/tasks/task-aware-context.js +2 -1
- package/dist/src/features/tui/simple-monitor.js +0 -23
- package/dist/src/features/tui/swarm-monitor.js +8 -66
- package/dist/src/{integrations/diffmem/index.js → features/web/client/hooks/use-socket.js} +6 -5
- package/dist/src/features/web/client/lib/utils.js +12 -0
- package/dist/src/features/web/client/stores/session-store.js +12 -0
- package/dist/src/features/web/server/gcp-billing.js +76 -0
- package/dist/src/features/web/server/index.js +10 -0
- package/dist/src/features/web/server/spend-calculator.js +228 -0
- package/dist/src/hooks/schemas.js +4 -1
- package/dist/src/integrations/anthropic/client.js +3 -2
- package/dist/src/integrations/claude-code/agent-bridge.js +0 -3
- package/dist/src/integrations/claude-code/subagent-client.js +218 -11
- package/dist/src/integrations/claude-code/task-coordinator.js +2 -1
- package/dist/src/integrations/linear/webhook-retry.js +196 -0
- package/dist/src/integrations/linear/webhook-server.js +18 -22
- package/dist/src/integrations/mcp/handlers/cloud-sync-handlers.js +101 -0
- package/dist/src/integrations/mcp/handlers/index.js +27 -52
- package/dist/src/integrations/mcp/server.js +122 -335
- package/dist/src/integrations/mcp/tool-alias-registry.js +0 -73
- package/dist/src/integrations/mcp/tool-definitions.js +111 -510
- package/dist/src/mcp/stackmemory-mcp-server.js +404 -379
- package/dist/src/orchestrators/multimodal/determinism.js +2 -1
- package/dist/src/orchestrators/multimodal/harness.js +2 -1
- package/dist/src/skills/recursive-agent-orchestrator.js +2 -4
- package/dist/src/utils/process-cleanup.js +1 -7
- package/docs/README.md +42 -0
- package/docs/guides/README_INSTALL.md +208 -0
- package/package.json +18 -9
- package/scripts/claude-code-wrapper.sh +11 -0
- package/scripts/claude-sm-setup.sh +12 -1
- package/scripts/codex-wrapper.sh +11 -0
- package/scripts/git-hooks/branch-context-manager.sh +11 -0
- package/scripts/git-hooks/post-checkout-stackmemory.sh +11 -0
- package/scripts/git-hooks/post-commit-stackmemory.sh +11 -0
- package/scripts/git-hooks/pre-commit-stackmemory.sh +11 -0
- package/scripts/hooks/cleanup-shell.sh +12 -1
- package/scripts/hooks/task-complete.sh +12 -1
- package/scripts/install-code-execution-hooks.sh +12 -1
- package/scripts/install-sweep-hook.sh +12 -0
- package/scripts/install.sh +11 -0
- package/scripts/opencode-wrapper.sh +11 -0
- package/scripts/portal/cloud-init.yaml +69 -0
- package/scripts/portal/setup.sh +69 -0
- package/scripts/portal/stackmemory-portal.service +34 -0
- package/scripts/setup-claude-integration.sh +12 -1
- package/scripts/smoke-init-db.sh +23 -0
- package/scripts/stackmemory-daemon.sh +11 -0
- package/scripts/verify-dist.cjs +11 -4
- package/dist/src/cli/commands/ralph.js +0 -1053
- package/dist/src/hooks/diffmem-hooks.js +0 -376
- package/dist/src/integrations/diffmem/client.js +0 -208
- package/dist/src/integrations/diffmem/config.js +0 -14
- package/dist/src/integrations/greptile/client.js +0 -101
- package/dist/src/integrations/greptile/config.js +0 -14
- package/dist/src/integrations/greptile/index.js +0 -11
- package/dist/src/integrations/mcp/handlers/cross-search-handlers.js +0 -188
- package/dist/src/integrations/mcp/handlers/diffmem-handlers.js +0 -455
- package/dist/src/integrations/mcp/handlers/greptile-handlers.js +0 -456
- package/dist/src/integrations/mcp/handlers/provider-handlers.js +0 -227
- package/dist/src/integrations/ralph/bridge/ralph-stackmemory-bridge.js +0 -863
- package/dist/src/integrations/ralph/context/context-budget-manager.js +0 -308
- package/dist/src/integrations/ralph/context/stackmemory-context-loader.js +0 -354
- package/dist/src/integrations/ralph/index.js +0 -17
- package/dist/src/integrations/ralph/learning/pattern-learner.js +0 -416
- package/dist/src/integrations/ralph/lifecycle/iteration-lifecycle.js +0 -448
- package/dist/src/integrations/ralph/loopmax.js +0 -488
- package/dist/src/integrations/ralph/monitoring/swarm-dashboard.js +0 -293
- package/dist/src/integrations/ralph/monitoring/swarm-registry.js +0 -107
- package/dist/src/integrations/ralph/orchestration/multi-loop-orchestrator.js +0 -508
- package/dist/src/integrations/ralph/patterns/compounding-engineering-pattern.js +0 -407
- package/dist/src/integrations/ralph/patterns/extended-coherence-sessions.js +0 -495
- package/dist/src/integrations/ralph/patterns/oracle-worker-pattern.js +0 -387
- package/dist/src/integrations/ralph/performance/performance-optimizer.js +0 -357
- package/dist/src/integrations/ralph/recovery/crash-recovery.js +0 -461
- package/dist/src/integrations/ralph/state/state-reconciler.js +0 -420
- package/dist/src/integrations/ralph/swarm/git-workflow-manager.js +0 -444
- package/dist/src/integrations/ralph/swarm/swarm-coordinator.js +0 -1005
- package/dist/src/integrations/ralph/visualization/ralph-debugger.js +0 -635
- package/scripts/ralph-loop-implementation.js +0 -404
- /package/dist/src/{integrations/diffmem/types.js → core/storage/cloud-sync-types.js} +0 -0
- /package/dist/src/{integrations/greptile → features/operator}/types.js +0 -0
- /package/dist/src/{integrations/ralph/types.js → features/web/client/next-env.d.js} +0 -0
|
@@ -83,17 +83,6 @@ const TOOL_ALIASES = {
|
|
|
83
83
|
sm_summary: "get_summary",
|
|
84
84
|
project_summary: "get_summary",
|
|
85
85
|
// --- Planning tools ---
|
|
86
|
-
plan: "plan_only",
|
|
87
|
-
generate_plan: "plan_only",
|
|
88
|
-
sm_plan: "plan_only",
|
|
89
|
-
codex: "call_codex",
|
|
90
|
-
run_codex: "call_codex",
|
|
91
|
-
claude: "call_claude",
|
|
92
|
-
ask_claude: "call_claude",
|
|
93
|
-
gate: "plan_gate",
|
|
94
|
-
plan_and_gate: "plan_gate",
|
|
95
|
-
approve: "approve_plan",
|
|
96
|
-
execute_plan: "approve_plan",
|
|
97
86
|
// --- Pending tools ---
|
|
98
87
|
pending: "pending_list",
|
|
99
88
|
list_pending: "pending_list",
|
|
@@ -103,17 +92,6 @@ const TOOL_ALIASES = {
|
|
|
103
92
|
fuzzy_edit: "sm_edit",
|
|
104
93
|
edit: "sm_edit",
|
|
105
94
|
sm_fuzzy_edit: "sm_edit",
|
|
106
|
-
// --- DiffMem tools ---
|
|
107
|
-
user_context: "diffmem_get_user_context",
|
|
108
|
-
get_user_context: "diffmem_get_user_context",
|
|
109
|
-
user_memory: "diffmem_get_user_context",
|
|
110
|
-
store_learning: "diffmem_store_learning",
|
|
111
|
-
learn: "diffmem_store_learning",
|
|
112
|
-
remember: "diffmem_store_learning",
|
|
113
|
-
memory_search: "diffmem_search",
|
|
114
|
-
search_memory: "diffmem_search",
|
|
115
|
-
diffmem: "diffmem_status",
|
|
116
|
-
memory_status: "diffmem_status",
|
|
117
95
|
// --- Digest tools ---
|
|
118
96
|
digest: "sm_digest",
|
|
119
97
|
activity_digest: "sm_digest",
|
|
@@ -122,28 +100,6 @@ const TOOL_ALIASES = {
|
|
|
122
100
|
desire_paths: "sm_desire_paths",
|
|
123
101
|
desires: "sm_desire_paths",
|
|
124
102
|
failed_tools: "sm_desire_paths",
|
|
125
|
-
// --- Provider tools ---
|
|
126
|
-
delegate: "delegate_to_model",
|
|
127
|
-
route: "delegate_to_model",
|
|
128
|
-
send_to_model: "delegate_to_model",
|
|
129
|
-
batch: "batch_submit",
|
|
130
|
-
submit_batch: "batch_submit",
|
|
131
|
-
check_batch: "batch_check",
|
|
132
|
-
batch_status: "batch_check",
|
|
133
|
-
// --- Greptile tools ---
|
|
134
|
-
pr_comments: "greptile_pr_comments",
|
|
135
|
-
review_comments: "greptile_pr_comments",
|
|
136
|
-
pr_details: "greptile_pr_details",
|
|
137
|
-
pr_info: "greptile_pr_details",
|
|
138
|
-
list_prs: "greptile_list_prs",
|
|
139
|
-
prs: "greptile_list_prs",
|
|
140
|
-
trigger_review: "greptile_trigger_review",
|
|
141
|
-
review_pr: "greptile_trigger_review",
|
|
142
|
-
search_patterns: "greptile_search_patterns",
|
|
143
|
-
patterns: "greptile_search_patterns",
|
|
144
|
-
create_pattern: "greptile_create_pattern",
|
|
145
|
-
add_pattern: "greptile_create_pattern",
|
|
146
|
-
greptile: "greptile_status",
|
|
147
103
|
// --- Provenant tools ---
|
|
148
104
|
decision_search: "provenant_search",
|
|
149
105
|
search_decisions: "provenant_search",
|
|
@@ -252,16 +208,6 @@ const PARAM_ALIASES = {
|
|
|
252
208
|
lookback: "days",
|
|
253
209
|
period: "days"
|
|
254
210
|
},
|
|
255
|
-
delegate_to_model: {
|
|
256
|
-
text: "prompt",
|
|
257
|
-
message: "prompt",
|
|
258
|
-
input: "prompt",
|
|
259
|
-
tokens: "maxTokens",
|
|
260
|
-
max_tokens: "maxTokens",
|
|
261
|
-
temp: "temperature",
|
|
262
|
-
task: "taskType",
|
|
263
|
-
task_type: "taskType"
|
|
264
|
-
},
|
|
265
211
|
provenant_search: {
|
|
266
212
|
text: "query",
|
|
267
213
|
search: "query",
|
|
@@ -283,25 +229,6 @@ const PARAM_ALIASES = {
|
|
|
283
229
|
reason: "reasoning",
|
|
284
230
|
rationale: "reasoning"
|
|
285
231
|
},
|
|
286
|
-
diffmem_store_learning: {
|
|
287
|
-
insight: "content",
|
|
288
|
-
text: "content",
|
|
289
|
-
value: "content",
|
|
290
|
-
type: "category",
|
|
291
|
-
kind: "category"
|
|
292
|
-
},
|
|
293
|
-
diffmem_search: {
|
|
294
|
-
text: "query",
|
|
295
|
-
search: "query",
|
|
296
|
-
q: "query",
|
|
297
|
-
max: "limit",
|
|
298
|
-
max_results: "limit",
|
|
299
|
-
time: "timeRange",
|
|
300
|
-
range: "timeRange",
|
|
301
|
-
time_range: "timeRange",
|
|
302
|
-
min_confidence: "minConfidence",
|
|
303
|
-
threshold: "minConfidence"
|
|
304
|
-
},
|
|
305
232
|
sm_edit: {
|
|
306
233
|
path: "file_path",
|
|
307
234
|
file: "file_path",
|