@drewpayment/mink 0.13.0-beta.2 → 0.13.0-beta.4

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 (90) hide show
  1. package/dashboard/out/404.html +1 -1
  2. package/dashboard/out/_next/static/chunks/157-7bbe4894a18a8332.js +1 -0
  3. package/dashboard/out/_next/static/chunks/447-8cfdad14e7559c07.js +1 -0
  4. package/dashboard/out/_next/static/chunks/app/(panels)/activity/page-c285fb9f63d9a82a.js +1 -0
  5. package/dashboard/out/_next/static/chunks/app/(panels)/bugs/page-f3ba7d8f50a96568.js +1 -0
  6. package/dashboard/out/_next/static/chunks/app/(panels)/capture/page-e004bec9af99a244.js +1 -0
  7. package/dashboard/out/_next/static/chunks/app/(panels)/compression/page-21e1af119b3f81ff.js +1 -0
  8. package/dashboard/out/_next/static/chunks/app/(panels)/config/page-d47fb6f588ccfd4b.js +1 -0
  9. package/dashboard/out/_next/static/chunks/app/(panels)/daemon/page-52f913e751416717.js +1 -0
  10. package/dashboard/out/_next/static/chunks/app/(panels)/design/page-53a76719b9af5830.js +1 -0
  11. package/dashboard/out/_next/static/chunks/app/(panels)/discord/page-04502d12c4a96cf7.js +1 -0
  12. package/dashboard/out/_next/static/chunks/app/(panels)/file-index/page-a1bd10e04bb219d9.js +1 -0
  13. package/dashboard/out/_next/static/chunks/app/(panels)/insights/page-7367274963571b6b.js +1 -0
  14. package/dashboard/out/_next/static/chunks/app/(panels)/learning/{page-b766adc79099adb4.js → page-4a03cf7b9a6106fd.js} +1 -1
  15. package/dashboard/out/_next/static/chunks/app/(panels)/overview/page-141f456cd7141815.js +1 -0
  16. package/dashboard/out/_next/static/chunks/app/(panels)/scheduler/page-510b78c9b0a61012.js +1 -0
  17. package/dashboard/out/_next/static/chunks/app/(panels)/sync/page-b7215c2a29a7d7a7.js +1 -0
  18. package/dashboard/out/_next/static/chunks/app/(panels)/tokens/page-1be7ed35a5c9bd39.js +1 -0
  19. package/dashboard/out/_next/static/chunks/app/(panels)/waste/page-24a726e6d63f771a.js +1 -0
  20. package/dashboard/out/_next/static/chunks/app/(panels)/wiki/page-230d2d1cae6507a8.js +1 -0
  21. package/dashboard/out/_next/static/chunks/app/layout-99d1a82956bc0f56.js +1 -0
  22. package/dashboard/out/_next/static/css/0e381ead1d090c3f.css +1 -0
  23. package/dashboard/out/_next/static/zeNEMTDaNBRpOk-to-GkA/_buildManifest.js +1 -0
  24. package/dashboard/out/action-log.html +1 -1
  25. package/dashboard/out/action-log.txt +5 -5
  26. package/dashboard/out/activity.html +1 -1
  27. package/dashboard/out/activity.txt +6 -6
  28. package/dashboard/out/bugs.html +1 -1
  29. package/dashboard/out/bugs.txt +6 -6
  30. package/dashboard/out/capture.html +1 -1
  31. package/dashboard/out/capture.txt +6 -6
  32. package/dashboard/out/compression.html +1 -0
  33. package/dashboard/out/compression.txt +24 -0
  34. package/dashboard/out/config.html +1 -1
  35. package/dashboard/out/config.txt +6 -6
  36. package/dashboard/out/daemon.html +1 -1
  37. package/dashboard/out/daemon.txt +6 -6
  38. package/dashboard/out/design.html +1 -1
  39. package/dashboard/out/design.txt +6 -6
  40. package/dashboard/out/discord.html +1 -1
  41. package/dashboard/out/discord.txt +6 -6
  42. package/dashboard/out/file-index.html +1 -1
  43. package/dashboard/out/file-index.txt +6 -6
  44. package/dashboard/out/index.html +1 -1
  45. package/dashboard/out/index.txt +5 -5
  46. package/dashboard/out/insights.html +1 -1
  47. package/dashboard/out/insights.txt +6 -6
  48. package/dashboard/out/learning.html +1 -1
  49. package/dashboard/out/learning.txt +6 -6
  50. package/dashboard/out/overview.html +1 -1
  51. package/dashboard/out/overview.txt +6 -6
  52. package/dashboard/out/scheduler.html +1 -1
  53. package/dashboard/out/scheduler.txt +6 -6
  54. package/dashboard/out/sync.html +1 -1
  55. package/dashboard/out/sync.txt +6 -6
  56. package/dashboard/out/tokens.html +1 -1
  57. package/dashboard/out/tokens.txt +6 -6
  58. package/dashboard/out/waste.html +1 -1
  59. package/dashboard/out/waste.txt +6 -6
  60. package/dashboard/out/wiki.html +1 -1
  61. package/dashboard/out/wiki.txt +6 -6
  62. package/dist/cli.bun.js +68 -4
  63. package/dist/cli.node.js +68 -4
  64. package/package.json +1 -1
  65. package/src/commands/status.ts +13 -1
  66. package/src/core/dashboard-api.ts +20 -1
  67. package/src/core/dashboard-server.ts +3 -0
  68. package/src/repositories/token-ledger-repo.ts +55 -0
  69. package/src/types/dashboard.ts +22 -1
  70. package/src/types/token-ledger.ts +22 -0
  71. package/dashboard/out/_next/static/Yl3F-J4CwvYf6yWG-SSmG/_buildManifest.js +0 -1
  72. package/dashboard/out/_next/static/chunks/189-fe789442321eb5eb.js +0 -1
  73. package/dashboard/out/_next/static/chunks/app/(panels)/activity/page-096a97ba539d5323.js +0 -1
  74. package/dashboard/out/_next/static/chunks/app/(panels)/bugs/page-449d31c133432458.js +0 -1
  75. package/dashboard/out/_next/static/chunks/app/(panels)/capture/page-c6617aa0a8a7333e.js +0 -1
  76. package/dashboard/out/_next/static/chunks/app/(panels)/config/page-aa0a0623b3fdd0d8.js +0 -1
  77. package/dashboard/out/_next/static/chunks/app/(panels)/daemon/page-7cd3fac2f5d87a0d.js +0 -1
  78. package/dashboard/out/_next/static/chunks/app/(panels)/design/page-5304675c96b6793b.js +0 -1
  79. package/dashboard/out/_next/static/chunks/app/(panels)/discord/page-9940dde80ba2a69e.js +0 -1
  80. package/dashboard/out/_next/static/chunks/app/(panels)/file-index/page-ecd8a753614e981e.js +0 -1
  81. package/dashboard/out/_next/static/chunks/app/(panels)/insights/page-7909d8beb8d8ef7a.js +0 -1
  82. package/dashboard/out/_next/static/chunks/app/(panels)/overview/page-7a9e86dcde67d6a9.js +0 -1
  83. package/dashboard/out/_next/static/chunks/app/(panels)/scheduler/page-a88f93204c9742a1.js +0 -1
  84. package/dashboard/out/_next/static/chunks/app/(panels)/sync/page-8a9ad4c36aa6cb65.js +0 -1
  85. package/dashboard/out/_next/static/chunks/app/(panels)/tokens/page-8dac7d50d4db2756.js +0 -1
  86. package/dashboard/out/_next/static/chunks/app/(panels)/waste/page-bcf56144faf7d133.js +0 -1
  87. package/dashboard/out/_next/static/chunks/app/(panels)/wiki/page-a32fdbd0bf58b30b.js +0 -1
  88. package/dashboard/out/_next/static/chunks/app/layout-782cd26e0ccc4514.js +0 -1
  89. package/dashboard/out/_next/static/css/5e43917ea49c5b3e.css +0 -1
  90. /package/dashboard/out/_next/static/{Yl3F-J4CwvYf6yWG-SSmG → zeNEMTDaNBRpOk-to-GkA}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--Yl3F_J4CwvYf6yWG_SSmG--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/bb3ef058b751a6ad-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e4af272ccee01ff0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/5e43917ea49c5b3e.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-4e3139a490df1cfe.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-6b79f309a27fb98b.js" async=""></script><script src="/_next/static/chunks/main-app-c2dc0acf542ec1c6.js" async=""></script><script src="/_next/static/chunks/189-fe789442321eb5eb.js" async=""></script><script src="/_next/static/chunks/app/layout-782cd26e0ccc4514.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Mink — Command Center</title><meta name="description" content="Real-time dashboard for Mink token intelligence"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_f367f3 __variable_3c557b" data-theme="dark" data-accent="green" data-density="compact" data-live="on" data-daemon="offline"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","mink-theme","dark",null,["light","dark"],{"light":"light","dark":"dark"},true,true)</script><div id="app-root"><div class="shell"><aside class="sidebar"><div class="sb-head"><div class="sb-logo">M</div><div class="sb-title">Mink</div><div class="sb-sub">v1</div></div><div class="sb-project"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"></path></svg><div style="min-width:0;flex:1"><div class="pname">Mink</div><div class="pslug"></div></div><svg class="icn pchev" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"></path></svg></div><div><div class="sb-group">Overview</div><a class="sb-item" href="/overview"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"></path></svg><span>Sessions</span></a><a class="sb-item" href="/activity"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h4l2-7 4 14 2-7h6"></path></svg><span>Activity log</span></a><a class="sb-item" href="/tokens"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3"></path></svg><span>Token ledger</span></a><a class="sb-item" href="/waste"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l11 20H1L12 2zm0 7v5m0 4v0"></path></svg><span>Waste detect</span></a></div><div><div class="sb-group">Knowledge</div><a class="sb-item" href="/file-index"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z"></path></svg><span>File index</span></a><a class="sb-item" href="/learning"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z"></path></svg><span>Learning</span></a><a class="sb-item" href="/bugs"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3"></path></svg><span>Bug memory</span></a></div><div><div class="sb-group">Notes &amp; Wiki</div><a class="sb-item" href="/wiki"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16"></path></svg><span>Vault</span></a><a class="sb-item" href="/capture"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M5 12h14"></path></svg><span>Capture</span></a></div><div><div class="sb-group">Operations</div><a class="sb-item" href="/scheduler"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2"></path></svg><span>Scheduler</span></a><a class="sb-item" href="/discord"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z"></path></svg><span>Discord</span></a><a class="sb-item" href="/sync"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9"></path></svg><span>Sync</span></a></div><div><div class="sb-group">System</div><a class="sb-item" href="/daemon"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6a8 8 0 11-12 0M12 2v8"></path></svg><span>Daemon</span></a><a class="sb-item" href="/config"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z"></path></svg><span>Configuration</span></a></div><div style="height:20px"></div></aside><header class="topbar"><div class="tb-section"><span class="muted">Mink</span><span class="sep">/</span><span class="muted">Overview</span><span class="sep">/</span><span class="crumb">Sessions</span></div><div class="tb-spacer"></div><div class="cmdk" title="Command palette (coming soon)"><svg class="icn" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z"></path></svg><span>Search files, notes, bugs…</span><kbd>⌘K</kbd></div><span class="daemon-pill" title="Daemon offline"><span class="pulse"></span><span class="mono" style="font-size:10.5px">daemon · offline</span></span><button type="button" class="tb-icon-btn" title="Refresh data"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5"></path></svg></button><button type="button" class="tb-icon-btn" title="Tweaks"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9"></path></svg></button><button type="button" class="tb-icon-btn" title="More" aria-label="More"><svg class="icn" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z"></path></svg></button></header><main class="main"><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><!--$--><!--/$--></main><footer class="statusbar"><span class="sb-stat daemon-stat"><span class="dot-mini"></span><span class="k">daemon</span><span class="v">offline</span></span><span style="flex:1"></span><span class="sb-stat"><span class="k">run</span><span class="v">mink daemon start</span></span></footer></div></div><script src="/_next/static/chunks/webpack-4e3139a490df1cfe.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[5379,[\"189\",\"static/chunks/189-fe789442321eb5eb.js\",\"177\",\"static/chunks/app/layout-782cd26e0ccc4514.js\"],\"ThemeProvider\"]\n3:I[2800,[\"189\",\"static/chunks/189-fe789442321eb5eb.js\",\"177\",\"static/chunks/app/layout-782cd26e0ccc4514.js\"],\"SSEProvider\"]\n4:I[7758,[\"189\",\"static/chunks/189-fe789442321eb5eb.js\",\"177\",\"static/chunks/app/layout-782cd26e0ccc4514.js\"],\"AppShell\"]\n5:I[9766,[],\"\"]\n6:I[8924,[],\"\"]\n7:I[4431,[],\"OutletBoundary\"]\n9:I[5278,[],\"AsyncMetadataOutlet\"]\nb:I[4431,[],\"ViewportBoundary\"]\nd:I[4431,[],\"MetadataBoundary\"]\ne:\"$Sreact.suspense\"\n10:I[7150,[],\"\"]\n:HL[\"/_next/static/media/bb3ef058b751a6ad-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/5e43917ea49c5b3e.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"Yl3F-J4CwvYf6yWG-SSmG\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5e43917ea49c5b3e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_f367f3 __variable_3c557b\",\"data-theme\":\"dark\",\"data-accent\":\"green\",\"data-density\":\"compact\",\"data-live\":\"on\",\"data-daemon\":\"offline\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"data-theme\",\"value\":{\"light\":\"light\",\"dark\":\"dark\"},\"defaultTheme\":\"dark\",\"enableSystem\":true,\"storageKey\":\"mink-theme\",\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$L8\",[\"$\",\"$L9\",null,{\"promise\":\"$@a\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$e\",null,{\"fallback\":null,\"children\":\"$Lf\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n8:null\n"])</script><script>self.__next_f.push([1,"a:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Mink — Command Center\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time dashboard for Mink token intelligence\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"f:\"$a:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--zeNEMTDaNBRpOk_to_GkA--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/bb3ef058b751a6ad-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e4af272ccee01ff0-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/0e381ead1d090c3f.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-4e3139a490df1cfe.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-6b79f309a27fb98b.js" async=""></script><script src="/_next/static/chunks/main-app-c2dc0acf542ec1c6.js" async=""></script><script src="/_next/static/chunks/157-7bbe4894a18a8332.js" async=""></script><script src="/_next/static/chunks/447-8cfdad14e7559c07.js" async=""></script><script src="/_next/static/chunks/app/layout-99d1a82956bc0f56.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Mink — Command Center</title><meta name="description" content="Real-time dashboard for Mink token intelligence"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_f367f3 __variable_3c557b" data-theme="dark" data-accent="green" data-density="compact" data-live="on" data-daemon="offline"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","mink-theme","dark",null,["light","dark"],{"light":"light","dark":"dark"},true,true)</script><div id="app-root"><div class="shell"><aside class="sidebar"><div class="sb-head"><div class="sb-logo">M</div><div class="sb-title">Mink</div><div class="sb-sub">v1</div></div><div class="sb-project"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"></path></svg><div style="min-width:0;flex:1"><div class="pname">Mink</div><div class="pslug"></div></div><svg class="icn pchev" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"></path></svg></div><div><div class="sb-group">Overview</div><a class="sb-item" href="/overview"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"></path></svg><span>Overview</span></a><a class="sb-item" href="/activity"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h4l2-7 4 14 2-7h6"></path></svg><span>Activity log</span></a><a class="sb-item" href="/tokens"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3"></path></svg><span>Token ledger</span></a><a class="sb-item" href="/compression"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3"></path></svg><span>Compression</span></a><a class="sb-item" href="/waste"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l11 20H1L12 2zm0 7v5m0 4v0"></path></svg><span>Waste detect</span></a></div><div><div class="sb-group">Knowledge</div><a class="sb-item" href="/file-index"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z"></path></svg><span>File index</span></a><a class="sb-item" href="/learning"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z"></path></svg><span>Learning</span></a><a class="sb-item" href="/bugs"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3"></path></svg><span>Bug memory</span></a></div><div><div class="sb-group">Notes &amp; Wiki</div><a class="sb-item" href="/wiki"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16"></path></svg><span>Vault</span></a><a class="sb-item" href="/capture"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M5 12h14"></path></svg><span>Capture</span></a></div><div><div class="sb-group">Operations</div><a class="sb-item" href="/scheduler"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2"></path></svg><span>Scheduler</span></a><a class="sb-item" href="/discord"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z"></path></svg><span>Discord</span></a><a class="sb-item" href="/sync"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9"></path></svg><span>Sync</span></a></div><div><div class="sb-group">System</div><a class="sb-item" href="/daemon"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6a8 8 0 11-12 0M12 2v8"></path></svg><span>Daemon</span></a><a class="sb-item" href="/config"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z"></path></svg><span>Configuration</span></a></div><div style="height:20px"></div></aside><header class="topbar"><div class="tb-section"><span class="muted">Mink</span><span class="sep">/</span><span class="muted">Overview</span><span class="sep">/</span><span class="crumb">Overview</span></div><div class="tb-spacer"></div><div class="cmdk" title="Command palette (coming soon)"><svg class="icn" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z"></path></svg><span>Search files, notes, bugs…</span><kbd>⌘K</kbd></div><span class="daemon-pill" title="Daemon offline"><span class="pulse"></span><span class="mono" style="font-size:10.5px">daemon · offline</span></span><button type="button" class="tb-icon-btn" title="Refresh data"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5"></path></svg></button><button type="button" class="tb-icon-btn" title="Tweaks"><svg class="icn" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9"></path></svg></button><button type="button" class="tb-icon-btn" title="More" aria-label="More"><svg class="icn" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z"></path></svg></button></header><main class="main"><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><!--$--><!--/$--></main><footer class="statusbar"><span class="sb-stat daemon-stat"><span class="dot-mini"></span><span class="k">daemon</span><span class="v">offline</span></span><span style="flex:1"></span><span class="sb-stat"><span class="k">run</span><span class="v">mink daemon start</span></span></footer></div></div><script src="/_next/static/chunks/webpack-4e3139a490df1cfe.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[5379,[\"157\",\"static/chunks/157-7bbe4894a18a8332.js\",\"447\",\"static/chunks/447-8cfdad14e7559c07.js\",\"177\",\"static/chunks/app/layout-99d1a82956bc0f56.js\"],\"ThemeProvider\"]\n3:I[2800,[\"157\",\"static/chunks/157-7bbe4894a18a8332.js\",\"447\",\"static/chunks/447-8cfdad14e7559c07.js\",\"177\",\"static/chunks/app/layout-99d1a82956bc0f56.js\"],\"SSEProvider\"]\n4:I[7758,[\"157\",\"static/chunks/157-7bbe4894a18a8332.js\",\"447\",\"static/chunks/447-8cfdad14e7559c07.js\",\"177\",\"static/chunks/app/layout-99d1a82956bc0f56.js\"],\"AppShell\"]\n5:I[9766,[],\"\"]\n6:I[8924,[],\"\"]\n7:I[4431,[],\"OutletBoundary\"]\n9:I[5278,[],\"AsyncMetadataOutlet\"]\nb:I[4431,[],\"ViewportBoundary\"]\nd:I[4431,[],\"MetadataBoundary\"]\ne:\"$Sreact.suspense\"\n10:I[7150,[],\"\"]\n:HL[\"/_next/static/media/bb3ef058b751a6ad-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/0e381ead1d090c3f.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"zeNEMTDaNBRpOk-to-GkA\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/0e381ead1d090c3f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_f367f3 __variable_3c557b\",\"data-theme\":\"dark\",\"data-accent\":\"green\",\"data-density\":\"compact\",\"data-live\":\"on\",\"data-daemon\":\"offline\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"data-theme\",\"value\":{\"light\":\"light\",\"dark\":\"dark\"},\"defaultTheme\":\"dark\",\"enableSystem\":true,\"storageKey\":\"mink-theme\",\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$L8\",[\"$\",\"$L9\",null,{\"promise\":\"$@a\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$e\",null,{\"fallback\":null,\"children\":\"$Lf\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n8:null\n"])</script><script>self.__next_f.push([1,"a:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Mink — Command Center\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time dashboard for Mink token intelligence\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"f:\"$a:metadata\"\n"])</script></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{2296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return d},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return c},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return P}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function i(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Object.defineProperty(Error('"'+i(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,d=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},2619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return m}});let n=r(9417),o=r(5155),u=n._(r(2115)),a=r(7670),l=r(6752),i=r(3011),c=r(2296),f=r(6058);r(4781);let s=r(3499),p=r(8607),d=r(1807);r(7045);let h=r(6048);function y(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,m]=(0,u.useOptimistic)(s.IDLE_LINK_STATUS),P=(0,u.useRef)(null),{href:_,as:v,children:E,prefetch:O=null,passHref:j,replace:S,shallow:C,scroll:N,onClick:T,onMouseEnter:x,onTouchStart:A,legacyBehavior:M=!1,onNavigate:R,ref:k,unstable_dynamicOnHover:I,...L}=e;r=E,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let w=u.default.useContext(l.AppRouterContext),U=!1!==O,F=!1!==O?null===(t=O)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:D,as:K}=u.default.useMemo(()=>{let e=y(_);return{href:e,as:v?y(v):e}},[_,v]);M&&(n=u.default.Children.only(r));let B=M?n&&"object"==typeof n&&n.ref:k,z=u.default.useCallback(e=>(null!==w&&(P.current=(0,s.mountLinkInstance)(e,D,w,F,U,m)),()=>{P.current&&((0,s.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,s.unmountPrefetchableInstance)(e)}),[U,D,w,F,m]),Q={ref:(0,i.useMergedRef)(z,B),onClick(e){M||"function"!=typeof T||T(e),M&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),w&&(e.defaultPrevented||function(e,t,r,n,o,a,l){let{nodeName:i}=e.currentTarget;if(!("A"===i.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}u.default.startTransition(()=>{(0,d.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,D,K,P,S,N,R))},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),w&&U&&(0,s.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){M||"function"!=typeof A||A(e),M&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),w&&U&&(0,s.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,c.isAbsoluteUrl)(K)?Q.href=K:M&&!j&&("a"!==n.type||"href"in n.props)||(Q.href=(0,f.addBasePath)(K)),a=M?u.default.cloneElement(n,Q):(0,o.jsx)("a",{...L,...Q,children:r}),(0,o.jsx)(b.Provider,{value:g,children:a})}let b=(0,u.createContext)(s.IDLE_LINK_STATUS),m=()=>(0,u.useContext)(b);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3011:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(2115);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3078:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function u(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},5959:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(2115);let o=e=>{let t,r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,u={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,o,u);return u},u=e=>{let t=(e=>e?o(e):o)(e),r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},a=e=>e?u(e):u},7045:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},7670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let n=r(9417)._(r(3078)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,u=e.protocol||"",a=e.pathname||"",l=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(n.urlQueryToSearchParams(i)));let f=e.search||i&&"?"+i||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),f&&"?"!==f[0]&&(f="?"+f),""+u+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(f=f.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return u(e)}},8607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=r(2296),o=r(2929);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[447],{63:(e,t,r)=>{"use strict";var n=r(7260);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},369:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>m,ThemeProvider:()=>c});var n=r(2115),a=(e,t,r,n,a,s,l,o)=>{let i=document.documentElement,m=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&s?a.map(e=>s[e]||e):a;r?(i.classList.remove(...n),i.classList.add(s&&s[t]?s[t]:t)):i.setAttribute(e,t)}),r=t,o&&m.includes(r)&&(i.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},s=["light","dark"],l="(prefers-color-scheme: dark)",o=n.createContext(void 0),i={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=n.useContext(o))?e:i},c=e=>n.useContext(o)?n.createElement(n.Fragment,null,e.children):n.createElement(d,{...e}),u=["light","dark"],d=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:a=!0,enableColorScheme:i=!0,storageKey:m="theme",themes:c=u,defaultTheme:d=a?"system":"light",attribute:g="data-theme",value:p,children:b,nonce:S,scriptProps:w}=e,[k,E]=n.useState(()=>f(m,d)),[_,C]=n.useState(()=>"system"===k?y():k),I=p?Object.values(p):c,T=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=y());let n=p?p[t]:t,l=r?v(S):null,o=document.documentElement,m=e=>{"class"===e?(o.classList.remove(...I),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(g)?g.forEach(m):m(g),i){let e=s.includes(d)?d:null,r=s.includes(t)?t:e;o.style.colorScheme=r}null==l||l()},[S]),P=n.useCallback(e=>{let t="function"==typeof e?e(k):e;E(t);try{localStorage.setItem(m,t)}catch(e){}},[k]),N=n.useCallback(e=>{C(y(e)),"system"===k&&a&&!t&&T("system")},[k,t]);n.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(N),N(e),()=>e.removeListener(N)},[N]),n.useEffect(()=>{let e=e=>{e.key===m&&(e.newValue?E(e.newValue):P(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),n.useEffect(()=>{T(null!=t?t:k)},[t,k]);let L=n.useMemo(()=>({theme:k,setTheme:P,forcedTheme:t,resolvedTheme:"system"===k?_:k,themes:a?[...c,"system"]:c,systemTheme:a?_:void 0}),[k,P,t,_,a,c]);return n.createElement(o.Provider,{value:L},n.createElement(h,{forcedTheme:t,storageKey:m,attribute:g,enableSystem:a,enableColorScheme:i,defaultTheme:d,value:p,themes:c,nonce:S,scriptProps:w}),b)},h=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:o,defaultTheme:i,value:m,themes:c,nonce:u,scriptProps:d}=e,h=JSON.stringify([s,r,i,t,c,m,l,o]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(h,")")}})}),f=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},7770:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_3c557b",variable:"__variable_3c557b"}},9863:(e,t,r)=>{"use strict";function n(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),s=null!=(n=r.getItem(e))?n:null;return s instanceof Promise?s.then(a):a(s)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}r.d(t,{KU:()=>n,Zr:()=>s});let a=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>a(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},s=(e,t)=>(r,s,l)=>{let o,i={storage:n(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},m=!1,c=0,u=new Set,d=new Set,h=i.storage;if(!h)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)},s,l);let f=()=>{let e=i.partialize({...s()});return h.setItem(i.name,{state:e,version:i.version})},v=l.setState;l.setState=(e,t)=>(v(e,t),f());let y=e((...e)=>(r(...e),f()),s,l);l.getInitialState=()=>y;let g=()=>{var e,t;if(!h)return;let n=++c;m=!1,u.forEach(e=>{var t;return e(null!=(t=s())?t:y)});let l=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=s())?e:y))||void 0;return a(h.getItem.bind(h))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate){let t=i.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(n!==c)return;let[a,l]=e;if(r(o=i.merge(l,null!=(t=s())?t:y),!0),a)return f()}).then(()=>{n===c&&(null==l||l(s(),void 0),o=s(),m=!0,d.forEach(e=>e(o)))}).catch(e=>{n===c&&(null==l||l(void 0,e))})};return l.persist={setOptions:e=>{i={...i,...e},e.storage&&(h=e.storage)},clearStorage:()=>{null==h||h.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>m,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},i.skipHydration||g(),o||y}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91],{1044:(e,s,t)=>{"use strict";t.d(s,{I:()=>n});var l=t(5155);let a={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function n(e){let{name:s,size:t=14,stroke:n=1.7,className:i=""}=e,r=a[s];return r?(0,l.jsx)("svg",{className:"icn ".concat(i).trim(),width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:r})}):null}},3742:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});var l=t(5155);function a(e){let{title:s,sub:t,tools:a,flush:n,className:i="",style:r,children:c}=e,o=null!=s||null!=a;return(0,l.jsxs)("div",{className:"card ".concat(i).trim(),style:r,children:[o&&(0,l.jsxs)("div",{className:"card-head",children:[null!=s&&("string"==typeof s?(0,l.jsx)("h3",{children:s}):s),null!=t&&(0,l.jsx)("span",{className:"sub",children:t}),null!=a&&(0,l.jsx)("div",{className:"tools",children:a})]}),(0,l.jsx)("div",{className:"card-body ".concat(n?"flush":"").trim(),children:c})]})}},3928:(e,s,t)=>{"use strict";t.d(s,{f:()=>l});let l=(0,t(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:s=>e({connected:s}),setProjects:(s,t)=>e({projects:s,activeProjectId:t}),setActiveProject:s=>e({activeProjectId:s,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:s=>e({overview:s}),setLedger:s=>{var t;return e({ledger:s,wasteFlags:null!=(t=s.wasteFlags)?t:[]})},setCompression:s=>e({compression:s}),setFileIndex:s=>e({fileIndex:s}),setScheduler:(s,t,l)=>e({tasks:s,taskDefinitions:t,deadLetters:l}),setHealth:s=>e({health:s}),setLearningMemory:s=>e({learningMemory:s}),setActionLog:s=>e({actionLog:s}),setBugs:s=>e({bugs:s}),setWasteFlags:s=>e({wasteFlags:s}),setDesignImages:s=>e({designImages:s}),setConfig:s=>e({config:s}),setSync:s=>e({sync:s}),setChannel:s=>e({channel:s}),setWiki:s=>e({wiki:s}),setWikiNote:s=>e({wikiNote:s})}))},5530:(e,s,t)=>{Promise.resolve().then(t.bind(t,6893))},5959:(e,s,t)=>{"use strict";t.d(s,{v:()=>i});var l=t(2115);let a=e=>{let s,t=new Set,l=(e,l)=>{let a="function"==typeof e?e(s):e;if(!Object.is(a,s)){let e=s;s=(null!=l?l:"object"!=typeof a||null===a)?a:Object.assign({},s,a),t.forEach(t=>t(s,e))}},a=()=>s,n={setState:l,getState:a,getInitialState:()=>i,subscribe:e=>(t.add(e),()=>t.delete(e))},i=s=e(l,a,n);return n},n=e=>{let s=(e=>e?a(e):a)(e),t=e=>(function(e,s=e=>e){let t=l.useSyncExternalStore(e.subscribe,l.useCallback(()=>s(e.getState()),[e,s]),l.useCallback(()=>s(e.getInitialState()),[e,s]));return l.useDebugValue(t),t})(s,e);return Object.assign(t,s),t},i=e=>e?n(e):n},6845:(e,s,t)=>{"use strict";t.d(s,{t:()=>n});var l=t(5155),a=t(1044);function n(e){let{icon:s,variant:t,size:n,className:i="",children:r,...c}=e,o=["btn"];return t&&o.push(t),n&&o.push(n),i&&o.push(i),(0,l.jsxs)("button",{className:o.join(" "),...c,children:[s&&(0,l.jsx)(a.I,{name:s}),r]})}},6893:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var l=t(5155),a=t(2115),n=t(3928),i=t(3742),r=t(7125),c=t(6845);let o=["all","read","write","session","other"];function h(e){let s=e.action.toLowerCase();return"read"===s?"read":"create"===s||"edit"===s||"write"===s?"write":s.includes("session")?"session":"other"}function d(){let e=(0,n.f)(e=>e.actionLog),[s,t]=(0,a.useState)("all"),d=(0,a.useMemo)(()=>[...e].reverse(),[e]),u="all"===s?d:d.filter(e=>h(e)===s);return(0,l.jsxs)("div",{className:"page",children:[(0,l.jsxs)("div",{className:"page-head",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"page-title",children:"Activity log"}),(0,l.jsx)("p",{className:"page-sub",children:"Chronological, human-readable record of every hook event"})]}),(0,l.jsx)("div",{className:"page-actions",children:(0,l.jsx)(c.t,{icon:"download",variant:"ghost",disabled:!0,title:"Export coming soon",children:"Export .md"})})]}),(0,l.jsx)(i.Z,{title:"Recent activity",sub:"".concat(u.length," events"),tools:(0,l.jsx)("div",{className:"row tight",children:o.map(e=>(0,l.jsx)("button",{type:"button",className:"tab ".concat(s===e?"on":""),style:{padding:"3px 8px",fontSize:10.5,marginBottom:0,borderBottom:0,borderRadius:4,background:s===e?"var(--bg-3)":"transparent"},onClick:()=>t(e),children:e},e))}),flush:!0,children:0===u.length?(0,l.jsxs)("div",{className:"empty",children:[(0,l.jsx)("h4",{children:"No activity recorded"}),(0,l.jsx)("span",{children:"start a Claude session with mink hooks enabled to populate this log."})]}):(0,l.jsx)("div",{children:u.map((e,s)=>{let t=h(e);return(0,l.jsxs)("div",{className:"evt ".concat(s<2?"fresh":"").trim(),children:[(0,l.jsx)("span",{className:"t",children:e.time}),(0,l.jsxs)("span",{className:"c",children:[(0,l.jsx)(r.v,{tone:function(e){switch(e){case"read":return"";case"write":return"blue";case"session":return"accent";default:return"amber"}}(t),children:t}),(0,l.jsxs)("span",{children:[" ",e.action," "]}),e.files&&"—"!==e.files&&(0,l.jsx)("code",{children:e.files}),e.outcome&&"—"!==e.outcome&&(0,l.jsx)("span",{className:"muted",style:{marginLeft:8,fontSize:10.5,fontFamily:"var(--font-mono), monospace"},children:e.outcome}),e.tokens&&"—"!==e.tokens&&(0,l.jsxs)("span",{className:"muted",style:{marginLeft:8,fontSize:10.5,fontFamily:"var(--font-mono), monospace"},children:[e.tokens," tok"]})]})]},"".concat(e.time,"-").concat(s))})})})]})}function u(){return(0,l.jsx)(d,{})}},7125:(e,s,t)=>{"use strict";t.d(s,{v:()=>a});var l=t(5155);function a(e){let{tone:s="",children:t,className:a=""}=e;return(0,l.jsx)("span",{className:"chip ".concat(s," ").concat(a).trim(),children:t})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=5530)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{1008:(e,t,s)=>{Promise.resolve().then(s.bind(s,8032))},1044:(e,t,s)=>{"use strict";s.d(t,{I:()=>n});var l=s(5155);let a={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function n(e){let{name:t,size:s=14,stroke:n=1.7,className:r=""}=e,i=a[t];return i?(0,l.jsx)("svg",{className:"icn ".concat(r).trim(),width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:i})}):null}},3742:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var l=s(5155);function a(e){let{title:t,sub:s,tools:a,flush:n,className:r="",style:i,children:c}=e,o=null!=t||null!=a;return(0,l.jsxs)("div",{className:"card ".concat(r).trim(),style:i,children:[o&&(0,l.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,l.jsx)("h3",{children:t}):t),null!=s&&(0,l.jsx)("span",{className:"sub",children:s}),null!=a&&(0,l.jsx)("div",{className:"tools",children:a})]}),(0,l.jsx)("div",{className:"card-body ".concat(n?"flush":"").trim(),children:c})]})}},3928:(e,t,s)=>{"use strict";s.d(t,{f:()=>l});let l=(0,s(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,s)=>e({projects:t,activeProjectId:s}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var s;return e({ledger:t,wasteFlags:null!=(s=t.wasteFlags)?s:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,s,l)=>e({tasks:t,taskDefinitions:s,deadLetters:l}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},5959:(e,t,s)=>{"use strict";s.d(t,{v:()=>r});var l=s(2115);let a=e=>{let t,s=new Set,l=(e,l)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=l?l:"object"!=typeof a||null===a)?a:Object.assign({},t,a),s.forEach(s=>s(t,e))}},a=()=>t,n={setState:l,getState:a,getInitialState:()=>r,subscribe:e=>(s.add(e),()=>s.delete(e))},r=t=e(l,a,n);return n},n=e=>{let t=(e=>e?a(e):a)(e),s=e=>(function(e,t=e=>e){let s=l.useSyncExternalStore(e.subscribe,l.useCallback(()=>t(e.getState()),[e,t]),l.useCallback(()=>t(e.getInitialState()),[e,t]));return l.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},r=e=>e?n(e):n},6845:(e,t,s)=>{"use strict";s.d(t,{t:()=>n});var l=s(5155),a=s(1044);function n(e){let{icon:t,variant:s,size:n,className:r="",children:i,...c}=e,o=["btn"];return s&&o.push(s),n&&o.push(n),r&&o.push(r),(0,l.jsxs)("button",{className:o.join(" "),...c,children:[t&&(0,l.jsx)(a.I,{name:t}),i]})}},7e3:(e,t,s)=>{"use strict";function l(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function a(e){if(!e||e<=0)return"—";let t=Math.floor(e/1e3),s=Math.floor(t/60),l=Math.floor(s/60);return l>0?l+"h "+s%60+"m":s>0?s+"m "+t%60+"s":t+"s"}function n(e){if(!e)return"—";try{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}s.d(t,{Y0:()=>a,aT:()=>l,r6:()=>n})},7125:(e,t,s)=>{"use strict";s.d(t,{v:()=>a});var l=s(5155);function a(e){let{tone:t="",children:s,className:a=""}=e;return(0,l.jsx)("span",{className:"chip ".concat(t," ").concat(a).trim(),children:s})}},8032:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var l=s(5155),a=s(2115),n=s(3928),r=s(3742),i=s(7125),c=s(6845),o=s(1044),d=s(7e3);function h(e){return!!e.fixDescription&&e.fixDescription.trim().length>0}function u(){let e=(0,n.f)(e=>e.bugs),[t,s]=(0,a.useState)(""),[u,m]=(0,a.useState)("all"),[v,M]=(0,a.useState)([]),[g,x]=(0,a.useState)(null),p=(0,a.useMemo)(()=>{let t=new Set;return e.forEach(e=>{var s;return null==(s=e.tags)?void 0:s.forEach(e=>t.add(e))}),Array.from(t).sort()},[e]),f=(0,a.useMemo)(()=>e.filter(e=>{var s;return!("open"===u&&h(e))&&("fixed"!==u||!!h(e))&&(!t||!!((null==(s=e.errorMessage)?void 0:s.toLowerCase().includes(t.toLowerCase()))||e.id.toLowerCase().includes(t.toLowerCase())))&&(!v.length||!!v.every(t=>e.tags.includes(t)))}),[e,t,u,v]),j=e.filter(e=>!h(e)).length;return(0,l.jsxs)("div",{className:"page",children:[(0,l.jsxs)("div",{className:"page-head",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"page-title",children:"Bug memory"}),(0,l.jsxs)("p",{className:"page-sub",children:[e.length," bugs \xb7 ",j," open"]})]}),(0,l.jsx)("div",{className:"page-actions",children:(0,l.jsx)(c.t,{icon:"plus",variant:"primary",disabled:!0,title:"Write endpoint coming soon",children:"Log bug"})})]}),(0,l.jsx)(r.Z,{title:(0,l.jsxs)("div",{className:"row",style:{flex:1,gap:10,flexWrap:"wrap"},children:[(0,l.jsxs)("div",{className:"row",style:{maxWidth:280,flex:1},children:[(0,l.jsx)(o.I,{name:"search",size:12,className:"muted"}),(0,l.jsx)("input",{value:t,onChange:e=>s(e.target.value),placeholder:"Search bugs…","aria-label":"Search bugs",style:{flex:1,background:"transparent",border:0,color:"var(--fg-0)",fontSize:11.5,outline:"none",fontFamily:"var(--font-mono), monospace"}})]}),(0,l.jsx)("div",{className:"seg",children:["all","open","fixed"].map(e=>(0,l.jsx)("button",{type:"button",className:u===e?"on":"",onClick:()=>m(e),children:e},e))}),(0,l.jsx)("div",{className:"row tight",style:{flexWrap:"wrap"},children:p.map(e=>(0,l.jsx)("button",{type:"button",onClick:()=>{M(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},children:(0,l.jsxs)(i.v,{tone:v.includes(e)?"accent":"",children:["#",e]})},e))})]}),flush:!0,children:0===f.length?(0,l.jsx)("div",{className:"empty",children:(0,l.jsx)("h4",{children:"No bugs match"})}):(0,l.jsxs)("table",{className:"tbl",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{}),(0,l.jsx)("th",{children:"ID"}),(0,l.jsx)("th",{children:"Error"}),(0,l.jsx)("th",{children:"Tags"}),(0,l.jsx)("th",{children:"File"}),(0,l.jsx)("th",{children:"Root cause"}),(0,l.jsx)("th",{className:"right",children:"When"})]})}),(0,l.jsx)("tbody",{children:f.map(e=>{let t=h(e),s=g===e.id;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsxs)("tr",{onClick:()=>x(s?null:e.id),style:{cursor:"pointer"},children:[(0,l.jsx)("td",{children:t?(0,l.jsx)(i.v,{tone:"accent",children:"fixed"}):(0,l.jsx)(i.v,{tone:"red",children:"open"})}),(0,l.jsx)("td",{className:"mono",children:e.id}),(0,l.jsx)("td",{className:"strong",style:{maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.errorMessage}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"row tight",style:{flexWrap:"wrap"},children:e.tags.map(e=>(0,l.jsxs)(i.v,{children:["#",e]},e))})}),(0,l.jsxs)("td",{className:"mono muted",style:{fontSize:10.5},children:[e.filePath,e.lineNumber?":".concat(e.lineNumber):""]}),(0,l.jsx)("td",{className:"muted",style:{maxWidth:260,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.rootCause}),(0,l.jsx)("td",{className:"right mono muted",children:(0,d.r6)(e.lastSeenAt)})]}),s&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:7,style:{background:"var(--bg-2)",padding:"12px 14px"},children:(0,l.jsxs)("div",{className:"vstack",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"muted",style:{fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",fontWeight:600,marginBottom:4},children:"Root cause"}),(0,l.jsx)("div",{children:e.rootCause||"—"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"muted",style:{fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",fontWeight:600,marginBottom:4},children:"Fix"}),(0,l.jsx)("div",{children:e.fixDescription||(0,l.jsx)("span",{className:"muted",children:"not fixed yet"})})]}),(0,l.jsxs)("div",{className:"mono muted",style:{fontSize:11},children:["seen ",e.occurrenceCount,"\xd7 \xb7 created ",(0,d.r6)(e.createdAt)]})]})})})]},e.id)})})]})})]})}function m(){return(0,l.jsx)(u,{})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=1008)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24],{1044:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var a=n(5155);let s={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function i(e){let{name:t,size:n=14,stroke:i=1.7,className:l=""}=e,r=s[t];return r?(0,a.jsx)("svg",{className:"icn ".concat(l).trim(),width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:r})}):null}},2327:(e,t,n)=>{"use strict";async function a(e,t){let n=t?"".concat(e).concat(e.includes("?")?"&":"?","project=").concat(encodeURIComponent(t)):e,a=await fetch(n);if(!a.ok)throw Error("API error ".concat(a.status,": ").concat(e));return a.json()}function s(){return a("/api/projects")}function i(e){return a("/api/overview",e)}function l(e){return a("/api/token-ledger",e)}function r(e){return a("/api/compression",e)}function c(e){return a("/api/file-index",e)}function o(e){return a("/api/scheduler",e)}function d(e){return a("/api/learning-memory",e)}function u(e){return a("/api/action-log",e)}function h(e){return a("/api/bugs",e)}function p(e){return a("/api/design",e)}async function v(e){return(await fetch("/api/switch-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e})})).json()}async function m(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/tasks/".concat(encodeURIComponent(e),"/run").concat(n),{method:"POST"})).json()}async function g(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/dead-letter/".concat(encodeURIComponent(e),"/retry").concat(n),{method:"POST"})).json()}async function f(e){let t=e?"?project=".concat(encodeURIComponent(e)):"";return(await fetch("/api/rescan".concat(t),{method:"POST"})).json()}async function j(){return(await fetch("/api/daemon/start",{method:"POST"})).json()}async function y(){return(await fetch("/api/daemon/stop",{method:"POST"})).json()}async function M(){return(await fetch("/api/daemon/restart",{method:"POST"})).json()}function x(){return a("/api/config")}async function w(e,t){return(await fetch("/api/config/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})})).json()}async function S(e,t){return(await fetch("/api/config/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,all:t})})).json()}function b(){return a("/api/sync")}async function k(){return(await fetch("/api/sync/pull",{method:"POST"})).json()}async function N(){return(await fetch("/api/sync/push",{method:"POST"})).json()}async function C(){return(await fetch("/api/sync/disconnect",{method:"POST"})).json()}function z(){return a("/api/channel")}async function P(){return(await fetch("/api/channel/start",{method:"POST"})).json()}async function O(){return(await fetch("/api/channel/stop",{method:"POST"})).json()}async function I(){return(await fetch("/api/channel/restart",{method:"POST"})).json()}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;null!=e.limit&&t.set("limit",String(e.limit)),e.category&&t.set("category",e.category);let n=t.toString();return a("/api/wiki".concat(n?"?".concat(n):""))}function L(e){return a("/api/wiki/note?path=".concat(encodeURIComponent(e)))}function V(e){let t={"Content-Type":"application/json"};return e&&(t["X-Mink-Dedup-Key"]=e),t}async function H(e){return(await fetch("/api/wiki/notes",{method:"POST",headers:V(e.dedupKey),body:JSON.stringify({mode:e.mode,title:e.title,category:e.category,body:e.body,tags:e.tags})})).json()}async function D(e,t){return(await fetch("/api/wiki/daily",{method:"POST",headers:V(t),body:JSON.stringify({content:e})})).json()}async function U(e){return(await fetch("/api/wiki/ingest",{method:"POST",headers:V(e.dedupKey),body:JSON.stringify({sourcePath:e.sourcePath,category:e.category,tags:e.tags})})).json()}n.d(t,{$Z:()=>I,Aq:()=>C,Bf:()=>r,D:()=>T,Dz:()=>x,EP:()=>i,FW:()=>S,G1:()=>z,Gs:()=>b,Iw:()=>D,MP:()=>h,On:()=>P,P:()=>m,Vo:()=>l,WH:()=>O,Z4:()=>g,ZN:()=>L,ab:()=>M,co:()=>d,e2:()=>o,fX:()=>j,hD:()=>f,hY:()=>p,jm:()=>k,kH:()=>N,p4:()=>H,pu:()=>u,tf:()=>U,vj:()=>s,vo:()=>y,xl:()=>c,yJ:()=>w,yP:()=>v})},2346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var a=n(5155),s=n(2115),i=n(3742),l=n(7125),r=n(6845),c=n(3928),o=n(2327);let d=[];function u(){return"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"dedup-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))}function h(){let[e,t]=(0,s.useState)("quick"),n=(0,c.f)(e=>{var t,n;return null!=(n=null==(t=e.wiki)?void 0:t.tags)?n:d}),[h,p]=(0,s.useState)(""),[v,m]=(0,s.useState)(""),[g,f]=(0,s.useState)("inbox"),[j,y]=(0,s.useState)(""),[M,x]=(0,s.useState)(""),[w,S]=(0,s.useState)(""),[b,k]=(0,s.useState)(""),[N,C]=(0,s.useState)("resources"),[z,P]=(0,s.useState)("idle"),[O,I]=(0,s.useState)(null),[T,L]=(0,s.useState)(null);async function V(e){P("saving"),I(null);try{var t,n;let a=await e();a.success?(P("saved"),L(null!=(t=a.filePath)?t:null),setTimeout(()=>P(e=>"saved"===e?"idle":e),2e3)):(P("error"),I(null!=(n=a.error)?n:"Save failed"))}catch(e){P("error"),I(e instanceof Error?e.message:String(e))}}function H(){let e=h.trim();if(!e)return;let t=u();V(()=>(0,o.p4)({mode:"quick",body:e,dedupKey:t})).then(()=>p(""))}function D(){let e=w.trim();if(!e)return;let t=u();V(()=>(0,o.Iw)(e,t)).then(()=>S(""))}function U(){return"saved"===z&&T?(0,a.jsxs)("div",{className:"muted",style:{fontSize:11,color:"var(--accent)"},children:["Saved → ",(0,a.jsx)("span",{className:"mono",children:T})]}):"error"===z&&O?(0,a.jsx)("div",{style:{fontSize:11,color:"var(--danger, #c33)",whiteSpace:"pre-wrap"},children:O}):"saving"===z?(0,a.jsx)("div",{className:"muted",style:{fontSize:11},children:"Saving…"}):null}return(0,a.jsxs)("div",{className:"page",style:{maxWidth:900},children:[(0,a.jsx)("div",{className:"page-head",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"page-title row tight",children:(0,a.jsx)("span",{children:"Capture"})}),(0,a.jsx)("p",{className:"page-sub",children:"Quick or structured — captures land in the vault immediately"})]})}),(0,a.jsxs)(i.Z,{children:[(0,a.jsx)("div",{className:"seg",style:{marginBottom:12},children:["quick","structured","daily","file"].map(n=>(0,a.jsx)("button",{type:"button",className:e===n?"on":"",onClick:()=>t(n),children:"file"===n?"Ingest file":"daily"===n?"Daily journal":n[0].toUpperCase()+n.slice(1)},n))}),"quick"===e&&(0,a.jsxs)("div",{className:"vstack",children:[(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Quick capture"}),(0,a.jsx)("textarea",{rows:4,value:h,onChange:e=>p(e.target.value),placeholder:"What's on your mind? First line becomes the title; lands in inbox/.",onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&H()}}),(0,a.jsxs)("div",{className:"hint",children:["Lands in ",(0,a.jsx)("span",{className:"mono",children:"inbox/"}),". Cmd/Ctrl+Enter to save."]})]}),(0,a.jsxs)("div",{className:"row tight",children:[(0,a.jsx)(r.t,{variant:"primary",icon:"plus",onClick:H,disabled:"saving"===z||!h.trim(),children:"saving"===z?"Saving…":"Capture"}),(0,a.jsx)(U,{})]})]}),"structured"===e&&(0,a.jsxs)("div",{className:"grid g-2",children:[(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Title"}),(0,a.jsx)("input",{value:v,onChange:e=>m(e.target.value),placeholder:"e.g. JWT Cookie Pattern"})]}),(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Category"}),(0,a.jsxs)("select",{value:g,onChange:e=>f(e.target.value),children:[(0,a.jsx)("option",{value:"inbox",children:"inbox"}),(0,a.jsx)("option",{value:"projects",children:"projects"}),(0,a.jsx)("option",{value:"areas",children:"areas"}),(0,a.jsx)("option",{value:"resources",children:"resources"}),(0,a.jsx)("option",{value:"archives",children:"archives"})]})]}),(0,a.jsxs)("div",{className:"field",style:{gridColumn:"span 2"},children:[(0,a.jsx)("label",{children:"Body (markdown)"}),(0,a.jsx)("textarea",{rows:6,className:"mono",value:j,onChange:e=>y(e.target.value),placeholder:"## Context\n\nUse httpOnly cookies for token storage..."})]}),(0,a.jsxs)("div",{className:"field",style:{gridColumn:"span 2"},children:[(0,a.jsx)("label",{children:"Tags (comma-separated)"}),(0,a.jsx)("input",{value:M,onChange:e=>x(e.target.value),placeholder:"auth, security, pattern"})]}),(0,a.jsxs)("div",{style:{gridColumn:"span 2"},className:"row tight",children:[(0,a.jsx)(r.t,{variant:"primary",icon:"plus",onClick:function(){let e=j.trim();if(!e)return;let t=u();V(()=>(0,o.p4)({mode:"structured",title:v.trim(),category:g,body:e,tags:M.split(",").map(e=>e.trim().replace(/^#/,"")).filter(Boolean),dedupKey:t})).then(()=>{m(""),y(""),x("")})},disabled:"saving"===z||!j.trim(),children:"saving"===z?"Saving…":"Create note"}),(0,a.jsx)(U,{})]})]}),"daily"===e&&(0,a.jsxs)("div",{className:"vstack",children:[(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Today"}),(0,a.jsx)("textarea",{rows:5,value:w,onChange:e=>S(e.target.value),placeholder:"Append to today's daily entry…",onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&D()}})]}),(0,a.jsxs)("div",{className:"row tight",children:[(0,a.jsx)(r.t,{variant:"primary",icon:"plus",onClick:D,disabled:"saving"===z||!w.trim(),children:"saving"===z?"Saving…":"Append"}),(0,a.jsx)(U,{})]})]}),"file"===e&&(0,a.jsxs)("div",{className:"vstack",children:[(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Source file"}),(0,a.jsx)("input",{value:b,onChange:e=>k(e.target.value),placeholder:"./scratch-notes.md",className:"mono"})]}),(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Category"}),(0,a.jsxs)("select",{value:N,onChange:e=>C(e.target.value),children:[(0,a.jsx)("option",{value:"resources",children:"resources"}),(0,a.jsx)("option",{value:"inbox",children:"inbox"}),(0,a.jsx)("option",{value:"projects",children:"projects"}),(0,a.jsx)("option",{value:"archives",children:"archives"})]})]}),(0,a.jsxs)("div",{className:"row tight",children:[(0,a.jsx)(r.t,{variant:"primary",icon:"upload",onClick:function(){let e=b.trim();if(!e)return;let t=u();V(()=>(0,o.tf)({sourcePath:e,category:N,dedupKey:t})).then(()=>k(""))},disabled:"saving"===z||!b.trim(),children:"saving"===z?"Ingesting…":"Ingest"}),(0,a.jsx)(U,{})]})]})]}),(0,a.jsx)("div",{style:{height:14}}),(0,a.jsx)(i.Z,{title:"Tag cloud",sub:"top tags across the vault",children:(0,a.jsx)("div",{className:"row tight",style:{flexWrap:"wrap",gap:6},children:0===n.length?(0,a.jsx)("span",{className:"muted",style:{fontSize:11},children:"No tags yet — capture a note to get started."}):n.slice(0,40).map(e=>{let[t,n]=e;return(0,a.jsxs)(l.v,{children:[(0,a.jsxs)("span",{children:["#",t]}),(0,a.jsx)("span",{className:"muted",children:n})]},t)})})})]})}function p(){return(0,a.jsx)(h,{})}},3742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(5155);function s(e){let{title:t,sub:n,tools:s,flush:i,className:l="",style:r,children:c}=e,o=null!=t||null!=s;return(0,a.jsxs)("div",{className:"card ".concat(l).trim(),style:r,children:[o&&(0,a.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,a.jsx)("h3",{children:t}):t),null!=n&&(0,a.jsx)("span",{className:"sub",children:n}),null!=s&&(0,a.jsx)("div",{className:"tools",children:s})]}),(0,a.jsx)("div",{className:"card-body ".concat(i?"flush":"").trim(),children:c})]})}},3928:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});let a=(0,n(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,n)=>e({projects:t,activeProjectId:n}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var n;return e({ledger:t,wasteFlags:null!=(n=t.wasteFlags)?n:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,n,a)=>e({tasks:t,taskDefinitions:n,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},5959:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var a=n(2115);let s=e=>{let t,n=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,i={setState:a,getState:s,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(a,s,i);return i},i=e=>{let t=(e=>e?s(e):s)(e),n=e=>(function(e,t=e=>e){let n=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?i(e):i},6845:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var a=n(5155),s=n(1044);function i(e){let{icon:t,variant:n,size:i,className:l="",children:r,...c}=e,o=["btn"];return n&&o.push(n),i&&o.push(i),l&&o.push(l),(0,a.jsxs)("button",{className:o.join(" "),...c,children:[t&&(0,a.jsx)(s.I,{name:t}),r]})}},7125:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var a=n(5155);function s(e){let{tone:t="",children:n,className:s=""}=e;return(0,a.jsx)("span",{className:"chip ".concat(t," ").concat(s).trim(),children:n})}},9993:(e,t,n)=>{Promise.resolve().then(n.bind(n,2346))}},e=>{e.O(0,[441,255,358],()=>e(e.s=9993)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{3742:(e,s,l)=>{"use strict";l.d(s,{Z:()=>n});var t=l(5155);function n(e){let{title:s,sub:l,tools:n,flush:i,className:a="",style:r,children:o}=e,c=null!=s||null!=n;return(0,t.jsxs)("div",{className:"card ".concat(a).trim(),style:r,children:[c&&(0,t.jsxs)("div",{className:"card-head",children:[null!=s&&("string"==typeof s?(0,t.jsx)("h3",{children:s}):s),null!=l&&(0,t.jsx)("span",{className:"sub",children:l}),null!=n&&(0,t.jsx)("div",{className:"tools",children:n})]}),(0,t.jsx)("div",{className:"card-body ".concat(i?"flush":"").trim(),children:o})]})}},3928:(e,s,l)=>{"use strict";l.d(s,{f:()=>t});let t=(0,l(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:s=>e({connected:s}),setProjects:(s,l)=>e({projects:s,activeProjectId:l}),setActiveProject:s=>e({activeProjectId:s,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:s=>e({overview:s}),setLedger:s=>{var l;return e({ledger:s,wasteFlags:null!=(l=s.wasteFlags)?l:[]})},setCompression:s=>e({compression:s}),setFileIndex:s=>e({fileIndex:s}),setScheduler:(s,l,t)=>e({tasks:s,taskDefinitions:l,deadLetters:t}),setHealth:s=>e({health:s}),setLearningMemory:s=>e({learningMemory:s}),setActionLog:s=>e({actionLog:s}),setBugs:s=>e({bugs:s}),setWasteFlags:s=>e({wasteFlags:s}),setDesignImages:s=>e({designImages:s}),setConfig:s=>e({config:s}),setSync:s=>e({sync:s}),setChannel:s=>e({channel:s}),setWiki:s=>e({wiki:s}),setWikiNote:s=>e({wikiNote:s})}))},5959:(e,s,l)=>{"use strict";l.d(s,{v:()=>a});var t=l(2115);let n=e=>{let s,l=new Set,t=(e,t)=>{let n="function"==typeof e?e(s):e;if(!Object.is(n,s)){let e=s;s=(null!=t?t:"object"!=typeof n||null===n)?n:Object.assign({},s,n),l.forEach(l=>l(s,e))}},n=()=>s,i={setState:t,getState:n,getInitialState:()=>a,subscribe:e=>(l.add(e),()=>l.delete(e))},a=s=e(t,n,i);return i},i=e=>{let s=(e=>e?n(e):n)(e),l=e=>(function(e,s=e=>e){let l=t.useSyncExternalStore(e.subscribe,t.useCallback(()=>s(e.getState()),[e,s]),t.useCallback(()=>s(e.getInitialState()),[e,s]));return t.useDebugValue(l),l})(s,e);return Object.assign(l,s),l},a=e=>e?i(e):i},6225:(e,s,l)=>{"use strict";l.d(s,{E:()=>n});var t=l(5155);function n(e){let{bars:s,width:l=720,height:n=140}=e;if(!s.length)return(0,t.jsx)("div",{className:"empty",style:{height:n,display:"grid",placeItems:"center"},children:(0,t.jsx)("div",{children:(0,t.jsx)("h4",{children:"No data yet"})})});let i=l-36-12,a=n-10-22,r=1.15*Math.max(...s.map(e=>e.value))||1,o=i/s.length*.62,c=i/s.length-o;return(0,t.jsxs)("svg",{width:l,height:n,style:{display:"block",maxWidth:"100%"},children:[[0,.25,.5,.75,1].map((e,s)=>(0,t.jsx)("line",{x1:36,x2:l-12,y1:10+a-e*a,y2:10+a-e*a,stroke:"var(--line-1)",strokeDasharray:"2 3"},s)),s.map((e,s)=>{let l=e.value/r*a,i=36+s*(o+c)+c/2;return(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:i,y:10+a-l,width:o,height:l,rx:"2",fill:e.color||"var(--accent)",opacity:"0.85"}),(0,t.jsx)("text",{x:i+o/2,y:n-6,textAnchor:"middle",fontSize:"9",fontFamily:"var(--font-mono), monospace",fill:"var(--fg-3)",children:e.label})]},s)})]})}},6529:(e,s,l)=>{Promise.resolve().then(l.bind(l,8262))},6970:(e,s,l)=>{"use strict";l.d(s,{y:()=>n});var t=l(5155);function n(e){let{value:s,max:l=100,tone:n="",className:i=""}=e,a=Math.max(0,Math.min(100,s/l*100));return(0,t.jsx)("div",{className:"bar ".concat(n," ").concat(i).trim(),children:(0,t.jsx)("span",{style:{width:"".concat(a,"%")}})})}},7e3:(e,s,l)=>{"use strict";function t(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function n(e){if(!e||e<=0)return"—";let s=Math.floor(e/1e3),l=Math.floor(s/60),t=Math.floor(l/60);return t>0?t+"h "+l%60+"m":l>0?l+"m "+s%60+"s":s+"s"}function i(e){if(!e)return"—";try{let s=new Date(e);return s.toLocaleDateString()+" "+s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(s){return e}}l.d(s,{Y0:()=>n,aT:()=>t,r6:()=>i})},8262:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>u});var t=l(5155),n=l(3928),i=l(3742),a=l(9503),r=l(6970),o=l(6225),c=l(7e3);function d(e){let{title:s,sub:l,rows:n}=e;return(0,t.jsx)(i.Z,{title:s,sub:l,flush:!0,children:0===n.length?(0,t.jsx)("div",{className:"empty",children:(0,t.jsx)("h4",{children:"No data"})}):(0,t.jsxs)("table",{className:"tbl",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s.includes("tool")?"Tool":"Kind"}),(0,t.jsx)("th",{className:"right",children:"Events"}),(0,t.jsx)("th",{className:"right",children:"Original"}),(0,t.jsx)("th",{className:"right",children:"Compressed"}),(0,t.jsx)("th",{className:"right",children:"Saved"}),(0,t.jsx)("th",{children:"Ratio"})]})}),(0,t.jsx)("tbody",{children:n.map(e=>{var s,l;let n=(s=e.savings,(l=e.originalTokens)>0?s/l*100:0);return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"mono",children:e.key}),(0,t.jsx)("td",{className:"right num",children:e.events}),(0,t.jsx)("td",{className:"right num",children:(0,c.aT)(e.originalTokens)}),(0,t.jsx)("td",{className:"right num",children:(0,c.aT)(e.compressedTokens)}),(0,t.jsx)("td",{className:"right num strong",children:(0,c.aT)(e.savings)}),(0,t.jsx)("td",{style:{width:150},children:(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(r.y,{value:n,max:100,tone:"amber"}),(0,t.jsxs)("span",{className:"mono muted",style:{fontSize:10},children:[n.toFixed(0),"%"]})]})})]},e.key)})})]})})}function h(){var e,s,l,r,h,u,m,x,g,j,v,p,f,N,y;let b=(0,n.f)(e=>e.compression),k=null==b?void 0:b.lifetime,w=null==b?void 0:b.arms,T=null!=(e=null==b?void 0:b.enabled)&&e,S=null!=(s=null==k?void 0:k.totalEvents)?s:0,M=null!=(l=null==w?void 0:w.compressed.originalTokens)?l:0,L=null!=(r=null==w?void 0:w.compressed.compressedTokens)?r:0,C=null!=(h=null==k?void 0:k.totalMeasuredSavings)?h:Math.max(0,M-L),F=M>0?C/M*100:0,z=null!=(u=null==w?void 0:w.compressed.events)?u:0,I=null!=(m=null==k?void 0:k.totalHoldoutEvents)?m:0,E=null!=(x=null==w?void 0:w.holdout.originalTokens)?x:0,D=z>0?M/z:0,O=I>0?E/I:0,P=M>0?C/M*E:0,A=[{label:"original",value:M,color:"var(--fg-2)"},{label:"compressed",value:L,color:"var(--accent)"}];return(0,t.jsxs)("div",{className:"page",children:[(0,t.jsx)("div",{className:"page-head",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"page-title",children:"Compression"}),(0,t.jsx)("p",{className:"page-sub",children:"Measured tool-output compression — reversible, holdout-validated"})]})}),0===S?(0,t.jsx)(i.Z,{title:"No compression activity",sub:T?"enabled":"disabled",children:(0,t.jsxs)("div",{className:"empty",children:[(0,t.jsx)("h4",{children:T?"No compression events yet":"Compression is disabled"}),(0,t.jsx)("p",{className:"muted",style:{fontSize:12},children:T?"Large tool outputs (Read / Bash / Grep / MCP) will appear here once compressed.":"Enable it with:"}),!T&&(0,t.jsx)("pre",{className:"mono",style:{fontSize:12,marginTop:8},children:"mink config set compression.enabled true"})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid g-4",style:{marginBottom:14},children:[(0,t.jsx)(a.h,{label:"Measured savings",value:(0,c.aT)(C),deltaTone:"up",delta:"▲ tokens"}),(0,t.jsx)(a.h,{label:"Compression ratio",value:"".concat(F.toFixed(0),"%")}),(0,t.jsx)(a.h,{label:"Compressed events",value:(0,c.aT)(z)}),(0,t.jsx)(a.h,{label:"Held out (control)",value:(0,c.aT)(I)})]}),(0,t.jsxs)("div",{className:"grid g-2",children:[(0,t.jsx)(i.Z,{title:"Before → after",sub:"compressed arm \xb7 ".concat((0,c.aT)(M)," → ").concat((0,c.aT)(L)," tokens"),children:(0,t.jsx)(o.E,{bars:A,width:560,height:180})}),(0,t.jsx)(i.Z,{title:"Holdout A/B",sub:"measured vs control",children:(0,t.jsxs)("div",{className:"vstack",children:[(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("span",{style:{fontSize:12},children:"Compressed — avg original"}),(0,t.jsxs)("span",{className:"mono muted",style:{marginLeft:"auto",fontSize:11},children:[(0,c.aT)(Math.round(D))," tok"]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("span",{style:{fontSize:12},children:"Holdout — avg original"}),(0,t.jsxs)("span",{className:"mono muted",style:{marginLeft:"auto",fontSize:11},children:[(0,c.aT)(Math.round(O))," tok"]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("span",{style:{fontSize:12},children:"Realised savings (compressed)"}),(0,t.jsxs)("span",{className:"mono strong",style:{marginLeft:"auto",fontSize:11},children:[(0,c.aT)(C)," tok"]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("span",{style:{fontSize:12},children:"Projected if control compressed"}),(0,t.jsxs)("span",{className:"mono muted",style:{marginLeft:"auto",fontSize:11},children:["~",(0,c.aT)(Math.round(P))," tok"]})]}),(0,t.jsx)("p",{className:"muted",style:{fontSize:11,marginTop:4},children:"Comparable average original sizes across arms indicate the savings reflect compression, not selection bias."})]})})]}),(0,t.jsx)("div",{style:{height:14}}),(0,t.jsxs)("div",{className:"grid g-2",children:[(0,t.jsx)(d,{title:"By content kind",sub:"".concat(null!=(g=null==b?void 0:b.byKind.length)?g:0," kinds"),rows:null!=(j=null==b?void 0:b.byKind)?j:[]}),(0,t.jsx)(d,{title:"By tool",sub:"".concat(null!=(v=null==b?void 0:b.byTool.length)?v:0," tools"),rows:null!=(p=null==b?void 0:b.byTool)?p:[]})]}),(0,t.jsx)("div",{style:{height:14}}),(0,t.jsx)(i.Z,{title:"Recent events",sub:"".concat(null!=(f=null==b?void 0:b.recent.length)?f:0," most recent"),flush:!0,children:(null!=(N=null==b?void 0:b.recent.length)?N:0)===0?(0,t.jsx)("div",{className:"empty",children:(0,t.jsx)("h4",{children:"No events"})}):(0,t.jsxs)("table",{className:"tbl",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:"When"}),(0,t.jsx)("th",{children:"Tool"}),(0,t.jsx)("th",{children:"Kind"}),(0,t.jsx)("th",{className:"right",children:"Original"}),(0,t.jsx)("th",{className:"right",children:"Compressed"}),(0,t.jsx)("th",{children:"Arm"})]})}),(0,t.jsx)("tbody",{children:(null!=(y=null==b?void 0:b.recent)?y:[]).map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:e.createdAt?new Date(e.createdAt).toLocaleString():"—"}),(0,t.jsx)("td",{className:"mono",children:e.toolName}),(0,t.jsx)("td",{className:"mono",children:e.contentKind}),(0,t.jsx)("td",{className:"right num",children:(0,c.aT)(e.originalTokens)}),(0,t.jsx)("td",{className:"right num",children:(0,c.aT)(e.compressedTokens)}),(0,t.jsx)("td",{children:e.holdout?(0,t.jsx)("span",{className:"muted",children:"control"}):(0,t.jsx)("span",{className:"strong",children:"compressed"})})]},e.id))})]})})]})]})}function u(){return(0,t.jsx)(h,{})}},9503:(e,s,l)=>{"use strict";l.d(s,{h:()=>i});var t=l(5155);function n(e){let{data:s,width:l=60,height:n=22,tone:i=""}=e;if(!s.length)return null;let a=Math.min(...s),r=Math.max(...s)-a||1,o=s.map((e,t)=>{let i=1===s.length?0:t/(s.length-1)*l,o=n-(e-a)/r*n;return"".concat(i.toFixed(1),",").concat(o.toFixed(1))}).join(" ");return(0,t.jsx)("svg",{width:l,height:n,className:"spark",children:(0,t.jsx)("polyline",{points:o,fill:"none",stroke:"accent"===i?"var(--accent)":"red"===i?"var(--red)":"var(--fg-2)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function i(e){let{label:s,value:l,delta:i,deltaTone:a="",spark:r,sparkTone:o,live:c,className:d="",style:h}=e;return(0,t.jsxs)("div",{className:"kpi ".concat(d).trim(),style:h,children:[(0,t.jsx)("div",{className:"label",children:s}),(0,t.jsx)("div",{className:"value mono ".concat(c?"live-num":"").trim(),children:l}),i&&(0,t.jsx)("div",{className:"delta ".concat(a).trim(),children:i}),r&&(0,t.jsx)("div",{className:"spark",children:(0,t.jsx)(n,{data:r,tone:o})})]})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=6529)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[748],{1044:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var a=n(5155);let s={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function i(e){let{name:t,size:n=14,stroke:i=1.7,className:r=""}=e,o=s[t];return o?(0,a.jsx)("svg",{className:"icn ".concat(r).trim(),width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:o})}):null}},2327:(e,t,n)=>{"use strict";async function a(e,t){let n=t?"".concat(e).concat(e.includes("?")?"&":"?","project=").concat(encodeURIComponent(t)):e,a=await fetch(n);if(!a.ok)throw Error("API error ".concat(a.status,": ").concat(e));return a.json()}function s(){return a("/api/projects")}function i(e){return a("/api/overview",e)}function r(e){return a("/api/token-ledger",e)}function o(e){return a("/api/compression",e)}function l(e){return a("/api/file-index",e)}function c(e){return a("/api/scheduler",e)}function u(e){return a("/api/learning-memory",e)}function d(e){return a("/api/action-log",e)}function h(e){return a("/api/bugs",e)}function v(e){return a("/api/design",e)}async function p(e){return(await fetch("/api/switch-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e})})).json()}async function m(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/tasks/".concat(encodeURIComponent(e),"/run").concat(n),{method:"POST"})).json()}async function f(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/dead-letter/".concat(encodeURIComponent(e),"/retry").concat(n),{method:"POST"})).json()}async function g(e){let t=e?"?project=".concat(encodeURIComponent(e)):"";return(await fetch("/api/rescan".concat(t),{method:"POST"})).json()}async function M(){return(await fetch("/api/daemon/start",{method:"POST"})).json()}async function y(){return(await fetch("/api/daemon/stop",{method:"POST"})).json()}async function j(){return(await fetch("/api/daemon/restart",{method:"POST"})).json()}function x(){return a("/api/config")}async function w(e,t){return(await fetch("/api/config/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})})).json()}async function b(e,t){return(await fetch("/api/config/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,all:t})})).json()}function k(){return a("/api/sync")}async function S(){return(await fetch("/api/sync/pull",{method:"POST"})).json()}async function z(){return(await fetch("/api/sync/push",{method:"POST"})).json()}async function N(){return(await fetch("/api/sync/disconnect",{method:"POST"})).json()}function O(){return a("/api/channel")}async function P(){return(await fetch("/api/channel/start",{method:"POST"})).json()}async function T(){return(await fetch("/api/channel/stop",{method:"POST"})).json()}async function C(){return(await fetch("/api/channel/restart",{method:"POST"})).json()}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;null!=e.limit&&t.set("limit",String(e.limit)),e.category&&t.set("category",e.category);let n=t.toString();return a("/api/wiki".concat(n?"?".concat(n):""))}function L(e){return a("/api/wiki/note?path=".concat(encodeURIComponent(e)))}function H(e){let t={"Content-Type":"application/json"};return e&&(t["X-Mink-Dedup-Key"]=e),t}async function V(e){return(await fetch("/api/wiki/notes",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({mode:e.mode,title:e.title,category:e.category,body:e.body,tags:e.tags})})).json()}async function F(e,t){return(await fetch("/api/wiki/daily",{method:"POST",headers:H(t),body:JSON.stringify({content:e})})).json()}async function R(e){return(await fetch("/api/wiki/ingest",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({sourcePath:e.sourcePath,category:e.category,tags:e.tags})})).json()}n.d(t,{$Z:()=>C,Aq:()=>N,Bf:()=>o,D:()=>I,Dz:()=>x,EP:()=>i,FW:()=>b,G1:()=>O,Gs:()=>k,Iw:()=>F,MP:()=>h,On:()=>P,P:()=>m,Vo:()=>r,WH:()=>T,Z4:()=>f,ZN:()=>L,ab:()=>j,co:()=>u,e2:()=>c,fX:()=>M,hD:()=>g,hY:()=>v,jm:()=>S,kH:()=>z,p4:()=>V,pu:()=>d,tf:()=>R,vj:()=>s,vo:()=>y,xl:()=>l,yJ:()=>w,yP:()=>p})},3067:(e,t,n)=>{Promise.resolve().then(n.bind(n,6411))},3742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(5155);function s(e){let{title:t,sub:n,tools:s,flush:i,className:r="",style:o,children:l}=e,c=null!=t||null!=s;return(0,a.jsxs)("div",{className:"card ".concat(r).trim(),style:o,children:[c&&(0,a.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,a.jsx)("h3",{children:t}):t),null!=n&&(0,a.jsx)("span",{className:"sub",children:n}),null!=s&&(0,a.jsx)("div",{className:"tools",children:s})]}),(0,a.jsx)("div",{className:"card-body ".concat(i?"flush":"").trim(),children:l})]})}},3928:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});let a=(0,n(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,n)=>e({projects:t,activeProjectId:n}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var n;return e({ledger:t,wasteFlags:null!=(n=t.wasteFlags)?n:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,n,a)=>e({tasks:t,taskDefinitions:n,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},4239:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var a=n(5155);function s(e){let{on:t,onChange:n,className:s="",ariaLabel:i}=e;return(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":t,"aria-label":i,className:"toggle ".concat(t?"on":""," ").concat(s).trim(),onClick:()=>null==n?void 0:n(!t)})}},5959:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var a=n(2115);let s=e=>{let t,n=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,i={setState:a,getState:s,getInitialState:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e))},r=t=e(a,s,i);return i},i=e=>{let t=(e=>e?s(e):s)(e),n=e=>(function(e,t=e=>e){let n=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},r=e=>e?i(e):i},6411:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var a=n(5155),s=n(2115),i=n(3742),r=n(7125),o=n(6845),l=n(1044),c=n(4239),u=n(3928),d=n(2327);let h={default:"",shared:"accent",local:"accent",env:"amber"},v={default:"default",shared:"shared",local:"local",env:"env"};function p(e){let{label:t}=e;return(0,a.jsx)("div",{style:{padding:"8px 14px",background:"var(--bg-2)",borderTop:"1px solid var(--line-1)",borderBottom:"1px solid var(--line-1)",fontSize:10.5,color:"var(--fg-3)",textTransform:"uppercase",letterSpacing:"0.08em",fontWeight:600},children:t})}function m(e){let{entry:t}=e,[n,i]=(0,s.useState)(t.value),[l,u]=(0,s.useState)("idle"),[p,m]=(0,s.useState)(null),[f,g]=(0,s.useState)(!1),M=(0,s.useRef)(null),y=(0,s.useRef)(t.value);function j(e){u("saving"),m(null),(0,d.yJ)(t.key,e).then(e=>{if(e.success)u("saved"),setTimeout(()=>u(e=>"saved"===e?"idle":e),1500);else{var t;u("error"),m(null!=(t=e.error)?t:"Failed to save")}}).catch(e=>{u("error"),m(e instanceof Error?e.message:String(e))})}(0,s.useEffect)(()=>{t.value!==y.current&&(y.current=t.value,"saving"!==l&&i(t.value))},[t.value,l]);let x="boolean"===t.type,w=(t.isSecret,n);return(0,a.jsxs)("div",{className:"row",style:{padding:"8px 14px",borderBottom:"1px solid var(--line-1)",gap:14,alignItems:"center"},children:[(0,a.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,a.jsxs)("div",{className:"row tight",style:{gap:6},children:[(0,a.jsx)("span",{className:"mono strong",style:{fontSize:12},children:t.key}),(0,a.jsx)(r.v,{tone:h[t.source],children:v[t.source]}),t.isSecret&&(0,a.jsx)(r.v,{children:"secret"})]}),t.description&&(0,a.jsx)("div",{className:"muted",style:{fontSize:10.5,marginTop:2},children:t.description}),p&&(0,a.jsx)("div",{style:{fontSize:10.5,color:"var(--danger, #c33)",marginTop:2},children:p})]}),(0,a.jsxs)("div",{style:{width:260,display:"flex",gap:6,alignItems:"center"},children:[x?(0,a.jsx)(c.l,{on:"true"===n,onChange:function(e){let t=e?"true":"false";i(t),j(t)}}):(0,a.jsx)("input",{value:w,onChange:e=>{var t;i(t=e.target.value),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>j(t),500)},type:t.isSecret&&!f?"password":"text",className:"mono","aria-label":t.key,style:{width:"100%",background:"var(--bg-inset)",border:"1px solid var(--line-1)",borderRadius:5,padding:"4px 8px",color:"var(--fg-0)",fontSize:11,outline:"none"}}),t.isSecret&&!x&&(0,a.jsx)(o.t,{size:"sm",variant:"ghost",icon:"eye",onClick:()=>g(e=>!e),title:f?"Hide":"Reveal",children:f?"Hide":"Show"}),(0,a.jsx)(o.t,{size:"sm",variant:"ghost",icon:"refresh",onClick:function(){u("saving"),m(null),(0,d.FW)(t.key).then(e=>{if(e.success)u("saved"),setTimeout(()=>u(e=>"saved"===e?"idle":e),1500);else{var t;u("error"),m(null!=(t=e.error)?t:"Failed to reset")}}).catch(e=>{u("error"),m(e instanceof Error?e.message:String(e))})},disabled:"saving"===l||"default"===t.source,title:"Reset to default",children:"saving"===l?"…":"saved"===l?"✓":"Reset"})]})]})}function f(){var e;let t=(0,u.f)(e=>e.config),[n,r]=(0,s.useState)(""),c=null!=(e=null==t?void 0:t.entries)?e:[],d=(0,s.useMemo)(()=>{let e={};for(let a of c){var t;(!n||a.key.toLowerCase().includes(n.toLowerCase()))&&(e[a.group]=null!=(t=e[a.group])?t:[]).push(a)}return e},[c,n]);return(0,a.jsxs)("div",{className:"page",style:{maxWidth:900},children:[(0,a.jsxs)("div",{className:"page-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"page-title row tight",children:(0,a.jsx)("span",{children:"Configuration"})}),(0,a.jsx)("p",{className:"page-sub",children:"~/.mink/config (shared) \xb7 ~/.mink/config.local (per-machine) \xb7 env vars override"})]}),(0,a.jsxs)("div",{className:"page-actions",children:[(0,a.jsx)(o.t,{icon:"download",variant:"ghost",disabled:!0,children:"Export"}),(0,a.jsx)(o.t,{icon:"upload",disabled:!0,children:"Import"})]})]}),(0,a.jsx)(i.Z,{title:"All settings",tools:(0,a.jsxs)("div",{className:"row",style:{maxWidth:220},children:[(0,a.jsx)(l.I,{name:"search",size:12,className:"muted"}),(0,a.jsx)("input",{value:n,onChange:e=>r(e.target.value),placeholder:"Filter keys…","aria-label":"Filter config keys",style:{background:"transparent",border:0,color:"var(--fg-0)",outline:"none",fontSize:11.5,flex:1,fontFamily:"var(--font-mono), monospace"}})]}),flush:!0,children:0===c.length?(0,a.jsx)("div",{className:"empty",children:(0,a.jsx)("h4",{children:"Loading configuration…"})}):0===Object.keys(d).length?(0,a.jsx)("div",{className:"empty",children:(0,a.jsx)("h4",{children:"No settings match"})}):Object.entries(d).map(e=>{let[t,n]=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(p,{label:t}),n.map(e=>(0,a.jsx)(m,{entry:e},e.key))]},t)})})]})}function g(){return(0,a.jsx)(f,{})}},6845:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var a=n(5155),s=n(1044);function i(e){let{icon:t,variant:n,size:i,className:r="",children:o,...l}=e,c=["btn"];return n&&c.push(n),i&&c.push(i),r&&c.push(r),(0,a.jsxs)("button",{className:c.join(" "),...l,children:[t&&(0,a.jsx)(s.I,{name:t}),o]})}},7125:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var a=n(5155);function s(e){let{tone:t="",children:n,className:s=""}=e;return(0,a.jsx)("span",{className:"chip ".concat(t," ").concat(s).trim(),children:n})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=3067)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{1044:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var s=n(5155);let a={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function i(e){let{name:t,size:n=14,stroke:i=1.7,className:l=""}=e,r=a[t];return r?(0,s.jsx)("svg",{className:"icn ".concat(l).trim(),width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:r})}):null}},2327:(e,t,n)=>{"use strict";async function s(e,t){let n=t?"".concat(e).concat(e.includes("?")?"&":"?","project=").concat(encodeURIComponent(t)):e,s=await fetch(n);if(!s.ok)throw Error("API error ".concat(s.status,": ").concat(e));return s.json()}function a(){return s("/api/projects")}function i(e){return s("/api/overview",e)}function l(e){return s("/api/token-ledger",e)}function r(e){return s("/api/compression",e)}function c(e){return s("/api/file-index",e)}function o(e){return s("/api/scheduler",e)}function d(e){return s("/api/learning-memory",e)}function h(e){return s("/api/action-log",e)}function u(e){return s("/api/bugs",e)}function m(e){return s("/api/design",e)}async function v(e){return(await fetch("/api/switch-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e})})).json()}async function p(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/tasks/".concat(encodeURIComponent(e),"/run").concat(n),{method:"POST"})).json()}async function f(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/dead-letter/".concat(encodeURIComponent(e),"/retry").concat(n),{method:"POST"})).json()}async function g(e){let t=e?"?project=".concat(encodeURIComponent(e)):"";return(await fetch("/api/rescan".concat(t),{method:"POST"})).json()}async function j(){return(await fetch("/api/daemon/start",{method:"POST"})).json()}async function M(){return(await fetch("/api/daemon/stop",{method:"POST"})).json()}async function y(){return(await fetch("/api/daemon/restart",{method:"POST"})).json()}function x(){return s("/api/config")}async function w(e,t){return(await fetch("/api/config/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})})).json()}async function k(e,t){return(await fetch("/api/config/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,all:t})})).json()}function b(){return s("/api/sync")}async function N(){return(await fetch("/api/sync/pull",{method:"POST"})).json()}async function S(){return(await fetch("/api/sync/push",{method:"POST"})).json()}async function z(){return(await fetch("/api/sync/disconnect",{method:"POST"})).json()}function P(){return s("/api/channel")}async function O(){return(await fetch("/api/channel/start",{method:"POST"})).json()}async function C(){return(await fetch("/api/channel/stop",{method:"POST"})).json()}async function T(){return(await fetch("/api/channel/restart",{method:"POST"})).json()}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;null!=e.limit&&t.set("limit",String(e.limit)),e.category&&t.set("category",e.category);let n=t.toString();return s("/api/wiki".concat(n?"?".concat(n):""))}function I(e){return s("/api/wiki/note?path=".concat(encodeURIComponent(e)))}function H(e){let t={"Content-Type":"application/json"};return e&&(t["X-Mink-Dedup-Key"]=e),t}async function V(e){return(await fetch("/api/wiki/notes",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({mode:e.mode,title:e.title,category:e.category,body:e.body,tags:e.tags})})).json()}async function D(e,t){return(await fetch("/api/wiki/daily",{method:"POST",headers:H(t),body:JSON.stringify({content:e})})).json()}async function U(e){return(await fetch("/api/wiki/ingest",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({sourcePath:e.sourcePath,category:e.category,tags:e.tags})})).json()}n.d(t,{$Z:()=>T,Aq:()=>z,Bf:()=>r,D:()=>L,Dz:()=>x,EP:()=>i,FW:()=>k,G1:()=>P,Gs:()=>b,Iw:()=>D,MP:()=>u,On:()=>O,P:()=>p,Vo:()=>l,WH:()=>C,Z4:()=>f,ZN:()=>I,ab:()=>y,co:()=>d,e2:()=>o,fX:()=>j,hD:()=>g,hY:()=>m,jm:()=>N,kH:()=>S,p4:()=>V,pu:()=>h,tf:()=>U,vj:()=>a,vo:()=>M,xl:()=>c,yJ:()=>w,yP:()=>v})},3742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(5155);function a(e){let{title:t,sub:n,tools:a,flush:i,className:l="",style:r,children:c}=e,o=null!=t||null!=a;return(0,s.jsxs)("div",{className:"card ".concat(l).trim(),style:r,children:[o&&(0,s.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,s.jsx)("h3",{children:t}):t),null!=n&&(0,s.jsx)("span",{className:"sub",children:n}),null!=a&&(0,s.jsx)("div",{className:"tools",children:a})]}),(0,s.jsx)("div",{className:"card-body ".concat(i?"flush":"").trim(),children:c})]})}},3928:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});let s=(0,n(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,n)=>e({projects:t,activeProjectId:n}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var n;return e({ledger:t,wasteFlags:null!=(n=t.wasteFlags)?n:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,n,s)=>e({tasks:t,taskDefinitions:n,deadLetters:s}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},4239:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var s=n(5155);function a(e){let{on:t,onChange:n,className:a="",ariaLabel:i}=e;return(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":t,"aria-label":i,className:"toggle ".concat(t?"on":""," ").concat(a).trim(),onClick:()=>null==n?void 0:n(!t)})}},4940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(5155),a=n(2115),i=n(3928),l=n(3742),r=n(7125),c=n(6845),o=n(4239),d=n(7e3),h=n(2327);function u(){var e,t,n;let u=(0,i.f)(e=>e.overview),m=(0,i.f)(e=>e.health),[v,p]=(0,a.useState)(null),[f,g]=(0,a.useState)(null),j=null!=(n=null==u||null==(e=u.daemon)?void 0:e.running)&&n,M=null==u||null==(t=u.daemon)?void 0:t.pid,y=j&&(null==m?void 0:m.uptimeMs)?(0,d.Y0)(m.uptimeMs):"—";async function x(e,t){p(e),g(null);try{let s=await t();if(!s.success){var n;g(null!=(n=s.error)?n:"Failed to ".concat(e," daemon"))}}catch(e){g(e instanceof Error?e.message:String(e))}finally{p(null)}}return(0,s.jsxs)("div",{className:"page",style:{maxWidth:1100},children:[(0,s.jsxs)("div",{className:"page-head",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"page-title row tight",children:(0,s.jsx)("span",{children:"Daemon"})}),(0,s.jsx)("p",{className:"page-sub",children:"Background process — runs scheduled tasks, listens for hook events, pushes live updates"})]}),(0,s.jsx)("div",{className:"page-actions",children:j?(0,s.jsx)(c.t,{icon:"stop",variant:"danger",disabled:null!==v,onClick:()=>x("stop",h.vo),children:"stop"===v?"Stopping…":"Stop daemon"}):(0,s.jsx)(c.t,{icon:"play",variant:"primary",disabled:null!==v,onClick:()=>x("start",h.fX),children:"start"===v?"Starting…":"Start daemon"})})]}),f&&(0,s.jsxs)("div",{className:"kpi",style:{marginBottom:14,borderColor:"var(--danger, #c33)"},children:[(0,s.jsx)("div",{className:"label",style:{color:"var(--danger, #c33)"},children:"Error"}),(0,s.jsx)("div",{className:"value",style:{fontSize:13},children:f})]}),(0,s.jsxs)("div",{className:"grid g-4",style:{marginBottom:14},children:[(0,s.jsxs)("div",{className:"kpi",children:[(0,s.jsx)("div",{className:"label",children:"Status"}),(0,s.jsxs)("div",{className:"value",style:{display:"flex",alignItems:"center",gap:6,fontSize:16},children:[(0,s.jsx)("span",{className:"pulse",style:{width:8,height:8,borderRadius:4,background:j?"var(--accent)":"var(--fg-3)"}}),j?"Online":"Offline"]}),(0,s.jsx)("div",{className:"delta",children:j?M?"pid ".concat(M):"running":"run: mink daemon start"})]}),(0,s.jsxs)("div",{className:"kpi",children:[(0,s.jsx)("div",{className:"label",children:"Uptime"}),(0,s.jsx)("div",{className:"value mono",children:y})]}),(0,s.jsxs)("div",{className:"kpi",children:[(0,s.jsx)("div",{className:"label",children:"Heartbeat"}),(0,s.jsx)("div",{className:"value mono",children:j?"5.0s":"—"}),(0,s.jsx)("div",{className:"delta",children:j?"healthy":"paused"})]}),(0,s.jsxs)("div",{className:"kpi",children:[(0,s.jsx)("div",{className:"label",children:"Hook wiring"}),(0,s.jsx)("div",{className:"value",style:{fontSize:16},children:j?"6 events":"—"}),(0,s.jsx)("div",{className:"delta",children:".claude/settings.json"})]})]}),(0,s.jsxs)("div",{className:"grid g-2",children:[(0,s.jsx)(l.Z,{title:"Controls",children:(0,s.jsxs)("div",{className:"vstack",children:[(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{style:{flex:1},children:[(0,s.jsx)("div",{style:{fontSize:12},children:"Auto-restart on failure"}),(0,s.jsx)("div",{className:"muted",style:{fontSize:11},children:"max 5 attempts, backoff 30s"})]}),(0,s.jsx)(o.l,{on:!0})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{style:{flex:1},children:[(0,s.jsx)("div",{style:{fontSize:12},children:"Boot on system login"}),(0,s.jsx)("div",{className:"muted",style:{fontSize:11},children:"launchd / systemd user service"})]}),(0,s.jsx)(o.l,{on:!1})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{style:{flex:1},children:[(0,s.jsx)("div",{style:{fontSize:12},children:"Verbose logging"}),(0,s.jsx)("div",{className:"muted",style:{fontSize:11},children:"log level: debug"})]}),(0,s.jsx)(o.l,{on:!1})]}),(0,s.jsx)("div",{className:"divider"}),(0,s.jsxs)("div",{className:"row tight",style:{flexWrap:"wrap"},children:[(0,s.jsx)(c.t,{size:"sm",icon:"refresh",disabled:null!==v||!j,onClick:()=>x("restart",h.ab),children:"restart"===v?"Restarting…":"Restart"}),(0,s.jsx)(c.t,{size:"sm",variant:"ghost",icon:"eye",disabled:!0,children:"Open log file"}),(0,s.jsx)(c.t,{size:"sm",variant:"ghost",icon:"download",disabled:!0,children:"Dump state"})]})]})}),(0,s.jsx)(l.Z,{title:"Hook integration",sub:".claude/settings.json",flush:!0,children:(0,s.jsxs)("table",{className:"tbl",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Event"}),(0,s.jsx)("th",{children:"Command"}),(0,s.jsx)("th",{children:"Purpose"}),(0,s.jsx)("th",{children:"Status"})]})}),(0,s.jsx)("tbody",{children:[["SessionStart","mink session-start","Create fresh session state"],["Stop","mink session-stop","Finalize session, calculate savings"],["PreToolUse (Read)","mink pre-read","Check file index, warn on repeats"],["PostToolUse (Read)","mink post-read","Track read, estimate tokens"],["PreToolUse (Write)","mink pre-write","Enforce learned rules, surface bugs"],["PostToolUse (Write)","mink post-write","Log write, update file index"]].map(e=>{let[t,n,a]=e;return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"mono strong",children:t}),(0,s.jsx)("td",{className:"mono muted",children:n}),(0,s.jsx)("td",{children:a}),(0,s.jsx)("td",{children:(0,s.jsx)(r.v,{tone:j?"accent":"",children:j?"wired":"—"})})]},t)})})]})})]})]})}function m(){return(0,s.jsx)(u,{})}},5959:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var s=n(2115);let a=e=>{let t,n=new Set,s=(e,s)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=s?s:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,i={setState:s,getState:a,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(s,a,i);return i},i=e=>{let t=(e=>e?a(e):a)(e),n=e=>(function(e,t=e=>e){let n=s.useSyncExternalStore(e.subscribe,s.useCallback(()=>t(e.getState()),[e,t]),s.useCallback(()=>t(e.getInitialState()),[e,t]));return s.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?i(e):i},6845:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var s=n(5155),a=n(1044);function i(e){let{icon:t,variant:n,size:i,className:l="",children:r,...c}=e,o=["btn"];return n&&o.push(n),i&&o.push(i),l&&o.push(l),(0,s.jsxs)("button",{className:o.join(" "),...c,children:[t&&(0,s.jsx)(a.I,{name:t}),r]})}},7e3:(e,t,n)=>{"use strict";function s(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function a(e){if(!e||e<=0)return"—";let t=Math.floor(e/1e3),n=Math.floor(t/60),s=Math.floor(n/60);return s>0?s+"h "+n%60+"m":n>0?n+"m "+t%60+"s":t+"s"}function i(e){if(!e)return"—";try{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}n.d(t,{Y0:()=>a,aT:()=>s,r6:()=>i})},7125:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var s=n(5155);function a(e){let{tone:t="",children:n,className:a=""}=e;return(0,s.jsx)("span",{className:"chip ".concat(t," ").concat(a).trim(),children:n})}},8105:(e,t,n)=>{Promise.resolve().then(n.bind(n,4940))}},e=>{e.O(0,[441,255,358],()=>e(e.s=8105)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[116],{3209:(e,t,s)=>{"use strict";s.d(t,{Wu:()=>l,ZB:()=>o,Zp:()=>r,aR:()=>i});var a=s(5155);s(2115);var n=s(5016);function r(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",t),...s})}function i(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",t),...s})}function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...s})}},3928:(e,t,s)=>{"use strict";s.d(t,{f:()=>a});let a=(0,s(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,s)=>e({projects:t,activeProjectId:s}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var s;return e({ledger:t,wasteFlags:null!=(s=t.wasteFlags)?s:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,s,a)=>e({tasks:t,taskDefinitions:s,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},4987:(e,t,s)=>{Promise.resolve().then(s.bind(s,6185))},5016:(e,t,s)=>{"use strict";s.d(t,{cn:()=>r});var a=s(2821),n=s(5889);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,n.QP)((0,a.$)(t))}},6185:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(5155),n=s(2115),r=s(3928),i=s(3209),o=s(7812),l=s(5229),d=s(6405),c=s(5016);function u(e){let{...t}=e;return(0,a.jsx)(d.bL,{"data-slot":"dialog",...t})}function g(e){let{...t}=e;return(0,a.jsx)(d.ZL,{"data-slot":"dialog-portal",...t})}function m(e){let{className:t,...s}=e;return(0,a.jsx)(d.hJ,{"data-slot":"dialog-overlay",className:(0,c.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...s})}function x(e){let{className:t,children:s,showCloseButton:n=!0,...r}=e;return(0,a.jsxs)(g,{"data-slot":"dialog-portal",children:[(0,a.jsx)(m,{}),(0,a.jsxs)(d.UC,{"data-slot":"dialog-content",className:(0,c.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t),...r,children:[s,n&&(0,a.jsxs)(d.bm,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(l.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function v(e){let{className:t,...s}=e;return(0,a.jsx)(d.hE,{"data-slot":"dialog-title",className:(0,c.cn)("text-lg leading-none font-semibold",t),...s})}(0,s(3101).F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var f=s(8122),h=s(7e3),p=s(2196);function b(){let e=(0,r.f)(e=>e.designImages),t=(0,r.f)(e=>e.connected),[s,l]=(0,n.useState)(null);return t||0!==e.length?0===e.length?(0,a.jsx)(i.Zp,{children:(0,a.jsx)(i.Wu,{className:"py-8",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(p.A,{className:"h-8 w-8 text-muted-foreground mx-auto mb-2"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No design captures yet. Run: mink designqc"})]})})}):(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(p.A,{className:"h-4 w-4 text-muted-foreground"}),(0,a.jsxs)("span",{className:"text-sm text-muted-foreground",children:[e.length," captures"]})]}),(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e.map((e,t)=>(0,a.jsxs)(i.Zp,{className:"cursor-pointer overflow-hidden transition-shadow hover:shadow-lg",onClick:()=>l(e),children:[(0,a.jsx)("div",{className:"aspect-video bg-muted relative",children:(0,a.jsx)("img",{src:e.url,alt:"".concat(e.route," - ").concat(e.viewport),className:"h-full w-full object-cover",loading:"lazy"})}),(0,a.jsxs)(i.Wu,{className:"py-2 px-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-xs font-mono truncate",children:e.route}),(0,a.jsx)(o.E,{variant:"outline",className:"text-[10px]",children:e.viewport})]}),(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground mt-1",children:(0,h.r6)(e.timestamp)})]})]},t))}),(0,a.jsx)(u,{open:null!==s,onOpenChange:e=>!e&&l(null),children:(0,a.jsxs)(x,{className:"max-w-4xl",children:[(0,a.jsx)(v,{className:"sr-only",children:"Design Capture"}),s&&(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:s.url,alt:"".concat(s.route," - ").concat(s.viewport),className:"w-full rounded-md"}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-sm font-mono",children:s.route}),(0,a.jsx)(o.E,{variant:"outline",className:"ml-2 text-[10px]",children:s.viewport}),(0,a.jsxs)(o.E,{variant:"secondary",className:"ml-1 text-[10px]",children:["Section ",s.section]})]}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,h.r6)(s.timestamp)})]})]})]})})]}):(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(f.E,{className:"h-8 w-48"}),(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:3}).map((e,t)=>(0,a.jsx)(f.E,{className:"h-48"},t))})]})}function j(){return(0,a.jsx)(b,{})}},7e3:(e,t,s)=>{"use strict";function a(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function n(e){if(!e||e<=0)return"—";let t=Math.floor(e/1e3),s=Math.floor(t/60),a=Math.floor(s/60);return a>0?a+"h "+s%60+"m":s>0?s+"m "+t%60+"s":t+"s"}function r(e){if(!e)return"—";try{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}s.d(t,{Y0:()=>n,aT:()=>a,r6:()=>r})},7812:(e,t,s)=>{"use strict";s.d(t,{E:()=>l});var a=s(5155);s(2115);var n=s(3101),r=s(2467),i=s(5016);let o=(0,n.F)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:s="default",asChild:n=!1,...l}=e,d=n?r.bL:"span";return(0,a.jsx)(d,{"data-slot":"badge","data-variant":s,className:(0,i.cn)(o({variant:s}),t),...l})}},8122:(e,t,s)=>{"use strict";s.d(t,{E:()=>r});var a=s(5155),n=s(5016);function r(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"skeleton",className:(0,n.cn)("animate-pulse rounded-md bg-accent",t),...s})}}},e=>{e.O(0,[738,926,441,255,358],()=>e(e.s=4987)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[670],{1044:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var a=n(5155);let s={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function l(e){let{name:t,size:n=14,stroke:l=1.7,className:i=""}=e,r=s[t];return r?(0,a.jsx)("svg",{className:"icn ".concat(i).trim(),width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:l,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:r})}):null}},2327:(e,t,n)=>{"use strict";async function a(e,t){let n=t?"".concat(e).concat(e.includes("?")?"&":"?","project=").concat(encodeURIComponent(t)):e,a=await fetch(n);if(!a.ok)throw Error("API error ".concat(a.status,": ").concat(e));return a.json()}function s(){return a("/api/projects")}function l(e){return a("/api/overview",e)}function i(e){return a("/api/token-ledger",e)}function r(e){return a("/api/compression",e)}function c(e){return a("/api/file-index",e)}function o(e){return a("/api/scheduler",e)}function d(e){return a("/api/learning-memory",e)}function h(e){return a("/api/action-log",e)}function u(e){return a("/api/bugs",e)}function m(e){return a("/api/design",e)}async function p(e){return(await fetch("/api/switch-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e})})).json()}async function v(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/tasks/".concat(encodeURIComponent(e),"/run").concat(n),{method:"POST"})).json()}async function f(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/dead-letter/".concat(encodeURIComponent(e),"/retry").concat(n),{method:"POST"})).json()}async function g(e){let t=e?"?project=".concat(encodeURIComponent(e)):"";return(await fetch("/api/rescan".concat(t),{method:"POST"})).json()}async function y(){return(await fetch("/api/daemon/start",{method:"POST"})).json()}async function j(){return(await fetch("/api/daemon/stop",{method:"POST"})).json()}async function M(){return(await fetch("/api/daemon/restart",{method:"POST"})).json()}function x(){return a("/api/config")}async function w(e,t){return(await fetch("/api/config/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})})).json()}async function S(e,t){return(await fetch("/api/config/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,all:t})})).json()}function b(){return a("/api/sync")}async function N(){return(await fetch("/api/sync/pull",{method:"POST"})).json()}async function k(){return(await fetch("/api/sync/push",{method:"POST"})).json()}async function z(){return(await fetch("/api/sync/disconnect",{method:"POST"})).json()}function O(){return a("/api/channel")}async function P(){return(await fetch("/api/channel/start",{method:"POST"})).json()}async function C(){return(await fetch("/api/channel/stop",{method:"POST"})).json()}async function I(){return(await fetch("/api/channel/restart",{method:"POST"})).json()}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;null!=e.limit&&t.set("limit",String(e.limit)),e.category&&t.set("category",e.category);let n=t.toString();return a("/api/wiki".concat(n?"?".concat(n):""))}function T(e){return a("/api/wiki/note?path=".concat(encodeURIComponent(e)))}function H(e){let t={"Content-Type":"application/json"};return e&&(t["X-Mink-Dedup-Key"]=e),t}async function V(e){return(await fetch("/api/wiki/notes",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({mode:e.mode,title:e.title,category:e.category,body:e.body,tags:e.tags})})).json()}async function R(e,t){return(await fetch("/api/wiki/daily",{method:"POST",headers:H(t),body:JSON.stringify({content:e})})).json()}async function D(e){return(await fetch("/api/wiki/ingest",{method:"POST",headers:H(e.dedupKey),body:JSON.stringify({sourcePath:e.sourcePath,category:e.category,tags:e.tags})})).json()}n.d(t,{$Z:()=>I,Aq:()=>z,Bf:()=>r,D:()=>L,Dz:()=>x,EP:()=>l,FW:()=>S,G1:()=>O,Gs:()=>b,Iw:()=>R,MP:()=>u,On:()=>P,P:()=>v,Vo:()=>i,WH:()=>C,Z4:()=>f,ZN:()=>T,ab:()=>M,co:()=>d,e2:()=>o,fX:()=>y,hD:()=>g,hY:()=>m,jm:()=>N,kH:()=>k,p4:()=>V,pu:()=>h,tf:()=>D,vj:()=>s,vo:()=>j,xl:()=>c,yJ:()=>w,yP:()=>p})},3742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(5155);function s(e){let{title:t,sub:n,tools:s,flush:l,className:i="",style:r,children:c}=e,o=null!=t||null!=s;return(0,a.jsxs)("div",{className:"card ".concat(i).trim(),style:r,children:[o&&(0,a.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,a.jsx)("h3",{children:t}):t),null!=n&&(0,a.jsx)("span",{className:"sub",children:n}),null!=s&&(0,a.jsx)("div",{className:"tools",children:s})]}),(0,a.jsx)("div",{className:"card-body ".concat(l?"flush":"").trim(),children:c})]})}},3928:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});let a=(0,n(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,n)=>e({projects:t,activeProjectId:n}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var n;return e({ledger:t,wasteFlags:null!=(n=t.wasteFlags)?n:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,n,a)=>e({tasks:t,taskDefinitions:n,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},4239:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var a=n(5155);function s(e){let{on:t,onChange:n,className:s="",ariaLabel:l}=e;return(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":t,"aria-label":l,className:"toggle ".concat(t?"on":""," ").concat(s).trim(),onClick:()=>null==n?void 0:n(!t)})}},5959:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var a=n(2115);let s=e=>{let t,n=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,l={setState:a,getState:s,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e))},i=t=e(a,s,l);return l},l=e=>{let t=(e=>e?s(e):s)(e),n=e=>(function(e,t=e=>e){let n=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},i=e=>e?l(e):l},6845:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var a=n(5155),s=n(1044);function l(e){let{icon:t,variant:n,size:l,className:i="",children:r,...c}=e,o=["btn"];return n&&o.push(n),l&&o.push(l),i&&o.push(i),(0,a.jsxs)("button",{className:o.join(" "),...c,children:[t&&(0,a.jsx)(s.I,{name:t}),r]})}},7125:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var a=n(5155);function s(e){let{tone:t="",children:n,className:s=""}=e;return(0,a.jsx)("span",{className:"chip ".concat(t," ").concat(s).trim(),children:n})}},7957:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var a=n(5155),s=n(2115),l=n(3742),i=n(7125),r=n(6845),c=n(4239),o=n(3928),d=n(2327);function h(){var e;let t=(0,o.f)(e=>e.channel),n=(0,o.f)(e=>e.setChannel),[h,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(null),[v,f]=(0,s.useState)(""),g=(0,s.useRef)(null);if((0,s.useEffect)(()=>{if(!t||"running"!==t.status)return;let e=setInterval(()=>{(0,d.G1)().then(n).catch(()=>{})},4e3);return()=>clearInterval(e)},[null==t?void 0:t.status,n,t]),!t)return(0,a.jsx)("div",{className:"page",children:(0,a.jsx)(l.Z,{title:"Discord channel",children:(0,a.jsx)("div",{className:"empty",children:(0,a.jsx)("h4",{children:"Loading…"})})})});let y="running"===t.status;async function j(e,t){u(e),p(null);try{var n;let a=await t();a.success||p(null!=(n=a.error)?n:"Failed to ".concat(e))}catch(e){p(e instanceof Error?e.message:String(e))}finally{u(null)}}function M(e){p(null),(0,d.yJ)("channel.discord.allowlist",e.join(",")).then(e=>{var t;e.success||p(null!=(t=e.error)?t:"Failed to save allowlist")}).catch(e=>p(e instanceof Error?e.message:String(e)))}function x(){var e;let n=v.trim();if(n){if(t.allowlist.includes(n))return void f("");M([...t.allowlist,n]),f(""),null==(e=g.current)||e.focus()}}return(0,a.jsxs)("div",{className:"page",children:[(0,a.jsxs)("div",{className:"page-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"page-title row tight",children:(0,a.jsx)("span",{children:"Discord channel"})}),(0,a.jsx)("p",{className:"page-sub",children:"DM your bot to capture, search, and summarize your wiki from anywhere"})]}),(0,a.jsx)("div",{className:"page-actions",children:y?(0,a.jsx)(r.t,{icon:"stop",variant:"danger",disabled:null!==h,onClick:()=>j("stop",d.WH),children:"stop"===h?"Stopping…":"Stop channel"}):(0,a.jsx)(r.t,{icon:"play",variant:"primary",disabled:null!==h,onClick:()=>j("start",d.On),children:"start"===h?"Starting…":"Start channel"})})]}),m&&(0,a.jsxs)("div",{className:"kpi",style:{marginBottom:14,borderColor:"var(--danger, #c33)"},children:[(0,a.jsx)("div",{className:"label",style:{color:"var(--danger, #c33)"},children:"Error"}),(0,a.jsx)("div",{className:"value",style:{fontSize:12,whiteSpace:"pre-wrap"},children:m})]}),(0,a.jsxs)("div",{className:"grid g-4",style:{marginBottom:14},children:[(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"label",children:"Status"}),(0,a.jsxs)("div",{className:"value",style:{fontSize:14,display:"flex",alignItems:"center",gap:6},children:[(0,a.jsx)("span",{className:"pulse",style:{width:8,height:8,borderRadius:4,background:y?"var(--accent)":"var(--fg-3)"}}),y?"Running":"Stopped"]}),(0,a.jsx)("div",{className:"delta",children:t.session||"—"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"label",children:"Uptime"}),(0,a.jsx)("div",{className:"value mono",children:function(e){if(!e)return"—";let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),a=Math.floor(e%3600/60);return t>0?"".concat(t,"d ").concat(String(n).padStart(2,"0"),"h"):n>0?"".concat(n,"h ").concat(String(a).padStart(2,"0"),"m"):"".concat(a,"m ").concat(String(e%60).padStart(2,"0"),"s")}(t.uptimeSec)})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"label",children:"Platform"}),(0,a.jsx)("div",{className:"value mono",children:null!=(e=t.platform)?e:"—"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"label",children:"Allowlist"}),(0,a.jsx)("div",{className:"value mono",children:t.allowlist.length})]})]}),(0,a.jsxs)("div",{className:"grid g-2",children:[(0,a.jsx)(l.Z,{title:"Configuration",children:(0,a.jsxs)("div",{className:"vstack",children:[(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Bot token"}),(0,a.jsx)("input",{value:t.tokenMasked||"(not set)",className:"mono",readOnly:!0})]}),(0,a.jsxs)("div",{className:"field",children:[(0,a.jsx)("label",{children:"Sender allowlist"}),(0,a.jsxs)("div",{className:"row tight",style:{flexWrap:"wrap",gap:6},children:[0===t.allowlist.length&&(0,a.jsx)("span",{className:"muted",style:{fontSize:11},children:"no entries yet"}),t.allowlist.map(e=>(0,a.jsxs)("span",{className:"row tight",style:{gap:4},children:[(0,a.jsx)(i.v,{tone:"accent",children:e}),(0,a.jsx)("button",{type:"button",onClick:()=>{M(t.allowlist.filter(t=>t!==e))},style:{background:"transparent",border:0,color:"var(--fg-3)",cursor:"pointer",fontSize:11},"aria-label":"Remove ".concat(e),children:"\xd7"})]},e))]}),(0,a.jsxs)("div",{className:"row tight",style:{marginTop:6,gap:6},children:[(0,a.jsx)("input",{ref:g,value:v,onChange:e=>f(e.target.value),onKeyDown:e=>"Enter"===e.key&&x(),placeholder:"discord user id or name#tag",className:"mono",style:{flex:1,background:"var(--bg-inset)",border:"1px solid var(--line-1)",borderRadius:5,padding:"4px 8px",color:"var(--fg-0)",fontSize:11,outline:"none"}}),(0,a.jsx)(r.t,{size:"sm",variant:"ghost",icon:"plus",onClick:x,disabled:!v.trim(),children:"Add"})]})]}),(0,a.jsxs)("div",{className:"row",style:{padding:"4px 0"},children:[(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)("div",{style:{fontSize:12,color:"var(--fg-0)"},children:"Auto-start on daemon"}),(0,a.jsx)("div",{className:"muted",style:{fontSize:11},children:"channel.discord.enabled"})]}),(0,a.jsx)(c.l,{on:t.autoStart,onChange:function(e){p(null),(0,d.yJ)("channel.discord.enabled",e?"true":"false").catch(e=>p(e instanceof Error?e.message:String(e)))}})]}),(0,a.jsx)("div",{className:"row tight",style:{marginTop:6},children:(0,a.jsx)(r.t,{size:"sm",icon:"refresh",disabled:null!==h||!y,onClick:()=>j("restart",d.$Z),children:"restart"===h?"Restarting…":"Restart"})})]})}),(0,a.jsx)(l.Z,{title:"Session logs",sub:y?"live hardcopy":"session not running",tools:y?(0,a.jsxs)("span",{className:"chip accent mono",style:{gap:5},children:[(0,a.jsx)("span",{style:{width:5,height:5,borderRadius:3,background:"var(--accent)"}}),"live"]}):void 0,flush:!0,children:(0,a.jsx)("div",{style:{padding:"10px 12px",maxHeight:320,overflowY:"auto"},children:0===t.logs.length?(0,a.jsx)("div",{className:"muted",style:{fontSize:11},children:y?"No log output captured yet.":"Start the channel to see live logs."}):t.logs.map((e,t)=>(0,a.jsxs)("div",{style:{display:"flex",gap:10,padding:"3px 0",fontFamily:"var(--font-mono), monospace",fontSize:11},children:[e.t&&(0,a.jsx)("span",{className:"muted",style:{minWidth:56},children:e.t}),(0,a.jsx)("span",{style:{color:"var(--fg-1)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.m})]},"".concat(t,"-").concat(e.t,"-").concat(e.m.slice(0,20))))})})]})]})}function u(){return(0,a.jsx)(h,{})}},8763:(e,t,n)=>{Promise.resolve().then(n.bind(n,7957))}},e=>{e.O(0,[441,255,358],()=>e(e.s=8763)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[837],{1044:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var a=n(5155);let s={pulse:"M2 12h4l2-7 4 14 2-7h6",activity:"M22 12h-4l-3 9L9 3l-3 9H2",layers:"M12 2l10 6-10 6L2 8l10-6zm0 10l10 6-10 6L2 18l10-6z",database:"M4 5a8 3 0 1016 0 8 3 0 10-16 0v14a8 3 0 0016 0V5",sparkles:"M12 3l1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5zM20 15l.8 2.2L23 18l-2.2.8L20 21l-.8-2.2L17 18l2.2-.8z",brain:"M12 4a4 4 0 00-4 4v1a3 3 0 00-2 5.5A3 3 0 008 19a4 4 0 004 2 4 4 0 004-2 3 3 0 002-4.5A3 3 0 0016 9V8a4 4 0 00-4-4z",bug:"M8 8V6a4 4 0 018 0v2M4 13h16M12 8v13M7 21s-3-2-3-8M17 21s3-2 3-8M8 9l-4-3M16 9l4-3M8 13l-4 3M16 13l4 3",file:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",folder:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z",clock:"M12 22a10 10 0 100-20 10 10 0 000 20zm0-16v6l4 2",alert:"M12 2l11 20H1L12 2zm0 7v5m0 4v0",settings:"M12 15a3 3 0 100-6 3 3 0 000 6zm8-3l2-1-2-4-2 1-1-1V4h-4v1l-1 1-2-1-2 4 2 1v2l-2 1 2 4 2-1 1 1v1h4v-1l1-1 2 1 2-4-2-1v-2z",link:"M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1",git:"M6 3v12M6 15a3 3 0 110 6 3 3 0 010-6zm0-12a3 3 0 110 6 3 3 0 010-6zm12 6a3 3 0 110 6 3 3 0 010-6zM18 9v2a2 2 0 01-2 2H9",discord:"M9 14a1 1 0 100-2 1 1 0 000 2zm6 0a1 1 0 100-2 1 1 0 000 2zM7 7l2-1h6l2 1 2 5-1 5-3 1-1-2-4 0-1 2-3-1-1-5z",chev:"M9 6l6 6-6 6",chevDown:"M6 9l6 6 6-6",play:"M6 4l14 8-14 8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",plus:"M12 5v14M5 12h14",search:"M21 21l-5-5m2-6a8 8 0 11-16 0 8 8 0 0116 0z",refresh:"M3 12a9 9 0 019-9c2.5 0 4.7 1 6.3 2.7M21 3v5h-5M21 12a9 9 0 01-9 9c-2.5 0-4.7-1-6.3-2.7M3 21v-5h5",dots:"M5 12a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0zm6 0a1 1 0 102 0 1 1 0 00-2 0z",check:"M20 6L9 17l-5-5",x:"M6 6l12 12M6 18L18 6",download:"M12 3v13m0 0l-5-5m5 5l5-5M4 21h16",upload:"M12 21V8m0 0l-5 5m5-5l5 5M4 3h16",arrowUp:"M12 19V5m0 0l-7 7m7-7l7 7",arrowDown:"M12 5v14m0 0l-7-7m7 7l7-7",trash:"M4 7h16M10 7V4h4v3m-6 0v13h8V7",home:"M3 12l9-9 9 9M5 10v10h14V10",command:"M6 3a3 3 0 013 3v12a3 3 0 11-3-3h12a3 3 0 113 3V6a3 3 0 11-3 3H6",archive:"M3 7h18v4H3zM5 11v9h14v-9M10 14h4",terminal:"M4 5h16v14H4zM8 9l3 3-3 3M13 15h4",wand:"M15 4V2m0 14v-2m-7-7h2M22 9h-2M5.6 5.6l1.4 1.4M18.4 5.6L17 7m0 10l1.4 1.4M7 17l-1.4 1.4M14 7l-9 9 3 3 9-9",tag:"M20 13l-7 7a2 2 0 01-3 0L3 13V4h9l8 9zM7 7h.01",calendar:"M3 7h18v13H3zM3 7l0-3h18v3M8 2v4M16 2v4M3 11h18",list:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",grid:"M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z",eye:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zm10 3a3 3 0 100-6 3 3 0 000 6z",chart:"M3 20h18M6 16V8M11 16V4M16 16v-6M21 16v-3",book:"M4 4h12a4 4 0 014 4v12H8a4 4 0 01-4-4V4zm0 0v16",copy:"M8 5h10a2 2 0 012 2v10M4 9h10a2 2 0 012 2v10H6a2 2 0 01-2-2V9z",power:"M18 6a8 8 0 11-12 0M12 2v8",stack:"M4 6h16M4 12h16M4 18h16"};function i(e){let{name:t,size:n=14,stroke:i=1.7,className:l=""}=e,r=s[t];return r?(0,a.jsx)("svg",{className:"icn ".concat(l).trim(),width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:r})}):null}},2327:(e,t,n)=>{"use strict";async function a(e,t){let n=t?"".concat(e).concat(e.includes("?")?"&":"?","project=").concat(encodeURIComponent(t)):e,a=await fetch(n);if(!a.ok)throw Error("API error ".concat(a.status,": ").concat(e));return a.json()}function s(){return a("/api/projects")}function i(e){return a("/api/overview",e)}function l(e){return a("/api/token-ledger",e)}function r(e){return a("/api/compression",e)}function c(e){return a("/api/file-index",e)}function o(e){return a("/api/scheduler",e)}function d(e){return a("/api/learning-memory",e)}function h(e){return a("/api/action-log",e)}function u(e){return a("/api/bugs",e)}function m(e){return a("/api/design",e)}async function f(e){return(await fetch("/api/switch-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e})})).json()}async function v(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/tasks/".concat(encodeURIComponent(e),"/run").concat(n),{method:"POST"})).json()}async function p(e,t){let n=t?"?project=".concat(encodeURIComponent(t)):"";return(await fetch("/api/dead-letter/".concat(encodeURIComponent(e),"/retry").concat(n),{method:"POST"})).json()}async function M(e){let t=e?"?project=".concat(encodeURIComponent(e)):"";return(await fetch("/api/rescan".concat(t),{method:"POST"})).json()}async function g(){return(await fetch("/api/daemon/start",{method:"POST"})).json()}async function j(){return(await fetch("/api/daemon/stop",{method:"POST"})).json()}async function y(){return(await fetch("/api/daemon/restart",{method:"POST"})).json()}function x(){return a("/api/config")}async function w(e,t){return(await fetch("/api/config/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})})).json()}async function S(e,t){return(await fetch("/api/config/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,all:t})})).json()}function N(){return a("/api/sync")}async function b(){return(await fetch("/api/sync/pull",{method:"POST"})).json()}async function k(){return(await fetch("/api/sync/push",{method:"POST"})).json()}async function z(){return(await fetch("/api/sync/disconnect",{method:"POST"})).json()}function P(){return a("/api/channel")}async function T(){return(await fetch("/api/channel/start",{method:"POST"})).json()}async function I(){return(await fetch("/api/channel/stop",{method:"POST"})).json()}async function O(){return(await fetch("/api/channel/restart",{method:"POST"})).json()}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;null!=e.limit&&t.set("limit",String(e.limit)),e.category&&t.set("category",e.category);let n=t.toString();return a("/api/wiki".concat(n?"?".concat(n):""))}function C(e){return a("/api/wiki/note?path=".concat(encodeURIComponent(e)))}function D(e){let t={"Content-Type":"application/json"};return e&&(t["X-Mink-Dedup-Key"]=e),t}async function V(e){return(await fetch("/api/wiki/notes",{method:"POST",headers:D(e.dedupKey),body:JSON.stringify({mode:e.mode,title:e.title,category:e.category,body:e.body,tags:e.tags})})).json()}async function H(e,t){return(await fetch("/api/wiki/daily",{method:"POST",headers:D(t),body:JSON.stringify({content:e})})).json()}async function F(e){return(await fetch("/api/wiki/ingest",{method:"POST",headers:D(e.dedupKey),body:JSON.stringify({sourcePath:e.sourcePath,category:e.category,tags:e.tags})})).json()}n.d(t,{$Z:()=>O,Aq:()=>z,Bf:()=>r,D:()=>L,Dz:()=>x,EP:()=>i,FW:()=>S,G1:()=>P,Gs:()=>N,Iw:()=>H,MP:()=>u,On:()=>T,P:()=>v,Vo:()=>l,WH:()=>I,Z4:()=>p,ZN:()=>C,ab:()=>y,co:()=>d,e2:()=>o,fX:()=>g,hD:()=>M,hY:()=>m,jm:()=>b,kH:()=>k,p4:()=>V,pu:()=>h,tf:()=>F,vj:()=>s,vo:()=>j,xl:()=>c,yJ:()=>w,yP:()=>f})},3512:(e,t,n)=>{Promise.resolve().then(n.bind(n,9691))},3742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(5155);function s(e){let{title:t,sub:n,tools:s,flush:i,className:l="",style:r,children:c}=e,o=null!=t||null!=s;return(0,a.jsxs)("div",{className:"card ".concat(l).trim(),style:r,children:[o&&(0,a.jsxs)("div",{className:"card-head",children:[null!=t&&("string"==typeof t?(0,a.jsx)("h3",{children:t}):t),null!=n&&(0,a.jsx)("span",{className:"sub",children:n}),null!=s&&(0,a.jsx)("div",{className:"tools",children:s})]}),(0,a.jsx)("div",{className:"card-body ".concat(i?"flush":"").trim(),children:c})]})}},3928:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});let a=(0,n(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,n)=>e({projects:t,activeProjectId:n}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var n;return e({ledger:t,wasteFlags:null!=(n=t.wasteFlags)?n:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,n,a)=>e({tasks:t,taskDefinitions:n,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},5959:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var a=n(2115);let s=e=>{let t,n=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,i={setState:a,getState:s,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(a,s,i);return i},i=e=>{let t=(e=>e?s(e):s)(e),n=e=>(function(e,t=e=>e){let n=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?i(e):i},6845:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var a=n(5155),s=n(1044);function i(e){let{icon:t,variant:n,size:i,className:l="",children:r,...c}=e,o=["btn"];return n&&o.push(n),i&&o.push(i),l&&o.push(l),(0,a.jsxs)("button",{className:o.join(" "),...c,children:[t&&(0,a.jsx)(s.I,{name:t}),r]})}},7e3:(e,t,n)=>{"use strict";function a(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function s(e){if(!e||e<=0)return"—";let t=Math.floor(e/1e3),n=Math.floor(t/60),a=Math.floor(n/60);return a>0?a+"h "+n%60+"m":n>0?n+"m "+t%60+"s":t+"s"}function i(e){if(!e)return"—";try{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}n.d(t,{Y0:()=>s,aT:()=>a,r6:()=>i})},7125:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var a=n(5155);function s(e){let{tone:t="",children:n,className:s=""}=e;return(0,a.jsx)("span",{className:"chip ".concat(t," ").concat(s).trim(),children:n})}},9691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var a=n(5155),s=n(2115),i=n(3928),l=n(3742),r=n(7125),c=n(6845),o=n(1044),d=n(2327),h=n(7e3);function u(e){let t=new Date(e).getTime();if(!t)return"cold";let n=(Date.now()-t)/36e5;return n<1?"hot":n<24?"fresh":n<336?"stale":"cold"}function m(e){return"hot"===e?"accent":"fresh"===e?"":"stale"===e?"amber":"red"}function f(){var e;let t=(0,i.f)(e=>e.fileIndex),n=(0,i.f)(e=>e.activeProjectId),[f,v]=(0,s.useState)(""),[p,M]=(0,s.useState)(null),[g,j]=(0,s.useState)(!1),y=(0,s.useMemo)(()=>{let e=null==t?void 0:t.entries;return Array.isArray(e)?e:e&&"object"==typeof e?Object.values(e):[]},[t]),x=(0,s.useMemo)(()=>{if(!f)return y;let e=f.toLowerCase();return y.filter(t=>{var n;return t.filePath.toLowerCase().includes(e)||(null!=(n=t.description)?n:"").toLowerCase().includes(e)})},[y,f]),w=y.find(e=>{var t;return e.filePath===(null!=p?p:null==(t=x[0])?void 0:t.filePath)});async function S(){j(!0);try{await (0,d.hD)(null!=n?n:void 0)}finally{j(!1)}}return(0,a.jsxs)("div",{className:"page",children:[(0,a.jsxs)("div",{className:"page-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"page-title",children:"File index"}),(0,a.jsxs)("p",{className:"page-sub",children:[y.length," files indexed \xb7 last rescan"," ",(null==t||null==(e=t.header)?void 0:e.lastScanTimestamp)?(0,h.r6)(t.header.lastScanTimestamp):"—"]})]}),(0,a.jsx)("div",{className:"page-actions",children:(0,a.jsx)(c.t,{icon:"refresh",onClick:S,disabled:g,children:g?"Rescanning…":"Rescan"})})]}),(0,a.jsxs)("div",{className:"grid",style:{gridTemplateColumns:"1fr 360px",gap:14},children:[(0,a.jsx)(l.Z,{title:(0,a.jsxs)("div",{className:"row",style:{width:"100%"},children:[(0,a.jsx)("span",{children:"All files"}),(0,a.jsxs)("div",{className:"row",style:{marginLeft:12,flex:1,maxWidth:300},children:[(0,a.jsx)(o.I,{name:"search",size:12,className:"muted"}),(0,a.jsx)("input",{value:f,onChange:e=>v(e.target.value),placeholder:"Filter by path or description…","aria-label":"Filter files",style:{flex:1,background:"transparent",border:0,color:"var(--fg-0)",fontSize:11.5,outline:"none",fontFamily:"var(--font-mono), monospace"}})]})]}),flush:!0,children:0===x.length?(0,a.jsx)("div",{className:"empty",children:(0,a.jsx)("h4",{children:"No files match"})}):(0,a.jsx)("div",{style:{maxHeight:560,overflow:"auto"},children:(0,a.jsxs)("table",{className:"tbl",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Path"}),(0,a.jsx)("th",{children:"Description"}),(0,a.jsx)("th",{className:"right",children:"Tokens"}),(0,a.jsx)("th",{className:"right",children:"Seen"}),(0,a.jsx)("th",{children:"State"})]})}),(0,a.jsx)("tbody",{children:x.map(e=>{var t,n;let s=u(e.lastIndexed),i=(null!=p?p:null==(t=x[0])?void 0:t.filePath)===e.filePath;return(0,a.jsxs)("tr",{onClick:()=>M(e.filePath),style:{cursor:"pointer",background:i?"var(--bg-2)":void 0},children:[(0,a.jsx)("td",{className:"mono",style:{fontSize:11},children:e.filePath}),(0,a.jsx)("td",{className:"muted",style:{maxWidth:260,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.description||"—"}),(0,a.jsx)("td",{className:"right num muted",children:(n=e.estimatedTokens)>=1e3?"".concat((n/1e3).toFixed(1),"k tok"):"".concat(n," tok")}),(0,a.jsx)("td",{className:"right num muted",children:function(e){let t=new Date(e).getTime();if(!t)return"—";let n=Date.now()-t,a=n/36e5;return a<1?"".concat(Math.round(n/6e4),"m"):a<24?"".concat(Math.round(a),"h"):"".concat(Math.round(a/24),"d")}(e.lastIndexed)}),(0,a.jsx)("td",{children:(0,a.jsx)(r.v,{tone:m(s),children:s})})]},e.filePath)})})]})})}),(0,a.jsx)(l.Z,{title:"File details",sub:w?u(w.lastIndexed):"—",children:w?(0,a.jsxs)("div",{className:"vstack",style:{gap:10},children:[(0,a.jsx)("div",{className:"mono",style:{fontSize:12,color:"var(--fg-0)",wordBreak:"break-all"},children:w.filePath}),(0,a.jsxs)("div",{className:"inset",children:[(0,a.jsx)("div",{className:"c",children:"// description"}),w.description||"no description"]}),(0,a.jsxs)("div",{className:"grid g-2",style:{gap:8},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"muted",style:{fontSize:10},children:"TOKENS"}),(0,a.jsx)("div",{className:"mono strong",children:(0,h.aT)(w.estimatedTokens)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"muted",style:{fontSize:10},children:"LAST INDEXED"}),(0,a.jsx)("div",{className:"mono strong",children:(0,h.r6)(w.lastIndexed)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"muted",style:{fontSize:10},children:"LAST MODIFIED"}),(0,a.jsx)("div",{className:"mono strong",children:(0,h.r6)(w.lastModified)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"muted",style:{fontSize:10},children:"STATE"}),(0,a.jsx)(r.v,{tone:m(u(w.lastIndexed)),children:u(w.lastIndexed)})]})]})]}):(0,a.jsx)("div",{className:"empty",children:(0,a.jsx)("div",{children:"Select a file to see details"})})})]})]})}function v(){return(0,a.jsx)(f,{})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=3512)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[171],{1617:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(5155),r=s(3928),n=s(3209),i=s(7812),l=s(8122),d=s(7e3),o=s(814);let c=(0,o.A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),u=(0,o.A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function g(){let e=(0,r.f)(e=>e.wasteFlags);if(!(0,r.f)(e=>e.ledger))return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(l.E,{className:"h-8 w-48"}),(0,a.jsx)(l.E,{className:"h-32"})]});let t=e.reduce((e,t)=>e+t.estimatedTokensWasted,0);return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(c,{className:"h-4 w-4 text-muted-foreground"}),(0,a.jsx)("span",{className:"text-muted-foreground",children:"Active Flags:"}),(0,a.jsx)("span",{className:"font-medium",children:e.length})]}),t>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-muted-foreground",children:"Est. Tokens Wasted:"})," ",(0,a.jsx)("span",{className:"font-medium text-destructive",children:(0,d.aT)(t)})]})]}),0===e.length?(0,a.jsx)(n.Zp,{children:(0,a.jsx)(n.Wu,{className:"py-8",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(c,{className:"h-8 w-8 text-muted-foreground mx-auto mb-2"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No waste patterns detected. Run waste detection to analyze token usage."})]})})}):(0,a.jsx)("div",{className:"space-y-3",children:e.map((e,t)=>(0,a.jsxs)(n.Zp,{children:[(0,a.jsx)(n.aR,{className:"pb-2",children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)(n.ZB,{className:"text-sm font-medium flex items-center gap-2",children:[(0,a.jsx)(u,{className:"h-4 w-4 text-yellow-500"}),function(e){switch(e){case"repeated-reads":return"Repeated Reads";case"missed-index-opportunity":return"Missed Index";case"action-log-bloat":return"Log Bloat";case"learning-memory-staleness":return"Stale Memory";case"index-miss-rate":return"High Miss Rate";default:return e}}(e.pattern)]}),(0,a.jsxs)(i.E,{variant:"destructive",className:"text-[10px]",children:["~",(0,d.aT)(e.estimatedTokensWasted)," wasted"]})]})}),(0,a.jsxs)(n.Wu,{children:[(0,a.jsx)("p",{className:"text-sm",children:e.description}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:e.suggestion})]})]},t))})]})}function m(){return(0,a.jsx)(g,{})}},3209:(e,t,s)=>{"use strict";s.d(t,{Wu:()=>d,ZB:()=>l,Zp:()=>n,aR:()=>i});var a=s(5155);s(2115);var r=s(5016);function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",t),...s})}function i(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...s})}},3928:(e,t,s)=>{"use strict";s.d(t,{f:()=>a});let a=(0,s(5959).v)(e=>({connected:!1,projects:[],activeProjectId:null,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[],config:null,sync:null,channel:null,wiki:null,wikiNote:null,setConnected:t=>e({connected:t}),setProjects:(t,s)=>e({projects:t,activeProjectId:s}),setActiveProject:t=>e({activeProjectId:t,overview:null,ledger:null,compression:null,fileIndex:null,tasks:[],taskDefinitions:[],deadLetters:[],health:null,learningMemory:null,actionLog:[],bugs:[],wasteFlags:[],designImages:[]}),setOverview:t=>e({overview:t}),setLedger:t=>{var s;return e({ledger:t,wasteFlags:null!=(s=t.wasteFlags)?s:[]})},setCompression:t=>e({compression:t}),setFileIndex:t=>e({fileIndex:t}),setScheduler:(t,s,a)=>e({tasks:t,taskDefinitions:s,deadLetters:a}),setHealth:t=>e({health:t}),setLearningMemory:t=>e({learningMemory:t}),setActionLog:t=>e({actionLog:t}),setBugs:t=>e({bugs:t}),setWasteFlags:t=>e({wasteFlags:t}),setDesignImages:t=>e({designImages:t}),setConfig:t=>e({config:t}),setSync:t=>e({sync:t}),setChannel:t=>e({channel:t}),setWiki:t=>e({wiki:t}),setWikiNote:t=>e({wikiNote:t})}))},5016:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(2821),r=s(5889);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},7e3:(e,t,s)=>{"use strict";function a(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function r(e){if(!e||e<=0)return"—";let t=Math.floor(e/1e3),s=Math.floor(t/60),a=Math.floor(s/60);return a>0?a+"h "+s%60+"m":s>0?s+"m "+t%60+"s":t+"s"}function n(e){if(!e)return"—";try{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}s.d(t,{Y0:()=>r,aT:()=>a,r6:()=>n})},7812:(e,t,s)=>{"use strict";s.d(t,{E:()=>d});var a=s(5155);s(2115);var r=s(3101),n=s(2467),i=s(5016);let l=(0,r.F)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:s="default",asChild:r=!1,...d}=e,o=r?n.bL:"span";return(0,a.jsx)(o,{"data-slot":"badge","data-variant":s,className:(0,i.cn)(l({variant:s}),t),...d})}},8022:(e,t,s)=>{Promise.resolve().then(s.bind(s,1617))},8122:(e,t,s)=>{"use strict";s.d(t,{E:()=>n});var a=s(5155),r=s(5016);function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("animate-pulse rounded-md bg-accent",t),...s})}}},e=>{e.O(0,[738,441,255,358],()=>e(e.s=8022)),_N_E=e.O()}]);