@insforge/install 0.0.43 → 0.0.44
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/dist/index.js +4 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
logger.warn(`Could not download instructions: ${fetchError.message}`);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
// Save instructions to
|
|
257
|
+
// Save instructions to agent.md for all clients
|
|
258
258
|
if (instructionsContent) {
|
|
259
259
|
const fs = await import('fs');
|
|
260
260
|
const frontmatter = `---
|
|
@@ -265,25 +265,9 @@ alwaysApply: true
|
|
|
265
265
|
|
|
266
266
|
`;
|
|
267
267
|
const contentWithFrontmatter = frontmatter + instructionsContent;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
const claudeMdPath = path.join(process.cwd(), 'CLAUDE.md');
|
|
272
|
-
fs.writeFileSync(claudeMdPath, contentWithFrontmatter, 'utf-8');
|
|
273
|
-
logger.info(`Saved instructions to: ${claudeMdPath}`);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
// Save cursor rules for cursor client
|
|
277
|
-
if (argv.client === "cursor") {
|
|
278
|
-
const cursorRulesDir = path.join(process.cwd(), '.cursor', 'rules');
|
|
279
|
-
const cursorRulesPath = path.join(cursorRulesDir, 'cursor-rules.mdc');
|
|
280
|
-
|
|
281
|
-
if (!fs.existsSync(cursorRulesDir)) {
|
|
282
|
-
fs.mkdirSync(cursorRulesDir, { recursive: true });
|
|
283
|
-
}
|
|
284
|
-
fs.writeFileSync(cursorRulesPath, contentWithFrontmatter, 'utf-8');
|
|
285
|
-
logger.info(`Saved cursor rules to: ${cursorRulesPath}`);
|
|
286
|
-
}
|
|
268
|
+
const agentsMdPath = path.join(process.cwd(), 'AGENTS.md');
|
|
269
|
+
fs.writeFileSync(agentsMdPath, contentWithFrontmatter, 'utf-8');
|
|
270
|
+
logger.info(`Saved instructions to: ${agentsMdPath}`);
|
|
287
271
|
}
|
|
288
272
|
|
|
289
273
|
printHeader('Setup Complete!');
|