@readmagic/workmate 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AddWorkspaceDirectory-Wa6Q24nu.js → AddWorkspaceDirectory-BYNvxNrD.js} +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-BSSz86ER.js +1 -0
- package/dist/chunks/{AgentsMdExternalIncludesDialog-3I_KlOLv.js → AgentsMdExternalIncludesDialog-CMEGV4Md.js} +1 -1
- package/dist/chunks/{App-BgPs1Bu8.js → App-W_9d1DjK.js} +1 -1
- package/dist/chunks/{ApproveApiKey-BxpapUq0.js → ApproveApiKey-Bf1Rb8Ql.js} +1 -1
- package/dist/chunks/ApproveApiKey-wpdvXpFr.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-lGn1Wj1k.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-8Cq982M0.js → BypassPermissionsModeDialog-CjVjyNf8.js} +1 -1
- package/dist/chunks/{DiffDialog-DwQTDWYh.js → DiffDialog-DCpchgp5.js} +2 -2
- package/dist/chunks/Doctor-6SjW91rd.js +1 -0
- package/dist/chunks/Doctor-FPYTivHw.js +3 -0
- package/dist/chunks/ExitFlow-Dy8_1D8J.js +2 -0
- package/dist/chunks/{Grove-_QX_wR9C.js → Grove-Dd6rjs5P.js} +1 -1
- package/dist/chunks/{HybridTransport-BG2VIIBC.js → HybridTransport-CJVkWa2u.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-BDdMkuaL.js → InvalidConfigDialog-Bisj9ic_.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-DSCqbVER.js → InvalidSettingsDialog-DyTPNRQR.js} +1 -1
- package/dist/chunks/MCPConnectionManager-DfyoZaiu.js +1 -0
- package/dist/chunks/MCPToolListView-Dioupv8F.js +1 -0
- package/dist/chunks/{McpParsingWarnings-Cr_n2QR6.js → McpParsingWarnings-BUlgpZAF.js} +1 -1
- package/dist/chunks/MessageSelector-D8fylxPg.js +3 -0
- package/dist/chunks/Messages-BZDFMYBT.js +10 -0
- package/dist/chunks/{Onboarding-Cz3CfOTl.js → Onboarding-BKLomZYo.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-GhA5Qa1I.js → PromptInputFooterSuggestions-DCum89fF.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-sX_yHORM.js → PromptInputHelpMenu-DG2lRqis.js} +1 -1
- package/dist/chunks/QueryEngine-CyGHpX7M.js +1 -0
- package/dist/chunks/REPL-BDsz8KIx.js +1 -0
- package/dist/chunks/REPL-CCBNfZfs.js +128 -0
- package/dist/chunks/RemoteSessionManager-BfsOv4K6.js +2 -0
- package/dist/chunks/{ResumeConversation-e5sISbWn.js → ResumeConversation-pC8NLq0F.js} +1 -1
- package/dist/chunks/{SSETransport-BuDKErlN.js → SSETransport-B3K6eH9I.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-DYoxHo9T.js +1 -0
- package/dist/chunks/Settings-CKaGmKg2.js +2 -0
- package/dist/chunks/{TeleportProgress-BUtze4qa.js → TeleportProgress-CkgSp1cs.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-Dp7rzrrz.js → TeleportRepoMismatchDialog-DdO_rECq.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-Ch2osY21.js → TeleportResumeWrapper-BeG4N-2z.js} +1 -1
- package/dist/chunks/{ThemePicker-AA-0hjpq.js → ThemePicker-iD9ufy99.js} +1 -1
- package/dist/chunks/{TrustDialog-rO5dZ8G-.js → TrustDialog-qO5OdQt8.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-DayOwxq9.js → ValidationErrorsList-BfZ5gcIv.js} +1 -1
- package/dist/chunks/add-dir-C4eSVlZ6.js +1 -0
- package/dist/chunks/{agentDisplay-nVTmC7tL.js → agentDisplay-BM4QG_RX.js} +1 -1
- package/dist/chunks/{agents-BQwi-6GV.js → agents-BbDBN5l9.js} +1 -1
- package/dist/chunks/agents-D3APE_8d.js +101 -0
- package/dist/chunks/allErrors-BkgB7JNK.js +1 -0
- package/dist/chunks/api-BHBK9axp.js +1 -0
- package/dist/chunks/{api-DAyhTxgY.js → api-DyUWfg3a.js} +1 -1
- package/dist/chunks/{auth-BzrroWLq.js → auth-0rn1U4Eq.js} +1 -1
- package/dist/chunks/auth-BEoTPSgC.js +1 -0
- package/dist/chunks/auth-BPug7U_u.js +1 -0
- package/dist/chunks/backgroundHousekeeping-D7xAhUaE.js +1 -0
- package/dist/chunks/backgroundHousekeeping-km82qEh0.js +17 -0
- package/dist/chunks/{banner-BfIcVEUU.js → banner-BkUdig-T.js} +1 -1
- package/dist/chunks/{bg-C15c_rMK.js → bg-tGgpwpYx.js} +2 -2
- package/dist/chunks/branch-CQ38cx5n.js +2 -0
- package/dist/chunks/{break-cache-XKbOAw-u.js → break-cache-CcwOjTKt.js} +3 -3
- package/dist/chunks/{bridgeConfig-Bxkrv8ZL.js → bridgeConfig-C5L-7KaP.js} +1 -1
- package/dist/chunks/bridgeConfig-CJMjDoaP.js +1 -0
- package/dist/chunks/{bridgeMessaging-BcSjIPCZ.js → bridgeMessaging-DVC3qj-C.js} +1 -1
- package/dist/chunks/{bridgePointer-CGhOBNMg.js → bridgePointer-DfTOjgtX.js} +1 -1
- package/dist/chunks/{bridgeStatusUtil-DBWBTU31.js → bridgeStatusUtil-Cex6VowM.js} +1 -1
- package/dist/chunks/btw-_P96ffHR.js +1 -0
- package/dist/chunks/caches-DH-q8Fjf.js +1 -0
- package/dist/chunks/caches-Dq0pJFDP.js +1 -0
- package/dist/chunks/{capacityWake-C24_KT1x.js → capacityWake-BpP6c7x3.js} +1 -1
- package/dist/chunks/{ccrClient-CH6PsxJJ.js → ccrClient-DO563xlf.js} +1 -1
- package/dist/chunks/{claudeDesktop-CovdLe-b.js → claudeDesktop-DPc_SaVn.js} +1 -1
- package/dist/chunks/{clear-D72LxXA6.js → clear-DmqQBNKg.js} +1 -1
- package/dist/chunks/{cliLaunch-DDA65zeR.js → cliLaunch-DDtwAolw.js} +1 -1
- package/dist/chunks/{client-o5_awagP.js → client-9uHzAmFH.js} +1 -1
- package/dist/chunks/client-BVal_QII.js +1 -0
- package/dist/chunks/client-C19cqYQS.js +1 -0
- package/dist/chunks/{client-eLOYyeES.js → client-C_jBL1yC.js} +1 -1
- package/dist/chunks/client-Dd7CKMRX.js +1 -0
- package/dist/chunks/commands-BkpqHY9F.js +1 -0
- package/dist/chunks/{compact--fnu8Zd-.js → compact-DuVIvqMu.js} +2 -2
- package/dist/chunks/config-DMP6-Ccr.js +1 -0
- package/dist/chunks/{config-BybjRr09.js → config-DRy1I12M.js} +2 -2
- package/dist/chunks/{config-BlQhL9Bh.js → config-e0Goy478.js} +1 -1
- package/dist/chunks/{context-D6PaqwrR.js → context-DjgMzIfe.js} +1 -1
- package/dist/chunks/{context-noninteractive-CxoMCfR4.js → context-noninteractive-BzDVMnWC.js} +5 -5
- package/dist/chunks/context-noninteractive-DV7bIJCm.js +1 -0
- package/dist/chunks/conversation-BBOE_EoE.js +1 -0
- package/dist/chunks/conversation-WxH5pb2z.js +1 -0
- package/dist/chunks/{createSSHSession-B3FdForb.js → createSSHSession-LVGVXHXL.js} +1 -1
- package/dist/chunks/createSession-BUzna9-E.js +1 -0
- package/dist/chunks/{createSession-C0e_DHsW.js → createSession-Dgwxk1WA.js} +1 -1
- package/dist/chunks/crossProjectResume-6B2NYy8a.js +40 -0
- package/dist/chunks/cwd-DLK3znO7.js +1 -0
- package/dist/chunks/cwd-Nh5IZNKO.js +1 -0
- package/dist/chunks/{datadog-ZxeaKwKd.js → datadog-Bc6wkPne.js} +1 -1
- package/dist/chunks/{debug-D7OBvqC2.js → debug-D58GQBDG.js} +1 -1
- package/dist/chunks/{debugUtils-B-GMBTBk.js → debugUtils-DXBRbwCE.js} +1 -1
- package/dist/chunks/{detached-uMuMcLsV.js → detached-Biz-xhu0.js} +1 -1
- package/dist/chunks/{detectRepository-AVEUw4lk.js → detectRepository-CDOJ-M7h.js} +1 -1
- package/dist/chunks/detectRepository-Cv9-k6dg.js +1 -0
- package/dist/chunks/{diff-BA2vN7sD.js → diff-DIg66U_d.js} +1 -1
- package/dist/chunks/{directoryCompletion-CLcmLin8.js → directoryCompletion-BDGcGDuv.js} +1 -1
- package/dist/chunks/doctor-BhUmhHQU.js +1 -0
- package/dist/chunks/{entry-cou5DS53.js → entry-B-Y-AYeK.js} +4 -4
- package/dist/chunks/{esm-D9-9wS1F.js → esm-CvHtYRrr.js} +1 -1
- package/dist/chunks/{execFileNoThrow-BHDSgTpZ.js → execFileNoThrow-Bmb5HEFz.js} +1 -1
- package/dist/chunks/{execSyncWrapper-pYxQXqb-.js → execSyncWrapper-C3ZFV9od.js} +1 -1
- package/dist/chunks/{exit-DdZJHhy2.js → exit-CW2eqUrR.js} +1 -1
- package/dist/chunks/{extraUsage-CHnG6JNH.js → extraUsage-CkTon7ib.js} +1 -1
- package/dist/chunks/extractMemories-CfmbvayQ.js +1 -0
- package/dist/chunks/fast-ByahC7Gw.js +1 -0
- package/dist/chunks/{fast-Bl_0cs9e.js → fast-xtIP4u4y.js} +1 -1
- package/dist/chunks/fetchModelList-D9aePIPW.js +1 -0
- package/dist/chunks/{fetchModelList-CheIBH5f.js → fetchModelList-Dy-x4h3G.js} +1 -1
- package/dist/chunks/{fileSuggestions-Dl87JhBr.js → fileSuggestions-CFkJktgc.js} +2 -2
- package/dist/chunks/firstPartyEventLogger-Bt9iG9xk.js +1 -0
- package/dist/chunks/{firstPartyEventLogger-Cw9Bc3on.js → firstPartyEventLogger-DqGSujCz.js} +2 -2
- package/dist/chunks/{flushGate-BD3Tk3_k.js → flushGate-BjKW7PFC.js} +1 -1
- package/dist/chunks/{gemini-BARUjH_t.js → gemini-NnmxBoEp.js} +1 -1
- package/dist/chunks/{generateSessionName-CHaK44K-.js → generateSessionName-EpqGW-T2.js} +1 -1
- package/dist/chunks/{genericProcessUtils-D5hCZ2ho.js → genericProcessUtils-6E7fB1dI.js} +1 -1
- package/dist/chunks/{git-CNhyfMtb.js → git-By_J4XJL.js} +1 -1
- package/dist/chunks/git-zJCasBa6.js +1 -0
- package/dist/chunks/githubRepoPathMapping-CzgPGOHQ.js +1 -0
- package/dist/chunks/{goal-fTQFogdl.js → goal-DbS8yJfB.js} +1 -1
- package/dist/chunks/{grok-D0J4IiCe.js → grok-BxZ4vTDw.js} +1 -1
- package/dist/chunks/{grove-mDH4wkhM.js → grove-CYE1Cfcz.js} +1 -1
- package/dist/chunks/{help-Dr7st1Yv.js → help-DatnwM25.js} +1 -1
- package/dist/chunks/{hooks-DCfpFhl2.js → hooks-7iyENdDG.js} +2 -2
- package/dist/chunks/hooks-DjbqtbUV.js +1 -0
- package/dist/chunks/initReplBridge-BEZW5PEY.js +1 -0
- package/dist/chunks/install-DJukI-kL.js +1 -0
- package/dist/chunks/{instrumentation-DS2S1m1a.js → instrumentation-2HH15DPu.js} +4 -4
- package/dist/chunks/{job-Dry-GMc5.js → job-CXz7SLZp.js} +1 -1
- package/dist/chunks/{jwtUtils-ClCcC8lO.js → jwtUtils-C_LG1txt.js} +1 -1
- package/dist/chunks/keybindings-C9l5il16.js +1 -0
- package/dist/chunks/{launchLocalMemory-_T0oHfh9.js → launchLocalMemory-BfGenqj1.js} +1 -1
- package/dist/chunks/{launchOnboarding-D4fS6pLc.js → launchOnboarding-DjMmXeQE.js} +1 -1
- package/dist/chunks/{loadAgentsDir-DnsldjYU.js → loadAgentsDir-DaNpxaO-.js} +588 -623
- package/dist/chunks/loadAgentsDir-DcI-8FQF.js +1 -0
- package/dist/chunks/{loadPluginHooks-CRoYa_il.js → loadPluginHooks-CGgpcyEC.js} +1 -1
- package/dist/chunks/{loader-C-PQ3onD.js → loader-C33o_5kS.js} +1 -1
- package/dist/chunks/{localSearch-nuNjYVKq.js → localSearch-C2SZ9bGW.js} +1 -1
- package/dist/chunks/localSearch-CTTwYTU1.js +1 -0
- package/dist/chunks/{log-CR0v5KUR.js → log-CZ7ploQm.js} +1 -1
- package/dist/chunks/{logoV2Utils-CZwL_VX1.js → logoUtils-CbIqOFrX.js} +1 -1
- package/dist/chunks/{magicDocs-D0rjtxup.js → magicDocs-CrTwULyJ.js} +2 -2
- package/dist/chunks/{main-DKqCPH3G.js → main-Blm02_Js.js} +2 -2
- package/dist/chunks/{main-C8n_p7yX.js → main-bJXadFi0.js} +30 -30
- package/dist/chunks/managedEnv-CUsdYhAI.js +1 -0
- package/dist/chunks/managedEnv-DXeaUDSK.js +1 -0
- package/dist/chunks/{mappers-BIDALdjB.js → mappers-_B-s9fNz.js} +1 -1
- package/dist/chunks/mcp-BbbYzWpy.js +6 -0
- package/dist/chunks/mcp-D91sH9a8.js +1 -0
- package/dist/chunks/mcp-Dx-zgUgu.js +2 -0
- package/dist/chunks/{memoize-C7xmvAQ0.js → memoize-CumjjK2Q.js} +1 -1
- package/dist/chunks/memory-BeL7ui9m.js +1 -0
- package/dist/chunks/{mode-CajUX4Uz.js → mode-D695kgLI.js} +1 -1
- package/dist/chunks/model-DX0TtzqX.js +1 -0
- package/dist/chunks/{model-xI2MbgRj.js → model-Do0f476p.js} +1 -1
- package/dist/chunks/model-DpcM8dz5.js +1 -0
- package/dist/chunks/{modelOptions-Ct80yABl.js → modelOptions-B3nis9cC.js} +1 -1
- package/dist/chunks/{src-l6_O0K-a.js → modifiersNative-BYHdmWw1.js} +1 -1
- package/dist/chunks/modifiersNative-D7nm70eq.js +1 -0
- package/dist/chunks/{nativeInstaller-C6aWHxve.js → nativeInstaller-CymO8TNe.js} +1 -1
- package/dist/chunks/omit-DO61BHZu.js +1 -0
- package/dist/chunks/onChangeAppState-vKml_lit.js +1 -0
- package/dist/chunks/{openai-wsPCDwGL.js → openai-DdupGVdC.js} +2 -2
- package/dist/chunks/{panel-BKMLX5AR.js → panel-CVd1dzYl.js} +1 -1
- package/dist/chunks/parser-Cq9X7HMP.js +1 -0
- package/dist/chunks/{parser-Dy-RMf4a.js → parser-eVu-cTRs.js} +1 -1
- package/dist/chunks/partition-BivH9MBJ.js +1 -0
- package/dist/chunks/permissions-C9iqR4_N.js +3 -0
- package/dist/chunks/pidLock-DiKz5Tza.js +3 -0
- package/dist/chunks/{plan-CTiLy_c4.js → plan-KDN5IGWY.js} +1 -1
- package/dist/chunks/{platform-BZm4WVLM.js → platform-DMQxcm4K.js} +1 -1
- package/dist/chunks/plugin-D0rzUb8E.js +17 -0
- package/dist/chunks/{pluginAutoupdate-DzK-fXJC.js → pluginAutoupdate-C2xTKLR_.js} +1 -1
- package/dist/chunks/{pluginBlocklist-B3JVl1h2.js → pluginBlocklist-xdiUmUpt.js} +1 -1
- package/dist/chunks/{pluginCliCommands-CubOvlhc.js → pluginCliCommands-CIDDvVN7.js} +1 -1
- package/dist/chunks/{pluginFlagging-Dp7W2eL8.js → pluginFlagging-DRA0m76J.js} +1 -1
- package/dist/chunks/pluginOperations-BEYsarAn.js +2 -0
- package/dist/chunks/{pluginStartupCheck-CL24_zVV.js → pluginStartupCheck-BF1N4Lih.js} +1 -1
- package/dist/chunks/pluginStartupCheck-DVkI4pqo.js +1 -0
- package/dist/chunks/{plugins-DA3lpRU4.js → plugins-CWWU4BKs.js} +4 -4
- package/dist/chunks/poorMode-BTIe8W_H.js +1 -0
- package/dist/chunks/poorMode-CKQfWf3S.js +1 -0
- package/dist/chunks/print-B5H2xbBS.js +14 -0
- package/dist/chunks/processBashCommand-EQ9EWaRV.js +1 -0
- package/dist/chunks/processSlashCommand-C4PKNyFT.js +5 -0
- package/dist/chunks/{prompt-CzQkcxfg.js → prompt-8u06WVES.js} +17 -17
- package/dist/chunks/prompt-B9sDzLPK.js +1 -0
- package/dist/chunks/prompt-WsoTRhoh.js +1 -0
- package/dist/chunks/{promptEditor-C6w1vT5E.js → promptEditor-Cr4w-4Bz.js} +1 -1
- package/dist/chunks/{protocolHandler-B3bQyB6W.js → protocolHandler-DzHVaPl3.js} +2 -2
- package/dist/chunks/{proxy-DFIxRT0i.js → proxy-BhIc7-mj.js} +1 -1
- package/dist/chunks/reconciler-RIKmaPg7.js +1 -0
- package/dist/chunks/refresh-CCSCAjgz.js +1 -0
- package/dist/chunks/registerProtocol-C0IlPEoa.js +1 -0
- package/dist/chunks/{reload-plugins-BnZzcRcd.js → reload-plugins-DC-tbXVv.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-DAK9KSWp.js → remoteBridgeCore-NGTnhQgw.js} +1 -1
- package/dist/chunks/remoteManagedSettings-BoOYHzYP.js +1 -0
- package/dist/chunks/{rename-OSN3Ua2J.js → rename-DS1AmW-F.js} +1 -1
- package/dist/chunks/{renderOptions-XgkOdKCJ.js → renderOptions-D-aQZbzS.js} +1 -1
- package/dist/chunks/resume-Cf5PSoPw.js +2 -0
- package/dist/chunks/{ripgrep-C_XuTqp3.js → ripgrep-C3jtZL7k.js} +1 -1
- package/dist/chunks/ripgrep-CBUbn6Po.js +1 -0
- package/dist/chunks/{runtimeObserver-CuTsWhhF.js → runtimeObserver-DzesbvgI.js} +1 -1
- package/dist/chunks/{runtimeObserver-D9sujsqj.js → runtimeObserver-L6041elO.js} +2 -2
- package/dist/chunks/sandbox-adapter-Z4Phj31K.js +1 -0
- package/dist/chunks/{sandbox-toggle-oasrWfbj.js → sandbox-toggle-COZE8Lo4.js} +1 -1
- package/dist/chunks/sanitization-DV-94a9Z.js +1 -0
- package/dist/chunks/searchExtraTools-CvkRbL2m.js +1 -0
- package/dist/chunks/{session-c46jULDV.js → session-BvA99K4j.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-6XfAf6ke.js +1 -0
- package/dist/chunks/{sessionObserver-Cu7vykWp.js → sessionObserver-0D8xFoRK.js} +1 -1
- package/dist/chunks/sessionObserver-CRWUBJEY.js +1 -0
- package/dist/chunks/{sessionState-B3tFm9SC.js → sessionState-CQhbGfmh.js} +2 -2
- package/dist/chunks/sessionStorage-DqEuxDlb.js +1 -0
- package/dist/chunks/{sessionTracing-BRp_Ej-e.js → sessionTracing-BoOZsXU2.js} +1 -1
- package/dist/chunks/{settings-DUyIag_5.js → settings-3xZ0fsvE.js} +4 -4
- package/dist/chunks/settings-Crx1cI1u.js +1 -0
- package/dist/chunks/settingsSync-rkWmClKS.js +1 -0
- package/dist/chunks/setup-D8L275fT.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-ChoqK1Iq.js → shadowedRuleDetection-Cy9tsuKc.js} +1 -1
- package/dist/chunks/{shellQuote-C-7PluUY.js → shellQuote-Ddgr1vif.js} +1 -1
- package/dist/chunks/{sideQuestion-CkC27Pf3.js → sideQuestion-Ds7Elgs4.js} +1 -1
- package/dist/chunks/{sinks-C9qCsi94.js → sinks-BXX72cbf.js} +1 -1
- package/dist/chunks/sinks-DMp6uEzM.js +1 -0
- package/dist/chunks/skillChangeDetector-CtithJ4a.js +1 -0
- package/dist/chunks/{skillGapStore-DC8s2Whn.js → skillGapStore-BxCxKPev.js} +2 -2
- package/dist/chunks/{skillLifecycle-BaqH5lw_.js → skillLifecycle-CfyNC3sW.js} +2 -2
- package/dist/chunks/{skillSearchPanel-Dtvyo2Dk.js → skillSearchPanel-CMNJFIEC.js} +3 -3
- package/dist/chunks/{skills-DXW57WeY.js → skills-DXMk-498.js} +1 -1
- package/dist/chunks/{startupProfiler-BqUlQEaV.js → startupProfiler-CbzxVmbv.js} +1 -1
- package/dist/chunks/startupProfiler-uHetQush.js +1 -0
- package/dist/chunks/state-BStOuCh4.js +1 -0
- package/dist/chunks/{state-B3zvBu4R.js → state-D5D6QpTX.js} +1 -1
- package/dist/chunks/{stats-vvwEVnon.js → stats-Ce15gc3E.js} +1 -1
- package/dist/chunks/{status-g_dhM6Ep.js → status-CFrLuGbf.js} +2 -2
- package/dist/chunks/status-D5OCkMZG.js +1 -0
- package/dist/chunks/{statusNoticeHelpers-B235FWru.js → statusNoticeHelpers-CZoOse-_.js} +1 -1
- package/dist/chunks/{stringUtils-CGZoOfer.js → stringUtils-CKD8qDqx.js} +1 -1
- package/dist/chunks/switcher-AiMcRzoi.js +1 -0
- package/dist/chunks/{switcher-OAeeTHHt.js → switcher-DQF5ZNal.js} +1 -1
- package/dist/chunks/syncCache-qWJ_VfBo.js +1 -0
- package/dist/chunks/{tasks--7yJk7MD.js → tasks-C8pb6ftc.js} +1 -1
- package/dist/chunks/{teleport-ja50aVy3.js → teleport-Bi_1VFIZ.js} +1 -1
- package/dist/chunks/{templateJobs-DSM3tNDS.js → templateJobs-DJ4dcfcL.js} +1 -1
- package/dist/chunks/{terminalSetup-C735-5lZ.js → terminalSetup-7PdC4fV5.js} +1 -1
- package/dist/chunks/{terminalSetup-BpZXqE_G.js → terminalSetup-kWdZRKWq.js} +1 -1
- package/dist/chunks/{theme-BX54e0r7.js → theme-CEKOCSLw.js} +1 -1
- package/dist/chunks/{tmux-BIdWN33b.js → tmux-CpGd0Aca.js} +1 -1
- package/dist/chunks/{toolEventObserver-O6ljakS9.js → toolEventObserver-D2nk8ZbW.js} +1 -1
- package/dist/chunks/toolPool-Df5iUqJ-.js +1 -0
- package/dist/chunks/{trustedDevice-Kyid5Fuy.js → trustedDevice-CB6rNzl-.js} +1 -1
- package/dist/chunks/trustedDevice-DXGePUAC.js +1 -0
- package/dist/chunks/{types-DDku8UKF.js → types-APu4OCXJ.js} +1 -1
- package/dist/chunks/{udsClient-B2yCKNgT.js → udsClient-U7MEfYj7.js} +1 -1
- package/dist/chunks/{upstreamproxy--RTAcgrE.js → upstreamproxy-CTOuotLO.js} +1 -1
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BnmDpMkm.js → useExitOnCtrlCDWithKeybindings-Bw0mlTT9.js} +1 -1
- package/dist/chunks/useMainLoopModel-CIG2cjS2.js +1 -0
- package/dist/chunks/useManagePlugins-MSHw-qHx.js +1 -0
- package/dist/chunks/{useMergedTools-ChLA8dsy.js → useMergedTools-Bb-INJa2.js} +1 -1
- package/dist/chunks/{useSearchInput-DqymtQhH.js → useSearchInput-QL_VtdJD.js} +1 -1
- package/dist/chunks/useSettingsErrors-Dvi6zLCr.js +1 -0
- package/dist/chunks/{userAgent-D8vvjitA.js → userAgent-i-oGzf40.js} +1 -1
- package/dist/chunks/{util-CC-NRn16.js → util-CLQvtXuD.js} +1 -1
- package/dist/chunks/validatePlugin-1mTZ3TJR.js +1 -0
- package/dist/chunks/{vim-CIK2DjfK.js → vim-BagKUX4j.js} +1 -1
- package/dist/chunks/{which-3MmqfsNV.js → which-BxQ1hpjp.js} +1 -1
- package/dist/chunks/{windowsPaths-x-CxdtFP.js → windowsPaths-BdhjMYTm.js} +1 -1
- package/dist/chunks/windowsPaths-DtGZ83kH.js +1 -0
- package/dist/chunks/{workSecret-BsolC5S7.js → workSecret-CaM2yIJD.js} +1 -1
- package/dist/chunks/{workerRegistry-DE4Ghp-n.js → workerRegistry-BjxoZ12l.js} +2 -2
- package/dist/chunks/worktree-DpksgxdF.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -5
- package/dist/chunks/AgentsMdExternalIncludesDialog-h150UBir.js +0 -1
- package/dist/chunks/ApproveApiKey-DIIIi6U8.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-nfRmiGl3.js +0 -2
- package/dist/chunks/Doctor-Beo5yEMD.js +0 -1
- package/dist/chunks/Doctor-BxXAGr-Z.js +0 -3
- package/dist/chunks/ExitFlow-CVIuvrHT.js +0 -2
- package/dist/chunks/MCPConnectionManager-Cer1UawR.js +0 -1
- package/dist/chunks/MCPToolListView-DndNWDr1.js +0 -1
- package/dist/chunks/MessageSelector-BfmbAG8E.js +0 -3
- package/dist/chunks/Messages-CUJJ6nHV.js +0 -10
- package/dist/chunks/QueryEngine-C6Dx_-U8.js +0 -1
- package/dist/chunks/REPL-BPig-OIh.js +0 -128
- package/dist/chunks/REPL-e5wWV2Sl.js +0 -1
- package/dist/chunks/RemoteSessionManager-Cax4g0GH.js +0 -2
- package/dist/chunks/SearchExtraToolsTool-B_z74zwG.js +0 -1
- package/dist/chunks/Settings-B9rxF2wR.js +0 -2
- package/dist/chunks/add-dir-Cz33IGht.js +0 -1
- package/dist/chunks/agents-rfuJUSSc.js +0 -101
- package/dist/chunks/allErrors-YIRWFBD9.js +0 -1
- package/dist/chunks/api-CGk-0H2x.js +0 -1
- package/dist/chunks/attributionHooks-C0aXyx9L.js +0 -1
- package/dist/chunks/auth-DWWb8STf.js +0 -1
- package/dist/chunks/auth-DsqlBO-Q.js +0 -1
- package/dist/chunks/backgroundHousekeeping-CXv_Pm5h.js +0 -17
- package/dist/chunks/backgroundHousekeeping-Crx3oXIu.js +0 -1
- package/dist/chunks/branch-BEaujq-M.js +0 -2
- package/dist/chunks/bridgeConfig-Ctl7I_RR.js +0 -1
- package/dist/chunks/btw-8JqSG3o7.js +0 -1
- package/dist/chunks/caches-dnO4Ae_m.js +0 -1
- package/dist/chunks/caches-lPzD_yGv.js +0 -1
- package/dist/chunks/client-BFjMSlp7.js +0 -1
- package/dist/chunks/client-Byat5HpG.js +0 -1
- package/dist/chunks/client-Dzx24jGZ.js +0 -1
- package/dist/chunks/commands-D3lQbt9p.js +0 -1
- package/dist/chunks/config-CPGSP_1Z.js +0 -1
- package/dist/chunks/context-noninteractive-CwlOID3q.js +0 -1
- package/dist/chunks/conversation-BLEWB1BE.js +0 -1
- package/dist/chunks/conversation-Bos7yTIv.js +0 -1
- package/dist/chunks/createSession-B4wkDNam.js +0 -1
- package/dist/chunks/crossProjectResume-C5QtstD6.js +0 -40
- package/dist/chunks/cwd-BfiQQAqr.js +0 -1
- package/dist/chunks/cwd-Dj2ynhWd.js +0 -1
- package/dist/chunks/detectRepository-CWI2xcdR.js +0 -1
- package/dist/chunks/doctor-BV6zhneX.js +0 -1
- package/dist/chunks/extractMemories-DxGHxoNO.js +0 -1
- package/dist/chunks/fast-Bf-g-wR6.js +0 -1
- package/dist/chunks/fetchModelList-vk-RMDfG.js +0 -1
- package/dist/chunks/firstPartyEventLogger-DvsZdBy2.js +0 -1
- package/dist/chunks/git-Bujlb5tq.js +0 -1
- package/dist/chunks/githubRepoPathMapping-Dhz4cvw2.js +0 -1
- package/dist/chunks/hooks-C5YSYzSl.js +0 -1
- package/dist/chunks/initReplBridge-BFYTAFlT.js +0 -1
- package/dist/chunks/install-CjacxFXg.js +0 -1
- package/dist/chunks/keybindings-D01jzjKu.js +0 -1
- package/dist/chunks/loadAgentsDir-xG1HswS_.js +0 -1
- package/dist/chunks/localSearch-B17Mzd84.js +0 -1
- package/dist/chunks/managedEnv-C7bVtcgA.js +0 -1
- package/dist/chunks/managedEnv-d7HliQYg.js +0 -1
- package/dist/chunks/mcp-BcEApfqn.js +0 -1
- package/dist/chunks/mcp-CBbVcOTy.js +0 -2
- package/dist/chunks/mcp-DYtfHeRa.js +0 -6
- package/dist/chunks/memory-CijapyZk.js +0 -1
- package/dist/chunks/model-CyF5u3zH.js +0 -1
- package/dist/chunks/model-DaYZWYJe.js +0 -1
- package/dist/chunks/omit-BhPlISSj.js +0 -1
- package/dist/chunks/onChangeAppState-BOJd4Yce.js +0 -1
- package/dist/chunks/parser-B-QFQfSO.js +0 -1
- package/dist/chunks/partition-_qZZlGjS.js +0 -1
- package/dist/chunks/permissions-CcjGscyg.js +0 -3
- package/dist/chunks/pidLock-Cm9FWa4w.js +0 -3
- package/dist/chunks/plugin-D7vjs6Hu.js +0 -17
- package/dist/chunks/pluginOperations-BxHoy0pC.js +0 -2
- package/dist/chunks/pluginStartupCheck-CtX6QkdO.js +0 -1
- package/dist/chunks/poorMode-DyAWNRRM.js +0 -1
- package/dist/chunks/poorMode-aMzKXz6G.js +0 -1
- package/dist/chunks/postCommitAttribution-DoSP9wZD.js +0 -1
- package/dist/chunks/print-BrqZ3AgP.js +0 -14
- package/dist/chunks/processBashCommand-C6mBgRVz.js +0 -1
- package/dist/chunks/processSlashCommand-t0-BVku8.js +0 -5
- package/dist/chunks/prompt-BJ3xYAvE.js +0 -1
- package/dist/chunks/prompt-Di2lNwYp.js +0 -1
- package/dist/chunks/reconciler-p4lAu9ft.js +0 -1
- package/dist/chunks/refresh-DCQChX5A.js +0 -1
- package/dist/chunks/registerProtocol-CrzdmgCD.js +0 -1
- package/dist/chunks/remoteManagedSettings-DkLfclxa.js +0 -1
- package/dist/chunks/resume-K9q5B1li.js +0 -2
- package/dist/chunks/ripgrep-DLPH9MP9.js +0 -1
- package/dist/chunks/sandbox-adapter-CRxZBMAP.js +0 -1
- package/dist/chunks/searchExtraTools-BAYzzTE8.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-CwnjOk6S.js +0 -1
- package/dist/chunks/sessionObserver-DNjDoJmy.js +0 -1
- package/dist/chunks/sessionStorage-CVZ0MUSE.js +0 -1
- package/dist/chunks/settings-DsqFBv6J.js +0 -1
- package/dist/chunks/settingsSync-yE43qjMS.js +0 -1
- package/dist/chunks/setup-CFOc-hPM.js +0 -3
- package/dist/chunks/sinks-B64r_OBE.js +0 -1
- package/dist/chunks/skillChangeDetector-CLnn22Jo.js +0 -1
- package/dist/chunks/src-DPUAq5Ty.js +0 -1
- package/dist/chunks/startupProfiler-yBU6FaAV.js +0 -1
- package/dist/chunks/state-mHtumqEo.js +0 -1
- package/dist/chunks/status--Ql7l0VG.js +0 -1
- package/dist/chunks/switcher-Cb9R9247.js +0 -1
- package/dist/chunks/syncCache-BiqQEess.js +0 -1
- package/dist/chunks/toolPool-H_kXc8vo.js +0 -1
- package/dist/chunks/trustedDevice-Dm_SY3Ko.js +0 -1
- package/dist/chunks/useMainLoopModel-DG8pghH7.js +0 -1
- package/dist/chunks/useManagePlugins-HMHtjIY-.js +0 -1
- package/dist/chunks/useSettingsErrors-Bs9uyzW4.js +0 -1
- package/dist/chunks/validatePlugin-yCb8gsVF.js +0 -1
- package/dist/chunks/windowsPaths-Dd_S96Bq.js +0 -1
- package/dist/chunks/worktree-D-CgffvU.js +0 -1
- /package/dist/chunks/{src-DLz3FZm1.js → urlHandler-DLz3FZm1.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./loadAgentsDir-DaNpxaO-.js";e();export{t as clearAgentDefinitionsCache};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-
|
|
1
|
+
import{C_ as e,b_ as t,x_ as n}from"./loadAgentsDir-DaNpxaO-.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{D as r,N as i,a,f as o,g as s}from"./lazySchema-DULtBUCI.js";import{o as c,s as l}from"./log-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{D as r,N as i,a,f as o,g as s}from"./lazySchema-DULtBUCI.js";import{o as c,s as l}from"./log-CZ7ploQm.js";import{dirname as u,join as d}from"path";import{existsSync as f,readFileSync as p,renameSync as m,unlinkSync as h,writeFileSync as g}from"fs";import{randomBytes as _}from"node:crypto";var v=e((()=>{a(),a()})),y,b,x,S=e((()=>{v(),y=o([`openai-compat`,`anthropic-compat`]),b=r({id:i().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:i().url(),apiKey:i().min(1).optional(),apiKeyEnv:i().min(1).optional(),defaultModel:i().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=s(b)}));function C(){return d(t(),`providers.json`)}function w(){k=null}function T(){if(k!==null)return k;let e=E();return k=e.providers,e.providers}function E(){let e=C();if(!f(e))return{providers:[]};let t;try{t=p(e,`utf-8`)}catch(t){let n=`loadProviders: failed to read ${e}: ${t instanceof Error?t.message:String(t)}`;return l(Error(n)),{providers:[],error:n}}if(!t.trim())return{providers:[]};let n;try{n=JSON.parse(t)}catch{let t=`loadProviders: ${e} is not valid JSON. Ignoring.`;return l(Error(t)),{providers:[],error:t}}let r=x.safeParse(n);if(!r.success){let t=`loadProviders: ${e} failed schema validation: ${r.error.message}. Ignoring.`;return l(Error(t)),{providers:[],error:t}}return{providers:r.data}}function D(e,t){return(t??T()).find(t=>t.id===e)}function O(e){let t=C(),n=d(u(t),`.providers-${_(8).toString(`hex`)}.tmp`);try{g(n,JSON.stringify(e,null,2),`utf-8`),m(n,t)}catch(e){try{h(n)}catch{}throw e}return w(),e}var k,A=e((()=>{c(),n(),S(),k=null}));export{v as a,O as i,A as n,T as r,D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{c as t,i as n}from"./debug-D58GQBDG.js";function r(e){return g.test(e)}function i(e){let t=[],n=e.toLowerCase(),i=0;for(;i<n.length;)if(r(n[i])){let e=``;for(;i<n.length&&r(n[i]);)e+=n[i],i++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[i])){let e=``;for(;i<n.length&&/[a-z0-9\-_]/.test(n[i]);)e+=n[i],i++;let r=e.replace(/^[-_]+|[-_]+$/g,``);r&&!h.has(r)&&t.push(r)}else i++;return t}function a(e){if(r(e[0]??``))return e;let t=e;return t.endsWith(`ing`)&&t.length>5?t=t.slice(0,-3):t.endsWith(`tion`)&&t.length>5||t.endsWith(`ness`)&&t.length>5||t.endsWith(`ment`)&&t.length>5?t=t.slice(0,-4):t.endsWith(`ers`)&&t.length>4?t=t.slice(0,-1):t.endsWith(`er`)&&t.length>4||t.endsWith(`es`)&&t.length>4?t=t.slice(0,-2):t.endsWith(`s`)&&t.length>3&&!t.endsWith(`ss`)?t=t.slice(0,-1):(t.endsWith(`ed`)&&t.length>4||t.endsWith(`ly`)&&t.length>4)&&(t=t.slice(0,-2)),t}function o(e){return i(e).map(a)}function s(e){let t=new Map;for(let n of e){let e=new Map;for(let t of n.tokens)e.set(t,(e.get(t)??0)+1);let r=1;for(let t of e.values())t>r&&(r=t);for(let[i,a]of e){let e=a/r*n.weight;e>(t.get(i)??0)&&t.set(i,e)}}return t}function c(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tokens)e.has(r)||(t.set(r,(t.get(r)??0)+1),e.add(r))}let n=e.length,r=new Map;for(let[e,i]of t)r.set(e,Math.log(n/i));return r}function l(e,t){let n=0,r=0,i=0;for(let[i,a]of e){let e=t.get(i)??0;n+=a*e,r+=a*a}for(let e of t.values())i+=e*e;let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}function u(e){return e.toLowerCase().replace(/[-_]/g,` `)}function d(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function f(){x=null,S=null,C=null,t(`[skill-search] index cache cleared`)}async function p(e){if(x&&C===e)return x;let{getCommands:n}=await import(`./commands-BkpqHY9F.js`),r=await n(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,c=e.allowedTools?.join(` `)??``,l=o(t),f=d(t),p=[...l,...f.map(a).filter(e=>!h.has(e))],m=o(n),g=o(r??``),v=o(c),y=[...new Set([...p,...m,...g,...v])],b=s([{tokens:p,weight:_.name},{tokens:g,weight:_.whenToUse},{tokens:m,weight:_.description},{tokens:v,weight:_.allowedTools}]);i.push({name:t,normalizedName:u(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:y,tfVector:b})}let l=c(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(l.get(t)??0));return x=i,S=l,C=e,t(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function m(e,t,n=5){if(t.length===0||!e?.trim())return[];let i=o(e);if(i.length===0)return[];let a=new Map,s=new Map;for(let e of i)s.set(e,(s.get(e)??0)+1);let u=1;for(let e of s.values())e>u&&(u=e);for(let[e,t]of s)a.set(e,t/u);let d=x===t&&S?S:c(t),f=new Map;for(let[e,t]of a)f.set(e,t*(d.get(e)??0));let p=i.filter(e=>r(e[0]??``)),m=i.filter(e=>!r(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=l(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<b&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=y&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=v&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var h,g,_,v,y,b,x,S,C,w=e((()=>{n(),h=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),g=/[\u4e00-\u9fff\u3400-\u4dbf]/,_={name:3,whenToUse:2,description:1,allowedTools:.3},v=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),y=4,b=2,x=null,S=null,C=null}));export{p as a,i as c,l as i,o as l,c as n,w as o,s as r,m as s,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,o as t,s as n,t as r}from"./localSearch-C2SZ9bGW.js";t();export{r as clearSkillIndexCache,e as getSkillIndex,n as searchSkills};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{l as r,o as ee}from"./envUtils-DcaKZlRU.js";import{Cn as te,Ut as ne,wn as re}from"./state-D5D6QpTX.js";import{H as ie,R as ae,U as oe,f as se,u as i,x as ce}from"./debug-D58GQBDG.js";import{i as le,t as ue}from"./hash-Tu-My5Vp.js";import{join as a}from"path";import o from"node:process";import s from"node:path";import c from"node:os";import"fs/promises";var l,de,u,d,f,p,m,fe,pe,h,me,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e((()=>{l=`command-name`,de=`command-message`,u=`command-args`,d=`bash-input`,f=`bash-stdout`,p=`bash-stderr`,m=`local-command-stdout`,fe=`local-command-stderr`,pe=`local-command-caveat`,h=`tick`,me=`task-notification`,g=`task-id`,_=`tool-use-id`,v=`task-type`,y=`output-file`,b=`status`,x=`summary`,S=`worktree`,C=`worktreePath`,w=`worktreeBranch`,T=`remote-review`,E=`remote-review-progress`,D=`cross-session-message`,O=`fork-boilerplate`,k=`Your directive: `,A=[`help`,`-h`,`--help`],j=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function he(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function N(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!he(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var ge=e((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function _e(e,{suffix:t=`nodejs`}={}){return N(e),t&&(e+=`-${t}`),N(e),o.platform===`darwin`?L(e):o.platform===`win32`?R(e):z(e)}var P,F,I,L,R,z,ve=e((()=>{ge(),P=c.homedir(),F=c.tmpdir(),{env:I}=o,L=e=>{let t=s.join(P,`Library`);return{data:s.join(t,`Application Support`,e),config:s.join(t,`Preferences`,e),cache:s.join(t,`Caches`,e),log:s.join(t,`Logs`,e),temp:s.join(F,e)}},R=e=>{let t=I.APPDATA||s.join(P,`AppData`,`Roaming`),n=I.LOCALAPPDATA||s.join(P,`AppData`,`Local`);return{data:s.join(n,e,`Data`),config:s.join(t,e,`Config`),cache:s.join(n,e,`Cache`),log:s.join(n,e,`Log`),temp:s.join(F,e)}},z=e=>{let t=s.basename(P);return{data:s.join(I.XDG_DATA_HOME||s.join(P,`.local`,`share`),e),config:s.join(I.XDG_CONFIG_HOME||s.join(P,`.config`),e),cache:s.join(I.XDG_CACHE_HOME||s.join(P,`.cache`),e),log:s.join(I.XDG_STATE_HOME||s.join(P,`.local`,`state`),e),temp:s.join(F,t,e)}}}));function B(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=U?t:`${t.slice(0,U)}-${Math.abs(ue(e)).toString(36)}`}function V(e){return B(e)}var H,U,W,G=e((()=>{ve(),se(),le(),H=_e(`claude-cli`),U=200,W={baseLogs:()=>a(H.cache,V(i().cwd())),errors:()=>a(H.cache,V(i().cwd()),`errors`),messages:()=>a(H.cache,V(i().cwd()),`messages`),mcpLogs:e=>a(H.cache,V(i().cwd()),`mcp-logs-${B(e)}`)}}));function K(e){return e.replace(J,``).trim()||e}function q(e){return e.replace(J,``).trim()}function ye(e){return e.replace(Y,``).trim()}var J,Y,X=e((()=>{J=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,Y=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function be(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function xe(){return be()===`essential-traffic`}function Se(){return be()!=="default"}function Ce(){return process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=e((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?q(e.firstPrompt):``,ee=r&&!n;return K(e.agentName||e.customTitle||e.summary||(ee?r:void 0)||t||(n?`Autonomous session`:void 0)||(e.sessionId?e.sessionId.slice(0,8):``)||``).trim()}function Ee(e){return e.toISOString().replace(/[:.]/g,`-`)}function De(e){Z.length>=Pe&&Z.shift(),Z.push(e)}function Oe(e){if($===null&&($=e,Q.length>0)){let e=[...Q];Q.length=0;for(let t of e)switch(t.type){case`error`:$.logError(t.error);break;case`mcpError`:$.logMCPError(t.serverName,t.error);break;case`mcpDebug`:$.logMCPDebug(t.serverName,t.message);break}}}function ke(e){let t=oe(e);try{if(r(process.env.CLAUDE_CODE_USE_BEDROCK)||r(process.env.CLAUDE_CODE_USE_VERTEX)||r(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||xe())return;if(De({error:ie(t),timestamp:new Date().toISOString()}),$===null){Q.push({type:`error`,error:t});return}$.logError(t)}catch{}}function Ae(){return[...Z]}function je(e,t){try{if($===null){Q.push({type:`mcpError`,serverName:e,error:t});return}$.logMCPError(e,t)}catch{}}function Me(e,t){try{if($===null){Q.push({type:`mcpDebug`,serverName:e,message:t});return}$.logMCPDebug(e,t)}catch{}}function Ne(e,t){if(!t?.startsWith(`repl_main_thread`))return;let{messages:n,...r}=e;te(r),re(null)}var Pe,Z,Q,$,Fe=e((()=>{n(),ne(),M(),G(),X(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,t(()=>process.argv.includes(`--hard-fail`))}));export{k as A,me as B,u as C,j as D,A as E,E as F,C as G,h as H,T as I,S as K,b as L,fe as M,m as N,D as O,y as P,x as R,f as S,l as T,_ as U,v as V,w as W,ye as _,Te as a,d as b,Me as c,we as d,xe as f,q as g,K as h,Ae as i,pe as j,O as k,je as l,X as m,Ne as n,Fe as o,Se as p,M as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,de as w,p as x,G as y,g as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Pr as t,br as n}from"./loadAgentsDir-DaNpxaO-.js";import{Gr as r,t as i}from"./src-DL3w8VPk2.js";import{O as a,Ut as o,ft as s}from"./state-D5D6QpTX.js";import{n as c,t as l}from"./cwd-Nh5IZNKO.js";import{Cn as u,bn as d,h as f,t as p}from"./settings-3xZ0fsvE.js";import{C as m,b as h,v as g,w as _}from"./startupProfiler-CbzxVmbv.js";import{Ot as v,Pt as y,zt as b}from"./model-Do0f476p.js";function x(e){return e>=70?`horizontal`:`compact`}function S(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+N+P,e-M);return a<t+i+N+P&&(i=a-t-N-P),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-M,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function C(e,t,n){let i=Math.max(r(e),r(t),r(n),20);return Math.min(i+4,A)}function w(e){return!e||e.length>j?`Welcome back!`:`Welcome back ${e}!`}function T(e,t){if(r(e)<=t)return e;let n=e.split(`/`),i=n[0]||``,a=n[n.length-1]||``,o=r(i),s=r(a);if(n.length===1)return m(e,t);if(i===``&&2+s>=t)return`/${m(a,Math.max(1,t-1))}`;if(i!==``&&3+s>=t)return`…/${m(a,Math.max(1,t-1-1))}`;if(n.length===2)return`${_(i,t-1-1-s)}…/${a}`;let c=t-o-s-1-2;if(c<=0)return`${_(i,Math.max(0,t-s-1-2))}/…/${a}`;let l=[];for(let e=n.length-2;e>0;e--){let t=n[e];if(t&&r(t)+1<=c)l.unshift(t),c-=r(t)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function E(){if(I)return I;let e=s();return I=t(10).then(t=>(F=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),F)).catch(()=>(F=[],F)),I}function D(){return F}function O(){let e=process.env.DEMO_VERSION??`0.0.20`,t=a(),n=process.env.DEMO_VERSION?`/code/claude`:d(l());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:b()?v():`API Usage Billing`,agentName:p().agent}}function k(e,t,n){return r(e)+3+r(t)>n?{shouldSplit:!0,truncatedModel:h(e,n),truncatedBilling:h(t,n)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(n-r(t)-3,10)),truncatedBilling:t}}var A,j,M,N,P,F,I,L=e((()=>{o(),i(),y(),c(),u(),g(),n(),f(),A=50,j=20,M=4,N=1,P=2,F=[],I=null}));export{x as a,D as c,w as i,L as l,C as n,O as o,k as r,E as s,S as t,T as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-DcaKZlRU.js";import{$y as r,Ap as i,Fa as a,JS as o,La as s,Sa as c,YS as l,Zy as u,kp as d}from"./loadAgentsDir-DaNpxaO-.js";import{R as f,V as p,f as m,u as h}from"./debug-D58GQBDG.js";import{Jr as g,Yr as _,_ as v,u as y}from"./model-Do0f476p.js";import{pn as b,un as x}from"./prompt-8u06WVES.js";import{join as S}from"path";function C(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
2
|
|
|
3
3
|
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
4
|
|
|
@@ -54,4 +54,4 @@ The document author has provided specific instructions for how this file should
|
|
|
54
54
|
|
|
55
55
|
"${r}"
|
|
56
56
|
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),v()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[
|
|
57
|
+
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:``,CLAUDE_MODEL:y(),CLAUDE_CWD:process.cwd()})}var D=e((()=>{n(),m(),v()}));function O(){F.clear()}function k(e){let t=e.match(N);if(!t?.[1])return null;let n=t[1].trim(),r=t.index+t[0].length,i=e.slice(r).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(i?.[1]){let e=i[1].match(P);if(e?.[1])return{title:n,instructions:e[1].trim()}}return{title:n}}function A(){return{agentType:`magic-docs`,whenToUse:`Update Magic Docs`,tools:[x],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:r,userContext:a,systemContext:s,toolUseContext:l}=t,d=u(l.readFileState);d.delete(e.path);let f={...l,readFileState:d},m=``;try{let t=(await o.call({file_path:e.path},f)).data;t.type===`text`&&(m=t.file.content)}catch(t){if(p(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let h=k(m);if(!h){F.delete(e.path);return}let g=await E(m,e.path,h.title,h.instructions),_=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.path)return{behavior:`allow`,updatedInput:n}}return{behavior:`deny`,message:`only ${x} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${x} is allowed`}}};for await(let e of i({agentDefinition:A(),promptMessages:[c({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:r,userContext:a,systemContext:s},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{d(),b(),l(),f(),r(),s(),g(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,_(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!a(t)&&F.size!==0)for(let t of Array.from(F.values()))await j(t,e)})}));export{M as n,I as r,O as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t}from"./envUtils-DcaKZlRU.js";import{a as n,t as r}from"./cliLaunch-
|
|
1
|
+
import{i as e,o as t}from"./envUtils-DcaKZlRU.js";import{a as n,t as r}from"./cliLaunch-DDtwAolw.js";import{dirname as i,join as a,resolve as o}from"path";import{mkdirSync as s,readFileSync as c,unlinkSync as l,writeFileSync as u}from"fs";t();function d(t=`remote-control`){return a(e(),`daemon`,`${t}.json`)}function f(e,t=`remote-control`){let n=d(t);s(i(n),{recursive:!0}),u(n,JSON.stringify(e,null,2),`utf-8`)}function p(e=`remote-control`){let t=d(e);try{let e=c(t,`utf-8`);return JSON.parse(e)}catch{return null}}function m(e=`remote-control`){let t=d(e);try{l(t)}catch{}}function h(e){try{return process.kill(e,0),!0}catch{return!1}}function g(e=`remote-control`){let t=p(e);return t?h(t.pid)?{status:`running`,state:t}:(m(e),{status:`stale`}):{status:`stopped`}}async function _(e=`remote-control`,t=1e4){let n=p(e);if(!n)return!1;let{pid:r}=n;if(!h(r))return m(e),!1;try{process.kill(r,`SIGTERM`)}catch{return m(e),!1}let i=Date.now()+t;for(;Date.now()<i;){if(!h(r))return m(e),!0;await new Promise(e=>setTimeout(e,200))}try{process.kill(r,`SIGKILL`)}catch{}return await new Promise(e=>setTimeout(e,500)),m(e),!0}var v=78,y=2e3,b=12e4,x=2,S=5;async function C(e){let t=e[0]||`status`;switch(t){case`start`:await O(e.slice(1));break;case`stop`:await E();break;case`status`:case`ps`:await T();break;case`bg`:await(await import(`./bg-tGgpwpYx.js`)).handleBgStart(e.slice(1));break;case`attach`:await(await import(`./bg-tGgpwpYx.js`)).attachHandler(e[1]);break;case`logs`:await(await import(`./bg-tGgpwpYx.js`)).logsHandler(e[1]);break;case`kill`:await(await import(`./bg-tGgpwpYx.js`)).killHandler(e[1]);break;case`--help`:case`-h`:case`help`:w();break;default:console.error(`Unknown daemon subcommand: ${t}`),w(),process.exitCode=1}}function w(){console.log(`
|
|
2
2
|
Work Mate Daemon — background process management
|
|
3
3
|
|
|
4
4
|
USAGE
|
|
@@ -26,6 +26,6 @@ OPTIONS (for start)
|
|
|
26
26
|
--name <name> Session name
|
|
27
27
|
-h, --help Show this help
|
|
28
28
|
`)}async function T(){let e=g();switch(console.log(`=== Daemon Supervisor ===`),e.status){case`running`:{let t=e.state;console.log(` Status: running`),console.log(` PID: ${t.pid}`),console.log(` CWD: ${t.cwd}`),console.log(` Started: ${t.startedAt}`),console.log(` Workers: ${t.workerKinds.join(`, `)}`);break}case`stopped`:console.log(` Status: stopped`);break;case`stale`:console.log(` Status: stale (cleaned up)`);break}console.log(`
|
|
29
|
-
=== Background Sessions ===`),await(await import(`./bg-
|
|
29
|
+
=== Background Sessions ===`),await(await import(`./bg-tGgpwpYx.js`)).psHandler([])}async function E(){let e=g();if(e.status===`stopped`){console.log(`daemon is not running`);return}if(e.status===`stale`){console.log(`daemon was stale (cleaned up)`);return}console.log(`stopping daemon (PID: ${e.state.pid})...`),await _()?console.log(`daemon stopped`):console.log(`daemon could not be stopped (may have already exited)`)}function D(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];r===`--dir`&&n+1<e.length?t.dir=o(e[++n]):r.startsWith(`--dir=`)?t.dir=o(r.slice(6)):r===`--spawn-mode`&&n+1<e.length?t.spawnMode=e[++n]:r.startsWith(`--spawn-mode=`)?t.spawnMode=r.slice(13):r===`--capacity`&&n+1<e.length?t.capacity=e[++n]:r.startsWith(`--capacity=`)?t.capacity=r.slice(11):r===`--permission-mode`&&n+1<e.length?t.permissionMode=e[++n]:r.startsWith(`--permission-mode=`)?t.permissionMode=r.slice(18):r===`--sandbox`?t.sandbox=`1`:r===`--name`&&n+1<e.length?t.name=e[++n]:r.startsWith(`--name=`)&&(t.name=r.slice(7))}return t}async function O(e){let t=D(e),n=t.dir||o(`.`);console.log(`[daemon] supervisor starting in ${n}`);let r=[{kind:`remoteControl`,process:null,backoffMs:y,failureCount:0,parked:!1,lastStartTime:0,restartTimer:null}];f({pid:process.pid,cwd:n,startedAt:new Date().toISOString(),workerKinds:r.map(e=>e.kind),lastStatus:`running`});let i=new AbortController,a=()=>{console.log(`[daemon] supervisor shutting down...`),i.abort(),m();for(let e of r)e.restartTimer&&(clearTimeout(e.restartTimer),e.restartTimer=null),e.process&&!e.process.killed&&e.process.kill(`SIGTERM`)};process.on(`SIGTERM`,a),process.on(`SIGINT`,a);for(let e of r)i.signal.aborted||k(e,n,t,i.signal);await new Promise(e=>{if(i.signal.aborted){e();return}i.signal.addEventListener(`abort`,()=>e(),{once:!0})}),await Promise.all(r.filter(e=>e.process&&e.process.exitCode===null).map(e=>new Promise(t=>{if(!e.process||e.process.exitCode!==null){t();return}let n=null;e.process.on(`exit`,()=>{n&&(clearTimeout(n),n=null),t()}),n=setTimeout(()=>{e.process&&e.process.exitCode===null&&e.process.kill(`SIGKILL`),t()},3e4),n.unref?.()}))),console.log(`[daemon] supervisor stopped`)}function k(e,t,i,a){if(a.aborted||e.parked)return;e.lastStartTime=Date.now();let o={...process.env,DAEMON_WORKER_DIR:t,DAEMON_WORKER_NAME:i.name,DAEMON_WORKER_SPAWN_MODE:i.spawnMode||`same-dir`,DAEMON_WORKER_CAPACITY:i.capacity||`4`,DAEMON_WORKER_PERMISSION:i.permissionMode,DAEMON_WORKER_SANDBOX:i.sandbox||`0`,DAEMON_WORKER_CREATE_SESSION:`1`,CLAUDE_CODE_SESSION_KIND:`daemon-worker`};console.log(`[daemon] spawning worker '${e.kind}'`);let s=n(r([`--daemon-worker=${e.kind}`],{env:o}),{cwd:t,stdio:[`ignore`,`pipe`,`pipe`]});e.process=s,s.stdout?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
|
|
30
30
|
`);for(let e of t)console.log(` ${e}`)}),s.stderr?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
|
|
31
31
|
`);for(let e of t)console.error(` ${e}`)}),s.on(`exit`,(n,r)=>{if(e.process=null,!a.aborted){if(n===v){console.error(`[daemon] worker '${e.kind}' exited with permanent error — parking`),e.parked=!0;return}if(Date.now()-e.lastStartTime<1e4){if(e.failureCount++,e.failureCount>=S){console.error(`[daemon] worker '${e.kind}' failed ${e.failureCount} times rapidly — parking`),e.parked=!0;return}}else e.failureCount=0,e.backoffMs=y;console.log(`[daemon] worker '${e.kind}' exited (code=${n}, signal=${r}), restarting in ${e.backoffMs}ms`),e.restartTimer=setTimeout(()=>{e.restartTimer=null,!a.aborted&&!e.parked&&k(e,t,i,a)},e.backoffMs),e.restartTimer.unref?.(),e.backoffMs=Math.min(e.backoffMs*x,b)}})}export{C as daemonMain};
|