AGENTS.md@crates/codegen/xtask · git:20260803.0763cd8 · 2026-08-03 · sha256 1dbf91d9a7bc5ff3

AGENTS.md@crates/codegen/xtask git:20260803.0763cd8A

Immutable. This exact content is served forever at /api/v1/blob/1dbf91d9a7bc5ff3.

# xtask

[Root AGENTS.md](../../../../AGENTS.md) | Release packaging automation for `cargo-binstall` extra-files layout.

## Role

Generates release archives with man pages and shell completions in the directory
layout that `cargo-binstall` auto-detects.

## Commands

```
cargo xtask package-release --target <triple> --version <ver> --binary <path>
```

## Rules

- Runs on the host (not cross-compiled) -- only generates text files and copies binaries.
- Archive layout: `vtcode-{target}-v{version}/` with `man/`, `completions/`.
- The archive stage allowlist is intentional: package only `vtcode`, `man/`, and `completions/`; project instruction files never ship.
- Uses `vtcode_core::Cli::command()` for man page and completion generation.