agentvibes 2.0.0 → 2.0.3

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 (113) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/installer.js +37 -12
  4. package/.claude/commands/agent-vibes/provider.md +0 -54
  5. package/.claude/hooks/piper-download-voices.sh +0 -133
  6. package/.claude/hooks/piper-voice-manager.sh +0 -194
  7. package/.claude/hooks/play-tts-elevenlabs.sh +0 -201
  8. package/.claude/hooks/play-tts-piper.sh +0 -175
  9. package/.claude/hooks/play-tts.sh.backup-20251005-163851 +0 -138
  10. package/.claude/hooks/provider-commands.sh +0 -374
  11. package/.claude/hooks/provider-manager.sh +0 -196
  12. package/.claude/language-voices.yaml +0 -372
  13. package/.claude/personalities/backups/angry.md.backup-20251005 +0 -16
  14. package/.claude/personalities/backups/annoying.md.backup-20251005 +0 -16
  15. package/.claude/personalities/backups/crass.md.backup-20251005 +0 -16
  16. package/.claude/personalities/backups/dramatic.md.backup-20251005 +0 -16
  17. package/.claude/personalities/backups/dry-humor.md.backup-20251005 +0 -52
  18. package/.claude/personalities/backups/flirty.md.backup-20251005 +0 -22
  19. package/.claude/personalities/backups/funny.md.backup-20251005 +0 -16
  20. package/.claude/personalities/backups/grandpa.md.backup-20251005 +0 -34
  21. package/.claude/personalities/backups/millennial.md.backup-20251005 +0 -16
  22. package/.claude/personalities/backups/moody.md.backup-20251005 +0 -16
  23. package/.claude/personalities/backups/normal.md.backup-20251005 +0 -18
  24. package/.claude/personalities/backups/pirate.md.backup-20251005 +0 -16
  25. package/.claude/personalities/backups/poetic.md.backup-20251005 +0 -16
  26. package/.claude/personalities/backups/professional.md.backup-20251005 +0 -16
  27. package/.claude/personalities/backups/robot.md.backup-20251005 +0 -16
  28. package/.claude/personalities/backups/sarcastic.md.backup-20251005 +0 -40
  29. package/.claude/personalities/backups/sassy.md.backup-20251005 +0 -16
  30. package/.claude/personalities/backups/surfer-dude.md.backup-20251005 +0 -16
  31. package/.claude/personalities/backups/zen.md.backup-20251005 +0 -16
  32. package/.claude/piper-voices/en_US-lessac-medium.onnx +0 -0
  33. package/.claude/piper-voices/en_US-lessac-medium.onnx.json +0 -493
  34. package/.mcp-minimal.json +0 -53
  35. package/agentvibes.org/.mcp-minimal.json +0 -60
  36. package/agentvibes.org/CHANGELOG.md +0 -56
  37. package/agentvibes.org/README.md +0 -93
  38. package/agentvibes.org/app/(auth)/layout.tsx +0 -15
  39. package/agentvibes.org/app/(auth)/reset-password/page.tsx +0 -45
  40. package/agentvibes.org/app/(auth)/signin/page.tsx +0 -82
  41. package/agentvibes.org/app/(auth)/signup/page.tsx +0 -104
  42. package/agentvibes.org/app/(default)/layout.tsx +0 -31
  43. package/agentvibes.org/app/(default)/page.tsx +0 -20
  44. package/agentvibes.org/app/api/hello/route.ts +0 -3
  45. package/agentvibes.org/app/css/additional-styles/theme.css +0 -82
  46. package/agentvibes.org/app/css/additional-styles/utility-patterns.css +0 -55
  47. package/agentvibes.org/app/css/style.css +0 -100
  48. package/agentvibes.org/app/layout.tsx +0 -63
  49. package/agentvibes.org/components/cta.tsx +0 -58
  50. package/agentvibes.org/components/features.tsx +0 -256
  51. package/agentvibes.org/components/hero-home.tsx +0 -97
  52. package/agentvibes.org/components/modal-video.tsx +0 -137
  53. package/agentvibes.org/components/page-illustration.tsx +0 -55
  54. package/agentvibes.org/components/spotlight.tsx +0 -77
  55. package/agentvibes.org/components/testimonials.tsx +0 -282
  56. package/agentvibes.org/components/ui/footer.tsx +0 -82
  57. package/agentvibes.org/components/ui/header.tsx +0 -44
  58. package/agentvibes.org/components/ui/logo.tsx +0 -10
  59. package/agentvibes.org/components/workflows.tsx +0 -176
  60. package/agentvibes.org/next.config.js +0 -4
  61. package/agentvibes.org/package-lock.json +0 -1974
  62. package/agentvibes.org/package.json +0 -30
  63. package/agentvibes.org/pnpm-lock.yaml +0 -1141
  64. package/agentvibes.org/postcss.config.js +0 -5
  65. package/agentvibes.org/public/audio/02-sarcastic.mp3 +0 -0
  66. package/agentvibes.org/public/audio/03-angry.mp3 +0 -0
  67. package/agentvibes.org/public/audio/04-grandpa.mp3 +0 -0
  68. package/agentvibes.org/public/audio/05-sarcastic-example2.mp3 +0 -0
  69. package/agentvibes.org/public/audio/french-rachel.mp3 +0 -0
  70. package/agentvibes.org/public/audio/spanish-antoni.mp3 +0 -0
  71. package/agentvibes.org/public/favicon.ico +0 -0
  72. package/agentvibes.org/public/fonts/nacelle-italic.woff2 +0 -0
  73. package/agentvibes.org/public/fonts/nacelle-regular.woff2 +0 -0
  74. package/agentvibes.org/public/fonts/nacelle-semibold.woff2 +0 -0
  75. package/agentvibes.org/public/fonts/nacelle-semibolditalic.woff2 +0 -0
  76. package/agentvibes.org/public/images/blurred-shape-gray.svg +0 -1
  77. package/agentvibes.org/public/images/blurred-shape.svg +0 -1
  78. package/agentvibes.org/public/images/client-logo-01.svg +0 -1
  79. package/agentvibes.org/public/images/client-logo-02.svg +0 -1
  80. package/agentvibes.org/public/images/client-logo-03.svg +0 -1
  81. package/agentvibes.org/public/images/client-logo-04.svg +0 -1
  82. package/agentvibes.org/public/images/client-logo-05.svg +0 -1
  83. package/agentvibes.org/public/images/client-logo-06.svg +0 -1
  84. package/agentvibes.org/public/images/client-logo-07.svg +0 -1
  85. package/agentvibes.org/public/images/client-logo-08.svg +0 -1
  86. package/agentvibes.org/public/images/client-logo-09.svg +0 -1
  87. package/agentvibes.org/public/images/features.png +0 -0
  88. package/agentvibes.org/public/images/footer-illustration.svg +0 -1
  89. package/agentvibes.org/public/images/hero-image-01.jpg +0 -0
  90. package/agentvibes.org/public/images/logo.svg +0 -1
  91. package/agentvibes.org/public/images/page-illustration.svg +0 -1
  92. package/agentvibes.org/public/images/secondary-illustration.svg +0 -1
  93. package/agentvibes.org/public/images/testimonial-01.jpg +0 -0
  94. package/agentvibes.org/public/images/testimonial-02.jpg +0 -0
  95. package/agentvibes.org/public/images/testimonial-03.jpg +0 -0
  96. package/agentvibes.org/public/images/testimonial-04.jpg +0 -0
  97. package/agentvibes.org/public/images/testimonial-05.jpg +0 -0
  98. package/agentvibes.org/public/images/testimonial-06.jpg +0 -0
  99. package/agentvibes.org/public/images/testimonial-07.jpg +0 -0
  100. package/agentvibes.org/public/images/testimonial-08.jpg +0 -0
  101. package/agentvibes.org/public/images/testimonial-09.jpg +0 -0
  102. package/agentvibes.org/public/images/workflow-01.png +0 -0
  103. package/agentvibes.org/public/images/workflow-02.png +0 -0
  104. package/agentvibes.org/public/images/workflow-03.png +0 -0
  105. package/agentvibes.org/public/videos/video.mp4 +0 -0
  106. package/agentvibes.org/tsconfig.json +0 -28
  107. package/agentvibes.org/utils/useMasonry.tsx +0 -67
  108. package/agentvibes.org/utils/useMousePosition.tsx +0 -27
  109. package/docs/ai-optimized-documentation-standards.md +0 -306
  110. package/docs/architecture/provider-system.md +0 -574
  111. package/docs/voice-mapping-format.md +0 -218
  112. package/scripts/piper-voice/README.md +0 -145
  113. package/scripts/piper-voice/wsl-install.sh +0 -193
