@readmagic/workmate 0.0.25 → 0.0.26
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.
- package/dist/chunks/{AddWorkspaceDirectory-Y5S_lMjD.js → AddWorkspaceDirectory-mS8iUoWY.js} +1 -1
- package/dist/chunks/{AgentsMdExternalIncludesDialog-DVbU-BaD.js → AgentsMdExternalIncludesDialog-BHBkysy0.js} +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-DuStmCjj.js +1 -0
- package/dist/chunks/App-D--vtCyq.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-mcDuiNGs.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-DjqGAL4C.js → BypassPermissionsModeDialog-DyqI98d2.js} +1 -1
- package/dist/chunks/CustomSelect-CpMbxYbt.js +1 -0
- package/dist/chunks/DiffDialog-BQAU2pJx.js +6 -0
- package/dist/chunks/Doctor-BU69VQzw.js +1 -0
- package/dist/chunks/Doctor-DJOMbSDE.js +3 -0
- package/dist/chunks/{ExitFlow-Dh9QdaYK.js → ExitFlow-xBOnvhiW.js} +2 -2
- package/dist/chunks/{InvalidConfigDialog-C9boykQn.js → InvalidConfigDialog-NiuhcaG5.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-UN5mleCK.js → InvalidSettingsDialog-DrromC1I.js} +1 -1
- package/dist/chunks/KeybindingProviderSetup-CSUkJHTT.js +1 -0
- package/dist/chunks/MCPConnectionManager-Bn1PDn3R.js +1 -0
- package/dist/chunks/MCPToolListView-BRxjOaOL.js +1 -0
- package/dist/chunks/{McpParsingWarnings-zkM_lGd0.js → McpParsingWarnings-BYG2yqjO.js} +1 -1
- package/dist/chunks/MessageSelector-B7xAQqZI.js +3 -0
- package/dist/chunks/Messages-CxMsfjOa.js +10 -0
- package/dist/chunks/{Onboarding-BT90cFkn.js → Onboarding-CkATe87e.js} +1 -1
- package/dist/chunks/{PermissionDialog-BaibiQae.js → PermissionDialog-tEMMa5-a.js} +1 -1
- package/dist/chunks/{PressEnterToContinue-DZc_s_pE.js → PressEnterToContinue-CPOaYnym.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-CCTZYbWI.js → PromptInputFooterSuggestions-CwqAsTI2.js} +1 -1
- package/dist/chunks/PromptInputHelpMenu-krq-hiFO.js +1 -0
- package/dist/chunks/{ProviderSetup-yIj8YOKF.js → ProviderSetup-J6Ty-Wj8.js} +1 -1
- package/dist/chunks/QueryEngine-Mdi_kUaL.js +1 -0
- package/dist/chunks/REPL-BgzQtSFF.js +1 -0
- package/dist/chunks/REPL-rirm6s_7.js +124 -0
- package/dist/chunks/ResumeConversation-Cmsbo5m7.js +1 -0
- package/dist/chunks/{SearchBox-C9xxQzh1.js → SearchBox-DQBLKyzJ.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-D1-7C04z.js +1 -0
- package/dist/chunks/{SelectMulti-BW7Ffk1G.js → SelectMulti-BpAjjhsn.js} +1 -1
- package/dist/chunks/Settings-B6DImvca.js +2 -0
- package/dist/chunks/Spinner-DhhSOFcN.js +1 -0
- package/dist/chunks/{SpinnerGlyph-CqrOK3Mx.js → SpinnerGlyph-CmVXC-_9.js} +1 -1
- package/dist/chunks/{TextInput-Cev5Awdd.js → TextInput-BboKIug2.js} +11 -11
- package/dist/chunks/ThemePicker-DTpXbEY0.js +1 -0
- package/dist/chunks/{TrustDialog-8Sjmuu0e.js → TrustDialog-CZ8JpySm.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-INwwoerV.js → ValidationErrorsList-C_gDQfm1.js} +1 -1
- package/dist/chunks/{_baseEach-DrPH_FGo.js → _baseEach-DGbaIpJA.js} +1 -1
- package/dist/chunks/_baseSlice-D67_NpZ1.js +1 -0
- package/dist/chunks/{add-dir-D3RMaYxy.js → add-dir-B576wzi9.js} +1 -1
- package/dist/chunks/{agentDisplay-B3npXoCS.js → agentDisplay-ZuFoBZYu.js} +1 -1
- package/dist/chunks/{agents-2mPGmeq6.js → agents-Dy4_hDic.js} +1 -1
- package/dist/chunks/agents-HIOBiw4w.js +101 -0
- package/dist/chunks/allErrors-CxPNR2WN.js +1 -0
- package/dist/chunks/appleTerminalBackup-C9kjzdM9.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-BkFxfjOf.js → backgroundHousekeeping-PyLNnGdw.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-ZCMPmQuU.js +1 -0
- package/dist/chunks/{banner-DHpTmEO7.js → banner-DqFectPg.js} +2 -2
- package/dist/chunks/{branch-Be_yDFU8.js → branch-B_BL5N9N.js} +2 -2
- package/dist/chunks/{break-cache-UUt6Dkf2.js → break-cache-DL95nKZl.js} +2 -2
- package/dist/chunks/{btw-DUml5L1w.js → btw-Y44ctueB.js} +1 -1
- package/dist/chunks/bundledMode-BxyD5cqq.js +1 -0
- package/dist/chunks/caches-5xZ4dSXt.js +1 -0
- package/dist/chunks/caches-Be9saXxV.js +1 -0
- package/dist/chunks/{claudeDesktop-mBGFDbI6.js → claudeDesktop-g8eUUY2E.js} +1 -1
- package/dist/chunks/{clear-CrGjNe6E.js → clear-DtTkA707.js} +1 -1
- package/dist/chunks/{client-BDuhbzLD.js → client-Bw_L3lSc.js} +1 -1
- package/dist/chunks/{client-BYFVVMcf.js → client-aJ2Nr_sh.js} +1 -1
- package/dist/chunks/client-mnUISv_N.js +1 -0
- package/dist/chunks/client-wPqIdEVm.js +1 -0
- package/dist/chunks/commands-wfE12a4L.js +1 -0
- package/dist/chunks/compact-CvNOtu7J.js +2 -0
- package/dist/chunks/config-D3K87Mm1.js +3 -0
- package/dist/chunks/config-DTga6Ku8.js +1 -0
- package/dist/chunks/config-DtmqWusU.js +1 -0
- package/dist/chunks/{context-mV5zjqmc.js → context-Opu4E8dL.js} +1 -1
- package/dist/chunks/{context-noninteractive-DvfVvmSE.js → context-noninteractive-B1V2Mp26.js} +5 -5
- package/dist/chunks/context-noninteractive-eIlneYiL.js +1 -0
- package/dist/chunks/conversation-CG_z7TLE.js +1 -0
- package/dist/chunks/conversation-CHesBfFZ.js +1 -0
- package/dist/chunks/conversationRecovery-OhitW-7g.js +1 -0
- package/dist/chunks/crossProjectResume-mmYx8PrZ.js +40 -0
- package/dist/chunks/cwd-BH2f3u0o.js +1 -0
- package/dist/chunks/{cwd-BvNt_018.js → cwd-DrEEb4f5.js} +1 -1
- package/dist/chunks/{debug-CRnGsZOV.js → debug-kBjDaVkQ.js} +3 -3
- package/dist/chunks/{detectRepository-CsJLbVEe.js → detectRepository-M6K2wc7h.js} +1 -1
- package/dist/chunks/{diff-DUEoNCnJ.js → diff-Cv7tX2-P.js} +1 -1
- package/dist/chunks/{directoryCompletion-Bgi8DBT5.js → directoryCompletion-BHyjyKAM.js} +1 -1
- package/dist/chunks/doctor-DeBG5SL5.js +1 -0
- package/dist/chunks/{entry-D1iD76SW.js → entry-CbhyIWgj.js} +5 -5
- package/dist/chunks/envUtils-DZ_SvEVz.js +1 -0
- package/dist/chunks/execFileNoThrow-BfZFnCGa.js +1 -0
- package/dist/chunks/execa-CBhG1doD.js +34 -0
- package/dist/chunks/exit-OKEV_ddw.js +1 -0
- package/dist/chunks/{extraUsage-BtHE-SBX.js → extraUsage-BlRL3yeb.js} +1 -1
- package/dist/chunks/extractMemories-jnsv-_n_.js +1 -0
- package/dist/chunks/fast-4I_qPJCd.js +1 -0
- package/dist/chunks/fast-DiolM1M7.js +1 -0
- package/dist/chunks/{fetchModelList-Cjow_QGy.js → fetchModelList-BRFTQim4.js} +1 -1
- package/dist/chunks/fetchModelList-qPKAuu4m.js +1 -0
- package/dist/chunks/{fileSuggestions-C96V9-Ne.js → fileSuggestions-iWVXvvLB.js} +3 -3
- package/dist/chunks/{fpsMetrics-wxj9GAsd.js → fpsMetrics-Ixd0J4CH.js} +1 -1
- package/dist/chunks/{gemini-4YGElN3H.js → gemini-BfVyavwQ.js} +2 -2
- package/dist/chunks/{generateSessionName-BHIKyXpz.js → generateSessionName-CGaTTXCA.js} +1 -1
- package/dist/chunks/genericProcessUtils-CVtQOTO2.js +12 -0
- package/dist/chunks/{goal-ePK_jLo3.js → goal-BidR-GFa.js} +1 -1
- package/dist/chunks/grok-DLcuI-U7.js +1 -0
- package/dist/chunks/{help-B7xRle-V.js → help-CZuvYhXj.js} +1 -1
- package/dist/chunks/history-BxPGftQw.js +1 -0
- package/dist/chunks/hooks-Bg9WIjZQ.js +1 -0
- package/dist/chunks/{hooks-BN5f58HY.js → hooks-ehqfAM5F.js} +2 -2
- package/dist/chunks/install-ACGY0vhM.js +1 -0
- package/dist/chunks/{instrumentation-Oj5xagJG.js → instrumentation-B9bfF2mA.js} +5 -5
- package/dist/chunks/{job-D9ypO0cd.js → job-Coztdn6A.js} +1 -1
- package/dist/chunks/keybindings-DwSdLpaE.js +1 -0
- package/dist/chunks/{launchLocalMemory-DliLezJw.js → launchLocalMemory-DRzfpIOB.js} +1 -1
- package/dist/chunks/{launchOnboarding-A-kk-7ID.js → launchOnboarding-D2zFCJf-.js} +1 -1
- package/dist/chunks/{loadAgentsDir-DGozQu_6.js → loadAgentsDir-DR5PVAc3.js} +557 -561
- package/dist/chunks/loadAgentsDir-DqAbnpB-.js +1 -0
- package/dist/chunks/{loadPluginHooks-BiHPKDaY.js → loadPluginHooks-BiQgGfUJ.js} +1 -1
- package/dist/chunks/{loader-CtoR-vO-.js → loader-6MqzNGmV.js} +1 -1
- package/dist/chunks/{localSearch-BU02Qsv9.js → localSearch-CzkxDuOR.js} +1 -1
- package/dist/chunks/localSearch-DW3JT2MA.js +1 -0
- package/dist/chunks/lockfile-D_9vif6E.js +1 -0
- package/dist/chunks/{log-DoSpAwRP.js → log-DWZny1vM.js} +1 -1
- package/dist/chunks/{logoUtils-DLd6JKqW.js → logoUtils-DR5T0pr3.js} +1 -1
- package/dist/chunks/{magicDocs-Bj8LYrN2.js → magicDocs-BwBxjfLo.js} +2 -2
- package/dist/chunks/main-Ryi27wYq.js +345 -0
- package/dist/chunks/managedEnv-DCEJh3z3.js +1 -0
- package/dist/chunks/managedEnv-Do9fgLpk.js +1 -0
- package/dist/chunks/managedEnvConstants-CWcT7nYr.js +1 -0
- package/dist/chunks/mcp-BCpnF6wD.js +1 -0
- package/dist/chunks/mcp-CJ6SDJEK.js +6 -0
- package/dist/chunks/mcp-CZBTxbhu.js +2 -0
- package/dist/chunks/memory-BQO6Y0ak.js +1 -0
- package/dist/chunks/{modalContext-DDZdU1J8.js → modalContext-CBE8xuck.js} +1 -1
- package/dist/chunks/{mode-CBKawxnD.js → mode-wq70cR44.js} +1 -1
- package/dist/chunks/model-D42epddJ.js +1 -0
- package/dist/chunks/{model-DwbqvCY2.js → model-DVk9-2dk.js} +1 -1
- package/dist/chunks/{modelOptions-CXBfKFXA.js → modelOptions-beLgXORr.js} +1 -1
- package/dist/chunks/nativeInstaller-ChGSz1lb.js +1 -0
- package/dist/chunks/{notifications-ql0eSo0Y.js → notifications-dGBuNvFj.js} +1 -1
- package/dist/chunks/{onChangeAppState-D85b33R5.js → onChangeAppState-B4K-rSaF.js} +1 -1
- package/dist/chunks/openai-DAwnAV9K.js +2 -0
- package/dist/chunks/{overlayContext-CLjlCFBl.js → overlayContext-B6i_6y_0.js} +1 -1
- package/dist/chunks/{panel-DMZkOEiU.js → panel-C0CF3noE.js} +1 -1
- package/dist/chunks/parser-BZt0VFd_.js +1 -0
- package/dist/chunks/{parser-UqADrvxF.js → parser-DThLwgdM.js} +1 -1
- package/dist/chunks/{partition-CwxTlmMd.js → partition-BRQHofxD.js} +1 -1
- package/dist/chunks/{pasteStore-ovtxMVR5.js → pasteStore-BmehVo5j.js} +1 -1
- package/dist/chunks/{permissions-CgsvWOk_.js → permissions-DkfWKN-B.js} +3 -3
- package/dist/chunks/pidLock-YvAaIrIY.js +3 -0
- package/dist/chunks/plan-B6U3ioer.js +1 -0
- package/dist/chunks/{platform-DsMIk3eq.js → platform-Vl9IynC3.js} +1 -1
- package/dist/chunks/plugin-CTA2_-F7.js +17 -0
- package/dist/chunks/{pluginAutoupdate-DQqYDPVg.js → pluginAutoupdate-Dy5W3HWE.js} +1 -1
- package/dist/chunks/{pluginBlocklist-BAr9WTup.js → pluginBlocklist-DAoUENwc.js} +1 -1
- package/dist/chunks/pluginCliCommands-CaHnj0C_.js +1 -0
- package/dist/chunks/{pluginFlagging-BO_3qjfs.js → pluginFlagging-BCj9LJP3.js} +1 -1
- package/dist/chunks/pluginOperations-ClXNOOG6.js +2 -0
- package/dist/chunks/pluginStartupCheck-CiwMKGjx.js +1 -0
- package/dist/chunks/{pluginStartupCheck-BX6cv-vs.js → pluginStartupCheck-U8_xk25t.js} +1 -1
- package/dist/chunks/{plugins-9crasx2V.js → plugins-D7zyI9c4.js} +4 -4
- package/dist/chunks/{poller-CpLBoB-N.js → poller-BeyVwHAf.js} +1 -1
- package/dist/chunks/poorMode-DtzWNhsY.js +1 -0
- package/dist/chunks/poorMode-Ocff_UT1.js +1 -0
- package/dist/chunks/print-BzljdXem.js +13 -0
- package/dist/chunks/processBashCommand-RUkmyAl4.js +1 -0
- package/dist/chunks/processSlashCommand-DRLO-jNV.js +5 -0
- package/dist/chunks/{projectContext-5fmRr6Sd.js → projectContext-COeHKDrk.js} +1 -1
- package/dist/chunks/{projectContext-DhtjLv3k.js → projectContext-QN5U3Ggr.js} +1 -1
- package/dist/chunks/{projectOnboardingState--L3BKjOE.js → projectOnboardingState-KqcpRXls.js} +1 -1
- package/dist/chunks/{prompt-DzO1um1h.js → prompt-CTByhpUI.js} +20 -20
- package/dist/chunks/prompt-DTpfW6yP.js +1 -0
- package/dist/chunks/prompt-D__eHY_5.js +1 -0
- package/dist/chunks/promptEditor-CpUFgGzc.js +4 -0
- package/dist/chunks/{protocolHandler-BWgH1jaF.js → protocolHandler-BQSLVGnG.js} +2 -2
- package/dist/chunks/{proxy-BjkGlmBu.js → proxy-BtWuysHM.js} +2 -2
- package/dist/chunks/{reconciler-CVMmAaCy.js → reconciler-D6BUq8WB.js} +1 -1
- package/dist/chunks/refresh-B4pqFp12.js +1 -0
- package/dist/chunks/reject-C6IvUvBt.js +1 -0
- package/dist/chunks/{reload-plugins-DeyJTx4s.js → reload-plugins-DXQqk7q6.js} +1 -1
- package/dist/chunks/rename-D4XBmTBI.js +1 -0
- package/dist/chunks/{renderOptions-DRS2EslG.js → renderOptions-DkP98P_d.js} +1 -1
- package/dist/chunks/{resume-N4O5YI-S.js → resume-DzIev0JI.js} +2 -2
- package/dist/chunks/ripgrep-CYP26Fhg.js +1 -0
- package/dist/chunks/ripgrep-D1f1pbCz.js +5 -0
- package/dist/chunks/{runtimeObserver-DMSzdFWt.js → runtimeObserver-BPqlbu0B.js} +4 -4
- package/dist/chunks/{runtimeObserver-C0CJvA3q.js → runtimeObserver-BUHs3qjs.js} +1 -1
- package/dist/chunks/sandbox-adapter-CumL75tU.js +1 -0
- package/dist/chunks/{sandbox-toggle-Tbbaw18C.js → sandbox-toggle-CTtET6Xq.js} +1 -1
- package/dist/chunks/searchExtraTools-BMCU2zEf.js +1 -0
- package/dist/chunks/{select-Fq6g2Ejk.js → select-FrwoTzuc.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-WO8WTdT9.js +1 -0
- package/dist/chunks/{sessionObserver-CRie77tp.js → sessionObserver-B6xzxckA.js} +2 -2
- package/dist/chunks/sessionObserver-CBrM4opL.js +1 -0
- package/dist/chunks/sessionStorage-C1EAxDWG.js +1 -0
- package/dist/chunks/sessionTracing-UFK96PxT.js +11 -0
- package/dist/chunks/settings-BK6gCko-.js +1 -0
- package/dist/chunks/settings-YIDksG5Z.js +24 -0
- package/dist/chunks/setup-BBvZyrfz.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-CTnYVrmP.js → shadowedRuleDetection-D6R2OeoH.js} +1 -1
- package/dist/chunks/{sideQuestion-Cl8m2qYx.js → sideQuestion-5jcbOMsR.js} +3 -3
- package/dist/chunks/{sinks-CiupmfTg.js → sinks-B-kFqjjd.js} +1 -1
- package/dist/chunks/sinks-DB_D4lmu.js +1 -0
- package/dist/chunks/skillChangeDetector-103-nEle.js +1 -0
- package/dist/chunks/{skillGapStore-es3K-aYe.js → skillGapStore-DOz1KCqo.js} +2 -2
- package/dist/chunks/{skillLifecycle-BcgoOQBk.js → skillLifecycle-D9NkIwFQ.js} +2 -2
- package/dist/chunks/{skillSearchPanel-CuDDb1L-.js → skillSearchPanel-DFiSZaJ4.js} +2 -2
- package/dist/chunks/skills-DgeLr52a.js +1 -0
- package/dist/chunks/sleep-BbWr_FL1.js +1 -0
- package/dist/chunks/{src-9vmGsuSI.js → src-Cy5_qH26.js} +1 -1
- package/dist/chunks/{src-DL3w8VPk.js → src-WZ94ZKI3.js} +4 -4
- package/dist/chunks/{startupProfiler-DF0AjiDf.js → startupProfiler-DIM_Ihyp.js} +2 -2
- package/dist/chunks/startupProfiler-FpGsKWYk.js +1 -0
- package/dist/chunks/{state-BQ4BEGin.js → state-CXY-q5gr.js} +1 -1
- package/dist/chunks/state-DXt6rahM.js +1 -0
- package/dist/chunks/{staticRender-BVWx0IM1.js → staticRender-RHUIg5ln.js} +1 -1
- package/dist/chunks/status-CKLecQZV.js +1 -0
- package/dist/chunks/{statusNoticeHelpers-BfmIub5L.js → statusNoticeHelpers-DI45AH-c.js} +1 -1
- package/dist/chunks/stringUtils-D_xPrwGQ.js +4 -0
- package/dist/chunks/switcher-D2Z2ZNQ0.js +1 -0
- package/dist/chunks/switcher-DhZCaAun.js +1 -0
- package/dist/chunks/{tasks-B6gYXxOx.js → tasks-6suPhqsK.js} +1 -1
- package/dist/chunks/{templateJobs-BW6TaqEC.js → templateJobs-BKVEWCsb.js} +1 -1
- package/dist/chunks/{terminalSetup-C-g9Xvj3.js → terminalSetup-7PUR4hfo.js} +1 -1
- package/dist/chunks/{terminalSetup-BgIXFBpd.js → terminalSetup-Cqy5_PhJ.js} +4 -4
- package/dist/chunks/{theme-9AZceq_m.js → theme-B-HG2PUs.js} +1 -1
- package/dist/chunks/tipRegistry-BR_lSGRw.js +2 -0
- package/dist/chunks/{toolEventObserver-DTuJcREC.js → toolEventObserver-BY3QVnr6.js} +1 -1
- package/dist/chunks/toolPool-BcwIF8Q_.js +1 -0
- package/dist/chunks/{types-97nL3naE.js → types-CD25a50S.js} +1 -1
- package/dist/chunks/udsClient-CCxgLiZy.js +1 -0
- package/dist/chunks/urlHandler-BNsQKqba.js +1 -0
- package/dist/chunks/{use-select-navigation-BStVRvcX.js → use-select-navigation-CW5alA9r.js} +1 -1
- package/dist/chunks/{useDoublePress-C9xxQzh1.js → useDoublePress-DQBLKyzJ.js} +1 -1
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-DWRFdFoU.js → useExitOnCtrlCDWithKeybindings-BgJrnuDl.js} +1 -1
- package/dist/chunks/useMainLoopModel-BVgJo4hN.js +1 -0
- package/dist/chunks/useManagePlugins-CrWjzESW.js +1 -0
- package/dist/chunks/useMergedTools-r6GQq5mI.js +1 -0
- package/dist/chunks/{useSearchInput-B_mY9wBq.js → useSearchInput-BITV_Txn.js} +1 -1
- package/dist/chunks/{useSettingsErrors-CM7tThcp.js → useSettingsErrors-CO0fTNzn.js} +1 -1
- package/dist/chunks/{util-Bb2S6g9N.js → util-_zo3I1y8.js} +1 -1
- package/dist/chunks/validatePlugin-DFGdRhA-.js +1 -0
- package/dist/chunks/{vim-Dpnhgoz_.js → vim-qgMS88ss.js} +1 -1
- package/dist/chunks/worktree-CR_M6Qfy.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.cjs +16 -16
- package/dist/chunks/AgentsMdExternalIncludesDialog-Bnb1jWcg.js +0 -1
- package/dist/chunks/App-B8q8PV77.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-i0TkZgQp.js +0 -2
- package/dist/chunks/CustomSelect-BvTftqEH.js +0 -1
- package/dist/chunks/DiffDialog-v5r8cBKW.js +0 -6
- package/dist/chunks/Doctor-DKpBnbuI.js +0 -1
- package/dist/chunks/Doctor-uvO6NM5m.js +0 -3
- package/dist/chunks/KeybindingProviderSetup-DsJqfEt-.js +0 -1
- package/dist/chunks/MCPConnectionManager-DkZVxLEj.js +0 -1
- package/dist/chunks/MCPToolListView-De1W4jpj.js +0 -1
- package/dist/chunks/MessageSelector-DW_itlX-.js +0 -3
- package/dist/chunks/Messages-BFsCpACq.js +0 -10
- package/dist/chunks/PromptInputHelpMenu-Bm5KY0Ma.js +0 -1
- package/dist/chunks/QueryEngine-egz5mbaW.js +0 -1
- package/dist/chunks/REPL-D27CE4WN.js +0 -124
- package/dist/chunks/REPL-e8wAT1wN.js +0 -1
- package/dist/chunks/ResumeConversation-CWA27Lke.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-BRchtZ9Q.js +0 -1
- package/dist/chunks/Settings-axHLvYIy.js +0 -3
- package/dist/chunks/Spinner-VjwI7m_g.js +0 -1
- package/dist/chunks/ThemePicker-CtQYHmOr.js +0 -1
- package/dist/chunks/agents-DEnmg8Xo.js +0 -101
- package/dist/chunks/allErrors-C9kx6lnk.js +0 -1
- package/dist/chunks/appleTerminalBackup-CT7g8yOs.js +0 -1
- package/dist/chunks/backgroundHousekeeping-CvWfd99M.js +0 -1
- package/dist/chunks/caches-DWjwe-DN.js +0 -1
- package/dist/chunks/caches-VLs1tQkZ.js +0 -1
- package/dist/chunks/client-CO_6v4yl.js +0 -1
- package/dist/chunks/client-DO-O441l.js +0 -1
- package/dist/chunks/commands-Cn1P7Tms.js +0 -1
- package/dist/chunks/compact-DGUhdXcc.js +0 -2
- package/dist/chunks/config-C7GTF4iI.js +0 -1
- package/dist/chunks/config-CWPHVTic.js +0 -3
- package/dist/chunks/config-Cox0TM2Z.js +0 -1
- package/dist/chunks/context-noninteractive--OuiZUzL.js +0 -1
- package/dist/chunks/conversation--y8PD2Lk.js +0 -1
- package/dist/chunks/conversation-BIPJEOwO.js +0 -1
- package/dist/chunks/conversationRecovery-BBJzrA0g.js +0 -1
- package/dist/chunks/crossProjectResume-CwZb3cEU.js +0 -40
- package/dist/chunks/cwd-BZMp3CZ8.js +0 -1
- package/dist/chunks/doctor-4NiE46ZG.js +0 -1
- package/dist/chunks/envUtils-DfkgIdYf.js +0 -1
- package/dist/chunks/execFileNoThrow-BgRsj_SW.js +0 -34
- package/dist/chunks/exit-CrsQsjbx.js +0 -1
- package/dist/chunks/extractMemories-kogJzpit.js +0 -1
- package/dist/chunks/fast-CuNVwVTr.js +0 -1
- package/dist/chunks/fast-RlFnwGRV.js +0 -1
- package/dist/chunks/fetchModelList-uiCPVqbJ.js +0 -1
- package/dist/chunks/genericProcessUtils-BNlr-QxM.js +0 -23
- package/dist/chunks/grok-DnmklTrm.js +0 -1
- package/dist/chunks/history-kOw3CcLT.js +0 -1
- package/dist/chunks/hooks-BDY1jMbS.js +0 -1
- package/dist/chunks/install-DrMiHa2Q.js +0 -1
- package/dist/chunks/keybindings-BRRN_eap.js +0 -1
- package/dist/chunks/loadAgentsDir-CJAK4kif.js +0 -1
- package/dist/chunks/localSearch-DyaB2Rm-.js +0 -1
- package/dist/chunks/main-B_09WbaG.js +0 -345
- package/dist/chunks/managedEnv-BJGfe3m7.js +0 -1
- package/dist/chunks/managedEnv-CIWJsuty.js +0 -1
- package/dist/chunks/managedEnvConstants-BPwL2aWI.js +0 -1
- package/dist/chunks/mcp-1nBvcNxw.js +0 -1
- package/dist/chunks/mcp-7DXpXMdT.js +0 -2
- package/dist/chunks/mcp-kw99WVi2.js +0 -6
- package/dist/chunks/memory-CjWvzR_9.js +0 -1
- package/dist/chunks/model-DpZaKZMb.js +0 -1
- package/dist/chunks/nativeInstaller-SmPeEisk.js +0 -1
- package/dist/chunks/openai-D_j7-KW6.js +0 -2
- package/dist/chunks/parser-2usBI4G-.js +0 -1
- package/dist/chunks/pidLock-B-SW3Nhx.js +0 -3
- package/dist/chunks/plan-BJrWtXEh.js +0 -1
- package/dist/chunks/plugin-D97VJAxW.js +0 -17
- package/dist/chunks/pluginCliCommands-CUGPc853.js +0 -1
- package/dist/chunks/pluginOperations-rTrzu6Vg.js +0 -2
- package/dist/chunks/pluginStartupCheck-BRHnXlym.js +0 -1
- package/dist/chunks/poorMode-BaS0DBUO.js +0 -1
- package/dist/chunks/poorMode-DmvzFAz_.js +0 -1
- package/dist/chunks/print-Bi3xVdB3.js +0 -13
- package/dist/chunks/processBashCommand-BBtnCx-7.js +0 -1
- package/dist/chunks/processSlashCommand-jzF0GmLO.js +0 -5
- package/dist/chunks/prompt-CmijKW7G.js +0 -1
- package/dist/chunks/prompt-DYBx_D0H.js +0 -1
- package/dist/chunks/promptEditor-B6S_Rzcu.js +0 -4
- package/dist/chunks/refresh-CAGv8BJY.js +0 -1
- package/dist/chunks/reject-CEUkoI2G.js +0 -1
- package/dist/chunks/rename-DPFis9g_.js +0 -1
- package/dist/chunks/ripgrep-3omwGI-l.js +0 -1
- package/dist/chunks/ripgrep-CgQrN3XX.js +0 -5
- package/dist/chunks/sandbox-adapter-D15jjHJR.js +0 -1
- package/dist/chunks/searchExtraTools-BoFc__Eg.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-Rgsp4_Ex.js +0 -1
- package/dist/chunks/sessionObserver-PcaVCVkX.js +0 -1
- package/dist/chunks/sessionStorage-Dkf7FRgA.js +0 -1
- package/dist/chunks/sessionTracing-D7rekMdW.js +0 -11
- package/dist/chunks/settings-8fwIkMDV.js +0 -1
- package/dist/chunks/settings-CodSADx8.js +0 -24
- package/dist/chunks/setup-DBiIrXrh.js +0 -3
- package/dist/chunks/sinks-DH83d_kd.js +0 -1
- package/dist/chunks/skillChangeDetector-BrrZaFkT.js +0 -1
- package/dist/chunks/skills-BRtgqnLz.js +0 -1
- package/dist/chunks/startupProfiler-D1NRu2nj.js +0 -1
- package/dist/chunks/state-D3gvDiu8.js +0 -1
- package/dist/chunks/status-WXA16wIM.js +0 -1
- package/dist/chunks/stringUtils-Bu_lJH5c.js +0 -4
- package/dist/chunks/switcher-5gilU5_R.js +0 -1
- package/dist/chunks/switcher-DMfuKuw_.js +0 -1
- package/dist/chunks/tipRegistry-DtO1H_Wo.js +0 -2
- package/dist/chunks/toolPool-DHS8jWaL.js +0 -1
- package/dist/chunks/udsClient-CmYHFiBD.js +0 -1
- package/dist/chunks/urlHandler-DLz3FZm1.js +0 -1
- package/dist/chunks/useMainLoopModel-DSN5HjV1.js +0 -1
- package/dist/chunks/useManagePlugins-ntnOf5OU.js +0 -1
- package/dist/chunks/useMergedTools-C5Yns9Ij.js +0 -1
- package/dist/chunks/validatePlugin-D8WQ5z4W.js +0 -1
- package/dist/chunks/worktree-a5oOPSYl.js +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n,n as r,r as i,s as a,t as o}from"./isObject-C6qM3WEW.js";import{d as s,f as c,g as l,h as u,l as ee,n as d,t as f,u as te}from"./memoize-BK3gG5ob.js";import{i as p,l as m,o as ne}from"./envUtils-DfkgIdYf.js";import{n as re,t as h}from"./defineProperty-C-QyHrDq.js";import{i as ie,r as ae}from"./isSymbol-BO6cdPI7.js";import{B as g,D as oe,E as se,I as ce,J as _,K as le,N as v,P as y,Q as ue,U as b,W as x,X as S,Y as de,Z as C,a as fe,b as w,d as pe,g as me,h as he,j as ge,k as T,l as _e,o as ve,ot as ye,q as be,r as xe,s as E,x as Se,z as Ce}from"./types-97nL3naE.js";import{$n as we,Ar as Te,Dt as Ee,Fr as De,Gr as Oe,Hr as ke,Ir as Ae,Jn as je,Kr as Me,Lr as Ne,Mr as Pe,Nr as Fe,O as Ie,Or as Le,Pr as Re,Pt as ze,Qn as Be,Ur as Ve,Wn as He,Wr as Ue,Xn as We,Yn as Ge,Zn as Ke,ci as qe,er as Je,hi as Ye,jr as Xe,k as Ze,kr as Qe,li as $e,mi as et,ni as tt,or as nt,q as rt,qr as it,ri as at,rr as ot,sr as st,tr as ct,v as lt}from"./state-BQ4BEGin.js";import{n as ut,t as D}from"./cwd-BvNt_018.js";import{$ as dt,C as ft,I as pt,N as mt,R as ht,S as gt,b as _t,c as O,et as vt,f as k,g as yt,i as bt,u as A,x as xt,z as St}from"./debug-CRnGsZOV.js";import{i as Ct,n as wt}from"./execFileNoThrow-BgRsj_SW.js";import{S as Tt,o as Et,s as j,y as Dt}from"./log-DoSpAwRP.js";import{_ as Ot,b as kt,f as At,g as jt,l as Mt,m as Nt,n as Pt,o as Ft,p as It,v as Lt,x as Rt,y as zt}from"./stringUtils-Bu_lJH5c.js";import{i as Bt,n as M}from"./platform-DsMIk3eq.js";import{n as Vt}from"./analytics-COpjZpvd.js";import{n as Ht,r as Ut}from"./startupProfiler-DF0AjiDf.js";import{homedir as Wt,userInfo as Gt}from"os";import{basename as Kt,dirname as N,extname as qt,isAbsolute as Jt,join as P,normalize as Yt,posix as Xt,relative as Zt,resolve as F,sep as I}from"path";import{chmodSync as Qt,existsSync as $t,readFileSync as en,realpathSync as tn,statSync as nn,unwatchFile as rn,watchFile as an,writeFileSync as on}from"fs";import"crypto";import{appendFile as sn,mkdir as cn,open as ln,readFile as L,readdir as un,realpath as dn,stat as fn,writeFile as pn}from"fs/promises";import{promisify as mn}from"util";import{execFile as hn}from"child_process";import*as R from"path/win32";var gn,_n=e((()=>{c(),gn=function(){try{var e=s(Object,`defineProperty`);return e({},``,{}),e}catch{}}()}));function vn(e,t,n){t==`__proto__`&&gn?gn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yn=e((()=>{_n()}));function bn(e,t,n){var r=e[t];(!(xn.call(e,t)&&ee(r,n))||n===void 0&&!(t in e))&&vn(e,t,n)}var xn,Sn=e((()=>{yn(),te(),xn=Object.prototype.hasOwnProperty}));function Cn(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?vn(n,s,c):bn(n,s,c)}return n}var wn=e((()=>{Sn(),yn()}));function Tn(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var En=e((()=>{}));function Dn(e){if(!r(e))return Tn(e);var t=Fe(e),n=[];for(var i in e)i==`constructor`&&(t||!On.call(e,i))||n.push(i);return n}var On,kn=e((()=>{o(),Pe(),En(),On=Object.prototype.hasOwnProperty}));function An(e){return Qe(e)?Re(e,!0):Dn(e)}var jn=e((()=>{De(),kn(),Le()}));function Mn(e,t){if(t)return e.slice();var n=e.length,r=In?In(n):new e.constructor(n);return e.copy(r),r}var Nn,Pn,Fn,In,Ln=e((()=>{a(),Nn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Pn=Nn&&typeof module==`object`&&module&&!module.nodeType&&module,Fn=Pn&&Pn.exports===Nn?t.Buffer:void 0,In=Fn?Fn.allocUnsafe:void 0}));function Rn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var zn=e((()=>{})),Bn,Vn=e((()=>{Te(),Bn=Xe(Object.getPrototypeOf,Object)}));function Hn(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}var Un=e((()=>{$e()}));function Wn(e,t){var n=t?Hn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Gn=e((()=>{Un()})),Kn,qn,Jn=e((()=>{o(),Kn=Object.create,qn=function(){function e(){}return function(t){if(!r(t))return{};if(Kn)return Kn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function Yn(e){return typeof e.constructor==`function`&&!Fe(e)?qn(Bn(e)):{}}var Xn=e((()=>{Jn(),Vn(),Pe()}));function z(e,t,n){let r=Zn();if(!r)return;let i={timestamp:new Date().toISOString(),level:e,event:t,data:n??{}},a=A(),o=`${ft(i)}\n`;try{a.appendFileSync(r,o)}catch{try{a.mkdirSync(N(r)),a.appendFileSync(r,o)}catch{}}}function Zn(){return process.env.CLAUDE_CODE_DIAGNOSTICS_FILE}async function Qn(e,t,n){let r=Date.now();z(`info`,`${e}_started`);try{let i=await t(),a=n?n(i):{};return z(`info`,`${e}_completed`,{duration_ms:Date.now()-r,...a}),i}catch(t){throw z(`error`,`${e}_failed`,{duration_ms:Date.now()-r}),t}}var $n=e((()=>{k(),xt()}));async function er(e,t,n,r){try{return tr(await L(P(e,`config`),`utf-8`),t,n,r)}catch{return null}}function tr(e,t,n,r){let i=e.split(`
|
|
2
|
-
`),a=t.toLowerCase(),o=r.toLowerCase(),s=!1;for(let e of i){let t=e.trim();if(t.length===0||t[0]===`#`||t[0]===`;`)continue;if(t[0]===`[`){s=ar(t,a,n);continue}if(!s)continue;let r=nr(t);if(r&&r.key.toLowerCase()===o)return r.value}return null}function nr(e){let t=0;for(;t<e.length&&or(e[t]);)t++;if(t===0)return null;let n=e.slice(0,t);for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;if(t>=e.length||e[t]!==`=`)return null;for(t++;t<e.length&&(e[t]===` `||e[t]===` `);)t++;return{key:n,value:rr(e,t)}}function rr(e,t){let n=``,r=!1,i=t;for(;i<e.length;){let t=e[i];if(!r&&(t===`#`||t===`;`))break;if(t===`"`){r=!r,i++;continue}if(t===`\\`&&i+1<e.length){let t=e[i+1];if(r){switch(t){case`n`:n+=`
|
|
3
|
-
`;break;case`t`:n+=` `;break;case`b`:n+=`\b`;break;case`"`:n+=`"`;break;case`\\`:n+=`\\`;break;default:n+=t;break}i+=2;continue}if(t===`\\`){n+=`\\`,i+=2;continue}}n+=t,i++}return r||(n=ir(n)),n}function ir(e){let t=e.length;for(;t>0&&(e[t-1]===` `||e[t-1]===` `);)t--;return e.slice(0,t)}function ar(e,t,n){let r=1;for(;r<e.length&&e[r]!==`]`&&e[r]!==` `&&e[r]!==` `&&e[r]!==`"`;)r++;if(e.slice(1,r).toLowerCase()!==t)return!1;if(n===null)return r<e.length&&e[r]===`]`;for(;r<e.length&&(e[r]===` `||e[r]===` `);)r++;if(r>=e.length||e[r]!==`"`)return!1;r++;let i=``;for(;r<e.length&&e[r]!==`"`;){if(e[r]===`\\`&&r+1<e.length){let t=e[r+1];if(t===`\\`||t===`"`){i+=t,r+=2;continue}i+=t,r+=2;continue}i+=e[r],r++}return r>=e.length||e[r]!==`"`||(r++,r>=e.length||e[r]!==`]`)?!1:i===n}function or(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`-`}var sr=e((()=>{}));function cr(){H.clear()}async function B(e){let t=F(e??D()),n=H.get(t);if(n!==void 0)return n;let r=Fr(t);if(!r)return H.set(t,null),null;let i=P(r,`.git`);try{if((await fn(i)).isFile()){let e=(await L(i,`utf-8`)).trim();if(e.startsWith(`gitdir:`)){let n=F(r,e.slice(7).trim());return H.set(t,n),n}}return H.set(t,i),i}catch{return H.set(t,null),null}}function lr(e){return!(!e||e.startsWith(`-`)||e.startsWith(`/`)||e.includes(`..`)||e.split(`/`).some(e=>e===`.`||e===``)||!/^[a-zA-Z0-9/._+@-]+$/.test(e))}function ur(e){return/^[0-9a-f]{40}$/.test(e)||/^[0-9a-f]{64}$/.test(e)}async function dr(e){try{let t=(await L(P(e,`HEAD`),`utf-8`)).trim();if(t.startsWith(`ref:`)){let n=t.slice(4).trim();if(n.startsWith(`refs/heads/`)){let e=n.slice(11);return lr(e)?{type:`branch`,name:e}:null}if(!lr(n))return null;let r=await fr(e,n);return r?{type:`detached`,sha:r}:{type:`detached`,sha:``}}return ur(t)?{type:`detached`,sha:t}:null}catch{return null}}async function fr(e,t){let n=await pr(e,t);if(n)return n;let r=await V(e);return r&&r!==e?pr(r,t):null}async function pr(e,t){try{let n=(await L(P(e,t),`utf-8`)).trim();if(n.startsWith(`ref:`)){let t=n.slice(4).trim();return lr(t)?fr(e,t):null}return ur(n)?n:null}catch{}try{let n=await L(P(e,`packed-refs`),`utf-8`);for(let e of n.split(`
|
|
4
|
-
`)){if(e.startsWith(`#`)||e.startsWith(`^`))continue;let n=e.indexOf(` `);if(n!==-1&&e.slice(n+1)===t){let t=e.slice(0,n);return ur(t)?t:null}}}catch{}return null}async function V(e){try{return F(e,(await L(P(e,`commondir`),`utf-8`)).trim())}catch{return null}}async function mr(e,t,n){try{let r=(await L(P(e,t),`utf-8`)).trim();if(r.startsWith(`ref:`)){let e=r.slice(4).trim();if(e.startsWith(n)){let t=e.slice(n.length);return lr(t)?t:null}}}catch{}return null}async function hr(){let e=await B();if(!e)return`HEAD`;let t=await dr(e);return t&&t.type===`branch`?t.name:`HEAD`}async function gr(){let e=await B();if(!e)return null;let t=await er(e,`remote`,`origin`,`url`);if(t)return t;let n=await V(e);return n&&n!==e?er(n,`remote`,`origin`,`url`):null}async function _r(){let e=await B();if(!e)return`main`;let t=await V(e)??e,n=await mr(t,`refs/remotes/origin/HEAD`,`refs/remotes/origin/`);if(n)return n;for(let e of[`main`,`master`])if(await fr(t,`refs/remotes/origin/${e}`))return e;return`main`}function vr(){return Dr.get(`branch`,hr)}function yr(){return Dr.get(`remoteUrl`,gr)}function br(){return Dr.get(`defaultBranch`,_r)}async function xr(e){let t=await B(e);if(!t)return null;let n=await dr(t);return n?n.type===`branch`?fr(t,`refs/heads/${n.name}`):n.sha:null}async function Sr(e){let t;try{let n=(await L(P(e,`.git`),`utf-8`)).trim();if(!n.startsWith(`gitdir:`))return null;t=F(e,n.slice(7).trim())}catch{return null}let n=await dr(t);return n?n.type===`branch`?fr(t,`refs/heads/${n.name}`):n.sha:null}async function Cr(e){let t=await B(e);if(!t)return null;let n=await er(t,`remote`,`origin`,`url`);if(n)return n;let r=await V(t);return r&&r!==t?er(r,`remote`,`origin`,`url`):null}async function wr(){try{let e=await B();return e?(await un(P(await V(e)??e,`worktrees`))).length+1:0}catch{return 1}}var H,Tr,Er,Dr,Or=e((()=>{ze(),dt(),ut(),Gr(),sr(),re(),H=new Map,Tr=1e3,Er=class{constructor(){h(this,`gitDir`,null),h(this,`commonDir`,null),h(this,`initialized`,!1),h(this,`initPromise`,null),h(this,`watchedPaths`,[]),h(this,`branchRefPath`,null),h(this,`cache`,new Map)}async ensureStarted(){if(!this.initialized)return this.initPromise||(this.initPromise=this.start()),this.initPromise}async start(){this.gitDir=await B(),this.initialized=!0,this.gitDir&&(this.commonDir=await V(this.gitDir),this.watchPath(P(this.gitDir,`HEAD`),()=>{this.onHeadChanged()}),this.watchPath(P(this.commonDir??this.gitDir,`config`),()=>{this.invalidate()}),await this.watchCurrentBranchRef(),vt(async()=>{this.stopWatching()}))}watchPath(e,t){this.watchedPaths.push(e),an(e,{interval:Tr},t)}async watchCurrentBranchRef(){if(!this.gitDir)return;let e=await dr(this.gitDir),t=this.commonDir??this.gitDir,n=e?.type===`branch`?P(t,`refs`,`heads`,e.name):null;n!==this.branchRefPath&&(this.branchRefPath&&(rn(this.branchRefPath),this.watchedPaths=this.watchedPaths.filter(e=>e!==this.branchRefPath)),this.branchRefPath=n,n&&this.watchPath(n,()=>{this.invalidate()}))}async onHeadChanged(){this.invalidate(),await He(),await this.watchCurrentBranchRef()}invalidate(){for(let e of this.cache.values())e.dirty=!0}stopWatching(){for(let e of this.watchedPaths)rn(e);this.watchedPaths=[],this.branchRefPath=null}async get(e,t){await this.ensureStarted();let n=this.cache.get(e);if(n&&!n.dirty)return n.value;n&&(n.dirty=!1);let r=await t(),i=this.cache.get(e);return i&&!i.dirty&&(i.value=r),i||this.cache.set(e,{value:r,dirty:!1,compute:t}),r}reset(){this.stopWatching(),this.cache.clear(),this.initialized=!1,this.initPromise=null,this.gitDir=null,this.commonDir=null}},Dr=new Er}));function kr(){function e(e){let t=Pr(e);return t===Nr?null:t}return e.cache=Pr.cache,e}function Ar(){function e(e){let t=Fr(e);return t?Ir(t):null}return e.cache=Ir.cache,e}function jr(e){return B(e)}function Mr(){let e=A(),t=D(),n=P(t,`.git`);try{let t=e.statSync(n);if(t.isFile())return!1;if(t.isDirectory()){let t=P(n,`HEAD`);try{if(e.statSync(t).isFile())return!1}catch{}}}catch{}try{if(e.statSync(P(t,`HEAD`)).isFile())return!0}catch{}try{if(e.statSync(P(t,`objects`)).isDirectory())return!0}catch{}try{if(e.statSync(P(t,`refs`)).isDirectory())return!0}catch{}return!1}var Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr=e((()=>{f(),ut(),bt(),$n(),Ct(),k(),Or(),he(),Ot(),Nr=Symbol(`git-root-not-found`),Pr=me(e=>{let t=Date.now();z(`info`,`find_git_root_started`);let n=F(e),r=n.substring(0,n.indexOf(I)+1)||I,i=0;for(;n!==r;){try{let e=P(n,`.git`);i++;let r=nn(e);if(r.isDirectory()||r.isFile())return z(`info`,`find_git_root_completed`,{duration_ms:Date.now()-t,stat_count:i,found:!0}),n.normalize(`NFC`)}catch{}let e=N(n);if(e===n)break;n=e}try{let e=P(r,`.git`);i++;let n=nn(e);if(n.isDirectory()||n.isFile())return z(`info`,`find_git_root_completed`,{duration_ms:Date.now()-t,stat_count:i,found:!0}),r.normalize(`NFC`)}catch{}return z(`info`,`find_git_root_completed`,{duration_ms:Date.now()-t,stat_count:i,found:!1}),Nr},e=>e,50),Fr=kr(),Ir=me(e=>{try{let t=en(P(e,`.git`),`utf-8`).trim();if(!t.startsWith(`gitdir:`))return e;let n=F(e,t.slice(7).trim()),r=F(n,en(P(n,`commondir`),`utf-8`).trim());return F(N(n))!==P(r,`worktrees`)||tn(en(P(n,`gitdir`),`utf-8`).trim())!==P(tn(e),`.git`)?e:Kt(r)===`.git`?N(r).normalize(`NFC`):r.normalize(`NFC`)}catch{return e}},e=>e,50),Lr=Ar(),Rr=d(()=>zt(`git`)||`git`),zr=d(async()=>{let e=Date.now();z(`info`,`is_git_check_started`);let t=Fr(D())!==null;return z(`info`,`is_git_check_completed`,{duration_ms:Date.now()-e,is_git:t}),t}),Br=async e=>Fr(e)!==null,Vr=async()=>vr(),Hr=async()=>br(),Ur=async()=>yr(),Wr=async()=>wr()}));function Kr(){if(M()===`windows`){let e=Xr();process.env.SHELL=e,process.env.CLAUDE_CODE_GIT_BASH_PATH=e,O(`Using bash path: "${e}"`)}}function qr(e,t){let n=[`C:\\Program Files\\Git\\bin\\bash.exe`,`C:\\Program Files\\Git\\usr\\bin\\bash.exe`,`C:\\Program Files (x86)\\Git\\bin\\bash.exe`,`C:\\Program Files (x86)\\Git\\usr\\bin\\bash.exe`];t&&n.push(`${t}\\scoop\\apps\\git\\current\\usr\\bin\\bash.exe`);for(let t of n)if(e(t))return t;return null}function Jr(e,t){if(e===`git`){for(let e of[`C:\\Program Files\\Git\\cmd\\git.exe`,`C:\\Program Files (x86)\\Git\\cmd\\git.exe`])if(t.checkExists(e))return e}try{let n=t.execCommand(`where.exe ${e}`).split(/\r?\n/).map(e=>e.trim()).filter(Boolean),r=R.resolve(t.cwdFn()).toLowerCase();for(let e of n){let t=R.resolve(e).toLowerCase(),n=R.dirname(t).toLowerCase(),i=R.relative(r,n);if(i===``||!i.startsWith(`..`)&&!R.isAbsolute(i)){O(`Skipping potentially malicious executable in current directory: ${e}`);continue}return e}return null}catch{return null}}function Yr(e=Zr){let t=e.envOverride??process.env.CLAUDE_CODE_GIT_BASH_PATH;if(t)return e.checkExists(t)?t:null;let n=Jr(`bash`,e);if(n&&e.checkExists(n))return n;let r=Jr(`git`,e);if(r){let t=[R.join(r,`..`,`..`,`bin`,`bash.exe`),R.join(r,`..`,`..`,`usr`,`bin`,`bash.exe`),R.join(r,`..`,`bash.exe`)];for(let n of t)if(e.checkExists(n))return n}return qr(e.checkExists,e.userProfile)}function Xr(){let e=Qr();if(e!==null)return e;let t=process.env.CLAUDE_CODE_GIT_BASH_PATH;console.error(t?`Work Mate was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${t}"`:`Work Mate on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe`),process.exit(1)}var Zr,Qr,$r,ei,ti=e((()=>{f(),ut(),bt(),Rt(),he(),Bt(),Zr={checkExists:$t,execCommand:e=>kt(e,{stdio:`pipe`,encoding:`utf8`}).trim(),cwdFn:D,userProfile:process.env.USERPROFILE,envOverride:void 0},Qr=d(()=>Yr()),$r=me(e=>{if(e.startsWith(`\\\\`))return e.replace(/\\/g,`/`);let t=e.match(/^([A-Za-z]):[/\\]/);return t?`/${t[1].toLowerCase()}${e.slice(2).replace(/\\/g,`/`)}`:e.replace(/\\/g,`/`)},e=>e,500),ei=me(e=>{if(e.startsWith(`//`))return e.replace(/\//g,`\\`);let t=e.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(t)return`${t[1].toUpperCase()}:${(e.slice(`/cygdrive/${t[1]}`.length)||`\\`).replace(/\//g,`\\`)}`;let n=e.match(/^\/([A-Za-z])(\/|$)/);return n?`${n[1].toUpperCase()}:${(e.slice(2)||`\\`).replace(/\//g,`\\`)}`:e.replace(/\//g,`\\`)},e=>e,500)}));async function ni(e){try{let{stdout:t}=await ri(`git`,[`worktree`,`list`,`--porcelain`],{cwd:e,timeout:5e3});return t?t.split(`
|
|
5
|
-
`).filter(e=>e.startsWith(`worktree `)).map(e=>e.slice(9).normalize(`NFC`)):[]}catch{return[]}}var ri,ii=e((()=>{ri=mn(hn)}));function ai(e){return typeof e==`string`&&Oi.test(e)?e:null}function oi(e){if(!e.includes(`\\`))return e;try{return JSON.parse(`"${e}"`)}catch{return e}}function si(e,t){let n=[`"${t}":"`,`"${t}": "`];for(let t of n){let n=e.indexOf(t);if(n<0)continue;let r=n+t.length,i=r;for(;i<e.length;){if(e[i]===`\\`){i+=2;continue}if(e[i]===`"`)return oi(e.slice(r,i));i++}}}function ci(e,t){let n=[`"${t}":"`,`"${t}": "`],r;for(let t of n){let n=0;for(;;){let i=e.indexOf(t,n);if(i<0)break;let a=i+t.length,o=a;for(;o<e.length;){if(e[o]===`\\`){o+=2;continue}if(e[o]===`"`){r=oi(e.slice(a,o));break}o++}n=o+1}}return r}function li(e){let t=0,n=``;for(;t<e.length;){let r=e.indexOf(`
|
|
6
|
-
`,t),i=r>=0?e.slice(t,r):e.slice(t);if(t=r>=0?r+1:e.length,!(!i.includes(`"type":"user"`)&&!i.includes(`"type": "user"`))&&!i.includes(`"tool_result"`)&&!(i.includes(`"isMeta":true`)||i.includes(`"isMeta": true`))&&!(i.includes(`"isCompactSummary":true`)||i.includes(`"isCompactSummary": true`)))try{let e=JSON.parse(i);if(e.type!==`user`)continue;let t=e.message;if(!t)continue;let r=t.content,a=[];if(typeof r==`string`)a.push(r);else if(Array.isArray(r))for(let e of r)e.type===`text`&&typeof e.text==`string`&&a.push(e.text);for(let e of a){let t=e.replace(/\n/g,` `).trim();if(!t)continue;let r=Ai.exec(t);if(r){n||(n=r[1]);continue}let i=/<bash-input>([\s\S]*?)<\/bash-input>/.exec(t);if(i)return`! ${i[1].trim()}`;if(!ki.test(t))return t.length>200&&(t=`${t.slice(0,200).trim()}\u2026`),t}}catch{}}return n||``}async function ui(e,t,n){try{let r=await ln(e,`r`);try{let e=await r.read(n,0,W,0);if(e.bytesRead===0)return{head:``,tail:``};let i=n.toString(`utf8`,0,e.bytesRead),a=Math.max(0,t-W),o=i;if(a>0){let e=await r.read(n,0,W,a);o=n.toString(`utf8`,0,e.bytesRead)}return{head:i,tail:o}}finally{await r.close()}}catch{return{head:``,tail:``}}}async function di(e){try{let t=await ln(e,`r`);try{let e=await t.stat(),n=Buffer.allocUnsafe(W),r=await t.read(n,0,W,0);if(r.bytesRead===0)return null;let i=n.toString(`utf8`,0,r.bytesRead),a=Math.max(0,e.size-W),o=i;if(a>0){let e=await t.read(n,0,W,a);o=n.toString(`utf8`,0,e.bytesRead)}return{mtime:e.mtime.getTime(),size:e.size,head:i,tail:o}}finally{await t.close()}}catch{return null}}function fi(e){return Math.abs(Dt(e)).toString(36)}function pi(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);if(t.length<=200)return t;let n=typeof Bun<`u`?Bun.hash(e).toString(36):fi(e);return`${t.slice(0,200)}-${n}`}function mi(){return P(p(),`projects`)}function hi(e){return P(mi(),pi(e))}async function gi(e){try{return(await dn(e)).normalize(`NFC`)}catch{return e.normalize(`NFC`)}}async function _i(e){let t=hi(e);try{return await un(t),t}catch{let t=pi(e);if(t.length<=200)return;let n=t.slice(0,200),r=mi();try{let e=(await un(r,{withFileTypes:!0})).find(e=>e.isDirectory()&&e.name.startsWith(`${n}-`));return e?P(r,e.name):void 0}catch{return}}}async function vi(e,t){let n=`${e}.jsonl`;if(t){let e=await gi(t),r=await _i(e);if(r){let t=P(r,n);try{let n=await fn(t);if(n.size>0)return{filePath:t,projectPath:e,fileSize:n.size}}catch{}}let i;try{i=await ni(e)}catch{i=[]}for(let t of i){if(t===e)continue;let r=await _i(t);if(!r)continue;let i=P(r,n);try{let e=await fn(i);if(e.size>0)return{filePath:i,projectPath:t,fileSize:e.size}}catch{}}return}let r=mi(),i;try{i=await un(r)}catch{return}for(let e of i){let t=P(r,e,n);try{let e=await fn(t);if(e.size>0)return{filePath:t,projectPath:void 0,fileSize:e.size}}catch{}}}function yi(){return Ni??(Ni=Buffer.from(`"compact_boundary"`))}function bi(e){try{let t=JSON.parse(e);return t.type!==`system`||t.subtype!==`compact_boundary`?null:{hasPreservedSegment:!!t.compactMetadata?.preservedSegment}}catch{return null}}function U(e,t,n,r){let i=r-n;if(!(i<=0)){if(e.len+i>e.buf.length){let t=Buffer.allocUnsafe(Math.min(Math.max(e.buf.length*2,e.len+i),e.cap));e.buf.copy(t,0,0,e.len),e.buf=t}t.copy(e.buf,e.len,n,r),e.len+=i}}function xi(e,t,n,r){return r-n>=t.length&&e.compare(t,0,t.length,n,n+t.length)===0}function Si(e,t,n){if(e.straddleSnapCarryLen=0,e.straddleSnapTailEnd=0,e.carryLen===0)return 0;let r=e.carryBuf,i=t.indexOf(Ii);if(i===-1||i>=n)return 0;let a=i+1;if(xi(r,Pi,0,e.carryLen))e.straddleSnapCarryLen=e.carryLen,e.straddleSnapTailEnd=a,e.lastSnapSrc=null;else if(e.carryLen<Pi.length)return 0;else{if(xi(r,Fi,0,e.carryLen)){let n=bi(r.toString(`utf-8`,0,e.carryLen)+t.toString(`utf-8`,0,i));n?.hasPreservedSegment?e.hasPreservedSegment=!0:n&&(e.out.len=0,e.boundaryStartOffset=e.bufFileOff,e.hasPreservedSegment=!1,e.lastSnapSrc=null)}U(e.out,r,0,e.carryLen),U(e.out,t,0,a)}return e.bufFileOff+=e.carryLen+a,e.carryLen=0,a}function Ci(e,t,n){let r=t.indexOf(n),i=0,a=0,o=-1,s=-1,c=t.indexOf(Ii);for(;c!==-1;){let l=c+1;if(r!==-1&&r<a&&(r=t.indexOf(n,a)),xi(t,Pi,a,l))U(e.out,t,i,a),o=a,s=l,i=l;else if(r>=a&&r<Math.min(a+Ri,l)){let s=bi(t.toString(`utf-8`,a,c));s?.hasPreservedSegment?e.hasPreservedSegment=!0:s&&(e.out.len=0,e.boundaryStartOffset=e.bufFileOff+a,e.hasPreservedSegment=!1,e.lastSnapSrc=null,o=-1,e.straddleSnapCarryLen=0,i=a),r=t.indexOf(n,r+n.length)}a=l,c=t.indexOf(Ii,a)}return U(e.out,t,i,a),{lastSnapStart:o,lastSnapEnd:s,trailStart:a}}function wi(e,t,n,r,i){r===-1?e.straddleSnapCarryLen>0&&(e.lastSnapLen=e.straddleSnapCarryLen+e.straddleSnapTailEnd,(e.lastSnapBuf===void 0||e.lastSnapLen>e.lastSnapBuf.length)&&(e.lastSnapBuf=Buffer.allocUnsafe(e.lastSnapLen)),e.carryBuf.copy(e.lastSnapBuf,0,0,e.straddleSnapCarryLen),n.copy(e.lastSnapBuf,e.straddleSnapCarryLen,0,e.straddleSnapTailEnd),e.lastSnapSrc=e.lastSnapBuf):(e.lastSnapLen=i-r,(e.lastSnapBuf===void 0||e.lastSnapLen>e.lastSnapBuf.length)&&(e.lastSnapBuf=Buffer.allocUnsafe(e.lastSnapLen)),t.copy(e.lastSnapBuf,0,r,i),e.lastSnapSrc=e.lastSnapBuf)}function Ti(e,t,n){e.carryLen=t.length-n,e.carryLen>0&&((e.carryBuf===void 0||e.carryLen>e.carryBuf.length)&&(e.carryBuf=Buffer.allocUnsafe(e.carryLen)),t.copy(e.carryBuf,0,n,t.length))}function Ei(e){if(e.carryLen>0){let t=e.carryBuf;xi(t,Pi,0,e.carryLen)?(e.lastSnapSrc=t,e.lastSnapLen=e.carryLen):U(e.out,t,0,e.carryLen)}e.lastSnapSrc&&(e.out.len>0&&e.out.buf[e.out.len-1]!==Ii&&U(e.out,Li,0,1),U(e.out,e.lastSnapSrc,0,e.lastSnapLen))}async function Di(e,t){let n=yi(),r=ji,i={out:{buf:Buffer.allocUnsafe(Math.min(t,8*1024*1024)),len:0,cap:t+1},boundaryStartOffset:0,hasPreservedSegment:!1,lastSnapSrc:null,lastSnapLen:0,lastSnapBuf:void 0,bufFileOff:0,carryLen:0,carryBuf:void 0,straddleSnapCarryLen:0,straddleSnapTailEnd:0},a=Buffer.allocUnsafe(r),o=await ln(e,`r`);try{let e=0;for(;e<t;){let{bytesRead:s}=await o.read(a,0,Math.min(r,t-e),e);if(s===0)break;e+=s;let c=Si(i,a,s),l;if(i.carryLen>0){let e=i.carryLen+(s-c);l=Buffer.allocUnsafe(e),i.carryBuf.copy(l,0,0,i.carryLen),a.copy(l,i.carryLen,c,s)}else l=a.subarray(c,s);let u=Ci(i,l,n);wi(i,l,a,u.lastSnapStart,u.lastSnapEnd),Ti(i,l,u.trailStart),i.bufFileOff+=u.trailStart}Ei(i)}finally{await o.close()}return{boundaryStartOffset:i.boundaryStartOffset,postBoundaryBuf:i.out.buf.subarray(0,i.out.len),hasPreservedSegment:i.hasPreservedSegment}}var W,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi=e((()=>{ne(),ii(),Tt(),W=65536,Oi=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ki=/^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/,Ai=/<command-name>(.*?)<\/command-name>/,ji=1024*1024,Mi=5*1024*1024,Pi=Buffer.from(`{"type":"attribution-snapshot"`),Fi=Buffer.from(`{"type":"system"`),Ii=10,Li=Buffer.from([Ii]),Ri=256}));function Bi(e,t){let n=t??D()??A().cwd();if(typeof e!=`string`)throw TypeError(`Path must be a string, received ${typeof e}`);if(typeof n!=`string`)throw TypeError(`Base directory must be a string, received ${typeof n}`);if(e.includes(`\0`)||n.includes(`\0`))throw Error(`Path contains null bytes`);let r=e=>e.includes(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e),i=e.trim();if(!i)return M()===`windows`&&r(n)?Xt.normalize(n).normalize(`NFC`):Yt(n).normalize(`NFC`);if(i===`~`)return Wt().normalize(`NFC`);if(i.startsWith(`~/`))return P(Wt(),i.slice(2)).normalize(`NFC`);let a=i;if(M()===`windows`&&i.match(/^\/[a-z]\//i))try{a=ei(i)}catch{a=i}return Jt(a)?M()===`windows`&&r(a)?Xt.normalize(a).normalize(`NFC`):Yt(a).normalize(`NFC`):M()===`windows`&&r(n)&&!/^[A-Za-z]:/.test(a)&&!a.startsWith(`\\\\`)?Xt.resolve(n,a).normalize(`NFC`):F(n,a).normalize(`NFC`)}function Vi(e){let t=Zt(D(),e);return t.startsWith(`..`)?e:t}function Hi(e){let t=Bi(e);if(t.startsWith(`\\\\`)||t.startsWith(`//`))return N(t);try{if(A().statSync(t).isDirectory())return t}catch{}return N(t)}function Ui(e){return/(?:^|[\\/])\.\.(?:[\\/]|$)/.test(e)}function Wi(e){return Yt(e).replace(/\\/g,`/`)}var Gi=e((()=>{ut(),k(),Bt(),ti(),zi()}));function Ki(e,t,n){(n!==void 0&&!ee(e[t],n)||n===void 0&&!(t in e))&&vn(e,t,n)}var qi=e((()=>{yn(),te()}));function Ji(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Yi=e((()=>{})),Xi,Zi=e((()=>{Yi(),Xi=Ji()}));function Qi(e){return ie(e)&&Qe(e)}var $i=e((()=>{Le(),ae()}));function ea(e){if(!ie(e)||i(e)!=ta)return!1;var t=Bn(e);if(t===null)return!0;var n=aa.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ia.call(n)==oa}var ta,na,ra,ia,aa,oa,sa=e((()=>{n(),Vn(),ae(),ta=`[object Object]`,na=Function.prototype,ra=Object.prototype,ia=na.toString,aa=ra.hasOwnProperty,oa=ia.call(Object)}));function ca(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var la=e((()=>{}));function ua(e){return Cn(e,An(e))}var da=e((()=>{wn(),jn()}));function fa(e,t,n,i,a,o,s){var c=ca(e,n),u=ca(t,n),ee=s.get(u);if(ee){Ki(e,n,ee);return}var d=o?o(c,u,n+``,e,t,s):void 0,f=d===void 0;if(f){var te=at(u),p=!te&&Oe(u),m=!te&&!p&&Ne(u);d=u,te||p||m?at(c)?d=c:Qi(c)?d=Rn(c):p?(f=!1,d=Mn(u,!0)):m?(f=!1,d=Wn(u,!0)):d=[]:ea(u)||it(u)?(d=c,it(c)?d=ua(c):(!r(c)||l(c))&&(d=Yn(u))):f=!1}f&&(s.set(u,d),a(d,u,i,o,s),s.delete(u)),Ki(e,n,d)}var pa=e((()=>{qi(),Ln(),Gn(),zn(),Xn(),Me(),tt(),$i(),Ue(),u(),o(),sa(),Ae(),la(),da()}));function ma(e,t,n,i,a){e!==t&&Xi(t,function(o,s){if(a||(a=new et),r(o))fa(e,t,s,n,ma,i,a);else{var c=i?i(ca(e,s),o,s+``,e,t,a):void 0;c===void 0&&(c=o),Ki(e,s,c)}},An)}var ha=e((()=>{Ye(),qi(),Zi(),pa(),o(),jn(),la()}));function ga(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _a=e((()=>{}));function va(e,t,n){return t=ya(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ya(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ga(e,this,s)}}var ya,ba=e((()=>{_a(),ya=Math.max}));function xa(e){return function(){return e}}var Sa=e((()=>{})),Ca,wa=e((()=>{Sa(),_n(),st(),Ca=gn?function(e,t){return gn(e,`toString`,{configurable:!0,enumerable:!1,value:xa(t),writable:!0})}:nt}));function Ta(e){var t=0,n=0;return function(){var r=Oa(),i=Da-(r-n);if(n=r,i>0){if(++t>=Ea)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ea,Da,Oa,ka=e((()=>{Ea=800,Da=16,Oa=Date.now})),Aa,ja=e((()=>{wa(),ka(),Aa=Ta(Ca)}));function Ma(e,t){return Aa(va(e,t,nt),e+``)}var Na=e((()=>{st(),ba(),ja()}));function Pa(e,t,n){if(!r(n))return!1;var i=typeof t;return(i==`number`?Qe(n)&&Ve(t,n.length):i==`string`&&t in n)?ee(n[t],e):!1}var Fa=e((()=>{te(),Le(),ke(),o()}));function Ia(e){return Ma(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Pa(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var La=e((()=>{Na(),Fa()})),G,Ra=e((()=>{ha(),La(),G=Ia(function(e,t,n,r){ma(e,t,n,r)})}));function za(e,t){return e.flatMap((e,n)=>n?[t(n),e]:[e])}function Ba(e,t){let n=0;for(let r of e)n+=+!!t(r);return n}function Va(e){return[...new Set(e)]}var Ha=e((()=>{}));function Ua(e){let{buffer:t,bytesRead:n}=A().readSync(e,{length:4096});return n===0?`utf8`:n>=2&&t[0]===255&&t[1]===254?`utf16le`:(n>=3&&t[0]===239&&t[1]===187&&t[2],`utf8`)}function Wa(e){let t=0,n=0;for(let r=0;r<e.length;r++)e[r]===`
|
|
7
|
-
`&&(r>0&&e[r-1]===`\r`?t++:n++);return t>n?`CRLF`:`LF`}function Ga(e){let t=A(),{resolvedPath:n,isSymlink:r}=yt(t,e);r&&O(`Reading through symlink: ${e} -> ${n}`);let i=Ua(n),a=t.readFileSync(n,{encoding:i}),o=Wa(a.slice(0,4096));return{content:a.replaceAll(`\r
|
|
8
|
-
`,`
|
|
9
|
-
`),encoding:i,lineEndings:o}}function Ka(e){return Ga(e).content}var qa=e((()=>{bt(),k()})),Ja,Ya,Xa=e((()=>{xo(),k(),re(),Ja=class{constructor(){h(this,`cache`,new Map),h(this,`maxCacheSize`,1e3)}readFile(e){let t=A(),n;try{n=t.statSync(e)}catch(t){throw this.cache.delete(e),t}let r=e,i=this.cache.get(r);if(i&&i.mtime===n.mtimeMs)return{content:i.content,encoding:i.encoding};let a=no(e),o=t.readFileSync(e,{encoding:a}).replaceAll(`\r
|
|
10
|
-
`,`
|
|
11
|
-
`);if(this.cache.set(r,{content:o,encoding:a,mtime:n.mtimeMs}),this.cache.size>this.maxCacheSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}return{content:o,encoding:a}}clear(){this.cache.clear()}invalidate(e){this.cache.delete(e)}getStats(){return{size:this.cache.size,entries:Array.from(this.cache.keys())}}},Ya=new Ja}));async function Za(e){try{return await fn(e),!0}catch{return!1}}function Qa(e){try{return A().readFileSync(e,{encoding:`utf8`})}catch(e){return j(e),null}}function $a(e){let t=A();return Math.floor(t.statSync(e).mtimeMs)}async function eo(e){let t=await A().stat(e);return Math.floor(t.mtimeMs)}function to(e,t,n,r){let i=t;r===`CRLF`&&(i=t.replaceAll(`\r
|
|
12
|
-
`,`
|
|
13
|
-
`).split(`
|
|
14
|
-
`).join(`\r
|
|
15
|
-
`)),ho(e,i,{encoding:n})}function no(e){try{let{resolvedPath:t}=yt(A(),e);return Ua(t)}catch(e){return St(e)?O(`detectFileEncoding failed for expected reason: ${e.code}`,{level:`debug`}):j(e),`utf8`}}function ro(e,t=`utf8`){try{let n=A(),{resolvedPath:r}=yt(n,e),{buffer:i,bytesRead:a}=n.readSync(r,{length:4096});return Wa(i.toString(t,0,a))}catch(e){return j(e),`LF`}}function io(e){return e.includes(` `)?e.replace(/^\t+/gm,e=>` `.repeat(e.length)):e}function ao(e){let t=e?Bi(e):void 0;return{absolutePath:t,relativePath:t?Zt(D(),t):void 0}}function oo(e){let{relativePath:t}=ao(e);if(t&&!t.startsWith(`..`))return t;let n=Wt();return e.startsWith(n+I)?`~${e.slice(n.length)}`:e}function so(e){let t=A();try{let n=N(e),r=Kt(e,qt(e)),i=t.readdirSync(n).filter(t=>Kt(t.name,qt(t.name))===r&&P(n,t.name)!==e)[0];return i?i.name:void 0}catch(e){ht(e)||j(e);return}}async function co(e){let t=D(),n=N(t),r=e;try{r=P(await dn(N(e)),Kt(e))}catch{}let i=n===I?I:n+I;if(!r.startsWith(i)||r.startsWith(t+I)||r===t)return;let a=P(t,Zt(n,r));try{return await fn(a),a}catch{return}}function lo(){return!0}function uo({content:e,startLine:t}){if(!e)return``;let n=e.split(/\r?\n/);return lo()?n.map((e,n)=>`${n+t}\t${e}`).join(`
|
|
16
|
-
`):n.map((e,n)=>{let r=String(n+t);return r.length>=6?`${r}→${e}`:`${r.padStart(6,` `)}→${e}`}).join(`
|
|
17
|
-
`)}function fo(e){return e.match(/^\s*\d+[\u2192\t](.*)$/)?.[1]??e}function po(e){try{return A().isDirEmptySync(e)}catch(e){return ht(e)}}function mo(e){let{content:t}=Ya.readFile(e);return t}function ho(e,t,n={encoding:`utf-8`}){let r=A(),i=e;try{let t=r.readlinkSync(e);i=Jt(t)?t:F(N(e),t),O(`Writing through symlink: ${e} -> ${i}`)}catch{}let a=`${i}.tmp.${process.pid}.${Date.now()}`,o,s=!1;try{o=r.statSync(i).mode,s=!0,O(`Preserving file permissions: ${o.toString(8)}`)}catch(e){if(!ht(e))throw e;n.mode!==void 0&&(o=n.mode,O(`Setting permissions for new file: ${o.toString(8)}`))}try{O(`Writing to temp file: ${a}`);let e={encoding:n.encoding,flush:!0};!s&&n.mode!==void 0&&(e.mode=n.mode),on(a,t,e),O(`Temp file written successfully, size: ${t.length} bytes`),s&&o!==void 0&&(Qt(a,o),O(`Applied original permissions to temp file`)),O(`Renaming ${a} to ${i}`),r.renameSync(a,i),O(`File ${i} written atomically`)}catch(e){O(`Failed to write file atomically: ${e}`,{level:`error`});try{O(`Cleaning up temp file: ${a}`),r.unlinkSync(a)}catch(e){O(`Failed to clean up temp file: ${e}`)}O(`Falling back to non-atomic write for ${i}`);try{let e={encoding:n.encoding,flush:!0};!s&&n.mode!==void 0&&(e.mode=n.mode),on(i,t,e),O(`File ${i} written successfully with non-atomic fallback`)}catch(e){throw O(`Non-atomic write also failed: ${e}`),e}}}function go(e,t=yo){try{return A().statSync(e).size<=t}catch{return!1}}function _o(e){let t=Yt(e);return t=t.replace(/\\/g,`/`),M()===`windows`&&(t=t.toLowerCase()),t}function vo(e,t){return _o(e)===_o(t)}var yo,bo,xo=e((()=>{Vt(),ut(),bt(),pt(),qa(),Xa(),k(),Et(),Gi(),Bt(),yo=.25*1024*1024,bo=`Note: your current working directory is`}));async function So(e,t){let{code:n}=await wt(`git`,[`check-ignore`,e],{preserveOutputOnError:!1,cwd:t});return n===0}function Co(){return P(Wt(),`.config`,`git`,`ignore`)}async function wo(e,t=D()){try{if(!await Br(t))return;let n=`**/${e}`;if(await So(e.endsWith(`/`)?`${e}sample-file.txt`:e,t))return;let r=Co();await cn(N(r),{recursive:!0});try{if((await L(r,{encoding:`utf-8`})).includes(n))return;await sn(r,`\n${n}\n`)}catch(e){if(mt(e)===`ENOENT`)await pn(r,`${n}\n`,`utf-8`);else throw e}}catch(e){j(e)}}var To=e((()=>{ut(),pt(),Ct(),Gr(),Et()}));function Eo(e){switch(e){case`userSettings`:return`user`;case`projectSettings`:return`project`;case`localSettings`:return`project, gitignored`;case`flagSettings`:return`cli flag`;case`policySettings`:return`managed`}}function Do(e){switch(e){case`userSettings`:return`User`;case`projectSettings`:return`Project`;case`localSettings`:return`Local`;case`flagSettings`:return`Flag`;case`policySettings`:return`Managed`;case`plugin`:return`Plugin`;case`built-in`:return`Built-in`}}function Oo(e){switch(e){case`userSettings`:return`user settings`;case`projectSettings`:return`shared project settings`;case`localSettings`:return`project local settings`;case`flagSettings`:return`command line arguments`;case`policySettings`:return`enterprise managed settings`;case`cliArg`:return`CLI argument`;case`command`:return`command configuration`;case`session`:return`current session`}}function ko(e){switch(e){case`userSettings`:return`User settings`;case`projectSettings`:return`Shared project settings`;case`localSettings`:return`Project local settings`;case`flagSettings`:return`Command line arguments`;case`policySettings`:return`Enterprise managed settings`;case`cliArg`:return`CLI argument`;case`command`:return`Command configuration`;case`session`:return`Current session`}}function Ao(e){if(e===``)return[];let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t)switch(e){case`user`:n.push(`userSettings`);break;case`project`:n.push(`projectSettings`);break;case`local`:n.push(`localSettings`);break;default:throw Error(`Invalid setting source: ${e}. Valid options are: user, project, local`)}return n}function jo(){let e=lt(),t=new Set(e);return t.add(`policySettings`),t.add(`flagSettings`),Array.from(t)}function Mo(e){return jo().includes(e)}var No,Po,Fo,Io=e((()=>{ze(),No=[`userSettings`,`projectSettings`,`localSettings`,`flagSettings`,`policySettings`],Po=[`localSettings`,`projectSettings`,`userSettings`],Fo=`https://json.schemastore.org/claude-code-settings.json`}));function Lo(e){Bo.set(e,Date.now())}function Ro(e,t){let n=Bo.get(e);return n!==void 0&&Date.now()-n<t?(Bo.delete(e),!0):!1}function zo(){Bo.clear()}var Bo,Vo=e((()=>{Bo=new Map})),Ho,Uo,Wo=e((()=>{f(),Bt(),Ho=d(()=>{switch(M()){case`macos`:return`/Library/Application Support/ClaudeCode`;case`windows`:return`C:\\Program Files\\ClaudeCode`;default:return`/etc/workmate`}}),Uo=d(()=>P(Ho(),`managed-settings.d`))})),Go,Ko,qo,Jo=e((()=>{w(),ve(),Go=E(()=>x({allowedDomains:v(S()).optional(),allowManagedDomainsOnly:y().optional().describe(`When true (and set in managed settings), only allowedDomains and WebFetch(domain:...) allow rules from managed settings are respected. User, project, local, and flag settings domains are ignored. Denied domains are still respected from all sources.`),allowUnixSockets:v(S()).optional().describe(`macOS only: Unix socket paths to allow. Ignored on Linux (seccomp cannot filter by path).`),allowAllUnixSockets:y().optional().describe(`If true, allow all Unix sockets (disables blocking on both platforms).`),allowLocalBinding:y().optional(),httpProxyPort:b().optional(),socksProxyPort:b().optional()}).optional()),Ko=E(()=>x({allowWrite:v(S()).optional().describe(`Additional paths to allow writing within the sandbox. Merged with paths from Edit(...) allow permission rules.`),denyWrite:v(S()).optional().describe(`Additional paths to deny writing within the sandbox. Merged with paths from Edit(...) deny permission rules.`),denyRead:v(S()).optional().describe(`Additional paths to deny reading within the sandbox. Merged with paths from Read(...) deny permission rules.`),allowRead:v(S()).optional().describe(`Paths to re-allow reading within denyRead regions. Takes precedence over denyRead for matching paths.`),allowManagedReadPathsOnly:y().optional().describe(`When true (set in managed settings), only allowRead paths from policySettings are used.`)}).optional()),qo=E(()=>x({enabled:y().optional(),failIfUnavailable:y().optional().describe(`Exit with an error at startup if sandbox.enabled is true but the sandbox cannot start (missing dependencies, unsupported platform, or platform not in enabledPlatforms). When false (default), a warning is shown and commands run unsandboxed. Intended for managed-settings deployments that require sandboxing as a hard gate.`),autoAllowBashIfSandboxed:y().optional(),allowUnsandboxedCommands:y().optional().describe(`Allow commands to run outside the sandbox via the dangerouslyDisableSandbox parameter. When false, the dangerouslyDisableSandbox parameter is completely ignored and all commands must run sandboxed. Default: true.`),network:Go(),filesystem:Ko(),ignoreViolations:_(S(),v(S())).optional(),enableWeakerNestedSandbox:y().optional(),enableWeakerNetworkIsolation:y().optional().describe(`macOS only: Allow access to com.apple.trustd.agent in the sandbox. Needed for Go-based CLI tools (gh, gcloud, terraform, etc.) to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. **Reduces security** — opens a potential data exfiltration vector through the trustd service. Default: false`),excludedCommands:v(S()).optional(),ripgrep:x({command:S(),args:v(S()).optional()}).optional().describe(`Custom ripgrep configuration for bundled ripgrep support`)}).passthrough())}));function Yo(){let e=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;return e?{BASE_API_URL:e.replace(/\/$/,``),OAUTH_FILE_SUFFIX:`-custom-oauth`}:Zo}function Xo(){return process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL?`-custom-oauth`:``}var Zo,Qo=e((()=>{Zo={BASE_API_URL:`https://api.anthropic.com`,OAUTH_FILE_SUFFIX:``}}));async function $o(e){try{return!!await Lt(e)}catch{return!1}}function es(){return process.env.__CFBundleIdentifier===`com.conductor.app`}function ts(){if(process.env.CURSOR_TRACE_ID||process.env.VSCODE_GIT_ASKPASS_MAIN?.includes(`cursor`))return`cursor`;if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes(`windsurf`))return`windsurf`;if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes(`antigravity`))return`antigravity`;let e=process.env.__CFBundleIdentifier?.toLowerCase();if(e?.includes(`vscodium`))return`codium`;if(e?.includes(`windsurf`))return`windsurf`;if(e?.includes(`com.google.android.studio`))return`androidstudio`;if(e){for(let t of us)if(e.includes(t))return t}if(process.env.VisualStudioVersion)return`visualstudio`;if(process.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`)return process.platform,`pycharm`;if(process.env.TERM===`xterm-ghostty`)return`ghostty`;if(process.env.TERM?.includes(`kitty`))return`kitty`;if(process.env.TERM_PROGRAM)return process.env.TERM_PROGRAM;if(process.env.TMUX)return`tmux`;if(process.env.STY)return`screen`;if(process.env.KONSOLE_VERSION)return`konsole`;if(process.env.GNOME_TERMINAL_SERVICE)return`gnome-terminal`;if(process.env.XTERM_VERSION)return`xterm`;if(process.env.VTE_VERSION)return`vte-based`;if(process.env.TERMINATOR_UUID)return`terminator`;if(process.env.KITTY_WINDOW_ID)return`kitty`;if(process.env.ALACRITTY_LOG)return`alacritty`;if(process.env.TILIX_ID)return`tilix`;if(process.env.WT_SESSION)return`windows-terminal`;if(process.env.SESSIONNAME&&process.env.TERM===`cygwin`)return`cygwin`;if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return`conemu`;if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(ns())return`ssh-session`;if(process.env.TERM){let e=process.env.TERM;return e.includes(`alacritty`)?`alacritty`:e.includes(`rxvt`)?`rxvt`:e.includes(`termite`)?`termite`:process.env.TERM}return process.stdout.isTTY?null:`non-interactive`}function ns(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}function rs(){let e=process.env.CLAUDE_CODE_HOST_PLATFORM;return e===`win32`||e===`darwin`||e===`linux`?e:K.platform}var is,as,os,ss,cs,ls,us,ds,K,fs=e((()=>{f(),Qo(),Nt(),ne(),It(),k(),Ot(),is=d(()=>{if(A().existsSync(P(p(),`.config.json`)))return P(p(),`.config.json`);let e=`.workmate${Xo()}.json`;return P(process.env.WORKMATE_CONFIG_DIR||Wt(),e)}),as=d(async()=>{try{let{default:e}=await import(`./axios-BHBm_hhU.js`);return await e.head(`http://1.1.1.1`,{signal:AbortSignal.timeout(1e3)}),!0}catch{return!1}}),os=d(async()=>{let e=[];return await $o(`npm`)&&e.push(`npm`),await $o(`yarn`)&&e.push(`yarn`),await $o(`pnpm`)&&e.push(`pnpm`),e}),ss=d(async()=>{let e=[];return await $o(`bun`)&&e.push(`bun`),await $o(`deno`)&&e.push(`deno`),await $o(`node`)&&e.push(`node`),e}),cs=d(()=>{try{return A().existsSync(`/proc/sys/fs/binfmt_misc/WSLInterop`)}catch{return!1}}),ls=d(()=>{try{if(!cs())return!1;let{cmd:e}=At(`npm`,[]);return e.startsWith(`/mnt/c/`)}catch{return!1}}),us=[`pycharm`,`intellij`,`webstorm`,`phpstorm`,`rubymine`,`clion`,`goland`,`rider`,`datagrip`,`appcode`,`dataspell`,`aqua`,`gateway`,`fleet`,`jetbrains`,`androidstudio`],ds=d(()=>{if(m(process.env.CODESPACES))return`codespaces`;if(process.env.GITPOD_WORKSPACE_ID)return`gitpod`;if(process.env.REPL_ID||process.env.REPL_SLUG)return`replit`;if(process.env.PROJECT_DOMAIN)return`glitch`;if(m(process.env.VERCEL))return`vercel`;if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return`railway`;if(m(process.env.RENDER))return`render`;if(m(process.env.NETLIFY))return`netlify`;if(process.env.DYNO)return`heroku`;if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return`fly.io`;if(m(process.env.CF_PAGES))return`cloudflare-pages`;if(process.env.DENO_DEPLOYMENT_ID)return`deno-deploy`;if(process.env.AWS_LAMBDA_FUNCTION_NAME)return`aws-lambda`;if(process.env.AWS_EXECUTION_ENV===`AWS_ECS_FARGATE`)return`aws-fargate`;if(process.env.AWS_EXECUTION_ENV===`AWS_ECS_EC2`)return`aws-ecs`;try{if(A().readFileSync(`/sys/hypervisor/uuid`,{encoding:`utf8`}).trim().toLowerCase().startsWith(`ec2`))return`aws-ec2`}catch{}if(process.env.K_SERVICE)return`gcp-cloud-run`;if(process.env.GOOGLE_CLOUD_PROJECT)return`gcp`;if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return`azure-app-service`;if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return`azure-functions`;if(process.env.APP_URL?.includes(`ondigitalocean.app`))return`digitalocean-app-platform`;if(process.env.SPACE_CREATOR_USER_ID)return`huggingface-spaces`;if(m(process.env.GITHUB_ACTIONS))return`github-actions`;if(m(process.env.GITLAB_CI))return`gitlab-ci`;if(process.env.CIRCLECI)return`circleci`;if(process.env.BUILDKITE)return`buildkite`;if(m(process.env.CI))return`ci`;if(process.env.KUBERNETES_SERVICE_HOST)return`kubernetes`;try{if(A().existsSync(`/.dockerenv`))return`docker`}catch{}return K.platform===`darwin`?`unknown-darwin`:K.platform===`linux`?`unknown-linux`:K.platform===`win32`?`unknown-win32`:`unknown`}),K={hasInternetAccess:as,isCI:m(process.env.CI),platform:[`win32`,`darwin`].includes(process.platform)?process.platform:`linux`,arch:process.arch,nodeVersion:process.version,terminal:ts(),isSSH:ns,getPackageManagers:os,getRuntimes:ss,isRunningWithBun:d(jt),isWslEnvironment:cs,isNpmFromWindowsPath:ls,isConductor:es,detectDeploymentEnvironment:ds}})),ps,ms=e((()=>{fs(),ps=K.platform===`darwin`?`⏺`:`●`})),hs,gs,_s,vs=e((()=>{hs=[`acceptEdits`,`bypassPermissions`,`default`,`dontAsk`,`plan`],gs=[...hs,`auto`],_s=gs}));function ys(e){return!0}function bs(e){return ks[e]??ks.default}function xs(e){return bs(e).external}function Ss(e){return _s.includes(e)?e:`default`}function Cs(e){return bs(e).title}function ws(e){return e==="default"||e===void 0}function Ts(e){return bs(e).shortTitle}function Es(e){return bs(e).symbol}function Ds(e){return bs(e).color}var Os,ks,As=e((()=>{w(),ms(),vs(),ve(),E(()=>Se.enum(_s)),Os=E(()=>Se.enum(hs)),ks={default:{title:`Default`,shortTitle:`Default`,symbol:``,color:`text`,external:`default`},plan:{title:`Plan Mode`,shortTitle:`Plan`,symbol:`⏸`,color:`planMode`,external:`plan`},acceptEdits:{title:`Accept edits`,shortTitle:`Accept`,symbol:`⏵⏵`,color:`autoAccept`,external:`acceptEdits`},bypassPermissions:{title:`Bypass`,shortTitle:`Bypass`,symbol:`⏵⏵`,color:`error`,external:`bypassPermissions`},dontAsk:{title:`Don't Ask`,shortTitle:`DontAsk`,symbol:`⏵⏵`,color:`error`,external:`dontAsk`},auto:{title:`Auto`,shortTitle:`Auto`,symbol:`⏵⏵`,color:`warning`,external:`default`}}})),js=e((()=>{})),Ms,Ns=e((()=>{js(),Ms=`PreToolUse.PostToolUse.PostToolUseFailure.Notification.UserPromptSubmit.SessionStart.SessionEnd.Stop.StopFailure.SubagentStart.SubagentStop.PreCompact.PostCompact.PermissionRequest.PermissionDenied.Setup.TeammateIdle.TaskCreated.TaskCompleted.Elicitation.ElicitationResult.ConfigChange.WorktreeCreate.WorktreeRemove.InstructionsLoaded.CwdChanged.FileChanged`.split(`.`)})),Ps=e((()=>{})),Fs=e((()=>{})),Is=e((()=>{Ns(),Ps(),Fs()})),Ls,Rs,zs=e((()=>{Ls=[`bash`,`powershell`],Rs=`bash`}));function Bs(){return{BashCommandHookSchema:x({type:g(`command`).describe(`Shell command hook type`),command:S().describe(`Shell command to execute`),if:Vs(),shell:T(Ls).optional().describe(`Shell interpreter. 'bash' uses your $SHELL (bash/zsh/sh); 'powershell' uses pwsh. Defaults to bash.`),timeout:b().positive().optional().describe(`Timeout in seconds for this specific command`),statusMessage:S().optional().describe(`Custom status message to display in spinner while hook runs`),once:y().optional().describe(`If true, hook runs once and is removed after execution`),async:y().optional().describe(`If true, hook runs in background without blocking`),asyncRewake:y().optional().describe(`If true, hook runs in background and wakes the model on exit code 2 (blocking error). Implies async.`)}),PromptHookSchema:x({type:g(`prompt`).describe(`LLM prompt hook type`),prompt:S().describe(`Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON.`),if:Vs(),timeout:b().positive().optional().describe(`Timeout in seconds for this specific prompt evaluation`),model:S().optional().describe(`Model to use for this prompt hook (e.g., "claude-sonnet-4-6"). If not specified, uses the default small fast model.`),statusMessage:S().optional().describe(`Custom status message to display in spinner while hook runs`),once:y().optional().describe(`If true, hook runs once and is removed after execution`)}),HttpHookSchema:x({type:g(`http`).describe(`HTTP hook type`),url:S().url().describe(`URL to POST the hook input JSON to`),if:Vs(),timeout:b().positive().optional().describe(`Timeout in seconds for this specific request`),headers:_(S(),S()).optional().describe('Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., "Authorization": "Bearer $MY_TOKEN"). Only variables listed in allowedEnvVars will be interpolated.'),allowedEnvVars:v(S()).optional().describe(`Explicit list of environment variable names that may be interpolated in header values. Only variables listed here will be resolved; all other $VAR references are left as empty strings. Required for env var interpolation to work.`),statusMessage:S().optional().describe(`Custom status message to display in spinner while hook runs`),once:y().optional().describe(`If true, hook runs once and is removed after execution`)}),AgentHookSchema:x({type:g(`agent`).describe(`Agentic verifier hook type`),prompt:S().describe(`Prompt describing what to verify (e.g. "Verify that unit tests ran and passed."). Use $ARGUMENTS placeholder for hook input JSON.`),if:Vs(),timeout:b().positive().optional().describe(`Timeout in seconds for agent execution (default 60)`),model:S().optional().describe(`Model to use for this agent hook (e.g., "claude-sonnet-4-6"). If not specified, uses Haiku.`),statusMessage:S().optional().describe(`Custom status message to display in spinner while hook runs`),once:y().optional().describe(`If true, hook runs once and is removed after execution`)})}}var Vs,Hs,Us,Ws,Gs=e((()=>{Is(),w(),ve(),zs(),Vs=E(()=>S().optional().describe(`Permission rule syntax to filter when this hook runs (e.g., "Bash(git *)"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.`)),Hs=E(()=>{let{BashCommandHookSchema:e,PromptHookSchema:t,AgentHookSchema:n,HttpHookSchema:r}=Bs();return ce(`type`,[e,t,n,r])}),Us=E(()=>x({matcher:S().optional().describe(`String pattern to match (e.g. tool names like "Write")`),hooks:v(Hs()).describe(`List of hooks to execute when the matcher matches`)})),Ws=E(()=>le(T(Ms),v(Us())))}));function Ks(e,t){let n=e.toLowerCase();return t.autoUpdate??(Zs.has(n)&&!Qs.has(n))}function qs(e){return Zs.has(e.toLowerCase())?!1:ec.test(e)?!0:$s.test(e)}function Js(e,t){let n=e.toLowerCase();if(!Zs.has(n))return null;if(t.source===`github`)return(t.repo||``).toLowerCase().startsWith(`${tc}/`)?null:`The name '${e}' is reserved for official marketplaces. Only repositories from 'github.com/${tc}/' can use this name.`;if(t.source===`git`&&t.url){let n=t.url.toLowerCase(),r=n.includes(`github.com/anthropics/`),i=n.includes(`git@github.com:anthropics/`);return r||i?null:`The name '${e}' is reserved for official marketplaces. Only repositories from 'github.com/${tc}/' can use this name.`}return`The name '${e}' is reserved for official marketplaces and can only be used with GitHub sources from the '${tc}' organization.`}function Ys(e){return typeof e==`string`&&e.startsWith(`./`)}function Xs(e){return e.source===`file`||e.source===`directory`}var Zs,Qs,$s,ec,tc,q,J,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc=e((()=>{w(),Gs(),fe(),ve(),Zs=new Set([`claude-code-marketplace`,`claude-code-plugins`,`claude-plugins-official`,`anthropic-marketplace`,`anthropic-plugins`,`agent-skills`,`life-sciences`,`knowledge-work-plugins`]),Qs=new Set([`knowledge-work-plugins`]),$s=/(?:official[^a-z0-9]*(anthropic|claude)|(?:anthropic|claude)[^a-z0-9]*official|^(?:anthropic|claude)[^a-z0-9]*(marketplace|plugins|official))/i,ec=/[^\u0020-\u007E]/,tc=`anthropics`,q=E(()=>S().startsWith(`./`)),J=E(()=>q().endsWith(`.json`)),nc=E(()=>C([q().refine(e=>e.endsWith(`.mcpb`)||e.endsWith(`.dxt`),{message:`MCPB file path must end with .mcpb or .dxt`}).describe(`Path to MCPB file relative to plugin root`),S().url().refine(e=>e.endsWith(`.mcpb`)||e.endsWith(`.dxt`),{message:`MCPB URL must end with .mcpb or .dxt`}).describe(`URL to MCPB file`)])),rc=E(()=>q().endsWith(`.md`)),ic=E(()=>C([rc(),q()])),ac=E(()=>S().min(1,`Marketplace must have a name`).refine(e=>!e.includes(` `),{message:`Marketplace name cannot contain spaces. Use kebab-case (e.g., "my-marketplace")`}).refine(e=>!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`..`)&&e!==`.`,{message:`Marketplace name cannot contain path separators (/ or \\), ".." sequences, or be "."`}).refine(e=>!qs(e),{message:`Marketplace name impersonates an official marketplace`}).refine(e=>e.toLowerCase()!==`inline`,{message:`Marketplace name "inline" is reserved for --plugin-dir session plugins`}).refine(e=>e.toLowerCase()!==`builtin`,{message:`Marketplace name "builtin" is reserved for built-in plugins`})),oc=E(()=>x({name:S().min(1,`Author name cannot be empty`).describe(`Display name of the plugin author or organization`),email:S().optional().describe(`Contact email for support or feedback`),url:S().optional().describe(`Website, GitHub profile, or organization URL`)})),sc=E(()=>x({name:S().min(1,`Plugin name cannot be empty`).refine(e=>!e.includes(` `),{message:`Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin")`}).describe(`Unique identifier for the plugin, used for namespacing (prefer kebab-case)`),version:S().optional().describe(`Semantic version (e.g., 1.2.3) following semver.org specification`),description:S().optional().describe(`Brief, user-facing explanation of what the plugin provides`),author:oc().optional().describe(`Information about the plugin creator or maintainer`),homepage:S().url().optional().describe(`Plugin homepage or documentation URL`),repository:S().optional().describe(`Source code repository URL`),license:S().optional().describe(`SPDX license identifier (e.g., MIT, Apache-2.0)`),keywords:v(S()).optional().describe(`Tags for plugin discovery and categorization`),dependencies:v(Pc()).optional().describe(`Plugins that must be enabled for this plugin to function. Bare names (no "@marketplace") are resolved against the declaring plugin's own marketplace.`)})),cc=E(()=>x({description:S().optional().describe(`Brief, user-facing explanation of what these hooks provide`),hooks:Ce(()=>Ws()).describe(`The hooks provided by the plugin, in the same format as the one used for settings`)})),lc=E(()=>x({hooks:C([J().describe(`Path to file with additional hooks (in addition to those in hooks/hooks.json, if it exists), relative to the plugin root`),Ce(()=>Ws()).describe(`Additional hooks (in addition to those in hooks/hooks.json, if it exists)`),v(C([J().describe(`Path to file with additional hooks (in addition to those in hooks/hooks.json, if it exists), relative to the plugin root`),Ce(()=>Ws()).describe(`Additional hooks (in addition to those in hooks/hooks.json, if it exists)`)]))])})),uc=E(()=>x({source:ic().optional().describe(`Path to command markdown file, relative to plugin root`),content:S().optional().describe(`Inline markdown content for the command`),description:S().optional().describe(`Command description override`),argumentHint:S().optional().describe(`Hint for command arguments (e.g., "[file]")`),model:S().optional().describe(`Default model for this command`),allowedTools:v(S()).optional().describe(`Tools allowed when command runs`)}).refine(e=>e.source&&!e.content||!e.source&&e.content,{message:`Command must have either "source" (file path) or "content" (inline markdown), but not both`})),dc=E(()=>x({commands:C([ic().describe(`Path to additional command file or skill directory (in addition to those in the commands/ directory, if it exists), relative to the plugin root`),v(ic().describe(`Path to additional command file or skill directory (in addition to those in the commands/ directory, if it exists), relative to the plugin root`)).describe(`List of paths to additional command files or skill directories`),_(S(),uc()).describe(`Object mapping of command names to their metadata and source files. Command name becomes the slash command name (e.g., "about" → "/plugin:about")`)])})),fc=E(()=>x({agents:C([rc().describe(`Path to additional agent file (in addition to those in the agents/ directory, if it exists), relative to the plugin root`),v(rc().describe(`Path to additional agent file (in addition to those in the agents/ directory, if it exists), relative to the plugin root`)).describe(`List of paths to additional agent files`)])})),pc=E(()=>x({skills:C([q().describe(`Path to additional skill directory (in addition to those in the skills/ directory, if it exists), relative to the plugin root`),v(q().describe(`Path to additional skill directory (in addition to those in the skills/ directory, if it exists), relative to the plugin root`)).describe(`List of paths to additional skill directories`)])})),mc=E(()=>x({outputStyles:C([q().describe(`Path to additional output styles directory or file (in addition to those in the output-styles/ directory, if it exists), relative to the plugin root`),v(q().describe(`Path to additional output styles directory or file (in addition to those in the output-styles/ directory, if it exists), relative to the plugin root`)).describe(`List of paths to additional output styles directories or files`)])})),hc=E(()=>S().min(1)),gc=E(()=>S().min(2).refine(e=>e.startsWith(`.`),{message:`File extensions must start with dot (e.g., ".ts", not "ts")`})),_c=E(()=>x({mcpServers:C([J().describe(`MCP servers to include in the plugin (in addition to those in the .mcp.json file, if it exists)`),nc().describe(`Path or URL to MCPB file containing MCP server configuration`),_(S(),xe()).describe(`MCP server configurations keyed by server name`),v(C([J().describe(`Path to MCP servers configuration file`),nc().describe(`Path or URL to MCPB file`),_(S(),xe()).describe(`Inline MCP server configurations`)])).describe(`Array of MCP server configurations (paths, MCPB files, or inline definitions)`)])})),vc=E(()=>x({type:T([`string`,`number`,`boolean`,`directory`,`file`]).describe(`Type of the configuration value`),title:S().describe(`Human-readable label shown in the config dialog`),description:S().describe(`Help text shown beneath the field in the config dialog`),required:y().optional().describe(`If true, validation fails when this field is empty`),default:C([S(),b(),y(),v(S())]).optional().describe(`Default value used when the user provides nothing`),multiple:y().optional().describe(`For string type: allow an array of strings`),sensitive:y().optional().describe(`If true, masks dialog input and stores value in secure storage (keychain/credentials file) instead of settings.json`),min:b().optional().describe(`Minimum value (number type only)`),max:b().optional().describe(`Maximum value (number type only)`)}).strict()),yc=E(()=>x({userConfig:_(S().regex(/^[A-Za-z_]\w*$/,`Option keys must be valid identifiers (letters, digits, underscore; no leading digit) — they become CLAUDE_PLUGIN_OPTION_<KEY> env vars in hooks`),vc()).optional().describe("User-configurable values this plugin needs. Prompted at enable time. Non-sensitive values saved to settings.json; sensitive values to secure storage (macOS keychain or .credentials.json). Available as ${user_config.KEY} in MCP/LSP server config, hook commands, and (non-sensitive only) skill/agent content. Note: sensitive values share a single keychain entry with OAuth tokens — keep secret counts small to stay under the ~2KB stdin-safe limit (see INC-3028).")})),bc=E(()=>x({channels:v(x({server:S().min(1).describe(`Name of the MCP server this channel binds to. Must match a key in this plugin's mcpServers.`),displayName:S().optional().describe(`Human-readable name shown in the config dialog title (e.g., "Telegram"). Defaults to the server name.`),userConfig:_(S(),vc()).optional().describe("Fields to prompt the user for when enabling this plugin in assistant mode. Saved values are substituted into ${user_config.KEY} references in the mcpServers env.")}).strict()).describe(`Channels this plugin provides. Each entry declares an MCP server as a message channel and optionally specifies user configuration to prompt for at enable time.`)})),xc=E(()=>de({command:S().min(1).refine(e=>!(e.includes(` `)&&!e.startsWith(`/`)),{message:`Command should not contain spaces. Use args array for arguments.`}).describe(`Command to execute the LSP server (e.g., "typescript-language-server")`),args:v(hc()).optional().describe(`Command-line arguments to pass to the server`),extensionToLanguage:_(gc(),hc()).refine(e=>Object.keys(e).length>0,{message:`extensionToLanguage must have at least one mapping`}).describe(`Mapping from file extension to LSP language ID. File extensions and languages are derived from this mapping.`),transport:T([`stdio`,`socket`]).default(`stdio`).describe(`Communication transport mechanism`),env:_(S(),S()).optional().describe(`Environment variables to set when starting the server`),initializationOptions:ue().optional().describe(`Initialization options passed to the server during initialization`),settings:ue().optional().describe(`Settings passed to the server via workspace/didChangeConfiguration`),workspaceFolder:S().optional().describe(`Workspace folder path to use for the server`),startupTimeout:b().int().positive().optional().describe(`Maximum time to wait for server startup (milliseconds)`),shutdownTimeout:b().int().positive().optional().describe(`Maximum time to wait for graceful shutdown (milliseconds)`),restartOnCrash:y().optional().describe(`Whether to restart the server if it crashes`),maxRestarts:b().int().nonnegative().optional().describe(`Maximum number of restart attempts before giving up`)})),Sc=E(()=>x({lspServers:C([J().describe(`Path to .lsp.json configuration file relative to plugin root`),_(S(),xc()).describe(`LSP server configurations keyed by server name`),v(C([J().describe(`Path to LSP configuration file`),_(S(),xc()).describe(`Inline LSP server configurations`)])).describe(`Array of LSP server configurations (paths or inline definitions)`)])})),Cc=E(()=>S().refine(e=>!e.includes(`..`)&&!e.includes(`//`),`Package name cannot contain path traversal patterns`).refine(e=>/^@[a-z0-9][a-z0-9-._]*\/[a-z0-9][a-z0-9-._]*$/.test(e)||/^[a-z0-9][a-z0-9-._]*$/.test(e),`Invalid npm package name format`)),wc=E(()=>x({settings:_(S(),ue()).optional().describe(`Settings to merge when plugin is enabled. Only allowlisted keys are kept (currently: agent)`)})),Tc=E(()=>x({...sc().shape,...lc().partial().shape,...dc().partial().shape,...fc().partial().shape,...pc().partial().shape,...mc().partial().shape,...bc().partial().shape,..._c().partial().shape,...Sc().partial().shape,...wc().partial().shape,...yc().partial().shape})),Ec=E(()=>ce(`source`,[x({source:g(`url`),url:S().url().describe(`Direct URL to marketplace.json file`),headers:_(S(),S()).optional().describe(`Custom HTTP headers (e.g., for authentication)`)}),x({source:g(`github`),repo:S().describe(`GitHub repository in owner/repo format`),ref:S().optional().describe(`Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.`),path:S().optional().describe(`Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)`),sparsePaths:v(S()).optional().describe(`Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.`)}),x({source:g(`git`),url:S().describe(`Full git repository URL`),ref:S().optional().describe(`Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.`),path:S().optional().describe(`Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)`),sparsePaths:v(S()).optional().describe(`Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.`)}),x({source:g(`npm`),package:Cc().describe(`NPM package containing marketplace.json`)}),x({source:g(`file`),path:S().describe(`Local file path to marketplace.json`)}),x({source:g(`directory`),path:S().describe(`Local directory containing .claude-plugin/marketplace.json`)}),x({source:g(`hostPattern`),hostPattern:S().describe(`Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against "github.com". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., "^github\\.mycompany\\.com$").`)}),x({source:g(`pathPattern`),pathPattern:S().describe(`Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use ".*" to allow all filesystem paths, or a narrower pattern (e.g., "^/opt/approved/") to restrict to specific directories.`)}),x({source:g(`settings`),name:ac().refine(e=>!Zs.has(e.toLowerCase()),{message:`Reserved official marketplace names cannot be used with settings sources. validateOfficialNameSource only accepts github/git sources from anthropics/* for these names; a settings source would be rejected after loadAndCacheMarketplace has already written to disk with cleanupNeeded=false.`}).describe(`Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.`),plugins:v(kc()).describe(`Plugin entries declared inline in settings.json`),owner:oc().optional()}).describe(`Inline marketplace manifest defined directly in settings.json. The reconciler writes a synthetic marketplace.json to the cache; diffMarketplaces detects edits via isEqual on the stored source (the plugins array is inside this object, so edits surface as sourceChanged).`)])),Dc=E(()=>S().length(40).regex(/^[a-f0-9]{40}$/,`Must be a full 40-character lowercase git commit SHA`)),Oc=E(()=>C([q().describe(`Path to the plugin root, relative to the marketplace root (the directory containing .claude-plugin/, not .claude-plugin/ itself)`),x({source:g(`npm`),package:Cc().or(S()).describe("Package name (or url, or local path, or anything else that can be passed to `npm` as a package)"),version:S().optional().describe(`Specific version or version range (e.g., ^1.0.0, ~2.1.0)`),registry:S().url().optional().describe(`Custom NPM registry URL (defaults to using system default, likely npmjs.org)`)}).describe(`NPM package as plugin source`),x({source:g(`pip`),package:S().describe(`Python package name as it appears on PyPI`),version:S().optional().describe(`Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)`),registry:S().url().optional().describe(`Custom PyPI registry URL (defaults to using system default, likely pypi.org)`)}).describe(`Python package as plugin source`),x({source:g(`url`),url:S().describe(`Full git repository URL (https:// or git@)`),ref:S().optional().describe(`Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.`),sha:Dc().optional().describe(`Specific commit SHA to use`)}),x({source:g(`github`),repo:S().describe(`GitHub repository in owner/repo format`),ref:S().optional().describe(`Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.`),sha:Dc().optional().describe(`Specific commit SHA to use`)}),x({source:g(`git-subdir`),url:S().describe(`Git repository: GitHub owner/repo shorthand, https://, or git@ URL`),path:S().min(1).describe(`Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.`),ref:S().optional().describe(`Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.`),sha:Dc().optional().describe(`Specific commit SHA to use`)}).describe(`Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded.`)])),kc=E(()=>x({name:S().min(1,`Plugin name cannot be empty`).refine(e=>!e.includes(` `),{message:`Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin")`}).describe(`Plugin name as it appears in the target repository`),source:Oc().describe(`Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.`),description:S().optional(),version:S().optional(),strict:y().optional()}).refine(e=>typeof e.source!=`string`,{message:`Plugins in a settings-sourced marketplace must use remote sources (github, git-subdir, npm, url, pip). Relative-path sources like "./foo" have no marketplace repository to resolve against.`})),Ac=E(()=>Tc().partial().extend({name:S().min(1,`Plugin name cannot be empty`).refine(e=>!e.includes(` `),{message:`Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin")`}).describe(`Unique identifier matching the plugin name`),source:Oc().describe(`Where to fetch the plugin from`),category:S().optional().describe(`Category for organizing plugins (e.g., "productivity", "development")`),tags:v(S()).optional().describe(`Tags for searchability and discovery`),strict:y().optional().default(!0).describe(`Require the plugin manifest to be present in the plugin folder. If false, the marketplace entry provides the manifest.`)})),jc=E(()=>x({name:ac(),owner:oc().describe(`Marketplace maintainer or curator information`),plugins:v(Ac()).describe(`Collection of available plugins in this marketplace`),forceRemoveDeletedPlugins:y().optional().describe(`When true, plugins removed from this marketplace will be automatically uninstalled and flagged for users`),metadata:x({pluginRoot:S().optional().describe(`Base path for relative plugin sources`),version:S().optional().describe(`Marketplace version`),description:S().optional().describe(`Marketplace description`)}).optional().describe(`Optional marketplace metadata`),allowCrossMarketplaceDependenciesOn:v(S()).optional().describe(`Marketplace names whose plugins may be auto-installed as dependencies. Only the root marketplace's allowlist applies — no transitive trust.`)})),Mc=E(()=>S().regex(/^[a-z0-9][-a-z0-9._]*@[a-z0-9][-a-z0-9._]*$/i,`Plugin ID must be in format: plugin@marketplace`)),Nc=/^[a-z0-9][-a-z0-9._]*(@[a-z0-9][-a-z0-9._]*)?(@\^[^@]*)?$/i,Pc=E(()=>C([S().regex(Nc,`Dependency must be a plugin name, optionally qualified with @marketplace`).transform(e=>e.replace(/@\^[^@]*$/,``)),x({name:S().min(1).regex(/^[a-z0-9][-a-z0-9._]*$/i),marketplace:S().min(1).regex(/^[a-z0-9][-a-z0-9._]*$/i).optional()}).loose().transform(e=>e.marketplace?`${e.name}@${e.marketplace}`:e.name)])),Fc=E(()=>x({version:S().describe(`Currently installed version`),installedAt:S().describe(`ISO 8601 timestamp of installation`),lastUpdated:S().optional().describe(`ISO 8601 timestamp of last update`),installPath:S().describe(`Absolute path to the installed plugin directory`),gitCommitSha:S().optional().describe(`Git commit SHA for git-based plugins (for version tracking)`)})),Ic=E(()=>x({version:g(1).describe(`Schema version 1`),plugins:_(Mc(),Fc()).describe(`Map of plugin IDs to their installation metadata`)})),Lc=E(()=>T([`managed`,`user`,`project`,`local`])),Rc=E(()=>x({scope:Lc().describe(`Installation scope`),projectPath:S().optional().describe(`Project path (required for project/local scopes)`),installPath:S().describe(`Absolute path to the versioned plugin directory`),version:S().optional().describe(`Currently installed version`),installedAt:S().optional().describe(`ISO 8601 timestamp of installation`),lastUpdated:S().optional().describe(`ISO 8601 timestamp of last update`),gitCommitSha:S().optional().describe(`Git commit SHA for git-based plugins`)})),zc=E(()=>x({version:g(2).describe(`Schema version 2`),plugins:_(Mc(),v(Rc())).describe(`Map of plugin IDs to arrays of installation entries`)})),Bc=E(()=>x({source:Ec().describe(`Where to fetch the marketplace from`),installLocation:S().describe(`Local cache path where marketplace manifest is stored`),lastUpdated:S().describe(`ISO 8601 timestamp of last marketplace refresh`),autoUpdate:y().optional().describe(`Whether to automatically update this marketplace and its installed plugins on startup`)})),Vc=E(()=>_(S(),Bc()))}));function Uc(e){let t=e.replace(/[^a-zA-Z0-9_-]/g,`_`);return e.startsWith(Wc)&&(t=t.replace(/_+/g,`_`).replace(/^_|_$/g,``)),t}var Wc,Gc=e((()=>{Wc=`claude.ai `}));function Kc(e){let[t,n,...r]=e.split(`__`);return t!==`mcp`||!n?null:{serverName:n,toolName:r.length>0?r.join(`__`):void 0}}function qc(e){return`mcp__${Uc(e)}__`}function Jc(e,t){return`${qc(e)}${Uc(t)}`}function Yc(e){return e.mcpInfo?Jc(e.mcpInfo.serverName,e.mcpInfo.toolName):e.name}function Xc(e,t){let n=`mcp__${Uc(t)}__`;return e.replace(n,``)}function Zc(e){let t=e.replace(/\s*\(MCP\)\s*$/,``);t=t.trim();let n=t.indexOf(` - `);return n===-1?t:t.substring(n+3).trim()}var Qc=e((()=>{Gc()})),$c,el,tl,nl,rl=e((()=>{$c=`Agent`,el=`Task`,tl=`verification`,nl=new Set([`Explore`,`Plan`])})),il,al=e((()=>{il=`TaskOutput`})),ol,sl,cl=e((()=>{ol=`TaskStop`,sl=`
|
|
18
|
-
- Stops a running background task by its ID
|
|
19
|
-
- Takes a task_id parameter identifying the task to stop
|
|
20
|
-
- Returns a success or failure status
|
|
21
|
-
- Use this tool when you need to terminate a long-running task
|
|
22
|
-
`}));function ll(e){return _l[e]??e}function ul(e){let t=[];for(let[n,r]of Object.entries(_l))r===e&&t.push(n);return t}function dl(e){return e.replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)}function fl(e){return e.replace(/\\\(/g,`(`).replace(/\\\)/g,`)`).replace(/\\\\/g,`\\`)}function pl(e){let t=hl(e,`(`);if(t===-1)return{toolName:ll(e)};let n=gl(e,`)`);if(n===-1||n<=t||n!==e.length-1)return{toolName:ll(e)};let r=e.substring(0,t),i=e.substring(t+1,n);if(!r)return{toolName:ll(e)};if(i===``||i===`*`)return{toolName:ll(r)};let a=fl(i);return{toolName:ll(r),ruleContent:a}}function ml(e){if(!e.ruleContent)return e.toolName;let t=dl(e.ruleContent);return`${e.toolName}(${t})`}function hl(e,t){for(let n=0;n<e.length;n++)if(e[n]===t){let t=0,r=n-1;for(;r>=0&&e[r]===`\\`;)t++,r--;if(t%2==0)return n}return-1}function gl(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t){let t=0,r=n-1;for(;r>=0&&e[r]===`\\`;)t++,r--;if(t%2==0)return n}return-1}var _l,vl=e((()=>{rl(),al(),cl(),_l={Task:$c,KillShell:ol,AgentOutputTool:il,BashOutputTool:il}}));function yl(e){return Sl.filePatternTools.includes(e)}function bl(e){return Sl.bashPrefixTools.includes(e)}function xl(e){return Sl.customValidation[e]}var Sl,Cl=e((()=>{Sl={filePatternTools:[`Read`,`Write`,`Edit`,`Glob`,`NotebookRead`,`NotebookEdit`],bashPrefixTools:[`Bash`],customValidation:{WebSearch:e=>e.includes(`*`)||e.includes(`?`)?{valid:!1,error:`WebSearch does not support wildcards`,suggestion:`Use exact search terms without * or ?`,examples:[`WebSearch(claude ai)`,`WebSearch(typescript tutorial)`]}:{valid:!0},WebFetch:e=>e.includes(`://`)||e.startsWith(`http`)?{valid:!1,error:`WebFetch permissions use domain format, not URLs`,suggestion:`Use "domain:hostname" format`,examples:[`WebFetch(domain:example.com)`,`WebFetch(domain:github.com)`]}:e.startsWith(`domain:`)?{valid:!0}:{valid:!1,error:`WebFetch permissions must use "domain:" prefix`,suggestion:`Use "domain:hostname" format`,examples:[`WebFetch(domain:example.com)`,`WebFetch(domain:*.google.com)`]}}}}));function wl(e,t){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;return n%2!=0}function Tl(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&!wl(e,r)&&n++;return n}function El(e){for(let t=0;t<e.length-1;t++)if(e[t]===`(`&&e[t+1]===`)`&&!wl(e,t))return!0;return!1}function Dl(e,t){if(!e||e.trim()===``)return{valid:!1,error:`Permission rule cannot be empty`};if(Tl(e,`(`)!==Tl(e,`)`))return{valid:!1,error:`Mismatched parentheses`,suggestion:`Ensure all opening parentheses have matching closing parentheses`};if(El(e)){let t=e.substring(0,e.indexOf(`(`));return t?{valid:!1,error:`Empty parentheses`,suggestion:`Either specify a pattern or use just "${t}" without parentheses`,examples:[`${t}`,`${t}(some-pattern)`]}:{valid:!1,error:`Empty parentheses with no tool name`,suggestion:`Specify a tool name before the parentheses`}}let n=pl(e),r=Kc(n.toolName);if(r)return n.ruleContent!==void 0||Tl(e,`(`)>0?{valid:!1,error:`MCP rules do not support patterns in parentheses`,suggestion:`Use "${n.toolName}" without parentheses, or use "mcp__${r.serverName}__*" for all tools`,examples:[`mcp__${r.serverName}`,`mcp__${r.serverName}__*`,r.toolName&&r.toolName!==`*`?`mcp__${r.serverName}__${r.toolName}`:void 0].filter(Boolean)}:{valid:!0};if(!n.toolName||n.toolName.length===0)return{valid:!1,error:`Tool name cannot be empty`};if(n.toolName[0]!==n.toolName[0]?.toUpperCase())return{valid:!1,error:`Tool names must start with uppercase`,suggestion:`Use "${Pt(String(n.toolName))}"`};let i=xl(n.toolName);if(i&&n.ruleContent!==void 0){let e=i(n.ruleContent);if(!e.valid)return e}if(bl(n.toolName)&&n.ruleContent!==void 0){let e=n.ruleContent;if(e.includes(`:*`)&&!e.endsWith(`:*`))return{valid:!1,error:`The :* pattern must be at the end`,suggestion:`Move :* to the end for prefix matching, or use * for wildcard matching`,examples:[`Bash(npm run:*) - prefix matching (legacy)`,`Bash(npm run *) - wildcard matching`]};if(e===`:*`)return{valid:!1,error:`Prefix cannot be empty before :*`,suggestion:`Specify a command prefix before :*`,examples:[`Bash(npm:*)`,`Bash(git:*)`]}}if(yl(n.toolName)&&n.ruleContent!==void 0){let e=n.ruleContent;if(e.includes(`:*`))return{valid:!1,error:`The ":*" syntax is only for Bash prefix rules`,suggestion:`Use glob patterns like "*" or "**" for file matching`,examples:[`${n.toolName}(*.ts) - matches .ts files`,`${n.toolName}(src/**) - matches all files in src`,`${n.toolName}(**/*.test.ts) - matches test files`]};if(e.includes(`*`)&&!e.match(/^\*|\*$|\*\*|\/\*|\*\.|\*\)/)&&!e.includes(`**`))return{valid:!1,error:`Wildcard placement might be incorrect`,suggestion:`Wildcards are typically used at path boundaries`,examples:[`${n.toolName}(*.js) - all .js files`,`${n.toolName}(src/*) - all files directly in src`,`${n.toolName}(src/**) - all files recursively in src`]}}return{valid:!0}}var Ol,kl=e((()=>{w(),Qc(),ve(),vl(),Ft(),Cl(),Ol=E(()=>S().superRefine((e,t)=>{let n=Dl(e);if(!n.valid){let r=n.error;n.suggestion&&(r+=`. ${n.suggestion}`),n.examples&&n.examples.length>0&&(r+=`. Examples: ${n.examples.join(`, `)}`),t.addIssue({code:oe.custom,message:r,params:{received:e}})}}))}));function Al(e){return`serverName`in e&&e.serverName!==void 0}function jl(e){return`serverCommand`in e&&e.serverCommand!==void 0}function Ml(e){return`serverUrl`in e&&e.serverUrl!==void 0}var Nl,Pl,Fl,Il,Ll,Rl,Y,zl=e((()=>{w(),Jo(),ve(),As(),Hc(),Io(),kl(),Gs(),Ha(),Nl=E(()=>_(S(),se())),Pl=E(()=>x({allow:v(Ol()).optional().describe(`List of permission rules for allowed operations`),deny:v(Ol()).optional().describe(`List of permission rules for denied operations`),ask:v(Ol()).optional().describe(`List of permission rules that should always prompt for confirmation`),defaultMode:T(_s).optional().describe(`Default permission mode when Work Mate needs access`),disableBypassPermissionsMode:T([`disable`]).optional().describe(`Disable the ability to bypass permission prompts`),disableAutoMode:T([`disable`]).optional().describe(`Disable auto mode`),additionalDirectories:v(S()).optional().describe(`Additional directories to include in the permission scope`)}).passthrough()),Fl=E(()=>x({source:Ec().describe(`Where to fetch the marketplace from`),installLocation:S().optional().describe(`Local cache path where marketplace manifest is stored (auto-generated if not provided)`),autoUpdate:y().optional().describe(`Whether to automatically update this marketplace and its installed plugins on startup`)})),Il=E(()=>x({serverName:S().regex(/^[a-zA-Z0-9_-]+$/,`Server name can only contain letters, numbers, hyphens, and underscores`).optional().describe(`Name of the MCP server that users are allowed to configure`),serverCommand:v(S()).min(1,`Server command must have at least one element (the command)`).optional().describe(`Command array [command, ...args] to match exactly for allowed stdio servers`),serverUrl:S().optional().describe(`URL pattern with wildcard support (e.g., "https://*.example.com/*") for allowed remote MCP servers`)}).refine(e=>Ba([e.serverName!==void 0,e.serverCommand!==void 0,e.serverUrl!==void 0],Boolean)===1,{message:`Entry must have exactly one of "serverName", "serverCommand", or "serverUrl"`})),Ll=E(()=>x({serverName:S().regex(/^[a-zA-Z0-9_-]+$/,`Server name can only contain letters, numbers, hyphens, and underscores`).optional().describe(`Name of the MCP server that is explicitly blocked`),serverCommand:v(S()).min(1,`Server command must have at least one element (the command)`).optional().describe(`Command array [command, ...args] to match exactly for blocked stdio servers`),serverUrl:S().optional().describe(`URL pattern with wildcard support (e.g., "https://*.example.com/*") for blocked remote MCP servers`)}).refine(e=>Ba([e.serverName!==void 0,e.serverCommand!==void 0,e.serverUrl!==void 0],Boolean)===1,{message:`Entry must have exactly one of "serverName", "serverCommand", or "serverUrl"`})),Rl=[`skills`,`agents`,`hooks`,`mcp`],Y=E(()=>x({$schema:g(Fo).optional().describe(`JSON Schema reference for Work Mate settings`),fileSuggestion:x({type:g(`command`),command:S()}).optional().describe(`Custom file suggestion configuration for @ mentions`),respectGitignore:y().optional().describe(`Whether file picker should respect .gitignore files (default: true). Note: .ignore files are always respected.`),cleanupPeriodDays:b().nonnegative().int().optional().describe(`Number of days to retain chat transcripts (default: 30). Setting to 0 disables session persistence entirely: no transcripts are written and existing transcripts are deleted at startup.`),env:Nl().optional().describe(`Environment variables to set for Work Mate sessions`),attribution:x({commit:S().optional().describe(`Attribution text for git commits, including any trailers. Empty string hides attribution.`),pr:S().optional().describe(`Attribution text for pull request descriptions. Empty string hides attribution.`)}).optional().describe(`Customize attribution text for commits and PRs. Each field defaults to the standard Work Mate attribution if not set.`),includeCoAuthoredBy:y().optional().describe(`Deprecated: Use attribution instead. Whether to include Work Mate's co-authored by attribution in commits and PRs (defaults to true)`),includeGitInstructions:y().optional().describe(`Include built-in commit and PR workflow instructions in Work Mate's system prompt (default: true)`),permissions:Pl().optional().describe(`Tool usage permissions configuration`),modelType:T([`anthropic`,`openai`,`gemini`,`grok`]).optional().describe(`API provider type. "anthropic" uses the first-party API (default), "openai" uses the OpenAI Chat Completions API, "gemini" uses the Gemini API, and "grok" uses the xAI Grok API (OpenAI-compatible). When set to "openai", configure OPENAI_API_KEY, OPENAI_BASE_URL, and OPENAI_MODEL. When set to "gemini", configure GEMINI_API_KEY and optional GEMINI_BASE_URL. When set to "grok", configure GROK_API_KEY (or XAI_API_KEY), optional GROK_BASE_URL, GROK_MODEL, and GROK_MODEL_MAP.`),activeProviderId:S().optional().describe(`Currently active API provider id (set by /provider use <id>). Authoritative source for the active-provider marker in /provider list.`),model:S().optional().describe(`Override the default model used by Work Mate`),availableModels:v(S()).optional().describe(`Allowlist of models that users can select. Accepts family aliases ("opus" allows any opus version), version prefixes ("opus-4-5" allows only that version), and full model IDs. If undefined, all models are available. If empty array, only the default model is available. Typically set in managed settings by enterprise administrators.`),modelOverrides:_(S(),S()).optional().describe(`Override mapping from Anthropic model ID (e.g. "claude-opus-4-6") to provider-specific model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by enterprise administrators.`),enableAllProjectMcpServers:y().optional().describe(`Whether to automatically approve all MCP servers in the project`),enabledMcpjsonServers:v(S()).optional().describe(`List of approved MCP servers from .mcp.json`),disabledMcpjsonServers:v(S()).optional().describe(`List of rejected MCP servers from .mcp.json`),allowedMcpServers:v(Il()).optional().describe(`Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied.`),deniedMcpServers:v(Ll()).optional().describe(`Enterprise denylist of MCP servers that are explicitly blocked. If a server is on the denylist, it will be blocked across all scopes including enterprise. Denylist takes precedence over allowlist - if a server is on both lists, it is denied.`),hooks:Ws().optional().describe(`Custom commands to run before/after tool executions`),worktree:x({symlinkDirectories:v(S()).optional().describe(`Directories to symlink from main repository to worktrees to avoid disk bloat. Must be explicitly configured - no directories are symlinked by default. Common examples: "node_modules", ".cache", ".bin"`),sparsePaths:v(S()).optional().describe(`Directories to include when creating worktrees, via git sparse-checkout (cone mode). Dramatically faster in large monorepos — only the listed paths are written to disk.`)}).optional().describe(`Git worktree configuration for --worktree flag.`),disableAllHooks:y().optional().describe(`Disable all hooks and statusLine execution`),defaultShell:T([`bash`,`powershell`]).optional().describe(`Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip).`),allowManagedHooksOnly:y().optional().describe(`When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored.`),allowedHttpHookUrls:v(S()).optional().describe(`Allowlist of URL patterns that HTTP hooks may target. Supports * as a wildcard (e.g. "https://hooks.example.com/*"). When set, HTTP hooks with non-matching URLs are blocked. If undefined, all URLs are allowed. If empty array, no HTTP hooks are allowed. Arrays merge across settings sources (same semantics as allowedMcpServers).`),httpHookAllowedEnvVars:v(S()).optional().describe(`Allowlist of environment variable names HTTP hooks may interpolate into headers. When set, each hook's effective allowedEnvVars is the intersection with this list. If undefined, no restriction is applied. Arrays merge across settings sources (same semantics as allowedMcpServers).`),allowManagedPermissionRulesOnly:y().optional().describe(`When true (and set in managed settings), only permission rules (allow/deny/ask) from managed settings are respected. User, project, local, and CLI argument permission rules are ignored.`),allowManagedMcpServersOnly:y().optional().describe(`When true (and set in managed settings), allowedMcpServers is only read from managed settings. deniedMcpServers still merges from all sources, so users can deny servers for themselves. Users can still add their own MCP servers, but only the admin-defined allowlist applies.`),strictPluginOnlyCustomization:be(e=>Array.isArray(e)?e.filter(e=>Rl.includes(e)):e,C([y(),v(T(Rl))])).optional().catch(void 0).describe('When set in managed settings, blocks non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g. ["skills", "hooks"]); `true` locks all four; `false` is an explicit no-op. Blocked: ~/.workmate/{surface}/, .workmate/{surface}/ (project), settings.json hooks, .mcp.json. NOT blocked: managed (policySettings) sources, plugin-provided customizations. Composes with strictKnownMarketplaces for end-to-end admin control — plugins gated by marketplace allowlist, everything else blocked here.'),statusLine:x({type:g(`command`),command:S(),padding:b().optional(),refreshInterval:b().optional()}).optional().describe(`Custom status line display configuration`),statusLineEnabled:y().optional().describe(`Whether to render the fork built-in status line (model + ctx + 5h/7d limits + cost + cache pill). Toggled with /statusline.`),enabledPlugins:_(S(),C([v(S()),y(),ge()])).optional().describe(`Enabled plugins using plugin-id@marketplace-id format. Example: { "formatter@anthropic-tools": true }. Also supports extended format with version constraints.`),extraKnownMarketplaces:_(S(),Fl()).check(e=>{for(let[t,n]of Object.entries(e.value))n.source.source===`settings`&&n.source.name!==t&&e.issues.push({code:`custom`,input:n.source.name,path:[t,`source`,`name`],message:`Settings-sourced marketplace name must match its extraKnownMarketplaces key (got key "${t}" but source.name "${n.source.name}")`})}).optional().describe(`Additional marketplaces to make available for this repository. Typically used in repository .workmate/settings.json to ensure team members have required plugin sources.`),strictKnownMarketplaces:v(Ec()).optional().describe(`Enterprise strict list of allowed marketplace sources. When set in managed settings, ONLY these exact sources can be added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem. Note: this is a policy gate only — it does NOT register marketplaces. To pre-register allowed marketplaces for users, also set extraKnownMarketplaces.`),blockedMarketplaces:v(Ec()).optional().describe(`Enterprise blocklist of marketplace sources. When set in managed settings, these exact sources are blocked from being added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem.`),outputStyle:S().optional().describe(`Controls the output style for assistant responses`),language:S().optional().describe(`Preferred language for Work Mate responses (e.g., "japanese", "spanish")`),skipWebFetchPreflight:y().optional().describe(`Skip the WebFetch blocklist check for enterprise environments with restrictive security policies`),webSearchAdapter:T([`api`,`bing`,`brave`,`exa`,`tavily`]).optional().describe(`Web search backend adapter. "tavily" uses Tavily Search API (default), "api" uses Anthropic server-side search, "bing" scrapes Bing HTML, "brave" uses Brave Search API, "exa" uses Exa AI.`),webFetchAdapter:T([`tavily`,`http`]).optional().describe(`Web fetch backend. "tavily" uses Tavily Extract API which returns Markdown directly (default), "http" fetches the URL directly via HTTP.`),tavilyEndpointUrl:S().optional().describe(`Custom Tavily API endpoint URL. Defaults to https://tavily.readmagic.workmate.win. Used by both WebSearch and WebFetch when tavily adapter is selected.`),braveApiKey:S().optional().describe(`Brave Search API key. Required when using the brave web search adapter.`),webFetchHttpTimeoutMs:b().int().positive().optional().describe(`HTTP timeout in milliseconds for the HTTP direct web fetch backend. Defaults to 60000 (60s).`),exaApiKey:S().optional().describe(`Exa AI API key. Required when using the exa web search adapter.`),exaEndpointUrl:S().optional().describe(`Custom Exa AI MCP endpoint URL. Defaults to https://mcp.exa.ai/mcp.`),sandbox:qo().optional(),feedbackSurveyRate:b().min(0).max(1).optional().describe(`Probability (0–1) that the session quality survey appears when eligible. 0.05 is a reasonable starting point.`),spinnerTipsEnabled:y().optional().describe(`Whether to show tips in the spinner`),spinnerVerbs:x({mode:T([`append`,`replace`]),verbs:v(S())}).optional().describe(`Customize spinner verbs. mode: "append" adds verbs to defaults, "replace" uses only your verbs.`),spinnerTipsOverride:x({excludeDefault:y().optional(),tips:v(S())}).optional().describe(`Override spinner tips. tips: array of tip strings. excludeDefault: if true, only show custom tips (default: false).`),syntaxHighlightingDisabled:y().optional().describe(`Whether to disable syntax highlighting in diffs`),terminalTitleFromRename:y().optional().describe(`Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles.`),alwaysThinkingEnabled:y().optional().describe(`When false, thinking is disabled. When absent or true, thinking is enabled automatically for supported models.`),advisorModel:S().optional().describe(`Advisor model for the server-side advisor tool.`),fastMode:y().optional().describe(`When true, fast mode is enabled. When absent or false, fast mode is off.`),fastModePerSessionOptIn:y().optional().describe(`When true, fast mode does not persist across sessions. Each session starts with fast mode off.`),promptSuggestionEnabled:y().optional().describe(`When false, prompt suggestions are disabled. When absent or true, prompt suggestions are enabled.`),poorMode:y().optional().describe(`When true, poor mode is active — extract_memories and prompt_suggestion are disabled to save tokens.`),showClearContextOnPlanAccept:y().optional().describe(`When true, the plan-approval dialog offers a "clear context" option. Defaults to false.`),agent:S().optional().describe(`Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model.`),companyAnnouncements:v(S()).optional().describe(`Company announcements to display at startup (one will be randomly selected if multiple are provided)`),pluginConfigs:_(S(),x({mcpServers:_(S(),_(S(),C([S(),b(),y(),v(S())]))).optional().describe(`User configuration values for MCP servers keyed by server name`),options:_(S(),C([S(),b(),y(),v(S())])).optional().describe(`Non-sensitive option values from plugin manifest userConfig, keyed by option name. Sensitive values go to secure storage instead.`)})).optional().describe(`Per-plugin configuration including MCP server user configs, keyed by plugin ID (plugin@marketplace format)`),autoUpdatesChannel:T([`latest`,`stable`]).optional().describe(`Release channel for auto-updates (latest or stable)`),disableDeepLinkRegistration:T([`disable`]).optional().describe(`Prevent claude-cli:// protocol handler registration with the OS`),minimumVersion:S().optional().describe(`Minimum version to stay on - prevents downgrades when switching to stable channel`),plansDirectory:S().optional().describe(`Custom directory for plan files, relative to project root. If not set, defaults to ~/.workmate/plans/`),minSleepDurationMs:b().nonnegative().int().optional().describe(`Minimum duration in milliseconds that the Sleep tool must sleep for. Useful for throttling proactive tick frequency.`),maxSleepDurationMs:b().int().min(-1).optional().describe(`Maximum duration in milliseconds that the Sleep tool can sleep for. Set to -1 for indefinite sleep (waits for user input). Useful for limiting idle time in remote/managed environments.`),channelsEnabled:y().optional().describe(`Teams/Enterprise opt-in for channel notifications (MCP servers with the claude/channel capability pushing inbound messages). Default off. Set true to allow; users then select servers via --channels.`),allowedChannelPlugins:v(x({marketplace:S(),plugin:S()})).optional().describe(`Teams/Enterprise allowlist of channel plugins. When set, replaces the default allowlist — admins decide which plugins may push inbound messages. Undefined falls back to the default. Requires channelsEnabled: true.`),prefersReducedMotion:y().optional().describe(`Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)`),autoMemoryEnabled:y().optional().describe(`Enable auto-memory for this project. When false, Work Mate will not read from or write to the auto-memory directory.`),autoMemoryDirectory:S().optional().describe(`Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .workmate/settings.json) for security. When unset, defaults to ~/.workmate/projects/<sanitized-cwd>/memory/.`),autoDreamEnabled:y().optional().describe(`Enable background memory consolidation (auto-dream). When set, overrides the server-side default.`),showThinkingSummaries:y().optional().describe(`Show thinking summaries in the transcript view (ctrl+o). Default: false.`),skipDangerousModePermissionPrompt:y().optional().describe(`Whether the user has accepted the bypass permissions mode dialog`),skipAutoPermissionPrompt:y().optional().describe(`Whether the user has accepted the auto mode opt-in dialog`),useAutoModeDuringPlan:y().optional().describe(`Whether plan mode uses auto mode semantics when auto mode is available (default: true)`),autoMode:x({allow:v(S()).optional().describe(`Rules for the auto mode classifier allow section`),soft_deny:v(S()).optional().describe(`Rules for the auto mode classifier deny section`),environment:v(S()).optional().describe(`Entries for the auto mode classifier environment section`)}).optional().describe(`Auto mode classifier prompt customization`),disableAutoMode:T([`disable`]).optional().describe(`Disable auto mode`),agentsMdExcludes:v(S()).optional().describe(`Glob patterns or absolute paths of AGENTS.md files to exclude from loading. Patterns are matched against absolute file paths using picomatch. Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded). Examples: "/home/user/monorepo/AGENTS.md", "**/code/AGENTS.md", "**/some-dir/.workmate/rules/**"`),cacheThreshold:b().int().min(0).max(100).optional().describe(`Prompt cache hit rate threshold (0-100). Warnings shown when cache hit rate falls below this percentage. Default: 80.`),cacheWarningEnabled:y().optional().describe(`Whether to show cache hit rate warnings in the message flow when the rate falls below cacheThreshold. Default: true.`),pluginTrustMessage:S().optional().describe(`Custom message to append to the plugin trust warning shown before installation. Only read from policy settings (managed-settings.json / MDM). Useful for enterprise administrators to add organization-specific context (e.g., "All plugins from our internal marketplace are vetted and approved.").`)}).passthrough())}));function Bl(){return ft(ye(Y(),{unrepresentable:`any`}),null,2)}var Vl=e((()=>{w(),xt(),zl()}));function Hl(e){let t=Ul.find(t=>t.matches(e));if(!t)return null;let n={...t.tip};if(e.code===`invalid_value`&&e.enumValues&&!n.suggestion&&(n.suggestion=`Valid values: ${e.enumValues.map(e=>`"${e}"`).join(`, `)}`),!n.docLink&&e.path){let t=e.path.split(`.`)[0];t&&(n.docLink=Wl[t])}return n}var X,Ul,Wl,Gl=e((()=>{X=`https://code.workmate.com/docs/en`,Ul=[{matches:e=>e.path===`permissions.defaultMode`&&e.code===`invalid_value`,tip:{suggestion:`Valid modes: "acceptEdits" (ask before file changes), "plan" (analysis only), "bypassPermissions" (auto-accept all), or "default" (standard behavior)`,docLink:`${X}/iam#permission-modes`}},{matches:e=>e.path===`cleanupPeriodDays`&&e.code===`too_small`&&e.expected===`0`,tip:{suggestion:`Must be 0 or greater. Set a positive number for days to retain transcripts (default is 30). Setting 0 disables session persistence entirely: no transcripts are written and existing transcripts are deleted at startup.`}},{matches:e=>e.path.startsWith(`env.`)&&e.code===`invalid_type`,tip:{suggestion:`Environment variables must be strings. Wrap numbers and booleans in quotes. Example: "DEBUG": "true", "PORT": "3000"`,docLink:`${X}/settings#environment-variables`}},{matches:e=>(e.path===`permissions.allow`||e.path===`permissions.deny`)&&e.code===`invalid_type`&&e.expected===`array`,tip:{suggestion:`Permission rules must be in an array. Format: ["Tool(specifier)"]. Examples: ["Bash(npm run build)", "Edit(docs/**)", "Read(~/.zshrc)"]. Use * for wildcards.`}},{matches:e=>e.path.includes(`hooks`)&&e.code===`invalid_type`,tip:{suggestion:`Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list ("Edit|Write"), or empty to match all. Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type": "command", "command": "echo Done"}]}]}`}},{matches:e=>e.code===`invalid_type`&&e.expected===`boolean`,tip:{suggestion:`Use true or false without quotes. Example: "includeCoAuthoredBy": true`}},{matches:e=>e.code===`unrecognized_keys`,tip:{suggestion:`Check for typos or refer to the documentation for valid fields`,docLink:`${X}/settings`}},{matches:e=>e.code===`invalid_value`&&e.enumValues!==void 0,tip:{suggestion:void 0}},{matches:e=>e.code===`invalid_type`&&e.expected===`object`&&e.received===null&&e.path===``,tip:{suggestion:`Check for missing commas, unmatched brackets, or trailing commas. Use a JSON validator to identify the exact syntax error.`}},{matches:e=>e.path===`permissions.additionalDirectories`&&e.code===`invalid_type`,tip:{suggestion:`Must be an array of directory paths. Example: ["~/projects", "/tmp/workspace"]. You can also use --add-dir flag or /add-dir command`,docLink:`${X}/iam#working-directories`}}],Wl={permissions:`${X}/iam#configuring-permissions`,env:`${X}/settings#environment-variables`,hooks:`${X}/hooks`}}));function Kl(e){return e.code===`invalid_type`}function ql(e){return e.code===`invalid_value`}function Jl(e){return e.code===`unrecognized_keys`}function Yl(e){return e.code===`too_small`}function Xl(e){return e===null?`null`:e===void 0?`undefined`:Array.isArray(e)?`array`:typeof e}function Zl(e){let t=e.match(/received (\w+)/);return t?t[1]:void 0}function Ql(e,t){return e.issues.map(e=>{let n=e.path.map(String).join(`.`),r=e.message,i,a,o,s,c;if(ql(e))a=e.values.map(e=>String(e)),o=a.join(` | `),s=void 0,c=void 0;else if(Kl(e)){o=e.expected;let t=Zl(e.message);s=t??Xl(e.input),c=t??Xl(e.input)}else Yl(e)?o=String(e.minimum):e.code===`custom`&&`params`in e&&(s=e.params.received,c=s);let l=Hl({path:n,code:e.code,expected:o,received:s,enumValues:a,message:e.message,value:s});if(ql(e))i=a?.map(e=>`"${e}"`).join(`, `),r=`Invalid value. Expected one of: ${i}`;else if(Kl(e)){let t=Zl(e.message)??Xl(e.input);r=e.expected===`object`&&t===`null`&&n===``?`Invalid or malformed JSON`:`Expected ${e.expected}, but received ${t}`}else if(Jl(e)){let t=e.keys.join(`, `);r=`Unrecognized ${Mt(e.keys.length,`field`)}: ${t}`}else Yl(e)&&(r=`Number must be greater than or equal to ${e.minimum}`,i=String(e.minimum));return{file:t,path:n,message:r,expected:i,invalidValue:c,suggestion:l?.suggestion,docLink:l?.docLink}})}function $l(e){try{let t=gt(e),n=Y().strict().safeParse(t);return n.success?{isValid:!0}:{isValid:!1,error:`Settings validation failed:
|
|
23
|
-
`+Ql(n.error,`settings`).map(e=>`- ${e.path}: ${e.message}`).join(`
|
|
24
|
-
`),fullSchema:Bl()}}catch(e){return{isValid:!1,error:`Invalid JSON: ${e instanceof Error?e.message:`Unknown parsing error`}`,fullSchema:Bl()}}}function eu(e,t){if(!e||typeof e!=`object`)return[];let n=e;if(!n.permissions||typeof n.permissions!=`object`)return[];let r=n.permissions,i=[];for(let e of[`allow`,`deny`,`ask`]){let n=r[e];Array.isArray(n)&&(r[e]=n.filter(n=>{if(typeof n!=`string`)return i.push({file:t,path:`permissions.${e}`,message:`Non-string value in ${e} array was removed`,invalidValue:n}),!1;let r=Dl(n,e);if(!r.valid){let a=`Invalid permission rule "${n}" was skipped`;return r.error&&(a+=`: ${r.error}`),r.suggestion&&(a+=`. ${r.suggestion}`),i.push({file:t,path:`permissions.${e}`,message:a,invalidValue:n}),!1}return!0}))}return i}var tu=e((()=>{xt(),Ft(),kl(),Vl(),zl(),Gl()}));function nu(){let e=``;try{e=Gt().username}catch{}let t=[];return e&&t.push({path:`/Library/Managed Preferences/${e}/${ru}.plist`,label:`per-user managed preferences`}),t.push({path:`/Library/Managed Preferences/${ru}.plist`,label:`device-level managed preferences`}),t}var ru,iu,au,ou,su,cu,lu,uu=e((()=>{ru=`com.anthropic.claudecode`,iu=`HKLM\\SOFTWARE\\Policies\\ClaudeCode`,au=`HKCU\\SOFTWARE\\Policies\\ClaudeCode`,ou=`Settings`,su=`/usr/bin/plutil`,cu=[`-convert`,`json`,`-o`,`-`,`--`],lu=5e3}));function du(e,t){return new Promise(n=>{hn(e,t,{encoding:`utf-8`,timeout:lu},(e,t)=>{n({stdout:t??``,code:+!!e})})})}function fu(){return(async()=>{if(process.platform===`darwin`){let e=nu(),t=(await Promise.all(e.map(async({path:e,label:t})=>{if(!$t(e))return{stdout:``,label:t,ok:!1};let{stdout:n,code:r}=await du(su,[...cu,e]);return{stdout:n,label:t,ok:r===0&&!!n}}))).find(e=>e.ok);return{plistStdouts:t?[{stdout:t.stdout,label:t.label}]:[],hklmStdout:null,hkcuStdout:null}}if(process.platform===`win32`){let[e,t]=await Promise.all([du(`reg`,[`query`,iu,`/v`,ou]),du(`reg`,[`query`,au,`/v`,ou])]);return{plistStdouts:null,hklmStdout:e.code===0?e.stdout:null,hkcuStdout:t.code===0?t.stdout:null}}return{plistStdouts:null,hklmStdout:null,hkcuStdout:null}})()}function pu(){hu||(hu=fu())}function mu(){return hu}var hu,gu=e((()=>{uu(),hu=null}));function _u(){ku||(ku=(async()=>{Ut(`mdm_load_start`);let e=Date.now(),{mdm:t,hkcu:n}=Tu(await(mu()??fu()));Du=t,Ou=n,Ut(`mdm_load_end`);let r=Date.now()-e;if(O(`MDM settings load completed in ${r}ms`),Object.keys(t.settings).length>0){O(`MDM settings found: ${Object.keys(t.settings).join(`, `)}`);try{z(`info`,`mdm_settings_loaded`,{duration_ms:r,key_count:Object.keys(t.settings).length,error_count:t.errors.length})}catch{}}})())}async function vu(){ku||_u(),await ku}function yu(){return Du??Z}function bu(){return Ou??Z}function xu(e,t){Du=e,Ou=t}async function Su(){return Tu(await fu())}function Cu(e,t){let n=pe(e,!1);if(!n||typeof n!=`object`)return{settings:{},errors:[]};let r=eu(n,t),i=Y().safeParse(n);if(!i.success){let e=Ql(i.error,t);return{settings:{},errors:[...r,...e]}}return{settings:i.data,errors:r}}function wu(e,t=`Settings`){let n=e.split(/\r?\n/),r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=RegExp(`^\\s+${r}\\s+REG_(?:EXPAND_)?SZ\\s+(.*)$`,`i`);for(let e of n){let t=e.match(i);if(t?.[1])return t[1].trimEnd()}return null}function Tu(e){if(e.plistStdouts&&e.plistStdouts.length>0){let{stdout:t,label:n}=e.plistStdouts[0],r=Cu(t,n);if(Object.keys(r.settings).length>0)return{mdm:r,hkcu:Z}}if(e.hklmStdout){let t=wu(e.hklmStdout);if(t){let e=Cu(t,`Registry: ${iu}\\${ou}`);if(Object.keys(e.settings).length>0)return{mdm:e,hkcu:Z}}}if(Eu())return{mdm:Z,hkcu:Z};if(e.hkcuStdout){let t=wu(e.hkcuStdout);if(t){let e=Cu(t,`Registry: ${au}\\${ou}`);return{mdm:Z,hkcu:e}}}return{mdm:Z,hkcu:Z}}function Eu(){try{let e=pe(Ka(P(Ho(),`managed-settings.json`)),!1);if(e&&typeof e==`object`&&Object.keys(e).length>0)return!0}catch{}try{let e=Uo(),t=A().readdirSync(e);for(let n of t)if(!(!(n.isFile()||n.isSymbolicLink())||!n.name.endsWith(`.json`)||n.name.startsWith(`.`)))try{let t=pe(Ka(P(e,n.name)),!1);if(t&&typeof t==`object`&&Object.keys(t).length>0)return!0}catch{}}catch{}return!1}var Z,Du,Ou,ku,Au=e((()=>{bt(),$n(),qa(),k(),_e(),Ht(),Wo(),zl(),tu(),uu(),gu(),Z=Object.freeze({settings:{},errors:[]}),Du=null,Ou=null,ku=null}));function ju(){return P(Ho(),`managed-settings.json`)}function Mu(){let e=[],t={},n=!1,{settings:r,errors:i}=Fu(ju());e.push(...i),r&&Object.keys(r).length>0&&(t=G(t,r,$),n=!0);let a=Uo();try{let r=A().readdirSync(a).filter(e=>(e.isFile()||e.isSymbolicLink())&&e.name.endsWith(`.json`)&&!e.name.startsWith(`.`)).map(e=>e.name).sort();for(let i of r){let{settings:r,errors:o}=Fu(P(a,i));e.push(...o),r&&Object.keys(r).length>0&&(t=G(t,r,$),n=!0)}}catch(e){let t=mt(e);t!==`ENOENT`&&t!==`ENOTDIR`&&j(e)}return{settings:n?t:null,errors:e}}function Nu(){let{settings:e}=Fu(ju()),t=!!e&&Object.keys(e).length>0,n=!1,r=Uo();try{n=A().readdirSync(r).some(e=>(e.isFile()||e.isSymbolicLink())&&e.name.endsWith(`.json`)&&!e.name.startsWith(`.`))}catch{}return{hasBase:t,hasDropIns:n}}function Pu(e,t){typeof e==`object`&&e&&`code`in e&&e.code===`ENOENT`?O(`Broken symlink or missing file encountered for settings.json at path: ${t}`):j(e)}function Fu(e){let t=je(e);if(t)return{settings:t.settings?_t(t.settings):null,errors:t.errors};let n=Iu(e);return Je(e,n),{settings:n.settings?_t(n.settings):null,errors:n.errors}}function Iu(e){try{let{resolvedPath:t}=yt(A(),e),n=Ka(t);if(n.trim()===``)return{settings:{},errors:[]};let r=pe(n,!1),i=eu(r,e),a=Y().safeParse(r);if(!a.success){let t=Ql(a.error,e);return{settings:null,errors:[...i,...t]}}return{settings:a.data,errors:i}}catch(t){return Pu(t,e),{settings:null,errors:[]}}}function Lu(e){switch(e){case`userSettings`:return F(p());case`policySettings`:case`projectSettings`:case`localSettings`:return F(rt());case`flagSettings`:{let e=Ze();return e?N(F(e)):F(rt())}}}function Ru(){return Ee()||m(process.env.CLAUDE_CODE_USE_COWORK_PLUGINS)?`cowork_settings.json`:`settings.json`}function zu(e){switch(e){case`userSettings`:return P(Lu(e),Ru());case`projectSettings`:case`localSettings`:return P(Lu(e),Bu(e));case`policySettings`:return ju();case`flagSettings`:return Ze()}}function Bu(e){switch(e){case`projectSettings`:return P(`.workmate`,`settings.json`);case`localSettings`:return P(`.workmate`,`settings.local.json`)}}function Q(e){let t=Ge(e);if(t!==void 0)return t;let n=Vu(e);return ct(e,n),n}function Vu(e){if(e===`policySettings`){let e=yu();if(Object.keys(e.settings).length>0)return e.settings;let{settings:t}=Mu();if(t)return t;let n=bu();return Object.keys(n.settings).length>0?n.settings:null}let t=zu(e),{settings:n}=t?Fu(t):{settings:null};if(e===`flagSettings`){let e=Ie();if(e){let t=Y().safeParse(e);if(t.success)return G(n||{},t.data,$)}}return n}function Hu(){let e=yu();if(Object.keys(e.settings).length>0)return M()===`macos`?`plist`:`hklm`;let{settings:t}=Mu();if(t)return`file`;let n=bu();return Object.keys(n.settings).length>0?`hkcu`:null}function Uu(e,t){if(e===`policySettings`||e===`flagSettings`)return{error:null};let n=zu(e);if(!n)return{error:null};try{A().mkdirSync(N(n));let r=Vu(e);if(!r){let e=null;try{e=Ka(n)}catch(e){if(!ht(e))throw e}if(e!==null){let t=pe(e);if(t===null)return{error:Error(`Invalid JSON syntax in settings file at ${n}`)};t&&typeof t==`object`&&(r=t,O(`Using raw settings from ${n} due to validation failure`))}}let i=G(r||{},t,(e,t,n,r)=>{if(t===void 0&&r&&typeof n==`string`){delete r[n];return}if(Array.isArray(t))return t});Lo(n),ho(n,`${ft(i,null,2)}\n`),we(),e===`localSettings`&&wo(Bu(`localSettings`),rt())}catch(e){let t=Error(`Failed to read raw settings from ${n}: ${e}`);return j(t),{error:t}}return{error:null}}function Wu(e,t){return Va([...e,...t])}function $(e,t){if(Array.isArray(e)&&Array.isArray(t))return Wu(e,t)}function Gu(e){let t=Y().strip().parse(e),n=[`permissions`,`sandbox`,`hooks`],r=[],i={permissions:new Set([`allow`,`deny`,`ask`,`defaultMode`,`disableBypassPermissionsMode`,`disableAutoMode`,`additionalDirectories`]),sandbox:new Set([`enabled`,`failIfUnavailable`,`allowUnsandboxedCommands`,`network`,`filesystem`,`ignoreViolations`,`excludedCommands`,`autoAllowBashIfSandboxed`,`enableWeakerNestedSandbox`,`enableWeakerNetworkIsolation`,`ripgrep`]),hooks:new Set([`PreToolUse`,`PostToolUse`,`Notification`,`UserPromptSubmit`,`SessionStart`,`SessionEnd`,`Stop`,`SubagentStop`,`PreCompact`,`PostCompact`,`TeammateIdle`,`TaskCreated`,`TaskCompleted`])};for(let e of Object.keys(t))if(n.includes(e)&&t[e]&&typeof t[e]==`object`){let n=t[e],a=i[e];if(a)for(let t of Object.keys(n))a.has(t)&&r.push(`${e}.${t}`)}else r.push(e);return r.sort()}function Ku(){if(ed)return{settings:{},errors:[]};let e=Date.now();Ut(`loadSettingsFromDisk_start`),z(`info`,`settings_load_started`),ed=!0;try{let t=We(),n={};t&&(n=G(n,t,$));let r=[],i=new Set,a=new Set;for(let e of jo()){if(e===`policySettings`){let e=null,t=[];{let n=yu();Object.keys(n.settings).length>0&&(e=n.settings),t.push(...n.errors)}if(!e){let{settings:n,errors:r}=Mu();n&&(e=n),t.push(...r)}if(!e){let n=bu();Object.keys(n.settings).length>0&&(e=n.settings),t.push(...n.errors)}e&&(n=G(n,e,$));for(let e of t){let t=`${e.file}:${e.path}:${e.message}`;i.has(t)||(i.add(t),r.push(e))}continue}let t=zu(e);if(t){let e=F(t);if(!a.has(e)){a.add(e);let{settings:o,errors:s}=Fu(t);for(let e of s){let t=`${e.file}:${e.path}:${e.message}`;i.has(t)||(i.add(t),r.push(e))}o&&(n=G(n,o,$))}}if(e===`flagSettings`){let e=Ie();if(e){let t=Y().safeParse(e);t.success&&(n=G(n,t.data,$))}}}return z(`info`,`settings_load_completed`,{duration_ms:Date.now()-e,source_count:a.size,error_count:r.length}),{settings:n,errors:r}}finally{ed=!1}}function qu(){let{settings:e}=Yu();return e||{}}function Ju(){we();let e=[];for(let t of jo()){let n=Q(t);n&&Object.keys(n).length>0&&e.push({source:t,settings:n})}return{effective:qu(),sources:e}}function Yu(){let e=Ke();if(e!==null)return e;let t=Ku();return Ut(`loadSettingsFromDisk_end`),ot(t),t}function Xu(){return!!(Q(`userSettings`)?.skipDangerousModePermissionPrompt||Q(`localSettings`)?.skipDangerousModePermissionPrompt||Q(`flagSettings`)?.skipDangerousModePermissionPrompt||Q(`policySettings`)?.skipDangerousModePermissionPrompt)}function Zu(){return!0}function Qu(){return Q(`policySettings`)?.useAutoModeDuringPlan!==!1&&Q(`flagSettings`)?.useAutoModeDuringPlan!==!1&&Q(`userSettings`)?.useAutoModeDuringPlan!==!1&&Q(`localSettings`)?.useAutoModeDuringPlan!==!1}function $u(e){for(let t of jo()){if(t===`policySettings`)continue;let n=zu(t);if(n)try{let{resolvedPath:t}=yt(A(),n),r=Ka(t);if(!r.trim())continue;let i=pe(r,!1);if(i&&typeof i==`object`&&e in i)return!0}catch(e){Pu(e,n)}}return!1}var ed,td,nd=e((()=>{Ra(),ze(),Ha(),bt(),$n(),ne(),pt(),xo(),qa(),k(),To(),_e(),Et(),Bt(),xt(),Ht(),Io(),Vo(),Wo(),Au(),Be(),zl(),tu(),ed=!1,td=qu}));export{Zc as $,Ui as $n,Wn as $r,zo as $t,$l as A,vo as An,Hr as Ar,Ds as At,pl as B,Ga as Bn,xr as Br,vs as Bt,yu as C,eo as Cn,ti as Cr,Gs as Ct,gu as D,go as Dn,Lr as Dr,Ms as Dt,xu as E,po as En,$r as Er,Is as Et,Al as F,ho as Fn,Rr as Fr,Ts as Ft,il as G,ja as Gn,fr as Gr,rs as Gt,sl as H,Ha as Hn,Or as Hr,ms as Ht,Ml as I,to as In,Gr as Ir,Es as It,el as J,va as Jn,$n as Jr,Yo as Jt,al as K,Aa as Kn,sr as Kr,is as Kt,ul as L,Ua as Ln,Mr as Lr,Cs as Lt,Y as M,mo as Mn,zr as Mr,ws as Mt,zl as N,fo as Nn,Ur as Nr,ys as Nt,pu as O,_o as On,Fr as Or,Ns as Ot,jl as P,co as Pn,Wr as Pr,Ss as Pt,Jc as Q,Zi as Qn,Xn as Qr,Wo as Qt,vl as R,qa as Rn,cr as Rr,xs as Rt,bu as S,$a as Sn,Xr as Sr,Ws as St,Su as T,lo as Tn,Kr as Tr,zs as Tt,ol as U,za as Un,Sr as Ur,us as Ut,ml as V,Ba as Vn,Cr as Vr,ps as Vt,cl as W,Va as Wn,B as Wr,K as Wt,tl as X,ea as Xn,Qn as Xr,Ho as Xt,nl as Y,sa as Yn,z as Yr,Qo as Yt,rl as Z,Xi as Zn,Yn as Zr,Uo as Zt,Fu as _,io as _n,vi as _r,Hc as _t,Bu as a,Rn as ai,ko as an,W as ar,Gc as at,Uu as b,so as bn,ni as br,Ks as bt,Lu as c,Ln as ci,Do as cn,li as cr,Ic as ct,td as d,Cn as di,Ao as dn,_i as dr,xc as dt,Gn as ei,Ro as en,Bi as er,Xc as et,Qu as f,wn as fi,To as fn,mi as fr,cc as ft,Mu as g,yn as gi,uo as gn,Di as gr,jc as gt,nd as h,vn as hi,yo as hn,di as hr,Ac as ht,Hu as i,Vn as ii,jo as in,Vi as ir,Kc as it,Rl as j,Qa as jn,jr,As as jt,tu as k,Za as kn,Vr as kr,Os as kt,Yu as l,jn as li,Io as ln,si as lr,zc as lt,Xu as m,Sn as mi,bo as mn,ui as mr,Tc as mt,Nu as n,Un as ni,No as nn,Gi as nr,Yc as nt,zu as o,zn as oi,Oo as on,Mi as or,Uc as ot,Zu as p,bn as pi,So as pn,zi as pr,Mc as pt,$c as q,ba as qn,er as qr,fs as qt,Gu as r,Bn as ri,Po as rn,Wi as rr,Qc as rt,Q as s,Mn as si,Eo as sn,gi as sr,Zs as st,qu as t,Hn as ti,Vo as tn,Hi as tr,qc as tt,Ju as u,An as ui,Mo as un,ci as ur,Vc as ut,$u as v,no as vn,pi as vr,Xs as vt,Au as w,xo as wn,ei as wr,Rs as wt,vu as x,oo as xn,ii as xr,Js as xt,$ as y,ro as yn,ai as yr,Ys as yt,ll as z,Ka as zn,V as zr,_s as zt};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r,s as i}from"./envUtils-DfkgIdYf.js";import{di as a,fi as o}from"./src-DL3w8VPk.js";import{Dn as s,F as c,Hn as l,Pt as u,Tn as ee,X as te,at as ne}from"./state-BQ4BEGin.js";import{$b as d,$d as f,$h as p,$w as m,A_ as h,An as g,At as _,Bs as v,Cm as re,Di as ie,Hb as ae,Jh as y,Ji as oe,Ks as se,Mi as ce,Qb as le,Qd as ue,Qh as de,St as fe,T_ as pe,Ub as b,Vs as x,Ws as S,Xb as C,Xh as w,Yb as T,Yh as E,Zh as D,Zw as O,ag as k,ai as A,bf as j,cb as M,dg as N,eg as P,ex as F,gf as I,gr as L,gt as R,hf as z,ht as B,ig as me,jn as he,kn as ge,mn as _e,ng as ve,og as ye,pg as V,pn as be,rg as xe,sb as Se,tg as Ce,ug as we,vt as H,wm as Te,xS as Ee,xf as De,ya as U,yf as Oe}from"./loadAgentsDir-DGozQu_6.js";import{n as ke,t as W}from"./cwd-BvNt_018.js";import{I as G,M as Ae,N as je,f as Me,u as Ne}from"./debug-CRnGsZOV.js";import{Dr as Pe,Hn as Fe,Ir as Ie,Jr as Le,Mr as Re,Or as ze,Vn as Be,Wt as Ve,Yr as K,qt as He}from"./settings-CodSADx8.js";import{a as Ue,d as We}from"./config-CWPHVTic.js";import{o as Ge,s as Ke}from"./log-DoSpAwRP.js";import{n as q}from"./analytics-COpjZpvd.js";import{n as qe,r as J}from"./startupProfiler-DF0AjiDf.js";import{X as Je,Y as Ye}from"./model-DpZaKZMb.js";import{pn as Xe,un as Y}from"./prompt-DzO1um1h.js";import{a as Ze,r as Qe}from"./projectOnboardingState--L3BKjOE.js";import{j as $e,k as X}from"./sessionTracing-D7rekMdW.js";import{i as et,n as tt}from"./appleTerminalBackup-CT7g8yOs.js";import{c as nt,t as rt}from"./nativeInstaller-SmPeEisk.js";import{l as Z,s as it}from"./logoUtils-DLd6JKqW.js";import{i as at,r as ot}from"./runtimeObserver-DMSzdFWt.js";import{t as st}from"./sinks-CiupmfTg.js";import{writeFile as Q}from"fs/promises";r(),o(),u(),ke(),Le(),Ge(),Ie(),He(),We(),m(),d(),T(),ae(),Te(),ce(),L(),_e(),t(),Xe(),M(),Fe(),S(),Me(),ue(),oe(),he(),Ye(),N(),q(),z(),j(),p(),G();function ct(){return!1}function lt(){return{}}var $;function ut(e,t){let n=0,r=t==null;for(let i of e){if(!r){i.uuid===t&&(r=!0);continue}if(i.type===`assistant`){let e=i.message.content;Array.isArray(e)&&(n+=Be(e,e=>e.type===`tool_use`))}}return n}function dt(e){let t=V(e);if(!P()){if(!D(t))return!1;xe()}let n=de(t),r=ut(e,$)>=w(),i=U(e);if(n&&r||n&&!i){let t=e[e.length-1];return t?.uuid&&($=t.uuid),!0}return!1}async function ft(e){let t=Ne(),n=ge();await t.mkdir(n,{mode:448});let r=g();try{await Q(r,``,{encoding:`utf-8`,mode:384,flag:`wx`}),await Q(r,await De(),{encoding:`utf-8`,mode:384})}catch(e){if(je(e)!==`EEXIST`)throw e}e.readFileState.delete(r);let i=await Se.call({file_path:r},e),a=``,o=i.data;return o.type===`text`&&(a=o.file.content),a.length,{memoryPath:r,currentMemory:a}}var pt=e(()=>{let e=lt();ye({minimumMessageTokensToInit:e.minimumMessageTokensToInit&&e.minimumMessageTokensToInit>0?e.minimumMessageTokensToInit:y.minimumMessageTokensToInit,minimumTokensBetweenUpdate:e.minimumTokensBetweenUpdate&&e.minimumTokensBetweenUpdate>0?e.minimumTokensBetweenUpdate:y.minimumTokensBetweenUpdate,toolCallsBetweenUpdates:e.toolCallsBetweenUpdates&&e.toolCallsBetweenUpdates>0?e.toolCallsBetweenUpdates:y.toolCallsBetweenUpdates})}),mt=Je(async e=>{let{messages:t,toolUseContext:n,querySource:r}=e;if(r!==`repl_main_thread`||!ct()||(pt(),!dt(t)))return;ve();let i=x(n),{memoryPath:a,currentMemory:o}=await ft(i);await se({promptMessages:[Ee({content:await Oe(o,a)})],cacheSafeParams:v(e),canUseTool:gt(a),querySource:`session_memory`,forkLabel:`session_memory`,overrides:{readFileState:i.readFileState}});let s=t[t.length-1],c=s?we(s):void 0,l=E();c?.input_tokens,c?.output_tokens,c?.cache_read_input_tokens,c?.cache_creation_input_tokens,l.minimumMessageTokensToInit,l.minimumTokensBetweenUpdate,l.toolCallsBetweenUpdates,me(V(t)),_t(t),Ce()});function ht(){I()&&f(mt)}function gt(e){return async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${Y} on ${e} is allowed`,decisionReason:{type:`other`,reason:`only ${Y} on ${e} is allowed`}}}}function _t(e){if(!U(e)){let t=e[e.length-1];t?.uuid&&k(t.uuid)}}q(),at(),et(),h(),$e(),G(),Z(),rt(),Qe(),qe(),fe();async function vt(e,t,r,o,u,d,f,p){K(`info`,`setup_started`);let m=process.version.match(/^v(\d+)\./)?.[1];if((!m||parseInt(m,10)<18)&&(console.error(a.bold.red(`Error: Work Mate requires Node.js version 18 or higher.`)),process.exit(1)),f&&l(re(f)),!c())try{let e=await tt();e.status===`restored`?console.log(a.yellow(`Detected an interrupted Terminal.app setup. Your original settings have been restored. You may need to restart Terminal.app for the changes to take effect.`)):e.status===`failed`&&console.error(a.red(`Failed to restore Terminal.app settings. Please manually restore your original settings with: defaults import com.apple.Terminal ${e.backupPath}.`))}catch(e){Ke(e)}b(e);let h=Date.now();if(le(),K(`info`,`setup_hooks_captured`,{duration_ms:Date.now()-h}),C(e),o){let t=be(),n=await Re();!t&&!n&&(process.stderr.write(a.red(`Error: Can only use --worktree in a git repository, but ${a.bold(e)} is not a git repository. Configure a WorktreeCreate hook in settings.json to use --worktree with other VCS systems.\n`)),process.exit(1));let r=p?`pr-${p}`:u??O(),i;if(n){let e=Pe(W());e||(process.stderr.write(a.red(`Error: Could not determine the main git repository root.
|
|
2
|
-
`)),process.exit(1)),e!==(ze(W())??W())&&(K(`info`,`worktree_resolved_to_main_repo`),process.chdir(e),b(e)),i=d?H(e,_(r)):void 0}else i=d?H(W(),_(r)):void 0;let o;try{o=await R(ne(),r,i,p?{prNumber:p}:void 0)}catch(e){process.stderr.write(a.red(`Error creating worktree: ${Ae(e)}\n`)),process.exit(1)}if(d&&i){let e=await B(i,o.worktreePath);e.created?console.log(a.green(`Created tmux session: ${a.bold(i)}\nTo attach: ${a.bold(`tmux attach -t ${i}`)}`)):console.error(a.yellow(`Warning: Failed to create tmux session: ${e.error}`))}process.chdir(o.worktreePath),b(o.worktreePath),ee(W()),s(W()),A(o),pe(),F()}K(`info`,`setup_background_jobs_starting`),i()||(ht(),ot()),nt(),K(`info`,`setup_background_jobs_launched`),J(`setup_before_prefetch`),K(`info`,`setup_prefetch_starting`);let g=c()&&n(process.env.CLAUDE_CODE_SYNC_PLUGIN_INSTALL)||i();if(g||ie(te()),import(`./loadPluginHooks-BiHPKDaY.js`).then(e=>{g||(e.loadPluginHooks(),e.setupPluginHookHotReload())}),i()||import(`./sessionFileAccessHooks-Rgsp4_Ex.js`).then(e=>e.registerSessionFileAccessHooks()),st(),J(`setup_after_prefetch`),!i()&&Ze()&&await it(),t===`bypassPermissions`||r){if(process.platform!==`win32`&&typeof process.getuid==`function`&&process.getuid()===0&&process.env.IS_SANDBOX!==`1`&&!n(process.env.CLAUDE_CODE_BUBBLEWRAP))if(process.stdin.isTTY){console.error(a.bold.red(`WARNING: Running as root/sudo with bypass permissions mode is dangerous.`)),console.error(a.yellow(`Bypass mode skips ALL permission checks. Combined with root, any command (rm -rf /, chmod, dd) executes without review.`));let e=(await import(`readline`)).createInterface({input:process.stdin,output:process.stdout}),t=await new Promise(t=>{e.question(`
|
|
3
|
-
I understand the risks. Continue? [y/N] `,t)});e.close(),t.trim().toLowerCase()!==`y`&&(console.error(`Aborted.`),process.exit(1))}else console.error(`--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons`),process.exit(1);if(process.env.CLAUDE_CODE_ENTRYPOINT!==`local-agent`&&process.env.CLAUDE_CODE_ENTRYPOINT!==`claude-desktop`){let[e,t]=await Promise.all([X.getIsDocker(),Ve.hasInternetAccess()]),n=X.getIsBubblewrapSandbox(),r=process.env.IS_SANDBOX===`1`;(!(e||n||r)||t)&&(console.error(`--dangerously-skip-permissions can only be used in Docker/sandbox containers with no internet access but got Docker: ${e}, Bubblewrap: ${n}, IS_SANDBOX: ${r}, hasInternet: ${t}`),process.exit(1))}}let v=Ue();v.lastCost!==void 0&&v.lastDuration!==void 0&&(v.lastCost,v.lastAPIDuration,v.lastToolDuration,v.lastDuration,v.lastLinesAdded,v.lastLinesRemoved,v.lastTotalInputTokens,v.lastTotalOutputTokens,v.lastTotalCacheCreationInputTokens,v.lastTotalCacheReadInputTokens,v.lastFpsAverage,v.lastFpsLow1Pct,v.lastSessionId,{...v.lastSessionMetrics})}export{vt as setup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-CiupmfTg.js";export{e as initSinks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gn as e,Hn as t,Kn as n,Pt as r,Tn as i,U as a,at as o,h as s,vn as ee,yn as c}from"./state-BQ4BEGin.js";import{$w as te,A_ as ne,Ci as re,Cm as ie,Gi as ae,Gm as l,Gw as u,Hb as oe,Hf as se,In as ce,Km as le,Mi as d,Nt as ue,Ot as f,Qw as p,Rr as m,Si as de,St as fe,T_ as h,Ub as g,Uf as pe,Ui as _,Vi as me,Wi as he,Ww as ge,Xr as _e,Xs as v,Yr as y,ai as b,am as x,dn as S,ec as C,f_ as w,gr as T,mn as E,nb as D,ni as O,ns as k,p_ as A,pp as j,rb as M,rm as N,ts as P,wm as F,yt as I}from"./loadAgentsDir-DGozQu_6.js";import{n as ve,t as L}from"./cwd-BvNt_018.js";import{$ as ye,c as R,et as be,f as xe,i as z,u as Se}from"./debug-CRnGsZOV.js";import{n as Ce}from"./analytics-COpjZpvd.js";import{f as we,v as Te}from"./model-DpZaKZMb.js";import{Gt as Ee}from"./prompt-DzO1um1h.js";import*as B from"path";import{dirname as De}from"path";r(),le(),w(),Ee(),F(),ne(),j(),v(),ve(),z(),x(),we(),te(),oe(),T(),D(),pe(),fe();function Oe(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.type!==`assistant`)continue;let r=n.message.content.find(e=>e.type===`tool_use`&&e.name===`TodoWrite`);if(r?.type!==`tool_use`)continue;let i=r.input;if(typeof i!=`object`||!i)return[];let a=se().safeParse(i.todos);return a.success?a.data:[]}return[]}function ke(e,t){if(e.fileHistorySnapshots&&e.fileHistorySnapshots.length>0&&N(e.fileHistorySnapshots,e=>{t(t=>({...t,fileHistory:e}))}),!M()&&e.messages&&e.messages.length>0){let n=Oe(e.messages);if(n.length>0){let e=o();t(t=>({...t,todos:{...t.todos,[e]:n}}))}}}function V(e,t){if(!(!e&&!t))return{name:e??``,color:t==="default"?void 0:t}}function H(e,t,n){if(t)return{agentDefinition:t,agentType:void 0};if(!e)return c(void 0),{agentDefinition:void 0,agentType:void 0};let r=n.activeAgents.find(t=>t.agentType===e);return r?(c(r.agentType),!a()&&r.model&&r.model!==`inherit`&&ee(Te(r.model)),{agentDefinition:r,agentType:r.agentType}):(R(`Resumed session had agent "${e}" but it is no longer available. Using default behavior.`),c(void 0),{agentDefinition:void 0,agentType:void 0})}function U(e){let t=I();if(t){b(t);return}if(e){try{process.chdir(e.worktreePath)}catch{b(null);return}g(e.worktreePath),i(L()),f(e),h(),l(),p.cache.clear?.()}}function Ae(){let e=I();if(e){f(null),h(),l(),p.cache.clear?.();try{process.chdir(e.originalCwd)}catch{return}g(e.originalCwd),i(L())}}async function je(e,n,r){if(n.forkSession)e.contentReplacements?.length&&await m(e.contentReplacements);else{let r=n.sessionIdOverride??e.sessionId;r&&(t(ie(r),n.transcriptPath?De(n.transcriptPath):null),await y(),A(r))}_e(n.forkSession?{...e,worktreeSession:void 0}:e),n.forkSession||(U(e.worktreeSession),ce());let{agentDefinition:i,agentType:a}=H(e.agentSetting,r.mainThreadAgentDefinition,r.agentDefinitions);O(`normal`),n.includeAttribution;let o=V(e.agentName,e.agentColor);C(e.agentName);let s=r.agentDefinitions;return{messages:e.messages,fileHistorySnapshots:e.fileHistorySnapshots,contentReplacements:e.contentReplacements,agentName:e.agentName,agentColor:e.agentColor==="default"?void 0:e.agentColor,restoredAgentDef:i,initialState:{...r.initialState,...a&&{agent:a},...o&&{standaloneAgentContext:o},agentDefinitions:s}}}u(),r(),d(),Ce(),he(),P(),ye(),z(),xe(),E(),n();var Me=1e3,Ne=500,Pe=300,Fe=2e3,Ie=typeof Bun<`u`,W=null,G=null,K=new Set,q=!1,J=!1,Y=!1,X=null,Z=e();async function Le(){if(q||J)return;q=!0,Y||(Y=!0,ae(()=>{de(),Z.emit()}));let e=await ze();e.length!==0&&(R(`Watching for changes in skill/command directories: ${e.join(`, `)}...`),W=ge.watch(e,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:Me,pollInterval:Ne},ignored:(e,t)=>t&&!t.isFile()&&!t.isDirectory()?!0:e.split(B.sep).some(e=>e===`.git`),ignorePermissionErrors:!0,usePolling:Ie,interval:Fe,atomic:!0}),W.on(`add`,$),W.on(`change`,$),W.on(`unlink`,$),X=be(async()=>{await Q()}))}function Q(){J=!0,X&&(X(),X=null);let e=Promise.resolve();return W&&(e=W.close(),W=null),G&&(clearTimeout(G),G=null),K.clear(),Z.clear(),e}var Re=Z.subscribe;async function ze(){let e=Se(),t=[],n=_(`userSettings`,`skills`);if(n)try{await e.stat(n),t.push(n)}catch{}let r=_(`userSettings`,`commands`);if(r)try{await e.stat(r),t.push(r)}catch{}let i=_(`projectSettings`,`skills`);if(i)try{let n=B.resolve(i);await e.stat(n),t.push(n)}catch{}let a=_(`projectSettings`,`commands`);if(a)try{let n=B.resolve(a);await e.stat(n),t.push(n)}catch{}for(let n of s()){let r=B.join(n,`.workmate`,`skills`);try{await e.stat(r),t.push(r)}catch{}}return t}function $(e){R(`Detected skill change: ${e}`),Be(e)}function Be(e){K.add(e),G&&clearTimeout(G),G=setTimeout(async()=>{G=null;let e=[...K];if(K.clear(),S(await ue(`skills`,e[0]))){R(`ConfigChange hook blocked skill reload (${e.length} paths)`);return}me(),re(),k(),Z.emit()},Pe)}var Ve={initialize:Le,dispose:Q,subscribe:Re};export{H as a,je as i,V as n,ke as o,Ae as r,U as s,Ve as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{I as n,P as r,ai as i,h as a,t as o,y as s}from"./src-DL3w8VPk.js";import{t as c}from"./jsx-runtime-Bb4Xn-E0.js";import{Hi as l,Mi as u,Ni as d,Wi as f,hd as p,md as m}from"./loadAgentsDir-DGozQu_6.js";import{ln as h,sn as g}from"./settings-CodSADx8.js";import{l as _,o as v}from"./stringUtils-Bu_lJH5c.js";import{_ as y,g as b}from"./startupProfiler-DF0AjiDf.js";function x(e,t){let n=t.trim();if(n===``)return e.slice();let r=n.toLowerCase().split(/\s+/);return e.filter(e=>{let t=`${e.name} ${e.description}`.toLowerCase();return r.every(e=>t.includes(e))})}var S=e((()=>{}));function C(e){return e===`plugin`?`plugin`:e===`mcp`?`mcp`:g(e)}function w({onExit:e,commands:t}){let[i,o]=(0,T.useState)(``),c=(0,T.useMemo)(()=>t.filter(e=>e.type===`prompt`&&(e.loadedFrom===`skills`||e.loadedFrom===`commands_DEPRECATED`||e.loadedFrom===`plugin`||e.loadedFrom===`mcp`)),[t]),u=(0,T.useMemo)(()=>x(c.map(e=>({...e,name:d(e),description:e.description??``})),i),[c,i]),f=(0,T.useMemo)(()=>{let e={policySettings:[],userSettings:[],projectSettings:[],localSettings:[],flagSettings:[],plugin:[],mcp:[]};for(let t of u){let n=t.source;n in e&&e[n].push(t)}for(let t of Object.values(e))t.sort((e,t)=>d(e).localeCompare(d(t)));return e},[u]),p=()=>{e(`Skills dialog dismissed`,{display:`system`})};if(c.length===0)return(0,E.jsxs)(s,{title:`Skills`,subtitle:`No skills found`,onCancel:p,hideInputGuide:!0,children:[(0,E.jsx)(r,{dimColor:!0,children:`Create skills in .workmate/skills/ or ~/.workmate/skills/`}),(0,E.jsx)(r,{dimColor:!0,italic:!0,children:(0,E.jsx)(m,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`close`})})]});let h=e=>{switch(e){case`projectSettings`:case`localSettings`:return{label:`local`,color:`yellow`};case`userSettings`:return{label:`global`,color:`cyan`};case`policySettings`:return{label:`managed`,color:`magenta`};default:return}},g=(e,t)=>{let i=`~${b(l(e))}`,a=e.source===`plugin`?e.pluginInfo?.pluginManifest.name:void 0,o=h(e.source);return(0,E.jsxs)(n,{children:[(0,E.jsx)(r,{color:t?`suggestion`:void 0,children:d(e)}),o&&(0,E.jsxs)(r,{color:o.color,children:[` [`,o.label,`]`]}),(0,E.jsxs)(r,{dimColor:!0,children:[a?` · ${a}`:``,` · `,C(e.source),` · `,i,` tokens`]})]})};return(0,E.jsx)(a,{title:`Skills`,placeholder:`Type to filter skills…`,items:(0,T.useMemo)(()=>D.flatMap(e=>f[e]),[f]),getKey:e=>`${e.name}-${e.source}`,visibleCount:12,direction:`down`,onQueryChange:o,onSelect:t=>{e(`/${d(t)}`,{display:`user`})},onCancel:p,emptyMessage:e=>e.trim()?`No skills matching "${e.trim()}"`:`No skills found`,matchLabel:i.trim()===``?`${c.length} ${_(c.length,`skill`)}`:`${u.length}/${c.length} ${_(c.length,`skill`)}`,selectAction:`invoke skill`,renderItem:(e,t)=>g(e,t)})}var T,E,D,O=e((()=>{T=t(i(),1),u(),o(),f(),y(),h(),v(),p(),S(),E=c(),D=[`projectSettings`,`localSettings`,`userSettings`,`flagSettings`,`policySettings`,`plugin`,`mcp`]}));async function k(e,t){return(0,A.jsx)(w,{onExit:e,commands:t.options.commands})}var A;e((()=>{O(),A=c()}))();export{k as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./startupProfiler-DF0AjiDf.js";e();export{t as profileCheckpoint};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Pt as e,at as t,t as n}from"./state-BQ4BEGin.js";e();export{n as addInvokedSkill,t as getSessionId};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./Settings-axHLvYIy.js";async function i(e,t){return(0,a.jsx)(r,{onClose:e,context:t,defaultTab:`Status`})}var a;e((()=>{n(),a=t()}))();export{i as call};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./defineProperty-C-QyHrDq.js";import{w as r,x as i}from"./debug-CRnGsZOV.js";import{a,s as o}from"./execFileNoThrow-BgRsj_SW.js";import{execSync as s}from"child_process";function c(e,t){return r`execSync: ${e.slice(0,100)}`,s(e,t)}var l=e((()=>{i()}));async function u(e){if(process.platform===`win32`){let t=await a(`where.exe ${e}`,{shell:!0,stderr:`ignore`,reject:!1});return t.exitCode!==0||!t.stdout?null:t.stdout.trim().split(/\r?\n/)[0]||null}let t=await a(`which ${e}`,{shell:!0,stderr:`ignore`,reject:!1});return t.exitCode!==0||!t.stdout?null:t.stdout.trim()}function d(e){if(process.platform===`win32`)try{return c(`where.exe ${e}`,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`ignore`]}).toString().trim().split(/\r?\n/)[0]||null}catch{return null}try{return c(`which ${e}`,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`ignore`]}).toString().trim()||null}catch{return null}}var f,p,m,h=e((()=>{o(),l(),f=typeof Bun<`u`&&typeof Bun.which==`function`?Bun.which:null,p=f?async e=>f(e):u,m=f??d}));function g(){return process.versions.bun!==void 0}function _(){return typeof Bun<`u`&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}var v=e((()=>{}));function y(e,t){return{cmd:m(e)??e,args:t}}var b=e((()=>{h()}));function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function S(e){return e.charAt(0).toUpperCase()+e.slice(1)}function C(e,t,n=`${t}s`){return e===1?t:n}function w(e){let t=e.indexOf(`
|
|
2
|
-
`);return t===-1?e:e.slice(0,t)}function T(e,t,n=0){let r=0,i=e.indexOf(t,n);for(;i!==-1;)r++,i=e.indexOf(t,i+1);return r}function E(e){return e.replace(/[0-9]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248))}function D(e){return e.replace(/\u3000/g,` `)}function O(e,t=`,`,n=A){let r=`...[truncated]`,i=``;for(let a of e){let e=i?t:``,o=e+a;if(i.length+o.length<=n)i+=o;else{let t=n-i.length-e.length-14;return t>0?i+=e+a.slice(0,t)+r:i+=r,i}}return i}function k(e,t){let n=e.split(`
|
|
3
|
-
`);return n.length<=t?e:`${n.slice(0,t).join(`
|
|
4
|
-
`)}…`}var A,j,M=e((()=>{t(),A=2**21,j=class{constructor(e=A){n(this,`maxSize`,void 0),n(this,`content`,``),n(this,`isTruncated`,!1),n(this,`totalBytesReceived`,0),this.maxSize=e}append(e){let t=typeof e==`string`?e:e.toString();if(this.totalBytesReceived+=t.length,!(this.isTruncated&&this.content.length>=this.maxSize))if(this.content.length+t.length>this.maxSize){let e=this.maxSize-this.content.length;e>0&&(this.content+=t.slice(0,e)),this.isTruncated=!0}else this.content+=t}toString(){if(!this.isTruncated)return this.content;let e=this.totalBytesReceived-this.maxSize,t=Math.round(e/1024);return`${this.content}\n... [output truncated - ${t}KB removed]`}clear(){this.content=``,this.isTruncated=!1,this.totalBytesReceived=0}get length(){return this.content.length}get truncated(){return this.isTruncated}get totalBytes(){return this.totalBytesReceived}}}));export{h as _,w as a,c as b,D as c,k as d,y as f,g,_ as h,x as i,C as l,v as m,S as n,M as o,b as p,T as r,E as s,j as t,O as u,p as v,l as x,m as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,r as t}from"./switcher-DMfuKuw_.js";t();export{e as restoreActiveProvider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{h as t,s as n}from"./settings-CodSADx8.js";import{i as r,n as i,r as a,t as o}from"./loader-CtoR-vO-.js";function s(e=a()){let t=n(`userSettings`)?.activeProviderId;if(t&&e.some(e=>e.id===t))return t;let r=process.env.OPENAI_BASE_URL,i=process.env.ANTHROPIC_BASE_URL;for(let t of e)if(t.kind===`anthropic-compat`&&i===t.baseUrl||t.kind===`openai-compat`&&r===t.baseUrl)return t.id}function c(e){if(e.apiKey)return e.apiKey;if(e.apiKeyEnv)return process.env[e.apiKeyEnv]}function l(e,t){let n=t??a(),r=o(e,n);if(!r){let t=n.map(e=>e.id).join(`, `);throw Error(`switchProvider: provider "${e}" not found. Available: ${t}`)}let i=r.kind===`anthropic-compat`?{ANTHROPIC_BASE_URL:r.baseUrl,ANTHROPIC_MODEL:r.defaultModel}:{CLAUDE_CODE_USE_OPENAI:`1`,OPENAI_BASE_URL:r.baseUrl,OPENAI_MODEL:r.defaultModel},s=[];if(r.kind===`openai-compat`){let e=process.env.CLAUDE_CODE_USE_OPENAI===`1`||!!process.env.OPENAI_API_KEY,t=!!process.env.ANTHROPIC_API_KEY;e&&t&&s.push(`Both ANTHROPIC_API_KEY and OpenAI-compat mode are set. ANTHROPIC_API_KEY is for workspace endpoints (/v1/agents, /v1/vaults). OpenAI-compat mode routes /v1/messages to a third-party provider. These are separate planes — verify this is intentional.`)}return!r.apiKey&&!r.apiKeyEnv?s.push(`Provider "${r.id}" has neither apiKey nor apiKeyEnv configured. Edit ~/.workmate/providers.json to add one.`):!r.apiKey&&r.apiKeyEnv&&!process.env[r.apiKeyEnv]&&s.push(`${r.apiKeyEnv} is not set in the current environment. Set it before starting Work Mate: export ${r.apiKeyEnv}=<your-api-key>`),{env:i,warnings:s,provider:r}}function u(e){return e.kind===`anthropic-compat`?`ANTHROPIC_API_KEY`:`OPENAI_API_KEY`}async function d(e,t){delete process.env.CLAUDE_CODE_USE_BEDROCK,delete process.env.CLAUDE_CODE_USE_VERTEX,delete process.env.CLAUDE_CODE_USE_FOUNDRY,delete process.env.CLAUDE_CODE_USE_GEMINI,delete process.env.CLAUDE_CODE_USE_GROK,e.kind===`anthropic-compat`?(delete process.env.CLAUDE_CODE_USE_OPENAI,delete process.env.OPENAI_BASE_URL,delete process.env.OPENAI_API_KEY,delete process.env.OPENAI_MODEL):(delete process.env.ANTHROPIC_BASE_URL,delete process.env.ANTHROPIC_API_KEY,delete process.env.ANTHROPIC_MODEL);let n=e.kind===`anthropic-compat`?{ANTHROPIC_BASE_URL:e.baseUrl,ANTHROPIC_API_KEY:t??``,ANTHROPIC_MODEL:e.defaultModel}:{CLAUDE_CODE_USE_OPENAI:`1`,OPENAI_BASE_URL:e.baseUrl,OPENAI_API_KEY:t??``,OPENAI_MODEL:e.defaultModel},{clearOpenAIClientCache:r}=await import(`./client-DO-O441l.js`);r();let{fetchAvailableModels:i}=await import(`./fetchModelList-uiCPVqbJ.js`);i.cache.clear();let{applyConfigEnvironmentVariables:a}=await import(`./managedEnv-BJGfe3m7.js`);a(),Object.assign(process.env,n)}async function f(e,t){let{provider:n,warnings:r}=l(e,t),i=c(n),a=u(n);i||r.push(`No API key available for provider "${n.id}" — ${a} will be empty. Set ${n.apiKeyEnv??`an env var`} or add an apiKey field in ~/.workmate/providers.json.`),await d(n,i);let{updateSettingsForSource:o}=await import(`./settings-8fwIkMDV.js`);return o(`userSettings`,{activeProviderId:n.id,modelType:n.kind===`anthropic-compat`?`anthropic`:`openai`}),{provider:n,warnings:r}}async function p(e){let{getSettingsForSource:t}=await import(`./settings-8fwIkMDV.js`),n=t(`userSettings`)?.activeProviderId;if(!n)return{kind:`no-active-provider`};let i=a(),s=o(n,i);if(!s)return{kind:`provider-not-found`,id:n};if(s.defaultModel===e)return{kind:`unchanged`,providerId:n,model:e};let c=s.defaultModel;return r(i.map(t=>t.id===n?{...t,defaultModel:e}:t)),{kind:`updated`,providerId:n,previousModel:c,newModel:e}}async function m(){let{getSettingsForSource:e}=await import(`./settings-8fwIkMDV.js`),t=e(`userSettings`)?.activeProviderId;if(!t)return null;let n=o(t);if(!n)return null;let r=[],i=c(n);if(!i){let e=u(n);r.push(`No API key available for provider "${n.id}" — ${e} will be empty. Set ${n.apiKeyEnv??`an env var`} or add an apiKey field in ~/.workmate/providers.json.`)}return await d(n,i),{provider:n,warnings:r}}var h=e((()=>{t(),i()}));export{m as a,p as i,s as n,l as o,h as r,f as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r}from"./envUtils-DfkgIdYf.js";import{di as i,fi as a,j as o,t as s}from"./src-DL3w8VPk.js";import{Pt as c,at as l}from"./state-BQ4BEGin.js";import{$a as u,$p as d,Bg as f,Db as p,FC as m,IC as h,Ob as g,Ug as ee,Vx as _,Ya as v,am as y,fo as te,gr as b,uo as x,vr as S,zx as C}from"./loadAgentsDir-DGozQu_6.js";import{n as w,t as T}from"./cwd-BvNt_018.js";import{c as ne,i as re}from"./debug-CRnGsZOV.js";import{Fr as E,Gt as D,Ir as O,Mr as k,Pr as A,Wt as j,d as M,h as N,qt as P,t as F}from"./settings-CodSADx8.js";import{a as I,d as L,h as R,l as z,m as B,o as V}from"./config-CWPHVTic.js";import{a as H,i as U,n as W,s as G}from"./execFileNoThrow-BgRsj_SW.js";import{o as K,s as q}from"./log-DoSpAwRP.js";import{i as J,n as Y}from"./platform-DsMIk3eq.js";import{Mt as X,Pt as ie}from"./model-DpZaKZMb.js";import{c as ae,i as oe}from"./terminalSetup-BgIXFBpd.js";re(),K(),U(),O(),m(),G(),t(),c(),L(),w(),P(),r();async function se(){}e(e=>({deviceId:z(),sessionId:l(),email:void 0,appVersion:`0.0.25`,platform:D(),userType:process.env.USER_TYPE,...n(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}));var ce=e(async()=>{let e=await H(`git config --get user.email`,{shell:!0,reject:!1,cwd:T()});return e.exitCode===0&&e.stdout?e.stdout.trim():void 0});t(),w(),L(),P();var le=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function ue(e){return!le.some(t=>t.test(e))}function de(e,t){let n=[],r=new Set,i=new Map;for(let a=1;n.length<t&&a<=t;a++)for(let o of e){if(n.length>=t)break;if(!ue(o))continue;let e=Math.max(o.lastIndexOf(`/`),o.lastIndexOf(`\\`)),s=e>=0?o.slice(e+1):o;if(!s||r.has(s))continue;let c=e>=0?o.slice(0,e):`.`;(i.get(c)??0)>=a||(n.push(s),r.add(s),i.set(c,(i.get(c)??0)+1))}return n.length>=t?n:[]}async function fe(){if(j.platform===`win32`||!await k())return[];try{let e=await ce(),t=[`log`,`-n`,`1000`,`--pretty=format:`,`--name-only`,`--diff-filter=M`],n=new Map,r=e=>{for(let t of e.split(`
|
|
2
|
-
`)){let e=t.trim();e&&n.set(e,(n.get(e)??0)+1)}};if(e){let{stdout:n}=await W(`git`,[...t,`--author=${e}`],{cwd:T()});r(n)}if(n.size<10){let{stdout:e}=await W(E(),t,{cwd:T()});r(e)}return de(Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e])=>e),5)}catch(e){return q(e),[]}}var pe=10080*60*1e3,me=e(()=>{let e=I(),t=e.exampleFiles?.length?h(e.exampleFiles):`<filepath>`;return`Try "${h([`fix lint errors`,`fix typecheck errors`,`how does ${t} work?`,`refactor ${t}`,`how do I log an error?`,`edit ${t} to...`,`write a test for ${t}`,`create a util logging.py that...`])}"`}),he=e(async()=>{let e=I();Date.now()-(e.exampleFilesGeneratedAt??0)>pe&&(e.exampleFiles=[]),e.exampleFiles?.length||fe().then(e=>{e.length&&B(t=>({...t,exampleFiles:e,exampleFilesGeneratedAt:Date.now()}))})});ie();var ge={"claude-3-opus":{modelName:`Work Mate 3 Opus`,retirementDates:{firstParty:`January 5, 2026`,bedrock:`January 15, 2026`,vertex:`January 5, 2026`,foundry:`January 5, 2026`}},"claude-3-7-sonnet":{modelName:`Work Mate 3.7 Sonnet`,retirementDates:{firstParty:`February 19, 2026`,bedrock:`April 28, 2026`,vertex:`May 11, 2026`,foundry:`February 19, 2026`}},"claude-3-5-haiku":{modelName:`Work Mate 3.5 Haiku`,retirementDates:{firstParty:`February 19, 2026`,bedrock:null,vertex:null,foundry:null}}};function _e(e){let t=e.toLowerCase(),n=X();for(let[e,r]of Object.entries(ge)){let i=r.retirementDates[n];if(!(!t.includes(e)||!i))return{isDeprecated:!0,modelName:r.modelName,retirementDate:i}}return{isDeprecated:!1}}function ve(e){if(!e)return null;let t=_e(e);return t.isDeprecated?`⚠ ${t.modelName} will be retired on ${t.retirementDate}. Consider switching to a newer model.`:null}a(),s(),J(),N(),_(),g(),ee(),y(),x(),v(),b(),oe(),L();function ye(e){let t=V().numStartups;R(n=>{let r=n.tipsHistory??{};return r[e]===t?n:{...n,tipsHistory:{...r,[e]:t}}})}function Z(e){let t=V(),n=t.tipsHistory?.[e];return n?t.numStartups-n:1/0}L(),P(),O();var Q;async function be(){return Q===void 0&&(Q=C in await te()),Q}async function $(e,t,n){if(!await be()||u(`${e}@claude-plugins-official`))return!1;let{bashTools:r}=t??{};return!!(n.cli&&r?.size&&n.cli.some(e=>r.has(e))||n.filePath&&t?.readFileState&&f(t.readFileState).some(e=>n.filePath.test(e)))}var xe=[{id:`new-user-warmup`,content:async()=>`Start with small features or bug fixes, tell Work Mate to propose a plan, and verify its suggested edits`,cooldownSessions:3,async isRelevant(){return V().numStartups<10}},{id:`plan-mode-for-complex-tasks`,content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${p(`chat:cycleMode`,`Chat`,`shift+tab`)} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let e=V();return(e.lastPlanModeUse?(Date.now()-e.lastPlanModeUse)/(1e3*60*60*24):1/0)>7}},{id:`default-permission-mode-config`,content:async()=>`Use /config to change your default permission mode (including Plan Mode)`,cooldownSessions:10,isRelevant:async()=>{try{let e=V(),t=M(),n=!!e.lastPlanModeUse,r=!!t?.permissions?.defaultMode;return n&&!r}catch(e){return ne(`Failed to check default-permission-mode-config tip relevance: ${e}`,{level:`warn`}),!1}}},{id:`git-worktrees`,content:async()=>`Use git worktrees to run multiple Work Mate sessions in parallel.`,cooldownSessions:10,isRelevant:async()=>{try{let e=V();return await A()<=1&&e.numStartups>50}catch{return!1}}},{id:`terminal-setup`,content:async()=>j.terminal===`Apple_Terminal`?`Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more`:`Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more`,cooldownSessions:10,async isRelevant(){let e=V();return j.terminal===`Apple_Terminal`?!e.optionAsMetaKeyInstalled:!e.shiftEnterKeyBindingInstalled}},{id:`shift-enter`,content:async()=>j.terminal===`Apple_Terminal`?`Press Option+Enter to send a multi-line message`:`Press Shift+Enter to send a multi-line message`,cooldownSessions:10,async isRelevant(){let e=V();return!!((j.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)&&e.numStartups>3)}},{id:`shift-enter-setup`,content:async()=>j.terminal===`Apple_Terminal`?`Run /terminal-setup to enable Option+Enter for new lines`:`Run /terminal-setup to enable Shift+Enter for new lines`,cooldownSessions:10,async isRelevant(){if(!ae())return!1;let e=V();return!(j.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)}},{id:`memory-command`,content:async()=>`Use /memory to view and manage Work Mate memory`,cooldownSessions:15,async isRelevant(){return V().memoryUsageCount<=0}},{id:`theme-command`,content:async()=>`Use /theme to change the color theme`,cooldownSessions:20,isRelevant:async()=>!0},{id:`colorterm-truecolor`,content:async()=>`Try setting environment variable COLORTERM=truecolor for richer colors`,cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&i.level<3},{id:`powershell-tool-env`,content:async()=>`Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)`,cooldownSessions:10,isRelevant:async()=>Y()===`windows`&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:`status-line`,content:async()=>`Use /statusline to set up a custom status line that will display beneath the input box`,cooldownSessions:25,isRelevant:async()=>M().statusLine===void 0},{id:`prompt-queue`,content:async()=>`Hit Enter to queue up additional messages while Work Mate is working.`,cooldownSessions:5,async isRelevant(){return V().promptQueueUseCount<=3}},{id:`enter-to-steer-in-relatime`,content:async()=>`Send messages to Work Mate while it works to steer Work Mate in real-time`,cooldownSessions:20,isRelevant:async()=>!0},{id:`todo-list`,content:async()=>`Ask Work Mate to create a todo list when working on complex tasks to track progress and remain on track`,cooldownSessions:20,isRelevant:async()=>!0},{id:`permissions`,content:async()=>`Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools`,cooldownSessions:10,async isRelevant(){return V().numStartups>10}},{id:`drag-and-drop-images`,content:async()=>`Did you know you can drag and drop image files into your terminal?`,cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:`paste-images-mac`,content:async()=>`Paste images into Work Mate using control+v (not cmd+v!)`,cooldownSessions:10,isRelevant:async()=>Y()===`macos`},{id:`double-esc`,content:async()=>`Double-tap esc to rewind the conversation to a previous point in time`,cooldownSessions:10,isRelevant:async()=>!d()},{id:`double-esc-code-restore`,content:async()=>`Double-tap esc to rewind the code and/or conversation to a previous point in time`,cooldownSessions:10,isRelevant:async()=>d()},{id:`continue`,content:async()=>`Run claude --continue or claude --resume to resume a conversation`,cooldownSessions:10,isRelevant:async()=>!0},{id:`rename-conversation`,content:async()=>`Name your conversations with /rename to find them easily in /resume later`,cooldownSessions:15,isRelevant:async()=>S()&&V().numStartups>10},{id:`custom-commands`,content:async()=>`Create skills by adding .md files to .workmate/skills/ in your project or ~/.workmate/skills/ for skills that work in any project`,cooldownSessions:15,async isRelevant(){return V().numStartups>10}},{id:`shift-tab`,content:async()=>`Hit ${p(`chat:cycleMode`,`Chat`,`shift+tab`)} to cycle between default, accept edits, plan, auto, and bypass modes`,cooldownSessions:10,isRelevant:async()=>!0},{id:`image-paste`,content:async()=>`Use ${p(`chat:imagePaste`,`Chat`,`ctrl+v`)} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:`custom-agents`,content:async()=>`Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer`,cooldownSessions:15,async isRelevant(){return V().numStartups>5}},{id:`agent-flag`,content:async()=>`Use --agent <agent_name> to directly start a conversation with a subagent`,cooldownSessions:15,async isRelevant(){return V().numStartups>5}},{id:`frontend-design-plugin`,content:async e=>`Working with HTML/CSS? Install the frontend-design plugin:\n${o(`suggestion`,e?.theme??`dark`)(`/plugin install frontend-design@${C}`)}`,cooldownSessions:3,isRelevant:async e=>$(`frontend-design`,e,{filePath:/\.(html|css|htm)$/i})},{id:`vercel-plugin`,content:async e=>`Working with Vercel? Install the vercel plugin:\n${o(`suggestion`,e?.theme??`dark`)(`/plugin install vercel@${C}`)}`,cooldownSessions:3,isRelevant:async e=>$(`vercel`,e,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:[`vercel`]})},{id:`subagent-fanout-nudge`,content:async e=>`Say ${o(`suggestion`,e?.theme??`dark`)(`"fan out subagents"`)} and Work Mate sends a team. Each one digs deep so nothing gets missed.`,cooldownSessions:3,isRelevant:async()=>!1}],Se=[];function Ce(){let e=F().spinnerTipsOverride;return e?.tips?.length?e.tips.map((e,t)=>({id:`custom-tip-${t}`,content:async()=>e,cooldownSessions:0,isRelevant:async()=>!0})):[]}async function we(e){let t=F().spinnerTipsOverride,n=Ce();if(t?.excludeDefault&&n.length>0)return n;let r=[...xe,...Se],i=await Promise.all(r.map(t=>t.isRelevant?.(e)??Promise.resolve(!0)));return[...r.filter((e,t)=>i[t]).filter(e=>Z(e.id)>=e.cooldownSessions),...n]}export{me as a,ve as i,Z as n,he as o,ye as r,se as s,we as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Cv as t,NC as n,PC as r,wv as i}from"./loadAgentsDir-DGozQu_6.js";import{n as a,t as o}from"./partition-CwxTlmMd.js";function s(e,t,n){let[o,s]=a(r([...e,...t],`name`),i),c=(e,t)=>e.name.localeCompare(t.name);return[...s.sort(c),...o.sort(c)]}var c=e((()=>{o(),n(),t()}));export{s as n,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,o as t}from"./envUtils-DfkgIdYf.js";import{I as n,M as r,S as i,c as a,i as o,x as s,z as c}from"./debug-CRnGsZOV.js";import{o as l}from"./log-DoSpAwRP.js";import{a as u,i as d}from"./genericProcessUtils-BNlr-QxM.js";import"os";import{join as f}from"path";import"crypto";import{readFile as p,readdir as m}from"fs/promises";import"net";import"node:string_decoder";t(),o(),d(),n(),s(),n(),l(),s(),t(),o(),n(),s();function h(){return f(e(),`sessions`)}async function g(){let e=h(),t;try{t=await m(e)}catch(e){return c(e)||a(`[udsClient] readdir failed: ${r(e)}`),[]}let n=[];for(let r of t){if(!/^\d+\.json$/.test(r))continue;let t=parseInt(r.slice(0,-5),10);if(u(t))try{let a=i(await p(f(e,r),`utf8`));n.push({pid:t,sessionId:a.sessionId,cwd:a.cwd,startedAt:a.startedAt,kind:a.kind,name:a.name,messagingSocketPath:a.messagingSocketPath,entrypoint:a.entrypoint,bridgeSessionId:a.bridgeSessionId,alive:!0})}catch{}}return n}export{g as listAllLiveSessions};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
async function e(e){return t()}function t(){for(let e of[`CLAUDE_CODE_URL_EVENT`,`CLAUDE_CODE_DEEP_LINK_URL`,`CLAUDE_CODE_URL`]){let t=process.env[e];if(n(t))return t}return process.argv.find(n)??null}function n(e){return typeof e==`string`&&e.length<=2048&&(e.startsWith(`claude-cli://`)||e.startsWith(`claude://`))}export{e as waitForUrlEvent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Bp as t,zp as n}from"./loadAgentsDir-DGozQu_6.js";import{f as r,i,v as a}from"./model-DpZaKZMb.js";function o(){let e=t(e=>e.mainLoopModel);return a(t(e=>e.mainLoopModelForSession)??e??i())}var s=e((()=>{n(),r()}));export{o as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{ai as t}from"./src-DL3w8VPk.js";import{Bp as n,Fa as r,Go as i,Hp as a,Hv as o,Ko as s,Pa as c,Vv as l,Xo as u,Zo as d,ap as f,ch as p,cp as m,rp as h,sh as g,sp as _,zp as v}from"./loadAgentsDir-DGozQu_6.js";import{I as y,V as b,c as x,i as S}from"./debug-CRnGsZOV.js";import{Hn as C,Jr as w,Vn as T,Yr as E}from"./settings-CodSADx8.js";import{o as D,s as O}from"./log-DoSpAwRP.js";import{n as k}from"./analytics-COpjZpvd.js";import{n as A,t as j}from"./notifications-ql0eSo0Y.js";import{n as M,r as N}from"./pluginFlagging-BO_3qjfs.js";import{t as P}from"./pluginBlocklist-BAr9WTup.js";var F=e(t(),1);j(),k(),h(),v(),C(),S(),w(),y(),D(),u(),s(),g(),_(),l(),N(),c();function I({enabled:e=!0}={}){let t=a(),s=n(e=>e.plugins.needsRefresh),{addNotification:c}=A(),l=(0,F.useCallback)(async()=>{try{let{enabled:e,disabled:n,errors:a}=await r();await P();let s=M();Object.keys(s).length>0&&c({key:`plugin-delisted-flagged`,text:`Plugins flagged. Check /plugins`,color:`warning`,priority:`high`});let l=[],u=[];try{l=await i()}catch(e){let t=e instanceof Error?e.message:String(e);a.push({type:`generic-error`,source:`plugin-commands`,error:`Failed to load plugin commands: ${t}`})}try{u=await d()}catch(e){let t=e instanceof Error?e.message:String(e);a.push({type:`generic-error`,source:`plugin-agents`,error:`Failed to load plugin agents: ${t}`})}try{await p()}catch(e){let t=e instanceof Error?e.message:String(e);a.push({type:`generic-error`,source:`plugin-hooks`,error:`Failed to load plugin hooks: ${t}`})}let h=(await Promise.all(e.map(async e=>{if(e.mcpServers)return Object.keys(e.mcpServers).length;let t=await o(e,a);return t&&(e.mcpServers=t),t?Object.keys(t).length:0}))).reduce((e,t)=>e+t,0),g=(await Promise.all(e.map(async e=>{if(e.lspServers)return Object.keys(e.lspServers).length;let t=await m(e,a);return t&&(e.lspServers=t),t?Object.keys(t).length:0}))).reduce((e,t)=>e+t,0);f(),t(t=>{let r=t.plugins.errors.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),i=new Set(a.map(e=>e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`)),o=[...r.filter(e=>{let t=e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`;return!i.has(t)}),...a];return{...t,plugins:{...t.plugins,enabled:e,disabled:n,commands:l,errors:o}}}),x(`Loaded plugins - Enabled: ${e.length}, Disabled: ${n.length}, Commands: ${l.length}, Agents: ${u.length}, Errors: ${a.length}`);let _=e.reduce((e,t)=>t.hooksConfig?e+Object.values(t.hooksConfig).reduce((e,t)=>e+(t?.reduce((e,t)=>e+t.hooks.length,0)??0),0):e,0);return{enabled_count:e.length,disabled_count:n.length,inline_count:T(e,e=>e.source.endsWith(`@inline`)),marketplace_count:T(e,e=>!e.source.endsWith(`@inline`)),error_count:a.length,skill_count:l.length,agent_count:u.length,hook_count:_,mcp_count:h,lsp_count:g}}catch(e){let n=b(e);return O(n),x(`Error loading plugins: ${e}`),t(e=>{let t=e.plugins.errors.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),r={type:`generic-error`,source:`plugin-system`,error:n.message};return{...e,plugins:{...e.plugins,enabled:[],disabled:[],commands:[],errors:[...t,r]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[t,c]);(0,F.useEffect)(()=>{e&&l().then(e=>{let{ant_enabled_names:t,...n}=e,r={...n,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};({...r,...t!==void 0&&{enabled_names:t}}),E(`info`,`tengu_plugins_loaded`,r)})},[l,e]),(0,F.useEffect)(()=>{!e||!s||c({key:`plugin-reload-pending`,text:`Plugins changed. Run /reload-plugins to activate.`,color:`suggestion`,priority:`low`})},[e,s,c])}export{I as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{ai as n}from"./src-DL3w8VPk.js";import{Cc as r,Dc as i}from"./loadAgentsDir-DGozQu_6.js";import{n as a,t as o}from"./toolPool-DHS8jWaL.js";function s(e,t,n){return(0,c.useMemo)(()=>a(e,r(n,t),n.mode),[e,t,n,!1,!1])}var c,l=e((()=>{c=t(n(),1),i(),o()}));export{s as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./axios-DaWTGg7G.js";import{N as r,b as i}from"./types-97nL3naE.js";import{Ax as a,Ix as o,Lx as s,Rx as c,cT as ee,dT as l,fT as u,jx as d,lT as te}from"./loadAgentsDir-DGozQu_6.js";import{C as f,I as p,M as m,N as h,R as g,S as _,c as v,f as y,i as b,u as x,x as S}from"./debug-CRnGsZOV.js";import{_t as C,ft as ne,gt as w,ht as re,mt as ie}from"./settings-CodSADx8.js";import{o as ae,s as T}from"./log-DoSpAwRP.js";import{homedir as oe}from"os";import*as E from"path";import{join as se,resolve as D}from"path";import{randomBytes as O}from"crypto";import{readFile as k,readdir as A,rename as j,stat as M,unlink as N,writeFile as P}from"fs/promises";function F(){return se(a(),H)}async function I(){let e=F();try{let t=_(await k(e,{encoding:`utf-8`}));if(typeof t!=`object`||!t||!(`version`in t)||!(`fetchedAt`in t)||!(`counts`in t))return v(`Install counts cache has invalid structure`),null;let n=t;if(n.version!==V)return v(`Install counts cache version mismatch (got ${n.version}, expected ${V})`),null;if(typeof n.fetchedAt!=`string`||!Array.isArray(n.counts))return v(`Install counts cache has invalid structure`),null;let r=new Date(n.fetchedAt).getTime();return Number.isNaN(r)?(v(`Install counts cache has invalid fetchedAt timestamp`),null):n.counts.every(e=>typeof e==`object`&&!!e&&typeof e.plugin==`string`&&typeof e.unique_installs==`number`)?Date.now()-r>W?(v(`Install counts cache is stale (>24h old)`),null):{version:n.version,fetchedAt:n.fetchedAt,counts:n.counts}:(v(`Install counts cache has malformed entries`),null)}catch(e){return h(e)!==`ENOENT`&&v(`Failed to load install counts cache: ${m(e)}`),null}}async function L(e){let t=F(),n=`${t}.${O(8).toString(`hex`)}.tmp`;try{let r=a();await x().mkdir(r),await P(n,f(e,null,2),{encoding:`utf-8`,mode:384}),await j(n,t),v(`Install counts cache saved successfully`)}catch(e){T(e);try{await N(n)}catch{}}}async function R(){v(`Fetching install counts from ${U}`);let e=performance.now();try{let n=await t.get(U,{timeout:1e4});if(!n.data?.plugins||!Array.isArray(n.data.plugins))throw Error(`Invalid response format from install counts API`);return c(`install_counts`,U,`success`,performance.now()-e),n.data.plugins}catch(t){throw c(`install_counts`,U,`failure`,performance.now()-e,o(t)),t}}async function z(){let e=await I();if(e){v(`Using cached install counts`),c(`install_counts`,U,`cache_hit`,0);let t=new Map;for(let n of e.counts)t.set(n.plugin,n.unique_installs);return t}try{let e=await R();await L({version:V,fetchedAt:new Date().toISOString(),counts:e});let t=new Map;for(let n of e)t.set(n.plugin,n.unique_installs);return t}catch(e){return T(e),v(`Failed to fetch install counts: ${m(e)}`),null}}function B(e){if(e<1e3)return String(e);if(e<1e6){let t=(e/1e3).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}K`:`${t}K`}let t=(e/1e6).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}M`:`${t}M`}var V,H,U,W,G=e((()=>{n(),b(),p(),y(),ae(),S(),s(),d(),V=1,H=`install-counts-cache.json`,U=`https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json`,W=1440*60*1e3}));async function K(e){let t=e.trim(),n=x(),r=t.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(r?.[1]){let e=r[1],t=r[3];return t?{source:`git`,url:e,ref:t}:{source:`git`,url:e}}if(t.startsWith(`http://`)||t.startsWith(`https://`)){let e=t.match(/^([^#]+)(#(.+))?$/),n=e?.[1]||t,r=e?.[3];if(n.endsWith(`.git`)||n.includes(`/_git/`))return r?{source:`git`,url:n,ref:r}:{source:`git`,url:n};let i;try{i=new URL(n)}catch{return{source:`url`,url:n}}if((i.hostname===`github.com`||i.hostname===`www.github.com`)&&i.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let e=n.endsWith(`.git`)?n:`${n}.git`;return r?{source:`git`,url:e,ref:r}:{source:`git`,url:e}}return{source:`url`,url:n}}let i=process.platform===`win32`&&(t.startsWith(`.\\`)||t.startsWith(`..\\`)||/^[a-zA-Z]:[/\\]/.test(t));if(t.startsWith(`./`)||t.startsWith(`../`)||t.startsWith(`/`)||t.startsWith(`~`)||i){let e=D(t.startsWith(`~`)?t.replace(/^~/,oe()):t),r;try{r=await n.stat(e)}catch(t){let n=h(t);return{error:n===`ENOENT`?`Path does not exist: ${e}`:`Cannot access path: ${e} (${n??t})`}}return r.isFile()?e.endsWith(`.json`)?{source:`file`,path:e}:{error:`File path must point to a .json file (marketplace.json), but got: ${e}`}:r.isDirectory()?{source:`directory`,path:e}:{error:`Path is neither a file nor a directory: ${e}`}}if(t.includes(`/`)&&!t.startsWith(`@`)){if(t.includes(`:`))return null;let e=t.match(/^([^#@]+)(?:[#@](.+))?$/),n=e?.[1]||t,r=e?.[2];return r?{source:`github`,repo:n,ref:r}:{source:`github`,repo:n}}return null}var ce=e((()=>{p(),y()}));function le(e){let t=E.basename(e),n=E.basename(E.dirname(e));return t===`plugin.json`?`plugin`:t===`marketplace.json`?`marketplace`:n===`.claude-plugin`?`plugin`:`unknown`}function q(e){return e.issues.map(e=>({path:e.path.join(`.`)||`root`,message:e.message,code:e.code}))}function J(e,t,n,r){e.includes(`..`)&&n.push({path:t,message:r?`Path contains "..": ${e}. ${r}`:`Path contains ".." which could be a path traversal attempt: ${e}`})}function ue(e){let t=e.replace(/^(\.\.\/)+/,``);return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${t===e?`./plugins/my-plugin`:`./${t}`}" instead of "${e}".`}async function Y(e){let t=[],n=[],r=E.resolve(e),i;try{i=await k(r,{encoding:`utf-8`})}catch(e){let t=h(e),n;return n=t===`ENOENT`?`File not found: ${r}`:t===`EISDIR`?`Path is not a file: ${r}`:`Failed to read file: ${m(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:r,fileType:`plugin`}}let a;try{a=_(i)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${m(e)}`}],warnings:[],filePath:r,fileType:`plugin`}}if(a&&typeof a==`object`){let e=a;e.commands&&(Array.isArray(e.commands)?e.commands:[e.commands]).forEach((e,n)=>{typeof e==`string`&&J(e,`commands[${n}]`,t)}),e.agents&&(Array.isArray(e.agents)?e.agents:[e.agents]).forEach((e,n)=>{typeof e==`string`&&J(e,`agents[${n}]`,t)}),e.skills&&(Array.isArray(e.skills)?e.skills:[e.skills]).forEach((e,n)=>{typeof e==`string`&&J(e,`skills[${n}]`,t)})}let o=a;if(typeof a==`object`&&a){let e=a,t=Object.keys(e).filter(e=>$.has(e));if(t.length>0){let r={...e};for(let e of t)delete r[e],n.push({path:e,message:`Field '${e}' belongs in the marketplace entry (marketplace.json), not plugin.json. It's harmless here but unused — Work Mate ignores it at load time.`});o=r}}let s=ie().strict().safeParse(o);if(s.success||t.push(...q(s.error)),s.success){let e=s.data;/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e.name)||n.push({path:`name`,message:`Plugin name "${e.name}" is not kebab-case. Work Mate accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`}),e.version||n.push({path:`version`,message:`No version specified. Consider adding a version following semver (e.g., "1.0.0")`}),e.description||n.push({path:`description`,message:`No description provided. Adding a description helps users understand what your plugin does`}),e.author||n.push({path:`author`,message:`No author information provided. Consider adding author details for plugin attribution`})}return{success:t.length===0,errors:t,warnings:n,filePath:r,fileType:`plugin`}}async function X(e){let t=[],n=[],i=E.resolve(e),a;try{a=await k(i,{encoding:`utf-8`})}catch(e){let t=h(e),n;return n=t===`ENOENT`?`File not found: ${i}`:t===`EISDIR`?`Path is not a file: ${i}`:`Failed to read file: ${m(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:i,fileType:`marketplace`}}let o;try{o=_(a)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${m(e)}`}],warnings:[],filePath:i,fileType:`marketplace`}}if(o&&typeof o==`object`){let e=o;Array.isArray(e.plugins)&&e.plugins.forEach((e,n)=>{if(e&&typeof e==`object`&&`source`in e){let r=e.source;typeof r==`string`&&J(r,`plugins[${n}].source`,t,ue(r)),r&&typeof r==`object`&&`path`in r&&typeof r.path==`string`&&J(r.path,`plugins[${n}].source.path`,t)}})}let s=w().extend({plugins:r(re().strict())}).strict().safeParse(o);if(s.success||t.push(...q(s.error)),s.success){let e=s.data;if((!e.plugins||e.plugins.length===0)&&n.push({path:`plugins`,message:`Marketplace has no plugins defined`}),e.plugins){e.plugins.forEach((n,r)=>{e.plugins.filter(e=>e.name===n.name).length>1&&t.push({path:`plugins[${r}].name`,message:`Duplicate plugin name "${n.name}" found in marketplace`})});let r=E.dirname(i),a=E.basename(r)===`.claude-plugin`?E.dirname(r):r;for(let[t,r]of e.plugins.entries()){if(!r.version||typeof r.source!=`string`||!r.source.startsWith(`./`))continue;let e=E.join(a,r.source,`.claude-plugin`,`plugin.json`),i;try{let t=_(await k(e,{encoding:`utf-8`}));typeof t.version==`string`&&(i=t.version)}catch{continue}i&&i!==r.version&&n.push({path:`plugins[${t}].version`,message:`Entry declares version "${r.version}" but ${r.source}/.claude-plugin/plugin.json says "${i}". At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. Update this entry to "${i}" to match.`})}}e.metadata?.description||n.push({path:`metadata.description`,message:`No marketplace description provided. Adding a description helps users understand what this marketplace offers`})}return{success:t.length===0,errors:t,warnings:n,filePath:i,fileType:`marketplace`}}function de(e,t,n){let r=[],i=[],a=t.match(ee);if(!a)return i.push({path:`frontmatter`,message:`No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata.`}),{success:!0,errors:r,warnings:i,filePath:e,fileType:n};let o=a[1]||``,s;try{s=u(o)}catch(t){return r.push({path:`frontmatter`,message:`YAML frontmatter failed to parse: ${m(t)}. At runtime this ${n} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n}}if(typeof s!=`object`||!s||Array.isArray(s))return r.push({path:`frontmatter`,message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(s)?`an array`:s===null?`null`:typeof s}.`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n};let c=s;if(c.description!==void 0){let e=c.description;typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`&&e!==null&&r.push({path:`description`,message:`description must be a string, got ${Array.isArray(e)?`array`:typeof e}. At runtime this value is dropped.`})}else i.push({path:`description`,message:`No description in frontmatter. A description helps users and Work Mate understand when to use this ${n}.`});c.name!==void 0&&c.name!==null&&typeof c.name!=`string`&&r.push({path:`name`,message:`name must be a string, got ${typeof c.name}.`});let l=c[`allowed-tools`];l!=null&&(typeof l!=`string`&&!Array.isArray(l)?r.push({path:`allowed-tools`,message:`allowed-tools must be a string or array of strings, got ${typeof l}.`}):Array.isArray(l)&&l.some(e=>typeof e!=`string`)&&r.push({path:`allowed-tools`,message:`allowed-tools array must contain only strings.`}));let d=c.shell;if(d!=null)if(typeof d!=`string`)r.push({path:`shell`,message:`shell must be a string, got ${typeof d}.`});else{let e=d.trim().toLowerCase();e!==`bash`&&e!==`powershell`&&r.push({path:`shell`,message:`shell must be 'bash' or 'powershell', got '${d}'.`})}return{success:r.length===0,errors:r,warnings:i,filePath:e,fileType:n}}async function Z(e){let t;try{t=await k(e,{encoding:`utf-8`})}catch(t){return h(t)===`ENOENT`?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:[{path:`file`,message:`Failed to read file: ${m(t)}`}],warnings:[],filePath:e,fileType:`hooks`}}let n;try{n=_(t)}catch(t){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${m(t)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:e,fileType:`hooks`}}let r=ne().safeParse(n);return r.success?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:q(r.error),warnings:[],filePath:e,fileType:`hooks`}}async function Q(e,t){let n;try{n=await A(e,{withFileTypes:!0})}catch(e){let t=h(e);if(t===`ENOENT`||t===`ENOTDIR`)return[];throw e}if(t)return n.filter(e=>e.isDirectory()).map(t=>E.join(e,t.name,`SKILL.md`));let r=[];for(let t of n){let n=E.join(e,t.name);t.isDirectory()?r.push(...await Q(n,!1)):t.isFile()&&t.name.toLowerCase().endsWith(`.md`)&&r.push(n)}return r}async function fe(e){let t=[],n=[[`skill`,E.join(e,`skills`)],[`agent`,E.join(e,`agents`)],[`command`,E.join(e,`commands`)]];for(let[e,r]of n){let n=await Q(r,e===`skill`);for(let r of n){let n;try{n=await k(r,{encoding:`utf-8`})}catch(n){if(g(n))continue;t.push({success:!1,errors:[{path:`file`,message:`Failed to read: ${m(n)}`}],warnings:[],filePath:r,fileType:e});continue}let i=de(r,n,e);(i.errors.length>0||i.warnings.length>0)&&t.push(i)}}let r=await Z(E.join(e,`hooks`,`hooks.json`));return(r.errors.length>0||r.warnings.length>0)&&t.push(r),t}async function pe(e){let t=E.resolve(e),n=null;try{n=await M(t)}catch(e){if(!g(e))throw e}if(n?.isDirectory()){let e=await X(E.join(t,`.claude-plugin`,`marketplace.json`));if(e.errors[0]?.code!==`ENOENT`)return e;let n=await Y(E.join(t,`.claude-plugin`,`plugin.json`));return n.errors[0]?.code===`ENOENT`?{success:!1,errors:[{path:`directory`,message:`No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json`}],warnings:[],filePath:t,fileType:`plugin`}:n}switch(le(e)){case`plugin`:return Y(e);case`marketplace`:return X(e);case`unknown`:try{let n=_(await k(t,{encoding:`utf-8`}));if(Array.isArray(n.plugins))return X(e)}catch(e){if(h(e)===`ENOENT`)return{success:!1,errors:[{path:`file`,message:`File not found: ${t}`}],warnings:[],filePath:t,fileType:`plugin`}}return Y(e)}}var $,me=e((()=>{i(),p(),te(),S(),l(),C(),$=new Set([`category`,`source`,`tags`,`strict`,`id`])}));export{K as a,G as c,ce as i,pe as n,B as o,fe as r,z as s,me as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{St as e,_t as t}from"./loadAgentsDir-DGozQu_6.js";e();export{t as execIntoTmuxWorktree};
|