veryfront 0.1.516 → 0.1.518

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 (919) hide show
  1. package/esm/deno.js +3 -3
  2. package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts +14 -0
  3. package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts.map +1 -0
  4. package/esm/src/agent/ag-ui/browser-chunk-encoder.js +31 -0
  5. package/esm/src/agent/ag-ui/browser-encoder.d.ts +32 -0
  6. package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +1 -0
  7. package/esm/src/agent/ag-ui/browser-encoder.js +405 -0
  8. package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts +12 -0
  9. package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts.map +1 -0
  10. package/esm/src/agent/ag-ui/browser-finalize-tracker.js +42 -0
  11. package/esm/src/agent/ag-ui/browser-response-stream.d.ts +28 -0
  12. package/esm/src/agent/ag-ui/browser-response-stream.d.ts.map +1 -0
  13. package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts +20 -0
  14. package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts.map +1 -0
  15. package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.js +108 -0
  16. package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +11 -0
  17. package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts.map +1 -0
  18. package/esm/src/agent/ag-ui/chunk-encoder-bridge.js +9 -0
  19. package/esm/src/agent/ag-ui/detached-start.d.ts +158 -0
  20. package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -0
  21. package/esm/src/agent/ag-ui/detached-start.js +256 -0
  22. package/esm/src/agent/ag-ui/forwarded-context.d.ts +14 -0
  23. package/esm/src/agent/ag-ui/forwarded-context.d.ts.map +1 -0
  24. package/esm/src/agent/ag-ui/forwarded-context.js +56 -0
  25. package/esm/src/agent/ag-ui/handler.d.ts +14 -0
  26. package/esm/src/agent/ag-ui/handler.d.ts.map +1 -0
  27. package/esm/src/agent/ag-ui/handler.js +244 -0
  28. package/esm/src/agent/ag-ui/host-support.d.ts +131 -0
  29. package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -0
  30. package/esm/src/agent/ag-ui/host-support.js +179 -0
  31. package/esm/src/agent/ag-ui/request-shared.d.ts +4 -0
  32. package/esm/src/agent/ag-ui/request-shared.d.ts.map +1 -0
  33. package/esm/src/agent/ag-ui/request-shared.js +56 -0
  34. package/esm/src/agent/ag-ui/run-control.d.ts +39 -0
  35. package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -0
  36. package/esm/src/agent/ag-ui/run-control.js +84 -0
  37. package/esm/src/agent/ag-ui/runtime-browser-response.d.ts +18 -0
  38. package/esm/src/agent/ag-ui/runtime-browser-response.d.ts.map +1 -0
  39. package/esm/src/agent/ag-ui/runtime-browser-response.js +15 -0
  40. package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts +17 -0
  41. package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts.map +1 -0
  42. package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.js +304 -0
  43. package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +11 -0
  44. package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts.map +1 -0
  45. package/esm/src/agent/ag-ui/runtime-event-encoder.js +37 -0
  46. package/esm/src/agent/ag-ui/runtime-handler.d.ts +44 -0
  47. package/esm/src/agent/ag-ui/runtime-handler.d.ts.map +1 -0
  48. package/esm/src/agent/ag-ui/runtime-handler.js +301 -0
  49. package/esm/src/agent/ag-ui/runtime-support.d.ts +4 -0
  50. package/esm/src/agent/ag-ui/runtime-support.d.ts.map +1 -0
  51. package/esm/src/agent/ag-ui/sse-parser.d.ts +57 -0
  52. package/esm/src/agent/ag-ui/sse-parser.d.ts.map +1 -0
  53. package/esm/src/agent/ag-ui/sse-parser.js +227 -0
  54. package/esm/src/agent/ag-ui/tool-shared.d.ts +15 -0
  55. package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -0
  56. package/esm/src/agent/ag-ui/tool-shared.js +48 -0
  57. package/esm/src/agent/ag-ui/tracked-browser-response.d.ts +9 -0
  58. package/esm/src/agent/ag-ui/tracked-browser-response.d.ts.map +1 -0
  59. package/esm/src/agent/ag-ui/tracked-browser-response.js +19 -0
  60. package/esm/src/agent/agent-runtime-message-adapter.js +1 -1
  61. package/esm/src/agent/chat-ui-message-stream.js +1 -1
  62. package/esm/src/agent/child-run/execution-cleanup.d.ts +14 -0
  63. package/esm/src/agent/child-run/execution-cleanup.d.ts.map +1 -0
  64. package/esm/src/agent/child-run/execution-snapshot.d.ts +70 -0
  65. package/esm/src/agent/child-run/execution-snapshot.d.ts.map +1 -0
  66. package/esm/src/agent/child-run/execution-support.d.ts +5 -0
  67. package/esm/src/agent/child-run/execution-support.d.ts.map +1 -0
  68. package/esm/src/agent/child-run/final-step-support.d.ts +18 -0
  69. package/esm/src/agent/child-run/final-step-support.d.ts.map +1 -0
  70. package/esm/src/agent/child-run/result-summary.d.ts +14 -0
  71. package/esm/src/agent/child-run/result-summary.d.ts.map +1 -0
  72. package/esm/src/agent/conversation/bootstrap.d.ts +94 -0
  73. package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -0
  74. package/esm/src/agent/conversation/bootstrap.js +210 -0
  75. package/esm/src/agent/conversation/delegation-policy.d.ts +53 -0
  76. package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -0
  77. package/esm/src/agent/conversation/delegation-policy.js +192 -0
  78. package/esm/src/agent/conversation/hosted-lifecycle.d.ts +39 -0
  79. package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -0
  80. package/esm/src/agent/conversation/hosted-lifecycle.js +138 -0
  81. package/esm/src/agent/conversation/hosted-terminal.d.ts +46 -0
  82. package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -0
  83. package/esm/src/agent/conversation/hosted-terminal.js +138 -0
  84. package/esm/src/agent/conversation/root-run-context.d.ts +57 -0
  85. package/esm/src/agent/conversation/root-run-context.d.ts.map +1 -0
  86. package/esm/src/agent/conversation/root-run-context.js +79 -0
  87. package/esm/src/agent/conversation/root-run-lifecycle.d.ts +61 -0
  88. package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -0
  89. package/esm/src/agent/conversation/root-run-lifecycle.js +94 -0
  90. package/esm/src/agent/conversation/run-chunk-mirror.d.ts +74 -0
  91. package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -0
  92. package/esm/src/agent/conversation/run-chunk-mirror.js +188 -0
  93. package/esm/src/agent/conversation/run-context.d.ts +19 -0
  94. package/esm/src/agent/conversation/run-context.d.ts.map +1 -0
  95. package/esm/src/agent/conversation/run-event-normalization.d.ts +8 -0
  96. package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -0
  97. package/esm/src/agent/conversation/run-event-preparation.d.ts +7 -0
  98. package/esm/src/agent/conversation/run-event-preparation.d.ts.map +1 -0
  99. package/esm/src/agent/conversation/run-event-preparation.js +48 -0
  100. package/esm/src/agent/conversation/run-events.d.ts +34 -0
  101. package/esm/src/agent/conversation/run-events.d.ts.map +1 -0
  102. package/esm/src/agent/conversation/run-events.js +200 -0
  103. package/esm/src/agent/conversation/run-mirror.d.ts +43 -0
  104. package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -0
  105. package/esm/src/agent/conversation/run-mirror.js +157 -0
  106. package/esm/src/agent/conversation/run-stream-mirror.d.ts +21 -0
  107. package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -0
  108. package/esm/src/agent/conversation/run-stream-mirror.js +31 -0
  109. package/esm/src/agent/data-stream.d.ts +1 -1
  110. package/esm/src/agent/default-hosted-chat-runtime.d.ts +5 -5
  111. package/esm/src/agent/default-hosted-chat-runtime.d.ts.map +1 -1
  112. package/esm/src/agent/default-hosted-chat-runtime.js +3 -3
  113. package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts +7 -7
  114. package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts.map +1 -1
  115. package/esm/src/agent/default-hosted-invoke-agent-tool.js +13 -13
  116. package/esm/src/agent/default-hosted-project-steering-refresh.d.ts +4 -4
  117. package/esm/src/agent/default-hosted-project-steering-refresh.js +1 -1
  118. package/esm/src/agent/default-research-artifact-support.js +2 -2
  119. package/esm/src/agent/fork-runtime-stream.d.ts +1 -1
  120. package/esm/src/agent/fork-runtime-stream.js +1 -1
  121. package/esm/src/agent/hosted/ag-ui-chat-request.d.ts +56 -0
  122. package/esm/src/agent/hosted/ag-ui-chat-request.d.ts.map +1 -0
  123. package/esm/src/agent/hosted/ag-ui-chat-request.js +112 -0
  124. package/esm/src/agent/hosted/agent-project-steering.d.ts +33 -0
  125. package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -0
  126. package/esm/src/agent/hosted/agent-project-steering.js +73 -0
  127. package/esm/src/agent/hosted/agent-run-lifecycle.d.ts +60 -0
  128. package/esm/src/agent/hosted/agent-run-lifecycle.d.ts.map +1 -0
  129. package/esm/src/agent/hosted/agent-run-lifecycle.js +72 -0
  130. package/esm/src/agent/hosted/chat-execution-runtime.d.ts +127 -0
  131. package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -0
  132. package/esm/src/agent/hosted/chat-execution-runtime.js +400 -0
  133. package/esm/src/agent/hosted/chat-preparation.d.ts +105 -0
  134. package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -0
  135. package/esm/src/agent/hosted/chat-preparation.js +156 -0
  136. package/esm/src/agent/hosted/chat-request-parser.d.ts +53 -0
  137. package/esm/src/agent/hosted/chat-request-parser.d.ts.map +1 -0
  138. package/esm/src/agent/hosted/chat-request-parser.js +105 -0
  139. package/esm/src/agent/hosted/chat-request.d.ts +305 -0
  140. package/esm/src/agent/hosted/chat-request.d.ts.map +1 -0
  141. package/esm/src/agent/hosted/chat-request.js +68 -0
  142. package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts +14 -0
  143. package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts.map +1 -0
  144. package/esm/src/agent/hosted/chat-runtime-agent-adapter.js +48 -0
  145. package/esm/src/agent/hosted/chat-runtime-contract.d.ts +86 -0
  146. package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -0
  147. package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +51 -0
  148. package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -0
  149. package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +84 -0
  150. package/esm/src/agent/hosted/child-artifact-support.d.ts +25 -0
  151. package/esm/src/agent/hosted/child-artifact-support.d.ts.map +1 -0
  152. package/esm/src/agent/hosted/child-artifact-support.js +121 -0
  153. package/esm/src/agent/hosted/child-bootstrap.d.ts +40 -0
  154. package/esm/src/agent/hosted/child-bootstrap.d.ts.map +1 -0
  155. package/esm/src/agent/hosted/child-bootstrap.js +44 -0
  156. package/esm/src/agent/hosted/child-execution-logging.d.ts +35 -0
  157. package/esm/src/agent/hosted/child-execution-logging.d.ts.map +1 -0
  158. package/esm/src/agent/hosted/child-execution-logging.js +69 -0
  159. package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +101 -0
  160. package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -0
  161. package/esm/src/agent/hosted/child-fork-execution-runner.js +205 -0
  162. package/esm/src/agent/hosted/child-fork-instructions.d.ts +8 -0
  163. package/esm/src/agent/hosted/child-fork-instructions.d.ts.map +1 -0
  164. package/esm/src/agent/hosted/child-fork-run-context.d.ts +88 -0
  165. package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -0
  166. package/esm/src/agent/hosted/child-fork-run-context.js +144 -0
  167. package/esm/src/agent/hosted/child-fork-runtime-start.d.ts +18 -0
  168. package/esm/src/agent/hosted/child-fork-runtime-start.d.ts.map +1 -0
  169. package/esm/src/agent/hosted/child-fork-runtime-start.js +41 -0
  170. package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +19 -0
  171. package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -0
  172. package/esm/src/agent/hosted/child-fork-step-message-preparation.js +52 -0
  173. package/esm/src/agent/hosted/child-fork-stream-execution.d.ts +153 -0
  174. package/esm/src/agent/hosted/child-fork-stream-execution.d.ts.map +1 -0
  175. package/esm/src/agent/hosted/child-fork-stream-execution.js +416 -0
  176. package/esm/src/agent/hosted/child-fork-tool-sources.d.ts +46 -0
  177. package/esm/src/agent/hosted/child-fork-tool-sources.d.ts.map +1 -0
  178. package/esm/src/agent/hosted/child-fork-tool-sources.js +132 -0
  179. package/esm/src/agent/hosted/child-invoke-tool.d.ts +20 -0
  180. package/esm/src/agent/hosted/child-invoke-tool.d.ts.map +1 -0
  181. package/esm/src/agent/hosted/child-invoke-tool.js +49 -0
  182. package/esm/src/agent/hosted/child-lifecycle.d.ts +63 -0
  183. package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -0
  184. package/esm/src/agent/hosted/child-lifecycle.js +192 -0
  185. package/esm/src/agent/hosted/child-mirror.d.ts +108 -0
  186. package/esm/src/agent/hosted/child-mirror.d.ts.map +1 -0
  187. package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts +50 -0
  188. package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts.map +1 -0
  189. package/esm/src/agent/hosted/child-pending-tool-lifecycle.js +119 -0
  190. package/esm/src/agent/hosted/child-requested-tools.d.ts +109 -0
  191. package/esm/src/agent/hosted/child-requested-tools.d.ts.map +1 -0
  192. package/esm/src/agent/hosted/child-requested-tools.js +233 -0
  193. package/esm/src/agent/hosted/child-status.d.ts +39 -0
  194. package/esm/src/agent/hosted/child-status.d.ts.map +1 -0
  195. package/esm/src/agent/hosted/child-status.js +98 -0
  196. package/esm/src/agent/hosted/child-steering-tools.d.ts +20 -0
  197. package/esm/src/agent/hosted/child-steering-tools.d.ts.map +1 -0
  198. package/esm/src/agent/hosted/child-steering-tools.js +53 -0
  199. package/esm/src/agent/hosted/child-stream-watchdog.d.ts +27 -0
  200. package/esm/src/agent/hosted/child-stream-watchdog.d.ts.map +1 -0
  201. package/esm/src/agent/hosted/child-stream-watchdog.js +95 -0
  202. package/esm/src/agent/hosted/child-tool-input.d.ts +44 -0
  203. package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -0
  204. package/esm/src/agent/hosted/child-tool-input.js +44 -0
  205. package/esm/src/agent/hosted/durable-chat-run-start.d.ts +46 -0
  206. package/esm/src/agent/hosted/durable-chat-run-start.d.ts.map +1 -0
  207. package/esm/src/agent/hosted/durable-chat-run-start.js +148 -0
  208. package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +159 -0
  209. package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -0
  210. package/esm/src/agent/hosted/durable-child-fork-execution.js +324 -0
  211. package/esm/src/agent/hosted/finalized-message.d.ts +44 -0
  212. package/esm/src/agent/hosted/finalized-message.d.ts.map +1 -0
  213. package/esm/src/agent/hosted/finalized-message.js +67 -0
  214. package/esm/src/agent/hosted/form-input-tool.d.ts +85 -0
  215. package/esm/src/agent/hosted/form-input-tool.d.ts.map +1 -0
  216. package/esm/src/agent/hosted/form-input-tool.js +88 -0
  217. package/esm/src/agent/hosted/lifecycle.d.ts +41 -0
  218. package/esm/src/agent/hosted/lifecycle.d.ts.map +1 -0
  219. package/esm/src/agent/hosted/project-remote-tool-source.d.ts +46 -0
  220. package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -0
  221. package/esm/src/agent/hosted/project-remote-tool-source.js +147 -0
  222. package/esm/src/agent/hosted/project-steering-adapter.d.ts +34 -0
  223. package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -0
  224. package/esm/src/agent/hosted/project-steering-adapter.js +82 -0
  225. package/esm/src/agent/hosted/response-stream.d.ts +22 -0
  226. package/esm/src/agent/hosted/response-stream.d.ts.map +1 -0
  227. package/esm/src/agent/hosted/response-stream.js +52 -0
  228. package/esm/src/agent/hosted/runtime-request-config.d.ts +27 -0
  229. package/esm/src/agent/hosted/runtime-request-config.d.ts.map +1 -0
  230. package/esm/src/agent/hosted/runtime-request-config.js +54 -0
  231. package/esm/src/agent/hosted/runtime-state-resolver.d.ts +28 -0
  232. package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -0
  233. package/esm/src/agent/hosted/runtime-state-resolver.js +71 -0
  234. package/esm/src/agent/hosted/stream-finalization.d.ts +61 -0
  235. package/esm/src/agent/hosted/stream-finalization.d.ts.map +1 -0
  236. package/esm/src/agent/hosted/stream-terminal-error.d.ts +16 -0
  237. package/esm/src/agent/hosted/stream-terminal-error.d.ts.map +1 -0
  238. package/esm/src/agent/hosted/stream-terminal-error.js +54 -0
  239. package/esm/src/agent/hosted/veryfront-api-tool-access.d.ts +49 -0
  240. package/esm/src/agent/hosted/veryfront-api-tool-access.d.ts.map +1 -0
  241. package/esm/src/agent/hosted/veryfront-api-tool-access.js +182 -0
  242. package/esm/src/agent/human-input.js +1 -1
  243. package/esm/src/agent/index.d.ts +108 -107
  244. package/esm/src/agent/index.d.ts.map +1 -1
  245. package/esm/src/agent/index.js +106 -105
  246. package/esm/src/agent/live-studio-mcp-tools.d.ts +1 -1
  247. package/esm/src/agent/live-studio-mcp-tools.js +1 -1
  248. package/esm/src/agent/prepared-hosted-chat-execution.d.ts +2 -2
  249. package/esm/src/agent/prepared-hosted-chat-execution.js +3 -3
  250. package/esm/src/agent/project-agent-runtime.d.ts +25 -0
  251. package/esm/src/agent/project-agent-runtime.d.ts.map +1 -0
  252. package/esm/src/agent/project-agent-runtime.js +84 -0
  253. package/esm/src/agent/runtime/ag-ui-contract.d.ts +213 -0
  254. package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -0
  255. package/esm/src/agent/runtime/ag-ui-contract.js +134 -0
  256. package/esm/src/agent/runtime/agent-definition-files.d.ts +23 -0
  257. package/esm/src/agent/runtime/agent-definition-files.d.ts.map +1 -0
  258. package/esm/src/agent/runtime/agent-definition-files.js +79 -0
  259. package/esm/src/agent/runtime/agent-definition.d.ts +60 -0
  260. package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -0
  261. package/esm/src/agent/runtime/agent-definition.js +105 -0
  262. package/esm/src/agent/runtime/agent-invocation-contract.d.ts +326 -0
  263. package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -0
  264. package/esm/src/agent/runtime/agent-invocation-contract.js +212 -0
  265. package/esm/src/agent/runtime/agent-markdown-adapter.d.ts +6 -0
  266. package/esm/src/agent/runtime/agent-markdown-adapter.d.ts.map +1 -0
  267. package/esm/src/agent/runtime/agent-markdown-adapter.js +20 -0
  268. package/esm/src/agent/runtime/builtin-skill-files.d.ts +18 -0
  269. package/esm/src/agent/runtime/builtin-skill-files.d.ts.map +1 -0
  270. package/esm/src/agent/runtime/builtin-skill-files.js +82 -0
  271. package/esm/src/agent/runtime/client-profile.d.ts +26 -0
  272. package/esm/src/agent/runtime/client-profile.d.ts.map +1 -0
  273. package/esm/src/agent/runtime/client-profile.js +82 -0
  274. package/esm/src/agent/runtime/load-skill-tool.d.ts +43 -0
  275. package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -0
  276. package/esm/src/agent/runtime/load-skill-tool.js +115 -0
  277. package/esm/src/agent/runtime/message-file-url-refresh.d.ts +9 -0
  278. package/esm/src/agent/runtime/message-file-url-refresh.d.ts.map +1 -0
  279. package/esm/src/agent/runtime/message-preparation.d.ts +10 -0
  280. package/esm/src/agent/runtime/message-preparation.d.ts.map +1 -0
  281. package/esm/src/agent/runtime/message-preparation.js +34 -0
  282. package/esm/src/agent/runtime/project-files-client.d.ts +50 -0
  283. package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -0
  284. package/esm/src/agent/runtime/project-files-client.js +143 -0
  285. package/esm/src/agent/runtime/project-skill-catalog.d.ts +26 -0
  286. package/esm/src/agent/runtime/project-skill-catalog.d.ts.map +1 -0
  287. package/esm/src/agent/runtime/project-skill-catalog.js +148 -0
  288. package/esm/src/agent/runtime/project-skill-loader.d.ts +28 -0
  289. package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -0
  290. package/esm/src/agent/runtime/project-skill-loader.js +122 -0
  291. package/esm/src/agent/runtime/prompt-block.d.ts +7 -0
  292. package/esm/src/agent/runtime/prompt-block.d.ts.map +1 -0
  293. package/esm/src/agent/runtime/skill-metadata.d.ts +75 -0
  294. package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -0
  295. package/esm/src/agent/runtime/skill-metadata.js +159 -0
  296. package/esm/src/agent/runtime/skill-prompt.d.ts +5 -0
  297. package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -0
  298. package/esm/src/agent/runtime/skill-prompt.js +40 -0
  299. package/esm/src/agent/runtime/tool-inventory.d.ts +4 -0
  300. package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -0
  301. package/esm/src/agent/runtime/upload-url-client.d.ts +13 -0
  302. package/esm/src/agent/runtime/upload-url-client.d.ts.map +1 -0
  303. package/esm/src/agent/runtime/upload-url-client.js +54 -0
  304. package/esm/src/agent/service/auth.d.ts +81 -0
  305. package/esm/src/agent/service/auth.d.ts.map +1 -0
  306. package/esm/src/agent/service/bootstrap.d.ts +23 -0
  307. package/esm/src/agent/service/bootstrap.d.ts.map +1 -0
  308. package/esm/src/agent/service/bootstrap.js +38 -0
  309. package/esm/src/agent/service/config.d.ts +140 -0
  310. package/esm/src/agent/service/config.d.ts.map +1 -0
  311. package/esm/src/agent/service/definition.d.ts +87 -0
  312. package/esm/src/agent/service/definition.d.ts.map +1 -0
  313. package/esm/src/agent/service/env-files.d.ts +13 -0
  314. package/esm/src/agent/service/env-files.d.ts.map +1 -0
  315. package/esm/src/agent/service/env-files.js +34 -0
  316. package/esm/src/agent/service/mcp-server-config.d.ts +33 -0
  317. package/esm/src/agent/service/mcp-server-config.d.ts.map +1 -0
  318. package/esm/src/agent/service/mcp-server-config.js +49 -0
  319. package/esm/src/agent/service/node-runtime-infrastructure.d.ts +26 -0
  320. package/esm/src/agent/service/node-runtime-infrastructure.d.ts.map +1 -0
  321. package/esm/src/agent/service/node-runtime-infrastructure.js +30 -0
  322. package/esm/src/agent/service/node-telemetry.d.ts +44 -0
  323. package/esm/src/agent/service/node-telemetry.d.ts.map +1 -0
  324. package/esm/src/agent/service/registration.d.ts +110 -0
  325. package/esm/src/agent/service/registration.d.ts.map +1 -0
  326. package/esm/src/agent/service/registration.js +228 -0
  327. package/esm/src/agent/service/routes.d.ts +81 -0
  328. package/esm/src/agent/service/routes.d.ts.map +1 -0
  329. package/esm/src/agent/service/routes.js +204 -0
  330. package/esm/src/agent/service/runtime.d.ts +73 -0
  331. package/esm/src/agent/service/runtime.d.ts.map +1 -0
  332. package/esm/src/agent/service/runtime.js +118 -0
  333. package/esm/src/agent/service/server.d.ts +30 -0
  334. package/esm/src/agent/service/server.d.ts.map +1 -0
  335. package/esm/src/agent/service/server.js +47 -0
  336. package/esm/src/agent/veryfront-cloud-agent-service.d.ts +8 -7
  337. package/esm/src/agent/veryfront-cloud-agent-service.d.ts.map +1 -1
  338. package/esm/src/agent/veryfront-cloud-agent-service.js +17 -72
  339. package/esm/src/agent/veryfront-cloud-hosted-chat-execution-preparation.d.ts +3 -3
  340. package/esm/src/agent/veryfront-cloud-hosted-chat-execution-preparation.js +1 -1
  341. package/esm/src/agent/veryfront-cloud-prepared-hosted-chat-execution-runtime.d.ts +1 -1
  342. package/esm/src/agent/veryfront-cloud-runtime-system-messages.d.ts +3 -3
  343. package/esm/src/agent/veryfront-cloud-runtime-system-messages.js +2 -2
  344. package/esm/src/discovery/handlers/runtime-agent-markdown-handler.js +2 -2
  345. package/esm/src/internal-agents/ag-ui-sse.d.ts +2 -2
  346. package/esm/src/internal-agents/ag-ui-sse.js +1 -1
  347. package/esm/src/internal-agents/run-stream.js +1 -1
  348. package/esm/src/internal-agents/schema.d.ts +2 -2
  349. package/esm/src/internal-agents/schema.js +2 -2
  350. package/esm/src/tool/project-scoped-remote-tools.d.ts +6 -0
  351. package/esm/src/tool/project-scoped-remote-tools.d.ts.map +1 -1
  352. package/esm/src/tool/project-scoped-remote-tools.js +15 -4
  353. package/esm/src/utils/version-constant.d.ts +1 -1
  354. package/esm/src/utils/version-constant.js +1 -1
  355. package/package.json +3 -3
  356. package/src/deno.js +3 -3
  357. package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +1 -1
  358. package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +166 -0
  359. package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +4370 -0
  360. package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +1 -1
  361. package/src/src/agent/ag-ui/browser-chunk-encoder.ts +58 -0
  362. package/src/src/agent/ag-ui/browser-encoder.ts +538 -0
  363. package/src/src/agent/ag-ui/browser-finalize-tracker.ts +65 -0
  364. package/src/src/agent/ag-ui/browser-response-stream.ts +175 -0
  365. package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +172 -0
  366. package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +34 -0
  367. package/src/src/agent/ag-ui/detached-start.ts +425 -0
  368. package/src/src/agent/ag-ui/forwarded-context.ts +83 -0
  369. package/src/src/agent/ag-ui/handler.ts +388 -0
  370. package/src/src/agent/ag-ui/host-support.ts +244 -0
  371. package/src/src/agent/ag-ui/request-shared.ts +76 -0
  372. package/src/src/agent/ag-ui/run-control.ts +145 -0
  373. package/src/src/agent/ag-ui/runtime-browser-response.ts +41 -0
  374. package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +359 -0
  375. package/src/src/agent/ag-ui/runtime-event-encoder.ts +71 -0
  376. package/src/src/agent/ag-ui/runtime-handler.ts +510 -0
  377. package/src/src/agent/ag-ui/runtime-support.ts +64 -0
  378. package/src/src/agent/ag-ui/sse-parser.ts +306 -0
  379. package/src/src/agent/ag-ui/tool-shared.ts +80 -0
  380. package/src/src/agent/ag-ui/tracked-browser-response.ts +42 -0
  381. package/src/src/agent/agent-runtime-message-adapter.ts +1 -1
  382. package/src/src/agent/chat-ui-message-stream.ts +1 -1
  383. package/src/src/agent/conversation/bootstrap.ts +335 -0
  384. package/src/src/agent/conversation/delegation-policy.ts +299 -0
  385. package/src/src/agent/conversation/hosted-lifecycle.ts +215 -0
  386. package/src/src/agent/conversation/hosted-terminal.ts +235 -0
  387. package/src/src/agent/conversation/root-run-context.ts +143 -0
  388. package/src/src/agent/conversation/root-run-lifecycle.ts +184 -0
  389. package/src/src/agent/conversation/run-chunk-mirror.ts +350 -0
  390. package/src/src/agent/conversation/run-context.ts +22 -0
  391. package/src/src/agent/conversation/run-event-preparation.ts +76 -0
  392. package/src/src/agent/conversation/run-events.ts +242 -0
  393. package/src/src/agent/conversation/run-mirror.ts +235 -0
  394. package/src/src/agent/conversation/run-stream-mirror.ts +56 -0
  395. package/src/src/agent/data-stream.ts +1 -1
  396. package/src/src/agent/default-hosted-chat-runtime.ts +6 -6
  397. package/src/src/agent/default-hosted-invoke-agent-tool.ts +19 -19
  398. package/src/src/agent/default-hosted-project-steering-refresh.ts +5 -5
  399. package/src/src/agent/default-research-artifact-support.ts +2 -2
  400. package/src/src/agent/fork-runtime-stream.ts +2 -2
  401. package/src/src/agent/hosted/ag-ui-chat-request.ts +197 -0
  402. package/src/src/agent/hosted/agent-project-steering.ts +129 -0
  403. package/src/src/agent/hosted/agent-run-lifecycle.ts +161 -0
  404. package/src/src/agent/hosted/chat-execution-runtime.ts +703 -0
  405. package/src/src/agent/hosted/chat-preparation.ts +357 -0
  406. package/src/src/agent/hosted/chat-request-parser.ts +209 -0
  407. package/src/src/agent/hosted/chat-request.ts +112 -0
  408. package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +88 -0
  409. package/src/src/agent/hosted/chat-runtime-contract.ts +101 -0
  410. package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +183 -0
  411. package/src/src/agent/hosted/child-artifact-support.ts +201 -0
  412. package/src/src/agent/hosted/child-bootstrap.ts +75 -0
  413. package/src/src/agent/hosted/child-execution-logging.ts +114 -0
  414. package/src/src/agent/hosted/child-fork-execution-runner.ts +396 -0
  415. package/src/src/agent/hosted/child-fork-run-context.ts +309 -0
  416. package/src/src/agent/hosted/child-fork-runtime-start.ts +84 -0
  417. package/src/src/agent/hosted/child-fork-step-message-preparation.ts +96 -0
  418. package/src/src/agent/hosted/child-fork-stream-execution.ts +626 -0
  419. package/src/src/agent/hosted/child-fork-tool-sources.ts +231 -0
  420. package/src/src/agent/hosted/child-invoke-tool.ts +90 -0
  421. package/src/src/agent/hosted/child-lifecycle.ts +352 -0
  422. package/src/src/agent/hosted/child-mirror.ts +272 -0
  423. package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +191 -0
  424. package/src/src/agent/hosted/child-requested-tools.ts +411 -0
  425. package/src/src/agent/hosted/child-status.ts +167 -0
  426. package/src/src/agent/hosted/child-steering-tools.ts +92 -0
  427. package/src/src/agent/hosted/child-stream-watchdog.ts +146 -0
  428. package/src/src/agent/hosted/child-tool-input.ts +91 -0
  429. package/src/src/agent/hosted/durable-chat-run-start.ts +246 -0
  430. package/src/src/agent/hosted/durable-child-fork-execution.ts +597 -0
  431. package/src/src/agent/hosted/finalized-message.ts +170 -0
  432. package/src/src/agent/hosted/form-input-tool.ts +128 -0
  433. package/src/src/agent/hosted/project-remote-tool-source.ts +279 -0
  434. package/src/src/agent/hosted/project-steering-adapter.ts +184 -0
  435. package/src/src/agent/hosted/response-stream.ts +87 -0
  436. package/src/src/agent/hosted/runtime-request-config.ts +112 -0
  437. package/src/src/agent/hosted/runtime-state-resolver.ts +133 -0
  438. package/src/src/agent/hosted/stream-finalization.ts +188 -0
  439. package/src/src/agent/hosted/stream-terminal-error.ts +81 -0
  440. package/src/src/agent/hosted/veryfront-api-tool-access.ts +293 -0
  441. package/src/src/agent/human-input.ts +1 -1
  442. package/src/src/agent/index.ts +120 -107
  443. package/src/src/agent/live-studio-mcp-tools.ts +1 -1
  444. package/src/src/agent/prepared-hosted-chat-execution.ts +4 -4
  445. package/src/src/agent/project-agent-runtime.ts +139 -0
  446. package/src/src/agent/runtime/ag-ui-contract.ts +216 -0
  447. package/src/src/agent/runtime/agent-definition-files.ts +128 -0
  448. package/src/src/agent/runtime/agent-definition.ts +163 -0
  449. package/src/src/agent/runtime/agent-invocation-contract.ts +355 -0
  450. package/src/src/agent/runtime/agent-markdown-adapter.ts +31 -0
  451. package/src/src/agent/runtime/builtin-skill-files.ts +122 -0
  452. package/src/src/agent/runtime/client-profile.ts +123 -0
  453. package/src/src/agent/runtime/load-skill-tool.ts +239 -0
  454. package/src/src/agent/runtime/message-file-url-refresh.ts +120 -0
  455. package/src/src/agent/runtime/message-preparation.ts +58 -0
  456. package/src/src/agent/runtime/project-files-client.ts +256 -0
  457. package/src/src/agent/runtime/project-skill-catalog.ts +238 -0
  458. package/src/src/agent/runtime/project-skill-loader.ts +217 -0
  459. package/src/src/agent/runtime/skill-metadata.ts +260 -0
  460. package/src/src/agent/runtime/skill-prompt.ts +61 -0
  461. package/src/src/agent/runtime/tool-inventory.ts +46 -0
  462. package/src/src/agent/runtime/upload-url-client.ts +95 -0
  463. package/src/src/agent/service/bootstrap.ts +79 -0
  464. package/src/src/agent/service/definition.ts +386 -0
  465. package/src/src/agent/service/env-files.ts +60 -0
  466. package/src/src/agent/service/mcp-server-config.ts +112 -0
  467. package/src/src/agent/service/node-runtime-infrastructure.ts +71 -0
  468. package/src/src/agent/service/registration.ts +320 -0
  469. package/src/src/agent/service/routes.ts +386 -0
  470. package/src/src/agent/service/runtime.ts +303 -0
  471. package/src/src/agent/service/server.ts +98 -0
  472. package/src/src/agent/veryfront-cloud-agent-service.ts +37 -115
  473. package/src/src/agent/veryfront-cloud-hosted-chat-execution-preparation.ts +3 -3
  474. package/src/src/agent/veryfront-cloud-prepared-hosted-chat-execution-runtime.ts +1 -1
  475. package/src/src/agent/veryfront-cloud-runtime-system-messages.ts +4 -4
  476. package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +2 -2
  477. package/src/src/internal-agents/ag-ui-sse.ts +2 -2
  478. package/src/src/internal-agents/run-stream.ts +1 -1
  479. package/src/src/internal-agents/schema.ts +2 -2
  480. package/src/src/tool/project-scoped-remote-tools.ts +23 -4
  481. package/src/src/utils/version-constant.ts +1 -1
  482. package/esm/src/agent/ag-ui-browser-chunk-encoder.d.ts +0 -14
  483. package/esm/src/agent/ag-ui-browser-chunk-encoder.d.ts.map +0 -1
  484. package/esm/src/agent/ag-ui-browser-chunk-encoder.js +0 -31
  485. package/esm/src/agent/ag-ui-browser-encoder.d.ts +0 -32
  486. package/esm/src/agent/ag-ui-browser-encoder.d.ts.map +0 -1
  487. package/esm/src/agent/ag-ui-browser-encoder.js +0 -405
  488. package/esm/src/agent/ag-ui-browser-finalize-tracker.d.ts +0 -12
  489. package/esm/src/agent/ag-ui-browser-finalize-tracker.d.ts.map +0 -1
  490. package/esm/src/agent/ag-ui-browser-finalize-tracker.js +0 -42
  491. package/esm/src/agent/ag-ui-browser-response-stream.d.ts +0 -28
  492. package/esm/src/agent/ag-ui-browser-response-stream.d.ts.map +0 -1
  493. package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.d.ts +0 -20
  494. package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.d.ts.map +0 -1
  495. package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.js +0 -108
  496. package/esm/src/agent/ag-ui-chunk-encoder-bridge.d.ts +0 -11
  497. package/esm/src/agent/ag-ui-chunk-encoder-bridge.d.ts.map +0 -1
  498. package/esm/src/agent/ag-ui-chunk-encoder-bridge.js +0 -9
  499. package/esm/src/agent/ag-ui-detached-start.d.ts +0 -158
  500. package/esm/src/agent/ag-ui-detached-start.d.ts.map +0 -1
  501. package/esm/src/agent/ag-ui-detached-start.js +0 -256
  502. package/esm/src/agent/ag-ui-forwarded-context.d.ts +0 -14
  503. package/esm/src/agent/ag-ui-forwarded-context.d.ts.map +0 -1
  504. package/esm/src/agent/ag-ui-forwarded-context.js +0 -56
  505. package/esm/src/agent/ag-ui-handler.d.ts +0 -14
  506. package/esm/src/agent/ag-ui-handler.d.ts.map +0 -1
  507. package/esm/src/agent/ag-ui-handler.js +0 -244
  508. package/esm/src/agent/ag-ui-host-support.d.ts +0 -131
  509. package/esm/src/agent/ag-ui-host-support.d.ts.map +0 -1
  510. package/esm/src/agent/ag-ui-host-support.js +0 -179
  511. package/esm/src/agent/ag-ui-request-shared.d.ts +0 -4
  512. package/esm/src/agent/ag-ui-request-shared.d.ts.map +0 -1
  513. package/esm/src/agent/ag-ui-request-shared.js +0 -56
  514. package/esm/src/agent/ag-ui-run-control.d.ts +0 -39
  515. package/esm/src/agent/ag-ui-run-control.d.ts.map +0 -1
  516. package/esm/src/agent/ag-ui-run-control.js +0 -84
  517. package/esm/src/agent/ag-ui-runtime-browser-response.d.ts +0 -18
  518. package/esm/src/agent/ag-ui-runtime-browser-response.d.ts.map +0 -1
  519. package/esm/src/agent/ag-ui-runtime-browser-response.js +0 -15
  520. package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.d.ts +0 -17
  521. package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.d.ts.map +0 -1
  522. package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.js +0 -304
  523. package/esm/src/agent/ag-ui-runtime-event-encoder.d.ts +0 -11
  524. package/esm/src/agent/ag-ui-runtime-event-encoder.d.ts.map +0 -1
  525. package/esm/src/agent/ag-ui-runtime-event-encoder.js +0 -37
  526. package/esm/src/agent/ag-ui-runtime-handler.d.ts +0 -44
  527. package/esm/src/agent/ag-ui-runtime-handler.d.ts.map +0 -1
  528. package/esm/src/agent/ag-ui-runtime-handler.js +0 -301
  529. package/esm/src/agent/ag-ui-runtime-support.d.ts +0 -4
  530. package/esm/src/agent/ag-ui-runtime-support.d.ts.map +0 -1
  531. package/esm/src/agent/ag-ui-sse-parser.d.ts +0 -57
  532. package/esm/src/agent/ag-ui-sse-parser.d.ts.map +0 -1
  533. package/esm/src/agent/ag-ui-sse-parser.js +0 -227
  534. package/esm/src/agent/ag-ui-tool-shared.d.ts +0 -15
  535. package/esm/src/agent/ag-ui-tool-shared.d.ts.map +0 -1
  536. package/esm/src/agent/ag-ui-tool-shared.js +0 -48
  537. package/esm/src/agent/ag-ui-tracked-browser-response.d.ts +0 -9
  538. package/esm/src/agent/ag-ui-tracked-browser-response.d.ts.map +0 -1
  539. package/esm/src/agent/ag-ui-tracked-browser-response.js +0 -19
  540. package/esm/src/agent/agent-service-auth.d.ts +0 -81
  541. package/esm/src/agent/agent-service-auth.d.ts.map +0 -1
  542. package/esm/src/agent/agent-service-bootstrap.d.ts +0 -23
  543. package/esm/src/agent/agent-service-bootstrap.d.ts.map +0 -1
  544. package/esm/src/agent/agent-service-bootstrap.js +0 -38
  545. package/esm/src/agent/agent-service-config.d.ts +0 -140
  546. package/esm/src/agent/agent-service-config.d.ts.map +0 -1
  547. package/esm/src/agent/agent-service-env-files.d.ts +0 -13
  548. package/esm/src/agent/agent-service-env-files.d.ts.map +0 -1
  549. package/esm/src/agent/agent-service-env-files.js +0 -34
  550. package/esm/src/agent/agent-service-mcp-server-config.d.ts +0 -33
  551. package/esm/src/agent/agent-service-mcp-server-config.d.ts.map +0 -1
  552. package/esm/src/agent/agent-service-mcp-server-config.js +0 -49
  553. package/esm/src/agent/agent-service-registration.d.ts +0 -110
  554. package/esm/src/agent/agent-service-registration.d.ts.map +0 -1
  555. package/esm/src/agent/agent-service-registration.js +0 -228
  556. package/esm/src/agent/agent-service-routes.d.ts +0 -81
  557. package/esm/src/agent/agent-service-routes.d.ts.map +0 -1
  558. package/esm/src/agent/agent-service-routes.js +0 -204
  559. package/esm/src/agent/agent-service-runtime.d.ts +0 -73
  560. package/esm/src/agent/agent-service-runtime.d.ts.map +0 -1
  561. package/esm/src/agent/agent-service-runtime.js +0 -118
  562. package/esm/src/agent/agent-service-server.d.ts +0 -30
  563. package/esm/src/agent/agent-service-server.d.ts.map +0 -1
  564. package/esm/src/agent/agent-service-server.js +0 -47
  565. package/esm/src/agent/agent-service.d.ts +0 -87
  566. package/esm/src/agent/agent-service.d.ts.map +0 -1
  567. package/esm/src/agent/child-run-execution-cleanup.d.ts +0 -14
  568. package/esm/src/agent/child-run-execution-cleanup.d.ts.map +0 -1
  569. package/esm/src/agent/child-run-execution-snapshot.d.ts +0 -70
  570. package/esm/src/agent/child-run-execution-snapshot.d.ts.map +0 -1
  571. package/esm/src/agent/child-run-execution-support.d.ts +0 -5
  572. package/esm/src/agent/child-run-execution-support.d.ts.map +0 -1
  573. package/esm/src/agent/child-run-final-step-support.d.ts +0 -18
  574. package/esm/src/agent/child-run-final-step-support.d.ts.map +0 -1
  575. package/esm/src/agent/child-run-result-summary.d.ts +0 -14
  576. package/esm/src/agent/child-run-result-summary.d.ts.map +0 -1
  577. package/esm/src/agent/conversation-bootstrap.d.ts +0 -94
  578. package/esm/src/agent/conversation-bootstrap.d.ts.map +0 -1
  579. package/esm/src/agent/conversation-bootstrap.js +0 -210
  580. package/esm/src/agent/conversation-delegation-policy.d.ts +0 -53
  581. package/esm/src/agent/conversation-delegation-policy.d.ts.map +0 -1
  582. package/esm/src/agent/conversation-delegation-policy.js +0 -192
  583. package/esm/src/agent/conversation-hosted-lifecycle.d.ts +0 -39
  584. package/esm/src/agent/conversation-hosted-lifecycle.d.ts.map +0 -1
  585. package/esm/src/agent/conversation-hosted-lifecycle.js +0 -138
  586. package/esm/src/agent/conversation-hosted-terminal.d.ts +0 -46
  587. package/esm/src/agent/conversation-hosted-terminal.d.ts.map +0 -1
  588. package/esm/src/agent/conversation-hosted-terminal.js +0 -138
  589. package/esm/src/agent/conversation-root-run-context.d.ts +0 -57
  590. package/esm/src/agent/conversation-root-run-context.d.ts.map +0 -1
  591. package/esm/src/agent/conversation-root-run-context.js +0 -79
  592. package/esm/src/agent/conversation-root-run-lifecycle.d.ts +0 -61
  593. package/esm/src/agent/conversation-root-run-lifecycle.d.ts.map +0 -1
  594. package/esm/src/agent/conversation-root-run-lifecycle.js +0 -94
  595. package/esm/src/agent/conversation-run-chunk-mirror.d.ts +0 -74
  596. package/esm/src/agent/conversation-run-chunk-mirror.d.ts.map +0 -1
  597. package/esm/src/agent/conversation-run-chunk-mirror.js +0 -188
  598. package/esm/src/agent/conversation-run-context.d.ts +0 -19
  599. package/esm/src/agent/conversation-run-context.d.ts.map +0 -1
  600. package/esm/src/agent/conversation-run-event-normalization.d.ts +0 -8
  601. package/esm/src/agent/conversation-run-event-normalization.d.ts.map +0 -1
  602. package/esm/src/agent/conversation-run-event-preparation.d.ts +0 -7
  603. package/esm/src/agent/conversation-run-event-preparation.d.ts.map +0 -1
  604. package/esm/src/agent/conversation-run-event-preparation.js +0 -48
  605. package/esm/src/agent/conversation-run-events.d.ts +0 -34
  606. package/esm/src/agent/conversation-run-events.d.ts.map +0 -1
  607. package/esm/src/agent/conversation-run-events.js +0 -200
  608. package/esm/src/agent/conversation-run-mirror.d.ts +0 -43
  609. package/esm/src/agent/conversation-run-mirror.d.ts.map +0 -1
  610. package/esm/src/agent/conversation-run-mirror.js +0 -157
  611. package/esm/src/agent/conversation-run-stream-mirror.d.ts +0 -21
  612. package/esm/src/agent/conversation-run-stream-mirror.d.ts.map +0 -1
  613. package/esm/src/agent/conversation-run-stream-mirror.js +0 -31
  614. package/esm/src/agent/hosted-ag-ui-chat-request.d.ts +0 -56
  615. package/esm/src/agent/hosted-ag-ui-chat-request.d.ts.map +0 -1
  616. package/esm/src/agent/hosted-ag-ui-chat-request.js +0 -112
  617. package/esm/src/agent/hosted-agent-project-steering.d.ts +0 -33
  618. package/esm/src/agent/hosted-agent-project-steering.d.ts.map +0 -1
  619. package/esm/src/agent/hosted-agent-project-steering.js +0 -73
  620. package/esm/src/agent/hosted-agent-run-lifecycle.d.ts +0 -60
  621. package/esm/src/agent/hosted-agent-run-lifecycle.d.ts.map +0 -1
  622. package/esm/src/agent/hosted-agent-run-lifecycle.js +0 -72
  623. package/esm/src/agent/hosted-chat-execution-runtime.d.ts +0 -127
  624. package/esm/src/agent/hosted-chat-execution-runtime.d.ts.map +0 -1
  625. package/esm/src/agent/hosted-chat-execution-runtime.js +0 -400
  626. package/esm/src/agent/hosted-chat-preparation.d.ts +0 -105
  627. package/esm/src/agent/hosted-chat-preparation.d.ts.map +0 -1
  628. package/esm/src/agent/hosted-chat-preparation.js +0 -156
  629. package/esm/src/agent/hosted-chat-request-parser.d.ts +0 -53
  630. package/esm/src/agent/hosted-chat-request-parser.d.ts.map +0 -1
  631. package/esm/src/agent/hosted-chat-request-parser.js +0 -105
  632. package/esm/src/agent/hosted-chat-request.d.ts +0 -305
  633. package/esm/src/agent/hosted-chat-request.d.ts.map +0 -1
  634. package/esm/src/agent/hosted-chat-request.js +0 -68
  635. package/esm/src/agent/hosted-chat-runtime-agent-adapter.d.ts +0 -14
  636. package/esm/src/agent/hosted-chat-runtime-agent-adapter.d.ts.map +0 -1
  637. package/esm/src/agent/hosted-chat-runtime-agent-adapter.js +0 -48
  638. package/esm/src/agent/hosted-chat-runtime-contract.d.ts +0 -86
  639. package/esm/src/agent/hosted-chat-runtime-contract.d.ts.map +0 -1
  640. package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts +0 -51
  641. package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts.map +0 -1
  642. package/esm/src/agent/hosted-chat-runtime-tool-assembly.js +0 -84
  643. package/esm/src/agent/hosted-child-artifact-support.d.ts +0 -25
  644. package/esm/src/agent/hosted-child-artifact-support.d.ts.map +0 -1
  645. package/esm/src/agent/hosted-child-artifact-support.js +0 -121
  646. package/esm/src/agent/hosted-child-bootstrap.d.ts +0 -40
  647. package/esm/src/agent/hosted-child-bootstrap.d.ts.map +0 -1
  648. package/esm/src/agent/hosted-child-bootstrap.js +0 -44
  649. package/esm/src/agent/hosted-child-execution-logging.d.ts +0 -35
  650. package/esm/src/agent/hosted-child-execution-logging.d.ts.map +0 -1
  651. package/esm/src/agent/hosted-child-execution-logging.js +0 -69
  652. package/esm/src/agent/hosted-child-fork-execution-runner.d.ts +0 -101
  653. package/esm/src/agent/hosted-child-fork-execution-runner.d.ts.map +0 -1
  654. package/esm/src/agent/hosted-child-fork-execution-runner.js +0 -205
  655. package/esm/src/agent/hosted-child-fork-instructions.d.ts +0 -8
  656. package/esm/src/agent/hosted-child-fork-instructions.d.ts.map +0 -1
  657. package/esm/src/agent/hosted-child-fork-run-context.d.ts +0 -88
  658. package/esm/src/agent/hosted-child-fork-run-context.d.ts.map +0 -1
  659. package/esm/src/agent/hosted-child-fork-run-context.js +0 -144
  660. package/esm/src/agent/hosted-child-fork-runtime-start.d.ts +0 -18
  661. package/esm/src/agent/hosted-child-fork-runtime-start.d.ts.map +0 -1
  662. package/esm/src/agent/hosted-child-fork-runtime-start.js +0 -41
  663. package/esm/src/agent/hosted-child-fork-step-message-preparation.d.ts +0 -19
  664. package/esm/src/agent/hosted-child-fork-step-message-preparation.d.ts.map +0 -1
  665. package/esm/src/agent/hosted-child-fork-step-message-preparation.js +0 -52
  666. package/esm/src/agent/hosted-child-fork-stream-execution.d.ts +0 -153
  667. package/esm/src/agent/hosted-child-fork-stream-execution.d.ts.map +0 -1
  668. package/esm/src/agent/hosted-child-fork-stream-execution.js +0 -416
  669. package/esm/src/agent/hosted-child-fork-tool-sources.d.ts +0 -46
  670. package/esm/src/agent/hosted-child-fork-tool-sources.d.ts.map +0 -1
  671. package/esm/src/agent/hosted-child-fork-tool-sources.js +0 -124
  672. package/esm/src/agent/hosted-child-invoke-tool.d.ts +0 -20
  673. package/esm/src/agent/hosted-child-invoke-tool.d.ts.map +0 -1
  674. package/esm/src/agent/hosted-child-invoke-tool.js +0 -49
  675. package/esm/src/agent/hosted-child-lifecycle.d.ts +0 -63
  676. package/esm/src/agent/hosted-child-lifecycle.d.ts.map +0 -1
  677. package/esm/src/agent/hosted-child-lifecycle.js +0 -192
  678. package/esm/src/agent/hosted-child-mirror.d.ts +0 -108
  679. package/esm/src/agent/hosted-child-mirror.d.ts.map +0 -1
  680. package/esm/src/agent/hosted-child-pending-tool-lifecycle.d.ts +0 -50
  681. package/esm/src/agent/hosted-child-pending-tool-lifecycle.d.ts.map +0 -1
  682. package/esm/src/agent/hosted-child-pending-tool-lifecycle.js +0 -119
  683. package/esm/src/agent/hosted-child-requested-tools.d.ts +0 -109
  684. package/esm/src/agent/hosted-child-requested-tools.d.ts.map +0 -1
  685. package/esm/src/agent/hosted-child-requested-tools.js +0 -233
  686. package/esm/src/agent/hosted-child-status.d.ts +0 -39
  687. package/esm/src/agent/hosted-child-status.d.ts.map +0 -1
  688. package/esm/src/agent/hosted-child-status.js +0 -98
  689. package/esm/src/agent/hosted-child-steering-tools.d.ts +0 -20
  690. package/esm/src/agent/hosted-child-steering-tools.d.ts.map +0 -1
  691. package/esm/src/agent/hosted-child-steering-tools.js +0 -53
  692. package/esm/src/agent/hosted-child-stream-watchdog.d.ts +0 -27
  693. package/esm/src/agent/hosted-child-stream-watchdog.d.ts.map +0 -1
  694. package/esm/src/agent/hosted-child-stream-watchdog.js +0 -95
  695. package/esm/src/agent/hosted-child-tool-input.d.ts +0 -44
  696. package/esm/src/agent/hosted-child-tool-input.d.ts.map +0 -1
  697. package/esm/src/agent/hosted-child-tool-input.js +0 -44
  698. package/esm/src/agent/hosted-durable-chat-run-start.d.ts +0 -46
  699. package/esm/src/agent/hosted-durable-chat-run-start.d.ts.map +0 -1
  700. package/esm/src/agent/hosted-durable-chat-run-start.js +0 -148
  701. package/esm/src/agent/hosted-durable-child-fork-execution.d.ts +0 -159
  702. package/esm/src/agent/hosted-durable-child-fork-execution.d.ts.map +0 -1
  703. package/esm/src/agent/hosted-durable-child-fork-execution.js +0 -324
  704. package/esm/src/agent/hosted-finalized-message.d.ts +0 -44
  705. package/esm/src/agent/hosted-finalized-message.d.ts.map +0 -1
  706. package/esm/src/agent/hosted-finalized-message.js +0 -67
  707. package/esm/src/agent/hosted-form-input-tool.d.ts +0 -85
  708. package/esm/src/agent/hosted-form-input-tool.d.ts.map +0 -1
  709. package/esm/src/agent/hosted-form-input-tool.js +0 -88
  710. package/esm/src/agent/hosted-lifecycle.d.ts +0 -41
  711. package/esm/src/agent/hosted-lifecycle.d.ts.map +0 -1
  712. package/esm/src/agent/hosted-project-remote-tool-source.d.ts +0 -45
  713. package/esm/src/agent/hosted-project-remote-tool-source.d.ts.map +0 -1
  714. package/esm/src/agent/hosted-project-remote-tool-source.js +0 -135
  715. package/esm/src/agent/hosted-project-steering-adapter.d.ts +0 -34
  716. package/esm/src/agent/hosted-project-steering-adapter.d.ts.map +0 -1
  717. package/esm/src/agent/hosted-project-steering-adapter.js +0 -82
  718. package/esm/src/agent/hosted-response-stream.d.ts +0 -22
  719. package/esm/src/agent/hosted-response-stream.d.ts.map +0 -1
  720. package/esm/src/agent/hosted-response-stream.js +0 -52
  721. package/esm/src/agent/hosted-runtime-request-config.d.ts +0 -27
  722. package/esm/src/agent/hosted-runtime-request-config.d.ts.map +0 -1
  723. package/esm/src/agent/hosted-runtime-request-config.js +0 -54
  724. package/esm/src/agent/hosted-runtime-state-resolver.d.ts +0 -28
  725. package/esm/src/agent/hosted-runtime-state-resolver.d.ts.map +0 -1
  726. package/esm/src/agent/hosted-runtime-state-resolver.js +0 -71
  727. package/esm/src/agent/hosted-stream-finalization.d.ts +0 -61
  728. package/esm/src/agent/hosted-stream-finalization.d.ts.map +0 -1
  729. package/esm/src/agent/hosted-stream-terminal-error.d.ts +0 -16
  730. package/esm/src/agent/hosted-stream-terminal-error.d.ts.map +0 -1
  731. package/esm/src/agent/hosted-stream-terminal-error.js +0 -54
  732. package/esm/src/agent/node-agent-service-runtime-infrastructure.d.ts +0 -26
  733. package/esm/src/agent/node-agent-service-runtime-infrastructure.d.ts.map +0 -1
  734. package/esm/src/agent/node-agent-service-runtime-infrastructure.js +0 -30
  735. package/esm/src/agent/node-agent-service-telemetry.d.ts +0 -44
  736. package/esm/src/agent/node-agent-service-telemetry.d.ts.map +0 -1
  737. package/esm/src/agent/runtime-ag-ui-contract.d.ts +0 -213
  738. package/esm/src/agent/runtime-ag-ui-contract.d.ts.map +0 -1
  739. package/esm/src/agent/runtime-ag-ui-contract.js +0 -134
  740. package/esm/src/agent/runtime-agent-definition-files.d.ts +0 -23
  741. package/esm/src/agent/runtime-agent-definition-files.d.ts.map +0 -1
  742. package/esm/src/agent/runtime-agent-definition-files.js +0 -79
  743. package/esm/src/agent/runtime-agent-definition.d.ts +0 -60
  744. package/esm/src/agent/runtime-agent-definition.d.ts.map +0 -1
  745. package/esm/src/agent/runtime-agent-definition.js +0 -105
  746. package/esm/src/agent/runtime-agent-invocation-contract.d.ts +0 -326
  747. package/esm/src/agent/runtime-agent-invocation-contract.d.ts.map +0 -1
  748. package/esm/src/agent/runtime-agent-invocation-contract.js +0 -212
  749. package/esm/src/agent/runtime-agent-markdown-adapter.d.ts +0 -6
  750. package/esm/src/agent/runtime-agent-markdown-adapter.d.ts.map +0 -1
  751. package/esm/src/agent/runtime-agent-markdown-adapter.js +0 -20
  752. package/esm/src/agent/runtime-builtin-skill-files.d.ts +0 -18
  753. package/esm/src/agent/runtime-builtin-skill-files.d.ts.map +0 -1
  754. package/esm/src/agent/runtime-builtin-skill-files.js +0 -82
  755. package/esm/src/agent/runtime-client-profile.d.ts +0 -26
  756. package/esm/src/agent/runtime-client-profile.d.ts.map +0 -1
  757. package/esm/src/agent/runtime-client-profile.js +0 -82
  758. package/esm/src/agent/runtime-load-skill-tool.d.ts +0 -43
  759. package/esm/src/agent/runtime-load-skill-tool.d.ts.map +0 -1
  760. package/esm/src/agent/runtime-load-skill-tool.js +0 -115
  761. package/esm/src/agent/runtime-message-file-url-refresh.d.ts +0 -9
  762. package/esm/src/agent/runtime-message-file-url-refresh.d.ts.map +0 -1
  763. package/esm/src/agent/runtime-message-preparation.d.ts +0 -10
  764. package/esm/src/agent/runtime-message-preparation.d.ts.map +0 -1
  765. package/esm/src/agent/runtime-message-preparation.js +0 -34
  766. package/esm/src/agent/runtime-project-files-client.d.ts +0 -50
  767. package/esm/src/agent/runtime-project-files-client.d.ts.map +0 -1
  768. package/esm/src/agent/runtime-project-files-client.js +0 -143
  769. package/esm/src/agent/runtime-project-skill-catalog.d.ts +0 -26
  770. package/esm/src/agent/runtime-project-skill-catalog.d.ts.map +0 -1
  771. package/esm/src/agent/runtime-project-skill-catalog.js +0 -148
  772. package/esm/src/agent/runtime-project-skill-loader.d.ts +0 -28
  773. package/esm/src/agent/runtime-project-skill-loader.d.ts.map +0 -1
  774. package/esm/src/agent/runtime-project-skill-loader.js +0 -122
  775. package/esm/src/agent/runtime-prompt-block.d.ts +0 -7
  776. package/esm/src/agent/runtime-prompt-block.d.ts.map +0 -1
  777. package/esm/src/agent/runtime-skill-metadata.d.ts +0 -75
  778. package/esm/src/agent/runtime-skill-metadata.d.ts.map +0 -1
  779. package/esm/src/agent/runtime-skill-metadata.js +0 -159
  780. package/esm/src/agent/runtime-skill-prompt.d.ts +0 -5
  781. package/esm/src/agent/runtime-skill-prompt.d.ts.map +0 -1
  782. package/esm/src/agent/runtime-skill-prompt.js +0 -40
  783. package/esm/src/agent/runtime-tool-inventory.d.ts +0 -4
  784. package/esm/src/agent/runtime-tool-inventory.d.ts.map +0 -1
  785. package/esm/src/agent/runtime-upload-url-client.d.ts +0 -13
  786. package/esm/src/agent/runtime-upload-url-client.d.ts.map +0 -1
  787. package/esm/src/agent/runtime-upload-url-client.js +0 -54
  788. package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
  789. package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
  790. package/src/src/agent/ag-ui-browser-chunk-encoder.ts +0 -58
  791. package/src/src/agent/ag-ui-browser-encoder.ts +0 -538
  792. package/src/src/agent/ag-ui-browser-finalize-tracker.ts +0 -65
  793. package/src/src/agent/ag-ui-browser-response-stream.ts +0 -175
  794. package/src/src/agent/ag-ui-chat-ui-chunk-browser-encoder.ts +0 -172
  795. package/src/src/agent/ag-ui-chunk-encoder-bridge.ts +0 -34
  796. package/src/src/agent/ag-ui-detached-start.ts +0 -425
  797. package/src/src/agent/ag-ui-forwarded-context.ts +0 -83
  798. package/src/src/agent/ag-ui-handler.ts +0 -388
  799. package/src/src/agent/ag-ui-host-support.ts +0 -244
  800. package/src/src/agent/ag-ui-request-shared.ts +0 -76
  801. package/src/src/agent/ag-ui-run-control.ts +0 -145
  802. package/src/src/agent/ag-ui-runtime-browser-response.ts +0 -41
  803. package/src/src/agent/ag-ui-runtime-chat-stream-encoder.ts +0 -359
  804. package/src/src/agent/ag-ui-runtime-event-encoder.ts +0 -71
  805. package/src/src/agent/ag-ui-runtime-handler.ts +0 -510
  806. package/src/src/agent/ag-ui-runtime-support.ts +0 -64
  807. package/src/src/agent/ag-ui-sse-parser.ts +0 -306
  808. package/src/src/agent/ag-ui-tool-shared.ts +0 -80
  809. package/src/src/agent/ag-ui-tracked-browser-response.ts +0 -42
  810. package/src/src/agent/agent-service-bootstrap.ts +0 -79
  811. package/src/src/agent/agent-service-env-files.ts +0 -60
  812. package/src/src/agent/agent-service-mcp-server-config.ts +0 -112
  813. package/src/src/agent/agent-service-registration.ts +0 -320
  814. package/src/src/agent/agent-service-routes.ts +0 -389
  815. package/src/src/agent/agent-service-runtime.ts +0 -303
  816. package/src/src/agent/agent-service-server.ts +0 -98
  817. package/src/src/agent/agent-service.ts +0 -386
  818. package/src/src/agent/conversation-bootstrap.ts +0 -335
  819. package/src/src/agent/conversation-delegation-policy.ts +0 -299
  820. package/src/src/agent/conversation-hosted-lifecycle.ts +0 -215
  821. package/src/src/agent/conversation-hosted-terminal.ts +0 -235
  822. package/src/src/agent/conversation-root-run-context.ts +0 -143
  823. package/src/src/agent/conversation-root-run-lifecycle.ts +0 -184
  824. package/src/src/agent/conversation-run-chunk-mirror.ts +0 -353
  825. package/src/src/agent/conversation-run-context.ts +0 -22
  826. package/src/src/agent/conversation-run-event-preparation.ts +0 -76
  827. package/src/src/agent/conversation-run-events.ts +0 -242
  828. package/src/src/agent/conversation-run-mirror.ts +0 -235
  829. package/src/src/agent/conversation-run-stream-mirror.ts +0 -59
  830. package/src/src/agent/hosted-ag-ui-chat-request.ts +0 -197
  831. package/src/src/agent/hosted-agent-project-steering.ts +0 -129
  832. package/src/src/agent/hosted-agent-run-lifecycle.ts +0 -161
  833. package/src/src/agent/hosted-chat-execution-runtime.ts +0 -703
  834. package/src/src/agent/hosted-chat-preparation.ts +0 -357
  835. package/src/src/agent/hosted-chat-request-parser.ts +0 -209
  836. package/src/src/agent/hosted-chat-request.ts +0 -112
  837. package/src/src/agent/hosted-chat-runtime-agent-adapter.ts +0 -88
  838. package/src/src/agent/hosted-chat-runtime-contract.ts +0 -101
  839. package/src/src/agent/hosted-chat-runtime-tool-assembly.ts +0 -183
  840. package/src/src/agent/hosted-child-artifact-support.ts +0 -201
  841. package/src/src/agent/hosted-child-bootstrap.ts +0 -75
  842. package/src/src/agent/hosted-child-execution-logging.ts +0 -114
  843. package/src/src/agent/hosted-child-fork-execution-runner.ts +0 -393
  844. package/src/src/agent/hosted-child-fork-run-context.ts +0 -312
  845. package/src/src/agent/hosted-child-fork-runtime-start.ts +0 -84
  846. package/src/src/agent/hosted-child-fork-step-message-preparation.ts +0 -96
  847. package/src/src/agent/hosted-child-fork-stream-execution.ts +0 -626
  848. package/src/src/agent/hosted-child-fork-tool-sources.ts +0 -223
  849. package/src/src/agent/hosted-child-invoke-tool.ts +0 -90
  850. package/src/src/agent/hosted-child-lifecycle.ts +0 -352
  851. package/src/src/agent/hosted-child-mirror.ts +0 -272
  852. package/src/src/agent/hosted-child-pending-tool-lifecycle.ts +0 -191
  853. package/src/src/agent/hosted-child-requested-tools.ts +0 -411
  854. package/src/src/agent/hosted-child-status.ts +0 -167
  855. package/src/src/agent/hosted-child-steering-tools.ts +0 -92
  856. package/src/src/agent/hosted-child-stream-watchdog.ts +0 -146
  857. package/src/src/agent/hosted-child-tool-input.ts +0 -91
  858. package/src/src/agent/hosted-durable-chat-run-start.ts +0 -246
  859. package/src/src/agent/hosted-durable-child-fork-execution.ts +0 -597
  860. package/src/src/agent/hosted-finalized-message.ts +0 -170
  861. package/src/src/agent/hosted-form-input-tool.ts +0 -128
  862. package/src/src/agent/hosted-project-remote-tool-source.ts +0 -262
  863. package/src/src/agent/hosted-project-steering-adapter.ts +0 -184
  864. package/src/src/agent/hosted-response-stream.ts +0 -87
  865. package/src/src/agent/hosted-runtime-request-config.ts +0 -112
  866. package/src/src/agent/hosted-runtime-state-resolver.ts +0 -133
  867. package/src/src/agent/hosted-stream-finalization.ts +0 -188
  868. package/src/src/agent/hosted-stream-terminal-error.ts +0 -81
  869. package/src/src/agent/node-agent-service-runtime-infrastructure.ts +0 -71
  870. package/src/src/agent/runtime-ag-ui-contract.ts +0 -216
  871. package/src/src/agent/runtime-agent-definition-files.ts +0 -128
  872. package/src/src/agent/runtime-agent-definition.ts +0 -163
  873. package/src/src/agent/runtime-agent-invocation-contract.ts +0 -355
  874. package/src/src/agent/runtime-agent-markdown-adapter.ts +0 -31
  875. package/src/src/agent/runtime-builtin-skill-files.ts +0 -122
  876. package/src/src/agent/runtime-client-profile.ts +0 -123
  877. package/src/src/agent/runtime-load-skill-tool.ts +0 -239
  878. package/src/src/agent/runtime-message-file-url-refresh.ts +0 -120
  879. package/src/src/agent/runtime-message-preparation.ts +0 -58
  880. package/src/src/agent/runtime-project-files-client.ts +0 -256
  881. package/src/src/agent/runtime-project-skill-catalog.ts +0 -238
  882. package/src/src/agent/runtime-project-skill-loader.ts +0 -217
  883. package/src/src/agent/runtime-skill-metadata.ts +0 -260
  884. package/src/src/agent/runtime-skill-prompt.ts +0 -61
  885. package/src/src/agent/runtime-tool-inventory.ts +0 -46
  886. package/src/src/agent/runtime-upload-url-client.ts +0 -95
  887. /package/esm/src/agent/{ag-ui-browser-response-stream.js → ag-ui/browser-response-stream.js} +0 -0
  888. /package/esm/src/agent/{ag-ui-runtime-support.js → ag-ui/runtime-support.js} +0 -0
  889. /package/esm/src/agent/{child-run-execution-cleanup.js → child-run/execution-cleanup.js} +0 -0
  890. /package/esm/src/agent/{child-run-execution-snapshot.js → child-run/execution-snapshot.js} +0 -0
  891. /package/esm/src/agent/{child-run-execution-support.js → child-run/execution-support.js} +0 -0
  892. /package/esm/src/agent/{child-run-final-step-support.js → child-run/final-step-support.js} +0 -0
  893. /package/esm/src/agent/{child-run-result-summary.js → child-run/result-summary.js} +0 -0
  894. /package/esm/src/agent/{conversation-run-context.js → conversation/run-context.js} +0 -0
  895. /package/esm/src/agent/{conversation-run-event-normalization.js → conversation/run-event-normalization.js} +0 -0
  896. /package/esm/src/agent/{hosted-chat-runtime-contract.js → hosted/chat-runtime-contract.js} +0 -0
  897. /package/esm/src/agent/{hosted-child-fork-instructions.js → hosted/child-fork-instructions.js} +0 -0
  898. /package/esm/src/agent/{hosted-child-mirror.js → hosted/child-mirror.js} +0 -0
  899. /package/esm/src/agent/{hosted-lifecycle.js → hosted/lifecycle.js} +0 -0
  900. /package/esm/src/agent/{hosted-stream-finalization.js → hosted/stream-finalization.js} +0 -0
  901. /package/esm/src/agent/{runtime-message-file-url-refresh.js → runtime/message-file-url-refresh.js} +0 -0
  902. /package/esm/src/agent/{runtime-prompt-block.js → runtime/prompt-block.js} +0 -0
  903. /package/esm/src/agent/{runtime-tool-inventory.js → runtime/tool-inventory.js} +0 -0
  904. /package/esm/src/agent/{agent-service-auth.js → service/auth.js} +0 -0
  905. /package/esm/src/agent/{agent-service-config.js → service/config.js} +0 -0
  906. /package/esm/src/agent/{agent-service.js → service/definition.js} +0 -0
  907. /package/esm/src/agent/{node-agent-service-telemetry.js → service/node-telemetry.js} +0 -0
  908. /package/src/src/agent/{child-run-execution-cleanup.ts → child-run/execution-cleanup.ts} +0 -0
  909. /package/src/src/agent/{child-run-execution-snapshot.ts → child-run/execution-snapshot.ts} +0 -0
  910. /package/src/src/agent/{child-run-execution-support.ts → child-run/execution-support.ts} +0 -0
  911. /package/src/src/agent/{child-run-final-step-support.ts → child-run/final-step-support.ts} +0 -0
  912. /package/src/src/agent/{child-run-result-summary.ts → child-run/result-summary.ts} +0 -0
  913. /package/src/src/agent/{conversation-run-event-normalization.ts → conversation/run-event-normalization.ts} +0 -0
  914. /package/src/src/agent/{hosted-child-fork-instructions.ts → hosted/child-fork-instructions.ts} +0 -0
  915. /package/src/src/agent/{hosted-lifecycle.ts → hosted/lifecycle.ts} +0 -0
  916. /package/src/src/agent/{runtime-prompt-block.ts → runtime/prompt-block.ts} +0 -0
  917. /package/src/src/agent/{agent-service-auth.ts → service/auth.ts} +0 -0
  918. /package/src/src/agent/{agent-service-config.ts → service/config.ts} +0 -0
  919. /package/src/src/agent/{node-agent-service-telemetry.ts → service/node-telemetry.ts} +0 -0
