@e-llm-studio/requirement-ai 0.0.315 → 0.0.317

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
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),n=require("../../icons/BigEnoughIcon.js"),i=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=({customIcons:r,customStyles:t,currentUserStory:u,panelStyles:a,showPanel:d=!1})=>{var c,g,v,p;l.useRequirementAI();const[_,h]=o.useState(!!d),f=o.useRef(null);return e.jsxs("div",{onClick:e=>e.stopPropagation(),children:[!d&&e.jsx("button",{ref:f,className:s.default.developerEffortButton,style:null==a?void 0:a.buttonStyle,onClick:e=>{e.stopPropagation(),h(e=>!e)},children:e.jsx(n.default,{color:null==a?void 0:a.iconColor,size:null==a?void 0:a.iconSize})}),_&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:null===s.default||void 0===s.default?void 0:s.default.backdrop,style:d?null==a?void 0:a.showPanelBackdropStyles:null==a?void 0:a.backdropStyle,onClick:e=>{e.stopPropagation(),h(!1)},onWheel:e=>e.stopPropagation()}),e.jsx("div",{className:`${s.default.dropdown} ${d?s.default.showPanelDropdown:""}`,style:{...null==a?void 0:a.dropdownStyle,...d?null==a?void 0:a.showPanelDropdownStyle:{}},children:e.jsx(i.default,{cognitiveDecisionHeaders:{mainHeader:`Feature Implementation Score - ${(null==u?void 0:u.big_enough)||0}`},big_enough_block:null===(c=u.big_enough_decision_factors)||void 0===c?void 0:c.big_enough_block,aiReason:{relevance_score:(null===(g=null==u?void 0:u.big_enough_decision_factors)||void 0===g?void 0:g.relevance_score)||0,reason:(null===(v=null==u?void 0:u.big_enough_decision_factors)||void 0===v?void 0:v.score_reason)||"",gap:(null===(p=null==u?void 0:u.big_enough_decision_factors)||void 0===p?void 0:p.gap)||"",id:"big-enough-cd"},customIcons:r,customStyles:t})})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),i=require("../../icons/BigEnoughIcon.js"),n=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=({customIcons:r,customStyles:t,currentUserStory:a,panelStyles:c,showPanel:u=!1})=>{var d,v,g,p,_,h,y,m;l.useRequirementAI();const[f,b]=o.useState(!!u),j=o.useRef(null);return e.jsxs("div",{onClick:e=>e.stopPropagation(),children:[!u&&e.jsx("button",{ref:j,className:s.default.developerEffortButton,style:null==c?void 0:c.buttonStyle,onClick:e=>{e.stopPropagation(),b(e=>!e)},children:e.jsx(i.default,{color:null==c?void 0:c.iconColor,size:null==c?void 0:c.iconSize})}),f&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:null===s.default||void 0===s.default?void 0:s.default.backdrop,style:u?null==c?void 0:c.showPanelBackdropStyles:null==c?void 0:c.backdropStyle,onClick:e=>{e.stopPropagation(),b(!1)},onWheel:e=>e.stopPropagation()}),e.jsxs("div",{className:`${s.default.dropdown} ${u?s.default.showPanelDropdown:""}`,style:{...null==c?void 0:c.dropdownStyle,...u?null==c?void 0:c.showPanelDropdownStyle:{}},children:[e.jsx(n.default,{cognitiveDecisionHeaders:{mainHeader:`Feature Implementation Score - ${(null==a?void 0:a.big_enough)||0}`},big_enough_block:null===(d=a.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(v=null==a?void 0:a.big_enough_decision_factors)||void 0===v?void 0:v.relevance_score)||0,reason:(null===(g=null==a?void 0:a.big_enough_decision_factors)||void 0===g?void 0:g.score_reason)||"",gap:(null===(p=null==a?void 0:a.big_enough_decision_factors)||void 0===p?void 0:p.gap)||"",id:"big-enough-cd"},customIcons:r,customStyles:t}),(null==a?void 0:a.technicality_score)&&e.jsx(n.default,{cognitiveDecisionHeaders:{mainHeader:`Technicality Score - ${(null===(_=null==a?void 0:a.technicality_score)||void 0===_?void 0:_.score)||0}`},aiReason:{relevance_score:(null===(h=null==a?void 0:a.technicality_score)||void 0===h?void 0:h.score)||0,reason:(null===(y=null==a?void 0:a.technicality_score)||void 0===y?void 0:y.reasoning)||"",gap:(null===(m=null==a?void 0:a.technicality_score)||void 0===m?void 0:m.gap)||"",id:"big-enough-cd"},customIcons:r,customStyles:t})]})]})]})};
2
2
  //# sourceMappingURL=BigEnoughPanel.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react");exports.useOnDemandCitation=function({baseCitations:t,requestId:n,user:o,bucketName:e,fetchOnDemandCitation:l,fileUrlList:a}){const u=null!=t?t:{},d=i.useRef(u),[s,c]=i.useState(u);i.useEffect(()=>{c(i=>{var n,o;return{...t,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==t?void 0:t.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(o=null==t?void 0:t.audio_citations)&&void 0!==o?o:[]}})},[t]),i.useEffect(()=>{d.current=s},[s]);const r=i.useCallback((i,t)=>{var n,o,e,l,a,u,d,s,c,r,v,_,f,m,g,b,h,p,C,w,y,k,D,O;let x=null===(d=null===(u=null===(a=null===(l=null===(e=null===(o=null===(n=null==i?void 0:i.result)||void 0===n?void 0:n.citations)||void 0===o?void 0:o[0])||void 0===e?void 0:e.citations)||void 0===l?void 0:l[0])||void 0===a?void 0:a.customMetaData)||void 0===u?void 0:u.value)||void 0===d?void 0:d[0];if("audio_citation"===t||"audio_citations"===t)x=null===(c=null===(s=null==i?void 0:i.result)||void 0===s?void 0:s.citations)||void 0===c?void 0:c[0];else if("readfile_citations"===t||"readfile_citation"===t)x=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(t.includes("image_citation"))x=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(t.includes("web_citation")){const t=null===(C=null===(p=null===(h=null===(b=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===b?void 0:b.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===C?void 0:C[0];x={citation_number:null===(k=null===(y=null===(w=null==i?void 0:i.result)||void 0===w?void 0:w.citations)||void 0===y?void 0:y[0])||void 0===k?void 0:k.citation_number,customMetadata:{screenshot_url:null==t?void 0:t.gcs_url,relevance_score:100,link:null==t?void 0:t.highlight_url,type:"web_citation"}}}else t.includes("scanned_doc_citation")&&(console.log("scanned_doc_citation responseData",i),x=null===(O=null===(D=null==i?void 0:i.result)||void 0===D?void 0:D.citations)||void 0===O?void 0:O[0]);return x},[]),v=i.useCallback((i,t,n)=>{c(o=>{const e="audio_citation"===t||"audio_citations"===t?"audio_citations":t.includes("image_citation")?"image_citations":"readfile_citations"===t||"readfile_citation"===t?"readfile_citations":t.includes("web_citation")?"web_citations":"file_citations",l=o[e]||[],a=l.findIndex(t=>String(t.citation_number)===i),u={...n,citation_number:i},d=a>=0?l.map((i,t)=>t===a?{...i,...u}:i):[...l,u];return{...o,[e]:d}})},[]);return{fetchOnDemandCitationHandler:i.useCallback((i,t,u,d,s)=>{const c=String(i);return new Promise((_,f)=>{(async()=>{var m,g,b,h,p,C,w,y,k,D;try{const f=null!==(m=null==o?void 0:o.accessToken)&&void 0!==m?m:"";if(!f)throw new Error("No auth token available for on-demand citation fetch");const O=null!==(g=sessionStorage.getItem("projectId"))&&void 0!==g?g:"";let x=d?[`${e}/projects/${O}/${d}`]:[];if(console.log("[useOnDemandCitation] source and files",{source:d,fileUrlList:a}),null==a?void 0:a.length){const i=a.find(i=>i.includes(null!=d?d:""));i&&(x=[i],console.log("[useOnDemandCitation] source and files:: found",x))}const q="explanation"===s?null!==(b=null==t?void 0:t.explanation)&&void 0!==b?b:"":null!==(h=null==t?void 0:t.reason)&&void 0!==h?h:"",I=JSON.stringify({userName:null!==(p=null==o?void 0:o.name)&&void 0!==p?p:`${null!==(C=null==o?void 0:o.firstname)&&void 0!==C?C:""} ${null!==(w=null==o?void 0:o.lastname)&&void 0!==w?w:""}`.trim(),userEmailId:null!==(y=null==o?void 0:o.email)&&void 0!==y?y:""}),$=[{reason:q,title:"",description:"explanation"===s?null!==(k=null==t?void 0:t.explanation)&&void 0!==k?k:"":null!==(D=null==t?void 0:t.reason)&&void 0!==D?D:""}],S=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(u);console.log("[useOnDemandCitation] fetching citation",{key:c,citationType:u,requestCitationType:S,requestId:n,files:x});const E=await l(n,S,i,q,f,$,x,I,d),N=r(E,u);N||console.error(`Failed to resolve on-demand citation ${c}`),N&&v(c,u,N),_(N)}catch(i){console.error("[useOnDemandCitation] error for citation",c,i),f(i)}})()})},[n,o]),libraryCitationsRef:d,libraryCitations:s}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react");exports.useOnDemandCitation=function({baseCitations:t,requestId:n,user:o,bucketName:e,fetchOnDemandCitation:l,fileUrlList:a}){const u=null!=t?t:{},d=i.useRef(u),[c,s]=i.useState(u);i.useEffect(()=>{s(i=>{var n,o;return{...t,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==t?void 0:t.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(o=null==t?void 0:t.audio_citations)&&void 0!==o?o:[]}})},[t]),i.useEffect(()=>{d.current=c},[c]);const r=i.useCallback((i,t)=>{var n,o,e,l,a,u,d,c,s,r,v,_,f,m,g,b,h,p,C,w,y,k,x,D;let O=null===(d=null===(u=null===(a=null===(l=null===(e=null===(o=null===(n=null==i?void 0:i.result)||void 0===n?void 0:n.citations)||void 0===o?void 0:o[0])||void 0===e?void 0:e.citations)||void 0===l?void 0:l[0])||void 0===a?void 0:a.customMetaData)||void 0===u?void 0:u.value)||void 0===d?void 0:d[0];if("audio_citation"===t||"audio_citations"===t)O=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===t||"readfile_citation"===t)O=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(t.includes("image_citation"))O=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(t.includes("web_citation")){const t=null===(C=null===(p=null===(h=null===(b=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===b?void 0:b.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===C?void 0:C[0];O={citation_number:null===(k=null===(y=null===(w=null==i?void 0:i.result)||void 0===w?void 0:w.citations)||void 0===y?void 0:y[0])||void 0===k?void 0:k.citation_number,customMetadata:{screenshot_url:null==t?void 0:t.gcs_url,relevance_score:100,link:null==t?void 0:t.highlight_url,type:"web_citation"}}}else t.includes("scanned_doc_citation")&&(console.log("scanned_doc_citation responseData",i),O=null===(D=null===(x=null==i?void 0:i.result)||void 0===x?void 0:x.citations)||void 0===D?void 0:D[0]);return O},[]),v=i.useCallback((i,t,n)=>{s(o=>{const e="audio_citation"===t||"audio_citations"===t?"audio_citations":t.includes("image_citation")?"image_citations":"readfile_citations"===t||"readfile_citation"===t?"readfile_citations":t.includes("web_citation")?"web_citations":"file_citations",l=o[e]||[],a=l.findIndex(t=>String(t.citation_number)===i),u={...n,citation_number:i},d=a>=0?l.map((i,t)=>t===a?{...i,...u}:i):[...l,u];return{...o,[e]:d}})},[]);return{fetchOnDemandCitationHandler:i.useCallback((i,t,u,d,c)=>{const s=String(i);return new Promise((_,f)=>{(async()=>{var m,g,b,h,p,C,w,y,k,x;try{const f=null!==(m=null==o?void 0:o.accessToken)&&void 0!==m?m:"";if(!f)throw new Error("No auth token available for on-demand citation fetch");const D=null!==(g=sessionStorage.getItem("projectId"))&&void 0!==g?g:"";let O=d?[`${e}/projects/${D}/${d}`]:[];if(null==a?void 0:a.length){const i=a.find(i=>i.includes(null!=d?d:""));i&&(O=[i])}const q="explanation"===c?null!==(b=null==t?void 0:t.explanation)&&void 0!==b?b:"":null!==(h=null==t?void 0:t.reason)&&void 0!==h?h:"",I=JSON.stringify({userName:null!==(p=null==o?void 0:o.name)&&void 0!==p?p:`${null!==(C=null==o?void 0:o.firstname)&&void 0!==C?C:""} ${null!==(w=null==o?void 0:o.lastname)&&void 0!==w?w:""}`.trim(),userEmailId:null!==(y=null==o?void 0:o.email)&&void 0!==y?y:""}),$=[{reason:q,title:"",description:"explanation"===c?null!==(k=null==t?void 0:t.explanation)&&void 0!==k?k:"":null!==(x=null==t?void 0:t.reason)&&void 0!==x?x:""}],S=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(u);console.log("[useOnDemandCitation] fetching citation",{key:s,citationType:u,requestCitationType:S,requestId:n,files:O});const E=await l(n,S,i,q,f,$,O,I,d),N=r(E,u);N||console.error(`Failed to resolve on-demand citation ${s}`),N&&v(s,u,N),_(N)}catch(i){console.error("[useOnDemandCitation] error for citation",s,i),f(i)}})()})},[n,o,a]),libraryCitationsRef:d,libraryCitations:c}};
2
2
  //# sourceMappingURL=useOnDemandCitation.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as o,jsx as e,Fragment as n}from"react/jsx-runtime";import{useState as i,useRef as l}from"react";import r from"../../icons/BigEnoughIcon.js";import t from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";const c=({customIcons:c,customStyles:d,currentUserStory:u,panelStyles:p,showPanel:g=!1})=>{var v,m,_,h;s();const[b,f]=i(!!g),y=l(null);return o("div",{onClick:o=>o.stopPropagation(),children:[!g&&e("button",{ref:y,className:a.developerEffortButton,style:null==p?void 0:p.buttonStyle,onClick:o=>{o.stopPropagation(),f(o=>!o)},children:e(r,{color:null==p?void 0:p.iconColor,size:null==p?void 0:p.iconSize})}),b&&o(n,{children:[e("div",{className:null==a?void 0:a.backdrop,style:g?null==p?void 0:p.showPanelBackdropStyles:null==p?void 0:p.backdropStyle,onClick:o=>{o.stopPropagation(),f(!1)},onWheel:o=>o.stopPropagation()}),e("div",{className:`${a.dropdown} ${g?a.showPanelDropdown:""}`,style:{...null==p?void 0:p.dropdownStyle,...g?null==p?void 0:p.showPanelDropdownStyle:{}},children:e(t,{cognitiveDecisionHeaders:{mainHeader:`Feature Implementation Score - ${(null==u?void 0:u.big_enough)||0}`},big_enough_block:null===(v=u.big_enough_decision_factors)||void 0===v?void 0:v.big_enough_block,aiReason:{relevance_score:(null===(m=null==u?void 0:u.big_enough_decision_factors)||void 0===m?void 0:m.relevance_score)||0,reason:(null===(_=null==u?void 0:u.big_enough_decision_factors)||void 0===_?void 0:_.score_reason)||"",gap:(null===(h=null==u?void 0:u.big_enough_decision_factors)||void 0===h?void 0:h.gap)||"",id:"big-enough-cd"},customIcons:c,customStyles:d})})]})]})};export{c as BigEnoughPanel};
