@agent-link/server 0.1.171 → 0.1.172

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.171",
3
+ "version": "0.1.172",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -378,12 +378,12 @@ const App = {
378
378
 
379
379
  // Team module
380
380
  const team = createTeam({
381
- wsSend, scrollToBottom,
381
+ wsSend, scrollToBottom, loadingTeams,
382
382
  });
383
383
  setTeam(team);
384
384
  // Loop module
385
385
  const loop = createLoop({
386
- wsSend, scrollToBottom,
386
+ wsSend, scrollToBottom, loadingLoops,
387
387
  });
388
388
  setLoop(loop);
389
389
  sidebar.setOnSwitchToChat(() => {
@@ -872,7 +872,6 @@ const App = {
872
872
  viewDashboard: team.viewDashboard,
873
873
  viewHistoricalTeam: team.viewHistoricalTeam,
874
874
  requestTeamsList() {
875
- loadingTeams.value = true;
876
875
  team.requestTeamsList();
877
876
  },
878
877
  deleteTeamById: team.deleteTeamById,
@@ -1015,7 +1014,6 @@ const App = {
1015
1014
  renameLoopText.value = '';
1016
1015
  },
1017
1016
  requestLoopsList() {
1018
- loadingLoops.value = true;
1019
1017
  loop.requestLoopsList();
1020
1018
  },
1021
1019
  newLoop() {
@@ -10,7 +10,7 @@ import { buildHistoryBatch } from './backgroundRouting.js';
10
10
  * @param {Function} deps.scrollToBottom
11
11
  */
12
12
  export function createLoop(deps) {
13
- const { wsSend, scrollToBottom } = deps;
13
+ const { wsSend, scrollToBottom, loadingLoops } = deps;
14
14
 
15
15
  // ── Reactive state ──────────────────────────────────
16
16
 
@@ -96,6 +96,7 @@ export function createLoop(deps) {
96
96
  }
97
97
 
98
98
  function requestLoopsList() {
99
+ if (loadingLoops) loadingLoops.value = true;
99
100
  wsSend({ type: 'list_loops' });
100
101
  }
101
102
 
@@ -16,7 +16,7 @@ const AGENT_COLORS = [
16
16
  * @param {Function} deps.scrollToBottom
17
17
  */
18
18
  export function createTeam(deps) {
19
- const { wsSend, scrollToBottom } = deps;
19
+ const { wsSend, scrollToBottom, loadingTeams } = deps;
20
20
 
21
21
  // ── Reactive state ──
22
22
 
@@ -100,6 +100,7 @@ export function createTeam(deps) {
100
100
  }
101
101
 
102
102
  function requestTeamsList() {
103
+ if (loadingTeams) loadingTeams.value = true;
103
104
  wsSend({ type: 'list_teams' });
104
105
  }
105
106