minia2a-skill 1.3.2 → 1.3.4

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/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  **Agents can't open bank accounts. We fixed that.**
20
20
 
21
- minia2a is an agent-only marketplace for x402 microservices — AI agents discover, call, and pay per call in USDC. No human signup, no KYC. Register with your own self-custody wallet for 5 free trial calls, then call any of 1,680 endpoints. Sellers list an endpoint and earn USDC per call.
21
+ minia2a is an agent-only marketplace for x402 microservices — AI agents discover, call, and pay per call in USDC. No human signup, no KYC. Sign with your own self-custody wallet for 5 free trial calls (no registration), then call any of 1,680 endpoints. Sellers list an endpoint and earn USDC per call.
22
22
 
23
23
  Built on [x402](https://x402.org/) (HTTP 402, Linux Foundation standard). [minia2a.uk](https://minia2a.uk) is the reference marketplace — this repo is the agent SDK.
24
24
 
@@ -31,10 +31,10 @@ curl -sSL https://minia2a.uk/install | bash
31
31
  # Discover services
32
32
  minia2a discover
33
33
 
34
- # Register your wallet 5 free trial calls
34
+ # Sign your wallet for 5 free trial calls (no registration)
35
35
  minia2a register --name "My Agent" --wallet 0x... --signature 0x...
36
36
 
37
- # Call a service (credits decrement per call)
37
+ # Call a service (signed wallet 5 free trials)
38
38
  minia2a call x402-time --wallet 0x...
39
39
  ```
40
40
 
@@ -63,7 +63,7 @@ sequenceDiagram
63
63
  Platform->>Buyer: 6. Result
64
64
  ```
65
65
 
66
- Every call is priced in the 402 response. The buyer pays USDC (or spends free credits); the seller earns per call. **5% platform fee.**
66
+ Every call is priced in the 402 response. The buyer pays USDC (or uses a free trial call); the seller earns per call. **5% platform fee.**
67
67
 
68
68
  ## CLI Reference
69
69
 
@@ -78,7 +78,7 @@ minia2a call <id> --wallet <0x...> [--signature <0x...> --timestamp <unix>] \
78
78
  minia2a help
79
79
  ```
80
80
 
81
- `register` is the **buyer** side (it provisions free credits). `publish` is the
81
+ `register` is the **buyer** side (proves wallet ownership, for publishing). `publish` is the
82
82
  **seller** side (it lists your API for pay-per-call). They are different endpoints
83
83
  and sign different messages — registering does not create a listing.
84
84
 
@@ -111,7 +111,7 @@ curl -sSL https://minia2a.uk/install | bash
111
111
  # 2. Browse available services
112
112
  minia2a discover
113
113
 
114
- # 3. Register (self-custody wallet + EIP-191 signature) → 5 free trial calls
114
+ # 3. Sign (self-custody wallet + EIP-191 signature) → 5 free trial calls
115
115
  minia2a register --name "My Agent" --wallet 0x... --signature 0x...
116
116
 
117
117
  # 4. Call a service. Run it once and the CLI prints the exact message to sign
@@ -124,7 +124,7 @@ minia2a call x402-time --wallet 0x... --timestamp 1787113324 --signature 0x...
124
124
 
125
125
  | Item | Amount |
126
126
  |------|--------|
127
- | Free trials | 5 calls on registration |
127
+ | Free trials | 5 calls per signed wallet (no registration) |
128
128
  | Platform fee | 5% |
129
129
  | Currency | USDC on Base (`eip155:8453`) + Algorand (ASA 31566704) |
130
130
  | Price signal | HTTP 402 `accepts[].amount` (micro-units, e.g. `"100000"` = $0.10) |
package/cli/minia2a CHANGED
@@ -18,8 +18,8 @@ Usage:
18
18
  [--input <json>] [--probe]
19
19
  minia2a help [topic]
20
20
 
21
- No human signup. Register with a self-custody wallet + EIP-191 signature
22
- for 5 free trial calls. Pay per call in USDC via x402
21
+ No human signup. Sign with a self-custody wallet + EIP-191 signature for
22
+ 5 free trial calls (no registration). Pay per call in USDC via x402
23
23
  (HTTP 402) once trials run out. Full guide: https://minia2a.uk/AGENTS.md
24
24
  `;
25
25
 
@@ -113,7 +113,7 @@ async function register() {
113
113
  }
114
114
  }
115
115
 
116
- // Seller path. `register` above is BUYER-side (it provisions credits, not a listing) —
116
+ // Seller path. `register` above proves wallet ownership (BUYER-side, not a listing) —
117
117
  // publishing a service is a different endpoint with a different signed message.
118
118
  const CATEGORIES = ['tools', 'premium', 'defi', 'data'];
119
119
 
@@ -206,7 +206,7 @@ async function call(id) {
206
206
  const url = new URL(ep);
207
207
  url.searchParams.set(probe ? 'probe' : 'wallet', probe ? '1' : wallet);
208
208
 
209
- // A registered wallet's own 5 trials are only reachable with a signed call. The signed
209
+ // A wallet's own 5 trials (no registration) are only reachable with a signed call. The signed
210
210
  // message uses the catalog id (x402-time), not the URL slug (time) — signing the slug fails
211
211
  // with exactly the 402 a bad signature produces, so print the id-correct message rather than
212
212
  // letting the caller guess it.
@@ -247,8 +247,8 @@ async function call(id) {
247
247
  // Payment required — surface the machine-readable x402 payload.
248
248
  console.error(`Payment required (HTTP 402) for ${svc.name}. Price: $${svc.price} USDC.`);
249
249
  if (trialHeaders['X-Wallet-Signature']) {
250
- console.error(`Signed as ${wallet}: either this wallet's 5 trials are spent, or the wallet`);
251
- console.error('is not registered, or the timestamp is older than 5 minutes.');
250
+ console.error(`Signed as ${wallet}: either this wallet's 5 trials are spent, or the`);
251
+ console.error('signature is invalid, or the timestamp is older than 5 minutes.');
252
252
  }
253
253
  console.error('x402 accepts[]:');
254
254
  json(d);
@@ -272,9 +272,9 @@ async function help() {
272
272
  console.error(`minia2a help: ${topic}\n`);
273
273
  console.error('The full machine-readable guide lives at https://minia2a.uk/AGENTS.md');
274
274
  console.error('Quick reference:');
275
- console.error(' register — POST /api/v1/register-simple {name, wallet, signature} → 5 free trial calls (BUYER side)');
275
+ console.error(' register — POST /api/v1/register-simple {name, wallet, signature} → prove wallet ownership (for publishing)');
276
276
  console.error(' publish — POST /api/v1/publish-service {name, endpoint, price_cents, category, wallet, signature} (SELLER side)');
277
- console.error(' call — GET <service-endpoint>?wallet=0x... (credits decrement)');
277
+ console.error(' call — GET <service-endpoint>?wallet=0x... + signed trial headers (5 free trials per wallet)');
278
278
  console.error(' probe — append ?probe=1 to any endpoint → HTTP 402 with payment JSON (free)');
279
279
  return;
280
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minia2a-skill",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Agent skill for minia2a.uk — 1,680 x402 services. AI agents earn USDC. 5 free trial calls. Zero-dep CLI. Try: npm i -g minia2a-cli.",
5
5
  "bin": {
6
6
  "minia2a": "./cli/minia2a"
@@ -3,20 +3,20 @@ name: minia2a-skill
3
3
  description: >
4
4
  Discover and call x402 pay-per-call APIs on minia2a.uk — the agent-only marketplace.
5
5
  1,600+ endpoints (AI inference, crypto data, web scraping, CAPTCHA solving, more).
6
- Register with a self-custody wallet + signature for 5 free trial calls. USDC on Base + Algorand.
6
+ Sign with a self-custody wallet for 5 free trial calls (no registration). USDC on Base + Algorand.
7
7
  Commands: discover, call, register, meta, help.
8
8
  ---
9
9
 
10
10
  # minia2a-skill (Claude Code wrapper)
11
11
 
12
- Discover and call x402 microservices on the minia2a.uk marketplace. Pay per call in USDC — no human signup, no KYC. Register with your own wallet (the platform never holds your key) for 5 free trial calls.
12
+ Discover and call x402 microservices on the minia2a.uk marketplace. Pay per call in USDC — no human signup, no KYC. Sign with your own wallet (the platform never holds your key) for 5 free trial calls (no registration).
13
13
 
14
14
  ## Commands (shell-executable, JSON output)
15
15
 
16
16
  ```bash
17
17
  npx minia2a-skill discover [query] [--category <cat>] [--sort volume|price] # list services
18
18
  npx minia2a-skill meta # x402 discovery doc
19
- npx minia2a-skill register --name <n> --wallet <0x...> --signature <0x...> # 5 free trial calls
19
+ npx minia2a-skill register --name <n> --wallet <0x...> --signature <0x...> # prove wallet ownership (publishing)
20
20
  npx minia2a-skill call <service-id> --wallet <0x...> [--input '<json>'] [--probe]
21
21
  npx minia2a-skill help
22
22
  ```
@@ -25,8 +25,8 @@ npx minia2a-skill help
25
25
 
26
26
  1. **Discover:** `npx minia2a-skill discover "gas price"`
27
27
  2. **Probe price (free):** `npx minia2a-skill call <id> --probe` → HTTP 402 `accepts[]` (`amount` = micro-units, `"100000"` = $0.10)
28
- 3. **Register:** user signs `minia2a register: <wallet>` (EIP-191 personal_sign), then `npx minia2a-skill register --name ... --wallet 0x... --signature 0x...` → 5 free trial calls
29
- 4. **Call:** `npx minia2a-skill call <id> --wallet 0x...`credits decrement; HTTP 402 when exhausted
28
+ 3. **Sign for trials:** user signs `minia2a trial:<wallet>:<svc-id>:<ts>` (EIP-191 personal_sign), then `npx minia2a-skill call <id> --wallet 0x... --signature 0x... --timestamp <ts>` → 5 free trial calls
29
+ 4. **Call:** `npx minia2a-skill call <id> --wallet 0x... --signature 0x... --timestamp <ts>` trials decrement; HTTP 402 when exhausted
30
30
 
31
31
  ## Key facts
32
32