@readmagic/workmate 0.0.13 → 0.0.15

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 (435) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-DcVnvL_u.js +1 -0
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-0Qdg3Rh7.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-CH9x1Ngp.js → AgentsMdExternalIncludesDialog-D6DopTxc.js} +1 -1
  4. package/dist/chunks/App-BoI5EJry.js +1 -0
  5. package/dist/chunks/ApproveApiKey-BjlQDcMx.js +1 -0
  6. package/dist/chunks/ApproveApiKey-PWFcscjY.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-ClSMkcGp.js +2 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-KCZv-PXl.js +1 -0
  9. package/dist/chunks/DiffDialog-BGBkuVIn.js +6 -0
  10. package/dist/chunks/Doctor-CI04juFO.js +3 -0
  11. package/dist/chunks/Doctor-DCrqcW68.js +1 -0
  12. package/dist/chunks/ExitFlow-qrCDVA9i.js +2 -0
  13. package/dist/chunks/Grove-B-M3DWD3.js +11 -0
  14. package/dist/chunks/{HybridTransport-BQNLZNa_.js → HybridTransport-n5jji6SI.js} +2 -4
  15. package/dist/chunks/InvalidConfigDialog-By-j6fHE.js +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-C_reeMzL.js +1 -0
  17. package/dist/chunks/MCPConnectionManager-BNG7iSlw.js +1 -0
  18. package/dist/chunks/MCPToolListView-jw0tITfc.js +1 -0
  19. package/dist/chunks/{McpParsingWarnings-CUx2zexI.js → McpParsingWarnings-BeZ3Bn8N.js} +1 -1
  20. package/dist/chunks/MessageSelector-Ci6N-gCw.js +3 -0
  21. package/dist/chunks/Messages-D6CRTH2m.js +10 -0
  22. package/dist/chunks/{Onboarding-t-P6Q5O6.js → Onboarding-DDkVEq-G.js} +1 -1
  23. package/dist/chunks/PermissionDialog-BPhvs5xH.js +1 -0
  24. package/dist/chunks/PressEnterToContinue-Dwoh6CaW.js +1 -0
  25. package/dist/chunks/{PromptInputFooterSuggestions-R12fbdmp.js → PromptInputFooterSuggestions-BlhZuQ5F.js} +1 -1
  26. package/dist/chunks/PromptInputHelpMenu-kKyPIMau.js +1 -0
  27. package/dist/chunks/QueryEngine-DXpS0Ytq.js +1 -0
  28. package/dist/chunks/REPL-D1BCm7cR.js +128 -0
  29. package/dist/chunks/REPL-JQgCrSEv.js +1 -0
  30. package/dist/chunks/RemoteSessionManager-mWVrdNfS.js +2 -0
  31. package/dist/chunks/ResumeConversation-BzTn_1jS.js +1 -0
  32. package/dist/chunks/SSETransport-D86IVNn1.js +2 -0
  33. package/dist/chunks/{SearchBox-C9vUA4IM.js → SearchBox-CwwV0W-w.js} +1 -1
  34. package/dist/chunks/SearchExtraToolsTool-BXIja1MR.js +1 -0
  35. package/dist/chunks/Settings-D_i8HzEW.js +2 -0
  36. package/dist/chunks/{TeleportProgress-3hmIApkj.js → TeleportProgress-CW8mLRy2.js} +1 -1
  37. package/dist/chunks/{TeleportRepoMismatchDialog-BA1a66RK.js → TeleportRepoMismatchDialog-DZD32R-l.js} +1 -1
  38. package/dist/chunks/TeleportResumeWrapper-BhuUE1aq.js +1 -0
  39. package/dist/chunks/ThemePicker-ByQZgIbH.js +1 -0
  40. package/dist/chunks/{TrustDialog-Dpk03V1Y.js → TrustDialog-BzwibD_8.js} +1 -1
  41. package/dist/chunks/ValidationErrorsList-Cuq6W2yc.js +2 -0
  42. package/dist/chunks/add-dir-BQ-ljgk6.js +1 -0
  43. package/dist/chunks/{agentDisplay-D7bdOOG7.js → agentDisplay-tRprY4gB.js} +1 -1
  44. package/dist/chunks/agents-DMyQUXwl.js +101 -0
  45. package/dist/chunks/{agents-22wiC58F.js → agents-Dq4BCf0H.js} +1 -1
  46. package/dist/chunks/allErrors-CQWZ6BPw.js +1 -0
  47. package/dist/chunks/{api-f3GN2I_J.js → api-ClAyS7cQ.js} +1 -1
  48. package/dist/chunks/api-CpD5jeKe.js +1 -0
  49. package/dist/chunks/attributionHooks-C0aXyx9L.js +1 -0
  50. package/dist/chunks/{auth-Czy7GoRh.js → auth-CWAvPfX7.js} +7 -12
  51. package/dist/chunks/auth-DG5bkWDc.js +1 -0
  52. package/dist/chunks/auth-DuHfQBuH.js +1 -0
  53. package/dist/chunks/backgroundHousekeeping-kf_v7Vfr.js +1 -0
  54. package/dist/chunks/backgroundHousekeeping-rzQFJiND.js +17 -0
  55. package/dist/chunks/{banner-BcAM7iSx.js → banner-HfMnBd03.js} +2 -2
  56. package/dist/chunks/{bg-Ci7pG4eo.js → bg-DltfF1_K.js} +2 -2
  57. package/dist/chunks/branch-BWbCrXBJ.js +2 -0
  58. package/dist/chunks/{break-cache-4rlQORVk.js → break-cache-Cd1yQ-0h.js} +2 -3
  59. package/dist/chunks/bridgeConfig-CABsoOum.js +1 -0
  60. package/dist/chunks/{bridgeConfig-B80T_lw7.js → bridgeConfig-CPHAyzdg.js} +1 -1
  61. package/dist/chunks/{bridgeMessaging-DyvHd16Z.js → bridgeMessaging-vR7uQXB9.js} +1 -1
  62. package/dist/chunks/{bridgePointer-DHWK3LEe.js → bridgePointer-CiHy2tTN.js} +1 -1
  63. package/dist/chunks/bridgeStatusUtil-CHTx7XwJ.js +1 -0
  64. package/dist/chunks/btw-IGcgP-Qq.js +1 -0
  65. package/dist/chunks/caches-Dj1YhqrG.js +1 -0
  66. package/dist/chunks/caches-FP8mGB4k.js +1 -0
  67. package/dist/chunks/{capacityWake-ByL6fM6I.js → capacityWake-LRiPhPeM.js} +1 -1
  68. package/dist/chunks/{ccrClient-BALhzhPF.js → ccrClient--8aPutWE.js} +1 -1
  69. package/dist/chunks/claudeDesktop-CB3UCt7U.js +1 -0
  70. package/dist/chunks/{clear-B_yVyJXP.js → clear-CF-FZwpe.js} +1 -1
  71. package/dist/chunks/{cliLaunch-OPOtzhvA.js → cliLaunch-xIVvtPZy.js} +1 -1
  72. package/dist/chunks/{client-BMA05FW8.js → client-B7WkO81L.js} +1 -1
  73. package/dist/chunks/client-BCzhAEd0.js +1 -0
  74. package/dist/chunks/client-BU7upHOb.js +1 -0
  75. package/dist/chunks/commands-Cr1p7OPH.js +1 -0
  76. package/dist/chunks/compact-BrJGpEFZ.js +2 -0
  77. package/dist/chunks/{config-9rLTDOYW.js → config-BSkuQZNf.js} +1 -1
  78. package/dist/chunks/config-BohF3_IV.js +1 -0
  79. package/dist/chunks/{config-DMKtiMzJ.js → config-D78R57VA.js} +1 -1
  80. package/dist/chunks/context-DADnwl4t.js +1 -0
  81. package/dist/chunks/context-noninteractive-BAbzwNxu.js +1 -0
  82. package/dist/chunks/{context-noninteractive-CHzerxnH.js → context-noninteractive-kACWzgS1.js} +2 -2
  83. package/dist/chunks/conversation-C8w1DtXk.js +1 -0
  84. package/dist/chunks/conversation-Ds7zRD0x.js +1 -0
  85. package/dist/chunks/{createSSHSession-XkHMiGRN.js → createSSHSession-B71Plec6.js} +3 -4
  86. package/dist/chunks/{createSession-BNGm9fL4.js → createSession-BJeDECzt.js} +1 -1
  87. package/dist/chunks/createSession-Bozo4Bu8.js +1 -0
  88. package/dist/chunks/crossProjectResume-B1I6YzXr.js +40 -0
  89. package/dist/chunks/{datadog-3WUWcCFn.js → datadog-C9uqPA6N.js} +1 -1
  90. package/dist/chunks/{debug-Dr1SjdXn.js → debug-BQj6h99Q.js} +1 -1
  91. package/dist/chunks/debugUtils-B86DM1Sp.js +1 -0
  92. package/dist/chunks/{detached-CqfQYVOi.js → detached--wGwkuHX.js} +1 -2
  93. package/dist/chunks/{detectRepository-CMEkS5_2.js → detectRepository-Qy3zKoyn.js} +1 -1
  94. package/dist/chunks/detectRepository-tRUoPOKy.js +1 -0
  95. package/dist/chunks/{diff-CKlLimGq.js → diff-CzChvQyK.js} +1 -1
  96. package/dist/chunks/directoryCompletion-i2oWpaUe.js +1 -0
  97. package/dist/chunks/doctor-DdvdGkNX.js +1 -0
  98. package/dist/chunks/{entry-DCbq734V.js → entry-BoL8sy1Y.js} +5 -6
  99. package/dist/chunks/esm-DtcV71xh.js +1 -0
  100. package/dist/chunks/{execFileNoThrow-mXq4K0rl.js → execFileNoThrow-DYm1GeGn.js} +1 -1
  101. package/dist/chunks/{execSyncWrapper-Ne33rRiD.js → execSyncWrapper-CqvQqke-.js} +1 -1
  102. package/dist/chunks/exit-Af27f74w.js +1 -0
  103. package/dist/chunks/exit-s9XGerrH.js +1 -0
  104. package/dist/chunks/{extraUsage-C86bZVgt.js → extraUsage-DsFwXMAj.js} +1 -1
  105. package/dist/chunks/extractMemories-B1KbTMY0.js +1 -0
  106. package/dist/chunks/fast-BGU8p2uY.js +1 -0
  107. package/dist/chunks/fast-CuUjONVV.js +1 -0
  108. package/dist/chunks/{fileSuggestions-BalHmi1-.js → fileSuggestions-DU7gmksK.js} +2 -2
  109. package/dist/chunks/{firstPartyEventLogger-1RTgXHSz.js → firstPartyEventLogger-7pAyUdbp.js} +3 -5
  110. package/dist/chunks/firstPartyEventLogger-sMeCTEUW.js +1 -0
  111. package/dist/chunks/flushGate-4DfYr-Ru.js +1 -0
  112. package/dist/chunks/{fpsMetrics-DffAomdg.js → fpsMetrics-Dk_pnSHJ.js} +1 -1
  113. package/dist/chunks/gemini-Cll4fVQn.js +1 -0
  114. package/dist/chunks/generateSessionName-BgGMwpps.js +1 -0
  115. package/dist/chunks/{genericProcessUtils-Dc1pfb7J.js → genericProcessUtils-Bbcbi11g.js} +1 -1
  116. package/dist/chunks/git-BaSq69E7.js +1 -0
  117. package/dist/chunks/{git-CoQQ6YEf.js → git-DplvjXEY.js} +2 -3
  118. package/dist/chunks/{githubRepoPathMapping-CmpEaQoo.js → githubRepoPathMapping-Px3_GeD1.js} +1 -1
  119. package/dist/chunks/goal-D4E2WQVn.js +3 -0
  120. package/dist/chunks/grok-HF1PHxXb.js +1 -0
  121. package/dist/chunks/{grove-b9gGKgu4.js → grove-Bck1zFaD.js} +2 -2
  122. package/dist/chunks/help-DJp61Job.js +1 -0
  123. package/dist/chunks/{hooks-C-QMGvCg.js → hooks-CJ17byYD.js} +7 -7
  124. package/dist/chunks/hooks-CjR3Eq0Z.js +1 -0
  125. package/dist/chunks/initReplBridge-D09JEKHt.js +1 -0
  126. package/dist/chunks/install-Dd5fw0cA.js +1 -0
  127. package/dist/chunks/{instrumentation-DQ705pC7.js → instrumentation-jsPu6qqs.js} +4 -4
  128. package/dist/chunks/{job-BaMT6Lb2.js → job-BHhkQbvu.js} +1 -1
  129. package/dist/chunks/{jwtUtils-FQWtM6iM.js → jwtUtils-YCoZL0FW.js} +1 -1
  130. package/dist/chunks/keybindings-Ch5lzNB8.js +1 -0
  131. package/dist/chunks/{launchLocalMemory-CtZrkmaw.js → launchLocalMemory-DsaijVcO.js} +2 -2
  132. package/dist/chunks/launchOnboarding-DHOylaqn.js +8 -0
  133. package/dist/chunks/loadAgentsDir-8FioUEwX.js +1 -0
  134. package/dist/chunks/{loadAgentsDir-mcRW90aq.js → loadAgentsDir-CwEfQDOw.js} +661 -698
  135. package/dist/chunks/loadPluginHooks-C-Yk5KlI.js +1 -0
  136. package/dist/chunks/localSearch-BEnlgSB7.js +1 -0
  137. package/dist/chunks/localSearch-LcgRjjl3.js +1 -0
  138. package/dist/chunks/{log-27kCA_9u.js → log-BlJ7CcKG.js} +1 -1
  139. package/dist/chunks/{logoV2Utils--8OUQQPd.js → logoV2Utils-DG9GwFjl.js} +1 -1
  140. package/dist/chunks/{magicDocs-26J_l1De.js → magicDocs-qGHR3Cqh.js} +2 -2
  141. package/dist/chunks/main-CBVQ8bRm.js +356 -0
  142. package/dist/chunks/{main-CGLCy2pM.js → main-Zh18lf2J.js} +2 -2
  143. package/dist/chunks/{managedEnv-Ds6MlFQE.js → managedEnv-3MbOWrVs.js} +1 -1
  144. package/dist/chunks/managedEnv-B4YV3A_y.js +1 -0
  145. package/dist/chunks/{mappers-DwZw084m.js → mappers-CdY45PDA.js} +1 -1
  146. package/dist/chunks/mcp-BA8XQ6h1.js +1 -0
  147. package/dist/chunks/mcp-DI8pGrqi.js +2 -0
  148. package/dist/chunks/mcp-DvY_FibT.js +6 -0
  149. package/dist/chunks/{memoize-Co4vS6UF.js → memoize-_2f7NWDv.js} +1 -1
  150. package/dist/chunks/memory-C2U7CCmM.js +1 -0
  151. package/dist/chunks/{modalContext-CUThy6Ph.js → modalContext-wY9CeN4G.js} +1 -1
  152. package/dist/chunks/{mode-B80CHkqo.js → mode-ByV6NqmB.js} +2 -2
  153. package/dist/chunks/model-C73ETGu9.js +1 -0
  154. package/dist/chunks/model-CVG_RRTy.js +1 -0
  155. package/dist/chunks/model-CeG-iOKF.js +1 -0
  156. package/dist/chunks/modelOptions-A5jrCUBp.js +1 -0
  157. package/dist/chunks/nativeInstaller-CXFD8LDV.js +1 -0
  158. package/dist/chunks/{omit-KEhe84f4.js → omit-B65XeX8r.js} +1 -1
  159. package/dist/chunks/{onChangeAppState-Dq1tIEJI.js → onChangeAppState-EtUxsgYz.js} +1 -1
  160. package/dist/chunks/openai-Dx5mvMjY.js +10 -0
  161. package/dist/chunks/{panel-CoF2a-h4.js → panel-Bg_0PHE6.js} +1 -1
  162. package/dist/chunks/{parser-CUUiH40T.js → parser-a2S_eFyE.js} +1 -1
  163. package/dist/chunks/parser-x-w3ikxt.js +1 -0
  164. package/dist/chunks/{partition-DeT341qu.js → partition-8vZDG3rY.js} +1 -1
  165. package/dist/chunks/permissions-CJUBfBTr.js +3 -0
  166. package/dist/chunks/pidLock-tjm2n1Nd.js +3 -0
  167. package/dist/chunks/plan-eFur8bdH.js +1 -0
  168. package/dist/chunks/{platform-Dg1c9F_1.js → platform-DVeTi9mp.js} +2 -2
  169. package/dist/chunks/plugin-fYLRLdOY.js +17 -0
  170. package/dist/chunks/pluginAutoupdate-B4w7SSYc.js +1 -0
  171. package/dist/chunks/{pluginBlocklist-BfoLN9a-.js → pluginBlocklist-CMwb7gmY.js} +1 -1
  172. package/dist/chunks/{pluginCliCommands-Bc2Iybhz.js → pluginCliCommands-3YCj7Y3Q.js} +1 -1
  173. package/dist/chunks/{pluginFlagging-Cr0d0hBA.js → pluginFlagging-srvq9H7p.js} +1 -1
  174. package/dist/chunks/pluginOperations-C7BCR7pw.js +2 -0
  175. package/dist/chunks/{pluginStartupCheck-DiCDQQlr.js → pluginStartupCheck-BLc0U7W7.js} +1 -1
  176. package/dist/chunks/pluginStartupCheck-nzVDPI1k.js +1 -0
  177. package/dist/chunks/plugins-CPtmmDDi.js +4 -0
  178. package/dist/chunks/poorMode-DD88nPJ4.js +1 -0
  179. package/dist/chunks/{poorMode-DxgO_bUb.js → poorMode-wm2WkPF0.js} +1 -1
  180. package/dist/chunks/print-BCud0ukQ.js +14 -0
  181. package/dist/chunks/processBashCommand-C9-FonuX.js +1 -0
  182. package/dist/chunks/processSlashCommand-Bi8_1MRC.js +5 -0
  183. package/dist/chunks/{prompt-DIlq8NTy.js → prompt-Bm2EEG4F.js} +21 -23
  184. package/dist/chunks/prompt-CX_v9F3s.js +1 -0
  185. package/dist/chunks/prompt-V0WQJrkO2.js +1 -0
  186. package/dist/chunks/{promptEditor-BILqOGl1.js → promptEditor-DQ9fpdQD.js} +3 -3
  187. package/dist/chunks/protocolHandler--eQQuSyx.js +13 -0
  188. package/dist/chunks/{proxy-BEKNaTXI.js → proxy-C0j74LqT.js} +1 -1
  189. package/dist/chunks/reconciler-DgQ4y1Vn.js +1 -0
  190. package/dist/chunks/refresh-CayVRWUY.js +1 -0
  191. package/dist/chunks/registerProtocol-DrWIX3Lb.js +1 -0
  192. package/dist/chunks/{reload-plugins-CGb0HTsH.js → reload-plugins-6xcH3dLg.js} +1 -1
  193. package/dist/chunks/{remoteBridgeCore-BmteXmI9.js → remoteBridgeCore-BnZYGaMH.js} +1 -1
  194. package/dist/chunks/{remoteManagedSettings-CwDGxL5p.js → remoteManagedSettings-CfFmrRze.js} +1 -1
  195. package/dist/chunks/rename-mDtCTbnD.js +1 -0
  196. package/dist/chunks/{renderOptions-45A-EdsK.js → renderOptions-CkqTbz6d.js} +1 -1
  197. package/dist/chunks/resume-DRvz4QFs.js +2 -0
  198. package/dist/chunks/ripgrep-Di-2j8Ws.js +1 -0
  199. package/dist/chunks/{ripgrep-DQ_ILUJV.js → ripgrep-DsLUmulz.js} +2 -2
  200. package/dist/chunks/{runtimeObserver-CtNY8Al2.js → runtimeObserver-Ba6SM-sI.js} +1 -1
  201. package/dist/chunks/{runtimeObserver-4ZqaCXYy.js → runtimeObserver-Dt5sGJVb.js} +4 -4
  202. package/dist/chunks/sandbox-adapter-Cmrd6tBj.js +1 -0
  203. package/dist/chunks/sandbox-toggle-DKcw3SbO.js +1 -0
  204. package/dist/chunks/searchExtraTools-DIgC0CFB.js +1 -0
  205. package/dist/chunks/{session-wb6X4Wrq.js → session-COVyD8UU.js} +2 -2
  206. package/dist/chunks/sessionFileAccessHooks-yAPDTrbm.js +1 -0
  207. package/dist/chunks/{sessionIdCompat-DMayYBrf.js → sessionIdCompat-Dgp6PW_1.js} +1 -1
  208. package/dist/chunks/sessionObserver-BizdPx8P.js +1 -0
  209. package/dist/chunks/{sessionObserver-BJQ5hwjU.js → sessionObserver-iAgSetlC.js} +2 -2
  210. package/dist/chunks/sessionState-zhvcDpb2.js +11 -0
  211. package/dist/chunks/sessionStorage-LMY409Ji.js +1 -0
  212. package/dist/chunks/sessionStoragePortable-x0Yn02-G.js +3 -0
  213. package/dist/chunks/{sessionTitle-Cbzrb9jT.js → sessionTitle-QPRly1tZ.js} +2 -2
  214. package/dist/chunks/{sessionTracing-CEsm8pZL.js → sessionTracing-C4uqAdud.js} +2 -2
  215. package/dist/chunks/settings-BgHApyGL.js +1 -0
  216. package/dist/chunks/settings-CvhsRFaT.js +19 -0
  217. package/dist/chunks/settingsSync-BGo6dHJo.js +1 -0
  218. package/dist/chunks/setup-Bjw5VS6x.js +3 -0
  219. package/dist/chunks/{shadowedRuleDetection-D5X5fhzj.js → shadowedRuleDetection-CzRAzcC1.js} +1 -1
  220. package/dist/chunks/{shellQuote-C_I6DHLV.js → shellQuote-D3Ocv_U-.js} +1 -1
  221. package/dist/chunks/{sideQuestion-BHRtwhyj.js → sideQuestion-oIYrx5ar.js} +3 -3
  222. package/dist/chunks/sinks-Bje3hCkR.js +1 -0
  223. package/dist/chunks/sinks-FaljTZ-c.js +1 -0
  224. package/dist/chunks/skillChangeDetector-v6mAYzXX.js +1 -0
  225. package/dist/chunks/{skillGapStore-BjQSSz2E.js → skillGapStore-CJjt3IW7.js} +2 -2
  226. package/dist/chunks/{skillLifecycle-Sp8strFv.js → skillLifecycle-BsgH84vl.js} +2 -2
  227. package/dist/chunks/{skillSearchPanel-3sYRez_Q.js → skillSearchPanel-CneXymsb.js} +4 -4
  228. package/dist/chunks/skills-DZRBy7vT.js +1 -0
  229. package/dist/chunks/{src-r6ZFgWPx2.js → src-D3yIF9I42.js} +1 -1
  230. package/dist/chunks/src-DL3w8VPk2.js +51 -0
  231. package/dist/chunks/{startupProfiler-Dc5r6LgE.js → startupProfiler-2sjXZkIP.js} +1 -1
  232. package/dist/chunks/startupProfiler-B2fyaBEa.js +1 -0
  233. package/dist/chunks/{staticRender-DrU6eWoq.js → staticRender-D9AbnQFr.js} +1 -1
  234. package/dist/chunks/{stats-BkadEKa-.js → stats-Dq-5qizS.js} +1 -1
  235. package/dist/chunks/status-BP_R8051.js +2 -0
  236. package/dist/chunks/status-CZYD3NGb.js +1 -0
  237. package/dist/chunks/statusNoticeHelpers-ODrnrLAZ.js +1 -0
  238. package/dist/chunks/{stringUtils-Df-Lnjxd.js → stringUtils-BjnclTLB.js} +3 -3
  239. package/dist/chunks/{switcher-uoQMHmEZ.js → switcher-BkGOeIzI.js} +1 -1
  240. package/dist/chunks/switcher-DwKN9daN.js +1 -0
  241. package/dist/chunks/{syncCache-BooMjgU6.js → syncCache-CpmpvjfC.js} +1 -1
  242. package/dist/chunks/tasks-CIUuwrX4.js +1 -0
  243. package/dist/chunks/teleport-IzyDplC7.js +1 -0
  244. package/dist/chunks/{templateJobs-BYYfF4m5.js → templateJobs-De57J461.js} +1 -3
  245. package/dist/chunks/{terminalSetup-CbXKCpWM.js → terminalSetup-DDvQ0K5e.js} +1 -1
  246. package/dist/chunks/terminalSetup-JJiXmszo.js +32 -0
  247. package/dist/chunks/theme-Nwii7354.js +1 -0
  248. package/dist/chunks/{tmux-d3cNCIZA.js → tmux-g0cQ0Buz.js} +1 -1
  249. package/dist/chunks/{toolEventObserver-BFEl47bq.js → toolEventObserver-Cq-uBb0-.js} +1 -1
  250. package/dist/chunks/toolPool-BBU4ll_p.js +1 -0
  251. package/dist/chunks/trustedDevice-BKzkA7fq.js +1 -0
  252. package/dist/chunks/{trustedDevice-BLiKbGpG.js → trustedDevice-DWZxDUxS.js} +1 -1
  253. package/dist/chunks/{types-BJ7qTz75.js → types-BomO8WUz.js} +1 -1
  254. package/dist/chunks/{udsClient-CF8BmZgN.js → udsClient-DSvRPCvR.js} +1 -1
  255. package/dist/chunks/upstreamproxy-DYoLvdM9.js +10 -0
  256. package/dist/chunks/useExitOnCtrlCDWithKeybindings-D48aDPG9.js +1 -0
  257. package/dist/chunks/useMainLoopModel-89eUU13X.js +1 -0
  258. package/dist/chunks/useManagePlugins-EqoQELMT.js +1 -0
  259. package/dist/chunks/useMergedTools-BJ4L9QSK.js +1 -0
  260. package/dist/chunks/{useSearchInput-KFKh2ozY.js → useSearchInput-DkVER3cm.js} +1 -1
  261. package/dist/chunks/useSettingsErrors-D3MlQ1GF.js +1 -0
  262. package/dist/chunks/{userAgent-DUrr02yh.js → userAgent-aoe_xVAb.js} +1 -1
  263. package/dist/chunks/util-g-5UX5gH.js +1 -0
  264. package/dist/chunks/validatePlugin-CSE8zjZn.js +1 -0
  265. package/dist/chunks/{vim-C4Hs5U2h.js → vim-s-wmybpU.js} +1 -1
  266. package/dist/chunks/{which-mplwBbc0.js → which-BR8YVCCW.js} +1 -1
  267. package/dist/chunks/{windowsPaths-C7Mdo9aU.js → windowsPaths-BmXyrasP.js} +1 -1
  268. package/dist/chunks/windowsPaths-BybjGW7e.js +1 -0
  269. package/dist/chunks/{workSecret-XLodD7tw.js → workSecret-BUd8cQ6-.js} +1 -1
  270. package/dist/chunks/workerRegistry-DGwy0YHB.js +2 -0
  271. package/dist/chunks/worktree-jjuORs7p.js +1 -0
  272. package/dist/cli.js +1 -1
  273. package/package.json +1 -1
  274. package/dist/chunks/AddWorkspaceDirectory-BzNj9rS6.js +0 -1
  275. package/dist/chunks/AgentsMdExternalIncludesDialog-CDZPR488.js +0 -1
  276. package/dist/chunks/App-D-bYAYAl.js +0 -1
  277. package/dist/chunks/ApproveApiKey-BEGV9Zj9.js +0 -1
  278. package/dist/chunks/ApproveApiKey-CjacpIqq.js +0 -1
  279. package/dist/chunks/BackgroundTasksDialog-A9hw_SV0.js +0 -2
  280. package/dist/chunks/BypassPermissionsModeDialog-B0BizN_J.js +0 -1
  281. package/dist/chunks/DiffDialog-mQ-5_TSv.js +0 -6
  282. package/dist/chunks/Doctor-BC6IuQhd.js +0 -3
  283. package/dist/chunks/Doctor-i_5_AQd-.js +0 -1
  284. package/dist/chunks/ExitFlow-Bu2cVGpC.js +0 -2
  285. package/dist/chunks/Grove-D0nn8zOV.js +0 -11
  286. package/dist/chunks/InvalidConfigDialog-C5CIiSIE.js +0 -1
  287. package/dist/chunks/InvalidSettingsDialog-Dq7hKXcO.js +0 -1
  288. package/dist/chunks/MCPConnectionManager-aDDsYkGM.js +0 -1
  289. package/dist/chunks/MCPToolListView-Cr0MDkzT.js +0 -1
  290. package/dist/chunks/MessageSelector-DwGOWKKL.js +0 -3
  291. package/dist/chunks/Messages-C1jh4ixt.js +0 -11
  292. package/dist/chunks/PermissionDialog-Cb3z8OUP.js +0 -1
  293. package/dist/chunks/PressEnterToContinue-Dq0Imo9c.js +0 -1
  294. package/dist/chunks/PromptInputHelpMenu-BgADIzRj.js +0 -1
  295. package/dist/chunks/QueryEngine-HlLQJmsd.js +0 -1
  296. package/dist/chunks/REPL-Rs_JQkDc.js +0 -1
  297. package/dist/chunks/REPL-VKAmKkII.js +0 -133
  298. package/dist/chunks/RemoteSessionManager-BbgXeM-t.js +0 -2
  299. package/dist/chunks/ResumeConversation-66zbx12g.js +0 -1
  300. package/dist/chunks/SSETransport-BBQkdn4e.js +0 -4
  301. package/dist/chunks/SearchExtraToolsTool-Bq87I_vu.js +0 -1
  302. package/dist/chunks/Settings-BKdLcyXe.js +0 -2
  303. package/dist/chunks/TeleportResumeWrapper-BT4O-Wsi.js +0 -1
  304. package/dist/chunks/ThemePicker-DUlhcoso.js +0 -1
  305. package/dist/chunks/ValidationErrorsList-DSSUWdgd.js +0 -2
  306. package/dist/chunks/add-dir-BUr0z-VU.js +0 -1
  307. package/dist/chunks/agents-8ELI8RJo.js +0 -103
  308. package/dist/chunks/allErrors-C1eMbHSv.js +0 -1
  309. package/dist/chunks/api-DgjIFdMn.js +0 -1
  310. package/dist/chunks/attributionHooks-CUAoGkU6.js +0 -1
  311. package/dist/chunks/auth-B73a4Cob.js +0 -1
  312. package/dist/chunks/auth-D_0waidQ.js +0 -1
  313. package/dist/chunks/autoModeDenials-BxNzGJdR.js +0 -1
  314. package/dist/chunks/backgroundHousekeeping-C_ArdTFX.js +0 -17
  315. package/dist/chunks/backgroundHousekeeping-YJhvZ0dh.js +0 -1
  316. package/dist/chunks/branch-bb4-bErF.js +0 -3
  317. package/dist/chunks/bridgeConfig-DywkIo_k.js +0 -1
  318. package/dist/chunks/bridgeStatusUtil-DStiD05t.js +0 -1
  319. package/dist/chunks/btw-BRmV51bR.js +0 -1
  320. package/dist/chunks/caches-C5DIVdvI.js +0 -1
  321. package/dist/chunks/caches-zDZEgNKq.js +0 -1
  322. package/dist/chunks/claudeDesktop-Ct_hyICL.js +0 -1
  323. package/dist/chunks/client-7lIxWcaM.js +0 -1
  324. package/dist/chunks/client-DVg8PpFX.js +0 -1
  325. package/dist/chunks/commands-ByFXqW43.js +0 -1
  326. package/dist/chunks/compact-BUShp2eQ.js +0 -2
  327. package/dist/chunks/config-BwHNU_pI.js +0 -1
  328. package/dist/chunks/context-6Pk3iVhh.js +0 -1
  329. package/dist/chunks/context-noninteractive-DFwRQyFE.js +0 -1
  330. package/dist/chunks/conversation-5zb5XkSA.js +0 -1
  331. package/dist/chunks/conversation-JP2ZXrwu.js +0 -1
  332. package/dist/chunks/createSession-VTqzWAu6.js +0 -1
  333. package/dist/chunks/crossProjectResume-DxgQVYSi.js +0 -40
  334. package/dist/chunks/debugUtils-cK-iOsEV.js +0 -1
  335. package/dist/chunks/detectRepository-BsKZDRoI.js +0 -1
  336. package/dist/chunks/directoryCompletion-ByBTSuLu.js +0 -1
  337. package/dist/chunks/doctor-Bvx0u0sO.js +0 -1
  338. package/dist/chunks/esm-CtQkOk5D.js +0 -1
  339. package/dist/chunks/exit-BOhGfSlm.js +0 -2
  340. package/dist/chunks/exit-DTsz5Lcb.js +0 -1
  341. package/dist/chunks/extractMemories-6OnMgL2S.js +0 -1
  342. package/dist/chunks/fast-B2ziqJEA.js +0 -1
  343. package/dist/chunks/fast-BkhjaTkZ.js +0 -1
  344. package/dist/chunks/firstPartyEventLogger-CXMzhLrF.js +0 -1
  345. package/dist/chunks/flushGate-DWL05x7v.js +0 -1
  346. package/dist/chunks/gemini-BLpLJyli.js +0 -1
  347. package/dist/chunks/generateSessionName-CdbMksHi.js +0 -1
  348. package/dist/chunks/git-Bs1vtuvX.js +0 -1
  349. package/dist/chunks/goal-V3qix-i1.js +0 -3
  350. package/dist/chunks/grok-BLLATotv.js +0 -1
  351. package/dist/chunks/help-BR7UEr5R.js +0 -1
  352. package/dist/chunks/hooks-D6wtd0Qq.js +0 -1
  353. package/dist/chunks/initReplBridge-DyScxedy.js +0 -1
  354. package/dist/chunks/install-DGH_bjUh.js +0 -1
  355. package/dist/chunks/keybindings-CG292HS1.js +0 -2
  356. package/dist/chunks/launchOnboarding-CyOtdZkT.js +0 -8
  357. package/dist/chunks/loadAgentsDir-4UC4yLg1.js +0 -1
  358. package/dist/chunks/loadPluginHooks-CWI0RMUx.js +0 -1
  359. package/dist/chunks/localSearch-CCCDKpYx.js +0 -1
  360. package/dist/chunks/localSearch-D4hVR7-d.js +0 -1
  361. package/dist/chunks/main-DUjtDK1Q.js +0 -513
  362. package/dist/chunks/managedEnv-BuCurT_S.js +0 -1
  363. package/dist/chunks/mcp-CEKR7PjL.js +0 -6
  364. package/dist/chunks/mcp-DCAf2hHD.js +0 -1
  365. package/dist/chunks/mcp-mCuc8dNe.js +0 -2
  366. package/dist/chunks/memory-B5SkpC7u.js +0 -1
  367. package/dist/chunks/model-BqaneI4D.js +0 -1
  368. package/dist/chunks/model-C29_32BD.js +0 -1
  369. package/dist/chunks/model-NG8fvuT2.js +0 -1
  370. package/dist/chunks/modelOptions-CiZgZxZC.js +0 -1
  371. package/dist/chunks/nativeInstaller-DqbEfGSX.js +0 -1
  372. package/dist/chunks/openai-BvnsYTpQ.js +0 -10
  373. package/dist/chunks/parser-B2PlJg4C.js +0 -1
  374. package/dist/chunks/permissions-BPpeHxpk.js +0 -3
  375. package/dist/chunks/pidLock-DQGDoFQP.js +0 -3
  376. package/dist/chunks/plan-BRiC5ujG.js +0 -1
  377. package/dist/chunks/plugin-Dcg_GGR9.js +0 -17
  378. package/dist/chunks/pluginAutoupdate-ByH9IPC9.js +0 -1
  379. package/dist/chunks/pluginOperations-CKNyYjS-.js +0 -2
  380. package/dist/chunks/pluginStartupCheck-B48_cGgo.js +0 -1
  381. package/dist/chunks/plugins-BP_36tOl.js +0 -4
  382. package/dist/chunks/poorMode-Djw0P9Gu.js +0 -1
  383. package/dist/chunks/print-2uavraPq.js +0 -26
  384. package/dist/chunks/processBashCommand-g3sAMpHt.js +0 -1
  385. package/dist/chunks/processSlashCommand-tIbeCrv5.js +0 -5
  386. package/dist/chunks/prompt-DLv-Cd67.js +0 -1
  387. package/dist/chunks/prompt-DV5tCLRh.js +0 -1
  388. package/dist/chunks/protocolHandler-B83fCYI4.js +0 -13
  389. package/dist/chunks/reconciler-CDq6XgAS.js +0 -1
  390. package/dist/chunks/refresh-ysrhoWCo.js +0 -1
  391. package/dist/chunks/registerProtocol-DduKPsn_.js +0 -36
  392. package/dist/chunks/rename-1GLIUlYk.js +0 -1
  393. package/dist/chunks/resume-DWtlUiHW.js +0 -2
  394. package/dist/chunks/ripgrep-BLQnqPnE.js +0 -1
  395. package/dist/chunks/sandbox-adapter-BzjRQh_r.js +0 -1
  396. package/dist/chunks/sandbox-toggle-Bz49-F6e.js +0 -1
  397. package/dist/chunks/searchExtraTools-D6vj8qJ-.js +0 -1
  398. package/dist/chunks/sessionFileAccessHooks-Da97UA2n.js +0 -1
  399. package/dist/chunks/sessionObserver-DXO4trhk.js +0 -1
  400. package/dist/chunks/sessionState-Bn3ESS5f.js +0 -11
  401. package/dist/chunks/sessionStorage-DlPVsQn9.js +0 -1
  402. package/dist/chunks/sessionStoragePortable-BhkGMZWp.js +0 -3
  403. package/dist/chunks/settings-3ionQKNv.js +0 -1
  404. package/dist/chunks/settings-DiBMs2gM.js +0 -20
  405. package/dist/chunks/settingsSync-eHaSngKo.js +0 -1
  406. package/dist/chunks/setup-DeyiuGNX.js +0 -3
  407. package/dist/chunks/sinks-Bgy2UNK-.js +0 -2
  408. package/dist/chunks/sinks-CgzLmim2.js +0 -1
  409. package/dist/chunks/skillChangeDetector-BlSP16j6.js +0 -1
  410. package/dist/chunks/skills-CJhWI8t1.js +0 -1
  411. package/dist/chunks/src-P_wYS_NJ2.js +0 -53
  412. package/dist/chunks/startupProfiler-CUlV07MD.js +0 -1
  413. package/dist/chunks/status-CDCurOqs.js +0 -2
  414. package/dist/chunks/status-yoQIQ2Ni.js +0 -1
  415. package/dist/chunks/statusNoticeHelpers-Sl4jjauz.js +0 -1
  416. package/dist/chunks/switcher-C-m6MUwE.js +0 -1
  417. package/dist/chunks/tasks-CHG_6sXQ.js +0 -1
  418. package/dist/chunks/teleport-C9KRE4X8.js +0 -1
  419. package/dist/chunks/terminalSetup-fwhFTxGi.js +0 -33
  420. package/dist/chunks/theme-MvX7hojJ.js +0 -1
  421. package/dist/chunks/toolPool-Cq74Cvjp.js +0 -1
  422. package/dist/chunks/trustedDevice-BGwujSqc.js +0 -1
  423. package/dist/chunks/updateCCB-CfckOy7T.js +0 -11
  424. package/dist/chunks/upstreamproxy-BuBFDFAD.js +0 -11
  425. package/dist/chunks/useExitOnCtrlCDWithKeybindings-CPLBDluY.js +0 -1
  426. package/dist/chunks/useMainLoopModel-C00PbZ1Q.js +0 -1
  427. package/dist/chunks/useManagePlugins-DFaGntzJ.js +0 -1
  428. package/dist/chunks/useMergedTools-DYobZ5N4.js +0 -1
  429. package/dist/chunks/useSettingsErrors-BRgjvaHd.js +0 -1
  430. package/dist/chunks/util-D7uwPgF1.js +0 -1
  431. package/dist/chunks/validatePlugin-VukX52bx.js +0 -1
  432. package/dist/chunks/windowsPaths-B8p9tFRF.js +0 -1
  433. package/dist/chunks/workerRegistry-BA37PVbv.js +0 -6
  434. package/dist/chunks/worktree-Lik8xuKd.js +0 -1
  435. package/dist/chunks/xdg-DcF9ejUM.js +0 -1
