-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
249 lines (249 loc) · 6.89 KB
/
package.json
File metadata and controls
249 lines (249 loc) · 6.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "raycast-extension",
"title": "ZBD Agent Wallet",
"description": "Run zbdw wallet commands from Raycast with structured JSON output",
"icon": "icon-agent-wallet.png",
"author": "andrerfneves",
"keywords": [
"zbd",
"zbdw",
"wallet",
"lightning",
"bitcoin"
],
"categories": [
"Developer Tools",
"Finance"
],
"screenshots": [
"media/1.png",
"media/2.png"
],
"license": "MIT",
"platforms": [
"macOS"
],
"commands": [
{
"name": "init",
"title": "Setup Wallet",
"subtitle": "ZBD Agent Wallet",
"description": "Initialize local wallet config with API key and lightning address",
"mode": "view"
},
{
"name": "info",
"title": "Wallet Information",
"subtitle": "ZBD Agent Wallet",
"description": "Show configured lightning address, masked API key, and wallet balance",
"mode": "view"
},
{
"name": "balance",
"title": "Wallet Balance",
"subtitle": "ZBD Agent Wallet",
"description": "Get current wallet balance in sats",
"mode": "view"
},
{
"name": "receive",
"title": "Create Receive Request",
"subtitle": "ZBD Agent Wallet",
"description": "Create a Lightning invoice or static charge for incoming payments",
"mode": "view"
},
{
"name": "send",
"title": "Send Payment",
"subtitle": "ZBD Agent Wallet",
"description": "Send payment to bolt11, lnurl, lightning address, or gamertag",
"mode": "view"
},
{
"name": "payments",
"title": "Payment History",
"subtitle": "ZBD Agent Wallet",
"description": "List local payment history records tracked by zbdw",
"mode": "view"
},
{
"name": "payment",
"title": "Payment Details",
"subtitle": "ZBD Agent Wallet",
"description": "Get payment details by id from local history or remote lookup",
"mode": "view"
},
{
"name": "paylink-create",
"title": "Create Paylink",
"subtitle": "ZBD Agent Wallet",
"description": "Create a hosted paylink with fixed or ranged amount and metadata",
"mode": "view"
},
{
"name": "paylink-get",
"title": "Get Paylink Details",
"subtitle": "ZBD Agent Wallet",
"description": "Get paylink details by id and refresh settlement metadata",
"mode": "view"
},
{
"name": "paylink-list",
"title": "List Paylinks",
"subtitle": "ZBD Agent Wallet",
"description": "List locally tracked paylinks",
"mode": "view"
},
{
"name": "paylink-cancel",
"title": "Cancel Paylink",
"subtitle": "ZBD Agent Wallet",
"description": "Cancel an active paylink by id",
"mode": "view"
},
{
"name": "withdraw-create",
"title": "Create Withdrawal Request",
"subtitle": "ZBD Agent Wallet",
"description": "Create an LNURL-withdraw request for a sats amount",
"mode": "view"
},
{
"name": "withdraw-status",
"title": "Check Withdrawal Status",
"subtitle": "ZBD Agent Wallet",
"description": "Check withdrawal status by withdraw id",
"mode": "view"
},
{
"name": "onchain-quote",
"title": "Onchain Quote",
"subtitle": "ZBD Agent Wallet",
"description": "Create onchain payout quote for amount and destination",
"mode": "view"
},
{
"name": "onchain-send",
"title": "Send Onchain Payout",
"subtitle": "ZBD Agent Wallet",
"description": "Send onchain payout with terms acceptance",
"mode": "view"
},
{
"name": "onchain-status",
"title": "Onchain Payout Status",
"subtitle": "ZBD Agent Wallet",
"description": "Check onchain payout status by payout id",
"mode": "view"
},
{
"name": "onchain-retry-claim",
"title": "Retry Onchain Claim",
"subtitle": "ZBD Agent Wallet",
"description": "Retry claim flow for a payout id",
"mode": "view"
},
{
"name": "fetch",
"title": "Run L402 Fetch",
"subtitle": "ZBD Agent Wallet",
"description": "Run L402-aware HTTP fetch with optional max sats guard",
"mode": "view"
}
],
"tools": [
{
"name": "wallet-info",
"title": "Get Wallet Info",
"description": "Returns configured wallet identity and balance"
},
{
"name": "wallet-balance",
"title": "Get Wallet Balance",
"description": "Returns current wallet balance in sats"
},
{
"name": "send-payment",
"title": "Send Payment",
"description": "Sends sats to a Lightning destination"
},
{
"name": "create-receive-request",
"title": "Create Receive Request",
"description": "Creates an invoice or static receive request"
},
{
"name": "list-payments",
"title": "List Payments",
"description": "Lists local payment history records"
},
{
"name": "get-payment",
"title": "Get Payment",
"description": "Gets payment details by id"
},
{
"name": "create-paylink",
"title": "Create Paylink",
"description": "Creates a hosted paylink with optional metadata"
}
],
"ai": {
"instructions": "Use this extension for ZBD wallet operations. Amount inputs are sats. Prefer read actions (wallet-info, wallet-balance, list-payments) before write actions. For send-payment, confirm destination and amount_sats are provided."
},
"preferences": [
{
"name": "apiKey",
"title": "ZBD API Key",
"description": "Used as ZBD_API_KEY for zbdw",
"type": "password",
"required": true
},
{
"name": "cliPath",
"title": "zbdw Path",
"description": "Optional absolute path override for zbdw binary",
"type": "textfield",
"required": false
},
{
"name": "apiBaseUrl",
"title": "API Base URL",
"description": "Optional ZBD_API_BASE_URL override",
"type": "textfield",
"required": false
},
{
"name": "aiBaseUrl",
"title": "AI Base URL",
"description": "Optional ZBD_AI_BASE_URL override",
"type": "textfield",
"required": false
}
],
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop",
"lint": "ray lint",
"fix-lint": "ray lint --fix",
"test": "tsx --test test/**/*.test.ts",
"typecheck": "tsc --noEmit",
"verify:contracts": "node ./scripts/verify-contracts.mjs",
"publish": "npx @raycast/api@latest publish"
},
"dependencies": {
"@zbdpay/agent-wallet": "^1.2.0",
"@raycast/api": "^1.104.7",
"@raycast/utils": "^2.2.2"
},
"devDependencies": {
"@raycast/eslint-config": "^2.1.1",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"eslint": "^9.36.0",
"prettier": "^3.5.3",
"tsx": "^4.19.3",
"typescript": "^5.8.2"
}
}