@readmagic/workmate 0.0.19 → 0.0.20
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-9FcHMKgX.js → AddWorkspaceDirectory-BYNvxNrD.js} +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-BSSz86ER.js +1 -0
- package/dist/chunks/{AgentsMdExternalIncludesDialog-DLnj3JQO.js → AgentsMdExternalIncludesDialog-CMEGV4Md.js} +1 -1
- package/dist/chunks/{App-NkBqbDbC.js → App-W_9d1DjK.js} +1 -1
- package/dist/chunks/{ApproveApiKey-rgB6AsYD.js → ApproveApiKey-Bf1Rb8Ql.js} +1 -1
- package/dist/chunks/ApproveApiKey-wpdvXpFr.js +1 -0
- package/dist/chunks/{BackgroundTasksDialog-CcViruUO.js → BackgroundTasksDialog-lGn1Wj1k.js} +1 -1
- package/dist/chunks/{BypassPermissionsModeDialog-D254L98G.js → BypassPermissionsModeDialog-CjVjyNf8.js} +1 -1
- package/dist/chunks/{DiffDialog-6Srcz3NW.js → DiffDialog-DCpchgp5.js} +1 -1
- package/dist/chunks/Doctor-6SjW91rd.js +1 -0
- package/dist/chunks/{Doctor-DiNxlXfC.js → Doctor-FPYTivHw.js} +1 -1
- package/dist/chunks/{ExitFlow-Bt2De110.js → ExitFlow-Dy8_1D8J.js} +1 -1
- package/dist/chunks/{Grove-DC4jyxeB.js → Grove-Dd6rjs5P.js} +1 -1
- package/dist/chunks/{HybridTransport-DArmWb1V.js → HybridTransport-CJVkWa2u.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-DFiB0Kzc.js → InvalidConfigDialog-Bisj9ic_.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-BHNo2__T.js → InvalidSettingsDialog-DyTPNRQR.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-CdpO2Tj9.js → MCPConnectionManager-DfyoZaiu.js} +1 -1
- package/dist/chunks/{MCPToolListView-Ch4jOk_x.js → MCPToolListView-Dioupv8F.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-D4UQ8Q2e.js → McpParsingWarnings-BUlgpZAF.js} +1 -1
- package/dist/chunks/{MessageSelector-BgsrdJur.js → MessageSelector-D8fylxPg.js} +1 -1
- package/dist/chunks/{Messages-DB1pmDY_.js → Messages-BZDFMYBT.js} +1 -1
- package/dist/chunks/{Onboarding-BnjdTwci.js → Onboarding-BKLomZYo.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-Chg9U-BC.js → PromptInputFooterSuggestions-DCum89fF.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-C0ZSo12s.js → PromptInputHelpMenu-DG2lRqis.js} +1 -1
- package/dist/chunks/{QueryEngine-bKlupZpA.js → QueryEngine-CyGHpX7M.js} +1 -1
- package/dist/chunks/REPL-BDsz8KIx.js +1 -0
- package/dist/chunks/{REPL-Cg8UXYpX.js → REPL-CCBNfZfs.js} +5 -5
- package/dist/chunks/{RemoteSessionManager-CRWOHvKf.js → RemoteSessionManager-BfsOv4K6.js} +1 -1
- package/dist/chunks/{ResumeConversation-Ld7tYLKO.js → ResumeConversation-pC8NLq0F.js} +1 -1
- package/dist/chunks/{SSETransport-pPrlSZNF.js → SSETransport-B3K6eH9I.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-DYoxHo9T.js +1 -0
- package/dist/chunks/{Settings-CsOlPcIW.js → Settings-CKaGmKg2.js} +2 -2
- package/dist/chunks/{TeleportProgress-Di-PMey7.js → TeleportProgress-CkgSp1cs.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-CDv1cbo-.js → TeleportRepoMismatchDialog-DdO_rECq.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-Bmf13tGU.js → TeleportResumeWrapper-BeG4N-2z.js} +1 -1
- package/dist/chunks/{ThemePicker-B3AO3_jA.js → ThemePicker-iD9ufy99.js} +1 -1
- package/dist/chunks/{TrustDialog-C0aiR_LU.js → TrustDialog-qO5OdQt8.js} +1 -1
- package/dist/chunks/{add-dir-w1Ay3861.js → add-dir-C4eSVlZ6.js} +1 -1
- package/dist/chunks/{agentDisplay-D01ZlnVX.js → agentDisplay-BM4QG_RX.js} +1 -1
- package/dist/chunks/{agents-Bxenhf8S.js → agents-BbDBN5l9.js} +1 -1
- package/dist/chunks/{agents-B_hUgPnR.js → agents-D3APE_8d.js} +1 -1
- package/dist/chunks/{allErrors-C_iHQOlK.js → allErrors-BkgB7JNK.js} +1 -1
- package/dist/chunks/api-BHBK9axp.js +1 -0
- package/dist/chunks/{api-C5ULzZny.js → api-DyUWfg3a.js} +1 -1
- package/dist/chunks/{auth-DvcZHXGk.js → auth-0rn1U4Eq.js} +1 -1
- package/dist/chunks/auth-BEoTPSgC.js +1 -0
- package/dist/chunks/auth-BPug7U_u.js +1 -0
- package/dist/chunks/backgroundHousekeeping-D7xAhUaE.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-BGKR5cdA.js → backgroundHousekeeping-km82qEh0.js} +2 -2
- package/dist/chunks/{branch-CqQxCSHG.js → branch-CQ38cx5n.js} +1 -1
- package/dist/chunks/{bridgeConfig-MxsnEEPx.js → bridgeConfig-C5L-7KaP.js} +1 -1
- package/dist/chunks/bridgeConfig-CJMjDoaP.js +1 -0
- package/dist/chunks/{bridgeMessaging-Bx5pkkkx.js → bridgeMessaging-DVC3qj-C.js} +1 -1
- package/dist/chunks/{bridgeStatusUtil-B9EcQksI.js → bridgeStatusUtil-Cex6VowM.js} +1 -1
- package/dist/chunks/{btw-DeznoRrw.js → btw-_P96ffHR.js} +1 -1
- package/dist/chunks/caches-DH-q8Fjf.js +1 -0
- package/dist/chunks/caches-Dq0pJFDP.js +1 -0
- package/dist/chunks/{ccrClient-CimQTd0b.js → ccrClient-DO563xlf.js} +1 -1
- package/dist/chunks/{clear-KvoD-lFN.js → clear-DmqQBNKg.js} +1 -1
- package/dist/chunks/client-C19cqYQS.js +1 -0
- package/dist/chunks/commands-BkpqHY9F.js +1 -0
- package/dist/chunks/{compact-Dgzve3dI.js → compact-DuVIvqMu.js} +1 -1
- package/dist/chunks/config-DMP6-Ccr.js +1 -0
- package/dist/chunks/{context-Dz-bbYCw.js → context-DjgMzIfe.js} +1 -1
- package/dist/chunks/{context-noninteractive-ApbVPU86.js → context-noninteractive-BzDVMnWC.js} +1 -1
- package/dist/chunks/context-noninteractive-DV7bIJCm.js +1 -0
- package/dist/chunks/{conversation-CJ-d0O-U.js → conversation-BBOE_EoE.js} +1 -1
- package/dist/chunks/conversation-WxH5pb2z.js +1 -0
- package/dist/chunks/{createSSHSession-DOz_Ox1_.js → createSSHSession-LVGVXHXL.js} +1 -1
- package/dist/chunks/createSession-BUzna9-E.js +1 -0
- package/dist/chunks/{createSession-yR87Rhiv.js → createSession-Dgwxk1WA.js} +1 -1
- package/dist/chunks/{crossProjectResume-DNnZo3gU.js → crossProjectResume-6B2NYy8a.js} +1 -1
- package/dist/chunks/{datadog-DBgIEaEd.js → datadog-Bc6wkPne.js} +1 -1
- package/dist/chunks/{diff-qOom_T1G.js → diff-DIg66U_d.js} +1 -1
- package/dist/chunks/doctor-BhUmhHQU.js +1 -0
- package/dist/chunks/{entry-EmOA7oWN.js → entry-B-Y-AYeK.js} +1 -1
- package/dist/chunks/{esm-DBMVQDVv.js → esm-CvHtYRrr.js} +1 -1
- package/dist/chunks/{exit-DDrAFCzE.js → exit-CW2eqUrR.js} +1 -1
- package/dist/chunks/{extraUsage-DylXI7Fc.js → extraUsage-CkTon7ib.js} +1 -1
- package/dist/chunks/extractMemories-CfmbvayQ.js +1 -0
- package/dist/chunks/fast-ByahC7Gw.js +1 -0
- package/dist/chunks/{fast-BCkhj9Dq.js → fast-xtIP4u4y.js} +1 -1
- package/dist/chunks/fetchModelList-D9aePIPW.js +1 -0
- package/dist/chunks/{fetchModelList-BbjuFHQT.js → fetchModelList-Dy-x4h3G.js} +1 -1
- package/dist/chunks/{fileSuggestions-Ct7vKEpR.js → fileSuggestions-CFkJktgc.js} +1 -1
- package/dist/chunks/firstPartyEventLogger-Bt9iG9xk.js +1 -0
- package/dist/chunks/{firstPartyEventLogger-CxUuXQhL.js → firstPartyEventLogger-DqGSujCz.js} +2 -2
- package/dist/chunks/{flushGate-BZe_QwEz.js → flushGate-BjKW7PFC.js} +1 -1
- package/dist/chunks/{gemini-8sSwOtEf.js → gemini-NnmxBoEp.js} +1 -1
- package/dist/chunks/{generateSessionName-vT1khubt.js → generateSessionName-EpqGW-T2.js} +1 -1
- package/dist/chunks/{goal-CznQA1n1.js → goal-DbS8yJfB.js} +1 -1
- package/dist/chunks/{grok-cEzUsG-s.js → grok-BxZ4vTDw.js} +1 -1
- package/dist/chunks/{grove--HtQL4QZ.js → grove-CYE1Cfcz.js} +1 -1
- package/dist/chunks/{help-B6A_kDQA.js → help-DatnwM25.js} +1 -1
- package/dist/chunks/{hooks-CN5hLrhi.js → hooks-7iyENdDG.js} +1 -1
- package/dist/chunks/hooks-DjbqtbUV.js +1 -0
- package/dist/chunks/{initReplBridge-BJhmlcVt.js → initReplBridge-BEZW5PEY.js} +1 -1
- package/dist/chunks/{install-DUOtI2Hq.js → install-DJukI-kL.js} +1 -1
- package/dist/chunks/{instrumentation-DpgB3GFx.js → instrumentation-2HH15DPu.js} +3 -3
- package/dist/chunks/{job-DDoX1iFe.js → job-CXz7SLZp.js} +1 -1
- package/dist/chunks/{keybindings-BGTuYfk-.js → keybindings-C9l5il16.js} +1 -1
- package/dist/chunks/{launchLocalMemory-CoWeLNeP.js → launchLocalMemory-BfGenqj1.js} +1 -1
- package/dist/chunks/{launchOnboarding-CTIBGSLV.js → launchOnboarding-DjMmXeQE.js} +1 -1
- package/dist/chunks/{loadAgentsDir-DXOkUcW3.js → loadAgentsDir-DaNpxaO-.js} +587 -612
- package/dist/chunks/loadAgentsDir-DcI-8FQF.js +1 -0
- package/dist/chunks/{loadPluginHooks-DrNVtTBq.js → loadPluginHooks-CGgpcyEC.js} +1 -1
- package/dist/chunks/{localSearch-DnT21UkF.js → localSearch-C2SZ9bGW.js} +1 -1
- package/dist/chunks/localSearch-CTTwYTU1.js +1 -0
- package/dist/chunks/{logoUtils-YwL3izJt.js → logoUtils-CbIqOFrX.js} +1 -1
- package/dist/chunks/{magicDocs-rxv0rR8E.js → magicDocs-CrTwULyJ.js} +1 -1
- package/dist/chunks/{main-BOvY4O6D.js → main-bJXadFi0.js} +10 -10
- package/dist/chunks/{managedEnv-CpgCYISH.js → managedEnv-CUsdYhAI.js} +1 -1
- package/dist/chunks/managedEnv-DXeaUDSK.js +1 -0
- package/dist/chunks/{mappers-DYtq2XVS.js → mappers-_B-s9fNz.js} +1 -1
- package/dist/chunks/{mcp-BoU3TNFs.js → mcp-BbbYzWpy.js} +2 -2
- package/dist/chunks/{mcp-BPvcoKDY.js → mcp-D91sH9a8.js} +1 -1
- package/dist/chunks/{mcp-BfqsHRx0.js → mcp-Dx-zgUgu.js} +1 -1
- package/dist/chunks/{memory-BPKRdkBb.js → memory-BeL7ui9m.js} +1 -1
- package/dist/chunks/{mode-CXpXux2s.js → mode-D695kgLI.js} +1 -1
- package/dist/chunks/model-DX0TtzqX.js +1 -0
- package/dist/chunks/{model-Cxx3suBa.js → model-Do0f476p.js} +1 -1
- package/dist/chunks/{model-CxPYKiW1.js → model-DpcM8dz5.js} +1 -1
- package/dist/chunks/{modelOptions-BqBHEyiR.js → modelOptions-B3nis9cC.js} +1 -1
- package/dist/chunks/{src-l6_O0K-a.js → modifiersNative-BYHdmWw1.js} +1 -1
- package/dist/chunks/modifiersNative-D7nm70eq.js +1 -0
- package/dist/chunks/{nativeInstaller-CaXwRpoR.js → nativeInstaller-CymO8TNe.js} +1 -1
- package/dist/chunks/{omit-DZUxsClb.js → omit-DO61BHZu.js} +1 -1
- package/dist/chunks/{onChangeAppState-qHXqufwy.js → onChangeAppState-vKml_lit.js} +1 -1
- package/dist/chunks/{openai-_FQ9EhuR.js → openai-DdupGVdC.js} +1 -1
- package/dist/chunks/{partition-BgwHlPsO.js → partition-BivH9MBJ.js} +1 -1
- package/dist/chunks/{permissions-Dv5d5Nu3.js → permissions-C9iqR4_N.js} +1 -1
- package/dist/chunks/{pidLock-CEhbTkBE.js → pidLock-DiKz5Tza.js} +2 -2
- package/dist/chunks/{plan-DVPBW5OS.js → plan-KDN5IGWY.js} +1 -1
- package/dist/chunks/{plugin-Bh2eBwLW.js → plugin-D0rzUb8E.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-C2YbEHrP.js → pluginAutoupdate-C2xTKLR_.js} +1 -1
- package/dist/chunks/{pluginBlocklist-B2NAKaB9.js → pluginBlocklist-xdiUmUpt.js} +1 -1
- package/dist/chunks/{pluginCliCommands-Cw5TrYYb.js → pluginCliCommands-CIDDvVN7.js} +1 -1
- package/dist/chunks/{pluginFlagging-BDTgCYuC.js → pluginFlagging-DRA0m76J.js} +1 -1
- package/dist/chunks/{pluginOperations-BBwGEdfC.js → pluginOperations-BEYsarAn.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-DhhMk3dA.js → pluginStartupCheck-BF1N4Lih.js} +1 -1
- package/dist/chunks/pluginStartupCheck-DVkI4pqo.js +1 -0
- package/dist/chunks/{plugins-r0h93GT_.js → plugins-CWWU4BKs.js} +1 -1
- package/dist/chunks/{print-CDzhHi2F.js → print-B5H2xbBS.js} +3 -3
- package/dist/chunks/{processBashCommand-DmdCAWOR.js → processBashCommand-EQ9EWaRV.js} +1 -1
- package/dist/chunks/{processSlashCommand-B43TkiaI.js → processSlashCommand-C4PKNyFT.js} +1 -1
- package/dist/chunks/{prompt-DEioJrx_.js → prompt-8u06WVES.js} +1 -1
- package/dist/chunks/prompt-B9sDzLPK.js +1 -0
- package/dist/chunks/prompt-WsoTRhoh.js +1 -0
- package/dist/chunks/{promptEditor-eJzbtNn4.js → promptEditor-Cr4w-4Bz.js} +1 -1
- package/dist/chunks/{protocolHandler-C-CFTcUJ.js → protocolHandler-DzHVaPl3.js} +2 -2
- package/dist/chunks/{reconciler-DZP4dJJG.js → reconciler-RIKmaPg7.js} +1 -1
- package/dist/chunks/{refresh-vaY-Sr80.js → refresh-CCSCAjgz.js} +1 -1
- package/dist/chunks/registerProtocol-C0IlPEoa.js +1 -0
- package/dist/chunks/{reload-plugins-m9CzoIxu.js → reload-plugins-DC-tbXVv.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-C4vSr1gp.js → remoteBridgeCore-NGTnhQgw.js} +1 -1
- package/dist/chunks/{remoteManagedSettings-6RAHPt_g.js → remoteManagedSettings-BoOYHzYP.js} +1 -1
- package/dist/chunks/{rename-DmauGVBX.js → rename-DS1AmW-F.js} +1 -1
- package/dist/chunks/{resume-ut_pBrLN.js → resume-Cf5PSoPw.js} +1 -1
- package/dist/chunks/{runtimeObserver-CSroopId.js → runtimeObserver-DzesbvgI.js} +1 -1
- package/dist/chunks/{runtimeObserver-C2vjqtCE.js → runtimeObserver-L6041elO.js} +2 -2
- package/dist/chunks/sandbox-adapter-Z4Phj31K.js +1 -0
- package/dist/chunks/{sandbox-toggle-BJKd1ZYk.js → sandbox-toggle-COZE8Lo4.js} +1 -1
- package/dist/chunks/sanitization-DV-94a9Z.js +1 -0
- package/dist/chunks/searchExtraTools-CvkRbL2m.js +1 -0
- package/dist/chunks/{session-DTin6hOR.js → session-BvA99K4j.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-6XfAf6ke.js +1 -0
- package/dist/chunks/{sessionObserver-iAJLH92a.js → sessionObserver-0D8xFoRK.js} +1 -1
- package/dist/chunks/sessionObserver-CRWUBJEY.js +1 -0
- package/dist/chunks/{sessionState-DAcub-HK.js → sessionState-CQhbGfmh.js} +1 -1
- package/dist/chunks/sessionStorage-DqEuxDlb.js +1 -0
- package/dist/chunks/{sessionTracing-Dvi520eN.js → sessionTracing-BoOZsXU2.js} +1 -1
- package/dist/chunks/{settingsSync-aHn3p-6J.js → settingsSync-rkWmClKS.js} +1 -1
- package/dist/chunks/{setup-CK3ybjjM.js → setup-D8L275fT.js} +2 -2
- package/dist/chunks/{shadowedRuleDetection-BL7dEv-u.js → shadowedRuleDetection-Cy9tsuKc.js} +1 -1
- package/dist/chunks/{sideQuestion-Ct87yvOR.js → sideQuestion-Ds7Elgs4.js} +1 -1
- package/dist/chunks/{sinks-Bmn3li0M.js → sinks-BXX72cbf.js} +1 -1
- package/dist/chunks/sinks-DMp6uEzM.js +1 -0
- package/dist/chunks/{skillChangeDetector-Bco3UoeW.js → skillChangeDetector-CtithJ4a.js} +1 -1
- package/dist/chunks/{skillGapStore-MtlRyYmT.js → skillGapStore-BxCxKPev.js} +2 -2
- package/dist/chunks/{skillLifecycle-Drs6gEv9.js → skillLifecycle-CfyNC3sW.js} +2 -2
- package/dist/chunks/{skillSearchPanel-DkvmjNaw.js → skillSearchPanel-CMNJFIEC.js} +2 -2
- package/dist/chunks/{skills-axToWEo0.js → skills-DXMk-498.js} +1 -1
- package/dist/chunks/{status-CGp4uRlH.js → status-CFrLuGbf.js} +1 -1
- package/dist/chunks/status-D5OCkMZG.js +1 -0
- package/dist/chunks/{statusNoticeHelpers-BrN_2q7H.js → statusNoticeHelpers-CZoOse-_.js} +1 -1
- package/dist/chunks/switcher-AiMcRzoi.js +1 -0
- package/dist/chunks/{switcher-99gm2vpe.js → switcher-DQF5ZNal.js} +1 -1
- package/dist/chunks/{syncCache-B3OVvp8K.js → syncCache-qWJ_VfBo.js} +1 -1
- package/dist/chunks/{tasks-t5zT_D32.js → tasks-C8pb6ftc.js} +1 -1
- package/dist/chunks/{teleport-CvX_nUjQ.js → teleport-Bi_1VFIZ.js} +1 -1
- package/dist/chunks/{templateJobs-Bm8bovHx.js → templateJobs-DJ4dcfcL.js} +1 -1
- package/dist/chunks/{theme-DzaSXOpQ.js → theme-CEKOCSLw.js} +1 -1
- package/dist/chunks/{toolEventObserver-C_nHI27x.js → toolEventObserver-D2nk8ZbW.js} +1 -1
- package/dist/chunks/{toolPool-CgKK0K8f.js → toolPool-Df5iUqJ-.js} +1 -1
- package/dist/chunks/{trustedDevice-Bb7O8_tj.js → trustedDevice-CB6rNzl-.js} +1 -1
- package/dist/chunks/trustedDevice-DXGePUAC.js +1 -0
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-D0uqGxGw.js → useExitOnCtrlCDWithKeybindings-Bw0mlTT9.js} +1 -1
- package/dist/chunks/useMainLoopModel-CIG2cjS2.js +1 -0
- package/dist/chunks/{useManagePlugins-ITVFO9dz.js → useManagePlugins-MSHw-qHx.js} +1 -1
- package/dist/chunks/{useMergedTools-rQ19rFvH.js → useMergedTools-Bb-INJa2.js} +1 -1
- package/dist/chunks/{useSearchInput-CXTa-leH.js → useSearchInput-QL_VtdJD.js} +1 -1
- package/dist/chunks/{useSettingsErrors-Xc6RYjYF.js → useSettingsErrors-Dvi6zLCr.js} +1 -1
- package/dist/chunks/{userAgent-CJ5Rp9kc.js → userAgent-i-oGzf40.js} +1 -1
- package/dist/chunks/{util-CD3ar4of.js → util-CLQvtXuD.js} +1 -1
- package/dist/chunks/{validatePlugin-CxrlCKc1.js → validatePlugin-1mTZ3TJR.js} +1 -1
- package/dist/chunks/{workerRegistry-BGJtgrko.js → workerRegistry-BjxoZ12l.js} +2 -2
- package/dist/chunks/worktree-DpksgxdF.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -5
- package/dist/chunks/AgentsMdExternalIncludesDialog-Bny8WDwC.js +0 -1
- package/dist/chunks/ApproveApiKey-BKzkEkW-.js +0 -1
- package/dist/chunks/Doctor-DYEdLRxR.js +0 -1
- package/dist/chunks/REPL-yzvMFfaU.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-CdgQlm--.js +0 -1
- package/dist/chunks/api-CB3e0De0.js +0 -1
- package/dist/chunks/attributionHooks-C0aXyx9L.js +0 -1
- package/dist/chunks/auth-CsYEYXBO.js +0 -1
- package/dist/chunks/auth-CubXYcRl.js +0 -1
- package/dist/chunks/backgroundHousekeeping-CykbtljP.js +0 -1
- package/dist/chunks/bridgeConfig-Cp2x_wtE.js +0 -1
- package/dist/chunks/caches-BiVRgePi.js +0 -1
- package/dist/chunks/caches-CGzKSWiP.js +0 -1
- package/dist/chunks/client-CmnPWgLq.js +0 -1
- package/dist/chunks/commands-CrzVgHxp.js +0 -1
- package/dist/chunks/config-Df8jooTW.js +0 -1
- package/dist/chunks/context-noninteractive-m4O3VtG7.js +0 -1
- package/dist/chunks/conversation-BYBX07j8.js +0 -1
- package/dist/chunks/createSession-C_-ZEQT5.js +0 -1
- package/dist/chunks/doctor-CflXjqVK.js +0 -1
- package/dist/chunks/extractMemories-B_8wZpXA.js +0 -1
- package/dist/chunks/fast-4ajfJv-M.js +0 -1
- package/dist/chunks/fetchModelList-V8_e2O1N.js +0 -1
- package/dist/chunks/firstPartyEventLogger-YQm0DoVu.js +0 -1
- package/dist/chunks/hooks-CJY5Vfy6.js +0 -1
- package/dist/chunks/loadAgentsDir-Dxz1vp3F.js +0 -1
- package/dist/chunks/localSearch-CCs5fOd_.js +0 -1
- package/dist/chunks/managedEnv-CrnBYTtQ.js +0 -1
- package/dist/chunks/model-aEJ54cMA.js +0 -1
- package/dist/chunks/pluginStartupCheck-CHx379_R.js +0 -1
- package/dist/chunks/postCommitAttribution-DoSP9wZD.js +0 -1
- package/dist/chunks/prompt-C50mDqWv.js +0 -1
- package/dist/chunks/prompt-WGH9CcXh.js +0 -1
- package/dist/chunks/registerProtocol-Xsq4ldwg.js +0 -1
- package/dist/chunks/sandbox-adapter-CL0qdcxn.js +0 -1
- package/dist/chunks/searchExtraTools-ByWuNCGo.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-DorzHolr.js +0 -1
- package/dist/chunks/sessionObserver-Dy6NFlzL.js +0 -1
- package/dist/chunks/sessionStorage-DItJMkwx.js +0 -1
- package/dist/chunks/sinks-QQ_6Op7q.js +0 -1
- package/dist/chunks/src-DPUAq5Ty.js +0 -1
- package/dist/chunks/status-3uevwSMo.js +0 -1
- package/dist/chunks/switcher-DJDxjLPQ.js +0 -1
- package/dist/chunks/trustedDevice-C2gnF9Lc.js +0 -1
- package/dist/chunks/useMainLoopModel-BGPOmBkl.js +0 -1
- package/dist/chunks/worktree-CanG5GhE.js +0 -1
- /package/dist/chunks/{src-DLz3FZm1.js → urlHandler-DLz3FZm1.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Aw as t,Bo as n,Co as r,Eo as i,Io as a,Lo as o,Mo as s,Ow as c,xo as l}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Aw as t,Bo as n,Co as r,Eo as i,Io as a,Lo as o,Mo as s,Ow as c,xo as l}from"./loadAgentsDir-DaNpxaO-.js";import{P as u,R as d,c as f,i as p}from"./debug-D58GQBDG.js";import{_t as m,bt as h}from"./settings-3xZ0fsvE.js";import{b as g,h as _}from"./config-DRy1I12M.js";import{o as v,s as y}from"./log-CZ7ploQm.js";import{f as b,s as x}from"./pluginOperations-BEYsarAn.js";function S(e){return O=e,k!==null&&k.length>0&&(e(k),k=null),()=>{O=null}}async function C(){let e=await o(),t=s(),n=new Set;for(let[r,i]of Object.entries(e)){let e=t[r]?.autoUpdate;(e===void 0?h(r,i):e)&&n.add(r.toLowerCase())}return n}async function w(e,t){let n=!1;for(let{scope:r}of t)try{let t=await b(e,r);t.success&&!t.alreadyUpToDate?(n=!0,f(`Plugin autoupdate: updated ${e} from ${t.oldVersion} to ${t.newVersion}`)):t.alreadyUpToDate||f(`Plugin autoupdate: failed to update ${e}: ${t.message}`,{level:`warn`})}catch(t){f(`Plugin autoupdate: error updating ${e}: ${u(t)}`,{level:`warn`})}return n?e:null}async function T(e){let n=i(),a=Object.keys(n.plugins);return a.length===0?[]:(await Promise.allSettled(a.map(async i=>{let{marketplace:a}=t(i);if(!a||!e.has(a.toLowerCase()))return null;let o=n.plugins[i];if(!o||o.length===0)return null;let s=o.filter(r);return s.length===0?null:w(i,s)}))).filter(e=>e.status===`fulfilled`&&e.value!==null).map(e=>e.value)}async function E(e){return T(e)}function D(){(async()=>{if(g()){f(`Plugin autoupdate: skipped (auto-updater disabled)`);return}try{let e=await C();if(e.size===0)return;let t=(await Promise.allSettled(Array.from(e).map(async e=>{try{await n(e,void 0,{disableCredentialHelper:!0})}catch(t){f(`Plugin autoupdate: failed to refresh marketplace ${e}: ${u(t)}`,{level:`warn`})}}))).filter(e=>e.status===`rejected`);t.length>0&&f(`Plugin autoupdate: ${t.length} marketplace refresh(es) failed`,{level:`warn`}),f(`Plugin autoupdate: checking installed plugins`);let r=await E(e);r.length>0&&(O?O(r):k=r)}catch(e){y(e)}})()}var O,k,A=e((()=>{x(),_(),p(),d(),v(),l(),a(),c(),m(),O=null,k=null}));export{T as i,A as n,S as r,D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Do as e,Io as t,No as n,Ro as r,xo as i}from"./loadAgentsDir-
|
|
1
|
+
import{Do as e,Io as t,No as n,Ro as r,xo as i}from"./loadAgentsDir-DaNpxaO-.js";import{P as a,R as o,c as s,i as c}from"./debug-D58GQBDG.js";import{d as l,s as u}from"./pluginOperations-BEYsarAn.js";import{i as d,n as f,r as p,t as m}from"./pluginFlagging-DRA0m76J.js";u(),c(),o(),i(),t(),p();function h(e,t,n){let r=new Set(t.plugins.map(e=>e.name)),i=`@${n}`,a=[];for(let t of Object.keys(e.plugins)){if(!t.endsWith(i))continue;let e=t.slice(0,-i.length);r.has(e)||a.push(t)}return a}async function g(){await d();let t=e(),i=f(),o=await r(),c=[];for(let e of Object.keys(o))try{let r=await n(e);if(!r.forceRemoveDeletedPlugins)continue;let o=h(t,r,e);for(let e of o){if(e in i)continue;let n=t.plugins[e]??[];if(n.some(e=>e.scope===`user`||e.scope===`project`||e.scope===`local`)){for(let t of n){let{scope:n}=t;if(!(n!==`user`&&n!==`project`&&n!==`local`))try{await l(e,n)}catch(t){s(`Failed to auto-uninstall delisted plugin ${e} from ${n}: ${a(t)}`,{level:`error`})}}await m(e),c.push(e)}}}catch(t){s(`Failed to check for delisted plugins in "${e}": ${a(t)}`,{level:`warn`})}return c}export{g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./figures-5ThXQEtq.js";import{$d as n,Aw as r,Cf as i,Ow as a,Tf as o,Zd as s,bo as c,wf as l,yo as u}from"./loadAgentsDir-
|
|
1
|
+
import{n as e,t}from"./figures-5ThXQEtq.js";import{$d as n,Aw as r,Cf as i,Ow as a,Tf as o,Zd as s,bo as c,wf as l,yo as u}from"./loadAgentsDir-DaNpxaO-.js";import{P as d,R as f}from"./debug-D58GQBDG.js";import{n as p,o as m}from"./process-gEbdy6uY.js";import{o as h,s as g}from"./log-CZ7ploQm.js";import{n as _,r as v}from"./analytics-DJobLaWP.js";import{a as y,c as b,d as x,f as S,i as C,r as w,s as T}from"./pluginOperations-BEYsarAn.js";e(),f(),n(),h(),c(),a(),p(),o(),_(),T();function E(e,n,a){g(e);let o=a?`${n} plugin "${a}"`:n===`disable-all`?`disable all plugins`:`${n} plugins`;console.error(`${t.cross} Failed to ${o}: ${d(e)}`);let s=a?(()=>{let{name:e,marketplace:t}=r(a);return{_PROTO_plugin_name:e,...t&&{_PROTO_marketplace_name:t},...i(e,t,u())}})():{};v(`tengu_plugin_command_failed`,{command:n,error_category:l(e),...s}),process.exit(1)}async function D(e,n=`user`){try{console.log(`Installing plugin "${e}"...`);let a=await b(e,n);if(!a.success)throw Error(a.message);console.log(`${t.tick} ${a.message}`);let{name:o,marketplace:s}=r(a.pluginId||e);v(`tengu_plugin_installed_cli`,{_PROTO_plugin_name:o,...s&&{_PROTO_marketplace_name:s},scope:a.scope||n,install_source:`cli-explicit`,...i(o,s,u())}),process.exit(0)}catch(t){E(t,`install`,e)}}async function O(e,n=`user`,a=!1){try{let o=await x(e,n,!a);if(!o.success)throw Error(o.message);console.log(`${t.tick} ${o.message}`);let{name:s,marketplace:c}=r(o.pluginId||e);v(`tengu_plugin_uninstalled_cli`,{_PROTO_plugin_name:s,...c&&{_PROTO_marketplace_name:c},scope:o.scope||n,...i(s,c,u())}),process.exit(0)}catch(t){E(t,`uninstall`,e)}}async function k(e,n){try{let a=await y(e,n);if(!a.success)throw Error(a.message);console.log(`${t.tick} ${a.message}`);let{name:o,marketplace:s}=r(a.pluginId||e);v(`tengu_plugin_enabled_cli`,{_PROTO_plugin_name:o,...s&&{_PROTO_marketplace_name:s},scope:a.scope,...i(o,s,u())}),process.exit(0)}catch(t){E(t,`enable`,e)}}async function A(e,n){try{let a=await C(e,n);if(!a.success)throw Error(a.message);console.log(`${t.tick} ${a.message}`);let{name:o,marketplace:s}=r(a.pluginId||e);v(`tengu_plugin_disabled_cli`,{_PROTO_plugin_name:o,...s&&{_PROTO_marketplace_name:s},scope:a.scope,...i(o,s,u())}),process.exit(0)}catch(t){E(t,`disable`,e)}}async function j(){try{let e=await w();if(!e.success)throw Error(e.message);console.log(`${t.tick} ${e.message}`),v(`tengu_plugin_disabled_all_cli`,{}),process.exit(0)}catch(e){E(e,`disable-all`)}}async function M(e,n){try{m(`Checking for updates for plugin "${e}" at ${n} scope…\n`);let a=await S(e,n);if(!a.success)throw Error(a.message);if(m(`${t.tick} ${a.message}\n`),!a.alreadyUpToDate){let{name:t,marketplace:n}=r(a.pluginId||e);v(`tengu_plugin_updated_cli`,{_PROTO_plugin_name:t,...n&&{_PROTO_marketplace_name:n},old_version:a.oldVersion||`unknown`,new_version:a.newVersion||`unknown`,...i(t,n,u())})}await s(0)}catch(t){E(t,`update`,e)}}export{O as a,D as i,A as n,M as o,k as r,j as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{mw as t,pw as n}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{mw as t,pw as n}from"./loadAgentsDir-DaNpxaO-.js";import{C as r,S as i,c as a,f as o,i as s,u as c,x as l}from"./debug-D58GQBDG.js";import{o as u,s as d}from"./log-CZ7ploQm.js";import{join as f}from"path";import{randomBytes as p}from"crypto";import{readFile as m,rename as h,unlink as g,writeFile as _}from"fs/promises";function v(){return f(n(),D)}function y(e){let t=i(e);if(typeof t!=`object`||!t||!(`plugins`in t)||typeof t.plugins!=`object`||t.plugins===null)return{};let n=t.plugins,r={};for(let[e,t]of Object.entries(n))if(t&&typeof t==`object`&&`flaggedAt`in t&&typeof t.flaggedAt==`string`){let n={flaggedAt:t.flaggedAt};`seenAt`in t&&typeof t.seenAt==`string`&&(n.seenAt=t.seenAt),r[e]=n}return r}async function b(){try{return y(await m(v(),{encoding:`utf-8`}))}catch{return{}}}async function x(e){let t=v(),i=`${t}.${p(8).toString(`hex`)}.tmp`;try{await c().mkdir(n()),await _(i,r({plugins:e},null,2),{encoding:`utf-8`,mode:384}),await h(i,t),k=e}catch(e){d(e);try{await g(i)}catch{}}}async function S(){let e=await b(),t=Date.now(),n=!1;for(let[r,i]of Object.entries(e))i.seenAt&&t-new Date(i.seenAt).getTime()>=O&&(delete e[r],n=!0);k=e,n&&await x(e)}function C(){return k??{}}async function w(e){k===null&&(k=await b()),await x({...k,[e]:{flaggedAt:new Date().toISOString()}}),a(`Flagged plugin: ${e}`)}async function T(e){k===null&&(k=await b());let t=new Date().toISOString(),n=!1,r={...k};for(let i of e){let e=r[i];e&&!e.seenAt&&(r[i]={...e,seenAt:t},n=!0)}n&&await x(r)}async function E(e){if(k===null&&(k=await b()),!(e in k))return;let{[e]:t,...n}=k;k=n,await x(n)}var D,O,k,A=e((()=>{s(),o(),u(),l(),t(),D=`flagged-plugins.json`,O=2880*60*1e3,k=null}));export{T as a,S as i,C as n,E as o,A as r,w as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Aw as t,Do as n,Dw as r,Eo as i,Ew as a,Fo as o,Fw as s,Io as c,Iw as l,Kx as u,Lo as d,No as f,Oo as p,Ow as m,Tw as h,Wx as g,_o as _,ao as v,as as y,co as b,dg as x,do as S,go as C,is as w,jw as T,ko as E,lo as D,mo as ee,mw as te,oo as O,os as k,po as A,ro as j,so as M,ug as ne,uw as re,vo as ie,xo as ae}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Aw as t,Do as n,Dw as r,Eo as i,Ew as a,Fo as o,Fw as s,Io as c,Iw as l,Kx as u,Lo as d,No as f,Oo as p,Ow as m,Tw as h,Wx as g,_o as _,ao as v,as as y,co as b,dg as x,do as S,go as C,is as w,jw as T,ko as E,lo as D,mo as ee,mw as te,oo as O,os as k,po as A,ro as j,so as M,ug as ne,uw as re,vo as ie,xo as ae}from"./loadAgentsDir-DaNpxaO-.js";import{$ as N,Ut as oe}from"./state-D5D6QpTX.js";import{B as P,R as se,U as ce,f as F,u as I}from"./debug-D58GQBDG.js";import{b as L,h as R,s as z}from"./settings-3xZ0fsvE.js";import{o as B,s as V}from"./log-CZ7ploQm.js";import{l as H,o as U}from"./stringUtils-CKD8qDqx.js";import{n as W,t as G}from"./pluginStartupCheck-BF1N4Lih.js";import{dirname as le,join as K}from"path";function q(e){if(!Q.includes(e))throw Error(`Invalid scope "${e}". Must be one of: ${Q.join(`, `)}`)}function ue(e){return Q.includes(e)}function J(e){return e===`project`||e===`local`?N():void 0}function de(e){return z(`projectSettings`)?.enabledPlugins?.[e]===!0}function fe(e){let t=e.includes(`@`);for(let n of[`local`,`project`,`user`]){let r=z(T(n))?.enabledPlugins;if(r){for(let i of Object.keys(r))if(t?i===e:i.startsWith(`${e}@`))return{pluginId:i,scope:n}}}return null}function pe(e,n){let{name:r,marketplace:i}=t(e);return n.find(t=>t.name===e||t.name===r?!0:i&&t.source?t.name===r&&t.source.includes(`@${i}`):!1)}function me(e){let{name:r}=t(e),i=n();if(i.plugins[e]?.length)return{pluginId:e,pluginName:r};let a=Object.keys(i.plugins).find(e=>{let{name:n}=t(e);return n===r&&(i.plugins[e]?.length??0)>0});return a?{pluginId:a,pluginName:r}:null}function Y(e){let t=n().plugins[e];if(!t||t.length===0)return{scope:`user`};let r=N(),i=t.find(e=>e.scope===`local`&&e.projectPath===r);if(i)return{scope:i.scope,projectPath:i.projectPath};let a=t.find(e=>e.scope===`project`&&e.projectPath===r);if(a)return{scope:a.scope,projectPath:a.projectPath};let o=t.find(e=>e.scope===`user`);return o?{scope:o.scope}:{scope:t[0].scope,projectPath:t[0].projectPath}}async function he(e,n=`user`){q(n);let{name:r,marketplace:i}=t(e),a,s,c;if(i){let t=await o(e);t&&(a=t.entry,s=i,c=t.marketplaceInstallLocation)}else{let e=await d();for(let[t,n]of Object.entries(e))try{let e=(await f(t)).plugins.find(e=>e.name===r);if(e){a=e,s=t,c=n.installLocation;break}}catch(e){V(ce(e))}}if(!a||!s)return{success:!1,message:`Plugin "${r}" not found in ${i?`marketplace "${i}"`:`any configured marketplace`}`};let l=a,u=`${l.name}@${s}`,p=await C({pluginId:u,entry:l,scope:n,marketplaceInstallLocation:c});if(!p.ok){let e=p;switch(e.reason){case`local-source-no-location`:return{success:!1,message:`Cannot install local plugin "${e.pluginName}" without marketplace install location`};case`settings-write-failed`:return{success:!1,message:`Failed to update settings: ${e.message}`};case`resolution-failed`:return{success:!1,message:A(e.resolution)};case`blocked-by-policy`:return{success:!1,message:`Plugin "${e.pluginName}" is blocked by your organization's policy and cannot be installed`};case`dependency-blocked-by-policy`:return{success:!1,message:`Plugin "${e.pluginName}" depends on "${e.blockedDependency}", which is blocked by your organization's policy`}}}return{success:!0,message:`Successfully installed plugin: ${u} (scope: ${n})${p.depNote}`,pluginId:u,pluginName:l.name,scope:n}}async function ge(e,t=`user`,r=!0){q(t);let{enabled:i,disabled:o}=await D(),s=[...i,...o],c=pe(e,s),l=T(t),u=z(l),d,f;if(c)d=Object.keys(u?.enabledPlugins??{}).find(t=>t===e||t===c.name||t.startsWith(`${c.name}@`))??(e.includes(`@`)?e:c.name),f=c.name;else{let t=me(e);if(!t)return{success:!1,message:`Plugin "${e}" not found in installed plugins`};d=t.pluginId,f=t.pluginName}let m=J(t),_=n().plugins[d],v=_?.find(e=>e.scope===t&&e.projectPath===m);if(!v){let{scope:n}=Y(d);return n!==t&&_&&_.length>0?n===`project`?{success:!1,message:`Plugin "${e}" is enabled at project scope (.workmate/settings.json, shared with your team). To disable just for you: claude plugin disable ${e} --scope local`}:{success:!1,message:`Plugin "${e}" is installed in ${n} scope, not ${t}. Use --scope ${n} to uninstall.`}:{success:!1,message:`Plugin "${e}" is not installed in ${t} scope. Use --scope to specify the correct scope.`}}let y=v.installPath,b={...u?.enabledPlugins};b[d]=void 0,L(l,{enabledPlugins:b}),w(),p(d,t,m);let x=n().plugins[d],S=!x||x.length===0;S&&y&&await k(y),S&&(g(d),r&&await re(d));let C=h(d,s),E=a(C);return{success:!0,message:`Successfully uninstalled plugin: ${f} (scope: ${t})${E}`,pluginId:d,pluginName:f,scope:t,reverseDependents:C.length>0?C:void 0}}async function X(e,n,r){let i=n?`enable`:`disable`;if(l(e)){let{error:r}=L(`userSettings`,{enabledPlugins:{...z(`userSettings`)?.enabledPlugins,[e]:n}});if(r)return{success:!1,message:`Failed to ${i} built-in plugin: ${r.message}`};w();let{name:a}=t(e);return{success:!0,message:`Successfully ${i}d built-in plugin: ${a}`,pluginId:e,pluginName:a,scope:`user`}}r&&q(r);let o,s,c=fe(e);if(r)if(s=r,c)o=c.pluginId;else if(e.includes(`@`))o=e;else return{success:!1,message:`Plugin "${e}" not found in settings. Use plugin@marketplace format.`};else if(c)o=c.pluginId,s=c.scope;else if(e.includes(`@`))o=e,s=`user`;else return{success:!1,message:`Plugin "${e}" not found in any editable settings scope. Use plugin@marketplace format.`};if(n&&x(o))return{success:!1,message:`Plugin "${o}" is blocked by your organization's policy and cannot be enabled`};let u=T(s),d=z(u)?.enabledPlugins?.[o],f={user:0,project:1,local:2},p=r&&c&&f[r]>f[c.scope];if(r&&d===void 0&&c&&c.scope!==r&&!p)return{success:!1,message:`Plugin "${e}" is installed at ${c.scope} scope, not ${r}. Use --scope ${c.scope} or omit --scope to auto-detect.`};if(n===(r&&!p?d===!0:G().has(o)))return{success:!1,message:`Plugin "${e}" is already ${n?`enabled`:`disabled`}${r?` at ${r} scope`:``}`};let m;if(!n){let{enabled:e,disabled:t}=await D(),n=h(o,[...e,...t]);n.length>0&&(m=n)}let{error:g}=L(u,{enabledPlugins:{...z(u)?.enabledPlugins,[o]:n}});if(g)return{success:!1,message:`Failed to ${i} plugin: ${g.message}`};w();let{name:_}=t(o),v=a(m);return{success:!0,message:`Successfully ${i}d plugin: ${_} (scope: ${s})${v}`,pluginId:o,pluginName:_,scope:s,reverseDependents:m}}async function _e(e,t){return X(e,!0,t)}async function ve(e,t){return X(e,!1,t)}async function Z(){let e=G();if(e.size===0)return{success:!0,message:`No enabled plugins to disable`};let t=[],n=[];for(let[r]of e){let e=await X(r,!1);e.success?t.push(r):n.push(`${r}: ${e.message}`)}return n.length>0?{success:!1,message:`Disabled ${t.length} ${H(t.length,`plugin`)}, ${n.length} failed:\n${n.join(`
|
|
2
2
|
`)}`}:{success:!0,message:`Disabled ${t.length} ${H(t.length,`plugin`)}`}}async function ye(e,n){let{name:r,marketplace:a}=t(e),s=a?`${r}@${a}`:e,c=await o(e);if(!c)return{success:!1,message:`Plugin "${r}" not found`,pluginId:s,scope:n};let{entry:l,marketplaceInstallLocation:u}=c,d=i().plugins[s];if(!d||d.length===0)return{success:!1,message:`Plugin "${r}" is not installed`,pluginId:s,scope:n};let f=J(n),p=d.find(e=>e.scope===n&&e.projectPath===f);return p?be({pluginId:s,pluginName:r,entry:l,marketplaceInstallLocation:u,installation:p,scope:n,projectPath:f}):{success:!1,message:`Plugin "${r}" is not installed at scope ${f?`${n} (${f})`:n}`,pluginId:s,scope:n}}async function be({pluginId:e,pluginName:t,entry:n,marketplaceInstallLocation:r,installation:a,scope:o,projectPath:s}){let c=I(),l=a.version,u,d,f=!1,p;if(typeof n.source!=`string`){let t=await j(n.source,{manifest:{name:n.name}});u=t.path,f=!0,p=t.gitCommitSha,d=await _(e,n.source,t.manifest,t.path,n.version,t.gitCommitSha)}else{let t;try{t=await c.stat(r)}catch(t){if(P(t))return{success:!1,message:`Marketplace directory not found at ${r}`,pluginId:e,scope:o};throw t}u=K(t.isDirectory()?r:le(r),n.source);try{await c.stat(u)}catch(t){if(P(t))return{success:!1,message:`Plugin source not found at ${u}`,pluginId:e,scope:o};throw t}let i,a=K(u,`.claude-plugin`,`plugin.json`);try{i=await S(a,n.name,n.source)}catch{}d=await _(e,n.source,i,u,n.version)}try{let r=O(e,d),c=M(e,d);if(a.version===d||a.installPath===r||a.installPath===c)return{success:!0,message:`${t} is already at the latest version (${d}).`,pluginId:e,newVersion:d,oldVersion:l,alreadyUpToDate:!0,scope:o};r=await v(u,e,d,n);let f=a.installPath;if(E(e,o,s,r,d,p),f&&f!==r){let e=i();Object.values(e.plugins).some(e=>e.some(e=>e.installPath===f))||await k(f)}let m=s?`${o} (${s})`:o;return{success:!0,message:`Plugin "${t}" updated from ${l||`unknown`} to ${d} for scope ${m}. Restart to apply changes.`,pluginId:e,newVersion:d,oldVersion:l,scope:o}}finally{f&&u!==O(e,d)&&await c.rm(u,{recursive:!0,force:!0})}}var Q,$,xe=e((()=>{oe(),s(),se(),F(),B(),y(),r(),ae(),c(),te(),m(),ee(),b(),u(),ne(),W(),ie(),R(),U(),Q=[`user`,`project`,`local`],$=[`user`,`project`,`local`,`managed`]}));export{_e as a,he as c,ge as d,ye as f,ve as i,ue as l,$ as n,Y as o,Z as r,xe as s,Q as t,de as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Io as t,Mw as n,Nw as r,Ow as i,mo as a,xo as o}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Io as t,Mw as n,Nw as r,Ow as i,mo as a,xo as o}from"./loadAgentsDir-DaNpxaO-.js";import{n as s}from"./cwd-Nh5IZNKO.js";import{c,i as l}from"./debug-D58GQBDG.js";import{_t as u,h as d,s as f}from"./settings-3xZ0fsvE.js";import{o as p}from"./log-CZ7ploQm.js";import"path";function m(){let e=new Map,t=n();for(let[n,r]of Object.entries(t))n.includes(`@`)&&(r===!0?e.set(n,`flag`):r===!1&&e.delete(n));for(let{scope:n,source:r}of[{scope:`managed`,source:`policySettings`},{scope:`user`,source:`userSettings`},{scope:`project`,source:`projectSettings`},{scope:`local`,source:`localSettings`},{scope:`flag`,source:`flagSettings`}]){let i=f(r);if(i?.enabledPlugins)for(let[a,o]of Object.entries(i.enabledPlugins))a.includes(`@`)&&(a in t&&t[a]!==o&&c(`Plugin ${a} from --add-dir (${t[a]}) overridden by ${r} (${o})`),o===!0?e.set(a,n):o===!1&&e.delete(a))}return c(`Found ${e.size} enabled plugins with scopes: ${Array.from(e.entries()).map(([e,t])=>`${e}(${t})`).join(`, `)}`),e}var h=e((()=>{s(),l(),p(),d(),r(),o(),t(),i(),a(),u()}));export{h as n,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./pluginStartupCheck-BF1N4Lih.js";e();export{t as getPluginEditableScopes};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./figures-5ThXQEtq.js";import{Ao as n,Aw as r,Bo as i,Do as a,Ho as o,Hx as s,Io as c,Jo as l,Lo as u,Lw as d,Ow as f,Rw as p,To as m,Ux as h,Wo as g,as as _,co as v,es as y,is as b,jw as x,lo as S,ns as ee,xo as C,zo as w}from"./loadAgentsDir-
|
|
1
|
+
import{n as e,t}from"./figures-5ThXQEtq.js";import{Ao as n,Aw as r,Bo as i,Do as a,Ho as o,Hx as s,Io as c,Jo as l,Lo as u,Lw as d,Ow as f,Rw as p,To as m,Ux as h,Wo as g,as as _,co as v,es as y,is as b,jw as x,lo as S,ns as ee,xo as C,zo as w}from"./loadAgentsDir-DaNpxaO-.js";import{Ut as te,rr as T}from"./state-D5D6QpTX.js";import{C as E,P as D,R as O,x as k}from"./debug-D58GQBDG.js";import{o as ne,s as A}from"./log-CZ7ploQm.js";import{n as j,r as M}from"./analytics-DJobLaWP.js";import{l as N,o as P}from"./stringUtils-CKD8qDqx.js";import{n as F,t as I}from"./exit-s9XGerrH.js";import{n as L,s as R,t as z}from"./pluginOperations-BEYsarAn.js";import{a as B,i as V,n as H,o as U,r as W,t as G}from"./pluginCliCommands-CIDDvVN7.js";import{a as re,c as K,i as q,n as J,r as Y,s as X,t as ie}from"./validatePlugin-1mTZ3TJR.js";import{basename as ae,dirname as Z}from"path";e(),te(),j(),R(),p(),O(),ne(),_(),K(),C(),y(),c(),s(),q(),f(),v(),ie(),k(),P();function Q(e,n){A(e),I(`${t.cross} Failed to ${n}: ${D(e)}`)}function $(e){e.errors.length>0&&(console.log(`${t.cross} Found ${e.errors.length} ${N(e.errors.length,`error`)}:\n`),e.errors.forEach(e=>{console.log(` ${t.pointer} ${e.path}: ${e.message}`)}),console.log(``)),e.warnings.length>0&&(console.log(`${t.warning} Found ${e.warnings.length} ${N(e.warnings.length,`warning`)}:\n`),e.warnings.forEach(e=>{console.log(` ${t.pointer} ${e.path}: ${e.message}`)}),console.log(``))}async function oe(e,n){n.cowork&&T(!0);try{let n=await J(e);console.log(`Validating ${n.fileType} manifest: ${n.filePath}\n`),$(n);let r=[];if(n.fileType===`plugin`){let e=Z(n.filePath);if(ae(e)===`.claude-plugin`){r=await Y(Z(e));for(let e of r)console.log(`Validating ${e.fileType}: ${e.filePath}\n`),$(e)}}let i=n.success&&r.every(e=>e.success),a=n.warnings.length>0||r.some(e=>e.warnings.length>0);i?F(a?`${t.tick} Validation passed with warnings`:`${t.tick} Validation passed`):(console.log(`${t.cross} Validation failed`),process.exit(1))}catch(e){A(e),console.error(`${t.cross} Unexpected error during validation: ${D(e)}`),process.exit(2)}}async function se(e){e.cowork&&T(!0),M(`tengu_plugin_list_command`,{});let n=a(),{getPluginEditableScopes:i}=await import(`./pluginStartupCheck-DVkI4pqo.js`),o=i(),s=Object.keys(n.plugins),{enabled:c,disabled:f,errors:p}=await S(),g=[...c,...f],_=g.filter(e=>e.source.endsWith(`@inline`)),v=p.filter(e=>e.source.endsWith(`@inline`)||e.source.startsWith(`inline[`));if(e.json){let t=new Map(g.map(e=>[e.source,e])),i=[];for(let e of s.sort()){let a=n.plugins[e];if(!a||a.length===0)continue;let s=r(e).name,c=p.filter(t=>t.source===e||`plugin`in t&&t.plugin===s).map(d);for(let n of a){let r=t.get(e),a;if(r){let e=r.mcpServers||await h(r);e&&Object.keys(e).length>0&&(a=e)}i.push({id:e,version:n.version||`unknown`,scope:n.scope,enabled:o.has(e),installPath:n.installPath,installedAt:n.installedAt,lastUpdated:n.lastUpdated,projectPath:n.projectPath,mcpServers:a,errors:c.length>0?c:void 0})}}for(let e of _){let t=e.mcpServers||await h(e),n=v.filter(t=>t.source===e.source||`plugin`in t&&t.plugin===e.name).map(d);i.push({id:e.source,version:e.manifest.version??`unknown`,scope:`session`,enabled:e.enabled!==!1,installPath:e.path,mcpServers:t&&Object.keys(t).length>0?t:void 0,errors:n.length>0?n:void 0})}for(let e of v.filter(e=>e.source.startsWith(`inline[`)))i.push({id:e.source,version:`unknown`,scope:`session`,enabled:!1,installPath:`path`in e?e.path:``,errors:[d(e)]});if(e.available){let e=[];try{let[t,n]=await Promise.all([u(),X()]),{marketplaces:r}=await ee(t);for(let{name:t,data:i}of r)if(i)for(let r of i.plugins){let i=l(r.name,t);m(i)||e.push({pluginId:i,name:r.name,description:r.description,marketplaceName:t,version:r.version,source:r.source,installCount:n?.get(i)})}}catch{}F(E({installed:i,available:e},null,2))}else F(E(i,null,2))}s.length===0&&_.length===0&&v.length===0&&F("No plugins installed. Use `claude plugin install` to install a plugin."),s.length>0&&console.log(`Installed plugins:
|
|
2
2
|
`);for(let e of s.sort()){let i=n.plugins[e];if(!i||i.length===0)continue;let a=r(e).name,s=p.filter(t=>t.source===e||`plugin`in t&&t.plugin===a);for(let n of i){let r=o.has(e),i=s.length>0?`${t.cross} failed to load`:r?`${t.tick} enabled`:`${t.cross} disabled`,a=n.version||`unknown`,c=n.scope;console.log(` ${t.pointer} ${e}`),console.log(` Version: ${a}`),console.log(` Scope: ${c}`),console.log(` Status: ${i}`);for(let e of s)console.log(` Error: ${d(e)}`);console.log(``)}}if(_.length>0||v.length>0){console.log(`Session-only plugins (--plugin-dir):
|
|
3
3
|
`);for(let e of _){let n=v.filter(t=>t.source===e.source||`plugin`in t&&t.plugin===e.name),r=n.length>0?`${t.cross} loaded with errors`:`${t.tick} loaded`;console.log(` ${t.pointer} ${e.source}`),console.log(` Version: ${e.manifest.version??`unknown`}`),console.log(` Path: ${e.path}`),console.log(` Status: ${r}`);for(let e of n)console.log(` Error: ${d(e)}`);console.log(``)}for(let e of v.filter(e=>e.source.startsWith(`inline[`)))console.log(` ${t.pointer} ${e.source}: ${t.cross} ${d(e)}\n`)}F()}async function ce(e,r){r.cowork&&T(!0);try{let i=await re(e);i||I(`${t.cross} Invalid marketplace source format. Try: owner/repo, https://..., or ./path`),`error`in i&&I(`${t.cross} ${i.error}`);let a=r.scope??`user`;a!==`user`&&a!==`project`&&a!==`local`&&I(`${t.cross} Invalid scope '${a}'. Use: user, project, or local`);let o=x(a),s=i;r.sparse&&r.sparse.length>0&&(s.source===`github`||s.source===`git`?s={...s,sparsePaths:r.sparse}:I(`${t.cross} --sparse is only supported for github and git marketplace sources (got: ${s.source})`)),console.log(`Adding marketplace...`);let{name:c,alreadyMaterialized:l,resolvedSource:u}=await n(s,e=>{console.log(e)});g(c,{source:u},o),b();let d=s.source;s.source===`github`&&(d=s.repo),M(`tengu_marketplace_added`,{source_type:d}),F(l?`${t.tick} Marketplace '${c}' already on disk — declared in ${a} settings`:`${t.tick} Successfully added marketplace: ${c} (declared in ${a} settings)`)}catch(e){Q(e,`add marketplace`)}}async function le(e){e.cowork&&T(!0);try{let n=await u(),r=Object.keys(n);e.json&&F(E(r.sort().map(e=>{let t=n[e],r=t?.source;return{name:e,source:r?.source,...r?.source===`github`&&{repo:r.repo},...r?.source===`git`&&{url:r.url},...r?.source===`url`&&{url:r.url},...r?.source===`directory`&&{path:r.path},...r?.source===`file`&&{path:r.path},installLocation:t?.installLocation}}),null,2)),r.length===0&&F(`No marketplaces configured`),console.log(`Configured marketplaces:
|
|
4
4
|
`),r.forEach(e=>{let r=n[e];if(console.log(` ${t.pointer} ${e}`),r?.source){let e=r.source;e.source===`github`?console.log(` Source: GitHub (${e.repo})`):e.source===`git`?console.log(` Source: Git (${e.url})`):e.source===`url`?console.log(` Source: URL (${e.url})`):e.source===`directory`?console.log(` Source: Directory (${e.path})`):e.source===`file`&&console.log(` Source: File (${e.path})`)}console.log(``)}),F()}catch(e){Q(e,`list marketplaces`)}}async function ue(e,n){n.cowork&&T(!0);try{await o(e),b(),M(`tengu_marketplace_removed`,{marketplace_name:e}),F(`${t.tick} Successfully removed marketplace: ${e}`)}catch(e){Q(e,`remove marketplace`)}}async function de(e,n){n.cowork&&T(!0);try{if(e)console.log(`Updating marketplace: ${e}...`),await i(e,e=>{console.log(e)}),b(),M(`tengu_marketplace_updated`,{marketplace_name:e}),F(`${t.tick} Successfully updated marketplace: ${e}`);else{let e=await u(),n=Object.keys(e);n.length===0&&F(`No marketplaces configured`),console.log(`Updating ${n.length} marketplace(s)...`),await w(),b(),M(`tengu_marketplace_updated_all`,{count:n.length}),F(`${t.tick} Successfully updated ${n.length} marketplace(s)`)}}catch(e){Q(e,`update marketplace(s)`)}}async function fe(e,t){t.cowork&&T(!0);let n=t.scope||`user`;t.cowork&&n!==`user`&&I(`--cowork can only be used with user scope`),z.includes(n)||I(`Invalid scope: ${n}. Must be one of: ${z.join(`, `)}.`);let{name:i,marketplace:a}=r(e);M(`tengu_plugin_install_command`,{_PROTO_plugin_name:i,...a&&{_PROTO_marketplace_name:a},scope:n}),await V(e,n)}async function pe(e,t){t.cowork&&T(!0);let n=t.scope||`user`;t.cowork&&n!==`user`&&I(`--cowork can only be used with user scope`),z.includes(n)||I(`Invalid scope: ${n}. Must be one of: ${z.join(`, `)}.`);let{name:i,marketplace:a}=r(e);M(`tengu_plugin_uninstall_command`,{_PROTO_plugin_name:i,...a&&{_PROTO_marketplace_name:a},scope:n}),await B(e,n,t.keepData)}async function me(e,t){t.cowork&&T(!0);let n;t.scope&&(z.includes(t.scope)||I(`Invalid scope "${t.scope}". Valid scopes: ${z.join(`, `)}`),n=t.scope),t.cowork&&n!==void 0&&n!==`user`&&I(`--cowork can only be used with user scope`),t.cowork&&n===void 0&&(n=`user`);let{name:i,marketplace:a}=r(e);M(`tengu_plugin_enable_command`,{_PROTO_plugin_name:i,...a&&{_PROTO_marketplace_name:a},scope:n??`auto`}),await W(e,n)}async function he(e,t){if(t.all&&e&&I(`Cannot use --all with a specific plugin`),!t.all&&!e&&I(`Please specify a plugin name or use --all to disable all plugins`),t.cowork&&T(!0),t.all){t.scope&&I(`Cannot use --scope with --all`),M(`tengu_plugin_disable_command`,{}),await G();return}let n;t.scope&&(z.includes(t.scope)||I(`Invalid scope "${t.scope}". Valid scopes: ${z.join(`, `)}`),n=t.scope),t.cowork&&n!==void 0&&n!==`user`&&I(`--cowork can only be used with user scope`),t.cowork&&n===void 0&&(n=`user`);let{name:i,marketplace:a}=r(e);M(`tengu_plugin_disable_command`,{_PROTO_plugin_name:i,...a&&{_PROTO_marketplace_name:a},scope:n??`auto`}),await H(e,n)}async function ge(e,t){t.cowork&&T(!0);let{name:n,marketplace:i}=r(e);M(`tengu_plugin_update_command`,{_PROTO_plugin_name:n,...i&&{_PROTO_marketplace_name:i}});let a=`user`;t.scope&&(L.includes(t.scope)||I(`Invalid scope "${t.scope}". Valid scopes: ${L.join(`, `)}`),a=t.scope),t.cowork&&a!==`user`&&I(`--cowork can only be used with user scope`),await U(e,a)}export{ce as marketplaceAddHandler,le as marketplaceListHandler,ue as marketplaceRemoveHandler,de as marketplaceUpdateHandler,he as pluginDisableHandler,me as pluginEnableHandler,fe as pluginInstallHandler,se as pluginListHandler,pe as pluginUninstallHandler,ge as pluginUpdateHandler,oe as pluginValidateHandler};
|