wicked-brain 0.4.12 → 0.4.13
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/server/package.json
CHANGED
|
@@ -80,15 +80,32 @@ this resolution. Never compute `_meta/config.json` against the project's `cwd`.
|
|
|
80
80
|
|
|
81
81
|
### Step 1: Ask the user
|
|
82
82
|
|
|
83
|
-
**Ask in this exact order — do not reverse the questions
|
|
83
|
+
**Ask in this exact order — do not reverse the questions.**
|
|
84
84
|
|
|
85
|
-
First, compute `{cwd_basename}`:
|
|
86
|
-
|
|
85
|
+
First, compute `{cwd_basename}`:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# macOS/Linux
|
|
89
|
+
basename "$PWD"
|
|
90
|
+
# Windows PowerShell
|
|
91
|
+
Split-Path -Leaf (Get-Location)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
This gives you the name of **the project the user is currently working in** — the repo or
|
|
95
|
+
directory they are about to index. It has nothing to do with wicked-brain, the skill name,
|
|
96
|
+
or any installed tool. For example:
|
|
97
|
+
|
|
98
|
+
- User is in `/Users/alice/Projects/wicked-bus` → default name is `wicked-bus`
|
|
99
|
+
- User is in `/home/bob/work/my-api` → default name is `my-api`
|
|
100
|
+
- User is in `/Users/mike/Projects/wicked-brain` → default name is `wicked-brain` (only
|
|
101
|
+
correct if they are literally indexing the wicked-brain repo itself)
|
|
102
|
+
|
|
103
|
+
Lowercase the result and replace non-alphanumeric characters with hyphens.
|
|
87
104
|
|
|
88
105
|
Then ask **two questions, in order**:
|
|
89
106
|
|
|
90
107
|
1. **"What should this project's brain be called?"**
|
|
91
|
-
- Default: `{cwd_basename}`
|
|
108
|
+
- Default: `{cwd_basename}` — computed above from the actual current working directory
|
|
92
109
|
- Wait for the user's answer (or acceptance of default) before asking question 2.
|
|
93
110
|
|
|
94
111
|
2. **"Where should it live?"**
|