Repository navigation
0.10.0
·
9 commits
to master
since this release
Included commits: 0.9.1...0.10.0
Breaking Changes
- Replaced
BackofficeAssistantPromptControllerandBackofficeAssistantConversationControllerwithBackofficeAssistantChatController, which changed the Back Office assistant URLs. - Removed the
BackofficeAssistantEventTypeenum 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.*andai_commerce.storefront_assistant.*keys. - Removed
SseEventEmitter,SseEventEmitterInterfaceandAiCommerceCommunicationFactory::createSseEventEmitter()in favor of the sharedMessageStreamer. - Changed the Back Office assistant request contract: the CSRF token moves from the
_tokenbody field to theX-CSRF-Tokenheader, payload keys use camelCase, and the stream uses the shared chat event protocol instead of theagent_selected,ai_responseandform_fillevents. - Adjusted
ToolResultProductEnricherInterfaceto extendToolResultExpanderInterface, which addsexpandToolResult()to its implementations. - Replaced the Yves
AiCommerceConfig::getStorefrontAssistantSuggestedPrompts()withAiCommerceConfig::getStorefrontAssistantSuggestedPromptValues(), which returns the raw configured values; the parsing moved toStorefrontAssistantSuggestedPromptReader. - 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/Chatthat the Storefront, Back Office and Merchant Portal assistants use, loaded by thespryker/twigSharedThemeTwigLoaderPlugin. - Introduced
StorefrontAssistantWidgetto render the storefront assistant with titled suggested prompt sections. - Added
BackofficeAssistantConversationCollectionDeleteCriteria.idUserso thatAiCommerceFacade::deleteBackofficeAssistantConversationCollection()deletes nothing and returns an error when that user does not own every requested conversation. - Added
StorefrontAssistantChatRequestTransfer.isRegenerationto let a response be regenerated, replacing the stored exchange of that message.
Adjustments
- Added
spryker/guias a required dependency with the^5.12.0constraint for the Back Office@shared/<module>/*frontend alias. - Added
spryker/twigas a required dependency with the^3.34.0constraint forSharedThemeTwigLoaderPlugin. - Increased the
spryker-shop/shop-uiversion constraint to^2.7.0.