This commit is contained in:
Ettore Di Giacinto
2025-04-08 22:18:32 +02:00
parent 894dde9256
commit e7111c6554
97 changed files with 329 additions and 329 deletions

View File

@@ -11,17 +11,17 @@ import (
"time"
"github.com/google/uuid"
coreTypes "github.com/mudler/LocalAgent/core/types"
"github.com/mudler/LocalAgent/pkg/llm"
"github.com/mudler/LocalAgent/pkg/xlog"
"github.com/mudler/LocalAgent/services"
"github.com/mudler/LocalAgent/services/connectors"
"github.com/mudler/LocalAgent/webui/types"
coreTypes "github.com/mudler/LocalAGI/core/types"
"github.com/mudler/LocalAGI/pkg/llm"
"github.com/mudler/LocalAGI/pkg/xlog"
"github.com/mudler/LocalAGI/services"
"github.com/mudler/LocalAGI/services/connectors"
"github.com/mudler/LocalAGI/webui/types"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
"github.com/mudler/LocalAgent/core/sse"
"github.com/mudler/LocalAgent/core/state"
"github.com/mudler/LocalAGI/core/sse"
"github.com/mudler/LocalAGI/core/state"
"github.com/donseba/go-htmx"
fiber "github.com/gofiber/fiber/v2"

View File

@@ -1,7 +1,7 @@
/**
* Connector Templates
*
* This file contains templates for all connector types supported by LocalAgent.
* This file contains templates for all connector types supported by LocalAGI.
* Each template is a function that returns an HTML string for the connector's form.
*
* Note: We don't need to escape HTML in the value attributes because browsers

View File

@@ -62,7 +62,7 @@
</section>
<footer class="text-center text-gray-500 text-sm mb-8">
<p>&copy; 2025 LocalAgent.</p>
<p>&copy; 2025 LocalAGI.</p>
</footer>
</div>

View File

@@ -157,7 +157,7 @@
</div>
<footer class="text-center text-gray-500 text-sm mb-8">
<p>&copy; 2025 LocalAgent.</p>
<p>&copy; 2025 LocalAGI.</p>
</footer>
</div>

View File

@@ -140,7 +140,7 @@
<img src="/old/public/logo_1.png" width="250" alt="Company Logo">
</div>
<h1 class="dashboard-title">LocalAgent</h1>
<h1 class="dashboard-title">LocalAGI</h1>
<!-- Simple stats display -->
<div class="dashboard-stats">

View File

@@ -16,7 +16,7 @@
</div>
</div>
<span class="text-xl font-bold transition-colors duration-300"
style="color: var(--primary); text-shadow: var(--neon-glow);">LocalAgent</span>
style="color: var(--primary); text-shadow: var(--neon-glow);">LocalAGI</span>
</a>
</div>
<div class="hidden md:block ml-10">

View File

@@ -3,7 +3,7 @@ package webui
import (
"time"
"github.com/mudler/LocalAgent/core/state"
"github.com/mudler/LocalAGI/core/state"
)
type Config struct {

View File

@@ -31,7 +31,7 @@ function App() {
<div className="logo-image-container">
<img src="/app/logo_2.png" alt="Logo" className="logo-image" />
</div>
{/* <span className="logo-text">LocalAgent</span> */}
{/* <span className="logo-text">LocalAGI</span> */}
</Link>
</div>

View File

@@ -15,9 +15,9 @@ function ActionsPlayground() {
// Update document title
useEffect(() => {
document.title = 'Actions Playground - LocalAgent';
document.title = 'Actions Playground - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);

View File

@@ -14,10 +14,10 @@ function AgentSettings() {
// Update document title
useEffect(() => {
if (name) {
document.title = `Agent Settings: ${name} - LocalAgent`;
document.title = `Agent Settings: ${name} - LocalAGI`;
}
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, [name]);

View File

@@ -13,10 +13,10 @@ function AgentStatus() {
// Update document title
useEffect(() => {
if (name) {
document.title = `Agent Status: ${name} - LocalAgent`;
document.title = `Agent Status: ${name} - LocalAGI`;
}
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, [name]);

View File

@@ -96,9 +96,9 @@ function AgentsList() {
};
useEffect(() => {
document.title = 'Agents - LocalAgent';
document.title = 'Agents - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);

View File

@@ -23,10 +23,10 @@ function Chat() {
// Update document title
useEffect(() => {
if (name) {
document.title = `Chat with ${name} - LocalAgent`;
document.title = `Chat with ${name} - LocalAGI`;
}
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, [name]);

View File

@@ -11,9 +11,9 @@ function CreateAgent() {
const [formData, setFormData] = useState({});
useEffect(() => {
document.title = 'Create Agent - LocalAgent';
document.title = 'Create Agent - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);

View File

@@ -23,9 +23,9 @@ function GroupCreate() {
// Update document title
useEffect(() => {
document.title = 'Create Agent Group - LocalAgent';
document.title = 'Create Agent Group - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);

View File

@@ -16,9 +16,9 @@ function Home() {
// Update document title
useEffect(() => {
document.title = 'Agent Dashboard - LocalAgent';
document.title = 'Agent Dashboard - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);
@@ -57,10 +57,10 @@ function Home() {
return (
<div>
<div className="image-container">
<img src="/app/logo_1.png" width="250" alt="LocalAgent Logo" />
<img src="/app/logo_1.png" width="250" alt="LocalAGI Logo" />
</div>
{/*<h1 className="dashboard-title">LocalAgent</h1>*/}
{/*<h1 className="dashboard-title">LocalAGI</h1>*/}
{/* Dashboard Stats */}
<div className="dashboard-stats">

View File

@@ -10,9 +10,9 @@ function ImportAgent() {
// Update document title
useEffect(() => {
document.title = 'Import Agent - LocalAgent';
document.title = 'Import Agent - LocalAGI';
return () => {
document.title = 'LocalAgent'; // Reset title when component unmounts
document.title = 'LocalAGI'; // Reset title when component unmounts
};
}, []);

View File

@@ -12,13 +12,13 @@ import (
fiber "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"
"github.com/gofiber/fiber/v2/middleware/keyauth"
"github.com/mudler/LocalAgent/core/sse"
"github.com/mudler/LocalAgent/services/connectors"
"github.com/mudler/LocalAGI/core/sse"
"github.com/mudler/LocalAGI/services/connectors"
"github.com/mudler/LocalAgent/core/state"
"github.com/mudler/LocalAgent/core/types"
"github.com/mudler/LocalAgent/pkg/xlog"
"github.com/mudler/LocalAgent/services"
"github.com/mudler/LocalAGI/core/state"
"github.com/mudler/LocalAGI/core/types"
"github.com/mudler/LocalAGI/pkg/xlog"
"github.com/mudler/LocalAGI/services"
)
//go:embed old/views/*