@agentlayer.tech/wallet 0.1.97 → 0.1.99
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/.openclaw/extensions/agent-wallet/openclaw.plugin.json +1 -1
- package/.openclaw/extensions/agent-wallet/package.json +1 -1
- package/VERSION +1 -1
- package/agent-wallet/agent_wallet/__init__.py +1 -1
- package/agent-wallet/openclaw.plugin.json +1 -1
- package/agent-wallet/pyproject.toml +1 -1
- package/claude-code/plugins/agent-wallet/.claude-plugin/plugin.json +1 -1
- package/claude-code/plugins/agent-wallet/commands/x402.md +35 -12
- package/codex/plugins/agent-wallet/.codex-plugin/plugin.json +1 -1
- package/codex/plugins/agent-wallet/skills/x402/SKILL.md +28 -11
- package/hermes/plugins/agent_wallet/plugin.yaml +1 -1
- package/package.json +1 -1
- package/wdk-btc-wallet/package.json +1 -1
- package/wdk-evm-wallet/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "agent-wallet",
|
|
3
3
|
"name": "Agent Wallet",
|
|
4
4
|
"description": "Official OpenClaw plugin bridge for the agent-wallet backends, including Solana, local BTC, and local EVM.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.99",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"agentlayer_autonomous_approve",
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.99
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "agent-wallet",
|
|
3
3
|
"name": "Agent Wallet",
|
|
4
4
|
"description": "Plugin-friendly wallet backend for OpenClaw agents with safe wallet tools and runtime instructions across Solana, local BTC, and local EVM.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.99",
|
|
6
6
|
"skills": ["skills/wallet-operator"],
|
|
7
7
|
"configSchema": {
|
|
8
8
|
"type": "object",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-wallet",
|
|
3
3
|
"displayName": "Agent Wallet",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.99",
|
|
5
5
|
"description": "Claude Code bridge for the existing AgentLayer wallet runtime. Connects to Solana, Bitcoin, and EVM wallets without creating a new one.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "AgentLayer"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Discover x402-paid services via CDP Bazaar or Agentic Market (or use a URL you already have), preview the payment terms, and pay from the connected wallet.
|
|
3
|
+
argument-hint: "[query or URL]"
|
|
3
4
|
allowed-tools: AskUserQuestion, mcp__agent_wallet__x402_search_services, mcp__agent_wallet__x402_get_service_details, mcp__agent_wallet__x402_preview_request, mcp__agent_wallet__x402_pay_request, mcp__agent_wallet__get_active_wallet_backend
|
|
4
5
|
disable-model-invocation: true
|
|
5
6
|
---
|
|
@@ -16,18 +17,40 @@ but cannot currently pay.
|
|
|
16
17
|
|
|
17
18
|
## Step 1: Resolve what to pay for
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
Inline command arguments, if any, follow here: $ARGUMENTS
|
|
21
|
+
|
|
22
|
+
That line holds whatever text the user typed after `/x402` on the same line
|
|
23
|
+
(e.g. `/x402 check glassnode services for bitcoin analytics`). If it is
|
|
24
|
+
non-empty, treat it as the request right away — do not re-ask what the user
|
|
25
|
+
wants only to ignore what they already typed. If it is empty (a bare
|
|
26
|
+
`/x402`), skip straight to asking below.
|
|
27
|
+
|
|
28
|
+
- If the inline text (or the rest of the user's message) already contains
|
|
29
|
+
an exact URL to call, skip discovery and go straight to Step 2 with that
|
|
30
|
+
URL (and whatever method/query/body they specified).
|
|
31
|
+
- Else if inline text was given, call `x402_search_services` with `query`
|
|
32
|
+
set to that text (add `max_usd_price`/`network` only if a limit or chain
|
|
33
|
+
was mentioned). Leave `discovery_provider` as `auto` unless CDP Bazaar or
|
|
34
|
+
Agentic Market was named explicitly — `auto` searches CDP Bazaar first.
|
|
35
|
+
- Only if no inline text was given at all, ask the user what they want to
|
|
36
|
+
find or pay for before calling any tool.
|
|
37
|
+
- Present the top 4 returned `items` as a compact Markdown table before
|
|
38
|
+
asking anything, columns `Service | Price | Network | Provider`:
|
|
39
|
+
- Service — CDP Bazaar: `description` (fall back to `resource`'s host +
|
|
40
|
+
path); Agentic Market: `service_name` (fall back to `domain`).
|
|
41
|
+
- Price — CDP Bazaar: `accepts[].amount_display`; Agentic Market:
|
|
42
|
+
`endpoints[].pricing`.
|
|
43
|
+
- Network — the matching `accepts[]`/`endpoints[].pricing` network.
|
|
44
|
+
- Provider — `discovery_provider` (`cdp_bazaar` / `agentic_market`).
|
|
45
|
+
- Cap at 4 rows to match the menu in the next step; if `count` is higher,
|
|
46
|
+
say so below the table ("12 total matches, showing the top 4 — ask me
|
|
47
|
+
to narrow the search for more").
|
|
48
|
+
- Immediately after the table, call `AskUserQuestion` — header `Service`,
|
|
49
|
+
one option per table row (label: service name, description: price +
|
|
50
|
+
network from that row). `AskUserQuestion` caps at 4 options, which is why
|
|
51
|
+
the table above is capped the same way; its built-in "Other" choice
|
|
52
|
+
already covers "none of these, let me refine the search" — no separate
|
|
53
|
+
option needed for that.
|
|
31
54
|
- If the chosen item doesn't already carry a directly-callable URL (CDP
|
|
32
55
|
Bazaar's `resource`, or an Agentic Market `endpoints[].url`), call
|
|
33
56
|
`x402_get_service_details` with that item's reference to resolve one.
|
|
@@ -19,18 +19,35 @@ tool.
|
|
|
19
19
|
|
|
20
20
|
## Step 1: Resolve what to pay for
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
If the message that triggered this skill already contains a request beyond
|
|
23
|
+
just "$x402" (e.g. `$x402 check glassnode services for bitcoin analytics`),
|
|
24
|
+
treat that text as the request right away — do not re-ask what the user
|
|
25
|
+
wants only to ignore what they already typed.
|
|
26
|
+
|
|
27
|
+
- If that text (or the rest of the user's message) already contains an
|
|
28
|
+
exact URL to call, skip discovery and go straight to Step 2 with that URL
|
|
29
|
+
(and whatever method/query/body they specified).
|
|
30
|
+
- Else if a description was already given, call `x402_search_services` with
|
|
31
|
+
`query` set to that text (add `max_usd_price`/`network` only if a limit
|
|
32
|
+
or chain was mentioned). Leave `discovery_provider` as `auto` unless CDP
|
|
33
|
+
Bazaar or Agentic Market was named explicitly — `auto` searches CDP
|
|
29
34
|
Bazaar first.
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
- Only if the triggering message carried no description or URL at all (a
|
|
36
|
+
bare `$x402`), ask the user what they want to find or pay for before
|
|
37
|
+
calling any tool.
|
|
38
|
+
- Present the top ~10 returned `items` as a compact Markdown table with a
|
|
39
|
+
leading `#` column, columns `# | Service | Price | Network | Provider`:
|
|
40
|
+
- Service — CDP Bazaar: `description` (fall back to `resource`'s host +
|
|
41
|
+
path); Agentic Market: `service_name` (fall back to `domain`).
|
|
42
|
+
- Price — CDP Bazaar: `accepts[].amount_display`; Agentic Market:
|
|
43
|
+
`endpoints[].pricing`.
|
|
44
|
+
- Network — the matching `accepts[]`/`endpoints[].pricing` network.
|
|
45
|
+
- Provider — `discovery_provider` (`cdp_bazaar` / `agentic_market`).
|
|
46
|
+
- If `count` is higher than what's shown, say so below the table ("14
|
|
47
|
+
total matches, showing the top 10 — ask me to narrow the search for
|
|
48
|
+
more").
|
|
49
|
+
- Wait for the user's reply with a row number, or a request to refine the
|
|
50
|
+
search if none fit.
|
|
34
51
|
- If the chosen item doesn't already carry a directly-callable URL (CDP
|
|
35
52
|
Bazaar's `resource`, or an Agentic Market `endpoints[].url`), call
|
|
36
53
|
`x402_get_service_details` with that item's reference to resolve one.
|
package/package.json
CHANGED