@agent-link/server 0.1.147 → 0.1.149

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.147",
3
+ "version": "0.1.149",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -120,6 +120,7 @@ const App = {
120
120
  const workdirMenuOpen = ref(false);
121
121
  const teamsCollapsed = ref(false);
122
122
  const chatsCollapsed = ref(false);
123
+ const loadingTeams = ref(false);
123
124
 
124
125
  // Team creation state
125
126
  const teamInstruction = ref('');
@@ -450,6 +451,8 @@ const App = {
450
451
  document.title = name ? `${name} — AgentLink` : 'AgentLink';
451
452
  });
452
453
 
454
+ watch(team.teamsList, () => { loadingTeams.value = false; });
455
+
453
456
  // ── Lifecycle ──
454
457
  onMounted(() => { connect(scheduleHighlight); });
455
458
  onUnmounted(() => {
@@ -563,7 +566,7 @@ const App = {
563
566
  // File preview
564
567
  previewPanelOpen, previewPanelWidth, previewFile, previewLoading, previewMarkdownRendered, filePreview,
565
568
  workdirMenuOpen,
566
- teamsCollapsed, chatsCollapsed,
569
+ teamsCollapsed, chatsCollapsed, loadingTeams,
567
570
  toggleWorkdirMenu() { workdirMenuOpen.value = !workdirMenuOpen.value; },
568
571
  workdirMenuBrowse() {
569
572
  workdirMenuOpen.value = false;
@@ -597,7 +600,10 @@ const App = {
597
600
  viewAgent: team.viewAgent,
598
601
  viewDashboard: team.viewDashboard,
599
602
  viewHistoricalTeam: team.viewHistoricalTeam,
600
- requestTeamsList: team.requestTeamsList,
603
+ requestTeamsList() {
604
+ loadingTeams.value = true;
605
+ team.requestTeamsList();
606
+ },
601
607
  deleteTeamById: team.deleteTeamById,
602
608
  renameTeamById: team.renameTeamById,
603
609
  getAgentColor: team.getAgentColor,
@@ -848,12 +854,17 @@ const App = {
848
854
  <div class="sidebar-section sidebar-teams">
849
855
  <div class="sidebar-section-header" @click="teamsCollapsed = !teamsCollapsed" style="cursor: pointer;">
850
856
  <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>
857
+ <span class="sidebar-section-header-actions">
858
+ <button class="sidebar-refresh-btn" @click.stop="requestTeamsList" title="Refresh" :disabled="loadingTeams">
859
+ <svg :class="{ spinning: loadingTeams }" 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>
860
+ </button>
861
+ <button class="sidebar-collapse-btn" :title="teamsCollapsed ? 'Expand' : 'Collapse'">
862
+ <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>
863
+ </button>
864
+ </span>
854
865
  </div>
855
866
 
856
- <div v-show="!teamsCollapsed">
867
+ <div v-show="!teamsCollapsed" class="sidebar-section-collapsible">
857
868
  <button class="new-conversation-btn" @click="newTeam" :disabled="isTeamActive">
858
869
  <svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
859
870
  New team
@@ -913,7 +924,7 @@ const App = {
913
924
  </span>
914
925
  </div>
915
926
 
916
- <div v-show="!chatsCollapsed">
927
+ <div v-show="!chatsCollapsed" class="sidebar-section-collapsible">
917
928
  <button class="new-conversation-btn" @click="newConversation">
918
929
  <svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
919
930
  New conversation
package/web/style.css CHANGED
@@ -3571,6 +3571,14 @@ body {
3571
3571
  font-weight: 600;
3572
3572
  }
3573
3573
 
3574
+ .sidebar-section-collapsible {
3575
+ display: flex;
3576
+ flex-direction: column;
3577
+ flex: 1;
3578
+ min-height: 0;
3579
+ overflow: hidden;
3580
+ }
3581
+
3574
3582
  /* ── Teams sidebar section (history list in sidebar) ── */
3575
3583
  .sidebar-teams {
3576
3584
  padding: 0.75rem;