stackmem 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,39 +1,22 @@
1
- # coding-memory
1
+ # stackmem
2
2
 
3
3
  AI agents forget everything between sessions. Every new chat re-derives decisions, re-breaks constraints that were already settled, and re-debugs errors that were already fixed last week.
4
4
 
5
- coding-memory is a CLI and an MCP server that stores that context in Supabase and hands it back at the start of the next session. A git post-commit hook captures most of it automatically.
5
+ stackmem is a CLI and an MCP server that stores that context in Supabase and hands it back at the start of the next session. A git post-commit hook captures most of it automatically.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```
10
- git clone https://github.com/arushlagudu/coding-memory.git
11
- cd coding-memory
12
- npm install
10
+ npm install -g stackmem
13
11
  ```
14
12
 
15
- Create `.env`:
13
+ Then in any git repo:
16
14
 
17
15
  ```
18
- SUPABASE_URL=https://your-project.supabase.co
19
- SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
16
+ cm init <project> .
20
17
  ```
21
18
 
22
- Build and link:
23
-
24
- ```
25
- npm run build
26
- sudo npm link
27
- sudo npm install -g tsx
28
- ```
29
-
30
- `cm` is now on your PATH. Install the hook in a project:
31
-
32
- ```
33
- $ cd your-project-directory
34
- $ cm init myapp .
35
- coding-memory hook installed for project myapp at .
36
- ```
19
+ That's it. No config, no accounts, no env file.
37
20
 
38
21
  ## Usage
39
22
 
package/dist/cli.js CHANGED
@@ -399,7 +399,7 @@ function git(args) {
399
399
  }
400
400
 
401
401
  function cmSave(type, content) {
402
- execFileSync("node", [CLI_PATH, "save", PROJECT, type, content], {
402
+ execFileSync("node", [CLI_PATH, "save", PROJECT, type, content, "--force"], {
403
403
  stdio: "inherit",
404
404
  });
405
405
  }
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "stackmem",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "cm": "src/cli.ts"
9
9
  },
10
- "files": ["dist", "src"],
10
+ "files": [
11
+ "dist",
12
+ "src"
13
+ ],
11
14
  "scripts": {
12
15
  "dev": "tsx src/index.ts",
13
16
  "cli": "tsx src/cli.ts",
package/src/cli.ts CHANGED
@@ -481,7 +481,7 @@ function git(args) {
481
481
  }
482
482
 
483
483
  function cmSave(type, content) {
484
- execFileSync("node", [CLI_PATH, "save", PROJECT, type, content], {
484
+ execFileSync("node", [CLI_PATH, "save", PROJECT, type, content, "--force"], {
485
485
  stdio: "inherit",
486
486
  });
487
487
  }