Official

chat

Built-in chat UI (JavaScript UI plugin).

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/chat@0.2.7

Permissions in 0.2.7

  • Control chats chats.controlHighCreates chats, sends prompts and cancels runs.Send prompts, answer agent questions, and create, change, fork, revert, stop and group chats
  • Run other plugins' commands commands.runHighRuns commands of other plugins.Run the sidebar's New chat command from the title bar
  • Read chats chats.readMediumReads your transcripts and chat lists.Show workspaces, tasks, chats and transcripts, and follow them as agents work
  • Read files fs.readMediumReads files in the listed places.Suggest workspace files for @ mentionsPlaces: the open workspace
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Draw the chat grid, the title bar, and the Session panel with its rail buttonSlots: centertitlerailright

Files

submission-layout.test.ts2.9 KB
// The outgoing preview and acknowledged user row share layout, not delivery state.
import assert from "node:assert/strict";
import test from "node:test";
import * as Effect from "effect/Effect";
import type { ChatView } from "./controller.ts";
import { InputLedger, withController } from "./testing.ts";
import { nodes, tree } from "./ui-for-tests.test.ts";
import { renderTranscript } from "./views/rows.tsx";

test("acknowledging a draft preserves user-row insets and reserves checkpoint action space", async () => {
  await withController(new InputLedger(), (c) =>
    Effect.sync(() => {
      const chat = c.state.chats.c1;
      const transcript = c.transcript(chat.id);
      transcript.snapshot = { kind: "ready" };
      c.composer(chat.id).outgoing = {
        id: "first-prompt",
        text: "Inspect the asymmetric layout",
        attachments: [
          { id: "wide", name: "wide.png", mimeType: "image/png", bytes: 100, width: 3600, height: 400 },
          { id: "portrait", name: "portrait.png", mimeType: "image/png", bytes: 100, width: 600, height: 1800 },
        ],
        preview: true,
      };
      const view: ChatView = {
        controller: c,
        ctx: { state: {}, set: () => {}, app: { route: "chat", chatId: chat.id }, plugin: "chat", update() {}, run() {} },
      };
      const preview = tree(renderTranscript(view, chat)).items[0];
      transcript.items = [
        { id: "first-prompt", role: "user", blocks: [{ type: "text", text: "Inspect the asymmetric layout" }] },
      ];
      transcript.running = true;
      c.state.itemImages["first-prompt"] = ["wide", "portrait"];
      transcript.checkpoints.add("first-prompt");
      const confirmed = tree(renderTranscript(view, chat)).items[0];
      // Both states start with the established confirmed-row spacer and inset.
      for (const rendered of [preview, confirmed]) {
        assert.equal(rendered.paddingX, 8);
        assert.equal(rendered.children[0].padding, "small");
        assert.equal(rendered.children[0].children[0].height, 12);
        assert.ok(
          nodes(rendered).some((node) => node.id === "restore-first-prompt"),
          "action size is reserved before checkpoint arrival",
        );
        assert.deepEqual(nodes(rendered).filter((node) => node.type === "image").map((node) => node.id), ["wide", "portrait"]);
      }
      const geometry = (rendered: unknown) =>
        nodes(rendered).map((node) =>
          Object.fromEntries(
            [
              "type",
              "padding",
              "paddingX",
              "paddingY",
              "height",
              "width",
              "maxWidth",
              "gap",
              "alignItems",
              "justifyContent",
            ].map((key) => [key, node[key]]),
          ),
        );
      assert.deepEqual(
        geometry(preview),
        geometry(confirmed),
        "no reflow when the preview becomes a checkpointed message",
      );
    }),
  );
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.9latestNov 21, 2026>=5 <6349 KB5 permissionsListed
0.2.8Nov 16, 2026>=5 <6348.6 KB5 permissionsListed
0.2.7Nov 11, 2026>=5 <6314.3 KB5 permissionsListed
0.2.6Nov 9, 2026>=5 <6306.2 KB5 permissionsListed
0.2.5Oct 27, 2026>=2 <4178.6 KB5 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.