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.5
Permissions in 0.2.5
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
| Version | Published | Plugin API | Size | Permissions | Status |
|---|---|---|---|---|---|
| 0.2.5latest | Nov 21, 2026 | >=2 <4 | 174.6 KB | 5 permissions | Listed |
| 0.2.4 | Oct 25, 2026 | >=2 <4 | 174.2 KB | 5 permissions | Listed |
| 0.2.3 | Oct 24, 2026 | >=2 <4 | 165.4 KB | 5 permissions | Listed |
| 0.2.2 | Oct 23, 2026 | >=2 <4 | 165 KB | 5 permissions | Listed |
| 0.2.1 | Oct 6, 2026 | >=2 <3 | 111.8 KB | 5 permissions | Listed |
| 0.2.0 | Oct 5, 2026 | >=2 <3 | 105.1 KB | 5 permissions | Listed |
No comments yet.