@readmagic/workmate 0.0.15 → 0.0.16

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 (273) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-DcVnvL_u.js → AddWorkspaceDirectory-DAtfMH4o.js} +1 -1
  2. package/dist/chunks/{AgentsMdExternalIncludesDialog-D6DopTxc.js → AgentsMdExternalIncludesDialog-BTYgjY5c.js} +1 -1
  3. package/dist/chunks/AgentsMdExternalIncludesDialog-C6VH6JG6.js +1 -0
  4. package/dist/chunks/{App-BoI5EJry.js → App-HF0bvxi_.js} +1 -1
  5. package/dist/chunks/ApproveApiKey-B7mKgSqY.js +1 -0
  6. package/dist/chunks/{ApproveApiKey-BjlQDcMx.js → ApproveApiKey-BBFLw2B7.js} +1 -1
  7. package/dist/chunks/{BackgroundTasksDialog-ClSMkcGp.js → BackgroundTasksDialog-Coc0ecUd.js} +1 -1
  8. package/dist/chunks/{BypassPermissionsModeDialog-KCZv-PXl.js → BypassPermissionsModeDialog--Gx9ARd4.js} +1 -1
  9. package/dist/chunks/{DiffDialog-BGBkuVIn.js → DiffDialog-tlINuFS1.js} +1 -1
  10. package/dist/chunks/Doctor-BJf49FWX.js +1 -0
  11. package/dist/chunks/{Doctor-CI04juFO.js → Doctor-Wh7z6CnF.js} +2 -2
  12. package/dist/chunks/ExitFlow-B1zHTqQt.js +2 -0
  13. package/dist/chunks/{Grove-B-M3DWD3.js → Grove-1Kf7xxIV.js} +1 -1
  14. package/dist/chunks/{HybridTransport-n5jji6SI.js → HybridTransport-DWqWUZCH.js} +1 -1
  15. package/dist/chunks/{InvalidConfigDialog-By-j6fHE.js → InvalidConfigDialog-OZPFQSnC.js} +1 -1
  16. package/dist/chunks/{InvalidSettingsDialog-C_reeMzL.js → InvalidSettingsDialog-BNCm-eyC.js} +1 -1
  17. package/dist/chunks/MCPConnectionManager-7H84oi5n.js +1 -0
  18. package/dist/chunks/{MCPToolListView-jw0tITfc.js → MCPToolListView-CVgtg3Iq.js} +1 -1
  19. package/dist/chunks/{McpParsingWarnings-BeZ3Bn8N.js → McpParsingWarnings-CN8f449l.js} +1 -1
  20. package/dist/chunks/{MessageSelector-Ci6N-gCw.js → MessageSelector-B9j6zZ5w.js} +1 -1
  21. package/dist/chunks/Messages-yz1m39eI.js +10 -0
  22. package/dist/chunks/{Onboarding-DDkVEq-G.js → Onboarding-bFbgae8m.js} +1 -1
  23. package/dist/chunks/{PromptInputFooterSuggestions-BlhZuQ5F.js → PromptInputFooterSuggestions-CE_yVun1.js} +1 -1
  24. package/dist/chunks/PromptInputHelpMenu-TPWuGwAy.js +1 -0
  25. package/dist/chunks/QueryEngine-CRobcENE.js +1 -0
  26. package/dist/chunks/REPL-BhCC0JP6.js +1 -0
  27. package/dist/chunks/REPL-C33mMf_q.js +128 -0
  28. package/dist/chunks/{RemoteSessionManager-mWVrdNfS.js → RemoteSessionManager-BjVD918g.js} +2 -2
  29. package/dist/chunks/{ResumeConversation-BzTn_1jS.js → ResumeConversation-CXd8d8po.js} +1 -1
  30. package/dist/chunks/{SSETransport-D86IVNn1.js → SSETransport-BSilVN9e.js} +1 -1
  31. package/dist/chunks/SearchExtraToolsTool-DoiCI2uJ.js +1 -0
  32. package/dist/chunks/Settings-ClcLl0C1.js +2 -0
  33. package/dist/chunks/{TeleportProgress-CW8mLRy2.js → TeleportProgress-DonJUoPc.js} +1 -1
  34. package/dist/chunks/{TeleportRepoMismatchDialog-DZD32R-l.js → TeleportRepoMismatchDialog-ByOuSVVz.js} +1 -1
  35. package/dist/chunks/{TeleportResumeWrapper-BhuUE1aq.js → TeleportResumeWrapper-BBtELwF1.js} +1 -1
  36. package/dist/chunks/{ThemePicker-ByQZgIbH.js → ThemePicker-1QQJFOEv.js} +1 -1
  37. package/dist/chunks/{TrustDialog-BzwibD_8.js → TrustDialog-DwJ9L_u4.js} +1 -1
  38. package/dist/chunks/{add-dir-BQ-ljgk6.js → add-dir-DOKdPFT2.js} +1 -1
  39. package/dist/chunks/{agentDisplay-tRprY4gB.js → agentDisplay-TX1bh-lX.js} +1 -1
  40. package/dist/chunks/{agents-Dq4BCf0H.js → agents-C58tRxpi.js} +1 -1
  41. package/dist/chunks/{agents-DMyQUXwl.js → agents-CbRjX9Pj.js} +6 -6
  42. package/dist/chunks/{allErrors-CQWZ6BPw.js → allErrors-DRiW7i6Y.js} +1 -1
  43. package/dist/chunks/api-C8uOHD-v.js +1 -0
  44. package/dist/chunks/{api-ClAyS7cQ.js → api-CazVavfB.js} +1 -1
  45. package/dist/chunks/auth-BL238vgr.js +1 -0
  46. package/dist/chunks/auth-CfrCl9BZ.js +10 -0
  47. package/dist/chunks/auth-D3GkU6d7.js +1 -0
  48. package/dist/chunks/{backgroundHousekeeping-rzQFJiND.js → backgroundHousekeeping-CPLlaWcV.js} +2 -2
  49. package/dist/chunks/backgroundHousekeeping-Du2tN2WE.js +1 -0
  50. package/dist/chunks/{branch-BWbCrXBJ.js → branch-pAa0oBaj.js} +1 -1
  51. package/dist/chunks/{bridgeConfig-CPHAyzdg.js → bridgeConfig-DnFfCpGd.js} +1 -1
  52. package/dist/chunks/bridgeConfig-joBqeK0j.js +1 -0
  53. package/dist/chunks/{bridgeMessaging-vR7uQXB9.js → bridgeMessaging-B_hnuUHb.js} +1 -1
  54. package/dist/chunks/{bridgeStatusUtil-CHTx7XwJ.js → bridgeStatusUtil-Dwz4YHNA.js} +1 -1
  55. package/dist/chunks/{btw-IGcgP-Qq.js → btw-CkVkYeRr.js} +1 -1
  56. package/dist/chunks/{caches-FP8mGB4k.js → caches-BLQUkrIG.js} +1 -1
  57. package/dist/chunks/caches-DsFl83sh.js +1 -0
  58. package/dist/chunks/{ccrClient--8aPutWE.js → ccrClient-AfdUbWzY.js} +1 -1
  59. package/dist/chunks/{clear-CF-FZwpe.js → clear-Ac3qYi_-.js} +1 -1
  60. package/dist/chunks/client-BX0r6K3I.js +1 -0
  61. package/dist/chunks/client-Bb2eZnuq.js +1 -0
  62. package/dist/chunks/client-DNEVh6Wu.js +1 -0
  63. package/dist/chunks/client-Pap_HyZZ.js +1 -0
  64. package/dist/chunks/client-zhozU2ws.js +1 -0
  65. package/dist/chunks/commands-BKLsl6gK.js +1 -0
  66. package/dist/chunks/{compact-BrJGpEFZ.js → compact-CXuDr5qM.js} +1 -1
  67. package/dist/chunks/config-DrY1SvhQ.js +1 -0
  68. package/dist/chunks/{context-DADnwl4t.js → context-C2plOqH4.js} +1 -1
  69. package/dist/chunks/context-noninteractive-DpVlZ-wP.js +1 -0
  70. package/dist/chunks/{context-noninteractive-kACWzgS1.js → context-noninteractive-fVQtwEkw.js} +1 -1
  71. package/dist/chunks/conversation-C0yysXds.js +1 -0
  72. package/dist/chunks/{conversation-C8w1DtXk.js → conversation-DQpS6nvg.js} +1 -1
  73. package/dist/chunks/{createSSHSession-B71Plec6.js → createSSHSession-CfyFuJMH.js} +1 -1
  74. package/dist/chunks/createSession-CmBawnsh.js +1 -0
  75. package/dist/chunks/{createSession-BJeDECzt.js → createSession-qk9C66lK.js} +1 -1
  76. package/dist/chunks/{crossProjectResume-B1I6YzXr.js → crossProjectResume-DY1ZBO5P.js} +1 -1
  77. package/dist/chunks/{datadog-C9uqPA6N.js → datadog-Cr0VKbct.js} +1 -1
  78. package/dist/chunks/{diff-CzChvQyK.js → diff-BNjcCXDr.js} +1 -1
  79. package/dist/chunks/doctor-BkCtT7H1.js +1 -0
  80. package/dist/chunks/{entry-BoL8sy1Y.js → entry-o9IZPS4g.js} +2 -2
  81. package/dist/chunks/{esm-DtcV71xh.js → esm-BI3tFLyy.js} +1 -1
  82. package/dist/chunks/exit-Dlyj7nY8.js +1 -0
  83. package/dist/chunks/extraUsage-5Ueiyw6W.js +1 -0
  84. package/dist/chunks/extractMemories-DnTBWFOW.js +1 -0
  85. package/dist/chunks/fast-B3fRp1xO.js +1 -0
  86. package/dist/chunks/fast-ClOKONyD.js +1 -0
  87. package/dist/chunks/fetchModelList-B8KG79EK.js +1 -0
  88. package/dist/chunks/fetchModelList-gh_jFYai.js +1 -0
  89. package/dist/chunks/{fileSuggestions-DU7gmksK.js → fileSuggestions-DK7W8kLF.js} +1 -1
  90. package/dist/chunks/{firstPartyEventLogger-7pAyUdbp.js → firstPartyEventLogger-BMnXb9cv.js} +2 -2
  91. package/dist/chunks/firstPartyEventLogger-YYOb8aIo.js +1 -0
  92. package/dist/chunks/{flushGate-4DfYr-Ru.js → flushGate-n4kK6H1U.js} +1 -1
  93. package/dist/chunks/{gemini-Cll4fVQn.js → gemini-C8-QHnsC.js} +1 -1
  94. package/dist/chunks/{generateSessionName-BgGMwpps.js → generateSessionName-C8DnAVaa.js} +1 -1
  95. package/dist/chunks/{goal-D4E2WQVn.js → goal-DMmzlZOF.js} +1 -1
  96. package/dist/chunks/grok-LLjpAwP_.js +1 -0
  97. package/dist/chunks/{grove-Bck1zFaD.js → grove-CQBCzeHf.js} +1 -1
  98. package/dist/chunks/{help-DJp61Job.js → help-JH7WzjZP.js} +1 -1
  99. package/dist/chunks/hooks-COhKt_pF.js +1 -0
  100. package/dist/chunks/{hooks-CJ17byYD.js → hooks-DD2jpRfx.js} +1 -1
  101. package/dist/chunks/initReplBridge-BDaN0hpY.js +1 -0
  102. package/dist/chunks/{install-Dd5fw0cA.js → install-CD4or0vj.js} +1 -1
  103. package/dist/chunks/{instrumentation-jsPu6qqs.js → instrumentation-n-otwpYf.js} +4 -4
  104. package/dist/chunks/{job-BHhkQbvu.js → job-B-pEWgXI.js} +1 -1
  105. package/dist/chunks/keybindings-qed9q9tx.js +1 -0
  106. package/dist/chunks/{launchLocalMemory-DsaijVcO.js → launchLocalMemory-cBovdGMT.js} +1 -1
  107. package/dist/chunks/{launchOnboarding-DHOylaqn.js → launchOnboarding-B__wtt7p.js} +1 -1
  108. package/dist/chunks/{loadAgentsDir-CwEfQDOw.js → loadAgentsDir-PPiD2Mfq.js} +569 -569
  109. package/dist/chunks/loadAgentsDir-qvqrTVuS.js +1 -0
  110. package/dist/chunks/{loadPluginHooks-C-Yk5KlI.js → loadPluginHooks-DUCuU3_8.js} +1 -1
  111. package/dist/chunks/localSearch-CDk_stXJ.js +1 -0
  112. package/dist/chunks/{localSearch-BEnlgSB7.js → localSearch-Cvs9WfoX.js} +1 -1
  113. package/dist/chunks/{logoV2Utils-DG9GwFjl.js → logoV2Utils-Bkj74dtY.js} +1 -1
  114. package/dist/chunks/{magicDocs-qGHR3Cqh.js → magicDocs-3U6peChg.js} +2 -2
  115. package/dist/chunks/{main-CBVQ8bRm.js → main-DkjxhBIC.js} +26 -26
  116. package/dist/chunks/{managedEnv-3MbOWrVs.js → managedEnv-BUrzwaD3.js} +1 -1
  117. package/dist/chunks/managedEnv-XOUMOtEF.js +1 -0
  118. package/dist/chunks/{mappers-CdY45PDA.js → mappers-ZGgwqDOK.js} +1 -1
  119. package/dist/chunks/{mcp-DvY_FibT.js → mcp-COZxwgJZ.js} +3 -3
  120. package/dist/chunks/{mcp-DI8pGrqi.js → mcp-CdyNeNzh.js} +1 -1
  121. package/dist/chunks/{mcp-BA8XQ6h1.js → mcp-CysOyBIn.js} +1 -1
  122. package/dist/chunks/{memory-C2U7CCmM.js → memory-B5h2TTSS.js} +1 -1
  123. package/dist/chunks/{mode-ByV6NqmB.js → mode-D3yY1fdK.js} +1 -1
  124. package/dist/chunks/model-Bz4JHoU0.js +1 -0
  125. package/dist/chunks/model-g6XBcNAG.js +1 -0
  126. package/dist/chunks/{model-CeG-iOKF.js → model-sviY1inu.js} +1 -1
  127. package/dist/chunks/modelOptions-DYQqTLPi.js +1 -0
  128. package/dist/chunks/{nativeInstaller-CXFD8LDV.js → nativeInstaller-N1xiUpCP.js} +1 -1
  129. package/dist/chunks/{omit-B65XeX8r.js → omit-BOILu8jW.js} +1 -1
  130. package/dist/chunks/{onChangeAppState-EtUxsgYz.js → onChangeAppState-COFFZAXb.js} +1 -1
  131. package/dist/chunks/{openai-Dx5mvMjY.js → openai-BHM5kEFo.js} +2 -2
  132. package/dist/chunks/openai-CR3CcjCE.js +17 -0
  133. package/dist/chunks/{partition-8vZDG3rY.js → partition-C1SFDk_L.js} +1 -1
  134. package/dist/chunks/{permissions-CJUBfBTr.js → permissions-uy_NFbfy.js} +2 -2
  135. package/dist/chunks/{pidLock-tjm2n1Nd.js → pidLock-DuMVSwnN.js} +2 -2
  136. package/dist/chunks/{plan-eFur8bdH.js → plan-DF9YSB5M.js} +1 -1
  137. package/dist/chunks/{plugin-fYLRLdOY.js → plugin-GRPzqgTr.js} +1 -1
  138. package/dist/chunks/{pluginAutoupdate-B4w7SSYc.js → pluginAutoupdate-AMD-FvKB.js} +1 -1
  139. package/dist/chunks/{pluginBlocklist-CMwb7gmY.js → pluginBlocklist-DNxkAxH6.js} +1 -1
  140. package/dist/chunks/{pluginCliCommands-3YCj7Y3Q.js → pluginCliCommands-BFoR1ZXx.js} +1 -1
  141. package/dist/chunks/{pluginFlagging-srvq9H7p.js → pluginFlagging-CW2IZWSI.js} +1 -1
  142. package/dist/chunks/{pluginOperations-C7BCR7pw.js → pluginOperations-DlWE0idP.js} +1 -1
  143. package/dist/chunks/{pluginStartupCheck-BLc0U7W7.js → pluginStartupCheck-AQGV0DCS.js} +1 -1
  144. package/dist/chunks/pluginStartupCheck-DWpquqxx.js +1 -0
  145. package/dist/chunks/{plugins-CPtmmDDi.js → plugins-CwUSTE4E.js} +1 -1
  146. package/dist/chunks/print-9wR_ijrL.js +14 -0
  147. package/dist/chunks/{processBashCommand-C9-FonuX.js → processBashCommand-Deqwq1IE.js} +1 -1
  148. package/dist/chunks/{processSlashCommand-Bi8_1MRC.js → processSlashCommand-U9LJ4Keq.js} +2 -2
  149. package/dist/chunks/prompt-BBeDQXIs.js +1 -0
  150. package/dist/chunks/{prompt-Bm2EEG4F.js → prompt-CQmEvnKN.js} +1 -1
  151. package/dist/chunks/prompt-CXhdqgB7.js +1 -0
  152. package/dist/chunks/{promptEditor-DQ9fpdQD.js → promptEditor-Bf72KNF-.js} +1 -1
  153. package/dist/chunks/{reconciler-DgQ4y1Vn.js → reconciler-Css9bs07.js} +1 -1
  154. package/dist/chunks/{refresh-CayVRWUY.js → refresh-B87z39Zs.js} +1 -1
  155. package/dist/chunks/{reload-plugins-6xcH3dLg.js → reload-plugins-BpmUIkfm.js} +1 -1
  156. package/dist/chunks/{remoteBridgeCore-BnZYGaMH.js → remoteBridgeCore-BCLIIygk.js} +1 -1
  157. package/dist/chunks/{remoteManagedSettings-CfFmrRze.js → remoteManagedSettings-Ahgn2e80.js} +1 -1
  158. package/dist/chunks/{rename-mDtCTbnD.js → rename-BUt3PliQ.js} +1 -1
  159. package/dist/chunks/{resume-DRvz4QFs.js → resume-uZI9p_FE.js} +1 -1
  160. package/dist/chunks/{runtimeObserver-Ba6SM-sI.js → runtimeObserver-AKOWfdZ_.js} +1 -1
  161. package/dist/chunks/{runtimeObserver-Dt5sGJVb.js → runtimeObserver-By59MZKJ.js} +2 -2
  162. package/dist/chunks/sandbox-adapter-D4Uho1vF.js +1 -0
  163. package/dist/chunks/{sandbox-toggle-DKcw3SbO.js → sandbox-toggle-BdvylnWS.js} +1 -1
  164. package/dist/chunks/searchExtraTools-BHMkqGBf.js +1 -0
  165. package/dist/chunks/{session-COVyD8UU.js → session-Tm2-rzBY.js} +1 -1
  166. package/dist/chunks/sessionFileAccessHooks-BaWZ8sqn.js +1 -0
  167. package/dist/chunks/{sessionObserver-iAgSetlC.js → sessionObserver-BAr8AWeL.js} +1 -1
  168. package/dist/chunks/sessionObserver-KB1UL_n2.js +1 -0
  169. package/dist/chunks/{sessionState-zhvcDpb2.js → sessionState-BTFowSpR.js} +2 -2
  170. package/dist/chunks/sessionStorage-D6nlmaI-.js +1 -0
  171. package/dist/chunks/{sessionTitle-QPRly1tZ.js → sessionTitle-SCqmSDYM.js} +1 -1
  172. package/dist/chunks/{sessionTracing-C4uqAdud.js → sessionTracing-CvY4udYI.js} +1 -1
  173. package/dist/chunks/{settingsSync-BGo6dHJo.js → settingsSync-nxeaGM2-.js} +1 -1
  174. package/dist/chunks/setup-D4FPeBnM.js +3 -0
  175. package/dist/chunks/{shadowedRuleDetection-CzRAzcC1.js → shadowedRuleDetection-Co8m1q1D.js} +1 -1
  176. package/dist/chunks/{sideQuestion-oIYrx5ar.js → sideQuestion-4TJYn-Az.js} +1 -1
  177. package/dist/chunks/{sinks-Bje3hCkR.js → sinks-Bb2i50kz.js} +1 -1
  178. package/dist/chunks/sinks-D1opmy_x.js +1 -0
  179. package/dist/chunks/skillChangeDetector-BU9AFG0i.js +1 -0
  180. package/dist/chunks/{skillGapStore-CJjt3IW7.js → skillGapStore-BcVP3ZUb.js} +2 -2
  181. package/dist/chunks/{skillLifecycle-BsgH84vl.js → skillLifecycle-CG2XmS8f.js} +2 -2
  182. package/dist/chunks/{skillSearchPanel-CneXymsb.js → skillSearchPanel-DOJmUBXB.js} +4 -4
  183. package/dist/chunks/{skills-DZRBy7vT.js → skills-DIgCWvzX.js} +1 -1
  184. package/dist/chunks/{status-BP_R8051.js → status-Ber2xOXc.js} +2 -2
  185. package/dist/chunks/status-CVcXPoOZ.js +1 -0
  186. package/dist/chunks/{statusNoticeHelpers-ODrnrLAZ.js → statusNoticeHelpers-CYkrPUpN.js} +1 -1
  187. package/dist/chunks/{switcher-BkGOeIzI.js → switcher-BIP3rbQn.js} +1 -1
  188. package/dist/chunks/switcher-zbG6T9dN.js +1 -0
  189. package/dist/chunks/syncCache-AMQMQ_HR.js +1 -0
  190. package/dist/chunks/{tasks-CIUuwrX4.js → tasks-BKERIO4G.js} +1 -1
  191. package/dist/chunks/{teleport-IzyDplC7.js → teleport-DOXbf2sQ.js} +1 -1
  192. package/dist/chunks/{templateJobs-De57J461.js → templateJobs-dg2F45ZJ.js} +1 -1
  193. package/dist/chunks/{theme-Nwii7354.js → theme-BGxytGjA.js} +1 -1
  194. package/dist/chunks/{toolEventObserver-Cq-uBb0-.js → toolEventObserver-CJhg_p3P.js} +1 -1
  195. package/dist/chunks/toolPool-C0d7Bznl.js +1 -0
  196. package/dist/chunks/{trustedDevice-DWZxDUxS.js → trustedDevice-BtXHXu-T.js} +1 -1
  197. package/dist/chunks/trustedDevice-hw3iq84W.js +1 -0
  198. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-D48aDPG9.js → useExitOnCtrlCDWithKeybindings-C9orgrub.js} +1 -1
  199. package/dist/chunks/useMainLoopModel-BigVcn2T.js +1 -0
  200. package/dist/chunks/{useManagePlugins-EqoQELMT.js → useManagePlugins-Bt-DYAnX.js} +1 -1
  201. package/dist/chunks/{useMergedTools-BJ4L9QSK.js → useMergedTools-CZeQBdky.js} +1 -1
  202. package/dist/chunks/{useSearchInput-DkVER3cm.js → useSearchInput-DdKrVHJS.js} +1 -1
  203. package/dist/chunks/{useSettingsErrors-D3MlQ1GF.js → useSettingsErrors-BR9Wws7D.js} +1 -1
  204. package/dist/chunks/{userAgent-aoe_xVAb.js → userAgent-DUt0q-Vl.js} +1 -1
  205. package/dist/chunks/{util-g-5UX5gH.js → util-h-Hmdke_.js} +1 -1
  206. package/dist/chunks/{validatePlugin-CSE8zjZn.js → validatePlugin-mWVKNtJa.js} +1 -1
  207. package/dist/chunks/{workerRegistry-DGwy0YHB.js → workerRegistry-dlfqtySm.js} +2 -2
  208. package/dist/chunks/worktree-IxcFe7g-.js +1 -0
  209. package/dist/cli.js +1 -1
  210. package/package.json +1 -1
  211. package/dist/chunks/AgentsMdExternalIncludesDialog-0Qdg3Rh7.js +0 -1
  212. package/dist/chunks/ApproveApiKey-PWFcscjY.js +0 -1
  213. package/dist/chunks/Doctor-DCrqcW68.js +0 -1
  214. package/dist/chunks/ExitFlow-qrCDVA9i.js +0 -2
  215. package/dist/chunks/MCPConnectionManager-BNG7iSlw.js +0 -1
  216. package/dist/chunks/Messages-D6CRTH2m.js +0 -10
  217. package/dist/chunks/PromptInputHelpMenu-kKyPIMau.js +0 -1
  218. package/dist/chunks/QueryEngine-DXpS0Ytq.js +0 -1
  219. package/dist/chunks/REPL-D1BCm7cR.js +0 -128
  220. package/dist/chunks/REPL-JQgCrSEv.js +0 -1
  221. package/dist/chunks/SearchExtraToolsTool-BXIja1MR.js +0 -1
  222. package/dist/chunks/Settings-D_i8HzEW.js +0 -2
  223. package/dist/chunks/api-CpD5jeKe.js +0 -1
  224. package/dist/chunks/auth-CWAvPfX7.js +0 -10
  225. package/dist/chunks/auth-DG5bkWDc.js +0 -1
  226. package/dist/chunks/auth-DuHfQBuH.js +0 -1
  227. package/dist/chunks/backgroundHousekeeping-kf_v7Vfr.js +0 -1
  228. package/dist/chunks/bridgeConfig-CABsoOum.js +0 -1
  229. package/dist/chunks/caches-Dj1YhqrG.js +0 -1
  230. package/dist/chunks/client-B7WkO81L.js +0 -17
  231. package/dist/chunks/client-BCzhAEd0.js +0 -1
  232. package/dist/chunks/client-BU7upHOb.js +0 -1
  233. package/dist/chunks/commands-Cr1p7OPH.js +0 -1
  234. package/dist/chunks/config-BohF3_IV.js +0 -1
  235. package/dist/chunks/context-noninteractive-BAbzwNxu.js +0 -1
  236. package/dist/chunks/conversation-Ds7zRD0x.js +0 -1
  237. package/dist/chunks/createSession-Bozo4Bu8.js +0 -1
  238. package/dist/chunks/doctor-DdvdGkNX.js +0 -1
  239. package/dist/chunks/exit-Af27f74w.js +0 -1
  240. package/dist/chunks/extraUsage-DsFwXMAj.js +0 -1
  241. package/dist/chunks/extractMemories-B1KbTMY0.js +0 -1
  242. package/dist/chunks/fast-BGU8p2uY.js +0 -1
  243. package/dist/chunks/fast-CuUjONVV.js +0 -1
  244. package/dist/chunks/firstPartyEventLogger-sMeCTEUW.js +0 -1
  245. package/dist/chunks/grok-HF1PHxXb.js +0 -1
  246. package/dist/chunks/hooks-CjR3Eq0Z.js +0 -1
  247. package/dist/chunks/initReplBridge-D09JEKHt.js +0 -1
  248. package/dist/chunks/keybindings-Ch5lzNB8.js +0 -1
  249. package/dist/chunks/loadAgentsDir-8FioUEwX.js +0 -1
  250. package/dist/chunks/localSearch-LcgRjjl3.js +0 -1
  251. package/dist/chunks/managedEnv-B4YV3A_y.js +0 -1
  252. package/dist/chunks/model-C73ETGu9.js +0 -1
  253. package/dist/chunks/model-CVG_RRTy.js +0 -1
  254. package/dist/chunks/modelOptions-A5jrCUBp.js +0 -1
  255. package/dist/chunks/pluginStartupCheck-nzVDPI1k.js +0 -1
  256. package/dist/chunks/print-BCud0ukQ.js +0 -14
  257. package/dist/chunks/prompt-CX_v9F3s.js +0 -1
  258. package/dist/chunks/prompt-V0WQJrkO2.js +0 -1
  259. package/dist/chunks/sandbox-adapter-Cmrd6tBj.js +0 -1
  260. package/dist/chunks/searchExtraTools-DIgC0CFB.js +0 -1
  261. package/dist/chunks/sessionFileAccessHooks-yAPDTrbm.js +0 -1
  262. package/dist/chunks/sessionObserver-BizdPx8P.js +0 -1
  263. package/dist/chunks/sessionStorage-LMY409Ji.js +0 -1
  264. package/dist/chunks/setup-Bjw5VS6x.js +0 -3
  265. package/dist/chunks/sinks-FaljTZ-c.js +0 -1
  266. package/dist/chunks/skillChangeDetector-v6mAYzXX.js +0 -1
  267. package/dist/chunks/status-CZYD3NGb.js +0 -1
  268. package/dist/chunks/switcher-DwKN9daN.js +0 -1
  269. package/dist/chunks/syncCache-CpmpvjfC.js +0 -1
  270. package/dist/chunks/toolPool-BBU4ll_p.js +0 -1
  271. package/dist/chunks/trustedDevice-BKzkA7fq.js +0 -1
  272. package/dist/chunks/useMainLoopModel-89eUU13X.js +0 -1
  273. package/dist/chunks/worktree-jjuORs7p.js +0 -1
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./loadAgentsDir-PPiD2Mfq.js";e();export{t as clearAgentDefinitionsCache};
@@ -1 +1 @@
1
- import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-CwEfQDOw.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
1
+ import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-PPiD2Mfq.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
@@ -0,0 +1 @@
1
+ import{a as e,o as t,s as n,t as r}from"./localSearch-Cvs9WfoX.js";t();export{r as clearSkillIndexCache,e as getSkillIndex,n as searchSkills};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-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};
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-BKLsl6gK.js`),r=await n(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,c=e.allowedTools?.join(` `)??``,l=o(t),f=d(t),p=[...l,...f.map(a).filter(e=>!h.has(e))],m=o(n),g=o(r??``),v=o(c),y=[...new Set([...p,...m,...g,...v])],b=s([{tokens:p,weight:_.name},{tokens:g,weight:_.whenToUse},{tokens:m,weight:_.description},{tokens:v,weight:_.allowedTools}]);i.push({name:t,normalizedName:u(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:y,tfVector:b})}let l=c(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(l.get(t)??0));return x=i,S=l,C=e,t(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function m(e,t,n=5){if(t.length===0||!e?.trim())return[];let i=o(e);if(i.length===0)return[];let a=new Map,s=new Map;for(let e of i)s.set(e,(s.get(e)??0)+1);let u=1;for(let e of s.values())e>u&&(u=e);for(let[e,t]of s)a.set(e,t/u);let d=x===t&&S?S:c(t),f=new Map;for(let[e,t]of a)f.set(e,t*(d.get(e)??0));let p=i.filter(e=>r(e[0]??``)),m=i.filter(e=>!r(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=l(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<b&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=y&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=v&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var h,g,_,v,y,b,x,S,C,w=e((()=>{n(),h=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),g=/[\u4e00-\u9fff\u3400-\u4dbf]/,_={name:3,whenToUse:2,description:1,allowedTools:.3},v=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),y=4,b=2,x=null,S=null,C=null}));export{p as a,i as c,l as i,o as l,c as n,w as o,s as r,m as s,f as t};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{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
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-PPiD2Mfq.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{Ot as v,Pt as y,zt as b}from"./model-sviY1inu.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.16`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:p(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:b()?v():`API Usage Billing`,agentName:d().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{a(),i(),y(),c(),f(),g(),n(),u(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$S as r,$y as i,Ap as a,Fa as o,La as s,Sa as c,Zy as l,eC as u,kp as d}from"./loadAgentsDir-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.
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-PPiD2Mfq.js";import{R as f,V as p,f as m,u as h}from"./debug-BQj6h99Q.js";import{Jr as g,Yr as _,_ as v,u as y}from"./model-sviY1inu.js";import{dn as b,mn as x}from"./prompt-CQmEvnKN.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(),_()}));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};
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),v()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:i,userContext:o,systemContext:s,toolUseContext:u}=t,d=l(u.readFileState);d.delete(e.path);let f={...u,readFileState:d},m=``;try{let t=(await r.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of a({agentDefinition:A(),promptMessages:[c({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:i,userContext:o,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{d(),x(),u(),f(),i(),s(),g(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,_(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!o(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};