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

Permissions in 0.2.6

  • 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

reply.ts1.2 KB
// A reply to what is selected in a file, a diff or a Markdown preview goes
// to the chat plugin's prompt box, quoted with its place, while it runs.
import * as Effect from "effect/Effect";
import * as Stream from "effect/Stream";
import { Notify, Services } from "divergence/effect";
import type { EffectClient } from "divergence/effect";
import { quoteOf } from "./tabs.ts";
import type { CodeQuote, Tab } from "./tabs.ts";
import type { Chat } from "../chat/contract.ts";

export const makeReply = Effect.fn("Tabs.makeReply")(function* () {
  const services = yield* Services;
  const notify = yield* Notify;
  const scope = yield* Effect.scope;
  let chat: EffectClient<Chat> | undefined;
  yield* services.when<Chat>("divergence/chat").pipe(
    Stream.runForEach((option) =>
      Effect.sync(() => {
        chat = option._tag === "Some" ? option.value : undefined;
      }),
    ),
    Effect.forkIn(scope, { startImmediately: true }),
  );
  return Effect.fn("Tabs.reply")(function* (tab: Tab, quote: CodeQuote) {
    if (!chat) return yield* notify.error("Replies need the chat plugin.");
    yield* chat.quote({ text: quoteOf(tab.path, quote) }).pipe(Effect.catch((error) => notify.error(error.message)));
  });
});

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.