clew-code 0.3.2 → 0.3.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 (47) hide show
  1. package/README.md +181 -113
  2. package/dist/generated/version.json +1 -1
  3. package/dist/main.js +2948 -3258
  4. package/package.json +1 -1
  5. package/docs/.nojekyll +0 -0
  6. package/docs/_config.yml +0 -3
  7. package/docs/architecture.html +0 -90
  8. package/docs/assets/clew-agent-loop.png +0 -0
  9. package/docs/assets/clew-general-architecture.png +0 -0
  10. package/docs/assets/clew-mcp-architecture.png +0 -0
  11. package/docs/assets/clew-p2p-swarm.png +0 -0
  12. package/docs/assets/clew.svg +0 -33
  13. package/docs/changelog.html +0 -141
  14. package/docs/cli-reference.html +0 -89
  15. package/docs/commands.html +0 -161
  16. package/docs/configuration.html +0 -85
  17. package/docs/contributing.html +0 -91
  18. package/docs/css/styles.css +0 -545
  19. package/docs/daemon.html +0 -62
  20. package/docs/features/bridge-mode.html +0 -62
  21. package/docs/features/evals.html +0 -58
  22. package/docs/features/searxng-search.html +0 -59
  23. package/docs/features/sentry-setup.html +0 -62
  24. package/docs/generated/providers.html +0 -625
  25. package/docs/generated/tools.html +0 -559
  26. package/docs/index.html +0 -182
  27. package/docs/installation.html +0 -77
  28. package/docs/internals/claude-ai-backend-dependencies.md +0 -278
  29. package/docs/internals/growthbook-ab-testing.html +0 -70
  30. package/docs/internals/hidden-features.html +0 -82
  31. package/docs/internals/long-term-memory-design.md +0 -173
  32. package/docs/js/main.js +0 -438
  33. package/docs/loop.html +0 -69
  34. package/docs/mcp.html +0 -99
  35. package/docs/models.html +0 -81
  36. package/docs/permission-model.html +0 -86
  37. package/docs/personal-profile.html +0 -113
  38. package/docs/plugins.html +0 -84
  39. package/docs/providers.html +0 -625
  40. package/docs/quick-start.html +0 -81
  41. package/docs/research-memory.html +0 -71
  42. package/docs/security.html +0 -71
  43. package/docs/skills.html +0 -67
  44. package/docs/swarm.html +0 -78
  45. package/docs/tools.html +0 -559
  46. package/docs/troubleshooting.html +0 -86
  47. package/docs/voice-mode.html +0 -79
@@ -1,79 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Voice Mode — Clew Code</title>
7
- <meta name="description" content="Voice input mode using microphone and OpenAI Whisper API.">
8
- <link rel="icon" type="image/svg+xml" href="assets/clew.svg">
9
- <link rel="preconnect" href="https://fonts.googleapis.com">
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="css/styles.css">
12
- </head>
13
- <body>
14
- <header class="header"></header>
15
- <div id="sidebarOverlay" class="sidebar-overlay"></div>
16
- <aside id="sidebar" class="sidebar"></aside>
17
-
18
- <div class="content-wrap">
19
- <div class="content">
20
-
21
- <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span class="current">Voice Mode</span></div>
22
-
23
- <h1>Voice Mode</h1>
24
- <p class="sub">Use your voice to interact with Clew Code via microphone input and OpenAI Whisper transcription.</p>
25
-
26
- <h2 id="overview">Overview</h2>
27
- <p>Voice mode captures audio from your microphone, transcribes it using OpenAI's Whisper API, and feeds the transcribed text to the agent as regular input.</p>
28
-
29
- <h2 id="setup">Setup</h2>
30
- <h3>1. Set OpenAI API Key</h3>
31
- <pre><code class="language-bash">export OPENAI_API_KEY=sk-...
32
- </code></pre>
33
-
34
- <h3>2. Install SoX (required for recording)</h3>
35
- <p><strong>macOS:</strong></p>
36
- <pre><code class="language-bash">brew install sox
37
- </code></pre>
38
- <p><strong>Ubuntu/Debian:</strong></p>
39
- <pre><code class="language-bash">sudo apt-get install sox
40
- </code></pre>
41
- <p><strong>Windows:</strong><br>
42
- Download from <a href="https://sox.sourceforge.net">sox.sourceforge.net</a></p>
43
-
44
- <h2 id="usage">Usage</h2>
45
- <pre><code class="language-bash">❯ /voice # activate voice mode
46
- ❯ /voice status # check voice session status
47
- ❯ /voice off # deactivate voice mode
48
- </code></pre>
49
- <p>Once voice mode is active, press <strong>F2</strong> to start/stop recording.</p>
50
-
51
- <h2 id="how-it-works">How It Works</h2>
52
- <pre><code>User presses F2
53
-
54
- VoiceRecorder.start() → Microphone → PCM audio chunks
55
-
56
- VoiceRecorder.stop() → Buffer.concat → WAV conversion
57
-
58
- VoiceWhisper.transcribe() → OpenAI Whisper API
59
-
60
- Session.handleInput(transcribedText) → Normal command flow
61
- </code></pre>
62
-
63
- <h2 id="files">Key Files</h2>
64
- <table>
65
- <thead>
66
- <tr><th>File</th><th>Purpose</th></tr>
67
- </thead>
68
- <tbody>
69
- <tr><td><code>src/tools/voiceRecorder.ts</code></td><td>Microphone recording via node-record-lpcm16</td></tr>
70
- <tr><td><code>src/tools/voiceWhisper.ts</code></td><td>OpenAI Whisper API for speech-to-text</td></tr>
71
- <tr><td><code>src/tools/voiceTools.ts</code></td><td>Voice session management (start/stop/transcribe)</td></tr>
72
- </tbody>
73
- </table>
74
- </div>
75
- </div>
76
-
77
- <script src="js/main.js"></script>
78
- </body>
79
- </html>