0cccf77
commit 0cccf77
4 files changed
+18 -11
Showing 4 changed files+18-11
▼.github/workflows/publish.yml
+8-1
| @@ -270,6 +270,13 @@ jobs: | ||
270 | 270 | id: version |
271 | 271 | run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" |
272 | 272 | |
273 | + - name: Create Go subdirectory tag | |
274 | + run: | | |
275 | + TAG="${{ steps.version.outputs.version }}" | |
276 | + GO_TAG="GO/$TAG" | |
277 | + git tag "$GO_TAG" || true | |
278 | + git push origin "$GO_TAG" || true | |
279 | + | |
273 | 280 | - name: Generate release notes |
274 | 281 | id: notes |
275 | 282 | run: | |
| @@ -287,7 +294,7 @@ jobs: | ||
287 | 294 | echo "| Python | \`pip install contexa\` |" |
288 | 295 | echo "| JS/TS | \`npm install contexa\` |" |
289 | 296 | echo "| Rust | \`cargo add contexa\` |" |
290 | - echo "| Go | \`go get github.com/swadhinbiswas/contexa/GO/cortexa@$TAG\` |" | |
297 | + echo "| Go | \`go get github.com/swadhinbiswas/contexa/GO/cortexa@GO/$TAG\` |" | |
291 | 298 | echo "| Lua | \`luarocks install contexa\` |" |
292 | 299 | echo "| Elixir | \`{:contexa, \"~> 0.1.1\"}\` in mix.exs |" |
293 | 300 | echo "| Zig | Add dependency via \`build.zig.zon\` (see README) |" |
294 | 301 | |
▼GO/README.md
+4-4
| @@ -1,6 +1,6 @@ | ||
1 | 1 | # contexa |
2 | 2 | |
3 | -[](https://pkg.go.dev/github.com/swadhinbiswas/contexa) | |
3 | +[](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO) | |
4 | 4 | [](LICENSE) |
5 | 5 | [](https://github.com/swadhinbiswas/contexa) |
6 | 6 | |
| @@ -15,7 +15,7 @@ Based on: [arXiv:2508.00031](https://arxiv.org/abs/2508.00031) -- *"Git Context | ||
15 | 15 | ## Installation |
16 | 16 | |
17 | 17 | ```bash |
18 | -go get github.com/swadhinbiswas/contexa/cortexa | |
18 | +go get github.com/swadhinbiswas/contexa/GO/cortexa | |
19 | 19 | ``` |
20 | 20 | |
21 | 21 | --- |
| @@ -27,7 +27,7 @@ package main | ||
27 | 27 | |
28 | 28 | import ( |
29 | 29 | "fmt" |
30 | - "github.com/swadhinbiswas/contexa/cortexa" | |
30 | + "github.com/swadhinbiswas/contexa/GO/cortexa" | |
31 | 31 | ) |
32 | 32 | |
33 | 33 | func main() { |
| @@ -213,6 +213,6 @@ MIT License. See [LICENSE](LICENSE) for details. | ||
213 | 213 | ## Links |
214 | 214 | |
215 | 215 | - [GitHub Repository](https://github.com/swadhinbiswas/contexa) |
216 | -- [pkg.go.dev](https://pkg.go.dev/github.com/swadhinbiswas/contexa) | |
216 | +- [pkg.go.dev](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO) | |
217 | 217 | - [Original Paper](https://arxiv.org/abs/2508.00031) |
218 | 218 | - [Author: Swadhin Biswas](https://github.com/swadhinbiswas) |
219 | 219 | |
▼GO/go.mod
+1-1
| @@ -1,4 +1,4 @@ | ||
1 | -module github.com/swadhinbiswas/contexa | |
1 | +module github.com/swadhinbiswas/contexa/GO | |
2 | 2 | |
3 | 3 | go 1.21 |
4 | 4 | |
5 | 5 | |
▼README.md
+5-5
| @@ -5,7 +5,7 @@ | ||
5 | 5 | [](https://pypi.org/project/contexa/) |
6 | 6 | [](https://www.npmjs.com/package/contexa) |
7 | 7 | [](https://crates.io/crates/contexa) |
8 | -[](https://pkg.go.dev/github.com/swadhinbiswas/contexa) | |
8 | +[](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO) | |
9 | 9 | [](https://hex.pm/packages/contexa) |
10 | 10 | |
11 | 11 | **Git-inspired context management for LLM agents.** COMMIT, BRANCH, MERGE, and CONTEXT operations over a persistent versioned memory workspace. |
| @@ -53,7 +53,7 @@ The paper shows **K=1 performs best** in most benchmarks -- agents do better wit | ||
53 | 53 | | Python | [`contexa`](https://pypi.org/project/contexa/) | `pip install contexa` | |
54 | 54 | | TypeScript/JS | [`contexa`](https://www.npmjs.com/package/contexa) | `npm install contexa` | |
55 | 55 | | Rust | [`contexa`](https://crates.io/crates/contexa) | `cargo add contexa` | |
56 | -| Go | [`contexa`](https://pkg.go.dev/github.com/swadhinbiswas/contexa) | `go get github.com/swadhinbiswas/contexa/cortexa` | | |
56 | +| Go | [`contexa`](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO) | `go get github.com/swadhinbiswas/contexa/GO/cortexa` | | |
57 | 57 | | Lua | [`contexa`](https://luarocks.org/modules/swadhinbiswas/contexa) | `luarocks install contexa` | |
58 | 58 | | Elixir | [`contexa`](https://hex.pm/packages/contexa) | `{:contexa, "~> 0.1.1"}` in mix.exs | |
59 | 59 | | Zig | `contexa` | See [Zig README](ZIG/README.md) | |
| @@ -115,7 +115,7 @@ println!("{}", ctx.summary()); | ||
115 | 115 | ### Go |
116 | 116 | |
117 | 117 | ```go |
118 | -import "github.com/swadhinbiswas/contexa/cortexa" | |
118 | +import "github.com/swadhinbiswas/contexa/GO/cortexa" | |
119 | 119 | |
120 | 120 | ws := cortexa.New("/path/to/project") |
121 | 121 | ws.Init("Build a REST API") |
| @@ -211,7 +211,7 @@ contexa/ | ||
211 | 211 | PYTHON/ # PyPI: contexa |
212 | 212 | JS/ # npm: contexa |
213 | 213 | RUST/ # crates.io: contexa |
214 | - GO/ # pkg.go.dev: github.com/swadhinbiswas/contexa | |
214 | + GO/ # pkg.go.dev: github.com/swadhinbiswas/contexa/GO | |
215 | 215 | ZIG/ # Zig package: contexa |
216 | 216 | LUA/ # LuaRocks: contexa |
217 | 217 | ELIXIR/ # Hex.pm: contexa |
| @@ -267,7 +267,7 @@ MIT License. See [LICENSE](LICENSE) for details. | ||
267 | 267 | - [Python (PyPI)](https://pypi.org/project/contexa/) |
268 | 268 | - [TypeScript (npm)](https://www.npmjs.com/package/contexa) |
269 | 269 | - [Rust (crates.io)](https://crates.io/crates/contexa) |
270 | -- [Go (pkg.go.dev)](https://pkg.go.dev/github.com/swadhinbiswas/contexa) | |
270 | +- [Go (pkg.go.dev)](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO) | |
271 | 271 | - [Lua (LuaRocks)](https://luarocks.org/modules/swadhinbiswas/contexa) |
272 | 272 | - [Elixir (Hex.pm)](https://hex.pm/packages/contexa) |
273 | 273 | - [Author: Swadhin Biswas](https://github.com/swadhinbiswas) |
274 | 274 | |