Add clickable artifact pills to tool renderer

- Create ArtifactPill component (similar to SkillPill)
- Renders filename as clickable pill with FileCode2 icon
- Clicking pill opens artifacts panel and selects that artifact
- Update ArtifactsToolRenderer to accept artifactsPanel reference
- Pass artifactsPanel from ChatPanel to renderer on initialization
- Display artifact pill below header for all commands
- Pill only clickable when artifactsPanel reference is available
This commit is contained in:
Mario Zechner 2025-10-08 14:01:25 +02:00
parent b3efac4591
commit 547be7ce37
3 changed files with 50 additions and 6 deletions

View file

@ -79,7 +79,7 @@ export class ChatPanel extends LitElement {
this.artifactsPanel.sandboxUrlProvider = this.sandboxUrlProvider;
}
// Register the standalone tool renderer (not the panel itself)
registerToolRenderer("artifacts", new ArtifactsToolRenderer());
registerToolRenderer("artifacts", new ArtifactsToolRenderer(this.artifactsPanel));
// Attachments provider
const getAttachments = () => {