feat(apps): apps-engine split, flip the switch#40186
feat(apps): apps-engine split, flip the switch#40186d-gubert wants to merge 11 commits intofeat/apps-engine-split--pr2b-dynamic-import-mapfrom
Conversation
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
969ce6b to
af58d57
Compare
1cc12df to
c9af208
Compare
af58d57 to
68964e4
Compare
f45a000 to
b39d06f
Compare
|
@copilot check the errors and fix them https://github.com/RocketChat/Rocket.Chat/actions/runs/25027766915/job/73302665636?pr=40186 Make atomic commits, don't just commit every file at once. |
Fixed in commits The build was failing because the cleanup commit ( The fix is split into two atomic commits:
The package now only contains |
Fixed in commit
Fixed by importing it as a value in |
… local server/ paths These files previously re-exported AppManager, AppBridges, and AppMetadataStorage from @rocket.chat/apps-engine/server/. Now that server/ lives in this package, the imports are updated to local paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/apps/server/ Hard-cut all import paths from `@rocket.chat/apps-engine/server/*` to `@rocket.chat/apps/server/*` across apps/meteor. Covers bridges, storage, managers, marketplace, and service files (50 files, purely mechanical rename). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/apps/client/ Hard-cut all import paths from `@rocket.chat/apps-engine/client/*` to `@rocket.chat/apps/client/*` across apps/meteor (5 files). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…et.chat/apps IAppsEngineService imported IGetAppsFilter and IAppStorageItem from @rocket.chat/apps-engine/server/ — server internals that now live in @rocket.chat/apps. Update imports and swap the devDependency accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
OAuth2Client, IExternalComponentRoomInfo/UserInfo, and the room query option types (GetMessagesOptions, GetRoomsFilters, GetRoomsOptions) were defined in server/ or client/ but were imported by definition/ files. Move them into the definition layer so the public API is self-contained. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Strip @rocket.chat/apps-engine down to the definition layer only. All runtime code (AppManager, bridges, compiler, deno-runtime, etc.) has already been moved to @rocket.chat/apps in previous commits. Updates package.json, tsconfig.json, and turbo.json to reflect the narrower scope (definition/** and lib/** outputs only). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… definition GetMessagesOptions, GetRoomsFilters, GetRoomsOptions, and GetMessagesSortableFields are now canonical in @rocket.chat/apps-engine/definition/rooms/IGetMessagesOptions — import them from there and re-export for downstream consumers. OAuth2Client is now canonical in @rocket.chat/apps-engine/definition/oauth2/OAuth2Client — replace the duplicate copy with a re-export. Also add typesVersions to @rocket.chat/apps/package.json so that consumers using moduleResolution: "node" can resolve ./server/* and ./client/* subpath imports without needing node16/bundler resolution. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
These files were already moved to @rocket.chat/apps/src/client but were not deleted from apps-engine in the previous cleanup commit. They caused TypeScript build errors because their dependencies (constants, utils, definition sub-files) had been removed. Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
These files were already moved to @rocket.chat/apps/src/server but were not deleted from apps-engine in the previous cleanup commit. They caused TypeScript build errors because many of their dependencies (bridges, managers, errors, storage types, etc.) had been removed from apps-engine. Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
GetMessagesSortableFields is a runtime const array, not just a type. The previous refactor accidentally imported and re-exported it via 'import type' / 'export type', making it unavailable as a value. This caused TS1362 errors in RoomRead.ts where it is used at runtime (Array.includes and Array.join calls). Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
b4986b5 to
57bc3b7
Compare
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Related to the "Apps-Engine split" stack: