@gendive/chatllm 0.17.17 → 0.17.19

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.
@@ -647,6 +647,8 @@ interface ChatUIProps {
647
647
  sidebarRenderFooter?: () => React.ReactNode;
648
648
  /** 설정 버튼 표시 여부 */
649
649
  showSettings?: boolean;
650
+ /** @description 설정 모달에서 메모리 탭 표시 여부 (기본: true) @Todo vibecode */
651
+ showMemoryTab?: boolean;
650
652
  /** 모델 선택기 표시 여부 */
651
653
  showModelSelector?: boolean;
652
654
  /** 초기 시스템 프롬프트 */
@@ -1790,6 +1792,8 @@ interface SettingsModalProps {
1790
1792
  enableProjects?: boolean;
1791
1793
  /** @description 현재 프로젝트 이름 @Todo vibecode */
1792
1794
  currentProjectTitle?: string;
1795
+ /** @description 메모리 탭 표시 여부 (기본: true) @Todo vibecode */
1796
+ showMemoryTab?: boolean;
1793
1797
  }
1794
1798
  declare const SettingsModal: React$1.FC<SettingsModalProps>;
1795
1799
 
@@ -647,6 +647,8 @@ interface ChatUIProps {
647
647
  sidebarRenderFooter?: () => React.ReactNode;
648
648
  /** 설정 버튼 표시 여부 */
649
649
  showSettings?: boolean;
650
+ /** @description 설정 모달에서 메모리 탭 표시 여부 (기본: true) @Todo vibecode */
651
+ showMemoryTab?: boolean;
650
652
  /** 모델 선택기 표시 여부 */
651
653
  showModelSelector?: boolean;
652
654
  /** 초기 시스템 프롬프트 */
@@ -1790,6 +1792,8 @@ interface SettingsModalProps {
1790
1792
  enableProjects?: boolean;
1791
1793
  /** @description 현재 프로젝트 이름 @Todo vibecode */
1792
1794
  currentProjectTitle?: string;
1795
+ /** @description 메모리 탭 표시 여부 (기본: true) @Todo vibecode */
1796
+ showMemoryTab?: boolean;
1793
1797
  }
1794
1798
  declare const SettingsModal: React$1.FC<SettingsModalProps>;
1795
1799
 
@@ -1447,12 +1447,12 @@ var parsePollFromContent = (content) => {
1447
1447
  let optionMatch;
1448
1448
  while ((optionMatch = optionTagRegex.exec(innerContent)) !== null) {
1449
1449
  const optionAttrs = optionMatch[1];
1450
- const optionLabel = stripInlineMarkdown(optionMatch[2].trim());
1450
+ const optionLabel = optionMatch[2].trim();
1451
1451
  const descMatch = optionAttrs.match(/description=["']([^"']+)["']/i);
1452
1452
  options.push({
1453
1453
  id: generateId2(),
1454
1454
  label: optionLabel,
1455
- description: descMatch?.[1] ? stripInlineMarkdown(descMatch[1]) : void 0
1455
+ description: descMatch?.[1] || void 0
1456
1456
  });
1457
1457
  }
1458
1458
  if (options.length === 0) {
@@ -1462,8 +1462,8 @@ var parsePollFromContent = (content) => {
1462
1462
  const fullText = listMatch[1].trim();
1463
1463
  const colonIndex = fullText.indexOf(":");
1464
1464
  if (colonIndex > 0) {
1465
- const label = stripInlineMarkdown(fullText.substring(0, colonIndex).trim());
1466
- const description = stripInlineMarkdown(fullText.substring(colonIndex + 1).trim());
1465
+ const label = fullText.substring(0, colonIndex).trim();
1466
+ const description = fullText.substring(colonIndex + 1).trim();
1467
1467
  options.push({
1468
1468
  id: generateId2(),
1469
1469
  label,
@@ -1472,7 +1472,7 @@ var parsePollFromContent = (content) => {
1472
1472
  } else {
1473
1473
  options.push({
1474
1474
  id: generateId2(),
1475
- label: stripInlineMarkdown(fullText)
1475
+ label: fullText
1476
1476
  });
1477
1477
  }
1478
1478
  }
@@ -1483,14 +1483,14 @@ var parsePollFromContent = (content) => {
1483
1483
  while ((numMatch = numberedRegex.exec(innerContent)) !== null) {
1484
1484
  options.push({
1485
1485
  id: generateId2(),
1486
- label: stripInlineMarkdown(numMatch[1].trim())
1486
+ label: numMatch[1].trim()
1487
1487
  });
1488
1488
  }
1489
1489
  }
1490
1490
  if (questionText && options.length >= 2) {
1491
1491
  const pollQuestion = {
1492
1492
  id: generateId2(),
1493
- question: stripInlineMarkdown(questionText),
1493
+ question: questionText,
1494
1494
  options,
1495
1495
  multiSelect,
1496
1496
  allowOther,
@@ -1520,7 +1520,7 @@ var parsePollFromContent = (content) => {
1520
1520
  };
1521
1521
  };
1522
1522
  var formatPollResponse = (question, selectedOptions, otherText) => {
1523
- const selectedLabels = question.options.filter((opt) => selectedOptions.includes(opt.id)).map((opt) => opt.label);
1523
+ const selectedLabels = question.options.filter((opt) => selectedOptions.includes(opt.id)).map((opt) => stripInlineMarkdown(opt.label));
1524
1524
  if (otherText) {
1525
1525
  selectedLabels.push(otherText);
1526
1526
  }
@@ -9234,7 +9234,8 @@ var SettingsModal = ({
9234
9234
  onDeleteProjectMemory,
9235
9235
  onClearProjectMemory,
9236
9236
  enableProjects = false,
9237
- currentProjectTitle
9237
+ currentProjectTitle,
9238
+ showMemoryTab = true
9238
9239
  }) => {
9239
9240
  const [activeTab, setActiveTab] = (0, import_react18.useState)("general");
9240
9241
  const [localApiKey, setLocalApiKey] = (0, import_react18.useState)(apiKey);
@@ -9340,7 +9341,7 @@ var SettingsModal = ({
9340
9341
  label: "\uAC1C\uC778 \uB9DE\uCDA4 \uC124\uC815"
9341
9342
  }
9342
9343
  ),
9343
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9344
+ showMemoryTab && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9344
9345
  TabButton,
9345
9346
  {
9346
9347
  active: activeTab === "memory",
@@ -9349,7 +9350,7 @@ var SettingsModal = ({
9349
9350
  label: "AI \uBA54\uBAA8\uB9AC"
9350
9351
  }
9351
9352
  ),
9352
- enableProjects && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9353
+ showMemoryTab && enableProjects && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9353
9354
  TabButton,
9354
9355
  {
9355
9356
  active: activeTab === "project-memory",
@@ -9536,7 +9537,7 @@ var SettingsModal = ({
9536
9537
  }
9537
9538
  ) })
9538
9539
  ] }),
9539
- activeTab === "memory" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9540
+ activeTab === "memory" && showMemoryTab && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9540
9541
  MemoryTabContent,
9541
9542
  {
9542
9543
  items: memoryItems,
@@ -9545,7 +9546,7 @@ var SettingsModal = ({
9545
9546
  onClearAll: onClearMemory
9546
9547
  }
9547
9548
  ),
9548
- activeTab === "project-memory" && enableProjects && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9549
+ activeTab === "project-memory" && showMemoryTab && enableProjects && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9549
9550
  MemoryTabContent,
9550
9551
  {
9551
9552
  items: projectMemoryItems,
@@ -10731,6 +10732,7 @@ var ChatUIView = ({
10731
10732
  sidebarRenderAfterHeader,
10732
10733
  sidebarRenderFooter,
10733
10734
  showSettings,
10735
+ showMemoryTab,
10734
10736
  showModelSelector,
10735
10737
  showThinking,
10736
10738
  thinkingDefaultOpen,
@@ -10999,6 +11001,7 @@ var ChatUIView = ({
10999
11001
  onDeleteMemory: globalMemory ? (key) => globalMemory.remove(key) : void 0,
11000
11002
  onClearMemory: globalMemory ? () => globalMemory.clear() : void 0,
11001
11003
  onSave: savePersonalization,
11004
+ showMemoryTab,
11002
11005
  enableProjects: projects.length > 0,
11003
11006
  projectMemoryItems,
11004
11007
  onDeleteProjectMemory: projectMemory ? (key) => projectMemory.remove(key) : void 0,
@@ -11039,6 +11042,7 @@ var ChatUIWithHook = ({
11039
11042
  sidebarRenderAfterHeader,
11040
11043
  sidebarRenderFooter,
11041
11044
  showSettings = true,
11045
+ showMemoryTab = true,
11042
11046
  showModelSelector = true,
11043
11047
  systemPrompt,
11044
11048
  contextCompressionThreshold = 20,
@@ -11131,6 +11135,7 @@ var ChatUIWithHook = ({
11131
11135
  sidebarRenderAfterHeader,
11132
11136
  sidebarRenderFooter,
11133
11137
  showSettings,
11138
+ showMemoryTab,
11134
11139
  showModelSelector,
11135
11140
  showThinking,
11136
11141
  thinkingDefaultOpen,
@@ -11154,6 +11159,7 @@ var ChatUI = (props) => {
11154
11159
  sidebarRenderAfterHeader,
11155
11160
  sidebarRenderFooter,
11156
11161
  showSettings = true,
11162
+ showMemoryTab: chatStateShowMemoryTab = true,
11157
11163
  showModelSelector = true,
11158
11164
  showThinking = true,
11159
11165
  thinkingDefaultOpen = false,
@@ -11175,6 +11181,7 @@ var ChatUI = (props) => {
11175
11181
  sidebarRenderAfterHeader,
11176
11182
  sidebarRenderFooter,
11177
11183
  showSettings,
11184
+ showMemoryTab: chatStateShowMemoryTab,
11178
11185
  showModelSelector,
11179
11186
  showThinking,
11180
11187
  thinkingDefaultOpen,