ctx-cc 3.3.5 → 3.3.6

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.
package/README.md CHANGED
@@ -13,7 +13,9 @@
13
13
 
14
14
  <img src="./assets/terminal.png" alt="CTX Terminal" width="700">
15
15
 
16
- **AI that learns your preferences. Predictive planning. Self-healing deployments. Voice control.**
16
+ **Conversational-first. Just describe what you want no commands to memorize.**
17
+
18
+ AI that learns your preferences. Predictive planning. Self-healing deployments. 21 specialized agents.
17
19
 
18
20
  [Installation](#installation) · [Quick Start](#quick-start) · [New in 3.3](#new-in-33) · [Commands](#commands) · [Why CTX](#why-ctx) · [**Getting Started Guide**](./GETTING_STARTED.md)
19
21
 
@@ -40,6 +42,16 @@ npx ctx-cc --force # Overwrite existing installation
40
42
 
41
43
  ## Quick Start
42
44
 
45
+ **Just talk to CTX.** No commands to memorize:
46
+
47
+ ```
48
+ "I want to build a todo app" → CTX sets up your project
49
+ "Fix the login bug" → CTX starts debugging
50
+ "Is my app accessible?" → CTX runs accessibility QA
51
+ "What should I do next?" → CTX shows status + recommendation
52
+ ```
53
+
54
+ Or use commands directly:
43
55
  ```
44
56
  1. /ctx init Gather requirements + credentials + design context
45
57
  2. /ctx map Build repository map (existing codebases)
@@ -48,13 +60,60 @@ npx ctx-cc --force # Overwrite existing installation
48
60
 
49
61
  **The Flow:**
50
62
  ```
51
- /ctx init /ctx map/ctx Autonomous loop → Delivered!
63
+ Tell CTX what you wantCTX figures out the rest → Delivered!
52
64
  ```
53
65
 
54
66
  ---
55
67
 
56
68
  ## New in 3.3
57
69
 
70
+ ### Conversational-First Routing
71
+ **No commands to memorize.** CTX understands natural language from your first prompt:
72
+
73
+ | You Say | CTX Does |
74
+ |---------|----------|
75
+ | "I want to build a todo app" | Sets up project, researches best practices, creates plan |
76
+ | "Fix the login bug" | Analyzes codebase, starts debugging |
77
+ | "Is my app accessible?" | Runs WCAG 2.1 AA accessibility audit |
78
+ | "Test everything" | Crawls every page, clicks every button |
79
+ | "What's next?" | Shows status and recommended action |
80
+ | "Ship it" | Runs verification, then deploys |
81
+
82
+ **New user?** CTX welcomes you and guides setup:
83
+ ```
84
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
85
+ Welcome to CTX!
86
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
87
+
88
+ I understood: "build a todo app with React"
89
+
90
+ You want to build something new. Let's set it up!
91
+
92
+ I'll now:
93
+ 1. Create your project structure
94
+ 2. Research best practices for React todo apps
95
+ 3. Create a plan with clear milestones
96
+ ```
97
+
98
+ Commands still work as shortcuts for power users.
99
+
100
+ ### Full System QA
101
+ Crawl every page, click every button, find all issues:
102
+
103
+ ```bash
104
+ /ctx qa # Full system QA (WCAG 2.1 AA)
105
+ /ctx qa --a11y-only # Accessibility audit only
106
+ /ctx qa --visual-only # Visual regression (3 viewports)
107
+ /ctx qa --resume # Resume interrupted session
108
+ ```
109
+
110
+ Features:
111
+ - **WCAG 2.1 AA compliance** - Touch targets, alt text, labels, contrast, keyboard
112
+ - **Multi-viewport testing** - Mobile (375px), Tablet (768px), Desktop (1280px)
113
+ - **Performance monitoring** - Slow requests, large assets
114
+ - **Trace capture** - Screenshots and logs for every failed interaction
115
+ - **Fix tasks** - Issues organized by section, ready for execution
116
+
58
117
  ### Learning System
59
118
  CTX learns from your codebase and preferences:
60
119
 
@@ -517,8 +576,10 @@ Results synthesized into `SUMMARY.md`.
517
576
  ### QA (Full System Testing)
518
577
  | Command | Purpose |
519
578
  |---------|---------|
520
- | `/ctx qa` | Full system QA - every page, every button |
579
+ | `/ctx qa` | Full system QA - WCAG 2.1 AA, every page, every button |
521
580
  | `/ctx qa --section "auth"` | QA specific section only |
581
+ | `/ctx qa --a11y-only` | Accessibility audit only |
582
+ | `/ctx qa --visual-only` | Visual regression (mobile/tablet/desktop) |
522
583
  | `/ctx qa --resume` | Resume interrupted QA session |
523
584
  | `/ctx qa --report` | Show last QA report |
524
585
 
@@ -790,6 +851,6 @@ MIT
790
851
 
791
852
  **[GitHub](https://github.com/jufjuf/CTX)** · **[Issues](https://github.com/jufjuf/CTX/issues)** · **[npm](https://www.npmjs.com/package/ctx-cc)**
792
853
 
793
- *CTX 3.3 - AI that learns your preferences. Predictive planning. Self-healing. Voice control.*
854
+ *CTX 3.3 - Conversational-first. Just describe what you want. 21 agents. Learning system. Self-healing.*
794
855
 
795
856
  </div>
package/commands/ctx.md CHANGED
@@ -30,6 +30,9 @@ Before checking state, parse the user's natural language request.
30
30
  | "fix", "bug", "broken", "not working", "error" | `debug` | /ctx:debug |
31
31
  | "test", "QA", "check", "accessible", "works?" | `qa` | /ctx:qa |
32
32
  | "review", "audit", "security", "ready?" | `review` | /ctx:verify |
33
+ | "production", "prod ready", "production ready" | `production-ready` | Full audit → QA → fixes |
34
+ | "study", "analyze", "understand", "learn", "explore" | `analyze` | /ctx:map-codebase |
35
+ | "improve", "optimize", "better", "enhance" | `improve` | Analyze → suggest → fix |
33
36
  | "deploy", "ship", "publish", "release" | `ship` | /ctx:verify → ship |
34
37
  | "status", "progress", "where", "what's next" | `status` | /ctx:status |
35
38
  | "help", "how", "what can", "commands" | `help` | /ctx:help |
@@ -57,6 +60,21 @@ function detectIntent(userMessage) {
57
60
  return 'qa';
58
61
  }
59
62
 
63
+ // Production-ready signals
64
+ if (msg.match(/\b(production|prod ready|production.?ready|make it ready)\b/)) {
65
+ return 'production-ready';
66
+ }
67
+
68
+ // Analyze/study signals
69
+ if (msg.match(/\b(study|analyze|understand|learn|explore|what is this)\b/)) {
70
+ return 'analyze';
71
+ }
72
+
73
+ // Improve signals
74
+ if (msg.match(/\b(improve|optimize|better|enhance|upgrade|refactor)\b/)) {
75
+ return 'improve';
76
+ }
77
+
60
78
  // Review signals
61
79
  if (msg.match(/\b(review|audit|security|ready|before deploy)\b/)) {
62
80
  return 'review';
@@ -93,11 +111,65 @@ Based on detected intent:
93
111
  | Intent | Action |
94
112
  |--------|--------|
95
113
  | `new-project` | "Let's set up your project!" → Run /ctx:init flow |
96
- | `debug` | "Let me understand the codebase first." → Run /ctx:init --existing |
97
- | `qa` | "I'll analyze the project first." → Run /ctx:map then /ctx:qa |
98
- | `continue` | Guide user: "What would you like to build or work on?" |
114
+ | `debug` | "Let me understand the codebase first." → Run /ctx:map /ctx:debug |
115
+ | `qa` | "I'll analyze the project first." → Run /ctx:map /ctx:qa |
116
+ | `production-ready` | "I'll audit everything and make it production ready." Full pipeline below |
117
+ | `analyze` | "Let me study this codebase." → Run /ctx:map-codebase |
118
+ | `improve` | "I'll analyze and suggest improvements." → Run /ctx:map → analyze → suggest |
119
+ | `continue` | Guide user: "What would you like to do with this project?" |
99
120
  | `help` | Show quick start guide |
100
121
 
122
+ ### Production-Ready Pipeline
123
+
124
+ When user says "make it production ready":
125
+
126
+ ```
127
+ 1. /ctx:map-codebase → Deep analysis (4 parallel agents)
128
+ 2. /ctx:qa → Full system QA (WCAG 2.1 AA)
129
+ 3. Security audit → Check for vulnerabilities
130
+ 4. Performance check → Find slow requests, large assets
131
+ 5. Create fix tasks → Prioritized by severity
132
+ 6. Execute fixes → With verification loop
133
+ 7. Final verification → Three-level check
134
+ 8. Report → Production readiness score
135
+ ```
136
+
137
+ Output:
138
+ ```
139
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
140
+ PRODUCTION READINESS AUDIT
141
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
142
+
143
+ Codebase Analysis: ✓ Complete
144
+ ├── Tech: React 18, Node.js, PostgreSQL
145
+ ├── Architecture: Clean, well-structured
146
+ ├── Quality: 78% test coverage
147
+ └── Concerns: 3 security issues, 5 performance issues
148
+
149
+ Full QA: ✓ Complete
150
+ ├── Pages tested: 24
151
+ ├── WCAG 2.1 AA: 92% compliant
152
+ ├── Issues found: 12
153
+ └── Critical: 2
154
+
155
+ Security Audit: ⚠ Issues Found
156
+ ├── SQL injection risk: 1
157
+ ├── XSS vulnerability: 1
158
+ └── Exposed secrets: 1
159
+
160
+ Performance: ⚠ Issues Found
161
+ ├── Slow API calls: 3
162
+ ├── Large assets: 2
163
+ └── Missing caching: Yes
164
+
165
+ Fix Tasks Created: 8
166
+ ├── Critical: 3 (security)
167
+ ├── High: 5 (performance, a11y)
168
+ └── Medium: 4
169
+
170
+ Ready to fix? [Y] Fix all [C] Critical only [R] Review first
171
+ ```
172
+
101
173
  **Output for new users:**
102
174
  ```
103
175
  [CTX] Welcome! I see this is a new project.
@@ -123,6 +195,9 @@ Combine detected intent with current state:
123
195
  | `new-project` | any | Warn if project exists, offer to add story |
124
196
  | `debug` | any | Route to /ctx:debug |
125
197
  | `qa` | any | Route to /ctx:qa |
198
+ | `production-ready` | any | Run full production-ready pipeline |
199
+ | `analyze` | any | Route to /ctx:map-codebase |
200
+ | `improve` | any | Analyze → suggest improvements → create stories |
126
201
  | `status` | any | Show STATE.md summary |
127
202
  | `continue` | initializing | Run research phase |
128
203
  | `continue` | discussing | Run discussion phase |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-cc",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "CTX 3.3 (Continuous Task eXecution) - AI that learns your preferences. Learning system, predictive planning, self-healing deployments (Sentry/LogRocket), voice control for hands-free development.",
5
5
  "keywords": [
6
6
  "claude",