viepilot 1.14.0 → 2.4.0

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +191 -0
  2. package/README.md +27 -17
  3. package/bin/viepilot.cjs +19 -9
  4. package/bin/vp-tools.cjs +193 -0
  5. package/docs/user/features/adapters.md +74 -0
  6. package/docs/user/features/hooks.md +93 -0
  7. package/lib/adapters/antigravity.cjs +33 -0
  8. package/lib/adapters/claude-code.cjs +42 -0
  9. package/lib/adapters/codex.cjs +34 -0
  10. package/lib/adapters/cursor.cjs +32 -0
  11. package/lib/adapters/index.cjs +28 -0
  12. package/lib/hooks/brainstorm-staleness.cjs +231 -0
  13. package/lib/viepilot-config.cjs +103 -0
  14. package/lib/viepilot-install.cjs +125 -152
  15. package/package.json +1 -3
  16. package/skills/vp-audit/SKILL.md +23 -23
  17. package/skills/vp-auto/SKILL.md +23 -9
  18. package/skills/vp-brainstorm/SKILL.md +44 -38
  19. package/skills/vp-crystallize/SKILL.md +25 -19
  20. package/skills/vp-debug/SKILL.md +4 -4
  21. package/skills/vp-docs/SKILL.md +8 -8
  22. package/skills/vp-evolve/SKILL.md +26 -13
  23. package/skills/vp-info/SKILL.md +24 -24
  24. package/skills/vp-pause/SKILL.md +7 -7
  25. package/skills/vp-request/SKILL.md +14 -14
  26. package/skills/vp-resume/SKILL.md +6 -6
  27. package/skills/vp-rollback/SKILL.md +4 -4
  28. package/skills/vp-status/SKILL.md +4 -4
  29. package/skills/vp-task/SKILL.md +2 -2
  30. package/skills/vp-ui-components/SKILL.md +14 -14
  31. package/skills/vp-update/SKILL.md +18 -18
  32. package/templates/architect/apis.html +11 -10
  33. package/templates/architect/architect-actions.js +217 -0
  34. package/templates/architect/architecture.html +8 -7
  35. package/templates/architect/data-flow.html +5 -4
  36. package/templates/architect/decisions.html +4 -3
  37. package/templates/architect/deployment.html +10 -9
  38. package/templates/architect/erd.html +7 -6
  39. package/templates/architect/feature-map.html +5 -4
  40. package/templates/architect/sequence-diagram.html +6 -5
  41. package/templates/architect/style.css +146 -0
  42. package/templates/architect/tech-notes.html +3 -2
  43. package/templates/architect/tech-stack.html +8 -7
  44. package/templates/architect/user-use-cases.html +8 -7
  45. package/templates/project/AI-GUIDE.md +49 -49
  46. package/workflows/audit.md +3 -3
  47. package/workflows/autonomous.md +70 -5
  48. package/workflows/brainstorm.md +398 -222
  49. package/workflows/crystallize.md +51 -33
  50. package/workflows/debug.md +9 -9
  51. package/workflows/documentation.md +5 -5
  52. package/workflows/evolve.md +46 -12
  53. package/workflows/pause-work.md +2 -2
  54. package/workflows/request.md +8 -8
  55. package/workflows/resume-work.md +1 -1
  56. package/workflows/rollback.md +1 -1
  57. package/dev-install.sh +0 -150
  58. package/install.sh +0 -125
