bacluc-opencode-completion-check-command 0.0.1 → 0.2.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 CHANGED
@@ -19,7 +19,7 @@ An [opencode](https://opencode.ai) plugin that automatically verifies task compl
19
19
  <command stderr output>
20
20
  ```
21
21
 
22
- 5. This retry loop continues up to a configurable maximum number of retries (default: 3). Once the limit is reached, the plugin stops re-prompting to prevent burning tokens indefinitely.
22
+ 5. This retry loop continues up to a configurable maximum number of retries (default: 10). Once the limit is reached, the plugin stops re-prompting to prevent burning tokens indefinitely.
23
23
 
24
24
  ## Usage
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bacluc-opencode-completion-check-command",
3
- "version": "0.0.1",
3
+ "version": "v0.2.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "opencode",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/bun": "1.3.14",
43
- "prettier": "3.6.2",
44
- "typescript": "5.9.3",
43
+ "prettier": "3.8.3",
44
+ "typescript": "6.0.3",
45
45
  "vitest": "4.1.7"
46
46
  }
47
47
  }
@@ -137,10 +137,36 @@ export const CompletionCheckCommandPlugin: Plugin = async (input, options) => {
137
137
 
138
138
  const command = parseCodeBlock(input.arguments)
139
139
  if (!command) {
140
+ try {
141
+ await client.tui.showToast({
142
+ body: {
143
+ title: 'Completion Check',
144
+ message:
145
+ "I couldn't find a code block in your message. Please include a markdown code block with the shell command to run. For example:\n\n```bash\n./check.sh\n```",
146
+ variant: 'warning',
147
+ duration: 10000,
148
+ },
149
+ })
150
+ } catch {
151
+ // Ignore feedback errors
152
+ }
140
153
  return
141
154
  }
142
155
 
143
156
  store.set(input.sessionID, command)
157
+
158
+ try {
159
+ await client.tui.showToast({
160
+ body: {
161
+ title: 'Completion Check',
162
+ message: `Registered! When the agent finishes, this command will be run to verify completion:\n\n\`\`\`bash\n${command}\n\`\`\``,
163
+ variant: 'success',
164
+ duration: 10000,
165
+ },
166
+ })
167
+ } catch {
168
+ // Ignore feedback errors
169
+ }
144
170
  },
145
171
 
146
172
  event: async ({ event }) => {