hex-audit 0.5.0 → 0.5.2

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.
Files changed (146) hide show
  1. package/dashboard/.next/BUILD_ID +1 -1
  2. package/dashboard/.next/app-build-manifest.json +20 -20
  3. package/dashboard/.next/app-path-routes-manifest.json +1 -1
  4. package/dashboard/.next/build-manifest.json +2 -2
  5. package/dashboard/.next/next-minimal-server.js.nft.json +1 -1
  6. package/dashboard/.next/next-server.js.nft.json +1 -1
  7. package/dashboard/.next/prerender-manifest.js +1 -1
  8. package/dashboard/.next/prerender-manifest.json +1 -1
  9. package/dashboard/.next/server/app/_not-found/page.js +1 -1
  10. package/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  11. package/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/dashboard/.next/server/app/_not-found.html +1 -1
  13. package/dashboard/.next/server/app/_not-found.rsc +4 -4
  14. package/dashboard/.next/server/app/access/page.js +1 -1
  15. package/dashboard/.next/server/app/access/page.js.nft.json +1 -1
  16. package/dashboard/.next/server/app/access/page_client-reference-manifest.js +1 -1
  17. package/dashboard/.next/server/app/api/flows/route.js +1 -1
  18. package/dashboard/.next/server/app/api/github-status/route.js +1 -1
  19. package/dashboard/.next/server/app/api/issues/[id]/move/route.js +1 -1
  20. package/dashboard/.next/server/app/api/issues/[id]/move/route.js.nft.json +1 -1
  21. package/dashboard/.next/server/app/api/issues/[id]/route.js +1 -1
  22. package/dashboard/.next/server/app/api/issues/[id]/route.js.nft.json +1 -1
  23. package/dashboard/.next/server/app/api/mermaid/route.js +1 -1
  24. package/dashboard/.next/server/app/api/progress/route.js +1 -1
  25. package/dashboard/.next/server/app/api/watch/route.js +2 -2
  26. package/dashboard/.next/server/app/calls/page.js +1 -1
  27. package/dashboard/.next/server/app/calls/page.js.nft.json +1 -1
  28. package/dashboard/.next/server/app/calls/page_client-reference-manifest.js +1 -1
  29. package/dashboard/.next/server/app/conformance/page.js +1 -1
  30. package/dashboard/.next/server/app/conformance/page.js.nft.json +1 -1
  31. package/dashboard/.next/server/app/conformance/page_client-reference-manifest.js +1 -1
  32. package/dashboard/.next/server/app/diagram/page.js +1 -1
  33. package/dashboard/.next/server/app/diagram/page.js.nft.json +1 -1
  34. package/dashboard/.next/server/app/diagram/page_client-reference-manifest.js +1 -1
  35. package/dashboard/.next/server/app/diagram.html +1 -1
  36. package/dashboard/.next/server/app/diagram.rsc +4 -4
  37. package/dashboard/.next/server/app/flows/page.js +1 -1
  38. package/dashboard/.next/server/app/flows/page.js.nft.json +1 -1
  39. package/dashboard/.next/server/app/flows/page_client-reference-manifest.js +1 -1
  40. package/dashboard/.next/server/app/flows.html +1 -1
  41. package/dashboard/.next/server/app/flows.rsc +4 -4
  42. package/dashboard/.next/server/app/functions/page.js +1 -1
  43. package/dashboard/.next/server/app/functions/page.js.nft.json +1 -1
  44. package/dashboard/.next/server/app/functions/page_client-reference-manifest.js +1 -1
  45. package/dashboard/.next/server/app/issues/page.js +5 -3
  46. package/dashboard/.next/server/app/issues/page.js.nft.json +1 -1
  47. package/dashboard/.next/server/app/issues/page_client-reference-manifest.js +1 -1
  48. package/dashboard/.next/server/app/overleaf/page.js +1 -1
  49. package/dashboard/.next/server/app/overleaf/page.js.nft.json +1 -1
  50. package/dashboard/.next/server/app/overleaf/page_client-reference-manifest.js +1 -1
  51. package/dashboard/.next/server/app/page.js +2 -2
  52. package/dashboard/.next/server/app/page.js.nft.json +1 -1
  53. package/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  54. package/dashboard/.next/server/app/progress/page.js +1 -1
  55. package/dashboard/.next/server/app/progress/page.js.nft.json +1 -1
  56. package/dashboard/.next/server/app/progress/page_client-reference-manifest.js +1 -1
  57. package/dashboard/.next/server/app/stats/page.js +1 -1
  58. package/dashboard/.next/server/app/stats/page.js.nft.json +1 -1
  59. package/dashboard/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  60. package/dashboard/.next/server/app-paths-manifest.json +6 -6
  61. package/dashboard/.next/server/chunks/42.js +1 -0
  62. package/dashboard/.next/server/chunks/44.js +1 -0
  63. package/dashboard/.next/server/chunks/{431.js → 530.js} +1 -1
  64. package/dashboard/.next/server/functions-config-manifest.json +1 -1
  65. package/dashboard/.next/server/middleware-build-manifest.js +1 -1
  66. package/dashboard/.next/server/pages/404.html +1 -1
  67. package/dashboard/.next/server/pages/500.html +1 -1
  68. package/dashboard/.next/server/server-reference-manifest.js +1 -1
  69. package/dashboard/.next/server/server-reference-manifest.json +1 -1
  70. package/dashboard/.next/static/chunks/app/issues/{page-2bb52a36f20497fe.js → page-6bfbf80884d3c9d8.js} +1 -1
  71. package/dashboard/.next/static/chunks/app/{layout-9c3c84993dd895f6.js → layout-23765c356f43208c.js} +1 -1
  72. package/dashboard/app/layout.tsx +2 -1
  73. package/dashboard/components/DashboardLayout.tsx +8 -2
  74. package/dashboard/lib/data.ts +11 -19
  75. package/dashboard/lib/finding-markdown.ts +42 -3
  76. package/dist/commands/access.d.ts.map +1 -1
  77. package/dist/commands/access.js +3 -4
  78. package/dist/commands/access.js.map +1 -1
  79. package/dist/commands/ai-status.d.ts.map +1 -1
  80. package/dist/commands/ai-status.js +8 -10
  81. package/dist/commands/ai-status.js.map +1 -1
  82. package/dist/commands/calls.d.ts.map +1 -1
  83. package/dist/commands/calls.js +3 -4
  84. package/dist/commands/calls.js.map +1 -1
  85. package/dist/commands/constraints.d.ts.map +1 -1
  86. package/dist/commands/constraints.js +2 -4
  87. package/dist/commands/constraints.js.map +1 -1
  88. package/dist/commands/context.d.ts.map +1 -1
  89. package/dist/commands/context.js +2 -4
  90. package/dist/commands/context.js.map +1 -1
  91. package/dist/commands/dashboard.d.ts.map +1 -1
  92. package/dist/commands/dashboard.js +19 -12
  93. package/dist/commands/dashboard.js.map +1 -1
  94. package/dist/commands/deps.d.ts.map +1 -1
  95. package/dist/commands/deps.js +2 -4
  96. package/dist/commands/deps.js.map +1 -1
  97. package/dist/commands/issue.d.ts.map +1 -1
  98. package/dist/commands/issue.js +12 -6
  99. package/dist/commands/issue.js.map +1 -1
  100. package/dist/commands/note.d.ts +3 -0
  101. package/dist/commands/note.d.ts.map +1 -0
  102. package/dist/commands/note.js +145 -0
  103. package/dist/commands/note.js.map +1 -0
  104. package/dist/commands/patterns.d.ts.map +1 -1
  105. package/dist/commands/patterns.js +2 -4
  106. package/dist/commands/patterns.js.map +1 -1
  107. package/dist/commands/state.d.ts.map +1 -1
  108. package/dist/commands/state.js +3 -4
  109. package/dist/commands/state.js.map +1 -1
  110. package/dist/commands/stats.d.ts.map +1 -1
  111. package/dist/commands/stats.js +3 -4
  112. package/dist/commands/stats.js.map +1 -1
  113. package/dist/commands/surface.d.ts.map +1 -1
  114. package/dist/commands/surface.js +3 -4
  115. package/dist/commands/surface.js.map +1 -1
  116. package/dist/core/config.d.ts +13 -0
  117. package/dist/core/config.d.ts.map +1 -1
  118. package/dist/core/config.js +23 -16
  119. package/dist/core/config.js.map +1 -1
  120. package/dist/core/issues.d.ts +2 -0
  121. package/dist/core/issues.d.ts.map +1 -1
  122. package/dist/core/issues.js +12 -1
  123. package/dist/core/issues.js.map +1 -1
  124. package/dist/core/locate.d.ts +26 -0
  125. package/dist/core/locate.d.ts.map +1 -0
  126. package/dist/core/locate.js +56 -0
  127. package/dist/core/locate.js.map +1 -0
  128. package/dist/core/notes.d.ts +62 -0
  129. package/dist/core/notes.d.ts.map +1 -0
  130. package/dist/core/notes.js +160 -0
  131. package/dist/core/notes.js.map +1 -0
  132. package/dist/core/whisper.d.ts +24 -0
  133. package/dist/core/whisper.d.ts.map +1 -0
  134. package/dist/core/whisper.js +124 -0
  135. package/dist/core/whisper.js.map +1 -0
  136. package/dist/index.js +6 -1
  137. package/dist/index.js.map +1 -1
  138. package/dist/skills/diane.md +99 -0
  139. package/dist/skills/ingest-aa-report.md +1 -1
  140. package/dist/skills/sync-issues.md +23 -3
  141. package/dist/skills/validate-issue.md +2 -0
  142. package/dist/skills/write-finding.md +15 -5
  143. package/package.json +1 -1
  144. package/dashboard/.next/server/chunks/557.js +0 -1
  145. /package/dashboard/.next/static/{NrFPHIFHWQ5jNF62Px_X8 → QeyYu_4EslVR8FTiyQpNs}/_buildManifest.js +0 -0
  146. /package/dashboard/.next/static/{NrFPHIFHWQ5jNF62Px_X8 → QeyYu_4EslVR8FTiyQpNs}/_ssgManifest.js +0 -0
