@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.1

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 (823) hide show
  1. package/README.md +102 -3
  2. package/THIRD_PARTY_NOTICES.txt +1064 -0
  3. package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/apps/cli/dist/args.mjs +204 -0
  5. package/apps/cli/dist/cli.mjs +392 -0
  6. package/apps/cli/dist/errors.mjs +32 -0
  7. package/apps/cli/dist/help.mjs +73 -0
  8. package/apps/cli/dist/io.mjs +37 -0
  9. package/apps/cli/dist/main.mjs +10 -0
  10. package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  11. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  12. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  13. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  14. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  15. package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  16. package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  17. package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  18. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  19. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  20. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  21. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  22. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  23. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  24. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  25. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  26. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  27. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  28. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  29. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  30. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  31. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  32. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  33. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  34. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  35. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  36. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  37. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  38. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  39. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  40. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  41. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  42. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  43. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  44. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  45. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  46. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  47. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  48. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  49. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  50. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  51. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  52. package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  53. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  54. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  55. package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  56. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  57. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  58. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  59. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  60. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  61. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  62. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  63. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  64. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  65. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  66. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  67. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  68. package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  69. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  70. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  71. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  72. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  73. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  74. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  75. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  76. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  77. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  78. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  79. package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  80. package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  81. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  82. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  83. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  84. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  85. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  86. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  87. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  88. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  89. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  90. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  91. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  92. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  93. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  94. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  95. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  96. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  97. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  98. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  99. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  100. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  101. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  102. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  103. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  104. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  105. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  106. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  107. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  108. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  109. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  110. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  111. package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  112. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  113. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  114. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  115. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  116. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  117. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  118. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  119. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  120. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  121. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  122. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  123. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  124. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  125. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  126. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  127. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  128. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  129. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  130. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  131. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  132. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  133. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  134. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  135. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  136. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  137. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  138. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  139. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  140. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  141. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  142. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  143. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  144. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  145. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  146. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  147. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  148. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  149. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  150. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  151. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  152. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  153. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  154. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  155. package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  156. package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  157. package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  158. package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  159. package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  160. package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  161. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  162. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  163. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  164. package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  165. package/apps/cli/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  166. package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  167. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  168. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  169. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  170. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  171. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  172. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  173. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  174. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  175. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  176. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  177. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  178. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  179. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  180. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  181. package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  182. package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  183. package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  184. package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  185. package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  186. package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  187. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  188. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  189. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  190. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  191. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  192. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  193. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  194. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  195. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  196. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  197. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  198. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  199. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  200. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  201. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  202. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  203. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  204. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  205. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  206. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  207. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  208. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  209. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  210. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  211. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  212. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  213. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  214. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  215. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  216. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  217. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  218. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  219. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  220. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  221. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  222. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  223. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  224. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  225. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  226. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  227. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  228. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  229. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  230. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  231. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  232. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  233. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  234. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  235. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  236. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  237. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  238. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  239. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  240. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  241. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  242. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  243. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  244. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  245. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  246. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  247. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  248. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  249. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  250. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  251. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  252. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  253. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  254. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  255. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  256. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  257. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  258. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  259. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  260. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  261. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  262. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  263. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  264. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  265. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  266. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  267. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  268. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  269. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  270. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  271. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  272. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  273. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  274. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  275. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  276. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  277. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  278. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  279. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  280. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  281. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  282. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  283. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  284. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  285. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  286. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  287. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  288. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  289. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  290. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  291. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  292. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  293. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  294. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  295. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  296. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  297. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  298. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  299. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  300. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  301. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  302. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  303. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  304. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  305. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  306. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  307. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  308. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  309. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  310. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  311. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  312. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  313. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  314. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  315. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  316. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  317. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  318. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  319. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  320. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  321. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  322. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  323. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  324. package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
  325. package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  326. package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
  327. package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
  328. package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
  329. package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  330. package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
  331. package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
  332. package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
  333. package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
  334. package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  335. package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
  336. package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
  337. package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
  338. package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
  339. package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
  340. package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
  341. package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
  342. package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
  343. package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
  344. package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
  345. package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
  346. package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
  347. package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
  348. package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
  349. package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  350. package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  351. package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
  352. package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  353. package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
  354. package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
  355. package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
  356. package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
  357. package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
  358. package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
  359. package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  360. package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
  361. package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
  362. package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  363. package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  364. package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
  365. package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  366. package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  367. package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  368. package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
  369. package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
  370. package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  371. package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  372. package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
  373. package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  374. package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
  375. package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  376. package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
  377. package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
  378. package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
  379. package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
  380. package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
  381. package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  382. package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  383. package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
  384. package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
  385. package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
  386. package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
  387. package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  388. package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  389. package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
  390. package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
  391. package/apps/cli/dist/storage.mjs +11 -0
  392. package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
  393. package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
  394. package/bundles/sui-ledger/dist/client.js +23756 -0
  395. package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
  396. package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
  397. package/bundles/sui-ledger/dist/index.mjs +198 -0
  398. package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
  399. package/bundles/sui-ledger/dist/node_modules/.pnpm/@deepseek-ai_dsh-home-paths_159c15e70066431314381a350c2ee56a/node_modules/@deepseek-ai/dsh-home-paths/lib/index.mjs +67 -0
  400. package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  401. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  402. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  403. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  404. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  405. package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  406. package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  407. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  408. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  409. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  410. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  411. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  412. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  413. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  414. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  415. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  416. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  417. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  418. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  419. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  420. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  421. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  422. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  423. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  424. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  425. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  426. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  427. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  428. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  429. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  430. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  431. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  432. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  433. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  434. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  435. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  436. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  437. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  438. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  439. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  440. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  441. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  442. package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  443. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  444. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  445. package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  446. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  447. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  448. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  449. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  450. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  451. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  452. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  453. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  454. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  455. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  456. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  457. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  458. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  459. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  460. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  461. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  462. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  463. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  464. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  465. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  466. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  467. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  468. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  469. package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  470. package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  471. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  472. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  473. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  474. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  475. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  476. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  477. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  478. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  479. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  480. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  481. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  482. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  483. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  484. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  485. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  486. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  487. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  488. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  489. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  490. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  491. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  492. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  493. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  494. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  495. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  496. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  497. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  498. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  499. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  500. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  501. package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  502. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  503. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  504. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  505. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  506. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  507. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  508. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  509. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  510. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  511. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  512. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  513. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  514. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  515. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  516. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  517. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  518. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  519. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  520. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  521. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  522. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  523. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  524. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  525. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  526. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  527. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  528. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  529. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  530. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  531. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  532. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  533. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  534. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  535. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  536. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  537. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  538. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  539. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  540. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  541. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  542. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  543. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  544. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  545. package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  546. package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  547. package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  548. package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  549. package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  550. package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  551. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  552. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  553. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  554. package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  555. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  556. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  557. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  558. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  559. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  560. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  561. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  562. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  563. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  564. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  565. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  566. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  567. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  568. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  569. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  570. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  571. package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  572. package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  573. package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  574. package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  575. package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  576. package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  577. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  578. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  579. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  580. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  581. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  582. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  583. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  584. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  585. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  586. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  587. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  588. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  589. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  590. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  591. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  592. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  593. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  594. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  595. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  596. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  597. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  598. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  599. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  600. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  601. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  602. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  603. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  604. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  605. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  606. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  607. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  608. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  609. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  610. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  611. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  612. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  613. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  614. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  615. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  616. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  617. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  618. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  619. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  620. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  621. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  622. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  623. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  624. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  625. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  626. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  627. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  628. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  629. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  630. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  631. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  632. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  633. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  634. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  635. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  636. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  637. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  638. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  639. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  640. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  641. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  642. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  643. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  644. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  645. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  646. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  647. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  648. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  649. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  650. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  651. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  652. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  653. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  654. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  655. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  656. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  657. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  658. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  659. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  660. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  661. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  662. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  663. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  664. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  665. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  666. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  667. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  668. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  669. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  670. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  671. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  672. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  673. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  674. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  675. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  676. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  677. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  678. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  679. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  680. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  681. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  682. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  683. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  684. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  685. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  686. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  687. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  688. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  689. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  690. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  691. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  692. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  693. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  694. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  695. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  696. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  697. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
  698. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
  699. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  700. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  701. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  702. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  703. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  704. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  705. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  706. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  707. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  708. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  709. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  710. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  711. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  712. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  713. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  714. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  715. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  716. package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
  717. package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  718. package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
  719. package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
  720. package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
  721. package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  722. package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
  723. package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
  724. package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
  725. package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
  726. package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
  727. package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  728. package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
  729. package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
  730. package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
  731. package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
  732. package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
  733. package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
  734. package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
  735. package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
  736. package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
  737. package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
  738. package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
  739. package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
  740. package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
  741. package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
  742. package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
  743. package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
  744. package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
  745. package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  746. package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  747. package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
  748. package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  749. package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
  750. package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
  751. package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
  752. package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
  753. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
  754. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
  755. package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
  756. package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
  757. package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
  758. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
  759. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
  760. package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
  761. package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  762. package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
  763. package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
  764. package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
  765. package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
  766. package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
  767. package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
  768. package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  769. package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +431 -0
  770. package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  771. package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +101 -0
  772. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
  773. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
  774. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  775. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
  776. package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
  777. package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2529 -0
  778. package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  779. package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  780. package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
  781. package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
  782. package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
  783. package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
  784. package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
  785. package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
  786. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  787. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  788. package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
  789. package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  790. package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
  791. package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
  792. package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  793. package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
  794. package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
  795. package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
  796. package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
  797. package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  798. package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  799. package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
  800. package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
  801. package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
  802. package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
  803. package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
  804. package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
  805. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  806. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  807. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
  808. package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
  809. package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
  810. package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
  811. package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
  812. package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
  813. package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
  814. package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
  815. package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
  816. package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
  817. package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
  818. package/bundles/sui-ledger/dist/style.css +15448 -0
  819. package/bundles/sui-ledger/icon.svg +1 -0
  820. package/bundles/sui-ledger/locale/en.json +6 -0
  821. package/bundles/sui-ledger/locale/zh-CN.json +6 -0
  822. package/cordis.patch.yml +4 -0
  823. package/package.json +111 -3
