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.8
Permissions in 0.2.8
Files
views/room.tsx1.3 KB
// How much room a chat's pane has, as the kernel last laid it out: a narrow or short pane gives
// the chat small insets, and a very narrow one a smaller headline on the new chat page.
import type { Element } from "divergence";
import type { ChatView } from "../controller.ts";
const sizes = new Map<string, { width: number; height: number }>();
export interface Room {
/** Narrower than 560 or shorter than 520: the insets around the chat shrink. */
readonly compact: boolean;
/** Narrower than 440: the new chat page's headline is smaller too. */
readonly tight: boolean;
}
export function roomOf(chatId: string): Room {
const size = sizes.get(chatId);
return { compact: !!size && (size.width < 560 || size.height < 520), tight: !!size && size.width < 440 };
}
/** An empty canvas under a chat's pane that reports its size; the view draws again when its room changes. */
export function measureRoom(v: ChatView, chatId: string): Element {
return (
<canvas
position="absolute"
left={0}
top={0}
width="100%"
height="100%"
commands={[]}
onResize={(e: { width: number; height: number }) => {
const before = roomOf(chatId);
sizes.set(chatId, e);
const after = roomOf(chatId);
if (before.compact !== after.compact || before.tight !== after.tight) v.ctx.update();
}}
/>
);
}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.