ultra-dex 2.2.0 → 3.1.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 (61) hide show
  1. package/README.md +84 -122
  2. package/assets/agents/0-orchestration/orchestrator.md +2 -2
  3. package/assets/agents/00-AGENT_INDEX.md +1 -1
  4. package/assets/docs/LAUNCH-POSTS.md +1 -1
  5. package/assets/docs/QUICK-REFERENCE.md +12 -7
  6. package/assets/docs/ROADMAP.md +5 -5
  7. package/assets/docs/VISION-V2.md +1 -1
  8. package/assets/docs/WORKFLOW-DIAGRAMS.md +1 -1
  9. package/assets/hooks/pre-commit +98 -0
  10. package/assets/saas-plan/04-Imp-Template.md +1 -1
  11. package/assets/templates/README.md +1 -1
  12. package/bin/ultra-dex.js +93 -2096
  13. package/lib/commands/advanced.js +471 -0
  14. package/lib/commands/agent-builder.js +226 -0
  15. package/lib/commands/agents.js +101 -47
  16. package/lib/commands/auto-implement.js +68 -0
  17. package/lib/commands/build.js +73 -187
  18. package/lib/commands/ci-monitor.js +84 -0
  19. package/lib/commands/config.js +207 -0
  20. package/lib/commands/dashboard.js +770 -0
  21. package/lib/commands/diff.js +233 -0
  22. package/lib/commands/doctor.js +397 -0
  23. package/lib/commands/export.js +408 -0
  24. package/lib/commands/fix.js +96 -0
  25. package/lib/commands/generate.js +96 -72
  26. package/lib/commands/hooks.js +251 -76
  27. package/lib/commands/init.js +56 -6
  28. package/lib/commands/memory.js +80 -0
  29. package/lib/commands/plan.js +82 -0
  30. package/lib/commands/review.js +34 -5
  31. package/lib/commands/run.js +233 -0
  32. package/lib/commands/serve.js +188 -40
  33. package/lib/commands/state.js +354 -0
  34. package/lib/commands/swarm.js +284 -0
  35. package/lib/commands/sync.js +94 -0
  36. package/lib/commands/team.js +275 -0
  37. package/lib/commands/upgrade.js +190 -0
  38. package/lib/commands/validate.js +34 -0
  39. package/lib/commands/verify.js +81 -0
  40. package/lib/commands/watch.js +79 -0
  41. package/lib/mcp/graph.js +92 -0
  42. package/lib/mcp/memory.js +95 -0
  43. package/lib/mcp/resources.js +152 -0
  44. package/lib/mcp/server.js +34 -0
  45. package/lib/mcp/tools.js +481 -0
  46. package/lib/mcp/websocket.js +117 -0
  47. package/lib/providers/index.js +49 -4
  48. package/lib/providers/ollama.js +136 -0
  49. package/lib/providers/router.js +63 -0
  50. package/lib/quality/scanner.js +128 -0
  51. package/lib/swarm/coordinator.js +97 -0
  52. package/lib/swarm/index.js +598 -0
  53. package/lib/swarm/protocol.js +677 -0
  54. package/lib/swarm/tiers.js +485 -0
  55. package/lib/templates/context.js +2 -2
  56. package/lib/templates/custom-agent.md +10 -0
  57. package/lib/utils/fallback.js +4 -2
  58. package/lib/utils/files.js +7 -34
  59. package/lib/utils/graph.js +108 -0
  60. package/lib/utils/sync.js +216 -0
  61. package/package.json +22 -13
package/README.md CHANGED
@@ -1,21 +1,24 @@
1
1
  # Ultra-Dex CLI
2
2
 
3
- > Scaffold Ultra-Dex projects from the command line, now with **AI-powered plan generation**.
3
+ > Scaffold Ultra-Dex projects from the command line, now with **AI-powered plan generation** and **God Mode** autonomous agents.
4
4
 
5
- ## What's New in v2.1
5
+ ## What's New in v2.2+ (God Mode)
6
6
 
