@e-llm-studio/requirement-ai 0.0.75 → 0.0.76
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/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),a=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),r=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js"),h=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(t),C=p(a),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),S=function(t){var a,r,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(r=null===(a=null==s?void 0:s.properties)||void 0===a?void 0:a.style)&&void 0!==r?r:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var a=t.message,p=t.isParent,j=t.scenario,R=t.showUserStoryDiff,w=void 0!==R&&R,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,N=void 0!==b&&b,q=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var A=t.customStyles,M=t.customIcons,T=t.aiReasoningDiffView,L=t.userStoryCitations,U=t.artifactId,k=t.isCraflow,P=t.onCraAccept,E=t.onCraReject,F=i.useRef(null),$=v.useRequirementAI(),B=$.userStory,D=$.getAvgScoreForStory,W=$.setUserStory,H=$.aiReasoning,z=$.setAiReasoning,G=$.customIcons,O=$.searchQueryList,Q=$.searchQueryReasoningIdList,V=null!=M?M:null==G?void 0:G.userStoryIcons;null==A||A.searchHighlight;var J=r.useMarkdownSearch(F),K=J.search,X=J.clear,Y=i.useState("1"),Z=Y[0],ee=Y[1],ne=i.useState(null),ie=ne[0],te=ne[1],ae=i.useRef(new Map),oe=i.useCallback(function(e,n){te(e&&n?{rowId:e,aiReason:n}:null)},[]),re=U?D(U):0,le=i.useState([]),se=le[0],de=le[1],ce=i.useMemo(function(){return a?(e=a,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})):a;var e,n},[a]);i.useEffect(function(){de(I||H)},[I,H]);var ue=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==A?void 0:A.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==A?void 0:A.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==A?void 0:A.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==A?void 0:A.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph,style:null==A?void 0:A.paragraph},{children:t.children}))},updated:function(i){var t=i.node,a=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},a,{showUserStoryDiff:w,currentUpdatedTagId:Z,setCurrentUpdatedTagId:ee,userStory:B,setUserStory:W,setAiReasoning:z,node:t,isCraflow:k,onCraAccept:P,onCraReject:E,customStyles:null==A?void 0:A.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==A?void 0:A.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==A?void 0:A.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==A?void 0:A.table},{children:t}))}))},tr:S,td:function(i){var t,a=i.node,o=i.children,r=null!==(t=null==a?void 0:a.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,a=i.node,o=i.children,r=null!==(t=null==a?void 0:a.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},recommendation:function(i){var t;i.node;var a=e.__rest(i,["node"]),o="The AI has selected this content based on: ".concat((null===(t=null==a?void 0:a.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},a,{customStyles:null==A?void 0:A.recommendationBlock,label:o}))},a:function(t){var a,o,r;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]);i.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(a=s.split("$"))||void 0===a?void 0:a[0],c=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===d){var u=(null!==(r=w?T:H)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),v=Q.includes(c);if(u&&u.reason.length>0&&u.gap.length>0)return n.jsx(f.default,{aiReason:u,isSourceHasHighlight:v,customIcons:V,customStyles:{aiReasoningContent:null==A?void 0:A.aiReasoningContent,aiReasoningAccordion:null==A?void 0:A.aiReasoningAccordion,aiReasoningMarkdown:null==A?void 0:A.aiReasoningMarkdown,aiReasoningPill:null==A?void 0:A.aiReasoningPill,webCitation:null==A?void 0:A.webCitation,stormeeCitation:null==A?void 0:A.stormeeCitation,waveformCitation:null==A?void 0:A.waveformCitation,imageCitation:null==A?void 0:A.imageCitation,fileCitation:null==A?void 0:A.fileCitation,appModCitation:null==A?void 0:A.appModCitation,rcaCitation:null==A?void 0:A.rcaCitation,readFileCitation:null==A?void 0:A.readFileCitation,loadingCitations:null==A?void 0:A.loadingCitations,chatCitation:null==A?void 0:A.chatCitation}})}return null},code:function(i){i.inline;var t=i.children,a=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(a||"")||(null==a?void 0:a.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==A?void 0:A.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==A?void 0:A.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),a=(null==t?void 0:t.language)||"python",o=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:o,language:a,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[se,H,L,Z,w,a,M,O,Q]);return i.useEffect(function(){if(F.current){if(O.length){var e;if(0===Q.length)requestAnimationFrame(function(){K(O.map(function(e){return e.replace(/\*/g,"")}))});else{var n=F.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){K(O.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}X()}},[O,Q]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:ie,setExpanded:oe,reasonToRow:ae}},{children:n.jsxs("div",e.__assign({ref:F,className:"".concat(o.default.container," ").concat("approving"!==j?o.default.wrapper:""," ").concat(q||""),style:null==A?void 0:A.container},{children:[n.jsx(m.default,e.__assign({components:ue,rehypePlugins:[C.default]},{children:ce})),re>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==A?void 0:A.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==A?void 0:A.confidenceScoreIconColor)||"#166534"}),re,"%"]}))})),N&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),p&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r="[MarkdownSearch]";exports.useMarkdownSearch=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r="markdown-search-highlight",t="[MarkdownSearch]";exports.useMarkdownSearch=function(n){var o=e.useRef([]),a=e.useCallback(function(){o.current.forEach(function(e){var r=e.mark,t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);t.removeChild(r)}}),o.current=[]},[]),l=function(e,n,a){var l=n+a;if(!e[n]||!e[l-1])return null;var s=e[n],c=e[l-1],u=document.createRange();try{u.setStart(s.node,s.offset),u.setEnd(c.node,c.offset+1)}catch(e){return null}var i=document.createElement("mark");i.className=r;try{return u.surroundContents(i),o.current.push({mark:i}),i}catch(a){console.warn(t,"surroundContents failed, falling back");var f=e.slice(n,l),h=new Map;f.forEach(function(e){var r=e.node,t=e.offset,n=h.get(r);n?n.end=t+1:h.set(r,{start:t,end:t+1})});var d=null;return Array.from(h.entries()).forEach(function(e){var t,n=e[0],a=e[1];if(!(a.end>n.length)){var l=n.splitText(a.start);l.splitText(a.end-a.start);var s=document.createElement("mark");s.className=r,s.textContent=null!==(t=l.nodeValue)&&void 0!==t?t:"",l.parentNode.replaceChild(s,l),o.current.push({mark:s}),d||(d=s)}}),d}},s=function(e){return e.toLowerCase().replace(/[^a-z0-9\s]/g,"")},c=function(e){for(var r=s(e),t=[],n=0;n<r.length-1;n++)t.push(r.slice(n,n+2));return t},u=function(e,r){var t=c(e),n=c(r),o=new Set(t),a=0;return n.forEach(function(e){o.has(e)&&a++}),2*a/(t.length+n.length)},i=function(e,r){var t=new Set(s(e).split(/\s+/).filter(Boolean)),n=new Set(s(r).split(/\s+/).filter(Boolean)),o=0;return t.forEach(function(e){return n.has(e)&&o++}),o/t.size},f=function(e,r){for(var t=Array(e.length+1).fill(null).map(function(){return Array(r.length+1).fill(0)}),n=0,o=0,a=1;a<=e.length;a++)for(var l=1;l<=r.length;l++)e[a-1]===r[l-1]&&(t[a][l]=t[a-1][l-1]+1,t[a][l]>n&&(n=t[a][l],o=a));return{substring:e.slice(o-n,o),startOffset:o-n,length:n}},h=e.useCallback(function(e,r){var o;if(void 0===r&&(r=1),n.current&&e.length&&(console.log(t,"Search started",e),a(),null===(o=n.current)||void 0===o?void 0:o.isConnected)){for(var s=function(e){for(var r,t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n="",o=[];r=t.nextNode();){for(var a=r,l=a.nodeValue||"",s=0;s<l.length;s++)o.push({node:a,offset:s});n+=l}return{fullText:n,map:o}}(n.current),c=s.fullText,h=s.map,d=c.toLowerCase(),g=0,v=null,m=!1,p=0,k=e;p<k.length;p++)for(var w=(E=k[p]).toLowerCase().trim(),C=0;-1!==(C=d.indexOf(w,C));){if(console.log(t,"Exact match found",C),(F=l(h,C,w.length))&&!v&&(v=F),m=!0,++g>=r)break;C+=w.length}if(m)return console.log(t,"Exact match phase complete, skipping fuzzy search"),void(null==v||v.scrollIntoView({behavior:"smooth",block:"center"}));console.log(t,"No exact matches, running strict fuzzy search");for(var b=0,x=e;b<x.length;b++){for(var E,y=(E=x[b]).length,z=0,S=-1,N=0;N<=c.length-y;N+=2){var T=c.slice(N,N+y),L=u(T,E),M=i(T,E);if(!(M<.8)){var O=.8*L+.2*M;O>z&&(z=O,S=N)}}if(console.log(t,"Best fuzzy score:",z),z>.82&&-1!==S){T=c.slice(S,S+y);var B=f(T.toLowerCase(),E.toLowerCase()),V=B.substring,A=B.startOffset,_=B.length;if(_>10){var F,I=S+A;console.log(t,"Fuzzy refined match",{refinedStart:I,length:_,substring:V}),(F=l(h,I,_))&&!v&&(v=F),g++}}}v?v.scrollIntoView({behavior:"smooth",block:"center"}):console.log(t,"No matches found")}},[a,n]);return e.useMemo(function(){return{search:h,clear:a}},[h,a])};
|
|
2
2
|
//# sourceMappingURL=useMarkdownSearch.js.map
|
package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import R from"../../icons/RelevanceScoreIcon.js";import I from"../RecommendationBlock/RecommendationBlock.js";import b from"../UserStoryCard/AttachedContext.js";var N=r(!1),x=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=r({rowId:""}),j=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(x).expandedInfo,v=(null==u?void 0:u.rowId)===c,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return i(A.Provider,n({value:{rowId:c}},{children:[o("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&o("tr",n({style:{width:"100%"}},{children:o("td",n({colSpan:h||1,className:m.tableExpandedCell},{children:o("div",n({className:m.tableExpandedCellInner},{children:o("div",{className:m.tableExpandedCellContent})}))}))}))]}))},L=function(r){var A=r.message,L=r.isParent,T=r.scenario,U=r.showUserStoryDiff,k=void 0!==U&&U,M=r.aiReasoningsForBlock,P=r.isCitationLoadingDisplay,E=void 0!==P&&P,F=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var $=r.customStyles,q=r.customIcons,B=r.aiReasoningDiffView,D=r.userStoryCitations,W=r.artifactId,H=r.isCraflow,_=r.onCraAccept,z=r.onCraReject,G=t(null),Q=S(),O=Q.userStory,V=Q.getAvgScoreForStory,J=Q.setUserStory,K=Q.aiReasoning,X=Q.setAiReasoning,Y=Q.customIcons,Z=Q.searchQueryList,ee=Q.searchQueryReasoningIdList,ne=null!=q?q:null==Y?void 0:Y.userStoryIcons
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import R from"../../icons/RelevanceScoreIcon.js";import I from"../RecommendationBlock/RecommendationBlock.js";import b from"../UserStoryCard/AttachedContext.js";var N=r(!1),x=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=r({rowId:""}),j=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(x).expandedInfo,v=(null==u?void 0:u.rowId)===c,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return i(A.Provider,n({value:{rowId:c}},{children:[o("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&o("tr",n({style:{width:"100%"}},{children:o("td",n({colSpan:h||1,className:m.tableExpandedCell},{children:o("div",n({className:m.tableExpandedCellInner},{children:o("div",{className:m.tableExpandedCellContent})}))}))}))]}))},L=function(r){var A=r.message,L=r.isParent,T=r.scenario,U=r.showUserStoryDiff,k=void 0!==U&&U,M=r.aiReasoningsForBlock,P=r.isCitationLoadingDisplay,E=void 0!==P&&P,F=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var $=r.customStyles,q=r.customIcons,B=r.aiReasoningDiffView,D=r.userStoryCitations,W=r.artifactId,H=r.isCraflow,_=r.onCraAccept,z=r.onCraReject,G=t(null),Q=S(),O=Q.userStory,V=Q.getAvgScoreForStory,J=Q.setUserStory,K=Q.aiReasoning,X=Q.setAiReasoning,Y=Q.customIcons,Z=Q.searchQueryList,ee=Q.searchQueryReasoningIdList,ne=null!=q?q:null==Y?void 0:Y.userStoryIcons;null==$||$.searchHighlight;var oe=h(G),ie=oe.search,re=oe.clear,te=l("1"),le=te[0],ae=te[1],de=l(null),ce=de[0],se=de[1],ue=t(new Map),ve=a(function(e,n){se(e&&n?{rowId:e,aiReason:n}:null)},[]),me=W?V(W):0,he=l([]),pe=he[0],fe=he[1],ge=d(function(){return A?(e=A,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var o=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(o,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,o){var i=btoa(encodeURIComponent(o.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})):A;var e,n},[A]);c(function(){fe(M||K)},[M,K]);var Ce=d(function(){return{h1:function(i){i.node;var r=e(i,["node"]);return o("h1",n({className:m.heading1,style:null==$?void 0:$.heading1},{children:r.children}))},h2:function(i){i.node;var r=e(i,["node"]);return o("h2",n({className:m.heading2,style:null==$?void 0:$.heading2},{children:r.children}))},h3:function(i){i.node;var r=e(i,["node"]);return o("h3",n({className:m.heading3,style:null==$?void 0:$.heading3},{children:r.children}))},b:function(i){i.node;var r=e(i,["node"]);return o("b",n({className:m.bold,style:null==$?void 0:$.bold},{children:null==r?void 0:r.children}))},p:function(i){i.node;var r=e(i,["node"]);return o("p",n({},r,{className:m.paragraph,style:null==$?void 0:$.paragraph},{children:r.children}))},updated:function(i){var r=i.node,t=e(i,["node"]);return o(g,n({},t,{showUserStoryDiff:k,currentUpdatedTagId:le,setCurrentUpdatedTagId:ae,userStory:O,setUserStory:J,setAiReasoning:X,node:r,isCraflow:H,onCraAccept:_,onCraReject:z,customStyles:null==$?void 0:$.updatedContent}))},ol:function(i){i.node;var r=e(i,["node"]);return o("ol",n({className:m.orderedList,style:null==$?void 0:$.olist},{children:null==r?void 0:r.children}))},ul:function(i){i.node;var r=e(i,["node"]);return o("ul",n({className:m.unorderedList,style:null==$?void 0:$.ulist},{children:null==r?void 0:r.children}))},table:function(e){var i=e.children;return o("div",n({className:m.tableWrapper},{children:o("table",n({className:m.table,style:null==$?void 0:$.table},{children:i}))}))},tr:j,td:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(i){var r;i.node;var t=e(i,["node"]),l="The AI has selected this content based on: ".concat((null===(r=null==t?void 0:t.children)||void 0===r?void 0:r[0])||"");return o(I,n({},t,{customStyles:null==$?void 0:$.recommendationBlock,label:l}))},a:function(n){var i,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);s(N)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(i=a.split("$"))||void 0===i?void 0:i[0],c=null===(r=a.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===d){var u=(null!==(t=k?B:K)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),v=ee.includes(c);if(u&&u.reason.length>0&&u.gap.length>0)return o(w,{aiReason:u,isSourceHasHighlight:v,customIcons:ne,customStyles:{aiReasoningContent:null==$?void 0:$.aiReasoningContent,aiReasoningAccordion:null==$?void 0:$.aiReasoningAccordion,aiReasoningMarkdown:null==$?void 0:$.aiReasoningMarkdown,aiReasoningPill:null==$?void 0:$.aiReasoningPill,webCitation:null==$?void 0:$.webCitation,stormeeCitation:null==$?void 0:$.stormeeCitation,waveformCitation:null==$?void 0:$.waveformCitation,imageCitation:null==$?void 0:$.imageCitation,fileCitation:null==$?void 0:$.fileCitation,appModCitation:null==$?void 0:$.appModCitation,rcaCitation:null==$?void 0:$.rcaCitation,readFileCitation:null==$?void 0:$.readFileCitation,loadingCitations:null==$?void 0:$.loadingCitations,chatCitation:null==$?void 0:$.chatCitation}})}return null},code:function(i){i.inline;var r=i.children,t=i.className;return i.node,e(i,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?o("div",{children:o("code",n({className:m.blockCode,style:null==$?void 0:$.code},{children:r}))}):o("code",n({className:m.inlineCode,style:null==$?void 0:$.code},{children:r}))},learned:function(e){var i=e.children;return o(f,n({title:i,placement:"top"},{children:o(p,{size:16,className:m.learned})}))},generatedcode:function(n){n.node;var i=e(n,["node"]),r=(null==i?void 0:i.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""};n=o(e.children)}}catch(o){console.error("Error decoding generated code:",o),n=String(e.children)}return n}(i);return o(C,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==$?void 0:$.generatedCodePill,content:null==$?void 0:$.generatedCodeContent}})}}},[pe,K,D,le,k,A,q,Z,ee]);return c(function(){if(G.current){if(Z.length){var e;if(0===ee.length)requestAnimationFrame(function(){ie(Z.map(function(e){return e.replace(/\*/g,"")}))});else{var n=G.current,o=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){o.disconnect(),requestAnimationFrame(function(){ie(Z.map(function(e){return e.replace(/\*/g,"")}))})},50)});o.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}re()}},[Z,ee]),o(x.Provider,n({value:{expandedInfo:ce,setExpanded:ve,reasonToRow:ue}},{children:i("div",n({ref:G,className:"".concat(m.container," ").concat("approving"!==T?m.wrapper:""," ").concat(F||""),style:null==$?void 0:$.container},{children:[o(u,n({components:Ce,rehypePlugins:[v]},{children:ge})),me>0&&o("div",n({className:m.confidenceScoreContainer,style:null==$?void 0:$.confidenceScoreContainer},{children:i("span",n({className:m.confidenceScore,style:null==$?void 0:$.confidenceScore},{children:[o(R,{size:14,color:(null==$?void 0:$.confidenceScoreIconColor)||"#166534"}),me,"%"]}))})),E&&o("div",n({className:m.citationLoader,style:null==$?void 0:$.citationLoaderContainer},{children:o(y,{customStyles:{container:null==$?void 0:$.citationLoadingContainer,icon:null==$?void 0:$.citationLoadingIcon,text:null==$?void 0:$.citationLoadingText}})})),L&&o("div",n({className:"flex mt-5"},{children:o(b,{})}))]}))}))};export{L as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as e,useCallback as r,useMemo as t}from"react";var n="[MarkdownSearch]";function
|
|
1
|
+
import{useRef as e,useCallback as r,useMemo as t}from"react";var n="markdown-search-highlight",o="[MarkdownSearch]";function a(a){var l=e([]),c=r(function(){l.current.forEach(function(e){var r=e.mark,t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);t.removeChild(r)}}),l.current=[]},[]),s=function(e,r,t){var a=r+t;if(!e[r]||!e[a-1])return null;var c=e[r],s=e[a-1],i=document.createRange();try{i.setStart(c.node,c.offset),i.setEnd(s.node,s.offset+1)}catch(e){return null}var f=document.createElement("mark");f.className=n;try{return i.surroundContents(f),l.current.push({mark:f}),f}catch(t){console.warn(o,"surroundContents failed, falling back");var u=e.slice(r,a),h=new Map;u.forEach(function(e){var r=e.node,t=e.offset,n=h.get(r);n?n.end=t+1:h.set(r,{start:t,end:t+1})});var d=null;return Array.from(h.entries()).forEach(function(e){var r,t=e[0],o=e[1];if(!(o.end>t.length)){var a=t.splitText(o.start);a.splitText(o.end-o.start);var c=document.createElement("mark");c.className=n,c.textContent=null!==(r=a.nodeValue)&&void 0!==r?r:"",a.parentNode.replaceChild(c,a),l.current.push({mark:c}),d||(d=c)}}),d}},i=function(e){return e.toLowerCase().replace(/[^a-z0-9\s]/g,"")},f=function(e){for(var r=i(e),t=[],n=0;n<r.length-1;n++)t.push(r.slice(n,n+2));return t},u=function(e,r){var t=f(e),n=f(r),o=new Set(t),a=0;return n.forEach(function(e){o.has(e)&&a++}),2*a/(t.length+n.length)},h=function(e,r){var t=new Set(i(e).split(/\s+/).filter(Boolean)),n=new Set(i(r).split(/\s+/).filter(Boolean)),o=0;return t.forEach(function(e){return n.has(e)&&o++}),o/t.size},d=function(e,r){for(var t=Array(e.length+1).fill(null).map(function(){return Array(r.length+1).fill(0)}),n=0,o=0,a=1;a<=e.length;a++)for(var l=1;l<=r.length;l++)e[a-1]===r[l-1]&&(t[a][l]=t[a-1][l-1]+1,t[a][l]>n&&(n=t[a][l],o=a));return{substring:e.slice(o-n,o),startOffset:o-n,length:n}},g=r(function(e,r){var t;if(void 0===r&&(r=1),a.current&&e.length&&(console.log(o,"Search started",e),c(),null===(t=a.current)||void 0===t?void 0:t.isConnected)){for(var n=function(e){for(var r,t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n="",o=[];r=t.nextNode();){for(var a=r,l=a.nodeValue||"",c=0;c<l.length;c++)o.push({node:a,offset:c});n+=l}return{fullText:n,map:o}}(a.current),l=n.fullText,i=n.map,f=l.toLowerCase(),g=0,v=null,m=!1,p=0,w=e;p<w.length;p++)for(var k=(z=w[p]).toLowerCase().trim(),C=0;-1!==(C=f.indexOf(k,C));){if(console.log(o,"Exact match found",C),(M=s(i,C,k.length))&&!v&&(v=M),m=!0,++g>=r)break;C+=k.length}if(m)return console.log(o,"Exact match phase complete, skipping fuzzy search"),void(null==v||v.scrollIntoView({behavior:"smooth",block:"center"}));console.log(o,"No exact matches, running strict fuzzy search");for(var x=0,E=e;x<E.length;x++){for(var z,b=(z=E[x]).length,y=0,N=-1,S=0;S<=l.length-b;S+=2){var T=l.slice(S,S+b),L=u(T,z),B=h(T,z);if(!(B<.8)){var O=.8*L+.2*B;O>y&&(y=O,N=S)}}if(console.log(o,"Best fuzzy score:",y),y>.82&&-1!==N){T=l.slice(N,N+b);var V=d(T.toLowerCase(),z.toLowerCase()),A=V.substring,F=V.startOffset,I=V.length;if(I>10){var M,W=N+F;console.log(o,"Fuzzy refined match",{refinedStart:W,length:I,substring:A}),(M=s(i,W,I))&&!v&&(v=M),g++}}}v?v.scrollIntoView({behavior:"smooth",block:"center"}):console.log(o,"No matches found")}},[c,a]);return t(function(){return{search:g,clear:c}},[g,c])}export{a as useMarkdownSearch};
|
|
2
2
|
//# sourceMappingURL=useMarkdownSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AA2BzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAA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AAC;IACtC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,mBAAmB,CAAC,EAAE;QACpB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KACjC,CAAA;CACF;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;IACtC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAmHD,QAAA,MAAM,sBAAsB,+QAczB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EA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YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAmHD,QAAA,MAAM,sBAAsB,+QAczB,2BAA2B,4CAsY7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
export declare function useMarkdownSearch(containerRef: RefObject<HTMLElement
|
|
2
|
+
export declare function useMarkdownSearch(containerRef: RefObject<HTMLElement>): {
|
|
3
3
|
search: (rawQueries: string[], limit?: any) => void;
|
|
4
4
|
clear: () => void;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMarkdownSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/useMarkdownSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useMarkdownSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/useMarkdownSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAQhE,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,CAAC;yBAwK5B,MAAM,EAAE;;EA+FjD"}
|