autosnippet 3.1.8 → 3.1.11
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/README.md +18 -0
- package/dashboard/dist/assets/{index-Ciz4nd_4.js → index-CouVVugt.js} +4 -4
- package/dashboard/dist/index.html +1 -1
- package/lib/core/AstAnalyzer.js +13 -0
- package/lib/core/discovery/DartDiscoverer.js +1 -0
- package/lib/core/discovery/GenericDiscoverer.js +1 -0
- package/lib/core/discovery/GoDiscoverer.js +1 -0
- package/lib/core/discovery/JvmDiscoverer.js +1 -0
- package/lib/core/discovery/NodeDiscoverer.js +1 -0
- package/lib/core/discovery/PythonDiscoverer.js +1 -0
- package/lib/core/discovery/RustDiscoverer.js +1 -0
- package/lib/domain/knowledge/KnowledgeEntry.js +2 -0
- package/lib/domain/knowledge/Lifecycle.js +1 -0
- package/lib/external/ai/AiProvider.js +6 -10
- package/lib/external/mcp/handlers/LanguageExtensions.js +546 -319
- package/lib/external/mcp/handlers/bootstrap/BootstrapSession.js +2 -1
- package/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js +325 -69
- package/lib/external/mcp/handlers/bootstrap/pipeline/EpisodicMemory.js +10 -10
- package/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js +58 -153
- package/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js +158 -11
- package/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.js +71 -32
- package/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js +94 -55
- package/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js +39 -0
- package/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js +12 -35
- package/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js +6 -1
- package/lib/external/mcp/handlers/bootstrap/skills.js +25 -246
- package/lib/external/mcp/handlers/bootstrap-external.js +9 -10
- package/lib/external/mcp/handlers/bootstrap-internal.js +80 -502
- package/lib/external/mcp/handlers/consolidated.js +18 -35
- package/lib/external/mcp/handlers/dimension-complete-external.js +144 -42
- package/lib/external/mcp/handlers/knowledge.js +44 -74
- package/lib/external/mcp/handlers/skill.js +0 -14
- package/lib/external/mcp/handlers/wiki-external.js +14 -0
- package/lib/external/mcp/tools.js +3 -1
- package/lib/infrastructure/external/NativeUi.js +37 -0
- package/lib/platform/ios/spm/SpmService.js +2 -20
- package/lib/service/chat/AnalystAgent.js +29 -6
- package/lib/service/chat/ChatAgent.js +3 -3
- package/lib/service/chat/ProducerAgent.js +6 -52
- package/lib/service/chat/tools/ai-analysis.js +0 -17
- package/lib/service/chat/tools/composite.js +70 -1
- package/lib/service/chat/tools/infrastructure.js +2 -2
- package/lib/service/chat/tools/lifecycle.js +31 -29
- package/lib/service/knowledge/KnowledgeFileWriter.js +38 -4
- package/lib/service/knowledge/KnowledgeService.js +3 -6
- package/lib/service/module/ModuleService.js +2 -18
- package/lib/service/recipe/RecipeCandidateValidator.js +5 -13
- package/lib/shared/BootstrapEventEmitter.js +123 -0
- package/lib/shared/FieldSpec.js +359 -0
- package/lib/shared/RecipeReadinessChecker.js +20 -119
- package/lib/shared/StyleGuide.js +107 -0
- package/lib/shared/UnifiedValidator.js +355 -0
- package/package.json +1 -1
- package/scripts/build-native-ui.js +19 -0
- package/scripts/postinstall-safe.js +55 -3
- package/skills/autosnippet-coldstart/SKILL.md +5 -21
- package/templates/copilot-instructions.md +2 -2
- package/templates/cursor-rules/autosnippet-conventions.mdc +1 -0
- package/templates/recipes-setup/_template.md +18 -3
- package/lib/service/chat/CandidateGuardrail.js +0 -276
- package/skills/autosnippet-reference-dart/SKILL.md +0 -543
- package/skills/autosnippet-reference-go/SKILL.md +0 -539
- package/skills/autosnippet-reference-java/SKILL.md +0 -534
- package/skills/autosnippet-reference-jsts/SKILL.md +0 -470
- package/skills/autosnippet-reference-kotlin/SKILL.md +0 -526
- package/skills/autosnippet-reference-objc/SKILL.md +0 -448
- package/skills/autosnippet-reference-python/SKILL.md +0 -800
- package/skills/autosnippet-reference-rust/SKILL.md +0 -401
- 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).
|