Add job auto-work-sweep-j10 via box-ctl
This commit is contained in:
@@ -2812,30 +2812,6 @@ def main(argv):
|
||||
elif action == "loop-remediate":
|
||||
dry = "--dry-run" in rest
|
||||
act_loop_remediate(dry_run=dry)
|
||||
elif action in ("thread-list", "thread-pin", "thread-unpin",
|
||||
"thread-archive", "thread-unarchive", "thread-rename"):
|
||||
op = action[len("thread-"):]
|
||||
agent = None
|
||||
thread = None
|
||||
title = None
|
||||
idx = 0
|
||||
while idx < len(rest):
|
||||
if rest[idx] == "--agent" and idx + 1 < len(rest):
|
||||
agent = rest[idx + 1]
|
||||
idx += 2
|
||||
elif rest[idx] == "--thread" and idx + 1 < len(rest):
|
||||
thread = rest[idx + 1]
|
||||
idx += 2
|
||||
elif rest[idx] == "--title" and idx + 1 < len(rest):
|
||||
title = rest[idx + 1]
|
||||
idx += 2
|
||||
else:
|
||||
idx += 1
|
||||
if not agent:
|
||||
fail("BAD_NAME", f"usage: {action} --agent <agent> [--thread <id>] [--title <title>]")
|
||||
if op in ("pin", "unpin", "archive", "unarchive", "rename") and not thread:
|
||||
fail("BAD_NAME", f"usage: {action} --agent <agent> --thread <id> [--title <title>]")
|
||||
act_thread(op, agent, thread, title)
|
||||
elif action == "notify":
|
||||
# notify <agent> <message> [--sidechat <name>] [--allow-main-chat] [--sender <agent>]
|
||||
args = list(rest)
|
||||
|
||||
Reference in New Issue
Block a user