@xrkseek/harness-cli 0.0.11 → 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 (974) hide show
  1. package/dist/plugin/install-client.d.ts.map +1 -1
  2. package/dist/plugin/install-client.js +80 -2
  3. package/dist/plugin/install-client.js.map +1 -1
  4. package/node_modules/@img/colour/LICENSE.md +82 -0
  5. package/node_modules/@img/colour/README.md +15 -0
  6. package/node_modules/@img/colour/color.cjs +1596 -0
  7. package/node_modules/@img/colour/index.cjs +1 -0
  8. package/node_modules/@img/colour/index.d.ts +929 -0
  9. package/node_modules/@img/colour/package.json +58 -0
  10. package/node_modules/@img/sharp-win32-x64/LICENSE +191 -0
  11. package/node_modules/@img/sharp-win32-x64/README.md +59 -0
  12. package/node_modules/@img/sharp-win32-x64/index.cjs +1 -0
  13. package/node_modules/@img/sharp-win32-x64/lib/libvips-42.dll +0 -0
  14. package/node_modules/@img/sharp-win32-x64/lib/libvips-cpp-8.18.3.dll +0 -0
  15. package/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64-0.35.3.node +0 -0
  16. package/node_modules/@img/sharp-win32-x64/package.json +40 -0
  17. package/node_modules/@img/sharp-win32-x64/versions.json +30 -0
  18. package/node_modules/@types/node/LICENSE +21 -0
  19. package/node_modules/@types/node/README.md +15 -0
  20. package/node_modules/@types/node/assert/strict.d.ts +111 -0
  21. package/node_modules/@types/node/assert.d.ts +1115 -0
  22. package/node_modules/@types/node/async_hooks.d.ts +623 -0
  23. package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  24. package/node_modules/@types/node/buffer.d.ts +1934 -0
  25. package/node_modules/@types/node/child_process.d.ts +1476 -0
  26. package/node_modules/@types/node/cluster.d.ts +578 -0
  27. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  28. package/node_modules/@types/node/console.d.ts +453 -0
  29. package/node_modules/@types/node/constants.d.ts +21 -0
  30. package/node_modules/@types/node/crypto.d.ts +5417 -0
  31. package/node_modules/@types/node/dgram.d.ts +600 -0
  32. package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  33. package/node_modules/@types/node/dns/promises.d.ts +503 -0
  34. package/node_modules/@types/node/dns.d.ts +923 -0
  35. package/node_modules/@types/node/domain.d.ts +166 -0
  36. package/node_modules/@types/node/events.d.ts +976 -0
  37. package/node_modules/@types/node/fs/promises.d.ts +1341 -0
  38. package/node_modules/@types/node/fs.d.ts +4714 -0
  39. package/node_modules/@types/node/globals.d.ts +170 -0
  40. package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  41. package/node_modules/@types/node/http.d.ts +2154 -0
  42. package/node_modules/@types/node/http2.d.ts +2835 -0
  43. package/node_modules/@types/node/https.d.ts +585 -0
  44. package/node_modules/@types/node/index.d.ts +101 -0
  45. package/node_modules/@types/node/inspector.d.ts +277 -0
  46. package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
  47. package/node_modules/@types/node/module.d.ts +843 -0
  48. package/node_modules/@types/node/net.d.ts +1073 -0
  49. package/node_modules/@types/node/os.d.ts +507 -0
  50. package/node_modules/@types/node/package.json +155 -0
  51. package/node_modules/@types/node/path.d.ts +200 -0
  52. package/node_modules/@types/node/perf_hooks.d.ts +1042 -0
  53. package/node_modules/@types/node/process.d.ts +2102 -0
  54. package/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/node/querystring.d.ts +152 -0
  56. package/node_modules/@types/node/readline/promises.d.ts +161 -0
  57. package/node_modules/@types/node/readline.d.ts +600 -0
  58. package/node_modules/@types/node/repl.d.ts +438 -0
  59. package/node_modules/@types/node/sea.d.ts +162 -0
  60. package/node_modules/@types/node/sqlite.d.ts +1040 -0
  61. package/node_modules/@types/node/stream/consumers.d.ts +38 -0
  62. package/node_modules/@types/node/stream/promises.d.ts +90 -0
  63. package/node_modules/@types/node/stream/web.d.ts +573 -0
  64. package/node_modules/@types/node/stream.d.ts +1706 -0
  65. package/node_modules/@types/node/string_decoder.d.ts +67 -0
  66. package/node_modules/@types/node/test.d.ts +2349 -0
  67. package/node_modules/@types/node/timers/promises.d.ts +108 -0
  68. package/node_modules/@types/node/timers.d.ts +285 -0
  69. package/node_modules/@types/node/tls.d.ts +1279 -0
  70. package/node_modules/@types/node/trace_events.d.ts +197 -0
  71. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  72. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  73. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  74. package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  75. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  76. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  77. package/node_modules/@types/node/tty.d.ts +208 -0
  78. package/node_modules/@types/node/url.d.ts +1079 -0
  79. package/node_modules/@types/node/util.d.ts +2336 -0
  80. package/node_modules/@types/node/v8.d.ts +982 -0
  81. package/node_modules/@types/node/vm.d.ts +1195 -0
  82. package/node_modules/@types/node/wasi.d.ts +202 -0
  83. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  84. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  85. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  86. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  87. package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
  88. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  89. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  90. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  91. package/node_modules/@types/node/worker_threads.d.ts +894 -0
  92. package/node_modules/@types/node/zlib.d.ts +745 -0
  93. package/node_modules/@xrkseek/attachment/dist/error.d.ts +3 -2
  94. package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
  95. package/node_modules/@xrkseek/attachment/dist/error.js +17 -2
  96. package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
  97. package/node_modules/@xrkseek/attachment/dist/index.d.ts +2 -2
  98. package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
  99. package/node_modules/@xrkseek/attachment/dist/index.js +1 -1
  100. package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
  101. package/node_modules/@xrkseek/attachment/dist/memory.d.ts.map +1 -1
  102. package/node_modules/@xrkseek/attachment/dist/memory.js +6 -0
  103. package/node_modules/@xrkseek/attachment/dist/memory.js.map +1 -1
  104. package/node_modules/@xrkseek/attachment/dist/store.d.ts +6 -1
  105. package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
  106. package/node_modules/@xrkseek/attachment/dist/types.d.ts +19 -0
  107. package/node_modules/@xrkseek/attachment/dist/types.d.ts.map +1 -1
  108. package/node_modules/@xrkseek/attachment/dist/types.js.map +1 -1
  109. package/node_modules/@xrkseek/attachment-local/README.md +3 -0
  110. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts +18 -0
  111. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts.map +1 -0
  112. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js +43 -0
  113. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js.map +1 -0
  114. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts +23 -0
  115. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts.map +1 -0
  116. package/node_modules/@xrkseek/attachment-local/dist/encoding.js +33 -0
  117. package/node_modules/@xrkseek/attachment-local/dist/encoding.js.map +1 -0
  118. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts +54 -0
  119. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts.map +1 -0
  120. package/node_modules/@xrkseek/attachment-local/dist/image.js +97 -0
  121. package/node_modules/@xrkseek/attachment-local/dist/image.js.map +1 -0
  122. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +32 -0
  123. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -0
  124. package/node_modules/@xrkseek/attachment-local/dist/index.js +188 -0
  125. package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -0
  126. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts +44 -0
  127. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts.map +1 -0
  128. package/node_modules/@xrkseek/attachment-local/dist/normalization.js +148 -0
  129. package/node_modules/@xrkseek/attachment-local/dist/normalization.js.map +1 -0
  130. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +34 -0
  131. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -0
  132. package/node_modules/@xrkseek/attachment-local/dist/request-image.js +208 -0
  133. package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -0
  134. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts +58 -0
  135. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -0
  136. package/node_modules/@xrkseek/attachment-local/dist/store.js +290 -0
  137. package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -0
  138. package/node_modules/@xrkseek/attachment-local/package.json +25 -0
  139. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +3 -0
  140. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  141. package/node_modules/@xrkseek/exec-fs/dist/index.js +10 -0
  142. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  143. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +35 -0
  144. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -0
  145. package/node_modules/@xrkseek/exec-fs/dist/read-image.js +120 -0
  146. package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -0
  147. package/node_modules/@xrkseek/exec-fs/package.json +3 -1
  148. package/node_modules/@xrkseek/llm/dist/index.d.ts +1 -0
  149. package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
  150. package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
  151. package/node_modules/@xrkseek/llm-deepseek/README.md +3 -1
  152. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts +10 -0
  153. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts.map +1 -0
  154. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js +8 -0
  155. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js.map +1 -0
  156. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts +40 -0
  157. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts.map +1 -0
  158. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js +164 -0
  159. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js.map +1 -0
  160. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts +56 -0
  161. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts.map +1 -0
  162. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js +180 -0
  163. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js.map +1 -0
  164. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +15 -6
  165. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
  166. package/node_modules/@xrkseek/llm-deepseek/dist/index.js +63 -13
  167. package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
  168. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts +8 -0
  169. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts.map +1 -0
  170. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js +12 -0
  171. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js.map +1 -0
  172. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts +28 -0
  173. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -0
  174. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +142 -0
  175. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -0
  176. package/node_modules/@xrkseek/llm-deepseek/package.json +3 -1
  177. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts +27 -0
  178. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts.map +1 -1
  179. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js +20 -5
  180. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js.map +1 -1
  181. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts +1 -0
  182. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
  183. package/node_modules/@xrkseek/llm-registry/dist/registry.js +15 -1
  184. package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
  185. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +5 -0
  186. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  187. package/node_modules/@xrkseek/preset-harness/dist/preset.js +10 -1
  188. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  189. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  190. package/node_modules/@xrkseek/preset-harness/package.json +1 -0
  191. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  192. package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
  193. package/node_modules/@xrkseek/preset-server/dist/preset.js +3 -1
  194. package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
  195. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  196. package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
  197. package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
  198. package/node_modules/@xrkseek/protocol/dist/content.js +8 -1
  199. package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
  200. package/node_modules/@xrkseek/server-face/dist/context.d.ts +6 -3
  201. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  202. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts +9 -0
  203. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts.map +1 -0
  204. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js +28 -0
  205. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js.map +1 -0
  206. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts +16 -0
  207. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts.map +1 -0
  208. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js +141 -0
  209. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js.map +1 -0
  210. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts +13 -0
  211. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts.map +1 -0
  212. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js +158 -0
  213. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js.map +1 -0
  214. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts +284 -0
  215. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts.map +1 -0
  216. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js +696 -0
  217. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js.map +1 -0
  218. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts +15 -0
  219. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts.map +1 -0
  220. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js +196 -0
  221. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js.map +1 -0
  222. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts +19 -0
  223. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts.map +1 -0
  224. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js +143 -0
  225. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js.map +1 -0
  226. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts +16 -0
  227. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts.map +1 -0
  228. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js +84 -0
  229. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js.map +1 -0
  230. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts +19 -0
  231. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts.map +1 -0
  232. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js +221 -0
  233. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js.map +1 -0
  234. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts +133 -0
  235. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts.map +1 -0
  236. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js +561 -0
  237. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js.map +1 -0
  238. package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
  239. package/node_modules/@xrkseek/server-face/dist/dispatch.js +15 -0
  240. package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
  241. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts +0 -5
  242. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
  243. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +277 -24
  244. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
  245. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts +30 -0
  246. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts.map +1 -0
  247. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js +48 -0
  248. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js.map +1 -0
  249. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts +6 -0
  250. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts.map +1 -0
  251. package/node_modules/@xrkseek/server-face/dist/handlers/references.js +42 -0
  252. package/node_modules/@xrkseek/server-face/dist/handlers/references.js.map +1 -0
  253. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts +6 -0
  254. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts.map +1 -0
  255. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js +24 -0
  256. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js.map +1 -0
  257. package/node_modules/@xrkseek/server-face/dist/index.d.ts +1 -0
  258. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  259. package/node_modules/@xrkseek/server-face/dist/index.js +1 -0
  260. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  261. package/node_modules/@xrkseek/server-face/dist/llm-resolve.d.ts.map +1 -1
  262. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js +5 -3
  263. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
  264. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +2 -2
  265. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
  266. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +7 -3
  267. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
  268. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -0
  269. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
  270. package/node_modules/@xrkseek/server-face/dist/projections/index.js +2 -0
  271. package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
  272. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
  273. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +12 -0
  274. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
  275. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +45 -0
  276. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
  277. package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
  278. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts +40 -0
  279. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts.map +1 -0
  280. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js +103 -0
  281. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js.map +1 -0
  282. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts +9 -0
  283. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts.map +1 -0
  284. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js +24 -0
  285. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js.map +1 -0
  286. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts +37 -0
  287. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -0
  288. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +109 -0
  289. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -0
  290. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts +35 -0
  291. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -0
  292. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +151 -0
  293. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -0
  294. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts +13 -0
  295. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts.map +1 -0
  296. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js +81 -0
  297. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js.map +1 -0
  298. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +5 -1
  299. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  300. package/node_modules/@xrkseek/server-face/dist/runtime.js +25 -0
  301. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  302. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +15 -0
  303. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  304. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  305. package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
  306. package/node_modules/@xrkseek/server-face/dist/slash.js +19 -0
  307. package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
  308. package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
  309. package/node_modules/@xrkseek/server-face/dist/wire/paths.js +3 -0
  310. package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
  311. package/node_modules/@xrkseek/server-face/package.json +3 -0
  312. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts +4 -0
  313. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts.map +1 -0
  314. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js +10 -0
  315. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js.map +1 -0
  316. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts +11 -0
  317. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts.map +1 -0
  318. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js +29 -0
  319. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js.map +1 -0
  320. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts +15 -0
  321. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts.map +1 -0
  322. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js +34 -0
  323. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js.map +1 -0
  324. package/node_modules/@xrkseek/server-host/dist/index.d.ts +6 -1
  325. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  326. package/node_modules/@xrkseek/server-host/dist/index.js +126 -19
  327. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  328. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +17 -0
  329. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -0
  330. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +201 -0
  331. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -0
  332. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts +10 -0
  333. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts.map +1 -0
  334. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js +31 -0
  335. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js.map +1 -0
  336. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts +7 -0
  337. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts.map +1 -0
  338. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js +40 -0
  339. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js.map +1 -0
  340. package/node_modules/@xrkseek/server-host/package.json +8 -1
  341. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +12 -0
  342. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
  343. package/node_modules/@xrkseek/server-http/dist/boot-inject.js +54 -0
  344. package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
  345. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts +6 -0
  346. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts.map +1 -0
  347. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js +141 -0
  348. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js.map +1 -0
  349. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts +3 -0
  350. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -0
  351. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +445 -0
  352. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -0
  353. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts +7 -0
  354. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts.map +1 -0
  355. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js +15 -0
  356. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js.map +1 -0
  357. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +57 -0
  358. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -0
  359. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js +2 -0
  360. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js.map +1 -0
  361. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts +10 -0
  362. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts.map +1 -0
  363. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js +275 -0
  364. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js.map +1 -0
  365. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts +10 -0
  366. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -0
  367. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +41 -0
  368. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -0
  369. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +17 -0
  370. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -0
  371. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +184 -0
  372. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -0
  373. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts +5 -0
  374. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts.map +1 -0
  375. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js +5 -0
  376. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js.map +1 -0
  377. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts +21 -0
  378. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts.map +1 -0
  379. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js +122 -0
  380. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js.map +1 -0
  381. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts +10 -0
  382. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -0
  383. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +58 -0
  384. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -0
  385. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +7 -0
  386. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -0
  387. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +59 -0
  388. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -0
  389. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts +25 -0
  390. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts.map +1 -0
  391. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js +154 -0
  392. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js.map +1 -0
  393. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts +2 -0
  394. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts.map +1 -0
  395. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js +77 -0
  396. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js.map +1 -0
  397. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts +16 -0
  398. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -0
  399. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +121 -0
  400. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -0
  401. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts +12 -0
  402. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts.map +1 -0
  403. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js +48 -0
  404. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js.map +1 -0
  405. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts +18 -0
  406. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts.map +1 -0
  407. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js +62 -0
  408. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js.map +1 -0
  409. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts +9 -0
  410. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts.map +1 -0
  411. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js +42 -0
  412. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js.map +1 -0
  413. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts +6 -0
  414. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -0
  415. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +88 -0
  416. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -0
  417. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts +9 -0
  418. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts.map +1 -0
  419. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js +67 -0
  420. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js.map +1 -0
  421. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +18 -0
  422. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -0
  423. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +198 -0
  424. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -0
  425. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts +27 -0
  426. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts.map +1 -0
  427. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js +71 -0
  428. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js.map +1 -0
  429. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts +8 -0
  430. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts.map +1 -0
  431. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js +12 -0
  432. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js.map +1 -0
  433. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts +2 -0
  434. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts.map +1 -0
  435. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js +6 -0
  436. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js.map +1 -0
  437. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts +22 -0
  438. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -0
  439. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +219 -0
  440. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -0
  441. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts +4 -0
  442. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts.map +1 -0
  443. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js +53 -0
  444. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js.map +1 -0
  445. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +11 -0
  446. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -0
  447. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +61 -0
  448. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -0
  449. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +7 -0
  450. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -0
  451. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +150 -0
  452. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -0
  453. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts +10 -0
  454. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -0
  455. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +239 -0
  456. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -0
  457. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts +22 -0
  458. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts.map +1 -0
  459. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js +83 -0
  460. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js.map +1 -0
  461. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts +18 -0
  462. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts.map +1 -0
  463. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js +191 -0
  464. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js.map +1 -0
  465. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +21 -0
  466. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -0
  467. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +105 -0
  468. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -0
  469. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts +7 -0
  470. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -0
  471. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +57 -0
  472. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -0
  473. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts +6 -0
  474. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts.map +1 -0
  475. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js +74 -0
  476. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js.map +1 -0
  477. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts +14 -0
  478. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts.map +1 -0
  479. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js +17 -0
  480. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js.map +1 -0
  481. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts +76 -0
  482. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts.map +1 -0
  483. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js +551 -0
  484. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js.map +1 -0
  485. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts +7 -0
  486. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts.map +1 -0
  487. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js +136 -0
  488. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js.map +1 -0
  489. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +21 -0
  490. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -0
  491. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +281 -0
  492. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -0
  493. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts +16 -0
  494. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts.map +1 -0
  495. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js +163 -0
  496. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js.map +1 -0
  497. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +5 -0
  498. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -0
  499. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +125 -0
  500. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -0
  501. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts +17 -0
  502. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts.map +1 -0
  503. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js +188 -0
  504. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js.map +1 -0
  505. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts +9 -0
  506. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts.map +1 -0
  507. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js +55 -0
  508. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js.map +1 -0
  509. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +37 -0
  510. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -0
  511. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +36 -0
  512. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -0
  513. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts +5 -0
  514. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts.map +1 -0
  515. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js +28 -0
  516. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js.map +1 -0
  517. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts +7 -0
  518. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts.map +1 -0
  519. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js +108 -0
  520. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js.map +1 -0
  521. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +7 -0
  522. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -0
  523. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +218 -0
  524. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -0
  525. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts +10 -0
  526. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts.map +1 -0
  527. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js +81 -0
  528. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js.map +1 -0
  529. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts +10 -0
  530. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts.map +1 -0
  531. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js +15 -0
  532. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js.map +1 -0
  533. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts +8 -0
  534. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts.map +1 -0
  535. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js +83 -0
  536. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js.map +1 -0
  537. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts +9 -0
  538. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts.map +1 -0
  539. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js +144 -0
  540. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js.map +1 -0
  541. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +17 -0
  542. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -0
  543. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +52 -0
  544. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -0
  545. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +11 -0
  546. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -0
  547. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +221 -0
  548. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -0
  549. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +22 -0
  550. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -0
  551. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +155 -0
  552. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -0
  553. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +14 -0
  554. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -0
  555. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +213 -0
  556. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -0
  557. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts +14 -0
  558. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts.map +1 -0
  559. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js +200 -0
  560. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js.map +1 -0
  561. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts +11 -0
  562. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts.map +1 -0
  563. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +200 -0
  564. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -0
  565. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts +6 -0
  566. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts.map +1 -0
  567. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js +47 -0
  568. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js.map +1 -0
  569. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts +15 -0
  570. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts.map +1 -0
  571. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js +132 -0
  572. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js.map +1 -0
  573. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts +13 -0
  574. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts.map +1 -0
  575. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js +336 -0
  576. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js.map +1 -0
  577. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts +10 -0
  578. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts.map +1 -0
  579. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js +86 -0
  580. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js.map +1 -0
  581. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts +8 -0
  582. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts.map +1 -0
  583. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js +34 -0
  584. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js.map +1 -0
  585. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts +4 -0
  586. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -0
  587. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +170 -0
  588. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -0
  589. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts +33 -0
  590. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -0
  591. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +108 -0
  592. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -0
  593. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts +10 -0
  594. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -0
  595. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +38 -0
  596. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -0
  597. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts +10 -0
  598. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts.map +1 -0
  599. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js +358 -0
  600. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js.map +1 -0
  601. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts +25 -0
  602. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts.map +1 -0
  603. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js +78 -0
  604. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js.map +1 -0
  605. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts +9 -0
  606. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts.map +1 -0
  607. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js +56 -0
  608. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js.map +1 -0
  609. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +11 -0
  610. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -0
  611. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +106 -0
  612. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -0
  613. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts +18 -0
  614. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts.map +1 -0
  615. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js +240 -0
  616. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js.map +1 -0
  617. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts +5 -0
  618. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts.map +1 -0
  619. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js +78 -0
  620. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js.map +1 -0
  621. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts +42 -0
  622. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts.map +1 -0
  623. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js +117 -0
  624. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js.map +1 -0
  625. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts +11 -0
  626. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -0
  627. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +111 -0
  628. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -0
  629. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +16 -0
  630. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -0
  631. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +455 -0
  632. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -0
  633. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts +26 -0
  634. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts.map +1 -0
  635. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js +22 -0
  636. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js.map +1 -0
  637. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts +12 -0
  638. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts.map +1 -0
  639. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js +123 -0
  640. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js.map +1 -0
  641. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts +16 -0
  642. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts.map +1 -0
  643. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js +99 -0
  644. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js.map +1 -0
  645. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts +106 -0
  646. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts.map +1 -0
  647. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js +6 -0
  648. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js.map +1 -0
  649. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts +14 -0
  650. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts.map +1 -0
  651. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js +21 -0
  652. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js.map +1 -0
  653. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts +9 -0
  654. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts.map +1 -0
  655. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js +22 -0
  656. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js.map +1 -0
  657. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +22 -0
  658. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -0
  659. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +13 -0
  660. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -0
  661. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts +21 -0
  662. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts.map +1 -0
  663. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js +190 -0
  664. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js.map +1 -0
  665. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts +10 -0
  666. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts.map +1 -0
  667. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js +438 -0
  668. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js.map +1 -0
  669. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts +8 -0
  670. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts.map +1 -0
  671. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js +69 -0
  672. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js.map +1 -0
  673. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts +6 -0
  674. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts.map +1 -0
  675. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js +62 -0
  676. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js.map +1 -0
  677. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts +5 -0
  678. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts.map +1 -0
  679. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js +17 -0
  680. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js.map +1 -0
  681. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts +7 -0
  682. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts.map +1 -0
  683. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js +67 -0
  684. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js.map +1 -0
  685. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts +12 -0
  686. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts.map +1 -0
  687. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js +198 -0
  688. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js.map +1 -0
  689. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts +15 -0
  690. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts.map +1 -0
  691. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js +111 -0
  692. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js.map +1 -0
  693. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +9 -0
  694. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -0
  695. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +161 -0
  696. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -0
  697. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts +6 -0
  698. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts.map +1 -0
  699. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js +31 -0
  700. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js.map +1 -0
  701. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +9 -0
  702. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -0
  703. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +103 -0
  704. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -0
  705. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts +49 -0
  706. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts.map +1 -0
  707. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js +190 -0
  708. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js.map +1 -0
  709. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts +9 -0
  710. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts.map +1 -0
  711. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js +44 -0
  712. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js.map +1 -0
  713. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts +6 -0
  714. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts.map +1 -0
  715. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js +6 -0
  716. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js.map +1 -0
  717. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +14 -0
  718. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -0
  719. package/node_modules/@xrkseek/server-http/dist/host-wire.js +15 -0
  720. package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -0
  721. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts +12 -0
  722. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts.map +1 -0
  723. package/node_modules/@xrkseek/server-http/dist/http-json.js +40 -0
  724. package/node_modules/@xrkseek/server-http/dist/http-json.js.map +1 -0
  725. package/node_modules/@xrkseek/server-http/dist/index.d.ts +12 -1
  726. package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
  727. package/node_modules/@xrkseek/server-http/dist/index.js +12 -1
  728. package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
  729. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts +19 -0
  730. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts.map +1 -0
  731. package/node_modules/@xrkseek/server-http/dist/public-routes.js +34 -0
  732. package/node_modules/@xrkseek/server-http/dist/public-routes.js.map +1 -0
  733. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +13 -0
  734. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -0
  735. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +58 -0
  736. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -0
  737. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +16 -0
  738. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -0
  739. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +49 -0
  740. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -0
  741. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts +35 -0
  742. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -0
  743. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +103 -0
  744. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -0
  745. package/node_modules/@xrkseek/server-http/package.json +2 -1
  746. package/node_modules/@xrkseek/server-loader/dist/host.d.ts +6 -0
  747. package/node_modules/@xrkseek/server-loader/dist/host.d.ts.map +1 -0
  748. package/node_modules/@xrkseek/server-loader/dist/host.js +11 -0
  749. package/node_modules/@xrkseek/server-loader/dist/host.js.map +1 -0
  750. package/node_modules/@xrkseek/server-loader/dist/index.d.ts +2 -1
  751. package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
  752. package/node_modules/@xrkseek/server-loader/dist/index.js +1 -0
  753. package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
  754. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -0
  755. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
  756. package/node_modules/@xrkseek/server-loader/dist/kinds.js +5 -0
  757. package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
  758. package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
  759. package/node_modules/@xrkseek/server-loader/dist/load.js +5 -0
  760. package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
  761. package/node_modules/@xrkseek/server-loader/dist/types.d.ts +40 -0
  762. package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
  763. package/node_modules/@xrkseek/xrk-file-reference/README.i18n.yaml +6 -0
  764. package/node_modules/@xrkseek/xrk-file-reference/README.md +22 -0
  765. package/node_modules/@xrkseek/xrk-file-reference/README.zh.md +22 -0
  766. package/node_modules/@xrkseek/xrk-file-reference/package.json +68 -0
  767. package/node_modules/@xrkseek/xrk-file-reference-local/README.i18n.yaml +6 -0
  768. package/node_modules/@xrkseek/xrk-file-reference-local/README.md +45 -0
  769. package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +45 -0
  770. package/node_modules/@xrkseek/xrk-file-reference-local/package.json +56 -0
  771. package/node_modules/@xrkseek/xrk-session-reference/README.i18n.yaml +6 -0
  772. package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -0
  773. package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -0
  774. package/node_modules/@xrkseek/xrk-session-reference/package.json +79 -0
  775. package/node_modules/detect-libc/LICENSE +201 -0
  776. package/node_modules/detect-libc/README.md +163 -0
  777. package/node_modules/detect-libc/index.d.ts +14 -0
  778. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  779. package/node_modules/detect-libc/lib/elf.js +39 -0
  780. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  781. package/node_modules/detect-libc/lib/process.js +24 -0
  782. package/node_modules/detect-libc/package.json +44 -0
  783. package/node_modules/semver/LICENSE +15 -0
  784. package/node_modules/semver/README.md +680 -0
  785. package/node_modules/semver/bin/semver.js +195 -0
  786. package/node_modules/semver/classes/comparator.js +143 -0
  787. package/node_modules/semver/classes/index.js +7 -0
  788. package/node_modules/semver/classes/range.js +577 -0
  789. package/node_modules/semver/classes/semver.js +350 -0
  790. package/node_modules/semver/functions/clean.js +8 -0
  791. package/node_modules/semver/functions/cmp.js +54 -0
  792. package/node_modules/semver/functions/coerce.js +62 -0
  793. package/node_modules/semver/functions/compare-build.js +9 -0
  794. package/node_modules/semver/functions/compare-loose.js +5 -0
  795. package/node_modules/semver/functions/compare.js +7 -0
  796. package/node_modules/semver/functions/diff.js +60 -0
  797. package/node_modules/semver/functions/eq.js +5 -0
  798. package/node_modules/semver/functions/gt.js +5 -0
  799. package/node_modules/semver/functions/gte.js +5 -0
  800. package/node_modules/semver/functions/inc.js +21 -0
  801. package/node_modules/semver/functions/lt.js +5 -0
  802. package/node_modules/semver/functions/lte.js +5 -0
  803. package/node_modules/semver/functions/major.js +5 -0
  804. package/node_modules/semver/functions/minor.js +5 -0
  805. package/node_modules/semver/functions/neq.js +5 -0
  806. package/node_modules/semver/functions/parse.js +18 -0
  807. package/node_modules/semver/functions/patch.js +5 -0
  808. package/node_modules/semver/functions/prerelease.js +8 -0
  809. package/node_modules/semver/functions/rcompare.js +5 -0
  810. package/node_modules/semver/functions/rsort.js +5 -0
  811. package/node_modules/semver/functions/satisfies.js +12 -0
  812. package/node_modules/semver/functions/sort.js +5 -0
  813. package/node_modules/semver/functions/truncate.js +48 -0
  814. package/node_modules/semver/functions/valid.js +8 -0
  815. package/node_modules/semver/index.js +93 -0
  816. package/node_modules/semver/internal/constants.js +37 -0
  817. package/node_modules/semver/internal/debug.js +11 -0
  818. package/node_modules/semver/internal/identifiers.js +29 -0
  819. package/node_modules/semver/internal/lrucache.js +42 -0
  820. package/node_modules/semver/internal/parse-options.js +17 -0
  821. package/node_modules/semver/internal/re.js +223 -0
  822. package/node_modules/semver/package.json +78 -0
  823. package/node_modules/semver/preload.js +4 -0
  824. package/node_modules/semver/range.bnf +17 -0
  825. package/node_modules/semver/ranges/gtr.js +6 -0
  826. package/node_modules/semver/ranges/intersects.js +9 -0
  827. package/node_modules/semver/ranges/ltr.js +6 -0
  828. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  829. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  830. package/node_modules/semver/ranges/min-version.js +63 -0
  831. package/node_modules/semver/ranges/outside.js +82 -0
  832. package/node_modules/semver/ranges/simplify.js +49 -0
  833. package/node_modules/semver/ranges/subset.js +249 -0
  834. package/node_modules/semver/ranges/to-comparators.js +10 -0
  835. package/node_modules/semver/ranges/valid.js +13 -0
  836. package/node_modules/sharp/LICENSE +191 -0
  837. package/node_modules/sharp/README.md +112 -0
  838. package/node_modules/sharp/dist/channel.cjs +177 -0
  839. package/node_modules/sharp/dist/channel.mjs +177 -0
  840. package/node_modules/sharp/dist/colour.cjs +199 -0
  841. package/node_modules/sharp/dist/colour.mjs +199 -0
  842. package/node_modules/sharp/dist/composite.cjs +213 -0
  843. package/node_modules/sharp/dist/composite.mjs +213 -0
  844. package/node_modules/sharp/dist/constructor.cjs +511 -0
  845. package/node_modules/sharp/dist/constructor.mjs +511 -0
  846. package/node_modules/sharp/dist/index.cjs +25 -0
  847. package/node_modules/sharp/dist/index.d.cts +1999 -0
  848. package/node_modules/sharp/dist/index.d.mts +2046 -0
  849. package/node_modules/sharp/dist/index.mjs +25 -0
  850. package/node_modules/sharp/dist/input.cjs +814 -0
  851. package/node_modules/sharp/dist/input.mjs +814 -0
  852. package/node_modules/sharp/dist/is.cjs +143 -0
  853. package/node_modules/sharp/dist/is.mjs +143 -0
  854. package/node_modules/sharp/dist/libvips.cjs +212 -0
  855. package/node_modules/sharp/dist/libvips.mjs +212 -0
  856. package/node_modules/sharp/dist/operation.cjs +998 -0
  857. package/node_modules/sharp/dist/operation.mjs +998 -0
  858. package/node_modules/sharp/dist/output.cjs +1788 -0
  859. package/node_modules/sharp/dist/output.mjs +1788 -0
  860. package/node_modules/sharp/dist/resize.cjs +617 -0
  861. package/node_modules/sharp/dist/resize.mjs +617 -0
  862. package/node_modules/sharp/dist/sharp.cjs +174 -0
  863. package/node_modules/sharp/dist/sharp.mjs +174 -0
  864. package/node_modules/sharp/dist/utility.cjs +301 -0
  865. package/node_modules/sharp/dist/utility.mjs +301 -0
  866. package/node_modules/sharp/install/build.js +38 -0
  867. package/node_modules/sharp/lib/index.d.ts +1999 -0
  868. package/node_modules/sharp/package.json +227 -0
  869. package/node_modules/sharp/src/binding.gyp +303 -0
  870. package/node_modules/sharp/src/common.cc +1183 -0
  871. package/node_modules/sharp/src/common.h +421 -0
  872. package/node_modules/sharp/src/metadata.cc +404 -0
  873. package/node_modules/sharp/src/metadata.h +95 -0
  874. package/node_modules/sharp/src/operations.cc +516 -0
  875. package/node_modules/sharp/src/operations.h +137 -0
  876. package/node_modules/sharp/src/pipeline.cc +1948 -0
  877. package/node_modules/sharp/src/pipeline.h +422 -0
  878. package/node_modules/sharp/src/sharp.cc +43 -0
  879. package/node_modules/sharp/src/stats.cc +186 -0
  880. package/node_modules/sharp/src/stats.h +62 -0
  881. package/node_modules/sharp/src/utilities.cc +289 -0
  882. package/node_modules/sharp/src/utilities.h +22 -0
  883. package/node_modules/undici-types/LICENSE +21 -0
  884. package/node_modules/undici-types/README.md +6 -0
  885. package/node_modules/undici-types/agent.d.ts +32 -0
  886. package/node_modules/undici-types/api.d.ts +43 -0
  887. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  888. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  889. package/node_modules/undici-types/cache.d.ts +36 -0
  890. package/node_modules/undici-types/client-stats.d.ts +15 -0
  891. package/node_modules/undici-types/client.d.ts +108 -0
  892. package/node_modules/undici-types/connector.d.ts +34 -0
  893. package/node_modules/undici-types/content-type.d.ts +21 -0
  894. package/node_modules/undici-types/cookies.d.ts +30 -0
  895. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  896. package/node_modules/undici-types/dispatcher.d.ts +276 -0
  897. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  898. package/node_modules/undici-types/errors.d.ts +161 -0
  899. package/node_modules/undici-types/eventsource.d.ts +66 -0
  900. package/node_modules/undici-types/fetch.d.ts +211 -0
  901. package/node_modules/undici-types/formdata.d.ts +108 -0
  902. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  903. package/node_modules/undici-types/global-origin.d.ts +7 -0
  904. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  905. package/node_modules/undici-types/handlers.d.ts +15 -0
  906. package/node_modules/undici-types/header.d.ts +160 -0
  907. package/node_modules/undici-types/index.d.ts +88 -0
  908. package/node_modules/undici-types/interceptors.d.ts +73 -0
  909. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  910. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  911. package/node_modules/undici-types/mock-client.d.ts +27 -0
  912. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  913. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  914. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  915. package/node_modules/undici-types/package.json +55 -0
  916. package/node_modules/undici-types/patch.d.ts +29 -0
  917. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  918. package/node_modules/undici-types/pool.d.ts +41 -0
  919. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  920. package/node_modules/undici-types/readable.d.ts +68 -0
  921. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  922. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  923. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  924. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  925. package/node_modules/undici-types/util.d.ts +18 -0
  926. package/node_modules/undici-types/utility.d.ts +7 -0
  927. package/node_modules/undici-types/webidl.d.ts +341 -0
  928. package/node_modules/undici-types/websocket.d.ts +186 -0
  929. package/package.json +23 -1
  930. package/product-web/assets/{index-CSGf6Qzd.css → index-C0u-TtQQ.css} +1 -1
  931. package/product-web/assets/index-CHKZdZNt.js +112 -0
  932. package/product-web/assets/index-CHKZdZNt.js.map +1 -0
  933. package/product-web/assets/langs/{php-DY2VakOf.js → php-9bx0az3O.js} +2 -2
  934. package/product-web/assets/langs/{php-DY2VakOf.js.map → php-9bx0az3O.js.map} +1 -1
  935. package/product-web/assets/langs/{ruby-hwtoiFmS.js → ruby-HDLHRjSL.js} +2 -2
  936. package/product-web/assets/langs/{ruby-hwtoiFmS.js.map → ruby-HDLHRjSL.js.map} +1 -1
  937. package/product-web/assets/{vendor-CldRVjca.js → vendor-CeMKrCZm.js} +36 -35
  938. package/product-web/assets/vendor-CeMKrCZm.js.map +1 -0
  939. package/product-web/boot.json +20 -1
  940. package/product-web/index.html +3 -3
  941. package/product-web/plugins/@xrkseek/client-modules/client.js +83 -12
  942. package/product-web/plugins/@xrkseek/client-runtime/client.js +1 -37
  943. package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +39 -39
  944. package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
  945. package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
  946. package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +965 -561
  947. package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
  948. package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +24 -24
  949. package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
  950. package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +83 -27
  951. package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +9 -9
  952. package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
  953. package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
  954. package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +15 -15
  955. package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +2 -2
  956. package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
  957. package/product-web/plugins/@xrkseek/client-ui-reference/client.js +148 -0
  958. package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +13 -13
  959. package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +56 -56
  960. package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
  961. package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +43 -43
  962. package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +14 -14
  963. package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
  964. package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +289 -157
  965. package/product-web/plugins/@xrkseek/client-ui-theme/client.js +4 -4
  966. package/product-web/plugins/@xrkseek/client-ui-tool/client.js +33 -33
  967. package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +144 -165
  968. package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +26 -26
  969. package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +15 -15
  970. package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +54 -54
  971. package/product-web/plugins/@xrkseek/xrk-api-remotes/client.js +20 -1
  972. package/product-web/assets/index-CcF0Sxxg.js +0 -297
  973. package/product-web/assets/index-CcF0Sxxg.js.map +0 -1
  974. package/product-web/assets/vendor-CldRVjca.js.map +0 -1
