knownfix 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +14 -11
  2. package/index.mjs +18 -8
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # KnownFix
2
2
 
3
- Connect an AI agent to [KnownFix](https://b-hash88.github.io/knownfix/), a
4
- catalog of 35 real development-error fixes: 33 verified in production, 2
5
- documented, and 10 available in full for free.
3
+ Connect an AI agent to [KnownFix](https://knownfix-backend-28.b-hash88.deno.net/),
4
+ a catalog of 36 real development-error fixes: 33 verified in production, 3
5
+ documented, and 11 available in full for free.
6
6
 
7
7
  ```bash
8
8
  npx knownfix search "your exact error"
@@ -25,23 +25,26 @@ bridge for clients without remote HTTP support.
25
25
 
26
26
  ## Buying safely
27
27
 
28
- Search and free samples require no account or API key. A paid fix or skill uses
29
- a one-hour signed bearer offer bound to one product and an offer-specific exact
30
- wei amount on Base mainnet:
28
+ Search and free samples require no account or API key. A paid search result
29
+ includes a free diagnosis preview, compatibility, dollar price, signed USDC and
30
+ ETH offers, and one recommended redemption action. For direct checkout:
31
31
 
32
- 1. Call the MCP `get_offer` tool with `productType` and `productId`.
32
+ 1. Call `get_offer` with `productType`, `productId`, and `currency` (`USDC` or
33
+ `ETH`), or use the offer already returned by `search_fixes`.
33
34
  2. Keep the returned `paymentOffer` token private.
34
- 3. Send exactly `priceWei` to `payTo` on chain 8453.
35
+ 3. Use the signed Base Pay parameters for USDC or send exactly `priceWei` for
36
+ ETH on Base mainnet, chain 8453.
35
37
  4. Call `get_fix` or `get_skill` with both `paymentTx` and `paymentOffer`.
36
38
 
37
39
  The transaction and offer are atomically single-use. Inspect the public
38
40
  [books](https://knownfix-backend-28.b-hash88.deno.net/books) and
39
- [buyer-safety guide](https://b-hash88.github.io/knownfix/notes-for-agents.md)
40
- before paying.
41
+ [agent-readable store guide](https://knownfix-backend-28.b-hash88.deno.net/llms.txt)
42
+ before paying. The **npm Publishing Recovery Pack** bundles five fixes plus a
43
+ current decision tree and release verification procedure for $4 USDC.
41
44
 
42
45
  ## Commands
43
46
 
44
- - `search "<error>"` — free ranked match and storefront link
47
+ - `search "<error>"` — ranked match and purchase-ready checkout summary
45
48
  - `config <client>` — client-specific MCP configuration
46
49
  - `tools` — live MCP tool list
47
50
  - `books` — live request-to-sale funnel
package/index.mjs CHANGED
@@ -16,12 +16,12 @@ const MCP_URL = `${REMOTE}/mcp`;
16
16
  const [cmd, ...rest] = process.argv.slice(2);
17
17
 
18
18
  const INTRO = `KnownFix — cataloged fixes for real errors, sold per-lookup to AI agents.
19
- Free to search; 35 fixes (33 verified in production, 2 documented), with 10 free
20
- in full. Paid fixes start near $0.08 on Base mainnet. No buyer account or API key.
21
- Paid redemption uses a private, product-bound signed offer. Test our claims first.
22
-
23
- Remote MCP server (Streamable HTTP): ${MCP_URL}
24
- Storefront + llms.txt: ${REMOTE.includes("deno.net") ? "https://b-hash88.github.io/knownfix/" : REMOTE}
19
+ Free to search; 36 fixes (33 verified in production, 3 documented), with 11 free
20
+ in full. Paid fixes cost $0.05 USDC or signed exact ETH on Base mainnet. Search
21
+ returns a diagnosis preview and purchase-ready offers. No buyer account or API key.
22
+
23
+ Remote MCP server (Streamable HTTP): ${MCP_URL}
24
+ Store guide + product catalog: ${REMOTE}/llms.txt
25
25
 
26
26
  Commands:
27
27
  npx knownfix config <client> MCP config snippet (claude | cursor | codex | vscode | langchain | crewai | raw)
@@ -131,7 +131,17 @@ async function main() {
131
131
  for (const m of out.matches) {
132
132
  console.log(` ${m.id} (${m.match ?? m.score}, ${m.confidence}${m.sample ? ", free" : ", paid"})`);
133
133
  }
134
- console.log(`\nReview the top match: https://b-hash88.github.io/knownfix/fixes/${out.matches[0].id}.html`);
134
+ const top = out.matches[0];
135
+ const purchase = out.purchase;
136
+ if (purchase?.checkout === "ready") {
137
+ console.log(`\nLikely cause: ${purchase.diagnosisPreview?.likelyCause || "A stocked failure mode matches this signature."}`);
138
+ console.log(`Price: ${purchase.price?.usd || "$0.05"} ${purchase.price?.currency || "USD"}`);
139
+ console.log("Next: connect the MCP server and use the private purchase object from search_fixes, or call get_offer.");
140
+ console.log("The signed paymentOffer is intentionally not printed by this CLI.");
141
+ } else if (out.topMatchTier === "free-sample") {
142
+ console.log("\nThe complete free fix is included in the MCP search result.");
143
+ }
144
+ console.log(`\nMachine-readable store guide: ${REMOTE}/llms.txt`);
135
145
  return;
136
146
  }
137
147
 
@@ -143,7 +153,7 @@ async function main() {
143
153
  const { ListToolsRequestSchema, CallToolRequestSchema } = await import(
144
154
  "@modelcontextprotocol/sdk/types.js"
145
155
  );
146
- const server = new Server({ name: "knownfix-bridge", version: "0.2.3" }, { capabilities: { tools: {} } });
156
+ const server = new Server({ name: "knownfix-bridge", version: "0.3.1" }, { capabilities: { tools: {} } });
147
157
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: (await rpc("tools/list")).tools }));
148
158
  server.setRequestHandler(CallToolRequestSchema, async (req) =>
149
159
  rpc("tools/call", { name: req.params.name, arguments: req.params.arguments ?? {} })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "knownfix",
3
- "version": "0.2.3",
4
- "description": "MCP storefront for 35 cataloged dev-error fixes: free search, 10 full free fixes, signed product-bound offers, and Base-mainnet settlement. Works with Claude, Cursor, Codex, VS Code, LangChain, and CrewAI.",
3
+ "version": "0.3.1",
4
+ "description": "MCP storefront for 36 dev-error fixes: purchase-ready search, 11 free fixes, signed USDC or ETH offers, and premium recovery packs on Base.",
5
5
  "type": "module",
6
6
  "bin": { "knownfix": "index.mjs" },
7
7
  "mcpName": "io.github.b-hash88/knownfix",
@@ -22,7 +22,7 @@
22
22
  "knownfix",
23
23
  "agent-commerce"
24
24
  ],
25
- "homepage": "https://b-hash88.github.io/knownfix/",
25
+ "homepage": "https://knownfix-backend-28.b-hash88.deno.net/",
26
26
  "repository": { "type": "git", "url": "git+https://github.com/b-hash88/knownfix.git" },
27
27
  "license": "MIT",
28
28
  "engines": { "node": ">=18" },