Skip to content

Conversation

@dipratap
Copy link
Contributor

@dipratap dipratap commented Oct 14, 2025

Introduces a new API for deploying LLMO Opportunity suggestions on Edge (Project Tokowaka).
Implementation details are captured in https://wiki.corp.adobe.com/display/AEMSites/Tokowaka+-+Spacecat+Integration and https://wiki.corp.adobe.com/display/AEMSites/Tokowaka+Spacecat+Integration+-+Implementation+Internals.

Briefly, the API first fetches LLMO opportunity - Empty Headings for first iteration, generates a json patch config, uploads on S3, and invalidates the Tokowaka Cloudfront CDN cache.
The API is expected to be called from LLMO UI when the user clicks on deploy suggestion button.

'DELETE /sites/:siteId/opportunities/:opportunityId': opportunitiesController.removeOpportunity,
'GET /sites/:siteId/opportunities/:opportunityId/suggestions': suggestionsController.getAllForOpportunity,
'PATCH /sites/:siteId/opportunities/:opportunityId/suggestions/auto-fix': suggestionsController.autofixSuggestions,
'PATCH /sites/:siteId/opportunities/:opportunityId/suggestions/tokowaka-deploy': suggestionsController.autoFixWithTokowaka,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer edgeDeploy over using tokowaka in APIs.

@github-actions
Copy link

This PR will trigger a patch release when merged.

@dipratap dipratap changed the title fix: add tokowaka auto-deploy api [wip] fix: add tokowaka auto-deploy api Oct 23, 2025
@dipratap dipratap requested a review from nit23uec October 23, 2025 05:15
package.json Outdated
},
"devDependencies": {
"@adobe/eslint-config-helix": "3.0.12",
"@adobe/eslint-config-helix": "3.0.11",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to downgrade?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a previous package.json that I used to deploy on personal namespace. I have updated the latest package.json now.

@dipratap dipratap requested a review from nit23uec October 23, 2025 19:50
}
}

const response = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets make sure these suggestion props are not overwritten by audit worker while updating the suggestions.

@dipratap dipratap merged commit 9f42743 into main Oct 30, 2025
7 checks passed
@dipratap dipratap deleted the tokowaka-json branch October 30, 2025 08:08
solaris007 pushed a commit that referenced this pull request Oct 30, 2025
## [1.219.2](v1.219.1...v1.219.2) (2025-10-30)

### Bug Fixes

* add tokowaka auto-deploy api ([#1357](#1357)) ([9f42743](9f42743))
* update package lock to latest ([#1417](#1417)) ([6c3a3f2](6c3a3f2))
@solaris007
Copy link
Member

🎉 This PR is included in version 1.219.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants