@stackmemoryai/stackmemory 0.5.58 → 0.5.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/search.js +20 -3
- package/dist/cli/commands/search.js.map +2 -2
- package/dist/core/database/sqlite-adapter.js +13 -3
- package/dist/core/database/sqlite-adapter.js.map +2 -2
- package/dist/core/errors/error-utils.js +208 -0
- package/dist/core/errors/error-utils.js.map +7 -0
- package/dist/core/errors/index.js +13 -4
- package/dist/core/errors/index.js.map +2 -2
- package/dist/core/merge/unified-merge-resolver.js +303 -0
- package/dist/core/merge/unified-merge-resolver.js.map +7 -0
- package/dist/core/monitoring/logger.js +61 -9
- package/dist/core/monitoring/logger.js.map +2 -2
- package/dist/core/security/index.js +35 -0
- package/dist/core/security/index.js.map +7 -0
- package/dist/core/security/input-sanitizer.js +321 -0
- package/dist/core/security/input-sanitizer.js.map +7 -0
- package/dist/integrations/linear/client.js +5 -1
- package/dist/integrations/linear/client.js.map +2 -2
- package/dist/integrations/mcp/remote-server.js +27 -36
- package/dist/integrations/mcp/remote-server.js.map +2 -2
- package/dist/integrations/mcp/server.js +44 -29
- package/dist/integrations/mcp/server.js.map +3 -3
- package/dist/scripts/benchmark-performance.js +48 -0
- package/dist/scripts/benchmark-performance.js.map +7 -0
- package/dist/scripts/check-redis.js +42 -0
- package/dist/scripts/check-redis.js.map +7 -0
- package/dist/scripts/initialize.js +116 -0
- package/dist/scripts/initialize.js.map +7 -0
- package/dist/scripts/list-linear-tasks.js +124 -0
- package/dist/scripts/list-linear-tasks.js.map +7 -0
- package/dist/scripts/measure-handoff-impact.js +340 -0
- package/dist/scripts/measure-handoff-impact.js.map +7 -0
- package/dist/scripts/query-chromadb.js +160 -0
- package/dist/scripts/query-chromadb.js.map +7 -0
- package/dist/scripts/show-linear-summary.js +119 -0
- package/dist/scripts/show-linear-summary.js.map +7 -0
- package/dist/scripts/simple-swarm-demo.js +90 -0
- package/dist/scripts/simple-swarm-demo.js.map +7 -0
- package/dist/scripts/status.js +155 -0
- package/dist/scripts/status.js.map +7 -0
- package/dist/scripts/test-chromadb-sync.js +192 -0
- package/dist/scripts/test-chromadb-sync.js.map +7 -0
- package/dist/scripts/test-ralph-iteration-fix.js +86 -0
- package/dist/scripts/test-ralph-iteration-fix.js.map +7 -0
- package/dist/scripts/test-ralph-iterations.js +121 -0
- package/dist/scripts/test-ralph-iterations.js.map +7 -0
- package/dist/scripts/test-redis-storage.js +389 -0
- package/dist/scripts/test-redis-storage.js.map +7 -0
- package/dist/scripts/test-simple-ralph-state-sync.js +115 -0
- package/dist/scripts/test-simple-ralph-state-sync.js.map +7 -0
- package/dist/scripts/test-swarm-fixes.js +125 -0
- package/dist/scripts/test-swarm-fixes.js.map +7 -0
- package/dist/scripts/test-swarm-tui.js +23 -0
- package/dist/scripts/test-swarm-tui.js.map +7 -0
- package/dist/scripts/test-tui-shortcuts.js +52 -0
- package/dist/scripts/test-tui-shortcuts.js.map +7 -0
- package/dist/scripts/validate-tui-shortcuts.js +60 -0
- package/dist/scripts/validate-tui-shortcuts.js.map +7 -0
- package/dist/src/agents/core/agent-task-manager.js +527 -0
- package/dist/src/agents/core/agent-task-manager.js.map +7 -0
- package/dist/src/agents/verifiers/base-verifier.js +133 -0
- package/dist/src/agents/verifiers/base-verifier.js.map +7 -0
- package/dist/src/agents/verifiers/formatter-verifier.js +130 -0
- package/dist/src/agents/verifiers/formatter-verifier.js.map +7 -0
- package/dist/src/agents/verifiers/llm-judge.js +252 -0
- package/dist/src/agents/verifiers/llm-judge.js.map +7 -0
- package/dist/src/cli/auto-detect.js +321 -0
- package/dist/src/cli/auto-detect.js.map +7 -0
- package/dist/src/cli/claude-sm-danger.js +21 -0
- package/dist/src/cli/claude-sm-danger.js.map +7 -0
- package/dist/src/cli/claude-sm.js +1156 -0
- package/dist/src/cli/claude-sm.js.map +7 -0
- package/dist/src/cli/codex-sm-danger.js +21 -0
- package/dist/src/cli/codex-sm-danger.js.map +7 -0
- package/dist/src/cli/codex-sm.js +349 -0
- package/dist/src/cli/codex-sm.js.map +7 -0
- package/dist/src/cli/commands/api.js +232 -0
- package/dist/src/cli/commands/api.js.map +7 -0
- package/dist/src/cli/commands/auto-background.js +180 -0
- package/dist/src/cli/commands/auto-background.js.map +7 -0
- package/dist/src/cli/commands/cleanup-processes.js +68 -0
- package/dist/src/cli/commands/cleanup-processes.js.map +7 -0
- package/dist/src/cli/commands/clear.js +202 -0
- package/dist/src/cli/commands/clear.js.map +7 -0
- package/dist/src/cli/commands/config.js +445 -0
- package/dist/src/cli/commands/config.js.map +7 -0
- package/dist/src/cli/commands/context-rehydrate.js +751 -0
- package/dist/src/cli/commands/context-rehydrate.js.map +7 -0
- package/dist/src/cli/commands/context.js +343 -0
- package/dist/src/cli/commands/context.js.map +7 -0
- package/dist/src/cli/commands/daemon.js +392 -0
- package/dist/src/cli/commands/daemon.js.map +7 -0
- package/dist/src/cli/commands/dashboard.js +210 -0
- package/dist/src/cli/commands/dashboard.js.map +7 -0
- package/dist/src/cli/commands/db.js +147 -0
- package/dist/src/cli/commands/db.js.map +7 -0
- package/dist/src/cli/commands/decision.js +266 -0
- package/dist/src/cli/commands/decision.js.map +7 -0
- package/dist/src/cli/commands/discovery.js +279 -0
- package/dist/src/cli/commands/discovery.js.map +7 -0
- package/dist/src/cli/commands/handoff.js +624 -0
- package/dist/src/cli/commands/handoff.js.map +7 -0
- package/dist/src/cli/commands/hooks.js +298 -0
- package/dist/src/cli/commands/hooks.js.map +7 -0
- package/dist/src/cli/commands/linear.js +529 -0
- package/dist/src/cli/commands/linear.js.map +7 -0
- package/dist/src/cli/commands/log.js +169 -0
- package/dist/src/cli/commands/log.js.map +7 -0
- package/dist/src/cli/commands/login.js +172 -0
- package/dist/src/cli/commands/login.js.map +7 -0
- package/dist/src/cli/commands/migrate.js +240 -0
- package/dist/src/cli/commands/migrate.js.map +7 -0
- package/dist/src/cli/commands/model.js +533 -0
- package/dist/src/cli/commands/model.js.map +7 -0
- package/dist/src/cli/commands/onboard.js +536 -0
- package/dist/src/cli/commands/onboard.js.map +7 -0
- package/dist/src/cli/commands/projects.js +199 -0
- package/dist/src/cli/commands/projects.js.map +7 -0
- package/dist/src/cli/commands/ralph.js +909 -0
- package/dist/src/cli/commands/ralph.js.map +7 -0
- package/dist/src/cli/commands/retrieval.js +248 -0
- package/dist/src/cli/commands/retrieval.js.map +7 -0
- package/dist/src/cli/commands/search.js +173 -0
- package/dist/src/cli/commands/search.js.map +7 -0
- package/dist/src/cli/commands/service.js +749 -0
- package/dist/src/cli/commands/service.js.map +7 -0
- package/dist/src/cli/commands/session.js +200 -0
- package/dist/src/cli/commands/session.js.map +7 -0
- package/dist/src/cli/commands/settings.js +306 -0
- package/dist/src/cli/commands/settings.js.map +7 -0
- package/dist/src/cli/commands/setup.js +701 -0
- package/dist/src/cli/commands/setup.js.map +7 -0
- package/dist/src/cli/commands/shell.js +249 -0
- package/dist/src/cli/commands/shell.js.map +7 -0
- package/dist/src/cli/commands/signup.js +50 -0
- package/dist/src/cli/commands/signup.js.map +7 -0
- package/dist/src/cli/commands/skills.js +470 -0
- package/dist/src/cli/commands/skills.js.map +7 -0
- package/dist/src/cli/commands/sms-notify.js +795 -0
- package/dist/src/cli/commands/sms-notify.js.map +7 -0
- package/dist/src/cli/commands/storage-tier.js +183 -0
- package/dist/src/cli/commands/storage-tier.js.map +7 -0
- package/dist/src/cli/commands/sweep.js +249 -0
- package/dist/src/cli/commands/sweep.js.map +7 -0
- package/dist/src/cli/commands/tasks.js +213 -0
- package/dist/src/cli/commands/tasks.js.map +7 -0
- package/dist/src/cli/commands/worktree.js +319 -0
- package/dist/src/cli/commands/worktree.js.map +7 -0
- package/dist/src/cli/index.js +594 -0
- package/dist/src/cli/index.js.map +7 -0
- package/dist/src/cli/opencode-sm.js +448 -0
- package/dist/src/cli/opencode-sm.js.map +7 -0
- package/dist/src/cli/utils/viewer.js +96 -0
- package/dist/src/cli/utils/viewer.js.map +7 -0
- package/dist/src/core/config/config-manager.js +398 -0
- package/dist/src/core/config/config-manager.js.map +7 -0
- package/dist/src/core/config/feature-flags.js +76 -0
- package/dist/src/core/config/feature-flags.js.map +7 -0
- package/dist/src/core/config/storage-config.js +115 -0
- package/dist/src/core/config/storage-config.js.map +7 -0
- package/dist/src/core/config/types.js +144 -0
- package/dist/src/core/config/types.js.map +7 -0
- package/dist/src/core/context/auto-context.js +80 -0
- package/dist/src/core/context/auto-context.js.map +7 -0
- package/dist/src/core/context/dual-stack-manager.js +870 -0
- package/dist/src/core/context/dual-stack-manager.js.map +7 -0
- package/dist/src/core/context/enhanced-rehydration.js +994 -0
- package/dist/src/core/context/enhanced-rehydration.js.map +7 -0
- package/dist/src/core/context/frame-database.js +479 -0
- package/dist/src/core/context/frame-database.js.map +7 -0
- package/dist/src/core/context/frame-digest.js +250 -0
- package/dist/src/core/context/frame-digest.js.map +7 -0
- package/dist/src/core/context/frame-handoff-manager.js +778 -0
- package/dist/src/core/context/frame-handoff-manager.js.map +7 -0
- package/dist/src/core/context/frame-lifecycle-hooks.js +119 -0
- package/dist/src/core/context/frame-lifecycle-hooks.js.map +7 -0
- package/dist/src/core/context/frame-recovery.js +302 -0
- package/dist/src/core/context/frame-recovery.js.map +7 -0
- package/dist/src/core/context/frame-stack.js +314 -0
- package/dist/src/core/context/frame-stack.js.map +7 -0
- package/dist/src/core/context/frame-types.js +5 -0
- package/dist/src/core/context/frame-types.js.map +7 -0
- package/dist/src/core/context/index.js +25 -0
- package/dist/src/core/context/index.js.map +7 -0
- package/dist/src/core/context/permission-manager.js +185 -0
- package/dist/src/core/context/permission-manager.js.map +7 -0
- package/dist/src/core/context/recursive-context-manager.js +592 -0
- package/dist/src/core/context/recursive-context-manager.js.map +7 -0
- package/dist/src/core/context/refactored-frame-manager.js +754 -0
- package/dist/src/core/context/refactored-frame-manager.js.map +7 -0
- package/dist/src/core/context/shared-context-layer.js +621 -0
- package/dist/src/core/context/shared-context-layer.js.map +7 -0
- package/dist/src/core/context/stack-merge-resolver.js +749 -0
- package/dist/src/core/context/stack-merge-resolver.js.map +7 -0
- package/dist/src/core/context/validation.js +130 -0
- package/dist/src/core/context/validation.js.map +7 -0
- package/dist/src/core/database/batch-operations.js +384 -0
- package/dist/src/core/database/batch-operations.js.map +7 -0
- package/dist/src/core/database/connection-pool.js +330 -0
- package/dist/src/core/database/connection-pool.js.map +7 -0
- package/dist/src/core/database/database-adapter.js +60 -0
- package/dist/src/core/database/database-adapter.js.map +7 -0
- package/dist/src/core/database/migration-manager.js +614 -0
- package/dist/src/core/database/migration-manager.js.map +7 -0
- package/dist/src/core/database/query-cache.js +298 -0
- package/dist/src/core/database/query-cache.js.map +7 -0
- package/dist/src/core/database/query-router.js +430 -0
- package/dist/src/core/database/query-router.js.map +7 -0
- package/dist/src/core/database/sqlite-adapter.js +738 -0
- package/dist/src/core/database/sqlite-adapter.js.map +7 -0
- package/dist/src/core/digest/enhanced-hybrid-digest.js +277 -0
- package/dist/src/core/digest/enhanced-hybrid-digest.js.map +7 -0
- package/dist/src/core/digest/frame-digest-integration.js +176 -0
- package/dist/src/core/digest/frame-digest-integration.js.map +7 -0
- package/dist/src/core/digest/hybrid-digest-generator.js +553 -0
- package/dist/src/core/digest/hybrid-digest-generator.js.map +7 -0
- package/dist/src/core/digest/index.js +9 -0
- package/dist/src/core/digest/index.js.map +7 -0
- package/dist/src/core/digest/types.js +25 -0
- package/dist/src/core/digest/types.js.map +7 -0
- package/dist/src/core/errors/error-utils.js +208 -0
- package/dist/src/core/errors/error-utils.js.map +7 -0
- package/dist/src/core/errors/index.js +521 -0
- package/dist/src/core/errors/index.js.map +7 -0
- package/dist/src/core/errors/recovery.js +269 -0
- package/dist/src/core/errors/recovery.js.map +7 -0
- package/dist/src/core/execution/parallel-executor.js +258 -0
- package/dist/src/core/execution/parallel-executor.js.map +7 -0
- package/dist/src/core/frame/workflow-templates.js +319 -0
- package/dist/src/core/frame/workflow-templates.js.map +7 -0
- package/dist/src/core/merge/conflict-detector.js +431 -0
- package/dist/src/core/merge/conflict-detector.js.map +7 -0
- package/dist/src/core/merge/index.js +9 -0
- package/dist/src/core/merge/index.js.map +7 -0
- package/dist/src/core/merge/resolution-engine.js +558 -0
- package/dist/src/core/merge/resolution-engine.js.map +7 -0
- package/dist/src/core/merge/stack-diff.js +532 -0
- package/dist/src/core/merge/stack-diff.js.map +7 -0
- package/dist/src/core/merge/types.js +5 -0
- package/dist/src/core/merge/types.js.map +7 -0
- package/dist/src/core/merge/unified-merge-resolver.js +303 -0
- package/dist/src/core/merge/unified-merge-resolver.js.map +7 -0
- package/dist/src/core/models/fallback-monitor.js +232 -0
- package/dist/src/core/models/fallback-monitor.js.map +7 -0
- package/dist/src/core/models/model-router.js +340 -0
- package/dist/src/core/models/model-router.js.map +7 -0
- package/dist/src/core/monitoring/error-handler.js +49 -0
- package/dist/src/core/monitoring/error-handler.js.map +7 -0
- package/dist/src/core/monitoring/logger.js +202 -0
- package/dist/src/core/monitoring/logger.js.map +7 -0
- package/dist/src/core/monitoring/metrics.js +172 -0
- package/dist/src/core/monitoring/metrics.js.map +7 -0
- package/dist/src/core/monitoring/progress-tracker.js +189 -0
- package/dist/src/core/monitoring/progress-tracker.js.map +7 -0
- package/dist/src/core/monitoring/session-monitor.js +300 -0
- package/dist/src/core/monitoring/session-monitor.js.map +7 -0
- package/dist/src/core/performance/context-cache.js +273 -0
- package/dist/src/core/performance/context-cache.js.map +7 -0
- package/dist/src/core/performance/index.js +11 -0
- package/dist/src/core/performance/index.js.map +7 -0
- package/dist/src/core/performance/lazy-context-loader.js +327 -0
- package/dist/src/core/performance/lazy-context-loader.js.map +7 -0
- package/dist/src/core/performance/monitor.js +221 -0
- package/dist/src/core/performance/monitor.js.map +7 -0
- package/dist/src/core/performance/optimized-frame-context.js +345 -0
- package/dist/src/core/performance/optimized-frame-context.js.map +7 -0
- package/dist/src/core/performance/performance-benchmark.js +277 -0
- package/dist/src/core/performance/performance-benchmark.js.map +7 -0
- package/dist/src/core/performance/performance-profiler.js +370 -0
- package/dist/src/core/performance/performance-profiler.js.map +7 -0
- package/dist/src/core/performance/streaming-jsonl-parser.js +195 -0
- package/dist/src/core/performance/streaming-jsonl-parser.js.map +7 -0
- package/dist/src/core/persistence/postgres-adapter.js +349 -0
- package/dist/src/core/persistence/postgres-adapter.js.map +7 -0
- package/dist/src/core/projects/project-isolation.js +201 -0
- package/dist/src/core/projects/project-isolation.js.map +7 -0
- package/dist/src/core/projects/project-manager.js +697 -0
- package/dist/src/core/projects/project-manager.js.map +7 -0
- package/dist/src/core/query/query-parser.js +370 -0
- package/dist/src/core/query/query-parser.js.map +7 -0
- package/dist/src/core/query/query-templates.js +321 -0
- package/dist/src/core/query/query-templates.js.map +7 -0
- package/dist/src/core/retrieval/context-retriever.js +479 -0
- package/dist/src/core/retrieval/context-retriever.js.map +7 -0
- package/dist/src/core/retrieval/index.js +8 -0
- package/dist/src/core/retrieval/index.js.map +7 -0
- package/dist/src/core/retrieval/llm-context-retrieval.js +613 -0
- package/dist/src/core/retrieval/llm-context-retrieval.js.map +7 -0
- package/dist/src/core/retrieval/llm-provider.js +151 -0
- package/dist/src/core/retrieval/llm-provider.js.map +7 -0
- package/dist/src/core/retrieval/retrieval-audit.js +236 -0
- package/dist/src/core/retrieval/retrieval-audit.js.map +7 -0
- package/dist/src/core/retrieval/summary-generator.js +589 -0
- package/dist/src/core/retrieval/summary-generator.js.map +7 -0
- package/dist/src/core/retrieval/types.js +21 -0
- package/dist/src/core/retrieval/types.js.map +7 -0
- package/dist/src/core/security/index.js +35 -0
- package/dist/src/core/security/index.js.map +7 -0
- package/dist/src/core/security/input-sanitizer.js +321 -0
- package/dist/src/core/security/input-sanitizer.js.map +7 -0
- package/dist/src/core/session/clear-survival.js +465 -0
- package/dist/src/core/session/clear-survival.js.map +7 -0
- package/dist/src/core/session/enhanced-handoff.js +792 -0
- package/dist/src/core/session/enhanced-handoff.js.map +7 -0
- package/dist/src/core/session/handoff-generator.js +343 -0
- package/dist/src/core/session/handoff-generator.js.map +7 -0
- package/dist/src/core/session/index.js +15 -0
- package/dist/src/core/session/index.js.map +7 -0
- package/dist/src/core/session/session-manager.js +347 -0
- package/dist/src/core/session/session-manager.js.map +7 -0
- package/dist/src/core/skills/index.js +7 -0
- package/dist/src/core/skills/index.js.map +7 -0
- package/dist/src/core/skills/skill-storage.js +764 -0
- package/dist/src/core/skills/skill-storage.js.map +7 -0
- package/dist/src/core/skills/types.js +193 -0
- package/dist/src/core/skills/types.js.map +7 -0
- package/dist/src/core/storage/chromadb-adapter.js +354 -0
- package/dist/src/core/storage/chromadb-adapter.js.map +7 -0
- package/dist/src/core/storage/infinite-storage.js +510 -0
- package/dist/src/core/storage/infinite-storage.js.map +7 -0
- package/dist/src/core/storage/remote-storage.js +489 -0
- package/dist/src/core/storage/remote-storage.js.map +7 -0
- package/dist/src/core/storage/two-tier-storage.js +766 -0
- package/dist/src/core/storage/two-tier-storage.js.map +7 -0
- package/dist/src/core/trace/cli-trace-wrapper.js +132 -0
- package/dist/src/core/trace/cli-trace-wrapper.js.map +7 -0
- package/dist/src/core/trace/db-trace-wrapper.js +247 -0
- package/dist/src/core/trace/db-trace-wrapper.js.map +7 -0
- package/dist/src/core/trace/debug-trace.js +417 -0
- package/dist/src/core/trace/debug-trace.js.map +7 -0
- package/dist/src/core/trace/index.js +109 -0
- package/dist/src/core/trace/index.js.map +7 -0
- package/dist/src/core/trace/linear-api-wrapper.js +178 -0
- package/dist/src/core/trace/linear-api-wrapper.js.map +7 -0
- package/dist/src/core/trace/trace-detector.js +528 -0
- package/dist/src/core/trace/trace-detector.js.map +7 -0
- package/dist/src/core/trace/trace-store.js +345 -0
- package/dist/src/core/trace/trace-store.js.map +7 -0
- package/dist/src/core/trace/types.js +77 -0
- package/dist/src/core/trace/types.js.map +7 -0
- package/dist/src/core/types.js +5 -0
- package/dist/src/core/types.js.map +7 -0
- package/dist/src/core/utils/async-mutex.js +114 -0
- package/dist/src/core/utils/async-mutex.js.map +7 -0
- package/dist/src/core/utils/compression.js +83 -0
- package/dist/src/core/utils/compression.js.map +7 -0
- package/dist/src/core/utils/update-checker.js +218 -0
- package/dist/src/core/utils/update-checker.js.map +7 -0
- package/dist/src/core/worktree/worktree-manager.js +465 -0
- package/dist/src/core/worktree/worktree-manager.js.map +7 -0
- package/dist/src/daemon/daemon-config.js +149 -0
- package/dist/src/daemon/daemon-config.js.map +7 -0
- package/dist/src/daemon/services/context-service.js +122 -0
- package/dist/src/daemon/services/context-service.js.map +7 -0
- package/dist/src/daemon/services/linear-service.js +136 -0
- package/dist/src/daemon/services/linear-service.js.map +7 -0
- package/dist/src/daemon/session-daemon.js +312 -0
- package/dist/src/daemon/session-daemon.js.map +7 -0
- package/dist/src/daemon/unified-daemon.js +276 -0
- package/dist/src/daemon/unified-daemon.js.map +7 -0
- package/dist/src/features/analytics/api/analytics-api.js +287 -0
- package/dist/src/features/analytics/api/analytics-api.js.map +7 -0
- package/dist/src/features/analytics/core/analytics-service.js +282 -0
- package/dist/src/features/analytics/core/analytics-service.js.map +7 -0
- package/dist/src/features/analytics/index.js +18 -0
- package/dist/src/features/analytics/index.js.map +7 -0
- package/dist/src/features/analytics/queries/metrics-queries.js +277 -0
- package/dist/src/features/analytics/queries/metrics-queries.js.map +7 -0
- package/dist/src/features/analytics/types/metrics.js +5 -0
- package/dist/src/features/analytics/types/metrics.js.map +7 -0
- package/dist/src/features/browser/browser-mcp.js +492 -0
- package/dist/src/features/browser/browser-mcp.js.map +7 -0
- package/dist/src/features/sweep/index.js +20 -0
- package/dist/src/features/sweep/index.js.map +7 -0
- package/dist/src/features/sweep/prediction-client.js +155 -0
- package/dist/src/features/sweep/prediction-client.js.map +7 -0
- package/dist/src/features/sweep/prompt-builder.js +85 -0
- package/dist/src/features/sweep/prompt-builder.js.map +7 -0
- package/dist/src/features/sweep/pty-wrapper.js +171 -0
- package/dist/src/features/sweep/pty-wrapper.js.map +7 -0
- package/dist/src/features/sweep/state-watcher.js +87 -0
- package/dist/src/features/sweep/state-watcher.js.map +7 -0
- package/dist/src/features/sweep/status-bar.js +88 -0
- package/dist/src/features/sweep/status-bar.js.map +7 -0
- package/dist/src/features/sweep/sweep-server-manager.js +226 -0
- package/dist/src/features/sweep/sweep-server-manager.js.map +7 -0
- package/dist/src/features/sweep/tab-interceptor.js +38 -0
- package/dist/src/features/sweep/tab-interceptor.js.map +7 -0
- package/dist/src/features/sweep/types.js +18 -0
- package/dist/src/features/sweep/types.js.map +7 -0
- package/dist/src/features/tasks/linear-task-manager.js +487 -0
- package/dist/src/features/tasks/linear-task-manager.js.map +7 -0
- package/dist/src/features/tasks/task-aware-context.js +410 -0
- package/dist/src/features/tasks/task-aware-context.js.map +7 -0
- package/dist/src/features/tui/simple-monitor.js +116 -0
- package/dist/src/features/tui/simple-monitor.js.map +7 -0
- package/dist/src/features/tui/swarm-monitor.js +648 -0
- package/dist/src/features/tui/swarm-monitor.js.map +7 -0
- package/dist/src/features/web/client/stores/task-store.js +26 -0
- package/dist/src/features/web/client/stores/task-store.js.map +7 -0
- package/dist/src/features/web/server/index.js +194 -0
- package/dist/src/features/web/server/index.js.map +7 -0
- package/dist/src/hooks/auto-background.js +151 -0
- package/dist/src/hooks/auto-background.js.map +7 -0
- package/dist/src/hooks/claude-code-whatsapp-hook.js +197 -0
- package/dist/src/hooks/claude-code-whatsapp-hook.js.map +7 -0
- package/dist/src/hooks/config.js +150 -0
- package/dist/src/hooks/config.js.map +7 -0
- package/dist/src/hooks/daemon.js +364 -0
- package/dist/src/hooks/daemon.js.map +7 -0
- package/dist/src/hooks/events.js +58 -0
- package/dist/src/hooks/events.js.map +7 -0
- package/dist/src/hooks/index.js +12 -0
- package/dist/src/hooks/index.js.map +7 -0
- package/dist/src/hooks/linear-task-picker.js +186 -0
- package/dist/src/hooks/linear-task-picker.js.map +7 -0
- package/dist/src/hooks/schemas.js +197 -0
- package/dist/src/hooks/schemas.js.map +7 -0
- package/dist/src/hooks/secure-fs.js +49 -0
- package/dist/src/hooks/secure-fs.js.map +7 -0
- package/dist/src/hooks/security-logger.js +155 -0
- package/dist/src/hooks/security-logger.js.map +7 -0
- package/dist/src/hooks/session-summary.js +222 -0
- package/dist/src/hooks/session-summary.js.map +7 -0
- package/dist/src/hooks/sms-action-runner.js +371 -0
- package/dist/src/hooks/sms-action-runner.js.map +7 -0
- package/dist/src/hooks/sms-notify.js +506 -0
- package/dist/src/hooks/sms-notify.js.map +7 -0
- package/dist/src/hooks/sms-watcher.js +93 -0
- package/dist/src/hooks/sms-watcher.js.map +7 -0
- package/dist/src/hooks/sms-webhook.js +555 -0
- package/dist/src/hooks/sms-webhook.js.map +7 -0
- package/dist/src/hooks/whatsapp-commands.js +479 -0
- package/dist/src/hooks/whatsapp-commands.js.map +7 -0
- package/dist/src/hooks/whatsapp-scheduler.js +317 -0
- package/dist/src/hooks/whatsapp-scheduler.js.map +7 -0
- package/dist/src/hooks/whatsapp-sync.js +409 -0
- package/dist/src/hooks/whatsapp-sync.js.map +7 -0
- package/dist/src/index.js +25 -0
- package/dist/src/index.js.map +7 -0
- package/dist/src/integrations/anthropic/client.js +263 -0
- package/dist/src/integrations/anthropic/client.js.map +7 -0
- package/dist/src/integrations/claude-code/agent-bridge.js +768 -0
- package/dist/src/integrations/claude-code/agent-bridge.js.map +7 -0
- package/dist/src/integrations/claude-code/enhanced-pre-clear-hooks.js +459 -0
- package/dist/src/integrations/claude-code/enhanced-pre-clear-hooks.js.map +7 -0
- package/dist/src/integrations/claude-code/lifecycle-hooks.js +254 -0
- package/dist/src/integrations/claude-code/lifecycle-hooks.js.map +7 -0
- package/dist/src/integrations/claude-code/post-task-hooks.js +545 -0
- package/dist/src/integrations/claude-code/post-task-hooks.js.map +7 -0
- package/dist/src/integrations/claude-code/subagent-client-stub.js +20 -0
- package/dist/src/integrations/claude-code/subagent-client-stub.js.map +7 -0
- package/dist/src/integrations/claude-code/subagent-client.js +511 -0
- package/dist/src/integrations/claude-code/subagent-client.js.map +7 -0
- package/dist/src/integrations/claude-code/task-coordinator.js +360 -0
- package/dist/src/integrations/claude-code/task-coordinator.js.map +7 -0
- package/dist/src/integrations/linear/auth.js +337 -0
- package/dist/src/integrations/linear/auth.js.map +7 -0
- package/dist/src/integrations/linear/auto-sync.js +258 -0
- package/dist/src/integrations/linear/auto-sync.js.map +7 -0
- package/dist/src/integrations/linear/client.js +634 -0
- package/dist/src/integrations/linear/client.js.map +7 -0
- package/dist/src/integrations/linear/config.js +130 -0
- package/dist/src/integrations/linear/config.js.map +7 -0
- package/dist/src/integrations/linear/migration.js +361 -0
- package/dist/src/integrations/linear/migration.js.map +7 -0
- package/dist/src/integrations/linear/oauth-server.js +454 -0
- package/dist/src/integrations/linear/oauth-server.js.map +7 -0
- package/dist/src/integrations/linear/rest-client.js +213 -0
- package/dist/src/integrations/linear/rest-client.js.map +7 -0
- package/dist/src/integrations/linear/sync-manager.js +236 -0
- package/dist/src/integrations/linear/sync-manager.js.map +7 -0
- package/dist/src/integrations/linear/sync-service.js +231 -0
- package/dist/src/integrations/linear/sync-service.js.map +7 -0
- package/dist/src/integrations/linear/sync.js +782 -0
- package/dist/src/integrations/linear/sync.js.map +7 -0
- package/dist/src/integrations/linear/types.js +5 -0
- package/dist/src/integrations/linear/types.js.map +7 -0
- package/dist/src/integrations/linear/unified-sync.js +589 -0
- package/dist/src/integrations/linear/unified-sync.js.map +7 -0
- package/dist/src/integrations/linear/webhook-handler.js +219 -0
- package/dist/src/integrations/linear/webhook-handler.js.map +7 -0
- package/dist/src/integrations/linear/webhook-server.js +218 -0
- package/dist/src/integrations/linear/webhook-server.js.map +7 -0
- package/dist/src/integrations/linear/webhook.js +291 -0
- package/dist/src/integrations/linear/webhook.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/code-execution-handlers.js +266 -0
- package/dist/src/integrations/mcp/handlers/code-execution-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/context-handlers.js +257 -0
- package/dist/src/integrations/mcp/handlers/context-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/discovery-handlers.js +497 -0
- package/dist/src/integrations/mcp/handlers/discovery-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/index.js +166 -0
- package/dist/src/integrations/mcp/handlers/index.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/linear-handlers.js +247 -0
- package/dist/src/integrations/mcp/handlers/linear-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/skill-handlers.js +529 -0
- package/dist/src/integrations/mcp/handlers/skill-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/task-handlers.js +239 -0
- package/dist/src/integrations/mcp/handlers/task-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/handlers/trace-handlers.js +308 -0
- package/dist/src/integrations/mcp/handlers/trace-handlers.js.map +7 -0
- package/dist/src/integrations/mcp/index.js +23 -0
- package/dist/src/integrations/mcp/index.js.map +7 -0
- package/dist/src/integrations/mcp/middleware/tool-scoring.js +356 -0
- package/dist/src/integrations/mcp/middleware/tool-scoring.js.map +7 -0
- package/dist/src/integrations/mcp/refactored-server.js +374 -0
- package/dist/src/integrations/mcp/refactored-server.js.map +7 -0
- package/dist/src/integrations/mcp/remote-server.js +682 -0
- package/dist/src/integrations/mcp/remote-server.js.map +7 -0
- package/dist/src/integrations/mcp/schemas.js +147 -0
- package/dist/src/integrations/mcp/schemas.js.map +7 -0
- package/dist/src/integrations/mcp/server.js +1975 -0
- package/dist/src/integrations/mcp/server.js.map +7 -0
- package/dist/src/integrations/mcp/tool-definitions-code.js +125 -0
- package/dist/src/integrations/mcp/tool-definitions-code.js.map +7 -0
- package/dist/src/integrations/mcp/tool-definitions.js +702 -0
- package/dist/src/integrations/mcp/tool-definitions.js.map +7 -0
- package/dist/src/integrations/ralph/bridge/ralph-stackmemory-bridge.js +860 -0
- package/dist/src/integrations/ralph/bridge/ralph-stackmemory-bridge.js.map +7 -0
- package/dist/src/integrations/ralph/context/context-budget-manager.js +301 -0
- package/dist/src/integrations/ralph/context/context-budget-manager.js.map +7 -0
- package/dist/src/integrations/ralph/context/stackmemory-context-loader.js +360 -0
- package/dist/src/integrations/ralph/context/stackmemory-context-loader.js.map +7 -0
- package/dist/src/integrations/ralph/coordination/enhanced-coordination.js +410 -0
- package/dist/src/integrations/ralph/coordination/enhanced-coordination.js.map +7 -0
- package/dist/src/integrations/ralph/index.js +18 -0
- package/dist/src/integrations/ralph/index.js.map +7 -0
- package/dist/src/integrations/ralph/learning/pattern-learner.js +401 -0
- package/dist/src/integrations/ralph/learning/pattern-learner.js.map +7 -0
- package/dist/src/integrations/ralph/lifecycle/iteration-lifecycle.js +448 -0
- package/dist/src/integrations/ralph/lifecycle/iteration-lifecycle.js.map +7 -0
- package/dist/src/integrations/ralph/monitoring/swarm-dashboard.js +294 -0
- package/dist/src/integrations/ralph/monitoring/swarm-dashboard.js.map +7 -0
- package/dist/src/integrations/ralph/monitoring/swarm-registry.js +108 -0
- package/dist/src/integrations/ralph/monitoring/swarm-registry.js.map +7 -0
- package/dist/src/integrations/ralph/orchestration/multi-loop-orchestrator.js +463 -0
- package/dist/src/integrations/ralph/orchestration/multi-loop-orchestrator.js.map +7 -0
- package/dist/src/integrations/ralph/patterns/compounding-engineering-pattern.js +400 -0
- package/dist/src/integrations/ralph/patterns/compounding-engineering-pattern.js.map +7 -0
- package/dist/src/integrations/ralph/patterns/extended-coherence-sessions.js +473 -0
- package/dist/src/integrations/ralph/patterns/extended-coherence-sessions.js.map +7 -0
- package/dist/src/integrations/ralph/patterns/oracle-worker-pattern.js +388 -0
- package/dist/src/integrations/ralph/patterns/oracle-worker-pattern.js.map +7 -0
- package/dist/src/integrations/ralph/performance/performance-optimizer.js +358 -0
- package/dist/src/integrations/ralph/performance/performance-optimizer.js.map +7 -0
- package/dist/src/integrations/ralph/recovery/crash-recovery.js +462 -0
- package/dist/src/integrations/ralph/recovery/crash-recovery.js.map +7 -0
- package/dist/src/integrations/ralph/state/state-reconciler.js +404 -0
- package/dist/src/integrations/ralph/state/state-reconciler.js.map +7 -0
- package/dist/src/integrations/ralph/swarm/git-workflow-manager.js +428 -0
- package/dist/src/integrations/ralph/swarm/git-workflow-manager.js.map +7 -0
- package/dist/src/integrations/ralph/swarm/swarm-coordinator.js +996 -0
- package/dist/src/integrations/ralph/swarm/swarm-coordinator.js.map +7 -0
- package/dist/src/integrations/ralph/types.js +5 -0
- package/dist/src/integrations/ralph/types.js.map +7 -0
- package/dist/src/integrations/ralph/visualization/ralph-debugger.js +585 -0
- package/dist/src/integrations/ralph/visualization/ralph-debugger.js.map +7 -0
- package/dist/src/mcp/stackmemory-mcp-server.js +554 -0
- package/dist/src/mcp/stackmemory-mcp-server.js.map +7 -0
- package/dist/src/middleware/exponential-rate-limiter.js +289 -0
- package/dist/src/middleware/exponential-rate-limiter.js.map +7 -0
- package/dist/src/models/user.model.js +358 -0
- package/dist/src/models/user.model.js.map +7 -0
- package/dist/src/servers/production/auth-middleware.js +528 -0
- package/dist/src/servers/production/auth-middleware.js.map +7 -0
- package/dist/src/services/config-service.js +65 -0
- package/dist/src/services/config-service.js.map +7 -0
- package/dist/src/services/context-service.js +194 -0
- package/dist/src/services/context-service.js.map +7 -0
- package/dist/src/skills/api-discovery.js +354 -0
- package/dist/src/skills/api-discovery.js.map +7 -0
- package/dist/src/skills/api-skill.js +475 -0
- package/dist/src/skills/api-skill.js.map +7 -0
- package/dist/src/skills/claude-skills.js +1061 -0
- package/dist/src/skills/claude-skills.js.map +7 -0
- package/dist/src/skills/dashboard-launcher.js +216 -0
- package/dist/src/skills/dashboard-launcher.js.map +7 -0
- package/dist/src/skills/recursive-agent-orchestrator.js +575 -0
- package/dist/src/skills/recursive-agent-orchestrator.js.map +7 -0
- package/dist/src/skills/repo-ingestion-skill.js +609 -0
- package/dist/src/skills/repo-ingestion-skill.js.map +7 -0
- package/dist/src/skills/unified-rlm-orchestrator.js +404 -0
- package/dist/src/skills/unified-rlm-orchestrator.js.map +7 -0
- package/dist/src/types/task.js +5 -0
- package/dist/src/types/task.js.map +7 -0
- package/dist/src/utils/env.js +50 -0
- package/dist/src/utils/env.js.map +7 -0
- package/dist/src/utils/formatting.js +62 -0
- package/dist/src/utils/formatting.js.map +7 -0
- package/dist/src/utils/process-cleanup.js +136 -0
- package/dist/src/utils/process-cleanup.js.map +7 -0
- package/package.json +3 -3
- package/scripts/initialize.ts +16 -7
- package/scripts/install.sh +14 -62
- package/scripts/status.ts +111 -46
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { fileURLToPath as __fileURLToPath } from 'url';
|
|
2
|
+
import { dirname as __pathDirname } from 'path';
|
|
3
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
4
|
+
const __dirname = __pathDirname(__filename);
|
|
5
|
+
import { Command } from "commander";
|
|
6
|
+
import { execSync, execFileSync, spawn } from "child_process";
|
|
7
|
+
import {
|
|
8
|
+
existsSync,
|
|
9
|
+
readFileSync,
|
|
10
|
+
writeFileSync,
|
|
11
|
+
mkdirSync,
|
|
12
|
+
readdirSync,
|
|
13
|
+
unlinkSync
|
|
14
|
+
} from "fs";
|
|
15
|
+
import { join } from "path";
|
|
16
|
+
import { homedir } from "os";
|
|
17
|
+
import Database from "better-sqlite3";
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
import { FrameManager } from "../../core/context/index.js";
|
|
20
|
+
import { LinearTaskManager } from "../../features/tasks/linear-task-manager.js";
|
|
21
|
+
import { logger } from "../../core/monitoring/logger.js";
|
|
22
|
+
import { EnhancedHandoffGenerator } from "../../core/session/enhanced-handoff.js";
|
|
23
|
+
const countTokens = (text) => Math.ceil(text.length / 3.5);
|
|
24
|
+
const MAX_HANDOFF_VERSIONS = 10;
|
|
25
|
+
function saveVersionedHandoff(projectRoot, branch, content) {
|
|
26
|
+
const handoffsDir = join(projectRoot, ".stackmemory", "handoffs");
|
|
27
|
+
if (!existsSync(handoffsDir)) {
|
|
28
|
+
mkdirSync(handoffsDir, { recursive: true });
|
|
29
|
+
}
|
|
30
|
+
const now = /* @__PURE__ */ new Date();
|
|
31
|
+
const timestamp = now.toISOString().slice(0, 16).replace(/[T:]/g, "-");
|
|
32
|
+
const safeBranch = branch.replace(/[^a-zA-Z0-9-]/g, "-").slice(0, 30);
|
|
33
|
+
const filename = `${timestamp}-${safeBranch}.md`;
|
|
34
|
+
const versionedPath = join(handoffsDir, filename);
|
|
35
|
+
writeFileSync(versionedPath, content);
|
|
36
|
+
try {
|
|
37
|
+
const files = readdirSync(handoffsDir).filter((f) => f.endsWith(".md")).sort().reverse();
|
|
38
|
+
for (const oldFile of files.slice(MAX_HANDOFF_VERSIONS)) {
|
|
39
|
+
unlinkSync(join(handoffsDir, oldFile));
|
|
40
|
+
}
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
return versionedPath;
|
|
44
|
+
}
|
|
45
|
+
const CommitMessageSchema = z.string().min(1, "Commit message cannot be empty").max(200, "Commit message too long").regex(
|
|
46
|
+
/^[a-zA-Z0-9\s\-_.,:()\/\[\]]+$/,
|
|
47
|
+
"Commit message contains invalid characters"
|
|
48
|
+
).refine(
|
|
49
|
+
(msg) => !msg.includes("\n"),
|
|
50
|
+
"Commit message cannot contain newlines"
|
|
51
|
+
).refine(
|
|
52
|
+
(msg) => !msg.includes('"'),
|
|
53
|
+
"Commit message cannot contain double quotes"
|
|
54
|
+
).refine(
|
|
55
|
+
(msg) => !msg.includes("`"),
|
|
56
|
+
"Commit message cannot contain backticks"
|
|
57
|
+
);
|
|
58
|
+
function createCaptureCommand() {
|
|
59
|
+
const cmd = new Command("capture");
|
|
60
|
+
cmd.description("Commit current work and generate a handoff prompt").option("-m, --message <message>", "Custom commit message").option("--no-commit", "Skip git commit").option("--copy", "Copy the handoff prompt to clipboard").option("--basic", "Use basic handoff format instead of enhanced").option("--verbose", "Use verbose handoff format (full markdown)").option("--ultra", "Use ultra-compact pipe-delimited format").option(
|
|
61
|
+
"--format <format>",
|
|
62
|
+
"Output format: auto, ultra, compact, verbose (default: auto)"
|
|
63
|
+
).action(async (options) => {
|
|
64
|
+
try {
|
|
65
|
+
const projectRoot = process.cwd();
|
|
66
|
+
const dbPath = join(projectRoot, ".stackmemory", "context.db");
|
|
67
|
+
let gitStatus = "";
|
|
68
|
+
let hasChanges = false;
|
|
69
|
+
try {
|
|
70
|
+
gitStatus = execSync("git status --short", {
|
|
71
|
+
encoding: "utf-8",
|
|
72
|
+
cwd: projectRoot,
|
|
73
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
74
|
+
});
|
|
75
|
+
hasChanges = gitStatus.trim().length > 0;
|
|
76
|
+
} catch {
|
|
77
|
+
}
|
|
78
|
+
if (hasChanges && options.commit !== false) {
|
|
79
|
+
try {
|
|
80
|
+
const currentBranch = execSync("git rev-parse --abbrev-ref HEAD", {
|
|
81
|
+
encoding: "utf-8",
|
|
82
|
+
cwd: projectRoot
|
|
83
|
+
}).trim();
|
|
84
|
+
execSync("git add -A", { cwd: projectRoot });
|
|
85
|
+
let commitMessage = options.message || `chore: handoff checkpoint on ${currentBranch}`;
|
|
86
|
+
try {
|
|
87
|
+
commitMessage = CommitMessageSchema.parse(commitMessage);
|
|
88
|
+
} catch (validationError) {
|
|
89
|
+
console.error(
|
|
90
|
+
"\u274C Invalid commit message:",
|
|
91
|
+
validationError.message
|
|
92
|
+
);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
execFileSync("git", ["commit", "-m", commitMessage], {
|
|
96
|
+
cwd: projectRoot,
|
|
97
|
+
stdio: "inherit"
|
|
98
|
+
});
|
|
99
|
+
console.log(`\u2705 Committed changes: "${commitMessage}"`);
|
|
100
|
+
console.log(` Branch: ${currentBranch}`);
|
|
101
|
+
} catch (err) {
|
|
102
|
+
console.error(
|
|
103
|
+
"\u274C Failed to commit changes:",
|
|
104
|
+
err.message
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
} else if (!hasChanges) {
|
|
108
|
+
console.log("\u2139\uFE0F No changes to commit");
|
|
109
|
+
}
|
|
110
|
+
let contextSummary = "";
|
|
111
|
+
let tasksSummary = "";
|
|
112
|
+
let recentWork = "";
|
|
113
|
+
if (existsSync(dbPath)) {
|
|
114
|
+
const db = new Database(dbPath);
|
|
115
|
+
const frameManager = new FrameManager(db, "cli-project");
|
|
116
|
+
const activeFrames = frameManager.getActiveFramePath();
|
|
117
|
+
if (activeFrames.length > 0) {
|
|
118
|
+
contextSummary = "Active context frames:\n";
|
|
119
|
+
activeFrames.forEach((frame) => {
|
|
120
|
+
contextSummary += ` - ${frame.name} [${frame.type}]
|
|
121
|
+
`;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
const taskStore = new LinearTaskManager(projectRoot, db);
|
|
125
|
+
const activeTasks = taskStore.getActiveTasks();
|
|
126
|
+
const inProgress = activeTasks.filter(
|
|
127
|
+
(t) => t.status === "in_progress"
|
|
128
|
+
);
|
|
129
|
+
const todo = activeTasks.filter((t) => t.status === "pending");
|
|
130
|
+
const recentlyCompleted = activeTasks.filter((t) => t.status === "completed" && t.completed_at).sort(
|
|
131
|
+
(a, b) => (b.completed_at || 0) - (a.completed_at || 0)
|
|
132
|
+
).slice(0, 3);
|
|
133
|
+
if (inProgress.length > 0 || todo.length > 0) {
|
|
134
|
+
tasksSummary = "\nTasks:\n";
|
|
135
|
+
if (inProgress.length > 0) {
|
|
136
|
+
tasksSummary += "In Progress:\n";
|
|
137
|
+
inProgress.forEach((t) => {
|
|
138
|
+
const externalId = t.external_refs?.linear?.id;
|
|
139
|
+
tasksSummary += ` - ${t.title}${externalId ? ` [${externalId}]` : ""}
|
|
140
|
+
`;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
if (todo.length > 0) {
|
|
144
|
+
tasksSummary += "TODO:\n";
|
|
145
|
+
todo.slice(0, 5).forEach((t) => {
|
|
146
|
+
const externalId = t.external_refs?.linear?.id;
|
|
147
|
+
tasksSummary += ` - ${t.title}${externalId ? ` [${externalId}]` : ""}
|
|
148
|
+
`;
|
|
149
|
+
});
|
|
150
|
+
if (todo.length > 5) {
|
|
151
|
+
tasksSummary += ` ... and ${todo.length - 5} more
|
|
152
|
+
`;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (recentlyCompleted.length > 0) {
|
|
157
|
+
recentWork = "\nRecently Completed:\n";
|
|
158
|
+
recentlyCompleted.forEach((t) => {
|
|
159
|
+
recentWork += ` \u2713 ${t.title}
|
|
160
|
+
`;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
const recentEvents = db.prepare(
|
|
164
|
+
`
|
|
165
|
+
SELECT event_type as type, payload as data, datetime(ts, 'unixepoch') as time
|
|
166
|
+
FROM events
|
|
167
|
+
ORDER BY ts DESC
|
|
168
|
+
LIMIT 5
|
|
169
|
+
`
|
|
170
|
+
).all();
|
|
171
|
+
if (recentEvents.length > 0) {
|
|
172
|
+
recentWork += "\nRecent Activity:\n";
|
|
173
|
+
recentEvents.forEach((event) => {
|
|
174
|
+
const data = JSON.parse(event.data);
|
|
175
|
+
recentWork += ` - ${event.type}: ${data.message || data.name || "activity"}
|
|
176
|
+
`;
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
db.close();
|
|
180
|
+
}
|
|
181
|
+
let gitInfo = "";
|
|
182
|
+
try {
|
|
183
|
+
const branch2 = execSync("git rev-parse --abbrev-ref HEAD", {
|
|
184
|
+
encoding: "utf-8",
|
|
185
|
+
cwd: projectRoot,
|
|
186
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
187
|
+
}).trim();
|
|
188
|
+
const lastCommit = execSync("git log -1 --oneline", {
|
|
189
|
+
encoding: "utf-8",
|
|
190
|
+
cwd: projectRoot,
|
|
191
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
192
|
+
}).trim();
|
|
193
|
+
gitInfo = `
|
|
194
|
+
Git Status:
|
|
195
|
+
Branch: ${branch2}
|
|
196
|
+
Last commit: ${lastCommit}
|
|
197
|
+
`;
|
|
198
|
+
} catch {
|
|
199
|
+
}
|
|
200
|
+
let notes = "";
|
|
201
|
+
const notesPath = join(projectRoot, ".stackmemory", "handoff.md");
|
|
202
|
+
if (existsSync(notesPath)) {
|
|
203
|
+
const handoffNotes = readFileSync(notesPath, "utf-8");
|
|
204
|
+
if (handoffNotes.trim()) {
|
|
205
|
+
notes = `
|
|
206
|
+
Notes from previous handoff:
|
|
207
|
+
${handoffNotes}
|
|
208
|
+
`;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
let handoffPrompt;
|
|
212
|
+
if (options.basic) {
|
|
213
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
214
|
+
handoffPrompt = `# Session Handoff - ${timestamp}
|
|
215
|
+
|
|
216
|
+
## Project: ${projectRoot.split("/").pop()}
|
|
217
|
+
|
|
218
|
+
${gitInfo}
|
|
219
|
+
${contextSummary}
|
|
220
|
+
${tasksSummary}
|
|
221
|
+
${recentWork}
|
|
222
|
+
${notes}
|
|
223
|
+
|
|
224
|
+
## Continue from here:
|
|
225
|
+
|
|
226
|
+
1. Run \`stackmemory status\` to check the current state
|
|
227
|
+
2. Review any in-progress tasks above
|
|
228
|
+
3. Check for any uncommitted changes with \`git status\`
|
|
229
|
+
4. Resume work on the active context
|
|
230
|
+
|
|
231
|
+
## Quick Commands:
|
|
232
|
+
- \`stackmemory context load --recent\` - Load recent context
|
|
233
|
+
- \`stackmemory task list --state in_progress\` - Show in-progress tasks
|
|
234
|
+
- \`stackmemory linear sync\` - Sync with Linear if configured
|
|
235
|
+
- \`stackmemory log recent\` - View recent activity
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
Generated by stackmemory capture at ${timestamp}
|
|
239
|
+
`;
|
|
240
|
+
} else {
|
|
241
|
+
const enhancedGenerator = new EnhancedHandoffGenerator(projectRoot);
|
|
242
|
+
const enhancedHandoff = await enhancedGenerator.generate();
|
|
243
|
+
let format = "auto";
|
|
244
|
+
if (options.verbose) {
|
|
245
|
+
format = "verbose";
|
|
246
|
+
} else if (options.ultra) {
|
|
247
|
+
format = "ultra";
|
|
248
|
+
} else if (options.format) {
|
|
249
|
+
format = options.format;
|
|
250
|
+
}
|
|
251
|
+
if (format === "auto") {
|
|
252
|
+
const selectedFormat = enhancedGenerator.selectFormat(enhancedHandoff);
|
|
253
|
+
handoffPrompt = enhancedGenerator.toAutoFormat(enhancedHandoff);
|
|
254
|
+
const actualTokens = countTokens(handoffPrompt);
|
|
255
|
+
console.log(
|
|
256
|
+
`Estimated tokens: ~${actualTokens} (${selectedFormat}, auto-selected)`
|
|
257
|
+
);
|
|
258
|
+
} else if (format === "ultra") {
|
|
259
|
+
handoffPrompt = enhancedGenerator.toUltraCompact(enhancedHandoff);
|
|
260
|
+
const actualTokens = countTokens(handoffPrompt);
|
|
261
|
+
console.log(`Estimated tokens: ~${actualTokens} (ultra-compact)`);
|
|
262
|
+
} else if (format === "verbose") {
|
|
263
|
+
handoffPrompt = enhancedGenerator.toMarkdown(enhancedHandoff);
|
|
264
|
+
const actualTokens = countTokens(handoffPrompt);
|
|
265
|
+
console.log(`Estimated tokens: ~${actualTokens} (verbose)`);
|
|
266
|
+
} else {
|
|
267
|
+
handoffPrompt = enhancedGenerator.toCompact(enhancedHandoff);
|
|
268
|
+
const actualTokens = countTokens(handoffPrompt);
|
|
269
|
+
console.log(`Estimated tokens: ~${actualTokens} (compact)`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
const stackmemoryDir = join(projectRoot, ".stackmemory");
|
|
273
|
+
if (!existsSync(stackmemoryDir)) {
|
|
274
|
+
mkdirSync(stackmemoryDir, { recursive: true });
|
|
275
|
+
}
|
|
276
|
+
const handoffPath = join(stackmemoryDir, "last-handoff.md");
|
|
277
|
+
writeFileSync(handoffPath, handoffPrompt);
|
|
278
|
+
let branch = "unknown";
|
|
279
|
+
try {
|
|
280
|
+
branch = execSync("git rev-parse --abbrev-ref HEAD", {
|
|
281
|
+
encoding: "utf-8",
|
|
282
|
+
cwd: projectRoot,
|
|
283
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
284
|
+
}).trim();
|
|
285
|
+
} catch {
|
|
286
|
+
}
|
|
287
|
+
const versionedPath = saveVersionedHandoff(
|
|
288
|
+
projectRoot,
|
|
289
|
+
branch,
|
|
290
|
+
handoffPrompt
|
|
291
|
+
);
|
|
292
|
+
console.log(
|
|
293
|
+
`Versioned: ${versionedPath.split("/").slice(-2).join("/")}`
|
|
294
|
+
);
|
|
295
|
+
console.log("\n" + "=".repeat(60));
|
|
296
|
+
console.log(handoffPrompt);
|
|
297
|
+
console.log("=".repeat(60));
|
|
298
|
+
if (options.copy) {
|
|
299
|
+
try {
|
|
300
|
+
if (process.platform === "darwin") {
|
|
301
|
+
execFileSync("pbcopy", [], {
|
|
302
|
+
input: handoffPrompt,
|
|
303
|
+
cwd: projectRoot
|
|
304
|
+
});
|
|
305
|
+
} else if (process.platform === "win32") {
|
|
306
|
+
execFileSync("clip", [], {
|
|
307
|
+
input: handoffPrompt,
|
|
308
|
+
cwd: projectRoot
|
|
309
|
+
});
|
|
310
|
+
} else {
|
|
311
|
+
execFileSync("xclip", ["-selection", "clipboard"], {
|
|
312
|
+
input: handoffPrompt,
|
|
313
|
+
cwd: projectRoot
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
console.log("\n\u2705 Handoff prompt copied to clipboard!");
|
|
317
|
+
} catch {
|
|
318
|
+
console.log("\n\u26A0\uFE0F Could not copy to clipboard");
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
console.log(`
|
|
322
|
+
\u{1F4BE} Handoff saved to: ${handoffPath}`);
|
|
323
|
+
console.log("\u{1F4CB} Use this prompt when starting your next session");
|
|
324
|
+
} catch (error) {
|
|
325
|
+
logger.error("Capture command failed", error);
|
|
326
|
+
console.error("\u274C Capture failed:", error.message);
|
|
327
|
+
process.exit(1);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
return cmd;
|
|
331
|
+
}
|
|
332
|
+
function createRestoreCommand() {
|
|
333
|
+
const cmd = new Command("restore");
|
|
334
|
+
cmd.description("Restore context from last handoff").option("--no-copy", "Do not copy prompt to clipboard").action(async (options) => {
|
|
335
|
+
try {
|
|
336
|
+
const projectRoot = process.cwd();
|
|
337
|
+
const handoffPath = join(
|
|
338
|
+
projectRoot,
|
|
339
|
+
".stackmemory",
|
|
340
|
+
"last-handoff.md"
|
|
341
|
+
);
|
|
342
|
+
const metaPath = join(
|
|
343
|
+
process.env["HOME"] || "~",
|
|
344
|
+
".stackmemory",
|
|
345
|
+
"handoffs",
|
|
346
|
+
"last-handoff-meta.json"
|
|
347
|
+
);
|
|
348
|
+
if (!existsSync(handoffPath)) {
|
|
349
|
+
console.log("\u274C No handoff found in this project");
|
|
350
|
+
console.log('\u{1F4A1} Run "stackmemory capture" to create one');
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const handoffPrompt = readFileSync(handoffPath, "utf-8");
|
|
354
|
+
console.log("\n" + "=".repeat(60));
|
|
355
|
+
console.log("\u{1F4CB} RESTORED HANDOFF");
|
|
356
|
+
console.log("=".repeat(60));
|
|
357
|
+
console.log(handoffPrompt);
|
|
358
|
+
console.log("=".repeat(60));
|
|
359
|
+
if (existsSync(metaPath)) {
|
|
360
|
+
const metadata = JSON.parse(readFileSync(metaPath, "utf-8"));
|
|
361
|
+
console.log("\n\u{1F4CA} Session Metadata:");
|
|
362
|
+
console.log(` Timestamp: ${metadata.timestamp}`);
|
|
363
|
+
console.log(` Reason: ${metadata.reason}`);
|
|
364
|
+
console.log(` Duration: ${metadata.session_duration}s`);
|
|
365
|
+
console.log(` Command: ${metadata.command}`);
|
|
366
|
+
}
|
|
367
|
+
try {
|
|
368
|
+
const gitStatus = execSync("git status --short", {
|
|
369
|
+
encoding: "utf-8",
|
|
370
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
371
|
+
}).trim();
|
|
372
|
+
if (gitStatus) {
|
|
373
|
+
console.log("\n Current uncommitted changes:");
|
|
374
|
+
console.log(gitStatus);
|
|
375
|
+
}
|
|
376
|
+
} catch {
|
|
377
|
+
}
|
|
378
|
+
if (options.copy !== false) {
|
|
379
|
+
try {
|
|
380
|
+
if (process.platform === "darwin") {
|
|
381
|
+
execFileSync("pbcopy", [], {
|
|
382
|
+
input: handoffPrompt,
|
|
383
|
+
cwd: projectRoot
|
|
384
|
+
});
|
|
385
|
+
} else if (process.platform === "win32") {
|
|
386
|
+
execFileSync("clip", [], {
|
|
387
|
+
input: handoffPrompt,
|
|
388
|
+
cwd: projectRoot
|
|
389
|
+
});
|
|
390
|
+
} else {
|
|
391
|
+
execFileSync("xclip", ["-selection", "clipboard"], {
|
|
392
|
+
input: handoffPrompt,
|
|
393
|
+
cwd: projectRoot
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
console.log("\n\u2705 Handoff prompt copied to clipboard!");
|
|
397
|
+
} catch {
|
|
398
|
+
console.log("\n\u26A0\uFE0F Could not copy to clipboard");
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
console.log("\n\u{1F680} Ready to continue where you left off!");
|
|
402
|
+
} catch (error) {
|
|
403
|
+
logger.error("Restore failed", error);
|
|
404
|
+
console.error("\u274C Restore failed:", error.message);
|
|
405
|
+
process.exit(1);
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
return cmd;
|
|
409
|
+
}
|
|
410
|
+
async function captureHandoff(reason, exitCode, wrappedCommand, sessionStart, quiet) {
|
|
411
|
+
const projectRoot = process.cwd();
|
|
412
|
+
const handoffDir = join(homedir(), ".stackmemory", "handoffs");
|
|
413
|
+
const logFile = join(handoffDir, "auto-handoff.log");
|
|
414
|
+
if (!existsSync(handoffDir)) {
|
|
415
|
+
mkdirSync(handoffDir, { recursive: true });
|
|
416
|
+
}
|
|
417
|
+
const logMessage = (msg) => {
|
|
418
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 19).replace("T", " ");
|
|
419
|
+
const logLine = `[${timestamp}] ${msg}
|
|
420
|
+
`;
|
|
421
|
+
try {
|
|
422
|
+
writeFileSync(logFile, logLine, { flag: "a" });
|
|
423
|
+
} catch {
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
if (!quiet) {
|
|
427
|
+
console.log("\nCapturing handoff context...");
|
|
428
|
+
}
|
|
429
|
+
logMessage(`Capturing handoff: reason=${reason}, exit_code=${exitCode}`);
|
|
430
|
+
try {
|
|
431
|
+
execFileSync(
|
|
432
|
+
process.execPath,
|
|
433
|
+
[process.argv[1], "capture", "--no-commit"],
|
|
434
|
+
{
|
|
435
|
+
cwd: projectRoot,
|
|
436
|
+
stdio: quiet ? "pipe" : "inherit"
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
const metadata = {
|
|
440
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
441
|
+
reason,
|
|
442
|
+
exit_code: exitCode,
|
|
443
|
+
command: wrappedCommand,
|
|
444
|
+
pid: process.pid,
|
|
445
|
+
cwd: projectRoot,
|
|
446
|
+
user: process.env["USER"] || "unknown",
|
|
447
|
+
session_duration: Math.floor((Date.now() - sessionStart) / 1e3)
|
|
448
|
+
};
|
|
449
|
+
const metadataPath = join(handoffDir, "last-handoff-meta.json");
|
|
450
|
+
writeFileSync(metadataPath, JSON.stringify(metadata, null, 2));
|
|
451
|
+
if (!quiet) {
|
|
452
|
+
console.log("Handoff captured successfully");
|
|
453
|
+
logMessage(`Handoff captured: ${metadataPath}`);
|
|
454
|
+
console.log("\nSession Summary:");
|
|
455
|
+
console.log(` Duration: ${metadata.session_duration} seconds`);
|
|
456
|
+
console.log(` Exit reason: ${reason}`);
|
|
457
|
+
try {
|
|
458
|
+
const gitStatus = execSync("git status --short", {
|
|
459
|
+
encoding: "utf-8",
|
|
460
|
+
cwd: projectRoot,
|
|
461
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
462
|
+
}).trim();
|
|
463
|
+
if (gitStatus) {
|
|
464
|
+
console.log("\nYou have uncommitted changes");
|
|
465
|
+
console.log(' Run "git status" to review');
|
|
466
|
+
}
|
|
467
|
+
} catch {
|
|
468
|
+
}
|
|
469
|
+
console.log('\nRun "stackmemory restore" in your next session');
|
|
470
|
+
}
|
|
471
|
+
} catch (err) {
|
|
472
|
+
if (!quiet) {
|
|
473
|
+
console.error("Failed to capture handoff:", err.message);
|
|
474
|
+
}
|
|
475
|
+
logMessage(`ERROR: ${err.message}`);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function createAutoCaptureCommand() {
|
|
479
|
+
const cmd = new Command("auto-capture");
|
|
480
|
+
cmd.description("Wrap a command with automatic handoff capture on termination").option("-a, --auto", "Auto-capture on normal exit (no prompt)").option("-q, --quiet", "Suppress output").option("-t, --tag <tag>", "Tag this session").argument("[command...]", "Command to wrap with auto-handoff").action(async (commandArgs, options) => {
|
|
481
|
+
const autoCapture = options.auto || false;
|
|
482
|
+
const quiet = options.quiet || false;
|
|
483
|
+
const tag = options.tag || "";
|
|
484
|
+
if (!commandArgs || commandArgs.length === 0) {
|
|
485
|
+
console.log("StackMemory Auto-Handoff");
|
|
486
|
+
console.log("-".repeat(50));
|
|
487
|
+
console.log("");
|
|
488
|
+
console.log(
|
|
489
|
+
"Wraps a command with automatic handoff capture on termination."
|
|
490
|
+
);
|
|
491
|
+
console.log("");
|
|
492
|
+
console.log("Usage:");
|
|
493
|
+
console.log(" stackmemory auto-capture [options] <command> [args...]");
|
|
494
|
+
console.log("");
|
|
495
|
+
console.log("Examples:");
|
|
496
|
+
console.log(" stackmemory auto-capture claude");
|
|
497
|
+
console.log(" stackmemory auto-capture -a npm run dev");
|
|
498
|
+
console.log(' stackmemory auto-capture -t "feature-work" vim');
|
|
499
|
+
console.log("");
|
|
500
|
+
console.log("Options:");
|
|
501
|
+
console.log(
|
|
502
|
+
" -a, --auto Auto-capture on normal exit (no prompt)"
|
|
503
|
+
);
|
|
504
|
+
console.log(" -q, --quiet Suppress output");
|
|
505
|
+
console.log(" -t, --tag <tag> Tag this session");
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
const wrappedCommand = commandArgs.join(" ");
|
|
509
|
+
const sessionStart = Date.now();
|
|
510
|
+
let capturedAlready = false;
|
|
511
|
+
if (!quiet) {
|
|
512
|
+
console.log("StackMemory Auto-Handoff Wrapper");
|
|
513
|
+
console.log(`Wrapping: ${wrappedCommand}`);
|
|
514
|
+
if (tag) {
|
|
515
|
+
console.log(`Tag: ${tag}`);
|
|
516
|
+
}
|
|
517
|
+
console.log("Handoff will be captured on termination");
|
|
518
|
+
console.log("");
|
|
519
|
+
}
|
|
520
|
+
const [cmd2, ...args] = commandArgs;
|
|
521
|
+
let childProcess;
|
|
522
|
+
try {
|
|
523
|
+
childProcess = spawn(cmd2, args, {
|
|
524
|
+
stdio: "inherit",
|
|
525
|
+
shell: false,
|
|
526
|
+
cwd: process.cwd(),
|
|
527
|
+
env: process.env
|
|
528
|
+
});
|
|
529
|
+
} catch (err) {
|
|
530
|
+
console.error(`Failed to start command: ${err.message}`);
|
|
531
|
+
process.exit(1);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
const handleSignal = async (signal, exitCode) => {
|
|
535
|
+
if (capturedAlready) return;
|
|
536
|
+
capturedAlready = true;
|
|
537
|
+
if (!quiet) {
|
|
538
|
+
console.log(`
|
|
539
|
+
Received ${signal}`);
|
|
540
|
+
}
|
|
541
|
+
if (childProcess.pid && !childProcess.killed) {
|
|
542
|
+
childProcess.kill(signal);
|
|
543
|
+
}
|
|
544
|
+
await captureHandoff(
|
|
545
|
+
signal,
|
|
546
|
+
exitCode,
|
|
547
|
+
wrappedCommand,
|
|
548
|
+
sessionStart,
|
|
549
|
+
quiet
|
|
550
|
+
);
|
|
551
|
+
process.exit(exitCode);
|
|
552
|
+
};
|
|
553
|
+
process.on("SIGINT", () => handleSignal("SIGINT", 130));
|
|
554
|
+
process.on("SIGTERM", () => handleSignal("SIGTERM", 143));
|
|
555
|
+
process.on("SIGHUP", () => handleSignal("SIGHUP", 129));
|
|
556
|
+
childProcess.on("exit", async (code, signal) => {
|
|
557
|
+
if (capturedAlready) return;
|
|
558
|
+
capturedAlready = true;
|
|
559
|
+
const exitCode = code ?? (signal ? 128 : 0);
|
|
560
|
+
if (signal) {
|
|
561
|
+
await captureHandoff(
|
|
562
|
+
signal,
|
|
563
|
+
exitCode,
|
|
564
|
+
wrappedCommand,
|
|
565
|
+
sessionStart,
|
|
566
|
+
quiet
|
|
567
|
+
);
|
|
568
|
+
} else if (exitCode !== 0) {
|
|
569
|
+
if (!quiet) {
|
|
570
|
+
console.log(`
|
|
571
|
+
Command exited with code: ${exitCode}`);
|
|
572
|
+
}
|
|
573
|
+
await captureHandoff(
|
|
574
|
+
"unexpected_exit",
|
|
575
|
+
exitCode,
|
|
576
|
+
wrappedCommand,
|
|
577
|
+
sessionStart,
|
|
578
|
+
quiet
|
|
579
|
+
);
|
|
580
|
+
} else if (autoCapture) {
|
|
581
|
+
await captureHandoff(
|
|
582
|
+
"normal_exit",
|
|
583
|
+
0,
|
|
584
|
+
wrappedCommand,
|
|
585
|
+
sessionStart,
|
|
586
|
+
quiet
|
|
587
|
+
);
|
|
588
|
+
} else {
|
|
589
|
+
if (process.stdin.isTTY) {
|
|
590
|
+
console.log(
|
|
591
|
+
"\nSession ending. Use -a flag for auto-capture on normal exit."
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
process.exit(exitCode);
|
|
596
|
+
});
|
|
597
|
+
childProcess.on("error", async (err) => {
|
|
598
|
+
if (capturedAlready) return;
|
|
599
|
+
capturedAlready = true;
|
|
600
|
+
console.error(`Command error: ${err.message}`);
|
|
601
|
+
await captureHandoff(
|
|
602
|
+
"spawn_error",
|
|
603
|
+
1,
|
|
604
|
+
wrappedCommand,
|
|
605
|
+
sessionStart,
|
|
606
|
+
quiet
|
|
607
|
+
);
|
|
608
|
+
process.exit(1);
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
return cmd;
|
|
612
|
+
}
|
|
613
|
+
function createHandoffCommand() {
|
|
614
|
+
const cmd = new Command("handoff");
|
|
615
|
+
cmd.description('(deprecated) Use "capture" or "restore" instead');
|
|
616
|
+
return cmd;
|
|
617
|
+
}
|
|
618
|
+
export {
|
|
619
|
+
createAutoCaptureCommand,
|
|
620
|
+
createCaptureCommand,
|
|
621
|
+
createHandoffCommand,
|
|
622
|
+
createRestoreCommand
|
|
623
|
+
};
|
|
624
|
+
//# sourceMappingURL=handoff.js.map
|