claude-agents-md 1.8.2 → 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/bin/claude-agents-md.js +2 -4
- package/make-agents.sh +1 -1
- package/package.json +1 -1
package/bin/claude-agents-md.js
CHANGED
|
@@ -186,7 +186,6 @@ let js = path.join(claudeDir, 'cli.js');
|
|
|
186
186
|
let originalCliPath;
|
|
187
187
|
let agentsCliPath;
|
|
188
188
|
|
|
189
|
-
|
|
190
189
|
if (fs.existsSync(js)) {
|
|
191
190
|
originalCliPath = js;
|
|
192
191
|
agentsCliPath = path.join(claudeDir, 'cli-agents.js');
|
|
@@ -254,8 +253,7 @@ async function run() {
|
|
|
254
253
|
|
|
255
254
|
// AGENTS MODE continues below
|
|
256
255
|
console.log(`${YELLOW}[AGENTS] Running Claude in AGENTS mode${RESET}`);
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
|
|
259
257
|
// Check and update Claude package first
|
|
260
258
|
await checkForUpdates();
|
|
261
259
|
|
|
@@ -294,7 +292,7 @@ async function run() {
|
|
|
294
292
|
}
|
|
295
293
|
|
|
296
294
|
// Replace CLAUDE.md with AGENTS.md
|
|
297
|
-
cliContent = cliContent.replace(/CLAUDE
|
|
295
|
+
cliContent = cliContent.replace(/CLAUDE\.md/gi, 'AGENTS.md');
|
|
298
296
|
debug("Replaced all instances of CLAUDE.md with AGENTS.md");
|
|
299
297
|
|
|
300
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
|
|
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
|