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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants