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 { PptOperation } from "@pibot/protocol-base/office-ooxml";
import type { OfficePackage } from "../package.ts";
import { applyShapeOperation } from "./edit-shapes.ts";
import { applySlideOperation, isSlideOperation } from "./edit-slides.ts";
export async function applyPptOperation(pkg: OfficePackage, operation: PptOperation) {
if (isSlideOperation(operation)) await applySlideOperation(pkg, operation);
else applyShapeOperation(pkg, operation);
}