refactor(rust): rename crate from 'cortexa-gcc' to 'contexa'
Swadhin Biswas committed 7 months ago
b478e8e
1 parent ebae29a
commit b478e8e
4 files changed
+21 -37
Showing 4 changed files+21-37
▼RUST/Cargo.lock
+8-8
| @@ -66,14 +66,8 @@ dependencies = [ | ||
66 | 66 | ] |
67 | 67 | |
68 | 68 | [[package]] |
69 | -name = "core-foundation-sys" | |
70 | -version = "0.8.7" | |
71 | -source = "registry+https://github.com/rust-lang/crates.io-index" | |
72 | -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" | |
73 | - | |
74 | -[[package]] | |
75 | -name = "cortexa" | |
76 | -version = "0.1.1" | |
69 | +name = "contexa" | |
70 | +version = "0.1.2" | |
77 | 71 | dependencies = [ |
78 | 72 | "chrono", |
79 | 73 | "fs2", |
| @@ -84,6 +78,12 @@ dependencies = [ | ||
84 | 78 | "uuid", |
85 | 79 | ] |
86 | 80 | |
81 | +[[package]] | |
82 | +name = "core-foundation-sys" | |
83 | +version = "0.8.7" | |
84 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
85 | +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" | |
86 | + | |
87 | 87 | [[package]] |
88 | 88 | name = "equivalent" |
89 | 89 | version = "1.0.2" |
90 | 90 | |
▼RUST/Cargo.toml
+1-1
| @@ -1,5 +1,5 @@ | ||
1 | 1 | [package] |
2 | -name = "cortexa-gcc" | |
2 | +name = "contexa" | |
3 | 3 | version = "0.1.2" |
4 | 4 | edition = "2021" |
5 | 5 | description = "Git-inspired context management for LLM agents -- COMMIT, BRANCH, MERGE, and CONTEXT over versioned memory (arXiv:2508.00031)" |
6 | 6 | |
▼RUST/README.md
+10-10
| @@ -1,13 +1,13 @@ | ||
1 | -# cortexa-gcc | |
1 | +# contexa | |
2 | 2 | |
3 | -[](https://crates.io/crates/cortexa-gcc) | |
4 | -[](https://docs.rs/cortexa-gcc) | |
3 | +[](https://crates.io/crates/contexa) | |
4 | +[](https://docs.rs/contexa) | |
5 | 5 | [](LICENSE) |
6 | 6 | [](https://github.com/swadhinbiswas/Cortexa) |
7 | 7 | |
8 | 8 | **Git-inspired context management for LLM agents.** COMMIT, BRANCH, MERGE, and CONTEXT operations over a persistent versioned memory workspace. |
9 | 9 | |
10 | -Rust implementation of the **cortexa** framework. | |
10 | +Rust implementation of the **contexa** framework. | |
11 | 11 | |
12 | 12 | Based on: [arXiv:2508.00031](https://arxiv.org/abs/2508.00031) -- *"Git Context Controller: Manage the Context of LLM-based Agents like Git"* (Junde Wu et al., 2025) |
13 | 13 | |
| @@ -17,7 +17,7 @@ Based on: [arXiv:2508.00031](https://arxiv.org/abs/2508.00031) -- *"Git Context | ||
17 | 17 | |
18 | 18 | ```toml |
19 | 19 | [dependencies] |
20 | -cortexa = "0.1" | |
20 | +contexa = "0.1" | |
21 | 21 | ``` |
22 | 22 | |
23 | 23 | --- |
| @@ -25,9 +25,9 @@ cortexa = "0.1" | ||
25 | 25 | ## Quick Start |
26 | 26 | |
27 | 27 | ```rust |
28 | -use cortexa::GCCWorkspace; | |
28 | +use contexa::GCCWorkspace; | |
29 | 29 | |
30 | -fn main() -> cortexa::Result<()> { | |
30 | +fn main() -> contexa::Result<()> { | |
31 | 31 | let mut ws = GCCWorkspace::new("/path/to/project"); |
32 | 32 | ws.init("Build a REST API service with user auth")?; |
33 | 33 | |
| @@ -173,7 +173,7 @@ All data is stored as **human-readable Markdown and YAML**. | ||
173 | 173 | |
174 | 174 | ```bash |
175 | 175 | git clone https://github.com/swadhinbiswas/Cortexa.git |
176 | -cd cortexa/RUST | |
176 | +cd contexa/RUST | |
177 | 177 | cargo test |
178 | 178 | ``` |
179 | 179 | |
| @@ -212,7 +212,7 @@ MIT License. See [LICENSE](LICENSE) for details. | ||
212 | 212 | ## Links |
213 | 213 | |
214 | 214 | - [GitHub Repository](https://github.com/swadhinbiswas/Cortexa) |
215 | -- [crates.io](https://crates.io/crates/cortexa-gcc) | |
216 | -- [docs.rs](https://docs.rs/cortexa-gcc) | |
215 | +- [crates.io](https://crates.io/crates/contexa) | |
216 | +- [docs.rs](https://docs.rs/contexa) | |
217 | 217 | - [Original Paper](https://arxiv.org/abs/2508.00031) |
218 | 218 | - [Author: Swadhin Biswas](https://github.com/swadhinbiswas) |
219 | 219 | |
▼RUST/src/lib.rs
+2-18
| @@ -1,27 +1,11 @@ | ||
1 | -//! # cortexa-gcc | |
1 | +//! # contexa | |
2 | 2 | //! |
3 | 3 | //! Git-inspired context management for LLM agents. COMMIT, BRANCH, MERGE, and |
4 | 4 | //! CONTEXT operations over a persistent versioned memory workspace. |
5 | 5 | //! |
6 | -//! Paper: *"Git Context Controller: Manage the Context of LLM-based Agents like Git"* | |
7 | -//! arXiv:2508.00031 — Junde Wu et al., 2025 | |
8 | -//! | |
9 | -//! ## File System Layout | |
10 | -//! ```text | |
11 | -//! .GCC/ | |
12 | -//! ├── main.md # Global roadmap / planning artifact | |
13 | -//! └── branches/ | |
14 | -//! ├── main/ | |
15 | -//! │ ├── log.md # Continuous OTA trace (Observation-Thought-Action) | |
16 | -//! │ ├── commit.md # Milestone-level commit summaries | |
17 | -//! │ └── metadata.yaml # Branch intent, status, creation info | |
18 | -//! └── <branch>/ | |
19 | -//! └── ... | |
20 | -//! ``` | |
21 | -//! | |
22 | 6 | //! ## Example |
23 | 7 | //! ```rust,no_run |
24 | -//! use cortexa_gcc::GCCWorkspace; | |
8 | +//! use contexa::GCCWorkspace; | |
25 | 9 | //! |
26 | 10 | //! let mut ws = GCCWorkspace::new("/path/to/project"); |
27 | 11 | //! ws.init("Build a production REST API").unwrap(); |
28 | 12 | |