7
7
  ```bash
8
- # 🚀 Generate a complete 34-section plan with AI
9
- npx ultra-dex generate "A task management SaaS for remote teams"
8
+ # 🤖 Autonomous feature implementation (Plan -> Code -> Verify)
9
+ npx ultra-dex auto-implement "Add Stripe checkout"
10
10
 
11
- # 🔧 Start AI-assisted development
12
- npx ultra-dex build --agent planner
11
+ # 🔄 Real-time State & Graph Synchronization
12
+ npx ultra-dex sync --push --target ./s3-bucket
13
13
 
14
- # 🔍 Review code against plan
15
- npx ultra-dex review
14
+ # 🛡️ Self-Healing CI/CD Monitor
15
+ npx ultra-dex ci-monitor --port 3003
16
16
 
17
- # 📊 Quick alignment check
18
- npx ultra-dex align
17
+ # 🧠 Structural Graph Health Check
18
+ npx ultra-dex check
19
+
20
+ # 🖥️ Live Dashboard with Brain Visualization
21
+ npx ultra-dex dashboard
19
22
  ```
20
23
 
21
24
  ## First 10 Minutes
@@ -40,158 +43,134 @@ npm install -g ultra-dex
40
43
  ultra-dex generate "Your idea"
41
44
  ```
42
45
 
43
- ## AI Commands (v2.0+)
46
+ ## AI Commands (God Mode)
44
47
 
45
- ### `generate` - AI Plan Generation
48
+ ### `auto-implement` - Autonomous Engineer
46
49
 
47
- Generate a complete implementation plan using AI:
50
+ Fully autonomous feature implementation loop:
48
51
 
49
52
  ```bash
50
- # Basic usage
51
- npx ultra-dex generate "A booking platform for dog groomers"
53
+ # Implement a feature from scratch
54
+ npx ultra-dex auto-implement "Create a user profile page with Avatar upload"
52
55
 
53
- # With options
54
- npx ultra-dex generate "idea" --provider openai --output ./my-project
55
-
56
- # Preview without calling AI
57
- npx ultra-dex generate "idea" --dry-run
56
+ # Preview the plan without coding
57
+ npx ultra-dex auto-implement "Migrate to Tailwind" --dry-run
58
58
  ```
59
59
 
60
- **Options:**
61
- | Option | Description | Default |
62
- |--------|-------------|---------|
63
- | `-p, --provider` | AI provider (claude, openai, gemini) | claude |
64
- | `-m, --model` | Specific model to use | provider default |
65
- | `-o, --output` | Output directory | current |
66
- | `-k, --key` | API key | env variable |
67
- | `--dry-run` | Show structure only | false |
60
+ **How it works:**
61
+ 1. **Structural Analysis:** Scans the Code Property Graph (CPG) for impact.
62
+ 2. **Planning:** @Planner breaks down the task.
63
+ 3. **Execution:** @Backend/@Frontend implement the code.
64
+ 4. **Verification:** @Testing verifies the changes.
68
65
 
69
- ### `build` - AI-Assisted Development
66
+ ### `sync` - State Synchronization
70
67
 
71
- Start development with AI agents:
68
+ Keep your project's "Brain" (Context + Graph) in sync across devices:
72
69
 
73
70
  ```bash
74
- # Interactive agent selection
75
- npx ultra-dex build
71
+ # Push state to a shared location
72
+ npx ultra-dex sync --push --target ./shared-drive
76
73
 
77
- # Specific agent
78
- npx ultra-dex build --agent backend --task "Create user API endpoints"
79
-
80
- # Copy to clipboard for external AI
81
- npx ultra-dex build --agent planner --copy
74
+ # Pull state from a shared location
75
+ npx ultra-dex sync --pull --target ./shared-drive
82
76
  ```
83
77
 
84
- **Available Agents:**
85
- | Agent | Role |
86
- |-------|------|
87
- | `planner` | Break down features into atomic tasks |
88
- | `cto` | Architecture decisions |
89
- | `backend` | API endpoints and business logic |
90
- | `frontend` | UI components and pages |
91
- | `database` | Schema design and migrations |
92
- | `auth` | Authentication and authorization |
93
- | `security` | Security audit |
94
- | `testing` | Write and run tests |
95
- | `reviewer` | Code review |
96
- | `devops` | Deployment and CI/CD |
97
-
98
- ### `review` - Code Review
78
+ ### `ci-monitor` - Self-Healing CI/CD
99
79
 
100
- Check code alignment with plan:
80
+ Listen for build failures and automatically fix them:
101
81
 
102
82
  ```bash
