@warlock.js/ai 4.1.15 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/cjs/index.cjs +88 -87
  4. package/cjs/index.cjs.map +1 -1
  5. package/esm/agent/agent-config.type.d.mts +1 -1
  6. package/esm/agent/agent-config.type.d.mts.map +1 -1
  7. package/esm/agent/agent-input-builder.mjs +1 -1
  8. package/esm/agent/agent-input-builder.mjs.map +1 -1
  9. package/esm/agent/agent-log-event.mjs +1 -1
  10. package/esm/agent/agent-log-event.mjs.map +1 -1
  11. package/esm/agent/agent-stream.d.mts +1 -1
  12. package/esm/agent/agent-stream.d.mts.map +1 -1
  13. package/esm/agent/agent-stream.mjs +1 -1
  14. package/esm/agent/agent-stream.mjs.map +1 -1
  15. package/esm/agent/agent-to-stream-event.mjs +1 -1
  16. package/esm/agent/agent-to-stream-event.mjs.map +1 -1
  17. package/esm/agent/agent.d.mts +1 -1
  18. package/esm/agent/agent.d.mts.map +1 -1
  19. package/esm/agent/agent.mjs +1 -1
  20. package/esm/agent/agent.mjs.map +1 -1
  21. package/esm/agent/json-stream-guard.mjs +1 -1
  22. package/esm/agent/json-stream-guard.mjs.map +1 -1
  23. package/esm/ai.d.mts +1 -1
  24. package/esm/ai.d.mts.map +1 -1
  25. package/esm/ai.mjs +1 -1
  26. package/esm/ai.mjs.map +1 -1
  27. package/esm/config.d.mts +1 -1
  28. package/esm/config.d.mts.map +1 -1
  29. package/esm/config.mjs +1 -1
  30. package/esm/config.mjs.map +1 -1
  31. package/esm/contracts/agent/agent-options.type.d.mts +1 -1
  32. package/esm/contracts/agent/agent-options.type.d.mts.map +1 -1
  33. package/esm/contracts/agent/agent.contract.d.mts +1 -1
  34. package/esm/contracts/agent/agent.contract.d.mts.map +1 -1
  35. package/esm/contracts/attachment.type.d.mts +1 -1
  36. package/esm/contracts/attachment.type.d.mts.map +1 -1
  37. package/esm/contracts/content-part.type.d.mts +1 -1
  38. package/esm/contracts/content-part.type.d.mts.map +1 -1
  39. package/esm/contracts/conversation-message.type.d.mts +1 -1
  40. package/esm/contracts/conversation-message.type.d.mts.map +1 -1
  41. package/esm/contracts/embedder.contract.d.mts +1 -1
  42. package/esm/contracts/embedder.contract.d.mts.map +1 -1
  43. package/esm/contracts/end.type.d.mts +1 -1
  44. package/esm/contracts/end.type.d.mts.map +1 -1
  45. package/esm/contracts/end.type.mjs +1 -1
  46. package/esm/contracts/end.type.mjs.map +1 -1
  47. package/esm/contracts/events/agent-events.type.d.mts +1 -1
  48. package/esm/contracts/events/agent-events.type.d.mts.map +1 -1
  49. package/esm/contracts/events/complete-event.type.d.mts +1 -1
  50. package/esm/contracts/events/complete-event.type.d.mts.map +1 -1
  51. package/esm/contracts/events/event-identity.type.d.mts +1 -1
  52. package/esm/contracts/events/event-identity.type.d.mts.map +1 -1
  53. package/esm/contracts/events/event-map.type.d.mts +1 -1
  54. package/esm/contracts/events/event-map.type.d.mts.map +1 -1
  55. package/esm/contracts/events/supervisor-events.type.d.mts +1 -1
  56. package/esm/contracts/events/supervisor-events.type.d.mts.map +1 -1
  57. package/esm/contracts/events/usage-event.type.d.mts +1 -1
  58. package/esm/contracts/events/usage-event.type.d.mts.map +1 -1
  59. package/esm/contracts/events/workflow-events.type.d.mts +1 -1
  60. package/esm/contracts/events/workflow-events.type.d.mts.map +1 -1
  61. package/esm/contracts/executable.contract.d.mts +1 -1
  62. package/esm/contracts/executable.contract.d.mts.map +1 -1
  63. package/esm/contracts/finish-reason.type.d.mts +1 -1
  64. package/esm/contracts/finish-reason.type.d.mts.map +1 -1
  65. package/esm/contracts/middleware/middleware-context.type.d.mts +1 -1
  66. package/esm/contracts/middleware/middleware-context.type.d.mts.map +1 -1
  67. package/esm/contracts/middleware/middleware-state.type.d.mts +1 -1
  68. package/esm/contracts/middleware/middleware-state.type.d.mts.map +1 -1
  69. package/esm/contracts/middleware/middleware.contract.d.mts +1 -1
  70. package/esm/contracts/middleware/middleware.contract.d.mts.map +1 -1
  71. package/esm/contracts/model-tool-call-request.type.d.mts +1 -1
  72. package/esm/contracts/model-tool-call-request.type.d.mts.map +1 -1
  73. package/esm/contracts/model.contract.d.mts +1 -1
  74. package/esm/contracts/model.contract.d.mts.map +1 -1
  75. package/esm/contracts/placeholders.type.d.mts +1 -1
  76. package/esm/contracts/placeholders.type.d.mts.map +1 -1
  77. package/esm/contracts/result/agent-result.type.d.mts +1 -1
  78. package/esm/contracts/result/agent-result.type.d.mts.map +1 -1
  79. package/esm/contracts/result/attempt-entry.type.d.mts +1 -1
  80. package/esm/contracts/result/attempt-entry.type.d.mts.map +1 -1
  81. package/esm/contracts/result/base-report.type.d.mts +1 -1
  82. package/esm/contracts/result/base-report.type.d.mts.map +1 -1
  83. package/esm/contracts/result/base-report.type.mjs +1 -1
  84. package/esm/contracts/result/base-report.type.mjs.map +1 -1
  85. package/esm/contracts/result/base-result.type.d.mts +1 -1
  86. package/esm/contracts/result/base-result.type.d.mts.map +1 -1
  87. package/esm/contracts/result/execute-result.type.d.mts +1 -1
  88. package/esm/contracts/result/execute-result.type.d.mts.map +1 -1
  89. package/esm/contracts/result/execution-report.type.d.mts +1 -1
  90. package/esm/contracts/result/execution-report.type.d.mts.map +1 -1
  91. package/esm/contracts/result/llm-trip.type.d.mts +1 -1
  92. package/esm/contracts/result/llm-trip.type.d.mts.map +1 -1
  93. package/esm/contracts/result/model-pricing.type.d.mts +1 -1
  94. package/esm/contracts/result/model-pricing.type.d.mts.map +1 -1
  95. package/esm/contracts/result/session-send-result.type.d.mts +1 -1
  96. package/esm/contracts/result/session-send-result.type.d.mts.map +1 -1
  97. package/esm/contracts/result/step-result.type.d.mts +1 -1
  98. package/esm/contracts/result/step-result.type.d.mts.map +1 -1
  99. package/esm/contracts/result/supervisor-result.type.d.mts +1 -1
  100. package/esm/contracts/result/supervisor-result.type.d.mts.map +1 -1
  101. package/esm/contracts/result/tool-call.type.d.mts +1 -1
  102. package/esm/contracts/result/tool-call.type.d.mts.map +1 -1
  103. package/esm/contracts/result/usage.type.d.mts +1 -1
  104. package/esm/contracts/result/usage.type.d.mts.map +1 -1
  105. package/esm/contracts/result/workflow-result.type.d.mts +1 -1
  106. package/esm/contracts/result/workflow-result.type.d.mts.map +1 -1
  107. package/esm/contracts/sdk-adapter.contract.d.mts +1 -1
  108. package/esm/contracts/sdk-adapter.contract.d.mts.map +1 -1
  109. package/esm/contracts/stream/stream-event.type.d.mts +1 -1
  110. package/esm/contracts/stream/stream-event.type.d.mts.map +1 -1
  111. package/esm/contracts/stream/stream.contract.d.mts +1 -1
  112. package/esm/contracts/stream/stream.contract.d.mts.map +1 -1
  113. package/esm/contracts/streaming-tool-guard-config.type.d.mts +1 -1
  114. package/esm/contracts/streaming-tool-guard-config.type.d.mts.map +1 -1
  115. package/esm/contracts/supervisor/ack-entry.type.d.mts +1 -1
  116. package/esm/contracts/supervisor/ack-entry.type.d.mts.map +1 -1
  117. package/esm/contracts/supervisor/classifier-context.type.d.mts +1 -1
  118. package/esm/contracts/supervisor/classifier-context.type.d.mts.map +1 -1
  119. package/esm/contracts/supervisor/dispatch-context.type.d.mts +1 -1
  120. package/esm/contracts/supervisor/dispatch-context.type.d.mts.map +1 -1
  121. package/esm/contracts/supervisor/evaluate-context.type.d.mts +1 -1
  122. package/esm/contracts/supervisor/evaluate-context.type.d.mts.map +1 -1
  123. package/esm/contracts/supervisor/intent-entry.type.d.mts +1 -1
  124. package/esm/contracts/supervisor/intent-entry.type.d.mts.map +1 -1
  125. package/esm/contracts/supervisor/iteration-snapshot.type.d.mts +1 -1
  126. package/esm/contracts/supervisor/iteration-snapshot.type.d.mts.map +1 -1
  127. package/esm/contracts/supervisor/next.type.d.mts +1 -1
  128. package/esm/contracts/supervisor/next.type.d.mts.map +1 -1
  129. package/esm/contracts/supervisor/route-context.type.d.mts +1 -1
  130. package/esm/contracts/supervisor/route-context.type.d.mts.map +1 -1
  131. package/esm/contracts/supervisor/router-entry.type.d.mts +1 -1
  132. package/esm/contracts/supervisor/router-entry.type.d.mts.map +1 -1
  133. package/esm/contracts/supervisor/supervisor-config.type.d.mts +1 -1
  134. package/esm/contracts/supervisor/supervisor-config.type.d.mts.map +1 -1
  135. package/esm/contracts/supervisor/supervisor-execute-options.type.d.mts +1 -1
  136. package/esm/contracts/supervisor/supervisor-execute-options.type.d.mts.map +1 -1
  137. package/esm/contracts/supervisor/supervisor-input.type.d.mts +1 -1
  138. package/esm/contracts/supervisor/supervisor-input.type.d.mts.map +1 -1
  139. package/esm/contracts/supervisor/supervisor-snapshot.type.d.mts +1 -1
  140. package/esm/contracts/supervisor/supervisor-snapshot.type.d.mts.map +1 -1
  141. package/esm/contracts/supervisor/supervisor-stream-event.type.d.mts +1 -1
  142. package/esm/contracts/supervisor/supervisor-stream-event.type.d.mts.map +1 -1
  143. package/esm/contracts/supervisor/supervisor.contract.d.mts +1 -1
  144. package/esm/contracts/supervisor/supervisor.contract.d.mts.map +1 -1
  145. package/esm/contracts/system-prompt.contract.d.mts +1 -1
  146. package/esm/contracts/system-prompt.contract.d.mts.map +1 -1
  147. package/esm/contracts/tool.contract.d.mts +1 -1
  148. package/esm/contracts/tool.contract.d.mts.map +1 -1
  149. package/esm/contracts/workflow/next-step-result.type.d.mts +1 -1
  150. package/esm/contracts/workflow/next-step-result.type.d.mts.map +1 -1
  151. package/esm/contracts/workflow/retry-config.type.d.mts +1 -1
  152. package/esm/contracts/workflow/retry-config.type.d.mts.map +1 -1
  153. package/esm/contracts/workflow/step.contract.d.mts +1 -1
  154. package/esm/contracts/workflow/step.contract.d.mts.map +1 -1
  155. package/esm/contracts/workflow/workflow-context.type.d.mts +1 -1
  156. package/esm/contracts/workflow/workflow-context.type.d.mts.map +1 -1
  157. package/esm/contracts/workflow/workflow-snapshot.type.d.mts +1 -1
  158. package/esm/contracts/workflow/workflow-snapshot.type.d.mts.map +1 -1
  159. package/esm/contracts/workflow/workflow.contract.d.mts +1 -1
  160. package/esm/contracts/workflow/workflow.contract.d.mts.map +1 -1
  161. package/esm/errors/agent-cancelled-error.d.mts +1 -1
  162. package/esm/errors/agent-cancelled-error.d.mts.map +1 -1
  163. package/esm/errors/agent-cancelled-error.mjs +1 -1
  164. package/esm/errors/agent-cancelled-error.mjs.map +1 -1
  165. package/esm/errors/agent-execution-error.d.mts +1 -1
  166. package/esm/errors/agent-execution-error.d.mts.map +1 -1
  167. package/esm/errors/agent-execution-error.mjs +1 -1
  168. package/esm/errors/agent-execution-error.mjs.map +1 -1
  169. package/esm/errors/agent-max-trips-error.d.mts +1 -1
  170. package/esm/errors/agent-max-trips-error.d.mts.map +1 -1
  171. package/esm/errors/agent-max-trips-error.mjs +1 -1
  172. package/esm/errors/agent-max-trips-error.mjs.map +1 -1
  173. package/esm/errors/ai-error.d.mts +1 -1
  174. package/esm/errors/ai-error.d.mts.map +1 -1
  175. package/esm/errors/ai-error.mjs +1 -1
  176. package/esm/errors/ai-error.mjs.map +1 -1
  177. package/esm/errors/budget-exceeded-error.d.mts +1 -1
  178. package/esm/errors/budget-exceeded-error.d.mts.map +1 -1
  179. package/esm/errors/budget-exceeded-error.mjs +1 -1
  180. package/esm/errors/budget-exceeded-error.mjs.map +1 -1
  181. package/esm/errors/content-filter-error.d.mts +1 -1
  182. package/esm/errors/content-filter-error.d.mts.map +1 -1
  183. package/esm/errors/content-filter-error.mjs +1 -1
  184. package/esm/errors/content-filter-error.mjs.map +1 -1
  185. package/esm/errors/context-length-exceeded-error.d.mts +1 -1
  186. package/esm/errors/context-length-exceeded-error.d.mts.map +1 -1
  187. package/esm/errors/context-length-exceeded-error.mjs +1 -1
  188. package/esm/errors/context-length-exceeded-error.mjs.map +1 -1
  189. package/esm/errors/error-category.type.d.mts +1 -1
  190. package/esm/errors/error-category.type.d.mts.map +1 -1
  191. package/esm/errors/error-code.type.d.mts +1 -1
  192. package/esm/errors/error-code.type.d.mts.map +1 -1
  193. package/esm/errors/guardrail-violation-error.d.mts +1 -1
  194. package/esm/errors/guardrail-violation-error.d.mts.map +1 -1
  195. package/esm/errors/guardrail-violation-error.mjs +1 -1
  196. package/esm/errors/guardrail-violation-error.mjs.map +1 -1
  197. package/esm/errors/invalid-request-error.d.mts +1 -1
  198. package/esm/errors/invalid-request-error.d.mts.map +1 -1
  199. package/esm/errors/invalid-request-error.mjs +1 -1
  200. package/esm/errors/invalid-request-error.mjs.map +1 -1
  201. package/esm/errors/max-iterations-error.d.mts +1 -1
  202. package/esm/errors/max-iterations-error.d.mts.map +1 -1
  203. package/esm/errors/max-iterations-error.mjs +1 -1
  204. package/esm/errors/max-iterations-error.mjs.map +1 -1
  205. package/esm/errors/max-steps-exceeded-error.d.mts +1 -1
  206. package/esm/errors/max-steps-exceeded-error.d.mts.map +1 -1
  207. package/esm/errors/max-steps-exceeded-error.mjs +1 -1
  208. package/esm/errors/max-steps-exceeded-error.mjs.map +1 -1
  209. package/esm/errors/provider-auth-error.d.mts +1 -1
  210. package/esm/errors/provider-auth-error.d.mts.map +1 -1
  211. package/esm/errors/provider-auth-error.mjs +1 -1
  212. package/esm/errors/provider-auth-error.mjs.map +1 -1
  213. package/esm/errors/provider-error.d.mts +1 -1
  214. package/esm/errors/provider-error.d.mts.map +1 -1
  215. package/esm/errors/provider-error.mjs +1 -1
  216. package/esm/errors/provider-error.mjs.map +1 -1
  217. package/esm/errors/provider-rate-limit-error.d.mts +1 -1
  218. package/esm/errors/provider-rate-limit-error.d.mts.map +1 -1
  219. package/esm/errors/provider-rate-limit-error.mjs +1 -1
  220. package/esm/errors/provider-rate-limit-error.mjs.map +1 -1
  221. package/esm/errors/provider-timeout-error.d.mts +1 -1
  222. package/esm/errors/provider-timeout-error.d.mts.map +1 -1
  223. package/esm/errors/provider-timeout-error.mjs +1 -1
  224. package/esm/errors/provider-timeout-error.mjs.map +1 -1
  225. package/esm/errors/quota-exceeded-error.d.mts +1 -1
  226. package/esm/errors/quota-exceeded-error.d.mts.map +1 -1
  227. package/esm/errors/quota-exceeded-error.mjs +1 -1
  228. package/esm/errors/quota-exceeded-error.mjs.map +1 -1
  229. package/esm/errors/routing-error.d.mts +1 -1
  230. package/esm/errors/routing-error.d.mts.map +1 -1
  231. package/esm/errors/routing-error.mjs +1 -1
  232. package/esm/errors/routing-error.mjs.map +1 -1
  233. package/esm/errors/schema-validation-error.d.mts +1 -1
  234. package/esm/errors/schema-validation-error.d.mts.map +1 -1
  235. package/esm/errors/schema-validation-error.mjs +1 -1
  236. package/esm/errors/schema-validation-error.mjs.map +1 -1
  237. package/esm/errors/step-failed-error.d.mts +1 -1
  238. package/esm/errors/step-failed-error.d.mts.map +1 -1
  239. package/esm/errors/step-failed-error.mjs +1 -1
  240. package/esm/errors/step-failed-error.mjs.map +1 -1
  241. package/esm/errors/supervisor-cancelled-error.d.mts +1 -1
  242. package/esm/errors/supervisor-cancelled-error.d.mts.map +1 -1
  243. package/esm/errors/supervisor-cancelled-error.mjs +1 -1
  244. package/esm/errors/supervisor-cancelled-error.mjs.map +1 -1
  245. package/esm/errors/supervisor-drift-error.d.mts +1 -1
  246. package/esm/errors/supervisor-drift-error.d.mts.map +1 -1
  247. package/esm/errors/supervisor-drift-error.mjs +1 -1
  248. package/esm/errors/supervisor-drift-error.mjs.map +1 -1
  249. package/esm/errors/supervisor-failed-error.d.mts +1 -1
  250. package/esm/errors/supervisor-failed-error.d.mts.map +1 -1
  251. package/esm/errors/supervisor-failed-error.mjs +1 -1
  252. package/esm/errors/supervisor-failed-error.mjs.map +1 -1
  253. package/esm/errors/supervisor-routing-error.d.mts +1 -1
  254. package/esm/errors/supervisor-routing-error.d.mts.map +1 -1
  255. package/esm/errors/supervisor-routing-error.mjs +1 -1
  256. package/esm/errors/supervisor-routing-error.mjs.map +1 -1
  257. package/esm/errors/tool-execution-error.d.mts +1 -1
  258. package/esm/errors/tool-execution-error.d.mts.map +1 -1
  259. package/esm/errors/tool-execution-error.mjs +1 -1
  260. package/esm/errors/tool-execution-error.mjs.map +1 -1
  261. package/esm/errors/workflow-cancelled-error.d.mts +1 -1
  262. package/esm/errors/workflow-cancelled-error.d.mts.map +1 -1
  263. package/esm/errors/workflow-cancelled-error.mjs +1 -1
  264. package/esm/errors/workflow-cancelled-error.mjs.map +1 -1
  265. package/esm/errors/workflow-drift-error.d.mts +1 -1
  266. package/esm/errors/workflow-drift-error.d.mts.map +1 -1
  267. package/esm/errors/workflow-drift-error.mjs +1 -1
  268. package/esm/errors/workflow-drift-error.mjs.map +1 -1
  269. package/esm/errors/workflow-error.d.mts +1 -1
  270. package/esm/errors/workflow-error.d.mts.map +1 -1
  271. package/esm/errors/workflow-error.mjs +1 -1
  272. package/esm/errors/workflow-error.mjs.map +1 -1
  273. package/esm/middleware/builtins/budget.d.mts +1 -1
  274. package/esm/middleware/builtins/budget.d.mts.map +1 -1
  275. package/esm/middleware/builtins/budget.mjs +1 -1
  276. package/esm/middleware/builtins/budget.mjs.map +1 -1
  277. package/esm/middleware/builtins/guardrail.d.mts +1 -1
  278. package/esm/middleware/builtins/guardrail.d.mts.map +1 -1
  279. package/esm/middleware/builtins/guardrail.mjs +1 -1
  280. package/esm/middleware/builtins/guardrail.mjs.map +1 -1
  281. package/esm/middleware/builtins/semantic-cache.d.mts +1 -1
  282. package/esm/middleware/builtins/semantic-cache.d.mts.map +1 -1
  283. package/esm/middleware/builtins/semantic-cache.mjs +1 -1
  284. package/esm/middleware/builtins/semantic-cache.mjs.map +1 -1
  285. package/esm/middleware/helpers/compose.d.mts +1 -1
  286. package/esm/middleware/helpers/compose.d.mts.map +1 -1
  287. package/esm/middleware/helpers/compose.mjs +1 -1
  288. package/esm/middleware/helpers/compose.mjs.map +1 -1
  289. package/esm/middleware/helpers/for-tool.d.mts +1 -1
  290. package/esm/middleware/helpers/for-tool.d.mts.map +1 -1
  291. package/esm/middleware/helpers/for-tool.mjs +1 -1
  292. package/esm/middleware/helpers/for-tool.mjs.map +1 -1
  293. package/esm/middleware/pipeline.d.mts +1 -1
  294. package/esm/middleware/pipeline.d.mts.map +1 -1
  295. package/esm/middleware/pipeline.mjs +1 -1
  296. package/esm/middleware/pipeline.mjs.map +1 -1
  297. package/esm/middleware/utils/extract-user-text.d.mts +1 -1
  298. package/esm/middleware/utils/extract-user-text.d.mts.map +1 -1
  299. package/esm/middleware/utils/extract-user-text.mjs +1 -1
  300. package/esm/middleware/utils/extract-user-text.mjs.map +1 -1
  301. package/esm/middleware/utils/namespaced-state.d.mts +1 -1
  302. package/esm/middleware/utils/namespaced-state.d.mts.map +1 -1
  303. package/esm/middleware/utils/namespaced-state.mjs +1 -1
  304. package/esm/middleware/utils/namespaced-state.mjs.map +1 -1
  305. package/esm/mock/mock-agent.d.mts +1 -1
  306. package/esm/mock/mock-agent.d.mts.map +1 -1
  307. package/esm/mock/mock-agent.mjs +1 -1
  308. package/esm/mock/mock-agent.mjs.map +1 -1
  309. package/esm/mock/mock-config.type.d.mts +1 -1
  310. package/esm/mock/mock-config.type.d.mts.map +1 -1
  311. package/esm/mock/mock-model.d.mts +1 -1
  312. package/esm/mock/mock-model.d.mts.map +1 -1
  313. package/esm/mock/mock-model.mjs +1 -1
  314. package/esm/mock/mock-model.mjs.map +1 -1
  315. package/esm/mock/mock-sdk.d.mts +1 -1
  316. package/esm/mock/mock-sdk.d.mts.map +1 -1
  317. package/esm/mock/mock-sdk.mjs +1 -1
  318. package/esm/mock/mock-sdk.mjs.map +1 -1
  319. package/esm/supervisor/as-tool.d.mts +1 -1
  320. package/esm/supervisor/as-tool.d.mts.map +1 -1
  321. package/esm/supervisor/as-tool.mjs +1 -1
  322. package/esm/supervisor/as-tool.mjs.map +1 -1
  323. package/esm/supervisor/cancellation.d.mts +1 -1
  324. package/esm/supervisor/cancellation.d.mts.map +1 -1
  325. package/esm/supervisor/cancellation.mjs +1 -1
  326. package/esm/supervisor/cancellation.mjs.map +1 -1
  327. package/esm/supervisor/decide.mjs +1 -1
  328. package/esm/supervisor/decide.mjs.map +1 -1
  329. package/esm/supervisor/emitter.d.mts +1 -1
  330. package/esm/supervisor/emitter.d.mts.map +1 -1
  331. package/esm/supervisor/emitter.mjs +1 -1
  332. package/esm/supervisor/emitter.mjs.map +1 -1
  333. package/esm/supervisor/entries.d.mts +1 -1
  334. package/esm/supervisor/entries.d.mts.map +1 -1
  335. package/esm/supervisor/entries.mjs +1 -1
  336. package/esm/supervisor/entries.mjs.map +1 -1
  337. package/esm/supervisor/execution.d.mts +1 -1
  338. package/esm/supervisor/execution.d.mts.map +1 -1
  339. package/esm/supervisor/execution.mjs +1 -1
  340. package/esm/supervisor/execution.mjs.map +1 -1
  341. package/esm/supervisor/router-prompt.d.mts +1 -1
  342. package/esm/supervisor/router-prompt.d.mts.map +1 -1
  343. package/esm/supervisor/router-prompt.mjs +1 -1
  344. package/esm/supervisor/router-prompt.mjs.map +1 -1
  345. package/esm/supervisor/signature.d.mts +1 -1
  346. package/esm/supervisor/signature.d.mts.map +1 -1
  347. package/esm/supervisor/signature.mjs +1 -1
  348. package/esm/supervisor/signature.mjs.map +1 -1
  349. package/esm/supervisor/snapshot.d.mts +1 -1
  350. package/esm/supervisor/snapshot.d.mts.map +1 -1
  351. package/esm/supervisor/snapshot.mjs +1 -1
  352. package/esm/supervisor/snapshot.mjs.map +1 -1
  353. package/esm/supervisor/supervisor-stream.d.mts +1 -1
  354. package/esm/supervisor/supervisor-stream.d.mts.map +1 -1
  355. package/esm/supervisor/supervisor-stream.mjs +1 -1
  356. package/esm/supervisor/supervisor-stream.mjs.map +1 -1
  357. package/esm/supervisor/supervisor.d.mts +1 -1
  358. package/esm/supervisor/supervisor.d.mts.map +1 -1
  359. package/esm/supervisor/supervisor.mjs +1 -1
  360. package/esm/supervisor/supervisor.mjs.map +1 -1
  361. package/esm/system-prompt/instruction.d.mts +1 -1
  362. package/esm/system-prompt/instruction.d.mts.map +1 -1
  363. package/esm/system-prompt/instruction.mjs +1 -1
  364. package/esm/system-prompt/instruction.mjs.map +1 -1
  365. package/esm/system-prompt/persona.d.mts +1 -1
  366. package/esm/system-prompt/persona.d.mts.map +1 -1
  367. package/esm/system-prompt/persona.mjs +1 -1
  368. package/esm/system-prompt/persona.mjs.map +1 -1
  369. package/esm/system-prompt/render-placeholders.d.mts +1 -1
  370. package/esm/system-prompt/render-placeholders.d.mts.map +1 -1
  371. package/esm/system-prompt/render-placeholders.mjs +1 -1
  372. package/esm/system-prompt/render-placeholders.mjs.map +1 -1
  373. package/esm/system-prompt/system-prompt.d.mts +1 -1
  374. package/esm/system-prompt/system-prompt.d.mts.map +1 -1
  375. package/esm/system-prompt/system-prompt.mjs +1 -1
  376. package/esm/system-prompt/system-prompt.mjs.map +1 -1
  377. package/esm/tool/tool.d.mts +1 -1
  378. package/esm/tool/tool.d.mts.map +1 -1
  379. package/esm/tool/tool.mjs +3 -2
  380. package/esm/tool/tool.mjs.map +1 -1
  381. package/esm/utils/compute-cost.d.mts +1 -1
  382. package/esm/utils/compute-cost.d.mts.map +1 -1
  383. package/esm/utils/compute-cost.mjs +1 -1
  384. package/esm/utils/compute-cost.mjs.map +1 -1
  385. package/esm/utils/extract-json-payload.d.mts +1 -1
  386. package/esm/utils/extract-json-payload.d.mts.map +1 -1
  387. package/esm/utils/extract-json-payload.mjs +1 -1
  388. package/esm/utils/extract-json-payload.mjs.map +1 -1
  389. package/esm/utils/generate-run-id.d.mts +1 -1
  390. package/esm/utils/generate-run-id.d.mts.map +1 -1
  391. package/esm/utils/generate-run-id.mjs +1 -1
  392. package/esm/utils/generate-run-id.mjs.map +1 -1
  393. package/esm/utils/json-schema.d.mts +1 -1
  394. package/esm/utils/json-schema.d.mts.map +1 -1
  395. package/esm/utils/json-schema.mjs +1 -1
  396. package/esm/utils/json-schema.mjs.map +1 -1
  397. package/esm/utils/prepare-attachment-part.d.mts +1 -1
  398. package/esm/utils/prepare-attachment-part.d.mts.map +1 -1
  399. package/esm/utils/prepare-attachment-part.mjs +1 -1
  400. package/esm/utils/prepare-attachment-part.mjs.map +1 -1
  401. package/esm/utils/resolve-attachment.d.mts +1 -1
  402. package/esm/utils/resolve-attachment.d.mts.map +1 -1
  403. package/esm/utils/resolve-attachment.mjs +1 -1
  404. package/esm/utils/resolve-attachment.mjs.map +1 -1
  405. package/esm/utils/safe-json-parse.d.mts +1 -1
  406. package/esm/utils/safe-json-parse.d.mts.map +1 -1
  407. package/esm/utils/safe-json-parse.mjs +1 -1
  408. package/esm/utils/safe-json-parse.mjs.map +1 -1
  409. package/esm/utils/stamp-report-lineage.d.mts +1 -1
  410. package/esm/utils/stamp-report-lineage.d.mts.map +1 -1
  411. package/esm/utils/stamp-report-lineage.mjs +1 -1
  412. package/esm/utils/stamp-report-lineage.mjs.map +1 -1
  413. package/esm/utils/token-count.d.mts +1 -1
  414. package/esm/utils/token-count.d.mts.map +1 -1
  415. package/esm/utils/token-count.mjs +1 -1
  416. package/esm/utils/token-count.mjs.map +1 -1
  417. package/esm/workflow/as-tool.mjs +1 -1
  418. package/esm/workflow/as-tool.mjs.map +1 -1
  419. package/esm/workflow/cancellation.mjs +1 -1
  420. package/esm/workflow/cancellation.mjs.map +1 -1
  421. package/esm/workflow/emitter.mjs +1 -1
  422. package/esm/workflow/emitter.mjs.map +1 -1
  423. package/esm/workflow/engine.mjs +1 -1
  424. package/esm/workflow/engine.mjs.map +1 -1
  425. package/esm/workflow/retry.mjs +1 -1
  426. package/esm/workflow/retry.mjs.map +1 -1
  427. package/esm/workflow/router.mjs +1 -1
  428. package/esm/workflow/router.mjs.map +1 -1
  429. package/esm/workflow/run-scoped-emitter.mjs +1 -1
  430. package/esm/workflow/run-scoped-emitter.mjs.map +1 -1
  431. package/esm/workflow/signature.d.mts +1 -1
  432. package/esm/workflow/signature.d.mts.map +1 -1
  433. package/esm/workflow/signature.mjs +1 -1
  434. package/esm/workflow/signature.mjs.map +1 -1
  435. package/esm/workflow/snapshot.mjs +1 -1
  436. package/esm/workflow/snapshot.mjs.map +1 -1
  437. package/esm/workflow/state.mjs +1 -1
  438. package/esm/workflow/state.mjs.map +1 -1
  439. package/esm/workflow/step-runner.mjs +1 -1
  440. package/esm/workflow/step-runner.mjs.map +1 -1
  441. package/esm/workflow/step.d.mts +1 -1
  442. package/esm/workflow/step.d.mts.map +1 -1
  443. package/esm/workflow/step.mjs +1 -1
  444. package/esm/workflow/step.mjs.map +1 -1
  445. package/esm/workflow/workflow.d.mts +1 -1
  446. package/esm/workflow/workflow.d.mts.map +1 -1
  447. package/esm/workflow/workflow.mjs +1 -1
  448. package/esm/workflow/workflow.mjs.map +1 -1
  449. package/package.json +3 -3
