@e-llm-studio/instant-learning 1.3.0-alpha.151 → 1.3.0-alpha.152

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.
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import{useState as a,Fragment as r}from"react";import{ChevronRight as t,ChevronLeft as n,Search as o,SlidersHorizontal as d,X as s,LayoutDashboard as c,BookmarkCheck as u}from"lucide-react";import{cx as b,getGuidelineId as v}from"../utils.js";import y from"./GuidelineLibrary.module.css.js";import{GuidelineLibraryCard as p}from"./GuidelineLibraryCard.js";import{GuidelineTooltip as m}from"./GuidelineTooltip.js";import{TreeSidebar as h}from"@e-llm-studio/creative-workspace-ui-component";function S(a){var r=a.classNames,t=a.styles;return l("article",e({className:b(y.skeletonCard,null==r?void 0:r.libraryCard),style:null==t?void 0:t.libraryCard},{children:[l("div",e({className:y.skeletonHeader},{children:[l("div",e({className:y.skeletonHeaderContent},{children:[i("div",{className:y.skeletonTitle}),i("div",{className:y.skeletonDate})]})),l("div",e({className:y.skeletonActions},{children:[i("div",{className:y.skeletonActionButton}),i("div",{className:y.skeletonActionButton})]}))]})),l("div",e({className:y.skeletonDescription},{children:[i("div",{className:y.skeletonDescriptionLine}),i("div",{className:y.skeletonDescriptionLine})]})),l("div",e({className:y.skeletonFooter},{children:[l("div",e({className:y.skeletonFooterIcons},{children:[i("div",{className:y.skeletonFooterIcon}),i("div",{className:y.skeletonFooterIcon})]})),i("div",{className:y.skeletonButton})]}))]}))}var C=[0,1,1,2,0,1,2,1];function N(){return i("div",e({className:y.treeSidebarSkeleton},{children:C.map(function(a,r){return l("div",e({className:y.treeSidebarSkeletonRow,style:{paddingLeft:"".concat(1.25*a,"rem")}},{children:[i("div",{className:y.treeSidebarSkeletonIcon}),i("div",{className:y.treeSidebarSkeletonLine,style:{width:"".concat(65-10*a,"%")}})]}),r)})}))}function L(C){var L,g,k,T,f,I,D,B=C.guidelines,A=C.guidelineSections,W=C.cartGuidelineIds,E=C.emptyTitle,F=C.emptyDescription,G=C.addToCartLabel,x=C.addedToCartLabel,w=C.selectLabel,H=C.selectedLabel,P=C.exploreLabel;C.showMoreLabel,C.showLessLabel,C.initialVisibleCount,C.showRecentlyUsedTab;var O=C.onToggleGuideline,j=C.onPreviewGuideline,V=C.onExploreILGuideline,M=C.classNames,R=C.styles,U=C.customIcons,q=C.subTitleLayout,z=C.formatAddedOnLabel,J=C.onEditGuideline,K=C.onDuplicateGuideline,Q=C.onDeleteGuideline,X=C.hideEditOption,Y=C.hideDuplicateOption,Z=C.hideDeleteOption,$=C.onTabSelection,_=C.searchProps;C.treeSearchProps;var ee=C.filterProps,le=C.showDashboardButton,ie=void 0!==le&&le,ae=C.onDashboardClick,re=C.isLoading,te=C.instantLearning,ne=C.fetchWishlistStatus,oe=C.onWishlistToggle,de=C.onVersionSelect,se=C.treeSidebarProps,ce=C.isTreeSidebarLoading,ue=C.cartAction,be=C.isILMarketplace,ve=void 0!==be&&be,ye=C.handleViewButtonCallback,pe=C.handlePreviewButtonCallback,me=C.scopeLabel,he=void 0===me?"Scope":me,Se=a(!1),Ce=Se[0],Ne=Se[1],Le=function(a){var r,t,n,o=a.id,d=a.isDisabled,s=null!==(r=a.isActive)&&void 0!==r&&r,c=a.title,v=a.count,p=null!==(t=a.description)&&void 0!==t?t:"",h=null!==(n=a.icon)&&void 0!==n?n:i(u,{className:y.tabIcon,strokeWidth:2}),S=l("button",e({type:"button",onClick:function(){d||null==$||$(o)},disabled:d,className:b(y.tabButton,s?y.tabButtonActive:y.tabButtonInactive,s?null==M?void 0:M.libraryTabActive:null==M?void 0:M.libraryTabInactive,null==M?void 0:M.libraryTab),style:e(e({},null==R?void 0:R.libraryTab),s?null==R?void 0:R.libraryTabActive:null==R?void 0:R.libraryTabInactive)},{children:[h,i("span",e({className:y.tabLabel},{children:c})),"number"==typeof v&&i("span",e({className:b(y.tabBadge,s?y.tabBadgeActive:y.tabBadgeInactive)},{children:v}))]}));return p?i(m,e({content:p,side:"bottom",maxWidth:220},{children:S})):S};return l("section",e({className:b(y.library,null==M?void 0:M.library),style:null==R?void 0:R.library},{children:[l("div",e({className:b(y.libraryTabsContainer,null==M?void 0:M.libraryTabs),style:null==R?void 0:R.libraryTabs},{children:[i("div",e({className:y.libraryTabsScrollArea},{children:null==A?void 0:A.map(function(e){return i(r,{children:Le(e)},e.id)})})),ue]})),l("div",e({className:b(y.guidelineLibraryContent,null==M?void 0:M.guideLineLibraryContent),style:null==R?void 0:R.guideLineLibraryContent},{children:[se&&l("div",e({className:b(y.treeSidebarWrapper,Ce?y.treeSidebarCollapsed:y.treeSidebarExpanded,null==M?void 0:M.treeSidebarWrapper,Ce&&(null==M?void 0:M.treeSidebarCollapsedWrapper)),style:e(e({},null==R?void 0:R.treeSidebarWrapper),Ce&&(null==R?void 0:R.treeSidebarCollapsedWrapper))},{children:[l("div",e({className:b(y.treeSidebarHeading,Ce&&y.treeSidebarHeadingCollapsed,null==M?void 0:M.treeSidebarHeading),style:null==R?void 0:R.treeSidebarHeading},{children:[!Ce&&i("p",e({className:b(y.treeSidebarHeadingText,null==M?void 0:M.treeSidebarHeadingText),style:null==R?void 0:R.treeSidebarHeadingText},{children:he})),i("button",e({type:"button",onClick:function(){return Ne(function(e){return!e})},"aria-label":Ce?"Expand scope sidebar":"Collapse scope sidebar","aria-expanded":!Ce,title:Ce?"Expand scope sidebar":"Collapse scope sidebar",className:b(y.treeSidebarCollapseButton,null==M?void 0:M.treeSidebarCollapseButton),style:null==R?void 0:R.treeSidebarCollapseButton},{children:i(Ce?t:n,{strokeWidth:2,className:b(y.treeSidebarCollapseIcon,null==M?void 0:M.treeSidebarCollapseIcon),style:null==R?void 0:R.treeSidebarCollapseIcon})}))]})),!Ce&&(ce?i(N,{}):i(h,e({},se)))]})),l("div",e({className:b(y.guideLineLibraryCardContainer,null==M?void 0:M.guideLineLibraryCardContainer),style:null==R?void 0:R.guideLineLibraryCardContainer},{children:[(_||ee||ie)&&l("div",e({className:b(y.libraryControls,null==M?void 0:M.libraryControls),style:null==R?void 0:R.libraryControls},{children:[_&&l("label",e({className:b(y.librarySearchWrapper,null==M?void 0:M.librarySearchWrapper),style:null==R?void 0:R.librarySearchWrapper},{children:[i(o,{className:b(y.librarySearchIcon,null==M?void 0:M.librarySearchIcon),style:null==R?void 0:R.librarySearchIcon,strokeWidth:2}),i("input",{type:"search",value:_.value,onChange:function(e){return _.onChange(e.target.value)},placeholder:null!==(L=_.placeholder)&&void 0!==L?L:"Search guidelines","aria-label":null!==(g=_.ariaLabel)&&void 0!==g?g:"Search guidelines",className:b(y.librarySearchInput,null==M?void 0:M.librarySearchInput),style:null==R?void 0:R.librarySearchInput})]})),ee&&l("div",e({className:b(y.libraryFilterButton,null==M?void 0:M.libraryFilterButton),style:null==R?void 0:R.libraryFilterButton},{children:[l("button",e({type:"button",onClick:ee.onClick,"aria-label":null!==(T=null!==(k=ee.ariaLabel)&&void 0!==k?k:ee.label)&&void 0!==T?T:"Filters",className:y.libraryFilterButtonText},{children:[null!==(f=ee.icon)&&void 0!==f?f:i(d,{className:b(y.libraryFilterIcon,null==M?void 0:M.libraryFilterIcon),style:null==R?void 0:R.libraryFilterIcon,strokeWidth:2}),i("span",{children:null!==(I=ee.label)&&void 0!==I?I:"Filters"}),void 0!==ee.activeCount&&ee.activeCount>0&&i("span",e({className:y.libraryFilterBadge},{children:ee.activeCount}))]})),void 0!==ee.activeCount&&ee.activeCount>0&&ee.onClear&&l("button",e({type:"button",onClick:function(e){var l;e.stopPropagation(),null===(l=ee.onClear)||void 0===l||l.call(ee)},"aria-label":"Clear all filters",className:y.libraryFilterClearButton},{children:[i("span",{children:null!==(D=ee.clearLabel)&&void 0!==D?D:"clear all"}),i(s,{className:y.libraryFilterClearIcon,strokeWidth:2})]}))]})),ie&&l("button",e({type:"button",onClick:ae,"aria-label":"Dashboard",className:b(y.libraryDashboardButton,null==M?void 0:M.libraryDashboardButton),style:null==R?void 0:R.libraryDashboardButton},{children:[i(c,{className:b(y.libraryDashboardIcon,null==M?void 0:M.libraryDashboardIcon),style:null==R?void 0:R.libraryDashboardIcon,strokeWidth:2}),i("span",{children:"Dashboard"})]}))]})),re?i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:Array.from({length:4}).map(function(e,l){return i(S,{classNames:M,styles:R},"skeleton-".concat(l))})}))})):0===B.length?l("div",e({className:b(y.libraryEmptyState,null==M?void 0:M.libraryEmptyState),style:null==R?void 0:R.libraryEmptyState},{children:[i("p",e({className:b(y.libraryEmptyTitle,null==M?void 0:M.libraryEmptyTitle),style:null==R?void 0:R.libraryEmptyTitle},{children:E})),i("p",e({className:b(y.libraryEmptyDescription,null==M?void 0:M.libraryEmptyDescription),style:null==R?void 0:R.libraryEmptyDescription},{children:F}))]})):i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:B.map(function(e){return i(p,{guideline:e,isSelected:W.includes(v(e)),addToCartLabel:G,addedToCartLabel:x,selectLabel:w,selectedLabel:H,exploreLabel:P,onToggle:O,onPreview:j,onExplore:V,onEdit:J,onDuplicate:K,onDelete:Q,hideEditOption:X,hideDuplicateOption:Y,hideDeleteOption:Z,classNames:M,styles:R,customIcons:U,subTitleLayout:q,formatAddedOnLabel:z,instantLearning:te,fetchWishlistStatus:ne,onWishlistToggle:oe,onVersionSelect:de,isILMarketplace:ve,handleViewButtonCallback:ye,handlePreviewButtonCallback:pe},v(e))})}))}))]}))]}))]}))}export{L as GuidelineLibrary};
1
+ import{__assign as e}from"tslib";import{jsxs as l,jsx as i}from"react/jsx-runtime";import{useState as a,Fragment as r}from"react";import{ChevronRight as t,ChevronLeft as n,Search as o,SlidersHorizontal as d,X as s,LayoutDashboard as c,BookmarkCheck as u}from"lucide-react";import{cx as b,getGuidelineId as v}from"../utils.js";import y from"./GuidelineLibrary.module.css.js";import{GuidelineLibraryCard as p}from"./GuidelineLibraryCard.js";import{GuidelineTooltip as m}from"./GuidelineTooltip.js";import{TreeSidebar as h}from"@e-llm-studio/creative-workspace-ui-component";function S(a){var r=a.classNames,t=a.styles;return l("article",e({className:b(y.skeletonCard,null==r?void 0:r.libraryCard),style:null==t?void 0:t.libraryCard},{children:[l("div",e({className:y.skeletonHeader},{children:[l("div",e({className:y.skeletonHeaderContent},{children:[i("div",{className:y.skeletonTitle}),i("div",{className:y.skeletonDate})]})),l("div",e({className:y.skeletonActions},{children:[i("div",{className:y.skeletonActionButton}),i("div",{className:y.skeletonActionButton})]}))]})),l("div",e({className:y.skeletonDescription},{children:[i("div",{className:y.skeletonDescriptionLine}),i("div",{className:y.skeletonDescriptionLine})]})),l("div",e({className:y.skeletonFooter},{children:[l("div",e({className:y.skeletonFooterIcons},{children:[i("div",{className:y.skeletonFooterIcon}),i("div",{className:y.skeletonFooterIcon})]})),i("div",{className:y.skeletonButton})]}))]}))}var C=[0,1,1,2,0,1,2,1];function N(){return i("div",e({className:y.treeSidebarSkeleton},{children:C.map(function(a,r){return l("div",e({className:y.treeSidebarSkeletonRow,style:{paddingLeft:"".concat(1.25*a,"rem")}},{children:[i("div",{className:y.treeSidebarSkeletonIcon}),i("div",{className:y.treeSidebarSkeletonLine,style:{width:"".concat(65-10*a,"%")}})]}),r)})}))}function L(C){var L,g,k,T,f,I,D,B=C.guidelines,A=C.guidelineSections,W=C.cartGuidelineIds,E=C.emptyTitle,F=C.emptyDescription,G=C.addToCartLabel,x=C.addedToCartLabel,w=C.selectLabel,H=C.selectedLabel,P=C.exploreLabel;C.showMoreLabel,C.showLessLabel,C.initialVisibleCount,C.showRecentlyUsedTab;var O=C.onToggleGuideline,j=C.onPreviewGuideline,V=C.onExploreILGuideline,M=C.classNames,R=C.styles,U=C.customIcons,q=C.subTitleLayout,z=C.formatAddedOnLabel,J=C.onEditGuideline,K=C.onDuplicateGuideline,Q=C.onDeleteGuideline,X=C.hideEditOption,Y=C.hideDuplicateOption,Z=C.hideDeleteOption,$=C.onTabSelection,_=C.searchProps;C.treeSearchProps;var ee=C.filterProps,le=C.showDashboardButton,ie=void 0!==le&&le,ae=C.onDashboardClick,re=C.isLoading,te=C.instantLearning,ne=C.fetchWishlistStatus,oe=C.onWishlistToggle,de=C.onVersionSelect,se=C.treeSidebarProps,ce=C.isTreeSidebarLoading,ue=C.cartAction,be=C.isILMarketplace,ve=void 0!==be&&be,ye=C.handleViewButtonCallback,pe=C.handlePreviewButtonCallback,me=a(!1),he=me[0],Se=me[1],Ce=function(a){var r,t,n,o=a.id,d=a.isDisabled,s=null!==(r=a.isActive)&&void 0!==r&&r,c=a.title,v=a.count,p=null!==(t=a.description)&&void 0!==t?t:"",h=null!==(n=a.icon)&&void 0!==n?n:i(u,{className:y.tabIcon,strokeWidth:2}),S=l("button",e({type:"button",onClick:function(){d||null==$||$(o)},disabled:d,className:b(y.tabButton,s?y.tabButtonActive:y.tabButtonInactive,s?null==M?void 0:M.libraryTabActive:null==M?void 0:M.libraryTabInactive,null==M?void 0:M.libraryTab),style:e(e({},null==R?void 0:R.libraryTab),s?null==R?void 0:R.libraryTabActive:null==R?void 0:R.libraryTabInactive)},{children:[h,i("span",e({className:y.tabLabel},{children:c})),"number"==typeof v&&i("span",e({className:b(y.tabBadge,s?y.tabBadgeActive:y.tabBadgeInactive)},{children:v}))]}));return p?i(m,e({content:p,side:"bottom",maxWidth:220},{children:S})):S};return l("section",e({className:b(y.library,null==M?void 0:M.library),style:null==R?void 0:R.library},{children:[l("div",e({className:b(y.libraryTabsContainer,null==M?void 0:M.libraryTabs),style:null==R?void 0:R.libraryTabs},{children:[i("div",e({className:y.libraryTabsScrollArea},{children:null==A?void 0:A.map(function(e){return i(r,{children:Ce(e)},e.id)})})),ue]})),l("div",e({className:b(y.guidelineLibraryContent,null==M?void 0:M.guideLineLibraryContent),style:null==R?void 0:R.guideLineLibraryContent},{children:[se&&l("div",e({className:b(y.treeSidebarWrapper,he?y.treeSidebarCollapsed:y.treeSidebarExpanded,null==M?void 0:M.treeSidebarWrapper,he&&(null==M?void 0:M.treeSidebarCollapsedWrapper)),style:e(e({},null==R?void 0:R.treeSidebarWrapper),he&&(null==R?void 0:R.treeSidebarCollapsedWrapper))},{children:[l("div",e({className:b(y.treeSidebarHeading,he&&y.treeSidebarHeadingCollapsed,null==M?void 0:M.treeSidebarHeading),style:null==R?void 0:R.treeSidebarHeading},{children:[!he&&i("p",e({className:b(y.treeSidebarHeadingText,null==M?void 0:M.treeSidebarHeadingText),style:null==R?void 0:R.treeSidebarHeadingText},{children:"Scope"})),i("button",e({type:"button",onClick:function(){return Se(function(e){return!e})},"aria-label":he?"Expand scope sidebar":"Collapse scope sidebar","aria-expanded":!he,title:he?"Expand scope sidebar":"Collapse scope sidebar",className:b(y.treeSidebarCollapseButton,null==M?void 0:M.treeSidebarCollapseButton),style:null==R?void 0:R.treeSidebarCollapseButton},{children:i(he?t:n,{strokeWidth:2,className:b(y.treeSidebarCollapseIcon,null==M?void 0:M.treeSidebarCollapseIcon),style:null==R?void 0:R.treeSidebarCollapseIcon})}))]})),!he&&(ce?i(N,{}):i(h,e({},se)))]})),l("div",e({className:b(y.guideLineLibraryCardContainer,null==M?void 0:M.guideLineLibraryCardContainer),style:null==R?void 0:R.guideLineLibraryCardContainer},{children:[(_||ee||ie)&&l("div",e({className:b(y.libraryControls,null==M?void 0:M.libraryControls),style:null==R?void 0:R.libraryControls},{children:[_&&l("label",e({className:b(y.librarySearchWrapper,null==M?void 0:M.librarySearchWrapper),style:null==R?void 0:R.librarySearchWrapper},{children:[i(o,{className:b(y.librarySearchIcon,null==M?void 0:M.librarySearchIcon),style:null==R?void 0:R.librarySearchIcon,strokeWidth:2}),i("input",{type:"search",value:_.value,onChange:function(e){return _.onChange(e.target.value)},placeholder:null!==(L=_.placeholder)&&void 0!==L?L:"Search guidelines","aria-label":null!==(g=_.ariaLabel)&&void 0!==g?g:"Search guidelines",className:b(y.librarySearchInput,null==M?void 0:M.librarySearchInput),style:null==R?void 0:R.librarySearchInput})]})),ee&&l("div",e({className:b(y.libraryFilterButton,null==M?void 0:M.libraryFilterButton),style:null==R?void 0:R.libraryFilterButton},{children:[l("button",e({type:"button",onClick:ee.onClick,"aria-label":null!==(T=null!==(k=ee.ariaLabel)&&void 0!==k?k:ee.label)&&void 0!==T?T:"Filters",className:y.libraryFilterButtonText},{children:[null!==(f=ee.icon)&&void 0!==f?f:i(d,{className:b(y.libraryFilterIcon,null==M?void 0:M.libraryFilterIcon),style:null==R?void 0:R.libraryFilterIcon,strokeWidth:2}),i("span",{children:null!==(I=ee.label)&&void 0!==I?I:"Filters"}),void 0!==ee.activeCount&&ee.activeCount>0&&i("span",e({className:y.libraryFilterBadge},{children:ee.activeCount}))]})),void 0!==ee.activeCount&&ee.activeCount>0&&ee.onClear&&l("button",e({type:"button",onClick:function(e){var l;e.stopPropagation(),null===(l=ee.onClear)||void 0===l||l.call(ee)},"aria-label":"Clear all filters",className:y.libraryFilterClearButton},{children:[i("span",{children:null!==(D=ee.clearLabel)&&void 0!==D?D:"clear all"}),i(s,{className:y.libraryFilterClearIcon,strokeWidth:2})]}))]})),ie&&l("button",e({type:"button",onClick:ae,"aria-label":"Dashboard",className:b(y.libraryDashboardButton,null==M?void 0:M.libraryDashboardButton),style:null==R?void 0:R.libraryDashboardButton},{children:[i(c,{className:b(y.libraryDashboardIcon,null==M?void 0:M.libraryDashboardIcon),style:null==R?void 0:R.libraryDashboardIcon,strokeWidth:2}),i("span",{children:"Dashboard"})]}))]})),re?i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:Array.from({length:4}).map(function(e,l){return i(S,{classNames:M,styles:R},"skeleton-".concat(l))})}))})):0===B.length?l("div",e({className:b(y.libraryEmptyState,null==M?void 0:M.libraryEmptyState),style:null==R?void 0:R.libraryEmptyState},{children:[i("p",e({className:b(y.libraryEmptyTitle,null==M?void 0:M.libraryEmptyTitle),style:null==R?void 0:R.libraryEmptyTitle},{children:E})),i("p",e({className:b(y.libraryEmptyDescription,null==M?void 0:M.libraryEmptyDescription),style:null==R?void 0:R.libraryEmptyDescription},{children:F}))]})):i("div",e({className:b(y.libraryScrollArea,null==M?void 0:M.libraryScrollArea),style:null==R?void 0:R.libraryScrollArea},{children:i("div",e({className:b(y.libraryGrid,null==M?void 0:M.libraryGrid),style:null==R?void 0:R.libraryGrid},{children:B.map(function(e){return i(p,{guideline:e,isSelected:W.includes(v(e)),addToCartLabel:G,addedToCartLabel:x,selectLabel:w,selectedLabel:H,exploreLabel:P,onToggle:O,onPreview:j,onExplore:V,onEdit:J,onDuplicate:K,onDelete:Q,hideEditOption:X,hideDuplicateOption:Y,hideDeleteOption:Z,classNames:M,styles:R,customIcons:U,subTitleLayout:q,formatAddedOnLabel:z,instantLearning:te,fetchWishlistStatus:ne,onWishlistToggle:oe,onVersionSelect:de,isILMarketplace:ve,handleViewButtonCallback:ye,handlePreviewButtonCallback:pe},v(e))})}))}))]}))]}))]}))}export{L as GuidelineLibrary};
2
2
  //# sourceMappingURL=GuidelineLibrary.js.map
