Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
import type { ComputerUsePort } from "./port.ts";
const unavailable = {
allow: false,
reason: "Operating the computer is unavailable / 无法操作电脑",
};
/** Missing capabilities never authorize a tool or manufacture a recorded step. */
export const unavailableComputer: Pick<ComputerUsePort, "grants" | "steps"> = {
grants: {
authorize: async () => unavailable,
release: async () => {},
drained: () => {},
resolveForYolo: async () => {
throw new Error("computer_unavailable");
},
runs: { releaseForYolo: async () => {}, guard: { changed() {} } },
isIdle: () => true,
dispose() {},
},
steps: { record: async () => undefined, dispose: async () => {} },
};