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
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.ts";
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.loaded = true;
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: {}, 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, 22.5);
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
| 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.