Skip to content

Commit 71fa426

Browse files
authored
Merge pull request #2 from renbytes/dev-changeName
Change name
2 parents eec6ab9 + ef50b02 commit 71fa426

File tree

17 files changed

+163
-643
lines changed

17 files changed

+163
-643
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ coverage/
1919
# Plugin / local logs
2020
# ------------------------------
2121
*.log
22-
spex_debug.log
22+
boot_debug.log
2323

2424
# ------------------------------
2525
# Environment files

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### FILE: Cargo.toml
22
[package]
3-
name = "spex-rust"
3+
name = "boot-rust"
44
version = "0.1.0"
55
edition = "2021"
66

77
[[bin]]
8-
name = "spex-rust"
8+
name = "boot-rust"
99
path = "src/main.rs"
1010

1111
[dependencies]

DEVELOPER_GUIDE.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Spex-Rust Developer Guide
1+
# BootCode-Rust Developer Guide
22

3-
This guide provides technical details for developing and troubleshooting the `spex-rust` plugin.
3+
This guide provides technical details for developing and troubleshooting the `boot-rust` plugin.
44

55
---
66

77
## The Handshake Contract
88

9-
`spex-core` discovers and communicates with plugins based on a simple contract:
9+
`boot-core` discovers and communicates with plugins based on a simple contract:
1010

1111
- **First line on `stdout`**: Must be the handshake string in the format `1|1|tcp|HOST:PORT|grpc`.
1212
- **All other output**: All logs, warnings, and errors **must** be sent to `stderr`. This keeps `stdout` clean so the handshake is not corrupted.
@@ -18,8 +18,8 @@ This guide provides technical details for developing and troubleshooting the `sp
1818
You can quickly test that the binary is producing the correct handshake and that logs are properly sent to `stderr`.
1919

2020
```bash
21-
# From the spex-rust project root, run the release binary and grab the first line of stdout
22-
./target/release/spex-rust 2>/dev/null | head -1
21+
# From the boot-rust project root, run the release binary and grab the first line of stdout
22+
./target/release/boot-rust 2>/dev/null | head -1
2323
```
2424

2525
**Expected Output:**
@@ -34,36 +34,36 @@ You can quickly test that the binary is producing the correct handshake and that
3434

3535
## Debugging Plugin Discovery
3636

37-
`spex-core` discovers the plugin by finding an executable named `spex-rust` on its `PATH`.
37+
`boot-core` discovers the plugin by finding an executable named `boot-rust` on its `PATH`.
3838

39-
### Verify what `spex-core` Sees
39+
### Verify what `boot-core` Sees
4040

41-
From the `spex-core` directory, run this command to see which `spex-rust` executable Poetry's environment will use:
41+
From the `boot-core` directory, run this command to see which `boot-rust` executable Poetry's environment will use:
4242

4343
```bash
44-
poetry run which -a spex-rust
44+
poetry run which -a boot-rust
4545
```
4646

4747
### Alternative: Running Without Installing
4848

49-
For rapid testing, you can run `spex-core` and temporarily add your local plugin build to the `PATH` for that single command:
49+
For rapid testing, you can run `boot-core` and temporarily add your local plugin build to the `PATH` for that single command:
5050

5151
```bash
52-
# Run this from the spex-core directory
53-
poetry run env PATH="/path/to/your/spex-rust/target/release:$PATH" \
54-
spex generate my_rust_spec.toml
52+
# Run this from the boot-core directory
53+
poetry run env PATH="/path/to/your/boot-rust/target/release:$PATH" \
54+
boot generate my_rust_spec.toml
5555
```
5656

5757
### Removing Stale Binaries
5858

59-
If `which spex-rust` points to an old version, remove it:
59+
If `which boot-rust` points to an old version, remove it:
6060

6161
```bash
6262
# If installed via cargo
63-
cargo uninstall spex-rust
63+
cargo uninstall boot-rust
6464

6565
# Or remove a manually copied file
66-
rm -f ~/.cargo/bin/spex-rust
66+
rm -f ~/.cargo/bin/boot-rust
6767

6868
# Clear the shell's command cache
6969
hash -r
@@ -79,8 +79,8 @@ hash -r
7979

8080
---
8181

82-
## Common `spex-core` Errors
82+
## Common `boot-core` Errors
8383

84-
- **`Plugin executable not found`**: This is a `PATH` issue. `spex-core` cannot find the `spex-rust` binary. Ensure you have run `cargo install --path . --force` and that `~/.cargo/bin` is in your shell's `PATH`.
84+
- **`Plugin executable not found`**: This is a `PATH` issue. `boot-core` cannot find the `boot-rust` binary. Ensure you have run `cargo install --path . --force` and that `~/.cargo/bin` is in your shell's `PATH`.
8585

8686
- **`Invalid handshake` / `not enough values to unpack`**: This means the plugin wrote something to `stdout` before the handshake string. Use the "Testing the Binary" command above to verify the output is clean.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# spex-rust
1+
# boot-rust
22

3-
A "Prompt Provider" plugin for **Spex**.
3+
A "Prompt Provider" plugin for **BootCode**.
44

5-
This Rust application is a lightweight gRPC server that serves language-specific prompt components to `spex-core`. Its sole responsibility is to provide the building blocks that the core application uses to construct high-quality prompts for generating Rust code.
5+
This Rust application is a lightweight gRPC server that serves language-specific prompt components to `boot-core`. Its sole responsibility is to provide the building blocks that the core application uses to construct high-quality prompts for generating Rust code.
66

7-
- **Handshake (stdout)**: Prints a single handshake line required by `spex-core` to establish a connection.
7+
- **Handshake (stdout)**: Prints a single handshake line required by `boot-core` to establish a connection.
88
- **Logs (stderr)**: All logging is directed to stderr to keep stdout clean.
99
- **Prompts**: All prompt logic is contained in simple text files within the `/prompts` directory.
1010

@@ -21,20 +21,20 @@ This Rust application is a lightweight gRPC server that serves language-specific
2121
cargo build --release
2222
```
2323

24-
### Install for `spex-core`:
24+
### Install for `boot-core`:
2525

26-
To make the `spex-rust` executable discoverable by `spex-core`, install it to your cargo binary path.
26+
To make the `boot-rust` executable discoverable by `boot-core`, install it to your cargo binary path.
2727

2828
```bash
2929
# Install the binary
3030
cargo install --path . --force
3131

3232
# Verify it's in your path
33-
which spex-rust
33+
which boot-rust
3434
```
3535

3636
Expected output:
3737
```
38-
spex-rust % which spex-rust
39-
/Users/your_user_name/.cargo/bin/spex-rust
38+
boot-rust % which boot-rust
39+
/Users/your_user_name/.cargo/bin/boot-rust
4040
```

0 commit comments

Comments
 (0)