refactor(zig): rename module from 'cortexa' to 'contexa'
Swadhin Biswas committed 7 months ago
0f75402
1 parent f61779d
commit 0f75402
4 files changed
+13 -13
Showing 4 changed files+13-13
▼ZIG/README.md
+7-7
| @@ -1,11 +1,11 @@ | ||
1 | -# cortexa | |
1 | +# contexa | |
2 | 2 | |
3 | 3 | [](LICENSE) |
4 | 4 | [](https://github.com/swadhinbiswas/Cortexa) |
5 | 5 | |
6 | 6 | **Git-inspired context management for LLM agents.** COMMIT, BRANCH, MERGE, and CONTEXT operations over a persistent versioned memory workspace. |
7 | 7 | |
8 | -Zig implementation of the **cortexa** framework. | |
8 | +Zig implementation of the **contexa** framework. | |
9 | 9 | |
10 | 10 | 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) |
11 | 11 | |
| @@ -19,7 +19,7 @@ Add to your `build.zig.zon`: | ||
19 | 19 | |
20 | 20 | ```zig |
21 | 21 | .dependencies = .{ |
22 | - .cortexa = .{ | |
22 | + .contexa = .{ | |
23 | 23 | .url = "https://github.com/swadhinbiswas/Cortexa/archive/refs/tags/v0.1.1.tar.gz", |
24 | 24 | .hash = "...", // zig build will tell you the correct hash |
25 | 25 | }, |
| @@ -29,11 +29,11 @@ Add to your `build.zig.zon`: | ||
29 | 29 | Then in your `build.zig`: |
30 | 30 | |
31 | 31 | ```zig |
32 | -const cortexa = b.dependency("cortexa", .{ | |
32 | +const contexa = b.dependency("contexa", .{ | |
33 | 33 | .target = target, |
34 | 34 | .optimize = optimize, |
35 | 35 | }); |
36 | -exe.root_module.addImport("cortexa", cortexa.module("cortexa")); | |
36 | +exe.root_module.addImport("contexa", contexa.module("contexa")); | |
37 | 37 | ``` |
38 | 38 | |
39 | 39 | --- |
| @@ -42,7 +42,7 @@ exe.root_module.addImport("cortexa", cortexa.module("cortexa")); | ||
42 | 42 | |
43 | 43 | ```zig |
44 | 44 | const std = @import("std"); |
45 | -const cortexa = @import("cortexa"); | |
45 | +const contexa = @import("contexa"); | |
46 | 46 | |
47 | 47 | pub fn main() !void { |
48 | 48 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; |
| @@ -50,7 +50,7 @@ pub fn main() !void { | ||
50 | 50 | const allocator = gpa.allocator(); |
51 | 51 | |
52 | 52 | // 1. Initialize a workspace |
53 | - var ws = cortexa.Workspace.init(allocator, "/path/to/project"); | |
53 | + var ws = contexa.Workspace.init(allocator, "/path/to/project"); | |
54 | 54 | try ws.create("Build a REST API service with user auth"); |
55 | 55 | |
56 | 56 | // 2. Agent logs its reasoning as it works |
57 | 57 | |
▼ZIG/build.zig
+2-2
| @@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void { | ||
5 | 5 | const optimize = b.standardOptimizeOption(.{}); |
6 | 6 | |
7 | 7 | // Module (for use as a dependency by consumers) |
8 | - const mod = b.addModule("cortexa", .{ | |
8 | + const mod = b.addModule("contexa", .{ | |
9 | 9 | .root_source_file = b.path("src/main.zig"), |
10 | 10 | .target = target, |
11 | 11 | .optimize = optimize, |
| @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void { | ||
13 | 13 | |
14 | 14 | // Static library artifact |
15 | 15 | const lib = b.addLibrary(.{ |
16 | - .name = "cortexa", | |
16 | + .name = "contexa", | |
17 | 17 | .root_module = mod, |
18 | 18 | }); |
19 | 19 | b.installArtifact(lib); |
20 | 20 | |
▼ZIG/build.zig.zon
+3-3
| @@ -1,7 +1,7 @@ | ||
1 | 1 | .{ |
2 | - .name = .cortexa, | |
3 | - .version = "0.1.1", | |
4 | - .fingerprint = 0x2a901b166db9b79c, | |
2 | + .name = .contexa, | |
3 | + .version = "0.1.2", | |
4 | + .fingerprint = 0x8f806195754ffc62, | |
5 | 5 | .minimum_zig_version = "0.14.0", |
6 | 6 | .dependencies = .{}, |
7 | 7 | .paths = .{ |
8 | 8 | |
▼ZIG/src/main.zig
+1-1
| @@ -1,4 +1,4 @@ | ||
1 | -//! cortexa — Git-inspired context management for LLM agents. | |
1 | +//! contexa — Git-inspired context management for LLM agents. | |
2 | 2 | //! COMMIT, BRANCH, MERGE, and CONTEXT over versioned memory. |
3 | 3 | //! |
4 | 4 | //! Paper: "Git Context Controller: Manage the Context of LLM-based Agents like Git" |
5 | 5 | |