Development workflow
This guide is for changes to Evin, ESH, built-in actions, the editor, and the Everyinit site. Start with the owning module, make the smallest change that captures the intended behavior, and run the checks for the affected area.
Set up the workspace
Linux x86_64 is the supported development and CI platform. Install the pinned Rust, Node.js, and npm versions with mise:
mise install --locked
cargo evin-dev run doctor
cargo evin-dev run bootstrap
bootstrap fetches Rust dependencies, installs both npm lockfiles, installs
Playwright Chromium, and synchronizes the repository's Git hooks. Run it after
installing the toolchains and whenever dependencies change. Keep the tracked
lockfiles authoritative: use npm ci for local installs and change a lockfile
only when you intend to update dependencies.
If your shell does not load mise automatically, prefix commands with
mise exec --, for example mise exec -- cargo evin-dev run verify. Use the
version files in the repository when changing a toolchain; do not duplicate
their versions in CI or package scripts without a specific need.
Make a focused change
Find the nearest task file and use Evin's task list to discover the available commands:
cargo evin-dev list
cargo evin-dev explain verify
The main source areas are:
| Change | Start here |
|---|---|
| Workflow engine or ESH runtime | crates/evin/, crates/esh/, and the focused crates under crates/ |
| Built-in action behavior | builtins/; each action keeps its versioned contract and implementation together |
| Public docs or generated catalogs | docs/ and docs/.evin/module.flow |
| Website and docs presentation | apps/everyinit/ and packages/everyinit/ |
| VS Code client and language features | editors/vscode/ |
| Cloudflare Workers and infrastructure | infra/ |
Keep responsibilities near their owner. For example, put task orchestration
in .flow files, ESH script behavior in ESH, and action-specific validation
with the action implementation. If a change affects a public contract, update
its reference page and the tests or generated catalog that describe it.
Run the checks for your change
Use focused tasks while iterating:
| Area | Focused check |
|---|---|
| Evin CLI | cargo evin-dev run evin:verify |
| ESH | cargo evin-dev run esh:verify |
| Documentation sources and routes | cargo evin-dev run docs:build |
| Site application | cargo evin-dev run site:verify |
| VS Code extension | cargo evin-dev run vscode:verify |
| Cloudflare infrastructure | cargo evin-dev run infra:verify |
Before asking for review, run the workspace quality and test tasks:
cargo evin-dev run quality
cargo evin-dev run test
quality covers formatting, Clippy, docs validation, the site, infrastructure,
and extension checks. test runs the Rust workspace tests. verify combines
both tasks. The GitHub CI workflow also runs binary E2E tests and a distribution
rehearsal; it is broader than a focused local edit loop.
For browser behavior, run cargo evin-dev run site:e2e. For extension
integration behavior, run cargo evin-dev run vscode:e2e. To inspect structured
task output, pass --verbose or --debug before run:
cargo evin-dev --verbose run site:verify
cargo evin-dev --debug run evin:verify
Update generated documentation data
Documentation pages are source files. The docs build validates them and
generates ignored page and route data; do not edit generated output by hand.
Two catalogs are tracked because runtime and editor features consume them.
After changing the configuration reference, regenerate its catalog with
cargo evin-dev run docs:evin-catalog. After changing the ESH runtime
reference, run cargo evin-dev run docs:esh-catalog.
See the documentation contribution guide for page structure, examples, and preview commands.
Platform support
The supported target is Linux x86_64. A manual Platform probe workflow can try compilation and workspace tests on Windows or macOS, but failures and successes are exploratory and do not establish support. See the platform policy before making platform-specific claims or changes.
Commits and review
The repository hooks check formatting, tests, documentation, and commit
messages. Keep a change focused, include the relevant tests and user-facing
documentation, and describe what you ran in the pull request. Commit and pull
request titles follow the conventions in .evin/policy.json; a Conventional
Commit subject such as fix(parser): report the invalid task name is suitable.
Sign off each commit with git commit -s as described in the root
contribution agreement.