Add job auto-work-sweep-j10 via box-ctl

This commit is contained in:
box-ctl
2026-10-05 05:48:42 +00:00
parent 4f6c786419
commit 719f739c41
4 changed files with 20 additions and 25 deletions
+4 -1
View File
@@ -1117,7 +1117,10 @@ def dm_log(n=20):
lines = f.readlines()
for line in lines[-n:]:
e = json.loads(line)
print(f"{e['ts'][:19]} {e.get('type','?'):12} {e.get('id','-'):8} {e.get('agent','-')}/{e.get('target','-')}")
id_str = str(e.get('id') or '-')
agent_str = str(e.get('agent') or '-')
target_str = str(e.get('target') or '-')
print(f"{e['ts'][:19]} {e.get('type','?'):12} {id_str:8} {agent_str}/{target_str}")
def dm_thread(from_agent, to_agent, target, message, allow_main_chat=False):
"""Thread from one agent to another. Attribution is applied exactly once,