@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 +1 -1
- package/web/app.js +11 -5
- package/web/css/input.css +1 -1
- package/web/modules/streaming.js +2 -2
package/package.json
CHANGED
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
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
ta
|
|
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
package/web/modules/streaming.js
CHANGED