@atlashub/smartstack-cli 3.33.0 → 3.35.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 (65) hide show
  1. package/.documentation/agents.html +5 -1
  2. package/.documentation/apex.html +644 -0
  3. package/.documentation/business-analyse.html +81 -1
  4. package/.documentation/cli-commands.html +5 -1
  5. package/.documentation/commands.html +5 -1
  6. package/.documentation/efcore.html +5 -1
  7. package/.documentation/gitflow.html +5 -1
  8. package/.documentation/hooks.html +5 -1
  9. package/.documentation/index.html +60 -2
  10. package/.documentation/init.html +414 -1
  11. package/.documentation/installation.html +5 -1
  12. package/.documentation/ralph-loop.html +365 -216
  13. package/.documentation/test-web.html +5 -1
  14. package/dist/index.js +32 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/mcp-entry.mjs +7 -24
  17. package/dist/mcp-entry.mjs.map +1 -1
  18. package/package.json +1 -2
  19. package/templates/agents/ba-writer.md +142 -15
  20. package/templates/mcp-scaffolding/controller.cs.hbs +5 -1
  21. package/templates/skills/apex/SKILL.md +9 -3
  22. package/templates/skills/apex/_shared.md +49 -4
  23. package/templates/skills/{ralph-loop → apex}/references/core-seed-data.md +20 -11
  24. package/templates/skills/{ralph-loop → apex}/references/error-classification.md +2 -1
  25. package/templates/skills/apex/references/post-checks.md +463 -3
  26. package/templates/skills/apex/references/smartstack-api.md +76 -8
  27. package/templates/skills/apex/references/smartstack-frontend.md +74 -1
  28. package/templates/skills/apex/references/smartstack-layers.md +21 -3
  29. package/templates/skills/apex/steps/step-00-init.md +121 -1
  30. package/templates/skills/apex/steps/step-01-analyze.md +58 -0
  31. package/templates/skills/apex/steps/step-02-plan.md +36 -0
  32. package/templates/skills/apex/steps/step-03-execute.md +114 -7
  33. package/templates/skills/apex/steps/step-04-examine.md +116 -2
  34. package/templates/skills/business-analyse/SKILL.md +31 -20
  35. package/templates/skills/business-analyse/_module-loop.md +68 -9
  36. package/templates/skills/business-analyse/_shared.md +80 -21
  37. package/templates/skills/business-analyse/questionnaire/00-application.md +4 -2
  38. package/templates/skills/business-analyse/questionnaire/00b-project.md +85 -0
  39. package/templates/skills/business-analyse/references/deploy-modes.md +69 -0
  40. package/templates/skills/business-analyse/references/team-orchestration.md +158 -7
  41. package/templates/skills/business-analyse/schemas/application-schema.json +15 -1
  42. package/templates/skills/business-analyse/schemas/project-schema.json +490 -0
  43. package/templates/skills/business-analyse/schemas/sections/metadata-schema.json +2 -1
  44. package/templates/skills/business-analyse/steps/step-00-init.md +220 -38
  45. package/templates/skills/business-analyse/steps/step-01-cadrage.md +184 -5
  46. package/templates/skills/business-analyse/steps/step-01b-applications.md +423 -0
  47. package/templates/skills/business-analyse/steps/step-02-decomposition.md +23 -6
  48. package/templates/skills/business-analyse/steps/step-03c-compile.md +14 -2
  49. package/templates/skills/business-analyse/steps/step-03d-validate.md +32 -7
  50. package/templates/skills/business-analyse/steps/step-04a-collect.md +111 -0
  51. package/templates/skills/business-analyse/steps/step-05a-handoff.md +296 -103
  52. package/templates/skills/business-analyse/steps/step-05b-deploy.md +46 -14
  53. package/templates/skills/documentation/SKILL.md +92 -2
  54. package/templates/skills/ralph-loop/SKILL.md +14 -17
  55. package/templates/skills/ralph-loop/references/category-rules.md +63 -683
  56. package/templates/skills/ralph-loop/references/compact-loop.md +188 -428
  57. package/templates/skills/ralph-loop/references/section-splitting.md +439 -0
  58. package/templates/skills/ralph-loop/references/team-orchestration.md +13 -14
  59. package/templates/skills/ralph-loop/steps/step-01-task.md +27 -0
  60. package/templates/skills/ralph-loop/steps/step-02-execute.md +80 -691
  61. package/templates/skills/ralph-loop/steps/step-03-commit.md +38 -79
  62. package/templates/skills/ralph-loop/steps/step-04-check.md +39 -58
  63. package/templates/skills/ralph-loop/steps/step-05-report.md +31 -123
  64. package/scripts/health-check.sh +0 -168
  65. package/scripts/postinstall.js +0 -18
