@readmagic/workmate 0.0.18 → 0.0.19

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 (376) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-Wa6Q24nu.js → AddWorkspaceDirectory-9FcHMKgX.js} +1 -1
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-Bny8WDwC.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-3I_KlOLv.js → AgentsMdExternalIncludesDialog-DLnj3JQO.js} +1 -1
  4. package/dist/chunks/{App-BgPs1Bu8.js → App-NkBqbDbC.js} +1 -1
  5. package/dist/chunks/ApproveApiKey-BKzkEkW-.js +1 -0
  6. package/dist/chunks/{ApproveApiKey-BxpapUq0.js → ApproveApiKey-rgB6AsYD.js} +1 -1
  7. package/dist/chunks/BackgroundTasksDialog-CcViruUO.js +2 -0
  8. package/dist/chunks/{BypassPermissionsModeDialog-8Cq982M0.js → BypassPermissionsModeDialog-D254L98G.js} +1 -1
  9. package/dist/chunks/{DiffDialog-DwQTDWYh.js → DiffDialog-6Srcz3NW.js} +2 -2
  10. package/dist/chunks/Doctor-DYEdLRxR.js +1 -0
  11. package/dist/chunks/Doctor-DiNxlXfC.js +3 -0
  12. package/dist/chunks/ExitFlow-Bt2De110.js +2 -0
  13. package/dist/chunks/{Grove-_QX_wR9C.js → Grove-DC4jyxeB.js} +1 -1
  14. package/dist/chunks/{HybridTransport-BG2VIIBC.js → HybridTransport-DArmWb1V.js} +1 -1
  15. package/dist/chunks/{InvalidConfigDialog-BDdMkuaL.js → InvalidConfigDialog-DFiB0Kzc.js} +1 -1
  16. package/dist/chunks/{InvalidSettingsDialog-DSCqbVER.js → InvalidSettingsDialog-BHNo2__T.js} +1 -1
  17. package/dist/chunks/MCPConnectionManager-CdpO2Tj9.js +1 -0
  18. package/dist/chunks/MCPToolListView-Ch4jOk_x.js +1 -0
  19. package/dist/chunks/{McpParsingWarnings-Cr_n2QR6.js → McpParsingWarnings-D4UQ8Q2e.js} +1 -1
  20. package/dist/chunks/MessageSelector-BgsrdJur.js +3 -0
  21. package/dist/chunks/Messages-DB1pmDY_.js +10 -0
  22. package/dist/chunks/{Onboarding-Cz3CfOTl.js → Onboarding-BnjdTwci.js} +1 -1
  23. package/dist/chunks/{PromptInputFooterSuggestions-GhA5Qa1I.js → PromptInputFooterSuggestions-Chg9U-BC.js} +1 -1
  24. package/dist/chunks/{PromptInputHelpMenu-sX_yHORM.js → PromptInputHelpMenu-C0ZSo12s.js} +1 -1
  25. package/dist/chunks/QueryEngine-bKlupZpA.js +1 -0
  26. package/dist/chunks/REPL-Cg8UXYpX.js +128 -0
  27. package/dist/chunks/REPL-yzvMFfaU.js +1 -0
  28. package/dist/chunks/RemoteSessionManager-CRWOHvKf.js +2 -0
  29. package/dist/chunks/{ResumeConversation-e5sISbWn.js → ResumeConversation-Ld7tYLKO.js} +1 -1
  30. package/dist/chunks/{SSETransport-BuDKErlN.js → SSETransport-pPrlSZNF.js} +1 -1
  31. package/dist/chunks/SearchExtraToolsTool-CdgQlm--.js +1 -0
  32. package/dist/chunks/Settings-CsOlPcIW.js +2 -0
  33. package/dist/chunks/{TeleportProgress-BUtze4qa.js → TeleportProgress-Di-PMey7.js} +1 -1
  34. package/dist/chunks/{TeleportRepoMismatchDialog-Dp7rzrrz.js → TeleportRepoMismatchDialog-CDv1cbo-.js} +1 -1
  35. package/dist/chunks/{TeleportResumeWrapper-Ch2osY21.js → TeleportResumeWrapper-Bmf13tGU.js} +1 -1
  36. package/dist/chunks/{ThemePicker-AA-0hjpq.js → ThemePicker-B3AO3_jA.js} +1 -1
  37. package/dist/chunks/{TrustDialog-rO5dZ8G-.js → TrustDialog-C0aiR_LU.js} +1 -1
  38. package/dist/chunks/{ValidationErrorsList-DayOwxq9.js → ValidationErrorsList-BfZ5gcIv.js} +1 -1
  39. package/dist/chunks/add-dir-w1Ay3861.js +1 -0
  40. package/dist/chunks/{agentDisplay-nVTmC7tL.js → agentDisplay-D01ZlnVX.js} +1 -1
  41. package/dist/chunks/agents-B_hUgPnR.js +101 -0
  42. package/dist/chunks/{agents-BQwi-6GV.js → agents-Bxenhf8S.js} +1 -1
  43. package/dist/chunks/allErrors-C_iHQOlK.js +1 -0
  44. package/dist/chunks/{api-DAyhTxgY.js → api-C5ULzZny.js} +1 -1
  45. package/dist/chunks/api-CB3e0De0.js +1 -0
  46. package/dist/chunks/auth-CsYEYXBO.js +1 -0
  47. package/dist/chunks/auth-CubXYcRl.js +1 -0
  48. package/dist/chunks/{auth-BzrroWLq.js → auth-DvcZHXGk.js} +1 -1
  49. package/dist/chunks/backgroundHousekeeping-BGKR5cdA.js +17 -0
  50. package/dist/chunks/backgroundHousekeeping-CykbtljP.js +1 -0
  51. package/dist/chunks/{banner-BfIcVEUU.js → banner-BkUdig-T.js} +1 -1
  52. package/dist/chunks/{bg-C15c_rMK.js → bg-tGgpwpYx.js} +2 -2
  53. package/dist/chunks/branch-CqQxCSHG.js +2 -0
  54. package/dist/chunks/{break-cache-XKbOAw-u.js → break-cache-CcwOjTKt.js} +3 -3
  55. package/dist/chunks/bridgeConfig-Cp2x_wtE.js +1 -0
  56. package/dist/chunks/{bridgeConfig-Bxkrv8ZL.js → bridgeConfig-MxsnEEPx.js} +1 -1
  57. package/dist/chunks/{bridgeMessaging-BcSjIPCZ.js → bridgeMessaging-Bx5pkkkx.js} +1 -1
  58. package/dist/chunks/{bridgePointer-CGhOBNMg.js → bridgePointer-DfTOjgtX.js} +1 -1
  59. package/dist/chunks/{bridgeStatusUtil-DBWBTU31.js → bridgeStatusUtil-B9EcQksI.js} +1 -1
  60. package/dist/chunks/btw-DeznoRrw.js +1 -0
  61. package/dist/chunks/caches-BiVRgePi.js +1 -0
  62. package/dist/chunks/caches-CGzKSWiP.js +1 -0
  63. package/dist/chunks/{capacityWake-C24_KT1x.js → capacityWake-BpP6c7x3.js} +1 -1
  64. package/dist/chunks/{ccrClient-CH6PsxJJ.js → ccrClient-CimQTd0b.js} +1 -1
  65. package/dist/chunks/{claudeDesktop-CovdLe-b.js → claudeDesktop-DPc_SaVn.js} +1 -1
  66. package/dist/chunks/{clear-D72LxXA6.js → clear-KvoD-lFN.js} +1 -1
  67. package/dist/chunks/{cliLaunch-DDA65zeR.js → cliLaunch-DDtwAolw.js} +1 -1
  68. package/dist/chunks/{client-o5_awagP.js → client-9uHzAmFH.js} +1 -1
  69. package/dist/chunks/client-BVal_QII.js +1 -0
  70. package/dist/chunks/{client-eLOYyeES.js → client-C_jBL1yC.js} +1 -1
  71. package/dist/chunks/client-CmnPWgLq.js +1 -0
  72. package/dist/chunks/client-Dd7CKMRX.js +1 -0
  73. package/dist/chunks/commands-CrzVgHxp.js +1 -0
  74. package/dist/chunks/{compact--fnu8Zd-.js → compact-Dgzve3dI.js} +2 -2
  75. package/dist/chunks/{config-BybjRr09.js → config-DRy1I12M.js} +2 -2
  76. package/dist/chunks/config-Df8jooTW.js +1 -0
  77. package/dist/chunks/{config-BlQhL9Bh.js → config-e0Goy478.js} +1 -1
  78. package/dist/chunks/{context-D6PaqwrR.js → context-Dz-bbYCw.js} +1 -1
  79. package/dist/chunks/{context-noninteractive-CxoMCfR4.js → context-noninteractive-ApbVPU86.js} +5 -5
  80. package/dist/chunks/context-noninteractive-m4O3VtG7.js +1 -0
  81. package/dist/chunks/conversation-BYBX07j8.js +1 -0
  82. package/dist/chunks/conversation-CJ-d0O-U.js +1 -0
  83. package/dist/chunks/{createSSHSession-B3FdForb.js → createSSHSession-DOz_Ox1_.js} +1 -1
  84. package/dist/chunks/createSession-C_-ZEQT5.js +1 -0
  85. package/dist/chunks/{createSession-C0e_DHsW.js → createSession-yR87Rhiv.js} +1 -1
  86. package/dist/chunks/crossProjectResume-DNnZo3gU.js +40 -0
  87. package/dist/chunks/cwd-DLK3znO7.js +1 -0
  88. package/dist/chunks/cwd-Nh5IZNKO.js +1 -0
  89. package/dist/chunks/{datadog-ZxeaKwKd.js → datadog-DBgIEaEd.js} +1 -1
  90. package/dist/chunks/{debug-D7OBvqC2.js → debug-D58GQBDG.js} +1 -1
  91. package/dist/chunks/{debugUtils-B-GMBTBk.js → debugUtils-DXBRbwCE.js} +1 -1
  92. package/dist/chunks/{detached-uMuMcLsV.js → detached-Biz-xhu0.js} +1 -1
  93. package/dist/chunks/{detectRepository-AVEUw4lk.js → detectRepository-CDOJ-M7h.js} +1 -1
  94. package/dist/chunks/detectRepository-Cv9-k6dg.js +1 -0
  95. package/dist/chunks/{diff-BA2vN7sD.js → diff-qOom_T1G.js} +1 -1
  96. package/dist/chunks/{directoryCompletion-CLcmLin8.js → directoryCompletion-BDGcGDuv.js} +1 -1
  97. package/dist/chunks/doctor-CflXjqVK.js +1 -0
  98. package/dist/chunks/{entry-cou5DS53.js → entry-EmOA7oWN.js} +4 -4
  99. package/dist/chunks/{esm-D9-9wS1F.js → esm-DBMVQDVv.js} +1 -1
  100. package/dist/chunks/{execFileNoThrow-BHDSgTpZ.js → execFileNoThrow-Bmb5HEFz.js} +1 -1
  101. package/dist/chunks/{execSyncWrapper-pYxQXqb-.js → execSyncWrapper-C3ZFV9od.js} +1 -1
  102. package/dist/chunks/{exit-DdZJHhy2.js → exit-DDrAFCzE.js} +1 -1
  103. package/dist/chunks/{extraUsage-CHnG6JNH.js → extraUsage-DylXI7Fc.js} +1 -1
  104. package/dist/chunks/extractMemories-B_8wZpXA.js +1 -0
  105. package/dist/chunks/fast-4ajfJv-M.js +1 -0
  106. package/dist/chunks/{fast-Bl_0cs9e.js → fast-BCkhj9Dq.js} +1 -1
  107. package/dist/chunks/{fetchModelList-CheIBH5f.js → fetchModelList-BbjuFHQT.js} +1 -1
  108. package/dist/chunks/fetchModelList-V8_e2O1N.js +1 -0
  109. package/dist/chunks/{fileSuggestions-Dl87JhBr.js → fileSuggestions-Ct7vKEpR.js} +2 -2
  110. package/dist/chunks/{firstPartyEventLogger-Cw9Bc3on.js → firstPartyEventLogger-CxUuXQhL.js} +2 -2
  111. package/dist/chunks/firstPartyEventLogger-YQm0DoVu.js +1 -0
  112. package/dist/chunks/{flushGate-BD3Tk3_k.js → flushGate-BZe_QwEz.js} +1 -1
  113. package/dist/chunks/{gemini-BARUjH_t.js → gemini-8sSwOtEf.js} +1 -1
  114. package/dist/chunks/{generateSessionName-CHaK44K-.js → generateSessionName-vT1khubt.js} +1 -1
  115. package/dist/chunks/{genericProcessUtils-D5hCZ2ho.js → genericProcessUtils-6E7fB1dI.js} +1 -1
  116. package/dist/chunks/{git-CNhyfMtb.js → git-By_J4XJL.js} +1 -1
  117. package/dist/chunks/git-zJCasBa6.js +1 -0
  118. package/dist/chunks/githubRepoPathMapping-CzgPGOHQ.js +1 -0
  119. package/dist/chunks/{goal-fTQFogdl.js → goal-CznQA1n1.js} +1 -1
  120. package/dist/chunks/{grok-D0J4IiCe.js → grok-cEzUsG-s.js} +1 -1
  121. package/dist/chunks/{grove-mDH4wkhM.js → grove--HtQL4QZ.js} +1 -1
  122. package/dist/chunks/{help-Dr7st1Yv.js → help-B6A_kDQA.js} +1 -1
  123. package/dist/chunks/hooks-CJY5Vfy6.js +1 -0
  124. package/dist/chunks/{hooks-DCfpFhl2.js → hooks-CN5hLrhi.js} +2 -2
  125. package/dist/chunks/initReplBridge-BJhmlcVt.js +1 -0
  126. package/dist/chunks/install-DUOtI2Hq.js +1 -0
  127. package/dist/chunks/{instrumentation-DS2S1m1a.js → instrumentation-DpgB3GFx.js} +4 -4
  128. package/dist/chunks/{job-Dry-GMc5.js → job-DDoX1iFe.js} +1 -1
  129. package/dist/chunks/{jwtUtils-ClCcC8lO.js → jwtUtils-C_LG1txt.js} +1 -1
  130. package/dist/chunks/keybindings-BGTuYfk-.js +1 -0
  131. package/dist/chunks/{launchLocalMemory-_T0oHfh9.js → launchLocalMemory-CoWeLNeP.js} +1 -1
  132. package/dist/chunks/{launchOnboarding-D4fS6pLc.js → launchOnboarding-CTIBGSLV.js} +1 -1
  133. package/dist/chunks/{loadAgentsDir-DnsldjYU.js → loadAgentsDir-DXOkUcW3.js} +554 -564
  134. package/dist/chunks/loadAgentsDir-Dxz1vp3F.js +1 -0
  135. package/dist/chunks/{loadPluginHooks-CRoYa_il.js → loadPluginHooks-DrNVtTBq.js} +1 -1
  136. package/dist/chunks/{loader-C-PQ3onD.js → loader-C33o_5kS.js} +1 -1
  137. package/dist/chunks/localSearch-CCs5fOd_.js +1 -0
  138. package/dist/chunks/{localSearch-nuNjYVKq.js → localSearch-DnT21UkF.js} +1 -1
  139. package/dist/chunks/{log-CR0v5KUR.js → log-CZ7ploQm.js} +1 -1
  140. package/dist/chunks/{logoV2Utils-CZwL_VX1.js → logoUtils-YwL3izJt.js} +1 -1
  141. package/dist/chunks/{magicDocs-D0rjtxup.js → magicDocs-rxv0rR8E.js} +2 -2
  142. package/dist/chunks/{main-C8n_p7yX.js → main-BOvY4O6D.js} +30 -30
  143. package/dist/chunks/{main-DKqCPH3G.js → main-Blm02_Js.js} +2 -2
  144. package/dist/chunks/managedEnv-CpgCYISH.js +1 -0
  145. package/dist/chunks/managedEnv-CrnBYTtQ.js +1 -0
  146. package/dist/chunks/{mappers-BIDALdjB.js → mappers-DYtq2XVS.js} +1 -1
  147. package/dist/chunks/mcp-BPvcoKDY.js +1 -0
  148. package/dist/chunks/mcp-BfqsHRx0.js +2 -0
  149. package/dist/chunks/mcp-BoU3TNFs.js +6 -0
  150. package/dist/chunks/{memoize-C7xmvAQ0.js → memoize-CumjjK2Q.js} +1 -1
  151. package/dist/chunks/memory-BPKRdkBb.js +1 -0
  152. package/dist/chunks/{mode-CajUX4Uz.js → mode-CXpXux2s.js} +1 -1
  153. package/dist/chunks/model-CxPYKiW1.js +1 -0
  154. package/dist/chunks/{model-xI2MbgRj.js → model-Cxx3suBa.js} +1 -1
  155. package/dist/chunks/model-aEJ54cMA.js +1 -0
  156. package/dist/chunks/{modelOptions-Ct80yABl.js → modelOptions-BqBHEyiR.js} +1 -1
  157. package/dist/chunks/{nativeInstaller-C6aWHxve.js → nativeInstaller-CaXwRpoR.js} +1 -1
  158. package/dist/chunks/omit-DZUxsClb.js +1 -0
  159. package/dist/chunks/onChangeAppState-qHXqufwy.js +1 -0
  160. package/dist/chunks/{openai-wsPCDwGL.js → openai-_FQ9EhuR.js} +2 -2
  161. package/dist/chunks/{panel-BKMLX5AR.js → panel-CVd1dzYl.js} +1 -1
  162. package/dist/chunks/parser-Cq9X7HMP.js +1 -0
  163. package/dist/chunks/{parser-Dy-RMf4a.js → parser-eVu-cTRs.js} +1 -1
  164. package/dist/chunks/partition-BgwHlPsO.js +1 -0
  165. package/dist/chunks/permissions-Dv5d5Nu3.js +3 -0
  166. package/dist/chunks/pidLock-CEhbTkBE.js +3 -0
  167. package/dist/chunks/{plan-CTiLy_c4.js → plan-DVPBW5OS.js} +1 -1
  168. package/dist/chunks/{platform-BZm4WVLM.js → platform-DMQxcm4K.js} +1 -1
  169. package/dist/chunks/plugin-Bh2eBwLW.js +17 -0
  170. package/dist/chunks/{pluginAutoupdate-DzK-fXJC.js → pluginAutoupdate-C2YbEHrP.js} +1 -1
  171. package/dist/chunks/{pluginBlocklist-B3JVl1h2.js → pluginBlocklist-B2NAKaB9.js} +1 -1
  172. package/dist/chunks/{pluginCliCommands-CubOvlhc.js → pluginCliCommands-Cw5TrYYb.js} +1 -1
  173. package/dist/chunks/{pluginFlagging-Dp7W2eL8.js → pluginFlagging-BDTgCYuC.js} +1 -1
  174. package/dist/chunks/pluginOperations-BBwGEdfC.js +2 -0
  175. package/dist/chunks/pluginStartupCheck-CHx379_R.js +1 -0
  176. package/dist/chunks/{pluginStartupCheck-CL24_zVV.js → pluginStartupCheck-DhhMk3dA.js} +1 -1
  177. package/dist/chunks/{plugins-DA3lpRU4.js → plugins-r0h93GT_.js} +4 -4
  178. package/dist/chunks/poorMode-BTIe8W_H.js +1 -0
  179. package/dist/chunks/poorMode-CKQfWf3S.js +1 -0
  180. package/dist/chunks/print-CDzhHi2F.js +14 -0
  181. package/dist/chunks/processBashCommand-DmdCAWOR.js +1 -0
  182. package/dist/chunks/processSlashCommand-B43TkiaI.js +5 -0
  183. package/dist/chunks/prompt-C50mDqWv.js +1 -0
  184. package/dist/chunks/{prompt-CzQkcxfg.js → prompt-DEioJrx_.js} +17 -17
  185. package/dist/chunks/prompt-WGH9CcXh.js +1 -0
  186. package/dist/chunks/{promptEditor-C6w1vT5E.js → promptEditor-eJzbtNn4.js} +1 -1
  187. package/dist/chunks/{protocolHandler-B3bQyB6W.js → protocolHandler-C-CFTcUJ.js} +1 -1
  188. package/dist/chunks/{proxy-DFIxRT0i.js → proxy-BhIc7-mj.js} +1 -1
  189. package/dist/chunks/reconciler-DZP4dJJG.js +1 -0
  190. package/dist/chunks/refresh-vaY-Sr80.js +1 -0
  191. package/dist/chunks/{registerProtocol-CrzdmgCD.js → registerProtocol-Xsq4ldwg.js} +1 -1
  192. package/dist/chunks/{reload-plugins-BnZzcRcd.js → reload-plugins-m9CzoIxu.js} +1 -1
  193. package/dist/chunks/{remoteBridgeCore-DAK9KSWp.js → remoteBridgeCore-C4vSr1gp.js} +1 -1
  194. package/dist/chunks/remoteManagedSettings-6RAHPt_g.js +1 -0
  195. package/dist/chunks/{rename-OSN3Ua2J.js → rename-DmauGVBX.js} +1 -1
  196. package/dist/chunks/{renderOptions-XgkOdKCJ.js → renderOptions-D-aQZbzS.js} +1 -1
  197. package/dist/chunks/resume-ut_pBrLN.js +2 -0
  198. package/dist/chunks/{ripgrep-C_XuTqp3.js → ripgrep-C3jtZL7k.js} +1 -1
  199. package/dist/chunks/ripgrep-CBUbn6Po.js +1 -0
  200. package/dist/chunks/{runtimeObserver-D9sujsqj.js → runtimeObserver-C2vjqtCE.js} +2 -2
  201. package/dist/chunks/{runtimeObserver-CuTsWhhF.js → runtimeObserver-CSroopId.js} +1 -1
  202. package/dist/chunks/sandbox-adapter-CL0qdcxn.js +1 -0
  203. package/dist/chunks/{sandbox-toggle-oasrWfbj.js → sandbox-toggle-BJKd1ZYk.js} +1 -1
  204. package/dist/chunks/searchExtraTools-ByWuNCGo.js +1 -0
  205. package/dist/chunks/{session-c46jULDV.js → session-DTin6hOR.js} +1 -1
  206. package/dist/chunks/sessionFileAccessHooks-DorzHolr.js +1 -0
  207. package/dist/chunks/sessionObserver-Dy6NFlzL.js +1 -0
  208. package/dist/chunks/{sessionObserver-Cu7vykWp.js → sessionObserver-iAJLH92a.js} +1 -1
  209. package/dist/chunks/{sessionState-B3tFm9SC.js → sessionState-DAcub-HK.js} +2 -2
  210. package/dist/chunks/sessionStorage-DItJMkwx.js +1 -0
  211. package/dist/chunks/{sessionTracing-BRp_Ej-e.js → sessionTracing-Dvi520eN.js} +1 -1
  212. package/dist/chunks/{settings-DUyIag_5.js → settings-3xZ0fsvE.js} +4 -4
  213. package/dist/chunks/settings-Crx1cI1u.js +1 -0
  214. package/dist/chunks/settingsSync-aHn3p-6J.js +1 -0
  215. package/dist/chunks/setup-CK3ybjjM.js +3 -0
  216. package/dist/chunks/{shadowedRuleDetection-ChoqK1Iq.js → shadowedRuleDetection-BL7dEv-u.js} +1 -1
  217. package/dist/chunks/{shellQuote-C-7PluUY.js → shellQuote-Ddgr1vif.js} +1 -1
  218. package/dist/chunks/{sideQuestion-CkC27Pf3.js → sideQuestion-Ct87yvOR.js} +1 -1
  219. package/dist/chunks/{sinks-C9qCsi94.js → sinks-Bmn3li0M.js} +1 -1
  220. package/dist/chunks/sinks-QQ_6Op7q.js +1 -0
  221. package/dist/chunks/skillChangeDetector-Bco3UoeW.js +1 -0
  222. package/dist/chunks/{skillGapStore-DC8s2Whn.js → skillGapStore-MtlRyYmT.js} +2 -2
  223. package/dist/chunks/{skillLifecycle-BaqH5lw_.js → skillLifecycle-Drs6gEv9.js} +2 -2
  224. package/dist/chunks/{skillSearchPanel-Dtvyo2Dk.js → skillSearchPanel-DkvmjNaw.js} +3 -3
  225. package/dist/chunks/{skills-DXW57WeY.js → skills-axToWEo0.js} +1 -1
  226. package/dist/chunks/{startupProfiler-BqUlQEaV.js → startupProfiler-CbzxVmbv.js} +1 -1
  227. package/dist/chunks/startupProfiler-uHetQush.js +1 -0
  228. package/dist/chunks/state-BStOuCh4.js +1 -0
  229. package/dist/chunks/{state-B3zvBu4R.js → state-D5D6QpTX.js} +1 -1
  230. package/dist/chunks/{stats-vvwEVnon.js → stats-Ce15gc3E.js} +1 -1
  231. package/dist/chunks/status-3uevwSMo.js +1 -0
  232. package/dist/chunks/{status-g_dhM6Ep.js → status-CGp4uRlH.js} +2 -2
  233. package/dist/chunks/{statusNoticeHelpers-B235FWru.js → statusNoticeHelpers-BrN_2q7H.js} +1 -1
  234. package/dist/chunks/{stringUtils-CGZoOfer.js → stringUtils-CKD8qDqx.js} +1 -1
  235. package/dist/chunks/{switcher-OAeeTHHt.js → switcher-99gm2vpe.js} +1 -1
  236. package/dist/chunks/switcher-DJDxjLPQ.js +1 -0
  237. package/dist/chunks/syncCache-B3OVvp8K.js +1 -0
  238. package/dist/chunks/{tasks--7yJk7MD.js → tasks-t5zT_D32.js} +1 -1
  239. package/dist/chunks/{teleport-ja50aVy3.js → teleport-CvX_nUjQ.js} +1 -1
  240. package/dist/chunks/{templateJobs-DSM3tNDS.js → templateJobs-Bm8bovHx.js} +1 -1
  241. package/dist/chunks/{terminalSetup-C735-5lZ.js → terminalSetup-7PdC4fV5.js} +1 -1
  242. package/dist/chunks/{terminalSetup-BpZXqE_G.js → terminalSetup-kWdZRKWq.js} +1 -1
  243. package/dist/chunks/{theme-BX54e0r7.js → theme-DzaSXOpQ.js} +1 -1
  244. package/dist/chunks/{tmux-BIdWN33b.js → tmux-CpGd0Aca.js} +1 -1
  245. package/dist/chunks/{toolEventObserver-O6ljakS9.js → toolEventObserver-C_nHI27x.js} +1 -1
  246. package/dist/chunks/toolPool-CgKK0K8f.js +1 -0
  247. package/dist/chunks/{trustedDevice-Kyid5Fuy.js → trustedDevice-Bb7O8_tj.js} +1 -1
  248. package/dist/chunks/trustedDevice-C2gnF9Lc.js +1 -0
  249. package/dist/chunks/{types-DDku8UKF.js → types-APu4OCXJ.js} +1 -1
  250. package/dist/chunks/{udsClient-B2yCKNgT.js → udsClient-U7MEfYj7.js} +1 -1
  251. package/dist/chunks/{upstreamproxy--RTAcgrE.js → upstreamproxy-CTOuotLO.js} +1 -1
  252. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BnmDpMkm.js → useExitOnCtrlCDWithKeybindings-D0uqGxGw.js} +1 -1
  253. package/dist/chunks/useMainLoopModel-BGPOmBkl.js +1 -0
  254. package/dist/chunks/useManagePlugins-ITVFO9dz.js +1 -0
  255. package/dist/chunks/{useMergedTools-ChLA8dsy.js → useMergedTools-rQ19rFvH.js} +1 -1
  256. package/dist/chunks/{useSearchInput-DqymtQhH.js → useSearchInput-CXTa-leH.js} +1 -1
  257. package/dist/chunks/useSettingsErrors-Xc6RYjYF.js +1 -0
  258. package/dist/chunks/{userAgent-D8vvjitA.js → userAgent-CJ5Rp9kc.js} +1 -1
  259. package/dist/chunks/{util-CC-NRn16.js → util-CD3ar4of.js} +1 -1
  260. package/dist/chunks/validatePlugin-CxrlCKc1.js +1 -0
  261. package/dist/chunks/{vim-CIK2DjfK.js → vim-BagKUX4j.js} +1 -1
  262. package/dist/chunks/{which-3MmqfsNV.js → which-BxQ1hpjp.js} +1 -1
  263. package/dist/chunks/{windowsPaths-x-CxdtFP.js → windowsPaths-BdhjMYTm.js} +1 -1
  264. package/dist/chunks/windowsPaths-DtGZ83kH.js +1 -0
  265. package/dist/chunks/{workSecret-BsolC5S7.js → workSecret-CaM2yIJD.js} +1 -1
  266. package/dist/chunks/{workerRegistry-DE4Ghp-n.js → workerRegistry-BGJtgrko.js} +2 -2
  267. package/dist/chunks/worktree-CanG5GhE.js +1 -0
  268. package/dist/cli.js +1 -1
  269. package/package.json +1 -1
  270. package/dist/chunks/AgentsMdExternalIncludesDialog-h150UBir.js +0 -1
  271. package/dist/chunks/ApproveApiKey-DIIIi6U8.js +0 -1
  272. package/dist/chunks/BackgroundTasksDialog-nfRmiGl3.js +0 -2
  273. package/dist/chunks/Doctor-Beo5yEMD.js +0 -1
  274. package/dist/chunks/Doctor-BxXAGr-Z.js +0 -3
  275. package/dist/chunks/ExitFlow-CVIuvrHT.js +0 -2
  276. package/dist/chunks/MCPConnectionManager-Cer1UawR.js +0 -1
  277. package/dist/chunks/MCPToolListView-DndNWDr1.js +0 -1
  278. package/dist/chunks/MessageSelector-BfmbAG8E.js +0 -3
  279. package/dist/chunks/Messages-CUJJ6nHV.js +0 -10
  280. package/dist/chunks/QueryEngine-C6Dx_-U8.js +0 -1
  281. package/dist/chunks/REPL-BPig-OIh.js +0 -128
  282. package/dist/chunks/REPL-e5wWV2Sl.js +0 -1
  283. package/dist/chunks/RemoteSessionManager-Cax4g0GH.js +0 -2
  284. package/dist/chunks/SearchExtraToolsTool-B_z74zwG.js +0 -1
  285. package/dist/chunks/Settings-B9rxF2wR.js +0 -2
  286. package/dist/chunks/add-dir-Cz33IGht.js +0 -1
  287. package/dist/chunks/agents-rfuJUSSc.js +0 -101
  288. package/dist/chunks/allErrors-YIRWFBD9.js +0 -1
  289. package/dist/chunks/api-CGk-0H2x.js +0 -1
  290. package/dist/chunks/auth-DWWb8STf.js +0 -1
  291. package/dist/chunks/auth-DsqlBO-Q.js +0 -1
  292. package/dist/chunks/backgroundHousekeeping-CXv_Pm5h.js +0 -17
  293. package/dist/chunks/backgroundHousekeeping-Crx3oXIu.js +0 -1
  294. package/dist/chunks/branch-BEaujq-M.js +0 -2
  295. package/dist/chunks/bridgeConfig-Ctl7I_RR.js +0 -1
  296. package/dist/chunks/btw-8JqSG3o7.js +0 -1
  297. package/dist/chunks/caches-dnO4Ae_m.js +0 -1
  298. package/dist/chunks/caches-lPzD_yGv.js +0 -1
  299. package/dist/chunks/client-BFjMSlp7.js +0 -1
  300. package/dist/chunks/client-Byat5HpG.js +0 -1
  301. package/dist/chunks/client-Dzx24jGZ.js +0 -1
  302. package/dist/chunks/commands-D3lQbt9p.js +0 -1
  303. package/dist/chunks/config-CPGSP_1Z.js +0 -1
  304. package/dist/chunks/context-noninteractive-CwlOID3q.js +0 -1
  305. package/dist/chunks/conversation-BLEWB1BE.js +0 -1
  306. package/dist/chunks/conversation-Bos7yTIv.js +0 -1
  307. package/dist/chunks/createSession-B4wkDNam.js +0 -1
  308. package/dist/chunks/crossProjectResume-C5QtstD6.js +0 -40
  309. package/dist/chunks/cwd-BfiQQAqr.js +0 -1
  310. package/dist/chunks/cwd-Dj2ynhWd.js +0 -1
  311. package/dist/chunks/detectRepository-CWI2xcdR.js +0 -1
  312. package/dist/chunks/doctor-BV6zhneX.js +0 -1
  313. package/dist/chunks/extractMemories-DxGHxoNO.js +0 -1
  314. package/dist/chunks/fast-Bf-g-wR6.js +0 -1
  315. package/dist/chunks/fetchModelList-vk-RMDfG.js +0 -1
  316. package/dist/chunks/firstPartyEventLogger-DvsZdBy2.js +0 -1
  317. package/dist/chunks/git-Bujlb5tq.js +0 -1
  318. package/dist/chunks/githubRepoPathMapping-Dhz4cvw2.js +0 -1
  319. package/dist/chunks/hooks-C5YSYzSl.js +0 -1
  320. package/dist/chunks/initReplBridge-BFYTAFlT.js +0 -1
  321. package/dist/chunks/install-CjacxFXg.js +0 -1
  322. package/dist/chunks/keybindings-D01jzjKu.js +0 -1
  323. package/dist/chunks/loadAgentsDir-xG1HswS_.js +0 -1
  324. package/dist/chunks/localSearch-B17Mzd84.js +0 -1
  325. package/dist/chunks/managedEnv-C7bVtcgA.js +0 -1
  326. package/dist/chunks/managedEnv-d7HliQYg.js +0 -1
  327. package/dist/chunks/mcp-BcEApfqn.js +0 -1
  328. package/dist/chunks/mcp-CBbVcOTy.js +0 -2
  329. package/dist/chunks/mcp-DYtfHeRa.js +0 -6
  330. package/dist/chunks/memory-CijapyZk.js +0 -1
  331. package/dist/chunks/model-CyF5u3zH.js +0 -1
  332. package/dist/chunks/model-DaYZWYJe.js +0 -1
  333. package/dist/chunks/omit-BhPlISSj.js +0 -1
  334. package/dist/chunks/onChangeAppState-BOJd4Yce.js +0 -1
  335. package/dist/chunks/parser-B-QFQfSO.js +0 -1
  336. package/dist/chunks/partition-_qZZlGjS.js +0 -1
  337. package/dist/chunks/permissions-CcjGscyg.js +0 -3
  338. package/dist/chunks/pidLock-Cm9FWa4w.js +0 -3
  339. package/dist/chunks/plugin-D7vjs6Hu.js +0 -17
  340. package/dist/chunks/pluginOperations-BxHoy0pC.js +0 -2
  341. package/dist/chunks/pluginStartupCheck-CtX6QkdO.js +0 -1
  342. package/dist/chunks/poorMode-DyAWNRRM.js +0 -1
  343. package/dist/chunks/poorMode-aMzKXz6G.js +0 -1
  344. package/dist/chunks/print-BrqZ3AgP.js +0 -14
  345. package/dist/chunks/processBashCommand-C6mBgRVz.js +0 -1
  346. package/dist/chunks/processSlashCommand-t0-BVku8.js +0 -5
  347. package/dist/chunks/prompt-BJ3xYAvE.js +0 -1
  348. package/dist/chunks/prompt-Di2lNwYp.js +0 -1
  349. package/dist/chunks/reconciler-p4lAu9ft.js +0 -1
  350. package/dist/chunks/refresh-DCQChX5A.js +0 -1
  351. package/dist/chunks/remoteManagedSettings-DkLfclxa.js +0 -1
  352. package/dist/chunks/resume-K9q5B1li.js +0 -2
  353. package/dist/chunks/ripgrep-DLPH9MP9.js +0 -1
  354. package/dist/chunks/sandbox-adapter-CRxZBMAP.js +0 -1
  355. package/dist/chunks/searchExtraTools-BAYzzTE8.js +0 -1
  356. package/dist/chunks/sessionFileAccessHooks-CwnjOk6S.js +0 -1
  357. package/dist/chunks/sessionObserver-DNjDoJmy.js +0 -1
  358. package/dist/chunks/sessionStorage-CVZ0MUSE.js +0 -1
  359. package/dist/chunks/settings-DsqFBv6J.js +0 -1
  360. package/dist/chunks/settingsSync-yE43qjMS.js +0 -1
  361. package/dist/chunks/setup-CFOc-hPM.js +0 -3
  362. package/dist/chunks/sinks-B64r_OBE.js +0 -1
  363. package/dist/chunks/skillChangeDetector-CLnn22Jo.js +0 -1
  364. package/dist/chunks/startupProfiler-yBU6FaAV.js +0 -1
  365. package/dist/chunks/state-mHtumqEo.js +0 -1
  366. package/dist/chunks/status--Ql7l0VG.js +0 -1
  367. package/dist/chunks/switcher-Cb9R9247.js +0 -1
  368. package/dist/chunks/syncCache-BiqQEess.js +0 -1
  369. package/dist/chunks/toolPool-H_kXc8vo.js +0 -1
  370. package/dist/chunks/trustedDevice-Dm_SY3Ko.js +0 -1
  371. package/dist/chunks/useMainLoopModel-DG8pghH7.js +0 -1
  372. package/dist/chunks/useManagePlugins-HMHtjIY-.js +0 -1
  373. package/dist/chunks/useSettingsErrors-Bs9uyzW4.js +0 -1
  374. package/dist/chunks/validatePlugin-yCb8gsVF.js +0 -1
  375. package/dist/chunks/windowsPaths-Dd_S96Bq.js +0 -1
  376. package/dist/chunks/worktree-D-CgffvU.js +0 -1
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./loadAgentsDir-DXOkUcW3.js";e();export{t as clearAgentDefinitionsCache};
@@ -1 +1 @@
1
- import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-DnsldjYU.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
1
+ import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-DXOkUcW3.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{D as r,N as i,a,f as o,g as s}from"./lazySchema-DULtBUCI.js";import{o as c,s as l}from"./log-CR0v5KUR.js";import{dirname as u,join as d}from"path";import{existsSync as f,readFileSync as p,renameSync as m,unlinkSync as h,writeFileSync as g}from"fs";import{randomBytes as _}from"node:crypto";var v=e((()=>{a(),a()})),y,b,x,S=e((()=>{v(),y=o([`openai-compat`,`anthropic-compat`]),b=r({id:i().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:i().url(),apiKey:i().min(1).optional(),apiKeyEnv:i().min(1).optional(),defaultModel:i().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=s(b)}));function C(){return d(t(),`providers.json`)}function w(){k=null}function T(){if(k!==null)return k;let e=E();return k=e.providers,e.providers}function E(){let e=C();if(!f(e))return{providers:[]};let t;try{t=p(e,`utf-8`)}catch(t){let n=`loadProviders: failed to read ${e}: ${t instanceof Error?t.message:String(t)}`;return l(Error(n)),{providers:[],error:n}}if(!t.trim())return{providers:[]};let n;try{n=JSON.parse(t)}catch{let t=`loadProviders: ${e} is not valid JSON. Ignoring.`;return l(Error(t)),{providers:[],error:t}}let r=x.safeParse(n);if(!r.success){let t=`loadProviders: ${e} failed schema validation: ${r.error.message}. Ignoring.`;return l(Error(t)),{providers:[],error:t}}return{providers:r.data}}function D(e,t){return(t??T()).find(t=>t.id===e)}function O(e){let t=C(),n=d(u(t),`.providers-${_(8).toString(`hex`)}.tmp`);try{g(n,JSON.stringify(e,null,2),`utf-8`),m(n,t)}catch(e){try{h(n)}catch{}throw e}return w(),e}var k,A=e((()=>{c(),n(),S(),k=null}));export{v as a,O as i,A as n,T as r,D as t};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{D as r,N as i,a,f as o,g as s}from"./lazySchema-DULtBUCI.js";import{o as c,s as l}from"./log-CZ7ploQm.js";import{dirname as u,join as d}from"path";import{existsSync as f,readFileSync as p,renameSync as m,unlinkSync as h,writeFileSync as g}from"fs";import{randomBytes as _}from"node:crypto";var v=e((()=>{a(),a()})),y,b,x,S=e((()=>{v(),y=o([`openai-compat`,`anthropic-compat`]),b=r({id:i().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:i().url(),apiKey:i().min(1).optional(),apiKeyEnv:i().min(1).optional(),defaultModel:i().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=s(b)}));function C(){return d(t(),`providers.json`)}function w(){k=null}function T(){if(k!==null)return k;let e=E();return k=e.providers,e.providers}function E(){let e=C();if(!f(e))return{providers:[]};let t;try{t=p(e,`utf-8`)}catch(t){let n=`loadProviders: failed to read ${e}: ${t instanceof Error?t.message:String(t)}`;return l(Error(n)),{providers:[],error:n}}if(!t.trim())return{providers:[]};let n;try{n=JSON.parse(t)}catch{let t=`loadProviders: ${e} is not valid JSON. Ignoring.`;return l(Error(t)),{providers:[],error:t}}let r=x.safeParse(n);if(!r.success){let t=`loadProviders: ${e} failed schema validation: ${r.error.message}. Ignoring.`;return l(Error(t)),{providers:[],error:t}}return{providers:r.data}}function D(e,t){return(t??T()).find(t=>t.id===e)}function O(e){let t=C(),n=d(u(t),`.providers-${_(8).toString(`hex`)}.tmp`);try{g(n,JSON.stringify(e,null,2),`utf-8`),m(n,t)}catch(e){try{h(n)}catch{}throw e}return w(),e}var k,A=e((()=>{c(),n(),S(),k=null}));export{v as a,O as i,A as n,T as r,D as t};
@@ -0,0 +1 @@
1
+ import{a as e,o as t,s as n,t as r}from"./localSearch-DnT21UkF.js";t();export{r as clearSkillIndexCache,e as getSkillIndex,n as searchSkills};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-D7OBvqC2.js";function r(e){return g.test(e)}function i(e){let t=[],n=e.toLowerCase(),i=0;for(;i<n.length;)if(r(n[i])){let e=``;for(;i<n.length&&r(n[i]);)e+=n[i],i++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[i])){let e=``;for(;i<n.length&&/[a-z0-9\-_]/.test(n[i]);)e+=n[i],i++;let r=e.replace(/^[-_]+|[-_]+$/g,``);r&&!h.has(r)&&t.push(r)}else i++;return t}function a(e){if(r(e[0]??``))return e;let t=e;return t.endsWith(`ing`)&&t.length>5?t=t.slice(0,-3):t.endsWith(`tion`)&&t.length>5||t.endsWith(`ness`)&&t.length>5||t.endsWith(`ment`)&&t.length>5?t=t.slice(0,-4):t.endsWith(`ers`)&&t.length>4?t=t.slice(0,-1):t.endsWith(`er`)&&t.length>4||t.endsWith(`es`)&&t.length>4?t=t.slice(0,-2):t.endsWith(`s`)&&t.length>3&&!t.endsWith(`ss`)?t=t.slice(0,-1):(t.endsWith(`ed`)&&t.length>4||t.endsWith(`ly`)&&t.length>4)&&(t=t.slice(0,-2)),t}function o(e){return i(e).map(a)}function s(e){let t=new Map;for(let n of e){let e=new Map;for(let t of n.tokens)e.set(t,(e.get(t)??0)+1);let r=1;for(let t of e.values())t>r&&(r=t);for(let[i,a]of e){let e=a/r*n.weight;e>(t.get(i)??0)&&t.set(i,e)}}return t}function c(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tokens)e.has(r)||(t.set(r,(t.get(r)??0)+1),e.add(r))}let n=e.length,r=new Map;for(let[e,i]of t)r.set(e,Math.log(n/i));return r}function l(e,t){let n=0,r=0,i=0;for(let[i,a]of e){let e=t.get(i)??0;n+=a*e,r+=a*a}for(let e of t.values())i+=e*e;let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}function u(e){return e.toLowerCase().replace(/[-_]/g,` `)}function d(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function f(){x=null,S=null,C=null,t(`[skill-search] index cache cleared`)}async function p(e){if(x&&C===e)return x;let{getCommands:n}=await import(`./commands-D3lQbt9p.js`),r=await n(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,c=e.allowedTools?.join(` `)??``,l=o(t),f=d(t),p=[...l,...f.map(a).filter(e=>!h.has(e))],m=o(n),g=o(r??``),v=o(c),y=[...new Set([...p,...m,...g,...v])],b=s([{tokens:p,weight:_.name},{tokens:g,weight:_.whenToUse},{tokens:m,weight:_.description},{tokens:v,weight:_.allowedTools}]);i.push({name:t,normalizedName:u(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:y,tfVector:b})}let l=c(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(l.get(t)??0));return x=i,S=l,C=e,t(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function m(e,t,n=5){if(t.length===0||!e?.trim())return[];let i=o(e);if(i.length===0)return[];let a=new Map,s=new Map;for(let e of i)s.set(e,(s.get(e)??0)+1);let u=1;for(let e of s.values())e>u&&(u=e);for(let[e,t]of s)a.set(e,t/u);let d=x===t&&S?S:c(t),f=new Map;for(let[e,t]of a)f.set(e,t*(d.get(e)??0));let p=i.filter(e=>r(e[0]??``)),m=i.filter(e=>!r(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=l(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<b&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=y&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=v&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var h,g,_,v,y,b,x,S,C,w=e((()=>{n(),h=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),g=/[\u4e00-\u9fff\u3400-\u4dbf]/,_={name:3,whenToUse:2,description:1,allowedTools:.3},v=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),y=4,b=2,x=null,S=null,C=null}));export{p as a,i as c,l as i,o as l,c as n,w as o,s as r,m as s,f as t};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-D58GQBDG.js";function r(e){return g.test(e)}function i(e){let t=[],n=e.toLowerCase(),i=0;for(;i<n.length;)if(r(n[i])){let e=``;for(;i<n.length&&r(n[i]);)e+=n[i],i++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[i])){let e=``;for(;i<n.length&&/[a-z0-9\-_]/.test(n[i]);)e+=n[i],i++;let r=e.replace(/^[-_]+|[-_]+$/g,``);r&&!h.has(r)&&t.push(r)}else i++;return t}function a(e){if(r(e[0]??``))return e;let t=e;return t.endsWith(`ing`)&&t.length>5?t=t.slice(0,-3):t.endsWith(`tion`)&&t.length>5||t.endsWith(`ness`)&&t.length>5||t.endsWith(`ment`)&&t.length>5?t=t.slice(0,-4):t.endsWith(`ers`)&&t.length>4?t=t.slice(0,-1):t.endsWith(`er`)&&t.length>4||t.endsWith(`es`)&&t.length>4?t=t.slice(0,-2):t.endsWith(`s`)&&t.length>3&&!t.endsWith(`ss`)?t=t.slice(0,-1):(t.endsWith(`ed`)&&t.length>4||t.endsWith(`ly`)&&t.length>4)&&(t=t.slice(0,-2)),t}function o(e){return i(e).map(a)}function s(e){let t=new Map;for(let n of e){let e=new Map;for(let t of n.tokens)e.set(t,(e.get(t)??0)+1);let r=1;for(let t of e.values())t>r&&(r=t);for(let[i,a]of e){let e=a/r*n.weight;e>(t.get(i)??0)&&t.set(i,e)}}return t}function c(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tokens)e.has(r)||(t.set(r,(t.get(r)??0)+1),e.add(r))}let n=e.length,r=new Map;for(let[e,i]of t)r.set(e,Math.log(n/i));return r}function l(e,t){let n=0,r=0,i=0;for(let[i,a]of e){let e=t.get(i)??0;n+=a*e,r+=a*a}for(let e of t.values())i+=e*e;let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}function u(e){return e.toLowerCase().replace(/[-_]/g,` `)}function d(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function f(){x=null,S=null,C=null,t(`[skill-search] index cache cleared`)}async function p(e){if(x&&C===e)return x;let{getCommands:n}=await import(`./commands-CrzVgHxp.js`),r=await n(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,c=e.allowedTools?.join(` `)??``,l=o(t),f=d(t),p=[...l,...f.map(a).filter(e=>!h.has(e))],m=o(n),g=o(r??``),v=o(c),y=[...new Set([...p,...m,...g,...v])],b=s([{tokens:p,weight:_.name},{tokens:g,weight:_.whenToUse},{tokens:m,weight:_.description},{tokens:v,weight:_.allowedTools}]);i.push({name:t,normalizedName:u(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:y,tfVector:b})}let l=c(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(l.get(t)??0));return x=i,S=l,C=e,t(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function m(e,t,n=5){if(t.length===0||!e?.trim())return[];let i=o(e);if(i.length===0)return[];let a=new Map,s=new Map;for(let e of i)s.set(e,(s.get(e)??0)+1);let u=1;for(let e of s.values())e>u&&(u=e);for(let[e,t]of s)a.set(e,t/u);let d=x===t&&S?S:c(t),f=new Map;for(let[e,t]of a)f.set(e,t*(d.get(e)??0));let p=i.filter(e=>r(e[0]??``)),m=i.filter(e=>!r(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=l(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<b&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=y&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=v&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var h,g,_,v,y,b,x,S,C,w=e((()=>{n(),h=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),g=/[\u4e00-\u9fff\u3400-\u4dbf]/,_={name:3,whenToUse:2,description:1,allowedTools:.3},v=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),y=4,b=2,x=null,S=null,C=null}));export{p as a,i as c,l as i,o as l,c as n,w as o,s as r,m as s,f as t};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Tn as te,Wt as ne,wn as re}from"./state-B3zvBu4R.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-D7OBvqC2.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t?.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;re(r),te(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Cn as te,Ut as ne,wn as re}from"./state-D5D6QpTX.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-D58GQBDG.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t?.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;te(r),re(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-DnsldjYU.js";import{Gr as r,t as i}from"./src-DL3w8VPk2.js";import{Wt as a,k as o,pt as s}from"./state-B3zvBu4R.js";import{n as c,t as l}from"./cwd-Dj2ynhWd.js";import{g as u,n as d,wn as f,xn as p}from"./settings-DUyIag_5.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-BqUlQEaV.js";import{Ot as v,Pt as y,zt as b}from"./model-xI2MbgRj.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.18`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:p(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:b()?v():`API Usage Billing`,agentName:d().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{a(),i(),y(),c(),f(),g(),n(),u(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-DXOkUcW3.js";import{Gr as r,t as i}from"./src-DL3w8VPk2.js";import{O as a,Ut as o,ft as s}from"./state-D5D6QpTX.js";import{n as c,t as l}from"./cwd-Nh5IZNKO.js";import{Cn as u,bn as d,h as f,t as p}from"./settings-3xZ0fsvE.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-CbzxVmbv.js";import{Ot as v,Pt as y,zt as b}from"./model-Cxx3suBa.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.19`,t=a(),n=process.env.DEMO_VERSION?`/code/claude`:d(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:b()?v():`API Usage Billing`,agentName:p().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{o(),i(),y(),c(),u(),g(),n(),f(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$S as r,$y as i,Ap as a,Fa as o,La as s,Sa as c,Zy as l,eC as u,kp as d}from"./loadAgentsDir-DnsldjYU.js";import{R as f,V as p,f as m,u as h}from"./debug-D7OBvqC2.js";import{Jr as g,Yr as _,_ as v,u as y}from"./model-xI2MbgRj.js";import{dn as b,mn as x}from"./prompt-CzQkcxfg.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$y as r,Ap as i,Fa as a,JS as o,La as s,Sa as c,YS as l,Zy as u,kp as d}from"./loadAgentsDir-DXOkUcW3.js";import{R as f,V as p,f as m,u as h}from"./debug-D58GQBDG.js";import{Jr as g,Yr as _,_ as v,u as y}from"./model-Cxx3suBa.js";import{pn as b,un as x}from"./prompt-DEioJrx_.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
2
 
3
3
  Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
4
 
@@ -54,4 +54,4 @@ The document author has provided specific instructions for how this file should
54
54
 
55
55
  "${r}"
56
56
 
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),v()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:i,userContext:o,systemContext:s,toolUseContext:u}=t,d=l(u.readFileState);d.delete(e.path);let f={...u,readFileState:d},m=``;try{let t=(await r.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of a({agentDefinition:A(),promptMessages:[c({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:i,userContext:o,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{d(),x(),u(),f(),i(),s(),g(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,_(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!o(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),v()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[x],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:r,userContext:a,systemContext:s,toolUseContext:l}=t,d=u(l.readFileState);d.delete(e.path);let f={...l,readFileState:d},m=``;try{let t=(await o.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${x} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${x} is allowed`}}};for await(let e of i({agentDefinition:A(),promptMessages:[c({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:a,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{d(),b(),l(),f(),r(),s(),g(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,_(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!a(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};