2 Commits

Author SHA1 Message Date
gitea-actions[bot]
04fa3cf36e chore: bootstrap hostexecutor from template 2026-05-12 21:47:36 +02:00
59b1a3a4ec feat: post-create init workflow (#3)
Some checks failed
CD / Lint / Test / Vet (push) Failing after 2s
Init / Bootstrap project from template (push) Successful in 1s
CD / Build & Import (push) Has been skipped
CD / Deploy via GitOps (push) Has been skipped
2026-05-12 19:47:00 +00:00
15 changed files with 108 additions and 23 deletions

2
.aider.conf.yml Normal file
View File

@@ -0,0 +1,2 @@
read: .aider.conventions.md
auto-commits: false

13
.aider.conventions.md Normal file
View File

@@ -0,0 +1,13 @@
# hostexecutor
## Identity
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack
Go + Templ + HTMX + CDN Tailwind. See `~/dev/.context/AGENT.md` for cross-project conventions.

View File

@@ -1,11 +1,11 @@
# __PROJECT_NAME__
# hostexecutor
## Identity
- **Name**: __PROJECT_NAME__
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/__PROJECT_NAME__
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack

8
.context/mcp.json Normal file
View File

@@ -0,0 +1,8 @@
{
"mcpServers": {
"knowledge": {
"url": "http://localhost:3100/mcp",
"description": "Project knowledge base — vector + graph retrieval"
}
}
}

View File

@@ -0,0 +1,20 @@
You are a coding assistant working on a specific project.
Follow all conventions from both the root agent context and project context.
---
# hostexecutor
## Identity
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack
Go + Templ + HTMX + CDN Tailwind. See `~/dev/.context/AGENT.md` for cross-project conventions.
---

16
.cursorrules Normal file
View File

@@ -0,0 +1,16 @@
# Cursor rules — auto-generated
# Do not edit. Run: task context:sync
# hostexecutor
## Identity
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack
Go + Templ + HTMX + CDN Tailwind. See `~/dev/.context/AGENT.md` for cross-project conventions.

View File

@@ -8,7 +8,7 @@ on:
branches: [main]
env:
IMAGE: __PROJECT_NAME__
IMAGE: hostexecutor
jobs:
check:
@@ -81,16 +81,16 @@ jobs:
rm -rf /tmp/infra
git clone -b main ssh://git@10.0.1.20:30022/mathias/infra.git /tmp/infra
cd /tmp/infra
DEPLOYMENT="k3s/apps/__PROJECT_NAME__/deployment.yaml"
sed -i "s|image: localhost:5000/__PROJECT_NAME__:.*|image: localhost:5000/__PROJECT_NAME__:${IMAGE_TAG}|" "$DEPLOYMENT"
grep -q "localhost:5000/__PROJECT_NAME__:${IMAGE_TAG}" "$DEPLOYMENT" \
DEPLOYMENT="k3s/apps/hostexecutor/deployment.yaml"
sed -i "s|image: localhost:5000/hostexecutor:.*|image: localhost:5000/hostexecutor:${IMAGE_TAG}|" "$DEPLOYMENT"
grep -q "localhost:5000/hostexecutor:${IMAGE_TAG}" "$DEPLOYMENT" \
|| { echo "✗ image tag patch failed"; exit 1; }
if git diff --quiet "$DEPLOYMENT"; then
echo " image tag unchanged — skipping push"
else
git -c user.name="__PROJECT_NAME__ CI" \
-c user.email="ci@__PROJECT_NAME__.local" \
commit -m "chore(deploy): __PROJECT_NAME__ → ${IMAGE_TAG}" "$DEPLOYMENT"
git -c user.name="hostexecutor CI" \
-c user.email="ci@hostexecutor.local" \
commit -m "chore(deploy): hostexecutor → ${IMAGE_TAG}" "$DEPLOYMENT"
git push origin main
echo "✓ pushed to infra repo"
fi
@@ -105,11 +105,11 @@ jobs:
- name: Verify rollout
run: |
kubectl rollout status deployment/__PROJECT_NAME__ \
--namespace __PROJECT_NAME__ \
kubectl rollout status deployment/hostexecutor \
--namespace hostexecutor \
--timeout=120s \
|| {
kubectl get pods -n __PROJECT_NAME__ -o wide
kubectl get events -n __PROJECT_NAME__ --sort-by='.lastTimestamp' | tail -20
kubectl get pods -n hostexecutor -o wide
kubectl get events -n hostexecutor --sort-by='.lastTimestamp' | tail -20
exit 1
}

13
AGENTS.md Normal file
View File

@@ -0,0 +1,13 @@
# hostexecutor
## Identity
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack
Go + Templ + HTMX + CDN Tailwind. See `~/dev/.context/AGENT.md` for cross-project conventions.

13
CLAUDE.md Normal file
View File

@@ -0,0 +1,13 @@
# hostexecutor
## Identity
- **Name**: hostexecutor
- **Owner**: Mathias
- **Client**: personal
- **Repo**: gitea.d-ma.be/mathias/hostexecutor
- **Status**: active
## Stack
Go + Templ + HTMX + CDN Tailwind. See `~/dev/.context/AGENT.md` for cross-project conventions.

View File

@@ -5,7 +5,7 @@ RUN go install github.com/a-h/templ/cmd/templ@latest
COPY go.mod ./
RUN go mod download
COPY . .
RUN templ generate && CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/app ./cmd/__PROJECT_NAME__
RUN templ generate && CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/app ./cmd/hostexecutor
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /out/app /app

View File

@@ -1,4 +1,4 @@
# __PROJECT_NAME__
# hostexecutor
> Generated from `mathias/template-go-web`.

View File

@@ -7,10 +7,10 @@ tasks:
build:
desc: Build the binary
deps: [generate]
cmds: [go build -o bin/__PROJECT_NAME__ ./cmd/__PROJECT_NAME__]
cmds: [go build -o bin/hostexecutor ./cmd/hostexecutor]
run:
deps: [build]
cmds: [./bin/__PROJECT_NAME__]
cmds: [./bin/hostexecutor]
test:
desc: Run all tests
deps: [generate]

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"os"
"__MODULE_PATH__/internal/web"
"gitea.d-ma.be/mathias/hostexecutor/internal/web"
)
func main() {
@@ -19,7 +19,7 @@ func main() {
mux.Handle("/", web.NewHandler())
addr := ":8080"
logger.Info("__PROJECT_NAME__ starting", "addr", addr)
logger.Info("hostexecutor starting", "addr", addr)
if err := http.ListenAndServe(addr, mux); err != nil {
logger.Error("server stopped", "err", err)
os.Exit(1)

2
go.mod
View File

@@ -1,4 +1,4 @@
module __MODULE_PATH__
module gitea.d-ma.be/mathias/hostexecutor
go 1.26

View File

@@ -1,8 +1,8 @@
package web
templ Index() {
@Layout("__PROJECT_NAME__") {
<h1 class="text-3xl font-semibold mb-6">__PROJECT_NAME__</h1>
@Layout("hostexecutor") {
<h1 class="text-3xl font-semibold mb-6">hostexecutor</h1>
<button hx-get="/api/hello" hx-target="#out"
class="px-4 py-2 bg-slate-900 text-white rounded-md hover:bg-slate-700">
Say hello