@xrkseek/harness 0.4.7 → 0.4.9

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 (342) hide show
  1. package/node_modules/@xrkseek/attachment/dist/error.d.ts +1 -1
  2. package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
  3. package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
  4. package/node_modules/@xrkseek/attachment/dist/image-region.d.ts +45 -0
  5. package/node_modules/@xrkseek/attachment/dist/image-region.d.ts.map +1 -0
  6. package/node_modules/@xrkseek/attachment/dist/image-region.js +64 -0
  7. package/node_modules/@xrkseek/attachment/dist/image-region.js.map +1 -0
  8. package/node_modules/@xrkseek/attachment/dist/index.d.ts +1 -0
  9. package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
  10. package/node_modules/@xrkseek/attachment/dist/index.js +1 -0
  11. package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
  12. package/node_modules/@xrkseek/attachment/dist/store.d.ts +7 -0
  13. package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
  14. package/node_modules/@xrkseek/attachment-local/dist/crop-region.d.ts +10 -0
  15. package/node_modules/@xrkseek/attachment-local/dist/crop-region.d.ts.map +1 -0
  16. package/node_modules/@xrkseek/attachment-local/dist/crop-region.js +53 -0
  17. package/node_modules/@xrkseek/attachment-local/dist/crop-region.js.map +1 -0
  18. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +1 -0
  19. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -1
  20. package/node_modules/@xrkseek/attachment-local/dist/index.js +3 -0
  21. package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -1
  22. package/node_modules/@xrkseek/cordis/LICENSE +21 -0
  23. package/node_modules/@xrkseek/cordis/README.md +14 -0
  24. package/node_modules/@xrkseek/cordis/bin.js +16 -0
  25. package/node_modules/@xrkseek/cordis/lib/index.js +1828 -0
  26. package/node_modules/@xrkseek/cordis/lib/types/context.d.ts +101 -0
  27. package/node_modules/@xrkseek/cordis/lib/types/context.d.ts.map +1 -0
  28. package/node_modules/@xrkseek/cordis/lib/types/events.d.ts +240 -0
  29. package/node_modules/@xrkseek/cordis/lib/types/events.d.ts.map +1 -0
  30. package/node_modules/@xrkseek/cordis/lib/types/fiber.d.ts +202 -0
  31. package/node_modules/@xrkseek/cordis/lib/types/fiber.d.ts.map +1 -0
  32. package/node_modules/@xrkseek/cordis/lib/types/index.d.ts +15 -0
  33. package/node_modules/@xrkseek/cordis/lib/types/index.d.ts.map +1 -0
  34. package/node_modules/@xrkseek/cordis/lib/types/logger.d.ts +105 -0
  35. package/node_modules/@xrkseek/cordis/lib/types/logger.d.ts.map +1 -0
  36. package/node_modules/@xrkseek/cordis/lib/types/reflect.d.ts +186 -0
  37. package/node_modules/@xrkseek/cordis/lib/types/reflect.d.ts.map +1 -0
  38. package/node_modules/@xrkseek/cordis/lib/types/registry.d.ts +201 -0
  39. package/node_modules/@xrkseek/cordis/lib/types/registry.d.ts.map +1 -0
  40. package/node_modules/@xrkseek/cordis/lib/types/service.d.ts +55 -0
  41. package/node_modules/@xrkseek/cordis/lib/types/service.d.ts.map +1 -0
  42. package/node_modules/@xrkseek/cordis/lib/types/utils.d.ts +62 -0
  43. package/node_modules/@xrkseek/cordis/lib/types/utils.d.ts.map +1 -0
  44. package/node_modules/@xrkseek/cordis/package.json +49 -0
  45. package/node_modules/@xrkseek/cordis/src/context.d.ts +101 -0
  46. package/node_modules/@xrkseek/cordis/src/context.d.ts.map +1 -0
  47. package/node_modules/@xrkseek/cordis/src/context.js +99 -0
  48. package/node_modules/@xrkseek/cordis/src/context.js.map +1 -0
  49. package/node_modules/@xrkseek/cordis/src/context.ts +146 -0
  50. package/node_modules/@xrkseek/cordis/src/events.d.ts +240 -0
  51. package/node_modules/@xrkseek/cordis/src/events.d.ts.map +1 -0
  52. package/node_modules/@xrkseek/cordis/src/events.js +199 -0
  53. package/node_modules/@xrkseek/cordis/src/events.js.map +1 -0
  54. package/node_modules/@xrkseek/cordis/src/events.ts +352 -0
  55. package/node_modules/@xrkseek/cordis/src/fiber.d.ts +202 -0
  56. package/node_modules/@xrkseek/cordis/src/fiber.d.ts.map +1 -0
  57. package/node_modules/@xrkseek/cordis/src/fiber.js +677 -0
  58. package/node_modules/@xrkseek/cordis/src/fiber.js.map +1 -0
  59. package/node_modules/@xrkseek/cordis/src/fiber.ts +754 -0
  60. package/node_modules/@xrkseek/cordis/src/index.d.ts +15 -0
  61. package/node_modules/@xrkseek/cordis/src/index.d.ts.map +1 -0
  62. package/node_modules/@xrkseek/cordis/src/index.js +15 -0
  63. package/node_modules/@xrkseek/cordis/src/index.js.map +1 -0
  64. package/node_modules/@xrkseek/cordis/src/index.ts +14 -0
  65. package/node_modules/@xrkseek/cordis/src/logger.d.ts +105 -0
  66. package/node_modules/@xrkseek/cordis/src/logger.d.ts.map +1 -0
  67. package/node_modules/@xrkseek/cordis/src/logger.js +193 -0
  68. package/node_modules/@xrkseek/cordis/src/logger.js.map +1 -0
  69. package/node_modules/@xrkseek/cordis/src/logger.ts +270 -0
  70. package/node_modules/@xrkseek/cordis/src/reflect.d.ts +186 -0
  71. package/node_modules/@xrkseek/cordis/src/reflect.d.ts.map +1 -0
  72. package/node_modules/@xrkseek/cordis/src/reflect.js +311 -0
  73. package/node_modules/@xrkseek/cordis/src/reflect.js.map +1 -0
  74. package/node_modules/@xrkseek/cordis/src/reflect.ts +418 -0
  75. package/node_modules/@xrkseek/cordis/src/registry.d.ts +201 -0
  76. package/node_modules/@xrkseek/cordis/src/registry.d.ts.map +1 -0
  77. package/node_modules/@xrkseek/cordis/src/registry.js +218 -0
  78. package/node_modules/@xrkseek/cordis/src/registry.js.map +1 -0
  79. package/node_modules/@xrkseek/cordis/src/registry.ts +337 -0
  80. package/node_modules/@xrkseek/cordis/src/service.d.ts +55 -0
  81. package/node_modules/@xrkseek/cordis/src/service.d.ts.map +1 -0
  82. package/node_modules/@xrkseek/cordis/src/service.js +113 -0
  83. package/node_modules/@xrkseek/cordis/src/service.js.map +1 -0
  84. package/node_modules/@xrkseek/cordis/src/service.ts +115 -0
  85. package/node_modules/@xrkseek/cordis/src/utils.d.ts +62 -0
  86. package/node_modules/@xrkseek/cordis/src/utils.d.ts.map +1 -0
  87. package/node_modules/@xrkseek/cordis/src/utils.js +271 -0
  88. package/node_modules/@xrkseek/cordis/src/utils.js.map +1 -0
  89. package/node_modules/@xrkseek/cordis/src/utils.ts +287 -0
  90. package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
  91. package/node_modules/@xrkseek/core-agent-loop/dist/index.js +52 -73
  92. package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
  93. package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +4 -3
  94. package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
  95. package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
  96. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
  97. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +2 -1
  98. package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
  99. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -0
  100. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  101. package/node_modules/@xrkseek/exec-fs/dist/index.js +3 -0
  102. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  103. package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.d.ts +25 -0
  104. package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.d.ts.map +1 -0
  105. package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.js +107 -0
  106. package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.js.map +1 -0
  107. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +5 -0
  108. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
  109. package/node_modules/@xrkseek/exec-fs/dist/read-image.js +55 -7
  110. package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
  111. package/node_modules/@xrkseek/exec-image-gen/README.md +3 -3
  112. package/node_modules/@xrkseek/exec-image-gen/dist/catalog.d.ts +16 -0
  113. package/node_modules/@xrkseek/exec-image-gen/dist/catalog.d.ts.map +1 -0
  114. package/node_modules/@xrkseek/exec-image-gen/dist/catalog.js +152 -0
  115. package/node_modules/@xrkseek/exec-image-gen/dist/catalog.js.map +1 -0
  116. package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.d.ts +9 -0
  117. package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.d.ts.map +1 -0
  118. package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.js +21 -0
  119. package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.js.map +1 -0
  120. package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.d.ts +16 -0
  121. package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.d.ts.map +1 -0
  122. package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.js +189 -0
  123. package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.js.map +1 -0
  124. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +10 -5
  125. package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
  126. package/node_modules/@xrkseek/exec-image-gen/dist/index.js +174 -18
  127. package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
  128. package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.d.ts +16 -0
  129. package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.d.ts.map +1 -0
  130. package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.js +144 -0
  131. package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.js.map +1 -0
  132. package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.d.ts +9 -0
  133. package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.d.ts.map +1 -0
  134. package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.js +21 -0
  135. package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.js.map +1 -0
  136. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +4 -1
  137. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -1
  138. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +7 -5
  139. package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -1
  140. package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.d.ts +14 -0
  141. package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.d.ts.map +1 -0
  142. package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.js +117 -0
  143. package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.js.map +1 -0
  144. package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
  145. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +43 -6
  146. package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
  147. package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +1 -1
  148. package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -1
  149. package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -1
  150. package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.d.ts +16 -0
  151. package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.d.ts.map +1 -0
  152. package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.js +137 -0
  153. package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.js.map +1 -0
  154. package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.d.ts +52 -0
  155. package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.d.ts.map +1 -0
  156. package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.js +216 -0
  157. package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.js.map +1 -0
  158. package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +1 -0
  159. package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -1
  160. package/node_modules/@xrkseek/exec-memory/dist/index.js +1 -0
  161. package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -1
  162. package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -1
  163. package/node_modules/@xrkseek/exec-memory/dist/tools.js +20 -7
  164. package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -1
  165. package/node_modules/@xrkseek/exec-video-analyze/README.md +11 -0
  166. package/node_modules/@xrkseek/exec-video-analyze/dist/format.d.ts +3 -0
  167. package/node_modules/@xrkseek/exec-video-analyze/dist/format.d.ts.map +1 -0
  168. package/node_modules/@xrkseek/exec-video-analyze/dist/format.js +10 -0
  169. package/node_modules/@xrkseek/exec-video-analyze/dist/format.js.map +1 -0
  170. package/node_modules/@xrkseek/exec-video-analyze/dist/index.d.ts +39 -0
  171. package/node_modules/@xrkseek/exec-video-analyze/dist/index.d.ts.map +1 -0
  172. package/node_modules/@xrkseek/exec-video-analyze/dist/index.js +64 -0
  173. package/node_modules/@xrkseek/exec-video-analyze/dist/index.js.map +1 -0
  174. package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.d.ts +22 -0
  175. package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.d.ts.map +1 -0
  176. package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.js +70 -0
  177. package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.js.map +1 -0
  178. package/node_modules/@xrkseek/exec-video-analyze/dist/memory.d.ts +8 -0
  179. package/node_modules/@xrkseek/exec-video-analyze/dist/memory.d.ts.map +1 -0
  180. package/node_modules/@xrkseek/exec-video-analyze/dist/memory.js +21 -0
  181. package/node_modules/@xrkseek/exec-video-analyze/dist/memory.js.map +1 -0
  182. package/node_modules/@xrkseek/exec-video-analyze/dist/mime.d.ts +13 -0
  183. package/node_modules/@xrkseek/exec-video-analyze/dist/mime.d.ts.map +1 -0
  184. package/node_modules/@xrkseek/exec-video-analyze/dist/mime.js +44 -0
  185. package/node_modules/@xrkseek/exec-video-analyze/dist/mime.js.map +1 -0
  186. package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.d.ts +15 -0
  187. package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.d.ts.map +1 -0
  188. package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.js +102 -0
  189. package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.js.map +1 -0
  190. package/node_modules/@xrkseek/exec-video-analyze/dist/tools.d.ts +24 -0
  191. package/node_modules/@xrkseek/exec-video-analyze/dist/tools.d.ts.map +1 -0
  192. package/node_modules/@xrkseek/exec-video-analyze/dist/tools.js +120 -0
  193. package/node_modules/@xrkseek/exec-video-analyze/dist/tools.js.map +1 -0
  194. package/node_modules/@xrkseek/exec-video-analyze/dist/types.d.ts +30 -0
  195. package/node_modules/@xrkseek/exec-video-analyze/dist/types.d.ts.map +1 -0
  196. package/node_modules/@xrkseek/exec-video-analyze/dist/types.js +16 -0
  197. package/node_modules/@xrkseek/exec-video-analyze/dist/types.js.map +1 -0
  198. package/node_modules/@xrkseek/exec-video-analyze/package.json +26 -0
  199. package/node_modules/@xrkseek/exec-video-gen/README.md +3 -4
  200. package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts +14 -1
  201. package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts.map +1 -1
  202. package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js +99 -1
  203. package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js.map +1 -1
  204. package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.d.ts +9 -0
  205. package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.d.ts.map +1 -0
  206. package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.js +17 -0
  207. package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.js.map +1 -0
  208. package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.d.ts +14 -0
  209. package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.d.ts.map +1 -0
  210. package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.js +342 -0
  211. package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.js.map +1 -0
  212. package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +8 -6
  213. package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -1
  214. package/node_modules/@xrkseek/exec-video-gen/dist/index.js +122 -19
  215. package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -1
  216. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +4 -1
  217. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -1
  218. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +21 -15
  219. package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -1
  220. package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.d.ts +9 -0
  221. package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.d.ts.map +1 -0
  222. package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.js +18 -0
  223. package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.js.map +1 -0
  224. package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -1
  225. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +26 -6
  226. package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
  227. package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +1 -1
  228. package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -1
  229. package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -1
  230. package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.d.ts +18 -0
  231. package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.d.ts.map +1 -0
  232. package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.js +263 -0
  233. package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.js.map +1 -0
  234. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +14 -0
  235. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  236. package/node_modules/@xrkseek/preset-harness/dist/preset.js +48 -3
  237. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  238. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  239. package/node_modules/@xrkseek/preset-harness/package.json +1 -0
  240. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  241. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  242. package/node_modules/@xrkseek/protocol/dist/index.d.ts +1 -1
  243. package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
  244. package/node_modules/@xrkseek/protocol/dist/index.js +1 -1
  245. package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
  246. package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +12 -0
  247. package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
  248. package/node_modules/@xrkseek/protocol/dist/json-schema.js +23 -0
  249. package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
  250. package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +24 -1
  251. package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
  252. package/node_modules/@xrkseek/protocol/dist/session-events.js +12 -0
  253. package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
  254. package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
  255. package/node_modules/@xrkseek/protocol/dist/validate.js +32 -0
  256. package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
  257. package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.d.ts +6 -0
  258. package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.d.ts.map +1 -1
  259. package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.js +8 -0
  260. package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.js.map +1 -1
  261. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +1 -0
  262. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
  263. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +15 -0
  264. package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
  265. package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts +6 -0
  266. package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts.map +1 -1
  267. package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js +16 -0
  268. package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js.map +1 -1
  269. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts +31 -0
  270. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts.map +1 -1
  271. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js +125 -1
  272. package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js.map +1 -1
  273. package/node_modules/@xrkseek/server-face/dist/approval-category.d.ts.map +1 -1
  274. package/node_modules/@xrkseek/server-face/dist/approval-category.js +2 -1
  275. package/node_modules/@xrkseek/server-face/dist/approval-category.js.map +1 -1
  276. package/node_modules/@xrkseek/server-face/dist/context.d.ts +19 -1
  277. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  278. package/node_modules/@xrkseek/server-face/dist/index.d.ts +3 -3
  279. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  280. package/node_modules/@xrkseek/server-face/dist/index.js +1 -1
  281. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  282. package/node_modules/@xrkseek/server-face/dist/mcp-oauth.d.ts.map +1 -1
  283. package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js +25 -3
  284. package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js.map +1 -1
  285. package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts +2 -0
  286. package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts.map +1 -1
  287. package/node_modules/@xrkseek/server-face/dist/ralph-tool.js +11 -5
  288. package/node_modules/@xrkseek/server-face/dist/ralph-tool.js.map +1 -1
  289. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  290. package/node_modules/@xrkseek/server-face/dist/runtime.js +8 -2
  291. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  292. package/node_modules/@xrkseek/server-face/dist/session-status.d.ts +16 -0
  293. package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
  294. package/node_modules/@xrkseek/server-face/dist/session-status.js +44 -5
  295. package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
  296. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +9 -0
  297. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  298. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +55 -0
  299. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  300. package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
  301. package/node_modules/@xrkseek/server-face/dist/settings-document.js +44 -0
  302. package/node_modules/@xrkseek/server-face/dist/settings-document.js.map +1 -1
  303. package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
  304. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +34 -3
  305. package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
  306. package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
  307. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +191 -0
  308. package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
  309. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
  310. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +8 -0
  311. package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js.map +1 -1
  312. package/node_modules/@xrkseek/server-host/dist/index.d.ts +7 -0
  313. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  314. package/node_modules/@xrkseek/server-host/dist/index.js +165 -23
  315. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  316. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
  317. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +6 -0
  318. package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
  319. package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.d.ts +32 -0
  320. package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.d.ts.map +1 -0
  321. package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.js +134 -0
  322. package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.js.map +1 -0
  323. package/node_modules/@xrkseek/server-host/package.json +3 -0
  324. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
  325. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +20 -0
  326. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
  327. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts +10 -2
  328. package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts.map +1 -1
  329. package/node_modules/@xrkseek/xrk-workflow/README.i18n.yaml +6 -0
  330. package/node_modules/@xrkseek/xrk-workflow/README.md +73 -0
  331. package/node_modules/@xrkseek/xrk-workflow/README.zh.md +72 -0
  332. package/node_modules/@xrkseek/xrk-workflow/lib/types/index.d.ts +177 -0
  333. package/node_modules/@xrkseek/xrk-workflow/lib/types/index.js +730 -0
  334. package/node_modules/@xrkseek/xrk-workflow/lib/types/invariant.d.ts +13 -0
  335. package/node_modules/@xrkseek/xrk-workflow/lib/types/invariant.js +118 -0
  336. package/node_modules/@xrkseek/xrk-workflow/lib/types/runtime-types.d.ts +45 -0
  337. package/node_modules/@xrkseek/xrk-workflow/lib/types/runtime-types.js +9 -0
  338. package/node_modules/@xrkseek/xrk-workflow/lib/types/types.d.ts +118 -0
  339. package/node_modules/@xrkseek/xrk-workflow/lib/types/types.js +16 -0
  340. package/node_modules/@xrkseek/xrk-workflow/package.json +53 -0
  341. package/node_modules/@xrkseek/xrk-workflow/src/index.ts +947 -0
  342. package/package.json +7 -1
