Skip to content

0.10.0

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 28 Oct 15:52
· 9 commits to master since this release

Included commits: 0.9.1...0.10.0

Breaking Changes

  • Replaced BackofficeAssistantPromptController and BackofficeAssistantConversationController with BackofficeAssistantChatController, which changed the Back Office assistant URLs.
  • Removed the BackofficeAssistantEventType enum and the legacy Back Office assistant JS and SCSS assets in favor of the shared chat core.
  • Replaced the plain-text Back Office assistant Zed glossary keys with ai_commerce.backoffice_assistant.* and ai_commerce.storefront_assistant.* keys.
  • Removed SseEventEmitter, SseEventEmitterInterface and AiCommerceCommunicationFactory::createSseEventEmitter() in favor of the shared MessageStreamer.
  • Changed the Back Office assistant request contract: the CSRF token moves from the _token body field to the X-CSRF-Token header, payload keys use camelCase, and the stream uses the shared chat event protocol instead of the agent_selected, ai_response and form_fill events.
  • Adjusted ToolResultProductEnricherInterface to extend ToolResultExpanderInterface, which adds expandToolResult() to its implementations.
  • Replaced the Yves AiCommerceConfig::getStorefrontAssistantSuggestedPrompts() with AiCommerceConfig::getStorefrontAssistantSuggestedPromptValues(), which returns the raw configured values; the parsing moved to StorefrontAssistantSuggestedPromptReader.
  • Changed the default Storefront Assistant system prompt (AiCommerceConfig::getStorefrontAssistantSystemPrompt()) to limit answers to the shop and its products and to format replies as easy-to-scan markdown; projects that keep the default get the new behavior.

Improvements

  • Introduced one shared chat core under Shared/AiCommerce/Theme/default/Chat that the Storefront, Back Office and Merchant Portal assistants use, loaded by the spryker/twig SharedThemeTwigLoaderPlugin.
  • Introduced StorefrontAssistantWidget to render the storefront assistant with titled suggested prompt sections.
  • Added BackofficeAssistantConversationCollectionDeleteCriteria.idUser so that AiCommerceFacade::deleteBackofficeAssistantConversationCollection() deletes nothing and returns an error when that user does not own every requested conversation.
  • Added StorefrontAssistantChatRequestTransfer.isRegeneration to let a response be regenerated, replacing the stored exchange of that message.

Adjustments

  • Added spryker/gui as a required dependency with the ^5.12.0 constraint for the Back Office @shared/<module>/* frontend alias.
  • Added spryker/twig as a required dependency with the ^3.34.0 constraint for SharedThemeTwigLoaderPlugin.
  • Increased the spryker-shop/shop-ui version constraint to ^2.7.0.