opencode-plugin-apprise 1.2.7 → 1.2.9
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.
|
@@ -120,6 +120,11 @@ ${context.options.map((option, index) => ` ${index + 1}. ${option}`).join(`
|
|
|
120
120
|
default:
|
|
121
121
|
body = "";
|
|
122
122
|
}
|
|
123
|
+
if (body) {
|
|
124
|
+
body = `────────────────────
|
|
125
|
+
|
|
126
|
+
${body}`;
|
|
127
|
+
}
|
|
123
128
|
return { title, body, notificationType };
|
|
124
129
|
}
|
|
125
130
|
|
|
@@ -281,7 +286,7 @@ function createIdleHook(ctx, config, dedup, delayMs = 30000) {
|
|
|
281
286
|
todoStatus = formatTodoStatus(todosResponse.data);
|
|
282
287
|
}
|
|
283
288
|
} catch {}
|
|
284
|
-
const payload = createPayload("idle", "
|
|
289
|
+
const payload = createPayload("idle", "OpenCode Attention Required", {
|
|
285
290
|
sessionTitle,
|
|
286
291
|
userRequest,
|
|
287
292
|
agentResponse,
|
|
@@ -316,7 +321,7 @@ function createPermissionHooks(ctx, config, dedup) {
|
|
|
316
321
|
sessionTitle = sessionInfo.title || undefined;
|
|
317
322
|
} catch {}
|
|
318
323
|
}
|
|
319
|
-
const payload = createPayload("permission", "
|
|
324
|
+
const payload = createPayload("permission", "OpenCode Permission Required", {
|
|
320
325
|
sessionTitle,
|
|
321
326
|
toolName: title,
|
|
322
327
|
action
|
|
@@ -341,7 +346,7 @@ function createPermissionHooks(ctx, config, dedup) {
|
|
|
341
346
|
sessionTitle = sessionInfo.title || undefined;
|
|
342
347
|
} catch {}
|
|
343
348
|
}
|
|
344
|
-
const payload = createPayload("permission", "
|
|
349
|
+
const payload = createPayload("permission", "OpenCode Permission Required", {
|
|
345
350
|
sessionTitle,
|
|
346
351
|
toolName: props.permission ?? "Unknown",
|
|
347
352
|
action: props.patterns?.join(", ") ?? "Unknown"
|
|
@@ -383,7 +388,7 @@ function createQuestionHook(ctx, config, dedup, delayMs = 30000) {
|
|
|
383
388
|
const sessionInfo = sessionResponse.data;
|
|
384
389
|
sessionTitle = sessionInfo.title || undefined;
|
|
385
390
|
} catch {}
|
|
386
|
-
const payload = createPayload("question", "
|
|
391
|
+
const payload = createPayload("question", "OpenCode Question", {
|
|
387
392
|
sessionTitle,
|
|
388
393
|
question,
|
|
389
394
|
options: options.length > 0 ? options : undefined
|
package/package.json
CHANGED