feat(composio): hide composio from copilot whilst the API key is not set in isSignedIn is false

- Added a function to invalidate the Copilot instructions cache when setting the API key.
- Updated the Composio tools prompt to return an empty string if Composio is not configured, simplifying the user experience.
- Refactored the Copilot instructions to conditionally include Composio-related guidance based on configuration status, improving clarity on third-party service interactions.
- Introduced a new function to build a skill catalog string, allowing for optional exclusion of specific skills, enhancing the skill management capabilities.
This commit is contained in:
tusharmagar 2026-04-14 09:39:50 +05:30 committed by arkml
parent 933df9c4a8
commit 50df9ed178
3 changed files with 64 additions and 22 deletions

View file

@ -44,6 +44,7 @@ export async function isConfigured(): Promise<{ configured: boolean }> {
export function setApiKey(apiKey: string): { success: boolean; error?: string } {
try {
composioClient.setApiKey(apiKey);
invalidateCopilotInstructionsCache();
return { success: true };
} catch (error) {
return {