mother-brain 0.0.26 → 0.0.27
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 +1 -1
- package/skills/mother-brain/SKILL.md +11 -5
package/dist/cli.js
CHANGED
|
@@ -653,7 +653,7 @@ async function uninstall(options) {
|
|
|
653
653
|
// src/cli.ts
|
|
654
654
|
import { exec as exec3 } from "child_process";
|
|
655
655
|
var program = new Command();
|
|
656
|
-
var VERSION = "0.0.
|
|
656
|
+
var VERSION = "0.0.27";
|
|
657
657
|
program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI").version(VERSION);
|
|
658
658
|
program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
|
|
659
659
|
program.command("update").description("Update Mother Brain skills to the latest version").action(update);
|
package/package.json
CHANGED
|
@@ -482,11 +482,11 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
482
482
|
- **Minimal detection**: For new project detection, a single glob for `.mother-brain/` is sufficient
|
|
483
483
|
- Goal: User sees menu within 1-2 tool calls, not 6+
|
|
484
484
|
|
|
485
|
-
**📦
|
|
485
|
+
**📦 AUTO-UPDATE CHECK (on startup, if project exists)**:
|
|
486
486
|
- If `.mother-brain/version.json` exists:
|
|
487
487
|
1. Read installed version from file
|
|
488
488
|
2. Check npm for latest: `npm view mother-brain version --json 2>$null`
|
|
489
|
-
3. If newer version available
|
|
489
|
+
3. If newer version available:
|
|
490
490
|
- Run PowerShell to fetch and replace skills in one operation:
|
|
491
491
|
```powershell
|
|
492
492
|
# Create temp dir, download, extract, copy skills, cleanup
|
|
@@ -504,12 +504,18 @@ This pattern ensures NO workflow ever traps the user—there's always an escape
|
|
|
504
504
|
@{version=$latest} | ConvertTo-Json | Set-Content ".mother-brain\version.json"
|
|
505
505
|
Remove-Item $temp -Recurse -Force
|
|
506
506
|
```
|
|
507
|
-
-
|
|
507
|
+
- **CRITICAL: After updating, STOP and display restart message**:
|
|
508
508
|
```
|
|
509
|
-
|
|
509
|
+
⚠️ Mother Brain Updated to v[latest]
|
|
510
|
+
|
|
511
|
+
Skills have been updated on disk, but I'm still running the old version.
|
|
512
|
+
|
|
513
|
+
👉 Please run /mother-brain again to use the new features.
|
|
510
514
|
```
|
|
515
|
+
- **DO NOT continue with the menu** - the user must restart for new features to take effect
|
|
516
|
+
- STOP execution here
|
|
511
517
|
4. If check fails (offline), skip silently - don't block startup
|
|
512
|
-
|
|
518
|
+
5. If already on latest version, continue silently
|
|
513
519
|
|
|
514
520
|
- Check current directory for existing Mother Brain artifacts
|
|
515
521
|
- Look for:
|