1
+ import{jsxs as o,jsx as e,Fragment as i}from"react/jsx-runtime";import{useState as n,useRef as l}from"react";import r from"../../icons/BigEnoughIcon.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import t from"./BigEnoughPanel.module.css.js";const a=({customIcons:a,customStyles:d,currentUserStory:u,panelStyles:v,showPanel:g=!1})=>{var p,m,h,_,y,b,f,S;s();const[P,k]=n(!!g),w=l(null);return o("div",{onClick:o=>o.stopPropagation(),children:[!g&&e("button",{ref:w,className:t.developerEffortButton,style:null==v?void 0:v.buttonStyle,onClick:o=>{o.stopPropagation(),k(o=>!o)},children:e(r,{color:null==v?void 0:v.iconColor,size:null==v?void 0:v.iconSize})}),P&&o(i,{children:[e("div",{className:null==t?void 0:t.backdrop,style:g?null==v?void 0:v.showPanelBackdropStyles:null==v?void 0:v.backdropStyle,onClick:o=>{o.stopPropagation(),k(!1)},onWheel:o=>o.stopPropagation()}),o("div",{className:`${t.dropdown} ${g?t.showPanelDropdown:""}`,style:{...null==v?void 0:v.dropdownStyle,...g?null==v?void 0:v.showPanelDropdownStyle:{}},children:[e(c,{cognitiveDecisionHeaders:{mainHeader:`Feature Implementation Score - ${(null==u?void 0:u.big_enough)||0}`},big_enough_block:null===(p=u.big_enough_decision_factors)||void 0===p?void 0:p.big_enough_block,aiReason:{relevance_score:(null===(m=null==u?void 0:u.big_enough_decision_factors)||void 0===m?void 0:m.relevance_score)||0,reason:(null===(h=null==u?void 0:u.big_enough_decision_factors)||void 0===h?void 0:h.score_reason)||"",gap:(null===(_=null==u?void 0:u.big_enough_decision_factors)||void 0===_?void 0:_.gap)||"",id:"big-enough-cd"},customIcons:a,customStyles:d}),(null==u?void 0:u.technicality_score)&&e(c,{cognitiveDecisionHeaders:{mainHeader:`Technicality Score - ${(null===(y=null==u?void 0:u.technicality_score)||void 0===y?void 0:y.score)||0}`},aiReason:{relevance_score:(null===(b=null==u?void 0:u.technicality_score)||void 0===b?void 0:b.score)||0,reason:(null===(f=null==u?void 0:u.technicality_score)||void 0===f?void 0:f.reasoning)||"",gap:(null===(S=null==u?void 0:u.technicality_score)||void 0===S?void 0:S.gap)||"",id:"big-enough-cd"},customIcons:a,customStyles:d})]})]})]})};export{a as BigEnoughPanel};
2
2
  //# sourceMappingURL=BigEnoughPanel.js.map
