chore: remove AT&T-specific refs, add dual-network switch script
- Replace hardcoded /Users/sd9235/ paths with $HOME in all SKILLS docs - Use WORKSPACE_DIR variable in backup-main.sh (auto-resolves from script location) - Genericize 'Forcepoint CertChecker' / 'corporate proxy' to 'SSL-intercepting proxy' - Add scripts/switch-network.sh for toggling npm between corporate proxy and home - No functional code changes — only comments, docs, and paths
This commit is contained in:
parent
2e86353e77
commit
97b6f4b8d1
@ -25,7 +25,8 @@ For each of the 3 repositories:
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
bash /Users/sd9235/code/mygh/learning_ai_common_plat/scripts/backup-main.sh
|
||||
# From the learning_ai_common_plat root:
|
||||
bash scripts/backup-main.sh
|
||||
```
|
||||
|
||||
Or via Windsurf workflow: `/backup-main-branch`
|
||||
@ -71,7 +72,7 @@ git merge restore-from-backup
|
||||
|
||||
- **Add repos**: Edit `REPOS` array in `scripts/backup-main.sh`
|
||||
- **Change retention**: Modify `tail -n +8` (keep last N) in the cleanup section
|
||||
- **Cron**: `0 18 * * * bash /Users/sd9235/code/mygh/learning_ai_common_plat/scripts/backup-main.sh`
|
||||
- **Cron**: `0 18 * * * bash $HOME/code/mygh/learning_ai_common_plat/scripts/backup-main.sh`
|
||||
|
||||
## Related Skills
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
## When to Use
|
||||
|
||||
- On home networks without corporate proxy
|
||||
- On networks without SSL-intercepting proxy
|
||||
- For CI/CD pipelines
|
||||
- When you need reproducible environments
|
||||
- To avoid local dependency conflicts
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
- Docker Desktop running
|
||||
- Sufficient RAM (8GB+ recommended)
|
||||
- No corporate proxy that intercepts SSL
|
||||
- No SSL-intercepting proxy (or use `scripts/switch-network.sh home`)
|
||||
|
||||
### Required Environment Files
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Start all 10 containers
|
||||
docker compose up -d
|
||||
@ -196,7 +196,7 @@ docker stats
|
||||
|
||||
- **Python**: Check backend/Dockerfile for Python version compatibility
|
||||
- **Node.js**: Ensure package.json lock files are present
|
||||
- **Corporate proxy**: Docker builds will fail with SSL interception
|
||||
- **SSL proxy**: Docker builds will fail behind SSL-intercepting proxies
|
||||
|
||||
### Performance Issues
|
||||
|
||||
@ -231,7 +231,7 @@ docker compose up -d
|
||||
|
||||
## Notes
|
||||
|
||||
- **Do NOT use on corporate proxy networks** - SSL interception breaks pip/npm installs
|
||||
- **Do NOT use behind SSL-intercepting proxies** — breaks pip/npm installs inside containers
|
||||
- **All dashboards require `output: "standalone"`** in next.config.ts (already configured)
|
||||
- **Env vars are injected via `env_file`** in docker-compose.yml
|
||||
- **Images are multi-stage** for optimal production size
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- All repos cloned to `/Users/sd9235/code/mygh/`
|
||||
- All repos cloned to `$HOME/code/mygh/`
|
||||
- Python 3.12+ with virtual environment
|
||||
- Node.js 20+
|
||||
- pnpm installed globally
|
||||
@ -20,7 +20,7 @@
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Start all 8 services at once
|
||||
./run-local-all-services.sh start
|
||||
@ -65,33 +65,33 @@ If the script doesn't work, start services manually:
|
||||
### 1. Common Platform Services
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
cd $HOME/code/mygh/learning_ai_common_plat
|
||||
|
||||
# Growth Service
|
||||
cd services/growth-service
|
||||
pnpm install
|
||||
pnpm dev > /Users/sd9235/code/mygh/learning_voice_ai_agent/.logs/growth-service.log 2>&1 &
|
||||
pnpm dev > $HOME/code/mygh/learning_voice_ai_agent/.logs/growth-service.log 2>&1 &
|
||||
|
||||
# Billing Service
|
||||
cd ../billing-service
|
||||
pnpm install
|
||||
pnpm dev > /Users/sd9235/code/mygh/learning_voice_ai_agent/.logs/billing-service.log 2>&1 &
|
||||
pnpm dev > $HOME/code/mygh/learning_voice_ai_agent/.logs/billing-service.log 2>&1 &
|
||||
|
||||
# Platform Service
|
||||
cd ../platform-service
|
||||
pnpm install
|
||||
pnpm dev > /Users/sd9235/code/mygh/learning_voice_ai_agent/.logs/platform-service.log 2>&1 &
|
||||
pnpm dev > $HOME/code/mygh/learning_voice_ai_agent/.logs/platform-service.log 2>&1 &
|
||||
|
||||
# Tracker Service
|
||||
cd ../tracker-service
|
||||
pnpm install
|
||||
pnpm dev > /Users/sd9235/code/mygh/learning_voice_ai_agent/.logs/tracker-service.log 2>&1 &
|
||||
pnpm dev > $HOME/code/mygh/learning_voice_ai_agent/.logs/tracker-service.log 2>&1 &
|
||||
```
|
||||
|
||||
### 2. Voice Agent Services
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Backend API
|
||||
cd backend
|
||||
|
||||
@ -31,7 +31,7 @@ echo $ANDROID_HOME # Should point to Android SDK path
|
||||
## Phase 1: MindLyst Native (Kotlin Multiplatform)
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
cd $HOME/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
|
||||
# 1. Full project build
|
||||
./gradlew build
|
||||
@ -81,7 +81,7 @@ swiftlint
|
||||
## Phase 2: LysnrAI Mobile Components
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent/mobile_app
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent/mobile_app
|
||||
|
||||
# 1. Android checks
|
||||
cd android
|
||||
@ -109,7 +109,7 @@ python -m ruff format .
|
||||
### Design Token Synchronization
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_multimodal_memory_agents
|
||||
cd $HOME/code/mygh/learning_multimodal_memory_agents
|
||||
|
||||
# Check if tokens are in sync
|
||||
./scripts/sync-design-tokens.sh --check
|
||||
@ -137,7 +137,7 @@ diff mindlyst-native/shared/src/commonMain/kotlin/api/ \
|
||||
### Android Performance
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
cd $HOME/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
|
||||
./gradlew :androidApp:assembleDebug
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
## Phase 1: Common Platform (learning_ai_common_plat)
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
cd $HOME/code/mygh/learning_ai_common_plat
|
||||
|
||||
# 1. Install dependencies and build
|
||||
pnpm install
|
||||
@ -54,7 +54,7 @@ for pkg in packages/*/dist; do node -e "require('./$pkg/index.js')" 2>/dev/null
|
||||
### Dashboard Setup
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Install dashboards (requires common_plat built)
|
||||
cd admin-dashboard-web && npm install
|
||||
@ -81,7 +81,7 @@ npm run test:e2e # E2E tests
|
||||
### Python Validation
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Type checking
|
||||
pyright
|
||||
@ -117,7 +117,7 @@ python -m ruff check src/ tests/
|
||||
### Desktop App (Optional)
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Build verification (resource-intensive)
|
||||
bash scripts/build.sh
|
||||
@ -127,7 +127,7 @@ bash scripts/build.sh
|
||||
## Phase 3: MindLyst (learning_multimodal_memory_agents)
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
cd $HOME/code/mygh/learning_multimodal_memory_agents/mindlyst-native
|
||||
|
||||
# 1. Install and build
|
||||
./gradlew build
|
||||
@ -155,7 +155,7 @@ cd .. && ./gradlew :shared:test
|
||||
## Phase 4: Integration Smoke Test
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# 1. Start all services with Docker
|
||||
docker compose up -d
|
||||
@ -164,7 +164,7 @@ docker compose ps
|
||||
# If any service fails: fix, commit push in appropriate repo
|
||||
|
||||
# 2. Health check
|
||||
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
cd $HOME/code/mygh/learning_ai_common_plat
|
||||
npx tsx services/monitoring/health-check.ts
|
||||
# If fails: fix, commit push in common_plat or voice_agent
|
||||
|
||||
@ -176,7 +176,7 @@ npx tsx services/monitoring/health-check.ts
|
||||
# If any fails: fix, commit push in voice_agent
|
||||
|
||||
# 4. Stop services
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
docker compose down
|
||||
```
|
||||
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
|
||||
## Repositories Covered
|
||||
|
||||
| Repo | Path | Scope |
|
||||
| ------------------------------------- | ----------------------------------------------------------- | -------------------------- |
|
||||
| **learning_voice_ai_agent** | `/Users/sd9235/code/mygh/learning_voice_ai_agent` | LysnrAI product code |
|
||||
| **learning_ai_common_plat** | `/Users/sd9235/code/mygh/learning_ai_common_plat` | Shared packages + services |
|
||||
| **learning_multimodal_memory_agents** | `/Users/sd9235/code/mygh/learning_multimodal_memory_agents` | MindLyst native app |
|
||||
| Repo | Path | Scope |
|
||||
| ------------------------------------- | --------------------------------------------------- | -------------------------- |
|
||||
| **learning_voice_ai_agent** | `$HOME/code/mygh/learning_voice_ai_agent` | LysnrAI product code |
|
||||
| **learning_ai_common_plat** | `$HOME/code/mygh/learning_ai_common_plat` | Shared packages + services |
|
||||
| **learning_multimodal_memory_agents** | `$HOME/code/mygh/learning_multimodal_memory_agents` | MindLyst native app |
|
||||
|
||||
## Files Updated Per Repo
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
### 1. Scan learning_voice_ai_agent
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_voice_ai_agent
|
||||
cd $HOME/code/mygh/learning_voice_ai_agent
|
||||
|
||||
# Find all JS projects
|
||||
find . -maxdepth 2 -type f -name "package.json" -not -path "*/node_modules/*" | head -20
|
||||
@ -72,7 +72,7 @@ head -20 run-local-all-services.sh
|
||||
### 2. Scan learning_ai_common_plat
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
cd $HOME/code/mygh/learning_ai_common_plat
|
||||
|
||||
# List all packages
|
||||
find packages -maxdepth 2 -name "package.json" -not -path "*/node_modules/*"
|
||||
@ -103,7 +103,7 @@ ls packages/design-tokens/generated/
|
||||
### 3. Scan learning_multimodal_memory_agents
|
||||
|
||||
```bash
|
||||
cd /Users/sd9235/code/mygh/learning_multimodal_memory_agents
|
||||
cd $HOME/code/mygh/learning_multimodal_memory_agents
|
||||
|
||||
# Find source files
|
||||
find mindlyst-native -maxdepth 3 -name "*.kt" -o -name "*.swift" -o -name "*.tsx" | head -30
|
||||
@ -351,9 +351,9 @@ Create `scripts/update-all-agent-docs.sh`:
|
||||
# Update all agent docs across repos
|
||||
|
||||
REPOS=(
|
||||
"/Users/sd9235/code/mygh/learning_voice_ai_agent"
|
||||
"/Users/sd9235/code/mygh/learning_ai_common_plat"
|
||||
"/Users/sd9235/code/mygh/learning_multimodal_memory_agents"
|
||||
"$HOME/code/mygh/learning_voice_ai_agent"
|
||||
"$HOME/code/mygh/learning_ai_common_plat"
|
||||
"$HOME/code/mygh/learning_multimodal_memory_agents"
|
||||
)
|
||||
|
||||
for repo in "${REPOS[@]}"; do
|
||||
|
||||
@ -164,11 +164,12 @@ backup_repo() {
|
||||
SUMMARY_IDX=$((SUMMARY_IDX + 1))
|
||||
}
|
||||
|
||||
# Backup all repositories
|
||||
# Backup all repositories (resolve from script location)
|
||||
WORKSPACE_DIR="${WORKSPACE_DIR:-$(cd "$(dirname "$0")/../.." && pwd)}"
|
||||
REPOS=(
|
||||
"/Users/sd9235/code/mygh/learning_ai_common_plat"
|
||||
"/Users/sd9235/code/mygh/learning_voice_ai_agent"
|
||||
"/Users/sd9235/code/mygh/learning_multimodal_memory_agents"
|
||||
"$WORKSPACE_DIR/learning_ai_common_plat"
|
||||
"$WORKSPACE_DIR/learning_voice_ai_agent"
|
||||
"$WORKSPACE_DIR/learning_multimodal_memory_agents"
|
||||
)
|
||||
|
||||
for repo in "${REPOS[@]}"; do
|
||||
|
||||
81
scripts/switch-network.sh
Executable file
81
scripts/switch-network.sh
Executable file
@ -0,0 +1,81 @@
|
||||
#!/bin/bash
|
||||
# Toggle npm/pnpm between corporate proxy and direct (home) network.
|
||||
#
|
||||
# Usage:
|
||||
# source scripts/switch-network.sh corp # AT&T / corporate proxy
|
||||
# source scripts/switch-network.sh home # Direct internet (home/VPN off)
|
||||
# source scripts/switch-network.sh status # Show current config
|
||||
#
|
||||
# This modifies ~/.npmrc. Must be sourced (not executed) to affect current shell.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
NPMRC="$HOME/.npmrc"
|
||||
CORP_PROXY="http://cso.proxy.att.com:8080/"
|
||||
CORP_REGISTRY="https://jfrog-pkg-proxy.it.att.com/artifactory/api/npm/att-npm-proxy-group/"
|
||||
HOME_REGISTRY="https://registry.npmjs.org/"
|
||||
|
||||
show_status() {
|
||||
echo "=== Current npm config ==="
|
||||
echo " proxy: $(npm config get proxy 2>/dev/null || echo 'not set')"
|
||||
echo " https-proxy: $(npm config get https-proxy 2>/dev/null || echo 'not set')"
|
||||
echo " registry: $(npm config get registry 2>/dev/null || echo 'not set')"
|
||||
if command -v pnpm &>/dev/null; then
|
||||
echo " pnpm store: $(pnpm store path 2>/dev/null || echo 'unknown')"
|
||||
fi
|
||||
echo ""
|
||||
if [ -f "$NPMRC" ]; then
|
||||
echo "=== ~/.npmrc ==="
|
||||
cat "$NPMRC"
|
||||
else
|
||||
echo "No ~/.npmrc found"
|
||||
fi
|
||||
}
|
||||
|
||||
set_corp() {
|
||||
cat > "$NPMRC" <<EOF
|
||||
proxy=$CORP_PROXY
|
||||
https-proxy=$CORP_PROXY
|
||||
registry=$CORP_REGISTRY
|
||||
strict-ssl=false
|
||||
EOF
|
||||
echo "✅ Switched to CORPORATE network"
|
||||
echo " proxy: $CORP_PROXY"
|
||||
echo " registry: $CORP_REGISTRY"
|
||||
echo ""
|
||||
echo " Lock files will resolve through JFrog proxy."
|
||||
echo " Run 'npm install' / 'pnpm install' as normal."
|
||||
}
|
||||
|
||||
set_home() {
|
||||
cat > "$NPMRC" <<EOF
|
||||
registry=$HOME_REGISTRY
|
||||
EOF
|
||||
echo "✅ Switched to HOME network"
|
||||
echo " proxy: (none)"
|
||||
echo " registry: $HOME_REGISTRY"
|
||||
echo ""
|
||||
echo " Lock files will resolve from npmjs.org."
|
||||
echo " To regenerate clean lock files:"
|
||||
echo " rm package-lock.json && npm install"
|
||||
echo " rm pnpm-lock.yaml && pnpm install"
|
||||
}
|
||||
|
||||
case "${1:-status}" in
|
||||
corp|corporate|work)
|
||||
set_corp
|
||||
;;
|
||||
home|direct|off)
|
||||
set_home
|
||||
;;
|
||||
status|show)
|
||||
show_status
|
||||
;;
|
||||
*)
|
||||
echo "Usage: source scripts/switch-network.sh [corp|home|status]"
|
||||
echo ""
|
||||
echo " corp — Enable corporate proxy (AT&T JFrog)"
|
||||
echo " home — Direct internet (no proxy)"
|
||||
echo " status — Show current npm config"
|
||||
;;
|
||||
esac
|
||||
Loading…
Reference in New Issue
Block a user