mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-29 16:05:34 +00:00
Add plugin management support to OpenClaw. (#13388)
This commit is contained in:
@@ -330,6 +330,22 @@ export const checkAgentPlugin = (req: AI.AgentPluginCheckReq) => {
|
||||
return http.post<AI.AgentPluginStatus>(`/ai/agents/plugin/check`, req);
|
||||
};
|
||||
|
||||
export const listAgentPlugins = (req: AI.AgentPluginsReq) => {
|
||||
return http.post<AI.AgentPluginItem[]>(`/ai/agents/plugins/list`, req);
|
||||
};
|
||||
|
||||
export const searchAgentPlugins = (req: AI.AgentPluginSearchReq) => {
|
||||
return http.post<AI.AgentPluginSearchItem[]>(`/ai/agents/plugins/search`, req);
|
||||
};
|
||||
|
||||
export const installAgentMarketPlugin = (req: AI.AgentPluginMarketInstallReq) => {
|
||||
return http.post(`/ai/agents/plugins/install`, req);
|
||||
};
|
||||
|
||||
export const operateAgentPlugin = (req: AI.AgentPluginOperateReq) => {
|
||||
return http.post(`/ai/agents/plugins/operate`, req);
|
||||
};
|
||||
|
||||
export const getAgentSecurityConfig = (req: AI.AgentSecurityConfigReq) => {
|
||||
return http.post<AI.AgentSecurityConfig>(`/ai/agents/security/get`, req);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user