Files

165 lines
4.7 KiB
JSON

{
"schema": 1,
"id": "background-shells",
"name": "Background shells",
"version": "1.0.0",
"description": "Live background shells, Monitors, wake-up timers and TaskOutput / TaskStop cards — Details drawer card, header running chip, and thread tool cards",
"category": "agents",
"languages": ["en", "fr"],
"icon": "icon.svg",
"color": "#ce9c57",
"author": "gabrielvidal",
"seed": true,
"managed": {
"defaultForGuests": true
},
"capabilities": [
"conversations.tasks"
],
"actions": {
"tasks": {
"script": "handlers/tasks.py",
"timeoutSec": 15,
"readOnly": true,
"description": "List every background shell and Monitor of one conversation with its state, events and stop stamps"
},
"output": {
"script": "handlers/output.py",
"timeoutSec": 15,
"readOnly": true,
"description": "Tail the last lines of a background shell's output file on its runner"
},
"stop": {
"script": "handlers/stop.py",
"timeoutSec": 25,
"description": "Stop one live background shell or Monitor on its runner (SIGTERM, then SIGKILL)"
}
},
"ui": {
"slots": [
{
"id": "conv-shells",
"where": "conversation.details",
"html": "ui/conv-shells.html",
"query": {"action": "tasks", "payload": {"conversationId": "$conversationId", "sessionId": "$sessionId"}},
"reuseFrame": true,
"height": 120,
"label": "Background shells",
"events": [
"meta",
"transcript"
],
"vis": {
"key": "card",
"label": "Background shells",
"hint": "the Details drawer card listing background shells and Monitors — their output, jump, copy, stop"
}
},
{
"id": "conv-chip",
"where": "conversation.header",
"html": "ui/conv-chip.html",
"height": 16,
"label": "Shells running chip",
"events": [
"meta",
"transcript"
],
"vis": {
"key": "chip",
"label": "Shells running chip",
"hint": "amber running-shells chip in the header meta line while background shells or Monitors run — opens their Details card"
}
}
],
"toolCards": [
{
"id": "monitor",
"label": "Monitor",
"match": {
"tool": "claude:Monitor"
},
"html": "ui/monitor.html",
"height": 96,
"replace": true,
"bare": true,
"inThread": true,
"inThreadWhile": "active",
"vis": {
"key": "widgets",
"label": "Background-work cards",
"hint": "Monitor watches + their events, wake-ups, TaskStop / TaskOutput, background-command state"
}
},
{
"id": "wakeup",
"label": "Wake-up",
"match": {
"tool": "claude:ScheduleWakeup"
},
"html": "ui/wakeup.html",
"height": 72,
"replace": true,
"bare": true,
"inThread": true,
"inThreadWhile": "active",
"vis": {
"key": "widgets",
"label": "Background-work cards",
"hint": "Monitor watches + their events, wake-ups, TaskStop / TaskOutput, background-command state"
}
},
{
"id": "task-output",
"label": "Task output",
"match": {
"tool": "shell_output",
"hasInput": "task_id"
},
"html": "ui/task-output.html",
"height": 80,
"replace": true,
"bare": true,
"vis": {
"key": "widgets",
"label": "Background-work cards",
"hint": "Monitor watches + their events, wake-ups, TaskStop / TaskOutput, background-command state"
}
},
{
"id": "task-stop",
"label": "Task stop",
"match": {
"tool": "shell_kill",
"hasInput": "task_id"
},
"html": "ui/task-stop.html",
"height": 56,
"replace": true,
"bare": true,
"vis": {
"key": "widgets",
"label": "Background-work cards",
"hint": "Monitor watches + their events, wake-ups, TaskStop / TaskOutput, background-command state"
}
},
{
"id": "bash-task",
"label": "Background shell state",
"match": {
"tool": "shell",
"hasField": "taskId"
},
"html": "ui/bash-task.html",
"height": 24,
"bare": true,
"vis": {
"key": "widgets",
"label": "Background-work cards",
"hint": "Monitor watches + their events, wake-ups, TaskStop / TaskOutput, background-command state"
}
}
]
}
}