@pnllabs/plugin-pnllabs 1.0.0 → 1.0.2

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 (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +22 -3
package/dist/index.js CHANGED
@@ -7,7 +7,12 @@ async function callApi(path) {
7
7
  headers: { Accept: "application/json" }
8
8
  });
9
9
  if (res.status === 402) {
10
- return "This PnL Labs check requires payment via x402 (USDC on Solana). Your daily free tier is used up \u2014 pay-per-call with any x402 client.";
10
+ const requirements = await res.json().catch(() => null);
11
+ return JSON.stringify({
12
+ payment_required: true,
13
+ message: "Daily free tier for this IP is used up. This check stays available pay-per-call via x402 (USDC on Solana) \u2014 no signup, no API key. Pay with any x402 client and retry with the X-PAYMENT header.",
14
+ x402: requirements
15
+ });
11
16
  }
12
17
  const data = await res.json();
13
18
  return JSON.stringify(data);
package/package.json CHANGED
@@ -1,8 +1,23 @@
1
1
  {
2
2
  "name": "@pnllabs/plugin-pnllabs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Trust & risk verdicts for AI trading agents on Solana: realized-PnL wallet trust (not peak scores), wallet funding forensics, token safety, and trade cost. Pay-per-call via x402, free tier to try.",
5
- "keywords": ["plugin", "elizaos", "solana", "x402", "trading", "defi", "wallet", "trust", "risk"],
5
+ "keywords": [
6
+ "elizaos",
7
+ "elizaos-plugin",
8
+ "elizaos-plugins",
9
+ "eliza",
10
+ "plugin",
11
+ "agent",
12
+ "ai-agent",
13
+ "solana",
14
+ "x402",
15
+ "trading",
16
+ "defi",
17
+ "wallet",
18
+ "trust",
19
+ "risk"
20
+ ],
6
21
  "type": "module",
7
22
  "main": "dist/index.js",
8
23
  "module": "dist/index.js",
@@ -13,7 +28,11 @@
13
28
  "types": "./dist/index.d.ts"
14
29
  }
15
30
  },
16
- "files": ["dist", "README.md", "images"],
31
+ "files": [
32
+ "dist",
33
+ "README.md",
34
+ "images"
35
+ ],
17
36
  "scripts": {
18
37
  "build": "tsup src/index.ts --format esm --dts --clean"
19
38
  },