feat(platform): attachment span guildCount for Phase 583 (v0.8.546)

Extend attachment.stage, attachment.read, and attachment.unlink span ends
with guildCount; attachment.read also adds activeChannelId on end.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 16:06:09 -04:00
co-authored by Cursor
parent 1c245c1225
commit c115627af0
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -229,9 +229,9 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.521 (Phase 558):** Voice spans extend — `voice.join`/`voice.leave`/`voice.mute` `activeChannelId`. UI `#voice-panel-live`, `syncVoiceOccupancyLivePanelDuringGuildLoading`. Bundle: `npm run test:phase558-voice`. See [VOICE.md](../../docs/VOICE.md).
**v0.8.545 (Phase 582):** Embed spans extend — `embed.resolve`/`embed.gossip`/`embed.clear` end adds `guildCount`. UI `#embed-hub-panel-live`, `syncEmbedHubLivePanelDuringGuildLoading`; tightened **embed-errors** bleed exclusions. Bundle: `npm run test:phase582-embeds`. See [EMBEDS.md](../../docs/EMBEDS.md).
**v0.8.546 (Phase 583):** Attachment spans extend — `attachment.stage`/`attachment.read`/`attachment.unlink` end adds `guildCount`. UI `#attachment-hub-panel-live`, `syncAttachmentHubLivePanelDuringGuildLoading`; tightened **attachment-errors** bleed exclusions. Bundle: `npm run test:phase583-attachments`. See [ATTACHMENTS.md](../../docs/ATTACHMENTS.md).
**v0.8.520 (Phase 557):** Embed spans extend — `embed.resolve`/`embed.gossip` `messageId`/`activeChannelId`; `embed.clear` on delete via `clearForMessageContent`. UI split embed panels; `#embed-panel-live`. Bundle: `npm run test:phase557-embeds`. See [EMBEDS.md](../../docs/EMBEDS.md).
**v0.8.545 (Phase 582):** Embed spans extend — `embed.resolve`/`embed.gossip`/`embed.clear` end adds `guildCount`. UI `#embed-hub-panel-live`, `syncEmbedHubLivePanelDuringGuildLoading`; tightened **embed-errors** bleed exclusions. Bundle: `npm run test:phase582-embeds`. See [EMBEDS.md](../../docs/EMBEDS.md).
**v0.8.519 (Phase 556):** Attachment spans extend — `attachment.stage` `stagedCount`/`remainingStagingCapacity`; `attachment.read` `activeChannelId`; `attachment.unlink` on delete. UI split attachment panels; `#attachment-panel-live`. Bundle: `npm run test:phase556-attachments`. See [ATTACHMENTS.md](../../docs/ATTACHMENTS.md).
+4
View File
@@ -5341,6 +5341,7 @@ class PearcordPlatform extends EventEmitter {
size: row?.size,
guildId,
channelId,
guildCount: (this.guilds || []).length,
mimeType: rowMime,
byteLength,
filenameLen: String(filename || '').length,
@@ -8622,6 +8623,8 @@ class PearcordPlatform extends EventEmitter {
fetchSource: source,
guildId,
channelId,
guildCount: (this.guilds || []).length,
activeChannelId: this.activeChannelId,
byteLength: buf?.length ?? 0,
filename: row?.filename || null,
mimeType: row?.mimeType || null,
@@ -13161,6 +13164,7 @@ class PearcordPlatform extends EventEmitter {
messageId,
guildId,
channelId,
guildCount: (this.guilds || []).length,
unlinkedCount: unlinkedAttachmentCount,
activeChannelId: this.activeChannelId
})