@@ -0,0 +1,643 @@
1
+ import { assertDatasetWritable } from "../../data-maintenance/src/index.mjs";
2
+ import { financialMonthRange, financialWallTime } from "../../finance/src/date-range.mjs";
3
+ import { AuthenticationError, ContractDriftError, FeideeError, WriteBoundaryError, WriteDisabledError, isTemporaryRemoteError } from "../../finance/src/errors.mjs";
4
+ import { KNOWN_WRITE_CONTRACT_VERSION } from "../../finance/src/write-policy.mjs";
5
+ import { auditVerificationQuerySchema, transactionAuditQuerySchema } from "../../finance/src/transactions/audit.mjs";
6
+ import { SYNC_TIMEOUT_MS, SyncService, validateSyncHistoryStart } from "../../finance/src/sync/service.mjs";
7
+ import { WriteCanaryService } from "../../finance/src/transactions/canary.mjs";
8
+ import { TransactionMutationService } from "../../finance/src/transactions/mutation.mjs";
9
+ import { TransactionQueryService } from "../../finance/src/transactions/query.mjs";
10
+ import "../../finance/src/index.mjs";
11
+ import { loadConfig } from "./config.mjs";
12
+ import { nodeCredentialProvider } from "./credentials.mjs";
13
+ import { FinanceCookieCache } from "./finance-cookie-cache.mjs";
14
+ import { FinanceSession } from "./finance-session.mjs";
15
+ import { FeideeClient } from "../../feidee/src/client.mjs";
16
+ import { FeideeRemoteTransactionGateway } from "../../feidee/src/mutation-gateway.mjs";
17
+ import "../../feidee/src/index.mjs";
18
+ import { ExchangeRateCoordinator, accountRateCurrencies, configuredRateCurrencies, dateInTimeZone } from "./exchange-rate-service.mjs";
19
+ import { runFinanceProbe } from "./probe.mjs";
20
+ import { AccountSnapshotService } from "./account-snapshot-service.mjs";
21
+ import { AsyncLocalStorage } from "node:async_hooks";
22
+ //#region ../../packages/sdk/src/runtime.ts
23
+ var FinanceSdk = class {
24
+ runtime;
25
+ selectedBookId;
26
+ constructor(runtime) {
27
+ this.runtime = runtime;
28
+ }
29
+ capabilities() {
30
+ return {
31
+ live: [
32
+ "books",
33
+ "metadata",
34
+ "accounts",
35
+ "credit-cards",
36
+ "loans",
37
+ "deposits",
38
+ "overview",
39
+ "transactions --source remote",
40
+ "monthly-summary",
41
+ "all-reports",
42
+ "recurring-bills",
43
+ "debts",
44
+ "debt-transactions",
45
+ "investment-diaries"
46
+ ],
47
+ cache: [
48
+ "books",
49
+ "metadata",
50
+ "transactions",
51
+ "sync-status",
52
+ "daily-exchange-rates"
53
+ ],
54
+ audit: [
55
+ "transaction history",
56
+ "audit transactions",
57
+ "audit status",
58
+ "audit verify"
59
+ ],
60
+ writes: [
61
+ "transaction create (remote-only, gated)",
62
+ "transaction update (remote-only, gated)",
63
+ "transaction delete (remote-only, gated)"
64
+ ],
65
+ availableInCore: [],
66
+ managementOnly: [
67
+ "credit-card-email-binding",
68
+ "reminders",
69
+ "profile",
70
+ "sync-history"
71
+ ]
72
+ };
73
+ }
74
+ async authStatus() {
75
+ const session = await this.sessionStatus();
76
+ return {
77
+ authenticated: session.status === "authenticated",
78
+ credentialConfigured: session.credentialConfigured
79
+ };
80
+ }
81
+ sessionStatus() {
82
+ return this.runtime.remoteSession.snapshot();
83
+ }
84
+ checkSession() {
85
+ return this.runtime.remoteSession.check();
86
+ }
87
+ loginSession(credential) {
88
+ return this.runtime.remoteSession.login(credential);
89
+ }
90
+ probe(input = {}) {
91
+ return runFinanceProbe(this.runtime, input);
92
+ }
93
+ verifyTransaction(bookId, input, attempt = { autoLoginUsed: true }) {
94
+ return this.runtime.sessionAttempt.run(attempt, () => this.runtime.withLedgerOperationLease(() => this.runtime.client.withDeadline(async () => {
95
+ try {
96
+ attempt.beforeWrite?.();
97
+ } catch (error) {
98
+ throw new WriteBoundaryError("not_sent", error);
99
+ }
100
+ const result = await this.runtime.remoteSession.retryReadonly(() => this.runtime.transactionMutation.verify(bookId, input), attempt);
101
+ return {
102
+ ...result,
103
+ cache: {
104
+ ...result.cache,
105
+ ledgerRevision: this.runtime.database.getLedgerBookState(bookId).revision
106
+ }
107
+ };
108
+ })));
109
+ }
110
+ hasMutationReceipt(bookId, input) {
111
+ return this.runtime.transactionMutation.hasReceipt(bookId, input);
112
+ }
113
+ async hasNoDispatchReceipt(bookId, input, allowMissing) {
114
+ return this.runtime.transactionMutation.hasNoDispatchReceipt(bookId, input, allowMissing);
115
+ }
116
+ assertDeletedCreationReplaceable(bookId, input, remoteId, replacementId) {
117
+ this.runtime.transactionMutation.assertDeletedCreationReplaceable(bookId, input, remoteId, replacementId);
118
+ }
119
+ readExternalCorrection(bookId, input, remoteId, occurredAt, attempt = { autoLoginUsed: true }) {
120
+ return this.runtime.sessionAttempt.run(attempt, () => this.runtime.withLedgerOperationLease(() => this.runtime.client.withDeadline(() => this.runtime.remoteSession.retryReadonly(() => this.runtime.transactionMutation.readExternalCorrection(bookId, input, remoteId, occurredAt), attempt))));
121
+ }
122
+ refreshExternalCorrection(transaction) {
123
+ return this.runtime.withLedgerOperationLease(() => this.runtime.sync.refreshTransactionObservation(transaction));
124
+ }
125
+ async sync(input = {}, attempt = { autoLoginUsed: false }) {
126
+ validateSyncHistoryStart(input.mode ?? "recent", input.historyStart);
127
+ attempt.onProgress?.({ stage: "queued" });
128
+ return this.runtime.sessionAttempt.run(attempt, () => this.runtime.session.exclusive(async () => {
129
+ let deadlineAt;
130
+ const result = await this.runtime.remoteSession.readInsideLock(() => {
131
+ const deadline = deadlineAt ??= Date.now() + SYNC_TIMEOUT_MS;
132
+ return this.runtime.client.withDeadline(() => this.runtime.sync.sync(input, { deadlineAt: deadline }), deadline - Date.now(), "sync");
133
+ }, attempt);
134
+ const exchangeRates = await this.runtime.exchangeRates.ensureTodayRates();
135
+ return {
136
+ ...result,
137
+ exchangeRates
138
+ };
139
+ }));
140
+ }
141
+ cachedBooks() {
142
+ return this.runtime.database.listBooks();
143
+ }
144
+ ledgerBookState(bookId) {
145
+ return this.runtime.database.getLedgerBookState(bookId);
146
+ }
147
+ peekLedgerBookState(bookId) {
148
+ return this.runtime.database.peekLedgerBookState?.(bookId);
149
+ }
150
+ setBookTimezone(bookId, timezone, now = (/* @__PURE__ */ new Date()).toISOString()) {
151
+ return this.runtime.database.setBookTimezone(bookId, timezone, now);
152
+ }
153
+ activeCheckpoints(bookId) {
154
+ return this.runtime.database.listActiveCheckpoints(bookId);
155
+ }
156
+ checkpointAudit(bookId) {
157
+ return this.runtime.database.listCheckpointAudit(bookId);
158
+ }
159
+ checkpointHistory(bookId, accountId, offset, limit) {
160
+ return this.runtime.database.listCheckpointHistory(bookId, accountId, offset, limit);
161
+ }
162
+ checkpointConfirmation(confirmationId) {
163
+ return this.runtime.database.checkpointConfirmation?.(confirmationId);
164
+ }
165
+ createCheckpoint(input) {
166
+ return this.runtime.database.createCheckpoint(input);
167
+ }
168
+ deleteCheckpoint(input) {
169
+ this.runtime.database.deleteCheckpoint(input);
170
+ }
171
+ appendCheckpointOverride(input) {
172
+ return this.runtime.database.appendCheckpointOverride(input);
173
+ }
174
+ cachedMetadata(bookId) {
175
+ return this.runtime.database.getMetadata(bookId);
176
+ }
177
+ queryMetadata(input) {
178
+ return this.runtime.database.queryMetadata(input);
179
+ }
180
+ cachedCategoryTypes(bookId) {
181
+ return this.runtime.database.getCategoryTypeMap(bookId);
182
+ }
183
+ cachedTransactions(input, deprecatedCommand) {
184
+ return this.runtime.transactionQuery.readCache(input, deprecatedCommand);
185
+ }
186
+ cachedRawTransactions(input) {
187
+ return this.runtime.database.listTransactions(input);
188
+ }
189
+ getTransaction(bookId, remoteId) {
190
+ return this.runtime.database.getTransaction(bookId, remoteId);
191
+ }
192
+ accountSnapshotAt(bookId, cutoff) {
193
+ return this.accountSnapshot(bookId, void 0, cutoff);
194
+ }
195
+ accountSnapshot(bookId, asOf, through) {
196
+ const calculated = through ? this.runtime.accountSnapshots.calculateStoredAt(bookId, through) : this.runtime.accountSnapshots.calculateStored(bookId, normalizeSnapshotDate(asOf));
197
+ const cutoff = calculated.view.asOf;
198
+ const freshness = through ? this.runtime.database.getFreshness(bookId, "2000-01-01", calculated.view.asOf) : this.runtime.database.getFreshness(bookId);
199
+ const { rateSource: _rateSource, rates, ...view } = calculated.view;
200
+ return {
201
+ bookId,
202
+ asOf: cutoff,
203
+ ...through ? { calculatedThroughAt: through } : {},
204
+ ...calculated.observedAt ? { observedAt: calculated.observedAt } : {},
205
+ coverage: financeCoverage(freshness),
206
+ data: {
207
+ ...view,
208
+ rates: rates.map(({ source: _source, ...rate }) => rate)
209
+ }
210
+ };
211
+ }
212
+ summary(bookId, beginDate, endDate, accountId, accountScope) {
213
+ const normalizedBegin = beginDate ? normalizeDate(beginDate) : void 0;
214
+ const normalizedEnd = endDate ? normalizeDate(endDate) : void 0;
215
+ const observed = this.runtime.database.aggregateTransactions(bookId, normalizedBegin, normalizedEnd ?? "2100-12-31", accountId, accountScope);
216
+ const freshness = this.runtime.database.getFreshness(bookId, beginDate, endDate);
217
+ return {
218
+ bookId,
219
+ ...accountId ? {
220
+ accountId,
221
+ accountScope: accountScope ?? "family"
222
+ } : {},
223
+ ...beginDate ? { beginDate } : {},
224
+ ...endDate ? { endDate } : {},
225
+ ...observed.observedAt ? { observedAt: observed.observedAt } : freshness.lastSuccessfulSyncAt ? { observedAt: freshness.lastSuccessfulSyncAt } : {},
226
+ coverage: financeCoverage(freshness),
227
+ transactionCount: observed.transactionCount,
228
+ incomeCents: observed.incomeCents,
229
+ expenseCents: observed.expenseCents
230
+ };
231
+ }
232
+ syncStatus() {
233
+ return this.runtime.database.syncStatus();
234
+ }
235
+ startExchangeRateRefresh() {
236
+ this.runtime.exchangeRates.start();
237
+ }
238
+ stopExchangeRateRefresh() {
239
+ this.runtime.exchangeRates.stop();
240
+ }
241
+ async pauseMaintenance() {
242
+ this.runtime.exchangeRates.stop();
243
+ await this.runtime.exchangeRates.settle();
244
+ await this.runtime.session.settle();
245
+ }
246
+ rateStatus(requestedDate = dateInTimeZone(/* @__PURE__ */ new Date())) {
247
+ return this.runtime.database.getExchangeRateSnapshot("frankfurter", requestedDate);
248
+ }
249
+ refreshRates(input = {}) {
250
+ return this.runtime.session.exclusive(() => this.runtime.exchangeRates.ensureTodayRates(input));
251
+ }
252
+ compareAccountSnapshots(bookId) {
253
+ return this.withRemoteBook(bookId, () => this.runtime.accountSnapshots.compareCurrent(bookId));
254
+ }
255
+ verifyAccountSnapshots(bookId) {
256
+ return this.withRemoteBook(bookId, () => this.runtime.accountSnapshots.verifyCurrent(bookId));
257
+ }
258
+ /** @deprecated Use compareAccountSnapshots. */
259
+ compareRates(bookId) {
260
+ return this.compareAccountSnapshots(bookId);
261
+ }
262
+ transactionHistory(bookId, remoteId, input = {}) {
263
+ return this.runtime.database.queryTransactionAudit(parseTransactionAuditQuery({
264
+ bookId,
265
+ remoteId,
266
+ ...input
267
+ }));
268
+ }
269
+ transactionAudit(input) {
270
+ return this.runtime.database.queryTransactionAudit(parseTransactionAuditQuery(input));
271
+ }
272
+ auditStatus(bookId) {
273
+ return this.runtime.database.getAuditStatus(bookId);
274
+ }
275
+ verifyAudit(input = {}) {
276
+ const parsed = auditVerificationQuerySchema.safeParse(input);
277
+ if (!parsed.success) throw invalidAuditInput(parsed.error.issues[0]);
278
+ return this.runtime.database.verifyAudit(parsed.data);
279
+ }
280
+ async liveBooks() {
281
+ return this.runtime.session.exclusive(() => this.runtime.remoteSession.readInsideLock(async (books) => [...books], { autoLoginUsed: false }));
282
+ }
283
+ async selectRemoteBook(bookId) {
284
+ await this.withRemoteBook(bookId, async () => void 0);
285
+ this.selectedBookId = bookId;
286
+ }
287
+ liveMetadata() {
288
+ return this.withSelectedRemoteBook(() => this.runtime.client.getMetadata());
289
+ }
290
+ liveAccounts() {
291
+ return this.withSelectedRemoteBook(() => this.runtime.client.getAccountSnapshot());
292
+ }
293
+ liveCreditCards() {
294
+ return this.withSelectedRemoteBook(() => this.runtime.client.getCreditCards());
295
+ }
296
+ liveLoans() {
297
+ return this.withSelectedRemoteBook(() => this.runtime.client.getLoans());
298
+ }
299
+ liveDeposits() {
300
+ return this.withSelectedRemoteBook(() => this.runtime.client.getDeposits());
301
+ }
302
+ liveOverview() {
303
+ return this.withSelectedRemoteBook(() => this.runtime.client.getOverview());
304
+ }
305
+ liveMonthlySummary(beginYear, endYear) {
306
+ return this.withSelectedRemoteBook(() => this.runtime.client.getMonthlySummary(beginYear, endYear));
307
+ }
308
+ liveDebts() {
309
+ return this.withSelectedRemoteBook(() => this.runtime.client.getDebts());
310
+ }
311
+ liveDebtTransactions(debtId, page) {
312
+ return this.withSelectedRemoteBook(() => this.runtime.client.listDebtTransactions(debtId, page));
313
+ }
314
+ liveInvestmentDiaries(input) {
315
+ return this.withSelectedRemoteBook(() => this.runtime.client.listInvestmentDiaries(input));
316
+ }
317
+ liveInvestmentDiaryGroups() {
318
+ return this.withSelectedRemoteBook(() => this.runtime.client.getInvestmentDiaryGroups());
319
+ }
320
+ liveDailyReport(begin, end) {
321
+ return this.withSelectedRemoteBook(() => this.runtime.client.getDailyReport(begin, end));
322
+ }
323
+ liveAnnualExpenseTrend() {
324
+ return this.withSelectedRemoteBook(() => this.runtime.client.getAnnualExpenseTrend());
325
+ }
326
+ liveReport(kind, query) {
327
+ return this.withSelectedRemoteBook(() => this.runtime.client.getReport(kind, query));
328
+ }
329
+ liveRecurringMonth(year, month) {
330
+ return this.withSelectedRemoteBook(() => this.runtime.client.getRecurringMonth(year, month));
331
+ }
332
+ liveRecurringBills(page) {
333
+ return this.withSelectedRemoteBook(() => this.runtime.client.listRecurringBills(page));
334
+ }
335
+ remoteTransactions(bookId, query, includeRaw = false) {
336
+ return this.withRemoteBook(bookId, () => this.runtime.transactionQuery.readRemote(bookId, query, includeRaw));
337
+ }
338
+ report(bookId, kind, query) {
339
+ return this.withRemoteBook(bookId, async () => {
340
+ const data = await this.runtime.client.getReport(kind, query);
341
+ return {
342
+ observedAt: (/* @__PURE__ */ new Date()).toISOString(),
343
+ data
344
+ };
345
+ });
346
+ }
347
+ recurringMonth(bookId, year, month) {
348
+ return this.withRemoteBook(bookId, () => this.runtime.client.getRecurringMonth(year, month));
349
+ }
350
+ recurringBills(bookId, page) {
351
+ return this.withRemoteBook(bookId, () => this.runtime.client.listRecurringBills(page));
352
+ }
353
+ debts(bookId) {
354
+ return this.withRemoteBook(bookId, () => this.runtime.client.getDebts());
355
+ }
356
+ preflightTransactionMutation(bookId, remoteIds = [], attempt, ranges) {
357
+ this.assertEnvironmentAllowsRemoteWrites();
358
+ const uniqueIds = [...new Set(remoteIds)];
359
+ const checkAttempt = attempt ?? { autoLoginUsed: false };
360
+ const read = (operation, timeoutMs = 3e4) => this.runtime.client.withDeadline(() => this.runtime.remoteSession.retryReadonly(operation, checkAttempt), timeoutMs);
361
+ if (uniqueIds.some((remoteId) => !remoteId.trim())) throw new FeideeError("remoteId is required", "INVALID_ARGUMENT");
362
+ return this.runtime.remoteSession.read(async (books) => {
363
+ attempt?.onProgress?.({ stage: "book" });
364
+ if (!books.some((book) => book.id === bookId)) throw new FeideeError("Remote book access is unavailable", "BOOK_ACCESS_DENIED");
365
+ if (this.runtime.client.activeBookId() !== bookId) await read(() => this.runtime.client.switchBook(bookId));
366
+ attempt?.onProgress?.({ stage: "contract" });
367
+ const probe = await read(() => this.runtime.client.probeWriteContract(checkAttempt.evidenceScope), 6e4);
368
+ const recognizedVersion = probe.recognizedVersion;
369
+ if (recognizedVersion !== "sui-web-tally-2026-08-03-v1") throw new ContractDriftError("The live Feidee write contract is not supported by this adapter", {
370
+ supported: KNOWN_WRITE_CONTRACT_VERSION,
371
+ detected: recognizedVersion ?? null,
372
+ contractVersion: probe.contractVersion
373
+ });
374
+ const scope = ranges ?? uniqueIds.map((id) => {
375
+ const current = this.runtime.database.getTransaction(bookId, id);
376
+ if (!current) throw new FeideeError("Refresh and review the missing target before submitting", "REMOTE_CONFLICT");
377
+ return financialMonthRange(current.occurredAt);
378
+ });
379
+ const months = [...new Map(scope.map((range) => [range.beginDate, range])).values()].sort((a, b) => a.beginDate.localeCompare(b.beginDate));
380
+ const transactions = [];
381
+ const identity = (items) => JSON.stringify(items.map((item) => [item.remoteId, item.contentHash]).sort(([a], [b]) => a.localeCompare(b)));
382
+ for (const range of months) {
383
+ const [first, second] = await read(async () => {
384
+ const observe = (pass) => {
385
+ attempt?.onProgress?.({
386
+ stage: "transactions",
387
+ month: range.beginDate.slice(0, 7),
388
+ pass
389
+ });
390
+ return this.runtime.client.withDeadline(() => this.runtime.client.getAllTransactions(range, (completed, total) => attempt?.onProgress?.({
391
+ stage: "transactions",
392
+ month: range.beginDate.slice(0, 7),
393
+ pass,
394
+ completed,
395
+ total
396
+ })), 9e4);
397
+ };
398
+ return [(await observe(1)).transactions, (await observe(2)).transactions];
399
+ }, 18e4);
400
+ const local = [];
401
+ for (let offset = 0;; offset += 500) {
402
+ const page = this.runtime.database.listTransactions({
403
+ bookId,
404
+ ...range,
405
+ limit: 500,
406
+ offset,
407
+ includeRaw: true
408
+ });
409
+ local.push(...page.items);
410
+ if (!page.items.length || local.length >= page.total) break;
411
+ }
412
+ if (identity(first) !== identity(second) || identity(second) !== identity(local)) throw new FeideeError("Affected month changed; synchronize and review before submitting", "REMOTE_CONFLICT");
413
+ transactions.push(...second);
414
+ }
415
+ return {
416
+ contractVersion: probe.contractVersion,
417
+ recognizedVersion,
418
+ transactions
419
+ };
420
+ }, checkAttempt);
421
+ }
422
+ createTransaction(bookId, input, attempt) {
423
+ this.assertEnvironmentAllowsRemoteWrites();
424
+ return this.withMutationAttempt(bookId, () => this.runtime.transactionMutation.create(bookId, input), attempt);
425
+ }
426
+ updateTransaction(bookId, remoteId, input, attempt, before) {
427
+ this.assertEnvironmentAllowsRemoteWrites();
428
+ const cached = before ?? this.runtime.database.getTransaction(bookId, remoteId);
429
+ const baseline = cached?.contentHash === input.expectedContentHash ? cached : before;
430
+ return this.withMutationAttempt(bookId, () => this.runtime.transactionMutation.update(bookId, remoteId, input, baseline), attempt);
431
+ }
432
+ deleteTransaction(bookId, remoteId, input, attempt) {
433
+ this.assertEnvironmentAllowsRemoteWrites();
434
+ return this.withMutationAttempt(bookId, () => this.runtime.transactionMutation.delete(bookId, remoteId, input), attempt);
435
+ }
436
+ withMutationAttempt(bookId, operation, attempt = { autoLoginUsed: false }) {
437
+ assertDatasetWritable(this.runtime.config.dataDir);
438
+ return this.runtime.sessionAttempt.run(attempt, () => this.runtime.withLedgerOperationLease(async () => {
439
+ const run = async () => {
440
+ try {
441
+ attempt.beforeWrite?.();
442
+ } catch (error) {
443
+ throw new WriteBoundaryError("not_sent", error);
444
+ }
445
+ const result = await operation();
446
+ return {
447
+ ...result,
448
+ cache: {
449
+ ...result.cache,
450
+ ledgerRevision: this.runtime.database.getLedgerBookState(bookId).revision
451
+ }
452
+ };
453
+ };
454
+ try {
455
+ return await run();
456
+ } catch (error) {
457
+ if (!(error instanceof FeideeError) || error.boundary !== "not_sent") throw error;
458
+ const authentication = error instanceof AuthenticationError || error.cause instanceof AuthenticationError;
459
+ const temporaryNetwork = !attempt.networkRetryUsed && isTemporaryRemoteError(error);
460
+ if (!authentication && !temporaryNetwork || authentication && attempt.autoLoginUsed) throw error;
461
+ if (temporaryNetwork) attempt.networkRetryUsed = true;
462
+ try {
463
+ await this.runtime.session.exclusive(() => this.runtime.remoteSession.readInsideLock(async () => void 0, attempt));
464
+ } catch (checkError) {
465
+ if (checkError instanceof FeideeError) checkError.boundary = "not_sent";
466
+ throw checkError;
467
+ }
468
+ return run();
469
+ }
470
+ }));
471
+ }
472
+ runWriteCanary(confirmed) {
473
+ if (confirmed) this.assertEnvironmentAllowsRemoteWrites();
474
+ return this.runtime.withLedgerOperationLease(() => this.runtime.writeCanary.run(confirmed));
475
+ }
476
+ assertEnvironmentAllowsRemoteWrites() {
477
+ assertDatasetWritable(this.runtime.config.dataDir);
478
+ if (this.runtime.config.remoteWritesDisabled) throw new WriteDisabledError("Remote ledger writes are disabled by SUI_LEDGER_REMOTE_WRITES_DISABLED");
479
+ }
480
+ withSelectedRemoteBook(operation) {
481
+ if (!this.selectedBookId) throw new FeideeError("A remote book must be selected first", "INVALID_ARGUMENT");
482
+ return this.withRemoteBook(this.selectedBookId, operation);
483
+ }
484
+ withRemoteBook(bookId, operation) {
485
+ return this.runtime.session.exclusive(() => this.runtime.remoteSession.readInsideLock(async (books) => {
486
+ if (!books.some((book) => book.id === bookId)) throw new FeideeError(`Unknown bookId: ${bookId}`, "INVALID_ARGUMENT");
487
+ if (this.runtime.client.activeBookId() !== bookId) await this.runtime.client.switchBook(bookId);
488
+ return operation();
489
+ }, { autoLoginUsed: false }));
490
+ }
491
+ };
492
+ var FeideeSession = class {
493
+ withOperationLease;
494
+ tail = Promise.resolve();
495
+ async settle() {
496
+ await this.tail;
497
+ }
498
+ constructor(withOperationLease) {
499
+ this.withOperationLease = withOperationLease;
500
+ }
501
+ exclusive(operation, recoverInvalidCache = false) {
502
+ const run = () => this.withOperationLease(operation, recoverInvalidCache);
503
+ const current = this.tail.then(run, run);
504
+ this.tail = current.then(() => void 0, () => void 0);
505
+ return current;
506
+ }
507
+ };
508
+ function parseTransactionAuditQuery(input) {
509
+ const parsed = transactionAuditQuerySchema.safeParse(input);
510
+ if (!parsed.success) throw invalidAuditInput(parsed.error.issues[0]);
511
+ return parsed.data;
512
+ }
513
+ function invalidAuditInput(issue) {
514
+ const path = issue?.path.length ? `${issue.path.map(String).join(".")}: ` : "";
515
+ return new FeideeError(`Invalid audit query: ${path}${issue?.message ?? "unknown validation error"}`, "INVALID_ARGUMENT");
516
+ }
517
+ function createFinanceRuntime(database, env = process.env, options = {}) {
518
+ const config = loadConfig(env, options.configOverrides);
519
+ const provider = options.credentialProvider ?? nodeCredentialProvider(env, config.credentialService);
520
+ const credentials = provider.store;
521
+ const client = new FeideeClient();
522
+ const lease = options.withLedgerOperationLease ?? (async (operation) => operation());
523
+ const cookieCache = options.withLedgerOperationLease ? new FinanceCookieCache(config.dataDir, provider.cacheIdentity) : void 0;
524
+ const withLedgerOperationLease = (operation, recoverInvalidCache = false) => lease(() => cookieCache ? cookieCache.run(client, operation, recoverInvalidCache) : operation());
525
+ const session = new FeideeSession(withLedgerOperationLease);
526
+ const sessionAttempt = new AsyncLocalStorage();
527
+ const remoteSession = new FinanceSession(client, credentials, provider, (operation, recoverInvalidCache) => session.exclusive(operation, recoverInvalidCache), 3e4, () => cookieCache?.failure);
528
+ const sync = new SyncService(client, database, credentials, config.recentSyncMonths, void 0, () => remoteSession.readInsideLock(async (books) => {
529
+ sessionAttempt.getStore()?.onProgress?.({ stage: "sync" });
530
+ return books;
531
+ }, sessionAttempt.getStore() ?? { autoLoginUsed: false }), (progress) => sessionAttempt.getStore()?.onProgress?.(progress));
532
+ const transactionQuery = new TransactionQueryService(database, client);
533
+ const mutationGateway = new FeideeRemoteTransactionGateway(client, () => remoteSession.readInsideLock(async (books) => books, sessionAttempt.getStore()), (operation) => session.exclusive(operation), (remoteId) => {
534
+ const bookId = client.activeBookId();
535
+ const transaction = bookId ? database.getTransaction(bookId, remoteId) : void 0;
536
+ if (!transaction) return void 0;
537
+ const date = financialWallTime(transaction.occurredAt).slice(0, 10);
538
+ return {
539
+ beginDate: date,
540
+ endDate: date
541
+ };
542
+ }, (progress) => sessionAttempt.getStore()?.onProgress?.(progress), () => sessionAttempt.getStore()?.evidenceScope);
543
+ const transactionMutation = new TransactionMutationService(mutationGateway, sync, database, {
544
+ remoteWritesDisabled: config.remoteWritesDisabled,
545
+ beforeDispatch: () => {
546
+ assertDatasetWritable(config.dataDir);
547
+ sessionAttempt.getStore()?.beforeWrite?.();
548
+ sessionAttempt.getStore()?.beforeDispatch?.();
549
+ }
550
+ });
551
+ const writeCanary = new WriteCanaryService(client, async () => {
552
+ await sync.ensureAuthenticated();
553
+ }, transactionMutation, {
554
+ remoteWritesDisabled: config.remoteWritesDisabled,
555
+ ...config.writeCanaryBookId ? { canaryBookId: config.writeCanaryBookId } : {}
556
+ });
557
+ const exchangeRates = new ExchangeRateCoordinator({
558
+ openStore: () => database,
559
+ currencies: configuredRateCurrencies(env),
560
+ resolveCurrencies: () => accountRateCurrencies(database.listBooks().flatMap((book) => database.getMetadata(book.id).accounts)),
561
+ timeZone: env.SUI_LEDGER_RATE_TIME_ZONE ?? "Asia/Shanghai",
562
+ refreshHour: Number(env.SUI_LEDGER_RATE_REFRESH_HOUR ?? "8")
563
+ });
564
+ return {
565
+ finance: new FinanceSdk({
566
+ config,
567
+ client,
568
+ database,
569
+ sync,
570
+ transactionQuery,
571
+ transactionMutation,
572
+ writeCanary,
573
+ exchangeRates,
574
+ accountSnapshots: new AccountSnapshotService({
575
+ hasBook: (bookId) => database.hasBook(bookId),
576
+ getMetadata: (bookId) => database.getMetadata(bookId),
577
+ getBookTimezone: (bookId) => database.getLedgerBookState(bookId).timezone,
578
+ loadTransactions: (bookId, asOf) => loadAllTransactions(database, bookId, asOf),
579
+ loadRemoteTransactions: async () => {
580
+ return {
581
+ transactions: (await client.getAllTransactions({
582
+ beginDate: "2000.01.01",
583
+ endDate: "2100.12.31"
584
+ }, void 0, { deadlineAt: Date.now() + 6e5 })).transactions,
585
+ observedAt: (/* @__PURE__ */ new Date()).toISOString()
586
+ };
587
+ },
588
+ getExchangeRateSelection: (asOf) => database.getExchangeRateSnapshot("frankfurter", asOf),
589
+ loadRemoteSnapshot: () => client.getAccountSnapshot(),
590
+ ensureCurrentExchangeRates: (currencies) => exchangeRates.ensureTodayRates({ currencies }),
591
+ today: (bookId) => dateInTimeZone(/* @__PURE__ */ new Date(), bookId ? database.getLedgerBookState(bookId).timezone : env.SUI_LEDGER_RATE_TIME_ZONE ?? "Asia/Shanghai"),
592
+ createError: (message, code) => new FeideeError(message, code)
593
+ }),
594
+ session,
595
+ remoteSession,
596
+ sessionAttempt,
597
+ withLedgerOperationLease
598
+ }),
599
+ close: () => {
600
+ exchangeRates.stop();
601
+ database.close();
602
+ }
603
+ };
604
+ }
605
+ function loadAllTransactions(database, bookId, endDate) {
606
+ if (database.accountTransactions) return database.accountTransactions(bookId, endDate);
607
+ const transactions = [];
608
+ let observedAt;
609
+ for (let offset = 0;; offset += 500) {
610
+ const page = database.listTransactions({
611
+ bookId,
612
+ endDate,
613
+ limit: 500,
614
+ offset,
615
+ includeRaw: true
616
+ });
617
+ transactions.push(...page.items);
618
+ if (page.observedAt && (!observedAt || page.observedAt > observedAt)) observedAt = page.observedAt;
619
+ if (transactions.length >= page.total || page.items.length === 0) break;
620
+ }
621
+ return {
622
+ transactions,
623
+ ...observedAt ? { observedAt } : {}
624
+ };
625
+ }
626
+ function normalizeSnapshotDate(value) {
627
+ if (!value) return void 0;
628
+ return normalizeDate(value);
629
+ }
630
+ function normalizeDate(value) {
631
+ const date = value.slice(0, 10);
632
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || Number.isNaN(Date.parse(`${date}T00:00:00Z`))) throw new FeideeError("Date must use YYYY-MM-DD or an ISO timestamp", "INVALID_ARGUMENT");
633
+ return date;
634
+ }
635
+ function financeCoverage(freshness) {
636
+ return {
637
+ complete: freshness.complete,
638
+ ...freshness.coveredBegin ? { beginDate: normalizeDate(freshness.coveredBegin) } : {},
639
+ ...freshness.coveredEnd ? { endDate: normalizeDate(freshness.coveredEnd) } : {}
640
+ };
641
+ }
642
+ //#endregion
643
+ export { FinanceSdk, createFinanceRuntime };
@@ -0,0 +1,11 @@
1
+ import { dataDirectory } from "./packages/data-maintenance/src/paths.mjs";
2
+ import "./packages/data-maintenance/src/index.mjs";
3
+ import { homedir } from "node:os";
4
+ import { join } from "node:path";
5
+ //#region src/storage.ts
6
+ /** Preserve the CLI's historical data location at the outlet boundary. */
7
+ function cliDataDirectory(env = process.env) {
8
+ return dataDirectory(env.SUI_LEDGER_DATA_DIR?.trim() || join(env.DSH_HOME?.trim() || join(homedir(), ".dsh"), "sui-ledger"), env);
9
+ }
10
+ //#endregion
11
+ export { cliDataDirectory };
@@ -0,0 +1,35 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
+ var __exportAll = (all, no_symbols) => {
11
+ let target = {};
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
+ return target;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
34
+ //#endregion
35
+ export { __commonJSMin, __exportAll, __require, __toESM };