@stackmemoryai/stackmemory 0.8.1 → 1.0.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 +64 -0
- package/README.md +15 -3
- package/dist/src/agents/core/agent-task-manager.js +0 -1
- package/dist/src/agents/verifiers/base-verifier.js +0 -1
- package/dist/src/agents/verifiers/formatter-verifier.js +0 -1
- package/dist/src/agents/verifiers/llm-judge.js +0 -1
- package/dist/src/cli/auto-detect.js +0 -1
- package/dist/src/cli/claude-sm-danger.js +0 -1
- package/dist/src/cli/claude-sm.js +0 -1
- package/dist/src/cli/codex-sm-danger.js +0 -1
- package/dist/src/cli/codex-sm.js +0 -1
- package/dist/src/cli/commands/api.js +0 -1
- package/dist/src/cli/commands/auto-background.js +0 -1
- package/dist/src/cli/commands/cleanup-processes.js +0 -1
- package/dist/src/cli/commands/clear.js +0 -1
- package/dist/src/cli/commands/config.js +0 -1
- package/dist/src/cli/commands/context-rehydrate.js +0 -1
- package/dist/src/cli/commands/context.js +0 -1
- package/dist/src/cli/commands/daemon.js +0 -1
- package/dist/src/cli/commands/dashboard.js +4 -5
- package/dist/src/cli/commands/db.js +0 -1
- package/dist/src/cli/commands/decision.js +0 -1
- package/dist/src/cli/commands/discovery.js +0 -1
- package/dist/src/cli/commands/handoff.js +0 -1
- package/dist/src/cli/commands/hooks.js +0 -1
- package/dist/src/cli/commands/linear.js +0 -1
- package/dist/src/cli/commands/log.js +0 -1
- package/dist/src/cli/commands/login.js +0 -1
- package/dist/src/cli/commands/migrate.js +0 -1
- package/dist/src/cli/commands/model.js +0 -1
- package/dist/src/cli/commands/onboard.js +0 -1
- package/dist/src/cli/commands/ping.js +0 -1
- package/dist/src/cli/commands/projects.js +0 -1
- package/dist/src/cli/commands/ralph.js +0 -1
- package/dist/src/cli/commands/retrieval.js +0 -1
- package/dist/src/cli/commands/search.js +0 -1
- package/dist/src/cli/commands/service.js +0 -1
- package/dist/src/cli/commands/session.js +0 -1
- package/dist/src/cli/commands/setup.js +0 -4
- package/dist/src/cli/commands/shell.js +0 -1
- package/dist/src/cli/commands/signup.js +0 -1
- package/dist/src/cli/commands/skills.js +4 -3
- package/dist/src/cli/commands/storage-tier.js +0 -1
- package/dist/src/cli/commands/sweep.js +0 -1
- package/dist/src/cli/commands/tasks.js +0 -1
- package/dist/src/cli/commands/worktree.js +10 -5
- package/dist/src/cli/index.js +8 -5
- package/dist/src/cli/opencode-sm.js +0 -1
- package/dist/src/cli/utils/viewer.js +0 -1
- package/dist/src/core/config/config-manager.js +0 -1
- package/dist/src/core/config/feature-flags.js +0 -1
- package/dist/src/core/config/storage-config.js +0 -1
- package/dist/src/core/config/types.js +0 -1
- package/dist/src/core/context/auto-context.js +0 -1
- package/dist/src/core/context/dual-stack-manager.js +0 -1
- package/dist/src/core/context/enhanced-rehydration.js +0 -2
- package/dist/src/core/context/frame-database.js +60 -6
- package/dist/src/core/context/frame-digest.js +0 -1
- package/dist/src/core/context/frame-handoff-manager.js +0 -1
- package/dist/src/core/context/frame-lifecycle-hooks.js +0 -1
- package/dist/src/core/context/frame-recovery.js +0 -1
- package/dist/src/core/context/frame-stack.js +0 -1
- package/dist/src/core/context/frame-types.js +0 -1
- package/dist/src/core/context/index.js +0 -1
- package/dist/src/core/context/permission-manager.js +0 -1
- package/dist/src/core/context/recursive-context-manager.js +3 -2
- package/dist/src/core/context/refactored-frame-manager.js +0 -1
- package/dist/src/core/context/shared-context-layer.js +0 -1
- package/dist/src/core/context/stack-merge-resolver.js +0 -1
- package/dist/src/core/context/validation.js +0 -1
- package/dist/src/core/database/batch-operations.js +0 -1
- package/dist/src/core/database/connection-pool.js +0 -1
- package/dist/src/core/database/database-adapter.js +0 -1
- package/dist/src/core/database/embedding-provider-factory.js +0 -1
- package/dist/src/core/database/embedding-provider.js +0 -1
- package/dist/src/core/database/migration-manager.js +0 -1
- package/dist/src/core/database/ollama-embedding-provider.js +0 -1
- package/dist/src/core/database/openai-embedding-provider.js +0 -1
- package/dist/src/core/database/query-cache.js +0 -1
- package/dist/src/core/database/query-router.js +0 -1
- package/dist/src/core/database/sqlite-adapter.js +18 -108
- package/dist/src/core/database/transformers-embedding-provider.js +0 -1
- package/dist/src/core/digest/enhanced-hybrid-digest.js +0 -1
- package/dist/src/core/digest/frame-digest-integration.js +0 -1
- package/dist/src/core/digest/hybrid-digest-generator.js +0 -1
- package/dist/src/core/digest/index.js +0 -1
- package/dist/src/core/digest/types.js +0 -1
- package/dist/src/core/errors/error-utils.js +0 -1
- package/dist/src/core/errors/index.js +0 -1
- package/dist/src/core/errors/recovery.js +0 -1
- package/dist/src/core/execution/parallel-executor.js +0 -1
- package/dist/src/core/extensions/custom-tools.js +0 -1
- package/dist/src/core/extensions/index.js +0 -1
- package/dist/src/core/extensions/loader.js +0 -1
- package/dist/src/core/extensions/plugin-system.js +0 -1
- package/dist/src/core/extensions/provider-adapter.js +0 -1
- package/dist/src/core/extensions/sandbox-runtime.js +0 -1
- package/dist/src/core/extensions/types.js +0 -1
- package/dist/src/core/frame/workflow-templates.js +0 -1
- package/dist/src/core/merge/conflict-detector.js +0 -1
- package/dist/src/core/merge/index.js +0 -1
- package/dist/src/core/merge/resolution-engine.js +0 -1
- package/dist/src/core/merge/stack-diff.js +0 -1
- package/dist/src/core/merge/types.js +0 -1
- package/dist/src/core/merge/unified-merge-resolver.js +0 -1
- package/dist/src/core/models/fallback-monitor.js +0 -1
- package/dist/src/core/models/model-router.js +0 -1
- package/dist/src/core/monitoring/error-handler.js +0 -1
- package/dist/src/core/monitoring/logger.js +0 -1
- package/dist/src/core/monitoring/metrics.js +0 -1
- package/dist/src/core/monitoring/progress-tracker.js +0 -1
- package/dist/src/core/monitoring/session-monitor.js +0 -1
- package/dist/src/core/performance/context-cache.js +0 -1
- package/dist/src/core/performance/index.js +0 -1
- package/dist/src/core/performance/lazy-context-loader.js +3 -8
- package/dist/src/core/performance/monitor.js +0 -1
- package/dist/src/core/performance/optimized-frame-context.js +0 -1
- package/dist/src/core/performance/performance-benchmark.js +0 -1
- package/dist/src/core/performance/performance-profiler.js +0 -1
- package/dist/src/core/performance/streaming-jsonl-parser.js +0 -1
- package/dist/src/core/persistence/postgres-adapter.js +0 -1
- package/dist/src/core/projects/project-isolation.js +0 -1
- package/dist/src/core/projects/project-manager.js +0 -1
- package/dist/src/core/query/query-parser.js +0 -1
- package/dist/src/core/query/query-templates.js +0 -1
- package/dist/src/core/retrieval/context-retriever.js +0 -1
- package/dist/src/core/retrieval/index.js +0 -1
- package/dist/src/core/retrieval/llm-context-retrieval.js +0 -1
- package/dist/src/core/retrieval/llm-provider.js +0 -1
- package/dist/src/core/retrieval/privacy-filter.js +0 -1
- package/dist/src/core/retrieval/retrieval-audit.js +0 -1
- package/dist/src/core/retrieval/summary-generator.js +15 -6
- package/dist/src/core/retrieval/types.js +0 -1
- package/dist/src/core/retrieval/unified-context-assembler.js +0 -1
- package/dist/src/core/security/index.js +0 -1
- package/dist/src/core/security/input-sanitizer.js +0 -1
- package/dist/src/core/session/clear-survival.js +0 -1
- package/dist/src/core/session/enhanced-handoff.js +0 -1
- package/dist/src/core/session/handoff-generator.js +0 -1
- package/dist/src/core/session/index.js +0 -1
- package/dist/src/core/session/session-manager.js +0 -1
- package/dist/src/core/skills/index.js +0 -1
- package/dist/src/core/skills/skill-storage.js +0 -1
- package/dist/src/core/skills/types.js +0 -1
- package/dist/src/core/storage/chromadb-adapter.js +0 -1
- package/dist/src/core/storage/infinite-storage.js +0 -1
- package/dist/src/core/storage/project-registry.js +0 -1
- package/dist/src/core/storage/remote-storage.js +4 -2
- package/dist/src/core/storage/storage-tier-manager.js +0 -1
- package/dist/src/core/storage/two-tier-storage.js +0 -1
- package/dist/src/core/trace/cli-trace-wrapper.js +0 -1
- package/dist/src/core/trace/db-trace-wrapper.js +0 -1
- package/dist/src/core/trace/debug-trace.js +0 -1
- package/dist/src/core/trace/index.js +0 -1
- package/dist/src/core/trace/linear-api-wrapper.js +0 -1
- package/dist/src/core/trace/trace-detector.js +0 -1
- package/dist/src/core/trace/trace-store.js +4 -5
- package/dist/src/core/trace/types.js +0 -1
- package/dist/src/core/types.js +0 -1
- package/dist/src/core/utils/async-mutex.js +0 -1
- package/dist/src/core/utils/compression.js +0 -1
- package/dist/src/core/utils/update-checker.js +0 -1
- package/dist/src/core/worktree/worktree-manager.js +0 -1
- package/dist/src/daemon/daemon-config.js +0 -1
- package/dist/src/daemon/services/context-service.js +0 -1
- package/dist/src/daemon/services/linear-service.js +0 -1
- package/dist/src/daemon/services/maintenance-service.js +0 -1
- package/dist/src/daemon/services/memory-service.js +0 -1
- package/dist/src/daemon/session-daemon.js +0 -1
- package/dist/src/daemon/unified-daemon.js +0 -1
- package/dist/src/features/analytics/api/analytics-api.js +0 -1
- package/dist/src/features/analytics/core/analytics-service.js +1 -2
- package/dist/src/features/analytics/index.js +0 -1
- package/dist/src/features/analytics/queries/metrics-queries.js +8 -9
- package/dist/src/features/analytics/types/metrics.js +0 -1
- package/dist/src/features/browser/browser-mcp.js +0 -1
- package/dist/src/features/sweep/index.js +0 -1
- package/dist/src/features/sweep/prediction-client.js +0 -1
- package/dist/src/features/sweep/prompt-builder.js +0 -1
- package/dist/src/features/sweep/pty-wrapper.js +0 -1
- package/dist/src/features/sweep/state-watcher.js +0 -1
- package/dist/src/features/sweep/status-bar.js +0 -1
- package/dist/src/features/sweep/sweep-server-manager.js +0 -1
- package/dist/src/features/sweep/tab-interceptor.js +0 -1
- package/dist/src/features/sweep/types.js +0 -1
- package/dist/src/features/tasks/linear-task-manager.js +0 -1
- package/dist/src/features/tasks/task-aware-context.js +0 -1
- package/dist/src/features/tui/simple-monitor.js +0 -1
- package/dist/src/features/tui/swarm-monitor.js +0 -1
- package/dist/src/features/web/client/stores/task-store.js +0 -1
- package/dist/src/features/web/server/index.js +0 -1
- package/dist/src/features/workers/tmux-manager.js +0 -1
- package/dist/src/features/workers/worker-registry.js +0 -1
- package/dist/src/hooks/auto-background.js +0 -1
- package/dist/src/hooks/config.js +0 -1
- package/dist/src/hooks/daemon.js +0 -1
- package/dist/src/hooks/diffmem-hooks.js +0 -1
- package/dist/src/hooks/events.js +0 -1
- package/dist/src/hooks/index.js +0 -1
- package/dist/src/hooks/linear-task-picker.js +0 -1
- package/dist/src/hooks/schemas.js +0 -1
- package/dist/src/hooks/secure-fs.js +0 -1
- package/dist/src/hooks/security-logger.js +0 -1
- package/dist/src/hooks/session-summary.js +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/integrations/anthropic/client.js +0 -1
- package/dist/src/integrations/claude-code/agent-bridge.js +0 -1
- package/dist/src/integrations/claude-code/enhanced-pre-clear-hooks.js +0 -1
- package/dist/src/integrations/claude-code/lifecycle-hooks.js +0 -1
- package/dist/src/integrations/claude-code/post-task-hooks.js +0 -1
- package/dist/src/integrations/claude-code/subagent-client-stub.js +0 -1
- package/dist/src/integrations/claude-code/subagent-client.js +0 -1
- package/dist/src/integrations/claude-code/task-coordinator.js +0 -1
- package/dist/src/integrations/diffmem/client.js +0 -1
- package/dist/src/integrations/diffmem/config.js +0 -1
- package/dist/src/integrations/diffmem/index.js +0 -1
- package/dist/src/integrations/diffmem/types.js +0 -1
- package/dist/src/integrations/linear/auth.js +0 -1
- package/dist/src/integrations/linear/auto-sync.js +0 -1
- package/dist/src/integrations/linear/client.js +0 -1
- package/dist/src/integrations/linear/config.js +0 -1
- package/dist/src/integrations/linear/migration.js +0 -1
- package/dist/src/integrations/linear/oauth-server.js +0 -1
- package/dist/src/integrations/linear/rest-client.js +0 -1
- package/dist/src/integrations/linear/sync-manager.js +0 -1
- package/dist/src/integrations/linear/sync-service.js +0 -1
- package/dist/src/integrations/linear/sync.js +0 -1
- package/dist/src/integrations/linear/types.js +0 -1
- package/dist/src/integrations/linear/unified-sync.js +0 -1
- package/dist/src/integrations/linear/webhook-handler.js +0 -1
- package/dist/src/integrations/linear/webhook-server.js +0 -1
- package/dist/src/integrations/linear/webhook.js +0 -1
- package/dist/src/integrations/mcp/handlers/code-execution-handlers.js +0 -1
- package/dist/src/integrations/mcp/handlers/context-handlers.js +43 -30
- package/dist/src/integrations/mcp/handlers/diffmem-handlers.js +0 -1
- package/dist/src/integrations/mcp/handlers/discovery-handlers.js +0 -1
- package/dist/src/integrations/mcp/handlers/index.js +1 -3
- package/dist/src/integrations/mcp/handlers/linear-handlers.js +24 -61
- package/dist/src/integrations/mcp/handlers/skill-handlers.js +0 -1
- package/dist/src/integrations/mcp/handlers/task-handlers.js +0 -1
- package/dist/src/integrations/mcp/handlers/trace-handlers.js +0 -1
- package/dist/src/integrations/mcp/index.js +0 -1
- package/dist/src/integrations/mcp/middleware/tool-scoring.js +3 -2
- package/dist/src/integrations/mcp/pending-utils.js +0 -1
- package/dist/src/integrations/mcp/refactored-server.js +0 -1
- package/dist/src/integrations/mcp/remote-server.js +0 -1
- package/dist/src/integrations/mcp/schemas.js +0 -1
- package/dist/src/integrations/mcp/server.js +20 -24
- package/dist/src/integrations/mcp/tool-definitions-code.js +0 -1
- package/dist/src/integrations/mcp/tool-definitions.js +0 -1
- package/dist/src/integrations/ralph/bridge/ralph-stackmemory-bridge.js +0 -1
- package/dist/src/integrations/ralph/context/context-budget-manager.js +0 -1
- package/dist/src/integrations/ralph/context/stackmemory-context-loader.js +0 -1
- package/dist/src/integrations/ralph/coordination/enhanced-coordination.js +0 -1
- package/dist/src/integrations/ralph/index.js +0 -1
- package/dist/src/integrations/ralph/learning/pattern-learner.js +0 -1
- package/dist/src/integrations/ralph/lifecycle/iteration-lifecycle.js +5 -5
- package/dist/src/integrations/ralph/monitoring/swarm-dashboard.js +0 -1
- package/dist/src/integrations/ralph/monitoring/swarm-registry.js +0 -1
- package/dist/src/integrations/ralph/orchestration/multi-loop-orchestrator.js +0 -1
- package/dist/src/integrations/ralph/patterns/compounding-engineering-pattern.js +0 -1
- package/dist/src/integrations/ralph/patterns/extended-coherence-sessions.js +0 -1
- package/dist/src/integrations/ralph/patterns/oracle-worker-pattern.js +0 -1
- package/dist/src/integrations/ralph/performance/performance-optimizer.js +0 -1
- package/dist/src/integrations/ralph/recovery/crash-recovery.js +0 -1
- package/dist/src/integrations/ralph/state/state-reconciler.js +25 -9
- package/dist/src/integrations/ralph/swarm/git-workflow-manager.js +0 -1
- package/dist/src/integrations/ralph/swarm/swarm-coordinator.js +0 -1
- package/dist/src/integrations/ralph/types.js +0 -1
- package/dist/src/integrations/ralph/visualization/ralph-debugger.js +0 -1
- package/dist/src/mcp/stackmemory-mcp-server.js +0 -1
- package/dist/src/middleware/exponential-rate-limiter.js +0 -1
- package/dist/src/models/user.model.js +0 -1
- package/dist/src/orchestrators/multimodal/constants.js +0 -1
- package/dist/src/orchestrators/multimodal/harness.js +0 -1
- package/dist/src/orchestrators/multimodal/providers.js +0 -1
- package/dist/src/orchestrators/multimodal/types.js +0 -1
- package/dist/src/orchestrators/multimodal/utils.js +0 -1
- package/dist/src/servers/production/auth-middleware.js +0 -1
- package/dist/src/services/config-service.js +0 -1
- package/dist/src/services/context-service.js +0 -1
- package/dist/src/skills/api-discovery.js +0 -1
- package/dist/src/skills/api-skill.js +0 -1
- package/dist/src/skills/claude-skills.js +0 -1
- package/dist/src/skills/dashboard-launcher.js +0 -1
- package/dist/src/skills/linear-task-runner.js +0 -1
- package/dist/src/skills/recursive-agent-orchestrator.js +0 -1
- package/dist/src/skills/repo-ingestion-skill.js +0 -1
- package/dist/src/skills/spec-generator-skill.js +0 -1
- package/dist/src/skills/unified-rlm-orchestrator.js +0 -1
- package/dist/src/types/task.js +0 -1
- package/dist/src/utils/env.js +0 -1
- package/dist/src/utils/formatting.js +0 -1
- package/dist/src/utils/process-cleanup.js +0 -1
- package/package.json +32 -7
- package/dist/scripts/benchmark-performance.js +0 -48
- package/dist/scripts/benchmark-performance.js.map +0 -7
- package/dist/scripts/check-redis.js +0 -42
- package/dist/scripts/check-redis.js.map +0 -7
- package/dist/scripts/initialize.js +0 -183
- package/dist/scripts/initialize.js.map +0 -7
- package/dist/scripts/list-linear-tasks.js +0 -124
- package/dist/scripts/list-linear-tasks.js.map +0 -7
- package/dist/scripts/measure-handoff-impact.js +0 -340
- package/dist/scripts/measure-handoff-impact.js.map +0 -7
- package/dist/scripts/query-chromadb.js +0 -160
- package/dist/scripts/query-chromadb.js.map +0 -7
- package/dist/scripts/show-linear-summary.js +0 -119
- package/dist/scripts/show-linear-summary.js.map +0 -7
- package/dist/scripts/simple-swarm-demo.js +0 -90
- package/dist/scripts/simple-swarm-demo.js.map +0 -7
- package/dist/scripts/status.js +0 -155
- package/dist/scripts/status.js.map +0 -7
- package/dist/scripts/test-chromadb-sync.js +0 -192
- package/dist/scripts/test-chromadb-sync.js.map +0 -7
- package/dist/scripts/test-ralph-iteration-fix.js +0 -86
- package/dist/scripts/test-ralph-iteration-fix.js.map +0 -7
- package/dist/scripts/test-ralph-iterations.js +0 -121
- package/dist/scripts/test-ralph-iterations.js.map +0 -7
- package/dist/scripts/test-redis-storage.js +0 -389
- package/dist/scripts/test-redis-storage.js.map +0 -7
- package/dist/scripts/test-simple-ralph-state-sync.js +0 -115
- package/dist/scripts/test-simple-ralph-state-sync.js.map +0 -7
- package/dist/scripts/test-swarm-fixes.js +0 -125
- package/dist/scripts/test-swarm-fixes.js.map +0 -7
- package/dist/scripts/test-swarm-tui.js +0 -23
- package/dist/scripts/test-swarm-tui.js.map +0 -7
- package/dist/scripts/test-tui-shortcuts.js +0 -52
- package/dist/scripts/test-tui-shortcuts.js.map +0 -7
- package/dist/scripts/validate-tui-shortcuts.js +0 -60
- package/dist/scripts/validate-tui-shortcuts.js.map +0 -7
- package/dist/src/agents/core/agent-task-manager.js.map +0 -7
- package/dist/src/agents/verifiers/base-verifier.js.map +0 -7
- package/dist/src/agents/verifiers/formatter-verifier.js.map +0 -7
- package/dist/src/agents/verifiers/llm-judge.js.map +0 -7
- package/dist/src/cli/auto-detect.js.map +0 -7
- package/dist/src/cli/claude-sm-danger.js.map +0 -7
- package/dist/src/cli/claude-sm.js.map +0 -7
- package/dist/src/cli/codex-sm-danger.js.map +0 -7
- package/dist/src/cli/codex-sm.js.map +0 -7
- package/dist/src/cli/commands/api.js.map +0 -7
- package/dist/src/cli/commands/auto-background.js.map +0 -7
- package/dist/src/cli/commands/cleanup-processes.js.map +0 -7
- package/dist/src/cli/commands/clear.js.map +0 -7
- package/dist/src/cli/commands/config.js.map +0 -7
- package/dist/src/cli/commands/context-rehydrate.js.map +0 -7
- package/dist/src/cli/commands/context.js.map +0 -7
- package/dist/src/cli/commands/daemon.js.map +0 -7
- package/dist/src/cli/commands/dashboard.js.map +0 -7
- package/dist/src/cli/commands/db.js.map +0 -7
- package/dist/src/cli/commands/decision.js.map +0 -7
- package/dist/src/cli/commands/discovery.js.map +0 -7
- package/dist/src/cli/commands/handoff.js.map +0 -7
- package/dist/src/cli/commands/hooks.js.map +0 -7
- package/dist/src/cli/commands/linear.js.map +0 -7
- package/dist/src/cli/commands/log.js.map +0 -7
- package/dist/src/cli/commands/login.js.map +0 -7
- package/dist/src/cli/commands/migrate.js.map +0 -7
- package/dist/src/cli/commands/model.js.map +0 -7
- package/dist/src/cli/commands/onboard.js.map +0 -7
- package/dist/src/cli/commands/ping.js.map +0 -7
- package/dist/src/cli/commands/projects.js.map +0 -7
- package/dist/src/cli/commands/ralph.js.map +0 -7
- package/dist/src/cli/commands/retrieval.js.map +0 -7
- package/dist/src/cli/commands/search.js.map +0 -7
- package/dist/src/cli/commands/service.js.map +0 -7
- package/dist/src/cli/commands/session.js.map +0 -7
- package/dist/src/cli/commands/settings.js +0 -306
- package/dist/src/cli/commands/settings.js.map +0 -7
- package/dist/src/cli/commands/setup.js.map +0 -7
- package/dist/src/cli/commands/shell.js.map +0 -7
- package/dist/src/cli/commands/signup.js.map +0 -7
- package/dist/src/cli/commands/skills.js.map +0 -7
- package/dist/src/cli/commands/sms-notify.js +0 -795
- package/dist/src/cli/commands/sms-notify.js.map +0 -7
- package/dist/src/cli/commands/storage-tier.js.map +0 -7
- package/dist/src/cli/commands/sweep.js.map +0 -7
- package/dist/src/cli/commands/tasks.js.map +0 -7
- package/dist/src/cli/commands/worktree.js.map +0 -7
- package/dist/src/cli/index.js.map +0 -7
- package/dist/src/cli/opencode-sm.js.map +0 -7
- package/dist/src/cli/utils/viewer.js.map +0 -7
- package/dist/src/core/config/config-manager.js.map +0 -7
- package/dist/src/core/config/feature-flags.js.map +0 -7
- package/dist/src/core/config/storage-config.js.map +0 -7
- package/dist/src/core/config/types.js.map +0 -7
- package/dist/src/core/context/auto-context.js.map +0 -7
- package/dist/src/core/context/dual-stack-manager.js.map +0 -7
- package/dist/src/core/context/enhanced-rehydration.js.map +0 -7
- package/dist/src/core/context/frame-database.js.map +0 -7
- package/dist/src/core/context/frame-digest.js.map +0 -7
- package/dist/src/core/context/frame-handoff-manager.js.map +0 -7
- package/dist/src/core/context/frame-lifecycle-hooks.js.map +0 -7
- package/dist/src/core/context/frame-recovery.js.map +0 -7
- package/dist/src/core/context/frame-stack.js.map +0 -7
- package/dist/src/core/context/frame-types.js.map +0 -7
- package/dist/src/core/context/index.js.map +0 -7
- package/dist/src/core/context/permission-manager.js.map +0 -7
- package/dist/src/core/context/recursive-context-manager.js.map +0 -7
- package/dist/src/core/context/refactored-frame-manager.js.map +0 -7
- package/dist/src/core/context/shared-context-layer.js.map +0 -7
- package/dist/src/core/context/stack-merge-resolver.js.map +0 -7
- package/dist/src/core/context/validation.js.map +0 -7
- package/dist/src/core/database/batch-operations.js.map +0 -7
- package/dist/src/core/database/connection-pool.js.map +0 -7
- package/dist/src/core/database/database-adapter.js.map +0 -7
- package/dist/src/core/database/embedding-provider-factory.js.map +0 -7
- package/dist/src/core/database/embedding-provider.js.map +0 -7
- package/dist/src/core/database/migration-manager.js.map +0 -7
- package/dist/src/core/database/ollama-embedding-provider.js.map +0 -7
- package/dist/src/core/database/openai-embedding-provider.js.map +0 -7
- package/dist/src/core/database/query-cache.js.map +0 -7
- package/dist/src/core/database/query-router.js.map +0 -7
- package/dist/src/core/database/sqlite-adapter.js.map +0 -7
- package/dist/src/core/database/transformers-embedding-provider.js.map +0 -7
- package/dist/src/core/digest/enhanced-hybrid-digest.js.map +0 -7
- package/dist/src/core/digest/frame-digest-integration.js.map +0 -7
- package/dist/src/core/digest/hybrid-digest-generator.js.map +0 -7
- package/dist/src/core/digest/index.js.map +0 -7
- package/dist/src/core/digest/types.js.map +0 -7
- package/dist/src/core/errors/error-utils.js.map +0 -7
- package/dist/src/core/errors/index.js.map +0 -7
- package/dist/src/core/errors/recovery.js.map +0 -7
- package/dist/src/core/execution/parallel-executor.js.map +0 -7
- package/dist/src/core/extensions/custom-tools.js.map +0 -7
- package/dist/src/core/extensions/index.js.map +0 -7
- package/dist/src/core/extensions/loader.js.map +0 -7
- package/dist/src/core/extensions/plugin-system.js.map +0 -7
- package/dist/src/core/extensions/provider-adapter.js.map +0 -7
- package/dist/src/core/extensions/sandbox-runtime.js.map +0 -7
- package/dist/src/core/extensions/types.js.map +0 -7
- package/dist/src/core/frame/workflow-templates.js.map +0 -7
- package/dist/src/core/merge/conflict-detector.js.map +0 -7
- package/dist/src/core/merge/index.js.map +0 -7
- package/dist/src/core/merge/resolution-engine.js.map +0 -7
- package/dist/src/core/merge/stack-diff.js.map +0 -7
- package/dist/src/core/merge/types.js.map +0 -7
- package/dist/src/core/merge/unified-merge-resolver.js.map +0 -7
- package/dist/src/core/models/fallback-monitor.js.map +0 -7
- package/dist/src/core/models/model-router.js.map +0 -7
- package/dist/src/core/monitoring/error-handler.js.map +0 -7
- package/dist/src/core/monitoring/logger.js.map +0 -7
- package/dist/src/core/monitoring/metrics.js.map +0 -7
- package/dist/src/core/monitoring/progress-tracker.js.map +0 -7
- package/dist/src/core/monitoring/session-monitor.js.map +0 -7
- package/dist/src/core/performance/context-cache.js.map +0 -7
- package/dist/src/core/performance/index.js.map +0 -7
- package/dist/src/core/performance/lazy-context-loader.js.map +0 -7
- package/dist/src/core/performance/monitor.js.map +0 -7
- package/dist/src/core/performance/optimized-frame-context.js.map +0 -7
- package/dist/src/core/performance/performance-benchmark.js.map +0 -7
- package/dist/src/core/performance/performance-profiler.js.map +0 -7
- package/dist/src/core/performance/streaming-jsonl-parser.js.map +0 -7
- package/dist/src/core/persistence/postgres-adapter.js.map +0 -7
- package/dist/src/core/projects/project-isolation.js.map +0 -7
- package/dist/src/core/projects/project-manager.js.map +0 -7
- package/dist/src/core/query/query-parser.js.map +0 -7
- package/dist/src/core/query/query-templates.js.map +0 -7
- package/dist/src/core/retrieval/context-retriever.js.map +0 -7
- package/dist/src/core/retrieval/index.js.map +0 -7
- package/dist/src/core/retrieval/llm-context-retrieval.js.map +0 -7
- package/dist/src/core/retrieval/llm-provider.js.map +0 -7
- package/dist/src/core/retrieval/privacy-filter.js.map +0 -7
- package/dist/src/core/retrieval/retrieval-audit.js.map +0 -7
- package/dist/src/core/retrieval/summary-generator.js.map +0 -7
- package/dist/src/core/retrieval/types.js.map +0 -7
- package/dist/src/core/retrieval/unified-context-assembler.js.map +0 -7
- package/dist/src/core/security/index.js.map +0 -7
- package/dist/src/core/security/input-sanitizer.js.map +0 -7
- package/dist/src/core/session/clear-survival.js.map +0 -7
- package/dist/src/core/session/enhanced-handoff.js.map +0 -7
- package/dist/src/core/session/handoff-generator.js.map +0 -7
- package/dist/src/core/session/index.js.map +0 -7
- package/dist/src/core/session/session-manager.js.map +0 -7
- package/dist/src/core/skills/index.js.map +0 -7
- package/dist/src/core/skills/skill-storage.js.map +0 -7
- package/dist/src/core/skills/types.js.map +0 -7
- package/dist/src/core/storage/chromadb-adapter.js.map +0 -7
- package/dist/src/core/storage/infinite-storage.js.map +0 -7
- package/dist/src/core/storage/project-registry.js.map +0 -7
- package/dist/src/core/storage/remote-storage.js.map +0 -7
- package/dist/src/core/storage/storage-tier-manager.js.map +0 -7
- package/dist/src/core/storage/two-tier-storage.js.map +0 -7
- package/dist/src/core/trace/cli-trace-wrapper.js.map +0 -7
- package/dist/src/core/trace/db-trace-wrapper.js.map +0 -7
- package/dist/src/core/trace/debug-trace.js.map +0 -7
- package/dist/src/core/trace/index.js.map +0 -7
- package/dist/src/core/trace/linear-api-wrapper.js.map +0 -7
- package/dist/src/core/trace/trace-detector.js.map +0 -7
- package/dist/src/core/trace/trace-store.js.map +0 -7
- package/dist/src/core/trace/types.js.map +0 -7
- package/dist/src/core/types.js.map +0 -7
- package/dist/src/core/utils/async-mutex.js.map +0 -7
- package/dist/src/core/utils/compression.js.map +0 -7
- package/dist/src/core/utils/update-checker.js.map +0 -7
- package/dist/src/core/worktree/worktree-manager.js.map +0 -7
- package/dist/src/daemon/daemon-config.js.map +0 -7
- package/dist/src/daemon/services/context-service.js.map +0 -7
- package/dist/src/daemon/services/linear-service.js.map +0 -7
- package/dist/src/daemon/services/maintenance-service.js.map +0 -7
- package/dist/src/daemon/services/memory-service.js.map +0 -7
- package/dist/src/daemon/session-daemon.js.map +0 -7
- package/dist/src/daemon/unified-daemon.js.map +0 -7
- package/dist/src/features/analytics/api/analytics-api.js.map +0 -7
- package/dist/src/features/analytics/core/analytics-service.js.map +0 -7
- package/dist/src/features/analytics/index.js.map +0 -7
- package/dist/src/features/analytics/queries/metrics-queries.js.map +0 -7
- package/dist/src/features/analytics/types/metrics.js.map +0 -7
- package/dist/src/features/browser/browser-mcp.js.map +0 -7
- package/dist/src/features/sweep/index.js.map +0 -7
- package/dist/src/features/sweep/prediction-client.js.map +0 -7
- package/dist/src/features/sweep/prompt-builder.js.map +0 -7
- package/dist/src/features/sweep/pty-wrapper.js.map +0 -7
- package/dist/src/features/sweep/state-watcher.js.map +0 -7
- package/dist/src/features/sweep/status-bar.js.map +0 -7
- package/dist/src/features/sweep/sweep-server-manager.js.map +0 -7
- package/dist/src/features/sweep/tab-interceptor.js.map +0 -7
- package/dist/src/features/sweep/types.js.map +0 -7
- package/dist/src/features/tasks/linear-task-manager.js.map +0 -7
- package/dist/src/features/tasks/task-aware-context.js.map +0 -7
- package/dist/src/features/tui/simple-monitor.js.map +0 -7
- package/dist/src/features/tui/swarm-monitor.js.map +0 -7
- package/dist/src/features/web/client/stores/task-store.js.map +0 -7
- package/dist/src/features/web/server/index.js.map +0 -7
- package/dist/src/features/workers/tmux-manager.js.map +0 -7
- package/dist/src/features/workers/worker-registry.js.map +0 -7
- package/dist/src/hooks/auto-background.js.map +0 -7
- package/dist/src/hooks/claude-code-whatsapp-hook.js +0 -197
- package/dist/src/hooks/claude-code-whatsapp-hook.js.map +0 -7
- package/dist/src/hooks/config.js.map +0 -7
- package/dist/src/hooks/daemon.js.map +0 -7
- package/dist/src/hooks/diffmem-hooks.js.map +0 -7
- package/dist/src/hooks/events.js.map +0 -7
- package/dist/src/hooks/index.js.map +0 -7
- package/dist/src/hooks/linear-task-picker.js.map +0 -7
- package/dist/src/hooks/schemas.js.map +0 -7
- package/dist/src/hooks/secure-fs.js.map +0 -7
- package/dist/src/hooks/security-logger.js.map +0 -7
- package/dist/src/hooks/session-summary.js.map +0 -7
- package/dist/src/hooks/sms-action-runner.js +0 -371
- package/dist/src/hooks/sms-action-runner.js.map +0 -7
- package/dist/src/hooks/sms-notify.js +0 -506
- package/dist/src/hooks/sms-notify.js.map +0 -7
- package/dist/src/hooks/sms-watcher.js +0 -93
- package/dist/src/hooks/sms-watcher.js.map +0 -7
- package/dist/src/hooks/sms-webhook.js +0 -555
- package/dist/src/hooks/sms-webhook.js.map +0 -7
- package/dist/src/hooks/whatsapp-commands.js +0 -479
- package/dist/src/hooks/whatsapp-commands.js.map +0 -7
- package/dist/src/hooks/whatsapp-scheduler.js +0 -317
- package/dist/src/hooks/whatsapp-scheduler.js.map +0 -7
- package/dist/src/hooks/whatsapp-sync.js +0 -409
- package/dist/src/hooks/whatsapp-sync.js.map +0 -7
- package/dist/src/index.js.map +0 -7
- package/dist/src/integrations/anthropic/client.js.map +0 -7
- package/dist/src/integrations/claude-code/agent-bridge.js.map +0 -7
- package/dist/src/integrations/claude-code/enhanced-pre-clear-hooks.js.map +0 -7
- package/dist/src/integrations/claude-code/lifecycle-hooks.js.map +0 -7
- package/dist/src/integrations/claude-code/post-task-hooks.js.map +0 -7
- package/dist/src/integrations/claude-code/subagent-client-stub.js.map +0 -7
- package/dist/src/integrations/claude-code/subagent-client.js.map +0 -7
- package/dist/src/integrations/claude-code/task-coordinator.js.map +0 -7
- package/dist/src/integrations/diffmem/client.js.map +0 -7
- package/dist/src/integrations/diffmem/config.js.map +0 -7
- package/dist/src/integrations/diffmem/index.js.map +0 -7
- package/dist/src/integrations/diffmem/types.js.map +0 -7
- package/dist/src/integrations/linear/auth.js.map +0 -7
- package/dist/src/integrations/linear/auto-sync.js.map +0 -7
- package/dist/src/integrations/linear/client.js.map +0 -7
- package/dist/src/integrations/linear/config.js.map +0 -7
- package/dist/src/integrations/linear/migration.js.map +0 -7
- package/dist/src/integrations/linear/oauth-server.js.map +0 -7
- package/dist/src/integrations/linear/rest-client.js.map +0 -7
- package/dist/src/integrations/linear/sync-manager.js.map +0 -7
- package/dist/src/integrations/linear/sync-service.js.map +0 -7
- package/dist/src/integrations/linear/sync.js.map +0 -7
- package/dist/src/integrations/linear/types.js.map +0 -7
- package/dist/src/integrations/linear/unified-sync.js.map +0 -7
- package/dist/src/integrations/linear/webhook-handler.js.map +0 -7
- package/dist/src/integrations/linear/webhook-server.js.map +0 -7
- package/dist/src/integrations/linear/webhook.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/code-execution-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/context-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/diffmem-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/discovery-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/index.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/linear-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/skill-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/task-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/handlers/trace-handlers.js.map +0 -7
- package/dist/src/integrations/mcp/index.js.map +0 -7
- package/dist/src/integrations/mcp/middleware/tool-scoring.js.map +0 -7
- package/dist/src/integrations/mcp/pending-utils.js.map +0 -7
- package/dist/src/integrations/mcp/refactored-server.js.map +0 -7
- package/dist/src/integrations/mcp/remote-server.js.map +0 -7
- package/dist/src/integrations/mcp/schemas.js.map +0 -7
- package/dist/src/integrations/mcp/server.js.map +0 -7
- package/dist/src/integrations/mcp/tool-definitions-code.js.map +0 -7
- package/dist/src/integrations/mcp/tool-definitions.js.map +0 -7
- package/dist/src/integrations/ralph/bridge/ralph-stackmemory-bridge.js.map +0 -7
- package/dist/src/integrations/ralph/context/context-budget-manager.js.map +0 -7
- package/dist/src/integrations/ralph/context/stackmemory-context-loader.js.map +0 -7
- package/dist/src/integrations/ralph/coordination/enhanced-coordination.js.map +0 -7
- package/dist/src/integrations/ralph/index.js.map +0 -7
- package/dist/src/integrations/ralph/learning/pattern-learner.js.map +0 -7
- package/dist/src/integrations/ralph/lifecycle/iteration-lifecycle.js.map +0 -7
- package/dist/src/integrations/ralph/monitoring/swarm-dashboard.js.map +0 -7
- package/dist/src/integrations/ralph/monitoring/swarm-registry.js.map +0 -7
- package/dist/src/integrations/ralph/orchestration/multi-loop-orchestrator.js.map +0 -7
- package/dist/src/integrations/ralph/patterns/compounding-engineering-pattern.js.map +0 -7
- package/dist/src/integrations/ralph/patterns/extended-coherence-sessions.js.map +0 -7
- package/dist/src/integrations/ralph/patterns/oracle-worker-pattern.js.map +0 -7
- package/dist/src/integrations/ralph/performance/performance-optimizer.js.map +0 -7
- package/dist/src/integrations/ralph/recovery/crash-recovery.js.map +0 -7
- package/dist/src/integrations/ralph/state/state-reconciler.js.map +0 -7
- package/dist/src/integrations/ralph/swarm/git-workflow-manager.js.map +0 -7
- package/dist/src/integrations/ralph/swarm/swarm-coordinator.js.map +0 -7
- package/dist/src/integrations/ralph/types.js.map +0 -7
- package/dist/src/integrations/ralph/visualization/ralph-debugger.js.map +0 -7
- package/dist/src/mcp/stackmemory-mcp-server.js.map +0 -7
- package/dist/src/middleware/exponential-rate-limiter.js.map +0 -7
- package/dist/src/models/user.model.js.map +0 -7
- package/dist/src/orchestrators/multimodal/constants.js.map +0 -7
- package/dist/src/orchestrators/multimodal/harness.js.map +0 -7
- package/dist/src/orchestrators/multimodal/providers.js.map +0 -7
- package/dist/src/orchestrators/multimodal/types.js.map +0 -7
- package/dist/src/orchestrators/multimodal/utils.js.map +0 -7
- package/dist/src/servers/production/auth-middleware.js.map +0 -7
- package/dist/src/services/config-service.js.map +0 -7
- package/dist/src/services/context-service.js.map +0 -7
- package/dist/src/skills/api-discovery.js.map +0 -7
- package/dist/src/skills/api-skill.js.map +0 -7
- package/dist/src/skills/claude-skills.js.map +0 -7
- package/dist/src/skills/dashboard-launcher.js.map +0 -7
- package/dist/src/skills/linear-task-runner.js.map +0 -7
- package/dist/src/skills/recursive-agent-orchestrator.js.map +0 -7
- package/dist/src/skills/repo-ingestion-skill.js.map +0 -7
- package/dist/src/skills/spec-generator-skill.js.map +0 -7
- package/dist/src/skills/unified-rlm-orchestrator.js.map +0 -7
- package/dist/src/types/task.js.map +0 -7
- package/dist/src/utils/env.js.map +0 -7
- package/dist/src/utils/formatting.js.map +0 -7
- package/dist/src/utils/process-cleanup.js.map +0 -7
- package/scripts/README-TESTING.md +0 -186
- package/scripts/analyze-cli-security.js +0 -288
- package/scripts/archive/add-phase-tasks-to-linear.js +0 -163
- package/scripts/archive/analyze-linear-duplicates.js +0 -214
- package/scripts/archive/analyze-remaining-duplicates.js +0 -230
- package/scripts/archive/analyze-sta-duplicates.js +0 -292
- package/scripts/archive/analyze-sta-graphql.js +0 -399
- package/scripts/archive/cancel-duplicate-tasks.ts +0 -246
- package/scripts/archive/check-all-duplicates.ts +0 -419
- package/scripts/archive/clean-duplicate-tasks.js +0 -114
- package/scripts/archive/cleanup-duplicate-tasks.ts +0 -286
- package/scripts/archive/create-phase-tasks.js +0 -387
- package/scripts/archive/delete-linear-duplicates.js +0 -182
- package/scripts/archive/delete-remaining-duplicates.js +0 -158
- package/scripts/archive/delete-sta-duplicates.js +0 -201
- package/scripts/archive/delete-sta-oauth.js +0 -201
- package/scripts/archive/export-sta-tasks.js +0 -62
- package/scripts/archive/install-auto-sync.js +0 -266
- package/scripts/archive/install-chromadb-hooks.sh +0 -133
- package/scripts/archive/install-enhanced-clear-hooks.sh +0 -431
- package/scripts/archive/install-post-task-hooks.sh +0 -289
- package/scripts/archive/install-stackmemory-hooks.sh +0 -420
- package/scripts/archive/merge-linear-duplicates-safe.ts +0 -362
- package/scripts/archive/merge-linear-duplicates.ts +0 -182
- package/scripts/archive/remove-sta-tasks.js +0 -70
- package/scripts/archive/setup-background-sync.sh +0 -168
- package/scripts/archive/setup-claude-auto-triggers.sh +0 -181
- package/scripts/archive/setup-claude-autostart.sh +0 -305
- package/scripts/archive/setup-git-hooks.sh +0 -25
- package/scripts/archive/setup-linear-oauth.sh +0 -46
- package/scripts/archive/setup-mcp.sh +0 -113
- package/scripts/archive/setup-railway-deployment.sh +0 -81
- package/scripts/auto-handoff.sh +0 -262
- package/scripts/background-sync-manager.js +0 -478
- package/scripts/benchmark-performance.ts +0 -57
- package/scripts/check-redis.ts +0 -48
- package/scripts/chromadb-auto-loader.sh +0 -128
- package/scripts/chromadb-context-loader.js +0 -479
- package/scripts/claude-chromadb-hook.js +0 -460
- package/scripts/claude-linear-skill.js +0 -455
- package/scripts/claude-pre-commit.sh +0 -302
- package/scripts/claude-sm-autostart.js +0 -579
- package/scripts/claude-with-chromadb.sh +0 -69
- package/scripts/clean-linear-backlog.js +0 -273
- package/scripts/cleanup-old-sessions.sh +0 -57
- package/scripts/create-cleanup-issues.js +0 -302
- package/scripts/create-sandbox.sh +0 -269
- package/scripts/debug-linear-update.js +0 -174
- package/scripts/delete-linear-tasks.js +0 -167
- package/scripts/demos/browser-test.ts +0 -39
- package/scripts/demos/ralph-integration-demo.ts +0 -245
- package/scripts/demos/trace-demo.ts +0 -200
- package/scripts/demos/trace-detector.demo.ts +0 -171
- package/scripts/demos/trace-test.ts +0 -79
- package/scripts/deploy-ralph-swarm.sh +0 -365
- package/scripts/deploy.sh +0 -89
- package/scripts/deployment/test-deployment.js +0 -194
- package/scripts/detect-and-rehydrate.js +0 -162
- package/scripts/detect-and-rehydrate.mjs +0 -165
- package/scripts/development/create-demo-tasks.js +0 -143
- package/scripts/development/debug-frame-test.js +0 -16
- package/scripts/development/demo-auto-sync.js +0 -128
- package/scripts/development/fix-all-imports.js +0 -213
- package/scripts/development/fix-imports.js +0 -229
- package/scripts/development/fix-lint-loop.cjs +0 -103
- package/scripts/development/fix-project-id.ts +0 -161
- package/scripts/development/fix-strict-mode-issues.ts +0 -291
- package/scripts/development/reorganize-structure.sh +0 -228
- package/scripts/development/test-persistence-direct.js +0 -148
- package/scripts/development/test-persistence.js +0 -114
- package/scripts/development/test-tasks.js +0 -93
- package/scripts/development/update-imports.js +0 -212
- package/scripts/fetch-linear-status.js +0 -125
- package/scripts/initialize.ts +0 -220
- package/scripts/linear-auto-sync.js +0 -262
- package/scripts/linear-auto-sync.sh +0 -161
- package/scripts/linear-sync-daemon.js +0 -150
- package/scripts/linear-task-review.js +0 -237
- package/scripts/list-linear-tasks.ts +0 -178
- package/scripts/mcp-proxy.js +0 -66
- package/scripts/measure-handoff-impact.mjs +0 -395
- package/scripts/measure-handoff-impact.ts +0 -450
- package/scripts/publish-local.js +0 -74
- package/scripts/query-chromadb.ts +0 -201
- package/scripts/ralph-integration-test.js +0 -274
- package/scripts/reconcile-local-tasks.js +0 -170
- package/scripts/recreate-frames-db.js +0 -89
- package/scripts/show-linear-summary.ts +0 -172
- package/scripts/simple-swarm-demo.ts +0 -114
- package/scripts/stackmemory-auto-handoff.sh +0 -231
- package/scripts/start-linear-sync-daemon.sh +0 -141
- package/scripts/start-temporal-paradox.sh +0 -214
- package/scripts/status.ts +0 -224
- package/scripts/stop-notify-webhook.sh +0 -19
- package/scripts/swarm-monitor.js +0 -509
- package/scripts/sync-and-clean-tasks.js +0 -258
- package/scripts/sync-linear-graphql.js +0 -303
- package/scripts/sync-linear-tasks.js +0 -186
- package/scripts/test-auto-triggers.sh +0 -57
- package/scripts/test-browser-mcp.js +0 -74
- package/scripts/test-chromadb-full.js +0 -115
- package/scripts/test-chromadb-hooks.sh +0 -28
- package/scripts/test-chromadb-sync.ts +0 -245
- package/scripts/test-claude-config.sh +0 -123
- package/scripts/test-cli-security.js +0 -293
- package/scripts/test-code-execution.js +0 -143
- package/scripts/test-hooks-persistence.sh +0 -220
- package/scripts/test-installation-scenarios.sh +0 -359
- package/scripts/test-installation.sh +0 -224
- package/scripts/test-mcp.js +0 -163
- package/scripts/test-parallel-swarms.js +0 -443
- package/scripts/test-pre-publish-quick.sh +0 -69
- package/scripts/test-quality-gates.sh +0 -263
- package/scripts/test-ralph-iteration-fix.ts +0 -118
- package/scripts/test-ralph-iterations.ts +0 -164
- package/scripts/test-redis-storage.ts +0 -490
- package/scripts/test-rlm-basic.sh +0 -122
- package/scripts/test-rlm-comprehensive.sh +0 -260
- package/scripts/test-rlm-e2e.sh +0 -268
- package/scripts/test-rlm-simple.js +0 -90
- package/scripts/test-rlm.js +0 -110
- package/scripts/test-session-handoff.sh +0 -165
- package/scripts/test-setup-e2e.sh +0 -154
- package/scripts/test-shell-integration.sh +0 -275
- package/scripts/test-simple-ralph-state-sync.ts +0 -178
- package/scripts/test-swarm-fixes.ts +0 -161
- package/scripts/test-swarm-git-workflow.js +0 -338
- package/scripts/test-swarm-tui.ts +0 -34
- package/scripts/test-tui-shortcuts.ts +0 -66
- package/scripts/testing/ab-test-runner.ts +0 -510
- package/scripts/testing/collect-metrics.ts +0 -457
- package/scripts/testing/quick-effectiveness-demo.js +0 -187
- package/scripts/testing/ralph-cli-test.js +0 -88
- package/scripts/testing/ralph-integration-validation.js +0 -727
- package/scripts/testing/ralph-swarm-test-scenarios.js +0 -613
- package/scripts/testing/real-performance-test.js +0 -422
- package/scripts/testing/results/real-performance-results.json +0 -90
- package/scripts/testing/run-effectiveness-tests.sh +0 -176
- package/scripts/testing/simple-effectiveness-test.js +0 -310
- package/scripts/testing/test-tier-migration.js +0 -100
- package/scripts/update-linear-status.js +0 -268
- package/scripts/update-linear-tasks-fixed.js +0 -284
- package/scripts/validate-claude-config.sh +0 -155
- package/scripts/validate-swarm-implementation.js +0 -467
- package/scripts/validate-tui-shortcuts.ts +0 -83
package/scripts/test-rlm.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import 'dotenv/config';
|
|
4
|
-
import { RecursiveAgentOrchestrator } from '../dist/skills/recursive-agent-orchestrator.js';
|
|
5
|
-
import { FrameManager } from '../dist/core/context/frame-manager.js';
|
|
6
|
-
import { DualStackManager } from '../dist/core/context/dual-stack-manager.js';
|
|
7
|
-
import { ContextRetriever } from '../dist/core/retrieval/context-retriever.js';
|
|
8
|
-
import { PebblesTaskStore } from '../dist/features/tasks/pebbles-task-store.js';
|
|
9
|
-
import { SQLiteAdapter } from '../dist/core/database/sqlite-adapter.js';
|
|
10
|
-
import { ClaudeCodeSubagentClient } from '../dist/integrations/claude-code/subagent-client.js';
|
|
11
|
-
import * as path from 'path';
|
|
12
|
-
import * as os from 'os';
|
|
13
|
-
|
|
14
|
-
async function testRLM() {
|
|
15
|
-
console.log('🚀 Testing RLM Orchestrator...\n');
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
// Initialize dependencies
|
|
19
|
-
const projectId = 'test-project';
|
|
20
|
-
const userId = 'test-user';
|
|
21
|
-
const dbPath = path.join(os.tmpdir(), 'test-rlm.db');
|
|
22
|
-
|
|
23
|
-
console.log('📦 Initializing components...');
|
|
24
|
-
const database = new SQLiteAdapter(projectId, { dbPath });
|
|
25
|
-
await database.connect();
|
|
26
|
-
|
|
27
|
-
const dualStackManager = new DualStackManager(database, projectId, userId);
|
|
28
|
-
const frameManager = dualStackManager.getActiveStack();
|
|
29
|
-
const contextRetriever = new ContextRetriever(database);
|
|
30
|
-
|
|
31
|
-
// Initialize task store with projectId
|
|
32
|
-
const taskStorePath = path.join(os.tmpdir(), 'test-tasks');
|
|
33
|
-
const taskStore = new PebblesTaskStore(projectId, taskStorePath);
|
|
34
|
-
|
|
35
|
-
// Initialize RLM Orchestrator
|
|
36
|
-
console.log('🤖 Creating RLM Orchestrator...');
|
|
37
|
-
const rlm = new RecursiveAgentOrchestrator(
|
|
38
|
-
frameManager,
|
|
39
|
-
dualStackManager,
|
|
40
|
-
contextRetriever,
|
|
41
|
-
taskStore
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
// Test with a simple task
|
|
45
|
-
const task = 'Create a simple hello world function in JavaScript';
|
|
46
|
-
console.log(`\n📝 Task: "${task}"\n`);
|
|
47
|
-
|
|
48
|
-
const options = {
|
|
49
|
-
maxParallel: 2,
|
|
50
|
-
maxRecursionDepth: 2,
|
|
51
|
-
reviewStages: 1,
|
|
52
|
-
qualityThreshold: 0.7,
|
|
53
|
-
testGenerationMode: 'unit',
|
|
54
|
-
verboseLogging: true,
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
console.log('⚙️ Options:', JSON.stringify(options, null, 2));
|
|
58
|
-
console.log('\n🔄 Executing RLM...\n');
|
|
59
|
-
|
|
60
|
-
const result = await rlm.execute(task, options);
|
|
61
|
-
|
|
62
|
-
if (result.success) {
|
|
63
|
-
console.log('✅ RLM Execution Successful!\n');
|
|
64
|
-
console.log('📊 Results:');
|
|
65
|
-
console.log(` - Total tokens: ${result.data.totalTokens}`);
|
|
66
|
-
console.log(` - Estimated cost: $${result.data.totalCost.toFixed(4)}`);
|
|
67
|
-
console.log(` - Duration: ${result.data.duration}ms`);
|
|
68
|
-
console.log(` - Tests generated: ${result.data.testsGenerated}`);
|
|
69
|
-
console.log(` - Issues found: ${result.data.issuesFound}`);
|
|
70
|
-
console.log(` - Issues fixed: ${result.data.issuesFixed}`);
|
|
71
|
-
|
|
72
|
-
if (result.data.improvements?.length > 0) {
|
|
73
|
-
console.log('\n🔧 Improvements:');
|
|
74
|
-
result.data.improvements.forEach(imp => {
|
|
75
|
-
console.log(` • ${imp}`);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
console.log('\n🌳 Execution Tree:');
|
|
80
|
-
printTaskTree(result.data.rootNode, 0);
|
|
81
|
-
} else {
|
|
82
|
-
console.log('❌ RLM Execution Failed');
|
|
83
|
-
console.log('Error:', result.message);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Cleanup
|
|
87
|
-
await database.disconnect();
|
|
88
|
-
console.log('\n✨ Test complete!');
|
|
89
|
-
|
|
90
|
-
} catch (error) {
|
|
91
|
-
console.error('💥 Test failed:', error);
|
|
92
|
-
process.exit(1);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function printTaskTree(node, depth = 0) {
|
|
97
|
-
const indent = ' '.repeat(depth);
|
|
98
|
-
const status = node.status === 'completed' ? '✓' :
|
|
99
|
-
node.status === 'failed' ? '✗' :
|
|
100
|
-
node.status === 'running' ? '⟳' : '○';
|
|
101
|
-
|
|
102
|
-
console.log(`${indent}${status} ${node.description} [${node.agent}]`);
|
|
103
|
-
|
|
104
|
-
if (node.children) {
|
|
105
|
-
node.children.forEach(child => printTaskTree(child, depth + 1));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Run the test
|
|
110
|
-
testRLM().catch(console.error);
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Test session handoff and memory persistence between Claude sessions
|
|
4
|
-
# This script validates the full lifecycle of context preservation
|
|
5
|
-
|
|
6
|
-
set -e
|
|
7
|
-
|
|
8
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
9
|
-
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
10
|
-
|
|
11
|
-
# Colors
|
|
12
|
-
GREEN='\033[0;32m'
|
|
13
|
-
YELLOW='\033[1;33m'
|
|
14
|
-
BLUE='\033[0;34m'
|
|
15
|
-
NC='\033[0m'
|
|
16
|
-
|
|
17
|
-
echo -e "${BLUE}=== Session Handoff & Memory Test ===${NC}"
|
|
18
|
-
echo
|
|
19
|
-
|
|
20
|
-
# 1. Create context in current session
|
|
21
|
-
echo -e "${BLUE}1. Creating session context...${NC}"
|
|
22
|
-
stackmemory context add observation "Session starting - testing handoff"
|
|
23
|
-
stackmemory context add decision "Using shared context for persistence"
|
|
24
|
-
stackmemory context add observation "Progress checkpoint 1"
|
|
25
|
-
echo -e "${GREEN}✓ Context created${NC}"
|
|
26
|
-
echo
|
|
27
|
-
|
|
28
|
-
# 2. Save progress to shared context
|
|
29
|
-
echo -e "${BLUE}2. Saving progress to shared context...${NC}"
|
|
30
|
-
cat << 'EOF' | node -
|
|
31
|
-
const fs = require('fs');
|
|
32
|
-
const path = require('path');
|
|
33
|
-
|
|
34
|
-
const progressData = {
|
|
35
|
-
sessionId: 'test-' + Date.now(),
|
|
36
|
-
timestamp: new Date().toISOString(),
|
|
37
|
-
project: 'stackmemory',
|
|
38
|
-
branch: 'main',
|
|
39
|
-
progress: {
|
|
40
|
-
tasksCompleted: [
|
|
41
|
-
'Setup session context',
|
|
42
|
-
'Test persistence mechanism'
|
|
43
|
-
],
|
|
44
|
-
currentTask: 'Validate handoff process',
|
|
45
|
-
pendingTasks: [
|
|
46
|
-
'Verify retrieval in new session',
|
|
47
|
-
'Test hook integration'
|
|
48
|
-
],
|
|
49
|
-
decisions: [
|
|
50
|
-
'Use shared context for inter-session persistence',
|
|
51
|
-
'Implement checkpoint-based recovery'
|
|
52
|
-
],
|
|
53
|
-
blockers: [],
|
|
54
|
-
lastCheckpoint: new Date().toISOString(),
|
|
55
|
-
contextFrames: 3,
|
|
56
|
-
sessionDuration: '15 minutes'
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const sharedDir = path.join(process.env.HOME, '.stackmemory/shared-context/projects');
|
|
61
|
-
if (!fs.existsSync(sharedDir)) {
|
|
62
|
-
fs.mkdirSync(sharedDir, { recursive: true });
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const filePath = path.join(sharedDir, 'stackmemory_main.json');
|
|
66
|
-
fs.writeFileSync(filePath, JSON.stringify(progressData, null, 2));
|
|
67
|
-
console.log('✓ Progress saved to shared context');
|
|
68
|
-
console.log(' Path:', filePath);
|
|
69
|
-
console.log(' Session:', progressData.sessionId);
|
|
70
|
-
console.log(' Tasks completed:', progressData.progress.tasksCompleted.length);
|
|
71
|
-
EOF
|
|
72
|
-
echo
|
|
73
|
-
|
|
74
|
-
# 3. Generate handoff
|
|
75
|
-
echo -e "${BLUE}3. Generating handoff summary...${NC}"
|
|
76
|
-
stackmemory capture > /tmp/handoff-test.md
|
|
77
|
-
echo -e "${GREEN}✓ Handoff generated${NC}"
|
|
78
|
-
echo " Saved to: /tmp/handoff-test.md"
|
|
79
|
-
echo
|
|
80
|
-
|
|
81
|
-
# 4. Save with clear command
|
|
82
|
-
echo -e "${BLUE}4. Testing clear --save...${NC}"
|
|
83
|
-
stackmemory clear --save
|
|
84
|
-
echo -e "${GREEN}✓ Context saved for clear survival${NC}"
|
|
85
|
-
echo
|
|
86
|
-
|
|
87
|
-
# 5. Simulate new session retrieval
|
|
88
|
-
echo -e "${BLUE}5. Simulating new session context load...${NC}"
|
|
89
|
-
cat << 'EOF' | node -
|
|
90
|
-
const fs = require('fs');
|
|
91
|
-
const path = require('path');
|
|
92
|
-
|
|
93
|
-
console.log('\n--- NEW SESSION START ---\n');
|
|
94
|
-
|
|
95
|
-
// Load saved context
|
|
96
|
-
const filePath = path.join(process.env.HOME, '.stackmemory/shared-context/projects/stackmemory_main.json');
|
|
97
|
-
|
|
98
|
-
if (fs.existsSync(filePath)) {
|
|
99
|
-
const data = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
100
|
-
|
|
101
|
-
console.log('📚 Restored Context from Previous Session:');
|
|
102
|
-
console.log('━'.repeat(50));
|
|
103
|
-
console.log('Previous session:', data.sessionId);
|
|
104
|
-
console.log('Last active:', data.timestamp);
|
|
105
|
-
console.log('');
|
|
106
|
-
console.log('✅ Completed Tasks:');
|
|
107
|
-
data.progress.tasksCompleted.forEach(task => {
|
|
108
|
-
console.log(' •', task);
|
|
109
|
-
});
|
|
110
|
-
console.log('');
|
|
111
|
-
console.log('🔄 Current Task:');
|
|
112
|
-
console.log(' •', data.progress.currentTask);
|
|
113
|
-
console.log('');
|
|
114
|
-
console.log('📋 Pending Tasks:');
|
|
115
|
-
data.progress.pendingTasks.forEach(task => {
|
|
116
|
-
console.log(' •', task);
|
|
117
|
-
});
|
|
118
|
-
console.log('');
|
|
119
|
-
console.log('💡 Key Decisions:');
|
|
120
|
-
data.progress.decisions.forEach(decision => {
|
|
121
|
-
console.log(' •', decision);
|
|
122
|
-
});
|
|
123
|
-
console.log('━'.repeat(50));
|
|
124
|
-
|
|
125
|
-
// Calculate session gap
|
|
126
|
-
const lastTime = new Date(data.progress.lastCheckpoint);
|
|
127
|
-
const gap = Math.round((Date.now() - lastTime.getTime()) / 1000);
|
|
128
|
-
console.log(`\nSession gap: ${gap} seconds`);
|
|
129
|
-
console.log('Ready to continue from checkpoint ✨');
|
|
130
|
-
} else {
|
|
131
|
-
console.log('❌ No previous session context found');
|
|
132
|
-
}
|
|
133
|
-
EOF
|
|
134
|
-
echo
|
|
135
|
-
|
|
136
|
-
# 6. Restore from clear
|
|
137
|
-
echo -e "${BLUE}6. Testing clear --restore...${NC}"
|
|
138
|
-
stackmemory clear --restore
|
|
139
|
-
echo -e "${GREEN}✓ Context restored${NC}"
|
|
140
|
-
echo
|
|
141
|
-
|
|
142
|
-
# 7. Verify restoration
|
|
143
|
-
echo -e "${BLUE}7. Verifying restored context...${NC}"
|
|
144
|
-
stackmemory context show
|
|
145
|
-
echo
|
|
146
|
-
|
|
147
|
-
# Summary
|
|
148
|
-
echo -e "${BLUE}=== Test Summary ===${NC}"
|
|
149
|
-
echo -e "${GREEN}✓ Session context created and saved${NC}"
|
|
150
|
-
echo -e "${GREEN}✓ Progress persisted to shared context${NC}"
|
|
151
|
-
echo -e "${GREEN}✓ Handoff generated successfully${NC}"
|
|
152
|
-
echo -e "${GREEN}✓ Clear/restore cycle working${NC}"
|
|
153
|
-
echo -e "${GREEN}✓ New session can retrieve context${NC}"
|
|
154
|
-
echo
|
|
155
|
-
echo "Key locations:"
|
|
156
|
-
echo " • Shared context: ~/.stackmemory/shared-context/projects/"
|
|
157
|
-
echo " • Continuity ledger: ./.stackmemory/continuity.json"
|
|
158
|
-
echo " • Last handoff: ./.stackmemory/last-handoff.md"
|
|
159
|
-
echo " • Session data: ~/.stackmemory/sessions/"
|
|
160
|
-
echo
|
|
161
|
-
echo -e "${YELLOW}💡 To use in new Claude session:${NC}"
|
|
162
|
-
echo " 1. Run: stackmemory capture"
|
|
163
|
-
echo " 2. Copy the handoff summary"
|
|
164
|
-
echo " 3. Paste at start of new session"
|
|
165
|
-
echo " 4. Context will be automatically loaded"
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# E2E test for claude-sm config setup
|
|
3
|
-
# Tests the interactive setup wizard flow
|
|
4
|
-
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
8
|
-
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
9
|
-
CONFIG_PATH="$HOME/.stackmemory/claude-sm.json"
|
|
10
|
-
BACKUP_PATH="$HOME/.stackmemory/claude-sm.json.bak"
|
|
11
|
-
|
|
12
|
-
# Colors
|
|
13
|
-
RED='\033[0;31m'
|
|
14
|
-
GREEN='\033[0;32m'
|
|
15
|
-
GRAY='\033[0;90m'
|
|
16
|
-
NC='\033[0m'
|
|
17
|
-
|
|
18
|
-
pass=0
|
|
19
|
-
fail=0
|
|
20
|
-
|
|
21
|
-
ok() { echo -e " ${GREEN}PASS${NC} $1"; pass=$((pass + 1)); }
|
|
22
|
-
ko() { echo -e " ${RED}FAIL${NC} $1"; fail=$((fail + 1)); }
|
|
23
|
-
|
|
24
|
-
echo "=== claude-sm config setup E2E tests ==="
|
|
25
|
-
echo ""
|
|
26
|
-
|
|
27
|
-
# Backup existing config
|
|
28
|
-
if [ -f "$CONFIG_PATH" ]; then
|
|
29
|
-
cp "$CONFIG_PATH" "$BACKUP_PATH"
|
|
30
|
-
echo -e "${GRAY}Backed up existing config${NC}"
|
|
31
|
-
fi
|
|
32
|
-
|
|
33
|
-
# 1. Test config show works
|
|
34
|
-
echo "--- Test: config show ---"
|
|
35
|
-
output=$(node "$PROJECT_DIR/dist/cli/claude-sm.js" config show 2>&1 || true)
|
|
36
|
-
if echo "$output" | grep -q "defaultSweep"; then
|
|
37
|
-
ok "config show displays defaultSweep"
|
|
38
|
-
else
|
|
39
|
-
ko "config show missing defaultSweep"
|
|
40
|
-
fi
|
|
41
|
-
if echo "$output" | grep -q "defaultGreptile"; then
|
|
42
|
-
ok "config show displays defaultGreptile"
|
|
43
|
-
else
|
|
44
|
-
ko "config show missing defaultGreptile"
|
|
45
|
-
fi
|
|
46
|
-
|
|
47
|
-
# 2. Test config set sweep
|
|
48
|
-
echo "--- Test: config set sweep ---"
|
|
49
|
-
node "$PROJECT_DIR/dist/cli/claude-sm.js" config set sweep false 2>&1
|
|
50
|
-
output=$(node "$PROJECT_DIR/dist/cli/claude-sm.js" config show 2>&1 || true)
|
|
51
|
-
if echo "$output" | grep -q "defaultSweep.*false\|defaultSweep"; then
|
|
52
|
-
ok "config set sweep false applied"
|
|
53
|
-
else
|
|
54
|
-
ko "config set sweep false not applied"
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
node "$PROJECT_DIR/dist/cli/claude-sm.js" config set sweep true 2>&1
|
|
58
|
-
output=$(node "$PROJECT_DIR/dist/cli/claude-sm.js" config show 2>&1 || true)
|
|
59
|
-
if echo "$output" | grep -q "defaultSweep.*true\|defaultSweep"; then
|
|
60
|
-
ok "config set sweep true applied"
|
|
61
|
-
else
|
|
62
|
-
ko "config set sweep true not applied"
|
|
63
|
-
fi
|
|
64
|
-
|
|
65
|
-
# 3. Test config set greptile
|
|
66
|
-
echo "--- Test: config set greptile ---"
|
|
67
|
-
node "$PROJECT_DIR/dist/cli/claude-sm.js" config set greptile false 2>&1
|
|
68
|
-
output=$(node "$PROJECT_DIR/dist/cli/claude-sm.js" config show 2>&1 || true)
|
|
69
|
-
if echo "$output" | grep -q "defaultGreptile"; then
|
|
70
|
-
ok "config set greptile applied"
|
|
71
|
-
else
|
|
72
|
-
ko "config set greptile not applied"
|
|
73
|
-
fi
|
|
74
|
-
|
|
75
|
-
# 4. Test config greptile-on / greptile-off
|
|
76
|
-
echo "--- Test: greptile-on/off ---"
|
|
77
|
-
node "$PROJECT_DIR/dist/cli/claude-sm.js" config greptile-on 2>&1
|
|
78
|
-
if grep -q '"defaultGreptile":.*true' "$CONFIG_PATH"; then
|
|
79
|
-
ok "greptile-on sets true in config file"
|
|
80
|
-
else
|
|
81
|
-
ko "greptile-on did not set true"
|
|
82
|
-
fi
|
|
83
|
-
|
|
84
|
-
node "$PROJECT_DIR/dist/cli/claude-sm.js" config greptile-off 2>&1
|
|
85
|
-
if grep -q '"defaultGreptile":.*false' "$CONFIG_PATH"; then
|
|
86
|
-
ok "greptile-off sets false in config file"
|
|
87
|
-
else
|
|
88
|
-
ko "greptile-off did not set false"
|
|
89
|
-
fi
|
|
90
|
-
|
|
91
|
-
# 5. Test that setup command exists (non-interactive check)
|
|
92
|
-
echo "--- Test: setup command exists ---"
|
|
93
|
-
output=$(node "$PROJECT_DIR/dist/cli/claude-sm.js" config --help 2>&1 || true)
|
|
94
|
-
if echo "$output" | grep -q "setup"; then
|
|
95
|
-
ok "setup command listed in config help"
|
|
96
|
-
else
|
|
97
|
-
ko "setup command not in config help"
|
|
98
|
-
fi
|
|
99
|
-
|
|
100
|
-
# 6. Test node-pty dynamic import (should not crash if missing)
|
|
101
|
-
echo "--- Test: node-pty optional ---"
|
|
102
|
-
node -e "
|
|
103
|
-
import('node-pty')
|
|
104
|
-
.then(() => { console.log('node-pty: installed'); process.exit(0); })
|
|
105
|
-
.catch(() => { console.log('node-pty: not installed (OK)'); process.exit(0); });
|
|
106
|
-
" 2>&1
|
|
107
|
-
ok "node-pty check does not crash"
|
|
108
|
-
|
|
109
|
-
# 7. Verify node-pty is NOT in optionalDependencies
|
|
110
|
-
echo "--- Test: node-pty removed from optionalDeps ---"
|
|
111
|
-
if grep -q '"node-pty"' "$PROJECT_DIR/package.json"; then
|
|
112
|
-
ko "node-pty still in package.json"
|
|
113
|
-
else
|
|
114
|
-
ok "node-pty removed from package.json"
|
|
115
|
-
fi
|
|
116
|
-
|
|
117
|
-
# 8. Test feature flags include greptile
|
|
118
|
-
echo "--- Test: feature flags ---"
|
|
119
|
-
node -e "
|
|
120
|
-
import { getFeatureFlags } from '$PROJECT_DIR/dist/core/config/feature-flags.js';
|
|
121
|
-
const flags = getFeatureFlags();
|
|
122
|
-
if ('greptile' in flags) {
|
|
123
|
-
console.log('greptile flag exists: ' + flags.greptile);
|
|
124
|
-
process.exit(0);
|
|
125
|
-
} else {
|
|
126
|
-
console.error('greptile flag missing');
|
|
127
|
-
process.exit(1);
|
|
128
|
-
}
|
|
129
|
-
" 2>&1 && ok "greptile feature flag exists" || ko "greptile feature flag missing"
|
|
130
|
-
|
|
131
|
-
# 9. Verify build artifacts exist
|
|
132
|
-
echo "--- Test: build artifacts ---"
|
|
133
|
-
if [ -f "$PROJECT_DIR/dist/cli/claude-sm.js" ]; then
|
|
134
|
-
ok "dist/cli/claude-sm.js exists"
|
|
135
|
-
else
|
|
136
|
-
ko "dist/cli/claude-sm.js missing"
|
|
137
|
-
fi
|
|
138
|
-
|
|
139
|
-
if [ -f "$PROJECT_DIR/dist/features/sweep/pty-wrapper.js" ]; then
|
|
140
|
-
ok "dist/features/sweep/pty-wrapper.js exists"
|
|
141
|
-
else
|
|
142
|
-
ko "dist/features/sweep/pty-wrapper.js missing"
|
|
143
|
-
fi
|
|
144
|
-
|
|
145
|
-
# Restore config
|
|
146
|
-
if [ -f "$BACKUP_PATH" ]; then
|
|
147
|
-
mv "$BACKUP_PATH" "$CONFIG_PATH"
|
|
148
|
-
echo -e "${GRAY}Restored original config${NC}"
|
|
149
|
-
fi
|
|
150
|
-
|
|
151
|
-
# Summary
|
|
152
|
-
echo ""
|
|
153
|
-
echo "=== Results: ${GREEN}$pass passed${NC}, ${RED}$fail failed${NC} ==="
|
|
154
|
-
[ "$fail" -eq 0 ] && exit 0 || exit 1
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# StackMemory Shell Integration Test Suite
|
|
3
|
-
# Tests shell integration components in isolation
|
|
4
|
-
|
|
5
|
-
set -e
|
|
6
|
-
|
|
7
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
8
|
-
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
9
|
-
|
|
10
|
-
# Colors
|
|
11
|
-
GREEN='\033[0;32m'
|
|
12
|
-
RED='\033[0;31m'
|
|
13
|
-
YELLOW='\033[1;33m'
|
|
14
|
-
BLUE='\033[0;34m'
|
|
15
|
-
NC='\033[0m'
|
|
16
|
-
|
|
17
|
-
log_info() { echo -e "${BLUE}[INFO]${NC} $1"; }
|
|
18
|
-
log_success() { echo -e "${GREEN}[PASS]${NC} $1"; }
|
|
19
|
-
log_error() { echo -e "${RED}[FAIL]${NC} $1"; }
|
|
20
|
-
log_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
|
|
21
|
-
|
|
22
|
-
TEST_COUNT=0
|
|
23
|
-
PASS_COUNT=0
|
|
24
|
-
|
|
25
|
-
run_shell_test() {
|
|
26
|
-
local test_name="$1"
|
|
27
|
-
local test_function="$2"
|
|
28
|
-
|
|
29
|
-
((TEST_COUNT++))
|
|
30
|
-
log_info "Test $TEST_COUNT: $test_name"
|
|
31
|
-
|
|
32
|
-
if $test_function; then
|
|
33
|
-
log_success "$test_name"
|
|
34
|
-
((PASS_COUNT++))
|
|
35
|
-
return 0
|
|
36
|
-
else
|
|
37
|
-
log_error "$test_name"
|
|
38
|
-
return 1
|
|
39
|
-
fi
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
# Test functions
|
|
43
|
-
test_binaries_directory_exists() {
|
|
44
|
-
[ -d "$HOME/.stackmemory/bin" ]
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
test_all_binaries_exist() {
|
|
48
|
-
local binaries=("stackmemory" "stackmemory-daemon" "stackmemory-monitor" "sm-review")
|
|
49
|
-
for binary in "${binaries[@]}"; do
|
|
50
|
-
if [ ! -f "$HOME/.stackmemory/bin/$binary" ]; then
|
|
51
|
-
echo "Missing binary: $binary"
|
|
52
|
-
return 1
|
|
53
|
-
fi
|
|
54
|
-
if [ ! -x "$HOME/.stackmemory/bin/$binary" ]; then
|
|
55
|
-
echo "Binary not executable: $binary"
|
|
56
|
-
return 1
|
|
57
|
-
fi
|
|
58
|
-
done
|
|
59
|
-
return 0
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
test_stackmemory_daemon() {
|
|
63
|
-
local output
|
|
64
|
-
|
|
65
|
-
# Test help/usage (should fail and show usage for invalid args)
|
|
66
|
-
if output=$("$HOME/.stackmemory/bin/stackmemory-daemon" invalid 2>&1); then
|
|
67
|
-
if ! echo "$output" | grep -q "Usage:"; then
|
|
68
|
-
echo "Should show usage for invalid args"
|
|
69
|
-
return 1
|
|
70
|
-
fi
|
|
71
|
-
fi
|
|
72
|
-
|
|
73
|
-
# Test status command (should succeed)
|
|
74
|
-
if ! output=$("$HOME/.stackmemory/bin/stackmemory-daemon" status 2>&1); then
|
|
75
|
-
echo "Status command failed: $output"
|
|
76
|
-
return 1
|
|
77
|
-
fi
|
|
78
|
-
|
|
79
|
-
return 0
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
test_stackmemory_monitor() {
|
|
83
|
-
local output
|
|
84
|
-
|
|
85
|
-
# Test config command
|
|
86
|
-
if ! output=$("$HOME/.stackmemory/bin/stackmemory-monitor" config 2>&1); then
|
|
87
|
-
echo "Config command failed: $output"
|
|
88
|
-
return 1
|
|
89
|
-
fi
|
|
90
|
-
|
|
91
|
-
# Should show current configuration
|
|
92
|
-
if ! echo "$output" | grep -qi "monitor\|configuration\|interval"; then
|
|
93
|
-
echo "Config output doesn't contain expected text: $output"
|
|
94
|
-
return 1
|
|
95
|
-
fi
|
|
96
|
-
|
|
97
|
-
return 0
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
test_sm_review() {
|
|
101
|
-
local output
|
|
102
|
-
|
|
103
|
-
# Test recent command (should not fail even if no context)
|
|
104
|
-
if ! output=$(timeout 10s "$HOME/.stackmemory/bin/sm-review" recent 1 2>&1); then
|
|
105
|
-
echo "Recent command failed: $output"
|
|
106
|
-
return 1
|
|
107
|
-
fi
|
|
108
|
-
|
|
109
|
-
# Test default command
|
|
110
|
-
if ! output=$(timeout 10s "$HOME/.stackmemory/bin/sm-review" 2>&1); then
|
|
111
|
-
echo "Default command failed: $output"
|
|
112
|
-
return 1
|
|
113
|
-
fi
|
|
114
|
-
|
|
115
|
-
return 0
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
test_stackmemory_wrapper() {
|
|
119
|
-
local output
|
|
120
|
-
|
|
121
|
-
# Test version command
|
|
122
|
-
if ! output=$(timeout 10s "$HOME/.stackmemory/bin/stackmemory" --version 2>&1); then
|
|
123
|
-
echo "Version command failed: $output"
|
|
124
|
-
return 1
|
|
125
|
-
fi
|
|
126
|
-
|
|
127
|
-
# Should return version number
|
|
128
|
-
if ! echo "$output" | grep -E "^[0-9]+\.[0-9]+\.[0-9]+"; then
|
|
129
|
-
echo "Version output doesn't match expected pattern: $output"
|
|
130
|
-
return 1
|
|
131
|
-
fi
|
|
132
|
-
|
|
133
|
-
return 0
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
test_shell_integration_files_exist() {
|
|
137
|
-
[ -f "$HOME/.stackmemory/shell-integration.sh" ] &&
|
|
138
|
-
[ -f "$HOME/.stackmemory/shell-integration-consolidated.sh" ]
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
test_shell_integration_syntax() {
|
|
142
|
-
# Test basic shell integration syntax
|
|
143
|
-
if ! bash -n "$HOME/.stackmemory/shell-integration.sh"; then
|
|
144
|
-
echo "Basic shell integration has syntax errors"
|
|
145
|
-
return 1
|
|
146
|
-
fi
|
|
147
|
-
|
|
148
|
-
# Test consolidated integration syntax
|
|
149
|
-
if ! bash -n "$HOME/.stackmemory/shell-integration-consolidated.sh"; then
|
|
150
|
-
echo "Consolidated shell integration has syntax errors"
|
|
151
|
-
return 1
|
|
152
|
-
fi
|
|
153
|
-
|
|
154
|
-
return 0
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
test_shell_integration_loading() {
|
|
158
|
-
# Test that shell integration can be sourced without errors
|
|
159
|
-
local temp_script=$(mktemp)
|
|
160
|
-
cat > "$temp_script" << 'EOF'
|
|
161
|
-
#!/bin/bash
|
|
162
|
-
set -e
|
|
163
|
-
# Temporarily disable the problematic parts and test basic loading
|
|
164
|
-
export STACKMEMORY_HOME="$HOME/.stackmemory"
|
|
165
|
-
source "$HOME/.stackmemory/shell-integration.sh" || exit 1
|
|
166
|
-
echo "Basic integration loaded successfully"
|
|
167
|
-
EOF
|
|
168
|
-
|
|
169
|
-
if bash "$temp_script"; then
|
|
170
|
-
rm -f "$temp_script"
|
|
171
|
-
return 0
|
|
172
|
-
else
|
|
173
|
-
rm -f "$temp_script"
|
|
174
|
-
echo "Shell integration loading failed"
|
|
175
|
-
return 1
|
|
176
|
-
fi
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
test_path_configuration() {
|
|
180
|
-
# Test that PATH includes stackmemory bin directory
|
|
181
|
-
if ! echo "$PATH" | grep -q "$HOME/.stackmemory/bin"; then
|
|
182
|
-
echo "PATH doesn't include ~/.stackmemory/bin"
|
|
183
|
-
return 1
|
|
184
|
-
fi
|
|
185
|
-
|
|
186
|
-
# Test that stackmemory command is found in PATH
|
|
187
|
-
if ! command -v stackmemory > /dev/null; then
|
|
188
|
-
echo "stackmemory command not found in PATH"
|
|
189
|
-
return 1
|
|
190
|
-
fi
|
|
191
|
-
|
|
192
|
-
return 0
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
test_no_startup_errors() {
|
|
196
|
-
# Test that sourcing shell integration doesn't produce errors
|
|
197
|
-
local temp_script=$(mktemp)
|
|
198
|
-
cat > "$temp_script" << 'EOF'
|
|
199
|
-
#!/bin/bash
|
|
200
|
-
# Capture any error output when sourcing
|
|
201
|
-
exec 2> /tmp/shell_integration_errors.log
|
|
202
|
-
set -e
|
|
203
|
-
source ~/.stackmemory/shell-integration-consolidated.sh
|
|
204
|
-
EOF
|
|
205
|
-
|
|
206
|
-
# Run in a timeout to prevent hanging
|
|
207
|
-
if timeout 30s bash "$temp_script" > /dev/null 2>&1; then
|
|
208
|
-
# Check if any errors were logged
|
|
209
|
-
if [ -f /tmp/shell_integration_errors.log ] && [ -s /tmp/shell_integration_errors.log ]; then
|
|
210
|
-
echo "Shell integration produced errors:"
|
|
211
|
-
cat /tmp/shell_integration_errors.log
|
|
212
|
-
rm -f /tmp/shell_integration_errors.log "$temp_script"
|
|
213
|
-
return 1
|
|
214
|
-
fi
|
|
215
|
-
rm -f /tmp/shell_integration_errors.log "$temp_script"
|
|
216
|
-
return 0
|
|
217
|
-
else
|
|
218
|
-
rm -f /tmp/shell_integration_errors.log "$temp_script"
|
|
219
|
-
echo "Shell integration timed out or failed"
|
|
220
|
-
return 1
|
|
221
|
-
fi
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
# Main test execution
|
|
225
|
-
main() {
|
|
226
|
-
echo "============================================"
|
|
227
|
-
echo " StackMemory Shell Integration Test Suite"
|
|
228
|
-
echo "============================================"
|
|
229
|
-
echo
|
|
230
|
-
|
|
231
|
-
log_info "Testing shell integration components..."
|
|
232
|
-
echo
|
|
233
|
-
|
|
234
|
-
# Directory and file tests
|
|
235
|
-
run_shell_test "Binaries directory exists" "test_binaries_directory_exists"
|
|
236
|
-
run_shell_test "All required binaries exist and are executable" "test_all_binaries_exist"
|
|
237
|
-
run_shell_test "Shell integration files exist" "test_shell_integration_files_exist"
|
|
238
|
-
echo
|
|
239
|
-
|
|
240
|
-
# Syntax tests
|
|
241
|
-
run_shell_test "Shell integration syntax is valid" "test_shell_integration_syntax"
|
|
242
|
-
echo
|
|
243
|
-
|
|
244
|
-
# Functionality tests
|
|
245
|
-
run_shell_test "stackmemory-daemon functionality" "test_stackmemory_daemon"
|
|
246
|
-
run_shell_test "stackmemory-monitor functionality" "test_stackmemory_monitor"
|
|
247
|
-
run_shell_test "sm-review functionality" "test_sm_review"
|
|
248
|
-
run_shell_test "stackmemory wrapper functionality" "test_stackmemory_wrapper"
|
|
249
|
-
echo
|
|
250
|
-
|
|
251
|
-
# Integration tests
|
|
252
|
-
run_shell_test "Shell integration can be loaded" "test_shell_integration_loading"
|
|
253
|
-
run_shell_test "PATH configuration is correct" "test_path_configuration"
|
|
254
|
-
run_shell_test "No startup errors in shell integration" "test_no_startup_errors"
|
|
255
|
-
echo
|
|
256
|
-
|
|
257
|
-
# Results
|
|
258
|
-
echo "============================================"
|
|
259
|
-
echo " Shell Integration Test Results"
|
|
260
|
-
echo "============================================"
|
|
261
|
-
echo "Total tests: $TEST_COUNT"
|
|
262
|
-
echo -e "${GREEN}Passed: $PASS_COUNT${NC}"
|
|
263
|
-
echo -e "${RED}Failed: $((TEST_COUNT - PASS_COUNT))${NC}"
|
|
264
|
-
echo
|
|
265
|
-
|
|
266
|
-
if [ $PASS_COUNT -eq $TEST_COUNT ]; then
|
|
267
|
-
echo -e "${GREEN}✅ All shell integration tests passed!${NC}"
|
|
268
|
-
return 0
|
|
269
|
-
else
|
|
270
|
-
echo -e "${RED}❌ Some shell integration tests failed.${NC}"
|
|
271
|
-
return 1
|
|
272
|
-
fi
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
main "$@"
|