Files
paseo/plugin-examples/settings/shared/preferences.ts
T
Mohamed Boudra ae80ec4252 Let plugins contribute settings screens (#4357)
* feat(plugins): contribute settings screens and shared controls

* fix(plugins): localize settings and verify shared UI consumers

* test(composer): unmount draft test roots after each case

* test(app): keep launch terminals alive until cleanup

The fixed ten-second profile lifetime could expire before a busy CI browser attached or finished revisiting the composer. Keep the real process waiting for input until project teardown terminates it.

* test(server): await the initial snapshot before a buffered ref event

Watcher setup can read checkout facts before the initial refresh publishes a snapshot. Wait for publication before injecting the event so the test consistently exercises a second refresh.
2026-09-06 10:22:26 +02:00

14 lines
406 B
TypeScript

import { defineSettings } from "@getpaseo/plugin";
import { z } from "zod";
export const preferences = defineSettings({
id: "display",
scope: "host",
version: 1,
schema: z.object({
groupBy: z.enum(["project", "workspace", "none"]).default("project"),
showMetadata: z.boolean().default(true),
title: z.string().trim().min(1, "Enter a title").max(40).default("Agent monitor"),
}),
});