Official
settings
Built-in settings 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/settings@0.2.4
Permissions in 0.2.4
Files
views/chat-import.tsx1.9 KB
// One preference and its live status, shared by agent onboarding and General.
import type { EffectViewContext } from "divergence/effect";
import type { ChatImport } from "../chat-import.ts";
import { column, setting } from "./layout.tsx";
export function renderChatImport(ctx: EffectViewContext<object>, imports: ChatImport["Service"]) {
return (
<div {...column} gap="medium">
{setting({
title: "Automatically import chats",
description:
"Import existing chats from enabled agents after adding project folders, at startup, and when agents become ready. The Plugins workspace is excluded.",
control: chatImportSwitch(ctx, imports),
})}
{chatImportStatus(ctx, imports)}
</div>
);
}
export const chatImportSwitch = (ctx: EffectViewContext<object>, imports: ChatImport["Service"]) =>
<switch id="auto-import-chats" label="" checked={imports.state.enabled} onChange={(e: { value: boolean }) => ctx.run(imports.setEnabled(e.value))} />;
// What the import is doing: under way, done, or what failed.
export function chatImportStatus(ctx: EffectViewContext<object>, imports: ChatImport["Service"]) {
const state = imports.state;
return [
state.enabled && state.running ? <div {...column} paddingX="medium"><text style="body" size="sm" tone="muted">Importing existing chats…</text></div> : null,
state.enabled && state.imported ? (
<div {...column} paddingX="medium">
<text style="body" size="sm" tone="muted">{`Imported ${state.imported} ${state.imported === 1 ? "chat" : "chats"}.`}</text>
</div>
) : null,
state.errors.length
? (
<callout tone="danger" title="Some chats could not be imported" text={state.errors.join("\n")}>
<button id="auto-import-retry" label="Retry imports" small disabled={state.running} onClick={() => ctx.run(imports.retry())} />
</callout>
)
: null,
];
}Versions
| Version | Published | Plugin API | Size | Permissions | Status |
|---|---|---|---|---|---|
| 0.2.8latest | Nov 21, 2026 | >=5 <6 | 68.5 KB | 7 permissions | Listed |
| 0.2.7 | Nov 18, 2026 | >=5 <6 | 68 KB | 7 permissions | Listed |
| 0.2.6 | Nov 16, 2026 | >=5 <6 | 66.3 KB | 7 permissions | Listed |
| 0.2.5 | Nov 11, 2026 | >=5 <6 | 63.6 KB | 7 permissions | Listed |
| 0.2.4 | Nov 9, 2026 | >=5 <6 | 61.6 KB | 7 permissions | Listed |
| 0.2.3 | Oct 27, 2026 | >=2 <4 | 46.8 KB | 7 permissions | Listed |
No comments yet.