hex-audit 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +137 -77
- package/DEMO.md +40 -117
- package/README.md +200 -402
- package/dashboard/.next/BUILD_ID +1 -1
- package/dashboard/.next/app-build-manifest.json +56 -101
- package/dashboard/.next/app-path-routes-manifest.json +1 -1
- package/dashboard/.next/build-manifest.json +9 -9
- package/dashboard/.next/next-server.js.nft.json +1 -1
- package/dashboard/.next/prerender-manifest.json +1 -1
- package/dashboard/.next/react-loadable-manifest.json +436 -15
- package/dashboard/.next/routes-manifest.json +1 -1
- package/dashboard/.next/server/app/_not-found/page.js +1 -1
- package/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/api/code/route.js +1 -1
- package/dashboard/.next/server/app/api/code/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/comments/route.js +1 -0
- package/dashboard/.next/server/app/api/comments/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/export/route.js +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/export/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/resolve/route.js +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/resolve/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/route.js +1 -0
- package/dashboard/.next/server/app/api/diagrams/[name]/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/figures/[name]/route.js +1 -0
- package/dashboard/.next/server/app/api/figures/[name]/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/focus/route.js +1 -0
- package/dashboard/.next/server/app/api/focus/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/github-status/route.js +1 -1
- package/dashboard/.next/server/app/api/invariants/[id]/route.js +1 -0
- package/dashboard/.next/server/app/api/invariants/[id]/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/issues/[id]/revert-auto/route.js +1 -0
- package/dashboard/.next/server/app/api/issues/[id]/revert-auto/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/nav/route.js +1 -0
- package/dashboard/.next/server/app/api/nav/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/notes/done/route.js +1 -1
- package/dashboard/.next/server/app/api/notes/done/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/notes/lead/route.js +1 -1
- package/dashboard/.next/server/app/api/notes/lead/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/notes/question/route.js +1 -1
- package/dashboard/.next/server/app/api/notes/question/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/notes/record/route.js +3 -3
- package/dashboard/.next/server/app/api/notes/route.js +2 -2
- package/dashboard/.next/server/app/api/palette/route.js +1 -0
- package/dashboard/.next/server/app/api/palette/route.js.nft.json +1 -0
- package/dashboard/.next/server/app/api/progress/route.js +1 -1
- package/dashboard/.next/server/app/api/progress/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/watch/route.js +2 -2
- package/dashboard/.next/server/app/api/watch/route.js.nft.json +1 -1
- package/dashboard/.next/server/app/api/xref/route.js +1 -0
- package/dashboard/.next/server/app/changes/page.js +1 -20
- package/dashboard/.next/server/app/changes/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/changes/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/excalidraw-assets/[...path]/route.js +1 -0
- package/dashboard/.next/server/app/issues/page.js +5 -28
- package/dashboard/.next/server/app/issues/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/issues/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/model/page.js +1 -0
- package/dashboard/.next/server/app/{calls → model}/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/model/page_client-reference-manifest.js +1 -0
- package/dashboard/.next/server/app/page.js +1 -20
- package/dashboard/.next/server/app/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/report/page.js +1 -1
- package/dashboard/.next/server/app/report/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/report/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/review/page.js +1 -0
- package/dashboard/.next/server/app/{access → review}/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/review/page_client-reference-manifest.js +1 -0
- package/dashboard/.next/server/app-paths-manifest.json +19 -16
- package/dashboard/.next/server/chunks/310.js +4 -0
- package/dashboard/.next/server/chunks/370.js +1 -0
- package/dashboard/.next/server/chunks/42.js +1 -1
- package/dashboard/.next/server/chunks/624.js +14 -0
- package/dashboard/.next/server/chunks/645.js +1 -1
- package/dashboard/.next/server/chunks/649.js +1 -1
- package/dashboard/.next/server/chunks/653.js +1 -0
- package/dashboard/.next/server/functions-config-manifest.json +1 -1
- package/dashboard/.next/server/middleware-build-manifest.js +1 -1
- package/dashboard/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/dashboard/.next/server/pages/500.html +1 -1
- package/dashboard/.next/server/pages/_error.js +1 -1
- package/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dashboard/.next/static/chunks/0bbe10ee.8e7ffa06d2170dfe.js +84 -0
- package/dashboard/.next/static/chunks/1026.0ef689a305302427.js +1 -0
- package/dashboard/.next/static/chunks/1164.34eb76767ebea46f.js +8 -0
- package/dashboard/.next/static/chunks/119.a9a79633900a235f.js +5 -0
- package/dashboard/.next/static/chunks/1291.6c486c9b1d4b1b3a.js +1 -0
- package/dashboard/.next/static/chunks/139.4691848fc5a46253.js +10 -0
- package/dashboard/.next/static/chunks/145.1bf74fecdb4022e3.js +11 -0
- package/dashboard/.next/static/chunks/1517.8e7075f78e22b3a0.js +8 -0
- package/dashboard/.next/static/chunks/165.6f174060a0ce2db4.js +6 -0
- package/dashboard/.next/static/chunks/1741.5c370b7702d2eb40.js +8 -0
- package/dashboard/.next/static/chunks/1e36816c.5748c83adc8a6bd6.js +108 -0
- package/dashboard/.next/static/chunks/2061.eab75b3c1dfa068a.js +1 -0
- package/dashboard/.next/static/chunks/2148.3ce718f62d1b2f7c.js +10 -0
- package/dashboard/.next/static/chunks/217-1d5b680ffd10e3f9.js +1 -0
- package/dashboard/.next/static/chunks/2208.fb884379aa3ae968.js +1 -0
- package/dashboard/.next/static/chunks/2276.112c7855333fca5f.js +6 -0
- package/dashboard/.next/static/chunks/2374-8c6f137938f8518a.js +1 -0
- package/dashboard/.next/static/chunks/2445.18a86507d2996b95.js +1 -0
- package/dashboard/.next/static/chunks/2712.15dd8577973baf22.js +10 -0
- package/dashboard/.next/static/chunks/2759.533dec5317e0a1d1.js +1 -0
- package/dashboard/.next/static/chunks/2812.62b213bef580b69a.js +1 -0
- package/dashboard/.next/static/chunks/2895.bb57cacb7aaf42a1.js +9 -0
- package/dashboard/.next/static/chunks/2972.e5a9251b538dcf19.js +9 -0
- package/dashboard/.next/static/chunks/3206.8d9a10db2b04b93f.js +1 -0
- package/dashboard/.next/static/chunks/3485.36766504793b7237.js +9 -0
- package/dashboard/.next/static/chunks/3725.de9376dc994735d4.js +9 -0
- package/dashboard/.next/static/chunks/3774.1df377928e8387f7.js +9 -0
- package/dashboard/.next/static/chunks/3963.39d72b3875dfe2e9.js +13 -0
- package/dashboard/.next/static/chunks/4013.73884b23bfaebdde.js +11 -0
- package/dashboard/.next/static/chunks/4117.278aff1fa23fd36e.js +6 -0
- package/dashboard/.next/static/chunks/4210.cc8594110017c579.js +11 -0
- package/dashboard/.next/static/chunks/4282.28485875540886cc.js +7 -0
- package/dashboard/.next/static/chunks/4318.a2f469a88d88f6d0.js +8 -0
- package/dashboard/.next/static/chunks/4363.8999a6e727c48003.js +1 -0
- package/dashboard/.next/static/chunks/4641.e03d118fffebd580.js +5 -0
- package/dashboard/.next/static/chunks/483.a910dab7734a1074.js +8 -0
- package/dashboard/.next/static/chunks/4926.76693f542e9cc062.js +6 -0
- package/dashboard/.next/static/chunks/4938.03f6d04dabf38745.js +10 -0
- package/dashboard/.next/static/chunks/5112.0757c2b0c285e62e.js +1 -0
- package/dashboard/.next/static/chunks/5199.c83ea7efb0eec705.js +11 -0
- package/dashboard/.next/static/chunks/530.849957a8907eb288.js +1 -0
- package/dashboard/.next/static/chunks/5424.4e8ca0711a32bccf.js +7 -0
- package/dashboard/.next/static/chunks/55.a593a78be9714679.js +1 -0
- package/dashboard/.next/static/chunks/5535.6cd0bd8d368d8902.js +4 -0
- package/dashboard/.next/static/chunks/5626.7d4e93d7acbeffc9.js +10 -0
- package/dashboard/.next/static/chunks/5775.a0d7c1b1e89b9a93.js +9 -0
- package/dashboard/.next/static/chunks/6118.266956b3333b1d7a.js +9 -0
- package/dashboard/.next/static/chunks/6121.a2e6d93720b1205e.js +77 -0
- package/dashboard/.next/static/chunks/6853.d3ad43614e8ca0ab.js +1 -0
- package/dashboard/.next/static/chunks/6951.02a3a158d02158c9.js +5 -0
- package/dashboard/.next/static/chunks/6970.013f24568c87d918.js +11 -0
- package/dashboard/.next/static/chunks/7013.39d41e82b37be63b.js +9 -0
- package/dashboard/.next/static/chunks/7107.1c5412197912b8ed.js +8 -0
- package/dashboard/.next/static/chunks/7508.dd60e2d06d149f5f.js +9 -0
- package/dashboard/.next/static/chunks/7524.0fde4c61553d1491.js +3 -0
- package/dashboard/.next/static/chunks/7834-47f318a04a05688f.js +1 -0
- package/dashboard/.next/static/chunks/8317.d0b3eddef4cae0d5.js +1 -0
- package/dashboard/.next/static/chunks/838.2b2aa006519ba44c.js +10 -0
- package/dashboard/.next/static/chunks/8398.924fd8f4c83417c0.js +7 -0
- package/dashboard/.next/static/chunks/8428b36f.8ac4e67061c01307.js +34 -0
- package/dashboard/.next/static/chunks/8514.85ccbbea8ab21d04.js +5 -0
- package/dashboard/.next/static/chunks/8538.5f7ebe76c4b63162.js +1 -0
- package/dashboard/.next/static/chunks/8687.9406baa8b5601fd0.js +1 -0
- package/dashboard/.next/static/chunks/8721.47346e2cb6412376.js +10 -0
- package/dashboard/.next/static/chunks/8770.4f544bd1a6f03a62.js +8 -0
- package/dashboard/.next/static/chunks/8812.3d96fd54dba566f8.js +9 -0
- package/dashboard/.next/static/chunks/8962.d22aa67a97970dd8.js +1 -0
- package/dashboard/.next/static/chunks/8986.b327224b83f4399a.js +5 -0
- package/dashboard/.next/static/chunks/9271.5f66c19a8ee1ff36.js +10 -0
- package/dashboard/.next/static/chunks/9282.f8d01442bab4c0da.js +2 -0
- package/dashboard/.next/static/chunks/9366.0ec24a0791b9b00f.js +1 -0
- package/dashboard/.next/static/chunks/9707.5cd7d2ee933a4af5.js +6 -0
- package/dashboard/.next/static/chunks/9716.15fffc0b0038601d.js +4 -0
- package/dashboard/.next/static/chunks/9791.e3b3f5a367f63c8a.js +1 -0
- package/dashboard/.next/static/chunks/9820.8c1efad5260e8137.js +1 -0
- package/dashboard/.next/static/chunks/985.50150e9eaa4bde33.js +39 -0
- package/dashboard/.next/static/chunks/997.56901b86e1b8a87b.js +8 -0
- package/dashboard/.next/static/chunks/app/changes/page-f8a860034221cad4.js +1 -0
- package/dashboard/.next/static/chunks/app/issues/page-da4da93188c414a6.js +1 -0
- package/dashboard/.next/static/chunks/app/layout-27a9da4610423c1e.js +1 -0
- package/dashboard/.next/static/chunks/app/model/page-9680e22fdd6ddb81.js +1 -0
- package/dashboard/.next/static/chunks/app/page-0e67750d99fb2836.js +1 -0
- package/dashboard/.next/static/chunks/app/report/page-b56b1db9b9dcf2b6.js +1 -0
- package/dashboard/.next/static/chunks/app/review/page-3ef69f0e0badd333.js +1 -0
- package/dashboard/.next/static/chunks/c75e29e3.d91220f782934d80.js +1 -0
- package/dashboard/.next/static/chunks/{main-cc3a889b25e9aa68.js → main-9c95a7ffedc7afb4.js} +1 -1
- package/dashboard/.next/static/chunks/webpack-6da70e4f9fcf1799.js +1 -0
- package/dashboard/.next/static/css/ceafd91ca8dd753d.css +3 -0
- package/dashboard/.next/static/css/e4aad1f9c715b79a.css +1 -0
- package/dashboard/.next/static/media/Assistant-Bold.c8f39f24.woff2 +0 -0
- package/dashboard/.next/static/media/Assistant-Medium.1e75d8e6.woff2 +0 -0
- package/dashboard/.next/static/media/Assistant-Regular.7acbabb8.woff2 +0 -0
- package/dashboard/.next/static/media/Assistant-SemiBold.167acbf8.woff2 +0 -0
- package/dashboard/app/api/code/route.ts +26 -20
- package/dashboard/app/api/comments/route.ts +158 -0
- package/dashboard/app/api/diagrams/[name]/export/route.ts +26 -0
- package/dashboard/app/api/diagrams/[name]/resolve/route.ts +25 -0
- package/dashboard/app/api/diagrams/[name]/route.ts +37 -0
- package/dashboard/app/api/figures/[name]/route.ts +15 -0
- package/dashboard/app/api/focus/route.ts +35 -0
- package/dashboard/app/api/invariants/[id]/route.ts +35 -0
- package/dashboard/app/api/issues/[id]/revert-auto/route.ts +18 -0
- package/dashboard/app/api/nav/route.ts +120 -0
- package/dashboard/app/api/palette/route.ts +68 -0
- package/dashboard/app/api/progress/route.ts +54 -23
- package/dashboard/app/api/xref/route.ts +30 -0
- package/dashboard/app/changes/ChangesClient.tsx +730 -356
- package/dashboard/app/changes/page.tsx +27 -19
- package/dashboard/app/excalidraw-assets/[...path]/route.ts +56 -0
- package/dashboard/app/globals.css +231 -77
- package/dashboard/app/issues/BoardClient.tsx +817 -0
- package/dashboard/app/issues/page.tsx +27 -272
- package/dashboard/app/layout.tsx +32 -17
- package/dashboard/app/model/ModelClient.tsx +1303 -0
- package/dashboard/app/model/page.tsx +98 -0
- package/dashboard/app/page.tsx +191 -277
- package/dashboard/app/report/ReportClient.tsx +147 -74
- package/dashboard/app/report/page.tsx +25 -14
- package/dashboard/app/review/ReviewClient.tsx +1180 -0
- package/dashboard/app/review/page.tsx +93 -0
- package/dashboard/components/AutoRefresh.tsx +22 -19
- package/dashboard/components/CodeComments.tsx +303 -0
- package/dashboard/components/CodeNav.tsx +523 -0
- package/dashboard/components/CodeReference.tsx +92 -99
- package/dashboard/components/CodeViewer.tsx +526 -0
- package/dashboard/components/CommandPalette.tsx +141 -66
- package/dashboard/components/DiagramCanvas.tsx +275 -0
- package/dashboard/components/DianeNote.tsx +244 -0
- package/dashboard/components/LiveStatus.tsx +30 -68
- package/dashboard/components/MarkdownRenderer.tsx +34 -32
- package/dashboard/components/RecordButton.tsx +132 -0
- package/dashboard/components/ui/Button.tsx +39 -0
- package/dashboard/components/ui/Chip.tsx +37 -0
- package/dashboard/components/ui/EmptyState.tsx +31 -0
- package/dashboard/components/ui/Icons.tsx +126 -0
- package/dashboard/components/ui/Inspector.tsx +122 -0
- package/dashboard/components/ui/Kbd.tsx +15 -0
- package/dashboard/components/ui/ListRow.tsx +92 -0
- package/dashboard/components/ui/LocalTime.tsx +14 -0
- package/dashboard/components/ui/ProgressRing.tsx +54 -0
- package/dashboard/components/ui/ResizeHandle.tsx +93 -0
- package/dashboard/components/ui/RiskMeter.tsx +27 -0
- package/dashboard/components/ui/SearchField.tsx +55 -0
- package/dashboard/components/ui/SegmentedControl.tsx +71 -0
- package/dashboard/components/ui/SeverityDot.tsx +57 -0
- package/dashboard/components/ui/Sidebar.tsx +236 -0
- package/dashboard/components/ui/SplitView.tsx +122 -0
- package/dashboard/components/ui/StateGlyph.tsx +66 -0
- package/dashboard/components/ui/Toast.tsx +91 -0
- package/dashboard/lib/api.ts +17 -0
- package/dashboard/lib/cn.ts +4 -0
- package/dashboard/lib/data.ts +2 -21
- package/dashboard/lib/finding-markdown.ts +1 -1
- package/dashboard/lib/focus.ts +42 -0
- package/dashboard/lib/hotkeys.ts +41 -0
- package/dashboard/lib/inline-markdown.test.ts +11 -0
- package/dashboard/lib/live.ts +32 -0
- package/dashboard/lib/pane-width.ts +36 -0
- package/dashboard/lib/server/board.ts +229 -0
- package/dashboard/lib/server/diagrams.ts +191 -0
- package/dashboard/lib/server/safe-path.ts +28 -0
- package/dashboard/lib/server/workspace.ts +113 -0
- package/dashboard/lib/server/xref.ts +42 -0
- package/dashboard/lib/solidity.test.ts +37 -0
- package/dashboard/lib/solidity.ts +191 -0
- package/dashboard/lib/source.ts +28 -0
- package/dashboard/lib/types.ts +164 -0
- package/dashboard/lib/url.ts +18 -0
- package/dashboard/lib/watcher.ts +31 -22
- package/dashboard/tailwind.config.ts +6 -3
- package/dist/analysis/code-model.d.ts.map +1 -1
- package/dist/analysis/code-model.js +4 -1
- package/dist/analysis/code-model.js.map +1 -1
- package/dist/analysis/diff.d.ts +12 -1
- package/dist/analysis/diff.d.ts.map +1 -1
- package/dist/analysis/diff.js +143 -0
- package/dist/analysis/diff.js.map +1 -1
- package/dist/commands/analyze.d.ts.map +1 -1
- package/dist/commands/analyze.js +17 -48
- package/dist/commands/analyze.js.map +1 -1
- package/dist/commands/claude.d.ts.map +1 -1
- package/dist/commands/claude.js +5 -0
- package/dist/commands/claude.js.map +1 -1
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +10 -2
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/diagram.d.ts +3 -0
- package/dist/commands/diagram.d.ts.map +1 -0
- package/dist/commands/diagram.js +71 -0
- package/dist/commands/diagram.js.map +1 -0
- package/dist/commands/diff.d.ts +4 -5
- package/dist/commands/diff.d.ts.map +1 -1
- package/dist/commands/diff.js +56 -17
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +5 -18
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/facts.d.ts +23 -0
- package/dist/commands/facts.d.ts.map +1 -0
- package/dist/commands/facts.js +121 -0
- package/dist/commands/facts.js.map +1 -0
- package/dist/commands/fix-review.d.ts +9 -0
- package/dist/commands/fix-review.d.ts.map +1 -0
- package/dist/commands/fix-review.js +367 -0
- package/dist/commands/fix-review.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +51 -47
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/issue.d.ts.map +1 -1
- package/dist/commands/issue.js +151 -2
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/mcp.d.ts +3 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +11 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/model.d.ts +4 -0
- package/dist/commands/model.d.ts.map +1 -0
- package/dist/commands/model.js +275 -0
- package/dist/commands/model.js.map +1 -0
- package/dist/commands/note.d.ts.map +1 -1
- package/dist/commands/note.js +31 -1
- package/dist/commands/note.js.map +1 -1
- package/dist/commands/review.d.ts +4 -0
- package/dist/commands/review.d.ts.map +1 -0
- package/dist/commands/review.js +164 -0
- package/dist/commands/review.js.map +1 -0
- package/dist/core/comments.d.ts +59 -0
- package/dist/core/comments.d.ts.map +1 -0
- package/dist/core/comments.js +263 -0
- package/dist/core/comments.js.map +1 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/dedup.d.ts +56 -0
- package/dist/core/dedup.d.ts.map +1 -0
- package/dist/core/dedup.js +208 -0
- package/dist/core/dedup.js.map +1 -0
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +0 -15
- package/dist/core/errors.js.map +1 -1
- package/dist/core/external-tools.d.ts +0 -14
- package/dist/core/external-tools.d.ts.map +1 -1
- package/dist/core/external-tools.js +2 -52
- package/dist/core/external-tools.js.map +1 -1
- package/dist/core/fix-review.d.ts +54 -0
- package/dist/core/fix-review.d.ts.map +1 -0
- package/dist/core/fix-review.js +98 -0
- package/dist/core/fix-review.js.map +1 -0
- package/dist/core/fuzz-sync.d.ts +93 -0
- package/dist/core/fuzz-sync.d.ts.map +1 -0
- package/dist/core/fuzz-sync.js +516 -0
- package/dist/core/fuzz-sync.js.map +1 -0
- package/dist/core/git.d.ts +7 -0
- package/dist/core/git.d.ts.map +1 -1
- package/dist/core/git.js +42 -0
- package/dist/core/git.js.map +1 -1
- package/dist/core/issues.d.ts +32 -1
- package/dist/core/issues.d.ts.map +1 -1
- package/dist/core/issues.js +135 -3
- package/dist/core/issues.js.map +1 -1
- package/dist/core/mcp-config.d.ts +12 -0
- package/dist/core/mcp-config.d.ts.map +1 -0
- package/dist/core/mcp-config.js +29 -0
- package/dist/core/mcp-config.js.map +1 -0
- package/dist/core/model.d.ts +38 -0
- package/dist/core/model.d.ts.map +1 -0
- package/dist/core/model.js +160 -0
- package/dist/core/model.js.map +1 -0
- package/dist/core/notes.d.ts +2 -0
- package/dist/core/notes.d.ts.map +1 -1
- package/dist/core/notes.js +13 -3
- package/dist/core/notes.js.map +1 -1
- package/dist/core/review.d.ts +47 -0
- package/dist/core/review.d.ts.map +1 -1
- package/dist/core/review.js +177 -1
- package/dist/core/review.js.map +1 -1
- package/dist/core/rules.d.ts +12 -0
- package/dist/core/rules.d.ts.map +1 -0
- package/dist/core/rules.js +66 -0
- package/dist/core/rules.js.map +1 -0
- package/dist/core/schema.d.ts +4817 -2245
- package/dist/core/schema.d.ts.map +1 -1
- package/dist/core/schema.js +452 -113
- package/dist/core/schema.js.map +1 -1
- package/dist/core/scope.d.ts +8 -0
- package/dist/core/scope.d.ts.map +1 -0
- package/dist/core/scope.js +18 -0
- package/dist/core/scope.js.map +1 -0
- package/dist/diagrams/build.d.ts +18 -0
- package/dist/diagrams/build.d.ts.map +1 -0
- package/dist/diagrams/build.js +135 -0
- package/dist/diagrams/build.js.map +1 -0
- package/dist/diagrams/excalidraw.d.ts +27 -0
- package/dist/diagrams/excalidraw.d.ts.map +1 -0
- package/dist/diagrams/excalidraw.js +219 -0
- package/dist/diagrams/excalidraw.js.map +1 -0
- package/dist/diagrams/layout.d.ts +48 -0
- package/dist/diagrams/layout.d.ts.map +1 -0
- package/dist/diagrams/layout.js +686 -0
- package/dist/diagrams/layout.js.map +1 -0
- package/dist/facts/build.d.ts +23 -0
- package/dist/facts/build.d.ts.map +1 -0
- package/dist/facts/build.js +112 -0
- package/dist/facts/build.js.map +1 -0
- package/dist/facts/extract.d.ts +53 -0
- package/dist/facts/extract.d.ts.map +1 -0
- package/dist/facts/extract.js +635 -0
- package/dist/facts/extract.js.map +1 -0
- package/dist/facts/fallback.d.ts +7 -0
- package/dist/facts/fallback.d.ts.map +1 -0
- package/dist/facts/fallback.js +156 -0
- package/dist/facts/fallback.js.map +1 -0
- package/dist/facts/implementations.d.ts +29 -0
- package/dist/facts/implementations.d.ts.map +1 -0
- package/dist/facts/implementations.js +43 -0
- package/dist/facts/implementations.js.map +1 -0
- package/dist/facts/query.d.ts +35 -0
- package/dist/facts/query.d.ts.map +1 -0
- package/dist/facts/query.js +157 -0
- package/dist/facts/query.js.map +1 -0
- package/dist/facts/xref.d.ts +53 -0
- package/dist/facts/xref.d.ts.map +1 -0
- package/dist/facts/xref.js +282 -0
- package/dist/facts/xref.js.map +1 -0
- package/dist/index.js +14 -16
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +400 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/skills/ai-audit/SKILL.md +16 -6
- package/dist/skills/ai-audit/UPSTREAM.md +9 -4
- package/dist/skills/ai-audit/references/hex-board.md +34 -46
- package/dist/skills/diane.md +26 -12
- package/dist/skills/fix-review.md +58 -0
- package/dist/skills/fuzz/LICENSE +21 -0
- package/dist/skills/fuzz/SKILL.md +655 -0
- package/dist/skills/fuzz/UPSTREAM.md +119 -0
- package/dist/skills/fuzz/agents/implementers/global-property-implementer.md +81 -0
- package/dist/skills/fuzz/agents/implementers/specific-property-implementer.md +121 -0
- package/dist/skills/fuzz/agents/invariant-discovery/adversarial-profit-maximizer.md +123 -0
- package/dist/skills/fuzz/agents/invariant-discovery/conservation-auditor.md +92 -0
- package/dist/skills/fuzz/agents/invariant-discovery/protocol-type-specialist.md +173 -0
- package/dist/skills/fuzz/agents/invariant-discovery/roundtrip-rounding-analyst.md +164 -0
- package/dist/skills/fuzz/agents/invariant-discovery/state-transition-mapper.md +92 -0
- package/dist/skills/fuzz/agents/invariant-discovery/synthesizer.md +261 -0
- package/dist/skills/fuzz/agents/protocol-analyzer.md +80 -0
- package/dist/skills/fuzz/agents/report-writer.md +135 -0
- package/dist/skills/fuzz/references/handler-patterns.md +222 -0
- package/dist/skills/fuzz/references/hex-invariants.md +102 -0
- package/dist/skills/fuzz/references/property-generation.md +149 -0
- package/dist/skills/fuzz/references/selection-policy.md +49 -0
- package/dist/skills/fuzz/references/setup-playbook.md +92 -0
- package/dist/skills/fuzz/references/template-map.md +121 -0
- package/dist/skills/fuzz/scripts/ensure_foundry.sh +125 -0
- package/dist/skills/fuzz/scripts/estimate_cost.js +157 -0
- package/dist/skills/fuzz/scripts/extract_abis.js +303 -0
- package/dist/skills/fuzz/scripts/fizz_sync.js +692 -0
- package/dist/skills/fuzz/scripts/generate_handlers.js +370 -0
- package/dist/skills/fuzz/scripts/generate_suite.js +254 -0
- package/dist/skills/fuzz/scripts/lib/log-viewer.js +332 -0
- package/dist/skills/fuzz/scripts/run_echidna.js +192 -0
- package/dist/skills/fuzz/scripts/run_medusa.js +329 -0
- package/dist/skills/fuzz/scripts/select_functions.js +637 -0
- package/dist/skills/fuzz/scripts/setup_fuzz_profile.sh +142 -0
- package/dist/skills/fuzz/templates/Actor.sol +63 -0
- package/dist/skills/fuzz/templates/Base.sol +121 -0
- package/dist/skills/fuzz/templates/FoundryTester.sol +29 -0
- package/dist/skills/fuzz/templates/FuzzTester.sol +11 -0
- package/dist/skills/fuzz/templates/Properties.sol +17 -0
- package/dist/skills/fuzz/templates/README.md +56 -0
- package/dist/skills/fuzz/templates/Snapshots.sol +26 -0
- package/dist/skills/fuzz/templates/echidna.yaml +18 -0
- package/dist/skills/fuzz/templates/handlers/Handlers.sol +13 -0
- package/dist/skills/fuzz/templates/medusa.json +93 -0
- package/dist/skills/fuzz/templates/utils/Clamp.sol +223 -0
- package/dist/skills/fuzz/templates/utils/DecimalPrinter.sol +63 -0
- package/dist/skills/fuzz/templates/utils/Deployer.sol +17 -0
- package/dist/skills/fuzz/templates/utils/EnumerableSet.sol +206 -0
- package/dist/skills/fuzz/templates/utils/Hevm.sol +62 -0
- package/dist/skills/fuzz/templates/utils/Logger.sol +619 -0
- package/dist/skills/fuzz/templates/utils/Math.sol +52 -0
- package/dist/skills/fuzz/templates/utils/MockERC20.sol +279 -0
- package/dist/skills/fuzz/templates/utils/PropertiesAsserts.sol +238 -0
- package/dist/skills/fuzz/templates/utils/StringUtils.sol +85 -0
- package/dist/skills/fuzz-convert/SKILL.md +249 -0
- package/dist/skills/fuzz-sync/SKILL.md +342 -0
- package/dist/skills/generate-poc.md +8 -26
- package/dist/skills/generate-report.md +17 -5
- package/dist/skills/ingest-aa-report.md +11 -30
- package/dist/skills/init-audit/SKILL.md +155 -0
- package/dist/skills/init-audit/references/agents/conformance-checker.md +36 -0
- package/dist/skills/init-audit/references/agents/contract-reader.md +59 -0
- package/dist/skills/init-audit/references/agents/diagram-composer.md +48 -0
- package/dist/skills/init-audit/references/agents/docs-extractor.md +26 -0
- package/dist/skills/init-audit/references/agents/prior-audit.md +32 -0
- package/dist/skills/init-audit/references/agents/regression-checker.md +28 -0
- package/dist/skills/init-audit/references/agents/skeptic.md +31 -0
- package/dist/skills/init-audit/references/agents/standards-checker.md +39 -0
- package/dist/skills/init-audit/references/agents/synthesizer.md +50 -0
- package/dist/skills/prevalidate.md +62 -0
- package/dist/skills/sync-issues.md +11 -25
- package/dist/skills/validate-all-findings.md +2 -2
- package/dist/skills/validate-finding.md +25 -24
- package/dist/skills/write-finding.md +6 -5
- package/dist/types/index.d.ts +16 -12
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/dashboard/.next/server/app/access/page.js +0 -1
- package/dashboard/.next/server/app/access/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/api/flows/route.js +0 -1
- package/dashboard/.next/server/app/api/mermaid/route.js +0 -1
- package/dashboard/.next/server/app/calls/page.js +0 -1
- package/dashboard/.next/server/app/calls/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/conformance/page.js +0 -1
- package/dashboard/.next/server/app/conformance/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/conformance/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/diagram/page.js +0 -1
- package/dashboard/.next/server/app/diagram/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/diagram/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/flows/page.js +0 -1
- package/dashboard/.next/server/app/flows/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/flows/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/functions/page.js +0 -1
- package/dashboard/.next/server/app/functions/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/functions/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/notes/page.js +0 -22
- package/dashboard/.next/server/app/notes/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/notes/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/progress/page.js +0 -1
- package/dashboard/.next/server/app/progress/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/progress/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/app/stats/page.js +0 -1
- package/dashboard/.next/server/app/stats/page.js.nft.json +0 -1
- package/dashboard/.next/server/app/stats/page_client-reference-manifest.js +0 -1
- package/dashboard/.next/server/chunks/530.js +0 -1
- package/dashboard/.next/server/chunks/622.js +0 -3
- package/dashboard/.next/server/chunks/665.js +0 -13
- package/dashboard/.next/server/chunks/939.js +0 -1
- package/dashboard/.next/static/chunks/3017.4a5312e3c20a173f.js +0 -1
- package/dashboard/.next/static/chunks/7397-37adf76cad543297.js +0 -1
- package/dashboard/.next/static/chunks/7973.e34032723285a616.js +0 -79
- package/dashboard/.next/static/chunks/8452-6d77fa353402422c.js +0 -13
- package/dashboard/.next/static/chunks/8928-fc049decdfbdaa6d.js +0 -1
- package/dashboard/.next/static/chunks/app/access/page-f8403cbdfc1c176b.js +0 -1
- package/dashboard/.next/static/chunks/app/calls/page-41f20d01e12382ef.js +0 -1
- package/dashboard/.next/static/chunks/app/changes/page-82bf8b6f48cdc506.js +0 -1
- package/dashboard/.next/static/chunks/app/conformance/page-6bb8e3b372e38098.js +0 -1
- package/dashboard/.next/static/chunks/app/diagram/page-469cd7a6f183efba.js +0 -1
- package/dashboard/.next/static/chunks/app/flows/page-7872dd9141ba0b07.js +0 -1
- package/dashboard/.next/static/chunks/app/functions/page-5847bcb77a8e7edf.js +0 -1
- package/dashboard/.next/static/chunks/app/issues/page-1ffc64fe40439002.js +0 -1
- package/dashboard/.next/static/chunks/app/layout-6c6d2a0fd7c989d3.js +0 -1
- package/dashboard/.next/static/chunks/app/notes/page-8bcaa52304500098.js +0 -1
- package/dashboard/.next/static/chunks/app/page-d63800ddb072b77b.js +0 -1
- package/dashboard/.next/static/chunks/app/progress/page-e26554f655a62eef.js +0 -1
- package/dashboard/.next/static/chunks/app/report/page-18c04fb2f193b020.js +0 -1
- package/dashboard/.next/static/chunks/app/stats/page-67ff59fd69bed651.js +0 -1
- package/dashboard/.next/static/chunks/webpack-4de0e79bdd6a0418.js +0 -1
- package/dashboard/.next/static/css/1112cea2260b3926.css +0 -3
- package/dashboard/app/access/AccessClient.tsx +0 -402
- package/dashboard/app/access/ReadOnlyFunctions.tsx +0 -114
- package/dashboard/app/access/page.tsx +0 -125
- package/dashboard/app/api/flows/route.ts +0 -32
- package/dashboard/app/api/mermaid/route.ts +0 -25
- package/dashboard/app/calls/CallsClient.tsx +0 -170
- package/dashboard/app/calls/page.tsx +0 -57
- package/dashboard/app/conformance/ConformanceTable.tsx +0 -214
- package/dashboard/app/conformance/page.tsx +0 -186
- package/dashboard/app/diagram/page.tsx +0 -65
- package/dashboard/app/flows/page.tsx +0 -102
- package/dashboard/app/functions/FunctionsClient.tsx +0 -167
- package/dashboard/app/functions/page.tsx +0 -178
- package/dashboard/app/issues/IssuesBoardClient.tsx +0 -813
- package/dashboard/app/notes/NotesClient.tsx +0 -706
- package/dashboard/app/notes/page.tsx +0 -47
- package/dashboard/app/progress/ProgressClient.tsx +0 -354
- package/dashboard/app/progress/page.tsx +0 -127
- package/dashboard/app/stats/StatsClient.tsx +0 -452
- package/dashboard/app/stats/page.tsx +0 -50
- package/dashboard/components/ConfidenceBadge.tsx +0 -53
- package/dashboard/components/DashboardLayout.tsx +0 -510
- package/dashboard/components/FilterableTable.tsx +0 -293
- package/dashboard/components/MermaidViewer.tsx +0 -267
- package/dashboard/components/NotYetGenerated.tsx +0 -32
- package/dashboard/components/SeverityBadge.tsx +0 -28
- package/dashboard/components/SignalBars.tsx +0 -27
- package/dashboard/components/SortableTable.tsx +0 -122
- package/dashboard/lib/conformance-tokens.ts +0 -49
- package/dist/skills/init-audit.md +0 -386
- /package/dashboard/.next/server/app/api/{flows → xref}/route.js.nft.json +0 -0
- /package/dashboard/.next/server/app/{api/mermaid → excalidraw-assets/[...path]}/route.js.nft.json +0 -0
- /package/dashboard/.next/static/{z5XBev05xDAkDrxWxAjNu → bGV1ry1vvIbM5b506eVBR}/_buildManifest.js +0 -0
- /package/dashboard/.next/static/{z5XBev05xDAkDrxWxAjNu → bGV1ry1vvIbM5b506eVBR}/_ssgManifest.js +0 -0
- /package/dashboard/.next/static/chunks/{3205-47d09be47325709f.js → 3205-fd963acf2fdfd080.js} +0 -0
- /package/dashboard/.next/static/chunks/{3924-88d849290406ee6f.js → 3924-f1f85ccc7d59d7ab.js} +0 -0
- /package/dashboard/.next/static/chunks/{618f8807-69fc7bb97c2b87c1.js → 618f8807-fbb1466bc29c17c6.js} +0 -0
- /package/dashboard/.next/static/chunks/{7498-d1814d68ba346d13.js → 7498-7cf464d8af69cd0a.js} +0 -0
- /package/dashboard/.next/static/chunks/app/_not-found/{page-c299b935209993df.js → page-5ff5d54b6fd6f17e.js} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { readJsonFile } from '@/lib/data';
|
|
2
|
+
import { buildBoard, cardRefs } from '@/lib/server/board';
|
|
3
|
+
import { readIndex, sceneMtime } from '@/lib/server/diagrams';
|
|
4
|
+
import { outDir, readFacts, readReview } from '@/lib/server/workspace';
|
|
5
|
+
import { readInvariants, readProtocolModel } from '../../../src/core/model';
|
|
6
|
+
import { EmptyState } from '@/components/ui/EmptyState';
|
|
7
|
+
import { Toolbar } from '@/components/ui/SplitView';
|
|
8
|
+
import {
|
|
9
|
+
ModelClient,
|
|
10
|
+
type ContractInfo,
|
|
11
|
+
type DiagramEntry,
|
|
12
|
+
type FnInfo,
|
|
13
|
+
type SpecItem,
|
|
14
|
+
} from './ModelClient';
|
|
15
|
+
|
|
16
|
+
export const dynamic = 'force-dynamic';
|
|
17
|
+
|
|
18
|
+
interface SpecFile {
|
|
19
|
+
items?: SpecItem[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Model answers: how does this protocol hold value and power, and what must stay true? */
|
|
23
|
+
export default function ModelPage() {
|
|
24
|
+
const dir = outDir();
|
|
25
|
+
const model = readProtocolModel(dir);
|
|
26
|
+
const invariants = readInvariants(dir).invariants;
|
|
27
|
+
const spec = readJsonFile<SpecFile>('spec-conformance.json');
|
|
28
|
+
const diagrams: DiagramEntry[] = readIndex().map((d) => ({ ...d, mtime: sceneMtime(d.name) }));
|
|
29
|
+
|
|
30
|
+
if (!model && diagrams.length === 0 && invariants.length === 0 && !spec?.items?.length) {
|
|
31
|
+
return (
|
|
32
|
+
<div className="flex h-full flex-col">
|
|
33
|
+
<Toolbar title="Model" />
|
|
34
|
+
<EmptyState
|
|
35
|
+
sentence="The protocol model (actors, assets, privileges, invariants and diagrams) is built by the audit kickoff."
|
|
36
|
+
command="/init-audit"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const facts = readFacts();
|
|
43
|
+
const review = readReview(0);
|
|
44
|
+
const states: Record<string, string> = {};
|
|
45
|
+
for (const r of review.rows) states[r.id] = r.state;
|
|
46
|
+
|
|
47
|
+
const fns: Record<string, FnInfo> = {};
|
|
48
|
+
const contracts: Record<string, ContractInfo> = {};
|
|
49
|
+
if (facts) {
|
|
50
|
+
for (const f of facts.functions) {
|
|
51
|
+
fns[f.id] = {
|
|
52
|
+
id: f.id,
|
|
53
|
+
contract: f.contract,
|
|
54
|
+
name: f.name,
|
|
55
|
+
signature: f.signature,
|
|
56
|
+
visibility: f.visibility,
|
|
57
|
+
file: f.file,
|
|
58
|
+
line_start: f.line_start,
|
|
59
|
+
line_end: f.line_end,
|
|
60
|
+
is_entry_point: f.is_entry_point,
|
|
61
|
+
callers: f.called_by.filter((c) => c.kind !== 'modifier').length,
|
|
62
|
+
callees: f.calls.filter((c) => c.kind !== 'modifier').length,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
for (const c of facts.contracts) {
|
|
66
|
+
contracts[c.name] = {
|
|
67
|
+
name: c.name,
|
|
68
|
+
kind: c.kind,
|
|
69
|
+
file: c.file,
|
|
70
|
+
line_start: c.line_start,
|
|
71
|
+
line_end: c.line_end,
|
|
72
|
+
functions: facts.functions.filter((f) => f.contract === c.name).length,
|
|
73
|
+
entry_points: facts.entry_points[c.name]?.length ?? 0,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const board = buildBoard();
|
|
79
|
+
const cardsByFn: Record<string, string[]> = {};
|
|
80
|
+
for (const c of board) {
|
|
81
|
+
if (c.column === 'duplicate' || c.column === 'invalid') continue;
|
|
82
|
+
for (const fn of c.functions) cardsByFn[fn] = [...(cardsByFn[fn] ?? []), c.id];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<ModelClient
|
|
87
|
+
model={model}
|
|
88
|
+
invariants={invariants}
|
|
89
|
+
spec={spec?.items ?? null}
|
|
90
|
+
diagrams={diagrams}
|
|
91
|
+
fns={fns}
|
|
92
|
+
contracts={contracts}
|
|
93
|
+
states={states}
|
|
94
|
+
cards={cardRefs(board)}
|
|
95
|
+
cardsByFn={cardsByFn}
|
|
96
|
+
/>
|
|
97
|
+
);
|
|
98
|
+
}
|
package/dashboard/app/page.tsx
CHANGED
|
@@ -1,308 +1,222 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
|
-
import { readJsonFile
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { readJsonFile } from '@/lib/data';
|
|
3
|
+
import { buildBoard } from '@/lib/server/board';
|
|
4
|
+
import { readConfig, readReview } from '@/lib/server/workspace';
|
|
5
|
+
import { ProgressRing } from '@/components/ui/ProgressRing';
|
|
6
|
+
import { StateGlyph } from '@/components/ui/StateGlyph';
|
|
7
|
+
import { SeverityDot } from '@/components/ui/SeverityDot';
|
|
8
|
+
import { EmptyState } from '@/components/ui/EmptyState';
|
|
9
|
+
import { IconArrowRight, IconChevron } from '@/components/ui/Icons';
|
|
10
|
+
import { SEVERITY_ORDER, SOURCE_LABEL, type BoardIssue } from '@/lib/types';
|
|
5
11
|
|
|
6
|
-
// Read .hex/ at request time, not at build time. Without this, next build
|
|
7
|
-
// prerenders this page with whatever .hex/ data was available in the build
|
|
8
|
-
// environment and ships static HTML — the dashboard then renders that
|
|
9
|
-
// stale (or empty) HTML for every audit project, ignoring the runtime cwd.
|
|
10
12
|
export const dynamic = 'force-dynamic';
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
interface ProjectConfig {
|
|
14
|
-
project: {
|
|
15
|
-
name: string;
|
|
16
|
-
commit: string;
|
|
17
|
-
chain: string;
|
|
18
|
-
solidity_version: string;
|
|
19
|
-
scope: string[];
|
|
20
|
-
mode?: 'full' | 'diff';
|
|
21
|
-
diff?: { base_commit: string };
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
14
|
interface DiffSummary {
|
|
26
15
|
base_commit: string;
|
|
27
16
|
head_commit: string;
|
|
28
17
|
summary: { files_changed: number; impacted_entry_points: number; storage_layout_changes: number };
|
|
29
18
|
}
|
|
30
19
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
interfaces: number;
|
|
36
|
-
libraries: number;
|
|
37
|
-
abstract_contracts: number;
|
|
38
|
-
total_lines: number;
|
|
39
|
-
nsloc: number;
|
|
40
|
-
comment_lines: number;
|
|
41
|
-
blank_lines: number;
|
|
42
|
-
assembly_lines: number;
|
|
43
|
-
};
|
|
44
|
-
per_contract: {
|
|
45
|
-
external_functions: number;
|
|
46
|
-
}[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface FindingsData {
|
|
50
|
-
findings: { id: string; severity: string }[];
|
|
20
|
+
function triageNote(c: BoardIssue): string {
|
|
21
|
+
const moved = c.validation?.auto_moved_to;
|
|
22
|
+
if (moved) return `An agent moved it to ${moved === 'verified' ? 'Verified' : 'Rejected'}`;
|
|
23
|
+
return `${SOURCE_LABEL[c.source] ?? c.source} · awaiting validation`;
|
|
51
24
|
}
|
|
52
25
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
/** Today answers one question: what should I do next? */
|
|
27
|
+
export default function TodayPage() {
|
|
28
|
+
const config = readConfig();
|
|
29
|
+
const review = readReview(5);
|
|
30
|
+
const project = config?.project;
|
|
31
|
+
const diffMode = project?.mode === 'diff';
|
|
32
|
+
const diff = diffMode ? readJsonFile<DiffSummary>('diff.json') : null;
|
|
56
33
|
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
>
|
|
71
|
-
<path
|
|
72
|
-
strokeLinecap="round"
|
|
73
|
-
strokeLinejoin="round"
|
|
74
|
-
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"
|
|
75
|
-
/>
|
|
76
|
-
</svg>
|
|
77
|
-
),
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
href: '/access',
|
|
81
|
-
label: 'Access Control',
|
|
82
|
-
description: 'Roles, permissions, visibility',
|
|
83
|
-
icon: (
|
|
84
|
-
<svg
|
|
85
|
-
className="h-5 w-5"
|
|
86
|
-
aria-hidden="true"
|
|
87
|
-
fill="none"
|
|
88
|
-
viewBox="0 0 24 24"
|
|
89
|
-
stroke="currentColor"
|
|
90
|
-
strokeWidth={1.5}
|
|
91
|
-
>
|
|
92
|
-
<path
|
|
93
|
-
strokeLinecap="round"
|
|
94
|
-
strokeLinejoin="round"
|
|
95
|
-
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"
|
|
96
|
-
/>
|
|
97
|
-
</svg>
|
|
98
|
-
),
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
href: '/calls',
|
|
102
|
-
label: 'External Calls',
|
|
103
|
-
description: 'Cross-contract calls, trust levels',
|
|
104
|
-
icon: (
|
|
105
|
-
<svg
|
|
106
|
-
className="h-5 w-5"
|
|
107
|
-
aria-hidden="true"
|
|
108
|
-
fill="none"
|
|
109
|
-
viewBox="0 0 24 24"
|
|
110
|
-
stroke="currentColor"
|
|
111
|
-
strokeWidth={1.5}
|
|
112
|
-
>
|
|
113
|
-
<path
|
|
114
|
-
strokeLinecap="round"
|
|
115
|
-
strokeLinejoin="round"
|
|
116
|
-
d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
|
|
117
|
-
/>
|
|
118
|
-
</svg>
|
|
119
|
-
),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
href: '/issues',
|
|
123
|
-
label: 'Issues',
|
|
124
|
-
description: 'Potential, verified, invalid, and duplicate issues',
|
|
125
|
-
icon: (
|
|
126
|
-
<svg
|
|
127
|
-
className="h-5 w-5"
|
|
128
|
-
aria-hidden="true"
|
|
129
|
-
fill="none"
|
|
130
|
-
viewBox="0 0 24 24"
|
|
131
|
-
stroke="currentColor"
|
|
132
|
-
strokeWidth={1.5}
|
|
133
|
-
>
|
|
134
|
-
<path
|
|
135
|
-
strokeLinecap="round"
|
|
136
|
-
strokeLinejoin="round"
|
|
137
|
-
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"
|
|
138
|
-
/>
|
|
139
|
-
</svg>
|
|
140
|
-
),
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
href: '/diagram',
|
|
144
|
-
label: 'Diagram',
|
|
145
|
-
description: 'Contract architecture visualization',
|
|
146
|
-
icon: (
|
|
147
|
-
<svg
|
|
148
|
-
className="h-5 w-5"
|
|
149
|
-
aria-hidden="true"
|
|
150
|
-
fill="none"
|
|
151
|
-
viewBox="0 0 24 24"
|
|
152
|
-
stroke="currentColor"
|
|
153
|
-
strokeWidth={1.5}
|
|
154
|
-
>
|
|
155
|
-
<path
|
|
156
|
-
strokeLinecap="round"
|
|
157
|
-
strokeLinejoin="round"
|
|
158
|
-
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"
|
|
159
|
-
/>
|
|
160
|
-
</svg>
|
|
161
|
-
),
|
|
162
|
-
},
|
|
163
|
-
];
|
|
34
|
+
const board = buildBoard();
|
|
35
|
+
const triage = board
|
|
36
|
+
.filter(
|
|
37
|
+
(c) =>
|
|
38
|
+
c.column === 'potential' ||
|
|
39
|
+
(c.validation?.auto_moved_to && (c.column === 'verified' || c.column === 'invalid')),
|
|
40
|
+
)
|
|
41
|
+
.sort(
|
|
42
|
+
(a, b) =>
|
|
43
|
+
Number(Boolean(b.validation?.auto_moved_to)) -
|
|
44
|
+
Number(Boolean(a.validation?.auto_moved_to)) ||
|
|
45
|
+
(SEVERITY_ORDER[a.severity] ?? 5) - (SEVERITY_ORDER[b.severity] ?? 5),
|
|
46
|
+
);
|
|
164
47
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
48
|
+
const meta = [
|
|
49
|
+
diffMode ? 'Differential audit' : 'Full audit',
|
|
50
|
+
project?.solidity_version ? `Solidity ${project.solidity_version}` : null,
|
|
51
|
+
project?.scope
|
|
52
|
+
? `${project.scope.length} file${project.scope.length === 1 ? '' : 's'} in scope`
|
|
53
|
+
: null,
|
|
54
|
+
project?.commit ? project.commit.slice(0, 8) : null,
|
|
55
|
+
].filter(Boolean);
|
|
172
56
|
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
const totalFindings = findingsData?.findings?.length ?? null;
|
|
177
|
-
const totalExternalCalls = externalCallsData?.calls?.length ?? null;
|
|
57
|
+
const next = review.blind_spots[0];
|
|
58
|
+
const fnCount = review.rows.length;
|
|
59
|
+
const left = review.counts.unread + review.counts.read + review.counts.questioned;
|
|
178
60
|
|
|
179
61
|
return (
|
|
180
|
-
<div>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<span className="rounded-md bg-accent-subtle px-2.5 py-1 text-caption font-medium text-accent">
|
|
189
|
-
{config.project.chain}
|
|
190
|
-
</span>
|
|
191
|
-
<span className="rounded-md bg-surface-2 px-2.5 py-1 text-caption text-text-tertiary">
|
|
192
|
-
{config.project.commit.slice(0, 8)}
|
|
193
|
-
</span>
|
|
194
|
-
<span className="text-caption text-text-tertiary">
|
|
195
|
-
Solidity {config.project.solidity_version}
|
|
196
|
-
</span>
|
|
197
|
-
<span className="text-caption text-text-tertiary">
|
|
198
|
-
{config.project.scope.length} file{config.project.scope.length !== 1 ? 's' : ''} in
|
|
199
|
-
scope
|
|
200
|
-
</span>
|
|
201
|
-
</div>
|
|
202
|
-
)}
|
|
203
|
-
{config?.project.mode === 'diff' && (
|
|
204
|
-
<Link
|
|
205
|
-
href="/changes"
|
|
206
|
-
className="mt-3 flex flex-wrap items-center gap-2 rounded-lg border border-border-subtle bg-surface-1 px-4 py-3 text-body text-text-secondary hover:border-border-default hover:bg-surface-2"
|
|
207
|
-
>
|
|
208
|
-
<span className="rounded-md bg-accent-subtle px-2.5 py-1 text-caption font-medium text-accent">
|
|
209
|
-
Differential
|
|
210
|
-
</span>
|
|
211
|
-
<code className="font-mono text-caption text-text-primary">
|
|
212
|
-
{(diff?.base_commit ?? config.project.diff?.base_commit ?? '').slice(0, 8)}
|
|
213
|
-
</code>
|
|
214
|
-
<span aria-hidden="true">→</span>
|
|
215
|
-
<code className="font-mono text-caption text-text-primary">
|
|
216
|
-
{(diff?.head_commit ?? config.project.commit).slice(0, 8)}
|
|
217
|
-
</code>
|
|
218
|
-
{diff ? (
|
|
219
|
-
<span>
|
|
220
|
-
· {diff.summary.files_changed} file{diff.summary.files_changed !== 1 ? 's' : ''} changed ·{' '}
|
|
221
|
-
{diff.summary.impacted_entry_points} impacted entry point
|
|
222
|
-
{diff.summary.impacted_entry_points !== 1 ? 's' : ''}
|
|
223
|
-
{diff.summary.storage_layout_changes > 0 && (
|
|
224
|
-
<span className="text-[var(--high)]">
|
|
225
|
-
{' '}
|
|
226
|
-
· {diff.summary.storage_layout_changes} storage layout change
|
|
227
|
-
{diff.summary.storage_layout_changes !== 1 ? 's' : ''}
|
|
228
|
-
</span>
|
|
229
|
-
)}
|
|
230
|
-
</span>
|
|
231
|
-
) : (
|
|
232
|
-
<span>· run hex diff to compute the change set</span>
|
|
233
|
-
)}
|
|
234
|
-
</Link>
|
|
235
|
-
)}
|
|
236
|
-
</div>
|
|
62
|
+
<div className="h-full overflow-y-auto">
|
|
63
|
+
<div className="mx-auto max-w-[720px] px-6 pb-16 pt-14 md:px-8">
|
|
64
|
+
<header className="rise-in">
|
|
65
|
+
<h1 className="text-display font-semibold tracking-tight text-text-primary">
|
|
66
|
+
{project?.name ?? 'Hex'}
|
|
67
|
+
</h1>
|
|
68
|
+
<p className="mt-1.5 text-body text-text-tertiary">{meta.join(' · ')}</p>
|
|
69
|
+
</header>
|
|
237
70
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
<KpiCard label="Issues" value={totalFindings} href="/issues" />
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
{/* Overview */}
|
|
248
|
-
<div className="mb-6">
|
|
249
|
-
{overview ? (
|
|
250
|
-
<div className="rounded-lg border border-border-subtle bg-surface-1 p-6">
|
|
251
|
-
<div className="mx-auto max-w-3xl">
|
|
252
|
-
<MarkdownRenderer content={overview} />
|
|
253
|
-
</div>
|
|
71
|
+
{review.facts_source === null ? (
|
|
72
|
+
<div className="mt-12">
|
|
73
|
+
<EmptyState
|
|
74
|
+
sentence="Nothing to review yet: Hex needs the compiler facts for this project."
|
|
75
|
+
command="hex facts"
|
|
76
|
+
/>
|
|
254
77
|
</div>
|
|
255
78
|
) : (
|
|
256
|
-
|
|
79
|
+
<>
|
|
80
|
+
<section className="rise-in mt-10 flex flex-col items-start gap-6 sm:flex-row sm:items-center sm:gap-8">
|
|
81
|
+
<ProgressRing pct={review.pct} />
|
|
82
|
+
<div className="min-w-0 flex-1">
|
|
83
|
+
<h2 className="text-heading font-medium text-text-primary">
|
|
84
|
+
{review.pct === 100
|
|
85
|
+
? 'Every in-scope function is cleared'
|
|
86
|
+
: 'In-scope code cleared'}
|
|
87
|
+
</h2>
|
|
88
|
+
<p className="mt-1 text-body text-text-secondary">
|
|
89
|
+
{review.cleared_nsloc.toLocaleString()} of {review.total_nsloc.toLocaleString()}{' '}
|
|
90
|
+
nSLOC · {left} of {fnCount} function{fnCount === 1 ? '' : 's'} still open
|
|
91
|
+
{review.counts.questioned > 0 && ` · ${review.counts.questioned} questioned`}
|
|
92
|
+
</p>
|
|
93
|
+
{next && (
|
|
94
|
+
<Link
|
|
95
|
+
href={`/review?fn=${encodeURIComponent(next.id)}`}
|
|
96
|
+
className="mt-4 inline-flex h-8 items-center gap-2 rounded-md bg-accent px-3 text-body font-medium text-accent-contrast shadow-sm hover:bg-accent-secondary"
|
|
97
|
+
>
|
|
98
|
+
Continue with {next.contract}.{next.name}
|
|
99
|
+
<IconArrowRight className="h-4 w-4" />
|
|
100
|
+
</Link>
|
|
101
|
+
)}
|
|
102
|
+
</div>
|
|
103
|
+
</section>
|
|
104
|
+
|
|
105
|
+
{review.facts_source === 'parser-fallback' && (
|
|
106
|
+
<p className="mt-6 text-caption text-text-tertiary">
|
|
107
|
+
<span
|
|
108
|
+
className="mr-1.5 inline-block h-1.5 w-1.5 rounded-full align-middle"
|
|
109
|
+
style={{ background: 'var(--medium)' }}
|
|
110
|
+
/>
|
|
111
|
+
Facts come from the parser fallback because the build failed, so call graphs may be
|
|
112
|
+
incomplete. Fix the build and run <code className="font-mono">hex facts</code>.
|
|
113
|
+
</p>
|
|
114
|
+
)}
|
|
115
|
+
</>
|
|
257
116
|
)}
|
|
258
|
-
</div>
|
|
259
117
|
|
|
260
|
-
|
|
261
|
-
<div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3 stagger">
|
|
262
|
-
{NAV_LINKS.map((item) => (
|
|
118
|
+
{diffMode && (
|
|
263
119
|
<Link
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
className="group flex items-start gap-3 rounded-lg border border-border-subtle bg-surface-1 p-4 hover:border-border-default hover:bg-surface-2"
|
|
120
|
+
href="/changes"
|
|
121
|
+
className="group mt-10 flex items-center gap-4 border-y border-border-subtle py-4 hover:border-border-default"
|
|
267
122
|
>
|
|
268
|
-
<div className="
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
123
|
+
<div className="min-w-0 flex-1">
|
|
124
|
+
<div className="text-body font-medium text-text-primary">
|
|
125
|
+
Changes since{' '}
|
|
126
|
+
<span className="font-mono text-caption">
|
|
127
|
+
{(diff?.base_commit ?? project?.diff?.base_commit ?? '').slice(0, 8)}
|
|
128
|
+
</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div className="mt-0.5 text-caption text-text-tertiary">
|
|
131
|
+
{diff
|
|
132
|
+
? [
|
|
133
|
+
`${diff.summary.files_changed} file${diff.summary.files_changed === 1 ? '' : 's'} changed`,
|
|
134
|
+
`${diff.summary.impacted_entry_points} impacted entry point${diff.summary.impacted_entry_points === 1 ? '' : 's'}`,
|
|
135
|
+
diff.summary.storage_layout_changes
|
|
136
|
+
? `${diff.summary.storage_layout_changes} storage layout change${diff.summary.storage_layout_changes === 1 ? '' : 's'}`
|
|
137
|
+
: null,
|
|
138
|
+
]
|
|
139
|
+
.filter(Boolean)
|
|
140
|
+
.join(' · ')
|
|
141
|
+
: 'Run hex diff to compute the change set'}
|
|
142
|
+
</div>
|
|
274
143
|
</div>
|
|
144
|
+
<IconChevron className="h-4 w-4 text-text-tertiary group-hover:text-text-primary" />
|
|
275
145
|
</Link>
|
|
276
|
-
)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
146
|
+
)}
|
|
147
|
+
|
|
148
|
+
{review.blind_spots.length > 0 && (
|
|
149
|
+
<section className="mt-10">
|
|
150
|
+
<h2 className="mb-2 text-heading font-medium text-text-primary">Next up</h2>
|
|
151
|
+
<p className="mb-3 text-caption text-text-tertiary">
|
|
152
|
+
Risky code nobody has looked at closely yet.
|
|
153
|
+
</p>
|
|
154
|
+
<ul className="stagger divide-y divide-border-subtle border-y border-border-subtle">
|
|
155
|
+
{review.blind_spots.map((r) => (
|
|
156
|
+
<li key={r.id}>
|
|
157
|
+
<Link
|
|
158
|
+
href={`/review?fn=${encodeURIComponent(r.id)}`}
|
|
159
|
+
className="group -mx-2 flex items-center gap-3 rounded-md px-2 py-2.5 hover:bg-surface-1"
|
|
160
|
+
>
|
|
161
|
+
<StateGlyph state={r.state} />
|
|
162
|
+
<span className="min-w-0 flex-1">
|
|
163
|
+
<span className="block truncate text-body text-text-primary">
|
|
164
|
+
{r.contract}.<span className="font-medium">{r.name}</span>
|
|
165
|
+
</span>
|
|
166
|
+
<span className="block truncate text-caption text-text-tertiary">
|
|
167
|
+
{r.risk_reasons.slice(0, 3).join(' · ') || `${r.nsloc} nSLOC`}
|
|
168
|
+
</span>
|
|
169
|
+
</span>
|
|
170
|
+
<IconChevron className="h-4 w-4 shrink-0 text-text-tertiary opacity-0 group-hover:opacity-100" />
|
|
171
|
+
</Link>
|
|
172
|
+
</li>
|
|
173
|
+
))}
|
|
174
|
+
</ul>
|
|
175
|
+
</section>
|
|
176
|
+
)}
|
|
281
177
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
178
|
+
<section className="mt-10">
|
|
179
|
+
<h2 className="mb-2 text-heading font-medium text-text-primary">Needs triage</h2>
|
|
180
|
+
{triage.length === 0 ? (
|
|
181
|
+
<p className="text-body text-text-tertiary">No cards are waiting for you.</p>
|
|
182
|
+
) : (
|
|
183
|
+
<>
|
|
184
|
+
<p className="mb-3 text-caption text-text-tertiary">
|
|
185
|
+
Potential cards, and cards an agent moved on its own that deserve a glance.
|
|
186
|
+
</p>
|
|
187
|
+
<ul className="stagger divide-y divide-border-subtle border-y border-border-subtle">
|
|
188
|
+
{triage.slice(0, 8).map((c) => (
|
|
189
|
+
<li key={c.id}>
|
|
190
|
+
<Link
|
|
191
|
+
href={`/issues?card=${encodeURIComponent(c.id)}`}
|
|
192
|
+
className="group -mx-2 flex items-center gap-3 rounded-md px-2 py-2.5 hover:bg-surface-1"
|
|
193
|
+
>
|
|
194
|
+
<SeverityDot severity={c.severity} label={false} />
|
|
195
|
+
<span className="min-w-0 flex-1">
|
|
196
|
+
<span className="block truncate text-body text-text-primary">
|
|
197
|
+
{c.title}
|
|
198
|
+
</span>
|
|
199
|
+
<span className="block truncate text-caption text-text-tertiary">
|
|
200
|
+
{c.id} · {triageNote(c)}
|
|
201
|
+
</span>
|
|
202
|
+
</span>
|
|
203
|
+
<IconChevron className="h-4 w-4 shrink-0 text-text-tertiary opacity-0 group-hover:opacity-100" />
|
|
204
|
+
</Link>
|
|
205
|
+
</li>
|
|
206
|
+
))}
|
|
207
|
+
</ul>
|
|
208
|
+
{triage.length > 8 && (
|
|
209
|
+
<Link
|
|
210
|
+
href="/issues"
|
|
211
|
+
className="mt-2 inline-block text-caption text-text-secondary hover:text-text-primary"
|
|
212
|
+
>
|
|
213
|
+
{triage.length - 8} more on the board
|
|
214
|
+
</Link>
|
|
215
|
+
)}
|
|
216
|
+
</>
|
|
217
|
+
)}
|
|
218
|
+
</section>
|
|
300
219
|
</div>
|
|
301
|
-
<div className="mt-1 text-caption text-text-secondary">{label}</div>
|
|
302
220
|
</div>
|
|
303
221
|
);
|
|
304
|
-
if (href) {
|
|
305
|
-
return <Link href={href}>{inner}</Link>;
|
|
306
|
-
}
|
|
307
|
-
return inner;
|
|
308
222
|
}
|