feat(ee): AI menu (#1912)

* feat(ee): AI menu

* - Add insert below and copy option

* prebuild @editor-ext

* sanitize output

* clear existing output

* switch to menu component

* refactor directory

* separator

* refactor directory

* support more languages

* pass markdown to model

* fix: close AI menu on page change

* enhance text input and preview styling

* fix: Use absolute positioning for the AI menu

* make preview scrollable

* activation controls

* enhance bubble menu

* sync

* set width

* fix line break

* switch terminologies

* cloud

* buffer

---------

Co-authored-by: Philipinho <16838612+Philipinho@users.noreply.github.com>
This commit is contained in:
Arek Nawo
2026-02-15 05:58:08 +01:00
committed by GitHub
parent 41fa77b29d
commit b76f5adaad
25 changed files with 871 additions and 33 deletions
@@ -118,6 +118,7 @@ export class WorkspaceService {
let status = undefined;
let plan = undefined;
let billingEmail = undefined;
let settings = undefined;
if (this.environmentService.isCloud()) {
// generate unique hostname
@@ -131,6 +132,7 @@ export class WorkspaceService {
status = WorkspaceStatus.Active;
plan = 'standard';
billingEmail = user.email;
settings = { ai: { generative: true } };
}
// create workspace
@@ -143,6 +145,7 @@ export class WorkspaceService {
trialEndAt,
plan,
billingEmail,
settings,
},
trx,
);