refactor(js): rename package from 'cortexa' to 'contexa'

Swadhin Biswas committed 7 months ago
ebae29a
1 parent 482f561
commit ebae29a
6 files changed
+16 -16
▼JS/README.md
+9-9
1
-# cortexa
1
+# contexa
2
2
3
-[![npm version](https://img.shields.io/npm/v/cortexa.svg)](https://www.npmjs.com/package/cortexa)
3
+[![npm version](https://img.shields.io/npm/v/contexa.svg)](https://www.npmjs.com/package/contexa)
4
4
[![Node.js 18+](https://img.shields.io/badge/node-18%2B-blue.svg)](https://nodejs.org/)
5
5
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
6
6
[![GitHub](https://img.shields.io/badge/GitHub-swadhinbiswas%2FCortexa-black.svg?logo=github)](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
-TypeScript/JavaScript implementation of the **cortexa** framework.
10
+TypeScript/JavaScript 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
16
16
## Installation
17
17
18
18
```bash
19
-npm install cortexa
19
+npm install contexa
20
20
```
21
21
22
22
Or with yarn/pnpm:
23
23
24
24
```bash
25
-yarn add cortexa
26
-pnpm add cortexa
25
+yarn add contexa
26
+pnpm add contexa
27
27
```
28
28
29
29
---
31
31
## Quick Start
32
32
33
33
```typescript
34
-import { GCCWorkspace } from "cortexa";
34
+import { GCCWorkspace } from "contexa";
35
35
36
36
// 1. Initialize a workspace
37
37
const ws = new GCCWorkspace("/path/to/project");
217
217
218
218
```bash
219
219
git clone https://github.com/swadhinbiswas/Cortexa.git
220
-cd cortexa/JS
220
+cd contexa/JS
221
221
npm install
222
222
npm test
223
223
```
262
262
## Links
263
263
264
264
- [GitHub Repository](https://github.com/swadhinbiswas/Cortexa)
265
-- [npm Package](https://www.npmjs.com/package/cortexa)
265
+- [npm Package](https://www.npmjs.com/package/contexa)
266
266
- [Original Paper](https://arxiv.org/abs/2508.00031)
267
267
- [Author: Swadhin Biswas](https://github.com/swadhinbiswas)
268
268
▼JS/package-lock.json
+2-2
1
1
{
2
- "name": "cortexa",
2
+ "name": "contexa",
3
3
"version": "0.1.1",
4
4
"lockfileVersion": 3,
5
5
"requires": true,
6
6
"packages": {
7
7
"": {
8
- "name": "cortexa",
8
+ "name": "contexa",
9
9
"version": "0.1.1",
10
10
"license": "MIT",
11
11
"dependencies": {
12
12
▼JS/package.json
+2-2
1
1
{
2
- "name": "cortexa",
2
+ "name": "contexa",
3
3
"version": "0.1.1",
4
4
"description": "Git-inspired context management for LLM agents -- COMMIT, BRANCH, MERGE, and CONTEXT over versioned memory (arXiv:2508.00031)",
5
5
"author": "Swadhin Biswas <[email protected]>",
23
23
"test": "tsx --test test.ts",
24
24
"lint": "eslint src"
25
25
},
26
- "keywords": ["llm", "agent", "context-management", "git", "memory", "gcc", "cortexa"],
26
+ "keywords": ["llm", "agent", "context-management", "git", "memory", "gcc", "contexa"],
27
27
"license": "MIT",
28
28
"repository": {
29
29
"type": "git",
30
30
▼JS/src/index.ts
+1-1
1
1
/**
2
- * cortexa — Git-inspired context management for LLM agents.
2
+ * contexa — Git-inspired context management for LLM agents.
3
3
* COMMIT, BRANCH, MERGE, and CONTEXT over versioned memory.
4
4
*
5
5
* Paper: "Git Context Controller: Manage the Context of LLM-based Agents like Git"
6
6
▼JS/src/workspace.ts
+1-1
178
178
// simplest portable approach: open with 'wx+' in a retry loop.
179
179
// On success we hold the exclusive create lock; on EEXIST we
180
180
// wait briefly and retry. This is a cooperative lock: all
181
- // cortexa JS instances follow the same protocol.
181
+ // contexa JS instances follow the same protocol.
182
182
const maxWait = 10_000; // 10 seconds
183
183
const interval = 50; // ms between retries
184
184
let waited = 0;
185
185
▼JS/test.ts
+1-1
1
1
/**
2
- * Tests for cortexa TypeScript package.
2
+ * Tests for contexa TypeScript package.
3
3
* Run with: tsx --test test.ts
4
4
*/
5
5
6
6