@mininglamp-oss/octo-runtime 1.1.6 → 1.1.7

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 (236) hide show
  1. package/apps/cli/dist/build-info.json +2 -2
  2. package/dist/public/dsh.d.ts +1 -1
  3. package/dist/public/dsh.js +1 -1
  4. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  5. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +9 -1
  6. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +17 -0
  7. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  8. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +20 -2
  9. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  10. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +32 -2
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +3 -0
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +16 -2
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +5 -0
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +32 -2
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-IW62UM3C.js → chunk-CFKMMCO6.js} +5 -3
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FWAPYRV2.js → chunk-LO34KB7D.js} +1 -1
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-3GXX5VD5.js → chunk-V5W6ZTYC.js} +14 -6
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +4 -2
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +3 -1
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +17 -3
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +8 -6
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +1 -0
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -3
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +9 -1
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +10 -6
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +9 -1
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +9 -1
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +9 -1
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/compatibility.d.ts +2 -1
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/compatibility.js +12 -40
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +22 -2
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +422 -135
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +6 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +2 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +9 -1
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +9 -1
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +18 -4
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +7 -4
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +20 -2
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  55. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  56. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
  57. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.d.ts +2 -1
  58. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.js +102 -52
  59. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.js +8 -3
  60. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +5 -3
  61. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +4 -3
  62. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +1 -1
  63. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +2 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +1 -1
  65. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +9 -6
  66. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  67. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  68. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +8 -1
  69. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +17 -1
  70. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +22 -6
  71. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +3 -0
  72. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +27 -0
  73. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +444 -226
  74. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +5 -2
  75. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +42 -4
  76. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +5 -0
  77. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +15 -0
  78. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +28 -0
  79. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +16 -5
  80. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +4 -5
  81. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +12 -9
  82. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +1 -0
  83. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +7 -5
  84. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +15 -0
  85. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +36 -0
  86. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +2 -0
  87. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +10 -0
  88. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +5 -2
  89. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +36 -22
  90. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +14 -1
  91. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +4 -0
  92. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +5 -1
  93. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +265 -38
  94. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +4 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +5 -5
  96. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +7 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +19 -2
  98. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +3 -1
  99. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +4 -3
  100. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -12
  101. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +5 -3
  102. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +2 -1
  103. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +8 -6
  104. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +3 -0
  105. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +2 -2
  106. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +2 -2
  107. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +27 -15
  108. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +17 -1
  109. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +217 -50
  110. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +2 -4
  111. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +3 -2
  112. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +41 -12
  113. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +2 -6
  114. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +53 -82
  115. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +12 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +133 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +21 -0
  118. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +76 -0
  119. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -2
  120. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -2
  121. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +16 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +74 -0
  123. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +4 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +19 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +7 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +90 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +2 -2
  128. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +6 -0
  129. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +60 -0
  130. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +2 -1
  131. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +20 -8
  132. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  133. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +10 -2
  134. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +14 -1
  135. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +2 -3
  136. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  137. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  138. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +3 -2
  139. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +11 -4
  140. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  141. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +8 -1
  142. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +9 -0
  143. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +3 -0
  144. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +6 -0
  145. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +14 -0
  146. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  147. package/node_modules/iconv-lite/LICENSE +21 -0
  148. package/node_modules/iconv-lite/README.md +138 -0
  149. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  150. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  151. package/node_modules/iconv-lite/encodings/index.js +23 -0
  152. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  153. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  154. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  155. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  156. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  157. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  158. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  159. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  160. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  161. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  162. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  163. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  164. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  165. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  166. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  167. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  168. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  169. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  170. package/node_modules/iconv-lite/lib/index.js +182 -0
  171. package/node_modules/iconv-lite/lib/streams.js +105 -0
  172. package/node_modules/iconv-lite/package.json +70 -0
  173. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  174. package/node_modules/safer-buffer/LICENSE +21 -0
  175. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  176. package/node_modules/safer-buffer/Readme.md +156 -0
  177. package/node_modules/safer-buffer/dangerous.js +58 -0
  178. package/node_modules/safer-buffer/package.json +34 -0
  179. package/node_modules/safer-buffer/safer.js +77 -0
  180. package/node_modules/safer-buffer/tests.js +406 -0
  181. package/node_modules/semver/LICENSE +15 -0
  182. package/node_modules/semver/README.md +680 -0
  183. package/node_modules/semver/bin/semver.js +195 -0
  184. package/node_modules/semver/classes/comparator.js +143 -0
  185. package/node_modules/semver/classes/index.js +7 -0
  186. package/node_modules/semver/classes/range.js +577 -0
  187. package/node_modules/semver/classes/semver.js +350 -0
  188. package/node_modules/semver/functions/clean.js +8 -0
  189. package/node_modules/semver/functions/cmp.js +54 -0
  190. package/node_modules/semver/functions/coerce.js +62 -0
  191. package/node_modules/semver/functions/compare-build.js +9 -0
  192. package/node_modules/semver/functions/compare-loose.js +5 -0
  193. package/node_modules/semver/functions/compare.js +7 -0
  194. package/node_modules/semver/functions/diff.js +60 -0
  195. package/node_modules/semver/functions/eq.js +5 -0
  196. package/node_modules/semver/functions/gt.js +5 -0
  197. package/node_modules/semver/functions/gte.js +5 -0
  198. package/node_modules/semver/functions/inc.js +21 -0
  199. package/node_modules/semver/functions/lt.js +5 -0
  200. package/node_modules/semver/functions/lte.js +5 -0
  201. package/node_modules/semver/functions/major.js +5 -0
  202. package/node_modules/semver/functions/minor.js +5 -0
  203. package/node_modules/semver/functions/neq.js +5 -0
  204. package/node_modules/semver/functions/parse.js +18 -0
  205. package/node_modules/semver/functions/patch.js +5 -0
  206. package/node_modules/semver/functions/prerelease.js +8 -0
  207. package/node_modules/semver/functions/rcompare.js +5 -0
  208. package/node_modules/semver/functions/rsort.js +5 -0
  209. package/node_modules/semver/functions/satisfies.js +12 -0
  210. package/node_modules/semver/functions/sort.js +5 -0
  211. package/node_modules/semver/functions/truncate.js +48 -0
  212. package/node_modules/semver/functions/valid.js +8 -0
  213. package/node_modules/semver/index.js +93 -0
  214. package/node_modules/semver/internal/constants.js +37 -0
  215. package/node_modules/semver/internal/debug.js +11 -0
  216. package/node_modules/semver/internal/identifiers.js +29 -0
  217. package/node_modules/semver/internal/lrucache.js +42 -0
  218. package/node_modules/semver/internal/parse-options.js +17 -0
  219. package/node_modules/semver/internal/re.js +223 -0
  220. package/node_modules/semver/package.json +78 -0
  221. package/node_modules/semver/preload.js +4 -0
  222. package/node_modules/semver/range.bnf +17 -0
  223. package/node_modules/semver/ranges/gtr.js +6 -0
  224. package/node_modules/semver/ranges/intersects.js +9 -0
  225. package/node_modules/semver/ranges/ltr.js +6 -0
  226. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  227. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  228. package/node_modules/semver/ranges/min-version.js +63 -0
  229. package/node_modules/semver/ranges/outside.js +82 -0
  230. package/node_modules/semver/ranges/simplify.js +49 -0
  231. package/node_modules/semver/ranges/subset.js +249 -0
  232. package/node_modules/semver/ranges/to-comparators.js +10 -0
  233. package/node_modules/semver/ranges/valid.js +13 -0
  234. package/package.json +33 -27
  235. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +8 -1
  236. package/packages/octo-runtime-protocol/schema/protocol.schema.json +43 -1
