feat(work): add box work read command to extract live active chat text and side chats
This commit is contained in:
@@ -907,9 +907,16 @@ def cmd_loopback(args):
|
||||
if as_json:
|
||||
print(json.dumps({"ok": True, "actions": actions}, indent=2))
|
||||
|
||||
def cmd_read(args):
|
||||
if not acp:
|
||||
print(c_red("Error: agent_cognitive_probe module not found."))
|
||||
sys.exit(1)
|
||||
acp.cmd_read(args)
|
||||
|
||||
WORK_COMMAND_EXAMPLES = {
|
||||
"box work": [
|
||||
"box work # View fleet workspace dashboard & signals",
|
||||
"box work read <agent> # Extract live screen text, thoughts, and side chats",
|
||||
"box work loopback [--dry-run] # Sweep open tickets with 3-tier loopback escalation",
|
||||
"box work cognitive [agent...] # Live zero-click cognitive sensor probe across fleet",
|
||||
"box work menu <agent> [tab] # Inspect agent profile menu (tasks, timers, approvals)",
|
||||
@@ -920,6 +927,10 @@ WORK_COMMAND_EXAMPLES = {
|
||||
"box work merge <pr#> # Verify tests and merge PR to master",
|
||||
"box work chats --agent <name> # View live multi-agent chat feed",
|
||||
],
|
||||
"box work read": [
|
||||
"box work read pip # Read pip's current active screen & thought stream",
|
||||
"box work read 646 # Read 646's active thread and side chats",
|
||||
],
|
||||
"box work loopback": [
|
||||
"box work loopback # Sweep active tickets and escalate inactivity",
|
||||
"box work loopback --dry-run # Dry-run inspect without sending pings or comments",
|
||||
@@ -1081,6 +1092,10 @@ def main():
|
||||
p_loop.add_argument("--dry-run", action="store_true", help="Inspect without modifying tickets or sending DMs")
|
||||
p_loop.add_argument("--json", action="store_true", help="Output actions as JSON")
|
||||
|
||||
p_read = sub.add_parser("read", help="Extract live screen text, active thoughts, and side chats for an agent")
|
||||
p_read.add_argument("agent", help="Agent username (muse, pip, 646, opm, dev, def)")
|
||||
p_read.add_argument("--json", action="store_true", help="Output JSON")
|
||||
|
||||
args = parser.parse_args()
|
||||
action = args.work_action
|
||||
|
||||
@@ -1104,6 +1119,8 @@ def main():
|
||||
cmd_cognitive(args)
|
||||
elif action == "loopback":
|
||||
cmd_loopback(args)
|
||||
elif action == "read":
|
||||
cmd_read(args)
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user