agentvibes 5.6.8 → 5.6.9

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 (132) hide show
  1. package/.agentvibes/LITE-MODE.md +236 -0
  2. package/.agentvibes/README.md +136 -0
  3. package/.agentvibes/backup/session-start-tts.sh.20251210_212814 +141 -0
  4. package/.agentvibes/backups/agents/analyst_20260204_144958.md +78 -0
  5. package/.agentvibes/backups/agents/architect_20260204_144958.md +72 -0
  6. package/.agentvibes/backups/agents/dev_20260204_144958.md +74 -0
  7. package/.agentvibes/backups/agents/pm_20260204_144958.md +72 -0
  8. package/.agentvibes/backups/agents/quick-flow-solo-dev_20260204_144958.md +64 -0
  9. package/.agentvibes/backups/agents/sm_20260204_144958.md +87 -0
  10. package/.agentvibes/backups/agents/tea_20260204_144958.md +79 -0
  11. package/.agentvibes/backups/agents/tech-writer_20260204_144958.md +82 -0
  12. package/.agentvibes/backups/agents/ux-designer_20260204_144958.md +80 -0
  13. package/.agentvibes/config/README-personality-defaults.md +162 -0
  14. package/.agentvibes/config/agentvibes.json +1 -0
  15. package/.agentvibes/config/mode.txt +1 -0
  16. package/.agentvibes/config/personality-voice-defaults.default.json +21 -0
  17. package/.agentvibes/config/save-audio.txt +1 -0
  18. package/.agentvibes/config/voice-metadata.json +160 -0
  19. package/.agentvibes/config.json +38 -1
  20. package/.agentvibes/hooks/help.sh +191 -0
  21. package/.agentvibes/hooks/post-tool-use-lite.sh +111 -0
  22. package/.agentvibes/hooks/save-audio-manager.sh +162 -0
  23. package/.agentvibes/hooks/session-start-full-optimized.sh +102 -0
  24. package/.agentvibes/hooks/session-start-full.sh +142 -0
  25. package/.agentvibes/hooks/session-start-lite-v2.sh +34 -0
  26. package/.agentvibes/hooks/session-start-lite.sh +29 -0
  27. package/.agentvibes/hooks/stop-lite.sh +115 -0
  28. package/.agentvibes/hooks/switch-mode.sh +215 -0
  29. package/.agentvibes/output-styles/audio-summary.md +30 -0
  30. package/.claude/audio/voice-samples/piper/alan.wav +0 -0
  31. package/.claude/audio/voice-samples/piper/amy.wav +0 -0
  32. package/.claude/audio/voice-samples/piper/charlotte.wav +0 -0
  33. package/.claude/audio/voice-samples/piper/joe.wav +0 -0
  34. package/.claude/audio/voice-samples/piper/john.wav +0 -0
  35. package/.claude/audio/voice-samples/piper/katherine.wav +0 -0
  36. package/.claude/audio/voice-samples/piper/kristin.wav +0 -0
  37. package/.claude/audio/voice-samples/piper/linda.wav +0 -0
  38. package/.claude/audio/voice-samples/piper/marcus.wav +0 -0
  39. package/.claude/audio/voice-samples/piper/ryan.wav +0 -0
  40. package/.claude/commands/agent-vibes/provider.md +0 -0
  41. package/.claude/commands/agent-vibes-bmad-voices.md +117 -117
  42. package/.claude/commands/agent-vibes-rdp.md +24 -24
  43. package/.claude/config/audio-effects.cfg +1 -1
  44. package/.claude/config/background-music-position.txt +8 -7
  45. package/.claude/config/reverb-level.txt +0 -0
  46. package/.claude/docs/TERMUX_SETUP.md +408 -408
  47. package/.claude/hooks/audio-cache-utils.sh +0 -0
  48. package/.claude/hooks/audio-processor.sh +0 -0
  49. package/.claude/hooks/background-music-manager.sh +0 -0
  50. package/.claude/hooks/bmad-party-manager.sh +225 -0
  51. package/.claude/hooks/bmad-party-speak.sh +0 -0
  52. package/.claude/hooks/bmad-speak-enhanced.sh +0 -0
  53. package/.claude/hooks/bmad-speak.sh +0 -0
  54. package/.claude/hooks/bmad-tts-injector.sh +0 -0
  55. package/.claude/hooks/bmad-voice-manager.sh +0 -0
  56. package/.claude/hooks/clawdbot-receiver-SECURE.sh +0 -0
  57. package/.claude/hooks/clawdbot-receiver.sh +0 -0
  58. package/.claude/hooks/clean-audio-cache.sh +0 -0
  59. package/.claude/hooks/cleanup-cache.sh +0 -0
  60. package/.claude/hooks/configure-rdp-mode.sh +0 -0
  61. package/.claude/hooks/download-extra-voices.sh +0 -0
  62. package/.claude/hooks/effects-manager.sh +0 -0
  63. package/.claude/hooks/github-star-reminder.sh +0 -0
  64. package/.claude/hooks/language-manager.sh +0 -0
  65. package/.claude/hooks/learn-manager.sh +0 -0
  66. package/.claude/hooks/macos-voice-manager.sh +0 -0
  67. package/.claude/hooks/migrate-background-music.sh +0 -0
  68. package/.claude/hooks/migrate-to-agentvibes.sh +0 -0
  69. package/.claude/hooks/optimize-background-music.sh +0 -0
  70. package/.claude/hooks/path-resolver.sh +0 -0
  71. package/.claude/hooks/personality-manager.sh +0 -0
  72. package/.claude/hooks/piper-download-voices.sh +0 -0
  73. package/.claude/hooks/piper-installer.sh +0 -0
  74. package/.claude/hooks/piper-multispeaker-registry.sh +0 -0
  75. package/.claude/hooks/piper-voice-manager.sh +0 -0
  76. package/.claude/hooks/play-tts-agentvibes-receiver-for-voiceless-connections.sh +0 -0
  77. package/.claude/hooks/play-tts-enhanced.sh +0 -0
  78. package/.claude/hooks/play-tts-macos.sh +0 -0
  79. package/.claude/hooks/play-tts-piper.sh +1 -1
  80. package/.claude/hooks/play-tts-soprano.sh +0 -0
  81. package/.claude/hooks/play-tts-ssh-remote.sh +0 -0
  82. package/.claude/hooks/play-tts-termux-ssh.sh +0 -0
  83. package/.claude/hooks/play-tts-windows-receiver.sh +0 -0
  84. package/.claude/hooks/play-tts.sh +4 -0
  85. package/.claude/hooks/post-response.sh +41 -0
  86. package/.claude/hooks/prepare-release.sh +0 -0
  87. package/.claude/hooks/provider-commands.sh +0 -0
  88. package/.claude/hooks/provider-manager.sh +0 -0
  89. package/.claude/hooks/replay-target-audio.sh +0 -0
  90. package/.claude/hooks/sentiment-manager.sh +0 -0
  91. package/.claude/hooks/session-start-tts.sh +0 -0
  92. package/.claude/hooks/soprano-gradio-synth.py +0 -0
  93. package/.claude/hooks/speed-manager.sh +0 -0
  94. package/.claude/hooks/stop-tts.sh +0 -0
  95. package/.claude/hooks/stop.sh +63 -0
  96. package/.claude/hooks/termux-installer.sh +0 -0
  97. package/.claude/hooks/translate-manager.sh +0 -0
  98. package/.claude/hooks/translator.py +0 -0
  99. package/.claude/hooks/tts-queue-worker.sh +0 -0
  100. package/.claude/hooks/tts-queue.sh +0 -0
  101. package/.claude/hooks/verbosity-manager.sh +0 -0
  102. package/.claude/hooks/voice-manager.sh +0 -0
  103. package/.claude/hooks-windows/audio-cache-utils.ps1 +119 -119
  104. package/.claude/piper-voices-dir.txt +1 -0
  105. package/.clawdbot/README.md +105 -105
  106. package/.mcp.json +32 -3
  107. package/README.md +12 -2
  108. package/RELEASE_NOTES.md +29 -0
  109. package/WINDOWS-SETUP.md +208 -208
  110. package/bin/agent-vibes +0 -0
  111. package/bin/agentvibes-voice-browser.js +59 -4
  112. package/bin/agentvibes.js +0 -0
  113. package/bin/ensure-soprano-running.sh +43 -0
  114. package/bin/mcp-server.js +121 -121
  115. package/bin/mcp-server.sh +0 -0
  116. package/bin/test-bmad-pr +78 -78
  117. package/mcp-server/QUICK_START.md +203 -203
  118. package/mcp-server/README.md +345 -345
  119. package/mcp-server/WINDOWS_SETUP.md +260 -260
  120. package/mcp-server/docs/troubleshooting-audio.md +313 -313
  121. package/mcp-server/examples/claude_desktop_config.json +11 -11
  122. package/mcp-server/examples/claude_desktop_config_piper.json +9 -9
  123. package/mcp-server/examples/custom_instructions.md +169 -169
  124. package/mcp-server/install-deps.js +177 -130
  125. package/mcp-server/server.py +1797 -1787
  126. package/mcp-server/test_server.py +0 -0
  127. package/package.json +1 -1
  128. package/src/console/tabs/music-tab.js +18 -2
  129. package/src/installer.js +0 -0
  130. package/templates/agentvibes-receiver.sh +0 -0
  131. package/templates/audio/welcome-music.mp3 +0 -0
  132. package/.claude/hooks/play-tts-agentvibes-receiver.sh +0 -1
