# XWUIInlineAIPrompt

Selection-anchored AI prompt with generate-then-verify before replace.

## Basic Usage

Idle prompt over a selection.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Idle prompt over a selection.
```

## Proposed

Diff preview before replace.

```example
file: examples/Proposed.ts
html: examples/Proposed.html
title: Proposed
description: Diff preview before replace.
```

## Prompting

Waiting for the host to return a proposal.

```example
file: examples/Prompting.ts
html: examples/Prompting.html
title: Prompting
description: Waiting for the host to return a proposal.
```

## Custom Instruction

Instruction field plus rewrite.

```example
file: examples/CustomInstruction.ts
html: examples/CustomInstruction.html
title: Custom Instruction
description: Instruction field plus rewrite.
```

```api
```
