fix(terminal-rendering): move fmtToolUse table after numbered list
The heading was inserted between items 3 and 4, breaking GFM ordered list numbering (Forgejo renders items 4+ restarting at 1). Move the subsection to after item 5 and update the in-prose reference to use an anchor link instead of 'see table below'.
This commit is contained in:
parent
8f876d0154
commit
1b8b83fee1
1 changed files with 9 additions and 9 deletions
|
|
@ -122,8 +122,15 @@ suffix, so the terminal degrades cleanly against older event shapes.
|
|||
custom renderings); on miss fall through to a flat
|
||||
`.tool-use` row with `fmtToolUse → fmtArgsGeneric`.
|
||||
`fmtToolUse` surfaces the salient arg per built-in tool
|
||||
(see table below); `fmtArgsGeneric` handles everything
|
||||
else.
|
||||
(see [`fmtToolUse` patterns](#fmttooluse-patterns) below);
|
||||
`fmtArgsGeneric` handles everything else.
|
||||
4. `type == "user"` → walk `message.content[]` for
|
||||
`tool_result`; `renderToolResult` correlates via
|
||||
`tool_use_id → toolNameById` to default-open `recv`
|
||||
results with a markdown body, else short = flat /
|
||||
long = collapsed details.
|
||||
5. Unrecognised shape → `.sys` row (amber, `!` glyph).
|
||||
|
||||
### `fmtToolUse` patterns
|
||||
|
||||
The `short` name strips the `mcp__hyperhive__` / `mcp__bash__` /
|
||||
|
|
@ -180,13 +187,6 @@ name as-is.
|
|||
| `download_file*` | `download_file* room` |
|
||||
| **Everything else** | `fmtArgsGeneric` — see [Extra-MCP tools](#extra-mcp-tools) |
|
||||
|
||||
4. `type == "user"` → walk `message.content[]` for
|
||||
`tool_result`; `renderToolResult` correlates via
|
||||
`tool_use_id → toolNameById` to default-open `recv`
|
||||
results with a markdown body, else short = flat /
|
||||
long = collapsed details.
|
||||
5. Unrecognised shape → `.sys` row (amber, `!` glyph).
|
||||
|
||||
## Markdown
|
||||
|
||||
`mdNode(text)` wraps `marked.parse(text)` (the `marked` v4.x npm
|
||||
|
|
|
|||
Loading…
Reference in a new issue