@temporalabs/treasury 0.1.2 → 0.1.3

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.
Files changed (81) hide show
  1. package/README.md +44 -12
  2. package/THIRD_PARTY_NOTICES.connect-page.md +416 -0
  3. package/THIRD_PARTY_NOTICES.md +575 -2
  4. package/dist/cli.js +28 -5
  5. package/dist/cli.js.map +1 -1
  6. package/dist/client.d.ts +149 -7
  7. package/dist/client.js +66 -11
  8. package/dist/client.js.map +1 -1
  9. package/dist/config/earn.d.ts +16 -1
  10. package/dist/config/earn.js +16 -1
  11. package/dist/config/earn.js.map +1 -1
  12. package/dist/connect/ack.d.ts +18 -1
  13. package/dist/connect/ack.js +42 -6
  14. package/dist/connect/ack.js.map +1 -1
  15. package/dist/connect/commands.d.ts +3 -0
  16. package/dist/connect/commands.js +168 -24
  17. package/dist/connect/commands.js.map +1 -1
  18. package/dist/connect/config.d.ts +7 -5
  19. package/dist/connect/config.js +8 -6
  20. package/dist/connect/config.js.map +1 -1
  21. package/dist/connect/gate-solana.d.ts +8 -0
  22. package/dist/connect/gate-solana.js +147 -0
  23. package/dist/connect/gate-solana.js.map +1 -0
  24. package/dist/connect/http.d.ts +7 -1
  25. package/dist/connect/http.js +41 -11
  26. package/dist/connect/http.js.map +1 -1
  27. package/dist/connect/page.d.ts +1 -1
  28. package/dist/connect/page.js +2 -2
  29. package/dist/connect/page.js.map +1 -1
  30. package/dist/connect/session.d.ts +23 -0
  31. package/dist/connect/session.js +126 -1
  32. package/dist/connect/session.js.map +1 -1
  33. package/dist/connect/solana.d.ts +73 -0
  34. package/dist/connect/solana.js +267 -0
  35. package/dist/connect/solana.js.map +1 -0
  36. package/dist/connect-page.js +604 -602
  37. package/dist/disclosures.d.ts +5 -4
  38. package/dist/disclosures.js +5 -4
  39. package/dist/disclosures.js.map +1 -1
  40. package/dist/earn/commands.js +127 -54
  41. package/dist/earn/commands.js.map +1 -1
  42. package/dist/earn/solana.d.ts +278 -0
  43. package/dist/earn/solana.js +302 -0
  44. package/dist/earn/solana.js.map +1 -0
  45. package/dist/guide.d.ts +15 -0
  46. package/dist/guide.js +50 -0
  47. package/dist/guide.js.map +1 -0
  48. package/dist/links.js +2 -0
  49. package/dist/links.js.map +1 -1
  50. package/dist/position.d.ts +3 -2
  51. package/dist/position.js +6 -3
  52. package/dist/position.js.map +1 -1
  53. package/dist/quote.js +2 -2
  54. package/dist/quote.js.map +1 -1
  55. package/dist/registry-schema.d.ts +79 -2
  56. package/dist/registry-schema.js +77 -1
  57. package/dist/registry-schema.js.map +1 -1
  58. package/dist/registry.d.ts +21 -1
  59. package/dist/registry.js +48 -10
  60. package/dist/registry.js.map +1 -1
  61. package/dist/solana/constants.d.ts +49 -0
  62. package/dist/solana/constants.js +50 -0
  63. package/dist/solana/constants.js.map +1 -0
  64. package/dist/solana/kvault.d.ts +99 -0
  65. package/dist/solana/kvault.js +192 -0
  66. package/dist/solana/kvault.js.map +1 -0
  67. package/dist/solana/layout.d.ts +143 -0
  68. package/dist/solana/layout.js +209 -0
  69. package/dist/solana/layout.js.map +1 -0
  70. package/dist/solana/rpc.d.ts +24 -0
  71. package/dist/solana/rpc.js +66 -0
  72. package/dist/solana/rpc.js.map +1 -0
  73. package/dist/solana/vault.d.ts +153 -0
  74. package/dist/solana/vault.js +324 -0
  75. package/dist/solana/vault.js.map +1 -0
  76. package/dist/treasury.mjs +8123 -1082
  77. package/dist/version.js +5 -10
  78. package/dist/version.js.map +1 -1
  79. package/llms.txt +621 -0
  80. package/package.json +9 -6
  81. package/registry/vaults.json +113 -0
