pcm-agents 0.3.2 → 0.3.4
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/LICENSE +21 -21
- package/dist/cjs/{index-BFPEnLbS.js → index-RmBfqEV7.js} +4 -3
- package/dist/cjs/index-RmBfqEV7.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js.map +1 -1
- package/dist/cjs/my-component.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-agents.cjs.js +1 -1
- package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js +68 -61
- package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-chat-modal.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/my-component/my-component.css +3 -3
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +5 -6
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +26 -2
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +4 -4
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.js → pcm-jlpp-modal/pcm-jlpp-modal.js} +21 -21
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -0
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +16 -16
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js +4 -4
- package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +22 -18
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
- package/dist/collection/global/global.css +31 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/utils.js +2 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/my-component.js.map +1 -1
- package/dist/components/{p-LkDC0SN2.js → p-CBMLAbWp.js} +10 -5
- package/dist/components/p-CBMLAbWp.js.map +1 -0
- package/dist/components/{p-BctfuDvG.js → p-VU0niiMk.js} +7 -8
- package/dist/components/p-VU0niiMk.js.map +1 -0
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-chat-message.js +1 -1
- package/dist/components/pcm-chat-modal.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +4 -4
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/{pcm-jlpx-modal.d.ts → pcm-jlpp-modal.d.ts} +4 -4
- package/dist/components/{pcm-jlpx-modal.js → pcm-jlpp-modal.js} +27 -27
- package/dist/components/pcm-jlpp-modal.js.map +1 -0
- package/dist/components/pcm-mnms-modal.js +16 -16
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-video-chat-modal.js +4 -4
- package/dist/components/pcm-video-chat-modal.js.map +1 -1
- package/dist/components/pcm-zygh-modal.js +20 -16
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/esm/{index-nVjZGfA8.js → index-CDtyzi83.js} +4 -3
- package/dist/esm/index-CDtyzi83.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/my-component.entry.js +2 -2
- package/dist/esm/my-component.entry.js.map +1 -1
- package/dist/esm/pcm-agents.js +1 -1
- package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.js.map +1 -0
- package/dist/esm/pcm-app-chat-modal_7.entry.js +68 -61
- package/dist/esm/pcm-app-chat-modal_7.entry.js.map +1 -1
- package/dist/esm/pcm-chat-modal.entry.js +1 -1
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/my-component.entry.esm.js.map +1 -1
- package/dist/pcm-agents/p-11c829b3.entry.js +2 -0
- package/dist/pcm-agents/p-11c829b3.entry.js.map +1 -0
- package/dist/pcm-agents/{p-f3ca99b4.entry.js → p-430f9a9f.entry.js} +2 -2
- package/dist/pcm-agents/p-CDtyzi83.js +2 -0
- package/dist/pcm-agents/p-CDtyzi83.js.map +1 -0
- package/dist/pcm-agents/p-a0826602.entry.js +2 -0
- package/dist/pcm-agents/p-a0826602.entry.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.esm.js.map +1 -0
- package/dist/types/components/pcm-app-chat-modal/pcm-app-chat-modal.d.ts +1 -1
- package/dist/types/components/pcm-chat-message/pcm-chat-message.d.ts +4 -0
- package/dist/types/components/pcm-hr-chat-modal/pcm-hr-chat-modal.d.ts +1 -1
- package/dist/types/components/{pcm-jlpx-modal/pcm-jlpx-modal.d.ts → pcm-jlpp-modal/pcm-jlpp-modal.d.ts} +4 -4
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +3 -3
- package/dist/types/components/pcm-video-chat-modal/pcm-video-chat-modal.d.ts +1 -1
- package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +8 -4
- package/dist/types/components.d.ts +56 -48
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +62 -61
- package/readme.md +307 -307
- package/dist/cjs/index-BFPEnLbS.js.map +0 -1
- package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.cjs.js.map +0 -1
- package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.js.map +0 -1
- package/dist/components/p-BctfuDvG.js.map +0 -1
- package/dist/components/p-LkDC0SN2.js.map +0 -1
- package/dist/components/pcm-jlpx-modal.js.map +0 -1
- package/dist/esm/index-nVjZGfA8.js.map +0 -1
- package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.js.map +0 -1
- package/dist/pcm-agents/p-55417392.entry.js +0 -2
- package/dist/pcm-agents/p-55417392.entry.js.map +0 -1
- package/dist/pcm-agents/p-a698b59f.entry.js +0 -2
- package/dist/pcm-agents/p-a698b59f.entry.js.map +0 -1
- package/dist/pcm-agents/p-nVjZGfA8.js +0 -2
- package/dist/pcm-agents/p-nVjZGfA8.js.map +0 -1
- package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.esm.js.map +0 -1
- /package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.css → pcm-jlpp-modal/pcm-jlpp-modal.css} +0 -0
- /package/dist/pcm-agents/{p-f3ca99b4.entry.js.map → p-430f9a9f.entry.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { FileUploadResponse } from '../../utils/utils';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class JlppModal {
|
|
4
4
|
/**
|
|
5
5
|
* 模态框标题
|
|
6
6
|
*/
|
|
7
7
|
modalTitle: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* SDK鉴权密钥
|
|
10
10
|
*/
|
|
11
11
|
token: string;
|
|
12
12
|
/**
|
|
@@ -81,9 +81,9 @@ export declare class JlpxModal {
|
|
|
81
81
|
total_questions: number;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* SDK密钥验证失败事件
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
tokenInvalid: EventEmitter<void>;
|
|
87
87
|
selectedFile: File | null;
|
|
88
88
|
isUploading: boolean;
|
|
89
89
|
uploadedFileInfo: FileUploadResponse | null;
|
|
@@ -6,7 +6,7 @@ export declare class MnmsModal {
|
|
|
6
6
|
*/
|
|
7
7
|
modalTitle: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* SDK鉴权密钥
|
|
10
10
|
*/
|
|
11
11
|
token: string;
|
|
12
12
|
/**
|
|
@@ -81,9 +81,9 @@ export declare class MnmsModal {
|
|
|
81
81
|
total_questions: number;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* SDK密钥验证失败事件
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
tokenInvalid: EventEmitter<void>;
|
|
87
87
|
selectedFile: File | null;
|
|
88
88
|
isUploading: boolean;
|
|
89
89
|
uploadedFileInfo: FileUploadResponse | null;
|
|
@@ -10,7 +10,7 @@ export declare class ZyghModal {
|
|
|
10
10
|
*/
|
|
11
11
|
modalTitle: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* SDK鉴权密钥
|
|
14
14
|
*/
|
|
15
15
|
token: string;
|
|
16
16
|
/**
|
|
@@ -50,7 +50,11 @@ export declare class ZyghModal {
|
|
|
50
50
|
*/
|
|
51
51
|
fullscreen: boolean;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* 自定义输入参数,传入plan_type则可以指定规划类型,可传入"长期规划"、"转行建议"、"晋升路径"
|
|
54
|
+
* 例如:
|
|
55
|
+
* zyghModal.customInputs = {
|
|
56
|
+
* plan_type: "转行建议"
|
|
57
|
+
* };
|
|
54
58
|
*/
|
|
55
59
|
customInputs: {
|
|
56
60
|
[key: string]: any;
|
|
@@ -85,9 +89,9 @@ export declare class ZyghModal {
|
|
|
85
89
|
plan_type: CareerPlanType;
|
|
86
90
|
}>;
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* SDK密钥验证失败事件
|
|
89
93
|
*/
|
|
90
|
-
|
|
94
|
+
tokenInvalid: EventEmitter<void>;
|
|
91
95
|
selectedFile: File | null;
|
|
92
96
|
isUploading: boolean;
|
|
93
97
|
uploadedFileInfo: FileUploadResponse | null;
|
|
@@ -92,7 +92,7 @@ export namespace Components {
|
|
|
92
92
|
*/
|
|
93
93
|
"modalTitle": string;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* SDK鉴权密钥
|
|
96
96
|
*/
|
|
97
97
|
"token": string;
|
|
98
98
|
/**
|
|
@@ -109,6 +109,10 @@ export namespace Components {
|
|
|
109
109
|
* 消息数据
|
|
110
110
|
*/
|
|
111
111
|
"message": ChatMessage;
|
|
112
|
+
/**
|
|
113
|
+
* SDK鉴权密钥
|
|
114
|
+
*/
|
|
115
|
+
"token": string;
|
|
112
116
|
}
|
|
113
117
|
interface PcmChatModal {
|
|
114
118
|
/**
|
|
@@ -214,7 +218,7 @@ export namespace Components {
|
|
|
214
218
|
*/
|
|
215
219
|
"toEmail": string;
|
|
216
220
|
/**
|
|
217
|
-
*
|
|
221
|
+
* SDK鉴权密钥
|
|
218
222
|
*/
|
|
219
223
|
"token": string;
|
|
220
224
|
/**
|
|
@@ -230,7 +234,7 @@ export namespace Components {
|
|
|
230
234
|
*/
|
|
231
235
|
"zIndex"?: number;
|
|
232
236
|
}
|
|
233
|
-
interface
|
|
237
|
+
interface PcmJlppModal {
|
|
234
238
|
/**
|
|
235
239
|
* 会话ID,传入继续对话,否则创建新会话
|
|
236
240
|
*/
|
|
@@ -268,7 +272,7 @@ export namespace Components {
|
|
|
268
272
|
*/
|
|
269
273
|
"modalTitle": string;
|
|
270
274
|
/**
|
|
271
|
-
*
|
|
275
|
+
* SDK鉴权密钥
|
|
272
276
|
*/
|
|
273
277
|
"token": string;
|
|
274
278
|
/**
|
|
@@ -314,7 +318,7 @@ export namespace Components {
|
|
|
314
318
|
*/
|
|
315
319
|
"modalTitle": string;
|
|
316
320
|
/**
|
|
317
|
-
*
|
|
321
|
+
* SDK鉴权密钥
|
|
318
322
|
*/
|
|
319
323
|
"token": string;
|
|
320
324
|
/**
|
|
@@ -376,7 +380,7 @@ export namespace Components {
|
|
|
376
380
|
*/
|
|
377
381
|
"resumeId"?: string;
|
|
378
382
|
/**
|
|
379
|
-
*
|
|
383
|
+
* SDK鉴权密钥
|
|
380
384
|
*/
|
|
381
385
|
"token": string;
|
|
382
386
|
/**
|
|
@@ -394,7 +398,7 @@ export namespace Components {
|
|
|
394
398
|
*/
|
|
395
399
|
"conversationId"?: string;
|
|
396
400
|
/**
|
|
397
|
-
*
|
|
401
|
+
* 自定义输入参数,传入plan_type则可以指定规划类型,可传入"长期规划"、"转行建议"、"晋升路径" 例如: zyghModal.customInputs = { plan_type: "转行建议" };
|
|
398
402
|
*/
|
|
399
403
|
"customInputs": { [key: string]: any };
|
|
400
404
|
/**
|
|
@@ -426,7 +430,7 @@ export namespace Components {
|
|
|
426
430
|
*/
|
|
427
431
|
"modalTitle": string;
|
|
428
432
|
/**
|
|
429
|
-
*
|
|
433
|
+
* SDK鉴权密钥
|
|
430
434
|
*/
|
|
431
435
|
"token": string;
|
|
432
436
|
/**
|
|
@@ -451,9 +455,9 @@ export interface PcmHrChatModalCustomEvent<T> extends CustomEvent<T> {
|
|
|
451
455
|
detail: T;
|
|
452
456
|
target: HTMLPcmHrChatModalElement;
|
|
453
457
|
}
|
|
454
|
-
export interface
|
|
458
|
+
export interface PcmJlppModalCustomEvent<T> extends CustomEvent<T> {
|
|
455
459
|
detail: T;
|
|
456
|
-
target:
|
|
460
|
+
target: HTMLPcmJlppModalElement;
|
|
457
461
|
}
|
|
458
462
|
export interface PcmMnmsModalCustomEvent<T> extends CustomEvent<T> {
|
|
459
463
|
detail: T;
|
|
@@ -593,7 +597,7 @@ declare global {
|
|
|
593
597
|
prototype: HTMLPcmHrChatModalElement;
|
|
594
598
|
new (): HTMLPcmHrChatModalElement;
|
|
595
599
|
};
|
|
596
|
-
interface
|
|
600
|
+
interface HTMLPcmJlppModalElementEventMap {
|
|
597
601
|
"modalClosed": void;
|
|
598
602
|
"uploadSuccess": FileUploadResponse;
|
|
599
603
|
"streamComplete": {
|
|
@@ -612,21 +616,21 @@ declare global {
|
|
|
612
616
|
conversation_id: string;
|
|
613
617
|
total_questions: number;
|
|
614
618
|
};
|
|
615
|
-
"
|
|
619
|
+
"tokenInvalid": void;
|
|
616
620
|
}
|
|
617
|
-
interface
|
|
618
|
-
addEventListener<K extends keyof
|
|
621
|
+
interface HTMLPcmJlppModalElement extends Components.PcmJlppModal, HTMLStencilElement {
|
|
622
|
+
addEventListener<K extends keyof HTMLPcmJlppModalElementEventMap>(type: K, listener: (this: HTMLPcmJlppModalElement, ev: PcmJlppModalCustomEvent<HTMLPcmJlppModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
619
623
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
620
624
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
621
625
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
622
|
-
removeEventListener<K extends keyof
|
|
626
|
+
removeEventListener<K extends keyof HTMLPcmJlppModalElementEventMap>(type: K, listener: (this: HTMLPcmJlppModalElement, ev: PcmJlppModalCustomEvent<HTMLPcmJlppModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
623
627
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
624
628
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
625
629
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
626
630
|
}
|
|
627
|
-
var
|
|
628
|
-
prototype:
|
|
629
|
-
new ():
|
|
631
|
+
var HTMLPcmJlppModalElement: {
|
|
632
|
+
prototype: HTMLPcmJlppModalElement;
|
|
633
|
+
new (): HTMLPcmJlppModalElement;
|
|
630
634
|
};
|
|
631
635
|
interface HTMLPcmMnmsModalElementEventMap {
|
|
632
636
|
"modalClosed": void;
|
|
@@ -647,7 +651,7 @@ declare global {
|
|
|
647
651
|
conversation_id: string;
|
|
648
652
|
total_questions: number;
|
|
649
653
|
};
|
|
650
|
-
"
|
|
654
|
+
"tokenInvalid": void;
|
|
651
655
|
}
|
|
652
656
|
interface HTMLPcmMnmsModalElement extends Components.PcmMnmsModal, HTMLStencilElement {
|
|
653
657
|
addEventListener<K extends keyof HTMLPcmMnmsModalElementEventMap>(type: K, listener: (this: HTMLPcmMnmsModalElement, ev: PcmMnmsModalCustomEvent<HTMLPcmMnmsModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -718,7 +722,7 @@ declare global {
|
|
|
718
722
|
conversation_id: string;
|
|
719
723
|
plan_type: CareerPlanType;
|
|
720
724
|
};
|
|
721
|
-
"
|
|
725
|
+
"tokenInvalid": void;
|
|
722
726
|
}
|
|
723
727
|
interface HTMLPcmZyghModalElement extends Components.PcmZyghModal, HTMLStencilElement {
|
|
724
728
|
addEventListener<K extends keyof HTMLPcmZyghModalElementEventMap>(type: K, listener: (this: HTMLPcmZyghModalElement, ev: PcmZyghModalCustomEvent<HTMLPcmZyghModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -740,7 +744,7 @@ declare global {
|
|
|
740
744
|
"pcm-chat-message": HTMLPcmChatMessageElement;
|
|
741
745
|
"pcm-chat-modal": HTMLPcmChatModalElement;
|
|
742
746
|
"pcm-hr-chat-modal": HTMLPcmHrChatModalElement;
|
|
743
|
-
"pcm-
|
|
747
|
+
"pcm-jlpp-modal": HTMLPcmJlppModalElement;
|
|
744
748
|
"pcm-mnms-modal": HTMLPcmMnmsModalElement;
|
|
745
749
|
"pcm-video-chat-modal": HTMLPcmVideoChatModalElement;
|
|
746
750
|
"pcm-zygh-modal": HTMLPcmZyghModalElement;
|
|
@@ -871,7 +875,7 @@ declare namespace LocalJSX {
|
|
|
871
875
|
id: string;
|
|
872
876
|
}>) => void;
|
|
873
877
|
/**
|
|
874
|
-
*
|
|
878
|
+
* SDK鉴权密钥
|
|
875
879
|
*/
|
|
876
880
|
"token"?: string;
|
|
877
881
|
/**
|
|
@@ -892,6 +896,10 @@ declare namespace LocalJSX {
|
|
|
892
896
|
* 消息变更事件
|
|
893
897
|
*/
|
|
894
898
|
"onMessageChange"?: (event: PcmChatMessageCustomEvent<Partial<ChatMessage>>) => void;
|
|
899
|
+
/**
|
|
900
|
+
* SDK鉴权密钥
|
|
901
|
+
*/
|
|
902
|
+
"token"?: string;
|
|
895
903
|
}
|
|
896
904
|
interface PcmChatModal {
|
|
897
905
|
/**
|
|
@@ -1043,7 +1051,7 @@ declare namespace LocalJSX {
|
|
|
1043
1051
|
*/
|
|
1044
1052
|
"toEmail"?: string;
|
|
1045
1053
|
/**
|
|
1046
|
-
*
|
|
1054
|
+
* SDK鉴权密钥
|
|
1047
1055
|
*/
|
|
1048
1056
|
"token"?: string;
|
|
1049
1057
|
/**
|
|
@@ -1059,7 +1067,7 @@ declare namespace LocalJSX {
|
|
|
1059
1067
|
*/
|
|
1060
1068
|
"zIndex"?: number;
|
|
1061
1069
|
}
|
|
1062
|
-
interface
|
|
1070
|
+
interface PcmJlppModal {
|
|
1063
1071
|
/**
|
|
1064
1072
|
* 会话ID,传入继续对话,否则创建新会话
|
|
1065
1073
|
*/
|
|
@@ -1096,14 +1104,10 @@ declare namespace LocalJSX {
|
|
|
1096
1104
|
* 模态框标题
|
|
1097
1105
|
*/
|
|
1098
1106
|
"modalTitle"?: string;
|
|
1099
|
-
/**
|
|
1100
|
-
* API密钥验证失败事件
|
|
1101
|
-
*/
|
|
1102
|
-
"onApiKeyInvalid"?: (event: PcmJlpxModalCustomEvent<void>) => void;
|
|
1103
1107
|
/**
|
|
1104
1108
|
* 新会话开始的回调,只会在一轮对话开始时触发一次
|
|
1105
1109
|
*/
|
|
1106
|
-
"onConversationStart"?: (event:
|
|
1110
|
+
"onConversationStart"?: (event: PcmJlppModalCustomEvent<{
|
|
1107
1111
|
conversation_id: string;
|
|
1108
1112
|
event: string;
|
|
1109
1113
|
message_id: string;
|
|
@@ -1112,29 +1116,33 @@ declare namespace LocalJSX {
|
|
|
1112
1116
|
/**
|
|
1113
1117
|
* 当聊天完成时触发
|
|
1114
1118
|
*/
|
|
1115
|
-
"onInterviewComplete"?: (event:
|
|
1119
|
+
"onInterviewComplete"?: (event: PcmJlppModalCustomEvent<{
|
|
1116
1120
|
conversation_id: string;
|
|
1117
1121
|
total_questions: number;
|
|
1118
1122
|
}>) => void;
|
|
1119
1123
|
/**
|
|
1120
1124
|
* 当点击模态框关闭时触发
|
|
1121
1125
|
*/
|
|
1122
|
-
"onModalClosed"?: (event:
|
|
1126
|
+
"onModalClosed"?: (event: PcmJlppModalCustomEvent<void>) => void;
|
|
1123
1127
|
/**
|
|
1124
1128
|
* 流式输出完成事件
|
|
1125
1129
|
*/
|
|
1126
|
-
"onStreamComplete"?: (event:
|
|
1130
|
+
"onStreamComplete"?: (event: PcmJlppModalCustomEvent<{
|
|
1127
1131
|
conversation_id: string;
|
|
1128
1132
|
event: string;
|
|
1129
1133
|
message_id: string;
|
|
1130
1134
|
id: string;
|
|
1131
1135
|
}>) => void;
|
|
1136
|
+
/**
|
|
1137
|
+
* SDK密钥验证失败事件
|
|
1138
|
+
*/
|
|
1139
|
+
"onTokenInvalid"?: (event: PcmJlppModalCustomEvent<void>) => void;
|
|
1132
1140
|
/**
|
|
1133
1141
|
* 上传成功事件
|
|
1134
1142
|
*/
|
|
1135
|
-
"onUploadSuccess"?: (event:
|
|
1143
|
+
"onUploadSuccess"?: (event: PcmJlppModalCustomEvent<FileUploadResponse>) => void;
|
|
1136
1144
|
/**
|
|
1137
|
-
*
|
|
1145
|
+
* SDK鉴权密钥
|
|
1138
1146
|
*/
|
|
1139
1147
|
"token"?: string;
|
|
1140
1148
|
/**
|
|
@@ -1179,10 +1187,6 @@ declare namespace LocalJSX {
|
|
|
1179
1187
|
* 模态框标题
|
|
1180
1188
|
*/
|
|
1181
1189
|
"modalTitle"?: string;
|
|
1182
|
-
/**
|
|
1183
|
-
* API密钥验证失败事件
|
|
1184
|
-
*/
|
|
1185
|
-
"onApiKeyInvalid"?: (event: PcmMnmsModalCustomEvent<void>) => void;
|
|
1186
1190
|
/**
|
|
1187
1191
|
* 新会话开始的回调,只会在一轮对话开始时触发一次
|
|
1188
1192
|
*/
|
|
@@ -1212,12 +1216,16 @@ declare namespace LocalJSX {
|
|
|
1212
1216
|
message_id: string;
|
|
1213
1217
|
id: string;
|
|
1214
1218
|
}>) => void;
|
|
1219
|
+
/**
|
|
1220
|
+
* SDK密钥验证失败事件
|
|
1221
|
+
*/
|
|
1222
|
+
"onTokenInvalid"?: (event: PcmMnmsModalCustomEvent<void>) => void;
|
|
1215
1223
|
/**
|
|
1216
1224
|
* 上传成功事件
|
|
1217
1225
|
*/
|
|
1218
1226
|
"onUploadSuccess"?: (event: PcmMnmsModalCustomEvent<FileUploadResponse>) => void;
|
|
1219
1227
|
/**
|
|
1220
|
-
*
|
|
1228
|
+
* SDK鉴权密钥
|
|
1221
1229
|
*/
|
|
1222
1230
|
"token"?: string;
|
|
1223
1231
|
/**
|
|
@@ -1311,7 +1319,7 @@ declare namespace LocalJSX {
|
|
|
1311
1319
|
*/
|
|
1312
1320
|
"resumeId"?: string;
|
|
1313
1321
|
/**
|
|
1314
|
-
*
|
|
1322
|
+
* SDK鉴权密钥
|
|
1315
1323
|
*/
|
|
1316
1324
|
"token"?: string;
|
|
1317
1325
|
/**
|
|
@@ -1329,7 +1337,7 @@ declare namespace LocalJSX {
|
|
|
1329
1337
|
*/
|
|
1330
1338
|
"conversationId"?: string;
|
|
1331
1339
|
/**
|
|
1332
|
-
*
|
|
1340
|
+
* 自定义输入参数,传入plan_type则可以指定规划类型,可传入"长期规划"、"转行建议"、"晋升路径" 例如: zyghModal.customInputs = { plan_type: "转行建议" };
|
|
1333
1341
|
*/
|
|
1334
1342
|
"customInputs"?: { [key: string]: any };
|
|
1335
1343
|
/**
|
|
@@ -1360,10 +1368,6 @@ declare namespace LocalJSX {
|
|
|
1360
1368
|
* 模态框标题
|
|
1361
1369
|
*/
|
|
1362
1370
|
"modalTitle"?: string;
|
|
1363
|
-
/**
|
|
1364
|
-
* API密钥验证失败事件
|
|
1365
|
-
*/
|
|
1366
|
-
"onApiKeyInvalid"?: (event: PcmZyghModalCustomEvent<void>) => void;
|
|
1367
1371
|
/**
|
|
1368
1372
|
* 新会话开始的回调,只会在一轮对话开始时触发一次
|
|
1369
1373
|
*/
|
|
@@ -1393,12 +1397,16 @@ declare namespace LocalJSX {
|
|
|
1393
1397
|
message_id: string;
|
|
1394
1398
|
id: string;
|
|
1395
1399
|
}>) => void;
|
|
1400
|
+
/**
|
|
1401
|
+
* SDK密钥验证失败事件
|
|
1402
|
+
*/
|
|
1403
|
+
"onTokenInvalid"?: (event: PcmZyghModalCustomEvent<void>) => void;
|
|
1396
1404
|
/**
|
|
1397
1405
|
* 上传成功事件
|
|
1398
1406
|
*/
|
|
1399
1407
|
"onUploadSuccess"?: (event: PcmZyghModalCustomEvent<FileUploadResponse>) => void;
|
|
1400
1408
|
/**
|
|
1401
|
-
*
|
|
1409
|
+
* SDK鉴权密钥
|
|
1402
1410
|
*/
|
|
1403
1411
|
"token"?: string;
|
|
1404
1412
|
/**
|
|
@@ -1412,7 +1420,7 @@ declare namespace LocalJSX {
|
|
|
1412
1420
|
"pcm-chat-message": PcmChatMessage;
|
|
1413
1421
|
"pcm-chat-modal": PcmChatModal;
|
|
1414
1422
|
"pcm-hr-chat-modal": PcmHrChatModal;
|
|
1415
|
-
"pcm-
|
|
1423
|
+
"pcm-jlpp-modal": PcmJlppModal;
|
|
1416
1424
|
"pcm-mnms-modal": PcmMnmsModal;
|
|
1417
1425
|
"pcm-video-chat-modal": PcmVideoChatModal;
|
|
1418
1426
|
"pcm-zygh-modal": PcmZyghModal;
|
|
@@ -1427,7 +1435,7 @@ declare module "@stencil/core" {
|
|
|
1427
1435
|
"pcm-chat-message": LocalJSX.PcmChatMessage & JSXBase.HTMLAttributes<HTMLPcmChatMessageElement>;
|
|
1428
1436
|
"pcm-chat-modal": LocalJSX.PcmChatModal & JSXBase.HTMLAttributes<HTMLPcmChatModalElement>;
|
|
1429
1437
|
"pcm-hr-chat-modal": LocalJSX.PcmHrChatModal & JSXBase.HTMLAttributes<HTMLPcmHrChatModalElement>;
|
|
1430
|
-
"pcm-
|
|
1438
|
+
"pcm-jlpp-modal": LocalJSX.PcmJlppModal & JSXBase.HTMLAttributes<HTMLPcmJlppModalElement>;
|
|
1431
1439
|
"pcm-mnms-modal": LocalJSX.PcmMnmsModal & JSXBase.HTMLAttributes<HTMLPcmMnmsModalElement>;
|
|
1432
1440
|
"pcm-video-chat-modal": LocalJSX.PcmVideoChatModal & JSXBase.HTMLAttributes<HTMLPcmVideoChatModalElement>;
|
|
1433
1441
|
"pcm-zygh-modal": LocalJSX.PcmZyghModal & JSXBase.HTMLAttributes<HTMLPcmZyghModalElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* API域名配置
|
|
3
3
|
*/
|
|
4
|
-
export declare const API_DOMAIN = "https://
|
|
4
|
+
export declare const API_DOMAIN = "https://www.pincaimao.com/agents/api";
|
|
5
5
|
export declare function format(first?: string, middle?: string, last?: string): string;
|
|
6
6
|
export interface UserInputMessageType {
|
|
7
7
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pcm-agents",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Components of pcm-agents",
|
|
5
|
-
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
-
"collection:main": "dist/collection/index.js",
|
|
10
|
-
"unpkg": "dist/pcm-agents/pcm-agents.esm.js",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/pcm-agents/pcm-agents.esm.js",
|
|
14
|
-
"require": "./dist/pcm-agents/pcm-agents.cjs.js"
|
|
15
|
-
},
|
|
16
|
-
"./dist/*": {
|
|
17
|
-
"import": "./dist/*",
|
|
18
|
-
"types": "./dist/*"
|
|
19
|
-
},
|
|
20
|
-
"./components/*": {
|
|
21
|
-
"import": "./dist/components/*.js",
|
|
22
|
-
"types": "./dist/components/*.d.ts"
|
|
23
|
-
},
|
|
24
|
-
"./loader": {
|
|
25
|
-
"import": "./loader/index.js",
|
|
26
|
-
"require": "./loader/index.cjs",
|
|
27
|
-
"types": "./loader/index.d.ts"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "https://github.com/stenciljs/component-starter.git"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist/",
|
|
36
|
-
"loader/"
|
|
37
|
-
],
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "stencil build",
|
|
40
|
-
"dev": "stencil build --dev --watch --serve",
|
|
41
|
-
"test": "stencil test --spec --e2e",
|
|
42
|
-
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
43
|
-
"generate": "stencil generate"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@stencil/core": "^4.27.1",
|
|
47
|
-
"@types/jest": "^29.5.14",
|
|
48
|
-
"@types/node": "^22.13.5",
|
|
49
|
-
"jest": "^29.7.0",
|
|
50
|
-
"jest-cli": "^29.7.0",
|
|
51
|
-
"puppeteer": "^24.3.0"
|
|
52
|
-
},
|
|
53
|
-
"license": "MIT",
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"@stencil/react-output-target": "^0.8.2",
|
|
56
|
-
"@stencil/vue-output-target": "^0.10.7",
|
|
57
|
-
"@types/marked": "^5.0.2",
|
|
58
|
-
"
|
|
59
|
-
"marked
|
|
60
|
-
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pcm-agents",
|
|
3
|
+
"version": "0.3.4",
|
|
4
|
+
"description": "Components of pcm-agents",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
+
"collection:main": "dist/collection/index.js",
|
|
10
|
+
"unpkg": "dist/pcm-agents/pcm-agents.esm.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/pcm-agents/pcm-agents.esm.js",
|
|
14
|
+
"require": "./dist/pcm-agents/pcm-agents.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/*": {
|
|
17
|
+
"import": "./dist/*",
|
|
18
|
+
"types": "./dist/*"
|
|
19
|
+
},
|
|
20
|
+
"./components/*": {
|
|
21
|
+
"import": "./dist/components/*.js",
|
|
22
|
+
"types": "./dist/components/*.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./loader": {
|
|
25
|
+
"import": "./loader/index.js",
|
|
26
|
+
"require": "./loader/index.cjs",
|
|
27
|
+
"types": "./loader/index.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/stenciljs/component-starter.git"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist/",
|
|
36
|
+
"loader/"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "stencil build",
|
|
40
|
+
"dev": "stencil build --dev --watch --serve",
|
|
41
|
+
"test": "stencil test --spec --e2e",
|
|
42
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
43
|
+
"generate": "stencil generate"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@stencil/core": "^4.27.1",
|
|
47
|
+
"@types/jest": "^29.5.14",
|
|
48
|
+
"@types/node": "^22.13.5",
|
|
49
|
+
"jest": "^29.7.0",
|
|
50
|
+
"jest-cli": "^29.7.0",
|
|
51
|
+
"puppeteer": "^24.3.0"
|
|
52
|
+
},
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@stencil/react-output-target": "^0.8.2",
|
|
56
|
+
"@stencil/vue-output-target": "^0.10.7",
|
|
57
|
+
"@types/marked": "^5.0.2",
|
|
58
|
+
"cos-nodejs-sdk-v5": "^2.14.7",
|
|
59
|
+
"marked": "^9.1.5",
|
|
60
|
+
"marked-extended-tables": "^2.0.1"
|
|
61
|
+
}
|
|
62
|
+
}
|