@granular-software/sdk 0.4.76 → 0.4.77

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.
@@ -14109,8 +14109,11 @@ import { ${tools[0]?.name || "example"} } from "@granular/actions/backend";
14109
14109
  this.emit("prompt:answered", { ...prompt, status: "answered" });
14110
14110
  return;
14111
14111
  }
14112
+ const previous = this.promptCache.get(prompt.id);
14112
14113
  this.promptCache.set(prompt.id, prompt);
14113
- this.emit("prompt", prompt);
14114
+ if (!previous || promptSnapshotFingerprint(previous) !== promptSnapshotFingerprint(prompt)) {
14115
+ this.emit("prompt", prompt);
14116
+ }
14114
14117
  };
14115
14118
  this.client.on("prompt", emitPrompt);
14116
14119
  this.client.on("prompt.request", emitPrompt);