@@ -0,0 +1,162 @@
1
+ # Personality Voice Defaults
2
+
3
+ ## What is this?
4
+
5
+ This configuration file (`personality-voice-defaults.json`) maps each AgentVibes personality to a specific Piper TTS voice that sounds best for that character.
6
+
7
+ ## How it works for new users
8
+
9
+ When someone installs AgentVibes with Piper TTS:
10
+
11
+ ### 1. Installation Process
12
+
13
+ ```bash
14
+ # User installs Piper
15
+ .claude/hooks/piper-installer.sh
16
+ ```
17
+
18
+ **What happens:**
19
+ - Piper TTS binary gets installed via `pipx`
20
+ - User is asked: "Download voice models now?"
21
+ - If yes, runs `piper-download-voices.sh` which downloads:
22
+ - **16Speakers** (~25MB) - Multi-voice model with 16 speakers
23
+ - **en_GB-alan-medium** (~25MB) - British male voice
24
+ - **en_GB-semaine-medium** (~25MB) - British female voice
25
+ - Plus a few other standard voices
26
+ - Default personality mappings are installed automatically
27
+
28
+ ### 2. What gets downloaded
29
+
30
+ **Required voices for personality defaults:**
31
+ - ✅ **16Speakers** (1 file) - Provides 16 different speakers:
32
+ - #0: Cori Samuel (female) - Used for: flirty, dramatic, dry_humor, sassy
33
+ - #2: Kristin Hughes (female) - Used for: poetic, sarcastic
34
+ - #4: Mike Pelton (male) - Used for: grandpa
35
+ - #8: Rose Ibex (female) - Used for: moody
36
+ - #13: Jennifer Dorr (female) - Used for: millennial
37
+ - #14: Emily Cripps (female) - Used for: zen
38
+ - #15: Martin Clifton (male) - Used for: pirate
39
+
40
+ - ✅ **en_GB-alan-medium** - British male voice
41
+ - Used for: angry, professional, surfer_dude
42
+
43
+ - ✅ **en_GB-semaine-medium** - British female voice
44
+ - Used for: funny
45
+
46
+ **Total download size: ~75MB** (3 voice models)
47
+
48
+ ### 3. First time using a personality
49
+
50
+ ```bash
51
+ # User switches personality
52
+ /agent-vibes:personality flirty
53
+ ```
54
+
55
+ **What happens:**
56
+ 1. AgentVibes reads `personality-voice-defaults.json`
57
+ 2. Finds that "flirty" → "16Speakers#0" (Cori Samuel)
58
+ 3. Checks if 16Speakers is downloaded
59
+ 4. **If not downloaded:**
60
+ - Prompts: "Voice model not found: 16Speakers. Download? [y/N]"
61
+ - User says yes → Downloads automatically from HuggingFace
62
+ - Only happens once per voice model
63
+ 5. **If already downloaded:**
64
+ - Switches to the voice immediately
65
+ - Plays personality-appropriate TTS
66
+
67
+ ### 4. Graceful fallbacks
68
+
69
+ If a user:
70
+ - Skips voice downloads during install → On-demand download when needed
71
+ - Deletes the defaults file → Falls back to basic `en_US-lessac-medium`
72
+ - Uses a personality without a mapping → Uses default voice
73
+
74
+ ## For power users
75
+
76
+ ### Customizing defaults
77
+
78
+ Edit `.claude/personality-voice-defaults.json`:
79
+
80
+ ```json
81
+ {
82
+ "mappings": {
83
+ "flirty": {
84
+ "voice": "16Speakers#0",
85
+ "rating": 10,
86
+ "display_name": "Cori Samuel"
87
+ }
88
+ }
89
+ }
90
+ ```
91
+
92
+ Change the `voice` field to any Piper voice name.
93
+
94
+ ### Using the voice tester
95
+
96
+ 1. Run the voice tester (in `voice-tester/` folder)
97
+ 2. Rate voices for each personality
98
+ 3. Export ratings as JSON
99
+ 4. Import with: `./import-voice-ratings.sh my-ratings.json`
100
+
101
+ ### Available voices
102
+
103
+ List all Piper voices: https://huggingface.co/rhasspy/piper-voices
104
+
105
+ Any voice can be used - AgentVibes will download it on first use.
106
+
107
+ ## FAQ
108
+
109
+ **Q: Do new users need to download all voices upfront?**
110
+ A: No! Only 3 files (~75MB total) are recommended. Others download on-demand.
111
+
112
+ **Q: What if a user doesn't download any voices?**
113
+ A: First personality switch will prompt to download the needed voice.
114
+
115
+ **Q: Can users change the defaults?**
116
+ A: Yes! Edit the JSON file or use the voice tester to rate and export new preferences.
117
+
118
+ **Q: What if 16Speakers isn't available?**
119
+ A: It's hosted on AgentVibes HuggingFace and included in the download script.
120
+
121
+ **Q: What happens on slow connections?**
122
+ A: Each voice is ~25MB. Downloads are one-time only and optional.
123
+
124
+ ## Architecture
125
+
126
+ ```
127
+ Installation Flow:
128
+ 1. User runs piper-installer.sh
129
+
130
+ 2. Piper binary installed via pipx
131
+
132
+ 3. Ask: "Download voices?" → Yes
133
+
134
+ 4. piper-download-voices.sh runs
135
+ - Downloads 16Speakers (custom, HuggingFace)
136
+ - Downloads en_GB-alan-medium (official Piper)
137
+ - Downloads en_GB-semaine-medium (official Piper)
138
+ - Downloads other optional voices
139
+
140
+ 5. install-personality-defaults.sh runs
141
+ - Copies personality-voice-defaults.json to user config
142
+
143
+ 6. Ready! Personalities now auto-select best voices
144
+
145
+ Runtime Flow:
146
+ User: /agent-vibes:personality flirty
147
+
148
+ personality-manager.sh checks:
149
+ 1. User defaults (.claude/personality-voice-defaults.json)
150
+ 2. Personality file (piper_voice: field)
151
+ 3. Global default (en_US-lessac-medium)
152
+
153
+ Found: 16Speakers#0
154
+
155
+ Check if downloaded → Yes
156
+
157
+ Switch to voice & play TTS!
158
+ ```
159
+
160
+ ## Credits
161
+
162
+ Voice selections curated by Paul Preibisch based on extensive testing with the AgentVibes voice tester (16 personalities × 19 voices).
@@ -0,0 +1 @@
1
+ {"pretext": "AgentVibes"}
@@ -0,0 +1 @@
1
+ full
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "1.0",
3
+ "description": "Default Piper voice assignments for each personality",
4
+ "mappings": {
5
+ "angry": {"voice": "en_GB-alan-medium", "rating": 10, "display_name": "English GB - Alan"},
6
+ "dramatic": {"voice": "16Speakers#0", "rating": 10, "display_name": "Cori Samuel"},
7
+ "dry_humor": {"voice": "16Speakers#0", "rating": 10, "display_name": "Cori Samuel"},
8
+ "flirty": {"voice": "16Speakers#0", "rating": 10, "display_name": "Cori Samuel"},
9
+ "funny": {"voice": "en_GB-semaine-medium", "rating": 10, "display_name": "English GB - Semaine"},
10
+ "grandpa": {"voice": "16Speakers#4", "rating": 10, "display_name": "Mike Pelton"},
11
+ "millennial": {"voice": "16Speakers#13", "rating": 10, "display_name": "Jennifer Dorr"},
12
+ "moody": {"voice": "16Speakers#8", "rating": 10, "display_name": "Rose Ibex"},
13
+ "pirate": {"voice": "16Speakers#15", "rating": 10, "display_name": "Martin Clifton"},
14
+ "poetic": {"voice": "16Speakers#2", "rating": 10, "display_name": "Kristin Hughes"},
15
+ "professional": {"voice": "en_GB-alan-medium", "rating": 10, "display_name": "English GB - Alan"},
16
+ "sarcastic": {"voice": "16Speakers#2", "rating": 10, "display_name": "Kristin Hughes"},
17
+ "sassy": {"voice": "16Speakers#0", "rating": 10, "display_name": "Cori Samuel"},
18
+ "surfer_dude": {"voice": "en_GB-alan-medium", "rating": 10, "display_name": "English GB - Alan"},
19
+ "zen": {"voice": "16Speakers#14", "rating": 10, "display_name": "Emily Cripps"}
20
+ }
21
+ }
@@ -0,0 +1 @@
1
+ true
@@ -0,0 +1,160 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "provider": "piper",
4
+ "voices": {
5
+ "ryan": {
6
+ "id": "en_US-ryan-high",
7
+ "displayName": "Ryan",
8
+ "gender": "male",
9
+ "accent": "American",
10
+ "region": "US",
11
+ "quality": "high",
12
+ "sampleRate": "22050Hz",
13
+ "personality": ["professional", "clear", "confident", "authoritative"],
14
+ "recommendedFor": ["business", "technical", "presentations", "narrator"],
15
+ "description": "Professional American male voice with clear articulation",
16
+ "sampleFile": "ryan.wav"
17
+ },
18
+ "joe": {
19
+ "id": "en_US-joe-medium",
20
+ "displayName": "Joe",
21
+ "gender": "male",
22
+ "accent": "American",
23
+ "region": "US",
24
+ "quality": "medium",
25
+ "sampleRate": "22050Hz",
26
+ "personality": ["warm", "friendly", "casual", "approachable"],
27
+ "recommendedFor": ["casual", "friendly", "conversational", "assistant"],
28
+ "description": "Warm and friendly American male voice",
29
+ "sampleFile": "joe.wav"
30
+ },
31
+ "alan": {
32
+ "id": "en_GB-alan-medium",
33
+ "displayName": "Alan",
34
+ "gender": "male",
35
+ "accent": "British",
36
+ "region": "GB",
37
+ "quality": "medium",
38
+ "sampleRate": "22050Hz",
39
+ "personality": ["refined", "sophisticated", "intelligent", "articulate"],
40
+ "recommendedFor": ["formal", "educational", "architect", "expert"],
41
+ "description": "Refined British male voice with sophisticated tone",
42
+ "sampleFile": "alan.wav"
43
+ },
44
+ "marcus": {
45
+ "id": "en_US-kusal-medium",
46
+ "displayName": "Marcus",
47
+ "gender": "male",
48
+ "accent": "American",
49
+ "region": "US",
50
+ "quality": "medium",
51
+ "sampleRate": "22050Hz",
52
+ "personality": ["steady", "reliable", "focused", "analytical"],
53
+ "recommendedFor": ["testing", "QA", "technical", "documentation"],
54
+ "description": "Steady and reliable American male voice",
55
+ "sampleFile": "marcus.wav"
56
+ },
57
+ "john": {
58
+ "id": "en_US-john-medium",
59
+ "displayName": "John",
60
+ "gender": "male",
61
+ "accent": "American",
62
+ "region": "US",
63
+ "quality": "medium",
64
+ "sampleRate": "22050Hz",
65
+ "personality": ["energetic", "enthusiastic", "engaging", "dynamic"],
66
+ "recommendedFor": ["product-management", "leadership", "motivational", "presentations"],
67
+ "description": "Energetic and enthusiastic American male voice",
68
+ "sampleFile": "john.wav"
69
+ },
70
+ "katherine": {
71
+ "id": "en_US-lessac-high",
72
+ "displayName": "Katherine",
73
+ "gender": "female",
74
+ "accent": "American",
75
+ "region": "US",
76
+ "quality": "high",
77
+ "sampleRate": "22050Hz",
78
+ "personality": ["professional", "articulate", "polished", "executive"],
79
+ "recommendedFor": ["business", "executive", "formal", "professional"],
80
+ "description": "Professional American female voice with executive presence",
81
+ "sampleFile": "katherine.wav"
82
+ },
83
+ "linda": {
84
+ "id": "en_US-ljspeech-high",
85
+ "displayName": "Linda",
86
+ "gender": "female",
87
+ "accent": "American",
88
+ "region": "US",
89
+ "quality": "high",
90
+ "sampleRate": "22050Hz",
91
+ "personality": ["clear", "neutral", "precise", "informative"],
92
+ "recommendedFor": ["narrator", "audiobooks", "educational", "news"],
93
+ "description": "Clear and precise American female narrator voice",
94
+ "sampleFile": "linda.wav"
95
+ },
96
+ "amy": {
97
+ "id": "en_US-amy-medium",
98
+ "displayName": "Amy",
99
+ "gender": "female",
100
+ "accent": "American",
101
+ "region": "US",
102
+ "quality": "medium",
103
+ "sampleRate": "22050Hz",
104
+ "personality": ["friendly", "approachable", "helpful", "cheerful"],
105
+ "recommendedFor": ["assistant", "notifications", "casual", "friendly"],
106
+ "description": "Friendly and approachable American female voice",
107
+ "sampleFile": "amy.wav"
108
+ },
109
+ "kristin": {
110
+ "id": "en_US-kristin-medium",
111
+ "displayName": "Kristin",
112
+ "gender": "female",
113
+ "accent": "American",
114
+ "region": "US",
115
+ "quality": "medium",
116
+ "sampleRate": "22050Hz",
117
+ "personality": ["analytical", "thoughtful", "intelligent", "insightful"],
118
+ "recommendedFor": ["analyst", "research", "strategy", "consulting"],
119
+ "description": "Thoughtful and analytical American female voice",
120
+ "sampleFile": "kristin.wav"
121
+ },
122
+ "charlotte": {
123
+ "id": "en_GB-southern_english_female-low",
124
+ "displayName": "Charlotte",
125
+ "gender": "female",
126
+ "accent": "British",
127
+ "region": "GB",
128
+ "quality": "low",
129
+ "sampleRate": "16000Hz",
130
+ "personality": ["elegant", "sophisticated", "cultured", "refined"],
131
+ "recommendedFor": ["formal", "sophisticated", "cultural", "narrator"],
132
+ "description": "Elegant British female voice with southern English accent",
133
+ "sampleFile": "charlotte.wav"
134
+ }
135
+ },
136
+ "defaultVoice": "ryan",
137
+ "installerVoices": [
138
+ "ryan",
139
+ "joe",
140
+ "alan",
141
+ "marcus",
142
+ "john",
143
+ "katherine",
144
+ "linda",
145
+ "amy",
146
+ "kristin",
147
+ "charlotte"
148
+ ],
149
+ "bmadAgentDefaults": {
150
+ "architect": "alan",
151
+ "analyst": "kristin",
152
+ "dev": "joe",
153
+ "pm": "john",
154
+ "sm": "amy",
155
+ "tea": "marcus",
156
+ "tech-writer": "linda",
157
+ "ux-designer": "charlotte",
158
+ "bmad-master": "ryan"
159
+ }
160
+ }
@@ -1,3 +1,40 @@
1
1
  {
2
- "setupCompleted": true
2
+ "defaultVoice": "libritts-speaker-925",
3
+ "ttsProvider": "piper",
4
+ "provider": "soprano",
5
+ "backgroundMusic": {
6
+ "enabled": false,
7
+ "track": "agent_vibes_japanese_city_pop_v1_loop.mp3",
8
+ "volume": 20
9
+ },
10
+ "music": {
11
+ "enabled": true,
12
+ "track": "agentvibes_nature_sounds_rain.mp3"
13
+ },
14
+ "musicFavorites": [
15
+ "agentvibes_blues_smooth_guitar.mp3",
16
+ "agentvibes_lofi_beats_coding.mp3",
17
+ "agentvibes_nature_sounds_rain.mp3",
18
+ "agent_vibes_ganawa_ambient_v2_loop.mp3"
19
+ ],
20
+ "effects": {
21
+ "reverb": true,
22
+ "reverbAmount": 0.6,
23
+ "pitch": 2,
24
+ "reverbPreset": "medium"
25
+ },
26
+ "verbosity": "high",
27
+ "personality": "grandpa",
28
+ "voice": "16Speakers::Cori_Samuel",
29
+ "pretext": "Agent Vibes Here",
30
+ "setupCompleted": true,
31
+ "ttsEngine": "piper",
32
+ "thumbsUp": [
33
+ "en_US-libritts-high::Adam",
34
+ "en_US-libritts_r-medium::Adam-2"
35
+ ],
36
+ "favorites": [
37
+ "en_US-libritts-high::Adam",
38
+ "en_US-libritts_r-medium::Adam-2"
39
+ ]
3
40
  }