@@ -0,0 +1,152 @@
1
+ /**
2
+ * Hermes-scale FAL image model catalog (tools/image_generation_catalog.py FAL_MODELS).
3
+ * Settings `model` selects an endpoint id; edit uses paired `/edit` when present.
4
+ */
5
+ export const FAL_IMAGE_DEFAULT_MODEL = "fal-ai/flux-2/klein/9b";
6
+ /** Main-path FAL image endpoints (Hermes catalog; edit when listed). */
7
+ export const FAL_IMAGE_MODELS = [
8
+ {
9
+ id: "fal-ai/flux-2/klein/9b",
10
+ displayName: "FLUX.2 Klein 9B",
11
+ editEndpoint: "fal-ai/flux-2/klein/9b/edit",
12
+ maxReferenceImages: 9,
13
+ note: "Default fast FLUX edit path.",
14
+ },
15
+ {
16
+ id: "fal-ai/flux-2-pro",
17
+ displayName: "FLUX.2 Pro",
18
+ editEndpoint: "fal-ai/flux-2-pro/edit",
19
+ maxReferenceImages: 9,
20
+ },
21
+ {
22
+ id: "fal-ai/z-image/turbo",
23
+ displayName: "Z-Image Turbo",
24
+ maxReferenceImages: 0,
25
+ },
26
+ {
27
+ id: "fal-ai/nano-banana-pro",
28
+ displayName: "Nano Banana Pro",
29
+ editEndpoint: "fal-ai/nano-banana-pro/edit",
30
+ maxReferenceImages: 9,
31
+ },
32
+ {
33
+ id: "fal-ai/nano-banana-2",
34
+ displayName: "Nano Banana 2",
35
+ editEndpoint: "fal-ai/nano-banana-2/edit",
36
+ maxReferenceImages: 9,
37
+ },
38
+ {
39
+ id: "fal-ai/gpt-image-1.5",
40
+ displayName: "GPT Image 1.5",
41
+ editEndpoint: "fal-ai/gpt-image-1.5/edit",
42
+ maxReferenceImages: 16,
43
+ },
44
+ {
45
+ id: "fal-ai/gpt-image-2",
46
+ displayName: "GPT Image 2",
47
+ editEndpoint: "openai/gpt-image-2/edit",
48
+ maxReferenceImages: 16,
49
+ },
50
+ {
51
+ id: "fal-ai/ideogram/v3",
52
+ displayName: "Ideogram V3",
53
+ editEndpoint: "fal-ai/ideogram/v3/edit",
54
+ maxReferenceImages: 1,
55
+ },
56
+ {
57
+ id: "fal-ai/recraft/v4/pro/text-to-image",
58
+ displayName: "Recraft V4 Pro",
59
+ maxReferenceImages: 0,
60
+ },
61
+ {
62
+ id: "fal-ai/qwen-image",
63
+ displayName: "Qwen Image",
64
+ editEndpoint: "fal-ai/qwen-image-2/pro/edit",
65
+ maxReferenceImages: 4,
66
+ },
67
+ {
68
+ id: "fal-ai/krea/v2/medium/text-to-image",
69
+ displayName: "Krea V2 Medium (via FAL)",
70
+ maxReferenceImages: 0,
71
+ },
72
+ {
73
+ id: "fal-ai/krea/v2/large/text-to-image",
74
+ displayName: "Krea V2 Large (via FAL)",
75
+ maxReferenceImages: 0,
76
+ },
77
+ {
78
+ id: "bytedance/seedream/v5/pro/text-to-image",
79
+ displayName: "Seedream V5 Pro",
80
+ editEndpoint: "bytedance/seedream/v5/pro/edit",
81
+ maxReferenceImages: 4,
82
+ },
83
+ {
84
+ id: "bytedance/seedream/v5/lite/text-to-image",
85
+ displayName: "Seedream V5 Lite",
86
+ maxReferenceImages: 0,
87
+ },
88
+ {
89
+ id: "ideogram/v4/instant",
90
+ displayName: "Ideogram V4 Instant",
91
+ maxReferenceImages: 0,
92
+ },
93
+ {
94
+ id: "ideogram/v4/fast",
95
+ displayName: "Ideogram V4 Fast",
96
+ maxReferenceImages: 0,
97
+ },
98
+ {
99
+ id: "alibaba/qwen-image-3/text-to-image",
100
+ displayName: "Qwen Image 3",
101
+ editEndpoint: "alibaba/qwen-image-3/edit",
102
+ maxReferenceImages: 4,
103
+ },
104
+ {
105
+ id: "microsoft/mai-image-2.5-pro",
106
+ displayName: "MAI Image 2.5 Pro",
107
+ maxReferenceImages: 0,
108
+ },
109
+ {
110
+ id: "google/nano-banana-2-lite",
111
+ displayName: "Nano Banana 2 Lite",
112
+ editEndpoint: "google/nano-banana-2-lite/edit",
113
+ maxReferenceImages: 14,
114
+ },
115
+ {
116
+ id: "fal-ai/recraft/v4.1/text-to-image",
117
+ displayName: "Recraft V4.1",
118
+ maxReferenceImages: 0,
119
+ },
120
+ {
121
+ id: "xai/grok-imagine-image/v2.0/text-to-image",
122
+ displayName: "Grok Imagine Image v2",
123
+ editEndpoint: "xai/grok-imagine-image/v2.0/edit",
124
+ maxReferenceImages: 3,
125
+ },
126
+ {
127
+ id: "fal-ai/kling-image/v3/text-to-image",
128
+ displayName: "Kling Image V3",
129
+ editEndpoint: "fal-ai/kling-image/v3/image-to-image",
130
+ maxReferenceImages: 1,
131
+ },
132
+ {
133
+ id: "meta/muse-image/text-to-image",
134
+ displayName: "Meta Muse Image",
135
+ editEndpoint: "meta/muse-image/edit",
136
+ maxReferenceImages: 4,
137
+ },
138
+ ];
139
+ export function resolveFalImageModel(model) {
140
+ const raw = (model ?? "").trim() || FAL_IMAGE_DEFAULT_MODEL;
141
+ const hit = FAL_IMAGE_MODELS.find((m) => m.id === raw);
142
+ if (hit)
143
+ return hit;
144
+ return {
145
+ id: raw,
146
+ displayName: raw,
147
+ editEndpoint: `${raw.replace(/\/+$/u, "")}/edit`,
148
+ maxReferenceImages: 9,
149
+ note: "Custom FAL endpoint (edit defaults to `${id}/edit`).",
150
+ };
151
+ }
152
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA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,EAAE,+BAA+B;QACnC,WAAW,EAAE,iBAAiB;QAC9B,YAAY,EAAE,sBAAsB;QACpC,kBAAkB,EAAE,CAAC;KACtB;CACF,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,KAAyB;IAEzB,MAAM,GAAG,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,uBAAuB,CAAC;IAC5D,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC;IACvD,IAAI,GAAG;QAAE,OAAO,GAAG,CAAC;IACpB,OAAO;QACL,EAAE,EAAE,GAAG;QACP,WAAW,EAAE,GAAG;QAChB,YAAY,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO;QAChD,kBAAkB,EAAE,CAAC;QACrB,IAAI,EAAE,sDAAsD;KAC7D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ImageGenService } from "./types.js";
2
+ export interface DeepInfraImageGenOptions {
3
+ readonly apiKey: string;
4
+ readonly baseUrl?: string;
5
+ readonly fetchImpl?: typeof fetch;
6
+ readonly model?: string;
7
+ }
8
+ export declare function createDeepInfraImageGenProvider(options: DeepInfraImageGenOptions): ImageGenService;
9
+ //# sourceMappingURL=deepinfra-http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepinfra-http.d.ts","sourceRoot":"","sources":["../src/deepinfra-http.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAwB,eAAe,EAAE,MAAM,YAAY,CAAC;AAExE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAOD,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,wBAAwB,GAChC,eAAe,CAUjB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * DeepInfra OpenAI-compatible image Provider (Hermes: text-to-image only).
3
+ * Reuses the OpenAI Images client against `api.deepinfra.com/v1/openai`.
4
+ */
5
+ import { createOpenAiImageGenProvider } from "./openai-http.js";
6
+ const TEXT_ONLY = {
7
+ modalities: ["text"],
8
+ maxReferenceImages: 0,
9
+ };
10
+ export function createDeepInfraImageGenProvider(options) {
11
+ return createOpenAiImageGenProvider({
12
+ apiKey: options.apiKey,
13
+ baseUrl: options.baseUrl ?? "https://api.deepinfra.com/v1/openai",
14
+ model: options.model ?? "black-forest-labs/FLUX-1-schnell",
15
+ capabilities: TEXT_ONLY,
16
+ delivery: "deepinfra",
17
+ providerName: "deepinfra",
18
+ ...(options.fetchImpl ? { fetchImpl: options.fetchImpl } : {}),
19
+ });
20
+ }
21
+ //# sourceMappingURL=deepinfra-http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepinfra-http.js","sourceRoot":"","sources":["../src/deepinfra-http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAUhE,MAAM,SAAS,GAAyB;IACtC,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,kBAAkB,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,OAAiC;IAEjC,OAAO,4BAA4B,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,qCAAqC;QACjE,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,kCAAkC;QAC1D,YAAY,EAAE,SAAS;QACvB,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,WAAW;QACzB,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC/D,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ImageGenCapabilities, ImageGenService } from "./types.js";
2
+ export interface FalImageGenOptions {
3
+ readonly apiKey: string;
4
+ /** Queue origin; default `https://queue.fal.run`. */
5
+ readonly baseUrl?: string;
6
+ readonly fetchImpl?: typeof fetch;
7
+ /** T2I endpoint id (default Hermes DEFAULT_MODEL). */
8
+ readonly model?: string;
9
+ /** Edit endpoint; default from catalog or `${model}/edit`. */
10
+ readonly editModel?: string;
11
+ readonly pollIntervalMs?: number;
12
+ readonly timeoutMs?: number;
13
+ readonly capabilities?: ImageGenCapabilities;
14
+ }
15
+ export declare function createFalImageGenProvider(options: FalImageGenOptions): ImageGenService;
16
+ //# sourceMappingURL=fal-http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fal-http.d.ts","sourceRoot":"","sources":["../src/fal-http.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,oBAAoB,EAGpB,eAAe,EAGhB,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IAClC,sDAAsD;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AAsID,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,kBAAkB,GAC1B,eAAe,CAsHjB"}
@@ -0,0 +1,189 @@
1
+ /**
2
+ * FAL.ai queue HTTP Provider — text-to-image + edit (Hermes fal catalog).
3
+ * Uses the public queue REST API (no fal_client SDK).
4
+ * @see https://fal.ai/docs
5
+ */
6
+ import { resolveFalImageModel } from "./catalog.js";
7
+ import { ImageGenError } from "./types.js";
8
+ function joinUrl(base, path) {
9
+ return `${base.replace(/\/+$/, "")}/${path.replace(/^\/+/, "")}`;
10
+ }
11
+ function falImageSize(size) {
12
+ switch (size) {
13
+ case "1792x1024":
14
+ case "1024x1792":
15
+ return size.startsWith("1792") ? "landscape_16_9" : "portrait_16_9";
16
+ case "512x512":
17
+ case "256x256":
18
+ return "square";
19
+ case "1024x1024":
20
+ default:
21
+ return "square_hd";
22
+ }
23
+ }
24
+ function bytesToDataUrl(img) {
25
+ const b64 = Buffer.from(img.bytes).toString("base64");
26
+ return `data:${img.mimeType};base64,${b64}`;
27
+ }
28
+ async function sleep(ms) {
29
+ await new Promise((r) => setTimeout(r, ms));
30
+ }
31
+ async function downloadImage(url, fetchImpl) {
32
+ const res = await fetchImpl(url);
33
+ if (!res.ok) {
34
+ throw new ImageGenError(`FAL image download HTTP ${res.status}`, "IMAGE_GEN_BACKEND");
35
+ }
36
+ const ab = await res.arrayBuffer();
37
+ const ct = (res.headers.get("content-type") ?? "image/png").split(";")[0]?.trim().toLowerCase();
38
+ const mimeType = ct === "image/jpeg" || ct === "image/webp" || ct === "image/png"
39
+ ? ct
40
+ : "image/png";
41
+ return { bytes: new Uint8Array(ab), mimeType };
42
+ }
43
+ /**
44
+ * Poll FAL queue until COMPLETED, then GET response_url.
45
+ */
46
+ async function waitFalResult(submit, options) {
47
+ const statusUrl = submit.status_url?.trim();
48
+ const responseUrl = submit.response_url?.trim();
49
+ if (!statusUrl || !responseUrl) {
50
+ throw new ImageGenError("FAL submit missing status_url / response_url", "IMAGE_GEN_BACKEND");
51
+ }
52
+ const headers = { Authorization: `Key ${options.apiKey}` };
53
+ const deadline = Date.now() + options.timeoutMs;
54
+ while (Date.now() < deadline) {
55
+ const stRes = await options.fetchImpl(statusUrl, { headers });
56
+ const stText = await stRes.text().catch(() => "");
57
+ if (!stRes.ok) {
58
+ throw new ImageGenError(`FAL status HTTP ${stRes.status}: ${stText.slice(0, 200)}`, "IMAGE_GEN_BACKEND");
59
+ }
60
+ let statusBody;
61
+ try {
62
+ statusBody = JSON.parse(stText);
63
+ }
64
+ catch {
65
+ throw new ImageGenError("FAL status was not JSON", "IMAGE_GEN_BACKEND");
66
+ }
67
+ const status = String(statusBody.status ?? "").toUpperCase();
68
+ if (status === "COMPLETED") {
69
+ const outUrl = statusBody.response_url?.trim() || responseUrl;
70
+ const outRes = await options.fetchImpl(outUrl, { headers });
71
+ const outText = await outRes.text().catch(() => "");
72
+ if (!outRes.ok) {
73
+ throw new ImageGenError(`FAL result HTTP ${outRes.status}: ${outText.slice(0, 200)}`, "IMAGE_GEN_BACKEND");
74
+ }
75
+ try {
76
+ return JSON.parse(outText);
77
+ }
78
+ catch {
79
+ throw new ImageGenError("FAL result was not JSON", "IMAGE_GEN_BACKEND");
80
+ }
81
+ }
82
+ if (status === "FAILED" || status === "CANCELLED" || status === "ERROR") {
83
+ throw new ImageGenError(`FAL request ${status}: ${statusBody.error ?? "no detail"}`, "IMAGE_GEN_BACKEND");
84
+ }
85
+ await sleep(options.pollIntervalMs);
86
+ }
87
+ throw new ImageGenError(`FAL timed out after ${options.timeoutMs}ms`, "IMAGE_GEN_BACKEND");
88
+ }
89
+ export function createFalImageGenProvider(options) {
90
+ const baseUrl = (options.baseUrl ?? "https://queue.fal.run").replace(/\/+$/, "");
91
+ const fetchImpl = options.fetchImpl ?? fetch;
92
+ const catalogEntry = resolveFalImageModel(options.model);
93
+ const model = catalogEntry.id;
94
+ const editModel = options.editModel?.trim() ||
95
+ catalogEntry.editEndpoint ||
96
+ (model.endsWith("/edit") ? model : `${model}/edit`);
97
+ const caps = options.capabilities ?? {
98
+ modalities: catalogEntry.maxReferenceImages > 0
99
+ ? ["text", "image"]
100
+ : ["text"],
101
+ maxReferenceImages: catalogEntry.maxReferenceImages,
102
+ };
103
+ const pollIntervalMs = options.pollIntervalMs ?? 1500;
104
+ const timeoutMs = options.timeoutMs ?? 180_000;
105
+ return {
106
+ capabilities() {
107
+ return caps;
108
+ },
109
+ async generate(req) {
110
+ const prompt = String(req.prompt ?? "").trim();
111
+ if (!prompt) {
112
+ throw new ImageGenError("prompt is empty", "IMAGE_GEN_BAD_ARGS");
113
+ }
114
+ const refs = req.referenceImages ?? [];
115
+ const isEdit = refs.length > 0;
116
+ if (isEdit && caps.maxReferenceImages <= 0) {
117
+ throw new ImageGenError("FAL Provider configured without edit capability", "IMAGE_GEN_BAD_ARGS");
118
+ }
119
+ if (isEdit && refs.length > caps.maxReferenceImages) {
120
+ throw new ImageGenError(`at most ${caps.maxReferenceImages} reference image(s) for FAL edit`, "IMAGE_GEN_BAD_ARGS");
121
+ }
122
+ const endpoint = isEdit ? editModel : model;
123
+ const payload = {
124
+ prompt,
125
+ num_images: 1,
126
+ output_format: "png",
127
+ enable_safety_checker: false,
128
+ };
129
+ if (isEdit) {
130
+ payload.image_urls = refs.map(bytesToDataUrl);
131
+ }
132
+ else {
133
+ payload.image_size = falImageSize(req.size);
134
+ payload.num_inference_steps = 4;
135
+ }
136
+ const submitRes = await fetchImpl(joinUrl(baseUrl, endpoint), {
137
+ method: "POST",
138
+ headers: {
139
+ Authorization: `Key ${options.apiKey}`,
140
+ "Content-Type": "application/json",
141
+ },
142
+ body: JSON.stringify(payload),
143
+ });
144
+ const submitText = await submitRes.text().catch(() => "");
145
+ if (!submitRes.ok) {
146
+ throw new ImageGenError(`FAL submit HTTP ${submitRes.status}: ${submitText.slice(0, 240)}`, "IMAGE_GEN_BACKEND");
147
+ }
148
+ let submitBody;
149
+ try {
150
+ submitBody = JSON.parse(submitText);
151
+ }
152
+ catch {
153
+ throw new ImageGenError("FAL submit was not JSON", "IMAGE_GEN_BACKEND");
154
+ }
155
+ const result = await waitFalResult(submitBody, {
156
+ apiKey: options.apiKey,
157
+ fetchImpl,
158
+ pollIntervalMs,
159
+ timeoutMs,
160
+ });
161
+ const rows = result.images ??
162
+ (result.image?.url ? [{ url: result.image.url }] : []);
163
+ if (rows.length === 0 || !rows[0]?.url) {
164
+ throw new ImageGenError("FAL returned no image URL", "IMAGE_GEN_BACKEND");
165
+ }
166
+ const images = [];
167
+ for (const row of rows.slice(0, 4)) {
168
+ if (!row.url)
169
+ continue;
170
+ const downloaded = await downloadImage(row.url, fetchImpl);
171
+ images.push({
172
+ ...downloaded,
173
+ url: row.url,
174
+ });
175
+ }
176
+ if (images.length === 0) {
177
+ throw new ImageGenError("FAL returned no downloadable images", "IMAGE_GEN_BACKEND");
178
+ }
179
+ return {
180
+ images,
181
+ provider: "fal",
182
+ delivery: "fal",
183
+ modality: isEdit ? "image" : "text",
184
+ note: `fal endpoint=${endpoint}`,
185
+ };
186
+ },
187
+ };
188
+ }
189
+ //# sourceMappingURL=fal-http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fal-http.js","sourceRoot":"","sources":["../src/fal-http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AASpD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAgB3C,SAAS,OAAO,CAAC,IAAY,EAAE,IAAY;IACzC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;AACnE,CAAC;AAED,SAAS,YAAY,CAAC,IAA8B;IAClD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW;YACd,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAA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CAAC;gBAC3D,MAAM,CAAC,IAAI,CAAC;oBACV,GAAG,UAAU;oBACb,GAAG,EAAE,GAAG,CAAC,GAAG;iBACb,CAAC,CAAC;YACL,CAAC;YACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACxB,MAAM,IAAI,aAAa,CACrB,qCAAqC,EACrC,mBAAmB,CACpB,CAAC;YACJ,CAAC;YACD,OAAO;gBACL,MAAM;gBACN,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;gBACnC,IAAI,EAAE,gBAAgB,QAAQ,EAAE;aACjC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,13 +1,21 @@
1
1
  import type { ImageGenService } from "./types.js";
