Rate limits: - Add PoolRPS/PoolTPM/PoolTokensMonth/PoolCostMonth pool kinds - Provider defaults for Mistral/Anthropic/OpenAI/Google (tier-aware) - Config override via [rate_limits.<provider>] TOML section - Pools auto-attached to arms on registration Elf tree view (CC-style): - Structured elf.Progress type replaces flat string channel - Tree with ├─/└─ branches, per-elf stats (tool uses, tokens) - Live activity updates: tool calls, "generating… (N chars)" - Completed elfs stay in tree with "Done (duration)" until turn ends - Suppress raw elf output from chat (tree + LLM summary instead) - Remove background elf mode (wait: false) — always wait - Truncate elf results to 2000 chars for parent context - Parallel hint in system prompt and tool description Permission prompts: - Show actual command in prompt: "bash wants to execute: find . -name '*.go'" - Compact hint in separator bar: "⚠ bash: find . | wc -l [y/n]" - PermReqMsg carries tool name + args Other: - Fix /model not updating status bar (session.Local.SetModel) - Add make targets: run, check, install - Update deps: BurntSushi/toml v1.6.0, chroma v2.23.1, x/text v0.35.0, cloud.google.com/go v0.123.0
46 lines
662 B
Makefile
46 lines
662 B
Makefile
.PHONY: build run check install test lint cover clean fmt vet
|
|
|
|
BINARY := gnoma
|
|
BINDIR := ./bin
|
|
MODULE := somegit.dev/Owlibou/gnoma
|
|
|
|
build:
|
|
go build -o $(BINDIR)/$(BINARY) ./cmd/gnoma
|
|
|
|
run: build
|
|
$(BINDIR)/$(BINARY)
|
|
|
|
check: fmt vet lint test
|
|
@echo "All checks passed!"
|
|
|
|
install:
|
|
go install $(MODULE)/cmd/$(BINARY)
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
test-v:
|
|
go test -v ./...
|
|
|
|
test-integration:
|
|
go test -tags integration ./...
|
|
|
|
cover:
|
|
go test -coverprofile=coverage.out ./...
|
|
go tool cover -html=coverage.out -o coverage.html
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
fmt:
|
|
gofmt -w .
|
|
|
|
vet:
|
|
go vet ./...
|
|
|
|
clean:
|
|
rm -rf $(BINDIR) coverage.out coverage.html
|
|
|
|
tidy:
|
|
go mod tidy
|