@wendongfly/myhi 1.0.107 → 1.0.108
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 +13 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -283,8 +283,8 @@
|
|
|
283
283
|
</div>
|
|
284
284
|
<div id="sk-claude-agent" style="display:none">
|
|
285
285
|
<button class="sk sk-claude" onclick="openModelSheet()">模型</button>
|
|
286
|
-
<button class="sk sk-claude" onclick="
|
|
287
|
-
<button class="sk sk-claude" onclick="
|
|
286
|
+
<button class="sk sk-claude" onclick="doSlashCmd('/plan')">计划</button>
|
|
287
|
+
<button class="sk sk-claude" onclick="doSlashCmd('/compact')">压缩</button>
|
|
288
288
|
<button class="sk sk-claude" onclick="openResumeSheet()">恢复</button>
|
|
289
289
|
<button class="sk sk-claude" onclick="doClear()">清除</button>
|
|
290
290
|
<button class="sk sk-claude" onclick="doRename()">命名</button>
|
|
@@ -1470,6 +1470,17 @@
|
|
|
1470
1470
|
};
|
|
1471
1471
|
|
|
1472
1472
|
// ── 会话命名 ──────────────────────────────────
|
|
1473
|
+
window.doSlashCmd = function(cmd) {
|
|
1474
|
+
const hints = { '/plan': '输入计划描述(可选)', '/compact': '输入压缩提示(可选)' };
|
|
1475
|
+
const input = prompt(hints[cmd] || cmd);
|
|
1476
|
+
if (input === null) return; // 取消
|
|
1477
|
+
const prompt_text = input.trim() ? `${cmd} ${input.trim()}` : cmd;
|
|
1478
|
+
if (!isController && canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID });
|
|
1479
|
+
socket.emit('agent:query', { prompt: prompt_text });
|
|
1480
|
+
addInputMessage(prompt_text);
|
|
1481
|
+
showThinking();
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1473
1484
|
window.doRename = function() {
|
|
1474
1485
|
const current = document.getElementById('session-title').textContent;
|
|
1475
1486
|
const newName = prompt('输入新名称', current);
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"1.0.
|
|
1
|
+
{"type":"module","version":"1.0.108"}
|
package/package.json
CHANGED