@readmagic/workmate 0.0.24 → 0.0.25

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 (402) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-Y5S_lMjD.js +1 -0
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-Bnb1jWcg.js +1 -0
  3. package/dist/chunks/AgentsMdExternalIncludesDialog-DVbU-BaD.js +1 -0
  4. package/dist/chunks/App-B8q8PV77.js +1 -0
  5. package/dist/chunks/BackgroundTasksDialog-i0TkZgQp.js +2 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-DjqGAL4C.js +1 -0
  7. package/dist/chunks/CustomSelect-BvTftqEH.js +1 -0
  8. package/dist/chunks/DiffDialog-v5r8cBKW.js +6 -0
  9. package/dist/chunks/Doctor-DKpBnbuI.js +1 -0
  10. package/dist/chunks/Doctor-uvO6NM5m.js +3 -0
  11. package/dist/chunks/ExitFlow-Dh9QdaYK.js +2 -0
  12. package/dist/chunks/InvalidConfigDialog-C9boykQn.js +1 -0
  13. package/dist/chunks/{InvalidSettingsDialog-iwh8H52b.js → InvalidSettingsDialog-UN5mleCK.js} +1 -1
  14. package/dist/chunks/KeybindingProviderSetup-DsJqfEt-.js +1 -0
  15. package/dist/chunks/MCPConnectionManager-DkZVxLEj.js +1 -0
  16. package/dist/chunks/MCPToolListView-De1W4jpj.js +1 -0
  17. package/dist/chunks/McpParsingWarnings-zkM_lGd0.js +1 -0
  18. package/dist/chunks/MessageSelector-DW_itlX-.js +3 -0
  19. package/dist/chunks/Messages-BFsCpACq.js +10 -0
  20. package/dist/chunks/Onboarding-BT90cFkn.js +1 -0
  21. package/dist/chunks/PromptInputFooterSuggestions-CCTZYbWI.js +1 -0
  22. package/dist/chunks/PromptInputHelpMenu-Bm5KY0Ma.js +1 -0
  23. package/dist/chunks/{ProviderSetup-BCSPsvfv.js → ProviderSetup-yIj8YOKF.js} +1 -1
  24. package/dist/chunks/QueryEngine-egz5mbaW.js +1 -0
  25. package/dist/chunks/REPL-D27CE4WN.js +124 -0
  26. package/dist/chunks/REPL-e8wAT1wN.js +1 -0
  27. package/dist/chunks/ResumeConversation-CWA27Lke.js +1 -0
  28. package/dist/chunks/SearchExtraToolsTool-BRchtZ9Q.js +1 -0
  29. package/dist/chunks/{SelectMulti-BQRHed-d.js → SelectMulti-BW7Ffk1G.js} +1 -1
  30. package/dist/chunks/Settings-axHLvYIy.js +3 -0
  31. package/dist/chunks/Spinner-VjwI7m_g.js +1 -0
  32. package/dist/chunks/{SpinnerGlyph-CmkRUvHe.js → SpinnerGlyph-CqrOK3Mx.js} +1 -1
  33. package/dist/chunks/TextInput-Cev5Awdd.js +22 -0
  34. package/dist/chunks/ThemePicker-CtQYHmOr.js +1 -0
  35. package/dist/chunks/TrustDialog-8Sjmuu0e.js +1 -0
  36. package/dist/chunks/{ValidationErrorsList-DgNzJQUP.js → ValidationErrorsList-INwwoerV.js} +1 -1
  37. package/dist/chunks/_baseEach-DrPH_FGo.js +1 -0
  38. package/dist/chunks/add-dir-D3RMaYxy.js +1 -0
  39. package/dist/chunks/{agentDisplay-M4pfwbMC.js → agentDisplay-B3npXoCS.js} +1 -1
  40. package/dist/chunks/{agents-DddX7lLX.js → agents-2mPGmeq6.js} +1 -1
  41. package/dist/chunks/agents-DEnmg8Xo.js +101 -0
  42. package/dist/chunks/allErrors-C9kx6lnk.js +1 -0
  43. package/dist/chunks/analytics-COpjZpvd.js +1 -0
  44. package/dist/chunks/{appleTerminalBackup-BArZWB21.js → appleTerminalBackup-CT7g8yOs.js} +1 -1
  45. package/dist/chunks/backgroundHousekeeping-BkFxfjOf.js +1 -0
  46. package/dist/chunks/backgroundHousekeeping-CvWfd99M.js +1 -0
  47. package/dist/chunks/banner-DHpTmEO7.js +2 -0
  48. package/dist/chunks/branch-Be_yDFU8.js +2 -0
  49. package/dist/chunks/{break-cache-BMXqFTeS.js → break-cache-UUt6Dkf2.js} +2 -2
  50. package/dist/chunks/btw-DUml5L1w.js +1 -0
  51. package/dist/chunks/caches-DWjwe-DN.js +1 -0
  52. package/dist/chunks/caches-VLs1tQkZ.js +1 -0
  53. package/dist/chunks/{claudeDesktop-D8ml2767.js → claudeDesktop-mBGFDbI6.js} +1 -1
  54. package/dist/chunks/{clear-B8ZtFPOK.js → clear-CrGjNe6E.js} +1 -1
  55. package/dist/chunks/{client-CpTCeWba.js → client-BDuhbzLD.js} +1 -1
  56. package/dist/chunks/{client-4iqhC8xq.js → client-BYFVVMcf.js} +1 -1
  57. package/dist/chunks/client-CO_6v4yl.js +1 -0
  58. package/dist/chunks/client-DO-O441l.js +1 -0
  59. package/dist/chunks/commands-Cn1P7Tms.js +1 -0
  60. package/dist/chunks/compact-DGUhdXcc.js +2 -0
  61. package/dist/chunks/config-C7GTF4iI.js +1 -0
  62. package/dist/chunks/config-CWPHVTic.js +3 -0
  63. package/dist/chunks/config-Cox0TM2Z.js +1 -0
  64. package/dist/chunks/context-mV5zjqmc.js +1 -0
  65. package/dist/chunks/context-noninteractive--OuiZUzL.js +1 -0
  66. package/dist/chunks/{context-noninteractive-C7wrRZnM.js → context-noninteractive-DvfVvmSE.js} +2 -2
  67. package/dist/chunks/conversation--y8PD2Lk.js +1 -0
  68. package/dist/chunks/conversation-BIPJEOwO.js +1 -0
  69. package/dist/chunks/conversationRecovery-BBJzrA0g.js +1 -0
  70. package/dist/chunks/crossProjectResume-CwZb3cEU.js +40 -0
  71. package/dist/chunks/cwd-BZMp3CZ8.js +1 -0
  72. package/dist/chunks/cwd-BvNt_018.js +1 -0
  73. package/dist/chunks/debug-CRnGsZOV.js +39 -0
  74. package/dist/chunks/{detectRepository-CfX8Lc0A.js → detectRepository-CsJLbVEe.js} +1 -1
  75. package/dist/chunks/{diff-DdpHThJ7.js → diff-DUEoNCnJ.js} +1 -1
  76. package/dist/chunks/{directoryCompletion-D_Rtg-4j.js → directoryCompletion-Bgi8DBT5.js} +1 -1
  77. package/dist/chunks/doctor-4NiE46ZG.js +1 -0
  78. package/dist/chunks/entry-D1iD76SW.js +13 -0
  79. package/dist/chunks/{esm-CGx9qY3q.js → esm-DUH16IqH.js} +1 -1
  80. package/dist/chunks/execAsync-D6SA-YsV.js +1 -0
  81. package/dist/chunks/{execFileNoThrow-BTachNBI.js → execFileNoThrow-BgRsj_SW.js} +3 -3
  82. package/dist/chunks/exit-CrsQsjbx.js +1 -0
  83. package/dist/chunks/extraUsage-BtHE-SBX.js +1 -0
  84. package/dist/chunks/extractMemories-kogJzpit.js +1 -0
  85. package/dist/chunks/fast-CuNVwVTr.js +1 -0
  86. package/dist/chunks/fast-RlFnwGRV.js +1 -0
  87. package/dist/chunks/fetchModelList-Cjow_QGy.js +1 -0
  88. package/dist/chunks/fetchModelList-uiCPVqbJ.js +1 -0
  89. package/dist/chunks/fileSuggestions-C96V9-Ne.js +3 -0
  90. package/dist/chunks/firstPartyEventLogger-CN9UOmEC.js +1 -0
  91. package/dist/chunks/firstPartyEventLogger-RR5rvDtk.js +1 -0
  92. package/dist/chunks/{gemini-C_ApXgwc.js → gemini-4YGElN3H.js} +2 -2
  93. package/dist/chunks/generateSessionName-BHIKyXpz.js +1 -0
  94. package/dist/chunks/{genericProcessUtils-DwQFuna9.js → genericProcessUtils-BNlr-QxM.js} +1 -1
  95. package/dist/chunks/getMachineId-bsd-DTYGimUN.js +1 -0
  96. package/dist/chunks/getMachineId-darwin-DqIFUVvd.js +2 -0
  97. package/dist/chunks/getMachineId-linux-CnCTmdzd.js +1 -0
  98. package/dist/chunks/getMachineId-unsupported-Cx21ssu1.js +1 -0
  99. package/dist/chunks/getMachineId-win-vZhex7KX.js +1 -0
  100. package/dist/chunks/goal-ePK_jLo3.js +3 -0
  101. package/dist/chunks/grok-DnmklTrm.js +1 -0
  102. package/dist/chunks/help-B7xRle-V.js +1 -0
  103. package/dist/chunks/history-kOw3CcLT.js +1 -0
  104. package/dist/chunks/hooks-BDY1jMbS.js +1 -0
  105. package/dist/chunks/{hooks-DR3IYPJ3.js → hooks-BN5f58HY.js} +2 -2
  106. package/dist/chunks/install-DrMiHa2Q.js +1 -0
  107. package/dist/chunks/instrumentation-Oj5xagJG.js +21 -0
  108. package/dist/chunks/{job-YhJQWgE0.js → job-D9ypO0cd.js} +1 -1
  109. package/dist/chunks/keybindings-BRRN_eap.js +1 -0
  110. package/dist/chunks/launchLocalMemory-DliLezJw.js +3 -0
  111. package/dist/chunks/launchOnboarding-A-kk-7ID.js +8 -0
  112. package/dist/chunks/loadAgentsDir-CJAK4kif.js +1 -0
  113. package/dist/chunks/{loadAgentsDir-B0Anodo0.js → loadAgentsDir-DGozQu_6.js} +550 -550
  114. package/dist/chunks/{loadPluginHooks-BSwCtQ6T.js → loadPluginHooks-BiHPKDaY.js} +1 -1
  115. package/dist/chunks/{loader-CICGtLp2.js → loader-CtoR-vO-.js} +1 -1
  116. package/dist/chunks/{localSearch-BxLYi6w_.js → localSearch-BU02Qsv9.js} +1 -1
  117. package/dist/chunks/localSearch-DyaB2Rm-.js +1 -0
  118. package/dist/chunks/{log-D2TIwHBV.js → log-DoSpAwRP.js} +1 -1
  119. package/dist/chunks/logoUtils-DLd6JKqW.js +1 -0
  120. package/dist/chunks/{magicDocs-Bkz7ZcmL.js → magicDocs-Bj8LYrN2.js} +2 -2
  121. package/dist/chunks/main-B_09WbaG.js +345 -0
  122. package/dist/chunks/managedEnv-BJGfe3m7.js +1 -0
  123. package/dist/chunks/{managedEnv-OPlzUPbJ.js → managedEnv-CIWJsuty.js} +1 -1
  124. package/dist/chunks/mcp-1nBvcNxw.js +1 -0
  125. package/dist/chunks/mcp-7DXpXMdT.js +2 -0
  126. package/dist/chunks/mcp-kw99WVi2.js +6 -0
  127. package/dist/chunks/memory-CjWvzR_9.js +1 -0
  128. package/dist/chunks/mode-CBKawxnD.js +2 -0
  129. package/dist/chunks/model-DpZaKZMb.js +1 -0
  130. package/dist/chunks/model-DwbqvCY2.js +1 -0
  131. package/dist/chunks/modelOptions-CXBfKFXA.js +1 -0
  132. package/dist/chunks/nativeInstaller-SmPeEisk.js +1 -0
  133. package/dist/chunks/{notifications-Bc6k-Ozy.js → notifications-ql0eSo0Y.js} +1 -1
  134. package/dist/chunks/onChangeAppState-D85b33R5.js +1 -0
  135. package/dist/chunks/open-Cyrr4E5x.js +1 -0
  136. package/dist/chunks/openai-D_j7-KW6.js +2 -0
  137. package/dist/chunks/overlayContext-CLjlCFBl.js +1 -0
  138. package/dist/chunks/{panel-CVS4SK_E.js → panel-DMZkOEiU.js} +1 -1
  139. package/dist/chunks/parser-2usBI4G-.js +1 -0
  140. package/dist/chunks/{parser-Cg6hSCmn.js → parser-UqADrvxF.js} +1 -1
  141. package/dist/chunks/partition-CwxTlmMd.js +1 -0
  142. package/dist/chunks/{pasteStore-P0zP-ch0.js → pasteStore-ovtxMVR5.js} +1 -1
  143. package/dist/chunks/permissions-CgsvWOk_.js +3 -0
  144. package/dist/chunks/pidLock-B-SW3Nhx.js +3 -0
  145. package/dist/chunks/plan-BJrWtXEh.js +1 -0
  146. package/dist/chunks/platform-DsMIk3eq.js +2 -0
  147. package/dist/chunks/plugin-D97VJAxW.js +17 -0
  148. package/dist/chunks/{pluginAutoupdate-ennb9k8_.js → pluginAutoupdate-DQqYDPVg.js} +1 -1
  149. package/dist/chunks/{pluginBlocklist-9OrNEh--.js → pluginBlocklist-BAr9WTup.js} +1 -1
  150. package/dist/chunks/pluginCliCommands-CUGPc853.js +1 -0
  151. package/dist/chunks/{pluginFlagging-js_-WmYj.js → pluginFlagging-BO_3qjfs.js} +1 -1
  152. package/dist/chunks/pluginOperations-rTrzu6Vg.js +2 -0
  153. package/dist/chunks/pluginStartupCheck-BRHnXlym.js +1 -0
  154. package/dist/chunks/{pluginStartupCheck-SRXOyqr7.js → pluginStartupCheck-BX6cv-vs.js} +1 -1
  155. package/dist/chunks/plugins-9crasx2V.js +4 -0
  156. package/dist/chunks/poorMode-BaS0DBUO.js +1 -0
  157. package/dist/chunks/{poorMode-B0QGV6Ci.js → poorMode-DmvzFAz_.js} +1 -1
  158. package/dist/chunks/print-Bi3xVdB3.js +13 -0
  159. package/dist/chunks/processBashCommand-BBtnCx-7.js +1 -0
  160. package/dist/chunks/processSlashCommand-jzF0GmLO.js +5 -0
  161. package/dist/chunks/{projectOnboardingState-B5YATuc6.js → projectOnboardingState--L3BKjOE.js} +1 -1
  162. package/dist/chunks/prompt-CmijKW7G.js +1 -0
  163. package/dist/chunks/prompt-DYBx_D0H.js +1 -0
  164. package/dist/chunks/{prompt-CJ1l3XXk.js → prompt-DzO1um1h.js} +4 -4
  165. package/dist/chunks/{promptEditor-DoGHJN_W.js → promptEditor-B6S_Rzcu.js} +2 -2
  166. package/dist/chunks/protocolHandler-BWgH1jaF.js +13 -0
  167. package/dist/chunks/{proxy-CDBfZjO7.js → proxy-BjkGlmBu.js} +1 -1
  168. package/dist/chunks/reconciler-CVMmAaCy.js +1 -0
  169. package/dist/chunks/refresh-CAGv8BJY.js +1 -0
  170. package/dist/chunks/reject-CEUkoI2G.js +1 -0
  171. package/dist/chunks/{reload-plugins-CQZFQLWP.js → reload-plugins-DeyJTx4s.js} +1 -1
  172. package/dist/chunks/rename-DPFis9g_.js +1 -0
  173. package/dist/chunks/{renderOptions-DV0dn0IW.js → renderOptions-DRS2EslG.js} +1 -1
  174. package/dist/chunks/resume-N4O5YI-S.js +2 -0
  175. package/dist/chunks/ripgrep-3omwGI-l.js +1 -0
  176. package/dist/chunks/ripgrep-CgQrN3XX.js +5 -0
  177. package/dist/chunks/{runtimeObserver-DEuR8z0f.js → runtimeObserver-C0CJvA3q.js} +1 -1
  178. package/dist/chunks/{runtimeObserver-PJ1o8GRA.js → runtimeObserver-DMSzdFWt.js} +4 -4
  179. package/dist/chunks/sandbox-adapter-D15jjHJR.js +1 -0
  180. package/dist/chunks/sandbox-toggle-Tbbaw18C.js +1 -0
  181. package/dist/chunks/searchExtraTools-BoFc__Eg.js +1 -0
  182. package/dist/chunks/select-Fq6g2Ejk.js +1 -0
  183. package/dist/chunks/sessionFileAccessHooks-Rgsp4_Ex.js +1 -0
  184. package/dist/chunks/{sessionObserver-BtKjvteq.js → sessionObserver-CRie77tp.js} +2 -2
  185. package/dist/chunks/sessionObserver-PcaVCVkX.js +1 -0
  186. package/dist/chunks/sessionStorage-Dkf7FRgA.js +1 -0
  187. package/dist/chunks/sessionTracing-D7rekMdW.js +11 -0
  188. package/dist/chunks/settings-8fwIkMDV.js +1 -0
  189. package/dist/chunks/settings-CodSADx8.js +24 -0
  190. package/dist/chunks/setup-DBiIrXrh.js +3 -0
  191. package/dist/chunks/{shadowedRuleDetection-Bg_aIc5Z.js → shadowedRuleDetection-CTnYVrmP.js} +1 -1
  192. package/dist/chunks/{sideQuestion-D49GsfH7.js → sideQuestion-Cl8m2qYx.js} +3 -3
  193. package/dist/chunks/sinks-CiupmfTg.js +1 -0
  194. package/dist/chunks/sinks-DH83d_kd.js +1 -0
  195. package/dist/chunks/skillChangeDetector-BrrZaFkT.js +1 -0
  196. package/dist/chunks/{skillGapStore-CcFoHNLl.js → skillGapStore-es3K-aYe.js} +2 -2
  197. package/dist/chunks/{skillLifecycle-Bnz_4wE5.js → skillLifecycle-BcgoOQBk.js} +2 -2
  198. package/dist/chunks/{skillSearchPanel-C_5yUhqn.js → skillSearchPanel-CuDDb1L-.js} +4 -4
  199. package/dist/chunks/skills-BRtgqnLz.js +1 -0
  200. package/dist/chunks/{src-CiJCsqUl.js → src-C8gyNm5a.js} +1 -1
  201. package/dist/chunks/src-Db7K3F_i.js +3 -0
  202. package/dist/chunks/startupProfiler-D1NRu2nj.js +1 -0
  203. package/dist/chunks/startupProfiler-DF0AjiDf.js +3 -0
  204. package/dist/chunks/{state-B4jiUise.js → state-BQ4BEGin.js} +1 -1
  205. package/dist/chunks/state-D3gvDiu8.js +1 -0
  206. package/dist/chunks/status-WXA16wIM.js +1 -0
  207. package/dist/chunks/statusNoticeHelpers-BfmIub5L.js +1 -0
  208. package/dist/chunks/{stringUtils-C718f5ey.js → stringUtils-Bu_lJH5c.js} +1 -1
  209. package/dist/chunks/switcher-5gilU5_R.js +1 -0
  210. package/dist/chunks/{switcher-DZwUo5Ed.js → switcher-DMfuKuw_.js} +1 -1
  211. package/dist/chunks/{tasks-DdcUQEeD.js → tasks-B6gYXxOx.js} +1 -1
  212. package/dist/chunks/{templateJobs-C8qsPrLj.js → templateJobs-BW6TaqEC.js} +1 -1
  213. package/dist/chunks/{terminalSetup-B_10N_gE.js → terminalSetup-BgIXFBpd.js} +4 -4
  214. package/dist/chunks/{terminalSetup-qc2PlvOm.js → terminalSetup-C-g9Xvj3.js} +1 -1
  215. package/dist/chunks/{theme-f1h2QI8J.js → theme-9AZceq_m.js} +1 -1
  216. package/dist/chunks/tipRegistry-DtO1H_Wo.js +2 -0
  217. package/dist/chunks/{toolEventObserver-7QP38x4t.js → toolEventObserver-DTuJcREC.js} +1 -1
  218. package/dist/chunks/toolPool-DHS8jWaL.js +1 -0
  219. package/dist/chunks/{types-Dx7P7JLQ.js → types-97nL3naE.js} +16 -16
  220. package/dist/chunks/{udsClient-cQz6nJ_T.js → udsClient-CmYHFiBD.js} +1 -1
  221. package/dist/chunks/{use-select-navigation-hWL5VHnL.js → use-select-navigation-BStVRvcX.js} +1 -1
  222. package/dist/chunks/useExitOnCtrlCDWithKeybindings-DWRFdFoU.js +1 -0
  223. package/dist/chunks/useMainLoopModel-DSN5HjV1.js +1 -0
  224. package/dist/chunks/useManagePlugins-ntnOf5OU.js +1 -0
  225. package/dist/chunks/useMergedTools-C5Yns9Ij.js +1 -0
  226. package/dist/chunks/useSearchInput-B_mY9wBq.js +1 -0
  227. package/dist/chunks/useSettingsErrors-CM7tThcp.js +1 -0
  228. package/dist/chunks/util-Bb2S6g9N.js +1 -0
  229. package/dist/chunks/{validatePlugin-BMSoeb_b.js → validatePlugin-D8WQ5z4W.js} +1 -1
  230. package/dist/chunks/vim-Dpnhgoz_.js +1 -0
  231. package/dist/chunks/worktree-a5oOPSYl.js +1 -0
  232. package/dist/cli.js +1 -1
  233. package/package.json +1 -12
  234. package/dist/chunks/AddWorkspaceDirectory-Ch8IcWXO.js +0 -1
  235. package/dist/chunks/AgentsMdExternalIncludesDialog-Cyia0s4g.js +0 -1
  236. package/dist/chunks/AgentsMdExternalIncludesDialog-LjI_H_Au.js +0 -1
  237. package/dist/chunks/App-BOqh_1tN.js +0 -1
  238. package/dist/chunks/BackgroundTasksDialog-CSEuuoq9.js +0 -2
  239. package/dist/chunks/BypassPermissionsModeDialog-CwfCwUr9.js +0 -1
  240. package/dist/chunks/CustomSelect-wmZ9jz0W.js +0 -1
  241. package/dist/chunks/DiffDialog-BpXIEWiE.js +0 -6
  242. package/dist/chunks/Doctor-CMpr7tdf.js +0 -1
  243. package/dist/chunks/Doctor-DqW6j3_B.js +0 -3
  244. package/dist/chunks/ExitFlow-DacaBTlk.js +0 -2
  245. package/dist/chunks/Grove-CNqYPWI6.js +0 -11
  246. package/dist/chunks/InvalidConfigDialog-0TMJItCC.js +0 -1
  247. package/dist/chunks/KeybindingProviderSetup-D49HHTXD.js +0 -1
  248. package/dist/chunks/MCPConnectionManager-Cie77ZAK.js +0 -1
  249. package/dist/chunks/MCPToolListView-B4ehtkXd.js +0 -1
  250. package/dist/chunks/McpParsingWarnings-Bff66RtJ.js +0 -1
  251. package/dist/chunks/MessageSelector-Dpd6Iywp.js +0 -3
  252. package/dist/chunks/Messages-DN7M3oS_.js +0 -10
  253. package/dist/chunks/Onboarding-CQmE3rUf.js +0 -1
  254. package/dist/chunks/PromptInputFooterSuggestions-HI6HH3TP.js +0 -1
  255. package/dist/chunks/PromptInputHelpMenu-3QNUC2Cg.js +0 -1
  256. package/dist/chunks/QueryEngine-DdLWvJv6.js +0 -1
  257. package/dist/chunks/REPL-BqO9KcK_.js +0 -124
  258. package/dist/chunks/REPL-CmZmypfF.js +0 -1
  259. package/dist/chunks/ResumeConversation-DBqX7gva.js +0 -1
  260. package/dist/chunks/SearchExtraToolsTool-BsSoILFj.js +0 -1
  261. package/dist/chunks/Settings-B-7yBewS.js +0 -3
  262. package/dist/chunks/Spinner-ByQXTvAA.js +0 -1
  263. package/dist/chunks/TextInput-B8ruWRf2.js +0 -22
  264. package/dist/chunks/ThemePicker-BQErFFW1.js +0 -1
  265. package/dist/chunks/TrustDialog-BIhz6AZE.js +0 -1
  266. package/dist/chunks/_baseEach-CsIRoaTH.js +0 -1
  267. package/dist/chunks/add-dir-CrUDs19x.js +0 -1
  268. package/dist/chunks/agents-CGaCQeLw.js +0 -101
  269. package/dist/chunks/allErrors-BF73lon8.js +0 -1
  270. package/dist/chunks/analytics-DJobLaWP.js +0 -1
  271. package/dist/chunks/backgroundHousekeeping-Bq3LMsVR.js +0 -17
  272. package/dist/chunks/backgroundHousekeeping-Cl3Ox7Qh.js +0 -1
  273. package/dist/chunks/banner-Cu2-XUek.js +0 -2
  274. package/dist/chunks/branch-Yg_taNlT.js +0 -2
  275. package/dist/chunks/btw-udbprVvu.js +0 -1
  276. package/dist/chunks/caches-ChjIEcdd.js +0 -1
  277. package/dist/chunks/caches-DLJ6urv-.js +0 -1
  278. package/dist/chunks/client-BiqbIkwr.js +0 -1
  279. package/dist/chunks/client-CZ8nyVh5.js +0 -1
  280. package/dist/chunks/commands-CVCpJo7M.js +0 -1
  281. package/dist/chunks/compact-izk6RKHQ.js +0 -2
  282. package/dist/chunks/config-C-Y2qtB2.js +0 -3
  283. package/dist/chunks/config-CFqpXMFX.js +0 -1
  284. package/dist/chunks/config-DD8fCYXn.js +0 -1
  285. package/dist/chunks/context-BbVm4SWK.js +0 -1
  286. package/dist/chunks/context-noninteractive-x0HAzWhc.js +0 -1
  287. package/dist/chunks/conversation-DouVzO0K.js +0 -1
  288. package/dist/chunks/conversation-DrVkifKy.js +0 -1
  289. package/dist/chunks/conversationRecovery-DliPBo_z.js +0 -1
  290. package/dist/chunks/crossProjectResume-DxMy05_P.js +0 -40
  291. package/dist/chunks/cwd-Dc3NV7s8.js +0 -1
  292. package/dist/chunks/cwd-Pa83R95t.js +0 -1
  293. package/dist/chunks/datadog-Cu3s7P48.js +0 -1
  294. package/dist/chunks/debug-Bglx1aTu.js +0 -39
  295. package/dist/chunks/doctor-D_kV_D_l.js +0 -1
  296. package/dist/chunks/entry-Bxseqbi_.js +0 -13
  297. package/dist/chunks/esm-BXTZz3av.js +0 -1
  298. package/dist/chunks/execAsync-Bv2yxuGe.js +0 -1
  299. package/dist/chunks/exit-C_R_FgzR.js +0 -1
  300. package/dist/chunks/extraUsage-xMuDiNKh.js +0 -1
  301. package/dist/chunks/extractMemories-D4Dl1itt.js +0 -1
  302. package/dist/chunks/fast-DH-C5IZs.js +0 -1
  303. package/dist/chunks/fast-bopOPrtf.js +0 -1
  304. package/dist/chunks/fetchModelList-DC4VQpqa.js +0 -1
  305. package/dist/chunks/fetchModelList-FE8tzTDc.js +0 -1
  306. package/dist/chunks/fileSuggestions-C-9unnoJ.js +0 -3
  307. package/dist/chunks/firstPartyEventLogger-QmjjQmgt.js +0 -3
  308. package/dist/chunks/firstPartyEventLogger-lFeqhtfh.js +0 -1
  309. package/dist/chunks/generateSessionName-CQ03xlYI.js +0 -1
  310. package/dist/chunks/getMachineId-bsd-Cut1kHoA.js +0 -1
  311. package/dist/chunks/getMachineId-darwin-CsRhaP3y.js +0 -2
  312. package/dist/chunks/getMachineId-linux-Bd7UBNRQ.js +0 -1
  313. package/dist/chunks/getMachineId-unsupported-vFGP8E_8.js +0 -1
  314. package/dist/chunks/getMachineId-win-DamF2CH_.js +0 -1
  315. package/dist/chunks/goal-CdL29Y8C.js +0 -3
  316. package/dist/chunks/grok-C6WAslUT.js +0 -1
  317. package/dist/chunks/grove-O6qp7ITR.js +0 -1
  318. package/dist/chunks/help-DxanITNN.js +0 -1
  319. package/dist/chunks/history-BMycjPTT.js +0 -1
  320. package/dist/chunks/hooks-D9ApLkBp.js +0 -1
  321. package/dist/chunks/install-0D9u2dZw.js +0 -1
  322. package/dist/chunks/instrumentation-BFiGwntt.js +0 -21
  323. package/dist/chunks/keybindings-DZrF9iNd.js +0 -1
  324. package/dist/chunks/launchLocalMemory-DhJ56KDc.js +0 -3
  325. package/dist/chunks/launchOnboarding-DmMoZwv5.js +0 -8
  326. package/dist/chunks/loadAgentsDir-BbUR6pqH.js +0 -1
  327. package/dist/chunks/localSearch-zfn7jgrh.js +0 -1
  328. package/dist/chunks/logoUtils-CRxTutvr.js +0 -1
  329. package/dist/chunks/main-9ksgUUY_.js +0 -345
  330. package/dist/chunks/managedEnv-BEqrGqn1.js +0 -1
  331. package/dist/chunks/mcp-ChF12reQ.js +0 -1
  332. package/dist/chunks/mcp-DoEl5uah.js +0 -2
  333. package/dist/chunks/mcp-hp9qqjAy.js +0 -6
  334. package/dist/chunks/memory-Qv-wGNQ5.js +0 -1
  335. package/dist/chunks/mode-bFXPCR2P.js +0 -2
  336. package/dist/chunks/model-6lkW4o2c.js +0 -1
  337. package/dist/chunks/model-BvQFFOf8.js +0 -1
  338. package/dist/chunks/modelOptions-BBvF3wHK.js +0 -1
  339. package/dist/chunks/nativeInstaller-CdjmE9Zy.js +0 -1
  340. package/dist/chunks/onChangeAppState-DLjZ1x95.js +0 -1
  341. package/dist/chunks/open-BtQHzzL9.js +0 -1
  342. package/dist/chunks/openai-D46QvESE.js +0 -2
  343. package/dist/chunks/overlayContext-8--_fbvY.js +0 -1
  344. package/dist/chunks/parser-CG5RuOCK.js +0 -1
  345. package/dist/chunks/partition-DznN4XZH.js +0 -1
  346. package/dist/chunks/permissions-DmGFViHI.js +0 -3
  347. package/dist/chunks/pidLock-Cm4sW35f.js +0 -3
  348. package/dist/chunks/plan-CzGBz_87.js +0 -1
  349. package/dist/chunks/platform-BacQ6ACS.js +0 -2
  350. package/dist/chunks/plugin-CluR79xX.js +0 -17
  351. package/dist/chunks/pluginCliCommands-CJv5uhOG.js +0 -1
  352. package/dist/chunks/pluginOperations-CcUSHAIa.js +0 -2
  353. package/dist/chunks/pluginStartupCheck-CRBUO9gP.js +0 -1
  354. package/dist/chunks/plugins-IwwaCDba.js +0 -4
  355. package/dist/chunks/poorMode-G-pnu6NM.js +0 -1
  356. package/dist/chunks/print-CgszM1ea.js +0 -13
  357. package/dist/chunks/processBashCommand-D098WsqY.js +0 -1
  358. package/dist/chunks/processSlashCommand-DOQFjJ88.js +0 -5
  359. package/dist/chunks/prompt-BKPmDAuL.js +0 -1
  360. package/dist/chunks/prompt-CgOklk7z.js +0 -1
  361. package/dist/chunks/protocolHandler-DjQALaU2.js +0 -13
  362. package/dist/chunks/reconciler-ykkSPR-i.js +0 -1
  363. package/dist/chunks/refresh-Dn_I1R4v.js +0 -1
  364. package/dist/chunks/registerProtocol-CAsDme_E.js +0 -1
  365. package/dist/chunks/reject-DtcCfuZV.js +0 -1
  366. package/dist/chunks/rename-DyEfsZiq.js +0 -1
  367. package/dist/chunks/resume-BcXEDUqZ.js +0 -2
  368. package/dist/chunks/ripgrep-DLs8MraF.js +0 -1
  369. package/dist/chunks/ripgrep-Dl3y5r4m.js +0 -5
  370. package/dist/chunks/sandbox-adapter-DfB9kgQD.js +0 -1
  371. package/dist/chunks/sandbox-toggle-D9GDUsTl.js +0 -1
  372. package/dist/chunks/searchExtraTools-D4gMMQv0.js +0 -1
  373. package/dist/chunks/select-DIxfl_VN.js +0 -1
  374. package/dist/chunks/sessionFileAccessHooks-lbgHnVvi.js +0 -1
  375. package/dist/chunks/sessionObserver-D6qzEdGJ.js +0 -1
  376. package/dist/chunks/sessionStorage-C_7gow_z.js +0 -1
  377. package/dist/chunks/sessionTracing-CtbeAD0s.js +0 -11
  378. package/dist/chunks/settings-B2jvL8Dp.js +0 -24
  379. package/dist/chunks/settings-CisDe8DB.js +0 -1
  380. package/dist/chunks/setup-qecdf-ES.js +0 -3
  381. package/dist/chunks/sinks-C-lP7uyO.js +0 -1
  382. package/dist/chunks/sinks-De-B1lPQ.js +0 -1
  383. package/dist/chunks/skillChangeDetector-DkOJoNhT.js +0 -1
  384. package/dist/chunks/skills-BE5scC-g.js +0 -1
  385. package/dist/chunks/src-CHw1lvBc.js +0 -3
  386. package/dist/chunks/startupProfiler-BH0FoI66.js +0 -1
  387. package/dist/chunks/startupProfiler-CJdr3SxP.js +0 -3
  388. package/dist/chunks/state-BhOKSFi5.js +0 -1
  389. package/dist/chunks/status-Dw09WZLd.js +0 -1
  390. package/dist/chunks/statusNoticeHelpers-BRQpUIlH.js +0 -1
  391. package/dist/chunks/switcher-CgZVah7U.js +0 -1
  392. package/dist/chunks/tipRegistry-B71o4qWr.js +0 -2
  393. package/dist/chunks/toolPool-V-7Yv0GA.js +0 -1
  394. package/dist/chunks/useExitOnCtrlCDWithKeybindings-BKwzUpgb.js +0 -1
  395. package/dist/chunks/useMainLoopModel-DxvV70Ru.js +0 -1
  396. package/dist/chunks/useManagePlugins-BXLXazrR.js +0 -1
  397. package/dist/chunks/useMergedTools-CCgnBJzO.js +0 -1
  398. package/dist/chunks/useSearchInput-CzopttqC.js +0 -1
  399. package/dist/chunks/useSettingsErrors-SFPWfxsA.js +0 -1
  400. package/dist/chunks/util-Cbb3S6SX.js +0 -1
  401. package/dist/chunks/vim-CoRp9lY1.js +0 -1
  402. package/dist/chunks/worktree-Vm-SNY5x.js +0 -1