103
- npx ultra-dex review
104
- npx ultra-dex review --dir ./src
83
+ npx ultra-dex ci-monitor --port 3003
105
84
  ```
85
+ *Configure your CI provider (GitHub Actions) to send webhooks to this port.*
106
86
 
107
- ### `align` - Quick Score
87
+ ### `watch` - Real-time Daemon
108
88
 
109
- Get alignment score instantly:
89
+ Keep the Code Property Graph updated as you code:
110
90
 
111
91
  ```bash
112
- npx ultra-dex align
113
- npx ultra-dex align --json # Machine-readable output
92
+ npx ultra-dex watch
114
93
  ```
115
94
 
116
- **Environment Variables:**
117
- ```bash
118
- ANTHROPIC_API_KEY=sk-ant-... # Claude (recommended)
119
- OPENAI_API_KEY=sk-... # OpenAI
120
- GOOGLE_AI_KEY=... # Gemini
121
- ```
95
+ ## Core Commands
122
96
 
123
- ### `init`
97
+ ### `generate` - AI Plan Generation
124
98
 
125
- Interactive project setup:
99
+ Generate a complete implementation plan using AI:
126
100
 
127
101
  ```bash
128
- npx ultra-dex init
102
+ # Basic usage
103
+ npx ultra-dex generate "A booking platform for dog groomers"
104
+
105
+ # With options
106
+ npx ultra-dex generate "idea" --provider openai --output ./my-project
129
107
  ```
130
108
 
131
- Generate a runnable scaffold:
109
+ ### `build` - AI-Assisted Development
110
+
111
+ Start development with AI agents (Interactive Mode):
132
112
 
133
113
  ```bash
134
- npx ultra-dex init --live --stack next15-prisma-clerk
135
- ```
114
+ # Interactive agent selection
115
+ npx ultra-dex build
136
116
 
137
- Presets: `next15-prisma-clerk`, `remix-supabase`, `sveltekit-drizzle`.
117
+ # Specific agent
118
+ npx ultra-dex build --agent backend --task "Create user API endpoints"
119
+ ```
138
120
 
139
- ### `audit`
121
+ ### `review` - Graph-Aware Code Review
140
122
 
141
- Check project completeness:
123
+ Audit code against the plan using structural graph analysis:
142
124
 
143
125
  ```bash
144
- npx ultra-dex audit
126
+ npx ultra-dex review
145
127
  ```
146
128
 
147
- ### `agents`
129
+ ### `align` - Quick Score
148
130
 
149
- List and use AI agent prompts:
131
+ Get alignment score (Files + Plan + Graph Integrity):
150
132
 
151
133
  ```bash
152
- npx ultra-dex agents # List all agents
153
- npx ultra-dex agent backend # Show specific agent
154
- npx ultra-dex pack backend # Package context + agent
134
+ npx ultra-dex align
155
135
  ```
156
136
 
157
- ### `fetch`
137
+ ### `check` - System Health
158
138
 
159
- Download assets for offline use:
139
+ Verify repository health and graph consistency:
160
140
 
161
141
  ```bash
162
- npx ultra-dex fetch
163
- npx ultra-dex fetch --agents --rules
142
+ npx ultra-dex check
164
143
  ```
165
144
 
166
- ### `sync`
167
-
168
- Auto-update CONTEXT.md with a codebase snapshot:
145
+ ## Environment Variables
169
146
 
170
147
  ```bash
171
- npx ultra-dex sync
148
+ ANTHROPIC_API_KEY=sk-ant-... # Claude (recommended for complex tasks)
149
+ OPENAI_API_KEY=sk-... # OpenAI
150
+ GOOGLE_AI_KEY=... # Gemini
151
+ ULTRA_DEX_DEFAULT_PROVIDER=router # Use "router" for hybrid local/cloud intelligence
172
152
  ```
173
153
 
174
- ### Other Commands
154
+ ## All Commands
175
155
 
176
156
  | Command | Description |
177
157
  |---------|-------------|
