docs(coding-agent): link to tool-execution.ts in Custom Rendering section
This commit is contained in:
@@ -127,7 +127,7 @@ Additional paths via `settings.json`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
To share extensions via npm or git, see [packages.md](packages.md).
|
To share extensions via npm or git as pi packages, see [packages.md](packages.md).
|
||||||
|
|
||||||
## Available Imports
|
## Available Imports
|
||||||
|
|
||||||
@@ -1263,7 +1263,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
|
|
||||||
### Custom Rendering
|
### Custom Rendering
|
||||||
|
|
||||||
Tools can provide `renderCall` and `renderResult` for custom TUI display. See [tui.md](tui.md) for the full component API.
|
Tools can provide `renderCall` and `renderResult` for custom TUI display. See [tui.md](tui.md) for the full component API and [tool-execution.ts](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/src/modes/interactive/components/tool-execution.ts) for how built-in tools render.
|
||||||
|
|
||||||
Tool output is wrapped in a `Box` that handles padding and background. Your render methods return `Component` instances (typically `Text`).
|
Tool output is wrapped in a `Box` that handles padding and background. Your render methods return `Component` instances (typically `Text`).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user