ctx-cc 3.0.0 → 3.3.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.
@@ -0,0 +1,513 @@
1
+ ---
2
+ name: voice
3
+ description: Voice control for CTX - speak your requirements and commands using speech-to-text input. Supports macOS, Linux, and browser-based recognition.
4
+ ---
5
+
6
+ <objective>
7
+ CTX 3.3 Voice Control - Speak your requirements instead of typing. Natural language processing converts speech to CTX commands and story descriptions.
8
+ </objective>
9
+
10
+ <usage>
11
+ ```
12
+ /ctx voice # Start voice input mode
13
+ /ctx voice --continuous # Continuous listening mode
14
+ /ctx voice --command # Voice command mode only
15
+ /ctx voice --dictate # Dictation mode for descriptions
16
+ /ctx voice stop # Stop voice input
17
+ /ctx voice config # Configure voice settings
18
+ ```
19
+ </usage>
20
+
21
+ <workflow>
22
+
23
+ ## Step 1: Start Voice Mode
24
+
25
+ ```bash
26
+ /ctx voice
27
+ ```
28
+
29
+ Output:
30
+ ```
31
+ [VOICE] Voice input activated
32
+
33
+ 🎤 Listening...
34
+
35
+ Speak a command or describe what you want to build.
36
+ Say "stop" or press Ctrl+C to exit.
37
+
38
+ Tips:
39
+ - "Create a story for user authentication"
40
+ - "Run verification"
41
+ - "Show me the current status"
42
+ - "Add a phase for API integration"
43
+ ```
44
+
45
+ ## Step 2: Speech Recognition
46
+
47
+ Uses platform-native speech recognition:
48
+
49
+ ### macOS
50
+ ```bash
51
+ # Uses macOS Speech Recognition
52
+ # System Preferences > Accessibility > Spoken Content
53
+
54
+ # Or uses Whisper locally
55
+ whisper --model small --language en
56
+ ```
57
+
58
+ ### Linux
59
+ ```bash
60
+ # Uses Vosk or Whisper
61
+ # Requires: pip install vosk
62
+
63
+ # Or uses Google Speech API
64
+ # Requires: GOOGLE_APPLICATION_CREDENTIALS
65
+ ```
66
+
67
+ ### Browser-Based (Fallback)
68
+ ```javascript
69
+ // Web Speech API
70
+ const recognition = new webkitSpeechRecognition()
71
+ recognition.continuous = true
72
+ recognition.interimResults = true
73
+ ```
74
+
75
+ ## Step 3: Natural Language Processing
76
+
77
+ Convert speech to CTX commands:
78
+
79
+ ### Command Recognition
80
+
81
+ | Speech | Interpreted Command |
82
+ |--------|-------------------|
83
+ | "run ctx" | `/ctx` |
84
+ | "check status" | `/ctx status` |
85
+ | "create a story" | `/ctx init` (story mode) |
86
+ | "start verification" | `/ctx verify` |
87
+ | "show metrics" | `/ctx metrics` |
88
+ | "pause work" | `/ctx pause` |
89
+ | "debug this" | `/ctx debug` |
90
+ | "what should I build" | `/ctx predict` |
91
+
92
+ ### Story Dictation
93
+
94
+ ```
95
+ User: "Create a story for adding user authentication
96
+ with email and password login, forgot password
97
+ flow, and session management"
98
+
99
+ [VOICE] Transcribed:
100
+
101
+ Story: User Authentication
102
+ Description: Add user authentication with email and
103
+ password login, forgot password flow,
104
+ and session management
105
+
106
+ Suggested acceptance criteria:
107
+ ✓ User can register with email/password
108
+ ✓ User can log in with credentials
109
+ ✓ Forgot password sends reset email
110
+ ✓ Password reset link works
111
+ ✓ Session persists across browser close
112
+ ✓ Logout clears session
113
+
114
+ Add to PRD? [Y/n/edit]
115
+ ```
116
+
117
+ ### Natural Queries
118
+
119
+ ```
120
+ User: "What's the current status of the project?"
121
+
122
+ [VOICE] Interpreting: Status query
123
+
124
+ [CTX] Current Status
125
+
126
+ Milestone: v1.0.0
127
+ Phase: 3 of 4
128
+ Story: S008 - API Integration
129
+ Status: Executing (task 2/5)
130
+ Progress: 67%
131
+ ```
132
+
133
+ ## Step 4: Confirmation
134
+
135
+ Before executing commands:
136
+
137
+ ```
138
+ [VOICE] I heard: "Add a new phase for payment integration"
139
+
140
+ Interpreted as:
141
+ Command: /ctx phase add "Payment Integration"
142
+
143
+ Execute? [Y/n/repeat]
144
+ ```
145
+
146
+ If confidence is low:
147
+ ```
148
+ [VOICE] I heard: "Add a new faze for payment"
149
+
150
+ Did you mean:
151
+ 1. Add a new phase for payment
152
+ 2. Add a new face for payment
153
+ 3. Something else?
154
+
155
+ Choice [1/2/3]:
156
+ ```
157
+
158
+ </workflow>
159
+
160
+ <voice_modes>
161
+
162
+ ## Command Mode
163
+
164
+ Quick voice commands:
165
+
166
+ ```bash
167
+ /ctx voice --command
168
+ ```
169
+
170
+ ```
171
+ [VOICE] Command mode active
172
+
173
+ 🎤 Listening for commands...
174
+
175
+ Recognized commands:
176
+ - "status" → /ctx status
177
+ - "verify" → /ctx verify
178
+ - "metrics" → /ctx metrics
179
+ - "predict" → /ctx predict
180
+ - "pause" → /ctx pause
181
+ - "stop" → Exit voice mode
182
+ ```
183
+
184
+ ## Dictation Mode
185
+
186
+ Long-form input for stories and descriptions:
187
+
188
+ ```bash
189
+ /ctx voice --dictate
190
+ ```
191
+
192
+ ```
193
+ [VOICE] Dictation mode active
194
+
195
+ 🎤 Speak your story description...
196
+
197
+ Recording will end when you say "done" or
198
+ pause for 3 seconds.
199
+
200
+ [Recording...]
201
+
202
+ "I need a feature that allows users to export
203
+ their data in CSV format. They should be able
204
+ to select which data types to include, choose
205
+ a date range, and download the file immediately
206
+ or receive it via email for large exports."
207
+
208
+ [Transcription complete]
209
+
210
+ Story Description:
211
+ Allow users to export their data in CSV format
212
+ with options for data types, date range, and
213
+ delivery method (immediate download or email).
214
+
215
+ Save as story? [Y/n/edit]
216
+ ```
217
+
218
+ ## Continuous Mode
219
+
220
+ Always listening in background:
221
+
222
+ ```bash
223
+ /ctx voice --continuous
224
+ ```
225
+
226
+ ```
227
+ [VOICE] Continuous listening active
228
+
229
+ 🎤 Say "Hey CTX" to activate...
230
+
231
+ Background mode enabled. CTX will respond when
232
+ you say the wake word.
233
+
234
+ Examples:
235
+ "Hey CTX, what's the status?"
236
+ "Hey CTX, run verification"
237
+ "Hey CTX, create a story for search"
238
+ ```
239
+
240
+ </voice_modes>
241
+
242
+ <speech_processing>
243
+
244
+ ## Supported Languages
245
+
246
+ ```json
247
+ {
248
+ "voice": {
249
+ "language": "en-US",
250
+ "supportedLanguages": [
251
+ "en-US", "en-GB", "en-AU",
252
+ "es-ES", "es-MX",
253
+ "fr-FR", "de-DE",
254
+ "pt-BR", "ja-JP", "zh-CN"
255
+ ]
256
+ }
257
+ }
258
+ ```
259
+
260
+ ## Voice Commands Dictionary
261
+
262
+ ```json
263
+ {
264
+ "commands": {
265
+ "status": [
266
+ "status", "what's the status", "show status",
267
+ "current state", "where are we"
268
+ ],
269
+ "verify": [
270
+ "verify", "run verification", "check",
271
+ "validate", "test"
272
+ ],
273
+ "pause": [
274
+ "pause", "stop", "take a break",
275
+ "save checkpoint", "pause work"
276
+ ],
277
+ "predict": [
278
+ "predict", "what should I build",
279
+ "suggestions", "what's next",
280
+ "recommend features"
281
+ ],
282
+ "metrics": [
283
+ "metrics", "show metrics", "analytics",
284
+ "productivity", "how am I doing"
285
+ ],
286
+ "help": [
287
+ "help", "what can you do", "commands",
288
+ "options", "how do I"
289
+ ]
290
+ }
291
+ }
292
+ ```
293
+
294
+ ## Noise Handling
295
+
296
+ ```json
297
+ {
298
+ "voice": {
299
+ "noiseReduction": true,
300
+ "silenceThreshold": 0.3,
301
+ "minConfidence": 0.7,
302
+ "echoCancellation": true
303
+ }
304
+ }
305
+ ```
306
+
307
+ </speech_processing>
308
+
309
+ <configuration>
310
+
311
+ ## Voice Settings
312
+
313
+ `.ctx/config.json`:
314
+ ```json
315
+ {
316
+ "voice": {
317
+ "enabled": true,
318
+ "engine": "auto",
319
+ "language": "en-US",
320
+ "wakeWord": "Hey CTX",
321
+ "confirmCommands": true,
322
+ "dictationEndPhrase": "done",
323
+ "dictationPauseSeconds": 3,
324
+ "noiseReduction": true,
325
+ "minConfidence": 0.7,
326
+ "engines": {
327
+ "whisper": {
328
+ "model": "small",
329
+ "local": true
330
+ },
331
+ "google": {
332
+ "credentials": "env:GOOGLE_APPLICATION_CREDENTIALS"
333
+ },
334
+ "azure": {
335
+ "key": "env:AZURE_SPEECH_KEY",
336
+ "region": "eastus"
337
+ }
338
+ }
339
+ }
340
+ }
341
+ ```
342
+
343
+ ## Engine Priority
344
+
345
+ ```
346
+ 1. Local Whisper (if installed)
347
+ 2. macOS Speech Recognition (on macOS)
348
+ 3. Google Speech-to-Text (if configured)
349
+ 4. Azure Speech Services (if configured)
350
+ 5. Web Speech API (browser fallback)
351
+ ```
352
+
353
+ </configuration>
354
+
355
+ <accessibility>
356
+
357
+ ## Accessibility Features
358
+
359
+ ### Voice-Only Mode
360
+ For users who prefer or need voice interaction:
361
+
362
+ ```
363
+ /ctx voice --accessible
364
+ ```
365
+
366
+ - All output is spoken aloud
367
+ - Uses system text-to-speech
368
+ - Confirms every action verbally
369
+ - Slower, clearer responses
370
+
371
+ ### Keyboard Fallback
372
+ Voice mode always supports keyboard:
373
+
374
+ ```
375
+ While in voice mode:
376
+ - Type to override voice
377
+ - Press Enter to confirm
378
+ - Press Esc to cancel
379
+ - Press Space to re-listen
380
+ ```
381
+
382
+ ### Screen Reader Compatibility
383
+ All voice mode output is ARIA-compatible:
384
+
385
+ ```
386
+ [VOICE] Status update (press R to repeat)
387
+
388
+ Status is: Executing
389
+ Current story: S008 API Integration
390
+ Progress: 67 percent
391
+ ```
392
+
393
+ </accessibility>
394
+
395
+ <output_format>
396
+
397
+ ## Voice Mode Active
398
+ ```
399
+ ╔══════════════════════════════════════════════════════╗
400
+ ║ CTX VOICE MODE ║
401
+ ╠══════════════════════════════════════════════════════╣
402
+ ║ ║
403
+ ║ 🎤 Listening... ║
404
+ ║ ║
405
+ ║ Speak a command or describe what you want. ║
406
+ ║ ║
407
+ ║ Quick commands: ║
408
+ ║ • "status" - Check current state ║
409
+ ║ • "verify" - Run verification ║
410
+ ║ • "predict" - Get suggestions ║
411
+ ║ • "stop" - Exit voice mode ║
412
+ ║ ║
413
+ ║ Say "create a story for..." to dictate a story. ║
414
+ ║ ║
415
+ ╚══════════════════════════════════════════════════════╝
416
+ ```
417
+
418
+ ## Command Recognized
419
+ ```
420
+ [VOICE] ✓ Recognized: "check the status"
421
+
422
+ Executing: /ctx status
423
+
424
+ [CTX] Current Status
425
+ ...
426
+ ```
427
+
428
+ ## Low Confidence
429
+ ```
430
+ [VOICE] ⚠️ Low confidence (65%)
431
+
432
+ I heard: "great a story for search"
433
+
434
+ Did you mean: "create a story for search"?
435
+
436
+ [Y] Yes [N] No, repeat [T] Type instead
437
+ ```
438
+
439
+ ## Dictation Complete
440
+ ```
441
+ [VOICE] ✓ Dictation complete
442
+
443
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
444
+
445
+ Story: Data Export Feature
446
+
447
+ Description:
448
+ Allow users to export their data in CSV format
449
+ with options for data types, date range, and
450
+ delivery method.
451
+
452
+ Suggested Criteria:
453
+ ✓ User can select data types to export
454
+ ✓ User can choose date range
455
+ ✓ Small exports download immediately
456
+ ✓ Large exports sent via email
457
+ ✓ Export includes all selected fields
458
+ ✓ CSV is properly formatted
459
+
460
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
461
+
462
+ [A] Add to PRD [E] Edit [D] Discard [R] Re-dictate
463
+ ```
464
+
465
+ </output_format>
466
+
467
+ <integration>
468
+
469
+ ## With Other CTX Features
470
+
471
+ ### Voice + Predictions
472
+ ```
473
+ User: "Hey CTX, what should I build next?"
474
+
475
+ [VOICE] Running predictions...
476
+
477
+ [PREDICT] Based on your e-commerce app:
478
+
479
+ I recommend:
480
+ 1. Cart abandonment recovery - high ROI
481
+ 2. Product reviews - increases trust
482
+ 3. Discount codes - marketing flexibility
483
+
484
+ Say a number to create that story, or
485
+ "more details" for information.
486
+ ```
487
+
488
+ ### Voice + Status
489
+ ```
490
+ User: "CTX, give me a quick update"
491
+
492
+ [VOICE] Here's your status:
493
+
494
+ You're working on story S008, API Integration.
495
+ Currently executing task 2 of 5.
496
+ Overall progress is 67 percent.
497
+ Last commit was 15 minutes ago.
498
+
499
+ Would you like more details?
500
+ ```
501
+
502
+ ### Voice + Debug
503
+ ```
504
+ User: "CTX, there's a bug in the checkout"
505
+
506
+ [VOICE] Starting debug session...
507
+
508
+ [DEBUG] What's happening?
509
+ Say "the error is..." to describe
510
+ Or say "show me the error" to view logs
511
+ ```
512
+
513
+ </integration>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ctx-cc",
3
- "version": "3.0.0",
4
- "description": "CTX 3.0 (Continuous Task eXecution) - Production-grade workflow orchestration for Claude Code. Repository mapping, discussion phase, model profiles, git-native commits, persistent debug, parallel codebase analysis.",
3
+ "version": "3.3.0",
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",
7
7
  "claude-code",