@@ -1,2 +1,2 @@
1
- import{useRef as i,useState as n,useEffect as t,useCallback as o}from"react";function l({baseCitations:l,requestId:e,user:a,bucketName:d,fetchOnDemandCitation:u,fileUrlList:c}){const s=null!=l?l:{},r=i(s),[v,_]=n(s);t(()=>{_(i=>{var n,t;return{...l,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==l?void 0:l.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(t=null==l?void 0:l.audio_citations)&&void 0!==t?t:[]}})},[l]),t(()=>{r.current=v},[v]);const f=o((i,n)=>{var t,o,l,e,a,d,u,c,s,r,v,_,f,m,g,h,b,p,w,C,y,D,O,k;let x=null===(u=null===(d=null===(a=null===(e=null===(l=null===(o=null===(t=null==i?void 0:i.result)||void 0===t?void 0:t.citations)||void 0===o?void 0:o[0])||void 0===l?void 0:l.citations)||void 0===e?void 0:e[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===u?void 0:u[0];if("audio_citation"===n||"audio_citations"===n)x=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===n||"readfile_citation"===n)x=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(n.includes("image_citation"))x=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(n.includes("web_citation")){const n=null===(w=null===(p=null===(b=null===(h=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===h?void 0:h.segments)||void 0===b?void 0:b[0])||void 0===p?void 0:p.urls)||void 0===w?void 0:w[0];x={citation_number:null===(D=null===(y=null===(C=null==i?void 0:i.result)||void 0===C?void 0:C.citations)||void 0===y?void 0:y[0])||void 0===D?void 0:D.citation_number,customMetadata:{screenshot_url:null==n?void 0:n.gcs_url,relevance_score:100,link:null==n?void 0:n.highlight_url,type:"web_citation"}}}else n.includes("scanned_doc_citation")&&(console.log("scanned_doc_citation responseData",i),x=null===(k=null===(O=null==i?void 0:i.result)||void 0===O?void 0:O.citations)||void 0===k?void 0:k[0]);return x},[]),m=o((i,n,t)=>{_(o=>{const l="audio_citation"===n||"audio_citations"===n?"audio_citations":n.includes("image_citation")?"image_citations":"readfile_citations"===n||"readfile_citation"===n?"readfile_citations":n.includes("web_citation")?"web_citations":"file_citations",e=o[l]||[],a=e.findIndex(n=>String(n.citation_number)===i),d={...t,citation_number:i},u=a>=0?e.map((i,n)=>n===a?{...i,...d}:i):[...e,d];return{...o,[l]:u}})},[]);return{fetchOnDemandCitationHandler:o((i,n,t,o,l)=>{const s=String(i);return new Promise((r,v)=>{(async()=>{var _,g,h,b,p,w,C,y,D,O;try{const v=null!==(_=null==a?void 0:a.accessToken)&&void 0!==_?_:"";if(!v)throw new Error("No auth token available for on-demand citation fetch");const k=null!==(g=sessionStorage.getItem("projectId"))&&void 0!==g?g:"";let x=o?[`${d}/projects/${k}/${o}`]:[];if(console.log("[useOnDemandCitation] source and files",{source:o,fileUrlList:c}),null==c?void 0:c.length){const i=c.find(i=>i.includes(null!=o?o:""));i&&(x=[i],console.log("[useOnDemandCitation] source and files:: found",x))}const I="explanation"===l?null!==(h=null==n?void 0:n.explanation)&&void 0!==h?h:"":null!==(b=null==n?void 0:n.reason)&&void 0!==b?b:"",$=JSON.stringify({userName:null!==(p=null==a?void 0:a.name)&&void 0!==p?p:`${null!==(w=null==a?void 0:a.firstname)&&void 0!==w?w:""} ${null!==(C=null==a?void 0:a.lastname)&&void 0!==C?C:""}`.trim(),userEmailId:null!==(y=null==a?void 0:a.email)&&void 0!==y?y:""}),q=[{reason:I,title:"",description:"explanation"===l?null!==(D=null==n?void 0:n.explanation)&&void 0!==D?D:"":null!==(O=null==n?void 0:n.reason)&&void 0!==O?O:""}],N=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(t);console.log("[useOnDemandCitation] fetching citation",{key:s,citationType:t,requestCitationType:N,requestId:e,files:x});const S=await u(e,N,i,I,v,q,x,$,o),T=f(S,t);T||console.error(`Failed to resolve on-demand citation ${s}`),T&&m(s,t,T),r(T)}catch(i){console.error("[useOnDemandCitation] error for citation",s,i),v(i)}})()})},[e,a]),libraryCitationsRef:r,libraryCitations:v}}export{l as useOnDemandCitation};
1
+ import{useRef as i,useState as t,useEffect as n,useCallback as o}from"react";function l({baseCitations:l,requestId:e,user:a,bucketName:d,fetchOnDemandCitation:u,fileUrlList:c}){const s=null!=l?l:{},r=i(s),[v,_]=t(s);n(()=>{_(i=>{var t,n;return{...l,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(t=null==l?void 0:l.file_citations)&&void 0!==t?t:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(n=null==l?void 0:l.audio_citations)&&void 0!==n?n:[]}})},[l]),n(()=>{r.current=v},[v]);const f=o((i,t)=>{var n,o,l,e,a,d,u,c,s,r,v,_,f,m,g,h,b,p,w,y,C,k,x,D;let I=null===(u=null===(d=null===(a=null===(e=null===(l=null===(o=null===(n=null==i?void 0:i.result)||void 0===n?void 0:n.citations)||void 0===o?void 0:o[0])||void 0===l?void 0:l.citations)||void 0===e?void 0:e[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===u?void 0:u[0];if("audio_citation"===t||"audio_citations"===t)I=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===t||"readfile_citation"===t)I=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(t.includes("image_citation"))I=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(t.includes("web_citation")){const t=null===(w=null===(p=null===(b=null===(h=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===h?void 0:h.segments)||void 0===b?void 0:b[0])||void 0===p?void 0:p.urls)||void 0===w?void 0:w[0];I={citation_number:null===(k=null===(C=null===(y=null==i?void 0:i.result)||void 0===y?void 0:y.citations)||void 0===C?void 0:C[0])||void 0===k?void 0:k.citation_number,customMetadata:{screenshot_url:null==t?void 0:t.gcs_url,relevance_score:100,link:null==t?void 0:t.highlight_url,type:"web_citation"}}}else t.includes("scanned_doc_citation")&&(console.log("scanned_doc_citation responseData",i),I=null===(D=null===(x=null==i?void 0:i.result)||void 0===x?void 0:x.citations)||void 0===D?void 0:D[0]);return I},[]),m=o((i,t,n)=>{_(o=>{const l="audio_citation"===t||"audio_citations"===t?"audio_citations":t.includes("image_citation")?"image_citations":"readfile_citations"===t||"readfile_citation"===t?"readfile_citations":t.includes("web_citation")?"web_citations":"file_citations",e=o[l]||[],a=e.findIndex(t=>String(t.citation_number)===i),d={...n,citation_number:i},u=a>=0?e.map((i,t)=>t===a?{...i,...d}:i):[...e,d];return{...o,[l]:u}})},[]);return{fetchOnDemandCitationHandler:o((i,t,n,o,l)=>{const s=String(i);return new Promise((r,v)=>{(async()=>{var _,g,h,b,p,w,y,C,k,x;try{const v=null!==(_=null==a?void 0:a.accessToken)&&void 0!==_?_:"";if(!v)throw new Error("No auth token available for on-demand citation fetch");const D=null!==(g=sessionStorage.getItem("projectId"))&&void 0!==g?g:"";let I=o?[`${d}/projects/${D}/${o}`]:[];if(null==c?void 0:c.length){const i=c.find(i=>i.includes(null!=o?o:""));i&&(I=[i])}const $="explanation"===l?null!==(h=null==t?void 0:t.explanation)&&void 0!==h?h:"":null!==(b=null==t?void 0:t.reason)&&void 0!==b?b:"",q=JSON.stringify({userName:null!==(p=null==a?void 0:a.name)&&void 0!==p?p:`${null!==(w=null==a?void 0:a.firstname)&&void 0!==w?w:""} ${null!==(y=null==a?void 0:a.lastname)&&void 0!==y?y:""}`.trim(),userEmailId:null!==(C=null==a?void 0:a.email)&&void 0!==C?C:""}),O=[{reason:$,title:"",description:"explanation"===l?null!==(k=null==t?void 0:t.explanation)&&void 0!==k?k:"":null!==(x=null==t?void 0:t.reason)&&void 0!==x?x:""}],N=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(n);console.log("[useOnDemandCitation] fetching citation",{key:s,citationType:n,requestCitationType:N,requestId:e,files:I});const S=await u(e,N,i,$,v,O,I,q,o),T=f(S,n);T||console.error(`Failed to resolve on-demand citation ${s}`),T&&m(s,n,T),r(T)}catch(i){console.error("[useOnDemandCitation] error for citation",s,i),v(i)}})()})},[e,a,c]),libraryCitationsRef:r,libraryCitations:v}}export{l as useOnDemandCitation};
2
2
  //# sourceMappingURL=useOnDemandCitation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BigEnoughPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/BigEnoughPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAA4B,uBAAuB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAA6B,EAAE,0BAA0B,EAAoB,MAAM,8CAA8C,CAAC;AAIlI,eAAO,MAAM,cAAc;iBAEX,cAAc;kBACZ,uBAAuB;sBACpB,qBAAqB,GAAG,UAAU;;;6CA2EtD,CAAC"}
1
+ {"version":3,"file":"BigEnoughPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/BigEnoughPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAA4B,uBAAuB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAA6B,EAAE,0BAA0B,EAAoB,MAAM,8CAA8C,CAAC;AAIlI,eAAO,MAAM,cAAc;iBAEX,cAAc;kBACZ,uBAAuB;sBACpB,qBAAqB,GAAG,UAAU;;;6CA+FtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOnDemandCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useOnDemandCitation.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAMzD,UAAU,yBAAyB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAG,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE;QAC9I,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;CAC9H;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,SAAS,EACT,IAAI,EACJ,UAAU,EACV,qBAAqB,EACrB,WAAW,EACZ,EAAE,yBAAyB;+CA+FV,MAAM,gBACJ,YAAY,gBACZ,MAAM,WACX,MAAM,oBACG,aAAa,GAAG,WAAW,KAC5C,QAAQ,GAAG,CAAC;;;EAoGlB"}
1
+ {"version":3,"file":"useOnDemandCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useOnDemandCitation.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAMzD,UAAU,yBAAyB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAG,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE;QAC9I,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;CAC9H;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,SAAS,EACT,IAAI,EACJ,UAAU,EACV,qBAAqB,EACrB,WAAW,EACZ,EAAE,yBAAyB;+CA+FV,MAAM,gBACJ,YAAY,gBACZ,MAAM,WACX,MAAM,oBACG,aAAa,GAAG,WAAW,KAC5C,QAAQ,GAAG,CAAC;;;EAkGlB"}
@@ -15,6 +15,7 @@ export interface IUserStory {
15
15
  aiReasoning?: TAIReasoning[];
16
16
  isEnd?: boolean;
17
17
  big_enough_decision_factors?: BigEnoughDecisionFactors;
18
+ technicality_score?: ITechnicalityScore;
18
19
  big_enough?: number;
19
20
  completion_percentage?: number;
20
21
  completion_decision_factors?: CompletionDecisionFactors;
@@ -58,6 +59,7 @@ export interface IUserStoryForApproval {
58
59
  description?: string;
59
60
  big_enough: number;
60
61
  big_enough_decision_factors: BigEnoughDecisionFactors;
62
+ technicality_score?: ITechnicalityScore;
61
63
  completion_percentage?: number;
62
64
  completion_decision_factors?: CompletionDecisionFactors;
63
65
  storyNumber?: string;
@@ -321,6 +323,11 @@ export interface BigEnoughDecisionFactors {
321
323
  gap: string;
322
324
  big_enough_block: IBigEnoughBlock[];
323
325
  }
326
+ export interface ITechnicalityScore {
327
+ score: number;
328
+ reasoning: string;
329
+ gap: string;
330
+ }
324
331
  export interface CompletionDecisionFactors {
325
332
  explanation?: string;
326
333
  score_reason: string;
@@ -1 +1 @@
1
- {"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAe,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;A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CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAe,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChK,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElG,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAG5B,WAAW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,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACb"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.315",
3
+ "version": "0.0.317",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",