@mohak34/opencode-notifier 0.1.7 → 0.1.8

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 +3 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3976,6 +3976,9 @@ var NotifierPlugin = async () => {
3976
3976
  if (event.type === "permission.updated") {
3977
3977
  await handleEvent(config, "permission");
3978
3978
  }
3979
+ if (event.type === "permission.asked") {
3980
+ await handleEvent(config, "permission");
3981
+ }
3979
3982
  if (event.type === "session.idle") {
3980
3983
  await handleEvent(config, "complete");
3981
3984
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohak34/opencode-notifier",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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",
@@ -35,7 +35,7 @@
35
35
  "node-notifier": "^10.0.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@opencode-ai/plugin": "^1.0.0",
38
+ "@opencode-ai/plugin": "^1.0.224",
39
39
  "@types/node": "^22.0.0",
40
40
  "@types/node-notifier": "^8.0.5",
41
41
  "typescript": "^5.0.0"