mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-05-24 05:44:08 +00:00
9 lines
367 B
TypeScript
9 lines
367 B
TypeScript
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
|
export default function widgetPlacementExtension(pi: ExtensionAPI) {
|
|
pi.on("session_start", (_event, ctx) => {
|
|
if (!ctx.hasUI) return;
|
|
ctx.ui.setWidget("widget-above", ["Above editor widget"]);
|
|
ctx.ui.setWidget("widget-below", ["Below editor widget"], { placement: "belowEditor" });
|
|
});
|
|
}
|