2
2
  export { ImageGenError, IMAGE_GEN_CAPABILITIES_TEXT_ONLY, imageGenSupportsEdit, isImageGenError, resolveImageGenCapabilities, type ImageGenCapabilities, type ImageGenDelivery, type ImageGenErrorCode, type ImageGenImage, type ImageGenRequest, type ImageGenResult, type ImageGenService, type ImageGenSize, type ImageGenSourceImage, } from "./types.js";
3
+ export { FAL_IMAGE_DEFAULT_MODEL, FAL_IMAGE_MODELS, resolveFalImageModel, type FalImageModelEntry, } from "./catalog.js";
3
4
  export { IMAGE_GEN_PROMPT_TEXT } from "./format.js";
4
5
  export { createMemoryImageGenProvider, minimalPngBytes, type MemoryImageGenOptions, } from "./memory.js";
5
6
  export { createOpenAiImageGenProvider, type OpenAiImageGenOptions, } from "./openai-http.js";
7
+ export { createFalImageGenProvider, type FalImageGenOptions, } from "./fal-http.js";
8
+ export { createXaiImageGenProvider, type XaiImageGenOptions, } from "./xai-http.js";
9
+ export { createOpenRouterImageGenProvider, type OpenRouterImageGenOptions, } from "./openrouter-http.js";
10
+ export { createDeepInfraImageGenProvider, type DeepInfraImageGenOptions, } from "./deepinfra-http.js";
11
+ export { createKreaImageGenProvider, type KreaImageGenOptions, } from "./krea-http.js";
12
+ export { createMetaAiImageGenProvider, type MetaAiImageGenOptions, } from "./meta-ai-http.js";
6
13
  export { createImageGenTools, imageGenUnavailableMessage, type CreateImageGenToolsOptions, } from "./tools.js";