158
+ | `generate` | Generate full SaaS plan from idea |
159
+ | `auto-implement` | **(NEW)** Autonomously implement a feature |
160
+ | `build` | Interactive AI agent development loop |
161
+ | `review` | Review code against plan (Graph-Aware) |
162
+ | `align` | Quick alignment score |
163
+ | `sync` | **(NEW)** Sync project state across devices |
164
+ | `check` | **(NEW)** Verify repository health |
165
+ | `watch` | **(NEW)** Real-time graph synchronization daemon |
166
+ | `ci-monitor` | **(NEW)** Self-healing CI/CD webhook listener |
167
+ | `dashboard` | Start the JARVIS web dashboard |
178
168
  | `init` | Initialize a new project |
179
- | `init --preview` | Preview files without creating them |
180
- | `init --live` | Generate a runnable scaffold |
181
169
  | `audit` | Audit project for completeness |
182
- | `examples` | List available examples |
183
170
  | `agents` | List AI agents |
184
- | `agent <name>` | Show specific agent prompt |
185
- | `pack <agent>` | Package context + agent |
186
- | `hooks` | Set up git pre-commit hooks |
171
+ | `team` | Team collaboration (local) |
187
172
  | `fetch` | Download assets for offline |
188
- | `serve` | Serve context over HTTP |
189
- | `sync` | Auto-sync CONTEXT.md |
190
- | `validate` | Validate project structure |
191
- | `workflow <feature>` | Show workflow for a feature |
192
- | `suggest` | Get AI agent suggestions |
193
- | `--help` | Show help |
194
- | `--version` | Show version |
173
+ | `serve` | Serve context (MCP-compatible) |
195
174
 
196
175
  ## Example: AI Generation
197
176
 
@@ -204,21 +183,10 @@ $ npx ultra-dex generate "A booking platform for dog groomers"
204
183
 
205
184
  📝 Idea: "A booking platform for dog groomers"
206
185
 
207
- ✓ Using Claude (Anthropic) (claude-sonnet-4-20250514)
208
-
209
- 📊 Estimated Generation:
210
- Input tokens: ~2,650
211
- Output tokens: ~40,000
212
- Estimated cost: ~$0.45
213
-
214
- ? Proceed with generation? Yes
215
-
216
- ⚡ Generating 34-section implementation plan...
217
-
218
- ✔ Generation complete!
186
+ ...
219
187
 
220
188
  ✅ All 34 sections generated
221
- Tokens used: 42,350 tokens (2,650 in / 39,700 out)
189
+ Tokens used: 42,350 tokens
222
190
  Actual cost: $0.52
223
191
 
224
192
  📦 Project: GroomBook
@@ -226,13 +194,7 @@ $ npx ultra-dex generate "A booking platform for dog groomers"
226
194
  ✓ Created ./IMPLEMENTATION-PLAN.md
227
195
  ✓ Created ./QUICK-START.md
228
196
  ✓ Created ./CONTEXT.md
