fix(web): complete pluginized agent onboarding flows

This commit is contained in:
Hyu
2026-09-01 10:41:29 +08:00
parent 7e51044a87
commit 91e09af76a
18 changed files with 1784 additions and 280 deletions
+8
View File
@@ -10,6 +10,9 @@
var scriptTestNotice = scriptEl
? scriptEl.getAttribute("data-test-notice")
: null;
var scriptAutoOpen = scriptEl
? scriptEl.getAttribute("data-auto-open") === "true"
: false;
// ========== i18n ==========
var I18N = {
@@ -1252,6 +1255,9 @@
}
root.remove();
};
root.langbotOpen = function () {
if (!state.isOpen) togglePanel();
};
document.body.appendChild(root);
var shadow = root.attachShadow({ mode: "open" });
@@ -1406,6 +1412,8 @@
panel.appendChild(inputArea);
shadow.appendChild(panel);
if (scriptAutoOpen) root.langbotOpen();
}
// ========== Initialize ==========