feat(agent-term): complete tool-icon and fmtToolUse coverage
Several MCP tools appeared with the generic wrench icon (🔧) making them hard to identify in the scrollback. fmtToolUse also lacked specific formatters for some frequently-used tools, falling through to fmtArgsGeneric. Icons added: - ack_until → ✅ (mark-as-read semantics) - get_logs → 📜 (log viewer) - get_host_journal → 📜 (journal reader) fmtToolUse cases added: - ack_until → "ack_until* ≤N" (message-id bound) - get_logs → "get_logs* <agent> [NL]" - get_host_journal → "get_host_journal* <container|unit> [/grep/] [NL]" - restart/start/update → "restart* <name>" etc. (previously used fmtArgsGeneric; now match kill's pattern) Closes #2188.
This commit is contained in:
parent
1011428cc7
commit
0a9f9a4fa6
1 changed files with 19 additions and 0 deletions
|
|
@ -1514,6 +1514,7 @@ window.marked = marked;
|
|||
'mcp__hyperhive__set_status': '🏷️',
|
||||
'mcp__hyperhive__get_loose_ends': '🪢',
|
||||
'mcp__hyperhive__cancel_loose_end': '✂️',
|
||||
'mcp__hyperhive__ack_until': '✅',
|
||||
'mcp__hyperhive__get_agent_meta': 'ℹ️',
|
||||
'mcp__hyperhive__request_next_turn': '⏩',
|
||||
'mcp__hyperhive__restart': '↻',
|
||||
|
|
@ -1521,6 +1522,8 @@ window.marked = marked;
|
|||
'mcp__hyperhive__start': '▶️',
|
||||
'mcp__hyperhive__update': '🔄',
|
||||
'mcp__hyperhive__list_containers': '📋',
|
||||
'mcp__hyperhive__get_logs': '📜',
|
||||
'mcp__hyperhive__get_host_journal': '📜',
|
||||
Read: '📖', Write: '💾', Edit: '✏️', Glob: '🔍', Grep: '🔍',
|
||||
};
|
||||
function toolIcon(name) {
|
||||
|
|
@ -1565,6 +1568,22 @@ window.marked = marked;
|
|||
return short + (parts.length ? ' ' + parts.join(' · ') : '()');
|
||||
}
|
||||
case 'mcp__hyperhive__kill': return short + ' ' + (input.name || '');
|
||||
case 'mcp__hyperhive__restart': return short + ' ' + (input.name || '');
|
||||
case 'mcp__hyperhive__start': return short + ' ' + (input.name || '');
|
||||
case 'mcp__hyperhive__update': return short + ' ' + (input.name || '');
|
||||
case 'mcp__hyperhive__ack_until':
|
||||
return short + ' ≤' + (input.up_to != null ? input.up_to : '?');
|
||||
case 'mcp__hyperhive__get_logs':
|
||||
return short + ' ' + (input.agent || '?')
|
||||
+ (input.lines != null ? ' · ' + input.lines + 'L' : '');
|
||||
case 'mcp__hyperhive__get_host_journal': {
|
||||
const parts = [];
|
||||
if (input.container) parts.push(input.container);
|
||||
else if (input.unit) parts.push(input.unit);
|
||||
if (input.grep) parts.push('/' + input.grep + '/');
|
||||
if (input.lines != null) parts.push(input.lines + 'L');
|
||||
return short + (parts.length ? ' ' + parts.join(' · ') : '()');
|
||||
}
|
||||
case 'mcp__hyperhive__request_apply_commit':
|
||||
return short + ' ' + (input.agent || '') + ' @ ' + (input.commit_ref || '').slice(0, 12);
|
||||
case 'mcp__bash__run': {
|
||||
|
|
|
|||
Loading…
Reference in a new issue