@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.
- package/dist/chunk-EVRPBA4F.js +1 -0
- package/dist/{frame-size-24FEF7RJ.js → frame-size-EAVSR4SA.js} +1 -1
- package/dist/frame-size.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/node.mjs +78 -26
- package/dist/postgres/010_project_bot_tokens.sql +10 -0
- package/dist/react.js +1 -1
- package/dist/server.js +76 -25
- package/dist/setup.js +1 -1
- package/package.json +2 -1
- package/server/bot-tokens.ts +38 -0
- package/server/index.ts +10 -5
- package/server/migrations/0024_project_bot_tokens.sql +10 -0
- package/server/project-management.ts +17 -0
- package/server/setup-client.txt +30 -30
- package/server/webhooks.ts +5 -1
- package/dist/chunk-3CRPJ6PQ.js +0 -1
package/server/webhooks.ts
CHANGED
|
@@ -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,
|