claude-code-workflow 7.2.19 → 7.2.20

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 (196) hide show
  1. package/.claude/commands/workflow/analyze-with-file.md +33 -8
  2. package/.codex/skills/analyze-with-file/SKILL.md +55 -8
  3. package/ccw/frontend/dist/assets/{AlertDialog-zDuLRyN3.js → AlertDialog-Cukb0xv2.js} +2 -2
  4. package/ccw/frontend/dist/assets/{AlertDialog-zDuLRyN3.js.map → AlertDialog-Cukb0xv2.js.map} +1 -1
  5. package/ccw/frontend/dist/assets/{AnalysisPage-DGCGwIZY.js → AnalysisPage-Ddmv0J4x.js} +2 -2
  6. package/ccw/frontend/dist/assets/{AnalysisPage-DGCGwIZY.js.map → AnalysisPage-Ddmv0J4x.js.map} +1 -1
  7. package/ccw/frontend/dist/assets/{ApiSettingsPage-CgclCqmv.js → ApiSettingsPage-DMkrTZDX.js} +2 -2
  8. package/ccw/frontend/dist/assets/{ApiSettingsPage-CgclCqmv.js.map → ApiSettingsPage-DMkrTZDX.js.map} +1 -1
  9. package/ccw/frontend/dist/assets/{CliModeToggle-CbGH7qO4.js → CliModeToggle-DXenjpbe.js} +2 -2
  10. package/ccw/frontend/dist/assets/{CliModeToggle-CbGH7qO4.js.map → CliModeToggle-DXenjpbe.js.map} +1 -1
  11. package/ccw/frontend/dist/assets/{CliSessionSharePage-CJGlwyDw.js → CliSessionSharePage-B-ZIMqmX.js} +2 -2
  12. package/ccw/frontend/dist/assets/{CliSessionSharePage-CJGlwyDw.js.map → CliSessionSharePage-B-ZIMqmX.js.map} +1 -1
  13. package/ccw/frontend/dist/assets/{CliViewerPage-D-MHYyDt.js → CliViewerPage-9YxGyLxh.js} +2 -2
  14. package/ccw/frontend/dist/assets/{CliViewerPage-D-MHYyDt.js.map → CliViewerPage-9YxGyLxh.js.map} +1 -1
  15. package/ccw/frontend/dist/assets/{CodexLensPage-z6miX68P.js → CodexLensPage-B_uv5wdn.js} +2 -2
  16. package/ccw/frontend/dist/assets/{CodexLensPage-z6miX68P.js.map → CodexLensPage-B_uv5wdn.js.map} +1 -1
  17. package/ccw/frontend/dist/assets/{Collapsible-D5zS2wef.js → Collapsible-C2qk3yV0.js} +2 -2
  18. package/ccw/frontend/dist/assets/{Collapsible-D5zS2wef.js.map → Collapsible-C2qk3yV0.js.map} +1 -1
  19. package/ccw/frontend/dist/assets/{CommandsManagerPage-ChcTwmAn.js → CommandsManagerPage-DBtaWxLB.js} +2 -2
  20. package/ccw/frontend/dist/assets/{CommandsManagerPage-ChcTwmAn.js.map → CommandsManagerPage-DBtaWxLB.js.map} +1 -1
  21. package/ccw/frontend/dist/assets/{DeepWikiPage-Cv5LifSi.js → DeepWikiPage-d9K4_TgG.js} +2 -2
  22. package/ccw/frontend/dist/assets/{DeepWikiPage-Cv5LifSi.js.map → DeepWikiPage-d9K4_TgG.js.map} +1 -1
  23. package/ccw/frontend/dist/assets/{EndpointsPage-BcyNmqIa.js → EndpointsPage-DhW6hYrI.js} +2 -2
  24. package/ccw/frontend/dist/assets/{EndpointsPage-BcyNmqIa.js.map → EndpointsPage-DhW6hYrI.js.map} +1 -1
  25. package/ccw/frontend/dist/assets/{ExplorerPage-DfHtqeQM.js → ExplorerPage-DYYpCvtB.js} +2 -2
  26. package/ccw/frontend/dist/assets/{ExplorerPage-DfHtqeQM.js.map → ExplorerPage-DYYpCvtB.js.map} +1 -1
  27. package/ccw/frontend/dist/assets/{FixSessionPage-CbvZApeF.js → FixSessionPage-CSmiT5SE.js} +2 -2
  28. package/ccw/frontend/dist/assets/{FixSessionPage-CbvZApeF.js.map → FixSessionPage-CSmiT5SE.js.map} +1 -1
  29. package/ccw/frontend/dist/assets/{FloatingFileBrowser-DLz85cw9.js → FloatingFileBrowser-DvMsXLdP.js} +2 -2
  30. package/ccw/frontend/dist/assets/{FloatingFileBrowser-DLz85cw9.js.map → FloatingFileBrowser-DvMsXLdP.js.map} +1 -1
  31. package/ccw/frontend/dist/assets/{FloatingPanel-DrUTmgtV.js → FloatingPanel-sqezhSI8.js} +2 -2
  32. package/ccw/frontend/dist/assets/{FloatingPanel-DrUTmgtV.js.map → FloatingPanel-sqezhSI8.js.map} +1 -1
  33. package/ccw/frontend/dist/assets/{GraphExplorerPage-C439yLvH.js → GraphExplorerPage-DS8ghMFM.js} +2 -2
  34. package/ccw/frontend/dist/assets/{GraphExplorerPage-C439yLvH.js.map → GraphExplorerPage-DS8ghMFM.js.map} +1 -1
  35. package/ccw/frontend/dist/assets/{HistoryPage-BClJJMEy.js → HistoryPage-B-x1RyHu.js} +2 -2
  36. package/ccw/frontend/dist/assets/{HistoryPage-BClJJMEy.js.map → HistoryPage-B-x1RyHu.js.map} +1 -1
  37. package/ccw/frontend/dist/assets/{HookManagerPage-DI-2QDLJ.js → HookManagerPage-BbxpDb68.js} +2 -2
  38. package/ccw/frontend/dist/assets/{HookManagerPage-DI-2QDLJ.js.map → HookManagerPage-BbxpDb68.js.map} +1 -1
  39. package/ccw/frontend/dist/assets/{InstallationsPage-DKlz1ypL.js → InstallationsPage-3bShz_Ai.js} +2 -2
  40. package/ccw/frontend/dist/assets/{InstallationsPage-DKlz1ypL.js.map → InstallationsPage-3bShz_Ai.js.map} +1 -1
  41. package/ccw/frontend/dist/assets/{IssueHubPage--6DduN4j.js → IssueHubPage-BQY_Hh3e.js} +2 -2
  42. package/ccw/frontend/dist/assets/{IssueHubPage--6DduN4j.js.map → IssueHubPage-BQY_Hh3e.js.map} +1 -1
  43. package/ccw/frontend/dist/assets/{LiteTasksPage-39j6xEeL.js → LiteTasksPage-vD_8fQcR.js} +2 -2
  44. package/ccw/frontend/dist/assets/{LiteTasksPage-39j6xEeL.js.map → LiteTasksPage-vD_8fQcR.js.map} +1 -1
  45. package/ccw/frontend/dist/assets/{McpManagerPage-D00C9RVN.js → McpManagerPage-CI5ZzB8A.js} +2 -2
  46. package/ccw/frontend/dist/assets/{McpManagerPage-D00C9RVN.js.map → McpManagerPage-CI5ZzB8A.js.map} +1 -1
  47. package/ccw/frontend/dist/assets/{MemoryPage-BXWKdTyM.js → MemoryPage-CNuj2eNg.js} +2 -2
  48. package/ccw/frontend/dist/assets/{MemoryPage-BXWKdTyM.js.map → MemoryPage-CNuj2eNg.js.map} +1 -1
  49. package/ccw/frontend/dist/assets/{NotFoundPage-h5o3I7cF.js → NotFoundPage-BrnAXkb1.js} +2 -2
  50. package/ccw/frontend/dist/assets/{NotFoundPage-h5o3I7cF.js.map → NotFoundPage-BrnAXkb1.js.map} +1 -1
  51. package/ccw/frontend/dist/assets/{OrchestratorPage-jkyjmiI1.js → OrchestratorPage-CH81PGt4.js} +2 -2
  52. package/ccw/frontend/dist/assets/{OrchestratorPage-jkyjmiI1.js.map → OrchestratorPage-CH81PGt4.js.map} +1 -1
  53. package/ccw/frontend/dist/assets/{ProjectOverviewPage-C2bE5eb2.js → ProjectOverviewPage-dwiEXl2O.js} +2 -2
  54. package/ccw/frontend/dist/assets/{ProjectOverviewPage-C2bE5eb2.js.map → ProjectOverviewPage-dwiEXl2O.js.map} +1 -1
  55. package/ccw/frontend/dist/assets/{PromptHistoryPage-DzmPK4GZ.js → PromptHistoryPage-CabgLjJU.js} +2 -2
  56. package/ccw/frontend/dist/assets/{PromptHistoryPage-DzmPK4GZ.js.map → PromptHistoryPage-CabgLjJU.js.map} +1 -1
  57. package/ccw/frontend/dist/assets/{ReviewSessionPage-CVMH1K6G.js → ReviewSessionPage-DAMrNFn8.js} +2 -2
  58. package/ccw/frontend/dist/assets/{ReviewSessionPage-CVMH1K6G.js.map → ReviewSessionPage-DAMrNFn8.js.map} +1 -1
  59. package/ccw/frontend/dist/assets/{RulesManagerPage-BDZco-r2.js → RulesManagerPage-4jzmxPn0.js} +2 -2
  60. package/ccw/frontend/dist/assets/{RulesManagerPage-BDZco-r2.js.map → RulesManagerPage-4jzmxPn0.js.map} +1 -1
  61. package/ccw/frontend/dist/assets/{SessionDetailPage-D5cM-8Kk.js → SessionDetailPage-C5Btktmp.js} +2 -2
  62. package/ccw/frontend/dist/assets/{SessionDetailPage-D5cM-8Kk.js.map → SessionDetailPage-C5Btktmp.js.map} +1 -1
  63. package/ccw/frontend/dist/assets/{SessionsPage-BFy74ye3.js → SessionsPage-CQIB4E8m.js} +2 -2
  64. package/ccw/frontend/dist/assets/{SessionsPage-BFy74ye3.js.map → SessionsPage-CQIB4E8m.js.map} +1 -1
  65. package/ccw/frontend/dist/assets/SettingsPage-Yi9UAfm7.js +150 -0
  66. package/ccw/frontend/dist/assets/SettingsPage-Yi9UAfm7.js.map +1 -0
  67. package/ccw/frontend/dist/assets/{SkillsManagerPage-8Dsq4AUD.js → SkillsManagerPage-BqfvYSkT.js} +2 -2
  68. package/ccw/frontend/dist/assets/{SkillsManagerPage-8Dsq4AUD.js.map → SkillsManagerPage-BqfvYSkT.js.map} +1 -1
  69. package/ccw/frontend/dist/assets/{SpecsSettingsPage-CG77iAYQ.js → SpecsSettingsPage-BdVPM5R6.js} +2 -2
  70. package/ccw/frontend/dist/assets/{SpecsSettingsPage-CG77iAYQ.js.map → SpecsSettingsPage-BdVPM5R6.js.map} +1 -1
  71. package/ccw/frontend/dist/assets/{Switch-BbuvVsX-.js → Switch-BG929kV0.js} +2 -2
  72. package/ccw/frontend/dist/assets/{Switch-BbuvVsX-.js.map → Switch-BG929kV0.js.map} +1 -1
  73. package/ccw/frontend/dist/assets/{TabsNavigation-SGJhC8-P.js → TabsNavigation-Bol1y09b.js} +2 -2
  74. package/ccw/frontend/dist/assets/{TabsNavigation-SGJhC8-P.js.map → TabsNavigation-Bol1y09b.js.map} +1 -1
  75. package/ccw/frontend/dist/assets/{TaskDrawer-p51jeScU.js → TaskDrawer-Dwutrn8_.js} +2 -2
  76. package/ccw/frontend/dist/assets/{TaskDrawer-p51jeScU.js.map → TaskDrawer-Dwutrn8_.js.map} +1 -1
  77. package/ccw/frontend/dist/assets/{TeamPage-CvZBThbr.js → TeamPage-CpCSwpxD.js} +2 -2
  78. package/ccw/frontend/dist/assets/{TeamPage-CvZBThbr.js.map → TeamPage-CpCSwpxD.js.map} +1 -1
  79. package/ccw/frontend/dist/assets/{TerminalDashboardPage-uhM7kGKI.js → TerminalDashboardPage-DODKjOeK.js} +2 -2
  80. package/ccw/frontend/dist/assets/{TerminalDashboardPage-uhM7kGKI.js.map → TerminalDashboardPage-DODKjOeK.js.map} +1 -1
  81. package/ccw/frontend/dist/assets/{archive-D6ySrtHC.js → archive-CQw634kD.js} +2 -2
  82. package/ccw/frontend/dist/assets/{archive-D6ySrtHC.js.map → archive-CQw634kD.js.map} +1 -1
  83. package/ccw/frontend/dist/assets/{archive-restore-C1uI-5TY.js → archive-restore-B-_EG6wE.js} +2 -2
  84. package/ccw/frontend/dist/assets/{archive-restore-C1uI-5TY.js.map → archive-restore-B-_EG6wE.js.map} +1 -1
  85. package/ccw/frontend/dist/assets/{arrow-right-qE5-FMG8.js → arrow-right-CcQtxBrU.js} +2 -2
  86. package/ccw/frontend/dist/assets/{arrow-right-qE5-FMG8.js.map → arrow-right-CcQtxBrU.js.map} +1 -1
  87. package/ccw/frontend/dist/assets/{bookmark-plus-DL4iL38T.js → bookmark-plus-Cl-BbcpR.js} +2 -2
  88. package/ccw/frontend/dist/assets/{bookmark-plus-DL4iL38T.js.map → bookmark-plus-Cl-BbcpR.js.map} +1 -1
  89. package/ccw/frontend/dist/assets/{bot-CZzIeEkg.js → bot-CLSNSkW_.js} +2 -2
  90. package/ccw/frontend/dist/assets/{bot-CZzIeEkg.js.map → bot-CLSNSkW_.js.map} +1 -1
  91. package/ccw/frontend/dist/assets/{braces-MEPRT2LN.js → braces-DWwkaDS6.js} +2 -2
  92. package/ccw/frontend/dist/assets/{braces-MEPRT2LN.js.map → braces-DWwkaDS6.js.map} +1 -1
  93. package/ccw/frontend/dist/assets/{circle-stop-GQcecSUg.js → circle-stop-DiS7e6ma.js} +2 -2
  94. package/ccw/frontend/dist/assets/{circle-stop-GQcecSUg.js.map → circle-stop-DiS7e6ma.js.map} +1 -1
  95. package/ccw/frontend/dist/assets/{cpu-CzxYMs1Y.js → cpu-CuvHUVXO.js} +2 -2
  96. package/ccw/frontend/dist/assets/{cpu-CzxYMs1Y.js.map → cpu-CuvHUVXO.js.map} +1 -1
  97. package/ccw/frontend/dist/assets/{ellipsis-vertical-DZMfiFKo.js → ellipsis-vertical-BoVlINSw.js} +2 -2
  98. package/ccw/frontend/dist/assets/{ellipsis-vertical-DZMfiFKo.js.map → ellipsis-vertical-BoVlINSw.js.map} +1 -1
  99. package/ccw/frontend/dist/assets/{eye-BXfPoClW.js → eye-BEMOdcAN.js} +2 -2
  100. package/ccw/frontend/dist/assets/{eye-BXfPoClW.js.map → eye-BEMOdcAN.js.map} +1 -1
  101. package/ccw/frontend/dist/assets/{eye-off-CyaKXmAk.js → eye-off-C5HS4Ytm.js} +2 -2
  102. package/ccw/frontend/dist/assets/{eye-off-CyaKXmAk.js.map → eye-off-C5HS4Ytm.js.map} +1 -1
  103. package/ccw/frontend/dist/assets/{file-json-B4LbFfTU.js → file-json-DQ9XLq0B.js} +2 -2
  104. package/ccw/frontend/dist/assets/{file-json-B4LbFfTU.js.map → file-json-DQ9XLq0B.js.map} +1 -1
  105. package/ccw/frontend/dist/assets/{file-text-CIWG7Xgj.js → file-text-TGs_qCbw.js} +2 -2
  106. package/ccw/frontend/dist/assets/{file-text-CIWG7Xgj.js.map → file-text-TGs_qCbw.js.map} +1 -1
  107. package/ccw/frontend/dist/assets/{filter-CNBjjvBX.js → filter-CIuCqnDB.js} +2 -2
  108. package/ccw/frontend/dist/assets/{filter-CNBjjvBX.js.map → filter-CIuCqnDB.js.map} +1 -1
  109. package/ccw/frontend/dist/assets/{folder-DT_XOYw9.js → folder-BkivHBwn.js} +2 -2
  110. package/ccw/frontend/dist/assets/{folder-DT_XOYw9.js.map → folder-BkivHBwn.js.map} +1 -1
  111. package/ccw/frontend/dist/assets/{gauge-mvQWOG3S.js → gauge-CtM68fVY.js} +2 -2
  112. package/ccw/frontend/dist/assets/{gauge-mvQWOG3S.js.map → gauge-CtM68fVY.js.map} +1 -1
  113. package/ccw/frontend/dist/assets/{globe-B25jraBz.js → globe-DpnrINqP.js} +2 -2
  114. package/ccw/frontend/dist/assets/{globe-B25jraBz.js.map → globe-DpnrINqP.js.map} +1 -1
  115. package/ccw/frontend/dist/assets/{grid-3x3-CptugI_Z.js → grid-3x3-SjX0a5JH.js} +2 -2
  116. package/ccw/frontend/dist/assets/{grid-3x3-CptugI_Z.js.map → grid-3x3-SjX0a5JH.js.map} +1 -1
  117. package/ccw/frontend/dist/assets/{hard-drive-BUK9Wcoz.js → hard-drive-ByAmnoEg.js} +2 -2
  118. package/ccw/frontend/dist/assets/{hard-drive-BUK9Wcoz.js.map → hard-drive-ByAmnoEg.js.map} +1 -1
  119. package/ccw/frontend/dist/assets/{hash-dddMDYK7.js → hash-DbLc3VOZ.js} +2 -2
  120. package/ccw/frontend/dist/assets/{hash-dddMDYK7.js.map → hash-DbLc3VOZ.js.map} +1 -1
  121. package/ccw/frontend/dist/assets/{history-BdDj8MtC.js → history-Botz5Z5d.js} +2 -2
  122. package/ccw/frontend/dist/assets/{history-BdDj8MtC.js.map → history-Botz5Z5d.js.map} +1 -1
  123. package/ccw/frontend/dist/assets/{index-CcxBnbbQ.js → index-BGvyf4-9.js} +2 -2
  124. package/ccw/frontend/dist/assets/{index-CcxBnbbQ.js.map → index-BGvyf4-9.js.map} +1 -1
  125. package/ccw/frontend/dist/assets/index-BoqylFO4.css +39 -0
  126. package/ccw/frontend/dist/assets/{index-DZGHdspr.js → index-DP_mTJI8.js} +3 -3
  127. package/ccw/frontend/dist/assets/{index-DZGHdspr.js.map → index-DP_mTJI8.js.map} +1 -1
  128. package/ccw/frontend/dist/assets/{index-B6UfIzhR.js → index-MkgdhX7a.js} +2 -2
  129. package/ccw/frontend/dist/assets/{index-B6UfIzhR.js.map → index-MkgdhX7a.js.map} +1 -1
  130. package/ccw/frontend/dist/assets/{index-EFcT7h67.js → index-ni-tG9rm.js} +2 -2
  131. package/ccw/frontend/dist/assets/{index-EFcT7h67.js.map → index-ni-tG9rm.js.map} +1 -1
  132. package/ccw/frontend/dist/assets/{layout-grid-BVlT1oI7.js → layout-grid-11E4bGJz.js} +2 -2
  133. package/ccw/frontend/dist/assets/{layout-grid-BVlT1oI7.js.map → layout-grid-11E4bGJz.js.map} +1 -1
  134. package/ccw/frontend/dist/assets/{lightbulb-Mt3Tlwh4.js → lightbulb-8KrKY82b.js} +2 -2
  135. package/ccw/frontend/dist/assets/{lightbulb-Mt3Tlwh4.js.map → lightbulb-8KrKY82b.js.map} +1 -1
  136. package/ccw/frontend/dist/assets/{link-2-DXqT64qo.js → link-2-BUn6RILb.js} +2 -2
  137. package/ccw/frontend/dist/assets/{link-2-DXqT64qo.js.map → link-2-BUn6RILb.js.map} +1 -1
  138. package/ccw/frontend/dist/assets/{link-CBMtrpcI.js → link-CmP254Ai.js} +2 -2
  139. package/ccw/frontend/dist/assets/{link-CBMtrpcI.js.map → link-CmP254Ai.js.map} +1 -1
  140. package/ccw/frontend/dist/assets/{list-DDyEM4AO.js → list-BAwzl4a2.js} +2 -2
  141. package/ccw/frontend/dist/assets/{list-DDyEM4AO.js.map → list-BAwzl4a2.js.map} +1 -1
  142. package/ccw/frontend/dist/assets/{map-pin-B2FxBKfk.js → map-pin-gi342rqk.js} +2 -2
  143. package/ccw/frontend/dist/assets/{map-pin-B2FxBKfk.js.map → map-pin-gi342rqk.js.map} +1 -1
  144. package/ccw/frontend/dist/assets/{messages-square-zJfTY9pq.js → messages-square-C1Lh8q8b.js} +2 -2
  145. package/ccw/frontend/dist/assets/{messages-square-zJfTY9pq.js.map → messages-square-C1Lh8q8b.js.map} +1 -1
  146. package/ccw/frontend/dist/assets/{minimize-2-DnhGZj79.js → minimize-2-OgWNLKdq.js} +2 -2
  147. package/ccw/frontend/dist/assets/{minimize-2-DnhGZj79.js.map → minimize-2-OgWNLKdq.js.map} +1 -1
  148. package/ccw/frontend/dist/assets/{package-DYzAybhU.js → package-Djsvs5qp.js} +2 -2
  149. package/ccw/frontend/dist/assets/{package-DYzAybhU.js.map → package-Djsvs5qp.js.map} +1 -1
  150. package/ccw/frontend/dist/assets/{plug-B3kKHsu1.js → plug-DvSZP2cp.js} +2 -2
  151. package/ccw/frontend/dist/assets/{plug-B3kKHsu1.js.map → plug-DvSZP2cp.js.map} +1 -1
  152. package/ccw/frontend/dist/assets/{power-BPNNZgLy.js → power-BY7vTLmU.js} +2 -2
  153. package/ccw/frontend/dist/assets/{power-BPNNZgLy.js.map → power-BY7vTLmU.js.map} +1 -1
  154. package/ccw/frontend/dist/assets/{save-Cwry93p-.js → save-DXfqv84T.js} +2 -2
  155. package/ccw/frontend/dist/assets/{save-Cwry93p-.js.map → save-DXfqv84T.js.map} +1 -1
  156. package/ccw/frontend/dist/assets/{send-DuWWy2J8.js → send-E2o2LZSX.js} +2 -2
  157. package/ccw/frontend/dist/assets/{send-DuWWy2J8.js.map → send-E2o2LZSX.js.map} +1 -1
  158. package/ccw/frontend/dist/assets/{settings-2-C3U1eSK6.js → settings-2-ChD1LFHH.js} +2 -2
  159. package/ccw/frontend/dist/assets/{settings-2-C3U1eSK6.js.map → settings-2-ChD1LFHH.js.map} +1 -1
  160. package/ccw/frontend/dist/assets/{square-check-big-CrG1ejFB.js → square-check-big-CBymuqmD.js} +2 -2
  161. package/ccw/frontend/dist/assets/{square-check-big-CrG1ejFB.js.map → square-check-big-CBymuqmD.js.map} +1 -1
  162. package/ccw/frontend/dist/assets/{square-pen-eLWlCgZ5.js → square-pen-BfaiJgOX.js} +2 -2
  163. package/ccw/frontend/dist/assets/{square-pen-eLWlCgZ5.js.map → square-pen-BfaiJgOX.js.map} +1 -1
  164. package/ccw/frontend/dist/assets/{star-sveo4KRn.js → star-DHMWqZ09.js} +2 -2
  165. package/ccw/frontend/dist/assets/{star-sveo4KRn.js.map → star-DHMWqZ09.js.map} +1 -1
  166. package/ccw/frontend/dist/assets/{style-CRdAX7Cu.js → style-wvcOEAiM.js} +2 -2
  167. package/ccw/frontend/dist/assets/{style-CRdAX7Cu.js.map → style-wvcOEAiM.js.map} +1 -1
  168. package/ccw/frontend/dist/assets/{target-Oz1-z8Zu.js → target-B8AMmf_N.js} +2 -2
  169. package/ccw/frontend/dist/assets/{target-Oz1-z8Zu.js.map → target-B8AMmf_N.js.map} +1 -1
  170. package/ccw/frontend/dist/assets/{test-tube-BozkZKD6.js → test-tube-BpDeTJi1.js} +2 -2
  171. package/ccw/frontend/dist/assets/{test-tube-BozkZKD6.js.map → test-tube-BpDeTJi1.js.map} +1 -1
  172. package/ccw/frontend/dist/assets/{upload-CTlUsxyh.js → upload-pflkdIDG.js} +2 -2
  173. package/ccw/frontend/dist/assets/{upload-CTlUsxyh.js.map → upload-pflkdIDG.js.map} +1 -1
  174. package/ccw/frontend/dist/assets/{useApiSettings-D6WfgFYj.js → useApiSettings-BPx4DyKT.js} +2 -2
  175. package/ccw/frontend/dist/assets/{useApiSettings-D6WfgFYj.js.map → useApiSettings-BPx4DyKT.js.map} +1 -1
  176. package/ccw/frontend/dist/assets/{useCli-CgGVNN5I.js → useCli-D1jfH3XA.js} +2 -2
  177. package/ccw/frontend/dist/assets/{useCli-CgGVNN5I.js.map → useCli-D1jfH3XA.js.map} +1 -1
  178. package/ccw/frontend/dist/assets/{useCommands-o5CKv-10.js → useCommands-DhR71vpa.js} +2 -2
  179. package/ccw/frontend/dist/assets/{useCommands-o5CKv-10.js.map → useCommands-DhR71vpa.js.map} +1 -1
  180. package/ccw/frontend/dist/assets/{useDebounce-rKo_bCBK.js → useDebounce-a6Yyer3m.js} +2 -2
  181. package/ccw/frontend/dist/assets/{useDebounce-rKo_bCBK.js.map → useDebounce-a6Yyer3m.js.map} +1 -1
  182. package/ccw/frontend/dist/assets/{useFileExplorer-WeE4t9Hg.js → useFileExplorer-B8W2JTj2.js} +2 -2
  183. package/ccw/frontend/dist/assets/{useFileExplorer-WeE4t9Hg.js.map → useFileExplorer-B8W2JTj2.js.map} +1 -1
  184. package/ccw/frontend/dist/assets/{useLocale-BS0tTC-_.js → useLocale-aMHdQIL_.js} +2 -2
  185. package/ccw/frontend/dist/assets/{useLocale-BS0tTC-_.js.map → useLocale-aMHdQIL_.js.map} +1 -1
  186. package/ccw/frontend/dist/assets/{useSkills-BUgAhw6r.js → useSkills-BHpc2LtN.js} +3 -3
  187. package/ccw/frontend/dist/assets/{useSkills-BUgAhw6r.js.map → useSkills-BHpc2LtN.js.map} +1 -1
  188. package/ccw/frontend/dist/assets/{useSystemSettings-CLhmINg1.js → useSystemSettings-BFD0SvEF.js} +2 -2
  189. package/ccw/frontend/dist/assets/{useSystemSettings-CLhmINg1.js.map → useSystemSettings-BFD0SvEF.js.map} +1 -1
  190. package/ccw/frontend/dist/assets/{wand-sparkles-BUHKJH1X.js → wand-sparkles-dYtI2IKM.js} +2 -2
  191. package/ccw/frontend/dist/assets/{wand-sparkles-BUHKJH1X.js.map → wand-sparkles-dYtI2IKM.js.map} +1 -1
  192. package/ccw/frontend/dist/index.html +2 -2
  193. package/package.json +1 -1
  194. package/ccw/frontend/dist/assets/SettingsPage-Qj0fFDjX.js +0 -150
  195. package/ccw/frontend/dist/assets/SettingsPage-Qj0fFDjX.js.map +0 -1
  196. package/ccw/frontend/dist/assets/index-nU0QYi1y.css +0 -39
