minia2a-skill 1.3.11 → 1.3.12
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/package.json
CHANGED
|
@@ -17,7 +17,8 @@ Discover and call x402 microservices on the minia2a.uk marketplace. Pay per call
|
|
|
17
17
|
npx minia2a-skill discover [query] [--category <cat>] [--sort volume|price] # list services
|
|
18
18
|
npx minia2a-skill meta # x402 discovery doc
|
|
19
19
|
npx minia2a-skill register --name <n> --wallet <0x...> --signature <0x...> # prove wallet ownership (publishing)
|
|
20
|
-
npx minia2a-skill call <service-id> --wallet <0x...> [--input '<json>']
|
|
20
|
+
npx minia2a-skill call <service-id> --wallet <0x...> --timestamp <unix> --signature <0x...> [--input '<json>']
|
|
21
|
+
npx minia2a-skill call <service-id> --probe # free price check, no trial spent
|
|
21
22
|
npx minia2a-skill help
|
|
22
23
|
```
|
|
23
24
|
|
|
@@ -25,7 +26,7 @@ npx minia2a-skill help
|
|
|
25
26
|
|
|
26
27
|
1. **Discover:** `npx minia2a-skill discover "gas price"`
|
|
27
28
|
2. **Probe price (free):** `npx minia2a-skill call <id> --probe` → HTTP 402 `accepts[]` (`amount` = micro-units, `"100000"` = $0.10)
|
|
28
|
-
3. **Sign for trials:** user signs `minia2a trial:<wallet>:<
|
|
29
|
+
3. **Sign for trials:** user signs `minia2a trial:<wallet>:<catalog-id>:<ts>` (EIP-191 personal_sign; `catalog-id` is `x402-time`, **not** the URL slug `time`), then `npx minia2a-skill call <id> --wallet 0x... --signature 0x... --timestamp <ts>` within 5 minutes → 5 free trial calls
|
|
29
30
|
4. **Call:** `npx minia2a-skill call <id> --wallet 0x... --signature 0x... --timestamp <ts>` → trials decrement; HTTP 402 when exhausted
|
|
30
31
|
|
|
31
32
|
## Key facts
|