mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
105 lines
2.2 KiB
TOML
105 lines
2.2 KiB
TOML
experimental_monorepo_root = true
|
|
|
|
[tools]
|
|
# Go version from go.mod
|
|
go = "1.25.6"
|
|
# Node.js for frontend packages
|
|
node = "25"
|
|
# Bun for agent gateway
|
|
bun = "latest"
|
|
# pnpm for workspace management
|
|
pnpm = "10"
|
|
# Lima for macOS
|
|
lima = { version = "system", platform = "darwin" }
|
|
|
|
[task_config]
|
|
dir = "{{cwd}}"
|
|
|
|
[settings]
|
|
experimental = true
|
|
|
|
[tasks.pnpm-install]
|
|
description = "Install dependencies"
|
|
run = "pnpm install"
|
|
|
|
[tasks.go-install]
|
|
description = "Install Go dependencies"
|
|
run = "go mod download"
|
|
|
|
[tasks.lima-up]
|
|
run = "scripts/lima-up.sh"
|
|
|
|
[tasks.lima-down]
|
|
run = """
|
|
if [ "$(uname -s)" = "Darwin" ]; then
|
|
limactl stop default
|
|
fi
|
|
"""
|
|
|
|
[tasks.containerd-install]
|
|
description = "Install containerd or verify in Lima"
|
|
run = "scripts/containerd-install.sh"
|
|
|
|
[tasks.swagger-generate]
|
|
description = "Generate Swagger documentation"
|
|
run = "cd internal/handlers && go generate"
|
|
|
|
[tasks.sqlc-generate]
|
|
description = "Generate SQL code"
|
|
run = "sqlc generate"
|
|
|
|
[tasks.db-up]
|
|
description = "Intialize and Migrate Database"
|
|
run = "scripts/db-up.sh"
|
|
|
|
[tasks.db-down]
|
|
description = "Drop Database"
|
|
run = "scripts/db-drop.sh"
|
|
|
|
[tasks.install-cli]
|
|
description = "Install CLI"
|
|
depends = ["//:pnpm-install"]
|
|
run = "cd packages/cli && npm install -g"
|
|
|
|
[tasks.build-cli]
|
|
description = "Build Go CLI binary and install to local bin"
|
|
run = """
|
|
mkdir -p ~/.local/bin
|
|
go build -trimpath -ldflags "-s -w" -o ~/.local/bin/memoh-cli ./cmd/cli
|
|
chmod +x ~/.local/bin/memoh-cli
|
|
echo "✓ CLI binary installed to ~/.local/bin/memoh-cli"
|
|
"""
|
|
|
|
[tasks.mcp-image-up]
|
|
description = "Build MCP container image"
|
|
run = "scripts/mcp-image-up.sh"
|
|
|
|
[tasks.mcp-image-down]
|
|
description = "Remove MCP container image"
|
|
run = "scripts/mcp-image-down.sh"
|
|
|
|
[tasks.compile-mcp]
|
|
description = "Build MCP binary into /app and signal container"
|
|
run = "scripts/compile-mcp.sh"
|
|
|
|
[tasks.dev]
|
|
description = "Start development environment"
|
|
depends = [
|
|
"//:swagger-generate",
|
|
"//agent:dev",
|
|
"//cmd/agent:start",
|
|
"//packages/web:dev",
|
|
]
|
|
|
|
[tasks.setup]
|
|
description = "Setup development environment"
|
|
depends = [
|
|
"//:sqlc-generate",
|
|
"//:db-up",
|
|
"//:pnpm-install",
|
|
"//:go-install",
|
|
"//:install-cli",
|
|
]
|
|
run = "echo '✓ Setup complete! Next: Copy config.toml.example to config.toml and configure, then run: mise run dev'"
|
|
|