@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.
@@ -14135,8 +14135,11 @@ import { ${tools[0]?.name || "example"} } from "@granular/actions/backend";
14135
14135
  this.emit("prompt:answered", { ...prompt, status: "answered" });
14136
14136
  return;
14137
14137
  }
14138
+ const previous = this.promptCache.get(prompt.id);
14138
14139
  this.promptCache.set(prompt.id, prompt);
14139
- this.emit("prompt", prompt);
14140
+ if (!previous || promptSnapshotFingerprint(previous) !== promptSnapshotFingerprint(prompt)) {
14141
+ this.emit("prompt", prompt);
14142
+ }
14140
14143
  };
14141
14144
  this.client.on("prompt", emitPrompt);
14142
14145
  this.client.on("prompt.request", emitPrompt);