feat(platform): Phase 489 slash span metadata (v0.8.452)

Add customCount, deleted, replyLen, and commandFound on slash spans.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 06:40:38 -04:00
co-authored by Cursor
parent cf92320942
commit 921965f833
2 changed files with 8 additions and 3 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.452 (Phase 489):** `slash.register` `customCount`; `slash.delete` `deleted`; `slash.invoke` `replyLen`/`commandFound`. UI slash compositor + hints. Bundle: `npm run test:phase489-slash`. See [SLASH_COMMANDS.md](../../docs/SLASH_COMMANDS.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).
+6 -3
View File
@@ -8020,7 +8020,8 @@ class PearcordPlatform extends EventEmitter {
span.end({
registered: rows.length,
guildId,
firstName: rows[0]?.name || null
firstName: rows[0]?.name || null,
customCount: rows.filter((r) => !r.builtin).length
})
return rows
} catch (err) {
@@ -8056,7 +8057,7 @@ class PearcordPlatform extends EventEmitter {
meta: { name: removed.name }
})
this.emit('slash-command')
span.end({ name: removed.name, guildId })
span.end({ name: removed.name, guildId, deleted: !!removed })
return removed
} catch (err) {
this.log.error('slash.delete error', {
@@ -10304,7 +10305,9 @@ class PearcordPlatform extends EventEmitter {
channelId,
argCount: inv.args.length,
ephemeral: !!opts.ephemeral,
builtin: !!result.command?.builtin
builtin: !!result.command?.builtin,
replyLen: reply.length,
commandFound: !!result.command
})
return msg
} catch (err) {