docs(coding-agent): improve extensions.md, add missing examples
- Add cross-links to session.md, keybindings.md, themes.md - Document truncateLine, highlightCode, getLanguageFromPath utilities - Add examples for previously undocumented APIs: - message-renderer.ts: registerMessageRenderer with Box styling - session-name.ts: setSessionName/getSessionName - event-bus.ts: pi.events for inter-extension communication - bookmark.ts: setLabel for entry bookmarking - Update examples table in extensions.md and README.md
This commit is contained in:
@@ -88,6 +88,20 @@ cp permission-gate.ts ~/.pi/agent/extensions/
|
||||
|-----------|-------------|
|
||||
| `mac-system-theme.ts` | Syncs pi theme with macOS dark/light mode |
|
||||
|
||||
### Messages & Communication
|
||||
|
||||
| Extension | Description |
|
||||
|-----------|-------------|
|
||||
| `message-renderer.ts` | Custom message rendering with colors and expandable details via `registerMessageRenderer` |
|
||||
| `event-bus.ts` | Inter-extension communication via `pi.events` |
|
||||
|
||||
### Session Metadata
|
||||
|
||||
| Extension | Description |
|
||||
|-----------|-------------|
|
||||
| `session-name.ts` | Name sessions for the session selector via `setSessionName` |
|
||||
| `bookmark.ts` | Bookmark entries with labels for `/tree` navigation via `setLabel` |
|
||||
|
||||
### Custom Providers
|
||||
|
||||
| Extension | Description |
|
||||
|
||||
Reference in New Issue
Block a user