@alexkroman1/aai-cli 16.0.1 → 16.1.0

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 (410) hide show
  1. package/README.md +1 -1
  2. package/dist/{_build-target-55dJisQ-.mjs → _build-target-ClEEuUuW.mjs} +11 -2
  3. package/dist/_build-target.d.ts +28 -0
  4. package/dist/{_dev-server-BzWB6-4y.mjs → _dev-server-D1wKiA0_.mjs} +2 -2
  5. package/dist/_dev-vite-config.d.ts +1 -1
  6. package/dist/{_init-BzQbV8Zh.mjs → _init-Bp1CjRrU.mjs} +1 -1
  7. package/dist/{_server-common-De0haHr9.mjs → _server-common-DAcv1nC5.mjs} +46 -2
  8. package/dist/_server-common.d.ts +39 -0
  9. package/dist/{_vitest-runner-AVR9VtXh.mjs → _vitest-runner-BiAMIir1.mjs} +1 -1
  10. package/dist/_vitest-runner.d.ts +1 -1
  11. package/dist/{_workflow-determinism-CvpqMpdh.mjs → _workflow-determinism-CLxFQ5ox.mjs} +1 -1
  12. package/dist/_workflow-determinism.d.ts +1 -1
  13. package/dist/{build-ButI2IKc.mjs → build-O6BT51x_.mjs} +69 -6
  14. package/dist/build.d.ts +56 -0
  15. package/dist/cli.mjs +11 -11
  16. package/dist/{deploy-CGqPU5U-.mjs → deploy-lldQyJVj.mjs} +2 -2
  17. package/dist/{dev-kodAY23K.mjs → dev-Du8pCWFq.mjs} +1 -1
  18. package/dist/{eval-DvoSz7SZ.mjs → eval-Ducmkt1n.mjs} +2 -2
  19. package/dist/{init-D363Ls5u.mjs → init-CY4NAXAA.mjs} +2 -2
  20. package/dist/scaffold/CLAUDE.md +36 -36
  21. package/dist/scaffold/package.json +4 -4
  22. package/dist/start.mjs +1 -1
  23. package/dist/{studio-CtRBVVFR.mjs → studio-It7SRfUN.mjs} +1 -1
  24. package/dist/templates/{hiring-desk → applicant-screening-agent}/crews.ts +1 -1
  25. package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/screening_status.ts +1 -1
  26. package/dist/templates/{call-audit → call-audit-workflow}/agent.ts +2 -2
  27. package/dist/templates/{call-audit → call-audit-workflow}/client.tsx +3 -3
  28. package/dist/templates/{call-audit → call-audit-workflow}/guards.test.ts +2 -2
  29. package/dist/templates/{call-audit → call-audit-workflow}/workflows/summarize.ts +1 -1
  30. package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.test.ts +1 -1
  31. package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.test.ts +2 -2
  32. package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.ts +1 -1
  33. package/dist/templates/{pipeline-simple → custom-pipeline-agent}/modes.test.ts +1 -1
  34. package/dist/templates/{redline → document-redline-workflow}/agent.ts +2 -2
  35. package/dist/templates/{redline → document-redline-workflow}/client.tsx +1 -1
  36. package/dist/templates/{redline → document-redline-workflow}/workflows/redline.ts +1 -1
  37. package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.test.ts +1 -1
  38. package/dist/templates/{dispatch-center → emergency-dispatch-agent}/events.ts +1 -1
  39. package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_create.ts +1 -1
  40. package/dist/templates/{night-owl → entertainment-picks-agent}/agent.test.ts +1 -1
  41. package/dist/templates/{night-owl → entertainment-picks-agent}/client.tsx +1 -1
  42. package/dist/templates/{executive-assistant → executive-inbox-agent}/meeting.ts +1 -1
  43. package/dist/templates/{executive-assistant → executive-inbox-agent}/shared.ts +2 -2
  44. package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/send_calendar_invite.ts +1 -1
  45. package/dist/templates/{hotel-desk → hotel-reception-agent}/concierge.ts +1 -1
  46. package/dist/templates/{hotel-desk → hotel-reception-agent}/shared.ts +1 -1
  47. package/dist/templates/{link-digest → link-digest-workflow}/agent.test.ts +2 -2
  48. package/dist/templates/{link-digest → link-digest-workflow}/agent.ts +3 -3
  49. package/dist/templates/{link-digest → link-digest-workflow}/client.tsx +2 -2
  50. package/dist/templates/{link-digest → link-digest-workflow}/workflows/digest.ts +1 -1
  51. package/dist/templates/{health-assistant → medication-safety-agent}/agent.test.ts +1 -1
  52. package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.test.ts +2 -2
  53. package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.ts +1 -1
  54. package/dist/templates/{recap-workflow → meeting-recap-agent}/workflows/recap.ts +3 -3
  55. package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.eval.test.ts +1 -1
  56. package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.test.ts +1 -1
  57. package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.ts +2 -2
  58. package/dist/templates/{podcast-digest → podcast-digest-workflow}/client.tsx +3 -3
  59. package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/digest.ts +1 -1
  60. package/dist/templates/{simple → quickstart-agent}/agent.test.ts +3 -3
  61. package/dist/templates/{simple → quickstart-agent}/agent.ts +1 -1
  62. package/dist/templates/{research-workflow → research-handoff-agent}/agent.test.ts +1 -1
  63. package/dist/templates/{research-workflow → research-handoff-agent}/agent.ts +1 -1
  64. package/dist/templates/{research-workflow → research-handoff-agent}/workflows/filing.ts +1 -1
  65. package/dist/templates/{research-workflow → research-handoff-agent}/workflows/research.ts +1 -1
  66. package/dist/templates/{research-workflow → research-handoff-agent}/workflows/review.ts +1 -1
  67. package/dist/templates/{plan-and-execute → research-planner-agent}/shared.ts +1 -1
  68. package/dist/templates/{retail → retail-orders-agent}/pending.ts +2 -2
  69. package/dist/templates/{retail → retail-orders-agent}/shared.ts +1 -1
  70. package/dist/templates/{retail → retail-orders-agent}/store.ts +3 -3
  71. package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.ts +1 -1
  72. package/dist/templates/{roadside-assist → roadside-assistance-agent}/call.ts +1 -1
  73. package/dist/templates/{roadside-assist → roadside-assistance-agent}/shared.ts +3 -3
  74. package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/dispatch_truck.ts +1 -1
  75. package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.test.ts +1 -1
  76. package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.ts +1 -1
  77. package/dist/templates/{spoken-summary → spoken-summary-workflow}/client.tsx +1 -1
  78. package/dist/templates/{spoken-summary → spoken-summary-workflow}/workflows/summarize.ts +1 -1
  79. package/dist/templates/{solo-rpg → tabletop-rpg-agent}/shared.ts +3 -3
  80. package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/check_state.ts +1 -1
  81. package/dist/templates/{infocom-adventure → text-adventure-agent}/client.tsx +2 -2
  82. package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.eval.test.ts +3 -3
  83. package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.ts +1 -1
  84. package/dist/templates/{briefing-desk → topic-briefing-agent}/shared.ts +1 -1
  85. package/dist/templates/{briefing-desk → topic-briefing-agent}/slack.ts +1 -1
  86. package/dist/templates/transcription-workflow/agent.test.ts +1 -1
  87. package/dist/templates/transcription-workflow/agent.ts +1 -1
  88. package/dist/templates/transcription-workflow/client.tsx +1 -1
  89. package/dist/templates/transcription-workflow/workflows/batch.ts +2 -2
  90. package/dist/templates/transcription-workflow/workflows/transcribe.ts +1 -1
  91. package/dist/templates/{travel-concierge → travel-concierge-agent}/shared.ts +1 -1
  92. package/dist/templates/{web-researcher → web-research-agent}/agent.eval.test.ts +1 -1
  93. package/dist/templates/{web-researcher → web-research-agent}/agent.test.ts +1 -1
  94. package/dist/templates/{web-researcher → web-research-agent}/agent.ts +1 -1
  95. package/dist/templates/{word-wrangler → word-game-agent}/game.ts +1 -1
  96. package/dist/templates/{word-wrangler → word-game-agent}/shared.ts +1 -1
  97. package/dist/{test-Cllnx81G.mjs → test-PHHv0Vj6.mjs} +1 -1
  98. package/package.json +4 -4
  99. /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.eval.test.ts +0 -0
  100. /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.test.ts +0 -0
  101. /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.ts +0 -0
  102. /package/dist/templates/{hiring-desk → applicant-screening-agent}/client.tsx +0 -0
  103. /package/dist/templates/{hiring-desk → applicant-screening-agent}/leads.json +0 -0
  104. /package/dist/templates/{hiring-desk → applicant-screening-agent}/screening-lock.test.ts +0 -0
  105. /package/dist/templates/{hiring-desk → applicant-screening-agent}/screening-lock.ts +0 -0
  106. /package/dist/templates/{hiring-desk → applicant-screening-agent}/shared.ts +0 -0
  107. /package/dist/templates/{hiring-desk → applicant-screening-agent}/system-prompt.md +0 -0
  108. /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/candidate_details.ts +0 -0
  109. /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/proceed_to_emails.ts +0 -0
  110. /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/read_email.ts +0 -0
  111. /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/rescore_with_feedback.ts +0 -0
  112. /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/screen_candidates.ts +0 -0
  113. /package/dist/templates/{call-audit → call-audit-workflow}/agent.eval.test.ts +0 -0
  114. /package/dist/templates/{call-audit → call-audit-workflow}/agent.test.ts +0 -0
  115. /package/dist/templates/{call-audit → call-audit-workflow}/workflows/audit.ts +0 -0
  116. /package/dist/templates/{call-audit → call-audit-workflow}/workflows/ingest.ts +0 -0
  117. /package/dist/templates/{call-audit → call-audit-workflow}/workflows/media.ts +0 -0
  118. /package/dist/templates/{call-audit → call-audit-workflow}/workflows/sync-api.ts +0 -0
  119. /package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.eval.test.ts +0 -0
  120. /package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.ts +0 -0
  121. /package/dist/templates/{code-interpreter → code-interpreter-agent}/system-prompt.md +0 -0
  122. /package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.eval.test.ts +0 -0
  123. /package/dist/templates/{pipeline-simple → custom-pipeline-agent}/stages.test.ts +0 -0
  124. /package/dist/templates/{redline → document-redline-workflow}/agent.eval.test.ts +0 -0
  125. /package/dist/templates/{redline → document-redline-workflow}/agent.test.ts +0 -0
  126. /package/dist/templates/{redline → document-redline-workflow}/form.ts +0 -0
  127. /package/dist/templates/{redline → document-redline-workflow}/workflows/prompts.ts +0 -0
  128. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.eval.test.ts +0 -0
  129. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.ts +0 -0
  130. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/client.tsx +0 -0
  131. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/shared.ts +0 -0
  132. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/system-prompt.md +0 -0
  133. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_add_note.ts +0 -0
  134. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_escalate.ts +0 -0
  135. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_get.ts +0 -0
  136. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_triage.ts +0 -0
  137. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_update_status.ts +0 -0
  138. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_dashboard.ts +0 -0
  139. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_protocols.ts +0 -0
  140. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_run_scenario.ts +0 -0
  141. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_dispatch.ts +0 -0
  142. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_get_available.ts +0 -0
  143. /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_update_status.ts +0 -0
  144. /package/dist/templates/{night-owl → entertainment-picks-agent}/agent.eval.test.ts +0 -0
  145. /package/dist/templates/{night-owl → entertainment-picks-agent}/agent.ts +0 -0
  146. /package/dist/templates/{night-owl → entertainment-picks-agent}/shared.ts +0 -0
  147. /package/dist/templates/{night-owl → entertainment-picks-agent}/system-prompt.md +0 -0
  148. /package/dist/templates/{night-owl → entertainment-picks-agent}/tools/recommend.ts +0 -0
  149. /package/dist/templates/{night-owl → entertainment-picks-agent}/tools/revisit.ts +0 -0
  150. /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.eval.test.ts +0 -0
  151. /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.test.ts +0 -0
  152. /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.ts +0 -0
  153. /package/dist/templates/{executive-assistant → executive-inbox-agent}/calendar.test.ts +0 -0
  154. /package/dist/templates/{executive-assistant → executive-inbox-agent}/client.tsx +0 -0
  155. /package/dist/templates/{executive-assistant → executive-inbox-agent}/inbox.ts +0 -0
  156. /package/dist/templates/{executive-assistant → executive-inbox-agent}/nodes.ts +0 -0
  157. /package/dist/templates/{executive-assistant → executive-inbox-agent}/prompts.ts +0 -0
  158. /package/dist/templates/{executive-assistant → executive-inbox-agent}/review.ts +0 -0
  159. /package/dist/templates/{executive-assistant → executive-inbox-agent}/system-prompt.md +0 -0
  160. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/accept.ts +0 -0
  161. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/ask_question.ts +0 -0
  162. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/draft_reply.ts +0 -0
  163. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/edit.ts +0 -0
  164. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/ignore.ts +0 -0
  165. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/inbox_status.ts +0 -0
  166. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/meeting_assistant.ts +0 -0
  167. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/new_email.ts +0 -0
  168. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/open_email.ts +0 -0
  169. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/respond.ts +0 -0
  170. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/review_memory.ts +0 -0
  171. /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/triage_inbox.ts +0 -0
  172. /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.eval.test.ts +0 -0
  173. /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.test.ts +0 -0
  174. /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.ts +0 -0
  175. /package/dist/templates/{hotel-desk → hotel-reception-agent}/booking.ts +0 -0
  176. /package/dist/templates/{hotel-desk → hotel-reception-agent}/card.ts +0 -0
  177. /package/dist/templates/{hotel-desk → hotel-reception-agent}/catalogs.ts +0 -0
  178. /package/dist/templates/{hotel-desk → hotel-reception-agent}/client.tsx +0 -0
  179. /package/dist/templates/{hotel-desk → hotel-reception-agent}/desk-seams.test.ts +0 -0
  180. /package/dist/templates/{hotel-desk → hotel-reception-agent}/desk.ts +0 -0
  181. /package/dist/templates/{hotel-desk → hotel-reception-agent}/disputes.ts +0 -0
  182. /package/dist/templates/{hotel-desk → hotel-reception-agent}/events.ts +0 -0
  183. /package/dist/templates/{hotel-desk → hotel-reception-agent}/hotel.ts +0 -0
  184. /package/dist/templates/{hotel-desk → hotel-reception-agent}/policies.ts +0 -0
  185. /package/dist/templates/{hotel-desk → hotel-reception-agent}/records.ts +0 -0
  186. /package/dist/templates/{hotel-desk → hotel-reception-agent}/restaurant.ts +0 -0
  187. /package/dist/templates/{hotel-desk → hotel-reception-agent}/seed.ts +0 -0
  188. /package/dist/templates/{hotel-desk → hotel-reception-agent}/system-prompt.md +0 -0
  189. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/abandon_booking.ts +0 -0
  190. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/add_to_waitlist.ts +0 -0
  191. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_airport_car.ts +0 -0
  192. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_business_center.ts +0 -0
  193. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_spa_appointment.ts +0 -0
  194. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_tour.ts +0 -0
  195. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/cancel_restaurant_reservation.ts +0 -0
  196. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/cancel_room_booking.ts +0 -0
  197. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/check_restaurant_availability.ts +0 -0
  198. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/check_room_availability.ts +0 -0
  199. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/choose_room.ts +0 -0
  200. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/confirm_booking.ts +0 -0
  201. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/dispatch_emergency.ts +0 -0
  202. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/dispute_charge.ts +0 -0
  203. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/flag_late_arrival.ts +0 -0
  204. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_booking.ts +0 -0
  205. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_guest_history.ts +0 -0
  206. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_invoice.ts +0 -0
  207. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_policy.ts +0 -0
  208. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_restaurant_reservation.ts +0 -0
  209. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/modify_restaurant_reservation.ts +0 -0
  210. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/order_flowers.ts +0 -0
  211. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_card.ts +0 -0
  212. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_followup.ts +0 -0
  213. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_group_inquiry.ts +0 -0
  214. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_guest_details.ts +0 -0
  215. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/reinstate_booking.ts +0 -0
  216. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/request_flight_reconfirmation.ts +0 -0
  217. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/resend_confirmation.ts +0 -0
  218. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/reserve_table.ts +0 -0
  219. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/resolve_room_conflict.ts +0 -0
  220. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/schedule_wakeup_call.ts +0 -0
  221. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_do_not_disturb.ts +0 -0
  222. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_extras.ts +0 -0
  223. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_stay.ts +0 -0
  224. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/start_booking_modification.ts +0 -0
  225. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/start_room_booking.ts +0 -0
  226. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/take_guest_message.ts +0 -0
  227. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/transfer_call.ts +0 -0
  228. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/update_card.ts +0 -0
  229. /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/verify_booking.ts +0 -0
  230. /package/dist/templates/{link-digest → link-digest-workflow}/agent.eval.test.ts +0 -0
  231. /package/dist/templates/{link-digest → link-digest-workflow}/api-client.ts +0 -0
  232. /package/dist/templates/{health-assistant → medication-safety-agent}/agent.eval.test.ts +0 -0
  233. /package/dist/templates/{health-assistant → medication-safety-agent}/agent.ts +0 -0
  234. /package/dist/templates/{health-assistant → medication-safety-agent}/fda.test.ts +0 -0
  235. /package/dist/templates/{health-assistant → medication-safety-agent}/fda.ts +0 -0
  236. /package/dist/templates/{health-assistant → medication-safety-agent}/system-prompt.md +0 -0
  237. /package/dist/templates/{health-assistant → medication-safety-agent}/tools/check_drug_interaction.ts +0 -0
  238. /package/dist/templates/{health-assistant → medication-safety-agent}/tools/medication_lookup.ts +0 -0
  239. /package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.eval.test.ts +0 -0
  240. /package/dist/templates/{recap-workflow → meeting-recap-agent}/shared.ts +0 -0
  241. /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/cancel_recap.ts +0 -0
  242. /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/keep_transcript.ts +0 -0
  243. /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/recap_progress.ts +0 -0
  244. /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/recap_status.ts +0 -0
  245. /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/request_recap.ts +0 -0
  246. /package/dist/templates/{recap-workflow → meeting-recap-agent}/workflows/tokens.ts +0 -0
  247. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.eval.test.ts +0 -0
  248. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.test.ts +0 -0
  249. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.ts +0 -0
  250. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/client.tsx +0 -0
  251. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/shared.ts +0 -0
  252. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/system-prompt.md +0 -0
  253. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/add_pizza.ts +0 -0
  254. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/place_order.ts +0 -0
  255. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/remove_pizza.ts +0 -0
  256. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/set_customer_name.ts +0 -0
  257. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/update_pizza.ts +0 -0
  258. /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/view_order.ts +0 -0
  259. /package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/feeds.ts +0 -0
  260. /package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/slack.ts +0 -0
  261. /package/dist/templates/{simple → quickstart-agent}/agent.eval.test.ts +0 -0
  262. /package/dist/templates/{research-workflow → research-handoff-agent}/agent.eval.test.ts +0 -0
  263. /package/dist/templates/{research-workflow → research-handoff-agent}/shared.ts +0 -0
  264. /package/dist/templates/{research-workflow → research-handoff-agent}/tools/file_it_now.ts +0 -0
  265. /package/dist/templates/{research-workflow → research-handoff-agent}/tools/request_research.ts +0 -0
  266. /package/dist/templates/{research-workflow → research-handoff-agent}/tools/research_progress.ts +0 -0
  267. /package/dist/templates/{research-workflow → research-handoff-agent}/tools/research_status.ts +0 -0
  268. /package/dist/templates/{research-workflow → research-handoff-agent}/workflows/notes.ts +0 -0
  269. /package/dist/templates/{research-workflow → research-handoff-agent}/workflows/prompts.ts +0 -0
  270. /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.eval.test.ts +0 -0
  271. /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.test.ts +0 -0
  272. /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.ts +0 -0
  273. /package/dist/templates/{plan-and-execute → research-planner-agent}/client.tsx +0 -0
  274. /package/dist/templates/{plan-and-execute → research-planner-agent}/procedure.ts +0 -0
  275. /package/dist/templates/{plan-and-execute → research-planner-agent}/prompts.ts +0 -0
  276. /package/dist/templates/{plan-and-execute → research-planner-agent}/system-prompt.md +0 -0
  277. /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/plan_status.ts +0 -0
  278. /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/revise_plan.ts +0 -0
  279. /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/start_plan.ts +0 -0
  280. /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/work_next_step.ts +0 -0
  281. /package/dist/templates/{retail → retail-orders-agent}/address.ts +0 -0
  282. /package/dist/templates/{retail → retail-orders-agent}/agent.eval.test.ts +0 -0
  283. /package/dist/templates/{retail → retail-orders-agent}/agent.test.ts +0 -0
  284. /package/dist/templates/{retail → retail-orders-agent}/agent.ts +0 -0
  285. /package/dist/templates/{retail → retail-orders-agent}/authenticate.ts +0 -0
  286. /package/dist/templates/{retail → retail-orders-agent}/cancel.ts +0 -0
  287. /package/dist/templates/{retail → retail-orders-agent}/client.tsx +0 -0
  288. /package/dist/templates/{retail → retail-orders-agent}/payment.ts +0 -0
  289. /package/dist/templates/{retail → retail-orders-agent}/pending.test.ts +0 -0
  290. /package/dist/templates/{retail → retail-orders-agent}/refund.ts +0 -0
  291. /package/dist/templates/{retail → retail-orders-agent}/registry.test.ts +0 -0
  292. /package/dist/templates/{retail → retail-orders-agent}/resolve.test.ts +0 -0
  293. /package/dist/templates/{retail → retail-orders-agent}/resolve.ts +0 -0
  294. /package/dist/templates/{retail → retail-orders-agent}/returns.ts +0 -0
  295. /package/dist/templates/{retail → retail-orders-agent}/seed.json +0 -0
  296. /package/dist/templates/{retail → retail-orders-agent}/seed.test.ts +0 -0
  297. /package/dist/templates/{retail → retail-orders-agent}/shared.test.ts +0 -0
  298. /package/dist/templates/{retail → retail-orders-agent}/store.test.ts +0 -0
  299. /package/dist/templates/{retail → retail-orders-agent}/swap.test.ts +0 -0
  300. /package/dist/templates/{retail → retail-orders-agent}/swap.ts +0 -0
  301. /package/dist/templates/{retail → retail-orders-agent}/system-prompt.md +0 -0
  302. /package/dist/templates/{retail → retail-orders-agent}/tools/cancel_change.ts +0 -0
  303. /package/dist/templates/{retail → retail-orders-agent}/tools/cancel_pending_order.ts +0 -0
  304. /package/dist/templates/{retail → retail-orders-agent}/tools/confirm_change.ts +0 -0
  305. /package/dist/templates/{retail → retail-orders-agent}/tools/exchange_delivered_order_items.ts +0 -0
  306. /package/dist/templates/{retail → retail-orders-agent}/tools/find_user_id_by_email.ts +0 -0
  307. /package/dist/templates/{retail → retail-orders-agent}/tools/find_user_id_by_name_zip.ts +0 -0
  308. /package/dist/templates/{retail → retail-orders-agent}/tools/get_item_details.ts +0 -0
  309. /package/dist/templates/{retail → retail-orders-agent}/tools/get_order_details.ts +0 -0
  310. /package/dist/templates/{retail → retail-orders-agent}/tools/get_product_details.ts +0 -0
  311. /package/dist/templates/{retail → retail-orders-agent}/tools/get_user_details.ts +0 -0
  312. /package/dist/templates/{retail → retail-orders-agent}/tools/list_all_product_types.ts +0 -0
  313. /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_address.ts +0 -0
  314. /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_items.ts +0 -0
  315. /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_payment.ts +0 -0
  316. /package/dist/templates/{retail → retail-orders-agent}/tools/modify_user_address.ts +0 -0
  317. /package/dist/templates/{retail → retail-orders-agent}/tools/return_delivered_order_items.ts +0 -0
  318. /package/dist/templates/{retail → retail-orders-agent}/tools/transfer_to_human_agents.ts +0 -0
  319. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.eval.test.ts +0 -0
  320. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.test.ts +0 -0
  321. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/events.ts +0 -0
  322. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/system-prompt.md +0 -0
  323. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/acknowledge_disclosure.ts +0 -0
  324. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/job_status.ts +0 -0
  325. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/lookup_coverage.ts +0 -0
  326. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/report_location.ts +0 -0
  327. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/service_disclosure.ts +0 -0
  328. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/yard.test.ts +0 -0
  329. /package/dist/templates/{roadside-assist → roadside-assistance-agent}/yard.ts +0 -0
  330. /package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.eval.test.ts +0 -0
  331. /package/dist/templates/{spoken-summary → spoken-summary-workflow}/workflows/transcribe.ts +0 -0
  332. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.eval.test.ts +0 -0
  333. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.test.ts +0 -0
  334. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.ts +0 -0
  335. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/client.tsx +0 -0
  336. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/system-prompt.md +0 -0
  337. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/action_roll.ts +0 -0
  338. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/burn_momentum.ts +0 -0
  339. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/oracle.ts +0 -0
  340. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/setup_character.ts +0 -0
  341. /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/update_state.ts +0 -0
  342. /package/dist/templates/{support-line → technical-support-agent}/agent.eval.test.ts +0 -0
  343. /package/dist/templates/{support-line → technical-support-agent}/agent.test.ts +0 -0
  344. /package/dist/templates/{support-line → technical-support-agent}/agent.ts +0 -0
  345. /package/dist/templates/{support-line → technical-support-agent}/client.tsx +0 -0
  346. /package/dist/templates/{support-line → technical-support-agent}/knowledge.json +0 -0
  347. /package/dist/templates/{support-line → technical-support-agent}/nodes.ts +0 -0
  348. /package/dist/templates/{support-line → technical-support-agent}/procedure.ts +0 -0
  349. /package/dist/templates/{support-line → technical-support-agent}/prompts.ts +0 -0
  350. /package/dist/templates/{support-line → technical-support-agent}/shared.ts +0 -0
  351. /package/dist/templates/{support-line → technical-support-agent}/system-prompt.md +0 -0
  352. /package/dist/templates/{support-line → technical-support-agent}/tools/answer_question.ts +0 -0
  353. /package/dist/templates/{support-line → technical-support-agent}/tools/list_topics.ts +0 -0
  354. /package/dist/templates/{support-line → technical-support-agent}/tools/log_ticket.ts +0 -0
  355. /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.eval.test.ts +0 -0
  356. /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.test.ts +0 -0
  357. /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.ts +0 -0
  358. /package/dist/templates/{infocom-adventure → text-adventure-agent}/shared.ts +0 -0
  359. /package/dist/templates/{infocom-adventure → text-adventure-agent}/system-prompt.md +0 -0
  360. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_drop.ts +0 -0
  361. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_flag.ts +0 -0
  362. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_get.ts +0 -0
  363. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_move.ts +0 -0
  364. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_restart.ts +0 -0
  365. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_score.ts +0 -0
  366. /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_take.ts +0 -0
  367. /package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.test.ts +0 -0
  368. /package/dist/templates/{briefing-desk → topic-briefing-agent}/system-prompt.md +0 -0
  369. /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/briefing_so_far.ts +0 -0
  370. /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/research_topic.ts +0 -0
  371. /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/send_briefing.ts +0 -0
  372. /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/verify_claim.ts +0 -0
  373. /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.eval.test.ts +0 -0
  374. /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.test.ts +0 -0
  375. /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.ts +0 -0
  376. /package/dist/templates/{travel-concierge → travel-concierge-agent}/call-events.ts +0 -0
  377. /package/dist/templates/{travel-concierge → travel-concierge-agent}/client.tsx +0 -0
  378. /package/dist/templates/{travel-concierge → travel-concierge-agent}/routing.ts +0 -0
  379. /package/dist/templates/{travel-concierge → travel-concierge-agent}/system-prompt.md +0 -0
  380. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_car_rental.ts +0 -0
  381. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_excursion.ts +0 -0
  382. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_hotel.ts +0 -0
  383. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/cancel_action.ts +0 -0
  384. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/cancel_ticket.ts +0 -0
  385. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/complete_or_escalate.ts +0 -0
  386. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/confirm_action.ts +0 -0
  387. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/lookup_booking.ts +0 -0
  388. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_car_rentals.ts +0 -0
  389. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_excursions.ts +0 -0
  390. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_flights.ts +0 -0
  391. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_hotels.ts +0 -0
  392. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_car_rental_assistant.ts +0 -0
  393. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_excursion_assistant.ts +0 -0
  394. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_flight_assistant.ts +0 -0
  395. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_hotel_assistant.ts +0 -0
  396. /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/update_ticket.ts +0 -0
  397. /package/dist/templates/{web-researcher → web-research-agent}/system-prompt.md +0 -0
  398. /package/dist/templates/{word-wrangler → word-game-agent}/agent.eval.test.ts +0 -0
  399. /package/dist/templates/{word-wrangler → word-game-agent}/agent.test.ts +0 -0
  400. /package/dist/templates/{word-wrangler → word-game-agent}/agent.ts +0 -0
  401. /package/dist/templates/{word-wrangler → word-game-agent}/client.tsx +0 -0
  402. /package/dist/templates/{word-wrangler → word-game-agent}/guess.ts +0 -0
  403. /package/dist/templates/{word-wrangler → word-game-agent}/player.ts +0 -0
  404. /package/dist/templates/{word-wrangler → word-game-agent}/system-prompt.md +0 -0
  405. /package/dist/templates/{word-wrangler → word-game-agent}/tools/final_score.ts +0 -0
  406. /package/dist/templates/{word-wrangler → word-game-agent}/tools/relay_description.ts +0 -0
  407. /package/dist/templates/{word-wrangler → word-game-agent}/tools/repeat_word.ts +0 -0
  408. /package/dist/templates/{word-wrangler → word-game-agent}/tools/skip_word.ts +0 -0
  409. /package/dist/templates/{word-wrangler → word-game-agent}/tools/start_game.ts +0 -0
  410. /package/dist/templates/{word-wrangler → word-game-agent}/words.ts +0 -0
