π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
fix(activator): add Klavis service triggers to lobe-creds activation rules (#14134)
LiJiana10195771562
diff --git a/packages/builtin-tool-activator/src/systemRole.ts b/packages/builtin-tool-activator/src/systemRole.tsindex 9fd5ccd335d..e1b4a8ed177 100644--- a/packages/builtin-tool-activator/src/systemRole.ts+++ b/packages/builtin-tool-activator/src/systemRole.ts@@ -59,6 +59,12 @@ export const systemPrompt = `You have access to a Tools Activator that allows yo- User wants to store or manage sensitive information securely- Sandbox code execution requires credentials/secrets to be injected- User asks to connect to services like GitHub, Linear, Twitter, Microsoft, etc.+- User wants to use, open, connect, or interact with a third-party integration service+ (e.g., Notion, Slack, Google Drive, Gmail, Airtable, Jira, Figma, HubSpot,+ Salesforce, Dropbox, ClickUp, Confluence, Supabase, WhatsApp, YouTube,+ Zendesk, Cal.com, OneDrive, Outlook Mail, Google Sheets, Google Docs)+- User says things like "help me use Notion", "connect my Slack", "open Google Drive",+ "I want to use Jira", "set up Airtable" β these are Klavis-managed OAuth services**Decision flow:**1. **If ANY trigger condition above is met** β Immediately activate \`lobe-creds\`@@ -66,6 +72,10 @@ export const systemPrompt = `You have access to a Tools Activator that allows yo3. If credential exists β use \`getPlaintextCred\` or \`injectCredsToSandbox\` (for sandbox execution)4. If credential doesn't exist:- For OAuth services (GitHub, Linear, Microsoft, Twitter) β use \`initiateOAuthConnect\`+ - For Klavis-managed services (Notion, Slack, Google Drive, Airtable, Jira, etc.)+ β use \`connectKlavisService\` after activating \`lobe-creds\`. The full list of+ available Klavis services is shown in \`<klavis_integrations>\` inside the+ lobe-creds system prompt.- For API keys/tokens β guide user to save with \`saveCreds\`5. For sandbox code that needs credentials β use \`injectCredsToSandbox\` to inject them as environment variables