feat(FN-1644): rename default global data directory from ~/.pi/fusion to ~/.fusion

- Change default global directory from ~/.pi/fusion to ~/.fusion
- Add migration logic to copy existing data from old directory to new location
- Update all core packages (store, settings, central-core, central-db) to use new default path
- Update all documentation references from ~/.pi/fusion to ~/.fusion
- Add test for ~/.pi/fusion migration path with updated mock paths
- Include changeset for @gsxdsm/fusion minor version bump
This commit is contained in:
Fusion
2026-04-15 13:33:27 -07:00
committed by gsxdsm
parent af4df19e94
commit 0c8089b1d2
24 changed files with 107 additions and 48 deletions

View File

@@ -138,7 +138,7 @@ What the task should accomplish.
## Global Settings
User-level settings at `~/.pi/fusion/settings.json`:
User-level settings at `~/.fusion/settings.json`:
```json
{
@@ -152,7 +152,7 @@ User-level settings at `~/.pi/fusion/settings.json`:
## Central Database (Multi-Project)
For multi-project setups: `~/.pi/fusion/fusion-central.db`
For multi-project setups: `~/.fusion/fusion-central.db`
- Project registry
- Unified activity feed
- Global concurrency management

View File

@@ -458,7 +458,7 @@ vi.mock("@fusion/core", () => ({
PluginStore: mocks.pluginStoreCtor,
PluginLoader: mocks.pluginLoaderCtor,
GlobalSettingsStore: vi.fn().mockImplementation(() => mocks.globalSettingsStoreInstance),
resolveGlobalDir: vi.fn().mockReturnValue("/home/user/.pi/fusion"),
resolveGlobalDir: vi.fn().mockReturnValue("/home/user/.fusion"),
DaemonTokenManager: vi.fn().mockImplementation(() => ({
getToken: vi.fn().mockImplementation(() => Promise.resolve(mocks.globalSettingsData.daemonToken as string | undefined)),
generateToken: vi.fn().mockImplementation(() => {