@readmagic/workmate 0.0.12 → 0.0.13

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 (312) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-CtRxzRny.js → AddWorkspaceDirectory-BzNj9rS6.js} +1 -1
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-CDZPR488.js +1 -0
  3. package/dist/chunks/{AgentsMdExternalIncludesDialog-_yJJ0wqu.js → AgentsMdExternalIncludesDialog-CH9x1Ngp.js} +1 -1
  4. package/dist/chunks/App-D-bYAYAl.js +1 -0
  5. package/dist/chunks/ApproveApiKey-BEGV9Zj9.js +1 -0
  6. package/dist/chunks/ApproveApiKey-CjacpIqq.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-A9hw_SV0.js +2 -0
  8. package/dist/chunks/{BypassPermissionsModeDialog-COI_V57z.js → BypassPermissionsModeDialog-B0BizN_J.js} +1 -1
  9. package/dist/chunks/{DiffDialog-CRWtQ1R5.js → DiffDialog-mQ-5_TSv.js} +3 -3
  10. package/dist/chunks/Doctor-BC6IuQhd.js +3 -0
  11. package/dist/chunks/Doctor-i_5_AQd-.js +1 -0
  12. package/dist/chunks/ExitFlow-Bu2cVGpC.js +2 -0
  13. package/dist/chunks/{Grove-DRZrhbF0.js → Grove-D0nn8zOV.js} +2 -2
  14. package/dist/chunks/{HybridTransport-BadJQe6u.js → HybridTransport-BQNLZNa_.js} +2 -2
  15. package/dist/chunks/InvalidConfigDialog-C5CIiSIE.js +1 -0
  16. package/dist/chunks/{InvalidSettingsDialog-ISzcIGPU.js → InvalidSettingsDialog-Dq7hKXcO.js} +1 -1
  17. package/dist/chunks/MCPConnectionManager-aDDsYkGM.js +1 -0
  18. package/dist/chunks/MCPToolListView-Cr0MDkzT.js +1 -0
  19. package/dist/chunks/{McpParsingWarnings-xv0RZCSL.js → McpParsingWarnings-CUx2zexI.js} +1 -1
  20. package/dist/chunks/MessageSelector-DwGOWKKL.js +3 -0
  21. package/dist/chunks/Messages-C1jh4ixt.js +11 -0
  22. package/dist/chunks/Onboarding-t-P6Q5O6.js +1 -0
  23. package/dist/chunks/{PromptInputFooterSuggestions-8-awCxOn.js → PromptInputFooterSuggestions-R12fbdmp.js} +1 -1
  24. package/dist/chunks/PromptInputHelpMenu-BgADIzRj.js +1 -0
  25. package/dist/chunks/QueryEngine-HlLQJmsd.js +1 -0
  26. package/dist/chunks/REPL-Rs_JQkDc.js +1 -0
  27. package/dist/chunks/REPL-VKAmKkII.js +133 -0
  28. package/dist/chunks/RemoteSessionManager-BbgXeM-t.js +2 -0
  29. package/dist/chunks/ResumeConversation-66zbx12g.js +1 -0
  30. package/dist/chunks/{SSETransport-je346ofV.js → SSETransport-BBQkdn4e.js} +1 -1
  31. package/dist/chunks/SearchExtraToolsTool-Bq87I_vu.js +1 -0
  32. package/dist/chunks/Settings-BKdLcyXe.js +2 -0
  33. package/dist/chunks/{TeleportProgress-zmdAsogZ.js → TeleportProgress-3hmIApkj.js} +1 -1
  34. package/dist/chunks/{TeleportRepoMismatchDialog-CG32I4cO.js → TeleportRepoMismatchDialog-BA1a66RK.js} +1 -1
  35. package/dist/chunks/{TeleportResumeWrapper-2Yjr74Lq.js → TeleportResumeWrapper-BT4O-Wsi.js} +1 -1
  36. package/dist/chunks/{ThemePicker-p7_hHk1V.js → ThemePicker-DUlhcoso.js} +1 -1
  37. package/dist/chunks/{TrustDialog-BVcny9vs.js → TrustDialog-Dpk03V1Y.js} +1 -1
  38. package/dist/chunks/add-dir-BUr0z-VU.js +1 -0
  39. package/dist/chunks/{agentDisplay-CfMLGPGH.js → agentDisplay-D7bdOOG7.js} +1 -1
  40. package/dist/chunks/{agents-BT82hwBN.js → agents-22wiC58F.js} +1 -1
  41. package/dist/chunks/agents-8ELI8RJo.js +103 -0
  42. package/dist/chunks/{allErrors-CS77lRvU.js → allErrors-C1eMbHSv.js} +1 -1
  43. package/dist/chunks/api-DgjIFdMn.js +1 -0
  44. package/dist/chunks/{api-DAubp5q9.js → api-f3GN2I_J.js} +1 -1
  45. package/dist/chunks/auth-B73a4Cob.js +1 -0
  46. package/dist/chunks/{auth-yDsvFcM7.js → auth-Czy7GoRh.js} +1 -1
  47. package/dist/chunks/auth-D_0waidQ.js +1 -0
  48. package/dist/chunks/backgroundHousekeeping-C_ArdTFX.js +17 -0
  49. package/dist/chunks/backgroundHousekeeping-YJhvZ0dh.js +1 -0
  50. package/dist/chunks/{branch-DJiMa8td.js → branch-bb4-bErF.js} +2 -2
  51. package/dist/chunks/{bridgeConfig-BB6Hgali.js → bridgeConfig-B80T_lw7.js} +1 -1
  52. package/dist/chunks/bridgeConfig-DywkIo_k.js +1 -0
  53. package/dist/chunks/{bridgeMessaging-C9D0Lly2.js → bridgeMessaging-DyvHd16Z.js} +1 -1
  54. package/dist/chunks/{bridgeStatusUtil-D8UbcVrZ.js → bridgeStatusUtil-DStiD05t.js} +1 -1
  55. package/dist/chunks/{btw-BO2B23f-.js → btw-BRmV51bR.js} +1 -1
  56. package/dist/chunks/caches-C5DIVdvI.js +1 -0
  57. package/dist/chunks/caches-zDZEgNKq.js +1 -0
  58. package/dist/chunks/{ccrClient-BG9HU_fW.js → ccrClient-BALhzhPF.js} +1 -1
  59. package/dist/chunks/{clear-B4XN2fib.js → clear-B_yVyJXP.js} +1 -1
  60. package/dist/chunks/client-DVg8PpFX.js +1 -0
  61. package/dist/chunks/commands-ByFXqW43.js +1 -0
  62. package/dist/chunks/compact-BUShp2eQ.js +2 -0
  63. package/dist/chunks/config-BwHNU_pI.js +1 -0
  64. package/dist/chunks/{context-BY5oO5is.js → context-6Pk3iVhh.js} +1 -1
  65. package/dist/chunks/{context-noninteractive-mAQt1p9l.js → context-noninteractive-CHzerxnH.js} +2 -2
  66. package/dist/chunks/context-noninteractive-DFwRQyFE.js +1 -0
  67. package/dist/chunks/conversation-5zb5XkSA.js +1 -0
  68. package/dist/chunks/conversation-JP2ZXrwu.js +1 -0
  69. package/dist/chunks/{createSSHSession-DjLSGm-0.js → createSSHSession-XkHMiGRN.js} +1 -1
  70. package/dist/chunks/{createSession-CftIZ3aq.js → createSession-BNGm9fL4.js} +1 -1
  71. package/dist/chunks/createSession-VTqzWAu6.js +1 -0
  72. package/dist/chunks/crossProjectResume-DxgQVYSi.js +40 -0
  73. package/dist/chunks/{datadog-BGati3aQ.js → datadog-3WUWcCFn.js} +1 -1
  74. package/dist/chunks/{diff-1HsxKGBh.js → diff-CKlLimGq.js} +1 -1
  75. package/dist/chunks/doctor-Bvx0u0sO.js +1 -0
  76. package/dist/chunks/entry-DCbq734V.js +14 -0
  77. package/dist/chunks/{esm-BkOWaWVb.js → esm-CtQkOk5D.js} +1 -1
  78. package/dist/chunks/exit-DTsz5Lcb.js +1 -0
  79. package/dist/chunks/{extraUsage-0pUcYexI.js → extraUsage-C86bZVgt.js} +1 -1
  80. package/dist/chunks/extractMemories-6OnMgL2S.js +1 -0
  81. package/dist/chunks/fast-B2ziqJEA.js +1 -0
  82. package/dist/chunks/{fast-VOu2FUlV.js → fast-BkhjaTkZ.js} +1 -1
  83. package/dist/chunks/{fileSuggestions-Be-pyLLq.js → fileSuggestions-BalHmi1-.js} +2 -2
  84. package/dist/chunks/{firstPartyEventLogger-aFhcruXA.js → firstPartyEventLogger-1RTgXHSz.js} +2 -2
  85. package/dist/chunks/firstPartyEventLogger-CXMzhLrF.js +1 -0
  86. package/dist/chunks/{flushGate-BUSrMj_6.js → flushGate-DWL05x7v.js} +1 -1
  87. package/dist/chunks/{gemini-DB4M-MYv.js → gemini-BLpLJyli.js} +1 -1
  88. package/dist/chunks/generateSessionName-CdbMksHi.js +1 -0
  89. package/dist/chunks/goal-V3qix-i1.js +3 -0
  90. package/dist/chunks/grok-BLLATotv.js +1 -0
  91. package/dist/chunks/{grove-BnzBbGsX.js → grove-b9gGKgu4.js} +2 -2
  92. package/dist/chunks/{help-C5ankDi4.js → help-BR7UEr5R.js} +1 -1
  93. package/dist/chunks/{hooks-BZS105Rd.js → hooks-C-QMGvCg.js} +2 -2
  94. package/dist/chunks/hooks-D6wtd0Qq.js +1 -0
  95. package/dist/chunks/{initReplBridge-DL4klK0C.js → initReplBridge-DyScxedy.js} +1 -1
  96. package/dist/chunks/{install-NZvHd_40.js → install-DGH_bjUh.js} +1 -1
  97. package/dist/chunks/{instrumentation-CjBlVlFq.js → instrumentation-DQ705pC7.js} +3 -3
  98. package/dist/chunks/{job-D502Zf8J.js → job-BaMT6Lb2.js} +1 -1
  99. package/dist/chunks/keybindings-CG292HS1.js +2 -0
  100. package/dist/chunks/{launchLocalMemory-DxC3LojF.js → launchLocalMemory-CtZrkmaw.js} +2 -2
  101. package/dist/chunks/{launchOnboarding-BLp5k_H4.js → launchOnboarding-CyOtdZkT.js} +1 -1
  102. package/dist/chunks/loadAgentsDir-4UC4yLg1.js +1 -0
  103. package/dist/chunks/{loadAgentsDir-BXtV2jiO.js → loadAgentsDir-mcRW90aq.js} +389 -390
  104. package/dist/chunks/loadPluginHooks-CWI0RMUx.js +1 -0
  105. package/dist/chunks/{localSearch-CeP4ef0a.js → localSearch-CCCDKpYx.js} +1 -1
  106. package/dist/chunks/localSearch-D4hVR7-d.js +1 -0
  107. package/dist/chunks/{logoV2Utils-CEnU8qad.js → logoV2Utils--8OUQQPd.js} +1 -1
  108. package/dist/chunks/{magicDocs-YtfrqVC6.js → magicDocs-26J_l1De.js} +2 -2
  109. package/dist/chunks/main-DUjtDK1Q.js +513 -0
  110. package/dist/chunks/managedEnv-BuCurT_S.js +1 -0
  111. package/dist/chunks/{managedEnv-B-BNY0xC.js → managedEnv-Ds6MlFQE.js} +1 -1
  112. package/dist/chunks/{mappers-IuJeXgvr.js → mappers-DwZw084m.js} +1 -1
  113. package/dist/chunks/mcp-CEKR7PjL.js +6 -0
  114. package/dist/chunks/mcp-DCAf2hHD.js +1 -0
  115. package/dist/chunks/mcp-mCuc8dNe.js +2 -0
  116. package/dist/chunks/memory-B5SkpC7u.js +1 -0
  117. package/dist/chunks/{mode-GzBwK--u.js → mode-B80CHkqo.js} +2 -2
  118. package/dist/chunks/model-BqaneI4D.js +1 -0
  119. package/dist/chunks/{model-CDnVaVDR.js → model-C29_32BD.js} +1 -1
  120. package/dist/chunks/{model-BydaMaPr.js → model-NG8fvuT2.js} +1 -1
  121. package/dist/chunks/{modelOptions-ut0xePEe.js → modelOptions-CiZgZxZC.js} +1 -1
  122. package/dist/chunks/{nativeInstaller-fgCMR_c0.js → nativeInstaller-DqbEfGSX.js} +1 -1
  123. package/dist/chunks/{omit-D4Udf-p-.js → omit-KEhe84f4.js} +1 -1
  124. package/dist/chunks/{onChangeAppState-WbvtqDtk.js → onChangeAppState-Dq1tIEJI.js} +1 -1
  125. package/dist/chunks/{openai-DaVFXyBB.js → openai-BvnsYTpQ.js} +3 -3
  126. package/dist/chunks/{partition-CzW_31Y1.js → partition-DeT341qu.js} +1 -1
  127. package/dist/chunks/permissions-BPpeHxpk.js +3 -0
  128. package/dist/chunks/pidLock-DQGDoFQP.js +3 -0
  129. package/dist/chunks/{plan-M9DG3AqN.js → plan-BRiC5ujG.js} +1 -1
  130. package/dist/chunks/plugin-Dcg_GGR9.js +17 -0
  131. package/dist/chunks/{pluginAutoupdate-B5lel6s5.js → pluginAutoupdate-ByH9IPC9.js} +1 -1
  132. package/dist/chunks/pluginBlocklist-BfoLN9a-.js +1 -0
  133. package/dist/chunks/pluginCliCommands-Bc2Iybhz.js +1 -0
  134. package/dist/chunks/{pluginFlagging-CXSSOj4J.js → pluginFlagging-Cr0d0hBA.js} +1 -1
  135. package/dist/chunks/pluginOperations-CKNyYjS-.js +2 -0
  136. package/dist/chunks/pluginStartupCheck-B48_cGgo.js +1 -0
  137. package/dist/chunks/{pluginStartupCheck-BEd0VeQC.js → pluginStartupCheck-DiCDQQlr.js} +1 -1
  138. package/dist/chunks/plugins-BP_36tOl.js +4 -0
  139. package/dist/chunks/print-2uavraPq.js +26 -0
  140. package/dist/chunks/processBashCommand-g3sAMpHt.js +1 -0
  141. package/dist/chunks/processSlashCommand-tIbeCrv5.js +5 -0
  142. package/dist/chunks/{prompt-CRc2QEZ5.js → prompt-DIlq8NTy.js} +1 -1
  143. package/dist/chunks/prompt-DLv-Cd67.js +1 -0
  144. package/dist/chunks/prompt-DV5tCLRh.js +1 -0
  145. package/dist/chunks/{promptEditor-Bo1d8ZLq.js → promptEditor-BILqOGl1.js} +2 -2
  146. package/dist/chunks/{reconciler-BGav_ezX.js → reconciler-CDq6XgAS.js} +1 -1
  147. package/dist/chunks/refresh-ysrhoWCo.js +1 -0
  148. package/dist/chunks/{reload-plugins-DNEgQ5vo.js → reload-plugins-CGb0HTsH.js} +1 -1
  149. package/dist/chunks/{remoteBridgeCore-BGOqHADF.js → remoteBridgeCore-BmteXmI9.js} +1 -1
  150. package/dist/chunks/{remoteManagedSettings-26nhzuca.js → remoteManagedSettings-CwDGxL5p.js} +1 -1
  151. package/dist/chunks/rename-1GLIUlYk.js +1 -0
  152. package/dist/chunks/resume-DWtlUiHW.js +2 -0
  153. package/dist/chunks/{runtimeObserver-BZrF3GnQ.js → runtimeObserver-4ZqaCXYy.js} +4 -4
  154. package/dist/chunks/{runtimeObserver-CBV-7-w7.js → runtimeObserver-CtNY8Al2.js} +1 -1
  155. package/dist/chunks/sandbox-adapter-BzjRQh_r.js +1 -0
  156. package/dist/chunks/{sandbox-toggle-D61gVqcT.js → sandbox-toggle-Bz49-F6e.js} +1 -1
  157. package/dist/chunks/searchExtraTools-D6vj8qJ-.js +1 -0
  158. package/dist/chunks/{session-Dy-_R7KP.js → session-wb6X4Wrq.js} +1 -1
  159. package/dist/chunks/sessionFileAccessHooks-Da97UA2n.js +1 -0
  160. package/dist/chunks/{sessionObserver-CyLpHSkw.js → sessionObserver-BJQ5hwjU.js} +2 -2
  161. package/dist/chunks/sessionObserver-DXO4trhk.js +1 -0
  162. package/dist/chunks/{sessionState-DSWN4tMV.js → sessionState-Bn3ESS5f.js} +1 -1
  163. package/dist/chunks/sessionStorage-DlPVsQn9.js +1 -0
  164. package/dist/chunks/{sessionTitle-L5tyJgdU.js → sessionTitle-Cbzrb9jT.js} +2 -2
  165. package/dist/chunks/{sessionTracing-DpHGGIZm.js → sessionTracing-CEsm8pZL.js} +1 -1
  166. package/dist/chunks/{settingsSync-dBqlrbcU.js → settingsSync-eHaSngKo.js} +1 -1
  167. package/dist/chunks/setup-DeyiuGNX.js +3 -0
  168. package/dist/chunks/{shadowedRuleDetection-DZ0AA2Rw.js → shadowedRuleDetection-D5X5fhzj.js} +1 -1
  169. package/dist/chunks/{sideQuestion-BYT8FdPF.js → sideQuestion-BHRtwhyj.js} +3 -3
  170. package/dist/chunks/{sinks-mFsijQ_S.js → sinks-Bgy2UNK-.js} +2 -2
  171. package/dist/chunks/sinks-CgzLmim2.js +1 -0
  172. package/dist/chunks/skillChangeDetector-BlSP16j6.js +1 -0
  173. package/dist/chunks/{skillGapStore-DQXHqoP7.js → skillGapStore-BjQSSz2E.js} +2 -2
  174. package/dist/chunks/{skillLifecycle-BG_RnGSh.js → skillLifecycle-Sp8strFv.js} +2 -2
  175. package/dist/chunks/{skillSearchPanel-DxYP4Q6R.js → skillSearchPanel-3sYRez_Q.js} +4 -4
  176. package/dist/chunks/{skills-BD-2ofXA.js → skills-CJhWI8t1.js} +1 -1
  177. package/dist/chunks/{status-BmHu-c7I.js → status-CDCurOqs.js} +2 -2
  178. package/dist/chunks/{status-CrmnCDIE.js → status-yoQIQ2Ni.js} +1 -1
  179. package/dist/chunks/statusNoticeHelpers-Sl4jjauz.js +1 -0
  180. package/dist/chunks/switcher-C-m6MUwE.js +1 -0
  181. package/dist/chunks/{switcher-sYTxnJQA.js → switcher-uoQMHmEZ.js} +1 -1
  182. package/dist/chunks/{syncCache-BofuFJEe.js → syncCache-BooMjgU6.js} +1 -1
  183. package/dist/chunks/{tasks-NpI1iEem.js → tasks-CHG_6sXQ.js} +1 -1
  184. package/dist/chunks/teleport-C9KRE4X8.js +1 -0
  185. package/dist/chunks/{templateJobs-C94jEE6O.js → templateJobs-BYYfF4m5.js} +1 -1
  186. package/dist/chunks/{theme-CEi3b_8f.js → theme-MvX7hojJ.js} +1 -1
  187. package/dist/chunks/{toolEventObserver-DlL9CHmI.js → toolEventObserver-BFEl47bq.js} +1 -1
  188. package/dist/chunks/toolPool-Cq74Cvjp.js +1 -0
  189. package/dist/chunks/trustedDevice-BGwujSqc.js +1 -0
  190. package/dist/chunks/{trustedDevice-Bzz03jCy.js → trustedDevice-BLiKbGpG.js} +1 -1
  191. package/dist/chunks/{updateCCB-CzBxsuJe.js → updateCCB-CfckOy7T.js} +6 -6
  192. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BHQfwlAl.js → useExitOnCtrlCDWithKeybindings-CPLBDluY.js} +1 -1
  193. package/dist/chunks/useMainLoopModel-C00PbZ1Q.js +1 -0
  194. package/dist/chunks/useManagePlugins-DFaGntzJ.js +1 -0
  195. package/dist/chunks/{useMergedTools-CHxnwR7R.js → useMergedTools-DYobZ5N4.js} +1 -1
  196. package/dist/chunks/{useSearchInput-q2CFPU4W.js → useSearchInput-KFKh2ozY.js} +1 -1
  197. package/dist/chunks/useSettingsErrors-BRgjvaHd.js +1 -0
  198. package/dist/chunks/{userAgent-B7WkjI6I.js → userAgent-DUrr02yh.js} +1 -1
  199. package/dist/chunks/util-D7uwPgF1.js +1 -0
  200. package/dist/chunks/validatePlugin-VukX52bx.js +1 -0
  201. package/dist/chunks/{workerRegistry-Cfo7bKlm.js → workerRegistry-BA37PVbv.js} +3 -3
  202. package/dist/chunks/worktree-Lik8xuKd.js +1 -0
  203. package/dist/cli.js +1 -1
  204. package/package.json +1 -1
  205. package/dist/chunks/AgentsMdExternalIncludesDialog-_bI4jo_P.js +0 -1
  206. package/dist/chunks/App-DoAZ7CYS.js +0 -1
  207. package/dist/chunks/ApproveApiKey-C8LwmDM2.js +0 -1
  208. package/dist/chunks/ApproveApiKey-DQP3qmb0.js +0 -1
  209. package/dist/chunks/BackgroundTasksDialog-CDA2noEk.js +0 -2
  210. package/dist/chunks/ConsoleOAuthFlow-Dn8fO-o_.js +0 -1
  211. package/dist/chunks/Doctor-CZ513Df9.js +0 -3
  212. package/dist/chunks/Doctor-CzPvNZzF.js +0 -1
  213. package/dist/chunks/ExitFlow-BFeftDv0.js +0 -2
  214. package/dist/chunks/InvalidConfigDialog-DQaT6aen.js +0 -1
  215. package/dist/chunks/MCPConnectionManager-BpjC7CEo.js +0 -1
  216. package/dist/chunks/MCPToolListView-Rb1Q--jG.js +0 -1
  217. package/dist/chunks/MessageSelector-BHB55sZb.js +0 -3
  218. package/dist/chunks/Messages-CPX-nIdA.js +0 -11
  219. package/dist/chunks/Onboarding-CymgipoF.js +0 -1
  220. package/dist/chunks/PromptInputHelpMenu-BP3UgCdi.js +0 -1
  221. package/dist/chunks/QueryEngine-HkswHUNv.js +0 -1
  222. package/dist/chunks/REPL-CZfg65kg.js +0 -133
  223. package/dist/chunks/REPL-eZsYNBfl.js +0 -1
  224. package/dist/chunks/RemoteSessionManager-B4jqKVd3.js +0 -2
  225. package/dist/chunks/ResumeConversation-B03XN_SP.js +0 -1
  226. package/dist/chunks/SearchExtraToolsTool-C85Sanww.js +0 -1
  227. package/dist/chunks/Settings-C8GKWod1.js +0 -2
  228. package/dist/chunks/WelcomeV2-BnSYhyfu.js +0 -1
  229. package/dist/chunks/add-dir-Bd7pilVx.js +0 -1
  230. package/dist/chunks/agents-qR6r94-F.js +0 -103
  231. package/dist/chunks/api-C4VflFau.js +0 -1
  232. package/dist/chunks/auth-CNCehj7y.js +0 -1
  233. package/dist/chunks/auth-DrD9DW6X.js +0 -1
  234. package/dist/chunks/autoMode-C2lnBot9.js +0 -45
  235. package/dist/chunks/backgroundHousekeeping-DbpTGbwl.js +0 -1
  236. package/dist/chunks/backgroundHousekeeping-SpTxViUq.js +0 -17
  237. package/dist/chunks/bridgeConfig-Ccm79Jze.js +0 -1
  238. package/dist/chunks/caches-BQmbXerw.js +0 -1
  239. package/dist/chunks/caches-Dtjmjm6G.js +0 -1
  240. package/dist/chunks/client-B-2ccQZk.js +0 -1
  241. package/dist/chunks/commands-D_-v6_A0.js +0 -1
  242. package/dist/chunks/compact-kM0ETtB2.js +0 -2
  243. package/dist/chunks/config-Crf6Mzu3.js +0 -1
  244. package/dist/chunks/connectHeadless-CqRoEtrg.js +0 -1
  245. package/dist/chunks/context-noninteractive-tc4KTYfI.js +0 -1
  246. package/dist/chunks/conversation-CFIn-KsW.js +0 -1
  247. package/dist/chunks/conversation-DPI7VKBL.js +0 -1
  248. package/dist/chunks/createSession-CjdLcRec.js +0 -1
  249. package/dist/chunks/crossProjectResume-BJqXBzkf.js +0 -40
  250. package/dist/chunks/dangerousBackend-DwcP0P08.js +0 -1
  251. package/dist/chunks/doctor-CJfvt9zR.js +0 -1
  252. package/dist/chunks/entry-CrZCZQQC.js +0 -14
  253. package/dist/chunks/exit-B8MA4Ltm.js +0 -1
  254. package/dist/chunks/extractMemories-DqhN0lba.js +0 -1
  255. package/dist/chunks/fast-DT5WDe3L.js +0 -1
  256. package/dist/chunks/firstPartyEventLogger-B8RVGBQB.js +0 -1
  257. package/dist/chunks/generateSessionName-DhCypqJ_.js +0 -1
  258. package/dist/chunks/goal-TxXtfkQ6.js +0 -3
  259. package/dist/chunks/grok-D2a_J5wE.js +0 -1
  260. package/dist/chunks/hooks-D-twhU_z.js +0 -1
  261. package/dist/chunks/keybindings-D9Boc8FD.js +0 -2
  262. package/dist/chunks/loadAgentsDir-BjsAQWqt.js +0 -1
  263. package/dist/chunks/loadPluginHooks-Dt3XQ-3N.js +0 -1
  264. package/dist/chunks/localSearch-Cz8Ot7k2.js +0 -1
  265. package/dist/chunks/lockfile-D5-j7HOZ.js +0 -1
  266. package/dist/chunks/main-CkjTzYj1.js +0 -513
  267. package/dist/chunks/managedEnv-K9Si1UuL.js +0 -1
  268. package/dist/chunks/mcp-DMBoeQzm.js +0 -6
  269. package/dist/chunks/mcp-TMOPfLcW.js +0 -1
  270. package/dist/chunks/mcp-x5rgv-uv.js +0 -2
  271. package/dist/chunks/memory-DDUoR63T.js +0 -1
  272. package/dist/chunks/model-CIvbC7rW.js +0 -1
  273. package/dist/chunks/parseConnectUrl-BiyKR5-x.js +0 -1
  274. package/dist/chunks/permissions-BT3lxYBM.js +0 -3
  275. package/dist/chunks/pidLock-d1VPd6CG.js +0 -3
  276. package/dist/chunks/plugin-BiNHuq3h.js +0 -17
  277. package/dist/chunks/pluginBlocklist-CNGmIlwU.js +0 -1
  278. package/dist/chunks/pluginCliCommands-WLOEhb2M.js +0 -1
  279. package/dist/chunks/pluginOperations-BFbty6WT.js +0 -2
  280. package/dist/chunks/pluginStartupCheck-Bcdxg484.js +0 -1
  281. package/dist/chunks/plugins-BMZ3aYKP.js +0 -4
  282. package/dist/chunks/print-DmoLcwVq.js +0 -26
  283. package/dist/chunks/processBashCommand-B-VqME9O.js +0 -1
  284. package/dist/chunks/processSlashCommand-D6zEooTy.js +0 -5
  285. package/dist/chunks/prompt-C3RRe4kW.js +0 -1
  286. package/dist/chunks/prompt-EtAanewG.js +0 -1
  287. package/dist/chunks/refresh-DumNiLvM.js +0 -1
  288. package/dist/chunks/rename-BPknfVGF.js +0 -1
  289. package/dist/chunks/resume-DGz04xDh.js +0 -2
  290. package/dist/chunks/sandbox-adapter-DUqeqkQD.js +0 -1
  291. package/dist/chunks/searchExtraTools-CgsV6kb1.js +0 -1
  292. package/dist/chunks/server-LdbAb0sV.js +0 -1
  293. package/dist/chunks/serverBanner-BdExKFHT.js +0 -1
  294. package/dist/chunks/serverLog-BFmvyJ93.js +0 -1
  295. package/dist/chunks/sessionFileAccessHooks-BJlrZaRD.js +0 -1
  296. package/dist/chunks/sessionManager-CPa049BO.js +0 -1
  297. package/dist/chunks/sessionObserver-BGYoLRGx.js +0 -1
  298. package/dist/chunks/sessionStorage-zJ1esSCE.js +0 -1
  299. package/dist/chunks/setup-zf3v3ICe.js +0 -3
  300. package/dist/chunks/sinks-DppGvgz1.js +0 -1
  301. package/dist/chunks/skillChangeDetector-D-iq09Xs.js +0 -1
  302. package/dist/chunks/statusNoticeHelpers-DakAVtQO.js +0 -1
  303. package/dist/chunks/switcher-Dm646gO5.js +0 -1
  304. package/dist/chunks/teleport-Bs3kEipi.js +0 -1
  305. package/dist/chunks/toolPool-DIT_uhtD.js +0 -1
  306. package/dist/chunks/trustedDevice-BokywSKL.js +0 -1
  307. package/dist/chunks/useMainLoopModel-BkyIIW9t.js +0 -1
  308. package/dist/chunks/useManagePlugins-BWROoGDs.js +0 -1
  309. package/dist/chunks/useSettingsErrors-CPVQbsqq.js +0 -1
  310. package/dist/chunks/util-BfqXOA-P.js +0 -1
  311. package/dist/chunks/validatePlugin-jrcrYEIu.js +0 -1
  312. package/dist/chunks/worktree-D0k_pCEz.js +0 -1
