hex-audit 0.5.0 → 0.5.1
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/dashboard/.next/BUILD_ID +1 -1
- package/dashboard/.next/app-build-manifest.json +23 -23
- package/dashboard/.next/app-path-routes-manifest.json +1 -1
- package/dashboard/.next/build-manifest.json +2 -2
- package/dashboard/.next/next-minimal-server.js.nft.json +1 -1
- package/dashboard/.next/next-server.js.nft.json +1 -1
- package/dashboard/.next/prerender-manifest.json +1 -1
- package/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/_not-found.html +1 -1
- package/dashboard/.next/server/app/_not-found.rsc +4 -4
- package/dashboard/.next/server/app/access/page.js +1 -1
- package/dashboard/.next/server/app/access/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/access/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/api/flows/route.js +1 -1
- package/dashboard/.next/server/app/api/github-status/route.js +1 -1
- package/dashboard/.next/server/app/api/issues/[id]/move/route.js +1 -1
- package/dashboard/.next/server/app/api/issues/[id]/move/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/issues/[id]/route.js +1 -1
- package/dashboard/.next/server/app/api/issues/[id]/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/mermaid/route.js +1 -1
- package/dashboard/.next/server/app/api/progress/route.js +1 -1
- package/dashboard/.next/server/app/api/watch/route.js +2 -2
- package/dashboard/.next/server/app/calls/page.js +1 -1
- package/dashboard/.next/server/app/calls/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/calls/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/conformance/page.js +1 -1
- package/dashboard/.next/server/app/conformance/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/diagram/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/diagram.html +1 -1
- package/dashboard/.next/server/app/diagram.rsc +4 -4
- package/dashboard/.next/server/app/flows/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/flows.html +1 -1
- package/dashboard/.next/server/app/flows.rsc +4 -4
- package/dashboard/.next/server/app/functions/page.js +1 -1
- package/dashboard/.next/server/app/functions/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/functions/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/issues/page.js +5 -3
- package/dashboard/.next/server/app/issues/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/overleaf/page.js +1 -1
- package/dashboard/.next/server/app/overleaf/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/page.js +1 -1
- package/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/progress/page.js +1 -1
- package/dashboard/.next/server/app/progress/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/stats/page.js +1 -1
- package/dashboard/.next/server/app/stats/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/stats/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app-paths-manifest.json +7 -7
- package/dashboard/.next/server/chunks/42.js +1 -0
- package/dashboard/.next/server/chunks/431.js +1 -1
- package/dashboard/.next/server/chunks/44.js +1 -0
- package/dashboard/.next/server/functions-config-manifest.json +1 -1
- package/dashboard/.next/server/middleware-build-manifest.js +1 -1
- package/dashboard/.next/server/pages/404.html +1 -1
- package/dashboard/.next/server/pages/500.html +1 -1
- package/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dashboard/.next/static/chunks/app/issues/{page-2bb52a36f20497fe.js → page-6bfbf80884d3c9d8.js} +1 -1
- package/dashboard/.next/static/chunks/app/{layout-9c3c84993dd895f6.js → layout-91d2987f5030a3c4.js} +1 -1
- package/dashboard/components/DashboardLayout.tsx +1 -1
- package/dashboard/lib/data.ts +11 -19
- package/dashboard/lib/finding-markdown.ts +42 -3
- package/dist/commands/access.d.ts.map +1 -1
- package/dist/commands/access.js +3 -4
- package/dist/commands/access.js.map +1 -1
- package/dist/commands/ai-status.d.ts.map +1 -1
- package/dist/commands/ai-status.js +8 -10
- package/dist/commands/ai-status.js.map +1 -1
- package/dist/commands/calls.d.ts.map +1 -1
- package/dist/commands/calls.js +3 -4
- package/dist/commands/calls.js.map +1 -1
- package/dist/commands/constraints.d.ts.map +1 -1
- package/dist/commands/constraints.js +2 -4
- package/dist/commands/constraints.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +19 -12
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/deps.d.ts.map +1 -1
- package/dist/commands/deps.js +2 -4
- package/dist/commands/deps.js.map +1 -1
- package/dist/commands/issue.d.ts.map +1 -1
- package/dist/commands/issue.js +12 -6
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/patterns.d.ts.map +1 -1
- package/dist/commands/patterns.js +2 -4
- package/dist/commands/patterns.js.map +1 -1
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/state.js +3 -4
- package/dist/commands/state.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +3 -4
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/surface.d.ts.map +1 -1
- package/dist/commands/surface.js +3 -4
- package/dist/commands/surface.js.map +1 -1
- package/dist/core/config.d.ts +13 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +23 -16
- package/dist/core/config.js.map +1 -1
- package/dist/core/issues.d.ts +2 -0
- package/dist/core/issues.d.ts.map +1 -1
- package/dist/core/issues.js +12 -1
- package/dist/core/issues.js.map +1 -1
- package/dist/core/locate.d.ts +26 -0
- package/dist/core/locate.d.ts.map +1 -0
- package/dist/core/locate.js +56 -0
- package/dist/core/locate.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/skills/validate-issue.md +2 -0
- package/dist/skills/write-finding.md +13 -4
- package/package.json +1 -1
- package/dashboard/.next/server/chunks/557.js +0 -1
- /package/dashboard/.next/static/{NrFPHIFHWQ5jNF62Px_X8 → dm-uzRRik5AgaBPedT1iR}/_buildManifest.js +0 -0
- /package/dashboard/.next/static/{NrFPHIFHWQ5jNF62Px_X8 → dm-uzRRik5AgaBPedT1iR}/_ssgManifest.js +0 -0
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
prose-blockquote:border-border-emphasis
|
|
18
18
|
prose-blockquote:text-text-secondary
|
|
19
19
|
prose-li:text-text-secondary
|
|
20
|
-
${t??""}`,children:l.jsx(nO,{remarkPlugins:[rW],children:e})})}},8813:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,p=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},f=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});f<d;++f)if(t=arguments[f],null!=t)for(n in t)r=s(p,n),p!==(i=s(t,n))&&(h&&i&&(o(i)||(u=l(i)))?(u?(u=!1,c=r&&l(r)?r:[]):c=r&&o(r)?r:{},a(p,{name:n,newValue:e(h,c,i)})):void 0!==i&&a(p,{name:n,newValue:i}));return p}},7412:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,p=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function d(){var e={line:c,column:p};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:p},this.source=s.source}function m(t){var n=Error(s.source+":"+c+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=p,n.source=e,s.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}return h.prototype.content=e,g(r),function(){var e,n=[];for(y(n);e=function(){var e=d(),n=g(i);if(n){if(x(),!g(l))return m("property missing ':'");var r=g(o),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(a),s}}();)!1!==e&&(n.push(e),y(n));return n}()}},1360:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(434)),i=n(5483);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},5483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(l,s)).replace(r,a))}},434:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(7412))},7040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,dynamic:()=>d});var r=n(5023),i=n(6843),l=n.n(i),o=n(1760),a=n(446),s=n(2772);let u=(0,s.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx`),{__esModule:c,$$typeof:p}=u;u.default;let f=(0,s.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx#MarkdownRenderer`),d="force-dynamic",h=[{href:"/stats",label:"Stats",description:"Contract metrics, nSLOC, coverage",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"})})},{href:"/access",label:"Access Control",description:"Roles, permissions, visibility",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})})},{href:"/calls",label:"External Calls",description:"Cross-contract calls, trust levels",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})},{href:"/issues",label:"Issues",description:"Potential, verified, invalid, and duplicate issues",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})},{href:"/diagram",label:"Diagram",description:"Contract architecture visualization",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 0 0 3.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0 1 20.25 6v1.5m0 9V18A2.25 2.25 0 0 1 18 20.25h-1.5m-9 0H6A2.25 2.25 0 0 1 3.75 18v-1.5M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})})}];function m(){let e=(0,o.gn)("config.json"),t=(0,o.ws)("overview.md"),n=(0,o.gn)("stats.json"),i=(0,o.gn)("findings.json"),s=(0,o.gn)("external-calls.json"),u=n?n.per_contract.reduce((e,t)=>e+t.external_functions,0):null,c=i?.findings?.length??null,p=s?.calls?.length??null;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-6",children:[r.jsx("h1",{className:"text-title font-semibold text-text-primary",children:e?.project.name??"Hex Dashboard"}),e&&(0,r.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[r.jsx("span",{className:"rounded-md bg-accent-subtle px-2.5 py-1 text-caption font-medium text-accent",children:e.project.chain}),r.jsx("span",{className:"rounded-md bg-surface-2 px-2.5 py-1 text-caption text-text-tertiary",children:e.project.commit.slice(0,8)}),(0,r.jsxs)("span",{className:"text-caption text-text-tertiary",children:["Solidity ",e.project.solidity_version]}),(0,r.jsxs)("span",{className:"text-caption text-text-tertiary",children:[e.project.scope.length," file",1!==e.project.scope.length?"s":""," in scope"]})]})]}),(0,r.jsxs)("div",{className:"mb-6 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5 stagger",children:[r.jsx(g,{label:"Contracts",value:n?.totals.contracts,href:"/stats"}),r.jsx(g,{label:"nSLOC",value:n?.totals.nsloc?.toLocaleString(),href:"/stats"}),r.jsx(g,{label:"Functions",value:u,href:"/functions"}),r.jsx(g,{label:"Ext Calls",value:p,href:"/calls"}),r.jsx(g,{label:"Issues",value:c,href:"/issues"})]}),r.jsx("div",{className:"mb-6",children:t?r.jsx("div",{className:"rounded-lg border border-border-subtle bg-surface-1 p-6",children:r.jsx("div",{className:"mx-auto max-w-3xl",children:r.jsx(f,{content:t})})}):r.jsx(a.v,{command:"hex overview"})}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3 stagger",children:h.map(e=>(0,r.jsxs)(l(),{href:e.href,className:"group flex items-start gap-3 rounded-lg border border-border-subtle bg-surface-1 p-4 hover:border-border-default hover:bg-surface-2",children:[r.jsx("div",{className:"shrink-0 text-text-tertiary group-hover:text-accent",children:e.icon}),(0,r.jsxs)("div",{children:[r.jsx("h3",{className:"text-heading font-medium text-text-primary group-hover:text-accent",children:e.label}),r.jsx("p",{className:"mt-0.5 text-caption text-text-secondary",children:e.description})]})]},e.href))})]})}function g({label:e,value:t,href:n}){let i=null==t,o=(0,r.jsxs)("div",{className:`rounded-lg border border-border-subtle bg-surface-1 p-4 ${n?"hover:border-border-default hover:bg-surface-2 cursor-pointer":""}`,children:[r.jsx("div",{className:`text-display scale-in ${i?"text-text-tertiary":"text-text-primary"}`,children:t??"--"}),r.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:e})]});return n?r.jsx(l(),{href:n,children:o}):o}},446:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(5023);function i({command:e}){return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center border border-dashed border-border-default bg-surface-1 px-sp-5 py-sp-8 text-center",style:{borderRadius:"var(--radius-sm)"},children:[r.jsx("svg",{className:"mb-4 h-12 w-12 text-text-tertiary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12H9.75m3 0H9.75m0 0v3m-3-6h1.5m-1.5 0v3m6-6h.008v.008H15V9.75Z"})}),r.jsx("h3",{className:"mb-2 text-heading font-medium text-text-primary",children:"Data not yet generated"}),r.jsx("p",{className:"mb-4 text-body text-text-secondary",children:"Run the following command to generate this data:"}),r.jsx("code",{className:"border border-border-default bg-surface-0 px-sp-4 py-sp-2 font-mono text-body text-accent",style:{borderRadius:"var(--radius-sm)"},children:e})]})}},1760:(e,t,n)=>{"use strict";n.d(t,{J1:()=>d,V9:()=>h,ZN:()=>f,au:()=>c,gn:()=>s,ki:()=>p,ws:()=>u});var r=n(7561),i=n.n(r),l=n(9411),o=n.n(l);function a(){let e=process.cwd();try{let t=o().join(e,".hex","config.json");if(i().existsSync(t))return o().join(e,".hex");let n=o().join(e,".solaudit","config.json");if(i().existsSync(n))return o().join(e,".solaudit")}catch{}return o().join(e,".hex")}function s(e){try{let t=o().join(a(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}function u(e){try{let t=o().join(a(),e);return i().readFileSync(t,"utf-8")}catch{return null}}function c(e,t){let n=o().join(a(),e);i().writeFileSync(n,JSON.stringify(t,null,2),"utf-8")}function p(e){try{let t=o().join(a(),e);return i().existsSync(t)}catch{return!1}}function f(){return a()}function d(e){try{let t=o().join(a(),e);if(!i().existsSync(t))return[];return i().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function h(e){try{let t=o().join(a(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}},6843:(e,t,n)=>{"use strict";let{createProxy:r}=n(2772);e.exports=r("/home/dx/Work/hex/node_modules/next/dist/client/link.js")},2950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(1645);let i=e=>[{type:"image/svg+xml",sizes:"any",url:(0,r.fillMetadataSegment)(".",e.params,"icon.svg")+"?83fa4bf1ef0d214d"}]}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[916,649,645,431],()=>n(7222));module.exports=r})();
|
|
20
|
+
${t??""}`,children:l.jsx(nO,{remarkPlugins:[rW],children:e})})}},8813:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,p=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},f=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});f<d;++f)if(t=arguments[f],null!=t)for(n in t)r=s(p,n),p!==(i=s(t,n))&&(h&&i&&(o(i)||(u=l(i)))?(u?(u=!1,c=r&&l(r)?r:[]):c=r&&o(r)?r:{},a(p,{name:n,newValue:e(h,c,i)})):void 0!==i&&a(p,{name:n,newValue:i}));return p}},7412:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,p=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function d(){var e={line:c,column:p};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:p},this.source=s.source}function m(t){var n=Error(s.source+":"+c+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=p,n.source=e,s.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}return h.prototype.content=e,g(r),function(){var e,n=[];for(y(n);e=function(){var e=d(),n=g(i);if(n){if(x(),!g(l))return m("property missing ':'");var r=g(o),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(a),s}}();)!1!==e&&(n.push(e),y(n));return n}()}},1360:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(434)),i=n(5483);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},5483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(l,s)).replace(r,a))}},434:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(7412))},7040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,dynamic:()=>d});var r=n(5023),i=n(6843),l=n.n(i),o=n(1720),a=n(446),s=n(2772);let u=(0,s.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx`),{__esModule:c,$$typeof:p}=u;u.default;let f=(0,s.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx#MarkdownRenderer`),d="force-dynamic",h=[{href:"/stats",label:"Stats",description:"Contract metrics, nSLOC, coverage",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"})})},{href:"/access",label:"Access Control",description:"Roles, permissions, visibility",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})})},{href:"/calls",label:"External Calls",description:"Cross-contract calls, trust levels",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})},{href:"/issues",label:"Issues",description:"Potential, verified, invalid, and duplicate issues",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})},{href:"/diagram",label:"Diagram",description:"Contract architecture visualization",icon:r.jsx("svg",{className:"h-5 w-5","aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 3.75H6A2.25 2.25 0 0 0 3.75 6v1.5M16.5 3.75H18A2.25 2.25 0 0 1 20.25 6v1.5m0 9V18A2.25 2.25 0 0 1 18 20.25h-1.5m-9 0H6A2.25 2.25 0 0 1 3.75 18v-1.5M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})})}];function m(){let e=(0,o.gn)("config.json"),t=(0,o.ws)("overview.md"),n=(0,o.gn)("stats.json"),i=(0,o.gn)("findings.json"),s=(0,o.gn)("external-calls.json"),u=n?n.per_contract.reduce((e,t)=>e+t.external_functions,0):null,c=i?.findings?.length??null,p=s?.calls?.length??null;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-6",children:[r.jsx("h1",{className:"text-title font-semibold text-text-primary",children:e?.project.name??"Hex Dashboard"}),e&&(0,r.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[r.jsx("span",{className:"rounded-md bg-accent-subtle px-2.5 py-1 text-caption font-medium text-accent",children:e.project.chain}),r.jsx("span",{className:"rounded-md bg-surface-2 px-2.5 py-1 text-caption text-text-tertiary",children:e.project.commit.slice(0,8)}),(0,r.jsxs)("span",{className:"text-caption text-text-tertiary",children:["Solidity ",e.project.solidity_version]}),(0,r.jsxs)("span",{className:"text-caption text-text-tertiary",children:[e.project.scope.length," file",1!==e.project.scope.length?"s":""," in scope"]})]})]}),(0,r.jsxs)("div",{className:"mb-6 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5 stagger",children:[r.jsx(g,{label:"Contracts",value:n?.totals.contracts,href:"/stats"}),r.jsx(g,{label:"nSLOC",value:n?.totals.nsloc?.toLocaleString(),href:"/stats"}),r.jsx(g,{label:"Functions",value:u,href:"/functions"}),r.jsx(g,{label:"Ext Calls",value:p,href:"/calls"}),r.jsx(g,{label:"Issues",value:c,href:"/issues"})]}),r.jsx("div",{className:"mb-6",children:t?r.jsx("div",{className:"rounded-lg border border-border-subtle bg-surface-1 p-6",children:r.jsx("div",{className:"mx-auto max-w-3xl",children:r.jsx(f,{content:t})})}):r.jsx(a.v,{command:"hex overview"})}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3 stagger",children:h.map(e=>(0,r.jsxs)(l(),{href:e.href,className:"group flex items-start gap-3 rounded-lg border border-border-subtle bg-surface-1 p-4 hover:border-border-default hover:bg-surface-2",children:[r.jsx("div",{className:"shrink-0 text-text-tertiary group-hover:text-accent",children:e.icon}),(0,r.jsxs)("div",{children:[r.jsx("h3",{className:"text-heading font-medium text-text-primary group-hover:text-accent",children:e.label}),r.jsx("p",{className:"mt-0.5 text-caption text-text-secondary",children:e.description})]})]},e.href))})]})}function g({label:e,value:t,href:n}){let i=null==t,o=(0,r.jsxs)("div",{className:`rounded-lg border border-border-subtle bg-surface-1 p-4 ${n?"hover:border-border-default hover:bg-surface-2 cursor-pointer":""}`,children:[r.jsx("div",{className:`text-display scale-in ${i?"text-text-tertiary":"text-text-primary"}`,children:t??"--"}),r.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:e})]});return n?r.jsx(l(),{href:n,children:o}):o}},446:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(5023);function i({command:e}){return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center border border-dashed border-border-default bg-surface-1 px-sp-5 py-sp-8 text-center",style:{borderRadius:"var(--radius-sm)"},children:[r.jsx("svg",{className:"mb-4 h-12 w-12 text-text-tertiary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12H9.75m3 0H9.75m0 0v3m-3-6h1.5m-1.5 0v3m6-6h.008v.008H15V9.75Z"})}),r.jsx("h3",{className:"mb-2 text-heading font-medium text-text-primary",children:"Data not yet generated"}),r.jsx("p",{className:"mb-4 text-body text-text-secondary",children:"Run the following command to generate this data:"}),r.jsx("code",{className:"border border-border-default bg-surface-0 px-sp-4 py-sp-2 font-mono text-body text-accent",style:{borderRadius:"var(--radius-sm)"},children:e})]})}},1720:(e,t,n)=>{"use strict";n.d(t,{ki:()=>d,ZN:()=>h,J1:()=>m,gn:()=>c,ws:()=>p,V9:()=>g,au:()=>f});var r=n(7561),i=n.n(r),l=n(9411),o=n.n(l);let a=[".hex",".solaudit","solaudit-output"];function s(e){return e.replace(/\\/g,"/")}function u(){try{let e=function(e=process.cwd()){let t=o().resolve(e);for(;;){let e=function(e){for(let t of[...a.map(t=>o().join(e,t,"config.json")),o().join(e,"config.json")])if(i().existsSync(t))return s(t);return null}(t);if(e)return s(o().dirname(e));let n=o().dirname(t);if(n===t)return null;t=n}}(process.cwd());if(e)return e}catch{}return o().join(process.cwd(),".hex")}function c(e){try{let t=o().join(u(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}function p(e){try{let t=o().join(u(),e);return i().readFileSync(t,"utf-8")}catch{return null}}function f(e,t){let n=o().join(u(),e);i().writeFileSync(n,JSON.stringify(t,null,2),"utf-8")}function d(e){try{let t=o().join(u(),e);return i().existsSync(t)}catch{return!1}}function h(){return u()}function m(e){try{let t=o().join(u(),e);if(!i().existsSync(t))return[];return i().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function g(e){try{let t=o().join(u(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}},6843:(e,t,n)=>{"use strict";let{createProxy:r}=n(2772);e.exports=r("/home/dx/Work/hex/node_modules/next/dist/client/link.js")},2950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(1645);let i=e=>[{type:"image/svg+xml",sizes:"any",url:(0,r.fillMetadataSegment)(".",e.params,"icon.svg")+"?83fa4bf1ef0d214d"}]}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[916,649,645,431],()=>n(7222));module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/CommandPalette.tsx":{"id":2198,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx":{"id":1187,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next-themes/dist/index.mjs":{"id":4595,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Manrope\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\",\"display\":\"swap\"}],\"variableName\":\"manrope\"}":{"id":8414,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\",\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5256,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/app/diagram/page.tsx":{"id":3719,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/flows/page.tsx":{"id":3443,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/calls/CallsClient.tsx":{"id":3362,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/access/AccessClient.tsx":{"id":9745,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/functions/FunctionsClient.tsx":{"id":7780,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/conformance/ConformanceTable.tsx":{"id":7542,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/overleaf/OverleafClient.tsx":{"id":9,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/issues/IssuesBoardClient.tsx":{"id":7063,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx":{"id":9487,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/dx/Work/hex/dashboard/":[],"/home/dx/Work/hex/dashboard/app/layout":["static/css/9c84313d0484b74f.css"],"/home/dx/Work/hex/dashboard/app/page":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=92,e.ids=[92],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7561:e=>{"use strict";e.exports=require("node:fs")},9411:e=>{"use strict";e.exports=require("node:path")},1017:e=>{"use strict";e.exports=require("path")},7310:e=>{"use strict";e.exports=require("url")},6580:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>n.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>c,routeModule:()=>u,tree:()=>d}),r(1527),r(8116),r(2874);var s=r(7105),a=r(5265),i=r(157),n=r.n(i),l=r(4665),o={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>l[e]);r.d(t,o);let d=["",{children:["progress",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,1527)),"/home/dx/Work/hex/dashboard/app/progress/page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,8116)),"/home/dx/Work/hex/dashboard/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,2874,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["/home/dx/Work/hex/dashboard/app/progress/page.tsx"],x="/progress/page",p={require:r,loadChunk:()=>Promise.resolve()},u=new s.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/progress/page",pathname:"/progress",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},9353:(e,t,r)=>{Promise.resolve().then(r.bind(r,8530))},8530:(e,t,r)=>{"use strict";r.d(t,{ProgressClient:()=>x});var s=r(9899),a=r(5507);function i(e){return`${e.file}::${e.contract}`}function n(e){return e>=67?"text-[var(--success)]":e>=34?"text-[var(--medium)]":"text-[var(--critical)]"}let l={contract:0,abstract:1,library:2,interface:3},o={contract:"bg-[var(--low)]/15 text-[var(--low)]",interface:"bg-[var(--info)]/15 text-[var(--info)]",library:"bg-[var(--info)]/15 text-[var(--info)]",abstract:"bg-[var(--high)]/15 text-[var(--high)]"},d=["Critical","High","Medium","Low","Info","Gas"],c={Critical:"bg-[var(--critical)]/15 text-[var(--critical)]",High:"bg-[var(--high)]/15 text-[var(--high)]",Medium:"bg-[var(--medium)]/15 text-[var(--medium)]",Low:"bg-[var(--low)]/15 text-[var(--low)]",Info:"bg-[var(--info)]/15 text-[var(--info)]",Gas:"bg-surface-3 text-text-secondary"};function x({contracts:e,totalsNsloc:t,reviewedContracts:r,auditSteps:x,findingsTotal:p,findingsBySeverity:u,findingsTracked:m}){let[h,f]=(0,a.useState)(r),[g,v]=(0,a.useState)("all"),b=(0,a.useMemo)(()=>e.filter(e=>h[i(e)]).reduce((e,t)=>e+t.nsloc,0),[e,h]),y=(0,a.useMemo)(()=>e.filter(e=>h[i(e)]).length,[e,h]),j=t>0?b/t*100:0,N=x.filter(e=>e.completed).length/x.length*100,w=p>0?m/p*100:100,S=.7*j+.2*N+.1*w,C=(0,a.useMemo)(()=>{let t=[...e].sort((e,t)=>{let r=l[e.type]??99,s=l[t.type]??99;return r!==s?r-s:t.nsloc-e.nsloc});return"all"===g?t:t.filter(e=>{let t=!!h[i(e)];return"checked"===g?t:!t})},[e,g,h]),k=(0,a.useMemo)(()=>Math.max(...e.map(e=>e.nsloc),1),[e]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-sp-5 rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"mb-2 flex items-baseline justify-between gap-sp-2",children:[(0,s.jsxs)("span",{className:`text-display font-semibold ${n(S)}`,children:[S.toFixed(0),"%"]}),(0,s.jsxs)("span",{className:"text-caption text-text-tertiary inline-flex items-center gap-1.5",title:"Overall progress is a weighted average: 70% nSLOC reviewed (contract review), 20% audit-step completion, 10% findings triage.","aria-label":"Overall progress formula: 70% contract review by nSLOC, 20% step completion, 10% findings triage",children:["Contract Review ",j.toFixed(0),"% \xb7 Steps ",N.toFixed(0),"% \xb7 Triage ",w.toFixed(0),"%",s.jsx("svg",{className:"h-3.5 w-3.5 text-text-tertiary","aria-hidden":"true",viewBox:"0 0 16 16",fill:"currentColor",children:s.jsx("path",{d:"M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM7.25 7.25a.75.75 0 0 1 1.5 0v3.5a.75.75 0 0 1-1.5 0v-3.5zM8 4.5a.875.875 0 1 1 0 1.75A.875.875 0 0 1 8 4.5z"})})]})]}),s.jsx("div",{className:"h-3 w-full overflow-hidden rounded-full bg-surface-3",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${S>=67?"bg-[var(--success)]":S>=34?"bg-[var(--medium)]":"bg-[var(--critical)]"}`,style:{width:`${Math.min(S,100)}%`},role:"progressbar","aria-valuenow":Math.round(S),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Overall audit progress"})}),s.jsx("p",{className:"mt-2 text-caption text-text-tertiary",children:"Weighted: 70% nSLOC reviewed \xb7 20% audit steps \xb7 10% findings triage. Hover the breakdown for details."})]}),(0,s.jsxs)("div",{className:"mb-sp-5 grid grid-cols-2 gap-sp-3 lg:grid-cols-4",children:[(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:`text-display ${n(S)}`,children:[S.toFixed(0),"%"]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Overall Progress"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"text-display text-text-primary",children:[y," / ",e.length]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Contracts Reviewed"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"text-display text-text-primary",children:[b.toLocaleString()," / ",t.toLocaleString()]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"nSLOC Reviewed"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[s.jsx("div",{className:"text-display text-text-primary",children:p}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Findings"}),Object.keys(u).length>0&&s.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:d.filter(e=>u[e]).map(e=>(0,s.jsxs)("span",{className:`inline-flex items-center rounded-md px-2 py-0.5 text-caption font-medium ${c[e]??"bg-surface-3 text-text-secondary"}`,children:[u[e]," ",e]},e))})]})]}),(0,s.jsxs)("div",{className:"mb-sp-5",children:[s.jsx("h3",{className:"mb-sp-2 text-heading font-medium text-text-primary",children:"Audit Steps"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(e=>(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-caption font-medium ${e.completed?"bg-[var(--success)]/15 text-[var(--success)]":"bg-surface-3 text-text-tertiary"}`,children:[e.completed?s.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"})}):s.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z",clipRule:"evenodd"})}),e.label]},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-sp-2 flex items-center justify-between",children:[s.jsx("h3",{className:"text-heading font-medium text-text-primary",children:"Contract Checklist"}),s.jsx("div",{className:"inline-flex rounded-md bg-surface-3 p-0.5",children:["all","unchecked","checked"].map(t=>s.jsx("button",{type:"button",onClick:()=>v(t),className:`rounded-sm px-2.5 py-1 text-caption font-medium ${g===t?"bg-surface-2 text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:"all"===t?`All (${e.length})`:"checked"===t?`Reviewed (${y})`:`Remaining (${e.length-y})`},t))})]}),s.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,s.jsxs)("table",{className:"w-full text-left text-body",children:[s.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,s.jsxs)("tr",{children:[s.jsx("th",{className:"w-10 px-sp-3 py-sp-2"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"Contract"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"File"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"Type"}),s.jsx("th",{className:"px-sp-4 py-sp-2 text-right",children:"nSLOC"}),s.jsx("th",{className:"w-32 px-sp-4 py-sp-2",children:"Weight"})]})}),s.jsx("tbody",{className:"divide-y divide-border-subtle",children:C.map(e=>{let t=i(e),r=!!h[t],a=e.nsloc/k*100;return(0,s.jsxs)("tr",{className:`h-9 transition-colors ${r?"bg-[var(--success)]/5":"bg-surface-1"} hover:bg-surface-3`,children:[s.jsx("td",{className:"px-sp-3 py-sp-2",children:s.jsx("button",{type:"button",onClick:()=>(function(e){let t=i(e),r=!h[t];f(e=>({...e,[t]:r})),fetch("/api/progress",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewed_contracts:{[t]:r}})}).catch(()=>{})})(e),className:`flex h-5 w-5 items-center justify-center rounded border transition-colors ${r?"border-[var(--accent)] bg-[var(--accent)] text-surface-0":"border-border-emphasis bg-surface-1 hover:border-[var(--accent)]"}`,children:r&&s.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.5 6l2.5 2.5 4.5-5"})})})}),s.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.contract}),s.jsx("td",{className:"max-w-[200px] truncate px-sp-4 py-sp-2 font-mono text-caption text-text-tertiary",children:e.file}),s.jsx("td",{className:"px-sp-4 py-sp-2",children:s.jsx("span",{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-caption font-medium ${o[e.type]??"bg-surface-3 text-text-secondary"}`,children:e.type})}),s.jsx("td",{className:"px-sp-4 py-sp-2 text-right font-mono tabular-nums text-text-secondary",children:e.nsloc}),s.jsx("td",{className:"px-sp-4 py-sp-2",children:s.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:s.jsx("div",{className:"h-full rounded-full bg-[var(--accent)]",style:{width:`${a}%`}})})})]},t)})})]})})]})]})}},1527:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,dynamic:()=>x});var s=r(5023),a=r(1760),i=r(446),n=r(2772);let l=(0,n.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx`),{__esModule:o,$$typeof:d}=l;l.default;let c=(0,n.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx#ProgressClient`),x="force-dynamic",p=[{label:"Stats",file:"stats.json"},{label:"Dependencies",file:"deps.json"},{label:"Access Control",file:"access-control.json"},{label:"State Analysis",file:"state-vars.json"},{label:"External Calls",file:"external-calls.json"},{label:"Overview",file:"overview.md"},{label:"Diagram",file:"diagrams/diagram.mmd"},{label:"Spec Conformance",file:"spec-conformance.json"},{label:"Findings",file:"findings.json"}];function u(){let e=(0,a.gn)("stats.json");if(!e)return(0,s.jsxs)("div",{children:[s.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Progress"}),s.jsx(i.v,{command:"hex stats"})]});let t=(0,a.gn)("progress.json"),r=(0,a.gn)("findings.json"),n=(0,a.gn)("tracking.json"),l=p.map(e=>({label:e.label,completed:(0,a.ki)(e.file)})),o=new Set,d=new Set,x={};for(let e of r?.findings??[])o.add(e.id),x[e.severity]=(x[e.severity]??0)+1;for(let e of n?.issues??n?.findings??[]){let t=e.finding_id??e.id;"rejected"===e.status||"duplicate"===e.status||o.has(t)||o.has(e.id)||(o.add(t),e.severity&&(x[e.severity]=(x[e.severity]??0)+1)),"verified"===e.status&&d.add(t)}return(0,s.jsxs)("div",{children:[s.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Progress"}),s.jsx(c,{contracts:e.per_contract,totalsNsloc:e.per_contract.reduce((e,t)=>e+t.nsloc,0),reviewedContracts:t?.reviewed_contracts??{},auditSteps:l,findingsTotal:o.size,findingsBySeverity:x,findingsTracked:d.size})]})}},446:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var s=r(5023);function a({command:e}){return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center border border-dashed border-border-default bg-surface-1 px-sp-5 py-sp-8 text-center",style:{borderRadius:"var(--radius-sm)"},children:[s.jsx("svg",{className:"mb-4 h-12 w-12 text-text-tertiary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12H9.75m3 0H9.75m0 0v3m-3-6h1.5m-1.5 0v3m6-6h.008v.008H15V9.75Z"})}),s.jsx("h3",{className:"mb-2 text-heading font-medium text-text-primary",children:"Data not yet generated"}),s.jsx("p",{className:"mb-4 text-body text-text-secondary",children:"Run the following command to generate this data:"}),s.jsx("code",{className:"border border-border-default bg-surface-0 px-sp-4 py-sp-2 font-mono text-body text-accent",style:{borderRadius:"var(--radius-sm)"},children:e})]})}},1760:(e,t,r)=>{"use strict";r.d(t,{J1:()=>u,V9:()=>m,ZN:()=>p,au:()=>c,gn:()=>o,ki:()=>x,ws:()=>d});var s=r(7561),a=r.n(s),i=r(9411),n=r.n(i);function l(){let e=process.cwd();try{let t=n().join(e,".hex","config.json");if(a().existsSync(t))return n().join(e,".hex");let r=n().join(e,".solaudit","config.json");if(a().existsSync(r))return n().join(e,".solaudit")}catch{}return n().join(e,".hex")}function o(e){try{let t=n().join(l(),e),r=a().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}function d(e){try{let t=n().join(l(),e);return a().readFileSync(t,"utf-8")}catch{return null}}function c(e,t){let r=n().join(l(),e);a().writeFileSync(r,JSON.stringify(t,null,2),"utf-8")}function x(e){try{let t=n().join(l(),e);return a().existsSync(t)}catch{return!1}}function p(){return l()}function u(e){try{let t=n().join(l(),e);if(!a().existsSync(t))return[];return a().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function m(e){try{let t=n().join(l(),e),r=a().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}},2950:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(1645);let a=e=>[{type:"image/svg+xml",sizes:"any",url:(0,s.fillMetadataSegment)(".",e.params,"icon.svg")+"?83fa4bf1ef0d214d"}]}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[916,649,645,431],()=>r(6580));module.exports=s})();
|
|
1
|
+
(()=>{var e={};e.id=92,e.ids=[92],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7561:e=>{"use strict";e.exports=require("node:fs")},9411:e=>{"use strict";e.exports=require("node:path")},1017:e=>{"use strict";e.exports=require("path")},7310:e=>{"use strict";e.exports=require("url")},6580:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>n.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>c,routeModule:()=>u,tree:()=>d}),r(1527),r(8116),r(2874);var s=r(7105),a=r(5265),i=r(157),n=r.n(i),l=r(4665),o={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>l[e]);r.d(t,o);let d=["",{children:["progress",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,1527)),"/home/dx/Work/hex/dashboard/app/progress/page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,8116)),"/home/dx/Work/hex/dashboard/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,2874,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["/home/dx/Work/hex/dashboard/app/progress/page.tsx"],x="/progress/page",p={require:r,loadChunk:()=>Promise.resolve()},u=new s.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/progress/page",pathname:"/progress",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},9353:(e,t,r)=>{Promise.resolve().then(r.bind(r,8530))},8530:(e,t,r)=>{"use strict";r.d(t,{ProgressClient:()=>x});var s=r(9899),a=r(5507);function i(e){return`${e.file}::${e.contract}`}function n(e){return e>=67?"text-[var(--success)]":e>=34?"text-[var(--medium)]":"text-[var(--critical)]"}let l={contract:0,abstract:1,library:2,interface:3},o={contract:"bg-[var(--low)]/15 text-[var(--low)]",interface:"bg-[var(--info)]/15 text-[var(--info)]",library:"bg-[var(--info)]/15 text-[var(--info)]",abstract:"bg-[var(--high)]/15 text-[var(--high)]"},d=["Critical","High","Medium","Low","Info","Gas"],c={Critical:"bg-[var(--critical)]/15 text-[var(--critical)]",High:"bg-[var(--high)]/15 text-[var(--high)]",Medium:"bg-[var(--medium)]/15 text-[var(--medium)]",Low:"bg-[var(--low)]/15 text-[var(--low)]",Info:"bg-[var(--info)]/15 text-[var(--info)]",Gas:"bg-surface-3 text-text-secondary"};function x({contracts:e,totalsNsloc:t,reviewedContracts:r,auditSteps:x,findingsTotal:p,findingsBySeverity:u,findingsTracked:m}){let[h,f]=(0,a.useState)(r),[g,v]=(0,a.useState)("all"),b=(0,a.useMemo)(()=>e.filter(e=>h[i(e)]).reduce((e,t)=>e+t.nsloc,0),[e,h]),y=(0,a.useMemo)(()=>e.filter(e=>h[i(e)]).length,[e,h]),j=t>0?b/t*100:0,w=x.filter(e=>e.completed).length/x.length*100,N=p>0?m/p*100:100,S=.7*j+.2*w+.1*N,C=(0,a.useMemo)(()=>{let t=[...e].sort((e,t)=>{let r=l[e.type]??99,s=l[t.type]??99;return r!==s?r-s:t.nsloc-e.nsloc});return"all"===g?t:t.filter(e=>{let t=!!h[i(e)];return"checked"===g?t:!t})},[e,g,h]),k=(0,a.useMemo)(()=>Math.max(...e.map(e=>e.nsloc),1),[e]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-sp-5 rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"mb-2 flex items-baseline justify-between gap-sp-2",children:[(0,s.jsxs)("span",{className:`text-display font-semibold ${n(S)}`,children:[S.toFixed(0),"%"]}),(0,s.jsxs)("span",{className:"text-caption text-text-tertiary inline-flex items-center gap-1.5",title:"Overall progress is a weighted average: 70% nSLOC reviewed (contract review), 20% audit-step completion, 10% findings triage.","aria-label":"Overall progress formula: 70% contract review by nSLOC, 20% step completion, 10% findings triage",children:["Contract Review ",j.toFixed(0),"% \xb7 Steps ",w.toFixed(0),"% \xb7 Triage ",N.toFixed(0),"%",s.jsx("svg",{className:"h-3.5 w-3.5 text-text-tertiary","aria-hidden":"true",viewBox:"0 0 16 16",fill:"currentColor",children:s.jsx("path",{d:"M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM7.25 7.25a.75.75 0 0 1 1.5 0v3.5a.75.75 0 0 1-1.5 0v-3.5zM8 4.5a.875.875 0 1 1 0 1.75A.875.875 0 0 1 8 4.5z"})})]})]}),s.jsx("div",{className:"h-3 w-full overflow-hidden rounded-full bg-surface-3",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${S>=67?"bg-[var(--success)]":S>=34?"bg-[var(--medium)]":"bg-[var(--critical)]"}`,style:{width:`${Math.min(S,100)}%`},role:"progressbar","aria-valuenow":Math.round(S),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Overall audit progress"})}),s.jsx("p",{className:"mt-2 text-caption text-text-tertiary",children:"Weighted: 70% nSLOC reviewed \xb7 20% audit steps \xb7 10% findings triage. Hover the breakdown for details."})]}),(0,s.jsxs)("div",{className:"mb-sp-5 grid grid-cols-2 gap-sp-3 lg:grid-cols-4",children:[(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:`text-display ${n(S)}`,children:[S.toFixed(0),"%"]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Overall Progress"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"text-display text-text-primary",children:[y," / ",e.length]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Contracts Reviewed"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[(0,s.jsxs)("div",{className:"text-display text-text-primary",children:[b.toLocaleString()," / ",t.toLocaleString()]}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"nSLOC Reviewed"})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[s.jsx("div",{className:"text-display text-text-primary",children:p}),s.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:"Findings"}),Object.keys(u).length>0&&s.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:d.filter(e=>u[e]).map(e=>(0,s.jsxs)("span",{className:`inline-flex items-center rounded-md px-2 py-0.5 text-caption font-medium ${c[e]??"bg-surface-3 text-text-secondary"}`,children:[u[e]," ",e]},e))})]})]}),(0,s.jsxs)("div",{className:"mb-sp-5",children:[s.jsx("h3",{className:"mb-sp-2 text-heading font-medium text-text-primary",children:"Audit Steps"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(e=>(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-caption font-medium ${e.completed?"bg-[var(--success)]/15 text-[var(--success)]":"bg-surface-3 text-text-tertiary"}`,children:[e.completed?s.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"})}):s.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z",clipRule:"evenodd"})}),e.label]},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-sp-2 flex items-center justify-between",children:[s.jsx("h3",{className:"text-heading font-medium text-text-primary",children:"Contract Checklist"}),s.jsx("div",{className:"inline-flex rounded-md bg-surface-3 p-0.5",children:["all","unchecked","checked"].map(t=>s.jsx("button",{type:"button",onClick:()=>v(t),className:`rounded-sm px-2.5 py-1 text-caption font-medium ${g===t?"bg-surface-2 text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:"all"===t?`All (${e.length})`:"checked"===t?`Reviewed (${y})`:`Remaining (${e.length-y})`},t))})]}),s.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,s.jsxs)("table",{className:"w-full text-left text-body",children:[s.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,s.jsxs)("tr",{children:[s.jsx("th",{className:"w-10 px-sp-3 py-sp-2"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"Contract"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"File"}),s.jsx("th",{className:"px-sp-4 py-sp-2",children:"Type"}),s.jsx("th",{className:"px-sp-4 py-sp-2 text-right",children:"nSLOC"}),s.jsx("th",{className:"w-32 px-sp-4 py-sp-2",children:"Weight"})]})}),s.jsx("tbody",{className:"divide-y divide-border-subtle",children:C.map(e=>{let t=i(e),r=!!h[t],a=e.nsloc/k*100;return(0,s.jsxs)("tr",{className:`h-9 transition-colors ${r?"bg-[var(--success)]/5":"bg-surface-1"} hover:bg-surface-3`,children:[s.jsx("td",{className:"px-sp-3 py-sp-2",children:s.jsx("button",{type:"button",onClick:()=>(function(e){let t=i(e),r=!h[t];f(e=>({...e,[t]:r})),fetch("/api/progress",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewed_contracts:{[t]:r}})}).catch(()=>{})})(e),className:`flex h-5 w-5 items-center justify-center rounded border transition-colors ${r?"border-[var(--accent)] bg-[var(--accent)] text-surface-0":"border-border-emphasis bg-surface-1 hover:border-[var(--accent)]"}`,children:r&&s.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.5 6l2.5 2.5 4.5-5"})})})}),s.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.contract}),s.jsx("td",{className:"max-w-[200px] truncate px-sp-4 py-sp-2 font-mono text-caption text-text-tertiary",children:e.file}),s.jsx("td",{className:"px-sp-4 py-sp-2",children:s.jsx("span",{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-caption font-medium ${o[e.type]??"bg-surface-3 text-text-secondary"}`,children:e.type})}),s.jsx("td",{className:"px-sp-4 py-sp-2 text-right font-mono tabular-nums text-text-secondary",children:e.nsloc}),s.jsx("td",{className:"px-sp-4 py-sp-2",children:s.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:s.jsx("div",{className:"h-full rounded-full bg-[var(--accent)]",style:{width:`${a}%`}})})})]},t)})})]})})]})]})}},1527:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,dynamic:()=>x});var s=r(5023),a=r(1720),i=r(446),n=r(2772);let l=(0,n.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx`),{__esModule:o,$$typeof:d}=l;l.default;let c=(0,n.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx#ProgressClient`),x="force-dynamic",p=[{label:"Stats",file:"stats.json"},{label:"Dependencies",file:"deps.json"},{label:"Access Control",file:"access-control.json"},{label:"State Analysis",file:"state-vars.json"},{label:"External Calls",file:"external-calls.json"},{label:"Overview",file:"overview.md"},{label:"Diagram",file:"diagrams/diagram.mmd"},{label:"Spec Conformance",file:"spec-conformance.json"},{label:"Findings",file:"findings.json"}];function u(){let e=(0,a.gn)("stats.json");if(!e)return(0,s.jsxs)("div",{children:[s.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Progress"}),s.jsx(i.v,{command:"hex stats"})]});let t=(0,a.gn)("progress.json"),r=(0,a.gn)("findings.json"),n=(0,a.gn)("tracking.json"),l=p.map(e=>({label:e.label,completed:(0,a.ki)(e.file)})),o=new Set,d=new Set,x={};for(let e of r?.findings??[])o.add(e.id),x[e.severity]=(x[e.severity]??0)+1;for(let e of n?.issues??n?.findings??[]){let t=e.finding_id??e.id;"rejected"===e.status||"duplicate"===e.status||o.has(t)||o.has(e.id)||(o.add(t),e.severity&&(x[e.severity]=(x[e.severity]??0)+1)),"verified"===e.status&&d.add(t)}return(0,s.jsxs)("div",{children:[s.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Progress"}),s.jsx(c,{contracts:e.per_contract,totalsNsloc:e.per_contract.reduce((e,t)=>e+t.nsloc,0),reviewedContracts:t?.reviewed_contracts??{},auditSteps:l,findingsTotal:o.size,findingsBySeverity:x,findingsTracked:d.size})]})}},446:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var s=r(5023);function a({command:e}){return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center border border-dashed border-border-default bg-surface-1 px-sp-5 py-sp-8 text-center",style:{borderRadius:"var(--radius-sm)"},children:[s.jsx("svg",{className:"mb-4 h-12 w-12 text-text-tertiary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12H9.75m3 0H9.75m0 0v3m-3-6h1.5m-1.5 0v3m6-6h.008v.008H15V9.75Z"})}),s.jsx("h3",{className:"mb-2 text-heading font-medium text-text-primary",children:"Data not yet generated"}),s.jsx("p",{className:"mb-4 text-body text-text-secondary",children:"Run the following command to generate this data:"}),s.jsx("code",{className:"border border-border-default bg-surface-0 px-sp-4 py-sp-2 font-mono text-body text-accent",style:{borderRadius:"var(--radius-sm)"},children:e})]})}},1720:(e,t,r)=>{"use strict";r.d(t,{ki:()=>u,ZN:()=>m,J1:()=>h,gn:()=>c,ws:()=>x,V9:()=>f,au:()=>p});var s=r(7561),a=r.n(s),i=r(9411),n=r.n(i);let l=[".hex",".solaudit","solaudit-output"];function o(e){return e.replace(/\\/g,"/")}function d(){try{let e=function(e=process.cwd()){let t=n().resolve(e);for(;;){let e=function(e){for(let t of[...l.map(t=>n().join(e,t,"config.json")),n().join(e,"config.json")])if(a().existsSync(t))return o(t);return null}(t);if(e)return o(n().dirname(e));let r=n().dirname(t);if(r===t)return null;t=r}}(process.cwd());if(e)return e}catch{}return n().join(process.cwd(),".hex")}function c(e){try{let t=n().join(d(),e),r=a().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}function x(e){try{let t=n().join(d(),e);return a().readFileSync(t,"utf-8")}catch{return null}}function p(e,t){let r=n().join(d(),e);a().writeFileSync(r,JSON.stringify(t,null,2),"utf-8")}function u(e){try{let t=n().join(d(),e);return a().existsSync(t)}catch{return!1}}function m(){return d()}function h(e){try{let t=n().join(d(),e);if(!a().existsSync(t))return[];return a().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function f(e){try{let t=n().join(d(),e),r=a().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}},2950:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(1645);let a=e=>[{type:"image/svg+xml",sizes:"any",url:(0,s.fillMetadataSegment)(".",e.params,"icon.svg")+"?83fa4bf1ef0d214d"}]}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[916,649,645,431],()=>r(6580));module.exports=s})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/progress/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/progress/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/CommandPalette.tsx":{"id":2198,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx":{"id":1187,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next-themes/dist/index.mjs":{"id":4595,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Manrope\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\",\"display\":\"swap\"}],\"variableName\":\"manrope\"}":{"id":8414,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\",\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5256,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/app/diagram/page.tsx":{"id":3719,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/flows/page.tsx":{"id":3443,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/calls/CallsClient.tsx":{"id":3362,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/access/AccessClient.tsx":{"id":9745,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/functions/FunctionsClient.tsx":{"id":7780,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/conformance/ConformanceTable.tsx":{"id":7542,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/overleaf/OverleafClient.tsx":{"id":9,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/issues/IssuesBoardClient.tsx":{"id":7063,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx":{"id":9487,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"name":"*","chunks":["7092","static/chunks/app/progress/page-f07ac39d1d27b480.js"],"async":false},"/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/dx/Work/hex/dashboard/":[],"/home/dx/Work/hex/dashboard/app/layout":["static/css/9c84313d0484b74f.css"],"/home/dx/Work/hex/dashboard/app/page":[],"/home/dx/Work/hex/dashboard/app/progress/page":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=740,e.ids=[740],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7561:e=>{"use strict";e.exports=require("node:fs")},9411:e=>{"use strict";e.exports=require("node:path")},1017:e=>{"use strict";e.exports=require("path")},7310:e=>{"use strict";e.exports=require("url")},3328:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>l.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>o,routeModule:()=>m,tree:()=>d}),s(2242),s(8116),s(2874);var r=s(7105),a=s(5265),n=s(157),l=s.n(n),i=s(4665),c={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(c[e]=()=>i[e]);s.d(t,c);let d=["",{children:["stats",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,2242)),"/home/dx/Work/hex/dashboard/app/stats/page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(s.bind(s,8116)),"/home/dx/Work/hex/dashboard/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,2874,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],o=["/home/dx/Work/hex/dashboard/app/stats/page.tsx"],x="/stats/page",p={require:s,loadChunk:()=>Promise.resolve()},m=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/stats/page",pathname:"/stats",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},1081:(e,t,s)=>{Promise.resolve().then(s.bind(s,8033))},8033:(e,t,s)=>{"use strict";s.d(t,{StatsClient:()=>d});var r=s(9899),a=s(5507),n=s(983);function l(e){return e>=80?"bg-[var(--success)]":e>=50?"bg-[var(--medium)]":"bg-[var(--critical)]"}let i={contract:"bg-[var(--low)]/15 text-[var(--low)]",interface:"bg-[var(--info)]/15 text-[var(--info)]",library:"bg-[var(--info)]/15 text-[var(--info)]",abstract:"bg-[var(--high)]/15 text-[var(--high)]"},c=["Summary","Per-Contract","Coverage","Dependencies"];function d({totals:e,per_contract:t,erc_eip_usage:s,dependencies:n,test_coverage:l}){let[i,d]=(0,a.useState)("Summary");return(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"mb-sp-5 inline-flex overflow-x-auto rounded-md bg-surface-3 p-1",children:c.map(e=>r.jsx("button",{type:"button",onClick:()=>d(e),className:`whitespace-nowrap rounded-sm px-sp-3 py-1.5 text-body font-medium ${i===e?"bg-surface-2 text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:e},e))}),"Summary"===i&&r.jsx(o,{totals:e,per_contract:t,erc_eip_usage:s}),"Per-Contract"===i&&r.jsx(x,{per_contract:t}),"Coverage"===i&&r.jsx(p,{test_coverage:l}),"Dependencies"===i&&r.jsx(m,{dependencies:n})]})}function o({totals:e,per_contract:t,erc_eip_usage:s}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-sp-6 grid grid-cols-2 gap-sp-3 sm:grid-cols-3 lg:grid-cols-6",children:[r.jsx(u,{label:"Contracts",value:e.contracts}),r.jsx(u,{label:"nSLOC",value:e.nsloc.toLocaleString()}),r.jsx(u,{label:"Functions",value:t.reduce((e,t)=>e+t.functions,0)}),r.jsx(u,{label:"Modifiers",value:t.reduce((e,t)=>e+t.modifiers,0)}),r.jsx(u,{label:"Events",value:t.reduce((e,t)=>e+t.events,0)}),r.jsx(u,{label:"Assembly",value:e.assembly_lines})]}),s.length>0&&(0,r.jsxs)("div",{className:"mb-sp-6",children:[r.jsx("h3",{className:"mb-sp-2 text-heading font-medium text-text-primary",children:"ERC / EIP Usage"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:s.map(e=>r.jsx("span",{className:"inline-flex items-center rounded-sm bg-[var(--info)]/15 px-2.5 py-1 text-caption font-medium text-[var(--info)]",children:e},e))})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-sp-4 text-caption text-text-tertiary",children:[(0,r.jsxs)("span",{children:["Total Lines: ",e.total_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Comments: ",e.comment_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Blank: ",e.blank_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Files: ",e.files]}),(0,r.jsxs)("span",{children:["Interfaces: ",e.interfaces]}),(0,r.jsxs)("span",{children:["Libraries: ",e.libraries]}),(0,r.jsxs)("span",{children:["Abstract: ",e.abstract_contracts]})]})]})}function x({per_contract:e}){let t=(0,a.useMemo)(()=>[{id:"file",header:"File",accessorKey:"file",cell:e=>r.jsx("span",{className:"max-w-[200px] truncate font-mono text-caption text-text-tertiary",children:e.file})},{id:"contract",header:"Contract",accessorKey:"contract",enableColumnFilter:!0,cell:e=>r.jsx("span",{className:"font-medium text-text-primary",children:e.contract})},{id:"type",header:"Type",accessorKey:"type",enableColumnFilter:!0,cell:e=>r.jsx("span",{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-caption font-medium ${i[e.type]??"bg-surface-3 text-text-secondary"}`,children:e.type})},{id:"nsloc",header:"nSLOC",accessorKey:"nsloc",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.nsloc})},{id:"functions",header:"Functions",accessorKey:"functions",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.functions})},{id:"modifiers",header:"Modifiers",accessorKey:"modifiers",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.modifiers})},{id:"events",header:"Events",accessorKey:"events",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.events})},{id:"errors",header:"Errors",accessorKey:"errors",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.errors})},{id:"assembly_lines",header:"Assembly",accessorKey:"assembly_lines",cell:e=>e.assembly_lines>0?r.jsx("span",{className:"text-right font-mono tabular-nums text-[var(--medium)]",children:e.assembly_lines}):r.jsx("span",{className:"text-right font-mono tabular-nums text-text-tertiary",children:"0"})},{id:"inherits",header:"Inherits",accessorKey:"inherits",cell:e=>r.jsx("span",{className:"max-w-[200px] truncate text-caption text-text-tertiary",children:e.inherits.length>0?e.inherits.join(", "):"--"})}],[]),s=(0,a.useMemo)(()=>({nsloc:e.reduce((e,t)=>e+t.nsloc,0),functions:e.reduce((e,t)=>e+t.functions,0),modifiers:e.reduce((e,t)=>e+t.modifiers,0),events:e.reduce((e,t)=>e+t.events,0),errors:e.reduce((e,t)=>e+t.errors,0),assembly:e.reduce((e,t)=>e+t.assembly_lines,0)}),[e]);return(0,r.jsxs)("div",{children:[r.jsx(n.v,{columns:t,data:e,defaultOpen:!0}),(0,r.jsxs)("div",{className:"mt-sp-3 flex flex-wrap gap-sp-4 rounded-md border border-border-default bg-surface-2 px-sp-4 py-sp-3 text-body font-medium text-text-primary",children:[(0,r.jsxs)("span",{children:["Total (",e.length," contracts)"]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["nSLOC: ",s.nsloc]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Functions: ",s.functions]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Modifiers: ",s.modifiers]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Events: ",s.events]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Errors: ",s.errors]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Assembly: ",s.assembly]})]})]})}function p({test_coverage:e}){return e&&"available"===e.status?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-sp-3 grid grid-cols-2 gap-sp-3 sm:grid-cols-4",children:[null!=e.overall_line_pct&&(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"mb-1 text-caption text-text-secondary",children:"Line Coverage"}),(0,r.jsxs)("div",{className:"text-display text-text-primary",children:[e.overall_line_pct.toFixed(1),"%"]}),r.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.overall_line_pct)}`,style:{width:`${Math.min(e.overall_line_pct,100)}%`}})})]}),null!=e.overall_branch_pct&&(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"mb-1 text-caption text-text-secondary",children:"Branch Coverage"}),(0,r.jsxs)("div",{className:"text-display text-text-primary",children:[e.overall_branch_pct.toFixed(1),"%"]}),r.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.overall_branch_pct)}`,style:{width:`${Math.min(e.overall_branch_pct,100)}%`}})})]})]}),e.per_contract.length>0&&r.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,r.jsxs)("table",{className:"w-full text-left text-body",children:[r.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,r.jsxs)("tr",{children:[r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Contract"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"File"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Line %"}),r.jsx("th",{className:"w-48 px-sp-4 py-sp-2",children:"Line Coverage"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Branch %"}),r.jsx("th",{className:"w-48 px-sp-4 py-sp-2",children:"Branch Coverage"})]})}),r.jsx("tbody",{className:"divide-y divide-border-subtle",children:e.per_contract.map(e=>(0,r.jsxs)("tr",{className:"h-9 bg-surface-1 hover:bg-surface-3",children:[r.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.contract}),r.jsx("td",{className:"max-w-[200px] truncate px-sp-4 py-sp-2 font-mono text-caption text-text-tertiary",children:e.file}),(0,r.jsxs)("td",{className:"px-sp-4 py-sp-2 font-mono tabular-nums text-text-secondary",children:[e.line_pct.toFixed(1),"%"]}),r.jsx("td",{className:"px-sp-4 py-sp-2",children:r.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.line_pct)}`,style:{width:`${Math.min(e.line_pct,100)}%`}})})}),(0,r.jsxs)("td",{className:"px-sp-4 py-sp-2 font-mono tabular-nums text-text-secondary",children:[e.branch_pct.toFixed(1),"%"]}),r.jsx("td",{className:"px-sp-4 py-sp-2",children:r.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.branch_pct)}`,style:{width:`${Math.min(e.branch_pct,100)}%`}})})})]},`${e.file}:${e.contract}`))})]})})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-md border border-dashed border-border-emphasis bg-surface-1 py-sp-8",children:[r.jsx("p",{className:"mb-2 text-heading font-medium text-text-primary",children:"No Coverage Data"}),r.jsx("p",{className:"text-body text-text-tertiary",children:"Run tests with coverage enabled to see results here."})]})}function m({dependencies:e}){return 0===e.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-md border border-dashed border-border-emphasis bg-surface-1 py-sp-8",children:[r.jsx("p",{className:"mb-2 text-heading font-medium text-text-primary",children:"No Dependencies"}),r.jsx("p",{className:"text-body text-text-tertiary",children:"No external dependencies were detected."})]}):r.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,r.jsxs)("table",{className:"w-full text-left text-body",children:[r.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,r.jsxs)("tr",{children:[r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Package"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Version"}),r.jsx("th",{className:"px-sp-4 py-sp-2 text-right",children:"Imports"})]})}),r.jsx("tbody",{className:"divide-y divide-border-subtle",children:e.map(e=>(0,r.jsxs)("tr",{className:"h-9 bg-surface-1 hover:bg-surface-3",children:[r.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.package}),r.jsx("td",{className:"px-sp-4 py-sp-2 font-mono text-body text-text-tertiary",children:e.version??"--"}),r.jsx("td",{className:"px-sp-4 py-sp-2 text-right font-mono tabular-nums text-text-secondary",children:e.imports})]},e.package))})]})})}function u({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"text-display text-text-primary",children:t}),r.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:e})]})}},2242:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p,dynamic:()=>x});var r=s(5023),a=s(1760),n=s(446),l=s(2772);let i=(0,l.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx`),{__esModule:c,$$typeof:d}=i;i.default;let o=(0,l.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx#StatsClient`),x="force-dynamic";function p(){let e=(0,a.gn)("stats.json");return e?(0,r.jsxs)("div",{children:[r.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Stats"}),r.jsx(o,{totals:e.totals,per_contract:e.per_contract,erc_eip_usage:e.erc_eip_usage,dependencies:e.dependencies,test_coverage:e.test_coverage})]}):(0,r.jsxs)("div",{children:[r.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Stats"}),r.jsx(n.v,{command:"hex stats"})]})}}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[916,649,645,665,431,557],()=>s(3328));module.exports=r})();
|
|
1
|
+
(()=>{var e={};e.id=740,e.ids=[740],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7561:e=>{"use strict";e.exports=require("node:fs")},9411:e=>{"use strict";e.exports=require("node:path")},1017:e=>{"use strict";e.exports=require("path")},7310:e=>{"use strict";e.exports=require("url")},3328:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>l.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>o,routeModule:()=>m,tree:()=>d}),s(2242),s(8116),s(2874);var r=s(7105),a=s(5265),n=s(157),l=s.n(n),i=s(4665),c={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(c[e]=()=>i[e]);s.d(t,c);let d=["",{children:["stats",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,2242)),"/home/dx/Work/hex/dashboard/app/stats/page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(s.bind(s,8116)),"/home/dx/Work/hex/dashboard/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,2874,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,2950))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],o=["/home/dx/Work/hex/dashboard/app/stats/page.tsx"],x="/stats/page",p={require:s,loadChunk:()=>Promise.resolve()},m=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/stats/page",pathname:"/stats",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},1081:(e,t,s)=>{Promise.resolve().then(s.bind(s,8033))},8033:(e,t,s)=>{"use strict";s.d(t,{StatsClient:()=>d});var r=s(9899),a=s(5507),n=s(983);function l(e){return e>=80?"bg-[var(--success)]":e>=50?"bg-[var(--medium)]":"bg-[var(--critical)]"}let i={contract:"bg-[var(--low)]/15 text-[var(--low)]",interface:"bg-[var(--info)]/15 text-[var(--info)]",library:"bg-[var(--info)]/15 text-[var(--info)]",abstract:"bg-[var(--high)]/15 text-[var(--high)]"},c=["Summary","Per-Contract","Coverage","Dependencies"];function d({totals:e,per_contract:t,erc_eip_usage:s,dependencies:n,test_coverage:l}){let[i,d]=(0,a.useState)("Summary");return(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"mb-sp-5 inline-flex overflow-x-auto rounded-md bg-surface-3 p-1",children:c.map(e=>r.jsx("button",{type:"button",onClick:()=>d(e),className:`whitespace-nowrap rounded-sm px-sp-3 py-1.5 text-body font-medium ${i===e?"bg-surface-2 text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:e},e))}),"Summary"===i&&r.jsx(o,{totals:e,per_contract:t,erc_eip_usage:s}),"Per-Contract"===i&&r.jsx(x,{per_contract:t}),"Coverage"===i&&r.jsx(p,{test_coverage:l}),"Dependencies"===i&&r.jsx(m,{dependencies:n})]})}function o({totals:e,per_contract:t,erc_eip_usage:s}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-sp-6 grid grid-cols-2 gap-sp-3 sm:grid-cols-3 lg:grid-cols-6",children:[r.jsx(u,{label:"Contracts",value:e.contracts}),r.jsx(u,{label:"nSLOC",value:e.nsloc.toLocaleString()}),r.jsx(u,{label:"Functions",value:t.reduce((e,t)=>e+t.functions,0)}),r.jsx(u,{label:"Modifiers",value:t.reduce((e,t)=>e+t.modifiers,0)}),r.jsx(u,{label:"Events",value:t.reduce((e,t)=>e+t.events,0)}),r.jsx(u,{label:"Assembly",value:e.assembly_lines})]}),s.length>0&&(0,r.jsxs)("div",{className:"mb-sp-6",children:[r.jsx("h3",{className:"mb-sp-2 text-heading font-medium text-text-primary",children:"ERC / EIP Usage"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:s.map(e=>r.jsx("span",{className:"inline-flex items-center rounded-sm bg-[var(--info)]/15 px-2.5 py-1 text-caption font-medium text-[var(--info)]",children:e},e))})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-sp-4 text-caption text-text-tertiary",children:[(0,r.jsxs)("span",{children:["Total Lines: ",e.total_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Comments: ",e.comment_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Blank: ",e.blank_lines.toLocaleString()]}),(0,r.jsxs)("span",{children:["Files: ",e.files]}),(0,r.jsxs)("span",{children:["Interfaces: ",e.interfaces]}),(0,r.jsxs)("span",{children:["Libraries: ",e.libraries]}),(0,r.jsxs)("span",{children:["Abstract: ",e.abstract_contracts]})]})]})}function x({per_contract:e}){let t=(0,a.useMemo)(()=>[{id:"file",header:"File",accessorKey:"file",cell:e=>r.jsx("span",{className:"max-w-[200px] truncate font-mono text-caption text-text-tertiary",children:e.file})},{id:"contract",header:"Contract",accessorKey:"contract",enableColumnFilter:!0,cell:e=>r.jsx("span",{className:"font-medium text-text-primary",children:e.contract})},{id:"type",header:"Type",accessorKey:"type",enableColumnFilter:!0,cell:e=>r.jsx("span",{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-caption font-medium ${i[e.type]??"bg-surface-3 text-text-secondary"}`,children:e.type})},{id:"nsloc",header:"nSLOC",accessorKey:"nsloc",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.nsloc})},{id:"functions",header:"Functions",accessorKey:"functions",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.functions})},{id:"modifiers",header:"Modifiers",accessorKey:"modifiers",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.modifiers})},{id:"events",header:"Events",accessorKey:"events",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.events})},{id:"errors",header:"Errors",accessorKey:"errors",cell:e=>r.jsx("span",{className:"text-right font-mono tabular-nums text-text-secondary",children:e.errors})},{id:"assembly_lines",header:"Assembly",accessorKey:"assembly_lines",cell:e=>e.assembly_lines>0?r.jsx("span",{className:"text-right font-mono tabular-nums text-[var(--medium)]",children:e.assembly_lines}):r.jsx("span",{className:"text-right font-mono tabular-nums text-text-tertiary",children:"0"})},{id:"inherits",header:"Inherits",accessorKey:"inherits",cell:e=>r.jsx("span",{className:"max-w-[200px] truncate text-caption text-text-tertiary",children:e.inherits.length>0?e.inherits.join(", "):"--"})}],[]),s=(0,a.useMemo)(()=>({nsloc:e.reduce((e,t)=>e+t.nsloc,0),functions:e.reduce((e,t)=>e+t.functions,0),modifiers:e.reduce((e,t)=>e+t.modifiers,0),events:e.reduce((e,t)=>e+t.events,0),errors:e.reduce((e,t)=>e+t.errors,0),assembly:e.reduce((e,t)=>e+t.assembly_lines,0)}),[e]);return(0,r.jsxs)("div",{children:[r.jsx(n.v,{columns:t,data:e,defaultOpen:!0}),(0,r.jsxs)("div",{className:"mt-sp-3 flex flex-wrap gap-sp-4 rounded-md border border-border-default bg-surface-2 px-sp-4 py-sp-3 text-body font-medium text-text-primary",children:[(0,r.jsxs)("span",{children:["Total (",e.length," contracts)"]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["nSLOC: ",s.nsloc]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Functions: ",s.functions]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Modifiers: ",s.modifiers]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Events: ",s.events]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Errors: ",s.errors]}),(0,r.jsxs)("span",{className:"font-mono tabular-nums",children:["Assembly: ",s.assembly]})]})]})}function p({test_coverage:e}){return e&&"available"===e.status?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-sp-3 grid grid-cols-2 gap-sp-3 sm:grid-cols-4",children:[null!=e.overall_line_pct&&(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"mb-1 text-caption text-text-secondary",children:"Line Coverage"}),(0,r.jsxs)("div",{className:"text-display text-text-primary",children:[e.overall_line_pct.toFixed(1),"%"]}),r.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.overall_line_pct)}`,style:{width:`${Math.min(e.overall_line_pct,100)}%`}})})]}),null!=e.overall_branch_pct&&(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"mb-1 text-caption text-text-secondary",children:"Branch Coverage"}),(0,r.jsxs)("div",{className:"text-display text-text-primary",children:[e.overall_branch_pct.toFixed(1),"%"]}),r.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.overall_branch_pct)}`,style:{width:`${Math.min(e.overall_branch_pct,100)}%`}})})]})]}),e.per_contract.length>0&&r.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,r.jsxs)("table",{className:"w-full text-left text-body",children:[r.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,r.jsxs)("tr",{children:[r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Contract"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"File"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Line %"}),r.jsx("th",{className:"w-48 px-sp-4 py-sp-2",children:"Line Coverage"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Branch %"}),r.jsx("th",{className:"w-48 px-sp-4 py-sp-2",children:"Branch Coverage"})]})}),r.jsx("tbody",{className:"divide-y divide-border-subtle",children:e.per_contract.map(e=>(0,r.jsxs)("tr",{className:"h-9 bg-surface-1 hover:bg-surface-3",children:[r.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.contract}),r.jsx("td",{className:"max-w-[200px] truncate px-sp-4 py-sp-2 font-mono text-caption text-text-tertiary",children:e.file}),(0,r.jsxs)("td",{className:"px-sp-4 py-sp-2 font-mono tabular-nums text-text-secondary",children:[e.line_pct.toFixed(1),"%"]}),r.jsx("td",{className:"px-sp-4 py-sp-2",children:r.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.line_pct)}`,style:{width:`${Math.min(e.line_pct,100)}%`}})})}),(0,r.jsxs)("td",{className:"px-sp-4 py-sp-2 font-mono tabular-nums text-text-secondary",children:[e.branch_pct.toFixed(1),"%"]}),r.jsx("td",{className:"px-sp-4 py-sp-2",children:r.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-surface-3",children:r.jsx("div",{className:`h-full rounded-full ${l(e.branch_pct)}`,style:{width:`${Math.min(e.branch_pct,100)}%`}})})})]},`${e.file}:${e.contract}`))})]})})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-md border border-dashed border-border-emphasis bg-surface-1 py-sp-8",children:[r.jsx("p",{className:"mb-2 text-heading font-medium text-text-primary",children:"No Coverage Data"}),r.jsx("p",{className:"text-body text-text-tertiary",children:"Run tests with coverage enabled to see results here."})]})}function m({dependencies:e}){return 0===e.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-md border border-dashed border-border-emphasis bg-surface-1 py-sp-8",children:[r.jsx("p",{className:"mb-2 text-heading font-medium text-text-primary",children:"No Dependencies"}),r.jsx("p",{className:"text-body text-text-tertiary",children:"No external dependencies were detected."})]}):r.jsx("div",{className:"overflow-x-auto rounded-md border border-border-default",children:(0,r.jsxs)("table",{className:"w-full text-left text-body",children:[r.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:(0,r.jsxs)("tr",{children:[r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Package"}),r.jsx("th",{className:"px-sp-4 py-sp-2",children:"Version"}),r.jsx("th",{className:"px-sp-4 py-sp-2 text-right",children:"Imports"})]})}),r.jsx("tbody",{className:"divide-y divide-border-subtle",children:e.map(e=>(0,r.jsxs)("tr",{className:"h-9 bg-surface-1 hover:bg-surface-3",children:[r.jsx("td",{className:"px-sp-4 py-sp-2 font-medium text-text-primary",children:e.package}),r.jsx("td",{className:"px-sp-4 py-sp-2 font-mono text-body text-text-tertiary",children:e.version??"--"}),r.jsx("td",{className:"px-sp-4 py-sp-2 text-right font-mono tabular-nums text-text-secondary",children:e.imports})]},e.package))})]})})}function u({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-md border border-border-default bg-surface-2 p-sp-4",children:[r.jsx("div",{className:"text-display text-text-primary",children:t}),r.jsx("div",{className:"mt-1 text-caption text-text-secondary",children:e})]})}},2242:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p,dynamic:()=>x});var r=s(5023),a=s(1720),n=s(446),l=s(2772);let i=(0,l.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx`),{__esModule:c,$$typeof:d}=i;i.default;let o=(0,l.createProxy)(String.raw`/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx#StatsClient`),x="force-dynamic";function p(){let e=(0,a.gn)("stats.json");return e?(0,r.jsxs)("div",{children:[r.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Stats"}),r.jsx(o,{totals:e.totals,per_contract:e.per_contract,erc_eip_usage:e.erc_eip_usage,dependencies:e.dependencies,test_coverage:e.test_coverage})]}):(0,r.jsxs)("div",{children:[r.jsx("h2",{className:"mb-sp-5 text-title font-semibold text-text-primary",children:"Stats"}),r.jsx(n.v,{command:"hex stats"})]})}}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[916,649,645,665,431,44],()=>s(3328));module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../package.json","../../chunks/431.js","../../chunks/
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../package.json","../../chunks/431.js","../../chunks/44.js","../../chunks/645.js","../../chunks/649.js","../../chunks/665.js","../../chunks/916.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/stats/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/stats/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"9":{"*":{"id":"6131","name":"*","chunks":[],"async":false}},"1076":{"*":{"id":"9323","name":"*","chunks":[],"async":false}},"1187":{"*":{"id":"7918","name":"*","chunks":[],"async":false}},"1447":{"*":{"id":"5915","name":"*","chunks":[],"async":false}},"2198":{"*":{"id":"9915","name":"*","chunks":[],"async":false}},"3297":{"*":{"id":"1611","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"5289","name":"*","chunks":[],"async":false}},"3443":{"*":{"id":"7406","name":"*","chunks":[],"async":false}},"3719":{"*":{"id":"526","name":"*","chunks":[],"async":false}},"4595":{"*":{"id":"1388","name":"*","chunks":[],"async":false}},"5268":{"*":{"id":"3817","name":"*","chunks":[],"async":false}},"5276":{"*":{"id":"820","name":"*","chunks":[],"async":false}},"7063":{"*":{"id":"618","name":"*","chunks":[],"async":false}},"7498":{"*":{"id":"696","name":"*","chunks":[],"async":false}},"7542":{"*":{"id":"9555","name":"*","chunks":[],"async":false}},"7701":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"7780":{"*":{"id":"8664","name":"*","chunks":[],"async":false}},"9487":{"*":{"id":"8037","name":"*","chunks":[],"async":false}},"9690":{"*":{"id":"2204","name":"*","chunks":[],"async":false}},"9745":{"*":{"id":"4136","name":"*","chunks":[],"async":false}},"9922":{"*":{"id":"8033","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/dx/Work/hex/node_modules/next/dist/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/app-router.js":{"id":5268,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/client-page.js":{"id":1076,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":9690,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5276,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":1447,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3297,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/globals.css":{"id":3812,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/CommandPalette.tsx":{"id":2198,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx":{"id":1187,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next-themes/dist/index.mjs":{"id":4595,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Manrope\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\",\"display\":\"swap\"}],\"variableName\":\"manrope\"}":{"id":8414,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\",\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5256,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","3185","static/chunks/app/layout-91d2987f5030a3c4.js"],"async":false},"/home/dx/Work/hex/dashboard/app/diagram/page.tsx":{"id":3719,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/flows/page.tsx":{"id":3443,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/calls/CallsClient.tsx":{"id":3362,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/access/AccessClient.tsx":{"id":9745,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/functions/FunctionsClient.tsx":{"id":7780,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/conformance/ConformanceTable.tsx":{"id":7542,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/overleaf/OverleafClient.tsx":{"id":9,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/issues/IssuesBoardClient.tsx":{"id":7063,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/components/MarkdownRenderer.tsx":{"id":9487,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/node_modules/next/dist/esm/client/link.js":{"id":7498,"name":"*","chunks":["7498","static/chunks/7498-ea83cb9e30ec5491.js","7397","static/chunks/7397-f6f4dddc7a20bfc1.js","1931","static/chunks/app/page-a0f25953d4457935.js"],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":["8452","static/chunks/8452-e616b5f43bceb95f.js","2740","static/chunks/app/stats/page-db81f600a086f252.js"],"async":false}},"entryCSSFiles":{"/home/dx/Work/hex/dashboard/":[],"/home/dx/Work/hex/dashboard/app/layout":["static/css/9c84313d0484b74f.css"],"/home/dx/Work/hex/dashboard/app/page":[],"/home/dx/Work/hex/dashboard/app/stats/page":[]}}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_not-found/page": "app/_not-found/page.js",
|
|
3
|
-
"/api/mermaid/route": "app/api/mermaid/route.js",
|
|
4
3
|
"/api/code/route": "app/api/code/route.js",
|
|
4
|
+
"/api/mermaid/route": "app/api/mermaid/route.js",
|
|
5
5
|
"/api/progress/route": "app/api/progress/route.js",
|
|
6
6
|
"/diagram/page": "app/diagram/page.js",
|
|
7
7
|
"/flows/page": "app/flows/page.js",
|
|
8
8
|
"/icon.svg/route": "app/icon.svg/route.js",
|
|
9
9
|
"/api/github-status/route": "app/api/github-status/route.js",
|
|
10
10
|
"/api/issues/[id]/route": "app/api/issues/[id]/route.js",
|
|
11
|
-
"/api/flows/route": "app/api/flows/route.js",
|
|
12
11
|
"/api/issues/[id]/move/route": "app/api/issues/[id]/move/route.js",
|
|
13
12
|
"/api/watch/route": "app/api/watch/route.js",
|
|
14
|
-
"/
|
|
13
|
+
"/api/flows/route": "app/api/flows/route.js",
|
|
15
14
|
"/calls/page": "app/calls/page.js",
|
|
16
|
-
"/
|
|
15
|
+
"/access/page": "app/access/page.js",
|
|
17
16
|
"/functions/page": "app/functions/page.js",
|
|
18
17
|
"/conformance/page": "app/conformance/page.js",
|
|
19
|
-
"/
|
|
20
|
-
"/progress/page": "app/progress/page.js",
|
|
18
|
+
"/overleaf/page": "app/overleaf/page.js",
|
|
21
19
|
"/issues/page": "app/issues/page.js",
|
|
22
|
-
"/page": "app/page.js"
|
|
20
|
+
"/page": "app/page.js",
|
|
21
|
+
"/progress/page": "app/progress/page.js",
|
|
22
|
+
"/stats/page": "app/stats/page.js"
|
|
23
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=42,exports.ids=[42],exports.modules={1720:(e,t,n)=>{n.d(t,{ki:()=>g,ZN:()=>p,J1:()=>y,gn:()=>f,ws:()=>d,V9:()=>j,au:()=>a});var i=n(7561),r=n.n(i),o=n(9411),s=n.n(o);let l=[".hex",".solaudit","solaudit-output"];function u(e){return e.replace(/\\/g,"/")}function c(){try{let e=function(e=process.cwd()){let t=s().resolve(e);for(;;){let e=function(e){for(let t of[...l.map(t=>s().join(e,t,"config.json")),s().join(e,"config.json")])if(r().existsSync(t))return u(t);return null}(t);if(e)return u(s().dirname(e));let n=s().dirname(t);if(n===t)return null;t=n}}(process.cwd());if(e)return e}catch{}return s().join(process.cwd(),".hex")}function f(e){try{let t=s().join(c(),e),n=r().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}function d(e){try{let t=s().join(c(),e);return r().readFileSync(t,"utf-8")}catch{return null}}function a(e,t){let n=s().join(c(),e);r().writeFileSync(n,JSON.stringify(t,null,2),"utf-8")}function g(e){try{let t=s().join(c(),e);return r().existsSync(t)}catch{return!1}}function p(){return c()}function y(e){try{let t=s().join(c(),e);if(!r().existsSync(t))return[];return r().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function j(e){try{let t=s().join(c(),e),n=r().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}},3022:(e,t,n)=>{n.d(t,{EZ:()=>m,SG:()=>c,wl:()=>_});var i=n(7561),r=n.n(i),o=n(9411),s=n.n(o);let l=["Critical","High","Medium","Low","Info"],u=["Fixed","Mitigated","Acknowledged","Not Fixed","Unresolved"],c={potential:"pending_validation",verified:"verified",invalid:"rejected",duplicate:"duplicate"},f=["title","severity","description","recommendation","resolution","update_from_client","notes"];function d(e){try{return JSON.parse(r().readFileSync(e,"utf-8"))}catch{return null}}function a(e,t){let n=s().dirname(e);r().existsSync(n)||r().mkdirSync(n,{recursive:!0});let i=e+".tmp";r().writeFileSync(i,JSON.stringify(t,null,2)+"\n","utf-8"),r().renameSync(i,e)}function g(e){return d(s().join(e,"findings.json"))??{findings:[]}}function p(e){return d(s().join(e,"tracking.json"))??{findings:[]}}function y(e,t){return{id:e,title:e,severity:t,category:"",description:"",root_cause:{locations:[]},poc:{status:"not_started",file:null,validation_memo:null},recommendation:"",references:{external_links:[]},created_at:new Date().toISOString()}}function j(e,t,n,i,r){let o=d("auditagent"===n?s().join(e,"ai-results","auditagent","findings.json"):s().join(e,"external","github","findings.json")),l=o?.findings?.find(e=>e.id===i||String(e.issue_number??"")===i||e.id===`github-${i}`);if(!l)return null;let u=y(t,l.severity??r?.severity??"Info");u.title=String(l.title??r?.title??t),u.category=String(l.category??""),u.description=String(l.description??"");let c=l.affected_code??[];return u.root_cause.locations=c.map(e=>({file:e.file,snippet:e.snippet})),u.source_ref=i,u}function h(e,t){let n=g(e),i=n.findings.find(e=>e.id===t);if(i)return i;let r=p(e).findings.find(e=>e.id===t),o=r?.source_ref??"",l=null;return r?.source==="conformance"&&o?l=function(e,t,n,i){let r=d(s().join(e,"spec-conformance.json")),o=r?.items?.find(e=>e.id===n);if(!o)return null;let l=y(t,i?.severity??o.severity_hint??"Info");l.title=i?.title??String(o.spec_text??t),l.category="Spec Conformance",l.description=String(o.finding??o.spec_text??"");let u=o.code_location;return u?.file&&(l.root_cause.locations=[{file:u.file}]),l.source_ref=n,l}(e,t,o,r):r?.source==="auditagent"&&o?l=j(e,t,"auditagent",o,r):r?.source==="github"&&o&&(l=j(e,t,"github",o,r)),!l&&(l=y(t,r?.severity??"Info"),r?.title&&(l.title=r.title),r?.source_ref&&(l.source_ref=r.source_ref)),n.findings.push(l),a(s().join(e,"findings.json"),n),l}let S="Issue is synced to GitHub and is read-only in Hex. Edit it on GitHub, then run /sync-issues to pull the changes.";function _(e,t,n,i){let r=c[n];if(!r)throw Error(`Invalid column: ${n}. The "synced" column is reached only via /sync-issues.`);let o=p(e).findings.find(e=>e.id===t);if(o?.status==="synced")throw Error(S);"verified"===n&&h(e,t);let l=p(e),u=l.findings.find(e=>e.id===t);if(u)u.status=r;else{let o=h(e,t);u={id:t,title:o.title,severity:o.severity,source:"manual",status:r,poc_status:o.poc?.status??"not_started",poc_file:o.poc?.file??null,duplicates:[],duplicate_of:"duplicate"===n?i??null:null,notes:""},l.findings.push(u)}return"duplicate"===n?i&&(u.duplicate_of=i):u.duplicate_of&&(u.duplicate_of=null),a(s().join(e,"tracking.json"),l),u}function m(e,t,n){let i={};for(let e of f){if(!(e in n))continue;let t=n[e];if("severity"===e&&null!=t&&!("string"==typeof t&&l.includes(t)))throw Error(`Invalid severity: ${String(t)}`);if("resolution"===e&&null!=t&&""!==t&&!("string"==typeof t&&u.includes(t)))throw Error(`Invalid resolution: ${String(t)}`);i[e]=t}let r=Array.isArray(n.files)?n.files.filter(e=>"string"==typeof e):null;if(0===Object.keys(i).length&&!r)throw Error("No editable fields supplied");let o=p(e).findings.find(e=>e.id===t);if(o?.status==="synced")throw Error(S);let c=h(e,t),d=g(e),y=d.findings.find(e=>e.id===t)??c;for(let[e,t]of Object.entries(i))if("notes"!==e){if("resolution"===e&&(""===t||null==t)){delete y.resolution;continue}y[e]=t}r&&(y.root_cause.locations=r.map(e=>({file:e}))),a(s().join(e,"findings.json"),d);let j=p(e),_=j.findings.find(e=>e.id===t);return _&&("title"in i&&(_.title=i.title),"severity"in i&&(_.severity=i.severity),"notes"in i&&(_.notes=i.notes),a(s().join(e,"tracking.json"),j)),y}}};
|