package/cjs/index.cjs CHANGED
@@ -3,7 +3,7 @@ let _warlock_js_logger = require("@warlock.js/logger");
3
3
  let node_fs_promises = require("node:fs/promises");
4
4
  let node_path = require("node:path");
5
5
 
6
- //#region ../../@warlock.js/ai/src/errors/ai-error.ts
6
+ //#region ../@warlock.js/ai/src/errors/ai-error.ts
7
7
  /**
8
8
  * Base class for every error thrown (or surfaced via `result.error`) by
9
9
  * `@warlock.js/ai` and its provider adapter packages.
@@ -69,7 +69,7 @@ var AIError = class extends Error {
69
69
  };
70
70
 
71
71
  //#endregion
72
- //#region ../../@warlock.js/ai/src/errors/agent-execution-error.ts
72
+ //#region ../@warlock.js/ai/src/errors/agent-execution-error.ts
73
73
  /**
74
74
  * Base for agent runtime failures that aren't schema / tool / provider
75
75
  * problems — runtime-structural issues inside the trip loop or
@@ -100,7 +100,7 @@ var AgentExecutionError = class extends AIError {
100
100
  };
101
101
 
102
102
  //#endregion
103
- //#region ../../@warlock.js/ai/src/errors/agent-cancelled-error.ts
103
+ //#region ../@warlock.js/ai/src/errors/agent-cancelled-error.ts
104
104
  /**
105
105
  * Agent run was cancelled via `AbortSignal` before it could finish.
106
106
  * Between-trip cancellation is guaranteed; mid-trip cancellation is
@@ -139,7 +139,7 @@ var AgentCancelledError = class extends AgentExecutionError {
139
139
  };
140
140
 
141
141
  //#endregion
142
- //#region ../../@warlock.js/ai/src/errors/agent-max-trips-error.ts
142
+ //#region ../@warlock.js/ai/src/errors/agent-max-trips-error.ts
143
143
  /**
144
144
  * Runaway-loop hard guard: the agent's trip loop ran `maxTrips` round
145
145
  * trips to the model without the model issuing a natural stop. The
@@ -176,7 +176,7 @@ var AgentMaxTripsError = class extends AgentExecutionError {
176
176
  };
177
177
 
178
178
  //#endregion
179
- //#region ../../@warlock.js/ai/src/errors/budget-exceeded-error.ts
179
+ //#region ../@warlock.js/ai/src/errors/budget-exceeded-error.ts
180
180
  /**
181
181
  * A user- or framework-configured budget was exceeded mid-execution.
182
182
  *
@@ -203,7 +203,7 @@ var BudgetExceededError = class extends AIError {
203
203
  };
204
204
 
205
205
  //#endregion
206
- //#region ../../@warlock.js/ai/src/errors/provider-error.ts
206
+ //#region ../@warlock.js/ai/src/errors/provider-error.ts
207
207
  /**
208
208
  * Any failure that originated from the model provider (OpenAI, Azure,
209
209
  * OpenRouter, local gateway). Base class for the provider subclasses
@@ -241,7 +241,7 @@ var ProviderError = class extends AIError {
241
241
  };
242
242
 
243
243
  //#endregion
244
- //#region ../../@warlock.js/ai/src/errors/content-filter-error.ts
244
+ //#region ../@warlock.js/ai/src/errors/content-filter-error.ts
245
245
  /**
246
246
  * Response (or request) was blocked by the provider's safety filter.
247
247
  * Not retryable with the same input — reshape the prompt or lean on
@@ -265,7 +265,7 @@ var ContentFilterError = class extends ProviderError {
265
265
  };
266
266
 
267
267
  //#endregion
268
- //#region ../../@warlock.js/ai/src/errors/context-length-exceeded-error.ts
268
+ //#region ../@warlock.js/ai/src/errors/context-length-exceeded-error.ts
269
269
  /**
270
270
  * The request's prompt (messages + tools + schema) exceeded the
271
271
  * model's context window. Not retryable without shortening the input.
@@ -292,7 +292,7 @@ var ContextLengthExceededError = class extends ProviderError {
292
292
  };
293
293
 
294
294
  //#endregion
295
- //#region ../../@warlock.js/ai/src/errors/guardrail-violation-error.ts
295
+ //#region ../@warlock.js/ai/src/errors/guardrail-violation-error.ts
296
296
  /**
297
297
  * A guardrail middleware rejected the prompt or response mid-execution.
298
298
  *
@@ -329,7 +329,7 @@ var GuardrailViolationError = class extends AIError {
329
329
  };
330
330
 
331
331
  //#endregion
332
- //#region ../../@warlock.js/ai/src/errors/invalid-request-error.ts
332
+ //#region ../@warlock.js/ai/src/errors/invalid-request-error.ts
333
333
  /**
334
334
  * Provider rejected the request as malformed — bad model name,
335
335
  * unsupported feature, missing required field, image attached to a
@@ -356,7 +356,7 @@ var InvalidRequestError = class extends ProviderError {
356
356
  };
357
357
 
358
358
  //#endregion
359
- //#region ../../@warlock.js/ai/src/errors/supervisor-failed-error.ts
359
+ //#region ../@warlock.js/ai/src/errors/supervisor-failed-error.ts
360
360
  /**
361
361
  * Base class for every supervisor-specific failure surfaced from
362
362
  * `supervisor.execute()` / `supervisor.resume()` / authoring-time
@@ -395,7 +395,7 @@ var SupervisorFailedError = class extends AIError {
395
395
  };
396
396
 
397
397
  //#endregion
398
- //#region ../../@warlock.js/ai/src/errors/max-iterations-error.ts
398
+ //#region ../@warlock.js/ai/src/errors/max-iterations-error.ts
399
399
  /**
400
400
  * Hard-cap guard: the supervisor ran `maxIterations` loop turns
401
401
  * without reaching a terminal decision (`END`, `satisfied: true`, or
@@ -423,7 +423,7 @@ var MaxIterationsError = class extends SupervisorFailedError {
423
423
  };
424
424
 
425
425
  //#endregion
426
- //#region ../../@warlock.js/ai/src/errors/workflow-error.ts
426
+ //#region ../@warlock.js/ai/src/errors/workflow-error.ts
427
427
  /**
428
428
  * Base class for all workflow-specific failures. Subclasses carry
429
429
  * precise codes; this base catches everything `workflow.execute()`
@@ -437,7 +437,7 @@ var WorkflowError = class extends AIError {
437
437
  };
438
438
 
439
439
  //#endregion
440
- //#region ../../@warlock.js/ai/src/errors/max-steps-exceeded-error.ts
440
+ //#region ../@warlock.js/ai/src/errors/max-steps-exceeded-error.ts
441
441
  /**
442
442
  * Runaway-loop hard guard: workflow executed more step transitions
443
443
  * than `maxSteps` allows. Terminates the workflow immediately.
@@ -454,7 +454,7 @@ var MaxStepsExceededError = class extends WorkflowError {
454
454
  };
455
455
 
456
456
  //#endregion
457
- //#region ../../@warlock.js/ai/src/errors/provider-auth-error.ts
457
+ //#region ../@warlock.js/ai/src/errors/provider-auth-error.ts
458
458
  /**
459
459
  * Provider rejected the credential — missing / invalid / expired API
460
460
  * key or insufficient permissions on the underlying account. Not
@@ -476,7 +476,7 @@ var ProviderAuthError = class extends ProviderError {
476
476
  };
477
477
 
478
478
  //#endregion
479
- //#region ../../@warlock.js/ai/src/errors/provider-rate-limit-error.ts
479
+ //#region ../@warlock.js/ai/src/errors/provider-rate-limit-error.ts
480
480
  /**
481
481
  * Provider refused the call because the account (or key, or window)
482
482
  * is over its rate-limit or quota. Retryable after `retryAfter`
@@ -503,7 +503,7 @@ var ProviderRateLimitError = class extends ProviderError {
503
503
  };
504
504
 
505
505
  //#endregion
506
- //#region ../../@warlock.js/ai/src/errors/provider-timeout-error.ts
506
+ //#region ../@warlock.js/ai/src/errors/provider-timeout-error.ts
507
507
  /**
508
508
  * Provider call timed out — either at the transport layer (socket
509
509
  * connection) or on the server side (request exceeded the provider's
@@ -525,7 +525,7 @@ var ProviderTimeoutError = class extends ProviderError {
525
525
  };
526
526
 
527
527
  //#endregion
528
- //#region ../../@warlock.js/ai/src/errors/quota-exceeded-error.ts
528
+ //#region ../@warlock.js/ai/src/errors/quota-exceeded-error.ts
529
529
  /**
530
530
  * Provider refused the call because the account has exhausted its
531
531
  * paid quota (monthly credit, billing cap, subscription tier limit).
@@ -561,7 +561,7 @@ var QuotaExceededError = class extends ProviderError {
561
561
  };
562
562
 
563
563
  //#endregion
564
- //#region ../../@warlock.js/ai/src/errors/routing-error.ts
564
+ //#region ../@warlock.js/ai/src/errors/routing-error.ts
565
565
  /**
566
566
  * `nextStep` returned an invalid `goto`, or the `nextStep` callback
567
567
  * itself threw. Routing is authoritative and has no recovery path —
@@ -580,7 +580,7 @@ var RoutingError = class extends WorkflowError {
580
580
  };
581
581
 
582
582
  //#endregion
583
- //#region ../../@warlock.js/ai/src/errors/schema-validation-error.ts
583
+ //#region ../@warlock.js/ai/src/errors/schema-validation-error.ts
584
584
  /**
585
585
  * A `StandardSchemaV1` validation call returned issues, or the input
586
586
  * was not valid JSON before validation could even run.
@@ -613,7 +613,7 @@ var SchemaValidationError = class extends AIError {
613
613
  };
614
614
 
615
615
  //#endregion
616
- //#region ../../@warlock.js/ai/src/errors/step-failed-error.ts
616
+ //#region ../@warlock.js/ai/src/errors/step-failed-error.ts
617
617
  /**
618
618
  * A workflow step exhausted its retries (or was not retried) and
619
619
  * terminated with an error. `cause` carries the last underlying error.
@@ -628,7 +628,7 @@ var StepFailedError = class extends WorkflowError {
628
628
  };
629
629
 
630
630
  //#endregion
631
- //#region ../../@warlock.js/ai/src/errors/supervisor-cancelled-error.ts
631
+ //#region ../@warlock.js/ai/src/errors/supervisor-cancelled-error.ts
632
632
  /**
633
633
  * Supervisor run was cancelled via `AbortSignal` before it could
634
634
  * finish. Between-iteration cancellation is guaranteed; mid-iteration
@@ -653,7 +653,7 @@ var SupervisorCancelledError = class extends SupervisorFailedError {
653
653
  };
654
654
 
655
655
  //#endregion
656
- //#region ../../@warlock.js/ai/src/errors/supervisor-drift-error.ts
656
+ //#region ../@warlock.js/ai/src/errors/supervisor-drift-error.ts
657
657
  /**
658
658
  * `supervisor.resume(runId)` loaded a snapshot whose structural
659
659
  * fingerprint does not match the current supervisor definition
@@ -679,7 +679,7 @@ var SupervisorDriftError = class extends SupervisorFailedError {
679
679
  };
680
680
 
681
681
  //#endregion
682
- //#region ../../@warlock.js/ai/src/errors/supervisor-routing-error.ts
682
+ //#region ../@warlock.js/ai/src/errors/supervisor-routing-error.ts
683
683
  /**
684
684
  * A `route` callback or router agent returned a value that doesn't
685
685
  * resolve to a configured agent key, a `string[]` of configured keys,
@@ -714,7 +714,7 @@ var SupervisorRoutingError = class extends SupervisorFailedError {
714
714
  };
715
715
 
716
716
  //#endregion
717
- //#region ../../@warlock.js/ai/src/errors/tool-execution-error.ts
717
+ //#region ../@warlock.js/ai/src/errors/tool-execution-error.ts
718
718
  /**
719
719
  * A registered tool's `execute()` threw during dispatch — the tool
720
720
  * code itself failed (not its input schema). The model's request was
@@ -742,7 +742,7 @@ var ToolExecutionError = class extends AIError {
742
742
  };
743
743
 
744
744
  //#endregion
745
- //#region ../../@warlock.js/ai/src/errors/workflow-cancelled-error.ts
745
+ //#region ../@warlock.js/ai/src/errors/workflow-cancelled-error.ts
746
746
  /**
747
747
  * Workflow was cancelled via `AbortSignal` before it could finish.
748
748
  * `cancelledAt` is ISO timestamp at abort; `reason` carries the
@@ -761,7 +761,7 @@ var WorkflowCancelledError = class extends WorkflowError {
761
761
  };
762
762
 
763
763
  //#endregion
764
- //#region ../../@warlock.js/ai/src/errors/workflow-drift-error.ts
764
+ //#region ../@warlock.js/ai/src/errors/workflow-drift-error.ts
765
765
  /**
766
766
  * `workflow.resume(runId)` found a snapshot whose structural signature
767
767
  * doesn't match the current workflow definition. Thrown without
@@ -781,7 +781,7 @@ var WorkflowDriftError = class extends WorkflowError {
781
781
  };
782
782
 
783
783
  //#endregion
784
- //#region ../../@warlock.js/ai/src/middleware/utils/extract-user-text.ts
784
+ //#region ../@warlock.js/ai/src/middleware/utils/extract-user-text.ts
785
785
  /**
786
786
  * Pull the text a content-inspection middleware should care about
787
787
  * from the outbound message list.
@@ -819,7 +819,7 @@ function extractUserText(messages) {
819
819
  }
820
820
 
821
821
  //#endregion
822
- //#region ../../@warlock.js/ai/src/middleware/utils/namespaced-state.ts
822
+ //#region ../@warlock.js/ai/src/middleware/utils/namespaced-state.ts
823
823
  /**
824
824
  * Typed accessor over `ctx.state` for a single namespace key. Wraps
825
825
  * the raw `Map<string, unknown>` so middleware authors stop typing
@@ -877,7 +877,7 @@ function namespacedState(ctx, namespace) {
877
877
  }
878
878
 
879
879
  //#endregion
880
- //#region ../../@warlock.js/ai/src/middleware/builtins/budget.ts
880
+ //#region ../@warlock.js/ai/src/middleware/builtins/budget.ts
881
881
  function breach(limit, actual, unit, name) {
882
882
  throw new BudgetExceededError(`budget "${name}" exceeded — ${actual} ${unit} (cap: ${limit})`, {
883
883
  limit,
@@ -971,7 +971,7 @@ function budget(options) {
971
971
  }
972
972
 
973
973
  //#endregion
974
- //#region ../../@warlock.js/ai/src/middleware/builtins/guardrail.ts
974
+ //#region ../@warlock.js/ai/src/middleware/builtins/guardrail.ts
975
975
  /**
976
976
  * Pre/post content guardrail for an agent run.
977
977
  *
@@ -1041,7 +1041,7 @@ function guardrail(options) {
1041
1041
  }
1042
1042
 
1043
1043
  //#endregion
1044
- //#region ../../@warlock.js/ai/src/config.ts
1044
+ //#region ../@warlock.js/ai/src/config.ts
1045
1045
  const aiConfig = {};
1046
1046
  /**
1047
1047
  * Set or extend process-wide AI configuration. Merges over existing
@@ -1082,7 +1082,7 @@ function resolveDefaultStore() {
1082
1082
  }
1083
1083
 
1084
1084
  //#endregion
1085
- //#region ../../@warlock.js/ai/src/middleware/builtins/semantic-cache.ts
1085
+ //#region ../@warlock.js/ai/src/middleware/builtins/semantic-cache.ts
1086
1086
  const DEFAULT_NAMESPACE = "ai.cache";
1087
1087
  /**
1088
1088
  * Build a stable fingerprint for a prompt covering the full message
@@ -1226,7 +1226,7 @@ function toSyntheticResponse(response) {
1226
1226
  }
1227
1227
 
1228
1228
  //#endregion
1229
- //#region ../../@warlock.js/ai/src/middleware/helpers/compose.ts
1229
+ //#region ../@warlock.js/ai/src/middleware/helpers/compose.ts
1230
1230
  /**
1231
1231
  * Flatten one or more middleware sources into a single ordered
1232
1232
  * array suitable for `agent({ middleware: [...] })`.
@@ -1276,7 +1276,7 @@ function composeMiddleware(...sources) {
1276
1276
  }
1277
1277
 
1278
1278
  //#endregion
1279
- //#region ../../@warlock.js/ai/src/middleware/helpers/for-tool.ts
1279
+ //#region ../@warlock.js/ai/src/middleware/helpers/for-tool.ts
1280
1280
  /**
1281
1281
  * Scope a middleware's `tool`-level hooks to only fire for a
1282
1282
  * specific tool name (or a set of names). `execute` and `trip`
@@ -1354,7 +1354,7 @@ function forTool(toolNames, middleware) {
1354
1354
  }
1355
1355
 
1356
1356
  //#endregion
1357
- //#region ../../@warlock.js/ai/src/middleware/pipeline.ts
1357
+ //#region ../@warlock.js/ai/src/middleware/pipeline.ts
1358
1358
  const LOG_MODULE$1 = "ai.middleware";
1359
1359
  /**
1360
1360
  * Run an inner async operation through a stack of agent middlewares
@@ -1452,7 +1452,7 @@ async function runPipeline(middlewares, level, context, inner, logger) {
1452
1452
  }
1453
1453
 
1454
1454
  //#endregion
1455
- //#region ../../@warlock.js/ai/src/utils/compute-cost.ts
1455
+ //#region ../@warlock.js/ai/src/utils/compute-cost.ts
1456
1456
  /**
1457
1457
  * Compute a per-channel USD cost breakdown for a single `Usage` against
1458
1458
  * a model's pricing table. Returns `undefined` when no pricing is
@@ -1537,7 +1537,7 @@ function sumOptional(parent, child) {
1537
1537
  }
1538
1538
 
1539
1539
  //#endregion
1540
- //#region ../../@warlock.js/ai/src/utils/extract-json-payload.ts
1540
+ //#region ../@warlock.js/ai/src/utils/extract-json-payload.ts
1541
1541
  /**
1542
1542
  * Strip markdown code fences from an LLM response before JSON parsing.
1543
1543
  *
@@ -1574,7 +1574,7 @@ function extractJsonPayload(text) {
1574
1574
  }
1575
1575
 
1576
1576
  //#endregion
1577
- //#region ../../@warlock.js/ai/src/utils/generate-run-id.ts
1577
+ //#region ../@warlock.js/ai/src/utils/generate-run-id.ts
1578
1578
  /**
1579
1579
  * Generates a stable, human-readable run id for any execution node
1580
1580
  * (tool invocation, agent run, workflow run, supervisor run). Format:
@@ -1595,7 +1595,7 @@ function generateRunId(prefix) {
1595
1595
  }
1596
1596
 
1597
1597
  //#endregion
1598
- //#region ../../@warlock.js/ai/src/utils/json-schema.ts
1598
+ //#region ../@warlock.js/ai/src/utils/json-schema.ts
1599
1599
  /**
1600
1600
  * Best-effort JSON Schema extraction from a Standard Schema instance.
1601
1601
  *
@@ -1682,7 +1682,7 @@ function extractFromCandidateKeys(schemaRecord) {
1682
1682
  }
1683
1683
 
1684
1684
  //#endregion
1685
- //#region ../../@warlock.js/ai/src/utils/resolve-attachment.ts
1685
+ //#region ../@warlock.js/ai/src/utils/resolve-attachment.ts
1686
1686
  const REMOTE_URL_PATTERN = /^https?:\/\//i;
1687
1687
  /**
1688
1688
  * Normalize a user-supplied `Attachment` (or bare `AttachmentSource`)
@@ -1750,7 +1750,7 @@ function resolveSource(source) {
1750
1750
  }
1751
1751
 
1752
1752
  //#endregion
1753
- //#region ../../@warlock.js/ai/src/utils/prepare-attachment-part.ts
1753
+ //#region ../@warlock.js/ai/src/utils/prepare-attachment-part.ts
1754
1754
  const IMAGE_EXTENSIONS_TO_MEDIA_TYPE = {
1755
1755
  ".png": "image/png",
1756
1756
  ".jpg": "image/jpeg",
@@ -1882,7 +1882,7 @@ function stripQuery(path) {
1882
1882
  }
1883
1883
 
1884
1884
  //#endregion
1885
- //#region ../../@warlock.js/ai/src/utils/safe-json-parse.ts
1885
+ //#region ../@warlock.js/ai/src/utils/safe-json-parse.ts
1886
1886
  /**
1887
1887
  * Parse a JSON string, returning a caller-supplied fallback when the input
1888
1888
  * is empty or malformed instead of throwing. Useful at provider boundaries
@@ -1902,7 +1902,7 @@ function safeJsonParse(data, defaultValue) {
1902
1902
  }
1903
1903
 
1904
1904
  //#endregion
1905
- //#region ../../@warlock.js/ai/src/contracts/result/base-report.type.ts
1905
+ //#region ../@warlock.js/ai/src/contracts/result/base-report.type.ts
1906
1906
  /**
1907
1907
  * Wire-format version stamped on every root `BaseReport`. Bumped only
1908
1908
  * when we make a BREAKING change to the report shape (field removed,
@@ -1917,7 +1917,7 @@ function safeJsonParse(data, defaultValue) {
1917
1917
  const REPORT_SCHEMA_VERSION = 1;
1918
1918
 
1919
1919
  //#endregion
1920
- //#region ../../@warlock.js/ai/src/utils/stamp-report-lineage.ts
1920
+ //#region ../@warlock.js/ai/src/utils/stamp-report-lineage.ts
1921
1921
  /**
1922
1922
  * Walk a freshly-built report tree and stamp lineage fields onto
1923
1923
  * every node:
@@ -1960,7 +1960,7 @@ function walk(node, rootRunId, parentRunId, sessionId) {
1960
1960
  }
1961
1961
 
1962
1962
  //#endregion
1963
- //#region ../../@warlock.js/ai/src/utils/token-count.ts
1963
+ //#region ../@warlock.js/ai/src/utils/token-count.ts
1964
1964
  /**
1965
1965
  * Approximate the number of tokens in a string.
1966
1966
  *
@@ -1976,7 +1976,7 @@ function approximateTokenCount(text) {
1976
1976
  }
1977
1977
 
1978
1978
  //#endregion
1979
- //#region ../../@warlock.js/ai/src/agent/agent-input-builder.ts
1979
+ //#region ../@warlock.js/ai/src/agent/agent-input-builder.ts
1980
1980
  /**
1981
1981
  * Assemble the seed conversation for an agent execution. Runs exactly
1982
1982
  * once per run — subsequent trips append to the same message list.
@@ -2079,7 +2079,7 @@ function resolveStructuredOutput(params) {
2079
2079
  }
2080
2080
 
2081
2081
  //#endregion
2082
- //#region ../../@warlock.js/ai/src/agent/agent-log-event.ts
2082
+ //#region ../@warlock.js/ai/src/agent/agent-log-event.ts
2083
2083
  /**
2084
2084
  * Structured logging for agent lifecycle events. Mirrors
2085
2085
  * `Execution.emit`'s call sites without touching class state — the
@@ -2178,7 +2178,7 @@ function logAgentEvent(logger, ctx, event, payload) {
2178
2178
  }
2179
2179
 
2180
2180
  //#endregion
2181
- //#region ../../@warlock.js/ai/src/agent/agent-stream.ts
2181
+ //#region ../@warlock.js/ai/src/agent/agent-stream.ts
2182
2182
  function createAgentStream() {
2183
2183
  const queue = [];
2184
2184
  const pending = [];
@@ -2258,7 +2258,7 @@ function createAgentStream() {
2258
2258
  }
2259
2259
 
2260
2260
  //#endregion
2261
- //#region ../../@warlock.js/ai/src/agent/agent-to-stream-event.ts
2261
+ //#region ../@warlock.js/ai/src/agent/agent-to-stream-event.ts
2262
2262
  /**
2263
2263
  * Map an internal `AgentEventMap` entry into the public `StreamEvent`
2264
2264
  * shape. Event names are the same dot-notation strings on both sides;
@@ -2342,7 +2342,7 @@ function agentEventToStreamEvent(event, payload) {
2342
2342
  }
2343
2343
 
2344
2344
  //#endregion
2345
- //#region ../../@warlock.js/ai/src/agent/json-stream-guard.ts
2345
+ //#region ../@warlock.js/ai/src/agent/json-stream-guard.ts
2346
2346
  /**
2347
2347
  * Default cap on bytes accumulated in a single suspect buffer before
2348
2348
  * the guard gives up, flushes as text, and resets to pass-through.
@@ -2740,7 +2740,7 @@ function readObject(envelope, key) {
2740
2740
  }
2741
2741
 
2742
2742
  //#endregion
2743
- //#region ../../@warlock.js/ai/src/agent/agent.ts
2743
+ //#region ../@warlock.js/ai/src/agent/agent.ts
2744
2744
  const LOG_MODULE = "ai.agent";
2745
2745
  /**
2746
2746
  * Detect abort-flavored errors surfaced by SDK HTTP layers — the
@@ -3691,7 +3691,7 @@ function resolveToolAction(tool, input) {
3691
3691
  }
3692
3692
 
3693
3693
  //#endregion
3694
- //#region ../../@warlock.js/ai/src/tool/tool.ts
3694
+ //#region ../@warlock.js/ai/src/tool/tool.ts
3695
3695
  /**
3696
3696
  * Degraded `ToolContext` supplied when no caller threads one through
3697
3697
  * (`tool.invoke(input)` standalone, batch scripts, tests). Per
@@ -3842,7 +3842,7 @@ function tool(contract) {
3842
3842
  };
3843
3843
  };
3844
3844
  let validationResult;
3845
- try {
3845
+ if (contract.input) try {
3846
3846
  validationResult = await contract.input["~standard"].validate(rawInput);
3847
3847
  } catch (thrown) {
3848
3848
  const message = thrown instanceof Error ? thrown.message : String(thrown);
@@ -3851,6 +3851,7 @@ function tool(contract) {
3851
3851
  context: { toolName: contract.name }
3852
3852
  }) });
3853
3853
  }
3854
+ else validationResult = { value: rawInput };
3854
3855
  if (validationResult.issues) return finish({ error: new SchemaValidationError(`Validation failed: ${validationResult.issues.map((issue) => issue.message).join("; ")}`, {
3855
3856
  issues: validationResult.issues,
3856
3857
  context: { toolName: contract.name }
@@ -3868,7 +3869,7 @@ function tool(contract) {
3868
3869
  }
3869
3870
 
3870
3871
  //#endregion
3871
- //#region ../../@warlock.js/ai/src/supervisor/as-tool.ts
3872
+ //#region ../@warlock.js/ai/src/supervisor/as-tool.ts
3872
3873
  /**
3873
3874
  * Wrap a `SupervisorContract` as a `ToolContract` so an outer agent
3874
3875
  * can invoke it from its tool-call loop. Mirrors
@@ -3942,7 +3943,7 @@ function coerceInput(value) {
3942
3943
  }
3943
3944
 
3944
3945
  //#endregion
3945
- //#region ../../@warlock.js/ai/src/supervisor/emitter.ts
3946
+ //#region ../@warlock.js/ai/src/supervisor/emitter.ts
3946
3947
  /**
3947
3948
  * Three-tier supervisor event emitter — factory (definition) → instance
3948
3949
  * → per-execution. Mirrors `WorkflowEmitter` structurally; the only
@@ -3987,7 +3988,7 @@ function invoke$1(handler, payload) {
3987
3988
  }
3988
3989
 
3989
3990
  //#endregion
3990
- //#region ../../@warlock.js/ai/src/supervisor/entries.ts
3991
+ //#region ../@warlock.js/ai/src/supervisor/entries.ts
3991
3992
  /**
3992
3993
  * Validate and normalize the `intents` map into resolved entries.
3993
3994
  * Runs at factory time — throws `SupervisorFailedError` on the first
@@ -4188,7 +4189,7 @@ function isWorkflowResult(raw) {
4188
4189
  }
4189
4190
 
4190
4191
  //#endregion
4191
- //#region ../../@warlock.js/ai/src/contracts/end.type.ts
4192
+ //#region ../@warlock.js/ai/src/contracts/end.type.ts
4192
4193
  /**
4193
4194
  * Framework-global termination sentinel. Emitted by any primitive
4194
4195
  * whose control flow is routed through JSON-serializable strings —
@@ -4233,7 +4234,7 @@ function isWorkflowResult(raw) {
4233
4234
  const END = "__warlock:end__";
4234
4235
 
4235
4236
  //#endregion
4236
- //#region ../../@warlock.js/ai/src/supervisor/cancellation.ts
4237
+ //#region ../@warlock.js/ai/src/supervisor/cancellation.ts
4237
4238
  /**
4238
4239
  * Build a `SupervisorCancelledError` from an `AbortSignal`. Extracts a
4239
4240
  * human-readable reason from `signal.reason` whether it was a string,
@@ -4250,7 +4251,7 @@ function createCancelledError(signal) {
4250
4251
  }
4251
4252
 
4252
4253
  //#endregion
4253
- //#region ../../@warlock.js/ai/src/supervisor/router-prompt.ts
4254
+ //#region ../@warlock.js/ai/src/supervisor/router-prompt.ts
4254
4255
  /**
4255
4256
  * Build the per-turn user message the supervisor feeds to the router
4256
4257
  * agent. Carries everything the LLM needs to make a routing decision:
@@ -4298,7 +4299,7 @@ function safeStringify$1(value) {
4298
4299
  }
4299
4300
 
4300
4301
  //#endregion
4301
- //#region ../../@warlock.js/ai/src/supervisor/decide.ts
4302
+ //#region ../@warlock.js/ai/src/supervisor/decide.ts
4302
4303
  /**
4303
4304
  * Unified dispatch decision entry — calls either the `route` callback
4304
4305
  * or the `router` agent based on the supervisor's configured mode and
@@ -4561,7 +4562,7 @@ function wrapRouteError(supervisorName, thrown) {
4561
4562
  }
4562
4563
 
4563
4564
  //#endregion
4564
- //#region ../../@warlock.js/ai/src/supervisor/snapshot.ts
4565
+ //#region ../@warlock.js/ai/src/supervisor/snapshot.ts
4565
4566
  /**
4566
4567
  * Resolve the effective snapshot store: the supervisor's own
4567
4568
  * `snapshotStore` field wins; absent that, fall back to the global
@@ -4631,7 +4632,7 @@ function snapshotKey(runId) {
4631
4632
  }
4632
4633
 
4633
4634
  //#endregion
4634
- //#region ../../@warlock.js/ai/src/supervisor/execution.ts
4635
+ //#region ../@warlock.js/ai/src/supervisor/execution.ts
4635
4636
  const DEFAULT_MAX_ITERATIONS = 10;
4636
4637
  const LOG_MODULE_BASE$1 = "ai.supervisor";
4637
4638
  /**
@@ -6482,7 +6483,7 @@ async function validateOutput(schema, value) {
6482
6483
  }
6483
6484
 
6484
6485
  //#endregion
6485
- //#region ../../@warlock.js/ai/src/supervisor/signature.ts
6486
+ //#region ../@warlock.js/ai/src/supervisor/signature.ts
6486
6487
  /**
6487
6488
  * Deterministic structural fingerprint of a supervisor definition.
6488
6489
  * Persisted on every snapshot so `resume()` can detect drift between
@@ -6569,7 +6570,7 @@ function hash$1(input) {
6569
6570
  }
6570
6571
 
6571
6572
  //#endregion
6572
- //#region ../../@warlock.js/ai/src/supervisor/supervisor-stream.ts
6573
+ //#region ../@warlock.js/ai/src/supervisor/supervisor-stream.ts
6573
6574
  /**
6574
6575
  * Factory mirroring `createAgentStream`. Returns a paired
6575
6576
  * `{ controller, stream }` — the `SupervisorExecution` pushes events
@@ -6656,7 +6657,7 @@ function createSupervisorStream() {
6656
6657
  }
6657
6658
 
6658
6659
  //#endregion
6659
- //#region ../../@warlock.js/ai/src/supervisor/supervisor.ts
6660
+ //#region ../@warlock.js/ai/src/supervisor/supervisor.ts
6660
6661
  /**
6661
6662
  * `ai.supervisor(config)` — construct a `SupervisorContract`. Validates
6662
6663
  * the config at author time (throws `SupervisorFailedError` on bad
@@ -6782,7 +6783,7 @@ function generateRunId$2() {
6782
6783
  }
6783
6784
 
6784
6785
  //#endregion
6785
- //#region ../../@warlock.js/ai/src/system-prompt/render-placeholders.ts
6786
+ //#region ../@warlock.js/ai/src/system-prompt/render-placeholders.ts
6786
6787
  const PLACEHOLDER_PATTERN = /\{\{\s*([^{}]+?)\s*\}\}/g;
6787
6788
  /**
6788
6789
  * Render a template string against a placeholders map, supporting dot-path
@@ -6838,7 +6839,7 @@ function lookupPath(source, path) {
6838
6839
  }
6839
6840
 
6840
6841
  //#endregion
6841
- //#region ../../@warlock.js/ai/src/system-prompt/instruction.ts
6842
+ //#region ../@warlock.js/ai/src/system-prompt/instruction.ts
6842
6843
  /**
6843
6844
  * Concrete `InstructionContract` — a reusable directive block.
6844
6845
  *
@@ -6891,7 +6892,7 @@ function instruction(text) {
6891
6892
  }
6892
6893
 
6893
6894
  //#endregion
6894
- //#region ../../@warlock.js/ai/src/system-prompt/persona.ts
6895
+ //#region ../@warlock.js/ai/src/system-prompt/persona.ts
6895
6896
  /**
6896
6897
  * Concrete `PersonaContract` — a reusable "who the agent is" block.
6897
6898
  *
@@ -6944,7 +6945,7 @@ function persona(text) {
6944
6945
  }
6945
6946
 
6946
6947
  //#endregion
6947
- //#region ../../@warlock.js/ai/src/system-prompt/system-prompt.ts
6948
+ //#region ../@warlock.js/ai/src/system-prompt/system-prompt.ts
6948
6949
  /**
6949
6950
  * Concrete `SystemPromptContract` — an immutable layered prompt builder.
6950
6951
  *
@@ -7076,7 +7077,7 @@ function systemPrompt(input) {
7076
7077
  }
7077
7078
 
7078
7079
  //#endregion
7079
- //#region ../../@warlock.js/ai/src/workflow/step.ts
7080
+ //#region ../@warlock.js/ai/src/workflow/step.ts
7080
7081
  /**
7081
7082
  * `ai.step(def)` — pass-through factory used for authoring. Returns
7082
7083
  * the definition object verbatim so the workflow engine can read it
@@ -7108,7 +7109,7 @@ function validate$1(def) {
7108
7109
  }
7109
7110
 
7110
7111
  //#endregion
7111
- //#region ../../@warlock.js/ai/src/workflow/as-tool.ts
7112
+ //#region ../@warlock.js/ai/src/workflow/as-tool.ts
7112
7113
  /**
7113
7114
  * Wrap a `WorkflowInstance` as a `ToolContract` so an agent can invoke
7114
7115
  * it inside its tool-call loop. Closes the agent-calls-workflow
@@ -7157,7 +7158,7 @@ function asTool$1(workflowInstance, options) {
7157
7158
  }
7158
7159
 
7159
7160
  //#endregion
7160
- //#region ../../@warlock.js/ai/src/workflow/emitter.ts
7161
+ //#region ../@warlock.js/ai/src/workflow/emitter.ts
7161
7162
  /**
7162
7163
  * Three-tier workflow event emitter — factory (definition) → instance →
7163
7164
  * per-execution. All matching handlers fire, in layer order. Handler
@@ -7195,7 +7196,7 @@ function invoke(handler, payload) {
7195
7196
  }
7196
7197
 
7197
7198
  //#endregion
7198
- //#region ../../@warlock.js/ai/src/workflow/cancellation.ts
7199
+ //#region ../@warlock.js/ai/src/workflow/cancellation.ts
7199
7200
  /**
7200
7201
  * Build a `WorkflowCancelledError` from an `AbortSignal`, extracting
7201
7202
  * a human-readable reason from `signal.reason` (string | Error | any).
@@ -7234,7 +7235,7 @@ function sleep(ms, signal) {
7234
7235
  }
7235
7236
 
7236
7237
  //#endregion
7237
- //#region ../../@warlock.js/ai/src/workflow/router.ts
7238
+ //#region ../@warlock.js/ai/src/workflow/router.ts
7238
7239
  /**
7239
7240
  * Resolve the next step to run after `step` completes. Tries
7240
7241
  * step-level `nextStep` first, then workflow-level, then falls
@@ -7285,7 +7286,7 @@ function nextDeclaredStep(definition, currentName) {
7285
7286
  }
7286
7287
 
7287
7288
  //#endregion
7288
- //#region ../../@warlock.js/ai/src/workflow/run-scoped-emitter.ts
7289
+ //#region ../@warlock.js/ai/src/workflow/run-scoped-emitter.ts
7289
7290
  /**
7290
7291
  * Bind a factory-scoped `WorkflowEmitter` to one run's identity.
7291
7292
  *
@@ -7315,7 +7316,7 @@ function runScopedEmitter(emitter, identity) {
7315
7316
  }
7316
7317
 
7317
7318
  //#endregion
7318
- //#region ../../@warlock.js/ai/src/workflow/snapshot.ts
7319
+ //#region ../@warlock.js/ai/src/workflow/snapshot.ts
7319
7320
  /**
7320
7321
  * Resolve the effective snapshot store: the workflow's own
7321
7322
  * `snapshotStore` field wins; absent that, fall back to the global
@@ -7379,7 +7380,7 @@ async function loadSnapshotForResume$1(params) {
7379
7380
  }
7380
7381
 
7381
7382
  //#endregion
7382
- //#region ../../@warlock.js/ai/src/workflow/state.ts
7383
+ //#region ../@warlock.js/ai/src/workflow/state.ts
7383
7384
  /**
7384
7385
  * Deep-clone workflow state. Uses `structuredClone` — handles Date,
7385
7386
  * Map, Set, ArrayBuffer, nested objects, arrays, primitives. Throws
@@ -7411,7 +7412,7 @@ function deepFreeze(value) {
7411
7412
  }
7412
7413
 
7413
7414
  //#endregion
7414
- //#region ../../@warlock.js/ai/src/workflow/retry.ts
7415
+ //#region ../@warlock.js/ai/src/workflow/retry.ts
7415
7416
  const DEFAULT_BACKOFF_CAP_MS = 3e4;
7416
7417
  function resolveBackoff(attempt, backoff) {
7417
7418
  const value = (() => {
@@ -7441,7 +7442,7 @@ function resolveRetryConfig(step, workflowDefault) {
7441
7442
  }
7442
7443
 
7443
7444
  //#endregion
7444
- //#region ../../@warlock.js/ai/src/workflow/step-runner.ts
7445
+ //#region ../@warlock.js/ai/src/workflow/step-runner.ts
7445
7446
  /**
7446
7447
  * Narrow an `executionResult` to an `AgentResult` when the step ran
7447
7448
  * an agent. Custom `run` steps return arbitrary values, so the
@@ -7800,7 +7801,7 @@ async function validateSchema(schema, value) {
7800
7801
  }
7801
7802
 
7802
7803
  //#endregion
7803
- //#region ../../@warlock.js/ai/src/workflow/engine.ts
7804
+ //#region ../@warlock.js/ai/src/workflow/engine.ts
7804
7805
  const DEFAULT_MAX_STEPS = 100;
7805
7806
  const DEFAULT_LOOP_WARN = 5;
7806
7807
  const LOG_MODULE_BASE = "ai.workflow";
@@ -8143,7 +8144,7 @@ async function validateWorkflowOutput(schema, value) {
8143
8144
  }
8144
8145
 
8145
8146
  //#endregion
8146
- //#region ../../@warlock.js/ai/src/workflow/signature.ts
8147
+ //#region ../@warlock.js/ai/src/workflow/signature.ts
8147
8148
  function stepFingerprint(step) {
8148
8149
  const tag = step.parallel ? "parallel" : step.agent ? "agent" : step.run ? "run" : "empty";
8149
8150
  const agentName = step.agent?.name;
@@ -8175,7 +8176,7 @@ function computeSignature(definition) {
8175
8176
  }
8176
8177
 
8177
8178
  //#endregion
8178
- //#region ../../@warlock.js/ai/src/workflow/workflow.ts
8179
+ //#region ../@warlock.js/ai/src/workflow/workflow.ts
8179
8180
  /**
8180
8181
  * `ai.workflow(def)` — construct a `WorkflowInstance`. Validates the
8181
8182
  * definition, computes a stable structural signature, and wires up the
@@ -8281,7 +8282,7 @@ function generateRunId$1() {
8281
8282
  }
8282
8283
 
8283
8284
  //#endregion
8284
- //#region ../../@warlock.js/ai/src/ai.ts
8285
+ //#region ../@warlock.js/ai/src/ai.ts
8285
8286
  /**
8286
8287
  * Top-level `ai` namespace — holds built-in factories and user-registered SDK adapters.
8287
8288
  *
@@ -8329,7 +8330,7 @@ const ai = {
8329
8330
  };
8330
8331
 
8331
8332
  //#endregion
8332
- //#region ../../@warlock.js/ai/src/mock/mock-model.ts
8333
+ //#region ../@warlock.js/ai/src/mock/mock-model.ts
8333
8334
  /**
8334
8335
  * Deterministic in-memory `ModelContract` implementation for tests.
8335
8336
  *
@@ -8477,7 +8478,7 @@ var MockModel = class {
8477
8478
  };
8478
8479
 
8479
8480
  //#endregion
8480
- //#region ../../@warlock.js/ai/src/mock/mock-sdk.ts
8481
+ //#region ../@warlock.js/ai/src/mock/mock-sdk.ts
8481
8482
  /**
8482
8483
  * Creates a mock SDK adapter for testing — no HTTP calls, fully configurable.
8483
8484
  *
@@ -8509,7 +8510,7 @@ function MockSDK(config = {}) {
8509
8510
  }
8510
8511
 
8511
8512
  //#endregion
8512
- //#region ../../@warlock.js/ai/src/mock/mock-agent.ts
8513
+ //#region ../@warlock.js/ai/src/mock/mock-agent.ts
8513
8514
  /**
8514
8515
  * Test helper that wires `MockSDK` → mock model → `agent()` in one call.
8515
8516
  *