import type { FormEvent } from "react"; import { Button } from "../../components/ui/button.js"; import { Textarea } from "../../components/ui/textarea.js"; import { AuthoringConversation } from "./AuthoringConversation.js"; import { canSubmitScene8Entry, type Scene8EntryAction, type Scene8EntryState, } from "./scene8-entry-state.js"; type Scene8ChatEntryProps = { readonly state: Scene8EntryState; readonly dispatch: (action: Scene8EntryAction) => void; }; /** Scene 8's deterministic request surface; submission reveals prepared data locally. */ export const Scene8ChatEntry = ({ state, dispatch }: Scene8ChatEntryProps) => { const submitted = state.phase === "submitted"; const canSubmit = canSubmitScene8Entry(state); const submit = (event?: FormEvent) => { event?.preventDefault(); if (canSubmit) dispatch({ type: "submit" }); }; return (
Agent handoff

What should the workflow author prepare?

Ask the external agent to inspect the available sources and capabilities before it authors the workflow.