@@ -12,9 +12,31 @@ by hand.
12
12
  |---|---|---|
13
13
  | `@noble/curves` | 1.9.1 | MIT |
14
14
  | `@noble/hashes` | 1.8.0 | MIT |
15
+ | `@solana/addresses` | 8.4.0 | MIT |
16
+ | `@solana/assertions` | 8.4.0 | MIT |
17
+ | `@solana/codecs-core` | 8.4.0 | MIT |
18
+ | `@solana/codecs-data-structures` | 8.4.0 | MIT |
19
+ | `@solana/codecs-numbers` | 8.4.0 | MIT |
20
+ | `@solana/codecs-strings` | 8.4.0 | MIT |
21
+ | `@solana/errors` | 8.4.0 | MIT |
22
+ | `@solana/fast-stable-stringify` | 8.4.0 | MIT |
23
+ | `@solana/functional` | 8.4.0 | MIT |
24
+ | `@solana/instructions` | 8.4.0 | MIT |
25
+ | `@solana/keys` | 8.4.0 | MIT |
26
+ | `@solana/promises` | 8.4.0 | MIT |
27
+ | `@solana/rpc` | 8.4.0 | MIT |
28
+ | `@solana/rpc-api` | 8.4.0 | MIT |
29
+ | `@solana/rpc-spec` | 8.4.0 | MIT |
30
+ | `@solana/rpc-spec-types` | 8.4.0 | MIT |
31
+ | `@solana/rpc-transformers` | 8.4.0 | MIT |
32
+ | `@solana/rpc-transport-http` | 8.4.0 | MIT |
33
+ | `@solana/rpc-types` | 8.4.0 | MIT |
34
+ | `@solana/subscribable` | 8.4.0 | MIT |
35
+ | `@solana/transaction-messages` | 8.4.0 | MIT |
36
+ | `@solana/transactions` | 8.4.0 | MIT |
15
37
  | `abitype` | 1.2.3 | MIT |
16
38
  | `ox` | 0.14.45 | MIT |
17
- | `viem` | 2.57.2 | MIT |
39
+ | `viem` | 2.57.3 | MIT |
18
40
  | `zod` | 4.6.5 | MIT |
19
41
 
20
42
  ## @noble/curves 1.9.1 (MIT)
@@ -69,6 +91,557 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
69
91
  THE SOFTWARE.
