experimental-ash 0.1.0-alpha.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 (764) hide show
  1. package/bin/ash.d.ts +59 -0
  2. package/bin/ash.js +124 -0
  3. package/dist/src/cli/commands/info.d.ts +9 -0
  4. package/dist/src/cli/commands/info.d.ts.map +1 -0
  5. package/dist/src/cli/commands/info.js +200 -0
  6. package/dist/src/cli/commands/info.js.map +1 -0
  7. package/dist/src/cli/dev/environment.d.ts +11 -0
  8. package/dist/src/cli/dev/environment.d.ts.map +1 -0
  9. package/dist/src/cli/dev/environment.js +31 -0
  10. package/dist/src/cli/dev/environment.js.map +1 -0
  11. package/dist/src/cli/dev/input.d.ts +20 -0
  12. package/dist/src/cli/dev/input.d.ts.map +1 -0
  13. package/dist/src/cli/dev/input.js +31 -0
  14. package/dist/src/cli/dev/input.js.map +1 -0
  15. package/dist/src/cli/dev/live-stream.d.ts +2 -0
  16. package/dist/src/cli/dev/live-stream.d.ts.map +1 -0
  17. package/dist/src/cli/dev/live-stream.js +2 -0
  18. package/dist/src/cli/dev/live-stream.js.map +1 -0
  19. package/dist/src/cli/dev/repl.d.ts +8 -0
  20. package/dist/src/cli/dev/repl.d.ts.map +1 -0
  21. package/dist/src/cli/dev/repl.js +327 -0
  22. package/dist/src/cli/dev/repl.js.map +1 -0
  23. package/dist/src/cli/dev/request-headers.d.ts +2 -0
  24. package/dist/src/cli/dev/request-headers.d.ts.map +1 -0
  25. package/dist/src/cli/dev/request-headers.js +2 -0
  26. package/dist/src/cli/dev/request-headers.js.map +1 -0
  27. package/dist/src/cli/dev/send-message.d.ts +2 -0
  28. package/dist/src/cli/dev/send-message.d.ts.map +1 -0
  29. package/dist/src/cli/dev/send-message.js +2 -0
  30. package/dist/src/cli/dev/send-message.js.map +1 -0
  31. package/dist/src/cli/dev/session.d.ts +2 -0
  32. package/dist/src/cli/dev/session.d.ts.map +1 -0
  33. package/dist/src/cli/dev/session.js +2 -0
  34. package/dist/src/cli/dev/session.js.map +1 -0
  35. package/dist/src/cli/dev/stream.d.ts +2 -0
  36. package/dist/src/cli/dev/stream.d.ts.map +1 -0
  37. package/dist/src/cli/dev/stream.js +2 -0
  38. package/dist/src/cli/dev/stream.js.map +1 -0
  39. package/dist/src/cli/dev/terminal.d.ts +20 -0
  40. package/dist/src/cli/dev/terminal.d.ts.map +1 -0
  41. package/dist/src/cli/dev/terminal.js +114 -0
  42. package/dist/src/cli/dev/terminal.js.map +1 -0
  43. package/dist/src/cli/dev/url.d.ts +6 -0
  44. package/dist/src/cli/dev/url.d.ts.map +1 -0
  45. package/dist/src/cli/dev/url.js +28 -0
  46. package/dist/src/cli/dev/url.js.map +1 -0
  47. package/dist/src/cli/run.d.ts +16 -0
  48. package/dist/src/cli/run.d.ts.map +1 -0
  49. package/dist/src/cli/run.js +209 -0
  50. package/dist/src/cli/run.js.map +1 -0
  51. package/dist/src/cli/ui/output.d.ts +62 -0
  52. package/dist/src/cli/ui/output.d.ts.map +1 -0
  53. package/dist/src/cli/ui/output.js +84 -0
  54. package/dist/src/cli/ui/output.js.map +1 -0
  55. package/dist/src/compiler/artifacts.d.ts +124 -0
  56. package/dist/src/compiler/artifacts.d.ts.map +1 -0
  57. package/dist/src/compiler/artifacts.js +180 -0
  58. package/dist/src/compiler/artifacts.js.map +1 -0
  59. package/dist/src/compiler/compile-agent.d.ts +40 -0
  60. package/dist/src/compiler/compile-agent.d.ts.map +1 -0
  61. package/dist/src/compiler/compile-agent.js +47 -0
  62. package/dist/src/compiler/compile-agent.js.map +1 -0
  63. package/dist/src/compiler/context.d.ts +85 -0
  64. package/dist/src/compiler/context.d.ts.map +1 -0
  65. package/dist/src/compiler/context.js +128 -0
  66. package/dist/src/compiler/context.js.map +1 -0
  67. package/dist/src/compiler/json-schema.d.ts +2 -0
  68. package/dist/src/compiler/json-schema.d.ts.map +1 -0
  69. package/dist/src/compiler/json-schema.js +2 -0
  70. package/dist/src/compiler/json-schema.js.map +1 -0
  71. package/dist/src/compiler/manifest.d.ts +196 -0
  72. package/dist/src/compiler/manifest.d.ts.map +1 -0
  73. package/dist/src/compiler/manifest.js +246 -0
  74. package/dist/src/compiler/manifest.js.map +1 -0
  75. package/dist/src/compiler/module-map.d.ts +37 -0
  76. package/dist/src/compiler/module-map.d.ts.map +1 -0
  77. package/dist/src/compiler/module-map.js +148 -0
  78. package/dist/src/compiler/module-map.js.map +1 -0
  79. package/dist/src/compiler/normalize-manifest.d.ts +20 -0
  80. package/dist/src/compiler/normalize-manifest.d.ts.map +1 -0
  81. package/dist/src/compiler/normalize-manifest.js +315 -0
  82. package/dist/src/compiler/normalize-manifest.js.map +1 -0
  83. package/dist/src/compiler/resource-files.d.ts +20 -0
  84. package/dist/src/compiler/resource-files.d.ts.map +1 -0
  85. package/dist/src/compiler/resource-files.js +29 -0
  86. package/dist/src/compiler/resource-files.js.map +1 -0
  87. package/dist/src/compiler/workspace.d.ts +58 -0
  88. package/dist/src/compiler/workspace.d.ts.map +1 -0
  89. package/dist/src/compiler/workspace.js +70 -0
  90. package/dist/src/compiler/workspace.js.map +1 -0
  91. package/dist/src/discover/context.d.ts +35 -0
  92. package/dist/src/discover/context.d.ts.map +1 -0
  93. package/dist/src/discover/context.js +88 -0
  94. package/dist/src/discover/context.js.map +1 -0
  95. package/dist/src/discover/diagnostics.d.ts +74 -0
  96. package/dist/src/discover/diagnostics.d.ts.map +1 -0
  97. package/dist/src/discover/diagnostics.js +98 -0
  98. package/dist/src/discover/diagnostics.js.map +1 -0
  99. package/dist/src/discover/discover-agent.d.ts +29 -0
  100. package/dist/src/discover/discover-agent.d.ts.map +1 -0
  101. package/dist/src/discover/discover-agent.js +175 -0
  102. package/dist/src/discover/discover-agent.js.map +1 -0
  103. package/dist/src/discover/discover-subagent.d.ts +31 -0
  104. package/dist/src/discover/discover-subagent.d.ts.map +1 -0
  105. package/dist/src/discover/discover-subagent.js +175 -0
  106. package/dist/src/discover/discover-subagent.js.map +1 -0
  107. package/dist/src/discover/discover-worker.d.ts +31 -0
  108. package/dist/src/discover/discover-worker.d.ts.map +1 -0
  109. package/dist/src/discover/discover-worker.js +376 -0
  110. package/dist/src/discover/discover-worker.js.map +1 -0
  111. package/dist/src/discover/filesystem.d.ts +108 -0
  112. package/dist/src/discover/filesystem.d.ts.map +1 -0
  113. package/dist/src/discover/filesystem.js +270 -0
  114. package/dist/src/discover/filesystem.js.map +1 -0
  115. package/dist/src/discover/grammar.d.ts +104 -0
  116. package/dist/src/discover/grammar.d.ts.map +1 -0
  117. package/dist/src/discover/grammar.js +261 -0
  118. package/dist/src/discover/grammar.js.map +1 -0
  119. package/dist/src/discover/lib.d.ts +35 -0
  120. package/dist/src/discover/lib.d.ts.map +1 -0
  121. package/dist/src/discover/lib.js +81 -0
  122. package/dist/src/discover/lib.js.map +1 -0
  123. package/dist/src/discover/manifest.d.ts +217 -0
  124. package/dist/src/discover/manifest.d.ts.map +1 -0
  125. package/dist/src/discover/manifest.js +155 -0
  126. package/dist/src/discover/manifest.js.map +1 -0
  127. package/dist/src/discover/markdown.d.ts +17 -0
  128. package/dist/src/discover/markdown.d.ts.map +1 -0
  129. package/dist/src/discover/markdown.js +19 -0
  130. package/dist/src/discover/markdown.js.map +1 -0
  131. package/dist/src/discover/project.d.ts +25 -0
  132. package/dist/src/discover/project.d.ts.map +1 -0
  133. package/dist/src/discover/project.js +115 -0
  134. package/dist/src/discover/project.js.map +1 -0
  135. package/dist/src/discover/resource-tree.d.ts +18 -0
  136. package/dist/src/discover/resource-tree.d.ts.map +1 -0
  137. package/dist/src/discover/resource-tree.js +43 -0
  138. package/dist/src/discover/resource-tree.js.map +1 -0
  139. package/dist/src/discover/skills.d.ts +32 -0
  140. package/dist/src/discover/skills.d.ts.map +1 -0
  141. package/dist/src/discover/skills.js +323 -0
  142. package/dist/src/discover/skills.js.map +1 -0
  143. package/dist/src/discover/slots.d.ts +30 -0
  144. package/dist/src/discover/slots.d.ts.map +1 -0
  145. package/dist/src/discover/slots.js +69 -0
  146. package/dist/src/discover/slots.js.map +1 -0
  147. package/dist/src/discover/workspace.d.ts +35 -0
  148. package/dist/src/discover/workspace.d.ts.map +1 -0
  149. package/dist/src/discover/workspace.js +61 -0
  150. package/dist/src/discover/workspace.js.map +1 -0
  151. package/dist/src/index.d.ts +2 -0
  152. package/dist/src/index.d.ts.map +1 -0
  153. package/dist/src/index.js +2 -0
  154. package/dist/src/index.js.map +1 -0
  155. package/dist/src/internal/application/compiled-artifacts.d.ts +23 -0
  156. package/dist/src/internal/application/compiled-artifacts.d.ts.map +1 -0
  157. package/dist/src/internal/application/compiled-artifacts.js +152 -0
  158. package/dist/src/internal/application/compiled-artifacts.js.map +1 -0
  159. package/dist/src/internal/application/package.d.ts +19 -0
  160. package/dist/src/internal/application/package.d.ts.map +1 -0
  161. package/dist/src/internal/application/package.js +110 -0
  162. package/dist/src/internal/application/package.js.map +1 -0
  163. package/dist/src/internal/application/paths.d.ts +33 -0
  164. package/dist/src/internal/application/paths.d.ts.map +1 -0
  165. package/dist/src/internal/application/paths.js +57 -0
  166. package/dist/src/internal/application/paths.js.map +1 -0
  167. package/dist/src/internal/authored-definition/core.d.ts +30 -0
  168. package/dist/src/internal/authored-definition/core.d.ts.map +1 -0
  169. package/dist/src/internal/authored-definition/core.js +105 -0
  170. package/dist/src/internal/authored-definition/core.js.map +1 -0
  171. package/dist/src/internal/authored-definition/sandbox.d.ts +10 -0
  172. package/dist/src/internal/authored-definition/sandbox.d.ts.map +1 -0
  173. package/dist/src/internal/authored-definition/sandbox.js +22 -0
  174. package/dist/src/internal/authored-definition/sandbox.js.map +1 -0
  175. package/dist/src/internal/authored-definition/schema-backed.d.ts +20 -0
  176. package/dist/src/internal/authored-definition/schema-backed.d.ts.map +1 -0
  177. package/dist/src/internal/authored-definition/schema-backed.js +41 -0
  178. package/dist/src/internal/authored-definition/schema-backed.js.map +1 -0
  179. package/dist/src/internal/authored-module.d.ts +42 -0
  180. package/dist/src/internal/authored-module.d.ts.map +1 -0
  181. package/dist/src/internal/authored-module.js +88 -0
  182. package/dist/src/internal/authored-module.js.map +1 -0
  183. package/dist/src/internal/json-schema.d.ts +6 -0
  184. package/dist/src/internal/json-schema.d.ts.map +1 -0
  185. package/dist/src/internal/json-schema.js +14 -0
  186. package/dist/src/internal/json-schema.js.map +1 -0
  187. package/dist/src/internal/logical-paths.d.ts +14 -0
  188. package/dist/src/internal/logical-paths.d.ts.map +1 -0
  189. package/dist/src/internal/logical-paths.js +26 -0
  190. package/dist/src/internal/logical-paths.js.map +1 -0
  191. package/dist/src/internal/message/builder.d.ts +28 -0
  192. package/dist/src/internal/message/builder.d.ts.map +1 -0
  193. package/dist/src/internal/message/builder.js +200 -0
  194. package/dist/src/internal/message/builder.js.map +1 -0
  195. package/dist/src/internal/message/handler.d.ts +9 -0
  196. package/dist/src/internal/message/handler.d.ts.map +1 -0
  197. package/dist/src/internal/message/handler.js +192 -0
  198. package/dist/src/internal/message/handler.js.map +1 -0
  199. package/dist/src/internal/message/health.d.ts +5 -0
  200. package/dist/src/internal/message/health.d.ts.map +1 -0
  201. package/dist/src/internal/message/health.js +13 -0
  202. package/dist/src/internal/message/health.js.map +1 -0
  203. package/dist/src/internal/message/nitro-route-shims.d.ts +6 -0
  204. package/dist/src/internal/message/nitro-route-shims.d.ts.map +1 -0
  205. package/dist/src/internal/message/nitro-route-shims.js +38 -0
  206. package/dist/src/internal/message/nitro-route-shims.js.map +1 -0
  207. package/dist/src/internal/message/reference.d.ts +24 -0
  208. package/dist/src/internal/message/reference.d.ts.map +1 -0
  209. package/dist/src/internal/message/reference.js +34 -0
  210. package/dist/src/internal/message/reference.js.map +1 -0
  211. package/dist/src/internal/message/rewrite-generated-imports.d.ts +15 -0
  212. package/dist/src/internal/message/rewrite-generated-imports.d.ts.map +1 -0
  213. package/dist/src/internal/message/rewrite-generated-imports.js +59 -0
  214. package/dist/src/internal/message/rewrite-generated-imports.js.map +1 -0
  215. package/dist/src/internal/message/routes.d.ts +2 -0
  216. package/dist/src/internal/message/routes.d.ts.map +1 -0
  217. package/dist/src/internal/message/routes.js +2 -0
  218. package/dist/src/internal/message/routes.js.map +1 -0
  219. package/dist/src/internal/message/vercel-workflow-output.d.ts +24 -0
  220. package/dist/src/internal/message/vercel-workflow-output.d.ts.map +1 -0
  221. package/dist/src/internal/message/vercel-workflow-output.js +82 -0
  222. package/dist/src/internal/message/vercel-workflow-output.js.map +1 -0
  223. package/dist/src/internal/message/workflow/action-step-types.d.ts +11 -0
  224. package/dist/src/internal/message/workflow/action-step-types.d.ts.map +1 -0
  225. package/dist/src/internal/message/workflow/action-step-types.js +2 -0
  226. package/dist/src/internal/message/workflow/action-step-types.js.map +1 -0
  227. package/dist/src/internal/message/workflow/action-steps.d.ts +28 -0
  228. package/dist/src/internal/message/workflow/action-steps.d.ts.map +1 -0
  229. package/dist/src/internal/message/workflow/action-steps.js +136 -0
  230. package/dist/src/internal/message/workflow/action-steps.js.map +1 -0
  231. package/dist/src/internal/message/workflow/handle-message.d.ts +14 -0
  232. package/dist/src/internal/message/workflow/handle-message.d.ts.map +1 -0
  233. package/dist/src/internal/message/workflow/handle-message.js +84 -0
  234. package/dist/src/internal/message/workflow/handle-message.js.map +1 -0
  235. package/dist/src/internal/message/workflow/handle-schedule.d.ts +23 -0
  236. package/dist/src/internal/message/workflow/handle-schedule.d.ts.map +1 -0
  237. package/dist/src/internal/message/workflow/handle-schedule.js +62 -0
  238. package/dist/src/internal/message/workflow/handle-schedule.js.map +1 -0
  239. package/dist/src/internal/message/workflow/handle-subagent.d.ts +7 -0
  240. package/dist/src/internal/message/workflow/handle-subagent.d.ts.map +1 -0
  241. package/dist/src/internal/message/workflow/handle-subagent.js +161 -0
  242. package/dist/src/internal/message/workflow/handle-subagent.js.map +1 -0
  243. package/dist/src/internal/message/workflow/session-callbacks.d.ts +11 -0
  244. package/dist/src/internal/message/workflow/session-callbacks.d.ts.map +1 -0
  245. package/dist/src/internal/message/workflow/session-callbacks.js +127 -0
  246. package/dist/src/internal/message/workflow/session-callbacks.js.map +1 -0
  247. package/dist/src/internal/message/workflow/session.d.ts +59 -0
  248. package/dist/src/internal/message/workflow/session.d.ts.map +1 -0
  249. package/dist/src/internal/message/workflow/session.js +40 -0
  250. package/dist/src/internal/message/workflow/session.js.map +1 -0
  251. package/dist/src/internal/message/workflow/step-diagnostics.d.ts +14 -0
  252. package/dist/src/internal/message/workflow/step-diagnostics.d.ts.map +1 -0
  253. package/dist/src/internal/message/workflow/step-diagnostics.js +79 -0
  254. package/dist/src/internal/message/workflow/step-diagnostics.js.map +1 -0
  255. package/dist/src/internal/message/workflow/steps.d.ts +7 -0
  256. package/dist/src/internal/message/workflow/steps.d.ts.map +1 -0
  257. package/dist/src/internal/message/workflow/steps.js +4 -0
  258. package/dist/src/internal/message/workflow/steps.js.map +1 -0
  259. package/dist/src/internal/message/workflow/stream-callbacks.d.ts +10 -0
  260. package/dist/src/internal/message/workflow/stream-callbacks.d.ts.map +1 -0
  261. package/dist/src/internal/message/workflow/stream-callbacks.js +58 -0
  262. package/dist/src/internal/message/workflow/stream-callbacks.js.map +1 -0
  263. package/dist/src/internal/message/workflow/stream-events.d.ts +97 -0
  264. package/dist/src/internal/message/workflow/stream-events.d.ts.map +1 -0
  265. package/dist/src/internal/message/workflow/stream-events.js +233 -0
  266. package/dist/src/internal/message/workflow/stream-events.js.map +1 -0
  267. package/dist/src/internal/message/workflow/stream.d.ts +2 -0
  268. package/dist/src/internal/message/workflow/stream.d.ts.map +1 -0
  269. package/dist/src/internal/message/workflow/stream.js +2 -0
  270. package/dist/src/internal/message/workflow/stream.js.map +1 -0
  271. package/dist/src/internal/message/workflow/subagent-steps.d.ts +43 -0
  272. package/dist/src/internal/message/workflow/subagent-steps.d.ts.map +1 -0
  273. package/dist/src/internal/message/workflow/subagent-steps.js +119 -0
  274. package/dist/src/internal/message/workflow/subagent-steps.js.map +1 -0
  275. package/dist/src/internal/message/workflow/subagent.d.ts +44 -0
  276. package/dist/src/internal/message/workflow/subagent.d.ts.map +1 -0
  277. package/dist/src/internal/message/workflow/subagent.js +2 -0
  278. package/dist/src/internal/message/workflow/subagent.js.map +1 -0
  279. package/dist/src/internal/message/workflow/turn-steps.d.ts +39 -0
  280. package/dist/src/internal/message/workflow/turn-steps.d.ts.map +1 -0
  281. package/dist/src/internal/message/workflow/turn-steps.js +134 -0
  282. package/dist/src/internal/message/workflow/turn-steps.js.map +1 -0
  283. package/dist/src/internal/message/workflow/workspace-merge.d.ts +9 -0
  284. package/dist/src/internal/message/workflow/workspace-merge.d.ts.map +1 -0
  285. package/dist/src/internal/message/workflow/workspace-merge.js +44 -0
  286. package/dist/src/internal/message/workflow/workspace-merge.js.map +1 -0
  287. package/dist/src/internal/message/workflow/workspace-step.d.ts +11 -0
  288. package/dist/src/internal/message/workflow/workspace-step.d.ts.map +1 -0
  289. package/dist/src/internal/message/workflow/workspace-step.js +13 -0
  290. package/dist/src/internal/message/workflow/workspace-step.js.map +1 -0
  291. package/dist/src/internal/nitro/host/build-application.d.ts +5 -0
  292. package/dist/src/internal/nitro/host/build-application.d.ts.map +1 -0
  293. package/dist/src/internal/nitro/host/build-application.js +67 -0
  294. package/dist/src/internal/nitro/host/build-application.js.map +1 -0
  295. package/dist/src/internal/nitro/host/configure-message-routes.d.ts +8 -0
  296. package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +1 -0
  297. package/dist/src/internal/nitro/host/configure-message-routes.js +75 -0
  298. package/dist/src/internal/nitro/host/configure-message-routes.js.map +1 -0
  299. package/dist/src/internal/nitro/host/create-application-nitro.d.ts +8 -0
  300. package/dist/src/internal/nitro/host/create-application-nitro.d.ts.map +1 -0
  301. package/dist/src/internal/nitro/host/create-application-nitro.js +81 -0
  302. package/dist/src/internal/nitro/host/create-application-nitro.js.map +1 -0
  303. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +7 -0
  304. package/dist/src/internal/nitro/host/prepare-application-host.d.ts.map +1 -0
  305. package/dist/src/internal/nitro/host/prepare-application-host.js +33 -0
  306. package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -0
  307. package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts +33 -0
  308. package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts.map +1 -0
  309. package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js +105 -0
  310. package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js.map +1 -0
  311. package/dist/src/internal/nitro/host/start-development-server.d.ts +9 -0
  312. package/dist/src/internal/nitro/host/start-development-server.d.ts.map +1 -0
  313. package/dist/src/internal/nitro/host/start-development-server.js +32 -0
  314. package/dist/src/internal/nitro/host/start-development-server.js.map +1 -0
  315. package/dist/src/internal/nitro/host/types.d.ts +20 -0
  316. package/dist/src/internal/nitro/host/types.d.ts.map +1 -0
  317. package/dist/src/internal/nitro/host/types.js +2 -0
  318. package/dist/src/internal/nitro/host/types.js.map +1 -0
  319. package/dist/src/internal/nitro/host.d.ts +4 -0
  320. package/dist/src/internal/nitro/host.d.ts.map +1 -0
  321. package/dist/src/internal/nitro/host.js +3 -0
  322. package/dist/src/internal/nitro/host.js.map +1 -0
  323. package/dist/src/internal/nitro/routes/health.d.ts +9 -0
  324. package/dist/src/internal/nitro/routes/health.d.ts.map +1 -0
  325. package/dist/src/internal/nitro/routes/health.js +8 -0
  326. package/dist/src/internal/nitro/routes/health.js.map +1 -0
  327. package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts +11 -0
  328. package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts.map +1 -0
  329. package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js +303 -0
  330. package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js.map +1 -0
  331. package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts +27 -0
  332. package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts.map +1 -0
  333. package/dist/src/internal/nitro/routes/home-page/load-home-page-data.js +55 -0
  334. package/dist/src/internal/nitro/routes/home-page/load-home-page-data.js.map +1 -0
  335. package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts +9 -0
  336. package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts.map +1 -0
  337. package/dist/src/internal/nitro/routes/home-page/render-home-page.js +15 -0
  338. package/dist/src/internal/nitro/routes/home-page/render-home-page.js.map +1 -0
  339. package/dist/src/internal/nitro/routes/index.d.ts +12 -0
  340. package/dist/src/internal/nitro/routes/index.d.ts.map +1 -0
  341. package/dist/src/internal/nitro/routes/index.html +548 -0
  342. package/dist/src/internal/nitro/routes/index.js +45 -0
  343. package/dist/src/internal/nitro/routes/index.js.map +1 -0
  344. package/dist/src/internal/nitro/routes/message.d.ts +9 -0
  345. package/dist/src/internal/nitro/routes/message.d.ts.map +1 -0
  346. package/dist/src/internal/nitro/routes/message.js +8 -0
  347. package/dist/src/internal/nitro/routes/message.js.map +1 -0
  348. package/dist/src/internal/nitro/routes/run-stream.d.ts +14 -0
  349. package/dist/src/internal/nitro/routes/run-stream.d.ts.map +1 -0
  350. package/dist/src/internal/nitro/routes/run-stream.js +15 -0
  351. package/dist/src/internal/nitro/routes/run-stream.js.map +1 -0
  352. package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts +16 -0
  353. package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts.map +1 -0
  354. package/dist/src/internal/nitro/shims/schedule-task-handler.js +39 -0
  355. package/dist/src/internal/nitro/shims/schedule-task-handler.js.map +1 -0
  356. package/dist/src/internal/object.d.ts +18 -0
  357. package/dist/src/internal/object.d.ts.map +1 -0
  358. package/dist/src/internal/object.js +17 -0
  359. package/dist/src/internal/object.js.map +1 -0
  360. package/dist/src/internal/runtime-model.d.ts +6 -0
  361. package/dist/src/internal/runtime-model.d.ts.map +1 -0
  362. package/dist/src/internal/runtime-model.js +6 -0
  363. package/dist/src/internal/runtime-model.js.map +1 -0
  364. package/dist/src/internal/source-ref.d.ts +48 -0
  365. package/dist/src/internal/source-ref.d.ts.map +1 -0
  366. package/dist/src/internal/source-ref.js +2 -0
  367. package/dist/src/internal/source-ref.js.map +1 -0
  368. package/dist/src/protocol/message.d.ts +356 -0
  369. package/dist/src/protocol/message.d.ts.map +1 -0
  370. package/dist/src/protocol/message.js +233 -0
  371. package/dist/src/protocol/message.js.map +1 -0
  372. package/dist/src/protocol/routes.d.ts +22 -0
  373. package/dist/src/protocol/routes.d.ts.map +1 -0
  374. package/dist/src/protocol/routes.js +24 -0
  375. package/dist/src/protocol/routes.js.map +1 -0
  376. package/dist/src/public/agent.d.ts +2 -0
  377. package/dist/src/public/agent.d.ts.map +1 -0
  378. package/dist/src/public/agent.js +2 -0
  379. package/dist/src/public/agent.js.map +1 -0
  380. package/dist/src/public/definitions/agent.d.ts +18 -0
  381. package/dist/src/public/definitions/agent.d.ts.map +1 -0
  382. package/dist/src/public/definitions/agent.js +7 -0
  383. package/dist/src/public/definitions/agent.js.map +1 -0
  384. package/dist/src/public/definitions/context.d.ts +16 -0
  385. package/dist/src/public/definitions/context.d.ts.map +1 -0
  386. package/dist/src/public/definitions/context.js +8 -0
  387. package/dist/src/public/definitions/context.js.map +1 -0
  388. package/dist/src/public/definitions/memory.d.ts +20 -0
  389. package/dist/src/public/definitions/memory.d.ts.map +1 -0
  390. package/dist/src/public/definitions/memory.js +8 -0
  391. package/dist/src/public/definitions/memory.js.map +1 -0
  392. package/dist/src/public/definitions/sandbox.d.ts +33 -0
  393. package/dist/src/public/definitions/sandbox.d.ts.map +1 -0
  394. package/dist/src/public/definitions/sandbox.js +7 -0
  395. package/dist/src/public/definitions/sandbox.js.map +1 -0
  396. package/dist/src/public/definitions/schedule.d.ts +14 -0
  397. package/dist/src/public/definitions/schedule.d.ts.map +1 -0
  398. package/dist/src/public/definitions/schedule.js +8 -0
  399. package/dist/src/public/definitions/schedule.js.map +1 -0
  400. package/dist/src/public/definitions/skill.d.ts +18 -0
  401. package/dist/src/public/definitions/skill.d.ts.map +1 -0
  402. package/dist/src/public/definitions/skill.js +8 -0
  403. package/dist/src/public/definitions/skill.js.map +1 -0
  404. package/dist/src/public/definitions/soul.d.ts +20 -0
  405. package/dist/src/public/definitions/soul.d.ts.map +1 -0
  406. package/dist/src/public/definitions/soul.js +8 -0
  407. package/dist/src/public/definitions/soul.js.map +1 -0
  408. package/dist/src/public/definitions/source.d.ts +9 -0
  409. package/dist/src/public/definitions/source.d.ts.map +1 -0
  410. package/dist/src/public/definitions/source.js +2 -0
  411. package/dist/src/public/definitions/source.js.map +1 -0
  412. package/dist/src/public/definitions/standard-json-schema.d.ts +15 -0
  413. package/dist/src/public/definitions/standard-json-schema.d.ts.map +1 -0
  414. package/dist/src/public/definitions/standard-json-schema.js +2 -0
  415. package/dist/src/public/definitions/standard-json-schema.js.map +1 -0
  416. package/dist/src/public/definitions/standard-schema.d.ts +69 -0
  417. package/dist/src/public/definitions/standard-schema.d.ts.map +1 -0
  418. package/dist/src/public/definitions/standard-schema.js +197 -0
  419. package/dist/src/public/definitions/standard-schema.js.map +1 -0
  420. package/dist/src/public/definitions/subagent.d.ts +16 -0
  421. package/dist/src/public/definitions/subagent.d.ts.map +1 -0
  422. package/dist/src/public/definitions/subagent.js +7 -0
  423. package/dist/src/public/definitions/subagent.js.map +1 -0
  424. package/dist/src/public/definitions/system.d.ts +13 -0
  425. package/dist/src/public/definitions/system.d.ts.map +1 -0
  426. package/dist/src/public/definitions/system.js +8 -0
  427. package/dist/src/public/definitions/system.js.map +1 -0
  428. package/dist/src/public/definitions/tool.d.ts +21 -0
  429. package/dist/src/public/definitions/tool.d.ts.map +1 -0
  430. package/dist/src/public/definitions/tool.js +4 -0
  431. package/dist/src/public/definitions/tool.js.map +1 -0
  432. package/dist/src/public/definitions/worker.d.ts +171 -0
  433. package/dist/src/public/definitions/worker.d.ts.map +1 -0
  434. package/dist/src/public/definitions/worker.js +13 -0
  435. package/dist/src/public/definitions/worker.js.map +1 -0
  436. package/dist/src/public/helpers/markdown.d.ts +55 -0
  437. package/dist/src/public/helpers/markdown.d.ts.map +1 -0
  438. package/dist/src/public/helpers/markdown.js +193 -0
  439. package/dist/src/public/helpers/markdown.js.map +1 -0
  440. package/dist/src/public/index.d.ts +12 -0
  441. package/dist/src/public/index.d.ts.map +1 -0
  442. package/dist/src/public/index.js +11 -0
  443. package/dist/src/public/index.js.map +1 -0
  444. package/dist/src/runtime/actions/activate-skill.d.ts +19 -0
  445. package/dist/src/runtime/actions/activate-skill.d.ts.map +1 -0
  446. package/dist/src/runtime/actions/activate-skill.js +74 -0
  447. package/dist/src/runtime/actions/activate-skill.js.map +1 -0
  448. package/dist/src/runtime/actions/execute-action.d.ts +34 -0
  449. package/dist/src/runtime/actions/execute-action.d.ts.map +1 -0
  450. package/dist/src/runtime/actions/execute-action.js +42 -0
  451. package/dist/src/runtime/actions/execute-action.js.map +1 -0
  452. package/dist/src/runtime/actions/types.d.ts +251 -0
  453. package/dist/src/runtime/actions/types.d.ts.map +1 -0
  454. package/dist/src/runtime/actions/types.js +210 -0
  455. package/dist/src/runtime/actions/types.js.map +1 -0
  456. package/dist/src/runtime/agent/bootstrap-model.d.ts +8 -0
  457. package/dist/src/runtime/agent/bootstrap-model.d.ts.map +1 -0
  458. package/dist/src/runtime/agent/bootstrap-model.js +106 -0
  459. package/dist/src/runtime/agent/bootstrap-model.js.map +1 -0
  460. package/dist/src/runtime/agent/bootstrap.d.ts +71 -0
  461. package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -0
  462. package/dist/src/runtime/agent/bootstrap.js +130 -0
  463. package/dist/src/runtime/agent/bootstrap.js.map +1 -0
  464. package/dist/src/runtime/agent/mock-model-adapter.d.ts +22 -0
  465. package/dist/src/runtime/agent/mock-model-adapter.d.ts.map +1 -0
  466. package/dist/src/runtime/agent/mock-model-adapter.js +403 -0
  467. package/dist/src/runtime/agent/mock-model-adapter.js.map +1 -0
  468. package/dist/src/runtime/agent/resolve-model.d.ts +12 -0
  469. package/dist/src/runtime/agent/resolve-model.d.ts.map +1 -0
  470. package/dist/src/runtime/agent/resolve-model.js +49 -0
  471. package/dist/src/runtime/agent/resolve-model.js.map +1 -0
  472. package/dist/src/runtime/compiled-artifacts-source.d.ts +35 -0
  473. package/dist/src/runtime/compiled-artifacts-source.d.ts.map +1 -0
  474. package/dist/src/runtime/compiled-artifacts-source.js +30 -0
  475. package/dist/src/runtime/compiled-artifacts-source.js.map +1 -0
  476. package/dist/src/runtime/graph.d.ts +34 -0
  477. package/dist/src/runtime/graph.d.ts.map +1 -0
  478. package/dist/src/runtime/graph.js +18 -0
  479. package/dist/src/runtime/graph.js.map +1 -0
  480. package/dist/src/runtime/harness/contracts.d.ts +173 -0
  481. package/dist/src/runtime/harness/contracts.d.ts.map +1 -0
  482. package/dist/src/runtime/harness/contracts.js +121 -0
  483. package/dist/src/runtime/harness/contracts.js.map +1 -0
  484. package/dist/src/runtime/harness/hosts/json-protocol.d.ts +50 -0
  485. package/dist/src/runtime/harness/hosts/json-protocol.d.ts.map +1 -0
  486. package/dist/src/runtime/harness/hosts/json-protocol.js +42 -0
  487. package/dist/src/runtime/harness/hosts/json-protocol.js.map +1 -0
  488. package/dist/src/runtime/harness/hosts/tool-loop.d.ts +8 -0
  489. package/dist/src/runtime/harness/hosts/tool-loop.d.ts.map +1 -0
  490. package/dist/src/runtime/harness/hosts/tool-loop.js +17 -0
  491. package/dist/src/runtime/harness/hosts/tool-loop.js.map +1 -0
  492. package/dist/src/runtime/harness/hosts/types.d.ts +14 -0
  493. package/dist/src/runtime/harness/hosts/types.d.ts.map +1 -0
  494. package/dist/src/runtime/harness/hosts/types.js +2 -0
  495. package/dist/src/runtime/harness/hosts/types.js.map +1 -0
  496. package/dist/src/runtime/harness/run-turn.d.ts +111 -0
  497. package/dist/src/runtime/harness/run-turn.d.ts.map +1 -0
  498. package/dist/src/runtime/harness/run-turn.js +92 -0
  499. package/dist/src/runtime/harness/run-turn.js.map +1 -0
  500. package/dist/src/runtime/harness/tool-loop/create-harness.d.ts +31 -0
  501. package/dist/src/runtime/harness/tool-loop/create-harness.d.ts.map +1 -0
  502. package/dist/src/runtime/harness/tool-loop/create-harness.js +276 -0
  503. package/dist/src/runtime/harness/tool-loop/create-harness.js.map +1 -0
  504. package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts +12 -0
  505. package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts.map +1 -0
  506. package/dist/src/runtime/harness/tool-loop/internal/action-results.js +68 -0
  507. package/dist/src/runtime/harness/tool-loop/internal/action-results.js.map +1 -0
  508. package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts +16 -0
  509. package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts.map +1 -0
  510. package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js +115 -0
  511. package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js.map +1 -0
  512. package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts +5 -0
  513. package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts.map +1 -0
  514. package/dist/src/runtime/harness/tool-loop/internal/model-messages.js +5 -0
  515. package/dist/src/runtime/harness/tool-loop/internal/model-messages.js.map +1 -0
  516. package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts +13 -0
  517. package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts.map +1 -0
  518. package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js +190 -0
  519. package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js.map +1 -0
  520. package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.d.ts +19 -0
  521. package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.d.ts.map +1 -0
  522. package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.js +117 -0
  523. package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.js.map +1 -0
  524. package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts +12 -0
  525. package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts.map +1 -0
  526. package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js +58 -0
  527. package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js.map +1 -0
  528. package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.d.ts +23 -0
  529. package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.d.ts.map +1 -0
  530. package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.js +67 -0
  531. package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.js.map +1 -0
  532. package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts +31 -0
  533. package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts.map +1 -0
  534. package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js +86 -0
  535. package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js.map +1 -0
  536. package/dist/src/runtime/harness/tool-loop/internal/state.d.ts +47 -0
  537. package/dist/src/runtime/harness/tool-loop/internal/state.d.ts.map +1 -0
  538. package/dist/src/runtime/harness/tool-loop/internal/state.js +71 -0
  539. package/dist/src/runtime/harness/tool-loop/internal/state.js.map +1 -0
  540. package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts +36 -0
  541. package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts.map +1 -0
  542. package/dist/src/runtime/harness/tool-loop/internal/stream-result.js +70 -0
  543. package/dist/src/runtime/harness/tool-loop/internal/stream-result.js.map +1 -0
  544. package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts +94 -0
  545. package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts.map +1 -0
  546. package/dist/src/runtime/harness/tool-loop/internal/transcript.js +107 -0
  547. package/dist/src/runtime/harness/tool-loop/internal/transcript.js.map +1 -0
  548. package/dist/src/runtime/harness/types.d.ts +36 -0
  549. package/dist/src/runtime/harness/types.d.ts.map +1 -0
  550. package/dist/src/runtime/harness/types.js +2 -0
  551. package/dist/src/runtime/harness/types.js.map +1 -0
  552. package/dist/src/runtime/harness/workspace/ensure.d.ts +33 -0
  553. package/dist/src/runtime/harness/workspace/ensure.d.ts.map +1 -0
  554. package/dist/src/runtime/harness/workspace/ensure.js +280 -0
  555. package/dist/src/runtime/harness/workspace/ensure.js.map +1 -0
  556. package/dist/src/runtime/harness/workspace/project-workspace-overlay.d.ts +19 -0
  557. package/dist/src/runtime/harness/workspace/project-workspace-overlay.d.ts.map +1 -0
  558. package/dist/src/runtime/harness/workspace/project-workspace-overlay.js +219 -0
  559. package/dist/src/runtime/harness/workspace/project-workspace-overlay.js.map +1 -0
  560. package/dist/src/runtime/harness/workspace/spec.d.ts +59 -0
  561. package/dist/src/runtime/harness/workspace/spec.d.ts.map +1 -0
  562. package/dist/src/runtime/harness/workspace/spec.js +133 -0
  563. package/dist/src/runtime/harness/workspace/spec.js.map +1 -0
  564. package/dist/src/runtime/harness/workspace/state.d.ts +27 -0
  565. package/dist/src/runtime/harness/workspace/state.d.ts.map +1 -0
  566. package/dist/src/runtime/harness/workspace/state.js +144 -0
  567. package/dist/src/runtime/harness/workspace/state.js.map +1 -0
  568. package/dist/src/runtime/harness/workspace/types.d.ts +134 -0
  569. package/dist/src/runtime/harness/workspace/types.d.ts.map +1 -0
  570. package/dist/src/runtime/harness/workspace/types.js +19 -0
  571. package/dist/src/runtime/harness/workspace/types.js.map +1 -0
  572. package/dist/src/runtime/json.d.ts +36 -0
  573. package/dist/src/runtime/json.d.ts.map +1 -0
  574. package/dist/src/runtime/json.js +55 -0
  575. package/dist/src/runtime/json.js.map +1 -0
  576. package/dist/src/runtime/loaders/bundled-artifacts.d.ts +35 -0
  577. package/dist/src/runtime/loaders/bundled-artifacts.d.ts.map +1 -0
  578. package/dist/src/runtime/loaders/bundled-artifacts.js +20 -0
  579. package/dist/src/runtime/loaders/bundled-artifacts.js.map +1 -0
  580. package/dist/src/runtime/loaders/compile-metadata.d.ts +22 -0
  581. package/dist/src/runtime/loaders/compile-metadata.d.ts.map +1 -0
  582. package/dist/src/runtime/loaders/compile-metadata.js +94 -0
  583. package/dist/src/runtime/loaders/compile-metadata.js.map +1 -0
  584. package/dist/src/runtime/loaders/context.d.ts +36 -0
  585. package/dist/src/runtime/loaders/context.d.ts.map +1 -0
  586. package/dist/src/runtime/loaders/context.js +116 -0
  587. package/dist/src/runtime/loaders/context.js.map +1 -0
  588. package/dist/src/runtime/loaders/manifest.d.ts +22 -0
  589. package/dist/src/runtime/loaders/manifest.d.ts.map +1 -0
  590. package/dist/src/runtime/loaders/manifest.js +57 -0
  591. package/dist/src/runtime/loaders/manifest.js.map +1 -0
  592. package/dist/src/runtime/loaders/module-map.d.ts +22 -0
  593. package/dist/src/runtime/loaders/module-map.d.ts.map +1 -0
  594. package/dist/src/runtime/loaders/module-map.js +56 -0
  595. package/dist/src/runtime/loaders/module-map.js.map +1 -0
  596. package/dist/src/runtime/loaders/resolved-agent.d.ts +28 -0
  597. package/dist/src/runtime/loaders/resolved-agent.d.ts.map +1 -0
  598. package/dist/src/runtime/loaders/resolved-agent.js +39 -0
  599. package/dist/src/runtime/loaders/resolved-agent.js.map +1 -0
  600. package/dist/src/runtime/loaders/workspace.d.ts +37 -0
  601. package/dist/src/runtime/loaders/workspace.d.ts.map +1 -0
  602. package/dist/src/runtime/loaders/workspace.js +104 -0
  603. package/dist/src/runtime/loaders/workspace.js.map +1 -0
  604. package/dist/src/runtime/prompt/compose.d.ts +17 -0
  605. package/dist/src/runtime/prompt/compose.d.ts.map +1 -0
  606. package/dist/src/runtime/prompt/compose.js +42 -0
  607. package/dist/src/runtime/prompt/compose.js.map +1 -0
  608. package/dist/src/runtime/resolve-agent-graph.d.ts +34 -0
  609. package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -0
  610. package/dist/src/runtime/resolve-agent-graph.js +181 -0
  611. package/dist/src/runtime/resolve-agent-graph.js.map +1 -0
  612. package/dist/src/runtime/resolve-agent.d.ts +30 -0
  613. package/dist/src/runtime/resolve-agent.d.ts.map +1 -0
  614. package/dist/src/runtime/resolve-agent.js +169 -0
  615. package/dist/src/runtime/resolve-agent.js.map +1 -0
  616. package/dist/src/runtime/sandboxes/bindings/local.d.ts +8 -0
  617. package/dist/src/runtime/sandboxes/bindings/local.d.ts.map +1 -0
  618. package/dist/src/runtime/sandboxes/bindings/local.js +209 -0
  619. package/dist/src/runtime/sandboxes/bindings/local.js.map +1 -0
  620. package/dist/src/runtime/sandboxes/bindings/vercel.d.ts +11 -0
  621. package/dist/src/runtime/sandboxes/bindings/vercel.d.ts.map +1 -0
  622. package/dist/src/runtime/sandboxes/bindings/vercel.js +147 -0
  623. package/dist/src/runtime/sandboxes/bindings/vercel.js.map +1 -0
  624. package/dist/src/runtime/sandboxes/ensure.d.ts +36 -0
  625. package/dist/src/runtime/sandboxes/ensure.d.ts.map +1 -0
  626. package/dist/src/runtime/sandboxes/ensure.js +288 -0
  627. package/dist/src/runtime/sandboxes/ensure.js.map +1 -0
  628. package/dist/src/runtime/sandboxes/keys.d.ts +30 -0
  629. package/dist/src/runtime/sandboxes/keys.d.ts.map +1 -0
  630. package/dist/src/runtime/sandboxes/keys.js +61 -0
  631. package/dist/src/runtime/sandboxes/keys.js.map +1 -0
  632. package/dist/src/runtime/sandboxes/registry.d.ts +44 -0
  633. package/dist/src/runtime/sandboxes/registry.d.ts.map +1 -0
  634. package/dist/src/runtime/sandboxes/registry.js +87 -0
  635. package/dist/src/runtime/sandboxes/registry.js.map +1 -0
  636. package/dist/src/runtime/sandboxes/tool-name.d.ts +6 -0
  637. package/dist/src/runtime/sandboxes/tool-name.d.ts.map +1 -0
  638. package/dist/src/runtime/sandboxes/tool-name.js +15 -0
  639. package/dist/src/runtime/sandboxes/tool-name.js.map +1 -0
  640. package/dist/src/runtime/sandboxes/types.d.ts +136 -0
  641. package/dist/src/runtime/sandboxes/types.d.ts.map +1 -0
  642. package/dist/src/runtime/sandboxes/types.js +2 -0
  643. package/dist/src/runtime/sandboxes/types.js.map +1 -0
  644. package/dist/src/runtime/schedules/register.d.ts +45 -0
  645. package/dist/src/runtime/schedules/register.d.ts.map +1 -0
  646. package/dist/src/runtime/schedules/register.js +94 -0
  647. package/dist/src/runtime/schedules/register.js.map +1 -0
  648. package/dist/src/runtime/schedules/resolve-schedule.d.ts +41 -0
  649. package/dist/src/runtime/schedules/resolve-schedule.d.ts.map +1 -0
  650. package/dist/src/runtime/schedules/resolve-schedule.js +61 -0
  651. package/dist/src/runtime/schedules/resolve-schedule.js.map +1 -0
  652. package/dist/src/runtime/session-context.d.ts +40 -0
  653. package/dist/src/runtime/session-context.d.ts.map +1 -0
  654. package/dist/src/runtime/session-context.js +55 -0
  655. package/dist/src/runtime/session-context.js.map +1 -0
  656. package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +25 -0
  657. package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -0
  658. package/dist/src/runtime/sessions/compiled-agent-cache.js +48 -0
  659. package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -0
  660. package/dist/src/runtime/sessions/messages.d.ts +90 -0
  661. package/dist/src/runtime/sessions/messages.d.ts.map +1 -0
  662. package/dist/src/runtime/sessions/messages.js +91 -0
  663. package/dist/src/runtime/sessions/messages.js.map +1 -0
  664. package/dist/src/runtime/sessions/prepare-turn.d.ts +60 -0
  665. package/dist/src/runtime/sessions/prepare-turn.d.ts.map +1 -0
  666. package/dist/src/runtime/sessions/prepare-turn.js +85 -0
  667. package/dist/src/runtime/sessions/prepare-turn.js.map +1 -0
  668. package/dist/src/runtime/sessions/run-session.d.ts +191 -0
  669. package/dist/src/runtime/sessions/run-session.d.ts.map +1 -0
  670. package/dist/src/runtime/sessions/run-session.js +297 -0
  671. package/dist/src/runtime/sessions/run-session.js.map +1 -0
  672. package/dist/src/runtime/sessions/turn.d.ts +94 -0
  673. package/dist/src/runtime/sessions/turn.d.ts.map +1 -0
  674. package/dist/src/runtime/sessions/turn.js +2 -0
  675. package/dist/src/runtime/sessions/turn.js.map +1 -0
  676. package/dist/src/runtime/sessions/types.d.ts +72 -0
  677. package/dist/src/runtime/sessions/types.d.ts.map +1 -0
  678. package/dist/src/runtime/sessions/types.js +28 -0
  679. package/dist/src/runtime/sessions/types.js.map +1 -0
  680. package/dist/src/runtime/skills/fragment-context.d.ts +26 -0
  681. package/dist/src/runtime/skills/fragment-context.d.ts.map +1 -0
  682. package/dist/src/runtime/skills/fragment-context.js +94 -0
  683. package/dist/src/runtime/skills/fragment-context.js.map +1 -0
  684. package/dist/src/runtime/skills/load-skill-content.d.ts +15 -0
  685. package/dist/src/runtime/skills/load-skill-content.d.ts.map +1 -0
  686. package/dist/src/runtime/skills/load-skill-content.js +29 -0
  687. package/dist/src/runtime/skills/load-skill-content.js.map +1 -0
  688. package/dist/src/runtime/skills/load-skills.d.ts +22 -0
  689. package/dist/src/runtime/skills/load-skills.d.ts.map +1 -0
  690. package/dist/src/runtime/skills/load-skills.js +47 -0
  691. package/dist/src/runtime/skills/load-skills.js.map +1 -0
  692. package/dist/src/runtime/skills/types.d.ts +8 -0
  693. package/dist/src/runtime/skills/types.d.ts.map +1 -0
  694. package/dist/src/runtime/skills/types.js +2 -0
  695. package/dist/src/runtime/skills/types.js.map +1 -0
  696. package/dist/src/runtime/subagents/definitions.d.ts +11 -0
  697. package/dist/src/runtime/subagents/definitions.d.ts.map +1 -0
  698. package/dist/src/runtime/subagents/definitions.js +15 -0
  699. package/dist/src/runtime/subagents/definitions.js.map +1 -0
  700. package/dist/src/runtime/subagents/execute-subagent.d.ts +23 -0
  701. package/dist/src/runtime/subagents/execute-subagent.d.ts.map +1 -0
  702. package/dist/src/runtime/subagents/execute-subagent.js +26 -0
  703. package/dist/src/runtime/subagents/execute-subagent.js.map +1 -0
  704. package/dist/src/runtime/subagents/invocation.d.ts +11 -0
  705. package/dist/src/runtime/subagents/invocation.d.ts.map +1 -0
  706. package/dist/src/runtime/subagents/invocation.js +16 -0
  707. package/dist/src/runtime/subagents/invocation.js.map +1 -0
  708. package/dist/src/runtime/subagents/registry.d.ts +44 -0
  709. package/dist/src/runtime/subagents/registry.d.ts.map +1 -0
  710. package/dist/src/runtime/subagents/registry.js +107 -0
  711. package/dist/src/runtime/subagents/registry.js.map +1 -0
  712. package/dist/src/runtime/tools/execute-tool.d.ts +28 -0
  713. package/dist/src/runtime/tools/execute-tool.d.ts.map +1 -0
  714. package/dist/src/runtime/tools/execute-tool.js +75 -0
  715. package/dist/src/runtime/tools/execute-tool.js.map +1 -0
  716. package/dist/src/runtime/tools/registry.d.ts +42 -0
  717. package/dist/src/runtime/tools/registry.d.ts.map +1 -0
  718. package/dist/src/runtime/tools/registry.js +79 -0
  719. package/dist/src/runtime/tools/registry.js.map +1 -0
  720. package/dist/src/runtime/types.d.ts +160 -0
  721. package/dist/src/runtime/types.d.ts.map +1 -0
  722. package/dist/src/runtime/types.js +2 -0
  723. package/dist/src/runtime/types.js.map +1 -0
  724. package/dist/src/runtime/validation.d.ts +6 -0
  725. package/dist/src/runtime/validation.d.ts.map +1 -0
  726. package/dist/src/runtime/validation.js +8 -0
  727. package/dist/src/runtime/validation.js.map +1 -0
  728. package/dist/src/services/dev-client/live-stream.d.ts +36 -0
  729. package/dist/src/services/dev-client/live-stream.d.ts.map +1 -0
  730. package/dist/src/services/dev-client/live-stream.js +158 -0
  731. package/dist/src/services/dev-client/live-stream.js.map +1 -0
  732. package/dist/src/services/dev-client/request-headers.d.ts +15 -0
  733. package/dist/src/services/dev-client/request-headers.d.ts.map +1 -0
  734. package/dist/src/services/dev-client/request-headers.js +23 -0
  735. package/dist/src/services/dev-client/request-headers.js.map +1 -0
  736. package/dist/src/services/dev-client/send-message.d.ts +20 -0
  737. package/dist/src/services/dev-client/send-message.d.ts.map +1 -0
  738. package/dist/src/services/dev-client/send-message.js +260 -0
  739. package/dist/src/services/dev-client/send-message.js.map +1 -0
  740. package/dist/src/services/dev-client/session.d.ts +54 -0
  741. package/dist/src/services/dev-client/session.d.ts.map +1 -0
  742. package/dist/src/services/dev-client/session.js +71 -0
  743. package/dist/src/services/dev-client/session.js.map +1 -0
  744. package/dist/src/services/dev-client/stream.d.ts +25 -0
  745. package/dist/src/services/dev-client/stream.d.ts.map +1 -0
  746. package/dist/src/services/dev-client/stream.js +42 -0
  747. package/dist/src/services/dev-client/stream.js.map +1 -0
  748. package/dist/src/services/dev-client/url.d.ts +16 -0
  749. package/dist/src/services/dev-client/url.d.ts.map +1 -0
  750. package/dist/src/services/dev-client/url.js +32 -0
  751. package/dist/src/services/dev-client/url.js.map +1 -0
  752. package/dist/src/services/dev-client.d.ts +49 -0
  753. package/dist/src/services/dev-client.d.ts.map +1 -0
  754. package/dist/src/services/dev-client.js +52 -0
  755. package/dist/src/services/dev-client.js.map +1 -0
  756. package/dist/src/services/host.d.ts +14 -0
  757. package/dist/src/services/host.d.ts.map +1 -0
  758. package/dist/src/services/host.js +14 -0
  759. package/dist/src/services/host.js.map +1 -0
  760. package/dist/src/services/inspect-application.d.ts +25 -0
  761. package/dist/src/services/inspect-application.d.ts.map +1 -0
  762. package/dist/src/services/inspect-application.js +39 -0
  763. package/dist/src/services/inspect-application.js.map +1 -0
  764. package/package.json +58 -0
