opencode-plugin-boops 2.4.0 → 2.5.1

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 (3) hide show
  1. package/cli/browse +5 -5
  2. package/index.ts +5 -4
  3. package/package.json +1 -1
package/cli/browse CHANGED
@@ -1240,7 +1240,7 @@ async function browse() {
1240
1240
  let controls;
1241
1241
  if (state.pickerMode) {
1242
1242
  controls = PLUGIN_INSTALLED
1243
- ? ' \x1b[38;5;240m↑/↓ select enter play ctrl+s save d unassign ←/esc close\x1b[0m'
1243
+ ? ' \x1b[38;5;240m↑/↓ select enter play a assign d unassign ←/esc close\x1b[0m'
1244
1244
  : ' \x1b[38;5;240m↑/↓ select event enter play ←/esc close \x1b[38;5;208m(save disabled)\x1b[0m';
1245
1245
  } else {
1246
1246
  controls = ' \x1b[38;5;240m↑/↓ navigate ←/→ tags / search s assign enter play q quit\x1b[0m';
@@ -1891,18 +1891,18 @@ async function browse() {
1891
1891
  }
1892
1892
  }
1893
1893
  return;
1894
- } else if (key === '\u0013') {
1895
- // Ctrl+S - save assignment (stay in picker mode to assign more)
1894
+ } else if (key === 'a') {
1895
+ // 'a' - assign sound to selected event (auto-saves)
1896
1896
  const config = loadCurrentConfig();
1897
1897
  const event = availableEvents[state.pickerSelectedEvent];
1898
1898
 
1899
1899
  if (!config.sounds) config.sounds = {};
1900
1900
  config.sounds[event] = state.pickerSound.name; // Save friendly name, not ID
1901
1901
 
1902
- // Save to config file
1902
+ // Auto-save to config file
1903
1903
  saveConfig(config);
1904
1904
 
1905
- // Stay in picker mode, just show it was saved
1905
+ // Stay in picker mode to assign more
1906
1906
  render();
1907
1907
  return;
1908
1908
  } else if (key === 'd') {
package/index.ts CHANGED
@@ -68,9 +68,9 @@ export const BoopsPlugin: Plugin = async ({ client }) => {
68
68
  const loadConfig = async (): Promise<BoopsConfig> => {
69
69
  let config: BoopsConfig = {
70
70
  sounds: {
71
- "session.idle": "1150-pristine",
72
- "permission.asked": "1217-relax",
73
- "session.error": "1219-magic",
71
+ "session.idle": "pristine",
72
+ "permission.asked": "relax",
73
+ "session.error": "magic",
74
74
  },
75
75
  fallbacks: {
76
76
  default: "/usr/share/sounds/alsa/Front_Center.wav"
@@ -315,7 +315,8 @@ export const BoopsPlugin: Plugin = async ({ client }) => {
315
315
  // Log session.idle events for debugging (helpful for users configuring filters)
316
316
  if (event.type === "session.idle") {
317
317
  await log(`session.idle event received`, {
318
- properties: event
318
+ properties: event,
319
+ configuredSound: config.sounds["session.idle"]
319
320
  })
320
321
  }
321
322
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-plugin-boops",
3
- "version": "2.4.0",
3
+ "version": "2.5.1",
4
4
  "description": "Sound notifications for OpenCode - plays pleasant sounds when tasks complete or input is needed",
5
5
  "main": "index.ts",
6
6
  "type": "module",