chore: rename project to ByteClaw (module, binary, env prefix BYTECLAW_, Android package/app/theme)
This commit is contained in:
parent
bf00f56117
commit
399bcd46fb
28 changed files with 104 additions and 101 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Command openclaw runs the OpenClaw assistant server.
|
||||
// Command byteclaw runs the ByteClaw assistant server.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
@ -14,22 +14,22 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/crypto/openclaw/internal/agent"
|
||||
"github.com/crypto/openclaw/internal/config"
|
||||
"github.com/crypto/openclaw/internal/llm"
|
||||
"github.com/crypto/openclaw/internal/server"
|
||||
"github.com/crypto/openclaw/internal/store"
|
||||
"github.com/crypto/openclaw/internal/tools"
|
||||
"github.com/crypto/byteclaw/internal/agent"
|
||||
"github.com/crypto/byteclaw/internal/config"
|
||||
"github.com/crypto/byteclaw/internal/llm"
|
||||
"github.com/crypto/byteclaw/internal/server"
|
||||
"github.com/crypto/byteclaw/internal/store"
|
||||
"github.com/crypto/byteclaw/internal/tools"
|
||||
)
|
||||
|
||||
var version = "dev"
|
||||
|
||||
func main() {
|
||||
cfgPath := flag.String("config", os.Getenv("OPENCLAW_CONFIG"), "path to config file (.yaml/.yml/.json)")
|
||||
cfgPath := flag.String("config", os.Getenv("BYTECLAW_CONFIG"), "path to config file (.yaml/.yml/.json)")
|
||||
showVersion := flag.Bool("version", false, "print version")
|
||||
flag.Parse()
|
||||
if *showVersion {
|
||||
fmt.Println("openclaw", version)
|
||||
fmt.Println("byteclaw", version)
|
||||
return
|
||||
}
|
||||
log := slog.New(slog.NewTextHandler(os.Stderr, nil))
|
||||
|
|
@ -47,7 +47,7 @@ func run(cfgPath string, log *slog.Logger) error {
|
|||
if err := os.MkdirAll(cfg.DataDir, 0o750); err != nil {
|
||||
return err
|
||||
}
|
||||
st, err := store.Open(filepath.Join(cfg.DataDir, "openclaw.db"))
|
||||
st, err := store.Open(filepath.Join(cfg.DataDir, "byteclaw.db"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ func run(cfgPath string, log *slog.Logger) error {
|
|||
defer stop()
|
||||
errc := make(chan error, 1)
|
||||
go func() {
|
||||
log.Info("openclaw listening", "addr", cfg.Listen, "model", cfg.LLM.Model, "tools", len(reg.Specs()), "version", version)
|
||||
log.Info("byteclaw listening", "addr", cfg.Listen, "model", cfg.LLM.Model, "tools", len(reg.Specs()), "version", version)
|
||||
errc <- hs.ListenAndServe()
|
||||
}()
|
||||
select {
|
||||
Loading…
Add table
Add a link
Reference in a new issue