@lethevimlet/sshift 1.5.2 → 1.6.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.
@@ -322,6 +322,9 @@
322
322
  <button class="btn btn-sm" id="specialKeysBtn" title="Special Keys">
323
323
  <i class="fas fa-keyboard"></i>
324
324
  </button>
325
+ <button class="btn btn-sm" id="speechToTextBtn" title="Speech to Text">
326
+ <i class="fas fa-microphone"></i>
327
+ </button>
325
328
  </div>
326
329
  </div>
327
330
 
@@ -698,6 +701,43 @@
698
701
  </div>
699
702
  </div>
700
703
 
704
+ <!-- Speech-to-Text Modal -->
705
+ <div class="modal" id="speechToTextModal">
706
+ <div class="modal-content modal-md">
707
+ <div class="modal-header">
708
+ <h2><i class="fas fa-microphone"></i> Speech to Text</h2>
709
+ <button class="modal-close" id="closeSpeechToTextModal" title="Close">
710
+ <i class="fas fa-times"></i>
711
+ </button>
712
+ </div>
713
+ <div class="modal-body speech-to-text-body">
714
+ <div class="speech-to-text-controls">
715
+ <button class="btn btn-sm stt-record-btn" id="sttRecordBtn" title="Start / Pause / Resume recording">
716
+ <i class="fas fa-microphone"></i>
717
+ <span class="stt-btn-label">Record</span>
718
+ </button>
719
+ <button class="btn btn-sm stt-wand-btn" id="sttWandBtn" title="Process with AI wand">
720
+ <i class="fas fa-magic"></i>
721
+ <span class="stt-btn-label">Wand</span>
722
+ </button>
723
+ <span class="stt-status" id="sttStatus" hidden>
724
+ <i class="fas fa-spinner fa-spin"></i>
725
+ <span class="stt-status-label">Transcribing…</span>
726
+ </span>
727
+ </div>
728
+ <textarea class="speech-to-text-transcript" id="sttTranscript" placeholder="Transcribed speech will appear here..." rows="6"></textarea>
729
+ </div>
730
+ <div class="modal-footer">
731
+ <button class="btn btn-secondary" id="sttCancelBtn" title="Cancel">
732
+ <i class="fas fa-times"></i> Cancel
733
+ </button>
734
+ <button class="btn btn-primary" id="sttSendBtn" title="Send text to terminal">
735
+ <i class="fas fa-paper-plane"></i> Send
736
+ </button>
737
+ </div>
738
+ </div>
739
+ </div>
740
+
701
741
  <!-- SFTP Browser Modal -->
702
742
  <div class="modal" id="sftpModal">
703
743
  <div class="modal-content modal-lg">
@@ -763,6 +803,9 @@
763
803
  <button class="settings-nav-item" data-category="system">
764
804
  <i class="fas fa-server"></i> <span>System</span>
765
805
  </button>
806
+ <button class="settings-nav-item" data-category="speech-ai">
807
+ <i class="fas fa-microphone"></i> <span>Speech &amp; AI</span>
808
+ </button>
766
809
  <button class="settings-nav-item" data-category="plugins">
767
810
  <i class="fas fa-puzzle-piece"></i> <span>Plugins</span>
768
811
  </button>
@@ -775,6 +818,7 @@
775
818
  <option value="mobile">Mobile</option>
776
819
  <option value="security">Security</option>
777
820
  <option value="system">System</option>
821
+ <option value="speech-ai">Speech &amp; AI</option>
778
822
  <option value="plugins">Plugins</option>
779
823
  </select>
780
824
  <div class="settings-category" id="settings-category-sessions">
@@ -959,6 +1003,118 @@
959
1003
  </div>
960
1004
  </div>
961
1005
 
