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
message-text.test.ts1.6 KB
import assert from "node:assert/strict";
import test from "node:test";
import { markedMessage } from "./message-text.ts";
import type { Known } from "./segments.ts";
const known: Known = {
mentions: [{ plugin: "agents", id: "codex", token: "codex", label: "Codex" }] as unknown as Known["mentions"],
skills: [{ name: "review" }],
commands: [{ name: "compact" }],
};
test("a sent message draws the commands, skills, agents and files it named as the prompt box's pills, and only those", () => {
assert.equal(markedMessage("/compact", [{ type: "text", text: "/compact" }], known), `[\`compact\`](<> "divergence:pill:square-slash")`);
assert.equal(
markedMessage("look at @src/main.ts with @codex", [{ type: "text", text: "look at @src/main.ts with @codex" }, { type: "file_ref", path: "src/main.ts" }], known),
'look at [`main.ts`](<src/main.ts> "divergence:pill:file") with [`codex`](<> "divergence:pill:bot")',
);
assert.equal(markedMessage("$review the diff", [{ type: "skill", name: "review", input: "the diff" }], known), '[`review`](<> "divergence:pill:sparkles") the diff');
// A file whose path has a space is one pill.
assert.equal(
markedMessage("read @docs/My Notes.md first", [{ type: "text", text: "read " }, { type: "file_ref", path: "docs/My Notes.md" }, { type: "text", text: " first" }], known),
'read [`My Notes.md`](<docs/My Notes.md> "divergence:pill:file") first',
);
// Words that only look like them stay as typed.
const loose = "/usr/bin is where @someone put a.b, and /compact here is not a command; @notes.md was never attached";
assert.equal(markedMessage(loose, [{ type: "text", text: loose }], known), loose);
});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.