70
92
  ```
71
93
 
94
+ ## @solana/addresses 8.4.0 (MIT)
95
+
96
+ ```text
97
+ Copyright (c) 2023 Solana Labs, Inc
98
+
99
+ Permission is hereby granted, free of charge, to any person obtaining
100
+ a copy of this software and associated documentation files (the
101
+ "Software"), to deal in the Software without restriction, including
102
+ without limitation the rights to use, copy, modify, merge, publish,
103
+ distribute, sublicense, and/or sell copies of the Software, and to
104
+ permit persons to whom the Software is furnished to do so, subject to
105
+ the following conditions:
106
+
107
+ The above copyright notice and this permission notice shall be
108
+ included in all copies or substantial portions of the Software.
109
+
110
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
111
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
112
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
113
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
114
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
115
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
116
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
117
+ ```
118
+
119
+ ## @solana/assertions 8.4.0 (MIT)
120
+
121
+ ```text
122
+ Copyright (c) 2023 Solana Labs, Inc
123
+
124
+ Permission is hereby granted, free of charge, to any person obtaining
125
+ a copy of this software and associated documentation files (the
126
+ "Software"), to deal in the Software without restriction, including
127
+ without limitation the rights to use, copy, modify, merge, publish,
128
+ distribute, sublicense, and/or sell copies of the Software, and to
129
+ permit persons to whom the Software is furnished to do so, subject to
130
+ the following conditions:
131
+
132
+ The above copyright notice and this permission notice shall be
133
+ included in all copies or substantial portions of the Software.
134
+
135
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
136
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
137
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
138
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
139
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
140
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
141
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
142
+ ```
143
+
144
+ ## @solana/codecs-core 8.4.0 (MIT)
145
+
146
+ ```text
147
+ Copyright (c) 2023 Solana Labs, Inc
148
+
149
+ Permission is hereby granted, free of charge, to any person obtaining
150
+ a copy of this software and associated documentation files (the
151
+ "Software"), to deal in the Software without restriction, including
152
+ without limitation the rights to use, copy, modify, merge, publish,
153
+ distribute, sublicense, and/or sell copies of the Software, and to
154
+ permit persons to whom the Software is furnished to do so, subject to
155
+ the following conditions:
156
+
157
+ The above copyright notice and this permission notice shall be
158
+ included in all copies or substantial portions of the Software.
159
+
160
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
161
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
162
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
163
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
164
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
165
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
166
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
167
+ ```
168
+
169
+ ## @solana/codecs-data-structures 8.4.0 (MIT)
170
+
171
+ ```text
172
+ Copyright (c) 2023 Solana Labs, Inc
173
+
174
+ Permission is hereby granted, free of charge, to any person obtaining
175
+ a copy of this software and associated documentation files (the
176
+ "Software"), to deal in the Software without restriction, including
177
+ without limitation the rights to use, copy, modify, merge, publish,
178
+ distribute, sublicense, and/or sell copies of the Software, and to
179
+ permit persons to whom the Software is furnished to do so, subject to
180
+ the following conditions:
181
+
182
+ The above copyright notice and this permission notice shall be
183
+ included in all copies or substantial portions of the Software.
184
+
185
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
186
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
187
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
188
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
189
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
190
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
191
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
192
+ ```
193
+
194
+ ## @solana/codecs-numbers 8.4.0 (MIT)
195
+
196
+ ```text
197
+ Copyright (c) 2023 Solana Labs, Inc
198
+
199
+ Permission is hereby granted, free of charge, to any person obtaining
200
+ a copy of this software and associated documentation files (the
201
+ "Software"), to deal in the Software without restriction, including
202
+ without limitation the rights to use, copy, modify, merge, publish,
203
+ distribute, sublicense, and/or sell copies of the Software, and to
204
+ permit persons to whom the Software is furnished to do so, subject to
205
+ the following conditions:
206
+
207
+ The above copyright notice and this permission notice shall be
208
+ included in all copies or substantial portions of the Software.
209
+
210
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
211
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
212
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
213
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
214
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
215
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
216
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
217
+ ```
218
+
219
+ ## @solana/codecs-strings 8.4.0 (MIT)
220
+
221
+ ```text
222
+ Copyright (c) 2023 Solana Labs, Inc
223
+
224
+ Permission is hereby granted, free of charge, to any person obtaining
225
+ a copy of this software and associated documentation files (the
226
+ "Software"), to deal in the Software without restriction, including
227
+ without limitation the rights to use, copy, modify, merge, publish,
228
+ distribute, sublicense, and/or sell copies of the Software, and to
229
+ permit persons to whom the Software is furnished to do so, subject to
230
+ the following conditions:
231
+
232
+ The above copyright notice and this permission notice shall be
233
+ included in all copies or substantial portions of the Software.
234
+
235
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
236
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
237
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
238
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
239
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
240
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
241
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
242
+ ```
243
+
244
+ ## @solana/errors 8.4.0 (MIT)
245
+
246
+ ```text
247
+ Copyright (c) 2023 Solana Labs, Inc
248
+
249
+ Permission is hereby granted, free of charge, to any person obtaining
250
+ a copy of this software and associated documentation files (the
251
+ "Software"), to deal in the Software without restriction, including
252
+ without limitation the rights to use, copy, modify, merge, publish,
253
+ distribute, sublicense, and/or sell copies of the Software, and to
254
+ permit persons to whom the Software is furnished to do so, subject to
255
+ the following conditions:
256
+
257
+ The above copyright notice and this permission notice shall be
258
+ included in all copies or substantial portions of the Software.
259
+
260
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
261
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
262
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
263
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
264
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
265
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
266
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
267
+ ```
268
+
269
+ ## @solana/fast-stable-stringify 8.4.0 (MIT)
270
+
271
+ ```text
272
+ Copyright (c) 2023 Solana Labs, Inc
273
+ Copyright (c) 2017 Nicolaas Johannes Out
274
+
275
+ Permission is hereby granted, free of charge, to any person obtaining
276
+ a copy of this software and associated documentation files (the
277
+ "Software"), to deal in the Software without restriction, including
278
+ without limitation the rights to use, copy, modify, merge, publish,
279
+ distribute, sublicense, and/or sell copies of the Software, and to
280
+ permit persons to whom the Software is furnished to do so, subject to
281
+ the following conditions:
282
+
283
+ The above copyright notice and this permission notice shall be
284
+ included in all copies or substantial portions of the Software.
285
+
286
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
287
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
288
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
289
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
290
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
291
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
292
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
293
+ ```
294
+
295
+ ## @solana/functional 8.4.0 (MIT)
296
+
297
+ ```text
298
+ Copyright (c) 2023 Solana Labs, Inc
299
+
300
+ Permission is hereby granted, free of charge, to any person obtaining
301
+ a copy of this software and associated documentation files (the
302
+ "Software"), to deal in the Software without restriction, including
303
+ without limitation the rights to use, copy, modify, merge, publish,
304
+ distribute, sublicense, and/or sell copies of the Software, and to
305
+ permit persons to whom the Software is furnished to do so, subject to
306
+ the following conditions:
307
+
308
+ The above copyright notice and this permission notice shall be
309
+ included in all copies or substantial portions of the Software.
310
+
311
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
312
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
313
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
314
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
315
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
316
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
317
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
318
+ ```
319
+
320
+ ## @solana/instructions 8.4.0 (MIT)
321
+
322
+ ```text
323
+ Copyright (c) 2023 Solana Labs, Inc
324
+
325
+ Permission is hereby granted, free of charge, to any person obtaining
326
+ a copy of this software and associated documentation files (the
327
+ "Software"), to deal in the Software without restriction, including
328
+ without limitation the rights to use, copy, modify, merge, publish,
329
+ distribute, sublicense, and/or sell copies of the Software, and to
330
+ permit persons to whom the Software is furnished to do so, subject to
331
+ the following conditions:
332
+
333
+ The above copyright notice and this permission notice shall be
334
+ included in all copies or substantial portions of the Software.
335
+
336
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
337
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
338
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
339
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
340
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
341
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
342
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
343
+ ```
344
+
345
+ ## @solana/keys 8.4.0 (MIT)
346
+
347
+ ```text
348
+ Copyright (c) 2023 Solana Labs, Inc
349
+
350
+ Permission is hereby granted, free of charge, to any person obtaining
351
+ a copy of this software and associated documentation files (the
352
+ "Software"), to deal in the Software without restriction, including
353
+ without limitation the rights to use, copy, modify, merge, publish,
354
+ distribute, sublicense, and/or sell copies of the Software, and to
355
+ permit persons to whom the Software is furnished to do so, subject to
356
+ the following conditions:
357
+
358
+ The above copyright notice and this permission notice shall be
359
+ included in all copies or substantial portions of the Software.
360
+
361
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
362
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
363
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
364
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
365
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
366
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
367
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
368
+ ```
369
+
370
+ ## @solana/promises 8.4.0 (MIT)
371
+
372
+ ```text
373
+ Copyright (c) 2023 Solana Labs, Inc
374
+
375
+ Permission is hereby granted, free of charge, to any person obtaining
376
+ a copy of this software and associated documentation files (the
377
+ "Software"), to deal in the Software without restriction, including
378
+ without limitation the rights to use, copy, modify, merge, publish,
379
+ distribute, sublicense, and/or sell copies of the Software, and to
380
+ permit persons to whom the Software is furnished to do so, subject to
381
+ the following conditions:
382
+
383
+ The above copyright notice and this permission notice shall be
384
+ included in all copies or substantial portions of the Software.
385
+
386
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
387
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
388
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
389
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
390
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
391
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
392
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
393
+ ```
394
+
395
+ ## @solana/rpc 8.4.0 (MIT)
396
+
397
+ ```text
398
+ Copyright (c) 2023 Solana Labs, Inc
399
+
400
+ Permission is hereby granted, free of charge, to any person obtaining
401
+ a copy of this software and associated documentation files (the
402
+ "Software"), to deal in the Software without restriction, including
403
+ without limitation the rights to use, copy, modify, merge, publish,
404
+ distribute, sublicense, and/or sell copies of the Software, and to
405
+ permit persons to whom the Software is furnished to do so, subject to
406
+ the following conditions:
407
+
408
+ The above copyright notice and this permission notice shall be
409
+ included in all copies or substantial portions of the Software.
410
+
411
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
412
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
413
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
414
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
415
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
416
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
417
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
418
+ ```
419
+
420
+ ## @solana/rpc-api 8.4.0 (MIT)
421
+
422
+ ```text
423
+ Copyright (c) 2023 Solana Labs, Inc
424
+
425
+ Permission is hereby granted, free of charge, to any person obtaining
426
+ a copy of this software and associated documentation files (the
427
+ "Software"), to deal in the Software without restriction, including
428
+ without limitation the rights to use, copy, modify, merge, publish,
429
+ distribute, sublicense, and/or sell copies of the Software, and to
430
+ permit persons to whom the Software is furnished to do so, subject to
431
+ the following conditions:
432
+
433
+ The above copyright notice and this permission notice shall be
434
+ included in all copies or substantial portions of the Software.
435
+
436
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
437
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
438
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
439
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
440
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
441
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
442
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
443
+ ```
444
+
445
+ ## @solana/rpc-spec 8.4.0 (MIT)
446
+
447
+ ```text
448
+ Copyright (c) 2023 Solana Labs, Inc
449
+
450
+ Permission is hereby granted, free of charge, to any person obtaining
451
+ a copy of this software and associated documentation files (the
452
+ "Software"), to deal in the Software without restriction, including
453
+ without limitation the rights to use, copy, modify, merge, publish,
454
+ distribute, sublicense, and/or sell copies of the Software, and to
455
+ permit persons to whom the Software is furnished to do so, subject to
456
+ the following conditions:
457
+
458
+ The above copyright notice and this permission notice shall be
459
+ included in all copies or substantial portions of the Software.
460
+
461
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
462
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
463
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
464
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
465
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
466
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
467
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
468
+ ```
469
+
470
+ ## @solana/rpc-spec-types 8.4.0 (MIT)
471
+
472
+ ```text
473
+ Copyright (c) 2023 Solana Labs, Inc
474
+
475
+ Permission is hereby granted, free of charge, to any person obtaining
476
+ a copy of this software and associated documentation files (the
477
+ "Software"), to deal in the Software without restriction, including
478
+ without limitation the rights to use, copy, modify, merge, publish,
479
+ distribute, sublicense, and/or sell copies of the Software, and to
480
+ permit persons to whom the Software is furnished to do so, subject to
481
+ the following conditions:
482
+
483
+ The above copyright notice and this permission notice shall be
484
+ included in all copies or substantial portions of the Software.
485
+
486
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
487
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
488
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
489
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
490
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
491
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
492
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
493
+ ```
494
+
495
+ ## @solana/rpc-transformers 8.4.0 (MIT)
496
+
497
+ ```text
498
+ Copyright (c) 2023 Solana Labs, Inc
499
+
500
+ Permission is hereby granted, free of charge, to any person obtaining
501
+ a copy of this software and associated documentation files (the
502
+ "Software"), to deal in the Software without restriction, including
503
+ without limitation the rights to use, copy, modify, merge, publish,
504
+ distribute, sublicense, and/or sell copies of the Software, and to
505
+ permit persons to whom the Software is furnished to do so, subject to
506
+ the following conditions:
507
+
508
+ The above copyright notice and this permission notice shall be
509
+ included in all copies or substantial portions of the Software.
510
+
511
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
512
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
513
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
514
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
515
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
516
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
517
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
518
+ ```
519
+
520
+ ## @solana/rpc-transport-http 8.4.0 (MIT)
521
+
522
+ ```text
523
+ Copyright (c) 2023 Solana Labs, Inc
524
+
525
+ Permission is hereby granted, free of charge, to any person obtaining
526
+ a copy of this software and associated documentation files (the
527
+ "Software"), to deal in the Software without restriction, including
528
+ without limitation the rights to use, copy, modify, merge, publish,
529
+ distribute, sublicense, and/or sell copies of the Software, and to
530
+ permit persons to whom the Software is furnished to do so, subject to
531
+ the following conditions:
532
+
533
+ The above copyright notice and this permission notice shall be
534
+ included in all copies or substantial portions of the Software.
535
+
536
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
537
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
538
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
539
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
540
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
541
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
542
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
543
+ ```
544
+
545
+ ## @solana/rpc-types 8.4.0 (MIT)
546
+
547
+ ```text
548
+ Copyright (c) 2023 Solana Labs, Inc
549
+
550
+ Permission is hereby granted, free of charge, to any person obtaining
551
+ a copy of this software and associated documentation files (the
552
+ "Software"), to deal in the Software without restriction, including
553
+ without limitation the rights to use, copy, modify, merge, publish,
554
+ distribute, sublicense, and/or sell copies of the Software, and to
555
+ permit persons to whom the Software is furnished to do so, subject to
556
+ the following conditions:
557
+
558
+ The above copyright notice and this permission notice shall be
559
+ included in all copies or substantial portions of the Software.
560
+
561
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
562
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
563
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
564
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
565
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
566
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
567
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
568
+ ```
569
+
570
+ ## @solana/subscribable 8.4.0 (MIT)
571
+
572
+ ```text
573
+ Copyright (c) 2023 Solana Labs, Inc
574
+
575
+ Permission is hereby granted, free of charge, to any person obtaining
576
+ a copy of this software and associated documentation files (the
577
+ "Software"), to deal in the Software without restriction, including
578
+ without limitation the rights to use, copy, modify, merge, publish,
579
+ distribute, sublicense, and/or sell copies of the Software, and to
580
+ permit persons to whom the Software is furnished to do so, subject to
581
+ the following conditions:
582
+
583
+ The above copyright notice and this permission notice shall be
584
+ included in all copies or substantial portions of the Software.
585
+
586
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
587
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
588
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
589
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
590
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
591
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
592
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
593
+ ```
594
+
595
+ ## @solana/transaction-messages 8.4.0 (MIT)
596
+
597
+ ```text
598
+ Copyright (c) 2023 Solana Labs, Inc
599
+
600
+ Permission is hereby granted, free of charge, to any person obtaining
601
+ a copy of this software and associated documentation files (the
602
+ "Software"), to deal in the Software without restriction, including
603
+ without limitation the rights to use, copy, modify, merge, publish,
604
+ distribute, sublicense, and/or sell copies of the Software, and to
605
+ permit persons to whom the Software is furnished to do so, subject to
606
+ the following conditions:
607
+
608
+ The above copyright notice and this permission notice shall be
609
+ included in all copies or substantial portions of the Software.
610
+
611
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
612
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
613
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
614
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
615
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
616
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
617
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
618
+ ```
619
+
620
+ ## @solana/transactions 8.4.0 (MIT)
621
+
622
+ ```text
623
+ Copyright (c) 2023 Solana Labs, Inc
624
+
625
+ Permission is hereby granted, free of charge, to any person obtaining
626
+ a copy of this software and associated documentation files (the
627
+ "Software"), to deal in the Software without restriction, including
628
+ without limitation the rights to use, copy, modify, merge, publish,
629
+ distribute, sublicense, and/or sell copies of the Software, and to
630
+ permit persons to whom the Software is furnished to do so, subject to
631
+ the following conditions:
632
+
633
+ The above copyright notice and this permission notice shall be
634
+ included in all copies or substantial portions of the Software.
635
+
636
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
637
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
638
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
639
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
640
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
641
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
642
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
643
+ ```
644
+
72
645
  ## abitype 1.2.3 (MIT)
73
646
 
74
647
  ```text