@@ -0,0 +1,510 @@
1
+ import { isResponseLike } from "../response-like.js";
2
+ import {
3
+ AgentRuntime,
4
+ RunAlreadyExistsError,
5
+ type RunResumeSessionManager,
6
+ } from "../runtime/index.js";
7
+ import type { Agent } from "../types.js";
8
+ import {
9
+ type AgUiRuntimeRequest,
10
+ parseAgUiRuntimeRequestOrError,
11
+ } from "../runtime/ag-ui-contract.js";
12
+ import { extractRequest } from "./request-shared.js";
13
+ import { type AgUiResumeValue, buildMergedAgUiTools } from "./tool-shared.js";
14
+ import { normalizeAgUiRuntimeMessages } from "./runtime-support.js";
15
+ import {
16
+ createStreamTransformState,
17
+ finalizeRunEvents,
18
+ formatAgUiEvent,
19
+ mapRuntimeEventToAgUi,
20
+ } from "../../internal-agents/ag-ui-sse.js";
21
+ import { streamDataStreamEvents } from "../data-stream.js";
22
+
23
+ const AG_UI_HEADERS: Record<string, string> = {
24
+ "Content-Type": "text/event-stream",
25
+ "Cache-Control": "no-cache",
26
+ Connection: "keep-alive",
27
+ };
28
+
29
+ type AgUiRuntimePart = Record<string, unknown> & { type: string };
30
+
31
+ export interface AgUiRuntimeLifecycleContext {
32
+ request: AgUiRuntimeRequest;
33
+ toolCallId?: string;
34
+ error?: unknown;
35
+ }
36
+
37
+ function invokeLifecycleCallback(
38
+ callback: ((context: AgUiRuntimeLifecycleContext) => Promise<void> | void) | undefined,
39
+ context: AgUiRuntimeLifecycleContext,
40
+ ): void {
41
+ if (!callback) return;
42
+
43
+ try {
44
+ const result = callback(context);
45
+ void Promise.resolve(result).catch(() => undefined);
46
+ } catch {
47
+ return;
48
+ }
49
+ }
50
+
51
+ async function invokeLifecycleCallbackAndWait(
52
+ callback: ((context: AgUiRuntimeLifecycleContext) => Promise<void> | void) | undefined,
53
+ context: AgUiRuntimeLifecycleContext,
54
+ ): Promise<void> {
55
+ if (!callback) return;
56
+
57
+ try {
58
+ await callback(context);
59
+ } catch {
60
+ return;
61
+ }
62
+ }
63
+
64
+ function isRecord(value: unknown): value is Record<string, unknown> {
65
+ return typeof value === "object" && value !== null && !Array.isArray(value);
66
+ }
67
+
68
+ function buildStreamContext(
69
+ request: AgUiRuntimeRequest,
70
+ baseContext: Record<string, unknown>,
71
+ ): Record<string, unknown> {
72
+ return {
73
+ ...baseContext,
74
+ threadId: request.threadId,
75
+ runId: request.runId,
76
+ agUi: {
77
+ context: request.context,
78
+ forwardedProps: request.forwardedProps,
79
+ },
80
+ };
81
+ }
82
+
83
+ function closeController(controller: ReadableStreamDefaultController<Uint8Array>): void {
84
+ try {
85
+ controller.close();
86
+ } catch {
87
+ return;
88
+ }
89
+ }
90
+
91
+ function enqueueEvent(
92
+ controller: ReadableStreamDefaultController<Uint8Array>,
93
+ event: string,
94
+ payload: Record<string, unknown>,
95
+ ): boolean {
96
+ try {
97
+ controller.enqueue(formatAgUiEvent(event, payload));
98
+ return true;
99
+ } catch {
100
+ return false;
101
+ }
102
+ }
103
+
104
+ async function createAgUiRuntimeStreamResponse(
105
+ options: {
106
+ agentId: string;
107
+ request: AgUiRuntimeRequest;
108
+ upstreamBody: ReadableStream<Uint8Array> | null;
109
+ upstreamStatus: number;
110
+ upstreamStatusText?: string;
111
+ onFinish?: () => void;
112
+ onError?: (error: unknown) => void;
113
+ onToolCallSeen?: (toolCallId: string) => void;
114
+ },
115
+ ): Promise<Response> {
116
+ const {
117
+ agentId,
118
+ request,
119
+ upstreamBody,
120
+ upstreamStatus,
121
+ upstreamStatusText,
122
+ onFinish,
123
+ onError,
124
+ onToolCallSeen,
125
+ } = options;
126
+
127
+ const stream = new ReadableStream<Uint8Array>({
128
+ start: async (controller) => {
129
+ const state = createStreamTransformState();
130
+ const prepareToolResultIfNeeded = (event: string, payload: Record<string, unknown>) => {
131
+ if (
132
+ event !== "ToolCallStart" && event !== "ToolCallArgs" &&
133
+ event !== "ToolCallEnd"
134
+ ) {
135
+ return;
136
+ }
137
+
138
+ const toolCallId = typeof payload.toolCallId === "string" ? payload.toolCallId : null;
139
+ if (toolCallId) {
140
+ onToolCallSeen?.(toolCallId);
141
+ }
142
+ };
143
+
144
+ if (
145
+ !enqueueEvent(controller, "RunStarted", {
146
+ runId: request.runId,
147
+ threadId: request.threadId,
148
+ agentId,
149
+ })
150
+ ) {
151
+ return;
152
+ }
153
+ if (
154
+ !enqueueEvent(controller, "StateSnapshot", {
155
+ snapshot: isRecord(request.state) ? request.state : {},
156
+ })
157
+ ) {
158
+ return;
159
+ }
160
+ if (
161
+ !enqueueEvent(controller, "MessagesSnapshot", {
162
+ messages: normalizeAgUiRuntimeMessages(request.messages),
163
+ })
164
+ ) {
165
+ return;
166
+ }
167
+
168
+ try {
169
+ if (!upstreamBody) {
170
+ for (const event of finalizeRunEvents(state, null)) {
171
+ if (!enqueueEvent(controller, event.event, event.payload)) {
172
+ return;
173
+ }
174
+ }
175
+ onFinish?.();
176
+ closeController(controller);
177
+ return;
178
+ }
179
+
180
+ for await (
181
+ const event of streamDataStreamEvents(upstreamBody) as AsyncIterable<AgUiRuntimePart>
182
+ ) {
183
+ for (const mapped of mapRuntimeEventToAgUi(state, event)) {
184
+ prepareToolResultIfNeeded(mapped.event, mapped.payload);
185
+ if (!enqueueEvent(controller, mapped.event, mapped.payload)) {
186
+ return;
187
+ }
188
+ }
189
+ }
190
+
191
+ for (const event of finalizeRunEvents(state, null)) {
192
+ if (!enqueueEvent(controller, event.event, event.payload)) {
193
+ return;
194
+ }
195
+ }
196
+ onFinish?.();
197
+ } catch (error) {
198
+ onError?.(error);
199
+ enqueueEvent(controller, "RunError", {
200
+ message: error instanceof Error ? error.message : "Agent run failed",
201
+ });
202
+ } finally {
203
+ closeController(controller);
204
+ }
205
+ },
206
+ });
207
+
208
+ return new Response(stream, {
209
+ status: upstreamStatus,
210
+ statusText: upstreamStatusText,
211
+ headers: { ...AG_UI_HEADERS },
212
+ });
213
+ }
214
+
215
+ async function createAgUiRuntimeDirectStreamResponse(
216
+ agent: Agent,
217
+ request: AgUiRuntimeRequest,
218
+ baseContext: Record<string, unknown>,
219
+ lifecycle?: {
220
+ onFinish?: () => Promise<void> | void;
221
+ onError?: (error: unknown) => Promise<void> | void;
222
+ onToolCallSeen?: (toolCallId: string) => Promise<void> | void;
223
+ },
224
+ ): Promise<Response> {
225
+ await agent.clearMemory();
226
+
227
+ const result = await agent.stream({
228
+ messages: normalizeAgUiRuntimeMessages(request.messages),
229
+ context: buildStreamContext(request, baseContext),
230
+ });
231
+
232
+ const upstream = result.toDataStreamResponse();
233
+ return await createAgUiRuntimeStreamResponse({
234
+ agentId: agent.id,
235
+ request,
236
+ upstreamBody: upstream.body,
237
+ upstreamStatus: upstream.status,
238
+ upstreamStatusText: upstream.statusText,
239
+ onFinish: lifecycle?.onFinish,
240
+ onError: lifecycle?.onError,
241
+ onToolCallSeen: lifecycle?.onToolCallSeen,
242
+ });
243
+ }
244
+
245
+ function buildMergedTools(
246
+ agent: Agent,
247
+ request: AgUiRuntimeRequest,
248
+ sessionManager: RunResumeSessionManager<AgUiResumeValue>,
249
+ ): Agent["config"]["tools"] {
250
+ return buildMergedAgUiTools(agent, request.runId, request.tools, sessionManager);
251
+ }
252
+
253
+ async function createAgUiRuntimeInjectedToolsStreamResponse(
254
+ agent: Agent,
255
+ request: AgUiRuntimeRequest,
256
+ baseContext: Record<string, unknown>,
257
+ sessionManager: RunResumeSessionManager<AgUiResumeValue>,
258
+ lifecycle?: {
259
+ onFinish?: () => Promise<void> | void;
260
+ onError?: (error: unknown) => Promise<void> | void;
261
+ onToolCallSeen?: (toolCallId: string) => Promise<void> | void;
262
+ },
263
+ ): Promise<Response> {
264
+ try {
265
+ sessionManager.startRun({ runId: request.runId, threadId: request.threadId });
266
+ } catch (error) {
267
+ if (error instanceof RunAlreadyExistsError) {
268
+ return Response.json({ error: "Run already active" }, { status: 409 });
269
+ }
270
+ throw error;
271
+ }
272
+
273
+ const runtime = new AgentRuntime(agent.id, {
274
+ ...agent.config,
275
+ tools: buildMergedTools(agent, request, sessionManager),
276
+ });
277
+
278
+ let upstreamBody: ReadableStream<Uint8Array>;
279
+ try {
280
+ upstreamBody = await runtime.stream(
281
+ normalizeAgUiRuntimeMessages(request.messages),
282
+ buildStreamContext(request, baseContext),
283
+ undefined,
284
+ undefined,
285
+ undefined,
286
+ );
287
+ } catch (error) {
288
+ sessionManager.failRun(request.runId);
289
+ throw error;
290
+ }
291
+
292
+ return await createAgUiRuntimeStreamResponse({
293
+ agentId: agent.id,
294
+ request,
295
+ upstreamBody,
296
+ upstreamStatus: 200,
297
+ onFinish: () => {
298
+ sessionManager.completeRun(request.runId);
299
+ void lifecycle?.onFinish?.();
300
+ },
301
+ onError: (error) => {
302
+ sessionManager.failRun(request.runId);
303
+ void lifecycle?.onError?.(error);
304
+ },
305
+ onToolCallSeen: (toolCallId) => {
306
+ sessionManager.prepareForSignal(request.runId, toolCallId);
307
+ void lifecycle?.onToolCallSeen?.(toolCallId);
308
+ },
309
+ });
310
+ }
311
+
312
+ export interface AgUiRuntimeHandlerExecuteInput {
313
+ request: Request;
314
+ agUiInput: AgUiRuntimeRequest;
315
+ context: Record<string, unknown>;
316
+ createDefaultResponse?: () => Promise<Response>;
317
+ }
318
+
319
+ export type AgUiRuntimeHandlerExecute = (
320
+ input: AgUiRuntimeHandlerExecuteInput,
321
+ ) => Promise<Response> | Response;
322
+
323
+ export interface AgUiRuntimeRequestGateInput {
324
+ request: Request;
325
+ }
326
+
327
+ export type AgUiRuntimeRequestGate = (
328
+ input: AgUiRuntimeRequestGateInput,
329
+ ) => Promise<Response | undefined | void> | Response | undefined | void;
330
+
331
+ export interface AgUiRuntimeValidationErrorInput {
332
+ request: Request;
333
+ response: Response;
334
+ }
335
+
336
+ export type AgUiRuntimeValidationErrorResponse = (
337
+ input: AgUiRuntimeValidationErrorInput,
338
+ ) => Promise<Response> | Response;
339
+
340
+ export interface AgUiRuntimeHandlerOptions {
341
+ context?:
342
+ | Record<string, unknown>
343
+ | ((request: Request) => Record<string, unknown> | Promise<Record<string, unknown>>);
344
+ beforeParse?: AgUiRuntimeRequestGate;
345
+ validationErrorResponse?: AgUiRuntimeValidationErrorResponse;
346
+ sessionManager?: RunResumeSessionManager<AgUiResumeValue>;
347
+ execute?: AgUiRuntimeHandlerExecute;
348
+ onToolCallSeen?: (context: AgUiRuntimeLifecycleContext) => Promise<void> | void;
349
+ onFinish?: (context: AgUiRuntimeLifecycleContext) => Promise<void> | void;
350
+ onError?: (context: AgUiRuntimeLifecycleContext) => Promise<void> | void;
351
+ }
352
+
353
+ export interface AgUiRuntimeHandlerConfigWithAgent extends AgUiRuntimeHandlerOptions {
354
+ agent: Agent;
355
+ }
356
+
357
+ export type AgUiRuntimeHandlerConfig =
358
+ | AgUiRuntimeHandlerConfigWithAgent
359
+ | (AgUiRuntimeHandlerOptions & { agent?: undefined; execute: AgUiRuntimeHandlerExecute });
360
+
361
+ export function createAgUiRuntimeHandler(
362
+ config: AgUiRuntimeHandlerConfig,
363
+ ): (requestOrCtx: unknown) => Promise<Response> {
364
+ if (!config.agent && !config.execute) {
365
+ throw new Error(
366
+ "createAgUiRuntimeHandler requires either an agent or an execute handler.",
367
+ );
368
+ }
369
+
370
+ return async function POST(requestOrCtx: unknown): Promise<Response> {
371
+ const request = extractRequest(requestOrCtx);
372
+
373
+ try {
374
+ const gateResult = await config.beforeParse?.({ request });
375
+ if (isResponseLike(gateResult)) {
376
+ return gateResult;
377
+ }
378
+
379
+ const parsed = await parseAgUiRuntimeRequestOrError(request);
380
+ if (isResponseLike(parsed)) {
381
+ if (config.validationErrorResponse) {
382
+ return await config.validationErrorResponse({ request, response: parsed });
383
+ }
384
+
385
+ return parsed;
386
+ }
387
+
388
+ const context = typeof config.context === "function"
389
+ ? await config.context(request)
390
+ : config.context ?? {};
391
+
392
+ const createDefaultResponse = config.agent
393
+ ? () =>
394
+ parsed.tools.length > 0
395
+ ? config.sessionManager
396
+ ? createAgUiRuntimeInjectedToolsStreamResponse(
397
+ config.agent,
398
+ parsed,
399
+ context,
400
+ config.sessionManager,
401
+ )
402
+ : Promise.resolve(
403
+ Response.json(
404
+ {
405
+ error:
406
+ "Injected AG-UI tools require a public RunResumeSessionManager on createAgUiRuntimeHandler().",
407
+ },
408
+ { status: 501 },
409
+ ),
410
+ )
411
+ : createAgUiRuntimeDirectStreamResponse(config.agent, parsed, context)
412
+ : undefined;
413
+
414
+ const invokeLifecycle = (
415
+ type: "onFinish" | "onError" | "onToolCallSeen",
416
+ extra: Partial<AgUiRuntimeLifecycleContext> = {},
417
+ ): void => {
418
+ invokeLifecycleCallback(config[type], {
419
+ request: parsed,
420
+ ...extra,
421
+ });
422
+ };
423
+
424
+ const createDefaultResponseWithLifecycle = createDefaultResponse
425
+ ? async () => {
426
+ try {
427
+ if (!config.agent) {
428
+ return await createDefaultResponse();
429
+ }
430
+
431
+ if (parsed.tools.length > 0) {
432
+ if (!config.sessionManager) {
433
+ return await createDefaultResponse();
434
+ }
435
+
436
+ return await createAgUiRuntimeInjectedToolsStreamResponse(
437
+ config.agent,
438
+ parsed,
439
+ context,
440
+ config.sessionManager,
441
+ {
442
+ onFinish: () => invokeLifecycle("onFinish"),
443
+ onError: (error) => invokeLifecycle("onError", { error }),
444
+ onToolCallSeen: (toolCallId) => invokeLifecycle("onToolCallSeen", { toolCallId }),
445
+ },
446
+ );
447
+ }
448
+
449
+ return await createAgUiRuntimeDirectStreamResponse(
450
+ config.agent,
451
+ parsed,
452
+ context,
453
+ {
454
+ onFinish: () => invokeLifecycle("onFinish"),
455
+ onError: (error) => invokeLifecycle("onError", { error }),
456
+ onToolCallSeen: (toolCallId) => invokeLifecycle("onToolCallSeen", { toolCallId }),
457
+ },
458
+ );
459
+ } catch (error) {
460
+ await invokeLifecycleCallbackAndWait(config.onError, {
461
+ request: parsed,
462
+ error,
463
+ });
464
+ throw error;
465
+ }
466
+ }
467
+ : undefined;
468
+
469
+ if (config.execute) {
470
+ return await config.execute({
471
+ request,
472
+ agUiInput: parsed,
473
+ context,
474
+ createDefaultResponse: createDefaultResponseWithLifecycle,
475
+ });
476
+ }
477
+
478
+ if (createDefaultResponseWithLifecycle) {
479
+ return await createDefaultResponseWithLifecycle();
480
+ }
481
+
482
+ throw new Error("createAgUiRuntimeHandler configuration became invalid during execution.");
483
+ } catch (error) {
484
+ if (
485
+ error instanceof Error &&
486
+ "issues" in error &&
487
+ Array.isArray((error as Record<string, unknown>).issues)
488
+ ) {
489
+ const issues = (error as { issues: Array<{ path: unknown[]; message: string }> }).issues;
490
+ return Response.json(
491
+ {
492
+ error: "Invalid AG-UI runtime request",
493
+ details: issues.map((issue) => ({
494
+ path: issue.path,
495
+ message: issue.message,
496
+ })),
497
+ },
498
+ { status: 400 },
499
+ );
500
+ }
501
+
502
+ return Response.json(
503
+ {
504
+ error: error instanceof Error ? error.message : "Internal server error",
505
+ },
506
+ { status: 500 },
507
+ );
508
+ }
509
+ };
510
+ }
@@ -0,0 +1,64 @@
1
+ import type { Message } from "../types.js";
2
+ import type { AgUiRuntimeRequest } from "../runtime/ag-ui-contract.js";
3
+
4
+ function isRecord(value: unknown): value is Record<string, unknown> {
5
+ return typeof value === "object" && value !== null && !Array.isArray(value);
6
+ }
7
+
8
+ function parseToolArguments(serializedArguments: string): Record<string, unknown> {
9
+ try {
10
+ const parsed = JSON.parse(serializedArguments);
11
+ return isRecord(parsed) ? parsed : {};
12
+ } catch {
13
+ return {};
14
+ }
15
+ }
16
+
17
+ export function normalizeAgUiRuntimeMessages(
18
+ messages: AgUiRuntimeRequest["messages"],
19
+ ): Message[] {
20
+ return messages.map((message) => {
21
+ const parts: Message["parts"] = [];
22
+
23
+ switch (message.role) {
24
+ case "system":
25
+ case "user":
26
+ parts.push({ type: "text", text: message.content });
27
+ break;
28
+ case "assistant":
29
+ if (typeof message.content === "string" && message.content.length > 0) {
30
+ parts.push({ type: "text", text: message.content });
31
+ }
32
+ for (const toolCall of message.toolCalls ?? []) {
33
+ parts.push({
34
+ type: "tool-call",
35
+ toolCallId: toolCall.id,
36
+ toolName: toolCall.function.name,
37
+ args: parseToolArguments(toolCall.function.arguments),
38
+ });
39
+ }
40
+ break;
41
+ case "tool":
42
+ parts.push({
43
+ type: "tool-result",
44
+ toolCallId: message.toolCallId,
45
+ toolName: "unknown",
46
+ result: message.error
47
+ ? {
48
+ content: message.content,
49
+ error: message.error,
50
+ }
51
+ : message.content,
52
+ });
53
+ break;
54
+ }
55
+
56
+ return {
57
+ id: message.id,
58
+ role: message.role,
59
+ parts,
60
+ ...(message.createdAt ? { timestamp: Date.parse(message.createdAt) || undefined } : {}),
61
+ ...(message.metadata ? { metadata: message.metadata } : {}),
62
+ };
63
+ });
64
+ }