@readmagic/workmate 0.0.28 → 0.0.29

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 (240) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-Bmgh8VS3.js → AddWorkspaceDirectory-C0lrhffT.js} +1 -1
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-DIahWLha.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-BJfHqScU.js → AgentsMdExternalIncludesDialog-Dmjjx4ql.js} +1 -1
  4. package/dist/chunks/App-COz7knHS.js +1 -0
  5. package/dist/chunks/{BackgroundTasksDialog-WkoL4g5Q.js → BackgroundTasksDialog-5IkCQ8lN.js} +2 -2
  6. package/dist/chunks/{BypassPermissionsModeDialog-BT9yl0Qt.js → BypassPermissionsModeDialog-g1FMGfQF.js} +1 -1
  7. package/dist/chunks/{CustomSelect-t4wXuXWH.js → CustomSelect-BsEd2To5.js} +1 -1
  8. package/dist/chunks/{DiffDialog-CXZxnb7Y.js → DiffDialog-Cwf8CdxZ.js} +5 -5
  9. package/dist/chunks/Doctor-CcLoI7tF.js +1 -0
  10. package/dist/chunks/Doctor-GmT5aeAc.js +3 -0
  11. package/dist/chunks/ExitFlow-DPgUFqeC.js +2 -0
  12. package/dist/chunks/{InvalidConfigDialog-riLYEaUP.js → InvalidConfigDialog-Di6HZYDV.js} +1 -1
  13. package/dist/chunks/{InvalidSettingsDialog-BGXl3V1A.js → InvalidSettingsDialog-BHL-MERJ.js} +1 -1
  14. package/dist/chunks/{KeybindingProviderSetup-syiDgtpB.js → KeybindingProviderSetup-eE3o0bfp.js} +1 -1
  15. package/dist/chunks/MCPConnectionManager-D-qpUJLV.js +1 -0
  16. package/dist/chunks/MCPToolListView-DtHRw4jQ.js +1 -0
  17. package/dist/chunks/{McpParsingWarnings-Czze2JPd.js → McpParsingWarnings-ByyErvR3.js} +1 -1
  18. package/dist/chunks/MessageSelector-CFz30wBL.js +3 -0
  19. package/dist/chunks/Messages-CfY-Oj3M.js +10 -0
  20. package/dist/chunks/{Onboarding-CD_Uv5h9.js → Onboarding-BfWLRx3n.js} +1 -1
  21. package/dist/chunks/{PromptInputFooterSuggestions-CHXJsTtQ.js → PromptInputFooterSuggestions-BRyJj7XR.js} +1 -1
  22. package/dist/chunks/{PromptInputHelpMenu-BZIVCV7V.js → PromptInputHelpMenu-DLuRCXVS.js} +1 -1
  23. package/dist/chunks/{ProviderSetup-CwMvjmjh.js → ProviderSetup-CKZGG2B9.js} +1 -1
  24. package/dist/chunks/QueryEngine-B27MOtBA.js +1 -0
  25. package/dist/chunks/{REPL-CtFtb35A.js → REPL-DMRD5wSN.js} +23 -23
  26. package/dist/chunks/REPL-gzolQvzu.js +1 -0
  27. package/dist/chunks/ResumeConversation-7eURPHmQ.js +1 -0
  28. package/dist/chunks/SearchExtraToolsTool-BINZTstr.js +1 -0
  29. package/dist/chunks/Settings-4TNYpfUs.js +2 -0
  30. package/dist/chunks/Spinner-BgjmQLjw.js +1 -0
  31. package/dist/chunks/{TextInput-ou7ZhpVY.js → TextInput-BVEWdRz9.js} +5 -5
  32. package/dist/chunks/{ThemePicker-CVFWqSc7.js → ThemePicker-th2jdUjh.js} +1 -1
  33. package/dist/chunks/{TrustDialog-CGXv_LF4.js → TrustDialog-YsYqHyRR.js} +1 -1
  34. package/dist/chunks/{_baseEach-BYhqv77g.js → _baseEach-Bz5fQbIq.js} +1 -1
  35. package/dist/chunks/{add-dir-BSizpuef.js → add-dir-BsO6l8Ue.js} +1 -1
  36. package/dist/chunks/{agentDisplay-JKfYFD1m.js → agentDisplay-ChkgiTIH.js} +1 -1
  37. package/dist/chunks/{agents-MEaV8P2G.js → agents-BV1nan6b.js} +6 -6
  38. package/dist/chunks/{agents-BDTCH6YB.js → agents-DqEB6iwV.js} +1 -1
  39. package/dist/chunks/allErrors-CkdguCDv.js +1 -0
  40. package/dist/chunks/{backgroundHousekeeping-CsXlkIg3.js → backgroundHousekeeping-1VsWy8xd.js} +1 -1
  41. package/dist/chunks/backgroundHousekeeping-pMtrl4K2.js +1 -0
  42. package/dist/chunks/{branch-BllXcYwS.js → branch-CTIHtpwz.js} +2 -2
  43. package/dist/chunks/{bridgeControl-aDnUrYZR.js → bridgeControl-C8xaGuwO.js} +1 -1
  44. package/dist/chunks/{btw-DzaRBa6o.js → btw-BA39Zrhm.js} +1 -1
  45. package/dist/chunks/caches-DHZHqVhf.js +1 -0
  46. package/dist/chunks/caches-fqs-Y-kW.js +1 -0
  47. package/dist/chunks/channel-B5FkNSZ3.js +1 -0
  48. package/dist/chunks/{channel-Gw6skpUh.js → channel-C5yKM1wf.js} +1 -1
  49. package/dist/chunks/{clear-CDQs9_5P.js → clear-BmlaYYrD.js} +1 -1
  50. package/dist/chunks/commands-EUcHifS4.js +1 -0
  51. package/dist/chunks/compact-D3uePeI7.js +2 -0
  52. package/dist/chunks/config-GgGdlJ9h.js +1 -0
  53. package/dist/chunks/{context-TkdzCK3Y.js → context-CBEWyVpE.js} +1 -1
  54. package/dist/chunks/{context-noninteractive-BcBo64vo.js → context-noninteractive-B03nuxfN.js} +2 -2
  55. package/dist/chunks/context-noninteractive-BLCyyyGL.js +1 -0
  56. package/dist/chunks/conversation-BFL0rEIx.js +1 -0
  57. package/dist/chunks/conversation-D-ker4RO.js +1 -0
  58. package/dist/chunks/{conversationRecovery-_hWC7JBO.js → conversationRecovery-Bt84CYO6.js} +1 -1
  59. package/dist/chunks/crossProjectResume-DwlYY6lV.js +40 -0
  60. package/dist/chunks/{diff-BzVUPO4Z.js → diff-CewYzu3Y.js} +1 -1
  61. package/dist/chunks/doctor-CrQ0UfG2.js +1 -0
  62. package/dist/chunks/{entry-333L52Lo.js → entry-DdVUdGWV.js} +3 -3
  63. package/dist/chunks/exit-QwCo2aJo.js +1 -0
  64. package/dist/chunks/{extraUsage-CmgRR-zH.js → extraUsage-Cu0aV35i.js} +1 -1
  65. package/dist/chunks/extractMemories-DHlbRc5g.js +1 -0
  66. package/dist/chunks/{fast-D7oNjaZ3.js → fast-BlhpCQ2f.js} +1 -1
  67. package/dist/chunks/fast-C3JeBy3A.js +1 -0
  68. package/dist/chunks/{fetchModelList-Cv1vWIpC.js → fetchModelList-DjFCMjVN.js} +1 -1
  69. package/dist/chunks/fetchModelList-L2XarfAj.js +1 -0
  70. package/dist/chunks/{fileSuggestions-DF3HTRKr.js → fileSuggestions-BRwKV_KA.js} +2 -2
  71. package/dist/chunks/{gemini-ou7_YyXc.js → gemini-I-M5_sUA.js} +2 -2
  72. package/dist/chunks/{generateSessionName-CeN9EZNY.js → generateSessionName-CJ0sh6HD.js} +1 -1
  73. package/dist/chunks/{goal-CCxo4Wyf.js → goal-DIrBBT5J.js} +3 -3
  74. package/dist/chunks/{grok-BMmUcNbI.js → grok-ZLjJN6b9.js} +1 -1
  75. package/dist/chunks/{help-CYtogTZk.js → help-CDMjVOl6.js} +1 -1
  76. package/dist/chunks/{hooks-ByVkvodY.js → hooks-BNKCE023.js} +2 -2
  77. package/dist/chunks/hooks-ERYtmuNW.js +1 -0
  78. package/dist/chunks/{install-DIxyfdXG.js → install-xlfTw1j6.js} +1 -1
  79. package/dist/chunks/{instrumentation-BmHivmxs.js → instrumentation-DSt0UvGn.js} +3 -3
  80. package/dist/chunks/{job-D534P26R.js → job-BVElGsu0.js} +1 -1
  81. package/dist/chunks/{launchLocalMemory-CWXLb3KF.js → launchLocalMemory-DUkJCKmd.js} +2 -2
  82. package/dist/chunks/{launchOnboarding-CocPmwzz.js → launchOnboarding-BvD-E_jC.js} +1 -1
  83. package/dist/chunks/loadAgentsDir-BImZsKrh.js +1 -0
  84. package/dist/chunks/{loadAgentsDir-bmpKLPdG.js → loadAgentsDir-BfLCckVj.js} +22 -22
  85. package/dist/chunks/loadPluginHooks-BPwWtBzO.js +1 -0
  86. package/dist/chunks/{localSearch-Da8cVYoI.js → localSearch-BHG8sp8p.js} +1 -1
  87. package/dist/chunks/localSearch-D3rvcRRC.js +1 -0
  88. package/dist/chunks/{logoUtils-qNuBc2nI.js → logoUtils-BsNLv-qi.js} +1 -1
  89. package/dist/chunks/{magicDocs-BsEiBLQl.js → magicDocs-Bue9vxzY.js} +2 -2
  90. package/dist/chunks/{main-B31aPMPP.js → main-U71X4Thd.js} +22 -22
  91. package/dist/chunks/{mcp-Dd8TBfQQ.js → mcp-C4CxCMwJ.js} +3 -3
  92. package/dist/chunks/mcp-D9HFARDy.js +1 -0
  93. package/dist/chunks/mcp-De3QGKvT.js +2 -0
  94. package/dist/chunks/memory-DVRdJFfI.js +1 -0
  95. package/dist/chunks/{mode-SM8doWgC.js → mode-Bd5w-RBX.js} +2 -2
  96. package/dist/chunks/{model-C2r-PaR4.js → model-BCIcUhrc.js} +1 -1
  97. package/dist/chunks/{model-Dd3x121y.js → model-BIf2i1is.js} +1 -1
  98. package/dist/chunks/{modelOptions-BQL4gbNk.js → modelOptions-COIU5U3w.js} +1 -1
  99. package/dist/chunks/{nativeInstaller-DMkZdsof.js → nativeInstaller-CGSNzGNn.js} +1 -1
  100. package/dist/chunks/{notifications-BwS1XsnZ.js → notifications-B5gzCmPC.js} +1 -1
  101. package/dist/chunks/{onChangeAppState-C9cYQJPF.js → onChangeAppState-NWwSE-I4.js} +1 -1
  102. package/dist/chunks/{openai-Bea4I2Od.js → openai-CyJ3m4dI.js} +2 -2
  103. package/dist/chunks/{overlayContext-C5WPACKC.js → overlayContext-DYrGDe63.js} +1 -1
  104. package/dist/chunks/{partition-CKgWl7p4.js → partition-BavNaw1S.js} +1 -1
  105. package/dist/chunks/permissions-CLYcBXIu.js +3 -0
  106. package/dist/chunks/{pidLock-CqkC3-nD.js → pidLock-Bao7SU6Z.js} +2 -2
  107. package/dist/chunks/{plan-Ce6wfjjI.js → plan-Dwj_ZX8G.js} +1 -1
  108. package/dist/chunks/plugin-Cscvf8st.js +17 -0
  109. package/dist/chunks/{pluginAutoupdate-ByokIVEs.js → pluginAutoupdate-D5XyiZrP.js} +1 -1
  110. package/dist/chunks/pluginBlocklist-CpkjXXKQ.js +1 -0
  111. package/dist/chunks/pluginCliCommands-DmLsxs1M.js +1 -0
  112. package/dist/chunks/{pluginFlagging-B2ZX5_oB.js → pluginFlagging-CRuX6sHR.js} +1 -1
  113. package/dist/chunks/pluginOperations-orq3bOCp.js +2 -0
  114. package/dist/chunks/{pluginStartupCheck-QG0d95dE.js → pluginStartupCheck-DGDl1WOZ.js} +1 -1
  115. package/dist/chunks/pluginStartupCheck-GHO77nmg.js +1 -0
  116. package/dist/chunks/plugins-Cq5c-Qs1.js +4 -0
  117. package/dist/chunks/{print-dUT7E1g9.js → print-zo7Z--Ll.js} +9 -9
  118. package/dist/chunks/processBashCommand-C7oVqf0B.js +1 -0
  119. package/dist/chunks/processSlashCommand-CPQB5_0w.js +5 -0
  120. package/dist/chunks/prompt-CAzFDybL.js +1 -0
  121. package/dist/chunks/prompt-Cm8SKZXY.js +1 -0
  122. package/dist/chunks/{prompt-BnDapYGL.js → prompt-DaYH88Oe.js} +1 -1
  123. package/dist/chunks/{reconciler-C_HKsocm.js → reconciler-B5Kr4do0.js} +1 -1
  124. package/dist/chunks/refresh-DurNMJeS.js +1 -0
  125. package/dist/chunks/{reject-Tug1RmkE.js → reject-CzjtO3fU.js} +1 -1
  126. package/dist/chunks/{reload-plugins-CL9LWzpq.js → reload-plugins-C38i_Eb3.js} +1 -1
  127. package/dist/chunks/rename-BV-3ZpFx.js +1 -0
  128. package/dist/chunks/{resume-BZ42SpS2.js → resume-CUzQIor4.js} +2 -2
  129. package/dist/chunks/{runtimeObserver-DT5P2_XL.js → runtimeObserver-BKoQ5IEO.js} +4 -4
  130. package/dist/chunks/{runtimeObserver-BLq2guVy.js → runtimeObserver-Ess1Cn8Y.js} +1 -1
  131. package/dist/chunks/sandbox-adapter-ClRO21Ci.js +1 -0
  132. package/dist/chunks/{sandbox-toggle-DghmaJhK.js → sandbox-toggle-Bp6Xpjh3.js} +1 -1
  133. package/dist/chunks/searchExtraTools-CV_fkuD6.js +1 -0
  134. package/dist/chunks/{select-CaxQ-BVq.js → select-Bm29ymsI.js} +1 -1
  135. package/dist/chunks/sessionFileAccessHooks-B5kAD4ol.js +1 -0
  136. package/dist/chunks/{sessionObserver-DBoZUvWL.js → sessionObserver-CBlzrJt1.js} +1 -1
  137. package/dist/chunks/sessionObserver-CayxkuxO.js +1 -0
  138. package/dist/chunks/sessionStorage-vLxCo1Mh.js +1 -0
  139. package/dist/chunks/{sessionTracing-5a7HDF4e.js → sessionTracing-TDsq54Uc.js} +1 -1
  140. package/dist/chunks/setup-BbyfyeQk.js +3 -0
  141. package/dist/chunks/{shadowedRuleDetection-L3tnySui.js → shadowedRuleDetection-BG3jtA9Y.js} +1 -1
  142. package/dist/chunks/{sideQuestion-BJTVma-5.js → sideQuestion-C8GNVo4R.js} +3 -3
  143. package/dist/chunks/{sinks-CV0SWuZW.js → sinks-BafJR6Fw.js} +1 -1
  144. package/dist/chunks/sinks-CHtjg7sn.js +1 -0
  145. package/dist/chunks/skillChangeDetector-CY17weG4.js +1 -0
  146. package/dist/chunks/{skillGapStore-Cposc03e.js → skillGapStore-Cl4J1WoZ.js} +2 -2
  147. package/dist/chunks/{skillLifecycle-RXQp0JU7.js → skillLifecycle-DdfeUHBf.js} +2 -2
  148. package/dist/chunks/{skillSearchPanel-B2pjskqk.js → skillSearchPanel-DtQYF9gN.js} +4 -4
  149. package/dist/chunks/{skills-D2ZjMtv4.js → skills-Fd12LJal.js} +1 -1
  150. package/dist/chunks/status-CGEMRiPI.js +1 -0
  151. package/dist/chunks/statusNoticeHelpers-D0tonVy0.js +1 -0
  152. package/dist/chunks/{switcher-rep86o4_.js → switcher-BCq9Az_q.js} +1 -1
  153. package/dist/chunks/switcher-DQMr6Anx.js +1 -0
  154. package/dist/chunks/{tasks-B4coTfrq.js → tasks-DQmkY_xD.js} +1 -1
  155. package/dist/chunks/{templateJobs-C5ukh6H3.js → templateJobs-CEDUbFAY.js} +1 -1
  156. package/dist/chunks/{theme-7RmvErYJ.js → theme-DQjJ4R0o.js} +1 -1
  157. package/dist/chunks/tipRegistry-BwxZ_G0j.js +2 -0
  158. package/dist/chunks/{toolEventObserver-Dzwzi5Vi.js → toolEventObserver-DdZ30on9.js} +1 -1
  159. package/dist/chunks/toolPool-CWIXwdX7.js +1 -0
  160. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BT0nexZw.js → useExitOnCtrlCDWithKeybindings-ClrtNKJ6.js} +1 -1
  161. package/dist/chunks/useMainLoopModel-CULw8pB_.js +1 -0
  162. package/dist/chunks/{useManagePlugins-pGaGzsEg.js → useManagePlugins-CmsPSHor.js} +1 -1
  163. package/dist/chunks/useMergedTools-C8PxReh0.js +1 -0
  164. package/dist/chunks/{useSearchInput-j12K4wEo.js → useSearchInput-BZhTzjgN.js} +1 -1
  165. package/dist/chunks/useSettingsErrors-GWIxCYyd.js +1 -0
  166. package/dist/chunks/{util-CCEK8oze.js → util-Bih2g-pV.js} +1 -1
  167. package/dist/chunks/validatePlugin-BwcC_Wbr.js +1 -0
  168. package/dist/chunks/worktree-BB9lFWBB.js +1 -0
  169. package/dist/cli.js +1 -1
  170. package/package.json +1 -1
  171. package/dist/chunks/AgentsMdExternalIncludesDialog-BjbUilCE.js +0 -1
  172. package/dist/chunks/App-COdpsR2w.js +0 -1
  173. package/dist/chunks/Doctor-B6isid5K.js +0 -1
  174. package/dist/chunks/Doctor-COj-tZBc.js +0 -3
  175. package/dist/chunks/ExitFlow-CcMYH5iI.js +0 -2
  176. package/dist/chunks/MCPConnectionManager-C7RmKzJh.js +0 -1
  177. package/dist/chunks/MCPToolListView-CewNLJus.js +0 -1
  178. package/dist/chunks/MessageSelector-Kc6JlnDX.js +0 -3
  179. package/dist/chunks/Messages-BvFYO4Zn.js +0 -10
  180. package/dist/chunks/QueryEngine-DAwfp_ht.js +0 -1
  181. package/dist/chunks/REPL-tFT1FGQF.js +0 -1
  182. package/dist/chunks/ResumeConversation-CERzSBvg.js +0 -1
  183. package/dist/chunks/SearchExtraToolsTool-ndh4aEwQ.js +0 -1
  184. package/dist/chunks/Settings-CPaqWNdP.js +0 -2
  185. package/dist/chunks/Spinner-C0qHjfIY.js +0 -1
  186. package/dist/chunks/allErrors-Dhnf6rqg.js +0 -1
  187. package/dist/chunks/backgroundHousekeeping-Bu-zRFCx.js +0 -1
  188. package/dist/chunks/caches-CMF-MmR-.js +0 -1
  189. package/dist/chunks/caches-CW5YnYNS.js +0 -1
  190. package/dist/chunks/channel-DVx21qde.js +0 -1
  191. package/dist/chunks/commands-CfYMwgP7.js +0 -1
  192. package/dist/chunks/compact-6F2tuItE.js +0 -2
  193. package/dist/chunks/config-BDkzWBnL.js +0 -1
  194. package/dist/chunks/context-noninteractive-oFcnY1Er.js +0 -1
  195. package/dist/chunks/conversation-CYZyg1U1.js +0 -1
  196. package/dist/chunks/conversation-DXzlRhNw.js +0 -1
  197. package/dist/chunks/crossProjectResume-CCo3iZrB.js +0 -40
  198. package/dist/chunks/doctor-B4jQbGQr.js +0 -1
  199. package/dist/chunks/exit-D5DYnRvR.js +0 -1
  200. package/dist/chunks/extractMemories-CVUrBFMj.js +0 -1
  201. package/dist/chunks/fast-CRhW9zha.js +0 -1
  202. package/dist/chunks/fetchModelList-DIa1HwAJ.js +0 -1
  203. package/dist/chunks/hooks-CBGUcyCs.js +0 -1
  204. package/dist/chunks/loadAgentsDir-Zw648oQO.js +0 -1
  205. package/dist/chunks/loadPluginHooks-BIfM53-_.js +0 -1
  206. package/dist/chunks/localSearch-Dbj8cXyO.js +0 -1
  207. package/dist/chunks/mcp-BMeWtYCx.js +0 -2
  208. package/dist/chunks/mcp-CYbesbfl.js +0 -1
  209. package/dist/chunks/memory-DtQQGyPS.js +0 -1
  210. package/dist/chunks/permissions-Dv_PCfY0.js +0 -3
  211. package/dist/chunks/plugin-aK4tDrVg.js +0 -17
  212. package/dist/chunks/pluginBlocklist-ByRQaVPu.js +0 -1
  213. package/dist/chunks/pluginCliCommands-Dyk4HYHs.js +0 -1
  214. package/dist/chunks/pluginOperations-BCvJvfOC.js +0 -2
  215. package/dist/chunks/pluginStartupCheck-o_TC7wIt.js +0 -1
  216. package/dist/chunks/plugins-DzsTDNWJ.js +0 -4
  217. package/dist/chunks/processBashCommand-DtGCgTkF.js +0 -1
  218. package/dist/chunks/processSlashCommand-wXblpK2C.js +0 -5
  219. package/dist/chunks/prompt-BdH2zk0S.js +0 -1
  220. package/dist/chunks/prompt-D0TFER0A.js +0 -1
  221. package/dist/chunks/refresh-Cm4jZzLa.js +0 -1
  222. package/dist/chunks/rename-OfKJSazJ.js +0 -1
  223. package/dist/chunks/sandbox-adapter-982rx2cm.js +0 -1
  224. package/dist/chunks/searchExtraTools-B4N1bpy0.js +0 -1
  225. package/dist/chunks/sessionFileAccessHooks-BqQ58T7e.js +0 -1
  226. package/dist/chunks/sessionObserver-qYpA90El.js +0 -1
  227. package/dist/chunks/sessionStorage-CC0v4zMs.js +0 -1
  228. package/dist/chunks/setup-DVLnIlse.js +0 -3
  229. package/dist/chunks/sinks-C9NdbjLo.js +0 -1
  230. package/dist/chunks/skillChangeDetector-DlodgOyC.js +0 -1
  231. package/dist/chunks/status-BcSkj9nE.js +0 -1
  232. package/dist/chunks/statusNoticeHelpers-DsrqBOQt.js +0 -1
  233. package/dist/chunks/switcher-BietN6il.js +0 -1
  234. package/dist/chunks/tipRegistry-BYpJZIjR.js +0 -2
  235. package/dist/chunks/toolPool-BGfiNj6h.js +0 -1
  236. package/dist/chunks/useMainLoopModel-QuE7VkgX.js +0 -1
  237. package/dist/chunks/useMergedTools-BLsIT3R_.js +0 -1
  238. package/dist/chunks/useSettingsErrors-C8VIzdws.js +0 -1
  239. package/dist/chunks/validatePlugin-CTVnWx9H.js +0 -1
  240. package/dist/chunks/worktree-BWL0vR4o.js +0 -1