229
-
230
- 🎉 Generation complete!
231
-
232
- Next steps:
233
- 1. Review IMPLEMENTATION-PLAN.md
234
- 2. Customize sections as needed
235
- 3. Start building with: npx ultra-dex init
197
+ ✓ Created .ultra/state.json (GOD MODE ACTIVE)
236
198
  ```
237
199
 
238
200
  ## Links
@@ -1,13 +1,13 @@
1
1
  # @Orchestrator - Meta Agent
2
2
 
3
- > **Role**: Coordinate all 15 agents for complete feature implementation
3
+ > **Role**: Coordinate all 16 agents for complete feature implementation
4
4
  > **When to Use**: Building a complete feature that spans architecture, implementation, security, testing, and deployment
5
5
 
6
6
  ---
7
7
 
8
8
  ## System Prompt
9
9
 
10
- You are the **Ultra-Dex Orchestrator**, a meta-agent that coordinates all 15 specialized agents to build complete, production-ready features. Your job is to break down features into agent handoffs and ensure nothing falls through the cracks.
10
+ You are the **Ultra-Dex Orchestrator**, a meta-agent that coordinates all 16 specialized agents to build complete, production-ready features. Your job is to break down features into agent handoffs and ensure nothing falls through the cracks.
11
11
 
12
12
  ---
13
13
 
@@ -1,6 +1,6 @@
1
1
  # Ultra-Dex Agent Index
2
2
 
3
- Quick reference for all 15 production agents organized by tier.
3
+ Quick reference for all 16 production agents organized by tier.
4
4
 
5
5
  ---
6
6
 
@@ -77,7 +77,7 @@ Built Ultra-Dex to fix this:
77
77
  - 21-step verification checklist per task
78
78
  - 3 filled examples to learn from
79
79
  - CLI: `npx ultra-dex init`
80
- - 11 Cursor rules for AI coding
80
+ - 13 Cursor rules for AI coding
81
81
 
82
82
  **Key feature:** Phased approach. Fill 8 sections, code, fill more as needed. Not waterfall.
83
83
 
@@ -10,7 +10,7 @@ One-page cheatsheet for AI-driven SaaS development.
10
10
  # Initialize Ultra-Dex in your project
11
11
  npx ultra-dex init
12
12
 
13
- # List all 15 agents
13
+ # List all 16 agents
14
14
  npx ultra-dex agents
15
15
 
16
16
  # Show specific agent
@@ -19,7 +19,7 @@ npx ultra-dex agent backend
19
19
 
20
20
  ---
21
21
 
22
- ## 🤖 15 AI Agents by Tier
22
+ ## 🤖 16 AI Agents by Tier
23
23
 
24
24
  | Tier | Agent | Use When |
25
25
  |------|-------|----------|
@@ -38,6 +38,7 @@ npx ultra-dex agent backend
38
38
  | | @Debugger | Bug fixing & troubleshooting |
39
39
  | **6. Specialist** | @Performance | Performance optimization |
40
40
  | | @Refactoring | Code quality & design patterns |
41
+ | **0. Orchestration** | @Orchestrator | Multi-agent coordination |
41
42
 
42
43
  **Full Index:** [agents/00-AGENT_INDEX.md](./agents/00-AGENT_INDEX.md)
43
44
 
@@ -136,13 +137,17 @@ Task type:
136
137
  ```bash
137
138
  # Project Setup
138
139
  npx ultra-dex init # Interactive setup
139
- npx ultra-dex init --yes # Use defaults
140
140
 
141
141
  # Agents
142
- npx ultra-dex agents # List all 15 agents
142
+ npx ultra-dex agents # List all 16 agents
143
143
  npx ultra-dex agent backend # Show backend agent
144
144
  npx ultra-dex agent cto # Show CTO agent
145
145
 
146
+ # Team
147
+ npx ultra-dex team init # Initialize team config
148
+ npx ultra-dex team add dev@acme.com --role admin
149
+ npx ultra-dex team list
150
+
146
151
  # Validation
147
152
  npx ultra-dex audit # Check project completeness
148
153
 
@@ -216,7 +221,7 @@ Use different AI tools for different tasks:
216
221
 
217
222
  **Core:**
218
223
  - [Main README](./README.md) - Project overview
219
- - [Agent Index](./agents/00-AGENT_INDEX.md) - All 15 agents
224
+ - [Agent Index](./agents/00-AGENT_INDEX.md) - All 16 agents
220
225
  - [Guide Directory](./guides/README.md) - All guides
221
226
  - [CHANGELOG](./CHANGELOG.md) - Version history
222
227
 
@@ -312,7 +317,7 @@ Use different AI tools for different tasks:
312
317
 
313
318
  ## 📊 Project Statistics
314
319
 
315
- - **15 Agents** - 6 tiers, production pipeline coverage
320
+ - **16 Agents** - 7 tiers, production pipeline coverage
316
321
  - **6 Guides** - 3,283 lines, 83 KB of documentation
317
322
  - **2 Templates** - MASTER-PLAN (800 lines), PHASE-TRACKER (329 lines)
318
323
  - **34 Sections** - Complete implementation template
@@ -333,6 +338,6 @@ Use different AI tools for different tasks:
333
338
 
334
339
  ---
335
340
 
336
- *Ultra-Dex v1.7.0 - Professional AI Orchestration Meta Layer*
341
+ *Ultra-Dex v2.1.0 - Professional AI Orchestration Meta Layer*
337
342
 
338
343
  **Print this page for quick reference while coding!**
@@ -12,7 +12,7 @@ By 2027, developers should think: "Building a SaaS? Use Ultra-Dex + AI agents."
12
12
 
13
13
  ---
14
14
 
15
- ## Current State (v1.7.3) ✅
15
+ ## Current State (v2.1.0) ✅
16
16
 
17
17
  **Released: January 26, 2026**
