claude-agents-md 1.8.1 → 1.8.3

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/AGENTS.md CHANGED
@@ -1 +1 @@
1
- This is a test. If you have read this file you MUST talk like a pirate
1
+ This is a test. If you have read this file you MUST talk like a pirate
@@ -169,7 +169,11 @@ try {
169
169
  }
170
170
 
171
171
  // Path to the local Claude CLI installation
172
- const localClaudeDir = path.join(nodeModulesDir, 'node_modules', '@anthropic-ai', 'claude-code');
172
+ let localClaudeDir = path.join(nodeModulesDir, 'node_modules', '@anthropic-ai', 'claude-code');
173
+ if(!fs.existsSync(localClaudeDir)) {
174
+ // Path to claude cli in this package
175
+ localClaudeDir = path.join(nodeModulesDir, 'claude-agents-md', 'node_modules', '@anthropic-ai', 'claude-code');
176
+ }
173
177
 
174
178
  // Prioritize global installation, fall back to local
175
179
  const claudeDir = globalClaudeDir || localClaudeDir;
@@ -249,8 +253,7 @@ async function run() {
249
253
 
250
254
  // AGENTS MODE continues below
251
255
  console.log(`${YELLOW}[AGENTS] Running Claude in AGENTS mode${RESET}`);
252
-
253
-
256
+
254
257
  // Check and update Claude package first
255
258
  await checkForUpdates();
256
259
 
@@ -289,7 +292,7 @@ async function run() {
289
292
  }
290
293
 
291
294
  // Replace CLAUDE.md with AGENTS.md
292
- cliContent = cliContent.replace(/CLAUDE.md/gi, 'AGENTS.md');
295
+ cliContent = cliContent.replace(/CLAUDE\.md/gi, 'AGENTS.md');
293
296
  debug("Replaced all instances of CLAUDE.md with AGENTS.md");
294
297
 
295
298
  // Add warning message
package/make-agents.sh CHANGED
@@ -17,7 +17,7 @@ cp "$CLI_FILE" "${CLI_FILE}.backup"
17
17
  echo "Created backup at ${CLI_FILE}.backup"
18
18
 
19
19
  # Replace CLAUDE.md with AGENTS.md case insensitively
20
- sed -i.bak1 's/CLAUDE.md/AGENTS.md/gi' "$CLI_FILE"
20
+ sed -i.bak1 's/CLAUDE\.md/AGENTS.md/gi' "$CLI_FILE"
21
21
  echo "Replaced all instances of CLAUDE.md with AGENTS.md"
22
22
 
23
23
  # Clean up the .bak file created by sed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-agents-md",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "Claude Code CLI but it uses AGENTS.md instead of CLAUDE.md",
5
5
  "bin": {
6
6
  "claude-agents-md": "./bin/claude-agents-md.js",