@@ -1,2 +1,2 @@
1
- var e={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},t={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},a={applicationName:"Instant Learning Mode",applicationId:"6a329da7232364c90e1b6a00",moduleId:"6a329da7232364c90e1b6a42",applicationModuleId:"6a329da7232364c90e1b6a3e",applicationResourceId:"6a32a08c232364c90e1b6a56",appsecRbacUrl:"https://dev-cw-appsec.techo.camp/granularApi",appsecBaseUrl:"https://dev-cw-appsec.techo.camp"},i={IMAGES:"images",MEETING_RECORDINGS:"meeting-recordings",DOCUMENTS:"documents",STORMEE_CONVERSATIONS:"stormee-conversations",REQUIREMENT_DOCUMENTS:"requirement-documents",CODEBASE_KNOWLEDGE:"codebase-knowledge",GUIDELINES:"guidelines"},o={GUIDELINE:"guideline",CONTEXT:"context"},n={IN_PROGRESS:"In-Progress",INGESTION_COMPLETE:"Completed",INGESTION_FAILED:"Failed"},s="GUIDELINE_SESSION_ID";export{o as ADD_CONTEXT_FILE_TYPES,t as DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,e as DEFAULT_GUIDELINE_LABELS,a as FALLBACK_RBAC_CONFIG,n as FILE_INGESTION_STATUS,s as GUIDELINE_SESSION_ID,i as SOURCE_IDS};
1
+ var e={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},t={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},i={IMAGES:"images",MEETING_RECORDINGS:"meeting-recordings",DOCUMENTS:"documents",STORMEE_CONVERSATIONS:"stormee-conversations",REQUIREMENT_DOCUMENTS:"requirement-documents",CODEBASE_KNOWLEDGE:"codebase-knowledge",GUIDELINES:"guidelines"},a={GUIDELINE:"guideline",CONTEXT:"context"},o={IN_PROGRESS:"In-Progress",INGESTION_COMPLETE:"Completed",INGESTION_FAILED:"Failed"},n="GUIDELINE_SESSION_ID";export{a as ADD_CONTEXT_FILE_TYPES,t as DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,e as DEFAULT_GUIDELINE_LABELS,o as FILE_INGESTION_STATUS,n as GUIDELINE_SESSION_ID,i as SOURCE_IDS};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as t,__generator as n}from"tslib";import{getGuidelineRuntimeConfig as e}from"./guideline.runtime.config.js";function a(e,a,i){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,fetch("".concat(e,"/instant_learning/ilotj/application/getRBACAuditConfig/").concat(i),{headers:{accept:"application/json, text/plain, */*",authorization:"Bearer ".concat(a)}})];case 1:if(!(t=n.sent()).ok)throw new Error("Failed to fetch RBAC config: ".concat(t.status));return[4,t.json()];case 2:return[2,n.sent().data]}})})}var i=function(a){return t(void 0,void 0,void 0,function(){return n(this,function(t){return[2,(n="put",i="/cw_chat_management/cart/guidelines/".concat(encodeURIComponent(a)),o={data:{data:[]},config:{headers:{"Content-Type":"application/json"}},errorMessage:"Failed to remove instant learning guideline from cart",baseURL:e().apiBaseUrls.chatManagement},e().apiAdapter.makeApiRequest(n,i,o))];var n,i,o})})};export{a as fetchRBACConfig,i as removeInstantLearningGuidelinesFromCart};
1
+ import{__awaiter as e,__generator as n}from"tslib";import{getGuidelineRuntimeConfig as t}from"./guideline.runtime.config.js";var a=function(a){return e(void 0,void 0,void 0,function(){return n(this,function(e){return[2,(n="put",i="/cw_chat_management/cart/guidelines/".concat(encodeURIComponent(a)),r={data:{data:[]},config:{headers:{"Content-Type":"application/json"}},errorMessage:"Failed to remove instant learning guideline from cart",baseURL:t().apiBaseUrls.chatManagement},t().apiAdapter.makeApiRequest(n,i,r))];var n,i,r})})};export{a as removeInstantLearningGuidelinesFromCart};
2
2
  //# sourceMappingURL=instant-learning.api.js.map