@suwujs/codex-vault 0.3.1 → 0.3.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/bin/cli.js CHANGED
@@ -205,8 +205,7 @@ function cmdUninstall() {
205
205
  // 7. Clean CLAUDE.md
206
206
  cleanInstructionFile(path.join(cwd, 'CLAUDE.md'), 'CLAUDE.md');
207
207
 
208
- // 8. Clean AGENTS.md
209
- cleanAgentsMd(cwd);
208
+ // 8. AGENTS.md — leave untouched (may contain user's own agent instructions)
210
209
 
211
210
  // Summary
212
211
  console.log('\ncodex-vault has been uninstalled.');
@@ -397,26 +396,6 @@ function cleanInstructionFile(filePath, label) {
397
396
  }
398
397
  }
399
398
 
400
- /**
401
- * Handle AGENTS.md: if it's just "@CLAUDE.md", delete it.
402
- * Otherwise apply the same section-removal logic as CLAUDE.md.
403
- */
404
- function cleanAgentsMd(cwd) {
405
- const filePath = path.join(cwd, 'AGENTS.md');
406
- if (!fs.existsSync(filePath)) return;
407
-
408
- const content = fs.readFileSync(filePath, 'utf8');
409
-
410
- // If content is just @CLAUDE.md (possibly with whitespace), delete the file
411
- if (content.trim() === '@CLAUDE.md') {
412
- fs.unlinkSync(filePath);
413
- console.log(' [x] Removed AGENTS.md (@CLAUDE.md reference)');
414
- return;
415
- }
416
-
417
- // Otherwise, apply the same section-removal logic
418
- cleanInstructionFile(filePath, 'AGENTS.md');
419
- }
420
399
 
421
400
  /**
422
401
  * Check if a directory is empty.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suwujs/codex-vault",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Persistent knowledge vault for LLM agents (Claude Code, Codex CLI)",
5
5
  "license": "MIT",
6
6
  "repository": {
package/plugin/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2