Repository navigation
Closed
Labels
product / avatarsFixes and upgrades for the Appwrite Avatars.product / consoleConsole, UI and UX issuesproduct / databasesFixes and upgrades for the Appwrite Database.product / messagingFixes and upgrades for the Appwrite Messaging.product / sitesFixes and upgrades for Appwrite Sites.product / storageFixes and upgrades for the Appwrite Storage.product / vcsFixes and upgrades for the Appwrite VCS.
Description
Tracks PR #14435.
Plan
Goal
Ship the exact spec the Console web SDK (@appwrite.io/console) was generated from inside the package, as spec.json. A later preview workflow can then lay a PR's own spec over that exact base, so one PR can change both the API and the Console.
What changes
src/Appwrite/Platform/Tasks/SDKs.php: after a successful generation, only for platformconsole+ languageweb(and not examples-only), a new privateaddSpec()writesspec.jsoninto the generated SDK directory, addsspec.jsontopackage.jsonfiles, and exports it as./spec.json. Other SDKs are unchanged.composer.lock:appwrite/sdk-generator5.0.1 → 5.7.1 (the^5.0constraint is unchanged). The Console web SDK generated with 5.0.1 from the current spec does not compile (avatars.ts:Cannot find name 'rest').- Downstream: releases push the generated directory to
appwrite/sdk-for-console, sospec.jsongets committed there too. Cloud releases and pkg.vc previews pick this up on the nextappwrite/server-cebump.
Remaining steps
- Review and merge feat(sdks): ship the generated spec inside the Console web SDK #14435.
- Bump
appwrite/server-cein Cloud so its Console SDK builds (releases and pkg.vc previews) includespec.json. - Check that the next
@appwrite.io/consolerelease (andappwrite/sdk-for-console) containsspec.jsonand that@appwrite.io/console/spec.jsonresolves. - Follow-up PR: a preview workflow that merges a PR's spec over
node_modules/@appwrite.io/console/spec.json, publishes to pkg.pr.new, and lets the Console pin that preview.
Risks
- The package grows by about 0.4 MB compressed.
- The sdk-generator jump (5.0.1 → 5.7.1) can change the output of other SDKs generated from this repo. Spot-check diffs on the next SDK release.
Done when
- feat(sdks): ship the generated spec inside the Console web SDK #14435 merged
- Cloud
server-cebumped and a published Console SDK shipsspec.json(the./spec.jsonexport resolves) - Preview workflow (spec overlay → pkg.pr.new → Console pin) shipped or tracked separately
Metadata
Metadata
Assignees
Labels
product / avatarsFixes and upgrades for the Appwrite Avatars.product / consoleConsole, UI and UX issuesproduct / databasesFixes and upgrades for the Appwrite Database.product / messagingFixes and upgrades for the Appwrite Messaging.product / sitesFixes and upgrades for Appwrite Sites.product / storageFixes and upgrades for the Appwrite Storage.product / vcsFixes and upgrades for the Appwrite VCS.
Activity