clew-code 0.3.2 → 0.3.4

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 (49) hide show
  1. package/README.md +196 -114
  2. package/dist/generated/version.json +1 -1
  3. package/dist/main.js +2963 -3272
  4. package/package.json +5 -5
  5. package/scripts/bun-run.mjs +33 -0
  6. package/scripts/postbuild-inject-macro.mjs +36 -0
  7. package/docs/.nojekyll +0 -0
  8. package/docs/_config.yml +0 -3
  9. package/docs/architecture.html +0 -90
  10. package/docs/assets/clew-agent-loop.png +0 -0
  11. package/docs/assets/clew-general-architecture.png +0 -0
  12. package/docs/assets/clew-mcp-architecture.png +0 -0
  13. package/docs/assets/clew-p2p-swarm.png +0 -0
  14. package/docs/assets/clew.svg +0 -33
  15. package/docs/changelog.html +0 -141
  16. package/docs/cli-reference.html +0 -89
  17. package/docs/commands.html +0 -161
  18. package/docs/configuration.html +0 -85
  19. package/docs/contributing.html +0 -91
  20. package/docs/css/styles.css +0 -545
  21. package/docs/daemon.html +0 -62
  22. package/docs/features/bridge-mode.html +0 -62
  23. package/docs/features/evals.html +0 -58
  24. package/docs/features/searxng-search.html +0 -59
  25. package/docs/features/sentry-setup.html +0 -62
  26. package/docs/generated/providers.html +0 -625
  27. package/docs/generated/tools.html +0 -559
  28. package/docs/index.html +0 -182
  29. package/docs/installation.html +0 -77
  30. package/docs/internals/claude-ai-backend-dependencies.md +0 -278
  31. package/docs/internals/growthbook-ab-testing.html +0 -70
  32. package/docs/internals/hidden-features.html +0 -82
  33. package/docs/internals/long-term-memory-design.md +0 -173
  34. package/docs/js/main.js +0 -438
  35. package/docs/loop.html +0 -69
  36. package/docs/mcp.html +0 -99
  37. package/docs/models.html +0 -81
  38. package/docs/permission-model.html +0 -86
  39. package/docs/personal-profile.html +0 -113
  40. package/docs/plugins.html +0 -84
  41. package/docs/providers.html +0 -625
  42. package/docs/quick-start.html +0 -81
  43. package/docs/research-memory.html +0 -71
  44. package/docs/security.html +0 -71
  45. package/docs/skills.html +0 -67
  46. package/docs/swarm.html +0 -78
  47. package/docs/tools.html +0 -559
  48. package/docs/troubleshooting.html +0 -86
  49. 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>