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 convergence/market@0.1.1
Permissions in 0.1.1
Files
remote.test.ts2 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 "convergence/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: "convergence/acp",
name: "acp",
publisher: { id: "pub_convergence", name: "convergence", 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, "convergence");
});
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);
});
No comments yet.