@@ -121,7 +694,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
121
694
  SOFTWARE.
122
695
  ```
123
696
 
124
- ## viem 2.57.2 (MIT)
697
+ ## viem 2.57.3 (MIT)
125
698
 
126
699
  ```text
127
700
  MIT License
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * turns argv into their arguments, validates them against each command's own schema, and prints.
8
8
  *
9
9
  * treasury earn --help every command, its flags and its description, as JSON
10
- * treasury earn quote --direction deposit --account 0x… --amount_usdc 25 --chain base
10
+ * treasury earn quote --direction deposit --account 0x… --amount_usdc <amount> --chain base
11
11
  * treasury --version
12
12
  *
13
13
  * Flags are the command's argument names. `--amount-usdc` is accepted for `--amount_usdc`, and
@@ -28,6 +28,7 @@ import { buildConnectCommands } from "./connect/commands.js";
28
28
  import { resolvedRpcSecrets } from "./client.js";
29
29
  import { redactEndpoints, registerSecretSource } from "./redact.js";
30
30
  import { PACKAGE_VERSION } from "./version.js";
31
+ import { guidePointer } from "./guide.js";
31
32
  /**
32
33
  * The skills this CLI carries: a word on the command line, and the commands it opens. A command's name
33
34
  * starts with its skill's word (`earn_quote`), and only that skill's builder is ever consulted for it.
@@ -131,6 +132,11 @@ function parseFlags(c, argv) {
131
132
  }
132
133
  return checked.data;
133
134
  }
135
+ /** `{ guide }` for the help documents, or nothing when the pointer does not apply (the plugin's copy). */
136
+ const guideField = () => {
137
+ const guide = guidePointer();
138
+ return guide ? { guide } : {};
139
+ };
134
140
  /** Runs one invocation. Returns what to print and the exit status; never calls `process.exit` itself, so tests can drive it. */
