Files
teams-whisper/login.js
T

17 lines
684 B
JavaScript

// Pinokio menu "Cloud login": asks for the provider, then runs the omp login through llama.py.
module.exports = {
run: [{
// Step 1: choose the provider.
method: "input",
params: {
title: "Cloud login (omp)",
form: [{ type: "select", key: "provider", title: "Provider", default: "github-copilot",
items: [{ text: "GitHub Copilot", value: "github-copilot" }, { text: "Anthropic (Claude Pro/Max)", value: "anthropic" }] }]
}
// Step 2: run the login in the terminal; input: true lets the user answer prompts.
}, {
method: "shell.run",
params: { path: "app", input: true, message: "uv run --script llama.py login {{input.provider}}" }
}]
}