@@ -1,306 +0,0 @@
1
- # AI-Optimized Documentation Standards
2
-
3
- **Version**: 1.0
4
- **Purpose**: Maximize AI coding assistant effectiveness through comprehensive code context
5
- **Source**: AgentVibes Multi-Provider TTS System PRD
6
-
7
- ---
8
-
9
- ## Overview
10
-
11
- All code shall follow **AI-optimized documentation standards** to maximize AI coding assistant effectiveness. These standards ensure AI assistants understand not just *what* code does, but *why* it exists, *how* it integrates, and *when* to use specific patterns.
12
-
13
- ---
14
-
15
- ## File-Level Context Headers
16
-
17
- **Required for all source files**
18
-
19
- Every file must begin with a comprehensive context header that provides AI assistants with architectural understanding:
20
-
21
- ```javascript
22
- /**
23
- * @fileoverview [Brief description]
24
- * @context [Why this exists, what problem it solves]
25
- * @architecture [How it fits in the system, patterns used]
26
- * @dependencies [Required files, state, external tools]
27
- * @entrypoints [How code is called/invoked]
28
- * @patterns [Conventions followed]
29
- * @related [GitHub issues, docs, similar files]
30
- */
31
- ```
32
-
33
- ### Field Descriptions
34
-
35
- - **@fileoverview**: One-line summary of file's purpose
36
- - **@context**: The business/technical problem this file solves
37
- - **@architecture**: How this file fits into the larger system, design patterns used
38
- - **@dependencies**: Required files, external state, system tools needed
39
- - **@entrypoints**: How this code gets invoked (CLI commands, imports, hooks)
40
- - **@patterns**: Coding conventions, naming patterns, common idioms used
41
- - **@related**: Links to GitHub issues, related files, documentation
42
-
43
- ### Example (JavaScript)
44
-
45
- ```javascript
46
- /**
47
- * @fileoverview Provider abstraction layer for multi-TTS system
48
- * @context Supports switching between ElevenLabs and Piper TTS without code changes
49
- * @architecture Router pattern - delegates to provider-specific implementations
50
- * @dependencies .claude/tts-provider.txt, play-tts-elevenlabs.sh, play-tts-piper.sh
51
- * @entrypoints Called by personality-manager.sh, language-manager.sh
52
- * @patterns Provider registry pattern, fail-fast validation
53
- * @related GitHub issue #25, docs/prd.md, provider-manager.sh
54
- */
55
- ```
56
-
57
- ### Example (Bash)
58
-
59
- ```bash
60
- #!/bin/bash
61
- # @fileoverview ElevenLabs TTS provider implementation
62
- # @context Handles all ElevenLabs API interactions for voice synthesis
63
- # @architecture Provider interface implementation, follows play-tts.sh contract
64
- # @dependencies ELEVENLABS_API_KEY, curl, mpv/afplay/aplay
65
- # @entrypoints Called by play-tts.sh router when provider=elevenlabs
66
- # @patterns Error code propagation, temp file cleanup, audio fallback chain
67
- # @related play-tts.sh, provider-manager.sh, docs/providers.md
68
- ```
69
-
70
- ---
71
-
72
- ## Function Documentation
73
-
74
- **Required for all functions**
75
-
76
- Each function must include comprehensive intent-based documentation:
77
-
78
- ```bash
79
- # @function [name]
80
- # @intent [Purpose - why this function exists]
81
- # @why [Context - problem it solves]
82
- # @param [Parameters with types]
83
- # @returns [Return value and format]
84
- # @exitcode [Exit codes and meanings]
85
- # @sideeffects [Files modified, state changes]
86
- # @edgecases [Corner cases, gotchas]
87
- # @calledby [What calls this function]
88
- # @calls [What this function calls]
89
- ```
90
-
91
- ### Field Descriptions
92
-
93
- - **@function**: Function name
94
- - **@intent**: High-level purpose from user perspective
95
- - **@why**: Technical context - what problem does this solve?
96
- - **@param**: Parameters with types, default values, constraints
97
- - **@returns**: What the function returns and in what format
98
- - **@exitcode**: Exit codes and their meanings (for scripts)
99
- - **@sideeffects**: Files written, state modified, external calls made
100
- - **@edgecases**: Corner cases, known limitations, gotchas
101
- - **@calledby**: What calls this function (helps AI understand flow)
102
- - **@calls**: What this function calls (helps AI trace dependencies)
103
-
104
- ### Example (Bash)
105
-
106
- ```bash
107
- # @function get_active_provider
108
- # @intent Determine which TTS provider is currently active
109
- # @why Needed to route TTS requests to correct provider implementation
110
- # @param None
111
- # @returns Provider name (elevenlabs|piper) to stdout
112
- # @exitcode 0=success, 1=no provider configured, 2=invalid provider
113
- # @sideeffects Reads .claude/tts-provider.txt or ~/.claude/tts-provider.txt
114
- # @edgecases Returns "elevenlabs" if file missing (backward compat)
115
- # @calledby play-tts.sh, provider-manager.sh, personality-manager.sh
116
- # @calls cat, validate_provider_name
117
- get_active_provider() {
118
- local provider_file
119
- # Try project-local first, then global fallback
120
- if [[ -f ".claude/tts-provider.txt" ]]; then
121
- provider_file=".claude/tts-provider.txt"
122
- elif [[ -f "$HOME/.claude/tts-provider.txt" ]]; then
123
- provider_file="$HOME/.claude/tts-provider.txt"
124
- else
125
- # Default to elevenlabs for backward compatibility
126
- echo "elevenlabs"
127
- return 0
128
- fi
129
-
130
- cat "$provider_file"
131
- }
132
- ```
133
-
134
- ### Example (JavaScript)
135
-
136
- ```javascript
137
- /**
138
- * @function selectTTSProvider
139
- * @intent Interactive provider selection during installation
140
- * @why Allows users to choose between ElevenLabs (premium) and Piper (free)
141
- * @param {Object} options - Configuration options
142
- * @param {string} options.platform - Detected platform (wsl|linux|macos|windows)
143
- * @param {boolean} options.piperAvailable - Whether Piper can be installed
144
- * @returns {Promise<string>} Selected provider name
145
- * @sideeffects Writes to .claude/tts-provider.txt
146
- * @edgecases Disables Piper option on non-WSL/Linux platforms
147
- * @calledby installer.js main flow
148
- * @calls inquirer.prompt, detectPlatform, chalk.cyan
149
- */
150
- async function selectTTSProvider(options) {
151
- const choices = [
152
- {
153
- name: 'ElevenLabs - Premium quality [API key required]',
154
- value: 'elevenlabs',
155
- }
156
- ];
157
-
158
- if (options.piperAvailable) {
159
- choices.push({
160
- name: 'Piper TTS - Free, offline [Recommended for WSL/Linux]',
161
- value: 'piper',
162
- });
163
- }
164
-
165
- const { provider } = await inquirer.prompt([{
166
- type: 'list',
167
- name: 'provider',
168
- message: 'Choose your TTS provider:',
169
- choices,
170
- }]);
171
-
172
- return provider;
173
- }
174
- ```
175
-
176
- ---
177
-
178
- ## Additional Documentation Elements
179
-
180
- ### AI Notes
181
-
182
- Use `# AI NOTE:` comments for non-obvious logic that might confuse AI assistants:
183
-
184
- ```bash
185
- # AI NOTE: We check project-local .claude/ before global ~/.claude/ to support
186
- # per-project provider configurations. This allows users to use ElevenLabs for
187
- # work projects and Piper for personal projects.
188
- if [[ -f ".claude/tts-provider.txt" ]]; then
189
- provider_file=".claude/tts-provider.txt"
190
- elif [[ -f "$HOME/.claude/tts-provider.txt" ]]; then
191
- provider_file="$HOME/.claude/tts-provider.txt"
192
- fi
193
- ```
194
-
195
- ### Architecture Decision Records (ADRs)
196
-
197
- For critical design decisions, include inline ADRs:
198
-
199
- ```bash
200
- # ADR-001: Provider Router Pattern
201
- # Decision: Use play-tts.sh as router instead of modifying all callers
202
- # Rationale: Minimizes changes to existing code, easier to add new providers
203
- # Consequences: Single point of failure, but easier maintenance
204
- # Date: 2025-01-05
205
- ```
206
-
207
- ### Cross-Reference Maps
208
-
209
- For complex systems, include navigation aids:
210
-
211
- ```bash
212
- # CROSS-REFERENCE MAP
213
- # ==================
214
- # Provider Management:
215
- # - play-tts.sh → Router (entry point)
216
- # - provider-manager.sh → Core provider logic
217
- # - play-tts-elevenlabs.sh → ElevenLabs implementation
218
- # - play-tts-piper.sh → Piper implementation
219
- #
220
- # State Files:
221
- # - .claude/tts-provider.txt → Active provider
222
- # - .claude/tts-voice.txt → Default voice
223
- ```
224
-
225
- ### Pattern Examples
226
-
227
- For extensibility, provide pattern examples:
228
-
229
- ```bash
230
- # PATTERN: Adding a New Provider
231
- # =============================
232
- # 1. Create play-tts-{provider}.sh following this interface:
233
- # - Input: $1=message, $2=voice_name (optional)
234
- # - Output: Audio playback
235
- # - Exit codes: 0=success, 1=error
236
- #
237
- # 2. Add provider to provider-manager.sh:
238
- # PROVIDERS=("elevenlabs" "piper" "newprovider")
239
- #
240
- # 3. Add voice mappings to personality files:
241
- # voices:
242
- # elevenlabs: "Aria"
243
- # piper: "en_US-amy-medium"
244
- # newprovider: "voice-id-here"
245
- ```
246
-
247
- ### State File Format Documentation
248
-
249
- Document all state file formats:
250
-
251
- ```bash
252
- # STATE FILE: .claude/tts-provider.txt
253
- # Format: Single line containing provider name
254
- # Valid values: elevenlabs, piper
255
- # Example:
256
- # elevenlabs
257
- #
258
- # Location precedence:
259
- # 1. .claude/tts-provider.txt (project-local)
260
- # 2. ~/.claude/tts-provider.txt (global fallback)
261
- #
262
- # Created by: installer.js, /agent-vibes:provider switch
263
- # Read by: play-tts.sh, provider-manager.sh, personality-manager.sh
264
- ```
265
-
266
- ---
267
-
268
- ## Benefits for AI Assistants
269
-
270
- Following these standards enables AI assistants to:
271
-
272
- 1. **Understand Intent**: Know *why* code exists, not just what it does
273
- 2. **Navigate Quickly**: Find related code through @related and cross-references
274
- 3. **Modify Safely**: Understand side effects and edge cases before changing code
275
- 4. **Extend Correctly**: Follow established patterns when adding features
276
- 5. **Debug Effectively**: Trace call chains through @calledby/@calls
277
- 6. **Maintain Context**: Preserve architectural understanding across conversations
278
-
279
- ---
280
-
281
- ## Implementation Checklist
282
-
283
- When writing new code:
284
-
285
- - [ ] Add file-level context header with all 7 fields
286
- - [ ] Document all functions with 9-field format
287
- - [ ] Add AI NOTEs for non-obvious logic
288
- - [ ] Include ADRs for design decisions
289
- - [ ] Provide cross-reference maps for complex modules
290
- - [ ] Document state file formats
291
- - [ ] Include pattern examples for extensibility
292
- - [ ] Link to related GitHub issues/docs
293
-
294
- ---
295
-
296
- ## Related Resources
297
-
298
- - **Source PRD**: `docs/prd.md` (Multi-Provider TTS System)
299
- - **Example Implementation**: `.claude/hooks/play-tts.sh`, `provider-manager.sh`
300
- - **GitHub Issue**: #25 (Multi-Provider TTS Feature)
301
-
302
- ---
303
-
304
- **Generated from**: AgentVibes Multi-Provider TTS System PRD v1.0
305
- **Extracted by**: John (PM)
306
- **Date**: 2025-01-05