@wendongfly/myhi 1.0.111 → 1.0.112
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 +4 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -1505,6 +1505,10 @@
|
|
|
1505
1505
|
if (!_slashCmd) return;
|
|
1506
1506
|
const input = document.getElementById('slash-input').value.trim();
|
|
1507
1507
|
const prompt_text = input ? `${_slashCmd} ${input}` : _slashCmd;
|
|
1508
|
+
// /rename 同时更新 myhi 会话标题
|
|
1509
|
+
if (_slashCmd === '/rename' && input) {
|
|
1510
|
+
socket.emit('rename', { sessionId: SESSION_ID, title: input });
|
|
1511
|
+
}
|
|
1508
1512
|
closeSlashSheet();
|
|
1509
1513
|
if (!isController && canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID });
|
|
1510
1514
|
socket.emit('agent:query', { prompt: prompt_text });
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"1.0.
|
|
1
|
+
{"type":"module","version":"1.0.112"}
|
package/package.json
CHANGED