1006
+ <div class="settings-category" id="settings-category-speech-ai" style="display:none;">
1007
+ <h3 class="settings-category-title"><i class="fas fa-microphone"></i> Speech &amp; AI</h3>
1008
+
1009
+ <!-- Speech-to-Text (STT) Endpoint -->
1010
+ <div class="setting-subgroup">
1011
+ <h4 class="setting-subgroup-title">
1012
+ <i class="fas fa-microphone-alt"></i> Speech-to-Text Endpoint
1013
+ </h4>
1014
+ <div class="setting-item">
1015
+ <label class="setting-label">
1016
+ <i class="fas fa-link"></i> STT Endpoint URL
1017
+ </label>
1018
+ <div class="setting-description">
1019
+ The HTTPS endpoint that accepts an audio stream and returns transcribed text (e.g. WebSocket or HTTP streaming endpoint).
1020
+ </div>
1021
+ <div class="setting-control">
1022
+ <input type="url" id="sttEndpoint" class="setting-input" placeholder="https://api.example.com/stt/v1/stream">
1023
+ </div>
1024
+ </div>
1025
+ <div class="setting-item">
1026
+ <label class="setting-label">
1027
+ <i class="fas fa-key"></i> STT Auth Key
1028
+ </label>
1029
+ <div class="setting-description">
1030
+ Bearer token / API key sent in the Authorization header when calling the STT endpoint. Stored locally on this device only.
1031
+ </div>
1032
+ <div class="setting-control password-input">
1033
+ <input type="password" id="sttAuthKey" class="setting-input" placeholder="sk-...">
1034
+ <button type="button" class="password-toggle" id="toggleSttAuthKey" title="Show/Hide">
1035
+ <i class="fas fa-eye"></i>
1036
+ </button>
1037
+ </div>
1038
+ </div>
1039
+ <div class="setting-item">
1040
+ <label class="setting-label">
1041
+ <i class="fas fa-language"></i> STT Language
1042
+ </label>
1043
+ <div class="setting-description">
1044
+ Optional language/locale hint (e.g. <code>en-US</code>, <code>es-ES</code>). Leave blank for auto-detect.
1045
+ </div>
1046
+ <div class="setting-control">
1047
+ <input type="text" id="sttLanguage" class="setting-input" placeholder="en-US">
1048
+ </div>
1049
+ </div>
1050
+ </div>
1051
+
1052
+ <!-- LLM Endpoint (OpenAI-compatible, used by Wand) -->
1053
+ <div class="setting-subgroup">
1054
+ <h4 class="setting-subgroup-title">
1055
+ <i class="fas fa-magic"></i> LLM Endpoint (Wand)
1056
+ </h4>
1057
+ <div class="setting-item">
1058
+ <label class="setting-label">
1059
+ <i class="fas fa-link"></i> LLM Endpoint URL
1060
+ </label>
1061
+ <div class="setting-description">
1062
+ OpenAI-compatible chat completions endpoint (e.g. <code>https://api.openai.com/v1/chat/completions</code>). Used by the Wand button to clean up transcribed text.
1063
+ </div>
1064
+ <div class="setting-control">
1065
+ <input type="url" id="llmEndpoint" class="setting-input" placeholder="https://api.openai.com/v1/chat/completions">
1066
+ </div>
1067
+ </div>
1068
+ <div class="setting-item">
1069
+ <label class="setting-label">
1070
+ <i class="fas fa-key"></i> LLM Auth Key
1071
+ </label>
1072
+ <div class="setting-description">
1073
+ Bearer token / API key sent in the Authorization header (e.g. <code>Bearer sk-...</code>). Stored locally on this device only.
1074
+ </div>
1075
+ <div class="setting-control password-input">
1076
+ <input type="password" id="llmAuthKey" class="setting-input" placeholder="sk-...">
1077
+ <button type="button" class="password-toggle" id="toggleLlmAuthKey" title="Show/Hide">
1078
+ <i class="fas fa-eye"></i>
1079
+ </button>
1080
+ </div>
1081
+ </div>
1082
+ <div class="setting-item">
1083
+ <label class="setting-label">
1084
+ <i class="fas fa-cube"></i> LLM Model
1085
+ </label>
1086
+ <div class="setting-description">
1087
+ Model name to request (e.g. <code>gpt-4o-mini</code>, <code>llama-3.1-8b-instruct</code>).
1088
+ </div>
1089
+ <div class="setting-control">
1090
+ <input type="text" id="llmModel" class="setting-input" placeholder="gpt-4o-mini">
1091
+ </div>
1092
+ </div>
1093
+ </div>
1094
+
1095
+ <!-- Wand System Prompt -->
1096
+ <div class="setting-subgroup">
1097
+ <h4 class="setting-subgroup-title">
1098
+ <i class="fas fa-wand-magic-sparkles"></i> Wand System Prompt
1099
+ </h4>
1100
+ <div class="setting-item">
1101
+ <label class="setting-label">
1102
+ <i class="fas fa-comment-dots"></i> System Prompt
1103
+ </label>
1104
+ <div class="setting-description">
1105
+ Instructions sent to the LLM when the Wand button is pressed. The transcribed speech is passed as the user message; the LLM should return a clean, ready-to-send version of the same intent.
1106
+ </div>
1107
+ <div class="setting-control stt-prompt-control">
1108
+ <textarea id="wandSystemPrompt" class="setting-input stt-prompt-textarea" rows="6"
1109
+ placeholder="You are an assistant that cleans up transcribed speech for terminal input. Rewrite the user's speech as a clear, well-punctuated, ready-to-send command or text. Fix typos, remove filler words, hesitations, stutters and false starts, and preserve the user's intent exactly. Do not add quotes, explanations, or markdown. Output only the corrected text."></textarea>
1110
+ <button type="button" class="btn btn-sm btn-secondary stt-prompt-reset" id="resetWandPromptBtn" title="Reset to default prompt">
1111
+ <i class="fas fa-rotate-left"></i> Reset
1112
+ </button>
1113
+ </div>
1114
+ </div>
1115
+ </div>
1116
+ </div>
1117
+
962
1118
  <div class="settings-category" id="settings-category-plugins" style="display:none;">
963
1119
  <h3 class="settings-category-title"><i class="fas fa-puzzle-piece"></i> Plugins</h3>
964
1120
  <div id="pluginsList" class="plugins-list">