chore: update reset scripts and docs for dev data directory
- dev:desktop:reset now cleans both ~/.super-multica and ~/.super-multica-dev - reset-user-data.sh handles dev directory - .env.example documents SMC_DATA_DIR Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ca8c8e5e9c
commit
9e40e8ca76
3 changed files with 17 additions and 1 deletions
|
|
@ -97,3 +97,10 @@ RENDERER_VITE_API_URL=http://localhost:8080
|
|||
# Read by core package via process.env.MULTICA_API_URL at runtime
|
||||
# Production example: https://api.multica.ai
|
||||
MULTICA_API_URL=http://localhost:8080
|
||||
|
||||
# SMC_DATA_DIR
|
||||
# Root data directory override - Isolates dev data from production.
|
||||
# When set, all data (sessions, credentials, profiles, app-state, etc.)
|
||||
# is stored under this directory instead of ~/.super-multica.
|
||||
# Supports ~ expansion. Set automatically by scripts/dev-local.sh.
|
||||
# SMC_DATA_DIR=~/.super-multica-dev
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"mu": "pnpm --filter @multica/cli dev",
|
||||
"dev": "turbo build --filter=@multica/types --filter=@multica/utils --filter=@multica/core && concurrently -n types,utils,core,desktop -c blue,green,yellow,cyan \"pnpm --filter @multica/types dev\" \"pnpm --filter @multica/utils dev\" \"pnpm --filter @multica/core dev\" \"pnpm --filter @multica/desktop dev\"",
|
||||
"dev:desktop": "pnpm --filter @multica/desktop dev",
|
||||
"dev:desktop:reset": "rm -rf ~/.super-multica && echo '✓ Deleted ~/.super-multica - Fresh install state restored'",
|
||||
"dev:desktop:reset": "rm -rf ~/.super-multica && rm -rf ~/.super-multica-dev && echo '✓ Deleted ~/.super-multica and ~/.super-multica-dev - Fresh install state restored'",
|
||||
"dev:desktop:fresh": "pnpm dev:desktop:reset && pnpm dev:desktop",
|
||||
"dev:desktop:onboarding": "pnpm --filter @multica/desktop dev:onboarding",
|
||||
"dev:gateway": "pnpm --filter @multica/gateway dev",
|
||||
|
|
|
|||
|
|
@ -15,6 +15,15 @@ else
|
|||
echo " $MULTICA_DATA_DIR does not exist, skipping"
|
||||
fi
|
||||
|
||||
# Dev data directory (used by pnpm dev:local)
|
||||
MULTICA_DEV_DIR="$HOME/.super-multica-dev"
|
||||
if [ -d "$MULTICA_DEV_DIR" ]; then
|
||||
echo " Removing $MULTICA_DEV_DIR"
|
||||
rm -rf "$MULTICA_DEV_DIR"
|
||||
else
|
||||
echo " $MULTICA_DEV_DIR does not exist, skipping"
|
||||
fi
|
||||
|
||||
# Electron app data (macOS)
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
ELECTRON_APP_DATA="$HOME/Library/Application Support/super-multica"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue