opencode-probleemwijken 1.2.0 → 1.3.0
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.
- package/README.md +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Maak `~/.config/opencode/probleemwijken.json`:
|
|
|
67
67
|
"complete": { "sound": true, "notification": true },
|
|
68
68
|
"subagent_complete": { "sound": false, "notification": false },
|
|
69
69
|
"error": { "sound": true, "notification": true },
|
|
70
|
-
"permission": { "sound":
|
|
70
|
+
"permission": { "sound": true, "notification": true }
|
|
71
71
|
},
|
|
72
72
|
"messages": {
|
|
73
73
|
"complete": "Sessie voltooid!",
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var DEFAULT_CONFIG = {
|
|
|
14
14
|
complete: { sound: true, notification: true },
|
|
15
15
|
subagent_complete: { sound: false, notification: false },
|
|
16
16
|
error: { sound: true, notification: true },
|
|
17
|
-
permission: { sound:
|
|
17
|
+
permission: { sound: true, notification: true }
|
|
18
18
|
},
|
|
19
19
|
messages: {
|
|
20
20
|
complete: "Sessie voltooid!",
|
|
@@ -354,10 +354,10 @@ var RandomSoundboardPlugin = async ({ client, directory }) => {
|
|
|
354
354
|
const config = loadConfig();
|
|
355
355
|
const projectName = directory ? directory.split("/").pop() ?? null : null;
|
|
356
356
|
return {
|
|
357
|
+
"permission.ask": async (_input, _output) => {
|
|
358
|
+
await handleEvent(config, "permission", projectName);
|
|
359
|
+
},
|
|
357
360
|
event: async ({ event }) => {
|
|
358
|
-
if (event.type === "permission.updated" || event.type === "permission.asked") {
|
|
359
|
-
await handleEvent(config, "permission", projectName);
|
|
360
|
-
}
|
|
361
361
|
if (event.type === "session.idle") {
|
|
362
362
|
const sessionID = getSessionIDFromEvent(event);
|
|
363
363
|
if (sessionID) {
|
package/package.json
CHANGED