feat: update webui extensions, models, and agent config
Some checks failed
CI / build-check-test (push) Has been cancelled
npm audit / audit (push) Has been cancelled

This commit is contained in:
2026-06-10 21:45:53 +08:00
parent cf5edd6394
commit d51a055d78
64 changed files with 3238 additions and 1665 deletions

View File

@@ -77,6 +77,17 @@ function installCommand(name: string, script: string): boolean {
}
export default function (pi: ExtensionAPI) {
if (process.platform === "win32") {
// On Windows, /usr/local/bin doesn't exist. Use pi-built.bat from the repo root instead.
pi.registerCommand("install-commands", {
description: "N/A on Windows: use pi-built.bat from the repo root",
handler: async (_args, ctx) => {
ctx.ui.notify("Windows 下无需安装全局命令,请直接使用项目根目录的 pi-built.bat", "info");
},
});
return;
}
for (const [name, launcher] of Object.entries(COMMAND_LAUNCHERS)) {
const created = installCommand(name, commandScript(launcher));
if (created) {