Skip to content

Commit de8c7db

Browse files
committed
chore: rename CLI package to localgpt and restrict publishing
- Rename localgpt-cli package to localgpt for cleaner crates.io naming - Add publish = false to internal crates (core, server, sandbox, mobile) - Only localgpt (CLI binary) and localgpt-gen will be published to crates.io - Update documentation references to reflect new package name This simplifies the public API: users install with `cargo install localgpt` and `cargo install localgpt-gen` instead of `localgpt-cli`.
1 parent 2b28f6d commit de8c7db

7 files changed

Lines changed: 9 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cargo run -p localgpt-gen -- -s model.glb # Load existing scene
3535
cargo run -p localgpt-gen -- -v # Verbose logging
3636

3737
# Headless build (no desktop GUI)
38-
cargo build -p localgpt-cli --no-default-features
38+
cargo build -p localgpt --no-default-features
3939

4040
# Generate UniFFI bindings (after building mobile crate)
4141
cargo build -p localgpt-mobile
@@ -56,7 +56,7 @@ LocalGPT is a local-only AI assistant with persistent markdown-based memory and
5656
```
5757
crates/
5858
├── core/ # localgpt-core — shared library (agent, memory, config, security)
59-
├── cli/ # localgpt-cli — binary with clap CLI, desktop GUI, dangerous tools
59+
├── cli/ # localgpt — binary with clap CLI, desktop GUI, dangerous tools
6060
├── server/ # localgpt-server — HTTP/WS API, Telegram bot, optional WASM web UI
6161
├── sandbox/ # localgpt-sandbox — Landlock/Seatbelt process sandboxing
6262
├── mobile/ # localgpt-mobile — UniFFI bindings for iOS/Android
@@ -68,7 +68,7 @@ mobile/ # Non-Rust: iOS build scripts, Android gradle config
6868
### Dependency Graph
6969

7070
```
71-
localgpt-cli ──→ localgpt-core
71+
localgpt ──→ localgpt-core
7272
──→ localgpt-server ──→ localgpt-core
7373
──→ localgpt-sandbox ──→ localgpt-core
7474

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "localgpt-cli"
2+
name = "localgpt"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true

crates/core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = "Core library for LocalGPT — agent, memory, config, security"
8+
publish = false
89

910
[features]
1011
default = ["embeddings-local", "claude-cli"]

crates/mobile/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = "LocalGPT mobile bindings via UniFFI"
8+
publish = false
89

910
[lib]
1011
crate-type = ["staticlib", "cdylib"]

crates/sandbox/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = "LocalGPT shell sandbox — kernel-enforced execution isolation"
8+
publish = false
89

910
[dependencies]
1011
localgpt-core = { workspace = true }

crates/server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
77
description = "LocalGPT HTTP server and Telegram bot"
8+
publish = false
89

910
[lib]
1011
crate-type = ["cdylib", "rlib"]

0 commit comments

Comments
 (0)