Expose agent, agentInterface, and artifactsPanel as public in ChatPanel

Make these properties public so they can be accessed externally for
test automation and other programmatic control.

Changes:
- Change agent, agentInterface, artifactsPanel from private to public
This commit is contained in:
Mario Zechner 2025-10-10 11:40:07 +02:00
parent 2756f2a974
commit 3db2a6fe2c
2 changed files with 3 additions and 5 deletions

View file

@ -18,9 +18,9 @@ const BREAKPOINT = 800; // px - switch between overlay and side-by-side
@customElement("pi-chat-panel")
export class ChatPanel extends LitElement {
@state() private agent?: Agent;
@state() private agentInterface?: AgentInterface;
@state() private artifactsPanel?: ArtifactsPanel;
@state() public agent?: Agent;
@state() public agentInterface?: AgentInterface;
@state() public artifactsPanel?: ArtifactsPanel;
@state() private hasArtifacts = false;
@state() private artifactCount = 0;
@state() private showArtifactsPanel = false;