diff --git a/nexus/components/src/Agent/AgentCard.jsx b/nexus/components/src/Agent/AgentCard.jsx index 24161d7..455e0c9 100644 --- a/nexus/components/src/Agent/AgentCard.jsx +++ b/nexus/components/src/Agent/AgentCard.jsx @@ -1,4 +1,4 @@ -const { href } = VM.require("devhub.${REPL_ACCOUNT}/widget/core.lib.url"); +const { href } = VM.require("devhub.near/widget/core.lib.url"); if (!href) { return <>; diff --git a/nexus/components/src/Agent/AgentChat.jsx b/nexus/components/src/Agent/AgentChat.jsx index 8b7930b..97c0122 100644 --- a/nexus/components/src/Agent/AgentChat.jsx +++ b/nexus/components/src/Agent/AgentChat.jsx @@ -1,4 +1,4 @@ -const { href } = VM.require("devhub.${REPL_ACCOUNT}/widget/core.lib.url"); +const { href } = VM.require("devhub.near/widget/core.lib.url"); const storedModel = Storage.get("agent-model"); const storedLocalModel = Storage.get("agent-local-model"); const storedCredentialType = Storage.get("agent-credential-type"); diff --git a/nexus/components/src/Agent/AgentDetails.jsx b/nexus/components/src/Agent/AgentDetails.jsx index 992d530..94d2f2f 100644 --- a/nexus/components/src/Agent/AgentDetails.jsx +++ b/nexus/components/src/Agent/AgentDetails.jsx @@ -1,4 +1,4 @@ -const { href } = VM.require("devhub.${REPL_ACCOUNT}/widget/core.lib.url"); +const { href } = VM.require("devhub.near/widget/core.lib.url"); const { schema } = VM.require(`${REPL_AGIGUILD}/widget/Schema.Agent`); if (!href || !schema ) { return <>; @@ -90,6 +90,13 @@ const agentProperties = (obj) => { ); }; +const customComponentLabel = (component) => { + if (component === `agiguild.near/widget/Agent.AgentChat`) { + return "Chat"; + } + return {component}

, trigger: "Chat (Custom component)"}} />; +} + return ( @@ -128,7 +135,7 @@ return ( icon: editIcon, }, { - name: "Chat " + agentComponent, + name: customComponentLabel(agentComponent), value: "chat", content: , icon: "ph ph-code", diff --git a/nexus/components/src/Agent/AgentSummary.jsx b/nexus/components/src/Agent/AgentSummary.jsx index 2cac57c..6989120 100644 --- a/nexus/components/src/Agent/AgentSummary.jsx +++ b/nexus/components/src/Agent/AgentSummary.jsx @@ -1,5 +1,5 @@ if (!props.agent) return ""; -const { href } = VM.require("devhub.${REPL_ACCOUNT}/widget/core.lib.url"); +const { href } = VM.require("devhub.near/widget/core.lib.url"); if (!href) { return <>; } diff --git a/nexus/components/src/Placeholder.jsx b/nexus/components/src/Placeholder.jsx index efa59a2..03f3048 100644 --- a/nexus/components/src/Placeholder.jsx +++ b/nexus/components/src/Placeholder.jsx @@ -1,4 +1,4 @@ -const { href } = VM.require("devhub.${REPL_ACCOUNT}/widget/core.lib.url"); +const { href } = VM.require("devhub.near/widget/core.lib.url"); if (!href) { return <>; }