Official

market

The plugin marketplace: browse, install through an agent's scan, update and publish plugins, and the marketplace tools of agents in the Plugins workspace.

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/market@0.1.5

Permissions in 0.1.5

  • Marketplace marketOfficial onlyUses the marketplace APIs. Only official plugins can have it.Search, read, install, update and publish marketplace plugins, and sign in to the marketplace
  • Manage plugins plugins.manageOfficial onlyReloads and enables plugins. Only official plugins can have it.Ask for the enable card of a plugin an agent installed
  • Control chats chats.controlHighCreates chats, sends prompts and cancels runs.Open the chat in the Plugins workspace where an agent scans, installs or updates a plugin
  • Provide agent tools tools.provideMediumGives tools to agents.Give agents in the Plugins workspace the marketplace tools
  • Read chats chats.readMediumReads your transcripts and chat lists.Find the agent, model and effort last used in the Plugins workspace
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Show the marketplace pageSlots: center

Files

contract.ts1.7 KB
// The divergence/market service: the plugin updates the marketplace offers,
// for the update button at the foot of the sidebar, and Update for one of
// them, which replaces it or opens the chat that merges it, as the Updates
// tab does. Only official plugins may call it. Zod is the contract; the
// host checks every call, result and event against it.
import * as z from "zod";
import { defineService } from "divergence/services";

// An installed plugin with a newer installable release that is not marked
// malicious. `direct` when Update replaces it in place (an official plugin
// you did not change) rather than opening a chat that merges it.
export const PluginUpdate = z.object({ id: z.string(), folder: z.string(), installed: z.string().nullable(), latest: z.string(), direct: z.boolean() });
export type PluginUpdate = z.infer<typeof PluginUpdate>;
export const PluginUpdates = z.array(PluginUpdate);

export const Market = defineService("divergence/market", "1.1.0", {
  access: "official",
  methods: {
    updates: { params: z.object({}), result: PluginUpdates },
    // Asks the registry again, as Check now does, without a notice.
    check: {
      params: z.object({}),
      result: PluginUpdates,
      errors: [z.object({ _tag: z.literal("CheckFailed"), message: z.string() })],
    },
    // `{}`, not `null`: a host of 0.1.11 or earlier drops a `null` answer,
    // and the caller would wait forever.
    update: {
      params: z.object({ folder: z.string() }),
      result: z.object({}),
      errors: [z.object({ _tag: z.literal("UpdateFailed"), message: z.string() })],
    },
  },
  events: {
    updatesChanged: PluginUpdates,
  },
});
export type Market = typeof Market;

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.1.6latestNov 21, 2026>=5 <671.9 KB6 permissionsListed
0.1.5Nov 18, 2026>=5 <671.4 KB6 permissionsListed
0.1.4Nov 16, 2026>=5 <670.5 KB6 permissionsListed
0.1.3Nov 11, 2026>=5 <662.7 KB6 permissionsListed
0.1.2Nov 9, 2026>=5 <657.5 KB6 permissionsListed
0.1.1Oct 27, 2026>=2 <446.2 KB6 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.