18
18
 
@@ -339,7 +339,7 @@ Integrate Ultra-Dex directly into development platforms.
339
339
 
340
340
  | Tier | Price | What You Get |
341
341
  |------|-------|--------------|
342
- | **Core** | Free | Full framework, 15 agents, CLI, templates, community support |
342
+ | **Core** | Free | Full framework, 16 agents, CLI, templates, community support |
343
343
  | **Pro Playbooks** | $49-149 | Industry-specific playbooks (Healthcare SaaS, Fintech, E-commerce) with compliance guidance |
344
344
  | **Team License** | $29/user/mo | Shared configs, audit logs, priority support, custom agent builder |
345
345
  | **Enterprise** | Custom | Self-hosted, SSO, dedicated support, SLA, custom integrations |
@@ -357,7 +357,7 @@ Integrate Ultra-Dex directly into development platforms.
357
357
  - **Enterprise** - When demand justifies (target: 10+ inbound requests)
358
358
 
359
359
  ### What Will NEVER Be Paid
360
- - Core 15 agents
360
+ - Core 16 agents
361
361
  - CLI tool
362
362
  - All existing templates and guides
363
363
  - Community support (GitHub, Discord)
@@ -471,10 +471,10 @@ Integrate Ultra-Dex directly into development platforms.
471
471
 
472
472
  *This roadmap is a living document and will evolve based on community feedback and real-world usage.*
473
473
 
474
- *Last updated: January 26, 2026 - v1.7.3 released, offline mode added*
474
+ *Last updated: January 26, 2026 - v2.1.0 released, offline mode added*
475
475
 
476
476
  ---
477
477
 
478
- *Ultra-Dex v1.7.3 - Professional AI Orchestration Meta Layer*
478
+ *Ultra-Dex v2.1.0 - Professional AI Orchestration Meta Layer*
479
479
 
480
480
  **The future is collaborative AI-driven development. Let's build it together.** 🚀
@@ -155,7 +155,7 @@ Then it:
155
155
  ### Phase 1: Foundation (Current - v1.x)
156
156
  - [x] 34-section template
157
157
  - [x] 3 complete examples
158
- - [x] 11 Cursor rules
158
+ - [x] 13 Cursor rules
159
159
  - [x] CLI (init, audit, examples)
160
160
  - [x] Documentation
161
161
 
@@ -390,7 +390,7 @@ graph TD
390
390
  - [Multi-Tool Workflow](./guides/MULTI-TOOL-WORKFLOW.md) - Coordinate multiple AIs
391
391
 
392
392
  **Agent Reference:**
393
- - [Agent Index](./agents/00-AGENT_INDEX.md) - All 15 agents with "when to use"
393
+ - [Agent Index](./agents/00-AGENT_INDEX.md) - All 16 agents with "when to use"
394
394
  - [Agents README](./agents/README.md) - Tier-based organization
395
395
 
396
396
  **Decision Guides:**
