@xrkseek/harness-cli 0.0.11 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (974) hide show
  1. package/dist/plugin/install-client.d.ts.map +1 -1
  2. package/dist/plugin/install-client.js +80 -2
  3. package/dist/plugin/install-client.js.map +1 -1
  4. package/node_modules/@img/colour/LICENSE.md +82 -0
  5. package/node_modules/@img/colour/README.md +15 -0
  6. package/node_modules/@img/colour/color.cjs +1596 -0
  7. package/node_modules/@img/colour/index.cjs +1 -0
  8. package/node_modules/@img/colour/index.d.ts +929 -0
  9. package/node_modules/@img/colour/package.json +58 -0
  10. package/node_modules/@img/sharp-win32-x64/LICENSE +191 -0
  11. package/node_modules/@img/sharp-win32-x64/README.md +59 -0
  12. package/node_modules/@img/sharp-win32-x64/index.cjs +1 -0
  13. package/node_modules/@img/sharp-win32-x64/lib/libvips-42.dll +0 -0
  14. package/node_modules/@img/sharp-win32-x64/lib/libvips-cpp-8.18.3.dll +0 -0
  15. package/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64-0.35.3.node +0 -0
  16. package/node_modules/@img/sharp-win32-x64/package.json +40 -0
  17. package/node_modules/@img/sharp-win32-x64/versions.json +30 -0
  18. package/node_modules/@types/node/LICENSE +21 -0
  19. package/node_modules/@types/node/README.md +15 -0
  20. package/node_modules/@types/node/assert/strict.d.ts +111 -0
  21. package/node_modules/@types/node/assert.d.ts +1115 -0
  22. package/node_modules/@types/node/async_hooks.d.ts +623 -0
  23. package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  24. package/node_modules/@types/node/buffer.d.ts +1934 -0
  25. package/node_modules/@types/node/child_process.d.ts +1476 -0
  26. package/node_modules/@types/node/cluster.d.ts +578 -0
  27. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  28. package/node_modules/@types/node/console.d.ts +453 -0
  29. package/node_modules/@types/node/constants.d.ts +21 -0
  30. package/node_modules/@types/node/crypto.d.ts +5417 -0
  31. package/node_modules/@types/node/dgram.d.ts +600 -0
  32. package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  33. package/node_modules/@types/node/dns/promises.d.ts +503 -0
  34. package/node_modules/@types/node/dns.d.ts +923 -0
  35. package/node_modules/@types/node/domain.d.ts +166 -0
  36. package/node_modules/@types/node/events.d.ts +976 -0
  37. package/node_modules/@types/node/fs/promises.d.ts +1341 -0
  38. package/node_modules/@types/node/fs.d.ts +4714 -0
  39. package/node_modules/@types/node/globals.d.ts +170 -0
  40. package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  41. package/node_modules/@types/node/http.d.ts +2154 -0
  42. package/node_modules/@types/node/http2.d.ts +2835 -0
  43. package/node_modules/@types/node/https.d.ts +585 -0
  44. package/node_modules/@types/node/index.d.ts +101 -0
  45. package/node_modules/@types/node/inspector.d.ts +277 -0
  46. package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
  47. package/node_modules/@types/node/module.d.ts +843 -0
  48. package/node_modules/@types/node/net.d.ts +1073 -0
  49. package/node_modules/@types/node/os.d.ts +507 -0
  50. package/node_modules/@types/node/package.json +155 -0
  51. package/node_modules/@types/node/path.d.ts +200 -0
  52. package/node_modules/@types/node/perf_hooks.d.ts +1042 -0
  53. package/node_modules/@types/node/process.d.ts +2102 -0
  54. package/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/node/querystring.d.ts +152 -0
  56. package/node_modules/@types/node/readline/promises.d.ts +161 -0
  57. package/node_modules/@types/node/readline.d.ts +600 -0
  58. package/node_modules/@types/node/repl.d.ts +438 -0
  59. package/node_modules/@types/node/sea.d.ts +162 -0
  60. package/node_modules/@types/node/sqlite.d.ts +1040 -0
  61. package/node_modules/@types/node/stream/consumers.d.ts +38 -0
  62. package/node_modules/@types/node/stream/promises.d.ts +90 -0
  63. package/node_modules/@types/node/stream/web.d.ts +573 -0
  64. package/node_modules/@types/node/stream.d.ts +1706 -0
  65. package/node_modules/@types/node/string_decoder.d.ts +67 -0
  66. package/node_modules/@types/node/test.d.ts +2349 -0
  67. package/node_modules/@types/node/timers/promises.d.ts +108 -0
  68. package/node_modules/@types/node/timers.d.ts +285 -0
  69. package/node_modules/@types/node/tls.d.ts +1279 -0
  70. package/node_modules/@types/node/trace_events.d.ts +197 -0
  71. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  72. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  73. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  74. package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  75. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  76. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  77. package/node_modules/@types/node/tty.d.ts +208 -0
  78. package/node_modules/@types/node/url.d.ts +1079 -0
  79. package/node_modules/@types/node/util.d.ts +2336 -0
  80. package/node_modules/@types/node/v8.d.ts +982 -0
  81. package/node_modules/@types/node/vm.d.ts +1195 -0
  82. package/node_modules/@types/node/wasi.d.ts +202 -0
  83. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  84. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  85. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  86. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  87. package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
  88. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  89. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  90. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  91. package/node_modules/@types/node/worker_threads.d.ts +894 -0
  92. package/node_modules/@types/node/zlib.d.ts +745 -0
  93. package/node_modules/@xrkseek/attachment/dist/error.d.ts +3 -2
  94. package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
  95. package/node_modules/@xrkseek/attachment/dist/error.js +17 -2
  96. package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
  97. package/node_modules/@xrkseek/attachment/dist/index.d.ts +2 -2
  98. package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
  99. package/node_modules/@xrkseek/attachment/dist/index.js +1 -1
  100. package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
  101. package/node_modules/@xrkseek/attachment/dist/memory.d.ts.map +1 -1
  102. package/node_modules/@xrkseek/attachment/dist/memory.js +6 -0
  103. package/node_modules/@xrkseek/attachment/dist/memory.js.map +1 -1
  104. package/node_modules/@xrkseek/attachment/dist/store.d.ts +6 -1
  105. package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
  106. package/node_modules/@xrkseek/attachment/dist/types.d.ts +19 -0
  107. package/node_modules/@xrkseek/attachment/dist/types.d.ts.map +1 -1
  108. package/node_modules/@xrkseek/attachment/dist/types.js.map +1 -1
  109. package/node_modules/@xrkseek/attachment-local/README.md +3 -0
  110. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts +18 -0
  111. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts.map +1 -0
  112. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js +43 -0
  113. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js.map +1 -0
  114. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts +23 -0
  115. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts.map +1 -0
  116. package/node_modules/@xrkseek/attachment-local/dist/encoding.js +33 -0
  117. package/node_modules/@xrkseek/attachment-local/dist/encoding.js.map +1 -0
  118. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts +54 -0
  119. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts.map +1 -0
  120. package/node_modules/@xrkseek/attachment-local/dist/image.js +97 -0
  121. package/node_modules/@xrkseek/attachment-local/dist/image.js.map +1 -0
  122. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +32 -0
  123. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -0
  124. package/node_modules/@xrkseek/attachment-local/dist/index.js +188 -0
  125. package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -0
  126. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts +44 -0
  127. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts.map +1 -0
  128. package/node_modules/@xrkseek/attachment-local/dist/normalization.js +148 -0
  129. package/node_modules/@xrkseek/attachment-local/dist/normalization.js.map +1 -0
  130. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +34 -0
  131. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -0
  132. package/node_modules/@xrkseek/attachment-local/dist/request-image.js +208 -0
  133. package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -0
  134. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts +58 -0
  135. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -0
  136. package/node_modules/@xrkseek/attachment-local/dist/store.js +290 -0
  137. package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -0
  138. package/node_modules/@xrkseek/attachment-local/package.json +25 -0
  139. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +3 -0
  140. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  141. package/node_modules/@xrkseek/exec-fs/dist/index.js +10 -0
  142. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  143. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +35 -0
  144. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -0
  145. package/node_modules/@xrkseek/exec-fs/dist/read-image.js +120 -0
  146. package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -0
  147. package/node_modules/@xrkseek/exec-fs/package.json +3 -1
  148. package/node_modules/@xrkseek/llm/dist/index.d.ts +1 -0
  149. package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
  150. package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
  151. package/node_modules/@xrkseek/llm-deepseek/README.md +3 -1
  152. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts +10 -0
  153. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts.map +1 -0
  154. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js +8 -0
  155. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js.map +1 -0
  156. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts +40 -0
  157. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts.map +1 -0
  158. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js +164 -0
  159. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js.map +1 -0
  160. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts +56 -0
  161. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts.map +1 -0
  162. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js +180 -0
  163. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js.map +1 -0
  164. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +15 -6
  165. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
  166. package/node_modules/@xrkseek/llm-deepseek/dist/index.js +63 -13
  167. package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
  168. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts +8 -0
  169. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts.map +1 -0
  170. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js +12 -0
  171. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js.map +1 -0
  172. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts +28 -0
  173. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -0
  174. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +142 -0
  175. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -0
  176. package/node_modules/@xrkseek/llm-deepseek/package.json +3 -1
  177. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts +27 -0
  178. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts.map +1 -1
  179. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js +20 -5
  180. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js.map +1 -1
  181. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts +1 -0
  182. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
  183. package/node_modules/@xrkseek/llm-registry/dist/registry.js +15 -1
  184. package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
  185. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +5 -0
  186. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  187. package/node_modules/@xrkseek/preset-harness/dist/preset.js +10 -1
  188. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  189. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  190. package/node_modules/@xrkseek/preset-harness/package.json +1 -0
  191. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  192. package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
  193. package/node_modules/@xrkseek/preset-server/dist/preset.js +3 -1
  194. package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
  195. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  196. package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
  197. package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
  198. package/node_modules/@xrkseek/protocol/dist/content.js +8 -1
  199. package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
  200. package/node_modules/@xrkseek/server-face/dist/context.d.ts +6 -3
  201. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  202. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts +9 -0
  203. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts.map +1 -0
  204. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js +28 -0
  205. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js.map +1 -0
  206. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts +16 -0
  207. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts.map +1 -0
  208. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js +141 -0
  209. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js.map +1 -0
  210. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts +13 -0
  211. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts.map +1 -0
  212. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js +158 -0
  213. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js.map +1 -0
  214. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts +284 -0
  215. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts.map +1 -0
  216. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js +696 -0
  217. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js.map +1 -0
  218. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts +15 -0
  219. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts.map +1 -0
  220. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js +196 -0
  221. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js.map +1 -0
  222. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts +19 -0
  223. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts.map +1 -0
  224. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js +143 -0
  225. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js.map +1 -0
  226. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts +16 -0
  227. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts.map +1 -0
  228. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js +84 -0
  229. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js.map +1 -0
  230. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts +19 -0
  231. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts.map +1 -0
  232. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js +221 -0
  233. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js.map +1 -0
  234. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts +133 -0
  235. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts.map +1 -0
  236. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js +561 -0
  237. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js.map +1 -0
  238. package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
  239. package/node_modules/@xrkseek/server-face/dist/dispatch.js +15 -0
  240. package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
  241. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts +0 -5
  242. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
  243. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +277 -24
  244. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
  245. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts +30 -0
  246. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts.map +1 -0
  247. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js +48 -0
  248. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js.map +1 -0
  249. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts +6 -0
  250. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts.map +1 -0
  251. package/node_modules/@xrkseek/server-face/dist/handlers/references.js +42 -0
  252. package/node_modules/@xrkseek/server-face/dist/handlers/references.js.map +1 -0
  253. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts +6 -0
  254. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts.map +1 -0
  255. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js +24 -0
  256. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js.map +1 -0
  257. package/node_modules/@xrkseek/server-face/dist/index.d.ts +1 -0
  258. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  259. package/node_modules/@xrkseek/server-face/dist/index.js +1 -0
  260. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  261. package/node_modules/@xrkseek/server-face/dist/llm-resolve.d.ts.map +1 -1
  262. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js +5 -3
  263. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
  264. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +2 -2
  265. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
  266. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +7 -3
  267. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
  268. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -0
  269. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
  270. package/node_modules/@xrkseek/server-face/dist/projections/index.js +2 -0
  271. package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
  272. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
  273. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +12 -0
  274. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
  275. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +45 -0
  276. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
  277. package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
  278. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts +40 -0
  279. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts.map +1 -0
  280. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js +103 -0
  281. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js.map +1 -0
  282. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts +9 -0
  283. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts.map +1 -0
  284. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js +24 -0
  285. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js.map +1 -0
  286. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts +37 -0
  287. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -0
  288. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +109 -0
  289. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -0
  290. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts +35 -0
  291. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -0
  292. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +151 -0
  293. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -0
  294. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts +13 -0
  295. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts.map +1 -0
  296. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js +81 -0
  297. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js.map +1 -0
  298. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +5 -1
  299. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  300. package/node_modules/@xrkseek/server-face/dist/runtime.js +25 -0
  301. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  302. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +15 -0
  303. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  304. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  305. package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
  306. package/node_modules/@xrkseek/server-face/dist/slash.js +19 -0
  307. package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
  308. package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
  309. package/node_modules/@xrkseek/server-face/dist/wire/paths.js +3 -0
  310. package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
  311. package/node_modules/@xrkseek/server-face/package.json +3 -0
  312. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts +4 -0
  313. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts.map +1 -0
  314. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js +10 -0
  315. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js.map +1 -0
  316. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts +11 -0
  317. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts.map +1 -0
  318. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js +29 -0
  319. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js.map +1 -0
  320. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts +15 -0
  321. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts.map +1 -0
  322. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js +34 -0
  323. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js.map +1 -0
  324. package/node_modules/@xrkseek/server-host/dist/index.d.ts +6 -1
  325. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  326. package/node_modules/@xrkseek/server-host/dist/index.js +126 -19
  327. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  328. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +17 -0
  329. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -0
  330. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +201 -0
  331. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -0
  332. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts +10 -0
  333. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts.map +1 -0
  334. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js +31 -0
  335. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js.map +1 -0
  336. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts +7 -0
  337. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts.map +1 -0
  338. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js +40 -0
  339. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js.map +1 -0
  340. package/node_modules/@xrkseek/server-host/package.json +8 -1
  341. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +12 -0
  342. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
  343. package/node_modules/@xrkseek/server-http/dist/boot-inject.js +54 -0
  344. package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
  345. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts +6 -0
  346. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts.map +1 -0
  347. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js +141 -0
  348. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js.map +1 -0
  349. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts +3 -0
  350. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -0
  351. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +445 -0
  352. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -0
  353. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts +7 -0
  354. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts.map +1 -0
  355. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js +15 -0
  356. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js.map +1 -0
  357. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +57 -0
  358. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -0
  359. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js +2 -0
  360. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js.map +1 -0
  361. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts +10 -0
  362. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts.map +1 -0
  363. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js +275 -0
  364. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js.map +1 -0
  365. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts +10 -0
  366. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -0
  367. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +41 -0
  368. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -0
  369. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +17 -0
  370. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -0
  371. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +184 -0
  372. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -0
  373. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts +5 -0
  374. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts.map +1 -0
  375. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js +5 -0
  376. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js.map +1 -0
  377. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts +21 -0
  378. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts.map +1 -0
  379. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js +122 -0
  380. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js.map +1 -0
  381. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts +10 -0
  382. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -0
  383. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +58 -0
  384. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -0
  385. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +7 -0
  386. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -0
  387. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +59 -0
  388. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -0
  389. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts +25 -0
  390. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts.map +1 -0
  391. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js +154 -0
  392. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js.map +1 -0
  393. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts +2 -0
  394. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts.map +1 -0
  395. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js +77 -0
  396. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js.map +1 -0
  397. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts +16 -0
  398. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -0
  399. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +121 -0
  400. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -0
  401. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts +12 -0
  402. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts.map +1 -0
  403. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js +48 -0
  404. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js.map +1 -0
  405. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts +18 -0
  406. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts.map +1 -0
  407. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js +62 -0
  408. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js.map +1 -0
  409. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts +9 -0
  410. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts.map +1 -0
  411. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js +42 -0
  412. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js.map +1 -0
  413. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts +6 -0
  414. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -0
  415. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +88 -0
  416. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -0
  417. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts +9 -0
  418. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts.map +1 -0
  419. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js +67 -0
  420. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js.map +1 -0
  421. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +18 -0
  422. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -0
  423. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +198 -0
  424. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -0
  425. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts +27 -0
  426. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts.map +1 -0
  427. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js +71 -0
  428. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js.map +1 -0
  429. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts +8 -0
  430. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts.map +1 -0
  431. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js +12 -0
  432. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js.map +1 -0
  433. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts +2 -0
  434. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts.map +1 -0
  435. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js +6 -0
  436. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js.map +1 -0
  437. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts +22 -0
  438. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -0
  439. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +219 -0
  440. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -0
  441. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts +4 -0
  442. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts.map +1 -0
  443. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js +53 -0
  444. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js.map +1 -0
  445. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +11 -0
  446. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -0
  447. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +61 -0
  448. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -0
  449. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +7 -0
  450. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -0
  451. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +150 -0
  452. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -0
  453. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts +10 -0
  454. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -0
  455. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +239 -0
  456. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -0
  457. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts +22 -0
  458. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts.map +1 -0
  459. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js +83 -0
  460. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js.map +1 -0
  461. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts +18 -0
  462. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts.map +1 -0
  463. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js +191 -0
  464. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js.map +1 -0
  465. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +21 -0
  466. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -0
  467. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +105 -0
  468. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -0
  469. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts +7 -0
  470. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -0
  471. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +57 -0
  472. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -0
  473. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts +6 -0
  474. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts.map +1 -0
  475. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js +74 -0
  476. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js.map +1 -0
  477. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts +14 -0
  478. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts.map +1 -0
  479. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js +17 -0
  480. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js.map +1 -0
  481. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts +76 -0
  482. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts.map +1 -0
  483. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js +551 -0
  484. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js.map +1 -0
  485. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts +7 -0
  486. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts.map +1 -0
  487. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js +136 -0
  488. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js.map +1 -0
  489. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +21 -0
  490. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -0
  491. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +281 -0
  492. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -0
  493. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts +16 -0
  494. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts.map +1 -0
  495. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js +163 -0
  496. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js.map +1 -0
  497. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +5 -0
  498. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -0
  499. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +125 -0
  500. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -0
  501. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts +17 -0
  502. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts.map +1 -0
  503. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js +188 -0
  504. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js.map +1 -0
  505. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts +9 -0
  506. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts.map +1 -0
  507. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js +55 -0
  508. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js.map +1 -0
  509. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +37 -0
  510. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -0
  511. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +36 -0
  512. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -0
  513. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts +5 -0
  514. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts.map +1 -0
  515. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js +28 -0
  516. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js.map +1 -0
  517. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts +7 -0
  518. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts.map +1 -0
  519. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js +108 -0
  520. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js.map +1 -0
  521. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +7 -0
  522. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -0
  523. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +218 -0
  524. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -0
  525. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts +10 -0
  526. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts.map +1 -0
  527. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js +81 -0
  528. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js.map +1 -0
  529. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts +10 -0
  530. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts.map +1 -0
  531. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js +15 -0
  532. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js.map +1 -0
  533. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts +8 -0
  534. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts.map +1 -0
  535. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js +83 -0
  536. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js.map +1 -0
  537. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts +9 -0
  538. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts.map +1 -0
  539. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js +144 -0
  540. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js.map +1 -0
  541. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +17 -0
  542. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -0
  543. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +52 -0
  544. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -0
  545. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +11 -0
  546. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -0
  547. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +221 -0
  548. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -0
  549. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +22 -0
  550. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -0
  551. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +155 -0
  552. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -0
  553. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +14 -0
  554. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -0
  555. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +213 -0
  556. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -0
  557. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts +14 -0
  558. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts.map +1 -0
  559. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js +200 -0
  560. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js.map +1 -0
  561. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts +11 -0
  562. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts.map +1 -0
  563. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +200 -0
  564. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -0
  565. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts +6 -0
  566. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts.map +1 -0
  567. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js +47 -0
  568. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js.map +1 -0
  569. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts +15 -0
  570. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts.map +1 -0
  571. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js +132 -0
  572. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js.map +1 -0
  573. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts +13 -0
  574. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts.map +1 -0
  575. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js +336 -0
  576. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js.map +1 -0
  577. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts +10 -0
  578. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts.map +1 -0
  579. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js +86 -0
  580. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js.map +1 -0
  581. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts +8 -0
  582. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts.map +1 -0
  583. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js +34 -0
  584. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js.map +1 -0
  585. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts +4 -0
  586. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -0
  587. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +170 -0
  588. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -0
  589. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts +33 -0
  590. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -0
  591. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +108 -0
  592. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -0
  593. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts +10 -0
  594. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -0
  595. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +38 -0
  596. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -0
  597. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts +10 -0
  598. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts.map +1 -0
  599. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js +358 -0
  600. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js.map +1 -0
  601. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts +25 -0
  602. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts.map +1 -0
  603. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js +78 -0
  604. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js.map +1 -0
  605. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts +9 -0
  606. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts.map +1 -0
  607. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js +56 -0
  608. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js.map +1 -0
  609. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +11 -0
  610. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -0
  611. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +106 -0
  612. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -0
  613. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts +18 -0
  614. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts.map +1 -0
  615. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js +240 -0
  616. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js.map +1 -0
  617. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts +5 -0
  618. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts.map +1 -0
  619. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js +78 -0
  620. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js.map +1 -0
  621. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts +42 -0
  622. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts.map +1 -0
  623. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js +117 -0
  624. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js.map +1 -0
  625. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts +11 -0
  626. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -0
  627. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +111 -0
  628. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -0
  629. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +16 -0
  630. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -0
  631. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +455 -0
  632. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -0
  633. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts +26 -0
  634. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts.map +1 -0
  635. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js +22 -0
  636. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js.map +1 -0
  637. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts +12 -0
  638. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts.map +1 -0
  639. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js +123 -0
  640. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js.map +1 -0
  641. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts +16 -0
  642. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts.map +1 -0
  643. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js +99 -0
  644. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js.map +1 -0
  645. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts +106 -0
  646. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts.map +1 -0
  647. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js +6 -0
  648. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js.map +1 -0
  649. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts +14 -0
  650. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts.map +1 -0
  651. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js +21 -0
  652. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js.map +1 -0
  653. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts +9 -0
  654. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts.map +1 -0
  655. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js +22 -0
  656. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js.map +1 -0
  657. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +22 -0
  658. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -0
  659. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +13 -0
  660. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -0
  661. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts +21 -0
  662. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts.map +1 -0
  663. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js +190 -0
  664. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js.map +1 -0
  665. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts +10 -0
  666. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts.map +1 -0
  667. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js +438 -0
  668. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js.map +1 -0
  669. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts +8 -0
  670. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts.map +1 -0
  671. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js +69 -0
  672. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js.map +1 -0
  673. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts +6 -0
  674. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts.map +1 -0
  675. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js +62 -0
  676. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js.map +1 -0
  677. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts +5 -0
  678. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts.map +1 -0
  679. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js +17 -0
  680. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js.map +1 -0
  681. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts +7 -0
  682. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts.map +1 -0
  683. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js +67 -0
  684. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js.map +1 -0
  685. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts +12 -0
  686. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts.map +1 -0
  687. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js +198 -0
  688. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js.map +1 -0
  689. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts +15 -0
  690. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts.map +1 -0
  691. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js +111 -0
  692. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js.map +1 -0
  693. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +9 -0
  694. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -0
  695. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +161 -0
  696. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -0
  697. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts +6 -0
  698. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts.map +1 -0
  699. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js +31 -0
  700. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js.map +1 -0
  701. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +9 -0
  702. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -0
  703. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +103 -0
  704. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -0
  705. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts +49 -0
  706. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts.map +1 -0
  707. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js +190 -0
  708. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js.map +1 -0
  709. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts +9 -0
  710. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts.map +1 -0
  711. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js +44 -0
  712. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js.map +1 -0
  713. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts +6 -0
  714. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts.map +1 -0
  715. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js +6 -0
  716. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js.map +1 -0
  717. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +14 -0
  718. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -0
  719. package/node_modules/@xrkseek/server-http/dist/host-wire.js +15 -0
  720. package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -0
  721. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts +12 -0
  722. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts.map +1 -0
  723. package/node_modules/@xrkseek/server-http/dist/http-json.js +40 -0
  724. package/node_modules/@xrkseek/server-http/dist/http-json.js.map +1 -0
  725. package/node_modules/@xrkseek/server-http/dist/index.d.ts +12 -1
  726. package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
  727. package/node_modules/@xrkseek/server-http/dist/index.js +12 -1
  728. package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
  729. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts +19 -0
  730. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts.map +1 -0
  731. package/node_modules/@xrkseek/server-http/dist/public-routes.js +34 -0
  732. package/node_modules/@xrkseek/server-http/dist/public-routes.js.map +1 -0
  733. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +13 -0
  734. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -0
  735. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +58 -0
  736. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -0
  737. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +16 -0
  738. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -0
  739. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +49 -0
  740. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -0
  741. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts +35 -0
  742. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -0
  743. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +103 -0
  744. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -0
  745. package/node_modules/@xrkseek/server-http/package.json +2 -1
  746. package/node_modules/@xrkseek/server-loader/dist/host.d.ts +6 -0
  747. package/node_modules/@xrkseek/server-loader/dist/host.d.ts.map +1 -0
  748. package/node_modules/@xrkseek/server-loader/dist/host.js +11 -0
  749. package/node_modules/@xrkseek/server-loader/dist/host.js.map +1 -0
  750. package/node_modules/@xrkseek/server-loader/dist/index.d.ts +2 -1
  751. package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
  752. package/node_modules/@xrkseek/server-loader/dist/index.js +1 -0
  753. package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
  754. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -0
  755. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
  756. package/node_modules/@xrkseek/server-loader/dist/kinds.js +5 -0
  757. package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
  758. package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
  759. package/node_modules/@xrkseek/server-loader/dist/load.js +5 -0
  760. package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
  761. package/node_modules/@xrkseek/server-loader/dist/types.d.ts +40 -0
  762. package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
  763. package/node_modules/@xrkseek/xrk-file-reference/README.i18n.yaml +6 -0
  764. package/node_modules/@xrkseek/xrk-file-reference/README.md +22 -0
  765. package/node_modules/@xrkseek/xrk-file-reference/README.zh.md +22 -0
  766. package/node_modules/@xrkseek/xrk-file-reference/package.json +68 -0
  767. package/node_modules/@xrkseek/xrk-file-reference-local/README.i18n.yaml +6 -0
  768. package/node_modules/@xrkseek/xrk-file-reference-local/README.md +45 -0
  769. package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +45 -0
  770. package/node_modules/@xrkseek/xrk-file-reference-local/package.json +56 -0
  771. package/node_modules/@xrkseek/xrk-session-reference/README.i18n.yaml +6 -0
  772. package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -0
  773. package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -0
  774. package/node_modules/@xrkseek/xrk-session-reference/package.json +79 -0
  775. package/node_modules/detect-libc/LICENSE +201 -0
  776. package/node_modules/detect-libc/README.md +163 -0
  777. package/node_modules/detect-libc/index.d.ts +14 -0
  778. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  779. package/node_modules/detect-libc/lib/elf.js +39 -0
  780. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  781. package/node_modules/detect-libc/lib/process.js +24 -0
  782. package/node_modules/detect-libc/package.json +44 -0
  783. package/node_modules/semver/LICENSE +15 -0
  784. package/node_modules/semver/README.md +680 -0
  785. package/node_modules/semver/bin/semver.js +195 -0
  786. package/node_modules/semver/classes/comparator.js +143 -0
  787. package/node_modules/semver/classes/index.js +7 -0
  788. package/node_modules/semver/classes/range.js +577 -0
  789. package/node_modules/semver/classes/semver.js +350 -0
  790. package/node_modules/semver/functions/clean.js +8 -0
  791. package/node_modules/semver/functions/cmp.js +54 -0
  792. package/node_modules/semver/functions/coerce.js +62 -0
  793. package/node_modules/semver/functions/compare-build.js +9 -0
  794. package/node_modules/semver/functions/compare-loose.js +5 -0
  795. package/node_modules/semver/functions/compare.js +7 -0
  796. package/node_modules/semver/functions/diff.js +60 -0
  797. package/node_modules/semver/functions/eq.js +5 -0
  798. package/node_modules/semver/functions/gt.js +5 -0
  799. package/node_modules/semver/functions/gte.js +5 -0
  800. package/node_modules/semver/functions/inc.js +21 -0
  801. package/node_modules/semver/functions/lt.js +5 -0
  802. package/node_modules/semver/functions/lte.js +5 -0
  803. package/node_modules/semver/functions/major.js +5 -0
  804. package/node_modules/semver/functions/minor.js +5 -0
  805. package/node_modules/semver/functions/neq.js +5 -0
  806. package/node_modules/semver/functions/parse.js +18 -0
  807. package/node_modules/semver/functions/patch.js +5 -0
  808. package/node_modules/semver/functions/prerelease.js +8 -0
  809. package/node_modules/semver/functions/rcompare.js +5 -0
  810. package/node_modules/semver/functions/rsort.js +5 -0
  811. package/node_modules/semver/functions/satisfies.js +12 -0
  812. package/node_modules/semver/functions/sort.js +5 -0
  813. package/node_modules/semver/functions/truncate.js +48 -0
  814. package/node_modules/semver/functions/valid.js +8 -0
  815. package/node_modules/semver/index.js +93 -0
  816. package/node_modules/semver/internal/constants.js +37 -0
  817. package/node_modules/semver/internal/debug.js +11 -0
  818. package/node_modules/semver/internal/identifiers.js +29 -0
  819. package/node_modules/semver/internal/lrucache.js +42 -0
  820. package/node_modules/semver/internal/parse-options.js +17 -0
  821. package/node_modules/semver/internal/re.js +223 -0
  822. package/node_modules/semver/package.json +78 -0
  823. package/node_modules/semver/preload.js +4 -0
  824. package/node_modules/semver/range.bnf +17 -0
  825. package/node_modules/semver/ranges/gtr.js +6 -0
  826. package/node_modules/semver/ranges/intersects.js +9 -0
  827. package/node_modules/semver/ranges/ltr.js +6 -0
  828. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  829. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  830. package/node_modules/semver/ranges/min-version.js +63 -0
  831. package/node_modules/semver/ranges/outside.js +82 -0
  832. package/node_modules/semver/ranges/simplify.js +49 -0
  833. package/node_modules/semver/ranges/subset.js +249 -0
  834. package/node_modules/semver/ranges/to-comparators.js +10 -0
  835. package/node_modules/semver/ranges/valid.js +13 -0
  836. package/node_modules/sharp/LICENSE +191 -0
  837. package/node_modules/sharp/README.md +112 -0
  838. package/node_modules/sharp/dist/channel.cjs +177 -0
  839. package/node_modules/sharp/dist/channel.mjs +177 -0
  840. package/node_modules/sharp/dist/colour.cjs +199 -0
  841. package/node_modules/sharp/dist/colour.mjs +199 -0
  842. package/node_modules/sharp/dist/composite.cjs +213 -0
  843. package/node_modules/sharp/dist/composite.mjs +213 -0
  844. package/node_modules/sharp/dist/constructor.cjs +511 -0
  845. package/node_modules/sharp/dist/constructor.mjs +511 -0
  846. package/node_modules/sharp/dist/index.cjs +25 -0
  847. package/node_modules/sharp/dist/index.d.cts +1999 -0
  848. package/node_modules/sharp/dist/index.d.mts +2046 -0
  849. package/node_modules/sharp/dist/index.mjs +25 -0
  850. package/node_modules/sharp/dist/input.cjs +814 -0
  851. package/node_modules/sharp/dist/input.mjs +814 -0
  852. package/node_modules/sharp/dist/is.cjs +143 -0
  853. package/node_modules/sharp/dist/is.mjs +143 -0
  854. package/node_modules/sharp/dist/libvips.cjs +212 -0
  855. package/node_modules/sharp/dist/libvips.mjs +212 -0
  856. package/node_modules/sharp/dist/operation.cjs +998 -0
  857. package/node_modules/sharp/dist/operation.mjs +998 -0
  858. package/node_modules/sharp/dist/output.cjs +1788 -0
  859. package/node_modules/sharp/dist/output.mjs +1788 -0
  860. package/node_modules/sharp/dist/resize.cjs +617 -0
  861. package/node_modules/sharp/dist/resize.mjs +617 -0
  862. package/node_modules/sharp/dist/sharp.cjs +174 -0
  863. package/node_modules/sharp/dist/sharp.mjs +174 -0
  864. package/node_modules/sharp/dist/utility.cjs +301 -0
  865. package/node_modules/sharp/dist/utility.mjs +301 -0
  866. package/node_modules/sharp/install/build.js +38 -0
  867. package/node_modules/sharp/lib/index.d.ts +1999 -0
  868. package/node_modules/sharp/package.json +227 -0
  869. package/node_modules/sharp/src/binding.gyp +303 -0
  870. package/node_modules/sharp/src/common.cc +1183 -0
  871. package/node_modules/sharp/src/common.h +421 -0
  872. package/node_modules/sharp/src/metadata.cc +404 -0
  873. package/node_modules/sharp/src/metadata.h +95 -0
  874. package/node_modules/sharp/src/operations.cc +516 -0
  875. package/node_modules/sharp/src/operations.h +137 -0
  876. package/node_modules/sharp/src/pipeline.cc +1948 -0
  877. package/node_modules/sharp/src/pipeline.h +422 -0
  878. package/node_modules/sharp/src/sharp.cc +43 -0
  879. package/node_modules/sharp/src/stats.cc +186 -0
  880. package/node_modules/sharp/src/stats.h +62 -0
  881. package/node_modules/sharp/src/utilities.cc +289 -0
  882. package/node_modules/sharp/src/utilities.h +22 -0
  883. package/node_modules/undici-types/LICENSE +21 -0
  884. package/node_modules/undici-types/README.md +6 -0
  885. package/node_modules/undici-types/agent.d.ts +32 -0
  886. package/node_modules/undici-types/api.d.ts +43 -0
  887. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  888. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  889. package/node_modules/undici-types/cache.d.ts +36 -0
  890. package/node_modules/undici-types/client-stats.d.ts +15 -0
  891. package/node_modules/undici-types/client.d.ts +108 -0
  892. package/node_modules/undici-types/connector.d.ts +34 -0
  893. package/node_modules/undici-types/content-type.d.ts +21 -0
  894. package/node_modules/undici-types/cookies.d.ts +30 -0
  895. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  896. package/node_modules/undici-types/dispatcher.d.ts +276 -0
  897. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  898. package/node_modules/undici-types/errors.d.ts +161 -0
  899. package/node_modules/undici-types/eventsource.d.ts +66 -0
  900. package/node_modules/undici-types/fetch.d.ts +211 -0
  901. package/node_modules/undici-types/formdata.d.ts +108 -0
  902. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  903. package/node_modules/undici-types/global-origin.d.ts +7 -0
  904. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  905. package/node_modules/undici-types/handlers.d.ts +15 -0
  906. package/node_modules/undici-types/header.d.ts +160 -0
  907. package/node_modules/undici-types/index.d.ts +88 -0
  908. package/node_modules/undici-types/interceptors.d.ts +73 -0
  909. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  910. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  911. package/node_modules/undici-types/mock-client.d.ts +27 -0
  912. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  913. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  914. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  915. package/node_modules/undici-types/package.json +55 -0
  916. package/node_modules/undici-types/patch.d.ts +29 -0
  917. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  918. package/node_modules/undici-types/pool.d.ts +41 -0
  919. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  920. package/node_modules/undici-types/readable.d.ts +68 -0
  921. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  922. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  923. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  924. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  925. package/node_modules/undici-types/util.d.ts +18 -0
  926. package/node_modules/undici-types/utility.d.ts +7 -0
  927. package/node_modules/undici-types/webidl.d.ts +341 -0
  928. package/node_modules/undici-types/websocket.d.ts +186 -0
  929. package/package.json +23 -1
  930. package/product-web/assets/{index-CSGf6Qzd.css → index-C0u-TtQQ.css} +1 -1
  931. package/product-web/assets/index-CHKZdZNt.js +112 -0
  932. package/product-web/assets/index-CHKZdZNt.js.map +1 -0
  933. package/product-web/assets/langs/{php-DY2VakOf.js → php-9bx0az3O.js} +2 -2
  934. package/product-web/assets/langs/{php-DY2VakOf.js.map → php-9bx0az3O.js.map} +1 -1
  935. package/product-web/assets/langs/{ruby-hwtoiFmS.js → ruby-HDLHRjSL.js} +2 -2
  936. package/product-web/assets/langs/{ruby-hwtoiFmS.js.map → ruby-HDLHRjSL.js.map} +1 -1
  937. package/product-web/assets/{vendor-CldRVjca.js → vendor-CeMKrCZm.js} +36 -35
  938. package/product-web/assets/vendor-CeMKrCZm.js.map +1 -0
  939. package/product-web/boot.json +20 -1
  940. package/product-web/index.html +3 -3
  941. package/product-web/plugins/@xrkseek/client-modules/client.js +83 -12
  942. package/product-web/plugins/@xrkseek/client-runtime/client.js +1 -37
  943. package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +39 -39
  944. package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
  945. package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
  946. package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +965 -561
  947. package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
  948. package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +24 -24
  949. package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
  950. package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +83 -27
  951. package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +9 -9
  952. package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
  953. package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
  954. package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +15 -15
  955. package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +2 -2
  956. package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
  957. package/product-web/plugins/@xrkseek/client-ui-reference/client.js +148 -0
  958. package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +13 -13
  959. package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +56 -56
  960. package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
  961. package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +43 -43
  962. package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +14 -14
  963. package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
  964. package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +289 -157
  965. package/product-web/plugins/@xrkseek/client-ui-theme/client.js +4 -4
  966. package/product-web/plugins/@xrkseek/client-ui-tool/client.js +33 -33
  967. package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +144 -165
  968. package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +26 -26
  969. package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +15 -15
  970. package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +54 -54
  971. package/product-web/plugins/@xrkseek/xrk-api-remotes/client.js +20 -1
  972. package/product-web/assets/index-CcF0Sxxg.js +0 -297
  973. package/product-web/assets/index-CcF0Sxxg.js.map +0 -1
  974. package/product-web/assets/vendor-CldRVjca.js.map +0 -1
