refactor: streamline outbound payload handling

This commit is contained in:
Peter Steinberger
2026-01-07 02:30:42 +00:00
parent 3fedd0d1d5
commit 4bf5f37a44
8 changed files with 254 additions and 150 deletions

View File

@@ -114,13 +114,13 @@ export async function sendCommand(
if (opts.json) {
runtime.log(
JSON.stringify(
{
provider: "web",
buildOutboundDeliveryJson({
provider,
via: "gateway",
to: opts.to,
messageId: result.messageId,
result,
mediaUrl: opts.media ?? null,
},
}),
null,
2,
),