@goodnesshq/opencode-notification 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.
- package/.opencode/notify-init.mjs +11 -11
- package/README.md +4 -3
- package/package.json +1 -1
- package/plugins/opencode-notifications.mjs +2 -2
|
@@ -21,10 +21,10 @@ const DEFAULTS = {
|
|
|
21
21
|
enabled: true,
|
|
22
22
|
title: "",
|
|
23
23
|
tier: "focus",
|
|
24
|
-
detailLevel: "
|
|
24
|
+
detailLevel: "title-only",
|
|
25
25
|
responseComplete: {
|
|
26
26
|
enabled: true,
|
|
27
|
-
trigger: "
|
|
27
|
+
trigger: "session.idle",
|
|
28
28
|
},
|
|
29
29
|
channels: {
|
|
30
30
|
mac: {
|
|
@@ -492,18 +492,18 @@ async function main() {
|
|
|
492
492
|
value: "message.part.updated",
|
|
493
493
|
},
|
|
494
494
|
],
|
|
495
|
-
defaultValue: "
|
|
495
|
+
defaultValue: "session.idle",
|
|
496
496
|
})
|
|
497
497
|
: await (async () => {
|
|
498
498
|
console.log(
|
|
499
499
|
"\nResponse-complete trigger:\n 1) session.idle (coarse, low noise)\n 2) message.updated (precise)\n 3) message.part.updated (very precise, more noise)",
|
|
500
500
|
);
|
|
501
|
-
const triggerInput = await rl.question("> [
|
|
502
|
-
return triggerInput.trim() === "
|
|
503
|
-
? "
|
|
501
|
+
const triggerInput = await rl.question("> [1] ");
|
|
502
|
+
return triggerInput.trim() === "2"
|
|
503
|
+
? "message.updated"
|
|
504
504
|
: triggerInput.trim() === "3"
|
|
505
505
|
? "message.part.updated"
|
|
506
|
-
: "
|
|
506
|
+
: "session.idle";
|
|
507
507
|
})();
|
|
508
508
|
|
|
509
509
|
const macEnabled = interactive
|
|
@@ -551,11 +551,11 @@ async function main() {
|
|
|
551
551
|
{ name: "full", value: "full" },
|
|
552
552
|
{ name: "title-only", value: "title-only" },
|
|
553
553
|
],
|
|
554
|
-
defaultValue: "
|
|
554
|
+
defaultValue: "title-only",
|
|
555
555
|
})
|
|
556
|
-
: (await rl.question("Detail level (1=full, 2=title-only) [
|
|
557
|
-
? "
|
|
558
|
-
: "
|
|
556
|
+
: (await rl.question("Detail level (1=full, 2=title-only) [2] ")).trim() === "1"
|
|
557
|
+
? "full"
|
|
558
|
+
: "title-only";
|
|
559
559
|
|
|
560
560
|
const adjustGroups = interactive
|
|
561
561
|
? await promptConfirm("Adjust event groups?", false)
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ The config is defined in `.opencode/oc-notify.schema.json` and supports:
|
|
|
34
34
|
- `title`: override or template (supports `{repo}` and `{branch}`)
|
|
35
35
|
- `tier`: `focus` | `full` | `custom`
|
|
36
36
|
- `detailLevel`: `full` | `title-only`
|
|
37
|
-
- `responseComplete`: trigger for completion notifications
|
|
37
|
+
- `responseComplete`: trigger for completion notifications (default: `session.idle`)
|
|
38
38
|
- `channels`: `mac` and `ntfy` settings
|
|
39
39
|
- `overrides`: include/exclude groups
|
|
40
40
|
- `dedupe`: in-memory TTL settings
|
|
@@ -51,6 +51,7 @@ The config is defined in `.opencode/oc-notify.schema.json` and supports:
|
|
|
51
51
|
{
|
|
52
52
|
"enabled": true,
|
|
53
53
|
"tier": "focus",
|
|
54
|
+
"detailLevel": "title-only",
|
|
54
55
|
"responseComplete": {
|
|
55
56
|
"enabled": true,
|
|
56
57
|
"trigger": "session.idle"
|
|
@@ -67,10 +68,10 @@ The config is defined in `.opencode/oc-notify.schema.json` and supports:
|
|
|
67
68
|
{
|
|
68
69
|
"enabled": true,
|
|
69
70
|
"tier": "full",
|
|
70
|
-
"detailLevel": "
|
|
71
|
+
"detailLevel": "title-only",
|
|
71
72
|
"responseComplete": {
|
|
72
73
|
"enabled": true,
|
|
73
|
-
"trigger": "
|
|
74
|
+
"trigger": "session.idle"
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
```
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@ const DEFAULTS = {
|
|
|
11
11
|
enabled: true,
|
|
12
12
|
title: "",
|
|
13
13
|
tier: "focus",
|
|
14
|
-
detailLevel: "
|
|
14
|
+
detailLevel: "title-only",
|
|
15
15
|
responseComplete: {
|
|
16
16
|
enabled: true,
|
|
17
|
-
trigger: "
|
|
17
|
+
trigger: "session.idle",
|
|
18
18
|
},
|
|
19
19
|
channels: {
|
|
20
20
|
mac: {
|