autosnippet 3.1.7 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +18 -0
  2. package/dashboard/dist/assets/{index-Ciz4nd_4.js → index-CouVVugt.js} +4 -4
  3. package/dashboard/dist/index.html +1 -1
  4. package/lib/core/AstAnalyzer.js +13 -0
  5. package/lib/core/discovery/DartDiscoverer.js +1 -0
  6. package/lib/core/discovery/GenericDiscoverer.js +1 -0
  7. package/lib/core/discovery/GoDiscoverer.js +1 -0
  8. package/lib/core/discovery/JvmDiscoverer.js +1 -0
  9. package/lib/core/discovery/NodeDiscoverer.js +1 -0
  10. package/lib/core/discovery/PythonDiscoverer.js +1 -0
  11. package/lib/core/discovery/RustDiscoverer.js +1 -0
  12. package/lib/domain/knowledge/KnowledgeEntry.js +2 -0
  13. package/lib/domain/knowledge/Lifecycle.js +1 -0
  14. package/lib/external/ai/AiProvider.js +6 -10
  15. package/lib/external/mcp/handlers/LanguageExtensions.js +546 -319
  16. package/lib/external/mcp/handlers/bootstrap/BootstrapSession.js +2 -1
  17. package/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js +325 -69
  18. package/lib/external/mcp/handlers/bootstrap/pipeline/EpisodicMemory.js +10 -10
  19. package/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js +58 -153
  20. package/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js +158 -11
  21. package/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.js +71 -32
  22. package/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js +94 -55
  23. package/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js +53 -14
  24. package/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js +12 -35
  25. package/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js +6 -1
  26. package/lib/external/mcp/handlers/bootstrap/skills.js +25 -246
  27. package/lib/external/mcp/handlers/bootstrap-external.js +9 -10
  28. package/lib/external/mcp/handlers/bootstrap-internal.js +80 -502
  29. package/lib/external/mcp/handlers/consolidated.js +18 -35
  30. package/lib/external/mcp/handlers/dimension-complete-external.js +144 -42
  31. package/lib/external/mcp/handlers/knowledge.js +44 -74
  32. package/lib/external/mcp/handlers/skill.js +0 -14
  33. package/lib/external/mcp/handlers/wiki-external.js +14 -0
  34. package/lib/external/mcp/tools.js +3 -1
  35. package/lib/platform/ios/spm/SpmService.js +2 -20
  36. package/lib/service/chat/AnalystAgent.js +29 -6
  37. package/lib/service/chat/ChatAgent.js +3 -3
  38. package/lib/service/chat/ProducerAgent.js +6 -52
  39. package/lib/service/chat/tools/ai-analysis.js +0 -17
  40. package/lib/service/chat/tools/composite.js +70 -1
  41. package/lib/service/chat/tools/infrastructure.js +2 -2
  42. package/lib/service/chat/tools/lifecycle.js +31 -29
  43. package/lib/service/knowledge/KnowledgeFileWriter.js +38 -4
  44. package/lib/service/knowledge/KnowledgeService.js +3 -6
  45. package/lib/service/module/ModuleService.js +2 -18
  46. package/lib/service/recipe/RecipeCandidateValidator.js +5 -13
  47. package/lib/shared/BootstrapEventEmitter.js +123 -0
  48. package/lib/shared/FieldSpec.js +359 -0
  49. package/lib/shared/RecipeReadinessChecker.js +20 -119
  50. package/lib/shared/StyleGuide.js +107 -0
  51. package/lib/shared/UnifiedValidator.js +355 -0
  52. package/package.json +1 -1
  53. package/skills/autosnippet-coldstart/SKILL.md +5 -21
  54. package/templates/copilot-instructions.md +2 -2
  55. package/templates/cursor-rules/autosnippet-conventions.mdc +1 -0
  56. package/templates/recipes-setup/_template.md +18 -3
  57. package/lib/service/chat/CandidateGuardrail.js +0 -276
  58. package/skills/autosnippet-reference-dart/SKILL.md +0 -543
  59. package/skills/autosnippet-reference-go/SKILL.md +0 -539
  60. package/skills/autosnippet-reference-java/SKILL.md +0 -534
  61. package/skills/autosnippet-reference-jsts/SKILL.md +0 -470
  62. package/skills/autosnippet-reference-kotlin/SKILL.md +0 -526
  63. package/skills/autosnippet-reference-objc/SKILL.md +0 -448
  64. package/skills/autosnippet-reference-python/SKILL.md +0 -800
  65. package/skills/autosnippet-reference-rust/SKILL.md +0 -401
  66. package/skills/autosnippet-reference-swift/SKILL.md +0 -515
package/README.md CHANGED
@@ -65,6 +65,24 @@ That's it. After you approve some candidates, they become **Recipes** — struct
65
65
 
66
66
  You can also scan specific modules with `asd ais <target>`. Better yet, just describe what you want in Cursor using natural language — the AI will automatically invoke the knowledge base to scan and submit patterns for you.
67
67
 
68
+ ## Dual Pipeline — Internal Agent & External Agent
69
+
70
+ Every core capability works through two fully independent pipelines. Pick whichever fits your setup — or use both:
71
+
72
+ | Capability | Internal Agent (built-in AI) | External Agent (IDE-driven) |
73
+ |---|---|---|
74
+ | **Cold Start** | Analyst/Producer dual-agent auto-scan | IDE agent reads Mission Briefing + MCP tools |
75
+ | **Knowledge Extraction** | `asd ais` → built-in AI pipeline | Cursor/Copilot calls `submit_with_check` |
76
+ | **Project Skills** | Auto-generated from analysis text | IDE agent calls `autosnippet_skill(create)` |
77
+ | **Repo Wiki** | Auto-generated at end of cold start | IDE agent calls wiki MCP tools |
78
+ | **Guard** | Built-in rule engine (no AI needed) | Same — shared infrastructure |
79
+ | **Search & Retrieval** | MCP server serves results | Same — shared infrastructure |
80
+ | **Requires** | AI provider API key | IDE with agent capabilities |
81
+
82
+ If no AI is available at all, a rule-based fallback still extracts basic knowledge from AST and Guard data.
83
+
84
+ > **LLM quality matters.** Higher-capability models (Claude Opus/Sonnet, GPT-4o, Gemini 2.5 Pro) produce significantly better results — more accurate patterns, richer architectural insights, fewer false positives.
85
+
68
86
  ## What's in the Box
69
87
 
70
88
  **Pattern extraction** — AI reads your code, identifies reusable patterns, and structures them as Recipes with code, explanation, metadata, and usage guidelines. Supports ObjC, Swift, TypeScript, JavaScript, Python, Java, Kotlin, Go, Ruby (9 languages via Tree-sitter AST).