hex-audit 0.6.3 → 0.7.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/DEMO.md +13 -0
- package/README.md +60 -6
- package/dashboard/.next/BUILD_ID +1 -1
- package/dashboard/.next/app-build-manifest.json +100 -89
- package/dashboard/.next/app-path-routes-manifest.json +1 -1
- package/dashboard/.next/build-manifest.json +14 -14
- package/dashboard/.next/next-minimal-server.js.nft.json +1 -1
- package/dashboard/.next/next-server.js.nft.json +1 -1
- package/dashboard/.next/prerender-manifest.js +1 -1
- package/dashboard/.next/prerender-manifest.json +1 -1
- package/dashboard/.next/react-loadable-manifest.json +118 -118
- 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_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/access/page.js +1 -1
- package/dashboard/.next/server/app/access/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/access/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/calls/page.js +1 -1
- package/dashboard/.next/server/app/calls/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/calls/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/changes/page.js +20 -0
- package/dashboard/.next/server/app/changes/page.js.nft.json +1 -0
- package/dashboard/.next/server/app/changes/page_client-reference-manifest.js +1 -0
- package/dashboard/.next/server/app/conformance/page.js +1 -1
- package/dashboard/.next/server/app/conformance/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/diagram/page.js +1 -1
- package/dashboard/.next/server/app/diagram/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/flows/page.js +1 -1
- package/dashboard/.next/server/app/flows/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/functions/page.js +1 -1
- package/dashboard/.next/server/app/functions/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/functions/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/issues/page.js +6 -6
- package/dashboard/.next/server/app/issues/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/notes/page.js +3 -3
- package/dashboard/.next/server/app/notes/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/page.js +2 -2
- package/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/progress/page.js +1 -1
- package/dashboard/.next/server/app/progress/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/report/page.js +1 -1
- package/dashboard/.next/server/app/report/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app/stats/page.js +1 -1
- package/dashboard/.next/server/app/stats/page.js.nft.json +1 -1
- package/dashboard/.next/server/app/stats/page_client-reference-manifest.js +1 -1
- package/dashboard/.next/server/app-paths-manifest.json +8 -7
- package/dashboard/.next/server/chunks/42.js +1 -1
- package/dashboard/.next/server/chunks/530.js +1 -1
- package/dashboard/.next/server/chunks/649.js +1 -1
- package/dashboard/.next/server/chunks/939.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/next-font-manifest.js +1 -1
- package/dashboard/.next/server/next-font-manifest.json +1 -1
- package/dashboard/.next/server/pages/500.html +1 -1
- package/dashboard/.next/server/pages-manifest.json +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/{1.8868c4d131111be7.js → 1.a666047ea18866fb.js} +2 -2
- package/dashboard/.next/static/chunks/1015.39008440ab15e196.js +226 -0
- package/dashboard/.next/static/chunks/1151.497fa63c5b9eba52.js +1 -0
- package/dashboard/.next/static/chunks/1199.f30cbfa151e56076.js +148 -0
- package/dashboard/.next/static/chunks/1375.64c20f1064a38a10.js +43 -0
- package/dashboard/.next/static/chunks/1799.8dc56017eede704e.js +9 -0
- package/dashboard/.next/static/chunks/20154aaa.e87f69fe10483f8b.js +1 -0
- package/dashboard/.next/static/chunks/2077.5603adeb156c7d10.js +1 -0
- package/dashboard/.next/static/chunks/2166.9f6592b9399eadd8.js +215 -0
- package/dashboard/.next/static/chunks/{2291.85a70cb0c228157b.js → 2291.584b42ccad079b99.js} +1 -1
- package/dashboard/.next/static/chunks/2325.7decd077edfb81d9.js +24 -0
- package/dashboard/.next/static/chunks/{2383.62c035a052272594.js → 2383.ca81f980ce6528a4.js} +1 -1
- package/dashboard/.next/static/chunks/2694.7dfa5fef28851903.js +1 -0
- package/dashboard/.next/static/chunks/275.38af87389c1d33d7.js +34 -0
- package/dashboard/.next/static/chunks/2781.fba46046dbf2693b.js +93 -0
- package/dashboard/.next/static/chunks/2805.35b4cd8a94978aaf.js +1 -0
- package/dashboard/.next/static/chunks/{2879.51436986f93981d9.js → 2879.74d65e33e60505ee.js} +1 -1
- package/dashboard/.next/static/chunks/3017.4a5312e3c20a173f.js +1 -0
- package/dashboard/.next/static/chunks/3205-47d09be47325709f.js +2 -0
- package/dashboard/.next/static/chunks/3236.eac9855778a54518.js +1 -0
- package/dashboard/.next/static/chunks/3480.853a445a3784642a.js +1 -0
- package/dashboard/.next/static/chunks/3626.c5dacee11c8fbc4d.js +64 -0
- package/dashboard/.next/static/chunks/3865.5e6d2d501380e03b.js +90 -0
- package/dashboard/.next/static/chunks/3887.073cece834a4eae2.js +1 -0
- package/dashboard/.next/static/chunks/3924-88d849290406ee6f.js +1 -0
- package/dashboard/.next/static/chunks/3948.74201b9f0672234d.js +287 -0
- package/dashboard/.next/static/chunks/4728.e69372b5e5b61b8d.js +24 -0
- package/dashboard/.next/static/chunks/4787.821a6ad2816cdc60.js +23 -0
- package/dashboard/.next/static/chunks/5060.47402abc10273699.js +1 -0
- package/dashboard/.next/static/chunks/5284.334c7c0587d5d47a.js +1 -0
- package/dashboard/.next/static/chunks/5715.e16b1230cc4b4652.js +115 -0
- package/dashboard/.next/static/chunks/6014.641a2c53ba506241.js +104 -0
- package/dashboard/.next/static/chunks/6024.f099c15f75aa6722.js +79 -0
- package/dashboard/.next/static/chunks/{6052.033a6f1013c666eb.js → 6052.3001318955e5b36c.js} +2 -2
- package/dashboard/.next/static/chunks/6177.a01cf0a03734cf09.js +1 -0
- package/dashboard/.next/static/chunks/618f8807-69fc7bb97c2b87c1.js +1 -0
- package/dashboard/.next/static/chunks/6434.f560693253fea8de.js +1 -0
- package/dashboard/.next/static/chunks/6468.976d89ba133185f1.js +77 -0
- package/dashboard/.next/static/chunks/6540.6f3c4f2c6877ed89.js +1 -0
- package/dashboard/.next/static/chunks/6549.e3c4c1766cff1449.js +1 -0
- package/dashboard/.next/static/chunks/690f35d0.ab57e02a04c7e9e0.js +119 -0
- package/dashboard/.next/static/chunks/{7020.831e16e26d91abc1.js → 7020.b718b1b9cea36e60.js} +2 -2
- package/dashboard/.next/static/chunks/7397-37adf76cad543297.js +1 -0
- package/dashboard/.next/static/chunks/7498-d1814d68ba346d13.js +1 -0
- package/dashboard/.next/static/chunks/7802.f0134c792fccd382.js +80 -0
- package/dashboard/.next/static/chunks/7973.e34032723285a616.js +79 -0
- package/dashboard/.next/static/chunks/{7a04ac15.1c6cea694301806c.js → 7a04ac15.e49de94ece135900.js} +1 -1
- package/dashboard/.next/static/chunks/8216.1138ec313908a708.js +5 -0
- package/dashboard/.next/static/chunks/{8233babc.780b8e272eda298f.js → 8233babc.09872dcb3ff44064.js} +1 -1
- package/dashboard/.next/static/chunks/{8452-e616b5f43bceb95f.js → 8452-6d77fa353402422c.js} +2 -2
- package/dashboard/.next/static/chunks/8645.98a43217d406500e.js +1 -0
- package/dashboard/.next/static/chunks/8928-fc049decdfbdaa6d.js +1 -0
- package/dashboard/.next/static/chunks/9173.a7160f7d0b685fa7.js +1 -0
- package/dashboard/.next/static/chunks/9178.998a8c49996de8e4.js +1 -0
- package/dashboard/.next/static/chunks/9466.a914ce0de7d3bb84.js +1 -0
- package/dashboard/.next/static/chunks/9660.b1c8deae2c449d14.js +1 -0
- package/dashboard/.next/static/chunks/{9717.6cf5c8c89403b651.js → 9717.bba51b78ebd8fd29.js} +1 -1
- package/dashboard/.next/static/chunks/9720.d63a0696776bcc60.js +1 -0
- package/dashboard/.next/static/chunks/9811.2993c4cbd28e8d1b.js +1 -0
- package/dashboard/.next/static/chunks/app/_not-found/page-c299b935209993df.js +1 -0
- package/dashboard/.next/static/chunks/app/access/page-f8403cbdfc1c176b.js +1 -0
- package/dashboard/.next/static/chunks/app/calls/page-41f20d01e12382ef.js +1 -0
- package/dashboard/.next/static/chunks/app/changes/page-82bf8b6f48cdc506.js +1 -0
- package/dashboard/.next/static/chunks/app/conformance/page-6bb8e3b372e38098.js +1 -0
- package/dashboard/.next/static/chunks/app/diagram/page-469cd7a6f183efba.js +1 -0
- package/dashboard/.next/static/chunks/app/flows/page-7872dd9141ba0b07.js +1 -0
- package/dashboard/.next/static/chunks/app/functions/page-5847bcb77a8e7edf.js +1 -0
- package/dashboard/.next/static/chunks/app/issues/page-1ffc64fe40439002.js +1 -0
- package/dashboard/.next/static/chunks/app/layout-6c6d2a0fd7c989d3.js +1 -0
- package/dashboard/.next/static/chunks/app/notes/page-8bcaa52304500098.js +1 -0
- package/dashboard/.next/static/chunks/app/page-d63800ddb072b77b.js +1 -0
- package/dashboard/.next/static/chunks/app/progress/page-e26554f655a62eef.js +1 -0
- package/dashboard/.next/static/chunks/app/report/page-18c04fb2f193b020.js +1 -0
- package/dashboard/.next/static/chunks/app/stats/page-67ff59fd69bed651.js +1 -0
- package/dashboard/.next/static/chunks/{b7167ec1.7afbab6f609e3326.js → b7167ec1.708a3d61698ca2e6.js} +1 -1
- package/dashboard/.next/static/chunks/c7ea4e13.3073a2f551aa5ac8.js +1 -0
- package/dashboard/.next/static/chunks/framework-a117d81bf1b91f9a.js +33 -0
- package/dashboard/.next/static/chunks/main-app-5662c64b50ba40d1.js +1 -0
- package/dashboard/.next/static/chunks/main-cc3a889b25e9aa68.js +1 -0
- package/dashboard/.next/static/chunks/pages/_app-308fef0bf9b328f2.js +1 -0
- package/dashboard/.next/static/chunks/pages/_error-c91b5eabd7ac9382.js +1 -0
- package/dashboard/.next/static/chunks/webpack-4de0e79bdd6a0418.js +1 -0
- package/dashboard/.next/static/css/1112cea2260b3926.css +3 -0
- package/dashboard/.next/static/media/39f449c8730c2295-s.woff2 +0 -0
- package/dashboard/.next/static/media/86f65e8637cc94e3-s.woff2 +0 -0
- package/dashboard/.next/static/media/8760c4774489e4ba-s.p.woff2 +0 -0
- package/dashboard/.next/static/media/9fabb9c65b63d798-s.woff2 +0 -0
- package/dashboard/.next/static/media/a1f87af3f44fadbb-s.woff2 +0 -0
- package/dashboard/.next/static/media/f9e1dbe9676d9bb6-s.woff2 +0 -0
- package/dashboard/.next/static/z5XBev05xDAkDrxWxAjNu/_buildManifest.js +1 -0
- package/dashboard/app/changes/ChangesClient.tsx +464 -0
- package/dashboard/app/changes/page.tsx +36 -0
- package/dashboard/app/issues/IssuesBoardClient.tsx +11 -1
- package/dashboard/app/layout.tsx +13 -1
- package/dashboard/app/notes/NotesClient.tsx +5 -0
- package/dashboard/app/page.tsx +42 -0
- package/dashboard/components/DashboardLayout.tsx +43 -18
- package/dist/analysis/code-model.d.ts +113 -0
- package/dist/analysis/code-model.d.ts.map +1 -0
- package/dist/analysis/code-model.js +529 -0
- package/dist/analysis/code-model.js.map +1 -0
- package/dist/analysis/diff.d.ts +64 -0
- package/dist/analysis/diff.d.ts.map +1 -0
- package/dist/analysis/diff.js +644 -0
- package/dist/analysis/diff.js.map +1 -0
- package/dist/commands/analyze.d.ts.map +1 -1
- package/dist/commands/analyze.js +18 -2
- package/dist/commands/analyze.js.map +1 -1
- package/dist/commands/diff.d.ts +26 -0
- package/dist/commands/diff.d.ts.map +1 -0
- package/dist/commands/diff.js +218 -0
- package/dist/commands/diff.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +66 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/issue.d.ts.map +1 -1
- package/dist/commands/issue.js +4 -4
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/note.d.ts.map +1 -1
- package/dist/commands/note.js +30 -2
- package/dist/commands/note.js.map +1 -1
- package/dist/core/config.d.ts +9 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +18 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +16 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/git.d.ts +24 -0
- package/dist/core/git.d.ts.map +1 -0
- package/dist/core/git.js +115 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/issues.d.ts +4 -2
- package/dist/core/issues.d.ts.map +1 -1
- package/dist/core/issues.js +67 -28
- package/dist/core/issues.js.map +1 -1
- package/dist/core/notes.d.ts +25 -1
- package/dist/core/notes.d.ts.map +1 -1
- package/dist/core/notes.js +34 -2
- package/dist/core/notes.js.map +1 -1
- package/dist/core/schema.d.ts +750 -53
- package/dist/core/schema.d.ts.map +1 -1
- package/dist/core/schema.js +153 -1
- package/dist/core/schema.js.map +1 -1
- package/dist/core/skills.d.ts +10 -4
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +100 -37
- package/dist/core/skills.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/skills/ai-audit/LICENSE +21 -0
- package/dist/skills/ai-audit/SKILL.md +476 -0
- package/dist/skills/ai-audit/UPSTREAM.md +46 -0
- package/dist/skills/ai-audit/references/agent-prompts.md +133 -0
- package/dist/skills/ai-audit/references/assemble.sh +357 -0
- package/dist/skills/ai-audit/references/dedup-and-assembly.md +420 -0
- package/dist/skills/ai-audit/references/hacking-agents/access-control-agent.md +27 -0
- package/dist/skills/ai-audit/references/hacking-agents/asymmetry-agent.md +77 -0
- package/dist/skills/ai-audit/references/hacking-agents/boundary-agent.md +79 -0
- package/dist/skills/ai-audit/references/hacking-agents/economic-security-agent.md +35 -0
- package/dist/skills/ai-audit/references/hacking-agents/execution-trace-agent.md +33 -0
- package/dist/skills/ai-audit/references/hacking-agents/first-principles-agent.md +36 -0
- package/dist/skills/ai-audit/references/hacking-agents/flow-gap-agent.md +49 -0
- package/dist/skills/ai-audit/references/hacking-agents/invariant-agent.md +44 -0
- package/dist/skills/ai-audit/references/hacking-agents/math-precision-agent.md +48 -0
- package/dist/skills/ai-audit/references/hacking-agents/numerical-gap-agent.md +46 -0
- package/dist/skills/ai-audit/references/hacking-agents/periphery-agent.md +27 -0
- package/dist/skills/ai-audit/references/hacking-agents/shared-rules.md +61 -0
- package/dist/skills/ai-audit/references/hacking-agents/trust-gap-agent.md +40 -0
- package/dist/skills/ai-audit/references/hex-board.md +223 -0
- package/dist/skills/ai-audit/references/hex-export.sh +71 -0
- package/dist/skills/ai-audit/references/judging.md +75 -0
- package/dist/skills/ai-audit/references/report-formatting.md +385 -0
- package/dist/skills/ai-audit/references/report-language.md +151 -0
- package/dist/skills/ai-audit/references/senior-auditor-sop.md +63 -0
- package/dist/skills/generate-report.md +7 -3
- package/dist/skills/init-audit.md +104 -2
- package/dist/skills/validate-all-findings.md +1 -1
- package/dist/skills/validate-finding.md +8 -4
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/dashboard/.next/server/app/_not-found.html +0 -1
- package/dashboard/.next/server/app/_not-found.meta +0 -6
- package/dashboard/.next/server/app/_not-found.rsc +0 -12
- package/dashboard/.next/server/app/diagram.html +0 -1
- package/dashboard/.next/server/app/diagram.meta +0 -5
- package/dashboard/.next/server/app/diagram.rsc +0 -10
- package/dashboard/.next/server/app/flows.html +0 -1
- package/dashboard/.next/server/app/flows.meta +0 -5
- package/dashboard/.next/server/app/flows.rsc +0 -10
- package/dashboard/.next/server/chunks/44.js +0 -1
- package/dashboard/.next/server/pages/404.html +0 -1
- package/dashboard/.next/static/AyrRAwu4mazjp8iX4Yjbb/_buildManifest.js +0 -1
- package/dashboard/.next/static/chunks/1015.3ab89142e5f44120.js +0 -226
- package/dashboard/.next/static/chunks/1151.b6ef5c786e587ed7.js +0 -1
- package/dashboard/.next/static/chunks/1199.a072929dbec89965.js +0 -148
- package/dashboard/.next/static/chunks/1375.d4d2f7fc9c9c2ff1.js +0 -43
- package/dashboard/.next/static/chunks/1799.83206776abbbf1fc.js +0 -9
- package/dashboard/.next/static/chunks/20154aaa.ccc347c04ab5ad4a.js +0 -1
- package/dashboard/.next/static/chunks/2077.7011a570c87aa7b1.js +0 -1
- package/dashboard/.next/static/chunks/2166.cc0fabeb2e89b840.js +0 -215
- package/dashboard/.next/static/chunks/2325.2c55cb9a6282ae3f.js +0 -24
- package/dashboard/.next/static/chunks/2694.92bbe252063e4786.js +0 -1
- package/dashboard/.next/static/chunks/275.0d761aa0e5b030b8.js +0 -34
- package/dashboard/.next/static/chunks/2781.8536b644a480aede.js +0 -93
- package/dashboard/.next/static/chunks/2805.a8d71d2f92bb6ba9.js +0 -1
- package/dashboard/.next/static/chunks/3017.e55781da9dd32d37.js +0 -1
- package/dashboard/.next/static/chunks/3205-728c260fbb4f89c6.js +0 -2
- package/dashboard/.next/static/chunks/3236.dff44fa7961d9d5e.js +0 -1
- package/dashboard/.next/static/chunks/3480.9451396ad7ee7613.js +0 -1
- package/dashboard/.next/static/chunks/3626.ba1cf848a9f2e93d.js +0 -64
- package/dashboard/.next/static/chunks/3865.a432a7910a2f5281.js +0 -90
- package/dashboard/.next/static/chunks/3887.c22cbfa3f095826c.js +0 -1
- package/dashboard/.next/static/chunks/3924-4a05057b5450abe1.js +0 -1
- package/dashboard/.next/static/chunks/3948.fe3c7d758568d98b.js +0 -287
- package/dashboard/.next/static/chunks/4728.07d87640a3e7dd0d.js +0 -24
- package/dashboard/.next/static/chunks/4787.4e5f6a0e0e40a583.js +0 -23
- package/dashboard/.next/static/chunks/5060.baca226af35ed016.js +0 -1
- package/dashboard/.next/static/chunks/5284.f949ac90c95ff143.js +0 -1
- package/dashboard/.next/static/chunks/5715.1524bcc9591e180b.js +0 -115
- package/dashboard/.next/static/chunks/6014.700ae4969b64d728.js +0 -104
- package/dashboard/.next/static/chunks/6024.4d23707c65514679.js +0 -79
- package/dashboard/.next/static/chunks/6177.e5c84cfc4c0dea51.js +0 -1
- package/dashboard/.next/static/chunks/618f8807-547c5614e1318888.js +0 -1
- package/dashboard/.next/static/chunks/6434.9481771c33195d29.js +0 -1
- package/dashboard/.next/static/chunks/6468.f4a3e8fa6accc6da.js +0 -77
- package/dashboard/.next/static/chunks/6540.86f367d7390738d4.js +0 -1
- package/dashboard/.next/static/chunks/6549.4d0d472df96429a5.js +0 -1
- package/dashboard/.next/static/chunks/690f35d0.3e40ca0930e4bbdb.js +0 -119
- package/dashboard/.next/static/chunks/7397-f6f4dddc7a20bfc1.js +0 -1
- package/dashboard/.next/static/chunks/7498-ea83cb9e30ec5491.js +0 -1
- package/dashboard/.next/static/chunks/7802.89aec9ee11680850.js +0 -80
- package/dashboard/.next/static/chunks/7973.8b526f589aca5d84.js +0 -79
- package/dashboard/.next/static/chunks/8216.1bead812eb126c35.js +0 -5
- package/dashboard/.next/static/chunks/8645.a5ca76f11edc9633.js +0 -1
- package/dashboard/.next/static/chunks/8928-60c623ee89d2e6ad.js +0 -1
- package/dashboard/.next/static/chunks/9173.2486ffca31131ec5.js +0 -1
- package/dashboard/.next/static/chunks/9178.469341860bf8caec.js +0 -1
- package/dashboard/.next/static/chunks/9466.e904660d38c03eea.js +0 -1
- package/dashboard/.next/static/chunks/9660.84a85811380c5f33.js +0 -1
- package/dashboard/.next/static/chunks/9720.67d4d0d15a96d691.js +0 -1
- package/dashboard/.next/static/chunks/9811.65e1d080c2d256af.js +0 -1
- package/dashboard/.next/static/chunks/app/_not-found/page-548ab392d0e890d1.js +0 -1
- package/dashboard/.next/static/chunks/app/access/page-3668562e7464eb5d.js +0 -1
- package/dashboard/.next/static/chunks/app/calls/page-d07f5b8664cc8303.js +0 -1
- package/dashboard/.next/static/chunks/app/conformance/page-2fede1d7b5f9265d.js +0 -1
- package/dashboard/.next/static/chunks/app/diagram/page-b228444265546495.js +0 -1
- package/dashboard/.next/static/chunks/app/flows/page-fa67783d8cd79cab.js +0 -1
- package/dashboard/.next/static/chunks/app/functions/page-686f0296639133a3.js +0 -1
- package/dashboard/.next/static/chunks/app/issues/page-98a298e1c1045c91.js +0 -1
- package/dashboard/.next/static/chunks/app/layout-49f2496c7637d931.js +0 -1
- package/dashboard/.next/static/chunks/app/notes/page-17af94c67ba79c00.js +0 -1
- package/dashboard/.next/static/chunks/app/page-24bac51dfe007c66.js +0 -1
- package/dashboard/.next/static/chunks/app/progress/page-427fb18da3afb061.js +0 -1
- package/dashboard/.next/static/chunks/app/report/page-796f2f4a8a5ac8f7.js +0 -1
- package/dashboard/.next/static/chunks/app/stats/page-db81f600a086f252.js +0 -1
- package/dashboard/.next/static/chunks/c7ea4e13.5effeeba6618bdb7.js +0 -1
- package/dashboard/.next/static/chunks/framework-cf6f5bdca6ba0184.js +0 -33
- package/dashboard/.next/static/chunks/main-63ff429eab01f5bf.js +0 -1
- package/dashboard/.next/static/chunks/main-app-9d2f6b8a47133e9b.js +0 -1
- package/dashboard/.next/static/chunks/pages/_app-6ad2b50514c24ab4.js +0 -1
- package/dashboard/.next/static/chunks/pages/_error-d5eb11c5c4626811.js +0 -1
- package/dashboard/.next/static/chunks/webpack-08869f2b18792e51.js +0 -1
- package/dashboard/.next/static/css/4a38d8f6f6b7a68f.css +0 -3
- package/dashboard/.next/static/media/438aa629764e75f3-s.woff2 +0 -0
- package/dashboard/.next/static/media/4c9affa5bc8f420e-s.p.woff2 +0 -0
- package/dashboard/.next/static/media/51251f8b9793cdb3-s.woff2 +0 -0
- package/dashboard/.next/static/media/875ae681bfde4580-s.woff2 +0 -0
- package/dashboard/.next/static/media/cc978ac5ee68c2b6-s.woff2 +0 -0
- package/dashboard/.next/static/media/e857b654a2caa584-s.woff2 +0 -0
- /package/dashboard/.next/static/{AyrRAwu4mazjp8iX4Yjbb → z5XBev05xDAkDrxWxAjNu}/_ssgManifest.js +0 -0
package/dist/core/schema.d.ts
CHANGED
|
@@ -29,6 +29,35 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
29
29
|
docs_url: z.ZodOptional<z.ZodString>;
|
|
30
30
|
scope: z.ZodArray<z.ZodString, "many">;
|
|
31
31
|
exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
/** Raw --scope globs as typed (lets deleted/renamed files be tested for scope). */
|
|
33
|
+
scope_globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
|
+
/** `full` = audit the whole scope at `commit`; `diff` = audit `diff.base_commit` → `commit`. */
|
|
35
|
+
mode: z.ZodDefault<z.ZodEnum<["full", "diff"]>>;
|
|
36
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
base_commit: z.ZodString;
|
|
38
|
+
previous_audit: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
kind: z.ZodEnum<["hex", "report"]>;
|
|
40
|
+
path: z.ZodString;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
path: string;
|
|
43
|
+
kind: "hex" | "report";
|
|
44
|
+
}, {
|
|
45
|
+
path: string;
|
|
46
|
+
kind: "hex" | "report";
|
|
47
|
+
}>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
base_commit: string;
|
|
50
|
+
previous_audit?: {
|
|
51
|
+
path: string;
|
|
52
|
+
kind: "hex" | "report";
|
|
53
|
+
} | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
base_commit: string;
|
|
56
|
+
previous_audit?: {
|
|
57
|
+
path: string;
|
|
58
|
+
kind: "hex" | "report";
|
|
59
|
+
} | undefined;
|
|
60
|
+
}>>;
|
|
32
61
|
}, "strip", z.ZodTypeAny, {
|
|
33
62
|
name: string;
|
|
34
63
|
project_dir: string;
|
|
@@ -37,7 +66,16 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
37
66
|
solidity_version: string;
|
|
38
67
|
scope: string[];
|
|
39
68
|
exclude: string[];
|
|
69
|
+
mode: "full" | "diff";
|
|
40
70
|
docs_url?: string | undefined;
|
|
71
|
+
scope_globs?: string[] | undefined;
|
|
72
|
+
diff?: {
|
|
73
|
+
base_commit: string;
|
|
74
|
+
previous_audit?: {
|
|
75
|
+
path: string;
|
|
76
|
+
kind: "hex" | "report";
|
|
77
|
+
} | undefined;
|
|
78
|
+
} | undefined;
|
|
41
79
|
}, {
|
|
42
80
|
name: string;
|
|
43
81
|
project_dir: string;
|
|
@@ -47,6 +85,15 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
47
85
|
chain?: string | undefined;
|
|
48
86
|
docs_url?: string | undefined;
|
|
49
87
|
exclude?: string[] | undefined;
|
|
88
|
+
scope_globs?: string[] | undefined;
|
|
89
|
+
diff?: {
|
|
90
|
+
base_commit: string;
|
|
91
|
+
previous_audit?: {
|
|
92
|
+
path: string;
|
|
93
|
+
kind: "hex" | "report";
|
|
94
|
+
} | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
mode?: "full" | "diff" | undefined;
|
|
50
97
|
}>;
|
|
51
98
|
settings: z.ZodObject<{
|
|
52
99
|
output_dir: z.ZodDefault<z.ZodString>;
|
|
@@ -113,6 +160,18 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
113
160
|
output_dir: string;
|
|
114
161
|
ai_model: string;
|
|
115
162
|
finding_template: string;
|
|
163
|
+
report?: {
|
|
164
|
+
audit_type: string;
|
|
165
|
+
repository_url?: string | undefined;
|
|
166
|
+
initial_commit?: string | undefined;
|
|
167
|
+
final_commit?: string | undefined;
|
|
168
|
+
initial_report_date?: string | undefined;
|
|
169
|
+
final_report_date?: string | undefined;
|
|
170
|
+
doc_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
171
|
+
test_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
172
|
+
kickoff_call?: string | undefined;
|
|
173
|
+
client_availability?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
116
175
|
ai?: {
|
|
117
176
|
auditagent_scan_id?: string | undefined;
|
|
118
177
|
} | undefined;
|
|
@@ -122,19 +181,19 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
122
181
|
severity_label_prefix: string;
|
|
123
182
|
publish_status: ("verified" | "pending_validation")[];
|
|
124
183
|
} | undefined;
|
|
184
|
+
}, {
|
|
125
185
|
report?: {
|
|
126
|
-
audit_type: string;
|
|
127
186
|
repository_url?: string | undefined;
|
|
128
187
|
initial_commit?: string | undefined;
|
|
129
188
|
final_commit?: string | undefined;
|
|
130
189
|
initial_report_date?: string | undefined;
|
|
131
190
|
final_report_date?: string | undefined;
|
|
191
|
+
audit_type?: string | undefined;
|
|
132
192
|
doc_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
133
193
|
test_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
134
194
|
kickoff_call?: string | undefined;
|
|
135
195
|
client_availability?: string | undefined;
|
|
136
196
|
} | undefined;
|
|
137
|
-
}, {
|
|
138
197
|
output_dir?: string | undefined;
|
|
139
198
|
ai_model?: string | undefined;
|
|
140
199
|
finding_template?: string | undefined;
|
|
@@ -147,18 +206,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
147
206
|
severity_label_prefix?: string | undefined;
|
|
148
207
|
publish_status?: ("verified" | "pending_validation")[] | undefined;
|
|
149
208
|
} | undefined;
|
|
150
|
-
report?: {
|
|
151
|
-
repository_url?: string | undefined;
|
|
152
|
-
initial_commit?: string | undefined;
|
|
153
|
-
final_commit?: string | undefined;
|
|
154
|
-
initial_report_date?: string | undefined;
|
|
155
|
-
final_report_date?: string | undefined;
|
|
156
|
-
audit_type?: string | undefined;
|
|
157
|
-
doc_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
158
|
-
test_assessment?: "High" | "Medium" | "Low" | undefined;
|
|
159
|
-
kickoff_call?: string | undefined;
|
|
160
|
-
client_availability?: string | undefined;
|
|
161
|
-
} | undefined;
|
|
162
209
|
}>;
|
|
163
210
|
}, "strip", z.ZodTypeAny, {
|
|
164
211
|
version: string;
|
|
@@ -170,21 +217,21 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
170
217
|
solidity_version: string;
|
|
171
218
|
scope: string[];
|
|
172
219
|
exclude: string[];
|
|
220
|
+
mode: "full" | "diff";
|
|
173
221
|
docs_url?: string | undefined;
|
|
222
|
+
scope_globs?: string[] | undefined;
|
|
223
|
+
diff?: {
|
|
224
|
+
base_commit: string;
|
|
225
|
+
previous_audit?: {
|
|
226
|
+
path: string;
|
|
227
|
+
kind: "hex" | "report";
|
|
228
|
+
} | undefined;
|
|
229
|
+
} | undefined;
|
|
174
230
|
};
|
|
175
231
|
settings: {
|
|
176
232
|
output_dir: string;
|
|
177
233
|
ai_model: string;
|
|
178
234
|
finding_template: string;
|
|
179
|
-
ai?: {
|
|
180
|
-
auditagent_scan_id?: string | undefined;
|
|
181
|
-
} | undefined;
|
|
182
|
-
github?: {
|
|
183
|
-
repo: string;
|
|
184
|
-
default_labels: string[];
|
|
185
|
-
severity_label_prefix: string;
|
|
186
|
-
publish_status: ("verified" | "pending_validation")[];
|
|
187
|
-
} | undefined;
|
|
188
235
|
report?: {
|
|
189
236
|
audit_type: string;
|
|
190
237
|
repository_url?: string | undefined;
|
|
@@ -197,6 +244,15 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
197
244
|
kickoff_call?: string | undefined;
|
|
198
245
|
client_availability?: string | undefined;
|
|
199
246
|
} | undefined;
|
|
247
|
+
ai?: {
|
|
248
|
+
auditagent_scan_id?: string | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
github?: {
|
|
251
|
+
repo: string;
|
|
252
|
+
default_labels: string[];
|
|
253
|
+
severity_label_prefix: string;
|
|
254
|
+
publish_status: ("verified" | "pending_validation")[];
|
|
255
|
+
} | undefined;
|
|
200
256
|
};
|
|
201
257
|
}, {
|
|
202
258
|
project: {
|
|
@@ -208,20 +264,17 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
208
264
|
chain?: string | undefined;
|
|
209
265
|
docs_url?: string | undefined;
|
|
210
266
|
exclude?: string[] | undefined;
|
|
267
|
+
scope_globs?: string[] | undefined;
|
|
268
|
+
diff?: {
|
|
269
|
+
base_commit: string;
|
|
270
|
+
previous_audit?: {
|
|
271
|
+
path: string;
|
|
272
|
+
kind: "hex" | "report";
|
|
273
|
+
} | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
mode?: "full" | "diff" | undefined;
|
|
211
276
|
};
|
|
212
277
|
settings: {
|
|
213
|
-
output_dir?: string | undefined;
|
|
214
|
-
ai_model?: string | undefined;
|
|
215
|
-
finding_template?: string | undefined;
|
|
216
|
-
ai?: {
|
|
217
|
-
auditagent_scan_id?: string | undefined;
|
|
218
|
-
} | undefined;
|
|
219
|
-
github?: {
|
|
220
|
-
repo: string;
|
|
221
|
-
default_labels?: string[] | undefined;
|
|
222
|
-
severity_label_prefix?: string | undefined;
|
|
223
|
-
publish_status?: ("verified" | "pending_validation")[] | undefined;
|
|
224
|
-
} | undefined;
|
|
225
278
|
report?: {
|
|
226
279
|
repository_url?: string | undefined;
|
|
227
280
|
initial_commit?: string | undefined;
|
|
@@ -234,6 +287,18 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
234
287
|
kickoff_call?: string | undefined;
|
|
235
288
|
client_availability?: string | undefined;
|
|
236
289
|
} | undefined;
|
|
290
|
+
output_dir?: string | undefined;
|
|
291
|
+
ai_model?: string | undefined;
|
|
292
|
+
finding_template?: string | undefined;
|
|
293
|
+
ai?: {
|
|
294
|
+
auditagent_scan_id?: string | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
github?: {
|
|
297
|
+
repo: string;
|
|
298
|
+
default_labels?: string[] | undefined;
|
|
299
|
+
severity_label_prefix?: string | undefined;
|
|
300
|
+
publish_status?: ("verified" | "pending_validation")[] | undefined;
|
|
301
|
+
} | undefined;
|
|
237
302
|
};
|
|
238
303
|
version?: string | undefined;
|
|
239
304
|
}>;
|
|
@@ -839,6 +904,7 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
839
904
|
kind: z.ZodDefault<z.ZodEnum<["access_control", "state_check", "guard", "unknown"]>>;
|
|
840
905
|
is_likely_access_control: z.ZodDefault<z.ZodBoolean>;
|
|
841
906
|
}, "strip", z.ZodTypeAny, {
|
|
907
|
+
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
842
908
|
functions: {
|
|
843
909
|
function: string;
|
|
844
910
|
contract: string;
|
|
@@ -850,7 +916,6 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
850
916
|
reasoning: string;
|
|
851
917
|
modifier: string | null;
|
|
852
918
|
warnings: string[];
|
|
853
|
-
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
854
919
|
is_likely_access_control: boolean;
|
|
855
920
|
}, {
|
|
856
921
|
functions: {
|
|
@@ -942,6 +1007,7 @@ export declare const AccessControlSchema: z.ZodObject<{
|
|
|
942
1007
|
kind: z.ZodDefault<z.ZodEnum<["access_control", "state_check", "guard", "unknown"]>>;
|
|
943
1008
|
is_likely_access_control: z.ZodDefault<z.ZodBoolean>;
|
|
944
1009
|
}, "strip", z.ZodTypeAny, {
|
|
1010
|
+
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
945
1011
|
functions: {
|
|
946
1012
|
function: string;
|
|
947
1013
|
contract: string;
|
|
@@ -953,7 +1019,6 @@ export declare const AccessControlSchema: z.ZodObject<{
|
|
|
953
1019
|
reasoning: string;
|
|
954
1020
|
modifier: string | null;
|
|
955
1021
|
warnings: string[];
|
|
956
|
-
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
957
1022
|
is_likely_access_control: boolean;
|
|
958
1023
|
}, {
|
|
959
1024
|
functions: {
|
|
@@ -987,6 +1052,7 @@ export declare const AccessControlSchema: z.ZodObject<{
|
|
|
987
1052
|
inheritance_depth?: number | undefined;
|
|
988
1053
|
}[];
|
|
989
1054
|
roles: {
|
|
1055
|
+
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
990
1056
|
functions: {
|
|
991
1057
|
function: string;
|
|
992
1058
|
contract: string;
|
|
@@ -998,7 +1064,6 @@ export declare const AccessControlSchema: z.ZodObject<{
|
|
|
998
1064
|
reasoning: string;
|
|
999
1065
|
modifier: string | null;
|
|
1000
1066
|
warnings: string[];
|
|
1001
|
-
kind: "unknown" | "access_control" | "state_check" | "guard";
|
|
1002
1067
|
is_likely_access_control: boolean;
|
|
1003
1068
|
}[];
|
|
1004
1069
|
}, {
|
|
@@ -2429,12 +2494,12 @@ export declare const FindingsSchema: z.ZodObject<{
|
|
|
2429
2494
|
source_ref?: string | null | undefined;
|
|
2430
2495
|
}[];
|
|
2431
2496
|
}>;
|
|
2432
|
-
export declare const TrackingSourceSchema: z.ZodEnum<["manual", "auditagent", "conformance", "github"]>;
|
|
2497
|
+
export declare const TrackingSourceSchema: z.ZodEnum<["manual", "auditagent", "conformance", "github", "ai-audit", "prior-audit"]>;
|
|
2433
2498
|
export declare const TrackingEntrySchema: z.ZodObject<{
|
|
2434
2499
|
id: z.ZodString;
|
|
2435
2500
|
title: z.ZodString;
|
|
2436
2501
|
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
2437
|
-
source: z.ZodEnum<["manual", "auditagent", "conformance", "github"]>;
|
|
2502
|
+
source: z.ZodEnum<["manual", "auditagent", "conformance", "github", "ai-audit", "prior-audit"]>;
|
|
2438
2503
|
status: z.ZodEnum<["verified", "pending_validation", "rejected", "duplicate", "unverified", "synced"]>;
|
|
2439
2504
|
poc_status: z.ZodEnum<["passing", "failing", "not_started"]>;
|
|
2440
2505
|
poc_file: z.ZodNullable<z.ZodString>;
|
|
@@ -2447,7 +2512,7 @@ export declare const TrackingEntrySchema: z.ZodObject<{
|
|
|
2447
2512
|
id: string;
|
|
2448
2513
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2449
2514
|
title: string;
|
|
2450
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2515
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2451
2516
|
poc_status: "passing" | "failing" | "not_started";
|
|
2452
2517
|
poc_file: string | null;
|
|
2453
2518
|
duplicates: string[];
|
|
@@ -2459,7 +2524,7 @@ export declare const TrackingEntrySchema: z.ZodObject<{
|
|
|
2459
2524
|
id: string;
|
|
2460
2525
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2461
2526
|
title: string;
|
|
2462
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2527
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2463
2528
|
poc_status: "passing" | "failing" | "not_started";
|
|
2464
2529
|
poc_file: string | null;
|
|
2465
2530
|
duplicates: string[];
|
|
@@ -2472,7 +2537,7 @@ export declare const TrackingSchema: z.ZodObject<{
|
|
|
2472
2537
|
id: z.ZodString;
|
|
2473
2538
|
title: z.ZodString;
|
|
2474
2539
|
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
2475
|
-
source: z.ZodEnum<["manual", "auditagent", "conformance", "github"]>;
|
|
2540
|
+
source: z.ZodEnum<["manual", "auditagent", "conformance", "github", "ai-audit", "prior-audit"]>;
|
|
2476
2541
|
status: z.ZodEnum<["verified", "pending_validation", "rejected", "duplicate", "unverified", "synced"]>;
|
|
2477
2542
|
poc_status: z.ZodEnum<["passing", "failing", "not_started"]>;
|
|
2478
2543
|
poc_file: z.ZodNullable<z.ZodString>;
|
|
@@ -2485,7 +2550,7 @@ export declare const TrackingSchema: z.ZodObject<{
|
|
|
2485
2550
|
id: string;
|
|
2486
2551
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2487
2552
|
title: string;
|
|
2488
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2553
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2489
2554
|
poc_status: "passing" | "failing" | "not_started";
|
|
2490
2555
|
poc_file: string | null;
|
|
2491
2556
|
duplicates: string[];
|
|
@@ -2497,7 +2562,7 @@ export declare const TrackingSchema: z.ZodObject<{
|
|
|
2497
2562
|
id: string;
|
|
2498
2563
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2499
2564
|
title: string;
|
|
2500
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2565
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2501
2566
|
poc_status: "passing" | "failing" | "not_started";
|
|
2502
2567
|
poc_file: string | null;
|
|
2503
2568
|
duplicates: string[];
|
|
@@ -2511,7 +2576,7 @@ export declare const TrackingSchema: z.ZodObject<{
|
|
|
2511
2576
|
id: string;
|
|
2512
2577
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2513
2578
|
title: string;
|
|
2514
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2579
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2515
2580
|
poc_status: "passing" | "failing" | "not_started";
|
|
2516
2581
|
poc_file: string | null;
|
|
2517
2582
|
duplicates: string[];
|
|
@@ -2525,7 +2590,7 @@ export declare const TrackingSchema: z.ZodObject<{
|
|
|
2525
2590
|
id: string;
|
|
2526
2591
|
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
2527
2592
|
title: string;
|
|
2528
|
-
source: "manual" | "github" | "auditagent" | "conformance";
|
|
2593
|
+
source: "manual" | "github" | "auditagent" | "conformance" | "ai-audit" | "prior-audit";
|
|
2529
2594
|
poc_status: "passing" | "failing" | "not_started";
|
|
2530
2595
|
poc_file: string | null;
|
|
2531
2596
|
duplicates: string[];
|
|
@@ -3000,6 +3065,10 @@ export declare const AiResultFindingSchema: z.ZodObject<{
|
|
|
3000
3065
|
category: z.ZodOptional<z.ZodString>;
|
|
3001
3066
|
raw_category: z.ZodOptional<z.ZodString>;
|
|
3002
3067
|
ai_consensus: z.ZodOptional<z.ZodNumber>;
|
|
3068
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
3069
|
+
/** /ai-audit only: the scan's `Contract|function|bug-class` key and run stamp. */
|
|
3070
|
+
scan_key: z.ZodOptional<z.ZodString>;
|
|
3071
|
+
scan_stamp: z.ZodOptional<z.ZodString>;
|
|
3003
3072
|
}, "strip", z.ZodTypeAny, {
|
|
3004
3073
|
id: string;
|
|
3005
3074
|
description: string;
|
|
@@ -3012,8 +3081,11 @@ export declare const AiResultFindingSchema: z.ZodObject<{
|
|
|
3012
3081
|
}[];
|
|
3013
3082
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3014
3083
|
category?: string | undefined;
|
|
3084
|
+
recommendation?: string | undefined;
|
|
3015
3085
|
raw_category?: string | undefined;
|
|
3016
3086
|
ai_consensus?: number | undefined;
|
|
3087
|
+
scan_key?: string | undefined;
|
|
3088
|
+
scan_stamp?: string | undefined;
|
|
3017
3089
|
}, {
|
|
3018
3090
|
id: string;
|
|
3019
3091
|
description: string;
|
|
@@ -3026,8 +3098,11 @@ export declare const AiResultFindingSchema: z.ZodObject<{
|
|
|
3026
3098
|
}[];
|
|
3027
3099
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3028
3100
|
category?: string | undefined;
|
|
3101
|
+
recommendation?: string | undefined;
|
|
3029
3102
|
raw_category?: string | undefined;
|
|
3030
3103
|
ai_consensus?: number | undefined;
|
|
3104
|
+
scan_key?: string | undefined;
|
|
3105
|
+
scan_stamp?: string | undefined;
|
|
3031
3106
|
}>;
|
|
3032
3107
|
export declare const AiResultFileSchema: z.ZodObject<{
|
|
3033
3108
|
tool: z.ZodString;
|
|
@@ -3054,6 +3129,10 @@ export declare const AiResultFileSchema: z.ZodObject<{
|
|
|
3054
3129
|
category: z.ZodOptional<z.ZodString>;
|
|
3055
3130
|
raw_category: z.ZodOptional<z.ZodString>;
|
|
3056
3131
|
ai_consensus: z.ZodOptional<z.ZodNumber>;
|
|
3132
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
3133
|
+
/** /ai-audit only: the scan's `Contract|function|bug-class` key and run stamp. */
|
|
3134
|
+
scan_key: z.ZodOptional<z.ZodString>;
|
|
3135
|
+
scan_stamp: z.ZodOptional<z.ZodString>;
|
|
3057
3136
|
}, "strip", z.ZodTypeAny, {
|
|
3058
3137
|
id: string;
|
|
3059
3138
|
description: string;
|
|
@@ -3066,8 +3145,11 @@ export declare const AiResultFileSchema: z.ZodObject<{
|
|
|
3066
3145
|
}[];
|
|
3067
3146
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3068
3147
|
category?: string | undefined;
|
|
3148
|
+
recommendation?: string | undefined;
|
|
3069
3149
|
raw_category?: string | undefined;
|
|
3070
3150
|
ai_consensus?: number | undefined;
|
|
3151
|
+
scan_key?: string | undefined;
|
|
3152
|
+
scan_stamp?: string | undefined;
|
|
3071
3153
|
}, {
|
|
3072
3154
|
id: string;
|
|
3073
3155
|
description: string;
|
|
@@ -3080,8 +3162,11 @@ export declare const AiResultFileSchema: z.ZodObject<{
|
|
|
3080
3162
|
}[];
|
|
3081
3163
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3082
3164
|
category?: string | undefined;
|
|
3165
|
+
recommendation?: string | undefined;
|
|
3083
3166
|
raw_category?: string | undefined;
|
|
3084
3167
|
ai_consensus?: number | undefined;
|
|
3168
|
+
scan_key?: string | undefined;
|
|
3169
|
+
scan_stamp?: string | undefined;
|
|
3085
3170
|
}>, "many">;
|
|
3086
3171
|
}, "strip", z.ZodTypeAny, {
|
|
3087
3172
|
findings: {
|
|
@@ -3096,8 +3181,11 @@ export declare const AiResultFileSchema: z.ZodObject<{
|
|
|
3096
3181
|
}[];
|
|
3097
3182
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3098
3183
|
category?: string | undefined;
|
|
3184
|
+
recommendation?: string | undefined;
|
|
3099
3185
|
raw_category?: string | undefined;
|
|
3100
3186
|
ai_consensus?: number | undefined;
|
|
3187
|
+
scan_key?: string | undefined;
|
|
3188
|
+
scan_stamp?: string | undefined;
|
|
3101
3189
|
}[];
|
|
3102
3190
|
tool: string;
|
|
3103
3191
|
ran_at: string;
|
|
@@ -3116,14 +3204,623 @@ export declare const AiResultFileSchema: z.ZodObject<{
|
|
|
3116
3204
|
}[];
|
|
3117
3205
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
3118
3206
|
category?: string | undefined;
|
|
3207
|
+
recommendation?: string | undefined;
|
|
3119
3208
|
raw_category?: string | undefined;
|
|
3120
3209
|
ai_consensus?: number | undefined;
|
|
3210
|
+
scan_key?: string | undefined;
|
|
3211
|
+
scan_stamp?: string | undefined;
|
|
3121
3212
|
}[];
|
|
3122
3213
|
tool: string;
|
|
3123
3214
|
ran_at: string;
|
|
3124
3215
|
total_findings: number;
|
|
3125
3216
|
duration_seconds?: number | undefined;
|
|
3126
3217
|
}>;
|
|
3218
|
+
export declare const DiffFileStatusSchema: z.ZodEnum<["added", "modified", "deleted", "renamed"]>;
|
|
3219
|
+
export declare const DiffFileSchema: z.ZodObject<{
|
|
3220
|
+
path: z.ZodString;
|
|
3221
|
+
status: z.ZodEnum<["added", "modified", "deleted", "renamed"]>;
|
|
3222
|
+
old_path: z.ZodOptional<z.ZodString>;
|
|
3223
|
+
additions: z.ZodNumber;
|
|
3224
|
+
deletions: z.ZodNumber;
|
|
3225
|
+
}, "strip", z.ZodTypeAny, {
|
|
3226
|
+
path: string;
|
|
3227
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3228
|
+
additions: number;
|
|
3229
|
+
deletions: number;
|
|
3230
|
+
old_path?: string | undefined;
|
|
3231
|
+
}, {
|
|
3232
|
+
path: string;
|
|
3233
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3234
|
+
additions: number;
|
|
3235
|
+
deletions: number;
|
|
3236
|
+
old_path?: string | undefined;
|
|
3237
|
+
}>;
|
|
3238
|
+
export declare const DiffEntityKindSchema: z.ZodEnum<["contract", "function", "modifier", "state_variable", "event", "error", "struct", "inheritance"]>;
|
|
3239
|
+
export declare const DiffChangeKindSchema: z.ZodEnum<["added", "removed", "modified", "comments_only"]>;
|
|
3240
|
+
export declare const DiffChangeSchema: z.ZodObject<{
|
|
3241
|
+
contract: z.ZodString;
|
|
3242
|
+
/** Entity name; functions carry their signature, e.g. `deposit(uint256,address)`. */
|
|
3243
|
+
entity: z.ZodString;
|
|
3244
|
+
kind: z.ZodEnum<["contract", "function", "modifier", "state_variable", "event", "error", "struct", "inheritance"]>;
|
|
3245
|
+
file: z.ZodString;
|
|
3246
|
+
change: z.ZodEnum<["added", "removed", "modified", "comments_only"]>;
|
|
3247
|
+
line_start: z.ZodOptional<z.ZodNumber>;
|
|
3248
|
+
line_end: z.ZodOptional<z.ZodNumber>;
|
|
3249
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
3250
|
+
}, "strip", z.ZodTypeAny, {
|
|
3251
|
+
file: string;
|
|
3252
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3253
|
+
contract: string;
|
|
3254
|
+
entity: string;
|
|
3255
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3256
|
+
line_start?: number | undefined;
|
|
3257
|
+
line_end?: number | undefined;
|
|
3258
|
+
visibility?: string | undefined;
|
|
3259
|
+
}, {
|
|
3260
|
+
file: string;
|
|
3261
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3262
|
+
contract: string;
|
|
3263
|
+
entity: string;
|
|
3264
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3265
|
+
line_start?: number | undefined;
|
|
3266
|
+
line_end?: number | undefined;
|
|
3267
|
+
visibility?: string | undefined;
|
|
3268
|
+
}>;
|
|
3269
|
+
export declare const StorageLayoutChangeSchema: z.ZodObject<{
|
|
3270
|
+
contract: z.ZodString;
|
|
3271
|
+
file: z.ZodString;
|
|
3272
|
+
kind: z.ZodEnum<["variable_added", "variable_removed", "variable_reordered", "variable_type_changed", "inheritance_changed", "struct_changed"]>;
|
|
3273
|
+
detail: z.ZodString;
|
|
3274
|
+
}, "strip", z.ZodTypeAny, {
|
|
3275
|
+
file: string;
|
|
3276
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3277
|
+
contract: string;
|
|
3278
|
+
detail: string;
|
|
3279
|
+
}, {
|
|
3280
|
+
file: string;
|
|
3281
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3282
|
+
contract: string;
|
|
3283
|
+
detail: string;
|
|
3284
|
+
}>;
|
|
3285
|
+
export declare const ImpactReasonSchema: z.ZodObject<{
|
|
3286
|
+
kind: z.ZodEnum<["changed", "calls", "modifier", "reads_state", "override", "inherits"]>;
|
|
3287
|
+
/** The changed or impacted entity this hop goes through, e.g. `Vault._accrue()`. */
|
|
3288
|
+
via: z.ZodString;
|
|
3289
|
+
}, "strip", z.ZodTypeAny, {
|
|
3290
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3291
|
+
via: string;
|
|
3292
|
+
}, {
|
|
3293
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3294
|
+
via: string;
|
|
3295
|
+
}>;
|
|
3296
|
+
export declare const ImpactedFunctionSchema: z.ZodObject<{
|
|
3297
|
+
contract: z.ZodString;
|
|
3298
|
+
function: z.ZodString;
|
|
3299
|
+
file: z.ZodString;
|
|
3300
|
+
visibility: z.ZodString;
|
|
3301
|
+
is_entry_point: z.ZodBoolean;
|
|
3302
|
+
/** 0 = the function itself changed; n = n hops from the nearest change. */
|
|
3303
|
+
depth: z.ZodNumber;
|
|
3304
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
3305
|
+
kind: z.ZodEnum<["changed", "calls", "modifier", "reads_state", "override", "inherits"]>;
|
|
3306
|
+
/** The changed or impacted entity this hop goes through, e.g. `Vault._accrue()`. */
|
|
3307
|
+
via: z.ZodString;
|
|
3308
|
+
}, "strip", z.ZodTypeAny, {
|
|
3309
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3310
|
+
via: string;
|
|
3311
|
+
}, {
|
|
3312
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3313
|
+
via: string;
|
|
3314
|
+
}>, "many">;
|
|
3315
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
3316
|
+
derived_from: z.ZodEnum<["solc-ast", "slither", "forge", "regex", "heuristic", "compiler-layout", "manual"]>;
|
|
3317
|
+
line_start: z.ZodOptional<z.ZodNumber>;
|
|
3318
|
+
}, "strip", z.ZodTypeAny, {
|
|
3319
|
+
function: string;
|
|
3320
|
+
file: string;
|
|
3321
|
+
contract: string;
|
|
3322
|
+
visibility: string;
|
|
3323
|
+
confidence: "high" | "medium" | "low";
|
|
3324
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3325
|
+
is_entry_point: boolean;
|
|
3326
|
+
depth: number;
|
|
3327
|
+
reasons: {
|
|
3328
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3329
|
+
via: string;
|
|
3330
|
+
}[];
|
|
3331
|
+
line_start?: number | undefined;
|
|
3332
|
+
}, {
|
|
3333
|
+
function: string;
|
|
3334
|
+
file: string;
|
|
3335
|
+
contract: string;
|
|
3336
|
+
visibility: string;
|
|
3337
|
+
confidence: "high" | "medium" | "low";
|
|
3338
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3339
|
+
is_entry_point: boolean;
|
|
3340
|
+
depth: number;
|
|
3341
|
+
reasons: {
|
|
3342
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3343
|
+
via: string;
|
|
3344
|
+
}[];
|
|
3345
|
+
line_start?: number | undefined;
|
|
3346
|
+
}>;
|
|
3347
|
+
export declare const DiffSchema: z.ZodObject<{
|
|
3348
|
+
generated_at: z.ZodString;
|
|
3349
|
+
base_commit: z.ZodString;
|
|
3350
|
+
head_commit: z.ZodString;
|
|
3351
|
+
/** Set when the working tree HEAD is not head_commit (analyses read the working tree). */
|
|
3352
|
+
warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3353
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3354
|
+
path: z.ZodString;
|
|
3355
|
+
status: z.ZodEnum<["added", "modified", "deleted", "renamed"]>;
|
|
3356
|
+
old_path: z.ZodOptional<z.ZodString>;
|
|
3357
|
+
additions: z.ZodNumber;
|
|
3358
|
+
deletions: z.ZodNumber;
|
|
3359
|
+
}, "strip", z.ZodTypeAny, {
|
|
3360
|
+
path: string;
|
|
3361
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3362
|
+
additions: number;
|
|
3363
|
+
deletions: number;
|
|
3364
|
+
old_path?: string | undefined;
|
|
3365
|
+
}, {
|
|
3366
|
+
path: string;
|
|
3367
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3368
|
+
additions: number;
|
|
3369
|
+
deletions: number;
|
|
3370
|
+
old_path?: string | undefined;
|
|
3371
|
+
}>, "many">;
|
|
3372
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
3373
|
+
contract: z.ZodString;
|
|
3374
|
+
/** Entity name; functions carry their signature, e.g. `deposit(uint256,address)`. */
|
|
3375
|
+
entity: z.ZodString;
|
|
3376
|
+
kind: z.ZodEnum<["contract", "function", "modifier", "state_variable", "event", "error", "struct", "inheritance"]>;
|
|
3377
|
+
file: z.ZodString;
|
|
3378
|
+
change: z.ZodEnum<["added", "removed", "modified", "comments_only"]>;
|
|
3379
|
+
line_start: z.ZodOptional<z.ZodNumber>;
|
|
3380
|
+
line_end: z.ZodOptional<z.ZodNumber>;
|
|
3381
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
3382
|
+
}, "strip", z.ZodTypeAny, {
|
|
3383
|
+
file: string;
|
|
3384
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3385
|
+
contract: string;
|
|
3386
|
+
entity: string;
|
|
3387
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3388
|
+
line_start?: number | undefined;
|
|
3389
|
+
line_end?: number | undefined;
|
|
3390
|
+
visibility?: string | undefined;
|
|
3391
|
+
}, {
|
|
3392
|
+
file: string;
|
|
3393
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3394
|
+
contract: string;
|
|
3395
|
+
entity: string;
|
|
3396
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3397
|
+
line_start?: number | undefined;
|
|
3398
|
+
line_end?: number | undefined;
|
|
3399
|
+
visibility?: string | undefined;
|
|
3400
|
+
}>, "many">;
|
|
3401
|
+
storage_layout_changes: z.ZodArray<z.ZodObject<{
|
|
3402
|
+
contract: z.ZodString;
|
|
3403
|
+
file: z.ZodString;
|
|
3404
|
+
kind: z.ZodEnum<["variable_added", "variable_removed", "variable_reordered", "variable_type_changed", "inheritance_changed", "struct_changed"]>;
|
|
3405
|
+
detail: z.ZodString;
|
|
3406
|
+
}, "strip", z.ZodTypeAny, {
|
|
3407
|
+
file: string;
|
|
3408
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3409
|
+
contract: string;
|
|
3410
|
+
detail: string;
|
|
3411
|
+
}, {
|
|
3412
|
+
file: string;
|
|
3413
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3414
|
+
contract: string;
|
|
3415
|
+
detail: string;
|
|
3416
|
+
}>, "many">;
|
|
3417
|
+
impacted: z.ZodArray<z.ZodObject<{
|
|
3418
|
+
contract: z.ZodString;
|
|
3419
|
+
function: z.ZodString;
|
|
3420
|
+
file: z.ZodString;
|
|
3421
|
+
visibility: z.ZodString;
|
|
3422
|
+
is_entry_point: z.ZodBoolean;
|
|
3423
|
+
/** 0 = the function itself changed; n = n hops from the nearest change. */
|
|
3424
|
+
depth: z.ZodNumber;
|
|
3425
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
3426
|
+
kind: z.ZodEnum<["changed", "calls", "modifier", "reads_state", "override", "inherits"]>;
|
|
3427
|
+
/** The changed or impacted entity this hop goes through, e.g. `Vault._accrue()`. */
|
|
3428
|
+
via: z.ZodString;
|
|
3429
|
+
}, "strip", z.ZodTypeAny, {
|
|
3430
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3431
|
+
via: string;
|
|
3432
|
+
}, {
|
|
3433
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3434
|
+
via: string;
|
|
3435
|
+
}>, "many">;
|
|
3436
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
3437
|
+
derived_from: z.ZodEnum<["solc-ast", "slither", "forge", "regex", "heuristic", "compiler-layout", "manual"]>;
|
|
3438
|
+
line_start: z.ZodOptional<z.ZodNumber>;
|
|
3439
|
+
}, "strip", z.ZodTypeAny, {
|
|
3440
|
+
function: string;
|
|
3441
|
+
file: string;
|
|
3442
|
+
contract: string;
|
|
3443
|
+
visibility: string;
|
|
3444
|
+
confidence: "high" | "medium" | "low";
|
|
3445
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3446
|
+
is_entry_point: boolean;
|
|
3447
|
+
depth: number;
|
|
3448
|
+
reasons: {
|
|
3449
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3450
|
+
via: string;
|
|
3451
|
+
}[];
|
|
3452
|
+
line_start?: number | undefined;
|
|
3453
|
+
}, {
|
|
3454
|
+
function: string;
|
|
3455
|
+
file: string;
|
|
3456
|
+
contract: string;
|
|
3457
|
+
visibility: string;
|
|
3458
|
+
confidence: "high" | "medium" | "low";
|
|
3459
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3460
|
+
is_entry_point: boolean;
|
|
3461
|
+
depth: number;
|
|
3462
|
+
reasons: {
|
|
3463
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3464
|
+
via: string;
|
|
3465
|
+
}[];
|
|
3466
|
+
line_start?: number | undefined;
|
|
3467
|
+
}>, "many">;
|
|
3468
|
+
summary: z.ZodObject<{
|
|
3469
|
+
files_changed: z.ZodNumber;
|
|
3470
|
+
additions: z.ZodNumber;
|
|
3471
|
+
deletions: z.ZodNumber;
|
|
3472
|
+
functions_added: z.ZodNumber;
|
|
3473
|
+
functions_modified: z.ZodNumber;
|
|
3474
|
+
functions_removed: z.ZodNumber;
|
|
3475
|
+
impacted_functions: z.ZodNumber;
|
|
3476
|
+
impacted_entry_points: z.ZodNumber;
|
|
3477
|
+
storage_layout_changes: z.ZodNumber;
|
|
3478
|
+
}, "strip", z.ZodTypeAny, {
|
|
3479
|
+
additions: number;
|
|
3480
|
+
deletions: number;
|
|
3481
|
+
storage_layout_changes: number;
|
|
3482
|
+
files_changed: number;
|
|
3483
|
+
functions_added: number;
|
|
3484
|
+
functions_modified: number;
|
|
3485
|
+
functions_removed: number;
|
|
3486
|
+
impacted_functions: number;
|
|
3487
|
+
impacted_entry_points: number;
|
|
3488
|
+
}, {
|
|
3489
|
+
additions: number;
|
|
3490
|
+
deletions: number;
|
|
3491
|
+
storage_layout_changes: number;
|
|
3492
|
+
files_changed: number;
|
|
3493
|
+
functions_added: number;
|
|
3494
|
+
functions_modified: number;
|
|
3495
|
+
functions_removed: number;
|
|
3496
|
+
impacted_functions: number;
|
|
3497
|
+
impacted_entry_points: number;
|
|
3498
|
+
}>;
|
|
3499
|
+
}, "strip", z.ZodTypeAny, {
|
|
3500
|
+
base_commit: string;
|
|
3501
|
+
generated_at: string;
|
|
3502
|
+
files: {
|
|
3503
|
+
path: string;
|
|
3504
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3505
|
+
additions: number;
|
|
3506
|
+
deletions: number;
|
|
3507
|
+
old_path?: string | undefined;
|
|
3508
|
+
}[];
|
|
3509
|
+
warnings: string[];
|
|
3510
|
+
summary: {
|
|
3511
|
+
additions: number;
|
|
3512
|
+
deletions: number;
|
|
3513
|
+
storage_layout_changes: number;
|
|
3514
|
+
files_changed: number;
|
|
3515
|
+
functions_added: number;
|
|
3516
|
+
functions_modified: number;
|
|
3517
|
+
functions_removed: number;
|
|
3518
|
+
impacted_functions: number;
|
|
3519
|
+
impacted_entry_points: number;
|
|
3520
|
+
};
|
|
3521
|
+
head_commit: string;
|
|
3522
|
+
changes: {
|
|
3523
|
+
file: string;
|
|
3524
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3525
|
+
contract: string;
|
|
3526
|
+
entity: string;
|
|
3527
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3528
|
+
line_start?: number | undefined;
|
|
3529
|
+
line_end?: number | undefined;
|
|
3530
|
+
visibility?: string | undefined;
|
|
3531
|
+
}[];
|
|
3532
|
+
storage_layout_changes: {
|
|
3533
|
+
file: string;
|
|
3534
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3535
|
+
contract: string;
|
|
3536
|
+
detail: string;
|
|
3537
|
+
}[];
|
|
3538
|
+
impacted: {
|
|
3539
|
+
function: string;
|
|
3540
|
+
file: string;
|
|
3541
|
+
contract: string;
|
|
3542
|
+
visibility: string;
|
|
3543
|
+
confidence: "high" | "medium" | "low";
|
|
3544
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3545
|
+
is_entry_point: boolean;
|
|
3546
|
+
depth: number;
|
|
3547
|
+
reasons: {
|
|
3548
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3549
|
+
via: string;
|
|
3550
|
+
}[];
|
|
3551
|
+
line_start?: number | undefined;
|
|
3552
|
+
}[];
|
|
3553
|
+
}, {
|
|
3554
|
+
base_commit: string;
|
|
3555
|
+
generated_at: string;
|
|
3556
|
+
files: {
|
|
3557
|
+
path: string;
|
|
3558
|
+
status: "added" | "modified" | "deleted" | "renamed";
|
|
3559
|
+
additions: number;
|
|
3560
|
+
deletions: number;
|
|
3561
|
+
old_path?: string | undefined;
|
|
3562
|
+
}[];
|
|
3563
|
+
summary: {
|
|
3564
|
+
additions: number;
|
|
3565
|
+
deletions: number;
|
|
3566
|
+
storage_layout_changes: number;
|
|
3567
|
+
files_changed: number;
|
|
3568
|
+
functions_added: number;
|
|
3569
|
+
functions_modified: number;
|
|
3570
|
+
functions_removed: number;
|
|
3571
|
+
impacted_functions: number;
|
|
3572
|
+
impacted_entry_points: number;
|
|
3573
|
+
};
|
|
3574
|
+
head_commit: string;
|
|
3575
|
+
changes: {
|
|
3576
|
+
file: string;
|
|
3577
|
+
kind: "function" | "contract" | "modifier" | "state_variable" | "event" | "error" | "struct" | "inheritance";
|
|
3578
|
+
contract: string;
|
|
3579
|
+
entity: string;
|
|
3580
|
+
change: "added" | "modified" | "removed" | "comments_only";
|
|
3581
|
+
line_start?: number | undefined;
|
|
3582
|
+
line_end?: number | undefined;
|
|
3583
|
+
visibility?: string | undefined;
|
|
3584
|
+
}[];
|
|
3585
|
+
storage_layout_changes: {
|
|
3586
|
+
file: string;
|
|
3587
|
+
kind: "variable_added" | "variable_removed" | "variable_reordered" | "variable_type_changed" | "inheritance_changed" | "struct_changed";
|
|
3588
|
+
contract: string;
|
|
3589
|
+
detail: string;
|
|
3590
|
+
}[];
|
|
3591
|
+
impacted: {
|
|
3592
|
+
function: string;
|
|
3593
|
+
file: string;
|
|
3594
|
+
contract: string;
|
|
3595
|
+
visibility: string;
|
|
3596
|
+
confidence: "high" | "medium" | "low";
|
|
3597
|
+
derived_from: "solc-ast" | "slither" | "forge" | "regex" | "heuristic" | "compiler-layout" | "manual";
|
|
3598
|
+
is_entry_point: boolean;
|
|
3599
|
+
depth: number;
|
|
3600
|
+
reasons: {
|
|
3601
|
+
kind: "inherits" | "calls" | "modifier" | "changed" | "reads_state" | "override";
|
|
3602
|
+
via: string;
|
|
3603
|
+
}[];
|
|
3604
|
+
line_start?: number | undefined;
|
|
3605
|
+
}[];
|
|
3606
|
+
warnings?: string[] | undefined;
|
|
3607
|
+
}>;
|
|
3608
|
+
export declare const PriorFindingSchema: z.ZodObject<{
|
|
3609
|
+
id: z.ZodString;
|
|
3610
|
+
title: z.ZodString;
|
|
3611
|
+
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
3612
|
+
/** The prior report's resolution (Fixed / Acknowledged / ...), when known. */
|
|
3613
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3615
|
+
description: z.ZodDefault<z.ZodString>;
|
|
3616
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
3617
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
3618
|
+
file: z.ZodString;
|
|
3619
|
+
function: z.ZodOptional<z.ZodString>;
|
|
3620
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
3621
|
+
}, "strip", z.ZodTypeAny, {
|
|
3622
|
+
file: string;
|
|
3623
|
+
function?: string | undefined;
|
|
3624
|
+
snippet?: string | undefined;
|
|
3625
|
+
}, {
|
|
3626
|
+
file: string;
|
|
3627
|
+
function?: string | undefined;
|
|
3628
|
+
snippet?: string | undefined;
|
|
3629
|
+
}>, "many">;
|
|
3630
|
+
source: z.ZodEnum<["hex", "report"]>;
|
|
3631
|
+
}, "strip", z.ZodTypeAny, {
|
|
3632
|
+
id: string;
|
|
3633
|
+
description: string;
|
|
3634
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3635
|
+
title: string;
|
|
3636
|
+
locations: {
|
|
3637
|
+
file: string;
|
|
3638
|
+
function?: string | undefined;
|
|
3639
|
+
snippet?: string | undefined;
|
|
3640
|
+
}[];
|
|
3641
|
+
source: "hex" | "report";
|
|
3642
|
+
status?: string | undefined;
|
|
3643
|
+
recommendation?: string | undefined;
|
|
3644
|
+
resolution?: string | undefined;
|
|
3645
|
+
}, {
|
|
3646
|
+
id: string;
|
|
3647
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3648
|
+
title: string;
|
|
3649
|
+
locations: {
|
|
3650
|
+
file: string;
|
|
3651
|
+
function?: string | undefined;
|
|
3652
|
+
snippet?: string | undefined;
|
|
3653
|
+
}[];
|
|
3654
|
+
source: "hex" | "report";
|
|
3655
|
+
status?: string | undefined;
|
|
3656
|
+
description?: string | undefined;
|
|
3657
|
+
recommendation?: string | undefined;
|
|
3658
|
+
resolution?: string | undefined;
|
|
3659
|
+
}>;
|
|
3660
|
+
export declare const PriorFindingsSchema: z.ZodObject<{
|
|
3661
|
+
imported_at: z.ZodString;
|
|
3662
|
+
base_commit: z.ZodOptional<z.ZodString>;
|
|
3663
|
+
source_path: z.ZodString;
|
|
3664
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
3665
|
+
id: z.ZodString;
|
|
3666
|
+
title: z.ZodString;
|
|
3667
|
+
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
3668
|
+
/** The prior report's resolution (Fixed / Acknowledged / ...), when known. */
|
|
3669
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
3670
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3671
|
+
description: z.ZodDefault<z.ZodString>;
|
|
3672
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
3673
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
3674
|
+
file: z.ZodString;
|
|
3675
|
+
function: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
}, "strip", z.ZodTypeAny, {
|
|
3678
|
+
file: string;
|
|
3679
|
+
function?: string | undefined;
|
|
3680
|
+
snippet?: string | undefined;
|
|
3681
|
+
}, {
|
|
3682
|
+
file: string;
|
|
3683
|
+
function?: string | undefined;
|
|
3684
|
+
snippet?: string | undefined;
|
|
3685
|
+
}>, "many">;
|
|
3686
|
+
source: z.ZodEnum<["hex", "report"]>;
|
|
3687
|
+
}, "strip", z.ZodTypeAny, {
|
|
3688
|
+
id: string;
|
|
3689
|
+
description: string;
|
|
3690
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3691
|
+
title: string;
|
|
3692
|
+
locations: {
|
|
3693
|
+
file: string;
|
|
3694
|
+
function?: string | undefined;
|
|
3695
|
+
snippet?: string | undefined;
|
|
3696
|
+
}[];
|
|
3697
|
+
source: "hex" | "report";
|
|
3698
|
+
status?: string | undefined;
|
|
3699
|
+
recommendation?: string | undefined;
|
|
3700
|
+
resolution?: string | undefined;
|
|
3701
|
+
}, {
|
|
3702
|
+
id: string;
|
|
3703
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3704
|
+
title: string;
|
|
3705
|
+
locations: {
|
|
3706
|
+
file: string;
|
|
3707
|
+
function?: string | undefined;
|
|
3708
|
+
snippet?: string | undefined;
|
|
3709
|
+
}[];
|
|
3710
|
+
source: "hex" | "report";
|
|
3711
|
+
status?: string | undefined;
|
|
3712
|
+
description?: string | undefined;
|
|
3713
|
+
recommendation?: string | undefined;
|
|
3714
|
+
resolution?: string | undefined;
|
|
3715
|
+
}>, "many">;
|
|
3716
|
+
}, "strip", z.ZodTypeAny, {
|
|
3717
|
+
findings: {
|
|
3718
|
+
id: string;
|
|
3719
|
+
description: string;
|
|
3720
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3721
|
+
title: string;
|
|
3722
|
+
locations: {
|
|
3723
|
+
file: string;
|
|
3724
|
+
function?: string | undefined;
|
|
3725
|
+
snippet?: string | undefined;
|
|
3726
|
+
}[];
|
|
3727
|
+
source: "hex" | "report";
|
|
3728
|
+
status?: string | undefined;
|
|
3729
|
+
recommendation?: string | undefined;
|
|
3730
|
+
resolution?: string | undefined;
|
|
3731
|
+
}[];
|
|
3732
|
+
imported_at: string;
|
|
3733
|
+
source_path: string;
|
|
3734
|
+
base_commit?: string | undefined;
|
|
3735
|
+
}, {
|
|
3736
|
+
findings: {
|
|
3737
|
+
id: string;
|
|
3738
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3739
|
+
title: string;
|
|
3740
|
+
locations: {
|
|
3741
|
+
file: string;
|
|
3742
|
+
function?: string | undefined;
|
|
3743
|
+
snippet?: string | undefined;
|
|
3744
|
+
}[];
|
|
3745
|
+
source: "hex" | "report";
|
|
3746
|
+
status?: string | undefined;
|
|
3747
|
+
description?: string | undefined;
|
|
3748
|
+
recommendation?: string | undefined;
|
|
3749
|
+
resolution?: string | undefined;
|
|
3750
|
+
}[];
|
|
3751
|
+
imported_at: string;
|
|
3752
|
+
source_path: string;
|
|
3753
|
+
base_commit?: string | undefined;
|
|
3754
|
+
}>;
|
|
3755
|
+
export declare const PriorReviewItemSchema: z.ZodObject<{
|
|
3756
|
+
id: z.ZodString;
|
|
3757
|
+
title: z.ZodString;
|
|
3758
|
+
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
3759
|
+
status: z.ZodEnum<["fixed_unchanged", "fix_touched_ok", "regressed", "acknowledged_still_present", "code_removed"]>;
|
|
3760
|
+
reasoning: z.ZodString;
|
|
3761
|
+
/** Board card id when a regression was materialized. */
|
|
3762
|
+
issue_id: z.ZodOptional<z.ZodString>;
|
|
3763
|
+
}, "strip", z.ZodTypeAny, {
|
|
3764
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3765
|
+
id: string;
|
|
3766
|
+
reasoning: string;
|
|
3767
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3768
|
+
title: string;
|
|
3769
|
+
issue_id?: string | undefined;
|
|
3770
|
+
}, {
|
|
3771
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3772
|
+
id: string;
|
|
3773
|
+
reasoning: string;
|
|
3774
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3775
|
+
title: string;
|
|
3776
|
+
issue_id?: string | undefined;
|
|
3777
|
+
}>;
|
|
3778
|
+
export declare const PriorReviewSchema: z.ZodObject<{
|
|
3779
|
+
reviewed_at: z.ZodString;
|
|
3780
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3781
|
+
id: z.ZodString;
|
|
3782
|
+
title: z.ZodString;
|
|
3783
|
+
severity: z.ZodEnum<["Critical", "High", "Medium", "Low", "Info"]>;
|
|
3784
|
+
status: z.ZodEnum<["fixed_unchanged", "fix_touched_ok", "regressed", "acknowledged_still_present", "code_removed"]>;
|
|
3785
|
+
reasoning: z.ZodString;
|
|
3786
|
+
/** Board card id when a regression was materialized. */
|
|
3787
|
+
issue_id: z.ZodOptional<z.ZodString>;
|
|
3788
|
+
}, "strip", z.ZodTypeAny, {
|
|
3789
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3790
|
+
id: string;
|
|
3791
|
+
reasoning: string;
|
|
3792
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3793
|
+
title: string;
|
|
3794
|
+
issue_id?: string | undefined;
|
|
3795
|
+
}, {
|
|
3796
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3797
|
+
id: string;
|
|
3798
|
+
reasoning: string;
|
|
3799
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3800
|
+
title: string;
|
|
3801
|
+
issue_id?: string | undefined;
|
|
3802
|
+
}>, "many">;
|
|
3803
|
+
}, "strip", z.ZodTypeAny, {
|
|
3804
|
+
items: {
|
|
3805
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3806
|
+
id: string;
|
|
3807
|
+
reasoning: string;
|
|
3808
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3809
|
+
title: string;
|
|
3810
|
+
issue_id?: string | undefined;
|
|
3811
|
+
}[];
|
|
3812
|
+
reviewed_at: string;
|
|
3813
|
+
}, {
|
|
3814
|
+
items: {
|
|
3815
|
+
status: "fixed_unchanged" | "fix_touched_ok" | "regressed" | "acknowledged_still_present" | "code_removed";
|
|
3816
|
+
id: string;
|
|
3817
|
+
reasoning: string;
|
|
3818
|
+
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
|
3819
|
+
title: string;
|
|
3820
|
+
issue_id?: string | undefined;
|
|
3821
|
+
}[];
|
|
3822
|
+
reviewed_at: string;
|
|
3823
|
+
}>;
|
|
3127
3824
|
export declare const AiToolStatusSchema: z.ZodObject<{
|
|
3128
3825
|
status: z.ZodEnum<["completed", "running", "failed", "not_started", "pending_scan"]>;
|
|
3129
3826
|
ran_at: z.ZodOptional<z.ZodString>;
|
|
@@ -3135,18 +3832,18 @@ export declare const AiToolStatusSchema: z.ZodObject<{
|
|
|
3135
3832
|
}, "strip", z.ZodTypeAny, {
|
|
3136
3833
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3137
3834
|
ran_at?: string | undefined;
|
|
3835
|
+
error?: string | undefined;
|
|
3138
3836
|
started_at?: string | undefined;
|
|
3139
3837
|
pid?: number | undefined;
|
|
3140
3838
|
findings_count?: number | undefined;
|
|
3141
|
-
error?: string | undefined;
|
|
3142
3839
|
scan_id?: string | undefined;
|
|
3143
3840
|
}, {
|
|
3144
3841
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3145
3842
|
ran_at?: string | undefined;
|
|
3843
|
+
error?: string | undefined;
|
|
3146
3844
|
started_at?: string | undefined;
|
|
3147
3845
|
pid?: number | undefined;
|
|
3148
3846
|
findings_count?: number | undefined;
|
|
3149
|
-
error?: string | undefined;
|
|
3150
3847
|
scan_id?: string | undefined;
|
|
3151
3848
|
}>;
|
|
3152
3849
|
export declare const AiStatusSchema: z.ZodObject<{
|
|
@@ -3161,38 +3858,38 @@ export declare const AiStatusSchema: z.ZodObject<{
|
|
|
3161
3858
|
}, "strip", z.ZodTypeAny, {
|
|
3162
3859
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3163
3860
|
ran_at?: string | undefined;
|
|
3861
|
+
error?: string | undefined;
|
|
3164
3862
|
started_at?: string | undefined;
|
|
3165
3863
|
pid?: number | undefined;
|
|
3166
3864
|
findings_count?: number | undefined;
|
|
3167
|
-
error?: string | undefined;
|
|
3168
3865
|
scan_id?: string | undefined;
|
|
3169
3866
|
}, {
|
|
3170
3867
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3171
3868
|
ran_at?: string | undefined;
|
|
3869
|
+
error?: string | undefined;
|
|
3172
3870
|
started_at?: string | undefined;
|
|
3173
3871
|
pid?: number | undefined;
|
|
3174
3872
|
findings_count?: number | undefined;
|
|
3175
|
-
error?: string | undefined;
|
|
3176
3873
|
scan_id?: string | undefined;
|
|
3177
3874
|
}>>;
|
|
3178
3875
|
}, "strip", z.ZodTypeAny, {
|
|
3179
3876
|
tools: Record<string, {
|
|
3180
3877
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3181
3878
|
ran_at?: string | undefined;
|
|
3879
|
+
error?: string | undefined;
|
|
3182
3880
|
started_at?: string | undefined;
|
|
3183
3881
|
pid?: number | undefined;
|
|
3184
3882
|
findings_count?: number | undefined;
|
|
3185
|
-
error?: string | undefined;
|
|
3186
3883
|
scan_id?: string | undefined;
|
|
3187
3884
|
}>;
|
|
3188
3885
|
}, {
|
|
3189
3886
|
tools: Record<string, {
|
|
3190
3887
|
status: "failed" | "not_started" | "completed" | "running" | "pending_scan";
|
|
3191
3888
|
ran_at?: string | undefined;
|
|
3889
|
+
error?: string | undefined;
|
|
3192
3890
|
started_at?: string | undefined;
|
|
3193
3891
|
pid?: number | undefined;
|
|
3194
3892
|
findings_count?: number | undefined;
|
|
3195
|
-
error?: string | undefined;
|
|
3196
3893
|
scan_id?: string | undefined;
|
|
3197
3894
|
}>;
|
|
3198
3895
|
}>;
|