package/README.md CHANGED
@@ -33,7 +33,7 @@ when stdout is not a TTY). `aai <command> --help` shows flags.
33
33
  ## Typical flow
34
34
 
35
35
  ```sh
36
- aai init my-agent --template pizza-ordering
36
+ aai init my-agent --template pizza-ordering-agent
37
37
  cd my-agent
38
38
  # put ASSEMBLYAI_API_KEY=... in .env
39
39
  aai dev # talk to it at the printed URL
@@ -515,6 +515,14 @@ const VERCEL_BUILD_CONFIG_SOURCE = `${JSON.stringify({
515
515
  * way — this module reads each host's output directory, and no host module
516
516
  * reads this one — so a fourth target is a fourth file plus two lines here.
517
517
  */
518
+ /**
519
+ * What {@link TargetOutput.secret} puts where a variable NAME goes.
520
+ *
521
+ * Angle brackets rather than a `$NAME` or `%s`: the string is printed for a
522
+ * human to adapt as often as it is substituted into, and both of the other two
523
+ * are shell-significant enough to be mistaken for something to type literally.
524
+ */
525
+ const SECRET_NAME_PLACEHOLDER = "<NAME>";
518
526
  /** The targets `aai build --target` accepts. */
519
527
  const BUILD_TARGETS = [
520
528
  "node",
@@ -632,7 +640,8 @@ const TARGET_OUTPUTS = {
632
640
  node: { preview: "aai start" },
633
641
  vercel: {
634
642
  dir: VERCEL_OUTPUT_DIR,
635
- deploy: "vercel deploy --prebuilt"
643
+ deploy: "vercel deploy --prebuilt",
644
+ secret: `vercel env add ${SECRET_NAME_PLACEHOLDER} production`
636
645
  },
637
646
  deno: {
638
647
  dir: DENO_OUTPUT_DIR,
@@ -646,4 +655,4 @@ const TARGET_OUTPUTS = {
646
655
  }
647
656
  };
648
657
  //#endregion
649
- export { DENO_ENTRY_FILE as _, VERCEL_ENTRY_SOURCE as a, VERCEL_STATIC_DIR as c, MODAL_ENTRY_FILE as d, MODAL_ENTRY_SOURCE as f, DENO_CONFIG_SOURCE as g, DENO_CONFIG_FILE as h, VERCEL_BUILD_CONFIG_SOURCE as i, vercelFunctionConfigSource as l, MODAL_PORT as m, TARGET_OUTPUTS as n, VERCEL_FUNCTION_DIR as o, MODAL_OUTPUT_DIR as p, resolveBuildTarget as r, VERCEL_OUTPUT_DIR as s, BUILD_TARGETS as t, MODAL_APP_FILE as u, DENO_ENTRY_SOURCE as v, DENO_OUTPUT_DIR as y };
658
+ export { DENO_CONFIG_SOURCE as _, VERCEL_BUILD_CONFIG_SOURCE as a, DENO_OUTPUT_DIR as b, VERCEL_OUTPUT_DIR as c, MODAL_APP_FILE as d, MODAL_ENTRY_FILE as f, DENO_CONFIG_FILE as g, MODAL_PORT as h, resolveBuildTarget as i, VERCEL_STATIC_DIR as l, MODAL_OUTPUT_DIR as m, SECRET_NAME_PLACEHOLDER as n, VERCEL_ENTRY_SOURCE as o, MODAL_ENTRY_SOURCE as p, TARGET_OUTPUTS as r, VERCEL_FUNCTION_DIR as s, BUILD_TARGETS as t, vercelFunctionConfigSource as u, DENO_ENTRY_FILE as v, DENO_ENTRY_SOURCE as y };
@@ -38,6 +38,14 @@
38
38
  * way — this module reads each host's output directory, and no host module
39
39
  * reads this one — so a fourth target is a fourth file plus two lines here.
40
40
  */
41
+ /**
42
+ * What {@link TargetOutput.secret} puts where a variable NAME goes.
43
+ *
44
+ * Angle brackets rather than a `$NAME` or `%s`: the string is printed for a
45
+ * human to adapt as often as it is substituted into, and both of the other two
46
+ * are shell-significant enough to be mistaken for something to type literally.
47
+ */
48
+ export declare const SECRET_NAME_PLACEHOLDER = "<NAME>";
41
49
  /** The targets `aai build --target` accepts. */
42
50
  export declare const BUILD_TARGETS: readonly ["node", "vercel", "deno", "modal"];
43
51
  export type BuildTarget = (typeof BUILD_TARGETS)[number];
@@ -156,6 +164,26 @@ export interface TargetOutput {
156
164
  readonly preview?: string;
157
165
  /** Ship what was just emitted. */
158
166
  readonly deploy?: string;
167
+ /**
168
+ * How this host sets ONE secret's value, with {@link SECRET_NAME_PLACEHOLDER}
169
+ * standing in for the variable name.
170
+ *
171
+ * `.env.example` DECLARES which variables become `ctx.env` and the host
172
+ * supplies the values (see `DEPLOY_ENV_FILES` and the `RUNTIME_FILES` note in
173
+ * `_vercel-output.ts` — declarations ship, values do not). Nothing checked
174
+ * that the host actually had them, so a deployment whose credentials were
175
+ * never set built green and failed at its first session, which reads as a
176
+ * provider outage rather than as an unset variable. `missingDeployEnv` in
177
+ * `build.ts` is that check and this is the string it points the reader at.
178
+ *
179
+ * Absent where there is no honest answer, the same rule {@link preview} and
180
+ * {@link deploy} follow. `node` has no host to name — the deployment is a
181
+ * process someone runs, reading `.env` or whatever `-e` flags a container got.
182
+ * `deno` and `modal` are absent because their commands are unverified here,
183
+ * not because they have none; the warning still names the variables and says
184
+ * they must be set in the host's environment, which is the load-bearing half.
185
+ */
186
+ readonly secret?: string;
159
187
  }
160
188
  /**
161
189
  * Every target's output and commands.
@@ -6,7 +6,7 @@ import { t as DEDUPED_PEERS } from "./_vite-env-kejF0p2L.mjs";
6
6
  import { buildWorker } from "./worker-bundler.mjs";
7
7
  import { typecheckProject } from "./typecheck.mjs";
8
8
  import { n as ensureApiKey } from "./_config-DYzC6WMD.mjs";
9
- import { n as resolveServerEnv } from "./_server-common-De0haHr9.mjs";
9
+ import { i as resolveServerEnv } from "./_server-common-DAcv1nC5.mjs";
10
10
  import { n as createWorkerEvaluator } from "./_bundler-DM0d0M7m.mjs";
11
11
  import { existsSync, statSync } from "node:fs";
12
12
  import path from "node:path";
@@ -415,7 +415,7 @@ function workflowPathServedByVite(base, rawUrl) {
415
415
  * agent), and under load it intermittently stalls for almost exactly two
416
416
  * seconds.
417
417
  *
418
- * Measured on the `retail` template, session handshakes to `session.configured`:
418
+ * Measured on the `retail-orders-agent` template, session handshakes to `session.configured`:
419
419
  *
420
420
  * | Target | conc | rps | p50 | p99 |
421
421
  * | --- | --- | --- | --- | --- |
@@ -66,7 +66,7 @@
66
66
  * agent), and under load it intermittently stalls for almost exactly two
67
67
  * seconds.
68
68
  *
69
- * Measured on the `retail` template, session handshakes to `session.configured`:
69
+ * Measured on the `retail-orders-agent` template, session handshakes to `session.configured`:
70
70
  *
71
71
  * | Target | conc | rps | p50 | p99 |
72
72
  * | --- | --- | --- | --- | --- |
@@ -132,7 +132,7 @@ async function patchPackageJsonForWorkspace(targetDir) {
132
132
  * a hundred lines of `Type 'AnyActorLogic' is not assignable to type
133
133
  * 'AnyActorLogic'` with two absolute paths in it.
134
134
  *
135
- * Measured: `aai init --template support-line` produced exactly that. The
135
+ * Measured: `aai init --template technical-support-agent` produced exactly that. The
136
136
  * workspace lockfile pinned `xstate@5.32.5`, the fresh project resolved
137
137
  * `^5.32.5` to `5.32.6`, the CLI's typecheck gate failed, and the deploy was
138
138
  * REFUSED — `"deployed": false` with the whole error as a warning. One
@@ -34,7 +34,20 @@ async function readDotenv(file) {
34
34
  * and treating the example as a declaration would surface a key they have not
35
35
  * filled in yet as one they have.
36
36
  */
37
- const DEPLOY_ENV_FILES = [".env.example", ".env"];
37
+ /**
38
+ * The one dotenv file that SHIPS — copied into a target's deployment artifact
39
+ * (`RUNTIME_FILES` in `_vercel-output.ts`) because it declares which variables
40
+ * become `ctx.env`.
41
+ *
42
+ * Named on its own because "what does the deployment declare" and "what can
43
+ * this machine resolve" are different questions with different answers, and a
44
+ * build that asks the second when it means the first cannot see the failure
45
+ * `missingDeployEnv` exists to report: `.env` is present in a host's BUILD
46
+ * workspace and absent from its RUNTIME, so a value read from there suppresses
47
+ * a warning about a variable the deployed function will never see.
48
+ */
49
+ const DEPLOY_ENV_DECLARATION_FILE = ".env.example";
50
+ const DEPLOY_ENV_FILES = [DEPLOY_ENV_DECLARATION_FILE, ".env"];
38
51
  /**
39
52
  * Build the `ctx.env` record that agent tools will see at runtime.
40
53
  *
@@ -66,5 +79,36 @@ async function resolveServerEnv(cwd, baseEnv, files = [".env"]) {
66
79
  }
67
80
  return env;
68
81
  }
82
+ /**
83
+ * Every variable name the dotenv `files` DECLARE, whether or not they carry a
84
+ * value.
85
+ *
86
+ * The complement of {@link resolveServerEnv}, which returns the subset that
87
+ * resolved to something non-empty. Subtracting one from the other is how a
88
+ * build reports the variables a deployment declares and the host has no value
89
+ * for — see `missingDeployEnv` in `build.ts`. A declared-but-blank key is the
90
+ * `.env.example` idiom for "you need to set this" (`BRAVE_API_KEY=`), so the
91
+ * names are exactly what a caller asking that question needs and `resolveServerEnv`
92
+ * is exactly where they are dropped.
93
+ *
94
+ * SORTED, and that is a choice rather than the parser's output. Node's
95
+ * `parseEnv` preserves declaration order for keys that carry a VALUE but
96
+ * groups the blank ones and returns them alphabetically (`Z=\nY=\nX=` comes
97
+ * back `X, Y, Z`) — and a declaration file is mostly blank keys by
98
+ * construction, so its own order barely survives the parse. Sorting makes the
99
+ * result one predictable thing instead of two, which matters because a warning
100
+ * built from this is read by a human and diffed by a test.
101
+ *
102
+ * @param cwd - Project directory. `undefined` declares nothing, matching
103
+ * {@link resolveServerEnv}'s handling of the same argument.
104
+ * @param files - Which dotenv files to read. {@link DEPLOY_ENV_FILES} is what a
105
+ * DEPLOYMENT declares.
106
+ */
107
+ async function declaredEnvNames(cwd, files = [".env"]) {
108
+ if (cwd === void 0) return [];
109
+ const names = /* @__PURE__ */ new Set();
110
+ for (const file of files) for (const key of Object.keys(await readDotenv(path.join(cwd, file)))) names.add(key);
111
+ return [...names].sort();
112
+ }
69
113
  //#endregion
70
- export { resolveServerEnv as n, DEPLOY_ENV_FILES as t };
114
+ export { resolveServerEnv as i, DEPLOY_ENV_FILES as n, declaredEnvNames as r, DEPLOY_ENV_DECLARATION_FILE as t };
@@ -13,6 +13,19 @@
13
13
  * and treating the example as a declaration would surface a key they have not
14
14
  * filled in yet as one they have.
15
15
  */
16
+ /**
17
+ * The one dotenv file that SHIPS — copied into a target's deployment artifact
18
+ * (`RUNTIME_FILES` in `_vercel-output.ts`) because it declares which variables
19
+ * become `ctx.env`.
20
+ *
21
+ * Named on its own because "what does the deployment declare" and "what can
22
+ * this machine resolve" are different questions with different answers, and a
23
+ * build that asks the second when it means the first cannot see the failure
24
+ * `missingDeployEnv` exists to report: `.env` is present in a host's BUILD
25
+ * workspace and absent from its RUNTIME, so a value read from there suppresses
26
+ * a warning about a variable the deployed function will never see.
27
+ */
28
+ export declare const DEPLOY_ENV_DECLARATION_FILE = ".env.example";
16
29
  export declare const DEPLOY_ENV_FILES: readonly [".env.example", ".env"];
17
30
  /**
18
31
  * Build the `ctx.env` record that agent tools will see at runtime.
@@ -34,3 +47,29 @@ export declare const DEPLOY_ENV_FILES: readonly [".env.example", ".env"];
34
47
  * DEPLOYMENT reads, and its own doc says why the two differ.
35
48
  */
36
49
  export declare function resolveServerEnv(cwd?: string, baseEnv?: Record<string, string | undefined>, files?: readonly string[]): Promise<Record<string, string>>;
50
+ /**
51
+ * Every variable name the dotenv `files` DECLARE, whether or not they carry a
52
+ * value.
53
+ *
54
+ * The complement of {@link resolveServerEnv}, which returns the subset that
55
+ * resolved to something non-empty. Subtracting one from the other is how a
56
+ * build reports the variables a deployment declares and the host has no value
57
+ * for — see `missingDeployEnv` in `build.ts`. A declared-but-blank key is the
58
+ * `.env.example` idiom for "you need to set this" (`BRAVE_API_KEY=`), so the
59
+ * names are exactly what a caller asking that question needs and `resolveServerEnv`
60
+ * is exactly where they are dropped.
61
+ *
62
+ * SORTED, and that is a choice rather than the parser's output. Node's
63
+ * `parseEnv` preserves declaration order for keys that carry a VALUE but
64
+ * groups the blank ones and returns them alphabetically (`Z=\nY=\nX=` comes
65
+ * back `X, Y, Z`) — and a declaration file is mostly blank keys by
66
+ * construction, so its own order barely survives the parse. Sorting makes the
67
+ * result one predictable thing instead of two, which matters because a warning
68
+ * built from this is read by a human and diffed by a test.
69
+ *
70
+ * @param cwd - Project directory. `undefined` declares nothing, matching
71
+ * {@link resolveServerEnv}'s handling of the same argument.
72
+ * @param files - Which dotenv files to read. {@link DEPLOY_ENV_FILES} is what a
73
+ * DEPLOYMENT declares.
74
+ */
75
+ export declare function declaredEnvNames(cwd: string | undefined, files?: readonly string[]): Promise<string[]>;
@@ -138,7 +138,7 @@ function projectSpecFiles(cwd) {
138
138
  * `runVitest` passes the candidate filename as a vitest FILTER, which is what
139
139
  * keeps `test` and `eval` disjoint without either excluding the other's file —
140
140
  * see its doc. The cost is that every other `*.test.ts` in the project is
141
- * skipped, and the skip was SILENT: the shipped `retail` template carries seven
141
+ * skipped, and the skip was SILENT: the shipped `retail-orders-agent` template carries seven
142
142
  * of them, so `aai test` there ran 1 file / 67 tests, printed "Tests passed",
143
143
  * and left 211 of the project's 278 tests unrun with nothing saying so.
144
144
  *
@@ -116,7 +116,7 @@ export declare function projectSpecFiles(cwd: string): string[];
116
116
  * `runVitest` passes the candidate filename as a vitest FILTER, which is what
117
117
  * keeps `test` and `eval` disjoint without either excluding the other's file —
118
118
  * see its doc. The cost is that every other `*.test.ts` in the project is
119
- * skipped, and the skip was SILENT: the shipped `retail` template carries seven
119
+ * skipped, and the skip was SILENT: the shipped `retail-orders-agent` template carries seven
120
120
  * of them, so `aai test` there ran 1 file / 67 tests, printed "Tests passed",
121
121
  * and left 211 of the project's 278 tests unrun with nothing saying so.
122
122
  *
@@ -53,7 +53,7 @@ import { readFile, readdir } from "node:fs/promises";
53
53
  * and it pays for the breadth with seven baselined occurrences in this repo.
54
54
  * Measured before writing this: a faithful port reports **all seven and nothing
55
55
  * else** — and all seven are correct code. Each is a read inside a step-called
56
- * helper (`timed`, `pollTranscript`, `file`), which `link-digest`'s own comment
56
+ * helper (`timed`, `pollTranscript`, `file`), which `link-digest-workflow`'s own comment
57
57
  * explains: "the `ctx.step` callback boundary is not decidable from a line …
58
58
  * Anything at BODY level is the bug, not an exception."
59
59
  *
@@ -49,7 +49,7 @@
49
49
  * and it pays for the breadth with seven baselined occurrences in this repo.
50
50
  * Measured before writing this: a faithful port reports **all seven and nothing
51
51
  * else** — and all seven are correct code. Each is a read inside a step-called
52
- * helper (`timed`, `pollTranscript`, `file`), which `link-digest`'s own comment
52
+ * helper (`timed`, `pollTranscript`, `file`), which `link-digest-workflow`'s own comment
53
53
  * explains: "the `ctx.step` callback boundary is not decidable from a line …
54
54
  * Anything at BODY level is the bug, not an exception."
55
55
  *
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import { _ as DENO_ENTRY_FILE, a as VERCEL_ENTRY_SOURCE, c as VERCEL_STATIC_DIR, d as MODAL_ENTRY_FILE, f as MODAL_ENTRY_SOURCE, g as DENO_CONFIG_SOURCE, h as DENO_CONFIG_FILE, i as VERCEL_BUILD_CONFIG_SOURCE, l as vercelFunctionConfigSource, m as MODAL_PORT, n as TARGET_OUTPUTS, o as VERCEL_FUNCTION_DIR, p as MODAL_OUTPUT_DIR, r as resolveBuildTarget, s as VERCEL_OUTPUT_DIR, u as MODAL_APP_FILE, v as DENO_ENTRY_SOURCE, y as DENO_OUTPUT_DIR } from "./_build-target-55dJisQ-.mjs";
2
+ import { _ as DENO_CONFIG_SOURCE, a as VERCEL_BUILD_CONFIG_SOURCE, b as DENO_OUTPUT_DIR, c as VERCEL_OUTPUT_DIR, d as MODAL_APP_FILE, f as MODAL_ENTRY_FILE, g as DENO_CONFIG_FILE, h as MODAL_PORT, i as resolveBuildTarget, l as VERCEL_STATIC_DIR, m as MODAL_OUTPUT_DIR, n as SECRET_NAME_PLACEHOLDER, o as VERCEL_ENTRY_SOURCE, p as MODAL_ENTRY_SOURCE, r as TARGET_OUTPUTS, s as VERCEL_FUNCTION_DIR, u as vercelFunctionConfigSource, v as DENO_ENTRY_FILE, y as DENO_ENTRY_SOURCE } from "./_build-target-ClEEuUuW.mjs";
3
3
  import { a as ok, t as CliError } from "./_output-DBP9Op_d.mjs";
4
4
  import { n as log, r as notify } from "./_ui-DCt4qZrk.mjs";
5
5
  import { n as withPreservedNodeEnv } from "./_vite-env-kejF0p2L.mjs";
6
6
  import { n as WORKER_ARTIFACT_REL, t as CLIENT_ARTIFACT_REL } from "./_artifacts-BJOYGQPp.mjs";
7
+ import { r as declaredEnvNames, t as DEPLOY_ENV_DECLARATION_FILE } from "./_server-common-DAcv1nC5.mjs";
7
8
  import { r as evalWorkerBundle, t as buildAgentBundle } from "./_bundler-DM0d0M7m.mjs";
8
9
  import { assertTypechecks } from "./_typecheck-gate-U3jcil8L.mjs";
9
- import { n as classifyVitestError, r as runVitest } from "./_vitest-runner-AVR9VtXh.mjs";
10
- import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CvpqMpdh.mjs";
11
- import { TEST_FILES } from "./test-Cllnx81G.mjs";
10
+ import { n as classifyVitestError, r as runVitest } from "./_vitest-runner-BiAMIir1.mjs";
11
+ import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CLxFQ5ox.mjs";
12
+ import { TEST_FILES } from "./test-PHHv0Vj6.mjs";
12
13
  import path from "node:path";
13
14
  import fs from "node:fs/promises";
14
15
  import { invariant } from "@alexkroman1/aai/internal";
@@ -519,7 +520,7 @@ async function emitModalOutput(cwd, options) {
519
520
  * a DECLARATION; the second holds a developer's own keys, and copying it would
520
521
  * bake them into a deployment artifact and let them silently win over the
521
522
  * values set in the Vercel project. Declarations ship, values come from the
522
- * platform environment. Verified by building the `simple` template: a local
523
+ * platform environment. Verified by building the `quickstart-agent` template: a local
523
524
  * `.env` with live credentials landed in the function until this list dropped
524
525
  * it.
525
526
  */
@@ -636,6 +637,8 @@ async function executeBuild(opts) {
636
637
  await fs.writeFile(worker, bundle.worker, "utf-8");
637
638
  await emitTargetFiles(cwd, target, { name: agentDef.name });
638
639
  const output = TARGET_OUTPUTS[target];
640
+ const missingEnv = await missingDeployEnv(cwd, target);
641
+ for (const warning of missingEnvWarnings(missingEnv, target)) notify("warn", warning);
639
642
  if (output.dir !== void 0) log.info(`Target ${target}: wrote ${output.dir}`);
640
643
  if (output.deploy !== void 0) log.info(`Deploy it with \`${output.deploy}\``);
641
644
  const systemPrompt = await systemPromptSource(cwd, agentDef.systemPrompt);
@@ -648,7 +651,8 @@ async function executeBuild(opts) {
648
651
  systemPrompt,
649
652
  target,
650
653
  outputDir: output.dir,
651
- deploy: output.deploy
654
+ deploy: output.deploy,
655
+ missingEnv
652
656
  });
653
657
  }
654
658
  /**
@@ -685,5 +689,64 @@ async function emitTargetFiles(cwd, target, agent) {
685
689
  default: throw new Error(`Unhandled build target ${String(target)}`);
686
690
  }
687
691
  }
692
+ /**
693
+ * Which variables the DEPLOYMENT declares that this build's host has no value
694
+ * for — the check behind the warning `aai build` prints for a host target.
695
+ *
696
+ * ## Why the host environment and not `resolveServerEnv`
697
+ *
698
+ * The obvious implementation resolves {@link DEPLOY_ENV_FILES} the way the
699
+ * deployment will and reports what came back empty. It is wrong here, and
700
+ * wrong in exactly the case worth catching: `.env` is uploaded into a host's
701
+ * BUILD workspace (Vercel filters uploads by `.vercelignore`, never by
702
+ * `.gitignore`'s contents) and is deliberately NOT copied into the deployment
703
+ * artifact — see `RUNTIME_FILES` in `_vercel-output.ts`, where shipping it was
704
+ * a credential leak. So a developer's own `.env` sitting beside the build would
705
+ * satisfy a resolver and satisfy nothing at runtime, silencing the warning for
706
+ * the one deployment that needs it.
707
+ *
708
+ * Values therefore come from `env` alone, and declarations from
709
+ * {@link DEPLOY_ENV_DECLARATION_FILE} alone — the single file that ships.
710
+ *
711
+ * ## What it can and cannot see
712
+ *
713
+ * On a host-run build this is precise: the build container's environment IS the
714
+ * project's configured variables, so a name missing here is a name missing at
715
+ * runtime. That is the zero-config path `TARGET_ENV_MARKERS` describes and the
716
+ * failure this was written for — a Vercel deployment whose `ASSEMBLYAI_API_KEY`
717
+ * was never set, which built green and died at its first session.
718
+ *
719
+ * Two inaccuracies follow from a build being unable to interrogate its own
720
+ * host, and both are why this WARNS rather than gates. A variable a host
721
+ * exposes only at runtime (Vercel's sensitive variables) is reported though it
722
+ * will resolve. And a build run locally reads the developer's shell, which says
723
+ * nothing about what the host has — so an exported value hides a name the
724
+ * platform is still missing.
725
+ *
726
+ * @param env - Where values are read from. Defaults to the build's own
727
+ * environment; a parameter so a spec need not mutate `process.env`.
728
+ */
729
+ async function missingDeployEnv(cwd, target, env = process.env) {
730
+ if (TARGET_OUTPUTS[target].dir === void 0) return [];
731
+ return (await declaredEnvNames(cwd, [DEPLOY_ENV_DECLARATION_FILE])).filter((name) => {
732
+ const value = env[name];
733
+ return value === void 0 || value === "";
734
+ });
735
+ }
736
+ /**
737
+ * One warning sentence per variable {@link missingDeployEnv} reported, naming
738
+ * the command that sets it where the target knows one.
739
+ *
740
+ * A sentence each rather than one combined line, matching `agentConfigWarnings`
741
+ * and `determinismWarnings`: each is independently actionable, and the command
742
+ * differs per name.
743
+ */
744
+ function missingEnvWarnings(missing, target) {
745
+ const { secret } = TARGET_OUTPUTS[target];
746
+ return missing.map((name) => {
747
+ const fix = secret === void 0 ? `Set it in the ${target} environment` : `Set it with \`${secret.replaceAll(SECRET_NAME_PLACEHOLDER, name)}\``;
748
+ return `${name} is declared in ${DEPLOY_ENV_DECLARATION_FILE} but has no value in this build's environment, so the deployed agent will see none. ${fix}, then deploy again.`;
749
+ });
750
+ }
688
751
  //#endregion
689
752
  export { executeBuild };
package/dist/build.d.ts CHANGED
@@ -46,6 +46,15 @@ type BuildData = {
46
46
  */
47
47
  outputDir: string | undefined;
48
48
  deploy: string | undefined;
49
+ /**
50
+ * Variables the deployment DECLARES and this build's host had no value for —
51
+ * see {@link missingDeployEnv}. Empty for a target that deploys nowhere.
52
+ *
53
+ * On the result as well as in a warning, for the reason `outputDir` above is:
54
+ * `log` is silenced under `--json`, and this is the field a CI job would gate
55
+ * its own deploy step on.
56
+ */
57
+ missingEnv: string[];
49
58
  };
50
59
  export declare function executeBuild(opts: {
51
60
  cwd: string;
@@ -57,3 +66,50 @@ export declare function executeBuild(opts: {
57
66
  */
58
67
  target?: string | undefined;
59
68
  }): Promise<CommandResult<BuildData>>;
69
+ /**
70
+ * Which variables the DEPLOYMENT declares that this build's host has no value
71
+ * for — the check behind the warning `aai build` prints for a host target.
72
+ *
73
+ * ## Why the host environment and not `resolveServerEnv`
74
+ *
75
+ * The obvious implementation resolves {@link DEPLOY_ENV_FILES} the way the
76
+ * deployment will and reports what came back empty. It is wrong here, and
77
+ * wrong in exactly the case worth catching: `.env` is uploaded into a host's
78
+ * BUILD workspace (Vercel filters uploads by `.vercelignore`, never by
79
+ * `.gitignore`'s contents) and is deliberately NOT copied into the deployment
80
+ * artifact — see `RUNTIME_FILES` in `_vercel-output.ts`, where shipping it was
81
+ * a credential leak. So a developer's own `.env` sitting beside the build would
82
+ * satisfy a resolver and satisfy nothing at runtime, silencing the warning for
83
+ * the one deployment that needs it.
84
+ *
85
+ * Values therefore come from `env` alone, and declarations from
86
+ * {@link DEPLOY_ENV_DECLARATION_FILE} alone — the single file that ships.
87
+ *
88
+ * ## What it can and cannot see
89
+ *
90
+ * On a host-run build this is precise: the build container's environment IS the
91
+ * project's configured variables, so a name missing here is a name missing at
92
+ * runtime. That is the zero-config path `TARGET_ENV_MARKERS` describes and the
93
+ * failure this was written for — a Vercel deployment whose `ASSEMBLYAI_API_KEY`
94
+ * was never set, which built green and died at its first session.
95
+ *
96
+ * Two inaccuracies follow from a build being unable to interrogate its own
97
+ * host, and both are why this WARNS rather than gates. A variable a host
98
+ * exposes only at runtime (Vercel's sensitive variables) is reported though it
99
+ * will resolve. And a build run locally reads the developer's shell, which says
100
+ * nothing about what the host has — so an exported value hides a name the
101
+ * platform is still missing.
102
+ *
103
+ * @param env - Where values are read from. Defaults to the build's own
104
+ * environment; a parameter so a spec need not mutate `process.env`.
105
+ */
106
+ export declare function missingDeployEnv(cwd: string, target: BuildTarget, env?: Record<string, string | undefined>): Promise<string[]>;
107
+ /**
108
+ * One warning sentence per variable {@link missingDeployEnv} reported, naming
109
+ * the command that sets it where the target knows one.
110
+ *
111
+ * A sentence each rather than one combined line, matching `agentConfigWarnings`
112
+ * and `determinismWarnings`: each is independently actionable, and the command
113
+ * differs per name.
114
+ */
115
+ export declare function missingEnvWarnings(missing: readonly string[], target: BuildTarget): string[];
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as BUILD_TARGETS } from "./_build-target-55dJisQ-.mjs";
2
+ import { t as BUILD_TARGETS } from "./_build-target-ClEEuUuW.mjs";
3
3
  import { i as installStdoutGuard, n as fail, o as writeLine, r as getOutputMode, t as CliError } from "./_output-DBP9Op_d.mjs";
4
4
  import { a as parsePort, n as log, o as silenceOutput } from "./_ui-DCt4qZrk.mjs";
5
5
  import { c as fileExists, f as readPackageJson, p as resolveCwd, s as errorMessage$1, t as AGENT_ENTRY } from "./_utils-D5JGcjiW.mjs";
@@ -396,7 +396,7 @@ const list = defineExec({
396
396
  args: { ...platformArgs },
397
397
  cwd: "any",
398
398
  async run({ args, cwd }) {
399
- const { executeList } = await import("./studio-CtRBVVFR.mjs");
399
+ const { executeList } = await import("./studio-It7SRfUN.mjs");
400
400
  return executeList({
401
401
  cwd,
402
402
  server: args.server
@@ -428,7 +428,7 @@ const pull = defineExec({
428
428
  },
429
429
  cwd: "any",
430
430
  async run({ args, cwd }) {
431
- const { executePull } = await import("./studio-CtRBVVFR.mjs");
431
+ const { executePull } = await import("./studio-It7SRfUN.mjs");
432
432
  return executePull({
433
433
  cwd,
434
434
  project: args.project,
@@ -449,7 +449,7 @@ const push = defineExec({
449
449
  },
450
450
  cwd: "agent",
451
451
  async run({ args, cwd }) {
452
- const { executePush } = await import("./studio-CtRBVVFR.mjs");
452
+ const { executePush } = await import("./studio-It7SRfUN.mjs");
453
453
  return executePush({
454
454
  cwd,
455
455
  server: args.server,
@@ -472,7 +472,7 @@ const publish = defineExec({
472
472
  },
473
473
  cwd: "agent",
474
474
  async run({ args, cwd }) {
475
- const { executePublish } = await import("./studio-CtRBVVFR.mjs");
475
+ const { executePublish } = await import("./studio-It7SRfUN.mjs");
476
476
  return executePublish({
477
477
  cwd,
478
478
  server: args.server,
@@ -701,7 +701,7 @@ const init = defineExec({
701
701
  },
702
702
  cwd: "none",
703
703
  async run({ args, mode }) {
704
- const { executeInit } = await import("./init-D363Ls5u.mjs");
704
+ const { executeInit } = await import("./init-CY4NAXAA.mjs");
705
705
  return executeInit({
706
706
  dir: args.dir,
707
707
  force: args.force,
@@ -730,7 +730,7 @@ const dev = defineExec({
730
730
  },
731
731
  cwd: "agent",
732
732
  async run({ args, cwd }) {
733
- const { executeDev } = await import("./dev-kodAY23K.mjs");
733
+ const { executeDev } = await import("./dev-Du8pCWFq.mjs");
734
734
  return executeDev({
735
735
  cwd,
736
736
  port: args.port,
@@ -781,7 +781,7 @@ const test = defineExec({
781
781
  },
782
782
  cwd: "agent",
783
783
  async run({ args, cwd }) {
784
- const { executeTest } = await import("./test-Cllnx81G.mjs");
784
+ const { executeTest } = await import("./test-PHHv0Vj6.mjs");
785
785
  return executeTest(cwd, { all: args.all === true });
786
786
  }
787
787
  });
@@ -793,7 +793,7 @@ const evalCommand = defineExec({
793
793
  args: { json: sharedArgs.json },
794
794
  cwd: "agent",
795
795
  async run({ cwd }) {
796
- const { executeEval } = await import("./eval-DvoSz7SZ.mjs");
796
+ const { executeEval } = await import("./eval-Ducmkt1n.mjs");
797
797
  return executeEval(cwd);
798
798
  }
799
799
  });
@@ -819,7 +819,7 @@ const build = defineExec({
819
819
  },
820
820
  cwd: "agent",
821
821
  async run({ args, cwd }) {
822
- const { executeBuild } = await import("./build-ButI2IKc.mjs");
822
+ const { executeBuild } = await import("./build-O6BT51x_.mjs");
823
823
  return executeBuild({
824
824
  cwd,
825
825
  skipTests: args.skipTests,
@@ -847,7 +847,7 @@ const deploy = defineExec({
847
847
  },
848
848
  cwd: "agent",
849
849
  async run({ args, cwd }) {
850
- const { executeDeploy } = await import("./deploy-CGqPU5U-.mjs");
850
+ const { executeDeploy } = await import("./deploy-lldQyJVj.mjs");
851
851
  return executeDeploy({
852
852
  cwd,
853
853
  server: args.server,
@@ -3,11 +3,11 @@ import { a as ok } from "./_output-DBP9Op_d.mjs";
3
3
  import { n as log, r as notify, t as fmtUrl } from "./_ui-DCt4qZrk.mjs";
4
4
  import { s as errorMessage$1 } from "./_utils-D5JGcjiW.mjs";
5
5
  import { s as updateProjectConfig } from "./_config-DYzC6WMD.mjs";
6
- import { n as resolveServerEnv } from "./_server-common-De0haHr9.mjs";
6
+ import { i as resolveServerEnv } from "./_server-common-DAcv1nC5.mjs";
7
7
  import { i as evalWorkerConfig, t as buildAgentBundle } from "./_bundler-DM0d0M7m.mjs";
8
8
  import { o as resolveDeployTarget } from "./_agent-BzUeqOdj.mjs";
9
9
  import { assertTypechecks } from "./_typecheck-gate-U3jcil8L.mjs";
10
- import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CvpqMpdh.mjs";
10
+ import { n as scanWorkflowDeterminism, t as determinismWarnings } from "./_workflow-determinism-CLxFQ5ox.mjs";
11
11
  import { d as apiTestSeam, f as checkedResponse, i as projectNameFromDir, u as apiRequest } from "./_studio-DnR_BqFp.mjs";
12
12
  import { isRecord, omitUndefined } from "@alexkroman1/aai/utils";
13
13
  import { gzipSync } from "node:zlib";
@@ -13,7 +13,7 @@ import { startTracing } from "@alexkroman1/aai-runtime/tracing";
13
13
  async function executeDev(opts) {
14
14
  const port = parsePort(opts.port);
15
15
  const agentName = path.basename(path.resolve(opts.cwd));
16
- const { startDevServer } = await import("./_dev-server-BzWB6-4y.mjs");
16
+ const { startDevServer } = await import("./_dev-server-D1wKiA0_.mjs");
17
17
  let cleanup;
18
18
  let shuttingDown = false;
19
19
  const onSignal = () => {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { a as ok, n as fail } from "./_output-DBP9Op_d.mjs";
3
3
  import { n as log } from "./_ui-DCt4qZrk.mjs";
4
- import { n as resolveServerEnv } from "./_server-common-De0haHr9.mjs";
5
- import { n as classifyVitestError, r as runVitest } from "./_vitest-runner-AVR9VtXh.mjs";
4
+ import { i as resolveServerEnv } from "./_server-common-DAcv1nC5.mjs";
5
+ import { n as classifyVitestError, r as runVitest } from "./_vitest-runner-BiAMIir1.mjs";
6
6
  //#region src/eval.ts
7
7
  /**
8
8
  * `aai eval` — run the agent's behaviour evals via vitest.
@@ -43,7 +43,7 @@ async function promptProjectName(yes) {
43
43
  * The template a non-interactive `init` gets, and the entry the selector opens
44
44
  * on — so an author who just presses Enter lands where they used to.
45
45
  */
46
- const DEFAULT_TEMPLATE = "simple";
46
+ const DEFAULT_TEMPLATE = "quickstart-agent";
47
47
  /**
48
48
  * Ask which template to scaffold, listing what this CLI actually ships.
49
49
  *
@@ -144,7 +144,7 @@ function collectWarnings() {
144
144
  }
145
145
  /** Scaffold the project, optionally showing a spinner. */
146
146
  async function scaffoldProject(dir, cwd, template, silent) {
147
- const { runInit } = await import("./_init-BzQbV8Zh.mjs");
147
+ const { runInit } = await import("./_init-Bp1CjRrU.mjs");
148
148
  await withSpinner(silent, {
149
149
  start: `Creating ${dir}`,
150
150
  done: "Project created",