Skip to content

Commit 99fe09a

Browse files
committed
chore: refactor and write new tests
1 parent a567369 commit 99fe09a

53 files changed

Lines changed: 2211 additions & 2098 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ builds:
2020
main: ./cmd/lumo/main.go
2121
ldflags:
2222
- -s -w
23-
- -X github.com/agnath18/lumo/pkg/version.Version={{.Version}}
24-
- -X github.com/agnath18/lumo/pkg/version.BuildDate={{.Date}}
25-
- -X github.com/agnath18/lumo/pkg/version.GitCommit={{.ShortCommit}}
26-
- -X github.com/agnath18/lumo/pkg/version.GoVersion={{.Env.GOVERSION}}
23+
- -X github.com/agnath18K/lumo/pkg/version.Version={{.Version}}
24+
- -X github.com/agnath18K/lumo/pkg/version.BuildDate={{.Date}}
25+
- -X github.com/agnath18K/lumo/pkg/version.GitCommit={{.ShortCommit}}
26+
- -X github.com/agnath18K/lumo/pkg/version.GoVersion={{.Env.GOVERSION}}
2727
- -extldflags '-Wl,-z,relro -Wl,-z,now'
2828
binary: lumo
2929
flags:

cmd/lumo/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/agnath18/lumo/pkg/agent"
10-
"github.com/agnath18/lumo/pkg/config"
11-
"github.com/agnath18/lumo/pkg/executor"
12-
"github.com/agnath18/lumo/pkg/nlp"
13-
"github.com/agnath18/lumo/pkg/pipe"
14-
"github.com/agnath18/lumo/pkg/terminal"
15-
"github.com/agnath18/lumo/pkg/utils"
16-
"github.com/agnath18/lumo/pkg/version"
9+
"github.com/agnath18K/lumo/pkg/agent"
10+
"github.com/agnath18K/lumo/pkg/config"
11+
"github.com/agnath18K/lumo/pkg/executor"
12+
"github.com/agnath18K/lumo/pkg/nlp"
13+
"github.com/agnath18K/lumo/pkg/pipe"
14+
"github.com/agnath18K/lumo/pkg/terminal"
15+
"github.com/agnath18K/lumo/pkg/utils"
16+
"github.com/agnath18K/lumo/pkg/version"
1717
)
1818

1919
func main() {

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ VERSION := $(shell grep -oP 'Version = "\K[^"]+' pkg/version/version.go)
1212
BUILD_DATE := $(shell date +%Y-%m-%d)
1313
GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
1414
GO_VERSION := $(shell go version | awk '{print $$3}')
15-
LDFLAGS := -ldflags "-X github.com/agnath18/lumo/pkg/version.Version=${VERSION} -X github.com/agnath18/lumo/pkg/version.BuildDate=${BUILD_DATE} -X github.com/agnath18/lumo/pkg/version.GitCommit=${GIT_COMMIT} -X github.com/agnath18/lumo/pkg/version.GoVersion=${GO_VERSION} -extldflags '${LDFLAGS}'"
15+
LDFLAGS := -ldflags "-X github.com/agnath18K/lumo/pkg/version.Version=${VERSION} -X github.com/agnath18K/lumo/pkg/version.BuildDate=${BUILD_DATE} -X github.com/agnath18K/lumo/pkg/version.GitCommit=${GIT_COMMIT} -X github.com/agnath18K/lumo/pkg/version.GoVersion=${GO_VERSION} -extldflags '${LDFLAGS}'"
1616

1717
%:
1818
dh $@

docs/lumo.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Enables or disables debug mode.
411411
.BR find (1)
412412

413413
.SH BUGS
414-
Report bugs to: https://github.com/agnath18/lumo/issues
414+
Report bugs to: https://github.com/agnath18K/lumo/issues
415415

416416
.SH AUTHOR
417417
Written by agnath18K <agnath18@gmail.com>

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/agnath18/lumo
1+
module github.com/agnath18K/lumo
22

33
go 1.23.0
44

pkg/agent/agent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/agnath18/lumo/pkg/ai"
9-
"github.com/agnath18/lumo/pkg/config"
10-
"github.com/agnath18/lumo/pkg/executor"
8+
"github.com/agnath18K/lumo/pkg/ai"
9+
"github.com/agnath18K/lumo/pkg/config"
10+
"github.com/agnath18K/lumo/pkg/executor"
1111
)
1212

1313
// Agent represents the auto command executor

pkg/agent/executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/agnath18/lumo/pkg/ai"
13-
"github.com/agnath18/lumo/pkg/config"
12+
"github.com/agnath18K/lumo/pkg/ai"
13+
"github.com/agnath18K/lumo/pkg/config"
1414
)
1515

1616
// Executor handles the execution of plans

pkg/agent/feedback.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strconv"
1010
"strings"
1111

12-
"github.com/agnath18/lumo/pkg/config"
13-
"github.com/agnath18/lumo/pkg/utils"
12+
"github.com/agnath18K/lumo/pkg/config"
13+
"github.com/agnath18K/lumo/pkg/utils"
1414
)
1515

1616
// Feedback handles user interaction and feedback

pkg/agent/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package agent
22

33
import (
4-
"github.com/agnath18/lumo/pkg/config"
5-
"github.com/agnath18/lumo/pkg/executor"
4+
"github.com/agnath18K/lumo/pkg/config"
5+
"github.com/agnath18K/lumo/pkg/executor"
66
)
77

88
// Initialize initializes the agent and registers it with the executor

pkg/agent/planner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77
"time"
88

9-
"github.com/agnath18/lumo/pkg/ai"
10-
"github.com/agnath18/lumo/pkg/config"
9+
"github.com/agnath18K/lumo/pkg/ai"
10+
"github.com/agnath18K/lumo/pkg/config"
1111
)
1212

1313
// Planner handles the generation of execution plans

0 commit comments

Comments
 (0)