@@ -0,0 +1,191 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # File: .agentvibes/hooks/help.sh
4
+ #
5
+ # AgentVibes Help & Diagnostic Tool
6
+ # User-friendly status check with actionable suggestions
7
+ #
8
+
9
+ set -euo pipefail
10
+
11
+ # Fix locale warnings
12
+ export LC_ALL=C
13
+
14
+ # Directories
15
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16
+ AGENTVIBES_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17
+ CLAUDE_DIR=".claude"
18
+ CONFIG_DIR="$AGENTVIBES_DIR/config"
19
+
20
+ # Files
21
+ MODE_FILE="$CONFIG_DIR/mode.txt"
22
+ SESSION_START_HOOK="$CLAUDE_DIR/hooks/session-start-tts.sh"
23
+ POST_TOOL_USE_HOOK="$CLAUDE_DIR/hooks/post-tool-use.sh"
24
+ PLAY_TTS_SCRIPT="$CLAUDE_DIR/hooks/play-tts.sh"
25
+
26
+ # Colors
27
+ GREEN='\033[0;32m'
28
+ YELLOW='\033[1;33m'
29
+ RED='\033[0;31m'
30
+ BLUE='\033[0;34m'
31
+ GRAY='\033[0;90m'
32
+ NC='\033[0m' # No Color
33
+
34
+ # Get current mode
35
+ get_current_mode() {
36
+ if [[ -f "$MODE_FILE" ]]; then
37
+ cat "$MODE_FILE"
38
+ else
39
+ echo "full"
40
+ fi
41
+ }
42
+
43
+ # Get current voice
44
+ get_current_voice() {
45
+ if [[ -f ".claude/tts-voice.txt" ]]; then
46
+ cat ".claude/tts-voice.txt"
47
+ elif [[ -f "$HOME/.claude/tts-voice.txt" ]]; then
48
+ cat "$HOME/.claude/tts-voice.txt"
49
+ else
50
+ echo "Default"
51
+ fi
52
+ }
53
+
54
+ # Get current provider
55
+ get_current_provider() {
56
+ if [[ -f ".claude/tts-provider.txt" ]]; then
57
+ cat ".claude/tts-provider.txt"
58
+ elif [[ -f "$HOME/.claude/tts-provider.txt" ]]; then
59
+ cat "$HOME/.claude/tts-provider.txt"
60
+ else
61
+ echo "piper"
62
+ fi
63
+ }
64
+
65
+ # Get current verbosity
66
+ get_current_verbosity() {
67
+ if [[ -f ".claude/tts-verbosity.txt" ]]; then
68
+ cat ".claude/tts-verbosity.txt"
69
+ elif [[ -f "$HOME/.claude/tts-verbosity.txt" ]]; then
70
+ cat "$HOME/.claude/tts-verbosity.txt"
71
+ else
72
+ echo "high"
73
+ fi
74
+ }
75
+
76
+ # Check if muted
77
+ is_muted() {
78
+ if [[ -f "$HOME/.agentvibes-muted" ]] || [[ -f ".claude/agentvibes-muted" ]]; then
79
+ return 0 # True - is muted
80
+ else
81
+ return 1 # False - not muted
82
+ fi
83
+ }
84
+
85
+ # Run diagnostics (returns 0 if all good, 1 if issues)
86
+ run_diagnostics() {
87
+ local issues=0
88
+
89
+ # Check session-start hook
90
+ if [[ ! -f "$SESSION_START_HOOK" ]]; then
91
+ echo -e "${RED}✗${NC} Session-start hook missing"
92
+ echo -e "${GRAY} Expected: $SESSION_START_HOOK${NC}"
93
+ ((issues++))
94
+ elif [[ ! -x "$SESSION_START_HOOK" ]]; then
95
+ echo -e "${YELLOW}⚠${NC} Session-start hook not executable"
96
+ echo -e "${GRAY} Run: chmod +x $SESSION_START_HOOK${NC}"
97
+ ((issues++))
98
+ fi
99
+
100
+ # Check play-tts script
101
+ if [[ ! -f "$PLAY_TTS_SCRIPT" ]]; then
102
+ echo -e "${RED}✗${NC} TTS playback script missing"
103
+ echo -e "${GRAY} Expected: $PLAY_TTS_SCRIPT${NC}"
104
+ ((issues++))
105
+ fi
106
+
107
+ # Check if lite mode needs post-tool-use hook
108
+ local current_mode=$(get_current_mode)
109
+ if [[ "$current_mode" == "lite" ]] && [[ ! -f "$POST_TOOL_USE_HOOK" ]]; then
110
+ echo -e "${YELLOW}⚠${NC} Lite mode requires post-tool-use hook"
111
+ echo -e "${GRAY} Run: /agent-vibes:mode lite to reinstall${NC}"
112
+ ((issues++))
113
+ fi
114
+
115
+ return $issues
116
+ }
117
+
118
+ # Main help display
119
+ main() {
120
+ echo ""
121
+ echo "═══════════════════════════════════════════"
122
+ echo " AgentVibes Help & Status"
123
+ echo "═══════════════════════════════════════════"
124
+ echo ""
125
+
126
+ # Run diagnostics silently and capture status
127
+ local diagnostic_output
128
+ diagnostic_output=$(run_diagnostics 2>&1)
129
+ local diagnostic_status=$?
130
+
131
+ # Show status indicator
132
+ if is_muted; then
133
+ echo -e "🔇 ${YELLOW}TTS is currently MUTED${NC}"
134
+ echo ""
135
+ elif [[ $diagnostic_status -eq 0 ]]; then
136
+ echo -e "🟢 ${GREEN}TTS is working normally!${NC}"
137
+ echo ""
138
+ else
139
+ echo -e "⚠️ ${YELLOW}TTS may not be working properly${NC}"
140
+ echo ""
141
+ echo "Issues Found:"
142
+ echo "$diagnostic_output"
143
+ echo ""
144
+ fi
145
+
146
+ # Show current settings
147
+ local current_mode=$(get_current_mode)
148
+ local current_voice=$(get_current_voice)
149
+ local current_provider=$(get_current_provider)
150
+ local current_verbosity=$(get_current_verbosity)
151
+
152
+ echo "Current Settings:"
153
+ if [[ "$current_mode" == "lite" ]]; then
154
+ echo -e " ${BLUE}Mode:${NC} Lite Mode (minimal overhead)"
155
+ else
156
+ echo -e " ${BLUE}Mode:${NC} Full Mode (all features)"
157
+ fi
158
+ echo -e " ${BLUE}Voice:${NC} $current_voice"
159
+ echo -e " ${BLUE}Provider:${NC} $current_provider"
160
+ echo -e " ${BLUE}Verbosity:${NC} $current_verbosity"
161
+ echo ""
162
+
163
+ # Show available commands
164
+ echo "Available Commands:"
165
+ echo -e " ${GREEN}/agent-vibes:mode lite${NC} - Switch to minimal overhead mode"
166
+ echo -e " ${GREEN}/agent-vibes:mode full${NC} - Switch to full features mode"
167
+ echo -e " ${GREEN}/agent-vibes:mute${NC} - Temporarily silence TTS"
168
+ echo -e " ${GREEN}/agent-vibes:unmute${NC} - Re-enable TTS"
169
+ echo -e " ${GREEN}/agent-vibes:voices:list${NC} - See available voices"
170
+ echo ""
171
+
172
+ # Show suggested fixes if issues found
173
+ if [[ $diagnostic_status -ne 0 ]]; then
174
+ echo "Suggested Fixes:"
175
+ echo -e " ${YELLOW}1.${NC} Try reinstalling: ${GREEN}npx agentvibes install${NC}"
176
+ echo -e " ${YELLOW}2.${NC} Restore from backup: ${GREEN}/agent-vibes:mode restore${NC}"
177
+ echo -e " ${YELLOW}3.${NC} Report issue: ${BLUE}https://github.com/paulpreibisch/AgentVibes/issues${NC}"
178
+ echo ""
179
+ fi
180
+
181
+ # Show help resources
182
+ echo "Need Help?"
183
+ echo -e " ${BLUE}•${NC} Documentation: ${BLUE}https://agentvibes.org${NC}"
184
+ echo -e " ${BLUE}•${NC} GitHub Issues: ${BLUE}https://github.com/paulpreibisch/AgentVibes/issues${NC}"
185
+ echo -e " ${BLUE}•${NC} Lite Mode Guide: ${BLUE}.agentvibes/LITE-MODE.md${NC}"
186
+ echo ""
187
+ echo "═══════════════════════════════════════════"
188
+ echo ""
189
+ }
190
+
191
+ main "$@"