@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (823) hide show
  1. package/README.md +100 -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 +23511 -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 +427 -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 +100 -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 +2525 -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 +15416 -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,51 @@
1
+ import { existsSync } from "node:fs";
2
+ import { dirname, join } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ //#region src/remote-write-policy.ts
5
+ const REMOTE_WRITE_ENV = "SUI_LEDGER_REMOTE_WRITES";
6
+ const DEV_BUNDLE_MARKER = "DEV-BUNDLE";
7
+ /** In unbundle builds this module lands at dist/remote-write-policy.mjs, so the bundle root is dist/.. */
8
+ function defaultBundleRoot() {
9
+ return join(dirname(fileURLToPath(import.meta.url)), "..");
10
+ }
11
+ function detectInstallForm(bundleRoot) {
12
+ return existsSync(join(bundleRoot, DEV_BUNDLE_MARKER)) ? "development" : "published";
13
+ }
14
+ function parseEnvSpellings(raw) {
15
+ const value = raw.trim().toLowerCase();
16
+ if (value === "true" || value === "1" || value === "on") return true;
17
+ if (value === "false" || value === "0" || value === "off") return false;
18
+ }
19
+ function resolveRemoteWritePolicy(input = {}) {
20
+ const warn = input.onWarn ?? ((message) => console.warn(`[sui-ledger] ${message}`));
21
+ const installForm = detectInstallForm(input.bundleRoot ?? defaultBundleRoot());
22
+ if (input.configValue === true || input.configValue === false) return {
23
+ enabled: input.configValue,
24
+ source: "config",
25
+ installForm
26
+ };
27
+ const raw = input.env ? input.env.get(REMOTE_WRITE_ENV) : process.env[REMOTE_WRITE_ENV];
28
+ if (raw !== void 0 && raw.trim() !== "") {
29
+ const parsed = parseEnvSpellings(raw);
30
+ if (parsed === void 0) {
31
+ warn(`invalid ${REMOTE_WRITE_ENV}=${JSON.stringify(raw)} — treating remote writes as disabled`);
32
+ return {
33
+ enabled: false,
34
+ source: "env",
35
+ installForm
36
+ };
37
+ }
38
+ return {
39
+ enabled: parsed,
40
+ source: "env",
41
+ installForm
42
+ };
43
+ }
44
+ return {
45
+ enabled: installForm === "development",
46
+ source: "install-form",
47
+ installForm
48
+ };
49
+ }
50
+ //#endregion
51
+ export { REMOTE_WRITE_ENV, detectInstallForm, resolveRemoteWritePolicy };
@@ -0,0 +1,380 @@
1
+ import "../packages/finance-module/src/service.mjs";
2
+ import { FinanceRouteError } from "../packages/finance-module/src/route-contracts.mjs";
3
+ import { createFinanceRouteTable } from "../packages/finance-module/src/routes.mjs";
4
+ import "../packages/finance-module/src/index.mjs";
5
+ import { createNodeReadonlyStore } from "../packages/local-store/src/readonly-node.mjs";
6
+ import { ReadonlyFinanceSdk } from "../packages/sdk/src/node-readonly.mjs";
7
+ import { DatabaseSync } from "node:sqlite";
8
+ //#region src/routes/finance-api.ts
9
+ /**
10
+ * Minimal durable interaction store persisted into the same finance.db the
11
+ * host `store` uses. Only the rows the finance trust chain touches are
12
+ * materialized; notification rows stay inert.
13
+ *
14
+ * `InteractionStore` is the persistence contract; unknown members
15
+ * are intentionally absent. The trust chain only ever walks the open-request
16
+ * surface plus dedupe lookups, so the store satisfies the seam through the
17
+ * subset the chain actually calls.
18
+ */
19
+ function createDshInteractionStore(financeDb) {
20
+ const owned = typeof financeDb === "string";
21
+ const db = typeof financeDb === "string" ? new DatabaseSync(financeDb) : financeDb;
22
+ db.exec(`
23
+ CREATE TABLE IF NOT EXISTS finance_response_claims (
24
+ request_id TEXT PRIMARY KEY, claim_id TEXT NOT NULL, claimed_at TEXT NOT NULL
25
+ );
26
+ CREATE TABLE IF NOT EXISTS dsh_interaction_requests (
27
+ id TEXT PRIMARY KEY,
28
+ type TEXT NOT NULL,
29
+ status TEXT NOT NULL CHECK (status IN ('open','resolved','cancelled')),
30
+ payload TEXT NOT NULL,
31
+ created_at TEXT NOT NULL,
32
+ updated_at TEXT NOT NULL,
33
+ consumed_at TEXT
34
+ );
35
+ CREATE TABLE IF NOT EXISTS finance_response_recoveries (
36
+ request_id TEXT PRIMARY KEY REFERENCES dsh_interaction_requests(id) ON DELETE CASCADE,
37
+ claim_id TEXT NOT NULL
38
+ );
39
+ `);
40
+ const getRequestImpl = (id) => {
41
+ const row = db.prepare(`SELECT payload FROM dsh_interaction_requests WHERE id = ?`).get(id);
42
+ return row ? JSON.parse(row.payload) : void 0;
43
+ };
44
+ const listInteractionRequestsImpl = (filter) => {
45
+ return db.prepare(`SELECT payload FROM dsh_interaction_requests ORDER BY created_at, id`).all().map((row) => JSON.parse(row.payload)).filter((request) => filter?.status === void 0 || request.status === filter.status);
46
+ };
47
+ const updateRequestImpl = (request) => {
48
+ db.prepare(`UPDATE dsh_interaction_requests SET status = ?, payload = ?, updated_at = ?, consumed_at = ? WHERE id = ?`).run(request.status, JSON.stringify(request), request.updatedAt, request.consumedAt ?? null, request.id);
49
+ return request;
50
+ };
51
+ const createRequestImpl = (request) => {
52
+ db.prepare(`INSERT INTO dsh_interaction_requests (id, type, status, payload, created_at, updated_at)
53
+ VALUES (?, ?, ?, ?, ?, ?)`).run(request.id, request.type, request.status, JSON.stringify(request), request.createdAt, request.updatedAt);
54
+ return request;
55
+ };
56
+ let transactionDepth = 0;
57
+ const transaction = (operation) => {
58
+ if ("transaction" in db) return db.transaction(operation)();
59
+ const depth = transactionDepth;
60
+ const savepoint = `interaction_nested_${depth}`;
61
+ db.exec(depth === 0 ? "BEGIN IMMEDIATE" : `SAVEPOINT ${savepoint}`);
62
+ transactionDepth++;
63
+ try {
64
+ const result = operation();
65
+ db.exec(depth === 0 ? "COMMIT" : `RELEASE ${savepoint}`);
66
+ return result;
67
+ } catch (error) {
68
+ db.exec(depth === 0 ? "ROLLBACK" : `ROLLBACK TO ${savepoint}`);
69
+ if (depth !== 0) db.exec(`RELEASE ${savepoint}`);
70
+ throw error;
71
+ } finally {
72
+ transactionDepth--;
73
+ }
74
+ };
75
+ return {
76
+ close() {
77
+ if (owned) db.close();
78
+ },
79
+ transaction,
80
+ createOrUpdateNotification: (value) => value,
81
+ getNotification: () => void 0,
82
+ listNotifications: () => [],
83
+ markNotificationRead: (value) => value,
84
+ dismissNotification: (value) => value,
85
+ listResponseClaims() {
86
+ return db.prepare("SELECT request_id AS requestId,claim_id AS claimId FROM finance_response_claims ORDER BY claimed_at,request_id").all();
87
+ },
88
+ getResponseClaim(requestId) {
89
+ return db.prepare("SELECT request_id AS requestId,claim_id AS claimId FROM finance_response_claims WHERE request_id=?").get(requestId);
90
+ },
91
+ recordRecoveredResponse(requestId, claimId) {
92
+ db.prepare(`INSERT OR IGNORE INTO finance_response_recoveries(request_id,claim_id)
93
+ SELECT id,? FROM dsh_interaction_requests WHERE id=? AND status='resolved'`).run(claimId, requestId);
94
+ if (db.prepare("SELECT claim_id FROM finance_response_recoveries WHERE request_id=?").get(requestId)?.claim_id !== claimId) throw new Error("finance_response_recovery_conflict");
95
+ },
96
+ wasResponseRecovered(requestId, claimId) {
97
+ return Boolean(db.prepare("SELECT 1 FROM finance_response_recoveries WHERE request_id=? AND claim_id=?").get(requestId, claimId));
98
+ },
99
+ claimResponse(requestId, claimId, now) {
100
+ const changed = db.prepare(`INSERT OR IGNORE INTO finance_response_claims(request_id,claim_id,claimed_at)
101
+ SELECT id,?,? FROM dsh_interaction_requests WHERE id=? AND status='open'`).run(claimId, now, requestId);
102
+ return Number(changed.changes) === 1;
103
+ },
104
+ releaseResponseClaim(requestId, claimId) {
105
+ db.prepare("DELETE FROM finance_response_claims WHERE request_id=? AND claim_id=?").run(requestId, claimId);
106
+ },
107
+ createInteractionRequest: createRequestImpl,
108
+ createOrGetInteractionRequest: (request) => transaction(() => {
109
+ return (request.dedupeKey === void 0 ? void 0 : listInteractionRequestsImpl().find((candidate) => candidate.dedupeKey === request.dedupeKey)) ?? createRequestImpl(request);
110
+ }),
111
+ getRequest: getRequestImpl,
112
+ listInteractionRequests: listInteractionRequestsImpl,
113
+ resolveStoredInteraction: (input) => {
114
+ const request = getRequestImpl(input.requestId);
115
+ if (!request) throw new Error("finance_request_not_found");
116
+ if (request.status !== "open") return {
117
+ applied: false,
118
+ request
119
+ };
120
+ const resolved = {
121
+ ...request,
122
+ status: "resolved",
123
+ ...input.safeResolution !== void 0 ? { resolution: input.safeResolution } : {},
124
+ ...input.summary !== void 0 ? { summary: input.summary } : {},
125
+ updatedAt: input.now,
126
+ resolvedAt: input.now,
127
+ ...input.consumedAt !== void 0 ? { consumedAt: input.consumedAt } : {}
128
+ };
129
+ const changed = db.prepare(`UPDATE dsh_interaction_requests SET status=?,payload=?,updated_at=?,consumed_at=?
130
+ WHERE id=? AND status='open'`).run(resolved.status, JSON.stringify(resolved), resolved.updatedAt, resolved.consumedAt ?? null, resolved.id);
131
+ return {
132
+ applied: Number(changed.changes) === 1,
133
+ request: getRequestImpl(request.id)
134
+ };
135
+ },
136
+ cancelInteractionRequest: (requestId, now) => {
137
+ const request = getRequestImpl(requestId);
138
+ if (!request) throw new Error("finance_request_not_found");
139
+ if (request.status !== "open") return request;
140
+ const cancelled = {
141
+ ...request,
142
+ status: "cancelled",
143
+ updatedAt: now,
144
+ cancelledAt: now
145
+ };
146
+ const changed = db.prepare(`UPDATE dsh_interaction_requests SET status='cancelled',payload=?,updated_at=?
147
+ WHERE id=? AND status='open' AND NOT EXISTS
148
+ (SELECT 1 FROM finance_response_claims WHERE request_id=?)`).run(JSON.stringify(cancelled), now, requestId, requestId);
149
+ if (Number(changed.changes) !== 1 && getRequestImpl(requestId)?.status === "open") throw apiError(409, "finance_request_response_in_progress");
150
+ return getRequestImpl(requestId);
151
+ },
152
+ listPendingInteractionDeliveries: () => listInteractionRequestsImpl({ status: "resolved" }).filter((request) => !request.consumedAt),
153
+ markInteractionConsumed: (requestId, now) => {
154
+ const request = getRequestImpl(requestId);
155
+ if (!request) throw new Error("finance_request_not_found");
156
+ if (request.status !== "resolved") throw new Error("finance_request_not_resolved");
157
+ return updateRequestImpl({
158
+ ...request,
159
+ consumedAt: now
160
+ });
161
+ }
162
+ };
163
+ }
164
+ function createFinanceApi(deps) {
165
+ const database = createNodeReadonlyStore(deps.ledgerDatabasePath);
166
+ const sdk = new ReadonlyFinanceSdk(database);
167
+ const { service, interaction } = deps;
168
+ const routeTable = createFinanceRouteTable(service, interaction, deps.preferences);
169
+ const ok = (data, status = 200) => ({
170
+ status,
171
+ body: {
172
+ ok: true,
173
+ data
174
+ }
175
+ });
176
+ async function handle(method, path, query, body) {
177
+ try {
178
+ return await dispatch(method, path, query, body);
179
+ } catch (error) {
180
+ if (error instanceof Error && "code" in error && error.code === "VALUATION_CONTEXT_STALE") return {
181
+ status: 409,
182
+ body: {
183
+ ok: false,
184
+ error: error.message,
185
+ code: "VALUATION_CONTEXT_STALE"
186
+ }
187
+ };
188
+ const status = typeof error === "object" && error !== null && "status" in error ? Number(error.status) : statusFromMessage(error instanceof Error ? error.message : String(error));
189
+ throw apiError(Number.isFinite(status) && status >= 400 ? status : 400, error instanceof Error ? error.message : String(error));
190
+ }
191
+ }
192
+ async function dispatch(method, path, query, body) {
193
+ const seg = path.split("/").filter(Boolean);
194
+ if (seg[0] === "sync-status" && seg.length === 1) {
195
+ assertMethod(method, "GET");
196
+ return ok(sdk.syncStatus());
197
+ }
198
+ if (seg[0] === "books") {
199
+ if (method === "POST" && seg.length === 3 && seg[2] === "sync") {
200
+ const syncBookId = decodeURIComponent(seg[1]);
201
+ const forwarded = await dispatchFinanceRoutes("POST", `/v1/finance/books/${encodeURIComponent(syncBookId)}/sync`, query, body);
202
+ if (forwarded !== void 0) return forwarded;
203
+ throw apiError(404, "finance_api_route_not_found");
204
+ }
205
+ assertMethod(method, "GET");
206
+ if (seg.length === 1) return ok(sdk.books());
207
+ const bookId = decodeURIComponent(seg[1]);
208
+ switch (seg[2]) {
209
+ case "changes": {
210
+ if (seg.length !== 3) throw apiError(404, "finance_api_route_not_found");
211
+ const allowed = /* @__PURE__ */ new Set([
212
+ "beginObservedAt",
213
+ "beforeObservedAt",
214
+ "beforeEventId",
215
+ "limit"
216
+ ]);
217
+ if ([...query.keys()].some((key) => !allowed.has(key) || query.getAll(key).length !== 1)) throw apiError(400, "Invalid ledger change query");
218
+ const time = query.get("beforeObservedAt");
219
+ const id = query.get("beforeEventId");
220
+ if (time === null !== (id === null)) throw apiError(400, "Invalid ledger change cursor");
221
+ return ok(sdk.ledgerChanges({
222
+ bookId,
223
+ ...query.has("beginObservedAt") ? { beginObservedAt: query.get("beginObservedAt") } : {},
224
+ ...time !== null && id !== null ? { before: {
225
+ observedAt: time,
226
+ eventId: Number(id)
227
+ } } : {},
228
+ limit: Number(query.get("limit") ?? 50)
229
+ }));
230
+ }
231
+ case "metadata": return ok(sdk.metadata(bookId));
232
+ case "valuation-context": {
233
+ const mode = query.get("mode");
234
+ if (mode && mode !== "standard" && mode !== "strict") throw apiError(400, "Invalid valuation mode");
235
+ return ok(sdk.valuationContext(bookId, {
236
+ ...query.get("asOf") ? { asOf: query.get("asOf") } : {},
237
+ ...mode === "standard" || mode === "strict" ? { mode } : {}
238
+ }));
239
+ }
240
+ case "exchange-rate-history": {
241
+ if (seg.length !== 3) throw apiError(404, "finance_api_route_not_found");
242
+ const allowed = /* @__PURE__ */ new Set([
243
+ "currency",
244
+ "valuationContext",
245
+ "limit"
246
+ ]);
247
+ if ([...query.keys()].some((key) => !allowed.has(key) || query.getAll(key).length !== 1)) throw apiError(400, "Invalid exchange-rate history query");
248
+ return ok(sdk.exchangeRateHistory(bookId, query.get("currency") ?? "", { valuationContext: query.get("valuationContext") ?? void 0 }, ledgerPageNumber(query, "limit", 90, 1, 180)));
249
+ }
250
+ case "months": return ok(sdk.months(bookId, ledgerFilters(query), { valuationContext: query.get("valuationContext") ?? void 0 }));
251
+ case "category-types": return ok(sdk.categoryTypes(bookId));
252
+ case "transactions":
253
+ if (seg.length === 4) return ok(sdk.transaction(bookId, decodeURIComponent(seg[3])));
254
+ if (seg.length !== 3) throw apiError(404, "finance_api_route_not_found");
255
+ return ok(sdk.transactions({
256
+ ...ledgerFilters(query),
257
+ bookId,
258
+ limit: ledgerPageNumber(query, "limit", 200, 1, 2e4),
259
+ offset: ledgerPageNumber(query, "offset", 0, 0),
260
+ ...query.get("focusId") ? { focusId: query.get("focusId") } : {}
261
+ }, { valuationContext: query.get("valuationContext") ?? void 0 }));
262
+ case "summary": return ok(sdk.summary(bookId, query.get("begin") ?? void 0, query.get("end") ?? void 0, query.get("bucket") ?? "day", ledgerFilters(query), { valuationContext: query.get("valuationContext") ?? void 0 }));
263
+ case "accounts": return ok(sdk.accounts(bookId, query.get("asOf") ?? void 0, { valuationContext: query.get("valuationContext") ?? void 0 }));
264
+ case "sync":
265
+ if (seg.length === 3) return ok(service.getSyncOperation(bookId));
266
+ if (seg.length === 4) return ok(service.getSyncOperation(bookId, seg[3]));
267
+ }
268
+ throw apiError(404, "finance_api_route_not_found");
269
+ }
270
+ if (seg[0] === "finance" && seg[1] === "attention" && seg.length === 2) {
271
+ assertMethod(method, "GET");
272
+ return {
273
+ status: 200,
274
+ body: { items: interaction.attention().filter((item) => item.kind === "interaction").map((item) => ({
275
+ kind: "interaction",
276
+ value: publicInteraction(item.value)
277
+ })) }
278
+ };
279
+ }
280
+ if (seg[0] === "finance") {
281
+ const result = await dispatchFinanceRoutes(method, `/v1/finance/${seg.slice(1).map(decodeURIComponent).join("/")}`, query, body);
282
+ if (result !== void 0) return result;
283
+ }
284
+ throw apiError(404, "finance_api_route_not_found");
285
+ }
286
+ async function dispatchFinanceRoutes(method, pathname, query, body) {
287
+ const request = {
288
+ method,
289
+ pathname,
290
+ query: Object.fromEntries(query.entries()),
291
+ body: async () => await body()
292
+ };
293
+ for (const contribution of routeTable) {
294
+ let result;
295
+ try {
296
+ result = await contribution.handle(request);
297
+ } catch (error) {
298
+ if (isRouteErrorLike(error) || error instanceof FinanceRouteError) throw apiError(error.status, error.message);
299
+ throw error;
300
+ }
301
+ if (result !== void 0) return {
302
+ status: result.status,
303
+ body: result.body
304
+ };
305
+ }
306
+ }
307
+ return {
308
+ handle,
309
+ close() {
310
+ sdk.close();
311
+ }
312
+ };
313
+ }
314
+ function apiError(status, message) {
315
+ return Object.assign(new Error(message), { status });
316
+ }
317
+ function ledgerFilters(query) {
318
+ const result = {};
319
+ for (const [plural, singular] of [
320
+ ["categoryIds", "categoryId"],
321
+ ["accountIds", "accountId"],
322
+ ["projectIds", "projectId"],
323
+ ["storeIds", "storeId"],
324
+ ["memberIds", "memberId"]
325
+ ]) {
326
+ const values = [...new Set([...query.getAll(plural), ...query.getAll(singular)].flatMap((value) => value.split(",")).map((value) => value.trim()).filter(Boolean))];
327
+ if (values.length) result[plural] = values;
328
+ }
329
+ const types = query.get("types")?.split(",").filter(Boolean);
330
+ if (types?.some((type) => ![
331
+ "expense",
332
+ "income",
333
+ "transfer",
334
+ "other"
335
+ ].includes(type))) throw apiError(400, "Invalid transaction type");
336
+ if (types?.length) result.types = types;
337
+ if (query.get("begin")) result.beginDate = query.get("begin");
338
+ if (query.get("end")) result.endDate = query.get("end");
339
+ if (query.get("q")?.trim()) result.query = query.get("q").trim();
340
+ const scope = query.get("accountScope");
341
+ if (scope && scope !== "exact" && scope !== "family") throw apiError(400, "Invalid account scope");
342
+ if (scope === "exact" || scope === "family") result.accountScope = scope;
343
+ const bucket = query.get("bucket");
344
+ if (bucket && bucket !== "day" && bucket !== "month") throw apiError(400, "Invalid summary bucket");
345
+ return result;
346
+ }
347
+ function ledgerPageNumber(query, key, fallback, minimum, maximum = Number.MAX_SAFE_INTEGER) {
348
+ const raw = query.get(key);
349
+ if (raw === null) return fallback;
350
+ const value = Number(raw);
351
+ if (!/^\d+$/.test(raw) || !Number.isSafeInteger(value) || value < minimum || value > maximum) throw apiError(400, `Invalid ${key}`);
352
+ return value;
353
+ }
354
+ function assertMethod(method, expected) {
355
+ if (method !== expected) throw apiError(405, "finance_api_method_not_allowed");
356
+ }
357
+ function isRouteErrorLike(error) {
358
+ return error instanceof Error && error.name === "FinanceRouteError";
359
+ }
360
+ function publicInteraction(request) {
361
+ return {
362
+ id: request.id,
363
+ type: request.type,
364
+ context: request.context,
365
+ title: request.title,
366
+ summary: request.summary,
367
+ payload: request.payload,
368
+ status: request.status,
369
+ createdAt: request.createdAt,
370
+ updatedAt: request.updatedAt
371
+ };
372
+ }
373
+ function statusFromMessage(message) {
374
+ if (message === "finance_remote_writes_disabled") return 503;
375
+ if (/_not_found|not found|Unknown cached book/i.test(message)) return 404;
376
+ if (/in_progress|_conflict|state changed|version changed|no longer current/i.test(message)) return 409;
377
+ return 400;
378
+ }
379
+ //#endregion
380
+ export { createDshInteractionStore, createFinanceApi };
@@ -0,0 +1,53 @@
1
+ //#region src/session/attachment-ownership.ts
2
+ const PREFIX = "dsh-session-";
3
+ const PAGE_SIZE = 256;
4
+ const MAX_EVENTS = 1e5;
5
+ /** Only newly admitted user attachments confer ownership, never forked or derived context. */
6
+ function sessionAttachmentOwnership(persistence) {
7
+ const getOwnedAttachment = async (subjectId, attachmentId) => {
8
+ if (!subjectId.startsWith(PREFIX) || !subjectId.slice(12).trim() || !/^sha256:[0-9a-f]{64}$/.test(attachmentId)) return void 0;
9
+ const provider = persistence();
10
+ if (!provider) throw new Error("finance_source_unavailable:attachment-ownership");
11
+ const sessionId = subjectId.slice(12);
12
+ try {
13
+ const handle = await provider.open(sessionId, "read");
14
+ try {
15
+ const start = handle.inheritedEventCount;
16
+ if (handle.id !== sessionId || handle.header.id !== sessionId || handle.header.version !== 4 || handle.access !== "read" || !Number.isSafeInteger(start) || start < 0 || !handle.header.isSeeded && start !== 0) throw new Error("invalid-session-ownership-metadata");
17
+ let offset = Number(start);
18
+ while (offset - start < MAX_EVENTS) {
19
+ const length = Math.min(PAGE_SIZE, MAX_EVENTS - (offset - start));
20
+ const { events } = await handle.read(offset, length);
21
+ if (events.length > length) throw new Error("invalid-session-page");
22
+ for (let index = 0; index < events.length; index++) {
23
+ const event = events[index];
24
+ if (event.seq !== offset + index) throw new Error("invalid-session-sequence");
25
+ if (event.type !== "user/message" || event.surfaceOp !== "append" || event.sourceEventSeqs?.length || event.data.role !== "user" || event.data.source.kind !== "user") continue;
26
+ for (const block of event.data.content) if ((block.type === "file" || block.type === "image") && block.attachment.attachmentId === attachmentId) return block.type === "file" ? {
27
+ type: "file",
28
+ ref: { ...block.attachment }
29
+ } : {
30
+ type: "image",
31
+ ref: { ...block.attachment }
32
+ };
33
+ }
34
+ if (events.length < length) return void 0;
35
+ offset += events.length;
36
+ }
37
+ throw new Error("session-ownership-scan-limit");
38
+ } finally {
39
+ await handle.close();
40
+ }
41
+ } catch {
42
+ throw new Error("finance_source_unavailable:attachment-ownership");
43
+ }
44
+ };
45
+ return {
46
+ getOwnedAttachment,
47
+ async ownsAttachment(subjectId, attachmentId) {
48
+ return Boolean(await getOwnedAttachment(subjectId, attachmentId));
49
+ }
50
+ };
51
+ }
52
+ //#endregion
53
+ export { sessionAttachmentOwnership };
@@ -0,0 +1,14 @@
1
+ //#region src/session/call-context.ts
2
+ function financeCallContext(toolName, exec, now = (/* @__PURE__ */ new Date()).toISOString()) {
3
+ const sessionId = exec.agent?.id;
4
+ if (typeof sessionId !== "string" || !sessionId.trim()) throw new Error("finance_call_identity_required");
5
+ if (typeof exec.callId !== "string" || !exec.callId.trim()) throw new Error("finance_call_id_required");
6
+ return {
7
+ subjectId: `dsh-session-${sessionId}`,
8
+ callId: `${toolName}:${exec.callId}`,
9
+ now,
10
+ ...exec.signal ? { signal: exec.signal } : {}
11
+ };
12
+ }
13
+ //#endregion
14
+ export { financeCallContext };
@@ -0,0 +1,74 @@
1
+ import { createHash } from "node:crypto";
2
+ //#region src/session/source-ports.ts
3
+ const ATTACHMENT_ID_PATTERN = /^sha256:([0-9a-f]{64})$/;
4
+ const MAX_ATTACHMENT_BYTES = 33554432;
5
+ function sourcePortsFromHost(options = {}) {
6
+ const unavailable = (surface) => {
7
+ throw new Error("finance_source_unavailable:" + surface);
8
+ };
9
+ const readBlob = async (subjectId, attachmentId) => {
10
+ const match = ATTACHMENT_ID_PATTERN.exec(attachmentId);
11
+ if (!match) throw new Error("finance_source_not_found");
12
+ if (!options.ownership) unavailable("attachment-ownership");
13
+ const owned = await options.ownership.getOwnedAttachment(subjectId, attachmentId);
14
+ if (!owned || owned.ref.attachmentId !== attachmentId) throw new Error("finance_source_not_found");
15
+ const ref = owned.ref;
16
+ if (!Number.isSafeInteger(ref.bytes) || ref.bytes < 0 || ref.name && /[\\/\x00]/.test(ref.name)) unavailable("attachment-metadata");
17
+ if (ref.bytes > 33554432) throw new Error("finance_source_size_limit_exceeded");
18
+ const reader = options.attachments?.();
19
+ if (!reader) unavailable("attachment-service");
20
+ const chunks = [];
21
+ let size = 0;
22
+ const append = (chunk) => {
23
+ size += chunk.byteLength;
24
+ if (size > ref.bytes || size > 33554432) throw new Error("finance_source_size_mismatch");
25
+ chunks.push(new Uint8Array(chunk));
26
+ };
27
+ try {
28
+ if (owned.type === "image") append((await reader.readImage(owned.ref)).data);
29
+ else for await (const chunk of reader.readFileStream(owned.ref)) append(chunk);
30
+ } catch (error) {
31
+ if (error instanceof Error && error.message === "finance_source_size_mismatch") throw error;
32
+ unavailable("attachment-read");
33
+ }
34
+ const content = Buffer.concat(chunks);
35
+ const checksum = createHash("sha256").update(content).digest("hex");
36
+ if (size !== ref.bytes || checksum !== match[1]) throw new Error("finance_source_checksum_mismatch");
37
+ return {
38
+ name: ref.name || match[1],
39
+ mimeType: owned.type === "image" ? owned.ref.mediaType : guessMimeType(ref.name),
40
+ size,
41
+ checksum,
42
+ content: new Uint8Array(content)
43
+ };
44
+ };
45
+ return {
46
+ readSubjectText: () => unavailable("conversation-transcript"),
47
+ readSubjectAttachment: readBlob,
48
+ async readSourceRef(sourceRef, expectedSubjectId) {
49
+ const prefix = "finance-source.1.conversation-attachment." + expectedSubjectId + "/";
50
+ if (!sourceRef.startsWith(prefix)) throw new Error("finance_source_not_found");
51
+ const tail = sourceRef.slice(prefix.length);
52
+ const hex = /^[0-9a-f]{64}$/.test(tail) ? tail : ATTACHMENT_ID_PATTERN.exec(tail)?.[1];
53
+ if (!hex) throw new Error("finance_source_not_found");
54
+ return readBlob(expectedSubjectId, "sha256:" + hex);
55
+ }
56
+ };
57
+ }
58
+ const MIME_BY_EXTENSION = {
59
+ csv: "text/csv",
60
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
61
+ xls: "application/vnd.ms-excel",
62
+ json: "application/json",
63
+ txt: "text/plain",
64
+ pdf: "application/pdf",
65
+ png: "image/png",
66
+ jpg: "image/jpeg",
67
+ jpeg: "image/jpeg"
68
+ };
69
+ function guessMimeType(name) {
70
+ const extension = name?.split(".").pop()?.toLowerCase() ?? "";
71
+ return MIME_BY_EXTENSION[extension] ?? "application/octet-stream";
72
+ }
73
+ //#endregion
74
+ export { MAX_ATTACHMENT_BYTES, sourcePortsFromHost };