claude-code-best 2.6.6 → 2.6.8
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/README.md +3 -5
- package/dist/chunks/{AddWorkspaceDirectory-Bb6crGWh.js → AddWorkspaceDirectory-YmrkKVv2.js} +1 -1
- package/dist/chunks/{App-CW0Y4ceR.js → App-IAjCdPUn.js} +1 -1
- package/dist/chunks/ApproveApiKey-CAvlRKLr.js +1 -0
- package/dist/chunks/{ApproveApiKey-9rkwQfgT.js → ApproveApiKey-DhsT69v7.js} +1 -1
- package/dist/chunks/{AssistantSessionChooser-XzXZZdiH.js → AssistantSessionChooser-DCUVNGfn.js} +1 -1
- package/dist/chunks/BackgroundTasksDialog-Di_gH2TW.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-DlLWAKw2.js → BypassPermissionsModeDialog-BeZqE75e.js} +1 -1
- package/dist/chunks/{ClaudeInChromeOnboarding-CjGydpBk.js → ClaudeInChromeOnboarding-CZHktpPE.js} +1 -1
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-B04cjDwX.js → ClaudeMdExternalIncludesDialog-Dofr1TYr.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DrkzPawC.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-CtqOQRDT.js +1 -0
- package/dist/chunks/{DesktopHandoff-CFBUqcCf.js → DesktopHandoff-C8_CDNft.js} +1 -1
- package/dist/chunks/{DevChannelsDialog-ByTf41du.js → DevChannelsDialog-DkGWCFpL.js} +1 -1
- package/dist/chunks/{DiffDialog-CY-8kw_Q.js → DiffDialog-93P95op8.js} +2 -2
- package/dist/chunks/Doctor-CheDaF3O.js +1 -0
- package/dist/chunks/Doctor-Zd0UaR5d.js +3 -0
- package/dist/chunks/{ExitFlow-BlON8IgH.js → ExitFlow-4edARxmd.js} +2 -2
- package/dist/chunks/{Feedback-CSeD3k4M.js → Feedback-CZY-BikO.js} +2 -2
- package/dist/chunks/Grove-CbcR0CsI.js +1 -0
- package/dist/chunks/{Grove-Tp_UtIMg.js → Grove-TYf1glGP.js} +1 -1
- package/dist/chunks/{HybridTransport-CAko699F.js → HybridTransport-BNexuwcN.js} +1 -1
- package/dist/chunks/{ITermBackend-5P3WJumD.js → ITermBackend-DuomVpsD.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-CVcdra9v.js → InvalidConfigDialog-Byury3Zx.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-CfLdbmSI.js → InvalidSettingsDialog-B8_0AvWo.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-BK_3uwQj.js → MCPConnectionManager-xL_wQCda.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-BOj-T8F3.js → McpParsingWarnings-C6u4RM2a.js} +1 -1
- package/dist/chunks/MessageSelector-DAyH1noQ.js +3 -0
- package/dist/chunks/Messages-QH8_sB13.js +11 -0
- package/dist/chunks/{Onboarding-C06Mxlf-.js → Onboarding-XWhelEBr.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-abcPm3PB.js → OverageCreditUpsell-BvPz1jLU.js} +1 -1
- package/dist/chunks/PluginSettings-D1YHfrE1.js +17 -0
- package/dist/chunks/{PromptInputFooterSuggestions-ihnbjU0K.js → PromptInputFooterSuggestions-rqUoa9Ch.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-CMm8z7Gk.js → PromptInputHelpMenu-OTViHSR0.js} +1 -1
- package/dist/chunks/QueryEngine-DigBggXq.js +1 -0
- package/dist/chunks/REPL-Cxh0Qnnt.js +1 -0
- package/dist/chunks/{REPL-CBFcgD4r.js → REPL-D2p-vgct.js} +34 -34
- package/dist/chunks/{RemoteCallout-Cy6lH-CZ.js → RemoteCallout-CCIWIrd-.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-C7iGd5Og.js → RemoteSessionManager-Dx81p5dH.js} +2 -2
- package/dist/chunks/ResumeConversation-73r3Zh5P.js +1 -0
- package/dist/chunks/{SSETransport-B5xlXeAN.js → SSETransport-C9hd2v-w.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-BNpA8JzR.js +1 -0
- package/dist/chunks/SentryErrorBoundary-BFwcMSIK.js +1 -0
- package/dist/chunks/{SentryErrorBoundary-iih9eFpM.js → SentryErrorBoundary-z8tMb-zO.js} +1 -1
- package/dist/chunks/Settings-D9qdaMe5.js +2 -0
- package/dist/chunks/{TeleportProgress-BX-uLwuL.js → TeleportProgress-CPXN7u3Z.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-D8oPPTWd.js → TeleportRepoMismatchDialog-CiyXjTxq.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-B_CvNDbr.js → TeleportResumeWrapper-Dao8ktHk.js} +1 -1
- package/dist/chunks/{ThemePicker-BG1ykSpX.js → ThemePicker-CFYFNnPp.js} +1 -1
- package/dist/chunks/{TmuxBackend-CnMCWNS4.js → TmuxBackend-B5DBBugq.js} +1 -1
- package/dist/chunks/{TrustDialog-Z_maAYj8.js → TrustDialog-DtIXHMR_.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-C9swVkZ-.js → ValidationErrorsList-BK0wOS55.js} +1 -1
- package/dist/chunks/{WelcomeV2-Au_5ddlT.js → WelcomeV2-BjUbi9vp.js} +1 -1
- package/dist/chunks/{WindowsTerminalBackend-CGxaYH74.js → WindowsTerminalBackend-DFLLlAOp.js} +1 -1
- package/dist/chunks/{add-dir-Cm9u56YX.js → add-dir-JoVgNFOk.js} +1 -1
- package/dist/chunks/{agentDisplay-Bi_bEyEn.js → agentDisplay-B3RjWR-3.js} +1 -1
- package/dist/chunks/{agents-CMF9fLzV.js → agents-BUyLUAIu.js} +7 -7
- package/dist/chunks/{agents-CbjR7hNr.js → agents-UqS5PhD2.js} +1 -1
- package/dist/chunks/{ant-Bu1Gs4WJ.js → ant-Bq1wIvnP.js} +1 -1
- package/dist/chunks/{api-D_t0nHsS.js → api-O4eHGLTY.js} +1 -1
- package/dist/chunks/api-kAjsowcb.js +1 -0
- package/dist/chunks/{assistant-C_pfWe2a.js → assistant-CMIbt3Ir.js} +1 -1
- package/dist/chunks/{assistant-EA-MHNQ-.js → assistant-D5Tg_1ry.js} +1 -1
- package/dist/chunks/assistant-nOCkNa3_.js +1 -0
- package/dist/chunks/auth-CDOk9J9A.js +1 -0
- package/dist/chunks/{auth-D7PZvVPf.js → auth-D3SKo0wT.js} +1 -1
- package/dist/chunks/{autoMode-B8iO05xy.js → autoMode-BIVJlkBM.js} +1 -1
- package/dist/chunks/{autonomy-dQVtSiCJ.js → autonomy-BYi6z9LD.js} +1 -1
- package/dist/chunks/{autonomy-CaLvE5N6.js → autonomy-Mi7Fkq1J.js} +12 -12
- package/dist/chunks/{autonomyPanel-DSswVlCF.js → autonomyPanel-D_GsUMOf.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BG_UYxFF.js +17 -0
- package/dist/chunks/backgroundHousekeeping-wHy1eAso.js +1 -0
- package/dist/chunks/{branch-C7pM8Sjh.js → branch-BC-K45fw.js} +1 -1
- package/dist/chunks/{bridge-CTYdzSWg.js → bridge-DBteRzgS.js} +2 -2
- package/dist/chunks/{bridgeConfig-Df6uyp3q.js → bridgeConfig-C_GoD1k5.js} +1 -1
- package/dist/chunks/bridgeConfig-V_pmBzSH.js +1 -0
- package/dist/chunks/bridgeEnabled-BxtxHb8R.js +1 -0
- package/dist/chunks/{bridgeEnabled-A-_xJ94c.js → bridgeEnabled-cSK8a7tN.js} +1 -1
- package/dist/chunks/bridgeMain-CMNptMs4.js +1 -0
- package/dist/chunks/bridgeMain-QbfEOTqV.js +68 -0
- package/dist/chunks/{bridgeMessaging-DPVLAIzl.js → bridgeMessaging-CqXQzew4.js} +1 -1
- package/dist/chunks/{btw-CqgjLlFN.js → btw-DBtPlEWc.js} +1 -1
- package/dist/chunks/{buddy-DCGBAqF2.js → buddy-BYwTgNnf.js} +1 -1
- package/dist/chunks/{bypassPermissionsKillswitch-CK0jeZTW.js → bypassPermissionsKillswitch-DkYLp9m0.js} +1 -1
- package/dist/chunks/caches-B-GiT9hm.js +1 -0
- package/dist/chunks/{caches-CdVW8fYV.js → caches-DGW9ovtw.js} +2 -2
- package/dist/chunks/{ccrClient-B_3AmY7K.js → ccrClient-B9pi3b8Y.js} +1 -1
- package/dist/chunks/changeDetector-S1Jti1bW.js +1 -0
- package/dist/chunks/channelNotification-Bx6dpA7I.js +1 -0
- package/dist/chunks/{channelNotification-BbDQdLZC.js → channelNotification-n7Avue-9.js} +1 -1
- package/dist/chunks/{chrome-CGyqsCkL.js → chrome-BwZPfW9Z.js} +1 -1
- package/dist/chunks/clear-BXv0Sq3m.js +1 -0
- package/dist/chunks/client-DNQukPEE.js +1 -0
- package/dist/chunks/color-BsBrog6H.js +1 -0
- package/dist/chunks/commands-BK3ugb0u.js +1 -0
- package/dist/chunks/commitAttribution-CtQYmnw-.js +1 -0
- package/dist/chunks/{commitAttribution-e0kkanVT.js → commitAttribution-q7SEukgl.js} +1 -1
- package/dist/chunks/{compact-Dh9RewNA.js → compact-DiY1w7pT.js} +3 -3
- package/dist/chunks/{companion-DVFacTUw.js → companion-D18UNnC7.js} +1 -1
- package/dist/chunks/{config-CkSmYDJY.js → config-CSHnElBp.js} +1 -1
- package/dist/chunks/{config-DwiVCSrY.js → config-D3QKcEKz.js} +1 -1
- package/dist/chunks/{context-B8VDDHTv.js → context-DnyYrN2X.js} +1 -1
- package/dist/chunks/context-noninteractive-0YpW67KZ.js +1 -0
- package/dist/chunks/{context-noninteractive-IZfWniex.js → context-noninteractive-CFlod2Eg.js} +2 -2
- package/dist/chunks/conversation-CRoOMglD.js +1 -0
- package/dist/chunks/conversation-DCG0fiGV.js +1 -0
- package/dist/chunks/{copy-CIjrYoFa.js → copy-CHGX-YpC.js} +2 -2
- package/dist/chunks/{createSSHSession-ArNlbIZB.js → createSSHSession-Bf-8h3Sw.js} +1 -1
- package/dist/chunks/createSession-BYf27ahD.js +1 -0
- package/dist/chunks/{createSession-CBheIT_G.js → createSession-rRZIkjl3.js} +1 -1
- package/dist/chunks/{cronJitterConfig-DcMGWOa-.js → cronJitterConfig-DmBBJDTf.js} +3 -3
- package/dist/chunks/{crossProjectResume-Z-aR2q-d.js → crossProjectResume-BQxLBpDD.js} +3 -3
- package/dist/chunks/{datadog-BK8eJz8B.js → datadog-Bb65d6yd.js} +1 -1
- package/dist/chunks/datadog-NnzM1Mu3.js +1 -0
- package/dist/chunks/{desktop-B9vWJeRu.js → desktop-DiCA6RUU.js} +1 -1
- package/dist/chunks/{diff-BTV7_Dca.js → diff-BvLQ-t8P.js} +1 -1
- package/dist/chunks/{doctor-Dpbh0aRz.js → doctor-bmTXLycZ.js} +1 -1
- package/dist/chunks/{effort-Czlwa5qF.js → effort-CSTwkB2B.js} +2 -2
- package/dist/chunks/{entry-CdfuWjKu.js → entry-BUwwv2dM.js} +4 -4
- package/dist/chunks/{envLessBridgeConfig-BAFYaZ0E.js → envLessBridgeConfig-DJJKeDBT.js} +1 -1
- package/dist/chunks/envLessBridgeConfig-Dq02Vvx1.js +1 -0
- package/dist/chunks/{exit-DzOm62Dn.js → exit-eirVuF-n.js} +1 -1
- package/dist/chunks/{export-DHOR3z3Z.js → export-CcJD8r8U.js} +1 -1
- package/dist/chunks/{exportRenderer-CiNXeNr9.js → exportRenderer-DtezFcml.js} +1 -1
- package/dist/chunks/{extra-usage-DIYR_3ZR.js → extra-usage-CBcgeIcJ.js} +1 -1
- package/dist/chunks/extra-usage-DhB0NElh.js +1 -0
- package/dist/chunks/{extra-usage-core-C3uM9bOP.js → extra-usage-core-DWM0Q56J.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-Ctz9TfY8.js → extra-usage-noninteractive-BvJEi4WX.js} +1 -1
- package/dist/chunks/{extraUsage-CBwIvl73.js → extraUsage-CWde-Mi0.js} +1 -1
- package/dist/chunks/extractMemories-wcRNh_jz.js +1 -0
- package/dist/chunks/{fast-BpBwjbSD.js → fast-DQyJ7c7s.js} +1 -1
- package/dist/chunks/fast-ukzN3wl2.js +1 -0
- package/dist/chunks/{feedback-BkVnsZVx.js → feedback-BzBBKT2y.js} +1 -1
- package/dist/chunks/{firstPartyEventLogger-BCzGkdpd.js → firstPartyEventLogger-BOHIpp-w.js} +1 -1
- package/dist/chunks/{flushGate-CQsnMw8g.js → flushGate-DeCDhkKp.js} +1 -1
- package/dist/chunks/{gates-CxWIWtmd.js → gates-CAVdjC23.js} +1 -1
- package/dist/chunks/gates-CB_pFChT.js +1 -0
- package/dist/chunks/{gemini-BbV8D2SS.js → gemini-CFrOUVS4.js} +1 -1
- package/dist/chunks/{generateRecap-B3j2nUgh.js → generateRecap-Bcp5DiiO.js} +1 -1
- package/dist/chunks/{generateSessionName-aGnXSNgN.js → generateSessionName-DeFGkHct.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-DCJLSTLl.js → githubRepoPathMapping-B07Wb07_.js} +1 -1
- package/dist/chunks/grok-DtidcVWD.js +1 -0
- package/dist/chunks/{growthbook-prtWhMRg.js → growthbook-gLwBDK-r.js} +1 -1
- package/dist/chunks/{heapdump-Czm-2XiG.js → heapdump-BxQYlnPR.js} +1 -1
- package/dist/chunks/{help-CSAFsN0-.js → help-Bi0sABuv.js} +1 -1
- package/dist/chunks/hooks-BTBhK9sh.js +1 -0
- package/dist/chunks/{hooks-DkbOP-bI.js → hooks-Cc_DxF9N.js} +2 -2
- package/dist/chunks/{hostAdapter-BcdDPVTj.js → hostAdapter-D9_d4gU0.js} +1 -1
- package/dist/chunks/{ide-BXERRFZF.js → ide-3wDIOoZF.js} +2 -2
- package/dist/chunks/inboundAttachments-DBaPmCTv.js +1 -0
- package/dist/chunks/{inboundAttachments-7rXrAtkb.js → inboundAttachments-DPMETKd6.js} +1 -1
- package/dist/chunks/initReplBridge-BWP41EGm.js +1 -0
- package/dist/chunks/{insights-DrvqJgF8.js → insights-w7qM4YyA.js} +5 -5
- package/dist/chunks/{install-BGnxwO00.js → install-N2FgArWv.js} +1 -1
- package/dist/chunks/{install-github-app-CIpBHlr9.js → install-github-app-By39Zi78.js} +2 -2
- package/dist/chunks/{install-slack-app-By4Lh7ww.js → install-slack-app-CVwZphU-.js} +1 -1
- package/dist/chunks/{instrumentation-D9y7Ph_R.js → instrumentation-BkLEupDC.js} +3 -3
- package/dist/chunks/{job-BPVIMW_P.js → job-CgBE27O7.js} +1 -1
- package/dist/chunks/{keybindings-Ce6AHMLI.js → keybindings-DHXJzU3E.js} +2 -2
- package/dist/chunks/{lang-DfDG_fSa.js → lang-DLneRt1b.js} +1 -1
- package/dist/chunks/{language-yGoDFP3X.js → language-BVAzlrRz.js} +1 -1
- package/dist/chunks/language-ZBygqv6V.js +1 -0
- package/dist/chunks/{launchAgentsPlatform-DT01xZM7.js → launchAgentsPlatform-CtfK0qPa.js} +1 -1
- package/dist/chunks/{launchAutofixPr-DrYd7WVf.js → launchAutofixPr-CQBv0rQ0.js} +3 -3
- package/dist/chunks/{launchLocalMemory-Bt3tMYVJ.js → launchLocalMemory-BNE09TKr.js} +2 -2
- package/dist/chunks/{launchLocalVault-jyRHEa_Y.js → launchLocalVault-Dw_NJUnd.js} +3 -3
- package/dist/chunks/{launchMemoryStores-cmXnLAF5.js → launchMemoryStores-CRRB6Z5A.js} +1 -1
- package/dist/chunks/{launchOnboarding-BPTNFftb.js → launchOnboarding-nMAF5iv7.js} +1 -1
- package/dist/chunks/{launchSchedule-141GqGC8.js → launchSchedule-Akq1AmK8.js} +1 -1
- package/dist/chunks/{launchSkillStore-Bz0lok_o.js → launchSkillStore-Zwtasj13.js} +1 -1
- package/dist/chunks/{launchTeleport-BMquJxIq.js → launchTeleport-BzlIYyll.js} +3 -3
- package/dist/chunks/{launchVault-Bsuwqad6.js → launchVault-BevXlxJB.js} +1 -1
- package/dist/chunks/{loadAgentsDir-D7kapZB5.js → loadAgentsDir-DF6FgRn-.js} +810 -791
- package/dist/chunks/loadAgentsDir-OIIKHPq9.js +1 -0
- package/dist/chunks/loadPluginHooks-DBHkyJaj.js +1 -0
- package/dist/chunks/localSearch-DslXIfeC.js +1 -0
- package/dist/chunks/{localSearch-r1_G8kfV.js → localSearch-v4itMlCM.js} +1 -1
- package/dist/chunks/{login-7MvpaOkt.js → login-CKodBzyZ.js} +1 -1
- package/dist/chunks/login-CTIVwgFU.js +1 -0
- package/dist/chunks/{logoV2Utils-DjThKW15.js → logoV2Utils-VebeEs7Y.js} +1 -1
- package/dist/chunks/logout-B3MyP8fk.js +1 -0
- package/dist/chunks/{magicDocs-Dy72LHIj.js → magicDocs-uX5n3NKh.js} +2 -2
- package/dist/chunks/{main-CF6Im-LV.js → main-Cd_i0ZPo.js} +48 -48
- package/dist/chunks/{mappers-CkMESMy7.js → mappers-CPL2ni36.js} +1 -1
- package/dist/chunks/{mcp-BTgHgOhR.js → mcp-Ci_TbB5m.js} +2 -2
- package/dist/chunks/mcp-DeWOD4B4.js +1 -0
- package/dist/chunks/mcp-Dhp1SaId.js +6 -0
- package/dist/chunks/{mcpServer-BueM5fWI.js → mcpServer-CPJo2eKm.js} +1 -1
- package/dist/chunks/{mcpServer-Dqm2PQQx.js → mcpServer-CTuPkyD6.js} +1 -1
- package/dist/chunks/{memory-BNZmqma1.js → memory-enMuKEnU.js} +1 -1
- package/dist/chunks/{model-DOw7wIKQ.js → model-4f3U2YMu.js} +1 -1
- package/dist/chunks/model-BsHyPvD0.js +1 -0
- package/dist/chunks/{onChangeAppState-Cb9_yIuW.js → onChangeAppState-DxTGoS7j.js} +1 -1
- package/dist/chunks/openai-CwG_KpH1.js +10 -0
- package/dist/chunks/openaiShared-Bjrci9n8.js +1 -0
- package/dist/chunks/{overageCreditGrant-BrN7dk3d.js → overageCreditGrant-CCkJVN9k.js} +1 -1
- package/dist/chunks/{passes-vgcY8_l8.js → passes-O0VEQz1a.js} +1 -1
- package/dist/chunks/{paths-1ngPRtu3.js → paths-o5iA-EnQ.js} +6 -6
- package/dist/chunks/permissions-BtYQvivG.js +3 -0
- package/dist/chunks/{pipeTransport-KU8psPDI.js → pipeTransport-BEfqa7Uh.js} +1 -1
- package/dist/chunks/{plan-5NVPuxp6.js → plan-Jw4GjVL0.js} +1 -1
- package/dist/chunks/{plugin-t8jMqdsY.js → plugin-DZq0voFR.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-CAa4KLro.js → pluginAutoupdate-D19vNoOp.js} +1 -1
- package/dist/chunks/{pluginBlocklist-BG2LkLq1.js → pluginBlocklist-DeX8I4dK.js} +1 -1
- package/dist/chunks/{pluginCliCommands-vqAtVibb.js → pluginCliCommands-CMgqxOaT.js} +1 -1
- package/dist/chunks/{pluginFlagging-BFCtv3kY.js → pluginFlagging-DFLE5fkh.js} +1 -1
- package/dist/chunks/{pluginOperations-C9XP-mko.js → pluginOperations-BTz69m3_.js} +2 -2
- package/dist/chunks/{pluginStartupCheck-RRcAbKfx.js → pluginStartupCheck-CWWKwD5F.js} +1 -1
- package/dist/chunks/pluginStartupCheck-Non969kz.js +1 -0
- package/dist/chunks/plugins-BPUnAc0r.js +4 -0
- package/dist/chunks/policyLimits-D6dpS-CU.js +1 -0
- package/dist/chunks/{pollConfig-DTYIJ8lQ.js → pollConfig-DyHumJli.js} +1 -1
- package/dist/chunks/{poor-Dw5dMZpM.js → poor-CHHZIPDW.js} +1 -1
- package/dist/chunks/{poorMode-CsGLI_hm.js → poorMode-7N6J6YN2.js} +1 -1
- package/dist/chunks/poorMode-DX4EXe0o.js +1 -0
- package/dist/chunks/print-QCXJDmz0.js +39 -0
- package/dist/chunks/{privacy-settings-P2r-kg2i.js → privacy-settings-DR0_P3JF.js} +1 -1
- package/dist/chunks/{processBashCommand-a8W8aTRu.js → processBashCommand-CkqKsBSD.js} +1 -1
- package/dist/chunks/processSlashCommand-DIk_hLHW.js +6 -0
- package/dist/chunks/prompt-2ia5b-QO.js +1 -0
- package/dist/chunks/prompt-CNtVpGdl.js +1 -0
- package/dist/chunks/{prompt-BBg3jtfc.js → prompt-DiHksuOs.js} +1 -1
- package/dist/chunks/{promptEditor-CvaugNTt.js → promptEditor-B3S5E5Q7.js} +2 -2
- package/dist/chunks/{protocolHandler-DxBaHlaD.js → protocolHandler-D1XT2l3j.js} +1 -1
- package/dist/chunks/{rate-limit-options-Df_sgE0b.js → rate-limit-options-DHh1ksB5.js} +1 -1
- package/dist/chunks/{rcDebugLog-CPGWJbI4.js → rcDebugLog-BNojB_eB.js} +1 -1
- package/dist/chunks/{referral-BKeCKnOJ.js → referral-BADm5sBf.js} +1 -1
- package/dist/chunks/refresh-D48fjYJ4.js +1 -0
- package/dist/chunks/{registerProtocol-DLuRm0mf.js → registerProtocol-Dzmi6VC4.js} +1 -1
- package/dist/chunks/{registry-DVSgtCq5.js → registry-CEu_N3dS.js} +1 -1
- package/dist/chunks/{release-notes-CZcf8zB7.js → release-notes-Dr61jYDO.js} +1 -1
- package/dist/chunks/{releaseNotes-CvfZb3fZ.js → releaseNotes-5SV7C5aV.js} +2 -2
- package/dist/chunks/{reload-plugins-pSlDLk3b.js → reload-plugins-BxuE-21F.js} +1 -1
- package/dist/chunks/{remote-env-BH89NuwC.js → remote-env-BaQjT5em.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-CrXlWEL1.js → remoteBridgeCore-B8MjcW6f.js} +1 -1
- package/dist/chunks/{remoteControlServer-BSOnq4yY.js → remoteControlServer-BvoNcg9D.js} +2 -2
- package/dist/chunks/{rename-DNGvNQm2.js → rename-B3q0tgmd.js} +1 -1
- package/dist/chunks/{resume-6UL38yL3.js → resume-BSGOqus7.js} +2 -2
- package/dist/chunks/{runtimeObserver-Cp-DN8fP.js → runtimeObserver-Bb6wSUMJ.js} +1 -1
- package/dist/chunks/{runtimeObserver-BhvHeiwD.js → runtimeObserver-BbwUiToa.js} +4 -4
- package/dist/chunks/sandbox-adapter-Cr6f6gjf.js +1 -0
- package/dist/chunks/{sandbox-toggle-D19YbI5G.js → sandbox-toggle-L7YPKXba.js} +1 -1
- package/dist/chunks/searchExtraTools-DRVIhwVJ.js +1 -0
- package/dist/chunks/{sentry-BZmpC-iI.js → sentry-DG3ru8XE.js} +1 -1
- package/dist/chunks/{session-lLpGqp0B.js → session-B5wA2K9M.js} +1 -1
- package/dist/chunks/{sessionDiscovery-BX3fjgzD.js → sessionDiscovery-DijWFNjj.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-DnbPctQc.js +1 -0
- package/dist/chunks/sessionMemory-BOT9f5f0.js +1 -0
- package/dist/chunks/sessionMemory-CeWjRuFL.js +1 -0
- package/dist/chunks/sessionMemoryUtils-B47JMJa2.js +1 -0
- package/dist/chunks/sessionObserver-BNZflr2e.js +1 -0
- package/dist/chunks/{sessionObserver-CujNIWks.js → sessionObserver-CsDT2GnB.js} +1 -1
- package/dist/chunks/sessionStorage-BUuPrnU0.js +1 -0
- package/dist/chunks/{sessionTitle-QxXslbJY.js → sessionTitle-CxmvZO71.js} +2 -2
- package/dist/chunks/{sessionTracing-DognYcDf.js → sessionTracing-Cy5dAplG.js} +1 -1
- package/dist/chunks/{settingsSync-DEPET5O1.js → settingsSync-54E8xV8N.js} +1 -1
- package/dist/chunks/setup-B5CMpp0c.js +2 -0
- package/dist/chunks/{setup-C6G0lasE.js → setup-GJtdESQj.js} +1 -1
- package/dist/chunks/{setup-BUBUidOg.js → setup-KWELOokh.js} +1 -1
- package/dist/chunks/{shadowedRuleDetection-CQayPrmM.js → shadowedRuleDetection-C4NGjljb.js} +1 -1
- package/dist/chunks/{sideQuestion-B9EE1vTM.js → sideQuestion-DBrzdgkl.js} +1 -1
- package/dist/chunks/{sink-Cugto5We.js → sink-BKc24wdw.js} +1 -1
- package/dist/chunks/sink-DG0SNHP7.js +1 -0
- package/dist/chunks/{sinks-B9A94oIj.js → sinks-BTS1DWM4.js} +2 -2
- package/dist/chunks/sinks-Cbp-8X1S.js +1 -0
- package/dist/chunks/{skill-learning-CroDcatu.js → skill-learning-C5NrosiL.js} +1 -1
- package/dist/chunks/skillChangeDetector-NJrEtU47.js +1 -0
- package/dist/chunks/{skillGapStore-91Mb3xDY.js → skillGapStore-D1rkePoo.js} +2 -2
- package/dist/chunks/{skillGapStore-LKwap3o4.js → skillGapStore-uXpRqLGG.js} +1 -1
- package/dist/chunks/{skillGenerator-B9GM0LHk.js → skillGenerator-Deog7yBO.js} +2 -2
- package/dist/chunks/{skillLearning-DbOOqb6b.js → skillLearning-BHjRTDJw.js} +1 -1
- package/dist/chunks/skillLearning-By7jxHSI.js +1 -0
- package/dist/chunks/{skillPanel-rIIYgnBE.js → skillPanel-Bx63GX9w.js} +3 -3
- package/dist/chunks/{skillSearchPanel-xAL-6uJF.js → skillSearchPanel-CM5EZGkH.js} +4 -4
- package/dist/chunks/{skills-Doe47wxK.js → skills-JvC7Ms0P.js} +1 -1
- package/dist/chunks/{sprites-D11F3i1M.js → sprites-YBiqlYch.js} +1 -1
- package/dist/chunks/{stats-WNUyieG-.js → stats-BJMKNvVK.js} +1 -1
- package/dist/chunks/{status-CjBS9SkF.js → status-DAJ28yxZ.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-cnI4TiGw.js → statusNoticeHelpers-B7nbsqLz.js} +1 -1
- package/dist/chunks/{tag-Gfb8vTAR.js → tag-B4y7cBqH.js} +2 -2
- package/dist/chunks/{tasks-BwX1rzOD.js → tasks-CSye58Ap.js} +1 -1
- package/dist/chunks/{teamHelpers-DEgaCpta.js → teamHelpers-BFZ4eVwW.js} +1 -1
- package/dist/chunks/teamHelpers-CKBoDEPj.js +1 -0
- package/dist/chunks/teammateModeSnapshot-BfOLEMKn.js +1 -0
- package/dist/chunks/{teammateModeSnapshot-Dyukgtp9.js → teammateModeSnapshot-DXc2vyo2.js} +1 -1
- package/dist/chunks/teleport-NN6zSxxe.js +1 -0
- package/dist/chunks/{templateJobs-DQXuFnkl.js → templateJobs-DAVqqU0g.js} +1 -1
- package/dist/chunks/{terminalSetup-bSbq4LE7.js → terminalSetup-DqL65XR2.js} +1 -1
- package/dist/chunks/{terminalSetup-CTEIn08j.js → terminalSetup-jZKBoPTc.js} +1 -1
- package/dist/chunks/{theme-DazaKPy8.js → theme-DPv2L3ut.js} +1 -1
- package/dist/chunks/thinkback-B0OSwcPG.js +1 -0
- package/dist/chunks/thinkback-play-D_uOESmO.js +1 -0
- package/dist/chunks/thinkback-tcfR5Uod.js +1 -0
- package/dist/chunks/{toolEventObserver-D4h-QqVP.js → toolEventObserver-CtApZXry.js} +1 -1
- package/dist/chunks/{toolEventObserver-Dfvv2trb.js → toolEventObserver-D6ZTtdh_.js} +1 -1
- package/dist/chunks/toolPool-DFpa-yul.js +1 -0
- package/dist/chunks/toolPool-DqemSx_r.js +1 -0
- package/dist/chunks/{trustedDevice-rdvUkS1W.js → trustedDevice-Bxn7WW5C.js} +1 -1
- package/dist/chunks/{trustedDevice-CQ9PK-8m.js → trustedDevice-DsgCQRsJ.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-Zf9hO4wr.js → ultrareviewCommand-BfuSrdXz.js} +2 -2
- package/dist/chunks/undercover-B-R6dhHB.js +1 -0
- package/dist/chunks/{undercover-DLyKv5TE.js → undercover-CM8zTx5g.js} +1 -1
- package/dist/chunks/{updateCCB-7WQRz9lW.js → updateCCB-DTArxdyR.js} +1 -1
- package/dist/chunks/upgrade-CCrHxXrm.js +1 -0
- package/dist/chunks/{upgrade-ByIumMQe.js → upgrade-CEd1Jxw_.js} +1 -1
- package/dist/chunks/{upload-CvOMbA9_.js → upload-DNo3bZLc.js} +1 -1
- package/dist/chunks/{usage-C_d-Z-eb.js → usage-DEwRsc7E.js} +1 -1
- package/dist/chunks/{usage-DE4PSQiF.js → usage-X4-qec8g.js} +1 -1
- package/dist/chunks/{useMainLoopModel-Os8Ao8-x.js → useMainLoopModel-2A9HV1H3.js} +1 -1
- package/dist/chunks/{useManagePlugins-BYBubfHU.js → useManagePlugins-D9MBag8O.js} +1 -1
- package/dist/chunks/{useMergedTools-BJAn2i-F.js → useMergedTools-DCYrP_YE.js} +1 -1
- package/dist/chunks/{useSearchInput-CF77X2OV.js → useSearchInput-CepwLBvi.js} +1 -1
- package/dist/chunks/useSettingsErrors-C8ffWXbY.js +1 -0
- package/dist/chunks/{useVoice-DwzMN0fq.js → useVoice-vHZVaTAN.js} +1 -1
- package/dist/chunks/{util-DD30Y4o8.js → util-B13MVSse.js} +1 -1
- package/dist/chunks/utils-C-vk0zpl.js +1 -0
- package/dist/chunks/validatePlugin-Cf_toBOJ.js +1 -0
- package/dist/chunks/{vim-zc9EiMil.js → vim-6p7eiRPG.js} +1 -1
- package/dist/chunks/{voice-BRhZt4jW.js → voice-Bvc_BxoI.js} +2 -2
- package/dist/chunks/{voiceModeEnabled-168-1Ocs.js → voiceModeEnabled-BPbOh6jd.js} +1 -1
- package/dist/chunks/voiceModeEnabled-JSBux8GA.js +1 -0
- package/dist/chunks/{voiceStreamSTT-B80UegKG.js → voiceStreamSTT-CzCUhap3.js} +1 -1
- package/dist/chunks/voiceStreamSTT-D9ER6Ml3.js +1 -0
- package/dist/chunks/{workerRegistry-s8nnpmUO.js → workerRegistry-DCtC-WN3.js} +1 -1
- package/dist/chunks/worktree-Dv0mPuy_.js +1 -0
- package/dist/chunks/{xml-DTMvLcPg.js → xml-CqxiCY4v.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-BhMr2Y5F.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-BL_dfbZP.js +0 -2
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DPki55Xa.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-D_j1NebK.js +0 -1
- package/dist/chunks/Doctor-2D5Wz58o.js +0 -1
- package/dist/chunks/Doctor-CDez_u_U.js +0 -3
- package/dist/chunks/Grove-Dwu_0zRw.js +0 -1
- package/dist/chunks/MessageSelector-BRkxpO1O.js +0 -3
- package/dist/chunks/Messages-wyMyMP7U.js +0 -11
- package/dist/chunks/PluginSettings-DGpIVGvV.js +0 -17
- package/dist/chunks/QueryEngine-I3Bqzbiz.js +0 -1
- package/dist/chunks/REPL-BxAsVlx3.js +0 -1
- package/dist/chunks/ResumeConversation-AdLtgdVB.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-BJ8Nx_Nu.js +0 -1
- package/dist/chunks/SentryErrorBoundary-Bs7mtkPb.js +0 -1
- package/dist/chunks/Settings-PioHwsvg.js +0 -2
- package/dist/chunks/api-CFNGoLoL.js +0 -1
- package/dist/chunks/assistant-BLd4y2FJ.js +0 -1
- package/dist/chunks/auth-DGfZCD_B.js +0 -1
- package/dist/chunks/backgroundHousekeeping-Ckj8W3RO.js +0 -1
- package/dist/chunks/backgroundHousekeeping-D2_Uopt7.js +0 -17
- package/dist/chunks/bridgeConfig-7c07tJm9.js +0 -1
- package/dist/chunks/bridgeEnabled-Z2S8lk0l.js +0 -1
- package/dist/chunks/bridgeMain-B7FZpvo0.js +0 -68
- package/dist/chunks/bridgeMain-C5UxF8ST.js +0 -1
- package/dist/chunks/caches-Dt52PedI.js +0 -1
- package/dist/chunks/changeDetector-uO9CBvut.js +0 -1
- package/dist/chunks/channelNotification-DzTzUrCe.js +0 -1
- package/dist/chunks/clear-B_cVk64B.js +0 -1
- package/dist/chunks/client-BcqXgcrx.js +0 -1
- package/dist/chunks/color-DEXUx7gE.js +0 -1
- package/dist/chunks/commands-BX0_wEGw.js +0 -1
- package/dist/chunks/commitAttribution-CSVDcgTO.js +0 -1
- package/dist/chunks/context-noninteractive-SBxqQ3iu.js +0 -1
- package/dist/chunks/conversation-CQBl9Yy2.js +0 -1
- package/dist/chunks/conversation-DVZplNag.js +0 -1
- package/dist/chunks/createSession-DfEQy2dZ.js +0 -1
- package/dist/chunks/datadog-Uj6FjEuU.js +0 -1
- package/dist/chunks/envLessBridgeConfig-DOO9eX07.js +0 -1
- package/dist/chunks/extra-usage-CJcyfVCt.js +0 -1
- package/dist/chunks/extractMemories-C3SU-Osb.js +0 -1
- package/dist/chunks/fast-7iinMwk-.js +0 -1
- package/dist/chunks/gates-qgzva-fO.js +0 -1
- package/dist/chunks/grok-C4QFXJnR.js +0 -1
- package/dist/chunks/hooks-Ch2vPE8u.js +0 -1
- package/dist/chunks/inboundAttachments-C0rkLl2x.js +0 -1
- package/dist/chunks/initReplBridge-tXqkba08.js +0 -1
- package/dist/chunks/language-B1yHC1d6.js +0 -1
- package/dist/chunks/loadAgentsDir-DxPE2bIO.js +0 -1
- package/dist/chunks/loadPluginHooks-CL5aGDrb.js +0 -1
- package/dist/chunks/localSearch-iozuZZhZ.js +0 -1
- package/dist/chunks/login-Dxza_KNT.js +0 -1
- package/dist/chunks/logout-BeGQR78E.js +0 -1
- package/dist/chunks/mcp-UJZ22IDJ.js +0 -6
- package/dist/chunks/mcp-fHf8Uc7h.js +0 -1
- package/dist/chunks/model-D3g2QdU-.js +0 -1
- package/dist/chunks/openai-Bvo0Gcec.js +0 -10
- package/dist/chunks/openaiShared-D5lOejS1.js +0 -16
- package/dist/chunks/permissions-BDbIjTT6.js +0 -3
- package/dist/chunks/pluginStartupCheck-DZp0wnXP.js +0 -1
- package/dist/chunks/plugins-0SyID4Kx.js +0 -4
- package/dist/chunks/policyLimits-Cmmzuv-E.js +0 -1
- package/dist/chunks/poorMode-D_hB-rDf.js +0 -1
- package/dist/chunks/print-Ct8N4PYT.js +0 -39
- package/dist/chunks/processSlashCommand-BaUdUg3T.js +0 -6
- package/dist/chunks/prompt-B1Qy8mi4.js +0 -1
- package/dist/chunks/prompt-D4kWWEZC.js +0 -1
- package/dist/chunks/refresh-Cjv4jA6L.js +0 -1
- package/dist/chunks/sandbox-adapter-DGVtPPD0.js +0 -1
- package/dist/chunks/searchExtraTools-DXWkpOIg.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-BeuS4m7a.js +0 -1
- package/dist/chunks/sessionMemory-LMOQk90c.js +0 -1
- package/dist/chunks/sessionMemory-UpILj5ww.js +0 -1
- package/dist/chunks/sessionMemoryUtils-DE7AezA0.js +0 -1
- package/dist/chunks/sessionObserver-HqvTXhs9.js +0 -1
- package/dist/chunks/sessionStorage-BN56DAAd.js +0 -1
- package/dist/chunks/setup-BZMVuIIx.js +0 -2
- package/dist/chunks/sink-BRrEbL6h.js +0 -1
- package/dist/chunks/sinks-CKaSBvU8.js +0 -1
- package/dist/chunks/skillChangeDetector-DnyEQqe6.js +0 -1
- package/dist/chunks/skillLearning-D6latSKi.js +0 -1
- package/dist/chunks/teamHelpers-EJxTXoTV.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BgUQ4Phz.js +0 -1
- package/dist/chunks/teleport-B4p8XlAv.js +0 -1
- package/dist/chunks/thinkback-BOfZP_QG.js +0 -1
- package/dist/chunks/thinkback-CxWZV2Oz.js +0 -1
- package/dist/chunks/thinkback-play-CHe1x2Hc.js +0 -1
- package/dist/chunks/toolPool-BHChMuLr.js +0 -1
- package/dist/chunks/toolPool-C5K43w4_.js +0 -1
- package/dist/chunks/undercover-DNS9V_JT.js +0 -1
- package/dist/chunks/upgrade-bK4x32Ma.js +0 -1
- package/dist/chunks/useSettingsErrors-DD7fQ-fU.js +0 -1
- package/dist/chunks/utils-D44M8obg.js +0 -1
- package/dist/chunks/validatePlugin-DpHiJRsT.js +0 -1
- package/dist/chunks/voiceModeEnabled-CTT25yFj.js +0 -1
- package/dist/chunks/voiceStreamSTT-BpYhKo2H.js +0 -1
- package/dist/chunks/worktree-CkB4jLXK.js +0 -1
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{Ct as r,cn as i,mr as a,t as o}from"./state-sIHsFpDu.js";import{$ as s,As as c,Dt as l,Ot as u,Zc as d,el as f,ks as p,tt as m}from"./paths-1ngPRtu3.js";import{M as h,V as g,d as _,h as v,k as y,p as b,s as x}from"./debug-UI3T040K.js";import{n as S,r as C}from"./analytics-DqMQntaB.js";import{O as w,et as T,k as E,o as D,s as O}from"./log-CzsijfHZ.js";import{n as k,t as ee}from"./sleep-8Eb9j_Ly.js";import{A as te,Ak as ne,Al as A,B_ as re,C_ as ie,Cl as ae,Cw as oe,DD as se,Dc as ce,Ec as le,F_ as ue,G as de,GD as fe,Go as pe,HE as me,Ho as he,I_ as ge,Jf as _e,K as j,KD as M,LA as N,Li as P,Lo as F,Ml as I,Nl as ve,OD as ye,Ok as be,RA as xe,Ro as Se,Sw as Ce,TD as we,T_ as Te,VE as Ee,V_ as L,Vi as De,W_ as Oe,Wi as ke,Xi as Ae,YD as je,Yf as Me,Yi as Ne,Yx as Pe,_O as Fe,_o as Ie,bo as R,dO as Le,fo as z,go as B,kc as Re,la as V,lk as ze,n_ as Be,ok as Ve,qo as H,qx as He,r_ as U,uO as Ue,w as We,wD as Ge,w_ as Ke,wo as qe,xl as Je,xw as Ye,yo as Xe,z_ as Ze}from"./loadAgentsDir-D7kapZB5.js";import{a as W,i as Qe,o as G}from"./xml-DTMvLcPg.js";import{E as $e,T as et,w as tt}from"./sessionTracing-DognYcDf.js";import{n as nt,t as rt}from"./slashCommandParsing-Cari0pNg.js";import{randomUUID as K}from"crypto";function it(e,t,n,r,i){let a=0;for(let o of p){let s=n[o];if(s)for(let n of s)for(let s of n.hooks){let c=s.once?()=>{_(`Removing one-shot hook for event ${o} in skill '${r}'`),Te(e,t,o,s)}:void 0;ie(e,t,o,n.matcher||``,s,c,i),a++}}a>0&&_(`Registered ${a} hooks from skill '${r}'`)}var at=e((()=>{c(),x(),Ke()}));function ot(){return!1}function st(){if(!ot())throw Error(`ToolUseContext.options.allowBackgroundForkedSlashCommands is test-only and cannot be enabled outside NODE_ENV=test.`)}async function q(e,t,n,r,i,a,o){let s=ue(),c=e.pluginInfo?G(e.pluginInfo.repository).marketplace:void 0;C(`tengu_slash_command_forked`,{command_name:e.name,invocation_trigger:`user-slash`,...e.pluginInfo&&{_PROTO_plugin_name:e.pluginInfo.pluginManifest.name,...c&&{_PROTO_marketplace_name:c},...L(e.pluginInfo)}});let{skillContent:u,modifiedGetAppState:f,baseAgent:p,promptMessages:m}=await ve(e,t,n),h=e.effort===void 0?p:{...p,effort:e.effort};_(`Executing forked slash command /${e.name} with agent ${h.agentType}`);let g=await n.getAppState();n.options.allowBackgroundForkedSlashCommands===!0&&st();let v=!1;if(g.kairosEnabled&&(v=!0),v){let t=Ge(),r=V(e),i=l(),c=e=>Le({value:e,mode:`prompt`,priority:`later`,isMeta:!0,skipSlashCommands:!0,workload:i}),u=async()=>{if(!o?.runId)return;let e=await fe({runId:o.runId,rootDir:o.rootDir,priority:`later`,workload:i});for(let t of e)Ue(t)},d=async e=>{o?.runId&&await M({runId:o.runId,rootDir:o.rootDir,error:e instanceof Error?e.message:String(e)})};return(async()=>{let i=Date.now()+$;for(;Date.now()<i&&n.getAppState().mcp.clients.some(e=>e.type===`pending`);)await k(Q);let o=n.options.refreshTools?.()??n.options.tools,l=[];for await(let r of U({agentDefinition:h,promptMessages:m,toolUseContext:{...n,getAppState:f,abortController:t},canUseTool:a,isAsync:!0,querySource:`agent:custom`,model:e.model,availableTools:o,override:{agentId:s}}))l.push(r);let d=A(l,`Command completed`);_(`Background forked command /${r} completed (agent ${s})`),c(`<scheduled-task-result command="/${r}">\n${d}\n</scheduled-task-result>`);try{await u()}catch(e){O(e)}})().catch(async e=>{O(e),c(`<scheduled-task-result command="/${r}" status="failed">\n${e instanceof Error?e.message:String(e)}\n</scheduled-task-result>`),await d(e)}),{messages:[],shouldQuery:!1,command:e,deferAutonomyCompletion:!!o?.runId}}let y=[],b=[],x=`forked-command-${e.name}`,S=0,w=e=>(S++,{type:`progress`,data:{message:e,type:`agent_progress`,prompt:u,agentId:s},parentToolUseID:x,toolUseID:`${x}-${S}`,timestamp:new Date().toISOString(),uuid:K()}),T=()=>{i({jsx:Me(b,{tools:n.options.tools,verbose:!1}),shouldHidePromptInput:!1,shouldContinueAnimation:!0,showSpinner:!0})};T();try{for await(let t of U({agentDefinition:h,promptMessages:m,toolUseContext:{...n,getAppState:f},canUseTool:a,isAsync:!1,querySource:`agent:custom`,model:e.model,availableTools:n.options.tools})){y.push(t);let e=pe([t]);if(t.type===`assistant`){let r=Ve(t);r>0&&n.setResponseLength(e=>e+r);let i=e[0];i&&i.type===`assistant`&&(b.push(w(t)),T())}if(t.type===`user`){let t=e[0];t&&t.type===`user`&&(b.push(w(t)),T())}}}finally{i(null)}let E=A(y,`Command completed`);return _(`Forked slash command /${e.name} completed with agent ${s}`),process.env.USER_TYPE===`ant`&&(E=`[ANT-ONLY] API calls: ${d(se(s))}\n${E}`),{messages:[R({content:H({inputString:`/${V(e)} ${t}`.trim(),precedingInputBlocks:r})}),R({content:`<local-command-stdout>\n${E}\n</local-command-stdout>`})],shouldQuery:!1,command:e,resultText:E}}function ct(e){return!/[^a-zA-Z0-9:\-_]/.test(e)}async function lt(e,t,n,r,i,o,s,c,l,u){let d=nt(e);if(!d){C(`tengu_input_slash_missing`,{});let e="Commands are in the form `/command [args]`";return{messages:[B(),...r,R({content:H({inputString:e,precedingInputBlocks:t})})],shouldQuery:!1,resultText:e}}let{commandName:f,args:p,isMcp:m}=d,h=m?`mcp`:P().has(f)?f:`custom`;if(!Ne(f,i.options.commands)){let n=!1;try{await b().stat(`/${f}`),n=!0}catch{}if(ct(f)&&!n){C(`tengu_input_slash_invalid`,{input:f});let e=`Unknown skill: ${f}`;return{messages:[B(),...r,R({content:H({inputString:e,precedingInputBlocks:t})}),...p?[Ie(`Args from unknown skill: ${p}`,`warning`)]:[]],shouldQuery:!1,resultText:e}}let i=K();return a(i),C(`tengu_input_prompt`,{}),et(`user_prompt`,{prompt_length:String(e.length),prompt:$e(e),"prompt.id":i}),{messages:[R({content:H({inputString:e,precedingInputBlocks:t}),uuid:s}),...r],shouldQuery:!0}}let{messages:g,shouldQuery:_,allowedTools:v,model:y,effort:x,command:S,resultText:w,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}=await ut(f,p,o,i,t,n,c,l,s,u);if(g.length===0){let e={input:h};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:t,repository:n}=S.pluginInfo,{marketplace:r}=G(n),i=W(r);e._PROTO_plugin_name=t.name,r&&(e._PROTO_marketplace_name=r),e.plugin_repository=i?n:`third-party`,e.plugin_name=i?t.name:`third-party`,i&&t.version&&(e.plugin_version=t.version),Object.assign(e,L(S.pluginInfo))}return C(`tengu_input_command`,{...e,invocation_trigger:`user-slash`,...process.env.USER_TYPE===`ant`&&{skill_name:f,...S.type===`prompt`&&{skill_source:S.source},...S.loadedFrom&&{skill_loaded_from:S.loadedFrom},...S.kind&&{skill_kind:S.kind}}}),{messages:[],shouldQuery:!1,model:y,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}}if(g.length===2&&g[1].type===`user`&&typeof g[1].message.content==`string`&&g[1].message.content.startsWith(`Unknown command:`))return e.startsWith(`/var`)||e.startsWith(`/tmp`)||e.startsWith(`/private`)||C(`tengu_input_slash_invalid`,{input:f}),{messages:[B(),...g],shouldQuery:_,allowedTools:v,model:y};let O={input:h};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:e,repository:t}=S.pluginInfo,{marketplace:n}=G(t),r=W(n);O._PROTO_plugin_name=e.name,n&&(O._PROTO_marketplace_name=n),O.plugin_repository=r?t:`third-party`,O.plugin_name=r?e.name:`third-party`,r&&e.version&&(O.plugin_version=e.version),Object.assign(O,L(S.pluginInfo))}C(`tengu_input_command`,{...O,invocation_trigger:`user-slash`,...process.env.USER_TYPE===`ant`&&{skill_name:f,...S.type===`prompt`&&{skill_source:S.source},...S.loadedFrom&&{skill_loaded_from:S.loadedFrom},...S.kind&&{skill_kind:S.kind}}});let k=g.length>0&&g[0]&&Se(g[0]);return{messages:_||g.every(he)||k?g:[B(),...g],shouldQuery:_,allowedTools:v,model:y,effort:x,resultText:w,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}}async function ut(e,t,n,r,i,a,o,s,c,l){let u=ke(e,r.options.commands);if(u.type===`prompt`&&u.userInvocable!==!1&&re(e),u.userInvocable===!1)return{messages:[R({content:H({inputString:`/${e}`,precedingInputBlocks:i})}),R({content:`This skill can only be invoked by Claude, not directly by users. Ask Claude to use the "${e}" skill for you.`})],shouldQuery:!1,command:u};try{switch(u.type){case`local-jsx`:return new Promise(e=>{let a=!1,o=(n,r)=>{if(a=!0,r?.display===`skip`){e({messages:[],shouldQuery:!1,command:u,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput});return}let o=(r?.metaMessages??[]).map(e=>R({content:e,isMeta:!0})),s=Pe()&&typeof n==`string`&&n.endsWith(` dismissed`);e({messages:r?.display===`system`?s?o:[z(J(u,t)),z(`<local-command-stdout>${n}</local-command-stdout>`),...o]:[R({content:H({inputString:J(u,t),precedingInputBlocks:i})}),R(n?{content:`<local-command-stdout>${n}</local-command-stdout>`}:{content:`<local-command-stdout>${N}</local-command-stdout>`}),...o],shouldQuery:r?.shouldQuery??!1,command:u,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput})};u.load().then(e=>e.call(o,{...r,canUseTool:s},t)).then(t=>{if(t!=null){if(r.options.isNonInteractiveSession){e({messages:[],shouldQuery:!1,command:u});return}a||n({jsx:t,shouldHidePromptInput:!0,showSpinner:!1,isLocalJSXCommand:!0,isImmediate:u.immediate===!0})}}).catch(t=>{O(t),!a&&(a=!0,n({jsx:null,shouldHidePromptInput:!1,clearLocalJSX:!0}),e({messages:[],shouldQuery:!1,command:u}))})});case`local`:{let e=R({content:H({inputString:J(u,u.isSensitive&&t.trim()?`***`:t),precedingInputBlocks:i})});try{let n=B(),i=await(await u.load()).call(t,r);if(i.type===`skip`)return{messages:[],shouldQuery:!1,command:u};if(i.type===`compact`){let t=[n,e,...i.displayText?[R({content:`<local-command-stdout>${i.displayText}</local-command-stdout>`,timestamp:new Date(Date.now()+100).toISOString()})]:[]],r={...i.compactionResult,messagesToKeep:[...i.compactionResult.messagesToKeep??[],...t]};return ne(),{messages:Je(r),shouldQuery:!1,command:u}}return{messages:[e,z(`<local-command-stdout>${i.value}</local-command-stdout>`)],shouldQuery:!1,command:u,resultText:i.value}}catch(t){return O(t),{messages:[e,z(`<local-command-stderr>${String(t)}</local-command-stderr>`)],shouldQuery:!1,command:u}}}case`prompt`:try{return u.context===`fork`?await q(u,t,r,i,n,s??de,l):await Z(u,t,r,i,a,c)}catch(e){return e instanceof y?{messages:[R({content:H({inputString:J(u,t),precedingInputBlocks:i})}),Xe({toolUse:!1})],shouldQuery:!1,command:u}:{messages:[R({content:H({inputString:J(u,t),precedingInputBlocks:i})}),R({content:`<local-command-stderr>${String(e)}</local-command-stderr>`})],shouldQuery:!1,command:u}}}}catch(e){if(e instanceof h)return{messages:[R({content:H({inputString:e.message,precedingInputBlocks:i})})],shouldQuery:!1,command:u};throw e}}function J(e,t){return qe(V(e),t)}function Y(e,t=`loading`){return[`<${w}>${e}</${w}>`,`<${E}>${e}</${E}>`,`<skill-format>true</skill-format>`].join(`
|
|
2
|
-
`)}function dt(e,t){return[`<${w}>${e}</${w}>`,`<${E}>/${e}</${E}>`,t?`<command-args>${t}</command-args>`:null].filter(Boolean).join(`
|
|
3
|
-
`)}function X(e,t){return e.userInvocable===!1&&(e.loadedFrom===`skills`||e.loadedFrom===`plugin`||e.loadedFrom===`mcp`)?Y(e.name,e.progressMessage):dt(e.name,t)}async function ft(e,t,n,r,i=[]){let a=De(e,n);if(!a)throw new h(`Unknown command: ${e}`);if(a.type!==`prompt`)throw Error(`Unexpected ${a.type} command. Expected 'prompt' command. Use /${e} directly in the main conversation.`);return Z(a,t,r,[],i)}async function Z(e,t,i,a=[],c=[],l){if(n(process.env.CLAUDE_CODE_COORDINATOR_MODE)&&!i.agentId){let n=X(e,t),r=[`Skill "/${e.name}" is available for workers.`];e.description&&r.push(`Description: ${e.description}`),e.whenToUse&&r.push(`When to use: ${e.whenToUse}`);let i=e.allowedTools??[];i.length>0&&r.push(`This skill grants workers additional tool permissions: ${i.join(`, `)}`),r.push(`\nInstruct a worker to use this skill by including "Use the /${e.name} skill" in your Agent prompt. The worker has access to the Skill tool and will receive the skill's content and permissions when it invokes it.`);let a=[{type:`text`,text:r.join(`
|
|
4
|
-
`)}];return{messages:[R({content:n,uuid:l}),R({content:a,isMeta:!0})],shouldQuery:!0,model:e.model,effort:e.effort,command:e}}let u=await e.getPromptForCommand(t,i),d=!Ce(`hooks`)||oe(e.source);if(e.hooks&&d){let t=r();it(i.setAppState,t,e.hooks,e.name,e.type===`prompt`?e.skillRoot:void 0)}let f=e.source?`${e.source}:${e.name}`:e.name,p=u.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
5
|
-
|
|
6
|
-
`);o(e.name,f,p,s()?.agentId??null);let m=X(e,t),h=te(e.allowedTools??[]),g=c.length>0||a.length>0?[...c,...a,...u]:u,_=await me(ce(u.filter(e=>e.type===`text`).map(e=>e.text).join(` `),i,null,[],i.messages,`repl_main_thread`,{skipSkillDiscovery:!0}));return{messages:[R({content:m,uuid:l}),R({content:g,isMeta:!0}),..._,le({type:`command_permissions`,allowedTools:h,model:e.model})],shouldQuery:!0,allowedTools:h,model:e.model,effort:e.effort,command:e}}var Q,$;e((()=>{i(),Ae(),xe(),T(),S(),ye(),ae(),be(),Be(),_e(),we(),m(),Re(),x(),t(),g(),f(),I(),v(),He(),Ee(),at(),D(),Fe(),F(),We(),j(),Qe(),Ye(),rt(),ee(),Ze(),tt(),Oe(),ze(),ge(),je(),u(),Q=200,$=1e4}))();export{Y as formatSkillLoadingMetadata,ft as processPromptSlashCommand,lt as processSlashCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./prompt-BBg3jtfc.js";t();export{e as isDeferredTool};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Wk as e,Xk as t}from"./loadAgentsDir-D7kapZB5.js";t();export{e as clearPromptCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{cn as t,ot as n}from"./state-sIHsFpDu.js";import{L as r,V as i,d as a,s as o}from"./debug-UI3T040K.js";import{o as s,s as c}from"./log-CzsijfHZ.js";import{Av as l,Cc as u,Ew as d,Ip as f,Pp as p,Sc as m,Tw as h,fs as g,gh as _,i as v,jv as y,lc as b,mh as x,o as S,ps as C,uc as w,vh as T,yh as E}from"./loadAgentsDir-D7kapZB5.js";async function D(e){a(`refreshActivePlugins: clearing all plugin caches`),b(),p();let t=await C(),[i,o]=await Promise.all([m(),v(n())]),{enabled:s,disabled:l,errors:u}=t,[f,h]=await Promise.all([Promise.all(s.map(async e=>{if(e.mcpServers)return Object.keys(e.mcpServers).length;let t=await d(e,u);return t&&(e.mcpServers=t),t?Object.keys(t).length:0})),Promise.all(s.map(async e=>{if(e.lspServers)return Object.keys(e.lspServers).length;let t=await E(e,u);return t&&(e.lspServers=t),t?Object.keys(t).length:0}))]),g=f.reduce((e,t)=>e+t,0),x=h.reduce((e,t)=>e+t,0);e(e=>({...e,plugins:{...e.plugins,enabled:s,disabled:l,commands:i,errors:O(e.plugins.errors,u),needsRefresh:!1},agentDefinitions:o,mcp:{...e.mcp,pluginReconnectKey:e.mcp.pluginReconnectKey+1}})),_();let S=!1;try{await y()}catch(e){S=!0,c(e),a(`refreshActivePlugins: loadPluginHooks failed: ${r(e)}`)}let w=s.reduce((e,t)=>t.hooksConfig?e+Object.values(t.hooksConfig).reduce((e,t)=>e+(t?.reduce((e,t)=>e+t.hooks.length,0)??0),0):e,0);return a(`refreshActivePlugins: ${s.length} enabled, ${i.length} commands, ${o.allAgents.length} agents, ${w} hooks, ${g} MCP, ${x} LSP`),{enabled_count:s.length,disabled_count:l.length,command_count:i.length,agent_count:o.allAgents.length,hook_count:w,mcp_count:g,lsp_count:x,error_count:u.length+ +!!S,agentDefinitions:o,pluginCommands:i}}function O(e,t){let n=e.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),r=new Set(t.map(k));return[...n.filter(e=>!r.has(k(e))),...t]}function k(e){return e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`}var A=e((()=>{t(),x(),S(),o(),i(),s(),w(),u(),l(),T(),h(),f(),g()}));export{D as n,A as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{oA as e,rA as t}from"./loadAgentsDir-D7kapZB5.js";e();export{t as SandboxManager};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Yc as e,Zc as t}from"./loadAgentsDir-D7kapZB5.js";e();export{t as isSearchExtraToolsEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gu as e,vu as t}from"./loadAgentsDir-D7kapZB5.js";e();export{t as registerSessionFileAccessHooks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionMemory-UpILj5ww.js";t();export{e as manuallyExtractSessionMemory};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./memoize-DNnuA2aU.js";import{W as r,cn as i}from"./state-sIHsFpDu.js";import{S as a,_ as o,g as s,mc as c,pc as l}from"./paths-1ngPRtu3.js";import{L as u,R as d,V as f,h as ee,p as te}from"./debug-UI3T040K.js";import{n as ne,r as p}from"./analytics-DqMQntaB.js";import{b as m,x as re}from"./teammate-DMYOtLTK.js";import{$O as h,AD as ie,Bc as ae,Fo as g,GO as _,In as v,JO as y,Ln as oe,Lo as se,Ml as ce,NO as le,Ol as ue,Pl as b,QO as x,Rn as de,UO as S,Vc as C,XO as w,YO as T,ZO as E,bo as D,ck as O,cl as k,dk as A,dt as j,ek as M,fl as N,ft as P,hk as F,kD as I,kl as L,lk as R,mk as z,ml as B,nk as V,pk as fe,pl as pe,qO as me,rk as he,sl as ge,tk as H}from"./loadAgentsDir-D7kapZB5.js";import{On as U,jn as _e}from"./prompt-BBg3jtfc.js";import{X as ve}from"./rcDebugLog-CPGWJbI4.js";import{writeFile as W}from"fs/promises";function ye(){return o(`tengu_session_memory`,!1)}function G(){return s(`tengu_sm_config`,{})}function be(e,t){let n=0,r=t==null;for(let i of e){if(!r){i.uuid===t&&(r=!0);continue}if(i.type===`assistant`){let e=i.message.content;Array.isArray(e)&&(n+=m(e,e=>e.type===`tool_use`))}}return n}function K(e){let t=A(e);if(!E()){if(!y(t))return!1;M()}let n=T(t),r=be(e,X)>=me(),i=g(e);if(n&&r||n&&!i){let t=e[e.length-1];return t?.uuid&&(X=t.uuid),!0}return!1}async function q(e){let t=te(),n=v();await t.mkdir(n,{mode:448});let r=oe();try{await W(r,``,{encoding:`utf-8`,mode:384,flag:`wx`}),await W(r,await B(),{encoding:`utf-8`,mode:384})}catch(e){if(d(e)!==`EEXIST`)throw e}e.readFileState.delete(r);let i=await ae.call({file_path:r},e),a=``,o=i.data;return o.type===`text`&&(a=o.file.content),p(`tengu_session_memory_file_read`,{content_length:a.length}),{memoryPath:r,currentMemory:a}}function xe(){if(r())return;let e=k();process.env.USER_TYPE===`ant`&&p(`tengu_session_memory_init`,{auto_compact_enabled:e}),e&&ie($)}async function Se(e,t){if(e.length===0)return{success:!1,error:`No messages to summarize`};h();try{let n=L(t),{memoryPath:r,currentMemory:i}=await q(n),a=await N(i,r),{tools:o,mainLoopModel:s}=t.options,[c,l,u]=await Promise.all([j(o,s),z(),fe()]),d=ve(c);return await b({promptMessages:[D({content:a})],cacheSafeParams:{systemPrompt:d,userContext:l,systemContext:u,toolUseContext:n,forkContextMessages:e},canUseTool:J(r),querySource:`session_memory`,forkLabel:`session_memory_manual`,overrides:{readFileState:n.readFileState}}),p(`tengu_session_memory_manual_extraction`,{}),H(A(e)),Y(e),{success:!0,memoryPath:r}}catch(e){return{success:!1,error:u(e)}}finally{x()}}function J(e){return async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${U} on ${e} is allowed`,decisionReason:{type:`other`,reason:`only ${U} on ${e} is allowed`}}}}function Y(e){if(!g(e)){let t=e[e.length-1];t?.uuid&&V(t.uuid)}}var X,Z,Q,$,Ce=e((()=>{n(),i(),P(),F(),_e(),C(),re(),ce(),ee(),I(),se(),de(),l(),le(),R(),ne(),ge(),pe(),w(),f(),a(),Z=t(()=>{let e=G();he({minimumMessageTokensToInit:e.minimumMessageTokensToInit&&e.minimumMessageTokensToInit>0?e.minimumMessageTokensToInit:S.minimumMessageTokensToInit,minimumTokensBetweenUpdate:e.minimumTokensBetweenUpdate&&e.minimumTokensBetweenUpdate>0?e.minimumTokensBetweenUpdate:S.minimumTokensBetweenUpdate,toolCallsBetweenUpdates:e.toolCallsBetweenUpdates&&e.toolCallsBetweenUpdates>0?e.toolCallsBetweenUpdates:S.toolCallsBetweenUpdates})}),Q=!1,$=c(async function(e){let{messages:t,toolUseContext:n,querySource:r}=e;if(r!==`repl_main_thread`)return;{let{isPoorModeActive:e}=await import(`./poorMode-D_hB-rDf.js`);if(e())return}if(!ye()){process.env.USER_TYPE===`ant`&&!Q&&(Q=!0,p(`tengu_session_memory_gate_disabled`,{}));return}if(Z(),!K(t))return;h();let i=L(n),{memoryPath:a,currentMemory:o}=await q(i);await b({promptMessages:[D({content:await N(o,a)})],cacheSafeParams:ue(e),canUseTool:J(a),querySource:`session_memory`,forkLabel:`session_memory`,overrides:{readFileState:i.readFileState}});let s=t[t.length-1],c=s?O(s):void 0,l=_();p(`tengu_session_memory_extraction`,{input_tokens:c?.input_tokens,output_tokens:c?.output_tokens,cache_read_input_tokens:c?.cache_read_input_tokens??void 0,cache_creation_input_tokens:c?.cache_creation_input_tokens??void 0,config_min_message_tokens_to_init:l.minimumMessageTokensToInit,config_min_tokens_between_update:l.minimumTokensBetweenUpdate,config_tool_calls_between_updates:l.toolCallsBetweenUpdates}),H(A(t)),Y(t),x()})}));export{K as a,Se as i,xe as n,Ce as r,J as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{KO as e,XO as t}from"./loadAgentsDir-D7kapZB5.js";t();export{e as getSessionMemoryContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionObserver-CujNIWks.js";e();export{t as heuristicObserverBackend};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ar as e,Lr as t,oi as n}from"./loadAgentsDir-D7kapZB5.js";e();export{t as linkSessionToPR,n as recordTranscript};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as e,s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{In as r,Ln as i}from"./src-Di342QoJ.js";import{Ct as ee,U as a,cn as o,dr as s,jr as c,lr as l,ut as te}from"./state-sIHsFpDu.js";import{Ac as u,Cn as ne,Pc as d,Sc as f,at as p,bc as m,it as h,on as g,rt as _,st as v}from"./paths-1ngPRtu3.js";import{L as y,V as b}from"./debug-UI3T040K.js";import{n as x,r as S}from"./analytics-DqMQntaB.js";import{n as C,t as w}from"./cwd--iizewsn.js";import{F as T,P as E,f as re,n as D,r as O,v as k}from"./git-CN3qtTb_.js";import{a as A,n as j}from"./env-chR0gV31.js";import{o as M,s as N}from"./log-CzsijfHZ.js";import{a as P,n as F}from"./startupProfiler-DnXZaX4A.js";import{Ar as I,BS as L,Bb as R,Ck as z,Fv as B,Gi as V,Hm as H,Hv as U,Mt as W,Pb as G,Pv as K,VS as q,Vm as J,Wv as Y,Xi as X,_E as ie,_t as ae,bt as Z,vE as oe,vk as se,vn as ce,vt as le,wt as ue,xi as de,yn as fe,zS as pe}from"./loadAgentsDir-D7kapZB5.js";import{l as me,u as he}from"./terminalSetup-bSbq4LE7.js";import{c as ge,n as _e}from"./releaseNotes-CvfZb3fZ.js";import{s as ve,u as ye}from"./logoV2Utils-DjThKW15.js";import{i as be,r as xe}from"./runtimeObserver-BhvHeiwD.js";import{n as Q,r as Se}from"./sessionMemory-UpILj5ww.js";import{t as Ce}from"./sinks-B9A94oIj.js";import{homedir as we}from"os";import{join as Te}from"path";import{copyFile as Ee,stat as De}from"fs/promises";t(),i(),o(),x(),C(),b(),E(),A(),k(),g(),v(),_(),z(),oe(),L(),he(),K(),J(),X(),I(),fe(),ge(),be(),Se(),u(),M();function $(){d(e=>({...e,iterm2SetupInProgress:!1}))}function Oe(){let e=f();return{inProgress:e.iterm2SetupInProgress??!1,backupPath:e.iterm2BackupPath||null}}function ke(){return Te(we(),`Library`,`Preferences`,`com.googlecode.iterm2.plist`)}async function Ae(){let{inProgress:e,backupPath:t}=Oe();if(!e)return{status:`no_backup`};if(!t)return $(),{status:`no_backup`};try{await De(t)}catch{return $(),{status:`no_backup`}}try{return await Ee(t,ke()),$(),{status:`restored`}}catch(e){return N(Error(`Failed to restore iTerm2 settings with: ${e}`)),$(),{status:`failed`,backupPath:t}}}u(),M(),ye(),G(),Y(),F(),ue();async function je(t,i,o,u,d,g,_,v,b){T(`info`,`setup_started`);let x=process.version.match(/^v(\d+)\./)?.[1];if((!x||parseInt(x,10)<18)&&(console.error(r.bold.red(`Error: Claude Code requires Node.js version 18 or higher.`)),process.exit(1)),_&&c(ie(_)),e(),!e()&&h()){let{captureTeammateModeSnapshot:e}=await import(`./teammateModeSnapshot-BgUQ4Phz.js`);e()}if(!a()){if(h()){let e=await Ae();e.status===`restored`?console.log(r.yellow(`Detected an interrupted iTerm2 setup. Your original settings have been restored. You may need to restart iTerm2 for the changes to take effect.`)):e.status===`failed`&&console.error(r.red(`Failed to restore iTerm2 settings. Please manually restore your original settings with: defaults import com.googlecode.iterm2 ${e.backupPath}.`))}try{let e=await me();e.status===`restored`?console.log(r.yellow(`Detected an interrupted Terminal.app setup. Your original settings have been restored. You may need to restart Terminal.app for the changes to take effect.`)):e.status===`failed`&&console.error(r.red(`Failed to restore Terminal.app settings. Please manually restore your original settings with: defaults import com.apple.Terminal ${e.backupPath}.`))}catch(e){N(e)}}H(t);let C=Date.now();if(pe(),T(`info`,`setup_hooks_captured`,{duration_ms:Date.now()-C}),B(t),u){let e=ce(),n=await re();!e&&!n&&(process.stderr.write(r.red(`Error: Can only use --worktree in a git repository, but ${r.bold(t)} is not a git repository. Configure a WorktreeCreate hook in settings.json to use --worktree with other VCS systems.\n`)),process.exit(1));let i=v?`pr-${v}`:d??U(),a;if(n){let e=D(w());e||(process.stderr.write(r.red(`Error: Could not determine the main git repository root.
|
|
2
|
-
`)),process.exit(1)),e!==(O(w())??w())&&(T(`info`,`worktree_resolved_to_main_repo`),process.chdir(e),H(e)),a=g?Z(e,W(i)):void 0}else a=g?Z(w(),W(i)):void 0;let o;try{o=await le(ee(),i,a,v?{prNumber:v}:void 0)}catch(e){process.stderr.write(r.red(`Error creating worktree: ${y(e)}\n`)),process.exit(1)}if(S(`tengu_worktree_created`,{tmux_enabled:g}),g&&a){let e=await ae(a,o.worktreePath);e.created?console.log(r.green(`Created tmux session: ${r.bold(a)}\nTo attach: ${r.bold(`tmux attach -t ${a}`)}`)):console.error(r.yellow(`Warning: Failed to create tmux session: ${e.error}`))}process.chdir(o.worktreePath),H(o.worktreePath),l(w()),s(w()),de(o),se(),q()}T(`info`,`setup_background_jobs_starting`),e()||(Q(),xe()),R(),T(`info`,`setup_background_jobs_launched`),P(`setup_before_prefetch`),T(`info`,`setup_prefetch_starting`);let E=a()&&n(process.env.CLAUDE_CODE_SYNC_PLUGIN_INSTALL)||e();if(E||V(te()),import(`./loadPluginHooks-CL5aGDrb.js`).then(e=>{E||(e.loadPluginHooks(),e.setupPluginHookHotReload())}),e()||(process.env.USER_TYPE===`ant`&&import(`./commitAttribution-CSVDcgTO.js`).then(async e=>{if(await e.isInternalModelRepo()){let{clearSystemPromptSections:e}=await import(`./systemPromptSections-DB93ZNWP.js`);e()}}),setImmediate(()=>{import(`./attributionHooks-PygdohOh.js`).then(({registerAttributionHooks:e})=>{e()})}),import(`./sessionFileAccessHooks-BeuS4m7a.js`).then(e=>e.registerSessionFileAccessHooks())),Ce(),S(`tengu_started`,{}),ne(a()),P(`setup_after_prefetch`),!e()){let{hasReleaseNotes:e}=await _e(f().lastReleaseNotesSeen);e&&await ve()}if((i===`bypassPermissions`||o)&&(process.platform!==`win32`&&typeof process.getuid==`function`&&process.getuid()===0&&process.env.IS_SANDBOX!==`1`&&!n(process.env.CLAUDE_CODE_BUBBLEWRAP)&&(console.error(`--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons`),process.exit(1)),process.env.USER_TYPE===`ant`&&process.env.CLAUDE_CODE_ENTRYPOINT!==`local-agent`&&process.env.CLAUDE_CODE_ENTRYPOINT!==`claude-desktop`)){let[e,t]=await Promise.all([p.getIsDocker(),j.hasInternetAccess()]),n=p.getIsBubblewrapSandbox(),r=process.env.IS_SANDBOX===`1`;(!(e||n||r)||t)&&(console.error(`--dangerously-skip-permissions can only be used in Docker/sandbox containers with no internet access but got Docker: ${e}, Bubblewrap: ${n}, IS_SANDBOX: ${r}, hasInternet: ${t}`),process.exit(1))}let k=m();k.lastCost!==void 0&&k.lastDuration!==void 0&&S(`tengu_exit`,{last_session_cost:k.lastCost,last_session_api_duration:k.lastAPIDuration,last_session_tool_duration:k.lastToolDuration,last_session_duration:k.lastDuration,last_session_lines_added:k.lastLinesAdded,last_session_lines_removed:k.lastLinesRemoved,last_session_total_input_tokens:k.lastTotalInputTokens,last_session_total_output_tokens:k.lastTotalOutputTokens,last_session_total_cache_creation_input_tokens:k.lastTotalCacheCreationInputTokens,last_session_total_cache_read_input_tokens:k.lastTotalCacheReadInputTokens,last_session_fps_average:k.lastFpsAverage,last_session_fps_low_1_pct:k.lastFpsLow1Pct,last_session_id:k.lastSessionId,...k.lastSessionMetrics})}export{je as setup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./sink-Cugto5We.js";t();export{e as initializeAnalyticsSink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-B9A94oIj.js";export{e as initSinks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./chokidar-SzksMqYp.js";import{Ct as n,Fr as r,Pr as i,cn as a,et as o,g as s,jr as ee,lr as c,nr as l,tr as te}from"./state-sIHsFpDu.js";import{Br as ne,Pr as re}from"./paths-1ngPRtu3.js";import{X as ie,Y as ae,d as u,h as oe,p as se,s as d}from"./debug-UI3T040K.js";import{n as ce,r as le}from"./analytics-DqMQntaB.js";import{n as ue,t as f}from"./cwd--iizewsn.js";import{Ac as de,Ar as fe,At as p,Ck as pe,Cm as m,Hm as h,Lo as me,Pt as he,Ri as ge,Sm as g,Uv as _,Vm as _e,Wv as ve,Xi as ye,Yn as be,_E as v,_m as y,_o as b,aE as x,bm as S,cd as C,di as w,ei as T,fi as E,gm as D,gn as O,i as k,kc as A,o as j,oE as M,pd as N,r as xe,ry as Se,ty as Ce,vE as we,vi as Te,vk as P,wm as Ee,wt as De,xi as F,xt as I,yn as Oe,zi as ke}from"./loadAgentsDir-D7kapZB5.js";import{zt as Ae}from"./prompt-BBg3jtfc.js";import{f as je,l as Me,t as L}from"./commitAttribution-e0kkanVT.js";import{F as Ne,P as Pe}from"./teamHelpers-DEgaCpta.js";import{n as R,r as Fe}from"./systemPromptSections-BcN_XBTx.js";import{r as Ie}from"./asciicast-o5Zg4dJt.js";import*as z from"path";import{dirname as Le}from"path";a(),Fe(),D(),j(),Ae(),we(),pe(),Me(),C(),ue(),d(),Se(),me(),re(),ve(),_e(),fe(),Pe(),M(),De();function Re(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.type!==`assistant`)continue;let r=n.message.content.find(e=>e.type===`tool_use`&&e.name===`TodoWrite`);if(!r||r.type!==`tool_use`)continue;let i=r.input;if(typeof i!=`object`||!i)return[];let a=x().safeParse(i.todos);return a.success?a.data:[]}return[]}function ze(e,t){if(e.fileHistorySnapshots&&e.fileHistorySnapshots.length>0&&Ce(e.fileHistorySnapshots,e=>{t(t=>({...t,fileHistory:e}))}),e.attributionSnapshots&&e.attributionSnapshots.length>0&&L(e.attributionSnapshots,e=>{t(t=>({...t,attribution:e}))}),!Ne()&&e.messages&&e.messages.length>0){let r=Re(e.messages);if(r.length>0){let e=n();t(t=>({...t,todos:{...t.todos,[e]:r}}))}}}function Be(e){if(e.attributionSnapshots&&e.attributionSnapshots.length>0)return je(e.attributionSnapshots)}function B(e,t){if(!(!e&&!t))return{name:e??``,color:t===`default`?void 0:t}}function V(e,t,n){if(t)return{agentDefinition:t,agentType:void 0};if(!e)return l(void 0),{agentDefinition:void 0,agentType:void 0};let r=n.activeAgents.find(t=>t.agentType===e);return r?(l(r.agentType),!o()&&r.model&&r.model!==`inherit`&&te(ne(r.model)),{agentDefinition:r,agentType:r.agentType}):(u(`Resumed session had agent "${e}" but it is no longer available. Using default behavior.`),l(void 0),{agentDefinition:void 0,agentType:void 0})}async function Ve(e,t,n,r){if(!e)return r;k.cache.clear?.();let i=await k(t),a=[...i.allAgents,...n];return{...i,allAgents:a,activeAgents:xe(a)}}function H(e){let t=I();if(t){F(t);return}if(e){try{process.chdir(e.worktreePath)}catch{F(null);return}h(e.worktreePath),c(f()),p(e),P(),R(),_.cache.clear?.()}}function He(){let e=I();if(e){p(null),P(),R(),_.cache.clear?.();try{process.chdir(e.originalCwd)}catch{return}h(e.originalCwd),c(f())}}async function Ue(e,t,n){let r;if(r=n.modeApi?.matchSessionMode(e.mode),r&&e.messages.push(b(r,`warning`)),t.forkSession)e.contentReplacements?.length&&await T(e.contentReplacements);else{let n=t.sessionIdOverride??e.sessionId;n&&(ee(v(n),t.transcriptPath?Le(t.transcriptPath):null),await Ie(),await w(),y(n))}E(t.forkSession?{...e,worktreeSession:void 0}:e),t.forkSession||(H(e.worktreeSession),be());let{agentDefinition:i,agentType:a}=V(e.agentSetting,n.mainThreadAgentDefinition,n.agentDefinitions);Te(n.modeApi?.isCoordinatorMode()?`coordinator`:`normal`);let o=t.includeAttribution?Be(e):void 0,s=B(e.agentName,e.agentColor);N(e.agentName);let c=await Ve(!!r,n.currentCwd,n.cliAgents,n.agentDefinitions);return{messages:e.messages,fileHistorySnapshots:e.fileHistorySnapshots,contentReplacements:e.contentReplacements,agentName:e.agentName,agentColor:e.agentColor===`default`?void 0:e.agentColor,restoredAgentDef:i,initialState:{...n.initialState,...a&&{agent:a},...o&&{attribution:o},...s&&{standaloneAgentContext:s},agentDefinitions:c}}}e(),a(),ye(),ce(),m(),A(),ae(),d(),oe(),Oe(),r();var We=1e3,Ge=500,Ke=300,qe=2e3,Je=typeof Bun<`u`,U=null,W=null,G=new Set,K=!1,q=!1,J=!1,Y=null,X=i(),Z=null;async function Ye(){if(K||q)return;K=!0,J||(J=!0,Ee(()=>{ge(),X.emit()}));let e=await Ze();e.length!==0&&(u(`Watching for changes in skill/command directories: ${e.join(`, `)}...`),U=t.watch(e,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:Z?.stabilityThreshold??We,pollInterval:Z?.pollInterval??Ge},ignored:(e,t)=>t&&!t.isFile()&&!t.isDirectory()?!0:e.split(z.sep).some(e=>e===`.git`),ignorePermissionErrors:!0,usePolling:Je,interval:Z?.chokidarInterval??qe,atomic:!0}),U.on(`add`,$),U.on(`change`,$),U.on(`unlink`,$),Y=ie(async()=>{await Q()}))}function Q(){q=!0,Y&&(Y(),Y=null);let e=Promise.resolve();return U&&(e=U.close(),U=null),W&&(clearTimeout(W),W=null),G.clear(),X.clear(),e}var Xe=X.subscribe;async function Ze(){let e=se(),t=[],n=g(`userSettings`,`skills`);if(n)try{await e.stat(n),t.push(n)}catch{}let r=g(`userSettings`,`commands`);if(r)try{await e.stat(r),t.push(r)}catch{}let i=g(`projectSettings`,`skills`);if(i)try{let n=z.resolve(i);await e.stat(n),t.push(n)}catch{}let a=g(`projectSettings`,`commands`);if(a)try{let n=z.resolve(a);await e.stat(n),t.push(n)}catch{}for(let n of s()){let r=z.join(n,`.claude`,`skills`);try{await e.stat(r),t.push(r)}catch{}}return t}function $(e){u(`Detected skill change: ${e}`),le(`tengu_skill_file_changed`,{source:`chokidar`}),Qe(e)}function Qe(e){G.add(e),W&&clearTimeout(W),W=setTimeout(async()=>{W=null;let e=[...G];if(G.clear(),O(await he(`skills`,e[0]))){u(`ConfigChange hook blocked skill reload (${e.length} paths)`);return}S(),ke(),de(),X.emit()},Z?.reloadDebounce??Ke)}async function $e(e){U&&(await U.close(),U=null),W&&(clearTimeout(W),W=null),G.clear(),X.clear(),K=!1,q=!1,Z=e??null}var et={initialize:Ye,dispose:Q,subscribe:Xe,resetForTesting:$e};export{V as a,Ue as i,B as n,ze as o,He as r,H as s,et as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./featureCheck-Cm0YNDXO.js";import"./instinctParser-DHMa8xa0.js";import"./skillGenerator-B9GM0LHk.js";import{p as e}from"./runtimeObserver-BhvHeiwD.js";import{o as t}from"./observationStore-tvkldXUo.js";import{c as n}from"./projectContext-eXMSfgdZ.js";import"./sessionObserver-CujNIWks.js";import"./toolEventObserver-D4h-QqVP.js";import"./skillGapStore-91Mb3xDY.js";import{t as r}from"./skillLearning-DbOOqb6b.js";r();export{e as loadInstincts,t as readObservations,n as resolveProjectContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teamHelpers-DEgaCpta.js";e();export{t as cleanupSessionTeams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teammateModeSnapshot-Dyukgtp9.js";e();export{t as captureTeammateModeSnapshot};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{av as e,fv as t,iv as n,lv as r,sv as i}from"./loadAgentsDir-D7kapZB5.js";e();export{n as checkOutTeleportedSessionBranch,i as processMessagesForTeleportResume,r as teleportResumeCodeSession,t as validateGitState};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./thinkback-CxWZV2Oz.js";e();export{n as call,t as playAnimation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Lt as n,Rn as r,b as i,f as a,t as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{al as l,el as u}from"./paths-1ngPRtu3.js";import{K as d,U as f,V as p,d as m,s as h}from"./debug-UI3T040K.js";import{r as g,t as _}from"./execa-CGue6Z3n.js";import{o as ee,s as v}from"./log-CzsijfHZ.js";import{i as te,o as y}from"./platform-CuyedWpe.js";import{r as b,t as ne}from"./execFileNoThrow-CuQN1sz8.js";import{As as x,Ax as S,DA as C,Es as w,Fs as T,Gs as re,Hs as ie,Is as ae,Vs as oe,fs as se,gy as E,kA as ce,kx as D,lc as O,ps as k,uc as A,vy as j}from"./loadAgentsDir-D7kapZB5.js";import{n as M,r as N}from"./pluginStartupCheck-RRcAbKfx.js";import{a as P,s as F}from"./pluginOperations-C9XP-mko.js";import{join as I}from"path";import{readFile as L}from"fs/promises";function R(){return process.env.USER_TYPE===`ant`?q:C}function z(){return process.env.USER_TYPE===`ant`?J:Y}function B(){return`thinkback@${R()}`}async function V(){let{enabled:e}=await k(),t=e.find(e=>e.name===`thinkback`||e.source&&e.source.includes(B()));if(!t)return null;let n=I(t.path,`skills`,X);return await l(n)?n:null}async function H(e){let t=I(e,`year_in_review.js`),r=I(e,`player.js`);try{await L(t)}catch(e){return f(e)?{success:!1,message:`No animation found. Run /think-back first to generate one.`}:(v(e),{success:!1,message:`Could not access animation data: ${d(e).message}`})}try{await L(r)}catch(e){return f(e)?{success:!1,message:`Player script not found. The player.js file is missing from the thinkback skill.`}:(v(e),{success:!1,message:`Could not access player script: ${d(e).message}`})}let i=n.get(process.stdout);if(!i)return{success:!1,message:`Failed to access terminal instance`};i.enterAlternateScreen();try{await _(`node`,[r],{stdio:`inherit`,cwd:e,reject:!1})}catch{}finally{i.exitAlternateScreen()}let a=I(e,`year_in_review.html`);if(await l(a)){let e=te();ne(e===`macos`?`open`:e===`windows`?`start`:`xdg-open`,[a])}return{success:!0,message:`Year in review animation complete!`}}function U({onReady:e,onError:t}){let[n,r]=(0,G.useState)({phase:`checking`}),[a,o]=(0,G.useState)(``);if((0,G.useEffect)(()=>{async function n(){try{let t=await ie(),n=R(),i=z(),a=B(),s=n in t,c=x(a);if(s?c||(r({phase:`installing-marketplace`}),o(`Updating marketplace…`),m(`Refreshing marketplace ${n}`),await re(n,e=>{o(e)}),ae(),O(),m(`Marketplace ${n} refreshed`)):(r({phase:`installing-marketplace`}),m(`Installing marketplace ${i}`),await T({source:`github`,repo:i},e=>{o(e)}),O(),m(`Marketplace ${n} installed`)),c){let{disabled:e}=await k();if(e.some(e=>e.name===`thinkback`||e.source?.includes(a))){r({phase:`enabling-plugin`}),m(`Enabling plugin ${a}`);let e=await P(a);if(!e.success)throw Error(`Failed to enable plugin: ${e.message}`);O(),m(`Plugin ${a} enabled`)}}else{r({phase:`installing-plugin`}),m(`Installing plugin ${a}`);let e=await N([a]);if(e.failed.length>0){let t=e.failed.map(e=>`${e.name}: ${e.error}`).join(`, `);throw Error(`Failed to install plugin: ${t}`)}O(),m(`Plugin ${a} installed`)}r({phase:`ready`}),e()}catch(e){let n=d(e);v(n),r({phase:`error`,message:n.message}),t(n.message)}}n()},[e,t]),n.phase===`error`)return(0,K.jsx)(s,{flexDirection:`column`,children:(0,K.jsxs)(i,{color:`error`,children:[`Error: `,n.message]})});if(n.phase===`ready`)return null;let c=n.phase===`checking`?`Checking thinkback installation…`:n.phase===`installing-marketplace`?`Installing marketplace…`:n.phase===`enabling-plugin`?`Enabling thinkback plugin…`:`Installing thinkback plugin…`;return(0,K.jsx)(s,{flexDirection:`column`,children:(0,K.jsxs)(s,{children:[(0,K.jsx)(E,{}),(0,K.jsx)(i,{children:a||c})]})})}function W({onDone:e,onAction:t,skillDir:n,hasGenerated:r}){let[o,c]=(0,G.useState)(!1),l=r?[{label:`Play animation`,value:`play`,description:`Watch your year in review`},{label:`Edit content`,value:`edit`,description:`Modify the animation`},{label:`Fix errors`,value:`fix`,description:`Fix validation or rendering issues`},{label:`Regenerate`,value:`regenerate`,description:`Create a new animation from scratch`}]:[{label:`Let's go!`,value:`regenerate`,description:`Generate your personalized animation`}];function u(r){c(!0),r===`play`?H(n).then(()=>{e(void 0,{display:`skip`})}):t(r)}function d(){e(void 0,{display:`skip`})}return o?null:(0,K.jsx)(a,{title:`Think Back on 2025 with Claude Code`,subtitle:`Generate your 2025 Claude Code Think Back (takes a few minutes to run)`,onCancel:d,color:`claude`,children:(0,K.jsxs)(s,{flexDirection:`column`,gap:1,children:[!r&&(0,K.jsxs)(s,{flexDirection:`column`,children:[(0,K.jsx)(i,{children:`Relive your year of coding with Claude.`}),(0,K.jsx)(i,{dimColor:!0,children:`We'll create a personalized ASCII animation celebrating your journey.`})]}),(0,K.jsx)(D,{options:l,onChange:u,visibleOptionCount:5})]})})}function le({onDone:e}){let[t,n]=(0,G.useState)(!1),[r,a]=(0,G.useState)(null),[o,c]=(0,G.useState)(null),[u,d]=(0,G.useState)(null);function f(){n(!0)}let p=(0,G.useCallback)(t=>{a(t),e(`Error with thinkback: ${t}. Try running /plugin to manually install the think-back plugin.`,{display:`system`})},[e]);(0,G.useEffect)(()=>{t&&!o&&!r&&V().then(e=>{e?(m(`Thinkback skill directory: ${e}`),c(e)):p(`Could not find thinkback skill directory`)})},[t,o,r,p]),(0,G.useEffect)(()=>{if(!o)return;let e=I(o,`year_in_review.js`);l(e).then(t=>{m(`Checking for ${e}: ${t?`found`:`not found`}`),d(t)})},[o]);function h(t){e({edit:Z,fix:Q,regenerate:$}[t],{display:`user`,shouldQuery:!0})}return r?(0,K.jsxs)(s,{flexDirection:`column`,children:[(0,K.jsxs)(i,{color:`error`,children:[`Error: `,r]}),(0,K.jsx)(i,{dimColor:!0,children:`Try running /plugin to manually install the think-back plugin.`})]}):t?!o||u===null?(0,K.jsxs)(s,{children:[(0,K.jsx)(E,{}),(0,K.jsx)(i,{children:`Loading thinkback skill…`})]}):(0,K.jsx)(W,{onDone:e,onAction:h,skillDir:o,hasGenerated:u}):(0,K.jsx)(U,{onReady:f,onError:p})}async function ue(e){return(0,K.jsx)(le,{onDone:e})}var G,K,q,J,Y,X,Z,Q,$,de=e((()=>{g(),r(),G=t(r(),1),S(),o(),j(),F(),h(),p(),b(),u(),ee(),y(),A(),w(),oe(),ce(),se(),M(),K=c(),q=`claude-code-marketplace`,J=`anthropics/claude-code-marketplace`,Y=`anthropics/claude-plugins-official`,X=`thinkback`,Z=`Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.`,Q=`Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.`,$=`Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.`}));export{de as n,H as r,ue as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{DA as t,Es as n,Ms as r,kA as i}from"./loadAgentsDir-D7kapZB5.js";import{n as a,r as o}from"./thinkback-CxWZV2Oz.js";import{join as s}from"path";function c(){return`thinkback@${process.env.USER_TYPE===`ant`?u:t}`}async function l(){let e=r(),t=c(),n=e.plugins[t];if(!n||n.length===0)return{type:`text`,value:`Thinkback plugin not installed. Run /think-back first to install it.`};let i=n[0];return i?.installPath?{type:`text`,value:(await o(s(i.installPath,`skills`,d))).message}:{type:`text`,value:`Thinkback plugin installation path not found.`}}var u,d;e((()=>{n(),i(),a(),u=`claude-code-marketplace`,d=`thinkback`}))();export{l as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./chunk-DR8-3Aex.js";import{Dl as n,Ol as r,bl as i,yl as a}from"./paths-1ngPRtu3.js";import{$C as o,QC as s,lE as c,uE as l}from"./loadAgentsDir-D7kapZB5.js";import{s as u,u as d}from"./prompt-BBg3jtfc.js";function f(e){return h.some(t=>e.endsWith(t))}function p(e){return e.filter(e=>u.has(e.name)||f(e.name))}function m(e,t,n){let[a,s]=r(i([...e,...t],`name`),o),c=(e,t)=>e.name.localeCompare(t.name),l=[...s.sort(c),...a.sort(c)];return g&&g.isCoordinatorMode()?p(l):l}var h,g,_=t((()=>{n(),a(),d(),s(),h=[`subscribe_pr_activity`,`unsubscribe_pr_activity`],g=(l(),e(c))}));export{m as i,_ as n,f as r,p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./toolPool-BHChMuLr.js";e();export{t as applyCoordinatorToolFilter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t}from"./undercover-DLyKv5TE.js";t();export{e as shouldShowUndercoverAutoNotice};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./upgrade-ByIumMQe.js";e();export{t as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n}from"./src-Di342QoJ.js";import{W as r,cn as i}from"./state-sIHsFpDu.js";import{AS as a,HS as o,Mb as s,Nb as c,US as l,jS as u}from"./loadAgentsDir-D7kapZB5.js";function d(){let{addNotification:e,removeNotification:t}=u(),[n,i]=(0,f.useState)(()=>{let{errors:e}=s();return e});return l((0,f.useCallback)(()=>{let{errors:e}=s();i(e)},[])),(0,f.useEffect)(()=>{r()||(n.length>0?e({key:p,text:`Found ${n.length} settings ${n.length===1?`issue`:`issues`} · /doctor for details`,color:`warning`,priority:`high`,timeoutMs:6e4}):t(p))},[n,e,t]),n}var f,p,m=e((()=>{f=t(n()),a(),i(),c(),o(),p=`settings-errors`}));export{d as n,m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Sp as e,yp as t}from"./loadAgentsDir-D7kapZB5.js";e();export{t as clearWebFetchCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{Tt as r}from"./schemas-BGAvj1T4.js";import{t as i}from"./v4-f1i_CNUT.js";import{bs as a,gs as o,vs as s,xs as c,ys as l}from"./paths-1ngPRtu3.js";import{E as u,L as d,R as f,T as p,U as m,V as h,d as g,h as _,p as v,s as y,w as b}from"./debug-UI3T040K.js";import{o as x,s as S}from"./log-CzsijfHZ.js";import{BA as ee,EA as C,HA as w,TA as T,UA as E,eA as D,tA as O,wA as te,zA as ne}from"./loadAgentsDir-D7kapZB5.js";import{homedir as re}from"os";import*as k from"path";import{join as ie,resolve as ae}from"path";import{randomBytes as oe}from"crypto";import{readFile as A,readdir as j,rename as M,stat as N,unlink as P,writeFile as F}from"fs/promises";function I(){return ie(D(),U)}async function L(){let e=I();try{let t=p(await A(e,{encoding:`utf-8`}));if(typeof t!=`object`||!t||!(`version`in t)||!(`fetchedAt`in t)||!(`counts`in t))return g(`Install counts cache has invalid structure`),null;let n=t;if(n.version!==H)return g(`Install counts cache version mismatch (got ${n.version}, expected ${H})`),null;if(typeof n.fetchedAt!=`string`||!Array.isArray(n.counts))return g(`Install counts cache has invalid structure`),null;let r=new Date(n.fetchedAt).getTime();return Number.isNaN(r)?(g(`Install counts cache has invalid fetchedAt timestamp`),null):n.counts.every(e=>typeof e==`object`&&!!e&&typeof e.plugin==`string`&&typeof e.unique_installs==`number`)?Date.now()-r>G?(g(`Install counts cache is stale (>24h old)`),null):{version:n.version,fetchedAt:n.fetchedAt,counts:n.counts}:(g(`Install counts cache has malformed entries`),null)}catch(e){return f(e)!==`ENOENT`&&g(`Failed to load install counts cache: ${d(e)}`),null}}async function R(e){let t=I(),n=`${t}.${oe(8).toString(`hex`)}.tmp`;try{let r=D();await v().mkdir(r),await F(n,u(e,null,2),{encoding:`utf-8`,mode:384}),await M(n,t),g(`Install counts cache saved successfully`)}catch(e){S(e);try{await P(n)}catch{}}}async function z(){g(`Fetching install counts from ${W}`);let e=performance.now();try{let n=await t.get(W,{timeout:1e4});if(!n.data?.plugins||!Array.isArray(n.data.plugins))throw Error(`Invalid response format from install counts API`);return C(`install_counts`,W,`success`,performance.now()-e),n.data.plugins}catch(t){throw C(`install_counts`,W,`failure`,performance.now()-e,te(t)),t}}async function B(){let e=await L();if(e){g(`Using cached install counts`),C(`install_counts`,W,`cache_hit`,0);let t=new Map;for(let n of e.counts)t.set(n.plugin,n.unique_installs);return t}try{let e=await z();await R({version:H,fetchedAt:new Date().toISOString(),counts:e});let t=new Map;for(let n of e)t.set(n.plugin,n.unique_installs);return t}catch(e){return S(e),g(`Failed to fetch install counts: ${d(e)}`),null}}function V(e){if(e<1e3)return String(e);if(e<1e6){let t=(e/1e3).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}K`:`${t}K`}let t=(e/1e6).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}M`:`${t}M`}var H,U,W,G,K=e((()=>{n(),y(),h(),_(),x(),b(),T(),O(),H=1,U=`install-counts-cache.json`,W=`https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json`,G=1440*60*1e3}));async function se(e){let t=e.trim(),n=v(),r=t.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(r?.[1]){let e=r[1],t=r[3];return t?{source:`git`,url:e,ref:t}:{source:`git`,url:e}}if(t.startsWith(`http://`)||t.startsWith(`https://`)){let e=t.match(/^([^#]+)(#(.+))?$/),n=e?.[1]||t,r=e?.[3];if(n.endsWith(`.git`)||n.includes(`/_git/`))return r?{source:`git`,url:n,ref:r}:{source:`git`,url:n};let i;try{i=new URL(n)}catch{return{source:`url`,url:n}}if((i.hostname===`github.com`||i.hostname===`www.github.com`)&&i.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let e=n.endsWith(`.git`)?n:`${n}.git`;return r?{source:`git`,url:e,ref:r}:{source:`git`,url:e}}return{source:`url`,url:n}}let i=process.platform===`win32`&&(t.startsWith(`.\\`)||t.startsWith(`..\\`)||/^[a-zA-Z]:[/\\]/.test(t));if(t.startsWith(`./`)||t.startsWith(`../`)||t.startsWith(`/`)||t.startsWith(`~`)||i){let e=ae(t.startsWith(`~`)?t.replace(/^~/,re()):t),r;try{r=await n.stat(e)}catch(t){let n=f(t);return{error:n===`ENOENT`?`Path does not exist: ${e}`:`Cannot access path: ${e} (${n??t})`}}return r.isFile()?e.endsWith(`.json`)?{source:`file`,path:e}:{error:`File path must point to a .json file (marketplace.json), but got: ${e}`}:r.isDirectory()?{source:`directory`,path:e}:{error:`Path is neither a file nor a directory: ${e}`}}if(t.includes(`/`)&&!t.startsWith(`@`)){if(t.includes(`:`))return null;let e=t.match(/^([^#@]+)(?:[#@](.+))?$/),n=e?.[1]||t,r=e?.[2];return r?{source:`github`,repo:n,ref:r}:{source:`github`,repo:n}}return null}var ce=e((()=>{h(),_()}));function le(e){let t=k.basename(e),n=k.basename(k.dirname(e));return t===`plugin.json`?`plugin`:t===`marketplace.json`?`marketplace`:n===`.claude-plugin`?`plugin`:`unknown`}function q(e){return e.issues.map(e=>({path:e.path.join(`.`)||`root`,message:e.message,code:e.code}))}function J(e,t,n,r){e.includes(`..`)&&n.push({path:t,message:r?`Path contains "..": ${e}. ${r}`:`Path contains ".." which could be a path traversal attempt: ${e}`})}function ue(e){let t=e.replace(/^(\.\.\/)+/,``);return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${t===e?`./plugins/my-plugin`:`./${t}`}" instead of "${e}".`}async function Y(e){let t=[],n=[],r=k.resolve(e),i;try{i=await A(r,{encoding:`utf-8`})}catch(e){let t=f(e),n;return n=t===`ENOENT`?`File not found: ${r}`:t===`EISDIR`?`Path is not a file: ${r}`:`Failed to read file: ${d(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:r,fileType:`plugin`}}let a;try{a=p(i)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${d(e)}`}],warnings:[],filePath:r,fileType:`plugin`}}if(a&&typeof a==`object`){let e=a;e.commands&&(Array.isArray(e.commands)?e.commands:[e.commands]).forEach((e,n)=>{typeof e==`string`&&J(e,`commands[${n}]`,t)}),e.agents&&(Array.isArray(e.agents)?e.agents:[e.agents]).forEach((e,n)=>{typeof e==`string`&&J(e,`agents[${n}]`,t)}),e.skills&&(Array.isArray(e.skills)?e.skills:[e.skills]).forEach((e,n)=>{typeof e==`string`&&J(e,`skills[${n}]`,t)})}let o=a;if(typeof a==`object`&&a){let e=a,t=Object.keys(e).filter(e=>$.has(e));if(t.length>0){let r={...e};for(let e of t)delete r[e],n.push({path:e,message:`Field '${e}' belongs in the marketplace entry (marketplace.json), not plugin.json. It's harmless here but unused — Claude Code ignores it at load time.`});o=r}}let c=s().strict().safeParse(o);if(c.success||t.push(...q(c.error)),c.success){let e=c.data;/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e.name)||n.push({path:`name`,message:`Plugin name "${e.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`}),e.version||n.push({path:`version`,message:`No version specified. Consider adding a version following semver (e.g., "1.0.0")`}),e.description||n.push({path:`description`,message:`No description provided. Adding a description helps users understand what your plugin does`}),e.author||n.push({path:`author`,message:`No author information provided. Consider adding author details for plugin attribution`})}return{success:t.length===0,errors:t,warnings:n,filePath:r,fileType:`plugin`}}async function X(e){let t=[],n=[],i=k.resolve(e),o;try{o=await A(i,{encoding:`utf-8`})}catch(e){let t=f(e),n;return n=t===`ENOENT`?`File not found: ${i}`:t===`EISDIR`?`Path is not a file: ${i}`:`Failed to read file: ${d(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:i,fileType:`marketplace`}}let s;try{s=p(o)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${d(e)}`}],warnings:[],filePath:i,fileType:`marketplace`}}if(s&&typeof s==`object`){let e=s;Array.isArray(e.plugins)&&e.plugins.forEach((e,n)=>{if(e&&typeof e==`object`&&`source`in e){let r=e.source;typeof r==`string`&&J(r,`plugins[${n}].source`,t,ue(r)),r&&typeof r==`object`&&`path`in r&&typeof r.path==`string`&&J(r.path,`plugins[${n}].source.path`,t)}})}let c=a().extend({plugins:r(l().strict())}).strict().safeParse(s);if(c.success||t.push(...q(c.error)),c.success){let e=c.data;if((!e.plugins||e.plugins.length===0)&&n.push({path:`plugins`,message:`Marketplace has no plugins defined`}),e.plugins){e.plugins.forEach((n,r)=>{e.plugins.filter(e=>e.name===n.name).length>1&&t.push({path:`plugins[${r}].name`,message:`Duplicate plugin name "${n.name}" found in marketplace`})});let r=k.dirname(i),a=k.basename(r)===`.claude-plugin`?k.dirname(r):r;for(let[t,r]of e.plugins.entries()){if(!r.version||typeof r.source!=`string`||!r.source.startsWith(`./`))continue;let e=k.join(a,r.source,`.claude-plugin`,`plugin.json`),i;try{let t=p(await A(e,{encoding:`utf-8`}));typeof t.version==`string`&&(i=t.version)}catch{continue}i&&i!==r.version&&n.push({path:`plugins[${t}].version`,message:`Entry declares version "${r.version}" but ${r.source}/.claude-plugin/plugin.json says "${i}". At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. Update this entry to "${i}" to match.`})}}e.metadata?.description||n.push({path:`metadata.description`,message:`No marketplace description provided. Adding a description helps users understand what this marketplace offers`})}return{success:t.length===0,errors:t,warnings:n,filePath:i,fileType:`marketplace`}}function de(e,t,n){let r=[],i=[],a=t.match(ne);if(!a)return i.push({path:`frontmatter`,message:`No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata.`}),{success:!0,errors:r,warnings:i,filePath:e,fileType:n};let o=a[1]||``,s;try{s=E(o)}catch(t){return r.push({path:`frontmatter`,message:`YAML frontmatter failed to parse: ${d(t)}. At runtime this ${n} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n}}if(typeof s!=`object`||!s||Array.isArray(s))return r.push({path:`frontmatter`,message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(s)?`an array`:s===null?`null`:typeof s}.`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n};let c=s;if(c.description!==void 0){let e=c.description;typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`&&e!==null&&r.push({path:`description`,message:`description must be a string, got ${Array.isArray(e)?`array`:typeof e}. At runtime this value is dropped.`})}else i.push({path:`description`,message:`No description in frontmatter. A description helps users and Claude understand when to use this ${n}.`});c.name!==void 0&&c.name!==null&&typeof c.name!=`string`&&r.push({path:`name`,message:`name must be a string, got ${typeof c.name}.`});let l=c[`allowed-tools`];l!=null&&(typeof l!=`string`&&!Array.isArray(l)?r.push({path:`allowed-tools`,message:`allowed-tools must be a string or array of strings, got ${typeof l}.`}):Array.isArray(l)&&l.some(e=>typeof e!=`string`)&&r.push({path:`allowed-tools`,message:`allowed-tools array must contain only strings.`}));let u=c.shell;if(u!=null)if(typeof u!=`string`)r.push({path:`shell`,message:`shell must be a string, got ${typeof u}.`});else{let e=u.trim().toLowerCase();e!==`bash`&&e!==`powershell`&&r.push({path:`shell`,message:`shell must be 'bash' or 'powershell', got '${u}'.`})}return{success:r.length===0,errors:r,warnings:i,filePath:e,fileType:n}}async function Z(e){let t;try{t=await A(e,{encoding:`utf-8`})}catch(t){return f(t)===`ENOENT`?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:[{path:`file`,message:`Failed to read file: ${d(t)}`}],warnings:[],filePath:e,fileType:`hooks`}}let n;try{n=p(t)}catch(t){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${d(t)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:e,fileType:`hooks`}}let r=o().safeParse(n);return r.success?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:q(r.error),warnings:[],filePath:e,fileType:`hooks`}}async function Q(e,t){let n;try{n=await j(e,{withFileTypes:!0})}catch(e){let t=f(e);if(t===`ENOENT`||t===`ENOTDIR`)return[];throw e}if(t)return n.filter(e=>e.isDirectory()).map(t=>k.join(e,t.name,`SKILL.md`));let r=[];for(let t of n){let n=k.join(e,t.name);t.isDirectory()?r.push(...await Q(n,!1)):t.isFile()&&t.name.toLowerCase().endsWith(`.md`)&&r.push(n)}return r}async function fe(e){let t=[],n=[[`skill`,k.join(e,`skills`)],[`agent`,k.join(e,`agents`)],[`command`,k.join(e,`commands`)]];for(let[e,r]of n){let n=await Q(r,e===`skill`);for(let r of n){let n;try{n=await A(r,{encoding:`utf-8`})}catch(n){if(m(n))continue;t.push({success:!1,errors:[{path:`file`,message:`Failed to read: ${d(n)}`}],warnings:[],filePath:r,fileType:e});continue}let i=de(r,n,e);(i.errors.length>0||i.warnings.length>0)&&t.push(i)}}let r=await Z(k.join(e,`hooks`,`hooks.json`));return(r.errors.length>0||r.warnings.length>0)&&t.push(r),t}async function pe(e){let t=k.resolve(e),n=null;try{n=await N(t)}catch(e){if(!m(e))throw e}if(n?.isDirectory()){let e=await X(k.join(t,`.claude-plugin`,`marketplace.json`));if(e.errors[0]?.code!==`ENOENT`)return e;let n=await Y(k.join(t,`.claude-plugin`,`plugin.json`));return n.errors[0]?.code===`ENOENT`?{success:!1,errors:[{path:`directory`,message:`No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json`}],warnings:[],filePath:t,fileType:`plugin`}:n}switch(le(e)){case`plugin`:return Y(e);case`marketplace`:return X(e);case`unknown`:try{let n=p(await A(t,{encoding:`utf-8`}));if(Array.isArray(n.plugins))return X(e)}catch(e){if(f(e)===`ENOENT`)return{success:!1,errors:[{path:`file`,message:`File not found: ${t}`}],warnings:[],filePath:t,fileType:`plugin`}}return Y(e)}}var $,me=e((()=>{i(),h(),ee(),b(),w(),c(),$=new Set([`category`,`source`,`tags`,`strict`,`id`])}));export{se as a,K as c,ce as i,pe as n,V as o,fe as r,B as s,me as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n}from"./voiceModeEnabled-168-1Ocs.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./voiceStreamSTT-B80UegKG.js";t();export{e as isVoiceStreamAvailable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wt as e,yt as t}from"./loadAgentsDir-D7kapZB5.js";e();export{t as execIntoTmuxWorktree};
|