@@ -0,0 +1,251 @@
1
+ import { z } from "zod";
2
+ import { type JsonObject, type JsonValue } from "../json.js";
3
+ /**
4
+ * Runtime-owned authored tool-call request surfaced by a harness and executed
5
+ * later by step-backed runtime code.
6
+ */
7
+ export interface RuntimeToolCallActionRequest {
8
+ readonly callId: string;
9
+ readonly input: JsonObject;
10
+ readonly kind: "tool-call";
11
+ readonly toolName: string;
12
+ }
13
+ /**
14
+ * Zod schema for one runtime-owned authored tool-call action request.
15
+ */
16
+ export declare const runtimeToolCallActionRequestSchema: z.ZodObject<{
17
+ callId: z.ZodString;
18
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
19
+ kind: z.ZodLiteral<"tool-call">;
20
+ toolName: z.ZodString;
21
+ }, z.core.$strict>;
22
+ /**
23
+ * Runtime-owned subagent-call request surfaced by a harness and executed later
24
+ * by workflow-backed runtime code.
25
+ */
26
+ export interface RuntimeSubagentCallActionRequest {
27
+ readonly callId: string;
28
+ readonly description: string;
29
+ readonly input: JsonObject;
30
+ readonly kind: "subagent-call";
31
+ readonly nodeSelector: string;
32
+ readonly subagentId: string;
33
+ readonly subagentName: string;
34
+ }
35
+ /**
36
+ * Zod schema for one runtime-owned subagent-call action request.
37
+ */
38
+ export declare const runtimeSubagentCallActionRequestSchema: z.ZodObject<{
39
+ callId: z.ZodString;
40
+ description: z.ZodString;
41
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
42
+ kind: z.ZodLiteral<"subagent-call">;
43
+ nodeSelector: z.ZodString;
44
+ subagentId: z.ZodString;
45
+ subagentName: z.ZodString;
46
+ }, z.core.$strict>;
47
+ /**
48
+ * Runtime-owned action request surfaced by a harness.
49
+ *
50
+ * Harness-native capabilities such as `bash` do not cross the harness boundary
51
+ * as runtime actions. Only runtime-executed requests use this taxonomy.
52
+ */
53
+ export interface RuntimeActivateSkillActionRequest {
54
+ readonly callId: string;
55
+ readonly input: JsonObject;
56
+ readonly kind: "activate-skill";
57
+ }
58
+ /**
59
+ * Zod schema for one runtime-owned activate-skill action request.
60
+ */
61
+ export declare const runtimeActivateSkillActionRequestSchema: z.ZodObject<{
62
+ callId: z.ZodString;
63
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
64
+ kind: z.ZodLiteral<"activate-skill">;
65
+ }, z.core.$strict>;
66
+ /**
67
+ * Runtime-owned framework action kind surfaced to the model as a tool.
68
+ */
69
+ export type RuntimeActionToolKind = RuntimeActivateSkillActionRequest["kind"];
70
+ /**
71
+ * Runtime-owned action request surfaced by a harness.
72
+ *
73
+ * Harness-native capabilities such as `bash` do not cross the harness boundary
74
+ * as runtime actions. Only runtime-executed requests use this taxonomy.
75
+ */
76
+ export type RuntimeActionRequest = RuntimeActivateSkillActionRequest | RuntimeSubagentCallActionRequest | RuntimeToolCallActionRequest;
77
+ /**
78
+ * Zod schema for one runtime action request.
79
+ */
80
+ export declare const runtimeActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
81
+ callId: z.ZodString;
82
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
83
+ kind: z.ZodLiteral<"activate-skill">;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ callId: z.ZodString;
86
+ description: z.ZodString;
87
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
88
+ kind: z.ZodLiteral<"subagent-call">;
89
+ nodeSelector: z.ZodString;
90
+ subagentId: z.ZodString;
91
+ subagentName: z.ZodString;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ callId: z.ZodString;
94
+ input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
95
+ kind: z.ZodLiteral<"tool-call">;
96
+ toolName: z.ZodString;
97
+ }, z.core.$strict>], "kind">;
98
+ /**
99
+ * Runtime-owned authored tool-result projected back into a harness resume call.
100
+ */
101
+ export interface RuntimeToolResultActionResult {
102
+ readonly callId: string;
103
+ readonly isError?: boolean;
104
+ readonly kind: "tool-result";
105
+ readonly output: JsonValue;
106
+ readonly toolName: string;
107
+ }
108
+ /**
109
+ * Zod schema for one runtime-owned authored tool-result action result.
110
+ */
111
+ export declare const runtimeToolResultActionResultSchema: z.ZodObject<{
112
+ callId: z.ZodString;
113
+ isError: z.ZodOptional<z.ZodBoolean>;
114
+ kind: z.ZodLiteral<"tool-result">;
115
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
116
+ toolName: z.ZodString;
117
+ }, z.core.$strict>;
118
+ /**
119
+ * Runtime-owned subagent result projected back into a harness resume call.
120
+ */
121
+ export interface RuntimeSubagentResultActionResult {
122
+ readonly callId: string;
123
+ readonly isError?: boolean;
124
+ readonly kind: "subagent-result";
125
+ readonly output: JsonValue;
126
+ readonly subagentName: string;
127
+ }
128
+ /**
129
+ * Zod schema for one runtime-owned subagent result action result.
130
+ */
131
+ export declare const runtimeSubagentResultActionResultSchema: z.ZodObject<{
132
+ callId: z.ZodString;
133
+ isError: z.ZodOptional<z.ZodBoolean>;
134
+ kind: z.ZodLiteral<"subagent-result">;
135
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
136
+ subagentName: z.ZodString;
137
+ }, z.core.$strict>;
138
+ /**
139
+ * Runtime-owned action result produced by framework-owned activation code.
140
+ */
141
+ export interface RuntimeActivateSkillActionResult {
142
+ readonly callId: string;
143
+ readonly isError?: boolean;
144
+ readonly kind: "activate-skill-result";
145
+ readonly output: JsonValue;
146
+ readonly skillId?: string;
147
+ }
148
+ /**
149
+ * Zod schema for one runtime-owned activate-skill action result.
150
+ */
151
+ export declare const runtimeActivateSkillActionResultSchema: z.ZodObject<{
152
+ callId: z.ZodString;
153
+ isError: z.ZodOptional<z.ZodBoolean>;
154
+ kind: z.ZodLiteral<"activate-skill-result">;
155
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
156
+ skillId: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strict>;
158
+ /**
159
+ * Runtime-owned action result produced by framework-owned runtime code.
160
+ */
161
+ export type RuntimeActionResult = RuntimeActivateSkillActionResult | RuntimeSubagentResultActionResult | RuntimeToolResultActionResult;
162
+ /**
163
+ * Zod schema for one runtime action result.
164
+ */
165
+ export declare const runtimeActionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
166
+ callId: z.ZodString;
167
+ isError: z.ZodOptional<z.ZodBoolean>;
168
+ kind: z.ZodLiteral<"activate-skill-result">;
169
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
170
+ skillId: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strict>, z.ZodObject<{
172
+ callId: z.ZodString;
173
+ isError: z.ZodOptional<z.ZodBoolean>;
174
+ kind: z.ZodLiteral<"subagent-result">;
175
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
176
+ subagentName: z.ZodString;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ callId: z.ZodString;
179
+ isError: z.ZodOptional<z.ZodBoolean>;
180
+ kind: z.ZodLiteral<"tool-result">;
181
+ output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
182
+ toolName: z.ZodString;
183
+ }, z.core.$strict>], "kind">;
184
+ /**
185
+ * Creates one runtime action request from a model-visible runtime action tool
186
+ * call.
187
+ */
188
+ export declare function createRuntimeActionRequestFromToolCall(input: {
189
+ readonly actionKind: RuntimeActionToolKind;
190
+ readonly callId: string;
191
+ readonly input: JsonObject;
192
+ }): RuntimeActionRequest;
193
+ /**
194
+ * Returns true when a value matches the active runtime action-request contract.
195
+ */
196
+ export declare function isRuntimeActionRequest(value: unknown): value is RuntimeActionRequest;
197
+ /**
198
+ * Returns true when a value matches the runtime activate-skill action request
199
+ * contract.
200
+ */
201
+ export declare function isRuntimeActivateSkillActionRequest(value: unknown): value is RuntimeActivateSkillActionRequest;
202
+ /**
203
+ * Returns true when a value matches the authored tool-call runtime action
204
+ * request contract.
205
+ */
206
+ export declare function isRuntimeToolCallActionRequest(value: unknown): value is RuntimeToolCallActionRequest;
207
+ /**
208
+ * Returns true when a value matches the runtime subagent-call action request
209
+ * contract.
210
+ */
211
+ export declare function isRuntimeSubagentCallActionRequest(value: unknown): value is RuntimeSubagentCallActionRequest;
212
+ /**
213
+ * Returns true when a value matches the active runtime action-result contract.
214
+ */
215
+ export declare function isRuntimeActionResult(value: unknown): value is RuntimeActionResult;
216
+ /**
217
+ * Returns the stable match key used to pair one pending runtime action request
218
+ * with its resume result.
219
+ */
220
+ export declare function getRuntimeActionRequestKey(action: RuntimeActionRequest): string;
221
+ /**
222
+ * Returns the stable match key used to pair one runtime action result with its
223
+ * originating request.
224
+ */
225
+ export declare function getRuntimeActionResultKey(result: RuntimeActionResult): string;
226
+ /**
227
+ * Returns true when a value matches the runtime activate-skill action-result
228
+ * contract.
229
+ */
230
+ export declare function isRuntimeActivateSkillActionResult(value: unknown): value is RuntimeActivateSkillActionResult;
231
+ /**
232
+ * Returns true when a value matches the authored tool-result runtime action
233
+ * result contract.
234
+ */
235
+ export declare function isRuntimeToolResultActionResult(value: unknown): value is RuntimeToolResultActionResult;
236
+ /**
237
+ * Returns true when a value matches the runtime subagent-result action-result
238
+ * contract.
239
+ */
240
+ export declare function isRuntimeSubagentResultActionResult(value: unknown): value is RuntimeSubagentResultActionResult;
241
+ /**
242
+ * Narrows runtime action requests to authored tool-call actions or throws when
243
+ * another action kind is encountered.
244
+ */
245
+ export declare function getRuntimeToolCallActions(actions: readonly RuntimeActionRequest[]): RuntimeToolCallActionRequest[];
246
+ /**
247
+ * Narrows runtime action results to authored tool-result actions or throws when
248
+ * another result kind is encountered.
249
+ */
250
+ export declare function getRuntimeToolResultActions(results: readonly RuntimeActionResult[]): RuntimeToolResultActionResult[];
251
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/runtime/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAqC,MAAM,YAAY,CAAC;AAEhG;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;kBAOpC,CAAC;AAEZ;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,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GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,gCAAgC,CAE3C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAElF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAS/E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAS7E;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,gCAAgC,CAE3C;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,6BAA6B,CAExC;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,iCAAiC,CAE5C;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,4BAA4B,EAAE,CAQhC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,mBAAmB,EAAE,GACtC,6BAA6B,EAAE,CAQjC"}
@@ -0,0 +1,210 @@
1
+ import { z } from "zod";
2
+ import { jsonObjectSchema, jsonValueSchema } from "../json.js";
3
+ /**
4
+ * Zod schema for one runtime-owned authored tool-call action request.
5
+ */
6
+ export const runtimeToolCallActionRequestSchema = z
7
+ .object({
8
+ callId: z.string(),
9
+ input: jsonObjectSchema,
10
+ kind: z.literal("tool-call"),
11
+ toolName: z.string(),
12
+ })
13
+ .strict();
14
+ /**
15
+ * Zod schema for one runtime-owned subagent-call action request.
16
+ */
17
+ export const runtimeSubagentCallActionRequestSchema = z
18
+ .object({
19
+ callId: z.string(),
20
+ description: z.string(),
21
+ input: jsonObjectSchema,
22
+ kind: z.literal("subagent-call"),
23
+ nodeSelector: z.string(),
24
+ subagentId: z.string(),
25
+ subagentName: z.string(),
26
+ })
27
+ .strict();
28
+ /**
29
+ * Zod schema for one runtime-owned activate-skill action request.
30
+ */
31
+ export const runtimeActivateSkillActionRequestSchema = z
32
+ .object({
33
+ callId: z.string(),
34
+ input: jsonObjectSchema,
35
+ kind: z.literal("activate-skill"),
36
+ })
37
+ .strict();
38
+ /**
39
+ * Zod schema for one runtime action request.
40
+ */
41
+ export const runtimeActionRequestSchema = z.discriminatedUnion("kind", [
42
+ runtimeActivateSkillActionRequestSchema,
43
+ runtimeSubagentCallActionRequestSchema,
44
+ runtimeToolCallActionRequestSchema,
45
+ ]);
46
+ /**
47
+ * Zod schema for one runtime-owned authored tool-result action result.
48
+ */
49
+ export const runtimeToolResultActionResultSchema = z
50
+ .object({
51
+ callId: z.string(),
52
+ isError: z.boolean().optional(),
53
+ kind: z.literal("tool-result"),
54
+ output: jsonValueSchema,
55
+ toolName: z.string(),
56
+ })
57
+ .strict();
58
+ /**
59
+ * Zod schema for one runtime-owned subagent result action result.
60
+ */
61
+ export const runtimeSubagentResultActionResultSchema = z
62
+ .object({
63
+ callId: z.string(),
64
+ isError: z.boolean().optional(),
65
+ kind: z.literal("subagent-result"),
66
+ output: jsonValueSchema,
67
+ subagentName: z.string(),
68
+ })
69
+ .strict();
70
+ /**
71
+ * Zod schema for one runtime-owned activate-skill action result.
72
+ */
73
+ export const runtimeActivateSkillActionResultSchema = z
74
+ .object({
75
+ callId: z.string(),
76
+ isError: z.boolean().optional(),
77
+ kind: z.literal("activate-skill-result"),
78
+ output: jsonValueSchema,
79
+ skillId: z.string().optional(),
80
+ })
81
+ .strict();
82
+ /**
83
+ * Zod schema for one runtime action result.
84
+ */
85
+ export const runtimeActionResultSchema = z.discriminatedUnion("kind", [
86
+ runtimeActivateSkillActionResultSchema,
87
+ runtimeSubagentResultActionResultSchema,
88
+ runtimeToolResultActionResultSchema,
89
+ ]);
90
+ /**
91
+ * Creates one runtime action request from a model-visible runtime action tool
92
+ * call.
93
+ */
94
+ export function createRuntimeActionRequestFromToolCall(input) {
95
+ switch (input.actionKind) {
96
+ case "activate-skill":
97
+ return {
98
+ callId: input.callId,
99
+ input: input.input,
100
+ kind: "activate-skill",
101
+ };
102
+ }
103
+ }
104
+ /**
105
+ * Returns true when a value matches the active runtime action-request contract.
106
+ */
107
+ export function isRuntimeActionRequest(value) {
108
+ return runtimeActionRequestSchema.safeParse(value).success;
109
+ }
110
+ /**
111
+ * Returns true when a value matches the runtime activate-skill action request
112
+ * contract.
113
+ */
114
+ export function isRuntimeActivateSkillActionRequest(value) {
115
+ return runtimeActivateSkillActionRequestSchema.safeParse(value).success;
116
+ }
117
+ /**
118
+ * Returns true when a value matches the authored tool-call runtime action
119
+ * request contract.
120
+ */
121
+ export function isRuntimeToolCallActionRequest(value) {
122
+ return runtimeToolCallActionRequestSchema.safeParse(value).success;
123
+ }
124
+ /**
125
+ * Returns true when a value matches the runtime subagent-call action request
126
+ * contract.
127
+ */
128
+ export function isRuntimeSubagentCallActionRequest(value) {
129
+ return runtimeSubagentCallActionRequestSchema.safeParse(value).success;
130
+ }
131
+ /**
132
+ * Returns true when a value matches the active runtime action-result contract.
133
+ */
134
+ export function isRuntimeActionResult(value) {
135
+ return runtimeActionResultSchema.safeParse(value).success;
136
+ }
137
+ /**
138
+ * Returns the stable match key used to pair one pending runtime action request
139
+ * with its resume result.
140
+ */
141
+ export function getRuntimeActionRequestKey(action) {
142
+ switch (action.kind) {
143
+ case "activate-skill":
144
+ return `runtime-action:${action.kind}:${action.callId}`;
145
+ case "subagent-call":
146
+ return `subagent-call:${action.subagentName}:${action.callId}`;
147
+ case "tool-call":
148
+ return `tool-call:${action.toolName}:${action.callId}`;
149
+ }
150
+ }
151
+ /**
152
+ * Returns the stable match key used to pair one runtime action result with its
153
+ * originating request.
154
+ */
155
+ export function getRuntimeActionResultKey(result) {
156
+ switch (result.kind) {
157
+ case "activate-skill-result":
158
+ return `runtime-action:activate-skill:${result.callId}`;
159
+ case "subagent-result":
160
+ return `subagent-call:${result.subagentName}:${result.callId}`;
161
+ case "tool-result":
162
+ return `tool-call:${result.toolName}:${result.callId}`;
163
+ }
164
+ }
165
+ /**
166
+ * Returns true when a value matches the runtime activate-skill action-result
167
+ * contract.
168
+ */
169
+ export function isRuntimeActivateSkillActionResult(value) {
170
+ return runtimeActivateSkillActionResultSchema.safeParse(value).success;
171
+ }
172
+ /**
173
+ * Returns true when a value matches the authored tool-result runtime action
174
+ * result contract.
175
+ */
176
+ export function isRuntimeToolResultActionResult(value) {
177
+ return runtimeToolResultActionResultSchema.safeParse(value).success;
178
+ }
179
+ /**
180
+ * Returns true when a value matches the runtime subagent-result action-result
181
+ * contract.
182
+ */
183
+ export function isRuntimeSubagentResultActionResult(value) {
184
+ return runtimeSubagentResultActionResultSchema.safeParse(value).success;
185
+ }
186
+ /**
187
+ * Narrows runtime action requests to authored tool-call actions or throws when
188
+ * another action kind is encountered.
189
+ */
190
+ export function getRuntimeToolCallActions(actions) {
191
+ return actions.map((action) => {
192
+ if (!isRuntimeToolCallActionRequest(action)) {
193
+ throw new Error(`Unsupported runtime action request kind "${String(action)}".`);
194
+ }
195
+ return action;
196
+ });
197
+ }
198
+ /**
199
+ * Narrows runtime action results to authored tool-result actions or throws when
200
+ * another result kind is encountered.
201
+ */
202
+ export function getRuntimeToolResultActions(results) {
203
+ return results.map((result) => {
204
+ if (!isRuntimeToolResultActionResult(result)) {
205
+ throw new Error(`Unsupported runtime action result kind "${String(result)}".`);
206
+ }
207
+ return result;
208
+ });
209
+ }
210
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/runtime/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAmC,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAahG;;GAEG;AACH,MAAM,CA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AAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { LanguageModel } from "ai";
2
+ import { type RuntimeModelReference } from "./bootstrap.js";
3
+ /**
4
+ * Resolves the framework-owned bootstrap model into a deterministic local
5
+ * language model.
6
+ */
7
+ export declare function resolveBootstrapRuntimeModel(reference: RuntimeModelReference): LanguageModel | null;
8
+ //# sourceMappingURL=bootstrap-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap-model.d.ts","sourceRoot":"","sources":["../../../../src/runtime/agent/bootstrap-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGxC,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUxF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,qBAAqB,GAC/B,aAAa,GAAG,IAAI,CA6BtB"}
@@ -0,0 +1,106 @@
1
+ import { MockLanguageModelV3 } from "ai/test";
2
+ import { BOOTSTRAP_RUNTIME_MODEL_ID } from "./bootstrap.js";
3
+ const BOOTSTRAP_MODEL_PROVIDER = "ash-bootstrap";
4
+ const BOOTSTRAP_MODEL_RESPONSE_TIMESTAMP = new Date("2026-03-16T00:00:00.000Z");
5
+ const bootstrapRuntimeModels = new Map();
6
+ /**
7
+ * Resolves the framework-owned bootstrap model into a deterministic local
8
+ * language model.
9
+ */
10
+ export function resolveBootstrapRuntimeModel(reference) {
11
+ if (reference.id !== BOOTSTRAP_RUNTIME_MODEL_ID) {
12
+ return null;
13
+ }
14
+ const existingModel = bootstrapRuntimeModels.get(reference.id);
15
+ if (existingModel !== undefined) {
16
+ return existingModel;
17
+ }
18
+ const model = new MockLanguageModelV3({
19
+ doGenerate: async (options) => {
20
+ const text = createBootstrapAssistantMessage(options.prompt);
21
+ return createBootstrapGenerateResult({
22
+ inputTokens: estimateTokenCount(getPromptText(options.prompt)),
23
+ modelId: reference.id,
24
+ outputTokens: estimateTokenCount(text),
25
+ text,
26
+ });
27
+ },
28
+ modelId: reference.id,
29
+ provider: BOOTSTRAP_MODEL_PROVIDER,
30
+ });
31
+ bootstrapRuntimeModels.set(reference.id, model);
32
+ return model;
33
+ }
34
+ function createBootstrapAssistantMessage(prompt) {
35
+ const lastUserMessage = getLastUserPromptText(prompt) ?? "Hello from Ash";
36
+ return `Bootstrap reply: ${lastUserMessage}`;
37
+ }
38
+ function createBootstrapGenerateResult(input) {
39
+ return {
40
+ content: [
41
+ {
42
+ text: input.text,
43
+ type: "text",
44
+ },
45
+ ],
46
+ finishReason: "stop",
47
+ response: {
48
+ id: "bootstrap-response",
49
+ modelId: input.modelId,
50
+ timestamp: BOOTSTRAP_MODEL_RESPONSE_TIMESTAMP,
51
+ },
52
+ usage: {
53
+ inputTokens: {
54
+ cacheRead: 0,
55
+ cacheWrite: 0,
56
+ noCache: input.inputTokens,
57
+ total: input.inputTokens,
58
+ },
59
+ outputTokens: {
60
+ reasoning: 0,
61
+ text: input.outputTokens,
62
+ total: input.outputTokens,
63
+ },
64
+ },
65
+ warnings: [],
66
+ };
67
+ }
68
+ function getLastUserPromptText(prompt) {
69
+ for (const message of [...prompt].reverse()) {
70
+ if (message.role !== "user") {
71
+ continue;
72
+ }
73
+ const text = getPromptContentText(message.content).trim();
74
+ if (text.length > 0) {
75
+ return text;
76
+ }
77
+ }
78
+ return null;
79
+ }
80
+ function getPromptText(prompt) {
81
+ return prompt
82
+ .map((message) => getPromptContentText(message.content))
83
+ .join(" ");
84
+ }
85
+ function getPromptContentText(content) {
86
+ if (typeof content === "string") {
87
+ return content;
88
+ }
89
+ return content
90
+ .flatMap((part) => {
91
+ if (typeof part === "string") {
92
+ return [part];
93
+ }
94
+ switch (part.type) {
95
+ case "text":
96
+ return [part.text];
97
+ default:
98
+ return [];
99
+ }
100
+ })
101
+ .join("");
102
+ }
103
+ function estimateTokenCount(value) {
104
+ return Math.max(1, Math.ceil(value.trim().length / 4));
105
+ }
106
+ //# sourceMappingURL=bootstrap-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap-model.js","sourceRoot":"","sources":["../../../../src/runtime/agent/bootstrap-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAA8B,MAAM,gBAAgB,CAAC;AAExF,MAAM,wBAAwB,GAAG,eAAe,CAAC;AACjD,MAAM,kCAAkC,GAAG,IAAI,IAAI,CAAC,0BAA0B,CAAC,CAAC;AAChF,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAyB,CAAC;AAMhE;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC1C,SAAgC;IAEhC,IAAI,SAAS,CAAC,EAAE,KAAK,0BAA0B,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,sBAAsB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAE/D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC;QACpC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC5B,MAAM,IAAI,GAAG,+BAA+B,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAE7D,OAAO,6BAA6B,CAAC;gBACnC,WAAW,EAAE,kBAAkB,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAC9D,OAAO,EAAE,SAAS,CAAC,EAAE;gBACrB,YAAY,EAAE,kBAAkB,CAAC,IAAI,CAAC;gBACtC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QACD,OAAO,EAAE,SAAS,CAAC,EAAE;QACrB,QAAQ,EAAE,wBAAwB;KACnC,CAAC,CAAC;IAEH,sBAAsB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,KAA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,CAAC;AAED,SAAS,aAAa,CAAC,MAAuB;IAC5C,OAAO,MAAM;SACV,GAAG,CAAC,CAAC,OAAgC,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAChF,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED,SAAS,oBAAoB,CAAC,OAA2C;IACvE,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,OAAO;SACX,OAAO,CAAC,CAAC,IAAgD,EAAE,EAAE;QAC5D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC;QAED,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,MAAM;gBACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrB;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AACzD,CAAC"}
@@ -0,0 +1,71 @@
1
+ import type { LanguageModel } from "ai";
2
+ import { DEFAULT_RUNTIME_MODEL_ID } from "../../internal/runtime-model.js";
3
+ import type { ModuleSourceRef } from "../../internal/source-ref.js";
4
+ import type { RuntimeSkillSource } from "../harness/contracts.js";
5
+ import type { HarnessWorkspaceSpec } from "../harness/workspace/types.js";
6
+ import type { JsonObject } from "../json.js";
7
+ import type { PreparedRuntimeSandbox, PreparedRuntimeTool } from "../sessions/turn.js";
8
+ import type { ResolvedAgent } from "../types.js";
9
+ export { DEFAULT_RUNTIME_MODEL_ID };
10
+ /**
11
+ * Fixed internal model reference used only by the framework-owned bootstrap
12
+ * runtime path.
13
+ */
14
+ export declare const BOOTSTRAP_RUNTIME_MODEL_ID = "ash-bootstrap-model";
15
+ /**
16
+ * Runtime-owned model identifier prepared for one harness turn.
17
+ */
18
+ export interface RuntimeModelReference {
19
+ readonly id: string;
20
+ readonly source?: ModuleSourceRef;
21
+ }
22
+ /**
23
+ * Minimal runtime-owned agent shape that can be turned into a `PreparedRuntimeTurn`.
24
+ *
25
+ * Later discovery/compiler work can replace the bootstrap implementation while reusing the
26
+ * same turn-preparation seam.
27
+ */
28
+ export interface RuntimeTurnAgent {
29
+ readonly id: string;
30
+ readonly instructions: readonly string[];
31
+ readonly model: RuntimeModelReference;
32
+ readonly sandboxes: readonly PreparedRuntimeSandbox[];
33
+ readonly selector?: string;
34
+ readonly skills: readonly RuntimeSkillSource[];
35
+ readonly turnMetadata?: JsonObject;
36
+ readonly tools: readonly PreparedRuntimeTool[];
37
+ readonly workspaceSpec: HarnessWorkspaceSpec;
38
+ }
39
+ /**
40
+ * Framework-owned bootstrap agent used until discovery/compiler artifacts exist.
41
+ */
42
+ export interface BootstrapRuntimeAgent extends RuntimeTurnAgent {
43
+ readonly id: "ash-bootstrap-agent";
44
+ }
45
+ /**
46
+ * Static system prompt for the bootstrap runtime path.
47
+ */
48
+ export declare const BOOTSTRAP_RUNTIME_SYSTEM_PROMPT = "You are the Ash bootstrap agent. Be concise, stay grounded in the current conversation, and do not assume tools are available unless the runtime provides them.";
49
+ /**
50
+ * Creates the minimal framework-owned agent used by the bootstrap runtime path.
51
+ */
52
+ export declare function createBootstrapRuntimeAgent(): BootstrapRuntimeAgent;
53
+ /**
54
+ * Creates the serializable runtime model reference preserved across workflow
55
+ * steps for one authored agent.
56
+ */
57
+ export declare function createRuntimeModelReference(input: {
58
+ readonly source?: ModuleSourceRef;
59
+ readonly value?: LanguageModel;
60
+ }): RuntimeModelReference;
61
+ /**
62
+ * Creates the runtime-owned turn-preparation shape from a resolved authored
63
+ * agent and the authored tool descriptors prepared for the harness.
64
+ */
65
+ export declare function createResolvedRuntimeTurnAgent(input: {
66
+ readonly agent: ResolvedAgent;
67
+ readonly sandboxes?: readonly PreparedRuntimeSandbox[];
68
+ readonly selector?: string;
69
+ readonly tools: readonly PreparedRuntimeTool[];
70
+ }): RuntimeTurnAgent;
71
+ //# sourceMappingURL=bootstrap.d.ts.map