@readmagic/workmate 0.0.12 → 0.0.14
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-m2d3nOQJ.js +1 -0
- package/dist/chunks/AgentsMdExternalIncludesDialog-BRXGkHO4.js +1 -0
- package/dist/chunks/{AgentsMdExternalIncludesDialog-_yJJ0wqu.js → AgentsMdExternalIncludesDialog-D58Vn3SK.js} +1 -1
- package/dist/chunks/App-CeC-2dzL.js +1 -0
- package/dist/chunks/ApproveApiKey-DFpddLyp.js +1 -0
- package/dist/chunks/ApproveApiKey-NXTWIAMj.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-9ruzl1jm.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-COI_V57z.js → BypassPermissionsModeDialog-C4QGpcBT.js} +1 -1
- package/dist/chunks/DiffDialog-LTdtTqsC.js +6 -0
- package/dist/chunks/Doctor-DmiDH-lg.js +1 -0
- package/dist/chunks/Doctor-Yvrzcrvx.js +3 -0
- package/dist/chunks/ExitFlow-DH0L3tyY.js +2 -0
- package/dist/chunks/{Grove-DRZrhbF0.js → Grove-BhhnrFX9.js} +2 -2
- package/dist/chunks/{HybridTransport-BadJQe6u.js → HybridTransport-CEWG9ZRi.js} +2 -4
- package/dist/chunks/InvalidConfigDialog-Ue3kJUPJ.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-BO2AOTVf.js +1 -0
- package/dist/chunks/MCPConnectionManager-Ciy9y9VV.js +1 -0
- package/dist/chunks/MCPToolListView-Ddmu2UcL.js +1 -0
- package/dist/chunks/{McpParsingWarnings-xv0RZCSL.js → McpParsingWarnings-BsCDFWci.js} +1 -1
- package/dist/chunks/MessageSelector-DY5K0NHd.js +3 -0
- package/dist/chunks/Messages-LD6ZO301.js +10 -0
- package/dist/chunks/Onboarding-w0-VVsDz.js +1 -0
- package/dist/chunks/PermissionDialog-BPhvs5xH.js +1 -0
- package/dist/chunks/PressEnterToContinue-Dwoh6CaW.js +1 -0
- package/dist/chunks/{PromptInputFooterSuggestions-8-awCxOn.js → PromptInputFooterSuggestions-OEXx0Abp.js} +1 -1
- package/dist/chunks/PromptInputHelpMenu-DyaUsvNx.js +1 -0
- package/dist/chunks/QueryEngine-sH-KjJIq.js +1 -0
- package/dist/chunks/REPL-BMH_RItw.js +128 -0
- package/dist/chunks/REPL-DkPd3vk5.js +1 -0
- package/dist/chunks/{RemoteSessionManager-B4jqKVd3.js → RemoteSessionManager-DJhrR1dz.js} +2 -2
- package/dist/chunks/ResumeConversation-BbNrpSFB.js +1 -0
- package/dist/chunks/SSETransport-CLiI2qnD.js +2 -0
- package/dist/chunks/{SearchBox-C9vUA4IM.js → SearchBox-CwwV0W-w.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-DupzA6Vm.js +1 -0
- package/dist/chunks/Settings-B1EI5LOU.js +2 -0
- package/dist/chunks/{TeleportProgress-zmdAsogZ.js → TeleportProgress-IB--CbqZ.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-CG32I4cO.js → TeleportRepoMismatchDialog-KjdlS_gA.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-2Yjr74Lq.js → TeleportResumeWrapper-DnHTI39O.js} +1 -1
- package/dist/chunks/ThemePicker-BrD_T7xF.js +1 -0
- package/dist/chunks/{TrustDialog-BVcny9vs.js → TrustDialog-L0rvvpit.js} +1 -1
- package/dist/chunks/ValidationErrorsList-QZvtUrAy.js +2 -0
- package/dist/chunks/add-dir-CpWXReCi.js +1 -0
- package/dist/chunks/{agentDisplay-CfMLGPGH.js → agentDisplay-CrQvGkTT.js} +1 -1
- package/dist/chunks/agents-BYQO6DbG.js +101 -0
- package/dist/chunks/{agents-BT82hwBN.js → agents-C99yMsVF.js} +1 -1
- package/dist/chunks/allErrors-uyOMiF9U.js +1 -0
- package/dist/chunks/{api-DAubp5q9.js → api-C5I2xwgd.js} +1 -1
- package/dist/chunks/api-j0iE1mkR.js +1 -0
- package/dist/chunks/attributionHooks-C0aXyx9L.js +1 -0
- package/dist/chunks/{auth-yDsvFcM7.js → auth-BYCRa_mb.js} +7 -12
- package/dist/chunks/auth-C9FUZzpW.js +1 -0
- package/dist/chunks/auth-DwPrlTHv.js +1 -0
- package/dist/chunks/backgroundHousekeeping-BxcVB3By.js +1 -0
- package/dist/chunks/backgroundHousekeeping-CjD8bACB.js +17 -0
- package/dist/chunks/{banner-BcAM7iSx.js → banner-HfMnBd03.js} +2 -2
- package/dist/chunks/{bg-Ci7pG4eo.js → bg-DltfF1_K.js} +2 -2
- package/dist/chunks/branch-BOWBZo5K.js +2 -0
- package/dist/chunks/{break-cache-4rlQORVk.js → break-cache-Cd1yQ-0h.js} +2 -3
- package/dist/chunks/bridgeConfig-Bxs5dqjH.js +1 -0
- package/dist/chunks/{bridgeConfig-BB6Hgali.js → bridgeConfig-CgAVrQfz.js} +1 -1
- package/dist/chunks/{bridgeMessaging-C9D0Lly2.js → bridgeMessaging-cOFtbkf_.js} +1 -1
- package/dist/chunks/{bridgePointer-DHWK3LEe.js → bridgePointer-CiHy2tTN.js} +1 -1
- package/dist/chunks/{bridgeStatusUtil-D8UbcVrZ.js → bridgeStatusUtil-BQF0AJDO.js} +1 -1
- package/dist/chunks/btw-B0UmiVKl.js +1 -0
- package/dist/chunks/caches-C9--b9a7.js +1 -0
- package/dist/chunks/caches-wN3JyvNE.js +1 -0
- package/dist/chunks/{capacityWake-ByL6fM6I.js → capacityWake-LRiPhPeM.js} +1 -1
- package/dist/chunks/{ccrClient-BG9HU_fW.js → ccrClient-wtUIz75R.js} +1 -1
- package/dist/chunks/{claudeDesktop-Ct_hyICL.js → claudeDesktop-DPIJpc1V.js} +1 -1
- package/dist/chunks/{clear-B4XN2fib.js → clear-CNzBoL7O.js} +1 -1
- package/dist/chunks/{cliLaunch-OPOtzhvA.js → cliLaunch-xIVvtPZy.js} +1 -1
- package/dist/chunks/{client-BMA05FW8.js → client-B7WkO81L.js} +1 -1
- package/dist/chunks/client-BCzhAEd0.js +1 -0
- package/dist/chunks/client-Dr9AYB-r.js +1 -0
- package/dist/chunks/commands-DTB0Qzd5.js +1 -0
- package/dist/chunks/compact-Bj8mdDYN.js +2 -0
- package/dist/chunks/config-B1kYcRIP.js +1 -0
- package/dist/chunks/{config-9rLTDOYW.js → config-BkbL2e5Q.js} +1 -1
- package/dist/chunks/{config-DMKtiMzJ.js → config-WMxn2jLl.js} +1 -1
- package/dist/chunks/context-DB1Ar85E.js +1 -0
- package/dist/chunks/context-noninteractive-Bno2Xsmp.js +1 -0
- package/dist/chunks/{context-noninteractive-mAQt1p9l.js → context-noninteractive-CqnJTDcI.js} +2 -2
- package/dist/chunks/conversation-DOgBzrm0.js +1 -0
- package/dist/chunks/conversation-hNXWaswI.js +1 -0
- package/dist/chunks/{createSSHSession-DjLSGm-0.js → createSSHSession-Cf2tOgK_.js} +3 -4
- package/dist/chunks/createSession-BZx-2UIB.js +1 -0
- package/dist/chunks/{createSession-CftIZ3aq.js → createSession-DD5YaQKM.js} +1 -1
- package/dist/chunks/crossProjectResume-CkiPQYYE.js +40 -0
- package/dist/chunks/{datadog-BGati3aQ.js → datadog-DcLf1QpG.js} +1 -1
- package/dist/chunks/{debug-Dr1SjdXn.js → debug-BQj6h99Q.js} +1 -1
- package/dist/chunks/debugUtils-B86DM1Sp.js +1 -0
- package/dist/chunks/{detached-CqfQYVOi.js → detached--wGwkuHX.js} +1 -2
- package/dist/chunks/{detectRepository-CMEkS5_2.js → detectRepository-Qy3zKoyn.js} +1 -1
- package/dist/chunks/detectRepository-tRUoPOKy.js +1 -0
- package/dist/chunks/{diff-1HsxKGBh.js → diff-dfXWiuLA.js} +1 -1
- package/dist/chunks/directoryCompletion-BtlRKLzw.js +1 -0
- package/dist/chunks/doctor-aKE2bG5C.js +1 -0
- package/dist/chunks/entry-wISucmYc.js +13 -0
- package/dist/chunks/esm-CrJVXrKW.js +1 -0
- package/dist/chunks/{execFileNoThrow-mXq4K0rl.js → execFileNoThrow-DYm1GeGn.js} +1 -1
- package/dist/chunks/{execSyncWrapper-Ne33rRiD.js → execSyncWrapper-CqvQqke-.js} +1 -1
- package/dist/chunks/exit-pjN4EJHV.js +1 -0
- package/dist/chunks/exit-s9XGerrH.js +1 -0
- package/dist/chunks/{extraUsage-0pUcYexI.js → extraUsage-CwDhpClH.js} +1 -1
- package/dist/chunks/extractMemories-WmPLOLUT.js +1 -0
- package/dist/chunks/fast-BVABmasw.js +1 -0
- package/dist/chunks/fast-Cuj3bfFm.js +1 -0
- package/dist/chunks/{fileSuggestions-Be-pyLLq.js → fileSuggestions-Dy2BUZzd.js} +2 -2
- package/dist/chunks/firstPartyEventLogger-CabA8fu0.js +1 -0
- package/dist/chunks/{firstPartyEventLogger-aFhcruXA.js → firstPartyEventLogger-D4yuDP-n.js} +3 -5
- package/dist/chunks/flushGate-B6ecrC4j.js +1 -0
- package/dist/chunks/{fpsMetrics-DffAomdg.js → fpsMetrics-Dk_pnSHJ.js} +1 -1
- package/dist/chunks/gemini-BC-BxZmj.js +1 -0
- package/dist/chunks/generateSessionName-JTR8nPYD.js +1 -0
- package/dist/chunks/{genericProcessUtils-Dc1pfb7J.js → genericProcessUtils-Bbcbi11g.js} +1 -1
- package/dist/chunks/git-BaSq69E7.js +1 -0
- package/dist/chunks/{git-CoQQ6YEf.js → git-DplvjXEY.js} +2 -3
- package/dist/chunks/{githubRepoPathMapping-CmpEaQoo.js → githubRepoPathMapping-Bk4FZrng.js} +1 -1
- package/dist/chunks/goal-B09SOyra.js +3 -0
- package/dist/chunks/grok-BBo3jGfP.js +1 -0
- package/dist/chunks/{grove-BnzBbGsX.js → grove-DsAIY-rZ.js} +1 -1
- package/dist/chunks/help-CELr6oJZ.js +1 -0
- package/dist/chunks/hooks-9rkDD2iw.js +1 -0
- package/dist/chunks/{hooks-BZS105Rd.js → hooks-BI4NY5IC.js} +2 -2
- package/dist/chunks/initReplBridge-BYrL6ou1.js +1 -0
- package/dist/chunks/{install-NZvHd_40.js → install-Dn3_M1Ui.js} +1 -1
- package/dist/chunks/{instrumentation-CjBlVlFq.js → instrumentation-5cSwEKaF.js} +4 -4
- package/dist/chunks/{job-D502Zf8J.js → job-rW1mEYtm.js} +1 -1
- package/dist/chunks/{jwtUtils-FQWtM6iM.js → jwtUtils-YCoZL0FW.js} +1 -1
- package/dist/chunks/keybindings-B5kUoxvg.js +1 -0
- package/dist/chunks/{launchLocalMemory-DxC3LojF.js → launchLocalMemory-CPucX8Xj.js} +2 -2
- package/dist/chunks/launchOnboarding--GCJWeeS.js +8 -0
- package/dist/chunks/loadAgentsDir-D-a1uUb5.js +1 -0
- package/dist/chunks/{loadAgentsDir-BXtV2jiO.js → loadAgentsDir-JrGMJN05.js} +659 -697
- package/dist/chunks/loadPluginHooks-C4zrlV0u.js +1 -0
- package/dist/chunks/localSearch-C-stDP9C.js +1 -0
- package/dist/chunks/localSearch-hOERAH9v.js +1 -0
- package/dist/chunks/{log-27kCA_9u.js → log-BlJ7CcKG.js} +1 -1
- package/dist/chunks/{logoV2Utils-CEnU8qad.js → logoV2Utils-J2Sqfube.js} +1 -1
- package/dist/chunks/{magicDocs-YtfrqVC6.js → magicDocs-Dpe3YhyL.js} +2 -2
- package/dist/chunks/main-C_PDzJdv.js +356 -0
- package/dist/chunks/{main-CGLCy2pM.js → main-Zh18lf2J.js} +2 -2
- package/dist/chunks/managedEnv-AEhH_HUs.js +1 -0
- package/dist/chunks/{managedEnv-B-BNY0xC.js → managedEnv-C8SisyLk.js} +1 -1
- package/dist/chunks/{mappers-IuJeXgvr.js → mappers-CMJorgSL.js} +1 -1
- package/dist/chunks/mcp-B2mJmWKt.js +6 -0
- package/dist/chunks/mcp-SuAh71Ht.js +2 -0
- package/dist/chunks/mcp-_tBxhPV-.js +1 -0
- package/dist/chunks/{memoize-Co4vS6UF.js → memoize-_2f7NWDv.js} +1 -1
- package/dist/chunks/memory-DK8bOrUr.js +1 -0
- package/dist/chunks/{modalContext-CUThy6Ph.js → modalContext-wY9CeN4G.js} +1 -1
- package/dist/chunks/{mode-GzBwK--u.js → mode-BhfhEpnW.js} +2 -2
- package/dist/chunks/model-BCM7RpVk.js +1 -0
- package/dist/chunks/model-BWR43D3c.js +1 -0
- package/dist/chunks/model-CmDF8O9G.js +1 -0
- package/dist/chunks/modelOptions-DEQat7lU.js +1 -0
- package/dist/chunks/nativeInstaller-xxyUjXbl.js +1 -0
- package/dist/chunks/{omit-D4Udf-p-.js → omit-od_CYp5o.js} +1 -1
- package/dist/chunks/{onChangeAppState-WbvtqDtk.js → onChangeAppState-CqTb0yEa.js} +1 -1
- package/dist/chunks/{openai-DaVFXyBB.js → openai-qW8mATAs.js} +3 -3
- package/dist/chunks/{panel-CoF2a-h4.js → panel-Bg_0PHE6.js} +1 -1
- package/dist/chunks/{parser-CUUiH40T.js → parser-a2S_eFyE.js} +1 -1
- package/dist/chunks/parser-x-w3ikxt.js +1 -0
- package/dist/chunks/{partition-CzW_31Y1.js → partition-CYoWXLNU.js} +1 -1
- package/dist/chunks/permissions--iKUbWBw.js +3 -0
- package/dist/chunks/pidLock-BR4hzYgp.js +3 -0
- package/dist/chunks/plan-DiHCGXhM.js +1 -0
- package/dist/chunks/{platform-Dg1c9F_1.js → platform-DVeTi9mp.js} +2 -2
- package/dist/chunks/plugin-BeC4D7XF.js +17 -0
- package/dist/chunks/pluginAutoupdate-Bj-CrFuO.js +1 -0
- package/dist/chunks/pluginBlocklist-DzOs-RS1.js +1 -0
- package/dist/chunks/pluginCliCommands-DwIGn58t.js +1 -0
- package/dist/chunks/{pluginFlagging-CXSSOj4J.js → pluginFlagging-BzuymJuf.js} +1 -1
- package/dist/chunks/pluginOperations-CP1v-nu0.js +2 -0
- package/dist/chunks/pluginStartupCheck-BGN6Je6d.js +1 -0
- package/dist/chunks/{pluginStartupCheck-BEd0VeQC.js → pluginStartupCheck-BUeBiYVq.js} +1 -1
- package/dist/chunks/plugins-D1N31THW.js +4 -0
- package/dist/chunks/{poorMode-DxgO_bUb.js → poorMode-D4L_-yWS.js} +1 -1
- package/dist/chunks/poorMode-XDBnxTiF.js +1 -0
- package/dist/chunks/print-DaJi1wF_.js +14 -0
- package/dist/chunks/processBashCommand-BGCIqxc9.js +1 -0
- package/dist/chunks/processSlashCommand-qR_j1DE8.js +5 -0
- package/dist/chunks/prompt-B0gADAvI.js +1 -0
- package/dist/chunks/{prompt-CRc2QEZ5.js → prompt-DnPppVz8.js} +21 -23
- package/dist/chunks/prompt-DqyEtC_I2.js +1 -0
- package/dist/chunks/{promptEditor-Bo1d8ZLq.js → promptEditor-Cilc9N3L.js} +3 -3
- package/dist/chunks/protocolHandler-DdbiucQa.js +13 -0
- package/dist/chunks/{proxy-BEKNaTXI.js → proxy-C0j74LqT.js} +1 -1
- package/dist/chunks/reconciler-Bte4gdP-.js +1 -0
- package/dist/chunks/refresh-MiZ0acBm.js +1 -0
- package/dist/chunks/registerProtocol-Bpte9dly.js +1 -0
- package/dist/chunks/{reload-plugins-DNEgQ5vo.js → reload-plugins-GdqFZblC.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-BGOqHADF.js → remoteBridgeCore-CAl3_H-O.js} +1 -1
- package/dist/chunks/{remoteManagedSettings-26nhzuca.js → remoteManagedSettings-BcLJLEr7.js} +1 -1
- package/dist/chunks/rename-BDo5qIK0.js +1 -0
- package/dist/chunks/{renderOptions-45A-EdsK.js → renderOptions-CkqTbz6d.js} +1 -1
- package/dist/chunks/resume-Bbweh2hA.js +2 -0
- package/dist/chunks/ripgrep-DrpZ79Pp.js +1 -0
- package/dist/chunks/{ripgrep-DQ_ILUJV.js → ripgrep-X5m4gJ-3.js} +1 -1
- package/dist/chunks/{runtimeObserver-CBV-7-w7.js → runtimeObserver-CxXxUcrm.js} +1 -1
- package/dist/chunks/{runtimeObserver-BZrF3GnQ.js → runtimeObserver-Hjbo43xj.js} +3 -3
- package/dist/chunks/sandbox-adapter-DQ_fJSIo.js +1 -0
- package/dist/chunks/sandbox-toggle-DmNSThQK.js +1 -0
- package/dist/chunks/searchExtraTools-C7b2x2p_.js +1 -0
- package/dist/chunks/{session-Dy-_R7KP.js → session-CkuTMD_4.js} +2 -2
- package/dist/chunks/sessionFileAccessHooks-CQvGAbvL.js +1 -0
- package/dist/chunks/{sessionIdCompat-DMayYBrf.js → sessionIdCompat-Dgp6PW_1.js} +1 -1
- package/dist/chunks/sessionObserver-BoQY7nOa.js +1 -0
- package/dist/chunks/{sessionObserver-CyLpHSkw.js → sessionObserver-CvQ6oyoj.js} +1 -1
- package/dist/chunks/sessionState-C2REgUrs.js +11 -0
- package/dist/chunks/sessionStorage-BeaEgnaa.js +1 -0
- package/dist/chunks/sessionStoragePortable-x0Yn02-G.js +3 -0
- package/dist/chunks/{sessionTitle-L5tyJgdU.js → sessionTitle-2IWcNB8H.js} +2 -2
- package/dist/chunks/{sessionTracing-DpHGGIZm.js → sessionTracing-Bm7hQKHA.js} +2 -2
- package/dist/chunks/settings-Da6ax5aI.js +1 -0
- package/dist/chunks/{settings-DiBMs2gM.js → settings-aUygByiZ.js} +4 -5
- package/dist/chunks/settingsSync-DgzCU1BZ.js +1 -0
- package/dist/chunks/setup-CvaG4nl5.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-DZ0AA2Rw.js → shadowedRuleDetection-CWCQ5dZ0.js} +1 -1
- package/dist/chunks/{shellQuote-C_I6DHLV.js → shellQuote-D3Ocv_U-.js} +1 -1
- package/dist/chunks/{sideQuestion-BYT8FdPF.js → sideQuestion-BoW-xYkh.js} +3 -3
- package/dist/chunks/sinks-B_ehGpvp.js +1 -0
- package/dist/chunks/sinks-ZHKfs6gv.js +1 -0
- package/dist/chunks/skillChangeDetector-C-HWR_8v.js +1 -0
- package/dist/chunks/{skillGapStore-DQXHqoP7.js → skillGapStore-CCNeSjIb.js} +2 -2
- package/dist/chunks/{skillLifecycle-BG_RnGSh.js → skillLifecycle-wU4JDNYQ.js} +2 -2
- package/dist/chunks/{skillSearchPanel-DxYP4Q6R.js → skillSearchPanel-Cxr1QQn4.js} +2 -2
- package/dist/chunks/skills-BghnKnNo.js +1 -0
- package/dist/chunks/{src-r6ZFgWPx2.js → src-D3yIF9I42.js} +1 -1
- package/dist/chunks/src-DL3w8VPk2.js +51 -0
- package/dist/chunks/{startupProfiler-Dc5r6LgE.js → startupProfiler-2sjXZkIP.js} +1 -1
- package/dist/chunks/startupProfiler-B2fyaBEa.js +1 -0
- package/dist/chunks/{staticRender-DrU6eWoq.js → staticRender-D9AbnQFr.js} +1 -1
- package/dist/chunks/{stats-BkadEKa-.js → stats-unp6R0Ah.js} +1 -1
- package/dist/chunks/{status-BmHu-c7I.js → status-BraYBx4N.js} +2 -2
- package/dist/chunks/status-DwyWiaVc.js +1 -0
- package/dist/chunks/statusNoticeHelpers-Dm1aiibR.js +1 -0
- package/dist/chunks/{stringUtils-Df-Lnjxd.js → stringUtils-BjnclTLB.js} +3 -3
- package/dist/chunks/{switcher-sYTxnJQA.js → switcher-BUNSEJ-7.js} +1 -1
- package/dist/chunks/switcher-DDUnWU_4.js +1 -0
- package/dist/chunks/{syncCache-BofuFJEe.js → syncCache-1s9xV8WV.js} +1 -1
- package/dist/chunks/tasks-BjFot03S.js +1 -0
- package/dist/chunks/teleport-Dj2Kvbmx.js +1 -0
- package/dist/chunks/{templateJobs-C94jEE6O.js → templateJobs-CY7GNRo5.js} +1 -3
- package/dist/chunks/{terminalSetup-fwhFTxGi.js → terminalSetup-CpMNk6dc.js} +5 -6
- package/dist/chunks/{terminalSetup-CbXKCpWM.js → terminalSetup-Ty8T8ePM.js} +1 -1
- package/dist/chunks/theme-c6grxWNn.js +1 -0
- package/dist/chunks/{tmux-d3cNCIZA.js → tmux-g0cQ0Buz.js} +1 -1
- package/dist/chunks/{toolEventObserver-DlL9CHmI.js → toolEventObserver-D7WbjgFR.js} +1 -1
- package/dist/chunks/toolPool-O5nkEFb1.js +1 -0
- package/dist/chunks/{trustedDevice-Bzz03jCy.js → trustedDevice-BF78PNK8.js} +1 -1
- package/dist/chunks/trustedDevice-D_z7bAQh.js +1 -0
- package/dist/chunks/{types-BJ7qTz75.js → types-BomO8WUz.js} +1 -1
- package/dist/chunks/{udsClient-CF8BmZgN.js → udsClient-DSvRPCvR.js} +1 -1
- package/dist/chunks/updateCCB-ts7Joyve.js +5 -0
- package/dist/chunks/upstreamproxy-DYoLvdM9.js +10 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-qLfN0tc-.js +1 -0
- package/dist/chunks/useMainLoopModel-DkjG_ikT.js +1 -0
- package/dist/chunks/useManagePlugins-E0Qzj-ws.js +1 -0
- package/dist/chunks/useMergedTools-B7iYaNwM.js +1 -0
- package/dist/chunks/{useSearchInput-q2CFPU4W.js → useSearchInput-CsxiM9i0.js} +1 -1
- package/dist/chunks/useSettingsErrors-DdVTahNa.js +1 -0
- package/dist/chunks/{userAgent-B7WkjI6I.js → userAgent-BggRZ-ZE.js} +1 -1
- package/dist/chunks/util-Xdy1nOjj.js +1 -0
- package/dist/chunks/{validatePlugin-jrcrYEIu.js → validatePlugin-Be5aSSnP.js} +1 -1
- package/dist/chunks/{vim-C4Hs5U2h.js → vim-cFcxfuac.js} +1 -1
- package/dist/chunks/{which-mplwBbc0.js → which-BR8YVCCW.js} +1 -1
- package/dist/chunks/{windowsPaths-C7Mdo9aU.js → windowsPaths-BmXyrasP.js} +1 -1
- package/dist/chunks/windowsPaths-BybjGW7e.js +1 -0
- package/dist/chunks/{workSecret-XLodD7tw.js → workSecret-BUd8cQ6-.js} +1 -1
- package/dist/chunks/workerRegistry-GrD7IAVQ.js +2 -0
- package/dist/chunks/worktree-V7xiUAtl.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/AddWorkspaceDirectory-CtRxzRny.js +0 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-_bI4jo_P.js +0 -1
- package/dist/chunks/App-DoAZ7CYS.js +0 -1
- package/dist/chunks/ApproveApiKey-C8LwmDM2.js +0 -1
- package/dist/chunks/ApproveApiKey-DQP3qmb0.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-CDA2noEk.js +0 -2
- package/dist/chunks/ConsoleOAuthFlow-Dn8fO-o_.js +0 -1
- package/dist/chunks/DiffDialog-CRWtQ1R5.js +0 -6
- package/dist/chunks/Doctor-CZ513Df9.js +0 -3
- package/dist/chunks/Doctor-CzPvNZzF.js +0 -1
- package/dist/chunks/ExitFlow-BFeftDv0.js +0 -2
- package/dist/chunks/InvalidConfigDialog-DQaT6aen.js +0 -1
- package/dist/chunks/InvalidSettingsDialog-ISzcIGPU.js +0 -1
- package/dist/chunks/MCPConnectionManager-BpjC7CEo.js +0 -1
- package/dist/chunks/MCPToolListView-Rb1Q--jG.js +0 -1
- package/dist/chunks/MessageSelector-BHB55sZb.js +0 -3
- package/dist/chunks/Messages-CPX-nIdA.js +0 -11
- package/dist/chunks/Onboarding-CymgipoF.js +0 -1
- package/dist/chunks/PermissionDialog-Cb3z8OUP.js +0 -1
- package/dist/chunks/PressEnterToContinue-Dq0Imo9c.js +0 -1
- package/dist/chunks/PromptInputHelpMenu-BP3UgCdi.js +0 -1
- package/dist/chunks/QueryEngine-HkswHUNv.js +0 -1
- package/dist/chunks/REPL-CZfg65kg.js +0 -133
- package/dist/chunks/REPL-eZsYNBfl.js +0 -1
- package/dist/chunks/ResumeConversation-B03XN_SP.js +0 -1
- package/dist/chunks/SSETransport-je346ofV.js +0 -4
- package/dist/chunks/SearchExtraToolsTool-C85Sanww.js +0 -1
- package/dist/chunks/Settings-C8GKWod1.js +0 -2
- package/dist/chunks/ThemePicker-p7_hHk1V.js +0 -1
- package/dist/chunks/ValidationErrorsList-DSSUWdgd.js +0 -2
- package/dist/chunks/WelcomeV2-BnSYhyfu.js +0 -1
- package/dist/chunks/add-dir-Bd7pilVx.js +0 -1
- package/dist/chunks/agents-qR6r94-F.js +0 -103
- package/dist/chunks/allErrors-CS77lRvU.js +0 -1
- package/dist/chunks/api-C4VflFau.js +0 -1
- package/dist/chunks/attributionHooks-CUAoGkU6.js +0 -1
- package/dist/chunks/auth-CNCehj7y.js +0 -1
- package/dist/chunks/auth-DrD9DW6X.js +0 -1
- package/dist/chunks/autoMode-C2lnBot9.js +0 -45
- package/dist/chunks/autoModeDenials-BxNzGJdR.js +0 -1
- package/dist/chunks/backgroundHousekeeping-DbpTGbwl.js +0 -1
- package/dist/chunks/backgroundHousekeeping-SpTxViUq.js +0 -17
- package/dist/chunks/branch-DJiMa8td.js +0 -3
- package/dist/chunks/bridgeConfig-Ccm79Jze.js +0 -1
- package/dist/chunks/btw-BO2B23f-.js +0 -1
- package/dist/chunks/caches-BQmbXerw.js +0 -1
- package/dist/chunks/caches-Dtjmjm6G.js +0 -1
- package/dist/chunks/client-7lIxWcaM.js +0 -1
- package/dist/chunks/client-B-2ccQZk.js +0 -1
- package/dist/chunks/commands-D_-v6_A0.js +0 -1
- package/dist/chunks/compact-kM0ETtB2.js +0 -2
- package/dist/chunks/config-Crf6Mzu3.js +0 -1
- package/dist/chunks/connectHeadless-CqRoEtrg.js +0 -1
- package/dist/chunks/context-BY5oO5is.js +0 -1
- package/dist/chunks/context-noninteractive-tc4KTYfI.js +0 -1
- package/dist/chunks/conversation-CFIn-KsW.js +0 -1
- package/dist/chunks/conversation-DPI7VKBL.js +0 -1
- package/dist/chunks/createSession-CjdLcRec.js +0 -1
- package/dist/chunks/crossProjectResume-BJqXBzkf.js +0 -40
- package/dist/chunks/dangerousBackend-DwcP0P08.js +0 -1
- package/dist/chunks/debugUtils-cK-iOsEV.js +0 -1
- package/dist/chunks/detectRepository-BsKZDRoI.js +0 -1
- package/dist/chunks/directoryCompletion-ByBTSuLu.js +0 -1
- package/dist/chunks/doctor-CJfvt9zR.js +0 -1
- package/dist/chunks/entry-CrZCZQQC.js +0 -14
- package/dist/chunks/esm-BkOWaWVb.js +0 -1
- package/dist/chunks/exit-B8MA4Ltm.js +0 -1
- package/dist/chunks/exit-BOhGfSlm.js +0 -2
- package/dist/chunks/extractMemories-DqhN0lba.js +0 -1
- package/dist/chunks/fast-DT5WDe3L.js +0 -1
- package/dist/chunks/fast-VOu2FUlV.js +0 -1
- package/dist/chunks/firstPartyEventLogger-B8RVGBQB.js +0 -1
- package/dist/chunks/flushGate-BUSrMj_6.js +0 -1
- package/dist/chunks/gemini-DB4M-MYv.js +0 -1
- package/dist/chunks/generateSessionName-DhCypqJ_.js +0 -1
- package/dist/chunks/git-Bs1vtuvX.js +0 -1
- package/dist/chunks/goal-TxXtfkQ6.js +0 -3
- package/dist/chunks/grok-D2a_J5wE.js +0 -1
- package/dist/chunks/help-C5ankDi4.js +0 -1
- package/dist/chunks/hooks-D-twhU_z.js +0 -1
- package/dist/chunks/initReplBridge-DL4klK0C.js +0 -1
- package/dist/chunks/keybindings-D9Boc8FD.js +0 -2
- package/dist/chunks/launchOnboarding-BLp5k_H4.js +0 -8
- package/dist/chunks/loadAgentsDir-BjsAQWqt.js +0 -1
- package/dist/chunks/loadPluginHooks-Dt3XQ-3N.js +0 -1
- package/dist/chunks/localSearch-CeP4ef0a.js +0 -1
- package/dist/chunks/localSearch-Cz8Ot7k2.js +0 -1
- package/dist/chunks/lockfile-D5-j7HOZ.js +0 -1
- package/dist/chunks/main-CkjTzYj1.js +0 -513
- package/dist/chunks/managedEnv-K9Si1UuL.js +0 -1
- package/dist/chunks/mcp-DMBoeQzm.js +0 -6
- package/dist/chunks/mcp-TMOPfLcW.js +0 -1
- package/dist/chunks/mcp-x5rgv-uv.js +0 -2
- package/dist/chunks/memory-DDUoR63T.js +0 -1
- package/dist/chunks/model-BydaMaPr.js +0 -1
- package/dist/chunks/model-CDnVaVDR.js +0 -1
- package/dist/chunks/model-CIvbC7rW.js +0 -1
- package/dist/chunks/modelOptions-ut0xePEe.js +0 -1
- package/dist/chunks/nativeInstaller-fgCMR_c0.js +0 -1
- package/dist/chunks/parseConnectUrl-BiyKR5-x.js +0 -1
- package/dist/chunks/parser-B2PlJg4C.js +0 -1
- package/dist/chunks/permissions-BT3lxYBM.js +0 -3
- package/dist/chunks/pidLock-d1VPd6CG.js +0 -3
- package/dist/chunks/plan-M9DG3AqN.js +0 -1
- package/dist/chunks/plugin-BiNHuq3h.js +0 -17
- package/dist/chunks/pluginAutoupdate-B5lel6s5.js +0 -1
- package/dist/chunks/pluginBlocklist-CNGmIlwU.js +0 -1
- package/dist/chunks/pluginCliCommands-WLOEhb2M.js +0 -1
- package/dist/chunks/pluginOperations-BFbty6WT.js +0 -2
- package/dist/chunks/pluginStartupCheck-Bcdxg484.js +0 -1
- package/dist/chunks/plugins-BMZ3aYKP.js +0 -4
- package/dist/chunks/poorMode-Djw0P9Gu.js +0 -1
- package/dist/chunks/print-DmoLcwVq.js +0 -26
- package/dist/chunks/processBashCommand-B-VqME9O.js +0 -1
- package/dist/chunks/processSlashCommand-D6zEooTy.js +0 -5
- package/dist/chunks/prompt-C3RRe4kW.js +0 -1
- package/dist/chunks/prompt-EtAanewG.js +0 -1
- package/dist/chunks/protocolHandler-B83fCYI4.js +0 -13
- package/dist/chunks/reconciler-BGav_ezX.js +0 -1
- package/dist/chunks/refresh-DumNiLvM.js +0 -1
- package/dist/chunks/registerProtocol-DduKPsn_.js +0 -36
- package/dist/chunks/rename-BPknfVGF.js +0 -1
- package/dist/chunks/resume-DGz04xDh.js +0 -2
- package/dist/chunks/ripgrep-BLQnqPnE.js +0 -1
- package/dist/chunks/sandbox-adapter-DUqeqkQD.js +0 -1
- package/dist/chunks/sandbox-toggle-D61gVqcT.js +0 -1
- package/dist/chunks/searchExtraTools-CgsV6kb1.js +0 -1
- package/dist/chunks/server-LdbAb0sV.js +0 -1
- package/dist/chunks/serverBanner-BdExKFHT.js +0 -1
- package/dist/chunks/serverLog-BFmvyJ93.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-BJlrZaRD.js +0 -1
- package/dist/chunks/sessionManager-CPa049BO.js +0 -1
- package/dist/chunks/sessionObserver-BGYoLRGx.js +0 -1
- package/dist/chunks/sessionState-DSWN4tMV.js +0 -11
- package/dist/chunks/sessionStorage-zJ1esSCE.js +0 -1
- package/dist/chunks/sessionStoragePortable-BhkGMZWp.js +0 -3
- package/dist/chunks/settings-3ionQKNv.js +0 -1
- package/dist/chunks/settingsSync-dBqlrbcU.js +0 -1
- package/dist/chunks/setup-zf3v3ICe.js +0 -3
- package/dist/chunks/sinks-DppGvgz1.js +0 -1
- package/dist/chunks/sinks-mFsijQ_S.js +0 -2
- package/dist/chunks/skillChangeDetector-D-iq09Xs.js +0 -1
- package/dist/chunks/skills-BD-2ofXA.js +0 -1
- package/dist/chunks/src-P_wYS_NJ2.js +0 -53
- package/dist/chunks/startupProfiler-CUlV07MD.js +0 -1
- package/dist/chunks/status-CrmnCDIE.js +0 -1
- package/dist/chunks/statusNoticeHelpers-DakAVtQO.js +0 -1
- package/dist/chunks/switcher-Dm646gO5.js +0 -1
- package/dist/chunks/tasks-NpI1iEem.js +0 -1
- package/dist/chunks/teleport-Bs3kEipi.js +0 -1
- package/dist/chunks/theme-CEi3b_8f.js +0 -1
- package/dist/chunks/toolPool-DIT_uhtD.js +0 -1
- package/dist/chunks/trustedDevice-BokywSKL.js +0 -1
- package/dist/chunks/updateCCB-CzBxsuJe.js +0 -11
- package/dist/chunks/upstreamproxy-BuBFDFAD.js +0 -11
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHQfwlAl.js +0 -1
- package/dist/chunks/useMainLoopModel-BkyIIW9t.js +0 -1
- package/dist/chunks/useManagePlugins-BWROoGDs.js +0 -1
- package/dist/chunks/useMergedTools-CHxnwR7R.js +0 -1
- package/dist/chunks/useSettingsErrors-CPVQbsqq.js +0 -1
- package/dist/chunks/util-BfqXOA-P.js +0 -1
- package/dist/chunks/windowsPaths-B8p9tFRF.js +0 -1
- package/dist/chunks/workerRegistry-Cfo7bKlm.js +0 -6
- package/dist/chunks/worktree-D0k_pCEz.js +0 -1
- package/dist/chunks/xdg-DcF9ejUM.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{i as r,t as i}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import{open as o,readdir as s,realpath as c,stat as l}from"fs/promises";import{promisify as u}from"util";import{execFile as d}from"child_process";async function f(e){try{let{stdout:t}=await p(`git`,[`worktree`,`list`,`--porcelain`],{cwd:e,timeout:5e3});return t?t.split(`
|
|
2
|
-
`).filter(e=>e.startsWith(`worktree `)).map(e=>e.slice(9).normalize(`NFC`)):[]}catch{return[]}}var p,m=e((()=>{p=u(d)}));function h(e){return typeof e==`string`&&B.test(e)?e:null}function g(e){if(!e.includes(`\\`))return e;try{return JSON.parse(`"${e}"`)}catch{return e}}function _(e,t){let n=[`"${t}":"`,`"${t}": "`];for(let t of n){let n=e.indexOf(t);if(n<0)continue;let r=n+t.length,i=r;for(;i<e.length;){if(e[i]===`\\`){i+=2;continue}if(e[i]===`"`)return g(e.slice(r,i));i++}}}function v(e,t){let n=[`"${t}":"`,`"${t}": "`],r;for(let t of n){let n=0;for(;;){let i=e.indexOf(t,n);if(i<0)break;let a=i+t.length,o=a;for(;o<e.length;){if(e[o]===`\\`){o+=2;continue}if(e[o]===`"`){r=g(e.slice(a,o));break}o++}n=o+1}}return r}function y(e){let t=0,n=``;for(;t<e.length;){let r=e.indexOf(`
|
|
3
|
-
`,t),i=r>=0?e.slice(t,r):e.slice(t);if(t=r>=0?r+1:e.length,!(!i.includes(`"type":"user"`)&&!i.includes(`"type": "user"`))&&!i.includes(`"tool_result"`)&&!(i.includes(`"isMeta":true`)||i.includes(`"isMeta": true`))&&!(i.includes(`"isCompactSummary":true`)||i.includes(`"isCompactSummary": true`)))try{let e=JSON.parse(i);if(e.type!==`user`)continue;let t=e.message;if(!t)continue;let r=t.content,a=[];if(typeof r==`string`)a.push(r);else if(Array.isArray(r))for(let e of r)e.type===`text`&&typeof e.text==`string`&&a.push(e.text);for(let e of a){let t=e.replace(/\n/g,` `).trim();if(!t)continue;let r=H.exec(t);if(r){n||(n=r[1]);continue}let i=/<bash-input>([\s\S]*?)<\/bash-input>/.exec(t);if(i)return`! ${i[1].trim()}`;if(!V.test(t))return t.length>200&&(t=t.slice(0,200).trim()+`…`),t}}catch{}}return n||``}async function b(e,t,n){try{let r=await o(e,`r`);try{let e=await r.read(n,0,z,0);if(e.bytesRead===0)return{head:``,tail:``};let i=n.toString(`utf8`,0,e.bytesRead),a=Math.max(0,t-z),o=i;if(a>0){let e=await r.read(n,0,z,a);o=n.toString(`utf8`,0,e.bytesRead)}return{head:i,tail:o}}finally{await r.close()}}catch{return{head:``,tail:``}}}async function x(e){try{let t=await o(e,`r`);try{let e=await t.stat(),n=Buffer.allocUnsafe(z),r=await t.read(n,0,z,0);if(r.bytesRead===0)return null;let i=n.toString(`utf8`,0,r.bytesRead),a=Math.max(0,e.size-z),o=i;if(a>0){let e=await t.read(n,0,z,a);o=n.toString(`utf8`,0,e.bytesRead)}return{mtime:e.mtime.getTime(),size:e.size,head:i,tail:o}}finally{await t.close()}}catch{return null}}function S(e){return Math.abs(i(e)).toString(36)}function C(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);if(t.length<=200)return t;let n=typeof Bun<`u`?Bun.hash(e).toString(36):S(e);return`${t.slice(0,200)}-${n}`}function w(){return a(t(),`projects`)}function T(e){return a(w(),C(e))}async function E(e){try{return(await c(e)).normalize(`NFC`)}catch{return e.normalize(`NFC`)}}async function D(e){let t=T(e);try{return await s(t),t}catch{let t=C(e);if(t.length<=200)return;let n=t.slice(0,200),r=w();try{let e=(await s(r,{withFileTypes:!0})).find(e=>e.isDirectory()&&e.name.startsWith(n+`-`));return e?a(r,e.name):void 0}catch{return}}}async function O(e,t){let n=`${e}.jsonl`;if(t){let e=await E(t),r=await D(e);if(r){let t=a(r,n);try{let n=await l(t);if(n.size>0)return{filePath:t,projectPath:e,fileSize:n.size}}catch{}}let i;try{i=await f(e)}catch{i=[]}for(let t of i){if(t===e)continue;let r=await D(t);if(!r)continue;let i=a(r,n);try{let e=await l(i);if(e.size>0)return{filePath:i,projectPath:t,fileSize:e.size}}catch{}}return}let r=w(),i;try{i=await s(r)}catch{return}for(let e of i){let t=a(r,e,n);try{let e=await l(t);if(e.size>0)return{filePath:t,projectPath:void 0,fileSize:e.size}}catch{}}}function k(){return G??(G=Buffer.from(`"compact_boundary"`))}function A(e){try{let t=JSON.parse(e);return t.type!==`system`||t.subtype!==`compact_boundary`?null:{hasPreservedSegment:!!t.compactMetadata?.preservedSegment}}catch{return null}}function j(e,t,n,r){let i=r-n;if(!(i<=0)){if(e.len+i>e.buf.length){let t=Buffer.allocUnsafe(Math.min(Math.max(e.buf.length*2,e.len+i),e.cap));e.buf.copy(t,0,0,e.len),e.buf=t}t.copy(e.buf,e.len,n,r),e.len+=i}}function M(e,t,n,r){return r-n>=t.length&&e.compare(t,0,t.length,n,n+t.length)===0}function N(e,t,n){if(e.straddleSnapCarryLen=0,e.straddleSnapTailEnd=0,e.carryLen===0)return 0;let r=e.carryBuf,i=t.indexOf(J);if(i===-1||i>=n)return 0;let a=i+1;if(M(r,K,0,e.carryLen))e.straddleSnapCarryLen=e.carryLen,e.straddleSnapTailEnd=a,e.lastSnapSrc=null;else if(e.carryLen<K.length)return 0;else{if(M(r,q,0,e.carryLen)){let n=A(r.toString(`utf-8`,0,e.carryLen)+t.toString(`utf-8`,0,i));n?.hasPreservedSegment?e.hasPreservedSegment=!0:n&&(e.out.len=0,e.boundaryStartOffset=e.bufFileOff,e.hasPreservedSegment=!1,e.lastSnapSrc=null)}j(e.out,r,0,e.carryLen),j(e.out,t,0,a)}return e.bufFileOff+=e.carryLen+a,e.carryLen=0,a}function P(e,t,n){let r=t.indexOf(n),i=0,a=0,o=-1,s=-1,c=t.indexOf(J);for(;c!==-1;){let l=c+1;if(r!==-1&&r<a&&(r=t.indexOf(n,a)),M(t,K,a,l))j(e.out,t,i,a),o=a,s=l,i=l;else if(r>=a&&r<Math.min(a+X,l)){let s=A(t.toString(`utf-8`,a,c));s?.hasPreservedSegment?e.hasPreservedSegment=!0:s&&(e.out.len=0,e.boundaryStartOffset=e.bufFileOff+a,e.hasPreservedSegment=!1,e.lastSnapSrc=null,o=-1,e.straddleSnapCarryLen=0,i=a),r=t.indexOf(n,r+n.length)}a=l,c=t.indexOf(J,a)}return j(e.out,t,i,a),{lastSnapStart:o,lastSnapEnd:s,trailStart:a}}function F(e,t,n,r,i){r===-1?e.straddleSnapCarryLen>0&&(e.lastSnapLen=e.straddleSnapCarryLen+e.straddleSnapTailEnd,(e.lastSnapBuf===void 0||e.lastSnapLen>e.lastSnapBuf.length)&&(e.lastSnapBuf=Buffer.allocUnsafe(e.lastSnapLen)),e.carryBuf.copy(e.lastSnapBuf,0,0,e.straddleSnapCarryLen),n.copy(e.lastSnapBuf,e.straddleSnapCarryLen,0,e.straddleSnapTailEnd),e.lastSnapSrc=e.lastSnapBuf):(e.lastSnapLen=i-r,(e.lastSnapBuf===void 0||e.lastSnapLen>e.lastSnapBuf.length)&&(e.lastSnapBuf=Buffer.allocUnsafe(e.lastSnapLen)),t.copy(e.lastSnapBuf,0,r,i),e.lastSnapSrc=e.lastSnapBuf)}function I(e,t,n){e.carryLen=t.length-n,e.carryLen>0&&((e.carryBuf===void 0||e.carryLen>e.carryBuf.length)&&(e.carryBuf=Buffer.allocUnsafe(e.carryLen)),t.copy(e.carryBuf,0,n,t.length))}function L(e){if(e.carryLen>0){let t=e.carryBuf;M(t,K,0,e.carryLen)?(e.lastSnapSrc=t,e.lastSnapLen=e.carryLen):j(e.out,t,0,e.carryLen)}e.lastSnapSrc&&(e.out.len>0&&e.out.buf[e.out.len-1]!==J&&j(e.out,Y,0,1),j(e.out,e.lastSnapSrc,0,e.lastSnapLen))}async function R(e,t){let n=k(),r=U,i={out:{buf:Buffer.allocUnsafe(Math.min(t,8*1024*1024)),len:0,cap:t+1},boundaryStartOffset:0,hasPreservedSegment:!1,lastSnapSrc:null,lastSnapLen:0,lastSnapBuf:void 0,bufFileOff:0,carryLen:0,carryBuf:void 0,straddleSnapCarryLen:0,straddleSnapTailEnd:0},a=Buffer.allocUnsafe(r),s=await o(e,`r`);try{let e=0;for(;e<t;){let{bytesRead:o}=await s.read(a,0,Math.min(r,t-e),e);if(o===0)break;e+=o;let c=N(i,a,o),l;if(i.carryLen>0){let e=i.carryLen+(o-c);l=Buffer.allocUnsafe(e),i.carryBuf.copy(l,0,0,i.carryLen),a.copy(l,i.carryLen,c,o)}else l=a.subarray(c,o);let u=P(i,l,n);F(i,l,a,u.lastSnapStart,u.lastSnapEnd),I(i,l,u.trailStart),i.bufFileOff+=u.trailStart}L(i)}finally{await s.close()}return{boundaryStartOffset:i.boundaryStartOffset,postBoundaryBuf:i.out.buf.subarray(0,i.out.len),hasPreservedSegment:i.hasPreservedSegment}}var z,B,V,H,U,W,G,K,q,J,Y,X,Z=e((()=>{n(),m(),r(),z=65536,B=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,V=/^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/,H=/<command-name>(.*?)<\/command-name>/,U=1024*1024,W=5*1024*1024,K=Buffer.from(`{"type":"attribution-snapshot"`),q=Buffer.from(`{"type":"system"`),J=10,Y=Buffer.from([J]),X=256}));export{m as _,_ as a,w as c,x as d,R as f,f as g,h,y as i,Z as l,C as m,W as n,v as o,O as p,E as r,D as s,z as t,b as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,g as t,x as n}from"./settings-DiBMs2gM.js";t();export{e as getSettingsForSource,n as updateSettingsForSource};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Hv as t,sb as n}from"./loadAgentsDir-BXtV2jiO.js";import{A as r,C as i,O as a,w as o}from"./external-CEp-aPkt.js";import{n as s,r as c,t as l}from"./lazySchema-B4D4qJVE.js";import{Wt as u}from"./state-BPFYBqm1.js";import{R as d}from"./debug-Dr1SjdXn.js";import{g as f}from"./settings-DiBMs2gM.js";import{h as p}from"./config-9rLTDOYW.js";import{O as m,m as h}from"./git-CoQQ6YEf.js";import{u as g}from"./oauth-D38aRTUb.js";import{Bt as _,si as v}from"./model-CDnVaVDR.js";import"path";import"fs/promises";var y,b=e((()=>{c(),l(),y=s(()=>o({entries:a(r(),r())})),s(()=>o({userId:r(),version:i(),lastModified:r(),checksum:r(),content:y()}))})),x=e((()=>{u(),g(),_(),n(),p(),m(),d(),h(),v(),f(),t(),b()}));export{x as t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./memoize-BK3gG5ob.js";import{l as n,o as r,s as i}from"./envUtils-DcaKZlRU.js";import{$C as a,Av as o,Ba as s,Bi as c,Bm as l,Bv as u,Cr as d,Cv as f,Dv as p,Ev as m,Fi as ee,Fn as te,In as ne,Kg as re,Lv as ie,Nm as ae,Nt as h,Ov as oe,Pm as se,Pn as ce,Ra as g,Rm as le,Rv as ue,Sv as de,Ta as fe,Tt as pe,Tv as me,XC as _,YC as he,_E as ge,_n as v,bv as y,cc as b,ew as x,fc as S,gm as C,hC as w,hE as T,hm as E,iw as D,kv as O,lc as k,lt as A,mC as j,mc as M,mi as N,nb as P,nv as F,nw as I,ov as L,qg as _e,rw as ve,sb as ye,vn as be,vt as xe,vv as R,wv as Se,xt as z,xv as Ce,yt as we,yv as Te,zm as Ee}from"./loadAgentsDir-BXtV2jiO.js";import{di as De,ui as B}from"./src-P_wYS_NJ2.js";import{B as Oe,Bn as ke,Hn as Ae,Wt as V,it as je,or as Me,pt as Ne,z as H}from"./state-BPFYBqm1.js";import{n as Pe,t as U}from"./cwd-Besi3Os3.js";import{F as Fe,P as Ie,R as W,f as Le,u as Re}from"./debug-Dr1SjdXn.js";import{Kt as ze,Ln as Be,Rn as Ve,Yt as He}from"./settings-DiBMs2gM.js";import{h as Ue,o as We}from"./config-9rLTDOYW.js";import{O as Ge,k as G,l as Ke,m as qe,n as Je,r as Ye}from"./git-CoQQ6YEf.js";import{o as Xe,s as Ze}from"./log-27kCA_9u.js";import{n as K,r as q}from"./analytics-DJobLaWP.js";import{n as Qe,r as J}from"./startupProfiler-Dc5r6LgE.js";import{Bt as $e,ei as et,rn as tt,ti as nt}from"./model-CDnVaVDR.js";import{fn as Y,hn as rt}from"./prompt-CRc2QEZ5.js";import{h as it,l as at,p as ot,u as st}from"./terminalSetup-fwhFTxGi.js";import{ft as ct,ut as X}from"./esm-BkOWaWVb.js";import{c as lt,t as ut}from"./nativeInstaller-fgCMR_c0.js";import{l as dt,s as ft}from"./logoV2Utils-CEnU8qad.js";import{i as pt,r as mt}from"./runtimeObserver-BZrF3GnQ.js";import{t as ht}from"./sinks-mFsijQ_S.js";import{writeFile as Z}from"fs/promises";r(),De(),Pe(),Ge(),Xe(),qe(),He(),Ue(),$e(),ge(),ve(),a(),he(),_e(),c(),d(),be(),t(),V(),A(),L(),rt(),w(),Ve(),S(),Le(),E(),s(),ne(),et(),F(),ue(),K(),ae(),Ee(),f(),W();function gt(){return!1}function Q(){return{}}var $;function _t(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+=Be(e,e=>e.type===`tool_use`))}}return n}function vt(e){let t=u(e);if(!Se()){if(!Ce(t))return!1;p()}let n=de(t),r=_t(e,$)>=y(),i=g(e);if(n&&r||n&&!i){let t=e[e.length-1];return t?.uuid&&($=t.uuid),!0}return!1}async function yt(e){let t=Re(),n=ce();await t.mkdir(n,{mode:448});let r=te();try{await Z(r,``,{encoding:`utf-8`,mode:384,flag:`wx`}),await Z(r,await l(),{encoding:`utf-8`,mode:384})}catch(e){if(Fe(e)!==`EEXIST`)throw e}e.readFileState.delete(r);let i=await j.call({file_path:r},e),a=``,o=i.data;return o.type===`text`&&(a=o.file.content),q(`tengu_session_memory_file_read`,{content_length:a.length}),{memoryPath:r,currentMemory:a}}var bt=e(()=>{let e=Q();o({minimumMessageTokensToInit:e.minimumMessageTokensToInit&&e.minimumMessageTokensToInit>0?e.minimumMessageTokensToInit:R.minimumMessageTokensToInit,minimumTokensBetweenUpdate:e.minimumTokensBetweenUpdate&&e.minimumTokensBetweenUpdate>0?e.minimumTokensBetweenUpdate:R.minimumTokensBetweenUpdate,toolCallsBetweenUpdates:e.toolCallsBetweenUpdates&&e.toolCallsBetweenUpdates>0?e.toolCallsBetweenUpdates:R.toolCallsBetweenUpdates})}),xt=nt(async function(e){let{messages:t,toolUseContext:n,querySource:r}=e;if(r!==`repl_main_thread`)return;{let{isPoorModeActive:e}=await import(`./poorMode-Djw0P9Gu.js`);if(e())return}if(!gt()||(bt(),!vt(t)))return;m();let i=k(n),{memoryPath:a,currentMemory:o}=await yt(i);await M({promptMessages:[fe({content:await le(o,a)})],cacheSafeParams:b(e),canUseTool:Ct(a),querySource:`session_memory`,forkLabel:`session_memory`,overrides:{readFileState:i.readFileState}});let s=t[t.length-1],c=s?ie(s):void 0,l=Te();q(`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}),oe(u(t)),wt(t),me()});function St(){Oe()||se()&&C(xt)}function Ct(e){return async(t,n)=>{if(t.name===`Edit`&&typeof n==`object`&&n&&`file_path`in n){let t=n.file_path;if(typeof t==`string`&&t===e)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${Y} on ${e} is allowed`,decisionReason:{type:`other`,reason:`only ${Y} on ${e} is allowed`}}}}function wt(e){if(!g(e)){let t=e[e.length-1];t?.uuid&&O(t.uuid)}}K(),V(),pt(),st(),ye(),ct(),W(),dt(),ut(),ot(),Qe(),pe();async function Tt(e,t,r,a,o,s,c,l,u){G(`info`,`setup_started`);let d=process.version.match(/^v(\d+)\./)?.[1];if((!d||parseInt(d,10)<18)&&(console.error(B.bold.red(`Error: Work Mate requires Node.js version 18 or higher.`)),process.exit(1)),c&&Me(re(c)),!H())try{let e=await at();e.status===`restored`?console.log(B.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(B.red(`Failed to restore Terminal.app settings. Please manually restore your original settings with: defaults import com.apple.Terminal ${e.backupPath}.`))}catch(e){Ze(e)}_(e);let f=Date.now();if(I(),G(`info`,`setup_hooks_captured`,{duration_ms:Date.now()-f}),x(e),a){let t=v(),n=await Ke();!t&&!n&&(process.stderr.write(B.red(`Error: Can only use --worktree in a git repository, but ${B.bold(e)} is not a git repository. Configure a WorktreeCreate hook in settings.json to use --worktree with other VCS systems.\n`)),process.exit(1));let r=l?`pr-${l}`:o??T(),i;if(n){let e=Je(U());e||(process.stderr.write(B.red(`Error: Could not determine the main git repository root.
|
|
2
|
-
`)),process.exit(1)),e!==(Ye(U())??U())&&(G(`info`,`worktree_resolved_to_main_repo`),process.chdir(e),_(e)),i=s?z(e,h(r)):void 0}else i=s?z(U(),h(r)):void 0;let a;try{a=await we(Ne(),r,i,l?{prNumber:l}:void 0)}catch(e){process.stderr.write(B.red(`Error creating worktree: ${Ie(e)}\n`)),process.exit(1)}if(q(`tengu_worktree_created`,{tmux_enabled:s}),s&&i){let e=await xe(i,a.worktreePath);e.created?console.log(B.green(`Created tmux session: ${B.bold(i)}\nTo attach: ${B.bold(`tmux attach -t ${i}`)}`)):console.error(B.yellow(`Warning: Failed to create tmux session: ${e.error}`))}process.chdir(a.worktreePath),_(a.worktreePath),ke(U()),Ae(U()),N(a),P(),D()}G(`info`,`setup_background_jobs_starting`),i()||(St(),mt()),lt(),G(`info`,`setup_background_jobs_launched`),J(`setup_before_prefetch`),G(`info`,`setup_prefetch_starting`);let p=H()&&n(process.env.CLAUDE_CODE_SYNC_PLUGIN_INSTALL)||i();if(p||ee(je()),import(`./loadPluginHooks-Dt3XQ-3N.js`).then(e=>{p||(e.loadPluginHooks(),e.setupPluginHookHotReload())}),i()||(setImmediate(()=>{import(`./attributionHooks-CUAoGkU6.js`).then(({registerAttributionHooks:e})=>{e()})}),import(`./sessionFileAccessHooks-BJlrZaRD.js`).then(e=>e.registerSessionFileAccessHooks())),ht(),q(`tengu_started`,{}),tt(H()),J(`setup_after_prefetch`),!i()&&it()&&await ft(),t===`bypassPermissions`||r){if(process.platform!==`win32`&&typeof process.getuid==`function`&&process.getuid()===0&&process.env.IS_SANDBOX!==`1`&&!n(process.env.CLAUDE_CODE_BUBBLEWRAP))if(process.stdin.isTTY){console.error(B.bold.red(`WARNING: Running as root/sudo with bypass permissions mode is dangerous.`)),console.error(B.yellow(`Bypass mode skips ALL permission checks. Combined with root, any command (rm -rf /, chmod, dd) executes without review.`));let e=(await import(`readline`)).createInterface({input:process.stdin,output:process.stdout}),t=await new Promise(t=>{e.question(`
|
|
3
|
-
I understand the risks. Continue? [y/N] `,t)});e.close(),t.trim().toLowerCase()!==`y`&&(console.error(`Aborted.`),process.exit(1))}else console.error(`--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons`),process.exit(1);if(process.env.CLAUDE_CODE_ENTRYPOINT!==`local-agent`&&process.env.CLAUDE_CODE_ENTRYPOINT!==`claude-desktop`){let[e,t]=await Promise.all([X.getIsDocker(),ze.hasInternetAccess()]),n=X.getIsBubblewrapSandbox(),r=process.env.IS_SANDBOX===`1`;(!(e||n||r)||t)&&(console.error(`--dangerously-skip-permissions can only be used in Docker/sandbox containers with no internet access but got Docker: ${e}, Bubblewrap: ${n}, IS_SANDBOX: ${r}, hasInternet: ${t}`),process.exit(1))}}let m=We();m.lastCost!==void 0&&m.lastDuration!==void 0&&q(`tengu_exit`,{last_session_cost:m.lastCost,last_session_api_duration:m.lastAPIDuration,last_session_tool_duration:m.lastToolDuration,last_session_duration:m.lastDuration,last_session_lines_added:m.lastLinesAdded,last_session_lines_removed:m.lastLinesRemoved,last_session_total_input_tokens:m.lastTotalInputTokens,last_session_total_output_tokens:m.lastTotalOutputTokens,last_session_total_cache_creation_input_tokens:m.lastTotalCacheCreationInputTokens,last_session_total_cache_read_input_tokens:m.lastTotalCacheReadInputTokens,last_session_fps_average:m.lastFpsAverage,last_session_fps_low_1_pct:m.lastFpsLow1Pct,last_session_id:m.lastSessionId,...m.lastSessionMetrics})}export{Tt as setup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-mFsijQ_S.js";export{e as initSinks};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./axios-DaWTGg7G.js";import{Wt as n,pt as r}from"./state-BPFYBqm1.js";import{C as i,at as a,c as o,f as s,i as c,it as l,nt as u,tt as d,u as f,x as p}from"./debug-Dr1SjdXn.js";import{o as m,r as h,t as g,v as _,y as v}from"./log-27kCA_9u.js";import{i as y,n as b,t as x}from"./analytics-DJobLaWP.js";import{a as S,n as C,o as w}from"./firstPartyEventLogger-aFhcruXA.js";import{r as T,t as E}from"./datadog-BGati3aQ.js";import{dirname as D,join as O}from"path";t(),n(),a(),v(),d(),c(),s(),m(),p();var k=h(new Date);function A(){return O(_.errors(),k+`.jsonl`)}function j(e){return O(_.mcpLogs(e),k+`.jsonl`)}function M(e){let t=l(e);return{write(e){t.write(i(e)+`
|
|
2
|
-
`)},flush:t.flush,dispose:t.dispose}}var N=new Map;function P(e){let t=N.get(e);if(!t){let n=D(e);t=M({writeFn:t=>{try{f().appendFileSync(e,t)}catch{f().mkdirSync(n),f().appendFileSync(e,t)}},flushIntervalMs:1e3,maxBufferSize:50}),N.set(e,t),u(async()=>t?.dispose())}return t}function F(e,t){let n={timestamp:new Date().toISOString(),...t,cwd:f().cwd(),userType:process.env.USER_TYPE,sessionId:r(),version:`0.0.12`};P(e).write(n)}function I(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`object`&&t.error&&`message`in t.error&&typeof t.error.message==`string`)return t.error.message}}function L(t){let n=t.stack||t.message,r=``;if(e.isAxiosError(t)&&t.config?.url){let e=[`url=${t.config.url}`];t.response?.status!==void 0&&e.push(`status=${t.response.status}`);let n=I(t.response?.data);n&&e.push(`body=${n}`),r=`[${e.join(`,`)}] `}o(`${t.name}: ${r}${n}`,{level:`error`}),F(A(),{error:`${r}${n}`})}function R(e,t){o(`MCP server "${e}" ${t}`,{level:`error`});let n=j(e),i={error:t instanceof Error?t.stack||t.message:String(t),timestamp:new Date().toISOString(),sessionId:r(),cwd:f().cwd()};P(n).write(i)}function z(e,t){o(`MCP server "${e}": ${t}`);let n=j(e),i={debug:t,timestamp:new Date().toISOString(),sessionId:r(),cwd:f().cwd()};P(n).write(i)}function B(){g({logError:L,logMCPError:R,logMCPDebug:z,getErrorsPath:A,getMCPLogsPath:j}),o(`Error log sink initialized`)}E(),C(),b();function V(){return!1}function H(e,t){let n=w(e);if(n===0)return;let r=n===null?t:{...t,sample_rate:n};V()&&T(e,y(r)),S(e,r)}function U(e,t){return H(e,t),Promise.resolve()}function W(){x({logEvent:H,logEventAsync:U})}function G(){B(),W()}export{G as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$i as t,Ag as n,Ai as r,As as i,Bi as a,Cc as ee,Cr as o,Fh as s,Ft as c,Fy as te,Iy as ne,Kg as re,Og as ie,Ph as ae,Qi as l,St as u,Tt as oe,Vn as se,XC as d,Xi as ce,YC as f,_E as p,_l as m,ai as h,cE as g,ch as _,di as le,ea as ue,fC as de,gE as v,gl as fe,h_ as pe,hn as me,ii as he,jh as ge,js as _e,jt as y,ki as ve,lE as ye,lh as be,m_ as b,mi as x,nb as S,pC as C,qg as w,qr as T,sb as E,vc as D,vn as O}from"./loadAgentsDir-BXtV2jiO.js";import{Bn as k,J as A,Mn as j,Nn as M,Wt as N,h as xe,lr as Se,or as Ce,pt as P,ur as we}from"./state-BPFYBqm1.js";import{n as Te,t as F}from"./cwd-Besi3Os3.js";import{c as I,f as Ee,i as L,nt as De,tt as Oe,u as R}from"./debug-Dr1SjdXn.js";import{n as ke,r as Ae}from"./analytics-DJobLaWP.js";import{C as je,_ as Me}from"./model-CDnVaVDR.js";import{Kt as Ne}from"./prompt-CRc2QEZ5.js";import*as z from"path";import{dirname as Pe}from"path";N(),pe(),te(),Ne(),w(),E(),ae(),D(),Te(),L(),n(),Me(),p(),f(),o(),de(),be(),oe();function Fe(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=_().safeParse(i.todos);return a.success?a.data:[]}return[]}function Ie(e,t){if(e.fileHistorySnapshots&&e.fileHistorySnapshots.length>0&&ie(e.fileHistorySnapshots,e=>{t(t=>({...t,fileHistory:e}))}),e.attributionSnapshots&&e.attributionSnapshots.length>0&&ge(e.attributionSnapshots,e=>{t(t=>({...t,attribution:e}))}),!C()&&e.messages&&e.messages.length>0){let n=Fe(e.messages);if(n.length>0){let e=P();t(t=>({...t,todos:{...t.todos,[e]:n}}))}}}function Le(e){if(e.attributionSnapshots&&e.attributionSnapshots.length>0)return s(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 M(void 0),{agentDefinition:void 0,agentType:void 0};let r=n.activeAgents.find(t=>t.agentType===e);return r?(M(r.agentType),!A()&&r.model&&r.model!==`inherit`&&j(je(r.model)),{agentDefinition:r,agentType:r.agentType}):(I(`Resumed session had agent "${e}" but it is no longer available. Using default behavior.`),M(void 0),{agentDefinition:void 0,agentType:void 0})}function H(e){let t=u();if(t){x(t);return}if(e){try{process.chdir(e.worktreePath)}catch{x(null);return}d(e.worktreePath),k(F()),y(e),S(),b(),v.cache.clear?.()}}function Re(){let e=u();if(e){y(null),S(),b(),v.cache.clear?.();try{process.chdir(e.originalCwd)}catch{return}d(e.originalCwd),k(F())}}async function ze(t,n,r){if(n.forkSession)t.contentReplacements?.length&&await T(t.contentReplacements);else{let e=n.sessionIdOverride??t.sessionId;e&&(Ce(re(e),n.transcriptPath?Pe(n.transcriptPath):null),await he(),ne(e))}if(h(n.forkSession?{...t,worktreeSession:void 0}:t),t.goal){let{hydrateGoalFromTranscript:r}=(m(),e(fe)),i=new Map,a=n.sessionIdOverride??t.sessionId??P();i.set(a,t.goal),r(i,a)}n.forkSession||(H(t.worktreeSession),se());let{agentDefinition:i,agentType:a}=V(t.agentSetting,r.mainThreadAgentDefinition,r.agentDefinitions);le(`normal`);let o=n.includeAttribution?Le(t):void 0,s=B(t.agentName,t.agentColor);ee(t.agentName);let c=r.agentDefinitions;return{messages:t.messages,fileHistorySnapshots:t.fileHistorySnapshots,contentReplacements:t.contentReplacements,agentName:t.agentName,agentColor:t.agentColor==="default"?void 0:t.agentColor,restoredAgentDef:i,initialState:{...r.initialState,...a&&{agent:a},...o&&{attribution:o},...s&&{standaloneAgentContext:s},agentDefinitions:c}}}ye(),N(),a(),ke(),t(),i(),Oe(),L(),Ee(),O(),we();var Be=1e3,Ve=500,He=300,Ue=2e3,We=typeof Bun<`u`,U=null,W=null,G=new Set,K=!1,q=!1,J=!1,Y=null,X=Se(),Z=null;async function Ge(){if(K||q)return;K=!0,J||(J=!0,ue(()=>{ve(),X.emit()}));let e=await qe();e.length!==0&&(I(`Watching for changes in skill/command directories: ${e.join(`, `)}...`),U=g.watch(e,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:Z?.stabilityThreshold??Be,pollInterval:Z?.pollInterval??Ve},ignored:(e,t)=>t&&!t.isFile()&&!t.isDirectory()?!0:e.split(z.sep).some(e=>e===`.git`),ignorePermissionErrors:!0,usePolling:We,interval:Z?.chokidarInterval??Ue,atomic:!0}),U.on(`add`,$),U.on(`change`,$),U.on(`unlink`,$),Y=De(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 Ke=X.subscribe;async function qe(){let e=R(),t=[],n=l(`userSettings`,`skills`);if(n)try{await e.stat(n),t.push(n)}catch{}let r=l(`userSettings`,`commands`);if(r)try{await e.stat(r),t.push(r)}catch{}let i=l(`projectSettings`,`skills`);if(i)try{let n=z.resolve(i);await e.stat(n),t.push(n)}catch{}let a=l(`projectSettings`,`commands`);if(a)try{let n=z.resolve(a);await e.stat(n),t.push(n)}catch{}for(let n of xe()){let r=z.join(n,`.workmate`,`skills`);try{await e.stat(r),t.push(r)}catch{}}return t}function $(e){I(`Detected skill change: ${e}`),Ae(`tengu_skill_file_changed`,{source:`chokidar`}),Je(e)}function Je(e){G.add(e),W&&clearTimeout(W),W=setTimeout(async()=>{W=null;let e=[...G];if(G.clear(),me(await c(`skills`,e[0]))){I(`ConfigChange hook blocked skill reload (${e.length} paths)`);return}ce(),r(),_e(),X.emit()},Z?.reloadDebounce??He)}async function Ye(e){U&&(await U.close(),U=null),W&&(clearTimeout(W),W=null),G.clear(),X.clear(),K=!1,q=!1,Z=e??null}var Xe={initialize:Ge,dispose:Q,subscribe:Ke,resetForTesting:Ye};export{V as a,ze as i,B as n,Ie as o,Re as r,H as s,Xe as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{$i as n,Bi as r,Hi as i,Mp as a,Zi as o,jp as s}from"./loadAgentsDir-BXtV2jiO.js";import{I as c,P as l,fi as u,h as d,t as f,y as p}from"./src-P_wYS_NJ2.js";import{t as m}from"./jsx-runtime-Bb4Xn-E0.js";import{ln as h,sn as g}from"./settings-DiBMs2gM.js";import{_,v}from"./startupProfiler-Dc5r6LgE.js";import{l as y,o as b}from"./stringUtils-Df-Lnjxd.js";function x(e,t){let n=t.trim();if(n===``)return e.slice();let r=n.toLowerCase().split(/\s+/);return e.filter(e=>{let t=`${e.name} ${e.description}`.toLowerCase();return r.every(e=>t.includes(e))})}var S=e((()=>{}));function C(e){return e===`plugin`?`plugin`:e===`mcp`?`mcp`:g(e)}function w({onExit:e,commands:t}){let[n,r]=(0,T.useState)(``),a=(0,T.useMemo)(()=>t.filter(e=>e.type===`prompt`&&(e.loadedFrom===`skills`||e.loadedFrom===`commands_DEPRECATED`||e.loadedFrom===`plugin`||e.loadedFrom===`mcp`)),[t]),u=(0,T.useMemo)(()=>x(a.map(e=>({...e,name:i(e),description:e.description??``})),n),[a,n]),f=(0,T.useMemo)(()=>{let e={policySettings:[],userSettings:[],projectSettings:[],localSettings:[],flagSettings:[],plugin:[],mcp:[]};for(let t of u){let n=t.source;n in e&&e[n].push(t)}for(let t of Object.values(e))t.sort((e,t)=>i(e).localeCompare(i(t)));return e},[u]),m=()=>{e(`Skills dialog dismissed`,{display:`system`})};if(a.length===0)return(0,E.jsxs)(p,{title:`Skills`,subtitle:`No skills found`,onCancel:m,hideInputGuide:!0,children:[(0,E.jsx)(l,{dimColor:!0,children:`Create skills in .workmate/skills/ or ~/.workmate/skills/`}),(0,E.jsx)(l,{dimColor:!0,italic:!0,children:(0,E.jsx)(s,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`close`})})]});let h=e=>{switch(e){case`projectSettings`:case`localSettings`:return{label:`local`,color:`yellow`};case`userSettings`:return{label:`global`,color:`cyan`};case`policySettings`:return{label:`managed`,color:`magenta`};default:return}},g=(e,t)=>{let n=`~${_(o(e))}`,r=e.source===`plugin`?e.pluginInfo?.pluginManifest.name:void 0,a=h(e.source);return(0,E.jsxs)(c,{children:[(0,E.jsx)(l,{color:t?`suggestion`:void 0,children:i(e)}),a&&(0,E.jsxs)(l,{color:a.color,children:[` [`,a.label,`]`]}),(0,E.jsxs)(l,{dimColor:!0,children:[r?` · ${r}`:``,` · `,C(e.source),` · `,n,` tokens`]})]})};return(0,E.jsx)(d,{title:`Skills`,placeholder:`Type to filter skills…`,items:(0,T.useMemo)(()=>D.flatMap(e=>f[e]),[f]),getKey:e=>`${e.name}-${e.source}`,visibleCount:12,direction:`down`,onQueryChange:r,onSelect:t=>{e(`/${i(t)}`,{display:`user`})},onCancel:m,emptyMessage:e=>e.trim()?`No skills matching "${e.trim()}"`:`No skills found`,matchLabel:n.trim()===``?`${a.length} ${y(a.length,`skill`)}`:`${u.length}/${a.length} ${y(a.length,`skill`)}`,selectAction:`invoke skill`,renderItem:(e,t)=>g(e,t)})}var T,E,D,O=e((()=>{u(),T=t(u(),1),r(),f(),n(),v(),h(),b(),a(),S(),E=m(),D=[`projectSettings`,`localSettings`,`userSettings`,`flagSettings`,`policySettings`,`plugin`,`mcp`]}));async function k(e,t){return(0,A.jsx)(w,{onExit:e,commands:t.options.commands})}var A;e((()=>{u(),O(),A=m()}))();export{k as call};
|