Fully Automated - 100% Backpressure - Pipeline runner 🏃 for AI workflows. 🚀

Commit 3c0bb486

3c0bb486414fMerged

Scott Nixon <[email protected]> · 9 months ago · 9 files · +1 added · ~8 modified

Description

Centralize version in workspace Cargo.toml

All crates now inherit version via version.workspace = true instead of declaring it individually. Add AGENTS.md documenting the versioning workflow.

Details

Commit
3c0bb486414f
Parent
c2358ea41f6e

AGENTS.mdaddedView file

1+# Attractor - Agent Instructions
2+
3+## Versioning
4+
5+All crates share a single version defined in the workspace root `Cargo.toml`:
6+
7+```toml
8+[workspace.package]
9+version = "0.1.0"
10+```
11+
12+Each crate inherits it via `version.workspace = true` in its own `Cargo.toml`. **Do not set versions directly in individual crates.**
13+
14+### How to bump the version
15+
16+1. Edit the `version` field in `/Cargo.toml` under `[workspace.package]`
17+2. Run `cargo check` to verify the workspace compiles
18+3. Rebuild the release binary: `cargo build --release`
19+4. Commit the `Cargo.toml` change and tag the release:
20+ ```bash
21+ git add Cargo.toml
22+ git commit -m "Bump version to X.Y.Z"
23+ git tag vX.Y.Z
24+ ```
25+
26+### When to bump the version
27+
28+- **Patch** (0.1.x): Bug fixes, documentation changes, internal refactors
29+- **Minor** (0.x.0): New features, new handlers, new CLI subcommands
30+- **Major** (x.0.0): Breaking changes to pipeline format, CLI interface, or public API
31+
32+### Verifying the version
33+
34+```bash
35+cargo run -- --version
36+```
37+
38+The CLI uses clap's `#[command(version)]` attribute, which reads the version from `attractor-cli/Cargo.toml` (inherited from workspace) at compile time.