@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.js
CHANGED
|
@@ -18109,6 +18109,9 @@ async function handleResolveAction(h, args) {
|
|
|
18109
18109
|
if (buttonIndex < 0 && (action === "always" || /always/i.test(button))) {
|
|
18110
18110
|
buttonIndex = buttons.findIndex((b) => /always/i.test(b));
|
|
18111
18111
|
}
|
|
18112
|
+
if (buttonIndex < 0 && (action === "approve" || action === "accept")) {
|
|
18113
|
+
buttonIndex = pickApprovalButton(buttons, provider).index;
|
|
18114
|
+
}
|
|
18112
18115
|
if (buttonIndex < 0) {
|
|
18113
18116
|
return { success: false, error: "Approval action did not match any visible button" };
|
|
18114
18117
|
}
|