chore: using mise to manage node versions and tasks (#44)

* add mise for Node.js version management

Replace ad-hoc Node version pinning with mise (mise.toml + mise.lock).
This ensures all contributors and CI use the same Node LTS version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* expand mise with env loading, PATH management, and task runner

- [env] _.file loads .env files for local API keys (replaces dotenv)
- [env] _.path adds node_modules/.bin to PATH for direct tool access
- [tasks] mirrors npm scripts with sources/outputs for file-based caching
- eval tasks for running LLM evaluations via mise run
- update AGENTS.md and CONTRIBUTING.md to use mise run commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pedro Rodrigues
2026-02-17 12:44:44 +00:00
committed by GitHub
parent 32142e85fd
commit 760460c221
5 changed files with 124 additions and 14 deletions

View File

@@ -12,6 +12,26 @@ To ensure a positive and inclusive environment, please read our
[code of conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md)
before contributing.
### Setup
This project uses [mise](https://mise.jdx.dev/) to manage tool versions,
environment variables, and project tasks. Install mise, then run from the
repository root:
```bash
mise install # Install Node.js (version defined in mise.toml)
mise run install # Install all npm dependencies
```
For LLM evals, copy the env example and add your API keys:
```bash
cp packages/evals/.env.example packages/evals/.env
# Edit packages/evals/.env with your ANTHROPIC_API_KEY and OPENAI_API_KEY
```
mise automatically loads `.env` files defined in `mise.toml`.
## Issues
If you find a typo, have a suggestion for a new skill/reference, or want to improve
@@ -39,14 +59,17 @@ We actively welcome your Pull Requests! Here's what to keep in mind:
### Pre-Flight Checks
Before submitting your PR, please run these checks:
Before submitting your PR, make sure you have the right tooling and run these
checks:
```bash
npm run validate # Check reference format and structure
npm run build # Generate AGENTS.md from references
mise install # Ensure correct Node.js version
mise run check # Format and lint (auto-fix)
mise run validate # Check reference format and structure
mise run build # Generate AGENTS.md from references
```
Both commands must complete successfully.
All commands must complete successfully.
## Contributing New References
@@ -59,8 +82,8 @@ To add a reference to an existing skill:
5. Run validation and build:
```bash
npm run validate
npm run build
mise run validate
mise run build
```
## Creating a New Skill
@@ -118,7 +141,7 @@ Example: `first-example-reference.md` for section "First Category"
### 5. Build
```bash
npm run build
mise run build
```
The build system auto-discovers skills by looking for `SKILL.md` files.