@hazem3500/palette 0.9.129 → 0.9.131

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.
@@ -18,6 +18,10 @@ export type WebhookEvent = {
18
18
  pageUrl: string;
19
19
  selector: string;
20
20
  author: string;
21
+ /** Stable identity for consumers to reject their own bot replies. */
22
+ authorId?: string;
23
+ /** The comment that emitted this event, not the thread's first comment. */
24
+ commentId?: string;
21
25
  body: string | null;
22
26
  snapshotStatus?: "pending" | "skipped";
23
27
  /** Present and false when the reviewer chose to keep this comment in Palette. */
@@ -221,7 +225,7 @@ export function enqueueWebhook(
221
225
  .bind(
222
226
  event.id,
223
227
  project,
224
- JSON.stringify(event),
228
+ JSON.stringify({ ...event, commentId }),
225
229
  Date.now(),
226
230
  commentId,
227
231
  project,