Jeden/Docs

CLI command

jeden asks answer

Answer an ask once, for every task waiting on it.

Exact invocation#

Shell
jeden asks answer <ask-id> --text "answer" [--json]

Inputs and options#

  • Required: an ask id and --text, your answer. No session or revision is needed: the register is one for the machine. Over RPC: asks/answer {askId,text}; Jeden Desktop's Asked of you screen and jeden-ios send the same request.

Output and state effect#

Records the answer with its time on the ask, then hands it to every task, in every session, whose current ask it is and which still waits: each such task returns to pending with Operator answered: &lt;text&gt;. When the ask was also put to you through the operator-asks alternative, that ask is answered too (asks answer &lt;id&gt; --text … --on jeden of the program Stado names) so it stops asking, and that is one more line, for oko; a refusal there names your answer only by its length, since it may be the secret the ask asked for. Prints one line per task with its outcome: delivered, not_waiting (it no longer waits, with its status) or failed (with the declared refusal of the session, or of the alternative). Running it twice does not record a second answer.

Refusals and boundaries#

  • Missing id or text: jeden.completion.asks.command id-missing, answer-textless (exit 2); blank text: jeden.completion.asks.answer.answer-blank (exit 2).
  • Unknown id: ask-unknown.
  • A second answer: answer-held, naming when it was answered and the answer.
  • A delivery that failed exits 1 with answer-undelivered, naming how many of the waiting tasks did not take it and each task, session and refusal on one line; the answer stays recorded and jeden todo continue --session &lt;session&gt; delivers it.
  • A command line of the wrong form (an unknown command or option, a missing, unexpected or invalid argument, a missing confirmation) prints the error and the usage and exits 2; a refusal that retrying unchanged can help (a dependency down or not answering, a rate limit) exits 69; any other refusal or failure exits 1. A refusal a functionality declares ends with fix: … and cause: &lt;operation&gt;.&lt;cause&gt;, and jeden errors show &lt;operation&gt; lists every cause of that functionality.