@wendongfly/myhi 1.0.71 → 1.0.72
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -1064,14 +1064,14 @@
|
|
|
1064
1064
|
break;
|
|
1065
1065
|
case 'control_request':
|
|
1066
1066
|
removeThinking();
|
|
1067
|
-
if (msg.request
|
|
1067
|
+
if (msg.request) {
|
|
1068
1068
|
const toolName = msg.request.tool_name || '未知工具';
|
|
1069
1069
|
const input = msg.request.input || {};
|
|
1070
1070
|
const detail = toolName === 'Bash' ? (input.command || JSON.stringify(input))
|
|
1071
1071
|
: toolName === 'Edit' ? `${input.file_path || ''}`
|
|
1072
1072
|
: toolName === 'Write' ? `${input.file_path || ''}`
|
|
1073
1073
|
: JSON.stringify(input, null, 2);
|
|
1074
|
-
const reqId = msg.request_id;
|
|
1074
|
+
const reqId = msg.request_id || msg.request?.request_id || msg.uuid;
|
|
1075
1075
|
const el = document.createElement('div');
|
|
1076
1076
|
el.className = 'msg msg-permission';
|
|
1077
1077
|
el.innerHTML = `<div class="perm-title">${escHtml(toolName)} 请求权限</div><div class="perm-detail">${escHtml(detail)}</div>
|