Bootstrap the SynapBus project — a local-first, MCP-native agent-to-agent messaging service written in Go. Includes: - Project constitution (10 architectural principles) - 10 feature specs with implementation tasks: 001 Core Messaging, 002 Agent Registry, 003 Human Auth (OAuth 2.1), 004 Channels, 005 Web UI, 006 MCP Server, 007 Trace Logging, 008 Semantic Search, 009 Attachments, 010 Swarm Patterns - Go project scaffold (cobra CLI, SQLite schema, Makefile) - Speckit templates and commands Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
620 B
Makefile
32 lines
620 B
Makefile
.PHONY: build test dev web clean lint
|
|
|
|
BINARY := synapbus
|
|
MODULE := github.com/smart-mcp-proxy/synapbus
|
|
BUILD_DIR := bin
|
|
LDFLAGS := -s -w
|
|
|
|
CGO_ENABLED := 0
|
|
|
|
build:
|
|
CGO_ENABLED=$(CGO_ENABLED) go build -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY) ./cmd/synapbus
|
|
|
|
test:
|
|
CGO_ENABLED=$(CGO_ENABLED) go test ./... -v -race -count=1
|
|
|
|
dev:
|
|
CGO_ENABLED=$(CGO_ENABLED) go run ./cmd/synapbus serve
|
|
|
|
web:
|
|
cd web && npm install && npm run build
|
|
@echo "Svelte SPA built to internal/web/dist/"
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
rm -rf web/node_modules web/build
|
|
rm -rf data
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
.DEFAULT_GOAL := build
|