No description
  • TypeScript 100%
Find a file
keeb 92f13a4c6c Add property-based schema tests (fast-check via @traversable/zod-test)
Generic harness: derives a fast-check arbitrary from every model zod
schema (globalArguments, method arguments, resource schemas) and asserts
generated data round-trips through the schema's own safeParse. Identical
file across extensions; canonical copy + docs live in mms/tests/property/.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 09:19:17 -07:00
.claude/skills/terraria feat: add embedded terraria skill for AI agents 2026-04-06 18:35:41 -07:00
extensions/models Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00
tests/property Add property-based schema tests (fast-check via @traversable/zod-test) 2026-07-18 09:19:17 -07:00
.gitignore Initial commit: @keeb/terraria swamp extension 2026-02-27 12:31:12 -08:00
.swamp.yaml Initial commit: @keeb/terraria swamp extension 2026-02-27 12:31:12 -08:00
CLAUDE.md Add repository and tags to manifest 2026-03-02 22:01:59 -08:00
manifest.yaml Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00
README.md Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00

@keeb/terraria

Swamp extension for Terraria (tModLoader) server control via Docker and tmux over SSH.

Models

terraria/server

Control a Terraria server running in a Docker container with tmux.

Method Description
warnShutdown Send in-game countdown warnings before shutdown and wait 30 seconds
status Query player count and player names from the tmux pane
collectMetrics Collect player count and write Prometheus textfile metrics

Global arguments: sshHost, sshUser (default root), containerName (default tmodloader), serverName (default server).

Workflows

None — Terraria server start/stop is handled through docker/compose workflows. Metrics collection runs via the collect-game-metrics workflow from @keeb/minecraft.

Dependencies

Install

swamp extension pull @keeb/terraria

Usage

Warn players before a maintenance window, then read the current player list:

# Broadcast "SERVER SHUTTING DOWN IN 30 SECONDS" and sleep 30s
swamp model method run my-terraria warnShutdown

# Query current players — writes the "server" resource with online/players
swamp model method run my-terraria status
swamp model get my-terraria --json

License

MIT — see LICENSE.