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.6
Permissions in 0.2.6
Files
clock.test.ts1.3 KB
import assert from "node:assert/strict";
import test from "node:test";
import * as Effect from "effect/Effect";
import { tick, type Drawn } from "./clock.ts";
import { chat, harness } from "./ui-for-tests.test.ts";
test("a running chat's working row counts every second while it shows seconds and every minute once it shows hours, streaming or not", async () => {
const h = harness();
const c = h.controller;
Effect.runSync(c.app.update({ route: "chat", chatId: "c" }));
c.state.chats.c = chat({ id: "c", status: "running" });
let draws = 0;
c.state.panes.c = { chatId: "c", view: { id: 1, update: () => void draws++, remove() {} } };
const t = c.transcript("c");
t.running = true;
t.started = 0;
const drawn: Drawn = new Map();
tick(c, drawn, 1_000);
tick(c, drawn, 1_400);
tick(c, drawn, 2_000);
assert.equal(draws, 2, "once for 1s and once for 2s, with nothing streaming in");
const hours = 3_600_000;
tick(c, drawn, hours + 1_000);
tick(c, drawn, hours + 30_000);
assert.equal(draws, 3, "1h 00m reads the same for its whole minute");
tick(c, drawn, hours + 60_000);
assert.equal(draws, 4);
t.running = false;
tick(c, drawn, hours + 120_000);
assert.equal(draws, 4, "an idle chat has nothing to count");
await h.close();
});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.