@readmagic/workmate 0.0.5 → 0.0.6
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-DJRkEz7o.js → AddWorkspaceDirectory-ClHi-Dr6.js} +1 -1
- package/dist/chunks/{App-iJu5qyiF.js → App-BP06lHmf.js} +1 -1
- package/dist/chunks/{ApproveApiKey-CRejTHUw.js → ApproveApiKey-Bsy8kr2a.js} +1 -1
- package/dist/chunks/ApproveApiKey-a2ZonQ3n.js +1 -0
- package/dist/chunks/{AssistantSessionChooser-CBLQ1v-J.js → AssistantSessionChooser-CcocKoTJ.js} +1 -1
- package/dist/chunks/{BackgroundTasksDialog-CyoLEYWH.js → BackgroundTasksDialog-DNeBhGCf.js} +1 -1
- package/dist/chunks/{BypassPermissionsModeDialog-D1FCKVOi.js → BypassPermissionsModeDialog-BKj_3Idm.js} +1 -1
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-CI0yF6sZ.js → ClaudeMdExternalIncludesDialog-BD-7yAZh.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DFivNFuo.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-CS3zjEPF.js +1 -0
- package/dist/chunks/{DesktopHandoff-D1rrMxeP.js → DesktopHandoff-BmPmCfT3.js} +1 -1
- package/dist/chunks/{DiffDialog-BKcfKx7O.js → DiffDialog-C4XSSjvV.js} +1 -1
- package/dist/chunks/Doctor-BhD-ZzZm.js +1 -0
- package/dist/chunks/{Doctor-Yco1McrL.js → Doctor-DEQe2q16.js} +1 -1
- package/dist/chunks/{ExitFlow-D3csukbB.js → ExitFlow-BttnAv-O.js} +1 -1
- package/dist/chunks/{Feedback-bEUtrHia.js → Feedback-BaYA8-SU.js} +1 -1
- package/dist/chunks/Grove-BJziCbZH.js +11 -0
- package/dist/chunks/Grove-sWm-oLBf.js +1 -0
- package/dist/chunks/{HybridTransport-9fTBC2Pv.js → HybridTransport-B8V6O6rM.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-9M-1nfZ6.js → InvalidConfigDialog-CHzBSJDf.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-B2F6pryH.js → InvalidSettingsDialog-BKenH3bD.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-MWpKjeZT.js → MCPConnectionManager-CNh9dNlk.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-BPBb7Npe.js → McpParsingWarnings-Bj2-YL8o.js} +1 -1
- package/dist/chunks/{MessageSelector-DsQmqFt2.js → MessageSelector-DdR6wJhh.js} +1 -1
- package/dist/chunks/{Messages-B3sGRx5A.js → Messages-Ch6cboMV.js} +2 -2
- package/dist/chunks/{Onboarding-cHcnsBGp.js → Onboarding-BrAJp0aL.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-CWCD_RpM.js → OverageCreditUpsell-Ds1cB7RC.js} +1 -1
- package/dist/chunks/PluginSettings-CGqEzejq.js +17 -0
- package/dist/chunks/{PromptInputFooterSuggestions-D5sAO6y-.js → PromptInputFooterSuggestions-egs9VvUs.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-n6hAdsto.js → PromptInputHelpMenu-SieM5NoY.js} +1 -1
- package/dist/chunks/{QueryEngine-cwdsr4dr.js → QueryEngine-CZZMl3PB.js} +1 -1
- package/dist/chunks/{REPL-CJzScgbZ.js → REPL-CG2N7E4Q.js} +6 -6
- package/dist/chunks/REPL-DvA910N_.js +1 -0
- package/dist/chunks/{RemoteCallout-CiA4rCEs.js → RemoteCallout-Cs-ro8_i.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-zdHfmvfj.js → RemoteSessionManager-B740Dp6m.js} +1 -1
- package/dist/chunks/{ResumeConversation-Rxwd6HAJ.js → ResumeConversation-DzV2zmuX.js} +1 -1
- package/dist/chunks/{SSETransport-BPbhCa2f.js → SSETransport-DtpMDekF.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-C4uO-Zx3.js +1 -0
- package/dist/chunks/{Settings-CxI_KHUj.js → Settings-XKw6FI_m.js} +2 -2
- package/dist/chunks/{TeleportProgress-DrulEQ7z.js → TeleportProgress-rYaHIEfe.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-D3FOLr0P.js → TeleportRepoMismatchDialog-DY97YZMB.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-DI5iRFND.js → TeleportResumeWrapper-jaQzyTCh.js} +1 -1
- package/dist/chunks/{ThemePicker-CQ7dfFtv.js → ThemePicker-BViWzLp3.js} +1 -1
- package/dist/chunks/{TrustDialog-CnVKrdxQ.js → TrustDialog-DGJ_BisZ.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-CPYeuppg.js → ValidationErrorsList-B8pRiGuy.js} +1 -1
- package/dist/chunks/{WelcomeV2-C-UXdIng.js → WelcomeV2-DqnbSdIu.js} +1 -1
- package/dist/chunks/{add-dir-xTz4COgn.js → add-dir-C2Hu3oE4.js} +1 -1
- package/dist/chunks/{agentDisplay-BuSReYxu.js → agentDisplay-XoDJhr03.js} +1 -1
- package/dist/chunks/{agents-Du9KYHqN.js → agents-BIHTGDYh.js} +1 -1
- package/dist/chunks/{agents-CiLlKN2I.js → agents-C4QXeHIJ.js} +1 -1
- package/dist/chunks/{allErrors-P3utlEeA.js → allErrors-1896uQA1.js} +1 -1
- package/dist/chunks/{ant-CBIfqmAb.js → ant-B6k6cBts.js} +1 -1
- package/dist/chunks/api-BsFW57_Q.js +1 -0
- package/dist/chunks/{api-B-5jqiMg.js → api-gqTA-D7n.js} +1 -1
- package/dist/chunks/{assistant-XOnU01yl.js → assistant-DJ9hd4uC.js} +1 -1
- package/dist/chunks/auth-8Vd3_U8t.js +1 -0
- package/dist/chunks/{auth-DT2yxy94.js → auth-BnSrKyJe.js} +1 -1
- package/dist/chunks/auth-DRTjfnGy.js +1 -0
- package/dist/chunks/{autoMode-CEMflt3g.js → autoMode-BNukrVAB.js} +1 -1
- package/dist/chunks/{autonomy-_N8aDaA8.js → autonomy-BEmI7WVW.js} +1 -1
- package/dist/chunks/{autonomy-Cg5zweUa.js → autonomy-DGcy5Rml.js} +1 -1
- package/dist/chunks/{autonomyPanel-I4yCy3Fr.js → autonomyPanel-fhge09AG.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-3i_d_WW5.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-DhF2lrQ9.js → backgroundHousekeeping-BVMf_Tjn.js} +2 -2
- package/dist/chunks/{branch-BIX-pyHp.js → branch-Bpe-gocq.js} +1 -1
- package/dist/chunks/{break-cache-BQfgkNAo.js → break-cache-C_p7Kmx2.js} +3 -3
- package/dist/chunks/{bridge-CYskzVt8.js → bridge-D12Shbkj.js} +2 -2
- package/dist/chunks/{bridgeConfig-5p_w4s5r.js → bridgeConfig-BhxRF2vm.js} +1 -1
- package/dist/chunks/bridgeConfig-CqIQ_rvD.js +1 -0
- package/dist/chunks/bridgeEnabled-D0XC5kNh.js +1 -0
- package/dist/chunks/{bridgeEnabled-DhFrLTbG.js → bridgeEnabled-SbB-6zdY.js} +1 -1
- package/dist/chunks/{bridgeMain-BX2AkLPs.js → bridgeMain-DHUpZFgL.js} +6 -6
- package/dist/chunks/bridgeMain-DUbQjgCp.js +1 -0
- package/dist/chunks/{bridgeMessaging-B5Lbzr8e.js → bridgeMessaging-DHc5dOhB.js} +1 -1
- package/dist/chunks/{btw-CWWFO7u8.js → btw-D9hMM5d2.js} +1 -1
- package/dist/chunks/caches-CWzT7e6Y.js +1 -0
- package/dist/chunks/{caches-DPqPIogk.js → caches-UeVVM3T0.js} +2 -2
- package/dist/chunks/{ccrClient-CTLnU9Y1.js → ccrClient-Iza0L8Zw.js} +1 -1
- package/dist/chunks/{clear-DCAgZwc4.js → clear-B4d38ssF.js} +1 -1
- package/dist/chunks/client-BzKQTXzF.js +1 -0
- package/dist/chunks/{color-CmJGInHL.js → color-D8VOyoYl.js} +1 -1
- package/dist/chunks/commands-DDamMmo4.js +1 -0
- package/dist/chunks/commitAttribution-CgohL8vD.js +1 -0
- package/dist/chunks/{commitAttribution-CGZr7XNO.js → commitAttribution-ChAgixdj.js} +1 -1
- package/dist/chunks/{compact-C6-lMHgn.js → compact-IFHwxjZ9.js} +1 -1
- package/dist/chunks/config-DY5-_kk_.js +1 -0
- package/dist/chunks/{config-3m_9zSrj.js → config-DmomySWC.js} +1 -1
- package/dist/chunks/config-WxgxrQoP.js +1 -0
- package/dist/chunks/{context-C9V4GF0n.js → context-Cl6BJ2vm.js} +1 -1
- package/dist/chunks/{context-noninteractive-BmC4o5xo.js → context-noninteractive-9hELVC29.js} +1 -1
- package/dist/chunks/context-noninteractive-Beij5MfU.js +1 -0
- package/dist/chunks/conversation-BBB91hEw.js +1 -0
- package/dist/chunks/{conversation-CYqqk0o7.js → conversation-BWVTM40Y.js} +1 -1
- package/dist/chunks/{createSSHSession-BL6j0AU5.js → createSSHSession-BM-5pbv6.js} +1 -1
- package/dist/chunks/createSession-CoQtL5Rj.js +1 -0
- package/dist/chunks/{createSession-D_sgO1Xy.js → createSession-Cvl1Q50F.js} +1 -1
- package/dist/chunks/{crossProjectResume-D5hTOfnE.js → crossProjectResume-BasMLl2n.js} +1 -1
- package/dist/chunks/{datadog-UkGdjL8-.js → datadog-CpqEQbHa.js} +1 -1
- package/dist/chunks/{desktop-HbYKh-VK.js → desktop-B_L6T6jI.js} +1 -1
- package/dist/chunks/{diff-nTV17iWX.js → diff-CVzOodeg.js} +1 -1
- package/dist/chunks/doctor-1L0TFuGw.js +1 -0
- package/dist/chunks/{entry-CCFI6-gM.js → entry-DHVYCR26.js} +1 -1
- package/dist/chunks/envLessBridgeConfig-CN0_44-p.js +1 -0
- package/dist/chunks/{envLessBridgeConfig-DXd10GXD.js → envLessBridgeConfig-Ck2-KMq0.js} +1 -1
- package/dist/chunks/{esm-CGoYrggU.js → esm-D5q6s4l8.js} +1 -1
- package/dist/chunks/{exit-ropaQiOr.js → exit-Bm1S_f3i.js} +1 -1
- package/dist/chunks/extra-usage-UHAWtypK.js +1 -0
- package/dist/chunks/{extra-usage-core-DLYHAInT.js → extra-usage-core-BFOolqoi.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-D8iszH3c.js → extra-usage-noninteractive-cUGZy0en.js} +1 -1
- package/dist/chunks/{extra-usage-g2Pw4zt_.js → extra-usage-zDHVtWKZ.js} +1 -1
- package/dist/chunks/{extraUsage-C2Ylufhj.js → extraUsage-Dq66zzqR.js} +1 -1
- package/dist/chunks/extractMemories-BcaklA33.js +1 -0
- package/dist/chunks/fast-DALAHO3d.js +1 -0
- package/dist/chunks/{fast-Dx2fTmWr.js → fast-MS7WZpD8.js} +1 -1
- package/dist/chunks/{feedback-DCQ4pJ3v.js → feedback-Fw4m28ZC.js} +1 -1
- package/dist/chunks/firstPartyEventLogger-CS9jVz6D.js +1 -0
- package/dist/chunks/{firstPartyEventLogger-BNGPPBNP.js → firstPartyEventLogger-CoSUd0a1.js} +2 -2
- package/dist/chunks/{flushGate-XaheIZZT.js → flushGate-De-yppeo.js} +1 -1
- package/dist/chunks/{gemini-BCCLHK3K.js → gemini-BPziscyN.js} +1 -1
- package/dist/chunks/{generateRecap-BhvbixY2.js → generateRecap-jGDLI_wU.js} +1 -1
- package/dist/chunks/{generateSessionName-CN1oh7Fa.js → generateSessionName-hDJ6HBJ1.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-B4AM8luI.js → githubRepoPathMapping-qAoiyj6P.js} +1 -1
- package/dist/chunks/{goal-Bp6fyGqo.js → goal-CFx4eRkf.js} +1 -1
- package/dist/chunks/{grok-ax26ju8y.js → grok-Byblph7F.js} +1 -1
- package/dist/chunks/{grove-DrBVaZSN.js → grove-CpqjcGCb.js} +1 -1
- package/dist/chunks/{heapdump-JseysNDr.js → heapdump-C4kPlqGt.js} +1 -1
- package/dist/chunks/{help-DR9hKneR.js → help-B1h-faJ3.js} +1 -1
- package/dist/chunks/hooks-DPLIIpAD.js +1 -0
- package/dist/chunks/{hooks-C5n23H1E.js → hooks-X6J03MnA.js} +1 -1
- package/dist/chunks/hostGuard-BHI6Q8Mt.js +1 -0
- package/dist/chunks/inboundAttachments-BekVc0W-.js +1 -0
- package/dist/chunks/{inboundAttachments-Cp8XvLMZ.js → inboundAttachments-CUJE3KaU.js} +1 -1
- package/dist/chunks/{initReplBridge-DJs28ZkI.js → initReplBridge-JQ-afRx9.js} +1 -1
- package/dist/chunks/{install-C7qTB0V5.js → install-D5YORIJL.js} +1 -1
- package/dist/chunks/{instrumentation-CLZttr_u.js → instrumentation-Bw3CxPQf.js} +3 -3
- package/dist/chunks/{job-BhiazwPH.js → job-DOWtcltx.js} +1 -1
- package/dist/chunks/{keybindings-CkL8BzUt.js → keybindings-BLw5J-Zj.js} +1 -1
- package/dist/chunks/{language-DIw2871r.js → language-C6Fq-XOZ.js} +1 -1
- package/dist/chunks/language-Cqw5gYJR.js +1 -0
- package/dist/chunks/{launchAgentsPlatform-j-mWpwW1.js → launchAgentsPlatform-jWWf-Lk9.js} +1 -1
- package/dist/chunks/{launchLocalMemory-DmoXp0Xo.js → launchLocalMemory-kHeD0I0y.js} +1 -1
- package/dist/chunks/{launchLocalVault-1uKe0HjA.js → launchLocalVault-DLqkOjmb.js} +1 -1
- package/dist/chunks/{launchMemoryStores-SxDKjHJ3.js → launchMemoryStores-Ct7AVXrO.js} +1 -1
- package/dist/chunks/{launchOnboarding-CTtpnXcs.js → launchOnboarding-Cc6WwPX9.js} +1 -1
- package/dist/chunks/{launchSchedule-BDVnGhaL.js → launchSchedule-ZyvuvjgU.js} +1 -1
- package/dist/chunks/{launchSkillStore-SmMLxp4K.js → launchSkillStore-BejQnLog.js} +1 -1
- package/dist/chunks/{launchTeleport-B472ZSGz.js → launchTeleport-8CuYUfIR.js} +1 -1
- package/dist/chunks/{launchVault-CsyBgxle.js → launchVault-DIvIOuPh.js} +1 -1
- package/dist/chunks/{loadAgentsDir-Clu7Uk6a.js → loadAgentsDir-D206qwP3.js} +47 -47
- package/dist/chunks/loadAgentsDir-TZjwTqdr.js +1 -0
- package/dist/chunks/{loadPluginHooks-Cvd5VdjQ.js → loadPluginHooks-Ddhsyn0_.js} +1 -1
- package/dist/chunks/{localSearch-iA6JTk19.js → localSearch-CzrbOklu.js} +1 -1
- package/dist/chunks/localSearch-DrOAL6f4.js +1 -0
- package/dist/chunks/{logoV2Utils-YHBJLIrC.js → logoV2Utils-8M56V7oN.js} +1 -1
- package/dist/chunks/{magicDocs-Bf1fqnHN.js → magicDocs-DWjL2k7P.js} +1 -1
- package/dist/chunks/{main-gtV_TqXP.js → main-BohPzJFF.js} +16 -16
- package/dist/chunks/{mappers-C8lYERPX.js → mappers-BDMZFgKx.js} +1 -1
- package/dist/chunks/{mcp-Ci0OPVrR.js → mcp-Bt1ITh-Z.js} +1 -1
- package/dist/chunks/{mcp-CNuhEGP6.js → mcp-CwJ-AIpt.js} +2 -2
- package/dist/chunks/{mcp-CwIYauZl.js → mcp-W0LFoyFR.js} +1 -1
- package/dist/chunks/{memory-DCGqfQ1U.js → memory-3wV7m7UU.js} +1 -1
- package/dist/chunks/{mode-DO6g7nkX.js → mode-CUkHFkju.js} +1 -1
- package/dist/chunks/{model-DLXL0CNu.js → model-BY3auM2c.js} +1 -1
- package/dist/chunks/model-CKkOnnnx.js +1 -0
- package/dist/chunks/model-DRXcJyU9.js +1 -0
- package/dist/chunks/{nativeInstaller-OPuO2sm_.js → nativeInstaller-CA5d6_G7.js} +1 -1
- package/dist/chunks/{onChangeAppState-CHhRDkM7.js → onChangeAppState-DBmy2Ow_.js} +1 -1
- package/dist/chunks/{openai-HOebt-8k.js → openai-Cbomn0Ws.js} +1 -1
- package/dist/chunks/{overageCreditGrant-Bi1CTBAx.js → overageCreditGrant-DsUrmeBh.js} +1 -1
- package/dist/chunks/{panel-CrTPqXCv.js → panel-BSZGX6jN.js} +1 -1
- package/dist/chunks/{panelCall-D0eURklm.js → panelCall-BsVoL1uF.js} +1 -1
- package/dist/chunks/{partition-C8RSL3SQ.js → partition-BAakXjvj.js} +1 -1
- package/dist/chunks/{passes-BJci5SM_.js → passes-CLRt7Cvm.js} +1 -1
- package/dist/chunks/{permissions-JU9CGHgI.js → permissions-BVSFuwNP.js} +1 -1
- package/dist/chunks/{pidLock-Bd2e6xuT.js → pidLock-D5rUnDB-.js} +2 -2
- package/dist/chunks/{plan-D4gMsK7i.js → plan-SYZ4DXR8.js} +1 -1
- package/dist/chunks/{plugin-CwCo5Kik.js → plugin-Bfjzhmrk.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-CO-n9bqe.js → pluginAutoupdate-reO2PgtQ.js} +1 -1
- package/dist/chunks/{pluginBlocklist-5qbaTRbV.js → pluginBlocklist-C3H2afWG.js} +1 -1
- package/dist/chunks/{pluginCliCommands-I-lsw_us.js → pluginCliCommands-lqdxdkQp.js} +1 -1
- package/dist/chunks/{pluginFlagging-DNPBbJZo.js → pluginFlagging-D9HKAGBC.js} +1 -1
- package/dist/chunks/{pluginOperations-Cz6eQ0Vu.js → pluginOperations-EN3EKLux.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-DJ9fslCK.js → pluginStartupCheck-BY73BMT2.js} +1 -1
- package/dist/chunks/pluginStartupCheck-CwWOlveD.js +1 -0
- package/dist/chunks/{plugins-CzJIuPfb.js → plugins-Dn6ceWrT.js} +1 -1
- package/dist/chunks/policyLimits-CkTI5KEt.js +1 -0
- package/dist/chunks/{poor-Dha9p9RF.js → poor-j-y-bv8o.js} +1 -1
- package/dist/chunks/{poorMode-1NLYiS3Y.js → poorMode-DhzFKpPl.js} +1 -1
- package/dist/chunks/poorMode-V11s-3cf.js +1 -0
- package/dist/chunks/{print-BL4EUT5Z.js → print-Db_VXmfO.js} +4 -4
- package/dist/chunks/{privacy-settings-6ZWxR4Qt.js → privacy-settings-DHMJREbb.js} +1 -1
- package/dist/chunks/{processBashCommand-BZs9wggV.js → processBashCommand-BcM_fhV9.js} +1 -1
- package/dist/chunks/{processSlashCommand-D8lKLNzM.js → processSlashCommand-DEVo3GPX.js} +1 -1
- package/dist/chunks/{prompt-Bg_1U0gO.js → prompt-BNHtszmZ.js} +1 -1
- package/dist/chunks/prompt-CrX31AGm.js +1 -0
- package/dist/chunks/prompt-IAvMxKDl.js +1 -0
- package/dist/chunks/{promptEditor-BhYDmwdS.js → promptEditor-DeMrXUir.js} +1 -1
- package/dist/chunks/{protocolHandler-Dnb7lITm.js → protocolHandler-BHxBy84Z.js} +1 -1
- package/dist/chunks/{rate-limit-options-DVzT3eWH.js → rate-limit-options-DIudL9fb.js} +1 -1
- package/dist/chunks/{rcDebugLog-VKwMl0yg.js → rcDebugLog-CUy1_F23.js} +1 -1
- package/dist/chunks/{reconciler-BdRXZTJf.js → reconciler-BXpPyfSY.js} +1 -1
- package/dist/chunks/{referral-BlrMpBAV.js → referral-CUaIo_vT.js} +1 -1
- package/dist/chunks/{refresh-jwqnoK2h.js → refresh-CuaVBIQ0.js} +1 -1
- package/dist/chunks/{registerProtocol-CuKZAiCc.js → registerProtocol-B7Fzdofu.js} +1 -1
- package/dist/chunks/{release-notes-BgP8u7NE.js → release-notes-fbfv2DC0.js} +1 -1
- package/dist/chunks/{releaseNotes-CunqVlbU.js → releaseNotes-CxAHFLPl.js} +2 -2
- package/dist/chunks/{reload-plugins-CD9TzvFm.js → reload-plugins-B9IT9CFA.js} +1 -1
- package/dist/chunks/{remote-env-QaP_W_sv.js → remote-env-BOklGlll.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-9-HVMo63.js → remoteBridgeCore-j0bG1zjv.js} +1 -1
- package/dist/chunks/{remoteManagedSettings-jZ6u8ZBT.js → remoteManagedSettings-Cq994lyc.js} +1 -1
- package/dist/chunks/{rename-29qxHf8W.js → rename-Iev7wQsI.js} +1 -1
- package/dist/chunks/{resume-D-SpOy_1.js → resume-y7MCTZHJ.js} +1 -1
- package/dist/chunks/{runtimeObserver-DOEcrylu.js → runtimeObserver-BZcJ1FbH.js} +1 -1
- package/dist/chunks/{runtimeObserver-Dm3LIUMp.js → runtimeObserver-CyzLASla.js} +2 -2
- package/dist/chunks/sandbox-adapter-Cu1FYrkh.js +1 -0
- package/dist/chunks/{sandbox-toggle-B61AeBor.js → sandbox-toggle-CWpBO228.js} +1 -1
- package/dist/chunks/searchExtraTools-BUOUds7p.js +1 -0
- package/dist/chunks/{session-RwJCIIcs.js → session-DL4cA_8l.js} +1 -1
- package/dist/chunks/{sessionDiscovery-dkFeWcA3.js → sessionDiscovery-DAfNKqp1.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-2cgIIxPk.js +1 -0
- package/dist/chunks/{sessionMemory-btARBn8H.js → sessionMemory-BS8_TbKj.js} +1 -1
- package/dist/chunks/sessionMemory-D5fSHXvZ.js +1 -0
- package/dist/chunks/sessionMemoryUtils-BWUztNh6.js +1 -0
- package/dist/chunks/sessionObserver-ChfQtK2m.js +1 -0
- package/dist/chunks/{sessionObserver-CSOYgsvH.js → sessionObserver-ShbCwJ8x.js} +1 -1
- package/dist/chunks/sessionStorage-Cf5wmnyB.js +1 -0
- package/dist/chunks/{sessionTitle-CLOlPZ_M.js → sessionTitle-coed9IuJ.js} +1 -1
- package/dist/chunks/{sessionTracing-D8wr9j4X.js → sessionTracing-D9rUyiq0.js} +1 -1
- package/dist/chunks/{settings-Dlp5JTa_.js → settings-BovzmwMP.js} +2 -2
- package/dist/chunks/{settingsSync-QWA0VZSu.js → settingsSync-PqU9XGJq.js} +1 -1
- package/dist/chunks/{setup-UI9uv2-K.js → setup-B_FOvNpp.js} +2 -2
- package/dist/chunks/{shadowedRuleDetection-CXsmUY2o.js → shadowedRuleDetection-D1wsAdpp.js} +1 -1
- package/dist/chunks/{sideQuestion-CHpOVzY5.js → sideQuestion-wSi38p81.js} +1 -1
- package/dist/chunks/sinks-BpcRrN_T.js +1 -0
- package/dist/chunks/{sinks-1hFrW9HK.js → sinks-C_Dl1p4K.js} +2 -2
- package/dist/chunks/{skill-learning-Ck17rwH8.js → skill-learning-B5tmc7EX.js} +1 -1
- package/dist/chunks/{skillChangeDetector-s0F9Yf9a.js → skillChangeDetector-DNqohXxz.js} +1 -1
- package/dist/chunks/{skillGapStore-BJ1h2LVr.js → skillGapStore-D-kQKVDZ.js} +1 -1
- package/dist/chunks/{skillGapStore-DyqNKuNy.js → skillGapStore-Df5BWAk5.js} +2 -2
- package/dist/chunks/{skillGenerator-BT8NGzXT.js → skillGenerator-DbcdpAkw.js} +2 -2
- package/dist/chunks/skillLearning-C5cXZE6_.js +1 -0
- package/dist/chunks/{skillLearning-Cn9Uw0Kd.js → skillLearning-ClRiDcJH.js} +1 -1
- package/dist/chunks/{skillPanel-N0GoWjIi.js → skillPanel-LBd4E-MM.js} +3 -3
- package/dist/chunks/{skillSearchPanel-CTwtgTzy.js → skillSearchPanel-CErRnUwo.js} +2 -2
- package/dist/chunks/{skills-Bv3lH-aA.js → skills-CBKhfg_a.js} +1 -1
- package/dist/chunks/{stats-C1Ff6w4i.js → stats-BY4dskVg.js} +1 -1
- package/dist/chunks/{status-DyXiBa0m.js → status-BnJIXtKl.js} +2 -2
- package/dist/chunks/{status-FD7HVYS7.js → status-DU-B4SMW.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-kTp9Rdk6.js → statusNoticeHelpers-CzTuGNuC.js} +1 -1
- package/dist/chunks/{tag-RzOSA5T0.js → tag-B-wVW9Aj.js} +1 -1
- package/dist/chunks/{tasks-eJrOcdhB.js → tasks-CBVL005y.js} +1 -1
- package/dist/chunks/{teleport-ABA-hdmP.js → teleport-dtqQXM4x.js} +1 -1
- package/dist/chunks/{templateJobs-BnOBSFtq.js → templateJobs-D6998LcG.js} +1 -1
- package/dist/chunks/{terminalSetup-BfvmoJaK.js → terminalSetup-0SBdyKF5.js} +1 -1
- package/dist/chunks/{terminalSetup-D_P5iZmq.js → terminalSetup-CuV-qU6v.js} +1 -1
- package/dist/chunks/{theme-S0kVMVt4.js → theme-p0AooruD.js} +1 -1
- package/dist/chunks/thinkback-Catprqs_.js +1 -0
- package/dist/chunks/{thinkback-HyW_R_88.js → thinkback-DI2NpvG-.js} +1 -1
- package/dist/chunks/{thinkback-play-H6md4czq.js → thinkback-play-CqrIRx2o.js} +1 -1
- package/dist/chunks/{toolEventObserver-BAFzvePj.js → toolEventObserver-DTccwC3c.js} +1 -1
- package/dist/chunks/{toolEventObserver--Z6jENks.js → toolEventObserver-DlH73w-S.js} +1 -1
- package/dist/chunks/{toolPool-CR61XXm3.js → toolPool-B64V-jmK.js} +1 -1
- package/dist/chunks/{trustedDevice-Dn4rXbxT.js → trustedDevice-BTYoQCkC.js} +1 -1
- package/dist/chunks/trustedDevice-CiwjT_Y6.js +1 -0
- package/dist/chunks/{ultrareviewCommand-mYDTBCFD.js → ultrareviewCommand-BDFUS3hf.js} +1 -1
- package/dist/chunks/undercover-XYapZ_SS.js +1 -0
- package/dist/chunks/{undercover-CdapzvNH.js → undercover-vuTpCnQJ.js} +2 -2
- package/dist/chunks/{updateCCB-DPShheOr.js → updateCCB-DFL5Wt_I.js} +1 -1
- package/dist/chunks/{upgrade-BOeakAP6.js → upgrade-D5qwcaWQ.js} +1 -1
- package/dist/chunks/upgrade-DIg3j929.js +1 -0
- package/dist/chunks/{upload-BXQsDtLW.js → upload-B_yADHX9.js} +1 -1
- package/dist/chunks/{usage-iNQzY960.js → usage-C0SnnC-i.js} +1 -1
- package/dist/chunks/usage-CYJKE8N6.js +1 -0
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-CntByfTQ.js → useExitOnCtrlCDWithKeybindings-DKIqRraH.js} +1 -1
- package/dist/chunks/useMainLoopModel-XetDUXd-.js +1 -0
- package/dist/chunks/{useManagePlugins-B8HD0RUh.js → useManagePlugins-B2KhKiu5.js} +1 -1
- package/dist/chunks/{useMergedTools-DfchLQZC.js → useMergedTools-CKvwz_Zt.js} +1 -1
- package/dist/chunks/{useSearchInput-H-8hJeFD.js → useSearchInput-D1Vr2Js1.js} +1 -1
- package/dist/chunks/{useSettingsErrors-BF5i5Xju.js → useSettingsErrors-B7BXHchG.js} +1 -1
- package/dist/chunks/{util-CoicMvOv.js → util-BaDs-wL5.js} +1 -1
- package/dist/chunks/{validatePlugin-z2fcngf8.js → validatePlugin-DtiYlXby.js} +1 -1
- package/dist/chunks/{vim-DdvQlLDm.js → vim-C-icQDz1.js} +1 -1
- package/dist/chunks/{workerRegistry-CzqQwCHC.js → workerRegistry-ChqPPIaO.js} +1 -1
- package/dist/chunks/worktree-DAn8ooa1.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-CKfn7U1R.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-TypH-X8e.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-wGQuFt41.js +0 -1
- package/dist/chunks/Doctor-CcJUwSQn.js +0 -1
- package/dist/chunks/Grove-DPkIjqg8.js +0 -1
- package/dist/chunks/Grove-Dsd7F39b.js +0 -11
- package/dist/chunks/PluginSettings-B0jbwB2M.js +0 -17
- package/dist/chunks/REPL-DlBJIPCw.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-VP87ErGx.js +0 -1
- package/dist/chunks/api-BiwZmmsh.js +0 -1
- package/dist/chunks/auth-BQa4kzQo.js +0 -1
- package/dist/chunks/auth-UAJhZNmZ.js +0 -1
- package/dist/chunks/backgroundHousekeeping-BUUZ7Csq.js +0 -1
- package/dist/chunks/bridgeConfig-DWEqKbXk.js +0 -1
- package/dist/chunks/bridgeEnabled-CjVCMwnq.js +0 -1
- package/dist/chunks/bridgeMain-6lollTtZ.js +0 -1
- package/dist/chunks/caches-C46fa77L.js +0 -1
- package/dist/chunks/client-Bup0Sgcn.js +0 -1
- package/dist/chunks/commands-BdB1eFvP.js +0 -1
- package/dist/chunks/commitAttribution-D6J3NuhB.js +0 -1
- package/dist/chunks/config-Bxt1UH1T.js +0 -1
- package/dist/chunks/config-CjjXZfNi.js +0 -1
- package/dist/chunks/context-noninteractive-DvGo1l7b.js +0 -1
- package/dist/chunks/conversation-CH9ouFai.js +0 -1
- package/dist/chunks/createSession-DUfOAeyE.js +0 -1
- package/dist/chunks/doctor-7fgVhEKL.js +0 -1
- package/dist/chunks/envLessBridgeConfig-B2HYnEKo.js +0 -1
- package/dist/chunks/extra-usage-CLhv1Z4g.js +0 -1
- package/dist/chunks/extractMemories-B2IAvbXM.js +0 -1
- package/dist/chunks/fast-_G6zcFye.js +0 -1
- package/dist/chunks/firstPartyEventLogger-C9LzVy6y.js +0 -1
- package/dist/chunks/hooks-BUJLxdFJ.js +0 -1
- package/dist/chunks/hostGuard-C5xydXZI.js +0 -1
- package/dist/chunks/inboundAttachments-C0nMTtCi.js +0 -1
- package/dist/chunks/language-DfOAuDFc.js +0 -1
- package/dist/chunks/loadAgentsDir-DTbJJff-.js +0 -1
- package/dist/chunks/localSearch-DKv8PRLD.js +0 -1
- package/dist/chunks/model-BQF64tZx.js +0 -1
- package/dist/chunks/model-DvrvG6BB.js +0 -1
- package/dist/chunks/pluginStartupCheck-CoW7073W.js +0 -1
- package/dist/chunks/policyLimits-BkjgMQD0.js +0 -1
- package/dist/chunks/poorMode-qlxqU8Hm.js +0 -1
- package/dist/chunks/prompt-CN7gBNKS.js +0 -1
- package/dist/chunks/prompt-D-zHhqp8.js +0 -1
- package/dist/chunks/sandbox-adapter-LzTcKwBp.js +0 -1
- package/dist/chunks/searchExtraTools-CbJJQqzH.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-B_nNW0zE.js +0 -1
- package/dist/chunks/sessionMemory-C4JAUZ6V.js +0 -1
- package/dist/chunks/sessionMemoryUtils-BlqAy8oR.js +0 -1
- package/dist/chunks/sessionObserver-DMvWci8-.js +0 -1
- package/dist/chunks/sessionStorage-Diyuvt20.js +0 -1
- package/dist/chunks/sinks-CXq8-7Qn.js +0 -1
- package/dist/chunks/skillLearning-1ZfYIzfL.js +0 -1
- package/dist/chunks/thinkback-C6gV2LpU.js +0 -1
- package/dist/chunks/trustedDevice-DUrFWupL.js +0 -1
- package/dist/chunks/undercover-k3JoOKAb.js +0 -1
- package/dist/chunks/upgrade-D7iGU0PQ.js +0 -1
- package/dist/chunks/usage-DbRdMJog.js +0 -1
- package/dist/chunks/useMainLoopModel-DHkRIgNs.js +0 -1
- package/dist/chunks/worktree-DMhP5T0p.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,o as r}from"./envUtils-DSxRz_kt.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{n as o,t as s}from"./axios-DaWTGg7G.js";import{I as c,P as l,fi as u,t as d}from"./src-CDCSSo0U2.js";import{t as f}from"./jsx-runtime-Bb4Xn-E0.js";import{n as p,r as m}from"./analytics-BotDBGh0.js";import{l as h,u as g}from"./oauth-BqJqV-2M.js";import{o as _,u as v}from"./api-B-5jqiMg.js";import{n as y,r as b}from"./hostGuard-C5xydXZI.js";import{join as x}from"node:path";import{mkdir as S,writeFile as C}from"node:fs/promises";function w(e){return new Promise(t=>setTimeout(t,e))}async function T(){let e;try{e=(await v()).apiKey}catch(e){let t=e instanceof Error?e.message:String(e);throw new B(t,501)}return y(E()),{"x-api-key":e,"anthropic-version":`2023-06-01`,"content-type":`application/json`}}function E(){return`${h().BASE_API_URL}/v1/skills?beta=true`}function D(e){return`${h().BASE_API_URL}/v1/skills/${e}?beta=true`}function O(e){return`${h().BASE_API_URL}/v1/skills/${e}/versions?beta=true`}function k(e,t){return`${h().BASE_API_URL}/v1/skills/${e}/versions/${t}?beta=true`}function A(e){if(o.isAxiosError(e)){let t=e.response?.status??0;if(t===401)return new B(`Authentication failed.`,401);if(t===403)return new B(`Subscription required. Skill store requires a Claude Pro/Max/Team subscription.`,403);if(t===404)return new B(`Skill or version not found.`,404);if(t===429){let t=e.response?.headers?.[`retry-after`]??``,n=t?` Retry after ${t}s.`:``;return new B(`Rate limit exceeded.${n}`,429)}let n=(e.response?.data)?.error?.message??e.message;return new B(n,t)}return e instanceof B?e:new B(e instanceof Error?e.message:String(e),0)}function j(e){if(!e)return null;let t=Number(e);if(!Number.isNaN(t)&&t>=0)return t*1e3;let n=Date.parse(e);return Number.isNaN(n)?null:Math.max(0,n-Date.now())}async function M(e){let t;for(let n=0;n<z;n++)try{return await e()}catch(e){let r=A(e);if(r.statusCode>=500){t=r,n<z-1&&await w(j(o.isAxiosError(e)?e.response?.headers?.[`retry-after`]:void 0)??500*2**n);continue}throw r}throw t??new B(`Request failed after retries`,0)}async function N(){return M(async()=>{let e=await T();return(await o.get(E(),{headers:e})).data.data??[]})}async function P(e){return M(async()=>{let t=await T();return(await o.get(D(e),{headers:t})).data})}async function F(e){return M(async()=>{let t=await T();return(await o.get(O(e),{headers:t})).data.data??[]})}async function I(e,t){return M(async()=>{let n=await T();return(await o.get(k(e,t),{headers:n})).data})}async function L(e,t){return M(async()=>{let n=await T(),r={name:e,body:t};return(await o.post(E(),r,{headers:n})).data})}async function R(e){return M(async()=>{let t=await T();await o.delete(D(e),{headers:t})})}var z,B,V=e((()=>{s(),g(),b(),_(),i(),z=3,B=class extends Error{constructor(e,t){super(e),a(this,`statusCode`,void 0),this.statusCode=t,this.name=`SkillsApiError`}}}));function H({skill:e}){let t=e.created_at?new Date(e.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,W.jsxs)(c,{children:[(0,W.jsx)(l,{bold:!0,children:e.skill_id}),(0,W.jsx)(l,{dimColor:!0,children:` · `}),(0,W.jsx)(l,{children:e.name}),e.deprecated?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(l,{dimColor:!0,children:` · `}),(0,W.jsx)(l,{color:`warning`,children:`deprecated`})]}):null]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Owner: `,e.owner,e.owner_symbol?` (${e.owner_symbol})`:``]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,t]})]})}function U(e){if(e.mode===`list`)return e.skills.length===0?(0,W.jsx)(c,{children:(0,W.jsx)(l,{dimColor:!0,children:`No skills found. Use /skill-store create <name> <markdown> to publish one.`})}):(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Skills (`,e.skills.length,`)`]})}),e.skills.map(e=>(0,W.jsx)(H,{skill:e},e.skill_id))]});if(e.mode===`detail`){let{skill:t}=e,n=t.created_at?new Date(t.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Skill: `,t.skill_id]})}),(0,W.jsxs)(l,{children:[`Name: `,t.name]}),(0,W.jsxs)(l,{children:[`Owner: `,t.owner,t.owner_symbol?` (${t.owner_symbol})`:``]}),(0,W.jsxs)(l,{children:[`Status:`,` `,(0,W.jsx)(l,{color:t.deprecated?`warning`:`success`,children:t.deprecated?`deprecated`:`active`})]}),t.allowed_tools&&t.allowed_tools.length>0?(0,W.jsxs)(l,{children:[`Allowed tools: `,t.allowed_tools.join(`, `)]}):null,(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,n]})]})}if(e.mode===`versions`){let{id:t,versions:n}=e;return n.length===0?(0,W.jsx)(c,{children:(0,W.jsxs)(l,{dimColor:!0,children:[`No versions found for skill `,t,`.`]})}):(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Versions for `,t,` (`,n.length,`)`]})}),n.map(e=>{let t=e.created_at?new Date(e.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,W.jsx)(l,{bold:!0,children:e.version}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,t]}),(0,W.jsx)(l,{dimColor:!0,children:e.body.length>80?`${e.body.slice(0,80)}…`:e.body})]},e.version)})]})}if(e.mode===`version-detail`){let{version:t}=e,n=t.created_at?new Date(t.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Version: `,t.version,` (skill: `,t.skill_id,`)`]})}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,n]}),(0,W.jsx)(c,{marginTop:1,children:(0,W.jsx)(l,{children:t.body})})]})}if(e.mode===`created`){let{skill:t}=e;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{children:(0,W.jsx)(l,{bold:!0,color:`success`,children:`Skill created`})}),(0,W.jsxs)(l,{children:[`ID: `,t.skill_id]}),(0,W.jsxs)(l,{children:[`Name: `,t.name]})]})}return e.mode===`deleted`?(0,W.jsx)(c,{children:(0,W.jsxs)(l,{color:`success`,children:[`Skill `,e.id,` deleted.`]})}):e.mode===`installed`?(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{children:(0,W.jsx)(l,{bold:!0,color:`success`,children:`Skill installed`})}),(0,W.jsxs)(l,{children:[`Name: `,e.skillName]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Path: `,e.path]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Load with: /skills (bundled skills are not auto-loaded; place in `,e.path,`)`]})]}):(0,W.jsx)(c,{children:(0,W.jsx)(l,{color:`error`,children:e.message})})}var W,G=e((()=>{u(),d(),W=f()}));function K(e){let t=e.trim();if(t===``||t===`list`)return{action:`list`};let n=t.indexOf(` `),r=n===-1?t:t.slice(0,n),i=n===-1?``:t.slice(n+1).trim();if(r===`get`){if(!i)return{action:`invalid`,reason:`get requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`get`,id:e}:{action:`invalid`,reason:`get requires a skill id`}}if(r===`versions`){if(!i)return{action:`invalid`,reason:`versions requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`versions`,id:e}:{action:`invalid`,reason:`versions requires a skill id`}}if(r===`version`){let e=i.split(/\s+/);return e.length<2||!e[0]||!e[1]?{action:`invalid`,reason:`version requires a skill id and version, e.g. version sk_123 v1`}:{action:`version`,id:e[0],version:e[1]}}if(r===`create`){let e=i.indexOf(` `);if(!i||e===-1)return{action:`invalid`,reason:`create requires a skill name and markdown body, e.g. create my-skill "# My Skill\\nContent"`};let t=i.slice(0,e).trim(),n=i.slice(e+1).trim();return t?n?{action:`create`,name:t,markdown:n}:{action:`invalid`,reason:`create requires a non-empty markdown body`}:{action:`invalid`,reason:`create requires a non-empty skill name`}}if(r===`delete`){if(!i)return{action:`invalid`,reason:`delete requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`delete`,id:e}:{action:`invalid`,reason:`delete requires a skill id`}}if(r===`install`){if(!i)return{action:`invalid`,reason:`install requires a skill id (optionally with @version), e.g. install sk_123 or install sk_123@v2`};let e=i.split(/\s+/)[0];if(!e)return{action:`invalid`,reason:`install requires a skill id`};let t=e.indexOf(`@`);if(t===-1)return{action:`install`,id:e,version:void 0};let n=e.slice(0,t),r=e.slice(t+1);return n?r?{action:`install`,id:n,version:r}:{action:`invalid`,reason:`install requires a non-empty version after @`}:{action:`invalid`,reason:`install requires a non-empty skill id before @`}}return{action:`invalid`,reason:`Unknown sub-command "${r}". ${q}`}}var q,J=e((()=>{q=`Usage: /skill-store list | get ID | versions ID | version ID VER | create NAME MARKDOWN | delete ID | install ID[@VERSION]`})),Y,X,Z;e((()=>{Y=t(u(),1),p(),r(),V(),G(),J(),X=`Usage: /skill-store list | get ID | versions ID | version ID VER | create NAME MARKDOWN | delete ID | install ID[@VERSION]`,Z=async(e,t,r)=>{m(`tengu_skill_store_started`,{args:r??``});let i=K(r??``);if(i.action===`invalid`)return m(`tengu_skill_store_failed`,{reason:i.reason}),e(`${X}\n${i.reason}`,{display:`system`}),null;if(i.action===`list`){m(`tengu_skill_store_list`,{});try{let t=await N();return e(t.length===0?`No skills found in the marketplace.`:`${t.length} skill(s) available.`,{display:`system`}),Y.createElement(U,{mode:`list`,skills:t})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to list skills: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}if(i.action===`get`){let{id:t}=i;m(`tengu_skill_store_get`,{id:t});try{let n=await P(t);return e(`Skill ${t} fetched.`,{display:`system`}),Y.createElement(U,{mode:`detail`,skill:n})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to get skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}if(i.action===`versions`){let{id:t}=i;m(`tengu_skill_store_versions`,{id:t});try{let n=await F(t);return e(n.length===0?`No versions found for skill ${t}.`:`${n.length} version(s) for skill ${t}.`,{display:`system`}),Y.createElement(U,{mode:`versions`,id:t,versions:n})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to list versions for skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}if(i.action===`version`){let{id:t,version:n}=i;m(`tengu_skill_store_version`,{id:t});try{let r=await I(t,n);return e(`Skill ${t}@${n} fetched.`,{display:`system`}),Y.createElement(U,{mode:`version-detail`,version:r})}catch(r){let i=r instanceof Error?r.message:String(r);return m(`tengu_skill_store_failed`,{reason:i}),e(`Failed to get version ${n} for skill ${t}: ${i}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:i})}}if(i.action===`create`){let{name:t,markdown:n}=i;m(`tengu_skill_store_create`,{name:t});try{let r=await L(t,n);return e(`Skill created: ${r.skill_id}`,{display:`system`}),Y.createElement(U,{mode:`created`,skill:r})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to create skill: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}if(i.action===`delete`){let{id:t}=i;m(`tengu_skill_store_delete`,{id:t});try{return await R(t),e(`Skill ${t} deleted.`,{display:`system`}),Y.createElement(U,{mode:`deleted`,id:t})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to delete skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}let{id:a,version:o}=i;m(`tengu_skill_store_install`,{id:a});try{let t,r;if(o!==void 0){let e=await I(a,o);r=e.body,t=e.skill_id}else{let n=await P(a),i=await F(a);if(i.length===0)return e(`Skill ${a} has no published versions to install.`,{display:`system`}),Y.createElement(U,{mode:`error`,message:`Skill ${a} has no published versions to install.`});let o=[...i].sort((e,t)=>{let n=e.created_at?new Date(e.created_at).getTime():0;return(t.created_at?new Date(t.created_at).getTime():0)-n})[0];if(!o)return e(`Skill ${a} has no published versions to install.`,{display:`system`}),Y.createElement(U,{mode:`error`,message:`Skill ${a} has no published versions to install.`});r=o.body,t=n.name}let i=t.replace(/[^a-zA-Z0-9_-]/g,`-`).replace(/^-+|-+$/g,``)||a,s=x(n(),`skills`,i),c=x(s,`SKILL.md`);return await S(s,{recursive:!0}),await C(c,r,`utf-8`),e(`Skill installed to ${c}`,{display:`system`}),Y.createElement(U,{mode:`installed`,skillName:i,path:c})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to install skill ${a}: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}}))();export{Z as callSkillStore};
|
|
1
|
+
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,o as r}from"./envUtils-DSxRz_kt.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{n as o,t as s}from"./axios-DaWTGg7G.js";import{I as c,P as l,fi as u,t as d}from"./src-CDCSSo0U2.js";import{t as f}from"./jsx-runtime-Bb4Xn-E0.js";import{n as p,r as m}from"./analytics-BotDBGh0.js";import{l as h,u as g}from"./oauth-BqJqV-2M.js";import{o as _,u as v}from"./api-gqTA-D7n.js";import{n as y,r as b}from"./hostGuard-BHI6Q8Mt.js";import{join as x}from"node:path";import{mkdir as S,writeFile as C}from"node:fs/promises";function w(e){return new Promise(t=>setTimeout(t,e))}async function T(){let e;try{e=(await v()).apiKey}catch(e){let t=e instanceof Error?e.message:String(e);throw new B(t,501)}return y(E()),{"x-api-key":e,"anthropic-version":`2023-06-01`,"content-type":`application/json`}}function E(){return`${h().BASE_API_URL}/v1/skills?beta=true`}function D(e){return`${h().BASE_API_URL}/v1/skills/${e}?beta=true`}function O(e){return`${h().BASE_API_URL}/v1/skills/${e}/versions?beta=true`}function k(e,t){return`${h().BASE_API_URL}/v1/skills/${e}/versions/${t}?beta=true`}function A(e){if(o.isAxiosError(e)){let t=e.response?.status??0;if(t===401)return new B(`Authentication failed.`,401);if(t===403)return new B(`Subscription required. Skill store requires a Claude Pro/Max/Team subscription.`,403);if(t===404)return new B(`Skill or version not found.`,404);if(t===429){let t=e.response?.headers?.[`retry-after`]??``,n=t?` Retry after ${t}s.`:``;return new B(`Rate limit exceeded.${n}`,429)}let n=(e.response?.data)?.error?.message??e.message;return new B(n,t)}return e instanceof B?e:new B(e instanceof Error?e.message:String(e),0)}function j(e){if(!e)return null;let t=Number(e);if(!Number.isNaN(t)&&t>=0)return t*1e3;let n=Date.parse(e);return Number.isNaN(n)?null:Math.max(0,n-Date.now())}async function M(e){let t;for(let n=0;n<z;n++)try{return await e()}catch(e){let r=A(e);if(r.statusCode>=500){t=r,n<z-1&&await w(j(o.isAxiosError(e)?e.response?.headers?.[`retry-after`]:void 0)??500*2**n);continue}throw r}throw t??new B(`Request failed after retries`,0)}async function N(){return M(async()=>{let e=await T();return(await o.get(E(),{headers:e})).data.data??[]})}async function P(e){return M(async()=>{let t=await T();return(await o.get(D(e),{headers:t})).data})}async function F(e){return M(async()=>{let t=await T();return(await o.get(O(e),{headers:t})).data.data??[]})}async function I(e,t){return M(async()=>{let n=await T();return(await o.get(k(e,t),{headers:n})).data})}async function L(e,t){return M(async()=>{let n=await T(),r={name:e,body:t};return(await o.post(E(),r,{headers:n})).data})}async function R(e){return M(async()=>{let t=await T();await o.delete(D(e),{headers:t})})}var z,B,V=e((()=>{s(),g(),b(),_(),i(),z=3,B=class extends Error{constructor(e,t){super(e),a(this,`statusCode`,void 0),this.statusCode=t,this.name=`SkillsApiError`}}}));function H({skill:e}){let t=e.created_at?new Date(e.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,W.jsxs)(c,{children:[(0,W.jsx)(l,{bold:!0,children:e.skill_id}),(0,W.jsx)(l,{dimColor:!0,children:` · `}),(0,W.jsx)(l,{children:e.name}),e.deprecated?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(l,{dimColor:!0,children:` · `}),(0,W.jsx)(l,{color:`warning`,children:`deprecated`})]}):null]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Owner: `,e.owner,e.owner_symbol?` (${e.owner_symbol})`:``]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,t]})]})}function U(e){if(e.mode===`list`)return e.skills.length===0?(0,W.jsx)(c,{children:(0,W.jsx)(l,{dimColor:!0,children:`No skills found. Use /skill-store create <name> <markdown> to publish one.`})}):(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Skills (`,e.skills.length,`)`]})}),e.skills.map(e=>(0,W.jsx)(H,{skill:e},e.skill_id))]});if(e.mode===`detail`){let{skill:t}=e,n=t.created_at?new Date(t.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Skill: `,t.skill_id]})}),(0,W.jsxs)(l,{children:[`Name: `,t.name]}),(0,W.jsxs)(l,{children:[`Owner: `,t.owner,t.owner_symbol?` (${t.owner_symbol})`:``]}),(0,W.jsxs)(l,{children:[`Status:`,` `,(0,W.jsx)(l,{color:t.deprecated?`warning`:`success`,children:t.deprecated?`deprecated`:`active`})]}),t.allowed_tools&&t.allowed_tools.length>0?(0,W.jsxs)(l,{children:[`Allowed tools: `,t.allowed_tools.join(`, `)]}):null,(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,n]})]})}if(e.mode===`versions`){let{id:t,versions:n}=e;return n.length===0?(0,W.jsx)(c,{children:(0,W.jsxs)(l,{dimColor:!0,children:[`No versions found for skill `,t,`.`]})}):(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Versions for `,t,` (`,n.length,`)`]})}),n.map(e=>{let t=e.created_at?new Date(e.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,W.jsx)(l,{bold:!0,children:e.version}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,t]}),(0,W.jsx)(l,{dimColor:!0,children:e.body.length>80?`${e.body.slice(0,80)}…`:e.body})]},e.version)})]})}if(e.mode===`version-detail`){let{version:t}=e,n=t.created_at?new Date(t.created_at).toLocaleString():`—`;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{marginBottom:1,children:(0,W.jsxs)(l,{bold:!0,children:[`Version: `,t.version,` (skill: `,t.skill_id,`)`]})}),(0,W.jsxs)(l,{dimColor:!0,children:[`Created: `,n]}),(0,W.jsx)(c,{marginTop:1,children:(0,W.jsx)(l,{children:t.body})})]})}if(e.mode===`created`){let{skill:t}=e;return(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{children:(0,W.jsx)(l,{bold:!0,color:`success`,children:`Skill created`})}),(0,W.jsxs)(l,{children:[`ID: `,t.skill_id]}),(0,W.jsxs)(l,{children:[`Name: `,t.name]})]})}return e.mode===`deleted`?(0,W.jsx)(c,{children:(0,W.jsxs)(l,{color:`success`,children:[`Skill `,e.id,` deleted.`]})}):e.mode===`installed`?(0,W.jsxs)(c,{flexDirection:`column`,children:[(0,W.jsx)(c,{children:(0,W.jsx)(l,{bold:!0,color:`success`,children:`Skill installed`})}),(0,W.jsxs)(l,{children:[`Name: `,e.skillName]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Path: `,e.path]}),(0,W.jsxs)(l,{dimColor:!0,children:[`Load with: /skills (bundled skills are not auto-loaded; place in `,e.path,`)`]})]}):(0,W.jsx)(c,{children:(0,W.jsx)(l,{color:`error`,children:e.message})})}var W,G=e((()=>{u(),d(),W=f()}));function K(e){let t=e.trim();if(t===``||t===`list`)return{action:`list`};let n=t.indexOf(` `),r=n===-1?t:t.slice(0,n),i=n===-1?``:t.slice(n+1).trim();if(r===`get`){if(!i)return{action:`invalid`,reason:`get requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`get`,id:e}:{action:`invalid`,reason:`get requires a skill id`}}if(r===`versions`){if(!i)return{action:`invalid`,reason:`versions requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`versions`,id:e}:{action:`invalid`,reason:`versions requires a skill id`}}if(r===`version`){let e=i.split(/\s+/);return e.length<2||!e[0]||!e[1]?{action:`invalid`,reason:`version requires a skill id and version, e.g. version sk_123 v1`}:{action:`version`,id:e[0],version:e[1]}}if(r===`create`){let e=i.indexOf(` `);if(!i||e===-1)return{action:`invalid`,reason:`create requires a skill name and markdown body, e.g. create my-skill "# My Skill\\nContent"`};let t=i.slice(0,e).trim(),n=i.slice(e+1).trim();return t?n?{action:`create`,name:t,markdown:n}:{action:`invalid`,reason:`create requires a non-empty markdown body`}:{action:`invalid`,reason:`create requires a non-empty skill name`}}if(r===`delete`){if(!i)return{action:`invalid`,reason:`delete requires a skill id`};let e=i.split(/\s+/)[0];return e?{action:`delete`,id:e}:{action:`invalid`,reason:`delete requires a skill id`}}if(r===`install`){if(!i)return{action:`invalid`,reason:`install requires a skill id (optionally with @version), e.g. install sk_123 or install sk_123@v2`};let e=i.split(/\s+/)[0];if(!e)return{action:`invalid`,reason:`install requires a skill id`};let t=e.indexOf(`@`);if(t===-1)return{action:`install`,id:e,version:void 0};let n=e.slice(0,t),r=e.slice(t+1);return n?r?{action:`install`,id:n,version:r}:{action:`invalid`,reason:`install requires a non-empty version after @`}:{action:`invalid`,reason:`install requires a non-empty skill id before @`}}return{action:`invalid`,reason:`Unknown sub-command "${r}". ${q}`}}var q,J=e((()=>{q=`Usage: /skill-store list | get ID | versions ID | version ID VER | create NAME MARKDOWN | delete ID | install ID[@VERSION]`})),Y,X,Z;e((()=>{Y=t(u(),1),p(),r(),V(),G(),J(),X=`Usage: /skill-store list | get ID | versions ID | version ID VER | create NAME MARKDOWN | delete ID | install ID[@VERSION]`,Z=async(e,t,r)=>{m(`tengu_skill_store_started`,{args:r??``});let i=K(r??``);if(i.action===`invalid`)return m(`tengu_skill_store_failed`,{reason:i.reason}),e(`${X}\n${i.reason}`,{display:`system`}),null;if(i.action===`list`){m(`tengu_skill_store_list`,{});try{let t=await N();return e(t.length===0?`No skills found in the marketplace.`:`${t.length} skill(s) available.`,{display:`system`}),Y.createElement(U,{mode:`list`,skills:t})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to list skills: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}if(i.action===`get`){let{id:t}=i;m(`tengu_skill_store_get`,{id:t});try{let n=await P(t);return e(`Skill ${t} fetched.`,{display:`system`}),Y.createElement(U,{mode:`detail`,skill:n})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to get skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}if(i.action===`versions`){let{id:t}=i;m(`tengu_skill_store_versions`,{id:t});try{let n=await F(t);return e(n.length===0?`No versions found for skill ${t}.`:`${n.length} version(s) for skill ${t}.`,{display:`system`}),Y.createElement(U,{mode:`versions`,id:t,versions:n})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to list versions for skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}if(i.action===`version`){let{id:t,version:n}=i;m(`tengu_skill_store_version`,{id:t});try{let r=await I(t,n);return e(`Skill ${t}@${n} fetched.`,{display:`system`}),Y.createElement(U,{mode:`version-detail`,version:r})}catch(r){let i=r instanceof Error?r.message:String(r);return m(`tengu_skill_store_failed`,{reason:i}),e(`Failed to get version ${n} for skill ${t}: ${i}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:i})}}if(i.action===`create`){let{name:t,markdown:n}=i;m(`tengu_skill_store_create`,{name:t});try{let r=await L(t,n);return e(`Skill created: ${r.skill_id}`,{display:`system`}),Y.createElement(U,{mode:`created`,skill:r})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to create skill: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}if(i.action===`delete`){let{id:t}=i;m(`tengu_skill_store_delete`,{id:t});try{return await R(t),e(`Skill ${t} deleted.`,{display:`system`}),Y.createElement(U,{mode:`deleted`,id:t})}catch(n){let r=n instanceof Error?n.message:String(n);return m(`tengu_skill_store_failed`,{reason:r}),e(`Failed to delete skill ${t}: ${r}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:r})}}let{id:a,version:o}=i;m(`tengu_skill_store_install`,{id:a});try{let t,r;if(o!==void 0){let e=await I(a,o);r=e.body,t=e.skill_id}else{let n=await P(a),i=await F(a);if(i.length===0)return e(`Skill ${a} has no published versions to install.`,{display:`system`}),Y.createElement(U,{mode:`error`,message:`Skill ${a} has no published versions to install.`});let o=[...i].sort((e,t)=>{let n=e.created_at?new Date(e.created_at).getTime():0;return(t.created_at?new Date(t.created_at).getTime():0)-n})[0];if(!o)return e(`Skill ${a} has no published versions to install.`,{display:`system`}),Y.createElement(U,{mode:`error`,message:`Skill ${a} has no published versions to install.`});r=o.body,t=n.name}let i=t.replace(/[^a-zA-Z0-9_-]/g,`-`).replace(/^-+|-+$/g,``)||a,s=x(n(),`skills`,i),c=x(s,`SKILL.md`);return await S(s,{recursive:!0}),await C(c,r,`utf-8`),e(`Skill installed to ${c}`,{display:`system`}),Y.createElement(U,{mode:`installed`,skillName:i,path:c})}catch(t){let n=t instanceof Error?t.message:String(t);return m(`tengu_skill_store_failed`,{reason:n}),e(`Failed to install skill ${a}: ${n}`,{display:`system`}),Y.createElement(U,{mode:`error`,message:n})}}}))();export{Z as callSkillStore};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Dy as t,Py as n,gr as r,jr as i,jy as a}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Dy as t,Py as n,gr as r,jr as i,jy as a}from"./loadAgentsDir-D206qwP3.js";import{n as o,r as s}from"./analytics-BotDBGh0.js";import{n as c,o as l}from"./api-gqTA-D7n.js";function u(e){return e}function d(e){return[`## Available sessions (most recent first)`,``,...e.slice(0,p).map((e,t)=>` ${String(t+1).padStart(2)}. ${e.title.slice(0,50).padEnd(50)} ${e.status.padEnd(14)} ${e.created_at.slice(0,10)} id=${e.id}`),``,"Run `/teleport <session-id>` to resume a session."].join(`
|
|
2
2
|
`)}var f,p,m;e((()=>{o(),i(),t(),l(),f=8,p=20,m=async(e,t,i)=>{let o=i.trim(),l=o===`--print`||o.startsWith(`--print `),m=l?o.replace(/^--print\s*/,``).trim():o;if(s(`tengu_teleport_started`,{has_session_id:u(m?`true`:`false`)}),!m){s(`tengu_teleport_source_decision`,{source:u(`sessions_api`)});let t;try{t=(await c()).map(e=>({id:e.id,title:e.title??`Untitled`,status:e.status??`unknown`,created_at:e.created_at??``}))}catch(t){let n=t instanceof Error?t.message:String(t);return/forbidden|401|403/i.test(n)?(s(`tengu_teleport_events_fetch_forbidden`,{error:u(n.slice(0,200))}),e("Teleport: permission denied fetching sessions. Check your OAuth token (`claude auth status`).",{display:`system`}),null):/not found|404/i.test(n)?(s(`tengu_teleport_events_fetch_not_found`,{error:u(n.slice(0,200))}),e(`Teleport: sessions endpoint returned 404. The Sessions API may not be available for your account.`,{display:`system`}),null):/token|unauthorized/i.test(n)?(s(`tengu_teleport_error_bad_token`,{error:u(n.slice(0,200))}),e(`Teleport: authentication error — ${n}.`,{display:`system`}),null):(s(`tengu_teleport_events_fetch_fail`,{error:u(n.slice(0,200))}),e(`Teleport: failed to fetch sessions — ${n}.\nUsage: /teleport SESSION_ID`,{display:`system`}),null)}return t.length===0?(s(`tengu_teleport_null`,{}),e(`No active sessions found on claude.ai/code.
|
|
3
3
|
Start a new session at https://claude.ai/code`,{display:`system`}),null):(t.length>=p&&s(`tengu_teleport_page_cap`,{count:u(String(t.length))}),e(d(t),{display:`system`}),null)}if(m.length<f||!/^[0-9a-f-]{8,}$/i.test(m))return s(`tengu_teleport_error_bad_status`,{error:u(`invalid_session_id: ${m.slice(0,40)}`)}),e(`Invalid session id "${m}". Expected a UUID-like string (e.g. 12345678-abcd-...).`,{display:`system`}),null;s(`tengu_teleport_source_decision`,{source:u(`explicit_id`)});let h=[],g=e=>{h.push(e)};g(`validate`);try{await n()}catch(t){let n=t instanceof Error?t.message:String(t);return s(`tengu_teleport_errors_detected`,{error:u(n.slice(0,200))}),e(`Cannot teleport: ${n}`,{display:`system`}),null}g(`resume`);try{let n=``;if(await a(m,e=>{n=String(e)}),s(`tengu_teleport_resume_session`,{stage:u(n)}),g(`ready`),!t.resume)return s(`tengu_teleport_null`,{}),l?(e(`Session ${m} fetched successfully.`,{display:`system`}),null):(e(`Teleport resume succeeded for ${m}, but the REPL did not provide a resume callback.`,{display:`system`}),null);g(`fetch`);let i=await r(m);return i?(s(`tengu_teleport_errors_resolved`,{}),await t.resume(m,i,`slash_command_session_id`),s(`tengu_teleport_first_message_success`,{}),null):(s(`tengu_teleport_errors_detected`,{error:u(`log_not_found_after_resume`)}),e(`Teleport fetched session ${m} but the local log was not found. Try /resume ${m} manually.`,{display:`system`}),null)}catch(t){let n=t instanceof Error?t.message:String(t),r=`tengu_teleport_failed`;return/not found/i.test(n)?r=`tengu_teleport_error_session_not_found_`:/repo.*mismatch/i.test(n)?r=`tengu_teleport_error_repo_mismatch_sessions_api`:/not in.*git|git.*dir/i.test(n)?r=`tengu_teleport_error_repo_not_in_git_dir_sessions_api`:/cancelled|aborted/i.test(n)?r=`tengu_teleport_cancelled`:/token|unauthorized|401/i.test(n)?r=`tengu_teleport_error_bad_token`:/status|4\d\d|5\d\d/i.test(n)&&(r=`tengu_teleport_error_bad_status`),s(r,{error:u(n.slice(0,200))}),s(`tengu_teleport_first_message_error`,{error:u(n.slice(0,200))}),e(`Teleport failed: ${n}`,{display:`system`}),null}}}))();export{m as callTeleport};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{n as i,t as a}from"./axios-DaWTGg7G.js";import{I as o,P as s,fi as c,t as l}from"./src-CDCSSo0U2.js";import{t as u}from"./jsx-runtime-Bb4Xn-E0.js";import{l as d,u as f}from"./oauth-BqJqV-2M.js";import{o as p,u as m}from"./api-
|
|
1
|
+
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{n as i,t as a}from"./axios-DaWTGg7G.js";import{I as o,P as s,fi as c,t as l}from"./src-CDCSSo0U2.js";import{t as u}from"./jsx-runtime-Bb4Xn-E0.js";import{l as d,u as f}from"./oauth-BqJqV-2M.js";import{o as p,u as m}from"./api-gqTA-D7n.js";import{n as h,r as g}from"./hostGuard-BHI6Q8Mt.js";import{n as _,t as v}from"./launchCommand-1qkTCKpf.js";function y(e){return e.length<=8?e:`${e.slice(0,8)}…`}var b=e((()=>{}));function x(e){return new Promise(t=>setTimeout(t,e))}async function S(){let e;try{e=(await m()).apiKey}catch(e){let t=e instanceof Error?e.message:String(e);throw new F(t,501)}return h(C()),{"x-api-key":e,"anthropic-version":`2023-06-01`,"anthropic-beta":N,"content-type":`application/json`}}function C(){return`${d().BASE_API_URL}/v1/vaults`}function w(e,t){let n=t?` (${y(t)})`:``;if(i.isAxiosError(e)){let t=e.response?.status??0;if(t===401)return new F(`Authentication failed.`,401);if(t===403)return new F(`Subscription required. Vault management requires a Claude Pro/Max/Team subscription.`,403);if(t===404)return new F(`Vault or credential not found${n}.`,404);if(t===429){let t=e.response?.headers?.[`retry-after`]??``,n=t?` Retry after ${t}s.`:``;return new F(`Rate limit exceeded.${n}`,429)}let r=(e.response?.data)?.error?.message??e.message;return new F(r,t)}return e instanceof F?e:new F(e instanceof Error?e.message:String(e),0)}function T(e){if(!e)return null;let t=Number(e);if(!Number.isNaN(t)&&t>=0)return t*1e3;let n=Date.parse(e);return Number.isNaN(n)?null:Math.max(0,n-Date.now())}async function E(e,t){let n;for(let r=0;r<P;r++)try{return await e()}catch(e){let a=w(e,t);if(a.statusCode>=500){n=a,r<P-1&&await x(T(i.isAxiosError(e)?e.response?.headers?.[`retry-after`]:void 0)??500*2**r);continue}throw a}throw n??new F(`Request failed after retries`,0)}async function D(){return E(async()=>{let e=await S();return(await i.get(C(),{headers:e})).data.data??[]})}async function O(e){return E(async()=>{let t=await S(),n={name:e};return(await i.post(C(),n,{headers:t})).data})}async function k(e){return E(async()=>{let t=await S();return(await i.get(`${C()}/${e}`,{headers:t})).data},e)}async function A(e){return E(async()=>{let t=await S();return(await i.post(`${C()}/${e}/archive`,{},{headers:t})).data},e)}async function j(e,t,n){return E(async()=>{let r=await S(),a={key:t,secret:n};return(await i.post(`${C()}/${e}/credentials`,a,{headers:r})).data},e)}async function M(e,t){return E(async()=>{let n=await S();return(await i.post(`${C()}/${e}/credentials/${t}/archive`,{},{headers:n})).data},e)}var N,P,F,I=e((()=>{a(),f(),g(),p(),b(),n(),N=`managed-agents-2026-04-01`,P=3,F=class extends Error{constructor(e,t){super(e),r(this,`statusCode`,void 0),this.statusCode=t,this.name=`VaultsApiError`}}}));function L({vault:e}){let t=!!e.archived_at,n=e.created_at?new Date(e.created_at).toLocaleString():`—`;return(0,z.jsxs)(o,{flexDirection:`column`,marginBottom:1,children:[(0,z.jsxs)(o,{children:[(0,z.jsx)(s,{bold:!0,children:e.vault_id}),(0,z.jsx)(s,{dimColor:!0,children:` · `}),(0,z.jsx)(s,{color:t?`warning`:`success`,children:t?`archived`:`active`})]}),(0,z.jsxs)(s,{children:[`Name: `,e.name]}),(0,z.jsxs)(s,{dimColor:!0,children:[`Created: `,n]})]})}function R(e){if(e.mode===`list`)return e.vaults.length===0?(0,z.jsx)(o,{children:(0,z.jsx)(s,{dimColor:!0,children:`No vaults found. Use /vault create <name> to create one.`})}):(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{marginBottom:1,children:(0,z.jsxs)(s,{bold:!0,children:[`Vaults (`,e.vaults.length,`)`]})}),e.vaults.map(e=>(0,z.jsx)(L,{vault:e},e.vault_id))]});if(e.mode===`detail`){let{vault:t}=e,n=!!t.archived_at,r=t.created_at?new Date(t.created_at).toLocaleString():`—`,i=t.archived_at?new Date(t.archived_at).toLocaleString():null;return(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{marginBottom:1,children:(0,z.jsxs)(s,{bold:!0,children:[`Vault: `,t.vault_id]})}),(0,z.jsxs)(s,{children:[`Name: `,t.name]}),(0,z.jsxs)(s,{children:[`Status:`,` `,(0,z.jsx)(s,{color:n?`warning`:`success`,children:n?`archived`:`active`})]}),(0,z.jsxs)(s,{dimColor:!0,children:[`Created: `,r]}),i?(0,z.jsxs)(s,{dimColor:!0,children:[`Archived: `,i]}):null]})}if(e.mode===`created`){let{vault:t}=e;return(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{children:(0,z.jsx)(s,{bold:!0,color:`success`,children:`Vault created`})}),(0,z.jsxs)(s,{children:[`ID: `,t.vault_id]}),(0,z.jsxs)(s,{children:[`Name: `,t.name]})]})}if(e.mode===`archived`){let{vault:t}=e,n=t.archived_at?new Date(t.archived_at).toLocaleString():`—`;return(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{children:(0,z.jsx)(s,{bold:!0,color:`warning`,children:`Vault archived`})}),(0,z.jsxs)(s,{children:[`ID: `,t.vault_id]}),(0,z.jsxs)(s,{dimColor:!0,children:[`Archived at: `,n]})]})}if(e.mode===`credential-list`){let{vaultId:t,credentials:n}=e;return n.length===0?(0,z.jsx)(o,{children:(0,z.jsxs)(s,{dimColor:!0,children:[`No credentials in vault `,t,`. Use /vault add-credential `,t,` <key> <value> to add one.`]})}):(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{marginBottom:1,children:(0,z.jsxs)(s,{bold:!0,children:[`Credentials in `,t,` (`,n.length,`)`]})}),n.map(e=>{let t=!!e.archived_at;return(0,z.jsxs)(o,{flexDirection:`column`,marginBottom:1,children:[(0,z.jsxs)(o,{children:[(0,z.jsx)(s,{bold:!0,children:e.credential_id}),(0,z.jsx)(s,{dimColor:!0,children:` · `}),e.kind?(0,z.jsx)(s,{dimColor:!0,children:e.kind}):null,t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{dimColor:!0,children:` · `}),(0,z.jsx)(s,{color:`warning`,children:`archived`})]}):null]}),(0,z.jsx)(s,{dimColor:!0,children:`Value: ***mask***`})]},e.credential_id)})]})}if(e.mode===`credential-added`){let{vaultId:t,credentialId:n}=e;return(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{children:(0,z.jsx)(s,{bold:!0,color:`success`,children:`Credential added`})}),(0,z.jsxs)(s,{children:[`ID: `,n]}),(0,z.jsxs)(s,{children:[`Vault: `,t]}),(0,z.jsx)(s,{dimColor:!0,children:`Value: ***mask***`})]})}if(e.mode===`credential-archived`){let{vaultId:t,credentialId:n}=e;return(0,z.jsxs)(o,{flexDirection:`column`,children:[(0,z.jsx)(o,{children:(0,z.jsx)(s,{bold:!0,color:`warning`,children:`Credential archived`})}),(0,z.jsxs)(s,{children:[`ID: `,n]}),(0,z.jsxs)(s,{children:[`Vault: `,t]})]})}return(0,z.jsx)(o,{children:(0,z.jsx)(s,{color:`error`,children:e.message})})}var z,B=e((()=>{c(),l(),z=u()}));function V(e){let t=e.trim();if(t===``||t===`list`)return{action:`list`};let n=t.indexOf(` `),r=n===-1?t:t.slice(0,n),i=n===-1?``:t.slice(n+1).trim();if(r===`create`)return i?{action:`create`,name:i}:{action:`invalid`,reason:`create requires a vault name, e.g. create "My Work Vault"`};if(r===`get`){if(!i)return{action:`invalid`,reason:`get requires a vault id`};let e=i.split(/\s+/)[0];return e?{action:`get`,id:e}:{action:`invalid`,reason:`get requires a vault id`}}if(r===`archive`){if(!i)return{action:`invalid`,reason:`archive requires a vault id`};let e=i.split(/\s+/)[0];return e?{action:`archive`,id:e}:{action:`invalid`,reason:`archive requires a vault id`}}if(r===`add-credential`){let e=i.split(/\s+/);if(e.length<2||!e[0]||!e[1])return{action:`invalid`,reason:`add-credential requires vault_id, key, and value, e.g. add-credential vault_123 MY_API_KEY <value>`};let t=e[0],n=e[1],r=e.slice(2).join(` `);return r.trim()?{action:`add-credential`,vaultId:t,key:n,secret:r.trim()}:{action:`invalid`,reason:`add-credential requires a non-empty credential value`}}if(r===`archive-credential`){let e=i.split(/\s+/);return e.length<2||!e[0]||!e[1]?{action:`invalid`,reason:`archive-credential requires vault_id and credential_id, e.g. archive-credential vault_123 cred_456`}:{action:`archive-credential`,vaultId:e[0],credentialId:e[1]}}return{action:`invalid`,reason:`Unknown sub-command "${r}". ${H}`}}var H,U=e((()=>{H=`Usage: /vault list | create NAME | get ID | archive ID | add-credential VAULT_ID KEY VALUE | archive-credential VAULT_ID CRED_ID`}));async function W(e,t){if(e.action===`list`){let e=await D();return t(e.length===0?`No vaults found.`:`${e.length} vault(s).`,{display:`system`}),{mode:`list`,vaults:e}}if(e.action===`create`){let{name:n}=e,r=await O(n);return t(`Vault created: ${r.vault_id}`,{display:`system`}),{mode:`created`,vault:r}}if(e.action===`get`){let{id:n}=e,r=await k(n);return t(`Vault fetched.`,{display:`system`}),{mode:`detail`,vault:r}}if(e.action===`archive`){let{id:n}=e,r=await A(n);return t(`Vault archived.`,{display:`system`}),{mode:`archived`,vault:r}}if(e.action===`add-credential`){let{vaultId:n,key:r,secret:i}=e,a=await j(n,r,i);return t(`Credential added: ${a.credential_id}`,{display:`system`}),{mode:`credential-added`,vaultId:n,credentialId:a.credential_id}}if(e.action===`archive-credential`){let{vaultId:n,credentialId:r}=e;return await M(n,r),t(`Credential ${r} archived.`,{display:`system`}),{mode:`credential-archived`,vaultId:n,credentialId:r}}let n=await D();return t(n.length===0?`No vaults found.`:`${n.length} vault(s).`,{display:`system`}),{mode:`list`,vaults:n}}var G,K,q;e((()=>{G=t(c(),1),I(),B(),U(),v(),K=`Usage: /vault list | create NAME | get ID | archive ID | add-credential VAULT_ID KEY VALUE | archive-credential VAULT_ID CRED_ID`,q=_({commandName:`vault`,parseArgs:e=>{let t=V(e);return t.action===`invalid`?{action:`invalid`,reason:`${K}\n${t.reason}`}:t},dispatch:W,View:R,errorView:e=>G.createElement(R,{mode:`error`,message:e})})}))();export{q as callVault};
|