Waddle docs

Reference

Finished commands and deploys

POST /command brings Waddle's newspaper for a command that finished. POST /deploy is the deploy duck.

A command finished

What waddle wait and the shell hook send. Waddle brings it as a newspaper: happy if it worked, with the last line it printed if not.

sh
curl localhost:4404/command -H 'content-type: application/json' \
  -d '{"command":["npm","test"],"code":0,"seconds":42.5,"cwd":"/Users/you/code/limen"}'
json
{ "ok": true }
FieldTypeWhat it is
commandlist of stringsThe command, as words. Up to 8 words of 200 characters. Required.
codenumberIts exit code, 0 to 255. 0 is a pass. Required.
secondsnumberHow long it took, up to 7 days. Required.
laststringThe last line it printed. Waddle fits it in its bubble.
cwdstringWhere it ran, from /.
termobjectWhere to jump back to on a click, as in Sessions.
agentbooleanAn agent ran it: Waddle only notes it down.

In the coop, the reply adds "mailed": true and the paper waits in the mailbox.

A deploy went live

For a deploy Waddle doesn't see on GitHub. (Waddle watches GitHub itself for deploys from Vercel, Render, Railway, GitHub Pages, Actions and Netlify: Preferences → News → Deploys.)

curl localhost:4404/deploy -H 'content-type: application/json' \
  -d '{"name":"limen-fm","outcome":"live"}'
Plays it on the Waddle at the bottom of this page. Nothing leaves this page.
json
{ "ok": true }
FieldTypeWhat it is
namestringWhat went live, up to 60 characters. Required.
outcomestringlive or failed. Live if you leave it out.
sh
curl localhost:4404/deploy -H 'content-type: application/json' -d '{"outcome":"live"}'
json
{ "ok": false, "error": "Send {\"name\":\"limen-fm\",\"outcome\":\"live\"}: what went live" }