@kb-labs/commit-entry 2.105.0 → 2.107.0
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/widgets/117.js +2 -3
- package/dist/widgets/165.js +1 -2
- package/dist/widgets/326.js +1 -2
- package/dist/widgets/370.js +1 -2
- package/dist/widgets/405.js +1 -2
- package/dist/widgets/46.js +1 -2
- package/dist/widgets/50.js +1 -2
- package/dist/widgets/546.js +1 -2
- package/dist/widgets/62.js +1 -2
- package/dist/widgets/648.js +1 -2
- package/dist/widgets/669.js +1 -2
- package/dist/widgets/707.js +1 -2
- package/dist/widgets/775.js +1 -2
- package/dist/widgets/78.js +1 -2
- package/dist/widgets/875.js +25 -0
- package/dist/widgets/945.js +1 -2
- package/dist/widgets/968.js +1 -2
- package/dist/widgets/__federation_expose_CommitOverview.js +1 -2
- package/dist/widgets/mf-manifest.json +22 -22
- package/dist/widgets/mf-stats.json +26 -26
- package/dist/widgets/remoteEntry.js +2 -3
- package/package.json +5 -5
- package/dist/widgets/117.js.map +0 -1
- package/dist/widgets/165.js.map +0 -1
- package/dist/widgets/326.js.map +0 -1
- package/dist/widgets/370.js.map +0 -1
- package/dist/widgets/405.js.map +0 -1
- package/dist/widgets/46.js.map +0 -1
- package/dist/widgets/50.js.map +0 -1
- package/dist/widgets/546.js.map +0 -1
- package/dist/widgets/62.js.map +0 -1
- package/dist/widgets/648.js.map +0 -1
- package/dist/widgets/669.js.map +0 -1
- package/dist/widgets/707.js.map +0 -1
- package/dist/widgets/733.js +0 -35
- package/dist/widgets/733.js.map +0 -1
- package/dist/widgets/775.js.map +0 -1
- package/dist/widgets/78.js.map +0 -1
- package/dist/widgets/945.js.map +0 -1
- package/dist/widgets/968.js.map +0 -1
- package/dist/widgets/__federation_expose_CommitOverview.js.map +0 -1
- package/dist/widgets/remoteEntry.js.map +0 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_commit_entry=self.rspackChunk_kb_labs_commit_entry||[]).push([[715],{6026(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return{$$typeof:n,type:e,key:i,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},4552(e,t,n){e.exports=n(6026)},5498(e,t,n){n.r(t),n.d(t,{default:()=>k});var r=n(4552),i=n(92),o=n(4519),l=n(5155);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||c(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}var u=n(9497).theme.useToken,d=l.UITypographyText,p={feat:"green",fix:"red",docs:"blue",style:"purple",refactor:"cyan",test:"magenta",chore:"default",perf:"gold",ci:"blue",build:"geekblue"};function f(e){var t,n,f,m,y,g=e.scope,h=u().token,x=(0,o.useNotification)(),v=s((0,i.useState)(new Set),2),j=v[0],b=v[1],I=s((0,i.useState)(new Set),2),S=I[0],U=I[1],k=s((0,i.useState)(null),2),w=k[0],C=k[1],O=s((0,i.useState)(""),2),A=O[0],z=O[1],P=s((0,i.useState)(null),2),T=P[0],B=P[1],E=s((0,i.useState)(!1),2),D=E[0],M=E[1],R=(0,o.useData)("/v1/plugins/commit/status",{params:{scope:g},enabled:!!g}),F=R.data,L=R.isLoading,N=R.refetch,_=(0,o.useData)("/v1/plugins/commit/plan",{params:{scope:g},enabled:!!g}),H=_.data,$=_.refetch,G=function(){N(),$()},K=(0,o.useMutateData)("/v1/plugins/commit/generate"),V=(0,o.useMutateData)("/v1/plugins/commit/apply"),W=(0,o.useMutateData)("/v1/plugins/commit/push"),q=(0,o.useMutateData)("/v1/plugins/commit/plan","DELETE"),J=(0,o.useMutateData)("/v1/plugins/commit/plan","PATCH"),Q=(0,o.useMutateData)("/v1/plugins/commit/regenerate-commit"),X=null!=(t=null==F?void 0:F.filesChanged)?t:0,Y=null!=(n=null==H||null==(y=H.plan)?void 0:y.commits)?n:[],Z=Y.length>0,ee=Z?null!=(f=null==F?void 0:F.planStatus)?f:"ready":"idle",et=K.isLoading||V.isLoading||W.isLoading||q.isLoading,en=function(){D?(0,l.UIModalConfirm)({title:"Allow Secrets?",icon:(0,r.jsx)(l.UIIcon,{name:"ExclamationCircleOutlined"}),content:"Files may contain secrets. This bypasses security checks.",okText:"Proceed",okType:"danger",onOk:function(){return K.mutate({scope:g,allowSecrets:!0,autoConfirm:!0},{onSuccess:G})}}):K.mutate({scope:g,allowSecrets:!1,autoConfirm:!1},{onSuccess:function(e){G(),e.secretsDetected&&e.secrets&&(0,l.UIModalError)({title:"Secrets Detected",width:600,content:(0,r.jsxs)("div",{children:[(0,r.jsx)(l.UIAlert,{message:e.message,variant:"error",showIcon:!0,style:{marginBottom:16}}),(0,r.jsxs)(d,{strong:!0,children:[e.secrets.length," potential secret(s) found."]}),(0,r.jsx)("div",{style:{maxHeight:300,overflow:"auto",marginTop:8},children:e.secrets.map(function(e,t){return(0,r.jsxs)(l.UICard,{size:"small",style:{marginBottom:8},children:[(0,r.jsxs)(d,{style:{fontFamily:"monospace",fontSize:12},children:[e.file,":",e.line]}),(0,r.jsx)("br",{}),(0,r.jsxs)(d,{type:"secondary",children:[e.type,": ",e.matched]})]},t)})})]})})}})},er=function(e){V.mutate({scope:g,commitIds:e},{onSuccess:function(e){G();var t,n,r,i,o=e.result,l=null!=(t=null==o||null==(r=o.appliedCommits)?void 0:r.length)?t:0,a=null!=(n=null==o?void 0:o.errors)?n:[];(null==o?void 0:o.success)?(x.success("".concat(l," commit(s) applied")),U(new Set)):l>0&&a.length>0?(x.warning("".concat(l," commit(s) applied, ").concat(a.length," failed: ").concat(a[0])),U(new Set)):x.error(null!=(i=a[0])?i:"Apply failed")},onError:function(e){return x.error("Apply failed: ".concat(e.message))}})},ei=function(e){J.mutate({scope:g,commitId:e,message:A},{onSuccess:function(){$(),C(null),x.success("Message updated")},onError:function(e){return x.error("Update failed: ".concat(e.message))}})},eo=function(e){B(e),Q.mutate({scope:g,commitId:e},{onSuccess:function(){$(),B(null),x.success("Commit regenerated")},onError:function(e){B(null),x.error("Regenerate failed: ".concat(e.message))}})},el=function(e,t){var n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n};if(!g)return(0,r.jsx)(l.UIEmptyState,{description:"Select a repository to continue"});if(L)return(0,r.jsx)(l.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});var ea={idle:{text:"No Plan",status:"default"},ready:{text:"Ready to Apply",status:"processing"},applied:{text:"Applied",status:"success"},pushed:{text:"Pushed",status:"success"}},es=null!=(m=ea[ee])?m:ea.idle;return(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:h.marginSM},children:[(0,r.jsx)(l.UICard,{size:"small",children:(0,r.jsxs)(l.UIFlex,{justify:"between",align:"center",children:[(0,r.jsxs)(l.UISpace,{size:24,children:[(0,r.jsx)(l.UIBadge,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},es)),(0,r.jsxs)(d,{type:"secondary",children:[Y.length," commit",1!==Y.length?"s":""]}),(0,r.jsxs)(d,{type:"secondary",children:[X," file",1!==X?"s":""," changed"]})]}),Z&&(0,r.jsxs)(l.UISpace,{size:8,children:["ready"===ee&&(S.size>0?(0,r.jsxs)(l.UIButton,{variant:"primary",size:"small",onClick:function(){return er(function(e){if(Array.isArray(e))return a(e)}(S)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(S)||c(S)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},loading:V.isLoading,disabled:et,children:["Apply Selected (",S.size,")"]}):(0,r.jsx)(l.UIButton,{variant:"primary",size:"small",onClick:function(){return er()},loading:V.isLoading,disabled:et,children:"Apply All"})),("applied"===ee||"pushed"===ee)&&(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"CloudUploadOutlined"}),onClick:function(){W.mutate({scope:g},{onSuccess:function(e){var t,n,r;G(),(null==(t=e.result)?void 0:t.success)?(x.success("Pushed ".concat(e.result.commitsPushed," commit(s) to ").concat(e.result.remote,"/").concat(e.result.branch)),U(new Set),b(new Set)):x.error(null!=(n=null==(r=e.result)?void 0:r.error)?n:"Push failed")},onError:function(e){return x.error("Push failed: ".concat(e.message))}})},loading:W.isLoading,disabled:et,children:"Push"}),(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"ReloadOutlined"}),onClick:en,loading:K.isLoading,disabled:et,children:"Regenerate"}),(0,r.jsx)(l.UIPopconfirm,{title:"Reset commit plan?",description:"This deletes the current plan.",onConfirm:function(){q.mutate({scope:g},{onSuccess:function(){G(),x.success("Plan reset"),U(new Set),b(new Set)},onError:function(e){return x.error("Reset failed: ".concat(e.message))}})},okText:"Reset",okType:"danger",children:(0,r.jsx)("span",{children:(0,r.jsx)(l.UIButton,{size:"small",danger:!0,icon:(0,r.jsx)(l.UIIcon,{name:"DeleteOutlined"}),loading:q.isLoading,disabled:et,children:"Reset"})})})]})]})}),K.isLoading&&(0,r.jsxs)(l.UICard,{style:{padding:"16px 24px"},children:[(0,r.jsx)(l.UISkeletonText,{width:["100%","85%","65%"],height:"16px",gap:12}),(0,r.jsx)("div",{style:{textAlign:"center",paddingTop:20},children:(0,r.jsxs)(l.UIShimmerText,{duration:"1.8s",children:["Analyzing ",X," files..."]})})]}),(!Z||0===Y.length)&&!K.isLoading&&(0,r.jsx)(l.UICard,{children:(0,r.jsx)(l.UIEmptyState,{icon:(0,r.jsx)(l.UIIcon,{name:"FileOutlined"}),title:"No commit plan yet",description:X>0?"".concat(X," file").concat(1!==X?"s":""," changed"):void 0,children:(0,r.jsxs)(l.UISpace,{direction:"vertical",align:"center",children:[(0,r.jsx)(l.UICheckbox,{checked:D,onChange:function(e){return M(e)},children:(0,r.jsx)(d,{type:"secondary",style:{fontSize:13},children:"Allow secrets"})}),(0,r.jsx)(l.UIButton,{variant:"primary",icon:(0,r.jsx)(l.UIIcon,{name:"ThunderboltOutlined"}),onClick:en,disabled:0===X,children:"Generate Plan"})]})})}),!K.isLoading&&Y.length>0&&Y.map(function(e){var t,n,i,o,a,s,c=j.has(e.id),u=w===e.id,f=T===e.id,m=S.has(e.id),y=null!=(t=p[e.type])?t:"default";return(0,r.jsxs)(l.UICard,{size:"small",style:{opacity:f?.6:1},children:[(0,r.jsxs)(l.UIFlex,{align:"center",gap:8,style:{marginBottom:c?h.marginSM:0},children:["ready"===ee&&(0,r.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,r.jsx)(l.UICheckbox,{checked:m,onChange:function(){return U(el(S,e.id))}})}),(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:11,cursor:"pointer",color:h.colorTextTertiary,transform:c?"rotate(90deg)":void 0,transition:"transform 0.2s"},onClick:function(){return b(el(j,e.id))}}),(0,r.jsx)(l.UITag,{color:y,style:{margin:0},children:e.type}),(0,r.jsx)("div",{style:{flex:1,cursor:"pointer",minWidth:0},onClick:function(){return b(el(j,e.id))},children:u?(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},onClick:function(e){return e.stopPropagation()},children:[(0,r.jsx)(l.UIInput,{size:"small",value:A,onChange:function(e){return z(e)},onPressEnter:function(){return ei(e.id)},autoFocus:!0,style:{flex:1}}),(0,r.jsx)(l.UIButton,{size:"small",variant:"text",icon:(0,r.jsx)(l.UIIcon,{name:"CheckOutlined"}),onClick:function(){return ei(e.id)},loading:J.isLoading}),(0,r.jsx)(l.UIButton,{size:"small",variant:"text",icon:(0,r.jsx)(l.UIIcon,{name:"CloseOutlined"}),onClick:function(){return C(null)}})]}):(0,r.jsxs)(d,{ellipsis:!0,children:[e.scope&&(0,r.jsxs)(d,{type:"secondary",children:["(",e.scope,")"," "]}),e.message]})}),e.breaking&&(0,r.jsx)(l.UITag,{color:"red",style:{margin:0},children:"BREAKING"}),(0,r.jsx)(l.UITooltip,{title:"".concat(null!=(n=null==(o=e.files)?void 0:o.length)?n:0," files"),children:(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12,whiteSpace:"nowrap"},children:[null!=(i=null==(a=e.files)?void 0:a.length)?i:0," files"]})}),(null==(s=e.reasoning)?void 0:s.confidence)!==void 0&&(0,r.jsx)(l.UITooltip,{title:"AI confidence",children:(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12},children:[(100*e.reasoning.confidence).toFixed(0),"%"]})}),"ready"===ee&&!u&&(0,r.jsx)(l.UIDropdown,{trigger:["click"],menu:{items:[{key:"edit",label:"Edit message",icon:(0,r.jsx)(l.UIIcon,{name:"EditOutlined"}),onClick:function(){C(e.id),z(e.message)}},{key:"regen",label:"Regenerate",icon:(0,r.jsx)(l.UIIcon,{name:"ReloadOutlined"}),onClick:function(){return eo(e.id)}}]},children:(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"MoreOutlined"}),onClick:function(e){return e.stopPropagation()}})})]}),c&&(0,r.jsxs)("div",{style:{paddingTop:h.paddingSM},children:[f&&(0,r.jsxs)(l.UIFlex,{justify:"center",style:{padding:h.padding},children:[(0,r.jsx)(l.UISpin,{size:"small"}),(0,r.jsx)(d,{type:"secondary",style:{marginLeft:8},children:"Regenerating..."})]}),e.body&&(0,r.jsx)(d,{type:"secondary",style:{whiteSpace:"pre-wrap",display:"block",marginBottom:h.marginSM},children:e.body}),e.files&&e.files.length>0&&(0,r.jsxs)("div",{style:{marginBottom:h.marginSM},children:[(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12,display:"block",marginBottom:4},children:[e.files.length," file",1!==e.files.length?"s":""]}),(0,r.jsx)(l.UICard,{size:"small",style:{background:h.colorFillAlter},children:e.files.map(function(e,t){return(0,r.jsx)("div",{style:{padding:"2px 0",fontFamily:"monospace",fontSize:12},children:e},t)})})]}),e.reasoning&&(0,r.jsx)(l.UIAlert,{message:"AI Reasoning",description:(0,r.jsxs)(d,{type:"secondary",children:[e.reasoning.explanation,void 0!==e.reasoning.confidence&&(0,r.jsxs)(r.Fragment,{children:[" (",(100*e.reasoning.confidence).toFixed(0),"% confidence)"]})]}),variant:"info"})]})]},e.id)})]})}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n,r,i,o,l){try{var a=e[o](l),s=a.value}catch(e){n(e);return}a.done?t(s):Promise.resolve(s).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function l(e){y(o,r,i,l,a,"next",e)}function a(e){y(o,r,i,l,a,"throw",e)}l(void 0)})}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(l,"next",{value:s(0)}),a(l,"throw",{value:s(1)}),a(l,"return",{value:s(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function s(a){return function(s){var c=[a,s];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var b=l.UITypographyText;function I(e){var t=e.scope,n=(0,o.useNotification)(),a=(0,o.useTheme)().semantic,s=v((0,i.useState)(new Set),2),c=s[0],u=s[1],d=v((0,i.useState)(new Set),2),p=d[0],f=d[1],m=v((0,i.useState)(null),2),y=m[0],I=m[1],U=v((0,i.useState)({}),2),k=U[0],w=U[1],C=v((0,i.useState)(null),2),O=C[0],A=C[1],z=v((0,i.useState)(!1),2),P=z[0],T=z[1],B=(0,o.useData)("/v1/plugins/commit/git-status",{params:{scope:t},enabled:!!t}),E=B.data,D=B.isLoading,M=(0,o.useMutateData)("/v1/plugins/commit/summarize");if(!t)return(0,r.jsx)(l.UIEmptyState,{description:"Select a scope to continue"});if(D)return(0,r.jsx)(l.UICard,{children:(0,r.jsx)(l.UISkeleton,{active:!0,lines:5})});var R=(null!=(H=null!=($=null==E?void 0:E.rows)?$:null==E?void 0:E.summaries)?H:[]).filter(function(e){return"string"==typeof(null==e?void 0:e.path)}).map(function(e){var t;return{path:e.path,status:null!=(t=e.status)?t:"modified"}});if(0===R.length)return(0,r.jsxs)(l.UICard,{style:{textAlign:"center",padding:"48px 0"},children:[(0,r.jsx)(l.UIIcon,{name:"FileOutlined",style:{fontSize:48,color:a.disabled,display:"block",marginBottom:16}}),(0,r.jsx)(b,{type:"secondary",children:"No files changed"})]});var F={},L=!0,N=!1,_=void 0;try{for(var H,$,G,K,V,W,q=R[Symbol.iterator]();!(L=(W=q.next()).done);L=!0){var J,Q,X=W.value;(null!=(Q=F[J=X.status])?Q:F[J]=[]).push(X)}}catch(e){N=!0,_=e}finally{try{L||null==q.return||q.return()}finally{if(N)throw _}}var Y=[{key:"staged",label:"Staged",color:a.success,tagColor:"green",iconName:"CheckCircleOutlined",files:null!=(G=F.staged)?G:[]},{key:"modified",label:"Modified",color:a.warning,tagColor:"orange",iconName:"EditOutlined",files:null!=(K=F.modified)?K:[]},{key:"untracked",label:"Untracked",color:a.disabled,tagColor:"default",iconName:"PlusOutlined",files:null!=(V=F.untracked)?V:[]}].filter(function(e){return e.files.length>0}),Z=function(e,t){var n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n};return(0,r.jsxs)("div",{children:[(0,r.jsx)(l.UICard,{size:"small",style:{marginBottom:16},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"center"},children:[(0,r.jsxs)(b,{type:"secondary",children:[R.length," file",1!==R.length?"s":""," changed"]}),Y.map(function(e){return(0,r.jsxs)(l.UITag,{color:e.tagColor,style:{margin:0},children:[e.label,": ",e.files.length]},e.key)})]}),(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"}),onClick:function(){return g(function(){return j(this,function(e){switch(e.label){case 0:T(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,M.mutateAsync({scope:t})];case 2:return I(e.sent().summary),n.success("Summary generated"),[3,5];case 3:return e.sent(),n.error("Failed to generate summary"),[3,5];case 4:return T(!1),[7];case 5:return[2]}})})()},loading:P,children:"Summarize All"})]})}),y&&(0,r.jsx)(l.UIAlert,{message:"AI Summary",description:y,variant:"info",closable:!0,onClose:function(){return I(null)},style:{marginBottom:16,whiteSpace:"pre-wrap"},icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"})}),Y.map(function(e){var i=p.has(e.key);return(0,r.jsxs)("div",{style:{marginBottom:16},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid ".concat(e.color),marginBottom:4},onClick:function(){return f(Z(p,e.key))},children:[(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:10,color:a.disabled,transform:i?void 0:"rotate(90deg)",transition:"transform 0.2s"}}),(0,r.jsx)(l.UIIcon,{name:e.iconName,style:{color:e.color}}),(0,r.jsx)(b,{strong:!0,children:e.label}),(0,r.jsx)(l.UIBadge,{count:e.files.length,style:{backgroundColor:e.color},size:"small"})]}),!i&&e.files.map(function(e){var i=c.has(e.path),o=k[e.path],s=O===e.path;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 12px",cursor:"pointer",borderBottom:"1px solid ".concat(a.borderPrimary)},onClick:function(){return u(Z(c,e.path))},children:[(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:10,color:a.disabled,transform:i?"rotate(90deg)":void 0,transition:"transform 0.2s"}}),(0,r.jsx)(l.UIIcon,{name:"FileOutlined",style:{fontSize:13,color:a.disabled}}),(0,r.jsx)(b,{style:{flex:1,fontFamily:"monospace",fontSize:13},ellipsis:!0,children:e.path}),(0,r.jsxs)("div",{style:{display:"flex",gap:4},onClick:function(e){return e.stopPropagation()},children:[(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"CopyOutlined"}),onClick:function(){navigator.clipboard.writeText(e.path),n.success("Copied")}}),(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"}),onClick:function(){var r;return r=e.path,g(function(){var e;return j(this,function(i){switch(i.label){case 0:A(r),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,M.mutateAsync({scope:t,file:r})];case 2:return e=i.sent(),w(function(t){var n,i;return n=x({},t),i=null!=(i=h({},r,e.summary))?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}),n}),[3,5];case 3:return i.sent(),n.error("Failed to summarize ".concat(r)),[3,5];case 4:return A(null),[7];case 5:return[2]}})})()},loading:s})]})]}),i&&(0,r.jsxs)("div",{style:{borderBottom:"1px solid ".concat(a.borderPrimary)},children:[o&&(0,r.jsx)(l.UIAlert,{message:"AI Summary",description:o,variant:"success",closable:!0,onClose:function(){return w(function(t){var n=x({},t);return delete n[e.path],n})},style:{margin:"8px 12px",whiteSpace:"pre-wrap"},icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"})}),(0,r.jsx)(S,{scope:t,file:e.path,status:e.status})]})]},e.path)})]},e.key)})]})}function S(e){var t=e.scope,n=e.file,i=e.status,a=(0,o.useData)("/v1/plugins/commit/diff",{params:{scope:t,file:n},enabled:!!t&&!!n}),s=a.data;return a.isLoading?(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(l.UISkeleton,{active:!0,lines:8})}):(null==s?void 0:s.diff)?"untracked"===i||"added"===i?(0,r.jsxs)("div",{style:{padding:16},children:[(0,r.jsx)(b,{type:"secondary",style:{display:"block",marginBottom:8},children:"New file content"}),(0,r.jsx)("pre",{style:{margin:0,maxHeight:700,overflow:"auto",fontFamily:"Monaco, Menlo, monospace",fontSize:12,lineHeight:1.5,padding:12,borderRadius:8,background:"var(--bg-tertiary)",border:"1px solid var(--border-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:s.diff})]}):(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(l.UIDiffViewer,{diff:s.diff,maxHeight:700})}):(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(b,{type:"secondary",children:"No changes to display"})})}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(){var e,t,n,a=function(e){if(Array.isArray(e))return e}(e=(0,i.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(i.push(t.value),2!==i.length);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e)||function(e){if(e){if("string"==typeof e)return U(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=a[0],c=a[1],u=(0,o.useData)("/v1/plugins/commit/scopes"),d=u.data,p=u.isLoading;(0,i.useEffect)(function(){var e;(null==d||null==(e=d.options)?void 0:e.length)&&!s&&c(d.value||d.options[0].value)},[d,s]);var m=null!=(t=null==d||null==(n=d.options)?void 0:n.map(function(e){return{label:e.label,value:e.value}}))?t:[],y=(0,r.jsx)(l.UITabs,{syncUrl:"search",items:[{key:"plan",label:"Commit Plan",children:(0,r.jsx)(f,{scope:s})},{key:"files",label:"Files",children:(0,r.jsx)(I,{scope:s})}]});return(0,r.jsx)(l.UIPage,{children:(0,r.jsx)(l.UIPageHeader,{title:"Commit",description:"AI-powered commit generation",actions:(0,r.jsx)(l.UISelect,{style:{width:260},placeholder:"Select repository...",value:s||void 0,onChange:function(e){return c(e)},loading:p,showSearch:!0,options:m}),tabs:y})})}}}]);
|
|
2
|
-
//# sourceMappingURL=__federation_expose_CommitOverview.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_commit_entry=self.rspackChunk_kb_labs_commit_entry||[]).push([[715],{6026(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return{$$typeof:n,type:e,key:i,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},4552(e,t,n){e.exports=n(6026)},5498(e,t,n){n.r(t),n.d(t,{default:()=>k});var r=n(4552),i=n(92),o=n(4519),l=n(5155);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||c(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}var u=n(9497).theme.useToken,d=l.UITypographyText,p={feat:"green",fix:"red",docs:"blue",style:"purple",refactor:"cyan",test:"magenta",chore:"default",perf:"gold",ci:"blue",build:"geekblue"};function f(e){var t,n,f,m,y,g=e.scope,h=u().token,x=(0,o.useNotification)(),v=s((0,i.useState)(new Set),2),j=v[0],b=v[1],I=s((0,i.useState)(new Set),2),S=I[0],U=I[1],k=s((0,i.useState)(null),2),w=k[0],C=k[1],O=s((0,i.useState)(""),2),A=O[0],z=O[1],P=s((0,i.useState)(null),2),T=P[0],B=P[1],E=s((0,i.useState)(!1),2),D=E[0],M=E[1],R=(0,o.useData)("/v1/plugins/commit/status",{params:{scope:g},enabled:!!g}),F=R.data,L=R.isLoading,N=R.refetch,_=(0,o.useData)("/v1/plugins/commit/plan",{params:{scope:g},enabled:!!g}),H=_.data,$=_.refetch,G=function(){N(),$()},K=(0,o.useMutateData)("/v1/plugins/commit/generate"),V=(0,o.useMutateData)("/v1/plugins/commit/apply"),W=(0,o.useMutateData)("/v1/plugins/commit/push"),q=(0,o.useMutateData)("/v1/plugins/commit/plan","DELETE"),J=(0,o.useMutateData)("/v1/plugins/commit/plan","PATCH"),Q=(0,o.useMutateData)("/v1/plugins/commit/regenerate-commit"),X=null!=(t=null==F?void 0:F.filesChanged)?t:0,Y=null!=(n=null==H||null==(y=H.plan)?void 0:y.commits)?n:[],Z=Y.length>0,ee=Z?null!=(f=null==F?void 0:F.planStatus)?f:"ready":"idle",et=K.isLoading||V.isLoading||W.isLoading||q.isLoading,en=function(){D?(0,l.UIModalConfirm)({title:"Allow Secrets?",icon:(0,r.jsx)(l.UIIcon,{name:"ExclamationCircleOutlined"}),content:"Files may contain secrets. This bypasses security checks.",okText:"Proceed",okType:"danger",onOk:function(){return K.mutate({scope:g,allowSecrets:!0,autoConfirm:!0},{onSuccess:G})}}):K.mutate({scope:g,allowSecrets:!1,autoConfirm:!1},{onSuccess:function(e){G(),e.secretsDetected&&e.secrets&&(0,l.UIModalError)({title:"Secrets Detected",width:600,content:(0,r.jsxs)("div",{children:[(0,r.jsx)(l.UIAlert,{message:e.message,variant:"error",showIcon:!0,style:{marginBottom:16}}),(0,r.jsxs)(d,{strong:!0,children:[e.secrets.length," potential secret(s) found."]}),(0,r.jsx)("div",{style:{maxHeight:300,overflow:"auto",marginTop:8},children:e.secrets.map(function(e,t){return(0,r.jsxs)(l.UICard,{size:"small",style:{marginBottom:8},children:[(0,r.jsxs)(d,{style:{fontFamily:"monospace",fontSize:12},children:[e.file,":",e.line]}),(0,r.jsx)("br",{}),(0,r.jsxs)(d,{type:"secondary",children:[e.type,": ",e.matched]})]},t)})})]})})}})},er=function(e){V.mutate({scope:g,commitIds:e},{onSuccess:function(e){G();var t,n,r,i,o=e.result,l=null!=(t=null==o||null==(r=o.appliedCommits)?void 0:r.length)?t:0,a=null!=(n=null==o?void 0:o.errors)?n:[];(null==o?void 0:o.success)?(x.success("".concat(l," commit(s) applied")),U(new Set)):l>0&&a.length>0?(x.warning("".concat(l," commit(s) applied, ").concat(a.length," failed: ").concat(a[0])),U(new Set)):x.error(null!=(i=a[0])?i:"Apply failed")},onError:function(e){return x.error("Apply failed: ".concat(e.message))}})},ei=function(e){J.mutate({scope:g,commitId:e,message:A},{onSuccess:function(){$(),C(null),x.success("Message updated")},onError:function(e){return x.error("Update failed: ".concat(e.message))}})},eo=function(e){B(e),Q.mutate({scope:g,commitId:e},{onSuccess:function(){$(),B(null),x.success("Commit regenerated")},onError:function(e){B(null),x.error("Regenerate failed: ".concat(e.message))}})},el=function(e,t){var n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n};if(!g)return(0,r.jsx)(l.UIEmptyState,{description:"Select a repository to continue"});if(L)return(0,r.jsx)(l.UISpin,{size:"large",style:{display:"block",margin:"48px auto"}});var ea={idle:{text:"No Plan",status:"default"},ready:{text:"Ready to Apply",status:"processing"},applied:{text:"Applied",status:"success"},pushed:{text:"Pushed",status:"success"}},es=null!=(m=ea[ee])?m:ea.idle;return(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:h.marginSM},children:[(0,r.jsx)(l.UICard,{size:"small",children:(0,r.jsxs)(l.UIFlex,{justify:"between",align:"center",children:[(0,r.jsxs)(l.UISpace,{size:24,children:[(0,r.jsx)(l.UIBadge,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},es)),(0,r.jsxs)(d,{type:"secondary",children:[Y.length," commit",1!==Y.length?"s":""]}),(0,r.jsxs)(d,{type:"secondary",children:[X," file",1!==X?"s":""," changed"]})]}),Z&&(0,r.jsxs)(l.UISpace,{size:8,children:["ready"===ee&&(S.size>0?(0,r.jsxs)(l.UIButton,{variant:"primary",size:"small",onClick:function(){return er(function(e){if(Array.isArray(e))return a(e)}(S)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(S)||c(S)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},loading:V.isLoading,disabled:et,children:["Apply Selected (",S.size,")"]}):(0,r.jsx)(l.UIButton,{variant:"primary",size:"small",onClick:function(){return er()},loading:V.isLoading,disabled:et,children:"Apply All"})),("applied"===ee||"pushed"===ee)&&(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"CloudUploadOutlined"}),onClick:function(){W.mutate({scope:g},{onSuccess:function(e){var t,n,r;G(),(null==(t=e.result)?void 0:t.success)?(x.success("Pushed ".concat(e.result.commitsPushed," commit(s) to ").concat(e.result.remote,"/").concat(e.result.branch)),U(new Set),b(new Set)):x.error(null!=(n=null==(r=e.result)?void 0:r.error)?n:"Push failed")},onError:function(e){return x.error("Push failed: ".concat(e.message))}})},loading:W.isLoading,disabled:et,children:"Push"}),(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"ReloadOutlined"}),onClick:en,loading:K.isLoading,disabled:et,children:"Regenerate"}),(0,r.jsx)(l.UIPopconfirm,{title:"Reset commit plan?",description:"This deletes the current plan.",onConfirm:function(){q.mutate({scope:g},{onSuccess:function(){G(),x.success("Plan reset"),U(new Set),b(new Set)},onError:function(e){return x.error("Reset failed: ".concat(e.message))}})},okText:"Reset",okType:"danger",children:(0,r.jsx)("span",{children:(0,r.jsx)(l.UIButton,{size:"small",danger:!0,icon:(0,r.jsx)(l.UIIcon,{name:"DeleteOutlined"}),loading:q.isLoading,disabled:et,children:"Reset"})})})]})]})}),K.isLoading&&(0,r.jsxs)(l.UICard,{style:{padding:"16px 24px"},children:[(0,r.jsx)(l.UISkeletonText,{width:["100%","85%","65%"],height:"16px",gap:12}),(0,r.jsx)("div",{style:{textAlign:"center",paddingTop:20},children:(0,r.jsxs)(l.UIShimmerText,{duration:"1.8s",children:["Analyzing ",X," files..."]})})]}),(!Z||0===Y.length)&&!K.isLoading&&(0,r.jsx)(l.UICard,{children:(0,r.jsx)(l.UIEmptyState,{icon:(0,r.jsx)(l.UIIcon,{name:"FileOutlined"}),title:"No commit plan yet",description:X>0?"".concat(X," file").concat(1!==X?"s":""," changed"):void 0,children:(0,r.jsxs)(l.UISpace,{direction:"vertical",align:"center",children:[(0,r.jsx)(l.UICheckbox,{checked:D,onChange:function(e){return M(e)},children:(0,r.jsx)(d,{type:"secondary",style:{fontSize:13},children:"Allow secrets"})}),(0,r.jsx)(l.UIButton,{variant:"primary",icon:(0,r.jsx)(l.UIIcon,{name:"ThunderboltOutlined"}),onClick:en,disabled:0===X,children:"Generate Plan"})]})})}),!K.isLoading&&Y.length>0&&Y.map(function(e){var t,n,i,o,a,s,c=j.has(e.id),u=w===e.id,f=T===e.id,m=S.has(e.id),y=null!=(t=p[e.type])?t:"default";return(0,r.jsxs)(l.UICard,{size:"small",style:{opacity:f?.6:1},children:[(0,r.jsxs)(l.UIFlex,{align:"center",gap:8,style:{marginBottom:c?h.marginSM:0},children:["ready"===ee&&(0,r.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,r.jsx)(l.UICheckbox,{checked:m,onChange:function(){return U(el(S,e.id))}})}),(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:11,cursor:"pointer",color:h.colorTextTertiary,transform:c?"rotate(90deg)":void 0,transition:"transform 0.2s"},onClick:function(){return b(el(j,e.id))}}),(0,r.jsx)(l.UITag,{color:y,style:{margin:0},children:e.type}),(0,r.jsx)("div",{style:{flex:1,cursor:"pointer",minWidth:0},onClick:function(){return b(el(j,e.id))},children:u?(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},onClick:function(e){return e.stopPropagation()},children:[(0,r.jsx)(l.UIInput,{size:"small",value:A,onChange:function(e){return z(e)},onPressEnter:function(){return ei(e.id)},autoFocus:!0,style:{flex:1}}),(0,r.jsx)(l.UIButton,{size:"small",variant:"text",icon:(0,r.jsx)(l.UIIcon,{name:"CheckOutlined"}),onClick:function(){return ei(e.id)},loading:J.isLoading}),(0,r.jsx)(l.UIButton,{size:"small",variant:"text",icon:(0,r.jsx)(l.UIIcon,{name:"CloseOutlined"}),onClick:function(){return C(null)}})]}):(0,r.jsxs)(d,{ellipsis:!0,children:[e.scope&&(0,r.jsxs)(d,{type:"secondary",children:["(",e.scope,")"," "]}),e.message]})}),e.breaking&&(0,r.jsx)(l.UITag,{color:"red",style:{margin:0},children:"BREAKING"}),(0,r.jsx)(l.UITooltip,{title:"".concat(null!=(n=null==(o=e.files)?void 0:o.length)?n:0," files"),children:(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12,whiteSpace:"nowrap"},children:[null!=(i=null==(a=e.files)?void 0:a.length)?i:0," files"]})}),(null==(s=e.reasoning)?void 0:s.confidence)!==void 0&&(0,r.jsx)(l.UITooltip,{title:"AI confidence",children:(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12},children:[(100*e.reasoning.confidence).toFixed(0),"%"]})}),"ready"===ee&&!u&&(0,r.jsx)(l.UIDropdown,{trigger:["click"],menu:{items:[{key:"edit",label:"Edit message",icon:(0,r.jsx)(l.UIIcon,{name:"EditOutlined"}),onClick:function(){C(e.id),z(e.message)}},{key:"regen",label:"Regenerate",icon:(0,r.jsx)(l.UIIcon,{name:"ReloadOutlined"}),onClick:function(){return eo(e.id)}}]},children:(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"MoreOutlined"}),onClick:function(e){return e.stopPropagation()}})})]}),c&&(0,r.jsxs)("div",{style:{paddingTop:h.paddingSM},children:[f&&(0,r.jsxs)(l.UIFlex,{justify:"center",style:{padding:h.padding},children:[(0,r.jsx)(l.UISpin,{size:"small"}),(0,r.jsx)(d,{type:"secondary",style:{marginLeft:8},children:"Regenerating..."})]}),e.body&&(0,r.jsx)(d,{type:"secondary",style:{whiteSpace:"pre-wrap",display:"block",marginBottom:h.marginSM},children:e.body}),e.files&&e.files.length>0&&(0,r.jsxs)("div",{style:{marginBottom:h.marginSM},children:[(0,r.jsxs)(d,{type:"secondary",style:{fontSize:12,display:"block",marginBottom:4},children:[e.files.length," file",1!==e.files.length?"s":""]}),(0,r.jsx)(l.UICard,{size:"small",style:{background:h.colorFillAlter},children:e.files.map(function(e,t){return(0,r.jsx)("div",{style:{padding:"2px 0",fontFamily:"monospace",fontSize:12},children:e},t)})})]}),e.reasoning&&(0,r.jsx)(l.UIAlert,{message:"AI Reasoning",description:(0,r.jsxs)(d,{type:"secondary",children:[e.reasoning.explanation,void 0!==e.reasoning.confidence&&(0,r.jsxs)(r.Fragment,{children:[" (",(100*e.reasoning.confidence).toFixed(0),"% confidence)"]})]}),variant:"info"})]})]},e.id)})]})}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n,r,i,o,l){try{var a=e[o](l),s=a.value}catch(e){n(e);return}a.done?t(s):Promise.resolve(s).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function l(e){y(o,r,i,l,a,"next",e)}function a(e){y(o,r,i,l,a,"throw",e)}l(void 0)})}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(l,"next",{value:s(0)}),a(l,"throw",{value:s(1)}),a(l,"return",{value:s(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function s(a){return function(s){var c=[a,s];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var b=l.UITypographyText;function I(e){var t=e.scope,n=(0,o.useNotification)(),a=(0,o.useTheme)().semantic,s=v((0,i.useState)(new Set),2),c=s[0],u=s[1],d=v((0,i.useState)(new Set),2),p=d[0],f=d[1],m=v((0,i.useState)(null),2),y=m[0],I=m[1],U=v((0,i.useState)({}),2),k=U[0],w=U[1],C=v((0,i.useState)(null),2),O=C[0],A=C[1],z=v((0,i.useState)(!1),2),P=z[0],T=z[1],B=(0,o.useData)("/v1/plugins/commit/git-status",{params:{scope:t},enabled:!!t}),E=B.data,D=B.isLoading,M=(0,o.useMutateData)("/v1/plugins/commit/summarize");if(!t)return(0,r.jsx)(l.UIEmptyState,{description:"Select a scope to continue"});if(D)return(0,r.jsx)(l.UICard,{children:(0,r.jsx)(l.UISkeleton,{active:!0,lines:5})});var R=(null!=(H=null!=($=null==E?void 0:E.rows)?$:null==E?void 0:E.summaries)?H:[]).filter(function(e){return"string"==typeof(null==e?void 0:e.path)}).map(function(e){var t;return{path:e.path,status:null!=(t=e.status)?t:"modified"}});if(0===R.length)return(0,r.jsxs)(l.UICard,{style:{textAlign:"center",padding:"48px 0"},children:[(0,r.jsx)(l.UIIcon,{name:"FileOutlined",style:{fontSize:48,color:a.disabled,display:"block",marginBottom:16}}),(0,r.jsx)(b,{type:"secondary",children:"No files changed"})]});var F={},L=!0,N=!1,_=void 0;try{for(var H,$,G,K,V,W,q=R[Symbol.iterator]();!(L=(W=q.next()).done);L=!0){var J,Q,X=W.value;(null!=(Q=F[J=X.status])?Q:F[J]=[]).push(X)}}catch(e){N=!0,_=e}finally{try{L||null==q.return||q.return()}finally{if(N)throw _}}var Y=[{key:"staged",label:"Staged",color:a.success,tagColor:"green",iconName:"CheckCircleOutlined",files:null!=(G=F.staged)?G:[]},{key:"modified",label:"Modified",color:a.warning,tagColor:"orange",iconName:"EditOutlined",files:null!=(K=F.modified)?K:[]},{key:"untracked",label:"Untracked",color:a.disabled,tagColor:"default",iconName:"PlusOutlined",files:null!=(V=F.untracked)?V:[]}].filter(function(e){return e.files.length>0}),Z=function(e,t){var n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n};return(0,r.jsxs)("div",{children:[(0,r.jsx)(l.UICard,{size:"small",style:{marginBottom:16},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"center"},children:[(0,r.jsxs)(b,{type:"secondary",children:[R.length," file",1!==R.length?"s":""," changed"]}),Y.map(function(e){return(0,r.jsxs)(l.UITag,{color:e.tagColor,style:{margin:0},children:[e.label,": ",e.files.length]},e.key)})]}),(0,r.jsx)(l.UIButton,{size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"}),onClick:function(){return g(function(){return j(this,function(e){switch(e.label){case 0:T(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,M.mutateAsync({scope:t})];case 2:return I(e.sent().summary),n.success("Summary generated"),[3,5];case 3:return e.sent(),n.error("Failed to generate summary"),[3,5];case 4:return T(!1),[7];case 5:return[2]}})})()},loading:P,children:"Summarize All"})]})}),y&&(0,r.jsx)(l.UIAlert,{message:"AI Summary",description:y,variant:"info",closable:!0,onClose:function(){return I(null)},style:{marginBottom:16,whiteSpace:"pre-wrap"},icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"})}),Y.map(function(e){var i=p.has(e.key);return(0,r.jsxs)("div",{style:{marginBottom:16},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid ".concat(e.color),marginBottom:4},onClick:function(){return f(Z(p,e.key))},children:[(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:10,color:a.disabled,transform:i?void 0:"rotate(90deg)",transition:"transform 0.2s"}}),(0,r.jsx)(l.UIIcon,{name:e.iconName,style:{color:e.color}}),(0,r.jsx)(b,{strong:!0,children:e.label}),(0,r.jsx)(l.UIBadge,{count:e.files.length,style:{backgroundColor:e.color},size:"small"})]}),!i&&e.files.map(function(e){var i=c.has(e.path),o=k[e.path],s=O===e.path;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 12px",cursor:"pointer",borderBottom:"1px solid ".concat(a.borderPrimary)},onClick:function(){return u(Z(c,e.path))},children:[(0,r.jsx)(l.UIIcon,{name:"RightOutlined",style:{fontSize:10,color:a.disabled,transform:i?"rotate(90deg)":void 0,transition:"transform 0.2s"}}),(0,r.jsx)(l.UIIcon,{name:"FileOutlined",style:{fontSize:13,color:a.disabled}}),(0,r.jsx)(b,{style:{flex:1,fontFamily:"monospace",fontSize:13},ellipsis:!0,children:e.path}),(0,r.jsxs)("div",{style:{display:"flex",gap:4},onClick:function(e){return e.stopPropagation()},children:[(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"CopyOutlined"}),onClick:function(){navigator.clipboard.writeText(e.path),n.success("Copied")}}),(0,r.jsx)(l.UIButton,{variant:"text",size:"small",icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"}),onClick:function(){var r;return r=e.path,g(function(){var e;return j(this,function(i){switch(i.label){case 0:A(r),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,M.mutateAsync({scope:t,file:r})];case 2:return e=i.sent(),w(function(t){var n,i;return n=x({},t),i=null!=(i=h({},r,e.summary))?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}),n}),[3,5];case 3:return i.sent(),n.error("Failed to summarize ".concat(r)),[3,5];case 4:return A(null),[7];case 5:return[2]}})})()},loading:s})]})]}),i&&(0,r.jsxs)("div",{style:{borderBottom:"1px solid ".concat(a.borderPrimary)},children:[o&&(0,r.jsx)(l.UIAlert,{message:"AI Summary",description:o,variant:"success",closable:!0,onClose:function(){return w(function(t){var n=x({},t);return delete n[e.path],n})},style:{margin:"8px 12px",whiteSpace:"pre-wrap"},icon:(0,r.jsx)(l.UIIcon,{name:"RobotOutlined"})}),(0,r.jsx)(S,{scope:t,file:e.path,status:e.status})]})]},e.path)})]},e.key)})]})}function S(e){var t=e.scope,n=e.file,i=e.status,a=(0,o.useData)("/v1/plugins/commit/diff",{params:{scope:t,file:n},enabled:!!t&&!!n}),s=a.data;return a.isLoading?(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(l.UISkeleton,{active:!0,lines:8})}):(null==s?void 0:s.diff)?"untracked"===i||"added"===i?(0,r.jsxs)("div",{style:{padding:16},children:[(0,r.jsx)(b,{type:"secondary",style:{display:"block",marginBottom:8},children:"New file content"}),(0,r.jsx)("pre",{style:{margin:0,maxHeight:700,overflow:"auto",fontFamily:"Monaco, Menlo, monospace",fontSize:12,lineHeight:1.5,padding:12,borderRadius:8,background:"var(--bg-tertiary)",border:"1px solid var(--border-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:s.diff})]}):(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(l.UIDiffViewer,{diff:s.diff,maxHeight:700})}):(0,r.jsx)("div",{style:{padding:16},children:(0,r.jsx)(b,{type:"secondary",children:"No changes to display"})})}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(){var e,t,n,a=function(e){if(Array.isArray(e))return e}(e=(0,i.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(i.push(t.value),2!==i.length);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e)||function(e){if(e){if("string"==typeof e)return U(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=a[0],c=a[1],u=(0,o.useData)("/v1/plugins/commit/scopes"),d=u.data,p=u.isLoading;(0,i.useEffect)(function(){var e;(null==d||null==(e=d.options)?void 0:e.length)&&!s&&c(d.value||d.options[0].value)},[d,s]);var m=null!=(t=null==d||null==(n=d.options)?void 0:n.map(function(e){return{label:e.label,value:e.value}}))?t:[],y=(0,r.jsx)(l.UITabs,{syncUrl:"search",items:[{key:"plan",label:"Commit Plan",children:(0,r.jsx)(f,{scope:s})},{key:"files",label:"Files",children:(0,r.jsx)(I,{scope:s})}]});return(0,r.jsx)(l.UIPage,{children:(0,r.jsx)(l.UIPageHeader,{title:"Commit",description:"AI-powered commit generation",actions:(0,r.jsx)(l.UISelect,{style:{width:260},placeholder:"Select repository...",value:s||void 0,onChange:function(e){return c(e)},loading:p,showSearch:!0,options:m}),tabs:y})})}}}]);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "commitPlugin",
|
|
6
6
|
"globalName": "commitPlugin",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "2.
|
|
8
|
+
"buildVersion": "2.107.0",
|
|
9
9
|
"buildName": "@kb-labs/commit-entry"
|
|
10
10
|
},
|
|
11
11
|
"publicPath": "auto",
|
|
@@ -25,15 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
28
|
-
"id": "commitPlugin
|
|
29
|
-
"name": "
|
|
30
|
-
"version": "
|
|
28
|
+
"id": "commitPlugin:@kb-labs/studio-event-bus",
|
|
29
|
+
"name": "@kb-labs/studio-event-bus",
|
|
30
|
+
"version": "2.107.0",
|
|
31
31
|
"singleton": true,
|
|
32
|
-
"requiredVersion": "^
|
|
32
|
+
"requiredVersion": "^2.0.0",
|
|
33
33
|
"assets": {
|
|
34
34
|
"js": {
|
|
35
35
|
"sync": [
|
|
36
|
-
"
|
|
36
|
+
"50.js",
|
|
37
|
+
"669.js"
|
|
37
38
|
],
|
|
38
39
|
"async": []
|
|
39
40
|
},
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
{
|
|
47
48
|
"id": "commitPlugin:@kb-labs/studio-ui-core",
|
|
48
49
|
"name": "@kb-labs/studio-ui-core",
|
|
49
|
-
"version": "2.
|
|
50
|
+
"version": "2.107.0",
|
|
50
51
|
"singleton": true,
|
|
51
52
|
"requiredVersion": "^2.0.0",
|
|
52
53
|
"assets": {
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
{
|
|
86
87
|
"id": "commitPlugin:@kb-labs/studio-hooks",
|
|
87
88
|
"name": "@kb-labs/studio-hooks",
|
|
88
|
-
"version": "2.
|
|
89
|
+
"version": "2.107.0",
|
|
89
90
|
"singleton": true,
|
|
90
91
|
"requiredVersion": "^2.0.0",
|
|
91
92
|
"assets": {
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
{
|
|
106
107
|
"id": "commitPlugin:@kb-labs/studio-ui-kit",
|
|
107
108
|
"name": "@kb-labs/studio-ui-kit",
|
|
108
|
-
"version": "2.
|
|
109
|
+
"version": "2.107.0",
|
|
109
110
|
"singleton": true,
|
|
110
111
|
"requiredVersion": "^2.0.0",
|
|
111
112
|
"assets": {
|
|
@@ -125,16 +126,15 @@
|
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
|
-
"id": "commitPlugin:react
|
|
129
|
-
"name": "react
|
|
129
|
+
"id": "commitPlugin:react",
|
|
130
|
+
"name": "react",
|
|
130
131
|
"version": "19.2.5",
|
|
131
132
|
"singleton": true,
|
|
132
133
|
"requiredVersion": "^19.0.0",
|
|
133
134
|
"assets": {
|
|
134
135
|
"js": {
|
|
135
136
|
"sync": [
|
|
136
|
-
"
|
|
137
|
-
"546.js"
|
|
137
|
+
"405.js"
|
|
138
138
|
],
|
|
139
139
|
"async": []
|
|
140
140
|
},
|
|
@@ -145,15 +145,16 @@
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
"id": "commitPlugin:react",
|
|
149
|
-
"name": "react",
|
|
148
|
+
"id": "commitPlugin:react-dom",
|
|
149
|
+
"name": "react-dom",
|
|
150
150
|
"version": "19.2.5",
|
|
151
151
|
"singleton": true,
|
|
152
152
|
"requiredVersion": "^19.0.0",
|
|
153
153
|
"assets": {
|
|
154
154
|
"js": {
|
|
155
155
|
"sync": [
|
|
156
|
-
"
|
|
156
|
+
"165.js",
|
|
157
|
+
"546.js"
|
|
157
158
|
],
|
|
158
159
|
"async": []
|
|
159
160
|
},
|
|
@@ -184,16 +185,15 @@
|
|
|
184
185
|
}
|
|
185
186
|
},
|
|
186
187
|
{
|
|
187
|
-
"id": "commitPlugin
|
|
188
|
-
"name": "
|
|
189
|
-
"version": "
|
|
188
|
+
"id": "commitPlugin:react-router-dom",
|
|
189
|
+
"name": "react-router-dom",
|
|
190
|
+
"version": "7.18.1",
|
|
190
191
|
"singleton": true,
|
|
191
|
-
"requiredVersion": "^
|
|
192
|
+
"requiredVersion": "^7.0.0",
|
|
192
193
|
"assets": {
|
|
193
194
|
"js": {
|
|
194
195
|
"sync": [
|
|
195
|
-
"
|
|
196
|
-
"669.js"
|
|
196
|
+
"875.js"
|
|
197
197
|
],
|
|
198
198
|
"async": []
|
|
199
199
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "commitPlugin",
|
|
6
6
|
"globalName": "commitPlugin",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "2.
|
|
8
|
+
"buildVersion": "2.107.0",
|
|
9
9
|
"buildName": "@kb-labs/commit-entry"
|
|
10
10
|
},
|
|
11
11
|
"publicPath": "auto",
|
|
@@ -25,15 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
28
|
-
"id": "commitPlugin
|
|
29
|
-
"name": "
|
|
30
|
-
"version": "
|
|
31
|
-
"requiredVersion": "^
|
|
28
|
+
"id": "commitPlugin:@kb-labs/studio-event-bus",
|
|
29
|
+
"name": "@kb-labs/studio-event-bus",
|
|
30
|
+
"version": "2.107.0",
|
|
31
|
+
"requiredVersion": "^2.0.0",
|
|
32
32
|
"singleton": true,
|
|
33
33
|
"assets": {
|
|
34
34
|
"js": {
|
|
35
35
|
"sync": [
|
|
36
|
-
"
|
|
36
|
+
"50.js",
|
|
37
|
+
"669.js"
|
|
37
38
|
],
|
|
38
39
|
"async": []
|
|
39
40
|
},
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
{
|
|
49
50
|
"id": "commitPlugin:@kb-labs/studio-ui-core",
|
|
50
51
|
"name": "@kb-labs/studio-ui-core",
|
|
51
|
-
"version": "2.
|
|
52
|
+
"version": "2.107.0",
|
|
52
53
|
"requiredVersion": "^2.0.0",
|
|
53
54
|
"singleton": true,
|
|
54
55
|
"assets": {
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
{
|
|
92
93
|
"id": "commitPlugin:@kb-labs/studio-hooks",
|
|
93
94
|
"name": "@kb-labs/studio-hooks",
|
|
94
|
-
"version": "2.
|
|
95
|
+
"version": "2.107.0",
|
|
95
96
|
"requiredVersion": "^2.0.0",
|
|
96
97
|
"singleton": true,
|
|
97
98
|
"assets": {
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
{
|
|
114
115
|
"id": "commitPlugin:@kb-labs/studio-ui-kit",
|
|
115
116
|
"name": "@kb-labs/studio-ui-kit",
|
|
116
|
-
"version": "2.
|
|
117
|
+
"version": "2.107.0",
|
|
117
118
|
"requiredVersion": "^2.0.0",
|
|
118
119
|
"singleton": true,
|
|
119
120
|
"assets": {
|
|
@@ -135,16 +136,15 @@
|
|
|
135
136
|
"usedExports": []
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
|
-
"id": "commitPlugin:react
|
|
139
|
-
"name": "react
|
|
139
|
+
"id": "commitPlugin:react",
|
|
140
|
+
"name": "react",
|
|
140
141
|
"version": "19.2.5",
|
|
141
142
|
"requiredVersion": "^19.0.0",
|
|
142
143
|
"singleton": true,
|
|
143
144
|
"assets": {
|
|
144
145
|
"js": {
|
|
145
146
|
"sync": [
|
|
146
|
-
"
|
|
147
|
-
"546.js"
|
|
147
|
+
"405.js"
|
|
148
148
|
],
|
|
149
149
|
"async": []
|
|
150
150
|
},
|
|
@@ -153,19 +153,22 @@
|
|
|
153
153
|
"async": []
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
"usedIn": [
|
|
156
|
+
"usedIn": [
|
|
157
|
+
"src/studio/pages/CommitOverview.tsx"
|
|
158
|
+
],
|
|
157
159
|
"usedExports": []
|
|
158
160
|
},
|
|
159
161
|
{
|
|
160
|
-
"id": "commitPlugin:react",
|
|
161
|
-
"name": "react",
|
|
162
|
+
"id": "commitPlugin:react-dom",
|
|
163
|
+
"name": "react-dom",
|
|
162
164
|
"version": "19.2.5",
|
|
163
165
|
"requiredVersion": "^19.0.0",
|
|
164
166
|
"singleton": true,
|
|
165
167
|
"assets": {
|
|
166
168
|
"js": {
|
|
167
169
|
"sync": [
|
|
168
|
-
"
|
|
170
|
+
"165.js",
|
|
171
|
+
"546.js"
|
|
169
172
|
],
|
|
170
173
|
"async": []
|
|
171
174
|
},
|
|
@@ -174,9 +177,7 @@
|
|
|
174
177
|
"async": []
|
|
175
178
|
}
|
|
176
179
|
},
|
|
177
|
-
"usedIn": [
|
|
178
|
-
"src/studio/pages/CommitOverview.tsx"
|
|
179
|
-
],
|
|
180
|
+
"usedIn": [],
|
|
180
181
|
"usedExports": []
|
|
181
182
|
},
|
|
182
183
|
{
|
|
@@ -202,16 +203,15 @@
|
|
|
202
203
|
"usedExports": []
|
|
203
204
|
},
|
|
204
205
|
{
|
|
205
|
-
"id": "commitPlugin
|
|
206
|
-
"name": "
|
|
207
|
-
"version": "
|
|
208
|
-
"requiredVersion": "^
|
|
206
|
+
"id": "commitPlugin:react-router-dom",
|
|
207
|
+
"name": "react-router-dom",
|
|
208
|
+
"version": "7.18.1",
|
|
209
|
+
"requiredVersion": "^7.0.0",
|
|
209
210
|
"singleton": true,
|
|
210
211
|
"assets": {
|
|
211
212
|
"js": {
|
|
212
213
|
"sync": [
|
|
213
|
-
"
|
|
214
|
-
"669.js"
|
|
214
|
+
"875.js"
|
|
215
215
|
],
|
|
216
216
|
"async": []
|
|
217
217
|
},
|