7
14
  export { buildImageGenToolDescription, buildImageGenToolParameters, IMAGE_GEN_SIZES, } from "./schema.js";
8
15
  export { resolveImageGenReferenceImages } from "./references.js";
9
16
  /** Face `image-gen` product modes (Settings SoT). `memory` stays env-only. */
10
- export type ImageGenProductMode = "off" | "openai";
17
+ export declare const IMAGE_GEN_PRODUCT_MODES: readonly ["off", "openai", "fal", "xai", "openrouter", "deepinfra", "krea", "meta-ai"];
18
+ export type ImageGenProductMode = (typeof IMAGE_GEN_PRODUCT_MODES)[number];
11
19
  /** Face `image-gen` product shape. */
12
20
  export interface ImageGenProductConfig {
13
21
  readonly mode: ImageGenProductMode;
@@ -30,10 +38,7 @@ export interface DefaultImageGenAccess {
30
38
  }
31
39
  /**
32
40
  * Resolve an image Provider (t2i + edit when capabilities allow).
33
- * - Injected `service` wins.
34
- * - Non-empty `XRK_IMAGE_GEN` is CI bypass over Face `product`.
35
- * - Product / env: `off` · `openai` (`1`) · `memory` (env-only).
36
- * - Else no service; tools stay registered and fail honestly.
41
+ * Hermes main-path matrix: openai · fal · xai · openrouter · deepinfra · krea · meta-ai (+ memory env).
37
42
  */
38
43
  export declare function createDefaultImageGenAccess(options?: DefaultImageGenAccessOptions): DefaultImageGenAccess;
39
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EACL,aAAa,EACb,gCAAgC,EAChC,oBAAoB,EACpB,eAAe,EACf,2BAA2B,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KA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