import{bd as r,a7 as c,be as s}from"./index.js";const _={InlinePython:"tool.display_type.inline_python",DatasetRowLookup:"tool.display_type.dataset_row_lookup",VectorStoreSearch:"tool.display_type.vector_store_search",LLMMeshLLMQuery:"tool.display_type.llm_mesh_llm_query",ImageGeneration:"tool.display_type.image_generation",DatasetRowAppend:"tool.display_type.dataset_row_append",DataikuReporter:"tool.display_type.dataiku_reporter",ClassicalPredictionModelPredict:"tool.display_type.classical_prediction_model_predict",GRELCalculator:"tool.display_type.grel_calculator",GenerateArtifact:"tool.display_type.generate_artifact",ApiEndpoint:"tool.display_type.api_endpoint",VirtualTypeForMCPClients:"tool.display_type.virtual_type_for_mcp_clients",GenericStdioMCPClient:"tool.display_type.generic_stdio_mcp_client",RemoteMCPClient:"tool.display_type.remote_mcp_client"};function m(e){if(!e)return"";if(e.startsWith("Custom_"))return r.global.t("tool.display_type.custom_tool");const t=_[e];if(!t)return e;const o=r.global.t(t);return o===t?e:o}const d={InlinePython:"dku-icon-python-20",DatasetRowLookup:"dku-icon-dataset-20",VectorStoreSearch:"dku-icon-cards-stack-20",LLMMeshLLMQuery:"dku-icon-ai-prompt-20",DatasetRowAppend:"dku-icon-data-table-row-20",DataikuReporter:"dku-icon-data-user-email-20",ClassicalPredictionModelPredict:"dku-icon-automl-prediction-20",GRELCalculator:"dku-icon-calculator-20","Custom_agent_tool_snowflake-cortex-ai_snowflake-cortex-search-tool":"dku-icon-snowflake-brand-20","Custom_agent_tool_snowflake-cortex-ai_snowflake-cortex-analyst-tool":"dku-icon-snowflake-brand-20","Custom_agent_tool_databricks-ai_databricks-genie-tool":"dku-icon-databricks-20","Custom_agent_tool_databricks-ai_databricks-vector-search-tool":"dku-icon-databricks-20"},u=new Set([12,16,20,24,32,48]);function f(e,t=20){const o=e?d[e]??"dku-icon-ai-agent-20":"dku-icon-ai-agent-20";return t===20?o:u.has(t)?o.replace(/-\d+$/,`-${t}`):`${o} dku-icon-size-${t}`}const n="semantic-models-lab",p="tool-integration-dataset-sql-query",l="0.2.0",y="end-user-sql-execution-override",g="1.1.3";async function E(){let e={installed:!1,version:"",compatible_features:[]},t=[];return await c.getPluginInfo(n).then(o=>{if(e.installed=o.installed,o.installed){const a=o.version;if(a&&s(a,l)>=0){t.push(p),a&&s(a,g)>=0&&t.push(y);const i=`The currently installed '${n}' plugin (version ${a}) can be used with the features '${JSON.stringify(t)}'`;console.log(i)}else if(a&&s(a,l)<0){const i=`The currently installed '${n}' plugin (version ${a}) can't be used in Agent Hub. To proceed, the plugin must be updated to version ${l} or newer. Please contact your administrator.`;console.warn(i)}else console.log(`The '${n}' plugin version was not found`)}else console.log(`The '${n}' plugin is not installed`)}).catch(o=>{console.warn(`Error checking the '${n}' plugin status:`,o)}),e.compatible_features=t,e}export{E as a,m as b,f as g};
