16 lines
968 B
Python
16 lines
968 B
Python
"""The files by which a loop-claude shows its interrupt in loop-inbox, and takes an answer typed there.
|
|
|
|
A waiting loop keeps its ask in <session>.json in Paths.waiting: the question, with an id new for each question.
|
|
<session> is the worker's session id, so a loop lists one question at a time. The loop removes the ask once the question
|
|
is answered or the loop stops. loop-inbox lists an ask only while the loop holds the session's lock (running_loops.py),
|
|
and removes one whose lock is free. loop-inbox answers by replacing <session>.answer, which names the
|
|
ask's id. So an answer meant for an earlier question, or sent as the loop took an answer on its terminal,
|
|
never answers a later one.
|
|
|
|
One module per role, each importing only those before it:
|
|
- ask.py: the ask, its state and the file format.
|
|
- answers.py: what loop-inbox sends, and the answer file.
|
|
- listing.py: the ask's file in the folder, and which asks are listed.
|
|
- talk.py: the /talk handshake.
|
|
"""
|