@@ -0,0 +1 @@
1
+ import{D_ as e,E_ as t,k_ as n}from"./loadAgentsDir-mcRW90aq.js";t();export{e as loadPluginHooks,n as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{c as n,i as r}from"./debug-Dr1SjdXn.js";var i=t({clearSkillIndexCache:()=>m,computeIdf:()=>u,computeWeightedTf:()=>l,cosineSimilarity:()=>d,getSkillIndex:()=>h,searchSkills:()=>g,tokenize:()=>o,tokenizeAndStem:()=>c});function a(e){return v.test(e)}function o(e){let t=[],n=e.toLowerCase(),r=0;for(;r<n.length;)if(a(n[r])){let e=``;for(;r<n.length&&a(n[r]);)e+=n[r],r++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[r])){let e=``;for(;r<n.length&&/[a-z0-9\-_]/.test(n[r]);)e+=n[r],r++;let i=e.replace(/^[-_]+|[-_]+$/g,``);i&&!_.has(i)&&t.push(i)}else r++;return t}function s(e){if(a(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 c(e){return o(e).map(s)}function l(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 u(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 d(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 f(e){return e.toLowerCase().replace(/[-_]/g,` `)}function p(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function m(){C=null,w=null,T=null,n(`[skill-search] index cache cleared`)}async function h(e){if(C&&T===e)return C;let{getCommands:t}=await import(`./commands-D_-v6_A0.js`),r=await t(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,a=e.allowedTools?.join(` `)??``,o=c(t),u=p(t),d=[...o,...u.map(s).filter(e=>!_.has(e))],m=c(n),h=c(r??``),g=c(a),v=[...new Set([...d,...m,...h,...g])],b=l([{tokens:d,weight:y.name},{tokens:h,weight:y.whenToUse},{tokens:m,weight:y.description},{tokens:g,weight:y.allowedTools}]);i.push({name:t,normalizedName:f(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:v,tfVector:b})}let a=u(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(a.get(t)??0));return C=i,w=a,T=e,n(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function g(e,t,n=5){if(t.length===0||!e?.trim())return[];let r=c(e);if(r.length===0)return[];let i=new Map,o=new Map;for(let e of r)o.set(e,(o.get(e)??0)+1);let s=1;for(let e of o.values())e>s&&(s=e);for(let[e,t]of o)i.set(e,t/s);let l=C===t&&w?w:u(t),f=new Map;for(let[e,t]of i)f.set(e,t*(l.get(e)??0));let p=r.filter(e=>a(e[0]??``)),m=r.filter(e=>!a(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=d(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<S&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=x&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=b&&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 _,v,y,b,x,S,C,w,T,E=e((()=>{r(),_=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(`.`)),v=/[\u4e00-\u9fff\u3400-\u4dbf]/,y={name:3,whenToUse:2,description:1,allowedTools:.3},b=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),x=4,S=2,C=null,w=null,T=null}));export{h as a,g as c,d as i,o as l,u as n,E as o,l as r,i as s,m as t,c as u};
1
+ import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{c as n,i as r}from"./debug-Dr1SjdXn.js";var i=t({clearSkillIndexCache:()=>m,computeIdf:()=>u,computeWeightedTf:()=>l,cosineSimilarity:()=>d,getSkillIndex:()=>h,searchSkills:()=>g,tokenize:()=>o,tokenizeAndStem:()=>c});function a(e){return v.test(e)}function o(e){let t=[],n=e.toLowerCase(),r=0;for(;r<n.length;)if(a(n[r])){let e=``;for(;r<n.length&&a(n[r]);)e+=n[r],r++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[r])){let e=``;for(;r<n.length&&/[a-z0-9\-_]/.test(n[r]);)e+=n[r],r++;let i=e.replace(/^[-_]+|[-_]+$/g,``);i&&!_.has(i)&&t.push(i)}else r++;return t}function s(e){if(a(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 c(e){return o(e).map(s)}function l(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 u(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 d(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 f(e){return e.toLowerCase().replace(/[-_]/g,` `)}function p(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function m(){C=null,w=null,T=null,n(`[skill-search] index cache cleared`)}async function h(e){if(C&&T===e)return C;let{getCommands:t}=await import(`./commands-ByFXqW43.js`),r=await t(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,a=e.allowedTools?.join(` `)??``,o=c(t),u=p(t),d=[...o,...u.map(s).filter(e=>!_.has(e))],m=c(n),h=c(r??``),g=c(a),v=[...new Set([...d,...m,...h,...g])],b=l([{tokens:d,weight:y.name},{tokens:h,weight:y.whenToUse},{tokens:m,weight:y.description},{tokens:g,weight:y.allowedTools}]);i.push({name:t,normalizedName:f(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:v,tfVector:b})}let a=u(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(a.get(t)??0));return C=i,w=a,T=e,n(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function g(e,t,n=5){if(t.length===0||!e?.trim())return[];let r=c(e);if(r.length===0)return[];let i=new Map,o=new Map;for(let e of r)o.set(e,(o.get(e)??0)+1);let s=1;for(let e of o.values())e>s&&(s=e);for(let[e,t]of o)i.set(e,t/s);let l=C===t&&w?w:u(t),f=new Map;for(let[e,t]of i)f.set(e,t*(l.get(e)??0));let p=r.filter(e=>a(e[0]??``)),m=r.filter(e=>!a(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=d(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<S&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=x&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=b&&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 _,v,y,b,x,S,C,w,T,E=e((()=>{r(),_=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(`.`)),v=/[\u4e00-\u9fff\u3400-\u4dbf]/,y={name:3,whenToUse:2,description:1,allowedTools:.3},b=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),x=4,S=2,C=null,w=null,T=null}));export{h as a,g as c,d as i,o as l,u as n,E as o,l as r,i as s,m as t,c as u};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,o as n,t as r}from"./localSearch-CCCDKpYx.js";n();export{r as clearSkillIndexCache,e as getSkillIndex,t as searchSkills};
@@ -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{Ir as t,Sr as n}from"./loadAgentsDir-mcRW90aq.js";import{Gr as r,t as i}from"./src-P_wYS_NJ2.js";import{Wt as a,k as o,pt as s}from"./state-BPFYBqm1.js";import{n as c,t as l}from"./cwd-Besi3Os3.js";import{g as u,n as d,wn as f,xn as p}from"./settings-DiBMs2gM.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-Dc5r6LgE.js";import{Bt as v,Gt as y,Pt as b}from"./model-C29_32BD.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.13`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:p(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:y()?b():`API Usage Billing`,agentName:d().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{a(),i(),v(),c(),f(),g(),n(),u(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
@@ -1,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{La as r,Mp as i,Np as a,cb as o,dC as s,uC as c,ub as l,wa as u,za as d}from"./loadAgentsDir-mcRW90aq.js";import{R as f,V as p,f as m,u as h}from"./debug-Dr1SjdXn.js";import{_ as g,ei as _,ti as v,u as y}from"./model-C29_32BD.js";import{fn as b,hn as x}from"./prompt-DIlq8NTy.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
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(),g()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t||!t[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i&&i[1]){let e=i[1].match(P);if(e&&e[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:r,userContext:i,systemContext:s,toolUseContext:l}=t,d=o(l.readFileState);d.delete(e.path);let f={...l,readFileState:d},m=``;try{let t=(await c.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of a({agentDefinition:A(),promptMessages:[u({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:i,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{i(),x(),s(),f(),l(),d(),_(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,v(async function(e){let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!r(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};