@@ -0,0 +1 @@
1
+ import{f_ as e,l_ as t,u_ as n}from"./loadAgentsDir-BfLCckVj.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-2pVES-2G.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-CfYMwgP7.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-2pVES-2G.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-EUcHifS4.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-BHG8sp8p.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{Gr as t,t as n}from"./src-BX54x08P.js";import{In as r,Nn as i,m as a,t as o}from"./settings-D4M13toi.js";import{Pt as s,at as c}from"./state-CXY-q5gr.js";import{gr as l,kr as u}from"./loadAgentsDir-bmpKLPdG.js";import{n as d,t as f}from"./cwd-DrEEb4f5.js";import{C as p,S as m,_ as h,y as g}from"./startupProfiler-B9Qv2QGH.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=c();return M=u(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.28`,cwd:process.env.DEMO_VERSION?`/code/claude`:i(f()),billingType:`API Usage Billing`,agentName:o().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((()=>{s(),n(),d(),r(),h(),l(),a(),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
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Gr as t,t as n}from"./src-BX54x08P.js";import{In as r,Nn as i,m as a,t as o}from"./settings-D4M13toi.js";import{Pt as s,at as c}from"./state-CXY-q5gr.js";import{jr as l,vr as u}from"./loadAgentsDir-BfLCckVj.js";import{n as d,t as f}from"./cwd-DrEEb4f5.js";import{C as p,S as m,_ as h,y as g}from"./startupProfiler-B9Qv2QGH.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=c();return M=l(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.29`,cwd:process.env.DEMO_VERSION?`/code/claude`:i(f()),billingType:`API Usage Billing`,agentName:o().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((()=>{s(),n(),d(),r(),h(),u(),a(),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-QyzA_cFM.js";import{$x as r,By as i,Gv as a,Ji as o,Uv as s,_d as c,gd as l,ya as u,zy as d}from"./loadAgentsDir-bmpKLPdG.js";import{I as f,f as p,u as m,z as h}from"./debug-2pVES-2G.js";import{X as g,Y as _,f as v,s as y}from"./model-Dd3x121y.js";import{ln as b,pn as x}from"./prompt-BnDapYGL.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-QyzA_cFM.js";import{Gv as r,Hy as i,Vy as a,Xi as o,qv as s,tS as c,vd as l,xa as u,yd as d}from"./loadAgentsDir-BfLCckVj.js";import{I as f,f as p,u as m,z as h}from"./debug-2pVES-2G.js";import{X as g,Y as _,f as v,s as y}from"./model-BIf2i1is.js";import{ln as b,pn as x}from"./prompt-DaYH88Oe.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(),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:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:i,userContext:a,systemContext:o,toolUseContext:l}=t,u=s(l.readFileState);u.delete(e.path);let f={...l,readFileState:u},p=``;try{let t=(await d.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 ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of c({agentDefinition:A(),promptMessages:[r({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:i,userContext:a,systemContext:o},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{l(),x(),i(),f(),a(),o(),_(),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`&&!u(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:[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:l}=t,u=r(l.readFileState);u.delete(e.path);let f={...l,readFileState:u},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 ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of d({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((()=>{l(),x(),i(),f(),s(),o(),_(),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`&&!u(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};