claude-code-best 2.6.13 → 2.7.1

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 (898) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-C7od6sFQ.js +1 -0
  2. package/dist/chunks/App-EfHjElWP.js +1 -0
  3. package/dist/chunks/ApproveApiKey-CSz0291w.js +1 -0
  4. package/dist/chunks/ApproveApiKey-Cc5SaLqs.js +1 -0
  5. package/dist/chunks/AssistantSessionChooser-mLIhDlxW.js +1 -0
  6. package/dist/chunks/BackgroundTasksDialog-OkUSMj0I.js +2 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-BCdft-m_.js +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-BPlrCIo-.js +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-BbPaorIs.js +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-D8fk-Ib5.js +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-Dyv4mI_o.js +1 -0
  12. package/dist/chunks/DesktopHandoff-BQwx7qWA.js +1 -0
  13. package/dist/chunks/DevChannelsDialog-CujM8Ivu.js +1 -0
  14. package/dist/chunks/DiffDialog-Byv1UJvS.js +3 -0
  15. package/dist/chunks/Doctor-CRrE5Sf4.js +1 -0
  16. package/dist/chunks/Doctor-Cv7wbi6C.js +3 -0
  17. package/dist/chunks/ExitFlow-DKusdm_v.js +2 -0
  18. package/dist/chunks/Feedback-Diw8XUr-.js +2 -0
  19. package/dist/chunks/Grove-CAi037VV.js +11 -0
  20. package/dist/chunks/Grove-CgX5Fdeh.js +1 -0
  21. package/dist/chunks/HybridTransport-CP0RopXu.js +4 -0
  22. package/dist/chunks/ITermBackend-RvD4VX7c.js +1 -0
  23. package/dist/chunks/InvalidConfigDialog-Bhlgysxl.js +1 -0
  24. package/dist/chunks/InvalidSettingsDialog-dGStgJZN.js +1 -0
  25. package/dist/chunks/MCPConnectionManager-D5a9ysw2.js +1 -0
  26. package/dist/chunks/McpParsingWarnings-B_z9pZ_8.js +1 -0
  27. package/dist/chunks/MessageSelector-CEvbAZGv.js +3 -0
  28. package/dist/chunks/Messages-DTmFVhRG.js +11 -0
  29. package/dist/chunks/Onboarding-BoAtphYb.js +1 -0
  30. package/dist/chunks/OverageCreditUpsell-DA7Ne7Mj.js +1 -0
  31. package/dist/chunks/PluginSettings-D3bQRsge.js +17 -0
  32. package/dist/chunks/PromptInputFooterSuggestions-DhIQ0Nge.js +1 -0
  33. package/dist/chunks/PromptInputHelpMenu-B__j9zE6.js +1 -0
  34. package/dist/chunks/QueryEngine-CMcQGyql.js +1 -0
  35. package/dist/chunks/REPL-B1BS9jwx.js +147 -0
  36. package/dist/chunks/REPL-C9f3ToGu.js +1 -0
  37. package/dist/chunks/RemoteCallout-Bwe1ESr9.js +1 -0
  38. package/dist/chunks/RemoteSessionManager-BKD4YmzY.js +2 -0
  39. package/dist/chunks/ResumeConversation-DxqbAKA4.js +1 -0
  40. package/dist/chunks/SSETransport-D3e5KNL3.js +4 -0
  41. package/dist/chunks/SearchExtraToolsTool-BVAhywUI.js +1 -0
  42. package/dist/chunks/SentryErrorBoundary-D-YZTGQG.js +2 -0
  43. package/dist/chunks/SentryErrorBoundary-M1ipwe1n.js +1 -0
  44. package/dist/chunks/Settings-D5EWYL40.js +2 -0
  45. package/dist/chunks/TeleportProgress-C3Ubx1Se.js +1 -0
  46. package/dist/chunks/TeleportRepoMismatchDialog-D_ax3xQy.js +1 -0
  47. package/dist/chunks/TeleportResumeWrapper-DeVKIXQp.js +1 -0
  48. package/dist/chunks/ThemePicker-DKmIL5Ku.js +1 -0
  49. package/dist/chunks/TmuxBackend-Bm_cRJ2x.js +9 -0
  50. package/dist/chunks/TrustDialog-ClXFMKj6.js +1 -0
  51. package/dist/chunks/TungstenTool-B40YHYXC.js +1 -0
  52. package/dist/chunks/ValidationErrorsList-SdQADfvA.js +2 -0
  53. package/dist/chunks/WelcomeV2-BijS6i2Z.js +1 -0
  54. package/dist/chunks/WindowsTerminalBackend-CGEQ5ClB.js +2 -0
  55. package/dist/chunks/add-dir-B7kleB6k.js +1 -0
  56. package/dist/chunks/agentDisplay-Dr1XbOAu.js +1 -0
  57. package/dist/chunks/agents-CpLvvWpO.js +103 -0
  58. package/dist/chunks/agents-Dy5YOJC9.js +2 -0
  59. package/dist/chunks/ant-gwf-4eGN.js +1 -0
  60. package/dist/chunks/api-BdbBnz5c.js +1 -0
  61. package/dist/chunks/api-CDmgYrwN.js +1 -0
  62. package/dist/chunks/asciicast-C_1Pi99k.js +4 -0
  63. package/dist/chunks/asciicast-DA6TudSH.js +1 -0
  64. package/dist/chunks/assistant-1usDIXtk.js +1 -0
  65. package/dist/chunks/assistant-BMviqf0l.js +1 -0
  66. package/dist/chunks/assistant-BULedprW.js +1 -0
  67. package/dist/chunks/auth-CvHVr2A5.js +1 -0
  68. package/dist/chunks/auth-ORBmEqnH.js +1 -0
  69. package/dist/chunks/autoMode-DSMM2seL.js +45 -0
  70. package/dist/chunks/autonomy-Dj6Nzxus.js +19 -0
  71. package/dist/chunks/autonomy-TtBO2TAe.js +1 -0
  72. package/dist/chunks/autonomyPanel-CbmU7lPg.js +1 -0
  73. package/dist/chunks/backgroundHousekeeping-BAvSPaZ5.js +1 -0
  74. package/dist/chunks/backgroundHousekeeping-Cp2RvmEN.js +17 -0
  75. package/dist/chunks/banner-D9Cq292T.js +2 -0
  76. package/dist/chunks/bg-CngkAkgc.js +1 -0
  77. package/dist/chunks/bg-DgpgS_VU.js +9 -0
  78. package/dist/chunks/branch-Cj5TGroO.js +3 -0
  79. package/dist/chunks/break-cache-DrIa8RdW.js +8 -0
  80. package/dist/chunks/bridge-CsqJAoEg.js +2 -0
  81. package/dist/chunks/bridgeConfig-B49H_B9L.js +1 -0
  82. package/dist/chunks/bridgeConfig-pjDV5Z2l.js +1 -0
  83. package/dist/chunks/bridgeEnabled-D9jI6X-w.js +1 -0
  84. package/dist/chunks/bridgeEnabled-DsG2JvIr.js +1 -0
  85. package/dist/chunks/bridgeMain-CNmR9iDD.js +68 -0
  86. package/dist/chunks/bridgeMain-DYCShrcV.js +1 -0
  87. package/dist/chunks/bridgeMessaging-DN0X35NX.js +1 -0
  88. package/dist/chunks/bridgePointer-Clcvh52n.js +1 -0
  89. package/dist/chunks/browser-Bt-ckCaU.js +1 -0
  90. package/dist/chunks/btw-BOg0RTKl.js +1 -0
  91. package/dist/chunks/buddy-BFuPeIxM.js +3 -0
  92. package/dist/chunks/bypassPermissionsKillswitch-kxVnIVRs.js +1 -0
  93. package/dist/chunks/caches-BsYvQnWV.js +1 -0
  94. package/dist/chunks/caches-BumkMuGA.js +3 -0
  95. package/dist/chunks/ccrClient-BI1QPLmN.js +1 -0
  96. package/dist/chunks/changeDetector-By54zja0.js +1 -0
  97. package/dist/chunks/channelNotification-CoZSFUlb.js +1 -0
  98. package/dist/chunks/channelNotification-Cx82K1CD.js +1 -0
  99. package/dist/chunks/chrome-C_5EZcdc.js +1 -0
  100. package/dist/chunks/chromeNativeHost-BldB1Zzi.js +1 -0
  101. package/dist/chunks/claudeDesktop-BqTW_pbB.js +1 -0
  102. package/dist/chunks/cleanup-rCLlo4w8.js +1 -0
  103. package/dist/chunks/clear-BQr2zTyP.js +1 -0
  104. package/dist/chunks/cliLaunch-Citfs01Q.js +1 -0
  105. package/dist/chunks/client-BbavFXJZ.js +1 -0
  106. package/dist/chunks/color-DOsgZO2n.js +1 -0
  107. package/dist/chunks/commands-CfwfGt3T.js +1 -0
  108. package/dist/chunks/commitAttribution-CH9C_hoL.js +1 -0
  109. package/dist/chunks/commitAttribution-iKd8bTOI.js +2 -0
  110. package/dist/chunks/common-Bi4yZBkh.js +1 -0
  111. package/dist/chunks/common-Da57Qwms.js +1 -0
  112. package/dist/chunks/common-NEOWMwtB.js +1 -0
  113. package/dist/chunks/compact-B6Muofhz.js +3 -0
  114. package/dist/chunks/companion-B_LrjSk5.js +1 -0
  115. package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
  116. package/dist/chunks/completionCache-C7hDqIDL.js +4 -0
  117. package/dist/chunks/computerUseLock-Diig5B8p.js +1 -0
  118. package/dist/chunks/config-CJd9kJ57.js +1 -0
  119. package/dist/chunks/config-CQd4IkXo.js +1 -0
  120. package/dist/chunks/context-noninteractive-DCYvLxWx.js +1 -0
  121. package/dist/chunks/context-noninteractive-DZsSp-ES.js +54 -0
  122. package/dist/chunks/context-qAHTuazZ.js +1 -0
  123. package/dist/chunks/conversation-DYUVAAQt.js +1 -0
  124. package/dist/chunks/conversation-NrAy2em3.js +1 -0
  125. package/dist/chunks/copy-B2jhZndZ.js +7 -0
  126. package/dist/chunks/createSSHSession-CKdoEmAg.js +6 -0
  127. package/dist/chunks/createSession-Czx7_nf6.js +1 -0
  128. package/dist/chunks/createSession-WkBw7wdn.js +1 -0
  129. package/dist/chunks/cronJitterConfig-2u6WAlti.js +6 -0
  130. package/dist/chunks/crossProjectResume-CjJISRBQ.js +40 -0
  131. package/dist/chunks/daemon-BRKR4D1D.js +2 -0
  132. package/dist/chunks/datadog-QSR9B7CZ.js +1 -0
  133. package/dist/chunks/datadog-YsyhnDmr.js +1 -0
  134. package/dist/chunks/debug-DIYxb3SF.js +1 -0
  135. package/dist/chunks/debug-otxXY3j-.js +5 -0
  136. package/dist/chunks/debugUtils-l8nsUZ6R.js +1 -0
  137. package/dist/chunks/desktop-BN9pHpK_.js +1 -0
  138. package/dist/chunks/detached-C_2ZXr7X.js +5 -0
  139. package/dist/chunks/detectRepository-2ICvGD0U.js +1 -0
  140. package/dist/chunks/detectRepository-BLwSmun2.js +1 -0
  141. package/dist/chunks/detection-0mMj--Bt.js +1 -0
  142. package/dist/chunks/detection-95TCHkW8.js +1 -0
  143. package/dist/chunks/diff-BTtUFuf-.js +1 -0
  144. package/dist/chunks/directoryCompletion-DqtWZsoW.js +1 -0
  145. package/dist/chunks/doctor-BKBb426q.js +1 -0
  146. package/dist/chunks/earlyInput-CFYRGxau.js +2 -0
  147. package/dist/chunks/earlyInput-D3OhUZ4G.js +1 -0
  148. package/dist/chunks/effort-ClhxMqY6.js +9 -0
  149. package/dist/chunks/entry-CJlJ47nP.js +14 -0
  150. package/dist/chunks/env-C2A9gV_G.js +1 -0
  151. package/dist/chunks/envLessBridgeConfig-C9UUbQCo.js +1 -0
  152. package/dist/chunks/envLessBridgeConfig-DSJqg3Ox.js +1 -0
  153. package/dist/chunks/escHotkey-D8WgbSyj.js +259 -0
  154. package/dist/chunks/execFileNoThrow-azCkYhmF.js +1 -0
  155. package/dist/chunks/execSyncWrapper-Bn7EJqtD.js +1 -0
  156. package/dist/chunks/executor-BVh1PTF-.js +1561 -0
  157. package/dist/chunks/executor-CvTuHx-k.js +1 -0
  158. package/dist/chunks/exit-DxY3yJrp.js +1 -0
  159. package/dist/chunks/export-DS2esu8D.js +2 -0
  160. package/dist/chunks/exportRenderer-DX2L5fQ7.js +1 -0
  161. package/dist/chunks/extra-usage-DaxUQk9I.js +1 -0
  162. package/dist/chunks/extra-usage-XJxfHsbe.js +1 -0
  163. package/dist/chunks/extra-usage-core-D84ifgBo.js +1 -0
  164. package/dist/chunks/extra-usage-noninteractive-fxqxHnIt.js +1 -0
  165. package/dist/chunks/extraUsage-P_NGI1-I.js +1 -0
  166. package/dist/chunks/extractMemories-B3cTWsph.js +1 -0
  167. package/dist/chunks/fast-CHiQGMBE.js +1 -0
  168. package/dist/chunks/fast-CpN8lLnE.js +1 -0
  169. package/dist/chunks/featureCheck-CUJ2rPM6.js +1 -0
  170. package/dist/chunks/feedback-CqRsOG3c.js +1 -0
  171. package/dist/chunks/fileStateCache-BhVfo23e.js +1 -0
  172. package/dist/chunks/files-Bdr_PQyV.js +2 -0
  173. package/dist/chunks/findExecutable-BHQl4NaS.js +1 -0
  174. package/dist/chunks/firstPartyEventLogger-CM0V7Uev.js +1 -0
  175. package/dist/chunks/flushGate-DNutWuOE.js +1 -0
  176. package/dist/chunks/gates-C4JvRq4i.js +1 -0
  177. package/dist/chunks/gates-DvjyKZVA.js +1 -0
  178. package/dist/chunks/gemini-B0M6SQSG.js +1 -0
  179. package/dist/chunks/generateRecap-DhDOgXn3.js +1 -0
  180. package/dist/chunks/generateSessionName-CoFR2wgK.js +1 -0
  181. package/dist/chunks/genericProcessUtils-tJxf3yqB.js +23 -0
  182. package/dist/chunks/git-C0IuvuIy.js +6 -0
  183. package/dist/chunks/git-hSvFiuiG.js +1 -0
  184. package/dist/chunks/githubRepoPathMapping-DGiSNykv.js +1 -0
  185. package/dist/chunks/goal-DRb6pPAp.js +3 -0
  186. package/dist/chunks/grok-emDua_hT.js +1 -0
  187. package/dist/chunks/growthbook-COAneL48.js +1 -0
  188. package/dist/chunks/heapdump-CA6DHA8G.js +5 -0
  189. package/dist/chunks/help-XXY7deZm.js +1 -0
  190. package/dist/chunks/hooks-C6zZYnDi.js +79 -0
  191. package/dist/chunks/hooks-DOej0jqp.js +1 -0
  192. package/dist/chunks/hostAdapter-DZbdeXCV.js +1 -0
  193. package/dist/chunks/hostGuard-DSOEyH-P.js +1 -0
  194. package/dist/chunks/ide-BLRNkzVx.js +2 -0
  195. package/dist/chunks/inboundAttachments-60kD5Qt_.js +1 -0
  196. package/dist/chunks/inboundAttachments-BBYxcnvj.js +1 -0
  197. package/dist/chunks/initReplBridge-Dt2aQBia.js +1 -0
  198. package/dist/chunks/insights-BBugI3tW.js +822 -0
  199. package/dist/chunks/install-CuVHbwyW.js +1 -0
  200. package/dist/chunks/install-github-app-ByyzrlM9.js +147 -0
  201. package/dist/chunks/install-slack-app-CJGtmacz.js +1 -0
  202. package/dist/chunks/instrumentation-C8zvzMg1.js +12 -0
  203. package/dist/chunks/job-DBf6aPQX.js +2 -0
  204. package/dist/chunks/jwtUtils-BQXXBwqW.js +1 -0
  205. package/dist/chunks/keybindings-Bi7SMp5-.js +2 -0
  206. package/dist/chunks/lang-CVDkUhjk.js +1 -0
  207. package/dist/chunks/language-BYeqMX74.js +1 -0
  208. package/dist/chunks/language-BoKr5ylY.js +1 -0
  209. package/dist/chunks/launchAgentsPlatform-BKqxMFFn.js +1 -0
  210. package/dist/chunks/launchAutofixPr-CauX6gOB.js +18 -0
  211. package/dist/chunks/launchLocalMemory-Brrd_BJC.js +3 -0
  212. package/dist/chunks/launchLocalVault-DtAn656A.js +3 -0
  213. package/dist/chunks/launchMemoryStores-x7_Id7Yr.js +1 -0
  214. package/dist/chunks/launchOnboarding-DkamFByn.js +8 -0
  215. package/dist/chunks/launchSchedule-DjNQNxW4.js +1 -0
  216. package/dist/chunks/launchSkillStore-D2GUGhDD.js +1 -0
  217. package/dist/chunks/launchTeleport-DTfhiZkf.js +3 -0
  218. package/dist/chunks/launchVault-BZ2Po4r8.js +1 -0
  219. package/dist/chunks/loadAgentsDir-C_wFhytF.js +4697 -0
  220. package/dist/chunks/loadAgentsDir-whRB0phu.js +1 -0
  221. package/dist/chunks/loadPluginHooks-CYZjzxyO.js +1 -0
  222. package/dist/chunks/localSearch-B0p0_bjP.js +1 -0
  223. package/dist/chunks/localSearch-DAwFmV2Y.js +1 -0
  224. package/dist/chunks/log-DSV4Ht5l.js +1 -0
  225. package/dist/chunks/login-C1uE6Pg9.js +1 -0
  226. package/dist/chunks/login-DOyB64Rv.js +1 -0
  227. package/dist/chunks/logoV2Utils-BJHvwGup.js +1 -0
  228. package/dist/chunks/logout-DTPo3Myl.js +1 -0
  229. package/dist/chunks/magicDocs-DPZzG7Z2.js +57 -0
  230. package/dist/chunks/main-CNwSLti2.js +1312 -0
  231. package/dist/chunks/main-CfkIGrBF.js +31 -0
  232. package/dist/chunks/mappers-Dxs_kNJH.js +1 -0
  233. package/dist/chunks/mcp-CVnFM6nR.js +6 -0
  234. package/dist/chunks/mcp-CbDDqdzF.js +2 -0
  235. package/dist/chunks/mcp-CzfQB8BT.js +1 -0
  236. package/dist/chunks/mcpServer-BJNjQXsU.js +1 -0
  237. package/dist/chunks/mcpServer-Py4Iz9Hx.js +1 -0
  238. package/dist/chunks/memoize-DJ1XCN-z.js +1 -0
  239. package/dist/chunks/memory-BdUqEKio.js +1 -0
  240. package/dist/chunks/mobile-BMglW1NB.js +2 -0
  241. package/dist/chunks/mode-CqGusjoT.js +2 -0
  242. package/dist/chunks/model-BBULcn7y.js +1 -0
  243. package/dist/chunks/model-BOc_-7m0.js +1 -0
  244. package/dist/chunks/onChangeAppState-BkRihYau.js +1 -0
  245. package/dist/chunks/openai-yNI_zoao.js +10 -0
  246. package/dist/chunks/overageCreditGrant-Cbh0_fbM.js +1 -0
  247. package/dist/chunks/panel-BYfvo_mR.js +1 -0
  248. package/dist/chunks/panel-D3wvAEFE.js +1 -0
  249. package/dist/chunks/panelCall-t10Sud9A.js +1 -0
  250. package/dist/chunks/parser-DGXE1uWd.js +1 -0
  251. package/dist/chunks/parser-aIWfAYnt.js +1 -0
  252. package/dist/chunks/passes-D_iS6DaC.js +1 -0
  253. package/dist/chunks/path-BE28AJwZ.js +1 -0
  254. package/dist/chunks/paths-Ci1iwL5Y.js +36 -0
  255. package/dist/chunks/permissions-BE-1pIly.js +1 -0
  256. package/dist/chunks/permissions-CHvu4-yX.js +3 -0
  257. package/dist/chunks/pipeTransport-EAYXsubu.js +1 -0
  258. package/dist/chunks/plan-CP5nq_EB.js +1 -0
  259. package/dist/chunks/platform-mh9ypxS8.js +2 -0
  260. package/dist/chunks/plugin-8apy_RBT.js +1 -0
  261. package/dist/chunks/pluginAutoupdate-ClrgF5b3.js +1 -0
  262. package/dist/chunks/pluginBlocklist-B1LVo0j_.js +1 -0
  263. package/dist/chunks/pluginCliCommands-eqyMBWcP.js +1 -0
  264. package/dist/chunks/pluginFlagging-BiTDVP10.js +1 -0
  265. package/dist/chunks/pluginOperations-gZ-iCmhu.js +2 -0
  266. package/dist/chunks/pluginStartupCheck-DCDWHam6.js +1 -0
  267. package/dist/chunks/pluginStartupCheck-EjLvCXru.js +1 -0
  268. package/dist/chunks/plugins-BAIVqfi8.js +4 -0
  269. package/dist/chunks/policyLimits-Cdp3QwZ1.js +1 -0
  270. package/dist/chunks/pollConfig-_2W7bHoW.js +1 -0
  271. package/dist/chunks/poller-BA1jhG3F.js +1 -0
  272. package/dist/chunks/poor-Dii0mpOW.js +1 -0
  273. package/dist/chunks/poorMode-DzEL0cu0.js +1 -0
  274. package/dist/chunks/poorMode-aDmmvJ_e.js +1 -0
  275. package/dist/chunks/print-BwSmcUQu.js +39 -0
  276. package/dist/chunks/privacy-settings-DaAgSLKw.js +1 -0
  277. package/dist/chunks/processBashCommand-BZ1_JKu4.js +1 -0
  278. package/dist/chunks/processSlashCommand-v1Rvzxwn.js +6 -0
  279. package/dist/chunks/projectContext-Cd7V9pES.js +1 -0
  280. package/dist/chunks/prompt-6ZKyqv6z.js +227 -0
  281. package/dist/chunks/prompt-DPqKtC0b.js +1 -0
  282. package/dist/chunks/prompt-WjMHPk90.js +1 -0
  283. package/dist/chunks/promptEditor-Dz41P-3I.js +4 -0
  284. package/dist/chunks/protocolHandler-CHGHjfdf.js +13 -0
  285. package/dist/chunks/proxy-CF7ZDxaW.js +99 -0
  286. package/dist/chunks/rate-limit-options-BlU9av7g.js +1 -0
  287. package/dist/chunks/rcDebugLog-C42A0pX1.js +11 -0
  288. package/dist/chunks/referral-IIcY3jkp.js +1 -0
  289. package/dist/chunks/refresh-DTGEx7X_.js +1 -0
  290. package/dist/chunks/registerProtocol-BkNncGMI.js +36 -0
  291. package/dist/chunks/registry-CBqb7wbi.js +1 -0
  292. package/dist/chunks/release-notes-BxzOD-zP.js +4 -0
  293. package/dist/chunks/releaseNotes-C8KQGZHq.js +2 -0
  294. package/dist/chunks/reload-plugins-gYyC6_g8.js +1 -0
  295. package/dist/chunks/remote-env-CEJH5aJh.js +1 -0
  296. package/dist/chunks/remoteBridgeCore-Dte7ZUAN.js +1 -0
  297. package/dist/chunks/remoteControlServer-GN-eDbEz.js +3 -0
  298. package/dist/chunks/rename-BEU6BNRp.js +1 -0
  299. package/dist/chunks/renderOptions-Caca3bCd.js +1 -0
  300. package/dist/chunks/resume-D36S2rXg.js +2 -0
  301. package/dist/chunks/ripgrep-Bzwdi5-K.js +5 -0
  302. package/dist/chunks/ripgrep-DEa1djpJ.js +1 -0
  303. package/dist/chunks/runtimeObserver-CDMCeww2.js +1 -0
  304. package/dist/chunks/runtimeObserver-DaKaKNVW.js +10 -0
  305. package/dist/chunks/sandbox-adapter-DqTuhgud.js +1 -0
  306. package/dist/chunks/sandbox-toggle-BPO26t48.js +1 -0
  307. package/dist/chunks/searchExtraTools-Brae4wmG.js +1 -0
  308. package/dist/chunks/sentry-9EbPa1Xu.js +13 -0
  309. package/dist/chunks/session-D18B22u4.js +2 -0
  310. package/dist/chunks/sessionDiscovery-B-OTvXJf.js +1 -0
  311. package/dist/chunks/sessionFileAccessHooks-BXsK8Dwf.js +1 -0
  312. package/dist/chunks/sessionMemory-Bv-AYifm.js +1 -0
  313. package/dist/chunks/sessionMemory-Ctauybzs.js +1 -0
  314. package/dist/chunks/sessionMemoryUtils-D-bzdsAT.js +1 -0
  315. package/dist/chunks/sessionObserver-ardnTJ37.js +20 -0
  316. package/dist/chunks/sessionObserver-j8D9hidw.js +1 -0
  317. package/dist/chunks/sessionStorage-Cw5ibYWA.js +1 -0
  318. package/dist/chunks/sessionStoragePortable-CJUZrbIq.js +3 -0
  319. package/dist/chunks/sessionTitle-DEKvIVCK.js +14 -0
  320. package/dist/chunks/sessionTracing-CJUUEWZ4.js +11 -0
  321. package/dist/chunks/settingsSync-BWt3oUR7.js +1 -0
  322. package/dist/chunks/setup-BECFDOT9.js +9 -0
  323. package/dist/chunks/setup-CDxkPTCq.js +2 -0
  324. package/dist/chunks/setup-CmCTB2T_.js +1 -0
  325. package/dist/chunks/shadowedRuleDetection-BbALfdxE.js +1 -0
  326. package/dist/chunks/shellQuote-CBjhlaFO.js +1 -0
  327. package/dist/chunks/sideQuestion-BHK6dd1q.js +20 -0
  328. package/dist/chunks/sink-DFWgcGHX.js +1 -0
  329. package/dist/chunks/sink-Do5fWbUC.js +1 -0
  330. package/dist/chunks/sinks-BnkxTOU9.js +1 -0
  331. package/dist/chunks/sinks-Dc9V7k6a.js +2 -0
  332. package/dist/chunks/skill-learning-BHW9G3Dn.js +5 -0
  333. package/dist/chunks/skillChangeDetector-DwAvG835.js +1 -0
  334. package/dist/chunks/skillGapStore-DVMbI2yy.js +1 -0
  335. package/dist/chunks/skillGapStore-Wa7s6orv.js +5 -0
  336. package/dist/chunks/skillGenerator-CBuoIFsH.js +8 -0
  337. package/dist/chunks/skillLearning-BI2YDG3K.js +1 -0
  338. package/dist/chunks/skillLearning-BZMJRJPp.js +1 -0
  339. package/dist/chunks/skillPanel-2w82nkOl.js +28 -0
  340. package/dist/chunks/skillSearchPanel-7BhCBkdh.js +21 -0
  341. package/dist/chunks/skills-D5rMEo2w.js +1 -0
  342. package/dist/chunks/sprites-uNWgVZT6.js +1 -0
  343. package/dist/chunks/src-BGzuPZ5q.js +26 -0
  344. package/dist/chunks/src-kgpr3s-l.js +1 -0
  345. package/dist/chunks/startupProfiler-CAntGAbs.js +3 -0
  346. package/dist/chunks/startupProfiler-WtUzkMKV.js +1 -0
  347. package/dist/chunks/stats-D0CJB2HV.js +1 -0
  348. package/dist/chunks/status-nte1Arzy.js +1 -0
  349. package/dist/chunks/statusNoticeHelpers-Lqf99003.js +1 -0
  350. package/dist/chunks/stdio-Cg20AQ5W.js +1 -0
  351. package/dist/chunks/stickers-DDAm--86.js +1 -0
  352. package/dist/chunks/stringUtils-KZoO4GUd.js +4 -0
  353. package/dist/chunks/subprocessEnv-D4Cbyl2J.js +1 -0
  354. package/dist/chunks/systemPromptSections-CVpefuSD.js +1 -0
  355. package/dist/chunks/tag-BnvWS9HE.js +11 -0
  356. package/dist/chunks/tasks-CEs-pxkC.js +1 -0
  357. package/dist/chunks/teamHelpers-D4vCj2hP.js +1 -0
  358. package/dist/chunks/teamHelpers-D8R_gGLb.js +1 -0
  359. package/dist/chunks/teammateModeSnapshot-BDJ1JTcl.js +1 -0
  360. package/dist/chunks/teammateModeSnapshot-Bdra3VIJ.js +1 -0
  361. package/dist/chunks/teleport-RxTr4aCi.js +1 -0
  362. package/dist/chunks/templateJobs-BDKGtmr3.js +12 -0
  363. package/dist/chunks/terminalSetup-Bbvq-9Xl.js +1 -0
  364. package/dist/chunks/terminalSetup-C1X-sXwp.js +33 -0
  365. package/dist/chunks/theme-DXv6bV7f.js +1 -0
  366. package/dist/chunks/thinkback-CMsW7mvG.js +1 -0
  367. package/dist/chunks/thinkback-DRJBz3Is.js +1 -0
  368. package/dist/chunks/thinkback-play-CFdkpzlj.js +1 -0
  369. package/dist/chunks/tmux-DelKEjda.js +1 -0
  370. package/dist/chunks/toolEventObserver-CF7T7FBH.js +1 -0
  371. package/dist/chunks/toolEventObserver-DDJV8cvW.js +1 -0
  372. package/dist/chunks/toolPool-0zCdXfEu.js +1 -0
  373. package/dist/chunks/toolPool-BJv0sBnR.js +1 -0
  374. package/dist/chunks/trustedDevice-C5s2au0k.js +1 -0
  375. package/dist/chunks/trustedDevice-C9nJhhyZ.js +1 -0
  376. package/dist/chunks/tui-DoOiz2RW.js +6 -0
  377. package/dist/chunks/types-BCy5hsQR.js +1 -0
  378. package/dist/chunks/types-KeqFPzY5.js +17 -0
  379. package/dist/chunks/udsClient-CBF_cZFW.js +1 -0
  380. package/dist/chunks/ultrareviewCommand-BEv1_AS1.js +3 -0
  381. package/dist/chunks/undercover-DPVt2WN7.js +31 -0
  382. package/dist/chunks/undercover-DYa00dVv.js +1 -0
  383. package/dist/chunks/up-DaiW-V1N.js +12 -0
  384. package/dist/chunks/updateCCB-D-4naIUu.js +11 -0
  385. package/dist/chunks/upgrade-BHj8ALep.js +1 -0
  386. package/dist/chunks/upgrade-CSld83v7.js +1 -0
  387. package/dist/chunks/upload-DVlE8SRp.js +1 -0
  388. package/dist/chunks/upstreamproxy-CLf1UaJv.js +11 -0
  389. package/dist/chunks/usage-B_bY46ep.js +1 -0
  390. package/dist/chunks/usage-D4Ubnttz.js +1 -0
  391. package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHi41Ku_.js +1 -0
  392. package/dist/chunks/useMainLoopModel-D3tJJC3y.js +1 -0
  393. package/dist/chunks/useManagePlugins-B4kcqcyY.js +1 -0
  394. package/dist/chunks/useMergedTools-CTQl4cdV.js +1 -0
  395. package/dist/chunks/useSearchInput-JPayBRPC.js +1 -0
  396. package/dist/chunks/useSettingsErrors-YTgPxnRZ.js +1 -0
  397. package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
  398. package/dist/chunks/useVoice-CaBv3G13.js +1 -0
  399. package/dist/chunks/util-Q70qdjeS.js +1 -0
  400. package/dist/chunks/utils-Cr-x1Oyd.js +1 -0
  401. package/dist/chunks/validatePlugin-6lg9B564.js +1 -0
  402. package/dist/chunks/vim-zOsQBIp4.js +1 -0
  403. package/dist/chunks/voice-DBQevAhk.js +2 -0
  404. package/dist/chunks/voice-YtzCcIoM.js +8 -0
  405. package/dist/chunks/voiceModeEnabled-CjBjjeNR.js +1 -0
  406. package/dist/chunks/voiceModeEnabled-DK6u8Aaj.js +1 -0
  407. package/dist/chunks/voiceStreamSTT-B8CTbb_6.js +1 -0
  408. package/dist/chunks/voiceStreamSTT-CCkOfmdI.js +1 -0
  409. package/dist/chunks/web-tools-CGqBqo07.js +1 -0
  410. package/dist/chunks/which-BnEnzWhs.js +1 -0
  411. package/dist/chunks/windowsPaths-BeDSnJ23.js +2 -0
  412. package/dist/chunks/windowsPaths-ttHiMKpR.js +1 -0
  413. package/dist/chunks/workSecret-DJu7k30X.js +1 -0
  414. package/dist/chunks/workerRegistry-Bx6FvTZF.js +1 -0
  415. package/dist/chunks/worktree-DPpgPLLG.js +1 -0
  416. package/dist/chunks/worktreeModeEnabled-RtizNgNg.js +1 -0
  417. package/dist/chunks/xml-CVF7dWfi.js +1 -0
  418. package/dist/cli.js +1 -1
  419. package/package.json +1 -1
  420. package/dist/chunks/AddWorkspaceDirectory-BKIYdg96.js +0 -1
  421. package/dist/chunks/App-BAwWP3iN.js +0 -1
  422. package/dist/chunks/ApproveApiKey-CJFvgVKS.js +0 -1
  423. package/dist/chunks/ApproveApiKey-da08NX2f.js +0 -1
  424. package/dist/chunks/AssistantSessionChooser-DQMKGO_q.js +0 -1
  425. package/dist/chunks/BackgroundTasksDialog-Jtiqm4k2.js +0 -2
  426. package/dist/chunks/BypassPermissionsModeDialog-D7TJ4Qn1.js +0 -1
  427. package/dist/chunks/ClaudeInChromeOnboarding-CuPz5Xfi.js +0 -1
  428. package/dist/chunks/ClaudeMdExternalIncludesDialog-CRC6kEV1.js +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-J0uv5XzG.js +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-CE4OlAHo.js +0 -1
  431. package/dist/chunks/DesktopHandoff-B_vNnZS5.js +0 -1
  432. package/dist/chunks/DevChannelsDialog-kjRnWtNf.js +0 -1
  433. package/dist/chunks/DiffDialog-CSBWOnXJ.js +0 -3
  434. package/dist/chunks/Doctor-DhK599q8.js +0 -1
  435. package/dist/chunks/Doctor-VJ5ZGb8g.js +0 -3
  436. package/dist/chunks/ExitFlow-M5XPGBHL.js +0 -2
  437. package/dist/chunks/Feedback-FHvqI2bu.js +0 -2
  438. package/dist/chunks/Grove-68muTpx6.js +0 -1
  439. package/dist/chunks/Grove-BC2IZIhN.js +0 -11
  440. package/dist/chunks/HybridTransport-Df_FceV2.js +0 -4
  441. package/dist/chunks/ITermBackend-DkpK9X1H.js +0 -1
  442. package/dist/chunks/InvalidConfigDialog-Cm6Yvt00.js +0 -1
  443. package/dist/chunks/InvalidSettingsDialog-Ai3D8AL1.js +0 -1
  444. package/dist/chunks/MCPConnectionManager-BqNXYQEr.js +0 -1
  445. package/dist/chunks/McpParsingWarnings-BZcVbGhE.js +0 -1
  446. package/dist/chunks/MessageSelector-BXOoEogr.js +0 -3
  447. package/dist/chunks/Messages-F6OIAv8C.js +0 -11
  448. package/dist/chunks/Onboarding-n1aA7tmN.js +0 -1
  449. package/dist/chunks/OverageCreditUpsell-Bt23I92r.js +0 -1
  450. package/dist/chunks/PluginSettings-Dgu23nzv.js +0 -17
  451. package/dist/chunks/PromptInputFooterSuggestions-uiV23aG4.js +0 -1
  452. package/dist/chunks/PromptInputHelpMenu-D84vnNKM.js +0 -1
  453. package/dist/chunks/QueryEngine-CEodAvI2.js +0 -1
  454. package/dist/chunks/REPL-CTTa9BK0.js +0 -97
  455. package/dist/chunks/REPL-IO7wsKaQ.js +0 -1
  456. package/dist/chunks/RemoteCallout-BYKqws96.js +0 -1
  457. package/dist/chunks/RemoteSessionManager-Dq0W_fcj.js +0 -2
  458. package/dist/chunks/ResumeConversation-CxzeCdL8.js +0 -1
  459. package/dist/chunks/SSETransport-CJrrD1ln.js +0 -4
  460. package/dist/chunks/SearchExtraToolsTool-DI-36R5p.js +0 -1
  461. package/dist/chunks/SentryErrorBoundary-BKPxEWOf.js +0 -1
  462. package/dist/chunks/SentryErrorBoundary-CcI0kkLW.js +0 -2
  463. package/dist/chunks/Settings-CGcBR9CD.js +0 -2
  464. package/dist/chunks/TeleportProgress-C7muqjDw.js +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-B3pUiRc2.js +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-ClyBQR3K.js +0 -1
  467. package/dist/chunks/ThemePicker-CGIB6YiW.js +0 -1
  468. package/dist/chunks/TmuxBackend-m2ldrneQ.js +0 -9
  469. package/dist/chunks/TrustDialog-o5kqmn6m.js +0 -1
  470. package/dist/chunks/TungstenTool-C5IqKVr0.js +0 -1
  471. package/dist/chunks/ValidationErrorsList-D7bXMb0U.js +0 -2
  472. package/dist/chunks/WelcomeV2-Ckp3JPnA.js +0 -1
  473. package/dist/chunks/WindowsTerminalBackend-DsDqNWSP.js +0 -2
  474. package/dist/chunks/add-dir-DTP3NrLy.js +0 -1
  475. package/dist/chunks/agentDisplay-BEn43jMP.js +0 -1
  476. package/dist/chunks/agents-3ii2LyeQ.js +0 -2
  477. package/dist/chunks/agents-g0PDZl_l.js +0 -103
  478. package/dist/chunks/ant-PZvt_t1G.js +0 -1
  479. package/dist/chunks/api-BRckHGQ5.js +0 -1
  480. package/dist/chunks/api-DBvyymX6.js +0 -1
  481. package/dist/chunks/asciicast-C3nf97NR.js +0 -1
  482. package/dist/chunks/asciicast-DIsaWcsJ.js +0 -4
  483. package/dist/chunks/assistant-BBmaU8-A.js +0 -1
  484. package/dist/chunks/assistant-CMaN0QzY.js +0 -1
  485. package/dist/chunks/assistant-CVhvOfqJ.js +0 -1
  486. package/dist/chunks/auth-BXzbkJcE.js +0 -1
  487. package/dist/chunks/auth-Cud9tPJB.js +0 -1
  488. package/dist/chunks/autoMode-BREcJLYf.js +0 -45
  489. package/dist/chunks/autonomy-CuQizTZi.js +0 -1
  490. package/dist/chunks/autonomy-h9vver1r.js +0 -19
  491. package/dist/chunks/autonomyPanel-DVyrTxfP.js +0 -1
  492. package/dist/chunks/backgroundHousekeeping-DwA5WO9N.js +0 -1
  493. package/dist/chunks/backgroundHousekeeping-Ij_q7KN8.js +0 -17
  494. package/dist/chunks/banner-32EBTKI7.js +0 -2
  495. package/dist/chunks/bg-DK0E4ZtW.js +0 -9
  496. package/dist/chunks/bg-Dbh5z3Y8.js +0 -1
  497. package/dist/chunks/branch-B9AQFFTX.js +0 -3
  498. package/dist/chunks/break-cache-ByJ7U2Ts.js +0 -8
  499. package/dist/chunks/bridge-BkL7g0ua.js +0 -2
  500. package/dist/chunks/bridgeConfig-BPP3lJRh.js +0 -1
  501. package/dist/chunks/bridgeConfig-BZQBBfap.js +0 -1
  502. package/dist/chunks/bridgeEnabled-Bkmqv-2V.js +0 -1
  503. package/dist/chunks/bridgeEnabled-BwBjPmEE.js +0 -1
  504. package/dist/chunks/bridgeMain-CbGj0plH.js +0 -68
  505. package/dist/chunks/bridgeMain-DpQRGiMo.js +0 -1
  506. package/dist/chunks/bridgeMessaging-C-ZFPTiZ.js +0 -1
  507. package/dist/chunks/bridgePointer-B2FPGDWR.js +0 -1
  508. package/dist/chunks/browser-fLRXxIsQ.js +0 -1
  509. package/dist/chunks/btw-BSme4Kzi.js +0 -1
  510. package/dist/chunks/buddy-DX94yYTy.js +0 -3
  511. package/dist/chunks/bypassPermissionsKillswitch-Crl2aipx.js +0 -1
  512. package/dist/chunks/caches-DeXmHls9.js +0 -3
  513. package/dist/chunks/caches-U1iFQIc7.js +0 -1
  514. package/dist/chunks/ccrClient-BYD1ONzC.js +0 -1
  515. package/dist/chunks/changeDetector-PaQPe1HQ.js +0 -1
  516. package/dist/chunks/channelNotification-Aq0p9f-W.js +0 -1
  517. package/dist/chunks/channelNotification-B0QskFjB.js +0 -1
  518. package/dist/chunks/chrome-B8ByN3u6.js +0 -1
  519. package/dist/chunks/chromeNativeHost-DX8f9Y2L.js +0 -1
  520. package/dist/chunks/claudeDesktop-C1qQs6os.js +0 -1
  521. package/dist/chunks/cleanup-Pv6U3HiI.js +0 -1
  522. package/dist/chunks/clear-CeJ5tgg8.js +0 -1
  523. package/dist/chunks/cliLaunch-BQa48gsr.js +0 -1
  524. package/dist/chunks/client-B7AdqRap.js +0 -1
  525. package/dist/chunks/color-OlMWmMnJ.js +0 -1
  526. package/dist/chunks/commands-BwfOl3fk.js +0 -1
  527. package/dist/chunks/commitAttribution-C479aqmn.js +0 -2
  528. package/dist/chunks/commitAttribution-CZ1OOh8F.js +0 -1
  529. package/dist/chunks/common-B379wT22.js +0 -1
  530. package/dist/chunks/common-B_BC3eMY.js +0 -1
  531. package/dist/chunks/common-CMCv4N_v.js +0 -1
  532. package/dist/chunks/compact-Dq-J7j1C.js +0 -3
  533. package/dist/chunks/companion-CtJjyD3N.js +0 -1
  534. package/dist/chunks/completionCache-DHfUBBMH.js +0 -1
  535. package/dist/chunks/completionCache-DORrtxkS.js +0 -4
  536. package/dist/chunks/computerUseLock-BjoDJH2h.js +0 -1
  537. package/dist/chunks/config-DcnYYwCy.js +0 -1
  538. package/dist/chunks/config-_KcvL7RX.js +0 -1
  539. package/dist/chunks/context-CShSBp-i.js +0 -1
  540. package/dist/chunks/context-noninteractive-BApFNncX.js +0 -54
  541. package/dist/chunks/context-noninteractive-uMvPKhng.js +0 -1
  542. package/dist/chunks/conversation-BlUHkj1_.js +0 -1
  543. package/dist/chunks/conversation-CCzL-eYb.js +0 -1
  544. package/dist/chunks/copy-DIMR3Q3S.js +0 -7
  545. package/dist/chunks/createSSHSession-DvSnUdsD.js +0 -6
  546. package/dist/chunks/createSession-D8tcktmP.js +0 -1
  547. package/dist/chunks/createSession-DaT4x1E6.js +0 -1
  548. package/dist/chunks/cronJitterConfig-C2a-Ybqm.js +0 -6
  549. package/dist/chunks/crossProjectResume-B3Chhiwf.js +0 -40
  550. package/dist/chunks/daemon-CCtZ9wY3.js +0 -2
  551. package/dist/chunks/datadog-BYNSi8R3.js +0 -1
  552. package/dist/chunks/datadog-DCukMGn4.js +0 -1
  553. package/dist/chunks/debug-DM5ezCBS.js +0 -1
  554. package/dist/chunks/debug-UI3T040K.js +0 -5
  555. package/dist/chunks/debugUtils-BBMFODKH.js +0 -1
  556. package/dist/chunks/desktop-BXj3JEMV.js +0 -1
  557. package/dist/chunks/detached-D300jlhj.js +0 -5
  558. package/dist/chunks/detectRepository-CBk3S2zv.js +0 -1
  559. package/dist/chunks/detectRepository-DCTvg4p0.js +0 -1
  560. package/dist/chunks/detection-CQsNad64.js +0 -1
  561. package/dist/chunks/detection-DJ-vTbBf.js +0 -1
  562. package/dist/chunks/diff-D3Xuv_4J.js +0 -1
  563. package/dist/chunks/directoryCompletion-D7EGwonO.js +0 -1
  564. package/dist/chunks/doctor-B5-jh6lS.js +0 -1
  565. package/dist/chunks/earlyInput-RoVleNEN.js +0 -1
  566. package/dist/chunks/earlyInput-feVuZGzR.js +0 -2
  567. package/dist/chunks/effort-CpHnXRxJ.js +0 -9
  568. package/dist/chunks/entry-YXnIL7B7.js +0 -14
  569. package/dist/chunks/env-chR0gV31.js +0 -1
  570. package/dist/chunks/envLessBridgeConfig-CcgSiwvA.js +0 -1
  571. package/dist/chunks/envLessBridgeConfig-MaElAFPV.js +0 -1
  572. package/dist/chunks/escHotkey-Cyz0yyh1.js +0 -259
  573. package/dist/chunks/execFileNoThrow-CuQN1sz8.js +0 -1
  574. package/dist/chunks/execSyncWrapper-C2XQnFVo.js +0 -1
  575. package/dist/chunks/executor-4EeD8GNm.js +0 -1561
  576. package/dist/chunks/executor-BHEuNh5F.js +0 -1
  577. package/dist/chunks/exit-DKG0r57m.js +0 -1
  578. package/dist/chunks/export-BNbcpW3p.js +0 -2
  579. package/dist/chunks/exportRenderer-pYMIcnO4.js +0 -1
  580. package/dist/chunks/extra-usage-DTXphHAD.js +0 -1
  581. package/dist/chunks/extra-usage-H-U38bGx.js +0 -1
  582. package/dist/chunks/extra-usage-core-N4VLj0ye.js +0 -1
  583. package/dist/chunks/extra-usage-noninteractive-BGUiGr3a.js +0 -1
  584. package/dist/chunks/extraUsage-X6CmSsdg.js +0 -1
  585. package/dist/chunks/extractMemories-C8R4DJVc.js +0 -1
  586. package/dist/chunks/fast-BJwQnvAP.js +0 -1
  587. package/dist/chunks/fast-DMkPYQmQ.js +0 -1
  588. package/dist/chunks/featureCheck-p7OeCYzj.js +0 -1
  589. package/dist/chunks/feedback-DLcYu4id.js +0 -1
  590. package/dist/chunks/fileStateCache-C7-TxF8G.js +0 -1
  591. package/dist/chunks/files-DYvAZGxp.js +0 -2
  592. package/dist/chunks/firstPartyEventLogger-C00GfHTl.js +0 -1
  593. package/dist/chunks/flushGate-0DZFLUEb.js +0 -1
  594. package/dist/chunks/gates-DP4JyL5e.js +0 -1
  595. package/dist/chunks/gates-DeLWne9R.js +0 -1
  596. package/dist/chunks/gemini-CnKaXUJJ.js +0 -1
  597. package/dist/chunks/generateRecap-BUS2DEdj.js +0 -1
  598. package/dist/chunks/generateSessionName-CnPPgvyy.js +0 -1
  599. package/dist/chunks/genericProcessUtils-BGvcwuPt.js +0 -23
  600. package/dist/chunks/git-CN3qtTb_.js +0 -6
  601. package/dist/chunks/git-D23Mzu_K.js +0 -1
  602. package/dist/chunks/githubRepoPathMapping-CnXpQRPY.js +0 -1
  603. package/dist/chunks/grok-C2BUbWJR.js +0 -1
  604. package/dist/chunks/growthbook-CPTqwUyC.js +0 -1
  605. package/dist/chunks/heapdump-pamjtM2a.js +0 -5
  606. package/dist/chunks/help-z7XnNKDT.js +0 -1
  607. package/dist/chunks/hooks-BEAaBqmd.js +0 -1
  608. package/dist/chunks/hooks-iTfSDH96.js +0 -79
  609. package/dist/chunks/hostAdapter-DWD430of.js +0 -1
  610. package/dist/chunks/hostGuard-zim_4F9V.js +0 -1
  611. package/dist/chunks/ide-BK8Td_CD.js +0 -2
  612. package/dist/chunks/inboundAttachments-DQ4Czsr5.js +0 -1
  613. package/dist/chunks/inboundAttachments-Dq3IYudc.js +0 -1
  614. package/dist/chunks/initReplBridge-BeGirV3Q.js +0 -1
  615. package/dist/chunks/insights-DfD6PMkd.js +0 -822
  616. package/dist/chunks/install-CNq--Fit.js +0 -1
  617. package/dist/chunks/install-github-app-Dhq_T_EJ.js +0 -147
  618. package/dist/chunks/install-slack-app-mz5O3xo_.js +0 -1
  619. package/dist/chunks/instrumentation-CM0poWjx.js +0 -12
  620. package/dist/chunks/job-CKI1I_Va.js +0 -2
  621. package/dist/chunks/jwtUtils-CpXwh_du.js +0 -1
  622. package/dist/chunks/keybindings-5qahtcNc.js +0 -2
  623. package/dist/chunks/lang-BMNwfSRv.js +0 -1
  624. package/dist/chunks/language-DXpi4083.js +0 -1
  625. package/dist/chunks/language-GlWQb4l9.js +0 -1
  626. package/dist/chunks/launchAgentsPlatform-BU4bAPan.js +0 -1
  627. package/dist/chunks/launchAutofixPr-B80p6iq-.js +0 -18
  628. package/dist/chunks/launchLocalMemory-CDAa9B30.js +0 -3
  629. package/dist/chunks/launchLocalVault-B19lF8tP.js +0 -3
  630. package/dist/chunks/launchMemoryStores-C6wJI-8V.js +0 -1
  631. package/dist/chunks/launchOnboarding-BIlwEdkk.js +0 -8
  632. package/dist/chunks/launchSchedule-DjMh3--x.js +0 -1
  633. package/dist/chunks/launchSkillStore-Bs5thijU.js +0 -1
  634. package/dist/chunks/launchTeleport-CDlWx4xC.js +0 -3
  635. package/dist/chunks/launchVault-C40NAyOp.js +0 -1
  636. package/dist/chunks/loadAgentsDir-BYqiLHDS.js +0 -1
  637. package/dist/chunks/loadAgentsDir-C9Ee_fs1.js +0 -4672
  638. package/dist/chunks/loadPluginHooks-DaETszNq.js +0 -1
  639. package/dist/chunks/localSearch-B3zijtEM.js +0 -1
  640. package/dist/chunks/localSearch-BTGnGPVi.js +0 -1
  641. package/dist/chunks/log-CzsijfHZ.js +0 -1
  642. package/dist/chunks/login-B3IQj5YQ.js +0 -1
  643. package/dist/chunks/login-CUM0odSh.js +0 -1
  644. package/dist/chunks/logoV2Utils-CW73xjcW.js +0 -1
  645. package/dist/chunks/logout-B3hPrJSX.js +0 -1
  646. package/dist/chunks/magicDocs-BysWdjbO.js +0 -57
  647. package/dist/chunks/main-CnAyCMYQ.js +0 -1108
  648. package/dist/chunks/main-D9fUXJiD.js +0 -31
  649. package/dist/chunks/mappers-D1SAyuKF.js +0 -1
  650. package/dist/chunks/mcp-BIiXcANN.js +0 -1
  651. package/dist/chunks/mcp-BLcZi9zs.js +0 -2
  652. package/dist/chunks/mcp-nOKz2_By.js +0 -6
  653. package/dist/chunks/mcpServer-CJOTyq3O.js +0 -1
  654. package/dist/chunks/mcpServer-DaiouIKs.js +0 -1
  655. package/dist/chunks/memoize-DxwLawI2.js +0 -1
  656. package/dist/chunks/memory-DtFuXZHl.js +0 -1
  657. package/dist/chunks/mobile-umu5P0cM.js +0 -2
  658. package/dist/chunks/mode-BPNUYCpk.js +0 -2
  659. package/dist/chunks/model-Cky6xlFt.js +0 -1
  660. package/dist/chunks/model-DC5bOhtE.js +0 -1
  661. package/dist/chunks/onChangeAppState-pafR88Yw.js +0 -1
  662. package/dist/chunks/openai-BOxlfR-k.js +0 -10
  663. package/dist/chunks/overageCreditGrant-BmmOYjTh.js +0 -1
  664. package/dist/chunks/panel-ByW1omJn.js +0 -1
  665. package/dist/chunks/panel-s9fbCKfl.js +0 -1
  666. package/dist/chunks/parser-CmngCwjB.js +0 -1
  667. package/dist/chunks/parser-SWIZo39J.js +0 -1
  668. package/dist/chunks/passes-CqiFdifM.js +0 -1
  669. package/dist/chunks/path-B3lx7yHn.js +0 -1
  670. package/dist/chunks/paths-C2JRlUsH.js +0 -39
  671. package/dist/chunks/permissions-BHJUxNga.js +0 -3
  672. package/dist/chunks/permissions-Ps_D01ZB.js +0 -1
  673. package/dist/chunks/pipeTransport-BTYiqf9e.js +0 -1
  674. package/dist/chunks/plan-CF_ClJlj.js +0 -1
  675. package/dist/chunks/platform-CuyedWpe.js +0 -2
  676. package/dist/chunks/plugin-Bz3RKbru.js +0 -1
  677. package/dist/chunks/pluginAutoupdate-Ck0wWoNE.js +0 -1
  678. package/dist/chunks/pluginBlocklist-7dlesHcW.js +0 -1
  679. package/dist/chunks/pluginCliCommands-D502zE25.js +0 -1
  680. package/dist/chunks/pluginFlagging-DfHARfd-.js +0 -1
  681. package/dist/chunks/pluginOperations-BBRf8tuH.js +0 -2
  682. package/dist/chunks/pluginStartupCheck-BKEhWQR2.js +0 -1
  683. package/dist/chunks/pluginStartupCheck-ZcaocOSL.js +0 -1
  684. package/dist/chunks/plugins-JnZ3lNqG.js +0 -4
  685. package/dist/chunks/policyLimits-CtOjYdHx.js +0 -1
  686. package/dist/chunks/pollConfig-Duecunu0.js +0 -1
  687. package/dist/chunks/poller-Dbo07OEA.js +0 -1
  688. package/dist/chunks/poor-CUwZAV9z.js +0 -1
  689. package/dist/chunks/poorMode-DOoZ0U-8.js +0 -1
  690. package/dist/chunks/poorMode-DRcH1fuh.js +0 -1
  691. package/dist/chunks/print-D9IhN66j.js +0 -39
  692. package/dist/chunks/privacy-settings-DmbuvR-R.js +0 -1
  693. package/dist/chunks/processBashCommand-Cg8we9vS.js +0 -1
  694. package/dist/chunks/processSlashCommand-BBQQEGZd.js +0 -6
  695. package/dist/chunks/projectContext-D5FgyE-d.js +0 -1
  696. package/dist/chunks/prompt-7Vt8FUX_.js +0 -1
  697. package/dist/chunks/prompt-Cj0hg3CU.js +0 -1
  698. package/dist/chunks/prompt-thBQB2X5.js +0 -222
  699. package/dist/chunks/promptEditor-C8B2TEXp.js +0 -4
  700. package/dist/chunks/protocolHandler-BUKWgksO.js +0 -13
  701. package/dist/chunks/proxy-CfZp-wce.js +0 -99
  702. package/dist/chunks/rate-limit-options-PruvKAQt.js +0 -1
  703. package/dist/chunks/rcDebugLog-CIS3PU-H.js +0 -11
  704. package/dist/chunks/referral-CXmDvb7V.js +0 -1
  705. package/dist/chunks/refresh-C_FDHRT7.js +0 -1
  706. package/dist/chunks/registerProtocol-WxQUBybC.js +0 -36
  707. package/dist/chunks/registry-CeBTik9J.js +0 -1
  708. package/dist/chunks/release-notes-aZ6QUVnT.js +0 -4
  709. package/dist/chunks/releaseNotes-2GPd_O_r.js +0 -2
  710. package/dist/chunks/reload-plugins-BDh4ZhHi.js +0 -1
  711. package/dist/chunks/remote-env-BIOFHNQC.js +0 -1
  712. package/dist/chunks/remoteBridgeCore-DyA_2GrL.js +0 -1
  713. package/dist/chunks/remoteControlServer-BjW9GsPd.js +0 -3
  714. package/dist/chunks/rename-CKlAeppY.js +0 -1
  715. package/dist/chunks/renderOptions-rmj4Mkls.js +0 -1
  716. package/dist/chunks/resume-Dm71Aeni.js +0 -2
  717. package/dist/chunks/runtimeObserver-BYOo5dT0.js +0 -1
  718. package/dist/chunks/runtimeObserver-CA7pdBvT.js +0 -10
  719. package/dist/chunks/sandbox-adapter-C7TBAehE.js +0 -1
  720. package/dist/chunks/sandbox-toggle-fHc9E9xW.js +0 -1
  721. package/dist/chunks/searchExtraTools-CpFsg_tS.js +0 -1
  722. package/dist/chunks/sentry-B1g5Tgp2.js +0 -13
  723. package/dist/chunks/session-C46oy7nX.js +0 -2
  724. package/dist/chunks/sessionDiscovery-CtrJ2Bfr.js +0 -1
  725. package/dist/chunks/sessionFileAccessHooks-dwF5SFoS.js +0 -1
  726. package/dist/chunks/sessionMemory-BqCsLnFl.js +0 -1
  727. package/dist/chunks/sessionMemory-D4-Ymn0Q.js +0 -1
  728. package/dist/chunks/sessionMemoryUtils-BKdYMir6.js +0 -1
  729. package/dist/chunks/sessionObserver-Bfu8q0_K.js +0 -1
  730. package/dist/chunks/sessionObserver-DoBuLaCJ.js +0 -20
  731. package/dist/chunks/sessionStorage-CUUU_J4D.js +0 -1
  732. package/dist/chunks/sessionStoragePortable-DJZ_6cL8.js +0 -3
  733. package/dist/chunks/sessionTitle-BOM0LQlq.js +0 -14
  734. package/dist/chunks/sessionTracing-BEKULg2L.js +0 -11
  735. package/dist/chunks/settingsSync-BIsGiZhM.js +0 -1
  736. package/dist/chunks/setup-C3FOTg1s.js +0 -1
  737. package/dist/chunks/setup-ChF37I92.js +0 -9
  738. package/dist/chunks/setup-DvFPFV-3.js +0 -2
  739. package/dist/chunks/shadowedRuleDetection-spwhhTXF.js +0 -1
  740. package/dist/chunks/shellQuote-DgjT8KBA.js +0 -1
  741. package/dist/chunks/sideQuestion-iy7kJEkr.js +0 -20
  742. package/dist/chunks/sink-D6dxOYIw.js +0 -1
  743. package/dist/chunks/sink-FeQonv8-.js +0 -1
  744. package/dist/chunks/sinks-DKMqKJ66.js +0 -1
  745. package/dist/chunks/sinks-zNh_PVeS.js +0 -2
  746. package/dist/chunks/skill-learning-ChAFwJf0.js +0 -5
  747. package/dist/chunks/skillChangeDetector-8LVraP0Y.js +0 -1
  748. package/dist/chunks/skillGapStore-CUws9CQ6.js +0 -5
  749. package/dist/chunks/skillGapStore-CdPgIARS.js +0 -1
  750. package/dist/chunks/skillGenerator-CLtTRIjy.js +0 -8
  751. package/dist/chunks/skillLearning-CBosoKl-.js +0 -1
  752. package/dist/chunks/skillLearning-f7-aknmS.js +0 -1
  753. package/dist/chunks/skillPanel-Cd0AFEZf.js +0 -28
  754. package/dist/chunks/skillSearchPanel-VWiAbmdr.js +0 -21
  755. package/dist/chunks/skills-oQtI4eDn.js +0 -1
  756. package/dist/chunks/sprites-Cp4_DJUI.js +0 -1
  757. package/dist/chunks/src-BIPP3_mo.js +0 -26
  758. package/dist/chunks/src-DJXKJavk.js +0 -1
  759. package/dist/chunks/startupProfiler-DnXZaX4A.js +0 -3
  760. package/dist/chunks/startupProfiler-SOE--nM9.js +0 -1
  761. package/dist/chunks/stats-B1X-nxO8.js +0 -1
  762. package/dist/chunks/status-BtCnWZEv.js +0 -1
  763. package/dist/chunks/statusNoticeHelpers-B6GW2gMe.js +0 -1
  764. package/dist/chunks/stdio-BEEzuxaZ.js +0 -1
  765. package/dist/chunks/stickers-BMh2qjgF.js +0 -1
  766. package/dist/chunks/subprocessEnv-CggQWZCx.js +0 -1
  767. package/dist/chunks/systemPromptSections-DB93ZNWP.js +0 -1
  768. package/dist/chunks/tag-B6WpuUE_.js +0 -11
  769. package/dist/chunks/tasks-DIOPZDoF.js +0 -1
  770. package/dist/chunks/teamHelpers-9p7wPcXj.js +0 -1
  771. package/dist/chunks/teamHelpers-PLGwYL4x.js +0 -1
  772. package/dist/chunks/teammateModeSnapshot-DO-3AkNP.js +0 -1
  773. package/dist/chunks/teammateModeSnapshot-DU8JCRRs.js +0 -1
  774. package/dist/chunks/teleport-DPUoWpD4.js +0 -1
  775. package/dist/chunks/templateJobs-DOSQvjx0.js +0 -12
  776. package/dist/chunks/terminalSetup-DdHkyElj.js +0 -33
  777. package/dist/chunks/terminalSetup-tSFJeCVl.js +0 -1
  778. package/dist/chunks/theme-Hf1fhR3q.js +0 -1
  779. package/dist/chunks/thinkback-5QYAbr0P.js +0 -1
  780. package/dist/chunks/thinkback-B5IraP81.js +0 -1
  781. package/dist/chunks/thinkback-play-Bqv85sjY.js +0 -1
  782. package/dist/chunks/tmux-CvbhsfwG.js +0 -1
  783. package/dist/chunks/toolEventObserver-B-mqmRv0.js +0 -1
  784. package/dist/chunks/toolEventObserver-_Fk1dSYg.js +0 -1
  785. package/dist/chunks/toolPool-C2KLBvek.js +0 -1
  786. package/dist/chunks/toolPool-CiEaFfxq.js +0 -1
  787. package/dist/chunks/trustedDevice-BowIKqqC.js +0 -1
  788. package/dist/chunks/trustedDevice-f8HslQu2.js +0 -1
  789. package/dist/chunks/tui-geoc3zxu.js +0 -6
  790. package/dist/chunks/types-CQ1wrnQ0.js +0 -1
  791. package/dist/chunks/types-Csi32ZXh.js +0 -17
  792. package/dist/chunks/udsClient-BdPOrL1H.js +0 -1
  793. package/dist/chunks/ultrareviewCommand-DbmRN6Lg.js +0 -3
  794. package/dist/chunks/undercover-Ch9wnIbk.js +0 -31
  795. package/dist/chunks/undercover-X6-EJ_7K.js +0 -1
  796. package/dist/chunks/up-D-U4wUCe.js +0 -12
  797. package/dist/chunks/updateCCB-DFHrOTEX.js +0 -11
  798. package/dist/chunks/upgrade-B6Ih-Ubj.js +0 -1
  799. package/dist/chunks/upgrade-CC4cnsnt.js +0 -1
  800. package/dist/chunks/upload-DSTB33ZR.js +0 -1
  801. package/dist/chunks/upstreamproxy-Ci5T_JCo.js +0 -11
  802. package/dist/chunks/usage-CNqpSfd2.js +0 -1
  803. package/dist/chunks/usage-DiZsjcMM.js +0 -1
  804. package/dist/chunks/useMainLoopModel-Bo6iEtB3.js +0 -1
  805. package/dist/chunks/useManagePlugins-Cvj0XfLp.js +0 -1
  806. package/dist/chunks/useMergedTools-BEpwy0Ec.js +0 -1
  807. package/dist/chunks/useSearchInput-YiO4crrI.js +0 -1
  808. package/dist/chunks/useSettingsErrors-BE-PITl4.js +0 -1
  809. package/dist/chunks/useVoice-D1sKPiqb.js +0 -1
  810. package/dist/chunks/util-C8_5375U.js +0 -1
  811. package/dist/chunks/utils-Dmh9vBcg.js +0 -1
  812. package/dist/chunks/validatePlugin-BQA60S_J.js +0 -1
  813. package/dist/chunks/vim-oNiLgw0C.js +0 -1
  814. package/dist/chunks/voice-BcA5h8ya.js +0 -8
  815. package/dist/chunks/voice-CGsMzVaA.js +0 -2
  816. package/dist/chunks/voiceModeEnabled-DprM_JSH.js +0 -1
  817. package/dist/chunks/voiceModeEnabled-Dpx-sP8V.js +0 -1
  818. package/dist/chunks/voiceStreamSTT-CASv4SGl.js +0 -1
  819. package/dist/chunks/voiceStreamSTT-CaI5Uz-7.js +0 -1
  820. package/dist/chunks/which-DqSAIvp2.js +0 -1
  821. package/dist/chunks/windowsPaths-C9CigqoF.js +0 -1
  822. package/dist/chunks/windowsPaths-swxCp7bX.js +0 -2
  823. package/dist/chunks/workSecret-mS2OrpxF.js +0 -1
  824. package/dist/chunks/workerRegistry-CCYrYthd.js +0 -1
  825. package/dist/chunks/worktree-C9WNXNFR.js +0 -1
  826. package/dist/chunks/worktreeModeEnabled-THQb19xR.js +0 -1
  827. package/dist/chunks/xml-BW5T-oW-.js +0 -1
  828. /package/dist/chunks/{Dialog-DYFGqyDs.js → Dialog-91X6ZGg9.js} +0 -0
  829. /package/dist/chunks/{InProcessTransport-gJLr5CIx.js → InProcessTransport-B9II3BiO.js} +0 -0
  830. /package/dist/chunks/{ListItem-OFARanN7.js → ListItem-DCQhApdJ.js} +0 -0
  831. /package/dist/chunks/{PermissionDialog-5MlJf7ew.js → PermissionDialog-_WQPRYHQ.js} +0 -0
  832. /package/dist/chunks/{PressEnterToContinue-BdA9zDGs.js → PressEnterToContinue-BJ58eCFC.js} +0 -0
  833. /package/dist/chunks/{SearchBox-DfOmUoaI.js → SearchBox-CkO4rQ-9.js} +0 -0
  834. /package/dist/chunks/{TungstenTool-V-Bwqlx3.js → TungstenTool-CnAF4y0E.js} +0 -0
  835. /package/dist/chunks/{attributionHooks-Br5LZ6bk.js → attributionHooks-VGSpz4mk.js} +0 -0
  836. /package/dist/chunks/{attributionTrailer-BMTuK4Ax.js → attributionTrailer-C8uqiLIb.js} +0 -0
  837. /package/dist/chunks/{autoModeDenials-D8eQ1CoM.js → autoModeDenials-DlO5g6E9.js} +0 -0
  838. /package/dist/chunks/{bedrockClient-Ci523Btx.js → bedrockClient-BUmO2U-X.js} +0 -0
  839. /package/dist/chunks/{capacityWake-BXlUpptF.js → capacityWake-DtmDHwEt.js} +0 -0
  840. /package/dist/chunks/{ccshareResume-CqNm2k-J.js → ccshareResume-DKwcd0Vc.js} +0 -0
  841. /package/dist/chunks/{connectHeadless-DFCrE6O4.js → connectHeadless-ByewVfOb.js} +0 -0
  842. /package/dist/chunks/{constants-41VpZw2G.js → constants-BljlAJOX.js} +0 -0
  843. /package/dist/chunks/{controlMessageCompat-BJhFiS7u.js → controlMessageCompat-Ds-CF-sM.js} +0 -0
  844. /package/dist/chunks/{cron-DiW7eIPP.js → cron-g_P3I5uT.js} +0 -0
  845. /package/dist/chunks/{dangerousBackend-Du0K4q5Z.js → dangerousBackend-Dkjtndh1.js} +0 -0
  846. /package/dist/chunks/{distRoot-CcxmnzqQ.js → distRoot-BNg_iO5-.js} +0 -0
  847. /package/dist/chunks/{esm-C-1qL9Mn.js → esm-vlR7mK5b.js} +0 -0
  848. /package/dist/chunks/{eventLoopStallDetector-XfubcyMN.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
  849. /package/dist/chunks/{exit-_obETqBv.js → exit-DOBLl8jN.js} +0 -0
  850. /package/dist/chunks/{featureCheck-Cm0YNDXO.js → featureCheck-j7P30mry.js} +0 -0
  851. /package/dist/chunks/{fpsMetrics-CEQt6Tk1.js → fpsMetrics-DKWp7vng.js} +0 -0
  852. /package/dist/chunks/{fuse-TM-TeOo_.js → fuse-D3B-UE5Y.js} +0 -0
  853. /package/dist/chunks/{hash-BRmOQc3c.js → hash-CaUkS-30.js} +0 -0
  854. /package/dist/chunks/{index.min-BJnb9GQI.js → index.min-BNgJ2wVD.js} +0 -0
  855. /package/dist/chunks/{instinctParser-CJPM8VjX.js → instinctParser-DOtj1Kni.js} +0 -0
  856. /package/dist/chunks/{intl-Pse97ORk.js → intl-CLeE9DsD.js} +0 -0
  857. /package/dist/chunks/{launchCommand-Du91jxMC.js → launchCommand-9eYsPG7W.js} +0 -0
  858. /package/dist/chunks/{lazySchema-2sOku3cX.js → lazySchema-B0QShMaQ.js} +0 -0
  859. /package/dist/chunks/{lib-B4Q0Nrpb.js → lib-Cf16LgKj.js} +0 -0
  860. /package/dist/chunks/{lockfile-Y1hwdHrQ.js → lockfile-C3JsqLpb.js} +0 -0
  861. /package/dist/chunks/{modalContext-CmSKRyea.js → modalContext-c5Yqx_CQ.js} +0 -0
  862. /package/dist/chunks/{normalization-Cox8C0dP.js → normalization-BLfP0Kqt.js} +0 -0
  863. /package/dist/chunks/{observationStore-gFvWXJmc.js → observationStore-rLlDwRtG.js} +0 -0
  864. /package/dist/chunks/{openaiShared-Dy78YERG.js → openaiShared-C-AuktRP.js} +0 -0
  865. /package/dist/chunks/{output-style-BmEQscMd.js → output-style-B64-Zum6.js} +0 -0
  866. /package/dist/chunks/{parseConnectUrl-C6cvMkkH.js → parseConnectUrl-DL390ePs.js} +0 -0
  867. /package/dist/chunks/{permissions-DXLfdE7b.js → permissions-BsVJvaEe.js} +0 -0
  868. /package/dist/chunks/{postCommitAttribution-DhFkZMxJ.js → postCommitAttribution-D8MoHFoz.js} +0 -0
  869. /package/dist/chunks/{projectContext-iWPqcl0Z.js → projectContext-Dn7umMp6.js} +0 -0
  870. /package/dist/chunks/{prompt-4tea6NJQ.js → prompt-IqfIbvg9.js} +0 -0
  871. /package/dist/chunks/{rewind-DAn-nNs-.js → rewind-Djt1zU_3.js} +0 -0
  872. /package/dist/chunks/{rollback-DbSpxmJE.js → rollback-CtS4yEQx.js} +0 -0
  873. /package/dist/chunks/{sanitization-JYRkZFrK.js → sanitization-Ds6zRQyx.js} +0 -0
  874. /package/dist/chunks/{sdkHeapDumpMonitor-DKtfJW5o.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
  875. /package/dist/chunks/{semver-Tw0AFar5.js → semver-Di5OaTd5.js} +0 -0
  876. /package/dist/chunks/{server-CswFAYwN.js → server-DONKdvGc.js} +0 -0
  877. /package/dist/chunks/{serverBanner-CImTYGhY.js → serverBanner-DIyjgIM-.js} +0 -0
  878. /package/dist/chunks/{serverLog-Bwt7XEmk.js → serverLog-D1N5yx8A.js} +0 -0
  879. /package/dist/chunks/{sessionDataUploader-CKRXCBxI.js → sessionDataUploader-CsNePsOb.js} +0 -0
  880. /package/dist/chunks/{sessionManager-Ca2O821f.js → sessionManager-BOmgJd1l.js} +0 -0
  881. /package/dist/chunks/{slashCommandParsing-Cari0pNg.js → slashCommandParsing-BfanVchF.js} +0 -0
  882. /package/dist/chunks/{sleep-8Eb9j_Ly.js → sleep-C6koP5Ka.js} +0 -0
  883. /package/dist/chunks/{src-x7u_sB6m.js → src-BWpNn6Yz.js} +0 -0
  884. /package/dist/chunks/{src-BRAdBA8A.js → src-C-Ho8kYe.js} +0 -0
  885. /package/dist/chunks/{src-BlLavFUS.js → src-Cu58IYYb.js} +0 -0
  886. /package/dist/chunks/{src-CI_jaaBj.js → src-d2UJ68oX.js} +0 -0
  887. /package/dist/chunks/{state-Ce1HlR-H.js → state-BiRT9RAF.js} +0 -0
  888. /package/dist/chunks/{staticRender-Br64h1E1.js → staticRender-C5v46np_.js} +0 -0
  889. /package/dist/chunks/{stdio-D4cT86R0.js → stdio-Oy68T2eE.js} +0 -0
  890. /package/dist/chunks/{store-DhI7Lcan.js → store-DYC8zeL1.js} +0 -0
  891. /package/dist/chunks/{subprocessEnv-DV6q6o6w.js → subprocessEnv-DIeTJ-xE.js} +0 -0
  892. /package/dist/chunks/{systemPromptSections-BcN_XBTx.js → systemPromptSections-DY7epA2Y.js} +0 -0
  893. /package/dist/chunks/{systemTheme-dDbitcxB.js → systemTheme-eRWGHYSL.js} +0 -0
  894. /package/dist/chunks/{teammate-DMYOtLTK.js → teammate-CbskW5G9.js} +0 -0
  895. /package/dist/chunks/{types-RJTEOuIt.js → types-C0nqJFkV.js} +0 -0
  896. /package/dist/chunks/{useKeybinding-FsOnjW6T.js → useKeybinding-DPOUuymz.js} +0 -0
  897. /package/dist/chunks/{worktreeModeEnabled-Db6b_Iy_.js → worktreeModeEnabled-KtHEqeFA.js} +0 -0
  898. /package/dist/chunks/{xdg-CBxMmQux.js → xdg-BFD9ydDV.js} +0 -0
@@ -0,0 +1,103 @@
1
+ import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{g as i}from"./client-_sjL0I7A.js";import{n as a,t as o}from"./figures-gfT9mM8P.js";import{In as s,Ln as c,Rn as l,b as u,f as d,g as f,h as p,m,t as h,tt as g,x as _}from"./src-Di342QoJ.js";import{t as v}from"./jsx-runtime-D-D469L8.js";import{Ct as y,cn as b}from"./state-sIHsFpDu.js";import{$o as x,Fa as ee,Gs as S,Ho as te,Ko as C,Na as ne,Ol as re,Qo as ie,Us as ae,a as oe,jc as se,kc as ce,kl as le,s as ue}from"./paths-Ci1iwL5Y.js";import{B as de,D as fe,E as pe,J as me,U as he}from"./debug-otxXY3j-.js";import{n as ge,r as _e}from"./analytics-DqMQntaB.js";import{n as ve,t as ye}from"./cwd--iizewsn.js";import{t as be}from"./sdk-DEtgRZvI.js";import{o as xe,s as Se}from"./log-DSV4Ht5l.js";import{b as Ce,x as we}from"./teammate-CbskW5G9.js";import{E as Te,x as Ee}from"./startupProfiler-CAntGAbs.js";import{l as De,n as Oe,o as ke}from"./stringUtils-KZoO4GUd.js";import{$D as Ae,$p as je,$u as Me,BC as Ne,Bp as Pe,DC as w,Db as Fe,Dp as Ie,EC as T,Eb as Le,Eo as Re,Gp as ze,J_ as Be,Jn as Ve,Jy as He,Kc as Ue,Kp as We,Ky as Ge,ME as Ke,M_ as qe,NE as Je,N_ as Ye,Ob as Xe,Op as Ze,Ow as Qe,P_ as $e,Qo as et,Qp as tt,Qu as nt,Tb as rt,Uk as it,Uo as at,Up as ot,VC as st,Wk as ct,Wp as lt,Xf as ut,Xp as dt,Y_ as ft,Yn as pt,Z_ as mt,Zf as ht,Zp as gt,aS as _t,ap as vt,bu as yt,c as bt,cD as xt,ck as St,dS as Ct,d_ as wt,eO as Tt,fC as Et,fS as Dt,hp as Ot,ip as kt,kb as At,kw as jt,l as Mt,lC as Nt,lD as Pt,lt as Ft,mT as It,mp as Lt,o as Rt,oS as zt,op as Bt,pD as Vt,pT as Ht,p_ as Ut,qc as Wt,qn as Gt,r as Kt,rp as qt,rt as Jt,s as Yt,sD as Xt,st as Zt,t as Qt,tt as $t,uC as en,xu as tn,zp as nn}from"./loadAgentsDir-C_wFhytF.js";import{Qn as rn,Zn as an}from"./prompt-6ZKyqv6z.js";import{X as on}from"./rcDebugLog-C42A0pX1.js";import{t as E}from"./useKeybinding-DPOUuymz.js";import{n as sn,t as cn}from"./useExitOnCtrlCDWithKeybindings-BHi41Ku_.js";import{r as ln,t as un}from"./TungstenTool-CnAF4y0E.js";import{a as dn,i as fn,n as pn,o as mn,r as hn,t as gn}from"./agentDisplay-Dr1XbOAu.js";import{n as _n,t as vn}from"./useMergedTools-CTQl4cdV.js";import{n as yn,r as bn,t as xn}from"./promptEditor-Dz41P-3I.js";import{n as Sn,t as Cn}from"./useMainLoopModel-D3tJJC3y.js";import{join as D}from"path";import{mkdir as wn,open as Tn,unlink as En}from"fs/promises";var O,Dn=e((()=>{O={FOLDER_NAME:`.claude`,AGENTS_DIR:`agents`}}));function On(e,t,n,r,i,a,o,s){return`---
2
+ name: ${e}
3
+ description: "${t.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\n/g,`\\\\n`)}"${n===void 0||n.length===1&&n[0]===`*`?``:`\ntools: ${n.join(`, `)}`}${a?`\nmodel: ${a}`:``}${s===void 0?``:`\neffort: ${s}`}${i?`\ncolor: ${i}`:``}${o?`\nmemory: ${o}`:``}
4
+ ---
5
+
6
+ ${r}
7
+ `}function kn(e){switch(e){case`flagSettings`:throw Error(`Cannot get directory path for ${e} agents`);case`userSettings`:return D(n(),O.AGENTS_DIR);case`projectSettings`:return D(ye(),O.FOLDER_NAME,O.AGENTS_DIR);case`policySettings`:return D(ce(),O.FOLDER_NAME,O.AGENTS_DIR);case`localSettings`:return D(ye(),O.FOLDER_NAME,O.AGENTS_DIR)}}function An(e){switch(e){case`projectSettings`:return D(`.`,O.FOLDER_NAME,O.AGENTS_DIR);default:return kn(e)}}function jn(e){return D(kn(e.source),`${e.agentType}.md`)}function Mn(e){if(e.source===`built-in`)return`Built-in`;if(e.source===`plugin`)throw Error(`Cannot get file path for plugin agents`);return D(kn(e.source),`${e.filename||e.agentType}.md`)}function Nn(e){return e.source===`built-in`?`Built-in`:D(An(e.source),`${e.agentType}.md`)}function Pn(e){return Yt(e)?`Built-in`:Mt(e)?`Plugin: ${e.plugin||`Unknown`}`:e.source===`flagSettings`?`CLI argument`:D(An(e.source),`${e.filename||e.agentType}.md`)}async function Fn(e){let t=kn(e);return await wn(t,{recursive:!0}),t}async function In(e,t,n,r,i,a=!0,o,s,c,l){if(e===`built-in`)throw Error(`Cannot save built-in agents`);await Fn(e);let u=jn({source:e,agentType:t}),d=On(t,n,r,i,o,s,c,l);try{await zn(u,d,a?`wx`:`w`)}catch(e){throw de(e)===`EEXIST`?Error(`Agent file already exists: ${u}`):e}}async function Ln(e,t,n,r,i,a,o,s){if(e.source===`built-in`)throw Error(`Cannot update built-in agents`);await zn(Mn(e),On(e.agentType,t,n,r,i,a,o,s))}async function Rn(e){if(e.source===`built-in`)throw Error(`Cannot delete built-in agents`);let t=Mn(e);try{await En(t)}catch(e){if(de(e)!==`ENOENT`)throw e}}async function zn(e,t,n=`w`){let r=await Tn(e,n);try{await r.writeFile(t,{encoding:`utf-8`}),await r.datasync()}finally{await r.close()}}var Bn=e((()=>{se(),Rt(),ve(),r(),he(),Dn()}));function Vn({agent:e,tools:t,onBack:n}){let r=$e(e,t,!1),i=Pn(e),a=Fe(e.agentType);g(`confirm:no`,n,{context:`Confirmation`});let s=e=>{e.key===`return`&&(e.preventDefault(),n())};function c(){return r.hasWildcard?(0,k.jsx)(u,{children:`All tools`}):!e.tools||e.tools.length===0?(0,k.jsx)(u,{children:`None`}):(0,k.jsxs)(k.Fragment,{children:[r.validTools.length>0&&(0,k.jsx)(u,{children:r.validTools.join(`, `)}),r.invalidTools.length>0&&(0,k.jsxs)(u,{color:`warning`,children:[o.warning,` Unrecognized: `,r.invalidTools.join(`, `)]})]})}return(0,k.jsxs)(_,{flexDirection:`column`,gap:1,tabIndex:0,autoFocus:!0,onKeyDown:s,children:[(0,k.jsx)(u,{dimColor:!0,children:i}),(0,k.jsxs)(_,{flexDirection:`column`,children:[(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Description`}),` (tells Claude when to use this agent):`]}),(0,k.jsx)(_,{marginLeft:2,children:(0,k.jsx)(u,{children:e.whenToUse})})]}),(0,k.jsxs)(_,{children:[(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Tools`}),`:`,` `]}),c()]}),(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Model`}),`: `,Be(e.model)]}),e.permissionMode&&(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Permission mode`}),`: `,e.permissionMode]}),e.memory&&(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Memory`}),`: `,Gt(e.memory)]}),e.hooks&&Object.keys(e.hooks).length>0&&(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Hooks`}),`: `,Object.keys(e.hooks).join(`, `)]}),e.skills&&e.skills.length>0&&(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Skills`}),`:`,` `,e.skills.length>10?`${e.skills.length} skills`:e.skills.join(`, `)]}),a&&(0,k.jsx)(_,{children:(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`Color`}),`:`,` `,(0,k.jsxs)(u,{backgroundColor:a,color:`inverseText`,children:[` `,e.agentType,` `]})]})}),!Yt(e)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(_,{children:(0,k.jsxs)(u,{children:[(0,k.jsx)(u,{bold:!0,children:`System prompt`}),`:`]})}),(0,k.jsx)(_,{marginLeft:2,marginRight:2,children:(0,k.jsx)(wt,{children:e.getSystemPrompt()})})]})]})}var k,Hn=e((()=>{a(),l(),h(),E(),Xe(),Ve(),Ye(),Rt(),mt(),Ut(),Bn(),k=v()}));function Un({agentName:e,currentColor:t=`automatic`,onConfirm:n}){let[r,i]=(0,Wn.useState)(Math.max(0,Gn.indexOf(t))),a=e=>{if(e.key===`up`)e.preventDefault(),i(e=>e>0?e-1:Gn.length-1);else if(e.key===`down`)e.preventDefault(),i(e=>e<Gn.length-1?e+1:0);else if(e.key===`return`){e.preventDefault();let t=Gn[r];n(t===`automatic`?void 0:t)}},s=Gn[r];return(0,A.jsxs)(_,{flexDirection:`column`,gap:1,tabIndex:0,autoFocus:!0,onKeyDown:a,children:[(0,A.jsx)(_,{flexDirection:`column`,children:Gn.map((e,t)=>{let n=t===r;return(0,A.jsxs)(_,{flexDirection:`row`,gap:1,children:[(0,A.jsx)(u,{color:n?`suggestion`:void 0,children:n?o.pointer:` `}),e===`automatic`?(0,A.jsx)(u,{bold:n,children:`Automatic color`}):(0,A.jsxs)(_,{gap:1,children:[(0,A.jsx)(u,{backgroundColor:Le[e],color:`inverseText`,children:` `}),(0,A.jsx)(u,{bold:n,children:Oe(e)})]})]},e)})}),(0,A.jsxs)(_,{marginTop:1,children:[(0,A.jsx)(u,{children:`Preview: `}),s===void 0||s===`automatic`?(0,A.jsxs)(u,{inverse:!0,bold:!0,children:[` `,`@`,e,` `]}):(0,A.jsxs)(u,{backgroundColor:Le[s],color:`inverseText`,bold:!0,children:[` `,`@`,e,` `]})]})]})}var Wn,A,Gn,Kn=e((()=>{a(),Wn=t(l(),1),h(),Xe(),ke(),A=v(),Gn=[`automatic`,...rt]}));function qn({initialModel:e,onComplete:t,onCancel:n}){let r=Jn.useMemo(()=>{let t=ft();return e&&!t.some(t=>t.value===e)?[{value:e,label:e,description:`Current model (custom ID)`},...t]:t},[e]);return(0,Yn.jsxs)(_,{flexDirection:`column`,children:[(0,Yn.jsx)(_,{marginBottom:1,children:(0,Yn.jsx)(u,{dimColor:!0,children:`Model determines the agent's reasoning capabilities and speed.`})}),(0,Yn.jsx)(_t,{options:r,defaultValue:e??`sonnet`,onChange:t,onCancel:()=>n?n():t(void 0)})]})}var Jn,Yn,Xn=e((()=>{Jn=t(l(),1),h(),mt(),zt(),Yn=v()}));function Zn(){return{READ_ONLY:{name:`Read-only tools`,toolNames:new Set([ot.name,ze.name,ut.name,Ue.name,Ie.name,Ke.name,qt.name,Lt.name,vt.name,Ht.name,Ne.name])},EDIT:{name:`Edit tools`,toolNames:new Set([tt.name,dt.name,nn.name])},EXECUTION:{name:`Execution tools`,toolNames:new Set([yt.name,process.env.USER_TYPE===`ant`?un.name:void 0].filter(e=>e!==void 0))},MCP:{name:`MCP tools`,toolNames:new Set,isMcp:!0},OTHER:{name:`Other tools`,toolNames:new Set}}}function Qn(e){let t=new Map;return e.forEach(e=>{if(jt(e)){let n=x(e.name);if(n?.serverName){let r=t.get(n.serverName)||[];r.push(e),t.set(n.serverName,r)}}}),Array.from(t.entries()).map(([e,t])=>({serverName:e,tools:t})).sort((e,t)=>e.serverName.localeCompare(t.serverName))}function $n({tools:e,initialTools:t,onComplete:n,onCancel:r}){let i=(0,j.useMemo)(()=>qe({tools:e,isBuiltIn:!1,isAsync:!1}),[e]),[a,s]=(0,j.useState)(!t||t.includes(`*`)?i.map(e=>e.name):t),[c,l]=(0,j.useState)(0),[d,f]=(0,j.useState)(!1),p=(0,j.useMemo)(()=>{let e=new Set(i.map(e=>e.name));return a.filter(t=>e.has(t))},[a,i]),h=new Set(p),v=p.length===i.length&&i.length>0,y=e=>{e&&s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},b=(e,t)=>{s(n=>{if(t){let t=e.filter(e=>!n.includes(e));return[...n,...t]}else return n.filter(t=>!e.includes(t))})},ee=()=>{let e=i.map(e=>e.name);n(p.length===e.length&&e.every(e=>p.includes(e))?void 0:p)},S=(0,j.useMemo)(()=>{let e=Zn(),t={readOnly:[],edit:[],execution:[],mcp:[],other:[]};return i.forEach(n=>{jt(n)?t.mcp.push(n):e.READ_ONLY.toolNames.has(n.name)?t.readOnly.push(n):e.EDIT.toolNames.has(n.name)?t.edit.push(n):e.EXECUTION.toolNames.has(n.name)?t.execution.push(n):n.name!==`Agent`&&t.other.push(n)}),t},[i]),te=e=>{let t=Ce(e,e=>h.has(e.name))<e.length;return()=>{b(e.map(e=>e.name),t)}},C=[];C.push({id:`continue`,label:`Continue`,action:ee,isContinue:!0}),C.push({id:`bucket-all`,label:`${v?o.checkboxOn:o.checkboxOff} All tools`,action:()=>{b(i.map(e=>e.name),!v)}});let ne=Zn();[{id:`bucket-readonly`,name:ne.READ_ONLY.name,tools:S.readOnly},{id:`bucket-edit`,name:ne.EDIT.name,tools:S.edit},{id:`bucket-execution`,name:ne.EXECUTION.name,tools:S.execution},{id:`bucket-mcp`,name:ne.MCP.name,tools:S.mcp},{id:`bucket-other`,name:ne.OTHER.name,tools:S.other}].forEach(({id:e,name:t,tools:n})=>{if(n.length===0)return;let r=Ce(n,e=>h.has(e.name))===n.length;C.push({id:e,label:`${r?o.checkboxOn:o.checkboxOff} ${t}`,action:te(n)})});let re=C.length;C.push({id:`toggle-individual`,label:d?`Hide advanced options`:`Show advanced options`,action:()=>{f(!d),d&&c>re&&l(re)},isToggle:!0});let ie=(0,j.useMemo)(()=>Qn(i),[i]);return d&&(ie.length>0&&(C.push({id:`mcp-servers-header`,label:`MCP Servers:`,action:()=>{},isHeader:!0}),ie.forEach(({serverName:e,tools:t})=>{let n=Ce(t,e=>h.has(e.name))===t.length;C.push({id:`mcp-server-${e}`,label:`${n?o.checkboxOn:o.checkboxOff} ${e} (${t.length} ${De(t.length,`tool`)})`,action:()=>{b(t.map(e=>e.name),!n)}})}),C.push({id:`tools-header`,label:`Individual Tools:`,action:()=>{},isHeader:!0})),i.forEach(e=>{let t=e.name;if(e.name.startsWith(`mcp__`)){let n=x(e.name);t=n?`${n.toolName} (${n.serverName})`:e.name}C.push({id:`tool-${e.name}`,label:`${h.has(e.name)?o.checkboxOn:o.checkboxOff} ${t}`,action:()=>y(e.name)})})),g(`confirm:no`,(0,j.useCallback)(()=>{r?r():n(t)},[r,n,t]),{context:`Confirmation`}),(0,M.jsxs)(_,{flexDirection:`column`,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:e=>{if(e.key===`return`){e.preventDefault();let t=C[c];t&&!t.isHeader&&t.action()}else if(e.key===`up`){e.preventDefault();let t=c-1;for(;t>0&&C[t]?.isHeader;)t--;l(Math.max(0,t))}else if(e.key===`down`){e.preventDefault();let t=c+1;for(;t<C.length-1&&C[t]?.isHeader;)t++;l(Math.min(C.length-1,t))}},children:[(0,M.jsxs)(u,{color:c===0?`suggestion`:void 0,bold:c===0,children:[c===0?`${o.pointer} `:` `,`[ Continue ]`]}),(0,M.jsx)(m,{width:40}),C.slice(1).map((e,t)=>{let n=t+1===c,r=e.isToggle,i=e.isHeader;return(0,M.jsxs)(j.Fragment,{children:[r&&(0,M.jsx)(m,{width:40}),i&&t>0&&(0,M.jsx)(_,{marginTop:1}),(0,M.jsxs)(u,{color:i?void 0:n?`suggestion`:void 0,dimColor:i,bold:r&&n,children:[i?``:n?`${o.pointer} `:` `,r?`[ ${e.label} ]`:e.label]})]},e.id)}),(0,M.jsx)(_,{marginTop:1,flexDirection:`column`,children:(0,M.jsx)(u,{dimColor:!0,children:v?`All tools selected`:`${h.size} of ${i.length} tools selected`})})]})}var j,M,er=e((()=>{a(),j=t(l(),1),ie(),Qe(),Ye(),C(),tn(),ht(),je(),Wt(),gt(),lt(),We(),It(),Pe(),st(),Bt(),Ot(),Je(),ln(),Ze(),kt(),h(),E(),we(),ke(),M=v()}));function tr(e){return e===`all`?`Agents`:e===`built-in`?`Built-in agents`:e===`plugin`?`Plugin agents`:re(ae(e))}var nr=e((()=>{le(),S()}));function rr({agent:e,tools:t,onSaved:n,onBack:r}){let i=Et(),[a,c]=(0,N.useState)(`menu`),[l,d]=(0,N.useState)(0),[f,p]=(0,N.useState)(null),[m,h]=(0,N.useState)(e.color),v=(0,N.useCallback)(async()=>{let t=await xn(Mn(e));t.error?p(t.error):n(`Opened ${e.agentType} in editor. If you made edits, restart to load the latest version.`)},[e,n]),y=(0,N.useCallback)(async(t={})=>{let{tools:r,color:a,model:o}=t,c=a??m,l=r!==void 0,u=o!==void 0,d=c!==e.color;if(!l&&!u&&!d)return!1;try{return!bt(e)&&!Mt(e)?!1:(await Ln(e,e.whenToUse,r??e.tools,e.getSystemPrompt(),c,o??e.model),d&&c&&At(e.agentType,c),i(t=>{let n=t.agentDefinitions.allAgents.map(t=>t.agentType===e.agentType?{...t,tools:r??t.tools,color:c,model:o??t.model}:t);return{...t,agentDefinitions:{...t.agentDefinitions,activeAgents:Kt(n),allAgents:n}}}),n(`Updated agent: ${s.bold(e.agentType)}`),!0)}catch(e){return p(e instanceof Error?e.message:`Failed to save agent`),!1}},[e,m,n,i]),b=(0,N.useMemo)(()=>[{label:`Open in editor`,action:v},{label:`Edit tools`,action:()=>c(`edit-tools`)},{label:`Edit model`,action:()=>c(`edit-model`)},{label:`Edit color`,action:()=>c(`edit-color`)}],[v]),x=(0,N.useCallback)(()=>{p(null),a===`menu`?r():c(`menu`)},[a,r]),ee=(0,N.useCallback)(e=>{if(e.key===`up`)e.preventDefault(),d(e=>Math.max(0,e-1));else if(e.key===`down`)e.preventDefault(),d(e=>Math.min(b.length-1,e+1));else if(e.key===`return`){e.preventDefault();let t=b[l];t&&t.action()}},[b,l]);g(`confirm:no`,x,{context:`Confirmation`});let S=()=>(0,P.jsxs)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:ee,children:[(0,P.jsxs)(u,{dimColor:!0,children:[`Source: `,tr(e.source)]}),(0,P.jsx)(_,{marginTop:1,flexDirection:`column`,children:b.map((e,t)=>(0,P.jsxs)(u,{color:t===l?`suggestion`:void 0,children:[t===l?`${o.pointer} `:` `,e.label]},e.label))}),f&&(0,P.jsx)(_,{marginTop:1,children:(0,P.jsx)(u,{color:`error`,children:f})})]});switch(a){case`menu`:return S();case`edit-tools`:return(0,P.jsx)($n,{tools:t,initialTools:e.tools,onComplete:async e=>{c(`menu`),await y({tools:e})}});case`edit-color`:return(0,P.jsx)(Un,{agentName:e.agentType,currentColor:m||e.color||`automatic`,onConfirm:async e=>{h(e),c(`menu`),await y({color:e})}});case`edit-model`:return(0,P.jsx)(qn,{initialModel:e.model,onComplete:async e=>{c(`menu`),await y({model:e})}});default:return null}}var N,P,ir=e((()=>{c(),a(),l(),N=t(l(),1),Nt(),h(),E(),Xe(),Rt(),bn(),Bn(),Kn(),Xn(),er(),nr(),P=v()}));function ar({instructions:e=`Press ↑↓ to navigate · Enter to select · Esc to go back`}){let t=sn();return(0,or.jsx)(_,{marginLeft:2,children:(0,or.jsx)(u,{dimColor:!0,children:t.pending?`Press ${t.keyName} again to exit`:e})})}var or,sr=e((()=>{l(),cn(),h(),or=v()}));function cr({source:e,agents:t,onBack:n,onSelect:r,onCreateNew:i,changes:a}){let[s,c]=F.useState(null),[l,f]=F.useState(!0),p=F.useMemo(()=>[...t].sort(pn),[t]),h=e=>({isOverridden:!!e.overriddenBy,overriddenBy:e.overriddenBy||null}),g=()=>(0,I.jsxs)(_,{children:[(0,I.jsx)(u,{color:l?`suggestion`:void 0,children:l?`${o.pointer} `:` `}),(0,I.jsx)(u,{color:l?`suggestion`:void 0,children:`Create new agent`})]}),v=e=>{let t=e.source===`built-in`,n=!t&&!l&&s?.agentType===e.agentType&&s?.source===e.source,{isOverridden:r,overriddenBy:i}=h(e),a=t||r,c=!t&&n?`suggestion`:void 0,d=dn(e);return(0,I.jsxs)(_,{children:[(0,I.jsx)(u,{dimColor:a&&!n,color:c,children:t?``:n?`${o.pointer} `:` `}),(0,I.jsx)(u,{dimColor:a&&!n,color:c,children:e.agentType}),d&&(0,I.jsxs)(u,{dimColor:!0,color:c,children:[` · `,d]}),e.memory&&(0,I.jsxs)(u,{dimColor:!0,color:c,children:[` · `,e.memory,` memory`]}),i&&(0,I.jsxs)(u,{dimColor:!n,color:n?`warning`:void 0,children:[` `,o.warning,` shadowed by `,hn(i)]})]},`${e.agentType}-${e.source}`)},y=F.useMemo(()=>{let t=p.filter(e=>e.source!==`built-in`);return e===`all`?gn.filter(e=>e.source!==`built-in`).flatMap(({source:e})=>t.filter(t=>t.source===e)):t},[p,e]);F.useEffect(()=>{!s&&!l&&y.length>0&&(i?f(!0):c(y[0]||null))},[y,s,l,i]);let b=e=>{if(e.key===`return`){e.preventDefault(),l&&i?i():s&&r(s);return}if(e.key!==`up`&&e.key!==`down`)return;e.preventDefault();let t=!!i,n=y.length+ +!!t;if(n===0)return;let a=0;if(!l&&s){let e=y.findIndex(e=>e.agentType===s.agentType&&e.source===s.source);e>=0&&(a=t?e+1:e)}let o=e.key===`up`?a===0?n-1:a-1:a===n-1?0:a+1;if(t&&o===0)f(!0),c(null);else{let e=y[t?o-1:o];e&&(f(!1),c(e))}},x=(e=`Built-in (always available):`)=>{let t=p.filter(e=>e.source===`built-in`);return(0,I.jsxs)(_,{flexDirection:`column`,marginBottom:1,paddingLeft:2,children:[(0,I.jsx)(u,{bold:!0,dimColor:!0,children:e}),t.map(v)]})},ee=(e,t)=>{if(!t.length)return null;let n=t[0]?.baseDir;return(0,I.jsxs)(_,{flexDirection:`column`,marginBottom:1,children:[(0,I.jsxs)(_,{paddingLeft:2,children:[(0,I.jsx)(u,{bold:!0,dimColor:!0,children:e}),n&&(0,I.jsxs)(u,{dimColor:!0,children:[` (`,n,`)`]})]}),t.map(e=>v(e))]})},S=tr(e),te=p.filter(e=>e.source===`built-in`);return!p.length||e!==`built-in`&&!p.some(e=>e.source!==`built-in`)?(0,I.jsx)(d,{title:S,subtitle:`No agents found`,onCancel:n,hideInputGuide:!0,children:(0,I.jsxs)(_,{flexDirection:`column`,gap:1,tabIndex:0,autoFocus:!0,onKeyDown:b,children:[i&&(0,I.jsx)(_,{children:g()}),(0,I.jsx)(u,{dimColor:!0,children:`No agents found. Create specialized subagents that Claude can delegate to.`}),(0,I.jsx)(u,{dimColor:!0,children:`Each subagent has its own context window, custom system prompt, and specific tools.`}),(0,I.jsx)(u,{dimColor:!0,children:`Try creating: Code Reviewer, Code Simplifier, Security Reviewer, Tech Lead, or UX Reviewer.`}),e!==`built-in`&&p.some(e=>e.source===`built-in`)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m,{}),x()]})]})}):(0,I.jsxs)(d,{title:S,subtitle:`${Ce(p,e=>!e.overriddenBy)} agents`,onCancel:n,hideInputGuide:!0,children:[a&&a.length>0&&(0,I.jsx)(_,{marginTop:1,children:(0,I.jsx)(u,{dimColor:!0,children:a[a.length-1]})}),(0,I.jsxs)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:b,children:[i&&(0,I.jsx)(_,{marginBottom:1,children:g()}),e===`all`?(0,I.jsxs)(I.Fragment,{children:[gn.filter(e=>e.source!==`built-in`).map(({label:e,source:t})=>(0,I.jsx)(F.Fragment,{children:ee(e,p.filter(e=>e.source===t))},t)),te.length>0&&(0,I.jsxs)(_,{flexDirection:`column`,marginBottom:1,paddingLeft:2,children:[(0,I.jsxs)(u,{dimColor:!0,children:[(0,I.jsx)(u,{bold:!0,children:`Built-in agents`}),` (always available)`]}),te.map(v)]})]}):e===`built-in`?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(u,{dimColor:!0,italic:!0,children:`Built-in agents are provided by default and cannot be modified.`}),(0,I.jsx)(_,{marginTop:1,flexDirection:`column`,children:p.map(e=>v(e))})]}):(0,I.jsxs)(I.Fragment,{children:[p.filter(e=>e.source!==`built-in`).map(e=>v(e)),p.some(e=>e.source===`built-in`)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m,{}),x()]})]})]})]})}var F,I,lr=e((()=>{a(),F=t(l(),1),h(),fn(),we(),nr(),I=v()}));function ur({steps:e,initialData:t={},onComplete:n,onCancel:r,children:i,title:a,showStepCounter:o=!0}){let[s,c]=(0,L.useState)(0),[l,u]=(0,L.useState)(t),[d,f]=(0,L.useState)(!1),[p,m]=(0,L.useState)([]);sn(),(0,L.useEffect)(()=>{d&&(m([]),n(l))},[d,l,n]);let h=(0,L.useCallback)(()=>{s<e.length-1?(p.length>0&&m(e=>[...e,s]),c(e=>e+1)):f(!0)},[s,e.length,p]),g=(0,L.useCallback)(()=>{if(p.length>0){let e=p[p.length-1];e!==void 0&&(m(e=>e.slice(0,-1)),c(e))}else s>0?c(e=>e-1):r&&r()},[s,p,r]),_=(0,L.useCallback)(t=>{t>=0&&t<e.length&&(m(e=>[...e,s]),c(t))},[s,e.length]),v=(0,L.useCallback)(()=>{m([]),r&&r()},[r]),y=(0,L.useCallback)(e=>{u(t=>({...t,...e}))},[]),b=(0,L.useMemo)(()=>({currentStepIndex:s,totalSteps:e.length,wizardData:l,setWizardData:u,updateWizardData:y,goNext:h,goBack:g,goToStep:_,cancel:v,title:a,showStepCounter:o}),[s,e.length,l,y,h,g,_,v,a,o]),x=e[s];return!x||d?null:(0,dr.jsx)(fr.Provider,{value:b,children:i||(0,dr.jsx)(x,{})})}var L,dr,fr,pr=e((()=>{L=t(l(),1),cn(),dr=v(),fr=(0,L.createContext)(null)}));function R(){let e=(0,mr.useContext)(fr);if(!e)throw Error(`useWizard must be used within a WizardProvider`);return e}var mr,hr=e((()=>{mr=t(l(),1),pr()}));function gr({instructions:e=(0,z.jsxs)(p,{children:[(0,z.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,z.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,z.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]})}){let t=sn();return(0,z.jsx)(_,{marginLeft:3,marginTop:1,children:(0,z.jsx)(u,{dimColor:!0,children:t.pending?`Press ${t.keyName} again to exit`:e})})}var z,_r=e((()=>{cn(),h(),w(),z=v()}));function B({title:e,color:t=`suggestion`,children:n,subtitle:r,footerText:i}){let{currentStepIndex:a,totalSteps:o,title:s,showStepCounter:c,goBack:l}=R();return(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(d,{title:`${e||s||`Wizard`}${c===!1?``:` (${a+1}/${o})`}`,subtitle:r,onCancel:l,color:t,hideInputGuide:!0,isCancelActive:!1,children:n}),(0,vr.jsx)(gr,{instructions:i})]})}var vr,V=e((()=>{h(),hr(),_r(),vr=v()})),H=e((()=>{hr(),V(),_r(),pr()}));function yr(){let{goNext:e,goBack:t,updateWizardData:n,wizardData:r}=R();return g(`confirm:no`,t,{context:`Confirmation`}),(0,U.jsx)(B,{subtitle:`Choose background color`,footerText:(0,U.jsxs)(p,{children:[(0,U.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,U.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,U.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:(0,U.jsx)(_,{children:(0,U.jsx)(Un,{agentName:r.agentType||`agent`,currentColor:`automatic`,onConfirm:t=>{n({selectedColor:t,finalAgent:{agentType:r.agentType,whenToUse:r.whenToUse,getSystemPrompt:()=>r.systemPrompt,tools:r.selectedTools,...r.selectedModel?{model:r.selectedModel}:{},...t?{color:t}:{},source:r.location}}),e()}})})})}var U,br=e((()=>{h(),E(),w(),H(),V(),Kn(),U=v()}));function xr(e){return e?/^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$/.test(e)?e.length<3?`Agent type must be at least 3 characters long`:e.length>50?`Agent type must be less than 50 characters`:null:`Agent type must start and end with alphanumeric characters and contain only letters, numbers, and hyphens`:`Agent type is required`}function Sr(e,t,n){let r=[],i=[];if(!e.agentType)r.push(`Agent type is required`);else{let t=xr(e.agentType);t&&r.push(t);let i=n.find(t=>t.agentType===e.agentType&&t.source!==e.source);i&&r.push(`Agent type "${e.agentType}" already exists in ${tr(i.source)}`)}if(e.whenToUse?e.whenToUse.length<10?i.push(`Description should be more descriptive (at least 10 characters)`):e.whenToUse.length>5e3&&i.push(`Description is very long (over 5000 characters)`):r.push(`Description (description) is required`),e.tools!==void 0&&!Array.isArray(e.tools))r.push(`Tools must be an array`);else{e.tools===void 0?i.push(`Agent has access to all tools`):e.tools.length===0&&i.push(`No tools selected - agent will have very limited capabilities`);let n=$e(e,t,!1);n.invalidTools.length>0&&r.push(`Invalid tools: ${n.invalidTools.join(`, `)}`)}let a=e.getSystemPrompt();return a?a.length<20?r.push(`System prompt is too short (minimum 20 characters)`):a.length>1e4&&i.push(`System prompt is very long (over 10,000 characters)`):r.push(`System prompt is required`),{isValid:r.length===0,errors:r,warnings:i}}var Cr=e((()=>{Ye(),nr()}));function wr({tools:e,existingAgents:t,onSave:n,onSaveAndEdit:r,error:i}){let{goBack:a,wizardData:o}=R();g(`confirm:no`,a,{context:`Confirmation`});let s=e=>{e.key===`s`||e.key===`return`?(e.preventDefault(),n()):e.key===`e`&&(e.preventDefault(),r())},c=o.finalAgent,l=Sr(c,e,t),d=Te(c.getSystemPrompt(),240),m=Te(c.whenToUse,240),h=e=>e===void 0?`All tools`:e.length===0?`None`:e.length===1?e[0]||`None`:e.length===2?e.join(` and `):`${e.slice(0,-1).join(`, `)}, and ${e[e.length-1]}`,v=ue()?(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Memory`}),`: `,Gt(c.memory)]}):null;return(0,W.jsx)(B,{subtitle:`Confirm and save`,footerText:(0,W.jsxs)(p,{children:[(0,W.jsx)(f,{shortcut:`s/Enter`,action:`save`}),(0,W.jsx)(f,{shortcut:`e`,action:`edit in your editor`}),(0,W.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}),children:(0,W.jsxs)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:s,children:[(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Name`}),`: `,c.agentType]}),(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Location`}),`:`,` `,Nn({source:o.location,agentType:c.agentType})]}),(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Tools`}),`: `,h(c.tools)]}),(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Model`}),`: `,Be(c.model)]}),v,(0,W.jsx)(_,{marginTop:1,children:(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`Description`}),` (tells Claude when to use this agent):`]})}),(0,W.jsx)(_,{marginLeft:2,marginTop:1,children:(0,W.jsx)(u,{children:m})}),(0,W.jsx)(_,{marginTop:1,children:(0,W.jsxs)(u,{children:[(0,W.jsx)(u,{bold:!0,children:`System prompt`}),`:`]})}),(0,W.jsx)(_,{marginLeft:2,marginTop:1,children:(0,W.jsx)(u,{children:d})}),l.warnings.length>0&&(0,W.jsxs)(_,{marginTop:1,flexDirection:`column`,children:[(0,W.jsx)(u,{color:`warning`,children:`Warnings:`}),l.warnings.map((e,t)=>(0,W.jsxs)(u,{dimColor:!0,children:[` `,`• `,e]},t))]}),l.errors.length>0&&(0,W.jsxs)(_,{marginTop:1,flexDirection:`column`,children:[(0,W.jsx)(u,{color:`error`,children:`Errors:`}),l.errors.map((e,t)=>(0,W.jsxs)(u,{color:`error`,children:[` `,`• `,e]},t))]}),i&&(0,W.jsx)(_,{marginTop:1,children:(0,W.jsx)(u,{color:`error`,children:i})}),(0,W.jsx)(_,{marginTop:2,children:(0,W.jsxs)(u,{color:`success`,children:[`Press `,(0,W.jsx)(u,{bold:!0,children:`s`}),` or `,(0,W.jsx)(u,{bold:!0,children:`Enter`}),` to save, `,(0,W.jsx)(u,{bold:!0,children:`e`}),` to save and edit`]})})]})})}var W,Tr=e((()=>{h(),E(),oe(),Ve(),Ee(),mt(),w(),H(),V(),Bn(),Cr(),W=v()}));function Er({tools:e,existingAgents:t,onComplete:n}){let{wizardData:r}=R(),[i,a]=(0,Dr.useState)(null),o=Et(),c=(0,Dr.useCallback)(async e=>{if(r?.finalAgent)try{await In(r.location,r.finalAgent.agentType,r.finalAgent.whenToUse,r.finalAgent.tools,r.finalAgent.getSystemPrompt(),!0,r.finalAgent.color,r.finalAgent.model,r.finalAgent.memory),o(e=>{if(!r.finalAgent)return e;let t=e.agentDefinitions.allAgents.concat(r.finalAgent);return{...e,agentDefinitions:{...e.agentDefinitions,activeAgents:Kt(t),allAgents:t}}}),Qt(),e&&await xn(jn({source:r.location,agentType:r.finalAgent.agentType})),_e(`tengu_agent_created`,{agent_type:r.finalAgent.agentType,generation_method:r.wasGenerated?`generated`:`manual`,source:r.location,tool_count:r.finalAgent.tools?.length??`all`,has_custom_model:!!r.finalAgent.model,has_custom_color:!!r.finalAgent.color,has_memory:!!r.finalAgent.memory,memory_scope:r.finalAgent.memory??`none`,...e?{opened_in_editor:!0}:{}}),n(e?`Created agent: ${s.bold(r.finalAgent.agentType)} and opened in editor. If you made edits, restart to load the latest version.`:`Created agent: ${s.bold(r.finalAgent.agentType)}`)}catch(e){a(e instanceof Error?e.message:`Failed to save agent`)}},[r,n,o]);return(0,Or.jsx)(wr,{tools:e,existingAgents:t,onSave:(0,Dr.useCallback)(()=>c(!1),[c]),onSaveAndEdit:(0,Dr.useCallback)(()=>c(!0),[c]),error:i})}var Dr,Or,kr=e((()=>{c(),Dr=t(l(),1),ge(),Nt(),Rt(),bn(),H(),Bn(),Tr(),Or=v()}));function Ar(){let{goNext:e,goBack:t,updateWizardData:n,wizardData:r}=R(),[i,a]=(0,jr.useState)(r.whenToUse||``),[o,s]=(0,jr.useState)(i.length),[c,l]=(0,jr.useState)(null);return g(`confirm:no`,t,{context:`Settings`}),g(`chat:externalEditor`,(0,jr.useCallback)(async()=>{let e=await yn(i);e.content!==null&&(a(e.content),s(e.content.length))},[i]),{context:`Chat`}),(0,G.jsx)(B,{subtitle:`Description (tell Claude when to use this agent)`,footerText:(0,G.jsxs)(p,{children:[(0,G.jsx)(f,{shortcut:`Type`,action:`enter text`}),(0,G.jsx)(f,{shortcut:`Enter`,action:`continue`}),(0,G.jsx)(T,{action:`chat:externalEditor`,context:`Chat`,fallback:`ctrl+g`,description:`open in editor`}),(0,G.jsx)(T,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`go back`})]}),children:(0,G.jsxs)(_,{flexDirection:`column`,children:[(0,G.jsx)(u,{children:`When should Claude use this agent?`}),(0,G.jsx)(_,{marginTop:1,children:(0,G.jsx)(Ct,{value:i,onChange:a,onSubmit:t=>{let r=t.trim();if(!r){l(`Description is required`);return}l(null),n({whenToUse:r}),e()},placeholder:`e.g., use this agent after you're done writing code...`,columns:80,cursorOffset:o,onChangeCursorOffset:s,focus:!0,showCursor:!0})}),c&&(0,G.jsx)(_,{marginTop:1,children:(0,G.jsx)(u,{color:`error`,children:c})})]})})}var jr,G,Mr=e((()=>{jr=t(l(),1),h(),E(),bn(),w(),Dt(),H(),V(),G=v()}));async function Nr(e,t,n,r){let i=Re({content:`Create an agent configuration based on this request: "${e}".${n.length>0?`\n\nIMPORTANT: The following identifiers already exist and must NOT be used: ${n.join(`, `)}`:``}
8
+ Return ONLY the JSON object, no other text.`}),a=await it(),o=Ft([i],a),s=ue()?Pr+Fr:Pr,c=Vt()?xt({sessionId:y(),model:t,provider:ne(),name:`agent-creation`}):null,l=await Jt({messages:et(o),systemPrompt:on([s]),thinkingConfig:{type:`disabled`},tools:[],signal:r,options:{getToolPermissionContext:async()=>an(),model:t,toolChoice:void 0,agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,querySource:`agent_creation`,mcpTools:[],langfuseTrace:c}});Pt(c);let u=(Array.isArray(l.message.content)?l.message.content:[]).filter(e=>e.type===`text`).map(e=>e.text).join(`
9
+ `),d;try{d=fe(u.trim())}catch{let e=u.match(/\{[\s\S]*\}/);if(!e)throw Error(`No JSON object found in response`);d=fe(e[0])}if(!d.identifier||!d.whenToUse||!d.systemPrompt)throw Error(`Invalid agent configuration generated`);return _e(`tengu_agent_definition_generated`,{agent_identifier:d.identifier}),{identifier:d.identifier,whenToUse:d.whenToUse,systemPrompt:d.systemPrompt}}var Pr,Fr,Ir=e((()=>{ct(),$t(),rn(),C(),Zt(),at(),oe(),ge(),Xt(),b(),ee(),pe(),St(),Pr=`You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.
10
+
11
+ **Important Context**: You may have access to project-specific instructions from CLAUDE.md files and other context that may include coding standards, project structure, and custom requirements. Consider this context when creating agents to ensure they align with the project's established patterns and practices.
12
+
13
+ When a user describes what they want an agent to do, you will:
14
+
15
+ 1. **Extract Core Intent**: Identify the fundamental purpose, key responsibilities, and success criteria for the agent. Look for both explicit requirements and implicit needs. Consider any project-specific context from CLAUDE.md files. For agents that are meant to review code, you should assume that the user is asking to review recently written code and not the whole codebase, unless the user has explicitly instructed you otherwise.
16
+
17
+ 2. **Design Expert Persona**: Create a compelling expert identity that embodies deep domain knowledge relevant to the task. The persona should inspire confidence and guide the agent's decision-making approach.
18
+
19
+ 3. **Architect Comprehensive Instructions**: Develop a system prompt that:
20
+ - Establishes clear behavioral boundaries and operational parameters
21
+ - Provides specific methodologies and best practices for task execution
22
+ - Anticipates edge cases and provides guidance for handling them
23
+ - Incorporates any specific requirements or preferences mentioned by the user
24
+ - Defines output format expectations when relevant
25
+ - Aligns with project-specific coding standards and patterns from CLAUDE.md
26
+
27
+ 4. **Optimize for Performance**: Include:
28
+ - Decision-making frameworks appropriate to the domain
29
+ - Quality control mechanisms and self-verification steps
30
+ - Efficient workflow patterns
31
+ - Clear escalation or fallback strategies
32
+
33
+ 5. **Create Identifier**: Design a concise, descriptive identifier that:
34
+ - Uses lowercase letters, numbers, and hyphens only
35
+ - Is typically 2-4 words joined by hyphens
36
+ - Clearly indicates the agent's primary function
37
+ - Is memorable and easy to type
38
+ - Avoids generic terms like "helper" or "assistant"
39
+
40
+ 6 **Example agent descriptions**:
41
+ - in the 'whenToUse' field of the JSON object, you should include examples of when this agent should be used.
42
+ - examples should be of the form:
43
+ - <example>
44
+ Context: The user is creating a test-runner agent that should be called after a logical chunk of code is written.
45
+ user: "Please write a function that checks if a number is prime"
46
+ assistant: "Here is the relevant function: "
47
+ <function call omitted for brevity only for this example>
48
+ <commentary>
49
+ Since a significant piece of code was written, use the ${te} tool to launch the test-runner agent to run the tests.
50
+ </commentary>
51
+ assistant: "Now let me use the test-runner agent to run the tests"
52
+ </example>
53
+ - <example>
54
+ Context: User is creating an agent to respond to the word "hello" with a friendly jok.
55
+ user: "Hello"
56
+ assistant: "I'm going to use the ${te} tool to launch the greeting-responder agent to respond with a friendly joke"
57
+ <commentary>
58
+ Since the user is greeting, use the greeting-responder agent to respond with a friendly joke.
59
+ </commentary>
60
+ </example>
61
+ - If the user mentioned or implied that the agent should be used proactively, you should include examples of this.
62
+ - NOTE: Ensure that in the examples, you are making the assistant use the Agent tool and not simply respond directly to the task.
63
+
64
+ Your output must be a valid JSON object with exactly these fields:
65
+ {
66
+ "identifier": "A unique, descriptive identifier using lowercase letters, numbers, and hyphens (e.g., 'test-runner', 'api-docs-writer', 'code-formatter')",
67
+ "whenToUse": "A precise, actionable description starting with 'Use this agent when...' that clearly defines the triggering conditions and use cases. Ensure you include examples as described above.",
68
+ "systemPrompt": "The complete system prompt that will govern the agent's behavior, written in second person ('You are...', 'You will...') and structured for maximum clarity and effectiveness"
69
+ }
70
+
71
+ Key principles for your system prompts:
72
+ - Be specific rather than generic - avoid vague instructions
73
+ - Include concrete examples when they would clarify behavior
74
+ - Balance comprehensiveness with clarity - every instruction should add value
75
+ - Ensure the agent has enough context to handle variations of the core task
76
+ - Make the agent proactive in seeking clarification when needed
77
+ - Build in quality assurance and self-correction mechanisms
78
+
79
+ Remember: The agents you create should be autonomous experts capable of handling their designated tasks with minimal additional guidance. Your system prompts are their complete operational manual.
80
+ `,Fr=`
81
+
82
+ 7. **Agent Memory Instructions**: If the user mentions "memory", "remember", "learn", "persist", or similar concepts, OR if the agent would benefit from building up knowledge across conversations (e.g., code reviewers learning patterns, architects learning codebase structure, etc.), include domain-specific memory update instructions in the systemPrompt.
83
+
84
+ Add a section like this to the systemPrompt, tailored to the agent's specific domain:
85
+
86
+ "**Update your agent memory** as you discover [domain-specific items]. This builds up institutional knowledge across conversations. Write concise notes about what you found and where.
87
+
88
+ Examples of what to record:
89
+ - [domain-specific item 1]
90
+ - [domain-specific item 2]
91
+ - [domain-specific item 3]"
92
+
93
+ Examples of domain-specific memory instructions:
94
+ - For a code-reviewer: "Update your agent memory as you discover code patterns, style conventions, common issues, and architectural decisions in this codebase."
95
+ - For a test-runner: "Update your agent memory as you discover test patterns, common failure modes, flaky tests, and testing best practices."
96
+ - For an architect: "Update your agent memory as you discover codepaths, library locations, key architectural decisions, and component relationships."
97
+ - For a documentation writer: "Update your agent memory as you discover documentation patterns, API structures, and terminology conventions."
98
+
99
+ The memory instructions should be specific to what the agent would naturally learn while performing its core tasks.
100
+ `}));function Lr(){let{updateWizardData:e,goBack:t,goToStep:n,wizardData:r}=R(),[a,o]=(0,K.useState)(r.generationPrompt||``),[s,c]=(0,K.useState)(!1),[l,d]=(0,K.useState)(null),[f,m]=(0,K.useState)(a.length),h=Sn(),v=(0,K.useRef)(null);g(`confirm:no`,(0,K.useCallback)(()=>{v.current&&(v.current.abort(),v.current=null,c(!1),d(`Generation cancelled`))},[]),{context:`Settings`,isActive:s}),g(`chat:externalEditor`,(0,K.useCallback)(async()=>{let e=await yn(a);e.content!==null&&(o(e.content),m(e.content.length))},[a]),{context:`Chat`,isActive:!s}),g(`confirm:no`,(0,K.useCallback)(()=>{e({generationPrompt:``,agentType:``,systemPrompt:``,whenToUse:``,generatedAgent:void 0,wasGenerated:!1}),o(``),d(null),t()},[e,t]),{context:`Settings`,isActive:!s});let y=async()=>{let t=a.trim();if(!t){d(`Please describe what the agent should do`);return}d(null),c(!0),e({generationPrompt:t,isGenerating:!0});let r=Ae();v.current=r;try{let i=await Nr(t,h,[],r.signal);e({agentType:i.identifier,whenToUse:i.whenToUse,systemPrompt:i.systemPrompt,generatedAgent:i,isGenerating:!1,wasGenerated:!0}),n(6)}catch(t){t instanceof i||t instanceof Error&&!t.message.includes(`No assistant message found`)&&d(t.message||`Failed to generate agent`),e({isGenerating:!1})}finally{c(!1),v.current=null}},b=`Describe what this agent should do and when it should be used (be comprehensive for best results)`;return s?(0,q.jsx)(B,{subtitle:b,footerText:(0,q.jsx)(T,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`}),children:(0,q.jsxs)(_,{flexDirection:`row`,alignItems:`center`,children:[(0,q.jsx)(Ge,{}),(0,q.jsx)(u,{color:`suggestion`,children:` Generating agent from description...`})]})}):(0,q.jsx)(B,{subtitle:b,footerText:(0,q.jsxs)(p,{children:[(0,q.jsx)(T,{action:`confirm:yes`,context:`Confirmation`,fallback:`Enter`,description:`submit`}),(0,q.jsx)(T,{action:`chat:externalEditor`,context:`Chat`,fallback:`ctrl+g`,description:`open in editor`}),(0,q.jsx)(T,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`go back`})]}),children:(0,q.jsxs)(_,{flexDirection:`column`,children:[l&&(0,q.jsx)(_,{marginBottom:1,children:(0,q.jsx)(u,{color:`error`,children:l})}),(0,q.jsx)(Ct,{value:a,onChange:o,onSubmit:y,placeholder:`e.g., Help me write unit tests for my code...`,columns:80,cursorOffset:f,onChangeCursorOffset:m,focus:!0,showCursor:!0})]})})}var K,q,Rr=e((()=>{be(),K=t(l(),1),Cn(),h(),E(),Tt(),bn(),w(),He(),Dt(),H(),V(),Ir(),q=v()}));function zr(){let{goNext:e,updateWizardData:t,cancel:n}=R();return(0,J.jsx)(B,{subtitle:`Choose location`,footerText:(0,J.jsxs)(p,{children:[(0,J.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,J.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,J.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}),children:(0,J.jsx)(_,{children:(0,J.jsx)(_t,{options:[{label:`Project (.claude/agents/)`,value:`projectSettings`},{label:`Personal (~/.claude/agents/)`,value:`userSettings`}],onChange:n=>{t({location:n}),e()},onCancel:()=>n()},`location-select`)})})}var J,Br=e((()=>{h(),w(),zt(),H(),V(),J=v()}));function Vr(){let{goNext:e,goBack:t,updateWizardData:n,wizardData:r}=R();g(`confirm:no`,t,{context:`Confirmation`});let i=r.location===`userSettings`?[{label:`User scope (~/.claude/agent-memory/) (Recommended)`,value:`user`},{label:`None (no persistent memory)`,value:`none`},{label:`Project scope (.claude/agent-memory/)`,value:`project`},{label:`Local scope (.claude/agent-memory-local/)`,value:`local`}]:[{label:`Project scope (.claude/agent-memory/) (Recommended)`,value:`project`},{label:`None (no persistent memory)`,value:`none`},{label:`User scope (~/.claude/agent-memory/)`,value:`user`},{label:`Local scope (.claude/agent-memory-local/)`,value:`local`}];return(0,Y.jsx)(B,{subtitle:`Configure agent memory`,footerText:(0,Y.jsxs)(p,{children:[(0,Y.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,Y.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,Y.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:(0,Y.jsx)(_,{children:(0,Y.jsx)(_t,{options:i,onChange:t=>{let i=t===`none`?void 0:t,a=r.finalAgent?.agentType;n({selectedMemory:i,finalAgent:r.finalAgent?{...r.finalAgent,memory:i,getSystemPrompt:ue()&&i&&a?()=>r.systemPrompt+`
101
+
102
+ `+pt(a,i):()=>r.systemPrompt}:void 0}),e()},onCancel:t},`memory-select`)})})}var Y,Hr=e((()=>{h(),E(),oe(),Ve(),w(),zt(),H(),V(),Y=v()}));function Ur(){let{goNext:e,goBack:t,updateWizardData:n,goToStep:r}=R();return(0,X.jsx)(B,{subtitle:`Creation method`,footerText:(0,X.jsxs)(p,{children:[(0,X.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,X.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,X.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:(0,X.jsx)(_,{children:(0,X.jsx)(_t,{options:[{label:`Generate with Claude (recommended)`,value:`generate`},{label:`Manual configuration`,value:`manual`}],onChange:t=>{let i=t;n({method:i,wasGenerated:i===`generate`}),i===`generate`?e():r(3)},onCancel:()=>t()},`method-select`)})})}var X,Wr=e((()=>{h(),w(),zt(),H(),V(),X=v()}));function Gr(){let{goNext:e,goBack:t,updateWizardData:n,wizardData:r}=R();return(0,Kr.jsx)(B,{subtitle:`Select model`,footerText:(0,Kr.jsxs)(p,{children:[(0,Kr.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,Kr.jsx)(f,{shortcut:`Enter`,action:`select`}),(0,Kr.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:(0,Kr.jsx)(qn,{initialModel:r.selectedModel,onComplete:t=>{n({selectedModel:t}),e()},onCancel:t})})}var Kr,qr=e((()=>{w(),h(),H(),V(),Xn(),Kr=v()}));function Jr(){let{goNext:e,goBack:t,updateWizardData:n,wizardData:r}=R(),[i,a]=(0,Yr.useState)(r.systemPrompt||``),[o,s]=(0,Yr.useState)(i.length),[c,l]=(0,Yr.useState)(null);return g(`confirm:no`,t,{context:`Settings`}),g(`chat:externalEditor`,(0,Yr.useCallback)(async()=>{let e=await yn(i);e.content!==null&&(a(e.content),s(e.content.length))},[i]),{context:`Chat`}),(0,Z.jsx)(B,{subtitle:`System prompt`,footerText:(0,Z.jsxs)(p,{children:[(0,Z.jsx)(f,{shortcut:`Type`,action:`enter text`}),(0,Z.jsx)(f,{shortcut:`Enter`,action:`continue`}),(0,Z.jsx)(T,{action:`chat:externalEditor`,context:`Chat`,fallback:`ctrl+g`,description:`open in editor`}),(0,Z.jsx)(T,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`go back`})]}),children:(0,Z.jsxs)(_,{flexDirection:`column`,children:[(0,Z.jsx)(u,{children:`Enter the system prompt for your agent:`}),(0,Z.jsx)(u,{dimColor:!0,children:`Be comprehensive for best results`}),(0,Z.jsx)(_,{marginTop:1,children:(0,Z.jsx)(Ct,{value:i,onChange:a,onSubmit:()=>{let t=i.trim();if(!t){l(`System prompt is required`);return}l(null),n({systemPrompt:t}),e()},placeholder:`You are a helpful code reviewer who...`,columns:80,cursorOffset:o,onChangeCursorOffset:s,focus:!0,showCursor:!0})}),c&&(0,Z.jsx)(_,{marginTop:1,children:(0,Z.jsx)(u,{color:`error`,children:c})})]})})}var Yr,Z,Xr=e((()=>{Yr=t(l(),1),h(),E(),bn(),w(),Dt(),H(),V(),Z=v()}));function Zr({tools:e}){let{goNext:t,goBack:n,updateWizardData:r,wizardData:i}=R(),a=e=>{r({selectedTools:e}),t()},o=i.selectedTools;return(0,Qr.jsx)(B,{subtitle:`Select tools`,footerText:(0,Qr.jsxs)(p,{children:[(0,Qr.jsx)(f,{shortcut:`Enter`,action:`toggle selection`}),(0,Qr.jsx)(f,{shortcut:`↑↓`,action:`navigate`}),(0,Qr.jsx)(T,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:(0,Qr.jsx)($n,{tools:e,initialTools:o,onComplete:a,onCancel:n})})}var Qr,$r=e((()=>{h(),w(),H(),V(),er(),Qr=v()}));function ei(e){let{goNext:t,goBack:n,updateWizardData:r,wizardData:i}=R(),[a,o]=(0,ti.useState)(i.agentType||``),[s,c]=(0,ti.useState)(null),[l,d]=(0,ti.useState)(a.length);return g(`confirm:no`,n,{context:`Settings`}),(0,Q.jsx)(B,{subtitle:`Agent type (identifier)`,footerText:(0,Q.jsxs)(p,{children:[(0,Q.jsx)(f,{shortcut:`Type`,action:`enter text`}),(0,Q.jsx)(f,{shortcut:`Enter`,action:`continue`}),(0,Q.jsx)(T,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`go back`})]}),children:(0,Q.jsxs)(_,{flexDirection:`column`,children:[(0,Q.jsx)(u,{children:`Enter a unique identifier for your agent:`}),(0,Q.jsx)(_,{marginTop:1,children:(0,Q.jsx)(Ct,{value:a,onChange:o,onSubmit:e=>{let n=e.trim(),i=xr(n);if(i){c(i);return}c(null),r({agentType:n}),t()},placeholder:`e.g., test-runner, tech-lead, etc`,columns:60,cursorOffset:l,onChangeCursorOffset:d,focus:!0,showCursor:!0})}),s&&(0,Q.jsx)(_,{marginTop:1,children:(0,Q.jsx)(u,{color:`error`,children:s})})]})})}var ti,Q,ni=e((()=>{ti=t(l(),1),h(),E(),w(),Dt(),H(),V(),Cr(),Q=v()}));function ri({tools:e,existingAgents:t,onComplete:n,onCancel:r}){return(0,ii.jsx)(ur,{steps:[zr,Ur,Lr,()=>(0,ii.jsx)(ei,{existingAgents:t}),Jr,Ar,()=>(0,ii.jsx)(Zr,{tools:e}),Gr,yr,...ue()?[Vr]:[],()=>(0,ii.jsx)(Er,{tools:e,existingAgents:t,onComplete:n})],initialData:{},onComplete:()=>{},onCancel:r,title:`Create new agent`,showStepCounter:!1})}var ii,ai=e((()=>{oe(),H(),br(),kr(),Mr(),Rr(),Br(),Hr(),Wr(),qr(),Xr(),$r(),ni(),ii=v()}));function oi({tools:e,onExit:t}){let[n,r]=(0,si.useState)({mode:`list-agents`,source:`all`}),i=en(e=>e.agentDefinitions),a=en(e=>e.mcp.tools),o=en(e=>e.toolPermissionContext),c=Et(),{allAgents:l,activeAgents:f}=i,[p,m]=(0,si.useState)([]),h=_n(e,a,o);sn();let g=(0,si.useMemo)(()=>({"built-in":l.filter(e=>e.source===`built-in`),userSettings:l.filter(e=>e.source===`userSettings`),projectSettings:l.filter(e=>e.source===`projectSettings`),policySettings:l.filter(e=>e.source===`policySettings`),localSettings:l.filter(e=>e.source===`localSettings`),flagSettings:l.filter(e=>e.source===`flagSettings`),plugin:l.filter(e=>e.source===`plugin`),all:l}),[l]),v=(0,si.useCallback)(e=>{m(t=>[...t,e]),r({mode:`list-agents`,source:`all`})},[]),y=(0,si.useCallback)(async e=>{try{await Rn(e),c(t=>{let n=t.agentDefinitions.allAgents.filter(t=>!(t.agentType===e.agentType&&t.source===e.source));return{...t,agentDefinitions:{...t.agentDefinitions,allAgents:n,activeAgents:Kt(n)}}}),m(t=>[...t,`Deleted agent: ${s.bold(e.agentType)}`]),r({mode:`list-agents`,source:`all`})}catch(e){Se(me(e))}},[c]);switch(n.mode){case`list-agents`:{let e=mn(n.source===`all`?[...g[`built-in`],...g.userSettings,...g.projectSettings,...g.localSettings,...g.policySettings,...g.flagSettings,...g.plugin]:g[n.source],f);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(cr,{source:n.source,agents:e,onBack:()=>{t((p.length>0?`Agent changes:\n${p.join(`
103
+ `)}`:void 0)??`Agents dialog dismissed`,{display:p.length===0?`system`:void 0})},onSelect:e=>r({mode:`agent-menu`,agent:e,previousMode:n}),onCreateNew:()=>r({mode:`create-agent`}),changes:p}),(0,$.jsx)(ar,{})]})}case`create-agent`:return(0,$.jsx)(ri,{tools:h,existingAgents:f,onComplete:v,onCancel:()=>r({mode:`list-agents`,source:`all`})});case`agent-menu`:{let e=l.find(e=>e.agentType===n.agent.agentType&&e.source===n.agent.source)||n.agent,t=[{label:`View agent`,value:`view`},...e.source!==`built-in`&&e.source!==`plugin`&&e.source!==`flagSettings`?[{label:`Edit agent`,value:`edit`},{label:`Delete agent`,value:`delete`}]:[],{label:`Back`,value:`back`}];return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(d,{title:n.agent.agentType,onCancel:()=>r(n.previousMode),hideInputGuide:!0,children:(0,$.jsxs)(_,{flexDirection:`column`,children:[(0,$.jsx)(_t,{options:t,onChange:t=>{switch(t){case`view`:r({mode:`view-agent`,agent:e,previousMode:n.previousMode});break;case`edit`:r({mode:`edit-agent`,agent:e,previousMode:n});break;case`delete`:r({mode:`delete-confirm`,agent:e,previousMode:n});break;case`back`:r(n.previousMode);break}},onCancel:()=>r(n.previousMode)}),p.length>0&&(0,$.jsx)(_,{marginTop:1,children:(0,$.jsx)(u,{dimColor:!0,children:p[p.length-1]})})]})}),(0,$.jsx)(ar,{})]})}case`view-agent`:{let e=l.find(e=>e.agentType===n.agent.agentType&&e.source===n.agent.source)||n.agent;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(d,{title:e.agentType,onCancel:()=>r({mode:`agent-menu`,agent:e,previousMode:n.previousMode}),hideInputGuide:!0,children:(0,$.jsx)(Vn,{agent:e,tools:h,allAgents:l,onBack:()=>r({mode:`agent-menu`,agent:e,previousMode:n.previousMode})})}),(0,$.jsx)(ar,{instructions:`Press Enter or Esc to go back`})]})}case`delete-confirm`:return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(d,{title:`Delete agent`,onCancel:()=>{`previousMode`in n&&r(n.previousMode)},color:`error`,children:[(0,$.jsxs)(u,{children:[`Are you sure you want to delete the agent `,(0,$.jsx)(u,{bold:!0,children:n.agent.agentType}),`?`]}),(0,$.jsx)(_,{marginTop:1,children:(0,$.jsxs)(u,{dimColor:!0,children:[`Source: `,n.agent.source]})}),(0,$.jsx)(_,{marginTop:1,children:(0,$.jsx)(_t,{options:[{label:`Yes, delete`,value:`yes`},{label:`No, cancel`,value:`no`}],onChange:e=>{e===`yes`?y(n.agent):`previousMode`in n&&r(n.previousMode)},onCancel:()=>{`previousMode`in n&&r(n.previousMode)}})})]}),(0,$.jsx)(ar,{instructions:`Press ↑↓ to navigate, Enter to select, Esc to cancel`})]});case`edit-agent`:{let e=l.find(e=>e.agentType===n.agent.agentType&&e.source===n.agent.source)||n.agent;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(d,{title:`Edit agent: ${e.agentType}`,onCancel:()=>r(n.previousMode),hideInputGuide:!0,children:(0,$.jsx)(rr,{agent:e,tools:h,onSaved:e=>{v(e),r(n.previousMode)},onBack:()=>r(n.previousMode)})}),(0,$.jsx)(ar,{})]})}default:return null}}var si,$,ci=e((()=>{c(),l(),si=t(l(),1),cn(),vn(),h(),Nt(),fn(),Rt(),he(),xe(),zt(),Hn(),ir(),sr(),lr(),Bn(),ai(),$=v()}));async function li(e,t){let n=t.getAppState().toolPermissionContext;return(0,ui.jsx)(oi,{tools:nt(n),onExit:e})}var ui;e((()=>{l(),ci(),Me(),ui=v()}))();export{li as call};
@@ -0,0 +1,2 @@
1
+ import{n as e,t}from"./cwd--iizewsn.js";import{i as n,o as r,r as i}from"./loadAgentsDir-C_wFhytF.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./agentDisplay-Dr1XbOAu.js";o(),r(),e();function d(e){let t=a(e),n=[e.agentType];return t&&n.push(t),e.memory&&n.push(`${e.memory} memory`),n.join(` · `)}async function f(){let{allAgents:e}=await n(t()),r=c(e,i(e)),a=[],o=0;for(let{label:e,source:t}of u){let n=r.filter(e=>e.source===t).sort(s);if(n.length!==0){a.push(`${e}:`);for(let e of n)if(e.overriddenBy){let t=l(e.overriddenBy);a.push(` (shadowed by ${t}) ${d(e)}`)}else a.push(` ${d(e)}`),o++;a.push(``)}}a.length===0?console.log(`No agents found.`):(console.log(`${o} active agents\n`),console.log(a.join(`
2
+ `).trimEnd()))}export{f as agentsHandler};
@@ -0,0 +1 @@
1
+ import{H as e,I as t,N as n,O as r,P as i,j as a}from"./teamHelpers-D8R_gGLb.js";import{s as o,u as s}from"./logoV2Utils-BJHvwGup.js";i(),s();var c=`default`;async function l(e,t){let n=await r(t.list||c,{subject:e,description:t.description||``,status:`pending`,blocks:[],blockedBy:[]});console.log(`Created task ${n}: ${e}`)}async function u(e){let n=await t(e.list||c);if(e.pending&&(n=n.filter(e=>e.status===`pending`)),e.json){console.log(JSON.stringify(n,null,2));return}if(n.length===0){console.log(`No tasks found.`);return}for(let e of n)console.log(` [${e.status}] ${e.id}: ${e.subject}`),e.description&&console.log(` ${e.description}`),e.owner&&console.log(` owner: ${e.owner}`)}async function d(e,t){let n=await a(t.list||c,e);if(!n){console.error(`Task not found: ${e}`),process.exitCode=1;return}console.log(JSON.stringify(n,null,2))}async function f(t,n){let r=n.list||c,i={};n.status&&(i.status=n.status),n.subject&&(i.subject=n.subject),n.description&&(i.description=n.description),n.owner&&(i.owner=n.owner),n.clearOwner&&(i.owner=void 0);let a=await e(r,t,i);if(!a){console.error(`Task not found: ${t}`),process.exitCode=1;return}console.log(`Updated task ${t}: [${a.status}] ${a.subject}`)}async function p(e){let t=e.list||c;console.log(n(t))}async function m(e){let t=await o();if(e===void 0){if(t.length===0){console.log(`No recent sessions.`);return}for(let e=0;e<Math.min(t.length,20);e++){let n=t[e],r=n.modified?new Date(n.modified).toLocaleString():`unknown`,i=n.title||n.sessionId||`untitled`;console.log(` ${e}: ${i} (${r})`)}return}let n=typeof e==`string`?parseInt(e,10):e,r=Number.isFinite(n)&&n>=0&&n<t.length?t[n]:t.find(t=>t.sessionId===String(e));if(!r){console.error(`Session not found: ${e}`),process.exitCode=1;return}console.log(JSON.stringify(r,null,2))}async function h(e){let t=await o(),n=e??5;console.log(`Last ${n} sessions:`);for(let e=0;e<Math.min(n,t.length);e++){let n=t[e],r=n.modified?new Date(n.modified).toLocaleString():`unknown`;console.log(` ${e}: ${n.sessionId} (${r})`)}}async function g(e,t){let{writeFile:n,readFile:r}=await import(`fs/promises`),i=await o(),a=parseInt(e,10),s;if(s=Number.isFinite(a)&&a>=0&&a<i.length?i[a]:i.find(t=>t.sessionId===e),!s)try{await n(t,await r(e,`utf-8`),`utf-8`),console.log(`Exported ${e} → ${t}`);return}catch{console.error(`Source not found: ${e}`),process.exitCode=1;return}await n(t,JSON.stringify(s,null,2),`utf-8`),console.log(`Exported session ${s.sessionId} → ${t}`)}async function _(e,t,n){let{regenerateCompletionCache:r}=await import(`./completionCache-BQgiR45Q.js`);t.output,await r(),console.log(`Completion cache regenerated for ${e}.`)}export{_ as completionHandler,h as errorHandler,g as exportHandler,m as logHandler,l as taskCreateHandler,p as taskDirHandler,d as taskGetHandler,u as taskListHandler,f as taskUpdateHandler};
@@ -0,0 +1 @@
1
+ import{a as e,n as t,o as n}from"./api-CDmgYrwN.js";n();export{t as fetchCodeSessionsFromSessionsAPI,e as getOAuthHeaders};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{n as r,t as i}from"./v4-f1i_CNUT.js";import{Jt as a,dc as o,la as s,on as c,ua as l,yc as u}from"./paths-Ci1iwL5Y.js";import{E as d,J as f,O as p,U as m,l as h,p as g,z as _}from"./debug-otxXY3j-.js";import{l as v,u as y}from"./oauth-CdZEzMww.js";import{o as b,s as x}from"./log-DSV4Ht5l.js";import{n as S,t as C}from"./lazySchema-B0QShMaQ.js";import{n as w,t as T}from"./sleep-C6koP5Ka.js";import{a as E,o as D}from"./detectRepository-2ICvGD0U.js";import{randomUUID as O}from"crypto";function k(e){return t.isAxiosError(e)?!e.response||e.response.status>=500:!1}async function A(e,n){let r;for(let i=0;i<=V;i++)try{return await t.get(e,n)}catch(e){if(r=e,!k(e))throw e;if(i>=V)throw g(`Teleport request failed after ${i+1} attempts: ${_(e)}`),e;let t=B[i]??2e3;g(`Teleport request failed (attempt ${i+1}/${V+1}), retrying in ${t}ms: ${_(e)}`),await w(t)}throw r}function j(e){return e===null||typeof e==`string`&&e.trim()===``}async function M(){let e=o(),t=process.env.ANTHROPIC_API_KEY?.trim()||e.workspaceApiKey?.trim();if(!t){let t=e.workspaceApiKey,n=j(t)?`Your workspace API key was cleared. `:`A workspace API key (sk-ant-api03-*) is required to use workspace endpoints (/v1/agents, /v1/vaults, /v1/memory_stores, /v1/skills). `;throw Error(n+`Press W in /login to save your key directly (no restart needed), or set ANTHROPIC_API_KEY=<key> and restart. Obtain a key from https://console.anthropic.com/settings/keys. Subscription OAuth (claude.ai login) cannot reach these endpoints.`)}if(!t.startsWith(`sk-ant-api03-`))throw Error(`Workspace API key must start with sk-ant-api03-, got prefix "${t.slice(0,4)}...". Obtain a workspace API key from https://console.anthropic.com/settings/keys. Press W in /login to save your key, or set ANTHROPIC_API_KEY.`);return{apiKey:t}}async function N(){let e=a()?.accessToken;if(e===void 0)throw Error(`Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`);let t=await s();if(!t)throw Error(`Unable to get organization UUID`);return{accessToken:e,orgUUID:t}}async function P(){let{accessToken:e,orgUUID:t}=await N(),n=`${v().BASE_API_URL}/v1/sessions`;try{let r=await A(n,{headers:{...F(e),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":t}});if(r.status!==200)throw Error(`Failed to fetch code sessions: ${r.statusText}`);return r.data.data.map(e=>{let t=e.session_context.sources.find(e=>e.type===`git_repository`),n=null;if(t?.url){let e=D(t.url);if(e){let[r,i]=e.split(`/`);r&&i&&(n={name:i,owner:{login:r},default_branch:t.revision||void 0})}}return{id:e.id,title:e.title||`Untitled`,description:``,status:e.session_status,repo:n,turns:[],created_at:e.created_at,updated_at:e.updated_at}})}catch(e){throw x(f(e)),e}}function F(e){return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,"anthropic-version":`2023-06-01`}}async function I(e){let{accessToken:n,orgUUID:r}=await N(),i=`${v().BASE_API_URL}/v1/sessions/${e}`,a={...F(n),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":r},o=await t.get(i,{headers:a,timeout:15e3,validateStatus:e=>e<500});if(o.status!==200){let t=o.data?.error?.message;throw o.status===404?Error(`Session not found: ${e}`):o.status===401?Error(`Session expired. Please run /login to sign in again.`):Error(t||`Failed to fetch session: ${o.status} ${o.statusText}`)}return o.data}function L(e){return(e.session_context.outcomes?.find(e=>e.type===`git_repository`))?.git_info?.branches[0]}async function R(e,n,r){try{let{accessToken:i,orgUUID:a}=await N(),o=`${v().BASE_API_URL}/v1/sessions/${e}/events`,s={...F(i),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":a},c={events:[{uuid:r?.uuid??O(),session_id:e,type:`user`,parent_tool_use_id:null,message:{role:`user`,content:n}}]};g(`[sendEventToRemoteSession] Sending event to session ${e}`);let l=await t.post(o,c,{headers:s,validateStatus:e=>e<500,timeout:3e4});return l.status===200||l.status===201?(g(`[sendEventToRemoteSession] Successfully sent event to session ${e}`),!0):(g(`[sendEventToRemoteSession] Failed with status ${l.status}: ${p(l.data)}`),!1)}catch(e){return g(`[sendEventToRemoteSession] Error: ${_(e)}`),!1}}async function z(e,n){try{let{accessToken:r,orgUUID:i}=await N(),a=`${v().BASE_API_URL}/v1/sessions/${e}`,o={...F(r),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":i};g(`[updateSessionTitle] Updating title for session ${e}: "${n}"`);let s=await t.patch(a,{title:n},{headers:o,validateStatus:e=>e<500});return s.status===200?(g(`[updateSessionTitle] Successfully updated title for session ${e}`),!0):(g(`[updateSessionTitle] Failed with status ${s.status}: ${p(s.data)}`),!1)}catch(e){return g(`[updateSessionTitle] Error: ${_(e)}`),!1}}var B,V,H=e((()=>{n(),y(),l(),i(),c(),u(),h(),E(),m(),C(),b(),T(),d(),B=[2e3,4e3,8e3,16e3],V=B.length,S(()=>r.object({id:r.string(),title:r.string(),description:r.string(),status:r.enum([`idle`,`working`,`waiting`,`completed`,`archived`,`cancelled`,`rejected`]),repo:r.object({name:r.string(),owner:r.object({login:r.string()}),default_branch:r.string().optional()}).nullable(),turns:r.array(r.string()),created_at:r.string(),updated_at:r.string()}))}));export{F as a,j as c,R as d,z as f,L as i,N as l,P as n,H as o,I as r,k as s,A as t,M as u};
@@ -0,0 +1,4 @@
1
+ import{n as e,s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{Ct as r,cn as i,ot as a}from"./state-sIHsFpDu.js";import{E as o,O as s,Q as c,X as l,Y as u,Z as d,_ as f,h as p,l as m,p as h}from"./debug-otxXY3j-.js";import{m as g}from"./sessionStoragePortable-CJUZrbIq.js";import{i as _}from"./path-BE28AJwZ.js";import{basename as v,dirname as y,join as b}from"path";import{appendFile as x,rename as S}from"fs/promises";i(),l(),d(),m(),t(),f(),_(),o();var C={filePath:null,timestamp:0};function w(){if(C.filePath!==null)return C.filePath;if(process.env.USER_TYPE!==`ant`||!n(process.env.CLAUDE_CODE_TERMINAL_RECORDING))return null;let t=b(b(e(),`projects`),g(a()));return C.timestamp=Date.now(),C.filePath=b(t,`${r()}-${C.timestamp}.cast`),C.filePath}async function T(){let t=C.filePath;if(!t||C.timestamp===0)return;let n=b(b(b(e(),`projects`),g(a())),`${r()}-${C.timestamp}.cast`);if(t===n)return;await E?.flush();let i=v(t),o=v(n);try{await S(t,n),C.filePath=n,h(`[asciicast] Renamed recording: ${i} → ${o}`)}catch{h(`[asciicast] Failed to rename recording from ${i} to ${o}`)}}var E=null;function D(){return{cols:process.stdout.columns||80,rows:process.stdout.rows||24}}function O(){let e=w();if(!e)return;let{cols:t,rows:n}=D(),r=performance.now(),i=s({version:2,width:t,height:n,timestamp:Math.floor(Date.now()/1e3),env:{SHELL:process.env.SHELL||``,TERM:process.env.TERM||``}});try{p().mkdirSync(y(e))}catch{}p().appendFileSync(e,i+`
2
+ `,{mode:384});let a=Promise.resolve(),o=u({writeFn(e){let t=C.filePath;t&&(a=a.then(()=>x(t,e)).catch(()=>{}))},flushIntervalMs:500,maxBufferSize:50,maxBufferBytes:10*1024*1024}),l=process.stdout.write.bind(process.stdout);process.stdout.write=function(e,t,n){let i=(performance.now()-r)/1e3,a=typeof e==`string`?e:Buffer.from(e).toString(`utf-8`);return o.write(s([i,`o`,a])+`
3
+ `),typeof t==`function`?l(e,t):l(e,t,n)};function d(){let e=(performance.now()-r)/1e3,{cols:t,rows:n}=D();o.write(s([e,`r`,`${t}x${n}`])+`
4
+ `)}process.stdout.on(`resize`,d),E={async flush(){o.flush(),await a},async dispose(){o.dispose(),await a,process.stdout.removeListener(`resize`,d),process.stdout.write=l}},c(async()=>{await E?.dispose(),E=null}),h(`[asciicast] Recording to ${e}`)}export{O as n,T as r,w as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./asciicast-C_1Pi99k.js";export{e as renameRecordingForSession};
@@ -0,0 +1 @@
1
+ import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{K as u,Kn as d,cn as f}from"./state-sIHsFpDu.js";import{r as p,v as m}from"./git-C0IuvuIy.js";import{sS as h,uS as g}from"./loadAgentsDir-C_wFhytF.js";import{t as _}from"./useKeybinding-DPOUuymz.js";import{t as v}from"./Dialog-91X6ZGg9.js";import{t as y}from"./ListItem-DCQhApdJ.js";import{i as b,o as x,t as S}from"./cliLaunch-Citfs01Q.js";import{resolve as C}from"path";async function w(){let e=process.cwd();return p(e)||C(e)}function T({defaultDir:e,onInstalled:t,onCancel:n,onError:s}){g(`assistant-install-wizard`);let[l,u]=(0,D.useState)(0),[d,f]=(0,D.useState)(!1);o({"select:next":()=>u(e=>(e+1)%2),"select:previous":()=>u(e=>(e-1+2)%2),"select:accept":()=>{l===0?p():n()}},{context:`Select`});function p(){if(d)return;f(!0);let n=e||C(`.`);try{let e=x(S([`daemon`,`start`,`--dir=${n}`]),{cwd:n,stdio:`ignore`,detached:!0});e.unref(),e.on(`error`,e=>{s(`Failed to start daemon: ${e.message}`)}),setTimeout(()=>{t(n)},1500)}catch(e){s(`Failed to start daemon: ${e instanceof Error?e.message:String(e)}`)}}return d?(0,O.jsx)(a,{title:`Assistant Setup`,onCancel:n,hideInputGuide:!0,children:(0,O.jsxs)(r,{children:[`Starting daemon in `,e,`...`]})}):(0,O.jsx)(a,{title:`Assistant Setup`,onCancel:n,hideInputGuide:!0,children:(0,O.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,O.jsx)(r,{children:`No active assistant sessions found.`}),(0,O.jsxs)(r,{children:[`Start a daemon in `,(0,O.jsx)(r,{bold:!0,children:e||`.`}),` to create a cloud session?`]}),(0,O.jsxs)(c,{flexDirection:`column`,children:[(0,O.jsx)(i,{isFocused:l===0,children:(0,O.jsx)(r,{children:`Start assistant daemon`})}),(0,O.jsx)(i,{isFocused:l===1,children:(0,O.jsx)(r,{children:`Cancel`})})]}),(0,O.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to cancel`})]})})}async function E(e,t,n){let{setAppState:r,getAppState:i}=t;return u()?(i().assistantPanelVisible?(r(e=>({...e,assistantPanelVisible:!1})),e(`Assistant panel hidden.`,{display:`system`})):(r(e=>({...e,assistantPanelVisible:!0})),e(`Assistant panel opened.`,{display:`system`})),null):(d(!0),r(e=>({...e,kairosEnabled:!0,assistantPanelVisible:!0})),e(`KAIROS assistant mode activated.`,{display:`system`}),null)}var D,O;e((()=>{n(),D=t(n(),1),s(),v(),y(),h(),_(),m(),b(),f(),O=l()}))();export{T as NewInstallWizard,E as call,w as computeDefaultInstallDir};
@@ -0,0 +1 @@
1
+ import{i as e,s as t}from"./assistant-BULedprW.js";e();export{t as isAssistantMode};
@@ -0,0 +1 @@
1
+ import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,K as a,cn as o}from"./state-sIHsFpDu.js";import{n as s,t as c}from"./cwd--iizewsn.js";import{Hd as l,Ud as u,cb as d,sb as f}from"./loadAgentsDir-C_wFhytF.js";import{A as p,B as m,P as h,R as g,a as _,c as v,i as y,p as b,y as x}from"./teamHelpers-D8R_gGLb.js";import{a as S,c as C}from"./constants-BljlAJOX.js";import{join as w}from"path";import{readFileSync as T}from"fs";var E=t({getAssistantActivationPath:()=>M,getAssistantSystemPromptAddendum:()=>j,initializeAssistantTeam:()=>A,isAssistantForced:()=>k,isAssistantMode:()=>D,markAssistantForced:()=>O});function D(){return a()}function O(){N=!0}function k(){return N}async function A(){let e=i(),t=b(`assistant-${e.slice(0,8)}`),n=f(S,t),r=y(t),a=Date.now(),o=c(),s=l(n);return await x(t,{name:t,description:`Assistant mode in-process team`,createdAt:a,leadAgentId:n,leadSessionId:e,members:[{agentId:n,name:S,agentType:`assistant`,color:s,joinedAt:a,tmuxPaneId:``,cwd:o,subscriptions:[],backendType:`in-process`}]}),v(t),await g(t),await p(t),m(t),{teamName:t,teamFilePath:r,leadAgentId:n,selfAgentId:n,selfAgentName:S,isLeader:!0,selfAgentColor:s,teammates:{[n]:{name:S,agentType:`assistant`,color:s,tmuxSessionName:`in-process`,tmuxPaneId:`leader`,cwd:o,spawnedAt:a}}}}function j(){try{return T(w(n(),`agents`,`assistant.md`),`utf-8`)}catch{return``}}function M(){if(D())return N?`daemon`:`gate`}var N,P=e((()=>{o(),d(),s(),r(),C(),_(),u(),h(),N=!1}));export{A as a,O as c,P as i,M as n,k as o,j as r,D as s,E as t};
@@ -0,0 +1 @@
1
+ import{Jt as e,Pt as t,cn as n,nn as r,on as i,zt as a}from"./paths-Ci1iwL5Y.js";i();export{t as checkAndRefreshOAuthTokenIfNeeded,a as clearOAuthTokenCache,e as getClaudeAIOAuthTokens,r as handleOAuth401Error,n as isAnthropicAuthEnabled};
@@ -0,0 +1 @@
1
+ import{Jb as e,Kb as t,Yb as n,qb as r}from"./loadAgentsDir-C_wFhytF.js";n();export{t as authLogin,r as authLogout,e as authStatus};
@@ -0,0 +1,45 @@
1
+ import{Br as e,Dr as t,Ga as n,Mr as r,Pr as i,oo as a}from"./paths-Ci1iwL5Y.js";import{E as o,O as s,U as c,z as l}from"./debug-otxXY3j-.js";import{F_ as u,I_ as d,L_ as f,R_ as p,z_ as m}from"./loadAgentsDir-C_wFhytF.js";import{n as h,t as g}from"./poorMode-aDmmvJ_e.js";c(),i(),f(),a(),g(),p(),o();function _(e){process.stdout.write(s(e,null,2)+`
2
+ `)}function v(){_(d())}function y(){let e=n(),t=d();_({allow:e?.allow?.length?e.allow:t.allow,soft_deny:e?.soft_deny?.length?e.soft_deny:t.soft_deny,environment:e?.environment?.length?e.environment:t.environment})}var b=`You are an expert reviewer of auto mode classifier rules for Claude Code.
3
+
4
+ Claude Code has an "auto mode" that uses an AI classifier to decide whether tool calls should be auto-approved or require user confirmation. Users can write custom rules in three categories:
5
+
6
+ - **allow**: Actions the classifier should auto-approve
7
+ - **soft_deny**: Actions the classifier should block (require user confirmation)
8
+ - **environment**: Context about the user's setup that helps the classifier make decisions
9
+
10
+ Your job is to critique the user's custom rules for clarity, completeness, and potential issues. The classifier is an LLM that reads these rules as part of its system prompt.
11
+
12
+ For each rule, evaluate:
13
+ 1. **Clarity**: Is the rule unambiguous? Could the classifier misinterpret it?
14
+ 2. **Completeness**: Are there gaps or edge cases the rule doesn't cover?
15
+ 3. **Conflicts**: Do any of the rules conflict with each other?
16
+ 4. **Actionability**: Is the rule specific enough for the classifier to act on?
17
+
18
+ Be concise and constructive. Only comment on rules that could be improved. If all rules look good, say so.`;async function x(i){let a=n();if(!((a?.allow?.length??0)>0||(a?.soft_deny?.length??0)>0||(a?.environment?.length??0)>0)){process.stdout.write(`No custom auto mode rules found.
19
+
20
+ Add rules to your settings file under autoMode.{allow, soft_deny, environment}.
21
+ Run \`claude auto-mode defaults\` to see the default rules for reference.
22
+ `);return}let o=i.model?e(i.model):h()?r():t(),s=d(),c=u(),f=S(`allow`,a?.allow??[],s.allow)+S(`soft_deny`,a?.soft_deny??[],s.soft_deny)+S(`environment`,a?.environment??[],s.environment);process.stdout.write(`Analyzing your auto mode rules…
23
+
24
+ `);let p;try{p=await m({querySource:`auto_mode_critique`,model:o,system:b,skipSystemPromptPrefix:!0,max_tokens:4096,messages:[{role:`user`,content:`Here is the full classifier system prompt that the auto mode classifier receives:
25
+
26
+ <classifier_system_prompt>
27
+ `+c+`
28
+ </classifier_system_prompt>
29
+
30
+ Here are the user's custom rules that REPLACE the corresponding default sections:
31
+
32
+ `+f+`
33
+ Please critique these custom rules.`}]})}catch(e){process.stderr.write(`Failed to analyze rules: `+l(e)+`
34
+ `),process.exitCode=1;return}let g=p.content.find(e=>e.type===`text`);g?.type===`text`?process.stdout.write(g.text+`
35
+ `):process.stdout.write(`No critique was generated. Please try again.
36
+ `)}function S(e,t,n){if(t.length===0)return``;let r=t.map(e=>`- `+e).join(`
37
+ `),i=n.map(e=>`- `+e).join(`
38
+ `);return`## `+e+` (custom rules replacing defaults)
39
+ Custom:
40
+ `+r+`
41
+
42
+ Defaults being replaced:
43
+ `+i+`
44
+
45
+ `}export{y as autoModeConfigHandler,x as autoModeCritiqueHandler,v as autoModeDefaultsHandler};
@@ -0,0 +1,19 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,s as n}from"./envUtils-BWeoiL4Y.js";import{cn as r,ut as i}from"./state-sIHsFpDu.js";import{s as a,u as ee}from"./types-KeqFPzY5.js";import{AO as te,BO as ne,CO as o,D as re,EO as s,FO as c,KO as ie,MO as ae,NO as l,OO as u,PO as d,S as f,SO as p,Sf as oe,TO as m,ZO as se,bf as ce,jO as h,kO as le,w as ue,wO as g,xf as de}from"./loadAgentsDir-C_wFhytF.js";import{G as fe,U as pe,V as me}from"./prompt-6ZKyqv6z.js";import{n as he,r as _}from"./cron-g_P3I5uT.js";import{I as v,P as y}from"./teamHelpers-D8R_gGLb.js";import{a as b,n as x,o as S,t as C}from"./bridgeConfig-pjDV5Z2l.js";import{i as w,o as T}from"./bg-DgpgS_VU.js";import{n as E,t as D}from"./state-BiRT9RAF.js";import{a as O,i as k,n as A,r as j}from"./pipeTransport-EAYXsubu.js";import{join as M}from"path";import"crypto";import{readFile as N,readdir as P}from"fs/promises";function F(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function I(e){return typeof e==`string`&&H.includes(e)}function L(e){return typeof e==`string`&&U.includes(e)}function R(e){return!F(e)||typeof e.name!=`string`||!L(e.status)?null:{name:e.name,...typeof e.prompt==`string`?{prompt:e.prompt}:{},status:e.status,...typeof e.startedAt==`number`?{startedAt:e.startedAt}:{},...typeof e.completedAt==`number`?{completedAt:e.completedAt}:{}}}function ge(e){if(!F(e)||typeof e.runId!=`string`||typeof e.workflow!=`string`||!I(e.status)||typeof e.createdAt!=`number`||typeof e.updatedAt!=`number`||typeof e.currentStepIndex!=`number`||!Array.isArray(e.steps))return null;let t=e.steps.map(R).filter(e=>e!==null);return t.length===e.steps.length?{runId:e.runId,workflow:e.workflow,...typeof e.args==`string`?{args:e.args}:{},status:e.status,createdAt:e.createdAt,updatedAt:e.updatedAt,currentStepIndex:e.currentStepIndex,steps:t}:null}async function _e(e,t){try{return ge(ee(await N(M(e,B,`${t}.json`),`utf-8`),!1))}catch{return null}}async function ve(e=i()){let t;try{t=await P(M(e,B))}catch{return[]}let n=t.filter(e=>e.endsWith(`.json`));return(await Promise.all(n.slice(0,V).map(t=>_e(e,t.slice(0,-5))))).filter(e=>e!==null).sort((e,t)=>t.updatedAt-e.updatedAt)}function z(e){if(e.length===0)return[`Workflow runs: 0`,` none`].join(`
2
+ `);let t=e.filter(e=>e.status===`running`).length,n=e.filter(e=>e.status===`completed`).length,r=e.filter(e=>e.status===`cancelled`).length,i=[`Workflow runs: ${e.length}`,` Running: ${t}`,` Completed: ${n}`,` Cancelled: ${r}`];for(let t of e.slice(0,10)){let e=t.steps[t.currentStepIndex];i.push(` ${t.runId}: ${t.workflow}: ${t.status} step=${e?.name??`none`} updated=${new Date(t.updatedAt).toLocaleString()}`)}return e.length>10&&i.push(` ... ${e.length-10} more workflow run(s)`),i.join(`
3
+ `)}var B,V,H,U,ye=e((()=>{r(),a(),B=M(`.claude`,`workflow-runs`),V=200,H=[`running`,`completed`,`cancelled`],U=[`pending`,`running`,`completed`,`cancelled`]}));function be(){return M(A(),`registry.json`)}async function xe(){try{let e=await N(be(),`utf8`),t=JSON.parse(e);return t.version===1?t:{...W}}catch{return{...W}}}var W,Se=e((()=>{j(),W={version:1,mainMachineId:null,main:null,subs:[]}}));async function Ce(){return we(await xe())}function we(e){let t=[`Pipe registry: ${+!!e.main} main, ${e.subs.length} sub(s)`];e.mainMachineId&&t.push(` main_machine=${e.mainMachineId.slice(0,8)}...`),e.main&&t.push(` [main] ${e.main.pipeName} pid=${e.main.pid} host=${e.main.hostname} tcp=${e.main.tcpPort??`none`}`);for(let n of e.subs.slice(0,10))t.push(` [sub-${n.subIndex}] ${n.pipeName} pid=${n.pid} host=${n.hostname} bound=${n.boundToMain??`none`} tcp=${n.tcpPort??`none`}`);return!e.main&&e.subs.length===0&&t.push(` none`),e.subs.length>10&&t.push(` ... ${e.subs.length-10} more sub pipe(s)`),t.join(`
4
+ `)}var Te=e((()=>{Se()}));function Ee(){try{let e=S(),t=C();return[`Remote Control: ${e?`self-hosted`:`official`}`,` base_url=${x()}`,` token=${t?`present`:`missing`}`,` entitlement=checked at remote-control startup`].join(`
5
+ `)}catch(e){return[`Remote Control: unknown`,` reason=${e instanceof Error?e.message:String(e)}`].join(`
6
+ `)}}var De=e((()=>{b()}));async function Oe(){try{return(await P(t(),{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name).sort()}catch{return[]}}async function ke(){let e=await Oe();if(e.length===0)return[`Teams: 0`,` none`].join(`
7
+ `);let t=[`Teams: ${e.length}`];for(let n of e){let e=k(n),r=(await v(n)).filter(e=>e.status!==`completed`),i=e.filter(e=>e.status===`running`).length,a=e.filter(e=>e.status===`idle`).length;t.push(` ${n}: teammates=${e.length} running=${i} idle=${a} open_tasks=${r.length}`);for(let n of e.slice(0,5)){let e=r.filter(e=>e.owner===n.name||e.owner===n.agentId);t.push(` @${n.name}: ${n.status} backend=${n.backendType??`unknown`} mode=${n.mode??`default`} tasks=${e.length}`)}e.length>5&&t.push(` ... ${e.length-5} more teammate(s)`)}return t.join(`
8
+ `)}async function Ae(e){let t=await pe();if(t.length===0)return[`Cron jobs: 0`,` none`].join(`
9
+ `);let n=[`Cron jobs: ${t.length}`];for(let r of t.slice(0,10)){let t=fe(r.cron,e);n.push(` ${r.id}: ${he(r.cron)} ${r.recurring?`recurring`:`one-shot`} ${r.durable===!1?`session-only`:`durable`} next=${t?new Date(t).toLocaleString():`none`}`)}return t.length>10&&n.push(` ... ${t.length-10} more job(s)`),n.join(`
10
+ `)}async function je(){let e=E(),t=await T(),n=[`Daemon: ${e.status}${e.state?` pid=${e.state.pid} workers=${e.state.workerKinds.join(`,`)}`:``}`,`Background sessions: ${t.length}`];for(let e of t.slice(0,8))n.push(` pid=${e.pid} kind=${e.kind} status=${e.status??`unknown`} cwd=${e.cwd}`);return t.length>8&&n.push(` ... ${t.length-8} more session(s)`),n.join(`
11
+ `)}function Me(){let e=!1,t=null;try{e=re(),t=f()}catch(e){return[`Auto mode: unknown`,` reason=${e instanceof Error?e.message:String(e)}`].join(`
12
+ `)}return[`Auto mode: ${e?`available`:`unavailable`}`,` reason=${t??`none`}`].join(`
13
+ `)}async function G({runs:e,flows:t,nowMs:n=Date.now()}){return Promise.all([Promise.resolve({id:`auto-mode`,title:`Auto Mode`,content:Me()}),Promise.resolve({id:`runs`,title:`Runs`,content:o(e)}),Promise.resolve({id:`flows`,title:`Flows`,content:h(t)}),Ae(n).then(e=>({id:`cron`,title:`Cron`,content:e})),ve().then(e=>({id:`workflow-runs`,title:`Workflow Runs`,content:z(e)})),ke().then(e=>({id:`teams`,title:`Teams`,content:e})),Ce().then(e=>({id:`pipes`,title:`Pipes`,content:e})),je().then(e=>({id:`runtime`,title:`Runtime`,content:e})),Promise.resolve({id:`remote-control`,title:`Remote Control`,content:Ee()}),oe().then(e=>({id:`remote-trigger`,title:`RemoteTrigger`,content:ce(e)}))])}async function Ne(e){return(await G(e)).map((e,t)=>[t===0?`# Autonomy Deep Status`:`## ${e.title}`,e.content].join(`
14
+ `)).join(`
15
+
16
+ `)}var Pe=e((()=>{D(),w(),l(),g(),n(),ue(),_(),me(),O(),y(),de(),ye(),Te(),De()}));function Fe(e){let[t=`status`,n,r]=e.trim().split(/\s+/,3);return t===``||t===`status`?{type:`status`,deep:n===`--deep`}:t===`runs`?{type:`runs`,limit:n}:t===`flows`?{type:`flows`,limit:n}:t===`flow`?n===`cancel`?r?{type:`flow-cancel`,flowId:r}:{type:`usage`}:n===`resume`?r?{type:`flow-resume`,flowId:r}:{type:`usage`}:n?{type:`flow-detail`,flowId:n}:{type:`usage`}:{type:`usage`}}var K,Ie=e((()=>{K=`Usage: /autonomy [status [--deep]|runs [limit]|flows [limit]|flow <id>|flow cancel <id>|flow resume <id>]`}));function q(e){let t=typeof e==`number`?e:Number.parseInt(e??``,10);return!Number.isFinite(t)||t<=0?10:Math.min(t,50)}async function J(e){let t=e?.rootDir,[n,r]=await Promise.all([m(t),d(t)]);return e?.deep?Ne({runs:n,flows:r}):[o(n),h(r)].join(`
17
+ `)}async function Le(e,t){let[n,r]=await Promise.all([m(t?.rootDir),d(t?.rootDir)]),i=(await G({runs:n,flows:r})).find(t=>t.id===e);return i?[`# ${i.title}`,i.content].join(`
18
+ `):`Autonomy deep status section not found: ${e}`}async function Re(e){process.stdout.write(`${await J(e)}\n`)}async function Y(e,t){return p(await m(t?.rootDir),q(e))}async function ze(e){process.stdout.write(`${await Y(e)}\n`)}async function X(e,t){return te(await d(t?.rootDir),q(e))}async function Be(e){process.stdout.write(`${await X(e)}\n`)}async function Z(e,t){return le(await ae(e,t?.rootDir))}async function Ve(e){process.stdout.write(`${await Z(e)}\n`)}async function Q(e,t){let n=await c({flowId:e,rootDir:t?.rootDir});if(!n)return`Autonomy flow not found.`;if(!n.accepted)return`Autonomy flow ${e} is already terminal (${n.flow.status}).`;let r=0;if(t?.removeQueuedInMemory){let n=se(t=>t.autonomy?.flowId===e);r=n.length;for(let e of n)e.autonomy?.runId&&await s(e.autonomy.runId,t?.rootDir)}else{for(let e of n.queuedRunIds)await s(e,t?.rootDir);r=n.queuedRunIds.length}return n.flow.status===`running`?`Cancellation requested for flow ${e}. The current step is still running, and no new steps will be started.`:`Cancelled flow ${e}. Removed ${r} queued step(s).`}async function He(e){process.stdout.write(`${await Q(e)}\n`)}async function $(e,t){let n=await u({flowId:e,rootDir:t?.rootDir,currentDir:t?.currentDir});if(!n)return`Autonomy flow is not waiting or was not found.`;if(t?.enqueueInMemory)return ne(n),`Queued the next managed step for flow ${e}.`;let r=n.autonomy?.runId??`unknown`;return[`Prepared the next managed step for flow ${e}.`,`Run ID: ${r}`,``,`Prompt:`,typeof n.value==`string`?n.value:String(n.value)].join(`
19
+ `)}async function Ue(e){process.stdout.write(`${await $(e)}\n`)}async function We(e,t){let n=Fe(e);switch(n.type){case`status`:return J({deep:n.deep});case`runs`:return Y(n.limit);case`flows`:return X(n.limit);case`flow-detail`:return Z(n.flowId);case`flow-cancel`:return Q(n.flowId,{removeQueuedInMemory:t?.removeQueuedInMemory});case`flow-resume`:return $(n.flowId,{enqueueInMemory:t?.enqueueInMemory});case`usage`:return K}}var Ge=e((()=>{l(),g(),Pe(),Ie(),ie()}));export{ze as a,We as c,X as d,Y as f,$ as g,q as h,Be as i,Le as l,Ge as m,Ve as n,Re as o,J as p,Ue as r,Q as s,He as t,Z as u};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,m as r,n as i,o as a,r as o,t as s}from"./autonomy-Dj6Nzxus.js";r();export{s as autonomyFlowCancelHandler,i as autonomyFlowHandler,o as autonomyFlowResumeHandler,n as autonomyFlowsHandler,e as autonomyRunsHandler,a as autonomyStatusHandler,t as getAutonomyCommandText};
@@ -0,0 +1 @@
1
+ import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{NO as l,PO as u,sS as d,uS as f}from"./loadAgentsDir-C_wFhytF.js";import{c as p,l as m,m as h,p as g}from"./autonomy-Dj6Nzxus.js";function _(){return S}function v({onDone:e}){f(`autonomy-panel`);let[t,n]=(0,b.useState)(0),[a,c]=(0,b.useState)([]);(0,b.useEffect)(()=>{let e=!1;return u().then(t=>{e||c(t.slice(0,5))}),()=>{e=!0}},[]);let l=(0,b.useMemo)(()=>{let e=[{label:`Overview`,description:`Show run and flow counts plus the latest automatic activity`,run:()=>g()},{label:`Full deep status`,description:`Print every local autonomy surface in one diagnostic report`,run:()=>g({deep:!0})},{label:`Auto mode`,description:`Check whether auto permission mode is available and why`,run:()=>m(`auto-mode`)},{label:`Runs summary`,description:`Show queued/running/completed/failed run totals and latest run`,run:()=>m(`runs`)},{label:`Recent runs`,description:`List recent autonomy run IDs, triggers, statuses, and prompts`,run:()=>p(`runs 10`)},{label:`Flows summary`,description:`Show managed flow totals across queued/running/waiting states`,run:()=>m(`flows`)},{label:`Recent flows`,description:`List recent managed flow IDs, status, current step, and goal`,run:()=>p(`flows 10`)},{label:`Cron`,description:`Show scheduled autonomy jobs, durability, recurrence, and next run`,run:()=>m(`cron`)},{label:`Workflow runs`,description:`Show persisted WorkflowTool runs and their current workflow step`,run:()=>m(`workflow-runs`)},{label:`Teams`,description:`Show Agent Teams, teammate backends, activity, and open tasks`,run:()=>m(`teams`)},{label:`Pipes`,description:`Show UDS/named-pipe and LAN registry for terminal messaging`,run:()=>m(`pipes`)},{label:`Runtime`,description:`Show daemon state and live background or interactive sessions`,run:()=>m(`runtime`)},{label:`Remote Control`,description:`Show bridge mode, base URL, token presence, and entitlement note`,run:()=>m(`remote-control`)},{label:`RemoteTrigger`,description:`Show recent remote trigger audit records, failures, and latest call`,run:()=>m(`remote-trigger`)}],t=a.flatMap(e=>{let t=e.flowId.slice(0,8),n=[{label:`Flow ${t}`,description:`${e.status}: ${e.goal}`,run:()=>p(`flow ${e.flowId}`)}];return e.status===`waiting`&&n.push({label:`Resume ${t}`,description:e.currentStep?`Resume waiting step: ${e.currentStep}`:`Resume waiting flow`,run:()=>p(`flow resume ${e.flowId}`,{enqueueInMemory:!0})}),(e.status===`queued`||e.status===`running`||e.status===`waiting`||e.status===`blocked`)&&n.push({label:`Cancel ${t}`,description:`Cancel ${e.status} flow`,run:()=>p(`flow cancel ${e.flowId}`,{removeQueuedInMemory:!0})}),n});return[...e,...t]},[a]),d=()=>{let n=l[t];n&&n.run().then(t=>{e(t,{display:`system`})})};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(l.length-1,e+1));return}t.return&&d()}),(0,x.jsx)(i,{title:`Autonomy`,subtitle:`${l.length} actions`,onCancel:()=>e(`Autonomy panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,x.jsxs)(o,{flexDirection:`column`,children:[l.map((e,n)=>(0,x.jsxs)(o,{flexDirection:`row`,children:[(0,x.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(C)}),(0,x.jsx)(r,{dimColor:!0,children:e.description})]},`${e.label}-${n}`)),(0,x.jsx)(o,{marginTop:1,children:(0,x.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function y(e,t,n){let r=n?.trim()??``;return r?(e(await p(r,{enqueueInMemory:!0,removeQueuedInMemory:!0}),{display:`system`}),null):(0,x.jsx)(v,{onDone:e})}var b,x,S,C;e((()=>{b=t(n(),1),a(),d(),h(),l(),x=c(),S=14,C=24}))();export{y as call,_ as getAutonomyPanelBaseActionCountForTests};
@@ -0,0 +1 @@
1
+ import{t as e}from"./backgroundHousekeeping-Cp2RvmEN.js";export{e as startBackgroundHousekeeping};
@@ -0,0 +1,17 @@
1
+ import{a as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,H as a,X as o,cn as s}from"./state-sIHsFpDu.js";import{Fa as c,Mr as l,Na as u,Pr as d,S as f,co as p,no as ee,oo as te}from"./paths-Ci1iwL5Y.js";import{E as ne,J as re,U as m,_ as ie,h,l as ae,p as g}from"./debug-otxXY3j-.js";import{n as oe,r as _}from"./analytics-DqMQntaB.js";import{n as se,t as v}from"./cwd--iizewsn.js";import{o as y,s as b,v as x,y as S}from"./log-DSV4Ht5l.js";import{E as C,O as w,T as ce}from"./teammate-CbskW5G9.js";import{$D as le,Eo as ue,Er as de,Fr as fe,HC as pe,Oo as T,Ot as E,Uo as D,WC as O,XS as k,Xl as A,ZS as j,Zl as M,_t as N,cD as P,ck as F,cx as I,eO as L,iO as R,jC as z,kC as B,ko as me,lD as he,lx as ge,pD as _e,px as V,rt as ve,sD as ye,tt as H,ux as U}from"./loadAgentsDir-C_wFhytF.js";import{Qn as be,Zn as xe}from"./prompt-6ZKyqv6z.js";import{X as Se}from"./rcDebugLog-C42A0pX1.js";import{n as Ce,r as we}from"./magicDocs-DPZzG7Z2.js";import{n as Te,t as Ee}from"./pluginAutoupdate-ClrgF5b3.js";import{n as De,r as Oe}from"./registerProtocol-BkNncGMI.js";import{homedir as ke}from"os";import{join as W}from"path";import"crypto";import*as G from"fs/promises";r(),s(),se(),ne(),ie(),ae(),S(),te(),c(),d(),f(),be(),R(),ye(),M(),fe(),we(),H(),y(),m(),D(),F(),H(),L(),m(),y(),D(),F();async function Ae(e,t){if(!e)return;let{join:n}=await import(`path`),r=await import(`fs/promises`),a=n(v(),`.claude`,`skills`,e,`SKILL.md`),o;try{o=await r.readFile(a,`utf-8`)}catch{b(Error(`Failed to read skill file for improvement: ${a}`));return}let s=t.map(e=>`- ${e.section}: ${e.change}`).join(`
2
+ `),c=l(),d=_e()?P({sessionId:i(),model:c,provider:u(),name:`skill-improvement-apply`}):null,f=await ve({messages:[ue({content:`You are editing a skill definition file. Apply the following improvements to the skill.
3
+
4
+ <current_skill_file>
5
+ ${o}
6
+ </current_skill_file>
7
+
8
+ <improvements>
9
+ ${s}
10
+ </improvements>
11
+
12
+ Rules:
13
+ - Integrate the improvements naturally into the existing structure
14
+ - Preserve frontmatter (--- block) exactly as-is
15
+ - Preserve the overall format and style
16
+ - Do not remove existing content unless an improvement explicitly replaces it
17
+ - Output the complete updated file inside <updated_file> tags`})],systemPrompt:Se([`You edit skill definition files to incorporate user preferences. Output only the updated file content.`]),thinkingConfig:{type:`disabled`},tools:[],signal:le().signal,options:{getToolPermissionContext:async()=>xe(),model:c,toolChoice:void 0,isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,temperatureOverride:0,agents:[],querySource:`skill_improvement_apply`,mcpTools:[],langfuseTrace:d}});he(d);let p=T(me(Array.isArray(f.message.content)?f.message.content:[]).trim(),`updated_file`);if(!p){b(Error(`Skill improvement apply: no updated_file tag in response`));return}try{await r.writeFile(a,p,`utf-8`)}catch(e){b(re(e))}}oe(),z(),ce(),y(),U(),j(),ge(),O(),E();var je=30;function K(){let e=((ee()||{}).cleanupPeriodDays??je)*24*60*60*1e3;return new Date(Date.now()-e)}function Me(e,t){return{messages:e.messages+t.messages,errors:e.errors+t.errors}}function Ne(e){let t=e.split(`.`)[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,`T$1:$2:$3.$4Z`);return new Date(t)}async function q(e,t,n){let r={messages:0,errors:0};try{let i=await h().readdir(e);for(let a of i)try{Ne(a.name)<t&&(await h().unlink(W(e,a.name)),n?r.messages++:r.errors++)}catch(e){b(e)}}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return r}async function Pe(){let e=h(),t=K(),n=x.errors(),r=x.baseLogs(),i=await q(n,t,!1);try{let n;try{n=await e.readdir(r)}catch{return i}let a=n.filter(e=>e.isDirectory()&&e.name.startsWith(`mcp-logs-`)).map(e=>W(r,e.name));for(let n of a)i=Me(i,await q(n,t,!0)),await Y(n,e)}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return i}async function J(e,t,n){return(await n.stat(e)).mtime<t?(await n.unlink(e),!0):!1}async function Y(e,t){try{await t.rmdir(e)}catch{}}async function Fe(){let e=K(),t={messages:0,errors:0},n=de(),r=h(),i;try{i=await r.readdir(n)}catch{return t}for(let a of i){if(!a.isDirectory())continue;let i=W(n,a.name),o;try{o=await r.readdir(i)}catch{t.errors++;continue}for(let n of o)if(n.isFile()){if(!n.name.endsWith(`.jsonl`)&&!n.name.endsWith(`.cast`))continue;try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}}else if(n.isDirectory()){let a=W(i,n.name),o=W(a,pe),s;try{s=await r.readdir(o)}catch{await Y(a,r);continue}for(let n of s)if(n.isFile())try{await J(W(o,n.name),e,r)&&t.messages++}catch{t.errors++}else if(n.isDirectory()){let i=W(o,n.name),a;try{a=await r.readdir(i)}catch{continue}for(let n of a)if(n.isFile())try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}await Y(i,r)}await Y(o,r),await Y(a,r)}await Y(i,r)}return t}async function Ie(e,t,n=!0){let r=K(),i={messages:0,errors:0},a=h(),o;try{o=await a.readdir(e)}catch{return i}for(let n of o)if(!(!n.isFile()||!n.name.endsWith(t)))try{await J(W(e,n.name),r,a)&&i.messages++}catch{i.errors++}return n&&await Y(e,a),i}function X(){return Ie(W(n(),`plans`),`.md`)}async function Le(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`file-history`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));await Promise.all(o.map(async n=>{try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}})),await Y(i,r)}catch(e){b(e)}return t}async function Re(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`session-env`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));for(let n of o)try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}await Y(i,r)}catch(e){b(e)}return t}async function ze(){let e=K(),t={messages:0,errors:0},r=h(),i=W(n(),`debug`),a;try{a=await r.readdir(i)}catch{return t}for(let n of a)if(!(!n.isFile()||!n.name.endsWith(`.txt`)||n.name===`latest`))try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}return t}var Z=1440*60*1e3;async function Q(){let e=W(n(),`.npm-cache-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`npm cache cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`npm cache cleanup: skipping, lock held`);return}g(`npm cache cleanup: starting`);let r=W(ke(),`.npm`,`_cacache`),i=Date.now();try{let n=await import(`./lib-inCisXen.js`).then(e=>t(e.default,1)),a=i-Z,o=n.ls.stream(r),s=[];for await(let e of o)e.key.includes(`@anthropic-ai/claude-`)&&s.push({key:e.key,time:e.time});let c=new Map;for(let e of s){let t=e.key.lastIndexOf(`@`),n=t>0?e.key.slice(0,t):e.key,r=c.get(n)??[];r.push(e),c.set(n,r)}let l=[];for(let[,e]of c){e.sort((e,t)=>t.time-e.time);for(let t=0;t<e.length;t++){let n=e[t];(n.time<a||t>=5)&&l.push(n.key)}}await Promise.all(l.map(e=>n.rm.entry(r,e))),await G.writeFile(e,new Date().toISOString());let u=Date.now()-i;l.length>0?g(`npm cache cleanup: Removed ${l.length} old @anthropic-ai entries in ${u}ms`):g(`npm cache cleanup: completed in ${u}ms`),_(`tengu_npm_cache_cleanup`,{success:!0,durationMs:u,entriesRemoved:l.length})}catch(e){b(e),_(`tengu_npm_cache_cleanup`,{success:!1,durationMs:Date.now()-i})}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Be(){let e=W(n(),`.version-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`version cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`version cleanup: skipping, lock held`);return}g(`version cleanup: starting (throttled)`);try{await V(),await G.writeFile(e,new Date().toISOString())}catch(e){b(e)}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Ve(){let{errors:e}=I();if(e.length>0&&p(`cleanupPeriodDays`)){g(`Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.`);return}await Pe(),await Fe(),await X(),await Le(),await Re(),await ze(),await B(),await k(K());let t=await N(K());t>0&&_(`tengu_worktree_cleanup`,{removed:t}),process.env.USER_TYPE===`ant`&&await Q()}s(),U(),Te();var He=(De(),e(Oe)),Ue=1440*60*1e3,$=600*1e3;function We(){Ce(),import(`./extractMemories-B3cTWsph.js`).then(({initExtractMemories:e})=>{e()}).catch(()=>{}),A(),Ee(),a()&&He.ensureDeepLinkProtocolRegistered();let e=!0;async function t(){if(a()&&o()>Date.now()-1e3*60){setTimeout(t,$).unref();return}if(e&&(e=!1,await Ve()),a()&&o()>Date.now()-1e3*60){setTimeout(t,$).unref();return}await V()}setTimeout(t,$).unref(),process.env.USER_TYPE===`ant`&&setInterval(()=>{Q(),Be()},Ue).unref()}export{Ae as n,We as t};
@@ -0,0 +1,2 @@
1
+ import{C as e,E as t,s as n,v as r}from"./git-C0IuvuIy.js";import{g as i,m as a,x as o}from"./startupProfiler-CAntGAbs.js";import{homedir as s}from"os";import{join as c,sep as l}from"path";import{stat as u}from"fs/promises";o(),t(),r();var d=10080*60*1e3,f=1e3;function p(e){let t=[`This session was opened by an external deep link in ${g(e.cwd)}`];if(e.repo){let n=e.lastFetch?i(e.lastFetch):`never`,r=!e.lastFetch||Date.now()-e.lastFetch.getTime()>d;t.push(`Resolved ${e.repo} from local clones · last fetched ${n}${r?` — CLAUDE.md may be stale`:``}`)}return e.prefillLength&&t.push(e.prefillLength>f?`The prompt below (${a(e.prefillLength)} chars) was supplied by the link — scroll to review the entire prompt before pressing Enter.`:`The prompt below was supplied by the link — review carefully before pressing Enter.`),t.join(`
2
+ `)}async function m(t){let r=await n(t);if(!r)return;let i=await e(r),[a,o]=await Promise.all([h(c(r,`FETCH_HEAD`)),i?h(c(i,`FETCH_HEAD`)):Promise.resolve(void 0)]);return a&&o?a>o?a:o:a??o}async function h(e){try{let{mtime:t}=await u(e);return t}catch{return}}function g(e){let t=s();return e===t?`~`:e.startsWith(t+l)?`~`+e.slice(t.length):e}export{m as n,p as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,r,s as i,t as a}from"./bg-DgpgS_VU.js";n();export{a as attachHandler,r as handleBgStart,e as killHandler,i as logsHandler,t as psHandler};
@@ -0,0 +1,9 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{D as r,E as i}from"./debug-otxXY3j-.js";import{a,i as o}from"./genericProcessUtils-tJxf3yqB.js";import{join as s}from"path";import{randomUUID as c}from"crypto";import{readFile as l,readdir as u,unlink as d}from"fs/promises";async function f(){if(process.platform===`win32`){let{DetachedEngine:e}=await import(`./detached-C_2ZXr7X.js`);return new e}let{TmuxEngine:e}=await import(`./tmux-DelKEjda.js`),t=new e;if(await t.available())return t;let{DetachedEngine:n}=await import(`./detached-C_2ZXr7X.js`);return new n}var p=e((()=>{}));function m(){return s(t(),`sessions`)}async function h(){let e=m(),t;try{t=await u(e)}catch{return[]}let n=[];for(let i of t)if(/^\d+\.json$/.test(i)){if(!a(parseInt(i.slice(0,-5),10))){d(s(e,i)).catch(()=>{});continue}try{let t=r(await l(s(e,i),`utf-8`));n.push(t)}catch{}}return n}function g(e,t){let n=parseInt(t,10);return e.find(e=>e.sessionId===t||e.pid===n||e.name&&e.name===t)}function _(e){return new Date(e).toLocaleString()}function v(e){return e.engine?e.engine:e.tmuxSessionName?`tmux`:`detached`}async function y(e){let t=await h();if(t.length===0){console.log(`No active sessions.`);return}console.log(`${t.length} active session${t.length>1?`s`:``}:\n`);for(let e of t){let t=v(e),n=[` PID: ${e.pid}`,` Kind: ${e.kind}`,` Engine: ${t}`,` Session: ${e.sessionId}`,` CWD: ${e.cwd}`];e.name&&n.push(` Name: ${e.name}`),e.startedAt&&n.push(` Started: ${_(e.startedAt)}`),e.status&&n.push(` Status: ${e.status}`),e.waitingFor&&n.push(` Waiting for: ${e.waitingFor}`),e.bridgeSessionId&&n.push(` Bridge: ${e.bridgeSessionId}`),e.tmuxSessionName&&n.push(` Tmux: ${e.tmuxSessionName}`),e.logPath&&n.push(` Log: ${e.logPath}`),console.log(n.join(`
2
+ `)),console.log()}}async function b(e){let t=await h();if(!e){if(t.length===0){console.log(`No active sessions.`);return}if(t.length===1)e=t[0].sessionId;else{console.log(`Multiple sessions active. Specify one:`);for(let e of t){let t=e.name?`${e.name} (${e.sessionId})`:e.sessionId;console.log(` ${t} PID=${e.pid}`)}return}}let n=g(t,e);if(!n){console.error(`Session not found: ${e}`),process.exitCode=1;return}if(!n.logPath){console.log(`No log path recorded for session ${n.sessionId}`);return}try{let e=await l(n.logPath,`utf-8`);process.stdout.write(e)}catch(e){console.error(`Failed to read log file: ${n.logPath}`),console.error(e instanceof Error?e.message:String(e)),process.exitCode=1}}async function x(e){let t=await h();if(!e){let n=t.filter(e=>e.tmuxSessionName||e.engine===`detached`);if(n.length===0){console.log("No background sessions to attach to. Start one with `claude daemon bg`.");return}if(n.length===1)e=n[0].sessionId;else{console.log(`Multiple background sessions. Specify one:`);for(let e of n){let t=e.name?`${e.name} (${e.sessionId})`:e.sessionId,n=v(e);console.log(` ${t} PID=${e.pid} engine=${n}`)}return}}let n=g(t,e);if(!n){console.error(`Session not found: ${e}`),process.exitCode=1;return}let r=v(n);try{if(r===`tmux`){let{TmuxEngine:e}=await import(`./tmux-DelKEjda.js`),t=new e;if(!await t.available()){console.error(`tmux is no longer available. Cannot attach to tmux session.`),process.exitCode=1;return}await t.attach(n)}else{let{DetachedEngine:e}=await import(`./detached-C_2ZXr7X.js`);await new e().attach(n)}}catch(e){console.error(e instanceof Error?e.message:String(e)),process.exitCode=1}}async function S(e){let t=await h();if(!e){if(t.length===0){console.log(`No active sessions to kill.`);return}console.log(`Specify a session to kill:`);for(let e of t){let t=e.name?`${e.name} (${e.sessionId})`:e.sessionId;console.log(` ${t} PID=${e.pid}`)}return}let n=g(t,e);if(!n){console.error(`Session not found: ${e}`),process.exitCode=1;return}console.log(`Killing session ${n.sessionId} (PID: ${n.pid})...`);try{process.kill(n.pid,`SIGTERM`)}catch{console.log(`Session already exited.`);return}if(await new Promise(e=>setTimeout(e,2e3)),a(n.pid))try{process.kill(n.pid,`SIGKILL`),console.log(`Session force-killed.`)}catch{console.log(`Session exited during grace period.`)}else console.log(`Session stopped.`);d(s(m(),`${n.pid}.json`)).catch(()=>{})}async function C(e){let n=await f(),r=e.filter(e=>e!==`--bg`&&e!==`--background`);if(!n.supportsInteractiveInput&&!r.some(e=>e===`-p`||e===`--print`||e===`--pipe`)){console.error(`Error: Background sessions with detached engine require -p/--print flag.
3
+ The detached engine has no terminal for interactive input.
4
+
5
+ Usage:
6
+ claude daemon bg -p "your prompt here"
7
+ echo "prompt" | claude daemon bg --pipe`),process.platform!==`win32`&&console.error(`
8
+ Alternatively, install tmux for interactive background sessions:
9
+ ${process.platform===`darwin`?`brew install tmux`:`sudo apt install tmux`}`),process.exitCode=1;return}let i=`claude-bg-${c().slice(0,8)}`,a=s(t(),`sessions`,`logs`,`${i}.log`);try{let e=await n.start({sessionName:i,args:r,env:{...process.env},logPath:a,cwd:process.cwd()});console.log(`Background session started: ${e.sessionName}`),console.log(` Engine: ${e.engineUsed}`),console.log(` Log: ${e.logPath}`),console.log(),console.log(`Use \`claude daemon attach ${e.sessionName}\` to reconnect.`),console.log("Use `claude daemon status` to check status."),console.log(`Use \`claude daemon kill ${e.sessionName}\` to stop.`)}catch(e){console.error(e instanceof Error?e.message:String(e)),process.exitCode=1}}var w=e((()=>{n(),o(),i(),p()}));export{S as a,y as c,w as i,g as n,h as o,C as r,b as s,x as t};
@@ -0,0 +1,3 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{Ct as t,cn as n,ot as r}from"./state-sIHsFpDu.js";import{E as i,O as a}from"./debug-otxXY3j-.js";import{n as o,r as s}from"./analytics-DqMQntaB.js";import{c,s as l}from"./types-KeqFPzY5.js";import{i as u,o as d}from"./stringUtils-KZoO4GUd.js";import{Ar as f,Fr as p,Oi as m,Si as h,Tr as g,Vr as _,jr as v}from"./loadAgentsDir-C_wFhytF.js";import{randomUUID as y}from"crypto";import{mkdir as b,readFile as x,writeFile as S}from"fs/promises";function C(e){let t=e?.message?.content;if(!t)return`Branched conversation`;let n=typeof t==`string`?t:t.find(e=>e.type===`text`)?.text;return n&&n.replace(/\s+/g,` `).trim().slice(0,100)||`Branched conversation`}async function w(e){let n=y(),i=t(),o=g(r()),s=v(n),l=f();await b(o,{recursive:!0,mode:448});let u;try{u=await x(l)}catch{throw Error(`No conversation to branch`)}if(u.length===0)throw Error(`No conversation to branch`);let d=c(u),p=d.filter(e=>_(e)&&!e.isSidechain),m=d.filter(e=>e.type===`content-replacement`&&e.sessionId===i).flatMap(e=>e.replacements);if(p.length===0)throw Error(`No messages to branch`);let h=null,C=[],w=[];for(let e of p){let t={...e,sessionId:n,parentUuid:h,isSidechain:!1,forkedFrom:{sessionId:i,messageUuid:e.uuid}},r={...e,sessionId:n};w.push(r),C.push(a(t)),e.type!==`progress`&&(h=e.uuid)}if(m.length>0){let e={type:`content-replacement`,sessionId:n,replacements:m};C.push(a(e))}return await S(s,C.join(`
2
+ `)+`
3
+ `,{encoding:`utf8`,mode:384}),{sessionId:n,title:e,forkPath:s,serializedMessages:w,contentReplacementRecords:m}}async function T(e){let t=`${e} (Branch)`;if((await m(t,{exact:!0})).length===0)return t;let n=await m(`${e} (Branch`),r=new Set([1]),i=RegExp(`^${u(e)} \\(Branch(?: (\\d+))?\\)$`);for(let e of n){let t=e.customTitle?.match(i);t&&(t[1]?r.add(parseInt(t[1],10)):r.add(1))}let a=2;for(;r.has(a);)a++;return`${e} (Branch ${a})`}async function E(e,n,r){let i=r?.trim()||void 0,a=t();try{let{sessionId:t,title:r,forkPath:o,serializedMessages:c,contentReplacementRecords:l}=await w(i),u=new Date,d=C(c.find(e=>e.type===`user`)),f=await T(r??d);await h(t,f,o),s(`tengu_conversation_forked`,{message_count:c.length,has_custom_title:!!r});let p={date:u.toISOString().split(`T`)[0],messages:c,fullPath:o,value:u.getTime(),created:u,modified:u,firstPrompt:d,messageCount:c.length,isSidechain:!1,sessionId:t,customTitle:f,contentReplacements:l},m=r?` "${r}"`:``,g=`Branched conversation${m}. You are now in the branch.${`\nTo resume the original: claude -r ${a}`}`;return n.resume?(await n.resume(t,p,`fork`),e(g,{display:`system`})):e(`Branched conversation${m}. Resume with: /resume ${t}`),null}catch(t){return e(`Failed to branch conversation: ${t instanceof Error?t.message:`Unknown error occurred`}`),null}}e((()=>{n(),o(),l(),p(),i(),d()}))();export{E as call,C as deriveFirstPrompt};
@@ -0,0 +1,8 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{U as r,cn as i}from"./state-sIHsFpDu.js";import{join as a}from"node:path";import{appendFileSync as o,existsSync as s,mkdirSync as c,readFileSync as l,unlinkSync as u,writeFileSync as d}from"node:fs";function f(){return a(t(),`.next-request-no-cache`)}function p(){return a(t(),`.break-cache-always`)}function m(){return a(t(),`break-cache-events.jsonl`)}function h(){try{let e=l(m(),`utf8`).trim().split(`
2
+ `).filter(Boolean).map(e=>{try{return JSON.parse(e)}catch{return null}}).filter(e=>e!==null),t=e.filter(e=>e.kind===`once`),n=e[e.length-1],r=e.filter(e=>e.kind===`always_on`||e.kind===`always_off`),i=r[r.length-1];return{totalBreaks:t.length,lastBreakAt:n?.at??null,alwaysModeEnabled:i?.kind===`always_on`}}catch{return{totalBreaks:0,lastBreakAt:null,alwaysModeEnabled:!1}}}function g(e){let n=m();c(t(),{recursive:!0});let r={at:new Date().toISOString(),kind:e};o(n,JSON.stringify(r)+`
3
+ `,`utf8`)}function _(){g(`once`)}async function v(e){let t=e.trim().toLowerCase(),n=f(),r=p();if(t===`status`){let e=h(),t=s(n),i=s(r);return{type:`text`,value:[`## Break-Cache Status`,``,` Once marker: ${t?`ACTIVE (next call will bust cache)`:`not set`}`,` Always mode: ${i?`ON (every call busts cache)`:`off`}`,``,`## Stats`,` total_breaks: ${e.totalBreaks}`,` last_break_at: ${e.lastBreakAt??`never`}`].join(`
4
+ `)}}if(t===`off`){let e=!1;return s(n)&&(u(n),e=!0),s(r)&&(u(r),e=!0),g(`always_off`),{type:`text`,value:e?`Break-cache disabled. Removed once marker and/or always flag.`:`Break-cache was not active.`}}if(t===`--clear`)return s(n)?(u(n),{type:`text`,value:`Cache-break marker cleared.\n \`${n}\``}):{type:`text`,value:`No cache-break marker was set.`};if(t===`always`)return d(r,new Date().toISOString(),`utf8`),g(`always_on`),{type:`text`,value:[`## Always-on cache break enabled`,``,`Flag written: \`${r}\``,``,`Every API call will now append a random nonce to the system prompt,`,`permanently preventing prompt-cache hits for this session.`,``,"To disable: `/break-cache off`"].join(`
5
+ `)};if(t===``||t===`once`){let e=new Date().toISOString();d(n,e,`utf8`),_();let t=h();return{type:`text`,value:[`## Cache break scheduled`,``,`Marker written: \`${n}\``,`Timestamp: ${e}`,``,`The next API call will append a random nonce to the system prompt,`,`causing a cache miss. The marker is removed automatically after use.`,``,"To cancel before the next call: `/break-cache --clear`","For every call: `/break-cache always`",``,`Total breaks this session: ${t.totalBreaks}`,``,`_How it works: Anthropic prompt cache keys on the system-prompt prefix hash._`,`_A unique nonce invalidates the hash, forcing a fresh compute._`].join(`
6
+ `)}}return{type:`text`,value:[`Unknown scope: "${t}"`,``,y].join(`
7
+ `)}}var y,b,x,S=e((()=>{i(),n(),y=[`Usage: /break-cache [scope]`,``,` (no args) Schedule a one-time cache break for the next API call`,` once Same as no args`,` always Enable persistent cache-break mode (every request)`,` off Disable always mode and clear any pending marker`,` --clear Clear the pending once marker (cancel before next call)`,` status Show current break-cache status and stats`,``,`How it works:`,` The Anthropic prompt cache keys on the system-prompt prefix hash.`,` A unique nonce invalidates the hash, forcing a fresh compute.`,` This is useful when you want to ensure a clean context window.`].join(`
8
+ `),b={type:`local-jsx`,name:`break-cache`,description:`Manage prompt-cache breaking. Open actions or run: once, status, always, off`,isHidden:!1,isEnabled:()=>!r(),argumentHint:`[once|status|always|off|--clear]`,bridgeSafe:!0,getBridgeInvocationError:e=>e.trim()?void 0:`Use /break-cache once/status/always/off over Remote Control.`,load:()=>import(`./panel-D3wvAEFE.js`)},x={type:`local`,name:`break-cache`,description:`Force the next (or all) API call(s) to miss prompt cache. Scopes: once, status, always, off`,isHidden:!1,isEnabled:()=>r(),supportsNonInteractive:!0,bridgeSafe:!0,load:async()=>({call:v})}}));export{f as a,p as i,x as n,S as o,v as r,b as t};
@@ -0,0 +1,2 @@
1
+ import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{l as u,p as d}from"./debug-otxXY3j-.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{fC as m,lC as h,sS as g,uC as _,uS as v}from"./loadAgentsDir-C_wFhytF.js";import{t as y}from"./useKeybinding-DPOUuymz.js";import{a as b,t as x}from"./bridgeConfig-pjDV5Z2l.js";import{n as S,r as C,s as w,t as T}from"./bridgeEnabled-D9jI6X-w.js";import{a as E,i as D,n as O}from"./types-C0nqJFkV.js";import{t as k}from"./lib-Cf16LgKj.js";import{i as A,n as j}from"./envLessBridgeConfig-C9UUbQCo.js";import{n as M,r as N}from"./RemoteCallout-Bwe1ESr9.js";function P({onDone:e,name:t}){let n=m(),r=_(e=>e.replBridgeConnected),i=_(e=>e.replBridgeEnabled),a=_(e=>e.replBridgeOutboundOnly),[o,s]=(0,z.useState)(!1);return(0,z.useEffect)(()=>{if((r||i)&&!a){s(!0);return}let o=!1;return(async()=>{let r=await I();if(!o){if(r){p(`tengu_bridge_command`,{action:`preflight_failed`}),e(r,{display:`system`});return}if(N()){n(e=>e.showRemoteCallout?e:{...e,showRemoteCallout:!0,replBridgeInitialName:t}),e(``,{display:`system`});return}p(`tengu_bridge_command`,{action:`connect`}),n(e=>e.replBridgeEnabled&&!e.replBridgeOutboundOnly?e:{...e,replBridgeEnabled:!0,replBridgeExplicit:!0,replBridgeOutboundOnly:!1,replBridgeInitialName:t}),e(`Remote Control connecting…`,{display:`system`})}})(),()=>{o=!0}},[]),o?(0,B.jsx)(F,{onDone:e}):null}function F({onDone:e}){v(`bridge-disconnect-dialog`);let t=m(),n=_(e=>e.replBridgeSessionUrl),s=_(e=>e.replBridgeConnectUrl),l=_(e=>e.replBridgeSessionActive),[u,d]=(0,z.useState)(2),[f,h]=(0,z.useState)(!1),[g,y]=(0,z.useState)(``),b=l?n:s;(0,z.useEffect)(()=>{if(!f||!b){y(``);return}(0,R.toString)(b,{type:`utf8`,errorCorrectionLevel:`L`,small:!0}).then(y).catch(()=>y(``))},[f,b]);function x(){t(e=>e.replBridgeEnabled?{...e,replBridgeEnabled:!1,replBridgeExplicit:!1,replBridgeOutboundOnly:!1}:e),p(`tengu_bridge_command`,{action:`disconnect`}),e(D,{display:`system`})}function S(){h(e=>!e)}function C(){e(void 0,{display:`skip`})}o({"select:next":()=>d(e=>(e+1)%3),"select:previous":()=>d(e=>(e-1+3)%3),"select:accept":()=>{u===0?x():u===1?S():C()}},{context:`Select`});let w=g?g.split(`
2
+ `).filter(e=>e.length>0):[];return(0,B.jsx)(a,{title:`Remote Control`,onCancel:C,hideInputGuide:!0,children:(0,B.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,B.jsxs)(r,{children:[`This session is available via Remote Control`,b?` at ${b}`:``,`.`]}),f&&w.length>0&&(0,B.jsx)(c,{flexDirection:`column`,children:w.map((e,t)=>(0,B.jsx)(r,{children:e},t))}),(0,B.jsxs)(c,{flexDirection:`column`,children:[(0,B.jsx)(i,{isFocused:u===0,children:(0,B.jsx)(r,{children:`Disconnect this session`})}),(0,B.jsx)(i,{isFocused:u===1,children:(0,B.jsx)(r,{children:f?`Hide QR code`:`Show QR code`})}),(0,B.jsx)(i,{isFocused:u===2,children:(0,B.jsx)(r,{children:`Continue`})})]}),(0,B.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to continue`})]})})}async function I(){let{waitForPolicyLimitsToLoad:e,isPolicyAllowed:t}=await import(`./policyLimits-Cdp3QwZ1.js`);if(await e(),!t(`allow_remote_control`))return`Remote Control is disabled by your organization's policy.`;let n=await S();if(n)return n;let r=w();if(r){let{isAssistantMode:e}=await import(`./assistant-BMviqf0l.js`);e()&&(r=!1)}return(r?await j():T())||(x()?(d(`[bridge] Prerequisites passed, enabling bridge`),null):O)}async function L(e,t,n){return(0,B.jsx)(P,{onDone:e,name:n.trim()||void 0})}var R,z,B;e((()=>{R=k(),n(),z=t(n(),1),b(),C(),A(),E(),s(),M(),g(),y(),f(),h(),u(),B=l()}))();export{L as call};
@@ -0,0 +1 @@
1
+ import{a as e,n as t,o as n,t as r}from"./bridgeConfig-pjDV5Z2l.js";e();export{r as getBridgeAccessToken,t as getBridgeBaseUrl,n as isSelfHostedBridge};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,on as n}from"./paths-Ci1iwL5Y.js";import{l as r,u as i}from"./oauth-CdZEzMww.js";function a(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function o(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function s(){return a()??t()?.accessToken}function c(){return o()??r().BASE_API_URL}function l(){return!!o()}var u=e((()=>{i(),n()}));export{u as a,a as i,c as n,l as o,o as r,s as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{s as t}from"./envUtils-BWeoiL4Y.js";import{S as n,Zt as r,_ as i,an as a,dn as o,g as s,l as c,on as l}from"./paths-Ci1iwL5Y.js";import{i as u,r as d}from"./semver-Di5OaTd5.js";import{a as f,o as p}from"./bridgeConfig-pjDV5Z2l.js";function m(){return p()?!0:_()&&i(`tengu_ccr_bridge`,!1)}async function h(){return p()?!0:_()&&await c(`tengu_ccr_bridge`)}async function g(){return p()?null:_()?v()?y()?.organizationUuid?await c(`tengu_ccr_bridge`)?null:`Remote Control is not yet enabled for your account.`:"Unable to determine your organization for Remote Control eligibility. Run `claude auth login` to refresh your account information.":"Remote Control requires a full-scope login token. Long-lived tokens (from `claude setup-token` or CLAUDE_CODE_OAUTH_TOKEN) are limited to inference-only for security reasons. Run `claude auth login` to use Remote Control.":"Remote Control requires a claude.ai subscription. Run `claude auth login` to sign in with your claude.ai account."}function _(){try{return o()}catch{return!1}}function v(){try{return a()}catch{return!1}}function y(){try{return r()}catch{return}}function b(){return i(`tengu_bridge_repl_v2`,!1)}function x(){return i(`tengu_bridge_repl_v2_cse_shim_enabled`,!0)}function S(){{let e=s(`tengu_bridge_min_version`,{minVersion:`0.0.0`});if(e.minVersion&&u(`2.7.1`,e.minVersion))return`Your version of Claude Code (2.7.1) is too old for Remote Control.\nVersion ${e.minVersion} or higher is required. Run \`claude update\` to update.`}return null}var C=e((()=>{n(),f(),l(),t(),d()}));export{h as a,m as i,g as n,x as o,C as r,b as s,S as t};
@@ -0,0 +1 @@
1
+ import{n as e,r as t,t as n}from"./bridgeEnabled-D9jI6X-w.js";t();export{n as checkBridgeMinVersion,e as getBridgeDisabledReason};