@@ -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,gb as he,gc as xe,m as pe,U as ge,cl as _,cm as Q,bq as be,bs as ye,Y as U,a8 as je}from"./index-DZGHdspr.js";import{T as Ne}from"./TabsNavigation-SGJhC8-P.js";import{u as we}from"./useDebounce-rKo_bCBK.js";import{F as C}from"./file-text-CIWG7Xgj.js";import{H as F}from"./hash-dddMDYK7.js";import{L as ve}from"./link-2-DXqT64qo.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"],V={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?{...V,...s}:V,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=Qe(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 Qe(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=K(e,z(l,d),d,f);g==null&&(g=K(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 K(e,s,a,n){return s?Array.isArray(n)?Ue(e,s,a,n):ne(e,s,a,n):void 0}function Ue(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")&&Ve(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 Ve(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 Y(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 J={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 Ke({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",Y(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:[Q],rehypePlugins:[G],components:J,children:c.content})},`${c.name}-${h}`)),f.length===0&&s&&t.jsx(_,{remarkPlugins:[Q],rehypePlugins:[G],components:J,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",Y(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(U,{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(Ke,{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:U,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-Cv5LifSi.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,gb as he,gc as xe,m as pe,U as ge,cl as _,cm as Q,bq as be,bs as ye,Y as U,a8 as je}from"./index-DP_mTJI8.js";import{T as Ne}from"./TabsNavigation-Bol1y09b.js";import{u as we}from"./useDebounce-a6Yyer3m.js";import{F as C}from"./file-text-TGs_qCbw.js";import{H as F}from"./hash-DbLc3VOZ.js";import{L as ve}from"./link-2-BUn6RILb.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"],V={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?{...V,...s}:V,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=Qe(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 Qe(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=K(e,z(l,d),d,f);g==null&&(g=K(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 K(e,s,a,n){return s?Array.isArray(n)?Ue(e,s,a,n):ne(e,s,a,n):void 0}function Ue(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")&&Ve(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 Ve(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 Y(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 J={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 Ke({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",Y(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:[Q],rehypePlugins:[G],components:J,children:c.content})},`${c.name}-${h}`)),f.length===0&&s&&t.jsx(_,{remarkPlugins:[Q],rehypePlugins:[G],components:J,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",Y(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(U,{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(Ke,{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:U,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-d9K4_TgG.js.map