@ai-ecoverse/slicc-spectrum 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/slicc-ui.js +3 -3
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/panels.d.ts +1 -1
- package/package.json +2 -2
package/dist/slicc-ui.js
CHANGED
|
@@ -6669,7 +6669,7 @@ function chatAgent(id) {
|
|
|
6669
6669
|
function chats(dock) {
|
|
6670
6670
|
return dock.api.panels.map((panel) => panel.id).filter((id) => chatAgent(id) !== null);
|
|
6671
6671
|
}
|
|
6672
|
-
function openChat(dock, agent, screen, focus = true) {
|
|
6672
|
+
function openChat(dock, agent, screen, focus = true, reveal = true) {
|
|
6673
6673
|
const id = chatId(agent.id);
|
|
6674
6674
|
if (!dock.has(id)) {
|
|
6675
6675
|
const sibling = chats(dock)[0];
|
|
@@ -6684,7 +6684,7 @@ function openChat(dock, agent, screen, focus = true) {
|
|
|
6684
6684
|
});
|
|
6685
6685
|
}
|
|
6686
6686
|
if (focus) dock.focusPanel(id);
|
|
6687
|
-
else dock.reveal(id);
|
|
6687
|
+
else if (reveal) dock.reveal(id);
|
|
6688
6688
|
return id;
|
|
6689
6689
|
}
|
|
6690
6690
|
function openDocument(dock, kind, path, screen) {
|
|
@@ -7003,7 +7003,7 @@ var SliccApp = class extends ThemedElement {
|
|
|
7003
7003
|
}
|
|
7004
7004
|
this.#prune();
|
|
7005
7005
|
const agent = this.#active();
|
|
7006
|
-
if (agent && this.#offers("chat")) openChat(dock, agent, this.screen, false);
|
|
7006
|
+
if (agent && this.#offers("chat")) openChat(dock, agent, this.screen, false, false);
|
|
7007
7007
|
}
|
|
7008
7008
|
#start(model) {
|
|
7009
7009
|
const dock = this.dock;
|