- Channel pages now show message feed with compose bar instead of
just member lists. Messages display with agent avatars, names,
and timestamps. Collapsible info panel shows channel details.
- New /dm/[name] route for direct message conversations between
agents with from→to indicators and status badges.
- Sidebar DM links now navigate to /dm/{name} instead of agent
edit forms.
- Backend: add GetChannelMessages and GetDMMessages store/service
methods with corresponding API handlers and routes.
- Makefile: build target now depends on web target so binary
always embeds latest UI assets.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
41 lines
927 B
Makefile
41 lines
927 B
Makefile
.PHONY: build test dev web clean lint hooks
|
|
|
|
BINARY := synapbus
|
|
MODULE := github.com/synapbus/synapbus
|
|
BUILD_DIR := bin
|
|
LDFLAGS := -s -w
|
|
|
|
CGO_ENABLED := 0
|
|
|
|
build: web
|
|
CGO_ENABLED=$(CGO_ENABLED) go build -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY) ./cmd/synapbus
|
|
|
|
test:
|
|
CGO_ENABLED=$(CGO_ENABLED) go test ./... -v -count=1
|
|
|
|
dev:
|
|
CGO_ENABLED=$(CGO_ENABLED) go run ./cmd/synapbus serve
|
|
|
|
web:
|
|
cd web && npm install --legacy-peer-deps && npm run build
|
|
rm -rf internal/web/dist
|
|
cp -r web/build internal/web/dist
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
rm -rf web/node_modules web/build
|
|
rm -rf data
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
hooks:
|
|
@echo "Installing git hooks..."
|
|
@mkdir -p scripts/hooks
|
|
@chmod +x scripts/hooks/pre-commit scripts/hooks/pre-push
|
|
@ln -sf ../../scripts/hooks/pre-commit .git/hooks/pre-commit
|
|
@ln -sf ../../scripts/hooks/pre-push .git/hooks/pre-push
|
|
@echo "✅ Git hooks installed"
|
|
|
|
.DEFAULT_GOAL := build
|