Files
microduck/robotctl/Cargo.toml
T
apirroneandClaude Opus 5.5 f1e901b7f8 Share the vet book: a public dataset, a card Space, and s in robotctl
- `vetbook.share` (API v43), served by updaterd: reads the book from
  robotd and the name from configd, creates `<user>/<robot>-vetbook` as a
  public dataset on the signed-in account if needed, and commits
  `vetbook.json` and a dataset card. Diary notes and robotd's
  bookkeeping stay on the robot. Each share draws one of three cards at
  random and records it. Gated as mutating; allowed over BLE, refused
  over WebRTC.
- spaces/vetbook: `/d/<user>/<duck>` is the page to share (post buttons,
  native share sheet, Open Graph card), `/d/<user>/<duck>/card.png` the
  1200×630 card, rendered from HTML by headless Chromium and cached per
  dataset commit. Three kawaii cards — notebook, purikura, profile — with
  the microduck sticker; long names shrink to fit.
- robotctl vetbook: `s` shares, then shows the link, the card drawn and
  a QR code (black on white, verified to decode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 16:47:34 +02:00

62 lines
3.0 KiB
TOML

[package]
name = "robotctl"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "Local CLI for the robot — currently the `update` namespace only"
# Its own crate rather than a binary of `updater`, because its role is broader:
# it will front `robotd` and other services too. Today it only implements
# `robotctl update …`.
#
# Depends on `duck-ipc-proto` alone, not on `updater`. That was the point of extracting the
# protocol: a support tool on the recovery path should not link the update engine's
# http/tar/zstd/crypto tree, and structurally cannot now reach into engine internals
# instead of going through the socket.
[dependencies]
duck-ipc-proto = { path = "../duck-ipc-proto" }
semver.workspace = true
clap = { version = "4.6.4", features = ["derive"] }
# Shell completions, generated from the same `Cli` the parser uses, so they cannot
# describe commands this binary does not have. Pure codegen over clap's own model —
# no runtime, and nothing on the recovery path depends on it.
clap_complete = "4.6.4"
serde_json.workspace = true
serde.workspace = true
libc = "0.2.189"
# Pure geometry (the ToF reprojection the monitor overlays) — deliberately NOT the `tof`
# crate, whose vendored C driver would drag a cross C toolchain into every robotctl build.
kinematics = { path = "../kinematics" }
# The camera's pixels, for `monitor`'s camera block: the mount turn and the UYVY sampler, shared
# with `mediad` and `duck-detect`. Deliberately NOT `duck-detect` itself, for the reason above —
# that crate carries the NPU and ONNX runtimes, and this one has no dependencies at all.
uyvy = { path = "../uyvy" }
pad-imu = { path = "../pad-imu" }
# `robotctl configure`'s schema, defaults and validation — the same crate `robotd` parses
# its config with, which is what makes the editor unable to disagree with the daemon. Pure
# serde + toml, so the recovery-path rule above still holds.
robotd-params = { path = "../robotd-params" }
toml = "0.9"
# Edits `robotd.toml` losslessly: comments, ordering and unknown keys survive. The plain
# `toml` crate would re-serialize the file and destroy every comment in it.
toml_edit = "0.23"
# `robotctl monitor`'s live view, and nothing else. Terminal only — no http, no crypto, no
# async runtime, so the rule this file opens with still holds: none of the update engine's
# tree comes in with it. Default features off because the widget set we do not draw (calendar,
# canvas) is not worth compiling, and `crossterm` is the one backend that matters.
#
# Not hand-rolled escape codes: the parts that go wrong are the parts a crate has already
# solved — restoring the terminal when the process panics mid-frame, a resize during a
# redraw, and clipping a line to a width nobody checked.
ratatui = { version = "0.30.2", default-features = false, features = [
"crossterm",
"layout-cache",
] }
# The QR code `robotctl vetbook` shows after a share, to open the card on a phone. Pure
# computation, no image backends.
qrcode = { version = "0.14.1", default-features = false }
[dev-dependencies]
tempfile = "3.27.0"