haydnmann commited on
Commit
a024c7a
·
verified ·
1 Parent(s): 898f7dd

I like your thinking however, iw would like it so that the user can see each task being executed and see in a drop down for each task waht is being done by the central brain in terms of tools used, subagents, and thinking behind its process so that they can inspect if they want

Browse files
Files changed (1) hide show
  1. index.html +95 -18
index.html CHANGED
@@ -270,12 +270,41 @@ Q4: Public Launch</code></pre>
270
  <span class="text-xs px-2 py-1 bg-indigo-100 text-indigo-600 rounded-full animate-pulse">Processing</span>
271
  </div>
272
  </div>
273
-
274
  <div class="task-list space-y-3 mt-4">
275
  <!-- Task items will be dynamically added here -->
276
  </div>
277
-
278
- <div class="agent-visualization mt-4 p-3 bg-indigo-50 rounded-lg hidden">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  <div class="flex justify-between items-center mb-2">
280
  <h5 class="text-xs font-medium text-indigo-700">Agent Network</h5>
281
  <div class="flex space-x-1">
@@ -467,11 +496,11 @@ Q4: Public Launch</code></pre>
467
  <div class="w-4 h-4 border-t-2 border-indigo-500 border-r-2 border-indigo-500 border-b-0 border-l-0 rounded-full absolute animate-spin"></div>
468
  </div>
469
  </div>
470
- <div class="flex-1 min-w-0">
471
- <p class="text-sm font-medium truncate">${task}</p>
472
- <p class="text-xs text-gray-500 truncate">Agent ${index+1} processing</p>
473
- </div>
474
- <span class="text-xs text-gray-400">0%</span>
475
  </div>
476
  `;
477
  taskList.appendChild(taskItem);
@@ -490,7 +519,6 @@ Q4: Public Launch</code></pre>
490
 
491
  // Set summary text
492
  summaryText.textContent = summary;
493
-
494
  // Toggle details visibility
495
  toggleBtn.addEventListener('click', () => {
496
  taskDetails.classList.toggle('hidden');
@@ -498,14 +526,47 @@ Q4: Public Launch</code></pre>
498
  if (taskDetails.classList.contains('hidden')) {
499
  icon.setAttribute('data-feather', 'chevron-down');
500
  toggleBtn.innerHTML = '<i data-feather="chevron-down" class="w-3 h-3 mr-1"></i> Show agent work';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  } else {
502
  icon.setAttribute('data-feather', 'chevron-up');
503
  toggleBtn.innerHTML = '<i data-feather="chevron-up" class="w-3 h-3 mr-1"></i> Hide agent work';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  }
505
  feather.replace();
506
  });
507
-
508
- // Animate task completion
509
  let delay = 500;
510
  const taskItems = taskList.querySelectorAll('.task-item');
511
 
@@ -540,14 +601,30 @@ Q4: Public Launch</code></pre>
540
  }, 100);
541
  feather.replace();
542
  }
 
 
 
 
543
 
544
- // Show summary when last task completes
545
- if (index === tasks.length - 1) {
546
- setTimeout(() => {
547
- taskSummary.classList.remove('hidden');
548
- }, 500);
549
- }
550
- }, delay);
 
 
 
 
 
 
 
 
 
 
 
 
551
  delay += 1000 + Math.random() * 500;
552
  });
553
 
 
270
  <span class="text-xs px-2 py-1 bg-indigo-100 text-indigo-600 rounded-full animate-pulse">Processing</span>
271
  </div>
272
  </div>
 
273
  <div class="task-list space-y-3 mt-4">
274
  <!-- Task items will be dynamically added here -->
275
  </div>
276
+
277
+ <div class="task-details mt-4 hidden">
278
+ <div class="bg-indigo-50 rounded-lg p-3">
279
+ <div class="flex items-center justify-between mb-2">
280
+ <h5 class="text-xs font-medium text-indigo-700">Agent Thinking</h5>
281
+ <div class="flex space-x-2">
282
+ <span class="text-xs px-2 py-1 bg-indigo-100 text-indigo-600 rounded-full">Planning</span>
283
+ <span class="text-xs px-2 py-1 bg-indigo-100 text-indigo-600 rounded-full">Tools: 3</span>
284
+ <span class="text-xs px-2 py-1 bg-indigo-100 text-indigo-600 rounded-full">Sub-agents: 2</span>
285
+ </div>
286
+ </div>
287
+ <div class="text-xs text-gray-700 space-y-2">
288
+ <div class="flex">
289
+ <i data-feather="cpu" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
290
+ <span>Analyzing document structure to identify key sections</span>
291
+ </div>
292
+ <div class="flex">
293
+ <i data-feather="tool" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
294
+ <span>Using Document Parser and Semantic Analyzer</span>
295
+ </div>
296
+ <div class="flex">
297
+ <i data-feather="users" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
298
+ <span>Coordinating with Writer and Formatter agents</span>
299
+ </div>
300
+ </div>
301
+ </div>
302
+ </div>
303
+
304
+ <button class="toggle-details mt-2 flex items-center text-xs text-indigo-600 hover:text-indigo-800">
305
+ <i data-feather="chevron-down" class="w-3 h-3 mr-1"></i> Show agent work
306
+ </button>
307
+ <div class="agent-visualization mt-4 p-3 bg-indigo-50 rounded-lg hidden">
308
  <div class="flex justify-between items-center mb-2">
309
  <h5 class="text-xs font-medium text-indigo-700">Agent Network</h5>
310
  <div class="flex space-x-1">
 
496
  <div class="w-4 h-4 border-t-2 border-indigo-500 border-r-2 border-indigo-500 border-b-0 border-l-0 rounded-full absolute animate-spin"></div>
497
  </div>
498
  </div>
499
+ <div class="flex-1 min-w-0">
500
+ <p class="text-sm font-medium truncate">${task}</p>
501
+ <p class="text-xs text-gray-500 truncate">Using: ${['Document Parser','Semantic Analyzer','Content Generator'][index%3]}</p>
502
+ </div>
503
+ <span class="text-xs text-gray-400">0%</span>
504
  </div>
505
  `;