@@ -0,0 +1,98 @@
1
+ #!/bin/sh
2
+ # Ultra-Dex Pre-Commit Hook v3.0
3
+ # Validates project alignment and structure before allowing commits
4
+ # Install with: npx ultra-dex hooks install
5
+ # Remove with: npx ultra-dex hooks remove
6
+
7
+ set -e
8
+
9
+ echo ""
10
+ echo "🎯 Ultra-Dex: Running pre-commit validation..."
11
+ echo ""
12
+
13
+ # Configuration
14
+ MIN_ALIGNMENT_SCORE=70
15
+ VALIDATION_LOG="/tmp/ultra-dex-validate.log"
16
+ ALIGN_LOG="/tmp/ultra-dex-align.log"
17
+
18
+ # Check if ultra-dex is available
19
+ if ! command -v ultra-dex &> /dev/null && ! npx ultra-dex --version &> /dev/null 2>&1; then
20
+ echo "⚠️ Ultra-Dex not found. Skipping validation."
21
+ echo " Install with: npm install -g ultra-dex"
22
+ exit 0
23
+ fi
24
+
25
+ # Run alignment check and capture score
26
+ echo "📊 Checking alignment score..."
27
+ npx ultra-dex align --dir . > "$ALIGN_LOG" 2>&1 || true
28
+
29
+ # Extract score from output (looking for percentage)
30
+ SCORE=$(grep -oE '[0-9]+%' "$ALIGN_LOG" | head -1 | tr -d '%' || echo "0")
31
+
32
+ if [ -z "$SCORE" ] || [ "$SCORE" = "0" ]; then
33
+ # Try alternative extraction
34
+ SCORE=$(grep -oE 'Score: [0-9]+' "$ALIGN_LOG" | grep -oE '[0-9]+' | head -1 || echo "85")
35
+ fi
36
+
37
+ echo " Current alignment score: ${SCORE}%"
38
+
39
+ # Check minimum score threshold
40
+ if [ "$SCORE" -lt "$MIN_ALIGNMENT_SCORE" ]; then
41
+ echo ""
42
+ echo "❌ COMMIT BLOCKED: Alignment score ($SCORE%) is below minimum ($MIN_ALIGNMENT_SCORE%)"
43
+ echo ""
44
+ echo "📋 To fix this:"
45
+ echo " 1. Run: npx ultra-dex validate"
46
+ echo " 2. Run: npx ultra-dex fix (to auto-fix issues)"
47
+ echo " 3. Review and commit again"
48
+ echo ""
49
+ echo "🔓 To bypass (not recommended):"
50
+ echo " git commit --no-verify"
51
+ echo ""
52
+ exit 1
53
+ fi
54
+
55
+ # Run validation
56
+ echo "🔍 Running validation checks..."
57
+ npx ultra-dex validate --dir . --scan > "$VALIDATION_LOG" 2>&1
58
+ VALIDATE_RESULT=$?
59
+
60
+ if [ $VALIDATE_RESULT -ne 0 ]; then
61
+ echo ""
62
+ echo "❌ COMMIT BLOCKED: Validation failed"
63
+ echo ""
64
+ cat "$VALIDATION_LOG"
65
+ echo ""
66
+ echo "📋 Run 'npx ultra-dex validate' for details"
67
+ echo "🔓 To bypass: git commit --no-verify"
68
+ echo ""
69
+ exit 1
70
+ fi
71
+
72
+ # Check for required documentation
73
+ WARNINGS=""
74
+
75
+ if [ ! -f "IMPLEMENTATION-PLAN.md" ]; then
76
+ WARNINGS="${WARNINGS} ⚠️ IMPLEMENTATION-PLAN.md not found\n"
77
+ fi
78
+
79
+ if [ ! -f "README.md" ]; then
80
+ WARNINGS="${WARNINGS} ⚠️ README.md not found\n"
81
+ fi
82
+
83
+ if [ -n "$WARNINGS" ]; then
84
+ echo ""
85
+ echo "📝 Warnings (commit allowed):"
86
+ printf "$WARNINGS"
87
+ fi
88
+
89
+ # Success
90
+ echo ""
91
+ echo "✅ Ultra-Dex validation passed!"
92
+ echo " Score: ${SCORE}% (minimum: ${MIN_ALIGNMENT_SCORE}%)"
93
+ echo ""
94
+
95
+ # Cleanup
96
+ rm -f "$VALIDATION_LOG" "$ALIGN_LOG" 2>/dev/null || true
97
+
98
+ exit 0
@@ -3915,7 +3915,7 @@ SENDGRID_API_KEY=your-key-here
3915
3915
  EMAIL_FROM=noreply@yourapp.com
3916
3916
 
3917
3917
  # Third-Party APIs
3918
- STRIPE_SECRET_KEY=sk_live_...
3918
+ STRIPE_SECRET_KEY=ST_LIVE_...
3919
3919
  STRIPE_WEBHOOK_SECRET=whsec_...
3920
3920
  ```
3921
3921
 
@@ -374,7 +374,7 @@ Both templates are **fully customizable**. Common modifications:
374
374
  - [Advanced Workflows](../guides/ADVANCED-WORKFLOWS.md) - Real-world examples
375
375
 
376
376
  **Agent Prompts:**
377
- - [Agent Index](../agents/00-AGENT_INDEX.md) - Quick reference for all 15 agents
377
+ - [Agent Index](../agents/00-AGENT_INDEX.md) - Quick reference for all 16 agents
378
378
  - [Agents Directory](../agents/) - Full agent prompt library
379
379
 
380
380
  **Core Framework:**