@alexkroman1/aai-cli 16.0.0 → 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.
- package/README.md +1 -1
- package/dist/{_build-target-55dJisQ-.mjs → _build-target-ClEEuUuW.mjs} +11 -2
- package/dist/_build-target.d.ts +28 -0
- package/dist/{_dev-server-BzWB6-4y.mjs → _dev-server-D1wKiA0_.mjs} +2 -2
- package/dist/_dev-vite-config.d.ts +1 -1
- package/dist/{_init-BzQbV8Zh.mjs → _init-Bp1CjRrU.mjs} +1 -1
- package/dist/{_server-common-De0haHr9.mjs → _server-common-DAcv1nC5.mjs} +46 -2
- package/dist/_server-common.d.ts +39 -0
- package/dist/{_vitest-runner-AVR9VtXh.mjs → _vitest-runner-BiAMIir1.mjs} +1 -1
- package/dist/_vitest-runner.d.ts +1 -1
- package/dist/{_workflow-determinism-CvpqMpdh.mjs → _workflow-determinism-CLxFQ5ox.mjs} +1 -1
- package/dist/_workflow-determinism.d.ts +1 -1
- package/dist/{build-ButI2IKc.mjs → build-O6BT51x_.mjs} +69 -6
- package/dist/build.d.ts +56 -0
- package/dist/cli.mjs +11 -11
- package/dist/{deploy-CGqPU5U-.mjs → deploy-lldQyJVj.mjs} +2 -2
- package/dist/{dev-kodAY23K.mjs → dev-Du8pCWFq.mjs} +1 -1
- package/dist/{eval-DvoSz7SZ.mjs → eval-Ducmkt1n.mjs} +2 -2
- package/dist/{init-D363Ls5u.mjs → init-CY4NAXAA.mjs} +2 -2
- package/dist/scaffold/CLAUDE.md +36 -36
- package/dist/scaffold/package.json +4 -4
- package/dist/start.mjs +1 -1
- package/dist/{studio-CtRBVVFR.mjs → studio-It7SRfUN.mjs} +1 -1
- package/dist/templates/{hiring-desk → applicant-screening-agent}/crews.ts +1 -1
- package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/screening_status.ts +1 -1
- package/dist/templates/{call-audit → call-audit-workflow}/agent.ts +2 -2
- package/dist/templates/{call-audit → call-audit-workflow}/client.tsx +3 -3
- package/dist/templates/{call-audit → call-audit-workflow}/guards.test.ts +2 -2
- package/dist/templates/{call-audit → call-audit-workflow}/workflows/summarize.ts +1 -1
- package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.test.ts +1 -1
- package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.test.ts +2 -2
- package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.ts +1 -1
- package/dist/templates/{pipeline-simple → custom-pipeline-agent}/modes.test.ts +1 -1
- package/dist/templates/{redline → document-redline-workflow}/agent.ts +2 -2
- package/dist/templates/{redline → document-redline-workflow}/client.tsx +1 -1
- package/dist/templates/{redline → document-redline-workflow}/workflows/redline.ts +1 -1
- package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.test.ts +1 -1
- package/dist/templates/{dispatch-center → emergency-dispatch-agent}/events.ts +1 -1
- package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_create.ts +1 -1
- package/dist/templates/{night-owl → entertainment-picks-agent}/agent.test.ts +1 -1
- package/dist/templates/{night-owl → entertainment-picks-agent}/client.tsx +1 -1
- package/dist/templates/{executive-assistant → executive-inbox-agent}/meeting.ts +1 -1
- package/dist/templates/{executive-assistant → executive-inbox-agent}/shared.ts +2 -2
- package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/send_calendar_invite.ts +1 -1
- package/dist/templates/{hotel-desk → hotel-reception-agent}/concierge.ts +1 -1
- package/dist/templates/{hotel-desk → hotel-reception-agent}/shared.ts +1 -1
- package/dist/templates/{link-digest → link-digest-workflow}/agent.test.ts +2 -2
- package/dist/templates/{link-digest → link-digest-workflow}/agent.ts +3 -3
- package/dist/templates/{link-digest → link-digest-workflow}/client.tsx +2 -2
- package/dist/templates/{link-digest → link-digest-workflow}/workflows/digest.ts +1 -1
- package/dist/templates/{health-assistant → medication-safety-agent}/agent.test.ts +1 -1
- package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.test.ts +2 -2
- package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.ts +1 -1
- package/dist/templates/{recap-workflow → meeting-recap-agent}/workflows/recap.ts +3 -3
- package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.eval.test.ts +1 -1
- package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.test.ts +1 -1
- package/dist/templates/{podcast-digest → podcast-digest-workflow}/agent.ts +2 -2
- package/dist/templates/{podcast-digest → podcast-digest-workflow}/client.tsx +3 -3
- package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/digest.ts +1 -1
- package/dist/templates/{simple → quickstart-agent}/agent.test.ts +3 -3
- package/dist/templates/{simple → quickstart-agent}/agent.ts +1 -1
- package/dist/templates/{research-workflow → research-handoff-agent}/agent.test.ts +1 -1
- package/dist/templates/{research-workflow → research-handoff-agent}/agent.ts +1 -1
- package/dist/templates/{research-workflow → research-handoff-agent}/workflows/filing.ts +1 -1
- package/dist/templates/{research-workflow → research-handoff-agent}/workflows/research.ts +1 -1
- package/dist/templates/{research-workflow → research-handoff-agent}/workflows/review.ts +1 -1
- package/dist/templates/{plan-and-execute → research-planner-agent}/shared.ts +1 -1
- package/dist/templates/{retail → retail-orders-agent}/pending.ts +2 -2
- package/dist/templates/{retail → retail-orders-agent}/shared.ts +1 -1
- package/dist/templates/{retail → retail-orders-agent}/store.ts +3 -3
- package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.ts +1 -1
- package/dist/templates/{roadside-assist → roadside-assistance-agent}/call.ts +1 -1
- package/dist/templates/{roadside-assist → roadside-assistance-agent}/shared.ts +3 -3
- package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/dispatch_truck.ts +1 -1
- package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.test.ts +1 -1
- package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.ts +1 -1
- package/dist/templates/{spoken-summary → spoken-summary-workflow}/client.tsx +1 -1
- package/dist/templates/{spoken-summary → spoken-summary-workflow}/workflows/summarize.ts +1 -1
- package/dist/templates/{solo-rpg → tabletop-rpg-agent}/shared.ts +3 -3
- package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/check_state.ts +1 -1
- package/dist/templates/{infocom-adventure → text-adventure-agent}/client.tsx +2 -2
- package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.eval.test.ts +3 -3
- package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.ts +1 -1
- package/dist/templates/{briefing-desk → topic-briefing-agent}/shared.ts +1 -1
- package/dist/templates/{briefing-desk → topic-briefing-agent}/slack.ts +1 -1
- package/dist/templates/transcription-workflow/agent.test.ts +1 -1
- package/dist/templates/transcription-workflow/agent.ts +1 -1
- package/dist/templates/transcription-workflow/client.tsx +1 -1
- package/dist/templates/transcription-workflow/workflows/batch.ts +2 -2
- package/dist/templates/transcription-workflow/workflows/transcribe.ts +1 -1
- package/dist/templates/{travel-concierge → travel-concierge-agent}/shared.ts +1 -1
- package/dist/templates/{web-researcher → web-research-agent}/agent.eval.test.ts +1 -1
- package/dist/templates/{web-researcher → web-research-agent}/agent.test.ts +1 -1
- package/dist/templates/{web-researcher → web-research-agent}/agent.ts +1 -1
- package/dist/templates/{word-wrangler → word-game-agent}/game.ts +1 -1
- package/dist/templates/{word-wrangler → word-game-agent}/shared.ts +1 -1
- package/dist/{test-Cllnx81G.mjs → test-PHHv0Vj6.mjs} +1 -1
- package/package.json +4 -4
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.test.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/agent.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/client.tsx +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/leads.json +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/screening-lock.test.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/screening-lock.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/shared.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/system-prompt.md +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/candidate_details.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/proceed_to_emails.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/read_email.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/rescore_with_feedback.ts +0 -0
- /package/dist/templates/{hiring-desk → applicant-screening-agent}/tools/screen_candidates.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/agent.eval.test.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/agent.test.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/workflows/audit.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/workflows/ingest.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/workflows/media.ts +0 -0
- /package/dist/templates/{call-audit → call-audit-workflow}/workflows/sync-api.ts +0 -0
- /package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{code-interpreter → code-interpreter-agent}/agent.ts +0 -0
- /package/dist/templates/{code-interpreter → code-interpreter-agent}/system-prompt.md +0 -0
- /package/dist/templates/{pipeline-simple → custom-pipeline-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{pipeline-simple → custom-pipeline-agent}/stages.test.ts +0 -0
- /package/dist/templates/{redline → document-redline-workflow}/agent.eval.test.ts +0 -0
- /package/dist/templates/{redline → document-redline-workflow}/agent.test.ts +0 -0
- /package/dist/templates/{redline → document-redline-workflow}/form.ts +0 -0
- /package/dist/templates/{redline → document-redline-workflow}/workflows/prompts.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/agent.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/client.tsx +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/shared.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/system-prompt.md +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_add_note.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_escalate.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_get.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_triage.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_update_status.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_dashboard.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_protocols.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/ops_run_scenario.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_dispatch.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_get_available.ts +0 -0
- /package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/resources_update_status.ts +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/agent.ts +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/shared.ts +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/system-prompt.md +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/tools/recommend.ts +0 -0
- /package/dist/templates/{night-owl → entertainment-picks-agent}/tools/revisit.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.test.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/agent.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/calendar.test.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/client.tsx +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/inbox.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/nodes.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/prompts.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/review.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/system-prompt.md +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/accept.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/ask_question.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/draft_reply.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/edit.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/ignore.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/inbox_status.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/meeting_assistant.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/new_email.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/open_email.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/respond.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/review_memory.ts +0 -0
- /package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/triage_inbox.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.test.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/agent.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/card.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/catalogs.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/client.tsx +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/desk-seams.test.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/desk.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/disputes.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/events.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/hotel.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/policies.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/records.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/restaurant.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/seed.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/system-prompt.md +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/abandon_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/add_to_waitlist.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_airport_car.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_business_center.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_spa_appointment.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/book_tour.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/cancel_restaurant_reservation.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/cancel_room_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/check_restaurant_availability.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/check_room_availability.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/choose_room.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/confirm_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/dispatch_emergency.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/dispute_charge.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/flag_late_arrival.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_guest_history.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_invoice.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_policy.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/lookup_restaurant_reservation.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/modify_restaurant_reservation.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/order_flowers.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_card.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_followup.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_group_inquiry.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/record_guest_details.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/reinstate_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/request_flight_reconfirmation.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/resend_confirmation.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/reserve_table.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/resolve_room_conflict.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/schedule_wakeup_call.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_do_not_disturb.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_extras.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/set_stay.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/start_booking_modification.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/start_room_booking.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/take_guest_message.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/transfer_call.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/update_card.ts +0 -0
- /package/dist/templates/{hotel-desk → hotel-reception-agent}/tools/verify_booking.ts +0 -0
- /package/dist/templates/{link-digest → link-digest-workflow}/agent.eval.test.ts +0 -0
- /package/dist/templates/{link-digest → link-digest-workflow}/api-client.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/agent.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/fda.test.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/fda.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/system-prompt.md +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/tools/check_drug_interaction.ts +0 -0
- /package/dist/templates/{health-assistant → medication-safety-agent}/tools/medication_lookup.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/shared.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/cancel_recap.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/keep_transcript.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/recap_progress.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/recap_status.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/tools/request_recap.ts +0 -0
- /package/dist/templates/{recap-workflow → meeting-recap-agent}/workflows/tokens.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.test.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/agent.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/client.tsx +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/shared.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/system-prompt.md +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/add_pizza.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/place_order.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/remove_pizza.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/set_customer_name.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/update_pizza.ts +0 -0
- /package/dist/templates/{pizza-ordering → pizza-ordering-agent}/tools/view_order.ts +0 -0
- /package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/feeds.ts +0 -0
- /package/dist/templates/{podcast-digest → podcast-digest-workflow}/workflows/slack.ts +0 -0
- /package/dist/templates/{simple → quickstart-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/shared.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/tools/file_it_now.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/tools/request_research.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/tools/research_progress.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/tools/research_status.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/workflows/notes.ts +0 -0
- /package/dist/templates/{research-workflow → research-handoff-agent}/workflows/prompts.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.test.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/agent.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/client.tsx +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/procedure.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/prompts.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/system-prompt.md +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/plan_status.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/revise_plan.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/start_plan.ts +0 -0
- /package/dist/templates/{plan-and-execute → research-planner-agent}/tools/work_next_step.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/address.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/agent.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/agent.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/authenticate.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/cancel.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/client.tsx +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/payment.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/pending.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/refund.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/registry.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/resolve.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/resolve.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/returns.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/seed.json +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/seed.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/shared.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/store.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/swap.test.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/swap.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/system-prompt.md +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/cancel_change.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/cancel_pending_order.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/confirm_change.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/exchange_delivered_order_items.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/find_user_id_by_email.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/find_user_id_by_name_zip.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/get_item_details.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/get_order_details.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/get_product_details.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/get_user_details.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/list_all_product_types.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_address.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_items.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/modify_pending_order_payment.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/modify_user_address.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/return_delivered_order_items.ts +0 -0
- /package/dist/templates/{retail → retail-orders-agent}/tools/transfer_to_human_agents.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/agent.test.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/events.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/system-prompt.md +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/acknowledge_disclosure.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/job_status.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/lookup_coverage.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/report_location.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/tools/service_disclosure.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/yard.test.ts +0 -0
- /package/dist/templates/{roadside-assist → roadside-assistance-agent}/yard.ts +0 -0
- /package/dist/templates/{spoken-summary → spoken-summary-workflow}/agent.eval.test.ts +0 -0
- /package/dist/templates/{spoken-summary → spoken-summary-workflow}/workflows/transcribe.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.test.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/agent.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/client.tsx +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/system-prompt.md +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/action_roll.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/burn_momentum.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/oracle.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/setup_character.ts +0 -0
- /package/dist/templates/{solo-rpg → tabletop-rpg-agent}/tools/update_state.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/agent.test.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/agent.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/client.tsx +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/knowledge.json +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/nodes.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/procedure.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/prompts.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/shared.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/system-prompt.md +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/tools/answer_question.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/tools/list_topics.ts +0 -0
- /package/dist/templates/{support-line → technical-support-agent}/tools/log_ticket.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.test.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/agent.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/shared.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/system-prompt.md +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_drop.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_flag.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_get.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_move.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_restart.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_score.ts +0 -0
- /package/dist/templates/{infocom-adventure → text-adventure-agent}/tools/game_state_take.ts +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/agent.test.ts +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/system-prompt.md +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/briefing_so_far.ts +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/research_topic.ts +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/send_briefing.ts +0 -0
- /package/dist/templates/{briefing-desk → topic-briefing-agent}/tools/verify_claim.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.test.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/agent.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/call-events.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/client.tsx +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/routing.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/system-prompt.md +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_car_rental.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_excursion.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/book_hotel.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/cancel_action.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/cancel_ticket.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/complete_or_escalate.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/confirm_action.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/lookup_booking.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_car_rentals.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_excursions.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_flights.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/search_hotels.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_car_rental_assistant.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_excursion_assistant.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_flight_assistant.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/to_hotel_assistant.ts +0 -0
- /package/dist/templates/{travel-concierge → travel-concierge-agent}/tools/update_ticket.ts +0 -0
- /package/dist/templates/{web-researcher → web-research-agent}/system-prompt.md +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/agent.eval.test.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/agent.test.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/agent.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/client.tsx +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/guess.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/player.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/system-prompt.md +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/tools/final_score.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/tools/relay_description.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/tools/repeat_word.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/tools/skip_word.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/tools/start_game.ts +0 -0
- /package/dist/templates/{word-wrangler → word-game-agent}/words.ts +0 -0
package/dist/scaffold/CLAUDE.md
CHANGED
|
@@ -14,8 +14,8 @@ The fast loop: edit → `pnpm dev` (browser, talk to it) →
|
|
|
14
14
|
and wrong while something is driving the agent for twenty minutes;
|
|
15
15
|
`AAI_DEV_WATCH=1` is the same switch for a process supervisor.
|
|
16
16
|
2. **Run `pnpm test` after logic changes** — vitest. Co-locate tests as
|
|
17
|
-
`agent.test.ts` (see `pipeline-
|
|
18
|
-
**When the project has an `agent.test.ts` (the default `
|
|
17
|
+
`agent.test.ts` (see `custom-pipeline-agent` template for a reference).
|
|
18
|
+
**When the project has an `agent.test.ts` (the default `quickstart-agent`
|
|
19
19
|
template and several others ship one), it is yours to maintain.** It
|
|
20
20
|
asserts the agent's shape — name, providers, tool names —
|
|
21
21
|
so rewriting the agent without updating it leaves a test asserting an
|
|
@@ -38,7 +38,7 @@ The fast loop: edit → `pnpm dev` (browser, talk to it) →
|
|
|
38
38
|
thing written out.
|
|
39
39
|
3. **Run `pnpm eval` when you change what the agent DOES** — a test asserts
|
|
40
40
|
the agent's shape; an eval drives a real session and asserts what it did.
|
|
41
|
-
Cases live in `agent.eval.test.ts` (the `
|
|
41
|
+
Cases live in `agent.eval.test.ts` (the `quickstart-agent` template ships one):
|
|
42
42
|
|
|
43
43
|
```ts no-check
|
|
44
44
|
import { describeEval } from "@alexkroman1/aai-runtime/eval/vitest";
|
|
@@ -84,19 +84,19 @@ The fast loop: edit → `pnpm dev` (browser, talk to it) →
|
|
|
84
84
|
6. **Look at templates before writing custom code** — the CLI ships working
|
|
85
85
|
examples inside its own package, at
|
|
86
86
|
`node_modules/@alexkroman1/aai-cli/dist/templates/`. Read them directly;
|
|
87
|
-
`aai init --template <name>` scaffolds a fresh project from one. Closest
|
|
88
|
-
|
|
89
|
-
`pizza-ordering`, `retail` (the most
|
|
90
|
-
relational store
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
`aai init --template <name>` scaffolds a fresh project from one. Closest:
|
|
88
|
+
`quickstart-agent`, `custom-pipeline-agent`, `web-research-agent`,
|
|
89
|
+
`tabletop-rpg-agent`, `pizza-ordering-agent`, `retail-orders-agent` (the most
|
|
90
|
+
complex — 15 tools over a relational store with a `syncState` UI). Four are
|
|
91
|
+
LangChain/LangGraph ports, and each says in its own source what had to change:
|
|
92
|
+
`travel-concierge-agent` (their customer-support bot — specialist desks, every
|
|
93
|
+
booking staged for a spoken confirmation before it applies),
|
|
94
|
+
`technical-support-agent` (self-RAG/CRAG — retrieve, grade what came back,
|
|
95
95
|
rewrite the question, and refuse to speak an answer it cannot ground),
|
|
96
|
-
`
|
|
97
|
-
caller can redirect between them), and `redline` (the
|
|
98
|
-
critique, revise
|
|
99
|
-
durable run rather than a voice agent). When reading SDK
|
|
96
|
+
`research-planner-agent` (plan then work the plan — one step per tool call, so
|
|
97
|
+
the caller can redirect between them), and `document-redline-workflow` (the
|
|
98
|
+
reflection agent — write, critique, revise; too slow for a phone, so a PAGE
|
|
99
|
+
over a durable run rather than a voice agent). When reading SDK
|
|
100
100
|
types under
|
|
101
101
|
`node_modules/@alexkroman1/aai*/dist/`, note the built entry points
|
|
102
102
|
re-export with source specifiers (`"./sdk/constants.ts"`,
|
|
@@ -795,10 +795,10 @@ Five things worth knowing:
|
|
|
795
795
|
#### A third-party callback is an OPTIMIZATION over a reconciling read
|
|
796
796
|
|
|
797
797
|
The webhook route is how a payment provider, a transcription service or an
|
|
798
|
-
approval mailer resumes a run, and `recap-
|
|
799
|
-
hands AssemblyAI a `webhook_url` and parks on the delivery instead of polling
|
|
800
|
-
for twenty minutes. Five things about that shape,
|
|
801
|
-
|
|
798
|
+
approval mailer resumes a run, and `meeting-recap-agent` is the worked example —
|
|
799
|
+
it hands AssemblyAI a `webhook_url` and parks on the delivery instead of polling
|
|
800
|
+
for twenty minutes. Five things about that shape, every one a trap somebody has
|
|
801
|
+
already paid for:
|
|
802
802
|
|
|
803
803
|
- **Mint it with `stepWebhookUrl(token)`, from inside the step that hands it
|
|
804
804
|
over.** That is the step-side half of `ctx.workflows.publicWebhookUrl` — the
|
|
@@ -1025,7 +1025,7 @@ export async function measure(uploadId: string) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
```
|
|
1027
1027
|
|
|
1028
|
-
`call-audit` is the worked example for all three at once.
|
|
1028
|
+
`call-audit-workflow` is the worked example for all three at once.
|
|
1029
1029
|
|
|
1030
1030
|
### Posting somewhere — `@alexkroman1/aai/channels`
|
|
1031
1031
|
|
|
@@ -1049,11 +1049,11 @@ export async function announce(headline: string, points: string[]) {
|
|
|
1049
1049
|
|
|
1050
1050
|
The webhook URL is a secret like any other — declare it in `requiredEnv` and set
|
|
1051
1051
|
it with `aai secret put`. A channel's credential is its DESTINATION and is
|
|
1052
|
-
passed in,
|
|
1053
|
-
|
|
1052
|
+
passed in, so no channel reads an env var of its own. `ChannelMessage` is
|
|
1053
|
+
rendered per platform, so the same message is legal on a channel kind added
|
|
1054
1054
|
later; `isSlackWebhookUrl` / `isSlackWorkflowTriggerUrl` validate a pasted URL
|
|
1055
|
-
before a run depends on it, and `explainChannelFailure` turns a refusal into a
|
|
1056
|
-
a person can act on. `podcast-digest` is the worked example.
|
|
1055
|
+
before a run depends on it, and `explainChannelFailure` turns a refusal into a
|
|
1056
|
+
sentence a person can act on. `podcast-digest-workflow` is the worked example.
|
|
1057
1057
|
|
|
1058
1058
|
### A step's HTTP: use `stepFetch`, not `fetch`
|
|
1059
1059
|
|
|
@@ -1126,9 +1126,9 @@ it for free.
|
|
|
1126
1126
|
### A step can SPEAK, and store the file it made
|
|
1127
1127
|
|
|
1128
1128
|
A workflow whose answer is a FILE — a summary read aloud, a rendered image, a
|
|
1129
|
-
generated PDF — needs two things a first draft reaches for and
|
|
1130
|
-
Both are on `@alexkroman1/aai/step`, and `spoken-summary`
|
|
1131
|
-
|
|
1129
|
+
generated PDF — needs two things a first draft reaches for and misses.
|
|
1130
|
+
Both are on `@alexkroman1/aai/step`, and `spoken-summary-workflow` shows the
|
|
1131
|
+
whole round trip.
|
|
1132
1132
|
|
|
1133
1133
|
```ts
|
|
1134
1134
|
import { stepSpeak, stepWriteUpload } from "@alexkroman1/aai/step";
|
|
@@ -1788,10 +1788,10 @@ export const checkout = dialog("checkout", {
|
|
|
1788
1788
|
|
|
1789
1789
|
A tool declared with `checkout.tool({...})` is REFUSED unless the dialog is in a
|
|
1790
1790
|
state that allows it, and the refusal reaches the model as a `ToolFailure` it
|
|
1791
|
-
can recover from — the
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1791
|
+
can recover from — the gate is enforced at EXECUTION rather than hoped for in a
|
|
1792
|
+
prompt. The states and events are inferred from the spec, so a misspelled `send`
|
|
1793
|
+
is a compile error. `emergency-dispatch-agent` and `tabletop-rpg-agent` are the
|
|
1794
|
+
worked examples.
|
|
1795
1795
|
|
|
1796
1796
|
**`procedure()` runs a flow YOU drive, with no model in the loop.** Where a
|
|
1797
1797
|
dialog constrains a conversation, a procedure is an algorithm with branches,
|
|
@@ -1806,10 +1806,10 @@ const result = await answer.run({ question }, { signal: ctx.signal });
|
|
|
1806
1806
|
```
|
|
1807
1807
|
|
|
1808
1808
|
`run` resolves with the machine's output, or throws `ProcedureNotFinishedError`
|
|
1809
|
-
if it stops without reaching a final state — which
|
|
1809
|
+
if it stops without reaching a final state — which makes "we ran out of
|
|
1810
1810
|
attempts" a state you declare and handle rather than an error. Options are
|
|
1811
1811
|
`ProcedureRunOptions`; the machine is an XState machine, and `xstate` is already
|
|
1812
|
-
an SDK dependency. `support-
|
|
1812
|
+
an SDK dependency. `technical-support-agent` is the worked example.
|
|
1813
1813
|
|
|
1814
1814
|
### Subagents (`ctx.delegate`)
|
|
1815
1815
|
|
|
@@ -2113,7 +2113,7 @@ wrong in ways that only show up on real pages: `<[^>]+>` cuts a tag whose
|
|
|
2113
2113
|
attribute contains a `>`, `<script[^>]*>[\s\S]*?<\/script>` leaves the whole
|
|
2114
2114
|
script in your prompt when the page was truncated mid-tag, and
|
|
2115
2115
|
`indexOf("<title>")` finds an entry's title rather than a channel's. The
|
|
2116
|
-
`link-digest` and `podcast-digest` templates each shipped
|
|
2116
|
+
`link-digest-workflow` and `podcast-digest-workflow` templates each shipped one
|
|
2117
2117
|
before this subpath existed.
|
|
2118
2118
|
|
|
2119
2119
|
## Persisting data — bring your own client
|
|
@@ -2377,8 +2377,8 @@ import { Form, WorkflowFields } from "@alexkroman1/aai-ui";
|
|
|
2377
2377
|
</Form>;
|
|
2378
2378
|
```
|
|
2379
2379
|
|
|
2380
|
-
`transcription-workflow` is the all-declared version; `link-digest`
|
|
2381
|
-
form by hand, which is what the two are for.
|
|
2380
|
+
`transcription-workflow` is the all-declared version; `link-digest-workflow`
|
|
2381
|
+
writes its form by hand, which is what the two are for.
|
|
2382
2382
|
|
|
2383
2383
|
The usual shape — note `StartScreen` **wraps** the app rather than sitting
|
|
2384
2384
|
beside it; writing `<StartScreen ... />` self-closing is a `TS2741:
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"publish:agent": "aai publish"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alexkroman1/aai": "^16.
|
|
19
|
-
"@alexkroman1/aai-cli": "^16.
|
|
20
|
-
"@alexkroman1/aai-runtime": "^16.
|
|
21
|
-
"@alexkroman1/aai-ui": "^16.
|
|
18
|
+
"@alexkroman1/aai": "^16.1.0",
|
|
19
|
+
"@alexkroman1/aai-cli": "^16.1.0",
|
|
20
|
+
"@alexkroman1/aai-runtime": "^16.1.0",
|
|
21
|
+
"@alexkroman1/aai-ui": "^16.1.0",
|
|
22
22
|
"react": "^19.2.8",
|
|
23
23
|
"react-dom": "^19.2.8",
|
|
24
24
|
"tailwindcss": "^4.0.0",
|
package/dist/start.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as log } from "./_ui-DCt4qZrk.mjs";
|
|
3
3
|
import { n as WORKER_ARTIFACT_REL, t as CLIENT_ARTIFACT_REL } from "./_artifacts-BJOYGQPp.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { i as resolveServerEnv, n as DEPLOY_ENV_FILES } from "./_server-common-DAcv1nC5.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
@@ -3,7 +3,7 @@ import { a as ok, t as CliError } from "./_output-DBP9Op_d.mjs";
|
|
|
3
3
|
import { n as log, t as fmtUrl } from "./_ui-DCt4qZrk.mjs";
|
|
4
4
|
import { l as formatCappedList } from "./_utils-D5JGcjiW.mjs";
|
|
5
5
|
import { s as updateProjectConfig } from "./_config-DYzC6WMD.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { i as resolveServerEnv } from "./_server-common-DAcv1nC5.mjs";
|
|
7
7
|
import { o as resolveDeployTarget } from "./_agent-BzUeqOdj.mjs";
|
|
8
8
|
import { layerScaffold } from "./_templates-CuP74F8D.mjs";
|
|
9
9
|
import { a as publishStudioProject, c as studioProjectUrl, f as checkedResponse, i as projectNameFromDir, n as fetchStudioProject, o as pushStudioSource, r as listStudioProjects, s as studioProjectApiUrl, t as collectSourceFiles, u as apiRequest } from "./_studio-DnR_BqFp.mjs";
|
|
@@ -226,7 +226,7 @@ export type Scored = Settled<Candidate, CandidateScore>;
|
|
|
226
226
|
* Their `score_leads`: every candidate through Crew A, concurrently.
|
|
227
227
|
*
|
|
228
228
|
* Settled per candidate rather than raced to the first rejection, for the
|
|
229
|
-
* reason `briefing-
|
|
229
|
+
* reason `topic-briefing-agent` settles its angles: a caller on the phone would rather
|
|
230
230
|
* hear eleven scores and one apology than an error, and the one that failed
|
|
231
231
|
* is named so the desk can offer to score them again. `mapSettled` is that
|
|
232
232
|
* policy — the `try` around each item, the window, and the item kept beside
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
* `hiringSlot.tool` rather than a `tool()` opening with `hiringSlot.get(ctx)`.**
|
|
21
21
|
* The declaration is what makes "does this write?" visible: the body is handed
|
|
22
22
|
* the state already frozen, so a line that tried to mutate it stops compiling
|
|
23
|
-
* instead of throwing on the first live call. `
|
|
23
|
+
* instead of throwing on the first live call. `research-planner-agent`'s `plan_status`
|
|
24
24
|
* is the same tool in the same position.
|
|
25
25
|
*/
|
|
26
26
|
export default hiringSlot.tool({
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This one is the deepest of the workflow apps, so it is the wrong place to start.
|
|
17
17
|
*
|
|
18
|
-
* - `link-digest` owns the SHAPE — `workflowApp()`, no session, no tools, a form
|
|
18
|
+
* - `link-digest-workflow` owns the SHAPE — `workflowApp()`, no session, no tools, a form
|
|
19
19
|
* that starts a run and a page that watches it.
|
|
20
20
|
* - `transcription-workflow` owns the FAN-OUT — why the sync transcription
|
|
21
21
|
* endpoint's 120-second cap forces one, and how a run survives dying on segment
|
|
22
22
|
* 27 of 60.
|
|
23
|
-
* - `spoken-summary` owns the audio ROUND TRIP — `stepSpeak`, `stepWriteUpload`, and
|
|
23
|
+
* - `spoken-summary-workflow` owns the audio ROUND TRIP — `stepSpeak`, `stepWriteUpload`, and
|
|
24
24
|
* why a page needs `api.download` rather than a URL.
|
|
25
25
|
*
|
|
26
26
|
* **What this template adds is a decoder**, and everything downstream changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* The page: a form, a progress log, the audit, and a player.
|
|
4
4
|
*
|
|
5
|
-
* `link-digest` shows these primitives raw, `transcription-workflow` shows the form
|
|
6
|
-
* layer in full, and `spoken-summary` shows how a page plays a file the RUN
|
|
5
|
+
* `link-digest-workflow` shows these primitives raw, `transcription-workflow` shows the form
|
|
6
|
+
* layer in full, and `spoken-summary-workflow` shows how a page plays a file the RUN
|
|
7
7
|
* produced. None of that is restated here — this page is deliberately the least
|
|
8
8
|
* novel file in the template, because the subject is the pipeline.
|
|
9
9
|
*
|
|
@@ -212,7 +212,7 @@ export function App() {
|
|
|
212
212
|
No `captions`, and that is a judgement rather than an oversight:
|
|
213
213
|
the spoken text is rendered in full immediately below the player,
|
|
214
214
|
which is the same information a caption track would carry.
|
|
215
|
-
`spoken-summary` passes one instead — worth reading, if a real
|
|
215
|
+
`spoken-summary-workflow` passes one instead — worth reading, if a real
|
|
216
216
|
track is what a page needs. */}
|
|
217
217
|
<AudioResult
|
|
218
218
|
download={audio}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* the engine act on it.
|
|
20
20
|
*
|
|
21
21
|
* Its own file rather than more of `agent.test.ts`, which is already the longest
|
|
22
|
-
* spec in `templates/` — the split is by subject, and `
|
|
23
|
-
* `pipeline-
|
|
22
|
+
* spec in `templates/` — the split is by subject, and `medication-safety-agent` and
|
|
23
|
+
* `custom-pipeline-agent` each carry a second spec for the same reason. It sits
|
|
24
24
|
* beside `agent.ts` rather than under `workflows/` because the package's vitest
|
|
25
25
|
* `include` reaches one level into `templates/`, so a spec any deeper would
|
|
26
26
|
* never run.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* narrate one step, TTS + ffmpeg → an MP3, stored, and its id
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
|
-
* `spoken-summary` owns the audio ROUND TRIP and is the template to read for it:
|
|
11
|
+
* `spoken-summary-workflow` owns the audio ROUND TRIP and is the template to read for it:
|
|
12
12
|
* why `stepSpeak` exists at all (a `TtsSession` is an event stream wired into a
|
|
13
13
|
* live pipeline's playback, and a step has no turn to be part of and has to return
|
|
14
14
|
* a VALUE), why `stepWriteUpload` is its other half, and why speaking and storing must
|
|
@@ -22,7 +22,7 @@ import { describe, expect, test } from "vitest";
|
|
|
22
22
|
* in memory is the pairing the template is built on — the builtin it asks for
|
|
23
23
|
* and the prompt that commands it — and that is what the last two tests are.
|
|
24
24
|
*/
|
|
25
|
-
describe("code-interpreter template", () => {
|
|
25
|
+
describe("code-interpreter-agent template", () => {
|
|
26
26
|
test("is deployable: validates, is nameable, and some stage can call the tool", () => {
|
|
27
27
|
// A builtin is something a MODEL reaches for, so this template is only
|
|
28
28
|
// itself while some stage can issue a tool call. `expectDeployable` asserts
|
|
@@ -2,7 +2,7 @@ import { expectDeployable } from "@alexkroman1/aai/testing";
|
|
|
2
2
|
import { describe, expect, test } from "vitest";
|
|
3
3
|
import agentDef from "./agent.ts";
|
|
4
4
|
|
|
5
|
-
describe("pipeline-
|
|
5
|
+
describe("custom-pipeline-agent template", () => {
|
|
6
6
|
test("is deployable: validates, is nameable, and every stage its mode needs is filled", () => {
|
|
7
7
|
// The three invariants every starter owes, thrown by name — the same
|
|
8
8
|
// conversion `aai build`/`aai deploy` run, so an invalid provider
|
|
@@ -52,7 +52,7 @@ describe("pipeline-simple template", () => {
|
|
|
52
52
|
// def rather than pinned, because changing the model id is the first
|
|
53
53
|
// tuning an author of this template tries. (This claim came from
|
|
54
54
|
// `math-buddy`, which declared an LLM for the same reason and was removed
|
|
55
|
-
// as a near-duplicate of `code-interpreter`; the stage swap lives here.)
|
|
55
|
+
// as a near-duplicate of `code-interpreter-agent`; the stage swap lives here.)
|
|
56
56
|
const config = expectDeployable(agentDef);
|
|
57
57
|
const declared = (["stt", "llm", "tts"] as const).filter(
|
|
58
58
|
(stage) => agentDef[stage] !== undefined,
|
|
@@ -2,7 +2,7 @@ import { agent } from "@alexkroman1/aai";
|
|
|
2
2
|
import { anthropicLlm } from "@alexkroman1/aai/llm";
|
|
3
3
|
|
|
4
4
|
export default agent({
|
|
5
|
-
name: "
|
|
5
|
+
name: "Custom Pipeline Assistant",
|
|
6
6
|
greeting: "Hi! I'm running in pipeline mode. What can I help with?",
|
|
7
7
|
// Declare only the stage you want elsewhere — here the LLM. Every stage
|
|
8
8
|
// left unset (STT and TTS here) runs on the AssemblyAI default, billed to
|
|
@@ -84,7 +84,7 @@ describe("three modes, three arms", () => {
|
|
|
84
84
|
|
|
85
85
|
test("the preset takes OPTIONS — one setting across the three stages at once", () => {
|
|
86
86
|
// That a bare `assemblyAIPipeline()` is exactly what an undeclared agent gets
|
|
87
|
-
// filled with is `
|
|
87
|
+
// filled with is `quickstart-agent`'s claim, and it stays there. This is the half that
|
|
88
88
|
// template only points at: the options bag, which is the reason to reach for
|
|
89
89
|
// the preset rather than let the default fill happen. `region` applies to STT
|
|
90
90
|
// and the LLM gateway together, so a residency choice is made once instead of
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A WORKFLOW APP — LangGraph's reflection agent, as a thing you submit work to.
|
|
3
3
|
*
|
|
4
|
-
* `link-digest` owns the shape and is the one to read first (`workflowApp()`, no
|
|
4
|
+
* `link-digest-workflow` owns the shape and is the one to read first (`workflowApp()`, no
|
|
5
5
|
* session, no tools, a form that starts a run and a page that watches it), and
|
|
6
6
|
* none of that is restated here. What this one is FOR is the mechanism in
|
|
7
7
|
* `workflows/redline.ts`: write a piece — or take one the author attached —
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* holds a phone for that, and nothing useful can be said down the line while it
|
|
16
16
|
* happens — the interesting output is a piece of prose to READ, not two
|
|
17
17
|
* sentences to hear. The same test sorts the other ports in this repo:
|
|
18
|
-
* `travel-concierge`, `support-
|
|
18
|
+
* `travel-concierge-agent`, `technical-support-agent` and `research-planner-agent` all answer a caller inside a
|
|
19
19
|
* turn, so they are voice agents; this one and `transcription-workflow` produce a
|
|
20
20
|
* document, so they are pages over durable runs.
|
|
21
21
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The redline desk's page: a form, the loop turning, and the piece it produced.
|
|
3
3
|
*
|
|
4
|
-
* `link-digest` shows the workflow primitives raw and `transcription-workflow` shows
|
|
4
|
+
* `link-digest-workflow` shows the workflow primitives raw and `transcription-workflow` shows
|
|
5
5
|
* the form layer over them; this page is the MIXED case, which is what most real
|
|
6
6
|
* schemas need and what neither of those has.
|
|
7
7
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* whose length the CRITIC decides.
|
|
4
4
|
*
|
|
5
5
|
* The rules a workflow body lives under are spelled out in
|
|
6
|
-
* `research-
|
|
6
|
+
* `research-handoff-agent/workflows/research.ts` and `link-digest-workflow/workflows/digest.ts`:
|
|
7
7
|
* the body is replayed from the top on every resume, so it holds no live handle
|
|
8
8
|
* and makes no undurable decision, and a step's arguments and result cross a
|
|
9
9
|
* queue. Read those first. What THIS one adds is the shape neither of them has:
|
|
@@ -59,7 +59,7 @@ async function createIncidentFor(
|
|
|
59
59
|
return result.incidentId;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
describe("dispatch-
|
|
62
|
+
describe("emergency-dispatch-agent template", () => {
|
|
63
63
|
test("resolving an incident does not yank a reassigned unit off its new incident", async () => {
|
|
64
64
|
const ctx = createToolContext();
|
|
65
65
|
|
|
@@ -11,7 +11,7 @@ import { callInHand, dispatchSlot, logEvent } from "./shared.ts";
|
|
|
11
11
|
* how an agent observes its own stream.
|
|
12
12
|
*
|
|
13
13
|
* **The dialog deliberately does NOT move on it, and that is the difference
|
|
14
|
-
* between this desk and a phone desk.** `retail` and `roadside-
|
|
14
|
+
* between this desk and a phone desk.** `retail-orders-agent` and `roadside-assistance-agent` both
|
|
15
15
|
* carry `"@session.timed-out"` into a `final` state, because there the caller
|
|
16
16
|
* IS the conversation and a hang-up ends it. Here the caller is one input to a
|
|
17
17
|
* shift: units are rolling, the board is live, and the dispatcher goes on
|
package/dist/templates/{dispatch-center → emergency-dispatch-agent}/tools/incident_create.ts
RENAMED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
/**
|
|
16
16
|
* **Not a `callFlow.tool`, deliberately.** A new 911 call is legal in every
|
|
17
17
|
* state, so a `when` listing all of them would be a gate that gates nothing —
|
|
18
|
-
* the same call `
|
|
18
|
+
* the same call `research-planner-agent`'s `start_plan` makes. It sends `LOGGED`
|
|
19
19
|
* itself, which is what `dialog.send` is public for, and reports the position it
|
|
20
20
|
* landed in so the model reads "confirm the severity and type" as part of this
|
|
21
21
|
* result rather than having to remember it from the prompt.
|
|
@@ -39,7 +39,7 @@ type RecommendResult = InferToolOutput<typeof recommend>;
|
|
|
39
39
|
*/
|
|
40
40
|
const run = toolRunner(agentDef);
|
|
41
41
|
|
|
42
|
-
describe("
|
|
42
|
+
describe("entertainment-picks-agent template", () => {
|
|
43
43
|
test("is deployable: validates, is nameable, and every stage its mode needs is filled", () => {
|
|
44
44
|
// The same conversion `aai build`/`aai deploy` run. `expectDeployable`
|
|
45
45
|
// rather than `expect(() => toAgentConfig(…)).not.toThrow()`: that spelling
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The recommendation LOG is state: the agent owns it in a `sessionSlot`,
|
|
5
5
|
* `syncState` projects it, and `useAgentState(nightProjection)` reads it. The
|
|
6
6
|
* page stores no copy, so a reload resumes with every pick still there. That is
|
|
7
|
-
* the pattern to reach for by default — see `pizza-ordering` for the same shape
|
|
7
|
+
* the pattern to reach for by default — see `pizza-ordering-agent` for the same shape
|
|
8
8
|
* over a shopping cart.
|
|
9
9
|
*
|
|
10
10
|
* The "recommending…" flash and the wind-down nudge are MOMENTS someone else
|
|
@@ -89,7 +89,7 @@ const NAMES_NO_TIME = /\bnot\s+(free|available)\b|\bno\s+(free|open|available)\b
|
|
|
89
89
|
* A report that says the calendar was checked and stops reads as availability
|
|
90
90
|
* to the desk and offers the sender nothing — and `expectedOutput` can ask for
|
|
91
91
|
* a dense sentence but cannot refuse one that is not. So the run is JUDGED, as
|
|
92
|
-
* `briefing-
|
|
92
|
+
* `topic-briefing-agent`'s fact checker is, and the complaint names the fix rather
|
|
93
93
|
* than restating the rule. A verdict the run never satisfies is not an error:
|
|
94
94
|
* there IS an answer, and {@link findMeetingTime} passes it on marked unusable.
|
|
95
95
|
*/
|
|
@@ -62,7 +62,7 @@ export interface InboxEmail extends SeedEmail {
|
|
|
62
62
|
closedAs: ClosedAs | null;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
/** One lookup for the draft and the frozen value alike (see `dispatch-
|
|
65
|
+
/** One lookup for the draft and the frozen value alike (see `emergency-dispatch-agent`). */
|
|
66
66
|
export function findEmail<E extends { id: string }>(
|
|
67
67
|
emails: readonly E[],
|
|
68
68
|
id: string,
|
|
@@ -365,7 +365,7 @@ const HUNG_UP = "@session.timed-out" satisfies `@${SessionEventType}`;
|
|
|
365
365
|
/**
|
|
366
366
|
* `as const` is load-bearing: the event union is synthesized from the `on` keys.
|
|
367
367
|
*
|
|
368
|
-
* The hang-up is declared ONCE, on the parent (see `roadside-
|
|
368
|
+
* The hang-up is declared ONCE, on the parent (see `roadside-assistance-agent`), and it
|
|
369
369
|
* matters more here than in most templates: an executive who hangs up with a
|
|
370
370
|
* draft waiting would otherwise leave `accept` legal for the rest of the
|
|
371
371
|
* session, and `accept` is the one tool that sends email in their name.
|
package/dist/templates/{executive-assistant → executive-inbox-agent}/tools/send_calendar_invite.ts
RENAMED
|
@@ -19,7 +19,7 @@ import { assistantSlot, DRAFTING, reviewFlow } from "../shared.ts";
|
|
|
19
19
|
* out digit by digit.
|
|
20
20
|
*
|
|
21
21
|
* **And the calendar is CHECKED.** The description asks for `meeting_assistant`
|
|
22
|
-
* first, and a rule the model can skip is not a rule (see `retail`'s
|
|
22
|
+
* first, and a rule the model can skip is not a rule (see `retail-orders-agent`'s
|
|
23
23
|
* confirmation gate): a slot the calendar already holds is refused here, naming
|
|
24
24
|
* what is in it, so the one tool that books time in the executive's name cannot
|
|
25
25
|
* double-book them because a model went straight to it.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* and share everything else: the past-date check, the party cap, the code, the
|
|
8
8
|
* "confirm the fixed details, no further call is needed" directive. The
|
|
9
9
|
* FACTORY holds the shared half and each `tools/` file names one instance,
|
|
10
|
-
* the way `travel-concierge`'s delegation tools do.
|
|
10
|
+
* the way `travel-concierge-agent`'s delegation tools do.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type { InferSchemaOutput, ToolDef, ToolFailure } from "@alexkroman1/aai";
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
* offset from it (in-house, arriving tomorrow, the oversold night, the sold-out
|
|
48
48
|
* Friday), and a receptionist reasons about "next Saturday" against it — a
|
|
49
49
|
* template whose scenarios moved with the calendar would have a walk scenario
|
|
50
|
-
* that only reproduces on Mondays. `executive-
|
|
50
|
+
* that only reproduces on Mondays. `executive-inbox-agent` freezes its calendar
|
|
51
51
|
* for the same reason.
|
|
52
52
|
*/
|
|
53
53
|
|
|
@@ -505,7 +505,7 @@ describe("the run is DURABLE", () => {
|
|
|
505
505
|
* agent really serves and a typo in either half fails rather than matching
|
|
506
506
|
* whatever came next.
|
|
507
507
|
*/
|
|
508
|
-
const BASE = "https://agents.example/link-digest";
|
|
508
|
+
const BASE = "https://agents.example/link-digest-workflow";
|
|
509
509
|
const RUN_ID = "wrun_otters";
|
|
510
510
|
|
|
511
511
|
/** A completed run as the API serves it — the shape `WorkflowRunOf` describes. */
|
|
@@ -582,7 +582,7 @@ test("connect refuses a base URL pointing at a VOICE agent, naming it", async ()
|
|
|
582
582
|
// calls later as a 404 from a route that was never going to exist.
|
|
583
583
|
stubAgent({ page: "voice" });
|
|
584
584
|
await expect(connect({ baseUrl: `${BASE}/` })).rejects.toThrow(
|
|
585
|
-
/agents\.example\/link-digest answers as a voice agent/,
|
|
585
|
+
/agents\.example\/link-digest-workflow answers as a voice agent/,
|
|
586
586
|
);
|
|
587
587
|
});
|
|
588
588
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* WebSocket, and no voice pipeline: the page (`client.tsx`) starts a run over
|
|
7
7
|
* the workflow HTTP API and watches it, and the run outlives the tab.
|
|
8
8
|
*
|
|
9
|
-
* ## What makes this a different KIND of agent from `research-
|
|
9
|
+
* ## What makes this a different KIND of agent from `research-handoff-agent`
|
|
10
10
|
*
|
|
11
|
-
* `research-
|
|
11
|
+
* `research-handoff-agent` is a voice agent that HANDS OFF to a workflow — a caller is on
|
|
12
12
|
* the line, so a tool starts a run and answers the turn. Here the workflow is
|
|
13
13
|
* the entire product, and the declaration says so:
|
|
14
14
|
*
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
* declares no providers, so nothing else in its config names a credential.
|
|
50
50
|
*
|
|
51
51
|
* A step is handed no `ToolContext`, so it reads that key with `requireStepEnv`
|
|
52
|
-
* rather than `ctx.env`; see `workflows/digest.ts` and `research-
|
|
52
|
+
* rather than `ctx.env`; see `workflows/digest.ts` and `research-handoff-agent`'s module
|
|
53
53
|
* doc for the one thing that changes under `aai dev` (the key has to be in
|
|
54
54
|
* `.env`, not just your shell).
|
|
55
55
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* what made it the default.
|
|
28
28
|
*
|
|
29
29
|
* What the page can still say is which key: `useRunKey({ storage: "local" })`
|
|
30
|
-
* for a run meant to outlive the tab (`podcast-digest`), an ACCOUNT's own id
|
|
30
|
+
* for a run meant to outlive the tab (`podcast-digest-workflow`), an ACCOUNT's own id
|
|
31
31
|
* for an app with logins, `recover: false` for a form that must always open
|
|
32
32
|
* empty. `use-run-key.ts` argues what a key may not be — derived from the URL
|
|
33
33
|
* being digested, or carried in a `?key=` parameter.
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
*
|
|
39
39
|
* ## The FORM here is still written by hand, deliberately
|
|
40
40
|
*
|
|
41
|
-
* This is the template that shows the primitives raw. `redline` and
|
|
41
|
+
* This is the template that shows the primitives raw. `document-redline-workflow` and
|
|
42
42
|
* `transcription-workflow` declare their forms — `<Form>` + `<WorkflowFields>`
|
|
43
43
|
* renders one control per scalar the schema declares — and that is what most
|
|
44
44
|
* pages should do. This one writes its single `<input>` itself, so a reader can
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The durable half of the link digest: a workflow body and its steps, and the
|
|
4
4
|
* steps really read the page and really call a model.
|
|
5
5
|
*
|
|
6
|
-
* The rules are the same ones `research-
|
|
6
|
+
* The rules are the same ones `research-handoff-agent/workflows/research.ts` spells out
|
|
7
7
|
* — the body is replayed from the top on every resume, so it holds no live
|
|
8
8
|
* handle and makes no undurable decision, and a step's arguments and return
|
|
9
9
|
* value cross a queue and so must be JSON-shaped and small. Read that file for
|
|
@@ -96,7 +96,7 @@ beforeEach(() => {
|
|
|
96
96
|
label.mockReset();
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
describe("
|
|
99
|
+
describe("medication-safety-agent template", () => {
|
|
100
100
|
test("both tools are discovered from tools/", () => {
|
|
101
101
|
// `agent()` takes no `tools` field: a file in `tools/` IS the tool. A
|
|
102
102
|
// template whose tools are never resolved ships a model with none.
|
|
@@ -441,7 +441,7 @@ describe("cancel_recap", () => {
|
|
|
441
441
|
* through the SDK — and `step-fetch.ts` falls back to `globalThis.fetch` only
|
|
442
442
|
* when nothing is published. A global stub therefore passed while exercising a
|
|
443
443
|
* path production never takes; every sibling template already stubs the slot,
|
|
444
|
-
* and `link-digest/agent.test.ts` states the rule this one used to break.
|
|
444
|
+
* and `link-digest-workflow/agent.test.ts` states the rule this one used to break.
|
|
445
445
|
*
|
|
446
446
|
* `installStubStepFetch` unpublishes on `onTestFinished`, so there is no restore
|
|
447
447
|
* registry here and a stub cannot reach the next file.
|
|
@@ -1140,7 +1140,7 @@ describe("the run is DURABLE", () => {
|
|
|
1140
1140
|
*
|
|
1141
1141
|
* Every step's HTTP goes through the slot, the model call included, so a
|
|
1142
1142
|
* gateway stub installed over `globalThis.fetch` beside a provider stub would
|
|
1143
|
-
* be bypassed — `link-digest/agent.test.ts` carries the same note.
|
|
1143
|
+
* be bypassed — `link-digest-workflow/agent.test.ts` carries the same note.
|
|
1144
1144
|
* `stubGatewayRoute` is the composition for it.
|
|
1145
1145
|
*
|
|
1146
1146
|
* `transcript` is a list of successive `GET` answers, so a spec says how many
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ported to a phone call.
|
|
5
5
|
*
|
|
6
6
|
* The desk transcribes a recording and writes it up. That takes minutes, and
|
|
7
|
-
* the caller is on the line for seconds, so the shape is `research-
|
|
7
|
+
* the caller is on the line for seconds, so the shape is `research-handoff-agent`'s: a
|
|
8
8
|
* tool starts a run and answers the turn, the run outlives the call, and the
|
|
9
9
|
* finished run takes an unprompted turn to read the result back.
|
|
10
10
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The durable half of the recap desk — and the file the Temporal patterns were
|
|
4
4
|
* ported into.
|
|
5
5
|
*
|
|
6
|
-
* Read `research-
|
|
6
|
+
* Read `research-handoff-agent/workflows/research.ts` first for the two rules every
|
|
7
7
|
* directive body obeys (replayed from the top, so no live handles and no
|
|
8
8
|
* undurable decisions; step arguments and results cross a queue, so pass an id
|
|
9
9
|
* and not a payload). Both hold here unchanged. What THIS template adds is the
|
|
@@ -234,7 +234,7 @@ const REQUEST_TIMEOUT_MS = 30_000;
|
|
|
234
234
|
* Transcript characters handed to the model.
|
|
235
235
|
*
|
|
236
236
|
* The pass-an-id-not-a-payload rule meeting the case where the payload IS the
|
|
237
|
-
* work — the same bound `link-digest` puts on article text, for the same
|
|
237
|
+
* work — the same bound `link-digest-workflow` puts on article text, for the same
|
|
238
238
|
* reason: it has to cross the queue, so it is capped rather than trusted.
|
|
239
239
|
*/
|
|
240
240
|
const MAX_TRANSCRIPT_CHARS = 24_000;
|
|
@@ -753,7 +753,7 @@ export async function discardTranscript(id: string): Promise<void> {
|
|
|
753
753
|
/**
|
|
754
754
|
* Reduce a transcript to something worth saying out loud.
|
|
755
755
|
*
|
|
756
|
-
* Separate from the polling on purpose, and for the same reason `link-digest`
|
|
756
|
+
* Separate from the polling on purpose, and for the same reason `link-digest-workflow`
|
|
757
757
|
* splits its fetch from its summary: a rate-limited model call replays the whole
|
|
758
758
|
* transcription — twenty minutes of provider time, already paid for — out of the
|
|
759
759
|
* journal instead of submitting the recording again.
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
//
|
|
28
28
|
// So a LIVE run of this file makes no provider call and costs nothing. That is
|
|
29
29
|
// the honest report rather than a gap being papered over: what a live run would
|
|
30
|
-
// add here is a real transcript, and `spoken-summary` and `call-audit` both
|
|
30
|
+
// add here is a real transcript, and `spoken-summary-workflow` and `call-audit-workflow` both
|
|
31
31
|
// measure that against a real recording already.
|
|
32
32
|
//
|
|
33
33
|
// WHAT NO EVAL HERE COVERS: durability — which for THIS template is most of
|