@agent-link/server 0.1.148 → 0.1.150
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 +1 -1
- package/web/app.js +12 -6
- package/web/style.css +11 -1
package/package.json
CHANGED
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
|
|
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,
|
|
@@ -849,8 +855,8 @@ const App = {
|
|
|
849
855
|
<div class="sidebar-section-header" @click="teamsCollapsed = !teamsCollapsed" style="cursor: pointer;">
|
|
850
856
|
<span>Teams History</span>
|
|
851
857
|
<span class="sidebar-section-header-actions">
|
|
852
|
-
<button class="sidebar-refresh-btn" @click.stop="requestTeamsList" title="Refresh">
|
|
853
|
-
<svg 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>
|
|
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>
|
|
854
860
|
</button>
|
|
855
861
|
<button class="sidebar-collapse-btn" :title="teamsCollapsed ? 'Expand' : 'Collapse'">
|
|
856
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>
|
|
@@ -858,7 +864,7 @@ const App = {
|
|
|
858
864
|
</span>
|
|
859
865
|
</div>
|
|
860
866
|
|
|
861
|
-
<div v-show="!teamsCollapsed">
|
|
867
|
+
<div v-show="!teamsCollapsed" class="sidebar-section-collapsible">
|
|
862
868
|
<button class="new-conversation-btn" @click="newTeam" :disabled="isTeamActive">
|
|
863
869
|
<svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
|
864
870
|
New team
|
|
@@ -918,7 +924,7 @@ const App = {
|
|
|
918
924
|
</span>
|
|
919
925
|
</div>
|
|
920
926
|
|
|
921
|
-
<div v-show="!chatsCollapsed">
|
|
927
|
+
<div v-show="!chatsCollapsed" class="sidebar-section-collapsible">
|
|
922
928
|
<button class="new-conversation-btn" @click="newConversation">
|
|
923
929
|
<svg viewBox="0 0 24 24" width="14" height="14"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
|
924
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;
|
|
@@ -3632,7 +3640,8 @@ body {
|
|
|
3632
3640
|
.team-history-meta {
|
|
3633
3641
|
display: flex;
|
|
3634
3642
|
align-items: center;
|
|
3635
|
-
|
|
3643
|
+
flex-wrap: wrap;
|
|
3644
|
+
gap: 2px 6px;
|
|
3636
3645
|
margin-top: 2px;
|
|
3637
3646
|
font-size: 0.7rem;
|
|
3638
3647
|
color: var(--text-secondary);
|
|
@@ -3640,6 +3649,7 @@ body {
|
|
|
3640
3649
|
|
|
3641
3650
|
.team-history-tasks {
|
|
3642
3651
|
color: var(--text-secondary);
|
|
3652
|
+
white-space: nowrap;
|
|
3643
3653
|
}
|
|
3644
3654
|
|
|
3645
3655
|
.team-status-badge-sm {
|