Swadhin Biswas

[email protected]
2026-03-05 14:22:34 +0600 committed NaN years ago
0cccf77
commit 0cccf77
4 files changed
+18 -11
▼.github/workflows/publish.yml
+8-1
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
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
1
# contexa
2
2
3
-[![Go Reference](https://pkg.go.dev/badge/github.com/swadhinbiswas/contexa.svg)](https://pkg.go.dev/github.com/swadhinbiswas/contexa)
3
+[![Go Reference](https://pkg.go.dev/badge/github.com/swadhinbiswas/contexa/GO.svg)](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO)
4
4
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
5
5
[![GitHub](https://img.shields.io/badge/GitHub-swadhinbiswas%2Fcontexa-black.svg?logo=github)](https://github.com/swadhinbiswas/contexa)
6
6
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
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
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
-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
5
[![PyPI](https://img.shields.io/pypi/v/contexa.svg)](https://pypi.org/project/contexa/)
6
6
[![npm](https://img.shields.io/npm/v/contexa.svg)](https://www.npmjs.com/package/contexa)
7
7
[![crates.io](https://img.shields.io/crates/v/contexa.svg)](https://crates.io/crates/contexa)
8
-[![Go Reference](https://pkg.go.dev/badge/github.com/swadhinbiswas/contexa.svg)](https://pkg.go.dev/github.com/swadhinbiswas/contexa)
8
+[![Go Reference](https://pkg.go.dev/badge/github.com/swadhinbiswas/contexa/GO.svg)](https://pkg.go.dev/github.com/swadhinbiswas/contexa/GO)
9
9
[![Hex.pm](https://img.shields.io/hexpm/v/contexa.svg)](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
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
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
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
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