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 convergence/chat@0.2.4

Permissions in 0.2.4

  • 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

quote.test.ts1.7 KB
// A reply to a selection in an agent's message: the selection goes into the
// prompt box as a quote, an empty line above it and the caret below it.
import assert from "node:assert/strict";
import test from "node:test";
import { withQuote } from "./composer.ts";
import { renderAssistant } from "./views/rows.ts";
import { chat, harness, item, nodes } from "./ui-for-tests.test.ts";

test("a quote goes after what is typed, with an empty line above it", () => {
  const line = "We can also update the UI to match this change";
  assert.equal(withQuote("", line), `\n> ${line}\n`);
  assert.equal(withQuote("Thanks.", line), `Thanks.\n\n> ${line}\n`);
  // Trailing space and lines typed before it do not widen the gap.
  assert.equal(withQuote("Thanks.  \n\n\n", line), `Thanks.\n\n> ${line}\n`);
  // Every line is quoted, an empty one too, so paragraphs stay one quote.
  assert.equal(withQuote("", "First **bold**\n\nSecond"), "\n> First **bold**\n>\n> Second\n");
});

test("replying to a selection fills the prompt box and gives it the keyboard", async () => {
  const h = harness();
  const c = chat({ id: "c1" });
  h.controller.state.chats.c1 = c;
  h.controller.composer("c1").text = "Looks good.";
  const reply = item({ id: "a1", role: "assistant", text: "We can also update the UI to match this change" });
  const markdown = nodes(renderAssistant(h.v, c, reply as Parameters<typeof renderAssistant>[2])).find(
    (node) => node.type === "markdown",
  );
  assert.ok(markdown, "the reply is markdown");
  (markdown.onQuote as (event: { text: string }) => void)({ text: "update the UI" });
  await h.settle();
  assert.equal(h.controller.composer("c1").text, "Looks good.\n\n> update the UI\n");
  assert.deepEqual(h.focused, ["prompt-c1"]);
  await h.close();
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.5latestNov 21, 2026>=2 <4174.6 KB5 permissionsListed
0.2.4Oct 25, 2026>=2 <4174.2 KB5 permissionsListed
0.2.3Oct 24, 2026>=2 <4165.4 KB5 permissionsListed
0.2.2Oct 23, 2026>=2 <4165 KB5 permissionsListed
0.2.1Oct 6, 2026>=2 <3111.8 KB5 permissionsListed
0.2.0Oct 5, 2026>=2 <3105.1 KB5 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.