@readmagic/workmate 0.0.12 → 0.0.14

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 (439) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-m2d3nOQJ.js +1 -0
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-BRXGkHO4.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-_yJJ0wqu.js → AgentsMdExternalIncludesDialog-D58Vn3SK.js} +1 -1
  4. package/dist/chunks/App-CeC-2dzL.js +1 -0
  5. package/dist/chunks/ApproveApiKey-DFpddLyp.js +1 -0
  6. package/dist/chunks/ApproveApiKey-NXTWIAMj.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-9ruzl1jm.js +2 -0
  8. package/dist/chunks/{BypassPermissionsModeDialog-COI_V57z.js → BypassPermissionsModeDialog-C4QGpcBT.js} +1 -1
  9. package/dist/chunks/DiffDialog-LTdtTqsC.js +6 -0
  10. package/dist/chunks/Doctor-DmiDH-lg.js +1 -0
  11. package/dist/chunks/Doctor-Yvrzcrvx.js +3 -0
  12. package/dist/chunks/ExitFlow-DH0L3tyY.js +2 -0
  13. package/dist/chunks/{Grove-DRZrhbF0.js → Grove-BhhnrFX9.js} +2 -2
  14. package/dist/chunks/{HybridTransport-BadJQe6u.js → HybridTransport-CEWG9ZRi.js} +2 -4
  15. package/dist/chunks/InvalidConfigDialog-Ue3kJUPJ.js +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-BO2AOTVf.js +1 -0
  17. package/dist/chunks/MCPConnectionManager-Ciy9y9VV.js +1 -0
  18. package/dist/chunks/MCPToolListView-Ddmu2UcL.js +1 -0
  19. package/dist/chunks/{McpParsingWarnings-xv0RZCSL.js → McpParsingWarnings-BsCDFWci.js} +1 -1
  20. package/dist/chunks/MessageSelector-DY5K0NHd.js +3 -0
  21. package/dist/chunks/Messages-LD6ZO301.js +10 -0
  22. package/dist/chunks/Onboarding-w0-VVsDz.js +1 -0
  23. package/dist/chunks/PermissionDialog-BPhvs5xH.js +1 -0
  24. package/dist/chunks/PressEnterToContinue-Dwoh6CaW.js +1 -0
  25. package/dist/chunks/{PromptInputFooterSuggestions-8-awCxOn.js → PromptInputFooterSuggestions-OEXx0Abp.js} +1 -1
  26. package/dist/chunks/PromptInputHelpMenu-DyaUsvNx.js +1 -0
  27. package/dist/chunks/QueryEngine-sH-KjJIq.js +1 -0
  28. package/dist/chunks/REPL-BMH_RItw.js +128 -0
  29. package/dist/chunks/REPL-DkPd3vk5.js +1 -0
  30. package/dist/chunks/{RemoteSessionManager-B4jqKVd3.js → RemoteSessionManager-DJhrR1dz.js} +2 -2
  31. package/dist/chunks/ResumeConversation-BbNrpSFB.js +1 -0
  32. package/dist/chunks/SSETransport-CLiI2qnD.js +2 -0
  33. package/dist/chunks/{SearchBox-C9vUA4IM.js → SearchBox-CwwV0W-w.js} +1 -1
  34. package/dist/chunks/SearchExtraToolsTool-DupzA6Vm.js +1 -0
  35. package/dist/chunks/Settings-B1EI5LOU.js +2 -0
  36. package/dist/chunks/{TeleportProgress-zmdAsogZ.js → TeleportProgress-IB--CbqZ.js} +1 -1
  37. package/dist/chunks/{TeleportRepoMismatchDialog-CG32I4cO.js → TeleportRepoMismatchDialog-KjdlS_gA.js} +1 -1
  38. package/dist/chunks/{TeleportResumeWrapper-2Yjr74Lq.js → TeleportResumeWrapper-DnHTI39O.js} +1 -1
  39. package/dist/chunks/ThemePicker-BrD_T7xF.js +1 -0
  40. package/dist/chunks/{TrustDialog-BVcny9vs.js → TrustDialog-L0rvvpit.js} +1 -1
  41. package/dist/chunks/ValidationErrorsList-QZvtUrAy.js +2 -0
  42. package/dist/chunks/add-dir-CpWXReCi.js +1 -0
  43. package/dist/chunks/{agentDisplay-CfMLGPGH.js → agentDisplay-CrQvGkTT.js} +1 -1
  44. package/dist/chunks/agents-BYQO6DbG.js +101 -0
  45. package/dist/chunks/{agents-BT82hwBN.js → agents-C99yMsVF.js} +1 -1
  46. package/dist/chunks/allErrors-uyOMiF9U.js +1 -0
  47. package/dist/chunks/{api-DAubp5q9.js → api-C5I2xwgd.js} +1 -1
  48. package/dist/chunks/api-j0iE1mkR.js +1 -0
  49. package/dist/chunks/attributionHooks-C0aXyx9L.js +1 -0
  50. package/dist/chunks/{auth-yDsvFcM7.js → auth-BYCRa_mb.js} +7 -12
  51. package/dist/chunks/auth-C9FUZzpW.js +1 -0
  52. package/dist/chunks/auth-DwPrlTHv.js +1 -0
  53. package/dist/chunks/backgroundHousekeeping-BxcVB3By.js +1 -0
  54. package/dist/chunks/backgroundHousekeeping-CjD8bACB.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-BOWBZo5K.js +2 -0
  58. package/dist/chunks/{break-cache-4rlQORVk.js → break-cache-Cd1yQ-0h.js} +2 -3
  59. package/dist/chunks/bridgeConfig-Bxs5dqjH.js +1 -0
  60. package/dist/chunks/{bridgeConfig-BB6Hgali.js → bridgeConfig-CgAVrQfz.js} +1 -1
  61. package/dist/chunks/{bridgeMessaging-C9D0Lly2.js → bridgeMessaging-cOFtbkf_.js} +1 -1
  62. package/dist/chunks/{bridgePointer-DHWK3LEe.js → bridgePointer-CiHy2tTN.js} +1 -1
  63. package/dist/chunks/{bridgeStatusUtil-D8UbcVrZ.js → bridgeStatusUtil-BQF0AJDO.js} +1 -1
  64. package/dist/chunks/btw-B0UmiVKl.js +1 -0
  65. package/dist/chunks/caches-C9--b9a7.js +1 -0
  66. package/dist/chunks/caches-wN3JyvNE.js +1 -0
  67. package/dist/chunks/{capacityWake-ByL6fM6I.js → capacityWake-LRiPhPeM.js} +1 -1
  68. package/dist/chunks/{ccrClient-BG9HU_fW.js → ccrClient-wtUIz75R.js} +1 -1
  69. package/dist/chunks/{claudeDesktop-Ct_hyICL.js → claudeDesktop-DPIJpc1V.js} +1 -1
  70. package/dist/chunks/{clear-B4XN2fib.js → clear-CNzBoL7O.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-Dr9AYB-r.js +1 -0
  75. package/dist/chunks/commands-DTB0Qzd5.js +1 -0
  76. package/dist/chunks/compact-Bj8mdDYN.js +2 -0
  77. package/dist/chunks/config-B1kYcRIP.js +1 -0
  78. package/dist/chunks/{config-9rLTDOYW.js → config-BkbL2e5Q.js} +1 -1
  79. package/dist/chunks/{config-DMKtiMzJ.js → config-WMxn2jLl.js} +1 -1
  80. package/dist/chunks/context-DB1Ar85E.js +1 -0
  81. package/dist/chunks/context-noninteractive-Bno2Xsmp.js +1 -0
  82. package/dist/chunks/{context-noninteractive-mAQt1p9l.js → context-noninteractive-CqnJTDcI.js} +2 -2
  83. package/dist/chunks/conversation-DOgBzrm0.js +1 -0
  84. package/dist/chunks/conversation-hNXWaswI.js +1 -0
  85. package/dist/chunks/{createSSHSession-DjLSGm-0.js → createSSHSession-Cf2tOgK_.js} +3 -4
  86. package/dist/chunks/createSession-BZx-2UIB.js +1 -0
  87. package/dist/chunks/{createSession-CftIZ3aq.js → createSession-DD5YaQKM.js} +1 -1
  88. package/dist/chunks/crossProjectResume-CkiPQYYE.js +40 -0
  89. package/dist/chunks/{datadog-BGati3aQ.js → datadog-DcLf1QpG.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-1HsxKGBh.js → diff-dfXWiuLA.js} +1 -1
  96. package/dist/chunks/directoryCompletion-BtlRKLzw.js +1 -0
  97. package/dist/chunks/doctor-aKE2bG5C.js +1 -0
  98. package/dist/chunks/entry-wISucmYc.js +13 -0
  99. package/dist/chunks/esm-CrJVXrKW.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-pjN4EJHV.js +1 -0
  103. package/dist/chunks/exit-s9XGerrH.js +1 -0
  104. package/dist/chunks/{extraUsage-0pUcYexI.js → extraUsage-CwDhpClH.js} +1 -1
  105. package/dist/chunks/extractMemories-WmPLOLUT.js +1 -0
  106. package/dist/chunks/fast-BVABmasw.js +1 -0
  107. package/dist/chunks/fast-Cuj3bfFm.js +1 -0
  108. package/dist/chunks/{fileSuggestions-Be-pyLLq.js → fileSuggestions-Dy2BUZzd.js} +2 -2
  109. package/dist/chunks/firstPartyEventLogger-CabA8fu0.js +1 -0
  110. package/dist/chunks/{firstPartyEventLogger-aFhcruXA.js → firstPartyEventLogger-D4yuDP-n.js} +3 -5
  111. package/dist/chunks/flushGate-B6ecrC4j.js +1 -0
  112. package/dist/chunks/{fpsMetrics-DffAomdg.js → fpsMetrics-Dk_pnSHJ.js} +1 -1
  113. package/dist/chunks/gemini-BC-BxZmj.js +1 -0
  114. package/dist/chunks/generateSessionName-JTR8nPYD.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-Bk4FZrng.js} +1 -1
  119. package/dist/chunks/goal-B09SOyra.js +3 -0
  120. package/dist/chunks/grok-BBo3jGfP.js +1 -0
  121. package/dist/chunks/{grove-BnzBbGsX.js → grove-DsAIY-rZ.js} +1 -1
  122. package/dist/chunks/help-CELr6oJZ.js +1 -0
  123. package/dist/chunks/hooks-9rkDD2iw.js +1 -0
  124. package/dist/chunks/{hooks-BZS105Rd.js → hooks-BI4NY5IC.js} +2 -2
  125. package/dist/chunks/initReplBridge-BYrL6ou1.js +1 -0
  126. package/dist/chunks/{install-NZvHd_40.js → install-Dn3_M1Ui.js} +1 -1
  127. package/dist/chunks/{instrumentation-CjBlVlFq.js → instrumentation-5cSwEKaF.js} +4 -4
  128. package/dist/chunks/{job-D502Zf8J.js → job-rW1mEYtm.js} +1 -1
  129. package/dist/chunks/{jwtUtils-FQWtM6iM.js → jwtUtils-YCoZL0FW.js} +1 -1
  130. package/dist/chunks/keybindings-B5kUoxvg.js +1 -0
  131. package/dist/chunks/{launchLocalMemory-DxC3LojF.js → launchLocalMemory-CPucX8Xj.js} +2 -2
  132. package/dist/chunks/launchOnboarding--GCJWeeS.js +8 -0
  133. package/dist/chunks/loadAgentsDir-D-a1uUb5.js +1 -0
  134. package/dist/chunks/{loadAgentsDir-BXtV2jiO.js → loadAgentsDir-JrGMJN05.js} +659 -697
  135. package/dist/chunks/loadPluginHooks-C4zrlV0u.js +1 -0
  136. package/dist/chunks/localSearch-C-stDP9C.js +1 -0
  137. package/dist/chunks/localSearch-hOERAH9v.js +1 -0
  138. package/dist/chunks/{log-27kCA_9u.js → log-BlJ7CcKG.js} +1 -1
  139. package/dist/chunks/{logoV2Utils-CEnU8qad.js → logoV2Utils-J2Sqfube.js} +1 -1
  140. package/dist/chunks/{magicDocs-YtfrqVC6.js → magicDocs-Dpe3YhyL.js} +2 -2
  141. package/dist/chunks/main-C_PDzJdv.js +356 -0
  142. package/dist/chunks/{main-CGLCy2pM.js → main-Zh18lf2J.js} +2 -2
  143. package/dist/chunks/managedEnv-AEhH_HUs.js +1 -0
  144. package/dist/chunks/{managedEnv-B-BNY0xC.js → managedEnv-C8SisyLk.js} +1 -1
  145. package/dist/chunks/{mappers-IuJeXgvr.js → mappers-CMJorgSL.js} +1 -1
  146. package/dist/chunks/mcp-B2mJmWKt.js +6 -0
  147. package/dist/chunks/mcp-SuAh71Ht.js +2 -0
  148. package/dist/chunks/mcp-_tBxhPV-.js +1 -0
  149. package/dist/chunks/{memoize-Co4vS6UF.js → memoize-_2f7NWDv.js} +1 -1
  150. package/dist/chunks/memory-DK8bOrUr.js +1 -0
  151. package/dist/chunks/{modalContext-CUThy6Ph.js → modalContext-wY9CeN4G.js} +1 -1
  152. package/dist/chunks/{mode-GzBwK--u.js → mode-BhfhEpnW.js} +2 -2
  153. package/dist/chunks/model-BCM7RpVk.js +1 -0
  154. package/dist/chunks/model-BWR43D3c.js +1 -0
  155. package/dist/chunks/model-CmDF8O9G.js +1 -0
  156. package/dist/chunks/modelOptions-DEQat7lU.js +1 -0
  157. package/dist/chunks/nativeInstaller-xxyUjXbl.js +1 -0
  158. package/dist/chunks/{omit-D4Udf-p-.js → omit-od_CYp5o.js} +1 -1
  159. package/dist/chunks/{onChangeAppState-WbvtqDtk.js → onChangeAppState-CqTb0yEa.js} +1 -1
  160. package/dist/chunks/{openai-DaVFXyBB.js → openai-qW8mATAs.js} +3 -3
  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-CzW_31Y1.js → partition-CYoWXLNU.js} +1 -1
  165. package/dist/chunks/permissions--iKUbWBw.js +3 -0
  166. package/dist/chunks/pidLock-BR4hzYgp.js +3 -0
  167. package/dist/chunks/plan-DiHCGXhM.js +1 -0
  168. package/dist/chunks/{platform-Dg1c9F_1.js → platform-DVeTi9mp.js} +2 -2
  169. package/dist/chunks/plugin-BeC4D7XF.js +17 -0
  170. package/dist/chunks/pluginAutoupdate-Bj-CrFuO.js +1 -0
  171. package/dist/chunks/pluginBlocklist-DzOs-RS1.js +1 -0
  172. package/dist/chunks/pluginCliCommands-DwIGn58t.js +1 -0
  173. package/dist/chunks/{pluginFlagging-CXSSOj4J.js → pluginFlagging-BzuymJuf.js} +1 -1
  174. package/dist/chunks/pluginOperations-CP1v-nu0.js +2 -0
  175. package/dist/chunks/pluginStartupCheck-BGN6Je6d.js +1 -0
  176. package/dist/chunks/{pluginStartupCheck-BEd0VeQC.js → pluginStartupCheck-BUeBiYVq.js} +1 -1
  177. package/dist/chunks/plugins-D1N31THW.js +4 -0
  178. package/dist/chunks/{poorMode-DxgO_bUb.js → poorMode-D4L_-yWS.js} +1 -1
  179. package/dist/chunks/poorMode-XDBnxTiF.js +1 -0
  180. package/dist/chunks/print-DaJi1wF_.js +14 -0
  181. package/dist/chunks/processBashCommand-BGCIqxc9.js +1 -0
  182. package/dist/chunks/processSlashCommand-qR_j1DE8.js +5 -0
  183. package/dist/chunks/prompt-B0gADAvI.js +1 -0
  184. package/dist/chunks/{prompt-CRc2QEZ5.js → prompt-DnPppVz8.js} +21 -23
  185. package/dist/chunks/prompt-DqyEtC_I2.js +1 -0
  186. package/dist/chunks/{promptEditor-Bo1d8ZLq.js → promptEditor-Cilc9N3L.js} +3 -3
  187. package/dist/chunks/protocolHandler-DdbiucQa.js +13 -0
  188. package/dist/chunks/{proxy-BEKNaTXI.js → proxy-C0j74LqT.js} +1 -1
  189. package/dist/chunks/reconciler-Bte4gdP-.js +1 -0
  190. package/dist/chunks/refresh-MiZ0acBm.js +1 -0
  191. package/dist/chunks/registerProtocol-Bpte9dly.js +1 -0
  192. package/dist/chunks/{reload-plugins-DNEgQ5vo.js → reload-plugins-GdqFZblC.js} +1 -1
  193. package/dist/chunks/{remoteBridgeCore-BGOqHADF.js → remoteBridgeCore-CAl3_H-O.js} +1 -1
  194. package/dist/chunks/{remoteManagedSettings-26nhzuca.js → remoteManagedSettings-BcLJLEr7.js} +1 -1
  195. package/dist/chunks/rename-BDo5qIK0.js +1 -0
  196. package/dist/chunks/{renderOptions-45A-EdsK.js → renderOptions-CkqTbz6d.js} +1 -1
  197. package/dist/chunks/resume-Bbweh2hA.js +2 -0
  198. package/dist/chunks/ripgrep-DrpZ79Pp.js +1 -0
  199. package/dist/chunks/{ripgrep-DQ_ILUJV.js → ripgrep-X5m4gJ-3.js} +1 -1
  200. package/dist/chunks/{runtimeObserver-CBV-7-w7.js → runtimeObserver-CxXxUcrm.js} +1 -1
  201. package/dist/chunks/{runtimeObserver-BZrF3GnQ.js → runtimeObserver-Hjbo43xj.js} +3 -3
  202. package/dist/chunks/sandbox-adapter-DQ_fJSIo.js +1 -0
  203. package/dist/chunks/sandbox-toggle-DmNSThQK.js +1 -0
  204. package/dist/chunks/searchExtraTools-C7b2x2p_.js +1 -0
  205. package/dist/chunks/{session-Dy-_R7KP.js → session-CkuTMD_4.js} +2 -2
  206. package/dist/chunks/sessionFileAccessHooks-CQvGAbvL.js +1 -0
  207. package/dist/chunks/{sessionIdCompat-DMayYBrf.js → sessionIdCompat-Dgp6PW_1.js} +1 -1
  208. package/dist/chunks/sessionObserver-BoQY7nOa.js +1 -0
  209. package/dist/chunks/{sessionObserver-CyLpHSkw.js → sessionObserver-CvQ6oyoj.js} +1 -1
  210. package/dist/chunks/sessionState-C2REgUrs.js +11 -0
  211. package/dist/chunks/sessionStorage-BeaEgnaa.js +1 -0
  212. package/dist/chunks/sessionStoragePortable-x0Yn02-G.js +3 -0
  213. package/dist/chunks/{sessionTitle-L5tyJgdU.js → sessionTitle-2IWcNB8H.js} +2 -2
  214. package/dist/chunks/{sessionTracing-DpHGGIZm.js → sessionTracing-Bm7hQKHA.js} +2 -2
  215. package/dist/chunks/settings-Da6ax5aI.js +1 -0
  216. package/dist/chunks/{settings-DiBMs2gM.js → settings-aUygByiZ.js} +4 -5
  217. package/dist/chunks/settingsSync-DgzCU1BZ.js +1 -0
  218. package/dist/chunks/setup-CvaG4nl5.js +3 -0
  219. package/dist/chunks/{shadowedRuleDetection-DZ0AA2Rw.js → shadowedRuleDetection-CWCQ5dZ0.js} +1 -1
  220. package/dist/chunks/{shellQuote-C_I6DHLV.js → shellQuote-D3Ocv_U-.js} +1 -1
  221. package/dist/chunks/{sideQuestion-BYT8FdPF.js → sideQuestion-BoW-xYkh.js} +3 -3
  222. package/dist/chunks/sinks-B_ehGpvp.js +1 -0
  223. package/dist/chunks/sinks-ZHKfs6gv.js +1 -0
  224. package/dist/chunks/skillChangeDetector-C-HWR_8v.js +1 -0
  225. package/dist/chunks/{skillGapStore-DQXHqoP7.js → skillGapStore-CCNeSjIb.js} +2 -2
  226. package/dist/chunks/{skillLifecycle-BG_RnGSh.js → skillLifecycle-wU4JDNYQ.js} +2 -2
  227. package/dist/chunks/{skillSearchPanel-DxYP4Q6R.js → skillSearchPanel-Cxr1QQn4.js} +2 -2
  228. package/dist/chunks/skills-BghnKnNo.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-unp6R0Ah.js} +1 -1
  235. package/dist/chunks/{status-BmHu-c7I.js → status-BraYBx4N.js} +2 -2
  236. package/dist/chunks/status-DwyWiaVc.js +1 -0
  237. package/dist/chunks/statusNoticeHelpers-Dm1aiibR.js +1 -0
  238. package/dist/chunks/{stringUtils-Df-Lnjxd.js → stringUtils-BjnclTLB.js} +3 -3
  239. package/dist/chunks/{switcher-sYTxnJQA.js → switcher-BUNSEJ-7.js} +1 -1
  240. package/dist/chunks/switcher-DDUnWU_4.js +1 -0
  241. package/dist/chunks/{syncCache-BofuFJEe.js → syncCache-1s9xV8WV.js} +1 -1
  242. package/dist/chunks/tasks-BjFot03S.js +1 -0
  243. package/dist/chunks/teleport-Dj2Kvbmx.js +1 -0
  244. package/dist/chunks/{templateJobs-C94jEE6O.js → templateJobs-CY7GNRo5.js} +1 -3
  245. package/dist/chunks/{terminalSetup-fwhFTxGi.js → terminalSetup-CpMNk6dc.js} +5 -6
  246. package/dist/chunks/{terminalSetup-CbXKCpWM.js → terminalSetup-Ty8T8ePM.js} +1 -1
  247. package/dist/chunks/theme-c6grxWNn.js +1 -0
  248. package/dist/chunks/{tmux-d3cNCIZA.js → tmux-g0cQ0Buz.js} +1 -1
  249. package/dist/chunks/{toolEventObserver-DlL9CHmI.js → toolEventObserver-D7WbjgFR.js} +1 -1
  250. package/dist/chunks/toolPool-O5nkEFb1.js +1 -0
  251. package/dist/chunks/{trustedDevice-Bzz03jCy.js → trustedDevice-BF78PNK8.js} +1 -1
  252. package/dist/chunks/trustedDevice-D_z7bAQh.js +1 -0
  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/updateCCB-ts7Joyve.js +5 -0
  256. package/dist/chunks/upstreamproxy-DYoLvdM9.js +10 -0
  257. package/dist/chunks/useExitOnCtrlCDWithKeybindings-qLfN0tc-.js +1 -0
  258. package/dist/chunks/useMainLoopModel-DkjG_ikT.js +1 -0
  259. package/dist/chunks/useManagePlugins-E0Qzj-ws.js +1 -0
  260. package/dist/chunks/useMergedTools-B7iYaNwM.js +1 -0
  261. package/dist/chunks/{useSearchInput-q2CFPU4W.js → useSearchInput-CsxiM9i0.js} +1 -1
  262. package/dist/chunks/useSettingsErrors-DdVTahNa.js +1 -0
  263. package/dist/chunks/{userAgent-B7WkjI6I.js → userAgent-BggRZ-ZE.js} +1 -1
  264. package/dist/chunks/util-Xdy1nOjj.js +1 -0
  265. package/dist/chunks/{validatePlugin-jrcrYEIu.js → validatePlugin-Be5aSSnP.js} +1 -1
  266. package/dist/chunks/{vim-C4Hs5U2h.js → vim-cFcxfuac.js} +1 -1
  267. package/dist/chunks/{which-mplwBbc0.js → which-BR8YVCCW.js} +1 -1
  268. package/dist/chunks/{windowsPaths-C7Mdo9aU.js → windowsPaths-BmXyrasP.js} +1 -1
  269. package/dist/chunks/windowsPaths-BybjGW7e.js +1 -0
  270. package/dist/chunks/{workSecret-XLodD7tw.js → workSecret-BUd8cQ6-.js} +1 -1
  271. package/dist/chunks/workerRegistry-GrD7IAVQ.js +2 -0
  272. package/dist/chunks/worktree-V7xiUAtl.js +1 -0
  273. package/dist/cli.js +1 -1
  274. package/package.json +1 -1
  275. package/dist/chunks/AddWorkspaceDirectory-CtRxzRny.js +0 -1
  276. package/dist/chunks/AgentsMdExternalIncludesDialog-_bI4jo_P.js +0 -1
  277. package/dist/chunks/App-DoAZ7CYS.js +0 -1
  278. package/dist/chunks/ApproveApiKey-C8LwmDM2.js +0 -1
  279. package/dist/chunks/ApproveApiKey-DQP3qmb0.js +0 -1
  280. package/dist/chunks/BackgroundTasksDialog-CDA2noEk.js +0 -2
  281. package/dist/chunks/ConsoleOAuthFlow-Dn8fO-o_.js +0 -1
  282. package/dist/chunks/DiffDialog-CRWtQ1R5.js +0 -6
  283. package/dist/chunks/Doctor-CZ513Df9.js +0 -3
  284. package/dist/chunks/Doctor-CzPvNZzF.js +0 -1
  285. package/dist/chunks/ExitFlow-BFeftDv0.js +0 -2
  286. package/dist/chunks/InvalidConfigDialog-DQaT6aen.js +0 -1
  287. package/dist/chunks/InvalidSettingsDialog-ISzcIGPU.js +0 -1
  288. package/dist/chunks/MCPConnectionManager-BpjC7CEo.js +0 -1
  289. package/dist/chunks/MCPToolListView-Rb1Q--jG.js +0 -1
  290. package/dist/chunks/MessageSelector-BHB55sZb.js +0 -3
  291. package/dist/chunks/Messages-CPX-nIdA.js +0 -11
  292. package/dist/chunks/Onboarding-CymgipoF.js +0 -1
  293. package/dist/chunks/PermissionDialog-Cb3z8OUP.js +0 -1
  294. package/dist/chunks/PressEnterToContinue-Dq0Imo9c.js +0 -1
  295. package/dist/chunks/PromptInputHelpMenu-BP3UgCdi.js +0 -1
  296. package/dist/chunks/QueryEngine-HkswHUNv.js +0 -1
  297. package/dist/chunks/REPL-CZfg65kg.js +0 -133
  298. package/dist/chunks/REPL-eZsYNBfl.js +0 -1
  299. package/dist/chunks/ResumeConversation-B03XN_SP.js +0 -1
  300. package/dist/chunks/SSETransport-je346ofV.js +0 -4
  301. package/dist/chunks/SearchExtraToolsTool-C85Sanww.js +0 -1
  302. package/dist/chunks/Settings-C8GKWod1.js +0 -2
  303. package/dist/chunks/ThemePicker-p7_hHk1V.js +0 -1
  304. package/dist/chunks/ValidationErrorsList-DSSUWdgd.js +0 -2
  305. package/dist/chunks/WelcomeV2-BnSYhyfu.js +0 -1
  306. package/dist/chunks/add-dir-Bd7pilVx.js +0 -1
  307. package/dist/chunks/agents-qR6r94-F.js +0 -103
  308. package/dist/chunks/allErrors-CS77lRvU.js +0 -1
  309. package/dist/chunks/api-C4VflFau.js +0 -1
  310. package/dist/chunks/attributionHooks-CUAoGkU6.js +0 -1
  311. package/dist/chunks/auth-CNCehj7y.js +0 -1
  312. package/dist/chunks/auth-DrD9DW6X.js +0 -1
  313. package/dist/chunks/autoMode-C2lnBot9.js +0 -45
  314. package/dist/chunks/autoModeDenials-BxNzGJdR.js +0 -1
  315. package/dist/chunks/backgroundHousekeeping-DbpTGbwl.js +0 -1
  316. package/dist/chunks/backgroundHousekeeping-SpTxViUq.js +0 -17
  317. package/dist/chunks/branch-DJiMa8td.js +0 -3
  318. package/dist/chunks/bridgeConfig-Ccm79Jze.js +0 -1
  319. package/dist/chunks/btw-BO2B23f-.js +0 -1
  320. package/dist/chunks/caches-BQmbXerw.js +0 -1
  321. package/dist/chunks/caches-Dtjmjm6G.js +0 -1
  322. package/dist/chunks/client-7lIxWcaM.js +0 -1
  323. package/dist/chunks/client-B-2ccQZk.js +0 -1
  324. package/dist/chunks/commands-D_-v6_A0.js +0 -1
  325. package/dist/chunks/compact-kM0ETtB2.js +0 -2
  326. package/dist/chunks/config-Crf6Mzu3.js +0 -1
  327. package/dist/chunks/connectHeadless-CqRoEtrg.js +0 -1
  328. package/dist/chunks/context-BY5oO5is.js +0 -1
  329. package/dist/chunks/context-noninteractive-tc4KTYfI.js +0 -1
  330. package/dist/chunks/conversation-CFIn-KsW.js +0 -1
  331. package/dist/chunks/conversation-DPI7VKBL.js +0 -1
  332. package/dist/chunks/createSession-CjdLcRec.js +0 -1
  333. package/dist/chunks/crossProjectResume-BJqXBzkf.js +0 -40
  334. package/dist/chunks/dangerousBackend-DwcP0P08.js +0 -1
  335. package/dist/chunks/debugUtils-cK-iOsEV.js +0 -1
  336. package/dist/chunks/detectRepository-BsKZDRoI.js +0 -1
  337. package/dist/chunks/directoryCompletion-ByBTSuLu.js +0 -1
  338. package/dist/chunks/doctor-CJfvt9zR.js +0 -1
  339. package/dist/chunks/entry-CrZCZQQC.js +0 -14
  340. package/dist/chunks/esm-BkOWaWVb.js +0 -1
  341. package/dist/chunks/exit-B8MA4Ltm.js +0 -1
  342. package/dist/chunks/exit-BOhGfSlm.js +0 -2
  343. package/dist/chunks/extractMemories-DqhN0lba.js +0 -1
  344. package/dist/chunks/fast-DT5WDe3L.js +0 -1
  345. package/dist/chunks/fast-VOu2FUlV.js +0 -1
  346. package/dist/chunks/firstPartyEventLogger-B8RVGBQB.js +0 -1
  347. package/dist/chunks/flushGate-BUSrMj_6.js +0 -1
  348. package/dist/chunks/gemini-DB4M-MYv.js +0 -1
  349. package/dist/chunks/generateSessionName-DhCypqJ_.js +0 -1
  350. package/dist/chunks/git-Bs1vtuvX.js +0 -1
  351. package/dist/chunks/goal-TxXtfkQ6.js +0 -3
  352. package/dist/chunks/grok-D2a_J5wE.js +0 -1
  353. package/dist/chunks/help-C5ankDi4.js +0 -1
  354. package/dist/chunks/hooks-D-twhU_z.js +0 -1
  355. package/dist/chunks/initReplBridge-DL4klK0C.js +0 -1
  356. package/dist/chunks/keybindings-D9Boc8FD.js +0 -2
  357. package/dist/chunks/launchOnboarding-BLp5k_H4.js +0 -8
  358. package/dist/chunks/loadAgentsDir-BjsAQWqt.js +0 -1
  359. package/dist/chunks/loadPluginHooks-Dt3XQ-3N.js +0 -1
  360. package/dist/chunks/localSearch-CeP4ef0a.js +0 -1
  361. package/dist/chunks/localSearch-Cz8Ot7k2.js +0 -1
  362. package/dist/chunks/lockfile-D5-j7HOZ.js +0 -1
  363. package/dist/chunks/main-CkjTzYj1.js +0 -513
  364. package/dist/chunks/managedEnv-K9Si1UuL.js +0 -1
  365. package/dist/chunks/mcp-DMBoeQzm.js +0 -6
  366. package/dist/chunks/mcp-TMOPfLcW.js +0 -1
  367. package/dist/chunks/mcp-x5rgv-uv.js +0 -2
  368. package/dist/chunks/memory-DDUoR63T.js +0 -1
  369. package/dist/chunks/model-BydaMaPr.js +0 -1
  370. package/dist/chunks/model-CDnVaVDR.js +0 -1
  371. package/dist/chunks/model-CIvbC7rW.js +0 -1
  372. package/dist/chunks/modelOptions-ut0xePEe.js +0 -1
  373. package/dist/chunks/nativeInstaller-fgCMR_c0.js +0 -1
  374. package/dist/chunks/parseConnectUrl-BiyKR5-x.js +0 -1
  375. package/dist/chunks/parser-B2PlJg4C.js +0 -1
  376. package/dist/chunks/permissions-BT3lxYBM.js +0 -3
  377. package/dist/chunks/pidLock-d1VPd6CG.js +0 -3
  378. package/dist/chunks/plan-M9DG3AqN.js +0 -1
  379. package/dist/chunks/plugin-BiNHuq3h.js +0 -17
  380. package/dist/chunks/pluginAutoupdate-B5lel6s5.js +0 -1
  381. package/dist/chunks/pluginBlocklist-CNGmIlwU.js +0 -1
  382. package/dist/chunks/pluginCliCommands-WLOEhb2M.js +0 -1
  383. package/dist/chunks/pluginOperations-BFbty6WT.js +0 -2
  384. package/dist/chunks/pluginStartupCheck-Bcdxg484.js +0 -1
  385. package/dist/chunks/plugins-BMZ3aYKP.js +0 -4
  386. package/dist/chunks/poorMode-Djw0P9Gu.js +0 -1
  387. package/dist/chunks/print-DmoLcwVq.js +0 -26
  388. package/dist/chunks/processBashCommand-B-VqME9O.js +0 -1
  389. package/dist/chunks/processSlashCommand-D6zEooTy.js +0 -5
  390. package/dist/chunks/prompt-C3RRe4kW.js +0 -1
  391. package/dist/chunks/prompt-EtAanewG.js +0 -1
  392. package/dist/chunks/protocolHandler-B83fCYI4.js +0 -13
  393. package/dist/chunks/reconciler-BGav_ezX.js +0 -1
  394. package/dist/chunks/refresh-DumNiLvM.js +0 -1
  395. package/dist/chunks/registerProtocol-DduKPsn_.js +0 -36
  396. package/dist/chunks/rename-BPknfVGF.js +0 -1
  397. package/dist/chunks/resume-DGz04xDh.js +0 -2
  398. package/dist/chunks/ripgrep-BLQnqPnE.js +0 -1
  399. package/dist/chunks/sandbox-adapter-DUqeqkQD.js +0 -1
  400. package/dist/chunks/sandbox-toggle-D61gVqcT.js +0 -1
  401. package/dist/chunks/searchExtraTools-CgsV6kb1.js +0 -1
  402. package/dist/chunks/server-LdbAb0sV.js +0 -1
  403. package/dist/chunks/serverBanner-BdExKFHT.js +0 -1
  404. package/dist/chunks/serverLog-BFmvyJ93.js +0 -1
  405. package/dist/chunks/sessionFileAccessHooks-BJlrZaRD.js +0 -1
  406. package/dist/chunks/sessionManager-CPa049BO.js +0 -1
  407. package/dist/chunks/sessionObserver-BGYoLRGx.js +0 -1
  408. package/dist/chunks/sessionState-DSWN4tMV.js +0 -11
  409. package/dist/chunks/sessionStorage-zJ1esSCE.js +0 -1
  410. package/dist/chunks/sessionStoragePortable-BhkGMZWp.js +0 -3
  411. package/dist/chunks/settings-3ionQKNv.js +0 -1
  412. package/dist/chunks/settingsSync-dBqlrbcU.js +0 -1
  413. package/dist/chunks/setup-zf3v3ICe.js +0 -3
  414. package/dist/chunks/sinks-DppGvgz1.js +0 -1
  415. package/dist/chunks/sinks-mFsijQ_S.js +0 -2
  416. package/dist/chunks/skillChangeDetector-D-iq09Xs.js +0 -1
  417. package/dist/chunks/skills-BD-2ofXA.js +0 -1
  418. package/dist/chunks/src-P_wYS_NJ2.js +0 -53
  419. package/dist/chunks/startupProfiler-CUlV07MD.js +0 -1
  420. package/dist/chunks/status-CrmnCDIE.js +0 -1
  421. package/dist/chunks/statusNoticeHelpers-DakAVtQO.js +0 -1
  422. package/dist/chunks/switcher-Dm646gO5.js +0 -1
  423. package/dist/chunks/tasks-NpI1iEem.js +0 -1
  424. package/dist/chunks/teleport-Bs3kEipi.js +0 -1
  425. package/dist/chunks/theme-CEi3b_8f.js +0 -1
  426. package/dist/chunks/toolPool-DIT_uhtD.js +0 -1
  427. package/dist/chunks/trustedDevice-BokywSKL.js +0 -1
  428. package/dist/chunks/updateCCB-CzBxsuJe.js +0 -11
  429. package/dist/chunks/upstreamproxy-BuBFDFAD.js +0 -11
  430. package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHQfwlAl.js +0 -1
  431. package/dist/chunks/useMainLoopModel-BkyIIW9t.js +0 -1
  432. package/dist/chunks/useManagePlugins-BWROoGDs.js +0 -1
  433. package/dist/chunks/useMergedTools-CHxnwR7R.js +0 -1
  434. package/dist/chunks/useSettingsErrors-CPVQbsqq.js +0 -1
  435. package/dist/chunks/util-BfqXOA-P.js +0 -1
  436. package/dist/chunks/windowsPaths-B8p9tFRF.js +0 -1
  437. package/dist/chunks/workerRegistry-Cfo7bKlm.js +0 -6
  438. package/dist/chunks/worktree-D0k_pCEz.js +0 -1
  439. package/dist/chunks/xdg-DcF9ejUM.js +0 -1
@@ -0,0 +1 @@
1
+ import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-JrGMJN05.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-DTB0Qzd5.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-C-stDP9C.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{Cr as t,Lr as n}from"./loadAgentsDir-BXtV2jiO.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-CDnVaVDR.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=n(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.12`,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(),t(),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-JrGMJN05.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-aUygByiZ.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-CmDF8O9G.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.14`,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{Ba as r,Np as i,Pp as a,Ra as o,Ta as s,fb as c,hC as l,mC as u,mb as d}from"./loadAgentsDir-BXtV2jiO.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-CDnVaVDR.js";import{fn as b,hn as x}from"./prompt-CRc2QEZ5.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-JrGMJN05.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-CmDF8O9G.js";import{dn as b,mn as x}from"./prompt-DnPppVz8.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:o,toolUseContext:l}=t,d=c(l.readFileState);d.delete(e.path);let f={...l,readFileState:d},m=``;try{let t=(await u.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:[s({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((()=>{i(),x(),l(),f(),d(),r(),_(),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`&&!o(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),_()}));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};