@@ -0,0 +1 @@
1
+ import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-CwEfQDOw.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-BQj6h99Q.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-Cr1p7OPH.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-BEnlgSB7.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{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Tn as te,Wt as ne,wn as re}from"./state-BPFYBqm1.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-Dr1SjdXn.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t||!t.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;re(r),te(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Tn as te,Wt as ne,wn as re}from"./state-BPFYBqm1.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-BQj6h99Q.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t?.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;re(r),te(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Ir as t,Sr as n}from"./loadAgentsDir-mcRW90aq.js";import{Gr as r,t as i}from"./src-P_wYS_NJ2.js";import{Wt as a,k as o,pt as s}from"./state-BPFYBqm1.js";import{n as c,t as l}from"./cwd-Besi3Os3.js";import{g as u,n as d,wn as f,xn as p}from"./settings-DiBMs2gM.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-Dc5r6LgE.js";import{Bt as v,Gt as y,Pt as b}from"./model-C29_32BD.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.13`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:p(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:y()?b():`API Usage Billing`,agentName:d().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{a(),i(),v(),c(),f(),g(),n(),u(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-CwEfQDOw.js";import{Gr as r,t as i}from"./src-DL3w8VPk2.js";import{Wt as a,k as o,pt as s}from"./state-BPFYBqm1.js";import{n as c,t as l}from"./cwd-Besi3Os3.js";import{g as u,n as d,wn as f,xn as p}from"./settings-CvhsRFaT.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-2sjXZkIP.js";import{Bt as v,Gt as y,Pt as b}from"./model-CeG-iOKF.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.15`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:p(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:y()?b():`API Usage Billing`,agentName:d().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{a(),i(),v(),c(),f(),g(),n(),u(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{La as r,Mp as i,Np as a,cb as o,dC as s,uC as c,ub as l,wa as u,za as d}from"./loadAgentsDir-mcRW90aq.js";import{R as f,V as p,f as m,u as h}from"./debug-Dr1SjdXn.js";import{_ as g,ei as _,ti as v,u as y}from"./model-C29_32BD.js";import{fn as b,hn as x}from"./prompt-DIlq8NTy.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$S as r,$y as i,Ap as a,Fa as o,La as s,Sa as c,Zy as l,eC as u,kp as d}from"./loadAgentsDir-CwEfQDOw.js";import{R as f,V as p,f as m,u as h}from"./debug-BQj6h99Q.js";import{$r as g,_,ei as v,u as y}from"./model-CeG-iOKF.js";import{dn as b,mn as x}from"./prompt-Bm2EEG4F.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
2
 
3
3
  Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
4
 
@@ -54,4 +54,4 @@ The document author has provided specific instructions for how this file should
54
54
 
55
55
  "${r}"
56
56
 
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),g()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t||!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&&i[1]){let e=i[1].match(P);if(e&&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:r,userContext:i,systemContext:s,toolUseContext:l}=t,d=o(l.readFileState);d.delete(e.path);let f={...l,readFileState:d},m=``;try{let t=(await c.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of a({agentDefinition:A(),promptMessages:[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((()=>{i(),x(),s(),f(),l(),d(),_(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,v(async function(e){let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!r(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),_()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:i,userContext:o,systemContext:s,toolUseContext:u}=t,d=l(u.readFileState);d.delete(e.path);let f={...u,readFileState:d},m=``;try{let t=(await r.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of a({agentDefinition:A(),promptMessages:[c({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:i,userContext:o,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{d(),x(),u(),f(),i(),s(),g(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,v(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!o(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};