create-universal-ai-context 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-ai-context.js +28 -10
- package/lib/adapters/aider.js +131 -0
- package/lib/adapters/antigravity.js +47 -2
- package/lib/adapters/claude.js +100 -25
- package/lib/adapters/cline.js +16 -2
- package/lib/adapters/continue.js +138 -0
- package/lib/adapters/copilot.js +16 -2
- package/lib/adapters/index.js +11 -2
- package/lib/adapters/windsurf.js +138 -0
- package/lib/ai-orchestrator.js +2 -1
- package/lib/content-preservation.js +243 -0
- package/lib/index.js +11 -4
- package/lib/placeholder.js +82 -1
- package/lib/template-coordination.js +148 -0
- package/lib/template-renderer.js +15 -5
- package/lib/utils/fs-wrapper.js +79 -0
- package/lib/utils/path-utils.js +60 -0
- package/package.json +1 -1
- package/templates/handlebars/aider-config.hbs +80 -0
- package/templates/handlebars/antigravity.hbs +40 -0
- package/templates/handlebars/claude.hbs +1 -2
- package/templates/handlebars/cline.hbs +1 -2
- package/templates/handlebars/continue-config.hbs +116 -0
- package/templates/handlebars/copilot.hbs +1 -2
- package/templates/handlebars/partials/header.hbs +1 -1
- package/templates/handlebars/windsurf-rules.hbs +69 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{{!-- Windsurf Cascade Rules Template --}}
|
|
2
|
+
# {{project.name}} - Windsurf Cascade Rules
|
|
3
|
+
|
|
4
|
+
**Tech Stack:** {{join project.tech_stack ", "}}
|
|
5
|
+
**Status:** Active
|
|
6
|
+
|
|
7
|
+
<communication>
|
|
8
|
+
- Speak to me in a professional, technical manner
|
|
9
|
+
- Provide clear explanations for code changes
|
|
10
|
+
- Reference specific files and line numbers when discussing changes
|
|
11
|
+
- Ask clarifying questions when requirements are ambiguous
|
|
12
|
+
</communication>
|
|
13
|
+
|
|
14
|
+
<filesystem>
|
|
15
|
+
{{#if key_files.entry_points}}
|
|
16
|
+
- Key project files: {{join key_files.entry_points ", "}}
|
|
17
|
+
{{/if}}
|
|
18
|
+
- Models directory: {{#each architecture.layers}}{{#if (ifEquals name 'models')}}{{path}}{{/if}}{{/each}}
|
|
19
|
+
- Migrations directory: {{#each architecture.layers}}{{#if (ifEquals name 'migrations')}}{{path}}{{/if}}{{/each}}
|
|
20
|
+
- Treat node_modules, build, dist as read-only
|
|
21
|
+
</filesystem>
|
|
22
|
+
|
|
23
|
+
<coding>
|
|
24
|
+
- Primary language: {{project.primary_language}}
|
|
25
|
+
- Framework: {{#each architecture.layers}}{{#if (ifEquals name 'framework')}}{{name}}{{/if}}{{/each}}
|
|
26
|
+
- Testing framework: jest
|
|
27
|
+
- Follow existing code style and patterns
|
|
28
|
+
- Add type hints/annotations for all functions
|
|
29
|
+
- Write tests for new functionality (target: 80% coverage)
|
|
30
|
+
- Use early returns when possible
|
|
31
|
+
- Avoid deep nesting (>4 levels)
|
|
32
|
+
- Keep functions focused and small (<50 lines)
|
|
33
|
+
</coding>
|
|
34
|
+
|
|
35
|
+
<commands>
|
|
36
|
+
| Command | Purpose |
|
|
37
|
+
|---------|---------|
|
|
38
|
+
| {{commands.install}} | Install dependencies |
|
|
39
|
+
| {{commands.dev}} | Start development server |
|
|
40
|
+
| {{commands.test}} | Run tests |
|
|
41
|
+
| {{commands.build}} | Build for production |
|
|
42
|
+
</commands>
|
|
43
|
+
|
|
44
|
+
<architecture>
|
|
45
|
+
{{project.description}}
|
|
46
|
+
|
|
47
|
+
Key patterns:
|
|
48
|
+
- {{architecture.pattern}}
|
|
49
|
+
{{#each architecture.layers}}
|
|
50
|
+
- {{name}}: {{purpose}}
|
|
51
|
+
{{/each}}
|
|
52
|
+
</architecture>
|
|
53
|
+
|
|
54
|
+
<testing>
|
|
55
|
+
- Write tests before implementing features
|
|
56
|
+
- Use jest for mocking
|
|
57
|
+
- Test edge cases and error conditions
|
|
58
|
+
- Keep tests independent and fast
|
|
59
|
+
</testing>
|
|
60
|
+
|
|
61
|
+
<security>
|
|
62
|
+
- Never commit secrets or API keys
|
|
63
|
+
- Validate all user inputs
|
|
64
|
+
- Use parameterized queries to prevent injection
|
|
65
|
+
- Follow OWASP security guidelines
|
|
66
|
+
</security>
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
{{{coordination.footer}}}
|