bacluc-opencode-completion-check-command 0.1.0 → 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bacluc-opencode-completion-check-command",
|
|
3
|
-
"version": "v0.
|
|
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.
|
|
44
|
-
"typescript": "
|
|
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 }) => {
|