@@ -34,6 +34,22 @@ module.exports = fp(async function (app, opts) {
3434 app . config . features . register ( 'ffNodes' , true , true )
3535 app . config . features . register ( 'rbacApplication' , true , true )
3636 require ( './autoUpdateStacks' ) . init ( app )
37+
38+ // Expert
39+ await app . register ( require ( './expert' ) )
40+
41+ // Set the Generate Snapshot Description Feature Flag
42+ app . config . features . register ( 'generatedSnapshotDescription' , true , true )
43+
44+ // Set the assistant inline completions Feature Flag
45+ app . config . features . register ( 'assistantInlineCompletions' , true , true )
46+
47+ // Set the expert assistant Feature Flag
48+ app . config . features . register ( 'expertAssistant' , app . config ?. expert ?. enabled ?? false , true )
49+
50+ // temporary until FF Expert Insights can be enabled on Self Hosted EE instance
51+ const isInsightsEnabled = app . config ?. expert ?. enabled && app . config ?. expert ?. insights ?. enabled
52+ app . config . features . register ( 'expertInsights' , isInsightsEnabled ?? false , false )
3753 }
3854
3955 // Set the Team Library Feature Flag
@@ -53,17 +69,4 @@ module.exports = fp(async function (app, opts) {
5369
5470 // Set the Editor Limits Feature Flag
5571 app . config . features . register ( 'editorLimits' , true , true )
56-
57- // Set the Editor Limits Feature Flag
58- app . config . features . register ( 'generatedSnapshotDescription' , true , true )
59-
60- // Set the assistant inline completions Feature Flag
61- app . config . features . register ( 'assistantInlineCompletions' , true , true )
62-
63- // Set the expert assistant Feature Flag
64- app . config . features . register ( 'expertAssistant' , app . config ?. expert ?. enabled ?? false , true )
65-
66- // temporary until FF Expert Insights can be enabled on Self Hosted EE instance
67- const isInsightsEnabled = app . config ?. expert ?. enabled && app . config ?. expert ?. insights ?. enabled
68- app . config . features . register ( 'expertInsights' , isInsightsEnabled ?? false , false )
6972} , { name : 'app.ee.lib' } )
0 commit comments