mother-brain 0.0.8 → 0.0.10
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/dist/cli.js +1 -1
- package/package.json +3 -1
- package/skills/mother-brain/SKILL.md +50 -29
package/dist/cli.js
CHANGED
|
@@ -648,7 +648,7 @@ async function uninstall(options) {
|
|
|
648
648
|
// src/cli.ts
|
|
649
649
|
import { exec as exec3 } from "child_process";
|
|
650
650
|
var program = new Command();
|
|
651
|
-
var VERSION = "0.0.
|
|
651
|
+
var VERSION = "0.0.10";
|
|
652
652
|
program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI").version(VERSION);
|
|
653
653
|
program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
|
|
654
654
|
program.command("update").description("Update Mother Brain skills to the latest version").action(update);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mother-brain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "AI-powered project management framework for GitHub Copilot CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,3 +46,5 @@
|
|
|
46
46
|
"typescript": "^5.3.0"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
|
|
@@ -328,17 +328,34 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
328
328
|
- **Minimal detection**: For new project detection, a single glob for `.mother-brain/` is sufficient
|
|
329
329
|
- Goal: User sees menu within 1-2 tool calls, not 6+
|
|
330
330
|
|
|
331
|
-
**📦
|
|
331
|
+
**📦 SILENT AUTO-UPDATE (on startup, if project exists)**:
|
|
332
332
|
- If `.mother-brain/version.json` exists:
|
|
333
333
|
1. Read installed version from file
|
|
334
|
-
2. Check npm for latest: `npm view mother-brain version`
|
|
335
|
-
3. If newer version available,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
334
|
+
2. Check npm for latest: `npm view mother-brain version --json 2>$null`
|
|
335
|
+
3. If newer version available, **auto-update silently**:
|
|
336
|
+
- Run PowerShell to fetch and replace skills in one operation:
|
|
337
|
+
```powershell
|
|
338
|
+
# Create temp dir, download, extract, copy skills, cleanup
|
|
339
|
+
$temp = "$env:TEMP\mother-brain-update-$(Get-Random)"
|
|
340
|
+
New-Item -ItemType Directory -Path $temp -Force | Out-Null
|
|
341
|
+
npm pack mother-brain --pack-destination $temp 2>$null
|
|
342
|
+
$tgz = Get-ChildItem $temp -Filter "*.tgz" | Select-Object -First 1
|
|
343
|
+
tar -xzf $tgz.FullName -C $temp 2>$null
|
|
344
|
+
$skillsSrc = Join-Path $temp "package\skills"
|
|
345
|
+
if (Test-Path $skillsSrc) {
|
|
346
|
+
Copy-Item "$skillsSrc\*" ".github\skills\" -Recurse -Force
|
|
347
|
+
}
|
|
348
|
+
# Update version.json
|
|
349
|
+
$latest = npm view mother-brain version
|
|
350
|
+
@{version=$latest} | ConvertTo-Json | Set-Content ".mother-brain\version.json"
|
|
351
|
+
Remove-Item $temp -Recurse -Force
|
|
352
|
+
```
|
|
353
|
+
- Display brief confirmation after ASCII art:
|
|
354
|
+
```
|
|
355
|
+
✅ Auto-updated to Mother Brain v[latest]
|
|
356
|
+
```
|
|
340
357
|
4. If check fails (offline), skip silently - don't block startup
|
|
341
|
-
- This check should
|
|
358
|
+
- This entire check should complete in under 5 seconds and never block the menu
|
|
342
359
|
|
|
343
360
|
- Check current directory for existing Mother Brain artifacts
|
|
344
361
|
- Look for:
|
|
@@ -372,18 +389,21 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
372
389
|
- Last Session: [Date/Time]
|
|
373
390
|
```
|
|
374
391
|
|
|
375
|
-
-
|
|
376
|
-
- "
|
|
377
|
-
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
392
|
+
- **IMMEDIATELY after displaying status**, use `ask_user` tool with this EXACT structure:
|
|
393
|
+
- Question: "What would you like to do?"
|
|
394
|
+
- Choices (MUST be provided as array):
|
|
395
|
+
- "Continue where I left off"
|
|
396
|
+
- "Start next task"
|
|
397
|
+
- "Review/update roadmap"
|
|
398
|
+
- "Realign with vision"
|
|
399
|
+
- "View all skills"
|
|
400
|
+
- "Create new skill"
|
|
401
|
+
- "Update Mother Brain (report issues/improvements)"
|
|
402
|
+
- "Release Mother Brain (commit & PR)"
|
|
403
|
+
- "Archive project (save & reset for new project)"
|
|
404
|
+
- "Eject project (reset to framework + learnings)"
|
|
405
|
+
- "🚨 Report Issue (something's not working)"
|
|
406
|
+
- **CRITICAL**: Do NOT ask what to do as freeform text. ALWAYS use the `ask_user` tool.
|
|
387
407
|
- Freeform automatically available for custom actions
|
|
388
408
|
|
|
389
409
|
**If existing project WITHOUT Mother Brain artifacts (ONBOARDING):**
|
|
@@ -425,16 +445,17 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
425
445
|
- Identifying needed skills
|
|
426
446
|
- Breaking down tasks
|
|
427
447
|
- Tracking your progress
|
|
428
|
-
|
|
429
|
-
Ready to begin?
|
|
430
448
|
```
|
|
431
|
-
-
|
|
432
|
-
- "
|
|
433
|
-
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
449
|
+
- **IMMEDIATELY after displaying the welcome message**, use `ask_user` tool with this EXACT structure:
|
|
450
|
+
- Question: "What would you like to do?"
|
|
451
|
+
- Choices (MUST be provided as array):
|
|
452
|
+
- "Yes, start vision discovery"
|
|
453
|
+
- "Just talk (brainstorm mode)"
|
|
454
|
+
- "I have a vision document already (import it)"
|
|
455
|
+
- "Show me an example first"
|
|
456
|
+
- "Update Mother Brain (report issues/improvements)"
|
|
457
|
+
- "Release Mother Brain (commit & PR)"
|
|
458
|
+
- **CRITICAL**: Do NOT ask "Ready to begin?" as freeform text. ALWAYS use the `ask_user` tool with the choices above.
|
|
438
459
|
- Proceed based on selection
|
|
439
460
|
|
|
440
461
|
### 2.2. **Existing Project Onboarding**
|