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.7

Permissions in 0.2.7

  • Manage plugins plugins.manageOfficial onlyReloads and enables plugins. Only official plugins can have it.List, enable, disable and reload plugins, install updates, and quit to finish an update
  • Change app settings settings.writeHighChanges the app settings.Change the settings and the theme
  • Manage agents agents.manageHighEnables, disables and signs in agents, and changes their settings.Turn agents on and off, sign in to them and update them
  • Control chats chats.controlHighCreates chats, sends prompts and cancels runs.Add project folders, and open the first chat and the changes saved in the first-run guide
  • Read chats chats.readMediumReads your transcripts and chat lists.Hold an agent's update until its chats stop running
  • Read app settings settings.readLowReads the app settings.Show the settings, and the tools and rules of every plugin
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Draw settings, its list of sections in the sidebar's place, and the first-run guideSlots: centerleft

Files

views/archived.tsx2.9 KB
// The Archived Chats section: every archived chat under its workspace, the
// most recently archived first, with Restore and Delete. Delete asks first.
// HTM whitespace is significant; keep these templates out of Prettier's HTML formatter.
import type { EffectViewContext } from "divergence/effect";
import type { SettingsPage } from "../controller.ts";
import { archivedGroups } from "../model.ts";
import { relativeTime } from "../../sdk/ui/time.ts";
import { card, column, row, section, setting } from "./layout.tsx";

export function renderArchived(ctx: EffectViewContext<object>, actions: SettingsPage["Service"]) {
  const archived = actions.archived;
  const { chats, error, deleting } = archived.state;
  const failed = error
    ? <callout title="Could not read the archived chats" text={error}><button id="archived-retry" label="Try again" small variant="outline" onClick={() => ctx.run(archived.load())} /></callout>
    : null;
  if (!chats) return failed;
  const groups = archivedGroups(actions.state.workspaces, chats);
  if (!groups.length) return failed ?? <empty>No archived chats.</empty>;
  const agentName = (id: string) => actions.state.agents.find((agent) => agent.id === id)?.name ?? id;
  const cancel = () => ctx.run(archived.askDelete(null));
  return (
    <div {...column} gap="large" padding="small">
      {failed}
      {groups.map(({ workspace, chats }) =>
                section(
                  workspace.name,
                  null,
                  card(chats.map((chat) =>
                      setting({
                        title: chat.title,
                        description: `${agentName(chat.agentId)} · Archived ${relativeTime(chat.updatedAt, "session")}`,
                        control: (
                          <div {...row} gap="small">
                            <button id={`restore-${chat.id}`} label="Restore" variant="outline" small onClick={() => ctx.run(archived.restore(chat))} />
                            <button id={`delete-${chat.id}`} label="Delete" variant="ghost" small onClick={() => ctx.run(archived.askDelete(chat))} />
                          </div>
                        ),
                      }),
                    )),
                ),
              )}
      {deleting
                ? (
                  <overlay id="delete-ask" open width={380} onDismiss={cancel}>
                    <column padding="medium" gap="medium">
                      <text style="body">{`Delete “${deleting.title}”? This cannot be undone.`}</text>
                      <row gap="small" justifyContent="end">
                        <button id="delete-ask-cancel" label="Cancel" variant="ghost" small onClick={cancel} />
                        <button id="delete-ask-confirm" label="Delete" variant="danger" small onClick={() => ctx.run(archived.confirmDelete())} />
                      </row>
                    </column>
                  </overlay>
                )
                : null}
    </div>
  );
}

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.8latestNov 21, 2026>=5 <668.5 KB7 permissionsListed
0.2.7Nov 18, 2026>=5 <668 KB7 permissionsListed
0.2.6Nov 16, 2026>=5 <666.3 KB7 permissionsListed
0.2.5Nov 11, 2026>=5 <663.6 KB7 permissionsListed
0.2.4Nov 9, 2026>=5 <661.6 KB7 permissionsListed
0.2.3Oct 27, 2026>=2 <446.8 KB7 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.