package/install.sh DELETED
@@ -1,125 +0,0 @@
1
- #!/bin/bash
2
-
3
- # ViePilot installation — thin wrapper around the Node installer (bin/viepilot.cjs).
4
- # Implements prompts + optional cloc install here; file copy/symlink/chmod/path is in lib/viepilot-install.cjs.
5
- #
6
- # Optional: VIEPILOT_SYMLINK_SKILLS=1 — passed through to Node (symlink skills into ~/.cursor/skills/)
7
- # Optional: VIEPILOT_INSTALL_DRY_RUN=1 — runs `viepilot install --dry-run` (for CI/tests)
8
-
9
- set -e
10
-
11
- RED='\033[0;31m'
12
- GREEN='\033[0;32m'
13
- YELLOW='\033[1;33m'
14
- BLUE='\033[0;34m'
15
- NC='\033[0m'
16
-
17
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
18
- cd "$SCRIPT_DIR" || exit 1
19
-
20
- CURSOR_SKILLS_DIR="$HOME/.cursor/skills"
21
- VIEPILOT_DIR="$HOME/.cursor/viepilot"
22
- AUTO_YES="${VIEPILOT_AUTO_YES:-0}"
23
- INSTALL_PROFILE="${VIEPILOT_INSTALL_PROFILE:-cursor-ide}"
24
- ADD_PATH_CHOICE="${VIEPILOT_ADD_PATH:-0}"
25
-
26
- echo -e "${BLUE}"
27
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
28
- echo " VIEPILOT INSTALLER"
29
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
30
- echo -e "${NC}"
31
-
32
- if [ ! -f "$SCRIPT_DIR/README.md" ] || [ ! -d "$SCRIPT_DIR/skills" ]; then
33
- echo -e "${RED}Error: Please run this script from the viepilot directory${NC}"
34
- exit 1
35
- fi
36
-
37
- echo -e "${YELLOW}Installation paths:${NC}"
38
- echo " Skills: $CURSOR_SKILLS_DIR"
39
- echo " ViePilot: $VIEPILOT_DIR"
40
- echo " Profile: $INSTALL_PROFILE"
41
- echo " Engine: Node (bin/viepilot.cjs) — no bash copy logic"
42
- echo ""
43
-
44
- install_cloc_best_effort() {
45
- if command -v cloc >/dev/null 2>&1; then
46
- echo " ✓ cloc detected"
47
- return 0
48
- fi
49
-
50
- echo -e "${YELLOW} cloc not found.${NC}"
51
- echo " README metric auto-sync can still run with fallback, but LOC refresh will be skipped."
52
- echo " Suggested install:"
53
- echo " - macOS: brew install cloc"
54
- echo " - Ubuntu/Debian: sudo apt-get install -y cloc"
55
- echo " - Windows: choco install cloc"
56
-
57
- if [ "$AUTO_YES" = "1" ]; then
58
- return 0
59
- fi
60
-
61
- read -p " Attempt automatic cloc install now (best effort)? (y/n) " -n 1 -r
62
- echo
63
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
64
- return 0
65
- fi
66
-
67
- if command -v brew >/dev/null 2>&1; then
68
- brew install cloc || true
69
- elif command -v apt-get >/dev/null 2>&1; then
70
- sudo apt-get update && sudo apt-get install -y cloc || true
71
- elif command -v dnf >/dev/null 2>&1; then
72
- sudo dnf install -y cloc || true
73
- elif command -v yum >/dev/null 2>&1; then
74
- sudo yum install -y cloc || true
75
- elif command -v pacman >/dev/null 2>&1; then
76
- sudo pacman -Sy --noconfirm cloc || true
77
- else
78
- echo -e "${YELLOW} Could not detect supported package manager. Install cloc manually.${NC}"
79
- fi
80
-
81
- if command -v cloc >/dev/null 2>&1; then
82
- echo " ✓ cloc installed"
83
- else
84
- echo -e "${YELLOW} cloc is still unavailable; continuing without blocking installation.${NC}"
85
- fi
86
- }
87
-
88
- if [ "$AUTO_YES" != "1" ]; then
89
- read -p "Continue with installation? (y/n) " -n 1 -r
90
- echo
91
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
92
- echo "Installation cancelled."
93
- exit 0
94
- fi
95
- else
96
- echo "Auto-yes enabled via VIEPILOT_AUTO_YES=1"
97
- fi
98
-
99
- echo ""
100
- echo -e "${BLUE}Preparing Node installer...${NC}"
101
- install_cloc_best_effort
102
-
103
- echo ""
104
- if [ "$AUTO_YES" != "1" ]; then
105
- read -p "Add vp-tools + viepilot to PATH? (symlinks via Node installer, often /usr/local/bin) (y/n) " -n 1 -r
106
- echo
107
- if [[ $REPLY =~ ^[Yy]$ ]]; then
108
- export VIEPILOT_ADD_PATH=1
109
- fi
110
- else
111
- if [ "$ADD_PATH_CHOICE" = "1" ]; then
112
- export VIEPILOT_ADD_PATH=1
113
- fi
114
- fi
115
-
116
- export VIEPILOT_AUTO_YES=1
117
-
118
- NODE_ARGS=(install --target "$INSTALL_PROFILE" --yes)
119
- if [ "${VIEPILOT_INSTALL_DRY_RUN:-0}" = "1" ]; then
120
- NODE_ARGS+=(--dry-run)
121
- fi
122
-
123
- echo ""
124
- echo -e "${BLUE}Running: node bin/viepilot.cjs ${NODE_ARGS[*]}${NC}"
125
- exec node "$SCRIPT_DIR/bin/viepilot.cjs" "${NODE_ARGS[@]}"