@@ -1 +1 @@
1
- import{ah as e,ih as t,sh as n}from"./loadAgentsDir-B0Anodo0.js";t();export{e as loadPluginHooks,n as setupPluginHookHotReload};
1
+ import{ch as e,sh as t,uh as n}from"./loadAgentsDir-DGozQu_6.js";t();export{e as loadPluginHooks,n as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DfkgIdYf.js";import{A as r,C as i,G as a,P as o,Z as s}from"./types-Dx7P7JLQ.js";import{o as c,s as l}from"./log-D2TIwHBV.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((()=>{i(),i()})),y,b,x,S=e((()=>{v(),y=r([`openai-compat`,`anthropic-compat`]),b=a({id:s().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:s().url(),apiKey:s().min(1).optional(),apiKeyEnv:s().min(1).optional(),defaultModel:s().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=o(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-DfkgIdYf.js";import{N as r,S as i,W as a,X as o,k as s}from"./types-97nL3naE.js";import{o as c,s as l}from"./log-DoSpAwRP.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((()=>{i(),i()})),y,b,x,S=e((()=>{v(),y=s([`openai-compat`,`anthropic-compat`]),b=a({id:o().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:o().url(),apiKey:o().min(1).optional(),apiKeyEnv:o().min(1).optional(),defaultModel:o().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=r(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 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-Bglx1aTu.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-CVCpJo7M.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-CRnGsZOV.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-Cn1P7Tms.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};
@@ -0,0 +1 @@
1
+ import{a as e,o as t,s as n,t as r}from"./localSearch-BU02Qsv9.js";t();export{r as clearSkillIndexCache,e as getSkillIndex,n as searchSkills};
@@ -1 +1 @@
1
- import{i as e,n as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./memoize-BK3gG5ob.js";import{l as i,o as ee}from"./envUtils-DfkgIdYf.js";import{It as te,fn as ne,pn as re}from"./state-B4jiUise.js";import{B as ie,I as ae,V as oe,f as se,u as a,x as ce}from"./debug-Bglx1aTu.js";import{join as o}from"path";import s from"node:process";import c from"node:path";import le from"node:os";import"fs/promises";var ue,de,fe,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,pe=t((()=>{ue=`command-name`,de=`command-message`,fe=`command-args`,l=`bash-input`,u=`bash-stdout`,d=`bash-stderr`,f=`local-command-stdout`,p=`local-command-stderr`,m=`local-command-caveat`,h=`tick`,g=`task-notification`,_=`task-id`,v=`tool-use-id`,y=`task-type`,b=`output-file`,x=`status`,S=`summary`,C=`worktree`,w=`worktreePath`,T=`worktreeBranch`,E=`fork-boilerplate`,D=`Your directive: `,O=[`help`,`-h`,`--help`],k=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function me(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function A(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!me(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var he=t((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function ge(e,{suffix:t=`nodejs`}={}){return A(e),t&&(e+=`-${t}`),A(e),s.platform===`darwin`?P(e):s.platform===`win32`?F(e):I(e)}var j,M,N,P,F,I,_e=t((()=>{he(),j=le.homedir(),M=le.tmpdir(),{env:N}=s,P=e=>{let t=c.join(j,`Library`);return{data:c.join(t,`Application Support`,e),config:c.join(t,`Preferences`,e),cache:c.join(t,`Caches`,e),log:c.join(t,`Logs`,e),temp:c.join(M,e)}},F=e=>{let t=N.APPDATA||c.join(j,`AppData`,`Roaming`),n=N.LOCALAPPDATA||c.join(j,`AppData`,`Local`);return{data:c.join(n,e,`Data`),config:c.join(t,e,`Config`),cache:c.join(n,e,`Cache`),log:c.join(n,e,`Log`),temp:c.join(M,e)}},I=e=>{let t=c.basename(j);return{data:c.join(N.XDG_DATA_HOME||c.join(j,`.local`,`share`),e),config:c.join(N.XDG_CONFIG_HOME||c.join(j,`.config`),e),cache:c.join(N.XDG_CACHE_HOME||c.join(j,`.cache`),e),log:c.join(N.XDG_STATE_HOME||c.join(j,`.local`,`state`),e),temp:c.join(M,t,e)}}}));function L(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}function ve(t){return typeof Bun<`u`?Bun.hash(t).toString():e(`crypto`).createHash(`sha256`).update(t).digest(`hex`)}function ye(t,n){return typeof Bun<`u`?Bun.hash(n,Bun.hash(t)).toString():e(`crypto`).createHash(`sha256`).update(t).update(`\0`).update(n).digest(`hex`)}var R=t((()=>{}));function z(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=H?t:`${t.slice(0,H)}-${Math.abs(L(e)).toString(36)}`}function B(e){return z(e)}var V,H,U,W=t((()=>{_e(),se(),R(),V=ge(`claude-cli`),H=200,U={baseLogs:()=>o(V.cache,B(a().cwd())),errors:()=>o(V.cache,B(a().cwd()),`errors`),messages:()=>o(V.cache,B(a().cwd()),`messages`),mcpLogs:e=>o(V.cache,B(a().cwd()),`mcp-logs-${z(e)}`)}}));function G(e){return e.replace(K,``).trim()||e}function be(e){return e.replace(K,``).trim()}function xe(e){return e.replace(q,``).trim()}var K,q,J=t((()=>{K=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,q=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function Y(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function X(){return Y()===`essential-traffic`}function Se(){return Y()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=t((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?be(e.firstPrompt):``,i=r&&!n;return G(e.agentName||e.customTitle||e.summary||(i?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(i(process.env.CLAUDE_CODE_USE_BEDROCK)||i(process.env.CLAUDE_CODE_USE_VERTEX)||i(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||X())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;ne(r),re(null)}var Pe,Z,Q,$,Fe=t((()=>{r(),te(),pe(),W(),J(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,n(()=>process.argv.includes(`--hard-fail`))}));export{k as A,g as B,l as C,de as D,fe as E,f as F,w as G,h as H,b as I,C as K,x as L,D as M,m as N,ue as O,p as P,S as R,R as S,u as T,v as U,y as V,T as W,U as _,Te as a,ve as b,Me as c,we as d,X as f,xe as g,G as h,Ae as i,E as j,O as k,je as l,J as m,Ne as n,Fe as o,Se as p,pe as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,d as w,ye as x,L as y,_ as z};
1
+ import{i as e,n as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./memoize-BK3gG5ob.js";import{l as i,o as ee}from"./envUtils-DfkgIdYf.js";import{Pt as te,dn as ne,un as re}from"./state-BQ4BEGin.js";import{B as ie,I as ae,V as oe,f as se,u as a,x as ce}from"./debug-CRnGsZOV.js";import{join as o}from"path";import s from"node:process";import c from"node:path";import le from"node:os";import"fs/promises";var ue,de,fe,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,pe=t((()=>{ue=`command-name`,de=`command-message`,fe=`command-args`,l=`bash-input`,u=`bash-stdout`,d=`bash-stderr`,f=`local-command-stdout`,p=`local-command-stderr`,m=`local-command-caveat`,h=`tick`,g=`task-notification`,_=`task-id`,v=`tool-use-id`,y=`task-type`,b=`output-file`,x=`status`,S=`summary`,C=`worktree`,w=`worktreePath`,T=`worktreeBranch`,E=`fork-boilerplate`,D=`Your directive: `,O=[`help`,`-h`,`--help`],k=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function me(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function A(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!me(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var he=t((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function ge(e,{suffix:t=`nodejs`}={}){return A(e),t&&(e+=`-${t}`),A(e),s.platform===`darwin`?P(e):s.platform===`win32`?F(e):I(e)}var j,M,N,P,F,I,_e=t((()=>{he(),j=le.homedir(),M=le.tmpdir(),{env:N}=s,P=e=>{let t=c.join(j,`Library`);return{data:c.join(t,`Application Support`,e),config:c.join(t,`Preferences`,e),cache:c.join(t,`Caches`,e),log:c.join(t,`Logs`,e),temp:c.join(M,e)}},F=e=>{let t=N.APPDATA||c.join(j,`AppData`,`Roaming`),n=N.LOCALAPPDATA||c.join(j,`AppData`,`Local`);return{data:c.join(n,e,`Data`),config:c.join(t,e,`Config`),cache:c.join(n,e,`Cache`),log:c.join(n,e,`Log`),temp:c.join(M,e)}},I=e=>{let t=c.basename(j);return{data:c.join(N.XDG_DATA_HOME||c.join(j,`.local`,`share`),e),config:c.join(N.XDG_CONFIG_HOME||c.join(j,`.config`),e),cache:c.join(N.XDG_CACHE_HOME||c.join(j,`.cache`),e),log:c.join(N.XDG_STATE_HOME||c.join(j,`.local`,`state`),e),temp:c.join(M,t,e)}}}));function L(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}function ve(t){return typeof Bun<`u`?Bun.hash(t).toString():e(`crypto`).createHash(`sha256`).update(t).digest(`hex`)}function ye(t,n){return typeof Bun<`u`?Bun.hash(n,Bun.hash(t)).toString():e(`crypto`).createHash(`sha256`).update(t).update(`\0`).update(n).digest(`hex`)}var R=t((()=>{}));function z(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=H?t:`${t.slice(0,H)}-${Math.abs(L(e)).toString(36)}`}function B(e){return z(e)}var V,H,U,W=t((()=>{_e(),se(),R(),V=ge(`claude-cli`),H=200,U={baseLogs:()=>o(V.cache,B(a().cwd())),errors:()=>o(V.cache,B(a().cwd()),`errors`),messages:()=>o(V.cache,B(a().cwd()),`messages`),mcpLogs:e=>o(V.cache,B(a().cwd()),`mcp-logs-${z(e)}`)}}));function G(e){return e.replace(K,``).trim()||e}function be(e){return e.replace(K,``).trim()}function xe(e){return e.replace(q,``).trim()}var K,q,J=t((()=>{K=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,q=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function Y(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function X(){return Y()===`essential-traffic`}function Se(){return Y()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=t((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?be(e.firstPrompt):``,i=r&&!n;return G(e.agentName||e.customTitle||e.summary||(i?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(i(process.env.CLAUDE_CODE_USE_BEDROCK)||i(process.env.CLAUDE_CODE_USE_VERTEX)||i(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||X())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),ne(null)}var Pe,Z,Q,$,Fe=t((()=>{r(),te(),pe(),W(),J(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,n(()=>process.argv.includes(`--hard-fail`))}));export{k as A,g as B,l as C,de as D,fe as E,f as F,w as G,h as H,b as I,C as K,x as L,D as M,m as N,ue as O,p as P,S as R,R as S,u as T,v as U,y as V,T as W,U as _,Te as a,ve as b,Me as c,we as d,X as f,xe as g,G as h,Ae as i,E as j,O as k,je as l,J as m,Ne as n,Fe as o,Se as p,pe as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,d as w,ye as x,L as y,_ as z};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Gr as t,t as n}from"./src-DL3w8VPk.js";import{Pt as r,at as i}from"./state-BQ4BEGin.js";import{gr as a,kr as o}from"./loadAgentsDir-DGozQu_6.js";import{n as s,t as c}from"./cwd-BvNt_018.js";import{h as l,t as u,wn as d,xn as f}from"./settings-CodSADx8.js";import{C as p,S as m,_ as h,y as g}from"./startupProfiler-DF0AjiDf.js";function _(e){return e>=70?`horizontal`:`compact`}function v(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+k+A,e-O);return a<t+i+k+A&&(i=a-t-k-A),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-O,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function y(e,n,r){let i=Math.max(t(e),t(n),t(r),20);return Math.min(i+4,E)}function b(e){return!e||e.length>D?`Welcome back!`:`Welcome back ${e}!`}function x(e,n){if(t(e)<=n)return e;let r=e.split(`/`),i=r[0]||``,a=r[r.length-1]||``,o=t(i),s=t(a);if(r.length===1)return m(e,n);if(i===``&&2+s>=n)return`/${m(a,Math.max(1,n-1))}`;if(i!==``&&3+s>=n)return`…/${m(a,Math.max(1,n-1-1))}`;if(r.length===2)return`${p(i,n-1-1-s)}…/${a}`;let c=n-o-s-1-2;if(c<=0)return`${p(i,Math.max(0,n-s-1-2))}/…/${a}`;let l=[];for(let e=r.length-2;e>0;e--){let n=r[e];if(n&&t(n)+1<=c)l.unshift(n),c-=t(n)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function S(){if(M)return M;let e=i();return M=o(10).then(t=>(j=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),j)).catch(()=>(j=[],j)),M}function C(){return j}function w(){return{version:process.env.DEMO_VERSION??`0.0.25`,cwd:process.env.DEMO_VERSION?`/code/claude`:f(c()),billingType:`API Usage Billing`,agentName:u().agent}}function T(e,n,r){return t(e)+3+t(n)>r?{shouldSplit:!0,truncatedModel:g(e,r),truncatedBilling:g(n,r)}:{shouldSplit:!1,truncatedModel:g(e,Math.max(r-t(n)-3,10)),truncatedBilling:n}}var E,D,O,k,A,j,M,N=e((()=>{r(),n(),s(),d(),h(),a(),l(),E=50,D=20,O=4,k=1,A=2,j=[],M=null}));export{_ as a,C as c,b as i,N as l,y as n,w as o,T as r,S as s,v as t,x 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-DfkgIdYf.js";import{$y as r,E_ as i,Qy as a,Yi as o,ba as s,gd as c,hd as l,pS as u,w_ as d}from"./loadAgentsDir-B0Anodo0.js";import{I as f,f as p,u as m,z as h}from"./debug-Bglx1aTu.js";import{d as g,dt as _,o as v,ut as y}from"./model-BvQFFOf8.js";import{pn as b,un as x}from"./prompt-CJ1l3XXk.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-DfkgIdYf.js";import{Ji as r,Ug as i,Vg as a,_d as o,cb as s,gd as c,sb as l,xS as u,ya as d}from"./loadAgentsDir-DGozQu_6.js";import{I as f,f as p,u as m,z as h}from"./debug-CRnGsZOV.js";import{X as g,Y as _,f as v,s as y}from"./model-DpZaKZMb.js";import{pn as b,un as x}from"./prompt-DzO1um1h.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:v(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),p(),g()}));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:i,systemContext:o,toolUseContext:s}=t,l=d(s.readFileState);l.delete(e.path);let f={...s,readFileState:l},p=``;try{let t=(await a.call({file_path:e.path},f)).data;t.type===`text`&&(p=t.file.content)}catch(t){if(h(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let m=k(p);if(!m){F.delete(e.path);return}let g=await E(p,e.path,m.title,m.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 c({agentDefinition:A(),promptMessages:[u({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:i,systemContext:o},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{l(),b(),r(),f(),i(),o(),y(),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`&&!s(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(),p(),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:i,systemContext:s,toolUseContext:c}=t,d=a(c.readFileState);d.delete(e.path);let f={...c,readFileState:d},p=``;try{let t=(await l.call({file_path:e.path},f)).data;t.type===`text`&&(p=t.file.content)}catch(t){if(h(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let m=k(p);if(!m){F.delete(e.path);return}let g=await E(p,e.path,m.title,m.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 o({agentDefinition:A(),promptMessages:[u({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:i,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{c(),b(),s(),f(),i(),r(),_(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,g(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!d(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};