diff --git a/.claude/commands/e2e-node-management-test.md b/.claude/skills/e2e-node-management-test/SKILL.md similarity index 96% rename from .claude/commands/e2e-node-management-test.md rename to .claude/skills/e2e-node-management-test/SKILL.md index 87e2af2..bf48b9c 100644 --- a/.claude/commands/e2e-node-management-test.md +++ b/.claude/skills/e2e-node-management-test/SKILL.md @@ -1,3 +1,9 @@ +--- +name: e2e-node-management-test +description: Run a comprehensive end-to-end test of all node management features against a real testnet. Builds the binary and exercises every implemented command and API endpoint. +allowed-tools: Bash, Read, Glob, Grep, AskUserQuestion +--- + # End-to-End Node Management Test This command runs a comprehensive end-to-end test of all node management features against a real diff --git a/.claude/skills/update-ant-node-ref/SKILL.md b/.claude/skills/update-ant-node-ref/SKILL.md new file mode 100644 index 0000000..8d7e1c4 --- /dev/null +++ b/.claude/skills/update-ant-node-ref/SKILL.md @@ -0,0 +1,69 @@ +--- +name: update-ant-node-ref +description: Update the ant-node dependency version in ant-core/Cargo.toml, regenerate lockfile, verify the build, and commit the change. Use when asked to update ant-node or /update-ant-node-ref. +allowed-tools: Bash, Read, Edit, Glob, Grep, AskUserQuestion +--- + +# Update ant-node Reference + +This skill updates the `ant-node` dependency version in `ant-core/Cargo.toml`, regenerates the +lockfile, verifies the build, and commits the change. + +## Procedure + +### Step 1: Prompt for target version + +Ask the user: **What version of `ant-node` should we update to?** (e.g., `0.9.0`) + +Do not proceed without a version string. + +### Step 2: Update the dependency + +Edit `ant-core/Cargo.toml` and change the `ant-node` version to the one the user provided. The line +to change looks like: + +```toml +ant-node = "X.Y.Z" +``` + +### Step 3: Update the lockfile + +Run: + +```bash +cargo update +``` + +This regenerates `Cargo.lock` to reflect the new version. + +### Step 4: Verify the build + +Run: + +```bash +cargo build +``` + +Do **not** use `--release` — it is too slow for a validation build. + +If the build **succeeds**, proceed to Step 5. + +If the build **fails**, stop and report the error to the user. Explain what breaking changes were +detected and what code modifications would be needed to get the build to compile. Do not attempt to +fix the code automatically — let the user decide how to proceed. + +### Step 5: Commit the change + +Stage `ant-core/Cargo.toml` and `Cargo.lock`, then create a commit: + +``` +chore: update ant-node to +``` + +### Step 6: Ask about PR + +Ask the user: **Would you like to create a pull request for this change?** + +If yes, create a PR with: +- **Title:** `chore: update ant-node to ` +- **Body:** A brief summary noting the version bump and that the build was verified. diff --git a/CLAUDE.md b/CLAUDE.md index 95596df..e35715f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -135,7 +135,7 @@ cargo run --bin ant -- --help # Run the CLI ## E2E Test Skill -The project includes an E2E test command at `.claude/commands/e2e-node-management-test.md` that tests all node management features against a real testnet (invoked via `/e2e-node-management-test`). When adding new `ant node` subcommands or changing existing node management behavior, update this command to cover the new or changed functionality. +The project includes an E2E test skill at `.claude/skills/e2e-node-management-test/SKILL.md` that tests all node management features against a real testnet (invoked via `/e2e-node-management-test`). When adding new `ant node` subcommands or changing existing node management behavior, update this command to cover the new or changed functionality. ## Linear Project diff --git a/Cargo.lock b/Cargo.lock index f704d3b..3460d52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -899,9 +899,9 @@ dependencies = [ [[package]] name = "ant-node" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4856d03e8885a161c5fcb4227ad387c5ba43193a874f5b57c066bab48b0bdd9" +checksum = "3bc2ac7c262accf6b4ab73448816662c921303c4a81932379b90edfdee3e4a5d" dependencies = [ "aes-gcm-siv", "blake3", @@ -3041,9 +3041,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" dependencies = [ "atomic-waker", "bytes", @@ -3056,7 +3056,6 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "pin-utils", "smallvec", "tokio", "want", @@ -4983,9 +4982,9 @@ dependencies = [ [[package]] name = "saorsa-core" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39c045892301eb0f4fe3961760cbeb3592cf3d8b936a70b1a11d3f7043cdb82f" +checksum = "19de0950a0c9c9a3f97681c539e513c52c909866caddef5d825fe2dcbd1b0173" dependencies = [ "anyhow", "async-trait", diff --git a/ant-core/Cargo.toml b/ant-core/Cargo.toml index cdd5ae8..512dfd9 100644 --- a/ant-core/Cargo.toml +++ b/ant-core/Cargo.toml @@ -35,7 +35,7 @@ tracing = "0.1" bytes = "1" lru = "0.16" rand = "0.8" -ant-node = "0.8.0" +ant-node = "0.9.0" saorsa-pqc = "0.5" tracing-subscriber = { version = "0.3", features = ["env-filter"] }