You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add streamDeliveryResources schema, CLI flags, and validation for memory record streaming (#531)
* feat: add streamDeliveryResources schema, CLI flags, and validation for memory record streaming
* fix: address review feedback on streaming support
- Replace unsafe `as MemoryStrategyType` casts with Zod parse
- Include deliveryType in streamDeliveryResources conflict check
- Reject deliveryType without dataStreamArn
- Validate streamDeliveryResources JSON eagerly in validator
- Include Zod error details in parseStreamDeliveryResources
- Extract DEFAULT_DELIVERY_TYPE constant
- Tighten createMemory strategies param type
* fix: update create-memory test for strict strategy validation
CUSTOM is not a valid MemoryStrategyType. The previous test relied on
an unsafe `as` cast to pass an invalid strategy through. Now that we
use Zod parse, invalid strategies are correctly rejected.
0 commit comments