Edit code
Draft edits are controlled by the host. Tab moves out of the editor.
Select text or place the cursor, then request a local proposal.
Import CodeEditor from @stackunseen/ui/editor; ArtifactEditor from @stackunseen/ui/artifact-editor; MessageEditForm and ConversationMessageActions from @stackunseen/ui/conversation-flow. ReviewChanges, PromptInput and MentionPicker remain in the root entry.
Import styles.css and the corresponding editor.css, artifact-editor.css or conversation-flow.css. CodeMirror peers belong only to the editor. ArtifactEditor accepts a trusted renderEditor slot for custom editing surfaces.
The host supplies document revisions, command identities, permissions and receipts. Pending and unknown outcomes require reconciliation of the original request. Authentication, durable storage, filesystem changes and model services belong to your host.