@graveyardprotocol/gp-cli 1.0.0

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.
@@ -0,0 +1,615 @@
1
+ GRAVEYARD PROTOCOL - THIRD PARTY ATTRIBUTIONS
2
+ ==============================================
3
+
4
+ Package: @babel/runtime@7.29.2
5
+ License: MIT
6
+ Repository: https://github.com/babel/babel
7
+ Publisher: The Babel Team
8
+ ----------------------------------------------
9
+
10
+ Package: @graveyardprotocol/gp-cli@1.0.0
11
+ License: MIT*
12
+ Repository: https://github.com/GraveyardProtocol/gp-cli
13
+ Publisher: Graveyard Protocol
14
+ ----------------------------------------------
15
+
16
+ Package: @inquirer/ansi@2.0.4
17
+ License: MIT
18
+ Repository: https://github.com/SBoudrias/Inquirer.js
19
+ Publisher: Simon Boudrias
20
+ ----------------------------------------------
21
+
22
+ Package: @inquirer/checkbox@5.1.2
23
+ License: MIT
24
+ Repository: https://github.com/SBoudrias/Inquirer.js
25
+ Publisher: Simon Boudrias
26
+ ----------------------------------------------
27
+
28
+ Package: @inquirer/confirm@6.0.10
29
+ License: MIT
30
+ Repository: https://github.com/SBoudrias/Inquirer.js
31
+ Publisher: Simon Boudrias
32
+ ----------------------------------------------
33
+
34
+ Package: @inquirer/core@11.1.7
35
+ License: MIT
36
+ Repository: https://github.com/SBoudrias/Inquirer.js
37
+ Publisher: Simon Boudrias
38
+ ----------------------------------------------
39
+
40
+ Package: @inquirer/editor@5.0.10
41
+ License: MIT
42
+ Repository: https://github.com/SBoudrias/Inquirer.js
43
+ Publisher: Simon Boudrias
44
+ ----------------------------------------------
45
+
46
+ Package: @inquirer/expand@5.0.10
47
+ License: MIT
48
+ Repository: https://github.com/SBoudrias/Inquirer.js
49
+ Publisher: Simon Boudrias
50
+ ----------------------------------------------
51
+
52
+ Package: @inquirer/external-editor@2.0.4
53
+ License: MIT
54
+ Repository: https://github.com/SBoudrias/Inquirer.js
55
+ Publisher: Simon Boudrias
56
+ ----------------------------------------------
57
+
58
+ Package: @inquirer/figures@2.0.4
59
+ License: MIT
60
+ Repository: https://github.com/SBoudrias/Inquirer.js
61
+ Publisher: Simon Boudrias
62
+ ----------------------------------------------
63
+
64
+ Package: @inquirer/input@5.0.10
65
+ License: MIT
66
+ Repository: https://github.com/SBoudrias/Inquirer.js
67
+ Publisher: Simon Boudrias
68
+ ----------------------------------------------
69
+
70
+ Package: @inquirer/number@4.0.10
71
+ License: MIT
72
+ Repository: https://github.com/SBoudrias/Inquirer.js
73
+ Publisher: Simon Boudrias
74
+ ----------------------------------------------
75
+
76
+ Package: @inquirer/password@5.0.10
77
+ License: MIT
78
+ Repository: https://github.com/SBoudrias/Inquirer.js
79
+ Publisher: Simon Boudrias
80
+ ----------------------------------------------
81
+
82
+ Package: @inquirer/prompts@8.3.2
83
+ License: MIT
84
+ Repository: https://github.com/SBoudrias/Inquirer.js
85
+ Publisher: Simon Boudrias
86
+ ----------------------------------------------
87
+
88
+ Package: @inquirer/rawlist@5.2.6
89
+ License: MIT
90
+ Repository: https://github.com/SBoudrias/Inquirer.js
91
+ Publisher: Simon Boudrias
92
+ ----------------------------------------------
93
+
94
+ Package: @inquirer/search@4.1.6
95
+ License: MIT
96
+ Repository: https://github.com/SBoudrias/Inquirer.js
97
+ Publisher: Simon Boudrias
98
+ ----------------------------------------------
99
+
100
+ Package: @inquirer/select@5.1.2
101
+ License: MIT
102
+ Repository: https://github.com/SBoudrias/Inquirer.js
103
+ Publisher: Simon Boudrias
104
+ ----------------------------------------------
105
+
106
+ Package: @inquirer/type@4.0.4
107
+ License: MIT
108
+ Repository: https://github.com/SBoudrias/Inquirer.js
109
+ Publisher: Simon Boudrias
110
+ ----------------------------------------------
111
+
112
+ Package: @noble/curves@1.9.7
113
+ License: MIT
114
+ Repository: https://github.com/paulmillr/noble-curves
115
+ Publisher: Paul Miller
116
+ ----------------------------------------------
117
+
118
+ Package: @noble/hashes@1.8.0
119
+ License: MIT
120
+ Repository: https://github.com/paulmillr/noble-hashes
121
+ Publisher: Paul Miller
122
+ ----------------------------------------------
123
+
124
+ Package: @solana/buffer-layout-utils@0.2.0
125
+ License: Apache-2.0
126
+ Repository: https://github.com/solana-labs/buffer-layout-utils
127
+ Publisher: Solana Maintainers
128
+ ----------------------------------------------
129
+
130
+ Package: @solana/buffer-layout@4.0.1
131
+ License: MIT
132
+ Repository: https://github.com/solana-labs/buffer-layout
133
+ Publisher: Peter A. Bigot
134
+ ----------------------------------------------
135
+
136
+ Package: @solana/codecs-core@2.0.0-rc.1
137
+ License: MIT
138
+ Repository: https://github.com/solana-labs/solana-web3.js
139
+ Publisher: Solana Labs Maintainers
140
+ ----------------------------------------------
141
+
142
+ Package: @solana/codecs-core@2.3.0
143
+ License: MIT
144
+ Repository: https://github.com/anza-xyz/kit
145
+ Publisher: Solana Labs Maintainers
146
+ ----------------------------------------------
147
+
148
+ Package: @solana/codecs-data-structures@2.0.0-rc.1
149
+ License: MIT
150
+ Repository: https://github.com/solana-labs/solana-web3.js
151
+ Publisher: Solana Labs Maintainers
152
+ ----------------------------------------------
153
+
154
+ Package: @solana/codecs-numbers@2.0.0-rc.1
155
+ License: MIT
156
+ Repository: https://github.com/solana-labs/solana-web3.js
157
+ Publisher: Solana Labs Maintainers
158
+ ----------------------------------------------
159
+
160
+ Package: @solana/codecs-numbers@2.3.0
161
+ License: MIT
162
+ Repository: https://github.com/anza-xyz/kit
163
+ Publisher: Solana Labs Maintainers
164
+ ----------------------------------------------
165
+
166
+ Package: @solana/codecs-strings@2.0.0-rc.1
167
+ License: MIT
168
+ Repository: https://github.com/solana-labs/solana-web3.js
169
+ Publisher: Solana Labs Maintainers
170
+ ----------------------------------------------
171
+
172
+ Package: @solana/codecs@2.0.0-rc.1
173
+ License: MIT
174
+ Repository: https://github.com/solana-labs/solana-web3.js
175
+ Publisher: Solana Labs Maintainers
176
+ ----------------------------------------------
177
+
178
+ Package: @solana/errors@2.0.0-rc.1
179
+ License: MIT
180
+ Repository: https://github.com/solana-labs/solana-web3.js
181
+ Publisher: Solana Labs Maintainers
182
+ ----------------------------------------------
183
+
184
+ Package: @solana/errors@2.3.0
185
+ License: MIT
186
+ Repository: https://github.com/anza-xyz/kit
187
+ Publisher: Solana Labs Maintainers
188
+ ----------------------------------------------
189
+
190
+ Package: @solana/options@2.0.0-rc.1
191
+ License: MIT
192
+ Repository: https://github.com/solana-labs/solana-web3.js
193
+ Publisher: Solana Labs Maintainers
194
+ ----------------------------------------------
195
+
196
+ Package: @solana/spl-token-group@0.0.7
197
+ License: Apache-2.0
198
+ Repository: https://github.com/solana-labs/solana-program-library
199
+ Publisher: Solana Labs Maintainers
200
+ ----------------------------------------------
201
+
202
+ Package: @solana/spl-token-metadata@0.1.6
203
+ License: Apache-2.0
204
+ Repository: https://github.com/solana-labs/solana-program-library
205
+ Publisher: Solana Labs Maintainers
206
+ ----------------------------------------------
207
+
208
+ Package: @solana/spl-token@0.4.14
209
+ License: Apache-2.0
210
+ Repository: https://github.com/solana-labs/solana-program-library
211
+ Publisher: Solana Labs Maintainers
212
+ ----------------------------------------------
213
+
214
+ Package: @solana/web3.js@1.98.4
215
+ License: MIT
216
+ Repository: https://github.com/solana-foundation/solana-web3.js
217
+ Publisher: Solana Labs Maintainers
218
+ ----------------------------------------------
219
+
220
+ Package: @swc/helpers@0.5.19
221
+ License: Apache-2.0
222
+ Repository: https://github.com/swc-project/swc
223
+ Publisher: 강동윤
224
+ ----------------------------------------------
225
+
226
+ Package: @types/connect@3.4.38
227
+ License: MIT
228
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
229
+ Publisher: N/A
230
+ ----------------------------------------------
231
+
232
+ Package: @types/node@12.20.55
233
+ License: MIT
234
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
235
+ Publisher: N/A
236
+ ----------------------------------------------
237
+
238
+ Package: @types/node@25.5.0
239
+ License: MIT
240
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
241
+ Publisher: N/A
242
+ ----------------------------------------------
243
+
244
+ Package: @types/uuid@10.0.0
245
+ License: MIT
246
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
247
+ Publisher: N/A
248
+ ----------------------------------------------
249
+
250
+ Package: @types/ws@7.4.7
251
+ License: MIT
252
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
253
+ Publisher: N/A
254
+ ----------------------------------------------
255
+
256
+ Package: @types/ws@8.18.1
257
+ License: MIT
258
+ Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
259
+ Publisher: N/A
260
+ ----------------------------------------------
261
+
262
+ Package: agentkeepalive@4.6.0
263
+ License: MIT
264
+ Repository: https://github.com/node-modules/agentkeepalive
265
+ Publisher: fengmk2
266
+ ----------------------------------------------
267
+
268
+ Package: base-x@3.0.11
269
+ License: MIT
270
+ Repository: https://github.com/cryptocoinjs/base-x
271
+ Publisher: Daniel Cousens
272
+ ----------------------------------------------
273
+
274
+ Package: base-x@5.0.1
275
+ License: MIT
276
+ Repository: https://github.com/cryptocoinjs/base-x
277
+ Publisher: Daniel Cousens
278
+ ----------------------------------------------
279
+
280
+ Package: base64-js@1.5.1
281
+ License: MIT
282
+ Repository: https://github.com/beatgammit/base64-js
283
+ Publisher: T. Jameson Little
284
+ ----------------------------------------------
285
+
286
+ Package: bigint-buffer@1.1.5
287
+ License: Apache-2.0
288
+ Repository: https://github.com/no2chem/bigint-buffer
289
+ Publisher: N/A
290
+ ----------------------------------------------
291
+
292
+ Package: bignumber.js@9.3.1
293
+ License: MIT
294
+ Repository: https://github.com/MikeMcl/bignumber.js
295
+ Publisher: Michael Mclaughlin
296
+ ----------------------------------------------
297
+
298
+ Package: bindings@1.5.0
299
+ License: MIT
300
+ Repository: https://github.com/TooTallNate/node-bindings
301
+ Publisher: Nathan Rajlich
302
+ ----------------------------------------------
303
+
304
+ Package: bn.js@5.2.3
305
+ License: MIT
306
+ Repository: https://github.com/indutny/bn.js
307
+ Publisher: Fedor Indutny
308
+ ----------------------------------------------
309
+
310
+ Package: borsh@0.7.0
311
+ License: Apache-2.0
312
+ Repository: https://github.com/near/borsh-js
313
+ Publisher: Near Inc
314
+ ----------------------------------------------
315
+
316
+ Package: bs58@4.0.1
317
+ License: MIT
318
+ Repository: https://github.com/cryptocoinjs/bs58
319
+ Publisher: N/A
320
+ ----------------------------------------------
321
+
322
+ Package: bs58@6.0.0
323
+ License: MIT
324
+ Repository: https://github.com/cryptocoinjs/bs58
325
+ Publisher: N/A
326
+ ----------------------------------------------
327
+
328
+ Package: buffer@6.0.3
329
+ License: MIT
330
+ Repository: https://github.com/feross/buffer
331
+ Publisher: Feross Aboukhadijeh
332
+ ----------------------------------------------
333
+
334
+ Package: chalk@5.6.2
335
+ License: MIT
336
+ Repository: https://github.com/chalk/chalk
337
+ Publisher: N/A
338
+ ----------------------------------------------
339
+
340
+ Package: chardet@2.1.1
341
+ License: MIT
342
+ Repository: https://github.com/runk/node-chardet
343
+ Publisher: Dmitry Shirokov
344
+ ----------------------------------------------
345
+
346
+ Package: cli-width@4.1.0
347
+ License: ISC
348
+ Repository: https://github.com/knownasilya/cli-width
349
+ Publisher: Ilya Radchenko
350
+ ----------------------------------------------
351
+
352
+ Package: commander@12.1.0
353
+ License: MIT
354
+ Repository: https://github.com/tj/commander.js
355
+ Publisher: TJ Holowaychuk
356
+ ----------------------------------------------
357
+
358
+ Package: commander@14.0.3
359
+ License: MIT
360
+ Repository: https://github.com/tj/commander.js
361
+ Publisher: TJ Holowaychuk
362
+ ----------------------------------------------
363
+
364
+ Package: commander@2.20.3
365
+ License: MIT
366
+ Repository: https://github.com/tj/commander.js
367
+ Publisher: TJ Holowaychuk
368
+ ----------------------------------------------
369
+
370
+ Package: delay@5.0.0
371
+ License: MIT
372
+ Repository: https://github.com/sindresorhus/delay
373
+ Publisher: Sindre Sorhus
374
+ ----------------------------------------------
375
+
376
+ Package: es6-promise@4.2.8
377
+ License: MIT
378
+ Repository: https://github.com/stefanpenner/es6-promise
379
+ Publisher: Yehuda Katz, Tom Dale, Stefan Penner and contributors
380
+ ----------------------------------------------
381
+
382
+ Package: es6-promisify@5.0.0
383
+ License: MIT
384
+ Repository: https://github.com/digitaldesignlabs/es6-promisify
385
+ Publisher: Mike Hall
386
+ ----------------------------------------------
387
+
388
+ Package: eventemitter3@5.0.4
389
+ License: MIT
390
+ Repository: https://github.com/primus/eventemitter3
391
+ Publisher: Arnout Kazemier
392
+ ----------------------------------------------
393
+
394
+ Package: eyes@0.1.8
395
+ License: MIT
396
+ Repository: N/A
397
+ Publisher: Alexis Sellier
398
+ ----------------------------------------------
399
+
400
+ Package: fast-stable-stringify@1.0.0
401
+ License: MIT
402
+ Repository: https://github.com/nickyout/fast-stable-stringify
403
+ Publisher: Nicky Out
404
+ ----------------------------------------------
405
+
406
+ Package: fast-string-truncated-width@3.0.3
407
+ License: MIT
408
+ Repository: https://github.com/fabiospampinato/fast-string-truncated-width
409
+ Publisher: N/A
410
+ ----------------------------------------------
411
+
412
+ Package: fast-string-width@3.0.2
413
+ License: MIT
414
+ Repository: https://github.com/fabiospampinato/fast-string-width
415
+ Publisher: N/A
416
+ ----------------------------------------------
417
+
418
+ Package: fast-wrap-ansi@0.2.0
419
+ License: MIT
420
+ Repository: https://github.com/43081j/fast-wrap-ansi
421
+ Publisher: James Garbutt
422
+ ----------------------------------------------
423
+
424
+ Package: fastestsmallesttextencoderdecoder@1.0.22
425
+ License: CC0-1.0
426
+ Repository: https://github.com/anonyco/FastestSmallestTextEncoderDecoder
427
+ Publisher: Jack Giffin
428
+ ----------------------------------------------
429
+
430
+ Package: file-uri-to-path@1.0.0
431
+ License: MIT
432
+ Repository: https://github.com/TooTallNate/file-uri-to-path
433
+ Publisher: Nathan Rajlich
434
+ ----------------------------------------------
435
+
436
+ Package: humanize-ms@1.2.1
437
+ License: MIT
438
+ Repository: https://github.com/node-modules/humanize-ms
439
+ Publisher: dead-horse
440
+ ----------------------------------------------
441
+
442
+ Package: iconv-lite@0.7.2
443
+ License: MIT
444
+ Repository: https://github.com/pillarjs/iconv-lite
445
+ Publisher: Alexander Shtuchkin
446
+ ----------------------------------------------
447
+
448
+ Package: ieee754@1.2.1
449
+ License: BSD-3-Clause
450
+ Repository: https://github.com/feross/ieee754
451
+ Publisher: Feross Aboukhadijeh
452
+ ----------------------------------------------
453
+
454
+ Package: inquirer@13.3.2
455
+ License: MIT
456
+ Repository: https://github.com/SBoudrias/Inquirer.js
457
+ Publisher: Simon Boudrias
458
+ ----------------------------------------------
459
+
460
+ Package: isomorphic-ws@4.0.1
461
+ License: MIT
462
+ Repository: https://github.com/heineiuo/isomorphic-ws
463
+ Publisher: @heineiuo
464
+ ----------------------------------------------
465
+
466
+ Package: jayson@4.3.0
467
+ License: MIT
468
+ Repository: https://github.com/tedeh/jayson
469
+ Publisher: Tedde Lundgren
470
+ ----------------------------------------------
471
+
472
+ Package: json-stringify-safe@5.0.1
473
+ License: ISC
474
+ Repository: https://github.com/isaacs/json-stringify-safe
475
+ Publisher: Isaac Z. Schlueter
476
+ ----------------------------------------------
477
+
478
+ Package: ms@2.1.3
479
+ License: MIT
480
+ Repository: https://github.com/vercel/ms
481
+ Publisher: N/A
482
+ ----------------------------------------------
483
+
484
+ Package: mute-stream@3.0.0
485
+ License: ISC
486
+ Repository: https://github.com/npm/mute-stream
487
+ Publisher: GitHub Inc.
488
+ ----------------------------------------------
489
+
490
+ Package: node-fetch@2.7.0
491
+ License: MIT
492
+ Repository: https://github.com/bitinn/node-fetch
493
+ Publisher: David Frank
494
+ ----------------------------------------------
495
+
496
+ Package: rpc-websockets@9.3.6
497
+ License: LGPL-3.0-only
498
+ Repository: https://github.com/elpheria/rpc-websockets
499
+ Publisher: Elpheria
500
+ ----------------------------------------------
501
+
502
+ Package: run-async@4.0.6
503
+ License: MIT
504
+ Repository: https://github.com/SBoudrias/run-async
505
+ Publisher: Simon Boudrias
506
+ ----------------------------------------------
507
+
508
+ Package: rxjs@7.8.2
509
+ License: Apache-2.0
510
+ Repository: https://github.com/reactivex/rxjs
511
+ Publisher: Ben Lesh
512
+ ----------------------------------------------
513
+
514
+ Package: safe-buffer@5.2.1
515
+ License: MIT
516
+ Repository: https://github.com/feross/safe-buffer
517
+ Publisher: Feross Aboukhadijeh
518
+ ----------------------------------------------
519
+
520
+ Package: safer-buffer@2.1.2
521
+ License: MIT
522
+ Repository: https://github.com/ChALkeR/safer-buffer
523
+ Publisher: Nikita Skovoroda
524
+ ----------------------------------------------
525
+
526
+ Package: signal-exit@4.1.0
527
+ License: ISC
528
+ Repository: https://github.com/tapjs/signal-exit
529
+ Publisher: Ben Coe
530
+ ----------------------------------------------
531
+
532
+ Package: stream-chain@2.2.5
533
+ License: BSD-3-Clause
534
+ Repository: https://github.com/uhop/stream-chain
535
+ Publisher: Eugene Lazutkin
536
+ ----------------------------------------------
537
+
538
+ Package: stream-json@1.9.1
539
+ License: BSD-3-Clause
540
+ Repository: https://github.com/uhop/stream-json
541
+ Publisher: Eugene Lazutkin
542
+ ----------------------------------------------
543
+
544
+ Package: superstruct@2.0.2
545
+ License: MIT
546
+ Repository: https://github.com/ianstormtaylor/superstruct
547
+ Publisher: N/A
548
+ ----------------------------------------------
549
+
550
+ Package: text-encoding-utf-8@1.0.2
551
+ License: Public Domain
552
+ Repository: https://github.com/arv/text-encoding-utf-8
553
+ Publisher: Erik Arvidsson
554
+ ----------------------------------------------
555
+
556
+ Package: tr46@0.0.3
557
+ License: MIT
558
+ Repository: https://github.com/Sebmaster/tr46.js
559
+ Publisher: Sebastian Mayr
560
+ ----------------------------------------------
561
+
562
+ Package: tslib@2.8.1
563
+ License: 0BSD
564
+ Repository: https://github.com/Microsoft/tslib
565
+ Publisher: Microsoft Corp.
566
+ ----------------------------------------------
567
+
568
+ Package: typescript@5.9.3
569
+ License: Apache-2.0
570
+ Repository: https://github.com/microsoft/TypeScript
571
+ Publisher: Microsoft Corp.
572
+ ----------------------------------------------
573
+
574
+ Package: undici-types@7.18.2
575
+ License: MIT
576
+ Repository: https://github.com/nodejs/undici
577
+ Publisher: N/A
578
+ ----------------------------------------------
579
+
580
+ Package: uuid@11.1.0
581
+ License: MIT
582
+ Repository: https://github.com/uuidjs/uuid
583
+ Publisher: N/A
584
+ ----------------------------------------------
585
+
586
+ Package: uuid@8.3.2
587
+ License: MIT
588
+ Repository: https://github.com/uuidjs/uuid
589
+ Publisher: N/A
590
+ ----------------------------------------------
591
+
592
+ Package: webidl-conversions@3.0.1
593
+ License: BSD-2-Clause
594
+ Repository: https://github.com/jsdom/webidl-conversions
595
+ Publisher: Domenic Denicola
596
+ ----------------------------------------------
597
+
598
+ Package: whatwg-url@5.0.0
599
+ License: MIT
600
+ Repository: https://github.com/jsdom/whatwg-url
601
+ Publisher: Sebastian Mayr
602
+ ----------------------------------------------
603
+
604
+ Package: ws@7.5.10
605
+ License: MIT
606
+ Repository: https://github.com/websockets/ws
607
+ Publisher: Einar Otto Stangvik
608
+ ----------------------------------------------
609
+
610
+ Package: ws@8.19.0
611
+ License: MIT
612
+ Repository: https://github.com/websockets/ws
613
+ Publisher: Einar Otto Stangvik
614
+ ----------------------------------------------
615
+
package/bin/gp.mjs ADDED
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from 'commander';
3
+ import addWallet from '../src/commands/addWallet.mjs';
4
+ import removeWallet from '../src/commands/removeWallet.mjs';
5
+ import listWallets from '../src/commands/listWallets.mjs';
6
+ import closeEmpty from '../src/commands/closeEmpty.mjs';
7
+ import { printBanner } from '../src/display.mjs';
8
+
9
+ const program = new Command();
10
+
11
+ program
12
+ .name('gp')
13
+ .description('Graveyard Protocol CLI — close empty SPL token accounts and reclaim SOL')
14
+ .version('1.0.0');
15
+
16
+ // ── Wallet commands ───────────────────────────────────────────────────────────
17
+ program
18
+ .command('add-wallet')
19
+ .description('Add a Solana wallet to local encrypted storage')
20
+ .action(addWallet);
21
+
22
+ program
23
+ .command('remove-wallet')
24
+ .description('Remove a saved wallet from local storage')
25
+ .action(removeWallet);
26
+
27
+ program
28
+ .command('list-wallets')
29
+ .description('List all saved wallet public keys')
30
+ .action(listWallets);
31
+
32
+ // ── Core command ──────────────────────────────────────────────────────────────
33
+ program
34
+ .command('close-empty')
35
+ .description('Scan and close empty token accounts, reclaiming locked SOL')
36
+ .option('--all', 'Process all saved wallets in sequence')
37
+ .option('--send-to <address>', 'Send reclaimed SOL to this address (future)')
38
+ .option('--dry-run', 'Run full pipeline but skip execution — show simulated results')
39
+ .option('--verbose', 'Show detailed sub-step output for each batch')
40
+ .action(closeEmpty);
41
+
42
+ // ── Print banner before help when no arguments are provided ───────────────────
43
+ if (process.argv.length === 2) {
44
+ printBanner();
45
+ }
46
+
47
+ program.parse(process.argv);