phewsh 0.14.3 → 0.14.4
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/lib/projects-index.js +5 -2
- package/package.json +1 -1
package/lib/projects-index.js
CHANGED
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
// so running `phewsh` at machine root becomes mission-control bootstrap
|
|
5
5
|
// ("where do you want to work?") instead of "no project found, goodbye."
|
|
6
6
|
//
|
|
7
|
-
// Storage: ~/.phewsh/
|
|
7
|
+
// Storage: ~/.phewsh/project-index.json. Local-first; web sync layers on top.
|
|
8
|
+
// NOT projects.json — that file belongs to `phewsh mcp` (web project cache,
|
|
9
|
+
// array-shaped). Claiming it caused a startup crash AND would have clobbered
|
|
10
|
+
// MCP data on first write. One file, one owner.
|
|
8
11
|
|
|
9
12
|
const fs = require('fs');
|
|
10
13
|
const path = require('path');
|
|
11
14
|
const os = require('os');
|
|
12
15
|
|
|
13
|
-
const INDEX_FILE = path.join(os.homedir(), '.phewsh', '
|
|
16
|
+
const INDEX_FILE = path.join(os.homedir(), '.phewsh', 'project-index.json');
|
|
14
17
|
|
|
15
18
|
// Shallow-scanned roots when the user asks to find projects. One level deep,
|
|
16
19
|
// opt-in only — deep-scanning someone's machine uninvited is invasive.
|