From eb2cd6aa41f2b46642e8f0577130031ac5ce94c4 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 22 Nov 2026 20:26:05 +0000 Subject: [PATCH] 0.3.1: CheapestWayz in the catalog, on by default (sign-in on first use) Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- index.d.ts | 4 +++- package.json | 2 +- src/catalog.js | 12 ++++++++++++ src/money.js | 3 ++- test/docs.test.js | 2 +- test/loop.test.js | 8 ++++++-- test/money.test.js | 2 +- 8 files changed, 27 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index aecf85b..97f16bf 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Tool results keep the full text for the UI (`text`) and a ~16 KB cut for the mod ## Catalog -`CATALOG` ships c0mpute hosting and ThreatCrush. `makeCatalog(extra, { replace })` merges your +`CATALOG` ships c0mpute hosting, ThreatCrush and CheapestWayz (on by default: `default: true`, sign-in on first use). `makeCatalog(extra, { replace })` merges your own entries (an entry with an empty `url` removes a built-in one). ## Server-side safety diff --git a/index.d.ts b/index.d.ts index 21d946c..73ed419 100644 --- a/index.d.ts +++ b/index.d.ts @@ -159,6 +159,8 @@ export interface CatalogEntry { description?: string; homepage?: string; icon?: string; + /** On for every account (in DEFAULT_PLUGINS): listed and switched on, signed in on first use. */ + default?: boolean; } export interface OpenAITool { @@ -356,7 +358,7 @@ export interface ActionSummary { } export const MODEL_CAN_BE_WRONG: string; export const FINANCE_CATALOG: readonly FinanceCatalogEntry[]; -/** Everything on for every account: money plugins (sign-in on first use), then docs plugins (auth "none"). */ +/** Everything on for every account: money plugins (sign-in on first use), docs plugins (auth "none"), then CATALOG defaults (sign-in on first use). */ export const DEFAULT_PLUGINS: readonly FinanceCatalogEntry[]; export const DOCS_CATALOG: readonly DocsCatalogEntry[]; /** The one-line CLI command that registers an entry, e.g. `claude mcp add --transport http `. */ diff --git a/package.json b/package.json index 5011811..e5e38fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@profullstack/chat-plugins", - "version": "0.3.0", + "version": "0.3.1", "type": "module", "description": "Chat plugins = remote MCP servers, with less hoops than connectors: paste a URL or pick from a catalog, sign-in is automatic (OAuth 2.1 + DCR + PKCE), and an agent loop runs the tools even on models with no native tool calling. Zero dependencies.", "keywords": [ diff --git a/src/catalog.js b/src/catalog.js index 8f3c0c2..1032b89 100644 --- a/src/catalog.js +++ b/src/catalog.js @@ -18,6 +18,18 @@ export const CATALOG = Object.freeze([ description: "File-hash, IP and domain reputation, plus your org's scan and pentest findings.", homepage: "https://threatcrush.com", }), + // On by default (DEFAULT_PLUGINS): reading works without an account; earning tools (referral + // link, earnings) and posting sign in on first use with OAuth 2.1, by email link or CoinPay. + Object.freeze({ + slug: "cheapestwayz", + name: "CheapestWayz", + url: "https://cheapestwayz.com/mcp", + description: + "Find the cheapest way to get something done: priced DIY, online and local-business methods ranked by cost, local quote requests, and your referral link and earnings. Sign in with your CheapestWayz email link or CoinPay.", + homepage: "https://cheapestwayz.com", + icon: "https://cheapestwayz.com/favicon.svg", + default: true, + }), ]); /** diff --git a/src/money.js b/src/money.js index 4982761..738a4af 100644 --- a/src/money.js +++ b/src/money.js @@ -13,6 +13,7 @@ // imports: describeAction() also runs in the browser. import { DOCS_CATALOG } from "./docs.js"; +import { CATALOG } from "./catalog.js"; export const MODEL_CAN_BE_WRONG = "The model can be wrong. You decide: nothing here runs until you approve it."; export const FINANCE_CATALOG = Object.freeze([ @@ -46,7 +47,7 @@ export const FINANCE_CATALOG = Object.freeze([ ]); // Everything apps switch on for every account: the money plugins each person // signs in to, then the docs plugins that need no sign-in (auth: "none"). -export const DEFAULT_PLUGINS = Object.freeze([...FINANCE_CATALOG.filter((e) => e.default), ...DOCS_CATALOG.filter((e) => e.default)]); +export const DEFAULT_PLUGINS = Object.freeze([...FINANCE_CATALOG.filter((e) => e.default), ...DOCS_CATALOG.filter((e) => e.default), ...CATALOG.filter((e) => e.default)]); const MERCURY_READ = new Set([ "getCurrentDate", "getAccount", diff --git a/test/docs.test.js b/test/docs.test.js index 831afd7..fedb362 100644 --- a/test/docs.test.js +++ b/test/docs.test.js @@ -7,7 +7,7 @@ describe("docs plugins", () => { expect(ms.url).toBe("https://learn.microsoft.com/api/mcp"); expect(ms.default).toBe(true); expect(ms.auth).toBe("none"); - expect(DEFAULT_PLUGINS.map((d) => d.slug)).toEqual(["mercury", "coinpay", "microsoft-learn"]); + expect(DEFAULT_PLUGINS.map((d) => d.slug)).toEqual(["mercury", "coinpay", "microsoft-learn", "cheapestwayz"]); // Not a money plugin: no confirmation policy applies. expect(policyFor(ms.url)).toBeNull(); }); diff --git a/test/loop.test.js b/test/loop.test.js index bda5624..f2ada27 100644 --- a/test/loop.test.js +++ b/test/loop.test.js @@ -201,11 +201,15 @@ describe("seal", () => { }); describe("catalog + ssrf helpers", () => { - test("catalog has c0mpute and threatcrush, overridable", () => { + test("catalog has c0mpute, threatcrush and cheapestwayz, overridable", () => { expect(CATALOG.find((e) => e.slug === "c0mpute").url).toBe("https://c0mpute.com/api/mcp"); expect(CATALOG.find((e) => e.slug === "threatcrush").url).toBe("https://threatcrush.com/api/mcp"); + const cwz = CATALOG.find((e) => e.slug === "cheapestwayz"); + expect(cwz.url).toBe("https://cheapestwayz.com/mcp"); + expect(cwz.default).toBe(true); + expect(cwz.auth).toBeUndefined(); // sign-in on first use, never a shared account const c = makeCatalog([{ slug: "mine", name: "Mine", url: "https://mine.example/mcp" }, { slug: "threatcrush", name: "x", url: "" }]); - expect(c.map((e) => e.slug)).toEqual(["c0mpute", "mine"]); + expect(c.map((e) => e.slug)).toEqual(["c0mpute", "cheapestwayz", "mine"]); }); test("resolvePluginInput", () => { expect(resolvePluginInput("c0mpute")).toMatchObject({ slug: "c0mpute", url: "https://c0mpute.com/api/mcp" }); diff --git a/test/money.test.js b/test/money.test.js index 8cbe441..2bc0f5d 100644 --- a/test/money.test.js +++ b/test/money.test.js @@ -3,7 +3,7 @@ import { applyPolicy, DEFAULT_PLUGINS, describeAction, FINANCE_CATALOG, needsApp describe("money plugin catalog", () => { test("Mercury and CoinPay are on by default; moomoo is listed but off", () => { - expect(DEFAULT_PLUGINS.filter((d) => d.auth !== "none").map((d) => d.slug).sort()).toEqual(["coinpay", "mercury"]); + expect(DEFAULT_PLUGINS.filter((d) => d.auth !== "none").map((d) => d.slug).sort()).toEqual(["cheapestwayz", "coinpay", "mercury"]); const moomoo = FINANCE_CATALOG.find((e) => e.slug === "moomoo"); expect(moomoo.default).toBe(false); expect(moomoo.description).toContain("you decide");