Official

tabs

The tabbed detail pane beside the chat: files to edit and diffs (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/tabs@0.2.5

Permissions in 0.2.5

  • Read files fs.readMediumReads files in the listed places.Open workspace files in tabsPlaces: the open workspace
  • Write files fs.writeMediumCreates, changes and deletes files in the listed places.Save the files edited in tabsPlaces: the open workspace
  • Read chats chats.readMediumReads your transcripts and chat lists.Reload the open files when an agent finishes a turn, and find the folders of the workspaces whose files the tabs follow
  • Read git status and diffs git.readLowReads git status and diffs.Read a file's changes for a diff tab dragged from Source Control or brought back after a restart

Files

diagrams.ts1.3 KB
// A diagram's source is kept with its tab in the plugin's storage, so the
// tab draws it again after a restart, and goes when the tab closes.
import * as Effect from "effect/Effect";
import { Storage } from "divergence/effect";
import { diagramKey, storedDiagram } from "./tabs.ts";
import type { Tab, TabsState } from "./tabs.ts";

export const makeDiagrams = Effect.fn("Tabs.makeDiagrams")(function* (state: TabsState, redraw: () => void) {
  const storage = yield* Storage;
  const keep = (tab: Tab) =>
    storage
      .set(diagramKey(tab.id), { source: tab.source, language: tab.language, title: tab.title })
      .pipe(Effect.ignore({ log: "Warn", message: "Could not keep the diagram's source" }));
  const restore = Effect.fn("Tabs.restoreDiagram")(function* (tab: Tab) {
    const kept = yield* storage
      .get(diagramKey(tab.id), storedDiagram)
      .pipe(Effect.catch((error) => Effect.as(Effect.logWarning(`tabs: could not read a diagram's source: ${error.message}`), undefined)));
    if (kept) Object.assign(tab, kept);
    else state.contents[tab.id] = { error: "This diagram is no longer available." };
    redraw();
  });
  const drop = (id: string) => storage.set(diagramKey(id), null).pipe(Effect.ignore({ log: "Warn", message: "Could not drop the diagram's source" }));
  return { keep, restore, drop };
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.7latestNov 21, 2026>=5 <635.3 KB4 permissionsListed
0.2.6Nov 11, 2026>=5 <635 KB4 permissionsListed
0.2.5Nov 11, 2026>=5 <634.9 KB4 permissionsListed
0.2.4Nov 9, 2026>=5 <630 KB4 permissionsListed
0.2.3Oct 27, 2026>=2 <422 KB4 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.