@@ -56,22 +56,7 @@ You: "Nice, let's keep going!" |
56 | 56 |
|
57 | 57 | #### OpenCode |
58 | 58 |
|
59 | | -**Option 1: Local Plugin (Recommended for Haptic)** |
60 | | - |
61 | | -Download the plugin file and native binary: |
62 | | - |
63 | | -```bash |
64 | | -mkdir -p ~/.config/opencode/plugins ~/.config/opencode/native |
65 | | -curl -o ~/.config/opencode/plugins/louder.js \ |
66 | | - https://raw.githubusercontent.com/feelsodev/louder/main/opencode-plugin/louder.js |
67 | | -curl -L -o ~/.config/opencode/native/HapticEngine \ |
68 | | - https://github.com/feelsodev/louder/releases/latest/download/HapticEngine |
69 | | -chmod +x ~/.config/opencode/native/HapticEngine |
70 | | -``` |
71 | | - |
72 | | -Then restart OpenCode. |
73 | | - |
74 | | -**Option 2: npm Package** |
| 59 | +**Option 1: npm Package (Recommended)** |
75 | 60 |
|
76 | 61 | Add to your `opencode.json`: |
77 | 62 |
|
@@ -81,7 +66,19 @@ Add to your `opencode.json`: |
81 | 66 | } |
82 | 67 | ``` |
83 | 68 |
|
84 | | -> **Note:** Haptic feedback requires the local plugin or npm version 0.1.9+ with native binary rebuild. |
| 69 | +**Option 2: Local Plugin** |
| 70 | + |
| 71 | +Download the plugin file: |
| 72 | + |
| 73 | +```bash |
| 74 | +mkdir -p ~/.config/opencode/plugins |
| 75 | +curl -o ~/.config/opencode/plugins/louder.js \ |
| 76 | + https://raw.githubusercontent.com/feelsodev/louder/main/opencode-plugin/louder.js |
| 77 | +``` |
| 78 | + |
| 79 | +Then restart OpenCode. |
| 80 | + |
| 81 | +> **Note:** Haptic feedback requires npm package installation. |
85 | 82 |
|
86 | 83 | ### Done! |
87 | 84 |
|
@@ -110,15 +107,12 @@ Give your AI a task. When it finishes, you'll hear it. 🔊 |
110 | 107 | /plugin install louder@louder |
111 | 108 | ``` |
112 | 109 |
|
113 | | -**OpenCode:** Download local plugin and native binary (recommended for haptic): |
| 110 | +**OpenCode:** Add to `opencode.json`: |
114 | 111 |
|
115 | | -```bash |
116 | | -mkdir -p ~/.config/opencode/plugins ~/.config/opencode/native |
117 | | -curl -o ~/.config/opencode/plugins/louder.js \ |
118 | | - https://raw.githubusercontent.com/feelsodev/louder/main/opencode-plugin/louder.js |
119 | | -curl -L -o ~/.config/opencode/native/HapticEngine \ |
120 | | - https://github.com/feelsodev/louder/releases/latest/download/HapticEngine |
121 | | -chmod +x ~/.config/opencode/native/HapticEngine |
| 112 | +```json |
| 113 | +{ |
| 114 | + "plugin": ["@feelso/louder"] |
| 115 | +} |
122 | 116 | ``` |
123 | 117 |
|
124 | 118 | Then restart OpenCode. |
@@ -201,7 +195,7 @@ Create `.louderrc.json` in project root or `~/.louderrc.json` for global config. |
201 | 195 | |--------|------|---------|-------------| |
202 | 196 | | `sound` | boolean \| string | true | Sound type or `false` to disable | |
203 | 197 | | `soundPath` | string | - | Custom sound file path (.aiff) | |
204 | | -| `haptic` | boolean \| string \| object | false | `true`, `"success"`, `"error"`, or `{ type, intensity }` | |
| 198 | +| `haptic` | boolean \| string | false | `true`, `"success"`, or `"error"` | |
205 | 199 | | `delay` | number | 1500 | Delay in ms before feedback | |
206 | 200 | | `events` | object | - | Per-event overrides | |
207 | 201 |
|
@@ -220,30 +214,10 @@ Create `.louderrc.json` in project root or `~/.louderrc.json` for global config. |
220 | 214 |
|
221 | 215 | ### Haptic Types |
222 | 216 |
|
223 | | -| Type | Pattern | Default Intensity | Use For | |
224 | | -|------|---------|-------------------|---------| |
225 | | -| `success` | Strong tap | 2.0 (max) | Task complete | |
226 | | -| `error` | Strong tap | 1.5 | Errors | |
227 | | - |
228 | | -### Haptic Intensity |
229 | | - |
230 | | -Control haptic feedback strength with `intensity` (0.0 - 2.0): |
231 | | - |
232 | | -```json |
233 | | -{ |
234 | | - "haptic": { |
235 | | - "type": "success", |
236 | | - "intensity": 1.5 |
237 | | - } |
238 | | -} |
239 | | -``` |
240 | | - |
241 | | -| Intensity | Feel | |
242 | | -|-----------|------| |
243 | | -| 0.0 - 0.5 | Very subtle | |
244 | | -| 0.5 - 1.0 | Normal | |
245 | | -| 1.0 - 1.5 | Strong | |
246 | | -| 1.5 - 2.0 | Maximum | |
| 217 | +| Type | Pattern | Use For | |
| 218 | +|------|---------|---------| |
| 219 | +| `success` | Triple tap (strong) | Task complete | |
| 220 | +| `error` | Triple tap (medium) | Errors | |
247 | 221 |
|
248 | 222 | ### Config Formats |
249 | 223 |
|
@@ -265,17 +239,7 @@ Also supports: `.louderrc.yaml`, `.louderrc.js`, `louder.config.js`, `package.js |
265 | 239 |
|
266 | 240 | **Full Feedback** - Sound + Haptic: |
267 | 241 | ```json |
268 | | -{ "sound": "success", "haptic": "success" } |
269 | | -``` |
270 | | - |
271 | | -**Strong Haptic** - Maximum intensity: |
272 | | -```json |
273 | | -{ "haptic": { "type": "success", "intensity": 2.0 } } |
274 | | -``` |
275 | | - |
276 | | -**Subtle Haptic** - Gentle feedback: |
277 | | -```json |
278 | | -{ "haptic": { "type": "success", "intensity": 0.3 } } |
| 242 | +{ "sound": "success", "haptic": true } |
279 | 243 | ``` |
280 | 244 |
|
281 | 245 | **Custom Sound** - Use your own sound file: |
|