@mohak34/opencode-notifier 0.1.0 → 0.1.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 (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3731,11 +3731,11 @@ import { readFileSync, existsSync } from "fs";
3731
3731
  import { join } from "path";
3732
3732
  import { homedir } from "os";
3733
3733
  var DEFAULT_EVENT_CONFIG = {
3734
- sound: true,
3734
+ sound: false,
3735
3735
  notification: true
3736
3736
  };
3737
3737
  var DEFAULT_CONFIG = {
3738
- sound: true,
3738
+ sound: false,
3739
3739
  notification: true,
3740
3740
  timeout: 5,
3741
3741
  events: {
@@ -3791,9 +3791,9 @@ function loadConfig() {
3791
3791
  notification: globalNotification,
3792
3792
  timeout: typeof userConfig.timeout === "number" && userConfig.timeout > 0 ? userConfig.timeout : DEFAULT_CONFIG.timeout,
3793
3793
  events: {
3794
- permission: parseEventConfig(userConfig.events?.permission, defaultWithGlobal),
3795
- complete: parseEventConfig(userConfig.events?.complete, defaultWithGlobal),
3796
- error: parseEventConfig(userConfig.events?.error, defaultWithGlobal)
3794
+ permission: parseEventConfig(userConfig.events?.permission ?? userConfig.permission, defaultWithGlobal),
3795
+ complete: parseEventConfig(userConfig.events?.complete ?? userConfig.complete, defaultWithGlobal),
3796
+ error: parseEventConfig(userConfig.events?.error ?? userConfig.error, defaultWithGlobal)
3797
3797
  },
3798
3798
  messages: {
3799
3799
  permission: userConfig.messages?.permission ?? DEFAULT_CONFIG.messages.permission,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohak34/opencode-notifier",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenCode plugin that sends system notifications and plays sounds when permission is needed, generation completes, or errors occur",
5
5
  "author": "mohak34",
6
6
  "license": "MIT",