claude-code-best 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/README.md +3 -0
  2. package/dist/chunks/{AddWorkspaceDirectory-DRO4tbYd.js → AddWorkspaceDirectory-CNyPaerF.js} +1 -1
  3. package/dist/chunks/{App-DJyiiVKi.js → App-hiKxO6UA.js} +1 -1
  4. package/dist/chunks/{ApproveApiKey-DygOEAkM.js → ApproveApiKey-Cd43j9Wa.js} +1 -1
  5. package/dist/chunks/ApproveApiKey-DUoUTxFp.js +1 -0
  6. package/dist/chunks/{AssistantSessionChooser-C67mOxVi.js → AssistantSessionChooser-C8OxwSGM.js} +1 -1
  7. package/dist/chunks/{BackgroundTasksDialog-Bqk_Cn3j.js → BackgroundTasksDialog-VKhuyQLe.js} +2 -2
  8. package/dist/chunks/{BypassPermissionsModeDialog-C4z7RkFV.js → BypassPermissionsModeDialog-Ddjzluka.js} +1 -1
  9. package/dist/chunks/{ClaudeInChromeOnboarding-CyVFdjBe.js → ClaudeInChromeOnboarding-BhvrEJlm.js} +1 -1
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-COO2W0ij.js +1 -0
  11. package/dist/chunks/{ClaudeMdExternalIncludesDialog-IpqqBuJs.js → ClaudeMdExternalIncludesDialog-DoNd72PS.js} +1 -1
  12. package/dist/chunks/ConsoleOAuthFlow-CPWq7O57.js +1 -0
  13. package/dist/chunks/{DesktopHandoff-CJpa8Xy-.js → DesktopHandoff-DVUOZjb0.js} +1 -1
  14. package/dist/chunks/{DevChannelsDialog-CfAuHVRL.js → DevChannelsDialog-DJbRHAIy.js} +1 -1
  15. package/dist/chunks/Dialog-91X6ZGg9.js +1 -0
  16. package/dist/chunks/{DiffDialog-CV3brWsG.js → DiffDialog-D0RK4t-9.js} +2 -2
  17. package/dist/chunks/{Doctor-D3GysagF.js → Doctor-0Nv3L1Oy.js} +1 -1
  18. package/dist/chunks/Doctor-Ba9zhV0V.js +1 -0
  19. package/dist/chunks/{ExitFlow-L2sh80sm.js → ExitFlow-BPbtGcEg.js} +1 -1
  20. package/dist/chunks/{Feedback-DfkBCvva.js → Feedback-BSagYjmf.js} +1 -1
  21. package/dist/chunks/{Grove-Bo74aZx-.js → Grove-BrP9JNpK.js} +1 -1
  22. package/dist/chunks/Grove-DyvIToPa.js +1 -0
  23. package/dist/chunks/{HybridTransport-BItIDJyC.js → HybridTransport-DLaxmXCR.js} +1 -1
  24. package/dist/chunks/{ITermBackend-3iS8Bvmo.js → ITermBackend-tXN55G2D.js} +1 -1
  25. package/dist/chunks/{InvalidConfigDialog-6lPGcuOX.js → InvalidConfigDialog-BzFQdfwu.js} +1 -1
  26. package/dist/chunks/{InvalidSettingsDialog-D8DwHiys.js → InvalidSettingsDialog-KFg61s41.js} +1 -1
  27. package/dist/chunks/ListItem-DCQhApdJ.js +1 -0
  28. package/dist/chunks/{MCPConnectionManager-CsPizxTx.js → MCPConnectionManager-N-oJu3qn.js} +1 -1
  29. package/dist/chunks/{McpParsingWarnings-Cepe7RPZ.js → McpParsingWarnings-DsHSSgsx.js} +1 -1
  30. package/dist/chunks/{MessageSelector-BzUQUeDn.js → MessageSelector-D10JMnsc.js} +2 -2
  31. package/dist/chunks/Messages-CQdQJ2AA.js +11 -0
  32. package/dist/chunks/{Onboarding-BZUXID6q.js → Onboarding-DBJX6Cnf.js} +1 -1
  33. package/dist/chunks/{OverageCreditUpsell-Dhm7HBuD.js → OverageCreditUpsell-B4beCEX2.js} +1 -1
  34. package/dist/chunks/{PermissionDialog-BrRBxx5o.js → PermissionDialog-R-Vl4Tk-.js} +1 -1
  35. package/dist/chunks/{PluginSettings-BZ-PX9Tg.js → PluginSettings-BBrFCSpQ.js} +1 -1
  36. package/dist/chunks/{PressEnterToContinue-DtA_p3X6.js → PressEnterToContinue-BYdiZwYD.js} +1 -1
  37. package/dist/chunks/{PromptInputFooterSuggestions-Da8Fty6P.js → PromptInputFooterSuggestions-DAFZfAT0.js} +1 -1
  38. package/dist/chunks/{PromptInputHelpMenu-Bz7EPzzq.js → PromptInputHelpMenu-Bjjr3tYl.js} +1 -1
  39. package/dist/chunks/{QueryEngine-CmJK27jU.js → QueryEngine-BSk8-8vB.js} +1 -1
  40. package/dist/chunks/{REPL-DxEJZpIp.js → REPL-CXcCBQuz.js} +13 -13
  41. package/dist/chunks/REPL-D-akKdFc.js +1 -0
  42. package/dist/chunks/{RemoteCallout-DONJj8l2.js → RemoteCallout-CuxqarhC.js} +1 -1
  43. package/dist/chunks/{RemoteSessionManager-BvvNspY8.js → RemoteSessionManager-BhPF41Wn.js} +1 -1
  44. package/dist/chunks/{ResumeConversation-EpjJdFHu.js → ResumeConversation-hmIOkZ2U.js} +1 -1
  45. package/dist/chunks/{SSETransport-D51Jfdaj.js → SSETransport-8yaTbdSK.js} +1 -1
  46. package/dist/chunks/SearchBox-Bu4gYF0J.js +1 -0
  47. package/dist/chunks/SearchExtraToolsTool-wDSdfnRo.js +1 -0
  48. package/dist/chunks/SentryErrorBoundary-Duyg6HeT.js +1 -0
  49. package/dist/chunks/{SentryErrorBoundary-nYTimi4l.js → SentryErrorBoundary-ydwbrVTx.js} +1 -1
  50. package/dist/chunks/{Settings-C2vEJjLx.js → Settings-BSbzT25q.js} +2 -2
  51. package/dist/chunks/{TeleportProgress--jgrqIfW.js → TeleportProgress-CNcl_DxR.js} +1 -1
  52. package/dist/chunks/{TeleportRepoMismatchDialog-BKDaFT_L.js → TeleportRepoMismatchDialog-DJc8_mjE.js} +1 -1
  53. package/dist/chunks/{TeleportResumeWrapper-CxlpiHIz.js → TeleportResumeWrapper-Cw438s-J.js} +1 -1
  54. package/dist/chunks/{ThemePicker-CYL4C-F-.js → ThemePicker-8X6yAwuQ.js} +1 -1
  55. package/dist/chunks/{TmuxBackend-C_N4ww8i.js → TmuxBackend-CqAnVFoI.js} +1 -1
  56. package/dist/chunks/{TrustDialog-CYdftZ1M.js → TrustDialog-Ch1FJzxi.js} +1 -1
  57. package/dist/chunks/{ValidationErrorsList-CaTwOP3f.js → ValidationErrorsList-sgfvJPWZ.js} +1 -1
  58. package/dist/chunks/{WelcomeV2-5rgKm4Mz.js → WelcomeV2-Bu8l3w90.js} +1 -1
  59. package/dist/chunks/{WindowsTerminalBackend-BzoSs0VA.js → WindowsTerminalBackend-Bvq7nHOp.js} +1 -1
  60. package/dist/chunks/{add-dir-RNzFR3XZ.js → add-dir-DqrRNnxe.js} +1 -1
  61. package/dist/chunks/{agentDisplay-DgeOQY1E.js → agentDisplay-DcxzWi1v.js} +1 -1
  62. package/dist/chunks/{agents-D7cgzb3f.js → agents-Do1ynqiW.js} +1 -1
  63. package/dist/chunks/{agents-iMtFurok.js → agents-QqLm1wcM.js} +1 -1
  64. package/dist/chunks/{ant-CF1iRpXD.js → ant-D5gD6O-r.js} +1 -1
  65. package/dist/chunks/api-VMfJpk1G.js +1 -0
  66. package/dist/chunks/{api-DMbWqJlK.js → api-hcsOinLV.js} +1 -1
  67. package/dist/chunks/{artifacts-D2kY_AMp.js → artifacts-DH8c2yG0.js} +1 -1
  68. package/dist/chunks/{assistant-JAqAZqaE.js → assistant-CemNvrYr.js} +1 -1
  69. package/dist/chunks/assistant-D7D1sqTB.js +1 -0
  70. package/dist/chunks/{assistant-CZ4VXgzH.js → assistant-DkECAILU.js} +1 -1
  71. package/dist/chunks/auth-CGdLe3rq.js +1 -0
  72. package/dist/chunks/{auth-BemPA3ot.js → auth-Dm8aWPRh.js} +1 -1
  73. package/dist/chunks/{autoMode-CGovMAzJ.js → autoMode-dygqoN_C.js} +1 -1
  74. package/dist/chunks/{autonomy-BVXyNEj0.js → autonomy-BdxnxJnk.js} +1 -1
  75. package/dist/chunks/{autonomy-BnAHLZWH.js → autonomy-DPeEmb00.js} +1 -1
  76. package/dist/chunks/{autonomyPanel-COMI2iR0.js → autonomyPanel-Bocl2taZ.js} +1 -1
  77. package/dist/chunks/backgroundHousekeeping-4H6yTjsj.js +1 -0
  78. package/dist/chunks/{backgroundHousekeeping-BRtG20l2.js → backgroundHousekeeping-zf-tDimg.js} +2 -2
  79. package/dist/chunks/{banner-D_rqe2XQ.js → banner-DUL-7A0b.js} +1 -1
  80. package/dist/chunks/{branch-BnKwIQtC.js → branch-DwdVgun5.js} +1 -1
  81. package/dist/chunks/{break-cache-CDzQDHwY.js → break-cache-DjCRzxDv.js} +1 -1
  82. package/dist/chunks/{bridge-ChVjEHVq.js → bridge-DkkMogD_.js} +2 -2
  83. package/dist/chunks/bridgeConfig-CTJBoASk.js +1 -0
  84. package/dist/chunks/{bridgeConfig-e0MGfed6.js → bridgeConfig-l6Ldi_hk.js} +1 -1
  85. package/dist/chunks/{bridgeEnabled-DR-v8AXw.js → bridgeEnabled-DYclTb9d.js} +1 -1
  86. package/dist/chunks/bridgeEnabled-SMuWz3Is.js +1 -0
  87. package/dist/chunks/{bridgeMain-OsR-_PRp.js → bridgeMain-Ct5oDosG.js} +11 -11
  88. package/dist/chunks/bridgeMain-UqwOi37W.js +1 -0
  89. package/dist/chunks/{bridgeMessaging-BvBnxgD4.js → bridgeMessaging-CYe1Cixl.js} +1 -1
  90. package/dist/chunks/{btw-_b16RGoh.js → btw-CyOlY5R-.js} +1 -1
  91. package/dist/chunks/{buddy-DJ3QSQyd.js → buddy-q-utA1_5.js} +1 -1
  92. package/dist/chunks/{bypassPermissionsKillswitch-OhGSWZrB.js → bypassPermissionsKillswitch-CTrRxzdz.js} +1 -1
  93. package/dist/chunks/{caches-Bp4F7tZ5.js → caches-Bz4yVQyE.js} +2 -2
  94. package/dist/chunks/caches-DKMoKTAZ.js +1 -0
  95. package/dist/chunks/{ccrClient-D7pEGzQa.js → ccrClient-DXiEw9xU.js} +1 -1
  96. package/dist/chunks/changeDetector--KPj2maX.js +1 -0
  97. package/dist/chunks/{channelNotification-BZFMAWln.js → channelNotification-CLPdvxGZ.js} +1 -1
  98. package/dist/chunks/channelNotification-fJgjqRMx.js +1 -0
  99. package/dist/chunks/{chrome-B5IxDA16.js → chrome-DxbhLWDW.js} +1 -1
  100. package/dist/chunks/clear-CYVCwiwu.js +1 -0
  101. package/dist/chunks/client-DvWRsIpi.js +1 -0
  102. package/dist/chunks/{color-BYVWpzI8.js → color-DiLtK8_L.js} +1 -1
  103. package/dist/chunks/commands-BT2_ICaW.js +1 -0
  104. package/dist/chunks/commitAttribution-Bpbro1a4.js +1 -0
  105. package/dist/chunks/{commitAttribution-ClSlXMPG.js → commitAttribution-CJXF8wMs.js} +1 -1
  106. package/dist/chunks/{compact-B9c12JXf.js → compact-C6xm1N5a.js} +1 -1
  107. package/dist/chunks/{companion-C8e7dVlu.js → companion-rXSt0nmz.js} +1 -1
  108. package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
  109. package/dist/chunks/{completionCache-Br6OwASx.js → completionCache-C7hDqIDL.js} +1 -1
  110. package/dist/chunks/{config-C-yz-f4W.js → config-BE3jrcr-.js} +1 -1
  111. package/dist/chunks/{config-Bxgfx_nO.js → config-CzC08IjE.js} +1 -1
  112. package/dist/chunks/{context-Bf5t6C-a.js → context-BHE99SMA.js} +1 -1
  113. package/dist/chunks/context-noninteractive-BQDOgVUW.js +1 -0
  114. package/dist/chunks/{context-noninteractive-CJu7hZCM.js → context-noninteractive-BZQIUH_y.js} +13 -13
  115. package/dist/chunks/conversation-Bt6QdGd-.js +1 -0
  116. package/dist/chunks/{conversation-BYMS5Hqa.js → conversation-CBPRFDod.js} +1 -1
  117. package/dist/chunks/{copy-C0BZ7Gm0.js → copy-TgphIVzy.js} +1 -1
  118. package/dist/chunks/{createSSHSession-DNXCWneI.js → createSSHSession-CSKEZ4ic.js} +1 -1
  119. package/dist/chunks/createSession-BaHXBnfG.js +1 -0
  120. package/dist/chunks/{createSession-DjM6Ev45.js → createSession-Ce218tQj.js} +1 -1
  121. package/dist/chunks/{cronJitterConfig-CaFkPXKB.js → cronJitterConfig-CnKed5Gi.js} +1 -1
  122. package/dist/chunks/crossProjectResume-BFlsTYOq.js +40 -0
  123. package/dist/chunks/{datadog-ClZjR-jM.js → datadog-D5jSRybW.js} +1 -1
  124. package/dist/chunks/datadog-DgYqUGa-.js +1 -0
  125. package/dist/chunks/desktop-cjA0tGOa.js +1 -0
  126. package/dist/chunks/{diff-D9hjPq4W.js → diff-DMd61IjE.js} +1 -1
  127. package/dist/chunks/{doctor-4-im_J_h.js → doctor-ueUYyjyL.js} +1 -1
  128. package/dist/chunks/{effort-Bz-9GIpe.js → effort-B9IvAstG.js} +1 -1
  129. package/dist/chunks/entry-Bq_KRMWs.js +14 -0
  130. package/dist/chunks/{envLessBridgeConfig-DW4-nPbZ.js → envLessBridgeConfig-CpjlwmvF.js} +1 -1
  131. package/dist/chunks/envLessBridgeConfig-D_GCqhTu.js +1 -0
  132. package/dist/chunks/{exit-DBNDTR4b.js → exit-DtjFIrvJ.js} +1 -1
  133. package/dist/chunks/{export-CQHUM_Nv.js → export-CP638-TO.js} +1 -1
  134. package/dist/chunks/{exportRenderer-CuIDQBLH.js → exportRenderer-B5emJDvn.js} +1 -1
  135. package/dist/chunks/extra-usage-C4dUWLhg.js +1 -0
  136. package/dist/chunks/{extra-usage-DTr6gExD.js → extra-usage-DIm8nrKj.js} +1 -1
  137. package/dist/chunks/{extra-usage-core-D3CwYO_8.js → extra-usage-core-DERKSEe1.js} +1 -1
  138. package/dist/chunks/{extra-usage-noninteractive-d-QVg1D5.js → extra-usage-noninteractive-Dq5dog_-.js} +1 -1
  139. package/dist/chunks/{extraUsage-BNRQOkgU.js → extraUsage-BMvDY0Sk.js} +1 -1
  140. package/dist/chunks/extractMemories-DS7XXeEo.js +1 -0
  141. package/dist/chunks/{fast-bkGXbuHX.js → fast-BP2t1xDM.js} +1 -1
  142. package/dist/chunks/fast-D1xIHYaN.js +1 -0
  143. package/dist/chunks/{feedback-BvFgE_FF.js → feedback-C-mR6zJr.js} +1 -1
  144. package/dist/chunks/{firstPartyEventLogger-D-ifHvWu.js → firstPartyEventLogger-sMmHdYjg.js} +1 -1
  145. package/dist/chunks/{flushGate-BA24vFBg.js → flushGate-C18XwNsa.js} +1 -1
  146. package/dist/chunks/{fpsMetrics-CBFlAGTS.js → fpsMetrics-DH78PzGr.js} +1 -1
  147. package/dist/chunks/{gates-C66Nz9b2.js → gates-Be5r2kKS.js} +1 -1
  148. package/dist/chunks/gates-CUAwAhPL.js +1 -0
  149. package/dist/chunks/{gemini-DuQl4hTA.js → gemini-BberPcp1.js} +1 -1
  150. package/dist/chunks/{generateRecap-CwBU76xi.js → generateRecap-B76UcVUS.js} +1 -1
  151. package/dist/chunks/{generateSessionName-LnmjE9jh.js → generateSessionName-BwtXd8TC.js} +1 -1
  152. package/dist/chunks/{githubRepoPathMapping-DrreQj47.js → githubRepoPathMapping-5IlVgR2l.js} +1 -1
  153. package/dist/chunks/{goal-BIvjF6B7.js → goal-DQ0jNcLO.js} +1 -1
  154. package/dist/chunks/{grok-KNLYSRBQ.js → grok-Dh_thT2_.js} +1 -1
  155. package/dist/chunks/{growthbook-ksjGAskq.js → growthbook-4ADV3CAt.js} +1 -1
  156. package/dist/chunks/{heapdump-Cz8vkcOr.js → heapdump-Dwqmh4SX.js} +1 -1
  157. package/dist/chunks/{help-Cx9OordP.js → help-Bznaywoi.js} +1 -1
  158. package/dist/chunks/hooks-DynUngv2.js +1 -0
  159. package/dist/chunks/{hooks-BW-d9Bdu.js → hooks-F-82cg6M.js} +1 -1
  160. package/dist/chunks/{hostAdapter-DLmaB6eN.js → hostAdapter-DpfLr3hX.js} +1 -1
  161. package/dist/chunks/{ide-CECrIg1r.js → ide-BfAKWufQ.js} +1 -1
  162. package/dist/chunks/{inboundAttachments-B0sGIu79.js → inboundAttachments-CFV_eqMu.js} +1 -1
  163. package/dist/chunks/inboundAttachments-Cug-8Xdy.js +1 -0
  164. package/dist/chunks/{initReplBridge-BAEMZEcg.js → initReplBridge-DV9KhSic.js} +1 -1
  165. package/dist/chunks/{insights-DeWggLxC.js → insights-BNsCwNYa.js} +1 -1
  166. package/dist/chunks/{install-pxH_HR1p.js → install-Bszzs98N.js} +1 -1
  167. package/dist/chunks/{install-github-app-DqKEiHQ1.js → install-github-app-DVxGR2rp.js} +1 -1
  168. package/dist/chunks/{install-slack-app-P1L9x-YI.js → install-slack-app-CjlRL19o.js} +1 -1
  169. package/dist/chunks/{instrumentation-Dx0s2jzr.js → instrumentation-BOYPOtyu.js} +3 -3
  170. package/dist/chunks/{job-CbxxkPgE.js → job-BvD5_lGz.js} +1 -1
  171. package/dist/chunks/{keybindings-BBPC7FAc.js → keybindings-RPmPPGhp.js} +1 -1
  172. package/dist/chunks/{lang-CKp0Tn76.js → lang-9VNaOJMz.js} +1 -1
  173. package/dist/chunks/language-CjFs6_la.js +1 -0
  174. package/dist/chunks/{language-iERMuOEu.js → language-Ct5Nkqm6.js} +1 -1
  175. package/dist/chunks/{launchAgentsPlatform-DQvKVtl2.js → launchAgentsPlatform-CnoxFIXV.js} +1 -1
  176. package/dist/chunks/{launchAutofixPr-B7hu9C8h.js → launchAutofixPr-ChaDUtvx.js} +1 -1
  177. package/dist/chunks/{launchCommand-CJsikSlW.js → launchCommand-9eYsPG7W.js} +1 -1
  178. package/dist/chunks/{launchLocalMemory-Cpz7L5j5.js → launchLocalMemory-MwZfEJxz.js} +1 -1
  179. package/dist/chunks/{launchLocalVault-XLfOQtP7.js → launchLocalVault-B6Ib5WXx.js} +1 -1
  180. package/dist/chunks/{launchMemoryStores-Cz04PaDE.js → launchMemoryStores-D6xyGwQ1.js} +1 -1
  181. package/dist/chunks/{launchOnboarding-XPbUNdHS.js → launchOnboarding-BtdAOO3p.js} +1 -1
  182. package/dist/chunks/{launchSchedule-B1VEe3o-.js → launchSchedule-XVljzNKg.js} +1 -1
  183. package/dist/chunks/{launchSkillStore-Cy59z5xx.js → launchSkillStore-QT8Qcc5N.js} +1 -1
  184. package/dist/chunks/{launchTeleport-ZPM_DvzK.js → launchTeleport-DwxPesKQ.js} +1 -1
  185. package/dist/chunks/{launchVault-BhnTOZq8.js → launchVault-Dbti6pph.js} +1 -1
  186. package/dist/chunks/{loadAgentsDir-CQF8qhne.js → loadAgentsDir-BYWykYwn.js} +777 -777
  187. package/dist/chunks/loadAgentsDir-tPgCg0WD.js +1 -0
  188. package/dist/chunks/{loadPluginHooks-TyULD8KH.js → loadPluginHooks-2U3UO__Q.js} +1 -1
  189. package/dist/chunks/localSearch-CxwxzM8W.js +1 -0
  190. package/dist/chunks/{localSearch-BNYypHsK.js → localSearch-eWjZxMc8.js} +1 -1
  191. package/dist/chunks/login-CVVFklZw.js +1 -0
  192. package/dist/chunks/{login-CxbcJk9_.js → login-D1aQCqp0.js} +1 -1
  193. package/dist/chunks/{logoV2Utils-Br_w1z39.js → logoV2Utils-CPNvLtol.js} +1 -1
  194. package/dist/chunks/logout-BYsszpXx.js +1 -0
  195. package/dist/chunks/{magicDocs-DnxdS9yV.js → magicDocs-DAvjAbAJ.js} +1 -1
  196. package/dist/chunks/{main-FBmdv32j.js → main-BKlQiSuc.js} +31 -31
  197. package/dist/chunks/{mappers-BNI_df3v.js → mappers-BBkM1aA5.js} +1 -1
  198. package/dist/chunks/{mcp-esqdO_lV.js → mcp-C3jlClk0.js} +3 -3
  199. package/dist/chunks/{mcp-BhAGhDQE.js → mcp-Cmw8ecKk.js} +1 -1
  200. package/dist/chunks/{mcp-DbqUZ1Cf.js → mcp-ya96irNP.js} +1 -1
  201. package/dist/chunks/{mcpServer-DeL2ADSF.js → mcpServer-B1q9blAc.js} +1 -1
  202. package/dist/chunks/{mcpServer-Ct-GVL-y.js → mcpServer-BJB5g6j2.js} +1 -1
  203. package/dist/chunks/{memory-DwapBEsD.js → memory-CxiukAGg.js} +1 -1
  204. package/dist/chunks/{mobile-D7MSmMhc.js → mobile-DLGq6g08.js} +1 -1
  205. package/dist/chunks/{modalContext-DxfeT_3m.js → modalContext-CuTwi_eD.js} +1 -1
  206. package/dist/chunks/{mode-B5cmHCvz.js → mode-DqAJ2y6R.js} +1 -1
  207. package/dist/chunks/{model-BePO0VaC.js → model-C8TW-qjl.js} +1 -1
  208. package/dist/chunks/model-VB4ItNVB.js +1 -0
  209. package/dist/chunks/{onChangeAppState-B3d5iy6T.js → onChangeAppState-BG1pF7ht.js} +1 -1
  210. package/dist/chunks/{openai-fRhGOIQq.js → openai-CHoRhRtf.js} +1 -1
  211. package/dist/chunks/{overageCreditGrant-B6sx7IFi.js → overageCreditGrant-DYMg1lV4.js} +1 -1
  212. package/dist/chunks/{panel-CAVG5BOM.js → panel-BY6q16am.js} +1 -1
  213. package/dist/chunks/{panel-DU8y_jcf.js → panel-BdRBXAv3.js} +1 -1
  214. package/dist/chunks/panelCall-SYrmrKt9.js +1 -0
  215. package/dist/chunks/{passes-CWPPUigp.js → passes-CSV-SZJc.js} +1 -1
  216. package/dist/chunks/{paths-4ZWdjPP4.js → paths-BZjPDxMm.js} +3 -3
  217. package/dist/chunks/{permissions-DW8CRuJp.js → permissions-DBddT2NP.js} +1 -1
  218. package/dist/chunks/{pipeTransport-CUeYRWJn.js → pipeTransport-uK7GxbSG.js} +1 -1
  219. package/dist/chunks/{plan-Cf-tHvGq.js → plan-DEbo-Adi.js} +1 -1
  220. package/dist/chunks/plugin-Cops24hg.js +1 -0
  221. package/dist/chunks/{pluginAutoupdate-CdmKzIRf.js → pluginAutoupdate-Bg7JMOHN.js} +1 -1
  222. package/dist/chunks/{pluginBlocklist-C9XwbFSo.js → pluginBlocklist-DEM_RWc2.js} +1 -1
  223. package/dist/chunks/{pluginCliCommands-CmY_maYg.js → pluginCliCommands-DyYEg7Cv.js} +1 -1
  224. package/dist/chunks/{pluginFlagging-DyzxZolj.js → pluginFlagging-DwChUZMJ.js} +1 -1
  225. package/dist/chunks/{pluginOperations-mr4I7Jw9.js → pluginOperations-COyT4tHs.js} +1 -1
  226. package/dist/chunks/{pluginStartupCheck-B6OdK29Z.js → pluginStartupCheck-DCxJJkYs.js} +1 -1
  227. package/dist/chunks/pluginStartupCheck-DjfIaOch.js +1 -0
  228. package/dist/chunks/{plugins-rdPgpjF8.js → plugins-BanQjHmw.js} +1 -1
  229. package/dist/chunks/policyLimits-D-Y_soHx.js +1 -0
  230. package/dist/chunks/{pollConfig-DLbuHBse.js → pollConfig-DBNHhvHf.js} +1 -1
  231. package/dist/chunks/{poor-pmz2b7zu.js → poor-aPQce502.js} +1 -1
  232. package/dist/chunks/{poorMode-DD-q_w6Z.js → poorMode-CFRuV-nB.js} +1 -1
  233. package/dist/chunks/poorMode-DQagHYWe.js +1 -0
  234. package/dist/chunks/{print-luaON-Cg.js → print-Cf2tY__0.js} +4 -4
  235. package/dist/chunks/{privacy-settings-BpigC4oX.js → privacy-settings-CYkM3Aem.js} +1 -1
  236. package/dist/chunks/{processBashCommand-f_84bSlP.js → processBashCommand-BLSC8o8M.js} +1 -1
  237. package/dist/chunks/{processSlashCommand-BkBqV3Jd.js → processSlashCommand-Ch9B-6nh.js} +1 -1
  238. package/dist/chunks/projectContext-2CzYVggO.js +1 -0
  239. package/dist/chunks/projectContext-CVk2Ix1r.js +1 -0
  240. package/dist/chunks/{prompt-CogZQuTN.js → prompt-BGNhFY1n.js} +1 -1
  241. package/dist/chunks/prompt-CrNwH5kr.js +1 -0
  242. package/dist/chunks/prompt-dH0MMivt.js +1 -0
  243. package/dist/chunks/{promptEditor-C___2FFs.js → promptEditor-U03qQWbq.js} +1 -1
  244. package/dist/chunks/{protocolHandler-qwll5gSY.js → protocolHandler-3yBj9w5N.js} +1 -1
  245. package/dist/chunks/{rate-limit-options-nQcTipEp.js → rate-limit-options-D-xl_9PO.js} +1 -1
  246. package/dist/chunks/{rcDebugLog-DOXxIr8l.js → rcDebugLog-ClX1msJX.js} +1 -1
  247. package/dist/chunks/{referral-CMPZjf3I.js → referral-qe-yqXJE.js} +1 -1
  248. package/dist/chunks/{refresh-CP7Dnjp4.js → refresh-CO_P3WKA.js} +1 -1
  249. package/dist/chunks/{registerProtocol-DCNuqdCC.js → registerProtocol-CClQph00.js} +1 -1
  250. package/dist/chunks/{registry-DLqZJleQ.js → registry-C0zdU2Hb.js} +1 -1
  251. package/dist/chunks/{release-notes-BsDW6T9f.js → release-notes-CyZHxWTF.js} +1 -1
  252. package/dist/chunks/{releaseNotes-Tbd018Qz.js → releaseNotes-BtxL5R5Q.js} +2 -2
  253. package/dist/chunks/{reload-plugins-iG9ZE9wF.js → reload-plugins-B0eR8JHH.js} +1 -1
  254. package/dist/chunks/{remote-env-BFntnltf.js → remote-env-B_sIjY87.js} +1 -1
  255. package/dist/chunks/{remoteBridgeCore-Dpko9c-J.js → remoteBridgeCore-C3WRaLpU.js} +1 -1
  256. package/dist/chunks/{remoteControlServer-D3P82kVF.js → remoteControlServer-BOj9qmgH.js} +1 -1
  257. package/dist/chunks/{rename-Codm2nfB.js → rename-BFAC3WLD.js} +1 -1
  258. package/dist/chunks/{resume-BB1ceL_x.js → resume-CpivBr9S.js} +1 -1
  259. package/dist/chunks/{runtimeObserver-BpRn0RiL.js → runtimeObserver-C2_7Vsnd.js} +1 -1
  260. package/dist/chunks/{runtimeObserver-D6aF77Dq.js → runtimeObserver-sOnfVR7t.js} +2 -2
  261. package/dist/chunks/sandbox-adapter-jX_WzvnK.js +1 -0
  262. package/dist/chunks/{sandbox-toggle-DZ-8qXDS.js → sandbox-toggle-Bv68-Ca7.js} +1 -1
  263. package/dist/chunks/searchExtraTools-xPuOKDpi.js +1 -0
  264. package/dist/chunks/{sentry-CVdHlmNQ.js → sentry-BBCn6RGP.js} +1 -1
  265. package/dist/chunks/{session-B4j1ViVc.js → session-DfvxYP8o.js} +1 -1
  266. package/dist/chunks/{sessionDiscovery-DkIIFsWX.js → sessionDiscovery-CyuRBTAm.js} +1 -1
  267. package/dist/chunks/sessionFileAccessHooks-DiKsr7H7.js +1 -0
  268. package/dist/chunks/sessionMemory-C34-eFnJ.js +1 -0
  269. package/dist/chunks/{sessionMemory-CnT3-Mj7.js → sessionMemory-kYQnpcyG.js} +1 -1
  270. package/dist/chunks/sessionMemoryUtils-CcJcgftx.js +1 -0
  271. package/dist/chunks/sessionObserver-B73s6yu8.js +1 -0
  272. package/dist/chunks/{sessionObserver-gjdJ91cv.js → sessionObserver-CTkIYplM.js} +1 -1
  273. package/dist/chunks/sessionStorage-BHi7PKs-.js +1 -0
  274. package/dist/chunks/{sessionTitle-CSU5-VK9.js → sessionTitle-ePQRpeV2.js} +1 -1
  275. package/dist/chunks/{sessionTracing-BDN64fWh.js → sessionTracing-81-RIJBo.js} +1 -1
  276. package/dist/chunks/{settingsSync-Nixbcaox.js → settingsSync-DEFWnE1o.js} +1 -1
  277. package/dist/chunks/{setup-CZxLEcQh.js → setup-2611vmGJ.js} +1 -1
  278. package/dist/chunks/{setup-n3Ixr_gs.js → setup-BJSk1czd.js} +2 -2
  279. package/dist/chunks/{setup-9nXlu56r.js → setup-CTfYsKsz.js} +1 -1
  280. package/dist/chunks/{shadowedRuleDetection-CCS7R7F1.js → shadowedRuleDetection-CGD7Nx03.js} +1 -1
  281. package/dist/chunks/{sideQuestion-MzExGTvn.js → sideQuestion-BcP9Mm-5.js} +1 -1
  282. package/dist/chunks/{sink-BL75jACh.js → sink-D_t1TIt9.js} +1 -1
  283. package/dist/chunks/sink-i8NmYch9.js +1 -0
  284. package/dist/chunks/sinks-3w0mLszx.js +1 -0
  285. package/dist/chunks/{sinks-C-gxj_Eu.js → sinks-DXsozhmS.js} +2 -2
  286. package/dist/chunks/{skill-learning-B9Msm4jG.js → skill-learning-CZm2iMik.js} +2 -2
  287. package/dist/chunks/{skillChangeDetector-DlWPJTny.js → skillChangeDetector-1aFn40GC.js} +1 -1
  288. package/dist/chunks/{skillGapStore-Cpmbwyo3.js → skillGapStore-DzHv8v-D.js} +1 -1
  289. package/dist/chunks/{skillGapStore-CsADiV5a.js → skillGapStore-cWo6Ra90.js} +2 -2
  290. package/dist/chunks/{skillGenerator-_khb-Gmc.js → skillGenerator-D_W1IeP3.js} +2 -2
  291. package/dist/chunks/skillLearning-Bddmbx8E.js +1 -0
  292. package/dist/chunks/skillLearning-C-uI_jZB.js +1 -0
  293. package/dist/chunks/{skillPanel-DQmj3Yh1.js → skillPanel-ChmOZu4F.js} +3 -3
  294. package/dist/chunks/{skillSearchPanel-6w_zzoI3.js → skillSearchPanel-CVx2b4Pr.js} +2 -2
  295. package/dist/chunks/{skills-B3LN9tp9.js → skills-CWX1SydA.js} +1 -1
  296. package/dist/chunks/{sprites-8JVWnXzp.js → sprites-BuvEFwW6.js} +1 -1
  297. package/dist/chunks/{src-KjMLauwe.js → src-Di342QoJ.js} +1 -1
  298. package/dist/chunks/{src-BJM0zMNO.js → src-poaoYkuc.js} +1 -1
  299. package/dist/chunks/startupProfiler-CBcN1Chw.js +3 -0
  300. package/dist/chunks/startupProfiler-DtTgsdnI.js +1 -0
  301. package/dist/chunks/{staticRender-DboURbK0.js → staticRender-DKFIRhkH.js} +1 -1
  302. package/dist/chunks/{stats-BDlygx5X.js → stats-wjMQA-CA.js} +1 -1
  303. package/dist/chunks/status-CyU7IQhO.js +1 -0
  304. package/dist/chunks/{statusNoticeHelpers-Cd_LDPvn.js → statusNoticeHelpers-JNibsI_v.js} +1 -1
  305. package/dist/chunks/{tag-BLPgXlQZ.js → tag-opEEZI5B.js} +1 -1
  306. package/dist/chunks/tasks-CCtnU5u1.js +1 -0
  307. package/dist/chunks/{teamHelpers-B-poMJeE.js → teamHelpers-BJJs8taN.js} +1 -1
  308. package/dist/chunks/teamHelpers-D41zdxpl.js +1 -0
  309. package/dist/chunks/{teammateModeSnapshot-B1_3D1CQ.js → teammateModeSnapshot-CLiiOCkO.js} +1 -1
  310. package/dist/chunks/teammateModeSnapshot-q-bARbLL.js +1 -0
  311. package/dist/chunks/{teleport-CSo3PT05.js → teleport-ClxQigSQ.js} +1 -1
  312. package/dist/chunks/{templateJobs-BVebX2BK.js → templateJobs-C6D7GC-Q.js} +1 -1
  313. package/dist/chunks/{terminalSetup-DHWL0gnz.js → terminalSetup-2ioFcRAA.js} +1 -1
  314. package/dist/chunks/{terminalSetup-DZTEKKne.js → terminalSetup-B3bN4Cj8.js} +1 -1
  315. package/dist/chunks/{theme-BHQSNwSe.js → theme-Dgq_Og2P.js} +1 -1
  316. package/dist/chunks/thinkback-BE8NNmAo.js +1 -0
  317. package/dist/chunks/{thinkback-DOzxcgMy.js → thinkback-C43WBHis.js} +1 -1
  318. package/dist/chunks/{thinkback-play-CK1C_F7G.js → thinkback-play-D2_n_aoQ.js} +1 -1
  319. package/dist/chunks/{toolEventObserver-BIjUIh4k.js → toolEventObserver-B7EA-nNa.js} +1 -1
  320. package/dist/chunks/{toolEventObserver-XPorjjtG.js → toolEventObserver-BG_3sGCL.js} +1 -1
  321. package/dist/chunks/toolPool-BLshLuvo.js +1 -0
  322. package/dist/chunks/{toolPool-hQlvQn-j.js → toolPool-HYKCHxDA.js} +1 -1
  323. package/dist/chunks/{trustedDevice-D-L5uAor.js → trustedDevice-DeNxe6bl.js} +1 -1
  324. package/dist/chunks/{trustedDevice-CyfQd_GU.js → trustedDevice-S34i6Jc9.js} +1 -1
  325. package/dist/chunks/{tui-C7aBeORE.js → tui-DcXIK0fP.js} +1 -1
  326. package/dist/chunks/{ultrareviewCommand-rnMsUWTn.js → ultrareviewCommand-C45bmZqN.js} +1 -1
  327. package/dist/chunks/undercover-B4sdXe12.js +1 -0
  328. package/dist/chunks/{undercover-ClLYK52H.js → undercover-DoUSM8d6.js} +1 -1
  329. package/dist/chunks/{updateCCB-pqkACWbs.js → updateCCB-BuAm25MX.js} +1 -1
  330. package/dist/chunks/{upgrade-DpfZlPyC.js → upgrade-BDKg286g.js} +1 -1
  331. package/dist/chunks/upgrade-BiWGhm2d.js +1 -0
  332. package/dist/chunks/{upload-D98tqZnO.js → upload-CMptZXZs.js} +1 -1
  333. package/dist/chunks/{usage-CRquq5_O.js → usage-Bw_LK9YI.js} +1 -1
  334. package/dist/chunks/{usage-BWd5R6DU.js → usage-DEWsKPXj.js} +1 -1
  335. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-Dkcp6EkA.js → useExitOnCtrlCDWithKeybindings-BHi41Ku_.js} +1 -1
  336. package/dist/chunks/useKeybinding-DPOUuymz.js +1 -0
  337. package/dist/chunks/useMainLoopModel-D0PmGDuy.js +1 -0
  338. package/dist/chunks/{useManagePlugins-DMY74XAk.js → useManagePlugins-B-ejJsXy.js} +1 -1
  339. package/dist/chunks/{useMergedTools-NN58Kguw.js → useMergedTools-B6x9qtfj.js} +1 -1
  340. package/dist/chunks/{useSearchInput-CodP_5SB.js → useSearchInput-BpMLsxaS.js} +1 -1
  341. package/dist/chunks/{useSettingsErrors-BRxaYl6B.js → useSettingsErrors-DUe4k_RK.js} +1 -1
  342. package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
  343. package/dist/chunks/{useVoice-ByU-q_w4.js → useVoice-C3ryR2HE.js} +1 -1
  344. package/dist/chunks/{util-SpgBY5_I.js → util-DWl5gjmI.js} +1 -1
  345. package/dist/chunks/utils-DP3EtI6F.js +1 -0
  346. package/dist/chunks/{validatePlugin-CxCXNV8o.js → validatePlugin-8EMSASvV.js} +1 -1
  347. package/dist/chunks/{vim-ByXlYzf9.js → vim-CaZ20SrQ.js} +1 -1
  348. package/dist/chunks/{voice-BnLS_SdQ.js → voice-BrnKguEV.js} +1 -1
  349. package/dist/chunks/{voiceModeEnabled-D070o6QK.js → voiceModeEnabled-3eg8vSqy.js} +1 -1
  350. package/dist/chunks/voiceModeEnabled-B1ARFTcz.js +1 -0
  351. package/dist/chunks/voiceStreamSTT-CONK4g-B.js +1 -0
  352. package/dist/chunks/{voiceStreamSTT-vkQ-Aop7.js → voiceStreamSTT-D7jWIYwz.js} +1 -1
  353. package/dist/chunks/{web-tools-1yM0ZBfA.js → web-tools-BT3TbzG5.js} +1 -1
  354. package/dist/chunks/{workerRegistry-7xGv_sNB.js → workerRegistry-C_i5wwjL.js} +1 -1
  355. package/dist/chunks/worktree-CFNQKVGn.js +1 -0
  356. package/dist/chunks/{xml-BUaEXGXx.js → xml-DOXio8vw.js} +1 -1
  357. package/dist/cli.js +1 -1
  358. package/package.json +1 -1
  359. package/dist/chunks/ApproveApiKey-oTZKoMvB.js +0 -1
  360. package/dist/chunks/ClaudeMdExternalIncludesDialog-5FCT81WS.js +0 -1
  361. package/dist/chunks/ConsoleOAuthFlow-BmGziW64.js +0 -1
  362. package/dist/chunks/Dialog-C8eGKH-e.js +0 -1
  363. package/dist/chunks/Doctor-DohPtIKu.js +0 -1
  364. package/dist/chunks/Grove-C_ocvHd3.js +0 -1
  365. package/dist/chunks/ListItem-DDMe4CJ3.js +0 -1
  366. package/dist/chunks/Messages-KmeXIJqL.js +0 -11
  367. package/dist/chunks/REPL-BBmn_itf.js +0 -1
  368. package/dist/chunks/SearchBox-CciJ8giD.js +0 -1
  369. package/dist/chunks/SearchExtraToolsTool-kjVFsFkT.js +0 -1
  370. package/dist/chunks/SentryErrorBoundary-DsrmgmKF.js +0 -1
  371. package/dist/chunks/api-DkgaFAzq.js +0 -1
  372. package/dist/chunks/assistant-CiNV3Q0f.js +0 -1
  373. package/dist/chunks/auth-CbQCc9vz.js +0 -1
  374. package/dist/chunks/backgroundHousekeeping-LYpOamcN.js +0 -1
  375. package/dist/chunks/bridgeConfig-Budgp2Go.js +0 -1
  376. package/dist/chunks/bridgeEnabled-DmvmwuUY.js +0 -1
  377. package/dist/chunks/bridgeMain-KYR5iq6H.js +0 -1
  378. package/dist/chunks/caches-CkH9F-Fd.js +0 -1
  379. package/dist/chunks/ccshareResume-DPP1blaU.js +0 -1
  380. package/dist/chunks/changeDetector-IFbty4jj.js +0 -1
  381. package/dist/chunks/channelNotification-CIyWY0hs.js +0 -1
  382. package/dist/chunks/clear-BVjSQsUL.js +0 -1
  383. package/dist/chunks/client-BUUsZdSe.js +0 -1
  384. package/dist/chunks/commands-pTQdOvN6.js +0 -1
  385. package/dist/chunks/commitAttribution-QPrKt_BF.js +0 -1
  386. package/dist/chunks/completionCache-BB7-y2BX.js +0 -1
  387. package/dist/chunks/context-noninteractive-OUTZ6BKj.js +0 -1
  388. package/dist/chunks/conversation-Bs8l0KNl.js +0 -1
  389. package/dist/chunks/createSession-DpqtD4ML.js +0 -1
  390. package/dist/chunks/crossProjectResume-BCr6jfGz.js +0 -40
  391. package/dist/chunks/datadog-DlzPb5oG.js +0 -1
  392. package/dist/chunks/desktop-WH8s-9-6.js +0 -1
  393. package/dist/chunks/entry-CEBaLwEG.js +0 -14
  394. package/dist/chunks/envLessBridgeConfig-izoVnE8s.js +0 -1
  395. package/dist/chunks/extra-usage-VSASGlte.js +0 -1
  396. package/dist/chunks/extractMemories-hQlhiVOD.js +0 -1
  397. package/dist/chunks/fast-2gWrhEFZ.js +0 -1
  398. package/dist/chunks/gates-dO6m4Hdp.js +0 -1
  399. package/dist/chunks/hooks-BWoN0nQP.js +0 -1
  400. package/dist/chunks/inboundAttachments-D8vq1NQO.js +0 -1
  401. package/dist/chunks/language-CSDpzbTz.js +0 -1
  402. package/dist/chunks/loadAgentsDir-B-4D2dVE.js +0 -1
  403. package/dist/chunks/localSearch-DsFH9yls.js +0 -1
  404. package/dist/chunks/login-CEJEl2mW.js +0 -1
  405. package/dist/chunks/logout-BXr4jzNY.js +0 -1
  406. package/dist/chunks/model-CgH43-hO.js +0 -1
  407. package/dist/chunks/panelCall-DUQdjDee.js +0 -1
  408. package/dist/chunks/plugin-DXhCgoNC.js +0 -1
  409. package/dist/chunks/pluginStartupCheck-BFuZqpnX.js +0 -1
  410. package/dist/chunks/policyLimits-B3dtp_Fe.js +0 -1
  411. package/dist/chunks/poorMode-BPIUnFFi.js +0 -1
  412. package/dist/chunks/projectContext-2Z2w8AI8.js +0 -1
  413. package/dist/chunks/projectContext-fS1t-xRh.js +0 -1
  414. package/dist/chunks/prompt-CriAIdkT.js +0 -1
  415. package/dist/chunks/prompt-TGc_H1cL.js +0 -1
  416. package/dist/chunks/sandbox-adapter-DrHD1mch.js +0 -1
  417. package/dist/chunks/searchExtraTools-Dwg6ZafS.js +0 -1
  418. package/dist/chunks/sessionFileAccessHooks-n7HcOfZ7.js +0 -1
  419. package/dist/chunks/sessionMemory-DVq43VXP.js +0 -1
  420. package/dist/chunks/sessionMemoryUtils-BjkdLRvh.js +0 -1
  421. package/dist/chunks/sessionObserver-CrfmnMzL.js +0 -1
  422. package/dist/chunks/sessionStorage-BTbr9wkZ.js +0 -1
  423. package/dist/chunks/sink-CoUVbLFs.js +0 -1
  424. package/dist/chunks/sinks-wuo1yQ_m.js +0 -1
  425. package/dist/chunks/skillLearning-CFnZiM5J.js +0 -1
  426. package/dist/chunks/skillLearning-D6mvGN90.js +0 -1
  427. package/dist/chunks/startupProfiler-BmnoJtfF.js +0 -1
  428. package/dist/chunks/startupProfiler-rCtNuhXz.js +0 -3
  429. package/dist/chunks/status-DlT1tUmc.js +0 -1
  430. package/dist/chunks/tasks-Bf1Nf3WX.js +0 -1
  431. package/dist/chunks/teamHelpers-DeQCfdgu.js +0 -1
  432. package/dist/chunks/teammateModeSnapshot-BRuKcJNr.js +0 -1
  433. package/dist/chunks/thinkback-CVYpxAyO.js +0 -1
  434. package/dist/chunks/toolPool-CDEeuQd2.js +0 -1
  435. package/dist/chunks/undercover-BviGW-bQ.js +0 -1
  436. package/dist/chunks/upgrade-DAuhXFVI.js +0 -1
  437. package/dist/chunks/useKeybinding-DOjEx42R.js +0 -1
  438. package/dist/chunks/useMainLoopModel-BZoZdEdj.js +0 -1
  439. package/dist/chunks/useTerminalSize-mqo2Swmk.js +0 -1
  440. package/dist/chunks/utils-CM5oEyAY.js +0 -1
  441. package/dist/chunks/voiceModeEnabled-B3njLfhA.js +0 -1
  442. package/dist/chunks/voiceStreamSTT-BkeyhhFJ.js +0 -1
  443. package/dist/chunks/worktree-UA9gKCwL.js +0 -1
  444. /package/dist/chunks/{chromeNativeHost-DfYuJafI.js → chromeNativeHost-BldB1Zzi.js} +0 -0
  445. /package/dist/chunks/{claudeDesktop-CEQCLZmG.js → claudeDesktop-BqTW_pbB.js} +0 -0
  446. /package/dist/chunks/{cleanup-DUVwlFl7.js → cleanup-rCLlo4w8.js} +0 -0
  447. /package/dist/chunks/{eventLoopStallDetector-MNrFR4OH.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
  448. /package/dist/chunks/{postCommitAttribution-Br4g4R6h.js → postCommitAttribution-D8MoHFoz.js} +0 -0
  449. /package/dist/chunks/{sdkHeapDumpMonitor-DTHI5WbD.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
  450. /package/dist/chunks/{sessionDataUploader-BgmJTXQr.js → sessionDataUploader-CsNePsOb.js} +0 -0
  451. /package/dist/chunks/{udsClient-B85rNglp.js → udsClient-CBF_cZFW.js} +0 -0
@@ -1,14 +0,0 @@
1
- import{n as e,t}from"./defineProperty-80gRi2ZW.js";import{a as n,c as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./classPrivateFieldSet2-EAQNhHs8.js";import{Cn as f,Ln as p,Mn as m,Tt as h,Xn as g,Yn as _,_r as ee,kt as v,nn as y,un as b,vt as te,wn as x}from"./schemas-BGAvj1T4.js";import{t as ne}from"./v4-f1i_CNUT.js";import{Tt as re,cn as S,jr as C,lr as ie,ot as ae}from"./state-sIHsFpDu.js";import{Dr as oe,Pr as se,no as ce,oc as le,oo as ue,yc as de}from"./paths-4ZWdjPP4.js";import{l as fe,p as pe,r as me}from"./sessionStoragePortable-CJUZrbIq.js";import{Bf as he,Ep as ge,Fr as _e,G as ve,Jv as ye,K as be,Sr as xe,Ta as Se,Tp as Ce,Xu as we,Zi as Te,Zu as Ee,bD as De,i as Oe,na as ke,o as Ae,qv as je,wa as Me,yD as Ne,zf as Pe}from"./loadAgentsDir-CQF8qhne.js";import{Qn as Fe,Zn as Ie}from"./prompt-CogZQuTN.js";import{o as Le,t as Re}from"./fileStateCache-BhVfo23e.js";import{t as ze}from"./QueryEngine-CmJK27jU.js";import*as w from"node:path";import{dirname as Be,isAbsolute as Ve,resolve as He}from"node:path";import{randomUUID as T}from"node:crypto";import{Readable as Ue,Writable as We}from"node:stream";import{unlink as Ge}from"node:fs/promises";ne();var E={authenticate:`authenticate`,document_did_change:`document/didChange`,document_did_close:`document/didClose`,document_did_focus:`document/didFocus`,document_did_open:`document/didOpen`,document_did_save:`document/didSave`,initialize:`initialize`,logout:`logout`,nes_accept:`nes/accept`,nes_close:`nes/close`,nes_reject:`nes/reject`,nes_start:`nes/start`,nes_suggest:`nes/suggest`,session_cancel:`session/cancel`,session_close:`session/close`,session_fork:`session/fork`,session_list:`session/list`,session_load:`session/load`,session_new:`session/new`,session_prompt:`session/prompt`,session_resume:`session/resume`,session_set_config_option:`session/set_config_option`,session_set_mode:`session/set_mode`,session_set_model:`session/set_model`},D={elicitation_complete:`elicitation/complete`,elicitation_create:`elicitation/create`,fs_read_text_file:`fs/read_text_file`,fs_write_text_file:`fs/write_text_file`,session_request_permission:`session/request_permission`,session_update:`session/update`,terminal_create:`terminal/create`,terminal_kill:`terminal/kill`,terminal_output:`terminal/output`,terminal_release:`terminal/release`,terminal_wait_for_exit:`terminal/wait_for_exit`},Ke=x({_meta:m(p(),g()).nullish(),terminal:v().optional().default(!1)}),qe=x({_meta:m(p(),g()).nullish(),label:p().nullish(),name:p(),optional:v().optional().default(!1),secret:v().optional().default(!0)}),Je=x({_meta:m(p(),g()).nullish(),description:p().nullish(),id:p(),name:p()}),Ye=x({_meta:m(p(),g()).nullish(),description:p().nullish(),id:p(),link:p().nullish(),name:p(),vars:h(qe)}),Xe=x({_meta:m(p(),g()).nullish(),args:h(p()).optional(),description:p().nullish(),env:m(p(),p()).optional(),id:p(),name:p()}),Ze=_([Ye.and(x({type:b(`env_var`)})),Xe.and(x({type:b(`terminal`)})),Je]),Qe=x({_meta:m(p(),g()).nullish(),methodId:p()}),$e=x({_meta:m(p(),g()).nullish()}),et=x({_meta:m(p(),g()).nullish(),blob:p(),mimeType:p().nullish(),uri:p()}),tt=x({default:v().nullish(),description:p().nullish(),title:p().nullish()}),nt=x({_meta:m(p(),g()).nullish()}),rt=x({_meta:m(p(),g()).nullish()}),it=x({amount:f(),currency:p()}),at=x({_meta:m(p(),g()).nullish(),terminalId:p()}),ot=x({_meta:m(p(),g()).nullish(),newText:p(),oldText:p().nullish(),path:p()}),st=_([p(),f(),f(),v(),h(p())]),ct=y(_([x({content:m(p(),st).nullish()}).and(x({action:b(`accept`)})),x({action:b(`decline`)}),x({action:b(`cancel`)})]),x({_meta:m(p(),g()).nullish()})),lt=x({_meta:m(p(),g()).nullish()}),ut=p(),dt=x({_meta:m(p(),g()).nullish(),elicitationId:ut}),ft=b(`object`),pt=b(`string`),mt=x({_meta:m(p(),g()).nullish()}),ht=x({_meta:m(p(),g()).nullish(),form:lt.nullish(),url:mt.nullish()}),gt=x({const:p(),title:p()}),_t=x({_meta:m(p(),g()).nullish(),name:p(),value:p()}),vt=x({code:_([b(-32700),b(-32600),b(-32601),b(-32602),b(-32603),b(-32800),b(-32e3),b(-32002),b(-32042),f().int().min(-2147483648,{message:`Invalid value: Expected int32 to be >= -2147483648`}).max(2147483647,{message:`Invalid value: Expected int32 to be <= 2147483647`})]),data:g().optional(),message:p()}),yt=g(),bt=g(),xt=g(),St=x({_meta:m(p(),g()).nullish(),readTextFile:v().optional().default(!1),writeTextFile:v().optional().default(!1)}),Ct=x({_meta:m(p(),g()).nullish(),name:p(),value:p()}),wt=x({_meta:m(p(),g()).nullish(),name:p(),title:p().nullish(),version:p()}),Tt=x({default:f().nullish(),description:p().nullish(),maximum:f().nullish(),minimum:f().nullish(),title:p().nullish()}),Et=x({_meta:m(p(),g()).nullish()}),Dt=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cursor:p().nullish(),cwd:p().nullish()}),Ot=x({_meta:m(p(),g()).nullish()}),kt=x({_meta:m(p(),g()).nullish(),logout:Ot.nullish()}),At=x({_meta:m(p(),g()).nullish()}),jt=x({_meta:m(p(),g()).nullish()}),Mt=x({_meta:m(p(),g()).nullish(),http:v().optional().default(!1),sse:v().optional().default(!1)}),Nt=x({_meta:m(p(),g()).nullish(),headers:h(Ct),name:p(),url:p()}),Pt=x({_meta:m(p(),g()).nullish(),headers:h(Ct),name:p(),url:p()}),Ft=x({_meta:m(p(),g()).nullish(),args:h(p()),command:p(),env:h(_t),name:p()}),O=_([Nt.and(x({type:b(`http`)})),Pt.and(x({type:b(`sse`)})),Ft]),It=p(),Lt=x({_meta:m(p(),g()).nullish(),description:p().nullish(),modelId:It,name:p()}),Rt=_([b(`error`),b(`warning`),b(`information`),b(`hint`)]),zt=x({_meta:m(p(),g()).nullish()}),Bt=x({_meta:m(p(),g()).nullish()}),Vt=x({_meta:m(p(),g()).nullish()}),Ht=x({_meta:m(p(),g()).nullish()}),Ut=x({_meta:m(p(),g()).nullish()}),Wt=x({_meta:m(p(),g()).nullish(),maxCount:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish()}),Gt=x({diff:p(),uri:p()}),Kt=x({endLine:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}),startLine:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}),text:p()}),qt=x({_meta:m(p(),g()).nullish()}),Jt=x({_meta:m(p(),g()).nullish()}),Yt=x({languageId:p(),text:p(),uri:p()}),Xt=x({_meta:m(p(),g()).nullish(),maxCount:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish()}),Zt=_([b(`rejected`),b(`ignored`),b(`replaced`),b(`cancelled`)]),Qt=x({excerpts:h(Kt),uri:p()}),$t=x({_meta:m(p(),g()).nullish()}),en=x({_meta:m(p(),g()).nullish()}),tn=x({name:p(),owner:p(),remoteUrl:p()}),nn=x({_meta:m(p(),g()).nullish()}),rn=x({_meta:m(p(),g()).nullish(),jump:qt.nullish(),rename:en.nullish(),searchAndReplace:nn.nullish()}),an=x({id:p(),isRegex:v().nullish(),replace:p(),search:p(),uri:p()}),on=_([b(`automatic`),b(`diagnostic`),b(`manual`)]),sn=x({_meta:m(p(),g()).nullish(),maxCount:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish()}),cn=x({_meta:m(p(),g()).nullish(),diagnostics:zt.nullish(),editHistory:Wt.nullish(),openFiles:Jt.nullish(),recentFiles:Xt.nullish(),relatedSnippets:$t.nullish(),userActions:sn.nullish()}),ln=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cwd:p(),mcpServers:h(O)}),un=x({default:f().nullish(),description:p().nullish(),maximum:f().nullish(),minimum:f().nullish(),title:p().nullish()}),dn=p(),fn=_([b(`allow_once`),b(`allow_always`),b(`reject_once`),b(`reject_always`)]),pn=x({_meta:m(p(),g()).nullish(),kind:fn,name:p(),optionId:dn}),mn=_([b(`high`),b(`medium`),b(`low`)]),hn=_([b(`pending`),b(`in_progress`),b(`completed`)]),gn=x({_meta:m(p(),g()).nullish(),content:p(),priority:mn,status:hn}),_n=x({_meta:m(p(),g()).nullish(),entries:h(gn)}),k=x({character:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}),line:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`})}),vn=x({id:p(),position:k,uri:p()}),yn=x({id:p(),newName:p(),position:k,uri:p()}),bn=x({action:p(),position:k,timestampMs:f(),uri:p()}),xn=_([b(`utf-16`),b(`utf-32`),b(`utf-8`)]),Sn=x({_meta:m(p(),g()).nullish(),auth:Ke.optional().default({terminal:!1}),elicitation:ht.nullish(),fs:St.optional().default({readTextFile:!1,writeTextFile:!1}),nes:rn.nullish(),positionEncodings:h(xn).optional(),terminal:v().optional().default(!1)}),Cn=x({_meta:m(p(),g()).nullish(),audio:v().optional().default(!1),embeddedContext:v().optional().default(!1),image:v().optional().default(!1)}),wn=f().int().gte(0).lte(65535),Tn=x({_meta:m(p(),g()).nullish(),clientCapabilities:Sn.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:wt.nullish(),protocolVersion:wn}),A=x({end:k,start:k}),En=x({message:p(),range:A,severity:Rt,uri:p()}),Dn=x({languageId:p(),lastFocusedMs:f().nullish(),uri:p(),visibleRange:A.nullish()}),On=x({_meta:m(p(),g()).nullish(),diagnostics:h(En).nullish(),editHistory:h(Gt).nullish(),openFiles:h(Dn).nullish(),recentFiles:h(Yt).nullish(),relatedSnippets:h(Qt).nullish(),userActions:h(bn).nullish()}),kn=x({newText:p(),range:A}),An=_([x({cursorPosition:k.nullish(),edits:h(kn),id:p(),uri:p()}).and(x({kind:b(`edit`)})),vn.and(x({kind:b(`jump`)})),yn.and(x({kind:b(`rename`)})),an.and(x({kind:b(`searchAndReplace`)}))]),jn=x({_meta:m(p(),g()).nullish(),content:p()}),Mn=x({_meta:m(p(),g()).nullish()}),j=_([f(),p()]).nullable();x({_meta:m(p(),g()).nullish(),requestId:j});var Nn=x({requestId:j}),Pn=te([`assistant`,`user`]),M=x({_meta:m(p(),g()).nullish(),audience:h(Pn).nullish(),lastModified:p().nullish(),priority:f().nullish()}),Fn=x({_meta:m(p(),g()).nullish(),annotations:M.nullish(),data:p(),mimeType:p()}),In=x({_meta:m(p(),g()).nullish(),annotations:M.nullish(),data:p(),mimeType:p(),uri:p().nullish()}),Ln=x({_meta:m(p(),g()).nullish(),annotations:M.nullish(),description:p().nullish(),mimeType:p().nullish(),name:p(),size:f().nullish(),title:p().nullish(),uri:p()}),Rn=x({_meta:m(p(),g()).nullish(),optionId:dn}),zn=_([x({outcome:b(`cancelled`)}),Rn.and(x({outcome:b(`selected`)}))]),Bn=x({_meta:m(p(),g()).nullish(),outcome:zn}),Vn=x({_meta:m(p(),g()).nullish()}),Hn=x({_meta:m(p(),g()).nullish()}),Un=x({currentValue:v()}),Wn=p(),Gn=p(),Kn=_([b(`mode`),b(`model`),b(`thought_level`),p()]),qn=p(),Jn=x({_meta:m(p(),g()).nullish(),description:p().nullish(),name:p(),value:qn}),Yn=x({_meta:m(p(),g()).nullish(),group:Wn,name:p(),options:h(Jn)}),N=y(_([x({currentValue:qn,options:_([h(Jn),h(Yn)])}).and(x({type:b(`select`)})),Un.and(x({type:b(`boolean`)}))]),x({_meta:m(p(),g()).nullish(),category:Kn.nullish(),description:p().nullish(),id:Gn,name:p()})),Xn=x({_meta:m(p(),g()).nullish(),configOptions:h(N)}),Zn=x({_meta:m(p(),g()).nullish()}),P=p(),Qn=x({_meta:m(p(),g()).nullish(),id:p(),sessionId:P}),$n=x({_meta:m(p(),g()).nullish(),sessionId:P}),er=x({_meta:m(p(),g()).nullish(),sessionId:P}),tr=x({_meta:m(p(),g()).nullish(),sessionId:P}),nr=x({_meta:m(p(),g()).nullish(),args:h(p()).optional(),command:p(),cwd:p().nullish(),env:h(_t).optional(),outputByteLimit:f().nullish(),sessionId:P}),rr=x({_meta:m(p(),g()).nullish(),sessionId:P,uri:p()}),ir=x({_meta:m(p(),g()).nullish(),position:k,sessionId:P,uri:p(),version:f(),visibleRange:A}),ar=x({_meta:m(p(),g()).nullish(),languageId:p(),sessionId:P,text:p(),uri:p(),version:f()}),or=x({_meta:m(p(),g()).nullish(),sessionId:P,uri:p()}),sr=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cwd:p(),mcpServers:h(O).optional(),sessionId:P}),cr=x({_meta:m(p(),g()).nullish(),sessionId:P,terminalId:p()}),lr=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cwd:p(),mcpServers:h(O),sessionId:P}),ur=x({_meta:m(p(),g()).nullish(),limit:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),line:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),path:p(),sessionId:P}),dr=x({_meta:m(p(),g()).nullish(),id:p(),reason:Zt.nullish(),sessionId:P}),fr=x({_meta:m(p(),g()).nullish(),sessionId:P,terminalId:p()}),pr=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cwd:p(),mcpServers:h(O).optional(),sessionId:P}),mr=x({_meta:m(p(),g()).nullish(),additionalDirectories:h(p()).optional(),cwd:p(),sessionId:P,title:p().nullish(),updatedAt:p().nullish()}),hr=x({_meta:m(p(),g()).nullish(),nextCursor:p().nullish(),sessions:h(mr)}),gr=x({_meta:m(p(),g()).nullish(),title:p().nullish(),updatedAt:p().nullish()}),_r=x({_meta:m(p(),g()).nullish()}),F=p(),vr=x({_meta:m(p(),g()).nullish(),currentModeId:F}),yr=x({_meta:m(p(),g()).nullish(),description:p().nullish(),id:F,name:p()}),I=x({_meta:m(p(),g()).nullish(),availableModes:h(yr),currentModeId:F}),L=x({_meta:m(p(),g()).nullish(),availableModels:h(Lt),currentModelId:It}),br=x({_meta:m(p(),g()).nullish(),configOptions:h(N).nullish(),models:L.nullish(),modes:I.nullish(),sessionId:P}),xr=x({_meta:m(p(),g()).nullish(),configOptions:h(N).nullish(),models:L.nullish(),modes:I.nullish()}),Sr=x({_meta:m(p(),g()).nullish(),configOptions:h(N).nullish(),models:L.nullish(),modes:I.nullish(),sessionId:P}),Cr=x({_meta:m(p(),g()).nullish(),configOptions:h(N).nullish(),models:L.nullish(),modes:I.nullish()}),wr=x({_meta:m(p(),g()).nullish()}),Tr=x({_meta:m(p(),g()).nullish(),additionalDirectories:Vn.nullish(),close:Hn.nullish(),fork:Zn.nullish(),list:_r.nullish(),resume:wr.nullish()}),Er=y(_([x({type:b(`boolean`),value:v()}),x({value:qn})]),x({_meta:m(p(),g()).nullish(),configId:Gn,sessionId:P})),Dr=x({_meta:m(p(),g()).nullish(),configOptions:h(N)}),Or=x({_meta:m(p(),g()).nullish(),modeId:F,sessionId:P}),kr=x({_meta:m(p(),g()).nullish()}),Ar=x({_meta:m(p(),g()).nullish(),modelId:It,sessionId:P}),jr=x({_meta:m(p(),g()).nullish()}),Mr=x({_meta:m(p(),g()).nullish(),sessionId:P}),Nr=_([b(`end_turn`),b(`max_tokens`),b(`max_turn_requests`),b(`refusal`),b(`cancelled`)]),Pr=_([b(`email`),b(`uri`),b(`date`),b(`date-time`)]),Fr=x({default:p().nullish(),description:p().nullish(),enum:h(p()).nullish(),format:Pr.nullish(),maxLength:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),minLength:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),oneOf:h(gt).nullish(),pattern:p().nullish(),title:p().nullish()}),Ir=x({_meta:m(p(),g()).nullish(),context:On.nullish(),position:k,selection:A.nullish(),sessionId:P,triggerKind:on,uri:p(),version:f()}),Lr=x({_meta:m(p(),g()).nullish(),suggestions:h(An)}),Rr=x({_meta:m(p(),g()).nullish(),terminalId:p()}),zr=x({_meta:m(p(),g()).nullish(),exitCode:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),signal:p().nullish()}),Br=x({_meta:m(p(),g()).nullish(),sessionId:P,terminalId:p()}),Vr=x({_meta:m(p(),g()).nullish(),exitStatus:zr.nullish(),output:p(),truncated:v()}),Hr=x({_meta:m(p(),g()).nullish(),annotations:M.nullish(),text:p()}),Ur=x({range:A.nullish(),text:p()}),Wr=x({_meta:m(p(),g()).nullish(),contentChanges:h(Ur),sessionId:P,uri:p(),version:f()});x({method:p(),params:_([$n,ar,Wr,rr,or,ir,Qn,dr,yt]).nullish()});var Gr=_([b(`full`),b(`incremental`)]),Kr=x({_meta:m(p(),g()).nullish(),syncKind:Gr}),qr=x({_meta:m(p(),g()).nullish(),didChange:Kr.nullish(),didClose:Bt.nullish(),didFocus:Vt.nullish(),didOpen:Ht.nullish(),didSave:Ut.nullish()}),Jr=x({_meta:m(p(),g()).nullish(),document:qr.nullish()}),Yr=x({_meta:m(p(),g()).nullish(),context:cn.nullish(),events:Jr.nullish()}),Xr=x({_meta:m(p(),g()).nullish(),auth:kt.optional().default({}),loadSession:v().optional().default(!1),mcpCapabilities:Mt.optional().default({http:!1,sse:!1}),nes:Yr.nullish(),positionEncoding:xn.nullish(),promptCapabilities:Cn.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Tr.optional().default({})}),Zr=x({_meta:m(p(),g()).nullish(),agentCapabilities:Xr.optional().default({auth:{},loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:wt.nullish(),authMethods:h(Ze).optional().default([]),protocolVersion:wn}),Qr=_([x({_meta:m(p(),g()).nullish(),mimeType:p().nullish(),text:p(),uri:p()}),et]),$r=x({_meta:m(p(),g()).nullish(),annotations:M.nullish(),resource:Qr}),ei=_([Hr.and(x({type:b(`text`)})),In.and(x({type:b(`image`)})),Fn.and(x({type:b(`audio`)})),Ln.and(x({type:b(`resource_link`)})),$r.and(x({type:b(`resource`)}))]),ti=x({_meta:m(p(),g()).nullish(),content:ei}),ni=x({_meta:m(p(),g()).nullish(),content:ei,messageId:p().nullish()}),ri=x({_meta:m(p(),g()).nullish(),messageId:p().nullish(),prompt:h(ei),sessionId:P}),ii=x({anyOf:h(gt)}),ai=_([ti.and(x({type:b(`content`)})),ot.and(x({type:b(`diff`)})),Rr.and(x({type:b(`terminal`)}))]),oi=p(),si=x({sessionId:P,toolCallId:oi.nullish()}),ci=y(_([si,Nn]),x({elicitationId:ut,url:p().url()})),li=x({_meta:m(p(),g()).nullish(),line:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),path:p()}),ui=_([b(`pending`),b(`in_progress`),b(`completed`),b(`failed`)]),di=_([b(`read`),b(`edit`),b(`delete`),b(`move`),b(`search`),b(`execute`),b(`think`),b(`fetch`),b(`switch_mode`),b(`other`)]),fi=x({_meta:m(p(),g()).nullish(),content:h(ai).optional(),kind:di.optional(),locations:h(li).optional(),rawInput:g().optional(),rawOutput:g().optional(),status:ui.optional(),title:p(),toolCallId:oi}),pi=x({_meta:m(p(),g()).nullish(),content:h(ai).nullish(),kind:di.nullish(),locations:h(li).nullish(),rawInput:g().optional(),rawOutput:g().optional(),status:ui.nullish(),title:p().nullish(),toolCallId:oi}),mi=x({_meta:m(p(),g()).nullish(),options:h(pn),sessionId:P,toolCall:pi}),hi=x({_meta:m(p(),g()).nullish(),hint:p()}),gi=x({_meta:m(p(),g()).nullish(),description:p(),input:hi.nullish(),name:p()}),_i=x({_meta:m(p(),g()).nullish(),availableCommands:h(gi)}),vi=_([x({enum:h(p()),type:pt}),ii]),yi=x({default:h(p()).nullish(),description:p().nullish(),items:vi,maxItems:f().nullish(),minItems:f().nullish(),title:p().nullish()}),bi=_([Fr.and(x({type:b(`string`)})),un.and(x({type:b(`number`)})),Tt.and(x({type:b(`integer`)})),tt.and(x({type:b(`boolean`)})),yi.and(x({type:b(`array`)}))]),xi=x({description:p().nullish(),properties:m(p(),bi).optional().default({}),required:h(p()).nullish(),title:p().nullish(),type:ft.optional().default(`object`)}),Si=y(_([y(_([si,Nn]),x({requestedSchema:xi})).and(x({mode:b(`form`)})),ci.and(x({mode:b(`url`)}))]),x({_meta:m(p(),g()).nullish(),message:p()})),Ci=x({cachedReadTokens:f().nullish(),cachedWriteTokens:f().nullish(),inputTokens:f(),outputTokens:f(),thoughtTokens:f().nullish(),totalTokens:f()});_([x({id:j,result:_([Zr,$e,jt,Sr,xr,hr,br,Cr,rt,kr,Dr,x({_meta:m(p(),g()).nullish(),stopReason:Nr,usage:Ci.nullish(),userMessageId:p().nullish()}),jr,Mr,Lr,nt,xt])}),x({error:vt,id:j})]);var wi=x({_meta:m(p(),g()).nullish(),cost:it.nullish(),size:f(),used:f()}),Ti=_([ni.and(x({sessionUpdate:b(`user_message_chunk`)})),ni.and(x({sessionUpdate:b(`agent_message_chunk`)})),ni.and(x({sessionUpdate:b(`agent_thought_chunk`)})),fi.and(x({sessionUpdate:b(`tool_call`)})),pi.and(x({sessionUpdate:b(`tool_call_update`)})),_n.and(x({sessionUpdate:b(`plan`)})),_i.and(x({sessionUpdate:b(`available_commands_update`)})),vr.and(x({sessionUpdate:b(`current_mode_update`)})),Xn.and(x({sessionUpdate:b(`config_option_update`)})),gr.and(x({sessionUpdate:b(`session_info_update`)})),wi.and(x({sessionUpdate:b(`usage_update`)}))]),Ei=x({_meta:m(p(),g()).nullish(),sessionId:P,update:Ti});x({method:p(),params:_([Ei,dt,yt]).nullish()});var Di=x({_meta:m(p(),g()).nullish(),sessionId:P,terminalId:p()}),Oi=x({_meta:m(p(),g()).nullish(),exitCode:f().int().gte(0).max(4294967295,{message:`Invalid value: Expected uint32 to be <= 4294967295`}).nullish(),signal:p().nullish()}),ki=x({name:p(),uri:p()}),Ai=x({_meta:m(p(),g()).nullish(),repository:tn.nullish(),workspaceFolders:h(ki).nullish(),workspaceUri:p().nullish()});x({id:j,method:p(),params:_([Tn,Qe,At,ln,lr,Dt,sr,pr,tr,Or,Er,ri,Ar,Ai,Ir,er,bt]).nullish()});var ji=x({_meta:m(p(),g()).nullish(),content:p(),path:p(),sessionId:P});x({id:j,method:p(),params:_([ji,ur,mi,nr,Br,fr,Di,cr,Si,bt]).nullish()}),_([x({id:j,result:_([x({_meta:m(p(),g()).nullish()}),jn,Bn,at,Vr,Mn,Oi,Et,ct,xt])}),x({error:vt,id:j})]),e(),d(),r(),s(),i(),o();function Mi(e,t){let n=new TextEncoder,r=new TextDecoder;return{readable:new ReadableStream({async start(e){let n=``,i=t.getReader();try{for(;;){let{value:t,done:a}=await i.read();if(a)break;if(!t)continue;n+=r.decode(t,{stream:!0});let o=n.split(`
2
- `);n=o.pop()||``;for(let t of o){let n=t.trim();if(n)try{let t=JSON.parse(n);e.enqueue(t)}catch(e){console.error(`Failed to parse JSON message:`,n,e)}}}}catch(t){e.error(t);return}finally{i.releaseLock()}e.close()}}),writable:new WritableStream({async write(t){let r=JSON.stringify(t)+`
3
- `,i=e.getWriter();try{await i.write(n.encode(r))}finally{i.releaseLock()}}})}}ne();var Ni,R=new WeakMap,Pi=class{constructor(e,t){l(this,R,void 0);let n=e(this);u(R,this,new Bi(async(e,t)=>{switch(e){case E.initialize:{let e=Tn.parse(t);return n.initialize(e)}case E.session_new:{let e=ln.parse(t);return n.newSession(e)}case E.session_load:{if(!n.loadSession)throw q.methodNotFound(e);let r=lr.parse(t);return n.loadSession(r)}case E.session_list:{if(!n.listSessions)throw q.methodNotFound(e);let r=Dt.parse(t);return n.listSessions(r)}case E.session_fork:{if(!n.unstable_forkSession)throw q.methodNotFound(e);let r=sr.parse(t);return n.unstable_forkSession(r)}case E.session_resume:{if(!n.unstable_resumeSession)throw q.methodNotFound(e);let r=pr.parse(t);return n.unstable_resumeSession(r)}case E.session_close:{if(!n.unstable_closeSession)throw q.methodNotFound(e);let r=tr.parse(t);return n.unstable_closeSession(r)}case E.session_set_mode:{if(!n.setSessionMode)throw q.methodNotFound(e);let r=Or.parse(t);return await n.setSessionMode(r)??{}}case E.authenticate:{let e=Qe.parse(t);return await n.authenticate(e)??{}}case E.logout:{if(!n.unstable_logout)throw q.methodNotFound(e);let r=At.parse(t);return await n.unstable_logout(r)??{}}case E.session_prompt:{let e=ri.parse(t);return n.prompt(e)}case E.session_set_model:{if(!n.unstable_setSessionModel)throw q.methodNotFound(e);let r=Ar.parse(t);return await n.unstable_setSessionModel(r)??{}}case E.session_set_config_option:{if(!n.setSessionConfigOption)throw q.methodNotFound(e);let r=Er.parse(t);return n.setSessionConfigOption(r)}case E.nes_start:{if(!n.unstable_startNes)throw q.methodNotFound(e);let r=Ai.parse(t);return n.unstable_startNes(r)}case E.nes_suggest:{if(!n.unstable_suggestNes)throw q.methodNotFound(e);let r=Ir.parse(t);return n.unstable_suggestNes(r)}case E.nes_close:{if(!n.unstable_closeNes)throw q.methodNotFound(e);let r=er.parse(t);return await n.unstable_closeNes(r)??{}}default:if(n.extMethod)return n.extMethod(e,t);throw q.methodNotFound(e)}},async(e,t)=>{switch(e){case E.session_cancel:{let e=$n.parse(t);return n.cancel(e)}case E.document_did_open:{if(!n.unstable_didOpenDocument)return;let e=ar.parse(t);return n.unstable_didOpenDocument(e)}case E.document_did_change:{if(!n.unstable_didChangeDocument)return;let e=Wr.parse(t);return n.unstable_didChangeDocument(e)}case E.document_did_close:{if(!n.unstable_didCloseDocument)return;let e=rr.parse(t);return n.unstable_didCloseDocument(e)}case E.document_did_save:{if(!n.unstable_didSaveDocument)return;let e=or.parse(t);return n.unstable_didSaveDocument(e)}case E.document_did_focus:{if(!n.unstable_didFocusDocument)return;let e=ir.parse(t);return n.unstable_didFocusDocument(e)}case E.nes_accept:{if(!n.unstable_acceptNes)return;let e=Qn.parse(t);return n.unstable_acceptNes(e)}case E.nes_reject:{if(!n.unstable_rejectNes)return;let e=dr.parse(t);return n.unstable_rejectNes(e)}default:if(n.extNotification)return n.extNotification(e,t);throw q.methodNotFound(e)}},t))}async sessionUpdate(e){return await c(R,this).sendNotification(D.session_update,e)}async requestPermission(e){return await c(R,this).sendRequest(D.session_request_permission,e)}async readTextFile(e){return await c(R,this).sendRequest(D.fs_read_text_file,e)}async writeTextFile(e){return await c(R,this).sendRequest(D.fs_write_text_file,e)??{}}async createTerminal(e){return new Fi((await c(R,this).sendRequest(D.terminal_create,e)).terminalId,e.sessionId,c(R,this))}async unstable_createElicitation(e){return await c(R,this).sendRequest(D.elicitation_create,e)}async unstable_completeElicitation(e){return await c(R,this).sendNotification(D.elicitation_complete,e)}async extMethod(e,t){return await c(R,this).sendRequest(e,t)}async extNotification(e,t){return await c(R,this).sendNotification(e,t)}get signal(){return c(R,this).signal}get closed(){return c(R,this).closed}},z=new WeakMap,B=new WeakMap;Ni=Symbol.asyncDispose;var Fi=class{constructor(e,n,r){t(this,`id`,void 0),l(this,z,void 0),l(this,B,void 0),this.id=e,u(z,this,n),u(B,this,r)}async currentOutput(){return await c(B,this).sendRequest(D.terminal_output,{sessionId:c(z,this),terminalId:this.id})}async waitForExit(){return await c(B,this).sendRequest(D.terminal_wait_for_exit,{sessionId:c(z,this),terminalId:this.id})}async kill(){return await c(B,this).sendRequest(D.terminal_kill,{sessionId:c(z,this),terminalId:this.id})??{}}async release(){return await c(B,this).sendRequest(D.terminal_release,{sessionId:c(z,this),terminalId:this.id})??{}}async[Ni](){await this.release()}},V=new WeakMap,Ii=new WeakMap,Li=new WeakMap,Ri=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,zi=new WeakMap,G=new WeakSet,Bi=class{constructor(e,t,r){a(this,G),l(this,V,new Map),l(this,Ii,0),l(this,Li,void 0),l(this,Ri,void 0),l(this,H,void 0),l(this,U,Promise.resolve()),l(this,W,new AbortController),l(this,zi,void 0),u(Li,this,e),u(Ri,this,t),u(H,this,r),u(zi,this,new Promise(e=>{c(W,this).signal.addEventListener(`abort`,()=>e())})),n(G,this,Vi).call(this)}get signal(){return c(W,this).signal}get closed(){return c(zi,this)}async sendRequest(e,t){var r,i;n(G,this,qi).call(this);let a=(u(Ii,this,(r=c(Ii,this),i=r++,r)),i),o=new Promise((e,t)=>{c(V,this).set(a,{resolve:e,reject:t})});return await n(G,this,K).call(this,{jsonrpc:`2.0`,id:a,method:e,params:t}),o}async sendNotification(e,t){n(G,this,qi).call(this),await n(G,this,K).call(this,{jsonrpc:`2.0`,method:e,params:t})}};async function Vi(){let e;try{let e=c(H,this).readable.getReader();try{for(;!c(W,this).signal.aborted;){let{value:t,done:r}=await e.read();if(r)break;if(t)try{n(G,this,Ui).call(this,t)}catch(e){console.error(`Unexpected error during message processing:`,t,e),`id`in t&&t.id!==void 0&&n(G,this,K).call(this,{jsonrpc:`2.0`,id:t.id,error:{code:-32700,message:`Parse error`}})}}}finally{e.releaseLock()}}catch(t){e=t}finally{n(G,this,Hi).call(this,e)}}function Hi(e){if(c(W,this).signal.aborted)return;let t=e??Error(`ACP connection closed`);for(let e of c(V,this).values())e.reject(t);c(V,this).clear(),c(W,this).abort(t)}async function Ui(e){if(`method`in e&&`id`in e){let t=await n(G,this,Wi).call(this,e.method,e.params);`error`in t&&console.error(`Error handling request`,e,t.error),await n(G,this,K).call(this,{jsonrpc:`2.0`,id:e.id,...t})}else if(`method`in e){let t=await n(G,this,Gi).call(this,e.method,e.params);`error`in t&&console.error(`Error handling notification`,e,t.error)}else `id`in e?n(G,this,Ki).call(this,e):console.error(`Invalid message`,{message:e})}async function Wi(e,t){try{return{result:await c(Li,this).call(this,e,t)??null}}catch(e){if(e instanceof q)return e.toResult();if(e instanceof ee)return q.invalidParams(e.format()).toResult();let t;(e instanceof Error||typeof e==`object`&&e&&`message`in e&&typeof e.message==`string`)&&(t=e.message);try{return q.internalError(t?JSON.parse(t):{}).toResult()}catch{return q.internalError({details:t}).toResult()}}}async function Gi(e,t){try{return await c(Ri,this).call(this,e,t),{result:null}}catch(e){if(e instanceof q)return e.toResult();if(e instanceof ee)return q.invalidParams(e.format()).toResult();let t;(e instanceof Error||typeof e==`object`&&e&&`message`in e&&typeof e.message==`string`)&&(t=e.message);try{return q.internalError(t?JSON.parse(t):{}).toResult()}catch{return q.internalError({details:t}).toResult()}}}function Ki(e){let t=c(V,this).get(e.id);if(t){if(`result`in e)t.resolve(e.result);else if(`error`in e){let{code:n,message:r,data:i}=e.error;t.reject(new q(n,r,i))}c(V,this).delete(e.id)}else console.error(`Got response to unknown request`,e.id)}function qi(){if(c(W,this).signal.aborted)throw c(W,this).signal.reason??Error(`ACP connection closed`)}async function K(e){return u(U,this,c(U,this).then(async()=>{let t=c(H,this).writable.getWriter();try{await t.write(e)}finally{t.releaseLock()}}).catch(e=>{n(G,this,Hi).call(this,e)})),c(U,this)}var q=class e extends Error{constructor(e,n,r){super(n),t(this,`code`,void 0),t(this,`data`,void 0),this.code=e,this.name=`RequestError`,this.data=r}static parseError(t,n){return new e(-32700,`Parse error${n?`: ${n}`:``}`,t)}static invalidRequest(t,n){return new e(-32600,`Invalid request${n?`: ${n}`:``}`,t)}static methodNotFound(t){return new e(-32601,`"Method not found": ${t}`,{method:t})}static invalidParams(t,n){return new e(-32602,`Invalid params${n?`: ${n}`:``}`,t)}static internalError(t,n){return new e(-32603,`Internal error${n?`: ${n}`:``}`,t)}static authRequired(t,n){return new e(-32e3,`Authentication required${n?`: ${n}`:``}`,t)}static resourceNotFound(t){return new e(-32002,`Resource not found${t?`: ${t}`:``}`,t&&{uri:t})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}};S(),de(),ue(),Fe(),Le(),De(),Ee(),ke(),be(),Ae();function J(e,t){if(e)return t?Ve(e)?e:He(t,e):e}var Ji=!(typeof process.geteuid==`function`?process.geteuid()===0:typeof process.getuid==`function`&&process.getuid()===0)||!!process.env.IS_SANDBOX,Yi={auto:`auto`,default:`default`,acceptedits:`acceptEdits`,dontask:`dontAsk`,plan:`plan`,bypasspermissions:`bypassPermissions`,bypass:`bypassPermissions`};function Xi(e,t=`permissions.defaultMode`){if(e===void 0)return`default`;if(typeof e!=`string`)throw Error(`Invalid ${t}: expected a string.`);let n=e.trim().toLowerCase();if(n===``)throw Error(`Invalid ${t}: expected a non-empty string.`);let r=Yi[n];if(!r)throw Error(`Invalid ${t}: ${e}.`);if(r===`bypassPermissions`&&!Ji)throw Error(`Invalid ${t}: bypassPermissions is not available when running as root.`);return r}function Zi(e){let t=[...e.mcpServers??[]].sort((e,t)=>e.name.localeCompare(t.name));return JSON.stringify({cwd:e.cwd,mcpServers:t})}var Qi=256;function $i(e){let t=e.replace(/[\r\n]+/g,` `).replace(/\s+/g,` `).trim();return t.length<=Qi?t:t.slice(0,Qi-1)+`…`}function ea(e,t){if(!t)return e;let n=w.resolve(t),r=w.resolve(e);return r.startsWith(n+w.sep)||r===n?w.relative(n,r).replaceAll(`\\`,`/`):e}function ta(e){let t="```";for(let n of e.matchAll(/^```+/gm)??[])for(;n[0].length>=t.length;)t+="`";return t+`
4
- `+e+(e.endsWith(`
5
- `)?``:`
6
- `)+t}function Y(e,t=!1,n){let r=e.name,i=e.input;switch(r){case`Agent`:case`Task`:{let e=i?.description??`Task`,t=i?.prompt;return{title:e,kind:`think`,content:t?[{type:`content`,content:{type:`text`,text:t}}]:[]}}case`Bash`:{let e=i?.command??`Terminal`,t=i?.description;return{title:e,kind:`execute`,content:t?[{type:`content`,content:{type:`text`,text:t}}]:[]}}case`Read`:{let e=i?.file_path,t=e??`File`,r=i?.offset,a=i?.limit,o=``;a&&a>0?o=` (${r??1} - ${(r??1)+a-1})`:r&&(o=` (from line ${r})`);let s=t?ea(t,n):`File`,c=J(e,n);return{title:`Read ${s}${o}`,kind:`read`,locations:c?[{path:c,line:r??1}]:[],content:[]}}case`Write`:{let e=i?.file_path??``,t=i?.content??``,r=e?ea(e,n):void 0,a=J(e,n);return{title:r?`Write ${r}`:`Write`,kind:`edit`,content:a?[{type:`diff`,path:a,oldText:null,newText:t}]:[{type:`content`,content:{type:`text`,text:t}}],locations:a?[{path:a}]:[]}}case`Edit`:{let e=i?.file_path??``,t=i?.old_string??``,r=i?.new_string??``,a=e?ea(e,n):void 0,o=J(e,n);return{title:a?`Edit ${a}`:`Edit`,kind:`edit`,content:o?[{type:`diff`,path:o,oldText:t||null,newText:r}]:[],locations:o?[{path:o}]:[]}}case`Glob`:{let e=i?.path??``,t=i?.pattern??``,r=J(e,n),a=`Find`;return e&&(a+=` \`${e}\``),t&&(a+=` \`${t}\``),{title:a,kind:`search`,content:[],locations:r?[{path:r}]:[]}}case`Grep`:{let e=i?.pattern??``,t=i?.path??``,n=`grep`;return i?.[`-i`]&&(n+=` -i`),i?.[`-n`]&&(n+=` -n`),i?.[`-A`]!==void 0&&(n+=` -A ${i[`-A`]}`),i?.[`-B`]!==void 0&&(n+=` -B ${i[`-B`]}`),i?.[`-C`]!==void 0&&(n+=` -C ${i[`-C`]}`),i?.output_mode===`files_with_matches`?n+=` -l`:i?.output_mode===`count`&&(n+=` -c`),i?.head_limit!==void 0&&(n+=` | head -${i.head_limit}`),i?.glob&&(n+=` --include="${i.glob}"`),i?.type&&(n+=` --type=${i.type}`),i?.multiline&&(n+=` -P`),e&&(n+=` "${e}"`),t&&(n+=` ${t}`),{title:n,kind:`search`,content:[]}}case`WebFetch`:{let e=i?.url??``,t=i?.prompt;return{title:e?`Fetch ${e}`:`Fetch`,kind:`fetch`,content:t?[{type:`content`,content:{type:`text`,text:t}}]:[]}}case`WebSearch`:{let e=`"${i?.query??`Web search`}"`,t=i?.allowed_domains,n=i?.blocked_domains;return t&&t.length>0&&(e+=` (allowed: ${t.join(`, `)})`),n&&n.length>0&&(e+=` (blocked: ${n.join(`, `)})`),{title:e,kind:`fetch`,content:[]}}case`TodoWrite`:{let e=i?.todos;return{title:Array.isArray(e)?`Update TODOs: ${e.map(e=>e.content).join(`, `)}`:`Update TODOs`,kind:`think`,content:[]}}case`ExitPlanMode`:{let e=i?.plan;return{title:`Ready to code?`,kind:`switch_mode`,content:e?[{type:`content`,content:{type:`text`,text:e}}]:[]}}default:return{title:r||`Unknown Tool`,kind:`other`,content:[]}}}function na(e,t){return Array.isArray(e)&&e.length>0?{content:e.map(e=>({type:`content`,content:ra(e,t)}))}:typeof e==`string`&&e.length>0?{content:[{type:`content`,content:{type:`text`,text:t?`\`\`\`\n${e}\n\`\`\``:e}}]}:{}}function ra(e,t){let n=e=>({type:`text`,text:t?`\`\`\`\n${e}\n\`\`\``:e});switch(e.type){case`text`:{let n=e.text;return{type:`text`,text:t?`\`\`\`\n${n}\n\`\`\``:n}}case`image`:{let t=e.source;return t?.type===`base64`?{type:`image`,data:t.data,mimeType:t.media_type}:n(t?.type===`url`?`[image: ${t.url}]`:`[image: file reference]`)}case`resource_link`:{let t=e.uri;return{type:`resource_link`,uri:t,name:e.name??t,mimeType:e.mimeType}}case`resource`:{let t=e.resource;return{type:`resource`,resource:{uri:t?.uri??``,mimeType:t?.mimeType,...typeof t?.text==`string`?{text:t.text}:{},...typeof t?.blob==`string`?{blob:t.blob}:{}}}}case`tool_reference`:return n(`Tool: ${e.tool_name}`);case`tool_search_tool_search_result`:{let t=e.tool_references;return n(`Tools found: ${t?.map(e=>e.tool_name).join(`, `)||`none`}`)}case`tool_search_tool_result_error`:return n(`Error: ${e.error_code}${e.error_message?` - ${e.error_message}`:``}`);case`web_search_result`:return n(`${e.title} (${e.url})`);case`web_search_tool_result_error`:return n(`Error: ${e.error_code}`);case`web_fetch_result`:return n(`Fetched: ${e.url}`);case`web_fetch_tool_result_error`:return n(`Error: ${e.error_code}`);case`code_execution_result`:case`bash_code_execution_result`:return n(`Output: ${e.stdout||e.stderr||``}`);case`code_execution_tool_result_error`:case`bash_code_execution_tool_result_error`:return n(`Error: ${e.error_code}`);case`text_editor_code_execution_view_result`:return n(e.content);case`text_editor_code_execution_create_result`:return n(e.is_file_update?`File updated`:`File created`);case`text_editor_code_execution_str_replace_result`:{let t=e.lines;return n(t?.join(`
7
- `)||``)}case`text_editor_code_execution_tool_result_error`:return n(`Error: ${e.error_code}${e.error_message?` - ${e.error_message}`:``}`);default:try{return{type:`text`,text:JSON.stringify(e)}}catch{return{type:`text`,text:`[content]`}}}}function ia(e,t,n=!1){if(!t)return{};let r=e.is_error===!0,i=e.content;if(r&&i)return na(i,!0);switch(t.name){case`Read`:return typeof i==`string`&&i.length>0?{content:[{type:`content`,content:{type:`text`,text:ta(i)}}]}:Array.isArray(i)&&i.length>0?{content:i.map(e=>({type:`content`,content:e.type===`text`?{type:`text`,text:ta(e.text)}:ra(e,!1)}))}:{};case`Bash`:{let e=``;if(i&&typeof i==`object`&&!Array.isArray(i)&&i.type===`bash_code_execution_result`){let t=i;e=[t.stdout,t.stderr].filter(Boolean).join(`
8
- `)}else typeof i==`string`?e=i:Array.isArray(i)&&i.length>0&&(e=i.map(e=>e.type===`text`?e.text:``).join(`
9
- `));return e.trim()?{content:[{type:`content`,content:{type:`text`,text:`\`\`\`console\n${e.trimEnd()}\n\`\`\``}}]}:{}}case`Edit`:case`Write`:return{};case`ExitPlanMode`:return{title:`Exited Plan Mode`};default:return na(i??``,r)}}function aa(e){return e===`in_progress`?`in_progress`:e===`completed`?`completed`:`pending`}function X(e,t,n,r,i,a,o){let s=[];for(let i of e){let e=i.type,a=null;switch(e){case`text`:case`text_delta`:{let e=i.text??``;a={sessionUpdate:t===`assistant`?`agent_message_chunk`:`user_message_chunk`,...o?.messageId?{messageId:o.messageId}:{},content:{type:`text`,text:e}};break}case`thinking`:case`thinking_delta`:{let e=i.thinking??``;a={sessionUpdate:`agent_thought_chunk`,...o?.messageId?{messageId:o.messageId}:{},content:{type:`text`,text:e}};break}case`image`:{let e=i.source;e?.type===`base64`&&(a={sessionUpdate:t===`assistant`?`agent_message_chunk`:`user_message_chunk`,...o?.messageId?{messageId:o.messageId}:{},content:{type:`image`,data:e.data,mimeType:e.media_type}});break}case`tool_use`:case`server_tool_use`:case`mcp_tool_use`:{let t=i.id??``,n=i.name??`unknown`,s=i.input,c=t in r;if(r[t]={type:e,id:t,name:n,input:s},n===`TodoWrite`){let e=s?.todos;Array.isArray(e)&&(a={sessionUpdate:`plan`,entries:e.map(e=>({content:e.content,status:aa(e.status),priority:`medium`}))})}else{let e=s?{...s}:{};a=c?{_meta:{claudeCode:{toolName:n}},toolCallId:t,sessionUpdate:`tool_call_update`,status:`in_progress`,rawInput:e,...Y({name:n,id:t,input:s??{}},!1,o?.cwd)}:{_meta:{claudeCode:{toolName:n}},toolCallId:t,sessionUpdate:`tool_call`,rawInput:e,status:`pending`,...Y({name:n,id:t,input:s??{}},!1,o?.cwd)}}break}case`tool_result`:case`mcp_tool_result`:{let e=i.tool_use_id??``,t=r[e];if(!t)break;if(t.name!==`TodoWrite`){let n=ia(i,{name:t.name,id:t.id},!1);a={_meta:{claudeCode:{toolName:t.name}},toolCallId:e,sessionUpdate:`tool_call_update`,status:i.is_error===!0?`failed`:`completed`,rawOutput:i.content,...n}}break}case`redacted_thinking`:case`input_json_delta`:case`citations_delta`:case`signature_delta`:case`container_upload`:case`compaction`:case`compaction_delta`:break}if(a){if(o?.parentToolUseId){let e=a._meta;a._meta={...e,claudeCode:{...e?.claudeCode??{},parentToolUseId:o.parentToolUseId}}}s.push({sessionId:n,update:a})}}return s}function oa(e,t,n,r,i){let a=e.message;if(!a)return[];let o=a.content;if(!o)return[];if(typeof o==`string`)return[{sessionId:t,update:{sessionUpdate:`agent_message_chunk`,...i?.messageId?{messageId:i.messageId}:{},content:{type:`text`,text:o}}}];let s=i?.streamingActive?o.filter(e=>e.type!==`text`&&e.type!==`thinking`):o;return s.length===0?[]:X(s,`assistant`,t,n,r,void 0,i)}function sa(e,t,n,r,i){let a=e.event;if(!a)return[];switch(a.type){case`content_block_start`:{let o=a.content_block;return o?X([o],`assistant`,t,n,r,void 0,{clientCapabilities:i?.clientCapabilities,parentToolUseId:e.parent_tool_use_id,cwd:i?.cwd,messageId:i?.messageId}):[]}case`content_block_delta`:{let o=a.delta;return o?X([o],`assistant`,t,n,r,void 0,{clientCapabilities:i?.clientCapabilities,parentToolUseId:e.parent_tool_use_id,cwd:i?.cwd,messageId:i?.messageId}):[]}case`message_start`:case`message_delta`:case`message_stop`:case`content_block_stop`:return[];default:return[]}}function ca(e,t){let n=0,r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;return n}function la(e,t){let n=null,r=0;for(let i of Object.keys(e)){let e=ca(i,t);e>r&&(r=e,n=i)}return n?e[n]??null:null}var ua=console;function da(e,t){if(t.aborted)return Promise.resolve({done:!0,value:void 0});let n,r=new Promise(e=>{n=()=>e({done:!0,value:void 0}),t.addEventListener(`abort`,n,{once:!0})});return Promise.race([e.next(),r]).finally(()=>{n&&t.removeEventListener(`abort`,n)})}async function fa(e,t,n,r,i,a,o,s){let c=`end_turn`,l={inputTokens:0,outputTokens:0,cachedReadTokens:0,cachedWriteTokens:0},u=null,d=null,f=2e5,p=!1,m=null;try{for(;!r.aborted;){let s=await da(t,r);if(s.done||r.aborted)break;let h=s.value;if(h==null)continue;let g=h;switch(g.type){case`system`:g.subtype===`compact_boundary`&&(u=0,await n.sessionUpdate({sessionId:e,update:{sessionUpdate:`agent_message_chunk`,content:{type:`text`,text:`
10
-
11
- Compacting completed.`}}}));break;case`result`:{let t=g.usage;t&&(l.inputTokens+=t.input_tokens??0,l.outputTokens+=t.output_tokens??0,l.cachedReadTokens+=t.cache_read_input_tokens??0,l.cachedWriteTokens+=t.cache_creation_input_tokens??0);let i=g.modelUsage;if(i&&d){let e=la(i,d);e?.contextWindow&&(f=e.contextWindow)}u!==null&&await n.sessionUpdate({sessionId:e,update:{sessionUpdate:`usage_update`,used:u,size:f}});let a=g.subtype,o=g.is_error;if(r.aborted){c=`cancelled`;break}switch(a){case`success`:{let e=g.stop_reason;c=e===`max_tokens`?`max_tokens`:e===`refusal`?`refusal`:`end_turn`,o&&(c=`end_turn`);break}case`error_during_execution`:c=g.stop_reason===`max_tokens`?`max_tokens`:`end_turn`;break;case`error_max_budget_usd`:case`error_max_turns`:case`error_max_structured_output_retries`:c=`max_turn_requests`;break}break}case`stream_event`:{let t=g.parent_tool_use_id;t===null&&m===null&&(m=T());let r=sa(g,e,i,n,{clientCapabilities:a,cwd:o,messageId:t===null?m??void 0:void 0});for(let e of r)await n.sessionUpdate(e);p=!0;break}case`assistant`:{let t=g.message,r=g.parent_tool_use_id;if(t?.usage&&r===null){let e=t.usage;u=(typeof e.input_tokens==`number`?e.input_tokens:0)+(typeof e.output_tokens==`number`?e.output_tokens:0)+(typeof e.cache_read_input_tokens==`number`?e.cache_read_input_tokens:0)+(typeof e.cache_creation_input_tokens==`number`?e.cache_creation_input_tokens:0)}r===null&&t?.model&&t.model!==`<synthetic>`&&(d=t.model);let s;r===null&&(m===null&&(m=T()),s=m);let c=oa(g,e,i,n,{clientCapabilities:a,cwd:o,parentToolUseId:r,streamingActive:p,messageId:s});for(let e of c)await n.sessionUpdate(e);r===null&&(m=null);break}case`user`:break;case`progress`:{let t=g.data;if(!t)break;let r=t.type;if(r===`agent_progress`||r===`skill_progress`){let r=t.message;if(r){let t=r.content;if(t)for(let r of t)r.type===`text`&&await n.sessionUpdate({sessionId:e,update:{sessionUpdate:`agent_message_chunk`,content:{type:`text`,text:r.text}}})}}break}case`tool_use_summary`:break;case`attachment`:break;case`compact_boundary`:u=0,await n.sessionUpdate({sessionId:e,update:{sessionUpdate:`agent_message_chunk`,content:{type:`text`,text:`
12
-
13
- Compacting completed.`}}});break;default:ua.debug(`Ignoring unknown SDK message type`);break}}if(r.aborted||s?.())return{stopReason:`cancelled`,usage:l}}catch(e){if(r.aborted)return{stopReason:`cancelled`,usage:l};throw e}return{stopReason:c,usage:l}}async function pa(e,t,n,r,i,a){for(let o of t){let t=o;if(t.type!==`user`&&t.type!==`assistant`){ua.debug(`Ignoring unknown SDK message type`);continue}if(t.isMeta===!0)continue;let s=t.message?.content;if(!s)continue;let c=t.type===`assistant`?`assistant`:`user`;if(typeof s==`string`){if(!s.trim())continue;let t=T();await n.sessionUpdate({sessionId:e,update:{sessionUpdate:c===`assistant`?`agent_message_chunk`:`user_message_chunk`,...t?{messageId:t}:{},content:{type:`text`,text:s}}});continue}if(Array.isArray(s)){let t=X(s,c,e,r,n,void 0,{clientCapabilities:i,cwd:a,messageId:T()});for(let e of t)await n.sessionUpdate(e)}}}function ma(e,t,n,r,i,a,o,s){return async(n,c,l,u,d,f)=>{let p=ga(r);if(n.name===`ExitPlanMode`)return ha(e,t,d,c,p,i,a,o,s);if(f!==void 0)return f;try{let e=await ve(n,c,l,u,d);if(e.behavior===`allow`||e.behavior===`deny`)return e}catch(e){return console.error(`[ACP Permissions] Pipeline error:`,e),{behavior:`deny`,message:`Permission pipeline failed`,decisionReason:{type:`other`,reason:`Permission pipeline failed`},toolUseID:d}}let m=Y({name:n.name,id:d,input:c},p,i),h={toolCallId:d,title:m.title,kind:m.kind,status:`pending`,rawInput:c},g=[{kind:`allow_always`,name:`Always Allow`,optionId:`allow_always`},{kind:`allow_once`,name:`Allow`,optionId:`allow`},{kind:`reject_once`,name:`Reject`,optionId:`reject`},{kind:`reject_always`,name:`Always Reject`,optionId:`reject_always`}];try{let n=await e.requestPermission({sessionId:t,toolCall:h,options:g});if(n.outcome.outcome===`cancelled`)return s?.(),{behavior:`deny`,message:`Permission request cancelled by client`,decisionReason:{type:`mode`,mode:`default`},toolUseID:d};if(n.outcome.outcome===`selected`&&`optionId`in n.outcome&&n.outcome.optionId!==void 0){let e=n.outcome.optionId;if(e===`allow`||e===`allow_always`)return{behavior:`allow`,updatedInput:c}}return{behavior:`deny`,message:`Permission denied by client`,decisionReason:{type:`mode`,mode:`default`}}}catch(e){return console.error(`[ACP Permissions] Client request error:`,e),{behavior:`deny`,message:`Permission request failed`,decisionReason:{type:`mode`,mode:`default`}}}}}async function ha(e,t,n,r,i,a,o,s,c){let l=[{kind:`allow_always`,name:`Yes, and use "auto" mode`,optionId:`auto`},{kind:`allow_always`,name:`Yes, and auto-accept edits`,optionId:`acceptEdits`},{kind:`allow_once`,name:`Yes, and manually approve edits`,optionId:`default`},{kind:`reject_once`,name:`No, keep planning`,optionId:`plan`}];s?.()===!0&&l.unshift({kind:`allow_always`,name:`Yes, and bypass permissions`,optionId:`bypassPermissions`});let u=Y({name:`ExitPlanMode`,id:n,input:r},i,a),d={toolCallId:n,title:u.title,kind:u.kind,status:`pending`,rawInput:r},f=await e.requestPermission({sessionId:t,toolCall:d,options:l});if(f.outcome.outcome===`cancelled`)return c?.(),{behavior:`deny`,message:`Tool use aborted`,decisionReason:{type:`mode`,mode:`default`}};if(f.outcome.outcome===`selected`&&`optionId`in f.outcome&&f.outcome.optionId!==void 0){let n=f.outcome.optionId;if(l.some(e=>e.optionId===n)&&(n===`default`||n===`acceptEdits`||n===`auto`||n===`bypassPermissions`))return o?.(n),await e.sessionUpdate({sessionId:t,update:{sessionUpdate:`current_mode_update`,currentModeId:n}}),{behavior:`allow`,updatedInput:r}}return{behavior:`deny`,message:`User rejected request to exit plan mode.`,decisionReason:{type:`mode`,mode:`plan`}}}function ga(e){if(!e)return!1;if(e.terminal===!0)return!0;let t=e._meta;return!t||typeof t!=`object`?!1:t.terminal_output===!0}se(),he(),Ce(),fe(),e(),ye(),_e();var Z=class{constructor(e){t(this,`conn`,void 0),t(this,`sessions`,new Map),t(this,`clientCapabilities`,void 0),this.conn=e}async initialize(e){return this.clientCapabilities=e.clientCapabilities,{protocolVersion:1,authMethods:[],agentInfo:{name:`claude-code`,title:`Claude Code`,version:typeof globalThis.MACRO==`object`&&globalThis.MACRO!==null?String(globalThis.MACRO.VERSION??`0.0.0`):`0.0.0`},agentCapabilities:{_meta:{claudeCode:{promptQueueing:!0,forkSession:!0}},promptCapabilities:{image:!1,embeddedContext:!0},mcpCapabilities:{http:!0,sse:!0},loadSession:!0,sessionCapabilities:{list:{},resume:{},close:{},delete:{}}}}}async authenticate(e){return{}}async newSession(e){let t=await this.createSession(e);return this.scheduleAvailableCommandsUpdate(t.sessionId),t}async unstable_resumeSession(e){let t=await this.getOrCreateSession({...e,replay:!1});return this.scheduleAvailableCommandsUpdate(t.sessionId),t}async loadSession(e){let t=await this.getOrCreateSession(e);return this.scheduleAvailableCommandsUpdate(t.sessionId),t}async listSessions(e){if(e.cursor!==void 0&&e.cursor!==null)throw Error(`Pagination cursor not supported: listSessions returns all results in a single page.`);let t=e.cwd||ae(),n=await me(t),r=await ge({dir:t}),i=[];for(let e of r){if(!e.cwd||await me(e.cwd)!==n)continue;let t=$i(e.summary??``);i.push({sessionId:e.sessionId,cwd:e.cwd,...t?{title:t}:{},updatedAt:new Date(e.lastModified).toISOString()})}return{sessions:i}}async unstable_forkSession(e){let{initialMessages:t}=await _a(e.sessionId),n=await this.createSession({cwd:e.cwd,mcpServers:e.mcpServers??[],_meta:e._meta},{initialMessages:t});return this.scheduleAvailableCommandsUpdate(n.sessionId),n}async unstable_closeSession(e){if(!this.sessions.get(e.sessionId))throw Error(`Session not found`);return await this.teardownSession(e.sessionId),{}}async unstable_deleteSession(e){let t=await pe(e.sessionId);if(t)try{await Ge(t.filePath)}catch(e){if(e.code!==`ENOENT`)throw e}return this.sessions.has(e.sessionId)&&await this.teardownSession(e.sessionId),{}}async extMethod(e,t){if(e===`session/delete`){let e=t.sessionId;if(typeof e!=`string`||e.length===0)throw Error(`session/delete requires a non-empty sessionId`);return this.unstable_deleteSession({sessionId:e})}throw q.methodNotFound(e)}async cancel(e){let t=this.sessions.get(e.sessionId);if(t){t.cancelled=!0,t.cancelGeneration+=1;for(let[,e]of t.pendingMessages)e.resolve(!0);t.pendingMessages.clear(),t.pendingQueue=[],t.pendingQueueHead=0,t.queryEngine.interrupt()}}async setSessionMode(e){if(!this.sessions.get(e.sessionId))throw Error(`Session not found`);return this.applySessionMode(e.sessionId,e.modeId),await this.conn.sessionUpdate({sessionId:e.sessionId,update:{sessionUpdate:`current_mode_update`,currentModeId:e.modeId}}),await this.updateConfigOption(e.sessionId,`mode`,e.modeId),{}}async unstable_setSessionModel(e){let t=this.sessions.get(e.sessionId);if(!t)throw Error(`Session not found`);return t.queryEngine.setModel(e.modelId),await this.updateConfigOption(e.sessionId,`model`,e.modelId),{}}async sendAvailableCommandsUpdate(e){let t=this.sessions.get(e);if(!t)return;let n=t.commands.filter(e=>e.type===`prompt`&&!e.isHidden&&e.userInvocable!==!1).map(e=>({name:e.name,description:e.description,input:e.argumentHint?{hint:e.argumentHint}:void 0}));await this.conn.sessionUpdate({sessionId:e,update:{sessionUpdate:`available_commands_update`,availableCommands:n}})}scheduleAvailableCommandsUpdate(e){setTimeout(()=>{this.sendAvailableCommandsUpdate(e).catch(e=>{console.error(`[ACP] Failed to send available commands update:`,e)})},0)}};async function _a(e){let t;try{let n=await xe(e);n&&n.messages.length>0&&(t=je(n.messages))}catch(e){console.error(`[ACP] fork source load failed:`,e)}return{initialMessages:t}}var va=[`auto`,`default`,`acceptEdits`,`bypassPermissions`,`dontAsk`,`plan`];function ya(e){return va.includes(e)}function ba(e,t,n){if(t){let t=xa(e,`_meta.permissionMode`);if(t===`bypassPermissions`&&!wa())throw Error(`Mode not available: bypassPermissions cannot run as root (start the agent as a non-root user, or set IS_SANDBOX=1).`);return t}return Sa(n)??`default`}function xa(e,t){if(e==null)throw Error(`Invalid ${t}: expected a string.`);return Xi(e,t)}function Sa(e){if(e!=null)try{return Xi(e,`permissions.defaultMode`)}catch(e){let t=e instanceof Error?e.message:String(e);console.error(`[ACP] Invalid permissions.defaultMode, using default:`,t);return}}function Ca(e,t){return!!e&&Object.hasOwn(e,t)}function wa(){return Ta()}function Ta(){return process.env.IS_SANDBOX?!0:typeof process.geteuid==`function`?process.geteuid()!==0:typeof process.getuid==`function`?process.getuid()!==0:!0}function Ea(e,t){return[{id:`mode`,name:`Mode`,description:`Session permission mode`,category:`mode`,type:`select`,currentValue:e.currentModeId,options:e.availableModes.map(e=>({value:e.id,name:e.name,description:e.description}))},{id:`model`,name:`Model`,description:`AI model to use`,category:`model`,type:`select`,currentValue:t.currentModelId,options:t.availableModels.map(e=>({value:e.modelId,name:e.name,description:e.description??void 0}))}]}function Da(e){let t=[];if(!Array.isArray(e))return t;for(let n of e){if(typeof n!=`object`||!n)continue;let e=n;if(Array.isArray(e.options))for(let n of e.options)n&&typeof n==`object`&&typeof n.value==`string`&&t.push(n.value);else typeof n.value==`string`&&t.push(n.value)}return t}function Q(e){return e.conn}function $(e){return e.clientCapabilities}function Oa(e,t,n,r){n===`mode`?t.modes={...t.modes,currentModeId:r}:n===`model`&&(t.models={...t.models,currentModelId:r})}S();function ka(){return ce().permissions?.defaultMode}async function Aa(e,t={}){le();let n=t.sessionId??T(),r=e.cwd;C(n,re()),ie(r);let i=process.cwd(),a=!1;try{process.chdir(r),a=!0}catch{}try{let i=Ie(),a=we(i),o=e._meta,s=Ca(o,`permissionMode`),c=ba(s?o?.permissionMode:void 0,s,ka()),l=$(this),u=this.conn,d=ma(u,n,()=>this.sessions.get(n)?.modes.currentModeId??`default`,l,r,e=>{this.applySessionMode(n,e)},()=>this.sessions.get(n)?.appState.toolPermissionContext.isBypassPermissionsModeAvailable??!1),f=wa(),p={...Ne(),toolPermissionContext:{...i,mode:c,isBypassPermissionsModeAvailable:f}},[m,h]=await Promise.all([Te(r),Oe(r)]);p.agentDefinitions=h;let g=new ze({cwd:r,tools:a,commands:m,mcpClients:[],agents:h.activeAgents,canUseTool:d,getAppState:()=>p,setAppState:e=>{let t=e(p);Object.assign(p,t)},readFileCache:new Re(500,50*1024*1024),includePartialMessages:!0,replayUserMessages:!0,initialMessages:t.initialMessages}),_={currentModeId:c,availableModes:[{id:`default`,name:`Default`,description:`Standard behavior, prompts for dangerous operations`},{id:`acceptEdits`,name:`Accept Edits`,description:`Auto-accept file edit operations`},{id:`plan`,name:`Plan Mode`,description:`Planning mode, no actual tool execution`},{id:`auto`,name:`Auto`,description:`Use a model classifier to approve/deny permission prompts.`},...f?[{id:`bypassPermissions`,name:`Bypass Permissions`,description:`Skip all permission checks`}]:[],{id:`dontAsk`,name:`Don't Ask`,description:`Don't prompt for permissions, deny if not pre-approved`}]},ee=Pe(),v=oe(),y={availableModels:ee.map(e=>({modelId:String(e.value??``),name:e.label??String(e.value??``),description:e.description??void 0})),currentModelId:v};g.setModel(v);let b=Ea(_,y),te={queryEngine:g,cancelled:!1,cancelGeneration:0,cwd:r,modes:_,models:y,configOptions:b,promptRunning:!1,pendingMessages:new Map,pendingQueue:[],pendingQueueHead:0,toolUseCache:{},clientCapabilities:l,appState:p,commands:m,sessionFingerprint:Zi({cwd:r,mcpServers:e.mcpServers})};return this.sessions.set(n,te),{sessionId:n,modes:_,models:y,configOptions:b}}finally{a&&process.chdir(i)}}Object.assign(Z.prototype,{createSession:Aa}),ye(),_e(),S(),fe();async function ja(e){let t=e.replay!==!1,n=this.sessions.get(e.sessionId);if(n){if(Zi({cwd:e.cwd,mcpServers:e.mcpServers})===n.sessionFingerprint){let r=await pe(e.sessionId,e.cwd);return C(e.sessionId,r?Be(r.filePath):null),ie(e.cwd),t&&await this.replaySessionHistory(e),{sessionId:e.sessionId,modes:n.modes,models:n.models,configOptions:n.configOptions}}await this.teardownSession(e.sessionId)}let r=await pe(e.sessionId,e.cwd),i=r?Be(r.filePath):null;C(e.sessionId,i),ie(e.cwd);let a;if(r)try{let t=await xe(e.sessionId);t&&t.messages.length>0&&(a=je(t.messages))}catch(e){console.error(`[ACP] Failed to load session history:`,e)}let o=await this.createSession({cwd:e.cwd,mcpServers:e.mcpServers??[],_meta:e._meta},{sessionId:e.sessionId,initialMessages:a});if(t&&a&&a.length>0){let t=this.sessions.get(e.sessionId);t&&await pa(e.sessionId,a,Q(this),t.toolUseCache,$(this),t.cwd)}return{sessionId:o.sessionId,modes:o.modes,models:o.models,configOptions:o.configOptions}}async function Ma(e){this.sessions.get(e)&&(await this.cancel({sessionId:e}),this.sessions.delete(e))}async function Na(e){try{let t=await xe(e.sessionId);if(!t||t.messages.length===0)return;let n=je(t.messages);if(n.length===0)return;let r=this.sessions.get(e.sessionId);if(!r)return;await pa(e.sessionId,n,Q(this),r.toolUseCache,$(this),r.cwd)}catch(e){console.error(`[ACP] Failed to replay session history:`,e)}}function Pa(e,t){if(!ya(t))throw Error(`Invalid mode: ${t}`);let n=this.sessions.get(e);if(n){if(t===`bypassPermissions`&&!n.appState.toolPermissionContext.isBypassPermissionsModeAvailable||!n.modes.availableModes.some(e=>e.id===t))throw Error(`Mode not available: ${t}`);n.modes={...n.modes,currentModeId:t},n.appState.toolPermissionContext={...n.appState.toolPermissionContext,mode:t}}}async function Fa(e,t,n){let r=this.sessions.get(e);r&&(Oa(this,r,t,n),r.configOptions=r.configOptions.map(e=>e.id===t&&typeof e.currentValue==`string`?{...e,currentValue:n}:e),await Q(this).sessionUpdate({sessionId:e,update:{sessionUpdate:`config_option_update`,configOptions:r.configOptions}}))}Object.assign(Z.prototype,{getOrCreateSession:ja,teardownSession:Ma,replaySessionHistory:Na,applySessionMode:Pa,updateConfigOption:Fa});function Ia(e){if(!e||e.length===0)return``;let t=[];for(let n of e){let e=n;if(e.type===`text`)t.push(String(e.text??``));else if(e.type===`resource_link`){let n=typeof e.name==`string`?e.name:void 0,r=typeof e.uri==`string`?e.uri:void 0;t.push(La(n,r))}else if(e.type===`resource`){let n=e.resource;if(n&&typeof n.text==`string`)t.push(n.text);else if(n&&typeof n.blob==`string`){let e=typeof n.mimeType==`string`?n.mimeType:`application/octet-stream`,r=typeof n.uri==`string`?n.uri:`(unknown uri)`;t.push(`Embedded resource: ${r} (${e}, base64 blob, ${n.blob.length} chars)`)}}}return t.filter(e=>e.length>0).join(`
14
- `)}function La(e,t){let n=[];return e&&e.length>0&&n.push(`name=${e}`),t&&t.length>0&&n.push(`uri=${t}`),n.length>0?`Resource link: ${n.join(`, `)}`:`Resource link`}function Ra(e){for(;e.pendingQueueHead<e.pendingQueue.length;){let t=e.pendingQueue[e.pendingQueueHead++];if(!t)continue;let n=e.pendingMessages.get(t);if(n)return e.pendingMessages.delete(t),za(e),n}za(e)}function za(e){if(e.pendingQueueHead!==0){if(e.pendingQueueHead>=e.pendingQueue.length){e.pendingQueue=[],e.pendingQueueHead=0;return}e.pendingQueueHead>1024&&e.pendingQueueHead*2>e.pendingQueue.length&&(e.pendingQueue=e.pendingQueue.slice(e.pendingQueueHead),e.pendingQueueHead=0)}}S();async function Ba(e){let t=this.sessions.get(e.sessionId);if(!t)throw Error(`Session ${e.sessionId} not found`);let n=e.messageId??void 0,r=Ia(e.prompt);if(!r.trim())throw Error(`Prompt content is empty`);let i=t.cancelGeneration;if(t.promptRunning){let e=T();if(await new Promise(n=>{t.pendingQueue.push(e),t.pendingMessages.set(e,{resolve:n})}))return{stopReason:`cancelled`}}if(t.cancelGeneration!==i)return{stopReason:`cancelled`};t.cancelled=!1,t.promptRunning=!0;try{t.queryEngine.resetAbortController(),C(e.sessionId,re());let i=t.queryEngine.submitMessage(r),{stopReason:a,usage:o}=await fa(e.sessionId,i,Q(this),t.queryEngine.getAbortSignal(),t.toolUseCache,$(this),t.cwd,()=>t.cancelled);if(t.cancelled)return{stopReason:`cancelled`};if(await Ha(this,e.sessionId,r),o){let e={inputTokens:o.inputTokens,outputTokens:o.outputTokens,cachedReadTokens:o.cachedReadTokens,cachedWriteTokens:o.cachedWriteTokens,thoughtTokens:0,totalTokens:o.inputTokens+o.outputTokens+o.cachedReadTokens+o.cachedWriteTokens+0};return{stopReason:a,usage:e,...n?{userMessageId:n}:{},_meta:{claudeCode:{usage:e}}}}return{stopReason:a,...n?{userMessageId:n}:{}}}catch(n){let r=n instanceof Error&&(n.name===`AbortError`||/abort|cancelled|interrupt/i.test(n.message));if(t.cancelled||r)return{stopReason:`cancelled`};throw n instanceof Error&&(n.message.includes(`terminated`)||n.message.includes(`process exited`))?(await this.teardownSession(e.sessionId),Error(`The Claude Agent process exited unexpectedly. Please start a new session.`)):n}finally{let e=Ra(t);e?(t.promptRunning=!0,e.resolve(!1)):t.promptRunning=!1}}async function Va(e){let t=this.sessions.get(e.sessionId);if(!t)throw Error(`Session not found`);if(typeof e.value!=`string`)throw Error(`Invalid value for config option ${e.configId}: ${String(e.value)}`);let n=t.configOptions.find(t=>t.id===e.configId);if(!n)throw Error(`Unknown config option: ${e.configId}`);if(n.type===`select`){let t=Da(n.options);if(!t.includes(e.value))throw Error(`Invalid value '${e.value}' for config option ${e.configId}; must be one of: ${t.join(`, `)}`)}let r=e.value;return e.configId===`mode`?(this.applySessionMode(e.sessionId,r),await Q(this).sessionUpdate({sessionId:e.sessionId,update:{sessionUpdate:`current_mode_update`,currentModeId:r}})):e.configId===`model`&&t.queryEngine.setModel(r),Oa(this,t,e.configId,r),t.configOptions=t.configOptions.map(t=>t.id===e.configId&&typeof t.currentValue==`string`?{...t,currentValue:r}:t),{configOptions:t.configOptions}}async function Ha(e,t,n){let r=e.sessions.get(t);if(!r)return;let i=r.toolUseCache;if(i.__sessionInfoTitleSent)return;i.__sessionInfoTitleSent=!0;let a=$i(n).slice(0,100);try{await Q(e).sessionUpdate({sessionId:t,update:{sessionUpdate:`session_info_update`,...a?{title:a}:{},updatedAt:new Date().toISOString()}})}catch(e){console.error(`[ACP] Failed to send session_info_update:`,e)}}Object.assign(Z.prototype,{prompt:Ba,setSessionConfigOption:Va}),de(),Se();function Ua(e,t){let n=Ue.toWeb(e);return Mi(We.toWeb(t),n)}async function Wa(){le(),Me();let e=Ua(process.stdin,process.stdout),t,n=new Pi(e=>(t=new Z(e),t),e);console.log=console.error,console.info=console.error,console.warn=console.error,console.debug=console.error;async function r(){for(let[e]of t.sessions)try{await t.unstable_closeSession({sessionId:e})}catch{}process.exit(0)}n.closed.then(r).catch(r),process.on(`SIGTERM`,r),process.on(`SIGINT`,r),process.on(`unhandledRejection`,(e,t)=>{console.error(`Unhandled Rejection at:`,t,`reason:`,e)}),process.stdin.resume()}export{Wa as runAcpAgent};
@@ -1 +0,0 @@
1
- import{a as e,i as t}from"./envLessBridgeConfig-DW4-nPbZ.js";t();export{e as shouldShowAppUpgradeMessage};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./extra-usage-DTr6gExD.js";e();export{t as call};
@@ -1 +0,0 @@
1
- import{iu as e,nu as t,ru as n,tu as r}from"./loadAgentsDir-CQF8qhne.js";e();export{r as drainPendingExtraction,t as executeExtractMemories,n as initExtractMemories};
@@ -1 +0,0 @@
1
- import{n as e,r as t,t as n}from"./fast-bkGXbuHX.js";t();export{n as FastModePicker,e as call};
@@ -1 +0,0 @@
1
- import{i as e,n as t}from"./gates-C66Nz9b2.js";e();export{t as getChicagoEnabled};
@@ -1 +0,0 @@
1
- import{$t as e,Cn as t,Sn as n,mn as r}from"./loadAgentsDir-CQF8qhne.js";t();export{e as executeSessionEndHooks,r as getSessionEndHookTimeoutMs,n as hasWorktreeCreateHook};
@@ -1 +0,0 @@
1
- import{r as e}from"./inboundAttachments-B0sGIu79.js";export{e as resolveAndPrepend};
@@ -1 +0,0 @@
1
- import{n as e,r as t}from"./language-iERMuOEu.js";t();export{e as getResolvedLanguage};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./loadAgentsDir-CQF8qhne.js";e();export{t as clearAgentDefinitionsCache};
@@ -1 +0,0 @@
1
- import{a as e,c as t,o as n,t as r}from"./localSearch-BNYypHsK.js";n();export{r as clearSkillIndexCache,e as getSkillIndex,t as searchSkills};
@@ -1 +0,0 @@
1
- import{n as e,r as t,t as n}from"./login-CxbcJk9_.js";t();export{n as Login,e as call};
@@ -1 +0,0 @@
1
- import{iE as e,nE as t,rE as n,tE as r}from"./loadAgentsDir-CQF8qhne.js";n();export{r as call,t as clearAuthRelatedCaches,e as performLogout};
@@ -1 +0,0 @@
1
- import{Dr as e,Pr as t}from"./paths-4ZWdjPP4.js";t();export{e as getMainLoopModel};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{B as n,Rn as r,b as i,f as a,t as o,x as s,xt as c}from"./src-KjMLauwe.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{ed as u,td as d}from"./loadAgentsDir-CQF8qhne.js";import{n as f,t as p}from"./SentryErrorBoundary-nYTimi4l.js";function m(e){return e.status===`running`?{mark:`●`,color:`warning`}:e.resultKind===`dead`?{mark:`✗`,color:`error`}:{mark:`✓`,color:`success`}}function h(e){return e?e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e):`0`}function g(e){let t=[];return e.model&&t.push(e.model),t.push(`${h(e.tokenCount)} tok`),t.push(`${e.toolCount??0} tool`),t.join(` · `)}var _,v,y,b,x,S=e((()=>{_={running:`●`,completed:`✓`,failed:`✗`,killed:`■`},v={running:`warning`,completed:`success`,failed:`error`,killed:`subtle`},y={running:`running`,completed:`done`,failed:`failed`,killed:`killed`},b={running:`●`,done:`✓`,pending:`○`},x={running:`warning`,done:`success`,pending:`subtle`}}));function C(e,t){if(e.length<=t)return e;let n=e.match(/#\d+$/);if(!n)return e.slice(0,t);let r=n[0],i=e.slice(0,e.length-r.length),a=t-r.length-1;return`${i.slice(0,a)}…${r}`}function w({agents:e,selectedIndex:t,focused:r}){let[a,o]=n(D),c=E[Math.floor(o/D)%E.length];return e.length===0?(0,T.jsx)(i,{color:`subtle`,children:`(no agents in this phase)`}):(0,T.jsx)(s,{ref:a,flexDirection:`column`,children:e.map((e,n)=>{let a=m(e),o=n===t&&r,l=e.status===`running`?c:a.mark,u=C(e.label??`agent-${e.id}`,O);return(0,T.jsxs)(s,{backgroundColor:o?`selectionBg`:void 0,justifyContent:`space-between`,children:[(0,T.jsxs)(s,{children:[(0,T.jsx)(i,{color:a.color,children:l}),(0,T.jsxs)(i,{children:[` `,u]})]}),(0,T.jsx)(i,{color:`subtle`,children:g(e)})]},e.id)})})}var T,E,D,O,k=e((()=>{r(),o(),S(),T=l(),E=[`·`,`✢`,`✱`,`✶`,`✻`,`✽`],D=120,O=18}));function A(e){let t=new Map(e.phases.map(e=>[e.title,e])),n=new Set,r=[],i=i=>{if(n.has(i))return;n.add(i);let a=t.get(i),o=a?a.status:`pending`,s=e.agents.filter(e=>e.phase===i);r.push({title:i,status:o,done:s.filter(e=>e.status===`done`).length,total:s.length})};for(let t of e.declaredPhases)i(t);for(let t of e.phases)i(t.title);return r}function j(e,t){return t===void 0||t===`All`?e:e.filter(e=>e.phase===t)}function M(e,t){return`${e}#${t.slice(-4)}`}function N(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;return n<60?`${n}m${String(r).padStart(2,`0`)}s`:`${Math.floor(n/60)}h${String(n%60).padStart(2,`0`)}m`}var P=e((()=>{}));function F({phases:e,agents:t,selectedIndex:r,focused:a}){let[o,c]=n(R),l=L[Math.floor(c/R)%L.length],u=t.length;return(0,I.jsx)(s,{ref:o,flexDirection:`column`,children:[{title:`All`,done:t.filter(e=>e.status===`done`).length,total:u},...e].map((e,t)=>{let n=t===r,o=n&&a,c=e.status===`running`?l:e.status?b[e.status]:` `,u=e.status?x[e.status]:`subtle`;return(0,I.jsxs)(s,{backgroundColor:o?`selectionBg`:void 0,justifyContent:`space-between`,children:[(0,I.jsxs)(s,{children:[(0,I.jsx)(i,{color:n?`claude`:void 0,children:o?`>`:` `}),(0,I.jsx)(i,{children:` `}),(0,I.jsx)(i,{color:u,children:c}),(0,I.jsxs)(i,{children:[` `,e.title]})]}),(0,I.jsxs)(i,{color:`subtle`,children:[e.done,`/`,e.total]})]},e.title)})})}var I,L,R,z=e((()=>{r(),o(),S(),P(),I=l(),L=[`·`,`✢`,`✱`,`✶`,`✻`,`✽`],R=120}));function B({runs:e,activeRunId:t}){return e.length===0?(0,V.jsx)(i,{color:`subtle`,children:`(no runs)`}):(0,V.jsx)(s,{children:e.map(e=>{let n=e.runId===t,r=M(e.workflowName,e.runId),a=`═`.repeat(r.length+2);return(0,V.jsxs)(s,{flexDirection:`column`,marginRight:2,children:[(0,V.jsxs)(s,{children:[(0,V.jsx)(i,{color:v[e.status],children:_[e.status]}),(0,V.jsx)(i,{children:` `}),(0,V.jsx)(i,{color:n?`claude`:void 0,bold:n,children:r})]}),(0,V.jsx)(i,{color:n?`claude`:void 0,children:n?a:``})]},e.runId)})})}var V,H=e((()=>{r(),o(),S(),P(),V=l()}));function U(e,t,n=`normal`){return n===`confirm`?e===`y`||e===`Y`||t.return?`confirmYes`:e===`n`||e===`N`||t.escape||e===`q`?`confirmNo`:null:t.tab||e===` `?t.shift?`prevTab`:`nextTab`:t.escape||e===`q`?`quit`:e===`K`?`killWorkflow`:e===`x`?`killAgent`:e===`r`?`resume`:e===`n`?`newRun`:t.leftArrow?`focusLeft`:t.rightArrow?`focusRight`:t.upArrow?`moveUp`:t.downArrow?`moveDown`:null}function W(e,t=`normal`){c((n,r)=>{let i=U(n,r,t);if(i!==null)switch(i){case`nextTab`:e.nextTab();break;case`prevTab`:e.prevTab();break;case`focusLeft`:e.focusLeft();break;case`focusRight`:e.focusRight();break;case`moveUp`:e.moveUp();break;case`moveDown`:e.moveDown();break;case`killAgent`:e.killAgent();break;case`killWorkflow`:e.killWorkflow();break;case`resume`:e.resumeFocused();break;case`newRun`:e.newRun();break;case`quit`:e.quit();break;case`confirmYes`:e.confirmYes();break;case`confirmNo`:e.confirmNo();break}})}var G=e((()=>{o()}));function K(e,t){if(t===0)return 0;let n=Math.trunc(e);return Number.isNaN(n)||n<0?0:Math.min(n,t-1)}function q(e,t){return!e||!t||e.runId!==t.runId||e.status!==`running`?!1:t.status===`completed`||t.status===`failed`||t.status===`killed`}function J({onDone:e,context:t}){let r=u(),o=(0,Y.useSyncExternalStore)(r.subscribe,()=>r.listRuns(),()=>[]),[c,l]=(0,Y.useState)(null),[d,f]=(0,Y.useState)(`phases`),[p,m]=(0,Y.useState)(0),[h,g]=(0,Y.useState)(0),[_,b]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{r.loadPersistedRuns()},[r]),(0,Y.useEffect)(()=>{if(o.length===0){c!==null&&l(null);return}o.some(e=>e.runId===c)||l(o[0].runId)},[o,c]);let x=o.find(e=>e.runId===c),S=x?A(x):[],C=S.length+1,T=K(p,C),E=(0,Y.useRef)(null);(0,Y.useEffect)(()=>{let t=x?{runId:x.runId,status:x.status}:null,n=E.current;if(E.current=t,!q(n,t))return;let r=setTimeout(()=>e(),800);return()=>{clearTimeout(r)}},[x?.runId,x?.status,e]);let D=T===0?void 0:S[T-1]?.title,O=x?j(x.agents,D):[],k=K(h,O.length),M=e=>{l(e),f(`phases`),m(0),g(0)};W({nextTab:()=>{if(o.length===0)return;let e=o[(o.findIndex(e=>e.runId===c)+1)%o.length];M(e.runId)},prevTab:()=>{if(o.length===0)return;let e=o[(o.findIndex(e=>e.runId===c)-1+o.length)%o.length];M(e.runId)},focusLeft:()=>f(`phases`),focusRight:()=>f(`agents`),moveUp:()=>{d===`phases`?m(e=>K(e-1,C)):g(e=>K(e-1,O.length))},moveDown:()=>{d===`phases`?m(e=>K(e+1,C)):g(e=>K(e+1,O.length))},killAgent:()=>{d!==`agents`||!x||O[k]&&b(`agent`)},killWorkflow:()=>{x&&b(`workflow`)},resumeFocused:()=>{if(!x)return;let n=t.canUseTool;if(!n){e(`resume needs canUseTool context; run /<name> resume from the main session.`);return}r.launch({resumeFromRunId:x.runId,name:x.workflowName},t,n).catch(t=>e(`resume failed: ${t.message}`))},newRun:()=>e(`Tip: start a named workflow with /<name>, or pass name via the Workflow tool.`),quit:()=>{if(_!==null){b(null);return}e()},confirmYes:()=>{if(_===`workflow`&&x){r.kill(x.runId),b(null),e();return}else if(_===`agent`&&x){let e=O[k];e&&r.killAgent(x.runId,e.id)}b(null)},confirmNo:()=>b(null)},_===null?`normal`:`confirm`);let P=o.filter(e=>e.status===`running`).length,I=o.length-P,L=D??`All`,R=x?x.agents.filter(e=>e.status===`done`).length:0,[z]=n(1e3),V=x?Date.now()-x.startedAt:0;return(0,X.jsxs)(s,{ref:z,flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,paddingX:1,children:[(0,X.jsxs)(s,{justifyContent:`space-between`,children:[(0,X.jsx)(i,{bold:!0,children:x?.workflowName??`Workflows`}),x?(0,X.jsxs)(i,{color:`subtle`,children:[R,`/`,x.agentCount,` agents · `,N(V),` ·`,` `,(0,X.jsx)(i,{color:v[x.status],children:y[x.status]})]}):(0,X.jsxs)(i,{color:`subtle`,children:[P,` running · `,I,` done`]})]}),x?.description?(0,X.jsx)(i,{color:`subtle`,children:x.description}):null,o.length>1?(0,X.jsx)(s,{marginTop:1,children:(0,X.jsx)(B,{runs:o,activeRunId:c})}):null,(0,X.jsxs)(s,{flexDirection:`row`,marginTop:1,children:[(0,X.jsxs)(s,{width:`25%`,flexDirection:`column`,children:[(0,X.jsx)(i,{color:d===`phases`?`claude`:`subtle`,bold:!0,children:`Phases`}),(0,X.jsx)(F,{phases:S,agents:x?.agents??[],selectedIndex:T,focused:d===`phases`})]}),(0,X.jsx)(i,{color:`subtle`,children:`│`}),(0,X.jsxs)(s,{flexGrow:1,flexDirection:`column`,children:[(0,X.jsxs)(i,{color:d===`agents`?`claude`:`subtle`,bold:!0,children:[L,` · `,O.length,` agents`]}),(0,X.jsx)(w,{agents:O,selectedIndex:k,focused:d===`agents`})]})]}),(0,X.jsx)(s,{marginTop:1,children:(0,X.jsx)(i,{color:`subtle`,children:_===null?`Tab switch run · ←/→ focus · ↑/↓ move · x kill agent · K kill workflow · r resume · q quit`:`Confirm: y kill · n/Esc cancel`})}),_===null?null:(0,X.jsx)(a,{title:_===`workflow`?`Kill workflow "${x?.workflowName??``}"?`:`Kill agent "${O[k]?.label??``}"?`,subtitle:_===`workflow`?`All in-flight agents will be aborted. Resume will replay from journal.`:`Only this agent aborts; other agents in the workflow keep running.`,onCancel:()=>b(null),color:`warning`,children:(0,X.jsx)(i,{color:`subtle`,children:`Press y to confirm, or n/Esc to cancel.`})})]})}var Y,X,Z=e((()=>{Y=t(r(),1),o(),d(),k(),z(),H(),S(),G(),P(),X=l()})),Q,$;e((()=>{f(),Z(),Q=l(),$=async(e,t,n)=>(0,Q.jsx)(p,{name:`WorkflowsPanel`,children:(0,Q.jsx)(J,{onDone:e,context:t})})}))();export{$ as call};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-KjMLauwe.js";import{t as n}from"./jsx-runtime-D-D469L8.js";import{n as r,t as i}from"./PluginSettings-BZ-PX9Tg.js";async function a(e,t,n){return(0,o.jsx)(i,{onComplete:e,args:n})}var o;e((()=>{t(),r(),o=n()}))();export{a as call};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./pluginStartupCheck-B6OdK29Z.js";e();export{t as getPluginEditableScopes};
@@ -1 +0,0 @@
1
- import{Ka as e,Qa as t,Wa as n}from"./loadAgentsDir-CQF8qhne.js";n();export{e as isPolicyAllowed,t as waitForPolicyLimitsToLoad};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./poorMode-DD-q_w6Z.js";t();export{e as isPoorModeActive};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{basename as r,join as i,resolve as a}from"path";import{existsSync as o,mkdirSync as s,readFileSync as c,realpathSync as l,writeFileSync as u}from"fs";import{createHash as d}from"crypto";import{execFileSync as f}from"child_process";function p(){return i(t(),`skill-learning`)}function m(){return i(p(),`projects.json`)}function h(e){return e===M?i(p(),`global`):i(p(),`projects`,e)}function g(e){return i(h(e),`project.json`)}function _(e,t){if(I.has(e)&&I.delete(e),I.set(e,t),I.size>P){let e=I.size-F,t=I.keys();for(let n=0;n<e;n++){let e=t.next();if(e.done)break;I.delete(e.value)}}}function v(e=process.cwd()){let t=I.get(e);if(t){I.delete(e),I.set(e,t);let n=Date.now();return n-R>L&&(R=n,C(t)),t}let n=x(e);return _(e,n),C(n),R=Date.now(),n}function y(){I.clear(),R=0}function b(){let e=w(m());return Object.values(e.projects).sort((e,t)=>e.projectName.localeCompare(t.projectName))}function x(e){let t=process.env.CLAUDE_PROJECT_DIR?.trim();if(t){let n=D(t);return S({source:`claude_project_dir`,scope:`project`,cwd:e,projectRoot:n,identity:`claude-project-dir:${n}`,projectName:r(n)||`project`})}let n=E([`remote`,`get-url`,`origin`],e);if(n){let t=E([`rev-parse`,`--show-toplevel`],e),r=O(n);return S({source:`git_remote`,scope:`project`,cwd:e,projectRoot:D(t||e),gitRemote:r,identity:`git-remote:${r}`,projectName:k(r)})}let i=E([`rev-parse`,`--show-toplevel`],e);if(i){let t=D(i);return S({source:`git_root`,scope:`project`,cwd:e,projectRoot:t,identity:`git-root:${t}`,projectName:r(t)||`project`})}return S({source:`global`,scope:`global`,cwd:e,projectRoot:void 0,identity:`global`,projectName:N})}function S(e){let t=e.scope===`global`?M:A(e.identity);return{projectId:t,projectName:e.projectName,scope:e.scope,source:e.source,cwd:D(e.cwd),projectRoot:e.projectRoot,gitRemote:e.gitRemote,storageDir:h(t)}}function C(e){let t=new Date().toISOString(),n=m(),r=w(n),i=r.projects[e.projectId],a={...e,firstSeenAt:i?.firstSeenAt??t,lastSeenAt:t};r.projects[e.projectId]=a,r.updatedAt=t,s(e.storageDir,{recursive:!0}),s(p(),{recursive:!0}),T(n,r),T(g(e.projectId),a)}function w(e){if(!o(e))return{version:j,updatedAt:new Date(0).toISOString(),projects:{}};try{let t=JSON.parse(c(e,`utf8`));if(t.version===j&&typeof t.projects==`object`&&t.projects)return{version:j,updatedAt:typeof t.updatedAt==`string`?t.updatedAt:new Date(0).toISOString(),projects:t.projects}}catch{}return{version:j,updatedAt:new Date(0).toISOString(),projects:{}}}function T(e,t){u(e,`${JSON.stringify(t,null,2)}\n`,`utf8`)}function E(e,t){try{return f(`git`,[`-C`,t,...e],{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`]}).trim()||null}catch{return null}}function D(e){let t=a(e);try{return l.native(t).normalize(`NFC`)}catch{return t.normalize(`NFC`)}}function O(e){let t=e.trim().replace(/\\/g,`/`);return t=t.replace(/\.git$/i,``),t=t.replace(/\/+$/g,``),t.toLowerCase()}function k(e){return e.match(/[:/]([^/:]+?)(?:\.git)?$/)?.[1]||`project`}function A(e){return`project-${d(`sha256`).update(e).digest(`hex`).slice(0,16)}`}var j,M,N,P,F,I,L,R,z=e((()=>{n(),j=1,M=`global`,N=`Global`,P=32,F=24,I=new Map,L=300*1e3,R=0}));export{z as a,v as c,p as i,h as n,b as o,m as r,y as s,g as t};
@@ -1 +0,0 @@
1
- import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./projectContext-2Z2w8AI8.js";e();export{s as getProjectContextPath,r as getProjectStorageDir,a as getProjectsRegistryPath,n as getSkillLearningRootDir,i as listKnownProjects,o as resetProjectContextCacheForTest,t as resolveProjectContext};
@@ -1 +0,0 @@
1
- import{i as e,r as t}from"./prompt-CogZQuTN.js";t();export{e as isDeferredTool};
@@ -1 +0,0 @@
1
- import{TA as e,yA as t}from"./loadAgentsDir-CQF8qhne.js";e();export{t as clearPromptCache};
@@ -1 +0,0 @@
1
- import{FA as e,MA as t}from"./loadAgentsDir-CQF8qhne.js";e();export{t as SandboxManager};
@@ -1 +0,0 @@
1
- import{rl as e,tl as t}from"./loadAgentsDir-CQF8qhne.js";t();export{e as isSearchExtraToolsEnabled};
@@ -1 +0,0 @@
1
- import{Su as e,bu as t}from"./loadAgentsDir-CQF8qhne.js";t();export{e as registerSessionFileAccessHooks};
@@ -1 +0,0 @@
1
- import{i as e,r as t}from"./sessionMemory-CnT3-Mj7.js";t();export{e as manuallyExtractSessionMemory};
@@ -1 +0,0 @@
1
- import{Tk as e,xk as t}from"./loadAgentsDir-CQF8qhne.js";e();export{t as getSessionMemoryContent};
@@ -1 +0,0 @@
1
- import{i as e,r as t}from"./sessionObserver-gjdJ91cv.js";e();export{t as heuristicObserverBackend};
@@ -1 +0,0 @@
1
- import{Fr as e,Hr as t,di as n}from"./loadAgentsDir-CQF8qhne.js";e();export{t as linkSessionToPR,n as recordTranscript};
@@ -1 +0,0 @@
1
- import{r as e,t}from"./sink-BL75jACh.js";t();export{e as initializeAnalyticsSink};
@@ -1 +0,0 @@
1
- import{t as e}from"./sinks-C-gxj_Eu.js";export{e as initSinks};
@@ -1 +0,0 @@
1
- import"./featureCheck-j7P30mry.js";import"./instinctParser-BMtAMLSx.js";import"./skillGenerator-_khb-Gmc.js";import{p as e}from"./runtimeObserver-D6aF77Dq.js";import{o as t}from"./observationStore-Bi1rRKcD.js";import{c as n}from"./projectContext-2Z2w8AI8.js";import"./sessionObserver-gjdJ91cv.js";import"./toolEventObserver-BIjUIh4k.js";import"./skillGapStore-CsADiV5a.js";import{t as r}from"./skillLearning-D6mvGN90.js";r();export{e as loadInstincts,t as readObservations,n as resolveProjectContext};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{t}from"./featureCheck-j7P30mry.js";import{b as n,m as r,o as i}from"./skillGenerator-_khb-Gmc.js";import{S as a,T as o,f as s,i as c,k as l,u}from"./runtimeObserver-D6aF77Dq.js";import{i as d}from"./observationStore-Bi1rRKcD.js";import{a as f}from"./projectContext-2Z2w8AI8.js";import{a as p,c as m,d as h,i as g}from"./sessionObserver-gjdJ91cv.js";import{n as _}from"./toolEventObserver-BIjUIh4k.js";import{n as v}from"./skillGapStore-CsADiV5a.js";var y=e((()=>{t(),a(),n(),s(),d(),u(),f(),c(),h(),p(),l(),o(),_(),g(),v(),i(),r(),m()}));export{y as t};
@@ -1 +0,0 @@
1
- import{a as e,n as t}from"./startupProfiler-rCtNuhXz.js";t();export{e as profileCheckpoint};
@@ -1,3 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{n as i,t as a}from"./defineProperty-80gRi2ZW.js";import{Cn as o,t as s}from"./src-KjMLauwe.js";import{Ct as ee,cn as c}from"./state-sIHsFpDu.js";import{A as te,E as ne,_ as l,h as re,l as ie,p as u}from"./debug-otxXY3j-.js";import{n as d,r as f}from"./analytics-DqMQntaB.js";import{a as p,n as m,r as h,s as g}from"./intl-CLeE9DsD.js";import{dirname as ae,join as _}from"path";function v(e,t){if(o(e)<=t)return e;if(t<=0)return`…`;if(t<5)return y(e,t);let n=e.lastIndexOf(`/`),r=n>=0?e.slice(n):e,i=n>=0?e.slice(0,n):``,a=o(r);if(a>=t-1)return b(e,t);let s=t-1-a;return s<=0?b(r,t):x(i,s)+`…`+r}function y(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=0,r=``;for(let{segment:i}of m().segment(e)){let e=o(i);if(n+e>t-1)break;r+=i,n+=e}return r+`…`}function b(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=[...m().segment(e)],r=0,i=n.length;for(let e=n.length-1;e>=0;e--){let a=o(n[e].segment);if(r+a>t-1)break;r+=a,i=e}return`…`+n.slice(i).map(e=>e.segment).join(``)}function x(e,t){if(o(e)<=t)return e;if(t<=0)return``;let n=0,r=``;for(let{segment:i}of m().segment(e)){let e=o(i);if(n+e>t)break;r+=i,n+=e}return r}function S(e,t,n=!1){if(e==null)return``;let r=e;if(n){let n=e.indexOf(`
2
- `);if(n!==-1)return r=e.substring(0,n),o(r)+1>t?y(r,t):`${r}…`}return o(r)<=t?r:y(r,t)}var C=e((()=>{s(),g()}));function w(e){let t=e/1024;if(t<1)return`${e} bytes`;if(t<1024)return`${t.toFixed(1).replace(/\.0$/,``)}KB`;let n=t/1024;return n<1024?`${n.toFixed(1).replace(/\.0$/,``)}MB`:`${(n/1024).toFixed(1).replace(/\.0$/,``)}GB`}function T(e){return`${(e/1e3).toFixed(1)}s`}function E(e,t){if(e<6e4)return e===0?`0s`:e<1?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/1e3).toString()}s`;let n=Math.floor(e/864e5),r=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),a=Math.round(e%6e4/1e3);a===60&&(a=0,i++),i===60&&(i=0,r++),r===24&&(r=0,n++);let o=t?.hideTrailingZeros;return t?.mostSignificantOnly?n>0?`${n}d`:r>0?`${r}h`:i>0?`${i}m`:`${a}s`:n>0?o&&r===0&&i===0?`${n}d`:o&&i===0?`${n}d ${r}h`:`${n}d ${r}h ${i}m`:r>0?o&&i===0&&a===0?`${r}h`:o&&a===0?`${r}h ${i}m`:`${r}h ${i}m ${a}s`:i>0?o&&a===0?`${i}m`:`${i}m ${a}s`:`${a}s`}function D(e){return P(e>=1e3).format(e).toLowerCase()}function O(e){return D(e).replace(`.0`,``)}function k(e,t={}){let{style:n=`narrow`,numeric:r=`always`,now:i=new Date}=t,a=e.getTime()-i.getTime(),o=Math.trunc(a/1e3);for(let{unit:e,seconds:t,shortUnit:i}of[{unit:`year`,seconds:31536e3,shortUnit:`y`},{unit:`month`,seconds:2592e3,shortUnit:`mo`},{unit:`week`,seconds:604800,shortUnit:`w`},{unit:`day`,seconds:86400,shortUnit:`d`},{unit:`hour`,seconds:3600,shortUnit:`h`},{unit:`minute`,seconds:60,shortUnit:`m`},{unit:`second`,seconds:1,shortUnit:`s`}])if(Math.abs(o)>=t){let a=Math.trunc(o/t);return n===`narrow`?o<0?`${Math.abs(a)}${i} ago`:`in ${a}${i}`:h(`long`,r).format(a,e)}return n===`narrow`?o<=0?`0s ago`:`in 0s`:h(n,r).format(0,`second`)}function A(e,t={}){let{now:n=new Date,...r}=t;return e>n?k(e,{...r,now:n}):k(e,{...r,numeric:`always`,now:n})}function oe(e){let t=e.fileSize===void 0?`${e.messageCount} messages`:w(e.fileSize),n=[A(e.modified,{style:`short`}),...e.gitBranch?[e.gitBranch]:[],t];return e.tag&&n.push(`#${e.tag}`),e.agentSetting&&n.push(`@${e.agentSetting}`),e.prNumber&&n.push(e.prRepository?`${e.prRepository}#${e.prNumber}`:`#${e.prNumber}`),n.join(` · `)}function j(e,t=!1,n=!0){if(!e)return;let r=new Date(e*1e3),i=new Date,a=r.getMinutes();if((r.getTime()-i.getTime())/(1e3*60*60)>24){let e={month:`short`,day:`numeric`,hour:n?`numeric`:void 0,minute:!n||a===0?void 0:`2-digit`,hour12:n?!0:void 0};return r.getFullYear()!==i.getFullYear()&&(e.year=`numeric`),r.toLocaleString(`en-US`,e).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${p()})`:``)}return r.toLocaleTimeString(`en-US`,{hour:`numeric`,minute:a===0?void 0:`2-digit`,hour12:!0}).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${p()})`:``)}function se(e,t=!1,n=!0){let r=new Date(e);return`${j(Math.floor(r.getTime()/1e3),t,n)}`}var M,N,P,F=e((()=>{g(),C(),M=null,N=null,P=e=>e?(M||(M=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:1})),M):(N||(N=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:0})),N)}));function I(){return B}function L(e){return e.toFixed(3)}function R(e,t,n,r,i,a,o=``){let s=r?` | RSS: ${w(r.rss)}, Heap: ${w(r.heapUsed)}`:``;return`[+${L(e).padStart(i)}ms] (+${L(t).padStart(a)}ms) ${n}${o}${s}`}var z,B,V=e((()=>{F(),i(),z=class{constructor(){a(this,`marks`,new Map),a(this,`_origin`,void 0),this._origin=Number(process.hrtime.bigint()/1000n)/1e3}mark(e){this.marks.set(e,this.now())}getEntriesByType(e){if(e!==`mark`)return[];let t=[];for(let[e,n]of this.marks)t.push({name:e,startTime:n,entryType:`mark`});return t}clearMarks(e){e===void 0?this.marks.clear():this.marks.delete(e)}now(){return Number(process.hrtime.bigint()/1000n)/1e3-this._origin}},B=new z}));function H(e){X&&(I().mark(e),J&&Z.push(process.memoryUsage()))}function U(){if(!J)return`Startup profiling not enabled`;let e=I().getEntriesByType(`mark`);if(e.length===0)return`No profiling checkpoints recorded`;let t=[];t.push(`=`.repeat(80)),t.push(`STARTUP PROFILING REPORT`),t.push(`=`.repeat(80)),t.push(``);let n=0;for(let[r,i]of e.entries())t.push(R(i.startTime,i.startTime-n,i.name,Z[r],8,7)),n=i.startTime;let r=e[e.length-1];return t.push(``),t.push(`Total startup time: ${L(r?.startTime??0)}ms`),t.push(`=`.repeat(80)),t.join(`
3
- `)}function W(){if(!$){if($=!0,q(),J){let e=K(),t=ae(e);re().mkdirSync(t),te(e,U(),{encoding:`utf8`,flush:!0}),u(`Startup profiling report:`),u(U())}I().clearMarks(),Z.length=0}}function G(){return J}function K(){return _(t(),`startup-perf`,`${ee()}.txt`)}function q(){if(!Y)return;let e=I().getEntriesByType(`mark`);if(e.length===0)return;let t=new Map;for(let n of e)t.set(n.name,n.startTime);let n={};for(let[e,[r,i]]of Object.entries(Q)){let a=t.get(r),o=t.get(i);a!==void 0&&o!==void 0&&(n[`${e}_ms`]=Math.round(o-a))}n.checkpoint_count=e.length,f(`tengu_startup_perf`,n)}var J,Y,X,Z,Q,$,ce=e((()=>{c(),d(),ie(),n(),l(),V(),ne(),J=r(process.env.CLAUDE_CODE_PROFILE_STARTUP),Y=process.env.USER_TYPE===`ant`||Math.random()<.005,X=J||Y,Z=[],Q={import_time:[`cli_entry`,`main_tsx_imports_loaded`],init_time:[`init_function_start`,`init_function_end`],settings_time:[`eagerLoadSettings_start`,`eagerLoadSettings_end`],total_time:[`cli_entry`,`main_after_run`]},X&&H(`profiler_initialized`),$=!1}));export{S as C,x as D,y as E,C as S,b as T,se as _,H as a,O as b,R as c,E as d,w as f,A as g,k as h,q as i,I as l,D as m,ce as n,W as o,oe as p,G as r,L as s,K as t,V as u,j as v,v as w,F as x,T as y};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-KjMLauwe.js";import{t as n}from"./jsx-runtime-D-D469L8.js";import{n as r,t as i}from"./Settings-C2vEJjLx.js";async function a(e,t){return(0,o.jsx)(i,{onClose:e,context:t,defaultTab:`Status`})}var o;e((()=>{t(),r(),o=n()}))();export{a as call};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-KjMLauwe.js";import{t as n}from"./jsx-runtime-D-D469L8.js";import{n as r,t as i}from"./BackgroundTasksDialog-Bqk_Cn3j.js";async function a(e,t){return(0,o.jsx)(i,{toolUseContext:t,onDone:e})}var o;e((()=>{t(),r(),o=n()}))();export{a as call};
@@ -1 +0,0 @@
1
- import{a as e,t}from"./teamHelpers-B-poMJeE.js";e();export{t as cleanupSessionTeams};
@@ -1 +0,0 @@
1
- import{a as e,t}from"./teammateModeSnapshot-B1_3D1CQ.js";e();export{t as captureTeammateModeSnapshot};
@@ -1 +0,0 @@
1
- import{n as e,r as t,t as n}from"./thinkback-DOzxcgMy.js";e();export{n as call,t as playAnimation};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./toolPool-hQlvQn-j.js";e();export{t as applyCoordinatorToolFilter};
@@ -1 +0,0 @@
1
- import{i as e,n as t}from"./undercover-ClLYK52H.js";t();export{e as shouldShowUndercoverAutoNotice};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./upgrade-DpfZlPyC.js";e();export{t as call};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{t}from"./src-KjMLauwe.js";var n=e((()=>{t()}));export{n as t};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n}from"./src-KjMLauwe.js";import{Br as r,Pr as i,S as a,w as o,wr as s}from"./paths-4ZWdjPP4.js";import{lC as c,uC as l}from"./loadAgentsDir-CQF8qhne.js";function u(){let e=l(e=>e.mainLoopModel),t=l(e=>e.mainLoopModelForSession),[,n]=(0,d.useReducer)(e=>e+1,0);return(0,d.useEffect)(()=>o(n),[]),r(t??e??s())}var d,f=e((()=>{d=t(n(),1),a(),c(),i()}));export{u as n,f as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{t}from"./src-KjMLauwe.js";var n=e((()=>{t()}));export{n as t};
@@ -1 +0,0 @@
1
- import{Fp as e,jp as t}from"./loadAgentsDir-CQF8qhne.js";e();export{t as clearWebFetchCache};
@@ -1 +0,0 @@
1
- import{a as e,i as t,n}from"./voiceModeEnabled-D070o6QK.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
@@ -1 +0,0 @@
1
- import{i as e,r as t}from"./voiceStreamSTT-vkQ-Aop7.js";t();export{e as isVoiceStreamAvailable};
@@ -1 +0,0 @@
1
- import{Ct as e,Ot as t}from"./loadAgentsDir-CQF8qhne.js";t();export{e as execIntoTmuxWorktree};