@@ -0,0 +1,105 @@
1
+ "use strict"
2
+
3
+ var Buffer = require("safer-buffer").Buffer
4
+
5
+ // NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments),
6
+ // we opt to dependency-inject it instead of creating a hard dependency.
7
+ module.exports = function (streamModule) {
8
+ var Transform = streamModule.Transform
9
+
10
+ // == Encoder stream =======================================================
11
+
12
+ function IconvLiteEncoderStream (conv, options) {
13
+ this.conv = conv
14
+ options = options || {}
15
+ options.decodeStrings = false // We accept only strings, so we don't need to decode them.
16
+ Transform.call(this, options)
17
+ }
18
+
19
+ IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
20
+ constructor: { value: IconvLiteEncoderStream }
21
+ })
22
+
23
+ IconvLiteEncoderStream.prototype._transform = function (chunk, encoding, done) {
24
+ if (typeof chunk !== "string") {
25
+ return done(new Error("Iconv encoding stream needs strings as its input."))
26
+ }
27
+
28
+ try {
29
+ var res = this.conv.write(chunk)
30
+ if (res && res.length) this.push(res)
31
+ done()
32
+ } catch (e) {
33
+ done(e)
34
+ }
35
+ }
36
+
37
+ IconvLiteEncoderStream.prototype._flush = function (done) {
38
+ try {
39
+ var res = this.conv.end()
40
+ if (res && res.length) this.push(res)
41
+ done()
42
+ } catch (e) {
43
+ done(e)
44
+ }
45
+ }
46
+
47
+ IconvLiteEncoderStream.prototype.collect = function (cb) {
48
+ var chunks = []
49
+ this.on("error", cb)
50
+ this.on("data", function (chunk) { chunks.push(chunk) })
51
+ this.on("end", function () {
52
+ cb(null, Buffer.concat(chunks))
53
+ })
54
+ return this
55
+ }
56
+
57
+ // == Decoder stream =======================================================
58
+
59
+ function IconvLiteDecoderStream (conv, options) {
60
+ this.conv = conv
61
+ options = options || {}
62
+ options.encoding = this.encoding = "utf8" // We output strings.
63
+ Transform.call(this, options)
64
+ }
65
+
66
+ IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
67
+ constructor: { value: IconvLiteDecoderStream }
68
+ })
69
+
70
+ IconvLiteDecoderStream.prototype._transform = function (chunk, encoding, done) {
71
+ if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array)) { return done(new Error("Iconv decoding stream needs buffers as its input.")) }
72
+ try {
73
+ var res = this.conv.write(chunk)
74
+ if (res && res.length) this.push(res, this.encoding)
75
+ done()
76
+ } catch (e) {
77
+ done(e)
78
+ }
79
+ }
80
+
81
+ IconvLiteDecoderStream.prototype._flush = function (done) {
82
+ try {
83
+ var res = this.conv.end()
84
+ if (res && res.length) this.push(res, this.encoding)
85
+ done()
86
+ } catch (e) {
87
+ done(e)
88
+ }
89
+ }
90
+
91
+ IconvLiteDecoderStream.prototype.collect = function (cb) {
92
+ var res = ""
93
+ this.on("error", cb)
94
+ this.on("data", function (chunk) { res += chunk })
95
+ this.on("end", function () {
96
+ cb(null, res)
97
+ })
98
+ return this
99
+ }
100
+
101
+ return {
102
+ IconvLiteEncoderStream: IconvLiteEncoderStream,
103
+ IconvLiteDecoderStream: IconvLiteDecoderStream
104
+ }
105
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "iconv-lite",
3
+ "description": "Convert character encodings in pure javascript.",
4
+ "version": "0.7.3",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "iconv",
8
+ "convert",
9
+ "charset",
10
+ "icu"
11
+ ],
12
+ "author": "Alexander Shtuchkin <ashtuchkin@gmail.com>",
13
+ "main": "./lib/index.js",
14
+ "typings": "./lib/index.d.ts",
15
+ "homepage": "https://github.com/pillarjs/iconv-lite",
16
+ "bugs": "https://github.com/pillarjs/iconv-lite/issues",
17
+ "files": [
18
+ "lib/",
19
+ "encodings/",
20
+ "types/"
21
+ ],
22
+ "funding": {
23
+ "type": "opencollective",
24
+ "url": "https://opencollective.com/express"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/pillarjs/iconv-lite.git"
29
+ },
30
+ "engines": {
31
+ "node": ">=0.10.0"
32
+ },
33
+ "scripts": {
34
+ "lint": "eslint",
35
+ "lint:fix": "eslint --fix",
36
+ "test": "mocha --reporter spec --check-leaks --grep .",
37
+ "test:ci": "nyc --exclude test --reporter=lcovonly --reporter=text npm test",
38
+ "test:cov": "nyc --exclude test --reporter=html --reporter=text npm test",
39
+ "test:performance": "node --allow-natives-syntax performance/index.js",
40
+ "test:tap": "mocha --reporter tap --check-leaks --grep .",
41
+ "test:typescript": "tsc && attw --pack",
42
+ "test:webpack": "npm pack && mv iconv-lite-*.tgz test/webpack/iconv-lite.tgz && cd test/webpack && npm install && npm run test && rm iconv-lite.tgz",
43
+ "typegen": "node generation/gen-typings.js"
44
+ },
45
+ "browser": {
46
+ "stream": false
47
+ },
48
+ "devDependencies": {
49
+ "@arethetypeswrong/cli": "^0.18.4",
50
+ "@stylistic/eslint-plugin": "^5.1.0",
51
+ "@stylistic/eslint-plugin-js": "^4.1.0",
52
+ "@types/node": "^24.0.12",
53
+ "async": "^3.2.0",
54
+ "bench-node": "^0.10.0",
55
+ "eslint": "^9.0.0",
56
+ "errto": "^0.2.1",
57
+ "expect-type": "^1.2.0",
58
+ "iconv": "^2.3.5",
59
+ "mocha": "^6.2.2",
60
+ "neostandard": "^0.12.0",
61
+ "nyc": "^14.1.1",
62
+ "request": "^2.88.2",
63
+ "semver": "^6.3.0",
64
+ "typescript": "~5.9.2",
65
+ "unorm": "^1.6.0"
66
+ },
67
+ "dependencies": {
68
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
69
+ }
70
+ }
@@ -0,0 +1,425 @@
1
+ /*
2
+ * ---------------------------------------------------------------------------------------------
3
+ * DO NOT EDIT THIS FILE MANUALLY.
4
+ * THIS FILE IS AUTOMATICALLY GENERATED.
5
+ * TO UPDATE, RUN `npm run typegen` AND COMMIT THE CHANGES.
6
+ * ---------------------------------------------------------------------------------------------
7
+ */
8
+
9
+ /** A union of all supported encoding strings in `iconv-lite`. */
10
+ export type Encoding =
11
+ | "10000"
12
+ | "10006"
13
+ | "10007"
14
+ | "10029"
15
+ | "10079"
16
+ | "10081"
17
+ | "1046"
18
+ | "1124"
19
+ | "1125"
20
+ | "1129"
21
+ | "1133"
22
+ | "1161"
23
+ | "1162"
24
+ | "1163"
25
+ | "1250"
26
+ | "1251"
27
+ | "1252"
28
+ | "1253"
29
+ | "1254"
30
+ | "1255"
31
+ | "1256"
32
+ | "1257"
33
+ | "1258"
34
+ | "20866"
35
+ | "21866"
36
+ | "28591"
37
+ | "28592"
38
+ | "28593"
39
+ | "28594"
40
+ | "28595"
41
+ | "28596"
42
+ | "28597"
43
+ | "28598"
44
+ | "28599"
45
+ | "28600"
46
+ | "28601"
47
+ | "28603"
48
+ | "28604"
49
+ | "28605"
50
+ | "28606"
51
+ | "437"
52
+ | "737"
53
+ | "775"
54
+ | "808"
55
+ | "850"
56
+ | "852"
57
+ | "855"
58
+ | "856"
59
+ | "857"
60
+ | "858"
61
+ | "860"
62
+ | "861"
63
+ | "862"
64
+ | "863"
65
+ | "864"
66
+ | "865"
67
+ | "866"
68
+ | "869"
69
+ | "874"
70
+ | "922"
71
+ | "932"
72
+ | "936"
73
+ | "949"
74
+ | "950"
75
+ | "ansix34"
76
+ | "ansix341968"
77
+ | "ansix341986"
78
+ | "arabic"
79
+ | "arabic8"
80
+ | "armscii8"
81
+ | "ascii"
82
+ | "ascii8bit"
83
+ | "asmo708"
84
+ | "base64"
85
+ | "big5"
86
+ | "big5hkscs"
87
+ | "binary"
88
+ | "celtic"
89
+ | "celtic8"
90
+ | "cesu8"
91
+ | "chinese"
92
+ | "cn"
93
+ | "cnbig5"
94
+ | "cp1046"
95
+ | "cp1124"
96
+ | "cp1125"
97
+ | "cp1129"
98
+ | "cp1133"
99
+ | "cp1161"
100
+ | "cp1162"
101
+ | "cp1163"
102
+ | "cp1250"
103
+ | "cp1251"
104
+ | "cp1252"
105
+ | "cp1253"
106
+ | "cp1254"
107
+ | "cp1255"
108
+ | "cp1256"
109
+ | "cp1257"
110
+ | "cp1258"
111
+ | "cp20866"
112
+ | "cp21866"
113
+ | "cp28591"
114
+ | "cp28592"
115
+ | "cp28593"
116
+ | "cp28594"
117
+ | "cp28595"
118
+ | "cp28596"
119
+ | "cp28597"
120
+ | "cp28598"
121
+ | "cp28599"
122
+ | "cp28600"
123
+ | "cp28601"
124
+ | "cp28603"
125
+ | "cp28604"
126
+ | "cp28605"
127
+ | "cp28606"
128
+ | "cp367"
129
+ | "cp437"
130
+ | "cp720"
131
+ | "cp737"
132
+ | "cp775"
133
+ | "cp808"
134
+ | "cp819"
135
+ | "cp850"
136
+ | "cp852"
137
+ | "cp855"
138
+ | "cp856"
139
+ | "cp857"
140
+ | "cp858"
141
+ | "cp860"
142
+ | "cp861"
143
+ | "cp862"
144
+ | "cp863"
145
+ | "cp864"
146
+ | "cp865"
147
+ | "cp866"
148
+ | "cp869"
149
+ | "cp874"
150
+ | "cp922"
151
+ | "cp932"
152
+ | "cp936"
153
+ | "cp949"
154
+ | "cp950"
155
+ | "cpgr"
156
+ | "csascii"
157
+ | "csbig5"
158
+ | "cseuckr"
159
+ | "csgb2312"
160
+ | "cshproman8"
161
+ | "csibm1046"
162
+ | "csibm1124"
163
+ | "csibm1125"
164
+ | "csibm1129"
165
+ | "csibm1133"
166
+ | "csibm1161"
167
+ | "csibm1162"
168
+ | "csibm1163"
169
+ | "csibm437"
170
+ | "csibm737"
171
+ | "csibm775"
172
+ | "csibm850"
173
+ | "csibm852"
174
+ | "csibm855"
175
+ | "csibm856"
176
+ | "csibm857"
177
+ | "csibm858"
178
+ | "csibm860"
179
+ | "csibm861"
180
+ | "csibm862"
181
+ | "csibm863"
182
+ | "csibm864"
183
+ | "csibm865"
184
+ | "csibm866"
185
+ | "csibm869"
186
+ | "csibm922"
187
+ | "csiso14jisc6220ro"
188
+ | "csiso58gb231280"
189
+ | "csisolatin1"
190
+ | "csisolatin2"
191
+ | "csisolatin3"
192
+ | "csisolatin4"
193
+ | "csisolatin5"
194
+ | "csisolatin6"
195
+ | "csisolatinarabic"
196
+ | "csisolatincyrillic"
197
+ | "csisolatingreek"
198
+ | "csisolatinhebrew"
199
+ | "cskoi8r"
200
+ | "csksc56011987"
201
+ | "csmacintosh"
202
+ | "cspc775baltic"
203
+ | "cspc850multilingual"
204
+ | "cspc862latinhebrew"
205
+ | "cspc8codepage437"
206
+ | "cspcp852"
207
+ | "csshiftjis"
208
+ | "cyrillic"
209
+ | "ecma114"
210
+ | "ecma118"
211
+ | "elot928"
212
+ | "euccn"
213
+ | "eucjp"
214
+ | "euckr"
215
+ | "gb18030"
216
+ | "gb198880"
217
+ | "gb2312"
218
+ | "gb23121980"
219
+ | "gb231280"
220
+ | "gbk"
221
+ | "georgianacademy"
222
+ | "georgianps"
223
+ | "greek"
224
+ | "greek8"
225
+ | "hebrew"
226
+ | "hebrew8"
227
+ | "hex"
228
+ | "hproman8"
229
+ | "ibm1046"
230
+ | "ibm1051"
231
+ | "ibm1124"
232
+ | "ibm1125"
233
+ | "ibm1129"
234
+ | "ibm1133"
235
+ | "ibm1161"
236
+ | "ibm1162"
237
+ | "ibm1163"
238
+ | "ibm1168"
239
+ | "ibm367"
240
+ | "ibm437"
241
+ | "ibm737"
242
+ | "ibm775"
243
+ | "ibm808"
244
+ | "ibm819"
245
+ | "ibm850"
246
+ | "ibm852"
247
+ | "ibm855"
248
+ | "ibm856"
249
+ | "ibm857"
250
+ | "ibm858"
251
+ | "ibm860"
252
+ | "ibm861"
253
+ | "ibm862"
254
+ | "ibm863"
255
+ | "ibm864"
256
+ | "ibm865"
257
+ | "ibm866"
258
+ | "ibm869"
259
+ | "ibm878"
260
+ | "ibm922"
261
+ | "iso646cn"
262
+ | "iso646irv"
263
+ | "iso646jp"
264
+ | "iso646us"
265
+ | "iso88591"
266
+ | "iso885910"
267
+ | "iso885911"
268
+ | "iso885913"
269
+ | "iso885914"
270
+ | "iso885915"
271
+ | "iso885916"
272
+ | "iso88592"
273
+ | "iso88593"
274
+ | "iso88594"
275
+ | "iso88595"
276
+ | "iso88596"
277
+ | "iso88597"
278
+ | "iso88598"
279
+ | "iso88598e"
280
+ | "iso88598i"
281
+ | "iso88599"
282
+ | "isoceltic"
283
+ | "isoir100"
284
+ | "isoir101"
285
+ | "isoir109"
286
+ | "isoir110"
287
+ | "isoir126"
288
+ | "isoir127"
289
+ | "isoir138"
290
+ | "isoir14"
291
+ | "isoir144"
292
+ | "isoir148"
293
+ | "isoir149"
294
+ | "isoir157"
295
+ | "isoir166"
296
+ | "isoir179"
297
+ | "isoir199"
298
+ | "isoir203"
299
+ | "isoir226"
300
+ | "isoir57"
301
+ | "isoir58"
302
+ | "isoir6"
303
+ | "jisc62201969ro"
304
+ | "jp"
305
+ | "koi8r"
306
+ | "koi8ru"
307
+ | "koi8t"
308
+ | "koi8u"
309
+ | "korean"
310
+ | "ksc5601"
311
+ | "ksc56011987"
312
+ | "ksc56011989"
313
+ | "l1"
314
+ | "l10"
315
+ | "l2"
316
+ | "l3"
317
+ | "l4"
318
+ | "l5"
319
+ | "l6"
320
+ | "l7"
321
+ | "l8"
322
+ | "l9"
323
+ | "latin1"
324
+ | "latin10"
325
+ | "latin2"
326
+ | "latin3"
327
+ | "latin4"
328
+ | "latin5"
329
+ | "latin6"
330
+ | "latin7"
331
+ | "latin8"
332
+ | "latin9"
333
+ | "mac"
334
+ | "maccenteuro"
335
+ | "maccroatian"
336
+ | "maccyrillic"
337
+ | "macgreek"
338
+ | "maciceland"
339
+ | "macintosh"
340
+ | "macroman"
341
+ | "macromania"
342
+ | "macthai"
343
+ | "macturkish"
344
+ | "macukraine"
345
+ | "mik"
346
+ | "ms31j"
347
+ | "ms932"
348
+ | "ms936"
349
+ | "ms949"
350
+ | "ms950"
351
+ | "msansi"
352
+ | "msarab"
353
+ | "mscyrl"
354
+ | "msee"
355
+ | "msgreek"
356
+ | "mshebr"
357
+ | "mskanji"
358
+ | "msturk"
359
+ | "pt154"
360
+ | "r8"
361
+ | "rk1048"
362
+ | "roman8"
363
+ | "shiftjis"
364
+ | "sjis"
365
+ | "strk10482002"
366
+ | "tcvn"
367
+ | "tcvn5712"
368
+ | "tcvn57121"
369
+ | "thai"
370
+ | "thai8"
371
+ | "tis620"
372
+ | "tis6200"
373
+ | "tis62025291"
374
+ | "tis62025330"
375
+ | "turkish"
376
+ | "turkish8"
377
+ | "ucs2"
378
+ | "ucs4"
379
+ | "ucs4be"
380
+ | "ucs4le"
381
+ | "unicode11utf7"
382
+ | "unicode11utf8"
383
+ | "us"
384
+ | "usascii"
385
+ | "utf16"
386
+ | "utf16be"
387
+ | "utf16le"
388
+ | "utf32"
389
+ | "utf32be"
390
+ | "utf32le"
391
+ | "utf7"
392
+ | "utf7imap"
393
+ | "utf8"
394
+ | "viscii"
395
+ | "win1250"
396
+ | "win1251"
397
+ | "win1252"
398
+ | "win1253"
399
+ | "win1254"
400
+ | "win1255"
401
+ | "win1256"
402
+ | "win1257"
403
+ | "win1258"
404
+ | "win874"
405
+ | "winbaltrim"
406
+ | "windows1250"
407
+ | "windows1251"
408
+ | "windows1252"
409
+ | "windows1253"
410
+ | "windows1254"
411
+ | "windows1255"
412
+ | "windows1256"
413
+ | "windows1257"
414
+ | "windows1258"
415
+ | "windows31j"
416
+ | "windows874"
417
+ | "windows932"
418
+ | "windows936"
419
+ | "windows949"
420
+ | "windows950"
421
+ | "xgbk"
422
+ | "xroman8"
423
+ | "xsjis"
424
+ | "xxbig5"
425
+ | (string & {})
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.