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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sa-assistant",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "description": "OpenCode plugin for AWS Solutions Architect assistant with multi-agent Guru system",
@@ -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
- if (detectWaddKeyword(input.message.content)) {
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