@@ -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/645.js","../chunks/649.js","../chunks/916.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
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/530.js","../chunks/645.js","../chunks/649.js","../chunks/916.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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/access/AccessClient.tsx":{"id":9745,"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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"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}},"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
+ 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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"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/progress/ProgressClient.tsx":{"id":7701,"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/issues/IssuesBoardClient.tsx":{"id":7063,"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(819),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,819)),"/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,530],()=>r(6580));module.exports=s})();
@@ -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/645.js","../../chunks/649.js","../../chunks/916.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
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/530.js","../../chunks/645.js","../../chunks/649.js","../../chunks/916.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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/access/AccessClient.tsx":{"id":9745,"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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":[],"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/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}},"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
+ 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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"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/progress/ProgressClient.tsx":{"id":7701,"name":"*","chunks":["7092","static/chunks/app/progress/page-f07ac39d1d27b480.js"],"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/issues/IssuesBoardClient.tsx":{"id":7063,"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(819),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,819)),"/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,530,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/557.js","../../chunks/645.js","../../chunks/649.js","../../chunks/665.js","../../chunks/916.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
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/44.js","../../chunks/530.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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-9c3c84993dd895f6.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/access/AccessClient.tsx":{"id":9745,"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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":["8452","static/chunks/8452-e616b5f43bceb95f.js","2740","static/chunks/app/stats/page-db81f600a086f252.js"],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"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}},"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
+ 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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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-23765c356f43208c.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/overleaf/OverleafClient.tsx":{"id":9,"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/stats/StatsClient.tsx":{"id":9922,"name":"*","chunks":["8452","static/chunks/8452-e616b5f43bceb95f.js","2740","static/chunks/app/stats/page-db81f600a086f252.js"],"async":false},"/home/dx/Work/hex/dashboard/app/functions/FunctionsClient.tsx":{"id":7780,"name":"*","chunks":[],"async":false},"/home/dx/Work/hex/dashboard/app/progress/ProgressClient.tsx":{"id":7701,"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/issues/IssuesBoardClient.tsx":{"id":7063,"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/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
+ "/api/flows/route": "app/api/flows/route.js",
9
10
  "/api/github-status/route": "app/api/github-status/route.js",
