@readmagic/workmate 0.0.15 → 0.0.17

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 (274) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-DcVnvL_u.js → AddWorkspaceDirectory-YAhnVwyN.js} +1 -1
  2. package/dist/chunks/AgentsMdExternalIncludesDialog--D4BeNAN.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-D6DopTxc.js → AgentsMdExternalIncludesDialog-Ba4GYFl3.js} +1 -1
  4. package/dist/chunks/{App-BoI5EJry.js → App-mri25OrC.js} +1 -1
  5. package/dist/chunks/{ApproveApiKey-BjlQDcMx.js → ApproveApiKey-DCw6d7dm.js} +1 -1
  6. package/dist/chunks/ApproveApiKey-lv4Sg0RR.js +1 -0
  7. package/dist/chunks/{BackgroundTasksDialog-ClSMkcGp.js → BackgroundTasksDialog-CZND8e_Z.js} +1 -1
  8. package/dist/chunks/{BypassPermissionsModeDialog-KCZv-PXl.js → BypassPermissionsModeDialog-B5QBJTB4.js} +1 -1
  9. package/dist/chunks/{DiffDialog-BGBkuVIn.js → DiffDialog-Bd-DcTsK.js} +1 -1
  10. package/dist/chunks/{Doctor-CI04juFO.js → Doctor-C9t7udHN.js} +2 -2
  11. package/dist/chunks/Doctor-V-JLC4e3.js +1 -0
  12. package/dist/chunks/ExitFlow-CShdrKmr.js +2 -0
  13. package/dist/chunks/{Grove-B-M3DWD3.js → Grove-CClEZT2e.js} +1 -1
  14. package/dist/chunks/{HybridTransport-n5jji6SI.js → HybridTransport-DyEuslQB.js} +1 -1
  15. package/dist/chunks/{InvalidConfigDialog-By-j6fHE.js → InvalidConfigDialog-Wyrk_cXR.js} +1 -1
  16. package/dist/chunks/{InvalidSettingsDialog-C_reeMzL.js → InvalidSettingsDialog-Cr9fmSyh.js} +1 -1
  17. package/dist/chunks/MCPConnectionManager-BnUw0nYN.js +1 -0
  18. package/dist/chunks/{MCPToolListView-jw0tITfc.js → MCPToolListView-CY2EezWF.js} +1 -1
  19. package/dist/chunks/{McpParsingWarnings-BeZ3Bn8N.js → McpParsingWarnings-BF4np2Y3.js} +1 -1
  20. package/dist/chunks/{MessageSelector-Ci6N-gCw.js → MessageSelector-Dtt2Sf65.js} +1 -1
  21. package/dist/chunks/Messages-D5Uuapmf.js +10 -0
  22. package/dist/chunks/{Onboarding-DDkVEq-G.js → Onboarding-BAJXV7Ay.js} +1 -1
  23. package/dist/chunks/{PromptInputFooterSuggestions-BlhZuQ5F.js → PromptInputFooterSuggestions-Cm4WN3qd.js} +1 -1
  24. package/dist/chunks/PromptInputHelpMenu-ESj8sOpK.js +1 -0
  25. package/dist/chunks/QueryEngine-B79JLwG4.js +1 -0
  26. package/dist/chunks/REPL-B7evbhvN.js +1 -0
  27. package/dist/chunks/REPL-cAXdORs2.js +128 -0
  28. package/dist/chunks/{RemoteSessionManager-mWVrdNfS.js → RemoteSessionManager-C5pAD0Lh.js} +2 -2
  29. package/dist/chunks/{ResumeConversation-BzTn_1jS.js → ResumeConversation-NSVT3gn7.js} +1 -1
  30. package/dist/chunks/{SSETransport-D86IVNn1.js → SSETransport-CDGMGrxN.js} +1 -1
  31. package/dist/chunks/SearchExtraToolsTool-CddjJcAH.js +1 -0
  32. package/dist/chunks/Settings-_b5Yxt_9.js +2 -0
  33. package/dist/chunks/{TeleportProgress-CW8mLRy2.js → TeleportProgress-8cS6aHVO.js} +1 -1
  34. package/dist/chunks/{TeleportRepoMismatchDialog-DZD32R-l.js → TeleportRepoMismatchDialog-B0epkMgp.js} +1 -1
  35. package/dist/chunks/{TeleportResumeWrapper-BhuUE1aq.js → TeleportResumeWrapper-Bb14JeEk.js} +1 -1
  36. package/dist/chunks/{ThemePicker-ByQZgIbH.js → ThemePicker-CnX8faYA.js} +1 -1
  37. package/dist/chunks/{TrustDialog-BzwibD_8.js → TrustDialog-6wJF3W6K.js} +1 -1
  38. package/dist/chunks/{add-dir-BQ-ljgk6.js → add-dir-LLAv-rGS.js} +1 -1
  39. package/dist/chunks/{agentDisplay-tRprY4gB.js → agentDisplay-QqGqcHGz.js} +1 -1
  40. package/dist/chunks/{agents-DMyQUXwl.js → agents-C8wRUTNV.js} +6 -6
  41. package/dist/chunks/{agents-Dq4BCf0H.js → agents-DFPEienW.js} +1 -1
  42. package/dist/chunks/{allErrors-CQWZ6BPw.js → allErrors-DUYYPpdH.js} +1 -1
  43. package/dist/chunks/{api-ClAyS7cQ.js → api-B3Wnozaf.js} +1 -1
  44. package/dist/chunks/api-BAT--5sp.js +1 -0
  45. package/dist/chunks/auth-CQGJitIV.js +10 -0
  46. package/dist/chunks/auth-DaJXqwN5.js +1 -0
  47. package/dist/chunks/auth-DkhPycBL.js +1 -0
  48. package/dist/chunks/{backgroundHousekeeping-rzQFJiND.js → backgroundHousekeeping-Bjb_Jc7L.js} +2 -2
  49. package/dist/chunks/backgroundHousekeeping-V-dg2j2E.js +1 -0
  50. package/dist/chunks/{branch-BWbCrXBJ.js → branch-BWq5ynjm.js} +1 -1
  51. package/dist/chunks/{bridgeConfig-CPHAyzdg.js → bridgeConfig-B3mR0kJ0.js} +1 -1
  52. package/dist/chunks/bridgeConfig-D31i4BRi.js +1 -0
  53. package/dist/chunks/{bridgeMessaging-vR7uQXB9.js → bridgeMessaging-wZ5EKxW_.js} +1 -1
  54. package/dist/chunks/{bridgeStatusUtil-CHTx7XwJ.js → bridgeStatusUtil-mvVQSVN-.js} +1 -1
  55. package/dist/chunks/{btw-IGcgP-Qq.js → btw-XNgXHnNr.js} +1 -1
  56. package/dist/chunks/{caches-FP8mGB4k.js → caches-ByLjTvdy.js} +1 -1
  57. package/dist/chunks/caches-ckqJ4Qso.js +1 -0
  58. package/dist/chunks/{ccrClient--8aPutWE.js → ccrClient-EisctZbc.js} +1 -1
  59. package/dist/chunks/{clear-CF-FZwpe.js → clear-BjtPf2Jb.js} +1 -1
  60. package/dist/chunks/client-Bb2eZnuq.js +1 -0
  61. package/dist/chunks/client-Bl43xcRk.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-BDhn7EPO.js +1 -0
  66. package/dist/chunks/{compact-BrJGpEFZ.js → compact-w8AhLkr6.js} +1 -1
  67. package/dist/chunks/config-CbAvTdZ7.js +1 -0
  68. package/dist/chunks/{context-DADnwl4t.js → context-Btn2JU2y.js} +1 -1
  69. package/dist/chunks/{context-noninteractive-kACWzgS1.js → context-noninteractive-044464Vs.js} +1 -1
  70. package/dist/chunks/context-noninteractive-ulRLlYg5.js +1 -0
  71. package/dist/chunks/conversation-D08lU377.js +1 -0
  72. package/dist/chunks/{conversation-C8w1DtXk.js → conversation-a82khZ_n.js} +1 -1
  73. package/dist/chunks/{createSSHSession-B71Plec6.js → createSSHSession-C0KSI0fJ.js} +1 -1
  74. package/dist/chunks/{createSession-BJeDECzt.js → createSession-8ScCWTKb.js} +1 -1
  75. package/dist/chunks/createSession-CnlPXXkA.js +1 -0
  76. package/dist/chunks/{crossProjectResume-B1I6YzXr.js → crossProjectResume-BCN462Wa.js} +1 -1
  77. package/dist/chunks/{datadog-C9uqPA6N.js → datadog-BqINRWAW.js} +1 -1
  78. package/dist/chunks/{diff-CzChvQyK.js → diff-CcrSQNvQ.js} +1 -1
  79. package/dist/chunks/doctor-DRFDBrH1.js +1 -0
  80. package/dist/chunks/{entry-BoL8sy1Y.js → entry-oVZ7Z59B.js} +2 -2
  81. package/dist/chunks/{esm-DtcV71xh.js → esm-BZciQG9N.js} +1 -1
  82. package/dist/chunks/exit-jikLI2Zh.js +1 -0
  83. package/dist/chunks/extraUsage-BT3in1Aj.js +1 -0
  84. package/dist/chunks/extractMemories-BsQU2bVO.js +1 -0
  85. package/dist/chunks/fast-B9vVL3sY.js +1 -0
  86. package/dist/chunks/fast-CKhtBOx7.js +1 -0
  87. package/dist/chunks/fetchModelList-BeL40TyR.js +1 -0
  88. package/dist/chunks/fetchModelList-DmaMgpa2.js +1 -0
  89. package/dist/chunks/{fileSuggestions-DU7gmksK.js → fileSuggestions-BfG3sbET.js} +1 -1
  90. package/dist/chunks/firstPartyEventLogger-6GwZ6VLr.js +1 -0
  91. package/dist/chunks/{firstPartyEventLogger-7pAyUdbp.js → firstPartyEventLogger-Q3fMF0BR.js} +2 -2
  92. package/dist/chunks/{flushGate-4DfYr-Ru.js → flushGate-COa_KO98.js} +1 -1
  93. package/dist/chunks/{gemini-Cll4fVQn.js → gemini-L8Gj2B4H.js} +1 -1
  94. package/dist/chunks/{generateSessionName-BgGMwpps.js → generateSessionName-cAL5T7pG.js} +1 -1
  95. package/dist/chunks/{goal-D4E2WQVn.js → goal-D-x2WXm7.js} +1 -1
  96. package/dist/chunks/grok-DtypRM4d.js +1 -0
  97. package/dist/chunks/{grove-Bck1zFaD.js → grove-CSivzrhe.js} +1 -1
  98. package/dist/chunks/{help-DJp61Job.js → help-DKZhC0lL.js} +1 -1
  99. package/dist/chunks/{hooks-CJ17byYD.js → hooks-D_afUDcs.js} +1 -1
  100. package/dist/chunks/hooks-DvVuNKRx.js +1 -0
  101. package/dist/chunks/initReplBridge-sTaq4a0K.js +1 -0
  102. package/dist/chunks/{install-Dd5fw0cA.js → install-BWe3Jz4M.js} +1 -1
  103. package/dist/chunks/{instrumentation-jsPu6qqs.js → instrumentation-IljwxX0V.js} +4 -4
  104. package/dist/chunks/{job-BHhkQbvu.js → job-N25KhSUu.js} +1 -1
  105. package/dist/chunks/keybindings-DLEorhlY.js +1 -0
  106. package/dist/chunks/{launchLocalMemory-DsaijVcO.js → launchLocalMemory-DJsuNLIf.js} +1 -1
  107. package/dist/chunks/{launchOnboarding-DHOylaqn.js → launchOnboarding-CVvuxeH-.js} +1 -1
  108. package/dist/chunks/{loadAgentsDir-CwEfQDOw.js → loadAgentsDir-CbtNPJV3.js} +569 -569
  109. package/dist/chunks/loadAgentsDir-D0gl_H2S.js +1 -0
  110. package/dist/chunks/{loadPluginHooks-C-Yk5KlI.js → loadPluginHooks-BxkDBFd6.js} +1 -1
  111. package/dist/chunks/{localSearch-BEnlgSB7.js → localSearch-B5mTHBwK.js} +1 -1
  112. package/dist/chunks/localSearch-D3UrYUre.js +1 -0
  113. package/dist/chunks/{logoV2Utils-DG9GwFjl.js → logoV2Utils-D5nRpirL.js} +1 -1
  114. package/dist/chunks/{magicDocs-qGHR3Cqh.js → magicDocs-C9aIo4Oe.js} +2 -2
  115. package/dist/chunks/{main-CBVQ8bRm.js → main-DeUt_aE2.js} +26 -26
  116. package/dist/chunks/managedEnv-ADMKY7-G.js +1 -0
  117. package/dist/chunks/{managedEnv-3MbOWrVs.js → managedEnv-CDxyrUw1.js} +1 -1
  118. package/dist/chunks/{mappers-CdY45PDA.js → mappers-Del1KoA7.js} +1 -1
  119. package/dist/chunks/{mcp-DvY_FibT.js → mcp-Bh3MNBIj.js} +3 -3
  120. package/dist/chunks/{mcp-DI8pGrqi.js → mcp-D7vMhEOV.js} +1 -1
  121. package/dist/chunks/{mcp-BA8XQ6h1.js → mcp-nnBVM5Lt.js} +1 -1
  122. package/dist/chunks/{memory-C2U7CCmM.js → memory-DtqQhHu8.js} +1 -1
  123. package/dist/chunks/{mode-ByV6NqmB.js → mode-DPbrxU32.js} +1 -1
  124. package/dist/chunks/model-B50j-O5v.js +1 -0
  125. package/dist/chunks/model-DLG1nrnf.js +1 -0
  126. package/dist/chunks/{model-CeG-iOKF.js → model-DlLO7TSx.js} +1 -1
  127. package/dist/chunks/modelOptions-SMq3one0.js +1 -0
  128. package/dist/chunks/{nativeInstaller-CXFD8LDV.js → nativeInstaller-DTJ4clp-.js} +1 -1
  129. package/dist/chunks/{omit-B65XeX8r.js → omit-CMldTqqy.js} +1 -1
  130. package/dist/chunks/{onChangeAppState-EtUxsgYz.js → onChangeAppState-EAnsmOuo.js} +1 -1
  131. package/dist/chunks/openai-CR3CcjCE.js +17 -0
  132. package/dist/chunks/{openai-Dx5mvMjY.js → openai-D9KvLMrj.js} +2 -2
  133. package/dist/chunks/{partition-8vZDG3rY.js → partition-B8Y4jvjW.js} +1 -1
  134. package/dist/chunks/{permissions-CJUBfBTr.js → permissions-cDtIZRM1.js} +2 -2
  135. package/dist/chunks/{pidLock-tjm2n1Nd.js → pidLock-Br3_YNi_.js} +2 -2
  136. package/dist/chunks/{plan-eFur8bdH.js → plan-dG2H4eQl.js} +1 -1
  137. package/dist/chunks/{plugin-fYLRLdOY.js → plugin-CzQHuIlP.js} +1 -1
  138. package/dist/chunks/{pluginAutoupdate-B4w7SSYc.js → pluginAutoupdate-B9W_vxOG.js} +1 -1
  139. package/dist/chunks/{pluginBlocklist-CMwb7gmY.js → pluginBlocklist-BvdBsnJG.js} +1 -1
  140. package/dist/chunks/{pluginCliCommands-3YCj7Y3Q.js → pluginCliCommands-NKIgFTUF.js} +1 -1
  141. package/dist/chunks/{pluginFlagging-srvq9H7p.js → pluginFlagging-C0PtAJEg.js} +1 -1
  142. package/dist/chunks/{pluginOperations-C7BCR7pw.js → pluginOperations-wUUdFpu9.js} +1 -1
  143. package/dist/chunks/pluginStartupCheck-hDT6pEAd.js +1 -0
  144. package/dist/chunks/{pluginStartupCheck-BLc0U7W7.js → pluginStartupCheck-p0njap1l.js} +1 -1
  145. package/dist/chunks/{plugins-CPtmmDDi.js → plugins-B9WBqOAW.js} +1 -1
  146. package/dist/chunks/print-G3DgPTxy.js +14 -0
  147. package/dist/chunks/{processBashCommand-C9-FonuX.js → processBashCommand-zLWgCRws.js} +1 -1
  148. package/dist/chunks/{processSlashCommand-Bi8_1MRC.js → processSlashCommand-BHBnHBjj.js} +2 -2
  149. package/dist/chunks/{prompt-Bm2EEG4F.js → prompt-BRGC5U9Y.js} +1 -1
  150. package/dist/chunks/prompt-Ct3Ryb3C.js +1 -0
  151. package/dist/chunks/prompt-TZJKyomz.js +1 -0
  152. package/dist/chunks/{promptEditor-DQ9fpdQD.js → promptEditor-CRIw6vJS.js} +1 -1
  153. package/dist/chunks/{reconciler-DgQ4y1Vn.js → reconciler-DiU1RvGD.js} +1 -1
  154. package/dist/chunks/{refresh-CayVRWUY.js → refresh-DEXe3Lmx.js} +1 -1
  155. package/dist/chunks/{reload-plugins-6xcH3dLg.js → reload-plugins-Cl6wvT6V.js} +1 -1
  156. package/dist/chunks/{remoteBridgeCore-BnZYGaMH.js → remoteBridgeCore-DnFZoXaw.js} +1 -1
  157. package/dist/chunks/{remoteManagedSettings-CfFmrRze.js → remoteManagedSettings-BboLJ46D.js} +1 -1
  158. package/dist/chunks/{rename-mDtCTbnD.js → rename-CdzxOzN5.js} +1 -1
  159. package/dist/chunks/{resume-DRvz4QFs.js → resume-DgFXYWTN.js} +1 -1
  160. package/dist/chunks/{runtimeObserver-Ba6SM-sI.js → runtimeObserver-CwtRE2cj.js} +1 -1
  161. package/dist/chunks/{runtimeObserver-Dt5sGJVb.js → runtimeObserver-Dov-m2dl.js} +2 -2
  162. package/dist/chunks/sandbox-adapter-CtEngx-6.js +1 -0
  163. package/dist/chunks/{sandbox-toggle-DKcw3SbO.js → sandbox-toggle-DWCrG9zV.js} +1 -1
  164. package/dist/chunks/searchExtraTools-zFMN5MqY.js +1 -0
  165. package/dist/chunks/{session-COVyD8UU.js → session-L5191BSn.js} +1 -1
  166. package/dist/chunks/sessionFileAccessHooks-C2VjT-PU.js +1 -0
  167. package/dist/chunks/sessionObserver-BuhXr3FP.js +1 -0
  168. package/dist/chunks/{sessionObserver-iAgSetlC.js → sessionObserver-DpY0DOjI.js} +1 -1
  169. package/dist/chunks/{sessionState-zhvcDpb2.js → sessionState-BlbRQ3Y6.js} +2 -2
  170. package/dist/chunks/sessionStorage-CiYSwyY3.js +1 -0
  171. package/dist/chunks/sessionTitle-k4wpUS5l.js +2 -0
  172. package/dist/chunks/{sessionTracing-C4uqAdud.js → sessionTracing-DqVx8aFD.js} +1 -1
  173. package/dist/chunks/{settingsSync-BGo6dHJo.js → settingsSync-BhlegQAU.js} +1 -1
  174. package/dist/chunks/setup-DvnKMqDy.js +3 -0
  175. package/dist/chunks/{shadowedRuleDetection-CzRAzcC1.js → shadowedRuleDetection-Gerk3t93.js} +1 -1
  176. package/dist/chunks/{sideQuestion-oIYrx5ar.js → sideQuestion-RndkXExy.js} +1 -1
  177. package/dist/chunks/sinks-Cf4vx9UX.js +1 -0
  178. package/dist/chunks/{sinks-Bje3hCkR.js → sinks-CfzgqLH5.js} +1 -1
  179. package/dist/chunks/skillChangeDetector-BQx4xe_b.js +1 -0
  180. package/dist/chunks/{skillGapStore-CJjt3IW7.js → skillGapStore-CLxhWLyq.js} +2 -2
  181. package/dist/chunks/{skillLifecycle-BsgH84vl.js → skillLifecycle-CSNX2qOH.js} +2 -2
  182. package/dist/chunks/{skillSearchPanel-CneXymsb.js → skillSearchPanel-CsQDjy_E.js} +4 -4
  183. package/dist/chunks/{skills-DZRBy7vT.js → skills-DM9ACPW-.js} +1 -1
  184. package/dist/chunks/status-C3z0CSBw.js +1 -0
  185. package/dist/chunks/{status-BP_R8051.js → status-C5v7KsX4.js} +2 -2
  186. package/dist/chunks/{statusNoticeHelpers-ODrnrLAZ.js → statusNoticeHelpers-BY_8pK19.js} +1 -1
  187. package/dist/chunks/switcher-C9VsM-ip.js +1 -0
  188. package/dist/chunks/{switcher-BkGOeIzI.js → switcher-CnBKuiNp.js} +1 -1
  189. package/dist/chunks/syncCache-Dff4hbz4.js +1 -0
  190. package/dist/chunks/{tasks-CIUuwrX4.js → tasks-qVyXOLBf.js} +1 -1
  191. package/dist/chunks/{teleport-IzyDplC7.js → teleport-Deq_ecN9.js} +1 -1
  192. package/dist/chunks/{templateJobs-De57J461.js → templateJobs-CntPyct-.js} +1 -1
  193. package/dist/chunks/{theme-Nwii7354.js → theme-DVWYzSct.js} +1 -1
  194. package/dist/chunks/{toolEventObserver-Cq-uBb0-.js → toolEventObserver-BZn8ZJB5.js} +1 -1
  195. package/dist/chunks/toolPool-Dzp1ob3I.js +1 -0
  196. package/dist/chunks/trustedDevice-1Q4FTNyX.js +1 -0
  197. package/dist/chunks/{trustedDevice-DWZxDUxS.js → trustedDevice-CdLAZK6m.js} +1 -1
  198. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-D48aDPG9.js → useExitOnCtrlCDWithKeybindings-YSWYVWk6.js} +1 -1
  199. package/dist/chunks/useMainLoopModel-C1JRp4zE.js +1 -0
  200. package/dist/chunks/{useManagePlugins-EqoQELMT.js → useManagePlugins-DfuI4Nhd.js} +1 -1
  201. package/dist/chunks/{useMergedTools-BJ4L9QSK.js → useMergedTools-B4qRVJ8b.js} +1 -1
  202. package/dist/chunks/{useSearchInput-DkVER3cm.js → useSearchInput-DfUNYhqC.js} +1 -1
  203. package/dist/chunks/{useSettingsErrors-D3MlQ1GF.js → useSettingsErrors-Bls74ocI.js} +1 -1
  204. package/dist/chunks/{userAgent-aoe_xVAb.js → userAgent-CNPTS7ix.js} +1 -1
  205. package/dist/chunks/{util-g-5UX5gH.js → util-6aJHnBQ_.js} +1 -1
  206. package/dist/chunks/{validatePlugin-CSE8zjZn.js → validatePlugin-BajM6yNf.js} +1 -1
  207. package/dist/chunks/{workerRegistry-DGwy0YHB.js → workerRegistry-BwJ54Lzk.js} +2 -2
  208. package/dist/chunks/worktree-BFP10vim.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/sessionTitle-QPRly1tZ.js +0 -14
  265. package/dist/chunks/setup-Bjw5VS6x.js +0 -3
  266. package/dist/chunks/sinks-FaljTZ-c.js +0 -1
  267. package/dist/chunks/skillChangeDetector-v6mAYzXX.js +0 -1
  268. package/dist/chunks/status-CZYD3NGb.js +0 -1
  269. package/dist/chunks/switcher-DwKN9daN.js +0 -1
  270. package/dist/chunks/syncCache-CpmpvjfC.js +0 -1
  271. package/dist/chunks/toolPool-BBU4ll_p.js +0 -1
  272. package/dist/chunks/trustedDevice-BKzkA7fq.js +0 -1
  273. package/dist/chunks/useMainLoopModel-89eUU13X.js +0 -1
  274. package/dist/chunks/worktree-jjuORs7p.js +0 -1
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./loadAgentsDir-CbtNPJV3.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-CbtNPJV3.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-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-BDhn7EPO.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-B5mTHBwK.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{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-CbtNPJV3.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-DlLO7TSx.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.17`,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-CbtNPJV3.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-DlLO7TSx.js";import{dn as b,mn as x}from"./prompt-BRGC5U9Y.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};