Official

ui

The look of the app's components: buttons, list rows, cards, settings, callouts, and the blocks and tables of replies. Edit a component here and the whole app draws with it.

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/ui@0.1.1

Permissions in 0.1.1

  • Change app settings settings.writeHighChanges the app settings.Apply the components' look to the window

Files

transcript-text.test.ts1.2 KB
// The type of a transcript's messages and replies is decided once, in the
// `bubble` and `reply` components, which a chat and a subagent's tab both
// draw, so a theme that changes them changes every transcript alike.
import assert from "node:assert/strict";
import test from "node:test";
import { components } from "./components.ts";

type Root = { fontSize?: unknown; lineHeight?: unknown; minWidth?: unknown; maxWidth?: unknown; background?: unknown; $when?: { $if?: unknown; background?: unknown }[] };
const root = (name: string) => (components[name] as unknown as { template: Root }).template;

test("a message bubble shrinks to its column and reads in the prompt's type; one another agent sent is on card", () => {
  const bubble = root("bubble");
  assert.deepEqual([bubble.minWidth, bubble.maxWidth], [0, "100%"], "a long unbroken line wraps inside a narrow pane");
  assert.deepEqual([bubble.fontSize, bubble.lineHeight, bubble.background], [13.125, 21.3, "bubble"]);
  assert.deepEqual(bubble.$when, [{ $if: "received", background: "card" }]);
});

test("a reply reads in the transcript's body type", () => {
  const reply = root("reply");
  assert.deepEqual([reply.fontSize, reply.lineHeight], [13.125, 18.75]);
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.1.2latestNov 21, 2026>=5 <610.6 KB1 permissionListed
0.1.1Nov 16, 2026>=5 <610.2 KB1 permissionListed
0.1.0Nov 9, 2026>=5 <68.8 KB1 permissionListed

Reviews and comments

0 threads · 0 reviews

No comments yet.