Skip to content

feat(kindle): the Kindle runs one Dropcap extension from this repo - #8

Merged
listlessbird merged 1 commit into
mainfrom
feat/kindle-dropcap
Nov 22, 2026
Merged

listlessbird merged 1 commit into
mainfrom
feat/kindle-dropcap

Conversation

@listlessbird

Copy link
Copy Markdown
Owner

The Kindle side lived in a separate, unversioned repo as two KUAL extensions (tailscale, wifi), plus a hand-installed upstart job. Its delivery loop could die silently, and the agents had no repeatable way to deploy it or read its logs.

This moves it into kindle/:

  • kindle/dropcap is a single KUAL extension. dropcap.sh sits over lib/{mailbox,tailscale,wifi,boot}.sh.
  • One upstart job runs dropcap.sh supervise every 60s and restarts the delivery loop or tailscaled if either dies.
  • kindle/kd handles status, logs, rescan, ssh and deploy from the laptop. The kindle-device skill and docs/internals/kindle.md document it.
  • The Kindle's curl reads its token from a file, so it no longer shows in ps. The token was rotated.

Fixed along the way:

  • BusyBox kill -0 "" succeeds.
  • A restart race left two loops running.
  • BusyBox 1.34's flock has no -w.
  • timeout can't run a shell function, so the auth-key login never ran.
  • A stop mid-queue waited out the whole batch.

Tests run the scripts under busybox sh with sqlite3, as on the device, so CI now installs both. Worker changes are comment renames only.

Verified on the real Kindle:

  • a fresh device report;
  • upload → delivery → indexed → delete settled ok → gone from the report;
  • rescan ok;
  • a killed delivery loop came back in 50s, and tailscaled in 64s;
  • kd deploy checksums match.

dropcap.sh delivers books, runs the app's commands, reports the device and uploads its log, with optional Tailscale SSH and Wi-Fi tools, under one boot job. kindle/kd and the kindle-device skill let agents check, reach and deploy to the Kindle.
@listlessbird
listlessbird merged commit d5d83e3 into main Nov 22, 2026
4 of 5 checks passed
@listlessbird
listlessbird deleted the feat/kindle-dropcap branch November 22, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant