muuuuse 3.3.5 → 3.3.6

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/src/runtime.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muuuuse",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "🔌Muuuuse arms regular terminals and relays assistant output across signed terminal links.",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/src/runtime.js CHANGED
@@ -42,6 +42,7 @@ const {
42
42
  // A short settle delay keeps interactive CLIs from treating submit as another newline.
43
43
  const TYPE_CHUNK_DELAY_MS = 45;
44
44
  const TYPE_CHUNK_SIZE = 24;
45
+ const GEMINI_PASTE_SETTLE_MS = 200;
45
46
  const BRACKETED_PASTE_START = "\u001b[200~";
46
47
  const BRACKETED_PASTE_END = "\u001b[201~";
47
48
  const GEMINI_SHARED_ENTRY_NAMES = new Set([
@@ -761,7 +762,7 @@ async function sendTextAndEnter(child, text, shouldAbort = () => false) {
761
762
  const payload = normalizeRelayPayloadForTyping(text);
762
763
 
763
764
  if (payload.length > 0) {
764
- if (agentType === "codex") {
765
+ if (agentType === "codex" || agentType === "gemini") {
765
766
  if (shouldStop() || !child) {
766
767
  return false;
767
768
  }
@@ -771,6 +772,10 @@ async function sendTextAndEnter(child, text, shouldAbort = () => false) {
771
772
  } catch {
772
773
  return false;
773
774
  }
775
+
776
+ if (agentType === "gemini") {
777
+ await sleep(GEMINI_PASTE_SETTLE_MS);
778
+ }
774
779
  } else {
775
780
  for (const chunk of chunkRelayPayloadForTyping(payload)) {
776
781
  if (shouldStop() || !child) {