v5.8.2
Patch Changes
-
2942e58: Fix
createAdcpServercontext echo for Sponsored Intelligence tools.si_get_offeringandsi_initiate_sessiondefinecontextas a domain-specific string on the request but require the protocol echo object on the response. The response auto-echo now only copiesrequest.contextwhen it is a plain object, so SI responses no longer fail with/context: must be object. -
56bbc59: Follow-up to the skill schema refresh (PR #716) targeting matrix failures that persisted:
DEFAULT_REPORTING_CAPABILITIESover hand-rolled literals — seller, generative-seller, and retail-media skill product examples previously hand-rolledreporting_capabilities: { ... }which drifts every time the spec adds a required field (most recentlydate_range_supportin AdCP latest). Skills now use the SDK-provided constant and flag the drift tax explicitly.create_media_buymust persistcurrency+total_budget— seller skill'screateMediaBuyexample flattens requesttotal_budget: { amount, currency }into top-levelcurrency+total_budgetfields on the persisted buy, so subsequentget_media_buysresponses pass the new required-field schema check. The old example stored onlypackages[].budgetand the required top-level fields weren't reconstructable.update_media_buy.affected_packagesmust bePackage[], notstring[]— seller skill'supdateMediaBuyexample now returns package objects ({ package_id, ... }) instead of bare IDs. Theupdate-media-buy-responseoneOf discriminator rejects string arrays with/affected_packages/0: must be object.
-
7e04fa0: Option B (structural) groundwork — stop treating response shapes as hand-written forever:
generate-agent-docs.tsnow extracts response schemas and emits a_Response (success branch):_block under every tool indocs/TYPE-SUMMARY.md. For tools whose response is aoneOfsuccess/error discriminator (e.g.,update_media_buy), the generator picks the success arm (noerrorsrequired field) so builders see the happy-path shape._Request:_and_Response_are now visually separated.TYPE-SUMMARY.mdis regenerated; every tool now carries both sides of the wire.- Seller + creative skills: added explicit top-level
currencyingetMediaBuyDeliveryandgetCreativeDeliveryexamples. The response schemas require it; the old examples omitted it and fresh-Claude agents built under those skills failed/currency: must have required propertyvalidation.
Builders can now cross-reference hand-written skill examples against an auto-updating TYPE-SUMMARY response block. When the spec adds a required field, the generated doc updates immediately while the skill example may lag — that's the drift-detection signal.
Next logical step (not in this PR): replace the hand-written
**tool** — Response Shapeblocks in skills with directSee [TYPE-SUMMARY.md § tool](…)pointers so the skill narrative focuses on logic and the shape stays generated.