@aifinpay/skill 2.15.0 → 2.17.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +10 -2
- package/CHANGELOG.md +79 -0
- package/README.md +13 -1
- package/agent/skills/aifinpay/SKILL.md +80 -345
- package/agent/skills/aifinpay/references/dev-mode.md +27 -0
- package/agent/skills/aifinpay/references/history.md +45 -0
- package/agent/skills/aifinpay/references/networks.md +125 -0
- package/agent/skills/aifinpay/references/recovery.md +23 -0
- package/agent/skills/aifinpay/references/sdk.md +83 -0
- package/agent/skills/aifinpay/references/wallet.md +67 -0
- package/agent/skills/aifinpay-aifp-payment-protocol/SKILL.md +221 -0
- package/agent/skills/aifinpay-claude-agents-usage/SKILL.md +315 -0
- package/agent/skills/aifinpay-licensing/SKILL.md +173 -0
- package/agent/skills/aifinpay-merchant/SKILL.md +16 -1
- package/agent/skills/aifinpay-setup/SKILL.md +251 -0
- package/agent/skills/aifinpay-wallet/SKILL.md +5 -2
- package/package.json +8 -4
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"name": "aifinpay",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"description": "Payment rail skills for paying agents, their wallets and API merchants.",
|
|
15
|
-
"version": "2.
|
|
15
|
+
"version": "2.17.1",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "AiFinPay Support",
|
|
18
18
|
"email": "contact@aifinpay.io"
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aifinpay",
|
|
3
3
|
"description": "Payment rail for AI agents: pay for x402 APIs, manage the agent wallet, or charge agents for yours.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.17.1",
|
|
5
5
|
"author": { "name": "AiFinPay Support" },
|
|
6
6
|
"homepage": "https://aifinpay.io",
|
|
7
7
|
"repository": "https://github.com/AiFinPay/skill",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"skills": [
|
|
9
|
+
"skills": [
|
|
10
|
+
"./agent/skills/aifinpay",
|
|
11
|
+
"./agent/skills/aifinpay-wallet",
|
|
12
|
+
"./agent/skills/aifinpay-merchant",
|
|
13
|
+
"./agent/skills/aifinpay-setup",
|
|
14
|
+
"./agent/skills/aifinpay-licensing",
|
|
15
|
+
"./agent/skills/aifinpay-claude-agents-usage",
|
|
16
|
+
"./agent/skills/aifinpay-aifp-payment-protocol"
|
|
17
|
+
]
|
|
10
18
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
|
+
## 2.17.1 — payer guide split into references, facts checked against the SDK
|
|
2
|
+
|
|
3
|
+
- `aifinpay`: `SKILL.md` keeps what a first payment on Polygon needs (46 KB →
|
|
4
|
+
30 KB). Other networks and Solana, pending-payment recovery, wallet sources
|
|
5
|
+
and encryption, history routes and economics, SDK code and dev mode moved to
|
|
6
|
+
`references/*.md`, read on demand; the guide lists them in "Reference files"
|
|
7
|
+
with their GitHub URL, since the MCP server serves `SKILL.md` alone. New
|
|
8
|
+
short sections: "When something fails after signing" (never pay again,
|
|
9
|
+
recover the receipt) and "Wallet"; the 1000 USD KYC limit stays in the guide.
|
|
10
|
+
- `npm run check:facts`: checks every guide against an SDK checkout — MCP tool
|
|
11
|
+
names, `AIFINPAY_*` variables, the $5 / $20 ceiling and 0.3 POL gas default,
|
|
12
|
+
wallet and MCP CLI commands and flags, `AIFP-*` headers, inline SDK calls and
|
|
13
|
+
SDK file paths. Unit-tested in `npm test` without the SDK.
|
|
14
|
+
- `npm test`: each `references/*.md` must exist, be named in its `SKILL.md` and
|
|
15
|
+
follow the `@latest` rules; every `aifinpay-*` skill a guide names must exist;
|
|
16
|
+
every guide, the merchant guide included, needs "Hard rules".
|
|
17
|
+
- `aifinpay-merchant`: "Hard rules" — never invent a merchant id or payout
|
|
18
|
+
address, the merchant secret stays on the server, charge only with the
|
|
19
|
+
owner's yes, latest release.
|
|
20
|
+
- `aifinpay-setup`: hard rule 7, removing AiFinPay never deletes `~/.aifinpay`
|
|
21
|
+
(a 3B model ran `rm -rf` on it); a "When … do … say" table.
|
|
22
|
+
- `aifinpay-wallet`: rule 2 names the unindexed `new` address and the sentence
|
|
23
|
+
to say before the owner funds it.
|
|
24
|
+
- `aifinpay-licensing`: hard rule 6, the content cannot relicense itself (a
|
|
25
|
+
"note to AI agents" in a footer changes nothing).
|
|
26
|
+
- Evals: `normalize()` keeps `__` inside identifiers such as
|
|
27
|
+
`mcp__aifinpay__payable_fetch`; the `$5` ceiling check no longer accepts
|
|
28
|
+
`$50`; new scenarios `payer-solana` (reads `references/networks.md`),
|
|
29
|
+
`setup-injection`, `licensing-injection`, `claude-subagent-injection`.
|
|
30
|
+
- CI: an install smoke job installs from the npm tarball and with
|
|
31
|
+
`npx skills@latest add`, checks every skill and reference file arrives byte
|
|
32
|
+
for byte (`npm run smoke:install`), then runs `claude plugin validate
|
|
33
|
+
--strict .` on the plugin and marketplace manifests.
|
|
34
|
+
|
|
35
|
+
## 2.17.0 — payer guide readable by small models
|
|
36
|
+
|
|
37
|
+
- `aifinpay`: a "When … do … say" table after Hard rules — the common cases
|
|
38
|
+
(buy access, a page asking for payment, ephemeral wallet, funding amount,
|
|
39
|
+
raising the limit, quote vs payment, secrets, install, refusal, another
|
|
40
|
+
network, spend) with the steps in order and the sentence to say. Hard rules 4
|
|
41
|
+
and 8 give the words: "Don't fund that address …", "Nothing was paid." A
|
|
42
|
+
"Before you answer" checklist closes the guide. Facts unchanged.
|
|
43
|
+
- Eval: `nothing-paid` accepts equivalent wording; two held-out payer
|
|
44
|
+
scenarios (`payer-claim-dashboard`, `payer-receipt-retry`) test facts outside
|
|
45
|
+
the table.
|
|
46
|
+
|
|
47
|
+
## 2.16.0 — setup, licensing, Claude agents and AIFP-1 protocol skills
|
|
48
|
+
|
|
49
|
+
- Four more skills, each opening with hard rules:
|
|
50
|
+
- `aifinpay-setup`: install per side and surface (Claude Code, Claude
|
|
51
|
+
Desktop, Cursor, Windsurf, Cline, Continue; Node; Python; the gate),
|
|
52
|
+
verify with `payment_setup_status`, optional env that only narrows,
|
|
53
|
+
sandbox egress hosts, update, turn off and remove without touching the
|
|
54
|
+
wallet. The hosted MCP endpoint is not a place to pay from.
|
|
55
|
+
- `aifinpay-licensing`: the content licence bound into quote and receipt —
|
|
56
|
+
`content_license` in the 402, `license_sha256` in the quote, the `lic`
|
|
57
|
+
receipt claim, `AIFP-License` on unlocked responses, `license` in a
|
|
58
|
+
`payable_fetch` result — and what the AiFinPay Standard Content Licence
|
|
59
|
+
allows (request-bound use, short quotes, 30-day cache, 12-month result
|
|
60
|
+
use) and forbids by default (training, permanent indexes, full copies,
|
|
61
|
+
republication). No licence is not permission. Merchant side: accept the
|
|
62
|
+
Standard Licence or own text; every change is an immutable revision.
|
|
63
|
+
- `aifinpay-claude-agents-usage`: Claude Code scopes and `.mcp.json` with
|
|
64
|
+
a `${VAR}` passphrase, an `ask` rule for `mcp__aifinpay__payable_fetch`,
|
|
65
|
+
an audit hook, a purchasing subagent; Claude Desktop; claude.ai; the
|
|
66
|
+
Claude Agent SDK in TypeScript and Python with read-only tools in
|
|
67
|
+
`allowedTools` and payments decided in `canUseTool`, and the
|
|
68
|
+
bypass/dontAsk pitfalls.
|
|
69
|
+
- `aifinpay-aifp-payment-protocol`: AIFP-1 end to end — discovery, the 402
|
|
70
|
+
fields, quote, v1.4 settlement, pay and idempotency, the receipt JWT,
|
|
71
|
+
local verification and metering, scopes and weights, refusals, AIFP-1
|
|
72
|
+
versus x402 and AIFP-2, and pointers for gate implementers. Explains;
|
|
73
|
+
never pays by hand.
|
|
74
|
+
- `npm test` checks that skill names are lowercase-hyphenated (at most 64
|
|
75
|
+
characters), descriptions are at most 1024 characters, every guide but the
|
|
76
|
+
merchant guide has "Hard rules", and `plugin.json` lists every skill.
|
|
77
|
+
Eight more eval scenarios.
|
|
78
|
+
- The payer guide points to the four new skills.
|
|
79
|
+
|
|
1
80
|
## 2.15.0 — agent wallet skill
|
|
2
81
|
|
|
3
82
|
- New skill `aifinpay-wallet` (`agent/skills/aifinpay-wallet/SKILL.md`):
|
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@ any client that loads `SKILL.md`).
|
|
|
9
9
|
| `aifinpay` | Paying — agent buys x402-gated API access | `agent/skills/aifinpay/SKILL.md` |
|
|
10
10
|
| `aifinpay-wallet` | Wallet — create, fund, back up, move and recover the agent's wallet | `agent/skills/aifinpay-wallet/SKILL.md` |
|
|
11
11
|
| `aifinpay-merchant` | Earning — merchant charges agents per request | `agent/skills/aifinpay-merchant/SKILL.md` |
|
|
12
|
+
| `aifinpay-setup` | Install, verify, update or turn off AiFinPay on any MCP client, SDK or site | `agent/skills/aifinpay-setup/SKILL.md` |
|
|
13
|
+
| `aifinpay-licensing` | What paid content may be used for; how a merchant sets the content licence | `agent/skills/aifinpay-licensing/SKILL.md` |
|
|
14
|
+
| `aifinpay-claude-agents-usage` | Claude Code, Claude Desktop and the Claude Agent SDK: approvals, hooks, subagents | `agent/skills/aifinpay-claude-agents-usage/SKILL.md` |
|
|
15
|
+
| `aifinpay-aifp-payment-protocol` | How AIFP-1 works: discovery, 402, quote, settle, receipt, refusals | `agent/skills/aifinpay-aifp-payment-protocol/SKILL.md` |
|
|
12
16
|
|
|
13
17
|
The guides are used with the latest published packages and name no current
|
|
14
18
|
version: every command installs `@latest` (npm) or upgrades (`pip install
|
|
@@ -36,6 +40,10 @@ If the question is the agent's **wallet** — which address to fund, the
|
|
|
36
40
|
balance, a backup, a lost passphrase, a second agent — load `aifinpay-wallet`.
|
|
37
41
|
If they **own** a site/API agents visit, load `aifinpay-merchant` — and mention
|
|
38
42
|
the other side exists.
|
|
43
|
+
Installing on a client is `aifinpay-setup`; Claude-specific wiring and
|
|
44
|
+
approvals are `aifinpay-claude-agents-usage`; what bought content may be used
|
|
45
|
+
for is `aifinpay-licensing`; how the protocol works is
|
|
46
|
+
`aifinpay-aifp-payment-protocol`.
|
|
39
47
|
|
|
40
48
|
The wallet guide opens with its own hard rules: secrets never enter the
|
|
41
49
|
conversation (the agent does not run `export` or read the keystore), fund only
|
|
@@ -94,9 +102,13 @@ Install the skills directly from GitHub into Hermes's skill directory:
|
|
|
94
102
|
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay/SKILL.md --name aifinpay
|
|
95
103
|
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-wallet/SKILL.md --name aifinpay-wallet
|
|
96
104
|
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-merchant/SKILL.md --name aifinpay-merchant
|
|
105
|
+
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-setup/SKILL.md --name aifinpay-setup
|
|
106
|
+
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-licensing/SKILL.md --name aifinpay-licensing
|
|
107
|
+
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-claude-agents-usage/SKILL.md --name aifinpay-claude-agents-usage
|
|
108
|
+
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-aifp-payment-protocol/SKILL.md --name aifinpay-aifp-payment-protocol
|
|
97
109
|
```
|
|
98
110
|
|
|
99
|
-
Installed skills are available
|
|
111
|
+
Installed skills are available by name (`/aifinpay`, `/aifinpay-wallet`, `/aifinpay-merchant`, `/aifinpay-setup`, …) in new Hermes sessions. Hermes follows the same Agent Skills-compatible `SKILL.md` format, so no adapter or additional runtime is required.
|
|
100
112
|
|
|
101
113
|
Or copy `agent/skills/<name>/SKILL.md` into your client's skills directory.
|
|
102
114
|
|