opencode-sa-assistant 0.2.0 → 0.2.1
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 +1 -1
- package/src/hooks/wadd-mode.ts +4 -1
package/package.json
CHANGED
package/src/hooks/wadd-mode.ts
CHANGED
|
@@ -41,7 +41,10 @@ export function activateSAMode(message: any): void {
|
|
|
41
41
|
* Intercepts user messages to detect WADD keyword and activate SA mode
|
|
42
42
|
*/
|
|
43
43
|
export const chatMessageHook = async (input: any, output: any) => {
|
|
44
|
-
|
|
44
|
+
const content = input?.message?.content;
|
|
45
|
+
if (!content) return;
|
|
46
|
+
|
|
47
|
+
if (detectWaddKeyword(content)) {
|
|
45
48
|
activateSAMode(output.message);
|
|
46
49
|
|
|
47
50
|
// Show toast notification if API available
|