agentgui 1.0.561 → 1.0.562

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.561",
3
+ "version": "1.0.562",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -2847,7 +2847,7 @@ class AgentGUIClient {
2847
2847
 
2848
2848
  if (result.chunks && result.chunks.length > 0) {
2849
2849
  result.chunks.forEach(chunk => {
2850
- const blockEl = this.renderer.renderBlock(chunk.data, chunk.type, false);
2850
+ const blockEl = this.renderer.renderBlock(chunk.data, {}, false);
2851
2851
  if (blockEl) {
2852
2852
  const wrapper = document.createElement('div');
2853
2853
  wrapper.setAttribute('data-chunk-created', chunk.created_at);
@@ -619,8 +619,13 @@ class StreamingRenderer {
619
619
  case 'TodoWrite':
620
620
  if (input.todos && Array.isArray(input.todos)) {
621
621
  const statusIcons = { completed: '✅', in_progress: '⚙', pending: '☐' };
622
+ const hasInProgress = input.todos.some(t => t.status === 'in_progress');
623
+ const completedCount = input.todos.filter(t => t.status === 'completed').length;
624
+ const totalCount = input.todos.length;
622
625
  const items = input.todos.map(t => `<div class="todo-item"><span class="todo-status">${statusIcons[t.status] || '&#9744;'}</span><span class="todo-text">${this.escapeHtml(t.content || '')}</span></div>`).join('');
623
- return `<div class="tool-params"><div class="tool-param-todos">${items}</div></div>`;
626
+ const openAttr = hasInProgress ? 'open' : '';
627
+ const summary = `<summary class="folded-tool-bar" style="cursor:pointer;padding:0.5rem;background:var(--color-bg-secondary);border-radius:0.25rem;user-select:none"><span style="font-weight:600;font-size:0.9rem">📋 Tasks</span><span style="margin-left:0.5rem;font-size:0.8rem;color:var(--color-text-secondary)">${completedCount}/${totalCount} complete</span></summary>`;
628
+ return `<details class="folded-tool" ${openAttr}>${summary}<div class="folded-tool-body tool-param-todos" style="padding:0.75rem">${items}</div></details>`;
624
629
  }
625
630
  return this.renderJsonParams(input);
626
631