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
message-text.test.ts1.5 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 marks the commands, skills, agents and files it named, and only those", () => {
assert.equal(markedMessage("/compact", [{ type: "text", text: "/compact" }], known), "`/compact`");
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>) with `@codex`",
);
assert.equal(markedMessage("$review the diff", [{ type: "skill", name: "review", input: "the diff" }], known), "`$review` the diff");
// A file whose path has a space is one link.
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>) 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.