thepopebot 1.2.12 → 1.2.14
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/cli.js +9 -1
- package/package.json +1 -1
- package/templates/gitignore +42 -0
package/bin/cli.js
CHANGED
|
@@ -133,6 +133,14 @@ function init() {
|
|
|
133
133
|
console.log(' To reset to default: npx thepopebot reset <file>');
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
// Handle gitignore rename (npm strips .gitignore from packages)
|
|
137
|
+
const gitignoreSrc = path.join(templatesDir, 'gitignore');
|
|
138
|
+
const gitignoreDest = path.join(cwd, '.gitignore');
|
|
139
|
+
if (fs.existsSync(gitignoreSrc) && !fs.existsSync(gitignoreDest)) {
|
|
140
|
+
fs.copyFileSync(gitignoreSrc, gitignoreDest);
|
|
141
|
+
console.log(' Created .gitignore');
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
// Run npm install
|
|
137
145
|
console.log('\nInstalling dependencies...\n');
|
|
138
146
|
execSync('npm install', { stdio: 'inherit', cwd });
|
|
@@ -141,7 +149,7 @@ function init() {
|
|
|
141
149
|
const envPath = path.join(cwd, '.env');
|
|
142
150
|
if (fs.existsSync(envPath)) {
|
|
143
151
|
try {
|
|
144
|
-
const thepopebotPkg = JSON.parse(fs.readFileSync(path.join(
|
|
152
|
+
const thepopebotPkg = JSON.parse(fs.readFileSync(path.join(packageDir, 'package.json'), 'utf8'));
|
|
145
153
|
const version = thepopebotPkg.version;
|
|
146
154
|
let envContent = fs.readFileSync(envPath, 'utf8');
|
|
147
155
|
if (envContent.match(/^THEPOPEBOT_VERSION=.*/m)) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Credentials - NEVER commit these
|
|
2
|
+
|
|
3
|
+
.env
|
|
4
|
+
.env.local
|
|
5
|
+
*.pem
|
|
6
|
+
*.key
|
|
7
|
+
|
|
8
|
+
.claude/*
|
|
9
|
+
|
|
10
|
+
# Pi system prompt (generated at runtime from SOUL.md)
|
|
11
|
+
.pi/SYSTEM.md
|
|
12
|
+
|
|
13
|
+
# Pi skills symlinked at runtime from /pi-skills in Docker
|
|
14
|
+
.pi/skills/brave-search
|
|
15
|
+
|
|
16
|
+
# Node
|
|
17
|
+
node_modules/
|
|
18
|
+
|
|
19
|
+
# Next.js
|
|
20
|
+
.next/
|
|
21
|
+
out/
|
|
22
|
+
|
|
23
|
+
# OS files
|
|
24
|
+
.DS_Store
|
|
25
|
+
Thumbs.db
|
|
26
|
+
|
|
27
|
+
# IDE
|
|
28
|
+
.idea/
|
|
29
|
+
.vscode/
|
|
30
|
+
*.swp
|
|
31
|
+
*.swo
|
|
32
|
+
|
|
33
|
+
# Logs
|
|
34
|
+
*.log
|
|
35
|
+
|
|
36
|
+
# Temporary files
|
|
37
|
+
tmp/
|
|
38
|
+
temp/
|
|
39
|
+
.tmp/
|
|
40
|
+
|
|
41
|
+
# Data (SQLite memory, etc.)
|
|
42
|
+
data/
|