shieldcortex 2.19.3 → 2.20.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.
Files changed (107) hide show
  1. package/README.md +117 -391
  2. package/dashboard/.next/standalone/dashboard/.next/BUILD_ID +1 -1
  3. package/dashboard/.next/standalone/dashboard/.next/build-manifest.json +2 -2
  4. package/dashboard/.next/standalone/dashboard/.next/prerender-manifest.json +3 -3
  5. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.html +2 -2
  6. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.rsc +1 -1
  7. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.html +1 -1
  14. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.rsc +2 -2
  15. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  16. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  18. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/dashboard/.next/standalone/dashboard/.next/server/app/index.html +1 -1
  22. package/dashboard/.next/standalone/dashboard/.next/server/app/index.rsc +3 -3
  23. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  24. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_full.segment.rsc +3 -3
  25. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
  26. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_index.segment.rsc +2 -2
  27. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  28. package/dashboard/.next/standalone/dashboard/.next/server/app/page/react-loadable-manifest.json +3 -3
  29. package/dashboard/.next/standalone/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  30. package/dashboard/.next/standalone/dashboard/.next/server/chunks/ssr/dashboard_25b1b286._.js +1 -1
  31. package/dashboard/.next/standalone/dashboard/.next/server/pages/404.html +1 -1
  32. package/dashboard/.next/standalone/dashboard/.next/server/pages/500.html +2 -2
  33. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.js +1 -1
  34. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.json +1 -1
  35. package/dashboard/.next/standalone/dashboard/.next/static/chunks/26118d592a545e00.js +3 -0
  36. package/dashboard/.next/standalone/dashboard/.next/static/chunks/6a6ccfb7834de00a.js +9 -0
  37. package/dashboard/.next/standalone/dashboard/.next/static/chunks/6b11a7d29e9abffd.js +1 -0
  38. package/dashboard/.next/standalone/dashboard/.next/static/chunks/ab13d81ce0e121f2.css +3 -0
  39. package/dashboard/.next/standalone/dashboard/.next/static/chunks/cf05262adfab5818.js +1 -0
  40. package/dist/api/visualization-server.d.ts.map +1 -1
  41. package/dist/api/visualization-server.js +218 -3
  42. package/dist/api/visualization-server.js.map +1 -1
  43. package/dist/cli/doctor.d.ts +6 -0
  44. package/dist/cli/doctor.d.ts.map +1 -0
  45. package/dist/cli/doctor.js +469 -0
  46. package/dist/cli/doctor.js.map +1 -0
  47. package/dist/database/init.d.ts +8 -0
  48. package/dist/database/init.d.ts.map +1 -1
  49. package/dist/database/init.js +208 -4
  50. package/dist/database/init.js.map +1 -1
  51. package/dist/events/webhooks.d.ts +21 -0
  52. package/dist/events/webhooks.d.ts.map +1 -0
  53. package/dist/events/webhooks.js +61 -0
  54. package/dist/events/webhooks.js.map +1 -0
  55. package/dist/graph/backfill.d.ts +6 -2
  56. package/dist/graph/backfill.d.ts.map +1 -1
  57. package/dist/graph/backfill.js +32 -4
  58. package/dist/graph/backfill.js.map +1 -1
  59. package/dist/graph/extract.d.ts.map +1 -1
  60. package/dist/graph/extract.js +105 -37
  61. package/dist/graph/extract.js.map +1 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +8 -5
  64. package/dist/index.js.map +1 -1
  65. package/dist/memory/consolidate.d.ts +23 -0
  66. package/dist/memory/consolidate.d.ts.map +1 -1
  67. package/dist/memory/consolidate.js +239 -2
  68. package/dist/memory/consolidate.js.map +1 -1
  69. package/dist/memory/decay.d.ts.map +1 -1
  70. package/dist/memory/decay.js +9 -0
  71. package/dist/memory/decay.js.map +1 -1
  72. package/dist/memory/embedding-cache.d.ts +21 -0
  73. package/dist/memory/embedding-cache.d.ts.map +1 -0
  74. package/dist/memory/embedding-cache.js +92 -0
  75. package/dist/memory/embedding-cache.js.map +1 -0
  76. package/dist/memory/embedding.d.ts +37 -0
  77. package/dist/memory/embedding.d.ts.map +1 -0
  78. package/dist/memory/embedding.js +86 -0
  79. package/dist/memory/embedding.js.map +1 -0
  80. package/dist/memory/expiry.d.ts +26 -0
  81. package/dist/memory/expiry.d.ts.map +1 -0
  82. package/dist/memory/expiry.js +109 -0
  83. package/dist/memory/expiry.js.map +1 -0
  84. package/dist/memory/store.d.ts +14 -0
  85. package/dist/memory/store.d.ts.map +1 -1
  86. package/dist/memory/store.js +82 -0
  87. package/dist/memory/store.js.map +1 -1
  88. package/dist/memory/types.d.ts +1 -0
  89. package/dist/memory/types.d.ts.map +1 -1
  90. package/dist/memory/types.js.map +1 -1
  91. package/dist/setup/hooks.d.ts +3 -0
  92. package/dist/setup/hooks.d.ts.map +1 -1
  93. package/dist/setup/hooks.js +76 -11
  94. package/dist/setup/hooks.js.map +1 -1
  95. package/dist/tools/recall.d.ts.map +1 -1
  96. package/dist/tools/recall.js +25 -1
  97. package/dist/tools/recall.js.map +1 -1
  98. package/dist/tools/remember.d.ts +2 -2
  99. package/package.json +1 -1
  100. package/dashboard/.next/standalone/dashboard/.next/static/chunks/7d04c140073d99aa.js +0 -9
  101. package/dashboard/.next/standalone/dashboard/.next/static/chunks/94d1921c4f61a608.css +0 -3
  102. package/dashboard/.next/standalone/dashboard/.next/static/chunks/a3989d0e6629bcf8.js +0 -3
  103. package/dashboard/.next/standalone/dashboard/.next/static/chunks/cac330f9511d34e5.js +0 -1
  104. package/dashboard/.next/standalone/dashboard/.next/static/chunks/fc2dbf641aad1448.js +0 -1
  105. /package/dashboard/.next/standalone/dashboard/.next/static/{x5pEZRSDizF1dS-qqTezT → 3NPHem1lidYcerzR28Shs}/_buildManifest.js +0 -0
  106. /package/dashboard/.next/standalone/dashboard/.next/static/{x5pEZRSDizF1dS-qqTezT → 3NPHem1lidYcerzR28Shs}/_clientMiddlewareManifest.json +0 -0
  107. /package/dashboard/.next/standalone/dashboard/.next/static/{x5pEZRSDizF1dS-qqTezT → 3NPHem1lidYcerzR28Shs}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--x5pEZRSDizF1dS_qqTezT--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/94d1921c4f61a608.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/e007ff86847a4042.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><script src="/_next/static/chunks/d334b69bff7779be.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>ShieldCortex</title><meta name="description" content="AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><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:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[36111,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"Providers\"]\n3:I[57043,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[10445,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/d334b69bff7779be.js\"],\"default\"]\n5:I[27657,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n6:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\nb:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nd:I[30687,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/94d1921c4f61a608.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"x5pEZRSDizF1dS-qqTezT\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/94d1921c4f61a608.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/e007ff86847a4042.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d334b69bff7779be.js\",\"async\":true}]],\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"ShieldCortex\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--3NPHem1lidYcerzR28Shs--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/ab13d81ce0e121f2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/e007ff86847a4042.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><script src="/_next/static/chunks/d334b69bff7779be.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>ShieldCortex</title><meta name="description" content="AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><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:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[36111,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"Providers\"]\n3:I[57043,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[10445,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/d334b69bff7779be.js\"],\"default\"]\n5:I[27657,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n6:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\nb:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nd:I[30687,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/ab13d81ce0e121f2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"3NPHem1lidYcerzR28Shs\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/ab13d81ce0e121f2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/e007ff86847a4042.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d334b69bff7779be.js\",\"async\":true}]],\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"ShieldCortex\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review\"}]]\n"])</script></body></html>
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--x5pEZRSDizF1dS_qqTezT--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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)}
2
- @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><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"x5pEZRSDizF1dS-qqTezT\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--3NPHem1lidYcerzR28Shs--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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)}
2
+ @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><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"3NPHem1lidYcerzR28Shs\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"unFAiBhUTWBwV/stoFpiuWvqOiz6pfKncWVXrGT7czM=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"C5Dt6BqecBfmtaXt7EQwFgg8fBEzTSKtYY7P5QHm4Gw=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "unFAiBhUTWBwV/stoFpiuWvqOiz6pfKncWVXrGT7czM="
4
+ "encryptionKey": "C5Dt6BqecBfmtaXt7EQwFgg8fBEzTSKtYY7P5QHm4Gw="
5
5
  }
