How pkr-lab/capulus-core works
capulus-core is a GitOps repository for Capulus Homelab applications, with documented clusters ENTW, TECH and PROD and an ENTW → TECH → PROD promotion chain. The sampled TECH tree also contains operational services: two ISC automation bots, an Ollama helper, APIs and a ticket gate. The bot flow is HTTP request → validation/runner → browser automation against ISC or SEWOBE → result. Edges reflect README statements or SOURCE INDEX references; unsampled deployment wiring and service internals are not inferred.
Main entry points: src/runner.ts Member sync runner · main.ts Manager startup · server.ts News HTTP API · src/runner.ts News workflow runner
Components 26
GitOps operations
- Cluster applications
argocd/apps - Promotion chain
scripts/promote-chain.py - Token register
ops/token-register.yaml
ISC automation
- Manager startup
argocd/apps/tech/isc-manager-bot/src/main.ts - Manager HTTP API
argocd/apps/tech/isc-manager-bot/src/server.ts - Member sync runner
argocd/apps/tech/isc-manager-bot/src/runner.ts - ISC session and people
argocd/apps/tech/isc-manager-bot/src/isc/personen.ts - SEWOBE session and search
argocd/apps/tech/isc-manager-bot/src/sewobe/search.ts - Sync mapping and plan
argocd/apps/tech/isc-manager-bot/src/sync/mapping.ts - TOTP source
argocd/apps/tech/isc-manager-bot/src/totp.ts - News bot startup
argocd/apps/tech/isc-news-bot/src/main.ts - News HTTP API
argocd/apps/tech/isc-news-bot/src/server.ts - News workflow runner
argocd/apps/tech/isc-news-bot/src/runner.ts - News publishing
argocd/apps/tech/isc-news-bot/src/isc/publish.ts - Certificate queries
argocd/apps/tech/isc-news-bot/src/urkunden.ts
TECH services
- Alert caller
argocd/apps/tech/alert-caller/src/caller.py - CarPlay API
argocd/apps/tech/carplay-api/src/cmd/server/main.go - Power agent client
argocd/apps/tech/carplay-api/src/internal/clients/poweragent.go - Ticket gate service
argocd/apps/tech/ticket-gate/src/internal/gate/service.go - Ticket state store
argocd/apps/tech/ticket-gate/src/internal/store/store.go
Ollama helper
- Ollama CLI
argocd/apps/tech/n8n/ollama-pc/cli.js - Request runner
argocd/apps/tech/n8n/ollama-pc/lib/run.js - Prompt builder
argocd/apps/tech/n8n/ollama-pc/lib/prompt.js - Knowledge lookup
argocd/apps/tech/n8n/ollama-pc/lib/knowledge.js - Ollama client
argocd/apps/tech/n8n/ollama-pc/lib/ollama.js
Other components
- Repository operator
Connections 19
- Repository operator → Cluster applications: defines apps
- Repository operator → Promotion chain: promotes releases
- Repository operator → Token register: maintains secrets
- Manager startup → Manager HTTP API: starts server
argocd/apps/tech/isc-manager-bot/src/main.ts - Manager startup → Member sync runner: creates runner
argocd/apps/tech/isc-manager-bot/src/main.ts - Manager startup → TOTP source: creates source
argocd/apps/tech/isc-manager-bot/src/main.ts - Manager HTTP API → Member sync runner: routes requests
argocd/apps/tech/isc-manager-bot/src/server.ts - Member sync runner → ISC session and people: uses ISC
argocd/apps/tech/isc-manager-bot/src/runner.ts - Member sync runner → SEWOBE session and search: uses SEWOBE
argocd/apps/tech/isc-manager-bot/src/runner.ts - Member sync runner → Sync mapping and plan: builds sync plan
argocd/apps/tech/isc-manager-bot/src/runner.ts - News bot startup → News HTTP API: starts server
argocd/apps/tech/isc-news-bot/src/main.ts - News bot startup → News workflow runner: creates runner
argocd/apps/tech/isc-news-bot/src/main.ts - News HTTP API → News workflow runner: routes requests
argocd/apps/tech/isc-news-bot/src/server.ts - News HTTP API → Certificate queries: parses query
argocd/apps/tech/isc-news-bot/src/server.ts - News workflow runner → News publishing: publishes news
argocd/apps/tech/isc-news-bot/src/runner.ts - Ollama CLI → Request runner: dispatches work
argocd/apps/tech/n8n/ollama-pc/cli.js - Ollama CLI → Ollama client: invokes client
argocd/apps/tech/n8n/ollama-pc/cli.js - Request runner → Prompt builder: builds prompt
- Prompt builder → Knowledge lookup: uses knowledge
argocd/apps/tech/n8n/ollama-pc/lib/prompt.js