@xcanwin/manyoyo 5.7.7 → 5.7.8

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.
@@ -2493,17 +2493,19 @@
2493
2493
  return count + containerGroup.sessions.length;
2494
2494
  }, 0)} AGENT`,
2495
2495
  formatDateTime(directoryGroup.updatedAt) || '暂无更新'
2496
- ],
2497
- onClick: function () {
2498
- setSidebarDirectoryExpanded(directoryGroup.path, !directoryExpanded);
2499
- renderSessions();
2500
- }
2496
+ ]
2501
2497
  });
2502
2498
  group.appendChild(groupHead);
2503
2499
 
2504
2500
  const containerStack = document.createElement('div');
2505
2501
  containerStack.className = 'container-stack workbench-group-body';
2506
2502
  containerStack.hidden = !directoryExpanded;
2503
+ groupHead.addEventListener('click', function () {
2504
+ const nextExpanded = containerStack.hidden;
2505
+ setSidebarDirectoryExpanded(directoryGroup.path, nextExpanded);
2506
+ groupHead.setAttribute('aria-expanded', nextExpanded ? 'true' : 'false');
2507
+ containerStack.hidden = !nextExpanded;
2508
+ });
2507
2509
 
2508
2510
  directoryGroup.containers.forEach(function (containerGroup) {
2509
2511
  const containerExpanded = isContainerExpanded(containerGroup);
@@ -2516,10 +2518,6 @@
2516
2518
  containerHead.className = 'container-card-head';
2517
2519
 
2518
2520
  const containerToggle = createContainerToggle(containerGroup, containerExpanded);
2519
- containerToggle.addEventListener('click', function () {
2520
- setSidebarContainerExpanded(containerGroup.containerName, !containerExpanded);
2521
- renderSessions();
2522
- });
2523
2521
 
2524
2522
  const addAgentBtn = document.createElement('button');
2525
2523
  addAgentBtn.type = 'button';
@@ -2535,6 +2533,12 @@
2535
2533
  const agentList = document.createElement('div');
2536
2534
  agentList.className = 'agent-list container-card-body';
2537
2535
  agentList.hidden = !containerExpanded;
2536
+ containerToggle.addEventListener('click', function () {
2537
+ const nextExpanded = agentList.hidden;
2538
+ setSidebarContainerExpanded(containerGroup.containerName, nextExpanded);
2539
+ containerToggle.setAttribute('aria-expanded', nextExpanded ? 'true' : 'false');
2540
+ agentList.hidden = !nextExpanded;
2541
+ });
2538
2542
  agentList.appendChild(addAgentBtn);
2539
2543
  containerGroup.sessions.forEach(function (session) {
2540
2544
  const row = createAgentRow(session, itemIndex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcanwin/manyoyo",
3
- "version": "5.7.7",
3
+ "version": "5.7.8",
4
4
  "imageVersion": "1.9.0-common",
5
5
  "playwrightCliVersion": "0.1.1",
6
6
  "description": "AI Agent CLI Security Sandbox for Docker and Podman",