opencode-plugin-apprise 1.2.4 → 1.2.6

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.
@@ -51,6 +51,11 @@ function createDedupChecker() {
51
51
  }
52
52
 
53
53
  // src/formatter.ts
54
+ var SEPARATOR = `
55
+
56
+ ────────────────────
57
+
58
+ `;
54
59
  var TYPE_MAP = {
55
60
  idle: "info",
56
61
  question: "warning",
@@ -77,43 +82,37 @@ function formatNotification(payload) {
77
82
  case "idle": {
78
83
  const parts = [];
79
84
  if (context.sessionTitle)
80
- parts.push(`\uD83D\uDCCC **Title:** ${context.sessionTitle}`);
85
+ parts.push(`\uD83D\uDCCC TITLE: ${context.sessionTitle}`);
81
86
  if (context.userRequest)
82
- parts.push(`\uD83D\uDCDD **Request:** ${context.userRequest}`);
87
+ parts.push(`\uD83D\uDCDD REQUEST: ${context.userRequest}`);
83
88
  if (context.agentResponse)
84
- parts.push(`\uD83E\uDD16 **Response:** ${context.agentResponse}`);
89
+ parts.push(`\uD83E\uDD16 RESPONSE: ${context.agentResponse}`);
85
90
  if (context.todoStatus)
86
- parts.push(`\uD83D\uDCCB **Todo:** ${context.todoStatus}`);
87
- body = parts.join(`
88
-
89
- `);
91
+ parts.push(`\uD83D\uDCCB TODO: ${context.todoStatus}`);
92
+ body = parts.join(SEPARATOR);
90
93
  break;
91
94
  }
92
95
  case "question": {
93
96
  const parts = [];
94
97
  if (context.sessionTitle)
95
- parts.push(`\uD83D\uDCCC **Title:** ${context.sessionTitle}`);
98
+ parts.push(`\uD83D\uDCCC TITLE: ${context.sessionTitle}`);
96
99
  if (context.question)
97
- parts.push(`❓ **Question:** ${context.question}`);
100
+ parts.push(`❓ QUESTION: ${context.question}`);
98
101
  if (context.options && context.options.length > 0) {
99
- parts.push(`**Options:**
102
+ parts.push(`OPTIONS:
100
103
  ${context.options.map((option, index) => ` ${index + 1}. ${option}`).join(`
101
104
  `)}`);
102
105
  }
103
- body = parts.join(`
104
-
105
- `);
106
+ body = parts.join(SEPARATOR);
106
107
  break;
107
108
  }
108
109
  case "permission": {
109
110
  const parts = [];
110
111
  if (context.toolName)
111
- parts.push(`\uD83D\uDD27 **Tool:** ${context.toolName}`);
112
+ parts.push(`\uD83D\uDD27 TOOL: ${context.toolName}`);
112
113
  if (context.action)
113
- parts.push(`⚡ **Action:** ${context.action}`);
114
- body = parts.join(`
115
-
116
- `);
114
+ parts.push(`⚡ ACTION: ${context.action}`);
115
+ body = parts.join(SEPARATOR);
117
116
  break;
118
117
  }
119
118
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-plugin-apprise",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "OpenCode plugin that sends rich notifications via Apprise CLI when the agent needs your attention",
5
5
  "type": "module",
6
6
  "main": "dist/opencode-plugin-apprise.js",