diff --git a/frontend/packages/agent/src/app.js b/frontend/packages/agent/src/app.js index 63916293..6717f90e 100644 --- a/frontend/packages/agent/src/app.js +++ b/frontend/packages/agent/src/app.js @@ -1626,6 +1626,40 @@ window.marked = marked; } case 'mcp__hyperhive__request_apply_commit': return short + ' ' + (input.agent || '') + ' @ ' + (input.commit_ref || '').slice(0, 12); + case 'mcp__hyperhive__request_init_config': + return short + ' ' + (input.name || '?'); + case 'mcp__hyperhive__request_update_meta_inputs': { + const ins = Array.isArray(input.inputs) && input.inputs.length + ? '[' + input.inputs.slice(0, 4).join(', ') + + (input.inputs.length > 4 ? ', …' : '') + ']' + : 'all'; + return short + ' ' + ins; + } + case 'mcp__hyperhive__list_schedules': + return short + '()'; + case 'mcp__hyperhive__cancel_schedule': + return short + ' #' + (input.id != null ? input.id : '?') + + (Array.isArray(input.targets) && input.targets.length + ? ' [' + input.targets.join(', ') + ']' : ' all'); + case 'mcp__hyperhive__fire_schedule_now': + return short + ' #' + (input.id != null ? input.id : '?'); + case 'mcp__hyperhive__edit_schedule': { + const parts = ['#' + (input.id != null ? input.id : '?')]; + if (input.body != null) parts.push('body'); + if (input.interval_seconds != null) parts.push('interval'); + if (input.next_fire_at_unix != null) parts.push('next'); + if (input.targets_add) parts.push('+' + input.targets_add.length + ' tgt'); + if (input.targets_remove) parts.push('-' + input.targets_remove.length + ' tgt'); + return short + ' ' + parts.join(' · '); + } + case 'mcp__hyperhive__request_schedule_prompt': { + const tgts = Array.isArray(input.targets) ? input.targets : []; + const when = input.first_fire_at_unix != null + ? new Date(input.first_fire_at_unix * 1000).toISOString().slice(11, 16) + 'Z' + : '?'; + return short + ' → ' + (tgts.length ? tgts.join(', ') : '?') + ' at ' + when + + (input.interval_seconds != null ? ' +' + input.interval_seconds + 's' : ''); + } case 'mcp__bash__run': { // Rich renderer handles the full body; this summary covers any // fallback path and the details summary line.