@ai-ecoverse/slicc-spectrum 1.34.0 → 1.35.0
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/README.md +6 -6
- package/dist/slicc-dummy.js +33 -4
- package/dist/slicc-dummy.js.map +3 -3
- package/dist/slicc-ui.js +9 -2
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/chat.d.ts +1 -0
- package/dist/types/app/network.d.ts +2 -1
- package/dist/types/model/types.d.ts +5 -0
- package/package.json +2 -2
package/dist/slicc-ui.js
CHANGED
|
@@ -10596,6 +10596,11 @@ var routes = {
|
|
|
10596
10596
|
page: "Through this page\u2019s own fetch. Sites that block cross-origin requests are out of reach.",
|
|
10597
10597
|
none: "No route to the network."
|
|
10598
10598
|
};
|
|
10599
|
+
var automation = {
|
|
10600
|
+
extension: "Browser automation: through the SLICC extension.",
|
|
10601
|
+
proxy: "Browser automation: through slicc-node.",
|
|
10602
|
+
none: "Browser automation: not available. Install the extension or run slicc-node."
|
|
10603
|
+
};
|
|
10599
10604
|
function networkLabel(status2) {
|
|
10600
10605
|
return `Network: ${networkHealth[status2.health][1].toLowerCase()}`;
|
|
10601
10606
|
}
|
|
@@ -10826,6 +10831,7 @@ var SliccNetwork = class extends ModelElement {
|
|
|
10826
10831
|
</div>
|
|
10827
10832
|
<p data-route=${status2.route ?? "none"}>${routes[status2.route ?? "none"]}</p>
|
|
10828
10833
|
${status2.detail ? b`<p class="detail">${status2.detail}</p>` : A}
|
|
10834
|
+
${status2.browser ? b`<p data-browser=${status2.browser.via ?? "none"}>${automation[status2.browser.via ?? "none"]}${status2.browser.detail ? b` <span class="detail">${status2.browser.detail}</span>` : A}</p>` : A}
|
|
10829
10835
|
${this.model?.network?.check ? b`<div class="actions"><swc-button size="m" variant="secondary" data-action="check" ?pending=${this.checking} @click=${() => this.check()}>Check again</swc-button></div>` : A}
|
|
10830
10836
|
${this.error ? b`<div class="error" role="alert"><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${this.error}</span></div>` : A}
|
|
10831
10837
|
</section>`;
|
|
@@ -20898,7 +20904,8 @@ var SliccChat = class extends ThemedElement {
|
|
|
20898
20904
|
<sp-menu-item value="high">Think hard</sp-menu-item>
|
|
20899
20905
|
</sp-picker>
|
|
20900
20906
|
${meter}
|
|
20901
|
-
<swc-action-button size="s" quiet data-action="new-chat" ?disabled=${empty2} @click=${() => this.#newChat(agent)}><swc-icon-new slot="icon"></swc-icon-new>New chat</swc-action-button
|
|
20907
|
+
<swc-action-button id="new-chat" size="s" quiet data-action="new-chat" ?disabled=${empty2} @click=${() => this.#newChat(agent)}><swc-icon-new slot="icon"></swc-icon-new>New chat</swc-action-button>
|
|
20908
|
+
<swc-tooltip for="new-chat" placement="bottom">${agent.kind === "cone" && model.agent.freeze ? "Freeze this chat and start a new one" : "Start a new chat"}</swc-tooltip>`;
|
|
20902
20909
|
}
|
|
20903
20910
|
render() {
|
|
20904
20911
|
this.#handlers.color = this.color;
|
|
@@ -21783,7 +21790,7 @@ function available(model) {
|
|
|
21783
21790
|
var commands = [
|
|
21784
21791
|
{
|
|
21785
21792
|
name: "clear",
|
|
21786
|
-
detail: "Start
|
|
21793
|
+
detail: "Start a new chat",
|
|
21787
21794
|
run: (model, id) => model.agent.clear(id)
|
|
21788
21795
|
},
|
|
21789
21796
|
{
|