@@ -0,0 +1,696 @@
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
2
+ // @ts-nocheck
3
+ /** Ported from MIT dsh-cost-meter/lib/coding-plans.js */
4
+ async function fetchWithTimeout(url, init, options) {
5
+ const timeoutMs = options?.timeoutMs ?? 15000;
6
+ const controller = new AbortController();
7
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
8
+ try {
9
+ return await fetch(url, { ...init, signal: controller.signal });
10
+ }
11
+ finally {
12
+ clearTimeout(timer);
13
+ }
14
+ }
15
+ /**
16
+ * Coding Plan 额度查询 adapter 框架(多厂商)。
17
+ *
18
+ * 每家厂商一个 adapter:固定官方端点白名单 + Key 发现线索(env/CLI 文件)+
19
+ * 响应解析器。解析器为纯函数(可单测);网络与凭据解析在宿主侧(index.js)。
20
+ *
21
+ * 归一化输出:windows = { [name]: { percent: 0-100, resetsAt: ISO 字符串 } }。
22
+ * 凭证安全:每个 adapter 的 URL 均为硬编码官方域名,Key 永不发往其它域。
23
+ *
24
+ * 实测确认(2026-08):
25
+ * - Anthropic OAuth usage 端点存活(未授权返回限流/401);
26
+ * - Z.ai / 智谱 Coding Plan usage 端点存活(401「token expired or incorrect」);
27
+ * - MiniMax Token Plan remains 端点存活(1004 需 Authorization);
28
+ * - Kimi PAYG 余额端点 api.moonshot.cn/v1/users/me/balance 存活(401 incorrect_api_key,官方文档明确);
29
+ * Kimi Code 订阅周窗/5小时窗暂无 API-Key 化公开端点(仅 kimi.com 控制台),以余额窗口接入;
30
+ * - OpenRouter credits 端点 openrouter.ai/api/v1/credits 存活(401,官方文档明确);
31
+ * - SiliconFlow 用户信息端点 api.siliconflow.cn/v1/user/info 存活(30014 Token is invalid);
32
+ * - CommandCode(commandcode.ai)billing credits 端点存活(401 unauthorized;issue #30):
33
+ * GET api.commandcode.ai/alpha/billing/credits,窗口(fiveHour/weekly)+ 月度 Credits 余额;
34
+ * - SCNet(超算互联网)Token Plan 仅有 sk-tp- 专属推理端点(api.scnet.cn),额度用量只在控制台
35
+ * 「模型服务 → Token Plan → 我的订阅/Token 用量」可见,无 API-Key 化查询端点——以本地
36
+ * Credits 计量接入(官方抵扣表折算,见 SCNET_CREDIT_RATES;issue #26);
37
+ * - 百炼 Coding Plan / OpenAI Codex / Gemini Code Assist / GitHub Copilot 个人版暂无 API-Key 化公开用量端点(仅控制台/组织级 API),不接入。
38
+ */
39
+ export const CODING_PLAN_PROVIDERS = {
40
+ anthropic: {
41
+ label: 'Anthropic (Claude Pro/Max)',
42
+ credentialEnvs: ['ANTHROPIC_OAUTH_TOKEN', 'CLAUDE_CODE_OAUTH_TOKEN'],
43
+ keyHint: 'Claude Code OAuth access token(~/.claude/.credentials.json)',
44
+ },
45
+ zai: {
46
+ label: 'Z.ai / 智谱 GLM Coding Plan',
47
+ credentialEnvs: ['ZAI_API_KEY', 'BIGMODEL_API_KEY'],
48
+ keyHint: 'Coding Plan 专属 API Key(z.ai / bigmodel.cn 控制台)',
49
+ },
50
+ minimax: {
51
+ label: 'MiniMax Token Plan',
52
+ credentialEnvs: ['MINIMAX_API_KEY'],
53
+ keyHint: 'MiniMax API Key(sk-* / sk-cp-*)',
54
+ },
55
+ kimi: {
56
+ label: 'Kimi / Moonshot',
57
+ credentialEnvs: ['MOONSHOT_API_KEY', 'KIMI_API_KEY'],
58
+ keyHint: 'Moonshot 开放平台 API Key(sk-*;Kimi Code 订阅周窗暂无 API-Key 化端点,此处显示 PAYG 余额)',
59
+ },
60
+ openrouter: {
61
+ label: 'OpenRouter',
62
+ credentialEnvs: ['OPENROUTER_API_KEY'],
63
+ keyHint: 'OpenRouter API Key(sk-or-*;显示预付 credits 已用%)',
64
+ },
65
+ siliconflow: {
66
+ label: 'SiliconFlow 硅基流动',
67
+ credentialEnvs: ['SILICONFLOW_API_KEY'],
68
+ keyHint: 'SiliconFlow API Key(sk-*;显示账户余额)',
69
+ },
70
+ commandcode: {
71
+ label: 'CommandCode',
72
+ credentialEnvs: ['COMMANDCODE_API_KEY'],
73
+ keyHint: 'commandcode.ai API Key(user_*;显示 5 小时/周窗口用量% 与月度 Credits 余额)',
74
+ },
75
+ scnet: {
76
+ label: 'SCNet 超算互联网 Token Plan',
77
+ credentialEnvs: [],
78
+ // SCNet 未提供 API-Key 化的额度查询端点(仅控制台可见),不走网络:
79
+ // 按官方 Credits 抵扣表(2026-08-11)由本地账本估算,无需任何凭据。
80
+ keyHint: '无需凭据:按官方 Credits 抵扣表(2026-08-11 生效)由本地账本估算月度用量',
81
+ },
82
+ };
83
+ export const CODING_PLAN_PROVIDER_IDS = Object.keys(CODING_PLAN_PROVIDERS);
84
+ /** 归一化百分比:0-1 视为小数,>=1 视为已是百分数;非法 → null。 */
85
+ export function normalizePercent(value) {
86
+ const n = Number(value);
87
+ if (!Number.isFinite(n) || n < 0)
88
+ return null;
89
+ const pct = n <= 1 ? n * 100 : n;
90
+ return Math.min(100, Math.round(pct * 10) / 10);
91
+ }
92
+ /** 归一化重置时刻:unix 秒 / unix 毫秒 / ISO 字符串 → ISO 字符串;非法 → ''。 */
93
+ export function normalizeResetAt(value) {
94
+ if (typeof value === 'string' && value.length > 0) {
95
+ const ms = Date.parse(value);
96
+ if (Number.isFinite(ms))
97
+ return new Date(ms).toISOString();
98
+ const asNum = Number(value);
99
+ if (Number.isFinite(asNum) && asNum > 0)
100
+ return new Date(asNum > 1e12 ? asNum : asNum * 1000).toISOString();
101
+ return '';
102
+ }
103
+ const n = Number(value);
104
+ if (!Number.isFinite(n) || n <= 0)
105
+ return '';
106
+ return new Date(n > 1e12 ? n : n * 1000).toISOString();
107
+ }
108
+ /** 组装单个百分比窗口;percent 非法时返回 null。 */
109
+ function windowOf(percent, resetsAt) {
110
+ const pct = normalizePercent(percent);
111
+ if (pct === null)
112
+ return null;
113
+ return { percent: pct, resetsAt: normalizeResetAt(resetsAt) };
114
+ }
115
+ /** 组装文本窗口(余额等无百分比的量):text 空 → null。 */
116
+ function textWindowOf(text) {
117
+ const s = typeof text === 'string' ? text.trim() : String(text ?? '').trim();
118
+ return s.length > 0 ? { resetsAt: '', text: s } : null;
119
+ }
120
+ /**
121
+ * 解析 Anthropic OAuth 用量响应(GET https://api.anthropic.com/api/oauth/usage)。
122
+ * 形如 { five_hour: { utilization, resets_at }, seven_day: {...}, seven_day_sonnet: {...}, extra_usage: {...} }。
123
+ * utilization 为 0-100 百分数,resets_at 为 unix 秒。
124
+ */
125
+ export function parseAnthropicUsage(data) {
126
+ if (data === null || typeof data !== 'object')
127
+ return null;
128
+ const windows = {};
129
+ for (const [name, raw] of Object.entries(data)) {
130
+ if (raw === null || typeof raw !== 'object' || Array.isArray(raw))
131
+ continue;
132
+ const win = windowOf(raw.utilization ?? raw.used_percentage, raw.resets_at ?? raw.reset_at);
133
+ if (win !== null)
134
+ windows[name] = win;
135
+ }
136
+ return Object.keys(windows).length > 0 ? windows : null;
137
+ }
138
+ /**
139
+ * 解析 Z.ai / 智谱 GLM Coding Plan 用量响应。
140
+ * 兼容三种已见形态(按优先级):
141
+ * - { data: { limits: [{ type, unit, number, percentage, nextResetTime, usage,
142
+ * currentValue, ... }], level } }(2026-08 起的监控端点
143
+ * /api/monitor/usage/quota/limit,issue #42;TOKENS_LIMIT 为 token 窗口(Pro/Max),
144
+ * CREDIT_LIMIT 为 Credit 计费窗口(Lite,percentage/currentValue 语义与
145
+ * TOKENS_LIMIT 一致,issue #44),两者均按 unit 3=小时档、6=周档映射;
146
+ * TIME_LIMIT 为 MCP/工具调用月度额度、量纲不同不纳入;unit 缺失时按
147
+ * nextResetTime 排序兜底——0% 用量的滚动窗口不返回重置时间,排最前)
148
+ * - { plans: [{ status, total_units, used_units, available_units, period_end, capabilities }] }
149
+ * (旧计费端点;period_end 语义按数值大小推断:重置跨度 >1 天视为周档,否则为 5 小时档)
150
+ * - { five_hour: { utilization|percent, resets_at }, weekly|week|seven_day: {...} }
151
+ */
152
+ export function parseZaiUsage(data) {
153
+ if (data === null || typeof data !== 'object')
154
+ return null;
155
+ const windows = {};
156
+ // 形态零:监控端点 quota/limit(issue #42)。
157
+ {
158
+ const limits = data.data !== null && typeof data.data === 'object' && Array.isArray(data.data.limits)
159
+ ? data.data.limits : null;
160
+ if (limits !== null) {
161
+ // 已按 unit 明确分配的窗口;unit 缺失/未知的条目留待重置时间排序兜底。
162
+ const monWindows = {};
163
+ const rest = [];
164
+ for (const limit of limits) {
165
+ // TOKENS_LIMIT(Pro/Max token 窗口)与 CREDIT_LIMIT(Lite Credit 窗口,issue #44)
166
+ // 的 percentage/currentValue/usage 与 unit 语义完全一致,一并接受。
167
+ if (limit === null || typeof limit !== 'object' || (limit.type !== 'TOKENS_LIMIT' && limit.type !== 'CREDIT_LIMIT'))
168
+ continue;
169
+ // percentage 已是 0-100 百分数;缺失时用 currentValue/usage 反推。
170
+ const pct = limit.percentage !== undefined ? clampPct(Number(limit.percentage))
171
+ : Number.isFinite(Number(limit.usage)) && Number(limit.usage) > 0 && Number.isFinite(Number(limit.currentValue))
172
+ ? clampPct((Number(limit.currentValue) / Number(limit.usage)) * 100)
173
+ : null;
174
+ if (pct === null)
175
+ continue;
176
+ const resetsAt = normalizeResetAt(limit.nextResetTime);
177
+ const unit = Number(limit.unit);
178
+ if (unit === 3 && monWindows.fiveHour === undefined)
179
+ monWindows.fiveHour = { percent: pct, resetsAt };
180
+ else if (unit === 6 && monWindows.weekly === undefined)
181
+ monWindows.weekly = { percent: pct, resetsAt };
182
+ else if (!Number.isFinite(unit))
183
+ rest.push({ pct, resetsAt, resetMs: Number(limit.nextResetTime) });
184
+ }
185
+ if (rest.length > 0) {
186
+ // 无 unit 条目:重置时间升序(0% 滚动窗口无重置时间视为最近,排最前),
187
+ // 依次补位到 5 小时档 → 周档(老套餐仅一条时只出 5 小时档)。
188
+ rest.sort((a, b) => {
189
+ const av = Number.isFinite(a.resetMs) && a.resetMs > 0 ? a.resetMs : 0;
190
+ const bv = Number.isFinite(b.resetMs) && b.resetMs > 0 ? b.resetMs : 0;
191
+ return av - bv;
192
+ });
193
+ for (const item of rest) {
194
+ if (monWindows.fiveHour === undefined)
195
+ monWindows.fiveHour = { percent: item.pct, resetsAt: item.resetsAt };
196
+ else if (monWindows.weekly === undefined)
197
+ monWindows.weekly = { percent: item.pct, resetsAt: item.resetsAt };
198
+ }
199
+ }
200
+ if (Object.keys(monWindows).length > 0)
201
+ return monWindows;
202
+ // limits 中无可解析 token 窗口:落回后续形态,最终由调用方透传错误信封。
203
+ }
204
+ }
205
+ // 形态一:plans 数组(zcode 逆向确认的计费 API 形状)。
206
+ if (Array.isArray(data.plans)) {
207
+ for (const plan of data.plans) {
208
+ if (plan === null || typeof plan !== 'object')
209
+ continue;
210
+ const total = Number(plan.total_units);
211
+ const used = Number(plan.used_units);
212
+ let pct;
213
+ if (Number.isFinite(total) && total > 0 && Number.isFinite(used)) {
214
+ pct = Math.min(100, (used / total) * 100);
215
+ }
216
+ else {
217
+ pct = normalizePercent(plan.utilization ?? plan.percent ?? plan.used_percentage);
218
+ }
219
+ if (pct === null)
220
+ continue;
221
+ const spanMs = Number(plan.period_end) * 1000 - Date.now();
222
+ // 5 小时档重置跨度必 <1 天;周档最长 7 天——以 1 天为界区分两档。
223
+ const key = Number.isFinite(spanMs) && spanMs > 24 * 3600_000 ? 'weekly' : 'fiveHour';
224
+ windows[key] = { percent: Math.round(pct * 10) / 10, resetsAt: normalizeResetAt(plan.period_end) };
225
+ }
226
+ }
227
+ // 形态二:与 Anthropic 相同的扁平窗口对象。
228
+ for (const [name, raw] of Object.entries(data)) {
229
+ if (name === 'plans' || raw === null || typeof raw !== 'object' || Array.isArray(raw))
230
+ continue;
231
+ const win = windowOf(raw.utilization ?? raw.percent ?? raw.used_percentage, raw.resets_at ?? raw.reset_at ?? raw.resetsAt);
232
+ if (win !== null)
233
+ windows[name] = win;
234
+ }
235
+ return Object.keys(windows).length > 0 ? windows : null;
236
+ }
237
+ /** 0-100 已用百分比,保留 1 位。 */
238
+ function clampPct(p) {
239
+ return Math.max(0, Math.min(100, Math.round(p * 10) / 10));
240
+ }
241
+ /**
242
+ * MiniMax 窗口剩余百分比。优先 *_remaining_percent(现行 Token Plan,total 常为 0);
243
+ * 否则用 total/remain 或 total/used 反推。非法 → null。
244
+ */
245
+ function remainingPercentOf(row, remainPctKey, totalKey, usedKey, remainKey) {
246
+ if (row === null || typeof row !== 'object')
247
+ return null;
248
+ const rp = Number(row[remainPctKey]);
249
+ if (Number.isFinite(rp))
250
+ return Math.min(100, Math.max(0, rp <= 1 ? rp * 100 : rp));
251
+ const total = Number(row[totalKey]);
252
+ const used = Number(row[usedKey]);
253
+ const remain = Number(row[remainKey]);
254
+ if (Number.isFinite(total) && total > 0) {
255
+ if (Number.isFinite(remain))
256
+ return (remain / total) * 100;
257
+ if (Number.isFinite(used))
258
+ return ((total - used) / total) * 100;
259
+ }
260
+ return null;
261
+ }
262
+ /**
263
+ * 从单条 MiniMax 记录抽出 5h / 7d 窗口。percent 存已用%(与其它厂商一致);
264
+ * status=3 表示不限量,跳过该窗。
265
+ */
266
+ function windowsFromMiniMaxRecord(row) {
267
+ if (row === null || typeof row !== 'object')
268
+ return {};
269
+ const windows = {};
270
+ if (Number(row.current_interval_status) !== 3) {
271
+ const remain = remainingPercentOf(row, 'current_interval_remaining_percent', 'current_interval_total_count', 'current_interval_usage_count', 'current_interval_remain_count');
272
+ if (remain !== null) {
273
+ windows['5h'] = {
274
+ percent: clampPct(100 - remain),
275
+ resetsAt: normalizeResetAt(row.end_time ?? row.reset_time ?? row.next_reset_time),
276
+ };
277
+ }
278
+ }
279
+ if (Number(row.current_weekly_status) !== 3) {
280
+ const remain = remainingPercentOf(row, 'current_weekly_remaining_percent', 'current_weekly_total_count', 'current_weekly_usage_count', 'current_weekly_remain_count');
281
+ if (remain !== null) {
282
+ windows['7d'] = {
283
+ percent: clampPct(100 - remain),
284
+ resetsAt: normalizeResetAt(row.weekly_end_time),
285
+ };
286
+ }
287
+ }
288
+ return windows;
289
+ }
290
+ /** 选 chat/通用额度行:general → MiniMax-M* → 第一条能解析出窗口的记录。跳过仅 video/speech 的无限量行。 */
291
+ function pickMiniMaxModelRow(rows) {
292
+ const list = rows.filter(row => row !== null && typeof row === 'object');
293
+ const byName = name => list.find(row => String(row.model_name ?? '').toLowerCase() === name);
294
+ return byName('general')
295
+ ?? list.find(row => /^minimax-m/i.test(String(row.model_name ?? '')))
296
+ ?? list.find(row => Object.keys(windowsFromMiniMaxRecord(row)).length > 0)
297
+ ?? list[0]
298
+ ?? null;
299
+ }
300
+ /**
301
+ * 解析 MiniMax 用量响应。兼容四种官方形态:
302
+ * - Token Plan(2026-08 现行,model_remains):GET https://www.minimaxi.com|io/v1/token_plan/remains
303
+ * { model_remains: [{ model_name, current_interval_remaining_percent, current_weekly_remaining_percent, ... }] }
304
+ * total_count 常为 0,以 remaining_percent 为准;取 general(或 MiniMax-M*)一行抽出 5h/7d,不按模型拆条;
305
+ * - Token Plan 平铺结构(issue #20):根节点(或 data.data)直含 current_interval_* 与 current_weekly_*;
306
+ * - Token Plan 旧数组形态:窗口数组字段,条目含 total/used/remain 与 interval 标签;
307
+ * - Coding Plan 旧计数制:model_remains 仅有 total/used、无 remaining_percent 时汇总。
308
+ */
309
+ export function parseMiniMaxRemains(data) {
310
+ if (data === null || typeof data !== 'object')
311
+ return null;
312
+ const payload = data.data !== null && typeof data.data === 'object' && !Array.isArray(data.data) ? data.data : data;
313
+ const pickArray = (...keys) => {
314
+ for (const key of keys) {
315
+ const direct = Array.isArray(data?.[key]) ? data[key] : null;
316
+ const nested = Array.isArray(data?.data?.[key]) ? data.data[key] : null;
317
+ if (direct !== null)
318
+ return direct;
319
+ if (nested !== null)
320
+ return nested;
321
+ }
322
+ return null;
323
+ };
324
+ // 现行 Token Plan:model_remains + remaining_percent(total 可为 0)。优先于平铺,避免根对象空字段误判。
325
+ const modelRows = pickArray('model_remains');
326
+ if (modelRows !== null) {
327
+ const row = pickMiniMaxModelRow(modelRows);
328
+ const fromRow = windowsFromMiniMaxRecord(row);
329
+ if (Object.keys(fromRow).length > 0)
330
+ return fromRow;
331
+ // 旧计数制:无 remaining_percent、靠 total>0 汇总(忽略零额度行)。
332
+ let total = 0;
333
+ let used = 0;
334
+ let found = false;
335
+ for (const item of modelRows) {
336
+ if (item === null || typeof item !== 'object')
337
+ continue;
338
+ const t = Number(item.current_interval_total_count ?? item.total);
339
+ const u = Number(item.current_interval_usage_count ?? item.used);
340
+ if (!Number.isFinite(t) || t <= 0)
341
+ continue;
342
+ found = true;
343
+ total += t;
344
+ used += Number.isFinite(u) ? u : 0;
345
+ }
346
+ if (found && total > 0) {
347
+ return { current: { percent: Math.min(100, Math.round((used / total) * 1000) / 10), resetsAt: '' } };
348
+ }
349
+ }
350
+ const flat = windowsFromMiniMaxRecord(payload);
351
+ if (Object.keys(flat).length > 0)
352
+ return flat;
353
+ // Token Plan:窗口数组(字段名容错)。
354
+ const windows = {};
355
+ const planRows = pickArray('token_plan_remains', 'plan_remains', 'remains', 'windows');
356
+ if (planRows !== null) {
357
+ planRows.forEach((row, index) => {
358
+ if (row === null || typeof row !== 'object')
359
+ return;
360
+ const total = Number(row.current_interval_total_count ?? row.total_count ?? row.total ?? row.limit);
361
+ const used = Number(row.current_interval_usage_count ?? row.used_count ?? row.usage_count ?? row.used);
362
+ const remain = Number(row.current_interval_remain_count ?? row.remain_count ?? row.remain ?? row.remaining);
363
+ let pct;
364
+ if (Number.isFinite(total) && total > 0 && Number.isFinite(used))
365
+ pct = (used / total) * 100;
366
+ else if (Number.isFinite(total) && total > 0 && Number.isFinite(remain))
367
+ pct = ((total - remain) / total) * 100;
368
+ else
369
+ pct = normalizePercent(row.utilization ?? row.percent ?? row.used_percentage);
370
+ if (pct === null)
371
+ return;
372
+ const labelRaw = row.interval ?? row.interval_type ?? row.window_type ?? row.type ?? row.name;
373
+ const label = typeof labelRaw === 'string' && labelRaw.length > 0 ? labelRaw : 'window' + String(index + 1);
374
+ windows[label] = {
375
+ percent: Math.max(0, Math.min(100, Math.round(pct * 10) / 10)),
376
+ resetsAt: normalizeResetAt(row.reset_time ?? row.resets_at ?? row.next_reset_time ?? row.reset_at),
377
+ };
378
+ });
379
+ }
380
+ return Object.keys(windows).length > 0 ? windows : null;
381
+ }
382
+ /**
383
+ * 解析 Kimi / Moonshot 余额响应(GET https://api.moonshot.cn/v1/users/me/balance)。
384
+ * 官方返回形如 { available_balance: <分> }(人民币分),兼容 cached/total 变体与元单位形态。
385
+ * 输出文本窗口(余额无总量,不适合百分比进度条)。
386
+ */
387
+ export function parseKimiBalance(data) {
388
+ if (data === null || typeof data !== 'object')
389
+ return null;
390
+ const raw = data.available_balance ?? data.balance ?? data.cash_balance ?? data.data?.available_balance;
391
+ const n = Number(raw);
392
+ if (!Number.isFinite(n) || n < 0)
393
+ return null;
394
+ // 官方单位为人民币分;数值 <100 视为已是元(兼容变体)。
395
+ const cny = n >= 100 ? n / 100 : n;
396
+ const text = '余额 ¥' + (Math.round(cny * 100) / 100).toFixed(2);
397
+ const win = textWindowOf(text);
398
+ return win === null ? null : { balance: win };
399
+ }
400
+ /**
401
+ * 解析 OpenRouter 额度响应(GET https://openrouter.ai/api/v1/credits)。
402
+ * 官方返回 { data: { total_credits, total_usage } }(美元);输出已用% 窗口。
403
+ */
404
+ export function parseOpenRouterCredits(data) {
405
+ if (data === null || typeof data !== 'object')
406
+ return null;
407
+ const d = data.data !== null && typeof data.data === 'object' ? data.data : data;
408
+ const total = Number(d.total_credits ?? d.credits);
409
+ const used = Number(d.total_usage ?? d.usage);
410
+ if (!Number.isFinite(total) || total <= 0 || !Number.isFinite(used))
411
+ return null;
412
+ const pct = Math.max(0, Math.min(100, Math.round((used / total) * 1000) / 10));
413
+ return { credits: { percent: pct, resetsAt: normalizeResetAt(d.resets_at ?? d.next_reset_time) } };
414
+ }
415
+ /**
416
+ * 解析 SiliconFlow 用户信息响应(GET https://api.siliconflow.cn/v1/user/info)。
417
+ * 余额字段容错(balance/amount/remain),输出文本窗口(人民币)。
418
+ */
419
+ export function parseSiliconFlowInfo(data) {
420
+ if (data === null || typeof data !== 'object')
421
+ return null;
422
+ const d = data.data !== null && typeof data.data === 'object' ? data.data : data;
423
+ const raw = d.balance ?? d.amount ?? d.remain ?? d.remaining;
424
+ const n = Number(raw);
425
+ if (!Number.isFinite(n) || n < 0)
426
+ return null;
427
+ const win = textWindowOf('余额 ¥' + (Math.round(n * 100) / 100).toFixed(2));
428
+ return win === null ? null : { balance: win };
429
+ }
430
+ /**
431
+ * 解析 CommandCode(commandcode.ai)额度响应(issue #30,
432
+ * GET https://api.commandcode.ai/alpha/billing/credits)。
433
+ * 官方返回 { credits: { monthlyCredits, ... }, windowLimits: { fiveHour: { used, cap, resetAt },
434
+ * weekly: {...} } }:窗口按 used/cap 输出已用%(resetAt 为 epoch 毫秒);月度 Credits 为
435
+ * 余额池(1 credit ≈ $1 用量,无总量字段),以文本窗口展示(与 Kimi/SiliconFlow 余额同形态)。
436
+ */
437
+ export function parseCommandCodeCredits(data) {
438
+ if (data === null || typeof data !== 'object')
439
+ return null;
440
+ const windows = {};
441
+ const limits = data.windowLimits;
442
+ if (limits !== null && typeof limits === 'object' && !Array.isArray(limits)) {
443
+ for (const [name, raw] of Object.entries(limits)) {
444
+ if (raw === null || typeof raw !== 'object' || Array.isArray(raw))
445
+ continue;
446
+ const used = Number(raw.used);
447
+ const cap = Number(raw.cap);
448
+ if (!Number.isFinite(used) || !Number.isFinite(cap) || cap <= 0 || used < 0)
449
+ continue;
450
+ windows[name] = { percent: clampPct((used / cap) * 100), resetsAt: normalizeResetAt(raw.resetAt) };
451
+ }
452
+ }
453
+ const credits = data.credits;
454
+ const monthly = Number(credits !== null && typeof credits === 'object' ? credits.monthlyCredits : undefined);
455
+ if (Number.isFinite(monthly) && monthly >= 0) {
456
+ const win = textWindowOf('余额 $' + (Math.round(monthly * 100) / 100).toFixed(2));
457
+ if (win !== null)
458
+ windows.monthly = win;
459
+ }
460
+ return Object.keys(windows).length > 0 ? windows : null;
461
+ }
462
+ // ── SCNet(超算互联网)Token Plan 本地 Credits 计量(issue #26)──────────────
463
+ //
464
+ // SCNet Token Plan 为 Credits 包月订阅(基础 60,000 / 标准 240,000 / 高级 600,000),
465
+ // 输入(缓存命中+未命中)与输出 Token 按官方抵扣表折算 Credits 从月度额度抵扣;套餐自开通日
466
+ // 起算,有效期至次月对应日 23:59:59(UTC+8),到期清零。平台无 API-Key 化用量端点,故按
467
+ // 抵扣表对本地账本当前计费周期的用量做估算(实际消耗以控制台账单为准)。
468
+ /**
469
+ * 官方 Credits 抵扣表(2026-08-11 起生效;来源:
470
+ * https://ax.ac.sugon.com/ac/openapi/doc/2.0/moduleapi/plans/token-plan.html)。
471
+ * 单位:Credits / 百万 tokens;input=未命中缓存输入,cachedInput=命中缓存输入,output=输出。
472
+ */
473
+ export const SCNET_CREDIT_RATES = {
474
+ 'GLM-5.2': { input: 7543, cachedInput: 189, output: 26400 },
475
+ 'GLM-5.1': { input: 8743, cachedInput: 175, output: 32057 },
476
+ 'GLM-5': { input: 8743, cachedInput: 175, output: 32057 },
477
+ 'DeepSeek-V4-Pro': { input: 10286, cachedInput: 86, output: 20571 },
478
+ 'DeepSeek-V4-Flash': { input: 1200, cachedInput: 24, output: 2400 },
479
+ 'DeepSeek-V4-Flash-0731': { input: 1543, cachedInput: 31, output: 3086 },
480
+ 'Kimi-K3': { input: 34286, cachedInput: 343, output: 171429 },
481
+ 'Kimi-K2.7-Code': { input: 8357, cachedInput: 167, output: 34714 },
482
+ 'Kimi-K2.6': { input: 8357, cachedInput: 167, output: 34714 },
483
+ 'Kimi-K2.5': { input: 5143, cachedInput: 103, output: 27000 },
484
+ 'MiniMax-M3': { input: 3600, cachedInput: 72, output: 14400 },
485
+ 'MiniMax-M2.7': { input: 3600, cachedInput: 72, output: 14400 },
486
+ 'MiniMax-M2.5': { input: 2520, cachedInput: 50, output: 10080 },
487
+ 'Qwen3.8-max': { input: 18514, cachedInput: 231, output: 49371 },
488
+ };
489
+ /** 套餐档位预设(月度 Credits 额度)。 */
490
+ export const SCNET_TOKEN_PLANS = [
491
+ { id: 'basic', credits: 60000 },
492
+ { id: 'standard', credits: 240000 },
493
+ { id: 'pro', credits: 600000 },
494
+ ];
495
+ /** SCNet 模型名归一:小写并剔除非字母数字(GLM-5.2 → glm52;大小写/连接符差异等价)。 */
496
+ export function scnetCanonModelId(modelId) {
497
+ return String(modelId ?? '').toLowerCase().replace(/[^a-z0-9]/g, '');
498
+ }
499
+ const SCNET_RATE_BY_CANON = Object.fromEntries(Object.entries(SCNET_CREDIT_RATES).map(([id, rate]) => [scnetCanonModelId(id), rate]));
500
+ /** 按抵扣表折算一组 token 桶的 Credits(cacheWrite 计入未命中输入;reasoning 已含于 output 不重复计)。 */
501
+ export function scnetModelCredits(tokens, rate) {
502
+ const num = value => {
503
+ const n = Number(value);
504
+ return Number.isFinite(n) && n > 0 ? n : 0;
505
+ };
506
+ const missInput = num(tokens?.input) + num(tokens?.cacheWrite);
507
+ return (missInput * rate.input + num(tokens?.cacheRead) * rate.cachedInput + num(tokens?.output) * rate.output) / 1_000_000;
508
+ }
509
+ /**
510
+ * 计算当前计费周期(本地时区):套餐自 planStart(YYYY-MM-DD)起算、每月重置,有效期至
511
+ * 次月对应日 23:59:59;planStart 缺省时按自然月。返回 { fromKey, toKeyInclusive, resetsAt }。
512
+ */
513
+ export function scnetPlanPeriod(nowMs, planStart) {
514
+ const now = new Date(Number.isFinite(Number(nowMs)) ? nowMs : Date.now());
515
+ const pad = n => String(n).padStart(2, '0');
516
+ const keyOf = d => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
517
+ let start = null;
518
+ if (typeof planStart === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(planStart)) {
519
+ const parsed = new Date(`${planStart}T00:00:00`);
520
+ if (!Number.isNaN(parsed.getTime()))
521
+ start = parsed;
522
+ }
523
+ if (start === null)
524
+ start = new Date(now.getFullYear(), now.getMonth(), 1);
525
+ const addMonth = d => {
526
+ const next = new Date(d.getFullYear(), d.getMonth() + 1, 1);
527
+ const day = Math.min(d.getDate(), new Date(next.getFullYear(), next.getMonth() + 1, 0).getDate());
528
+ next.setDate(day);
529
+ return next;
530
+ };
531
+ let end = addMonth(start);
532
+ let guard = 0;
533
+ while (now.getTime() >= end.getTime() && guard < 1200) {
534
+ start = end;
535
+ end = addMonth(start);
536
+ guard += 1;
537
+ }
538
+ // 官方语义:有效期至次月对应日 23:59:59(即周期末日终刻)。
539
+ const last = new Date(end.getTime() - 1);
540
+ return { fromKey: keyOf(start), toKeyInclusive: keyOf(last), resetsAt: last.toISOString() };
541
+ }
542
+ /**
543
+ * 汇总本地账本当前计费周期的 SCNet Credits 用量(按模型名匹配抵扣表;跨 provider 归并,
544
+ * 未匹配模型不计)。entry 为 codingPlans.scnet 配置(planCredits 必填、planStart 可选)。
545
+ * 返回 null(planCredits 非法)或 { used, total, percent, resetsAt, byModel, windows }。
546
+ */
547
+ export function scnetTokenPlanWindows(days, entry, nowMs) {
548
+ const total = Number(entry?.planCredits);
549
+ if (!Number.isFinite(total) || total <= 0)
550
+ return null;
551
+ const period = scnetPlanPeriod(nowMs, entry?.planStart);
552
+ const byModel = {};
553
+ let used = 0;
554
+ for (const [date, day] of Object.entries(days ?? {})) {
555
+ if (typeof date !== 'string' || date < period.fromKey || date > period.toKeyInclusive)
556
+ continue;
557
+ for (const [pmKey, buckets] of Object.entries(day?.byProviderModel ?? {})) {
558
+ const model = pmKey.includes(':') ? pmKey.slice(pmKey.indexOf(':') + 1) : pmKey;
559
+ const canon = scnetCanonModelId(model);
560
+ const rate = SCNET_RATE_BY_CANON[canon];
561
+ if (rate === undefined || buckets === null || typeof buckets !== 'object')
562
+ continue;
563
+ const credits = scnetModelCredits(buckets, rate);
564
+ used += credits;
565
+ byModel[canon] = (byModel[canon] ?? 0) + credits;
566
+ }
567
+ }
568
+ const percent = Math.min(100, Math.round((used / total) * 1000) / 10);
569
+ const fmt = n => Math.round(n).toLocaleString('en-US');
570
+ return {
571
+ used,
572
+ total,
573
+ percent,
574
+ resetsAt: period.resetsAt,
575
+ byModel,
576
+ windows: {
577
+ monthly: { percent, resetsAt: period.resetsAt },
578
+ credits: { resetsAt: '', text: `${fmt(used)} / ${fmt(total)} Credits (est.)` },
579
+ },
580
+ };
581
+ }
582
+ /** 各家固定官方端点(硬编码白名单;region 变体按序尝试)。 */
583
+ export const CODING_PLAN_ENDPOINTS = {
584
+ anthropic: ['https://api.anthropic.com/api/oauth/usage'],
585
+ zai: [
586
+ // 2026-08 接口变更(issue #42):额度查询迁移到监控端点 /api/monitor/usage/quota/limit(国内 Key 对应
587
+ // bigmodel.cn、国际 Key 对应 z.ai,两域 Key 不互通——401 时继续换域尝试,见 queryCodingPlan)。
588
+ 'https://open.bigmodel.cn/api/monitor/usage/quota/limit',
589
+ 'https://api.z.ai/api/monitor/usage/quota/limit',
590
+ // 旧计费端点兜底:v3 存活(issue #17)、v4 历史;monitor 端点不可达时仍可出数。
591
+ 'https://api.z.ai/api/coding/paas/v3/dashboard/billing/coding_plan/usage',
592
+ 'https://open.bigmodel.cn/api/coding/paas/v3/dashboard/billing/coding_plan/usage',
593
+ 'https://api.z.ai/api/coding/paas/v4/dashboard/billing/coding_plan/usage',
594
+ 'https://open.bigmodel.cn/api/coding/paas/v4/dashboard/billing/coding_plan/usage',
595
+ ],
596
+ minimax: [
597
+ 'https://www.minimaxi.com/v1/token_plan/remains',
598
+ 'https://www.minimax.io/v1/token_plan/remains',
599
+ 'https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains',
600
+ ],
601
+ kimi: ['https://api.moonshot.cn/v1/users/me/balance'],
602
+ openrouter: ['https://openrouter.ai/api/v1/credits'],
603
+ siliconflow: ['https://api.siliconflow.cn/v1/user/info'],
604
+ commandcode: ['https://api.commandcode.ai/alpha/billing/credits'],
605
+ // SCNet 无 API-Key 化额度端点:本地 Credits 计量(见 scnetTokenPlanWindows),不走网络。
606
+ scnet: [],
607
+ };
608
+ const CODING_PLAN_PARSERS = {
609
+ anthropic: parseAnthropicUsage,
610
+ minimax: parseMiniMaxRemains,
611
+ zai: parseZaiUsage,
612
+ kimi: parseKimiBalance,
613
+ openrouter: parseOpenRouterCredits,
614
+ siliconflow: parseSiliconFlowInfo,
615
+ commandcode: parseCommandCodeCredits,
616
+ };
617
+ /**
618
+ * 查询单家 coding plan 额度。按 CODING_PLAN_ENDPOINTS 顺序尝试官方端点:
619
+ * 认证失败(401/403)与解析成功立即返回;其余错误尝试下一个端点。
620
+ * 预期场景(未找到 Key / 无订阅)抛出 error.soft = true 的软错误。
621
+ * @param provider - anthropic | zai | minimax | kimi | openrouter | siliconflow。
622
+ * @param key - 已解析出的 API Key / OAuth token;null 表示未找到。
623
+ * @param locale - 消息语言(zh/en)。
624
+ * @param t - 服务端文案函数 tmsg(locale, code, vars)。
625
+ * @returns {Promise<{ windows: object, endpoint: string }>}
626
+ */
627
+ export async function queryCodingPlan(provider, key, locale, t) {
628
+ const meta = CODING_PLAN_PROVIDERS[provider];
629
+ if (meta === undefined)
630
+ throw new Error(t(locale, 'codingPlanUnknown', { provider: String(provider) }));
631
+ if (key === null || typeof key !== 'string' || key.trim().length === 0) {
632
+ const error = new Error(t(locale, 'codingPlanKeyMissing', { provider: meta.label }));
633
+ error.soft = true;
634
+ throw error;
635
+ }
636
+ const urls = CODING_PLAN_ENDPOINTS[provider];
637
+ const parse = CODING_PLAN_PARSERS[provider];
638
+ let lastError = null;
639
+ // 200 但解析失败的「结构化错误」(业务信封 / 结构已变):比后续端点的 404 等传输层
640
+ // 错误更有诊断价值,单独保留且最终优先抛出——否则最后端点的 404 会盖住 monitor
641
+ // 端点解析失败的真实原因(issue #44 的误导性报错即由此而来)。
642
+ let parseError = null;
643
+ for (const url of urls) {
644
+ let response;
645
+ try {
646
+ // 瞬时网络错误先在单端点上重试(issue #28 同一封装),仍失败再换端点变体。
647
+ response = await fetchWithTimeout(url, {
648
+ headers: {
649
+ authorization: `Bearer ${key.trim()}`,
650
+ 'user-agent': 'dsh-cost-meter/1.4 (DeepSeek Harness plugin)',
651
+ },
652
+ }, { timeoutMs: 15000 });
653
+ }
654
+ catch (error) {
655
+ lastError = error;
656
+ continue; // 网络错误:尝试下一个端点变体
657
+ }
658
+ if (response.status === 401 || response.status === 403) {
659
+ const error = new Error(t(locale, 'codingPlanUnauthorized', { provider: meta.label, code: String(response.status) }));
660
+ error.soft = true; // Key 无效/无订阅属预期场景,面板中性提示
661
+ // zai 国内(bigmodel.cn)/国际(z.ai)域名 Key 不互通:单域 401 只说明 Key
662
+ // 不属于该域,继续尝试下一域;全部 401 才认定为凭据无效(issue #42)。
663
+ if (provider === 'zai') {
664
+ lastError = error;
665
+ continue;
666
+ }
667
+ throw error;
668
+ }
669
+ if (!response.ok) {
670
+ // 带上实际请求 URL:404 往往是端点变更信号,便于定位(issue #17)。
671
+ lastError = new Error(t(locale, 'codingPlanHttp', { provider: meta.label, code: String(response.status), url }));
672
+ continue;
673
+ }
674
+ const data = await response.json();
675
+ const windows = parse(data);
676
+ if (windows === null) {
677
+ // 200 但业务失败(如 Z.ai 的错误信封 {code:1001,msg:...}):透出服务端 msg,避免误报「接口结构已变」。
678
+ const envelope = data !== null && typeof data === 'object' && typeof data.code === 'number' && data.code !== 0
679
+ && typeof (data.msg ?? data.message) === 'string' ? (data.msg ?? data.message) : null;
680
+ const error = envelope !== null
681
+ ? new Error(`${meta.label}: ${envelope}`)
682
+ : new Error(t(locale, 'codingPlanNoUsage', { provider: meta.label }));
683
+ parseError ??= error;
684
+ lastError = error;
685
+ continue;
686
+ }
687
+ return { windows, endpoint: url };
688
+ }
689
+ const fallback = parseError ??
690
+ lastError ??
691
+ new Error(t(locale, "codingPlanNoUsage", { provider: meta.label }));
692
+ throw fallback instanceof Error
693
+ ? fallback
694
+ : new Error(String(fallback));
695
+ }
696
+ //# sourceMappingURL=cost-meter-coding-plans.js.map