@ai-ecoverse/slicc-spectrum 1.84.0 → 1.84.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.
package/README.md CHANGED
@@ -319,6 +319,7 @@ The message box.
319
319
  <kbd>Enter</kbd> sends, or steers a running reply: the message joins after the current tool round, without interrupting; <kbd>Ctrl</kbd>/<kbd>⌘</kbd>+<kbd>Enter</kbd> queues a follow-up that runs after the reply and can be withdrawn; <kbd>Shift</kbd>+<kbd>Enter</kbd> adds a line; <kbd>Tab</kbd> takes the suggested follow-up; <kbd>↑</kbd>/<kbd>↓</kbd> at the start or end walk this agent's history; <kbd>Esc</kbd> stops.
320
320
  `/` completes commands (`/clear`, `/compact`, `/model`, `/thinking`, `/scoop`, `/stop`, `/freeze` when the port can freeze, `/theme`) and their arguments, `@` mentions agents and files.
321
321
  Attach from the computer, from SLICC's files, a browser screenshot or a shared secret (with a `vault.put`, the popup takes the value too, checks it like Settings › Secrets, puts it in the vault and attaches the name, showing errors inline and clearing the field; an empty value shares a name the vault already has, and a new value for one asks before it replaces it; while the vault is away (`availability()` `connecting` or `waiting`) or locked, it takes no value and says so; without one, it attaches the name and says to add the value in Settings › Secrets), or paste and drop files (25 MB each).
322
+ <kbd>Esc</kbd> in the `+` menu closes it, from any item, and puts focus back on `+`; it goes no further, so it doesn't also stop a reply.
322
323
  Queued messages wait above it, to send now or drop; a steer the agent still holds (`mode: 'steer'`, `li.queued[data-mode=steer]`) reads "Sends at the next step" and can only be dropped.
323
324
  Model and thinking pickers.
324
325
  Where the browser has speech recognition, the `+` menu ends with **Enable push to talk** (`settings.pushToTalk`, optional and off by default), a checkable item (`menuitemcheckbox`, `aria-checked`) described as "Hold Alt+M to dictate", which stays open when toggled; Settings has the same switch.
package/dist/slicc-ui.js CHANGED
@@ -39665,6 +39665,12 @@ ${this.value}` : text2;
39665
39665
  );
39666
39666
  }
39667
39667
  }
39668
+ #menuKey(event2) {
39669
+ if (event2.key !== "Escape") return;
39670
+ event2.preventDefault();
39671
+ event2.stopPropagation();
39672
+ event2.currentTarget.open = false;
39673
+ }
39668
39674
  #toggleTalk = (event2) => {
39669
39675
  event2.stopPropagation();
39670
39676
  const settings = this.model?.settings;
@@ -39897,7 +39903,7 @@ ${this.value}` : text2;
39897
39903
  >
39898
39904
  ${this.attachments.map((attachment2) => this.#attachment(attachment2))}
39899
39905
  </swc-prompt-field>
39900
- <swc-popover placement="top-start" accessible-label="Add to the message" @swc-after-open=${() => this.renderRoot.querySelector("sp-menu")?.focus()}>
39906
+ <swc-popover placement="top-start" accessible-label="Add to the message" @keydown=${this.#menuKey} @swc-after-open=${() => this.renderRoot.querySelector("sp-menu")?.focus()}>
39901
39907
  <sp-menu label="Add to the message" @change=${this.#add}>
39902
39908
  <sp-menu-item value="upload">Upload from this computer</sp-menu-item>
39903
39909
  <sp-menu-item value="screenshot">Take a screenshot of the browser tab</sp-menu-item>