Pipeline code copied into app/; llama.py now uses launcher-local llama.cpp (app/bin) and Qwen GGUF (app/models) instead of LM Studio. install.js fetches ffmpeg, 7zip, llama.cpp CUDA 13, sherpa-onnx diarization models, bge-m3 and Qwen3.6-35B-A3B, then pre-builds the uv script environments. start.js serves the GUI on fixed port 18765 (hardcoded in the browser extension). reset.js keeps app/out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
98 lines
2.5 KiB
JavaScript
98 lines
2.5 KiB
JavaScript
module.exports = {
|
|
version: "7.0",
|
|
title: "Teams Whisper",
|
|
description: "Record Teams calls and turn them into meeting reports, fully local",
|
|
menu: async (kernel, info) => {
|
|
let installed = info.exists("app/models/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf")
|
|
let running = {
|
|
install: info.running("install.js"),
|
|
start: info.running("start.js"),
|
|
update: info.running("update.js"),
|
|
reset: info.running("reset.js")
|
|
}
|
|
if (running.install) {
|
|
return [{
|
|
default: true,
|
|
icon: "fa-solid fa-plug",
|
|
text: "Installing",
|
|
href: "install.js",
|
|
}]
|
|
} else if (installed) {
|
|
if (running.start) {
|
|
let local = info.local("start.js")
|
|
if (local && local.url) {
|
|
return [{
|
|
default: true,
|
|
icon: "fa-solid fa-rocket",
|
|
text: "Open Web UI",
|
|
href: local.url,
|
|
}, {
|
|
icon: "fa-solid fa-diagram-project",
|
|
text: "Prefect",
|
|
href: "http://127.0.0.1:4200",
|
|
}, {
|
|
icon: "fa-solid fa-puzzle-piece",
|
|
text: "Extension",
|
|
href: "ext.js",
|
|
}, {
|
|
icon: 'fa-solid fa-terminal',
|
|
text: "Terminal",
|
|
href: "start.js",
|
|
}]
|
|
} else {
|
|
return [{
|
|
default: true,
|
|
icon: 'fa-solid fa-terminal',
|
|
text: "Terminal",
|
|
href: "start.js",
|
|
}]
|
|
}
|
|
} else if (running.update) {
|
|
return [{
|
|
default: true,
|
|
icon: 'fa-solid fa-terminal',
|
|
text: "Updating",
|
|
href: "update.js",
|
|
}]
|
|
} else if (running.reset) {
|
|
return [{
|
|
default: true,
|
|
icon: 'fa-solid fa-terminal',
|
|
text: "Resetting",
|
|
href: "reset.js",
|
|
}]
|
|
} else {
|
|
return [{
|
|
default: true,
|
|
icon: "fa-solid fa-power-off",
|
|
text: "Start",
|
|
href: "start.js",
|
|
}, {
|
|
icon: "fa-solid fa-puzzle-piece",
|
|
text: "Extension",
|
|
href: "ext.js",
|
|
}, {
|
|
icon: "fa-solid fa-plug",
|
|
text: "Update",
|
|
href: "update.js",
|
|
}, {
|
|
icon: "fa-solid fa-plug",
|
|
text: "Install",
|
|
href: "install.js",
|
|
}, {
|
|
icon: "fa-regular fa-circle-xmark",
|
|
text: "Reset",
|
|
href: "reset.js",
|
|
}]
|
|
}
|
|
} else {
|
|
return [{
|
|
default: true,
|
|
icon: "fa-solid fa-plug",
|
|
text: "Install",
|
|
href: "install.js",
|
|
}]
|
|
}
|
|
}
|
|
}
|