| 1 | <html> |
| 2 | <head> |
| 3 | <title>Text Editor</title> |
| 4 | </head> |
| 5 | |
| 6 | <body> |
| 7 | <div x-data> |
| 8 | <template x-if="config"> |
| 9 | <div> |
| 10 | <div class="section-title">Text Editor</div> |
| 11 | <div class="section-description"> |
| 12 | Settings for the native text file read/write/patch tools. |
| 13 | </div> |
| 14 | |
| 15 | <div class="field"> |
| 16 | <div class="field-label"> |
| 17 | <div class="field-title">Max line tokens</div> |
| 18 | <div class="field-description"> |
| 19 | Lines exceeding this token count are cropped in read output. |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="field-control"> |
| 23 | <input type="number" min="50" max="5000" |
| 24 | x-model.number="config.max_line_tokens" /> |
| 25 | </div> |
| 26 | </div> |
| 27 | |
| 28 | <div class="field"> |
| 29 | <div class="field-label"> |
| 30 | <div class="field-title">Default line count</div> |
| 31 | <div class="field-description"> |
| 32 | Number of lines returned by read when no range is specified. |
| 33 | </div> |
| 34 | </div> |
| 35 | <div class="field-control"> |
| 36 | <input type="number" min="10" max="1000" |
| 37 | x-model.number="config.default_line_count" /> |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | <div class="field"> |
| 42 | <div class="field-label"> |
| 43 | <div class="field-title">Max total read tokens</div> |
| 44 | <div class="field-description"> |
| 45 | Total token budget for a single read operation output. |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="field-control"> |
| 49 | <input type="number" min="500" max="50000" |
| 50 | x-model.number="config.max_total_read_tokens" /> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 | </template> |
| 55 | </div> |
| 56 | </body> |
| 57 | |
| 58 | </html> |