- {app.logo_url ? (
+ {toolkit.logo_url ? (
{
const target = e.target as HTMLImageElement;
@@ -150,7 +148,7 @@ export function GetAppDetailsToolView({
)}
- {app.is_verified && (
+ {supports_oauth && (
@@ -160,13 +158,13 @@ export function GetAppDetailsToolView({
-
+
-
+
- {app.name}
+ {toolkit.name}
- {app.is_verified && (
+ {supports_oauth && (
@@ -182,20 +180,20 @@ export function GetAppDetailsToolView({
)}
- {app.app_slug}
+ {toolkit.toolkit_slug}
{(() => {
- const AuthIcon = getAuthTypeIcon(app.auth_type);
+ const AuthIcon = getAuthTypeIcon(auth_schemes);
return (
- {app.auth_type?.replace('_', ' ') || 'Unknown'}
+ {auth_schemes?.includes('OAUTH2') ? 'OAuth2' : auth_schemes?.includes('BEARER_TOKEN') ? 'Bearer Token' : auth_schemes?.includes('API_KEY') ? 'API Key' : 'Unknown'}
);
})()}
@@ -203,12 +201,12 @@ export function GetAppDetailsToolView({
- {app.description}
+ {toolkit.description}
- {app.tags && app.tags.length > 0 && (
+ {toolkit.tags && toolkit.tags.length > 0 && (
- {app.tags.map((tag, tagIndex) => (
+ {toolkit.tags.map((tag, tagIndex) => (
)}
-
-
- {app.url && (
- window.open(app.url!, '_blank')}
- >
-
- Visit Website
-
- )}
-
- {(app.pricing || app.setup_instructions) && (
-
- {app.pricing && (
-
-
-
-
Pricing
-
-
- {app.pricing || 'No pricing information available'}
-
-
- )}
-
- {app.setup_instructions && (
-
-
-
-
Setup
-
-
- {app.setup_instructions || 'No setup instructions available'}
-
-
- )}
-
- )}
-
- {(app.available_actions?.length || app.available_triggers?.length) ? (
-
- {app.available_actions && app.available_actions.length > 0 && (
-
-
-
-
Available Actions
-
- {app.available_actions.length}
-
-
-
- {app.available_actions.slice(0, 5).map((action: any, index: number) => (
-
-
-
- {action.name || action.display_name || action}
-
-
- ))}
- {app.available_actions.length > 5 && (
-
- +{app.available_actions.length - 5} more actions
-
- )}
-
-
- )}
-
- {app.available_triggers && app.available_triggers.length > 0 && (
-
-
-
-
Available Triggers
-
- {app.available_triggers.length}
-
-
-
- {app.available_triggers.slice(0, 5).map((trigger: any, index: number) => (
-
-
-
- {trigger.name || trigger.display_name || trigger}
-
-
- ))}
- {app.available_triggers.length > 5 && (
-
- +{app.available_triggers.length - 5} more triggers
-
- )}
-
-
- )}
-
- ) : (
-
-
-
- No actions or triggers available for this integration
-
+ {toolkit.categories && toolkit.categories.length > 0 && (
+
+
+
+
Categories
+
+
+ {toolkit.categories.map((category, index) => (
+
+ {category}
+
+ ))}
+
)}
@@ -342,7 +253,7 @@ export function GetAppDetailsToolView({
No app details found
- {app_slug ? `Unable to load details for "${app_slug}"` : 'App information not available'}
+ {toolkit_slug ? `Unable to load details for "${toolkit_slug}"` : 'App information not available'}
diff --git a/frontend/src/components/thread/tool-views/get-credential-profiles/_utils.ts b/frontend/src/components/thread/tool-views/get-credential-profiles/_utils.ts
index b243f57c..28279ed5 100644
--- a/frontend/src/components/thread/tool-views/get-credential-profiles/_utils.ts
+++ b/frontend/src/components/thread/tool-views/get-credential-profiles/_utils.ts
@@ -4,19 +4,17 @@ export interface CredentialProfileItem {
profile_id: string;
profile_name: string;
display_name: string;
- app_slug: string;
- app_name: string;
- external_user_id: string;
+ toolkit_slug: string;
+ toolkit_name: string;
+ mcp_url: string;
is_connected: boolean;
- is_active: boolean;
is_default: boolean;
- enabled_tools: string[];
created_at: string;
- last_used_at?: string;
+ updated_at?: string;
}
export interface GetCredentialProfilesData {
- app_slug: string | null;
+ toolkit_slug: string | null;
message: string | null;
profiles: CredentialProfileItem[];
total_count: number;
@@ -40,7 +38,7 @@ const extractFromNewFormat = (content: any): GetCredentialProfilesData => {
if (!parsedContent || typeof parsedContent !== 'object') {
return {
- app_slug: null,
+ toolkit_slug: null,
message: null,
profiles: [],
total_count: 0,
@@ -63,7 +61,7 @@ const extractFromNewFormat = (content: any): GetCredentialProfilesData => {
parsedOutput = parsedOutput || {};
const extractedData = {
- app_slug: args.app_slug || null,
+ toolkit_slug: args.toolkit_slug || null,
message: parsedOutput.message || null,
profiles: Array.isArray(parsedOutput.profiles) ? parsedOutput.profiles : [],
total_count: parsedOutput.total_count || 0,
@@ -76,7 +74,7 @@ const extractFromNewFormat = (content: any): GetCredentialProfilesData => {
if ('parameters' in parsedContent && 'output' in parsedContent) {
const extractedData = {
- app_slug: parsedContent.parameters?.app_slug || null,
+ toolkit_slug: parsedContent.parameters?.toolkit_slug || null,
message: parsedContent.output?.message || null,
profiles: Array.isArray(parsedContent.output?.profiles) ? parsedContent.output.profiles : [],
total_count: parsedContent.output?.total_count || 0,
@@ -92,7 +90,7 @@ const extractFromNewFormat = (content: any): GetCredentialProfilesData => {
}
return {
- app_slug: null,
+ toolkit_slug: null,
message: null,
profiles: [],
total_count: 0,
@@ -108,7 +106,7 @@ const extractFromLegacyFormat = (content: any): Omit
0 ? toolLegacy.profiles : assistantLegacy.profiles,
total_count: toolLegacy.total_count || assistantLegacy.total_count,
diff --git a/frontend/src/components/thread/tool-views/get-credential-profiles/get-credential-profiles.tsx b/frontend/src/components/thread/tool-views/get-credential-profiles/get-credential-profiles.tsx
index 716f518e..b39c9e5d 100644
--- a/frontend/src/components/thread/tool-views/get-credential-profiles/get-credential-profiles.tsx
+++ b/frontend/src/components/thread/tool-views/get-credential-profiles/get-credential-profiles.tsx
@@ -32,7 +32,7 @@ export function GetCredentialProfilesToolView({
}: ToolViewProps) {
const {
- app_slug,
+ toolkit_slug,
message,
profiles,
total_count,
@@ -59,14 +59,7 @@ export function GetCredentialProfilesToolView({
};
};
- const getActiveStatus = (isActive: boolean) => {
- return {
- color: isActive
- ? 'bg-blue-100 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-300 dark:border-blue-800'
- : 'bg-gray-100 text-gray-700 border-gray-200 dark:bg-gray-900/20 dark:text-gray-300 dark:border-gray-800',
- text: isActive ? 'Active' : 'Inactive'
- };
- };
+
return (
@@ -80,9 +73,9 @@ export function GetCredentialProfilesToolView({
{toolTitle}
- {app_slug && (
+ {toolkit_slug && (
- App: {app_slug}
+ Toolkit: {toolkit_slug}
)}
@@ -116,7 +109,7 @@ export function GetCredentialProfilesToolView({
iconColor="text-blue-500 dark:text-blue-400"
bgColor="bg-gradient-to-b from-blue-100 to-blue-50 shadow-inner dark:from-blue-800/40 dark:to-blue-900/60 dark:shadow-blue-950/20"
title="Loading credential profiles"
- filePath={app_slug ? `"${app_slug}"` : undefined}
+ filePath={toolkit_slug ? `"${toolkit_slug}"` : undefined}
showProgress={true}
/>
) : profiles.length > 0 ? (
@@ -156,7 +149,7 @@ export function GetCredentialProfilesToolView({
)}