dev-booster 1.6.0 → 1.8.0
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/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -257,16 +257,31 @@ function runUpdate() {
|
|
|
257
257
|
{ name: 'hub', src: path.join(templateRoot, 'hub'), dest: path.join(kitRoot, 'hub') },
|
|
258
258
|
]
|
|
259
259
|
|
|
260
|
+
const coreFiles = [
|
|
261
|
+
{ name: 'MANIFEST.md', src: path.join(templateRoot, 'MANIFEST.md'), dest: path.join(kitRoot, 'MANIFEST.md') },
|
|
262
|
+
{ name: 'rules/GUIDE.md', src: path.join(templateRoot, 'rules', 'GUIDE.md'), dest: path.join(kitRoot, 'rules', 'GUIDE.md') },
|
|
263
|
+
{ name: 'rules/PROTOCOL.md', src: path.join(templateRoot, 'rules', 'PROTOCOL.md'), dest: path.join(kitRoot, 'rules', 'PROTOCOL.md') },
|
|
264
|
+
]
|
|
265
|
+
|
|
260
266
|
for (const target of updateTargets) {
|
|
261
267
|
if (!dryRun) syncDir(target.src, target.dest)
|
|
262
268
|
console.log(`▸ .devbooster/${target.name}/`)
|
|
263
269
|
console.log(` status: ${dryRun ? 'would be updated' : 'updated successfully'}`)
|
|
264
270
|
}
|
|
265
271
|
|
|
272
|
+
for (const file of coreFiles) {
|
|
273
|
+
if (!dryRun && fs.existsSync(file.src)) {
|
|
274
|
+
fs.mkdirSync(path.dirname(file.dest), { recursive: true })
|
|
275
|
+
fs.copyFileSync(file.src, file.dest)
|
|
276
|
+
}
|
|
277
|
+
console.log(`▸ .devbooster/${file.name}`)
|
|
278
|
+
console.log(` status: ${dryRun ? 'would be updated' : 'updated successfully'}`)
|
|
279
|
+
}
|
|
280
|
+
|
|
266
281
|
console.log('')
|
|
267
|
-
console.log('▸ rules/')
|
|
282
|
+
console.log('▸ rules/ (Whitelabel files)')
|
|
268
283
|
console.log(' status: preserved')
|
|
269
|
-
console.log(' action:
|
|
284
|
+
console.log(' action: user-customized rules were not overwritten')
|
|
270
285
|
console.log('')
|
|
271
286
|
console.log('▸ DEVBOOSTER_INIT.md')
|
|
272
287
|
console.log(' status: preserved')
|
|
@@ -54,8 +54,8 @@ Only switch to execution mode after the user provides the commit scope.
|
|
|
54
54
|
3. **Run Operational Audit Scripts:**
|
|
55
55
|
- **Mandatory when relevant:** `security_scan.py`, `type_coverage.py`, `lint_runner.py` (if they exist).
|
|
56
56
|
4. **React/Next.js Frontend Triage (3-Phase Flow):** ONLY IF the project uses React/Next.js:
|
|
57
|
-
- **
|
|
58
|
-
- **Timeout Safety**: If the command hangs for more than
|
|
57
|
+
- **Execute & Wait**: Run `npx -y react-doctor@latest --json --diff <scope> --yes > @booster-generated/diagnostics/<slug-name-audit>.json` synchronously. You MUST wait for the command to fully complete before moving to the next step. Do not run it in the background.
|
|
58
|
+
- **Timeout Safety**: If the command hangs for more than 120 seconds, manually abort it (Kill/Ctrl+C) and proceed with the rest of the audit, gracefully skipping the React Doctor step.
|
|
59
59
|
- **Filter (Python)**: Run `.devbooster/hub/scripts/doctor_parser.py @booster-generated/diagnostics/<slug-name-audit>.json` to process the JSON.
|
|
60
60
|
- **Report & Decide**: Present "Immediate Actions" (Critical errors) in detail by line. Present "Cosmetic Debt" (Style rules) as a grouped numerical summary. Append "Content extracted from diagnostics.json".
|
|
61
61
|
- **ZERO Auto-Fix**: Do NOT modify code automatically. Ask the user: "Do you want to fix only the critical recommendations, everything, or specific items?" and wait for authorization.
|
|
@@ -8,11 +8,9 @@ description: Dynamic Scratchpad - Experimental patterns and recently approved ru
|
|
|
8
8
|
|
|
9
9
|
This file operates as a "real-time scratchpad" for the AI and the Developer. The core of the project's architecture lives in `FRONTEND.md`, `BACKEND.md`, and `PROJECT.md`.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
- This file captures development preferences and emergent decisions using the `@SavePattern` trigger (defined in `PROTOCOL.md`).
|
|
12
|
+
- It ensures consistency in the short term. Periodically, the consolidated patterns born here will be migrated to the official frontend or backend files and removed from here.
|
|
13
13
|
|
|
14
|
-
- This file captures development preferences and emergent decisions to ensure consistency in the short term.
|
|
15
|
-
- Periodically (or when refactoring the base), the consolidated patterns born here will be migrated to the official frontend or backend folders and removed from here.
|
|
16
14
|
|
|
17
15
|
---
|
|
18
16
|
|