Skip to content

Commit ebe5837

Browse files
wan9chicodex
andauthored
refactor: shorten vt crate names (#590)
#588 blindly replaces `vite_` with `vt`, which renames `vite_task*` to `vt_task*`. This doesn't make sense. This PR renames `vt_task*` to `vt*`. Co-authored-by: GPT-5 Codex <codex@openai.com>
1 parent 99c1f3a commit ebe5837

997 files changed

Lines changed: 295 additions & 300 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
# Fixture node_modules that stand in for real npm installs in snapshot tests.
44
# `**` covers nested monorepo layouts (e.g. packages/foo/node_modules/.bin).
5-
!crates/vt_task_plan/tests/plan_snapshots/fixtures/*/**/node_modules
5+
!crates/vt_plan/tests/plan_snapshots/fixtures/*/**/node_modules
66
dist
77
.claude/settings.local.json
88
*.tsbuildinfo

.typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ extend-exclude = [
88
"crates/fspy_detours_sys/src/generated_bindings.rs",
99
# Intentional typos for testing fuzzy matching and "did you mean" suggestions
1010
"crates/vt_select/src/fuzzy.rs",
11-
"crates/vt_task_bin/tests/e2e_snapshots/fixtures/task_select",
11+
"crates/vt_bin/tests/e2e_snapshots/fixtures/task_select",
1212
]

CLAUDE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ A monorepo task runner (like Nx/Turbo) with intelligent caching and dependency r
44

55
## Repository Structure
66

7-
- `crates/vt_task` — Task execution engine with caching and session management
8-
- `crates/vt_task_bin` — Internal dev CLI binary (`vt`) and task synthesizer
9-
- `crates/vt_task_graph` — Task dependency graph construction and config loading
10-
- `crates/vt_task_plan` — Execution planning (resolves env vars, working dirs, commands)
7+
- `crates/vt` — Task execution engine with caching and session management
8+
- `crates/vt_bin` — Internal dev CLI binary (`vt`) and task synthesizer
9+
- `crates/vt_graph` — Task dependency graph construction and config loading
10+
- `crates/vt_plan` — Execution planning (resolves env vars, working dirs, commands)
1111
- `crates/vt_workspace` — Workspace detection and package dependency graph
1212
- `crates/fspy*` — File system access tracing (9 crates: supervisor, preload libs, platform backends)
1313
- `crates/pty_terminal*` — Cross-platform headless terminal emulator (3 crates)
@@ -48,8 +48,8 @@ PR descriptions must include a `Motivation` section. If the motivation is not cl
4848

4949
```bash
5050
cargo test # All tests
51-
cargo test -p vt_task_bin --test e2e_snapshots # E2E snapshot tests
52-
cargo test -p vt_task_plan --test plan_snapshots # Plan snapshot tests
51+
cargo test -p vt_bin --test e2e_snapshots # E2E snapshot tests
52+
cargo test -p vt_plan --test plan_snapshots # Plan snapshot tests
5353
cargo test --test e2e_snapshots -- stdin # Filter by test name
5454
UPDATE_SNAPSHOTS=1 cargo test # Update snapshots
5555
```
@@ -62,8 +62,8 @@ The test suite has no known pre-existing failures or flaky tests. If a test fail
6262

6363
### Test Fixtures
6464

65-
- **Plan**: `crates/vt_task_plan/tests/plan_snapshots/fixtures/` — quicker, sufficient for testing task graph, resolved configs, program paths, cwd, and env vars
66-
- **E2E**: `crates/vt_task_bin/tests/e2e_snapshots/fixtures/` — needed for testing execution, caching, output styling
65+
- **Plan**: `crates/vt_plan/tests/plan_snapshots/fixtures/` — quicker, sufficient for testing task graph, resolved configs, program paths, cwd, and env vars
66+
- **E2E**: `crates/vt_bin/tests/e2e_snapshots/fixtures/` — needed for testing execution, caching, output styling
6767

6868
### Cross-Platform Testing
6969

@@ -78,7 +78,7 @@ The test suite has no known pre-existing failures or flaky tests. If a test fail
7878
### Task Execution Pipeline
7979

8080
```
81-
CLI (vt_task_bin) → Task Graph (vt_task_graph) → Plan (vt_task_plan) → Execution (vt_task)
81+
CLI (vt_bin) → Task Graph (vt_graph) → Plan (vt_plan) → Execution (vt)
8282
↑ ↓
8383
vt_workspace fspy (file tracing)
8484
```

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This installs all required Rust tools (`cargo-insta`, `typos-cli`, `cargo-shear`
1818

1919
## Development Workflow
2020

21-
Officially, Vite Task is distributed as part of Vite+ and invoked via `vp run`. The `vt` binary (`vt_task_bin` crate) is an internal development CLI for working on this repo in pure Rust without building the full Vite+ stack. Use `cargo run --bin vt` to build and run locally during development. Don't reference `vt` in user-facing documentation — it's not a public interface.
21+
Officially, Vite Task is distributed as part of Vite+ and invoked via `vp run`. The `vt` binary (`vt_bin` crate) is an internal development CLI for working on this repo in pure Rust without building the full Vite+ stack. Use `cargo run --bin vt` to build and run locally during development. Don't reference `vt` in user-facing documentation — it's not a public interface.
2222

2323
| | `vp run` (Vite+) | `vt run` (this repo) |
2424
| ------------ | -------------------------------------------- | -------------------- |
@@ -42,8 +42,8 @@ just doc # Generate documentation
4242

4343
```bash
4444
cargo test # All tests
45-
cargo test -p vt_task_bin --test e2e_snapshots # E2E snapshot tests
46-
cargo test -p vt_task_plan --test plan_snapshots # Plan snapshot tests
45+
cargo test -p vt_bin --test e2e_snapshots # E2E snapshot tests
46+
cargo test -p vt_plan --test plan_snapshots # Plan snapshot tests
4747
cargo test --test e2e_snapshots -- stdin # Filter by test name
4848
UPDATE_SNAPSHOTS=1 cargo test # Update snapshots
4949
```
@@ -61,8 +61,8 @@ Playwright's bundled Chromium is unavailable on musl, so the Vitest browser fixt
6161

6262
### Test Fixtures
6363

64-
- **Plan snapshots**`crates/vt_task_plan/tests/plan_snapshots/fixtures/` — quicker, sufficient for testing task graph, resolved configs, program paths, cwd, and env vars
65-
- **E2E snapshots**`crates/vt_task_bin/tests/e2e_snapshots/fixtures/` — needed for testing actual execution, caching behavior, and output styling
64+
- **Plan snapshots**`crates/vt_plan/tests/plan_snapshots/fixtures/` — quicker, sufficient for testing task graph, resolved configs, program paths, cwd, and env vars
65+
- **E2E snapshots**`crates/vt_bin/tests/e2e_snapshots/fixtures/` — needed for testing actual execution, caching behavior, and output styling
6666

6767
See individual crate READMEs for crate-specific testing details.
6868

0 commit comments

Comments
 (0)