pcm-agents 0.6.48 → 0.6.49

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.
Files changed (132) hide show
  1. package/dist/cjs/components-position-selector_28.cjs.entry.js +47 -35
  2. package/dist/cjs/components-position-selector_28.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-DlvaXYTy.js → index-Cvi5YeGb.js} +3 -3
  4. package/dist/cjs/{index-DlvaXYTy.js.map → index-Cvi5YeGb.js.map} +1 -1
  5. package/dist/cjs/index.cjs.js +1 -1
  6. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
  7. package/dist/cjs/pcm-htws-modal.cjs.entry.js +1 -1
  8. package/dist/cjs/pcm-jlpp-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/pcm-jlzz-modal.cjs.entry.js +2 -2
  10. package/dist/cjs/pcm-mnms-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/pcm-qgqjl-modal.cjs.entry.js +1 -1
  12. package/dist/cjs/pcm-zygh-modal.cjs.entry.js +1 -1
  13. package/dist/cjs/{sentry-reporter-Dkbi-G2y.js → sentry-reporter-BC9qbkXZ.js} +3 -3
  14. package/dist/cjs/{sentry-reporter-Dkbi-G2y.js.map → sentry-reporter-BC9qbkXZ.js.map} +1 -1
  15. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js +26 -26
  16. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js.map +1 -1
  17. package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.css +198 -198
  18. package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js +1 -1
  19. package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js.map +1 -1
  20. package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js +1 -1
  21. package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js.map +1 -1
  22. package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.css +201 -201
  23. package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.css +135 -135
  24. package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js +1 -1
  25. package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js.map +1 -1
  26. package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js +4 -4
  27. package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js.map +1 -1
  28. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +8 -2
  29. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
  30. package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +7 -1
  31. package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +1 -1
  32. package/dist/components/components-position-selector.js +1 -1
  33. package/dist/components/index.js +1 -1
  34. package/dist/components/oem-htws-modal.js +32 -32
  35. package/dist/components/oem-htws-modal.js.map +1 -1
  36. package/dist/components/oem-jlpp-modal.js +9 -9
  37. package/dist/components/oem-jlpp-modal.js.map +1 -1
  38. package/dist/components/oem-jlzz-modal.js +7 -7
  39. package/dist/components/oem-mnms-modal.js +9 -9
  40. package/dist/components/oem-mnms-modal.js.map +1 -1
  41. package/dist/components/oem-qgqjl-modal.js +9 -9
  42. package/dist/components/oem-qgqjl-modal.js.map +1 -1
  43. package/dist/components/oem-zygh-modal.js +7 -7
  44. package/dist/components/oem-zygh-modal.js.map +1 -1
  45. package/dist/components/{p-DTHq3vgp.js → p-BhlcTp8-.js} +11 -5
  46. package/dist/components/p-BhlcTp8-.js.map +1 -0
  47. package/dist/components/{p-Cej9uMEB.js → p-C7Zcj5nn.js} +3 -3
  48. package/dist/components/{p-Cej9uMEB.js.map → p-C7Zcj5nn.js.map} +1 -1
  49. package/dist/components/{p-ywYwsnuw.js → p-CRQrFZQ-.js} +3 -3
  50. package/dist/components/{p-ywYwsnuw.js.map → p-CRQrFZQ-.js.map} +1 -1
  51. package/dist/components/{p-LBgOATJb.js → p-CTSr9ZdO.js} +3 -3
  52. package/dist/components/{p-LBgOATJb.js.map → p-CTSr9ZdO.js.map} +1 -1
  53. package/dist/components/{p-DMtkc9jK.js → p-Cujm2tKa.js} +4 -4
  54. package/dist/components/{p-DMtkc9jK.js.map → p-Cujm2tKa.js.map} +1 -1
  55. package/dist/components/{p-CvlGtju5.js → p-DF8h6ynJ.js} +3 -3
  56. package/dist/components/{p-CvlGtju5.js.map → p-DF8h6ynJ.js.map} +1 -1
  57. package/dist/components/{p-Ceuc-ZKg.js → p-DGr4MY_k.js} +3 -3
  58. package/dist/components/{p-Ceuc-ZKg.js.map → p-DGr4MY_k.js.map} +1 -1
  59. package/dist/components/{p-DY7uitwn.js → p-DSLUm6p0.js} +3 -3
  60. package/dist/components/{p-DY7uitwn.js.map → p-DSLUm6p0.js.map} +1 -1
  61. package/dist/components/{p-DUnSaNx4.js → p-dzM18RI1.js} +3 -3
  62. package/dist/components/{p-DUnSaNx4.js.map → p-dzM18RI1.js.map} +1 -1
  63. package/dist/components/{p-vTHL_D_g.js → p-rc6lacax.js} +5 -5
  64. package/dist/components/{p-vTHL_D_g.js.map → p-rc6lacax.js.map} +1 -1
  65. package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
  66. package/dist/components/pcm-app-chat-modal.js +1 -1
  67. package/dist/components/pcm-card.js +1 -1
  68. package/dist/components/pcm-chat-message.js +1 -1
  69. package/dist/components/pcm-digital-human.js +1 -1
  70. package/dist/components/pcm-export-records-modal.js +1 -1
  71. package/dist/components/pcm-hr-chat-modal.js +2 -2
  72. package/dist/components/pcm-htws-modal.js +7 -7
  73. package/dist/components/pcm-hyzj-modal.js +4 -4
  74. package/dist/components/pcm-jd-modal.js +11 -5
  75. package/dist/components/pcm-jd-modal.js.map +1 -1
  76. package/dist/components/pcm-jlpp-modal.js +7 -7
  77. package/dist/components/pcm-jlsx-modal.js +5 -5
  78. package/dist/components/pcm-jlzz-modal.js +6 -6
  79. package/dist/components/pcm-mnct-modal.js +4 -4
  80. package/dist/components/pcm-mnms-modal.js +8 -8
  81. package/dist/components/pcm-mnms-zp-modal.js +8 -8
  82. package/dist/components/pcm-mobile-input-btn.js +1 -1
  83. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  84. package/dist/components/pcm-msbg-modal.js +4 -4
  85. package/dist/components/pcm-qgqjl-modal.js +7 -7
  86. package/dist/components/pcm-upload.js +1 -1
  87. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  88. package/dist/components/pcm-zsk-chat-modal.js +2 -2
  89. package/dist/components/pcm-zygh-modal.js +6 -6
  90. package/dist/esm/components-position-selector_28.entry.js +47 -35
  91. package/dist/esm/components-position-selector_28.entry.js.map +1 -1
  92. package/dist/esm/{index-CJGAVbdc.js → index-Bg59t9NJ.js} +3 -3
  93. package/dist/esm/{index-CJGAVbdc.js.map → index-Bg59t9NJ.js.map} +1 -1
  94. package/dist/esm/index.js +1 -1
  95. package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
  96. package/dist/esm/pcm-htws-modal.entry.js +1 -1
  97. package/dist/esm/pcm-jlpp-modal.entry.js +1 -1
  98. package/dist/esm/pcm-jlzz-modal.entry.js +2 -2
  99. package/dist/esm/pcm-mnms-modal.entry.js +1 -1
  100. package/dist/esm/pcm-qgqjl-modal.entry.js +1 -1
  101. package/dist/esm/pcm-zygh-modal.entry.js +1 -1
  102. package/dist/esm/{sentry-reporter-VwhfjNBx.js → sentry-reporter-DVe1q1Tf.js} +3 -3
  103. package/dist/esm/{sentry-reporter-VwhfjNBx.js.map → sentry-reporter-DVe1q1Tf.js.map} +1 -1
  104. package/dist/pcm-agents/index.esm.js +1 -1
  105. package/dist/pcm-agents/{p-5c6e829e.entry.js → p-3cab3e88.entry.js} +2 -2
  106. package/dist/pcm-agents/p-6ce6a724.entry.js +245 -0
  107. package/dist/pcm-agents/p-6ce6a724.entry.js.map +1 -0
  108. package/dist/pcm-agents/{p-BtazNitr.js → p-BGFqmqKY.js} +2 -2
  109. package/dist/pcm-agents/{p-BtazNitr.js.map → p-BGFqmqKY.js.map} +1 -1
  110. package/dist/pcm-agents/p-Bhz7ymJu.js +2 -0
  111. package/dist/pcm-agents/{p-VhMEYxup.js.map → p-Bhz7ymJu.js.map} +1 -1
  112. package/dist/pcm-agents/{p-eae18209.entry.js → p-a14328af.entry.js} +2 -2
  113. package/dist/pcm-agents/{p-7486ab8a.entry.js → p-b8b7218a.entry.js} +2 -2
  114. package/dist/pcm-agents/{p-fdaa8c57.entry.js → p-c9038207.entry.js} +2 -2
  115. package/dist/pcm-agents/{p-bb890922.entry.js → p-d096e79d.entry.js} +2 -2
  116. package/dist/pcm-agents/{p-1c519a79.entry.js → p-ede60ffb.entry.js} +2 -2
  117. package/dist/pcm-agents/{p-e435ed2b.entry.js → p-f0c3a5e3.entry.js} +2 -2
  118. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  119. package/dist/types/components/oem-htws-modal/oem-htws-modal.d.ts +1 -1
  120. package/dist/types/components.d.ts +6 -6
  121. package/package.json +1 -1
  122. package/dist/components/p-DTHq3vgp.js.map +0 -1
  123. package/dist/pcm-agents/p-VhMEYxup.js +0 -2
  124. package/dist/pcm-agents/p-d6717064.entry.js +0 -245
  125. package/dist/pcm-agents/p-d6717064.entry.js.map +0 -1
  126. /package/dist/pcm-agents/{p-5c6e829e.entry.js.map → p-3cab3e88.entry.js.map} +0 -0
  127. /package/dist/pcm-agents/{p-eae18209.entry.js.map → p-a14328af.entry.js.map} +0 -0
  128. /package/dist/pcm-agents/{p-7486ab8a.entry.js.map → p-b8b7218a.entry.js.map} +0 -0
  129. /package/dist/pcm-agents/{p-fdaa8c57.entry.js.map → p-c9038207.entry.js.map} +0 -0
  130. /package/dist/pcm-agents/{p-bb890922.entry.js.map → p-d096e79d.entry.js.map} +0 -0
  131. /package/dist/pcm-agents/{p-1c519a79.entry.js.map → p-ede60ffb.entry.js.map} +0 -0
  132. /package/dist/pcm-agents/{p-e435ed2b.entry.js.map → p-f0c3a5e3.entry.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C_qhED9Z.js');
4
- var index$1 = require('./index-DlvaXYTy.js');
4
+ var index$1 = require('./index-Cvi5YeGb.js');
5
5
  var errorEvent = require('./error-event-SBrPZYTZ.js');
6
- var sentryReporter = require('./sentry-reporter-Dkbi-G2y.js');
6
+ var sentryReporter = require('./sentry-reporter-BC9qbkXZ.js');
7
7
  require('./exports-Dc-pQh4A.js');
8
8
 
9
9
  const componentsPositionSelectorCss = ":host{display:block;width:100%;height:100%}.position-selector-container{display:flex;flex-direction:column;width:100%;height:100%;background:#fff}.search-bar{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.search-input-wrapper{position:relative;display:flex;align-items:center;flex:1;min-width:200px;max-width:500px}.search-icon{position:absolute;left:12px;color:#bfbfbf;pointer-events:none}.search-input{width:100%;height:36px;padding:4px 36px 4px 36px;font-size:14px;line-height:1.5;color:rgba(0, 0, 0, 0.85);background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:6px;transition:all 0.3s;outline:none}.search-input:hover{border-color:#40a9ff}.search-input:focus{border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.search-input::placeholder{color:#bfbfbf}.clear-button{position:absolute;right:12px;background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#bfbfbf;transition:color 0.3s}.clear-button:hover{color:#8c8c8c}.search-button{padding:4px 15px;height:36px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none;white-space:nowrap;flex-shrink:0}.search-button:hover{background-color:#40a9ff;border-color:#40a9ff}.search-button:active{background-color:#096dd9;border-color:#096dd9}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;gap:16px;color:#8c8c8c}.loading-spinner{width:32px;height:32px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px}.empty-icon{opacity:0.5}.empty-text{margin:0;color:#8c8c8c;font-size:14px}.position-list{flex:1;overflow-y:auto;min-height:0}.table-container{width:100%;overflow-x:auto}.position-table{width:100%;border-collapse:collapse;font-size:14px}.position-table thead{background-color:#fafafa;position:sticky;top:0;z-index:1}.position-table th{padding:12px 16px;text-align:left;font-weight:500;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0;white-space:nowrap}.position-table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;color:rgba(0, 0, 0, 0.65)}.position-table tbody tr{transition:background-color 0.3s}.position-table tbody tr:hover{background-color:#fafafa}.position-table tbody tr.selected-row{background-color:#e6f7ff}.checkbox-column{width:50px;text-align:center}.title-column{min-width:150px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-column{min-width:120px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-column{min-width:100px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.requirements-column{min-width:200px;max-width:300px}.requirements-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-break:break-word;line-height:1.5}.salary-column{min-width:100px;white-space:nowrap}.action-column{width:100px;text-align:center}.position-checkbox{width:16px;height:16px;cursor:pointer;accent-color:#1890ff}.select-button{padding:4px 15px;height:28px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none}.select-button:hover{background-color:#40a9ff;border-color:#40a9ff}.select-button:active{background-color:#096dd9;border-color:#096dd9}@media screen and (max-width: 768px){.search-bar{padding:12px;gap:8px}.search-input-wrapper{min-width:auto;max-width:none}.search-input{height:40px;font-size:16px}.search-button{height:40px;padding:4px 12px}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.position-table{font-size:12px}.position-table th,.position-table td{padding:8px 12px}.title-column,.company-column,.location-column{min-width:100px}.select-button{padding:4px 12px;height:32px;font-size:14px}}.pagination-container{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;border-top:1px solid #f0f0f0;flex-shrink:0}.pagination-button{padding:4px 15px;height:32px;font-size:14px;line-height:1.5;border-radius:6px;color:rgba(0, 0, 0, 0.85);background-color:#fff;border:1px solid #d9d9d9;cursor:pointer;transition:all 0.3s;outline:none}.pagination-button:hover:not(:disabled){color:#40a9ff;border-color:#40a9ff}.pagination-button:active:not(:disabled){color:#096dd9;border-color:#096dd9}.pagination-button:disabled{color:rgba(0, 0, 0, 0.25);background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.pagination-info{font-size:14px;color:rgba(0, 0, 0, 0.65)}.position-list::-webkit-scrollbar{width:8px;height:8px}.position-list::-webkit-scrollbar-track{background:#f1f1f1}.position-list::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.position-list::-webkit-scrollbar-thumb:hover{background:#555}";
@@ -352,15 +352,40 @@ const OemHtwsModal = class {
352
352
  index$1.authStore.setToken(newToken);
353
353
  }
354
354
  }