@@ -0,0 +1,1183 @@
1
+ /*!
2
+ Copyright 2013 Lovell Fuller and others.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ #include <algorithm>
7
+ #include <cstdlib>
8
+ #include <map>
9
+ #include <mutex>
10
+ #include <queue>
11
+ #include <string>
12
+ #include <tuple>
13
+ #include <utility>
14
+ #include <vector>
15
+
16
+ #include <napi.h>
17
+ #include <vips/vips8>
18
+
19
+ #include "./common.h"
20
+
21
+ using vips::VImage;
22
+
23
+ namespace sharp {
24
+
25
+ // Convenience methods to access the attributes of a Napi::Object
26
+ bool HasAttr(Napi::Object obj, std::string attr) {
27
+ return obj.Has(attr);
28
+ }
29
+ std::string AttrAsStr(Napi::Object obj, std::string attr) {
30
+ return obj.Get(attr).As<Napi::String>();
31
+ }
32
+ std::string AttrAsStr(Napi::Object obj, unsigned int const attr) {
33
+ return obj.Get(attr).As<Napi::String>();
34
+ }
35
+ uint32_t AttrAsUint32(Napi::Object obj, std::string attr) {
36
+ return obj.Get(attr).As<Napi::Number>().Uint32Value();
37
+ }
38
+ int32_t AttrAsInt32(Napi::Object obj, std::string attr) {
39
+ return obj.Get(attr).As<Napi::Number>().Int32Value();
40
+ }
41
+ int32_t AttrAsInt32(Napi::Object obj, unsigned int const attr) {
42
+ return obj.Get(attr).As<Napi::Number>().Int32Value();
43
+ }
44
+ int64_t AttrAsInt64(Napi::Object obj, std::string attr) {
45
+ return obj.Get(attr).As<Napi::Number>().Int64Value();
46
+ }
47
+ double AttrAsDouble(Napi::Object obj, std::string attr) {
48
+ return obj.Get(attr).As<Napi::Number>().DoubleValue();
49
+ }
50
+ double AttrAsDouble(Napi::Object obj, unsigned int const attr) {
51
+ return obj.Get(attr).As<Napi::Number>().DoubleValue();
52
+ }
53
+ bool AttrAsBool(Napi::Object obj, std::string attr) {
54
+ return obj.Get(attr).As<Napi::Boolean>().Value();
55
+ }
56
+ std::vector<double> AttrAsVectorOfDouble(Napi::Object obj, std::string attr) {
57
+ Napi::Array napiArray = obj.Get(attr).As<Napi::Array>();
58
+ std::vector<double> vectorOfDouble(napiArray.Length());
59
+ for (unsigned int i = 0; i < napiArray.Length(); i++) {
60
+ vectorOfDouble[i] = AttrAsDouble(napiArray, i);
61
+ }
62
+ return vectorOfDouble;
63
+ }
64
+ std::vector<int32_t> AttrAsInt32Vector(Napi::Object obj, std::string attr) {
65
+ Napi::Array array = obj.Get(attr).As<Napi::Array>();
66
+ std::vector<int32_t> vector(array.Length());
67
+ for (unsigned int i = 0; i < array.Length(); i++) {
68
+ vector[i] = AttrAsInt32(array, i);
69
+ }
70
+ return vector;
71
+ }
72
+
73
+ // Create an InputDescriptor instance from a Napi::Object describing an input image
74
+ InputDescriptor* CreateInputDescriptor(Napi::Object input) {
75
+ InputDescriptor *descriptor = new InputDescriptor;
76
+ if (HasAttr(input, "file")) {
77
+ descriptor->file = AttrAsStr(input, "file");
78
+ } else if (HasAttr(input, "buffer")) {
79
+ Napi::Buffer<char> buffer = input.Get("buffer").As<Napi::Buffer<char>>();
80
+ descriptor->bufferLength = buffer.Length();
81
+ descriptor->buffer = buffer.Data();
82
+ descriptor->isBuffer = true;
83
+ }
84
+ descriptor->failOn = AttrAsEnum<VipsFailOn>(input, "failOn", VIPS_TYPE_FAIL_ON);
85
+ // Density for vector-based input
86
+ if (HasAttr(input, "density")) {
87
+ descriptor->density = AttrAsDouble(input, "density");
88
+ }
89
+ // Should we ignore any embedded ICC profile
90
+ if (HasAttr(input, "ignoreIcc")) {
91
+ descriptor->ignoreIcc = AttrAsBool(input, "ignoreIcc");
92
+ }
93
+ // Raw pixel input
94
+ if (HasAttr(input, "rawChannels")) {
95
+ descriptor->rawDepth = AttrAsEnum<VipsBandFormat>(input, "rawDepth", VIPS_TYPE_BAND_FORMAT);
96
+ descriptor->rawChannels = AttrAsUint32(input, "rawChannels");
97
+ descriptor->rawWidth = AttrAsUint32(input, "rawWidth");
98
+ descriptor->rawHeight = AttrAsUint32(input, "rawHeight");
99
+ descriptor->rawPremultiplied = AttrAsBool(input, "rawPremultiplied");
100
+ descriptor->rawPageHeight = AttrAsUint32(input, "rawPageHeight");
101
+ }
102
+ // Multi-page input (GIF, TIFF, PDF)
103
+ if (HasAttr(input, "pages")) {
104
+ descriptor->pages = AttrAsInt32(input, "pages");
105
+ }
106
+ if (HasAttr(input, "page")) {
107
+ descriptor->page = AttrAsUint32(input, "page");
108
+ }
109
+ // SVG
110
+ if (HasAttr(input, "svgStylesheet")) {
111
+ descriptor->svgStylesheet = AttrAsStr(input, "svgStylesheet");
112
+ }
113
+ if (HasAttr(input, "svgHighBitdepth")) {
114
+ descriptor->svgHighBitdepth = AttrAsBool(input, "svgHighBitdepth");
115
+ }
116
+ // Multi-level input (OpenSlide)
117
+ if (HasAttr(input, "openSlideLevel")) {
118
+ descriptor->openSlideLevel = AttrAsUint32(input, "openSlideLevel");
119
+ }
120
+ // subIFD (OME-TIFF)
121
+ if (HasAttr(input, "subifd")) {
122
+ descriptor->tiffSubifd = AttrAsInt32(input, "tiffSubifd");
123
+ }
124
+ // // PDF background color
125
+ if (HasAttr(input, "pdfBackground")) {
126
+ descriptor->pdfBackground = AttrAsVectorOfDouble(input, "pdfBackground");
127
+ }
128
+ // Use JPEG 2000 oneshot mode?
129
+ if (HasAttr(input, "jp2Oneshot")) {
130
+ descriptor->jp2Oneshot = AttrAsBool(input, "jp2Oneshot");
131
+ }
132
+ // Create new image
133
+ if (HasAttr(input, "createChannels")) {
134
+ descriptor->createChannels = AttrAsUint32(input, "createChannels");
135
+ descriptor->createWidth = AttrAsUint32(input, "createWidth");
136
+ descriptor->createHeight = AttrAsUint32(input, "createHeight");
137
+ descriptor->createPageHeight = AttrAsUint32(input, "createPageHeight");
138
+ if (HasAttr(input, "createNoiseType")) {
139
+ descriptor->createNoiseType = AttrAsStr(input, "createNoiseType");
140
+ descriptor->createNoiseMean = AttrAsDouble(input, "createNoiseMean");
141
+ descriptor->createNoiseSigma = AttrAsDouble(input, "createNoiseSigma");
142
+ } else {
143
+ descriptor->createBackground = AttrAsVectorOfDouble(input, "createBackground");
144
+ }
145
+ }
146
+ // Create new image with text
147
+ if (HasAttr(input, "textValue")) {
148
+ descriptor->textValue = AttrAsStr(input, "textValue");
149
+ if (HasAttr(input, "textFont")) {
150
+ descriptor->textFont = AttrAsStr(input, "textFont");
151
+ }
152
+ if (HasAttr(input, "textFontfile")) {
153
+ descriptor->textFontfile = AttrAsStr(input, "textFontfile");
154
+ }
155
+ if (HasAttr(input, "textWidth")) {
156
+ descriptor->textWidth = AttrAsUint32(input, "textWidth");
157
+ }
158
+ if (HasAttr(input, "textHeight")) {
159
+ descriptor->textHeight = AttrAsUint32(input, "textHeight");
160
+ }
161
+ if (HasAttr(input, "textAlign")) {
162
+ descriptor->textAlign = AttrAsEnum<VipsAlign>(input, "textAlign", VIPS_TYPE_ALIGN);
163
+ }
164
+ if (HasAttr(input, "textJustify")) {
165
+ descriptor->textJustify = AttrAsBool(input, "textJustify");
166
+ }
167
+ if (HasAttr(input, "textDpi")) {
168
+ descriptor->textDpi = AttrAsUint32(input, "textDpi");
169
+ }
170
+ if (HasAttr(input, "textRgba")) {
171
+ descriptor->textRgba = AttrAsBool(input, "textRgba");
172
+ }
173
+ if (HasAttr(input, "textSpacing")) {
174
+ descriptor->textSpacing = AttrAsUint32(input, "textSpacing");
175
+ }
176
+ if (HasAttr(input, "textWrap")) {
177
+ descriptor->textWrap = AttrAsEnum<VipsTextWrap>(input, "textWrap", VIPS_TYPE_TEXT_WRAP);
178
+ }
179
+ }
180
+ // Join images together
181
+ if (HasAttr(input, "joinAnimated")) {
182
+ descriptor->joinAnimated = AttrAsBool(input, "joinAnimated");
183
+ }
184
+ if (HasAttr(input, "joinAcross")) {
185
+ descriptor->joinAcross = AttrAsUint32(input, "joinAcross");
186
+ }
187
+ if (HasAttr(input, "joinShim")) {
188
+ descriptor->joinShim = AttrAsUint32(input, "joinShim");
189
+ }
190
+ if (HasAttr(input, "joinBackground")) {
191
+ descriptor->joinBackground = AttrAsVectorOfDouble(input, "joinBackground");
192
+ }
193
+ if (HasAttr(input, "joinHalign")) {
194
+ descriptor->joinHalign = AttrAsEnum<VipsAlign>(input, "joinHalign", VIPS_TYPE_ALIGN);
195
+ }
196
+ if (HasAttr(input, "joinValign")) {
197
+ descriptor->joinValign = AttrAsEnum<VipsAlign>(input, "joinValign", VIPS_TYPE_ALIGN);
198
+ }
199
+ descriptor->limitInputPixels = static_cast<uint64_t>(AttrAsInt64(input, "limitInputPixels"));
200
+ descriptor->limitInputChannels = static_cast<uint64_t>(AttrAsInt64(input, "limitInputChannels"));
201
+ if (HasAttr(input, "access")) {
202
+ descriptor->access = AttrAsBool(input, "sequentialRead") ? VIPS_ACCESS_SEQUENTIAL : VIPS_ACCESS_RANDOM;
203
+ }
204
+ // Remove safety features and allow unlimited input
205
+ descriptor->unlimited = AttrAsBool(input, "unlimited");
206
+ // Use the EXIF orientation to auto orient the image
207
+ descriptor->autoOrient = AttrAsBool(input, "autoOrient");
208
+ return descriptor;
209
+ }
210
+
211
+ // How many tasks are in the queue?
212
+ std::atomic<int> counterQueue{0};
213
+
214
+ // How many tasks are being processed?
215
+ std::atomic<int> counterProcess{0};
216
+
217
+ // Filename extension checkers
218
+ static bool EndsWith(std::string const &str, std::string const &end) {
219
+ return str.length() >= end.length() && 0 == str.compare(str.length() - end.length(), end.length(), end);
220
+ }
221
+ bool IsJpeg(std::string const &str) {
222
+ return EndsWith(str, ".jpg") || EndsWith(str, ".jpeg") || EndsWith(str, ".JPG") || EndsWith(str, ".JPEG");
223
+ }
224
+ bool IsPng(std::string const &str) {
225
+ return EndsWith(str, ".png") || EndsWith(str, ".PNG");
226
+ }
227
+ bool IsWebp(std::string const &str) {
228
+ return EndsWith(str, ".webp") || EndsWith(str, ".WEBP");
229
+ }
230
+ bool IsGif(std::string const &str) {
231
+ return EndsWith(str, ".gif") || EndsWith(str, ".GIF");
232
+ }
233
+ bool IsJp2(std::string const &str) {
234
+ return EndsWith(str, ".jp2") || EndsWith(str, ".jpx") || EndsWith(str, ".j2k") || EndsWith(str, ".j2c")
235
+ || EndsWith(str, ".JP2") || EndsWith(str, ".JPX") || EndsWith(str, ".J2K") || EndsWith(str, ".J2C");
236
+ }
237
+ bool IsTiff(std::string const &str) {
238
+ return EndsWith(str, ".tif") || EndsWith(str, ".tiff") || EndsWith(str, ".TIF") || EndsWith(str, ".TIFF");
239
+ }
240
+ bool IsHeic(std::string const &str) {
241
+ return EndsWith(str, ".heic") || EndsWith(str, ".HEIC");
242
+ }
243
+ bool IsHeif(std::string const &str) {
244
+ return EndsWith(str, ".heif") || EndsWith(str, ".HEIF") || IsHeic(str) || IsAvif(str);
245
+ }
246
+ bool IsAvif(std::string const &str) {
247
+ return EndsWith(str, ".avif") || EndsWith(str, ".AVIF");
248
+ }
249
+ bool IsJxl(std::string const &str) {
250
+ return EndsWith(str, ".jxl") || EndsWith(str, ".JXL");
251
+ }
252
+ bool IsDz(std::string const &str) {
253
+ return EndsWith(str, ".dzi") || EndsWith(str, ".DZI");
254
+ }
255
+ bool IsDzZip(std::string const &str) {
256
+ return EndsWith(str, ".zip") || EndsWith(str, ".ZIP") || EndsWith(str, ".szi") || EndsWith(str, ".SZI");
257
+ }
258
+ bool IsV(std::string const &str) {
259
+ return EndsWith(str, ".v") || EndsWith(str, ".V") || EndsWith(str, ".vips") || EndsWith(str, ".VIPS");
260
+ }
261
+
262
+ /*
263
+ Trim space from end of string.
264
+ */
265
+ std::string TrimEnd(std::string const &str) {
266
+ return str.substr(0, str.find_last_not_of(" \n\r\f") + 1);
267
+ }
268
+
269
+ /*
270
+ Provide a string identifier for the given image type.
271
+ */
272
+ std::string ImageTypeId(ImageType const imageType) {
273
+ std::string id;
274
+ switch (imageType) {
275
+ case ImageType::JPEG: id = "jpeg"; break;
276
+ case ImageType::PNG: id = "png"; break;
277
+ case ImageType::WEBP: id = "webp"; break;
278
+ case ImageType::TIFF: id = "tiff"; break;
279
+ case ImageType::GIF: id = "gif"; break;
280
+ case ImageType::JP2: id = "jp2"; break;
281
+ case ImageType::SVG: id = "svg"; break;
282
+ case ImageType::HEIF: id = "heif"; break;
283
+ case ImageType::PDF: id = "pdf"; break;
284
+ case ImageType::MAGICK: id = "magick"; break;
285
+ case ImageType::OPENSLIDE: id = "openslide"; break;
286
+ case ImageType::PPM: id = "ppm"; break;
287
+ case ImageType::FITS: id = "fits"; break;
288
+ case ImageType::EXR: id = "exr"; break;
289
+ case ImageType::JXL: id = "jxl"; break;
290
+ case ImageType::RAD: id = "rad"; break;
291
+ case ImageType::DCRAW: id = "dcraw"; break;
292
+ case ImageType::UHDR: id = "uhdr"; break;
293
+ case ImageType::VIPS: id = "vips"; break;
294
+ case ImageType::RAW: id = "raw"; break;
295
+ case ImageType::UNKNOWN: id = "unknown"; break;
296
+ case ImageType::MISSING: id = "missing"; break;
297
+ }
298
+ return id;
299
+ }
300
+
301
+ /**
302
+ * Regenerate this table with something like:
303
+ *
304
+ * $ vips -l foreign | grep -i load | awk '{ print $2, $1; }'
305
+ *
306
+ * Plus a bit of editing.
307
+ */
308
+ std::map<std::string, ImageType> loaderToType = {
309
+ { "VipsForeignLoadJpegFile", ImageType::JPEG },
310
+ { "VipsForeignLoadJpegBuffer", ImageType::JPEG },
311
+ { "VipsForeignLoadPngFile", ImageType::PNG },
312
+ { "VipsForeignLoadPngBuffer", ImageType::PNG },
313
+ { "VipsForeignLoadWebpFile", ImageType::WEBP },
314
+ { "VipsForeignLoadWebpBuffer", ImageType::WEBP },
315
+ { "VipsForeignLoadTiffFile", ImageType::TIFF },
316
+ { "VipsForeignLoadTiffBuffer", ImageType::TIFF },
317
+ { "VipsForeignLoadGifFile", ImageType::GIF },
318
+ { "VipsForeignLoadGifBuffer", ImageType::GIF },
319
+ { "VipsForeignLoadNsgifFile", ImageType::GIF },
320
+ { "VipsForeignLoadNsgifBuffer", ImageType::GIF },
321
+ { "VipsForeignLoadJp2kBuffer", ImageType::JP2 },
322
+ { "VipsForeignLoadJp2kFile", ImageType::JP2 },
323
+ { "VipsForeignLoadSvgFile", ImageType::SVG },
324
+ { "VipsForeignLoadSvgBuffer", ImageType::SVG },
325
+ { "VipsForeignLoadHeifFile", ImageType::HEIF },
326
+ { "VipsForeignLoadHeifBuffer", ImageType::HEIF },
327
+ { "VipsForeignLoadPdfFile", ImageType::PDF },
328
+ { "VipsForeignLoadPdfBuffer", ImageType::PDF },
329
+ { "VipsForeignLoadMagickFile", ImageType::MAGICK },
330
+ { "VipsForeignLoadMagickBuffer", ImageType::MAGICK },
331
+ { "VipsForeignLoadMagick7File", ImageType::MAGICK },
332
+ { "VipsForeignLoadMagick7Buffer", ImageType::MAGICK },
333
+ { "VipsForeignLoadOpenslideFile", ImageType::OPENSLIDE },
334
+ { "VipsForeignLoadPpmFile", ImageType::PPM },
335
+ { "VipsForeignLoadFitsFile", ImageType::FITS },
336
+ { "VipsForeignLoadOpenexr", ImageType::EXR },
337
+ { "VipsForeignLoadJxlFile", ImageType::JXL },
338
+ { "VipsForeignLoadJxlBuffer", ImageType::JXL },
339
+ { "VipsForeignLoadRadFile", ImageType::RAD },
340
+ { "VipsForeignLoadRadBuffer", ImageType::RAD },
341
+ { "VipsForeignLoadDcRawFile", ImageType::DCRAW },
342
+ { "VipsForeignLoadDcRawBuffer", ImageType::DCRAW },
343
+ { "VipsForeignLoadUhdr", ImageType::UHDR },
344
+ { "VipsForeignLoadUhdrFile", ImageType::UHDR },
345
+ { "VipsForeignLoadUhdrBuffer", ImageType::UHDR },
346
+ { "VipsForeignLoadVips", ImageType::VIPS },
347
+ { "VipsForeignLoadVipsFile", ImageType::VIPS },
348
+ { "VipsForeignLoadRaw", ImageType::RAW }
349
+ };
350
+
351
+ /*
352
+ Determine image format of a buffer.
353
+ */
354
+ ImageType DetermineImageType(void *buffer, size_t const length) {
355
+ ImageType imageType = ImageType::UNKNOWN;
356
+ char const *load = vips_foreign_find_load_buffer(buffer, length);
357
+ if (load != nullptr) {
358
+ auto it = loaderToType.find(load);
359
+ if (it != loaderToType.end()) {
360
+ imageType = it->second;
361
+ }
362
+ }
363
+ if (imageType == ImageType::UHDR) {
364
+ imageType = ImageType::JPEG;
365
+ }
366
+ return imageType;
367
+ }
368
+
369
+ /*
370
+ Determine image format, reads the first few bytes of the file
371
+ */
372
+ ImageType DetermineImageType(char const *file) {
373
+ ImageType imageType = ImageType::UNKNOWN;
374
+ char const *load = vips_foreign_find_load(file);
375
+ if (load != nullptr) {
376
+ auto it = loaderToType.find(load);
377
+ if (it != loaderToType.end()) {
378
+ imageType = it->second;
379
+ }
380
+ } else {
381
+ if (EndsWith(vips::VError().what(), " does not exist\n")) {
382
+ imageType = ImageType::MISSING;
383
+ }
384
+ }
385
+ if (imageType == ImageType::UHDR) {
386
+ imageType = ImageType::JPEG;
387
+ }
388
+ return imageType;
389
+ }
390
+
391
+ /*
392
+ Does this image type support multiple pages?
393
+ */
394
+ bool ImageTypeSupportsPage(ImageType imageType) {
395
+ return
396
+ imageType == ImageType::WEBP ||
397
+ imageType == ImageType::MAGICK ||
398
+ imageType == ImageType::GIF ||
399
+ imageType == ImageType::JP2 ||
400
+ imageType == ImageType::TIFF ||
401
+ imageType == ImageType::HEIF ||
402
+ imageType == ImageType::PDF;
403
+ }
404
+
405
+ /*
406
+ Does this image type support removal of safety limits?
407
+ */
408
+ bool ImageTypeSupportsUnlimited(ImageType imageType) {
409
+ return
410
+ imageType == ImageType::JPEG ||
411
+ imageType == ImageType::PNG ||
412
+ imageType == ImageType::SVG ||
413
+ imageType == ImageType::TIFF ||
414
+ imageType == ImageType::HEIF;
415
+ }
416
+
417
+ /*
418
+ Format-specific options builder
419
+ */
420
+ vips::VOption* GetOptionsForImageType(ImageType imageType, InputDescriptor *descriptor) {
421
+ vips::VOption *option = VImage::option()
422
+ ->set("access", descriptor->access)
423
+ ->set("fail_on", descriptor->failOn);
424
+ if (descriptor->unlimited && ImageTypeSupportsUnlimited(imageType)) {
425
+ option->set("unlimited", true);
426
+ }
427
+ if (ImageTypeSupportsPage(imageType)) {
428
+ option->set("n", descriptor->pages);
429
+ option->set("page", std::max(0, descriptor->page));
430
+ }
431
+ switch (imageType) {
432
+ case ImageType::SVG:
433
+ option->set("dpi", descriptor->density)
434
+ ->set("stylesheet", descriptor->svgStylesheet.data())
435
+ ->set("high_bitdepth", descriptor->svgHighBitdepth);
436
+ break;
437
+ case ImageType::TIFF:
438
+ option->set("subifd", descriptor->tiffSubifd);
439
+ break;
440
+ case ImageType::PDF:
441
+ option->set("dpi", descriptor->density)
442
+ ->set("background", descriptor->pdfBackground);
443
+ break;
444
+ case ImageType::OPENSLIDE:
445
+ option->set("level", descriptor->openSlideLevel);
446
+ break;
447
+ case ImageType::JP2:
448
+ option->set("oneshot", descriptor->jp2Oneshot);
449
+ break;
450
+ case ImageType::MAGICK:
451
+ option->set("density", std::to_string(descriptor->density).data());
452
+ break;
453
+ default:
454
+ break;
455
+ }
456
+ return option;
457
+ }
458
+
459
+ /*
460
+ Should HEIF image be re-opened using the primary item?
461
+ */
462
+ static bool HeifPrimaryPageReopen(VImage image, InputDescriptor *descriptor) {
463
+ if (image.get_typeof(VIPS_META_N_PAGES) == G_TYPE_INT && image.get_typeof("heif-primary") == G_TYPE_INT) {
464
+ if (image.get_int(VIPS_META_N_PAGES) > 1 && descriptor->pages == 1 && descriptor->page == -1) {
465
+ int const pagePrimary = image.get_int("heif-primary");
466
+ if (pagePrimary != 0) {
467
+ descriptor->page = pagePrimary;
468
+ return true;
469
+ }
470
+ }
471
+ }
472
+ return false;
473
+ }
474
+
475
+ /*
476
+ Open an image from the given InputDescriptor (filesystem, compressed buffer, raw pixel data)
477
+ */
478
+ std::tuple<VImage, ImageType> OpenInput(InputDescriptor *descriptor) {
479
+ VImage image;
480
+ ImageType imageType;
481
+ if (descriptor->isBuffer) {
482
+ if (descriptor->rawChannels > 0) {
483
+ // Raw, uncompressed pixel data
484
+ bool const is8bit = vips_band_format_is8bit(descriptor->rawDepth);
485
+ image = VImage::new_from_memory(descriptor->buffer, descriptor->bufferLength,
486
+ descriptor->rawWidth, descriptor->rawHeight, descriptor->rawChannels, descriptor->rawDepth);
487
+ if (descriptor->rawChannels < 3) {
488
+ image.get_image()->Type = is8bit ? VIPS_INTERPRETATION_B_W : VIPS_INTERPRETATION_GREY16;
489
+ } else {
490
+ image.get_image()->Type = is8bit ? VIPS_INTERPRETATION_sRGB : VIPS_INTERPRETATION_RGB16;
491
+ }
492
+ if (descriptor->rawPageHeight > 0) {
493
+ image.set(VIPS_META_PAGE_HEIGHT, descriptor->rawPageHeight);
494
+ image.set(VIPS_META_N_PAGES, static_cast<int>(descriptor->rawHeight / descriptor->rawPageHeight));
495
+ }
496
+ if (descriptor->rawPremultiplied) {
497
+ image = image.unpremultiply();
498
+ }
499
+ imageType = ImageType::RAW;
500
+ } else {
501
+ // Compressed data
502
+ imageType = DetermineImageType(descriptor->buffer, descriptor->bufferLength);
503
+ if (imageType != ImageType::UNKNOWN) {
504
+ try {
505
+ vips::VOption *option = GetOptionsForImageType(imageType, descriptor);
506
+ image = VImage::new_from_buffer(descriptor->buffer, descriptor->bufferLength, nullptr, option);
507
+ if (imageType == ImageType::SVG || imageType == ImageType::PDF || imageType == ImageType::MAGICK) {
508
+ image = SetDensity(image, descriptor->density);
509
+ } else if (imageType == ImageType::HEIF && HeifPrimaryPageReopen(image, descriptor)) {
510
+ option = GetOptionsForImageType(imageType, descriptor);
511
+ image = VImage::new_from_buffer(descriptor->buffer, descriptor->bufferLength, nullptr, option);
512
+ }
513
+ } catch (std::runtime_error const &err) {
514
+ throw std::runtime_error(std::string("Input buffer has corrupt header: ") + err.what());
515
+ }
516
+ } else {
517
+ throw std::runtime_error("Input buffer contains unsupported image format");
518
+ }
519
+ }
520
+ } else {
521
+ int const channels = descriptor->createChannels;
522
+ if (channels > 0) {
523
+ // Create new image
524
+ if (descriptor->createNoiseType == "gaussian") {
525
+ std::vector<VImage> bands = {};
526
+ bands.reserve(channels);
527
+ for (int _band = 0; _band < channels; _band++) {
528
+ bands.push_back(VImage::gaussnoise(descriptor->createWidth, descriptor->createHeight, VImage::option()
529
+ ->set("mean", descriptor->createNoiseMean)
530
+ ->set("sigma", descriptor->createNoiseSigma)));
531
+ }
532
+ image = VImage::bandjoin(bands).copy(VImage::option()->set("interpretation",
533
+ channels < 3 ? VIPS_INTERPRETATION_B_W: VIPS_INTERPRETATION_sRGB));
534
+ } else {
535
+ std::vector<double> background = {
536
+ descriptor->createBackground[0],
537
+ descriptor->createBackground[1],
538
+ descriptor->createBackground[2]
539
+ };
540
+ if (channels == 4) {
541
+ background.push_back(descriptor->createBackground[3]);
542
+ }
543
+ image = VImage::new_matrix(descriptor->createWidth, descriptor->createHeight)
544
+ .copy(VImage::option()->set("interpretation",
545
+ channels < 3 ? VIPS_INTERPRETATION_B_W : VIPS_INTERPRETATION_sRGB))
546
+ .new_from_image(background);
547
+ }
548
+ if (descriptor->createPageHeight > 0) {
549
+ image.set(VIPS_META_PAGE_HEIGHT, descriptor->createPageHeight);
550
+ image.set(VIPS_META_N_PAGES, static_cast<int>(descriptor->createHeight / descriptor->createPageHeight));
551
+ }
552
+ image = image.cast(VIPS_FORMAT_UCHAR);
553
+ imageType = ImageType::RAW;
554
+ } else if (descriptor->textValue.length() > 0) {
555
+ // Create a new image with text
556
+ vips::VOption *textOptions = VImage::option()
557
+ ->set("align", descriptor->textAlign)
558
+ ->set("justify", descriptor->textJustify)
559
+ ->set("rgba", descriptor->textRgba)
560
+ ->set("spacing", descriptor->textSpacing)
561
+ ->set("wrap", descriptor->textWrap)
562
+ ->set("autofit_dpi", &descriptor->textAutofitDpi);
563
+ if (descriptor->textWidth > 0) {
564
+ textOptions->set("width", descriptor->textWidth);
565
+ }
566
+ // Ignore dpi if height is set
567
+ if (descriptor->textWidth > 0 && descriptor->textHeight > 0) {
568
+ textOptions->set("height", descriptor->textHeight);
569
+ } else if (descriptor->textDpi > 0) {
570
+ textOptions->set("dpi", descriptor->textDpi);
571
+ }
572
+ if (descriptor->textFont.length() > 0) {
573
+ textOptions->set("font", const_cast<char*>(descriptor->textFont.data()));
574
+ }
575
+ if (descriptor->textFontfile.length() > 0) {
576
+ textOptions->set("fontfile", const_cast<char*>(descriptor->textFontfile.data()));
577
+ }
578
+ image = VImage::text(const_cast<char *>(descriptor->textValue.data()), textOptions);
579
+ if (!descriptor->textRgba) {
580
+ image = image.copy(VImage::option()->set("interpretation", VIPS_INTERPRETATION_B_W));
581
+ }
582
+ imageType = ImageType::RAW;
583
+ } else {
584
+ // From filesystem
585
+ imageType = DetermineImageType(descriptor->file.data());
586
+ if (imageType == ImageType::MISSING) {
587
+ if (descriptor->file.find("<svg") != std::string::npos) {
588
+ throw std::runtime_error("Input file is missing, did you mean "
589
+ "sharp(Buffer.from('" + descriptor->file.substr(0, 8) + "...')?");
590
+ }
591
+ throw std::runtime_error("Input file is missing: " + descriptor->file);
592
+ }
593
+ if (imageType != ImageType::UNKNOWN) {
594
+ try {
595
+ vips::VOption *option = GetOptionsForImageType(imageType, descriptor);
596
+ image = VImage::new_from_file(descriptor->file.data(), option);
597
+ if (imageType == ImageType::SVG || imageType == ImageType::PDF || imageType == ImageType::MAGICK) {
598
+ image = SetDensity(image, descriptor->density);
599
+ } else if (imageType == ImageType::HEIF && HeifPrimaryPageReopen(image, descriptor)) {
600
+ option = GetOptionsForImageType(imageType, descriptor);
601
+ image = VImage::new_from_file(descriptor->file.data(), option);
602
+ }
603
+ } catch (std::runtime_error const &err) {
604
+ throw std::runtime_error(std::string("Input file has corrupt header: ") + err.what());
605
+ }
606
+ } else {
607
+ throw std::runtime_error("Input file contains unsupported image format");
608
+ }
609
+ }
610
+ }
611
+
612
+ // Limit input images to a given number of pixels, where pixels = width * height
613
+ if (descriptor->limitInputPixels > 0 &&
614
+ static_cast<uint64_t>(image.width()) * image.height() > descriptor->limitInputPixels) {
615
+ throw std::runtime_error("Input image exceeds pixel limit");
616
+ }
617
+ if (descriptor->limitInputChannels > 0 && static_cast<uint64_t>(image.bands()) > descriptor->limitInputChannels) {
618
+ throw std::runtime_error("Input image exceeds channel limit");
619
+ }
620
+ return std::make_tuple(image, imageType);
621
+ }
622
+
623
+ /*
624
+ Does this image have an embedded profile?
625
+ */
626
+ bool HasProfile(VImage image) {
627
+ return image.get_typeof(VIPS_META_ICC_NAME) == VIPS_TYPE_BLOB;
628
+ }
629
+
630
+ /*
631
+ Get copy of embedded profile.
632
+ */
633
+ std::pair<char*, size_t> GetProfile(VImage image) {
634
+ std::pair<char*, size_t> icc(nullptr, 0);
635
+ if (HasProfile(image)) {
636
+ size_t length;
637
+ const void *data = image.get_blob(VIPS_META_ICC_NAME, &length);
638
+ icc.first = static_cast<char*>(vips_malloc(reinterpret_cast<VipsObject*>(image.get_image()), length));
639
+ icc.second = length;
640
+ memcpy(icc.first, data, length);
641
+ }
642
+ return icc;
643
+ }
644
+
645
+ /*
646
+ Set embedded profile.
647
+ */
648
+ VImage SetProfile(VImage image, std::pair<char*, size_t> icc) {
649
+ if (icc.first != nullptr) {
650
+ image = image.copy();
651
+ image.set(VIPS_META_ICC_NAME, nullptr, icc.first, icc.second);
652
+ }
653
+ return image;
654
+ }
655
+
656
+ static void* RemoveExifCallback(VipsImage *image, char const *field, GValue *value, void *data) {
657
+ std::vector<std::string> *fieldNames = static_cast<std::vector<std::string> *>(data);
658
+ std::string fieldName(field);
659
+ if (fieldName.substr(0, 8) == ("exif-ifd")) {
660
+ fieldNames->push_back(fieldName);
661
+ }
662
+ return nullptr;
663
+ }
664
+
665
+ /*
666
+ Remove all EXIF-related image fields.
667
+ */
668
+ VImage RemoveExif(VImage image) {
669
+ std::vector<std::string> fieldNames;
670
+ vips_image_map(image.get_image(), static_cast<VipsImageMapFn>(RemoveExifCallback), &fieldNames);
671
+ for (const auto& f : fieldNames) {
672
+ image.remove(f.data());
673
+ }
674
+ return image;
675
+ }
676
+
677
+ /*
678
+ Get EXIF Orientation of image, if any.
679
+ */
680
+ int ExifOrientation(VImage image) {
681
+ int orientation = 0;
682
+ if (image.get_typeof(VIPS_META_ORIENTATION) != 0) {
683
+ orientation = image.get_int(VIPS_META_ORIENTATION);
684
+ }
685
+ return orientation;
686
+ }
687
+
688
+ /*
689
+ Set EXIF Orientation of image.
690
+ */
691
+ VImage SetExifOrientation(VImage image, int const orientation) {
692
+ VImage copy = image.copy();
693
+ copy.set(VIPS_META_ORIENTATION, orientation);
694
+ return copy;
695
+ }
696
+
697
+ /*
698
+ Remove EXIF Orientation from image.
699
+ */
700
+ VImage RemoveExifOrientation(VImage image) {
701
+ VImage copy = image.copy();
702
+ copy.remove(VIPS_META_ORIENTATION);
703
+ copy.remove("exif-ifd0-Orientation");
704
+ return copy;
705
+ }
706
+
707
+ /*
708
+ Set animation properties if necessary.
709
+ */
710
+ VImage SetAnimationProperties(VImage image, int nPages, int pageHeight, std::vector<int> delay, int loop) {
711
+ bool hasDelay = !delay.empty();
712
+ VImage copy = image.copy();
713
+
714
+ // Only set page-height if we have more than one page, or this could
715
+ // accidentally turn into an animated image later.
716
+ if (nPages > 1) copy.set(VIPS_META_PAGE_HEIGHT, pageHeight);
717
+ if (hasDelay) {
718
+ if (delay.size() == 1) {
719
+ // We have just one delay, repeat that value for all frames.
720
+ delay.insert(delay.end(), nPages - 1, delay[0]);
721
+ }
722
+ copy.set("delay", delay);
723
+ }
724
+ if (nPages == 1 && !hasDelay && loop == -1) {
725
+ loop = 1;
726
+ }
727
+ if (loop != -1) copy.set("loop", loop);
728
+
729
+ return copy;
730
+ }
731
+
732
+ /*
733
+ Remove animation properties from image.
734
+ */
735
+ VImage RemoveAnimationProperties(VImage image) {
736
+ VImage copy = image.copy();
737
+ copy.remove(VIPS_META_PAGE_HEIGHT);
738
+ copy.remove("delay");
739
+ copy.remove("loop");
740
+ return copy;
741
+ }
742
+
743
+ /*
744
+ Remove GIF palette from image.
745
+ */
746
+ VImage RemoveGifPalette(VImage image) {
747
+ VImage copy = image.copy();
748
+ copy.remove("gif-palette");
749
+ return copy;
750
+ }
751
+
752
+ /*
753
+ Does this image have a non-default density?
754
+ */
755
+ bool HasDensity(VImage image) {
756
+ return image.xres() > 1.0;
757
+ }
758
+
759
+ /*
760
+ Get pixels/mm resolution as pixels/inch density.
761
+ */
762
+ int GetDensity(VImage image) {
763
+ return static_cast<int>(round(image.xres() * 25.4));
764
+ }
765
+
766
+ /*
767
+ Set pixels/mm resolution based on a pixels/inch density.
768
+ */
769
+ VImage SetDensity(VImage image, const double density) {
770
+ const double pixelsPerMm = density / 25.4;
771
+ VImage copy = image.copy();
772
+ copy.get_image()->Xres = pixelsPerMm;
773
+ copy.get_image()->Yres = pixelsPerMm;
774
+ return copy;
775
+ }
776
+
777
+ /*
778
+ Multi-page images can have a page height. Fetch it, and sanity check it.
779
+ If page-height is not set, it defaults to the image height
780
+ */
781
+ int GetPageHeight(VImage image) {
782
+ return vips_image_get_page_height(image.get_image());
783
+ }
784
+
785
+ /*
786
+ Check the proposed format supports the current dimensions.
787
+ */
788
+ void AssertImageTypeDimensions(VImage image, ImageType const imageType) {
789
+ const int height = image.get_typeof(VIPS_META_PAGE_HEIGHT) == G_TYPE_INT
790
+ ? image.get_int(VIPS_META_PAGE_HEIGHT)
791
+ : image.height();
792
+ if (imageType == ImageType::JPEG) {
793
+ if (image.width() > 65535 || height > 65535) {
794
+ throw std::runtime_error("Processed image is too large for the JPEG format");
795
+ }
796
+ } else if (imageType == ImageType::WEBP) {
797
+ if (image.width() > 16383 || height > 16383) {
798
+ throw std::runtime_error("Processed image is too large for the WebP format");
799
+ }
800
+ } else if (imageType == ImageType::GIF) {
801
+ if (image.width() > 65535 || height > 65535) {
802
+ throw std::runtime_error("Processed image is too large for the GIF format");
803
+ }
804
+ } else if (imageType == ImageType::HEIF) {
805
+ if (image.width() > 16384 || height > 16384) {
806
+ throw std::runtime_error("Processed image is too large for the HEIF format");
807
+ }
808
+ }
809
+ }
810
+
811
+ /*
812
+ Called when a Buffer undergoes GC, required to support mixed runtime libraries in Windows
813
+ */
814
+ std::function<void(void*, char*)> FreeCallback = [](void*, char* data) {
815
+ g_free(data);
816
+ };
817
+
818
+ /*
819
+ Temporary buffer of warnings
820
+ */
821
+ std::queue<std::string> vipsWarnings;
822
+ std::mutex vipsWarningsMutex;
823
+
824
+ /*
825
+ Called with warnings from the glib-registered "VIPS" domain
826
+ */
827
+ void VipsWarningCallback(char const* log_domain, GLogLevelFlags log_level, char const* message, void* ignore) {
828
+ std::lock_guard<std::mutex> lock(vipsWarningsMutex);
829
+ vipsWarnings.emplace(message);
830
+ }
831
+
832
+ /*
833
+ Pop the oldest warning message from the queue
834
+ */
835
+ std::string VipsWarningPop() {
836
+ std::string warning;
837
+ std::lock_guard<std::mutex> lock(vipsWarningsMutex);
838
+ if (!vipsWarnings.empty()) {
839
+ warning = vipsWarnings.front();
840
+ vipsWarnings.pop();
841
+ }
842
+ return warning;
843
+ }
844
+
845
+ /*
846
+ Attach an event listener for progress updates, used to detect timeout
847
+ */
848
+ void SetTimeout(VImage image, int const seconds) {
849
+ if (seconds > 0) {
850
+ VipsImage *im = image.get_image();
851
+ if (im->progress_signal == NULL) {
852
+ int *timeout = VIPS_NEW(im, int);
853
+ *timeout = seconds;
854
+ g_signal_connect(im, "eval", G_CALLBACK(VipsProgressCallBack), timeout);
855
+ vips_image_set_progress(im, true);
856
+ }
857
+ }
858
+ }
859
+
860
+ /*
861
+ Event listener for progress updates, used to detect timeout
862
+ */
863
+ void VipsProgressCallBack(VipsImage *im, VipsProgress *progress, int *timeout) {
864
+ if (*timeout > 0 && progress->run >= *timeout) {
865
+ vips_image_set_kill(im, true);
866
+ vips_error("timeout", "%d%% complete", progress->percent);
867
+ *timeout = 0;
868
+ }
869
+ }
870
+
871
+ /*
872
+ Calculate the (left, top) coordinates of the output image
873
+ within the input image, applying the given gravity during an embed.
874
+
875
+ @Azurebyte: We are basically swapping the inWidth and outWidth, inHeight and outHeight from the CalculateCrop function.
876
+ */
877
+ std::tuple<int, int> CalculateEmbedPosition(int const inWidth, int const inHeight,
878
+ int const outWidth, int const outHeight, int const gravity) {
879
+
880
+ int left = 0;
881
+ int top = 0;
882
+ switch (gravity) {
883
+ case 1:
884
+ // North
885
+ left = (outWidth - inWidth) / 2;
886
+ break;
887
+ case 2:
888
+ // East
889
+ left = outWidth - inWidth;
890
+ top = (outHeight - inHeight) / 2;
891
+ break;
892
+ case 3:
893
+ // South
894
+ left = (outWidth - inWidth) / 2;
895
+ top = outHeight - inHeight;
896
+ break;
897
+ case 4:
898
+ // West
899
+ top = (outHeight - inHeight) / 2;
900
+ break;
901
+ case 5:
902
+ // Northeast
903
+ left = outWidth - inWidth;
904
+ break;
905
+ case 6:
906
+ // Southeast
907
+ left = outWidth - inWidth;
908
+ top = outHeight - inHeight;
909
+ break;
910
+ case 7:
911
+ // Southwest
912
+ top = outHeight - inHeight;
913
+ break;
914
+ case 8:
915
+ // Northwest
916
+ // Which is the default is 0,0 so we do not assign anything here.
917
+ break;
918
+ default:
919
+ // Centre
920
+ left = (outWidth - inWidth) / 2;
921
+ top = (outHeight - inHeight) / 2;
922
+ }
923
+ return std::make_tuple(left, top);
924
+ }
925
+
926
+ /*
927
+ Calculate the (left, top) coordinates of the output image
928
+ within the input image, applying the given gravity during a crop.
929
+ */
930
+ std::tuple<int, int> CalculateCrop(int const inWidth, int const inHeight,
931
+ int const outWidth, int const outHeight, int const gravity) {
932
+
933
+ int left = 0;
934
+ int top = 0;
935
+ switch (gravity) {
936
+ case 1:
937
+ // North
938
+ left = (inWidth - outWidth + 1) / 2;
939
+ break;
940
+ case 2:
941
+ // East
942
+ left = inWidth - outWidth;
943
+ top = (inHeight - outHeight + 1) / 2;
944
+ break;
945
+ case 3:
946
+ // South
947
+ left = (inWidth - outWidth + 1) / 2;
948
+ top = inHeight - outHeight;
949
+ break;
950
+ case 4:
951
+ // West
952
+ top = (inHeight - outHeight + 1) / 2;
953
+ break;
954
+ case 5:
955
+ // Northeast
956
+ left = inWidth - outWidth;
957
+ break;
958
+ case 6:
959
+ // Southeast
960
+ left = inWidth - outWidth;
961
+ top = inHeight - outHeight;
962
+ break;
963
+ case 7:
964
+ // Southwest
965
+ top = inHeight - outHeight;
966
+ break;
967
+ case 8:
968
+ // Northwest
969
+ break;
970
+ default:
971
+ // Centre
972
+ left = (inWidth - outWidth + 1) / 2;
973
+ top = (inHeight - outHeight + 1) / 2;
974
+ }
975
+ return std::make_tuple(left, top);
976
+ }
977
+
978
+ /*
979
+ Calculate the (left, top) coordinates of the output image
980
+ within the input image, applying the given x and y offsets.
981
+ */
982
+ std::tuple<int, int> CalculateCrop(int const inWidth, int const inHeight,
983
+ int const outWidth, int const outHeight, int const x, int const y) {
984
+
985
+ // default values
986
+ int left = 0;
987
+ int top = 0;
988
+
989
+ // assign only if valid
990
+ if (x < (inWidth - outWidth)) {
991
+ left = x;
992
+ } else if (x >= (inWidth - outWidth)) {
993
+ left = inWidth - outWidth;
994
+ }
995
+
996
+ if (y < (inHeight - outHeight)) {
997
+ top = y;
998
+ } else if (y >= (inHeight - outHeight)) {
999
+ top = inHeight - outHeight;
1000
+ }
1001
+
1002
+ return std::make_tuple(left, top);
1003
+ }
1004
+
1005
+ /*
1006
+ Are pixel values in this image 16-bit integer?
1007
+ */
1008
+ bool Is16Bit(VipsInterpretation const interpretation) {
1009
+ return interpretation == VIPS_INTERPRETATION_RGB16 || interpretation == VIPS_INTERPRETATION_GREY16;
1010
+ }
1011
+
1012
+ /*
1013
+ Convert RGBA value to another colourspace
1014
+ */
1015
+ std::vector<double> GetRgbaAsColourspace(std::vector<double> const rgba,
1016
+ VipsInterpretation const interpretation, bool premultiply) {
1017
+ int const bands = static_cast<int>(rgba.size());
1018
+ if (bands < 3) {
1019
+ return rgba;
1020
+ }
1021
+ VImage pixel = VImage::new_matrix(1, 1);
1022
+ pixel.set("bands", bands);
1023
+ pixel = pixel
1024
+ .new_from_image(rgba)
1025
+ .colourspace(interpretation, VImage::option()->set("source_space", VIPS_INTERPRETATION_sRGB));
1026
+ if (premultiply) {
1027
+ pixel = pixel.premultiply();
1028
+ }
1029
+ return pixel(0, 0);
1030
+ }
1031
+
1032
+ /*
1033
+ Apply the alpha channel to a given colour
1034
+ */
1035
+ std::tuple<VImage, std::vector<double>> ApplyAlpha(VImage image, std::vector<double> colour, bool premultiply) {
1036
+ // Scale up 8-bit values to match 16-bit input image
1037
+ double const multiplier = sharp::Is16Bit(image.interpretation()) ? 256.0 : 1.0;
1038
+ // Create alphaColour colour
1039
+ std::vector<double> alphaColour;
1040
+ if (image.bands() > 2) {
1041
+ alphaColour = {
1042
+ multiplier * colour[0],
1043
+ multiplier * colour[1],
1044
+ multiplier * colour[2]
1045
+ };
1046
+ } else {
1047
+ // Convert sRGB to greyscale
1048
+ alphaColour = { multiplier * (
1049
+ 0.2126 * colour[0] +
1050
+ 0.7152 * colour[1] +
1051
+ 0.0722 * colour[2])
1052
+ };
1053
+ }
1054
+ // Add alpha channel(s) to alphaColour colour
1055
+ if (colour[3] < 255.0 || image.has_alpha()) {
1056
+ int extraBands = image.bands() > 4 ? image.bands() - 3 : 1;
1057
+ alphaColour.insert(alphaColour.end(), extraBands, colour[3] * multiplier);
1058
+ }
1059
+ // Ensure alphaColour colour uses correct colourspace
1060
+ alphaColour = sharp::GetRgbaAsColourspace(alphaColour, image.interpretation(), premultiply);
1061
+ // Add non-transparent alpha channel, if required
1062
+ if (colour[3] < 255.0 && !image.has_alpha()) {
1063
+ image = image.bandjoin_const({ 255 * multiplier });
1064
+ }
1065
+ return std::make_tuple(image, alphaColour);
1066
+ }
1067
+
1068
+ /*
1069
+ Removes alpha channels, if any.
1070
+ */
1071
+ VImage RemoveAlpha(VImage image) {
1072
+ while (image.bands() > 1 && image.has_alpha()) {
1073
+ image = image.extract_band(0, VImage::option()->set("n", image.bands() - 1));
1074
+ }
1075
+ return image;
1076
+ }
1077
+
1078
+ /*
1079
+ Ensures alpha channel, if missing.
1080
+ */
1081
+ VImage EnsureAlpha(VImage image, double const value) {
1082
+ if (!image.has_alpha()) {
1083
+ image = image.bandjoin_const({ value * vips_interpretation_max_alpha(image.interpretation()) });
1084
+ }
1085
+ return image;
1086
+ }
1087
+
1088
+ std::pair<double, double> ResolveShrink(int width, int height, int targetWidth, int targetHeight,
1089
+ Canvas canvas, bool withoutEnlargement, bool withoutReduction) {
1090
+ double hshrink = 1.0;
1091
+ double vshrink = 1.0;
1092
+
1093
+ if (targetWidth > 0 && targetHeight > 0) {
1094
+ // Fixed width and height
1095
+ hshrink = static_cast<double>(width) / targetWidth;
1096
+ vshrink = static_cast<double>(height) / targetHeight;
1097
+
1098
+ switch (canvas) {
1099
+ case Canvas::CROP:
1100
+ case Canvas::MIN:
1101
+ if (hshrink < vshrink) {
1102
+ vshrink = hshrink;
1103
+ } else {
1104
+ hshrink = vshrink;
1105
+ }
1106
+ break;
1107
+ case Canvas::EMBED:
1108
+ case Canvas::MAX:
1109
+ if (hshrink > vshrink) {
1110
+ vshrink = hshrink;
1111
+ } else {
1112
+ hshrink = vshrink;
1113
+ }
1114
+ break;
1115
+ case Canvas::IGNORE_ASPECT:
1116
+ break;
1117
+ }
1118
+ } else if (targetWidth > 0) {
1119
+ // Fixed width
1120
+ hshrink = static_cast<double>(width) / targetWidth;
1121
+
1122
+ if (canvas != Canvas::IGNORE_ASPECT) {
1123
+ // Auto height
1124
+ vshrink = hshrink;
1125
+ }
1126
+ } else if (targetHeight > 0) {
1127
+ // Fixed height
1128
+ vshrink = static_cast<double>(height) / targetHeight;
1129
+
1130
+ if (canvas != Canvas::IGNORE_ASPECT) {
1131
+ // Auto width
1132
+ hshrink = vshrink;
1133
+ }
1134
+ }
1135
+
1136
+ // We should not reduce or enlarge the output image, if
1137
+ // withoutReduction or withoutEnlargement is specified.
1138
+ if (withoutReduction) {
1139
+ // Equivalent of VIPS_SIZE_UP
1140
+ hshrink = std::min(1.0, hshrink);
1141
+ vshrink = std::min(1.0, vshrink);
1142
+ } else if (withoutEnlargement) {
1143
+ // Equivalent of VIPS_SIZE_DOWN
1144
+ hshrink = std::max(1.0, hshrink);
1145
+ vshrink = std::max(1.0, vshrink);
1146
+ }
1147
+
1148
+ // We don't want to shrink so much that we send an axis to 0
1149
+ hshrink = std::min(hshrink, static_cast<double>(width));
1150
+ vshrink = std::min(vshrink, static_cast<double>(height));
1151
+
1152
+ return std::make_pair(hshrink, vshrink);
1153
+ }
1154
+
1155
+ /*
1156
+ Ensure decoding remains sequential.
1157
+ */
1158
+ VImage StaySequential(VImage image, bool condition) {
1159
+ if (vips_image_is_sequential(image.get_image()) && condition) {
1160
+ image = image.copy_memory().copy();
1161
+ image.remove(VIPS_META_SEQUENTIAL);
1162
+ }
1163
+ return image;
1164
+ }
1165
+
1166
+ /*
1167
+ Does this image have a gain map?
1168
+ */
1169
+ bool HasGainMap(VImage image) {
1170
+ return image.get_typeof("gainmap") == VIPS_TYPE_BLOB ||
1171
+ image.get_typeof("gainmap-data") == VIPS_TYPE_BLOB;
1172
+ }
1173
+
1174
+ /*
1175
+ Removes gain map, if any.
1176
+ */
1177
+ VImage RemoveGainMap(VImage image) {
1178
+ VImage copy = image.copy();
1179
+ copy.remove("gainmap");
1180
+ copy.remove("gainmap-data");
1181
+ return copy;
1182
+ }
1183
+ } // namespace sharp