@wendongfly/myhi 1.3.169 → 1.3.170
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/dist/chat.html +20 -17
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -292,10 +292,11 @@
|
|
|
292
292
|
.fp-list { flex: 1; overflow-y: auto; padding: 0.25rem 0; }
|
|
293
293
|
.fp-item { display: flex; align-items: center; padding: 0.5rem 0.75rem; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; color: var(--text); }
|
|
294
294
|
.fp-item:active { background: var(--surface2); }
|
|
295
|
-
.fp-item .fp-icon { width: 1.2rem; text-align: center; flex-shrink: 0; }
|
|
296
|
-
|
|
297
|
-
.fp-item .fp-
|
|
298
|
-
.fp-item .fp-
|
|
295
|
+
.fp-item .fp-icon { width: 1.2rem; text-align: center; flex-shrink: 0; align-self: flex-start; padding-top: 0.05rem; }
|
|
296
|
+
/* 文件名允许换行显全名(长报告名不再被掐断);动作收成图标省宽度 */
|
|
297
|
+
.fp-item .fp-name { flex: 1; min-width: 0; word-break: break-all; line-height: 1.35; }
|
|
298
|
+
.fp-item .fp-size { color: var(--muted); font-size: 0.7rem; white-space: nowrap; align-self: flex-start; padding-top: 0.05rem; }
|
|
299
|
+
.fp-item .fp-dl { color: var(--blue); font-size: 0.78rem; text-decoration: none; padding: 0.2rem 0.3rem; flex-shrink: 0; align-self: flex-start; }
|
|
299
300
|
.fp-empty { text-align: center; color: var(--muted); padding: 2rem 0.75rem; font-size: 0.85rem; }
|
|
300
301
|
.fp-drop-zone {
|
|
301
302
|
margin: 0.5rem 0.75rem; padding: 1.5rem; border: 2px dashed var(--border); border-radius: 8px;
|
|
@@ -787,14 +788,11 @@
|
|
|
787
788
|
<div class="action-sheet-box" style="max-height:85vh;display:flex;flex-direction:column">
|
|
788
789
|
<div class="action-sheet-title">📥 灵感收件箱 · 草稿</div>
|
|
789
790
|
<div style="font-size:0.68rem;color:var(--muted);padding:0 0.2rem 0.5rem;line-height:1.55">
|
|
790
|
-
|
|
791
|
-
<b>取回</b>=把内容放回消息框并<b>出队删除</b>。每条草稿都<b>记着属于哪个任务</b>,过几天也认得出。草稿只存在本机,没有发给模型。
|
|
792
|
-
<br>勾「<b>自动接力</b>」的草稿会在本轮干完、会话空闲后<b>自动发出</b>(你人不在也跑,按记录先后排队);
|
|
793
|
-
<span style="color:var(--yellow)">默认关</span>,不勾就只能手动取回。被中断或出错收尾的轮次不接力。
|
|
791
|
+
随手记想法:先存这儿,AI 干完后<b>取回</b>发送;勾「<b>自动接力</b>」则干完自动发出。只存本机,细节见各条目按钮。
|
|
794
792
|
</div>
|
|
795
793
|
<!-- 就地新增:不必先在消息框打字再"提取",直接在这儿写 -->
|
|
796
794
|
<div style="border-top:1px solid var(--surface2);padding:0.5rem 0.2rem">
|
|
797
|
-
<textarea id="inbox-new-text" rows="3" spellcheck="false" placeholder="
|
|
795
|
+
<textarea id="inbox-new-text" rows="3" spellcheck="false" placeholder="写下临时想法…(截图可直接 Ctrl+V 粘进来)"
|
|
798
796
|
style="width:100%;box-sizing:border-box;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:0.5rem;font-size:0.82rem;resize:vertical"></textarea>
|
|
799
797
|
<div id="inbox-new-img" style="display:none;align-items:center;gap:0.4rem;margin-top:0.35rem;font-size:0.7rem;color:var(--text2)">
|
|
800
798
|
<span>📷</span><span id="inbox-new-img-name" style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"></span>
|
|
@@ -2914,11 +2912,14 @@
|
|
|
2914
2912
|
_mentionBox.style.display = 'none';
|
|
2915
2913
|
}
|
|
2916
2914
|
|
|
2917
|
-
function mentionRowHTML(
|
|
2915
|
+
function mentionRowHTML(f, i) {
|
|
2916
|
+
const path = f.name;
|
|
2918
2917
|
const cut = path.lastIndexOf('/');
|
|
2919
2918
|
const dir = cut >= 0 ? path.slice(0, cut + 1) : '';
|
|
2920
2919
|
const name = cut >= 0 ? path.slice(cut + 1) : path;
|
|
2921
|
-
|
|
2920
|
+
const ico = f.dir ? '📁' : (isEditableFile(name) ? '📝' : '📄');
|
|
2921
|
+
const hint = f.dir ? '文件夹' : '引用';
|
|
2922
|
+
return `<div class="mi ${i === _mention.idx ? 'on' : ''}" data-i="${i}"><span class="m-ico">${ico}</span><span class="m-dir">${escHtml(dir)}</span><span class="m-name">${escHtml(name)}</span><span class="m-hint">${hint}</span></div>`;
|
|
2922
2923
|
}
|
|
2923
2924
|
|
|
2924
2925
|
function mentionRender() {
|
|
@@ -2956,7 +2957,9 @@
|
|
|
2956
2957
|
mentionSearch(cmdInput.value.slice(t.start + 1, cmdInput.selectionStart ?? cmdInput.value.length));
|
|
2957
2958
|
}
|
|
2958
2959
|
|
|
2959
|
-
function mentionPick(
|
|
2960
|
+
function mentionPick(f) {
|
|
2961
|
+
// 目录带尾斜杠插入(「迁移到 docs/」一眼看出是文件夹),文件带空格结尾
|
|
2962
|
+
const path = f.name + (f.dir ? '/' : '');
|
|
2960
2963
|
const pos = cmdInput.selectionStart ?? cmdInput.value.length;
|
|
2961
2964
|
const before = cmdInput.value.slice(0, _mention.start);
|
|
2962
2965
|
const after = cmdInput.value.slice(pos);
|
|
@@ -3111,16 +3114,16 @@
|
|
|
3111
3114
|
for (const e of entries) {
|
|
3112
3115
|
const rel = fpCurrentPath ? fpCurrentPath + '/' + e.name : e.name;
|
|
3113
3116
|
if (e.isDir) {
|
|
3114
|
-
html += `<div class="fp-item" onclick="fpNav('${escHtml(rel)}')"><span class="fp-icon">📁</span><span class="fp-name">${escHtml(e.name)}</span><span class="fp-dl" onclick="event.stopPropagation();fpRefer('${escAttr(rel)}/')" title="
|
|
3117
|
+
html += `<div class="fp-item" onclick="fpNav('${escHtml(rel)}')"><span class="fp-icon">📁</span><span class="fp-name" title="${escAttr(rel)}">${escHtml(e.name)}</span><span class="fp-dl" onclick="event.stopPropagation();fpRefer('${escAttr(rel)}/')" title="引用:把目录路径插入消息框">@</span></div>`;
|
|
3115
3118
|
} else {
|
|
3116
3119
|
const editable = isEditableFile(e.name);
|
|
3117
3120
|
html += `<div class="fp-item" ${editable ? `style="cursor:pointer" onclick="openFileEditor('${escAttr(rel)}')" title="点击在线编辑"` : ''}>
|
|
3118
3121
|
<span class="fp-icon">${editable ? '📝' : '📄'}</span>
|
|
3119
|
-
<span class="fp-name">${escHtml(e.name)}</span>
|
|
3122
|
+
<span class="fp-name" title="${escAttr(rel)}">${escHtml(e.name)}</span>
|
|
3120
3123
|
<span class="fp-size">${fpFormatSize(e.size)}</span>
|
|
3121
|
-
<span class="fp-dl" onclick="event.stopPropagation();fpRefer('${escAttr(rel)}')" title="
|
|
3122
|
-
${editable ? `<span class="fp-dl" onclick="event.stopPropagation();openFileEditor('${escAttr(rel)}')" title="在线编辑"
|
|
3123
|
-
<a class="fp-dl" href="/api/files/${SESSION_ID}/download?path=${encodeURIComponent(rel)}" download title="下载" onclick="event.stopPropagation()"
|
|
3124
|
+
<span class="fp-dl" onclick="event.stopPropagation();fpRefer('${escAttr(rel)}')" title="引用:把文件路径插入消息框,让 AI 读这个文件">@</span>
|
|
3125
|
+
${editable ? `<span class="fp-dl" onclick="event.stopPropagation();openFileEditor('${escAttr(rel)}')" title="在线编辑">✏️</span>` : ''}
|
|
3126
|
+
<a class="fp-dl" href="/api/files/${SESSION_ID}/download?path=${encodeURIComponent(rel)}" download title="下载" onclick="event.stopPropagation()">⬇</a>
|
|
3124
3127
|
</div>`;
|
|
3125
3128
|
}
|
|
3126
3129
|
}
|