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.6

Permissions in 0.2.6

  • 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

clock.test.ts1.3 KB
import assert from "node:assert/strict";
import test from "node:test";
import * as Effect from "effect/Effect";
import { tick, type Drawn } from "./clock.ts";
import { chat, harness } from "./ui-for-tests.test.ts";

test("a running chat's working row counts every second while it shows seconds and every minute once it shows hours, streaming or not", async () => {
  const h = harness();
  const c = h.controller;
  Effect.runSync(c.app.update({ route: "chat", chatId: "c" }));
  c.state.chats.c = chat({ id: "c", status: "running" });
  let draws = 0;
  c.state.panes.c = { chatId: "c", view: { id: 1, update: () => void draws++, remove() {} } };
  const t = c.transcript("c");
  t.running = true;
  t.started = 0;
  const drawn: Drawn = new Map();

  tick(c, drawn, 1_000);
  tick(c, drawn, 1_400);
  tick(c, drawn, 2_000);
  assert.equal(draws, 2, "once for 1s and once for 2s, with nothing streaming in");

  const hours = 3_600_000;
  tick(c, drawn, hours + 1_000);
  tick(c, drawn, hours + 30_000);
  assert.equal(draws, 3, "1h 00m reads the same for its whole minute");
  tick(c, drawn, hours + 60_000);
  assert.equal(draws, 4);

  t.running = false;
  tick(c, drawn, hours + 120_000);
  assert.equal(draws, 4, "an idle chat has nothing to count");
  await h.close();
});

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.