@readmagic/workmate 0.0.10 → 0.0.12

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 (437) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-Vmmm7p1c.js → AddWorkspaceDirectory-CtRxzRny.js} +1 -1
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-_bI4jo_P.js +1 -0
  3. package/dist/chunks/AgentsMdExternalIncludesDialog-_yJJ0wqu.js +1 -0
  4. package/dist/chunks/App-DoAZ7CYS.js +1 -0
  5. package/dist/chunks/ApproveApiKey-C8LwmDM2.js +1 -0
  6. package/dist/chunks/ApproveApiKey-DQP3qmb0.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-CDA2noEk.js +2 -0
  8. package/dist/chunks/{BypassPermissionsModeDialog-CLSACUmo.js → BypassPermissionsModeDialog-COI_V57z.js} +1 -1
  9. package/dist/chunks/ConsoleOAuthFlow-Dn8fO-o_.js +1 -0
  10. package/dist/chunks/{DiffDialog-9AYwtupw.js → DiffDialog-CRWtQ1R5.js} +3 -3
  11. package/dist/chunks/Doctor-CZ513Df9.js +3 -0
  12. package/dist/chunks/Doctor-CzPvNZzF.js +1 -0
  13. package/dist/chunks/ExitFlow-BFeftDv0.js +2 -0
  14. package/dist/chunks/{Grove-B9-hhkZA.js → Grove-DRZrhbF0.js} +2 -2
  15. package/dist/chunks/{HybridTransport-MxJ_W_np.js → HybridTransport-BadJQe6u.js} +4 -4
  16. package/dist/chunks/InvalidConfigDialog-DQaT6aen.js +1 -0
  17. package/dist/chunks/{InvalidSettingsDialog-YyQcHocx.js → InvalidSettingsDialog-ISzcIGPU.js} +1 -1
  18. package/dist/chunks/MCPConnectionManager-BpjC7CEo.js +1 -0
  19. package/dist/chunks/MCPToolListView-Rb1Q--jG.js +1 -0
  20. package/dist/chunks/{McpParsingWarnings-BCpfHaBK.js → McpParsingWarnings-xv0RZCSL.js} +1 -1
  21. package/dist/chunks/MessageSelector-BHB55sZb.js +3 -0
  22. package/dist/chunks/Messages-CPX-nIdA.js +11 -0
  23. package/dist/chunks/Onboarding-CymgipoF.js +1 -0
  24. package/dist/chunks/{PromptInputFooterSuggestions-BSA9NrZc.js → PromptInputFooterSuggestions-8-awCxOn.js} +1 -1
  25. package/dist/chunks/PromptInputHelpMenu-BP3UgCdi.js +1 -0
  26. package/dist/chunks/QueryEngine-HkswHUNv.js +1 -0
  27. package/dist/chunks/REPL-CZfg65kg.js +133 -0
  28. package/dist/chunks/REPL-eZsYNBfl.js +1 -0
  29. package/dist/chunks/RemoteSessionManager-B4jqKVd3.js +2 -0
  30. package/dist/chunks/ResumeConversation-B03XN_SP.js +1 -0
  31. package/dist/chunks/{SSETransport-CoxQ8YpH.js → SSETransport-je346ofV.js} +3 -3
  32. package/dist/chunks/SearchExtraToolsTool-C85Sanww.js +1 -0
  33. package/dist/chunks/Settings-C8GKWod1.js +2 -0
  34. package/dist/chunks/{TeleportProgress-Doucj-50.js → TeleportProgress-zmdAsogZ.js} +1 -1
  35. package/dist/chunks/{TeleportRepoMismatchDialog-B5I73j7Y.js → TeleportRepoMismatchDialog-CG32I4cO.js} +1 -1
  36. package/dist/chunks/{TeleportResumeWrapper-D6kpr2c6.js → TeleportResumeWrapper-2Yjr74Lq.js} +1 -1
  37. package/dist/chunks/{ThemePicker-DrC8tlp0.js → ThemePicker-p7_hHk1V.js} +1 -1
  38. package/dist/chunks/TrustDialog-BVcny9vs.js +1 -0
  39. package/dist/chunks/{ValidationErrorsList-D_OUa4RT.js → ValidationErrorsList-DSSUWdgd.js} +1 -1
  40. package/dist/chunks/{WelcomeV2-DvfQHnZY.js → WelcomeV2-BnSYhyfu.js} +1 -1
  41. package/dist/chunks/add-dir-Bd7pilVx.js +1 -0
  42. package/dist/chunks/{agentDisplay-B755vMZE.js → agentDisplay-CfMLGPGH.js} +1 -1
  43. package/dist/chunks/{agents-CIvP8l0s.js → agents-BT82hwBN.js} +1 -1
  44. package/dist/chunks/agents-qR6r94-F.js +103 -0
  45. package/dist/chunks/allErrors-CS77lRvU.js +1 -0
  46. package/dist/chunks/api-C4VflFau.js +1 -0
  47. package/dist/chunks/{api-nSHc_GIQ.js → api-DAubp5q9.js} +1 -1
  48. package/dist/chunks/auth-CNCehj7y.js +1 -0
  49. package/dist/chunks/auth-DrD9DW6X.js +1 -0
  50. package/dist/chunks/{auth-5QB6tsfB.js → auth-yDsvFcM7.js} +2 -2
  51. package/dist/chunks/{autoMode-BnUiK9Cu.js → autoMode-C2lnBot9.js} +6 -6
  52. package/dist/chunks/backgroundHousekeeping-DbpTGbwl.js +1 -0
  53. package/dist/chunks/backgroundHousekeeping-SpTxViUq.js +17 -0
  54. package/dist/chunks/{banner-D0P7wXdw.js → banner-BcAM7iSx.js} +1 -1
  55. package/dist/chunks/bg-Ci7pG4eo.js +9 -0
  56. package/dist/chunks/{branch-DFWa4Oxo.js → branch-DJiMa8td.js} +2 -2
  57. package/dist/chunks/{break-cache-Chj9i9MP.js → break-cache-4rlQORVk.js} +2 -2
  58. package/dist/chunks/{bridgeConfig-Bb6URf4Q.js → bridgeConfig-BB6Hgali.js} +1 -1
  59. package/dist/chunks/bridgeConfig-Ccm79Jze.js +1 -0
  60. package/dist/chunks/{bridgeMessaging-C3huGcR3.js → bridgeMessaging-C9D0Lly2.js} +1 -1
  61. package/dist/chunks/{bridgePointer-DLYyvRKb.js → bridgePointer-DHWK3LEe.js} +1 -1
  62. package/dist/chunks/{bridgeStatusUtil-DFMftajD.js → bridgeStatusUtil-D8UbcVrZ.js} +1 -1
  63. package/dist/chunks/{btw-DSK9R2C8.js → btw-BO2B23f-.js} +1 -1
  64. package/dist/chunks/caches-BQmbXerw.js +1 -0
  65. package/dist/chunks/caches-Dtjmjm6G.js +1 -0
  66. package/dist/chunks/{capacityWake-amzeeBz0.js → capacityWake-ByL6fM6I.js} +1 -1
  67. package/dist/chunks/ccrClient-BG9HU_fW.js +1 -0
  68. package/dist/chunks/{claudeDesktop-CsJfF1b-.js → claudeDesktop-Ct_hyICL.js} +1 -1
  69. package/dist/chunks/{clear-ClFDpWVJ.js → clear-B4XN2fib.js} +1 -1
  70. package/dist/chunks/cliLaunch-OPOtzhvA.js +1 -0
  71. package/dist/chunks/client-7lIxWcaM.js +1 -0
  72. package/dist/chunks/client-B-2ccQZk.js +1 -0
  73. package/dist/chunks/{client-DFlE4fYh.js → client-BMA05FW8.js} +1 -1
  74. package/dist/chunks/commands-D_-v6_A0.js +1 -0
  75. package/dist/chunks/compact-kM0ETtB2.js +2 -0
  76. package/dist/chunks/config-9rLTDOYW.js +3 -0
  77. package/dist/chunks/config-Crf6Mzu3.js +1 -0
  78. package/dist/chunks/{config-CVHMRMwd.js → config-DMKtiMzJ.js} +1 -1
  79. package/dist/chunks/context-BY5oO5is.js +1 -0
  80. package/dist/chunks/{context-noninteractive-D5iQhasu.js → context-noninteractive-mAQt1p9l.js} +5 -5
  81. package/dist/chunks/context-noninteractive-tc4KTYfI.js +1 -0
  82. package/dist/chunks/conversation-CFIn-KsW.js +1 -0
  83. package/dist/chunks/conversation-DPI7VKBL.js +1 -0
  84. package/dist/chunks/createSSHSession-DjLSGm-0.js +6 -0
  85. package/dist/chunks/createSession-CftIZ3aq.js +1 -0
  86. package/dist/chunks/createSession-CjdLcRec.js +1 -0
  87. package/dist/chunks/crossProjectResume-BJqXBzkf.js +40 -0
  88. package/dist/chunks/{cwd-Cfdf7z7s.js → cwd-Besi3Os3.js} +1 -1
  89. package/dist/chunks/cwd-DpqwaYHw.js +1 -0
  90. package/dist/chunks/datadog-BGati3aQ.js +1 -0
  91. package/dist/chunks/debug-Dr1SjdXn.js +39 -0
  92. package/dist/chunks/{debugUtils-DX0KAXNK.js → debugUtils-cK-iOsEV.js} +1 -1
  93. package/dist/chunks/detached-CqfQYVOi.js +5 -0
  94. package/dist/chunks/detectRepository-BsKZDRoI.js +1 -0
  95. package/dist/chunks/detectRepository-CMEkS5_2.js +1 -0
  96. package/dist/chunks/{diff-jEJJe58I.js → diff-1HsxKGBh.js} +1 -1
  97. package/dist/chunks/{directoryCompletion-BbXR2bfy.js → directoryCompletion-ByBTSuLu.js} +1 -1
  98. package/dist/chunks/doctor-CJfvt9zR.js +1 -0
  99. package/dist/chunks/entry-CrZCZQQC.js +14 -0
  100. package/dist/chunks/{envUtils-BDhHQY0-.js → envUtils-DcaKZlRU.js} +1 -1
  101. package/dist/chunks/{esm-Cf4nSRjF.js → esm-BkOWaWVb.js} +1 -1
  102. package/dist/chunks/{execFileNoThrow-Dwu6psHW.js → execFileNoThrow-mXq4K0rl.js} +2 -2
  103. package/dist/chunks/execSyncWrapper-Ne33rRiD.js +1 -0
  104. package/dist/chunks/exit-B8MA4Ltm.js +1 -0
  105. package/dist/chunks/{extraUsage-Mi66JwFZ.js → extraUsage-0pUcYexI.js} +1 -1
  106. package/dist/chunks/extractMemories-DqhN0lba.js +1 -0
  107. package/dist/chunks/fast-DT5WDe3L.js +1 -0
  108. package/dist/chunks/{fast-BU4iUZ8E.js → fast-VOu2FUlV.js} +1 -1
  109. package/dist/chunks/{fileSuggestions-BMfQIDdW.js → fileSuggestions-Be-pyLLq.js} +3 -3
  110. package/dist/chunks/firstPartyEventLogger-B8RVGBQB.js +1 -0
  111. package/dist/chunks/{firstPartyEventLogger-B3cXgR67.js → firstPartyEventLogger-aFhcruXA.js} +2 -2
  112. package/dist/chunks/{flushGate-DgSDVGKZ.js → flushGate-BUSrMj_6.js} +1 -1
  113. package/dist/chunks/gemini-DB4M-MYv.js +1 -0
  114. package/dist/chunks/generateSessionName-DhCypqJ_.js +1 -0
  115. package/dist/chunks/{genericProcessUtils-CmsUPyRz.js → genericProcessUtils-Dc1pfb7J.js} +1 -1
  116. package/dist/chunks/git-Bs1vtuvX.js +1 -0
  117. package/dist/chunks/git-CoQQ6YEf.js +6 -0
  118. package/dist/chunks/githubRepoPathMapping-CmpEaQoo.js +1 -0
  119. package/dist/chunks/goal-TxXtfkQ6.js +3 -0
  120. package/dist/chunks/{grok-BXMvezWb.js → grok-D2a_J5wE.js} +1 -1
  121. package/dist/chunks/{grove-CeOjTaY6.js → grove-BnzBbGsX.js} +1 -1
  122. package/dist/chunks/{help-5DNZO6_H.js → help-C5ankDi4.js} +1 -1
  123. package/dist/chunks/{hooks-C637tFtd.js → hooks-BZS105Rd.js} +3 -3
  124. package/dist/chunks/hooks-D-twhU_z.js +1 -0
  125. package/dist/chunks/{initReplBridge-D1h10vQ9.js → initReplBridge-DL4klK0C.js} +1 -1
  126. package/dist/chunks/{install-C-6ItpH0.js → install-NZvHd_40.js} +1 -1
  127. package/dist/chunks/{instrumentation-DaiPDUst.js → instrumentation-CjBlVlFq.js} +5 -5
  128. package/dist/chunks/{job-BeYzQUiR.js → job-D502Zf8J.js} +1 -1
  129. package/dist/chunks/jwtUtils-FQWtM6iM.js +1 -0
  130. package/dist/chunks/keybindings-D9Boc8FD.js +2 -0
  131. package/dist/chunks/{launchLocalMemory-CE4J98xO.js → launchLocalMemory-DxC3LojF.js} +2 -2
  132. package/dist/chunks/{launchOnboarding-BfTdC6vp.js → launchOnboarding-BLp5k_H4.js} +1 -1
  133. package/dist/chunks/{loadAgentsDir-C7lOqvfh.js → loadAgentsDir-BXtV2jiO.js} +563 -570
  134. package/dist/chunks/loadAgentsDir-BjsAQWqt.js +1 -0
  135. package/dist/chunks/loadPluginHooks-Dt3XQ-3N.js +1 -0
  136. package/dist/chunks/{localSearch-BKrznW5x.js → localSearch-CeP4ef0a.js} +1 -1
  137. package/dist/chunks/localSearch-Cz8Ot7k2.js +1 -0
  138. package/dist/chunks/{log-CezCRpAN.js → log-27kCA_9u.js} +1 -1
  139. package/dist/chunks/{logoV2Utils-BkQfyQ1-.js → logoV2Utils-CEnU8qad.js} +1 -1
  140. package/dist/chunks/{magicDocs-BpVcON9o.js → magicDocs-YtfrqVC6.js} +4 -4
  141. package/dist/chunks/main-CGLCy2pM.js +31 -0
  142. package/dist/chunks/main-CkjTzYj1.js +513 -0
  143. package/dist/chunks/{managedEnv-DhWRJ5DK.js → managedEnv-B-BNY0xC.js} +1 -1
  144. package/dist/chunks/managedEnv-K9Si1UuL.js +1 -0
  145. package/dist/chunks/{mappers-bOab8ipV.js → mappers-IuJeXgvr.js} +1 -1
  146. package/dist/chunks/mcp-DMBoeQzm.js +6 -0
  147. package/dist/chunks/mcp-TMOPfLcW.js +1 -0
  148. package/dist/chunks/mcp-x5rgv-uv.js +2 -0
  149. package/dist/chunks/{memoize-DsqYrbeR.js → memoize-Co4vS6UF.js} +1 -1
  150. package/dist/chunks/memory-DDUoR63T.js +1 -0
  151. package/dist/chunks/{mode-DlKnUM8l.js → mode-GzBwK--u.js} +2 -2
  152. package/dist/chunks/model-BydaMaPr.js +1 -0
  153. package/dist/chunks/model-CDnVaVDR.js +1 -0
  154. package/dist/chunks/model-CIvbC7rW.js +1 -0
  155. package/dist/chunks/{modelOptions-CxP067Qv.js → modelOptions-ut0xePEe.js} +1 -1
  156. package/dist/chunks/nativeInstaller-fgCMR_c0.js +1 -0
  157. package/dist/chunks/oauth-D38aRTUb.js +1 -0
  158. package/dist/chunks/oauth-U649LV5H.js +1 -0
  159. package/dist/chunks/{observationStore-BpjlK0pG.js → observationStore-D0rm3GhP.js} +1 -1
  160. package/dist/chunks/omit-D4Udf-p-.js +1 -0
  161. package/dist/chunks/onChangeAppState-WbvtqDtk.js +1 -0
  162. package/dist/chunks/{openai-B9C2XN5Q.js → openai-DaVFXyBB.js} +3 -3
  163. package/dist/chunks/panel-CoF2a-h4.js +1 -0
  164. package/dist/chunks/parser-B2PlJg4C.js +1 -0
  165. package/dist/chunks/{parser-BwPXQomy.js → parser-CUUiH40T.js} +1 -1
  166. package/dist/chunks/{partition-D-UhsUCx.js → partition-CzW_31Y1.js} +1 -1
  167. package/dist/chunks/permissions-BT3lxYBM.js +3 -0
  168. package/dist/chunks/pidLock-d1VPd6CG.js +3 -0
  169. package/dist/chunks/{plan-CyU2zrCK.js → plan-M9DG3AqN.js} +1 -1
  170. package/dist/chunks/{platform-BMPbglug.js → platform-Dg1c9F_1.js} +1 -1
  171. package/dist/chunks/plugin-BiNHuq3h.js +17 -0
  172. package/dist/chunks/pluginAutoupdate-B5lel6s5.js +1 -0
  173. package/dist/chunks/pluginBlocklist-CNGmIlwU.js +1 -0
  174. package/dist/chunks/pluginCliCommands-WLOEhb2M.js +1 -0
  175. package/dist/chunks/pluginFlagging-CXSSOj4J.js +1 -0
  176. package/dist/chunks/pluginOperations-BFbty6WT.js +2 -0
  177. package/dist/chunks/pluginStartupCheck-BEd0VeQC.js +1 -0
  178. package/dist/chunks/pluginStartupCheck-Bcdxg484.js +1 -0
  179. package/dist/chunks/plugins-BMZ3aYKP.js +4 -0
  180. package/dist/chunks/poorMode-Djw0P9Gu.js +1 -0
  181. package/dist/chunks/{poorMode-DEwQOAJt.js → poorMode-DxgO_bUb.js} +1 -1
  182. package/dist/chunks/print-DmoLcwVq.js +26 -0
  183. package/dist/chunks/processBashCommand-B-VqME9O.js +1 -0
  184. package/dist/chunks/processSlashCommand-D6zEooTy.js +5 -0
  185. package/dist/chunks/{projectContext-CIxul6vA.js → projectContext-BN2ZWzOG.js} +1 -1
  186. package/dist/chunks/{projectContext-RUMJB798.js → projectContext-Bw3o5BrN.js} +1 -1
  187. package/dist/chunks/prompt-C3RRe4kW.js +1 -0
  188. package/dist/chunks/{prompt-M2lu8_Oa.js → prompt-CRc2QEZ5.js} +5 -5
  189. package/dist/chunks/prompt-EtAanewG.js +1 -0
  190. package/dist/chunks/{promptEditor-DhcZY-iu.js → promptEditor-Bo1d8ZLq.js} +2 -2
  191. package/dist/chunks/{protocolHandler-CkFaJKKo.js → protocolHandler-B83fCYI4.js} +4 -4
  192. package/dist/chunks/{proxy-CuMaO_YV.js → proxy-BEKNaTXI.js} +3 -3
  193. package/dist/chunks/rcDebugLog-DSchf3Hs.js +1 -0
  194. package/dist/chunks/reconciler-BGav_ezX.js +1 -0
  195. package/dist/chunks/refresh-DumNiLvM.js +1 -0
  196. package/dist/chunks/{registerProtocol-CsNYRZKr.js → registerProtocol-DduKPsn_.js} +2 -2
  197. package/dist/chunks/{reload-plugins-B7JAE3b4.js → reload-plugins-DNEgQ5vo.js} +1 -1
  198. package/dist/chunks/{remoteBridgeCore-CFLJhsB6.js → remoteBridgeCore-BGOqHADF.js} +1 -1
  199. package/dist/chunks/remoteManagedSettings-26nhzuca.js +1 -0
  200. package/dist/chunks/{rename-BCp2Vtqu.js → rename-BPknfVGF.js} +1 -1
  201. package/dist/chunks/{renderOptions-Q5oCLFIC.js → renderOptions-45A-EdsK.js} +1 -1
  202. package/dist/chunks/resume-DGz04xDh.js +2 -0
  203. package/dist/chunks/ripgrep-BLQnqPnE.js +1 -0
  204. package/dist/chunks/{ripgrep-DvOOsDMv.js → ripgrep-DQ_ILUJV.js} +5 -5
  205. package/dist/chunks/{runtimeObserver-CS_3BDNo.js → runtimeObserver-BZrF3GnQ.js} +4 -4
  206. package/dist/chunks/{runtimeObserver-DYUva6g-.js → runtimeObserver-CBV-7-w7.js} +1 -1
  207. package/dist/chunks/sandbox-adapter-DUqeqkQD.js +1 -0
  208. package/dist/chunks/sandbox-toggle-D61gVqcT.js +1 -0
  209. package/dist/chunks/searchExtraTools-CgsV6kb1.js +1 -0
  210. package/dist/chunks/{session-CO3gEqQP.js → session-Dy-_R7KP.js} +2 -2
  211. package/dist/chunks/sessionFileAccessHooks-BJlrZaRD.js +1 -0
  212. package/dist/chunks/sessionObserver-BGYoLRGx.js +1 -0
  213. package/dist/chunks/{sessionObserver-YkRHC-Aa.js → sessionObserver-CyLpHSkw.js} +1 -1
  214. package/dist/chunks/{sessionState-Bifmu95-.js → sessionState-DSWN4tMV.js} +2 -2
  215. package/dist/chunks/sessionStorage-zJ1esSCE.js +1 -0
  216. package/dist/chunks/{sessionStoragePortable-JZnGwqUM.js → sessionStoragePortable-BhkGMZWp.js} +1 -1
  217. package/dist/chunks/{sessionTitle-COBSgSXS.js → sessionTitle-L5tyJgdU.js} +2 -2
  218. package/dist/chunks/{sessionTracing-BrNx1k2V.js → sessionTracing-DpHGGIZm.js} +3 -3
  219. package/dist/chunks/settings-3ionQKNv.js +1 -0
  220. package/dist/chunks/settings-DiBMs2gM.js +20 -0
  221. package/dist/chunks/settingsSync-dBqlrbcU.js +1 -0
  222. package/dist/chunks/setup-zf3v3ICe.js +3 -0
  223. package/dist/chunks/{shadowedRuleDetection-DEaw-X5j.js → shadowedRuleDetection-DZ0AA2Rw.js} +1 -1
  224. package/dist/chunks/{shellQuote-BYeOv3Ip.js → shellQuote-C_I6DHLV.js} +2 -2
  225. package/dist/chunks/{sideQuestion-D0OKljee.js → sideQuestion-BYT8FdPF.js} +2 -2
  226. package/dist/chunks/sinks-DppGvgz1.js +1 -0
  227. package/dist/chunks/sinks-mFsijQ_S.js +2 -0
  228. package/dist/chunks/skillChangeDetector-D-iq09Xs.js +1 -0
  229. package/dist/chunks/{skillGapStore-N_kmvXML.js → skillGapStore-DQXHqoP7.js} +2 -2
  230. package/dist/chunks/{skillLifecycle-C4F5RXuh.js → skillLifecycle-BG_RnGSh.js} +2 -2
  231. package/dist/chunks/skillSearchPanel-DxYP4Q6R.js +21 -0
  232. package/dist/chunks/skills-BD-2ofXA.js +1 -0
  233. package/dist/chunks/startupProfiler-CUlV07MD.js +1 -0
  234. package/dist/chunks/{startupProfiler-L_UWZ03w.js → startupProfiler-Dc5r6LgE.js} +2 -2
  235. package/dist/chunks/{state-BemZdQIl.js → state-BPFYBqm1.js} +1 -1
  236. package/dist/chunks/state-CsdHk8n-.js +1 -0
  237. package/dist/chunks/{stats-IzV0_vEc.js → stats-BkadEKa-.js} +1 -1
  238. package/dist/chunks/status-BmHu-c7I.js +2 -0
  239. package/dist/chunks/{status-CeVP_uDT.js → status-CrmnCDIE.js} +1 -1
  240. package/dist/chunks/{statusNoticeHelpers-Bb9gxdSt.js → statusNoticeHelpers-DakAVtQO.js} +1 -1
  241. package/dist/chunks/{stringUtils-C84IJ91d.js → stringUtils-Df-Lnjxd.js} +1 -1
  242. package/dist/chunks/{subprocessEnv-Ci8VV_bi.js → subprocessEnv-CNBOhlDV.js} +1 -1
  243. package/dist/chunks/subprocessEnv-DtBCqQIo.js +1 -0
  244. package/dist/chunks/switcher-Dm646gO5.js +1 -0
  245. package/dist/chunks/switcher-sYTxnJQA.js +1 -0
  246. package/dist/chunks/syncCache-BofuFJEe.js +1 -0
  247. package/dist/chunks/{tasks-DZDhgx0w.js → tasks-NpI1iEem.js} +1 -1
  248. package/dist/chunks/teleport-Bs3kEipi.js +1 -0
  249. package/dist/chunks/{templateJobs-CrNPEKkh.js → templateJobs-C94jEE6O.js} +2 -2
  250. package/dist/chunks/{terminalSetup-CBqcwQll.js → terminalSetup-CbXKCpWM.js} +1 -1
  251. package/dist/chunks/{terminalSetup-D-N8YPiQ.js → terminalSetup-fwhFTxGi.js} +4 -4
  252. package/dist/chunks/{theme-Dazsirbw.js → theme-CEi3b_8f.js} +1 -1
  253. package/dist/chunks/tmux-d3cNCIZA.js +1 -0
  254. package/dist/chunks/{toolEventObserver-lnHJ9fLQ.js → toolEventObserver-DlL9CHmI.js} +1 -1
  255. package/dist/chunks/toolPool-DIT_uhtD.js +1 -0
  256. package/dist/chunks/trustedDevice-BokywSKL.js +1 -0
  257. package/dist/chunks/trustedDevice-Bzz03jCy.js +1 -0
  258. package/dist/chunks/{types-3j8PS-Du.js → types-BJ7qTz75.js} +2 -2
  259. package/dist/chunks/udsClient-CF8BmZgN.js +1 -0
  260. package/dist/chunks/{updateCCB-BPe9_FW6.js → updateCCB-CzBxsuJe.js} +1 -1
  261. package/dist/chunks/{upstreamproxy-DF00RzGG.js → upstreamproxy-BuBFDFAD.js} +2 -2
  262. package/dist/chunks/{useExitOnCtrlCDWithKeybindings-ChqBs9Lr.js → useExitOnCtrlCDWithKeybindings-BHQfwlAl.js} +1 -1
  263. package/dist/chunks/useMainLoopModel-BkyIIW9t.js +1 -0
  264. package/dist/chunks/useManagePlugins-BWROoGDs.js +1 -0
  265. package/dist/chunks/{useMergedTools-Dk5cPqLc.js → useMergedTools-CHxnwR7R.js} +1 -1
  266. package/dist/chunks/{useSearchInput-C7Y1I9P9.js → useSearchInput-q2CFPU4W.js} +1 -1
  267. package/dist/chunks/{useSettingsErrors-DAEO7AyB.js → useSettingsErrors-CPVQbsqq.js} +1 -1
  268. package/dist/chunks/{userAgent-CIq27vUR.js → userAgent-B7WkjI6I.js} +1 -1
  269. package/dist/chunks/util-BfqXOA-P.js +1 -0
  270. package/dist/chunks/{validatePlugin-Kk6pxnO2.js → validatePlugin-jrcrYEIu.js} +1 -1
  271. package/dist/chunks/{vim-EYQn94Kx.js → vim-C4Hs5U2h.js} +1 -1
  272. package/dist/chunks/{which-DzFN5TNM.js → which-mplwBbc0.js} +1 -1
  273. package/dist/chunks/windowsPaths-B8p9tFRF.js +1 -0
  274. package/dist/chunks/windowsPaths-C7Mdo9aU.js +1 -0
  275. package/dist/chunks/{workSecret-DUqdPy44.js → workSecret-XLodD7tw.js} +1 -1
  276. package/dist/chunks/workerRegistry-Cfo7bKlm.js +6 -0
  277. package/dist/chunks/worktree-D0k_pCEz.js +1 -0
  278. package/dist/cli.js +1 -1
  279. package/package.json +2 -3
  280. package/dist/chunks/App-C2yQjBgY.js +0 -1
  281. package/dist/chunks/ApproveApiKey-CKbv5C1x.js +0 -1
  282. package/dist/chunks/ApproveApiKey-MscC-ssL.js +0 -1
  283. package/dist/chunks/BackgroundTasksDialog-CL5NWsFL.js +0 -2
  284. package/dist/chunks/ClaudeMdExternalIncludesDialog-BqNxQOXJ.js +0 -1
  285. package/dist/chunks/ClaudeMdExternalIncludesDialog-C0-psohX.js +0 -1
  286. package/dist/chunks/ConsoleOAuthFlow-4mOvEer_.js +0 -1
  287. package/dist/chunks/Doctor-DmgAwce2.js +0 -1
  288. package/dist/chunks/Doctor-jEs9chPk.js +0 -3
  289. package/dist/chunks/ExitFlow-DVKxFdpX.js +0 -2
  290. package/dist/chunks/InvalidConfigDialog-o9DF1REI.js +0 -1
  291. package/dist/chunks/MCPConnectionManager-CUTuaa8T.js +0 -1
  292. package/dist/chunks/MCPToolListView-CvqB4nCw.js +0 -1
  293. package/dist/chunks/MessageSelector-BLzw172f.js +0 -3
  294. package/dist/chunks/Messages-4K5sLmNh.js +0 -11
  295. package/dist/chunks/Onboarding-ClwHS5rh.js +0 -1
  296. package/dist/chunks/PromptInputHelpMenu-Bb4KdIX_.js +0 -1
  297. package/dist/chunks/QueryEngine-DPHLSsax.js +0 -1
  298. package/dist/chunks/REPL-Bf46iQCN.js +0 -1
  299. package/dist/chunks/REPL-DIaAo9M9.js +0 -133
  300. package/dist/chunks/RemoteSessionManager-CS6mywIn.js +0 -2
  301. package/dist/chunks/ResumeConversation-Br2KsBoe.js +0 -1
  302. package/dist/chunks/SearchExtraToolsTool-i_YO3QvV.js +0 -1
  303. package/dist/chunks/Settings-BMXysXIx.js +0 -2
  304. package/dist/chunks/TrustDialog-Fk4m_Sy4.js +0 -1
  305. package/dist/chunks/add-dir-CZ6Clvq8.js +0 -1
  306. package/dist/chunks/agents-DHnNg4h6.js +0 -103
  307. package/dist/chunks/allErrors-CU89tF-z.js +0 -1
  308. package/dist/chunks/api-BSeE6MwB.js +0 -1
  309. package/dist/chunks/auth-BIGJth5U.js +0 -1
  310. package/dist/chunks/auth-CDQMhIZP.js +0 -1
  311. package/dist/chunks/autonomy-C1aSgWPQ.js +0 -1
  312. package/dist/chunks/autonomy-Src6sKCp.js +0 -15
  313. package/dist/chunks/autonomyPanel-DnHpuiy4.js +0 -1
  314. package/dist/chunks/backgroundHousekeeping-B-cw0UcS.js +0 -17
  315. package/dist/chunks/backgroundHousekeeping-BS_8z3_x.js +0 -1
  316. package/dist/chunks/bg-50rllUNh.js +0 -1
  317. package/dist/chunks/bg-DAPORXF3.js +0 -9
  318. package/dist/chunks/bridgeConfig-BeqChxJC.js +0 -1
  319. package/dist/chunks/caches-BTQAW9zc.js +0 -1
  320. package/dist/chunks/caches-BVtSCnV1.js +0 -1
  321. package/dist/chunks/ccrClient-Bu7Tf1Z5.js +0 -1
  322. package/dist/chunks/cliLaunch-BWcoyZDP.js +0 -1
  323. package/dist/chunks/client-BWQ4-rN7.js +0 -1
  324. package/dist/chunks/client-c-3-PW1F.js +0 -1
  325. package/dist/chunks/commands-Bi7k3Wg-.js +0 -1
  326. package/dist/chunks/compact-J-h0Yf4b.js +0 -2
  327. package/dist/chunks/config-Do1870_d.js +0 -3
  328. package/dist/chunks/config-yyFe87vW.js +0 -1
  329. package/dist/chunks/context-Tb1Ca2Q-.js +0 -1
  330. package/dist/chunks/context-noninteractive-soPYKAc9.js +0 -1
  331. package/dist/chunks/conversation-CSEtUxOY.js +0 -1
  332. package/dist/chunks/conversation-Dk1WDQuN.js +0 -1
  333. package/dist/chunks/createSSHSession-CJtzNQdZ.js +0 -6
  334. package/dist/chunks/createSession-DkT1GL8y.js +0 -1
  335. package/dist/chunks/createSession-eE8mswkv.js +0 -1
  336. package/dist/chunks/crossProjectResume-04n3Ppy9.js +0 -40
  337. package/dist/chunks/cwd-ClLru_7T.js +0 -1
  338. package/dist/chunks/datadog-DjeJThpV.js +0 -1
  339. package/dist/chunks/debug-RAynG_nM.js +0 -39
  340. package/dist/chunks/detached-X_yjYR7x.js +0 -5
  341. package/dist/chunks/detectRepository-DgpNd87p.js +0 -1
  342. package/dist/chunks/detectRepository-ctF9KDbb.js +0 -1
  343. package/dist/chunks/doctor-B-Wag4C1.js +0 -1
  344. package/dist/chunks/entry-oIqjxIjQ.js +0 -14
  345. package/dist/chunks/execSyncWrapper-BTZJjCuv.js +0 -1
  346. package/dist/chunks/exit-BtW7LfRX.js +0 -1
  347. package/dist/chunks/extractMemories-CUrdiNcr.js +0 -1
  348. package/dist/chunks/fast-C60p6AqJ.js +0 -1
  349. package/dist/chunks/firstPartyEventLogger-BfCYN7lt.js +0 -1
  350. package/dist/chunks/gemini-BwvSxGgn.js +0 -1
  351. package/dist/chunks/generateSessionName-DlrdedOk.js +0 -1
  352. package/dist/chunks/git-2c7WlGDL.js +0 -6
  353. package/dist/chunks/git-XtKbtJMc.js +0 -1
  354. package/dist/chunks/githubRepoPathMapping-DbWG4hFQ.js +0 -1
  355. package/dist/chunks/goal-ZmSRBx4q.js +0 -3
  356. package/dist/chunks/hooks-DWg07LmS.js +0 -1
  357. package/dist/chunks/jwtUtils-CUPXdX3W.js +0 -1
  358. package/dist/chunks/keybindings-DgIPdBy9.js +0 -2
  359. package/dist/chunks/loadAgentsDir-zikjxLvn.js +0 -1
  360. package/dist/chunks/loadPluginHooks-Cp8MSwAc.js +0 -1
  361. package/dist/chunks/localSearch-ZFyFy5FN.js +0 -1
  362. package/dist/chunks/main-9r5gLzUW.js +0 -605
  363. package/dist/chunks/main-CvOv59-7.js +0 -31
  364. package/dist/chunks/managedEnv-B61yLpwp.js +0 -1
  365. package/dist/chunks/mcp-BckPBjaM.js +0 -6
  366. package/dist/chunks/mcp-CS1DA3JL.js +0 -1
  367. package/dist/chunks/mcp-VcGPYCkW.js +0 -2
  368. package/dist/chunks/memory-C5ohwh-T.js +0 -1
  369. package/dist/chunks/model-BGu1AGq0.js +0 -1
  370. package/dist/chunks/model-BsZ4sP_H.js +0 -1
  371. package/dist/chunks/model-D19IIcll.js +0 -1
  372. package/dist/chunks/nativeInstaller-QB8cEJ18.js +0 -1
  373. package/dist/chunks/oauth-BN2I0_jl.js +0 -1
  374. package/dist/chunks/oauth-C9VBDB0Y.js +0 -1
  375. package/dist/chunks/omit-DDUIPHnl.js +0 -1
  376. package/dist/chunks/onChangeAppState-RBl6H7ho.js +0 -1
  377. package/dist/chunks/panel-KW-wmEvU.js +0 -1
  378. package/dist/chunks/parser-xSBaQRLH.js +0 -1
  379. package/dist/chunks/permissions-BoLXYN1j.js +0 -3
  380. package/dist/chunks/pidLock-nJHbufJN.js +0 -3
  381. package/dist/chunks/plugin-C6-GQke5.js +0 -17
  382. package/dist/chunks/pluginAutoupdate-SlRFJlTT.js +0 -1
  383. package/dist/chunks/pluginBlocklist-n6Imlh3y.js +0 -1
  384. package/dist/chunks/pluginCliCommands-Bd96zSOQ.js +0 -1
  385. package/dist/chunks/pluginFlagging-DZaYzecY.js +0 -1
  386. package/dist/chunks/pluginOperations-D90IRawu.js +0 -2
  387. package/dist/chunks/pluginStartupCheck-Bxkxpm4k.js +0 -1
  388. package/dist/chunks/pluginStartupCheck-CB2q2dLv.js +0 -1
  389. package/dist/chunks/plugins-B9eSjLSA.js +0 -4
  390. package/dist/chunks/poorMode-BAnubpn1.js +0 -1
  391. package/dist/chunks/print-eCRv_Li-.js +0 -26
  392. package/dist/chunks/processBashCommand-B5F2Cl7K.js +0 -1
  393. package/dist/chunks/processSlashCommand-BC_D3cH5.js +0 -5
  394. package/dist/chunks/prompt-C1JPqinc.js +0 -1
  395. package/dist/chunks/prompt-DZhBz_Vu.js +0 -1
  396. package/dist/chunks/rcDebugLog-CARUIORE.js +0 -1
  397. package/dist/chunks/reconciler-B4GDm_iC.js +0 -1
  398. package/dist/chunks/refresh-DBVizOzg.js +0 -1
  399. package/dist/chunks/remoteManagedSettings-xh_MViZH.js +0 -1
  400. package/dist/chunks/resume-DVCSzKvv.js +0 -2
  401. package/dist/chunks/ripgrep-e-iewvTf.js +0 -1
  402. package/dist/chunks/sandbox-adapter-BFZFHplu.js +0 -1
  403. package/dist/chunks/sandbox-toggle--zNSKce_.js +0 -1
  404. package/dist/chunks/searchExtraTools-ui5y2VSE.js +0 -1
  405. package/dist/chunks/sessionFileAccessHooks-CZvCqQJ6.js +0 -1
  406. package/dist/chunks/sessionObserver-Ba7um95p.js +0 -1
  407. package/dist/chunks/sessionStorage-CedwLLQs.js +0 -1
  408. package/dist/chunks/settings-DkDH7WQT.js +0 -1
  409. package/dist/chunks/settings-DnptdP79.js +0 -20
  410. package/dist/chunks/settingsSync-PmU7SmkU.js +0 -1
  411. package/dist/chunks/setup-BEsBuzsk.js +0 -3
  412. package/dist/chunks/sinks-BJHgxz6Y.js +0 -1
  413. package/dist/chunks/sinks-D5-yhcgU.js +0 -2
  414. package/dist/chunks/skillChangeDetector-Dd0WPdkO.js +0 -1
  415. package/dist/chunks/skillSearchPanel-CftorvAM.js +0 -21
  416. package/dist/chunks/skills-C4CTRN9o.js +0 -1
  417. package/dist/chunks/startupProfiler-D4FBdEQr.js +0 -1
  418. package/dist/chunks/state-BAGmpVBn.js +0 -1
  419. package/dist/chunks/state-D_lk6z-C.js +0 -1
  420. package/dist/chunks/status-Dzuw3hBv.js +0 -2
  421. package/dist/chunks/subprocessEnv-CZkA9Cdp.js +0 -1
  422. package/dist/chunks/switcher-4KzBvuKH.js +0 -1
  423. package/dist/chunks/switcher-CCs9xl1z.js +0 -1
  424. package/dist/chunks/syncCache-CBRiRU5x.js +0 -1
  425. package/dist/chunks/teleport-Bw0jSxe9.js +0 -1
  426. package/dist/chunks/tmux-DewYVEBm.js +0 -1
  427. package/dist/chunks/toolPool-CkXFlqsn.js +0 -1
  428. package/dist/chunks/trustedDevice-CFf5yaG-.js +0 -1
  429. package/dist/chunks/trustedDevice-CuwSv8dG.js +0 -1
  430. package/dist/chunks/udsClient-e9dIkwVA.js +0 -1
  431. package/dist/chunks/useMainLoopModel-2-eujv0n.js +0 -1
  432. package/dist/chunks/useManagePlugins-CYBIkaB1.js +0 -1
  433. package/dist/chunks/util-VO98TdOz.js +0 -1
  434. package/dist/chunks/windowsPaths-BU3yQWTB.js +0 -1
  435. package/dist/chunks/windowsPaths-DgZ3YY4a.js +0 -1
  436. package/dist/chunks/workerRegistry-C07BcZIw.js +0 -6
  437. package/dist/chunks/worktree-dFUkhVE_.js +0 -1
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./loadAgentsDir-BXtV2jiO.js";e();export{t as clearAgentDefinitionsCache};
@@ -0,0 +1 @@
1
+ import{A_ as e,N_ as t,j_ as n}from"./loadAgentsDir-BXtV2jiO.js";e();export{n as loadPluginHooks,t as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{a as n,l as r}from"./debug-RAynG_nM.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,r(`[skill-search] index cache cleared`)}async function h(e){if(C&&T===e)return C;let{getCommands:t}=await import(`./commands-Bi7k3Wg-.js`),n=await t(e),i=[];for(let e of n){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,r(`[skill-search] indexed ${i.length} skills from ${n.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((()=>{n(),_=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-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};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,o as n,t as r}from"./localSearch-CeP4ef0a.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{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-BDhHQY0-.js";import{Tn as te,Wt as ne,wn as re}from"./state-BemZdQIl.js";import{S as ie,U as ae,W as oe,d as i,p as se,z as ce}from"./debug-RAynG_nM.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ae(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t||!t.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;re(r),te(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ce(),we(),ie(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Tn as te,Wt as ne,wn as re}from"./state-BPFYBqm1.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-Dr1SjdXn.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t||!t.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;re(r),te(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Cr as t,Lr as n}from"./loadAgentsDir-C7lOqvfh.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-BemZdQIl.js";import{n as c,t as l}from"./cwd-Cfdf7z7s.js";import{Cn as u,bn as d,g as f,n as p}from"./settings-DnptdP79.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-L_UWZ03w.js";import{Bt as v,Gt as y,Pt as b}from"./model-BsZ4sP_H.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.10`,t=o(),n=process.env.DEMO_VERSION?`/code/claude`:d(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:y()?b():`API Usage Billing`,agentName:p().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(),u(),g(),t(),f(),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{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,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,o as n}from"./envUtils-BDhHQY0-.js";import{Ba as r,MC as i,Ra as a,Rp as o,Ta as s,jC as c,jb as l,kb as u,zp as d}from"./loadAgentsDir-C7lOqvfh.js";import{H as f,d as p,p as m,z as h}from"./debug-RAynG_nM.js";import{_ as g,ei as _,ti as v,u as y}from"./model-BsZ4sP_H.js";import{fn as b,hn as x}from"./prompt-M2lu8_Oa.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{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.
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
 
@@ -43,15 +43,15 @@ What NOT to document:
43
43
  - Exhaustive lists of files, functions, or parameters
44
44
  - Step-by-step implementation details
45
45
  - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
46
+ - Information already in AGENTS.md or other project docs
47
47
 
48
48
  Use the Edit tool with file_path: {{docPath}}
49
49
 
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function w(){let e=p(),n=S(t(),`magic-docs`,`prompt.md`);try{return await e.readFile(n,{encoding:`utf-8`})}catch{return C()}}function T(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>Object.hasOwn(t,n)?t[n]:e)}async function E(e,t,n,r){return T(await w(),{docContents:e,docPath:t,docTitle:n,customInstructions:r?`
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function w(){let e=h(),n=S(t(),`magic-docs`,`prompt.md`);try{return await e.readFile(n,{encoding:`utf-8`})}catch{return C()}}function T(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>Object.hasOwn(t,n)?t[n]:e)}async function E(e,t,n,r){return T(await w(),{docContents:e,docPath:t,docTitle:n,customInstructions:r?`
51
51
 
52
52
  DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
53
  The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
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:a,toolUseContext:o}=t,l=u(o.readFileState);l.delete(e.path);let p={...o,readFileState:l},m=``;try{let t=(await c.call({file_path:e.path},p)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(f(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 d({agentDefinition:A(),promptMessages:[s({content:g})],toolUseContext:p,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:i,systemContext:a},availableTools:p.options.tools}));}async function M(){}var N,P,F,I=e((()=>{o(),x(),i(),h(),l(),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`&&!a(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: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};
@@ -0,0 +1,31 @@
1
+ import{i as e,o as t}from"./envUtils-DcaKZlRU.js";import{a as n,t as r}from"./cliLaunch-OPOtzhvA.js";import{dirname as i,join as a,resolve as o}from"path";import{mkdirSync as s,readFileSync as c,unlinkSync as l,writeFileSync as u}from"fs";t();function d(t=`remote-control`){return a(e(),`daemon`,`${t}.json`)}function f(e,t=`remote-control`){let n=d(t);s(i(n),{recursive:!0}),u(n,JSON.stringify(e,null,2),`utf-8`)}function p(e=`remote-control`){let t=d(e);try{let e=c(t,`utf-8`);return JSON.parse(e)}catch{return null}}function m(e=`remote-control`){let t=d(e);try{l(t)}catch{}}function h(e){try{return process.kill(e,0),!0}catch{return!1}}function g(e=`remote-control`){let t=p(e);return t?h(t.pid)?{status:`running`,state:t}:(m(e),{status:`stale`}):{status:`stopped`}}async function _(e=`remote-control`,t=1e4){let n=p(e);if(!n)return!1;let{pid:r}=n;if(!h(r))return m(e),!1;try{process.kill(r,`SIGTERM`)}catch{return m(e),!1}let i=Date.now()+t;for(;Date.now()<i;){if(!h(r))return m(e),!0;await new Promise(e=>setTimeout(e,200))}try{process.kill(r,`SIGKILL`)}catch{}return await new Promise(e=>setTimeout(e,500)),m(e),!0}var v=78,y=2e3,b=12e4,x=2,S=5;async function C(e){let t=e[0]||`status`;switch(t){case`start`:await O(e.slice(1));break;case`stop`:await E();break;case`status`:case`ps`:await T();break;case`bg`:await(await import(`./bg-Ci7pG4eo.js`)).handleBgStart(e.slice(1));break;case`attach`:await(await import(`./bg-Ci7pG4eo.js`)).attachHandler(e[1]);break;case`logs`:await(await import(`./bg-Ci7pG4eo.js`)).logsHandler(e[1]);break;case`kill`:await(await import(`./bg-Ci7pG4eo.js`)).killHandler(e[1]);break;case`--help`:case`-h`:case`help`:w();break;default:console.error(`Unknown daemon subcommand: ${t}`),w(),process.exitCode=1}}function w(){console.log(`
2
+ Work Mate Daemon — background process management
3
+
4
+ USAGE
5
+ claude daemon [subcommand]
6
+
7
+ SUBCOMMANDS
8
+ status Show daemon and session status (default)
9
+ start Start the daemon supervisor
10
+ stop Stop the daemon
11
+ bg Start a background session
12
+ attach Attach to a background session
13
+ logs Show session logs
14
+ kill Kill a session
15
+ help Show this help
16
+
17
+ REPL
18
+ /daemon [subcommand] Same commands available in interactive mode
19
+
20
+ OPTIONS (for start)
21
+ --dir <path> Working directory (default: current)
22
+ --spawn-mode <mode> Worker spawn mode: same-dir | worktree (default: same-dir)
23
+ --capacity <N> Max concurrent sessions per worker (default: 4)
24
+ --permission-mode <mode> Permission mode for spawned sessions
25
+ --sandbox Enable sandbox mode
26
+ --name <name> Session name
27
+ -h, --help Show this help
28
+ `)}async function T(){let e=g();switch(console.log(`=== Daemon Supervisor ===`),e.status){case`running`:{let t=e.state;console.log(` Status: running`),console.log(` PID: ${t.pid}`),console.log(` CWD: ${t.cwd}`),console.log(` Started: ${t.startedAt}`),console.log(` Workers: ${t.workerKinds.join(`, `)}`);break}case`stopped`:console.log(` Status: stopped`);break;case`stale`:console.log(` Status: stale (cleaned up)`);break}console.log(`
29
+ === Background Sessions ===`),await(await import(`./bg-Ci7pG4eo.js`)).psHandler([])}async function E(){let e=g();if(e.status===`stopped`){console.log(`daemon is not running`);return}if(e.status===`stale`){console.log(`daemon was stale (cleaned up)`);return}console.log(`stopping daemon (PID: ${e.state.pid})...`),await _()?console.log(`daemon stopped`):console.log(`daemon could not be stopped (may have already exited)`)}function D(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];r===`--dir`&&n+1<e.length?t.dir=o(e[++n]):r.startsWith(`--dir=`)?t.dir=o(r.slice(6)):r===`--spawn-mode`&&n+1<e.length?t.spawnMode=e[++n]:r.startsWith(`--spawn-mode=`)?t.spawnMode=r.slice(13):r===`--capacity`&&n+1<e.length?t.capacity=e[++n]:r.startsWith(`--capacity=`)?t.capacity=r.slice(11):r===`--permission-mode`&&n+1<e.length?t.permissionMode=e[++n]:r.startsWith(`--permission-mode=`)?t.permissionMode=r.slice(18):r===`--sandbox`?t.sandbox=`1`:r===`--name`&&n+1<e.length?t.name=e[++n]:r.startsWith(`--name=`)&&(t.name=r.slice(7))}return t}async function O(e){let t=D(e),n=t.dir||o(`.`);console.log(`[daemon] supervisor starting in ${n}`);let r=[{kind:`remoteControl`,process:null,backoffMs:y,failureCount:0,parked:!1,lastStartTime:0,restartTimer:null}];f({pid:process.pid,cwd:n,startedAt:new Date().toISOString(),workerKinds:r.map(e=>e.kind),lastStatus:`running`});let i=new AbortController,a=()=>{console.log(`[daemon] supervisor shutting down...`),i.abort(),m();for(let e of r)e.restartTimer&&(clearTimeout(e.restartTimer),e.restartTimer=null),e.process&&!e.process.killed&&e.process.kill(`SIGTERM`)};process.on(`SIGTERM`,a),process.on(`SIGINT`,a);for(let e of r)i.signal.aborted||k(e,n,t,i.signal);await new Promise(e=>{if(i.signal.aborted){e();return}i.signal.addEventListener(`abort`,()=>e(),{once:!0})}),await Promise.all(r.filter(e=>e.process&&e.process.exitCode===null).map(e=>new Promise(t=>{if(!e.process||e.process.exitCode!==null){t();return}let n=null;e.process.on(`exit`,()=>{n&&(clearTimeout(n),n=null),t()}),n=setTimeout(()=>{e.process&&e.process.exitCode===null&&e.process.kill(`SIGKILL`),t()},3e4),n.unref?.()}))),console.log(`[daemon] supervisor stopped`)}function k(e,t,i,a){if(a.aborted||e.parked)return;e.lastStartTime=Date.now();let o={...process.env,DAEMON_WORKER_DIR:t,DAEMON_WORKER_NAME:i.name,DAEMON_WORKER_SPAWN_MODE:i.spawnMode||`same-dir`,DAEMON_WORKER_CAPACITY:i.capacity||`4`,DAEMON_WORKER_PERMISSION:i.permissionMode,DAEMON_WORKER_SANDBOX:i.sandbox||`0`,DAEMON_WORKER_CREATE_SESSION:`1`,CLAUDE_CODE_SESSION_KIND:`daemon-worker`};console.log(`[daemon] spawning worker '${e.kind}'`);let s=n(r([`--daemon-worker=${e.kind}`],{env:o}),{cwd:t,stdio:[`ignore`,`pipe`,`pipe`]});e.process=s,s.stdout?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
30
+ `);for(let e of t)console.log(` ${e}`)}),s.stderr?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
31
+ `);for(let e of t)console.error(` ${e}`)}),s.on(`exit`,(n,r)=>{if(e.process=null,!a.aborted){if(n===v){console.error(`[daemon] worker '${e.kind}' exited with permanent error — parking`),e.parked=!0;return}if(Date.now()-e.lastStartTime<1e4){if(e.failureCount++,e.failureCount>=S){console.error(`[daemon] worker '${e.kind}' failed ${e.failureCount} times rapidly — parking`),e.parked=!0;return}}else e.failureCount=0,e.backoffMs=y;console.log(`[daemon] worker '${e.kind}' exited (code=${n}, signal=${r}), restarting in ${e.backoffMs}ms`),e.restartTimer=setTimeout(()=>{e.restartTimer=null,!a.aborted&&!e.parked&&k(e,t,i,a)},e.backoffMs),e.restartTimer.unref?.(),e.backoffMs=Math.min(e.backoffMs*x,b)}})}export{C as daemonMain};