mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 19:04:37 +00:00
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:
parent
2756f2a974
commit
3db2a6fe2c
2 changed files with 3 additions and 5 deletions
|
|
@ -18,9 +18,9 @@ const BREAKPOINT = 800; // px - switch between overlay and side-by-side
|
||||||
|
|
||||||
@customElement("pi-chat-panel")
|
@customElement("pi-chat-panel")
|
||||||
export class ChatPanel extends LitElement {
|
export class ChatPanel extends LitElement {
|
||||||
@state() private agent?: Agent;
|
@state() public agent?: Agent;
|
||||||
@state() private agentInterface?: AgentInterface;
|
@state() public agentInterface?: AgentInterface;
|
||||||
@state() private artifactsPanel?: ArtifactsPanel;
|
@state() public artifactsPanel?: ArtifactsPanel;
|
||||||
@state() private hasArtifacts = false;
|
@state() private hasArtifacts = false;
|
||||||
@state() private artifactCount = 0;
|
@state() private artifactCount = 0;
|
||||||
@state() private showArtifactsPanel = false;
|
@state() private showArtifactsPanel = false;
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,6 @@ Execute JavaScript code in a sandboxed browser environment with full Web APIs.
|
||||||
- CSV: const Papa = (await import('https://esm.run/papaparse')).default;
|
- CSV: const Papa = (await import('https://esm.run/papaparse')).default;
|
||||||
- Chart.js: const Chart = (await import('https://esm.run/chart.js/auto')).default;
|
- Chart.js: const Chart = (await import('https://esm.run/chart.js/auto')).default;
|
||||||
- Three.js: const THREE = await import('https://esm.run/three');
|
- Three.js: const THREE = await import('https://esm.run/three');
|
||||||
- Lodash: const _ = await import('https://esm.run/lodash-es');
|
|
||||||
- D3.js: const d3 = await import('https://esm.run/d3');
|
|
||||||
|
|
||||||
## Important Notes
|
## Important Notes
|
||||||
- Graphics: Use fixed dimensions (800x600), NOT window.innerWidth/Height
|
- Graphics: Use fixed dimensions (800x600), NOT window.innerWidth/Height
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue