@e-llm-studio/requirement-ai 0.0.124 → 0.0.125
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/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/types/src/features/RequirementAI/components/story-screen/StreamingScreenSidebar.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),i=require("lucide-react"),n=require("react"),a=require("./ReplaceLearnedTags.js"),l=require("./StreamingScreenSidebar.module.css.js"),r=require("../../utils/helpers.js"),o=require("../ai-reasoning/AiReasoningCitation.js"),d=function(t){var i=t.customStyles;return s.jsxs("div",e.__assign({className:l.default.skeleton,style:i},{children:[s.jsx("div",{className:l.default.skeletonLineSmall,style:null==i?void 0:i.skeletonLine}),s.jsx("div",{className:l.default.skeletonLineLarge,style:null==i?void 0:i.skeletonLine})]}))};exports.default=function(c){var u,g,f=c.isSidebarExpanded,m=c.selectedStreamingStoryIndex,v=c.setSelectedStreamingStoryIndex,_=c.streamingUserStories,p=c.isStreamingScreen,y=c.artifactTitleIds,h=t.useRequirementAI(),x=h.customStyles,j=h.aiReasoning,S=null===(u=null==x?void 0:x.userStoryScreenStyles)||void 0===u?void 0:u.streamingSidebar,I=n.useState({}),N=I[0],k=I[1],b=null===(g=_||[])||void 0===g?void 0:g.map(function(e,s){return{artifactTitleId:y[s]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return s.jsx("div",e.__assign({className:"".concat(l.default.container," ").concat(f?l.default.expanded:l.default.collapsed),style:null==S?void 0:S.container},{children:s.jsxs("div",e.__assign({className:l.default.sidebar,style:null==S?void 0:S.sidebarInner},{children:[s.jsx("div",e.__assign({className:l.default.header,style:null==S?void 0:S.header},{children:s.jsx("h2",e.__assign({className:l.default.title,style:null==S?void 0:S.title},{children:"User stories"}))})),s.jsx("div",e.__assign({className:l.default.storiesContainer,style:null==S?void 0:S.storiesContainer},{children:b.length>0?s.jsx(s.Fragment,{children:b.map(function(t,n){var d,c,u,g,f=r.extractAllAiReasoningIds(t.description).map(function(e){return j.find(function(s){return s.id.toString()===e})}).filter(Boolean);return s.jsx("div",e.__assign({onClick:function(){v(n)},className:"".concat(l.default.storyItem," ").concat(n===b.length-1?l.default.borderBottom:""," ").concat(m===n?l.default.activeStory:""),style:e.__assign(e.__assign({},null==S?void 0:S.storyItem),m===n?null==S?void 0:S.activeStory:{})},{children:s.jsxs("div",e.__assign({className:l.default.storyContent,style:null==S?void 0:S.storyContent},{children:[s.jsxs("div",e.__assign({className:l.default.storyHeader,style:null==S?void 0:S.storyHeader},{children:[s.jsx("span",e.__assign({className:l.default.iconGroup},{children:s.jsx(i.Bookmark,{className:l.default.bookmarkIcon,style:null==S?void 0:S.bookmarkIcon})})),p&&s.jsx("span",e.__assign({className:l.default.badge,style:null==S?void 0:S.badge},{children:"Generating..."}))]})),s.jsxs("span",e.__assign({className:l.default.storyTitle,style:null==S?void 0:S.storyTitle},{children:[s.jsxs("span",{children:[n+1,"."]}),a.replaceLearnedTagsWithInfo(t.title)]})),s.jsxs("span",e.__assign({className:l.default.description,style:null==S?void 0:S.description},{children:[(d=t.artifactId,c=t.description,u=N[d],g=r.stripAiReasoningAnchors(c),u?g:g.length>116?g.slice(0,116)+"...":g),t.description.length>116&&s.jsx("button",e.__assign({onClick:function(s){s.stopPropagation(),function(s){k(function(t){var i;return e.__assign(e.__assign({},t),((i={})[s]=!t[s],i))})}(t.artifactId)},className:l.default.moreButton,style:null==S?void 0:S.moreButton},{children:N[t.artifactId]?"less":"more"})),f.length>0&&s.jsx("span",e.__assign({className:l.default.aiReasoningContainer,onClick:function(e){return e.stopPropagation()},"data-sidebar-citation-streaming":"true"},{children:f.map(function(e){return s.jsx(o.default,{aiReason:e,isSourceHasHighlight:!1},null==e?void 0:e.id)})}))]}))]}))}),t.artifactId)})}):s.jsx(d,{customStyles:null==S?void 0:S.skeleton})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=StreamingScreenSidebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#d633840d;border-radius:.3rem;box-sizing:border-box;color:#d63384;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{box-sizing:border-box;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border-collapse:collapse;box-sizing:border-box;margin:20px 0;table-layout:fixed;width:100%}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#d633840d;border-radius:.3rem;box-sizing:border-box;color:#d63384;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{box-sizing:border-box;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border-collapse:collapse;box-sizing:border-box;margin:20px 0;table-layout:fixed;width:100%}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px}.UserStoryWithCitation-module_aiReasoningButton__-tprH{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;gap:2px;padding:2px 4px;vertical-align:middle}.UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6{color:#4b5563;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz{color:#cf4343;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_confidenceScoreContainer__zOE-E{position:absolute;right:12px;top:12px;z-index:10}.UserStoryWithCitation-module_confidenceScore__lhT4p{align-items:center;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:9999px;box-shadow:0 1px 2px #0000000d;color:#166534;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:700;gap:4px;padding:4px 8px}.UserStoryWithCitation-module_orderedList__E5PQa{counter-reset:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa>li{counter-increment:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:childItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:childItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:grandchildItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:grandchildItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) "." counter(grandchildItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}'));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}(),exports.default={container:"UserStoryWithCitation-module_container__YRdbR",wrapper:"UserStoryWithCitation-module_wrapper__wbnqg",heading1:"UserStoryWithCitation-module_heading1__KsWUO",heading2:"UserStoryWithCitation-module_heading2__GHshw",heading3:"UserStoryWithCitation-module_heading3__Jm9Xb",bold:"UserStoryWithCitation-module_bold__HenfX",paragraph:"UserStoryWithCitation-module_paragraph__a1-pc",orderedList:"UserStoryWithCitation-module_orderedList__E5PQa",unorderedList:"UserStoryWithCitation-module_unorderedList__SFvpc",inlineCode:"UserStoryWithCitation-module_inlineCode__5014y",blockCode:"UserStoryWithCitation-module_blockCode__pmHG5",learned:"UserStoryWithCitation-module_learned__0US6d",linkText:"UserStoryWithCitation-module_linkText__5kBNv",tableWrapper:"UserStoryWithCitation-module_tableWrapper__r94Fx",table:"UserStoryWithCitation-module_table__tEyKd",scrollContainer:"UserStoryWithCitation-module_scrollContainer__S-BtW",citationLoader:"UserStoryWithCitation-module_citationLoader__Op7Sm",aiReasoningButton:"UserStoryWithCitation-module_aiReasoningButton__-tprH",aiReasoningIconHighConfidence:"UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6",aiReasoningIconLowConfidence:"UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz",confidenceScoreContainer:"UserStoryWithCitation-module_confidenceScoreContainer__zOE-E",confidenceScore:"UserStoryWithCitation-module_confidenceScore__lhT4p"};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react"),n=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function(i){var t=i.setUserStory,s=i.setAiReasoning,o=i.setUserStoryCitations,a=i.onStreamingCompleted,u=i.isGraphQLCallInProgress,c=i.knowledgeBase,l=i.projectAnalyserSummary,_=i.dataSourceFiles,d=i.aiReasoning,p=i.setRedisValue,g=i.fetchCitationByBlock,v=r.useRef(new Set),m=r.useRef(new Set),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react"),n=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function(i){var t=i.setUserStory,s=i.setAiReasoning,o=i.setUserStoryCitations,a=i.onStreamingCompleted,u=i.isGraphQLCallInProgress,c=i.knowledgeBase,l=i.projectAnalyserSummary,_=i.dataSourceFiles,d=i.aiReasoning,p=i.setRedisValue,g=i.fetchCitationByBlock,v=r.useRef(new Set),m=r.useRef(new Set),b=r.useRef(null),f=r.useRef(null),y=r.useRef({gap_items_prompt:"",risk_items_prompt:""}),h=r.useRef(new Set);function N(r,n,i){var t,c;return e.__awaiter(this,void 0,void 0,function(){var l,_,d,p,N,k,R;return e.__generator(this,function(A){switch(A.label){case 0:l="",_="",A.label=1;case 1:return A.trys.push([1,3,4,7]),[4,g(r,i,n)];case 2:return d=A.sent(),s(function(r){var n,i=e.__spreadArray([],r,!0);return null===(n=d.response.ai_reasonings)||void 0===n||n.forEach(function(r){var n=i.findIndex(function(e){return e.id===r.id});-1!==n&&r.gap.length>0&&r.reason.length>0&&(i[n]=e.__assign({},r))}),i}),l=(null===(t=d.response)||void 0===t?void 0:t.gap_items_prompt)||"",_=(null===(c=d.response)||void 0===c?void 0:c.risk_items_prompt)||"",(l||_)&&(y.current={gap_items_prompt:l,risk_items_prompt:_}),o(function(r){var n,i,t,s,o,a,u,c,l,_,p,g,v,m;return e.__assign(e.__assign({},r),{appmod_citations:e.__spreadArray(e.__spreadArray([],null!==(n=r.appmod_citations)&&void 0!==n?n:[],!0),null!==(i=d.response.appmod_citations)&&void 0!==i?i:[],!0),audio_citations:e.__spreadArray(e.__spreadArray([],null!==(t=r.audio_citations)&&void 0!==t?t:[],!0),null!==(s=d.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:e.__spreadArray(e.__spreadArray([],null!==(o=r.file_citations)&&void 0!==o?o:[],!0),null!==(a=d.response.file_citations)&&void 0!==a?a:[],!0),image_citations:e.__spreadArray(e.__spreadArray([],null!==(u=r.image_citations)&&void 0!==u?u:[],!0),null!==(c=d.response.image_citations)&&void 0!==c?c:[],!0),rca_citations:e.__spreadArray(e.__spreadArray([],null!==(l=r.rca_citations)&&void 0!==l?l:[],!0),null!==(_=d.response.rca_citations)&&void 0!==_?_:[],!0),web_citations:e.__spreadArray(e.__spreadArray([],null!==(p=r.web_citations)&&void 0!==p?p:[],!0),null!==(g=d.response.web_citations)&&void 0!==g?g:[],!0),readfile_citations:e.__spreadArray(e.__spreadArray([],null!==(v=r.readfile_citations)&&void 0!==v?v:[],!0),null!==(m=d.response.readfile_citations)&&void 0!==m?m:[],!0)})}),[3,7];case 3:return p=A.sent(),console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",r.storyNumber,r.blockNumber,p),[3,7];case 4:return N="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),m.current.add(N),m.current.size!==v.current.size||u.current?[3,6]:(k=l||y.current.gap_items_prompt,R=_||y.current.risk_items_prompt,[4,a(k,R)]);case 5:A.sent(),v.current.clear(),m.current.clear(),b.current=null,f.current=null,y.current={gap_items_prompt:"",risk_items_prompt:""},h.current.clear(),A.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(r,i,a){try{var u=JSON.stringify(r);if(f.current===u)return;f.current=u;var g=[],m=[];r=r.map(function(r){var t;r=e.__assign(e.__assign({},r),{subBlockNumber:null!==(t=r.subBlockNumber)&&void 0!==t?t:"1"});var s="".concat(r.storyNumber,"-").concat(r.blockNumber,"-").concat(r.subBlockNumber);if(h.current.has(s))return null;h.current.add(s);var a=n.processAIReasoningFromBlocks(r.value,r.blockNumber,r.storyNumber,r.description),u=a.outputText,c=a.reasonings,l=a.gpt_citation,_=a.processedDescription;o(function(r){var n;return l.length>0&&((null==r?void 0:r.gpt_citations)||(r.gpt_citations=[]),null===(n=r.gpt_citations)||void 0===n||n.push.apply(n,l)),e.__assign({},r)}),g.push.apply(g,c),m.push(e.__spreadArray([],c,!0));var d="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber,"<SUB_BLOCK>").concat(r.subBlockNumber);return v.current.has(d)||(N(e.__assign(e.__assign({},r),{value:u,description:_}),c,i),v.current.add(d)),e.__assign(e.__assign({},r),{value:u,description:_})}).filter(Boolean),g.forEach(function(r){s(function(n){return n.find(function(e){return e.id===r.id})||n.push(r),e.__spreadArray([],n,!0)})}),r.length>0&&r.map(function(r,n){var i=r.title,s=r.section,o=r.value,u=r.storyNumber,g=r.description,v=r.blockNumber,f=r.big_enough,y=r.big_enough_decision_factors;t(function(r){var t,h,N,k,R,A,B,S,C,w=r.findIndex(function(e){return e.storyNumber===u});if("intro"===s)-1===w?r.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,description:g,storyNumber:u,sub_features:[],section:s,blockNumber:v,aiReasoning:m[n],big_enough:f,big_enough_decision_factors:y}):(r[w].value+=o,r[w].aiReasoning=r[w].aiReasoning||[],null===(N=null===(h=r[w])||void 0===h?void 0:h.aiReasoning)||void 0===N||N.push.apply(N,m[n]),r[w].big_enough=f,r[w].big_enough_decision_factors=y);else{r[w].sub_features||(r[w].sub_features=[]);var O=(null===(R=null===(k=r[w])||void 0===k?void 0:k.sub_features)||void 0===R?void 0:R.findIndex(function(e){return e.blockNumber===v}))||-1;if(-1===O)null===(B=null===(A=r[w])||void 0===A?void 0:A.sub_features)||void 0===B||B.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,storyNumber:u,blockNumber:v,section:s,aiReasoning:m[n],big_enough:f,big_enough_decision_factors:y});else{var E=null===(C=null===(S=null==r?void 0:r[w])||void 0===S?void 0:S.sub_features)||void 0===C?void 0:C[O];E.value=(E.value||"")+o,E.aiReasoning=E.aiReasoning||[],(t=E.aiReasoning).push.apply(t,m[n]),E.big_enough=f,E.big_enough_decision_factors=y}}var I=JSON.stringify(r);return b.current!==I&&(p({key:"streaming-redis-key-".concat(a),value:{mmvf_list:r,knowledgeBase:c,projectAnalyserSummary:l,dataSources_files:_,ai_reasonings:d}}),b.current=I),e.__spreadArray([],r,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}};
|
|
2
2
|
//# sourceMappingURL=useStreamContentHandler.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useRequirementAI as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useRequirementAI as r}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{Bookmark as l}from"lucide-react";import{useState as o}from"react";import{replaceLearnedTagsWithInfo as a}from"./ReplaceLearnedTags.js";import s from"./StreamingScreenSidebar.module.css.js";import{extractAllAiReasoningIds as c,stripAiReasoningAnchors as d}from"../../utils/helpers.js";import m from"../ai-reasoning/AiReasoningCitation.js";var u=function(n){var r=n.customStyles;return i("div",e({className:s.skeleton,style:r},{children:[t("div",{className:s.skeletonLineSmall,style:null==r?void 0:r.skeletonLine}),t("div",{className:s.skeletonLineLarge,style:null==r?void 0:r.skeletonLine})]}))},p=function(p){var v,y,f=p.isSidebarExpanded,h=p.selectedStreamingStoryIndex,g=p.setSelectedStreamingStoryIndex,S=p.streamingUserStories,N=p.isStreamingScreen,I=p.artifactTitleIds,b=r(),k=b.customStyles,C=b.aiReasoning,R=null===(v=null==k?void 0:k.userStoryScreenStyles)||void 0===v?void 0:v.streamingSidebar,j=o({}),x=j[0],L=j[1],T=null===(y=S||[])||void 0===y?void 0:y.map(function(e,t){return{artifactTitleId:I[t]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return t("div",e({className:"".concat(s.container," ").concat(f?s.expanded:s.collapsed),style:null==R?void 0:R.container},{children:i("div",e({className:s.sidebar,style:null==R?void 0:R.sidebarInner},{children:[t("div",e({className:s.header,style:null==R?void 0:R.header},{children:t("h2",e({className:s.title,style:null==R?void 0:R.title},{children:"User stories"}))})),t("div",e({className:s.storiesContainer,style:null==R?void 0:R.storiesContainer},{children:T.length>0?t(n,{children:T.map(function(n,r){var o,u,p,v,y=c(n.description).map(function(e){return C.find(function(t){return t.id.toString()===e})}).filter(Boolean);return t("div",e({onClick:function(){g(r)},className:"".concat(s.storyItem," ").concat(r===T.length-1?s.borderBottom:""," ").concat(h===r?s.activeStory:""),style:e(e({},null==R?void 0:R.storyItem),h===r?null==R?void 0:R.activeStory:{})},{children:i("div",e({className:s.storyContent,style:null==R?void 0:R.storyContent},{children:[i("div",e({className:s.storyHeader,style:null==R?void 0:R.storyHeader},{children:[t("span",e({className:s.iconGroup},{children:t(l,{className:s.bookmarkIcon,style:null==R?void 0:R.bookmarkIcon})})),N&&t("span",e({className:s.badge,style:null==R?void 0:R.badge},{children:"Generating..."}))]})),i("span",e({className:s.storyTitle,style:null==R?void 0:R.storyTitle},{children:[i("span",{children:[r+1,"."]}),a(n.title)]})),i("span",e({className:s.description,style:null==R?void 0:R.description},{children:[(o=n.artifactId,u=n.description,p=x[o],v=d(u),p?v:v.length>116?v.slice(0,116)+"...":v),n.description.length>116&&t("button",e({onClick:function(t){t.stopPropagation(),function(t){L(function(i){var n;return e(e({},i),((n={})[t]=!i[t],n))})}(n.artifactId)},className:s.moreButton,style:null==R?void 0:R.moreButton},{children:x[n.artifactId]?"less":"more"})),y.length>0&&t("span",e({className:s.aiReasoningContainer,onClick:function(e){return e.stopPropagation()},"data-sidebar-citation-streaming":"true"},{children:y.map(function(e){return t(m,{aiReason:e,isSourceHasHighlight:!1},null==e?void 0:e.id)})}))]}))]}))}),n.artifactId)})}):t(u,{customStyles:null==R?void 0:R.skeleton})}))]}))}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=StreamingScreenSidebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"UserStoryWithCitation-module_container__YRdbR",wrapper:"UserStoryWithCitation-module_wrapper__wbnqg",heading1:"UserStoryWithCitation-module_heading1__KsWUO",heading2:"UserStoryWithCitation-module_heading2__GHshw",heading3:"UserStoryWithCitation-module_heading3__Jm9Xb",bold:"UserStoryWithCitation-module_bold__HenfX",paragraph:"UserStoryWithCitation-module_paragraph__a1-pc",orderedList:"UserStoryWithCitation-module_orderedList__E5PQa",unorderedList:"UserStoryWithCitation-module_unorderedList__SFvpc",inlineCode:"UserStoryWithCitation-module_inlineCode__5014y",blockCode:"UserStoryWithCitation-module_blockCode__pmHG5",learned:"UserStoryWithCitation-module_learned__0US6d",linkText:"UserStoryWithCitation-module_linkText__5kBNv",tableWrapper:"UserStoryWithCitation-module_tableWrapper__r94Fx",table:"UserStoryWithCitation-module_table__tEyKd",scrollContainer:"UserStoryWithCitation-module_scrollContainer__S-BtW",citationLoader:"UserStoryWithCitation-module_citationLoader__Op7Sm",aiReasoningButton:"UserStoryWithCitation-module_aiReasoningButton__-tprH",aiReasoningIconHighConfidence:"UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6",aiReasoningIconLowConfidence:"UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz",confidenceScoreContainer:"UserStoryWithCitation-module_confidenceScoreContainer__zOE-E",confidenceScore:"UserStoryWithCitation-module_confidenceScore__lhT4p"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#d633840d;border-radius:.3rem;box-sizing:border-box;color:#d63384;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{box-sizing:border-box;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border-collapse:collapse;box-sizing:border-box;margin:20px 0;table-layout:fixed;width:100%}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px
|
|
1
|
+
var e={container:"UserStoryWithCitation-module_container__YRdbR",wrapper:"UserStoryWithCitation-module_wrapper__wbnqg",heading1:"UserStoryWithCitation-module_heading1__KsWUO",heading2:"UserStoryWithCitation-module_heading2__GHshw",heading3:"UserStoryWithCitation-module_heading3__Jm9Xb",bold:"UserStoryWithCitation-module_bold__HenfX",paragraph:"UserStoryWithCitation-module_paragraph__a1-pc",orderedList:"UserStoryWithCitation-module_orderedList__E5PQa",unorderedList:"UserStoryWithCitation-module_unorderedList__SFvpc",inlineCode:"UserStoryWithCitation-module_inlineCode__5014y",blockCode:"UserStoryWithCitation-module_blockCode__pmHG5",learned:"UserStoryWithCitation-module_learned__0US6d",linkText:"UserStoryWithCitation-module_linkText__5kBNv",tableWrapper:"UserStoryWithCitation-module_tableWrapper__r94Fx",table:"UserStoryWithCitation-module_table__tEyKd",scrollContainer:"UserStoryWithCitation-module_scrollContainer__S-BtW",citationLoader:"UserStoryWithCitation-module_citationLoader__Op7Sm",aiReasoningButton:"UserStoryWithCitation-module_aiReasoningButton__-tprH",aiReasoningIconHighConfidence:"UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6",aiReasoningIconLowConfidence:"UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz",confidenceScoreContainer:"UserStoryWithCitation-module_confidenceScoreContainer__zOE-E",confidenceScore:"UserStoryWithCitation-module_confidenceScore__lhT4p"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#d633840d;border-radius:.3rem;box-sizing:border-box;color:#d63384;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{box-sizing:border-box;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border-collapse:collapse;box-sizing:border-box;margin:20px 0;table-layout:fixed;width:100%}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px}.UserStoryWithCitation-module_aiReasoningButton__-tprH{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;gap:2px;padding:2px 4px;vertical-align:middle}.UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6{color:#4b5563;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz{color:#cf4343;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_confidenceScoreContainer__zOE-E{position:absolute;right:12px;top:12px;z-index:10}.UserStoryWithCitation-module_confidenceScore__lhT4p{align-items:center;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:9999px;box-shadow:0 1px 2px #0000000d;color:#166534;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:700;gap:4px;padding:4px 8px}.UserStoryWithCitation-module_orderedList__E5PQa{counter-reset:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa>li{counter-increment:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:childItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:childItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:grandchildItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:grandchildItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) "." counter(grandchildItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}'));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n,__awaiter as t,__generator as i}from"tslib";import{useRef as r}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function s(s){var a=s.setUserStory,u=s.setAiReasoning,c=s.setUserStoryCitations,l=s.onStreamingCompleted,d=s.isGraphQLCallInProgress,p=s.knowledgeBase,_=s.projectAnalyserSummary,m=s.dataSourceFiles,v=s.aiReasoning,
|
|
1
|
+
import{__assign as e,__spreadArray as n,__awaiter as t,__generator as i}from"tslib";import{useRef as r}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function s(s){var a=s.setUserStory,u=s.setAiReasoning,c=s.setUserStoryCitations,l=s.onStreamingCompleted,d=s.isGraphQLCallInProgress,p=s.knowledgeBase,_=s.projectAnalyserSummary,m=s.dataSourceFiles,v=s.aiReasoning,b=s.setRedisValue,g=s.fetchCitationByBlock,f=r(new Set),h=r(new Set),y=r(null),N=r(null),k=r({gap_items_prompt:"",risk_items_prompt:""}),B=r(new Set);function R(r,o,s){var a,p;return t(this,void 0,void 0,function(){var t,_,m,v,b,R,S;return i(this,function(i){switch(i.label){case 0:t="",_="",i.label=1;case 1:return i.trys.push([1,3,4,7]),[4,g(r,s,o)];case 2:return m=i.sent(),u(function(t){var i,r=n([],t,!0);return null===(i=m.response.ai_reasonings)||void 0===i||i.forEach(function(n){var t=r.findIndex(function(e){return e.id===n.id});-1!==t&&n.gap.length>0&&n.reason.length>0&&(r[t]=e({},n))}),r}),t=(null===(a=m.response)||void 0===a?void 0:a.gap_items_prompt)||"",_=(null===(p=m.response)||void 0===p?void 0:p.risk_items_prompt)||"",(t||_)&&(k.current={gap_items_prompt:t,risk_items_prompt:_}),c(function(t){var i,r,o,s,a,u,c,l,d,p,_,v,b,g;return e(e({},t),{appmod_citations:n(n([],null!==(i=t.appmod_citations)&&void 0!==i?i:[],!0),null!==(r=m.response.appmod_citations)&&void 0!==r?r:[],!0),audio_citations:n(n([],null!==(o=t.audio_citations)&&void 0!==o?o:[],!0),null!==(s=m.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:n(n([],null!==(a=t.file_citations)&&void 0!==a?a:[],!0),null!==(u=m.response.file_citations)&&void 0!==u?u:[],!0),image_citations:n(n([],null!==(c=t.image_citations)&&void 0!==c?c:[],!0),null!==(l=m.response.image_citations)&&void 0!==l?l:[],!0),rca_citations:n(n([],null!==(d=t.rca_citations)&&void 0!==d?d:[],!0),null!==(p=m.response.rca_citations)&&void 0!==p?p:[],!0),web_citations:n(n([],null!==(_=t.web_citations)&&void 0!==_?_:[],!0),null!==(v=m.response.web_citations)&&void 0!==v?v:[],!0),readfile_citations:n(n([],null!==(b=t.readfile_citations)&&void 0!==b?b:[],!0),null!==(g=m.response.readfile_citations)&&void 0!==g?g:[],!0)})}),[3,7];case 3:return v=i.sent(),console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",r.storyNumber,r.blockNumber,v),[3,7];case 4:return b="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),h.current.add(b),h.current.size!==f.current.size||d.current?[3,6]:(R=t||k.current.gap_items_prompt,S=_||k.current.risk_items_prompt,[4,l(R,S)]);case 5:i.sent(),f.current.clear(),h.current.clear(),y.current=null,N.current=null,k.current={gap_items_prompt:"",risk_items_prompt:""},B.current.clear(),i.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(t,i,r){try{var s=JSON.stringify(t);if(N.current===s)return;N.current=s;var l=[],d=[];t=t.map(function(t){var r;t=e(e({},t),{subBlockNumber:null!==(r=t.subBlockNumber)&&void 0!==r?r:"1"});var s="".concat(t.storyNumber,"-").concat(t.blockNumber,"-").concat(t.subBlockNumber);if(B.current.has(s))return null;B.current.add(s);var a=o(t.value,t.blockNumber,t.storyNumber,t.description),u=a.outputText,p=a.reasonings,_=a.gpt_citation,m=a.processedDescription;c(function(n){var t;return _.length>0&&((null==n?void 0:n.gpt_citations)||(n.gpt_citations=[]),null===(t=n.gpt_citations)||void 0===t||t.push.apply(t,_)),e({},n)}),l.push.apply(l,p),d.push(n([],p,!0));var v="<STORY_NUMBER>".concat(t.storyNumber,"<BLOCK_NUMBER>").concat(t.blockNumber,"<SUB_BLOCK>").concat(t.subBlockNumber);return f.current.has(v)||(R(e(e({},t),{value:u,description:m}),p,i),f.current.add(v)),e(e({},t),{value:u,description:m})}).filter(Boolean),l.forEach(function(e){u(function(t){return t.find(function(n){return n.id===e.id})||t.push(e),n([],t,!0)})}),t.length>0&&t.map(function(e,t){var i=e.title,o=e.section,s=e.value,u=e.storyNumber,c=e.description,l=e.blockNumber,g=e.big_enough,f=e.big_enough_decision_factors;a(function(e){var a,h,N,k,B,R,S,C,w,O=e.findIndex(function(e){return e.storyNumber===u});if("intro"===o)-1===O?e.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,description:c,storyNumber:u,sub_features:[],section:o,blockNumber:l,aiReasoning:d[t],big_enough:g,big_enough_decision_factors:f}):(e[O].value+=s,e[O].aiReasoning=e[O].aiReasoning||[],null===(N=null===(h=e[O])||void 0===h?void 0:h.aiReasoning)||void 0===N||N.push.apply(N,d[t]),e[O].big_enough=g,e[O].big_enough_decision_factors=f);else{e[O].sub_features||(e[O].sub_features=[]);var E=(null===(B=null===(k=e[O])||void 0===k?void 0:k.sub_features)||void 0===B?void 0:B.findIndex(function(e){return e.blockNumber===l}))||-1;if(-1===E)null===(S=null===(R=e[O])||void 0===R?void 0:R.sub_features)||void 0===S||S.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,storyNumber:u,blockNumber:l,section:o,aiReasoning:d[t],big_enough:g,big_enough_decision_factors:f});else{var U=null===(w=null===(C=null==e?void 0:e[O])||void 0===C?void 0:C.sub_features)||void 0===w?void 0:w[E];U.value=(U.value||"")+s,U.aiReasoning=U.aiReasoning||[],(a=U.aiReasoning).push.apply(a,d[t]),U.big_enough=g,U.big_enough_decision_factors=f}}var I=JSON.stringify(e);return y.current!==I&&(b({key:"streaming-redis-key-".concat(r),value:{mmvf_list:e,knowledgeBase:p,projectAnalyserSummary:_,dataSources_files:m,ai_reasonings:v}}),y.current=I),n([],e,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{s as useStreamContentHandler};
|
|
2
2
|
//# sourceMappingURL=useStreamContentHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamingScreenSidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/StreamingScreenSidebar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StreamingScreenSidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/StreamingScreenSidebar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAOlE,UAAU,MAAM;IACd,iBAAiB,EAAE,OAAO,CAAC;IAG3B,2BAA2B,EAAE,MAAM,CAAC;IACpC,8BAA8B,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE,oBAAoB,EAAE,UAAU,EAAE,CAAC;IACnC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAmBD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiK5C,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStreamContentHandler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useStreamContentHandler.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAErF,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,GAAG,YAAY,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B,CAAC,EAAE,wBAAwB,CAAC;CAC1D,CAAC;AAEF,UAAU,MAAM;IACZ,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACrE,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IACrE,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAChF,oBAAoB,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,uBAAuB,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzD,aAAa,EAAE,GAAG,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,eAAe,EAAE;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IACF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,oBAAoB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACjI;AAED,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"useStreamContentHandler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useStreamContentHandler.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAErF,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,GAAG,YAAY,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B,CAAC,EAAE,wBAAwB,CAAC;CAC1D,CAAC;AAEF,UAAU,MAAM;IACZ,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACrE,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IACrE,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAChF,oBAAoB,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,uBAAuB,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzD,aAAa,EAAE,GAAG,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,eAAe,EAAE;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IACF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,oBAAoB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACjI;AAED,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,EAAE,MAAM;sCAuE7O,eAAe,EAAE,kBACZ,GAAG,mBACF,MAAM;EAuK9B"}
|