@agent-link/server 0.1.146 → 0.1.147

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": "@agent-link/server",
3
- "version": "0.1.146",
3
+ "version": "0.1.147",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -118,6 +118,8 @@ const App = {
118
118
  const sidebarView = ref('sessions'); // 'sessions' | 'files' | 'preview' (mobile only)
119
119
  const isMobile = ref(window.innerWidth <= 768);
120
120
  const workdirMenuOpen = ref(false);
121
+ const teamsCollapsed = ref(false);
122
+ const chatsCollapsed = ref(false);
121
123
 
122
124
  // Team creation state
123
125
  const teamInstruction = ref('');
@@ -561,6 +563,7 @@ const App = {
561
563
  // File preview
562
564
  previewPanelOpen, previewPanelWidth, previewFile, previewLoading, previewMarkdownRendered, filePreview,
563
565
  workdirMenuOpen,
566
+ teamsCollapsed, chatsCollapsed,
564
567
  toggleWorkdirMenu() { workdirMenuOpen.value = !workdirMenuOpen.value; },
565
568
  workdirMenuBrowse() {
566
569
  workdirMenuOpen.value = false;
@@ -843,10 +846,14 @@ const App = {
843
846
 
844
847
  <!-- Teams section -->
845
848
  <div class="sidebar-section sidebar-teams">
846
- <div class="sidebar-section-header">
849
+ <div class="sidebar-section-header" @click="teamsCollapsed = !teamsCollapsed" style="cursor: pointer;">
847
850
  <span>Teams History</span>
851
+ <button class="sidebar-collapse-btn" :title="teamsCollapsed ? 'Expand' : 'Collapse'">
852
+ <svg :class="{ collapsed: teamsCollapsed }" viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>
853
+ </button>
848
854
  </div>
849
855
 
856
+ <div v-show="!teamsCollapsed">
850
857
  <button class="new-conversation-btn" @click="newTeam" :disabled="isTeamActive">
851
858
  <svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
852
859
  New team
@@ -890,16 +897,23 @@ const App = {
890
897
  </div>
891
898
  </div>
892
899
  </div>
900
+ </div>
893
901
  </div>
894
902
 
895
903
  <div class="sidebar-section sidebar-sessions">
896
- <div class="sidebar-section-header">
904
+ <div class="sidebar-section-header" @click="chatsCollapsed = !chatsCollapsed" style="cursor: pointer;">
897
905
  <span>Chat History</span>
898
- <button class="sidebar-refresh-btn" @click="requestSessionList" title="Refresh" :disabled="loadingSessions">
899
- <svg :class="{ spinning: loadingSessions }" viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
900
- </button>
906
+ <span class="sidebar-section-header-actions">
907
+ <button class="sidebar-refresh-btn" @click.stop="requestSessionList" title="Refresh" :disabled="loadingSessions">
908
+ <svg :class="{ spinning: loadingSessions }" viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
909
+ </button>
910
+ <button class="sidebar-collapse-btn" :title="chatsCollapsed ? 'Expand' : 'Collapse'">
911
+ <svg :class="{ collapsed: chatsCollapsed }" viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>
912
+ </button>
913
+ </span>
901
914
  </div>
902
915
 
916
+ <div v-show="!chatsCollapsed">
903
917
  <button class="new-conversation-btn" @click="newConversation">
904
918
  <svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
905
919
  New conversation
@@ -960,6 +974,7 @@ const App = {
960
974
  </div>
961
975
  </div>
962
976
  </div>
977
+ </div>
963
978
  </div>
964
979
 
965
980
  <div v-if="serverVersion || agentVersion" class="sidebar-version-footer">
package/web/style.css CHANGED
@@ -419,6 +419,38 @@ body {
419
419
  cursor: not-allowed;
420
420
  }
421
421
 
422
+ .sidebar-section-header-actions {
423
+ display: flex;
424
+ align-items: center;
425
+ gap: 2px;
426
+ }
427
+
428
+ .sidebar-collapse-btn {
429
+ display: flex;
430
+ align-items: center;
431
+ justify-content: center;
432
+ width: 24px;
433
+ height: 24px;
434
+ background: none;
435
+ border: none;
436
+ border-radius: 4px;
437
+ color: var(--text-secondary);
438
+ cursor: pointer;
439
+ transition: color 0.15s;
440
+ }
441
+
442
+ .sidebar-collapse-btn:hover {
443
+ color: var(--text-primary);
444
+ }
445
+
446
+ .sidebar-collapse-btn svg {
447
+ transition: transform 0.2s ease;
448
+ }
449
+
450
+ .sidebar-collapse-btn svg.collapsed {
451
+ transform: rotate(-90deg);
452
+ }
453
+
422
454
  @keyframes spin {
423
455
  from { transform: rotate(0deg); }
424
456
  to { transform: rotate(360deg); }