@@ -0,0 +1,3 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68595,e=>{"use strict";var t=e.i(22534),s=e.i(27493),l=e.i(4),a=e.i(74133),i=e.i(6847),r=e.i(17278),n=e.i(24929);let c=(0,n.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),o=(0,n.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var d=e.i(22934),h=e.i(88969);let x=(0,a.default)(()=>e.A(23531),{loadableGenerated:{modules:[23272]},ssr:!1}),u=t.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001",m={tool:"#22d3ee",person:"#34d399",concept:"#f59e0b",language:"#a78bfa",file:"#64748b",service:"#f472b6",pattern:"#fb923c"},p={uses:"#22d3ee",implements:"#34d399",depends_on:"#f59e0b",related_to:"#475569",part_of:"#a78bfa",created_by:"#f472b6",extends:"#fb923c",replaces:"#ef4444",fixes:"#10b981",configures:"#6366f1",prefers:"#f59e0b",avoids:"#ef4444"},f={uses:"uses",implements:"implements",depends_on:"depends on",related_to:"related to",extends:"extends",replaces:"replaces",fixes:"fixes",configures:"configures",prefers:"prefers",avoids:"avoids"},b="#94a3b8";function g(){let e=(0,l.useRef)(null),t=(0,l.useRef)(null),[a,n]=(0,l.useState)({width:800,height:600}),[g,j]=(0,l.useState)(null),[y,v]=(0,l.useState)([]),[N,k]=(0,l.useState)(null),[w,C]=(0,l.useState)([]),[S,T]=(0,l.useState)(!0),[$,_]=(0,l.useState)(null),[F,A]=(0,l.useState)(""),[M,P]=(0,l.useState)([]),[R,z]=(0,l.useState)(!1),E=(0,l.useRef)(null),D=(0,l.useRef)(null),[L,B]=(0,l.useState)([]);(0,l.useEffect)(()=>{let t=e.current;if(!t)return;let s=()=>n({width:t.clientWidth,height:t.clientHeight});s();let l=new ResizeObserver(s);return l.observe(t),()=>l.disconnect()},[]);let I=(0,l.useCallback)(e=>{j(t=>(null!==t&&t!==e&&v(e=>[...e,t]),e))},[]);(0,l.useEffect)(()=>{(0,h.authFetch)(`${u}/api/graph/entities?limit=30`).then(e=>e.json()).then(e=>{let t=e.entities||[];B(t),t.length>0&&I(t[0].id),T(!1)}).catch(e=>{_(e.message),T(!1)})},[]),(0,l.useEffect)(()=>{null!==g&&(T(!0),Promise.all([(0,h.authFetch)(`${u}/api/graph/entities/${g}/neighbourhood`).then(e=>e.json()),(0,h.authFetch)(`${u}/api/graph/entities/${g}/memories`).then(e=>e.json())]).then(([e,t])=>{k(e),C(t.memories||[]),T(!1),_(null)}).catch(e=>{_(e.message),T(!1)}))},[g]),(0,l.useEffect)(()=>{if(!N||!t.current)return;let e=setTimeout(()=>{t.current?.zoomToFit(400,60)},500);return()=>clearTimeout(e)},[N]);let O=(0,l.useCallback)(()=>{v(e=>0===e.length?e:(j(e[e.length-1]),e.slice(0,-1)))},[]);(0,l.useEffect)(()=>F.trim()?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{(0,h.authFetch)(`${u}/api/graph/search?q=${encodeURIComponent(F)}&limit=8`).then(e=>e.json()).then(e=>P(e.entities||[])).catch(()=>{})},200),()=>{D.current&&clearTimeout(D.current)}):void P([]),[F]);let U=(0,l.useMemo)(()=>{if(!N)return{nodes:[],links:[]};let e=[N.focal,...N.neighbours],t=Math.max(1,...e.map(e=>e.memoryCount)),s=new Set(e.map(e=>e.id)),l=e.map(e=>{let s=e.id===N.focal.id,l=e.memoryCount/t;return{id:e.id,name:e.name,entityType:e.type,memoryCount:e.memoryCount,isFocal:s,val:s?25:6+14*Math.pow(l,.5)}}),a=N.triples.filter(e=>s.has(e.subject_id)&&s.has(e.object_id)).map(e=>({source:e.subject_id,target:e.object_id,predicate:e.predicate})),i=new Set;return{nodes:l,links:a.filter(e=>{let t=`${e.source}-${e.target}`,s=`${e.target}-${e.source}`;return!(i.has(t)||i.has(s))&&(i.add(t),!0)})}},[N]);(0,l.useEffect)(()=>{let e=t.current;e&&0!==U.nodes.length&&(e.d3Force("charge")?.strength(-300),e.d3Force("link")?.distance(e=>"related_to"===e.predicate?120:90),e.d3ReheatSimulation())},[U]);let W=(0,l.useCallback)((e,t,s)=>{let l=e.x,a=e.y;if(null==l||null==a)return;let i=m[e.entityType]||b,r=Math.max(4,e.val);e.isFocal&&(t.beginPath(),t.arc(l,a,r+6,0,2*Math.PI),t.fillStyle=i+"20",t.fill()),t.beginPath(),t.arc(l,a,r,0,2*Math.PI),t.fillStyle=e.isFocal?i:i+"cc",t.fill(),e.isFocal&&(t.lineWidth=3,t.strokeStyle="#ffffff",t.stroke());let n=e.isFocal?40:22,c=e.name.length>n?e.name.slice(0,n)+"…":e.name,o=e.isFocal?Math.max(14,16/s):Math.max(11,13/s);t.font=`${e.isFocal?"bold ":""}${o}px Sans-Serif`,t.textAlign="center",t.textBaseline="top";let d=t.measureText(c).width,h=a+r+4;if(t.fillStyle="rgba(2, 6, 23, 0.9)",t.beginPath(),t.roundRect(l-d/2-3,h-3,d+6,o+6,3),t.fill(),t.fillStyle=e.isFocal?"#ffffff":"#cbd5e1",t.fillText(c,l,h),e.memoryCount>1){let n=`${e.memoryCount}`,c=Math.max(8,10/s);t.font=`${c}px Sans-Serif`;let o=t.measureText(n).width+6,d=l+r-2,h=a-r-2;t.fillStyle=i,t.beginPath(),t.roundRect(d-o/2,h-c/2-2,o,c+4,4),t.fill(),t.fillStyle="#020617",t.textAlign="center",t.textBaseline="middle",t.fillText(n,d,h)}},[]),G=(0,l.useCallback)((e,t,s)=>{let l=e.source,a=e.target;if(!l?.x||!a?.x)return;let i="related_to"===e.predicate;if(t.beginPath(),t.moveTo(l.x,l.y),t.lineTo(a.x,a.y),t.strokeStyle=p[e.predicate]||"#475569",t.lineWidth=i?.8:2,t.globalAlpha=i?.2:.7,t.stroke(),t.globalAlpha=1,!i&&s>.8){let i=(l.x+a.x)/2,r=(l.y+a.y)/2,n=f[e.predicate]||e.predicate,c=Math.max(8,10/s);t.font=`${c}px Sans-Serif`,t.textAlign="center",t.textBaseline="middle";let o=t.measureText(n).width;t.fillStyle="rgba(2, 6, 23, 0.85)",t.beginPath(),t.roundRect(i-o/2-2,r-c/2-1,o+4,c+2,2),t.fill(),t.fillStyle=p[e.predicate]||"#94a3b8",t.globalAlpha=.8,t.fillText(n,i,r),t.globalAlpha=1}},[]),K=(0,l.useCallback)(e=>`${e.name}
2
+ ${e.entityType} \u00b7 ${e.memoryCount} memories
3
+ Click to explore`,[]),H=(0,l.useCallback)(e=>{e.isFocal||I(e.id)},[I]);if(!S&&0===L.length&&!g)return(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center max-w-md",children:[(0,s.jsx)("div",{className:"text-slate-600 text-4xl mb-4",children:"🕸"}),(0,s.jsx)("h3",{className:"text-lg font-medium text-slate-300 mb-2",children:"No knowledge graph yet"}),(0,s.jsx)("p",{className:"text-sm text-slate-500",children:"As memories are created, ShieldCortex automatically extracts entities and relationships. The graph will appear here once entities are detected."})]})});let X=N?.focal,q=N?.neighbours||[],V=(()=>{if(!N)return[];let e=new Map;for(let t of N.triples){let s=t.subject_id===N.focal.id,l=s?t.object_id:t.subject_id,a=N.neighbours.find(e=>e.id===l);if(!a)continue;let i=`${t.predicate}-${s?"out":"in"}`;e.has(i)||e.set(i,{predicate:t.predicate,neighbours:[],direction:s?"out":"in"});let r=e.get(i);r.neighbours.find(e=>e.id===a.id)||r.neighbours.push(a)}return[...e.values()].sort((e,t)=>"related_to"===e.predicate&&"related_to"!==t.predicate?1:"related_to"!==e.predicate&&"related_to"===t.predicate?-1:t.neighbours.length-e.neighbours.length)})();return(0,s.jsxs)("div",{className:"w-full h-full flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 border-b border-slate-800 bg-slate-900/50 shrink-0",children:[(0,s.jsx)("button",{onClick:O,disabled:0===y.length,className:"p-1.5 rounded text-slate-400 hover:text-white hover:bg-slate-800 disabled:opacity-30 disabled:cursor-default transition-colors",title:"Go back",children:(0,s.jsx)(c,{size:16})}),X&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-sm min-w-0",children:[(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:m[X.type]||b}}),(0,s.jsx)("span",{className:"font-semibold text-white truncate",children:X.name}),(0,s.jsx)("span",{className:"text-slate-500 shrink-0",children:X.type}),(0,s.jsx)("span",{className:"text-slate-600 shrink-0",children:"·"}),(0,s.jsxs)("span",{className:"text-slate-500 shrink-0",children:[X.memoryCount," memories"]}),N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-slate-600 shrink-0",children:"·"}),(0,s.jsxs)("span",{className:"text-slate-500 shrink-0",children:[q.length," connections"]})]})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{onClick:()=>{z(!R),setTimeout(()=>E.current?.focus(),100)},className:"p-1.5 rounded text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",title:"Search entities",children:(0,s.jsx)(i.Search,{size:16})}),R&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-1 w-72 bg-slate-800 border border-slate-700 rounded-lg shadow-xl z-30",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(i.Search,{size:12,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500"}),(0,s.jsx)("input",{ref:E,type:"text",placeholder:"Search entities...",value:F,onChange:e=>A(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(z(!1),A(""))},className:"w-full pl-8 pr-8 py-2 text-sm bg-transparent border-b border-slate-700 text-white placeholder:text-slate-500 focus:outline-none"}),F&&(0,s.jsx)("button",{onClick:()=>A(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white",children:(0,s.jsx)(r.X,{size:12})})]}),(0,s.jsx)("div",{className:"max-h-64 overflow-y-auto",children:M.length>0?M.map(e=>(0,s.jsxs)("button",{onClick:()=>{I(e.id),z(!1),A("")},className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-slate-300 hover:bg-slate-700 transition-colors",children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:m[e.type]||b}}),(0,s.jsx)("span",{className:"truncate flex-1 text-left",children:e.name}),(0,s.jsx)("span",{className:"text-xs text-slate-500 shrink-0",children:e.type}),(0,s.jsx)("span",{className:"text-xs text-slate-600 shrink-0",children:e.memoryCount})]},e.id)):F.trim()?(0,s.jsx)("div",{className:"px-3 py-4 text-xs text-slate-500 text-center",children:"No entities found"}):(0,s.jsx)("div",{className:"px-3 py-2 text-xs text-slate-600",children:"Type to search..."})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 text-xs text-slate-600",title:"Graph shows all projects",children:[(0,s.jsx)(o,{size:11}),(0,s.jsx)("span",{children:"Workspace-wide"})]})]}),(0,s.jsxs)("div",{className:"flex-1 flex min-h-0 overflow-hidden",children:[(0,s.jsxs)("div",{className:"w-[240px] shrink-0 border-r border-slate-800 bg-slate-900/30 flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"p-3 border-b border-slate-800",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-slate-600 mb-2",children:"Top Entities"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1",children:L.slice(0,12).map(e=>(0,s.jsxs)("button",{onClick:()=>I(e.id),className:`flex items-center gap-1 px-2 py-0.5 text-xs rounded-full border transition-colors ${g===e.id?"border-transparent text-white":"border-slate-700 text-slate-500 hover:text-slate-300 hover:border-slate-600"}`,style:g===e.id?{backgroundColor:(m[e.type]||b)+"40",color:m[e.type]}:{},children:[(0,s.jsx)("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:m[e.type]||b}}),e.name]},e.id))})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:V.length>0?V.map(e=>(0,s.jsxs)("div",{className:"border-b border-slate-800/50",children:[(0,s.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider font-medium",style:{color:p[e.predicate]||"#94a3b8"},children:["out"===e.direction?"":"← ",f[e.predicate]||e.predicate,"out"===e.direction?" →":"",(0,s.jsxs)("span",{className:"text-slate-600 ml-1",children:["(",e.neighbours.length,")"]})]}),e.neighbours.map(e=>(0,s.jsxs)("button",{onClick:()=>I(e.id),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-slate-400 hover:text-white hover:bg-slate-800/50 transition-colors",children:[(0,s.jsx)("div",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:m[e.type]||b}}),(0,s.jsx)("span",{className:"truncate flex-1 text-left",children:e.name}),(0,s.jsx)("span",{className:"text-slate-600 tabular-nums shrink-0",children:e.memoryCount}),(0,s.jsx)(d.ChevronRight,{size:10,className:"text-slate-700 shrink-0"})]},e.id))]},`${e.predicate}-${e.direction}`)):S?(0,s.jsx)("div",{className:"p-4 text-xs text-slate-500 text-center animate-pulse",children:"Loading..."}):(0,s.jsx)("div",{className:"p-4 text-xs text-slate-500 text-center",children:"No connections"})}),w.length>0&&(0,s.jsxs)("div",{className:"border-t border-slate-800 max-h-[200px] overflow-y-auto",children:[(0,s.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-slate-600 sticky top-0 bg-slate-900/80 backdrop-blur-sm",children:["Memories (",w.length,")"]}),w.slice(0,15).map(e=>(0,s.jsxs)("div",{className:"px-3 py-1.5 border-b border-slate-800/30",children:[(0,s.jsx)("div",{className:"text-xs text-slate-300 truncate",children:e.title}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,s.jsx)("span",{className:"text-[10px] text-slate-500",children:e.category}),(0,s.jsx)("span",{className:"text-[10px] text-slate-600 ml-auto",children:new Date(e.created_at).toLocaleDateString()})]})]},e.id))]})]}),(0,s.jsxs)("div",{ref:e,className:"flex-1 min-h-0 relative",children:[S&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsx)("div",{className:"text-slate-400 animate-pulse text-sm",children:"Loading..."})}),$&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsxs)("div",{className:"text-red-400 text-sm",children:["Error: ",$]})}),!S&&!$&&U.nodes.length>0&&a.width>0&&(0,s.jsx)(x,{ref:t,graphData:U,width:a.width,height:a.height,backgroundColor:"rgba(0,0,0,0)",nodeCanvasObject:W,nodeLabel:K,onNodeClick:H,linkCanvasObject:G,linkDirectionalArrowLength:6,linkDirectionalArrowRelPos:.85,d3AlphaDecay:.05,d3VelocityDecay:.3,warmupTicks:80,cooldownTicks:150})]})]})]})}e.s(["default",()=>g],68595)},13213,e=>{e.n(e.i(68595))},23531,e=>{e.v(t=>Promise.all(["static/chunks/364656baa57adaa7.js"].map(t=>e.l(t))).then(()=>t(23272)))}]);