@xrkseek/harness-cli 0.0.11 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1000) 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/dist/grammar.d.ts +33 -0
  767. package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.d.ts.map +1 -0
  768. package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js +43 -0
  769. package/node_modules/@xrkseek/xrk-file-reference/dist/grammar.js.map +1 -0
  770. package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts +13 -0
  771. package/node_modules/@xrkseek/xrk-file-reference/dist/types.d.ts.map +1 -0
  772. package/node_modules/@xrkseek/xrk-file-reference/dist/types.js +7 -0
  773. package/node_modules/@xrkseek/xrk-file-reference/dist/types.js.map +1 -0
  774. package/node_modules/@xrkseek/xrk-file-reference/package.json +31 -0
  775. package/node_modules/@xrkseek/xrk-file-reference-local/README.i18n.yaml +6 -0
  776. package/node_modules/@xrkseek/xrk-file-reference-local/README.md +45 -0
  777. package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +45 -0
  778. package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts +52 -0
  779. package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts.map +1 -0
  780. package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js +258 -0
  781. package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js.map +1 -0
  782. package/node_modules/@xrkseek/xrk-file-reference-local/package.json +29 -0
  783. package/node_modules/@xrkseek/xrk-session-reference/README.i18n.yaml +6 -0
  784. package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -0
  785. package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -0
  786. package/node_modules/@xrkseek/xrk-session-reference/dist/config.d.ts +25 -0
  787. package/node_modules/@xrkseek/xrk-session-reference/dist/config.d.ts.map +1 -0
  788. package/node_modules/@xrkseek/xrk-session-reference/dist/config.js +18 -0
  789. package/node_modules/@xrkseek/xrk-session-reference/dist/config.js.map +1 -0
  790. package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts +70 -0
  791. package/node_modules/@xrkseek/xrk-session-reference/dist/types.d.ts.map +1 -0
  792. package/node_modules/@xrkseek/xrk-session-reference/dist/types.js +11 -0
  793. package/node_modules/@xrkseek/xrk-session-reference/dist/types.js.map +1 -0
  794. package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts +40 -0
  795. package/node_modules/@xrkseek/xrk-session-reference/dist/uri.d.ts.map +1 -0
  796. package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js +81 -0
  797. package/node_modules/@xrkseek/xrk-session-reference/dist/uri.js.map +1 -0
  798. package/node_modules/@xrkseek/xrk-session-reference/package.json +39 -0
  799. package/node_modules/detect-libc/LICENSE +201 -0
  800. package/node_modules/detect-libc/README.md +163 -0
  801. package/node_modules/detect-libc/index.d.ts +14 -0
  802. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  803. package/node_modules/detect-libc/lib/elf.js +39 -0
  804. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  805. package/node_modules/detect-libc/lib/process.js +24 -0
  806. package/node_modules/detect-libc/package.json +44 -0
  807. package/node_modules/semver/LICENSE +15 -0
  808. package/node_modules/semver/README.md +680 -0
  809. package/node_modules/semver/bin/semver.js +195 -0
  810. package/node_modules/semver/classes/comparator.js +143 -0
  811. package/node_modules/semver/classes/index.js +7 -0
  812. package/node_modules/semver/classes/range.js +577 -0
  813. package/node_modules/semver/classes/semver.js +350 -0
  814. package/node_modules/semver/functions/clean.js +8 -0
  815. package/node_modules/semver/functions/cmp.js +54 -0
  816. package/node_modules/semver/functions/coerce.js +62 -0
  817. package/node_modules/semver/functions/compare-build.js +9 -0
  818. package/node_modules/semver/functions/compare-loose.js +5 -0
  819. package/node_modules/semver/functions/compare.js +7 -0
  820. package/node_modules/semver/functions/diff.js +60 -0
  821. package/node_modules/semver/functions/eq.js +5 -0
  822. package/node_modules/semver/functions/gt.js +5 -0
  823. package/node_modules/semver/functions/gte.js +5 -0
  824. package/node_modules/semver/functions/inc.js +21 -0
  825. package/node_modules/semver/functions/lt.js +5 -0
  826. package/node_modules/semver/functions/lte.js +5 -0
  827. package/node_modules/semver/functions/major.js +5 -0
  828. package/node_modules/semver/functions/minor.js +5 -0
  829. package/node_modules/semver/functions/neq.js +5 -0
  830. package/node_modules/semver/functions/parse.js +18 -0
  831. package/node_modules/semver/functions/patch.js +5 -0
  832. package/node_modules/semver/functions/prerelease.js +8 -0
  833. package/node_modules/semver/functions/rcompare.js +5 -0
  834. package/node_modules/semver/functions/rsort.js +5 -0
  835. package/node_modules/semver/functions/satisfies.js +12 -0
  836. package/node_modules/semver/functions/sort.js +5 -0
  837. package/node_modules/semver/functions/truncate.js +48 -0
  838. package/node_modules/semver/functions/valid.js +8 -0
  839. package/node_modules/semver/index.js +93 -0
  840. package/node_modules/semver/internal/constants.js +37 -0
  841. package/node_modules/semver/internal/debug.js +11 -0
  842. package/node_modules/semver/internal/identifiers.js +29 -0
  843. package/node_modules/semver/internal/lrucache.js +42 -0
  844. package/node_modules/semver/internal/parse-options.js +17 -0
  845. package/node_modules/semver/internal/re.js +223 -0
  846. package/node_modules/semver/package.json +78 -0
  847. package/node_modules/semver/preload.js +4 -0
  848. package/node_modules/semver/range.bnf +17 -0
  849. package/node_modules/semver/ranges/gtr.js +6 -0
  850. package/node_modules/semver/ranges/intersects.js +9 -0
  851. package/node_modules/semver/ranges/ltr.js +6 -0
  852. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  853. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  854. package/node_modules/semver/ranges/min-version.js +63 -0
  855. package/node_modules/semver/ranges/outside.js +82 -0
  856. package/node_modules/semver/ranges/simplify.js +49 -0
  857. package/node_modules/semver/ranges/subset.js +249 -0
  858. package/node_modules/semver/ranges/to-comparators.js +10 -0
  859. package/node_modules/semver/ranges/valid.js +13 -0
  860. package/node_modules/sharp/LICENSE +191 -0
  861. package/node_modules/sharp/README.md +112 -0
  862. package/node_modules/sharp/dist/channel.cjs +177 -0
  863. package/node_modules/sharp/dist/channel.mjs +177 -0
  864. package/node_modules/sharp/dist/colour.cjs +199 -0
  865. package/node_modules/sharp/dist/colour.mjs +199 -0
  866. package/node_modules/sharp/dist/composite.cjs +213 -0
  867. package/node_modules/sharp/dist/composite.mjs +213 -0
  868. package/node_modules/sharp/dist/constructor.cjs +511 -0
  869. package/node_modules/sharp/dist/constructor.mjs +511 -0
  870. package/node_modules/sharp/dist/index.cjs +25 -0
  871. package/node_modules/sharp/dist/index.d.cts +1999 -0
  872. package/node_modules/sharp/dist/index.d.mts +2046 -0
  873. package/node_modules/sharp/dist/index.mjs +25 -0
  874. package/node_modules/sharp/dist/input.cjs +814 -0
  875. package/node_modules/sharp/dist/input.mjs +814 -0
  876. package/node_modules/sharp/dist/is.cjs +143 -0
  877. package/node_modules/sharp/dist/is.mjs +143 -0
  878. package/node_modules/sharp/dist/libvips.cjs +212 -0
  879. package/node_modules/sharp/dist/libvips.mjs +212 -0
  880. package/node_modules/sharp/dist/operation.cjs +998 -0
  881. package/node_modules/sharp/dist/operation.mjs +998 -0
  882. package/node_modules/sharp/dist/output.cjs +1788 -0
  883. package/node_modules/sharp/dist/output.mjs +1788 -0
  884. package/node_modules/sharp/dist/resize.cjs +617 -0
  885. package/node_modules/sharp/dist/resize.mjs +617 -0
  886. package/node_modules/sharp/dist/sharp.cjs +174 -0
  887. package/node_modules/sharp/dist/sharp.mjs +174 -0
  888. package/node_modules/sharp/dist/utility.cjs +301 -0
  889. package/node_modules/sharp/dist/utility.mjs +301 -0
  890. package/node_modules/sharp/install/build.js +38 -0
  891. package/node_modules/sharp/lib/index.d.ts +1999 -0
  892. package/node_modules/sharp/package.json +227 -0
  893. package/node_modules/sharp/src/binding.gyp +303 -0
  894. package/node_modules/sharp/src/common.cc +1183 -0
  895. package/node_modules/sharp/src/common.h +421 -0
  896. package/node_modules/sharp/src/metadata.cc +404 -0
  897. package/node_modules/sharp/src/metadata.h +95 -0
  898. package/node_modules/sharp/src/operations.cc +516 -0
  899. package/node_modules/sharp/src/operations.h +137 -0
  900. package/node_modules/sharp/src/pipeline.cc +1948 -0
  901. package/node_modules/sharp/src/pipeline.h +422 -0
  902. package/node_modules/sharp/src/sharp.cc +43 -0
  903. package/node_modules/sharp/src/stats.cc +186 -0
  904. package/node_modules/sharp/src/stats.h +62 -0
  905. package/node_modules/sharp/src/utilities.cc +289 -0
  906. package/node_modules/sharp/src/utilities.h +22 -0
  907. package/node_modules/undici-types/LICENSE +21 -0
  908. package/node_modules/undici-types/README.md +6 -0
  909. package/node_modules/undici-types/agent.d.ts +32 -0
  910. package/node_modules/undici-types/api.d.ts +43 -0
  911. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  912. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  913. package/node_modules/undici-types/cache.d.ts +36 -0
  914. package/node_modules/undici-types/client-stats.d.ts +15 -0
  915. package/node_modules/undici-types/client.d.ts +108 -0
  916. package/node_modules/undici-types/connector.d.ts +34 -0
  917. package/node_modules/undici-types/content-type.d.ts +21 -0
  918. package/node_modules/undici-types/cookies.d.ts +30 -0
  919. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  920. package/node_modules/undici-types/dispatcher.d.ts +276 -0
  921. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  922. package/node_modules/undici-types/errors.d.ts +161 -0
  923. package/node_modules/undici-types/eventsource.d.ts +66 -0
  924. package/node_modules/undici-types/fetch.d.ts +211 -0
  925. package/node_modules/undici-types/formdata.d.ts +108 -0
  926. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  927. package/node_modules/undici-types/global-origin.d.ts +7 -0
  928. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  929. package/node_modules/undici-types/handlers.d.ts +15 -0
  930. package/node_modules/undici-types/header.d.ts +160 -0
  931. package/node_modules/undici-types/index.d.ts +88 -0
  932. package/node_modules/undici-types/interceptors.d.ts +73 -0
  933. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  934. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  935. package/node_modules/undici-types/mock-client.d.ts +27 -0
  936. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  937. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  938. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  939. package/node_modules/undici-types/package.json +55 -0
  940. package/node_modules/undici-types/patch.d.ts +29 -0
  941. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  942. package/node_modules/undici-types/pool.d.ts +41 -0
  943. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  944. package/node_modules/undici-types/readable.d.ts +68 -0
  945. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  946. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  947. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  948. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  949. package/node_modules/undici-types/util.d.ts +18 -0
  950. package/node_modules/undici-types/utility.d.ts +7 -0
  951. package/node_modules/undici-types/webidl.d.ts +341 -0
  952. package/node_modules/undici-types/websocket.d.ts +186 -0
  953. package/package.json +23 -1
  954. package/product-web/assets/{index-CSGf6Qzd.css → index-C0u-TtQQ.css} +1 -1
  955. package/product-web/assets/index-CHKZdZNt.js +112 -0
  956. package/product-web/assets/index-CHKZdZNt.js.map +1 -0
  957. package/product-web/assets/langs/{php-DY2VakOf.js → php-9bx0az3O.js} +2 -2
  958. package/product-web/assets/langs/{php-DY2VakOf.js.map → php-9bx0az3O.js.map} +1 -1
  959. package/product-web/assets/langs/{ruby-hwtoiFmS.js → ruby-HDLHRjSL.js} +2 -2
  960. package/product-web/assets/langs/{ruby-hwtoiFmS.js.map → ruby-HDLHRjSL.js.map} +1 -1
  961. package/product-web/assets/{vendor-CldRVjca.js → vendor-CeMKrCZm.js} +36 -35
  962. package/product-web/assets/vendor-CeMKrCZm.js.map +1 -0
  963. package/product-web/boot.json +20 -1
  964. package/product-web/index.html +3 -3
  965. package/product-web/plugins/@xrkseek/client-connection/client.js +7 -164
  966. package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
  967. package/product-web/plugins/@xrkseek/client-modules/client.js +83 -12
  968. package/product-web/plugins/@xrkseek/client-runtime/client.js +8 -56
  969. package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +34 -34
  970. package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
  971. package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
  972. package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +967 -563
  973. package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
  974. package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +27 -27
  975. package/product-web/plugins/@xrkseek/client-ui-goal/client.js +7 -7
  976. package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +82 -26
  977. package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +8 -8
  978. package/product-web/plugins/@xrkseek/client-ui-layout/client.js +2 -2
  979. package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
  980. package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +18 -18
  981. package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +2 -2
  982. package/product-web/plugins/@xrkseek/client-ui-plan/client.js +1 -1
  983. package/product-web/plugins/@xrkseek/client-ui-reference/client.js +148 -0
  984. package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +13 -13
  985. package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +58 -58
  986. package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +10 -10
  987. package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +42 -42
  988. package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +13 -13
  989. package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
  990. package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +289 -157
  991. package/product-web/plugins/@xrkseek/client-ui-theme/client.js +1 -1
  992. package/product-web/plugins/@xrkseek/client-ui-tool/client.js +37 -37
  993. package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +147 -168
  994. package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +27 -27
  995. package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +16 -16
  996. package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +56 -56
  997. package/product-web/plugins/@xrkseek/xrk-api-remotes/client.js +20 -1
  998. package/product-web/assets/index-CcF0Sxxg.js +0 -297
  999. package/product-web/assets/index-CcF0Sxxg.js.map +0 -1
  1000. package/product-web/assets/vendor-CldRVjca.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-feature-bridge.js","sourceRoot":"","sources":["../../src/dsh-compat/host-feature-bridge.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAgB/C,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,KAAa,EACb,UAAiC,EAAE;IAEnC,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACvB,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzD,CAAC;IACD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;IAClC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,OAAO,CAAC;IACjD,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IACtC,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,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CACpD,CAAC;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;IAC1D,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { XrkPluginServicesOptions } from "../xrk/plugin-services.js";
2
+ import type { DshAdapterContribution } from "./adapter-types.js";
3
+ /**
4
+ * Scan installed client packages for host manifests; return stub adapters for uncovered routes.
5
+ */
6
+ export declare function discoverManifestAdapters(options: XrkPluginServicesOptions, claimedPrefixes: readonly string[]): readonly DshAdapterContribution[];
7
+ //# sourceMappingURL=host-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-manifest.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/host-manifest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EACV,sBAAsB,EAGvB,MAAM,oBAAoB,CAAC;AAgJ5B;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,wBAAwB,EACjC,eAAe,EAAE,SAAS,MAAM,EAAE,GACjC,SAAS,sBAAsB,EAAE,CAcnC"}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Discover optional `xrk.host.json` (or package.json host fields) from installed plugins.
3
+ * Adds honest stub adapters for routes not covered by builtins — no kernel hardcoding.
4
+ */
5
+ import { existsSync, readFileSync } from "node:fs";
6
+ import path from "node:path";
7
+ import { readBody, sendJson } from "../http-json.js";
8
+ import { readXrkPluginInventory } from "../xrk/plugin-services.js";
9
+ import { hostIncomplete, tag } from "./meta.js";
10
+ function asRecord(value) {
11
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
12
+ return undefined;
13
+ }
14
+ return value;
15
+ }
16
+ function parseHostManifest(raw, source) {
17
+ const o = asRecord(raw);
18
+ if (!o) {
19
+ throw new Error(`${source}: expected host manifest object`);
20
+ }
21
+ const id = typeof o.id === "string" ? o.id.trim() : undefined;
22
+ const incomplete = typeof o.incomplete === "string" ? o.incomplete.trim() : undefined;
23
+ const rpcChannels = Array.isArray(o.rpcChannels)
24
+ ? o.rpcChannels.filter((c) => typeof c === "string")
25
+ : undefined;
26
+ const httpPrefixes = Array.isArray(o.httpPrefixes)
27
+ ? o.httpPrefixes.filter((p) => typeof p === "string")
28
+ : undefined;
29
+ return {
30
+ ...(id ? { id } : {}),
31
+ ...(incomplete ? { incomplete } : {}),
32
+ ...(rpcChannels?.length ? { rpcChannels } : {}),
33
+ ...(httpPrefixes?.length ? { httpPrefixes } : {}),
34
+ };
35
+ }
36
+ function readHostManifestFile(pkgRoot) {
37
+ const jsonPath = path.join(pkgRoot, "xrk.host.json");
38
+ if (existsSync(jsonPath)) {
39
+ try {
40
+ return parseHostManifest(JSON.parse(readFileSync(jsonPath, "utf8")), jsonPath);
41
+ }
42
+ catch {
43
+ return undefined;
44
+ }
45
+ }
46
+ const pkgPath = path.join(pkgRoot, "package.json");
47
+ if (!existsSync(pkgPath))
48
+ return undefined;
49
+ try {
50
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
51
+ const nested = asRecord(pkg.xrkseek)?.host ??
52
+ asRecord(pkg.dsh)?.host ??
53
+ pkg["dsh.host"];
54
+ if (!nested)
55
+ return undefined;
56
+ return parseHostManifest(nested, pkgPath);
57
+ }
58
+ catch {
59
+ return undefined;
60
+ }
61
+ }
62
+ function clientInstallDir(pluginsDir, name) {
63
+ return path.join(pluginsDir, "web", "plugins", ...name.split("/"));
64
+ }
65
+ function prefixMatcher(prefix) {
66
+ const norm = prefix.endsWith("/") ? prefix : `${prefix}/`;
67
+ return (p) => p === prefix || p.startsWith(norm);
68
+ }
69
+ function prefixOverlapsClaimed(prefix, claimed) {
70
+ const norm = prefix.endsWith("/") ? prefix : `${prefix}/`;
71
+ return claimed.some((c) => {
72
+ const cNorm = c.endsWith("/") ? c : `${c}/`;
73
+ return norm.startsWith(cNorm) || cNorm.startsWith(norm) || c === prefix;
74
+ });
75
+ }
76
+ function manifestStubAdapter(packageName, manifest, claimedPrefixes) {
77
+ const id = manifest.id ?? packageName.replace(/^@/, "").replace(/\//g, "-");
78
+ const incompleteTag = manifest.incomplete ?? `${id}-host`;
79
+ const rpc = {};
80
+ for (const channel of manifest.rpcChannels ?? []) {
81
+ rpc[channel] = (endpoint) => tag({
82
+ ok: false,
83
+ endpoint,
84
+ note: `Host route declared in xrk.host.json; no builtin adapter on XRK yet.`,
85
+ }, [incompleteTag]);
86
+ }
87
+ const http = [];
88
+ for (const prefix of manifest.httpPrefixes ?? []) {
89
+ if (prefixOverlapsClaimed(prefix, claimedPrefixes))
90
+ continue;
91
+ http.push({
92
+ match: prefixMatcher(prefix),
93
+ handle: async (req, res, pathname) => {
94
+ const method = (req.method ?? "GET").toUpperCase();
95
+ if (method === "POST" ||
96
+ method === "PUT" ||
97
+ method === "PATCH") {
98
+ await readBody(req);
99
+ }
100
+ sendJson(res, 200, hostIncomplete(id, { ok: true, path: pathname, package: packageName }));
101
+ return true;
102
+ },
103
+ });
104
+ }
105
+ if (!Object.keys(rpc).length && !http?.length)
106
+ return undefined;
107
+ return {
108
+ meta: {
109
+ id: `manifest:${id}`,
110
+ package: packageName,
111
+ description: "Discovered from xrk.host.json",
112
+ },
113
+ ...(Object.keys(rpc).length ? { rpc } : {}),
114
+ ...(http?.length ? { http } : {}),
115
+ };
116
+ }
117
+ /**
118
+ * Scan installed client packages for host manifests; return stub adapters for uncovered routes.
119
+ */
120
+ export function discoverManifestAdapters(options, claimedPrefixes) {
121
+ const inventory = readXrkPluginInventory(options);
122
+ const adapters = [];
123
+ for (const pkg of inventory.packages) {
124
+ const root = clientInstallDir(inventory.pluginsDir, pkg.name);
125
+ if (!existsSync(root))
126
+ continue;
127
+ const manifest = readHostManifestFile(root);
128
+ if (!manifest)
129
+ continue;
130
+ const adapter = manifestStubAdapter(pkg.name, manifest, claimedPrefixes);
131
+ if (adapter)
132
+ adapters.push(adapter);
133
+ }
134
+ return adapters;
135
+ }
136
+ //# sourceMappingURL=host-manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-manifest.js","sourceRoot":"","sources":["../../src/dsh-compat/host-manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAMnE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhD,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAgC,CAAC;AAC1C,CAAC;AAED,SAAS,iBAAiB,CAAC,GAAY,EAAE,MAAc;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACxB,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,iCAAiC,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,MAAM,UAAU,GACd,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CAA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AG,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,gBAAgB,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAAE,SAAS;QAChC,MAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ;YAAE,SAAS;QACxB,MAAM,OAAO,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;QACzE,IAAI,OAAO;YAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare function isImChannelName(channel: string): boolean;
2
+ interface ImBotRow {
3
+ botId: string;
4
+ label: string;
5
+ connected: boolean;
6
+ state: string;
7
+ workspace?: string;
8
+ preset?: string;
9
+ connector?: Record<string, unknown>;
10
+ credentialsBound?: boolean;
11
+ }
12
+ export declare function imChannelSnapshot(channel: string, store?: {
13
+ bots: ImBotRow[];
14
+ revision: number;
15
+ }): Record<string, unknown>;
16
+ export interface ImChannelOptions {
17
+ readonly xrkHome?: string;
18
+ }
19
+ export declare function handleImChannelRpc(channel: string, endpoint: string, payload: Record<string, unknown>, options?: ImChannelOptions): unknown;
20
+ export {};
21
+ //# sourceMappingURL=im-channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"im-channels.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/im-channels.ts"],"names":[],"mappings":"AA6BA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAuDD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,KAAK,GAAE;IAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAA8B,GACxE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CA6PT"}
@@ -0,0 +1,281 @@
1
+ /**
2
+ * Shared IM channel offline snapshot + RPC for @xmanrui/dsh-im channels.
3
+ */
4
+ import { adapterEcho, imHostActionUnavailable } from "./honest-envelope.js";
5
+ import { validateImConnector } from "./host-feature-bridge.js";
6
+ import { beginImCallbackRepair, beginImProvision, cancelImProvision, pollImProvision, } from "./im-provision-bridge.js";
7
+ import { handleImMessagingRpc } from "./im-messaging-bridge.js";
8
+ import { tag } from "./meta.js";
9
+ import { createXrkDocStore } from "./underlying/doc-store.js";
10
+ const IM_CHANNELS = new Set([
11
+ "dingtalk",
12
+ "feishu",
13
+ "wecom",
14
+ "qq",
15
+ "telegram",
16
+ "discord",
17
+ "whatsapp",
18
+ "slack",
19
+ "weixin",
20
+ ]);
21
+ const IM_UNAVAILABLE_ENDPOINTS = new Set();
22
+ export function isImChannelName(channel) {
23
+ const name = channel.replace(/^\//, "");
24
+ return IM_CHANNELS.has(name);
25
+ }
26
+ const EMPTY_CHANNEL = { bots: [] };
27
+ function channelDocStore(channel) {
28
+ return createXrkDocStore(["im-channels", channel, "state.json"], EMPTY_CHANNEL);
29
+ }
30
+ /** Legacy flat files may embed `revision` inside data — strip on read. */
31
+ function normalizeBots(raw) {
32
+ if (!raw || typeof raw !== "object" || Array.isArray(raw))
33
+ return [];
34
+ const bots = raw.bots;
35
+ if (!Array.isArray(bots))
36
+ return [];
37
+ return bots.filter((b) => !!b &&
38
+ typeof b === "object" &&
39
+ typeof b.botId === "string");
40
+ }
41
+ function readChannel(xrkHome, channel) {
42
+ const doc = channelDocStore(channel).read(xrkHome);
43
+ return { bots: normalizeBots(doc.data), revision: doc.revision };
44
+ }
45
+ function patchChannel(xrkHome, channel, mutator) {
46
+ const doc = channelDocStore(channel).patch(xrkHome, (current) => ({
47
+ bots: mutator(normalizeBots(current)),
48
+ }));
49
+ return { bots: doc.data.bots, revision: doc.revision };
50
+ }
51
+ function botIdFromPayload(payload) {
52
+ const raw = payload.botId ?? payload.id ?? payload.bot_id ?? payload.botID;
53
+ if (typeof raw !== "string")
54
+ return undefined;
55
+ const trimmed = raw.trim();
56
+ return trimmed.length > 0 ? trimmed : undefined;
57
+ }
58
+ export function imChannelSnapshot(channel, store = { bots: [], revision: 0 }) {
59
+ const connected = store.bots.filter((b) => b.connected === true).length;
60
+ const configured = store.bots.filter((b) => b.state === "configured" || b.credentialsBound === true).length;
61
+ return tag({
62
+ schemaVersion: 1,
63
+ revision: store.revision,
64
+ state: connected > 0 ? "connected" : configured > 0 ? "configured" : "offline",
65
+ bots: store.bots,
66
+ totals: { configured: store.bots.length, connected },
67
+ provisioning: null,
68
+ testMessage: null,
69
+ agentPresetCatalog: { defaultId: "", items: [] },
70
+ channel,
71
+ note: connected > 0
72
+ ? "XRK IM bridge: connector active via local tunnel simulation."
73
+ : configured > 0
74
+ ? "XRK IM bridge: connector saved — complete OAuth via provision.* or connection.test."
75
+ : "XRK IM bridge: offline snapshot.",
76
+ ...adapterEcho(),
77
+ }, connected > 0 ? undefined : configured > 0 ? ["im-host"] : ["im-host"]);
78
+ }
79
+ export function handleImChannelRpc(channel, endpoint, payload, options = {}) {
80
+ const name = channel.replace(/^\//, "");
81
+ if (!IM_CHANNELS.has(name)) {
82
+ return { ok: false, error: "unknown im channel", channel };
83
+ }
84
+ const home = options.xrkHome;
85
+ let store = readChannel(home, name);
86
+ if (endpoint === "connection.status" ||
87
+ endpoint === "status" ||
88
+ endpoint === "bot.list" ||
89
+ endpoint === "bots.list" ||
90
+ endpoint === "bots" ||
91
+ endpoint === "") {
92
+ return imChannelSnapshot(name, store);
93
+ }
94
+ if (IM_UNAVAILABLE_ENDPOINTS.has(endpoint)) {
95
+ return imHostActionUnavailable(name, endpoint);
96
+ }
97
+ if (endpoint === "provision.begin" || endpoint === "provision.start") {
98
+ return beginImProvision(home, name, payload);
99
+ }
100
+ if (endpoint === "provision.poll" || endpoint === "provision.status") {
101
+ return pollImProvision(home, name, payload);
102
+ }
103
+ if (endpoint === "provision.cancel") {
104
+ return cancelImProvision(home, name, payload);
105
+ }
106
+ if (endpoint === "bot.callback-repair.begin") {
107
+ return beginImCallbackRepair(name, payload);
108
+ }
109
+ if (endpoint === "connection.disconnect" || endpoint === "connector.remove") {
110
+ const botId = botIdFromPayload(payload);
111
+ store = patchChannel(home, name, (bots) => bots.map((b) => !botId || b.botId === botId
112
+ ? { ...b, connected: false, state: "offline" }
113
+ : b));
114
+ return {
115
+ ...imChannelSnapshot(name, store),
116
+ ok: true,
117
+ disconnected: true,
118
+ mode: "xrk-bridge",
119
+ };
120
+ }
121
+ if (endpoint === "connection.test" ||
122
+ endpoint === "connector.test" ||
123
+ endpoint === "bot.reconnect" ||
124
+ endpoint === "connector.reconnect") {
125
+ const botId = botIdFromPayload(payload);
126
+ const bot = botId
127
+ ? store.bots.find((b) => b.botId === botId)
128
+ : store.bots[0];
129
+ if (!bot) {
130
+ return { ok: false, code: "bot-missing", channel: name };
131
+ }
132
+ const check = validateImConnector(bot.connector);
133
+ const ready = bot.credentialsBound === true || check.ok;
134
+ if (!ready) {
135
+ return {
136
+ ...imHostActionUnavailable(name, endpoint, "Configure connector or bind credentials before test."),
137
+ missing: check.missing,
138
+ };
139
+ }
140
+ store = patchChannel(home, name, (bots) => bots.map((b) => b.botId === bot.botId
141
+ ? {
142
+ ...b,
143
+ connected: true,
144
+ state: "bridge-connected",
145
+ }
146
+ : b));
147
+ return {
148
+ ...imChannelSnapshot(name, store),
149
+ ok: true,
150
+ tested: true,
151
+ mode: "xrk-bridge",
152
+ note: "Simulated tunnel handshake — live IM host not embedded.",
153
+ };
154
+ }
155
+ if (endpoint === "bot.create" || endpoint === "bots.create") {
156
+ const botId = botIdFromPayload(payload) ?? `bot-${Date.now()}`;
157
+ const label = typeof payload.label === "string" ? payload.label : name;
158
+ store = patchChannel(home, name, (bots) => [
159
+ ...bots,
160
+ {
161
+ botId,
162
+ label,
163
+ connected: false,
164
+ state: "offline",
165
+ },
166
+ ]);
167
+ return imChannelSnapshot(name, store);
168
+ }
169
+ if (endpoint === "bot.delete" || endpoint === "bots.delete") {
170
+ const botId = botIdFromPayload(payload);
171
+ if (!botId) {
172
+ return { ok: false, code: "bot-missing", channel: name };
173
+ }
174
+ store = patchChannel(home, name, (bots) => bots.filter((b) => b.botId !== botId));
175
+ return imChannelSnapshot(name, store);
176
+ }
177
+ if (endpoint === "bot.disconnect" || endpoint === "bots.disconnect") {
178
+ const botId = botIdFromPayload(payload);
179
+ store = patchChannel(home, name, (bots) => bots.map((b) => botId && b.botId === botId
180
+ ? { ...b, connected: false, state: "offline" }
181
+ : b));
182
+ return imChannelSnapshot(name, store);
183
+ }
184
+ if (endpoint === "bot.bind-credentials" || endpoint === "bots.bind-credentials") {
185
+ const botId = botIdFromPayload(payload);
186
+ if (!botId) {
187
+ return { ok: false, code: "bot-missing", channel: name };
188
+ }
189
+ store = patchChannel(home, name, (bots) => {
190
+ const exists = bots.some((b) => b.botId === botId);
191
+ if (!exists) {
192
+ return [
193
+ ...bots,
194
+ {
195
+ botId,
196
+ label: name,
197
+ connected: false,
198
+ state: "configured",
199
+ credentialsBound: true,
200
+ },
201
+ ];
202
+ }
203
+ return bots.map((b) => b.botId === botId
204
+ ? {
205
+ ...b,
206
+ credentialsBound: true,
207
+ connected: false,
208
+ state: "configured",
209
+ }
210
+ : b);
211
+ });
212
+ return imChannelSnapshot(name, store);
213
+ }
214
+ if (endpoint === "connector.configure") {
215
+ const botId = botIdFromPayload(payload);
216
+ const connector = payload.connector && typeof payload.connector === "object"
217
+ ? payload.connector
218
+ : Object.fromEntries(Object.entries(payload).filter(([key]) => !["botId", "id", "bot_id", "botID", "connector"].includes(key)));
219
+ if (!botId) {
220
+ return { ok: false, code: "bot-missing", channel: name };
221
+ }
222
+ store = patchChannel(home, name, (bots) => {
223
+ const existing = bots.find((b) => b.botId === botId);
224
+ if (!existing) {
225
+ return [
226
+ ...bots,
227
+ {
228
+ botId,
229
+ label: name,
230
+ connected: false,
231
+ state: "configured",
232
+ connector,
233
+ },
234
+ ];
235
+ }
236
+ return bots.map((b) => b.botId === botId
237
+ ? {
238
+ ...b,
239
+ connector,
240
+ connected: false,
241
+ state: "configured",
242
+ }
243
+ : b);
244
+ });
245
+ return imChannelSnapshot(name, store);
246
+ }
247
+ if (endpoint === "bot.workspace.set" ||
248
+ endpoint === "bot.preset.set" ||
249
+ endpoint === "bots.update") {
250
+ const botId = botIdFromPayload(payload);
251
+ if (!botId) {
252
+ return { ok: false, code: "bot-missing", channel: name };
253
+ }
254
+ store = patchChannel(home, name, (bots) => bots.map((b) => {
255
+ if (b.botId !== botId)
256
+ return b;
257
+ const row = { ...b };
258
+ if (typeof payload.workspace === "string") {
259
+ row.workspace = payload.workspace;
260
+ }
261
+ if (typeof payload.preset === "string") {
262
+ row.preset = payload.preset;
263
+ }
264
+ if (typeof payload.label === "string") {
265
+ row.label = payload.label;
266
+ }
267
+ return row;
268
+ }));
269
+ return imChannelSnapshot(name, store);
270
+ }
271
+ const messaging = handleImMessagingRpc(name, endpoint, payload, home);
272
+ if (messaging)
273
+ return messaging;
274
+ return tag({
275
+ ok: false,
276
+ endpoint,
277
+ channel: name,
278
+ ...adapterEcho(),
279
+ }, ["im-host"]);
280
+ }
281
+ //# sourceMappingURL=im-channels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"im-channels.js","sourceRoot":"","sources":["../../src/dsh-compat/im-channels.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,UAAU;IACV,QAAQ;IACR,OAAO;IACP,IAAI;IACJ,UAAU;IACV,SAAS;IACT,UAAU;IACV,OAAO;IACP,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,IAAI,GAAG,EAAU,CAAC;AAEnD,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAiBD,MAAM,aAAa,GAAkB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAElD,SAAS,eAAe,CAAC,OAAe;IACtC,OAAO,iBAAiB,CACtB,CAAC,aAAa,EAAE,OAAO,EAAE,YAAY,CAAC,EACtC,aAAa,CACd,CAAC;AACJ,CAAC;AA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AAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,SAAS,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACtE,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAEhC,OAAO,GAAG,CACR;QACE,EAAE,EAAE,KAAK;QACT,QAAQ;QACR,OAAO,EAAE,IAAI;QACb,GAAG,WAAW,EAAE;KACjB,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { IncomingMessage, ServerResponse } from "node:http";
2
+ export interface ImMessageRow {
3
+ readonly id: string;
4
+ readonly channel: string;
5
+ readonly botId?: string;
6
+ readonly direction: "inbound" | "outbound";
7
+ readonly text: string;
8
+ readonly raw?: Record<string, unknown>;
9
+ readonly createdAt: string;
10
+ }
11
+ export declare function sendImMessage(xrkHome: string | undefined, channel: string, payload: Record<string, unknown>): Record<string, unknown>;
12
+ export declare function listImMessages(xrkHome: string | undefined, channel: string, payload?: Record<string, unknown>): Record<string, unknown>;
13
+ export declare function ingestImWebhook(xrkHome: string | undefined, channel: string, body: Record<string, unknown>, botId?: string): ImMessageRow;
14
+ export declare function handleImMessagingRpc(channel: string, endpoint: string, payload: Record<string, unknown>, xrkHome: string | undefined): Record<string, unknown> | null;
15
+ export declare function handleImMessagingHttp(req: IncomingMessage, res: ServerResponse, pathname: string, xrkHome: string | undefined): Promise<boolean>;
16
+ //# sourceMappingURL=im-messaging-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"im-messaging-bridge.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/im-messaging-bridge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MA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