claude-code-workflow 7.2.6 → 7.2.7

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 (206) hide show
  1. package/ccw/dist/core/routes/codexlens/config-handlers.d.ts.map +1 -1
  2. package/ccw/dist/core/routes/codexlens/config-handlers.js +4 -0
  3. package/ccw/dist/core/routes/codexlens/config-handlers.js.map +1 -1
  4. package/ccw/dist/mcp-server/index.js +85 -8
  5. package/ccw/dist/mcp-server/index.js.map +1 -1
  6. package/ccw/dist/tools/smart-search.d.ts +72 -1
  7. package/ccw/dist/tools/smart-search.d.ts.map +1 -1
  8. package/ccw/dist/tools/smart-search.js +726 -117
  9. package/ccw/dist/tools/smart-search.js.map +1 -1
  10. package/ccw/frontend/dist/assets/{AlertDialog-BMFUcfv_.js → AlertDialog-CSZq4WHZ.js} +2 -2
  11. package/ccw/frontend/dist/assets/{AlertDialog-BMFUcfv_.js.map → AlertDialog-CSZq4WHZ.js.map} +1 -1
  12. package/ccw/frontend/dist/assets/{AnalysisPage-Bxa333tD.js → AnalysisPage-DVDvLHqI.js} +2 -2
  13. package/ccw/frontend/dist/assets/{AnalysisPage-Bxa333tD.js.map → AnalysisPage-DVDvLHqI.js.map} +1 -1
  14. package/ccw/frontend/dist/assets/{ApiSettingsPage-BFVU-wcR.js → ApiSettingsPage-D69j8mI6.js} +2 -2
  15. package/ccw/frontend/dist/assets/{ApiSettingsPage-BFVU-wcR.js.map → ApiSettingsPage-D69j8mI6.js.map} +1 -1
  16. package/ccw/frontend/dist/assets/{CliModeToggle-MDoFAJPL.js → CliModeToggle-fF9xHeGR.js} +2 -2
  17. package/ccw/frontend/dist/assets/{CliModeToggle-MDoFAJPL.js.map → CliModeToggle-fF9xHeGR.js.map} +1 -1
  18. package/ccw/frontend/dist/assets/{CliSessionSharePage-DkRmLiNN.js → CliSessionSharePage-Ce8tOQNx.js} +2 -2
  19. package/ccw/frontend/dist/assets/{CliSessionSharePage-DkRmLiNN.js.map → CliSessionSharePage-Ce8tOQNx.js.map} +1 -1
  20. package/ccw/frontend/dist/assets/{CliViewerPage-DN8jWddy.js → CliViewerPage-Bsp1zmfD.js} +2 -2
  21. package/ccw/frontend/dist/assets/{CliViewerPage-DN8jWddy.js.map → CliViewerPage-Bsp1zmfD.js.map} +1 -1
  22. package/ccw/frontend/dist/assets/{CodexLensManagerPage-Du_VAJtC.js → CodexLensManagerPage-DUMzbrr9.js} +9 -9
  23. package/ccw/frontend/dist/assets/CodexLensManagerPage-DUMzbrr9.js.map +1 -0
  24. package/ccw/frontend/dist/assets/{Collapsible-CF5bSyzt.js → Collapsible-I5pixbHb.js} +2 -2
  25. package/ccw/frontend/dist/assets/{Collapsible-CF5bSyzt.js.map → Collapsible-I5pixbHb.js.map} +1 -1
  26. package/ccw/frontend/dist/assets/{CommandsManagerPage-Bm_P9I76.js → CommandsManagerPage-BH2xukdx.js} +2 -2
  27. package/ccw/frontend/dist/assets/{CommandsManagerPage-Bm_P9I76.js.map → CommandsManagerPage-BH2xukdx.js.map} +1 -1
  28. package/ccw/frontend/dist/assets/{DeepWikiPage-2YIlfWhz.js → DeepWikiPage-D41ccWzY.js} +2 -2
  29. package/ccw/frontend/dist/assets/{DeepWikiPage-2YIlfWhz.js.map → DeepWikiPage-D41ccWzY.js.map} +1 -1
  30. package/ccw/frontend/dist/assets/{EndpointsPage-CMVNz5PY.js → EndpointsPage-5a8jfEWN.js} +2 -2
  31. package/ccw/frontend/dist/assets/{EndpointsPage-CMVNz5PY.js.map → EndpointsPage-5a8jfEWN.js.map} +1 -1
  32. package/ccw/frontend/dist/assets/{ExplorerPage-C-KFz8YU.js → ExplorerPage-YCqIOu1v.js} +2 -2
  33. package/ccw/frontend/dist/assets/{ExplorerPage-C-KFz8YU.js.map → ExplorerPage-YCqIOu1v.js.map} +1 -1
  34. package/ccw/frontend/dist/assets/{FixSessionPage-CdKND69l.js → FixSessionPage-wK1s4kbo.js} +2 -2
  35. package/ccw/frontend/dist/assets/{FixSessionPage-CdKND69l.js.map → FixSessionPage-wK1s4kbo.js.map} +1 -1
  36. package/ccw/frontend/dist/assets/{FloatingFileBrowser-Bf4iqOSd.js → FloatingFileBrowser-B1U6uk_5.js} +2 -2
  37. package/ccw/frontend/dist/assets/{FloatingFileBrowser-Bf4iqOSd.js.map → FloatingFileBrowser-B1U6uk_5.js.map} +1 -1
  38. package/ccw/frontend/dist/assets/{FloatingPanel-CJbvABPb.js → FloatingPanel-D51p5jNy.js} +2 -2
  39. package/ccw/frontend/dist/assets/{FloatingPanel-CJbvABPb.js.map → FloatingPanel-D51p5jNy.js.map} +1 -1
  40. package/ccw/frontend/dist/assets/{GraphExplorerPage-DPoozRTR.js → GraphExplorerPage-DpIWrpWH.js} +2 -2
  41. package/ccw/frontend/dist/assets/{GraphExplorerPage-DPoozRTR.js.map → GraphExplorerPage-DpIWrpWH.js.map} +1 -1
  42. package/ccw/frontend/dist/assets/{HistoryPage-DOMa9gJX.js → HistoryPage-C09lyJGN.js} +2 -2
  43. package/ccw/frontend/dist/assets/{HistoryPage-DOMa9gJX.js.map → HistoryPage-C09lyJGN.js.map} +1 -1
  44. package/ccw/frontend/dist/assets/{HookManagerPage-Cfn2UEyy.js → HookManagerPage-CFBe8F_G.js} +2 -2
  45. package/ccw/frontend/dist/assets/{HookManagerPage-Cfn2UEyy.js.map → HookManagerPage-CFBe8F_G.js.map} +1 -1
  46. package/ccw/frontend/dist/assets/{InstallationsPage-qngOxLvm.js → InstallationsPage-qt7NxnsB.js} +2 -2
  47. package/ccw/frontend/dist/assets/{InstallationsPage-qngOxLvm.js.map → InstallationsPage-qt7NxnsB.js.map} +1 -1
  48. package/ccw/frontend/dist/assets/{IssueHubPage-Cvf7tH8p.js → IssueHubPage-CHol1-Ap.js} +2 -2
  49. package/ccw/frontend/dist/assets/{IssueHubPage-Cvf7tH8p.js.map → IssueHubPage-CHol1-Ap.js.map} +1 -1
  50. package/ccw/frontend/dist/assets/{LiteTasksPage-D20smVCY.js → LiteTasksPage-jH00SLnZ.js} +2 -2
  51. package/ccw/frontend/dist/assets/{LiteTasksPage-D20smVCY.js.map → LiteTasksPage-jH00SLnZ.js.map} +1 -1
  52. package/ccw/frontend/dist/assets/{McpManagerPage-Bld27yu4.js → McpManagerPage-BS-HgeQJ.js} +11 -11
  53. package/ccw/frontend/dist/assets/McpManagerPage-BS-HgeQJ.js.map +1 -0
  54. package/ccw/frontend/dist/assets/{MemoryPage-DmknNdBh.js → MemoryPage-1UahrmRX.js} +2 -2
  55. package/ccw/frontend/dist/assets/{MemoryPage-DmknNdBh.js.map → MemoryPage-1UahrmRX.js.map} +1 -1
  56. package/ccw/frontend/dist/assets/{NotFoundPage-DdwPN1xU.js → NotFoundPage-5FVm_IkS.js} +2 -2
  57. package/ccw/frontend/dist/assets/{NotFoundPage-DdwPN1xU.js.map → NotFoundPage-5FVm_IkS.js.map} +1 -1
  58. package/ccw/frontend/dist/assets/{OrchestratorPage-CgDdmvBg.js → OrchestratorPage-ThBG24Gg.js} +2 -2
  59. package/ccw/frontend/dist/assets/{OrchestratorPage-CgDdmvBg.js.map → OrchestratorPage-ThBG24Gg.js.map} +1 -1
  60. package/ccw/frontend/dist/assets/{ProjectOverviewPage-9Ze9quxh.js → ProjectOverviewPage-CrmW0IxI.js} +2 -2
  61. package/ccw/frontend/dist/assets/{ProjectOverviewPage-9Ze9quxh.js.map → ProjectOverviewPage-CrmW0IxI.js.map} +1 -1
  62. package/ccw/frontend/dist/assets/{PromptHistoryPage-YRkBppOx.js → PromptHistoryPage-1cCGwS3s.js} +2 -2
  63. package/ccw/frontend/dist/assets/{PromptHistoryPage-YRkBppOx.js.map → PromptHistoryPage-1cCGwS3s.js.map} +1 -1
  64. package/ccw/frontend/dist/assets/{ReviewSessionPage-DSaeHw83.js → ReviewSessionPage-DxiEc9HK.js} +2 -2
  65. package/ccw/frontend/dist/assets/{ReviewSessionPage-DSaeHw83.js.map → ReviewSessionPage-DxiEc9HK.js.map} +1 -1
  66. package/ccw/frontend/dist/assets/{RulesManagerPage-BpGwS_jB.js → RulesManagerPage-BpplliZF.js} +2 -2
  67. package/ccw/frontend/dist/assets/{RulesManagerPage-BpGwS_jB.js.map → RulesManagerPage-BpplliZF.js.map} +1 -1
  68. package/ccw/frontend/dist/assets/{SessionDetailPage-B_YHME7k.js → SessionDetailPage-crDIiysh.js} +2 -2
  69. package/ccw/frontend/dist/assets/{SessionDetailPage-B_YHME7k.js.map → SessionDetailPage-crDIiysh.js.map} +1 -1
  70. package/ccw/frontend/dist/assets/{SessionsPage-bW6kEEib.js → SessionsPage-DThweYY8.js} +2 -2
  71. package/ccw/frontend/dist/assets/{SessionsPage-bW6kEEib.js.map → SessionsPage-DThweYY8.js.map} +1 -1
  72. package/ccw/frontend/dist/assets/{SettingsPage-CSwUd2Bw.js → SettingsPage-OCdOz5-z.js} +4 -4
  73. package/ccw/frontend/dist/assets/{SettingsPage-CSwUd2Bw.js.map → SettingsPage-OCdOz5-z.js.map} +1 -1
  74. package/ccw/frontend/dist/assets/{SkillsManagerPage-CyqKvFUi.js → SkillsManagerPage-BJd3bK1G.js} +2 -2
  75. package/ccw/frontend/dist/assets/{SkillsManagerPage-CyqKvFUi.js.map → SkillsManagerPage-BJd3bK1G.js.map} +1 -1
  76. package/ccw/frontend/dist/assets/{SpecsSettingsPage-DHqQNW_y.js → SpecsSettingsPage-BAWL2cpO.js} +2 -2
  77. package/ccw/frontend/dist/assets/{SpecsSettingsPage-DHqQNW_y.js.map → SpecsSettingsPage-BAWL2cpO.js.map} +1 -1
  78. package/ccw/frontend/dist/assets/{Switch-s_-xzEWF.js → Switch-w0I3JCcC.js} +2 -2
  79. package/ccw/frontend/dist/assets/{Switch-s_-xzEWF.js.map → Switch-w0I3JCcC.js.map} +1 -1
  80. package/ccw/frontend/dist/assets/{TabsNavigation-CU50UxOb.js → TabsNavigation-jhUge9YV.js} +2 -2
  81. package/ccw/frontend/dist/assets/{TabsNavigation-CU50UxOb.js.map → TabsNavigation-jhUge9YV.js.map} +1 -1
  82. package/ccw/frontend/dist/assets/{TaskDrawer-128XISsA.js → TaskDrawer-APWpZulm.js} +2 -2
  83. package/ccw/frontend/dist/assets/{TaskDrawer-128XISsA.js.map → TaskDrawer-APWpZulm.js.map} +1 -1
  84. package/ccw/frontend/dist/assets/{TeamPage-Bg_KII8B.js → TeamPage-8OnLsAfJ.js} +2 -2
  85. package/ccw/frontend/dist/assets/{TeamPage-Bg_KII8B.js.map → TeamPage-8OnLsAfJ.js.map} +1 -1
  86. package/ccw/frontend/dist/assets/{TerminalDashboardPage-CQ9K2zwB.js → TerminalDashboardPage-Be1hcN4p.js} +2 -2
  87. package/ccw/frontend/dist/assets/{TerminalDashboardPage-CQ9K2zwB.js.map → TerminalDashboardPage-Be1hcN4p.js.map} +1 -1
  88. package/ccw/frontend/dist/assets/{archive--nR2vYUk.js → archive-Bo1tC9yo.js} +2 -2
  89. package/ccw/frontend/dist/assets/{archive--nR2vYUk.js.map → archive-Bo1tC9yo.js.map} +1 -1
  90. package/ccw/frontend/dist/assets/{archive-restore-CZ7graO0.js → archive-restore-DYx41yLJ.js} +2 -2
  91. package/ccw/frontend/dist/assets/{archive-restore-CZ7graO0.js.map → archive-restore-DYx41yLJ.js.map} +1 -1
  92. package/ccw/frontend/dist/assets/{arrow-right-ChKhpVhq.js → arrow-right-C6pOqWF1.js} +2 -2
  93. package/ccw/frontend/dist/assets/{arrow-right-ChKhpVhq.js.map → arrow-right-C6pOqWF1.js.map} +1 -1
  94. package/ccw/frontend/dist/assets/{bookmark-plus-X-JcgObI.js → bookmark-plus-4Qpa6hMJ.js} +2 -2
  95. package/ccw/frontend/dist/assets/{bookmark-plus-X-JcgObI.js.map → bookmark-plus-4Qpa6hMJ.js.map} +1 -1
  96. package/ccw/frontend/dist/assets/{bot-C3uo7Fkg.js → bot-HXJTmx8r.js} +2 -2
  97. package/ccw/frontend/dist/assets/{bot-C3uo7Fkg.js.map → bot-HXJTmx8r.js.map} +1 -1
  98. package/ccw/frontend/dist/assets/{braces-5wZupwrA.js → braces-Dj2IdY7I.js} +2 -2
  99. package/ccw/frontend/dist/assets/{braces-5wZupwrA.js.map → braces-Dj2IdY7I.js.map} +1 -1
  100. package/ccw/frontend/dist/assets/{circle-stop-DZ5hLKjQ.js → circle-stop-M29TJKHc.js} +2 -2
  101. package/ccw/frontend/dist/assets/{circle-stop-DZ5hLKjQ.js.map → circle-stop-M29TJKHc.js.map} +1 -1
  102. package/ccw/frontend/dist/assets/{cpu-Dc8IS79i.js → cpu-DX15mzMT.js} +2 -2
  103. package/ccw/frontend/dist/assets/{cpu-Dc8IS79i.js.map → cpu-DX15mzMT.js.map} +1 -1
  104. package/ccw/frontend/dist/assets/{ellipsis-vertical-B4pqbrsR.js → ellipsis-vertical-Fs6bysWx.js} +2 -2
  105. package/ccw/frontend/dist/assets/{ellipsis-vertical-B4pqbrsR.js.map → ellipsis-vertical-Fs6bysWx.js.map} +1 -1
  106. package/ccw/frontend/dist/assets/{eye-BwniwXnu.js → eye-D6BRlJ1r.js} +2 -2
  107. package/ccw/frontend/dist/assets/{eye-BwniwXnu.js.map → eye-D6BRlJ1r.js.map} +1 -1
  108. package/ccw/frontend/dist/assets/{eye-off-BWntEdln.js → eye-off-DjbIj5iN.js} +2 -2
  109. package/ccw/frontend/dist/assets/{eye-off-BWntEdln.js.map → eye-off-DjbIj5iN.js.map} +1 -1
  110. package/ccw/frontend/dist/assets/{file-json-BDcmkaVn.js → file-json-kg4Lid-H.js} +2 -2
  111. package/ccw/frontend/dist/assets/{file-json-BDcmkaVn.js.map → file-json-kg4Lid-H.js.map} +1 -1
  112. package/ccw/frontend/dist/assets/{file-text-DsqI3R_g.js → file-text-BMy5pXNV.js} +2 -2
  113. package/ccw/frontend/dist/assets/{file-text-DsqI3R_g.js.map → file-text-BMy5pXNV.js.map} +1 -1
  114. package/ccw/frontend/dist/assets/{filter-CQMcD8RT.js → filter-BTN-lUUb.js} +2 -2
  115. package/ccw/frontend/dist/assets/{filter-CQMcD8RT.js.map → filter-BTN-lUUb.js.map} +1 -1
  116. package/ccw/frontend/dist/assets/{folder-jX77-MUi.js → folder-ChYtty7V.js} +2 -2
  117. package/ccw/frontend/dist/assets/{folder-jX77-MUi.js.map → folder-ChYtty7V.js.map} +1 -1
  118. package/ccw/frontend/dist/assets/{gauge-yQjRXM3o.js → gauge-C0VJbjRb.js} +2 -2
  119. package/ccw/frontend/dist/assets/{gauge-yQjRXM3o.js.map → gauge-C0VJbjRb.js.map} +1 -1
  120. package/ccw/frontend/dist/assets/{globe-BecpCHYI.js → globe-DbNfDXnv.js} +2 -2
  121. package/ccw/frontend/dist/assets/{globe-BecpCHYI.js.map → globe-DbNfDXnv.js.map} +1 -1
  122. package/ccw/frontend/dist/assets/{grid-3x3-BrvzDFqU.js → grid-3x3-xWcpBNxo.js} +2 -2
  123. package/ccw/frontend/dist/assets/{grid-3x3-BrvzDFqU.js.map → grid-3x3-xWcpBNxo.js.map} +1 -1
  124. package/ccw/frontend/dist/assets/{hard-drive-B0cynodE.js → hard-drive-BTACzgUO.js} +2 -2
  125. package/ccw/frontend/dist/assets/{hard-drive-B0cynodE.js.map → hard-drive-BTACzgUO.js.map} +1 -1
  126. package/ccw/frontend/dist/assets/{hash-xOrTLxBg.js → hash-B0dYlmyB.js} +2 -2
  127. package/ccw/frontend/dist/assets/{hash-xOrTLxBg.js.map → hash-B0dYlmyB.js.map} +1 -1
  128. package/ccw/frontend/dist/assets/{history-BzXwj8RL.js → history-CRRLu6ck.js} +2 -2
  129. package/ccw/frontend/dist/assets/{history-BzXwj8RL.js.map → history-CRRLu6ck.js.map} +1 -1
  130. package/ccw/frontend/dist/assets/{index-BNZGm_Ur.js → index-BJIIo0B3.js} +2 -2
  131. package/ccw/frontend/dist/assets/{index-BNZGm_Ur.js.map → index-BJIIo0B3.js.map} +1 -1
  132. package/ccw/frontend/dist/assets/{index-osmL8__2.js → index-BP-D3Wv6.js} +2 -2
  133. package/ccw/frontend/dist/assets/{index-osmL8__2.js.map → index-BP-D3Wv6.js.map} +1 -1
  134. package/ccw/frontend/dist/assets/{index-DflI9CwB.js → index-B_QzEioU.js} +2 -2
  135. package/ccw/frontend/dist/assets/{index-DflI9CwB.js.map → index-B_QzEioU.js.map} +1 -1
  136. package/ccw/frontend/dist/assets/{index-B9aFbBPN.js → index-BpoRYgiq.js} +2 -2
  137. package/ccw/frontend/dist/assets/{index-B9aFbBPN.js.map → index-BpoRYgiq.js.map} +1 -1
  138. package/ccw/frontend/dist/assets/{index-Dy0tUf1F.js → index-CeESlrZb.js} +8 -8
  139. package/ccw/frontend/dist/assets/{index-Dy0tUf1F.js.map → index-CeESlrZb.js.map} +1 -1
  140. package/ccw/frontend/dist/assets/{index-D3uMibtZ.js → index-DzTbMyaS.js} +4 -4
  141. package/ccw/frontend/dist/assets/{index-D3uMibtZ.js.map → index-DzTbMyaS.js.map} +1 -1
  142. package/ccw/frontend/dist/assets/{layout-grid-CWFZqQWu.js → layout-grid-ZN26YcTM.js} +2 -2
  143. package/ccw/frontend/dist/assets/{layout-grid-CWFZqQWu.js.map → layout-grid-ZN26YcTM.js.map} +1 -1
  144. package/ccw/frontend/dist/assets/{lightbulb-BRLgsWe3.js → lightbulb-BHrwx9j6.js} +2 -2
  145. package/ccw/frontend/dist/assets/{lightbulb-BRLgsWe3.js.map → lightbulb-BHrwx9j6.js.map} +1 -1
  146. package/ccw/frontend/dist/assets/{link-2-BpKdq14u.js → link-2-zZRu2j4G.js} +2 -2
  147. package/ccw/frontend/dist/assets/{link-2-BpKdq14u.js.map → link-2-zZRu2j4G.js.map} +1 -1
  148. package/ccw/frontend/dist/assets/{link-BxUCReDi.js → link-8lz-HgnZ.js} +2 -2
  149. package/ccw/frontend/dist/assets/{link-BxUCReDi.js.map → link-8lz-HgnZ.js.map} +1 -1
  150. package/ccw/frontend/dist/assets/{list-Ce9EsAg8.js → list-DlablIjt.js} +2 -2
  151. package/ccw/frontend/dist/assets/{list-Ce9EsAg8.js.map → list-DlablIjt.js.map} +1 -1
  152. package/ccw/frontend/dist/assets/{map-pin-CxzQV1hS.js → map-pin-JAsCUplr.js} +2 -2
  153. package/ccw/frontend/dist/assets/{map-pin-CxzQV1hS.js.map → map-pin-JAsCUplr.js.map} +1 -1
  154. package/ccw/frontend/dist/assets/{messages-square-Dyodk79r.js → messages-square-D0iSFb2Y.js} +2 -2
  155. package/ccw/frontend/dist/assets/{messages-square-Dyodk79r.js.map → messages-square-D0iSFb2Y.js.map} +1 -1
  156. package/ccw/frontend/dist/assets/{minimize-2-s0009UK9.js → minimize-2-BJmkU9CE.js} +2 -2
  157. package/ccw/frontend/dist/assets/{minimize-2-s0009UK9.js.map → minimize-2-BJmkU9CE.js.map} +1 -1
  158. package/ccw/frontend/dist/assets/{package-C69biuJL.js → package-DYrbBCxk.js} +2 -2
  159. package/ccw/frontend/dist/assets/{package-C69biuJL.js.map → package-DYrbBCxk.js.map} +1 -1
  160. package/ccw/frontend/dist/assets/{plug-DERl-wQd.js → plug-VG7-23M-.js} +2 -2
  161. package/ccw/frontend/dist/assets/{plug-DERl-wQd.js.map → plug-VG7-23M-.js.map} +1 -1
  162. package/ccw/frontend/dist/assets/{power-CdvaDgTh.js → power-zPFYNx7u.js} +2 -2
  163. package/ccw/frontend/dist/assets/{power-CdvaDgTh.js.map → power-zPFYNx7u.js.map} +1 -1
  164. package/ccw/frontend/dist/assets/{save-C_Uot2e4.js → save-D4XQY9i9.js} +2 -2
  165. package/ccw/frontend/dist/assets/{save-C_Uot2e4.js.map → save-D4XQY9i9.js.map} +1 -1
  166. package/ccw/frontend/dist/assets/{send-R1XtAXeP.js → send-ClSnDjj-.js} +2 -2
  167. package/ccw/frontend/dist/assets/{send-R1XtAXeP.js.map → send-ClSnDjj-.js.map} +1 -1
  168. package/ccw/frontend/dist/assets/{square-check-big-Cyqi4INj.js → square-check-big-Bffh_MFc.js} +2 -2
  169. package/ccw/frontend/dist/assets/{square-check-big-Cyqi4INj.js.map → square-check-big-Bffh_MFc.js.map} +1 -1
  170. package/ccw/frontend/dist/assets/{square-pen-BmLNjUUw.js → square-pen-DsOvAvME.js} +2 -2
  171. package/ccw/frontend/dist/assets/{square-pen-BmLNjUUw.js.map → square-pen-DsOvAvME.js.map} +1 -1
  172. package/ccw/frontend/dist/assets/{star-CakKtIYu.js → star-TLJjvoy2.js} +2 -2
  173. package/ccw/frontend/dist/assets/{star-CakKtIYu.js.map → star-TLJjvoy2.js.map} +1 -1
  174. package/ccw/frontend/dist/assets/{style-DdNmehyz.js → style-BXKXgpOY.js} +2 -2
  175. package/ccw/frontend/dist/assets/{style-DdNmehyz.js.map → style-BXKXgpOY.js.map} +1 -1
  176. package/ccw/frontend/dist/assets/{target-CUvfwM3S.js → target-FDuAB6SF.js} +2 -2
  177. package/ccw/frontend/dist/assets/{target-CUvfwM3S.js.map → target-FDuAB6SF.js.map} +1 -1
  178. package/ccw/frontend/dist/assets/{test-tube-BVwrOGiZ.js → test-tube-B9vj-Im8.js} +2 -2
  179. package/ccw/frontend/dist/assets/{test-tube-BVwrOGiZ.js.map → test-tube-B9vj-Im8.js.map} +1 -1
  180. package/ccw/frontend/dist/assets/{upload-CY1NwcDw.js → upload-CHgTrVN5.js} +2 -2
  181. package/ccw/frontend/dist/assets/{upload-CY1NwcDw.js.map → upload-CHgTrVN5.js.map} +1 -1
  182. package/ccw/frontend/dist/assets/{useApiSettings-9JuzUfPE.js → useApiSettings-XsHrqf-L.js} +2 -2
  183. package/ccw/frontend/dist/assets/{useApiSettings-9JuzUfPE.js.map → useApiSettings-XsHrqf-L.js.map} +1 -1
  184. package/ccw/frontend/dist/assets/{useCli-Bb7Zo-OI.js → useCli-DOlWtux5.js} +2 -2
  185. package/ccw/frontend/dist/assets/{useCli-Bb7Zo-OI.js.map → useCli-DOlWtux5.js.map} +1 -1
  186. package/ccw/frontend/dist/assets/{useCommands-BUu-hUYI.js → useCommands-DazCajiX.js} +2 -2
  187. package/ccw/frontend/dist/assets/{useCommands-BUu-hUYI.js.map → useCommands-DazCajiX.js.map} +1 -1
  188. package/ccw/frontend/dist/assets/{useDebounce-CptXgLBn.js → useDebounce-Cah-bua6.js} +2 -2
  189. package/ccw/frontend/dist/assets/{useDebounce-CptXgLBn.js.map → useDebounce-Cah-bua6.js.map} +1 -1
  190. package/ccw/frontend/dist/assets/{useFileExplorer-B7dN8VT1.js → useFileExplorer-B9SCPhhl.js} +2 -2
  191. package/ccw/frontend/dist/assets/{useFileExplorer-B7dN8VT1.js.map → useFileExplorer-B9SCPhhl.js.map} +1 -1
  192. package/ccw/frontend/dist/assets/{useLocale-D6USNXOr.js → useLocale-CmG6pxZe.js} +2 -2
  193. package/ccw/frontend/dist/assets/{useLocale-D6USNXOr.js.map → useLocale-CmG6pxZe.js.map} +1 -1
  194. package/ccw/frontend/dist/assets/{useSkills-r8yfiQ-u.js → useSkills-DvEJ0JOv.js} +3 -3
  195. package/ccw/frontend/dist/assets/{useSkills-r8yfiQ-u.js.map → useSkills-DvEJ0JOv.js.map} +1 -1
  196. package/ccw/frontend/dist/assets/{useSystemSettings-BVWDQLMy.js → useSystemSettings-BDpwSa04.js} +2 -2
  197. package/ccw/frontend/dist/assets/{useSystemSettings-BVWDQLMy.js.map → useSystemSettings-BDpwSa04.js.map} +1 -1
  198. package/ccw/frontend/dist/assets/{wand-sparkles-Zdaej5bR.js → wand-sparkles-T2KGCRiy.js} +2 -2
  199. package/ccw/frontend/dist/assets/{wand-sparkles-Zdaej5bR.js.map → wand-sparkles-T2KGCRiy.js.map} +1 -1
  200. package/ccw/frontend/dist/index.html +1 -1
  201. package/codex-lens/src/codexlens/cli/commands.py +12 -1
  202. package/codex-lens/src/codexlens/config.py +12 -0
  203. package/codex-lens/src/codexlens/env_config.py +1 -0
  204. package/package.json +1 -1
  205. package/ccw/frontend/dist/assets/CodexLensManagerPage-Du_VAJtC.js.map +0 -1
  206. package/ccw/frontend/dist/assets/McpManagerPage-Bld27yu4.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{a9 as X,aa as Z,ab as D,u as $,r as b,j as t,C as y,B as T,e as ee,R as A,c as j,b as de,I as me,N as ue,M as fe,l as te,gJ as he,gK as xe,m as pe,U as ge,cl as _,cm as K,bq as be,bs as ye,Y as Q,a8 as je}from"./index-D3uMibtZ.js";import{T as Ne}from"./TabsNavigation-CU50UxOb.js";import{u as we}from"./useDebounce-CptXgLBn.js";import{F as C}from"./file-text-DsqI3R_g.js";import{H as F}from"./hash-xOrTLxBg.js";import{L as ve}from"./link-2-BpKdq14u.js";const v={all:["deepWiki"],files:e=>[...v.all,"files",e],doc:e=>[...v.all,"doc",e],stats:e=>[...v.all,"stats",e],search:e=>[...v.all,"search",e]},q=300*1e3,P=600*1e3,ke=10*1e3;async function I(e,s=ke){const a=new AbortController,n=setTimeout(()=>a.abort(),s);try{return await fetch(e,{signal:a.signal})}finally{clearTimeout(n)}}async function Se(){const e=await I("/api/deepwiki/files");if(!e.ok)throw new Error(`Failed to fetch files: ${e.statusText}`);return e.json()}async function Ce(e){const s=await I(`/api/deepwiki/doc?path=${encodeURIComponent(e)}`);if(!s.ok){if(s.status===404)return{doc:null,content:"",symbols:[]};throw new Error(`Failed to fetch document: ${s.statusText}`)}return s.json()}async function Fe(){const e=await I("/api/deepwiki/stats");if(!e.ok)throw new Error(`Failed to fetch stats: ${e.statusText}`);return e.json()}async function Me(e,s=50){const a=await I(`/api/deepwiki/search?q=${encodeURIComponent(e)}&limit=${s}`);if(!a.ok)throw new Error(`Failed to search symbols: ${a.statusText}`);return a.json()}function Le(e={}){const{staleTime:s=q,enabled:a=!0}=e,n=X(Z),r=D({queryKey:v.files(n??""),queryFn:Se,staleTime:s,gcTime:P,enabled:a&&!!n,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{files:r.data??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function Te(e,s={}){var l,o,m;const{staleTime:a=q,enabled:n=!0}=s,r=D({queryKey:v.doc(e??""),queryFn:()=>Ce(e),staleTime:a,gcTime:P,enabled:n&&!!e,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{doc:((l=r.data)==null?void 0:l.doc)??null,content:((o=r.data)==null?void 0:o.content)??"",symbols:((m=r.data)==null?void 0:m.symbols)??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function De(e={}){const{staleTime:s=q,enabled:a=!0}=e,n=X(Z),r=D({queryKey:v.stats(n??""),queryFn:Fe,staleTime:s,gcTime:P,enabled:a&&!!n,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{stats:r.data??null,isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function qe(e,s={}){const{limit:a=50,staleTime:n=q,enabled:r=!0}=s,l=D({queryKey:v.search(e),queryFn:()=>Me(e,a),staleTime:n,gcTime:P,enabled:r&&e.length>0,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{symbols:l.data??[],isLoading:l.isLoading,isFetching:l.isFetching,error:l.error,refetch:async()=>{await l.refetch()}}}function Pe(e){const s=e.replace(/\\/g,"/").split("/"),a=s.findIndex(n=>n==="src");return a>=0?s.slice(a).join("/"):s.length>3?".../"+s.slice(-3).join("/"):s.join("/")}function Ie(e){const s=e.split(".");return s.length>1?s[s.length-1].toLowerCase():""}function Oe(e){return{ts:"text-blue-500",tsx:"text-blue-500",js:"text-yellow-500",jsx:"text-yellow-500",py:"text-green-500",go:"text-cyan-500",rs:"text-orange-500",java:"text-red-500",swift:"text-orange-500"}[e]||"text-gray-500"}function Re({files:e,selectedPath:s,onSelectFile:a,isLoading:n=!1,isFetching:r=!1,onRefresh:l}){const{formatMessage:o}=$(),[m,p]=b.useState(""),d=we(m,300),[f,g]=b.useState(!1),c=b.useMemo(()=>{if(!d.trim())return e;const u=d.toLowerCase();return e.filter(N=>N.path.toLowerCase().includes(u))},[e,d]);b.useEffect(()=>{g(m!==d)},[m,d]);const h=b.useMemo(()=>{const u={};for(const N of c){const i=N.path.replace(/\\/g,"/").split("/"),k=i.length>1?i.slice(0,-1).join("/"):"root";u[k]||(u[k]=[]),u[k].push(N)}return u},[c]);return n?t.jsx(y,{className:"p-4",children:t.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(u=>t.jsx("div",{className:"h-12 bg-muted animate-pulse rounded"},u))})}):t.jsxs(y,{className:"flex flex-col h-full",children:[t.jsxs("div",{className:"p-4 border-b border-border",children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[t.jsx(C,{className:"w-4 h-4"}),o({id:"deepwiki.files.title",defaultMessage:"Documented Files"}),t.jsx(T,{variant:"secondary",className:"text-xs",children:e.length})]}),l&&t.jsx(ee,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>l(),disabled:r,children:t.jsx(A,{className:j("w-4 h-4",r&&"animate-spin")})})]}),t.jsxs("div",{className:"relative",children:[t.jsx(de,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),t.jsx(me,{placeholder:o({id:"deepwiki.files.search",defaultMessage:"Search files..."}),value:m,onChange:u=>p(u.target.value),className:"pl-9 h-8 text-sm"}),f&&t.jsx(ue,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 animate-spin text-muted-foreground"})]})]}),t.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:c.length===0?t.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[t.jsx(C,{className:"w-10 h-10 text-muted-foreground/40 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:o(m?{id:"deepwiki.files.noResults",defaultMessage:"No files match your search"}:{id:"deepwiki.files.empty",defaultMessage:"No documented files yet"})})]}):t.jsx("div",{className:"space-y-1",children:Object.entries(h).map(([u,N])=>t.jsx("div",{children:t.jsx("div",{className:"space-y-0.5",children:N.map(i=>{const k=Ie(i.path),O=Oe(k),R=s===i.path;return t.jsxs("button",{onClick:()=>a(i.path),className:j("w-full flex items-center gap-2 px-3 py-2 rounded-md text-left transition-colors","hover:bg-muted/70",R&&"bg-primary/10 border border-primary/30"),children:[t.jsx(C,{className:j("w-4 h-4 flex-shrink-0",O)}),t.jsx("span",{className:"flex-1 text-sm truncate font-mono",title:i.path,children:Pe(i.path)}),t.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.docsGenerated?t.jsx(fe,{className:"w-3.5 h-3.5 text-green-500"}):t.jsx(te,{className:"w-3.5 h-3.5 text-yellow-500"}),i.symbolsCount>0&&t.jsx(T,{variant:"outline",className:"text-xs px-1.5 py-0",children:i.symbolsCount})]})]},i.path)})})},u))})})]})}const S=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],U={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...S,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...S],h2:[["className","sr-only"]],img:[...S,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...S,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...S],table:[...S],ul:[...S,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},w={}.hasOwnProperty;function We(e,s){let a={type:"root",children:[]};const n={schema:s?{...U,...s}:U,stack:[]},r=se(n,e);return r&&(Array.isArray(r)?r.length===1?a=r[0]:a.children=r:a=r),a}function se(e,s){if(s&&typeof s=="object"){const a=s;switch(typeof a.type=="string"?a.type:""){case"comment":return Ee(e,a);case"doctype":return Ae(e,a);case"element":return $e(e,a);case"root":return Be(e,a);case"text":return _e(e,a)}}}function Ee(e,s){if(e.schema.allowComments){const a=typeof s.value=="string"?s.value:"",n=a.indexOf("-->"),l={type:"comment",value:n<0?a:a.slice(0,n)};return M(l,s),l}}function Ae(e,s){if(e.schema.allowDoctypes){const a={type:"doctype"};return M(a,s),a}}function $e(e,s){const a=typeof s.tagName=="string"?s.tagName:"";e.stack.push(a);const n=ae(e,s.children),r=Ke(e,s.properties);e.stack.pop();let l=!1;if(a&&a!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(a))&&(l=!0,e.schema.ancestors&&w.call(e.schema.ancestors,a))){const m=e.schema.ancestors[a];let p=-1;for(l=!1;++p<m.length;)e.stack.includes(m[p])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(a)?n:void 0;const o={type:"element",tagName:a,properties:r,children:n};return M(o,s),o}function Be(e,s){const n={type:"root",children:ae(e,s.children)};return M(n,s),n}function _e(e,s){const n={type:"text",value:typeof s.value=="string"?s.value:""};return M(n,s),n}function ae(e,s){const a=[];if(Array.isArray(s)){const n=s;let r=-1;for(;++r<n.length;){const l=se(e,n[r]);l&&(Array.isArray(l)?a.push(...l):a.push(l))}}return a}function Ke(e,s){const a=e.stack[e.stack.length-1],n=e.schema.attributes,r=e.schema.required,l=n&&w.call(n,a)?n[a]:void 0,o=n&&w.call(n,"*")?n["*"]:void 0,m=s&&typeof s=="object"?s:{},p={};let d;for(d in m)if(w.call(m,d)){const f=m[d];let g=V(e,z(l,d),d,f);g==null&&(g=V(e,z(o,d),d,f)),g!=null&&(p[d]=g)}if(r&&w.call(r,a)){const f=r[a];for(d in f)w.call(f,d)&&!w.call(p,d)&&(p[d]=f[d])}return p}function V(e,s,a,n){return s?Array.isArray(n)?Qe(e,s,a,n):ne(e,s,a,n):void 0}function Qe(e,s,a,n){let r=-1;const l=[];for(;++r<n.length;){const o=ne(e,s,a,n[r]);(typeof o=="number"||typeof o=="string")&&l.push(o)}return l}function ne(e,s,a,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Ue(e,a,n)){if(typeof s=="object"&&s.length>1){let r=!1,l=0;for(;++l<s.length;){const o=s[l];if(o&&typeof o=="object"&&"flags"in o){if(o.test(String(n))){r=!0;break}}else if(o===n){r=!0;break}}if(!r)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(a)?e.schema.clobberPrefix+n:n}}function Ue(e,s,a){const n=e.schema.protocols&&w.call(e.schema.protocols,s)?e.schema.protocols[s]:void 0;if(!n||n.length===0)return!0;const r=String(a),l=r.indexOf(":"),o=r.indexOf("?"),m=r.indexOf("#"),p=r.indexOf("/");if(l<0||p>-1&&l>p||o>-1&&l>o||m>-1&&l>m)return!0;let d=-1;for(;++d<n.length;){const f=n[d];if(l===f.length&&r.slice(0,f.length)===f)return!0}return!1}function M(e,s){const a=he(s);s.data&&(e.data=xe(s.data)),a&&(e.position=a)}function z(e,s){let a,n=-1;if(e)for(;++n<e.length;){const r=e[n],l=typeof r=="string"?r:r[0];if(l===s)return r;l==="data*"&&(a=r)}if(s.length>4&&s.slice(0,4).toLowerCase()==="data")return a}function G(e){return function(s){return We(s,e)}}function H(e){return{function:{symbol:"λ",label:"Function"},async_function:{symbol:"λ",label:"Async Function"},class:{symbol:"◇",label:"Class"},method:{symbol:"◈",label:"Method"},interface:{symbol:"△",label:"Interface"},variable:{symbol:"•",label:"Variable"},constant:{symbol:"⬡",label:"Constant"}}[e]||{symbol:"•",label:"Symbol"}}function J(e){return{function:"text-blue-500",async_function:"text-blue-400",class:"text-purple-500",method:"text-purple-400",interface:"text-teal-500",variable:"text-gray-500",constant:"text-amber-500"}[e]||"text-gray-500"}const Y={h1:({children:e})=>t.jsx("h1",{className:"text-xl font-bold mt-6 mb-3 text-foreground",children:e}),h2:({children:e})=>t.jsx("h2",{className:"text-lg font-semibold mt-5 mb-2 text-foreground",children:e}),h3:({children:e})=>t.jsx("h3",{className:"text-base font-semibold mt-4 mb-2 text-foreground",children:e}),p:({children:e})=>t.jsx("p",{className:"mb-3 leading-relaxed text-foreground/90",children:e}),a:({href:e,children:s})=>t.jsx("a",{href:e,className:"text-primary hover:underline",target:e!=null&&e.startsWith("http")?"_blank":void 0,rel:e!=null&&e.startsWith("http")?"noopener noreferrer":void 0,children:s}),code:({className:e,children:s})=>e?t.jsx("code",{className:j("block bg-muted p-3 rounded-md text-sm font-mono overflow-x-auto",e),children:s}):t.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",children:s}),pre:({children:e})=>t.jsx("pre",{className:"bg-muted p-4 rounded-lg my-4 overflow-x-auto",children:e}),ul:({children:e})=>t.jsx("ul",{className:"list-disc list-inside mb-3 space-y-1",children:e}),ol:({children:e})=>t.jsx("ol",{className:"list-decimal list-inside mb-3 space-y-1",children:e}),blockquote:({children:e})=>t.jsx("blockquote",{className:"border-l-4 border-primary/50 pl-4 my-4 italic text-muted-foreground",children:e}),table:({children:e})=>t.jsx("div",{className:"overflow-x-auto my-4",children:t.jsx("table",{className:"min-w-full border border-border",children:e})}),thead:({children:e})=>t.jsx("thead",{className:"bg-muted",children:e}),th:({children:e})=>t.jsx("th",{className:"border border-border px-3 py-2 text-left font-medium",children:e}),td:({children:e})=>t.jsx("td",{className:"border border-border px-3 py-2",children:e})};function Ve({doc:e,content:s,symbols:a,isLoading:n=!1,error:r=null,filePath:l}){var g;const{formatMessage:o}=$(),[m,p]=b.useState(null),d=b.useCallback((c,h)=>{const u=new URL(window.location.href);l&&u.searchParams.set("file",l),u.hash=h.replace("#",""),navigator.clipboard.writeText(u.toString()).then(()=>{p(c),setTimeout(()=>p(null),2e3)})},[l]),f=b.useMemo(()=>{if(!s)return[];const c=/<!-- deepwiki-symbol-start name="([^"]+)" type="([^"]+)" -->([\s\S]*?)<!-- deepwiki-symbol-end -->/g,h=[];let u;for(;(u=c.exec(s))!==null;)h.push({name:u[1],type:u[2],content:u[3].trim()});return h.length===0&&s.trim()&&h.push({name:"Documentation",type:"document",content:s.trim()}),h},[s]);return n?t.jsx(y,{className:"flex-1 p-6",children:t.jsxs("div",{className:"space-y-4 animate-pulse",children:[t.jsx("div",{className:"h-8 bg-muted rounded w-1/3"}),t.jsx("div",{className:"h-4 bg-muted rounded w-2/3"}),t.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),t.jsx("div",{className:"h-32 bg-muted rounded mt-6"}),t.jsx("div",{className:"h-4 bg-muted rounded w-3/4"}),t.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})}):r?t.jsxs(y,{className:"flex-1 p-6 flex flex-col items-center justify-center text-center",children:[t.jsx(pe,{className:"w-12 h-12 text-destructive/50 mb-4"}),t.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:o({id:"deepwiki.viewer.error.title",defaultMessage:"Error Loading Document"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:r.message})]}):!e&&!s?t.jsxs(y,{className:"flex-1 p-6 flex flex-col items-center justify-center text-center",children:[t.jsx(C,{className:"w-12 h-12 text-muted-foreground/30 mb-4"}),t.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:o({id:"deepwiki.viewer.empty.title",defaultMessage:"Select a File"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:o({id:"deepwiki.viewer.empty.message",defaultMessage:"Choose a file from the list to view its documentation"})})]}):t.jsxs(y,{className:"flex-1 flex flex-col overflow-hidden",children:[t.jsx("div",{className:"p-4 border-b border-border",children:t.jsx("div",{className:"flex items-start justify-between gap-4",children:t.jsxs("div",{children:[t.jsxs("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[t.jsx(C,{className:"w-5 h-5 text-primary"}),t.jsx("span",{className:"font-mono text-sm",title:e==null?void 0:e.path,children:((g=e==null?void 0:e.path)==null?void 0:g.split("/").pop())||"Documentation"})]}),e&&t.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-xs text-muted-foreground",children:[e.generatedAt&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(te,{className:"w-3 h-3"}),new Date(e.generatedAt).toLocaleString()]}),e.llmTool&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(ge,{className:"w-3 h-3"}),e.llmTool]})]})]})})}),t.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[t.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[a.length>0&&t.jsx("div",{className:"mb-6 flex flex-wrap gap-2",children:a.map(c=>{const h=H(c.type);return t.jsxs("a",{href:`#${c.anchor.replace("#","")}`,className:j("inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium","bg-muted/50 hover:bg-muted transition-colors",J(c.type)),"aria-label":`${h.label}: ${c.name}`,children:[t.jsx("span",{"aria-hidden":"true",children:h.symbol}),t.jsx("span",{children:c.name}),t.jsx(T,{variant:"outline",className:"text-[10px] px-1",children:c.type})]},c.name)})}),t.jsxs("div",{className:"space-y-6",children:[f.map((c,h)=>t.jsx("section",{id:c.name.toLowerCase().replace(/\s+/g,"-"),className:"scroll-mt-4",children:t.jsx(_,{remarkPlugins:[K],rehypePlugins:[G],components:Y,children:c.content})},`${c.name}-${h}`)),f.length===0&&s&&t.jsx(_,{remarkPlugins:[K],rehypePlugins:[G],components:Y,children:s})]})]}),a.length>0&&t.jsxs("div",{className:"w-48 border-l border-border p-4 overflow-y-auto hidden lg:block",children:[t.jsxs("h4",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3 flex items-center gap-2",children:[t.jsx(F,{className:"w-3 h-3"}),o({id:"deepwiki.viewer.toc",defaultMessage:"Symbols"})]}),t.jsx("nav",{className:"space-y-1",role:"list","aria-label":"Document symbols",children:a.map(c=>{const h=H(c.type);return t.jsxs("div",{className:"group flex items-center gap-1",children:[t.jsxs("a",{href:`#${c.anchor.replace("#","")}`,className:j("flex-1 text-xs py-1.5 px-2 rounded transition-colors","text-muted-foreground hover:text-foreground hover:bg-muted/50","font-mono"),role:"listitem","aria-label":`${h.label}: ${c.name}`,children:[t.jsx("span",{className:j("mr-1",J(c.type)),"aria-hidden":"true",children:h.symbol}),c.name]}),t.jsx("button",{onClick:()=>d(c.name,c.anchor),className:j("opacity-0 group-hover:opacity-100 p-1 rounded transition-all","hover:bg-muted/50",m===c.name?"text-green-500":"text-muted-foreground hover:text-foreground"),"aria-label":m===c.name?o({id:"deepwiki.viewer.linkCopied",defaultMessage:"Link copied"}):o({id:"deepwiki.viewer.copyLink",defaultMessage:"Copy deep link to {name}"},{name:c.name}),children:m===c.name?t.jsx(be,{className:"w-3 h-3","aria-hidden":"true"}):t.jsx(ve,{className:"w-3 h-3","aria-hidden":"true"})})]},c.name)})})]})]})]})}function L({label:e,value:s,icon:a,color:n}){return t.jsx(y,{className:"p-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:j("p-2 rounded-lg",n),children:t.jsx(a,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-bold text-foreground",children:s}),t.jsx("p",{className:"text-xs text-muted-foreground",children:e})]})]})})}function Ze(){const{formatMessage:e}=$(),[s,a]=ye(),[n,r]=b.useState("documents"),[l,o]=b.useState(""),m=b.useRef(!1),p=s.get("file"),d=window.location.hash.slice(1),[f,g]=b.useState(p),{files:c,isLoading:h,isFetching:u,refetch:N}=Le(),{stats:i,isLoading:k,refetch:O}=De(),{doc:R,content:W,symbols:re,isLoading:E,error:le}=Te(f),{symbols:B,isLoading:ie}=qe(l,{enabled:n==="index"}),oe=b.useCallback(x=>{g(x),a({file:x}),m.current=!1},[a]);b.useEffect(()=>{d&&W&&!E&&!m.current&&(m.current=!0,setTimeout(()=>{const x=document.getElementById(d);x&&x.scrollIntoView({behavior:"smooth",block:"start"})},100))},[d,W,E]);const ce=()=>{N(),O()};return t.jsxs("div",{className:"h-full flex flex-col space-y-4",children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[t.jsxs("div",{children:[t.jsxs("h1",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[t.jsx(Q,{className:"w-6 h-6 text-primary"}),e({id:"deepwiki.title",defaultMessage:"DeepWiki"})]}),t.jsx("p",{className:"text-muted-foreground mt-1",children:e({id:"deepwiki.description",defaultMessage:"Code documentation with deep-linking to source symbols"})})]}),t.jsx("div",{className:"flex gap-2",children:t.jsxs(ee,{variant:"outline",onClick:ce,disabled:u,children:[t.jsx(A,{className:j("w-4 h-4 mr-2",u&&"animate-spin")}),e({id:"common.actions.refresh",defaultMessage:"Refresh"})]})})]}),t.jsx(Ne,{value:n,onValueChange:x=>r(x),tabs:[{value:"documents",label:e({id:"deepwiki.tabs.documents",defaultMessage:"Documents"})},{value:"index",label:e({id:"deepwiki.tabs.index",defaultMessage:"Symbol Index"})},{value:"stats",label:e({id:"deepwiki.tabs.stats",defaultMessage:"Statistics"})}]}),n==="documents"&&t.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[t.jsx("div",{className:"w-80 flex-shrink-0",children:t.jsx(Re,{files:c,selectedPath:f,onSelectFile:oe,isLoading:h,isFetching:u,onRefresh:()=>N()})}),t.jsx(Ve,{doc:R,content:W,symbols:re,isLoading:E,error:le,filePath:f??void 0})]}),n==="index"&&t.jsx("div",{className:"flex-1 overflow-y-auto",children:t.jsxs(y,{className:"p-4 h-full flex flex-col",children:[t.jsx("div",{className:"mb-4",children:t.jsx("input",{type:"text",placeholder:e({id:"deepwiki.index.search",defaultMessage:"Search symbols..."}),value:l,onChange:x=>o(x.target.value),className:"w-full px-4 py-2 rounded-md border border-input bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"})}),ie?t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(A,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):B.length>0?t.jsx("div",{className:"flex-1 overflow-y-auto space-y-2",children:B.map(x=>t.jsxs("button",{onClick:()=>{g(x.sourceFile),r("documents")},className:"w-full p-3 rounded-md border border-border hover:bg-muted/50 transition-colors text-left",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(F,{className:"w-4 h-4 text-primary"}),t.jsx("span",{className:"font-medium text-foreground",children:x.name}),t.jsx(T,{variant:"outline",className:"text-xs",children:x.type})]}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-1 font-mono truncate",children:[x.sourceFile,":",x.lineRange[0],"-",x.lineRange[1]]})]},`${x.name}-${x.sourceFile}`))}):l?t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[t.jsx(F,{className:"w-10 h-10 text-muted-foreground/30 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.index.noResults",defaultMessage:"No symbols found"})})]}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[t.jsx(F,{className:"w-10 h-10 text-muted-foreground/30 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.index.placeholder",defaultMessage:"Enter a search query to find symbols"})})]})]})}),n==="stats"&&t.jsx("div",{className:"flex-1 overflow-y-auto space-y-4",children:k?t.jsx(y,{className:"p-6",children:t.jsxs("div",{className:"space-y-4 animate-pulse",children:[t.jsx("div",{className:"h-20 bg-muted rounded"}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"})]})]})}):t.jsxs(t.Fragment,{children:[t.jsx(y,{className:"p-4",children:t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:j("w-3 h-3 rounded-full",i!=null&&i.available?"bg-green-500":"bg-red-500")}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:i!=null&&i.available?e({id:"deepwiki.stats.available",defaultMessage:"Database Connected"}):e({id:"deepwiki.stats.unavailable",defaultMessage:"Database Not Available"})})]}),(i==null?void 0:i.dbPath)&&t.jsx("code",{className:"text-xs text-muted-foreground bg-muted px-2 py-1 rounded",children:i.dbPath})]})}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[t.jsx(L,{label:e({id:"deepwiki.stats.files",defaultMessage:"Files"}),value:(i==null?void 0:i.files)??0,icon:C,color:"bg-blue-500/10 text-blue-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.symbols",defaultMessage:"Symbols"}),value:(i==null?void 0:i.symbols)??0,icon:F,color:"bg-purple-500/10 text-purple-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.docs",defaultMessage:"Documents"}),value:(i==null?void 0:i.docs)??0,icon:Q,color:"bg-green-500/10 text-green-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.needingDocs",defaultMessage:"Need Docs"}),value:(i==null?void 0:i.filesNeedingDocs)??0,icon:je,color:"bg-amber-500/10 text-amber-500"})]}),t.jsxs(y,{className:"p-4",children:[t.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:e({id:"deepwiki.stats.howTo.title",defaultMessage:"Documentation Index"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.stats.howTo.description",defaultMessage:"DeepWiki automatically indexes symbols and documentation from code. Currently in read-only mode."})})]})]})})]})}export{Ze as DeepWikiPage,Ze as default};
2
- //# sourceMappingURL=DeepWikiPage-2YIlfWhz.js.map
1
+ import{a9 as X,aa as Z,ab as D,u as $,r as b,j as t,C as y,B as T,e as ee,R as A,c as j,b as de,I as me,N as ue,M as fe,l as te,gJ as he,gK as xe,m as pe,U as ge,cl as _,cm as K,bq as be,bs as ye,Y as Q,a8 as je}from"./index-DzTbMyaS.js";import{T as Ne}from"./TabsNavigation-jhUge9YV.js";import{u as we}from"./useDebounce-Cah-bua6.js";import{F as C}from"./file-text-BMy5pXNV.js";import{H as F}from"./hash-B0dYlmyB.js";import{L as ve}from"./link-2-zZRu2j4G.js";const v={all:["deepWiki"],files:e=>[...v.all,"files",e],doc:e=>[...v.all,"doc",e],stats:e=>[...v.all,"stats",e],search:e=>[...v.all,"search",e]},q=300*1e3,P=600*1e3,ke=10*1e3;async function I(e,s=ke){const a=new AbortController,n=setTimeout(()=>a.abort(),s);try{return await fetch(e,{signal:a.signal})}finally{clearTimeout(n)}}async function Se(){const e=await I("/api/deepwiki/files");if(!e.ok)throw new Error(`Failed to fetch files: ${e.statusText}`);return e.json()}async function Ce(e){const s=await I(`/api/deepwiki/doc?path=${encodeURIComponent(e)}`);if(!s.ok){if(s.status===404)return{doc:null,content:"",symbols:[]};throw new Error(`Failed to fetch document: ${s.statusText}`)}return s.json()}async function Fe(){const e=await I("/api/deepwiki/stats");if(!e.ok)throw new Error(`Failed to fetch stats: ${e.statusText}`);return e.json()}async function Me(e,s=50){const a=await I(`/api/deepwiki/search?q=${encodeURIComponent(e)}&limit=${s}`);if(!a.ok)throw new Error(`Failed to search symbols: ${a.statusText}`);return a.json()}function Le(e={}){const{staleTime:s=q,enabled:a=!0}=e,n=X(Z),r=D({queryKey:v.files(n??""),queryFn:Se,staleTime:s,gcTime:P,enabled:a&&!!n,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{files:r.data??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function Te(e,s={}){var l,o,m;const{staleTime:a=q,enabled:n=!0}=s,r=D({queryKey:v.doc(e??""),queryFn:()=>Ce(e),staleTime:a,gcTime:P,enabled:n&&!!e,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{doc:((l=r.data)==null?void 0:l.doc)??null,content:((o=r.data)==null?void 0:o.content)??"",symbols:((m=r.data)==null?void 0:m.symbols)??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function De(e={}){const{staleTime:s=q,enabled:a=!0}=e,n=X(Z),r=D({queryKey:v.stats(n??""),queryFn:Fe,staleTime:s,gcTime:P,enabled:a&&!!n,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{stats:r.data??null,isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:async()=>{await r.refetch()}}}function qe(e,s={}){const{limit:a=50,staleTime:n=q,enabled:r=!0}=s,l=D({queryKey:v.search(e),queryFn:()=>Me(e,a),staleTime:n,gcTime:P,enabled:r&&e.length>0,retry:2,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return{symbols:l.data??[],isLoading:l.isLoading,isFetching:l.isFetching,error:l.error,refetch:async()=>{await l.refetch()}}}function Pe(e){const s=e.replace(/\\/g,"/").split("/"),a=s.findIndex(n=>n==="src");return a>=0?s.slice(a).join("/"):s.length>3?".../"+s.slice(-3).join("/"):s.join("/")}function Ie(e){const s=e.split(".");return s.length>1?s[s.length-1].toLowerCase():""}function Oe(e){return{ts:"text-blue-500",tsx:"text-blue-500",js:"text-yellow-500",jsx:"text-yellow-500",py:"text-green-500",go:"text-cyan-500",rs:"text-orange-500",java:"text-red-500",swift:"text-orange-500"}[e]||"text-gray-500"}function Re({files:e,selectedPath:s,onSelectFile:a,isLoading:n=!1,isFetching:r=!1,onRefresh:l}){const{formatMessage:o}=$(),[m,p]=b.useState(""),d=we(m,300),[f,g]=b.useState(!1),c=b.useMemo(()=>{if(!d.trim())return e;const u=d.toLowerCase();return e.filter(N=>N.path.toLowerCase().includes(u))},[e,d]);b.useEffect(()=>{g(m!==d)},[m,d]);const h=b.useMemo(()=>{const u={};for(const N of c){const i=N.path.replace(/\\/g,"/").split("/"),k=i.length>1?i.slice(0,-1).join("/"):"root";u[k]||(u[k]=[]),u[k].push(N)}return u},[c]);return n?t.jsx(y,{className:"p-4",children:t.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(u=>t.jsx("div",{className:"h-12 bg-muted animate-pulse rounded"},u))})}):t.jsxs(y,{className:"flex flex-col h-full",children:[t.jsxs("div",{className:"p-4 border-b border-border",children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[t.jsx(C,{className:"w-4 h-4"}),o({id:"deepwiki.files.title",defaultMessage:"Documented Files"}),t.jsx(T,{variant:"secondary",className:"text-xs",children:e.length})]}),l&&t.jsx(ee,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>l(),disabled:r,children:t.jsx(A,{className:j("w-4 h-4",r&&"animate-spin")})})]}),t.jsxs("div",{className:"relative",children:[t.jsx(de,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),t.jsx(me,{placeholder:o({id:"deepwiki.files.search",defaultMessage:"Search files..."}),value:m,onChange:u=>p(u.target.value),className:"pl-9 h-8 text-sm"}),f&&t.jsx(ue,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 animate-spin text-muted-foreground"})]})]}),t.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:c.length===0?t.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[t.jsx(C,{className:"w-10 h-10 text-muted-foreground/40 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:o(m?{id:"deepwiki.files.noResults",defaultMessage:"No files match your search"}:{id:"deepwiki.files.empty",defaultMessage:"No documented files yet"})})]}):t.jsx("div",{className:"space-y-1",children:Object.entries(h).map(([u,N])=>t.jsx("div",{children:t.jsx("div",{className:"space-y-0.5",children:N.map(i=>{const k=Ie(i.path),O=Oe(k),R=s===i.path;return t.jsxs("button",{onClick:()=>a(i.path),className:j("w-full flex items-center gap-2 px-3 py-2 rounded-md text-left transition-colors","hover:bg-muted/70",R&&"bg-primary/10 border border-primary/30"),children:[t.jsx(C,{className:j("w-4 h-4 flex-shrink-0",O)}),t.jsx("span",{className:"flex-1 text-sm truncate font-mono",title:i.path,children:Pe(i.path)}),t.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.docsGenerated?t.jsx(fe,{className:"w-3.5 h-3.5 text-green-500"}):t.jsx(te,{className:"w-3.5 h-3.5 text-yellow-500"}),i.symbolsCount>0&&t.jsx(T,{variant:"outline",className:"text-xs px-1.5 py-0",children:i.symbolsCount})]})]},i.path)})})},u))})})]})}const S=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],U={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...S,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...S],h2:[["className","sr-only"]],img:[...S,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...S,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...S],table:[...S],ul:[...S,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},w={}.hasOwnProperty;function We(e,s){let a={type:"root",children:[]};const n={schema:s?{...U,...s}:U,stack:[]},r=se(n,e);return r&&(Array.isArray(r)?r.length===1?a=r[0]:a.children=r:a=r),a}function se(e,s){if(s&&typeof s=="object"){const a=s;switch(typeof a.type=="string"?a.type:""){case"comment":return Ee(e,a);case"doctype":return Ae(e,a);case"element":return $e(e,a);case"root":return Be(e,a);case"text":return _e(e,a)}}}function Ee(e,s){if(e.schema.allowComments){const a=typeof s.value=="string"?s.value:"",n=a.indexOf("-->"),l={type:"comment",value:n<0?a:a.slice(0,n)};return M(l,s),l}}function Ae(e,s){if(e.schema.allowDoctypes){const a={type:"doctype"};return M(a,s),a}}function $e(e,s){const a=typeof s.tagName=="string"?s.tagName:"";e.stack.push(a);const n=ae(e,s.children),r=Ke(e,s.properties);e.stack.pop();let l=!1;if(a&&a!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(a))&&(l=!0,e.schema.ancestors&&w.call(e.schema.ancestors,a))){const m=e.schema.ancestors[a];let p=-1;for(l=!1;++p<m.length;)e.stack.includes(m[p])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(a)?n:void 0;const o={type:"element",tagName:a,properties:r,children:n};return M(o,s),o}function Be(e,s){const n={type:"root",children:ae(e,s.children)};return M(n,s),n}function _e(e,s){const n={type:"text",value:typeof s.value=="string"?s.value:""};return M(n,s),n}function ae(e,s){const a=[];if(Array.isArray(s)){const n=s;let r=-1;for(;++r<n.length;){const l=se(e,n[r]);l&&(Array.isArray(l)?a.push(...l):a.push(l))}}return a}function Ke(e,s){const a=e.stack[e.stack.length-1],n=e.schema.attributes,r=e.schema.required,l=n&&w.call(n,a)?n[a]:void 0,o=n&&w.call(n,"*")?n["*"]:void 0,m=s&&typeof s=="object"?s:{},p={};let d;for(d in m)if(w.call(m,d)){const f=m[d];let g=V(e,z(l,d),d,f);g==null&&(g=V(e,z(o,d),d,f)),g!=null&&(p[d]=g)}if(r&&w.call(r,a)){const f=r[a];for(d in f)w.call(f,d)&&!w.call(p,d)&&(p[d]=f[d])}return p}function V(e,s,a,n){return s?Array.isArray(n)?Qe(e,s,a,n):ne(e,s,a,n):void 0}function Qe(e,s,a,n){let r=-1;const l=[];for(;++r<n.length;){const o=ne(e,s,a,n[r]);(typeof o=="number"||typeof o=="string")&&l.push(o)}return l}function ne(e,s,a,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Ue(e,a,n)){if(typeof s=="object"&&s.length>1){let r=!1,l=0;for(;++l<s.length;){const o=s[l];if(o&&typeof o=="object"&&"flags"in o){if(o.test(String(n))){r=!0;break}}else if(o===n){r=!0;break}}if(!r)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(a)?e.schema.clobberPrefix+n:n}}function Ue(e,s,a){const n=e.schema.protocols&&w.call(e.schema.protocols,s)?e.schema.protocols[s]:void 0;if(!n||n.length===0)return!0;const r=String(a),l=r.indexOf(":"),o=r.indexOf("?"),m=r.indexOf("#"),p=r.indexOf("/");if(l<0||p>-1&&l>p||o>-1&&l>o||m>-1&&l>m)return!0;let d=-1;for(;++d<n.length;){const f=n[d];if(l===f.length&&r.slice(0,f.length)===f)return!0}return!1}function M(e,s){const a=he(s);s.data&&(e.data=xe(s.data)),a&&(e.position=a)}function z(e,s){let a,n=-1;if(e)for(;++n<e.length;){const r=e[n],l=typeof r=="string"?r:r[0];if(l===s)return r;l==="data*"&&(a=r)}if(s.length>4&&s.slice(0,4).toLowerCase()==="data")return a}function G(e){return function(s){return We(s,e)}}function H(e){return{function:{symbol:"λ",label:"Function"},async_function:{symbol:"λ",label:"Async Function"},class:{symbol:"◇",label:"Class"},method:{symbol:"◈",label:"Method"},interface:{symbol:"△",label:"Interface"},variable:{symbol:"•",label:"Variable"},constant:{symbol:"⬡",label:"Constant"}}[e]||{symbol:"•",label:"Symbol"}}function J(e){return{function:"text-blue-500",async_function:"text-blue-400",class:"text-purple-500",method:"text-purple-400",interface:"text-teal-500",variable:"text-gray-500",constant:"text-amber-500"}[e]||"text-gray-500"}const Y={h1:({children:e})=>t.jsx("h1",{className:"text-xl font-bold mt-6 mb-3 text-foreground",children:e}),h2:({children:e})=>t.jsx("h2",{className:"text-lg font-semibold mt-5 mb-2 text-foreground",children:e}),h3:({children:e})=>t.jsx("h3",{className:"text-base font-semibold mt-4 mb-2 text-foreground",children:e}),p:({children:e})=>t.jsx("p",{className:"mb-3 leading-relaxed text-foreground/90",children:e}),a:({href:e,children:s})=>t.jsx("a",{href:e,className:"text-primary hover:underline",target:e!=null&&e.startsWith("http")?"_blank":void 0,rel:e!=null&&e.startsWith("http")?"noopener noreferrer":void 0,children:s}),code:({className:e,children:s})=>e?t.jsx("code",{className:j("block bg-muted p-3 rounded-md text-sm font-mono overflow-x-auto",e),children:s}):t.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",children:s}),pre:({children:e})=>t.jsx("pre",{className:"bg-muted p-4 rounded-lg my-4 overflow-x-auto",children:e}),ul:({children:e})=>t.jsx("ul",{className:"list-disc list-inside mb-3 space-y-1",children:e}),ol:({children:e})=>t.jsx("ol",{className:"list-decimal list-inside mb-3 space-y-1",children:e}),blockquote:({children:e})=>t.jsx("blockquote",{className:"border-l-4 border-primary/50 pl-4 my-4 italic text-muted-foreground",children:e}),table:({children:e})=>t.jsx("div",{className:"overflow-x-auto my-4",children:t.jsx("table",{className:"min-w-full border border-border",children:e})}),thead:({children:e})=>t.jsx("thead",{className:"bg-muted",children:e}),th:({children:e})=>t.jsx("th",{className:"border border-border px-3 py-2 text-left font-medium",children:e}),td:({children:e})=>t.jsx("td",{className:"border border-border px-3 py-2",children:e})};function Ve({doc:e,content:s,symbols:a,isLoading:n=!1,error:r=null,filePath:l}){var g;const{formatMessage:o}=$(),[m,p]=b.useState(null),d=b.useCallback((c,h)=>{const u=new URL(window.location.href);l&&u.searchParams.set("file",l),u.hash=h.replace("#",""),navigator.clipboard.writeText(u.toString()).then(()=>{p(c),setTimeout(()=>p(null),2e3)})},[l]),f=b.useMemo(()=>{if(!s)return[];const c=/<!-- deepwiki-symbol-start name="([^"]+)" type="([^"]+)" -->([\s\S]*?)<!-- deepwiki-symbol-end -->/g,h=[];let u;for(;(u=c.exec(s))!==null;)h.push({name:u[1],type:u[2],content:u[3].trim()});return h.length===0&&s.trim()&&h.push({name:"Documentation",type:"document",content:s.trim()}),h},[s]);return n?t.jsx(y,{className:"flex-1 p-6",children:t.jsxs("div",{className:"space-y-4 animate-pulse",children:[t.jsx("div",{className:"h-8 bg-muted rounded w-1/3"}),t.jsx("div",{className:"h-4 bg-muted rounded w-2/3"}),t.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),t.jsx("div",{className:"h-32 bg-muted rounded mt-6"}),t.jsx("div",{className:"h-4 bg-muted rounded w-3/4"}),t.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})}):r?t.jsxs(y,{className:"flex-1 p-6 flex flex-col items-center justify-center text-center",children:[t.jsx(pe,{className:"w-12 h-12 text-destructive/50 mb-4"}),t.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:o({id:"deepwiki.viewer.error.title",defaultMessage:"Error Loading Document"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:r.message})]}):!e&&!s?t.jsxs(y,{className:"flex-1 p-6 flex flex-col items-center justify-center text-center",children:[t.jsx(C,{className:"w-12 h-12 text-muted-foreground/30 mb-4"}),t.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:o({id:"deepwiki.viewer.empty.title",defaultMessage:"Select a File"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:o({id:"deepwiki.viewer.empty.message",defaultMessage:"Choose a file from the list to view its documentation"})})]}):t.jsxs(y,{className:"flex-1 flex flex-col overflow-hidden",children:[t.jsx("div",{className:"p-4 border-b border-border",children:t.jsx("div",{className:"flex items-start justify-between gap-4",children:t.jsxs("div",{children:[t.jsxs("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[t.jsx(C,{className:"w-5 h-5 text-primary"}),t.jsx("span",{className:"font-mono text-sm",title:e==null?void 0:e.path,children:((g=e==null?void 0:e.path)==null?void 0:g.split("/").pop())||"Documentation"})]}),e&&t.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-xs text-muted-foreground",children:[e.generatedAt&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(te,{className:"w-3 h-3"}),new Date(e.generatedAt).toLocaleString()]}),e.llmTool&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(ge,{className:"w-3 h-3"}),e.llmTool]})]})]})})}),t.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[t.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[a.length>0&&t.jsx("div",{className:"mb-6 flex flex-wrap gap-2",children:a.map(c=>{const h=H(c.type);return t.jsxs("a",{href:`#${c.anchor.replace("#","")}`,className:j("inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium","bg-muted/50 hover:bg-muted transition-colors",J(c.type)),"aria-label":`${h.label}: ${c.name}`,children:[t.jsx("span",{"aria-hidden":"true",children:h.symbol}),t.jsx("span",{children:c.name}),t.jsx(T,{variant:"outline",className:"text-[10px] px-1",children:c.type})]},c.name)})}),t.jsxs("div",{className:"space-y-6",children:[f.map((c,h)=>t.jsx("section",{id:c.name.toLowerCase().replace(/\s+/g,"-"),className:"scroll-mt-4",children:t.jsx(_,{remarkPlugins:[K],rehypePlugins:[G],components:Y,children:c.content})},`${c.name}-${h}`)),f.length===0&&s&&t.jsx(_,{remarkPlugins:[K],rehypePlugins:[G],components:Y,children:s})]})]}),a.length>0&&t.jsxs("div",{className:"w-48 border-l border-border p-4 overflow-y-auto hidden lg:block",children:[t.jsxs("h4",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3 flex items-center gap-2",children:[t.jsx(F,{className:"w-3 h-3"}),o({id:"deepwiki.viewer.toc",defaultMessage:"Symbols"})]}),t.jsx("nav",{className:"space-y-1",role:"list","aria-label":"Document symbols",children:a.map(c=>{const h=H(c.type);return t.jsxs("div",{className:"group flex items-center gap-1",children:[t.jsxs("a",{href:`#${c.anchor.replace("#","")}`,className:j("flex-1 text-xs py-1.5 px-2 rounded transition-colors","text-muted-foreground hover:text-foreground hover:bg-muted/50","font-mono"),role:"listitem","aria-label":`${h.label}: ${c.name}`,children:[t.jsx("span",{className:j("mr-1",J(c.type)),"aria-hidden":"true",children:h.symbol}),c.name]}),t.jsx("button",{onClick:()=>d(c.name,c.anchor),className:j("opacity-0 group-hover:opacity-100 p-1 rounded transition-all","hover:bg-muted/50",m===c.name?"text-green-500":"text-muted-foreground hover:text-foreground"),"aria-label":m===c.name?o({id:"deepwiki.viewer.linkCopied",defaultMessage:"Link copied"}):o({id:"deepwiki.viewer.copyLink",defaultMessage:"Copy deep link to {name}"},{name:c.name}),children:m===c.name?t.jsx(be,{className:"w-3 h-3","aria-hidden":"true"}):t.jsx(ve,{className:"w-3 h-3","aria-hidden":"true"})})]},c.name)})})]})]})]})}function L({label:e,value:s,icon:a,color:n}){return t.jsx(y,{className:"p-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:j("p-2 rounded-lg",n),children:t.jsx(a,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-bold text-foreground",children:s}),t.jsx("p",{className:"text-xs text-muted-foreground",children:e})]})]})})}function Ze(){const{formatMessage:e}=$(),[s,a]=ye(),[n,r]=b.useState("documents"),[l,o]=b.useState(""),m=b.useRef(!1),p=s.get("file"),d=window.location.hash.slice(1),[f,g]=b.useState(p),{files:c,isLoading:h,isFetching:u,refetch:N}=Le(),{stats:i,isLoading:k,refetch:O}=De(),{doc:R,content:W,symbols:re,isLoading:E,error:le}=Te(f),{symbols:B,isLoading:ie}=qe(l,{enabled:n==="index"}),oe=b.useCallback(x=>{g(x),a({file:x}),m.current=!1},[a]);b.useEffect(()=>{d&&W&&!E&&!m.current&&(m.current=!0,setTimeout(()=>{const x=document.getElementById(d);x&&x.scrollIntoView({behavior:"smooth",block:"start"})},100))},[d,W,E]);const ce=()=>{N(),O()};return t.jsxs("div",{className:"h-full flex flex-col space-y-4",children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[t.jsxs("div",{children:[t.jsxs("h1",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[t.jsx(Q,{className:"w-6 h-6 text-primary"}),e({id:"deepwiki.title",defaultMessage:"DeepWiki"})]}),t.jsx("p",{className:"text-muted-foreground mt-1",children:e({id:"deepwiki.description",defaultMessage:"Code documentation with deep-linking to source symbols"})})]}),t.jsx("div",{className:"flex gap-2",children:t.jsxs(ee,{variant:"outline",onClick:ce,disabled:u,children:[t.jsx(A,{className:j("w-4 h-4 mr-2",u&&"animate-spin")}),e({id:"common.actions.refresh",defaultMessage:"Refresh"})]})})]}),t.jsx(Ne,{value:n,onValueChange:x=>r(x),tabs:[{value:"documents",label:e({id:"deepwiki.tabs.documents",defaultMessage:"Documents"})},{value:"index",label:e({id:"deepwiki.tabs.index",defaultMessage:"Symbol Index"})},{value:"stats",label:e({id:"deepwiki.tabs.stats",defaultMessage:"Statistics"})}]}),n==="documents"&&t.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[t.jsx("div",{className:"w-80 flex-shrink-0",children:t.jsx(Re,{files:c,selectedPath:f,onSelectFile:oe,isLoading:h,isFetching:u,onRefresh:()=>N()})}),t.jsx(Ve,{doc:R,content:W,symbols:re,isLoading:E,error:le,filePath:f??void 0})]}),n==="index"&&t.jsx("div",{className:"flex-1 overflow-y-auto",children:t.jsxs(y,{className:"p-4 h-full flex flex-col",children:[t.jsx("div",{className:"mb-4",children:t.jsx("input",{type:"text",placeholder:e({id:"deepwiki.index.search",defaultMessage:"Search symbols..."}),value:l,onChange:x=>o(x.target.value),className:"w-full px-4 py-2 rounded-md border border-input bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"})}),ie?t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(A,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):B.length>0?t.jsx("div",{className:"flex-1 overflow-y-auto space-y-2",children:B.map(x=>t.jsxs("button",{onClick:()=>{g(x.sourceFile),r("documents")},className:"w-full p-3 rounded-md border border-border hover:bg-muted/50 transition-colors text-left",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(F,{className:"w-4 h-4 text-primary"}),t.jsx("span",{className:"font-medium text-foreground",children:x.name}),t.jsx(T,{variant:"outline",className:"text-xs",children:x.type})]}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-1 font-mono truncate",children:[x.sourceFile,":",x.lineRange[0],"-",x.lineRange[1]]})]},`${x.name}-${x.sourceFile}`))}):l?t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[t.jsx(F,{className:"w-10 h-10 text-muted-foreground/30 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.index.noResults",defaultMessage:"No symbols found"})})]}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[t.jsx(F,{className:"w-10 h-10 text-muted-foreground/30 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.index.placeholder",defaultMessage:"Enter a search query to find symbols"})})]})]})}),n==="stats"&&t.jsx("div",{className:"flex-1 overflow-y-auto space-y-4",children:k?t.jsx(y,{className:"p-6",children:t.jsxs("div",{className:"space-y-4 animate-pulse",children:[t.jsx("div",{className:"h-20 bg-muted rounded"}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"}),t.jsx("div",{className:"h-24 bg-muted rounded"})]})]})}):t.jsxs(t.Fragment,{children:[t.jsx(y,{className:"p-4",children:t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:j("w-3 h-3 rounded-full",i!=null&&i.available?"bg-green-500":"bg-red-500")}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:i!=null&&i.available?e({id:"deepwiki.stats.available",defaultMessage:"Database Connected"}):e({id:"deepwiki.stats.unavailable",defaultMessage:"Database Not Available"})})]}),(i==null?void 0:i.dbPath)&&t.jsx("code",{className:"text-xs text-muted-foreground bg-muted px-2 py-1 rounded",children:i.dbPath})]})}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[t.jsx(L,{label:e({id:"deepwiki.stats.files",defaultMessage:"Files"}),value:(i==null?void 0:i.files)??0,icon:C,color:"bg-blue-500/10 text-blue-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.symbols",defaultMessage:"Symbols"}),value:(i==null?void 0:i.symbols)??0,icon:F,color:"bg-purple-500/10 text-purple-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.docs",defaultMessage:"Documents"}),value:(i==null?void 0:i.docs)??0,icon:Q,color:"bg-green-500/10 text-green-500"}),t.jsx(L,{label:e({id:"deepwiki.stats.needingDocs",defaultMessage:"Need Docs"}),value:(i==null?void 0:i.filesNeedingDocs)??0,icon:je,color:"bg-amber-500/10 text-amber-500"})]}),t.jsxs(y,{className:"p-4",children:[t.jsx("h3",{className:"text-sm font-medium text-foreground mb-2",children:e({id:"deepwiki.stats.howTo.title",defaultMessage:"Documentation Index"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:e({id:"deepwiki.stats.howTo.description",defaultMessage:"DeepWiki automatically indexes symbols and documentation from code. Currently in read-only mode."})})]})]})})]})}export{Ze as DeepWikiPage,Ze as default};
2
+ //# sourceMappingURL=DeepWikiPage-D41ccWzY.js.map