Add job auto-work-sweep-j10 via box-ctl
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user