@adhdev/daemon-core 0.9.82-rc.106 → 0.9.82-rc.108
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/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -17850,6 +17850,9 @@ async function handleResolveAction(h, args) {
|
|
|
17850
17850
|
if (buttonIndex < 0 && (action === "always" || /always/i.test(button))) {
|
|
17851
17851
|
buttonIndex = buttons.findIndex((b) => /always/i.test(b));
|
|
17852
17852
|
}
|
|
17853
|
+
if (buttonIndex < 0 && (action === "approve" || action === "accept")) {
|
|
17854
|
+
buttonIndex = pickApprovalButton(buttons, provider).index;
|
|
17855
|
+
}
|
|
17853
17856
|
if (buttonIndex < 0) {
|
|
17854
17857
|
return { success: false, error: "Approval action did not match any visible button" };
|
|
17855
17858
|
}
|