feat(platform): Phase 488 webhook span metadata (v0.8.451)

Add channelType, hasAvatar on create and messageSent on execute.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 06:35:56 -04:00
co-authored by Cursor
parent bbc357397c
commit cf92320942
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -39,6 +39,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.430 (Phase 467):** `voice.leave` span `end` includes `leavingIsStage`; `screen.start` span `end` includes `label`. Bundle: `npm run test:phase467-voice-stage`. See [VOICE.md](../../docs/VOICE.md), [STAGE_CHANNELS.md](../../docs/STAGE_CHANNELS.md).
**v0.8.451 (Phase 488):** `webhook.create` `channelType`/`hasAvatar`; `webhook.execute` `messageSent`. UI webhook compositor split + hints. Bundle: `npm run test:phase488-webhooks`. See [WEBHOOKS.md](../../docs/WEBHOOKS.md).
**v0.8.450 (Phase 487):** `audit.append` `hasTarget`/`hasDetail`; `audit.export` `archived`; `compliance.snapshot` `signed`/`format`. UI compliance compositor. Bundle: `npm run test:phase487-compliance`. See [COMPLIANCE.md](../../docs/COMPLIANCE.md).
**v0.8.449 (Phase 486):** `ban.member`/`kick.member` `reasonLen`/`removedMember`; `timeout.member` `durationMs`; `automod.evaluate` `blocked`. UI moderation compositor split + hints. Bundle: `npm run test:phase486-moderation`. See [MODERATION.md](../../docs/MODERATION.md).
+5 -2
View File
@@ -10125,7 +10125,9 @@ class PearcordPlatform extends EventEmitter {
webhookId: webhook.id,
guildId,
channelId,
webhookName: String(name || '').slice(0, 32)
webhookName: String(name || '').slice(0, 32),
channelType: ch.type,
hasAvatar: !!avatarUrl
})
return { webhook, token }
} catch (err) {
@@ -10214,7 +10216,8 @@ class PearcordPlatform extends EventEmitter {
guildId,
channelId: row.channelId,
contentLength: String(content ?? '').length,
hasUsername: !!username
hasUsername: !!username,
messageSent: !!msg?.id
})
return msg
} catch (err) {