@agent-link/server 0.1.175 → 0.1.177

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.175",
3
+ "version": "0.1.177",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -439,18 +439,24 @@ const App = {
439
439
  });
440
440
  const filteredSlashCommands = computed(() => {
441
441
  if (slashMenuOpen.value && !inputText.value.startsWith('/')) return SLASH_COMMANDS;
442
+ if (!inputText.value.startsWith('/')) return SLASH_COMMANDS;
442
443
  const txt = inputText.value.toLowerCase();
443
444
  return SLASH_COMMANDS.filter(c => c.command.startsWith(txt));
444
445
  });
445
446
  watch(filteredSlashCommands, () => { slashMenuIndex.value = 0; });
446
447
 
447
448
  // ── Auto-resize textarea ──
449
+ let _autoResizeRaf = null;
448
450
  function autoResize() {
449
- const ta = inputRef.value;
450
- if (ta) {
451
- ta.style.height = 'auto';
452
- ta.style.height = Math.min(ta.scrollHeight, 160) + 'px';
453
- }
451
+ if (_autoResizeRaf) return;
452
+ _autoResizeRaf = requestAnimationFrame(() => {
453
+ _autoResizeRaf = null;
454
+ const ta = inputRef.value;
455
+ if (ta) {
456
+ ta.style.height = 'auto';
457
+ ta.style.height = Math.min(ta.scrollHeight, 160) + 'px';
458
+ }
459
+ });
454
460
  }
455
461
 
456
462
  // ── Send message ──
package/web/css/input.css CHANGED
@@ -50,7 +50,7 @@
50
50
  border-radius: 16px;
51
51
  padding: 0.5rem;
52
52
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
53
- transition: border-color 0.2s, box-shadow 0.2s;
53
+ transition: border-color 0.2s;
54
54
  }
55
55
 
56
56
  .input-card:focus-within {
@@ -1,7 +1,7 @@
1
1
  // ── Progressive text streaming / reveal animation ────────────────────────────
2
2
 
3
- const CHARS_PER_TICK = 5;
4
- const TICK_MS = 16;
3
+ const CHARS_PER_TICK = 20;
4
+ const TICK_MS = 50;
5
5
 
6
6
  /**
7
7
  * Creates a streaming text reveal controller.