506
  taskList.appendChild(taskItem);
 
519
 
520
  // Set summary text
521
  summaryText.textContent = summary;
 
522
  // Toggle details visibility
523
  toggleBtn.addEventListener('click', () => {
524
  taskDetails.classList.toggle('hidden');
 
526
  if (taskDetails.classList.contains('hidden')) {
527
  icon.setAttribute('data-feather', 'chevron-down');
528
  toggleBtn.innerHTML = '<i data-feather="chevron-down" class="w-3 h-3 mr-1"></i> Show agent work';
529
+
530
+ // Update thinking details when hidden
531
+ const detailsText = taskDetails.querySelector('.text-xs.text-gray-700');
532
+ detailsText.innerHTML = `
533
+ <div class="flex">
534
+ <i data-feather="cpu" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
535
+ <span>Planning next steps based on analysis</span>
536
+ </div>
537
+ <div class="flex">
538
+ <i data-feather="tool" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
539
+ <span>Using ${['Document Parser','Semantic Analyzer','Content Generator'][Math.floor(Math.random()*3)]}</span>
540
+ </div>
541
+ <div class="flex">
542
+ <i data-feather="users" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
543
+ <span>Coordinating with ${['Writer','Formatter','Analyzer'][Math.floor(Math.random()*3)]} agent</span>
544
+ </div>
545
+ `;
546
  } else {
547
  icon.setAttribute('data-feather', 'chevron-up');
548
  toggleBtn.innerHTML = '<i data-feather="chevron-up" class="w-3 h-3 mr-1"></i> Hide agent work';
549
+
550
+ // Update thinking details when shown
551
+ const detailsText = taskDetails.querySelector('.text-xs.text-gray-700');
552
+ detailsText.innerHTML = `
553
+ <div class="flex">
554
+ <i data-feather="cpu" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
555
+ <span>Analyzing document structure to identify key sections</span>
556
+ </div>
557
+ <div class="flex">
558
+ <i data-feather="tool" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
559
+ <span>Using Document Parser and Semantic Analyzer</span>
560
+ </div>
561
+ <div class="flex">
562
+ <i data-feather="users" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
563
+ <span>Coordinating with Writer and Formatter agents</span>
564
+ </div>
565
+ `;
566
  }
567
  feather.replace();
568
  });
569
+ // Animate task completion
 
570
  let delay = 500;
571
  const taskItems = taskList.querySelectorAll('.task-item');
572
 
 
601
  }, 100);
602
  feather.replace();
603
  }
604
+ // Show summary when last task completes
605
+ if (index === tasks.length - 1) {
606
+ setTimeout(() => {
607
+ taskSummary.classList.remove('hidden');
608
 
609
+ // Update final thinking details
610
+ const detailsText = taskDetails.querySelector('.text-xs.text-gray-700');
611
+ detailsText.innerHTML = `
612
+ <div class="flex">
613
+ <i data-feather="cpu" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
614
+ <span>Finalizing content and preparing for review</span>
615
+ </div>
616
+ <div class="flex">
617
+ <i data-feather="tool" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
618
+ <span>Using Quality Checker and Format Validator</span>
619
+ </div>
620
+ <div class="flex">
621
+ <i data-feather="users" class="w-3 h-3 mr-2 mt-0.5 text-indigo-500"></i>
622
+ <span>All sub-agents completed their tasks</span>
623
+ </div>
624
+ `;
625
+ }, 500);
626
+ }
627
+ }, delay);
628
  delay += 1000 + Math.random() * 500;
629
  });
630