wicked-brain 0.4.10 → 0.4.11
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,13 +80,23 @@ this resolution. Never compute `_meta/config.json` against the project's `cwd`.
|
|
|
80
80
|
|
|
81
81
|
### Step 1: Ask the user
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
(lowercase, replace non-alphanumerics with hyphens). Then ask:
|
|
83
|
+
**Ask in this exact order — do not reverse the questions:**
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
First, compute `{cwd_basename}`: take the basename of the current working directory,
|
|
86
|
+
lowercase it, and replace any non-alphanumeric characters with hyphens.
|
|
87
|
+
|
|
88
|
+
Then ask **two questions, in order**:
|
|
89
|
+
|
|
90
|
+
1. **"What should this project's brain be called?"**
|
|
91
|
+
- Default: `{cwd_basename}` (the current directory name, not the string "wicked-brain")
|
|
92
|
+
- Wait for the user's answer (or acceptance of default) before asking question 2.
|
|
93
|
+
|
|
94
|
+
2. **"Where should it live?"**
|
|
95
|
+
- Default:
|
|
96
|
+
- macOS/Linux: `~/.wicked-brain/projects/{project_name}` (where `{project_name}` is the name from question 1)
|
|
97
|
+
- Windows: `%USERPROFILE%\.wicked-brain\projects\{project_name}`
|
|
98
|
+
- The default path MUST include the `projects/` subdirectory and the project name.
|
|
99
|
+
**Never default to just `~/.wicked-brain/`** — that is the parent container, not a brain.
|
|
90
100
|
|
|
91
101
|
If the user supplies a path that is exactly `~/.wicked-brain` (the parent
|
|
92
102
|
directory, not a project subdirectory), push back: explain the per-project
|