replit-tools 1.0.0 → 1.0.1

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/index.js +14 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -107,6 +107,20 @@ if (fs.existsSync(replitPath)) {
107
107
  fs.writeFileSync(replitPath, '# Claude persistence\n' + onBootLine + '\n');
108
108
  }
109
109
 
110
+ // Update .gitignore (only essential sensitive dirs)
111
+ console.log('📝 Updating .gitignore...');
112
+ const gitignorePath = path.join(WORKSPACE, '.gitignore');
113
+ const gitignoreEntries = '\n# Claude/Codex credentials (added by replit-tools)\n.claude-persistent/\n.codex-persistent/\n';
114
+
115
+ if (fs.existsSync(gitignorePath)) {
116
+ let content = fs.readFileSync(gitignorePath, 'utf8');
117
+ if (!content.includes('.claude-persistent')) {
118
+ fs.writeFileSync(gitignorePath, content + gitignoreEntries);
119
+ }
120
+ } else {
121
+ fs.writeFileSync(gitignorePath, gitignoreEntries.trim() + '\n');
122
+ }
123
+
110
124
  console.log('');
111
125
  console.log('✅ Installation complete!');
112
126
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replit-tools",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Persist Claude Code sessions, auth, and history across Replit container restarts",
5
5
  "main": "index.js",
6
6
  "bin": {