From c115627af0a7c39038ba1719c74faf9280a9cabd Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 24 May 2026 16:06:09 -0400 Subject: [PATCH] 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 --- README.md | 4 ++-- index.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 408731b..edbb7c8 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/index.js b/index.js index 95fcf9e..95478dc 100644 --- a/index.js +++ b/index.js @@ -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 })