fossel 1.1.0 → 1.1.1

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.
Files changed (4) hide show
  1. package/README.md +17 -4
  2. package/dist/cli.js +483 -167
  3. package/dist/index.js +187 -64
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -169,10 +169,15 @@ Reports on:
169
169
 
170
170
  - canonical repo key for the workspace
171
171
  - sibling keys that look like the same repo (offers a fix)
172
- - exact-duplicate memory clusters (suggest `dedupe_repo`)
172
+ - exact-duplicate memory clusters (suggests `fossel doctor --fix` or `dedupe_repo`)
173
+ - memory notes that still mention deprecated repo keys
173
174
  - detected MCP config files
174
175
 
175
- Exits non-zero when issues are found so it can run in CI.
176
+ Pass `--fix` to apply safe automated cleanup in one go: merge sibling repo keys, rewrite stale alias mentions, and remove exact-text duplicates. Without `--fix` it's read-only and exits non-zero on issues so it can run in CI.
177
+
178
+ ### `fossel init`
179
+
180
+ `fossel init` auto-deduplicates exact duplicate memories at the end of the run; pass `--no-dedupe` to opt out.
176
181
 
177
182
  ---
178
183
 
@@ -185,7 +190,10 @@ Exits non-zero when issues are found so it can run in CI.
185
190
  "mcpServers": {
186
191
  "fossel": {
187
192
  "command": "npx",
188
- "args": ["-y", "fossel"]
193
+ "args": ["-y", "fossel"],
194
+ "env": {
195
+ "FOSSEL_WORKSPACE": "${workspaceFolder}"
196
+ }
189
197
  }
190
198
  }
191
199
  }
@@ -198,12 +206,17 @@ Exits non-zero when issues are found so it can run in CI.
198
206
  "mcpServers": {
199
207
  "fossel": {
200
208
  "command": "npx",
201
- "args": ["-y", "fossel"]
209
+ "args": ["-y", "fossel"],
210
+ "env": {
211
+ "FOSSEL_WORKSPACE": "/absolute/path/to/your/project"
212
+ }
202
213
  }
203
214
  }
204
215
  }
205
216
  ```
206
217
 
218
+ `FOSSEL_WORKSPACE` pins Fossel to your project root. Without it, the server falls back to `process.cwd()`, which is occasionally wrong — Cursor and Claude Desktop sometimes spawn MCP servers from your home directory, which would silently route memories to the wrong repo. Cursor expands `${workspaceFolder}` automatically; Claude Desktop needs an absolute path.
219
+
207
220
  ---
208
221
 
209
222
  ## Development (from source)