@nevescloud/pip 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pip-core.esm.js +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevescloud/pip",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Floating assistant bubble + panel + chat runtime. ESM, no build.",
5
5
  "type": "module",
6
6
  "main": "pip-core.esm.js",
package/pip-core.esm.js CHANGED
@@ -1645,11 +1645,15 @@ export function createPip(opts = {}) {
1645
1645
  }
1646
1646
  function dispatchBuiltinSlash(cmd) {
1647
1647
  if (cmd === "help" || cmd === "?") {
1648
- const lines = [];
1649
- for (const s of _slashCommands.values()) lines.push(`- \`/${s.name}\` ${s.description || ""}`);
1650
- lines.push("- `/clear` clear chat history");
1651
- lines.push("- `/help` list commands");
1652
- return { reply: lines.join("\n") };
1648
+ // The slash autocomplete dropdown already lists every command with
1649
+ // its description /help duplicating that as a chat turn was visual
1650
+ // noise and history clutter. Reopen the dropdown in cmd-name mode
1651
+ // instead, same surface a user gets by typing `/`.
1652
+ input.value = "/";
1653
+ input.setSelectionRange(1, 1);
1654
+ input.focus();
1655
+ updateSlashSuggest();
1656
+ return { clearedUI: true };
1653
1657
  }
1654
1658
  if (cmd === "clear") {
1655
1659
  history.length = 0;