mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 13:40:35 +00:00
align plugin schema, config API actions, and plugin list UI
This commit is contained in:
parent
a13b81a9a1
commit
604078376f
15 changed files with 416 additions and 255 deletions
|
|
@ -79,7 +79,7 @@ const model = {
|
|||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
action: "get_settings",
|
||||
action: "get_config",
|
||||
plugin_name: this.pluginName,
|
||||
project_name: this.projectName || "",
|
||||
agent_profile: this.agentProfileKey || "",
|
||||
|
|
@ -117,7 +117,7 @@ const model = {
|
|||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
action: "save_settings",
|
||||
action: "save_config",
|
||||
plugin_name: this.pluginName,
|
||||
project_name: this.projectName || "",
|
||||
agent_profile: this.agentProfileKey || "",
|
||||
|
|
@ -144,7 +144,7 @@ const model = {
|
|||
// Reactive URL for the plugin's settings component (used with x-html injection)
|
||||
get settingsComponentHtml() {
|
||||
if (!this.pluginName) return "";
|
||||
return `<x-component path="/plugins/${this.pluginName}/webui/settings.html"></x-component>`;
|
||||
return `<x-component path="/plugins/${this.pluginName}/webui/config.html"></x-component>`;
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue