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,20 @@
1
+ import type { AgentSourceManifest } from "../discover/manifest.js";
2
+ import type { ModuleSourceRef } from "../internal/source-ref.js";
3
+ import { type CompiledAgentManifest } from "./manifest.js";
4
+ /**
5
+ * Compiles one discovery manifest into the normalized manifest loaded by the runtime.
6
+ */
7
+ export declare function compileAgentManifest(manifest: AgentSourceManifest): Promise<CompiledAgentManifest>;
8
+ /**
9
+ * Normalizes one module-backed context definition for the compiled context artifact.
10
+ */
11
+ export declare function compileContextDocumentDefinition(input: {
12
+ readonly agentRoot: string;
13
+ readonly source: ModuleSourceRef;
14
+ }): Promise<{
15
+ readonly content: string;
16
+ readonly id?: string;
17
+ readonly mediaType?: string;
18
+ readonly title?: string;
19
+ }>;
20
+ //# sourceMappingURL=normalize-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-manifest.d.ts","sourceRoot":"","sources":["../../../src/compiler/normalize-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EAKpB,MAAM,yBAAyB,CAAC;AAoBjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAEL,KAAK,qBAAqB,EAc3B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAehC;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC,GAAG,OAAO,CAAC;IACV,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC,CAgBD"}
@@ -0,0 +1,315 @@
1
+ import { join } from "node:path";
2
+ import { stripLogicalPathExtension } from "../discover/filesystem.js";
3
+ import { normalizeAgentDefinition, normalizeContextDocumentDefinition, normalizeScheduleDefinition, normalizeSkillDefinition, normalizeSystemDefinition, } from "../internal/authored-definition/core.js";
4
+ import { normalizeSandboxDefinition } from "../internal/authored-definition/sandbox.js";
5
+ import { normalizeSubagentDefinition, normalizeToolDefinition, } from "../internal/authored-definition/schema-backed.js";
6
+ import { expectObjectRecord, getAuthoredModuleExport, loadAuthoredModuleNamespace, materializeAuthoredModuleExport, } from "../internal/authored-module.js";
7
+ import { DEFAULT_RUNTIME_MODEL_ID } from "../internal/runtime-model.js";
8
+ import { createCompiledAgentManifest, createCompiledAgentNodeManifest, createCompiledSubagentNodeId, ROOT_COMPILED_AGENT_NODE_ID, } from "./manifest.js";
9
+ /**
10
+ * Compiles one discovery manifest into the normalized manifest loaded by the runtime.
11
+ */
12
+ export async function compileAgentManifest(manifest) {
13
+ const [compiledNode, subagentGraph] = await Promise.all([
14
+ compileAgentNodeManifest(manifest),
15
+ compileSubagentGraph({
16
+ appRoot: manifest.appRoot,
17
+ parentNodeId: ROOT_COMPILED_AGENT_NODE_ID,
18
+ subagents: manifest.subagents,
19
+ }),
20
+ ]);
21
+ return createCompiledAgentManifest({
22
+ ...compiledNode,
23
+ subagentEdges: subagentGraph.edges,
24
+ subagents: subagentGraph.nodes,
25
+ });
26
+ }
27
+ /**
28
+ * Normalizes one module-backed context definition for the compiled context artifact.
29
+ */
30
+ export async function compileContextDocumentDefinition(input) {
31
+ const definition = normalizeContextDocumentDefinition(await loadModuleBackedDefinition({
32
+ agentRoot: input.agentRoot,
33
+ kind: "context",
34
+ source: input.source,
35
+ }), `Expected the context export "${input.source.exportName ?? "default"}" from "${input.source.logicalPath}" to match the public Ash shape.`);
36
+ return {
37
+ content: definition.content,
38
+ id: definition.id,
39
+ mediaType: definition.mediaType,
40
+ title: definition.title,
41
+ };
42
+ }
43
+ async function compileAgentNodeManifest(manifest) {
44
+ return createCompiledAgentNodeManifest({
45
+ agentId: manifest.agentId,
46
+ agentRoot: manifest.agentRoot,
47
+ appRoot: manifest.appRoot,
48
+ config: await compileAgentConfig(manifest),
49
+ context: manifest.context,
50
+ diagnosticsSummary: manifest.diagnosticsSummary,
51
+ promptLayers: manifest.system === undefined
52
+ ? []
53
+ : [await compilePromptLayer(manifest.agentRoot, manifest.system)],
54
+ sandboxes: await Promise.all(manifest.sandboxes.map((sandboxSource) => compileSandboxDefinition(manifest.agentRoot, sandboxSource))),
55
+ schedules: await Promise.all(manifest.schedules.map((scheduleSource) => compileScheduleDefinition(manifest.agentRoot, scheduleSource))),
56
+ skills: await Promise.all(manifest.skills.map((skillSource) => compileSkillSource(manifest.agentRoot, skillSource))),
57
+ tools: await Promise.all(manifest.tools.map((toolSource) => compileToolDefinition(manifest.agentRoot, toolSource))),
58
+ workspace: manifest.workspace,
59
+ });
60
+ }
61
+ async function compileAgentConfig(manifest) {
62
+ if (manifest.configModule === undefined) {
63
+ return {
64
+ metadata: {},
65
+ model: {
66
+ id: DEFAULT_RUNTIME_MODEL_ID,
67
+ },
68
+ };
69
+ }
70
+ const definition = normalizeAgentDefinition(await loadModuleBackedDefinition({
71
+ agentRoot: manifest.agentRoot,
72
+ kind: "agent config",
73
+ source: manifest.configModule,
74
+ }), `Expected the agent config export "${manifest.configModule.exportName ?? "default"}" from "${manifest.configModule.logicalPath}" to match the public Ash shape.`);
75
+ const model = normalizeAuthoredModelReference(definition.model, manifest.configModule);
76
+ const compiledConfig = {
77
+ metadata: definition.metadata ?? {},
78
+ model,
79
+ };
80
+ if (definition.id !== undefined) {
81
+ compiledConfig.id = definition.id;
82
+ }
83
+ if (manifest.configModule !== undefined) {
84
+ compiledConfig.source = {
85
+ exportName: manifest.configModule.exportName,
86
+ kind: "module",
87
+ logicalPath: manifest.configModule.logicalPath,
88
+ sourceId: manifest.configModule.sourceId,
89
+ };
90
+ }
91
+ return compiledConfig;
92
+ }
93
+ async function compilePromptLayer(agentRoot, source) {
94
+ if (source === undefined) {
95
+ throw new Error("Missing system source while compiling prompt layers.");
96
+ }
97
+ const definition = source.kind === "markdown"
98
+ ? normalizeSystemDefinition(source.definition, `Expected the compiled system definition at "${source.logicalPath}" to match the public Ash shape.`)
99
+ : normalizeSystemDefinition(await loadModuleBackedDefinition({
100
+ agentRoot,
101
+ kind: "system",
102
+ source,
103
+ }), `Expected the system export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
104
+ return {
105
+ id: definition.id ?? stripLogicalPathExtension(source.logicalPath),
106
+ kind: "system",
107
+ logicalPath: source.logicalPath,
108
+ markdown: definition.markdown,
109
+ sourceId: source.sourceId,
110
+ sourceKind: source.kind,
111
+ };
112
+ }
113
+ async function compileSkillSource(agentRoot, source) {
114
+ if (source.kind === "skill-package") {
115
+ return compileSkillPackageSource(source);
116
+ }
117
+ const definition = source.kind === "markdown"
118
+ ? normalizeSkillDefinition(source.definition, `Expected the compiled skill definition at "${source.logicalPath}" to match the public Ash shape.`)
119
+ : normalizeSkillDefinition(await loadModuleBackedDefinition({
120
+ agentRoot,
121
+ kind: "skill",
122
+ source,
123
+ }), `Expected the skill export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
124
+ return {
125
+ compatibility: definition.compatibility,
126
+ description: definition.description,
127
+ license: definition.license,
128
+ logicalPath: source.logicalPath,
129
+ markdown: definition.markdown,
130
+ metadata: definition.metadata === undefined
131
+ ? undefined
132
+ : {
133
+ ...definition.metadata,
134
+ },
135
+ name: definition.name,
136
+ sourceId: source.sourceId,
137
+ sourceKind: source.kind,
138
+ skillId: definition.id ?? stripLogicalPathExtension(source.logicalPath),
139
+ };
140
+ }
141
+ function compileSkillPackageSource(source) {
142
+ return {
143
+ assetsPath: source.assetsPath,
144
+ compatibility: source.compatibility,
145
+ description: source.description,
146
+ license: source.license,
147
+ logicalPath: source.logicalPath,
148
+ markdown: source.markdown,
149
+ metadata: source.metadata === undefined
150
+ ? undefined
151
+ : {
152
+ ...source.metadata,
153
+ },
154
+ name: source.name,
155
+ referencesPath: source.referencesPath,
156
+ rootPath: source.rootPath,
157
+ scriptsPath: source.scriptsPath,
158
+ skillFilePath: source.skillFilePath,
159
+ skillId: source.skillId,
160
+ sourceId: source.sourceId,
161
+ sourceKind: "skill-package",
162
+ };
163
+ }
164
+ async function compileScheduleDefinition(agentRoot, source) {
165
+ const definition = source.kind === "markdown"
166
+ ? normalizeScheduleDefinition(source.definition, `Expected the compiled schedule definition at "${source.logicalPath}" to match the public Ash shape.`)
167
+ : normalizeScheduleDefinition(await loadModuleBackedDefinition({
168
+ agentRoot,
169
+ kind: "schedule",
170
+ source,
171
+ }), `Expected the schedule export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
172
+ return {
173
+ cron: definition.cron,
174
+ id: definition.id ?? stripLogicalPathExtension(source.logicalPath),
175
+ logicalPath: source.logicalPath,
176
+ markdown: definition.markdown,
177
+ sourceId: source.sourceId,
178
+ sourceKind: source.kind,
179
+ };
180
+ }
181
+ async function compileToolDefinition(agentRoot, source) {
182
+ const definition = normalizeToolDefinition(await loadModuleBackedDefinition({
183
+ agentRoot,
184
+ kind: "tool",
185
+ source,
186
+ }), `Expected the tool export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
187
+ return {
188
+ description: definition.description,
189
+ exportName: source.exportName,
190
+ inputSchema: definition.inputSchema ?? null,
191
+ logicalPath: source.logicalPath,
192
+ name: definition.name,
193
+ sourceId: source.sourceId,
194
+ sourceKind: "module",
195
+ };
196
+ }
197
+ async function compileSandboxDefinition(agentRoot, source) {
198
+ const definition = normalizeSandboxDefinition(await loadModuleBackedDefinition({
199
+ agentRoot,
200
+ kind: "sandbox",
201
+ source,
202
+ }), `Expected the sandbox export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
203
+ const sandboxName = stripLogicalPathExtension(source.logicalPath).replace(/^sandboxes\//, "");
204
+ return {
205
+ description: definition.description ?? null,
206
+ exportName: source.exportName,
207
+ logicalPath: source.logicalPath,
208
+ name: sandboxName,
209
+ sourceId: source.sourceId,
210
+ sourceKind: "module",
211
+ };
212
+ }
213
+ async function compileSubagentGraph(input) {
214
+ const compiledNodes = [];
215
+ const compiledEdges = [];
216
+ for (const subagentSource of input.subagents) {
217
+ const compiledSubagent = await compileLocalSubagent({
218
+ appRoot: input.appRoot,
219
+ parentNodeId: input.parentNodeId,
220
+ source: subagentSource,
221
+ });
222
+ compiledNodes.push(compiledSubagent.node, ...compiledSubagent.descendants.nodes);
223
+ compiledEdges.push({
224
+ childNodeId: compiledSubagent.node.nodeId,
225
+ parentNodeId: input.parentNodeId,
226
+ }, ...compiledSubagent.descendants.edges);
227
+ }
228
+ return {
229
+ edges: compiledEdges,
230
+ nodes: compiledNodes,
231
+ };
232
+ }
233
+ async function compileLocalSubagent(input) {
234
+ if (input.source.manifest.subagentModule === undefined) {
235
+ throw new Error(`Missing the local subagent definition module for "${input.source.logicalPath}" while compiling authored definitions.`);
236
+ }
237
+ const definition = normalizeSubagentDefinition(await loadModuleBackedDefinition({
238
+ agentRoot: input.source.rootPath,
239
+ kind: "local subagent",
240
+ source: input.source.manifest.subagentModule,
241
+ }), `Expected the local subagent export "${input.source.manifest.subagentModule.exportName ?? "default"}" from "${input.source.manifest.subagentModule.logicalPath}" to match the public Ash shape.`);
242
+ const subagentId = definition.id ?? input.source.subagentId;
243
+ const nodeId = createCompiledSubagentNodeId(input.parentNodeId, input.source.sourceId);
244
+ const agent = await compileAgentNodeManifest({
245
+ ...input.source.manifest,
246
+ agentId: subagentId,
247
+ appRoot: input.appRoot,
248
+ });
249
+ const descendants = await compileSubagentGraph({
250
+ appRoot: input.appRoot,
251
+ parentNodeId: nodeId,
252
+ subagents: input.source.manifest.subagents,
253
+ });
254
+ return {
255
+ descendants,
256
+ node: {
257
+ agent,
258
+ description: definition.description,
259
+ entryPath: input.source.entryPath,
260
+ inputSchema: definition.inputSchema,
261
+ logicalPath: input.source.logicalPath,
262
+ name: definition.name,
263
+ nodeId,
264
+ rootPath: input.source.rootPath,
265
+ sourceId: input.source.sourceId,
266
+ subagentId,
267
+ },
268
+ };
269
+ }
270
+ async function loadModuleBackedDefinition(input) {
271
+ const moduleNamespace = await loadAuthoredModuleNamespace(join(input.agentRoot, input.source.logicalPath));
272
+ const exportValue = getAuthoredModuleExport(moduleNamespace, input.source);
273
+ try {
274
+ return await materializeAuthoredModuleExport(exportValue);
275
+ }
276
+ catch (error) {
277
+ throw new Error(`Failed to execute the ${input.kind} export "${input.source.exportName ?? "default"}" from "${input.source.logicalPath}": ${formatUnknownError(error)}`);
278
+ }
279
+ }
280
+ function normalizeAuthoredModelReference(value, source) {
281
+ if (value === undefined) {
282
+ return {
283
+ id: DEFAULT_RUNTIME_MODEL_ID,
284
+ };
285
+ }
286
+ if (typeof value === "string") {
287
+ return {
288
+ id: value,
289
+ };
290
+ }
291
+ const record = expectObjectRecord(value, `Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
292
+ const specificationVersion = record.specificationVersion;
293
+ if (specificationVersion !== "v2" && specificationVersion !== "v3") {
294
+ throw new Error(`Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
295
+ }
296
+ if (typeof record.provider !== "string" ||
297
+ typeof record.modelId !== "string" ||
298
+ typeof record.doGenerate !== "function" ||
299
+ typeof record.doStream !== "function") {
300
+ throw new Error(`Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
301
+ }
302
+ return {
303
+ id: `${record.provider}/${record.modelId}`,
304
+ source: {
305
+ exportName: source.exportName,
306
+ kind: "module",
307
+ logicalPath: source.logicalPath,
308
+ sourceId: source.sourceId,
309
+ },
310
+ };
311
+ }
312
+ function formatUnknownError(error) {
313
+ return error instanceof Error ? error.message : String(error);
314
+ }
315
+ //# sourceMappingURL=normalize-manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-manifest.js","sourceRoot":"","sources":["../../../src/compiler/normalize-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAQtE,OAAO,EACL,wBAAwB,EACxB,kCAAkC,EAClC,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,8B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UAAU,IAAI,SAAS,WAAW,MAAM,CAAC,WAAW,6CAA6C,CACvJ,CAAC;IACF,MAAM,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAEzD,IAAI,oBAAoB,KAAK,IAAI,IAAI,oBAAoB,KAAK,IAAI,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CACb,8CAA8C,MAAM,CAAC,UAAU,IAAI,SAAS,WAAW,MAAM,CAAC,WAAW,6CAA6C,CACvJ,CAAC;IACJ,CAAC;IAED,IACE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ;QACnC,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ;QAClC,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU;QACvC,OAAO,MAAM,CAAC,QAAQ,KAAK,UAAU,EACrC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,8CAA8C,MAAM,CAAC,UAAU,IAAI,SAAS,WAAW,MAAM,CAAC,WAAW,6CAA6C,CACvJ,CAAC;IACJ,CAAC;IAED,OAAO;QACL,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE;QAC1C,MAAM,EAAE;YACN,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B;KACF,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * One copied compiled resource file staged under `.ash/compile/`.
3
+ */
4
+ export interface CopiedCompiledResourceFile {
5
+ compiledPath: string;
6
+ content: Uint8Array;
7
+ contentSha256: string;
8
+ }
9
+ /**
10
+ * Copies one authored file into a compiled artifact directory and returns the
11
+ * staged path metadata shared by context and workspace artifacts.
12
+ */
13
+ export declare function copyCompiledResourceFile(input: {
14
+ agentRoot: string;
15
+ appRoot: string;
16
+ compileDirectoryPath: string;
17
+ copiedLogicalPath: string;
18
+ logicalPath: string;
19
+ }): Promise<CopiedCompiledResourceFile>;
20
+ //# sourceMappingURL=resource-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-files.d.ts","sourceRoot":"","sources":["../../../src/compiler/resource-files.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAetC"}
@@ -0,0 +1,29 @@
1
+ import { createHash } from "node:crypto";
2
+ import { mkdir, readFile, writeFile } from "node:fs/promises";
3
+ import { dirname, join, relative, resolve } from "node:path";
4
+ import { normalizeLogicalPath } from "../discover/filesystem.js";
5
+ /**
6
+ * Copies one authored file into a compiled artifact directory and returns the
7
+ * staged path metadata shared by context and workspace artifacts.
8
+ */
9
+ export async function copyCompiledResourceFile(input) {
10
+ const sourcePath = join(input.agentRoot, input.logicalPath);
11
+ const compiledFilePath = join(input.compileDirectoryPath, input.copiedLogicalPath);
12
+ const content = await readFile(sourcePath);
13
+ await mkdir(dirname(compiledFilePath), {
14
+ recursive: true,
15
+ });
16
+ await writeFile(compiledFilePath, content);
17
+ return {
18
+ compiledPath: toArtifactRelativePath(input.appRoot, compiledFilePath),
19
+ content,
20
+ contentSha256: createContentHash(content),
21
+ };
22
+ }
23
+ function createContentHash(content) {
24
+ return createHash("sha256").update(content).digest("hex");
25
+ }
26
+ function toArtifactRelativePath(appRoot, targetPath) {
27
+ return normalizeLogicalPath(relative(resolve(appRoot), targetPath));
28
+ }
29
+ //# sourceMappingURL=resource-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-files.js","sourceRoot":"","sources":["../../../src/compiler/resource-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAWjE;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,KAM9C;IACC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;QACrC,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAE3C,OAAO;QACL,YAAY,EAAE,sBAAsB,CAAC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC;QACrE,OAAO;QACP,aAAa,EAAE,iBAAiB,CAAC,OAAO,CAAC;KAC1C,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAmB;IAC5C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,sBAAsB,CAAC,OAAe,EAAE,UAAkB;IACjE,OAAO,oBAAoB,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ import type { WorkspaceFileSourceRef } from "../discover/manifest.js";
3
+ /**
4
+ * Stable compiled workspace artifact kind emitted by the compiler.
5
+ */
6
+ export declare const WORKSPACE_RESOURCES_ARTIFACT_KIND = "ash-workspace-resources";
7
+ /**
8
+ * Current compiled workspace artifact schema version.
9
+ */
10
+ export declare const WORKSPACE_RESOURCES_ARTIFACT_VERSION = 1;
11
+ /**
12
+ * Compiler-owned metadata for one copied authored workspace seed file.
13
+ */
14
+ export interface CompiledWorkspaceFileResource {
15
+ byteSize: number;
16
+ compiledPath: string;
17
+ contentSha256: string;
18
+ logicalPath: string;
19
+ sourceId: string;
20
+ }
21
+ /**
22
+ * Zod schema for one compiled workspace file resource.
23
+ */
24
+ export declare const compiledWorkspaceFileResourceSchema: z.ZodType<CompiledWorkspaceFileResource>;
25
+ /**
26
+ * Versioned compiled workspace artifact written under `.ash/compile/`.
27
+ */
28
+ export interface WorkspaceResourcesArtifact {
29
+ kind: typeof WORKSPACE_RESOURCES_ARTIFACT_KIND;
30
+ resources: CompiledWorkspaceFileResource[];
31
+ version: typeof WORKSPACE_RESOURCES_ARTIFACT_VERSION;
32
+ }
33
+ /**
34
+ * Zod schema for the compiled workspace resources artifact.
35
+ */
36
+ export declare const workspaceResourcesArtifactSchema: z.ZodType<WorkspaceResourcesArtifact>;
37
+ /**
38
+ * Input for copying authored `workspace/` seed files into compiler-owned
39
+ * artifacts.
40
+ */
41
+ export interface WriteCompiledWorkspaceResourcesInput {
42
+ agentRoot: string;
43
+ appRoot: string;
44
+ compileWorkspaceDirectoryPath: string;
45
+ workspace: readonly WorkspaceFileSourceRef[];
46
+ }
47
+ /**
48
+ * Result of copying authored workspace seed files for compiled runtime use.
49
+ */
50
+ export interface WriteCompiledWorkspaceResourcesResult {
51
+ artifact: WorkspaceResourcesArtifact;
52
+ }
53
+ /**
54
+ * Copies authored `workspace/` files into `.ash/compile/workspace/` and
55
+ * returns the compiler-owned metadata artifact for runtime hydration.
56
+ */
57
+ export declare function writeCompiledWorkspaceResources(input: WriteCompiledWorkspaceResourcesInput): Promise<WriteCompiledWorkspaceResourcesResult>;
58
+ //# sourceMappingURL=workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/compiler/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAItE;;GAEG;AACH,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAQ9E,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,iCAAiC,CAAC;IAC/C,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,OAAO,EAAE,OAAO,oCAAoC,CAAC;CACtD;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAMxE,CAAC;AAEZ;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B,EAAE,MAAM,CAAC;IACtC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,QAAQ,EAAE,0BAA0B,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,KAAK,EAAE,oCAAoC,GAC1C,OAAO,CAAC,qCAAqC,CAAC,CAqBhD"}
@@ -0,0 +1,70 @@
1
+ import { z } from "zod";
2
+ import { stripWorkspaceRootLogicalPath } from "../internal/logical-paths.js";
3
+ import { copyCompiledResourceFile } from "./resource-files.js";
4
+ /**
5
+ * Stable compiled workspace artifact kind emitted by the compiler.
6
+ */
7
+ export const WORKSPACE_RESOURCES_ARTIFACT_KIND = "ash-workspace-resources";
8
+ /**
9
+ * Current compiled workspace artifact schema version.
10
+ */
11
+ export const WORKSPACE_RESOURCES_ARTIFACT_VERSION = 1;
12
+ /**
13
+ * Zod schema for one compiled workspace file resource.
14
+ */
15
+ export const compiledWorkspaceFileResourceSchema = z
16
+ .object({
17
+ byteSize: z.number().finite(),
18
+ compiledPath: z.string(),
19
+ contentSha256: z.string(),
20
+ logicalPath: z.string(),
21
+ sourceId: z.string(),
22
+ })
23
+ .strict();
24
+ /**
25
+ * Zod schema for the compiled workspace resources artifact.
26
+ */
27
+ export const workspaceResourcesArtifactSchema = z
28
+ .object({
29
+ kind: z.literal(WORKSPACE_RESOURCES_ARTIFACT_KIND),
30
+ resources: z.array(compiledWorkspaceFileResourceSchema),
31
+ version: z.literal(WORKSPACE_RESOURCES_ARTIFACT_VERSION),
32
+ })
33
+ .strict();
34
+ /**
35
+ * Copies authored `workspace/` files into `.ash/compile/workspace/` and
36
+ * returns the compiler-owned metadata artifact for runtime hydration.
37
+ */
38
+ export async function writeCompiledWorkspaceResources(input) {
39
+ const resources = await Promise.all(input.workspace.map(async (sourceRef) => copyCompiledWorkspaceFile({
40
+ agentRoot: input.agentRoot,
41
+ appRoot: input.appRoot,
42
+ compileWorkspaceDirectoryPath: input.compileWorkspaceDirectoryPath,
43
+ sourceRef,
44
+ })));
45
+ resources.sort((left, right) => left.logicalPath.localeCompare(right.logicalPath));
46
+ return {
47
+ artifact: {
48
+ kind: WORKSPACE_RESOURCES_ARTIFACT_KIND,
49
+ resources,
50
+ version: WORKSPACE_RESOURCES_ARTIFACT_VERSION,
51
+ },
52
+ };
53
+ }
54
+ async function copyCompiledWorkspaceFile(input) {
55
+ const copiedFile = await copyCompiledResourceFile({
56
+ agentRoot: input.agentRoot,
57
+ appRoot: input.appRoot,
58
+ compileDirectoryPath: input.compileWorkspaceDirectoryPath,
59
+ copiedLogicalPath: stripWorkspaceRootLogicalPath(input.sourceRef.logicalPath),
60
+ logicalPath: input.sourceRef.logicalPath,
61
+ });
62
+ return {
63
+ byteSize: input.sourceRef.byteSize,
64
+ compiledPath: copiedFile.compiledPath,
65
+ contentSha256: copiedFile.contentSha256,
66
+ logicalPath: input.sourceRef.logicalPath,
67
+ sourceId: input.sourceRef.sourceId,
68
+ };
69
+ }
70
+ //# sourceMappingURL=workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../src/compiler/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;AAE3E;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AAatD;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA6C,CAAC;KAC3F,MAAM,CAAC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,GAAG,MAAM,wBAAwB,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,oBAAoB,EAAE,KAAK,CAAC,6BAA6B;QACzD,iBAAiB,EAAE,6BAA6B,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;QAC7E,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW;KACzC,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ;QAClC,YAAY,EAAE,UAAU,CAAC,YAAY;QACrC,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW;QACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ;KACnC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { Dirent } from "node:fs";
2
+ import { type DiscoverDiagnostic } from "./diagnostics.js";
3
+ import { type ContextSourceRef } from "./manifest.js";
4
+ /**
5
+ * Diagnostic emitted when the authored `context/` root exists but is not a
6
+ * directory.
7
+ */
8
+ export declare const DISCOVER_CONTEXT_DIRECTORY_INVALID = "discover/context-directory-invalid";
9
+ /**
10
+ * Diagnostic emitted when discovery finds an unsupported non-file entry under
11
+ * the authored `context/` tree.
12
+ */
13
+ export declare const DISCOVER_CONTEXT_ENTRY_UNSUPPORTED = "discover/context-entry-unsupported";
14
+ type StringDirent = Dirent<string>;
15
+ /**
16
+ * Input for discovering authored `context/` resources.
17
+ */
18
+ export interface DiscoverContextSourcesInput {
19
+ agentRoot: string;
20
+ rootEntries: readonly StringDirent[];
21
+ }
22
+ /**
23
+ * Result of recursively discovering authored `context/` resources.
24
+ */
25
+ export interface DiscoverContextSourcesResult {
26
+ context: ContextSourceRef[];
27
+ diagnostics: DiscoverDiagnostic[];
28
+ }
29
+ /**
30
+ * Discovers file-backed and module-backed resources under `context/` without
31
+ * executing any authored modules.
32
+ */
33
+ export declare function discoverContextSources(input: DiscoverContextSourcesInput): Promise<DiscoverContextSourcesResult>;
34
+ export {};
35
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/discover/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,SAAS,YAAY,EAAE,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,4BAA4B,CAAC,CAoDvC"}