@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,3 +1,3 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,l as n,o as r}from"./envUtils-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,l as n,o as r}from"./envUtils-DZ_SvEVz.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{Gr as o,t as s}from"./src-WZ94ZKI3.js";import{Pt as ee,at as c}from"./state-CXY-q5gr.js";import{T as l,c as u,f as d,i as te,u as f,x as p}from"./debug-kBjDaVkQ.js";import{n as m}from"./analytics-COpjZpvd.js";import{i as h,n as g,o as _,r as v}from"./intl-D2kgJmX7.js";import{dirname as ne,join as y}from"path";function b(e,t){if(o(e)<=t)return e;if(t<=0)return`…`;if(t<5)return x(e,t);let n=e.lastIndexOf(`/`),r=n>=0?e.slice(n):e,i=n>=0?e.slice(0,n):``,a=o(r);if(a>=t-1)return S(e,t);let s=t-1-a;return s<=0?S(r,t):`${C(i,s)}…${r}`}function x(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=0,r=``;for(let{segment:i}of g().segment(e)){let e=o(i);if(n+e>t-1)break;r+=i,n+=e}return`${r}…`}function S(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=[...g().segment(e)],r=0,i=n.length;for(let e=n.length-1;e>=0;e--){let a=o(n[e].segment);if(r+a>t-1)break;r+=a,i=e}return`…`+n.slice(i).map(e=>e.segment).join(``)}function C(e,t){if(o(e)<=t)return e;if(t<=0)return``;let n=0,r=``;for(let{segment:i}of g().segment(e)){let e=o(i);if(n+e>t)break;r+=i,n+=e}return r}function w(e,t,n=!1){if(e==null)return``;let r=e;if(n){let n=e.indexOf(`
|
|
2
2
|
`);if(n!==-1)return r=e.substring(0,n),o(r)+1>t?x(r,t):`${r}…`}return o(r)<=t?r:x(r,t)}var T=e((()=>{s(),_()}));function E(e){let t=e/1024;if(t<1)return`${e} bytes`;if(t<1024)return`${t.toFixed(1).replace(/\.0$/,``)}KB`;let n=t/1024;return n<1024?`${n.toFixed(1).replace(/\.0$/,``)}MB`:`${(n/1024).toFixed(1).replace(/\.0$/,``)}GB`}function re(e){return`${(e/1e3).toFixed(1)}s`}function ie(e,t){if(e<6e4)return e===0?`0s`:e<1?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/1e3).toString()}s`;let n=Math.floor(e/864e5),r=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),a=Math.round(e%6e4/1e3);a===60&&(a=0,i++),i===60&&(i=0,r++),r===24&&(r=0,n++);let o=t?.hideTrailingZeros;return t?.mostSignificantOnly?n>0?`${n}d`:r>0?`${r}h`:i>0?`${i}m`:`${a}s`:n>0?o&&r===0&&i===0?`${n}d`:o&&i===0?`${n}d ${r}h`:`${n}d ${r}h ${i}m`:r>0?o&&i===0&&a===0?`${r}h`:o&&a===0?`${r}h ${i}m`:`${r}h ${i}m ${a}s`:i>0?o&&a===0?`${i}m`:`${i}m ${a}s`:`${a}s`}function D(e){return F(e>=1e3).format(e).toLowerCase()}function O(e){return D(e).replace(`.0`,``)}function k(e,t={}){let{style:n=`narrow`,numeric:r=`always`,now:i=new Date}=t,a=e.getTime()-i.getTime(),o=Math.trunc(a/1e3);for(let{unit:e,seconds:t,shortUnit:i}of[{unit:`year`,seconds:31536e3,shortUnit:`y`},{unit:`month`,seconds:2592e3,shortUnit:`mo`},{unit:`week`,seconds:604800,shortUnit:`w`},{unit:`day`,seconds:86400,shortUnit:`d`},{unit:`hour`,seconds:3600,shortUnit:`h`},{unit:`minute`,seconds:60,shortUnit:`m`},{unit:`second`,seconds:1,shortUnit:`s`}])if(Math.abs(o)>=t){let a=Math.trunc(o/t);return n===`narrow`?o<0?`${Math.abs(a)}${i} ago`:`in ${a}${i}`:v(`long`,r).format(a,e)}return n===`narrow`?o<=0?`0s ago`:`in 0s`:v(n,r).format(0,`second`)}function A(e,t={}){let{now:n=new Date,...r}=t;return e>n?k(e,{...r,now:n}):k(e,{...r,numeric:`always`,now:n})}function j(e){let t=e.fileSize===void 0?`${e.messageCount} messages`:E(e.fileSize),n=[A(e.modified,{style:`short`}),...e.gitBranch?[e.gitBranch]:[],t];return e.tag&&n.push(`#${e.tag}`),e.agentSetting&&n.push(`@${e.agentSetting}`),e.prNumber&&n.push(e.prRepository?`${e.prRepository}#${e.prNumber}`:`#${e.prNumber}`),n.join(` · `)}function M(e,t=!1,n=!0){if(!e)return;let r=new Date(e*1e3),i=new Date,a=r.getMinutes();if((r.getTime()-i.getTime())/(1e3*60*60)>24){let e={month:`short`,day:`numeric`,hour:n?`numeric`:void 0,minute:!n||a===0?void 0:`2-digit`,hour12:n?!0:void 0};return r.getFullYear()!==i.getFullYear()&&(e.year=`numeric`),r.toLocaleString(`en-US`,e).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${h()})`:``)}return r.toLocaleTimeString(`en-US`,{hour:`numeric`,minute:a===0?void 0:`2-digit`,hour12:!0}).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${h()})`:``)}var N,P,F,I=e((()=>{_(),T(),N=null,P=null,F=e=>e?(N||(N=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:1})),N):(P||(P=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:0})),P)}));function L(){return V}function R(e){return e.toFixed(3)}function z(e,t,n,r,i,a,o=``){let s=r?` | RSS: ${E(r.rss)}, Heap: ${E(r.heapUsed)}`:``;return`[+${R(e).padStart(i)}ms] (+${R(t).padStart(a)}ms) ${n}${o}${s}`}var B,V,H=e((()=>{I(),i(),B=class{constructor(){a(this,`marks`,new Map),a(this,`_origin`,void 0),this._origin=Number(process.hrtime.bigint()/1000n)/1e3}mark(e){this.marks.set(e,this.now())}getEntriesByType(e){if(e!==`mark`)return[];let t=[];for(let[e,n]of this.marks)t.push({name:e,startTime:n,entryType:`mark`});return t}clearMarks(e){e===void 0?this.marks.clear():this.marks.delete(e)}now(){return Number(process.hrtime.bigint()/1000n)/1e3-this._origin}},V=new B}));function U(e){X&&(L().mark(e),J&&Z.push(process.memoryUsage()))}function W(){if(!J)return`Startup profiling not enabled`;let e=L().getEntriesByType(`mark`);if(e.length===0)return`No profiling checkpoints recorded`;let t=[];t.push(`=`.repeat(80)),t.push(`STARTUP PROFILING REPORT`),t.push(`=`.repeat(80)),t.push(``);let n=0;for(let[r,i]of e.entries())t.push(z(i.startTime,i.startTime-n,i.name,Z[r],8,7)),n=i.startTime;let r=e[e.length-1];return t.push(``),t.push(`Total startup time: ${R(r?.startTime??0)}ms`),t.push(`=`.repeat(80)),t.join(`
|
|
3
|
-
`)}function G(){if(!$){if($=!0,q(),J){let e=K(),t=ne(e);f().mkdirSync(t),l(e,W(),{encoding:`utf8`,flush:!0}),u(`Startup profiling report:`),u(W())}L().clearMarks(),Z.length=0}}function K(){return y(t(),`startup-perf`,`${c()}.txt`)}function q(){if(!Y)return;let e=L().getEntriesByType(`mark`);if(e.length===0)return;let t=new Map;for(let n of e)t.set(n.name,n.startTime);let n={};for(let[e,[r,i]]of Object.entries(Q)){let a=t.get(r),o=t.get(i);a!==void 0&&o!==void 0&&(n[`${e}_ms`]=Math.round(o-a))}n.checkpoint_count=e.length}var J,Y,X,Z,Q,$,ae=e((()=>{ee(),m(),te(),r(),d(),H(),p(),J=n(process.env.
|
|
3
|
+
`)}function G(){if(!$){if($=!0,q(),J){let e=K(),t=ne(e);f().mkdirSync(t),l(e,W(),{encoding:`utf8`,flush:!0}),u(`Startup profiling report:`),u(W())}L().clearMarks(),Z.length=0}}function K(){return y(t(),`startup-perf`,`${c()}.txt`)}function q(){if(!Y)return;let e=L().getEntriesByType(`mark`);if(e.length===0)return;let t=new Map;for(let n of e)t.set(n.name,n.startTime);let n={};for(let[e,[r,i]]of Object.entries(Q)){let a=t.get(r),o=t.get(i);a!==void 0&&o!==void 0&&(n[`${e}_ms`]=Math.round(o-a))}n.checkpoint_count=e.length}var J,Y,X,Z,Q,$,ae=e((()=>{ee(),m(),te(),r(),d(),H(),p(),J=n(process.env.WORKMATE_PROFILE_STARTUP),Y=Math.random()<.005,X=J||Y,Z=[],Q={import_time:[`cli_entry`,`main_tsx_imports_loaded`],init_time:[`init_function_start`,`init_function_end`],settings_time:[`eagerLoadSettings_start`,`eagerLoadSettings_end`],total_time:[`cli_entry`,`main_after_run`]},X&&U(`profiler_initialized`),$=!1}));export{C,x as S,I as _,R as a,b,H as c,j as d,D as f,O as g,re as h,G as i,ie as l,M as m,ae as n,z as o,A as p,U as r,L as s,K as t,E as u,T as v,S as x,w as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./startupProfiler-DIM_Ihyp.js";e();export{t as profileCheckpoint};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{a as t,c as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./isObject-C6qM3WEW.js";import{a as d,c as f,d as p,f as m,g as h,h as g,i as _,l as v,m as y,n as ee,o as te,p as ne,r as re,s as ie,t as ae,u as oe}from"./memoize-BK3gG5ob.js";import{i as b,n as se,r as x,t as ce}from"./isSymbol-BO6cdPI7.js";import{realpathSync as le}from"fs";import{randomUUID as ue}from"crypto";import{cwd as de}from"process";function fe(){this.__data__=new ie,this.size=0}var pe=e((()=>{f()}));function me(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var he=e((()=>{}));function ge(e){return this.__data__.get(e)}var _e=e((()=>{}));function ve(e){return this.__data__.has(e)}var ye=e((()=>{}));function be(e,t){var n=this.__data__;if(n instanceof ie){var r=n.__data__;if(!d||r.length<xe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(r)}return n.set(e,t),this.size=n.size,this}var xe,Se=e((()=>{f(),te(),_(),xe=200}));function S(e){var t=this.__data__=new ie(e);this.size=t.size}var Ce=e((()=>{f(),pe(),he(),_e(),ye(),Se(),S.prototype.clear=fe,S.prototype.delete=me,S.prototype.get=ge,S.prototype.has=ve,S.prototype.set=be}));function we(e){return this.__data__.set(e,Te),this}var Te,Ee=e((()=>{Te=`__lodash_hash_undefined__`}));function De(e){return this.__data__.has(e)}var Oe=e((()=>{}));function C(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}var ke=e((()=>{_(),Ee(),Oe(),C.prototype.add=C.prototype.push=we,C.prototype.has=De}));function Ae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var je=e((()=>{}));function Me(e,t){return e.has(t)}var Ne=e((()=>{}));function Pe(e,t,n,r,i,a){var o=n&Fe,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Ie?new C:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Ae(t,function(e,t){if(!Me(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Fe,Ie,Le=e((()=>{ke(),je(),Ne(),Fe=1,Ie=2})),w,Re=e((()=>{c(),w=n.Uint8Array}));function ze(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var Be=e((()=>{}));function Ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var He=e((()=>{}));function Ue(e,t,n,r,i,a,o){switch(n){case nt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tt:return!(e.byteLength!=t.byteLength||!a(new w(e),new w(t)));case Ke:case qe:case Xe:return v(+e,+t);case Je:return e.name==t.name&&e.message==t.message;case Ze:case $e:return e==t+``;case Ye:var s=ze;case Qe:var c=r&We;if(s||(s=Ve),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Ge,o.set(e,t);var u=Pe(s(e),s(t),r,i,a,o);return o.delete(e),u;case et:if(T)return T.call(e)==T.call(t)}return!1}var We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,T,it=e((()=>{o(),Re(),oe(),Le(),Be(),He(),We=1,Ge=2,Ke=`[object Boolean]`,qe=`[object Date]`,Je=`[object Error]`,Ye=`[object Map]`,Xe=`[object Number]`,Ze=`[object RegExp]`,Qe=`[object Set]`,$e=`[object String]`,et=`[object Symbol]`,tt=`[object ArrayBuffer]`,nt=`[object DataView]`,rt=t?t.prototype:void 0,T=rt?rt.valueOf:void 0}));function at(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ot=e((()=>{})),E,D=e((()=>{E=Array.isArray}));function st(e,t,n){var r=t(e);return E(e)?r:at(r,n(e))}var ct=e((()=>{ot(),D()}));function lt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var ut=e((()=>{}));function dt(){return[]}var ft=e((()=>{})),pt,mt,ht,gt=e((()=>{ut(),ft(),pt=Object.prototype.propertyIsEnumerable,mt=Object.getOwnPropertySymbols,ht=mt?function(e){return e==null?[]:(e=Object(e),lt(mt(e),function(t){return pt.call(e,t)}))}:dt}));function _t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vt=e((()=>{}));function yt(e){return b(e)&&s(e)==bt}var bt,xt=e((()=>{r(),x(),bt=`[object Arguments]`})),St,Ct,wt,O,Tt=e((()=>{xt(),x(),St=Object.prototype,Ct=St.hasOwnProperty,wt=St.propertyIsEnumerable,O=yt(function(){return arguments}())?yt:function(e){return b(e)&&Ct.call(e,`callee`)&&!wt.call(e,`callee`)}}));function Et(){return!1}var Dt=e((()=>{})),Ot,kt,At,k,jt=e((()=>{c(),Dt(),Ot=typeof exports==`object`&&exports&&!exports.nodeType&&exports,kt=Ot&&typeof module==`object`&&module&&!module.nodeType&&module,At=kt&&kt.exports===Ot?n.Buffer:void 0,k=(At?At.isBuffer:void 0)||Et}));function Mt(e,t){var n=typeof e;return t=t??Nt,!!t&&(n==`number`||n!=`symbol`&&Pt.test(e))&&e>-1&&e%1==0&&e<t}var Nt,Pt,Ft=e((()=>{Nt=9007199254740991,Pt=/^(?:0|[1-9]\d*)$/}));function It(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Lt}var Lt,Rt=e((()=>{Lt=9007199254740991}));function zt(e){return b(e)&&It(e.length)&&!!A[s(e)]}var Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,A,dn=e((()=>{r(),Rt(),x(),Bt=`[object Arguments]`,Vt=`[object Array]`,Ht=`[object Boolean]`,Ut=`[object Date]`,Wt=`[object Error]`,Gt=`[object Function]`,Kt=`[object Map]`,qt=`[object Number]`,Jt=`[object Object]`,Yt=`[object RegExp]`,Xt=`[object Set]`,Zt=`[object String]`,Qt=`[object WeakMap]`,$t=`[object ArrayBuffer]`,en=`[object DataView]`,tn=`[object Float32Array]`,nn=`[object Float64Array]`,rn=`[object Int8Array]`,an=`[object Int16Array]`,on=`[object Int32Array]`,sn=`[object Uint8Array]`,cn=`[object Uint8ClampedArray]`,ln=`[object Uint16Array]`,un=`[object Uint32Array]`,A={},A[tn]=A[nn]=A[rn]=A[an]=A[on]=A[sn]=A[cn]=A[ln]=A[un]=!0,A[Bt]=A[Vt]=A[$t]=A[Ht]=A[en]=A[Ut]=A[Wt]=A[Gt]=A[Kt]=A[qt]=A[Jt]=A[Yt]=A[Xt]=A[Zt]=A[Qt]=!1}));function fn(e){return function(t){return e(t)}}var pn=e((()=>{})),mn,j,M,N,hn=e((()=>{u(),mn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,j=mn&&typeof module==`object`&&module&&!module.nodeType&&module,M=j&&j.exports===mn&&i.process,N=function(){try{return j&&j.require&&j.require(`util`).types||M&&M.binding&&M.binding(`util`)}catch{}}()})),gn,P,F=e((()=>{dn(),pn(),hn(),gn=N&&N.isTypedArray,P=gn?fn(gn):zt}));function _n(e,t){var n=E(e),r=!n&&O(e),i=!n&&!r&&k(e),a=!n&&!r&&!i&&P(e),o=n||r||i||a,s=o?_t(e.length,String):[],c=s.length;for(var l in e)(t||vn.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Mt(l,c)))&&s.push(l);return s}var vn,yn=e((()=>{vt(),Tt(),D(),jt(),Ft(),F(),vn=Object.prototype.hasOwnProperty}));function bn(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xn)}var xn,Sn=e((()=>{xn=Object.prototype}));function Cn(e,t){return function(n){return e(t(n))}}var wn=e((()=>{})),Tn,En=e((()=>{wn(),Tn=Cn(Object.keys,Object)}));function Dn(e){if(!bn(e))return Tn(e);var t=[];for(var n in Object(e))On.call(e,n)&&n!=`constructor`&&t.push(n);return t}var On,kn=e((()=>{Sn(),En(),On=Object.prototype.hasOwnProperty}));function An(e){return e!=null&&It(e.length)&&!h(e)}var jn=e((()=>{g(),Rt()}));function I(e){return An(e)?_n(e):Dn(e)}var Mn=e((()=>{yn(),kn(),jn()}));function Nn(e){return st(e,I,ht)}var Pn=e((()=>{ct(),gt(),Mn()}));function Fn(e,t,n,r,i,a){var o=n&In,s=Nn(e),c=s.length;if(c!=Nn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Ln.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||(m=u==`constructor`)}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var In,Ln,Rn=e((()=>{Pn(),In=1,Ln=Object.prototype.hasOwnProperty})),L,zn=e((()=>{m(),c(),L=p(n,`DataView`)})),R,Bn=e((()=>{m(),c(),R=p(n,`Promise`)})),z,Vn=e((()=>{m(),c(),z=p(n,`Set`)})),B,Hn=e((()=>{m(),c(),B=p(n,`WeakMap`)})),Un,Wn,Gn,Kn,V,qn,Jn,Yn,Xn,Zn,Qn,H,U,$n=e((()=>{zn(),te(),Bn(),Vn(),Hn(),r(),ne(),Un=`[object Map]`,Wn=`[object Object]`,Gn=`[object Promise]`,Kn=`[object Set]`,V=`[object WeakMap]`,qn=`[object DataView]`,Jn=y(L),Yn=y(d),Xn=y(R),Zn=y(z),Qn=y(B),H=s,(L&&H(new L(new ArrayBuffer(1)))!=qn||d&&H(new d)!=Un||R&&H(R.resolve())!=Gn||z&&H(new z)!=Kn||B&&H(new B)!=V)&&(H=function(e){var t=s(e),n=t==Wn?e.constructor:void 0,r=n?y(n):``;if(r)switch(r){case Jn:return qn;case Yn:return Un;case Xn:return Gn;case Zn:return Kn;case Qn:return V}return t}),U=H}));function er(e,t,n,r,i,a){var o=E(e),s=E(t),c=o?rr:U(e),l=s?rr:U(t);c=c==nr?W:c,l=l==nr?W:l;var u=c==W,d=l==W,f=c==l;if(f&&k(e)){if(!k(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new S),o||P(e)?Pe(e,t,n,r,i,a):Ue(e,t,c,n,r,i,a);if(!(n&tr)){var p=u&&ir.call(e,`__wrapped__`),m=d&&ir.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||(a=new S),i(h,g,n,r,a)}}return f?(a||(a=new S),Fn(e,t,n,r,i,a)):!1}var tr,nr,rr,W,ir,ar=e((()=>{Ce(),Le(),it(),Rn(),$n(),D(),jt(),F(),tr=1,nr=`[object Arguments]`,rr=`[object Array]`,W=`[object Object]`,ir=Object.prototype.hasOwnProperty}));function G(e,t,n,r,i){return e===t?!0:e==null||t==null||!b(e)&&!b(t)?e!==e&&t!==t:er(e,t,n,r,G,i)}var or=e((()=>{ar(),x()}));function sr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new S;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?G(u,l,cr|lr,r,d):f))return!1}}return!0}var cr,lr,ur=e((()=>{Ce(),or(),cr=1,lr=2}));function dr(e){return e===e&&!a(e)}var fr=e((()=>{l()}));function pr(e){for(var t=I(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,dr(i)]}return t}var mr=e((()=>{fr(),Mn()}));function hr(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var gr=e((()=>{}));function _r(e){var t=pr(e);return t.length==1&&t[0][2]?hr(t[0][0],t[0][1]):function(n){return n===e||sr(n,e,t)}}var vr=e((()=>{ur(),mr(),gr()}));function yr(e,t){if(E(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||se(e)?!0:xr.test(e)||!br.test(e)||t!=null&&e in Object(t)}var br,xr,Sr=e((()=>{D(),ce(),br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xr=/^\w*$/}));function Cr(e){var t=ee(e,function(e){return n.size===wr&&n.clear(),e}),n=t.cache;return t}var wr,Tr=e((()=>{ae(),wr=500})),Er,Dr,Or,kr=e((()=>{Tr(),Er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dr=/\\(\\)?/g,Or=Cr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Er,function(e,n,r,i){t.push(r?i.replace(Dr,`$1`):n||e)}),t})}));function Ar(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jr=e((()=>{}));function Mr(e){if(typeof e==`string`)return e;if(E(e))return Ar(e,Mr)+``;if(se(e))return Fr?Fr.call(e):``;var t=e+``;return t==`0`&&1/e==-Nr?`-0`:t}var Nr,Pr,Fr,Ir=e((()=>{o(),jr(),D(),ce(),Nr=1/0,Pr=t?t.prototype:void 0,Fr=Pr?Pr.toString:void 0}));function Lr(e){return e==null?``:Mr(e)}var Rr=e((()=>{Ir()}));function zr(e,t){return E(e)?e:yr(e,t)?[e]:Or(Lr(e))}var Br=e((()=>{D(),Sr(),kr(),Rr()}));function K(e){if(typeof e==`string`||se(e))return e;var t=e+``;return t==`0`&&1/e==-Vr?`-0`:t}var Vr,q=e((()=>{ce(),Vr=1/0}));function Hr(e,t){t=zr(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[K(t[n++])];return n&&n==r?e:void 0}var Ur=e((()=>{Br(),q()}));function Wr(e,t,n){var r=e==null?void 0:Hr(e,t);return r===void 0?n:r}var Gr=e((()=>{Ur()}));function Kr(e,t){return e!=null&&t in Object(e)}var qr=e((()=>{}));function Jr(e,t,n){t=zr(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=K(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&It(i)&&Mt(o,i)&&(E(e)||O(e)))}var Yr=e((()=>{Br(),Tt(),D(),Ft(),Rt(),q()}));function Xr(e,t){return e!=null&&Jr(e,t,Kr)}var Zr=e((()=>{qr(),Yr()}));function Qr(e,t){return yr(e)&&dr(t)?hr(K(e),t):function(n){var r=Wr(n,e);return r===void 0&&r===t?Xr(n,e):G(t,r,$r|ei)}}var $r,ei,ti=e((()=>{or(),Gr(),Zr(),Sr(),fr(),gr(),q(),$r=1,ei=2}));function ni(e){return e}var ri=e((()=>{}));function ii(e){return function(t){return t?.[e]}}var ai=e((()=>{}));function oi(e){return function(t){return Hr(t,e)}}var si=e((()=>{Ur()}));function ci(e){return yr(e)?ii(K(e)):oi(e)}var li=e((()=>{ai(),si(),Sr(),q()}));function ui(e){return typeof e==`function`?e:e==null?ni:typeof e==`object`?E(e)?Qr(e[0],e[1]):_r(e):ci(e)}var di=e((()=>{vr(),ti(),ri(),D(),li()}));function fi(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var pi=e((()=>{}));function J(e,t){return e&&e.length?fi(e,ui(t,2)):0}var mi=e((()=>{di(),pi()})),hi=e((()=>{}));function gi(){return Y}function _i(e){Y=e}function vi(e){return X.has(e)?X.get(e):void 0}function yi(e,t){X.set(e,t)}function bi(e){return Z.get(e)}function xi(e,t){Z.set(e,t)}function Si(){Y=null,X.clear(),Z.clear()}function Ci(){return Ei}function wi(e){Ei=e}function Ti(){Ei=void 0}var Y,X,Z,Ei,Di=e((()=>{Y=null,X=new Map,Z=new Map}));function Oi(){let e=new Set;return{subscribe(t){return e.add(t),()=>{e.delete(t)}},emit(...t){for(let n of e)n(...t)},clear(){e.clear()}}}var ki=e((()=>{}));function Ai(){let e=``;if(typeof process<`u`&&typeof process.cwd==`function`&&typeof le==`function`){let t=de();try{e=le(t).normalize(`NFC`)}catch{e=t.normalize(`NFC`)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,clientType:`cli`,sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:[`userSettings`,`projectSettings`,`localSettings`,`flagSettings`,`policySettings`],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:ue(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedAgentsMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForAgentsMd:[],sessionProjectDir:null,promptCache1hAllowlist:null,promptCache1hEligible:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,cacheEditingHeaderLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function ji(){return Q.sessionId}function Mi(e={}){return e.setCurrentAsParent&&(Q.parentSessionId=Q.sessionId),Q.planSlugCache.delete(Q.sessionId),Q.sessionId=ue(),Q.sessionProjectDir=null,Q.sessionId}function Ni(e,t=null){Q.planSlugCache.delete(Q.sessionId),Q.sessionId=e,Q.sessionProjectDir=t,xs.emit(e)}function Pi(){return Q.sessionProjectDir}function Fi(){return Q.originalCwd}function Ii(){return Q.projectRoot}function Li(e){Q.originalCwd=e.normalize(`NFC`)}function Ri(e){Q.projectRoot=e.normalize(`NFC`)}function zi(){return Q.cwd}function Bi(e){Q.cwd=e.normalize(`NFC`)}function Vi(e,t){Q.totalAPIDuration+=e,Q.totalAPIDurationWithoutRetries+=t}function Hi(e,t,n){Q.modelUsage[n]=t,Q.totalCostUSD+=e}function Ui(){return Q.totalCostUSD}function Wi(){return Q.totalAPIDuration}function Gi(){return Date.now()-Q.startTime}function Ki(){return Q.totalAPIDurationWithoutRetries}function qi(){return Q.totalToolDuration}function Ji(e){Q.totalToolDuration+=e,Q.turnToolDurationMs+=e,Q.turnToolCount++}function Yi(e){Q.turnHookDurationMs+=e,Q.turnHookCount++}function Xi(){Q.turnHookDurationMs=0,Q.turnHookCount=0}function Zi(){Q.turnToolDurationMs=0,Q.turnToolCount=0}function Qi(e){Q.turnClassifierDurationMs+=e,Q.turnClassifierCount++}function $i(){Q.turnClassifierDurationMs=0,Q.turnClassifierCount=0}function ea(){return Q.statsStore}function ta(e){Q.statsStore=e}function na(e){e&&ra()}function ra(){Q.lastInteractionTime=Date.now()}function ia(e,t){Q.totalLinesAdded+=e,Q.totalLinesRemoved+=t}function aa(){return Q.totalLinesAdded}function oa(){return Q.totalLinesRemoved}function sa(){return J(Object.values(Q.modelUsage),`inputTokens`)}function ca(){return J(Object.values(Q.modelUsage),`outputTokens`)}function la(){return J(Object.values(Q.modelUsage),`cacheReadInputTokens`)}function ua(){return J(Object.values(Q.modelUsage),`cacheCreationInputTokens`)}function da(){return J(Object.values(Q.modelUsage),`webSearchRequests`)}function fa(){return ca()-Cs}function pa(){return ws}function ma(e){Cs=ca(),ws=e,$=0}function ha(){return $}function ga(){$++}function _a(){Q.hasUnknownModelCost=!0}function va(){return Q.hasUnknownModelCost}function ya(){return Q.lastMainRequestId}function ba(e){Q.lastMainRequestId=e}function xa(){return Q.lastApiCompletionTimestamp}function Sa(e){Q.lastApiCompletionTimestamp=e}function Ca(){Q.pendingPostCompaction=!0}function wa(){let e=Q.pendingPostCompaction;return Q.pendingPostCompaction=!1,e}function Ta(){return Q.lastInteractionTime}function Ea(){return Ts}async function Da(){for(;Ts;)await new Promise(e=>setTimeout(e,Es).unref?.())}function Oa(){return Q.modelUsage}function ka(e){return Q.modelUsage[e]}function Aa(){return Q.mainLoopModelOverride}function ja(){return Q.initialMainLoopModel}function Ma(e){Q.mainLoopModelOverride=e}function Na(e){Q.initialMainLoopModel=e}function Pa(){return Q.sdkBetas}function Fa(e){Q.sdkBetas=e}function Ia(){Q.totalCostUSD=0,Q.totalAPIDuration=0,Q.totalAPIDurationWithoutRetries=0,Q.totalToolDuration=0,Q.startTime=Date.now(),Q.totalLinesAdded=0,Q.totalLinesRemoved=0,Q.hasUnknownModelCost=!1,Q.modelUsage={},Q.promptId=null}function La({totalCostUSD:e,totalAPIDuration:t,totalAPIDurationWithoutRetries:n,totalToolDuration:r,totalLinesAdded:i,totalLinesRemoved:a,lastDuration:o,modelUsage:s}){Q.totalCostUSD=e,Q.totalAPIDuration=t,Q.totalAPIDurationWithoutRetries=n,Q.totalToolDuration=r,Q.totalLinesAdded=i,Q.totalLinesRemoved=a,s&&(Q.modelUsage=s),o&&(Q.startTime=Date.now()-o)}function Ra(){return Q.modelStrings}function za(e){Q.modelStrings=e}function Ba(e,t){Q.meter=e,Q.sessionCounter=t(`claude_code.session.count`,{description:`Count of CLI sessions started`}),Q.locCounter=t(`claude_code.lines_of_code.count`,{description:`Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed`}),Q.prCounter=t(`claude_code.pull_request.count`,{description:`Number of pull requests created`}),Q.commitCounter=t(`claude_code.commit.count`,{description:`Number of git commits created`}),Q.costCounter=t(`claude_code.cost.usage`,{description:`Cost of the Work Mate session`,unit:`USD`}),Q.tokenCounter=t(`claude_code.token.usage`,{description:`Number of tokens used`,unit:`tokens`}),Q.codeEditToolDecisionCounter=t(`claude_code.code_edit_tool.decision`,{description:`Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools`}),Q.activeTimeCounter=t(`claude_code.active_time.total`,{description:`Total active time in seconds`,unit:`s`})}function Va(){return Q.sessionCounter}function Ha(){return Q.locCounter}function Ua(){return Q.prCounter}function Wa(){return Q.commitCounter}function Ga(){return Q.costCounter}function Ka(){return Q.tokenCounter}function qa(){return Q.codeEditToolDecisionCounter}function Ja(){return Q.activeTimeCounter}function Ya(){return Q.loggerProvider}function Xa(e){Q.loggerProvider=e}function Za(){return Q.eventLogger}function Qa(e){Q.eventLogger=e}function $a(e){Q.meterProvider=e}function eo(){return Q.tracerProvider}function to(e){Q.tracerProvider=e}function no(){return!Q.isInteractive}function ro(){return Q.isInteractive}function io(e){Q.isInteractive=e}function ao(e){Q.clientType=e}function oo(){return Q.sdkAgentProgressSummariesEnabled}function so(e){Q.sdkAgentProgressSummariesEnabled=e}function co(){return Q.strictToolResultPairing}function lo(){return Q.questionPreviewFormat}function uo(e){Q.questionPreviewFormat=e}function fo(){return Q.agentColorMap}function po(){return Q.flagSettingsPath}function mo(e){Q.flagSettingsPath=e}function ho(){return Q.flagSettingsInline}function go(e){Q.flagSettingsInline=e}function _o(e){Q.lastAPIRequest=e}function vo(e){Q.lastAPIRequestMessages=e}function yo(e){Q.lastClassifierRequests=e}function bo(e){Q.cachedAgentsMdContent=e}function xo(){return Q.allowedSettingSources}function So(e){Q.allowedSettingSources=e}function Co(){return no()&&Q.clientType!==`claude-vscode`}function wo(e){Q.inlinePlugins=e}function To(){return Q.inlinePlugins}function Eo(e){Q.useCoworkPlugins=e,Si()}function Do(){return Q.useCoworkPlugins}function Oo(e){Q.sessionBypassPermissionsMode=e}function ko(e){Q.sessionTrustAccepted=e}function Ao(){return Q.sessionTrustAccepted}function jo(e){Q.sessionPersistenceDisabled=e}function Mo(){return Q.sessionPersistenceDisabled}function No(){return Q.hasExitedPlanMode}function Po(e){Q.hasExitedPlanMode=e}function Fo(){return Q.needsPlanModeExitAttachment}function Io(e){Q.needsPlanModeExitAttachment=e}function Lo(e,t){t===`plan`&&e!==`plan`&&(Q.needsPlanModeExitAttachment=!1),e===`plan`&&t!==`plan`&&(Q.needsPlanModeExitAttachment=!0)}function Ro(){return Q.needsAutoModeExitAttachment}function zo(e){Q.needsAutoModeExitAttachment=e}function Bo(e,t){if(e===`auto`&&t===`plan`||e===`plan`&&t===`auto`)return;let n=e===`auto`,r=t===`auto`;r&&!n&&(Q.needsAutoModeExitAttachment=!1),n&&!r&&(Q.needsAutoModeExitAttachment=!0)}function Vo(){return Q.lspRecommendationShownThisSession}function Ho(e){Q.lspRecommendationShownThisSession=e}function Uo(e){Q.initJsonSchema=e}function Wo(){return Q.initJsonSchema}function Go(e){Q.registeredHooks||(Q.registeredHooks={});for(let[t,n]of Object.entries(e)){let e=t;Q.registeredHooks[e]||(Q.registeredHooks[e]=[]),Q.registeredHooks[e].push(...n??[])}}function Ko(){return Q.registeredHooks}function qo(){if(!Q.registeredHooks)return;let e={};for(let[t,n]of Object.entries(Q.registeredHooks)){let r=(n??[]).filter(e=>!(`pluginRoot`in e));r.length>0&&(e[t]=r)}Q.registeredHooks=Object.keys(e).length>0?e:null}function Jo(){return Q.planSlugCache}function Yo(e,t){if(Q.planSlugCache.size>=50){let e=Q.planSlugCache.keys().next().value;e!==void 0&&Q.planSlugCache.delete(e)}Q.planSlugCache.set(e,t)}function Xo(e,t,n,r=null){let i=`${r??``}:${e}`;Q.invokedSkills.set(i,{skillName:e,skillPath:t,content:n,invokedAt:Date.now(),agentId:r})}function Zo(e){let t=e??null,n=new Map;for(let[e,r]of Q.invokedSkills)r.agentId===t&&n.set(e,r);return n}function Qo(e){if(!e||e.size===0){Q.invokedSkills.clear();return}for(let[t,n]of Q.invokedSkills)(n.agentId===null||!e.has(n.agentId))&&Q.invokedSkills.delete(t)}function $o(e){for(let[t,n]of Q.invokedSkills)n.agentId===e&&Q.invokedSkills.delete(t)}function es(){return Q.mainThreadAgentType}function ts(e){Q.mainThreadAgentType=e}function ns(){return Q.systemPromptSectionCache}function rs(e,t){if(Q.systemPromptSectionCache.size>=100){let e=Q.systemPromptSectionCache.keys().next().value;e!==void 0&&Q.systemPromptSectionCache.delete(e)}Q.systemPromptSectionCache.set(e,t)}function is(){Q.systemPromptSectionCache.clear()}function as(){return Q.lastEmittedDate}function os(e){Q.lastEmittedDate=e}function ss(){return Q.additionalDirectoriesForAgentsMd}function cs(e){Q.additionalDirectoriesForAgentsMd=e}function ls(){return Q.promptCache1hAllowlist}function us(e){Q.promptCache1hAllowlist=e}function ds(){return Q.promptCache1hEligible}function fs(e){Q.promptCache1hEligible=e}function ps(){return Q.afkModeHeaderLatched}function ms(e){Q.afkModeHeaderLatched=e}function hs(){return Q.fastModeHeaderLatched}function gs(e){Q.fastModeHeaderLatched=e}function _s(){return Q.cacheEditingHeaderLatched}function vs(){Q.afkModeHeaderLatched=null,Q.fastModeHeaderLatched=null,Q.cacheEditingHeaderLatched=null}function ys(){return Q.promptId}function bs(e){Q.promptId=e}var Q,xs,Ss,Cs,ws,$,Ts,Es,Ds=e((()=>{mi(),hi(),Di(),ki(),Q=Ai(),xs=Oi(),Ss=xs.subscribe,Cs=0,ws=null,$=0,Ts=!1,Es=150}));export{ys as $,Si as $n,ut as $r,Bi as $t,Wo as A,bs as An,wn as Ar,No as At,ya as B,Eo as Bn,fn as Br,Co as Bt,Ga as C,zo as Cn,Vn as Cr,da as Ct,hs as D,Ri as Dn,I as Dr,Do as Dt,Za as E,Yo as En,Mn as Er,ka as Et,no as F,jo as Fn,yn as Fr,Mo as Ft,Ra as G,Oi as Gn,k as Gr,Xi as Gt,Ya as H,Ni as Hn,Ft as Hr,Go as Ht,Ea as I,ko as In,F as Ir,Ca as It,Jo as J,bi as Jn,ht as Jr,ms as Jt,Oa as K,ki as Kn,Tt as Kr,Zi as Kt,xa as L,ta as Ln,P as Lr,Ro as Lt,To as M,so as Mn,Sn as Mr,va as Mt,Zo as N,Fa as Nn,bn as Nr,ga as Nt,ho as O,us as On,jn as Or,Bo as Ot,ro as P,Oo as Pn,_n as Pr,Ds as Pt,ds as Q,Di as Qn,lt as Qr,La as Qt,as as R,rs as Rn,hn as Rr,Fo as Rt,Wa as S,za as Sn,z as Sr,qi as St,zi as T,Li as Tn,Pn as Tr,fa as Tt,Aa as U,na as Un,Mt as Ur,Ia as Ut,Ha as V,ma as Vn,pn as Vr,Mi as Vt,es as W,Da as Wn,jt as Wr,$i as Wt,Ii as X,Ci as Xn,ft as Xr,bo as Xt,Ua as Y,vi as Yn,gt as Yr,So as Yt,ls as Z,gi as Zn,dt as Zr,ao as Zt,fo as _,Ho as _n,jr as _r,Gi as _t,ia as a,ot as ai,_a as an,di as ar,ji as at,_s as b,Ba as bn,U as br,oa as bt,vs as c,w as ci,wo as cn,Hr as cr,ea as ct,qo as d,Ne as di,vo as dn,K as dr,Ka as dt,st as ei,Qa as en,xi as er,lo as et,is as f,C as fi,Sa as fn,zr as fr,Wi as ft,ps as g,Xa as gn,Ar as gr,Ui as gt,ss as h,Ce as hi,ba as hn,Lr as hr,la as ht,Vi as i,at as ii,Po as in,ui as ir,Va as it,ja as j,uo as jn,Cn as jr,Vo as jt,po as k,fs as kn,An as kr,Lo as kt,Qo as l,Re as li,io as ln,Ur as lr,co as lt,Ja as m,S as mi,os as mn,Rr as mr,ua as mt,Ji as n,D as ni,go as nn,wi as nr,oo as nt,Qi as o,He as oi,Uo as on,ni as or,Pi as ot,wa as p,ke as pi,yo as pn,Br as pr,Ki as pt,Fi as q,Ti as qn,O as qr,cs as qt,Hi as r,E as ri,mo as rn,_i as rr,Pa as rt,Yi as s,Ve as si,Na as sn,ri as sr,Ao as st,Xo as t,ct as ti,gs as tn,yi as tr,Ko as tt,$o as u,Me as ui,_o as un,q as ur,ns as ut,xo as v,Ma as vn,G as vr,sa as vt,pa as w,Io as wn,Nn as wr,eo as wt,qa as x,$a as xn,$n as xr,ca as xt,ha as y,ts as yn,or as yr,aa as yt,Ta as z,to as zn,N as zr,Ss as zt};
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{a as t,c as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./isObject-C6qM3WEW.js";import{a as d,c as f,d as p,f as m,g as h,h as g,i as _,l as v,m as y,n as ee,o as te,p as ne,r as re,s as ie,t as ae,u as oe}from"./memoize-BK3gG5ob.js";import{i as b,n as se,r as x,t as ce}from"./isSymbol-BO6cdPI7.js";import{realpathSync as le}from"fs";import{randomUUID as ue}from"crypto";import{cwd as de}from"process";function fe(){this.__data__=new ie,this.size=0}var pe=e((()=>{f()}));function me(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var he=e((()=>{}));function ge(e){return this.__data__.get(e)}var _e=e((()=>{}));function ve(e){return this.__data__.has(e)}var ye=e((()=>{}));function be(e,t){var n=this.__data__;if(n instanceof ie){var r=n.__data__;if(!d||r.length<xe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(r)}return n.set(e,t),this.size=n.size,this}var xe,Se=e((()=>{f(),te(),_(),xe=200}));function S(e){var t=this.__data__=new ie(e);this.size=t.size}var Ce=e((()=>{f(),pe(),he(),_e(),ye(),Se(),S.prototype.clear=fe,S.prototype.delete=me,S.prototype.get=ge,S.prototype.has=ve,S.prototype.set=be}));function we(e){return this.__data__.set(e,Te),this}var Te,Ee=e((()=>{Te=`__lodash_hash_undefined__`}));function De(e){return this.__data__.has(e)}var Oe=e((()=>{}));function C(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}var ke=e((()=>{_(),Ee(),Oe(),C.prototype.add=C.prototype.push=we,C.prototype.has=De}));function Ae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var je=e((()=>{}));function Me(e,t){return e.has(t)}var Ne=e((()=>{}));function Pe(e,t,n,r,i,a){var o=n&Fe,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Ie?new C:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Ae(t,function(e,t){if(!Me(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Fe,Ie,Le=e((()=>{ke(),je(),Ne(),Fe=1,Ie=2})),w,Re=e((()=>{c(),w=n.Uint8Array}));function ze(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var Be=e((()=>{}));function Ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var He=e((()=>{}));function Ue(e,t,n,r,i,a,o){switch(n){case nt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tt:return!(e.byteLength!=t.byteLength||!a(new w(e),new w(t)));case Ke:case qe:case Xe:return v(+e,+t);case Je:return e.name==t.name&&e.message==t.message;case Ze:case $e:return e==t+``;case Ye:var s=ze;case Qe:var c=r&We;if(s||(s=Ve),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Ge,o.set(e,t);var u=Pe(s(e),s(t),r,i,a,o);return o.delete(e),u;case et:if(T)return T.call(e)==T.call(t)}return!1}var We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,T,it=e((()=>{o(),Re(),oe(),Le(),Be(),He(),We=1,Ge=2,Ke=`[object Boolean]`,qe=`[object Date]`,Je=`[object Error]`,Ye=`[object Map]`,Xe=`[object Number]`,Ze=`[object RegExp]`,Qe=`[object Set]`,$e=`[object String]`,et=`[object Symbol]`,tt=`[object ArrayBuffer]`,nt=`[object DataView]`,rt=t?t.prototype:void 0,T=rt?rt.valueOf:void 0}));function at(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ot=e((()=>{})),E,D=e((()=>{E=Array.isArray}));function st(e,t,n){var r=t(e);return E(e)?r:at(r,n(e))}var ct=e((()=>{ot(),D()}));function lt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var ut=e((()=>{}));function dt(){return[]}var ft=e((()=>{})),pt,mt,ht,gt=e((()=>{ut(),ft(),pt=Object.prototype.propertyIsEnumerable,mt=Object.getOwnPropertySymbols,ht=mt?function(e){return e==null?[]:(e=Object(e),lt(mt(e),function(t){return pt.call(e,t)}))}:dt}));function _t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vt=e((()=>{}));function yt(e){return b(e)&&s(e)==bt}var bt,xt=e((()=>{r(),x(),bt=`[object Arguments]`})),St,Ct,wt,O,Tt=e((()=>{xt(),x(),St=Object.prototype,Ct=St.hasOwnProperty,wt=St.propertyIsEnumerable,O=yt(function(){return arguments}())?yt:function(e){return b(e)&&Ct.call(e,`callee`)&&!wt.call(e,`callee`)}}));function Et(){return!1}var Dt=e((()=>{})),Ot,kt,At,k,jt=e((()=>{c(),Dt(),Ot=typeof exports==`object`&&exports&&!exports.nodeType&&exports,kt=Ot&&typeof module==`object`&&module&&!module.nodeType&&module,At=kt&&kt.exports===Ot?n.Buffer:void 0,k=(At?At.isBuffer:void 0)||Et}));function Mt(e,t){var n=typeof e;return t=t??Nt,!!t&&(n==`number`||n!=`symbol`&&Pt.test(e))&&e>-1&&e%1==0&&e<t}var Nt,Pt,Ft=e((()=>{Nt=9007199254740991,Pt=/^(?:0|[1-9]\d*)$/}));function It(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Lt}var Lt,Rt=e((()=>{Lt=9007199254740991}));function zt(e){return b(e)&&It(e.length)&&!!A[s(e)]}var Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,A,dn=e((()=>{r(),Rt(),x(),Bt=`[object Arguments]`,Vt=`[object Array]`,Ht=`[object Boolean]`,Ut=`[object Date]`,Wt=`[object Error]`,Gt=`[object Function]`,Kt=`[object Map]`,qt=`[object Number]`,Jt=`[object Object]`,Yt=`[object RegExp]`,Xt=`[object Set]`,Zt=`[object String]`,Qt=`[object WeakMap]`,$t=`[object ArrayBuffer]`,en=`[object DataView]`,tn=`[object Float32Array]`,nn=`[object Float64Array]`,rn=`[object Int8Array]`,an=`[object Int16Array]`,on=`[object Int32Array]`,sn=`[object Uint8Array]`,cn=`[object Uint8ClampedArray]`,ln=`[object Uint16Array]`,un=`[object Uint32Array]`,A={},A[tn]=A[nn]=A[rn]=A[an]=A[on]=A[sn]=A[cn]=A[ln]=A[un]=!0,A[Bt]=A[Vt]=A[$t]=A[Ht]=A[en]=A[Ut]=A[Wt]=A[Gt]=A[Kt]=A[qt]=A[Jt]=A[Yt]=A[Xt]=A[Zt]=A[Qt]=!1}));function fn(e){return function(t){return e(t)}}var pn=e((()=>{})),mn,j,M,N,hn=e((()=>{u(),mn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,j=mn&&typeof module==`object`&&module&&!module.nodeType&&module,M=j&&j.exports===mn&&i.process,N=function(){try{return j&&j.require&&j.require(`util`).types||M&&M.binding&&M.binding(`util`)}catch{}}()})),gn,P,F=e((()=>{dn(),pn(),hn(),gn=N&&N.isTypedArray,P=gn?fn(gn):zt}));function _n(e,t){var n=E(e),r=!n&&O(e),i=!n&&!r&&k(e),a=!n&&!r&&!i&&P(e),o=n||r||i||a,s=o?_t(e.length,String):[],c=s.length;for(var l in e)(t||vn.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Mt(l,c)))&&s.push(l);return s}var vn,yn=e((()=>{vt(),Tt(),D(),jt(),Ft(),F(),vn=Object.prototype.hasOwnProperty}));function bn(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xn)}var xn,Sn=e((()=>{xn=Object.prototype}));function Cn(e,t){return function(n){return e(t(n))}}var wn=e((()=>{})),Tn,En=e((()=>{wn(),Tn=Cn(Object.keys,Object)}));function Dn(e){if(!bn(e))return Tn(e);var t=[];for(var n in Object(e))On.call(e,n)&&n!=`constructor`&&t.push(n);return t}var On,kn=e((()=>{Sn(),En(),On=Object.prototype.hasOwnProperty}));function An(e){return e!=null&&It(e.length)&&!h(e)}var jn=e((()=>{g(),Rt()}));function I(e){return An(e)?_n(e):Dn(e)}var Mn=e((()=>{yn(),kn(),jn()}));function Nn(e){return st(e,I,ht)}var Pn=e((()=>{ct(),gt(),Mn()}));function Fn(e,t,n,r,i,a){var o=n&In,s=Nn(e),c=s.length;if(c!=Nn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Ln.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||(m=u==`constructor`)}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var In,Ln,Rn=e((()=>{Pn(),In=1,Ln=Object.prototype.hasOwnProperty})),L,zn=e((()=>{m(),c(),L=p(n,`DataView`)})),R,Bn=e((()=>{m(),c(),R=p(n,`Promise`)})),z,Vn=e((()=>{m(),c(),z=p(n,`Set`)})),B,Hn=e((()=>{m(),c(),B=p(n,`WeakMap`)})),Un,Wn,Gn,Kn,V,qn,Jn,Yn,Xn,Zn,Qn,H,U,$n=e((()=>{zn(),te(),Bn(),Vn(),Hn(),r(),ne(),Un=`[object Map]`,Wn=`[object Object]`,Gn=`[object Promise]`,Kn=`[object Set]`,V=`[object WeakMap]`,qn=`[object DataView]`,Jn=y(L),Yn=y(d),Xn=y(R),Zn=y(z),Qn=y(B),H=s,(L&&H(new L(new ArrayBuffer(1)))!=qn||d&&H(new d)!=Un||R&&H(R.resolve())!=Gn||z&&H(new z)!=Kn||B&&H(new B)!=V)&&(H=function(e){var t=s(e),n=t==Wn?e.constructor:void 0,r=n?y(n):``;if(r)switch(r){case Jn:return qn;case Yn:return Un;case Xn:return Gn;case Zn:return Kn;case Qn:return V}return t}),U=H}));function er(e,t,n,r,i,a){var o=E(e),s=E(t),c=o?rr:U(e),l=s?rr:U(t);c=c==nr?W:c,l=l==nr?W:l;var u=c==W,d=l==W,f=c==l;if(f&&k(e)){if(!k(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new S),o||P(e)?Pe(e,t,n,r,i,a):Ue(e,t,c,n,r,i,a);if(!(n&tr)){var p=u&&ir.call(e,`__wrapped__`),m=d&&ir.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||(a=new S),i(h,g,n,r,a)}}return f?(a||(a=new S),Fn(e,t,n,r,i,a)):!1}var tr,nr,rr,W,ir,ar=e((()=>{Ce(),Le(),it(),Rn(),$n(),D(),jt(),F(),tr=1,nr=`[object Arguments]`,rr=`[object Array]`,W=`[object Object]`,ir=Object.prototype.hasOwnProperty}));function G(e,t,n,r,i){return e===t?!0:e==null||t==null||!b(e)&&!b(t)?e!==e&&t!==t:er(e,t,n,r,G,i)}var or=e((()=>{ar(),x()}));function sr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new S;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?G(u,l,cr|lr,r,d):f))return!1}}return!0}var cr,lr,ur=e((()=>{Ce(),or(),cr=1,lr=2}));function dr(e){return e===e&&!a(e)}var fr=e((()=>{l()}));function pr(e){for(var t=I(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,dr(i)]}return t}var mr=e((()=>{fr(),Mn()}));function hr(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var gr=e((()=>{}));function _r(e){var t=pr(e);return t.length==1&&t[0][2]?hr(t[0][0],t[0][1]):function(n){return n===e||sr(n,e,t)}}var vr=e((()=>{ur(),mr(),gr()}));function yr(e,t){if(E(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||se(e)?!0:xr.test(e)||!br.test(e)||t!=null&&e in Object(t)}var br,xr,Sr=e((()=>{D(),ce(),br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xr=/^\w*$/}));function Cr(e){var t=ee(e,function(e){return n.size===wr&&n.clear(),e}),n=t.cache;return t}var wr,Tr=e((()=>{ae(),wr=500})),Er,Dr,Or,kr=e((()=>{Tr(),Er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dr=/\\(\\)?/g,Or=Cr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Er,function(e,n,r,i){t.push(r?i.replace(Dr,`$1`):n||e)}),t})}));function Ar(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jr=e((()=>{}));function Mr(e){if(typeof e==`string`)return e;if(E(e))return Ar(e,Mr)+``;if(se(e))return Fr?Fr.call(e):``;var t=e+``;return t==`0`&&1/e==-Nr?`-0`:t}var Nr,Pr,Fr,Ir=e((()=>{o(),jr(),D(),ce(),Nr=1/0,Pr=t?t.prototype:void 0,Fr=Pr?Pr.toString:void 0}));function Lr(e){return e==null?``:Mr(e)}var Rr=e((()=>{Ir()}));function zr(e,t){return E(e)?e:yr(e,t)?[e]:Or(Lr(e))}var Br=e((()=>{D(),Sr(),kr(),Rr()}));function K(e){if(typeof e==`string`||se(e))return e;var t=e+``;return t==`0`&&1/e==-Vr?`-0`:t}var Vr,q=e((()=>{ce(),Vr=1/0}));function Hr(e,t){t=zr(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[K(t[n++])];return n&&n==r?e:void 0}var Ur=e((()=>{Br(),q()}));function Wr(e,t,n){var r=e==null?void 0:Hr(e,t);return r===void 0?n:r}var Gr=e((()=>{Ur()}));function Kr(e,t){return e!=null&&t in Object(e)}var qr=e((()=>{}));function Jr(e,t,n){t=zr(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=K(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&It(i)&&Mt(o,i)&&(E(e)||O(e)))}var Yr=e((()=>{Br(),Tt(),D(),Ft(),Rt(),q()}));function Xr(e,t){return e!=null&&Jr(e,t,Kr)}var Zr=e((()=>{qr(),Yr()}));function Qr(e,t){return yr(e)&&dr(t)?hr(K(e),t):function(n){var r=Wr(n,e);return r===void 0&&r===t?Xr(n,e):G(t,r,$r|ei)}}var $r,ei,ti=e((()=>{or(),Gr(),Zr(),Sr(),fr(),gr(),q(),$r=1,ei=2}));function ni(e){return e}var ri=e((()=>{}));function ii(e){return function(t){return t?.[e]}}var ai=e((()=>{}));function oi(e){return function(t){return Hr(t,e)}}var si=e((()=>{Ur()}));function ci(e){return yr(e)?ii(K(e)):oi(e)}var li=e((()=>{ai(),si(),Sr(),q()}));function ui(e){return typeof e==`function`?e:e==null?ni:typeof e==`object`?E(e)?Qr(e[0],e[1]):_r(e):ci(e)}var di=e((()=>{vr(),ti(),ri(),D(),li()}));function fi(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var pi=e((()=>{}));function J(e,t){return e&&e.length?fi(e,ui(t,2)):0}var mi=e((()=>{di(),pi()})),hi=e((()=>{}));function gi(){return Y}function _i(e){Y=e}function vi(e){return X.has(e)?X.get(e):void 0}function yi(e,t){X.set(e,t)}function bi(e){return Z.get(e)}function xi(e,t){Z.set(e,t)}function Si(){Y=null,X.clear(),Z.clear()}function Ci(){return Ei}function wi(e){Ei=e}function Ti(){Ei=void 0}var Y,X,Z,Ei,Di=e((()=>{Y=null,X=new Map,Z=new Map}));function Oi(){let e=new Set;return{subscribe(t){return e.add(t),()=>{e.delete(t)}},emit(...t){for(let n of e)n(...t)},clear(){e.clear()}}}var ki=e((()=>{}));function Ai(){let e=``;if(typeof process<`u`&&typeof process.cwd==`function`&&typeof le==`function`){let t=de();try{e=le(t).normalize(`NFC`)}catch{e=t.normalize(`NFC`)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,clientType:`cli`,sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:[`userSettings`,`projectSettings`,`localSettings`,`flagSettings`,`policySettings`],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:ue(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedAgentsMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForAgentsMd:[],sessionProjectDir:null,promptCache1hAllowlist:null,promptCache1hEligible:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,cacheEditingHeaderLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function ji(){return Q.sessionId}function Mi(e={}){return e.setCurrentAsParent&&(Q.parentSessionId=Q.sessionId),Q.planSlugCache.delete(Q.sessionId),Q.sessionId=ue(),Q.sessionProjectDir=null,Q.sessionId}function Ni(e,t=null){Q.planSlugCache.delete(Q.sessionId),Q.sessionId=e,Q.sessionProjectDir=t,xs.emit(e)}function Pi(){return Q.sessionProjectDir}function Fi(){return Q.originalCwd}function Ii(){return Q.projectRoot}function Li(e){Q.originalCwd=e.normalize(`NFC`)}function Ri(e){Q.projectRoot=e.normalize(`NFC`)}function zi(){return Q.cwd}function Bi(e){Q.cwd=e.normalize(`NFC`)}function Vi(e,t){Q.totalAPIDuration+=e,Q.totalAPIDurationWithoutRetries+=t}function Hi(e,t,n){Q.modelUsage[n]=t,Q.totalCostUSD+=e}function Ui(){return Q.totalCostUSD}function Wi(){return Q.totalAPIDuration}function Gi(){return Date.now()-Q.startTime}function Ki(){return Q.totalAPIDurationWithoutRetries}function qi(){return Q.totalToolDuration}function Ji(e){Q.totalToolDuration+=e,Q.turnToolDurationMs+=e,Q.turnToolCount++}function Yi(e){Q.turnHookDurationMs+=e,Q.turnHookCount++}function Xi(){Q.turnHookDurationMs=0,Q.turnHookCount=0}function Zi(){Q.turnToolDurationMs=0,Q.turnToolCount=0}function Qi(e){Q.turnClassifierDurationMs+=e,Q.turnClassifierCount++}function $i(){Q.turnClassifierDurationMs=0,Q.turnClassifierCount=0}function ea(){return Q.statsStore}function ta(e){Q.statsStore=e}function na(e){e&&ra()}function ra(){Q.lastInteractionTime=Date.now()}function ia(e,t){Q.totalLinesAdded+=e,Q.totalLinesRemoved+=t}function aa(){return Q.totalLinesAdded}function oa(){return Q.totalLinesRemoved}function sa(){return J(Object.values(Q.modelUsage),`inputTokens`)}function ca(){return J(Object.values(Q.modelUsage),`outputTokens`)}function la(){return J(Object.values(Q.modelUsage),`cacheReadInputTokens`)}function ua(){return J(Object.values(Q.modelUsage),`cacheCreationInputTokens`)}function da(){return J(Object.values(Q.modelUsage),`webSearchRequests`)}function fa(){return ca()-Cs}function pa(){return ws}function ma(e){Cs=ca(),ws=e,$=0}function ha(){return $}function ga(){$++}function _a(){Q.hasUnknownModelCost=!0}function va(){return Q.hasUnknownModelCost}function ya(){return Q.lastMainRequestId}function ba(e){Q.lastMainRequestId=e}function xa(){return Q.lastApiCompletionTimestamp}function Sa(e){Q.lastApiCompletionTimestamp=e}function Ca(){Q.pendingPostCompaction=!0}function wa(){let e=Q.pendingPostCompaction;return Q.pendingPostCompaction=!1,e}function Ta(){return Q.lastInteractionTime}function Ea(){return Ts}async function Da(){for(;Ts;)await new Promise(e=>setTimeout(e,Es).unref?.())}function Oa(){return Q.modelUsage}function ka(e){return Q.modelUsage[e]}function Aa(){return Q.mainLoopModelOverride}function ja(){return Q.initialMainLoopModel}function Ma(e){Q.mainLoopModelOverride=e}function Na(e){Q.initialMainLoopModel=e}function Pa(){return Q.sdkBetas}function Fa(e){Q.sdkBetas=e}function Ia(){Q.totalCostUSD=0,Q.totalAPIDuration=0,Q.totalAPIDurationWithoutRetries=0,Q.totalToolDuration=0,Q.startTime=Date.now(),Q.totalLinesAdded=0,Q.totalLinesRemoved=0,Q.hasUnknownModelCost=!1,Q.modelUsage={},Q.promptId=null}function La({totalCostUSD:e,totalAPIDuration:t,totalAPIDurationWithoutRetries:n,totalToolDuration:r,totalLinesAdded:i,totalLinesRemoved:a,lastDuration:o,modelUsage:s}){Q.totalCostUSD=e,Q.totalAPIDuration=t,Q.totalAPIDurationWithoutRetries=n,Q.totalToolDuration=r,Q.totalLinesAdded=i,Q.totalLinesRemoved=a,s&&(Q.modelUsage=s),o&&(Q.startTime=Date.now()-o)}function Ra(){return Q.modelStrings}function za(e){Q.modelStrings=e}function Ba(e,t){Q.meter=e,Q.sessionCounter=t(`workmate.session.count`,{description:`Count of CLI sessions started`}),Q.locCounter=t(`workmate.lines_of_code.count`,{description:`Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed`}),Q.prCounter=t(`workmate.pull_request.count`,{description:`Number of pull requests created`}),Q.commitCounter=t(`workmate.commit.count`,{description:`Number of git commits created`}),Q.costCounter=t(`workmate.cost.usage`,{description:`Cost of the Work Mate session`,unit:`USD`}),Q.tokenCounter=t(`workmate.token.usage`,{description:`Number of tokens used`,unit:`tokens`}),Q.codeEditToolDecisionCounter=t(`workmate.code_edit_tool.decision`,{description:`Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools`}),Q.activeTimeCounter=t(`workmate.active_time.total`,{description:`Total active time in seconds`,unit:`s`})}function Va(){return Q.sessionCounter}function Ha(){return Q.locCounter}function Ua(){return Q.prCounter}function Wa(){return Q.commitCounter}function Ga(){return Q.costCounter}function Ka(){return Q.tokenCounter}function qa(){return Q.codeEditToolDecisionCounter}function Ja(){return Q.activeTimeCounter}function Ya(){return Q.loggerProvider}function Xa(e){Q.loggerProvider=e}function Za(){return Q.eventLogger}function Qa(e){Q.eventLogger=e}function $a(e){Q.meterProvider=e}function eo(){return Q.tracerProvider}function to(e){Q.tracerProvider=e}function no(){return!Q.isInteractive}function ro(){return Q.isInteractive}function io(e){Q.isInteractive=e}function ao(e){Q.clientType=e}function oo(){return Q.sdkAgentProgressSummariesEnabled}function so(e){Q.sdkAgentProgressSummariesEnabled=e}function co(){return Q.strictToolResultPairing}function lo(){return Q.questionPreviewFormat}function uo(e){Q.questionPreviewFormat=e}function fo(){return Q.agentColorMap}function po(){return Q.flagSettingsPath}function mo(e){Q.flagSettingsPath=e}function ho(){return Q.flagSettingsInline}function go(e){Q.flagSettingsInline=e}function _o(e){Q.lastAPIRequest=e}function vo(e){Q.lastAPIRequestMessages=e}function yo(e){Q.lastClassifierRequests=e}function bo(e){Q.cachedAgentsMdContent=e}function xo(){return Q.allowedSettingSources}function So(e){Q.allowedSettingSources=e}function Co(){return no()&&Q.clientType!==`claude-vscode`}function wo(e){Q.inlinePlugins=e}function To(){return Q.inlinePlugins}function Eo(e){Q.useCoworkPlugins=e,Si()}function Do(){return Q.useCoworkPlugins}function Oo(e){Q.sessionBypassPermissionsMode=e}function ko(e){Q.sessionTrustAccepted=e}function Ao(){return Q.sessionTrustAccepted}function jo(e){Q.sessionPersistenceDisabled=e}function Mo(){return Q.sessionPersistenceDisabled}function No(){return Q.hasExitedPlanMode}function Po(e){Q.hasExitedPlanMode=e}function Fo(){return Q.needsPlanModeExitAttachment}function Io(e){Q.needsPlanModeExitAttachment=e}function Lo(e,t){t===`plan`&&e!==`plan`&&(Q.needsPlanModeExitAttachment=!1),e===`plan`&&t!==`plan`&&(Q.needsPlanModeExitAttachment=!0)}function Ro(){return Q.needsAutoModeExitAttachment}function zo(e){Q.needsAutoModeExitAttachment=e}function Bo(e,t){if(e===`auto`&&t===`plan`||e===`plan`&&t===`auto`)return;let n=e===`auto`,r=t===`auto`;r&&!n&&(Q.needsAutoModeExitAttachment=!1),n&&!r&&(Q.needsAutoModeExitAttachment=!0)}function Vo(){return Q.lspRecommendationShownThisSession}function Ho(e){Q.lspRecommendationShownThisSession=e}function Uo(e){Q.initJsonSchema=e}function Wo(){return Q.initJsonSchema}function Go(e){Q.registeredHooks||(Q.registeredHooks={});for(let[t,n]of Object.entries(e)){let e=t;Q.registeredHooks[e]||(Q.registeredHooks[e]=[]),Q.registeredHooks[e].push(...n??[])}}function Ko(){return Q.registeredHooks}function qo(){if(!Q.registeredHooks)return;let e={};for(let[t,n]of Object.entries(Q.registeredHooks)){let r=(n??[]).filter(e=>!(`pluginRoot`in e));r.length>0&&(e[t]=r)}Q.registeredHooks=Object.keys(e).length>0?e:null}function Jo(){return Q.planSlugCache}function Yo(e,t){if(Q.planSlugCache.size>=50){let e=Q.planSlugCache.keys().next().value;e!==void 0&&Q.planSlugCache.delete(e)}Q.planSlugCache.set(e,t)}function Xo(e,t,n,r=null){let i=`${r??``}:${e}`;Q.invokedSkills.set(i,{skillName:e,skillPath:t,content:n,invokedAt:Date.now(),agentId:r})}function Zo(e){let t=e??null,n=new Map;for(let[e,r]of Q.invokedSkills)r.agentId===t&&n.set(e,r);return n}function Qo(e){if(!e||e.size===0){Q.invokedSkills.clear();return}for(let[t,n]of Q.invokedSkills)(n.agentId===null||!e.has(n.agentId))&&Q.invokedSkills.delete(t)}function $o(e){for(let[t,n]of Q.invokedSkills)n.agentId===e&&Q.invokedSkills.delete(t)}function es(){return Q.mainThreadAgentType}function ts(e){Q.mainThreadAgentType=e}function ns(){return Q.systemPromptSectionCache}function rs(e,t){if(Q.systemPromptSectionCache.size>=100){let e=Q.systemPromptSectionCache.keys().next().value;e!==void 0&&Q.systemPromptSectionCache.delete(e)}Q.systemPromptSectionCache.set(e,t)}function is(){Q.systemPromptSectionCache.clear()}function as(){return Q.lastEmittedDate}function os(e){Q.lastEmittedDate=e}function ss(){return Q.additionalDirectoriesForAgentsMd}function cs(e){Q.additionalDirectoriesForAgentsMd=e}function ls(){return Q.promptCache1hAllowlist}function us(e){Q.promptCache1hAllowlist=e}function ds(){return Q.promptCache1hEligible}function fs(e){Q.promptCache1hEligible=e}function ps(){return Q.afkModeHeaderLatched}function ms(e){Q.afkModeHeaderLatched=e}function hs(){return Q.fastModeHeaderLatched}function gs(e){Q.fastModeHeaderLatched=e}function _s(){return Q.cacheEditingHeaderLatched}function vs(){Q.afkModeHeaderLatched=null,Q.fastModeHeaderLatched=null,Q.cacheEditingHeaderLatched=null}function ys(){return Q.promptId}function bs(e){Q.promptId=e}var Q,xs,Ss,Cs,ws,$,Ts,Es,Ds=e((()=>{mi(),hi(),Di(),ki(),Q=Ai(),xs=Oi(),Ss=xs.subscribe,Cs=0,ws=null,$=0,Ts=!1,Es=150}));export{ys as $,Si as $n,ut as $r,Bi as $t,Wo as A,bs as An,wn as Ar,No as At,ya as B,Eo as Bn,fn as Br,Co as Bt,Ga as C,zo as Cn,Vn as Cr,da as Ct,hs as D,Ri as Dn,I as Dr,Do as Dt,Za as E,Yo as En,Mn as Er,ka as Et,no as F,jo as Fn,yn as Fr,Mo as Ft,Ra as G,Oi as Gn,k as Gr,Xi as Gt,Ya as H,Ni as Hn,Ft as Hr,Go as Ht,Ea as I,ko as In,F as Ir,Ca as It,Jo as J,bi as Jn,ht as Jr,ms as Jt,Oa as K,ki as Kn,Tt as Kr,Zi as Kt,xa as L,ta as Ln,P as Lr,Ro as Lt,To as M,so as Mn,Sn as Mr,va as Mt,Zo as N,Fa as Nn,bn as Nr,ga as Nt,ho as O,us as On,jn as Or,Bo as Ot,ro as P,Oo as Pn,_n as Pr,Ds as Pt,ds as Q,Di as Qn,lt as Qr,La as Qt,as as R,rs as Rn,hn as Rr,Fo as Rt,Wa as S,za as Sn,z as Sr,qi as St,zi as T,Li as Tn,Pn as Tr,fa as Tt,Aa as U,na as Un,Mt as Ur,Ia as Ut,Ha as V,ma as Vn,pn as Vr,Mi as Vt,es as W,Da as Wn,jt as Wr,$i as Wt,Ii as X,Ci as Xn,ft as Xr,bo as Xt,Ua as Y,vi as Yn,gt as Yr,So as Yt,ls as Z,gi as Zn,dt as Zr,ao as Zt,fo as _,Ho as _n,jr as _r,Gi as _t,ia as a,ot as ai,_a as an,di as ar,ji as at,_s as b,Ba as bn,U as br,oa as bt,vs as c,w as ci,wo as cn,Hr as cr,ea as ct,qo as d,Ne as di,vo as dn,K as dr,Ka as dt,st as ei,Qa as en,xi as er,lo as et,is as f,C as fi,Sa as fn,zr as fr,Wi as ft,ps as g,Xa as gn,Ar as gr,Ui as gt,ss as h,Ce as hi,ba as hn,Lr as hr,la as ht,Vi as i,at as ii,Po as in,ui as ir,Va as it,ja as j,uo as jn,Cn as jr,Vo as jt,po as k,fs as kn,An as kr,Lo as kt,Qo as l,Re as li,io as ln,Ur as lr,co as lt,Ja as m,S as mi,os as mn,Rr as mr,ua as mt,Ji as n,D as ni,go as nn,wi as nr,oo as nt,Qi as o,He as oi,Uo as on,ni as or,Pi as ot,wa as p,ke as pi,yo as pn,Br as pr,Ki as pt,Fi as q,Ti as qn,O as qr,cs as qt,Hi as r,E as ri,mo as rn,_i as rr,Pa as rt,Yi as s,Ve as si,Na as sn,ri as sr,Ao as st,Xo as t,ct as ti,gs as tn,yi as tr,Ko as tt,$o as u,Me as ui,_o as un,q as ur,ns as ut,xo as v,Ma as vn,G as vr,sa as vt,pa as w,Io as wn,Nn as wr,eo as wt,qa as x,$a as xn,$n as xr,ca as xt,ha as y,ts as yn,or as yr,aa as yt,Ta as z,to as zn,N as zr,Ss as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Pt as e,at as t,t as n}from"./state-CXY-q5gr.js";e();export{n as addInvokedSkill,t as getSessionId};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{Kr as n,ai as r,kn as i,qr as a,t as o,vt as s}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{Kr as n,ai as r,kn as i,qr as a,t as o,vt as s}from"./src-WZ94ZKI3.js";import{t as c}from"./jsx-runtime-Bb4Xn-E0.js";import{PassThrough as l}from"stream";function u({children:e}){let{exit:t}=s();return(0,m.useLayoutEffect)(()=>{let e=setTimeout(t,0);return()=>clearTimeout(e)},[t]),(0,h.jsx)(h.Fragment,{children:e})}function d(e){let t=e.indexOf(g);if(t===-1)return e;let n=t+8,r=e.indexOf(_,n);return r===-1?e:e.slice(n,r)}async function f(e,t){let n=``,r=new l;return t!==void 0&&(r.columns=t),r.on(`data`,e=>{n+=e.toString()}),await(await i((0,h.jsx)(u,{children:e}),{stdout:r,patchConsole:!1})).waitUntilExit(),d(n)}async function p(e,t){return a(await f(e,t))}var m,h,g,_,v=e((()=>{m=t(r(),1),n(),o(),h=c(),g=`\x1B[?2026h`,_=`\x1B[?2026l`}));export{f as n,p as r,v as t};
|
|
@@ -0,0 +1 @@
|
|
|
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-B6DImvca.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 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Ki as t,qi as n}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Ki as t,qi as n}from"./loadAgentsDir-DR5PVAc3.js";function r(e){return e?e.activeAgents.filter(e=>e.source!==`built-in`).reduce((e,t)=>e+n(`${t.agentType}: ${t.whenToUse}`),0):0}var i,a=e((()=>{t(),i=15e3}));export{r as n,a as r,i as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./defineProperty-C-QyHrDq.js";import{i as r,o as i}from"./bundledMode-BxyD5cqq.js";function a(e,t){return{cmd:i(e)??e,args:t}}var o=e((()=>{r()}));function s(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e,t,n=`${t}s`){return e===1?t:n}function u(e){let t=e.indexOf(`
|
|
2
|
+
`);return t===-1?e:e.slice(0,t)}function d(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 f(e){return e.replace(/[0-9]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248))}function p(e){return e.replace(/\u3000/g,` `)}function m(e,t=`,`,n=g){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 h(e,t){let n=e.split(`
|
|
3
|
+
`);return n.length<=t?e:`${n.slice(0,t).join(`
|
|
4
|
+
`)}…`}var g,_,v=e((()=>{t(),g=2**21,_=class{constructor(e=g){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{u as a,p as c,h as d,a as f,s as i,l,c as n,v as o,o as p,d as r,f as s,_ as t,m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,r as t}from"./switcher-DhZCaAun.js";t();export{e as restoreActiveProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{m as t,s as n}from"./settings-YIDksG5Z.js";import{i as r,n as i,r as a,t as o}from"./loader-6MqzNGmV.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}:{WORKMATE_USE_OPENAI:`1`,OPENAI_BASE_URL:r.baseUrl,OPENAI_MODEL:r.defaultModel},s=[];if(r.kind===`openai-compat`){let e=process.env.WORKMATE_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.WORKMATE_USE_BEDROCK,delete process.env.WORKMATE_USE_VERTEX,delete process.env.WORKMATE_USE_FOUNDRY,delete process.env.WORKMATE_USE_GEMINI,delete process.env.WORKMATE_USE_GROK,e.kind===`anthropic-compat`?(delete process.env.WORKMATE_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}:{WORKMATE_USE_OPENAI:`1`,OPENAI_BASE_URL:e.baseUrl,OPENAI_API_KEY:t??``,OPENAI_MODEL:e.defaultModel},{clearOpenAIClientCache:r}=await import(`./client-mnUISv_N.js`);r();let{fetchAvailableModels:i}=await import(`./fetchModelList-qPKAuu4m.js`);i.cache.clear();let{applyConfigEnvironmentVariables:a}=await import(`./managedEnv-DCEJh3z3.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-BK6gCko-.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-BK6gCko-.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-BK6gCko-.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 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./BackgroundTasksDialog-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./BackgroundTasksDialog-mcDuiNGs.js";async function i(e,t){return(0,a.jsx)(r,{toolUseContext:t,onDone:e})}var a;e((()=>{n(),a=t()}))();export{i as call};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DZ_SvEVz.js";import{g as r,h as i,m as a,vw as o,yw as s}from"./loadAgentsDir-DR5PVAc3.js";import{basename as c,join as l}from"path";import{appendFileSync as u,mkdirSync as d,readFileSync as f,readdirSync as p,writeFileSync as m}from"fs";import{randomUUID as h}from"crypto";function g(){let e=i(`templates`,process.cwd()),n=l(t(),`templates`);try{return p(n),[...e,n]}catch{return e}}function _(){let e=[],t=new Set;for(let n of g()){let r;try{r=p(n)}catch{continue}for(let i of r){if(!i.endsWith(`.md`))continue;let r=c(i,`.md`);if(t.has(r))continue;t.add(r);let o=l(n,i);try{let{frontmatter:t,content:n}=s(f(o,`utf-8`),o),i=(typeof t.description==`string`?t.description:``)||a(n,`No description`);e.push({name:r,description:i,filePath:o,frontmatter:t,content:n})}catch{}}}return e}function v(e){return _().find(t=>t.name===e)??null}var y=e((()=>{o(),n(),r()}));function b(){return l(t(),`jobs`)}function x(e){return l(b(),e)}function S(e,t,n,r,i){let a=x(e);d(a,{recursive:!0});let o=new Date().toISOString(),s={jobId:e,templateName:t,createdAt:o,updatedAt:o,status:`created`,args:i};return m(l(a,`state.json`),JSON.stringify(s,null,2),`utf-8`),m(l(a,`template.md`),n,`utf-8`),m(l(a,`input.txt`),r,`utf-8`),a}function C(e){try{let t=f(l(x(e),`state.json`),`utf-8`),n=JSON.parse(t);if(typeof n!=`object`||!n)return null;let r=n;return typeof r.jobId!=`string`||typeof r.status!=`string`?null:r}catch{return null}}function w(e,t){let n=x(e),r=C(e);if(!r)return!1;let i=l(n,`replies.jsonl`),a=JSON.stringify({text:t,timestamp:new Date().toISOString()});try{u(i,`${a}\n`,`utf-8`)}catch{m(i,`${a}\n`,`utf-8`)}let o={...r,updatedAt:new Date().toISOString()};return m(l(n,`state.json`),JSON.stringify(o,null,2),`utf-8`),!0}var T=e((()=>{n()}));async function E(e){let t=e[0];switch(t){case`list`:k();break;case`new`:A(e.slice(1));break;case`reply`:j(e.slice(1));break;case`status`:O(e.slice(1));break;default:console.error(`Unknown template command: ${t}`),D(),process.exitCode=1}}function D(){console.log(`
|
|
2
2
|
Template Job Commands:
|
|
3
3
|
|
|
4
4
|
claude job list List available templates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./terminalSetup-
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./terminalSetup-Cqy5_PhJ.js";n();export{s as call,r as getNativeCSIuTerminalDisplayName,a as hasUsedBackslashReturn,e as isShiftEnterKeyBindingInstalled,i as markBackslashReturnUsed,o as setupTerminal,t as shouldOfferTerminalSetup};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Bt as t,di as n,fi as r,j as i,t as a}from"./src-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Bt as t,di as n,fi as r,j as i,t as a}from"./src-WZ94ZKI3.js";import{c as o,f as s,l as c}from"./types-CD25a50S.js";import{C as l,I as u,S as d,x as f,z as p}from"./debug-kBjDaVkQ.js";import{Kt as m,Ut as h}from"./settings-YIDksG5Z.js";import{d as g,h as _,o as v}from"./config-D3K87Mm1.js";import{o as y,s as b}from"./log-DWZny1vM.js";import{i as ee,t as x}from"./execFileNoThrow-BfZFnCGa.js";import{i as S,n as C}from"./platform-Vl9IynC3.js";import{i as w,r as T}from"./projectOnboardingState-KqcpRXls.js";import{a as E,i as D,n as O,r as k,t as A}from"./appleTerminalBackup-C9kjzdM9.js";import{homedir as j,platform as M}from"os";import{dirname as te,join as N}from"path";import{randomBytes as P}from"crypto";import{copyFile as F,mkdir as I,readFile as L,writeFile as R}from"fs/promises";import{pathToFileURL as z}from"url";function B(){let e=process.env.VSCODE_GIT_ASKPASS_MAIN??``,t=process.env.PATH??``;return e.includes(`.vscode-server`)||e.includes(`.cursor-server`)||e.includes(`.windsurf-server`)||t.includes(`.vscode-server`)||t.includes(`.cursor-server`)||t.includes(`.windsurf-server`)}function V(){return!h.terminal||!(h.terminal in $)?null:$[h.terminal]??null}function H(e){return t()?`\x1b]8;;${z(e).href}\x07${e}\x1b]8;;\x07`:e}function U(){return M()===`darwin`&&h.terminal===`Apple_Terminal`||h.terminal===`vscode`||h.terminal===`cursor`||h.terminal===`windsurf`||h.terminal===`alacritty`||h.terminal===`zed`}async function W(e){let t=``;switch(h.terminal){case`Apple_Terminal`:t=await ne(e);break;case`vscode`:t=await Y(`VSCode`,e);break;case`cursor`:t=await Y(`Cursor`,e);break;case`windsurf`:t=await Y(`Windsurf`,e);break;case`alacritty`:t=await re(e);break;case`zed`:t=await ie(e);break;case null:break}return _(e=>[`vscode`,`cursor`,`windsurf`,`alacritty`,`zed`].includes(h.terminal??``)?e.shiftEnterKeyBindingInstalled===!0?e:{...e,shiftEnterKeyBindingInstalled:!0}:h.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled===!0?e:{...e,optionAsMetaKeyInstalled:!0}:e),w(),t}function G(){return v().shiftEnterKeyBindingInstalled===!0}function K(){return v().hasUsedBackslashReturn===!0}function q(){v().hasUsedBackslashReturn||_(e=>({...e,hasUsedBackslashReturn:!0}))}async function J(e,t,r){if(h.terminal&&h.terminal in $)return e(`Shift+Enter is natively supported in ${$[h.terminal]}.
|
|
2
2
|
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`),null;if(!U()){let t=
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`),null;if(!U()){let t=h.terminal||`your current terminal`,r=C(),i=``;return r===`macos`?i=` • macOS: Apple Terminal
|
|
4
4
|
`:r===`windows`&&(i=` • Windows: Windows Terminal
|
|
5
5
|
`),e(`Terminal setup cannot be run from ${t}.
|
|
6
6
|
|
|
@@ -21,12 +21,12 @@ ${n.dim(`Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter nat
|
|
|
21
21
|
"args": { "text": "\\u001b\\r" },
|
|
22
22
|
"when": "terminalFocus"
|
|
23
23
|
}
|
|
24
|
-
]`)}${Q}`;let r=e===`VSCode`?`Code`:e,a=N(j(),M()===`win32`?N(`AppData`,`Roaming`,r,`User`):M()===`darwin`?N(`Library`,`Application Support`,r,`User`):N(`.config`,r,`User`)),c=N(a,`keybindings.json`);try{await I(a,{recursive:!0});let r=`[]`,l=[],u=!1;try{r=await L(c,{encoding:`utf-8`}),u=!0,l=s(r)??[]}catch(e){if(!p(e))throw e}if(u){let r=`${c}.${P(4).toString(`hex`)}.bak`;try{await F(c,r)}catch{return`${i(`warning`,t)(`Error backing up existing ${e} terminal keybindings. Bailing out.`)}${Q}${n.dim(`See ${H(c)}`)}${Q}${n.dim(`Backup path: ${H(r)}`)}${Q}`}}return l.find(e=>e.key===`shift+enter`&&e.command===`workbench.action.terminal.sendSequence`&&e.when===`terminalFocus`)?`${i(`warning`,t)(`Found existing ${e} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${n.dim(`See ${H(c)}`)}${Q}`:(await R(c,o(r,{key:`shift+enter`,command:`workbench.action.terminal.sendSequence`,args:{text:`\x1B\r`},when:`terminalFocus`}),{encoding:`utf-8`}),`${i(`success`,t)(`Installed ${e} terminal Shift+Enter key binding`)}${Q}${n.dim(`See ${H(c)}`)}${Q}`)}catch(t){throw
|
|
24
|
+
]`)}${Q}`;let r=e===`VSCode`?`Code`:e,a=N(j(),M()===`win32`?N(`AppData`,`Roaming`,r,`User`):M()===`darwin`?N(`Library`,`Application Support`,r,`User`):N(`.config`,r,`User`)),c=N(a,`keybindings.json`);try{await I(a,{recursive:!0});let r=`[]`,l=[],u=!1;try{r=await L(c,{encoding:`utf-8`}),u=!0,l=s(r)??[]}catch(e){if(!p(e))throw e}if(u){let r=`${c}.${P(4).toString(`hex`)}.bak`;try{await F(c,r)}catch{return`${i(`warning`,t)(`Error backing up existing ${e} terminal keybindings. Bailing out.`)}${Q}${n.dim(`See ${H(c)}`)}${Q}${n.dim(`Backup path: ${H(r)}`)}${Q}`}}return l.find(e=>e.key===`shift+enter`&&e.command===`workbench.action.terminal.sendSequence`&&e.when===`terminalFocus`)?`${i(`warning`,t)(`Found existing ${e} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${n.dim(`See ${H(c)}`)}${Q}`:(await R(c,o(r,{key:`shift+enter`,command:`workbench.action.terminal.sendSequence`,args:{text:`\x1B\r`},when:`terminalFocus`}),{encoding:`utf-8`}),`${i(`success`,t)(`Installed ${e} terminal Shift+Enter key binding`)}${Q}${n.dim(`See ${H(c)}`)}${Q}`)}catch(t){throw b(t),Error(`Failed to install ${e} terminal Shift+Enter key binding`)}}async function X(e){let{code:t}=await x(`/usr/libexec/PlistBuddy`,[`-c`,`Add :'Window Settings':'${e}':useOptionAsMetaKey bool true`,k()]);if(t!==0){let{code:t}=await x(`/usr/libexec/PlistBuddy`,[`-c`,`Set :'Window Settings':'${e}':useOptionAsMetaKey true`,k()]);if(t!==0)return b(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${e}`)),!1}return!0}async function Z(e){let{code:t}=await x(`/usr/libexec/PlistBuddy`,[`-c`,`Add :'Window Settings':'${e}':Bell bool false`,k()]);if(t!==0){let{code:t}=await x(`/usr/libexec/PlistBuddy`,[`-c`,`Set :'Window Settings':'${e}':Bell false`,k()]);if(t!==0)return b(Error(`Failed to disable audio bell for Terminal.app profile: ${e}`)),!1}return!0}async function ne(e){try{if(!await A())throw Error(`Failed to create backup of Terminal.app preferences, bailing out`);let{stdout:t,code:r}=await x(`defaults`,[`read`,`com.apple.Terminal`,`Default Window Settings`]);if(r!==0||!t.trim())throw Error(`Failed to read default Terminal.app profile`);let{stdout:a,code:o}=await x(`defaults`,[`read`,`com.apple.Terminal`,`Startup Window Settings`]);if(o!==0||!a.trim())throw Error(`Failed to read startup Terminal.app profile`);let s=!1,c=t.trim(),l=await X(c),u=await Z(c);(l||u)&&(s=!0);let d=a.trim();if(d!==c){let e=await X(d),t=await Z(d);(e||t)&&(s=!0)}if(!s)throw Error(`Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile`);return await x(`killall`,[`cfprefsd`]),E(),`${i(`success`,e)(`Configured Terminal.app settings:`)}${Q}${i(`success`,e)(`- Enabled "Use Option as Meta key"`)}${Q}${i(`success`,e)(`- Switched to visual bell`)}${Q}${n.dim(`Option+Enter will now enter a newline.`)}${Q}${n.dim(`You must restart Terminal.app for changes to take effect.`,e)}${Q}`}catch(e){b(e);let t=await O(),n=`Failed to enable Option as Meta key for Terminal.app.`;throw t.status===`restored`?Error(`${n} Your settings have been restored from backup.`):t.status===`failed`?Error(`${n} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${t.backupPath}`):Error(`${n} No backup was available to restore from.`)}}async function re(e){let t=[],r=process.env.XDG_CONFIG_HOME;if(r?t.push(N(r,`alacritty`,`alacritty.toml`)):t.push(N(j(),`.config`,`alacritty`,`alacritty.toml`)),M()===`win32`){let e=process.env.APPDATA;e&&t.push(N(e,`alacritty`,`alacritty.toml`))}let a=null,o=``,s=!1;for(let e of t)try{o=await L(e,{encoding:`utf-8`}),a=e,s=!0;break}catch(e){if(!p(e))throw e}if(a||(a=t[0]??null),!a)throw Error(`No valid config path found for Alacritty`);try{if(s){if(o.includes(`mods = "Shift"`)&&o.includes(`key = "Return"`))return`${i(`warning`,e)(`Found existing Alacritty Shift+Enter key binding. Remove it to continue.`)}${Q}${n.dim(`See ${H(a)}`)}${Q}`;let t=P(4).toString(`hex`),r=`${a}.${t}.bak`;try{await F(a,r)}catch{return`${i(`warning`,e)(`Error backing up existing Alacritty config. Bailing out.`)}${Q}${n.dim(`See ${H(a)}`)}${Q}${n.dim(`Backup path: ${H(r)}`)}${Q}`}}else await I(te(a),{recursive:!0});let t=o;return o&&!o.endsWith(`
|
|
25
25
|
`)&&(t+=`
|
|
26
26
|
`),t+=`
|
|
27
27
|
[[keyboard.bindings]]
|
|
28
28
|
key = "Return"
|
|
29
29
|
mods = "Shift"
|
|
30
30
|
chars = "\\u001B\\r"
|
|
31
|
-
`,await R(a,t,{encoding:`utf-8`}),`${i(`success`,e)(`Installed Alacritty Shift+Enter key binding`)}${Q}${i(`success`,e)(`You may need to restart Alacritty for changes to take effect`)}${Q}${n.dim(`See ${H(a)}`)}${Q}`}catch(e){throw
|
|
31
|
+
`,await R(a,t,{encoding:`utf-8`}),`${i(`success`,e)(`Installed Alacritty Shift+Enter key binding`)}${Q}${i(`success`,e)(`You may need to restart Alacritty for changes to take effect`)}${Q}${n.dim(`See ${H(a)}`)}${Q}`}catch(e){throw b(e),Error(`Failed to install Alacritty Shift+Enter key binding`)}}async function ie(e){let t=N(j(),`.config`,`zed`),r=N(t,`keymap.json`);try{await I(t,{recursive:!0});let a=`[]`,o=!1;try{a=await L(r,{encoding:`utf-8`}),o=!0}catch(e){if(!p(e))throw e}if(o){if(a.includes(`shift-enter`))return`${i(`warning`,e)(`Found existing Zed Shift+Enter key binding. Remove it to continue.`)}${Q}${n.dim(`See ${H(r)}`)}${Q}`;let t=`${r}.${P(4).toString(`hex`)}.bak`;try{await F(r,t)}catch{return`${i(`warning`,e)(`Error backing up existing Zed keymap. Bailing out.`)}${Q}${n.dim(`See ${H(r)}`)}${Q}${n.dim(`Backup path: ${H(t)}`)}${Q}`}}let s;try{s=d(a),Array.isArray(s)||(s=[])}catch{s=[]}return s.push({context:`Terminal`,bindings:{"shift-enter":[`terminal::SendText`,`\x1B\r`]}}),await R(r,`${l(s,null,2)}\n`,{encoding:`utf-8`}),`${i(`success`,e)(`Installed Zed Shift+Enter key binding`)}${Q}${n.dim(`See ${H(r)}`)}${Q}`}catch(e){throw b(e),Error(`Failed to install Zed Shift+Enter key binding`)}}var Q,$,ae=e((()=>{r(),a(),T(),D(),g(),m(),u(),ee(),c(),y(),S(),f(),Q=`
|
|
32
32
|
`,$={ghostty:`Ghostty`,kitty:`Kitty`,"iTerm.app":`iTerm2`,WezTerm:`WezTerm`,WarpTerminal:`Warp`}}));export{G as a,U as c,ae as i,V as n,q as o,K as r,W as s,J as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{H as t,t as n,x as r}from"./src-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{H as t,t as n,x as r}from"./src-WZ94ZKI3.js";import{t as i}from"./jsx-runtime-Bb4Xn-E0.js";import{n as a,t as o}from"./ThemePicker-DTpXbEY0.js";function s({onDone:e}){let[,n]=t();return(0,c.jsx)(r,{color:`permission`,children:(0,c.jsx)(o,{onThemeSelect:t=>{n(t),e(`Theme set to ${t}`)},onCancel:()=>{e(`Theme picker dismissed`,{display:`system`})},skipExitHandling:!0})})}var c,l;e((()=>{n(),a(),c=i(),l=async(e,t)=>(0,c.jsx)(s,{onDone:e})}))();export{l as call};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r}from"./envUtils-DZ_SvEVz.js";import{di as i,fi as a,j as o,t as s}from"./src-WZ94ZKI3.js";import{Pt as c,at as l}from"./state-CXY-q5gr.js";import{$a as u,$h as d,Gv as f,Hv as ee,Ya as te,_x as p,ab as m,ag as h,fo as g,gr as _,mC as v,ob as y,pC as b,uo as x,vr as ne,yx as re}from"./loadAgentsDir-DR5PVAc3.js";import{n as S,t as C}from"./cwd-DrEEb4f5.js";import{c as ie,i as w}from"./debug-kBjDaVkQ.js";import{Ar as T,Kt as E,Mr as D,Nr as O,Pr as k,Ut as A,Wt as j,d as M,m as N,t as P}from"./settings-YIDksG5Z.js";import{a as F,d as I,h as L,l as R,m as z,o as B}from"./config-D3K87Mm1.js";import{r as V,t as H}from"./execa-CBhG1doD.js";import{o as U,s as W}from"./log-DWZny1vM.js";import{i as G,n as K}from"./execFileNoThrow-BfZFnCGa.js";import{i as q,n as J}from"./platform-Vl9IynC3.js";import{Mt as Y,Pt as ae}from"./model-D42epddJ.js";import{c as oe,i as se}from"./terminalSetup-Cqy5_PhJ.js";w(),U(),G(),k(),b(),V(),t(),c(),I(),S(),E(),r();async function ce(){}e(e=>({deviceId:R(),sessionId:l(),email:void 0,appVersion:`0.0.26`,platform:j(),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 le=e(async()=>{let e=await H(`git config --get user.email`,{shell:!0,reject:!1,cwd:C()});return e.exitCode===0&&e.stdout?e.stdout.trim():void 0});t(),S(),I(),E();var ue=[/(?:^|\/)(?: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 de(e){return!ue.some(t=>t.test(e))}function fe(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(!de(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 pe(){if(A.platform===`win32`||!await T())return[];try{let e=await le(),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 K(`git`,[...t,`--author=${e}`],{cwd:C()});r(n)}if(n.size<10){let{stdout:e}=await K(O(),t,{cwd:C()});r(e)}return fe(Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e])=>e),5)}catch(e){return W(e),[]}}var me=10080*60*1e3,he=e(()=>{let e=F(),t=e.exampleFiles?.length?v(e.exampleFiles):`<filepath>`;return`Try "${v([`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...`])}"`}),ge=e(async()=>{let e=F();Date.now()-(e.exampleFilesGeneratedAt??0)>me&&(e.exampleFiles=[]),e.exampleFiles?.length||pe().then(e=>{e.length&&z(t=>({...t,exampleFiles:e,exampleFilesGeneratedAt:Date.now()}))})});ae();var X={"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=Y();for(let[e,r]of Object.entries(X)){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(),q(),N(),re(),y(),f(),h(),x(),te(),_(),se(),I();function ye(e){let t=B().numStartups;L(n=>{let r=n.tipsHistory??{};return r[e]===t?n:{...n,tipsHistory:{...r,[e]:t}}})}function Z(e){let t=B(),n=t.tipsHistory?.[e];return n?t.numStartups-n:1/0}I(),E(),k();var Q;async function be(){return Q===void 0&&(Q=p in await g()),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&&ee(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 B().numStartups<10}},{id:`plan-mode-for-complex-tasks`,content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${m(`chat:cycleMode`,`Chat`,`shift+tab`)} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let e=B();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=B(),t=M(),n=!!e.lastPlanModeUse,r=!!t?.permissions?.defaultMode;return n&&!r}catch(e){return ie(`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=B();return await D()<=1&&e.numStartups>50}catch{return!1}}},{id:`terminal-setup`,content:async()=>A.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=B();return A.terminal===`Apple_Terminal`?!e.optionAsMetaKeyInstalled:!e.shiftEnterKeyBindingInstalled}},{id:`shift-enter`,content:async()=>A.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=B();return!!((A.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)&&e.numStartups>3)}},{id:`shift-enter-setup`,content:async()=>A.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(!oe())return!1;let e=B();return!(A.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 B().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 WORKMATE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)`,cooldownSessions:10,isRelevant:async()=>J()===`windows`&&process.env.WORKMATE_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 B().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 B().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()=>!A.isSSH()},{id:`paste-images-mac`,content:async()=>`Paste images into Work Mate using control+v (not cmd+v!)`,cooldownSessions:10,isRelevant:async()=>J()===`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()=>ne()&&B().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 B().numStartups>10}},{id:`shift-tab`,content:async()=>`Hit ${m(`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 ${m(`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 B().numStartups>5}},{id:`agent-flag`,content:async()=>`Use --agent <agent_name> to directly start a conversation with a subagent`,cooldownSessions:15,async isRelevant(){return B().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@${p}`)}`,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@${p}`)}`,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=P().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=P().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{he as a,ve as i,Z as n,ge as o,ye as r,ce as s,we as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-kBjDaVkQ.js";import{o as r,s as i}from"./log-DWZny1vM.js";import{r as a,t as o}from"./observationStore-D0rm3GhP.js";import{randomUUID as s}from"node:crypto";function c(){for(let[e,t]of T)if(t.size>x){let e=t.values(),n=t.size-S;for(let r=0;r<n;r++){let n=e.next();if(n.done)break;t.delete(n.value)}}if(T.size>C){let e=T.size-w,t=0;for(let n of T.keys()){if(t>=e)break;T.delete(n),t++}}}function l(e,t){let n=T.get(e)??new Set;n.add(t),T.delete(e),T.set(e,n),c()}function u(e,t){return T.get(e)?.has(t)??!1}function d(){T.clear()}function f(e){return{id:s(),sessionId:e.sessionId,projectId:e.projectId,projectName:e.projectName,cwd:e.cwd,timestamp:new Date().toISOString(),source:`tool-hook`,turn:e.turn}}function p(){return E||(E=Promise.all([import(`./projectContext-COeHKDrk.js`),import(`./featureCheck-JOur3pHb.js`),import(`./runtimeObserver-BUHs3qjs.js`)]).then(([e,t,n])=>({resolveProjectContext:e.resolveProjectContext,isSkillLearningEnabled:t.isSkillLearningEnabled,RUNTIME_SESSION_ID:n.RUNTIME_SESSION_ID,getRuntimeTurn:n.getRuntimeTurn}))),E}function m(){E=void 0}async function h(e,n,r,a){let o;try{let{resolveProjectContext:s,isSkillLearningEnabled:c,RUNTIME_SESSION_ID:l,getRuntimeTurn:u}=await p();if(!c())return a();let d=s(process.cwd());o={sessionId:r.sessionId??l,turn:r.turn??u(),projectId:d.projectId,projectName:d.projectName,cwd:d.cwd,project:d},g(o,e,n).catch(e=>{t(`skill-learning: recordToolStart error`),i(e)})}catch(e){t(`skill-learning: hook setup error`),i(e)}try{let n=await a();return o&&_(o,e,n,`success`).catch(e=>{t(`skill-learning: recordToolComplete error`),i(e)}),n}catch(n){throw o&&v(o,e,n).catch(e=>{t(`skill-learning: recordToolError error`),i(e)}),n}}async function g(e,t,n){return l(e.sessionId,e.turn),o({...f(e),event:`tool_start`,toolName:t,toolInput:b(n)},{project:e.project})}async function _(e,t,n,r=`success`){return l(e.sessionId,e.turn),o({...f(e),event:`tool_complete`,toolName:t,toolOutput:b(n),outcome:r},{project:e.project})}async function v(e,t,n){return l(e.sessionId,e.turn),o({...f(e),event:`tool_complete`,toolName:t,toolOutput:b(n),outcome:`failure`},{project:e.project})}async function y(e,t){return l(e.sessionId,e.turn),o({...f(e),event:`user_message`,messageText:t},{project:e.project})}function b(e){if(e!=null){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}}var x,S,C,w,T,E;e((()=>{a(),n(),r(),x=500,S=250,C=50,w=25,T=new Map}))();export{u as hasToolHookObservationsForTurn,c as pruneEmittedTurns,_ as recordToolComplete,v as recordToolError,g as recordToolStart,y as recordUserCorrection,d as resetToolHookBookkeeping,m as resetToolHookDepsCache,h as runToolCallWithSkillLearningHooks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$d as t,dC as n,ef as r,fC as i}from"./loadAgentsDir-DR5PVAc3.js";import{n as a,t as o}from"./partition-BRQHofxD.js";function s(e,t,n){let[o,s]=a(i([...e,...t],`name`),r),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,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./classPrivateFieldSet2-D4U5K-I3.js";import{n as f,t as p}from"./classPrivateMethodInitSpec-BXQD0Vh4.js";import{C as m,x as h}from"./debug-CRnGsZOV.js";import{o as g,s as _}from"./log-DoSpAwRP.js";import"fs/promises";import{channel as v,tracingChannel as ee}from"node:diagnostics_channel";function y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function b(e){return e&&Object.assign(ie,e),ie}var x,S,te,ne,re,ie,ae=e((()=>{S=Object.freeze({status:`aborted`}),te=Symbol(`zod_brand`),ne=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},re=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(x=globalThis).__zod_globalConfig??(x.__zod_globalConfig={}),ie=globalThis.__zod_globalConfig})),oe=t({BIGINT_FORMAT_RANGES:()=>ut,Class:()=>dt,NUMBER_FORMAT_RANGES:()=>lt,aborted:()=>He,allowsEval:()=>at,assert:()=>de,assertEqual:()=>se,assertIs:()=>le,assertNever:()=>ue,assertNotEqual:()=>ce,assignProp:()=>ye,base64ToUint8Array:()=>Ze,base64urlToUint8Array:()=>$e,cached:()=>me,captureStackTrace:()=>it,cleanEnum:()=>Xe,cleanRegex:()=>ge,clone:()=>Me,cloneDef:()=>xe,createTransparentProxy:()=>Ne,defineLazy:()=>w,esc:()=>Te,escapeRegex:()=>je,explicitlyAborted:()=>Ue,extend:()=>Le,finalizeIssue:()=>Ke,floatSafeRemainder:()=>_e,getElementAtPath:()=>Se,getEnumValues:()=>fe,getLengthableOrigin:()=>Je,getParsedType:()=>ot,getSizableOrigin:()=>qe,hexToUint8Array:()=>tt,isObject:()=>De,isPlainObject:()=>Oe,issue:()=>Ye,joinValues:()=>C,jsonStringifyReplacer:()=>pe,merge:()=>ze,mergeDefs:()=>be,normalizeParams:()=>T,nullish:()=>he,numKeys:()=>Ae,objectClone:()=>ve,omit:()=>Ie,optionalKeys:()=>Pe,parsedType:()=>D,partial:()=>Be,pick:()=>Fe,prefixIssues:()=>We,primitiveTypes:()=>ct,promiseAllObject:()=>Ce,propertyKeyTypes:()=>st,randomString:()=>we,required:()=>Ve,safeExtend:()=>Re,shallowClone:()=>ke,slugify:()=>Ee,stringifyPrimitive:()=>E,uint8ArrayToBase64:()=>Qe,uint8ArrayToBase64url:()=>et,uint8ArrayToHex:()=>nt,unwrapMessage:()=>Ge});function se(e){return e}function ce(e){return e}function le(e){}function ue(e){throw Error(`Unexpected value in exhaustive check`)}function de(e){}function fe(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t=`|`){return e.map(e=>E(e)).join(t)}function pe(e,t){return typeof t==`bigint`?t.toString():t}function me(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function he(e){return e==null}function ge(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function _e(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function w(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==rt)return r===void 0&&(r=rt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ve(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ye(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function be(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function xe(e){return be(e._zod.def)}function Se(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function Ce(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function we(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function Te(e){return JSON.stringify(e)}function Ee(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function De(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Oe(e){if(De(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(De(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ke(e){return Oe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Ae(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Me(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ne(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,a){return t??(t=e()),Reflect.set(t,r,i,a)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function E(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Pe(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Me(e,be(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ye(this,`shape`,e),e},checks:[]}))}function Ie(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Me(e,be(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ye(this,`shape`,r),r},checks:[]}))}function Le(e,t){if(!Oe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ye(this,`shape`,n),n}}))}function Re(e,t){if(!Oe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ye(this,`shape`,n),n}}))}function ze(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ye(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Be(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Me(t,be(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ye(this,`shape`,i),i},checks:[]}))}function Ve(e,t,n){return Me(t,be(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ye(this,`shape`,i),i}}))}function He(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ue(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function We(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ge(e){return typeof e==`string`?e:e?.message}function Ke(e,t,n){let r=e.message?e.message:Ge(e.inst?._zod.def?.error?.(e))??Ge(t?.error?.(e))??Ge(n.customError?.(e))??Ge(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=r,t?.reportInput&&(s.input=o),s}function qe(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Je(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function D(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ye(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Xe(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ze(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Qe(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function $e(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Ze(t+`=`.repeat((4-t.length%4)%4))}function et(e){return Qe(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function tt(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function nt(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var rt,it,at,ot,st,ct,lt,ut,dt,O=e((()=>{ae(),rt=Symbol(`evaluating`),it=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},at=me(()=>{if(ie.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),ot=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},st=new Set([`string`,`number`,`symbol`]),ct=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),lt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ut={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},dt=class{constructor(...e){}}}));function ft(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function pt(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function mt(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??(r.properties={}),(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function ht(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function gt(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ht(e.path)}`);return t.join(`
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./classPrivateFieldSet2-D4U5K-I3.js";import{n as f,t as p}from"./classPrivateMethodInitSpec-BXQD0Vh4.js";import{C as m,x as h}from"./debug-kBjDaVkQ.js";import{o as g,s as _}from"./log-DWZny1vM.js";import"fs/promises";import{channel as v,tracingChannel as ee}from"node:diagnostics_channel";function y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function b(e){return e&&Object.assign(ie,e),ie}var x,S,te,ne,re,ie,ae=e((()=>{S=Object.freeze({status:`aborted`}),te=Symbol(`zod_brand`),ne=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},re=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(x=globalThis).__zod_globalConfig??(x.__zod_globalConfig={}),ie=globalThis.__zod_globalConfig})),oe=t({BIGINT_FORMAT_RANGES:()=>ut,Class:()=>dt,NUMBER_FORMAT_RANGES:()=>lt,aborted:()=>He,allowsEval:()=>at,assert:()=>de,assertEqual:()=>se,assertIs:()=>le,assertNever:()=>ue,assertNotEqual:()=>ce,assignProp:()=>ye,base64ToUint8Array:()=>Ze,base64urlToUint8Array:()=>$e,cached:()=>me,captureStackTrace:()=>it,cleanEnum:()=>Xe,cleanRegex:()=>ge,clone:()=>Me,cloneDef:()=>xe,createTransparentProxy:()=>Ne,defineLazy:()=>w,esc:()=>Te,escapeRegex:()=>je,explicitlyAborted:()=>Ue,extend:()=>Le,finalizeIssue:()=>Ke,floatSafeRemainder:()=>_e,getElementAtPath:()=>Se,getEnumValues:()=>fe,getLengthableOrigin:()=>Je,getParsedType:()=>ot,getSizableOrigin:()=>qe,hexToUint8Array:()=>tt,isObject:()=>De,isPlainObject:()=>Oe,issue:()=>Ye,joinValues:()=>C,jsonStringifyReplacer:()=>pe,merge:()=>ze,mergeDefs:()=>be,normalizeParams:()=>T,nullish:()=>he,numKeys:()=>Ae,objectClone:()=>ve,omit:()=>Ie,optionalKeys:()=>Pe,parsedType:()=>D,partial:()=>Be,pick:()=>Fe,prefixIssues:()=>We,primitiveTypes:()=>ct,promiseAllObject:()=>Ce,propertyKeyTypes:()=>st,randomString:()=>we,required:()=>Ve,safeExtend:()=>Re,shallowClone:()=>ke,slugify:()=>Ee,stringifyPrimitive:()=>E,uint8ArrayToBase64:()=>Qe,uint8ArrayToBase64url:()=>et,uint8ArrayToHex:()=>nt,unwrapMessage:()=>Ge});function se(e){return e}function ce(e){return e}function le(e){}function ue(e){throw Error(`Unexpected value in exhaustive check`)}function de(e){}function fe(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t=`|`){return e.map(e=>E(e)).join(t)}function pe(e,t){return typeof t==`bigint`?t.toString():t}function me(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function he(e){return e==null}function ge(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function _e(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function w(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==rt)return r===void 0&&(r=rt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ve(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ye(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function be(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function xe(e){return be(e._zod.def)}function Se(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function Ce(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function we(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function Te(e){return JSON.stringify(e)}function Ee(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function De(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Oe(e){if(De(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(De(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ke(e){return Oe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Ae(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Me(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ne(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,a){return t??(t=e()),Reflect.set(t,r,i,a)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function E(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Pe(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Me(e,be(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ye(this,`shape`,e),e},checks:[]}))}function Ie(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Me(e,be(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ye(this,`shape`,r),r},checks:[]}))}function Le(e,t){if(!Oe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ye(this,`shape`,n),n}}))}function Re(e,t){if(!Oe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ye(this,`shape`,n),n}}))}function ze(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Me(e,be(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ye(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Be(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Me(t,be(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ye(this,`shape`,i),i},checks:[]}))}function Ve(e,t,n){return Me(t,be(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ye(this,`shape`,i),i}}))}function He(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ue(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function We(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ge(e){return typeof e==`string`?e:e?.message}function Ke(e,t,n){let r=e.message?e.message:Ge(e.inst?._zod.def?.error?.(e))??Ge(t?.error?.(e))??Ge(n.customError?.(e))??Ge(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=r,t?.reportInput&&(s.input=o),s}function qe(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Je(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function D(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ye(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Xe(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ze(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Qe(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function $e(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Ze(t+`=`.repeat((4-t.length%4)%4))}function et(e){return Qe(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function tt(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function nt(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var rt,it,at,ot,st,ct,lt,ut,dt,O=e((()=>{ae(),rt=Symbol(`evaluating`),it=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},at=me(()=>{if(ie.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),ot=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},st=new Set([`string`,`number`,`symbol`]),ct=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),lt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ut={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},dt=class{constructor(...e){}}}));function ft(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function pt(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function mt(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??(r.properties={}),(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function ht(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function gt(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ht(e.path)}`);return t.join(`
|
|
2
2
|
`)}var _t,vt,k,yt=e((()=>{ae(),O(),_t=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,pe,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vt=y(`$ZodError`,_t),k=y(`$ZodError`,_t,{Parent:Error})})),bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt=e((()=>{ae(),yt(),O(),bt=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ne;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ke(e,a,b())));throw it(t,i?.callee),t}return o.value},xt=bt(k),St=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ke(e,a,b())));throw it(t,i?.callee),t}return o.value},Ct=St(k),wt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ne;return a.issues.length?{success:!1,error:new(e??vt)(a.issues.map(e=>Ke(e,i,b())))}:{success:!0,data:a.value}},Tt=wt(k),Et=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ke(e,i,b())))}:{success:!0,data:a.value}},Dt=Et(k),Ot=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return bt(e)(t,n,i)},kt=Ot(k),At=e=>(t,n,r)=>bt(e)(t,n,r),jt=At(k),Mt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return St(e)(t,n,i)},Nt=Mt(k),Pt=e=>async(t,n,r)=>St(e)(t,n,r),Ft=Pt(k),It=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return wt(e)(t,n,i)},Lt=It(k),Rt=e=>(t,n,r)=>wt(e)(t,n,r),zt=Rt(k),Bt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Et(e)(t,n,i)},Vt=Bt(k),Ht=e=>async(t,n,r)=>Et(e)(t,n,r),Ut=Ht(k)})),Gt=t({base64:()=>wn,base64url:()=>Tn,bigint:()=>Nn,boolean:()=>In,browserEmail:()=>_n,cidrv4:()=>Sn,cidrv6:()=>Cn,cuid:()=>Qt,cuid2:()=>$t,date:()=>jn,datetime:()=>Yt,domain:()=>Dn,duration:()=>an,e164:()=>kn,email:()=>fn,emoji:()=>Kt,extendedDuration:()=>on,guid:()=>sn,hex:()=>Vn,hostname:()=>En,html5Email:()=>pn,httpProtocol:()=>On,idnEmail:()=>gn,integer:()=>Pn,ipv4:()=>yn,ipv6:()=>bn,ksuid:()=>nn,lowercase:()=>zn,mac:()=>xn,md5_base64:()=>Un,md5_base64url:()=>Wn,md5_hex:()=>Hn,nanoid:()=>rn,null:()=>Ln,number:()=>Fn,rfc5322Email:()=>mn,sha1_base64:()=>Kn,sha1_base64url:()=>qn,sha1_hex:()=>Gn,sha256_base64:()=>Yn,sha256_base64url:()=>Xn,sha256_hex:()=>Jn,sha384_base64:()=>Qn,sha384_base64url:()=>$n,sha384_hex:()=>Zn,sha512_base64:()=>tr,sha512_base64url:()=>nr,sha512_hex:()=>er,string:()=>Mn,time:()=>Jt,ulid:()=>en,undefined:()=>Rn,unicodeEmail:()=>hn,uppercase:()=>Bn,uuid:()=>cn,uuid4:()=>ln,uuid6:()=>un,uuid7:()=>dn,xid:()=>tn});function Kt(){return new RegExp(vn,`u`)}function qt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Jt(e){return RegExp(`^${qt(e)}$`)}function Yt(e){let t=qt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${An}T(?:${r})$`)}function Xt(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Zt(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr=e((()=>{O(),Qt=/^[cC][0-9a-z]{6,}$/,$t=/^[0-9a-z]+$/,en=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tn=/^[0-9a-vA-V]{20}$/,nn=/^[A-Za-z0-9]{27}$/,rn=/^[a-zA-Z0-9_-]{21}$/,an=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,on=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,cn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ln=cn(4),un=cn(6),dn=cn(7),fn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,pn=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mn=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,hn=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,gn=hn,_n=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vn=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,yn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,xn=e=>{let t=je(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Sn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Cn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tn=/^[A-Za-z0-9_-]*$/,En=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Dn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,On=/^https?$/,kn=/^\+[1-9]\d{6,14}$/,An=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,jn=RegExp(`^${An}$`),Mn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Nn=/^-?\d+n?$/,Pn=/^-?\d+$/,Fn=/^-?\d+(?:\.\d+)?$/,In=/^(?:true|false)$/i,Ln=/^null$/i,Rn=/^undefined$/i,zn=/^[^A-Z]*$/,Bn=/^[^a-z]*$/,Vn=/^[0-9a-fA-F]*$/,Hn=/^[0-9a-fA-F]{32}$/,Un=Xt(22,`==`),Wn=Zt(22),Gn=/^[0-9a-fA-F]{40}$/,Kn=Xt(27,`=`),qn=Zt(27),Jn=/^[0-9a-fA-F]{64}$/,Yn=Xt(43,`=`),Xn=Zt(43),Zn=/^[0-9a-fA-F]{96}$/,Qn=Xt(64,``),$n=Zt(64),er=/^[0-9a-fA-F]{128}$/,tr=Xt(86,`==`),nr=Zt(86)}));function ir(e,t,n){e.issues.length&&t.issues.push(...We(n,e.issues))}var A,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr=e((()=>{ae(),rr(),O(),A=y(`$ZodCheck`,(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ar={number:`number`,bigint:`bigint`,object:`date`},or=y(`$ZodCheckLessThan`,(e,t)=>{A.init(e,t);let n=ar[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),sr=y(`$ZodCheckGreaterThan`,(e,t)=>{A.init(e,t);let n=ar[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cr=y(`$ZodCheckMultipleOf`,(e,t)=>{A.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):_e(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),lr=y(`$ZodCheckNumberFormat`,(e,t)=>{A.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=lt[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Pn)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ur=y(`$ZodCheckBigIntFormat`,(e,t)=>{A.init(e,t);let[n,r]=ut[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),dr=y(`$ZodCheckMaxSize`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:qe(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fr=y(`$ZodCheckMinSize`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:qe(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),pr=y(`$ZodCheckSizeEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:qe(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),mr=y(`$ZodCheckMaxLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Je(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hr=y(`$ZodCheckMinLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Je(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),gr=y(`$ZodCheckLengthEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!he(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Je(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),_r=y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;A.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),vr=y(`$ZodCheckRegex`,(e,t)=>{_r.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),yr=y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??(t.pattern=zn),_r.init(e,t)}),br=y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??(t.pattern=Bn),_r.init(e,t)}),xr=y(`$ZodCheckIncludes`,(e,t)=>{A.init(e,t);let n=je(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Sr=y(`$ZodCheckStartsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`^${je(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Cr=y(`$ZodCheckEndsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`.*${je(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),wr=y(`$ZodCheckProperty`,(e,t)=>{A.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>ir(n,e,t.property));ir(n,e,t.property)}}),Tr=y(`$ZodCheckMimeType`,(e,t)=>{A.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Er=y(`$ZodCheckOverwrite`,(e,t)=>{A.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),Or,kr=e((()=>{Or=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
3
3
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
4
4
|
`))}}})),Ar,jr=e((()=>{Ar={major:4,minor:4,patch:3}}));function Mr(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function Nr(e){if(!Tn.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Mr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Pr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Fr(e,t,n){e.issues.length&&t.issues.push(...We(n,e.issues)),t.value[n]=e.value}function Ir(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...We(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Lr(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Pe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Rr(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Ir(e,n,i,t,u,d))):Ir(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function zr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!He(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ke(e,r,b())))}),t)}function Br(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ke(e,r,b())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Vr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oe(e)&&Oe(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Vr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Vr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??(i=n);for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),He(e))return e;let o=Vr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Ur(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Wr(e,t,n){e.issues.length&&t.issues.push(...We(n,e.issues)),t.value[n]=e.value}function Gr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...We(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function Kr(e,t,n,r,i,a,o){e.issues.length&&(st.has(typeof r)?n.issues.push(...We(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Ke(e,o,b()))})),t.issues.length&&(st.has(typeof r)?n.issues.push(...We(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Ke(e,o,b()))})),n.value.set(e.value,t.value)}function qr(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Jr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Yr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Xr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Zr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Qr(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>$r(e,r,t.out,n)):$r(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>$r(e,r,t.in,n)):$r(e,r,t.in,n)}}function $r(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function ei(e){return e.value=Object.freeze(e.value),e}function ti(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ye(e))}}var j,ni,M,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba=e((()=>{Dr(),ae(),kr(),Wt(),rr(),O(),jr(),j=y(`$ZodType`,(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ar;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=He(e),i;for(let a of t){if(a._zod.def.when){if(Ue(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ne;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||(r=He(e,t)))});else{if(e.issues.length===t)continue;r||(r=He(e,t))}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(He(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ne;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ne;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=Tt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Dt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),ni=y(`$ZodString`,(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Mn(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),M=y(`$ZodStringFormat`,(e,t)=>{_r.init(e,t),ni.init(e,t)}),ri=y(`$ZodGUID`,(e,t)=>{t.pattern??(t.pattern=sn),M.init(e,t)}),ii=y(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cn(e))}else t.pattern??(t.pattern=cn());M.init(e,t)}),ai=y(`$ZodEmail`,(e,t)=>{t.pattern??(t.pattern=fn),M.init(e,t)}),oi=y(`$ZodURL`,(e,t)=>{M.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===On.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),si=y(`$ZodEmoji`,(e,t)=>{t.pattern??(t.pattern=Kt()),M.init(e,t)}),ci=y(`$ZodNanoID`,(e,t)=>{t.pattern??(t.pattern=rn),M.init(e,t)}),li=y(`$ZodCUID`,(e,t)=>{t.pattern??(t.pattern=Qt),M.init(e,t)}),ui=y(`$ZodCUID2`,(e,t)=>{t.pattern??(t.pattern=$t),M.init(e,t)}),di=y(`$ZodULID`,(e,t)=>{t.pattern??(t.pattern=en),M.init(e,t)}),fi=y(`$ZodXID`,(e,t)=>{t.pattern??(t.pattern=tn),M.init(e,t)}),pi=y(`$ZodKSUID`,(e,t)=>{t.pattern??(t.pattern=nn),M.init(e,t)}),mi=y(`$ZodISODateTime`,(e,t)=>{t.pattern??(t.pattern=Yt(t)),M.init(e,t)}),hi=y(`$ZodISODate`,(e,t)=>{t.pattern??(t.pattern=jn),M.init(e,t)}),gi=y(`$ZodISOTime`,(e,t)=>{t.pattern??(t.pattern=Jt(t)),M.init(e,t)}),_i=y(`$ZodISODuration`,(e,t)=>{t.pattern??(t.pattern=an),M.init(e,t)}),vi=y(`$ZodIPv4`,(e,t)=>{t.pattern??(t.pattern=yn),M.init(e,t),e._zod.bag.format=`ipv4`}),yi=y(`$ZodIPv6`,(e,t)=>{t.pattern??(t.pattern=bn),M.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),bi=y(`$ZodMAC`,(e,t)=>{t.pattern??(t.pattern=xn(t.delimiter)),M.init(e,t),e._zod.bag.format=`mac`}),xi=y(`$ZodCIDRv4`,(e,t)=>{t.pattern??(t.pattern=Sn),M.init(e,t)}),Si=y(`$ZodCIDRv6`,(e,t)=>{t.pattern??(t.pattern=Cn),M.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),Ci=y(`$ZodBase64`,(e,t)=>{t.pattern??(t.pattern=wn),M.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Mr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),wi=y(`$ZodBase64URL`,(e,t)=>{t.pattern??(t.pattern=Tn),M.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Nr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ti=y(`$ZodE164`,(e,t)=>{t.pattern??(t.pattern=kn),M.init(e,t)}),Ei=y(`$ZodJWT`,(e,t)=>{M.init(e,t),e._zod.check=n=>{Pr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Di=y(`$ZodCustomStringFormat`,(e,t)=>{M.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Oi=y(`$ZodNumber`,(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??Fn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),ki=y(`$ZodNumberFormat`,(e,t)=>{lr.init(e,t),Oi.init(e,t)}),Ai=y(`$ZodBoolean`,(e,t)=>{j.init(e,t),e._zod.pattern=In,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),ji=y(`$ZodBigInt`,(e,t)=>{j.init(e,t),e._zod.pattern=Nn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Mi=y(`$ZodBigIntFormat`,(e,t)=>{ur.init(e,t),ji.init(e,t)}),Ni=y(`$ZodSymbol`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Pi=y(`$ZodUndefined`,(e,t)=>{j.init(e,t),e._zod.pattern=Rn,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Fi=y(`$ZodNull`,(e,t)=>{j.init(e,t),e._zod.pattern=Ln,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ii=y(`$ZodAny`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),Li=y(`$ZodUnknown`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),Ri=y(`$ZodNever`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),zi=y(`$ZodVoid`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Bi=y(`$ZodDate`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Vi=y(`$ZodArray`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Fr(t,n,e))):Fr(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Hi=y(`$ZodObject`,(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=me(()=>Lr(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=De,i=t.catchall,a;e._zod.parse=(t,o)=>{a??(a=n.value);let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Ir(n,t,e,s,r,i))):Ir(a,t,e,s,r,i)}return i?Rr(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Ui=y(`$ZodObjectJIT`,(e,t)=>{Hi.init(e,t);let n=e._zod.parse,r=me(()=>Lr(t)),i=e=>{let t=new Or([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Te(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Te(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,o as t}from"./envUtils-DZ_SvEVz.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-kBjDaVkQ.js";import{o as l}from"./log-DWZny1vM.js";import{i as u,r as d}from"./genericProcessUtils-CVtQOTO2.js";import"os";import{join as f}from"path";import"crypto";import{readFile as p,readdir as m}from"fs/promises";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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function e(e){return t()}function t(){for(let e of[`WORKMATE_URL_EVENT`,`WORKMATE_DEEP_LINK_URL`,`WORKMATE_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 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{Bt as i,Gt as a,I as o,Lt as s,P as c,T as l,Wt as u,_ as d,ai as f,hn as p,t as m}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{Bt as i,Gt as a,I as o,Lt as s,P as c,T as l,Wt as u,_ as d,ai as f,hn as p,t as m}from"./src-WZ94ZKI3.js";import{t as h}from"./jsx-runtime-Bb4Xn-E0.js";import{Lu as g,Ru as _,hd as v,md as y,tb as b}from"./loadAgentsDir-DR5PVAc3.js";import{D as x,O as S,n as C,t as w}from"./TextInput-BboKIug2.js";import{isDeepStrictEqual as T}from"util";import{pathToFileURL as E}from"url";function D({imageId:e,backgroundColor:t,isSelected:n=!1}){let r=g(e),a=`[Image #${e}]`;if(r&&i()){let e=E(r).href;return(0,O.jsx)(s,{url:e,fallback:(0,O.jsx)(c,{backgroundColor:t,inverse:n,children:a}),children:(0,O.jsx)(c,{backgroundColor:t,inverse:n,bold:n,children:a})})}return(0,O.jsx)(c,{backgroundColor:t,inverse:n,children:a})}var O,k=e((()=>{m(),_(),O=h()}));function A({isFocused:e,isSelected:t,children:n,description:r,shouldShowDownArrow:i,shouldShowUpArrow:a,declareCursor:o}){return(0,j.jsx)(d,{isFocused:e,isSelected:t,description:r,showScrollDown:i,showScrollUp:a,styled:!1,declareCursor:o,children:n})}var j,M=e((()=>{m(),j=h()}));function N({option:e,isFocused:t,isSelected:n,shouldShowDownArrow:r,shouldShowUpArrow:i,maxIndexWidth:s,index:d,inputValue:f,onInputChange:m,onSubmit:h,onExit:g,layout:_,children:v,showLabel:b=!1,onOpenEditor:S,resetCursorOnUpdate:C=!1,onImagePaste:T,pastedContents:E,onRemoveImage:O,imagesSelected:k,selectedImageIndex:j=0,onImagesSelectedChange:M,onSelectedImageIndexChange:N}){let I=E?Object.values(E).filter(e=>e.type===`image`):[],L=b||e.showLabelWithValue===!0,[R,z]=(0,P.useState)(f.length),B=(0,P.useRef)(!1);(0,P.useEffect)(()=>{C&&t&&(B.current?B.current=!1:z(f.length))},[C,t,f]),u(`chat:externalEditor`,()=>{S?.(f,m)},{context:`Chat`,isActive:t&&!!S}),u(`chat:imagePaste`,()=>{T&&x().then(e=>{e&&T(e.base64,e.mediaType,void 0,e.dimensions)})},{context:`Chat`,isActive:t&&!!T}),u(`attachments:remove`,()=>{I.length>0&&O&&O(I.at(-1).id)},{context:`Attachments`,isActive:t&&!k&&f===``&&I.length>0&&!!O}),a({"attachments:next":()=>{I.length>1&&N?.((j+1)%I.length)},"attachments:previous":()=>{I.length>1&&N?.((j-1+I.length)%I.length)},"attachments:remove":()=>{let e=I[j];e&&O&&(O(e.id),I.length<=1?M?.(!1):N?.(Math.min(j,I.length-2)))},"attachments:exit":()=>{M?.(!1)}},{context:`Attachments`,isActive:t&&!!k}),p((e,t)=>{t.upArrow&&M?.(!1)},{isActive:t&&!!k}),(0,P.useEffect)(()=>{!t&&k&&M?.(!1)},[t,k,M]);let V=_===`expanded`?s+3:s+4;return(0,F.jsxs)(o,{flexDirection:`column`,flexShrink:0,children:[(0,F.jsx)(A,{isFocused:t,isSelected:n,shouldShowDownArrow:r,shouldShowUpArrow:i,declareCursor:!1,children:(0,F.jsxs)(o,{flexDirection:`row`,flexShrink:_===`compact`?0:void 0,children:[(0,F.jsx)(c,{dimColor:!0,children:`${d}.`.padEnd(s+2)}),v,L?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(c,{color:t?`suggestion`:void 0,children:e.label}),t?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(c,{color:`suggestion`,children:e.labelValueSeparator??`, `}),(0,F.jsx)(w,{value:f,onChange:t=>{B.current=!0,m(t),e.onChange(t)},onSubmit:h,onExit:g,placeholder:e.placeholder,focus:!k,showCursor:!0,multiline:!0,cursorOffset:R,onChangeCursorOffset:z,columns:80,onImagePaste:T,onPaste:t=>{B.current=!0;let n=f.slice(0,R),r=f.slice(R),i=n+t+r;m(i),e.onChange(i),z(n.length+t.length)}})]}):f&&(0,F.jsxs)(c,{children:[e.labelValueSeparator??`, `,f]})]}):t?(0,F.jsx)(w,{value:f,onChange:t=>{B.current=!0,m(t),e.onChange(t)},onSubmit:h,onExit:g,placeholder:e.placeholder||(typeof e.label==`string`?e.label:void 0),focus:!k,showCursor:!0,multiline:!0,cursorOffset:R,onChangeCursorOffset:z,columns:80,onImagePaste:T,onPaste:t=>{B.current=!0;let n=f.slice(0,R),r=f.slice(R),i=n+t+r;m(i),e.onChange(i),z(n.length+t.length)}}):(0,F.jsx)(c,{color:f?void 0:`inactive`,children:f||e.placeholder||e.label})]})}),e.description&&(0,F.jsx)(o,{paddingLeft:V,children:(0,F.jsx)(c,{dimColor:e.dimDescription!==!1,color:n?`success`:t?`suggestion`:void 0,children:e.description})}),I.length>0&&(0,F.jsxs)(o,{flexDirection:`row`,gap:1,paddingLeft:V,children:[I.map((e,t)=>(0,F.jsx)(D,{imageId:e.id,isSelected:!!k&&t===j},e.id)),(0,F.jsx)(o,{flexGrow:1,justifyContent:`flex-start`,flexDirection:`row`,children:(0,F.jsx)(c,{dimColor:!0,children:k?(0,F.jsxs)(l,{children:[I.length>1&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(y,{action:`attachments:next`,context:`Attachments`,fallback:`→`,description:`next`}),(0,F.jsx)(y,{action:`attachments:previous`,context:`Attachments`,fallback:`←`,description:`prev`})]}),(0,F.jsx)(y,{action:`attachments:remove`,context:`Attachments`,fallback:`backspace`,description:`remove`}),(0,F.jsx)(y,{action:`attachments:exit`,context:`Attachments`,fallback:`esc`,description:`cancel`})]}):t?`(↓ to select)`:null})})]}),_===`expanded`&&(0,F.jsx)(c,{children:` `})]})}var P,F,I=e((()=>{P=t(f(),1),m(),b(),S(),k(),v(),C(),M(),F=h()})),L,R=e((()=>{n(),L=class extends Map{constructor(e){let t=[],n,i,a,o=0;for(let r of e){let e={label:r.label,value:r.value,description:r.description,previous:a,next:void 0,index:o};a&&(a.next=e),n||(n=e),i=e,t.push([r.value,e]),o++,a=e}super(t),r(this,`first`,void 0),r(this,`last`,void 0),this.first=n,this.last=i}}}));function z({visibleOptionCount:e=5,options:t,initialFocusValue:n,onFocus:r,focusValue:i}){let[a,o]=(0,B.useReducer)(V,{visibleOptionCount:e,options:t,initialFocusValue:i||n},H),s=(0,B.useRef)(r);s.current=r;let[c,l]=(0,B.useState)(t);t!==c&&!T(t,c)&&(o({type:`reset`,state:H({visibleOptionCount:e,options:t,initialFocusValue:i??a.focusedValue??n,currentViewport:{visibleFromIndex:a.visibleFromIndex,visibleToIndex:a.visibleToIndex}})}),l(t));let u=(0,B.useCallback)(()=>{o({type:`focus-next-option`})},[]),d=(0,B.useCallback)(()=>{o({type:`focus-previous-option`})},[]),f=(0,B.useCallback)(()=>{o({type:`focus-next-page`})},[]),p=(0,B.useCallback)(()=>{o({type:`focus-previous-page`})},[]),m=(0,B.useCallback)(e=>{e!==void 0&&o({type:`set-focus`,value:e})},[]),h=(0,B.useMemo)(()=>t.map((e,t)=>({...e,index:t})).slice(a.visibleFromIndex,a.visibleToIndex),[t,a.visibleFromIndex,a.visibleToIndex]),g=(0,B.useMemo)(()=>{if(a.focusedValue!==void 0)return t.some(e=>e.value===a.focusedValue)?a.focusedValue:t[0]?.value},[a.focusedValue,t]),_=(0,B.useMemo)(()=>t.find(e=>e.value===g)?.type===`input`,[g,t]);return(0,B.useEffect)(()=>{g!==void 0&&s.current?.(g)},[g]),(0,B.useEffect)(()=>{i!==void 0&&o({type:`set-focus`,value:i})},[i]),{focusedValue:g,focusedIndex:(0,B.useMemo)(()=>{if(g===void 0)return 0;let e=t.findIndex(e=>e.value===g);return e>=0?e+1:0},[g,t]),visibleFromIndex:a.visibleFromIndex,visibleToIndex:a.visibleToIndex,visibleOptions:h,isInInput:_??!1,focusNextOption:u,focusPreviousOption:d,focusNextPage:f,focusPreviousPage:p,focusOption:m,options:t}}var B,V,H,U=e((()=>{B=t(f(),1),R(),V=(e,t)=>{switch(t.type){case`focus-next-option`:{if(e.focusedValue===void 0)return e;let t=e.optionMap.get(e.focusedValue);if(!t)return e;let n=t.next||e.optionMap.first;if(!n)return e;if(!t.next&&n===e.optionMap.first)return{...e,focusedValue:n.value,visibleFromIndex:0,visibleToIndex:e.visibleOptionCount};if(!(n.index>=e.visibleToIndex))return{...e,focusedValue:n.value};let r=Math.min(e.optionMap.size,e.visibleToIndex+1),i=r-e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:i,visibleToIndex:r}}case`focus-previous-option`:{if(e.focusedValue===void 0)return e;let t=e.optionMap.get(e.focusedValue);if(!t)return e;let n=t.previous||e.optionMap.last;if(!n)return e;if(!t.previous&&n===e.optionMap.last){let t=e.optionMap.size,r=Math.max(0,t-e.visibleOptionCount);return{...e,focusedValue:n.value,visibleFromIndex:r,visibleToIndex:t}}if(!(n.index<=e.visibleFromIndex))return{...e,focusedValue:n.value};let r=Math.max(0,e.visibleFromIndex-1),i=r+e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:r,visibleToIndex:i}}case`focus-next-page`:{if(e.focusedValue===void 0)return e;let t=e.optionMap.get(e.focusedValue);if(!t)return e;let n=Math.min(e.optionMap.size-1,t.index+e.visibleOptionCount),r=e.optionMap.first;for(;r&&r.index<n&&r.next;)r=r.next;if(!r)return e;let i=Math.min(e.optionMap.size,r.index+1),a=Math.max(0,i-e.visibleOptionCount);return{...e,focusedValue:r.value,visibleFromIndex:a,visibleToIndex:i}}case`focus-previous-page`:{if(e.focusedValue===void 0)return e;let t=e.optionMap.get(e.focusedValue);if(!t)return e;let n=Math.max(0,t.index-e.visibleOptionCount),r=e.optionMap.first;for(;r&&r.index<n&&r.next;)r=r.next;if(!r)return e;let i=Math.max(0,r.index),a=Math.min(e.optionMap.size,i+e.visibleOptionCount);return{...e,focusedValue:r.value,visibleFromIndex:i,visibleToIndex:a}}case`reset`:return t.state;case`set-focus`:{if(e.focusedValue===t.value)return e;let n=e.optionMap.get(t.value);if(!n)return e;if(n.index>=e.visibleFromIndex&&n.index<e.visibleToIndex)return{...e,focusedValue:t.value};let r,i;return n.index<e.visibleFromIndex?(r=n.index,i=Math.min(e.optionMap.size,r+e.visibleOptionCount)):(i=Math.min(e.optionMap.size,n.index+1),r=Math.max(0,i-e.visibleOptionCount)),{...e,focusedValue:t.value,visibleFromIndex:r,visibleToIndex:i}}}},H=({visibleOptionCount:e,options:t,initialFocusValue:n,currentViewport:r})=>{let i=typeof e==`number`?Math.min(e,t.length):t.length,a=new L(t),o=n!==void 0&&a.get(n),s=o?n:a.first?.value,c=0,l=i;if(o){let e=o.index;r?e>=r.visibleFromIndex&&e<r.visibleToIndex?(c=r.visibleFromIndex,l=Math.min(a.size,r.visibleToIndex)):e<r.visibleFromIndex?(c=e,l=Math.min(a.size,c+i)):(l=Math.min(a.size,e+1),c=Math.max(0,l-i)):e>=i&&(l=Math.min(a.size,e+1),c=Math.max(0,l-i)),c=Math.max(0,Math.min(c,a.size-1)),l=Math.min(a.size,Math.max(i,l))}return{optionMap:a,visibleOptionCount:i,focusedValue:s,visibleFromIndex:c,visibleToIndex:l}}}));export{A as a,I as i,z as n,M as o,N as r,U as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./src-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./src-WZ94ZKI3.js";var n=e((()=>{t()}));export{n as t};
|