@readmagic/workmate 0.0.28 → 0.0.30
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-Bmgh8VS3.js → AddWorkspaceDirectory-B03NZZuQ.js} +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-45Ize2zR.js +1 -0
- package/dist/chunks/{AgentsMdExternalIncludesDialog-BJfHqScU.js → AgentsMdExternalIncludesDialog-CIyefOzT.js} +1 -1
- package/dist/chunks/App-WBysAL0_.js +1 -0
- package/dist/chunks/{BackgroundTasksDialog-WkoL4g5Q.js → BackgroundTasksDialog-CvvrjBoq.js} +2 -2
- package/dist/chunks/{BypassPermissionsModeDialog-BT9yl0Qt.js → BypassPermissionsModeDialog-DdVbMyla.js} +1 -1
- package/dist/chunks/{CustomSelect-t4wXuXWH.js → CustomSelect-iSG1rbWU.js} +1 -1
- package/dist/chunks/{DiffDialog-CXZxnb7Y.js → DiffDialog-DSb46fzB.js} +5 -5
- package/dist/chunks/Doctor--yF3SBsD.js +1 -0
- package/dist/chunks/Doctor-dR71Dg_D.js +3 -0
- package/dist/chunks/ExitFlow-BiBi5Sqk.js +2 -0
- package/dist/chunks/{InvalidConfigDialog-riLYEaUP.js → InvalidConfigDialog-7MkDSXXj.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-BGXl3V1A.js → InvalidSettingsDialog-D8Ves3Th.js} +1 -1
- package/dist/chunks/{KeybindingProviderSetup-syiDgtpB.js → KeybindingProviderSetup-DJSFdVYv.js} +1 -1
- package/dist/chunks/MCPConnectionManager-BZxRMdGO.js +1 -0
- package/dist/chunks/MCPToolListView-H_Kvvelz.js +1 -0
- package/dist/chunks/{McpParsingWarnings-Czze2JPd.js → McpParsingWarnings-D2xvaog9.js} +1 -1
- package/dist/chunks/MessageSelector-DQgIgPij.js +3 -0
- package/dist/chunks/Messages-DyQCr-od.js +10 -0
- package/dist/chunks/{Onboarding-CD_Uv5h9.js → Onboarding-DFufTPIY.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-CHXJsTtQ.js → PromptInputFooterSuggestions-B9JRcHHE.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-BZIVCV7V.js → PromptInputHelpMenu-DcGXK5lt.js} +1 -1
- package/dist/chunks/{ProviderSetup-CwMvjmjh.js → ProviderSetup-DJ_Z1BSe.js} +1 -1
- package/dist/chunks/QueryEngine-BQ5PSqKV.js +1 -0
- package/dist/chunks/{REPL-CtFtb35A.js → REPL-CjoJCy0g.js} +24 -24
- package/dist/chunks/REPL-DGieTVDl.js +1 -0
- package/dist/chunks/ResumeConversation-exTLviBY.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-BBhWAuoA.js +1 -0
- package/dist/chunks/Settings-nM6-cXh0.js +2 -0
- package/dist/chunks/Spinner-ChT4lOOg.js +1 -0
- package/dist/chunks/{SpinnerGlyph-BR_SiV9L.js → SpinnerGlyph-4aVLQdJf.js} +1 -1
- package/dist/chunks/{TextInput-ou7ZhpVY.js → TextInput-CanSwT9J.js} +5 -5
- package/dist/chunks/{ThemePicker-CVFWqSc7.js → ThemePicker-CXzPiSy0.js} +1 -1
- package/dist/chunks/{TrustDialog-CGXv_LF4.js → TrustDialog-D0fJ-YIw.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-CKeHoN2Z.js → ValidationErrorsList-29bQ0l-Q.js} +1 -1
- package/dist/chunks/{_baseEach-BYhqv77g.js → _baseEach-DPcnudh_.js} +1 -1
- package/dist/chunks/{add-dir-BSizpuef.js → add-dir-DbNz1SeY.js} +1 -1
- package/dist/chunks/{agentDisplay-JKfYFD1m.js → agentDisplay-Bif3eE1e.js} +1 -1
- package/dist/chunks/{agents-BDTCH6YB.js → agents-CbsNbPbp.js} +1 -1
- package/dist/chunks/{agents-MEaV8P2G.js → agents-yvC-VikU.js} +6 -6
- package/dist/chunks/allErrors-Bv1e8fra.js +1 -0
- package/dist/chunks/{appleTerminalBackup-CN8kS74J.js → appleTerminalBackup-Ct9hf1QQ.js} +1 -1
- package/dist/chunks/{backgroundHousekeeping-CsXlkIg3.js → backgroundHousekeeping-C75FgxW1.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-d0qpqWHe.js +1 -0
- package/dist/chunks/banner-D5m9LUjl.js +2 -0
- package/dist/chunks/{branch-BllXcYwS.js → branch-DOQ3yNds.js} +2 -2
- package/dist/chunks/bridgeControl-DMUu37uO.js +2 -0
- package/dist/chunks/{btw-DzaRBa6o.js → btw-DUjuwyMH.js} +1 -1
- package/dist/chunks/{bundledMode-D9omqD3L.js → bundledMode-Dqe4pz0a.js} +1 -1
- package/dist/chunks/caches-BKAPMXp9.js +1 -0
- package/dist/chunks/caches-he4NeZSK.js +1 -0
- package/dist/chunks/channel-C8JmEI06.js +2 -0
- package/dist/chunks/{channel-Gw6skpUh.js → channel-TEYwDITo.js} +1 -1
- package/dist/chunks/{clear-CDQs9_5P.js → clear-BFlTcvMt.js} +1 -1
- package/dist/chunks/{client-pA7fKk0-.js → client-D3QmHVeI.js} +1 -1
- package/dist/chunks/client-dTKhXxBT.js +1 -0
- package/dist/chunks/{client-2w-g5kMx.js → client-q_uGYC2E.js} +1 -1
- package/dist/chunks/client-y_U1O4mI.js +1 -0
- package/dist/chunks/commands-BoGtXPAA.js +1 -0
- package/dist/chunks/compact-CyR7Sbo1.js +2 -0
- package/dist/chunks/config-B-hDBSL8.js +1 -0
- package/dist/chunks/config-Bjwat4P6.js +3 -0
- package/dist/chunks/config-DubkVeOw.js +1 -0
- package/dist/chunks/{context-TkdzCK3Y.js → context-Cm_gyngQ.js} +1 -1
- package/dist/chunks/{context-noninteractive-BcBo64vo.js → context-noninteractive-BDmFfPRt.js} +2 -2
- package/dist/chunks/context-noninteractive-CmOFpwwP.js +1 -0
- package/dist/chunks/conversation-B7YCvyCD.js +1 -0
- package/dist/chunks/conversation-CYZKYlWc.js +1 -0
- package/dist/chunks/{conversationRecovery-_hWC7JBO.js → conversationRecovery-BUqpxLl-.js} +1 -1
- package/dist/chunks/crossProjectResume-BCa2l0KZ.js +40 -0
- package/dist/chunks/{debug-2pVES-2G.js → debug-NBJH_NxR.js} +2 -2
- package/dist/chunks/{detectRepository--luIRv5H.js → detectRepository-Bu0he_XM.js} +1 -1
- package/dist/chunks/{diff-BzVUPO4Z.js → diff-BEvpLh_b.js} +1 -1
- package/dist/chunks/{directoryCompletion-BC0qRmrz.js → directoryCompletion-CwKPuwrS.js} +1 -1
- package/dist/chunks/doctor-DYKr9Reu.js +1 -0
- package/dist/chunks/{entry-333L52Lo.js → entry-JGyBs1p5.js} +3 -3
- package/dist/chunks/{execFileNoThrow-DXSEj8ZO.js → execFileNoThrow-7Ys9mO27.js} +1 -1
- package/dist/chunks/exit-DU2KGyDk.js +1 -0
- package/dist/chunks/{extraUsage-CmgRR-zH.js → extraUsage-cZx2XLx4.js} +1 -1
- package/dist/chunks/extractMemories-4wbv-mTc.js +1 -0
- package/dist/chunks/fast-BALHWqpd.js +1 -0
- package/dist/chunks/{fast-D7oNjaZ3.js → fast-DUJq6-QE.js} +1 -1
- package/dist/chunks/{fetchModelList-Cv1vWIpC.js → fetchModelList-Dn8OahtV.js} +1 -1
- package/dist/chunks/fetchModelList-OZ2sLDEx.js +1 -0
- package/dist/chunks/{fileSuggestions-DF3HTRKr.js → fileSuggestions-XLnnVLwx.js} +3 -3
- package/dist/chunks/{gemini-ou7_YyXc.js → gemini-qzPNGqOX.js} +2 -2
- package/dist/chunks/{generateSessionName-CeN9EZNY.js → generateSessionName-CA-cc58H.js} +1 -1
- package/dist/chunks/{genericProcessUtils-GqURdVAv.js → genericProcessUtils-XwqvFxyn.js} +1 -1
- package/dist/chunks/{goal-CCxo4Wyf.js → goal-x9Pkx5nv.js} +3 -3
- package/dist/chunks/{grok-BMmUcNbI.js → grok-36CpLjsq.js} +1 -1
- package/dist/chunks/{help-CYtogTZk.js → help-DwfAEV0X.js} +1 -1
- package/dist/chunks/{history-CUrqO9rV.js → history-PZLMYab7.js} +1 -1
- package/dist/chunks/hooks-BofA8GeO.js +1 -0
- package/dist/chunks/{hooks-ByVkvodY.js → hooks-DBmA-DWx.js} +2 -2
- package/dist/chunks/{install-DIxyfdXG.js → install-DF4ep6nb.js} +1 -1
- package/dist/chunks/{instrumentation-BmHivmxs.js → instrumentation-BAbhrE3f.js} +3 -3
- package/dist/chunks/{job-D534P26R.js → job-CFWKIjNl.js} +1 -1
- package/dist/chunks/{keybindings-CxgQqQJe.js → keybindings-CkiE_uBG.js} +1 -1
- package/dist/chunks/{launchLocalMemory-CWXLb3KF.js → launchLocalMemory-Cf8l-1fz.js} +2 -2
- package/dist/chunks/{launchOnboarding-CocPmwzz.js → launchOnboarding-8CDef-v1.js} +1 -1
- package/dist/chunks/loadAgentsDir-C-qRJlXH.js +1 -0
- package/dist/chunks/{loadAgentsDir-bmpKLPdG.js → loadAgentsDir-DnHL_5cU.js} +358 -358
- package/dist/chunks/loadPluginHooks-BuunKr9m.js +1 -0
- package/dist/chunks/{loader-BMAtuwRa.js → loader-DsEdsMHv.js} +1 -1
- package/dist/chunks/localSearch-BulDBrBk.js +1 -0
- package/dist/chunks/{localSearch-Da8cVYoI.js → localSearch-LFCzV7VE.js} +1 -1
- package/dist/chunks/{log-L1kqxa_P.js → log-D98mO6yJ.js} +1 -1
- package/dist/chunks/{logoUtils-qNuBc2nI.js → logoUtils-B8MIA7c5.js} +1 -1
- package/dist/chunks/{magicDocs-BsEiBLQl.js → magicDocs-BoxJusTI.js} +2 -2
- package/dist/chunks/{main-B31aPMPP.js → main-B9ciFYnO.js} +22 -22
- package/dist/chunks/{managedEnv-EZ2IirNa.js → managedEnv-B0mj-wgE.js} +1 -1
- package/dist/chunks/managedEnv-BFpXdDI8.js +1 -0
- package/dist/chunks/mcp-B3Ewo-_h.js +1 -0
- package/dist/chunks/mcp-CHlAZvpV.js +2 -0
- package/dist/chunks/{mcp-Dd8TBfQQ.js → mcp-DVKuOqvY.js} +3 -3
- package/dist/chunks/memory-Cr0d-s7U.js +1 -0
- package/dist/chunks/{mode-SM8doWgC.js → mode-DBNBDbVP.js} +2 -2
- package/dist/chunks/model-B2r1Ms0g.js +1 -0
- package/dist/chunks/model-C9ANf1-R.js +1 -0
- package/dist/chunks/{modelOptions-BQL4gbNk.js → modelOptions-B4BWYms0.js} +1 -1
- package/dist/chunks/{nativeInstaller-DMkZdsof.js → nativeInstaller-BDJxBAPV.js} +1 -1
- package/dist/chunks/{notifications-BwS1XsnZ.js → notifications-BV-VeXyJ.js} +1 -1
- package/dist/chunks/{onChangeAppState-C9cYQJPF.js → onChangeAppState-BGWWkhBg.js} +1 -1
- package/dist/chunks/openai-BL_IWBTr.js +2 -0
- package/dist/chunks/{overlayContext-C5WPACKC.js → overlayContext-DGUFuee9.js} +1 -1
- package/dist/chunks/{parser-CTnaXFVJ.js → parser-D2kggQDp.js} +1 -1
- package/dist/chunks/parser-DZUcp40d.js +1 -0
- package/dist/chunks/{partition-CKgWl7p4.js → partition-B2VCm4vu.js} +1 -1
- package/dist/chunks/{pasteStore-njJCBMKr.js → pasteStore-2RafnH7M.js} +1 -1
- package/dist/chunks/permissions-Bkj1UB1h.js +3 -0
- package/dist/chunks/{pidLock-CqkC3-nD.js → pidLock-CawSx6hb.js} +2 -2
- package/dist/chunks/{plan-Ce6wfjjI.js → plan-D7Ki5ADu.js} +1 -1
- package/dist/chunks/plugin-D7I6VZjh.js +17 -0
- package/dist/chunks/{pluginAutoupdate-ByokIVEs.js → pluginAutoupdate-Cr3jw-ky.js} +1 -1
- package/dist/chunks/pluginBlocklist-JG_kJSSK.js +1 -0
- package/dist/chunks/pluginCliCommands-BWIBBFJf.js +1 -0
- package/dist/chunks/{pluginFlagging-B2ZX5_oB.js → pluginFlagging-yFcXMVin.js} +1 -1
- package/dist/chunks/pluginOperations-6QXjdPOb.js +2 -0
- package/dist/chunks/pluginStartupCheck-B-nYb61N.js +1 -0
- package/dist/chunks/{pluginStartupCheck-QG0d95dE.js → pluginStartupCheck-CkjyJ4RS.js} +1 -1
- package/dist/chunks/plugins-CMDfjFp-.js +4 -0
- package/dist/chunks/{poorMode-CG2JNTD0.js → poorMode-BvypUTur.js} +1 -1
- package/dist/chunks/poorMode-CP6359Sz.js +1 -0
- package/dist/chunks/print-B6x_8O9w.js +13 -0
- package/dist/chunks/process-CewWh77C.js +1 -0
- package/dist/chunks/process-De2crvt4.js +1 -0
- package/dist/chunks/processBashCommand-D0BBcBHY.js +1 -0
- package/dist/chunks/processSlashCommand-BvjNuNyP.js +5 -0
- package/dist/chunks/{projectOnboardingState-D-_ijZnG.js → projectOnboardingState-ofkjp9FJ.js} +1 -1
- package/dist/chunks/prompt-Cpu4meqR.js +1 -0
- package/dist/chunks/{prompt-BnDapYGL.js → prompt-DDlkyIzV.js} +3 -3
- package/dist/chunks/prompt-HO8Docca.js +1 -0
- package/dist/chunks/{promptEditor-14TB3MYt.js → promptEditor-CyMqa_av.js} +1 -1
- package/dist/chunks/{protocolHandler-CJO3CRYW.js → protocolHandler-Bjmx7OmF.js} +1 -1
- package/dist/chunks/{proxy--_NfbJhm.js → proxy-MzIsnPd7.js} +1 -1
- package/dist/chunks/{reconciler-C_HKsocm.js → reconciler-CHbint0C.js} +1 -1
- package/dist/chunks/refresh-yut9uEfd.js +1 -0
- package/dist/chunks/{reject-Tug1RmkE.js → reject-CrNfit3M.js} +1 -1
- package/dist/chunks/{reload-plugins-CL9LWzpq.js → reload-plugins-labKy5Eh.js} +1 -1
- package/dist/chunks/rename-c8tElppw.js +1 -0
- package/dist/chunks/{renderOptions-B0RFpjRI.js → renderOptions-B3DyIbF6.js} +1 -1
- package/dist/chunks/{resume-BZ42SpS2.js → resume-C8xif2lo.js} +2 -2
- package/dist/chunks/ripgrep-CIIzTaSI.js +1 -0
- package/dist/chunks/{ripgrep-67m14ImZ.js → ripgrep-CnK9qx1e.js} +1 -1
- package/dist/chunks/{runtimeObserver-DT5P2_XL.js → runtimeObserver-DuJ8mRfr.js} +4 -4
- package/dist/chunks/{runtimeObserver-BLq2guVy.js → runtimeObserver-vmPplAGH.js} +1 -1
- package/dist/chunks/sandbox-adapter-BKnsdtVj.js +1 -0
- package/dist/chunks/{sandbox-toggle-DghmaJhK.js → sandbox-toggle-USHaZHD7.js} +1 -1
- package/dist/chunks/searchExtraTools-DV5iZPdw.js +1 -0
- package/dist/chunks/{select-CaxQ-BVq.js → select-BpiKdirZ.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-nq8C34WL.js +1 -0
- package/dist/chunks/sessionObserver-CKp3uqPg.js +1 -0
- package/dist/chunks/{sessionObserver-DBoZUvWL.js → sessionObserver-sO6PF7mV.js} +1 -1
- package/dist/chunks/sessionStorage-CuQf4d1y.js +1 -0
- package/dist/chunks/{sessionTracing-5a7HDF4e.js → sessionTracing-Bz89tYh5.js} +1 -1
- package/dist/chunks/settings-B3WqnPDo.js +1 -0
- package/dist/chunks/{settings-D4M13toi.js → settings-CA-5Px85.js} +2 -2
- package/dist/chunks/setup-B-FejaeH.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-L3tnySui.js → shadowedRuleDetection-BI6Xz0pY.js} +1 -1
- package/dist/chunks/{sideQuestion-BJTVma-5.js → sideQuestion-BEpCuv_7.js} +3 -3
- package/dist/chunks/{sinks-CV0SWuZW.js → sinks-BvOPODnl.js} +1 -1
- package/dist/chunks/sinks-DLALCllz.js +1 -0
- package/dist/chunks/skillChangeDetector-D-fxaAMH.js +1 -0
- package/dist/chunks/{skillGapStore-Cposc03e.js → skillGapStore-A1FCr8Mf.js} +2 -2
- package/dist/chunks/{skillLifecycle-RXQp0JU7.js → skillLifecycle-CTVa34xO.js} +2 -2
- package/dist/chunks/{skillSearchPanel-B2pjskqk.js → skillSearchPanel-CjekGkrw.js} +4 -4
- package/dist/chunks/{skills-D2ZjMtv4.js → skills-110JHHbj.js} +1 -1
- package/dist/chunks/{sleep-xKMbXTJe.js → sleep-BGewNhNx.js} +1 -1
- package/dist/chunks/{startupProfiler-B9Qv2QGH.js → startupProfiler-C_xcIvEA.js} +1 -1
- package/dist/chunks/startupProfiler-uueg2S43.js +1 -0
- package/dist/chunks/status-D_b3UMke.js +1 -0
- package/dist/chunks/statusNoticeHelpers-C5BRU3lw.js +1 -0
- package/dist/chunks/{stringUtils-Cs6E5f-B.js → stringUtils-CtJhTszO.js} +1 -1
- package/dist/chunks/switcher-BFzvv7KT.js +1 -0
- package/dist/chunks/{switcher-rep86o4_.js → switcher-nLHGsxLw.js} +1 -1
- package/dist/chunks/{tasks-B4coTfrq.js → tasks-CjYr59Ak.js} +1 -1
- package/dist/chunks/{templateJobs-C5ukh6H3.js → templateJobs-ECX0rRRp.js} +1 -1
- package/dist/chunks/{terminalSetup-CaGbEVjB.js → terminalSetup-AptBNs_i.js} +1 -1
- package/dist/chunks/{terminalSetup-xe_P98fY.js → terminalSetup-CKO6eWhS.js} +1 -1
- package/dist/chunks/{theme-7RmvErYJ.js → theme-BCSx9irC.js} +1 -1
- package/dist/chunks/tipRegistry-CnQB3TaA.js +2 -0
- package/dist/chunks/{toolEventObserver-Dzwzi5Vi.js → toolEventObserver-Bqtypnkk.js} +1 -1
- package/dist/chunks/toolPool-B1sXN7SK.js +1 -0
- package/dist/chunks/{udsClient-CWeoNrm3.js → udsClient-COYqIvvr.js} +1 -1
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BT0nexZw.js → useExitOnCtrlCDWithKeybindings-DegJrysj.js} +1 -1
- package/dist/chunks/useMainLoopModel-CPnigpM1.js +1 -0
- package/dist/chunks/useManagePlugins-BW2Zj_jf.js +1 -0
- package/dist/chunks/useMergedTools-CTm1AU9b.js +1 -0
- package/dist/chunks/{useSearchInput-j12K4wEo.js → useSearchInput-DrY4BZKy.js} +1 -1
- package/dist/chunks/useSettingsErrors-2uIAF6H8.js +1 -0
- package/dist/chunks/{util-CCEK8oze.js → util-BUgUtaUV.js} +1 -1
- package/dist/chunks/validatePlugin-BGB8T9Mb.js +1 -0
- package/dist/chunks/{vim-BlO9V5_5.js → vim-DdxGarvY.js} +1 -1
- package/dist/chunks/worktree-DBZ7f9Lk.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-BjbUilCE.js +0 -1
- package/dist/chunks/App-COdpsR2w.js +0 -1
- package/dist/chunks/Doctor-B6isid5K.js +0 -1
- package/dist/chunks/Doctor-COj-tZBc.js +0 -3
- package/dist/chunks/ExitFlow-CcMYH5iI.js +0 -2
- package/dist/chunks/MCPConnectionManager-C7RmKzJh.js +0 -1
- package/dist/chunks/MCPToolListView-CewNLJus.js +0 -1
- package/dist/chunks/MessageSelector-Kc6JlnDX.js +0 -3
- package/dist/chunks/Messages-BvFYO4Zn.js +0 -10
- package/dist/chunks/QueryEngine-DAwfp_ht.js +0 -1
- package/dist/chunks/REPL-tFT1FGQF.js +0 -1
- package/dist/chunks/ResumeConversation-CERzSBvg.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-ndh4aEwQ.js +0 -1
- package/dist/chunks/Settings-CPaqWNdP.js +0 -2
- package/dist/chunks/Spinner-C0qHjfIY.js +0 -1
- package/dist/chunks/allErrors-Dhnf6rqg.js +0 -1
- package/dist/chunks/backgroundHousekeeping-Bu-zRFCx.js +0 -1
- package/dist/chunks/banner-BKOzHotb.js +0 -2
- package/dist/chunks/bridgeControl-aDnUrYZR.js +0 -2
- package/dist/chunks/caches-CMF-MmR-.js +0 -1
- package/dist/chunks/caches-CW5YnYNS.js +0 -1
- package/dist/chunks/channel-DVx21qde.js +0 -1
- package/dist/chunks/client-B0ngS4Uu.js +0 -1
- package/dist/chunks/client-BP4DOH3K.js +0 -1
- package/dist/chunks/commands-CfYMwgP7.js +0 -1
- package/dist/chunks/compact-6F2tuItE.js +0 -2
- package/dist/chunks/config-BDkzWBnL.js +0 -1
- package/dist/chunks/config-Bio2EjUK.js +0 -3
- package/dist/chunks/config-C_AEhZrn.js +0 -1
- package/dist/chunks/context-noninteractive-oFcnY1Er.js +0 -1
- package/dist/chunks/conversation-CYZyg1U1.js +0 -1
- package/dist/chunks/conversation-DXzlRhNw.js +0 -1
- package/dist/chunks/crossProjectResume-CCo3iZrB.js +0 -40
- package/dist/chunks/doctor-B4jQbGQr.js +0 -1
- package/dist/chunks/exit-D5DYnRvR.js +0 -1
- package/dist/chunks/extractMemories-CVUrBFMj.js +0 -1
- package/dist/chunks/fast-CRhW9zha.js +0 -1
- package/dist/chunks/fetchModelList-DIa1HwAJ.js +0 -1
- package/dist/chunks/hooks-CBGUcyCs.js +0 -1
- package/dist/chunks/loadAgentsDir-Zw648oQO.js +0 -1
- package/dist/chunks/loadPluginHooks-BIfM53-_.js +0 -1
- package/dist/chunks/localSearch-Dbj8cXyO.js +0 -1
- package/dist/chunks/managedEnv-DCGLDTP_.js +0 -1
- package/dist/chunks/mcp-BMeWtYCx.js +0 -2
- package/dist/chunks/mcp-CYbesbfl.js +0 -1
- package/dist/chunks/memory-DtQQGyPS.js +0 -1
- package/dist/chunks/model-C2r-PaR4.js +0 -1
- package/dist/chunks/model-Dd3x121y.js +0 -1
- package/dist/chunks/openai-Bea4I2Od.js +0 -2
- package/dist/chunks/parser-Diihup2V.js +0 -1
- package/dist/chunks/permissions-Dv_PCfY0.js +0 -3
- package/dist/chunks/plugin-aK4tDrVg.js +0 -17
- package/dist/chunks/pluginBlocklist-ByRQaVPu.js +0 -1
- package/dist/chunks/pluginCliCommands-Dyk4HYHs.js +0 -1
- package/dist/chunks/pluginOperations-BCvJvfOC.js +0 -2
- package/dist/chunks/pluginStartupCheck-o_TC7wIt.js +0 -1
- package/dist/chunks/plugins-DzsTDNWJ.js +0 -4
- package/dist/chunks/poorMode-eMIFCAC_.js +0 -1
- package/dist/chunks/print-dUT7E1g9.js +0 -13
- package/dist/chunks/process-CNfq37LF.js +0 -1
- package/dist/chunks/process-gEbdy6uY.js +0 -1
- package/dist/chunks/processBashCommand-DtGCgTkF.js +0 -1
- package/dist/chunks/processSlashCommand-wXblpK2C.js +0 -5
- package/dist/chunks/prompt-BdH2zk0S.js +0 -1
- package/dist/chunks/prompt-D0TFER0A.js +0 -1
- package/dist/chunks/refresh-Cm4jZzLa.js +0 -1
- package/dist/chunks/rename-OfKJSazJ.js +0 -1
- package/dist/chunks/ripgrep-DB7KB8RZ.js +0 -1
- package/dist/chunks/sandbox-adapter-982rx2cm.js +0 -1
- package/dist/chunks/searchExtraTools-B4N1bpy0.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-BqQ58T7e.js +0 -1
- package/dist/chunks/sessionObserver-qYpA90El.js +0 -1
- package/dist/chunks/sessionStorage-CC0v4zMs.js +0 -1
- package/dist/chunks/settings-Dfit5gGT.js +0 -1
- package/dist/chunks/setup-DVLnIlse.js +0 -3
- package/dist/chunks/sinks-C9NdbjLo.js +0 -1
- package/dist/chunks/skillChangeDetector-DlodgOyC.js +0 -1
- package/dist/chunks/startupProfiler-DWcM4QBl.js +0 -1
- package/dist/chunks/status-BcSkj9nE.js +0 -1
- package/dist/chunks/statusNoticeHelpers-DsrqBOQt.js +0 -1
- package/dist/chunks/switcher-BietN6il.js +0 -1
- package/dist/chunks/tipRegistry-BYpJZIjR.js +0 -2
- package/dist/chunks/toolPool-BGfiNj6h.js +0 -1
- package/dist/chunks/useMainLoopModel-QuE7VkgX.js +0 -1
- package/dist/chunks/useManagePlugins-pGaGzsEg.js +0 -1
- package/dist/chunks/useMergedTools-BLsIT3R_.js +0 -1
- package/dist/chunks/useSettingsErrors-C8VIzdws.js +0 -1
- package/dist/chunks/validatePlugin-CTVnWx9H.js +0 -1
- package/dist/chunks/worktree-BWL0vR4o.js +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{At as t,kt as n}from"./settings-D4M13toi.js";import{An as r,Pt as i,at as a,t as o}from"./state-CXY-q5gr.js";import{$o as s,$x as c,Av as l,B as u,B_ as d,Bv as f,Ca as p,Cx as m,E as h,Ei as g,Fb as _,Gs as v,H_ as y,Hs as b,Ji as x,Kx as S,Mh as C,Mi as w,Nb as T,Ni as E,Pb as D,Qo as O,Qp as ee,Qx as te,Tp as ne,Tv as re,Tx as k,V as ie,Vx as ae,Ws as oe,Xp as se,Xx as ce,Yg as le,Yx as A,Zg as ue,Zp as de,_d as j,au as fe,b as pe,bd as me,bg as he,cu as ge,cv as M,dv as N,eS as P,eu as F,gc as I,gd as L,hc as _e,iS as ve,jh as ye,ji as be,la as xe,lu as Se,nS as R,nu as z,rS as Ce,ts as we,tu as Te,vd as Ee,wi as De,wp as Oe,wv as ke,wx as B,xg as Ae,xi as je,yd as Me,zv as Ne}from"./loadAgentsDir-bmpKLPdG.js";import{E as Pe,I as Fe,c as V,f as Ie,i as H,k as U,u as Le}from"./debug-2pVES-2G.js";import{D as W,O as G,o as Re,q as ze,s as K}from"./log-L1kqxa_P.js";import{n as Be}from"./analytics-COpjZpvd.js";import{At as Ve,kt as He}from"./model-Dd3x121y.js";import{n as Ue,t as We}from"./sleep-xKMbXTJe.js";import{E as Ge,T as Ke,w as qe}from"./sessionTracing-5a7HDF4e.js";import{randomUUID as q}from"crypto";function Je(e,n,r,i,a){let o=0;for(let s of t){let t=r[s];if(t)for(let r of t)for(let t of r.hooks){let c=t.once?()=>{V(`Removing one-shot hook for event ${s} in skill '${i}'`),me(e,n,s,t)}:void 0;Ee(e,n,s,r.matcher||``,t,c,a),o++}}o>0&&V(`Registered ${o} hooks from skill '${i}'`)}var Ye=e((()=>{n(),H(),Me()}));function Xe(e){let t=e.trim();if(!t.startsWith(`/`))return null;let n=t.slice(1).split(` `);if(!n[0])return null;let r=n[0],i=!1,a=1;n.length>1&&n[1]===`(MCP)`&&(r=`${r} (MCP)`,i=!0,a=2);let o=n.slice(a).join(` `);return{commandName:r,args:o,isMcp:i}}var Ze=e((()=>{}));function Qe(){return!1}function $e(){if(!Qe())throw Error(`ToolUseContext.options.allowBackgroundForkedSlashCommands is test-only and cannot be enabled outside NODE_ENV=test.`)}async function J(e,t,n,r,i,a,o){let s=Oe(),l=e.pluginInfo?k(e.pluginInfo.repository).marketplace:void 0;e.name,{...e.pluginInfo&&{_PROTO_plugin_name:e.pluginInfo.pluginManifest.name,...l&&{_PROTO_marketplace_name:l},...z(e.pluginInfo)}};let{skillContent:u,modifiedGetAppState:d,baseAgent:f,promptMessages:p}=await v(e,t,n);V(`Executing forked slash command /${e.name} with agent ${f.agentType}`);let m=n.options.allowBackgroundForkedSlashCommands===!0;if(m&&$e(),m){let t=Ne(),r=E(e),i=He(),c=e=>re({value:e,mode:`prompt`,priority:`later`,isMeta:!0,skipSlashCommands:!0,workload:i}),l=async()=>{if(!o?.runId)return;let e=await se({runId:o.runId,rootDir:o.rootDir,priority:`later`,workload:i});for(let t of e)ke(t)},u=async e=>{o?.runId&&await de({runId:o.runId,rootDir:o.rootDir,error:e instanceof Error?e.message:String(e)})};return(async()=>{let i=Date.now()+$;for(;Date.now()<i&&n.getAppState().mcp.clients.some(e=>e.type===`pending`);)await Ue(Q);let o=n.options.refreshTools?.()??n.options.tools,u=[];for await(let r of j({agentDefinition:f,promptMessages:p,toolUseContext:{...n,getAppState:d,abortController:t},canUseTool:a,isAsync:!0,querySource:`agent:custom`,model:e.model,availableTools:o,override:{agentId:s}}))u.push(r);let m=b(u,`Command completed`);V(`Background forked command /${r} completed (agent ${s})`),c(`<scheduled-task-result command="/${r}">\n${m}\n</scheduled-task-result>`);try{await l()}catch(e){K(e)}})().catch(async e=>{K(e),c(`<scheduled-task-result command="/${r}" status="failed">\n${e instanceof Error?e.message:String(e)}\n</scheduled-task-result>`),await u(e)}),{messages:[],shouldQuery:!1,command:e,deferAutonomyCompletion:!!o?.runId}}let h=[],g=[],_=`forked-command-${e.name}`,y=0,x=e=>(y++,{type:`progress`,data:{message:e,type:`agent_progress`,prompt:u,agentId:s},parentToolUseID:_,toolUseID:`${_}-${y}`,timestamp:new Date().toISOString(),uuid:q()}),S=()=>{i({jsx:Se(g,{tools:n.options.tools,verbose:!1}),shouldHidePromptInput:!1,shouldContinueAnimation:!0,showSpinner:!0})};S();try{for await(let t of j({agentDefinition:f,promptMessages:p,toolUseContext:{...n,getAppState:d},canUseTool:a,isAsync:!1,querySource:`agent:custom`,model:e.model,availableTools:n.options.tools})){h.push(t);let e=xe([t]);if(t.type===`assistant`){let r=M(t);r>0&&n.setResponseLength(e=>e+r);let i=e[0];i&&i.type===`assistant`&&(g.push(x(t)),S())}if(t.type===`user`){let t=e[0];t&&t.type===`user`&&(g.push(x(t)),S())}}}finally{i(null)}let C=b(h,`Command completed`);return V(`Forked slash command /${e.name} completed with agent ${s}`),{messages:[c({content:R({inputString:`/${E(e)} ${t}`.trim(),precedingInputBlocks:r})}),c({content:`<local-command-stdout>\n${C}\n</local-command-stdout>`})],shouldQuery:!1,command:e,resultText:C}}function et(e){return!/[^a-zA-Z0-9:\-_]/.test(e)}async function tt(e,t,n,i,a,o,s,l,u,d){let f=Xe(e);if(!f){let e="Commands are in the form `/command [args]`";return{messages:[A(),...i,c({content:R({inputString:e,precedingInputBlocks:t})})],shouldQuery:!1,resultText:e}}let{commandName:m,args:h,isMcp:g}=f,_=g?`mcp`:je().has(m)?m:`custom`;if(!be(m,a.options.commands)){let n=!1;try{await Le().stat(`/${m}`),n=!0}catch{}if(et(m)&&!n){let e=`Unknown skill: ${m}`;return{messages:[A(),...i,c({content:R({inputString:e,precedingInputBlocks:t})}),...h?[ce(`Args from unknown skill: ${h}`,`warning`)]:[]],shouldQuery:!1,resultText:e}}let a=q();return r(a),Ke(`user_prompt`,{prompt_length:String(e.length),prompt:Ge(e),"prompt.id":a}),{messages:[c({content:R({inputString:e,precedingInputBlocks:t}),uuid:s}),...i],shouldQuery:!0}}let{messages:v,shouldQuery:y,allowedTools:b,model:x,command:S,resultText:C,nextInput:w,submitNextInput:T,deferAutonomyCompletion:E}=await nt(m,h,o,a,t,n,l,u,s,d);if(v.length===0){let e={input:_};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:t,repository:n}=S.pluginInfo,{marketplace:r}=k(n),i=B(r);e._PROTO_plugin_name=t.name,r&&(e._PROTO_marketplace_name=r),e.plugin_repository=i?n:`third-party`,e.plugin_name=i?t.name:`third-party`,i&&t.version&&(e.plugin_version=t.version),Object.assign(e,z(S.pluginInfo))}return{...e},{messages:[],shouldQuery:!1,model:x,nextInput:w,submitNextInput:T,deferAutonomyCompletion:E}}if(v.length===2&&v[1].type===`user`&&typeof v[1].message.content==`string`&&v[1].message.content.startsWith(`Unknown command:`))return e.startsWith(`/var`)||e.startsWith(`/tmp`)||e.startsWith(`/private`),{messages:[A(),...v],shouldQuery:y,allowedTools:b,model:x};let D={input:_};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:e,repository:t}=S.pluginInfo,{marketplace:n}=k(t),r=B(n);D._PROTO_plugin_name=e.name,n&&(D._PROTO_marketplace_name=n),D.plugin_repository=r?t:`third-party`,D.plugin_name=r?e.name:`third-party`,r&&e.version&&(D.plugin_version=e.version),Object.assign(D,z(S.pluginInfo))}({...D});let O=v.length>0&&v[0]&&ae(v[0]);return{messages:y||v.every(p)||O?v:[A(),...v],shouldQuery:y,allowedTools:b,model:x,resultText:C,nextInput:w,submitNextInput:T,deferAutonomyCompletion:E}}async function nt(e,t,n,r,i,a,o,s,l,d){let f=g(e,r.options.commands);if(f.type===`prompt`&&f.userInvocable!==!1&&Te(e),f.userInvocable===!1)return{messages:[c({content:R({inputString:`/${e}`,precedingInputBlocks:i})}),c({content:`This skill can only be invoked by Work Mate, not directly by users. Ask Work Mate to use the "${e}" skill for you.`})],shouldQuery:!1,command:f};try{switch(f.type){case`local-jsx`:return new Promise(e=>{let a=!1,o=(n,r)=>{if(a=!0,r?.display===`skip`){e({messages:[],shouldQuery:!1,command:f,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput});return}let o=(r?.metaMessages??[]).map(e=>c({content:e,isMeta:!0})),s=C()&&typeof n==`string`&&n.endsWith(` dismissed`),l=r?.displayArgs??t;e({messages:r?.display===`system`?s?o:[S(Y(f,l)),S(`<local-command-stdout>${n}</local-command-stdout>`),...o]:[c({content:R({inputString:Y(f,l),precedingInputBlocks:i})}),c(n?{content:`<local-command-stdout>${n}</local-command-stdout>`}:{content:`<local-command-stdout>${Ce}</local-command-stdout>`}),...o],shouldQuery:r?.shouldQuery??!1,command:f,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput})};f.load().then(e=>e.call(o,{...r,canUseTool:s},t)).then(t=>{if(t!=null){if(r.options.isNonInteractiveSession){e({messages:[],shouldQuery:!1,command:f});return}a||n({jsx:t,shouldHidePromptInput:!0,showSpinner:!1,isLocalJSXCommand:!0,isImmediate:f.immediate===!0})}}).catch(t=>{K(t),!a&&(a=!0,n({jsx:null,shouldHidePromptInput:!1,clearLocalJSX:!0}),e({messages:[],shouldQuery:!1,command:f}))})});case`local`:{let e=c({content:R({inputString:Y(f,f.isSensitive&&t.trim()?`***`:t),precedingInputBlocks:i})});try{let n=A(),i=await(await f.load()).call(t,r);if(i.type===`skip`)return{messages:[],shouldQuery:!1,command:f};if(i.type===`compact`){let t=[n,e,...i.displayText?[c({content:`<local-command-stdout>${i.displayText}</local-command-stdout>`,timestamp:new Date(Date.now()+100).toISOString()})]:[]],r={...i.compactionResult,messagesToKeep:[...i.compactionResult.messagesToKeep??[],...t]};return y(),{messages:le(r),shouldQuery:!1,command:f}}return{messages:[e,S(`<local-command-stdout>${i.value}</local-command-stdout>`)],shouldQuery:!1,command:f,resultText:i.value}}catch(t){return K(t),{messages:[e,S(`<local-command-stderr>${String(t)}</local-command-stderr>`)],shouldQuery:!1,command:f}}}case`prompt`:try{return f.context===`fork`?await J(f,t,r,i,n,s??u,d):await Z(f,t,r,i,a,l)}catch(e){return e instanceof Pe?{messages:[c({content:R({inputString:Y(f,t),precedingInputBlocks:i})}),te({toolUse:!1})],shouldQuery:!1,command:f}:{messages:[c({content:R({inputString:Y(f,t),precedingInputBlocks:i})}),c({content:`<local-command-stderr>${String(e)}</local-command-stderr>`})],shouldQuery:!1,command:f}}}}catch(e){if(e instanceof U)return{messages:[c({content:R({inputString:e.message,precedingInputBlocks:i})})],shouldQuery:!1,command:f};throw e}}function Y(e,t){return P(E(e),t)}function X(e,t=`loading`){return[`<${W}>${e}</${W}>`,`<${G}>${e}</${G}>`,`<skill-format>true</skill-format>`].join(`
|
|
2
|
-
`)}function rt(e,t){return[`<${W}>${e}</${W}>`,`<${G}>/${e}</${G}>`,t?`<command-args>${t}</command-args>`:null].filter(Boolean).join(`
|
|
3
|
-
`)}function it(e,t){return e.userInvocable===!1&&(e.loadedFrom===`skills`||e.loadedFrom===`plugin`||e.loadedFrom===`mcp`)?X(e.name,e.progressMessage):rt(e.name,t)}async function at(e,t,n,r,i=[]){let a=De(e,n);if(!a)throw new U(`Unknown command: ${e}`);if(a.type!==`prompt`)throw Error(`Unexpected ${a.type} command. Expected 'prompt' command. Use /${e} directly in the main conversation.`);return Z(a,t,r,[],i)}async function Z(e,t,n,r=[],i=[],l){let u=await e.getPromptForCommand(t,n),d=!D(`hooks`)||_(e.source);if(e.hooks&&d){let t=a();Je(n.setAppState,t,e.hooks,e.name,e.type===`prompt`?e.skillRoot:void 0)}let f=e.source?`${e.source}:${e.name}`:e.name,p=u.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
4
|
-
|
|
5
|
-
`);o(e.name,f,p,he()?.agentId??null);let m=it(e,t),g=h(e.allowedTools??[]),v=i.length>0||r.length>0?[...i,...r,...u]:u,y=await I(s(u.filter(e=>e.type===`text`).map(e=>e.text).join(` `),n,[],n.messages,`repl_main_thread`,{skipSkillDiscovery:!0}));return{messages:[c({content:m,uuid:l}),c({content:v,isMeta:!0}),...y,O({type:`command_permissions`,allowedTools:g,model:e.model})],shouldQuery:!0,allowedTools:g,model:e.model,command:e}}var Q,$;e((()=>{i(),w(),ve(),ze(),Be(),ue(),d(),L(),ge(),f(),Ae(),we(),H(),Fe(),oe(),Ie(),ye(),_e(),Ye(),Re(),l(),x(),pe(),ie(),m(),T(),Ze(),We(),F(),qe(),fe(),N(),ne(),ee(),Ve(),Q=200,$=1e4}))();export{X as formatSkillLoadingMetadata,at as processPromptSlashCommand,tt as processSlashCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qb as e,ix as t}from"./loadAgentsDir-bmpKLPdG.js";t();export{e as clearPromptCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./prompt-BnDapYGL.js";t();export{e as isDeferredTool};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pt as t,q as n}from"./state-CXY-q5gr.js";import{Fa as r,Fm as i,Go as a,Hm as o,Km as s,Ko as c,Lm as l,Mo as u,No as d,Pa as f,Wm as p,_f as m,c_ as h,i as g,o as _,qm as v,s_ as y,vf as b}from"./loadAgentsDir-bmpKLPdG.js";import{I as x,M as S,c as C,i as w}from"./debug-2pVES-2G.js";import{o as T,s as E}from"./log-L1kqxa_P.js";async function D(e){C(`refreshActivePlugins: clearing all plugin caches`),u(),i();let t=await r(),[o,s]=await Promise.all([a(),g(n())]),{enabled:c,disabled:l,errors:d}=t,[f,m]=await Promise.all([Promise.all(c.map(async e=>{if(e.mcpServers)return Object.keys(e.mcpServers).length;let t=await b(e,d);return t&&(e.mcpServers=t),t?Object.keys(t).length:0})),Promise.all(c.map(async e=>{if(e.lspServers)return Object.keys(e.lspServers).length;let t=await v(e,d);return t&&(e.lspServers=t),t?Object.keys(t).length:0}))]),_=f.reduce((e,t)=>e+t,0),y=m.reduce((e,t)=>e+t,0);e(e=>({...e,plugins:{...e.plugins,enabled:c,disabled:l,commands:o,errors:O(e.plugins.errors,d),needsRefresh:!1},agentDefinitions:s,mcp:{...e.mcp,pluginReconnectKey:e.mcp.pluginReconnectKey+1}})),p();let x=!1;try{await h()}catch(e){x=!0,E(e),C(`refreshActivePlugins: loadPluginHooks failed: ${S(e)}`)}let w=c.reduce((e,t)=>t.hooksConfig?e+Object.values(t.hooksConfig).reduce((e,t)=>e+(t?.reduce((e,t)=>e+t.hooks.length,0)??0),0):e,0);return C(`refreshActivePlugins: ${c.length} enabled, ${o.length} commands, ${s.allAgents.length} agents, ${w} hooks, ${_} MCP, ${y} LSP`),{enabled_count:c.length,disabled_count:l.length,command_count:o.length,agent_count:s.allAgents.length,hook_count:w,mcp_count:_,lsp_count:y,error_count:d.length+ +!!x,agentDefinitions:s,pluginCommands:o}}function O(e,t){let n=e.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),r=new Set(t.map(k));return[...n.filter(e=>!r.has(k(e))),...t]}function k(e){return e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`}var A=e((()=>{t(),o(),_(),w(),x(),T(),d(),c(),y(),s(),m(),l(),f()}));export{D as n,A as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pt as t,at as n}from"./state-CXY-q5gr.js";import{Ji as r,Rx as i,Zr as a,ei as o,fr as s,gr as c}from"./loadAgentsDir-bmpKLPdG.js";import{n as l,t as u}from"./generateSessionName-CeN9EZNY.js";async function d(e,t,r){let c;if(!r||r.trim()===``){let n=await u(i(t.messages),t.abortController.signal);if(!n)return e(`Could not generate a name: no conversation context yet. Usage: /rename <name>`,{display:`system`}),null;c=n}else c=r.trim();let l=n(),d=s();return await o(l,c,d),await a(l,c,d),t.setAppState(e=>({...e,standaloneAgentContext:{...e.standaloneAgentContext,name:c}})),e(`Session renamed to: ${c}`,{display:`system`}),null}e((()=>{t(),r(),c(),l()}))();export{d as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t}from"./ripgrep-67m14ImZ.js";e();export{t as getRipgrepStatus};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aC as e,sC as t}from"./loadAgentsDir-bmpKLPdG.js";t();export{e as SandboxManager};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S_ as e,b_ as t}from"./loadAgentsDir-bmpKLPdG.js";t();export{e as isSearchExtraToolsEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Am as e,km as t}from"./loadAgentsDir-bmpKLPdG.js";t();export{e as registerSessionFileAccessHooks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./sessionObserver-DBoZUvWL.js";t();export{e as heuristicObserverBackend};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Cr as e,Wr as t,gr as n}from"./loadAgentsDir-bmpKLPdG.js";n();export{e as linkSessionToPR,t as recordTranscript};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as e,s as t,y as n}from"./settings-D4M13toi.js";e();export{t as getSettingsForSource,n as updateSettingsForSource};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r,s as i}from"./envUtils-QyzA_cFM.js";import{di as a,fi as o}from"./src-BX54x08P.js";import{$n as s,Qn as c,Rr as l,Ur as ee,Xt as u,di as d,qr as f,qt as te,ui as p,zr as ne}from"./settings-D4M13toi.js";import{Dn as re,F as m,Hn as h,Pt as g,Tn as ie,X as ae,at as oe}from"./state-CXY-q5gr.js";import{$_ as _,$x as v,Ab as se,An as ce,At as y,Bs as le,By as ue,Cg as de,Db as fe,Di as pe,J_ as b,Ji as x,Ks as S,Lp as C,Mb as w,Mi as T,Ob as E,Q_ as D,Rp as O,St as k,Vs as A,Ws as j,X_ as M,Y_ as N,Z_ as P,ai as F,am as I,av as L,bb as R,cw as z,dv as B,em as me,ev as he,gr as ge,gt as _e,ht as ve,im as ye,iv as be,jb as xe,jn as Se,kn as Ce,ky as we,mn as Te,nv as Ee,om as De,ov as Oe,ow as ke,pn as Ae,pv as V,rv as je,tm as Me,tv as Ne,uv as Pe,vt as H,wg as Fe,wy as Ie,xb as U,ya as W,zy as Le}from"./loadAgentsDir-bmpKLPdG.js";import{n as Re,t as G}from"./cwd-DrEEb4f5.js";import{I as K,M as ze,N as Be,f as Ve,u as He}from"./debug-2pVES-2G.js";import{a as Ue,d as We}from"./config-Bio2EjUK.js";import{o as Ge,s as Ke}from"./log-L1kqxa_P.js";import{n as q}from"./analytics-COpjZpvd.js";import{n as qe,r as J}from"./startupProfiler-B9Qv2QGH.js";import{X as Je,Y as Ye}from"./model-Dd3x121y.js";import{ln as Y,pn as Xe}from"./prompt-BnDapYGL.js";import{a as Ze,r as Qe}from"./projectOnboardingState-D-_ijZnG.js";import{j as $e,k as X}from"./sessionTracing-5a7HDF4e.js";import{i as et,n as tt}from"./appleTerminalBackup-CN8kS74J.js";import{c as nt,t as rt}from"./nativeInstaller-DMkZdsof.js";import{l as Z,s as it}from"./logoUtils-qNuBc2nI.js";import{i as at,r as ot}from"./runtimeObserver-DT5P2_XL.js";import{t as st}from"./sinks-CV0SWuZW.js";import{writeFile as Q}from"fs/promises";r(),o(),g(),Re(),p(),Ge(),f(),u(),We(),z(),xe(),fe(),R(),Fe(),T(),ge(),Te(),t(),Xe(),ue(),s(),j(),Ve(),C(),x(),Se(),Ye(),B(),q(),me(),I(),_(),K();function ct(){return!1}function lt(){return{}}var $;function ut(e,t){let n=0,r=t==null;for(let i of e){if(!r){i.uuid===t&&(r=!0);continue}if(i.type===`assistant`){let e=i.message.content;Array.isArray(e)&&(n+=c(e,e=>e.type===`tool_use`))}}return n}function dt(e){let t=V(e);if(!he()){if(!P(t))return!1;je()}let n=D(t),r=ut(e,$)>=M(),i=W(e);if(n&&r||n&&!i){let t=e[e.length-1];return t?.uuid&&($=t.uuid),!0}return!1}async function ft(e){let t=He(),n=Ce();await t.mkdir(n,{mode:448});let r=ce();try{await Q(r,``,{encoding:`utf-8`,mode:384,flag:`wx`}),await Q(r,await De(),{encoding:`utf-8`,mode:384})}catch(e){if(Be(e)!==`EEXIST`)throw e}e.readFileState.delete(r);let i=await Le.call({file_path:r},e),a=``,o=i.data;return o.type===`text`&&(a=o.file.content),a.length,{memoryPath:r,currentMemory:a}}var pt=e(()=>{let e=lt();Oe({minimumMessageTokensToInit:e.minimumMessageTokensToInit&&e.minimumMessageTokensToInit>0?e.minimumMessageTokensToInit:b.minimumMessageTokensToInit,minimumTokensBetweenUpdate:e.minimumTokensBetweenUpdate&&e.minimumTokensBetweenUpdate>0?e.minimumTokensBetweenUpdate:b.minimumTokensBetweenUpdate,toolCallsBetweenUpdates:e.toolCallsBetweenUpdates&&e.toolCallsBetweenUpdates>0?e.toolCallsBetweenUpdates:b.toolCallsBetweenUpdates})}),mt=Je(async e=>{let{messages:t,toolUseContext:n,querySource:r}=e;if(r!==`repl_main_thread`||!ct()||(pt(),!dt(t)))return;Ee();let i=A(n),{memoryPath:a,currentMemory:o}=await ft(i);await S({promptMessages:[v({content:await ye(o,a)})],cacheSafeParams:le(e),canUseTool:gt(a),querySource:`session_memory`,forkLabel:`session_memory`,overrides:{readFileState:i.readFileState}});let s=t[t.length-1],c=s?Pe(s):void 0,l=N();c?.input_tokens,c?.output_tokens,c?.cache_read_input_tokens,c?.cache_creation_input_tokens,l.minimumMessageTokensToInit,l.minimumTokensBetweenUpdate,l.toolCallsBetweenUpdates,be(V(t)),_t(t),Ne()});function ht(){Me()&&O(mt)}function gt(e){return async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${Y} on ${e} is allowed`,decisionReason:{type:`other`,reason:`only ${Y} on ${e} is allowed`}}}}function _t(e){if(!W(e)){let t=e[e.length-1];t?.uuid&&L(t.uuid)}}q(),at(),et(),we(),$e(),K(),Z(),rt(),Qe(),qe(),k();async function vt(e,t,r,o,s,c,u,f){d(`info`,`setup_started`);let p=process.version.match(/^v(\d+)\./)?.[1];if((!p||parseInt(p,10)<18)&&(console.error(a.bold.red(`Error: Work Mate requires Node.js version 18 or higher.`)),process.exit(1)),u&&h(de(u)),!m())try{let e=await tt();e.status===`restored`?console.log(a.yellow(`Detected an interrupted Terminal.app setup. Your original settings have been restored. You may need to restart Terminal.app for the changes to take effect.`)):e.status===`failed`&&console.error(a.red(`Failed to restore Terminal.app settings. Please manually restore your original settings with: defaults import com.apple.Terminal ${e.backupPath}.`))}catch(e){Ke(e)}U(e);let g=Date.now();if(se(),d(`info`,`setup_hooks_captured`,{duration_ms:Date.now()-g}),E(e),o){let t=Ae(),n=await ee();!t&&!n&&(process.stderr.write(a.red(`Error: Can only use --worktree in a git repository, but ${a.bold(e)} is not a git repository. Configure a WorktreeCreate hook in settings.json to use --worktree with other VCS systems.\n`)),process.exit(1));let r=f?`pr-${f}`:s??ke(),i;if(n){let e=l(G());e||(process.stderr.write(a.red(`Error: Could not determine the main git repository root.
|
|
2
|
-
`)),process.exit(1)),e!==(ne(G())??G())&&(d(`info`,`worktree_resolved_to_main_repo`),process.chdir(e),U(e)),i=c?H(e,y(r)):void 0}else i=c?H(G(),y(r)):void 0;let o;try{o=await _e(oe(),r,i,f?{prNumber:f}:void 0)}catch(e){process.stderr.write(a.red(`Error creating worktree: ${ze(e)}\n`)),process.exit(1)}if(c&&i){let e=await ve(i,o.worktreePath);e.created?console.log(a.green(`Created tmux session: ${a.bold(i)}\nTo attach: ${a.bold(`tmux attach -t ${i}`)}`)):console.error(a.yellow(`Warning: Failed to create tmux session: ${e.error}`))}process.chdir(o.worktreePath),U(o.worktreePath),ie(G()),re(G()),F(o),Ie(),w()}d(`info`,`setup_background_jobs_starting`),i()||(ht(),ot()),nt(),d(`info`,`setup_background_jobs_launched`),J(`setup_before_prefetch`),d(`info`,`setup_prefetch_starting`);let _=m()&&n(process.env.WORKMATE_SYNC_PLUGIN_INSTALL)||i();if(_||pe(ae()),import(`./loadPluginHooks-BIfM53-_.js`).then(e=>{_||(e.loadPluginHooks(),e.setupPluginHookHotReload())}),i()||import(`./sessionFileAccessHooks-BqQ58T7e.js`).then(e=>e.registerSessionFileAccessHooks()),st(),J(`setup_after_prefetch`),!i()&&Ze()&&await it(),t===`bypassPermissions`||r){if(process.platform!==`win32`&&typeof process.getuid==`function`&&process.getuid()===0&&process.env.IS_SANDBOX!==`1`&&!n(process.env.WORKMATE_BUBBLEWRAP))if(process.stdin.isTTY){console.error(a.bold.red(`WARNING: Running as root/sudo with bypass permissions mode is dangerous.`)),console.error(a.yellow(`Bypass mode skips ALL permission checks. Combined with root, any command (rm -rf /, chmod, dd) executes without review.`));let e=(await import(`readline`)).createInterface({input:process.stdin,output:process.stdout}),t=await new Promise(t=>{e.question(`
|
|
3
|
-
I understand the risks. Continue? [y/N] `,t)});e.close(),t.trim().toLowerCase()!==`y`&&(console.error(`Aborted.`),process.exit(1))}else console.error(`--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons`),process.exit(1);if(process.env.WORKMATE_ENTRYPOINT!==`local-agent`&&process.env.WORKMATE_ENTRYPOINT!==`claude-desktop`){let[e,t]=await Promise.all([X.getIsDocker(),te.hasInternetAccess()]),n=X.getIsBubblewrapSandbox(),r=process.env.IS_SANDBOX===`1`;(!(e||n||r)||t)&&(console.error(`--dangerously-skip-permissions can only be used in Docker/sandbox containers with no internet access but got Docker: ${e}, Bubblewrap: ${n}, IS_SANDBOX: ${r}, hasInternet: ${t}`),process.exit(1))}}let v=Ue();v.lastCost!==void 0&&v.lastDuration!==void 0&&(v.lastCost,v.lastAPIDuration,v.lastToolDuration,v.lastDuration,v.lastLinesAdded,v.lastLinesRemoved,v.lastTotalInputTokens,v.lastTotalOutputTokens,v.lastTotalCacheCreationInputTokens,v.lastTotalCacheReadInputTokens,v.lastFpsAverage,v.lastFpsLow1Pct,v.lastSessionId,{...v.lastSessionMetrics})}export{vt as setup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-CV0SWuZW.js";export{e as initSinks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gn as e,Hn as t,Kn as n,Pt as r,Tn as i,U as a,at as o,h as s,vn as c,yn as l}from"./state-CXY-q5gr.js";import{Cg as ee,Ci as te,Dm as ne,Fy as re,Gg as u,Gi as ie,In as ae,Kg as oe,Mi as se,Nt as ce,Om as le,Ot as d,Py as f,Rr as p,Si as m,St as h,Ui as g,Vi as ue,Wi as de,Xr as fe,Xs as pe,Yr as me,ag as he,ai as _,bb as ge,cw as _e,dn as v,dy as y,ec as b,fy as x,gr as S,ky as C,mn as w,ni as T,ns as E,ph as D,rg as O,sw as k,ts as A,wg as j,wy as M,xb as N,yt as P}from"./loadAgentsDir-bmpKLPdG.js";import{n as F,t as I}from"./cwd-DrEEb4f5.js";import{$ as ve,c as L,et as ye,f as be,i as R,u as xe}from"./debug-2pVES-2G.js";import{n as z}from"./analytics-COpjZpvd.js";import{f as Se,v as Ce}from"./model-Dd3x121y.js";import{Gt as we}from"./prompt-BnDapYGL.js";import{S as Te,x as Ee}from"./sleep-xKMbXTJe.js";import*as B from"path";import{dirname as De}from"path";r(),oe(),y(),we(),j(),C(),D(),pe(),F(),R(),he(),Se(),_e(),ge(),S(),f(),le(),h();function Oe(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.type!==`assistant`)continue;let r=n.message.content.find(e=>e.type===`tool_use`&&e.name===`TodoWrite`);if(r?.type!==`tool_use`)continue;let i=r.input;if(typeof i!=`object`||!i)return[];let a=ne().safeParse(i.todos);return a.success?a.data:[]}return[]}function ke(e,t){if(e.fileHistorySnapshots&&e.fileHistorySnapshots.length>0&&O(e.fileHistorySnapshots,e=>{t(t=>({...t,fileHistory:e}))}),!re()&&e.messages&&e.messages.length>0){let n=Oe(e.messages);if(n.length>0){let e=o();t(t=>({...t,todos:{...t.todos,[e]:n}}))}}}function V(e,t){if(!(!e&&!t))return{name:e??``,color:t==="default"?void 0:t}}function H(e,t,n){if(t)return{agentDefinition:t,agentType:void 0};if(!e)return l(void 0),{agentDefinition:void 0,agentType:void 0};let r=n.activeAgents.find(t=>t.agentType===e);return r?(l(r.agentType),!a()&&r.model&&r.model!==`inherit`&&c(Ce(r.model)),{agentDefinition:r,agentType:r.agentType}):(L(`Resumed session had agent "${e}" but it is no longer available. Using default behavior.`),l(void 0),{agentDefinition:void 0,agentType:void 0})}function U(e){let t=P();if(t){_(t);return}if(e){try{process.chdir(e.worktreePath)}catch{_(null);return}N(e.worktreePath),i(I()),d(e),M(),u(),k.cache.clear?.()}}function Ae(){let e=P();if(e){d(null),M(),u(),k.cache.clear?.();try{process.chdir(e.originalCwd)}catch{return}N(e.originalCwd),i(I())}}async function je(e,n,r){if(n.forkSession)e.contentReplacements?.length&&await p(e.contentReplacements);else{let r=n.sessionIdOverride??e.sessionId;r&&(t(ee(r),n.transcriptPath?De(n.transcriptPath):null),await me(),x(r))}fe(n.forkSession?{...e,worktreeSession:void 0}:e),n.forkSession||(U(e.worktreeSession),ae());let{agentDefinition:i,agentType:a}=H(e.agentSetting,r.mainThreadAgentDefinition,r.agentDefinitions);T(`normal`),n.includeAttribution;let o=V(e.agentName,e.agentColor);b(e.agentName);let s=r.agentDefinitions;return{messages:e.messages,fileHistorySnapshots:e.fileHistorySnapshots,contentReplacements:e.contentReplacements,agentName:e.agentName,agentColor:e.agentColor==="default"?void 0:e.agentColor,restoredAgentDef:i,initialState:{...r.initialState,...a&&{agent:a},...o&&{standaloneAgentContext:o},agentDefinitions:s}}}Te(),r(),se(),z(),de(),A(),ve(),R(),be(),w(),n();var Me=1e3,Ne=500,Pe=300,Fe=2e3,Ie=typeof Bun<`u`,W=null,G=null,K=new Set,q=!1,J=!1,Y=!1,X=null,Z=e();async function Le(){if(q||J)return;q=!0,Y||(Y=!0,ie(()=>{m(),Z.emit()}));let e=await ze();e.length!==0&&(L(`Watching for changes in skill/command directories: ${e.join(`, `)}...`),W=Ee.watch(e,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:Me,pollInterval:Ne},ignored:(e,t)=>t&&!t.isFile()&&!t.isDirectory()?!0:e.split(B.sep).some(e=>e===`.git`),ignorePermissionErrors:!0,usePolling:Ie,interval:Fe,atomic:!0}),W.on(`add`,$),W.on(`change`,$),W.on(`unlink`,$),X=ye(async()=>{await Q()}))}function Q(){J=!0,X&&(X(),X=null);let e=Promise.resolve();return W&&(e=W.close(),W=null),G&&(clearTimeout(G),G=null),K.clear(),Z.clear(),e}var Re=Z.subscribe;async function ze(){let e=xe(),t=[],n=g(`userSettings`,`skills`);if(n)try{await e.stat(n),t.push(n)}catch{}let r=g(`userSettings`,`commands`);if(r)try{await e.stat(r),t.push(r)}catch{}let i=g(`projectSettings`,`skills`);if(i)try{let n=B.resolve(i);await e.stat(n),t.push(n)}catch{}let a=g(`projectSettings`,`commands`);if(a)try{let n=B.resolve(a);await e.stat(n),t.push(n)}catch{}for(let n of s()){let r=B.join(n,`.workmate`,`skills`);try{await e.stat(r),t.push(r)}catch{}}return t}function $(e){L(`Detected skill change: ${e}`),Be(e)}function Be(e){K.add(e),G&&clearTimeout(G),G=setTimeout(async()=>{G=null;let e=[...K];if(K.clear(),v(await ce(`skills`,e[0]))){L(`ConfigChange hook blocked skill reload (${e.length} paths)`);return}ue(),te(),E(),Z.emit()},Pe)}var Ve={initialize:Le,dispose:Q,subscribe:Re};export{H as a,je as i,V as n,ke as o,Ae as r,U as s,Ve as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./startupProfiler-B9Qv2QGH.js";e();export{t as profileCheckpoint};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./Settings-CPaqWNdP.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 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Ki as t,qi as n}from"./loadAgentsDir-bmpKLPdG.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,r as t}from"./switcher-rep86o4_.js";t();export{e as restoreActiveProvider};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r}from"./envUtils-QyzA_cFM.js";import{di as i,fi as a,j as o,t as s}from"./src-BX54x08P.js";import{Gr as c,Jt as l,Kr as u,Ur as d,Xt as f,d as p,m,qr as h,qt as g,t as _}from"./settings-D4M13toi.js";import{Pt as v,at as y}from"./state-CXY-q5gr.js";import{$a as b,$h as x,Gv as S,Hv as C,Ya as w,_x as T,ab as E,ag as ee,fo as te,gr as ne,mC as D,ob as O,pC as k,uo as A,vr as j,yx as M}from"./loadAgentsDir-bmpKLPdG.js";import{n as N,t as P}from"./cwd-DrEEb4f5.js";import{c as F,i as I}from"./debug-2pVES-2G.js";import{a as L,d as R,h as z,l as B,m as V,o as H}from"./config-Bio2EjUK.js";import{r as U,t as W}from"./execa-CBhG1doD.js";import{o as G,s as K}from"./log-L1kqxa_P.js";import{i as q,n as J}from"./execFileNoThrow-DXSEj8ZO.js";import{i as Y,o as re}from"./bundledMode-D9omqD3L.js";import{Mt as X,Pt as ie}from"./model-Dd3x121y.js";import{c as ae,i as oe}from"./terminalSetup-xe_P98fY.js";I(),G(),q(),h(),k(),U(),t(),v(),R(),N(),f(),r();async function se(){}e(e=>({deviceId:B(),sessionId:y(),email:void 0,appVersion:`0.0.28`,platform:l(),userType:process.env.USER_TYPE,...n(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}));var ce=e(async()=>{let e=await W(`git config --get user.email`,{shell:!0,reject:!1,cwd:P()});return e.exitCode===0&&e.stdout?e.stdout.trim():void 0});t(),N(),R(),f();var le=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function ue(e){return!le.some(t=>t.test(e))}function de(e,t){let n=[],r=new Set,i=new Map;for(let a=1;n.length<t&&a<=t;a++)for(let o of e){if(n.length>=t)break;if(!ue(o))continue;let e=Math.max(o.lastIndexOf(`/`),o.lastIndexOf(`\\`)),s=e>=0?o.slice(e+1):o;if(!s||r.has(s))continue;let c=e>=0?o.slice(0,e):`.`;(i.get(c)??0)>=a||(n.push(s),r.add(s),i.set(c,(i.get(c)??0)+1))}return n.length>=t?n:[]}async function fe(){if(g.platform===`win32`||!await d())return[];try{let e=await ce(),t=[`log`,`-n`,`1000`,`--pretty=format:`,`--name-only`,`--diff-filter=M`],n=new Map,r=e=>{for(let t of e.split(`
|
|
2
|
-
`)){let e=t.trim();e&&n.set(e,(n.get(e)??0)+1)}};if(e){let{stdout:n}=await J(`git`,[...t,`--author=${e}`],{cwd:P()});r(n)}if(n.size<10){let{stdout:e}=await J(u(),t,{cwd:P()});r(e)}return de(Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e])=>e),5)}catch(e){return K(e),[]}}var pe=10080*60*1e3,me=e(()=>{let e=L(),t=e.exampleFiles?.length?D(e.exampleFiles):`<filepath>`;return`Try "${D([`fix lint errors`,`fix typecheck errors`,`how does ${t} work?`,`refactor ${t}`,`how do I log an error?`,`edit ${t} to...`,`write a test for ${t}`,`create a util logging.py that...`])}"`}),he=e(async()=>{let e=L();Date.now()-(e.exampleFilesGeneratedAt??0)>pe&&(e.exampleFiles=[]),e.exampleFiles?.length||fe().then(e=>{e.length&&V(t=>({...t,exampleFiles:e,exampleFilesGeneratedAt:Date.now()}))})});ie();var ge={"claude-3-opus":{modelName:`Work Mate 3 Opus`,retirementDates:{firstParty:`January 5, 2026`,bedrock:`January 15, 2026`,vertex:`January 5, 2026`,foundry:`January 5, 2026`}},"claude-3-7-sonnet":{modelName:`Work Mate 3.7 Sonnet`,retirementDates:{firstParty:`February 19, 2026`,bedrock:`April 28, 2026`,vertex:`May 11, 2026`,foundry:`February 19, 2026`}},"claude-3-5-haiku":{modelName:`Work Mate 3.5 Haiku`,retirementDates:{firstParty:`February 19, 2026`,bedrock:null,vertex:null,foundry:null}}};function _e(e){let t=e.toLowerCase(),n=X();for(let[e,r]of Object.entries(ge)){let i=r.retirementDates[n];if(!(!t.includes(e)||!i))return{isDeprecated:!0,modelName:r.modelName,retirementDate:i}}return{isDeprecated:!1}}function ve(e){if(!e)return null;let t=_e(e);return t.isDeprecated?`⚠ ${t.modelName} will be retired on ${t.retirementDate}. Consider switching to a newer model.`:null}a(),s(),re(),m(),M(),O(),S(),ee(),A(),w(),ne(),oe(),R();function ye(e){let t=H().numStartups;z(n=>{let r=n.tipsHistory??{};return r[e]===t?n:{...n,tipsHistory:{...r,[e]:t}}})}function Z(e){let t=H(),n=t.tipsHistory?.[e];return n?t.numStartups-n:1/0}R(),f(),h();var Q;async function be(){return Q===void 0&&(Q=T in await te()),Q}async function $(e,t,n){if(!await be()||b(`${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&&C(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 H().numStartups<10}},{id:`plan-mode-for-complex-tasks`,content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${E(`chat:cycleMode`,`Chat`,`shift+tab`)} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let e=H();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=H(),t=p(),n=!!e.lastPlanModeUse,r=!!t?.permissions?.defaultMode;return n&&!r}catch(e){return F(`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=H();return await c()<=1&&e.numStartups>50}catch{return!1}}},{id:`terminal-setup`,content:async()=>g.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=H();return g.terminal===`Apple_Terminal`?!e.optionAsMetaKeyInstalled:!e.shiftEnterKeyBindingInstalled}},{id:`shift-enter`,content:async()=>g.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=H();return!!((g.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)&&e.numStartups>3)}},{id:`shift-enter-setup`,content:async()=>g.terminal===`Apple_Terminal`?`Run /terminal-setup to enable Option+Enter for new lines`:`Run /terminal-setup to enable Shift+Enter for new lines`,cooldownSessions:10,async isRelevant(){if(!ae())return!1;let e=H();return!(g.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 H().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()=>Y()===`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()=>p().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 H().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 H().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()=>!g.isSSH()},{id:`paste-images-mac`,content:async()=>`Paste images into Work Mate using control+v (not cmd+v!)`,cooldownSessions:10,isRelevant:async()=>Y()===`macos`},{id:`double-esc`,content:async()=>`Double-tap esc to rewind the conversation to a previous point in time`,cooldownSessions:10,isRelevant:async()=>!x()},{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()=>x()},{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()=>j()&&H().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 H().numStartups>10}},{id:`shift-tab`,content:async()=>`Hit ${E(`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 ${E(`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 H().numStartups>5}},{id:`agent-flag`,content:async()=>`Use --agent <agent_name> to directly start a conversation with a subagent`,cooldownSessions:15,async isRelevant(){return H().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@${T}`)}`,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@${T}`)}`,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=_().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=_().spinnerTipsOverride,n=Ce();if(t?.excludeDefault&&n.length>0)return n;let r=[...xe,...Se],i=await Promise.all(r.map(t=>t.isRelevant?.(e)??Promise.resolve(!0)));return[...r.filter((e,t)=>i[t]).filter(e=>Z(e.id)>=e.cooldownSessions),...n]}export{me as a,ve as i,Z as n,he as o,ye as r,se as s,we as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$d as t,dC as n,ef as r,fC as i}from"./loadAgentsDir-bmpKLPdG.js";import{n as a,t as o}from"./partition-CKgWl7p4.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 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Bh as t,zh as n}from"./loadAgentsDir-bmpKLPdG.js";import{f as r,i,v as a}from"./model-Dd3x121y.js";function o(){let e=t(e=>e.mainLoopModel);return a(t(e=>e.mainLoopModelForSession)??e??i())}var s=e((()=>{n(),r()}));export{o as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{ai as t}from"./src-BX54x08P.js";import{$n as n,Qn as r,di as i,ui as a}from"./settings-D4M13toi.js";import{Bh as o,Fa as s,Go as c,Hh as l,Hm as u,Km as d,Ko as f,Pa as p,Wm as m,Xo as h,Zo as g,_f as _,c_ as v,qm as y,s_ as b,vf as x,zh as S}from"./loadAgentsDir-bmpKLPdG.js";import{I as C,V as w,c as T,i as E}from"./debug-2pVES-2G.js";import{o as D,s as O}from"./log-L1kqxa_P.js";import{n as k}from"./analytics-COpjZpvd.js";import{n as A,t as j}from"./notifications-BwS1XsnZ.js";import{n as M,r as N}from"./pluginFlagging-B2ZX5_oB.js";import{t as P}from"./pluginBlocklist-ByRQaVPu.js";var F=e(t(),1);j(),k(),u(),S(),n(),E(),a(),C(),D(),h(),f(),b(),d(),_(),N(),p();function I({enabled:e=!0}={}){let t=l(),n=o(e=>e.plugins.needsRefresh),{addNotification:a}=A(),u=(0,F.useCallback)(async()=>{try{let{enabled:e,disabled:n,errors:i}=await s();await P();let o=M();Object.keys(o).length>0&&a({key:`plugin-delisted-flagged`,text:`Plugins flagged. Check /plugins`,color:`warning`,priority:`high`});let l=[],u=[];try{l=await c()}catch(e){let t=e instanceof Error?e.message:String(e);i.push({type:`generic-error`,source:`plugin-commands`,error:`Failed to load plugin commands: ${t}`})}try{u=await g()}catch(e){let t=e instanceof Error?e.message:String(e);i.push({type:`generic-error`,source:`plugin-agents`,error:`Failed to load plugin agents: ${t}`})}try{await v()}catch(e){let t=e instanceof Error?e.message:String(e);i.push({type:`generic-error`,source:`plugin-hooks`,error:`Failed to load plugin hooks: ${t}`})}let d=(await Promise.all(e.map(async e=>{if(e.mcpServers)return Object.keys(e.mcpServers).length;let t=await x(e,i);return t&&(e.mcpServers=t),t?Object.keys(t).length:0}))).reduce((e,t)=>e+t,0),f=(await Promise.all(e.map(async e=>{if(e.lspServers)return Object.keys(e.lspServers).length;let t=await y(e,i);return t&&(e.lspServers=t),t?Object.keys(t).length:0}))).reduce((e,t)=>e+t,0);m(),t(t=>{let r=t.plugins.errors.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),a=new Set(i.map(e=>e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`)),o=[...r.filter(e=>{let t=e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`;return!a.has(t)}),...i];return{...t,plugins:{...t.plugins,enabled:e,disabled:n,commands:l,errors:o}}}),T(`Loaded plugins - Enabled: ${e.length}, Disabled: ${n.length}, Commands: ${l.length}, Agents: ${u.length}, Errors: ${i.length}`);let p=e.reduce((e,t)=>t.hooksConfig?e+Object.values(t.hooksConfig).reduce((e,t)=>e+(t?.reduce((e,t)=>e+t.hooks.length,0)??0),0):e,0);return{enabled_count:e.length,disabled_count:n.length,inline_count:r(e,e=>e.source.endsWith(`@inline`)),marketplace_count:r(e,e=>!e.source.endsWith(`@inline`)),error_count:i.length,skill_count:l.length,agent_count:u.length,hook_count:p,mcp_count:d,lsp_count:f}}catch(e){let n=w(e);return O(n),T(`Error loading plugins: ${e}`),t(e=>{let t=e.plugins.errors.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),r={type:`generic-error`,source:`plugin-system`,error:n.message};return{...e,plugins:{...e.plugins,enabled:[],disabled:[],commands:[],errors:[...t,r]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[t,a]);(0,F.useEffect)(()=>{e&&u().then(e=>{let{ant_enabled_names:t,...n}=e,r={...n,has_custom_plugin_cache_dir:!!process.env.WORKMATE_PLUGIN_CACHE_DIR};({...r,...t!==void 0&&{enabled_names:t}}),i(`info`,`tengu_plugins_loaded`,r)})},[u,e]),(0,F.useEffect)(()=>{!e||!n||a({key:`plugin-reload-pending`,text:`Plugins changed. Run /reload-plugins to activate.`,color:`suggestion`,priority:`low`})},[e,n,a])}export{I as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{ai as n}from"./src-BX54x08P.js";import{Cc as r,Dc as i}from"./loadAgentsDir-bmpKLPdG.js";import{n as a,t as o}from"./toolPool-BGfiNj6h.js";function s(e,t,n){return(0,c.useMemo)(()=>a(e,r(n,t),n.mode),[e,t,n,!1,!1])}var c,l=e((()=>{c=t(n(),1),i(),o()}));export{s as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{ai as n}from"./src-BX54x08P.js";import{Gh as r,Kh as i}from"./loadAgentsDir-bmpKLPdG.js";import{n as a,t as o}from"./notifications-BwS1XsnZ.js";import{n as s,t as c}from"./allErrors-Dhnf6rqg.js";function l(){let{addNotification:e,removeNotification:t}=a(),[n,r]=(0,u.useState)(()=>{let{errors:e}=c();return e});return i((0,u.useCallback)(()=>{let{errors:e}=c();r(e)},[])),(0,u.useEffect)(()=>{if(n.length>0){let t=`Found ${n.length} settings ${n.length===1?`issue`:`issues`} · /doctor for details`;e({key:d,text:t,color:`warning`,priority:`high`,timeoutMs:6e4})}else t(d)},[n,e,t]),n}var u,d,f=e((()=>{u=t(n(),1),o(),s(),r(),d=`settings-errors`}));export{l as n,f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./axios-DaWTGg7G.js";import{Ni as r,Wi as i,dt as a,gt as o,ht as s,mt as c,pt as l}from"./settings-D4M13toi.js";import{_w as u,bw as d,cx as f,gx as p,hx as m,lx as ee,mx as te,vw as h,xw as g}from"./loadAgentsDir-bmpKLPdG.js";import{C as _,I as v,M as y,N as b,R as x,S,c as C,f as w,i as T,u as E,x as D}from"./debug-2pVES-2G.js";import{o as ne,s as O}from"./log-L1kqxa_P.js";import{homedir as re}from"os";import*as k from"path";import{join as ie,resolve as ae}from"path";import{randomBytes as oe}from"crypto";import{readFile as A,readdir as j,rename as M,stat as N,unlink as P,writeFile as F}from"fs/promises";function I(){return ie(f(),U)}async function L(){let e=I();try{let t=S(await A(e,{encoding:`utf-8`}));if(typeof t!=`object`||!t||!(`version`in t)||!(`fetchedAt`in t)||!(`counts`in t))return C(`Install counts cache has invalid structure`),null;let n=t;if(n.version!==H)return C(`Install counts cache version mismatch (got ${n.version}, expected ${H})`),null;if(typeof n.fetchedAt!=`string`||!Array.isArray(n.counts))return C(`Install counts cache has invalid structure`),null;let r=new Date(n.fetchedAt).getTime();return Number.isNaN(r)?(C(`Install counts cache has invalid fetchedAt timestamp`),null):n.counts.every(e=>typeof e==`object`&&!!e&&typeof e.plugin==`string`&&typeof e.unique_installs==`number`)?Date.now()-r>G?(C(`Install counts cache is stale (>24h old)`),null):{version:n.version,fetchedAt:n.fetchedAt,counts:n.counts}:(C(`Install counts cache has malformed entries`),null)}catch(e){return b(e)!==`ENOENT`&&C(`Failed to load install counts cache: ${y(e)}`),null}}async function R(e){let t=I(),n=`${t}.${oe(8).toString(`hex`)}.tmp`;try{let r=f();await E().mkdir(r),await F(n,_(e,null,2),{encoding:`utf-8`,mode:384}),await M(n,t),C(`Install counts cache saved successfully`)}catch(e){O(e);try{await P(n)}catch{}}}async function z(){C(`Fetching install counts from ${W}`);let e=performance.now();try{let n=await t.get(W,{timeout:1e4});if(!n.data?.plugins||!Array.isArray(n.data.plugins))throw Error(`Invalid response format from install counts API`);return p(`install_counts`,W,`success`,performance.now()-e),n.data.plugins}catch(t){throw p(`install_counts`,W,`failure`,performance.now()-e,te(t)),t}}async function B(){let e=await L();if(e){C(`Using cached install counts`),p(`install_counts`,W,`cache_hit`,0);let t=new Map;for(let n of e.counts)t.set(n.plugin,n.unique_installs);return t}try{let e=await z();await R({version:H,fetchedAt:new Date().toISOString(),counts:e});let t=new Map;for(let n of e)t.set(n.plugin,n.unique_installs);return t}catch(e){return O(e),C(`Failed to fetch install counts: ${y(e)}`),null}}function V(e){if(e<1e3)return String(e);if(e<1e6){let t=(e/1e3).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}K`:`${t}K`}let t=(e/1e6).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}M`:`${t}M`}var H,U,W,G,K=e((()=>{n(),T(),v(),w(),ne(),D(),m(),ee(),H=1,U=`install-counts-cache.json`,W=`https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json`,G=1440*60*1e3}));async function se(e){let t=e.trim(),n=E(),r=t.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(r?.[1]){let e=r[1],t=r[3];return t?{source:`git`,url:e,ref:t}:{source:`git`,url:e}}if(t.startsWith(`http://`)||t.startsWith(`https://`)){let e=t.match(/^([^#]+)(#(.+))?$/),n=e?.[1]||t,r=e?.[3];if(n.endsWith(`.git`)||n.includes(`/_git/`))return r?{source:`git`,url:n,ref:r}:{source:`git`,url:n};let i;try{i=new URL(n)}catch{return{source:`url`,url:n}}if((i.hostname===`github.com`||i.hostname===`www.github.com`)&&i.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let e=n.endsWith(`.git`)?n:`${n}.git`;return r?{source:`git`,url:e,ref:r}:{source:`git`,url:e}}return{source:`url`,url:n}}let i=process.platform===`win32`&&(t.startsWith(`.\\`)||t.startsWith(`..\\`)||/^[a-zA-Z]:[/\\]/.test(t));if(t.startsWith(`./`)||t.startsWith(`../`)||t.startsWith(`/`)||t.startsWith(`~`)||i){let e=ae(t.startsWith(`~`)?t.replace(/^~/,re()):t),r;try{r=await n.stat(e)}catch(t){let n=b(t);return{error:n===`ENOENT`?`Path does not exist: ${e}`:`Cannot access path: ${e} (${n??t})`}}return r.isFile()?e.endsWith(`.json`)?{source:`file`,path:e}:{error:`File path must point to a .json file (marketplace.json), but got: ${e}`}:r.isDirectory()?{source:`directory`,path:e}:{error:`Path is neither a file nor a directory: ${e}`}}if(t.includes(`/`)&&!t.startsWith(`@`)){if(t.includes(`:`))return null;let e=t.match(/^([^#@]+)(?:[#@](.+))?$/),n=e?.[1]||t,r=e?.[2];return r?{source:`github`,repo:n,ref:r}:{source:`github`,repo:n}}return null}var ce=e((()=>{v(),w()}));function le(e){let t=k.basename(e),n=k.basename(k.dirname(e));return t===`plugin.json`?`plugin`:t===`marketplace.json`?`marketplace`:n===`.claude-plugin`?`plugin`:`unknown`}function q(e){return e.issues.map(e=>({path:e.path.join(`.`)||`root`,message:e.message,code:e.code}))}function J(e,t,n,r){e.includes(`..`)&&n.push({path:t,message:r?`Path contains "..": ${e}. ${r}`:`Path contains ".." which could be a path traversal attempt: ${e}`})}function ue(e){let t=e.replace(/^(\.\.\/)+/,``);return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${t===e?`./plugins/my-plugin`:`./${t}`}" instead of "${e}".`}async function Y(e){let t=[],n=[],r=k.resolve(e),i;try{i=await A(r,{encoding:`utf-8`})}catch(e){let t=b(e),n;return n=t===`ENOENT`?`File not found: ${r}`:t===`EISDIR`?`Path is not a file: ${r}`:`Failed to read file: ${y(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:r,fileType:`plugin`}}let a;try{a=S(i)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(e)}`}],warnings:[],filePath:r,fileType:`plugin`}}if(a&&typeof a==`object`){let e=a;e.commands&&(Array.isArray(e.commands)?e.commands:[e.commands]).forEach((e,n)=>{typeof e==`string`&&J(e,`commands[${n}]`,t)}),e.agents&&(Array.isArray(e.agents)?e.agents:[e.agents]).forEach((e,n)=>{typeof e==`string`&&J(e,`agents[${n}]`,t)}),e.skills&&(Array.isArray(e.skills)?e.skills:[e.skills]).forEach((e,n)=>{typeof e==`string`&&J(e,`skills[${n}]`,t)})}let o=a;if(typeof a==`object`&&a){let e=a,t=Object.keys(e).filter(e=>$.has(e));if(t.length>0){let r={...e};for(let e of t)delete r[e],n.push({path:e,message:`Field '${e}' belongs in the marketplace entry (marketplace.json), not plugin.json. It's harmless here but unused — Work Mate ignores it at load time.`});o=r}}let s=l().strict().safeParse(o);if(s.success||t.push(...q(s.error)),s.success){let e=s.data;/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e.name)||n.push({path:`name`,message:`Plugin name "${e.name}" is not kebab-case. Work Mate accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`}),e.version||n.push({path:`version`,message:`No version specified. Consider adding a version following semver (e.g., "1.0.0")`}),e.description||n.push({path:`description`,message:`No description provided. Adding a description helps users understand what your plugin does`}),e.author||n.push({path:`author`,message:`No author information provided. Consider adding author details for plugin attribution`})}return{success:t.length===0,errors:t,warnings:n,filePath:r,fileType:`plugin`}}async function X(e){let t=[],n=[],r=k.resolve(e),a;try{a=await A(r,{encoding:`utf-8`})}catch(e){let t=b(e),n;return n=t===`ENOENT`?`File not found: ${r}`:t===`EISDIR`?`Path is not a file: ${r}`:`Failed to read file: ${y(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:r,fileType:`marketplace`}}let o;try{o=S(a)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(e)}`}],warnings:[],filePath:r,fileType:`marketplace`}}if(o&&typeof o==`object`){let e=o;Array.isArray(e.plugins)&&e.plugins.forEach((e,n)=>{if(e&&typeof e==`object`&&`source`in e){let r=e.source;typeof r==`string`&&J(r,`plugins[${n}].source`,t,ue(r)),r&&typeof r==`object`&&`path`in r&&typeof r.path==`string`&&J(r.path,`plugins[${n}].source.path`,t)}})}let l=s().extend({plugins:i(c().strict())}).strict().safeParse(o);if(l.success||t.push(...q(l.error)),l.success){let e=l.data;if((!e.plugins||e.plugins.length===0)&&n.push({path:`plugins`,message:`Marketplace has no plugins defined`}),e.plugins){e.plugins.forEach((n,r)=>{e.plugins.filter(e=>e.name===n.name).length>1&&t.push({path:`plugins[${r}].name`,message:`Duplicate plugin name "${n.name}" found in marketplace`})});let i=k.dirname(r),a=k.basename(i)===`.claude-plugin`?k.dirname(i):i;for(let[t,r]of e.plugins.entries()){if(!r.version||typeof r.source!=`string`||!r.source.startsWith(`./`))continue;let e=k.join(a,r.source,`.claude-plugin`,`plugin.json`),i;try{let t=S(await A(e,{encoding:`utf-8`}));typeof t.version==`string`&&(i=t.version)}catch{continue}i&&i!==r.version&&n.push({path:`plugins[${t}].version`,message:`Entry declares version "${r.version}" but ${r.source}/.claude-plugin/plugin.json says "${i}". At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. Update this entry to "${i}" to match.`})}}e.metadata?.description||n.push({path:`metadata.description`,message:`No marketplace description provided. Adding a description helps users understand what this marketplace offers`})}return{success:t.length===0,errors:t,warnings:n,filePath:r,fileType:`marketplace`}}function de(e,t,n){let r=[],i=[],a=t.match(u);if(!a)return i.push({path:`frontmatter`,message:`No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata.`}),{success:!0,errors:r,warnings:i,filePath:e,fileType:n};let o=a[1]||``,s;try{s=g(o)}catch(t){return r.push({path:`frontmatter`,message:`YAML frontmatter failed to parse: ${y(t)}. At runtime this ${n} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n}}if(typeof s!=`object`||!s||Array.isArray(s))return r.push({path:`frontmatter`,message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(s)?`an array`:s===null?`null`:typeof s}.`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n};let c=s;if(c.description!==void 0){let e=c.description;typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`&&e!==null&&r.push({path:`description`,message:`description must be a string, got ${Array.isArray(e)?`array`:typeof e}. At runtime this value is dropped.`})}else i.push({path:`description`,message:`No description in frontmatter. A description helps users and Work Mate understand when to use this ${n}.`});c.name!==void 0&&c.name!==null&&typeof c.name!=`string`&&r.push({path:`name`,message:`name must be a string, got ${typeof c.name}.`});let l=c[`allowed-tools`];l!=null&&(typeof l!=`string`&&!Array.isArray(l)?r.push({path:`allowed-tools`,message:`allowed-tools must be a string or array of strings, got ${typeof l}.`}):Array.isArray(l)&&l.some(e=>typeof e!=`string`)&&r.push({path:`allowed-tools`,message:`allowed-tools array must contain only strings.`}));let d=c.shell;if(d!=null)if(typeof d!=`string`)r.push({path:`shell`,message:`shell must be a string, got ${typeof d}.`});else{let e=d.trim().toLowerCase();e!==`bash`&&e!==`powershell`&&r.push({path:`shell`,message:`shell must be 'bash' or 'powershell', got '${d}'.`})}return{success:r.length===0,errors:r,warnings:i,filePath:e,fileType:n}}async function Z(e){let t;try{t=await A(e,{encoding:`utf-8`})}catch(t){return b(t)===`ENOENT`?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:[{path:`file`,message:`Failed to read file: ${y(t)}`}],warnings:[],filePath:e,fileType:`hooks`}}let n;try{n=S(t)}catch(t){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(t)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:e,fileType:`hooks`}}let r=a().safeParse(n);return r.success?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:q(r.error),warnings:[],filePath:e,fileType:`hooks`}}async function Q(e,t){let n;try{n=await j(e,{withFileTypes:!0})}catch(e){let t=b(e);if(t===`ENOENT`||t===`ENOTDIR`)return[];throw e}if(t)return n.filter(e=>e.isDirectory()).map(t=>k.join(e,t.name,`SKILL.md`));let r=[];for(let t of n){let n=k.join(e,t.name);t.isDirectory()?r.push(...await Q(n,!1)):t.isFile()&&t.name.toLowerCase().endsWith(`.md`)&&r.push(n)}return r}async function fe(e){let t=[],n=[[`skill`,k.join(e,`skills`)],[`agent`,k.join(e,`agents`)],[`command`,k.join(e,`commands`)]];for(let[e,r]of n){let n=await Q(r,e===`skill`);for(let r of n){let n;try{n=await A(r,{encoding:`utf-8`})}catch(n){if(x(n))continue;t.push({success:!1,errors:[{path:`file`,message:`Failed to read: ${y(n)}`}],warnings:[],filePath:r,fileType:e});continue}let i=de(r,n,e);(i.errors.length>0||i.warnings.length>0)&&t.push(i)}}let r=await Z(k.join(e,`hooks`,`hooks.json`));return(r.errors.length>0||r.warnings.length>0)&&t.push(r),t}async function pe(e){let t=k.resolve(e),n=null;try{n=await N(t)}catch(e){if(!x(e))throw e}if(n?.isDirectory()){let e=await X(k.join(t,`.claude-plugin`,`marketplace.json`));if(e.errors[0]?.code!==`ENOENT`)return e;let n=await Y(k.join(t,`.claude-plugin`,`plugin.json`));return n.errors[0]?.code===`ENOENT`?{success:!1,errors:[{path:`directory`,message:`No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json`}],warnings:[],filePath:t,fileType:`plugin`}:n}switch(le(e)){case`plugin`:return Y(e);case`marketplace`:return X(e);case`unknown`:try{let n=S(await A(t,{encoding:`utf-8`}));if(Array.isArray(n.plugins))return X(e)}catch(e){if(b(e)===`ENOENT`)return{success:!1,errors:[{path:`file`,message:`File not found: ${t}`}],warnings:[],filePath:t,fileType:`plugin`}}return Y(e)}}var $,me=e((()=>{r(),v(),h(),D(),d(),o(),$=new Set([`category`,`source`,`tags`,`strict`,`id`])}));export{se as a,K as c,ce as i,pe as n,V as o,fe as r,B as s,me as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{St as e,_t as t}from"./loadAgentsDir-bmpKLPdG.js";e();export{t as execIntoTmuxWorktree};
|