Skip to content

Commit fed77e1

Browse files
fix(lightspeed): address review comments from yangcao77
- Remove duplicate migrate(database) call in plugin.ts - Remove unused 'mcp.settings.status.autoManaged' translation key - Regenerate API report Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c826100 commit fed77e1

3 files changed

Lines changed: 29 additions & 33 deletions

File tree

workspaces/lightspeed/plugins/lightspeed-backend/src/plugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export const lightspeedPlugin = createBackendPlugin({
5353
}) {
5454
await migrate(database);
5555

56-
await migrate(database);
57-
5856
const aiNotebooksEnabled =
5957
config.getOptionalBoolean('lightspeed.notebooks.enabled') ?? false;
6058

workspaces/lightspeed/plugins/lightspeed/report-alpha.api.md

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -174,35 +174,6 @@ export const lightspeedRedirectModule: FrontendModule;
174174
export const lightspeedTranslationRef: TranslationRef<
175175
'plugin.lightspeed',
176176
{
177-
readonly 'disclaimer.withoutValidation': string;
178-
readonly 'disclaimer.withValidation': string;
179-
readonly 'prompts.codeReadability.title': string;
180-
readonly 'prompts.codeReadability.message': string;
181-
readonly 'prompts.debugging.title': string;
182-
readonly 'prompts.debugging.message': string;
183-
readonly 'prompts.developmentConcept.title': string;
184-
readonly 'prompts.developmentConcept.message': string;
185-
readonly 'prompts.codeOptimization.title': string;
186-
readonly 'prompts.codeOptimization.message': string;
187-
readonly 'prompts.documentation.title': string;
188-
readonly 'prompts.documentation.message': string;
189-
readonly 'prompts.gitWorkflows.title': string;
190-
readonly 'prompts.gitWorkflows.message': string;
191-
readonly 'prompts.testingStrategies.title': string;
192-
readonly 'prompts.testingStrategies.message': string;
193-
readonly 'prompts.sortingAlgorithms.title': string;
194-
readonly 'prompts.sortingAlgorithms.message': string;
195-
readonly 'prompts.eventDriven.title': string;
196-
readonly 'prompts.eventDriven.message': string;
197-
readonly 'prompts.tekton.title': string;
198-
readonly 'prompts.tekton.message': string;
199-
readonly 'prompts.openshift.title': string;
200-
readonly 'prompts.openshift.message': string;
201-
readonly 'prompts.rhdh.title': string;
202-
readonly 'prompts.rhdh.message': string;
203-
readonly 'notebooks.prompts.coreConcepts.title': string;
204-
readonly 'notebooks.prompts.vulnerabilities.title': string;
205-
readonly 'notebooks.prompts.accessIssue.title': string;
206177
readonly 'page.title': string;
207178
readonly 'page.subtitle': string;
208179
readonly 'tabs.ariaLabel': string;
@@ -231,6 +202,9 @@ export const lightspeedTranslationRef: TranslationRef<
231202
readonly 'notebooks.updated.days': string;
232203
readonly 'notebooks.updated.on': string;
233204
readonly 'notebooks.card.openAria': string;
205+
readonly 'notebooks.prompts.coreConcepts.title': string;
206+
readonly 'notebooks.prompts.vulnerabilities.title': string;
207+
readonly 'notebooks.prompts.accessIssue.title': string;
234208
readonly 'notebook.view.title': string;
235209
readonly 'notebook.view.close': string;
236210
readonly 'notebook.view.documents.count': string;
@@ -267,6 +241,30 @@ export const lightspeedTranslationRef: TranslationRef<
267241
readonly 'notebook.document.delete.description': string;
268242
readonly 'notebook.document.delete.action': string;
269243
readonly 'notebook.document.delete.success': string;
244+
readonly 'prompts.codeReadability.title': string;
245+
readonly 'prompts.codeReadability.message': string;
246+
readonly 'prompts.debugging.title': string;
247+
readonly 'prompts.debugging.message': string;
248+
readonly 'prompts.developmentConcept.title': string;
249+
readonly 'prompts.developmentConcept.message': string;
250+
readonly 'prompts.codeOptimization.title': string;
251+
readonly 'prompts.codeOptimization.message': string;
252+
readonly 'prompts.documentation.title': string;
253+
readonly 'prompts.documentation.message': string;
254+
readonly 'prompts.gitWorkflows.title': string;
255+
readonly 'prompts.gitWorkflows.message': string;
256+
readonly 'prompts.testingStrategies.title': string;
257+
readonly 'prompts.testingStrategies.message': string;
258+
readonly 'prompts.sortingAlgorithms.title': string;
259+
readonly 'prompts.sortingAlgorithms.message': string;
260+
readonly 'prompts.eventDriven.title': string;
261+
readonly 'prompts.eventDriven.message': string;
262+
readonly 'prompts.tekton.title': string;
263+
readonly 'prompts.tekton.message': string;
264+
readonly 'prompts.openshift.title': string;
265+
readonly 'prompts.openshift.message': string;
266+
readonly 'prompts.rhdh.title': string;
267+
readonly 'prompts.rhdh.message': string;
270268
readonly 'conversation.delete.confirm.title': string;
271269
readonly 'conversation.delete.confirm.message': string;
272270
readonly 'conversation.delete.confirm.action': string;
@@ -284,6 +282,8 @@ export const lightspeedTranslationRef: TranslationRef<
284282
readonly 'lcore.notConfigured.backendDocs': string;
285283
readonly 'lcore.loadError.title': string;
286284
readonly 'lcore.loadError.description': string;
285+
readonly 'disclaimer.withValidation': string;
286+
readonly 'disclaimer.withoutValidation': string;
287287
readonly 'footer.accuracy.label': string;
288288
readonly 'common.cancel': string;
289289
readonly 'common.close': string;
@@ -398,7 +398,6 @@ export const lightspeedTranslationRef: TranslationRef<
398398
readonly 'mcp.settings.status.oneTool': string;
399399
readonly 'mcp.settings.status.manyTools': string;
400400
readonly 'mcp.settings.status.unknown': string;
401-
readonly 'mcp.settings.status.autoManaged': string;
402401
readonly 'mcp.settings.modalDescriptionDcr': string;
403402
readonly 'mcp.settings.toggleServerAriaLabel': string;
404403
readonly 'mcp.settings.editServerAriaLabel': string;

workspaces/lightspeed/plugins/lightspeed/src/translations/ref.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ export const lightspeedMessages = {
345345
'mcp.settings.status.oneTool': '{{count}} tool',
346346
'mcp.settings.status.manyTools': '{{count}} tools',
347347
'mcp.settings.status.unknown': 'Unknown',
348-
'mcp.settings.status.autoManaged': 'Authenticated via Backstage',
349348
'mcp.settings.modalDescriptionDcr':
350349
'This server uses Dynamic Client Registration (DCR). Tokens are minted automatically using your Backstage identity — no manual token is needed.',
351350
'mcp.settings.toggleServerAriaLabel': 'Toggle {{serverName}}',

0 commit comments

Comments
 (0)