@wendongfly/myhi 1.3.69 → 1.3.70

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/dist/chat.html +14 -4
  2. package/package.json +1 -1
package/dist/chat.html CHANGED
@@ -604,10 +604,14 @@
604
604
  </button>
605
605
  <div id="va-status" style="text-align:center;font-size:0.78rem;color:#8b949e;min-height:1.3em;margin-bottom:0.2rem"></div>
606
606
  <div style="display:flex;gap:0.4rem;padding:0 0.2rem">
607
+ <button id="va-direct-btn" class="action-sheet-cancel" onclick="vaDirectSend()"
608
+ style="flex:1;background:#238636;color:#fff;font-weight:600;margin-bottom:0">直接发送</button>
607
609
  <button id="va-organize-btn" class="action-sheet-cancel" onclick="vaOrganize()"
608
610
  style="flex:1;background:#7c3aed;color:#fff;font-weight:600;margin-bottom:0">整理成需求</button>
611
+ </div>
612
+ <div id="va-result-action" style="display:none;padding:0 0.2rem">
609
613
  <button id="va-send-btn" class="action-sheet-cancel" onclick="vaSend()"
610
- style="flex:1;background:#1f6feb;color:#fff;font-weight:600;margin-bottom:0;display:none">发送到对话</button>
614
+ style="background:#1f6feb;color:#fff;font-weight:600;margin-bottom:0">发送到对话</button>
611
615
  </div>
612
616
  <button class="action-sheet-cancel" onclick="closeVaSheet()" style="margin-top:0.4rem">关闭</button>
613
617
  </div>
@@ -3217,11 +3221,17 @@
3217
3221
  window.vaClear = function() {
3218
3222
  _vaLines = [];
3219
3223
  document.getElementById('va-result-wrap').style.display = 'none';
3220
- document.getElementById('va-send-btn').style.display = 'none';
3221
- document.getElementById('va-organize-btn').style.display = '';
3224
+ document.getElementById('va-result-action').style.display = 'none';
3222
3225
  _vaRender();
3223
3226
  _vaSetStatus('');
3224
3227
  };
3228
+
3229
+ window.vaDirectSend = function() {
3230
+ if (_vaLines.length === 0) { _vaSetStatus('请先录入语音内容'); return; }
3231
+ cmdInput.value = _vaLines.join('\n');
3232
+ window.closeVaSheet();
3233
+ if (!_isTouchDevice()) cmdInput.focus();
3234
+ };
3225
3235
  window.vaOrganize = async function() {
3226
3236
  if (_vaLines.length === 0) { _vaSetStatus('请先录入语音内容'); return; }
3227
3237
  const btn = document.getElementById('va-organize-btn');
@@ -3237,7 +3247,7 @@
3237
3247
  if (data.requirement) {
3238
3248
  document.getElementById('va-result').value = data.requirement;
3239
3249
  document.getElementById('va-result-wrap').style.display = '';
3240
- document.getElementById('va-send-btn').style.display = '';
3250
+ document.getElementById('va-result-action').style.display = '';
3241
3251
  _vaSetStatus('整理完成,可编辑后点"发送到对话"');
3242
3252
  } else {
3243
3253
  _vaSetStatus('整理失败: ' + (data.error || '未知错误'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wendongfly/myhi",
3
- "version": "1.3.69",
3
+ "version": "1.3.70",
4
4
  "description": "Web-based terminal sharing with chat UI — control your terminal from phone via LAN/Tailscale",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",