Package Exports
- @layermix/cli
- @layermix/cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@layermix/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LayerMix CLI
Support package for LayerMix framework.
It provides:
- The default packages, so upgrades are easier
- A CLI tool to:
- Codegen
- Run all kinds for checks
- AI-enhanced code generation with documentation context
AI Enhancement
The CLI includes an AI enhancement feature that can improve your generated code by:
- Using Aider to enhance code based on your instructions
- Automatically finding relevant documentation using vector search
- Including documentation context to produce better results
How it works
When you generate code, you'll be asked if you want to enhance it with AI. If you choose to do so:
- You'll provide instructions for how to improve the code
- You can optionally include relevant documentation context
- The system will search through
docsfiles using vector embeddings - The most relevant documentation will be included as context for the AI
Documentation
Place your documentation files in a docs directory with the .md extension.
The system will automatically generate and cache embeddings in docs/_embeddings.
Requirements
- For automatic documentation search using vector embeddings, you need an OpenAI API key.
- Set the
OPENAI_API_KEYenvironment variable before running the CLI. - If no API key is available, you can still manually select documentation files to include.