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.9
Permissions in 0.2.9
Files
contract.ts1.9 KB
// The divergence/chat service: what the chat view knows that the sidebar
// shows too, the chats with a prompt waiting in the queue, the titles of
// unsent drafts and the chats whose sent prompt is starting a run the host
// has not reported yet. Read once, then followed through events.
import * as z from "zod";
import { defineService } from "divergence/services";
import { selectedChat } from "./input-schema.ts";
export const QueuedChats = z.array(z.string());
export const DraftTitles = z.record(z.string(), z.string());
export const StartingChats = z.array(z.string());
export const Chat = defineService("divergence/chat", "1.7.0", {
methods: {
queued: { params: z.object({}), result: QueuedChats },
draftTitles: { params: z.object({}), result: DraftTitles },
starting: { params: z.object({}), result: StartingChats },
submitDraft: { params: z.object({ chatId: z.string(), queue: z.boolean() }), result: z.null() },
// Takes a queued chat out of the queue; it stays a draft.
unqueue: { params: z.object({ chatId: z.string() }), result: z.null() },
// Reads the chat's transcript ahead of time: the pointer is on its row.
prefetch: { params: z.object({ chatId: z.string() }), result: z.null() },
// Builds the page of the draft New chat opens next, ahead of the key, and
// keeps it built; the host keeps that draft out of the lists until then.
prepareNewChat: { params: z.object({ chat: selectedChat }), result: z.null() },
// Puts Markdown in the open chat's prompt box as a quote, after what is
// typed, and gives the box the keyboard: a reply to code in a tab.
quote: {
params: z.object({ text: z.string() }),
result: z.null(),
errors: [z.object({ _tag: z.literal("NoOpenChat"), message: z.string() })],
},
},
events: {
queuedChanged: QueuedChats,
draftTitlesChanged: DraftTitles,
startingChanged: StartingChats,
},
});
export type Chat = typeof Chat;Versions
| Version | Published | Plugin API | Size | Permissions | Status |
|---|---|---|---|---|---|
| 0.2.9latest | Nov 21, 2026 | >=5 <6 | 349 KB | 5 permissions | Listed |
| 0.2.8 | Nov 16, 2026 | >=5 <6 | 348.6 KB | 5 permissions | Listed |
| 0.2.7 | Nov 11, 2026 | >=5 <6 | 314.3 KB | 5 permissions | Listed |
| 0.2.6 | Nov 9, 2026 | >=5 <6 | 306.2 KB | 5 permissions | Listed |
| 0.2.5 | Oct 27, 2026 | >=2 <4 | 178.6 KB | 5 permissions | Listed |
No comments yet.