AI: White label - Full coverage in all code base
<!-- Please provide a detailed description of the bug. -->
<!-- Note: This template is not meant for security vulnerabilities disclosure -->
<!-- Any such issue, created in this repo, will be deleted on sight -->
<!-- Instead please report vulnerabilities to the Eclipse Foundation's security team -->
<!-- For more details, please read SECURITY.md in the repository root -->
### Bug Description:
Hi there,
I noticed that the PR https://github.com/eclipse-theia/theia/pull/17265 replaced Theia with the application name for white-labeling in AI agents. However, there are still some places in AI agents’ prompts that don’t have the Theia white-labeling.
I’ve opened this issue to list all the places I believe should be white-labeled, not just AI agents. This includes all the settings, many user messages, and logs in the code base, and more.
I’ve searched the entire repository (excluding *.md, *.json, *.test.ts, *.yml files, test files, script files, and examples) for the word “Theia.” Here’s the list of places that need white-labeling:
Agents:
- packages/ai-code-completion/src/browser/code-completion-agent.ts: (agent description)
- packages/ai-ide/src/common/command-prompt-template.ts: commandTemplate
- packages/ai-ide/src/common/command-chat-agents.ts: CommandChatAgent (agent description)
- packages/ai-ide/src/browser/review/pr-review-prompt-template.ts: prReviewSystemPrompt (PR Reviewer agent system prompt)
AI welcome and getting started screens:
- packages/ai-ide/src/browser/ide-chat-welcome-message-provider.tsx: renderWelcomeScreen, renderModelConfigurationScreen
- packages/getting-started/src/browser/getting-started-widget.tsx: renderAIBanner and renderNews
All other code:
- dev-packages/application-manager/src/application-package-manager.ts
- dev-packages/application-manager/src/generator/frontend-generator.ts
- generic-capabilities-tree.tsx: description of the functions category
- packages/ai-copilot/src/browser/copilot-auth-dialog-messages.ts: DEFAULT_COPILOT_AUTH_DIALOG_MESSAGES
- registerVariables in the theia-variable-contribution.ts
- packages/ai-core/src/browser/window-blink-service.ts: blinkDocumentTitle
- packages/ai-mcp-server/src/node/mcp-theia-server-impl.ts: MCPTheiaServerImpl
- packages/core/src/browser/browser-clipboard-service.ts: BrowserClipboardService
- packages/core/src/browser/frontend-application-module.ts: frontendApplicationModule
- packages/core/src/electron-browser/menu/electron-main-menu-factory.ts: ElectronMainMenuFactory
- packages/core/src/node/backend-application.ts: BackendApplication (start)
- packages/debug/src/browser/debug-session.tsx
- packages/metrics/src/node/extensions-metrics-contribution.ts
- packages/metrics/src/node/measurement-metrics-contribution.ts
- packages/monaco/src/browser/monaco-init.ts
- packages/plugin-dev/src/node/hosted-instance-manager.ts: THEIA_INSTANCE_REGEX
- packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts
- packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts
- packages/task/src/browser/task-schema-updater.ts: commandOptionsSchema, problemMatcherObject
- packages/workspace/src/browser/workspace-trust-dialog.tsx
- packages/workspace/src/browser/workspace-trust-service.ts
- packages/workspace/src/common/workspace-file-service.ts
AI Settings:
- ai-features.AiEnable.enableAI
- ai-features.llamafile.llamafiles
- ai-features.anthropic.AnthropicApiKey
- ai-features.chat.defaultChatAgent
- ai-features.chat.bypassModelRequirement
- ai-features.claudeCode.apiKey
- ai-features.google.apiKey
- ai-features.huggingFace.apiKey
- ai-features.vercelAi.openaiApiKey
- ai-features.vercelAi.anthropicApiKey
- window.secondaryWindowPlacement
- workbench.colorTheme
- workbench.iconTheme
- workbench.startupEditor
- ai-features.SCANOSS.apiKey
Not sure about:
- dev-packages/cli/src/check-dependencies.ts
- packages/core/src/browser/icon-theme-contribution.ts: DefaultFileIconThemeContribution (File Icons (Theia))
- packages/core/src/browser/theming.ts ('Dark (Theia)'...)
- packages/plugin-ext/src/common/plugin-api-rpc.ts
- packages/workspace/src/browser/workspace-frontend-contribution.ts: WorkspaceFrontendContribution (DEFAULT_FILE_FILTER)
Places to keep as is (no white-labeling):
- dev-packages/application-package/src/application-props.ts
- dev-packages/cli/src/test-page.ts
- dev-packages/cli/src/theia.ts
- dev-packages/private-re-exports/src/bin-theia-re-exports.ts
- packages/core/src/browser/storage-service.ts
<!-- Please provide any additional information available. -->
<!-- Additional information can be in the form of logs, screenshots, screencasts. -->
### Additional Information
- Operating System: Mac
- Theia Version: Theia 1.71
<!-- 💙 Eclipse Theia is community-supported. If you find it valuable, consider sponsoring the project: https://theia-ide.org/support/ -->
0 条评论