24 Commits
Author SHA1 Message Date
Ziad Arafat 97c5746b4d Install Deno so yt-dlp can extract YouTube
yt-dlp warns that extraction without a JavaScript runtime is deprecated and
some formats are missing; Deno is its default runtime for that work.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-25 16:17:41 -07:00
Ziad Arafat 835ede2a41 Use a space-free YouTube folder in the mount
Podman quadlets pass a quoted volume through with the quotes intact, so the
space in "YouTube Imports" became an invalid :z suffix and the bot would not
start.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-25 16:16:23 -07:00
Ziad Arafat 29dfd5c51c Give the bot yt-dlp and a YouTube music mount
watch can now fetch songs MusicBrainz lacks, which needs ffmpeg and yt-dlp in
the Red image and a writable view of the shared music library. The folder sits
in the MediaOverflow library Jellyfin already indexes as /arrmedia.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-25 16:10:58 -07:00
Ziad Arafat 9ddad41a1d Add isolated pi and Gemma music repair watchdog with rollback 2026-11-23 12:45:02 -07:00
Ziad Arafat 020b66a53c Replace yt-cipher with a pinned Bun fork build 2026-11-23 11:30:28 -07:00
ziadarafat 51391d7c09 Update deploy/quadlet/dogebot-yt-cipher.container 2026-11-23 11:16:25 -07:00
Ziad Arafat 29b3185cf4 Load optional co-owner environment through systemd 2026-11-14 18:37:36 -07:00
Ziad Arafat 91a0de35ac Support additional Discord co-owners in deployment configuration 2026-11-14 18:33:13 -07:00
Ziad ArafatandClaude Opus 5.5 30b7f17fab Download through the home lab's VPS proxy
pip and git in the Red container (PIP_PROXY, git http.<github>.proxy) and
HTTPS in the daily update unit go through squid on the VPS end of yveltal's
wg-vps tunnel (10.77.0.1:3128). Discord, Lavalink, media-preload and Ollama
traffic is untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:25:50 -07:00
Ziad ArafatandClaude Opus 5.5 63affa8033 Add the perform cog (sravan-cogs); build the Red image from fast Debian mirrors
deb.debian.org is Fastly, which the home network reaches via a congested
NMSU -> CENIC -> Fastly path (~125 ms, ~60 KB/s); Leaseweb gives ~7 MB/s
and OCF Berkeley (which carries debian-security) ~3 MB/s. Both are build
args, so other hosts can keep deb.debian.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:54:30 -07:00
Ziad ArafatandClaude Opus 5.5 85bcee8c1a Self-test cog, cog requirement conflict check, health records
- dogebot.depcheck: find lib packages whose requirements Red's venv
  shadows (Red appends Downloader's lib to sys.path). Catches the
  2026-11-09 anyio/typing_extensions break; verified on the old lib.
- dogesetup.after_update: run it after provisioning and every cog
  update, write the deps health record, dispatch dogebot_cogs_ready.
- dogebot.health: /data/health/<check>.json for the Kuma push script.
- cogs/selftest: after every cog update and on [p]selftest run, runs
  watch search + watch status + alignment as the owner in the test
  channel, renders a sample chart, and plays music at volume 0 in an
  empty voice channel; reports to the channel and health.
- start.install_bundled_cogs ships every cog in cogs/; manifest loads
  selftest last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:05:05 -07:00
Ziad ArafatandClaude Opus 5.5 2c7ac76471 Red image: constrain cog requirements to the venv's versions
Downloader installs cog requirements with pip install -U -t lib, which
can't see Red's venv and picks the newest versions. Modules Red already
imported shadow them, so d!watch failed: anyio 4.16 (lib) needs
typing_extensions 4.16, Red pins 4.13.2 ("cannot import name 'sentinel'").
Freeze the venv into /app/constraints.txt and set PIP_CONSTRAINT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:18:27 -07:00
Ziad ArafatandClaude Opus 5.5 5bbebbe5d6 Use yveltal's Ollama (Qwen3.5-9B) for guesses instead of a new llama.cpp
yveltal already runs Ollama with better models, and ghcr.io (where the
llama.cpp images are) is very slow from this network. Red reaches it at
host.containers.internal:11434 with thinking turned off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 14:29:51 -07:00
Ziad ArafatandClaude Opus 5.5 c1da2295a0 dogesetup: sync slash commands again when their definitions change
A hash of the manifest commands' payloads is kept in dogesetup's Config, so
new subcommands from a cog update reach Discord with one sync, and
unchanged starts still don't sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 12:49:52 -07:00
Ziad ArafatandClaude Opus 5.5 b14a55f468 Run a guessing model on the GPU; Pango and emoji fonts for names
dogebot-llm runs llama.cpp's CUDA server with Qwen2.5-7B-Instruct (Q4_K_M)
on the GPU with the most memory (the GTX 1080 on yveltal); install.sh
downloads and checks the model and skips all of it without NVIDIA. Red
gets ALIGNMENT_MODEL_URL for doge_alignment's alignment guess.

The Red image adds ImageMagick's Pango coder and Noto Color Emoji, pinned,
so names with emoji render in chart pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 12:47:42 -07:00
Ziad ArafatandClaude Opus 5.5 080ab8c077 Pin ImageMagick and DejaVu in the Red image
ImageMagick is pinned to 6.9.11.60 with a trailing * so Debian security
rebuilds still install. doge_cogs' mise run test-container tests against
this image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 12:21:07 -07:00
Ziad ArafatandClaude Opus 5.5 00ad4761ab dogesetup: update cogs on start too, so a restart picks up new versions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 11:56:20 -07:00
Ziad ArafatandClaude Opus 5.5 c1533e3cf3 dogesetup: pull an existing repo before installing new cogs from it
Downloader's doge_cogs clone was made when watch was added and still had
the old doge_alignment info.json, which pip-installed the whole repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 11:53:14 -07:00
Ziad ArafatandClaude Opus 5.5 ce60f96306 Add doge_alignment, with ImageMagick, and enable its slash command
The Red image gets libmagickwand and DejaVu fonts so doge_alignment can draw
charts. dogesetup now enables the manifest's SLASH_COMMANDS once their cog
has loaded, syncing with Discord only when something was newly enabled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 11:35:29 -07:00
ziadarafatandClaude Opus 5.5 095dc0d9b8 Add the watch cog from doge_cogs
dogesetup now also installs `watch` from RustyRaptor/doge_cogs, which
preloads media through the home lab's media-preload service. Red gets
PRELOAD_API_URL (host.containers.internal, since the host's LAN IP is the
container itself on a rootless network) and PRELOAD_BOT_TOKEN from the new
dogebot-preload-token secret, which install.sh creates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-05 09:38:18 -07:00
ziadarafatandClaude Opus 5.5 fb1a15b97d Redact through the log record factory, not a logger filter
Adding a filter at interpreter startup created Red-Lavalink's logger before
Red set its logger class, so the logger lacked trace() and verbose() and
Audio could not connect. Wrapping the record factory touches no logger; a
test checks that importing the module creates none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-04 19:53:11 -07:00
ziadarafatandClaude Opus 5.5 81f211c687 Redact the Lavalink password from Red's logs
Red-Lavalink logs its connection headers, password included, every time
Audio connects. The Red image now imports dogebot.logfilter through a .pth
file at interpreter startup, which adds a filter to that logger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-04 19:51:15 -07:00
ziadarafatandClaude Opus 5.5 01400dfc9d Load cogs on a fresh instance's first start
Red loads no cogs at all, not even --load-cogs, when the Python version it
last saw differs from the running one, which is always the case on a new
instance. dogesetup therefore never loaded on the first start. The entry
point now records the running Python in Red's config first, but only while
Downloader's lib folder is empty, so Red still handles real Python upgrades.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-04 19:42:30 -07:00
ziadarafatandClaude Opus 5.5 ae08961a38 Dogebot: Red-DiscordBot with self-updating music, deployed with quadlets
- Red 3.5.24 (Postgres storage) with the dogesetup cog, which installs,
  loads and daily updates the cogs listed in src/dogebot/manifest.py and
  points Audio at our Lavalink
- Lavalink: Red's 3.7 build plus youtube-source (OAuth, TV/WEB clients) and
  yt-cipher; dogebot-update builds new versions, smoke tests them next to
  the live server and swaps them in with rollback, falling back from the
  plugin release to its newest snapshot
- Rootless podman quadlets for Red, Lavalink, yt-cipher and Postgres, a daily
  update timer, and deploy/install.sh
- mise for tools and tasks, uv for Python 3.11 and dependencies, ruff with
  the lptn settings, ty type checking, 37 pytest tests including a contract
  test for the Red internals dogesetup uses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
2026-11-04 17:35:28 -07:00