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
Files
remote.test.ts2.1 KB
// The registry's answers as it sends them. Run with
// `node --import ./testing/register.mjs --test market/remote.test.ts`.
import assert from "node:assert/strict";
import { test } from "node:test";
import * as Effect from "effect/Effect";
import { parse } from "divergence/effect";
import { accountSchema, commentsSchema, searchAnswerSchema } from "./remote.ts";
test("a listing without a display name or a rating reads as having none", () => {
const answer = searchAnswerSchema.parse({
results: [
{
id: "divergence/acp",
name: "acp",
publisher: { id: "pub_divergence", name: "divergence", displayName: null, verified: true },
latestVersion: "0.2.0",
downloads: 0,
rating: null,
createdAt: "2026-10-05T03:02:47Z",
},
],
total: 1,
});
const [listing] = answer.results ?? [];
assert.equal(listing?.publisher?.displayName, null);
assert.equal(listing?.rating, null);
assert.equal(listing?.publisher?.name, "divergence");
});
test("an answer in another shape fails with a message that names the field", async () => {
const error = await Effect.runPromise(
Effect.flip(parse("market search", searchAnswerSchema, { results: [{ id: 7 }] })),
);
assert.equal(error._tag, "ParseFailed");
assert.match(error.message, /market search/);
assert.match(error.message, /results\.0\.id/);
});
test("a comment of a deleted user, without stars or version, and an account without a publisher parse", () => {
const comments = commentsSchema.parse({
threads: [
{
id: "c1",
user: null,
body: "Nice",
stars: null,
pluginVersion: null,
replies: [{ id: "r1", user: { name: null } }],
},
],
});
assert.equal(comments.threads?.[0]?.user, null);
const account = accountSchema.parse({ signedIn: true, registry: "https://r", account: { publisher: null } });
assert.equal(account.signedIn, true);
const listing = searchAnswerSchema.parse({ results: [{ id: "a/b", description: null, latestVersion: null }] });
assert.equal(listing.results?.[0]?.description, null);
});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.