@@ -1,168 +0,0 @@
1
- #!/bin/bash
2
- # SmartStack Health Check Script
3
- #
4
- # Usage: ./scripts/health-check.sh
5
- #
6
- # Exit codes:
7
- # 0 - All checks passed
8
- # 1 - Some checks failed
9
- #
10
- # This script can be used in CI/CD pipelines to verify SmartStack setup.
11
-
12
- set -e
13
-
14
- # Colors
15
- RED='\033[0;31m'
16
- GREEN='\033[0;32m'
17
- YELLOW='\033[1;33m'
18
- BLUE='\033[0;34m'
19
- NC='\033[0m' # No Color
20
-
21
- ERRORS=0
22
- WARNINGS=0
23
-
24
- log_ok() {
25
- echo -e "${GREEN}✓${NC} $1"
26
- }
27
-
28
- log_warn() {
29
- echo -e "${YELLOW}⚠${NC} $1"
30
- ((WARNINGS++))
31
- }
32
-
33
- log_error() {
34
- echo -e "${RED}✗${NC} $1"
35
- ((ERRORS++))
36
- }
37
-
38
- log_info() {
39
- echo -e "${BLUE}ℹ${NC} $1"
40
- }
41
-
42
- echo ""
43
- echo "╔══════════════════════════════════════════════╗"
44
- echo "║ SmartStack Health Check ║"
45
- echo "╚══════════════════════════════════════════════╝"
46
- echo ""
47
-
48
- # Check Node.js
49
- echo "Checking dependencies..."
50
-
51
- if command -v node &> /dev/null; then
52
- NODE_VERSION=$(node --version)
53
- NODE_MAJOR=$(echo "$NODE_VERSION" | cut -d'.' -f1 | tr -d 'v')
54
- if [ "$NODE_MAJOR" -ge 18 ]; then
55
- log_ok "Node.js $NODE_VERSION"
56
- else
57
- log_error "Node.js $NODE_VERSION (requires 18+)"
58
- fi
59
- else
60
- log_error "Node.js not found"
61
- fi
62
-
63
- # Check npm
64
- if command -v npm &> /dev/null; then
65
- log_ok "npm $(npm --version)"
66
- else
67
- log_error "npm not found"
68
- fi
69
-
70
- # Check Git
71
- if command -v git &> /dev/null; then
72
- log_ok "Git $(git --version | cut -d' ' -f3)"
73
- else
74
- log_error "Git not found"
75
- fi
76
-
77
- # Check .NET SDK
78
- if command -v dotnet &> /dev/null; then
79
- log_ok ".NET SDK $(dotnet --version)"
80
- else
81
- log_warn ".NET SDK not found (optional for non-.NET projects)"
82
- fi
83
-
84
- echo ""
85
- echo "Checking Claude Code..."
86
-
87
- # Check Claude Code CLI
88
- if command -v claude &> /dev/null; then
89
- log_ok "Claude Code CLI installed"
90
-
91
- # Check MCP servers
92
- echo ""
93
- echo "Checking MCP servers..."
94
-
95
- if claude mcp list 2>/dev/null | grep -qi "smartstack"; then
96
- log_ok "SmartStack MCP available"
97
- else
98
- log_error "SmartStack MCP not installed"
99
- log_info " Install: npm install -g @atlashub/smartstack-mcp && claude mcp add smartstack -- npx @atlashub/smartstack-mcp"
100
- fi
101
-
102
- if claude mcp list 2>/dev/null | grep -qi "context7"; then
103
- log_ok "Context7 MCP available"
104
- else
105
- log_error "Context7 MCP not installed"
106
- log_info " Install: claude mcp add context7 -- npx @upstash/context7-mcp"
107
- fi
108
- else
109
- log_error "Claude Code CLI not found"
110
- log_info " Install: curl -fsSL https://claude.ai/install.sh | bash"
111
- log_info " More info: https://code.claude.com/docs/en/setup"
112
- fi
113
-
114
- echo ""
115
- echo "Checking SmartStack CLI..."
116
-
117
- # Check SmartStack CLI
118
- if command -v smartstack &> /dev/null; then
119
- log_ok "SmartStack CLI installed"
120
-
121
- # Check templates installation
122
- if [ -d "$HOME/.claude/commands" ] && [ -f "$HOME/.claude/commands/gitflow.md" ]; then
123
- log_ok "SmartStack commands installed"
124
- else
125
- log_warn "SmartStack commands not installed"
126
- log_info " Run: smartstack install"
127
- fi
128
- else
129
- log_error "SmartStack CLI not found"
130
- log_info " Install: npm install -g @atlashub/smartstack-cli"
131
- fi
132
-
133
- # Check local Ralph config
134
- echo ""
135
- echo "Checking local project..."
136
-
137
- if [ -f ".ralph/ralph.config.yaml" ]; then
138
- log_ok "Ralph configured in this project"
139
- else
140
- log_warn "Ralph not configured in this project"
141
- log_info " Run: smartstack ralph init"
142
- fi
143
-
144
- if [ -d ".git" ]; then
145
- BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
146
- log_ok "Git repository (branch: $BRANCH)"
147
- else
148
- log_warn "Not a Git repository"
149
- fi
150
-
151
- # Summary
152
- echo ""
153
- echo "════════════════════════════════════════════════"
154
-
155
- if [ $ERRORS -eq 0 ]; then
156
- if [ $WARNINGS -eq 0 ]; then
157
- echo -e "${GREEN}All checks passed!${NC}"
158
- echo "SmartStack is ready to use."
159
- else
160
- echo -e "${YELLOW}$WARNINGS warning(s)${NC}"
161
- echo "SmartStack is usable but some features may be limited."
162
- fi
163
- exit 0
164
- else
165
- echo -e "${RED}$ERRORS error(s), $WARNINGS warning(s)${NC}"
166
- echo "Please fix the errors above before using SmartStack."
167
- exit 1
168
- fi
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- // Simple postinstall script - displays PATH fix for Windows
3
-
4
- const isGlobal = process.env.npm_config_global === 'true';
5
- const isWindows = process.platform === 'win32';
6
-
7
- if (isGlobal && isWindows) {
8
- const prefix = process.env.npm_config_prefix || '';
9
- console.log(`
10
- \x1b[32m✅ SmartStack CLI installed!\x1b[0m
11
-
12
- \x1b[33mIf 'ss' command is not found, run this in PowerShell:\x1b[0m
13
-
14
- \x1b[36m$env:PATH += ";${prefix || '$(npm config get prefix)'}"\x1b[0m
15
-
16
- Then: \x1b[36mss --version\x1b[0m
17
- `);
18
- }