diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-16 14:58:03 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-16 14:58:03 +0300 |
| commit | 1e1df8c204f6771719f85d8402128d72138bb863 (patch) | |
| tree | 20508d35f86625ff5b74b509176111ffde163605 /Taskfile.yaml | |
| parent | a6a8b84690c50767f714b413496b5aeb45b31c21 (diff) | |
llm: add pluggable provider with OpenAI default; extensive logging; LSP completion integration with TextEdit, param-aware prompts; remove idle gating; label/filter improvements; docs update
Diffstat (limited to 'Taskfile.yaml')
| -rw-r--r-- | Taskfile.yaml | 64 |
1 files changed, 28 insertions, 36 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml index 66e6796..30904e4 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -1,44 +1,36 @@ version: '3' -vars: - BIN_NAME: hexai - BIN_DIR: bin - BIN_PATH: "{{.BIN_DIR}}/{{.BIN_NAME}}" - tasks: - build: - desc: Build the hexai LSP binary to ./bin - cmds: - - mkdir -p {{.BIN_DIR}} .gocache .gomodcache - - CGO_ENABLED=0 GOCACHE=$(pwd)/.gocache GOMODCACHE=$(pwd)/.gomodcache go build -o {{.BIN_PATH}} ./cmd/hexai - + default: + deps: ["build"] install: - desc: Install the hexai LSP binary into your Go bin directory - cmds: - - mkdir -p .gocache .gomodcache - - CGO_ENABLED=0 GOCACHE=$(pwd)/.gocache GOMODCACHE=$(pwd)/.gomodcache go install ./cmd/hexai - - | - DEST="${GOBIN:-$(go env GOBIN)}" - if [ -z "$DEST" ]; then DEST="$(go env GOPATH)/bin"; fi - if [ -z "$DEST" ]; then DEST="$HOME/.local/bin"; fi - echo "Installed to: $DEST (ensure it is on your PATH)" - - install-local: - desc: Copy the built binary to ~/.local/bin (no go install) - deps: [build] + deps: ["build"] cmds: - - mkdir -p "$HOME/.local/bin" - - cp -f {{.BIN_PATH}} "$HOME/.local/bin/{{.BIN_NAME}}" - - echo "Installed to: $HOME/.local/bin (ensure it is on your PATH)" - + - cp -v ./hexai ~/go/bin/ run: - desc: Build and run the server on stdio - deps: [build] + deps: ["dev"] cmds: - - ./{{.BIN_PATH}} -stdio - - clean: - desc: Remove build artifacts and local Go caches + - go run cmd/hexai/main.go + build: + deps: ["buildhexai"] + buildhexai: cmds: - - rm -rf {{.BIN_DIR}} .gocache .gomodcache - + - go build -o hexai cmd/hexai/main.go + dev: + deps: ["test", "vet", "lint"] + cmds: + - go build -race -o hexai cmd/hexai/main.go + test: + cmds: + - go clean -testcache + - go test -v ./... + vet: + cmds: + - go vet ./... + lint: + cmds: + - golangci-lint run + dev-install: + cmds: + - go install golang.org/x/tools/gopls@latest + - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest |
