dev-booster 1.6.0 → 1.7.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-booster",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Reusable AI development kit with manual boosters, governance, and project bootstrap",
5
5
  "type": "module",
6
6
  "scripts": {
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: no local files were overwritten')
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
- - **Run Silently**: Execute `npx -y react-doctor@latest --json --diff <scope> --yes > @booster-generated/diagnostics/<slug-name-audit>.json` in the background, scoped to the user's requested commits.
58
- - **Timeout Safety**: If the command hangs for more than 30 seconds, manually abort it (Kill/Ctrl+C) and proceed with the rest of the audit, gracefully skipping the React Doctor step.
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.