10
11
  "/api/issues/[id]/route": "app/api/issues/[id]/route.js",
11
- "/api/flows/route": "app/api/flows/route.js",
12
12
  "/api/issues/[id]/move/route": "app/api/issues/[id]/move/route.js",
13
13
  "/api/watch/route": "app/api/watch/route.js",
14
- "/access/page": "app/access/page.js",
15
14
  "/calls/page": "app/calls/page.js",
15
+ "/access/page": "app/access/page.js",
16
16
  "/overleaf/page": "app/overleaf/page.js",
17
- "/functions/page": "app/functions/page.js",
18
17
  "/conformance/page": "app/conformance/page.js",
19
18
  "/stats/page": "app/stats/page.js",
19
+ "/functions/page": "app/functions/page.js",
20
20
  "/progress/page": "app/progress/page.js",
21
- "/issues/page": "app/issues/page.js",
22
- "/page": "app/page.js"
21
+ "/page": "app/page.js",
22
+ "/issues/page": "app/issues/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}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=44,exports.ids=[44],exports.modules={983:(e,t,r)=>{r.d(t,{v:()=>o});var n=r(9899),s=r(5507),i=r(665),l=r(1492);function o({columns:e,data:t,title:r,defaultOpen:o=!0,rowClassName:a,onRowClick:d,expandedRow:c}){let[u,x]=(0,s.useState)(o),[f,m]=(0,s.useState)([]),[p,h]=(0,s.useState)([]),[g,b]=(0,s.useState)(null),y=(0,s.useMemo)(()=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,header:e.header,enableColumnFilter:e.enableColumnFilter??!1,filterFn:e.enableColumnFilter?"equalsString":void 0,...e.sortingFn?{sortingFn:e.sortingFn}:{},cell:e.cell?({row:t})=>e.cell(t.original):({getValue:e})=>n.jsx("span",{className:"text-text-primary",children:String(e()??"")})})),[e]),v=(0,i.b7)({data:t,columns:y,state:{sorting:f,columnFilters:p},onSortingChange:m,onColumnFiltersChange:h,getCoreRowModel:(0,l.sC)(),getFilteredRowModel:(0,l.vL)(),getSortedRowModel:(0,l.tj)()}),j=(0,s.useMemo)(()=>{let r={};for(let n of e){if(!n.enableColumnFilter)continue;let e=new Set;for(let r of t){let t=r[n.accessorKey];null!=t&&e.add(String(t))}let s=[...e];if(n.filterOrder){let e=n.filterOrder;s.sort((t,r)=>{let n=e.indexOf(t),s=e.indexOf(r);return(-1===n?999:n)-(-1===s?999:s)})}else s.sort();r[n.id]=s}return r},[e,t]),w=e.filter(e=>e.enableColumnFilter);return(0,n.jsxs)("div",{className:"overflow-hidden border border-border-default",style:{borderRadius:"var(--radius-sm)"},children:[r&&(0,n.jsxs)("button",{type:"button",onClick:()=>x(!u),"aria-expanded":u,className:"flex w-full items-center justify-between bg-surface-2 px-sp-4 py-sp-3 text-left hover:bg-surface-3",children:[(0,n.jsxs)("span",{className:"text-heading font-medium text-text-primary",children:[r," (",t.length,")"]}),n.jsx("svg",{className:`h-4 w-4 text-text-tertiary ${u?"rotate-180":""}`,"aria-hidden":"true",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19 9-7 7-7-7"})})]}),u&&(0,n.jsxs)(n.Fragment,{children:[w.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2 border-b border-border-subtle bg-surface-1 px-sp-4 py-sp-2",children:w.map(e=>{let r=p.find(t=>t.id===e.id);return(0,n.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>h(t=>t.filter(t=>t.id!==e.id)),"aria-pressed":!r?.value,className:`rounded-md px-3 py-1.5 text-caption font-medium focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent ${r?.value?"bg-surface-3 text-text-secondary hover:text-text-primary":"bg-accent text-surface-0"}`,children:["All ",e.header]}),(j[e.id]??[]).map(s=>{let i=t.filter(t=>String(t[e.accessorKey])===s).length,l=r?.value===s;return(0,n.jsxs)("button",{type:"button",onClick:()=>h(t=>{let r=t.filter(t=>t.id!==e.id);return l?r:[...r,{id:e.id,value:s}]}),"aria-pressed":l,className:`rounded-md px-3 py-1.5 text-caption font-medium focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent ${l?"bg-accent text-surface-0":"bg-surface-3 text-text-secondary hover:text-text-primary"}`,children:[s,n.jsx("span",{className:"ml-1 opacity-60",children:i})]},s)})]},e.id)})}),n.jsx("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"w-full text-left text-body",children:[n.jsx("thead",{className:"border-b border-border-default bg-surface-2 text-caption font-medium uppercase tracking-wider text-text-tertiary",children:n.jsx("tr",{children:v.getHeaderGroups().map(e=>e.headers.map(e=>n.jsx("th",{scope:"col","aria-sort":"asc"===e.column.getIsSorted()?"ascending":"desc"===e.column.getIsSorted()?"descending":void 0,className:"cursor-pointer select-none px-sp-4 py-sp-2 hover:text-text-secondary",onClick:e.column.getToggleSortingHandler(),children:(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.ie)(e.column.columnDef.header,e.getContext()),"asc"===e.column.getIsSorted()&&n.jsx("svg",{className:"h-3 w-3","aria-hidden":"true",viewBox:"0 0 12 12",fill:"currentColor",children:n.jsx("path",{d:"M6 2l4 5H2z"})}),"desc"===e.column.getIsSorted()&&n.jsx("svg",{className:"h-3 w-3","aria-hidden":"true",viewBox:"0 0 12 12",fill:"currentColor",children:n.jsx("path",{d:"M6 10l4-5H2z"})})]})},e.id)))})}),n.jsx("tbody",{className:"divide-y divide-border-subtle",children:v.getRowModel().rows.map(t=>{let r=t.original,l=r.id?String(r.id):t.id,o=g===l,u=!!d||!!c;return(0,n.jsxs)(s.Fragment,{children:[n.jsx("tr",{className:`${a?a(r):"bg-surface-1 hover:bg-surface-3"} ${u?"cursor-pointer":""}`,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-expanded":c?o:void 0,onClick:()=>{c&&b(o?null:l),d?.(r)},onKeyDown:u?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c&&b(o?null:l),d?.(r))}:void 0,children:t.getVisibleCells().map(e=>n.jsx("td",{className:"h-9 px-sp-4 py-sp-2",children:(0,i.ie)(e.column.columnDef.cell,e.getContext())},e.id))}),c&&o&&n.jsx("tr",{children:n.jsx("td",{colSpan:e.length,className:"bg-surface-0 px-sp-5 py-sp-4",children:c(r)})})]},t.id)})})]})})]})]})}},446:(e,t,r)=>{r.d(t,{v:()=>s});var n=r(5023);function s({command:e}){return(0,n.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:[n.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:n.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"})}),n.jsx("h3",{className:"mb-2 text-heading font-medium text-text-primary",children:"Data not yet generated"}),n.jsx("p",{className:"mb-4 text-body text-text-secondary",children:"Run the following command to generate this data:"}),n.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)=>{r.d(t,{ki:()=>f,ZN:()=>m,J1:()=>p,gn:()=>c,ws:()=>u,V9:()=>h,au:()=>x});var n=r(7561),s=r.n(n),i=r(9411),l=r.n(i);let o=[".hex",".solaudit","solaudit-output"];function a(e){return e.replace(/\\/g,"/")}function d(){try{let e=function(e=process.cwd()){let t=l().resolve(e);for(;;){let e=function(e){for(let t of[...o.map(t=>l().join(e,t,"config.json")),l().join(e,"config.json")])if(s().existsSync(t))return a(t);return null}(t);if(e)return a(l().dirname(e));let r=l().dirname(t);if(r===t)return null;t=r}}(process.cwd());if(e)return e}catch{}return l().join(process.cwd(),".hex")}function c(e){try{let t=l().join(d(),e),r=s().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}function u(e){try{let t=l().join(d(),e);return s().readFileSync(t,"utf-8")}catch{return null}}function x(e,t){let r=l().join(d(),e);s().writeFileSync(r,JSON.stringify(t,null,2),"utf-8")}function f(e){try{let t=l().join(d(),e);return s().existsSync(t)}catch{return!1}}function m(){return d()}function p(e){try{let t=l().join(d(),e);if(!s().existsSync(t))return[];return s().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function h(e){try{let t=l().join(d(),e),r=s().readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}},2950:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var n=r(1645);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,n.fillMetadataSegment)(".",e.params,"icon.svg")+"?83fa4bf1ef0d214d"}]}};
@@ -1 +1 @@
1
- exports.id=431,exports.ids=[431],exports.modules={6235:(e,t,r)=>{Promise.resolve().then(r.bind(r,9915)),Promise.resolve().then(r.bind(r,7918)),Promise.resolve().then(r.bind(r,1388))},1991:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3817,23)),Promise.resolve().then(r.t.bind(r,9323,23)),Promise.resolve().then(r.t.bind(r,2204,23)),Promise.resolve().then(r.t.bind(r,820,23)),Promise.resolve().then(r.t.bind(r,5915,23)),Promise.resolve().then(r.t.bind(r,1611,23))},9915:(e,t,r)=>{"use strict";r.d(t,{CommandPalette:()=>i});var n=r(9899),a=r(5507),s=r(6153);let o=r(7918).p.flatMap(e=>e.items.map(t=>({href:t.href,label:`${e.label} / ${t.label}`})));function i(){let[e,t]=(0,a.useState)(!1),[r,i]=(0,a.useState)(""),[l,d]=(0,a.useState)(0),c=(0,a.useRef)(null),h=(0,s.useRouter)(),u=r.trim()?o.filter(e=>e.label.toLowerCase().includes(r.toLowerCase())||e.href.includes(r.toLowerCase())):o,x=e=>{h.push(e),t(!1),i("")};return e?n.jsx("div",{className:"fixed inset-0 z-[9000] flex items-start justify-center px-4 pt-[12vh]",style:{background:"var(--overlay-bg)"},onClick:()=>t(!1),children:(0,n.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Quick navigation",className:"w-full max-w-lg rounded-lg border border-border-default bg-surface-1 shadow-lg",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center border-b border-border-default px-4 py-3 gap-2",children:[n.jsx("span",{className:"text-accent text-body font-medium shrink-0","aria-hidden":"true",children:">"}),n.jsx("input",{ref:c,type:"text",value:r,onChange:e=>i(e.target.value),placeholder:"search pages...","aria-label":"Search pages",className:"flex-1 bg-transparent text-body text-text-primary placeholder-text-tertiary outline-none",onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),d(e=>Math.min(e+1,u.length-1))):"ArrowUp"===e.key?(e.preventDefault(),d(e=>Math.max(e-1,0))):"Enter"===e.key&&u[l]?x(u[l].href):"Tab"===e.key&&e.preventDefault()}}),n.jsx("kbd",{className:"shrink-0 border border-border-default px-1.5 py-0.5 text-caption text-text-tertiary",style:{borderRadius:"var(--radius-sm)"},children:"ESC"})]}),n.jsx("div",{className:"max-h-72 overflow-y-auto py-1",children:0===u.length?n.jsx("div",{className:"px-4 py-3 text-body text-text-tertiary",children:"no results"}):u.map((e,t)=>(0,n.jsxs)("button",{type:"button",className:`flex w-full items-center gap-3 px-4 py-2.5 text-left text-body focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-accent ${t===l?"bg-accent-subtle text-accent":"text-text-secondary hover:bg-surface-2 hover:text-text-primary"}`,onClick:()=>x(e.href),onMouseEnter:()=>d(t),children:[n.jsx("span",{className:"text-text-tertiary text-caption shrink-0",children:t===l?">":" "}),n.jsx("span",{children:e.label}),n.jsx("span",{className:"ml-auto text-caption text-text-tertiary shrink-0",children:e.href})]},e.href))})]})}):null}},7918:(e,t,r)=>{"use strict";r.d(t,{DashboardLayout:()=>p,p:()=>x});var n=r(9899),a=r(4175),s=r(6153),o=r(1388),i=r(5507);function l(e,t){let r=Math.round((t.getTime()-e.getTime())/1e3);return r<5?"just now":r<60?`${r}s ago`:r<3600?`${Math.round(r/60)}m ago`:`${Math.round(r/3600)}h ago`}function d(){(0,s.useRouter)();let[e,t]=(0,i.useState)(()=>new Date),[r,a]=(0,i.useState)(!1),[o,d]=(0,i.useState)(()=>new Date),[c,h]=(0,i.useState)(null);(0,i.useRef)(null);let u=r?`Updated ${l(e,o)}`:"Reconnecting…";return(0,n.jsxs)("div",{className:"px-3 py-1 text-caption text-text-tertiary","aria-live":"polite",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",title:`Last refresh ${e.toLocaleTimeString()}${r?"":" — watcher disconnected"}`,children:[n.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${r?"bg-[var(--success)]":"bg-[var(--medium)]"}`,"aria-hidden":"true"}),n.jsx("span",{children:u})]}),c&&(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-2",title:`GitHub sync with ${c.repo} at ${new Date(c.last_synced_at).toLocaleTimeString()}`,children:[n.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":"true"}),(0,n.jsxs)("span",{children:["GitHub ",l(new Date(c.last_synced_at),o)]})]})]})}function c(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}function h(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})})}function u(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"})})}let x=[{label:"Recon",items:[{href:"/",label:"Home",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955a1.126 1.126 0 0 1 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})})}},{href:"/progress",label:"Progress",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15a2.25 2.25 0 0 1 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})})}},{href:"/stats",label:"Stats",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}}]},{label:"Analysis",items:[{href:"/access",label:"Access Control",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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:"/functions",label:"Functions",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})}},{href:"/calls",label:"Ext Calls",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}}]},{label:"Reasoning",items:[{href:"/conformance",label:"Spec Conformance",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375"})})}}]},{label:"Visual",items:[{href:"/diagram",label:"Diagram",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}},{href:"/flows",label:"Flows",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5"})})}}]},{label:"Issues",items:[{href:"/issues",label:"Board",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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:"/overleaf",label:"Overleaf",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})}}]}];function m(){let{theme:e,setTheme:t}=(0,o.F)(),[r,a]=(0,i.useState)(!1);return r?(0,n.jsxs)("button",{type:"button",onClick:()=>t("dark"===e?"light":"dark"),"aria-label":`Switch to ${"dark"===e?"light":"dark"} mode`,className:"flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-body text-text-secondary hover:bg-surface-2 hover:text-text-primary",children:[n.jsx("light"===e?h:u,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{children:"light"===e?"Light":"Dark"})]}):n.jsx("div",{className:"h-9"})}function p({children:e}){let t=(0,s.usePathname)(),[r,o]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:"min-h-screen",children:[n.jsx("button",{type:"button","aria-label":"Toggle navigation",onClick:()=>o(!r),className:"fixed left-3 top-3 z-[60] flex h-10 w-10 items-center justify-center rounded-md bg-surface-1 border border-border-default text-text-secondary hover:text-text-primary md:hidden",children:n.jsx(c,{className:"h-5 w-5"})}),r&&n.jsx("div",{className:"fixed inset-0 z-40 md:hidden",style:{background:"var(--overlay-bg)"},onClick:()=>o(!1)}),(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:`fixed left-0 top-0 z-50 flex h-screen w-[220px] flex-col border-r border-border-subtle bg-surface-1 transition-transform duration-200 ${r?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[n.jsx("div",{className:"px-5 pb-4 pt-6",children:(0,n.jsxs)("div",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-title font-semibold text-text-primary",children:"Hex"}),n.jsx("span",{className:"text-caption text-text-tertiary",children:"v0.5.0"})]})}),n.jsx("div",{className:"flex-1 overflow-y-auto px-3 pb-4",children:x.map(e=>(0,n.jsxs)("div",{className:"mt-6 first:mt-0",children:[n.jsx("div",{className:"mb-1.5 px-3 text-caption font-medium text-text-tertiary",children:e.label}),e.items.map(e=>{let r=t===e.href;return(0,n.jsxs)(a.default,{href:e.href,"aria-current":r?"page":void 0,className:`group flex items-center gap-2.5 rounded-md px-3 py-2 text-body ${r?"bg-accent-subtle text-accent font-medium":"text-text-secondary hover:bg-surface-2 hover:text-text-primary"}`,children:[n.jsx(e.icon,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{children:e.label})]},e.href)})]},e.label))}),(0,n.jsxs)("div",{className:"border-t border-border-subtle px-3 py-3 space-y-1",children:[n.jsx(d,{}),n.jsx(m,{}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1 text-caption text-text-tertiary",children:[n.jsx("kbd",{className:"rounded border border-border-default bg-surface-2 px-1.5 py-0.5 text-[11px]",children:"⌘K"}),n.jsx("span",{children:"Quick nav"})]})]})]}),n.jsx("main",{className:"min-h-screen bg-surface-0 p-6 pt-16 md:ml-[220px] md:pt-6",children:n.jsx("div",{className:"mx-auto max-w-6xl",children:e})})]})}},8116:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j,metadata:()=>v});var n=r(5023),a=r(2769),s=r.n(a),o=r(876),i=r.n(o),l=r(7305),d=r(2772);let c=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx`),{__esModule:h,$$typeof:u}=c;c.default,(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx#NAV_GROUPS`);let x=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx#DashboardLayout`),m=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/CommandPalette.tsx`),{__esModule:p,$$typeof:f}=m;m.default;let b=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/CommandPalette.tsx#CommandPalette`);r(642);let v={title:"Hex",description:"Local dashboard for Solidity smart contract audits"};function j({children:e}){return n.jsx("html",{lang:"en",suppressHydrationWarning:!0,children:n.jsx("body",{className:`${s().variable} ${i().variable} min-h-screen bg-surface-0 text-text-primary font-sans`,children:(0,n.jsxs)(l.f,{attribute:"data-theme",defaultTheme:"dark",enableSystem:!1,children:[n.jsx(b,{}),n.jsx(x,{children:e})]})})})}},642:()=>{}};
1
+ exports.id=530,exports.ids=[530],exports.modules={6235:(e,t,r)=>{Promise.resolve().then(r.bind(r,9915)),Promise.resolve().then(r.bind(r,7918)),Promise.resolve().then(r.bind(r,1388))},1991:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3817,23)),Promise.resolve().then(r.t.bind(r,9323,23)),Promise.resolve().then(r.t.bind(r,2204,23)),Promise.resolve().then(r.t.bind(r,820,23)),Promise.resolve().then(r.t.bind(r,5915,23)),Promise.resolve().then(r.t.bind(r,1611,23))},9915:(e,t,r)=>{"use strict";r.d(t,{CommandPalette:()=>i});var n=r(9899),a=r(5507),s=r(6153);let o=r(7918).p.flatMap(e=>e.items.map(t=>({href:t.href,label:`${e.label} / ${t.label}`})));function i(){let[e,t]=(0,a.useState)(!1),[r,i]=(0,a.useState)(""),[l,d]=(0,a.useState)(0),c=(0,a.useRef)(null),h=(0,s.useRouter)(),u=r.trim()?o.filter(e=>e.label.toLowerCase().includes(r.toLowerCase())||e.href.includes(r.toLowerCase())):o,x=e=>{h.push(e),t(!1),i("")};return e?n.jsx("div",{className:"fixed inset-0 z-[9000] flex items-start justify-center px-4 pt-[12vh]",style:{background:"var(--overlay-bg)"},onClick:()=>t(!1),children:(0,n.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Quick navigation",className:"w-full max-w-lg rounded-lg border border-border-default bg-surface-1 shadow-lg",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center border-b border-border-default px-4 py-3 gap-2",children:[n.jsx("span",{className:"text-accent text-body font-medium shrink-0","aria-hidden":"true",children:">"}),n.jsx("input",{ref:c,type:"text",value:r,onChange:e=>i(e.target.value),placeholder:"search pages...","aria-label":"Search pages",className:"flex-1 bg-transparent text-body text-text-primary placeholder-text-tertiary outline-none",onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),d(e=>Math.min(e+1,u.length-1))):"ArrowUp"===e.key?(e.preventDefault(),d(e=>Math.max(e-1,0))):"Enter"===e.key&&u[l]?x(u[l].href):"Tab"===e.key&&e.preventDefault()}}),n.jsx("kbd",{className:"shrink-0 border border-border-default px-1.5 py-0.5 text-caption text-text-tertiary",style:{borderRadius:"var(--radius-sm)"},children:"ESC"})]}),n.jsx("div",{className:"max-h-72 overflow-y-auto py-1",children:0===u.length?n.jsx("div",{className:"px-4 py-3 text-body text-text-tertiary",children:"no results"}):u.map((e,t)=>(0,n.jsxs)("button",{type:"button",className:`flex w-full items-center gap-3 px-4 py-2.5 text-left text-body focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-accent ${t===l?"bg-accent-subtle text-accent":"text-text-secondary hover:bg-surface-2 hover:text-text-primary"}`,onClick:()=>x(e.href),onMouseEnter:()=>d(t),children:[n.jsx("span",{className:"text-text-tertiary text-caption shrink-0",children:t===l?">":" "}),n.jsx("span",{children:e.label}),n.jsx("span",{className:"ml-auto text-caption text-text-tertiary shrink-0",children:e.href})]},e.href))})]})}):null}},7918:(e,t,r)=>{"use strict";r.d(t,{DashboardLayout:()=>p,p:()=>x});var n=r(9899),a=r(4175),s=r(6153),o=r(1388),i=r(5507);function l(e,t){let r=Math.round((t.getTime()-e.getTime())/1e3);return r<5?"just now":r<60?`${r}s ago`:r<3600?`${Math.round(r/60)}m ago`:`${Math.round(r/3600)}h ago`}function d(){(0,s.useRouter)();let[e,t]=(0,i.useState)(()=>new Date),[r,a]=(0,i.useState)(!1),[o,d]=(0,i.useState)(()=>new Date),[c,h]=(0,i.useState)(null);(0,i.useRef)(null);let u=r?`Updated ${l(e,o)}`:"Reconnecting…";return(0,n.jsxs)("div",{className:"px-3 py-1 text-caption text-text-tertiary","aria-live":"polite",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",title:`Last refresh ${e.toLocaleTimeString()}${r?"":" — watcher disconnected"}`,children:[n.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${r?"bg-[var(--success)]":"bg-[var(--medium)]"}`,"aria-hidden":"true"}),n.jsx("span",{children:u})]}),c&&(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-2",title:`GitHub sync with ${c.repo} at ${new Date(c.last_synced_at).toLocaleTimeString()}`,children:[n.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":"true"}),(0,n.jsxs)("span",{children:["GitHub ",l(new Date(c.last_synced_at),o)]})]})]})}function c(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}function h(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})})}function u(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"})})}let x=[{label:"Recon",items:[{href:"/",label:"Home",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955a1.126 1.126 0 0 1 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})})}},{href:"/progress",label:"Progress",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15a2.25 2.25 0 0 1 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})})}},{href:"/stats",label:"Stats",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}}]},{label:"Analysis",items:[{href:"/access",label:"Access Control",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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:"/functions",label:"Functions",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})}},{href:"/calls",label:"Ext Calls",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}}]},{label:"Reasoning",items:[{href:"/conformance",label:"Spec Conformance",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375"})})}}]},{label:"Visual",items:[{href:"/diagram",label:"Diagram",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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"})})}},{href:"/flows",label:"Flows",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5"})})}}]},{label:"Issues",items:[{href:"/issues",label:"Board",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.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:"/overleaf",label:"Overleaf",icon:function(e){return n.jsx("svg",{...e,"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})}}]}];function m(){let{theme:e,setTheme:t}=(0,o.F)(),[r,a]=(0,i.useState)(!1);return r?(0,n.jsxs)("button",{type:"button",onClick:()=>t("dark"===e?"light":"dark"),"aria-label":`Switch to ${"dark"===e?"light":"dark"} mode`,className:"flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-body text-text-secondary hover:bg-surface-2 hover:text-text-primary",children:[n.jsx("light"===e?h:u,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{children:"light"===e?"Light":"Dark"})]}):n.jsx("div",{className:"h-9"})}function p({children:e,version:t}){let r=(0,s.usePathname)(),[o,l]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:"min-h-screen",children:[n.jsx("button",{type:"button","aria-label":"Toggle navigation",onClick:()=>l(!o),className:"fixed left-3 top-3 z-[60] flex h-10 w-10 items-center justify-center rounded-md bg-surface-1 border border-border-default text-text-secondary hover:text-text-primary md:hidden",children:n.jsx(c,{className:"h-5 w-5"})}),o&&n.jsx("div",{className:"fixed inset-0 z-40 md:hidden",style:{background:"var(--overlay-bg)"},onClick:()=>l(!1)}),(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:`fixed left-0 top-0 z-50 flex h-screen w-[220px] flex-col border-r border-border-subtle bg-surface-1 transition-transform duration-200 ${o?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[n.jsx("div",{className:"px-5 pb-4 pt-6",children:(0,n.jsxs)("div",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-title font-semibold text-text-primary",children:"Hex"}),(0,n.jsxs)("span",{className:"text-caption text-text-tertiary",children:["v",t]})]})}),n.jsx("div",{className:"flex-1 overflow-y-auto px-3 pb-4",children:x.map(e=>(0,n.jsxs)("div",{className:"mt-6 first:mt-0",children:[n.jsx("div",{className:"mb-1.5 px-3 text-caption font-medium text-text-tertiary",children:e.label}),e.items.map(e=>{let t=r===e.href;return(0,n.jsxs)(a.default,{href:e.href,"aria-current":t?"page":void 0,className:`group flex items-center gap-2.5 rounded-md px-3 py-2 text-body ${t?"bg-accent-subtle text-accent font-medium":"text-text-secondary hover:bg-surface-2 hover:text-text-primary"}`,children:[n.jsx(e.icon,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{children:e.label})]},e.href)})]},e.label))}),(0,n.jsxs)("div",{className:"border-t border-border-subtle px-3 py-3 space-y-1",children:[n.jsx(d,{}),n.jsx(m,{}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1 text-caption text-text-tertiary",children:[n.jsx("kbd",{className:"rounded border border-border-default bg-surface-2 px-1.5 py-0.5 text-[11px]",children:"⌘K"}),n.jsx("span",{children:"Quick nav"})]})]})]}),n.jsx("main",{className:"min-h-screen bg-surface-0 p-6 pt-16 md:ml-[220px] md:pt-6",children:n.jsx("div",{className:"mx-auto max-w-6xl",children:e})})]})}},819:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k,metadata:()=>j});var n=r(5023),a=r(2769),s=r.n(a),o=r(876),i=r.n(o),l=r(7305),d=r(2772);let c=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx`),{__esModule:h,$$typeof:u}=c;c.default,(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx#NAV_GROUPS`);let x=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/DashboardLayout.tsx#DashboardLayout`),m=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/CommandPalette.tsx`),{__esModule:p,$$typeof:f}=m;m.default;let b=(0,d.createProxy)(String.raw`/home/dx/Work/hex/dashboard/components/CommandPalette.tsx#CommandPalette`),v={i8:"0.5.2"};r(642);let j={title:"Hex",description:"Local dashboard for Solidity smart contract audits"};function k({children:e}){return n.jsx("html",{lang:"en",suppressHydrationWarning:!0,children:n.jsx("body",{className:`${s().variable} ${i().variable} min-h-screen bg-surface-0 text-text-primary font-sans`,children:(0,n.jsxs)(l.f,{attribute:"data-theme",defaultTheme:"dark",enableSystem:!1,children:[n.jsx(b,{}),n.jsx(x,{version:v.i8,children:e})]})})})}},642:()=>{}};
@@ -1 +1 @@
1
- {"version":1,"functions":{"/api/flows":{},"/api/issues/[id]":{},"/api/github-status":{},"/api/issues/[id]/move":{},"/api/watch":{},"/calls":{},"/access":{},"/conformance":{},"/overleaf":{},"/functions":{},"/stats":{},"/":{},"/progress":{},"/issues":{}}}
1
+ {"version":1,"functions":{"/api/github-status":{},"/api/flows":{},"/api/issues/[id]":{},"/api/issues/[id]/move":{},"/api/watch":{},"/calls":{},"/access":{},"/overleaf":{},"/functions":{},"/progress":{},"/conformance":{},"/stats":{},"/":{},"/issues":{}}}