135
141
  export async function run(argv) {
136
142
  // Registered before anything can be printed: a usage error echoes what was typed, and what was typed
@@ -141,7 +147,7 @@ export async function run(argv) {
141
147
  if (first === "--version" || first === "-v")
142
148
  return { stdout: PACKAGE_VERSION, code: 0 };
143
149
  if (first === undefined || first === "--help" || first === "-h") {
144
- return { stdout: JSON.stringify({ usage: "treasury <skill> <command> [--flag value …]", version: PACKAGE_VERSION, skills: Object.keys(SKILLS) }, null, 2), code: 0 };
150
+ return { stdout: JSON.stringify({ usage: "treasury <skill> <command> [--flag value …]", version: PACKAGE_VERSION, skills: Object.keys(SKILLS), ...guideField() }, null, 2), code: 0 };
145
151
  }
146
152
  const build = Object.hasOwn(SKILLS, first) ? SKILLS[first] : undefined;
147
153
  if (!build)
@@ -156,7 +162,7 @@ export async function run(argv) {
156
162
  }
157
163
  const mine = Object.entries(commands).filter(([name]) => name.startsWith(`${skill}_`));
158
164
  if (second === undefined || second === "--help" || second === "-h") {
159
- return { stdout: JSON.stringify({ usage: `treasury ${skill} <command> [--flag value …]`, version: PACKAGE_VERSION, commands: mine.map(([n, c]) => describe(skill, n, c)) }, null, 2), code: 0 };
165
+ return { stdout: JSON.stringify({ usage: `treasury ${skill} <command> [--flag value …]`, version: PACKAGE_VERSION, ...guideField(), commands: mine.map(([n, c]) => describe(skill, n, c)) }, null, 2), code: 0 };
160
166
  }
161
167
  const name = `${skill}_${second.replaceAll("-", "_")}`;
162
168
  // Own keys only: `commands` is a plain object, so `earn constructor` must not reach anything inherited.
@@ -203,6 +209,23 @@ function isEntryPoint() {
203
209
  return false;
204
210
  }
205
211
  }
212
+ /** How long Windows waits for open handles to finish before it ends the process anyway. */
213
+ const WINDOWS_EXIT_BACKSTOP_MS = 2_000;
214
+ /**
215
+ * Ends the process with `code` once the answer is written. Elsewhere this is an immediate
216
+ * `process.exit`. On Windows it is not (#122): Node 24 (24.0.0 and 24.19.0 measured) aborts with
217
+ * 0xC0000409, on the libuv assertion `!(handle->flags & UV_HANDLE_CLOSING)`, when `process.exit` runs
218
+ * right after the health check's request — it printed a correct answer and then crashed. There the
219
+ * exit code is set and Node ends on its own once nothing is left open; a backstop that holds
220
+ * nothing open ends it after WINDOWS_EXIT_BACKSTOP_MS if a request is still pending, as the
221
+ * slow-endpoint case leaves one.
222
+ */
223
+ function exitWith(code) {
224
+ if (process.platform !== "win32")
225
+ process.exit(code);
226
+ process.exitCode = code;
227
+ setTimeout(() => process.exit(code), WINDOWS_EXIT_BACKSTOP_MS).unref();
228
+ }
206
229
  if (isEntryPoint()) {
207
230
  run(process.argv.slice(2)).then(({ stdout, stderr, code }) => {
208
231
  // Exit as soon as the answer is written. A read that lost a race (the chain-id probe beside a
@@ -210,11 +233,11 @@ if (isEntryPoint()) {
210
233
  // the agent's shell call would wait it out. The callbacks wait for each stream to flush first.
211
234
  const out = stdout === undefined ? Promise.resolve() : new Promise((done) => process.stdout.write(`${stdout}\n`, () => done()));
212
235
  const err = stderr === undefined ? Promise.resolve() : new Promise((done) => process.stderr.write(`${stderr}\n`, () => done()));
213
- void Promise.all([out, err]).then(() => process.exit(code));
236
+ void Promise.all([out, err]).then(() => exitWith(code));
214
237
  }, (e) => {
215
238
  // Defence-in-depth: `run` catches everything it calls, so this is reached only by a defect in
216
239
  // `run` itself. Masked anyway, so that stays true if `run` ever grows.
217
- process.stderr.write(`${JSON.stringify({ error: redactEndpoints(String(e)) })}\n`, () => process.exit(1));
240
+ process.stderr.write(`${JSON.stringify({ error: redactEndpoints(String(e)) })}\n`, () => exitWith(1));
218
241
  });
219
242
  }
220
243
  //# sourceMappingURL=cli.js.map