Compare commits

..

15 Commits

Author SHA1 Message Date
4a79011793 Update git remote URL from git.ourworld.tf to git.threefold.info 2025-06-15 16:21:09 +02:00
0b62ac9ecd ... 2025-05-24 10:42:24 +04:00
c9b14730ad ... 2025-05-24 10:33:50 +04:00
2ee8a95a90 ... 2025-05-24 09:52:43 +04:00
8bc1759dcb ... 2025-05-24 09:24:19 +04:00
e60b9f62f1 ... 2025-05-24 07:24:17 +04:00
5d241e9ade ... 2025-05-24 07:09:15 +04:00
b8c8da9e31 ... 2025-05-24 06:56:02 +04:00
55a05a5571 ... 2025-05-23 22:12:17 +04:00
2bfe4161b2 ... 2025-05-23 22:09:57 +04:00
0b1d9907a7 ... 2025-05-23 16:30:10 +04:00
c78761fe20 ... 2025-05-23 16:23:41 +04:00
2e8ec1735a ... 2025-05-23 16:19:07 +04:00
29d0d25a3b ... 2025-05-23 16:10:49 +04:00
3f01074e3f ... 2025-05-23 15:56:35 +04:00
208 changed files with 6249 additions and 366 deletions

View File

@@ -11,7 +11,7 @@ import (
"syscall" "syscall"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/mycelium_client" "git.threefold.info/herocode/heroagent/pkg/mycelium_client"
) )
type config struct { type config struct {

View File

@@ -8,7 +8,7 @@ import (
"os" "os"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/mycelium_client" "git.threefold.info/herocode/heroagent/pkg/mycelium_client"
) )
func main() { func main() {

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/system/stats" "git.threefold.info/herocode/heroagent/pkg/system/stats"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -3,7 +3,7 @@ package api
import ( import (
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/sal/executor" "git.threefold.info/herocode/heroagent/pkg/sal/executor"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -7,9 +7,9 @@ import (
"strconv" "strconv"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager" "git.threefold.info/herocode/heroagent/pkg/processmanager"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager/interfaces" "git.threefold.info/herocode/heroagent/pkg/processmanager/interfaces"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager/interfaces/openrpc" "git.threefold.info/herocode/heroagent/pkg/processmanager/interfaces/openrpc"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -12,16 +12,16 @@ import (
"syscall" "syscall"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/heroagent/api" "git.threefold.info/herocode/heroagent/pkg/heroagent/api"
"git.ourworld.tf/herocode/heroagent/pkg/heroagent/handlers" "git.threefold.info/herocode/heroagent/pkg/heroagent/handlers"
"git.ourworld.tf/herocode/heroagent/pkg/heroagent/pages" "git.threefold.info/herocode/heroagent/pkg/heroagent/pages"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager" "git.threefold.info/herocode/heroagent/pkg/processmanager"
"git.ourworld.tf/herocode/heroagent/pkg/sal/executor" "git.threefold.info/herocode/heroagent/pkg/sal/executor"
"git.ourworld.tf/herocode/heroagent/pkg/servers/redisserver" "git.threefold.info/herocode/heroagent/pkg/servers/redisserver"
"git.ourworld.tf/herocode/heroagent/pkg/system/stats" "git.threefold.info/herocode/heroagent/pkg/system/stats"
// "git.ourworld.tf/herocode/heroagent/pkg/vfs/interfaces" // "git.threefold.info/herocode/heroagent/pkg/vfs/interfaces"
// "git.ourworld.tf/herocode/heroagent/pkg/vfs/interfaces/mock" // "git.threefold.info/herocode/heroagent/pkg/vfs/interfaces/mock"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/logger" "github.com/gofiber/fiber/v2/middleware/logger"

View File

@@ -5,7 +5,7 @@ import (
"log" "log"
"strconv" // Added strconv for JobID parsing "strconv" // Added strconv for JobID parsing
"git.ourworld.tf/herocode/heroagent/pkg/herojobs" "git.threefold.info/herocode/heroagent/pkg/herojobs"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -10,7 +10,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"git.ourworld.tf/herocode/heroagent/pkg/herojobs" "git.threefold.info/herocode/heroagent/pkg/herojobs"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"

View File

@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/logger" "git.threefold.info/herocode/heroagent/pkg/logger"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/system/stats" "git.threefold.info/herocode/heroagent/pkg/system/stats"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager/interfaces" "git.threefold.info/herocode/heroagent/pkg/processmanager/interfaces"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager/interfaces/openrpc" "git.threefold.info/herocode/heroagent/pkg/processmanager/interfaces/openrpc"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/system/stats" "git.threefold.info/herocode/heroagent/pkg/system/stats"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/shirou/gopsutil/v3/host" "github.com/shirou/gopsutil/v3/host"
) )

View File

@@ -7,8 +7,8 @@ import (
"strings" "strings"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/heroagent/handlers" "git.threefold.info/herocode/heroagent/pkg/heroagent/handlers"
"git.ourworld.tf/herocode/heroagent/pkg/system/stats" "git.threefold.info/herocode/heroagent/pkg/system/stats"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/shirou/gopsutil/v3/host" "github.com/shirou/gopsutil/v3/host"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"log" "log"
"git.ourworld.tf/herocode/heroagent/pkg/herojobs" "git.threefold.info/herocode/heroagent/pkg/herojobs"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"log" "log"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager/interfaces/openrpc" "git.threefold.info/herocode/heroagent/pkg/processmanager/interfaces/openrpc"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager" "git.threefold.info/herocode/heroagent/pkg/processmanager"
) )
// ProcessDisplayInfo represents information about a process for display purposes // ProcessDisplayInfo represents information about a process for display purposes

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 844 B

After

Width:  |  Height:  |  Size: 844 B

View File

@@ -35,7 +35,7 @@ Key features:
```go ```go
import ( import (
"fmt" "fmt"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// Create a new playbook from HeroScript text // Create a new playbook from HeroScript text

View File

@@ -7,7 +7,7 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory/herohandler" "git.threefold.info/herocode/heroagent/pkg/handlerfactory/herohandler"
) )
func main() { func main() {

View File

@@ -8,7 +8,7 @@ import (
"os" "os"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
func main() { func main() {

View File

@@ -3,8 +3,8 @@ package internal
import ( import (
"fmt" "fmt"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory" "git.threefold.info/herocode/heroagent/pkg/handlerfactory"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlers" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlers"
) )
// ExampleHandler handles example actions // ExampleHandler handles example actions

View File

@@ -7,7 +7,7 @@ import (
"os" "os"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/cmd/herohandler/internal" "git.threefold.info/herocode/heroagent/pkg/heroscript/cmd/herohandler/internal"
) )
func main() { func main() {

View File

@@ -10,7 +10,7 @@ import (
"syscall" "syscall"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory/herohandler" "git.threefold.info/herocode/heroagent/pkg/handlerfactory/herohandler"
) )
func main() { func main() {

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"log" "log"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
const exampleScript = ` const exampleScript = `

View File

@@ -6,7 +6,7 @@ import (
"os" "os"
"time" "time"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory" "git.threefold.info/herocode/heroagent/pkg/handlerfactory"
) )
// runTutorial runs an interactive tutorial demonstrating the VM handler // runTutorial runs an interactive tutorial demonstrating the VM handler

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory" "git.threefold.info/herocode/heroagent/pkg/handlerfactory"
) )
// VMHandler handles VM-related actions // VMHandler handles VM-related actions

View File

@@ -8,7 +8,7 @@ import (
"path/filepath" "path/filepath"
"syscall" "syscall"
"git.ourworld.tf/herocode/heroagent/pkg/handlerfactory" "git.threefold.info/herocode/heroagent/pkg/handlerfactory"
) )
// The tutorial functions are defined in tutorial.go // The tutorial functions are defined in tutorial.go

View File

@@ -5,8 +5,8 @@ import (
"reflect" "reflect"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/paramsparser" "git.threefold.info/herocode/heroagent/pkg/heroscript/paramsparser"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// Handler interface defines methods that all handlers must implement // Handler interface defines methods that all handlers must implement

View File

@@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// HandlerFactory manages a collection of handlers // HandlerFactory manages a collection of handlers

View File

@@ -12,7 +12,7 @@ import (
"sync" "sync"
"syscall" "syscall"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// ANSI color codes for terminal output // ANSI color codes for terminal output

View File

@@ -3,7 +3,7 @@ package handlers
import ( import (
"fmt" "fmt"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
) )
// AuthHandler handles authentication actions // AuthHandler handles authentication actions

View File

@@ -5,9 +5,9 @@ import (
"reflect" "reflect"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/paramsparser" "git.threefold.info/herocode/heroagent/pkg/heroscript/paramsparser"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// BaseHandler provides common functionality for all handlers // BaseHandler provides common functionality for all handlers

View File

@@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
// HandlerFactory manages a collection of handlers for processing HeroScript commands // HandlerFactory manages a collection of handlers for processing HeroScript commands

View File

@@ -1,7 +1,7 @@
package herohandler package herohandler
import ( import (
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
) )
// GetFactory returns the handler factory // GetFactory returns the handler factory

View File

@@ -4,7 +4,7 @@ import (
"log" "log"
"sync" "sync"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/herohandler" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/herohandler"
) )
func main() { func main() {

View File

@@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"log" "log"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
// "git.ourworld.tf/herocode/heroagent/pkg/handlerfactory/heroscript/handlerfactory/fakehandler" // "git.threefold.info/herocode/heroagent/pkg/handlerfactory/heroscript/handlerfactory/fakehandler"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/processmanagerhandler" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/processmanagerhandler"
) )
// HeroHandler is the main handler factory that manages all registered handlers // HeroHandler is the main handler factory that manages all registered handlers

View File

@@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/playbook" "git.threefold.info/herocode/heroagent/pkg/heroscript/playbook"
) )
func main() { func main() {

View File

@@ -3,8 +3,8 @@ package processmanagerhandler
import ( import (
"fmt" "fmt"
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core" "git.threefold.info/herocode/heroagent/pkg/heroscript/handlerfactory/core"
"git.ourworld.tf/herocode/heroagent/pkg/processmanager" "git.threefold.info/herocode/heroagent/pkg/processmanager"
) )
// ProcessManagerHandler handles process manager-related actions // ProcessManagerHandler handles process manager-related actions

Some files were not shown because too many files have changed in this diff Show More