feat: update webui extensions, models, and agent config
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user