ropilot 0.1.22 → 0.1.23

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 (2) hide show
  1. package/lib/setup.js +13 -3
  2. package/package.json +1 -1
package/lib/setup.js CHANGED
@@ -335,6 +335,9 @@ Use the \`target_context\` parameter to specify which context should execute the
335
335
  function setupProjectPrompts(pkg) {
336
336
  const files = pkg.files || {};
337
337
 
338
+ // Files that should NOT be overwritten (user may have customized)
339
+ const preserveFiles = ['CLAUDE.md'];
340
+
338
341
  for (const [filePath, content] of Object.entries(files)) {
339
342
  const fullPath = filePath;
340
343
  const dir = dirname(fullPath);
@@ -346,15 +349,22 @@ function setupProjectPrompts(pkg) {
346
349
 
347
350
  // Check if file exists
348
351
  if (existsSync(fullPath)) {
349
- console.log(` Exists: ${fullPath}`);
350
-
351
- // For CLAUDE.md, append @import line if not already present
352
+ // For CLAUDE.md, only append @import line (preserve user content)
352
353
  if (fullPath === 'CLAUDE.md') {
353
354
  const existing = readFileSync(fullPath, 'utf-8');
354
355
  if (!existing.includes('@import ROPILOT.md')) {
355
356
  writeFileSync(fullPath, existing.trimEnd() + '\n\n@import ROPILOT.md\n');
356
357
  console.log(` Updated: ${fullPath} (added @import ROPILOT.md)`);
358
+ } else {
359
+ console.log(` Exists: ${fullPath}`);
357
360
  }
361
+ } else if (preserveFiles.includes(fullPath)) {
362
+ // Don't overwrite preserved files
363
+ console.log(` Exists: ${fullPath}`);
364
+ } else {
365
+ // Overwrite Ropilot-managed files with latest content
366
+ writeFileSync(fullPath, content);
367
+ console.log(` Updated: ${fullPath}`);
358
368
  }
359
369
  } else {
360
370
  writeFileSync(fullPath, content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ropilot",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "AI-powered Roblox development assistant - MCP CLI",
5
5
  "author": "whut",
6
6
  "license": "MIT",