pcm-agents 0.6.11 → 0.6.12
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/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js +2 -2
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +3 -5
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +1 -3
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +1 -3
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/collection/utils/utils.js +0 -22
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/{p-FjtoYPVY.js → p-C5ppSXO0.js} +4 -4
- package/dist/components/{p-FjtoYPVY.js.map → p-C5ppSXO0.js.map} +1 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js +1 -1
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-htws-modal.js +1 -1
- package/dist/components/pcm-hyzj-modal.js +1 -1
- package/dist/components/pcm-jd-modal.js +1 -1
- package/dist/components/pcm-jlpp-modal.js +1 -1
- package/dist/components/pcm-mnct-modal.js +1 -1
- package/dist/components/pcm-mnms-modal.js +1 -1
- package/dist/components/pcm-mnms-video-modal.js +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +1 -1
- package/dist/components/pcm-msbg-modal.js +1 -1
- package/dist/components/pcm-qgqjl-modal.js +1 -1
- package/dist/components/pcm-zygh-modal.js +1 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js +2 -2
- package/dist/pcm-agents/p-c6ea23d0.entry.js +2 -0
- package/dist/pcm-agents/{p-9e6efc2d.entry.js.map → p-c6ea23d0.entry.js.map} +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/types/utils/utils.d.ts +0 -8
- package/package.json +1 -1
- package/dist/pcm-agents/p-9e6efc2d.entry.js +0 -2
|
@@ -3533,7 +3533,7 @@ const ChatAPPModal = class {
|
|
|
3533
3533
|
this.videoRef = null;
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
//
|
|
3536
|
+
// 修改音视频转文字方法
|
|
3537
3537
|
async convertAudioToText(cosKey) {
|
|
3538
3538
|
try {
|
|
3539
3539
|
const result = await index$1.sendHttpRequest({
|
|
@@ -4195,7 +4195,7 @@ const ChatAPPModal = class {
|
|
|
4195
4195
|
this.isDrawerOpen = false;
|
|
4196
4196
|
this.previewUrl = '';
|
|
4197
4197
|
this.previewContent = '';
|
|
4198
|
-
} }, this.previewContentType === 'file' && this.previewUrl && (index.h("div", { class: "file-preview-container" }, index.h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", height: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } }))), this.previewContentType === 'markdown' && this.previewContent && (index.h("div", { class: "markdown-preview-container markdown-body", innerHTML: marked(this.previewContent) })), this.previewContentType === 'text' && this.previewContent && (index.h("div", { class: "text-preview-container" }, index.h("pre",
|
|
4198
|
+
} }, this.previewContentType === 'file' && this.previewUrl && (index.h("div", { class: "file-preview-container" }, index.h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", height: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } }))), this.previewContentType === 'markdown' && this.previewContent && (index.h("div", { class: "markdown-preview-container markdown-body", innerHTML: marked(this.previewContent) })), this.previewContentType === 'text' && this.previewContent && (index.h("div", { class: "text-preview-container" }, index.h("pre", { style: { whiteSpace: 'pre-wrap', wordWrap: 'break-word' } }, this.previewContent)))), index.h("pcm-drawer", { isOpen: this.isHistoryDrawerOpen, drawerTitle: "\u5386\u53F2\u4F1A\u8BDD", width: "400px", onClosed: () => {
|
|
4199
4199
|
this.isHistoryDrawerOpen = false;
|
|
4200
4200
|
} }, index.h("div", { class: "history-drawer-content" }, index.h("div", { class: "conversation-list" }, this.isLoadingConversations ? (index.h("div", { class: "loading-conversations" }, index.h("div", { class: "loading-spinner-small" }), index.h("p", null, "\u52A0\u8F7D\u4E2D..."))) : this.historyConversations.length === 0 ? (index.h("div", { class: "empty-conversations" }, index.h("p", null, "\u6682\u65E0\u5386\u53F2\u4F1A\u8BDD"))) : (this.historyConversations.map((conversation) => (index.h("div", { key: conversation.id, class: {
|
|
4201
4201
|
'conversation-item': true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { sendSSERequest, sendHttpRequest, uploadFileToBackend, fetchAgentInfo, synthesizeAudio } from "../../utils/utils";
|
|
3
3
|
import { marked } from "marked";
|
|
4
4
|
import { ErrorEventBus } from "../../utils/error-event";
|
|
5
5
|
import { authStore } from "../../../store/auth.store"; // 导入 authStore
|
|
@@ -389,8 +389,6 @@ export class ChatAPPModal {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
if (data.event === 'message') {
|
|
392
|
-
const inputMessage = { message: message };
|
|
393
|
-
convertWorkflowStreamNodeToMessageRound('message', inputMessage, data);
|
|
394
392
|
if (data.event === 'agent_message' || data.event === 'message') {
|
|
395
393
|
if (data.answer) {
|
|
396
394
|
answer += data.answer;
|
|
@@ -962,7 +960,7 @@ export class ChatAPPModal {
|
|
|
962
960
|
this.videoRef = null;
|
|
963
961
|
}
|
|
964
962
|
}
|
|
965
|
-
//
|
|
963
|
+
// 修改音视频转文字方法
|
|
966
964
|
async convertAudioToText(cosKey) {
|
|
967
965
|
try {
|
|
968
966
|
const result = await sendHttpRequest({
|
|
@@ -1624,7 +1622,7 @@ export class ChatAPPModal {
|
|
|
1624
1622
|
this.isDrawerOpen = false;
|
|
1625
1623
|
this.previewUrl = '';
|
|
1626
1624
|
this.previewContent = '';
|
|
1627
|
-
} }, this.previewContentType === 'file' && this.previewUrl && (h("div", { class: "file-preview-container" }, h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", height: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } }))), this.previewContentType === 'markdown' && this.previewContent && (h("div", { class: "markdown-preview-container markdown-body", innerHTML: marked(this.previewContent) })), this.previewContentType === 'text' && this.previewContent && (h("div", { class: "text-preview-container" }, h("pre",
|
|
1625
|
+
} }, this.previewContentType === 'file' && this.previewUrl && (h("div", { class: "file-preview-container" }, h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", height: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } }))), this.previewContentType === 'markdown' && this.previewContent && (h("div", { class: "markdown-preview-container markdown-body", innerHTML: marked(this.previewContent) })), this.previewContentType === 'text' && this.previewContent && (h("div", { class: "text-preview-container" }, h("pre", { style: { whiteSpace: 'pre-wrap', wordWrap: 'break-word' } }, this.previewContent)))), h("pcm-drawer", { isOpen: this.isHistoryDrawerOpen, drawerTitle: "\u5386\u53F2\u4F1A\u8BDD", width: "400px", onClosed: () => {
|
|
1628
1626
|
this.isHistoryDrawerOpen = false;
|
|
1629
1627
|
} }, h("div", { class: "history-drawer-content" }, h("div", { class: "conversation-list" }, this.isLoadingConversations ? (h("div", { class: "loading-conversations" }, h("div", { class: "loading-spinner-small" }), h("p", null, "\u52A0\u8F7D\u4E2D..."))) : this.historyConversations.length === 0 ? (h("div", { class: "empty-conversations" }, h("p", null, "\u6682\u65E0\u5386\u53F2\u4F1A\u8BDD"))) : (this.historyConversations.map((conversation) => (h("div", { key: conversation.id, class: {
|
|
1630
1628
|
'conversation-item': true,
|