Commit Graph

15 Commits

Author SHA1 Message Date
saravanakumardb1
9b9f5ba0fd chore: update project files 2026-02-14 20:48:39 -08:00
b2986744fa chore(husky): run hooks from repo root and avoid npx 2026-02-14 12:55:41 -08:00
saravanakumardb1
d97c4ce4f0 chore(workflows): rename repo workflows to repo_* prefix, add sync-repos, remove pull from backup 2026-02-14 11:25:23 -08:00
2fe2d7fbc6 chore(husky): remove deprecated husky.sh sourcing 2026-02-14 09:56:40 -08:00
06aca239f4 chore(security): add secret scanning + playbook 2026-02-14 00:24:41 -08:00
saravanakumardb1
446201b423 feat(platform-service): update Dockerfile for pnpm workspace support
- Add proper workspace dependency resolution
- Build packages before service
- Use pnpm deploy for production
- Add docker-prep.sh script for helper commands
2026-02-12 23:43:40 -08:00
saravanakumardb1
2c588c51a3 refactor(scripts): simplify switch-network to env-var based approach
Single env var NETWORK=corp|home controls all proxy config.
Source from ~/.zshrc — sets http_proxy, NPM_CONFIG_REGISTRY,
PIP_TRUSTED_HOST, NODE_TLS_REJECT_UNAUTHORIZED automatically.
No more ~/.npmrc rewriting.
2026-02-12 20:38:57 -08:00
saravanakumardb1
97b6f4b8d1 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
2026-02-12 20:34:48 -08:00
saravanakumardb1
2e86353e77 fix(backup): show commits since last backup instead of total count 2026-02-12 20:17:46 -08:00
saravanakumardb1
66899f3891 fix(backup): fix set -e crash on arithmetic increment and repo errors 2026-02-12 20:14:38 -08:00
saravanakumardb1
f82afb3872 fix(backup): fix duplicate detection, add push + rich summary table
Bug fix: cut -d'/' -f2 truncated 'origin/backup/main-*' to just
'backup', so rev-parse always failed and duplicate detection never
worked. Fixed with sed to strip 'origin/' prefix properly.

New features:
- Push unpushed main commits before backing up
- Fetch remote backup refs before comparing
- Rich summary table: repo, status, commit count, push status, last msg
- Color-coded output with dim/bold formatting
- Proper cleanup using sed instead of broken cut
2026-02-12 20:13:57 -08:00
saravanakumardb1
f2a5dcecda fix: improve backup script error handling
- Check if directory is a git repository before proceeding
- Add fallback for git switch (use checkout if switch fails)
- Handle offline/no-origin scenarios gracefully
- Use local HEAD instead of origin/main for comparison
- Add error handling for push operations
- Continue backup locally if remote push fails
2026-02-12 20:02:21 -08:00
saravanakumardb1
ae2e757fb2 feat: add backup main branch workflow with smart duplicate detection
- Create Backup Main Branch skill with comprehensive documentation
- Add Windsurf workflow for easy access
- Implement bash script with multi-repo support
- Smart detection to avoid duplicate backups
- Automatic cleanup of old backups (keeps 7 days)
- Color-coded output for better visibility
- Always returns to main branch after backup
2026-02-12 19:54:29 -08:00
saravanakumardb1
92cb800d32 chore: remove test file 2026-02-12 16:17:29 -08:00
saravanakumardb1
ca7a770309 feat: add Husky git hooks with enable/disable flag
 Added Husky and lint-staged to all package.json files
- common_plat: root package.json
- voice_agent: all 3 dashboards (admin, user, tracker)

 Created setup scripts
- scripts/setup-husky.sh in both repos
- Creates .husky/pre-commit with HUSKY_ENABLED flag check

 Added documentation
- HUSKY_SETUP.md: Complete setup and usage guide
- SHELL_ALIASES.md: Shell aliases for easy toggle

Features:
- Environment variable control: HUSKY_ENABLED=false/true
- lint-staged runs only on changed files (~2-5s)
- Auto-fixes ESLint and formats with Prettier
- Can be bypassed with --no-verify or husky-off alias

To activate after pulling:
1. pnpm install (or npm install)
2. pnpm prepare (or npm run prepare)
3. ./scripts/setup-husky.sh
2026-02-12 16:08:30 -08:00