@akasecurity/cli 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -0
- package/dist/cli.js +94 -52
- package/package.json +6 -5
- package/web-ui/package.json +1 -1
- package/web-ui/web-ui/.next/BUILD_ID +1 -1
- package/web-ui/web-ui/.next/app-build-manifest.json +23 -23
- package/web-ui/web-ui/.next/app-path-routes-manifest.json +4 -4
- package/web-ui/web-ui/.next/build-manifest.json +2 -2
- package/web-ui/web-ui/.next/prerender-manifest.json +3 -3
- package/web-ui/web-ui/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/data-shares/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/data-shares/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/detections/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/detections/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/[id]/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/[id]/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/new/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/new/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/page.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/exceptions/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/findings/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/inventory/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/inventory/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/policies/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/scan/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/scan/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/security/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/settings/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/(app)/updates/page.js +2 -2
- package/web-ui/web-ui/.next/server/app/(app)/updates/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app/_not-found.html +1 -1
- package/web-ui/web-ui/.next/server/app/_not-found.rsc +1 -1
- package/web-ui/web-ui/.next/server/app/index.html +1 -1
- package/web-ui/web-ui/.next/server/app/index.rsc +1 -1
- package/web-ui/web-ui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/app-paths-manifest.json +4 -4
- package/web-ui/web-ui/.next/server/chunks/226.js +1 -1
- package/web-ui/web-ui/.next/server/functions-config-manifest.json +4 -4
- package/web-ui/web-ui/.next/server/middleware-manifest.json +5 -5
- package/web-ui/web-ui/.next/server/pages/404.html +1 -1
- package/web-ui/web-ui/.next/server/pages/500.html +1 -1
- package/web-ui/web-ui/.next/server/server-reference-manifest.js +1 -1
- package/web-ui/web-ui/.next/server/server-reference-manifest.json +1 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/data-shares/page-548fa0d3dee6e829.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/detections/page-0bfa1f371b65b5ad.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/[id]/page-56ec5c05f347108a.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/new/page-cb33dc32fd3648bf.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/page-b6fbc540ef0a50f8.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/inventory/page-89cf3ac5a30e76a0.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/scan/page-0d43a6b2acafe349.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/settings/page-2cf02a09402cfb4d.js +1 -0
- package/web-ui/web-ui/.next/static/chunks/app/(app)/updates/{page-241fdcbac6e942aa.js → page-b9607b5e2e8700d6.js} +1 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/data-shares/page-485a76552d6dbabd.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/detections/page-8030433ea5c099fa.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/[id]/page-452be710e9e05ad5.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/new/page-e8498a1e48943abf.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/page-1b841b6a60708c6d.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/inventory/page-dd61001da0f891d3.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/scan/page-158ed3ad2cee998b.js +0 -1
- package/web-ui/web-ui/.next/static/chunks/app/(app)/settings/page-b9fba600c590896d.js +0 -1
- /package/web-ui/web-ui/.next/static/{v339u67-B5AsSrzDBfv22 → X9C7-HlMI5zAQEKfIW_6e}/_buildManifest.js +0 -0
- /package/web-ui/web-ui/.next/static/{v339u67-B5AsSrzDBfv22 → X9C7-HlMI5zAQEKfIW_6e}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-14166b28d6557de1.js" defer=""></script><script src="/_next/static/chunks/framework-09f91e50832141e4.js" defer=""></script><script src="/_next/static/chunks/main-80ce91d706b796ad.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ab1bd755bf3a4f53.js" defer=""></script><script src="/_next/static/chunks/pages/_error-541b64fd411d8da6.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-14166b28d6557de1.js" defer=""></script><script src="/_next/static/chunks/framework-09f91e50832141e4.js" defer=""></script><script src="/_next/static/chunks/main-80ce91d706b796ad.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ab1bd755bf3a4f53.js" defer=""></script><script src="/_next/static/chunks/pages/_error-541b64fd411d8da6.js" defer=""></script><script src="/_next/static/X9C7-HlMI5zAQEKfIW_6e/_buildManifest.js" defer=""></script><script src="/_next/static/X9C7-HlMI5zAQEKfIW_6e/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"X9C7-HlMI5zAQEKfIW_6e","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\"node\":{\"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\"node\":{\"60904711541a5b6e8be64254b303922ddc94e08606\":{\"workers\":{\"app/(app)/data-shares/page\":{\"moduleId\":\"19934\",\"async\":false}},\"layer\":{\"app/(app)/data-shares/page\":\"action-browser\"},\"filename\":\"app/(app)/data-shares/actions.ts\",\"exportedName\":\"setEgressDecision\"},\"40647586a6186e2ce3b57abfbc81ddc3c4e6438393\":{\"workers\":{\"app/(app)/exceptions/[id]/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/new/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/page\":{\"moduleId\":\"39831\",\"async\":false}},\"layer\":{\"app/(app)/exceptions/[id]/page\":\"action-browser\",\"app/(app)/exceptions/new/page\":\"action-browser\",\"app/(app)/exceptions/page\":\"action-browser\"},\"filename\":\"app/(app)/exceptions/actions.ts\",\"exportedName\":\"addException\"},\"40cbf2573b0407cceb5aba6bb3ee04b268dd67a220\":{\"workers\":{\"app/(app)/exceptions/[id]/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/new/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/page\":{\"moduleId\":\"39831\",\"async\":false}},\"layer\":{\"app/(app)/exceptions/[id]/page\":\"action-browser\",\"app/(app)/exceptions/new/page\":\"action-browser\",\"app/(app)/exceptions/page\":\"action-browser\"},\"filename\":\"app/(app)/exceptions/actions.ts\",\"exportedName\":\"rotateKey\"},\"40e11aec82ee3efce2cac978f6739e708cd47ee771\":{\"workers\":{\"app/(app)/exceptions/[id]/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/new/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/page\":{\"moduleId\":\"39831\",\"async\":false}},\"layer\":{\"app/(app)/exceptions/[id]/page\":\"action-browser\",\"app/(app)/exceptions/new/page\":\"action-browser\",\"app/(app)/exceptions/page\":\"action-browser\"},\"filename\":\"app/(app)/exceptions/actions.ts\",\"exportedName\":\"approveBlocked\"},\"608b0415f1414a3814b606fc685b761070aecb9ccc\":{\"workers\":{\"app/(app)/exceptions/[id]/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/new/page\":{\"moduleId\":\"39831\",\"async\":false},\"app/(app)/exceptions/page\":{\"moduleId\":\"39831\",\"async\":false}},\"layer\":{\"app/(app)/exceptions/[id]/page\":\"action-browser\",\"app/(app)/exceptions/new/page\":\"action-browser\",\"app/(app)/exceptions/page\":\"action-browser\"},\"filename\":\"app/(app)/exceptions/actions.ts\",\"exportedName\":\"revokeException\"},\"40b06e19c41b3d5f8f24a929ea0ac0450df6f4be1f\":{\"workers\":{\"app/(app)/scan/page\":{\"moduleId\":\"22019\",\"async\":false}},\"layer\":{\"app/(app)/scan/page\":\"action-browser\"},\"filename\":\"app/(app)/scan/actions.ts\",\"exportedName\":\"listDirectory\"},\"40d0ff8026f9837c6e23802cd615a8526acc0f5e97\":{\"workers\":{\"app/(app)/scan/page\":{\"moduleId\":\"22019\",\"async\":false}},\"layer\":{\"app/(app)/scan/page\":\"action-browser\"},\"filename\":\"app/(app)/scan/actions.ts\",\"exportedName\":\"runScan\"},\"608718ec423d6aecefb9c3ab43ac6f7cc0fd4fed26\":{\"workers\":{\"app/(app)/inventory/page\":{\"moduleId\":\"3749\",\"async\":false}},\"layer\":{\"app/(app)/inventory/page\":\"action-browser\"},\"filename\":\"app/(app)/inventory/actions.ts\",\"exportedName\":\"setMcpTrust\"},\"70c4223ce7517ce924fd97f85a7e79e709a44d904a\":{\"workers\":{\"app/(app)/inventory/page\":{\"moduleId\":\"3749\",\"async\":false}},\"layer\":{\"app/(app)/inventory/page\":\"action-browser\"},\"filename\":\"app/(app)/inventory/actions.ts\",\"exportedName\":\"setFileAccess\"},\"00308d8730a89a2bf0ed24221b02cb29e43fd777ec\":{\"workers\":{\"app/(app)/updates/page\":{\"moduleId\":\"53027\",\"async\":false}},\"layer\":{\"app/(app)/updates/page\":\"action-browser\"},\"filename\":\"app/(app)/updates/actions.ts\",\"exportedName\":\"checkNow\"},\"40b2eee5a2a57a32286772be20ad50d658b5504d28\":{\"workers\":{\"app/(app)/updates/page\":{\"moduleId\":\"53027\",\"async\":false}},\"layer\":{\"app/(app)/updates/page\":\"action-browser\"},\"filename\":\"app/(app)/updates/actions.ts\",\"exportedName\":\"installPlugin\"},\"40f230d5f730c4c9042ef17075f214768a1fdbd86f\":{\"workers\":{\"app/(app)/updates/page\":{\"moduleId\":\"53027\",\"async\":false}},\"layer\":{\"app/(app)/updates/page\":\"action-browser\"},\"filename\":\"app/(app)/updates/actions.ts\",\"exportedName\":\"applyUpdate\"},\"409b1174224a8513bad6cf42b76908f430a0a998b5\":{\"workers\":{\"app/(app)/settings/page\":{\"moduleId\":\"44408\",\"async\":false}},\"layer\":{\"app/(app)/settings/page\":\"action-browser\"},\"filename\":\"app/(app)/settings/actions.ts\",\"exportedName\":\"saveSettings\"},\"0090dc201dc5df89a9f97443069adb3ef6dc59411e\":{\"workers\":{\"app/(app)/detections/page\":{\"moduleId\":\"33554\",\"async\":false}},\"layer\":{\"app/(app)/detections/page\":\"action-browser\"},\"filename\":\"app/(app)/detections/actions.ts\",\"exportedName\":\"recheckDetections\"},\"406dc69c8f7b8a52010e31fd81d19a4df31f5b94e2\":{\"workers\":{\"app/(app)/detections/page\":{\"moduleId\":\"33554\",\"async\":false}},\"layer\":{\"app/(app)/detections/page\":\"action-browser\"},\"filename\":\"app/(app)/detections/actions.ts\",\"exportedName\":\"pullDetectionUpdate\"},\"605a5c8fc5e99a6a1b5171a6e0d5724344c6969d31\":{\"workers\":{\"app/(app)/detections/page\":{\"moduleId\":\"33554\",\"async\":false}},\"layer\":{\"app/(app)/detections/page\":\"action-browser\"},\"filename\":\"app/(app)/detections/actions.ts\",\"exportedName\":\"setDetectionPolicy\"},\"60bccc0df815710ae15ade38e43c65c36d6d9bcd8b\":{\"workers\":{\"app/(app)/detections/page\":{\"moduleId\":\"33554\",\"async\":false}},\"layer\":{\"app/(app)/detections/page\":\"action-browser\"},\"filename\":\"app/(app)/detections/actions.ts\",\"exportedName\":\"setDetectionEnabled\"}},\"edge\":{},\"encryptionKey\":\"process.env.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY\"}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{"
|
|
1
|
+
{"node":{"60904711541a5b6e8be64254b303922ddc94e08606":{"workers":{"app/(app)/data-shares/page":{"moduleId":"19934","async":false}},"layer":{"app/(app)/data-shares/page":"action-browser"},"filename":"app/(app)/data-shares/actions.ts","exportedName":"setEgressDecision"},"40647586a6186e2ce3b57abfbc81ddc3c4e6438393":{"workers":{"app/(app)/exceptions/[id]/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/new/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/page":{"moduleId":"39831","async":false}},"layer":{"app/(app)/exceptions/[id]/page":"action-browser","app/(app)/exceptions/new/page":"action-browser","app/(app)/exceptions/page":"action-browser"},"filename":"app/(app)/exceptions/actions.ts","exportedName":"addException"},"40cbf2573b0407cceb5aba6bb3ee04b268dd67a220":{"workers":{"app/(app)/exceptions/[id]/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/new/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/page":{"moduleId":"39831","async":false}},"layer":{"app/(app)/exceptions/[id]/page":"action-browser","app/(app)/exceptions/new/page":"action-browser","app/(app)/exceptions/page":"action-browser"},"filename":"app/(app)/exceptions/actions.ts","exportedName":"rotateKey"},"40e11aec82ee3efce2cac978f6739e708cd47ee771":{"workers":{"app/(app)/exceptions/[id]/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/new/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/page":{"moduleId":"39831","async":false}},"layer":{"app/(app)/exceptions/[id]/page":"action-browser","app/(app)/exceptions/new/page":"action-browser","app/(app)/exceptions/page":"action-browser"},"filename":"app/(app)/exceptions/actions.ts","exportedName":"approveBlocked"},"608b0415f1414a3814b606fc685b761070aecb9ccc":{"workers":{"app/(app)/exceptions/[id]/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/new/page":{"moduleId":"39831","async":false},"app/(app)/exceptions/page":{"moduleId":"39831","async":false}},"layer":{"app/(app)/exceptions/[id]/page":"action-browser","app/(app)/exceptions/new/page":"action-browser","app/(app)/exceptions/page":"action-browser"},"filename":"app/(app)/exceptions/actions.ts","exportedName":"revokeException"},"40b06e19c41b3d5f8f24a929ea0ac0450df6f4be1f":{"workers":{"app/(app)/scan/page":{"moduleId":"22019","async":false}},"layer":{"app/(app)/scan/page":"action-browser"},"filename":"app/(app)/scan/actions.ts","exportedName":"listDirectory"},"40d0ff8026f9837c6e23802cd615a8526acc0f5e97":{"workers":{"app/(app)/scan/page":{"moduleId":"22019","async":false}},"layer":{"app/(app)/scan/page":"action-browser"},"filename":"app/(app)/scan/actions.ts","exportedName":"runScan"},"608718ec423d6aecefb9c3ab43ac6f7cc0fd4fed26":{"workers":{"app/(app)/inventory/page":{"moduleId":"3749","async":false}},"layer":{"app/(app)/inventory/page":"action-browser"},"filename":"app/(app)/inventory/actions.ts","exportedName":"setMcpTrust"},"70c4223ce7517ce924fd97f85a7e79e709a44d904a":{"workers":{"app/(app)/inventory/page":{"moduleId":"3749","async":false}},"layer":{"app/(app)/inventory/page":"action-browser"},"filename":"app/(app)/inventory/actions.ts","exportedName":"setFileAccess"},"00308d8730a89a2bf0ed24221b02cb29e43fd777ec":{"workers":{"app/(app)/updates/page":{"moduleId":"53027","async":false}},"layer":{"app/(app)/updates/page":"action-browser"},"filename":"app/(app)/updates/actions.ts","exportedName":"checkNow"},"40b2eee5a2a57a32286772be20ad50d658b5504d28":{"workers":{"app/(app)/updates/page":{"moduleId":"53027","async":false}},"layer":{"app/(app)/updates/page":"action-browser"},"filename":"app/(app)/updates/actions.ts","exportedName":"installPlugin"},"40f230d5f730c4c9042ef17075f214768a1fdbd86f":{"workers":{"app/(app)/updates/page":{"moduleId":"53027","async":false}},"layer":{"app/(app)/updates/page":"action-browser"},"filename":"app/(app)/updates/actions.ts","exportedName":"applyUpdate"},"409b1174224a8513bad6cf42b76908f430a0a998b5":{"workers":{"app/(app)/settings/page":{"moduleId":"44408","async":false}},"layer":{"app/(app)/settings/page":"action-browser"},"filename":"app/(app)/settings/actions.ts","exportedName":"saveSettings"},"0090dc201dc5df89a9f97443069adb3ef6dc59411e":{"workers":{"app/(app)/detections/page":{"moduleId":"33554","async":false}},"layer":{"app/(app)/detections/page":"action-browser"},"filename":"app/(app)/detections/actions.ts","exportedName":"recheckDetections"},"406dc69c8f7b8a52010e31fd81d19a4df31f5b94e2":{"workers":{"app/(app)/detections/page":{"moduleId":"33554","async":false}},"layer":{"app/(app)/detections/page":"action-browser"},"filename":"app/(app)/detections/actions.ts","exportedName":"pullDetectionUpdate"},"605a5c8fc5e99a6a1b5171a6e0d5724344c6969d31":{"workers":{"app/(app)/detections/page":{"moduleId":"33554","async":false}},"layer":{"app/(app)/detections/page":"action-browser"},"filename":"app/(app)/detections/actions.ts","exportedName":"setDetectionPolicy"},"60bccc0df815710ae15ade38e43c65c36d6d9bcd8b":{"workers":{"app/(app)/detections/page":{"moduleId":"33554","async":false}},"layer":{"app/(app)/detections/page":"action-browser"},"filename":"app/(app)/detections/actions.ts","exportedName":"setDetectionEnabled"}},"edge":{},"encryptionKey":"K2CX28HPN6ydg5wTmE1+svEVwhN8PwoDuIb64f4EX/8="}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[311],{560:(e,s,r)=>{"use strict";r.d(s,{DataSharesClient:()=>u});var t=r(2330),n=r(7942),i=r(8726),l=r(7071),o=r(6146),a=r(7194),d=r(8622),c=r(8013);let h=(0,c.createServerReference)("60904711541a5b6e8be64254b303922ddc94e08606",c.callServer,void 0,c.findSourceMapURL,"setEgressDecision");function u(e){var s;let{q:r,stats:c,groups:u,review:x,destination:m,selectedDest:v,selectedEndpoint:b}=e,p=(0,l.useRouter)(),f=(0,l.usePathname)(),[j,P]=(0,o.useState)({}),[g,C]=(0,o.useState)(!0),[M,w]=(0,o.useTransition)(),[N,S]=(0,o.useState)(null),k=(0,o.useCallback)(e=>{let s=(function(e){var s;let r=new URLSearchParams,t=null==(s=e.q)?void 0:s.trim();return t&&r.set("q",t),e.dest&&(r.set("dest",e.dest),e.ep&&r.set("ep",e.ep)),r})(e).toString();return s?"".concat(f,"?").concat(s):f},[f]),{query:H,setQuery:R,onNavigate:y}=(0,d.Y)(r,e=>k({q:e})),Z=(0,o.useCallback)(e=>{var s;y(null!=(s=e.q)?s:""),p.push(k(e))},[y,p,k]),L=v?{id:v,...b?{endpointId:b}:{}}:null,V=null!==v,B=m&&b&&null!=(s=m.endpoints.find(e=>e.id===b))?s:null,E=e=>{Z({q:r,dest:e})},_=r.trim();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-3.5 flex shrink-0 flex-wrap items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"flex h-9 w-full items-center gap-2 rounded-lg border border-border bg-surface-2 px-3 sm:w-80",children:[(0,t.jsx)(a.WI,{"aria-hidden":!0,focusable:!1,className:"size-4 shrink-0 text-text-3"}),(0,t.jsx)("input",{value:H,onChange:e=>{R(e.target.value)},placeholder:"Search destinations, URLs & call sites…","aria-label":"Search data shares",className:"min-w-0 flex-1 bg-transparent text-sm text-text placeholder:text-text-3 focus:outline-none"})]}),(0,t.jsx)("span",{className:"h-6 w-px bg-border"}),(0,t.jsxs)("span",{className:"text-ui text-text-3",children:[(0,t.jsx)("b",{className:"text-text",children:c.destinations})," destinations \xb7"," ",(0,t.jsx)("b",{className:"text-text",children:c.endpoints})," endpoints \xb7"," ",(0,t.jsx)("b",{className:"text-text",children:c.callSites})," call sites"]})]}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[!_&&(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(n.t6,{items:x,open:g,onToggle:()=>{C(e=>!e)},onReview:E})}),(0,t.jsx)(i.Zp,{className:"flex min-h-112 flex-1 flex-col overflow-hidden",children:(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3.5",children:0===u.length?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-12 text-center text-text-3",children:[(0,t.jsx)(a.WI,{"aria-hidden":!0,focusable:!1,className:"size-6"}),(0,t.jsx)("div",{className:"text-sm",children:_?"No destinations match “".concat(r,"”"):"No outbound data shares detected"})]}):(0,t.jsx)(n.Im,{groups:u,expanded:j,forceExpand:!!_,selection:L,drawerOpen:V,onToggle:e=>{P(s=>({...s,[e]:!s[e]}))},onOpenDest:E,onOpenEndpoint:(e,s)=>{Z({q:r,dest:e,ep:s})}})})})]}),(0,t.jsx)(i.cj,{open:V,onOpenChange:e=>{e||(S(null),Z({q:r}))},children:(0,t.jsxs)(i.h,{className:"w-117 max-w-[92%] gap-0 p-0","aria-describedby":void 0,children:[(0,t.jsx)(i.qp,{className:"sr-only",children:m?m.name:"Data share detail"}),m?(0,t.jsxs)(t.Fragment,{children:[N&&(0,t.jsx)("div",{role:"alert",className:"border-b border-border bg-sev-critical-fill px-4 py-2.5 text-sm text-sev-critical",children:N}),(0,t.jsx)(n.MX,{destination:m,endpoint:B,isSettingDecision:M,onSetDecision:e=>{M||(S(null),w(async()=>{try{await h(m.id,e)||S("This destination no longer exists — reload to refresh the list.")}catch(e){S("Could not update the egress decision. Please try again.")}}))},onPick:e=>{Z({q:r,dest:m.id,ep:e})},onBack:()=>{Z({q:r,dest:m.id})}})]}):(0,t.jsx)("div",{className:"grid h-full place-items-center p-6 text-center text-sm text-text-3",children:"Not found"})]})})]})}},7071:(e,s,r)=>{"use strict";var t=r(7495);r.o(t,"usePathname")&&r.d(s,{usePathname:function(){return t.usePathname}}),r.o(t,"useRouter")&&r.d(s,{useRouter:function(){return t.useRouter}}),r.o(t,"useSearchParams")&&r.d(s,{useSearchParams:function(){return t.useSearchParams}})},7134:(e,s,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,560))},7194:(e,s,r)=>{"use strict";r.d(s,{RY:()=>a,WI:()=>n.WI,Ze:()=>c,Zu:()=>n.Zu,_G:()=>n._G,fN:()=>d,iB:()=>h,j4:()=>u,kp:()=>l,mL:()=>n.mL,np:()=>o});var t=r(2330),n=r(7942);let i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"},l=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M8 6h12M8 12h12M8 18h12"}),(0,t.jsx)("circle",{cx:"3.6",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.6",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.6",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),o=e=>(0,t.jsx)("svg",{...i,...e,children:(0,t.jsx)("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),a=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("circle",{cx:"7.5",cy:"15.5",r:"4.5"}),(0,t.jsx)("path",{d:"M10.7 12.3 21 2M15 8l3 3M18 5l3 3"})]}),d=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),(0,t.jsx)("path",{d:"M21 3v6h-6"})]}),c=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,t.jsx)("path",{d:"M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.09a1.7 1.7 0 0 0-1.11-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.7 1.7 0 0 0 .34-1.87 1.7 1.7 0 0 0-1.56-1.03H3a2 2 0 1 1 0-4h.09a1.7 1.7 0 0 0 1.56-1.11 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.7 1.7 0 0 0 1.87.34h.08A1.7 1.7 0 0 0 10.12 3V3a2 2 0 1 1 4 0v.09a1.7 1.7 0 0 0 1.03 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87v.08a1.7 1.7 0 0 0 1.56 1.03H21a2 2 0 1 1 0 4h-.09a1.7 1.7 0 0 0-1.56 1.03Z"})]}),h=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M6 3h9l3 3v15H6z"}),(0,t.jsx)("path",{d:"M15 3v3h3"}),(0,t.jsx)("path",{d:"M9 12h6M9 16h4"})]}),u=e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:510,height:236,viewBox:"0 0 510 236",fill:"none",...e,children:[(0,t.jsx)("path",{d:"M329.798 26H302.492V169.68H329.798V126.99H344.796L374.425 169.57H405.11L364.293 113.206L403.6 65.6621H371.909L343.689 101.616H329.798V26.0042V26Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M224.398 172C234.998 172 247.996 167.417 254.994 155.653H255.595V169.607H282.394V66.5446H255.595V80.2995H254.994C247.996 68.5362 234.994 63.7539 224.398 63.7539C194.799 63.7539 178 88.6717 178 117.776C178 146.879 194.799 172 224.398 172ZM205.802 117.776C205.802 101.031 213.201 85.2805 230.998 85.2805C248.796 85.2805 256.195 101.031 256.195 117.776C256.195 134.52 248.796 150.469 230.998 150.469C213.201 150.469 205.802 134.52 205.802 117.776Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M452.006 172C462.606 172 475.604 167.417 482.602 155.653H483.203V169.607H510.002V66.5446H483.203V80.2995H482.602C475.604 68.5362 462.602 63.7539 452.006 63.7539C422.407 63.7539 405.608 88.6717 405.608 117.776C405.608 146.879 422.407 172 452.006 172ZM433.409 117.776C433.409 101.031 440.809 85.2805 458.606 85.2805C476.403 85.2805 483.803 101.031 483.803 117.776C483.803 134.52 476.403 150.469 458.606 150.469C440.809 150.469 433.409 134.52 433.409 117.776Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M54 118H0C0 88.3759 24.3759 64 54 64C83.6241 64 108 88.3759 108 118H54Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M54 118H108C108 147.624 83.6241 172 54 172C24.3759 172 0 147.624 0 118H54Z",fill:"#00E0B8"}),(0,t.jsx)("path",{d:"M81 54C95.9117 54 108 41.9117 108 27C108 12.0883 95.9117 0 81 0C66.0883 0 54 12.0883 54 27C54 41.9117 66.0883 54 81 54Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M27 236C41.9117 236 54 223.912 54 209C54 194.088 41.9117 182 27 182C12.0883 182 0 194.088 0 209C0 223.912 12.0883 236 27 236Z",fill:"#00E0B8"})]})},8013:(e,s,r)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var r in s)Object.defineProperty(e,r,{enumerable:!0,get:s[r]})}(s,{callServer:function(){return t.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let t=r(7982),n=r(3738),i=r(4656)},8622:(e,s,r)=>{"use strict";r.d(s,{Y:()=>i});var t=r(7071),n=r(6146);function i(e,s){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,t.useRouter)(),[l,o]=(0,n.useState)(e),a=(0,n.useRef)(e),d=(0,n.useRef)(null),c=(0,n.useRef)(s);(0,n.useEffect)(()=>{c.current=s},[s]);let h=(0,n.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),u=(0,n.useCallback)(e=>{h(),a.current=e.trim(),o(e)},[h]);return(0,n.useEffect)(()=>{e!==a.current&&(a.current=e,o(e))},[e]),(0,n.useEffect)(()=>{let s=l.trim();if(s===e||s===a.current)return;let t=setTimeout(()=>{a.current=s,d.current=null,i.push(c.current(l))},r);return d.current=t,()=>{clearTimeout(t),d.current=null}},[l,e,r,i]),{query:l,setQuery:o,onNavigate:u}}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=7134)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[664],{4487:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,6131))},6131:(e,r,n)=>{"use strict";n.d(r,{DetectionsClient:()=>b});var t=n(2330),s=n(7942),i=n(8726),o=n(7071),l=n(6146),a=n(8622),d=n(8013);let u=(0,d.createServerReference)("60bccc0df815710ae15ade38e43c65c36d6d9bcd8b",d.callServer,void 0,d.findSourceMapURL,"setDetectionEnabled"),c=(0,d.createServerReference)("605a5c8fc5e99a6a1b5171a6e0d5724344c6969d31",d.callServer,void 0,d.findSourceMapURL,"setDetectionPolicy"),v=(0,d.createServerReference)("0090dc201dc5df89a9f97443069adb3ef6dc59411e",d.callServer,void 0,d.findSourceMapURL,"recheckDetections"),h=(0,d.createServerReference)("406dc69c8f7b8a52010e31fd81d19a4df31f5b94e2",d.callServer,void 0,d.findSourceMapURL,"pullDetectionUpdate"),m=[["all","All"],["library","Library"],["updates","Updates"]];function b(e){var r,n;let{list:d,detail:b,filter:f,query:P,selectedId:p}=e,S=(0,o.useRouter)(),R=(0,o.usePathname)(),[g,x]=(0,l.useState)(null),[y,C]=(0,l.useState)(!1),[k,w]=(0,l.useTransition)(),[j,U]=(0,l.useTransition)(),q=(0,l.useMemo)(()=>{let e=new Map;for(let r of d.items)r.latestVersion&&e.set(r.id,r.latestVersion);return e},[d.items]),M=(0,l.useCallback)(e=>{let r=(function(e){let r=new URLSearchParams;e.filter&&"all"!==e.filter&&r.set("filter",e.filter);let n=e.q.trim();return n&&r.set("q",n),e.id&&r.set("id",e.id),r})(e).toString();return r?"".concat(R,"?").concat(r):R},[R]),{query:N,setQuery:_,onNavigate:E}=(0,a.Y)(P,e=>M({filter:f,q:e})),L=(0,l.useCallback)(e=>{E(e.q),S.push(M(e))},[E,S,M]),O=b&&g&&null!=(n=b.rules.find(e=>e.id===g))?n:null,T=b?(0,s.Xg)(b):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-4 grid min-h-0 flex-1 grid-cols-[352px_1fr] gap-4",children:[(0,t.jsx)(s.A7,{items:d.items,counts:d.counts,activeId:p,query:N,filter:f,onQueryChange:_,onFilterChange:e=>{L({filter:e,q:N})},onSelect:e=>{x(null),L({filter:f,q:N,id:e})},filterTabs:m,updatesById:q}),(0,t.jsx)(i.Zp,{className:"flex flex-col overflow-hidden shadow-sm",children:b?(0,t.jsx)(s.MF,{d:b,onOpenRule:x,onToggleEnabled:()=>{k||(L({filter:f,q:N,id:b.id}),w(()=>{u(b.id,!b.enabled)}))},onChangePolicy:e=>{w(()=>{c(b.id,e)})},onOpenUpdate:"update-available"===T?()=>{C(!0)}:void 0,onRecheck:"unknown"===T?()=>{w(()=>{v()})}:void 0,unknownHint:(0,t.jsxs)(t.Fragment,{children:["run ",(0,t.jsx)("code",{className:"font-mono",children:"aka detections"})," or start a Claude Code session to record what your binaries ship"]})}):(0,t.jsx)("div",{className:"grid flex-1 place-items-center p-6 text-center text-sm text-text-3",children:0===d.counts.all?"No detections installed — run the plugin to populate the local store.":0===d.items.length?"updates"===f?"No pending updates — every detection is up to date.":"No detections in this view.":"Select a detection to view its rules"})})]}),(0,t.jsx)(s.wO,{rule:O,onClose:()=>{x(null)}},null!=g?g:"no-rule"),(0,t.jsx)(s.b1,{det:y&&(null==b||null==(r=b.update)?void 0:r.available)?b:null,isUpdating:j,onClose:()=>{C(!1)},onConfirm:e=>{j||(L({filter:f,q:N,id:e}),U(async()=>{try{await h(e)}finally{C(!1)}}))}})]})}},7071:(e,r,n)=>{"use strict";var t=n(7495);n.o(t,"usePathname")&&n.d(r,{usePathname:function(){return t.usePathname}}),n.o(t,"useRouter")&&n.d(r,{useRouter:function(){return t.useRouter}}),n.o(t,"useSearchParams")&&n.d(r,{useSearchParams:function(){return t.useSearchParams}})},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return t.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let t=n(7982),s=n(3738),i=n(4656)},8622:(e,r,n)=>{"use strict";n.d(r,{Y:()=>i});var t=n(7071),s=n(6146);function i(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,t.useRouter)(),[o,l]=(0,s.useState)(e),a=(0,s.useRef)(e),d=(0,s.useRef)(null),u=(0,s.useRef)(r);(0,s.useEffect)(()=>{u.current=r},[r]);let c=(0,s.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),v=(0,s.useCallback)(e=>{c(),a.current=e.trim(),l(e)},[c]);return(0,s.useEffect)(()=>{e!==a.current&&(a.current=e,l(e))},[e]),(0,s.useEffect)(()=>{let r=o.trim();if(r===e||r===a.current)return;let t=setTimeout(()=>{a.current=r,d.current=null,i.push(u.current(o))},n);return d.current=t,()=>{clearTimeout(t),d.current=null}},[o,e,n,i]),{query:o,setQuery:l,onNavigate:v}}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=4487)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{6434:(e,r,n)=>{Promise.resolve().then(n.t.bind(n,7338,23)),Promise.resolve().then(n.bind(n,8597))},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return t.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return c.findSourceMapURL}});let t=n(7982),c=n(3738),o=n(4656)},8597:(e,r,n)=>{"use strict";n.d(r,{ExceptionDetailClient:()=>l});var t=n(2330),c=n(7942),o=n(6146),i=n(8013);let u=(0,i.createServerReference)("608b0415f1414a3814b606fc685b761070aecb9ccc",i.callServer,void 0,i.findSourceMapURL,"revokeException");function l(e){let{exception:r}=e,[n,i]=(0,o.useState)(null),[l,a]=(0,o.useTransition)();return(0,t.jsx)(c.Gj,{exception:r,busy:l,error:n,onRevoke:e=>{a(async()=>{var n;let t=await u(r.id,e);i(t.ok?null:null!=(n=t.error)?n:"Could not revoke.")})}})}}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=6434)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39],{453:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,7338,23)),Promise.resolve().then(t.bind(t,9337))},7071:(e,r,t)=>{"use strict";var n=t(7495);t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},8013:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return u.findSourceMapURL}});let n=t(7982),u=t(3738),a=t(4656)},9337:(e,r,t)=>{"use strict";t.d(r,{NewExceptionClient:()=>i});var n=t(2330),u=t(7942),a=t(7071),c=t(6146),o=t(8013);let s=(0,o.createServerReference)("40647586a6186e2ce3b57abfbc81ddc3c4e6438393",o.callServer,void 0,o.findSourceMapURL,"addException");function i(e){let{rules:r}=e,t=(0,a.useRouter)(),[o,i]=(0,c.useState)(null),[l,f]=(0,c.useTransition)();return(0,n.jsx)(u.dt,{rules:r,onSubmit:e=>{f(async()=>{let r=await s(e);if(r.ok)t.push("/exceptions");else{var n;i(null!=(n=r.error)?n:"Could not create the exception.")}})},busy:l,error:o})}}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=453)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[782],{2480:(e,n,r)=>{"use strict";r.d(n,{ExceptionsClient:()=>v});var s=r(2330),o=r(7942),i=r(8726),t=r(7338),l=r.n(t),a=r(7071),d=r(6146),c=r(8013);let u=(0,c.createServerReference)("40e11aec82ee3efce2cac978f6739e708cd47ee771",c.callServer,void 0,c.findSourceMapURL,"approveBlocked"),h=(0,c.createServerReference)("40cbf2573b0407cceb5aba6bb3ee04b268dd67a220",c.callServer,void 0,c.findSourceMapURL,"rotateKey");function v(e){let{items:n,blocked:r,includeTerminal:t,blockedWindow:c,keyVersion:v,activePermanent:b}=e,m=(0,a.useRouter)(),[P,p]=(0,d.useState)(null),[f,S]=(0,d.useState)(!1),[x,j]=(0,d.useState)(null),[y,R]=(0,d.useTransition)();return(0,s.jsxs)("div",{className:"px-8 pb-10 pt-7",children:[(0,s.jsx)(o.ec,{title:"Exceptions",sub:"Explicit, audited bypasses — one exact value each, never a rule-wide suppression",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.$n,{asChild:!0,variant:"ghost",tone:"neutral",size:"sm",children:(0,s.jsx)(l(),{href:t?"/exceptions":"/exceptions?all=1",children:t?"Active only":"Show all (audit)"})}),(0,s.jsxs)(i.$n,{variant:"outline",tone:"neutral",size:"sm",onClick:()=>{j(null),S(!0)},children:["Rotate key",null!==v&&" (v".concat(String(v),")")]}),(0,s.jsx)(i.$n,{asChild:!0,variant:"solid",tone:"primary",size:"sm",children:(0,s.jsx)(l(),{href:"/exceptions/new",children:"Pre-authorize a value"})})]})}),(0,s.jsx)(o.VB,{items:r,onApprove:e=>{var n;j(null),p(null!=(n=r.find(n=>n.reference===e))?n:null)},blockedWindow:c,onBlockedWindowChange:e=>{let n=new URLSearchParams;n.set("window",e),t&&n.set("all","1"),m.push("/exceptions?".concat(n.toString()))}}),(0,s.jsx)(o.Eb,{items:n,includeTerminal:t,onSelect:e=>{m.push("/exceptions/".concat(e.slice(0,8)))}}),(0,s.jsx)(o.fu,{entry:P,open:null!==P,onOpenChange:e=>{e||(p(null),j(null))},onSubmit:e=>{R(async()=>{let n=await u(e);if(n.ok)p(null),j(null);else{var r;j(null!=(r=n.error)?r:"Could not grant the exception.")}})},busy:y,error:x}),(0,s.jsx)(o.nZ,{open:f,onOpenChange:e=>{S(e),e||j(null)},activePermanent:b,keyVersion:v,onConfirm:e=>{R(async()=>{let n=await h(e);if(n.ok)S(!1),j(null);else{var r;j(null!=(r=n.error)?r:"Could not rotate the key.")}})},busy:y,error:x})]})}},4337:(e,n,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,2480))},7071:(e,n,r)=>{"use strict";var s=r(7495);r.o(s,"usePathname")&&r.d(n,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(n,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(n,{useSearchParams:function(){return s.useSearchParams}})},8013:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),!function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}});let s=r(7982),o=r(3738),i=r(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=4337)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20],{3541:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,7102))},7071:(e,r,n)=>{"use strict";var s=n(7495);n.o(s,"usePathname")&&n.d(r,{usePathname:function(){return s.usePathname}}),n.o(s,"useRouter")&&n.d(r,{useRouter:function(){return s.useRouter}}),n.o(s,"useSearchParams")&&n.d(r,{useSearchParams:function(){return s.useSearchParams}})},7102:(e,r,n)=>{"use strict";n.d(r,{InventoryClient:()=>h});var s=n(2330),t=n(7942),i=n(8726),o=n(7071),l=n(6146),a=n(8622),c=n(8013);let u=(0,c.createServerReference)("70c4223ce7517ce924fd97f85a7e79e709a44d904a",c.callServer,void 0,c.findSourceMapURL,"setFileAccess"),d=(0,c.createServerReference)("608718ec423d6aecefb9c3ab43ac6f7cc0fd4fed26",c.callServer,void 0,c.findSourceMapURL,"setMcpTrust");function h(e){let{harnesses:r,assetGroups:n,projects:c,attention:h,activeSel:m,proj:v,selHarness:b,assetDetail:f,tree:P,blocked:p,harnessEvents:x,fileDetail:S,path:j,fq:y,drawer:g}=e,R=(0,o.useRouter)(),C=(0,o.usePathname)(),[k,w]=(0,l.useState)("tree"),[N,T]=(0,l.useState)("all"),[M,_]=(0,l.useState)(""),[q,E]=(0,l.useState)(!0),[L,F]=(0,l.useState)(()=>{var e;let n=null==(e=r[0])?void 0:e.id;return n?{[n]:!0}:{}}),[O,U]=(0,l.useTransition)(),[A,Q]=(0,l.useState)(null),B=(0,l.useCallback)(e=>{let r=(function(e){var r;let n=new URLSearchParams;e.sel&&(n.set("st",e.sel.type),n.set("si",e.sel.id)),e.path&&e.path.length>0&&n.set("path",e.path.join("/"));let s=null==(r=e.fq)?void 0:r.trim();return s&&n.set("fq",s),e.file&&n.set("file",e.file),n})(e).toString();return r?"".concat(C,"?").concat(r):C},[C]),{query:Y,setQuery:G,onNavigate:H}=(0,a.Y)(y,e=>B({sel:m,path:j,fq:e})),I=(0,l.useCallback)(e=>{var r;H(null!=(r=e.fq)?r:""),R.push(B(e))},[H,R,B]),V=(e,r)=>{O||(Q(null),U(async()=>{try{await r()||Q("Couldn't ".concat(e," — reload to refresh."))}catch(r){Q("Couldn't ".concat(e,". Please try again."))}}))},W=e=>{I({sel:{type:"project",id:e}})},Z=e=>{I({sel:{type:e.type,id:e.id}})};return(0,s.jsxs)(s.Fragment,{children:[A&&(0,s.jsx)("div",{role:"alert",className:"mb-3 shrink-0 rounded-lg border border-border bg-sev-critical-fill px-4 py-2.5 text-sm text-sev-critical",children:A}),(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 gap-4",children:[(0,s.jsx)(t._c,{projects:c,assetGroups:n,harnesses:r,sel:m,viewMode:k,onViewMode:w,expanded:L,onToggleExpand:(e,r)=>{F(n=>({...n,[e]:null!=r?r:!n[e]}))},typeFilter:N,onTypeFilter:T,query:M,onQuery:_,attention:h,onSelectProject:W,onSelectAsset:Z,onSelectHarness:e=>{I({sel:{type:"harness",id:e}})}}),v?(0,s.jsx)(t.kL,{proj:v,path:j,onPathChange:e=>{I({sel:m,path:e})},query:Y,onQueryChange:G,tree:P,isLoading:!1,error:null,onSetAccess:(e,r)=>{V("update file access",()=>u(v.id,e,r))},onOpenFile:e=>{I({sel:m,path:j,fq:y,file:e})},drawerPath:g,blocked:p,showBlocked:q,onToggleBlocked:()=>{E(e=>!e)}}):(0,s.jsx)(i.Zp,{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:b?(0,s.jsx)(t.y2,{harness:b,events:x,onSelect:Z,onSelectProject:W}):f?(0,s.jsx)(t.i5,{asset:f,onTrust:e=>{V("update MCP trust",()=>d(f.id,e))}}):(0,s.jsx)("div",{className:"grid min-h-0 flex-1 place-items-center p-8",children:(0,s.jsx)(t.pp,{message:"No assets to display"})})})]}),(0,s.jsx)(i.cj,{open:null!==g&&null!==v,onOpenChange:e=>{e||I({sel:m,path:j,fq:y})},children:(0,s.jsx)(i.h,{className:"max-w-120 p-0","aria-describedby":void 0,children:v&&null!==g&&(S?(0,s.jsx)(t.To,{file:S,onChange:e=>{V("update file access",()=>u(v.id,S.path,e))}}):(0,s.jsx)("div",{className:"grid h-full place-items-center p-6 text-center text-sm text-text-3",children:"File not found"}))})})]})}[...n(3352).PWo.options]},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return t.findSourceMapURL}});let s=n(7982),t=n(3738),i=n(4656)},8622:(e,r,n)=>{"use strict";n.d(r,{Y:()=>i});var s=n(7071),t=n(6146);function i(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,s.useRouter)(),[o,l]=(0,t.useState)(e),a=(0,t.useRef)(e),c=(0,t.useRef)(null),u=(0,t.useRef)(r);(0,t.useEffect)(()=>{u.current=r},[r]);let d=(0,t.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]),h=(0,t.useCallback)(e=>{d(),a.current=e.trim(),l(e)},[d]);return(0,t.useEffect)(()=>{e!==a.current&&(a.current=e,l(e))},[e]),(0,t.useEffect)(()=>{let r=o.trim();if(r===e||r===a.current)return;let s=setTimeout(()=>{a.current=r,c.current=null,i.push(u.current(o))},n);return c.current=s,()=>{clearTimeout(s),c.current=null}},[o,e,n,i]),{query:o,setQuery:l,onNavigate:h}}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=3541)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{5756:(e,s,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,7804))},7804:(e,s,n)=>{"use strict";n.d(s,{ScanClient:()=>x});var r=n(2330),t=n(8726),i=n(7338),l=n.n(i),o=n(6146),a=n(8013);let d=(0,a.createServerReference)("40d0ff8026f9837c6e23802cd615a8526acc0f5e97",a.callServer,void 0,a.findSourceMapURL,"runScan");var c=n(7942);let m=(0,a.createServerReference)("40b06e19c41b3d5f8f24a929ea0ac0450df6f4be1f",a.callServer,void 0,a.findSourceMapURL,"listDirectory");function h(e){let{onSelect:s}=e,[n,i]=(0,o.useState)(!1),[l,a]=(0,o.useState)(!1),[d,h]=(0,o.useState)(null),[x,v]=(0,o.useState)([]),[u,b]=(0,o.useState)(null),[f,p]=(0,o.useState)([]),[j,P]=(0,o.useState)(!1),[g,N]=(0,o.useState)(null),y=()=>{a(!1),h(null),v([]),b(null),p([]),N(null)},S=()=>{i(!1),y()},k=e=>{P(!0),N(null),m(e).then(e=>{var s,n;if(!e.ok||!e.path||!e.entries||!e.crumbs)return void N(null!=(s=e.error)?s:"Could not list directory.");h(e.path),v(e.crumbs),b(null!=(n=e.parent)?n:null),p(e.entries)}).catch(()=>{N("Could not list directory.")}).finally(()=>{P(!1)})};return(0,r.jsxs)(t.AM,{open:n,onOpenChange:e=>{i(e),e||y()},children:[(0,r.jsx)(t.Wv,{asChild:!0,children:(0,r.jsx)(t.$n,{variant:"ghost",tone:"neutral",size:"sm",children:"Browse…"})}),(0,r.jsxs)(t.hl,{align:"end",className:"w-96 p-4",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-label font-semibold uppercase tracking-wider text-text-3",children:l?"Choose a folder":"Browse your filesystem"}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:S,className:"rounded p-1 text-text-3 hover:text-text",children:(0,r.jsx)(c.mD,{name:"x",className:"size-3.5"})})]}),l?(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-xs",children:[u&&(0,r.jsx)(t.$n,{variant:"ghost",size:"icon",className:"size-6",title:"Up one level",onClick:()=>{k(u)},children:(0,r.jsx)(c.mD,{name:"arrow-up",className:"size-3.5"})}),x.map((e,s)=>{let n=s===x.length-1;return(0,r.jsxs)(o.Fragment,{children:[s>0&&(0,r.jsx)(c.mD,{name:"chevron-right",className:"size-3 text-text-3"}),(0,r.jsx)("button",{type:"button",onClick:()=>{k(e.path)},className:n?"cursor-default font-mono font-bold text-text":"font-mono text-text-2 hover:text-text",children:e.name})]},e.path)})]}),(0,r.jsxs)("div",{className:"max-h-64 overflow-y-auto rounded-lg border border-border",children:[j&&(0,r.jsx)("div",{className:"p-3 text-xs text-text-3",children:"Loading…"}),!j&&g&&(0,r.jsx)("div",{className:"p-3 text-xs text-sev-critical",children:g}),!j&&!g&&f.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{k(e.path)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm hover:bg-surface-2",children:[(0,r.jsx)(c.mD,{name:"folder",className:"size-4 shrink-0 text-primary"}),(0,r.jsx)("span",{className:"truncate text-text",children:e.name})]},e.path)),!j&&!g&&0===f.length&&(0,r.jsx)("div",{className:"p-3 text-xs text-text-3",children:"No subfolders."})]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",disabled:!d,onClick:()=>{d&&s(d),S()},children:"Select this folder"})})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("p",{className:"text-xs text-text-3",children:"AKA will list folder names on your machine, starting from your home directory. Nothing is read or scanned until you click Scan."}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(t.$n,{variant:"ghost",tone:"neutral",size:"sm",onClick:S,children:"Cancel"}),(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",onClick:()=>{a(!0),k(void 0)},children:"Allow"})]})]})]})]})}function x(e){let{enabledRuleCount:s}=e,[n,i]=(0,o.useState)(""),[a,c]=(0,o.useState)(null),[m,x]=(0,o.useTransition)(),v=()=>{x(async()=>{c(await d(n))})};return(0,r.jsx)("div",{className:"flex max-w-xl flex-col gap-4",children:(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-5",children:[(0,r.jsx)("div",{className:"mb-1.5 text-label font-semibold uppercase tracking-wider text-text-3",children:"File or directory to scan"}),(0,r.jsxs)("p",{className:"mb-3 text-xs text-text-3",children:["Walked recursively (node_modules, dotdirs, build output and files over 1 MB are skipped). The raw match never lands on disk — findings store only a masked preview and the event keeps a redacted copy. ",String(s)," rule",1===s?"":"s"," enabled."]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(t.pd,{value:n,onChange:e=>{i(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||m||v()},placeholder:"/path/to/project",className:"font-mono"}),(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",disabled:m,onClick:v,children:m?"Scanning…":"Scan"}),(0,r.jsx)(h,{onSelect:e=>{i(e)}})]}),a&&!a.ok&&(0,r.jsx)("p",{className:"mt-3 text-xs text-sev-critical",children:a.error}),(null==a?void 0:a.ok)&&(0,r.jsxs)("div",{className:"mt-3 rounded-lg border border-ok-fill bg-ok-fill px-3 py-2 text-xs text-text",children:["Scanned ",String(a.scanned)," file",1===a.scanned?"":"s"," \xb7"," ",String(a.findings)," finding",1===a.findings?"":"s"," recorded."," ",void 0!==a.findings&&a.findings>0&&(0,r.jsx)(l(),{href:"/findings",className:"font-semibold text-primary underline",children:"View findings"})]})]})})}},8013:(e,s,n)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var n in s)Object.defineProperty(e,n,{enumerable:!0,get:s[n]})}(s,{callServer:function(){return r.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return t.findSourceMapURL}});let r=n(7982),t=n(3738),i=n(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=5756)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[109],{8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let s=n(7982),i=n(3738),o=n(4656)},8188:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,8688))},8688:(e,r,n)=>{"use strict";n.d(r,{SettingsClient:()=>v});var s=n(2330),i=n(7942),o=n(6146),t=n(8013);let l=(0,t.createServerReference)("409b1174224a8513bad6cf42b76908f430a0a998b5",t.callServer,void 0,t.findSourceMapURL,"saveSettings");function v(e){let{settings:r}=e,[n,t]=(0,o.useState)(null),[v,d]=(0,o.useState)(!1),[b,h]=(0,o.useTransition)();return(0,s.jsx)(i.A3,{settings:r,busy:b,error:n,saved:v,onSave:e=>{h(async()=>{var r;let n=await l(e);t(n.ok?null:null!=(r=n.error)?r:"Could not save."),d(n.ok)})}})}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=8188)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{891:(e,n,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{891:(e,n,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,5640))},5640:(e,n,r)=>{"use strict";r.d(n,{UpdatesClient:()=>h});var s=r(2330),i=r(7942),o=r(8726),l=r(6146),t=r(8013);let d=(0,t.createServerReference)("40f230d5f730c4c9042ef17075f214768a1fdbd86f",t.callServer,void 0,t.findSourceMapURL,"applyUpdate"),a=(0,t.createServerReference)("40b2eee5a2a57a32286772be20ad50d658b5504d28",t.callServer,void 0,t.findSourceMapURL,"installPlugin"),c=(0,t.createServerReference)("00308d8730a89a2bf0ed24221b02cb29e43fd777ec",t.callServer,void 0,t.findSourceMapURL,"checkNow");function h(e){let{statuses:n,availablePlugins:r,checkedAt:t,commands:h,installCommands:m}=e,[v,u]=(0,l.useState)({}),[b,P]=(0,l.useState)({}),[f,p]=(0,l.useState)(null),[x,S]=(0,l.useState)(null),[k,j]=(0,l.useState)(!1),[R,g]=(0,l.useState)(null),[w,y]=(0,l.useTransition)(),[,C]=(0,l.useTransition)();return(0,s.jsxs)("div",{className:"flex max-w-3xl flex-col gap-4",children:[(0,s.jsx)(i.bn,{statuses:n,checkedAt:t,busy:w,onCheckNow:()=>{y(async()=>{await c()})},onApply:e=>{var r;let s=n.find(n=>n.id===e);s&&g({id:e,kind:"update",name:s.name,command:null!=(r=h[e])?r:""})},applyingId:f,outcomes:v,restartRequired:k}),(0,s.jsx)(i.JR,{plugins:r,onInstall:e=>{var n;let s=r.find(n=>n.id===e);s&&g({id:e,kind:"install",name:s.name,command:null!=(n=m[e])?n:""})},installingId:x,outcomes:b}),(0,s.jsx)(o.lG,{open:null!==R,onOpenChange:e=>{e||g(null)},children:(0,s.jsxs)(o.Cf,{children:[(0,s.jsxs)(o.c7,{children:[(0,s.jsxs)(o.L3,{children:[(null==R?void 0:R.kind)==="install"?"Install":"Update"," ",null==R?void 0:R.name,"?"]}),(0,s.jsx)(o.rr,{children:"This runs the following command on this machine:"})]}),(0,s.jsxs)(o.R4,{children:[(0,s.jsx)("pre",{className:"overflow-x-auto rounded-lg border border-border bg-surface-2 p-3 font-mono text-xs text-text",children:null==R?void 0:R.command}),(null==R?void 0:R.id)==="cli"&&(0,s.jsxs)("p",{className:"text-xs text-text-3",children:["This replaces the package the dashboard server itself runs from — you’ll need to restart ",(0,s.jsx)("code",{className:"font-mono",children:"aka dashboard"})," afterwards."]})]}),(0,s.jsxs)(o.Es,{children:[(0,s.jsx)(o.$n,{variant:"ghost",tone:"neutral",size:"sm",onClick:()=>{g(null)},children:"Cancel"}),(0,s.jsx)(o.$n,{variant:"solid",tone:"primary",size:"sm",onClick:()=>{R&&(g(null),"update"===R.kind?p(R.id):S(R.id),C(async()=>{let e="update"===R.kind?await d(R.id):await a(R.id),n={ok:e.ok,output:e.output};"update"===R.kind?(u(e=>({...e,[R.id]:n})),p(null),e.restartRequired&&j(!0)):(P(e=>({...e,[R.id]:n})),S(null))}))},children:"Run it"})]})]})})]})}},8013:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),!function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let s=r(7982),i=r(3738),o=r(4656)}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=891)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[311],{6225:(e,s,r)=>{"use strict";r.d(s,{DataSharesClient:()=>u});var t=r(2330),n=r(7942),i=r(8726),l=r(7071),o=r(6146),a=r(7194),d=r(8622),c=r(8013);let h=(0,c.createServerReference)("60c45a9e51bd85022e37df498b524fc5580b62b05e",c.callServer,void 0,c.findSourceMapURL,"setEgressDecision");function u(e){var s;let{q:r,stats:c,groups:u,review:x,destination:m,selectedDest:v,selectedEndpoint:b}=e,p=(0,l.useRouter)(),f=(0,l.usePathname)(),[j,P]=(0,o.useState)({}),[g,C]=(0,o.useState)(!0),[M,w]=(0,o.useTransition)(),[N,S]=(0,o.useState)(null),k=(0,o.useCallback)(e=>{let s=(function(e){var s;let r=new URLSearchParams,t=null==(s=e.q)?void 0:s.trim();return t&&r.set("q",t),e.dest&&(r.set("dest",e.dest),e.ep&&r.set("ep",e.ep)),r})(e).toString();return s?"".concat(f,"?").concat(s):f},[f]),{query:H,setQuery:R,onNavigate:y}=(0,d.Y)(r,e=>k({q:e})),Z=(0,o.useCallback)(e=>{var s;y(null!=(s=e.q)?s:""),p.push(k(e))},[y,p,k]),L=v?{id:v,...b?{endpointId:b}:{}}:null,V=null!==v,B=m&&b&&null!=(s=m.endpoints.find(e=>e.id===b))?s:null,E=e=>{Z({q:r,dest:e})},_=r.trim();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-3.5 flex shrink-0 flex-wrap items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"flex h-9 w-full items-center gap-2 rounded-lg border border-border bg-surface-2 px-3 sm:w-80",children:[(0,t.jsx)(a.WI,{"aria-hidden":!0,focusable:!1,className:"size-4 shrink-0 text-text-3"}),(0,t.jsx)("input",{value:H,onChange:e=>{R(e.target.value)},placeholder:"Search destinations, URLs & call sites…","aria-label":"Search data shares",className:"min-w-0 flex-1 bg-transparent text-sm text-text placeholder:text-text-3 focus:outline-none"})]}),(0,t.jsx)("span",{className:"h-6 w-px bg-border"}),(0,t.jsxs)("span",{className:"text-ui text-text-3",children:[(0,t.jsx)("b",{className:"text-text",children:c.destinations})," destinations \xb7"," ",(0,t.jsx)("b",{className:"text-text",children:c.endpoints})," endpoints \xb7"," ",(0,t.jsx)("b",{className:"text-text",children:c.callSites})," call sites"]})]}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[!_&&(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(n.t6,{items:x,open:g,onToggle:()=>{C(e=>!e)},onReview:E})}),(0,t.jsx)(i.Zp,{className:"flex min-h-112 flex-1 flex-col overflow-hidden",children:(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3.5",children:0===u.length?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-12 text-center text-text-3",children:[(0,t.jsx)(a.WI,{"aria-hidden":!0,focusable:!1,className:"size-6"}),(0,t.jsx)("div",{className:"text-sm",children:_?"No destinations match “".concat(r,"”"):"No outbound data shares detected"})]}):(0,t.jsx)(n.Im,{groups:u,expanded:j,forceExpand:!!_,selection:L,drawerOpen:V,onToggle:e=>{P(s=>({...s,[e]:!s[e]}))},onOpenDest:E,onOpenEndpoint:(e,s)=>{Z({q:r,dest:e,ep:s})}})})})]}),(0,t.jsx)(i.cj,{open:V,onOpenChange:e=>{e||(S(null),Z({q:r}))},children:(0,t.jsxs)(i.h,{className:"w-117 max-w-[92%] gap-0 p-0","aria-describedby":void 0,children:[(0,t.jsx)(i.qp,{className:"sr-only",children:m?m.name:"Data share detail"}),m?(0,t.jsxs)(t.Fragment,{children:[N&&(0,t.jsx)("div",{role:"alert",className:"border-b border-border bg-sev-critical-fill px-4 py-2.5 text-sm text-sev-critical",children:N}),(0,t.jsx)(n.MX,{destination:m,endpoint:B,isSettingDecision:M,onSetDecision:e=>{M||(S(null),w(async()=>{try{await h(m.id,e)||S("This destination no longer exists — reload to refresh the list.")}catch(e){S("Could not update the egress decision. Please try again.")}}))},onPick:e=>{Z({q:r,dest:m.id,ep:e})},onBack:()=>{Z({q:r,dest:m.id})}})]}):(0,t.jsx)("div",{className:"grid h-full place-items-center p-6 text-center text-sm text-text-3",children:"Not found"})]})})]})}},7071:(e,s,r)=>{"use strict";var t=r(7495);r.o(t,"usePathname")&&r.d(s,{usePathname:function(){return t.usePathname}}),r.o(t,"useRouter")&&r.d(s,{useRouter:function(){return t.useRouter}}),r.o(t,"useSearchParams")&&r.d(s,{useSearchParams:function(){return t.useSearchParams}})},7134:(e,s,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,6225))},7194:(e,s,r)=>{"use strict";r.d(s,{RY:()=>a,WI:()=>n.WI,Ze:()=>c,Zu:()=>n.Zu,_G:()=>n._G,fN:()=>d,iB:()=>h,j4:()=>u,kp:()=>l,mL:()=>n.mL,np:()=>o});var t=r(2330),n=r(7942);let i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"},l=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M8 6h12M8 12h12M8 18h12"}),(0,t.jsx)("circle",{cx:"3.6",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.6",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.6",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),o=e=>(0,t.jsx)("svg",{...i,...e,children:(0,t.jsx)("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),a=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("circle",{cx:"7.5",cy:"15.5",r:"4.5"}),(0,t.jsx)("path",{d:"M10.7 12.3 21 2M15 8l3 3M18 5l3 3"})]}),d=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),(0,t.jsx)("path",{d:"M21 3v6h-6"})]}),c=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,t.jsx)("path",{d:"M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.09a1.7 1.7 0 0 0-1.11-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.7 1.7 0 0 0 .34-1.87 1.7 1.7 0 0 0-1.56-1.03H3a2 2 0 1 1 0-4h.09a1.7 1.7 0 0 0 1.56-1.11 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.7 1.7 0 0 0 1.87.34h.08A1.7 1.7 0 0 0 10.12 3V3a2 2 0 1 1 4 0v.09a1.7 1.7 0 0 0 1.03 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87v.08a1.7 1.7 0 0 0 1.56 1.03H21a2 2 0 1 1 0 4h-.09a1.7 1.7 0 0 0-1.56 1.03Z"})]}),h=e=>(0,t.jsxs)("svg",{...i,...e,children:[(0,t.jsx)("path",{d:"M6 3h9l3 3v15H6z"}),(0,t.jsx)("path",{d:"M15 3v3h3"}),(0,t.jsx)("path",{d:"M9 12h6M9 16h4"})]}),u=e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:510,height:236,viewBox:"0 0 510 236",fill:"none",...e,children:[(0,t.jsx)("path",{d:"M329.798 26H302.492V169.68H329.798V126.99H344.796L374.425 169.57H405.11L364.293 113.206L403.6 65.6621H371.909L343.689 101.616H329.798V26.0042V26Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M224.398 172C234.998 172 247.996 167.417 254.994 155.653H255.595V169.607H282.394V66.5446H255.595V80.2995H254.994C247.996 68.5362 234.994 63.7539 224.398 63.7539C194.799 63.7539 178 88.6717 178 117.776C178 146.879 194.799 172 224.398 172ZM205.802 117.776C205.802 101.031 213.201 85.2805 230.998 85.2805C248.796 85.2805 256.195 101.031 256.195 117.776C256.195 134.52 248.796 150.469 230.998 150.469C213.201 150.469 205.802 134.52 205.802 117.776Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M452.006 172C462.606 172 475.604 167.417 482.602 155.653H483.203V169.607H510.002V66.5446H483.203V80.2995H482.602C475.604 68.5362 462.602 63.7539 452.006 63.7539C422.407 63.7539 405.608 88.6717 405.608 117.776C405.608 146.879 422.407 172 452.006 172ZM433.409 117.776C433.409 101.031 440.809 85.2805 458.606 85.2805C476.403 85.2805 483.803 101.031 483.803 117.776C483.803 134.52 476.403 150.469 458.606 150.469C440.809 150.469 433.409 134.52 433.409 117.776Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M54 118H0C0 88.3759 24.3759 64 54 64C83.6241 64 108 88.3759 108 118H54Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M54 118H108C108 147.624 83.6241 172 54 172C24.3759 172 0 147.624 0 118H54Z",fill:"#00E0B8"}),(0,t.jsx)("path",{d:"M81 54C95.9117 54 108 41.9117 108 27C108 12.0883 95.9117 0 81 0C66.0883 0 54 12.0883 54 27C54 41.9117 66.0883 54 81 54Z",fill:"#1B1F24"}),(0,t.jsx)("path",{d:"M27 236C41.9117 236 54 223.912 54 209C54 194.088 41.9117 182 27 182C12.0883 182 0 194.088 0 209C0 223.912 12.0883 236 27 236Z",fill:"#00E0B8"})]})},8013:(e,s,r)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var r in s)Object.defineProperty(e,r,{enumerable:!0,get:s[r]})}(s,{callServer:function(){return t.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let t=r(7982),n=r(3738),i=r(4656)},8622:(e,s,r)=>{"use strict";r.d(s,{Y:()=>i});var t=r(7071),n=r(6146);function i(e,s){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,t.useRouter)(),[l,o]=(0,n.useState)(e),a=(0,n.useRef)(e),d=(0,n.useRef)(null),c=(0,n.useRef)(s);(0,n.useEffect)(()=>{c.current=s},[s]);let h=(0,n.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),u=(0,n.useCallback)(e=>{h(),a.current=e.trim(),o(e)},[h]);return(0,n.useEffect)(()=>{e!==a.current&&(a.current=e,o(e))},[e]),(0,n.useEffect)(()=>{let s=l.trim();if(s===e||s===a.current)return;let t=setTimeout(()=>{a.current=s,d.current=null,i.push(c.current(l))},r);return d.current=t,()=>{clearTimeout(t),d.current=null}},[l,e,r,i]),{query:l,setQuery:o,onNavigate:u}}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=7134)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[664],{4487:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,8730))},7071:(e,r,n)=>{"use strict";var t=n(7495);n.o(t,"usePathname")&&n.d(r,{usePathname:function(){return t.usePathname}}),n.o(t,"useRouter")&&n.d(r,{useRouter:function(){return t.useRouter}}),n.o(t,"useSearchParams")&&n.d(r,{useSearchParams:function(){return t.useSearchParams}})},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return t.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let t=n(7982),s=n(3738),i=n(4656)},8622:(e,r,n)=>{"use strict";n.d(r,{Y:()=>i});var t=n(7071),s=n(6146);function i(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,t.useRouter)(),[o,l]=(0,s.useState)(e),a=(0,s.useRef)(e),d=(0,s.useRef)(null),u=(0,s.useRef)(r);(0,s.useEffect)(()=>{u.current=r},[r]);let c=(0,s.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),v=(0,s.useCallback)(e=>{c(),a.current=e.trim(),l(e)},[c]);return(0,s.useEffect)(()=>{e!==a.current&&(a.current=e,l(e))},[e]),(0,s.useEffect)(()=>{let r=o.trim();if(r===e||r===a.current)return;let t=setTimeout(()=>{a.current=r,d.current=null,i.push(u.current(o))},n);return d.current=t,()=>{clearTimeout(t),d.current=null}},[o,e,n,i]),{query:o,setQuery:l,onNavigate:v}}},8730:(e,r,n)=>{"use strict";n.d(r,{DetectionsClient:()=>b});var t=n(2330),s=n(7942),i=n(8726),o=n(7071),l=n(6146),a=n(8622),d=n(8013);let u=(0,d.createServerReference)("60a51308eda41ed9c6fc81ceb5dd7c8166dd83cb12",d.callServer,void 0,d.findSourceMapURL,"setDetectionEnabled"),c=(0,d.createServerReference)("60f2a2225625d05b3a1b2631449a722b034e068b65",d.callServer,void 0,d.findSourceMapURL,"setDetectionPolicy"),v=(0,d.createServerReference)("000d804f5e666a2d48be3391f7dda845e7b4a0066a",d.callServer,void 0,d.findSourceMapURL,"recheckDetections"),h=(0,d.createServerReference)("4036370a60a74b6dc803ac72b294ae6f349206e868",d.callServer,void 0,d.findSourceMapURL,"pullDetectionUpdate"),m=[["all","All"],["library","Library"],["updates","Updates"]];function b(e){var r,n;let{list:d,detail:b,filter:f,query:P,selectedId:p}=e,S=(0,o.useRouter)(),R=(0,o.usePathname)(),[g,x]=(0,l.useState)(null),[y,C]=(0,l.useState)(!1),[k,w]=(0,l.useTransition)(),[j,U]=(0,l.useTransition)(),q=(0,l.useMemo)(()=>{let e=new Map;for(let r of d.items)r.latestVersion&&e.set(r.id,r.latestVersion);return e},[d.items]),M=(0,l.useCallback)(e=>{let r=(function(e){let r=new URLSearchParams;e.filter&&"all"!==e.filter&&r.set("filter",e.filter);let n=e.q.trim();return n&&r.set("q",n),e.id&&r.set("id",e.id),r})(e).toString();return r?"".concat(R,"?").concat(r):R},[R]),{query:N,setQuery:_,onNavigate:E}=(0,a.Y)(P,e=>M({filter:f,q:e})),L=(0,l.useCallback)(e=>{E(e.q),S.push(M(e))},[E,S,M]),O=b&&g&&null!=(n=b.rules.find(e=>e.id===g))?n:null,T=b?(0,s.Xg)(b):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-4 grid min-h-0 flex-1 grid-cols-[352px_1fr] gap-4",children:[(0,t.jsx)(s.A7,{items:d.items,counts:d.counts,activeId:p,query:N,filter:f,onQueryChange:_,onFilterChange:e=>{L({filter:e,q:N})},onSelect:e=>{x(null),L({filter:f,q:N,id:e})},filterTabs:m,updatesById:q}),(0,t.jsx)(i.Zp,{className:"flex flex-col overflow-hidden shadow-sm",children:b?(0,t.jsx)(s.MF,{d:b,onOpenRule:x,onToggleEnabled:()=>{k||(L({filter:f,q:N,id:b.id}),w(()=>{u(b.id,!b.enabled)}))},onChangePolicy:e=>{w(()=>{c(b.id,e)})},onOpenUpdate:"update-available"===T?()=>{C(!0)}:void 0,onRecheck:"unknown"===T?()=>{w(()=>{v()})}:void 0,unknownHint:(0,t.jsxs)(t.Fragment,{children:["run ",(0,t.jsx)("code",{className:"font-mono",children:"aka detections"})," or start a Claude Code session to record what your binaries ship"]})}):(0,t.jsx)("div",{className:"grid flex-1 place-items-center p-6 text-center text-sm text-text-3",children:0===d.counts.all?"No detections installed — run the plugin to populate the local store.":0===d.items.length?"updates"===f?"No pending updates — every detection is up to date.":"No detections in this view.":"Select a detection to view its rules"})})]}),(0,t.jsx)(s.wO,{rule:O,onClose:()=>{x(null)}},null!=g?g:"no-rule"),(0,t.jsx)(s.b1,{det:y&&(null==b||null==(r=b.update)?void 0:r.available)?b:null,isUpdating:j,onClose:()=>{C(!1)},onConfirm:e=>{j||(L({filter:f,q:N,id:e}),U(async()=>{try{await h(e)}finally{C(!1)}}))}})]})}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=4487)),_N_E=e.O()}]);
|
package/web-ui/web-ui/.next/static/chunks/app/(app)/exceptions/[id]/page-452be710e9e05ad5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{1753:(e,r,n)=>{"use strict";n.d(r,{ExceptionDetailClient:()=>l});var t=n(2330),o=n(7942),c=n(6146),i=n(8013);let u=(0,i.createServerReference)("60d5b2bcb860b7f010fae23b39713f8562b126f718",i.callServer,void 0,i.findSourceMapURL,"revokeException");function l(e){let{exception:r}=e,[n,i]=(0,c.useState)(null),[l,a]=(0,c.useTransition)();return(0,t.jsx)(o.Gj,{exception:r,busy:l,error:n,onRevoke:e=>{a(async()=>{var n;let t=await u(r.id,e);i(t.ok?null:null!=(n=t.error)?n:"Could not revoke.")})}})}},6434:(e,r,n)=>{Promise.resolve().then(n.t.bind(n,7338,23)),Promise.resolve().then(n.bind(n,1753))},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return t.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}});let t=n(7982),o=n(3738),c=n(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=6434)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39],{453:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,7338,23)),Promise.resolve().then(t.bind(t,5326))},5326:(e,r,t)=>{"use strict";t.d(r,{NewExceptionClient:()=>i});var n=t(2330),u=t(7942),a=t(7071),o=t(6146),s=t(8013);let c=(0,s.createServerReference)("40a10b1f73eafa538d3375f186888a54b6fac700d9",s.callServer,void 0,s.findSourceMapURL,"addException");function i(e){let{rules:r}=e,t=(0,a.useRouter)(),[s,i]=(0,o.useState)(null),[l,f]=(0,o.useTransition)();return(0,n.jsx)(u.dt,{rules:r,onSubmit:e=>{f(async()=>{let r=await c(e);if(r.ok)t.push("/exceptions");else{var n;i(null!=(n=r.error)?n:"Could not create the exception.")}})},busy:l,error:s})}},7071:(e,r,t)=>{"use strict";var n=t(7495);t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},8013:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return u.findSourceMapURL}});let n=t(7982),u=t(3738),a=t(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=453)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[782],{4337:(e,n,r)=>{Promise.resolve().then(r.bind(r,523)),Promise.resolve().then(r.bind(r,3319)),Promise.resolve().then(r.bind(r,1328)),Promise.resolve().then(r.bind(r,6388)),Promise.resolve().then(r.bind(r,9822)),Promise.resolve().then(r.bind(r,6179)),Promise.resolve().then(r.bind(r,9912)),Promise.resolve().then(r.bind(r,3868)),Promise.resolve().then(r.bind(r,6324)),Promise.resolve().then(r.bind(r,8283)),Promise.resolve().then(r.bind(r,7735)),Promise.resolve().then(r.bind(r,6053)),Promise.resolve().then(r.bind(r,5130)),Promise.resolve().then(r.bind(r,6418)),Promise.resolve().then(r.bind(r,1462)),Promise.resolve().then(r.bind(r,3760)),Promise.resolve().then(r.bind(r,965)),Promise.resolve().then(r.bind(r,8885)),Promise.resolve().then(r.bind(r,7461)),Promise.resolve().then(r.bind(r,4285)),Promise.resolve().then(r.bind(r,1247)),Promise.resolve().then(r.bind(r,4453)),Promise.resolve().then(r.bind(r,3741)),Promise.resolve().then(r.bind(r,666)),Promise.resolve().then(r.bind(r,1648)),Promise.resolve().then(r.bind(r,1447)),Promise.resolve().then(r.bind(r,4026)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.bind(r,801)),Promise.resolve().then(r.bind(r,3492)),Promise.resolve().then(r.bind(r,6909)),Promise.resolve().then(r.bind(r,5875)),Promise.resolve().then(r.bind(r,5530)),Promise.resolve().then(r.bind(r,974)),Promise.resolve().then(r.bind(r,7526)),Promise.resolve().then(r.bind(r,5850)),Promise.resolve().then(r.bind(r,9102)),Promise.resolve().then(r.bind(r,4952)),Promise.resolve().then(r.bind(r,3365)),Promise.resolve().then(r.bind(r,4127)),Promise.resolve().then(r.bind(r,7889)),Promise.resolve().then(r.bind(r,209)),Promise.resolve().then(r.bind(r,1951)),Promise.resolve().then(r.bind(r,4713))},4713:(e,n,r)=>{"use strict";r.d(n,{ExceptionsClient:()=>v});var s=r(2330),o=r(7942),i=r(8726),t=r(7338),l=r.n(t),a=r(7071),d=r(6146),u=r(8013);let c=(0,u.createServerReference)("40e63bf317c2f38dcbfda23180a6152ff134c2da1a",u.callServer,void 0,u.findSourceMapURL,"approveBlocked"),h=(0,u.createServerReference)("401871838d0c497dfd69f075ee0acdcaa1df8881b3",u.callServer,void 0,u.findSourceMapURL,"rotateKey");function v(e){let{items:n,blocked:r,includeTerminal:t,blockedWindow:u,keyVersion:v,activePermanent:m}=e,b=(0,a.useRouter)(),[P,f]=(0,d.useState)(null),[p,S]=(0,d.useState)(!1),[x,j]=(0,d.useState)(null),[y,R]=(0,d.useTransition)();return(0,s.jsxs)("div",{className:"px-8 pb-10 pt-7",children:[(0,s.jsx)(o.ec,{title:"Exceptions",sub:"Explicit, audited bypasses — one exact value each, never a rule-wide suppression",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.$n,{asChild:!0,variant:"ghost",tone:"neutral",size:"sm",children:(0,s.jsx)(l(),{href:t?"/exceptions":"/exceptions?all=1",children:t?"Active only":"Show all (audit)"})}),(0,s.jsxs)(i.$n,{variant:"outline",tone:"neutral",size:"sm",onClick:()=>{j(null),S(!0)},children:["Rotate key",null!==v&&" (v".concat(String(v),")")]}),(0,s.jsx)(i.$n,{asChild:!0,variant:"solid",tone:"primary",size:"sm",children:(0,s.jsx)(l(),{href:"/exceptions/new",children:"Pre-authorize a value"})})]})}),(0,s.jsx)(o.VB,{items:r,onApprove:e=>{var n;j(null),f(null!=(n=r.find(n=>n.reference===e))?n:null)},blockedWindow:u,onBlockedWindowChange:e=>{let n=new URLSearchParams;n.set("window",e),t&&n.set("all","1"),b.push("/exceptions?".concat(n.toString()))}}),(0,s.jsx)(o.Eb,{items:n,includeTerminal:t,onSelect:e=>{b.push("/exceptions/".concat(e.slice(0,8)))}}),(0,s.jsx)(o.fu,{entry:P,open:null!==P,onOpenChange:e=>{e||(f(null),j(null))},onSubmit:e=>{R(async()=>{let n=await c(e);if(n.ok)f(null),j(null);else{var r;j(null!=(r=n.error)?r:"Could not grant the exception.")}})},busy:y,error:x}),(0,s.jsx)(o.nZ,{open:p,onOpenChange:e=>{S(e),e||j(null)},activePermanent:m,keyVersion:v,onConfirm:e=>{R(async()=>{let n=await h(e);if(n.ok)S(!1),j(null);else{var r;j(null!=(r=n.error)?r:"Could not rotate the key.")}})},busy:y,error:x})]})}},7071:(e,n,r)=>{"use strict";var s=r(7495);r.o(s,"usePathname")&&r.d(n,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(n,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(n,{useSearchParams:function(){return s.useSearchParams}})},8013:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),!function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}});let s=r(7982),o=r(3738),i=r(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=4337)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20],{1595:(e,r,n)=>{"use strict";n.d(r,{InventoryClient:()=>h});var s=n(2330),t=n(7942),i=n(8726),o=n(7071),l=n(6146),a=n(8622),c=n(8013);let u=(0,c.createServerReference)("7054fcf3012459b301824f7d78e830771583a7636b",c.callServer,void 0,c.findSourceMapURL,"setFileAccess"),d=(0,c.createServerReference)("605ed8023f9643061fd34a1065d2754a9071f0ccd8",c.callServer,void 0,c.findSourceMapURL,"setMcpTrust");function h(e){let{harnesses:r,assetGroups:n,projects:c,attention:h,activeSel:m,proj:v,selHarness:b,assetDetail:f,tree:P,blocked:p,harnessEvents:x,fileDetail:S,path:j,fq:y,drawer:g}=e,R=(0,o.useRouter)(),C=(0,o.usePathname)(),[k,w]=(0,l.useState)("tree"),[N,T]=(0,l.useState)("all"),[M,_]=(0,l.useState)(""),[q,E]=(0,l.useState)(!0),[L,F]=(0,l.useState)(()=>{var e;let n=null==(e=r[0])?void 0:e.id;return n?{[n]:!0}:{}}),[O,U]=(0,l.useTransition)(),[A,Q]=(0,l.useState)(null),B=(0,l.useCallback)(e=>{let r=(function(e){var r;let n=new URLSearchParams;e.sel&&(n.set("st",e.sel.type),n.set("si",e.sel.id)),e.path&&e.path.length>0&&n.set("path",e.path.join("/"));let s=null==(r=e.fq)?void 0:r.trim();return s&&n.set("fq",s),e.file&&n.set("file",e.file),n})(e).toString();return r?"".concat(C,"?").concat(r):C},[C]),{query:Y,setQuery:G,onNavigate:H}=(0,a.Y)(y,e=>B({sel:m,path:j,fq:e})),I=(0,l.useCallback)(e=>{var r;H(null!=(r=e.fq)?r:""),R.push(B(e))},[H,R,B]),V=(e,r)=>{O||(Q(null),U(async()=>{try{await r()||Q("Couldn't ".concat(e," — reload to refresh."))}catch(r){Q("Couldn't ".concat(e,". Please try again."))}}))},W=e=>{I({sel:{type:"project",id:e}})},Z=e=>{I({sel:{type:e.type,id:e.id}})};return(0,s.jsxs)(s.Fragment,{children:[A&&(0,s.jsx)("div",{role:"alert",className:"mb-3 shrink-0 rounded-lg border border-border bg-sev-critical-fill px-4 py-2.5 text-sm text-sev-critical",children:A}),(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 gap-4",children:[(0,s.jsx)(t._c,{projects:c,assetGroups:n,harnesses:r,sel:m,viewMode:k,onViewMode:w,expanded:L,onToggleExpand:(e,r)=>{F(n=>({...n,[e]:null!=r?r:!n[e]}))},typeFilter:N,onTypeFilter:T,query:M,onQuery:_,attention:h,onSelectProject:W,onSelectAsset:Z,onSelectHarness:e=>{I({sel:{type:"harness",id:e}})}}),v?(0,s.jsx)(t.kL,{proj:v,path:j,onPathChange:e=>{I({sel:m,path:e})},query:Y,onQueryChange:G,tree:P,isLoading:!1,error:null,onSetAccess:(e,r)=>{V("update file access",()=>u(v.id,e,r))},onOpenFile:e=>{I({sel:m,path:j,fq:y,file:e})},drawerPath:g,blocked:p,showBlocked:q,onToggleBlocked:()=>{E(e=>!e)}}):(0,s.jsx)(i.Zp,{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:b?(0,s.jsx)(t.y2,{harness:b,events:x,onSelect:Z,onSelectProject:W}):f?(0,s.jsx)(t.i5,{asset:f,onTrust:e=>{V("update MCP trust",()=>d(f.id,e))}}):(0,s.jsx)("div",{className:"grid min-h-0 flex-1 place-items-center p-8",children:(0,s.jsx)(t.pp,{message:"No assets to display"})})})]}),(0,s.jsx)(i.cj,{open:null!==g&&null!==v,onOpenChange:e=>{e||I({sel:m,path:j,fq:y})},children:(0,s.jsx)(i.h,{className:"max-w-120 p-0","aria-describedby":void 0,children:v&&null!==g&&(S?(0,s.jsx)(t.To,{file:S,onChange:e=>{V("update file access",()=>u(v.id,S.path,e))}}):(0,s.jsx)("div",{className:"grid h-full place-items-center p-6 text-center text-sm text-text-3",children:"File not found"}))})})]})}[...n(3352).PWo.options]},3541:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,1595))},7071:(e,r,n)=>{"use strict";var s=n(7495);n.o(s,"usePathname")&&n.d(r,{usePathname:function(){return s.usePathname}}),n.o(s,"useRouter")&&n.d(r,{useRouter:function(){return s.useRouter}}),n.o(s,"useSearchParams")&&n.d(r,{useSearchParams:function(){return s.useSearchParams}})},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return t.findSourceMapURL}});let s=n(7982),t=n(3738),i=n(4656)},8622:(e,r,n)=>{"use strict";n.d(r,{Y:()=>i});var s=n(7071),t=n(6146);function i(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=(0,s.useRouter)(),[o,l]=(0,t.useState)(e),a=(0,t.useRef)(e),c=(0,t.useRef)(null),u=(0,t.useRef)(r);(0,t.useEffect)(()=>{u.current=r},[r]);let d=(0,t.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]),h=(0,t.useCallback)(e=>{d(),a.current=e.trim(),l(e)},[d]);return(0,t.useEffect)(()=>{e!==a.current&&(a.current=e,l(e))},[e]),(0,t.useEffect)(()=>{let r=o.trim();if(r===e||r===a.current)return;let s=setTimeout(()=>{a.current=r,c.current=null,i.push(u.current(o))},n);return c.current=s,()=>{clearTimeout(s),c.current=null}},[o,e,n,i]),{query:o,setQuery:l,onNavigate:h}}}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=3541)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{1371:(e,s,n)=>{"use strict";n.d(s,{ScanClient:()=>x});var r=n(2330),t=n(8726),i=n(7338),l=n.n(i),o=n(6146),a=n(8013);let d=(0,a.createServerReference)("40730970c5617610218ed9bcf338d65526620a889d",a.callServer,void 0,a.findSourceMapURL,"runScan");var c=n(7942);let m=(0,a.createServerReference)("407caff8b8ee038ae7dacb7e6836a46a7178c3ff7b",a.callServer,void 0,a.findSourceMapURL,"listDirectory");function h(e){let{onSelect:s}=e,[n,i]=(0,o.useState)(!1),[l,a]=(0,o.useState)(!1),[d,h]=(0,o.useState)(null),[x,v]=(0,o.useState)([]),[u,b]=(0,o.useState)(null),[f,p]=(0,o.useState)([]),[j,P]=(0,o.useState)(!1),[g,N]=(0,o.useState)(null),y=()=>{a(!1),h(null),v([]),b(null),p([]),N(null)},S=()=>{i(!1),y()},k=e=>{P(!0),N(null),m(e).then(e=>{var s,n;if(!e.ok||!e.path||!e.entries||!e.crumbs)return void N(null!=(s=e.error)?s:"Could not list directory.");h(e.path),v(e.crumbs),b(null!=(n=e.parent)?n:null),p(e.entries)}).catch(()=>{N("Could not list directory.")}).finally(()=>{P(!1)})};return(0,r.jsxs)(t.AM,{open:n,onOpenChange:e=>{i(e),e||y()},children:[(0,r.jsx)(t.Wv,{asChild:!0,children:(0,r.jsx)(t.$n,{variant:"ghost",tone:"neutral",size:"sm",children:"Browse…"})}),(0,r.jsxs)(t.hl,{align:"end",className:"w-96 p-4",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-label font-semibold uppercase tracking-wider text-text-3",children:l?"Choose a folder":"Browse your filesystem"}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:S,className:"rounded p-1 text-text-3 hover:text-text",children:(0,r.jsx)(c.mD,{name:"x",className:"size-3.5"})})]}),l?(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-xs",children:[u&&(0,r.jsx)(t.$n,{variant:"ghost",size:"icon",className:"size-6",title:"Up one level",onClick:()=>{k(u)},children:(0,r.jsx)(c.mD,{name:"arrow-up",className:"size-3.5"})}),x.map((e,s)=>{let n=s===x.length-1;return(0,r.jsxs)(o.Fragment,{children:[s>0&&(0,r.jsx)(c.mD,{name:"chevron-right",className:"size-3 text-text-3"}),(0,r.jsx)("button",{type:"button",onClick:()=>{k(e.path)},className:n?"cursor-default font-mono font-bold text-text":"font-mono text-text-2 hover:text-text",children:e.name})]},e.path)})]}),(0,r.jsxs)("div",{className:"max-h-64 overflow-y-auto rounded-lg border border-border",children:[j&&(0,r.jsx)("div",{className:"p-3 text-xs text-text-3",children:"Loading…"}),!j&&g&&(0,r.jsx)("div",{className:"p-3 text-xs text-sev-critical",children:g}),!j&&!g&&f.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{k(e.path)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm hover:bg-surface-2",children:[(0,r.jsx)(c.mD,{name:"folder",className:"size-4 shrink-0 text-primary"}),(0,r.jsx)("span",{className:"truncate text-text",children:e.name})]},e.path)),!j&&!g&&0===f.length&&(0,r.jsx)("div",{className:"p-3 text-xs text-text-3",children:"No subfolders."})]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",disabled:!d,onClick:()=>{d&&s(d),S()},children:"Select this folder"})})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("p",{className:"text-xs text-text-3",children:"AKA will list folder names on your machine, starting from your home directory. Nothing is read or scanned until you click Scan."}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(t.$n,{variant:"ghost",tone:"neutral",size:"sm",onClick:S,children:"Cancel"}),(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",onClick:()=>{a(!0),k(void 0)},children:"Allow"})]})]})]})]})}function x(e){let{enabledRuleCount:s}=e,[n,i]=(0,o.useState)(""),[a,c]=(0,o.useState)(null),[m,x]=(0,o.useTransition)(),v=()=>{x(async()=>{c(await d(n))})};return(0,r.jsx)("div",{className:"flex max-w-xl flex-col gap-4",children:(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-5",children:[(0,r.jsx)("div",{className:"mb-1.5 text-label font-semibold uppercase tracking-wider text-text-3",children:"File or directory to scan"}),(0,r.jsxs)("p",{className:"mb-3 text-xs text-text-3",children:["Walked recursively (node_modules, dotdirs, build output and files over 1 MB are skipped). The raw match never lands on disk — findings store only a masked preview and the event keeps a redacted copy. ",String(s)," rule",1===s?"":"s"," enabled."]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(t.pd,{value:n,onChange:e=>{i(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||m||v()},placeholder:"/path/to/project",className:"font-mono"}),(0,r.jsx)(t.$n,{variant:"solid",tone:"primary",size:"sm",disabled:m,onClick:v,children:m?"Scanning…":"Scan"}),(0,r.jsx)(h,{onSelect:e=>{i(e)}})]}),a&&!a.ok&&(0,r.jsx)("p",{className:"mt-3 text-xs text-sev-critical",children:a.error}),(null==a?void 0:a.ok)&&(0,r.jsxs)("div",{className:"mt-3 rounded-lg border border-ok-fill bg-ok-fill px-3 py-2 text-xs text-text",children:["Scanned ",String(a.scanned)," file",1===a.scanned?"":"s"," \xb7"," ",String(a.findings)," finding",1===a.findings?"":"s"," recorded."," ",void 0!==a.findings&&a.findings>0&&(0,r.jsx)(l(),{href:"/findings",className:"font-semibold text-primary underline",children:"View findings"})]})]})})}},5756:(e,s,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,1371))},8013:(e,s,n)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var n in s)Object.defineProperty(e,n,{enumerable:!0,get:s[n]})}(s,{callServer:function(){return r.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return t.findSourceMapURL}});let r=n(7982),t=n(3738),i=n(4656)}},e=>{e.O(0,[24,338,561,949,496,358],()=>e(e.s=5756)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[109],{1188:(e,r,n)=>{"use strict";n.d(r,{SettingsClient:()=>v});var s=n(2330),i=n(7942),o=n(6146),t=n(8013);let l=(0,t.createServerReference)("401aeafa6b392ce4b629d24dafa73f13ce5687c7d7",t.callServer,void 0,t.findSourceMapURL,"saveSettings");function v(e){let{settings:r}=e,[n,t]=(0,o.useState)(null),[v,d]=(0,o.useState)(!1),[b,h]=(0,o.useTransition)();return(0,s.jsx)(i.A3,{settings:r,busy:b,error:n,saved:v,onSave:e=>{h(async()=>{var r;let n=await l(e);t(n.ok?null:null!=(r=n.error)?r:"Could not save."),d(n.ok)})}})}},8013:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let s=n(7982),i=n(3738),o=n(4656)},8188:(e,r,n)=>{Promise.resolve().then(n.bind(n,523)),Promise.resolve().then(n.bind(n,3319)),Promise.resolve().then(n.bind(n,1328)),Promise.resolve().then(n.bind(n,6388)),Promise.resolve().then(n.bind(n,9822)),Promise.resolve().then(n.bind(n,6179)),Promise.resolve().then(n.bind(n,9912)),Promise.resolve().then(n.bind(n,3868)),Promise.resolve().then(n.bind(n,6324)),Promise.resolve().then(n.bind(n,8283)),Promise.resolve().then(n.bind(n,7735)),Promise.resolve().then(n.bind(n,6053)),Promise.resolve().then(n.bind(n,5130)),Promise.resolve().then(n.bind(n,6418)),Promise.resolve().then(n.bind(n,1462)),Promise.resolve().then(n.bind(n,3760)),Promise.resolve().then(n.bind(n,965)),Promise.resolve().then(n.bind(n,8885)),Promise.resolve().then(n.bind(n,7461)),Promise.resolve().then(n.bind(n,4285)),Promise.resolve().then(n.bind(n,1247)),Promise.resolve().then(n.bind(n,4453)),Promise.resolve().then(n.bind(n,3741)),Promise.resolve().then(n.bind(n,666)),Promise.resolve().then(n.bind(n,1648)),Promise.resolve().then(n.bind(n,1447)),Promise.resolve().then(n.bind(n,4026)),Promise.resolve().then(n.bind(n,5392)),Promise.resolve().then(n.bind(n,801)),Promise.resolve().then(n.bind(n,3492)),Promise.resolve().then(n.bind(n,6909)),Promise.resolve().then(n.bind(n,5875)),Promise.resolve().then(n.bind(n,5530)),Promise.resolve().then(n.bind(n,974)),Promise.resolve().then(n.bind(n,7526)),Promise.resolve().then(n.bind(n,5850)),Promise.resolve().then(n.bind(n,9102)),Promise.resolve().then(n.bind(n,4952)),Promise.resolve().then(n.bind(n,3365)),Promise.resolve().then(n.bind(n,4127)),Promise.resolve().then(n.bind(n,7889)),Promise.resolve().then(n.bind(n,209)),Promise.resolve().then(n.bind(n,1951)),Promise.resolve().then(n.bind(n,1188))}},e=>{e.O(0,[24,561,949,496,358],()=>e(e.s=8188)),_N_E=e.O()}]);
|
|
File without changes
|
/package/web-ui/web-ui/.next/static/{v339u67-B5AsSrzDBfv22 → X9C7-HlMI5zAQEKfIW_6e}/_ssgManifest.js
RENAMED
|
File without changes
|