@vinaes/succ 1.3.19
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 +87 -0
- package/README.md +588 -0
- package/agents/succ-checkpoint-manager.md +51 -0
- package/agents/succ-code-reviewer.md +181 -0
- package/agents/succ-context-optimizer.md +83 -0
- package/agents/succ-debug.md +224 -0
- package/agents/succ-decision-auditor.md +74 -0
- package/agents/succ-deep-search.md +41 -0
- package/agents/succ-diff-reviewer.md +123 -0
- package/agents/succ-explore.md +83 -0
- package/agents/succ-general.md +109 -0
- package/agents/succ-knowledge-indexer.md +45 -0
- package/agents/succ-knowledge-mapper.md +61 -0
- package/agents/succ-memory-curator.md +43 -0
- package/agents/succ-memory-health-monitor.md +55 -0
- package/agents/succ-pattern-detective.md +62 -0
- package/agents/succ-plan.md +172 -0
- package/agents/succ-quality-improvement-coach.md +63 -0
- package/agents/succ-readiness-improver.md +62 -0
- package/agents/succ-session-handoff-orchestrator.md +54 -0
- package/agents/succ-session-reviewer.md +46 -0
- package/agents/succ-style-tracker.md +73 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +749 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/agents-md.d.ts +16 -0
- package/dist/commands/agents-md.d.ts.map +1 -0
- package/dist/commands/agents-md.js +33 -0
- package/dist/commands/agents-md.js.map +1 -0
- package/dist/commands/analyze-agents.d.ts +20 -0
- package/dist/commands/analyze-agents.d.ts.map +1 -0
- package/dist/commands/analyze-agents.js +305 -0
- package/dist/commands/analyze-agents.js.map +1 -0
- package/dist/commands/analyze-helpers.d.ts +22 -0
- package/dist/commands/analyze-helpers.d.ts.map +1 -0
- package/dist/commands/analyze-helpers.js +38 -0
- package/dist/commands/analyze-helpers.js.map +1 -0
- package/dist/commands/analyze-profile.d.ts +53 -0
- package/dist/commands/analyze-profile.d.ts.map +1 -0
- package/dist/commands/analyze-profile.js +638 -0
- package/dist/commands/analyze-profile.js.map +1 -0
- package/dist/commands/analyze-recursive.d.ts +20 -0
- package/dist/commands/analyze-recursive.d.ts.map +1 -0
- package/dist/commands/analyze-recursive.js +326 -0
- package/dist/commands/analyze-recursive.js.map +1 -0
- package/dist/commands/analyze-utils.d.ts +83 -0
- package/dist/commands/analyze-utils.d.ts.map +1 -0
- package/dist/commands/analyze-utils.js +541 -0
- package/dist/commands/analyze-utils.js.map +1 -0
- package/dist/commands/analyze.d.ts +15 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js +265 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/backfill.d.ts +22 -0
- package/dist/commands/backfill.d.ts.map +1 -0
- package/dist/commands/backfill.js +62 -0
- package/dist/commands/backfill.js.map +1 -0
- package/dist/commands/benchmark-quality.d.ts +18 -0
- package/dist/commands/benchmark-quality.d.ts.map +1 -0
- package/dist/commands/benchmark-quality.js +316 -0
- package/dist/commands/benchmark-quality.js.map +1 -0
- package/dist/commands/benchmark-sqlite-vec.d.ts +12 -0
- package/dist/commands/benchmark-sqlite-vec.d.ts.map +1 -0
- package/dist/commands/benchmark-sqlite-vec.js +281 -0
- package/dist/commands/benchmark-sqlite-vec.js.map +1 -0
- package/dist/commands/benchmark.d.ts +57 -0
- package/dist/commands/benchmark.d.ts.map +1 -0
- package/dist/commands/benchmark.js +682 -0
- package/dist/commands/benchmark.js.map +1 -0
- package/dist/commands/chat.d.ts +14 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/chat.js +84 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/checkpoint.d.ts +27 -0
- package/dist/commands/checkpoint.d.ts.map +1 -0
- package/dist/commands/checkpoint.js +181 -0
- package/dist/commands/checkpoint.js.map +1 -0
- package/dist/commands/clear.d.ts +9 -0
- package/dist/commands/clear.d.ts.map +1 -0
- package/dist/commands/clear.js +31 -0
- package/dist/commands/clear.js.map +1 -0
- package/dist/commands/config.d.ts +26 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +247 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/consolidate.d.ts +21 -0
- package/dist/commands/consolidate.d.ts.map +1 -0
- package/dist/commands/consolidate.js +117 -0
- package/dist/commands/consolidate.js.map +1 -0
- package/dist/commands/daemon.d.ts +48 -0
- package/dist/commands/daemon.d.ts.map +1 -0
- package/dist/commands/daemon.js +218 -0
- package/dist/commands/daemon.js.map +1 -0
- package/dist/commands/embedding.d.ts +26 -0
- package/dist/commands/embedding.d.ts.map +1 -0
- package/dist/commands/embedding.js +168 -0
- package/dist/commands/embedding.js.map +1 -0
- package/dist/commands/graph.d.ts +20 -0
- package/dist/commands/graph.d.ts.map +1 -0
- package/dist/commands/graph.js +128 -0
- package/dist/commands/graph.js.map +1 -0
- package/dist/commands/index-code.d.ts +23 -0
- package/dist/commands/index-code.d.ts.map +1 -0
- package/dist/commands/index-code.js +218 -0
- package/dist/commands/index-code.js.map +1 -0
- package/dist/commands/index.d.ts +23 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +217 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init-templates.d.ts +21 -0
- package/dist/commands/init-templates.d.ts.map +1 -0
- package/dist/commands/init-templates.js +487 -0
- package/dist/commands/init-templates.js.map +1 -0
- package/dist/commands/init.d.ts +10 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +865 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/memories.d.ts +47 -0
- package/dist/commands/memories.d.ts.map +1 -0
- package/dist/commands/memories.js +597 -0
- package/dist/commands/memories.js.map +1 -0
- package/dist/commands/migrate.d.ts +19 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +154 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/prd.d.ts +46 -0
- package/dist/commands/prd.d.ts.map +1 -0
- package/dist/commands/prd.js +378 -0
- package/dist/commands/prd.js.map +1 -0
- package/dist/commands/precompute-context.d.ts +11 -0
- package/dist/commands/precompute-context.d.ts.map +1 -0
- package/dist/commands/precompute-context.js +12 -0
- package/dist/commands/precompute-context.js.map +1 -0
- package/dist/commands/progress.d.ts +16 -0
- package/dist/commands/progress.d.ts.map +1 -0
- package/dist/commands/progress.js +38 -0
- package/dist/commands/progress.js.map +1 -0
- package/dist/commands/reindex.d.ts +17 -0
- package/dist/commands/reindex.d.ts.map +1 -0
- package/dist/commands/reindex.js +83 -0
- package/dist/commands/reindex.js.map +1 -0
- package/dist/commands/retention.d.ts +19 -0
- package/dist/commands/retention.d.ts.map +1 -0
- package/dist/commands/retention.js +162 -0
- package/dist/commands/retention.js.map +1 -0
- package/dist/commands/score.d.ts +10 -0
- package/dist/commands/score.d.ts.map +1 -0
- package/dist/commands/score.js +28 -0
- package/dist/commands/score.js.map +1 -0
- package/dist/commands/search.d.ts +7 -0
- package/dist/commands/search.d.ts.map +1 -0
- package/dist/commands/search.js +89 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/commands/session-summary.d.ts +15 -0
- package/dist/commands/session-summary.d.ts.map +1 -0
- package/dist/commands/session-summary.js +16 -0
- package/dist/commands/session-summary.js.map +1 -0
- package/dist/commands/setup.d.ts +6 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +222 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/soul.d.ts +9 -0
- package/dist/commands/soul.d.ts.map +1 -0
- package/dist/commands/soul.js +256 -0
- package/dist/commands/soul.js.map +1 -0
- package/dist/commands/stats.d.ts +18 -0
- package/dist/commands/stats.d.ts.map +1 -0
- package/dist/commands/stats.js +138 -0
- package/dist/commands/stats.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +145 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/train-bpe.d.ts +8 -0
- package/dist/commands/train-bpe.d.ts.map +1 -0
- package/dist/commands/train-bpe.js +35 -0
- package/dist/commands/train-bpe.js.map +1 -0
- package/dist/commands/watch.d.ts +22 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/watch.js +171 -0
- package/dist/commands/watch.js.map +1 -0
- package/dist/daemon/analyzer.d.ts +54 -0
- package/dist/daemon/analyzer.d.ts.map +1 -0
- package/dist/daemon/analyzer.js +362 -0
- package/dist/daemon/analyzer.js.map +1 -0
- package/dist/daemon/client.d.ts +87 -0
- package/dist/daemon/client.d.ts.map +1 -0
- package/dist/daemon/client.js +356 -0
- package/dist/daemon/client.js.map +1 -0
- package/dist/daemon/index.d.ts +12 -0
- package/dist/daemon/index.d.ts.map +1 -0
- package/dist/daemon/index.js +12 -0
- package/dist/daemon/index.js.map +1 -0
- package/dist/daemon/service.d.ts +51 -0
- package/dist/daemon/service.d.ts.map +1 -0
- package/dist/daemon/service.js +1203 -0
- package/dist/daemon/service.js.map +1 -0
- package/dist/daemon/session-processor.d.ts +85 -0
- package/dist/daemon/session-processor.d.ts.map +1 -0
- package/dist/daemon/session-processor.js +571 -0
- package/dist/daemon/session-processor.js.map +1 -0
- package/dist/daemon/sessions.d.ts +62 -0
- package/dist/daemon/sessions.d.ts.map +1 -0
- package/dist/daemon/sessions.js +192 -0
- package/dist/daemon/sessions.js.map +1 -0
- package/dist/daemon/watcher.d.ts +52 -0
- package/dist/daemon/watcher.d.ts.map +1 -0
- package/dist/daemon/watcher.js +363 -0
- package/dist/daemon/watcher.js.map +1 -0
- package/dist/lib/agents-md-generator.d.ts +33 -0
- package/dist/lib/agents-md-generator.d.ts.map +1 -0
- package/dist/lib/agents-md-generator.js +156 -0
- package/dist/lib/agents-md-generator.js.map +1 -0
- package/dist/lib/ai-readiness.d.ts +132 -0
- package/dist/lib/ai-readiness.d.ts.map +1 -0
- package/dist/lib/ai-readiness.js +702 -0
- package/dist/lib/ai-readiness.js.map +1 -0
- package/dist/lib/analyze-state.d.ts +34 -0
- package/dist/lib/analyze-state.d.ts.map +1 -0
- package/dist/lib/analyze-state.js +106 -0
- package/dist/lib/analyze-state.js.map +1 -0
- package/dist/lib/benchmark.d.ts +250 -0
- package/dist/lib/benchmark.d.ts.map +1 -0
- package/dist/lib/benchmark.js +778 -0
- package/dist/lib/benchmark.js.map +1 -0
- package/dist/lib/bm25.d.ts +114 -0
- package/dist/lib/bm25.d.ts.map +1 -0
- package/dist/lib/bm25.js +727 -0
- package/dist/lib/bm25.js.map +1 -0
- package/dist/lib/bpe.d.ts +70 -0
- package/dist/lib/bpe.d.ts.map +1 -0
- package/dist/lib/bpe.js +270 -0
- package/dist/lib/bpe.js.map +1 -0
- package/dist/lib/checkpoint.d.ts +124 -0
- package/dist/lib/checkpoint.d.ts.map +1 -0
- package/dist/lib/checkpoint.js +321 -0
- package/dist/lib/checkpoint.js.map +1 -0
- package/dist/lib/chunker.d.ts +47 -0
- package/dist/lib/chunker.d.ts.map +1 -0
- package/dist/lib/chunker.js +358 -0
- package/dist/lib/chunker.js.map +1 -0
- package/dist/lib/claude-ws-transport.d.ts +76 -0
- package/dist/lib/claude-ws-transport.d.ts.map +1 -0
- package/dist/lib/claude-ws-transport.js +487 -0
- package/dist/lib/claude-ws-transport.js.map +1 -0
- package/dist/lib/compact-briefing.d.ts +22 -0
- package/dist/lib/compact-briefing.d.ts.map +1 -0
- package/dist/lib/compact-briefing.js +180 -0
- package/dist/lib/compact-briefing.js.map +1 -0
- package/dist/lib/config-defaults.d.ts +41 -0
- package/dist/lib/config-defaults.d.ts.map +1 -0
- package/dist/lib/config-defaults.js +99 -0
- package/dist/lib/config-defaults.js.map +1 -0
- package/dist/lib/config-display.d.ts +16 -0
- package/dist/lib/config-display.d.ts.map +1 -0
- package/dist/lib/config-display.js +408 -0
- package/dist/lib/config-display.js.map +1 -0
- package/dist/lib/config-types.d.ts +601 -0
- package/dist/lib/config-types.d.ts.map +1 -0
- package/dist/lib/config-types.js +7 -0
- package/dist/lib/config-types.js.map +1 -0
- package/dist/lib/config-validation.d.ts +19 -0
- package/dist/lib/config-validation.d.ts.map +1 -0
- package/dist/lib/config-validation.js +136 -0
- package/dist/lib/config-validation.js.map +1 -0
- package/dist/lib/config.d.ts +143 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +689 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/consolidate.d.ts +115 -0
- package/dist/lib/consolidate.d.ts.map +1 -0
- package/dist/lib/consolidate.js +600 -0
- package/dist/lib/consolidate.js.map +1 -0
- package/dist/lib/db/bm25-indexes.d.ts +58 -0
- package/dist/lib/db/bm25-indexes.d.ts.map +1 -0
- package/dist/lib/db/bm25-indexes.js +333 -0
- package/dist/lib/db/bm25-indexes.js.map +1 -0
- package/dist/lib/db/bpe.d.ts +18 -0
- package/dist/lib/db/bpe.d.ts.map +1 -0
- package/dist/lib/db/bpe.js +44 -0
- package/dist/lib/db/bpe.js.map +1 -0
- package/dist/lib/db/connection.d.ts +47 -0
- package/dist/lib/db/connection.d.ts.map +1 -0
- package/dist/lib/db/connection.js +114 -0
- package/dist/lib/db/connection.js.map +1 -0
- package/dist/lib/db/documents.d.ts +58 -0
- package/dist/lib/db/documents.d.ts.map +1 -0
- package/dist/lib/db/documents.js +374 -0
- package/dist/lib/db/documents.js.map +1 -0
- package/dist/lib/db/file-hash.d.ts +26 -0
- package/dist/lib/db/file-hash.d.ts.map +1 -0
- package/dist/lib/db/file-hash.js +56 -0
- package/dist/lib/db/file-hash.js.map +1 -0
- package/dist/lib/db/global-memories.d.ts +62 -0
- package/dist/lib/db/global-memories.d.ts.map +1 -0
- package/dist/lib/db/global-memories.js +173 -0
- package/dist/lib/db/global-memories.js.map +1 -0
- package/dist/lib/db/graph.d.ts +163 -0
- package/dist/lib/db/graph.d.ts.map +1 -0
- package/dist/lib/db/graph.js +488 -0
- package/dist/lib/db/graph.js.map +1 -0
- package/dist/lib/db/helpers.d.ts +13 -0
- package/dist/lib/db/helpers.d.ts.map +1 -0
- package/dist/lib/db/helpers.js +21 -0
- package/dist/lib/db/helpers.js.map +1 -0
- package/dist/lib/db/hybrid-search.d.ts +64 -0
- package/dist/lib/db/hybrid-search.d.ts.map +1 -0
- package/dist/lib/db/hybrid-search.js +549 -0
- package/dist/lib/db/hybrid-search.js.map +1 -0
- package/dist/lib/db/index.d.ts +23 -0
- package/dist/lib/db/index.d.ts.map +1 -0
- package/dist/lib/db/index.js +23 -0
- package/dist/lib/db/index.js.map +1 -0
- package/dist/lib/db/memories.d.ts +174 -0
- package/dist/lib/db/memories.d.ts.map +1 -0
- package/dist/lib/db/memories.js +866 -0
- package/dist/lib/db/memories.js.map +1 -0
- package/dist/lib/db/retention.d.ts +64 -0
- package/dist/lib/db/retention.d.ts.map +1 -0
- package/dist/lib/db/retention.js +115 -0
- package/dist/lib/db/retention.js.map +1 -0
- package/dist/lib/db/schema.d.ts +29 -0
- package/dist/lib/db/schema.d.ts.map +1 -0
- package/dist/lib/db/schema.js +832 -0
- package/dist/lib/db/schema.js.map +1 -0
- package/dist/lib/db/skills.d.ts +65 -0
- package/dist/lib/db/skills.d.ts.map +1 -0
- package/dist/lib/db/skills.js +119 -0
- package/dist/lib/db/skills.js.map +1 -0
- package/dist/lib/db/token-frequency.d.ts +34 -0
- package/dist/lib/db/token-frequency.d.ts.map +1 -0
- package/dist/lib/db/token-frequency.js +92 -0
- package/dist/lib/db/token-frequency.js.map +1 -0
- package/dist/lib/db/token-stats.d.ts +43 -0
- package/dist/lib/db/token-stats.d.ts.map +1 -0
- package/dist/lib/db/token-stats.js +59 -0
- package/dist/lib/db/token-stats.js.map +1 -0
- package/dist/lib/db/types.d.ts +57 -0
- package/dist/lib/db/types.d.ts.map +1 -0
- package/dist/lib/db/types.js +5 -0
- package/dist/lib/db/types.js.map +1 -0
- package/dist/lib/db/web-search-history.d.ts +22 -0
- package/dist/lib/db/web-search-history.d.ts.map +1 -0
- package/dist/lib/db/web-search-history.js +107 -0
- package/dist/lib/db/web-search-history.js.map +1 -0
- package/dist/lib/debug/state.d.ts +17 -0
- package/dist/lib/debug/state.d.ts.map +1 -0
- package/dist/lib/debug/state.js +131 -0
- package/dist/lib/debug/state.js.map +1 -0
- package/dist/lib/debug/types.d.ts +74 -0
- package/dist/lib/debug/types.d.ts.map +1 -0
- package/dist/lib/debug/types.js +85 -0
- package/dist/lib/debug/types.js.map +1 -0
- package/dist/lib/embedding-pool.d.ts +37 -0
- package/dist/lib/embedding-pool.d.ts.map +1 -0
- package/dist/lib/embedding-pool.js +159 -0
- package/dist/lib/embedding-pool.js.map +1 -0
- package/dist/lib/embedding-worker.d.ts +7 -0
- package/dist/lib/embedding-worker.d.ts.map +1 -0
- package/dist/lib/embedding-worker.js +49 -0
- package/dist/lib/embedding-worker.js.map +1 -0
- package/dist/lib/embeddings.d.ts +54 -0
- package/dist/lib/embeddings.d.ts.map +1 -0
- package/dist/lib/embeddings.js +437 -0
- package/dist/lib/embeddings.js.map +1 -0
- package/dist/lib/errors.d.ts +40 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +66 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/fault-logger.d.ts +35 -0
- package/dist/lib/fault-logger.d.ts.map +1 -0
- package/dist/lib/fault-logger.js +182 -0
- package/dist/lib/fault-logger.js.map +1 -0
- package/dist/lib/graph/centrality.d.ts +34 -0
- package/dist/lib/graph/centrality.d.ts.map +1 -0
- package/dist/lib/graph/centrality.js +76 -0
- package/dist/lib/graph/centrality.js.map +1 -0
- package/dist/lib/graph/cleanup.d.ts +36 -0
- package/dist/lib/graph/cleanup.d.ts.map +1 -0
- package/dist/lib/graph/cleanup.js +96 -0
- package/dist/lib/graph/cleanup.js.map +1 -0
- package/dist/lib/graph/community-detection.d.ts +61 -0
- package/dist/lib/graph/community-detection.d.ts.map +1 -0
- package/dist/lib/graph/community-detection.js +218 -0
- package/dist/lib/graph/community-detection.js.map +1 -0
- package/dist/lib/graph/contextual-proximity.d.ts +41 -0
- package/dist/lib/graph/contextual-proximity.d.ts.map +1 -0
- package/dist/lib/graph/contextual-proximity.js +125 -0
- package/dist/lib/graph/contextual-proximity.js.map +1 -0
- package/dist/lib/graph/llm-relations.d.ts +54 -0
- package/dist/lib/graph/llm-relations.d.ts.map +1 -0
- package/dist/lib/graph/llm-relations.js +265 -0
- package/dist/lib/graph/llm-relations.js.map +1 -0
- package/dist/lib/graph-export.d.ts +13 -0
- package/dist/lib/graph-export.d.ts.map +1 -0
- package/dist/lib/graph-export.js +637 -0
- package/dist/lib/graph-export.js.map +1 -0
- package/dist/lib/graph-scheduler.d.ts +7 -0
- package/dist/lib/graph-scheduler.d.ts.map +1 -0
- package/dist/lib/graph-scheduler.js +21 -0
- package/dist/lib/graph-scheduler.js.map +1 -0
- package/dist/lib/indexer.d.ts +36 -0
- package/dist/lib/indexer.d.ts.map +1 -0
- package/dist/lib/indexer.js +226 -0
- package/dist/lib/indexer.js.map +1 -0
- package/dist/lib/learning-delta.d.ts +35 -0
- package/dist/lib/learning-delta.d.ts.map +1 -0
- package/dist/lib/learning-delta.js +53 -0
- package/dist/lib/learning-delta.js.map +1 -0
- package/dist/lib/llm.d.ts +118 -0
- package/dist/lib/llm.d.ts.map +1 -0
- package/dist/lib/llm.js +439 -0
- package/dist/lib/llm.js.map +1 -0
- package/dist/lib/lock.d.ts +27 -0
- package/dist/lib/lock.d.ts.map +1 -0
- package/dist/lib/lock.js +143 -0
- package/dist/lib/lock.js.map +1 -0
- package/dist/lib/md-fetch.d.ts +61 -0
- package/dist/lib/md-fetch.d.ts.map +1 -0
- package/dist/lib/md-fetch.js +141 -0
- package/dist/lib/md-fetch.js.map +1 -0
- package/dist/lib/mmr.d.ts +29 -0
- package/dist/lib/mmr.d.ts.map +1 -0
- package/dist/lib/mmr.js +89 -0
- package/dist/lib/mmr.js.map +1 -0
- package/dist/lib/onboarding/ai-chat.d.ts +11 -0
- package/dist/lib/onboarding/ai-chat.d.ts.map +1 -0
- package/dist/lib/onboarding/ai-chat.js +85 -0
- package/dist/lib/onboarding/ai-chat.js.map +1 -0
- package/dist/lib/onboarding/index.d.ts +7 -0
- package/dist/lib/onboarding/index.d.ts.map +1 -0
- package/dist/lib/onboarding/index.js +7 -0
- package/dist/lib/onboarding/index.js.map +1 -0
- package/dist/lib/onboarding/wizard.d.ts +11 -0
- package/dist/lib/onboarding/wizard.d.ts.map +1 -0
- package/dist/lib/onboarding/wizard.js +104 -0
- package/dist/lib/onboarding/wizard.js.map +1 -0
- package/dist/lib/ort-provider.d.ts +27 -0
- package/dist/lib/ort-provider.d.ts.map +1 -0
- package/dist/lib/ort-provider.js +83 -0
- package/dist/lib/ort-provider.js.map +1 -0
- package/dist/lib/ort-session.d.ts +32 -0
- package/dist/lib/ort-session.d.ts.map +1 -0
- package/dist/lib/ort-session.js +227 -0
- package/dist/lib/ort-session.js.map +1 -0
- package/dist/lib/patterns.d.ts +43 -0
- package/dist/lib/patterns.d.ts.map +1 -0
- package/dist/lib/patterns.js +395 -0
- package/dist/lib/patterns.js.map +1 -0
- package/dist/lib/prd/codebase-context.d.ts +27 -0
- package/dist/lib/prd/codebase-context.d.ts.map +1 -0
- package/dist/lib/prd/codebase-context.js +420 -0
- package/dist/lib/prd/codebase-context.js.map +1 -0
- package/dist/lib/prd/context.d.ts +24 -0
- package/dist/lib/prd/context.d.ts.map +1 -0
- package/dist/lib/prd/context.js +68 -0
- package/dist/lib/prd/context.js.map +1 -0
- package/dist/lib/prd/executor.d.ts +52 -0
- package/dist/lib/prd/executor.d.ts.map +1 -0
- package/dist/lib/prd/executor.js +154 -0
- package/dist/lib/prd/executor.js.map +1 -0
- package/dist/lib/prd/export.d.ts +40 -0
- package/dist/lib/prd/export.d.ts.map +1 -0
- package/dist/lib/prd/export.js +511 -0
- package/dist/lib/prd/export.js.map +1 -0
- package/dist/lib/prd/gates.d.ts +30 -0
- package/dist/lib/prd/gates.d.ts.map +1 -0
- package/dist/lib/prd/gates.js +100 -0
- package/dist/lib/prd/gates.js.map +1 -0
- package/dist/lib/prd/generate.d.ts +56 -0
- package/dist/lib/prd/generate.d.ts.map +1 -0
- package/dist/lib/prd/generate.js +357 -0
- package/dist/lib/prd/generate.js.map +1 -0
- package/dist/lib/prd/parse.d.ts +21 -0
- package/dist/lib/prd/parse.d.ts.map +1 -0
- package/dist/lib/prd/parse.js +270 -0
- package/dist/lib/prd/parse.js.map +1 -0
- package/dist/lib/prd/prompt-builder.d.ts +18 -0
- package/dist/lib/prd/prompt-builder.d.ts.map +1 -0
- package/dist/lib/prd/prompt-builder.js +61 -0
- package/dist/lib/prd/prompt-builder.js.map +1 -0
- package/dist/lib/prd/runner.d.ts +54 -0
- package/dist/lib/prd/runner.d.ts.map +1 -0
- package/dist/lib/prd/runner.js +563 -0
- package/dist/lib/prd/runner.js.map +1 -0
- package/dist/lib/prd/scheduler.d.ts +27 -0
- package/dist/lib/prd/scheduler.d.ts.map +1 -0
- package/dist/lib/prd/scheduler.js +113 -0
- package/dist/lib/prd/scheduler.js.map +1 -0
- package/dist/lib/prd/state.d.ts +77 -0
- package/dist/lib/prd/state.d.ts.map +1 -0
- package/dist/lib/prd/state.js +253 -0
- package/dist/lib/prd/state.js.map +1 -0
- package/dist/lib/prd/team-runner.d.ts +48 -0
- package/dist/lib/prd/team-runner.d.ts.map +1 -0
- package/dist/lib/prd/team-runner.js +261 -0
- package/dist/lib/prd/team-runner.js.map +1 -0
- package/dist/lib/prd/types.d.ts +169 -0
- package/dist/lib/prd/types.d.ts.map +1 -0
- package/dist/lib/prd/types.js +143 -0
- package/dist/lib/prd/types.js.map +1 -0
- package/dist/lib/prd/worktree.d.ts +54 -0
- package/dist/lib/prd/worktree.d.ts.map +1 -0
- package/dist/lib/prd/worktree.js +255 -0
- package/dist/lib/prd/worktree.js.map +1 -0
- package/dist/lib/precompute-context.d.ts +48 -0
- package/dist/lib/precompute-context.d.ts.map +1 -0
- package/dist/lib/precompute-context.js +265 -0
- package/dist/lib/precompute-context.js.map +1 -0
- package/dist/lib/pricing.d.ts +60 -0
- package/dist/lib/pricing.d.ts.map +1 -0
- package/dist/lib/pricing.js +258 -0
- package/dist/lib/pricing.js.map +1 -0
- package/dist/lib/process-registry.d.ts +30 -0
- package/dist/lib/process-registry.d.ts.map +1 -0
- package/dist/lib/process-registry.js +92 -0
- package/dist/lib/process-registry.js.map +1 -0
- package/dist/lib/progress-log.d.ts +44 -0
- package/dist/lib/progress-log.d.ts.map +1 -0
- package/dist/lib/progress-log.js +58 -0
- package/dist/lib/progress-log.js.map +1 -0
- package/dist/lib/public-api.d.ts +56 -0
- package/dist/lib/public-api.d.ts.map +1 -0
- package/dist/lib/public-api.js +63 -0
- package/dist/lib/public-api.js.map +1 -0
- package/dist/lib/quality.d.ts +66 -0
- package/dist/lib/quality.d.ts.map +1 -0
- package/dist/lib/quality.js +486 -0
- package/dist/lib/quality.js.map +1 -0
- package/dist/lib/query-expansion.d.ts +16 -0
- package/dist/lib/query-expansion.d.ts.map +1 -0
- package/dist/lib/query-expansion.js +53 -0
- package/dist/lib/query-expansion.js.map +1 -0
- package/dist/lib/readiness.d.ts +35 -0
- package/dist/lib/readiness.d.ts.map +1 -0
- package/dist/lib/readiness.js +142 -0
- package/dist/lib/readiness.js.map +1 -0
- package/dist/lib/reference-embeddings.d.ts +39 -0
- package/dist/lib/reference-embeddings.d.ts.map +1 -0
- package/dist/lib/reference-embeddings.js +95 -0
- package/dist/lib/reference-embeddings.js.map +1 -0
- package/dist/lib/reflection-synthesizer.d.ts +27 -0
- package/dist/lib/reflection-synthesizer.d.ts.map +1 -0
- package/dist/lib/reflection-synthesizer.js +149 -0
- package/dist/lib/reflection-synthesizer.js.map +1 -0
- package/dist/lib/retention.d.ts +105 -0
- package/dist/lib/retention.d.ts.map +1 -0
- package/dist/lib/retention.js +246 -0
- package/dist/lib/retention.js.map +1 -0
- package/dist/lib/sensitive-filter.d.ts +34 -0
- package/dist/lib/sensitive-filter.d.ts.map +1 -0
- package/dist/lib/sensitive-filter.js +344 -0
- package/dist/lib/sensitive-filter.js.map +1 -0
- package/dist/lib/session-observations.d.ts +59 -0
- package/dist/lib/session-observations.d.ts.map +1 -0
- package/dist/lib/session-observations.js +128 -0
- package/dist/lib/session-observations.js.map +1 -0
- package/dist/lib/session-summary.d.ts +65 -0
- package/dist/lib/session-summary.d.ts.map +1 -0
- package/dist/lib/session-summary.js +344 -0
- package/dist/lib/session-summary.js.map +1 -0
- package/dist/lib/similarity-worker.d.ts +7 -0
- package/dist/lib/similarity-worker.d.ts.map +1 -0
- package/dist/lib/similarity-worker.js +36 -0
- package/dist/lib/similarity-worker.js.map +1 -0
- package/dist/lib/skills.d.ts +78 -0
- package/dist/lib/skills.d.ts.map +1 -0
- package/dist/lib/skills.js +439 -0
- package/dist/lib/skills.js.map +1 -0
- package/dist/lib/skyll-client.d.ts +59 -0
- package/dist/lib/skyll-client.d.ts.map +1 -0
- package/dist/lib/skyll-client.js +257 -0
- package/dist/lib/skyll-client.js.map +1 -0
- package/dist/lib/storage/backends/interface.d.ts +383 -0
- package/dist/lib/storage/backends/interface.d.ts.map +1 -0
- package/dist/lib/storage/backends/interface.js +12 -0
- package/dist/lib/storage/backends/interface.js.map +1 -0
- package/dist/lib/storage/backends/postgresql.d.ts +454 -0
- package/dist/lib/storage/backends/postgresql.d.ts.map +1 -0
- package/dist/lib/storage/backends/postgresql.js +2528 -0
- package/dist/lib/storage/backends/postgresql.js.map +1 -0
- package/dist/lib/storage/benchmark.d.ts +16 -0
- package/dist/lib/storage/benchmark.d.ts.map +1 -0
- package/dist/lib/storage/benchmark.js +219 -0
- package/dist/lib/storage/benchmark.js.map +1 -0
- package/dist/lib/storage/dispatcher-export.d.ts +108 -0
- package/dist/lib/storage/dispatcher-export.d.ts.map +1 -0
- package/dist/lib/storage/dispatcher-export.js +593 -0
- package/dist/lib/storage/dispatcher-export.js.map +1 -0
- package/dist/lib/storage/dispatcher.d.ts +468 -0
- package/dist/lib/storage/dispatcher.d.ts.map +1 -0
- package/dist/lib/storage/dispatcher.js +1926 -0
- package/dist/lib/storage/dispatcher.js.map +1 -0
- package/dist/lib/storage/index.d.ts +481 -0
- package/dist/lib/storage/index.d.ts.map +1 -0
- package/dist/lib/storage/index.js +727 -0
- package/dist/lib/storage/index.js.map +1 -0
- package/dist/lib/storage/migration/export-import.d.ts +133 -0
- package/dist/lib/storage/migration/export-import.d.ts.map +1 -0
- package/dist/lib/storage/migration/export-import.js +264 -0
- package/dist/lib/storage/migration/export-import.js.map +1 -0
- package/dist/lib/storage/types.d.ts +313 -0
- package/dist/lib/storage/types.d.ts.map +1 -0
- package/dist/lib/storage/types.js +30 -0
- package/dist/lib/storage/types.js.map +1 -0
- package/dist/lib/storage/vector/interface.d.ts +89 -0
- package/dist/lib/storage/vector/interface.d.ts.map +1 -0
- package/dist/lib/storage/vector/interface.js +10 -0
- package/dist/lib/storage/vector/interface.js.map +1 -0
- package/dist/lib/storage/vector/qdrant.d.ts +221 -0
- package/dist/lib/storage/vector/qdrant.d.ts.map +1 -0
- package/dist/lib/storage/vector/qdrant.js +880 -0
- package/dist/lib/storage/vector/qdrant.js.map +1 -0
- package/dist/lib/supersession.d.ts +26 -0
- package/dist/lib/supersession.d.ts.map +1 -0
- package/dist/lib/supersession.js +97 -0
- package/dist/lib/supersession.js.map +1 -0
- package/dist/lib/temporal.d.ts +140 -0
- package/dist/lib/temporal.d.ts.map +1 -0
- package/dist/lib/temporal.js +303 -0
- package/dist/lib/temporal.js.map +1 -0
- package/dist/lib/token-budget.d.ts +79 -0
- package/dist/lib/token-budget.d.ts.map +1 -0
- package/dist/lib/token-budget.js +146 -0
- package/dist/lib/token-budget.js.map +1 -0
- package/dist/lib/token-counter.d.ts +27 -0
- package/dist/lib/token-counter.d.ts.map +1 -0
- package/dist/lib/token-counter.js +52 -0
- package/dist/lib/token-counter.js.map +1 -0
- package/dist/lib/tree-sitter/chunker-ts.d.ts +24 -0
- package/dist/lib/tree-sitter/chunker-ts.d.ts.map +1 -0
- package/dist/lib/tree-sitter/chunker-ts.js +206 -0
- package/dist/lib/tree-sitter/chunker-ts.js.map +1 -0
- package/dist/lib/tree-sitter/extractor.d.ts +43 -0
- package/dist/lib/tree-sitter/extractor.d.ts.map +1 -0
- package/dist/lib/tree-sitter/extractor.js +297 -0
- package/dist/lib/tree-sitter/extractor.js.map +1 -0
- package/dist/lib/tree-sitter/index.d.ts +13 -0
- package/dist/lib/tree-sitter/index.d.ts.map +1 -0
- package/dist/lib/tree-sitter/index.js +14 -0
- package/dist/lib/tree-sitter/index.js.map +1 -0
- package/dist/lib/tree-sitter/parser.d.ts +70 -0
- package/dist/lib/tree-sitter/parser.d.ts.map +1 -0
- package/dist/lib/tree-sitter/parser.js +354 -0
- package/dist/lib/tree-sitter/parser.js.map +1 -0
- package/dist/lib/tree-sitter/public.d.ts +28 -0
- package/dist/lib/tree-sitter/public.d.ts.map +1 -0
- package/dist/lib/tree-sitter/public.js +50 -0
- package/dist/lib/tree-sitter/public.js.map +1 -0
- package/dist/lib/tree-sitter/queries.d.ts +28 -0
- package/dist/lib/tree-sitter/queries.d.ts.map +1 -0
- package/dist/lib/tree-sitter/queries.js +383 -0
- package/dist/lib/tree-sitter/queries.js.map +1 -0
- package/dist/lib/tree-sitter/types.d.ts +69 -0
- package/dist/lib/tree-sitter/types.d.ts.map +1 -0
- package/dist/lib/tree-sitter/types.js +131 -0
- package/dist/lib/tree-sitter/types.js.map +1 -0
- package/dist/lib/working-memory-pipeline.d.ts +118 -0
- package/dist/lib/working-memory-pipeline.d.ts.map +1 -0
- package/dist/lib/working-memory-pipeline.js +344 -0
- package/dist/lib/working-memory-pipeline.js.map +1 -0
- package/dist/mcp/helpers.d.ts +44 -0
- package/dist/mcp/helpers.d.ts.map +1 -0
- package/dist/mcp/helpers.js +244 -0
- package/dist/mcp/helpers.js.map +1 -0
- package/dist/mcp/index.d.ts +10 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +15 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/resources.d.ts +12 -0
- package/dist/mcp/resources.d.ts.map +1 -0
- package/dist/mcp/resources.js +136 -0
- package/dist/mcp/resources.js.map +1 -0
- package/dist/mcp/server.d.ts +22 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +131 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools/config.d.ts +10 -0
- package/dist/mcp/tools/config.d.ts.map +1 -0
- package/dist/mcp/tools/config.js +236 -0
- package/dist/mcp/tools/config.js.map +1 -0
- package/dist/mcp/tools/dead-end.d.ts +9 -0
- package/dist/mcp/tools/dead-end.d.ts.map +1 -0
- package/dist/mcp/tools/dead-end.js +137 -0
- package/dist/mcp/tools/dead-end.js.map +1 -0
- package/dist/mcp/tools/debug.d.ts +9 -0
- package/dist/mcp/tools/debug.d.ts.map +1 -0
- package/dist/mcp/tools/debug.js +387 -0
- package/dist/mcp/tools/debug.js.map +1 -0
- package/dist/mcp/tools/graph.d.ts +9 -0
- package/dist/mcp/tools/graph.d.ts.map +1 -0
- package/dist/mcp/tools/graph.js +337 -0
- package/dist/mcp/tools/graph.js.map +1 -0
- package/dist/mcp/tools/indexing.d.ts +12 -0
- package/dist/mcp/tools/indexing.d.ts.map +1 -0
- package/dist/mcp/tools/indexing.js +289 -0
- package/dist/mcp/tools/indexing.js.map +1 -0
- package/dist/mcp/tools/memory.d.ts +14 -0
- package/dist/mcp/tools/memory.d.ts.map +1 -0
- package/dist/mcp/tools/memory.js +1170 -0
- package/dist/mcp/tools/memory.js.map +1 -0
- package/dist/mcp/tools/prd.d.ts +12 -0
- package/dist/mcp/tools/prd.d.ts.map +1 -0
- package/dist/mcp/tools/prd.js +276 -0
- package/dist/mcp/tools/prd.js.map +1 -0
- package/dist/mcp/tools/search.d.ts +9 -0
- package/dist/mcp/tools/search.d.ts.map +1 -0
- package/dist/mcp/tools/search.js +279 -0
- package/dist/mcp/tools/search.js.map +1 -0
- package/dist/mcp/tools/status.d.ts +10 -0
- package/dist/mcp/tools/status.d.ts.map +1 -0
- package/dist/mcp/tools/status.js +296 -0
- package/dist/mcp/tools/status.js.map +1 -0
- package/dist/mcp/tools/web-fetch.d.ts +10 -0
- package/dist/mcp/tools/web-fetch.d.ts.map +1 -0
- package/dist/mcp/tools/web-fetch.js +107 -0
- package/dist/mcp/tools/web-fetch.js.map +1 -0
- package/dist/mcp/tools/web-search.d.ts +14 -0
- package/dist/mcp/tools/web-search.d.ts.map +1 -0
- package/dist/mcp/tools/web-search.js +427 -0
- package/dist/mcp/tools/web-search.js.map +1 -0
- package/dist/mcp/types.d.ts +16 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +5 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/mcp-server.d.ts +9 -0
- package/dist/mcp-server.d.ts.map +1 -0
- package/dist/mcp-server.js +9 -0
- package/dist/mcp-server.js.map +1 -0
- package/dist/prompts/analyze.d.ts +21 -0
- package/dist/prompts/analyze.d.ts.map +1 -0
- package/dist/prompts/analyze.js +27 -0
- package/dist/prompts/analyze.js.map +1 -0
- package/dist/prompts/briefing.d.ts +27 -0
- package/dist/prompts/briefing.d.ts.map +1 -0
- package/dist/prompts/briefing.js +123 -0
- package/dist/prompts/briefing.js.map +1 -0
- package/dist/prompts/chat.d.ts +8 -0
- package/dist/prompts/chat.d.ts.map +1 -0
- package/dist/prompts/chat.js +39 -0
- package/dist/prompts/chat.js.map +1 -0
- package/dist/prompts/daemon.d.ts +16 -0
- package/dist/prompts/daemon.d.ts.map +1 -0
- package/dist/prompts/daemon.js +46 -0
- package/dist/prompts/daemon.js.map +1 -0
- package/dist/prompts/extraction.d.ts +13 -0
- package/dist/prompts/extraction.d.ts.map +1 -0
- package/dist/prompts/extraction.js +93 -0
- package/dist/prompts/extraction.js.map +1 -0
- package/dist/prompts/index.d.ts +17 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +27 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/memory.d.ts +11 -0
- package/dist/prompts/memory.d.ts.map +1 -0
- package/dist/prompts/memory.js +23 -0
- package/dist/prompts/memory.js.map +1 -0
- package/dist/prompts/onboarding.d.ts +16 -0
- package/dist/prompts/onboarding.d.ts.map +1 -0
- package/dist/prompts/onboarding.js +183 -0
- package/dist/prompts/onboarding.js.map +1 -0
- package/dist/prompts/prd.d.ts +12 -0
- package/dist/prompts/prd.d.ts.map +1 -0
- package/dist/prompts/prd.js +211 -0
- package/dist/prompts/prd.js.map +1 -0
- package/dist/prompts/quality.d.ts +11 -0
- package/dist/prompts/quality.d.ts.map +1 -0
- package/dist/prompts/quality.js +11 -0
- package/dist/prompts/quality.js.map +1 -0
- package/dist/prompts/skills.d.ts +16 -0
- package/dist/prompts/skills.d.ts.map +1 -0
- package/dist/prompts/skills.js +30 -0
- package/dist/prompts/skills.js.map +1 -0
- package/hooks/succ-post-tool.cjs +227 -0
- package/hooks/succ-pre-tool.cjs +312 -0
- package/hooks/succ-session-end.cjs +85 -0
- package/hooks/succ-session-start.cjs +618 -0
- package/hooks/succ-stop-reflection.cjs +87 -0
- package/hooks/succ-user-prompt.cjs +220 -0
- package/package.json +128 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Onboarding Prompts
|
|
3
|
+
*
|
|
4
|
+
* System prompt for the AI-powered interactive onboarding experience.
|
|
5
|
+
* Teaches new users about succ concepts before technical setup.
|
|
6
|
+
*/
|
|
7
|
+
export const ONBOARDING_SYSTEM_PROMPT = `You are a friendly onboarding guide for succ — a persistent memory and knowledge base system for AI coding assistants.
|
|
8
|
+
|
|
9
|
+
## IMPORTANT: CLI Mode
|
|
10
|
+
|
|
11
|
+
You are running via CLI (succ init --ai). You do NOT have access to MCP tools.
|
|
12
|
+
Do NOT claim you can use succ_search, succ_recall, or call any tools.
|
|
13
|
+
You are here to EXPLAIN succ concepts, not to demonstrate tools.
|
|
14
|
+
|
|
15
|
+
## Your Role
|
|
16
|
+
Help new users understand what succ does and why it matters. Be concise, practical, and enthusiastic without being overwhelming.
|
|
17
|
+
|
|
18
|
+
## Core Concepts to Teach
|
|
19
|
+
Explain these concepts naturally throughout the conversation (start with the first 4, mention others if relevant):
|
|
20
|
+
|
|
21
|
+
1. **Brain Vault** (.succ/brain/)
|
|
22
|
+
- Markdown docs that get semantically indexed
|
|
23
|
+
- Store project specs, architecture decisions, patterns
|
|
24
|
+
- AI searches these automatically via succ_search
|
|
25
|
+
|
|
26
|
+
2. **Memories**
|
|
27
|
+
- Decisions, learnings, patterns that persist across sessions
|
|
28
|
+
- Types: observation, decision, learning, error, pattern
|
|
29
|
+
- Stored in database, retrieved via semantic search (succ_recall)
|
|
30
|
+
- Connected via knowledge graph (links between related memories)
|
|
31
|
+
|
|
32
|
+
3. **Code Index**
|
|
33
|
+
- Semantic search across source code (succ_search_code)
|
|
34
|
+
- AST-aware: finds functions, classes, interfaces by name or meaning
|
|
35
|
+
- Supports 13+ languages via tree-sitter
|
|
36
|
+
|
|
37
|
+
4. **Background Services**
|
|
38
|
+
- Daemon with watch (auto-index) + analyze (discover patterns)
|
|
39
|
+
- Idle reflection: enriches knowledge graph, generates insights
|
|
40
|
+
- Runs silently, keeps knowledge fresh
|
|
41
|
+
|
|
42
|
+
5. **Web Tools** (mention if relevant)
|
|
43
|
+
- succ_fetch: fetches any URL as clean markdown (strips ads, nav)
|
|
44
|
+
- succ_extract: extracts structured data from web pages via LLM
|
|
45
|
+
- Web search via Perplexity for up-to-date information
|
|
46
|
+
|
|
47
|
+
6. **PRD Pipeline** (mention if relevant)
|
|
48
|
+
- Generate product requirements from descriptions
|
|
49
|
+
- Auto-parse into tasks, execute with quality gates
|
|
50
|
+
- Branch isolation, auto-commit per task
|
|
51
|
+
|
|
52
|
+
## Conversation Flow
|
|
53
|
+
|
|
54
|
+
1. **Discovery Phase**
|
|
55
|
+
- Ask what they're building (project type)
|
|
56
|
+
- Ask what frustrates them with AI assistants
|
|
57
|
+
|
|
58
|
+
2. **Solution Mapping**
|
|
59
|
+
- Connect their frustrations to succ features
|
|
60
|
+
- "Forgets context?" → Memories persist across sessions
|
|
61
|
+
- "Doesn't know my codebase?" → Code Index + Brain Vault
|
|
62
|
+
- "Have to repeat decisions?" → Memories capture them
|
|
63
|
+
|
|
64
|
+
3. **Cheatsheet**
|
|
65
|
+
- Give 3 key things to remember:
|
|
66
|
+
1. Put important docs in .succ/brain/
|
|
67
|
+
2. In Claude Code, AI uses succ tools automatically
|
|
68
|
+
3. Run \`succ status\` to check what's indexed
|
|
69
|
+
|
|
70
|
+
4. **Wrap Up**
|
|
71
|
+
- Ask if they have questions
|
|
72
|
+
- Let them know they can type "done" to proceed to setup
|
|
73
|
+
|
|
74
|
+
## Style Guidelines
|
|
75
|
+
- One question at a time
|
|
76
|
+
- Use concrete examples from their project type
|
|
77
|
+
- Match their language (technical vs casual)
|
|
78
|
+
- Keep responses under 100 words typically
|
|
79
|
+
- Use bullet points for lists
|
|
80
|
+
|
|
81
|
+
## Boundaries
|
|
82
|
+
- Do NOT pretend you can call tools or search anything
|
|
83
|
+
- Don't overwhelm with all features at once
|
|
84
|
+
- Don't configure technical settings (that's the setup wizard)
|
|
85
|
+
- If they want to skip, respect that immediately
|
|
86
|
+
|
|
87
|
+
## Starting the Conversation
|
|
88
|
+
Begin by introducing yourself briefly and asking what kind of project they're working on.`;
|
|
89
|
+
export const WIZARD_INTRO = `
|
|
90
|
+
Welcome to succ!
|
|
91
|
+
|
|
92
|
+
succ gives your AI assistant persistent memory and project knowledge.
|
|
93
|
+
Let me quickly show you what it can do.
|
|
94
|
+
`;
|
|
95
|
+
export const WIZARD_DISCOVERY_PROJECT = `
|
|
96
|
+
What are you building?
|
|
97
|
+
|
|
98
|
+
1. Web application
|
|
99
|
+
2. CLI tool / library
|
|
100
|
+
3. Mobile app
|
|
101
|
+
4. Something else
|
|
102
|
+
`;
|
|
103
|
+
export const WIZARD_DISCOVERY_FRUSTRATION = `
|
|
104
|
+
What frustrates you most about AI coding assistants?
|
|
105
|
+
|
|
106
|
+
1. Forgets context between sessions
|
|
107
|
+
2. Doesn't know my codebase patterns
|
|
108
|
+
3. I have to repeat decisions
|
|
109
|
+
4. Takes time to explain project structure
|
|
110
|
+
`;
|
|
111
|
+
export const WIZARD_SOLUTION_MAP = {
|
|
112
|
+
forgets: `**Memories** solve this!
|
|
113
|
+
succ stores decisions and learnings that persist across sessions.
|
|
114
|
+
AI remembers what you've discussed before.`,
|
|
115
|
+
codebase: `**Code Index + Brain Vault** solve this!
|
|
116
|
+
succ indexes your code and documentation for semantic search.
|
|
117
|
+
AI can find relevant files and understand patterns.`,
|
|
118
|
+
repeat: `**Memories** solve this!
|
|
119
|
+
When you make a decision, AI stores it with succ_remember.
|
|
120
|
+
Next session, it recalls with succ_recall — no repetition needed.`,
|
|
121
|
+
structure: `**Brain Vault** solves this!
|
|
122
|
+
Put architecture docs in .succ/brain/ and they're instantly searchable.
|
|
123
|
+
AI uses succ_search to find relevant context.`,
|
|
124
|
+
};
|
|
125
|
+
export const WIZARD_CONCEPTS_OVERVIEW = `
|
|
126
|
+
## How succ Works
|
|
127
|
+
|
|
128
|
+
**Brain Vault** (.succ/brain/)
|
|
129
|
+
Store docs, specs, patterns → AI searches them automatically
|
|
130
|
+
|
|
131
|
+
**Memories + Knowledge Graph**
|
|
132
|
+
AI remembers decisions, learnings, errors across sessions
|
|
133
|
+
Related memories are linked together for deeper context
|
|
134
|
+
|
|
135
|
+
**Code Index**
|
|
136
|
+
AST-aware semantic search across your source code (13+ languages)
|
|
137
|
+
|
|
138
|
+
**Web Tools**
|
|
139
|
+
Fetch any URL as clean markdown, extract structured data from pages
|
|
140
|
+
|
|
141
|
+
**MCP Tools**
|
|
142
|
+
AI uses succ_search, succ_recall, succ_fetch, etc. automatically
|
|
143
|
+
|
|
144
|
+
**Background Services**
|
|
145
|
+
Daemon: watch (auto-index) + analyze (discover patterns) + idle reflection
|
|
146
|
+
`;
|
|
147
|
+
export const WIZARD_HANDS_ON_PROMPT = `
|
|
148
|
+
Want to create your first memory? (optional)
|
|
149
|
+
|
|
150
|
+
Think of one decision you'd like the AI to always remember
|
|
151
|
+
about this project. For example:
|
|
152
|
+
- "We use PostgreSQL, not MySQL"
|
|
153
|
+
- "All API responses use snake_case"
|
|
154
|
+
- "Prefer composition over inheritance"
|
|
155
|
+
|
|
156
|
+
Type your decision, or press Enter to skip:
|
|
157
|
+
`;
|
|
158
|
+
export const WIZARD_CHEATSHEET = `
|
|
159
|
+
## Quick Reference
|
|
160
|
+
|
|
161
|
+
1. **Put important docs** in .succ/brain/
|
|
162
|
+
AI will find them with succ_search
|
|
163
|
+
|
|
164
|
+
2. **AI uses tools automatically**
|
|
165
|
+
No commands needed — just ask questions
|
|
166
|
+
|
|
167
|
+
3. **Index your code** with \`succ index-code\`
|
|
168
|
+
Enables semantic code search across your project
|
|
169
|
+
|
|
170
|
+
4. **Check status** with \`succ status\`
|
|
171
|
+
See what's indexed and running
|
|
172
|
+
|
|
173
|
+
5. **Multi-editor support**
|
|
174
|
+
Run \`succ setup cursor\` or \`succ setup windsurf\` for other editors
|
|
175
|
+
|
|
176
|
+
That's it! Now let's configure your setup.
|
|
177
|
+
`;
|
|
178
|
+
export const WIZARD_DONE = `
|
|
179
|
+
Onboarding complete!
|
|
180
|
+
|
|
181
|
+
Now proceeding to technical setup...
|
|
182
|
+
`;
|
|
183
|
+
//# sourceMappingURL=onboarding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.js","sourceRoot":"","sources":["../../src/prompts/onboarding.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAiFkD,CAAC;AAE3F,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;CAK3B,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;CAOvC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;CAO3C,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,OAAO,EAAE;;2CAEgC;IAEzC,QAAQ,EAAE;;oDAEwC;IAElD,MAAM,EAAE;;kEAEwD;IAEhE,SAAS,EAAE;;8CAEiC;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBvC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;CAUrC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;CAmBhC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;CAI1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PRD Pipeline Prompt Templates
|
|
3
|
+
*
|
|
4
|
+
* Three core prompts:
|
|
5
|
+
* 1. PRD_GENERATE_PROMPT — description → PRD markdown
|
|
6
|
+
* 2. PRD_PARSE_PROMPT — PRD markdown → Task[] JSON
|
|
7
|
+
* 3. TASK_EXECUTION_PROMPT — task context → agent instructions (used in Phase 2)
|
|
8
|
+
*/
|
|
9
|
+
export declare const PRD_GENERATE_PROMPT = "You are a senior software architect creating a Product Requirements Document (PRD) for an AI coding agent.\n\n## Your Task\n\nGiven a feature description and the project's technical context, generate a structured PRD in Markdown format.\n\n## Output Format\n\nGenerate a Markdown document with EXACTLY these sections:\n\n```markdown\n# PRD: {Feature Title}\n\n## Summary\n{1-3 sentences describing what this feature does and why}\n\n## Goals\n- {Goal 1}\n- {Goal 2}\n- ...\n\n## Out of Scope\n- {What this PRD explicitly does NOT cover}\n- ...\n\n## Technical Context\n\n{Table of existing files/modules relevant to this feature, based on the codebase context provided below}\n\n| File | Purpose | Relevance |\n|------|---------|-----------|\n| path/to/file.ts | What it does | Why it matters for this PRD |\n\n## Design Decisions\n- {Key architectural decisions and rationale}\n- ...\n\n## Stories\n\n### Story 1: {Title}\n{Description of what needs to be done}\n\n**Acceptance Criteria:**\n- [ ] {Criterion 1}\n- [ ] {Criterion 2}\n\n**Files likely affected:** `path/to/file.ts`, `path/to/other.ts`\n\n### Story 2: {Title}\n...\n\n## Quality Gates\n- {What must pass for this feature to be considered done}\n- TypeCheck: `npx tsc --noEmit`\n- Tests: `npm test` (if applicable)\n```\n\n## Rules\n\n1. Use REAL file paths from the Technical Context below \u2014 do not invent paths\n2. Keep stories small enough for a single AI coding session (~10 min, ~5 files max)\n3. Order stories by dependency (later stories can depend on earlier ones)\n4. Each story should be independently testable\n5. Include 3-15 stories (if more needed, the scope is too large)\n6. Be specific about acceptance criteria \u2014 vague criteria lead to premature completion\n7. Quality Gates must include at least one automated check\n\n## Technical Context (from codebase analysis)\n\n{codebase_context}\n\n## Feature Description\n\n{description}";
|
|
10
|
+
export declare const PRD_PARSE_PROMPT = "You are a task decomposition engine. Parse the given PRD into a JSON array of executable tasks.\n\n## Output Format\n\nReturn ONLY a valid JSON array (no markdown, no explanation). Each element must match this schema:\n\n```json\n[\n {\n \"sequence\": 1,\n \"title\": \"Short task title\",\n \"description\": \"Detailed description of what to implement\",\n \"priority\": \"high\",\n \"depends_on\": [],\n \"acceptance_criteria\": [\"Criterion 1\", \"Criterion 2\"],\n \"files_to_modify\": [\"src/path/to/file.ts\"],\n \"relevant_files\": [\"src/path/to/read-only-context.ts\"],\n \"context_queries\": [\"search query for succ memory\"]\n }\n]\n```\n\n## Field Rules\n\n- **sequence**: Integer starting from 1, determines default execution order\n- **title**: Short (under 80 chars), imperative form (\"Add X\", \"Implement Y\")\n- **description**: 2-5 sentences. Include enough detail for an AI coding agent to implement without ambiguity\n- **priority**: \"critical\" (blocks others), \"high\" (core feature), \"medium\" (enhancement), \"low\" (nice-to-have)\n- **depends_on**: Array of task IDs (format: \"task_001\"). Use when a task requires another task to complete first\n- **acceptance_criteria**: Concrete, verifiable conditions. Avoid vague criteria like \"works correctly\"\n- **files_to_modify**: REAL paths from the project structure. Files this task WILL create or modify\n- **relevant_files**: Files to READ for context but NOT modify\n- **context_queries**: Keywords for searching project memory (decisions, patterns, gotchas)\n\n## Task Sizing Rules (CRITICAL)\n\nEach task must be completable in a SINGLE Claude Code session (~10 minutes, ~80K token context):\n- Maximum 5 files to modify per task\n- If a story from the PRD requires more than 5 file changes, split it into sub-tasks\n- One task = one area of the codebase\n- Prefer more smaller tasks over fewer large ones\n\n## Conflict Prevention Rules\n\n- If two tasks modify the SAME file, they MUST be linked via depends_on\n- Examine files_to_modify for overlap between tasks and add dependencies accordingly\n- \"Index\" files (like cli.ts, index.ts) that multiple tasks touch should be modified in the LAST task that needs them\n\n## Validation\n\nYour output will be validated:\n- Tasks with empty files_to_modify will generate a warning\n- Tasks count < 3 or > 25 will generate a warning\n- Circular dependencies will be rejected\n\n## Technical Context (from codebase analysis)\n\n{codebase_context}\n\n## PRD Content\n\n{prd_content}";
|
|
11
|
+
export declare const TASK_EXECUTION_PROMPT = "You are an AI coding agent executing a specific task from a PRD pipeline.\n\n## Your Task\n\n{task_title}\n\n{task_description}\n\n## Acceptance Criteria\n\n{acceptance_criteria}\n\n## Files to Modify\n\n{files_to_modify}\n\n## Context Files (read-only reference)\n\n{relevant_files}\n\n## Project Memories & Past Decisions\n\n{recalled_memories}\n\n## Dead-End Warnings (DO NOT retry these approaches)\n\n{dead_end_warnings}\n\n## Progress So Far\n\n{progress_so_far}\n\n## Rules\n\n1. Focus ONLY on this task \u2014 do not modify files outside of \"Files to Modify\"\n2. Follow existing code conventions (imports, naming, patterns)\n3. If a task is impossible or blocked, explain WHY clearly instead of producing broken code\n4. Run quality gates after your changes:\n{quality_gates}\n5. Do not add comments explaining what you changed \u2014 the code should be self-explanatory\n6. Do not add extra features beyond what acceptance criteria require\n\n## Memory Tools\n\nYou have access to succ MCP tools. Use them:\n\n- **succ_recall** query=\"relevant topic\" \u2014 Search past decisions, patterns, gotchas before starting work\n- **succ_remember** content=\"what you learned\" type=\"learning\" \u2014 Record important decisions or patterns you discover\n- **succ_dead_end** approach=\"what you tried\" why_failed=\"why it failed\" \u2014 Record failed approaches so future tasks don't repeat them\n- **succ_search** query=\"topic\" \u2014 Search project documentation\n- **succ_search_code** query=\"function name\" \u2014 Search source code\n\nAlways pass project_path to these tools.\n\n## Important\n\nIf you cannot complete this task, output a clear explanation starting with \"BLOCKED:\" followed by the reason. This allows the pipeline to record a dead-end and retry with different context.";
|
|
12
|
+
//# sourceMappingURL=prd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prd.d.ts","sourceRoot":"","sources":["../../src/prompts/prd.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,eAAO,MAAM,mBAAmB,u4DAyElB,CAAC;AAMf,eAAO,MAAM,gBAAgB,q/EA6Df,CAAC;AAMf,eAAO,MAAM,qBAAqB,gxDAwD4J,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PRD Pipeline Prompt Templates
|
|
3
|
+
*
|
|
4
|
+
* Three core prompts:
|
|
5
|
+
* 1. PRD_GENERATE_PROMPT — description → PRD markdown
|
|
6
|
+
* 2. PRD_PARSE_PROMPT — PRD markdown → Task[] JSON
|
|
7
|
+
* 3. TASK_EXECUTION_PROMPT — task context → agent instructions (used in Phase 2)
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// PRD Generation
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export const PRD_GENERATE_PROMPT = `You are a senior software architect creating a Product Requirements Document (PRD) for an AI coding agent.
|
|
13
|
+
|
|
14
|
+
## Your Task
|
|
15
|
+
|
|
16
|
+
Given a feature description and the project's technical context, generate a structured PRD in Markdown format.
|
|
17
|
+
|
|
18
|
+
## Output Format
|
|
19
|
+
|
|
20
|
+
Generate a Markdown document with EXACTLY these sections:
|
|
21
|
+
|
|
22
|
+
\`\`\`markdown
|
|
23
|
+
# PRD: {Feature Title}
|
|
24
|
+
|
|
25
|
+
## Summary
|
|
26
|
+
{1-3 sentences describing what this feature does and why}
|
|
27
|
+
|
|
28
|
+
## Goals
|
|
29
|
+
- {Goal 1}
|
|
30
|
+
- {Goal 2}
|
|
31
|
+
- ...
|
|
32
|
+
|
|
33
|
+
## Out of Scope
|
|
34
|
+
- {What this PRD explicitly does NOT cover}
|
|
35
|
+
- ...
|
|
36
|
+
|
|
37
|
+
## Technical Context
|
|
38
|
+
|
|
39
|
+
{Table of existing files/modules relevant to this feature, based on the codebase context provided below}
|
|
40
|
+
|
|
41
|
+
| File | Purpose | Relevance |
|
|
42
|
+
|------|---------|-----------|
|
|
43
|
+
| path/to/file.ts | What it does | Why it matters for this PRD |
|
|
44
|
+
|
|
45
|
+
## Design Decisions
|
|
46
|
+
- {Key architectural decisions and rationale}
|
|
47
|
+
- ...
|
|
48
|
+
|
|
49
|
+
## Stories
|
|
50
|
+
|
|
51
|
+
### Story 1: {Title}
|
|
52
|
+
{Description of what needs to be done}
|
|
53
|
+
|
|
54
|
+
**Acceptance Criteria:**
|
|
55
|
+
- [ ] {Criterion 1}
|
|
56
|
+
- [ ] {Criterion 2}
|
|
57
|
+
|
|
58
|
+
**Files likely affected:** \`path/to/file.ts\`, \`path/to/other.ts\`
|
|
59
|
+
|
|
60
|
+
### Story 2: {Title}
|
|
61
|
+
...
|
|
62
|
+
|
|
63
|
+
## Quality Gates
|
|
64
|
+
- {What must pass for this feature to be considered done}
|
|
65
|
+
- TypeCheck: \`npx tsc --noEmit\`
|
|
66
|
+
- Tests: \`npm test\` (if applicable)
|
|
67
|
+
\`\`\`
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
1. Use REAL file paths from the Technical Context below — do not invent paths
|
|
72
|
+
2. Keep stories small enough for a single AI coding session (~10 min, ~5 files max)
|
|
73
|
+
3. Order stories by dependency (later stories can depend on earlier ones)
|
|
74
|
+
4. Each story should be independently testable
|
|
75
|
+
5. Include 3-15 stories (if more needed, the scope is too large)
|
|
76
|
+
6. Be specific about acceptance criteria — vague criteria lead to premature completion
|
|
77
|
+
7. Quality Gates must include at least one automated check
|
|
78
|
+
|
|
79
|
+
## Technical Context (from codebase analysis)
|
|
80
|
+
|
|
81
|
+
{codebase_context}
|
|
82
|
+
|
|
83
|
+
## Feature Description
|
|
84
|
+
|
|
85
|
+
{description}`;
|
|
86
|
+
// ============================================================================
|
|
87
|
+
// PRD Parsing (into Tasks)
|
|
88
|
+
// ============================================================================
|
|
89
|
+
export const PRD_PARSE_PROMPT = `You are a task decomposition engine. Parse the given PRD into a JSON array of executable tasks.
|
|
90
|
+
|
|
91
|
+
## Output Format
|
|
92
|
+
|
|
93
|
+
Return ONLY a valid JSON array (no markdown, no explanation). Each element must match this schema:
|
|
94
|
+
|
|
95
|
+
\`\`\`json
|
|
96
|
+
[
|
|
97
|
+
{
|
|
98
|
+
"sequence": 1,
|
|
99
|
+
"title": "Short task title",
|
|
100
|
+
"description": "Detailed description of what to implement",
|
|
101
|
+
"priority": "high",
|
|
102
|
+
"depends_on": [],
|
|
103
|
+
"acceptance_criteria": ["Criterion 1", "Criterion 2"],
|
|
104
|
+
"files_to_modify": ["src/path/to/file.ts"],
|
|
105
|
+
"relevant_files": ["src/path/to/read-only-context.ts"],
|
|
106
|
+
"context_queries": ["search query for succ memory"]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
\`\`\`
|
|
110
|
+
|
|
111
|
+
## Field Rules
|
|
112
|
+
|
|
113
|
+
- **sequence**: Integer starting from 1, determines default execution order
|
|
114
|
+
- **title**: Short (under 80 chars), imperative form ("Add X", "Implement Y")
|
|
115
|
+
- **description**: 2-5 sentences. Include enough detail for an AI coding agent to implement without ambiguity
|
|
116
|
+
- **priority**: "critical" (blocks others), "high" (core feature), "medium" (enhancement), "low" (nice-to-have)
|
|
117
|
+
- **depends_on**: Array of task IDs (format: "task_001"). Use when a task requires another task to complete first
|
|
118
|
+
- **acceptance_criteria**: Concrete, verifiable conditions. Avoid vague criteria like "works correctly"
|
|
119
|
+
- **files_to_modify**: REAL paths from the project structure. Files this task WILL create or modify
|
|
120
|
+
- **relevant_files**: Files to READ for context but NOT modify
|
|
121
|
+
- **context_queries**: Keywords for searching project memory (decisions, patterns, gotchas)
|
|
122
|
+
|
|
123
|
+
## Task Sizing Rules (CRITICAL)
|
|
124
|
+
|
|
125
|
+
Each task must be completable in a SINGLE Claude Code session (~10 minutes, ~80K token context):
|
|
126
|
+
- Maximum 5 files to modify per task
|
|
127
|
+
- If a story from the PRD requires more than 5 file changes, split it into sub-tasks
|
|
128
|
+
- One task = one area of the codebase
|
|
129
|
+
- Prefer more smaller tasks over fewer large ones
|
|
130
|
+
|
|
131
|
+
## Conflict Prevention Rules
|
|
132
|
+
|
|
133
|
+
- If two tasks modify the SAME file, they MUST be linked via depends_on
|
|
134
|
+
- Examine files_to_modify for overlap between tasks and add dependencies accordingly
|
|
135
|
+
- "Index" files (like cli.ts, index.ts) that multiple tasks touch should be modified in the LAST task that needs them
|
|
136
|
+
|
|
137
|
+
## Validation
|
|
138
|
+
|
|
139
|
+
Your output will be validated:
|
|
140
|
+
- Tasks with empty files_to_modify will generate a warning
|
|
141
|
+
- Tasks count < 3 or > 25 will generate a warning
|
|
142
|
+
- Circular dependencies will be rejected
|
|
143
|
+
|
|
144
|
+
## Technical Context (from codebase analysis)
|
|
145
|
+
|
|
146
|
+
{codebase_context}
|
|
147
|
+
|
|
148
|
+
## PRD Content
|
|
149
|
+
|
|
150
|
+
{prd_content}`;
|
|
151
|
+
// ============================================================================
|
|
152
|
+
// Task Execution (Phase 2 — defined here for completeness)
|
|
153
|
+
// ============================================================================
|
|
154
|
+
export const TASK_EXECUTION_PROMPT = `You are an AI coding agent executing a specific task from a PRD pipeline.
|
|
155
|
+
|
|
156
|
+
## Your Task
|
|
157
|
+
|
|
158
|
+
{task_title}
|
|
159
|
+
|
|
160
|
+
{task_description}
|
|
161
|
+
|
|
162
|
+
## Acceptance Criteria
|
|
163
|
+
|
|
164
|
+
{acceptance_criteria}
|
|
165
|
+
|
|
166
|
+
## Files to Modify
|
|
167
|
+
|
|
168
|
+
{files_to_modify}
|
|
169
|
+
|
|
170
|
+
## Context Files (read-only reference)
|
|
171
|
+
|
|
172
|
+
{relevant_files}
|
|
173
|
+
|
|
174
|
+
## Project Memories & Past Decisions
|
|
175
|
+
|
|
176
|
+
{recalled_memories}
|
|
177
|
+
|
|
178
|
+
## Dead-End Warnings (DO NOT retry these approaches)
|
|
179
|
+
|
|
180
|
+
{dead_end_warnings}
|
|
181
|
+
|
|
182
|
+
## Progress So Far
|
|
183
|
+
|
|
184
|
+
{progress_so_far}
|
|
185
|
+
|
|
186
|
+
## Rules
|
|
187
|
+
|
|
188
|
+
1. Focus ONLY on this task — do not modify files outside of "Files to Modify"
|
|
189
|
+
2. Follow existing code conventions (imports, naming, patterns)
|
|
190
|
+
3. If a task is impossible or blocked, explain WHY clearly instead of producing broken code
|
|
191
|
+
4. Run quality gates after your changes:
|
|
192
|
+
{quality_gates}
|
|
193
|
+
5. Do not add comments explaining what you changed — the code should be self-explanatory
|
|
194
|
+
6. Do not add extra features beyond what acceptance criteria require
|
|
195
|
+
|
|
196
|
+
## Memory Tools
|
|
197
|
+
|
|
198
|
+
You have access to succ MCP tools. Use them:
|
|
199
|
+
|
|
200
|
+
- **succ_recall** query="relevant topic" — Search past decisions, patterns, gotchas before starting work
|
|
201
|
+
- **succ_remember** content="what you learned" type="learning" — Record important decisions or patterns you discover
|
|
202
|
+
- **succ_dead_end** approach="what you tried" why_failed="why it failed" — Record failed approaches so future tasks don't repeat them
|
|
203
|
+
- **succ_search** query="topic" — Search project documentation
|
|
204
|
+
- **succ_search_code** query="function name" — Search source code
|
|
205
|
+
|
|
206
|
+
Always pass project_path to these tools.
|
|
207
|
+
|
|
208
|
+
## Important
|
|
209
|
+
|
|
210
|
+
If you cannot complete this task, output a clear explanation starting with "BLOCKED:" followed by the reason. This allows the pipeline to record a dead-end and retry with different context.`;
|
|
211
|
+
//# sourceMappingURL=prd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prd.js","sourceRoot":"","sources":["../../src/prompts/prd.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyErB,CAAC;AAEf,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6DlB,CAAC;AAEf,+EAA+E;AAC/E,2DAA2D;AAC3D,+EAA+E;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8LAwDyJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality Scoring Prompts
|
|
3
|
+
*
|
|
4
|
+
* Used for memory quality assessment.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* System prompt for quality scorer role.
|
|
8
|
+
* Used in LLM-based quality scoring.
|
|
9
|
+
*/
|
|
10
|
+
export declare const QUALITY_SCORER_SYSTEM = "You are a quality scorer for development memories. Respond only with valid JSON.";
|
|
11
|
+
//# sourceMappingURL=quality.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality.d.ts","sourceRoot":"","sources":["../../src/prompts/quality.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qFAAqF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality Scoring Prompts
|
|
3
|
+
*
|
|
4
|
+
* Used for memory quality assessment.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* System prompt for quality scorer role.
|
|
8
|
+
* Used in LLM-based quality scoring.
|
|
9
|
+
*/
|
|
10
|
+
export const QUALITY_SCORER_SYSTEM = `You are a quality scorer for development memories. Respond only with valid JSON.`;
|
|
11
|
+
//# sourceMappingURL=quality.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality.js","sourceRoot":"","sources":["../../src/prompts/quality.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,kFAAkF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills System Prompts
|
|
3
|
+
*
|
|
4
|
+
* Used for skill discovery and ranking.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Extract technical keywords from user message.
|
|
8
|
+
* Used for BM25 skill search.
|
|
9
|
+
*/
|
|
10
|
+
export declare const KEYWORD_EXTRACTION_PROMPT = "Extract technical keywords from this user message.\nMessage: \"{prompt}\"\nOutput JSON only: {\"keywords\": [\"keyword1\", \"keyword2\"]} or {\"keywords\": []} if none.\nOnly technical terms, tools, frameworks, concepts. Max 5 keywords.\nWorks for any language - extract the technical concepts in English.";
|
|
11
|
+
/**
|
|
12
|
+
* Rank skill candidates based on user request.
|
|
13
|
+
* Used to select the most relevant skills from BM25 candidates.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SKILL_RANKING_PROMPT = "Analyze this user request and select relevant skills.\n\nUser request: \"{user_prompt}\"\n\nAvailable skills:\n{skills_list}\n\nRESPOND WITH JSON ONLY - no explanation, no markdown, just the JSON object:\n{\"suggestions\":[{\"name\":\"exact-skill-name\",\"reason\":\"one sentence why\",\"confidence\":0.95}],\"skip_reason\":\"if none\"}\n\nRules: confidence>0.7, max 2 skills, use exact skill names from the list above.";
|
|
16
|
+
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/prompts/skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,sTAI8B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,waAU+C,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills System Prompts
|
|
3
|
+
*
|
|
4
|
+
* Used for skill discovery and ranking.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Extract technical keywords from user message.
|
|
8
|
+
* Used for BM25 skill search.
|
|
9
|
+
*/
|
|
10
|
+
export const KEYWORD_EXTRACTION_PROMPT = `Extract technical keywords from this user message.
|
|
11
|
+
Message: "{prompt}"
|
|
12
|
+
Output JSON only: {"keywords": ["keyword1", "keyword2"]} or {"keywords": []} if none.
|
|
13
|
+
Only technical terms, tools, frameworks, concepts. Max 5 keywords.
|
|
14
|
+
Works for any language - extract the technical concepts in English.`;
|
|
15
|
+
/**
|
|
16
|
+
* Rank skill candidates based on user request.
|
|
17
|
+
* Used to select the most relevant skills from BM25 candidates.
|
|
18
|
+
*/
|
|
19
|
+
export const SKILL_RANKING_PROMPT = `Analyze this user request and select relevant skills.
|
|
20
|
+
|
|
21
|
+
User request: "{user_prompt}"
|
|
22
|
+
|
|
23
|
+
Available skills:
|
|
24
|
+
{skills_list}
|
|
25
|
+
|
|
26
|
+
RESPOND WITH JSON ONLY - no explanation, no markdown, just the JSON object:
|
|
27
|
+
{"suggestions":[{"name":"exact-skill-name","reason":"one sentence why","confidence":0.95}],"skip_reason":"if none"}
|
|
28
|
+
|
|
29
|
+
Rules: confidence>0.7, max 2 skills, use exact skill names from the list above.`;
|
|
30
|
+
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../../src/prompts/skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;oEAI2B,CAAC;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;gFAU4C,CAAC"}
|