355
+ async handleIsOpenChange(newValue) {
356
+ if (!newValue) {
357
+ // 重置状态
358
+ this.showChatModal = false;
359
+ this.isSubmitting = false;
360
+ this.uploadedFileInfo = null;
361
+ // 重置手机号和验证码相关状态
362
+ this.phoneNumber = '';
363
+ this.verificationCode = '';
364
+ this.isSendingCode = false;
365
+ this.isVerifyingCode = false;
366
+ this.countdown = 0;
367
+ if (this.countdownTimer) {
368
+ clearInterval(this.countdownTimer);
369
+ this.countdownTimer = null;
370
+ }
371
+ }
372
+ else {
373
+ await index$1.verifyApiKey(this.token);
374
+ // 如果有会话ID直接显示聊天模态框
375
+ if (this.conversationId) {
376
+ this.showChatModal = true;
377
+ }
378
+ }
379
+ }
355
380
  componentWillLoad() {
356
381
  // 将 zIndex 存入配置缓存
357
382
  if (this.zIndex) {
358
383
  index$1.configStore.setItem('modal-zIndex', this.zIndex);
359
384
  }
385
+ // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
360
386
  if (this.token) {
361
387
  index$1.authStore.setToken(this.token);
362
388
  }
363
- index$1.verifyApiKey(this.token);
364
389
  // 添加全局token无效事件监听器
365
390
  this.tokenInvalidListener = () => {
366
391
  this.tokenInvalid.emit();
@@ -484,31 +509,6 @@ const OemHtwsModal = class {
484
509
  this.showChatModal = true;
485
510
  this.isSubmitting = false;
486
511
  };
487
- async handleIsOpenChange(newValue) {
488
- if (!newValue) {
489
- // 重置状态
490
- this.showChatModal = false;
491
- this.isSubmitting = false;
492
- this.uploadedFileInfo = null;
493
- // 重置手机号和验证码相关状态
494
- this.phoneNumber = '';
495
- this.verificationCode = '';
496
- this.isSendingCode = false;
497
- this.isVerifyingCode = false;
498
- this.countdown = 0;
499
- if (this.countdownTimer) {
500
- clearInterval(this.countdownTimer);
501
- this.countdownTimer = null;
502
- }
503
- }
504
- else {
505
- await index$1.verifyApiKey(this.token);
506
- // 如果有会话ID直接显示聊天模态框
507
- if (this.conversationId) {
508
- this.showChatModal = true;
509
- }
510
- }
511
- }
512
512
  render() {
513
513
  if (!this.isOpen)
514
514
  return null;
@@ -710,10 +710,10 @@ const OemJlppModal = class {
710
710
  if (this.zIndex) {
711
711
  index$1.configStore.setItem('modal-zIndex', this.zIndex);
712
712
  }
713
+ // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
713
714
  if (this.token) {
714
715
  index$1.authStore.setToken(this.token);
715
716
  }
716
- index$1.verifyApiKey(this.token);
717
717
  // 添加全局token无效事件监听器
718
718
  this.tokenInvalidListener = () => {
719
719
  this.tokenInvalid.emit();
@@ -1066,10 +1066,10 @@ const OemJlzzModal = class {
1066
1066
  if (this.zIndex) {
1067
1067
  index$1.configStore.setItem('modal-zIndex', this.zIndex);
1068
1068
  }
1069
+ // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
1069
1070
  if (this.token) {
1070
1071
  index$1.authStore.setToken(this.token);
1071
1072
  }
1072
- index$1.verifyApiKey(this.token);
1073
1073
  // 添加全局token无效事件监听器
1074
1074
  this.tokenInvalidListener = () => {
1075
1075
  this.tokenInvalid.emit();
@@ -1796,10 +1796,10 @@ const OemQgqjlModal = class {
1796
1796
  if (this.zIndex) {
1797
1797
  index$1.configStore.setItem('modal-zIndex', this.zIndex);
1798
1798
  }
1799
+ // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
1799
1800
  if (this.token) {
1800
1801
  index$1.authStore.setToken(this.token);
1801
1802
  }
1802
- index$1.verifyApiKey(this.token);
1803
1803
  // 添加全局token无效事件监听器
1804
1804
  this.tokenInvalidListener = () => {
1805
1805
  this.tokenInvalid.emit();
@@ -2134,10 +2134,10 @@ const OemZyghModal = class {
2134
2134
  if (this.zIndex) {
2135
2135
  index$1.configStore.setItem('modal-zIndex', this.zIndex);
2136
2136
  }
2137
+ // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
2137
2138
  if (this.token) {
2138
2139
  index$1.authStore.setToken(this.token);
2139
2140
  }
2140
- index$1.verifyApiKey(this.token);
2141
2141
  // 添加全局token无效事件监听器
2142
2142
  this.tokenInvalidListener = () => {
2143
2143
  this.tokenInvalid.emit();
@@ -7433,7 +7433,13 @@ const ChatMessageComponent = class {
7433
7433
  });
7434
7434
  if (response.success && response.data?.data?.outputs?.json_data) {
7435
7435
  try {
7436
- const result = JSON.parse(response.data.data.outputs.json_data);
7436
+ // 兼容纯JSON和Markdown格式的JSON (```json ... ```)
7437
+ let jsonText = response.data.data.outputs.json_data.trim();
7438
+ const markdownJsonMatch = jsonText.match(/```json\s*([\s\S]*?)\s*```/);
7439
+ if (markdownJsonMatch) {
7440
+ jsonText = markdownJsonMatch[1].trim();
7441
+ }
7442
+ const result = JSON.parse(jsonText);
7437
7443
  this.saveJd.emit({
7438
7444
  isOk: true,
7439
7445
  message: '保存成功',
@@ -7700,7 +7706,7 @@ const ChatMessageComponent = class {
7700
7706
  }
7701
7707
  }
7702
7708
  render() {
7703
- return (index.h("div", { key: '6f776c099d7927eb2b58132805c1a05c63143803', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
7709
+ return (index.h("div", { key: '0136921c08146840b1d61e62ff144de60daceb62', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
7704
7710
  }
7705
7711
  };
7706
7712
  ChatMessageComponent.style = markdownCss$1 + (pcmChatMessageCss + hostCss$f);
@@ -8970,7 +8976,13 @@ const PcmJdModal = class {
8970
8976
  });
8971
8977
  if (response.success && response.data?.data.outputs?.text) {
8972
8978
  try {
8973
- const parsedOutput = JSON.parse(response.data.data.outputs.text);
8979
+ // 兼容纯JSON和Markdown格式的JSON (```json ... ```)
8980
+ let jsonText = response.data.data.outputs.text.trim();
8981
+ const markdownJsonMatch = jsonText.match(/```json\s*([\s\S]*?)\s*```/);
8982
+ if (markdownJsonMatch) {
8983
+ jsonText = markdownJsonMatch[1].trim();
8984
+ }
8985
+ const parsedOutput = JSON.parse(jsonText);
8974
8986
  this.tagGroups = parsedOutput.tagGroup || [];
8975
8987
  // 自动选中所有默认标签
8976
8988
  const initialSelectedTags = {};