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.6
Permissions in 0.1.6
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
| Version | Published | Plugin API | Size | Permissions | Status |
|---|---|---|---|---|---|
| 0.1.6latest | Nov 21, 2026 | >=5 <6 | 71.9 KB | 6 permissions | Listed |
| 0.1.5 | Nov 18, 2026 | >=5 <6 | 71.4 KB | 6 permissions | Listed |
| 0.1.4 | Nov 16, 2026 | >=5 <6 | 70.5 KB | 6 permissions | Listed |
| 0.1.3 | Nov 11, 2026 | >=5 <6 | 62.7 KB | 6 permissions | Listed |
| 0.1.2 | Nov 9, 2026 | >=5 <6 | 57.5 KB | 6 permissions | Listed |
| 0.1.1 | Oct 27, 2026 | >=2 <4 | 46.2 KB | 6 permissions | Listed |
No comments yet.