@readmagic/workmate 0.0.26 → 0.0.28
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-mS8iUoWY.js → AddWorkspaceDirectory-Bmgh8VS3.js} +1 -1
- package/dist/chunks/{AgentsMdExternalIncludesDialog-BHBkysy0.js → AgentsMdExternalIncludesDialog-BJfHqScU.js} +1 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-BjbUilCE.js +1 -0
- package/dist/chunks/{App-D--vtCyq.js → App-COdpsR2w.js} +1 -1
- package/dist/chunks/BackgroundTasksDialog-WkoL4g5Q.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-DyqI98d2.js → BypassPermissionsModeDialog-BT9yl0Qt.js} +1 -1
- package/dist/chunks/CustomSelect-t4wXuXWH.js +1 -0
- package/dist/chunks/{DiffDialog-BQAU2pJx.js → DiffDialog-CXZxnb7Y.js} +6 -6
- package/dist/chunks/Doctor-B6isid5K.js +1 -0
- package/dist/chunks/{Doctor-DJOMbSDE.js → Doctor-COj-tZBc.js} +2 -2
- package/dist/chunks/{ExitFlow-xBOnvhiW.js → ExitFlow-CcMYH5iI.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-NiuhcaG5.js → InvalidConfigDialog-riLYEaUP.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-DrromC1I.js → InvalidSettingsDialog-BGXl3V1A.js} +1 -1
- package/dist/chunks/KeybindingProviderSetup-syiDgtpB.js +1 -0
- package/dist/chunks/MCPConnectionManager-C7RmKzJh.js +1 -0
- package/dist/chunks/MCPToolListView-CewNLJus.js +1 -0
- package/dist/chunks/{McpParsingWarnings-BYG2yqjO.js → McpParsingWarnings-Czze2JPd.js} +1 -1
- package/dist/chunks/MessageSelector-Kc6JlnDX.js +3 -0
- package/dist/chunks/Messages-BvFYO4Zn.js +10 -0
- package/dist/chunks/Onboarding-CD_Uv5h9.js +1 -0
- package/dist/chunks/{PermissionDialog-tEMMa5-a.js → PermissionDialog-DjCRuzSm.js} +1 -1
- package/dist/chunks/{PressEnterToContinue-CPOaYnym.js → PressEnterToContinue-DE1RxMX_.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-CwqAsTI2.js → PromptInputFooterSuggestions-CHXJsTtQ.js} +1 -1
- package/dist/chunks/PromptInputHelpMenu-BZIVCV7V.js +1 -0
- package/dist/chunks/{ProviderSetup-J6Ty-Wj8.js → ProviderSetup-CwMvjmjh.js} +1 -1
- package/dist/chunks/QueryEngine-DAwfp_ht.js +1 -0
- package/dist/chunks/REPL-CtFtb35A.js +124 -0
- package/dist/chunks/REPL-tFT1FGQF.js +1 -0
- package/dist/chunks/{ResumeConversation-Cmsbo5m7.js → ResumeConversation-CERzSBvg.js} +1 -1
- package/dist/chunks/{SearchBox-DQBLKyzJ.js → SearchBox-zA5QwIpO.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-ndh4aEwQ.js +1 -0
- package/dist/chunks/Settings-CPaqWNdP.js +2 -0
- package/dist/chunks/Spinner-C0qHjfIY.js +1 -0
- package/dist/chunks/SpinnerGlyph-BR_SiV9L.js +1 -0
- package/dist/chunks/{TextInput-BboKIug2.js → TextInput-ou7ZhpVY.js} +7 -7
- package/dist/chunks/{ThemePicker-DTpXbEY0.js → ThemePicker-CVFWqSc7.js} +1 -1
- package/dist/chunks/TrustDialog-CGXv_LF4.js +1 -0
- package/dist/chunks/{ValidationErrorsList-C_gDQfm1.js → ValidationErrorsList-CKeHoN2Z.js} +1 -1
- package/dist/chunks/{_baseEach-DGbaIpJA.js → _baseEach-BYhqv77g.js} +1 -1
- package/dist/chunks/{add-dir-B576wzi9.js → add-dir-BSizpuef.js} +1 -1
- package/dist/chunks/{agentDisplay-ZuFoBZYu.js → agentDisplay-JKfYFD1m.js} +1 -1
- package/dist/chunks/{agents-Dy4_hDic.js → agents-BDTCH6YB.js} +1 -1
- package/dist/chunks/agents-MEaV8P2G.js +101 -0
- package/dist/chunks/allErrors-Dhnf6rqg.js +1 -0
- package/dist/chunks/{appleTerminalBackup-C9kjzdM9.js → appleTerminalBackup-CN8kS74J.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-Bu-zRFCx.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-PyLNnGdw.js → backgroundHousekeeping-CsXlkIg3.js} +1 -1
- package/dist/chunks/banner-BKOzHotb.js +2 -0
- package/dist/chunks/branch-BllXcYwS.js +2 -0
- package/dist/chunks/{break-cache-DL95nKZl.js → break-cache-B1nuWtD_.js} +2 -2
- package/dist/chunks/bridgeControl-aDnUrYZR.js +2 -0
- package/dist/chunks/{btw-Y44ctueB.js → btw-DzaRBa6o.js} +1 -1
- package/dist/chunks/bundledMode-D9omqD3L.js +2 -0
- package/dist/chunks/caches-CMF-MmR-.js +1 -0
- package/dist/chunks/caches-CW5YnYNS.js +1 -0
- package/dist/chunks/channel-DVx21qde.js +1 -0
- package/dist/chunks/channel-Gw6skpUh.js +1 -0
- package/dist/chunks/{clear-DtTkA707.js → clear-CDQs9_5P.js} +1 -1
- package/dist/chunks/{client-aJ2Nr_sh.js → client-2w-g5kMx.js} +1 -1
- package/dist/chunks/client-B0ngS4Uu.js +1 -0
- package/dist/chunks/client-BP4DOH3K.js +1 -0
- package/dist/chunks/{client-Bw_L3lSc.js → client-pA7fKk0-.js} +1 -1
- package/dist/chunks/commands-CfYMwgP7.js +1 -0
- package/dist/chunks/{compact-CvNOtu7J.js → compact-6F2tuItE.js} +1 -1
- package/dist/chunks/config-BDkzWBnL.js +1 -0
- package/dist/chunks/config-Bio2EjUK.js +3 -0
- package/dist/chunks/config-C_AEhZrn.js +1 -0
- package/dist/chunks/{context-Opu4E8dL.js → context-TkdzCK3Y.js} +1 -1
- package/dist/chunks/{context-noninteractive-B1V2Mp26.js → context-noninteractive-BcBo64vo.js} +9 -9
- package/dist/chunks/context-noninteractive-oFcnY1Er.js +1 -0
- package/dist/chunks/{conversation-CG_z7TLE.js → conversation-CYZyg1U1.js} +1 -1
- package/dist/chunks/conversation-DXzlRhNw.js +1 -0
- package/dist/chunks/conversationRecovery-_hWC7JBO.js +1 -0
- package/dist/chunks/crossProjectResume-CCo3iZrB.js +40 -0
- package/dist/chunks/{debug-kBjDaVkQ.js → debug-2pVES-2G.js} +1 -1
- package/dist/chunks/detectRepository--luIRv5H.js +1 -0
- package/dist/chunks/{diff-Cv7tX2-P.js → diff-BzVUPO4Z.js} +1 -1
- package/dist/chunks/directoryCompletion-BC0qRmrz.js +1 -0
- package/dist/chunks/doctor-B4jQbGQr.js +1 -0
- package/dist/chunks/entry-333L52Lo.js +13 -0
- package/dist/chunks/{envUtils-DZ_SvEVz.js → envUtils-QyzA_cFM.js} +1 -1
- package/dist/chunks/{execFileNoThrow-BfZFnCGa.js → execFileNoThrow-DXSEj8ZO.js} +1 -1
- package/dist/chunks/{exit-OKEV_ddw.js → exit-D5DYnRvR.js} +1 -1
- package/dist/chunks/{extraUsage-BlRL3yeb.js → extraUsage-CmgRR-zH.js} +1 -1
- package/dist/chunks/extractMemories-CVUrBFMj.js +1 -0
- package/dist/chunks/fast-CRhW9zha.js +1 -0
- package/dist/chunks/fast-D7oNjaZ3.js +1 -0
- package/dist/chunks/fetchModelList-Cv1vWIpC.js +1 -0
- package/dist/chunks/fetchModelList-DIa1HwAJ.js +1 -0
- package/dist/chunks/fileSuggestions-DF3HTRKr.js +3 -0
- package/dist/chunks/{fpsMetrics-Ixd0J4CH.js → fpsMetrics-DIpm2-xw.js} +1 -1
- package/dist/chunks/{gemini-BfVyavwQ.js → gemini-ou7_YyXc.js} +1 -1
- package/dist/chunks/generateSessionName-CeN9EZNY.js +1 -0
- package/dist/chunks/{genericProcessUtils-CVtQOTO2.js → genericProcessUtils-GqURdVAv.js} +1 -1
- package/dist/chunks/{goal-BidR-GFa.js → goal-CCxo4Wyf.js} +1 -1
- package/dist/chunks/{grok-DLcuI-U7.js → grok-BMmUcNbI.js} +1 -1
- package/dist/chunks/{help-CZuvYhXj.js → help-CYtogTZk.js} +1 -1
- package/dist/chunks/{history-BxPGftQw.js → history-CUrqO9rV.js} +1 -1
- package/dist/chunks/{hooks-ehqfAM5F.js → hooks-ByVkvodY.js} +2 -2
- package/dist/chunks/hooks-CBGUcyCs.js +1 -0
- package/dist/chunks/install-DIxyfdXG.js +1 -0
- package/dist/chunks/{instrumentation-B9bfF2mA.js → instrumentation-BmHivmxs.js} +4 -4
- package/dist/chunks/{job-Coztdn6A.js → job-D534P26R.js} +1 -1
- package/dist/chunks/{keybindings-DwSdLpaE.js → keybindings-CxgQqQJe.js} +1 -1
- package/dist/chunks/{launchLocalMemory-DRzfpIOB.js → launchLocalMemory-CWXLb3KF.js} +1 -1
- package/dist/chunks/{launchOnboarding-D2zFCJf-.js → launchOnboarding-CocPmwzz.js} +1 -1
- package/dist/chunks/loadAgentsDir-Zw648oQO.js +1 -0
- package/dist/chunks/{loadAgentsDir-DR5PVAc3.js → loadAgentsDir-bmpKLPdG.js} +483 -483
- package/dist/chunks/{loadPluginHooks-BiQgGfUJ.js → loadPluginHooks-BIfM53-_.js} +1 -1
- package/dist/chunks/loader-BMAtuwRa.js +1 -0
- package/dist/chunks/{localSearch-CzkxDuOR.js → localSearch-Da8cVYoI.js} +1 -1
- package/dist/chunks/localSearch-Dbj8cXyO.js +1 -0
- package/dist/chunks/{log-DWZny1vM.js → log-L1kqxa_P.js} +1 -1
- package/dist/chunks/{logoUtils-DR5T0pr3.js → logoUtils-qNuBc2nI.js} +1 -1
- package/dist/chunks/{magicDocs-BwBxjfLo.js → magicDocs-BsEiBLQl.js} +2 -2
- package/dist/chunks/{main-Ryi27wYq.js → main-B31aPMPP.js} +34 -34
- package/dist/chunks/managedEnv-DCGLDTP_.js +1 -0
- package/dist/chunks/{managedEnv-Do9fgLpk.js → managedEnv-EZ2IirNa.js} +1 -1
- package/dist/chunks/{managedEnvConstants-CWcT7nYr.js → managedEnvConstants-BPY8yF1A.js} +1 -1
- package/dist/chunks/{mcp-CZBTxbhu.js → mcp-BMeWtYCx.js} +1 -1
- package/dist/chunks/{mcp-BCpnF6wD.js → mcp-CYbesbfl.js} +1 -1
- package/dist/chunks/mcp-Dd8TBfQQ.js +5 -0
- package/dist/chunks/memory-DtQQGyPS.js +1 -0
- package/dist/chunks/{modalContext-CBE8xuck.js → modalContext-sU2lfR08.js} +1 -1
- package/dist/chunks/{mode-wq70cR44.js → mode-SM8doWgC.js} +1 -1
- package/dist/chunks/{model-DVk9-2dk.js → model-C2r-PaR4.js} +1 -1
- package/dist/chunks/model-Dd3x121y.js +1 -0
- package/dist/chunks/modelOptions-BQL4gbNk.js +1 -0
- package/dist/chunks/nativeInstaller-DMkZdsof.js +1 -0
- package/dist/chunks/{notifications-dGBuNvFj.js → notifications-BwS1XsnZ.js} +1 -1
- package/dist/chunks/{observationStore-D0rm3GhP.js → observationStore-pnSSxec_.js} +1 -1
- package/dist/chunks/{onChangeAppState-B4K-rSaF.js → onChangeAppState-C9cYQJPF.js} +1 -1
- package/dist/chunks/{openai-DAwnAV9K.js → openai-Bea4I2Od.js} +1 -1
- package/dist/chunks/{overlayContext-B6i_6y_0.js → overlayContext-C5WPACKC.js} +1 -1
- package/dist/chunks/{panel-C0CF3noE.js → panel-DNiXDhBX.js} +1 -1
- package/dist/chunks/{parser-DThLwgdM.js → parser-CTnaXFVJ.js} +1 -1
- package/dist/chunks/parser-Diihup2V.js +1 -0
- package/dist/chunks/{partition-BRQHofxD.js → partition-CKgWl7p4.js} +1 -1
- package/dist/chunks/{pasteStore-BmehVo5j.js → pasteStore-njJCBMKr.js} +1 -1
- package/dist/chunks/permissions-Dv_PCfY0.js +3 -0
- package/dist/chunks/pidLock-CqkC3-nD.js +3 -0
- package/dist/chunks/{plan-B6U3ioer.js → plan-Ce6wfjjI.js} +1 -1
- package/dist/chunks/plugin-aK4tDrVg.js +17 -0
- package/dist/chunks/pluginAutoupdate-ByokIVEs.js +1 -0
- package/dist/chunks/{pluginBlocklist-DAoUENwc.js → pluginBlocklist-ByRQaVPu.js} +1 -1
- package/dist/chunks/{pluginCliCommands-CaHnj0C_.js → pluginCliCommands-Dyk4HYHs.js} +1 -1
- package/dist/chunks/{pluginFlagging-BCj9LJP3.js → pluginFlagging-B2ZX5_oB.js} +1 -1
- package/dist/chunks/pluginOperations-BCvJvfOC.js +2 -0
- package/dist/chunks/pluginStartupCheck-QG0d95dE.js +1 -0
- package/dist/chunks/pluginStartupCheck-o_TC7wIt.js +1 -0
- package/dist/chunks/{plugins-D7zyI9c4.js → plugins-DzsTDNWJ.js} +1 -1
- package/dist/chunks/{poorMode-Ocff_UT1.js → poorMode-CG2JNTD0.js} +1 -1
- package/dist/chunks/poorMode-eMIFCAC_.js +1 -0
- package/dist/chunks/print-dUT7E1g9.js +13 -0
- package/dist/chunks/processBashCommand-DtGCgTkF.js +1 -0
- package/dist/chunks/processSlashCommand-wXblpK2C.js +5 -0
- package/dist/chunks/{projectContext-QN5U3Ggr.js → projectContext-BFfHgAMh.js} +1 -1
- package/dist/chunks/{projectContext-COeHKDrk.js → projectContext-DnJHynXv.js} +1 -1
- package/dist/chunks/{projectOnboardingState-KqcpRXls.js → projectOnboardingState-D-_ijZnG.js} +1 -1
- package/dist/chunks/prompt-BdH2zk0S.js +1 -0
- package/dist/chunks/{prompt-CTByhpUI.js → prompt-BnDapYGL.js} +8 -8
- package/dist/chunks/prompt-D0TFER0A.js +1 -0
- package/dist/chunks/promptEditor-14TB3MYt.js +4 -0
- package/dist/chunks/protocolHandler-CJO3CRYW.js +13 -0
- package/dist/chunks/{proxy-BtWuysHM.js → proxy--_NfbJhm.js} +1 -1
- package/dist/chunks/reconciler-C_HKsocm.js +1 -0
- package/dist/chunks/{refresh-B4pqFp12.js → refresh-Cm4jZzLa.js} +1 -1
- package/dist/chunks/reject-Tug1RmkE.js +1 -0
- package/dist/chunks/{reload-plugins-DXQqk7q6.js → reload-plugins-CL9LWzpq.js} +1 -1
- package/dist/chunks/{rename-D4XBmTBI.js → rename-OfKJSazJ.js} +1 -1
- package/dist/chunks/{renderOptions-DkP98P_d.js → renderOptions-B0RFpjRI.js} +1 -1
- package/dist/chunks/{resume-DzIev0JI.js → resume-BZ42SpS2.js} +1 -1
- package/dist/chunks/ripgrep-67m14ImZ.js +5 -0
- package/dist/chunks/ripgrep-DB7KB8RZ.js +1 -0
- package/dist/chunks/{runtimeObserver-BUHs3qjs.js → runtimeObserver-BLq2guVy.js} +1 -1
- package/dist/chunks/{runtimeObserver-BPqlbu0B.js → runtimeObserver-DT5P2_XL.js} +2 -2
- package/dist/chunks/sandbox-adapter-982rx2cm.js +1 -0
- package/dist/chunks/sandbox-toggle-DghmaJhK.js +1 -0
- package/dist/chunks/searchExtraTools-B4N1bpy0.js +1 -0
- package/dist/chunks/select-CaxQ-BVq.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-BqQ58T7e.js +1 -0
- package/dist/chunks/{sessionObserver-B6xzxckA.js → sessionObserver-DBoZUvWL.js} +1 -1
- package/dist/chunks/sessionObserver-qYpA90El.js +1 -0
- package/dist/chunks/sessionStorage-CC0v4zMs.js +1 -0
- package/dist/chunks/sessionTracing-5a7HDF4e.js +11 -0
- package/dist/chunks/settings-D4M13toi.js +104 -0
- package/dist/chunks/settings-Dfit5gGT.js +1 -0
- package/dist/chunks/setup-DVLnIlse.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-D6R2OeoH.js → shadowedRuleDetection-L3tnySui.js} +1 -1
- package/dist/chunks/{sideQuestion-5jcbOMsR.js → sideQuestion-BJTVma-5.js} +1 -1
- package/dist/chunks/sinks-C9NdbjLo.js +1 -0
- package/dist/chunks/{sinks-B-kFqjjd.js → sinks-CV0SWuZW.js} +1 -1
- package/dist/chunks/{skillChangeDetector-103-nEle.js → skillChangeDetector-DlodgOyC.js} +1 -1
- package/dist/chunks/{skillGapStore-DOz1KCqo.js → skillGapStore-Cposc03e.js} +2 -2
- package/dist/chunks/{skillLifecycle-D9NkIwFQ.js → skillLifecycle-RXQp0JU7.js} +2 -2
- package/dist/chunks/{skillSearchPanel-DFiSZaJ4.js → skillSearchPanel-B2pjskqk.js} +2 -2
- package/dist/chunks/skills-D2ZjMtv4.js +1 -0
- package/dist/chunks/sleep-xKMbXTJe.js +1 -0
- package/dist/chunks/{src-WZ94ZKI3.js → src-BX54x08P.js} +1 -1
- package/dist/chunks/{src-Cy5_qH26.js → src-HB5wLari.js} +1 -1
- package/dist/chunks/{startupProfiler-DIM_Ihyp.js → startupProfiler-B9Qv2QGH.js} +1 -1
- package/dist/chunks/startupProfiler-DWcM4QBl.js +1 -0
- package/dist/chunks/{staticRender-RHUIg5ln.js → staticRender-Bt82RvGc.js} +1 -1
- package/dist/chunks/status-BcSkj9nE.js +1 -0
- package/dist/chunks/{statusNoticeHelpers-DI45AH-c.js → statusNoticeHelpers-DsrqBOQt.js} +1 -1
- package/dist/chunks/{stringUtils-D_xPrwGQ.js → stringUtils-Cs6E5f-B.js} +1 -1
- package/dist/chunks/switcher-BietN6il.js +1 -0
- package/dist/chunks/{switcher-DhZCaAun.js → switcher-rep86o4_.js} +1 -1
- package/dist/chunks/{tasks-6suPhqsK.js → tasks-B4coTfrq.js} +1 -1
- package/dist/chunks/{templateJobs-BKVEWCsb.js → templateJobs-C5ukh6H3.js} +7 -7
- package/dist/chunks/{terminalSetup-7PUR4hfo.js → terminalSetup-CaGbEVjB.js} +1 -1
- package/dist/chunks/{terminalSetup-Cqy5_PhJ.js → terminalSetup-xe_P98fY.js} +4 -4
- package/dist/chunks/{theme-B-HG2PUs.js → theme-7RmvErYJ.js} +1 -1
- package/dist/chunks/tipRegistry-BYpJZIjR.js +2 -0
- package/dist/chunks/{toolEventObserver-BY3QVnr6.js → toolEventObserver-Dzwzi5Vi.js} +1 -1
- package/dist/chunks/{toolPool-BcwIF8Q_.js → toolPool-BGfiNj6h.js} +1 -1
- package/dist/chunks/{udsClient-CCxgLiZy.js → udsClient-CWeoNrm3.js} +1 -1
- package/dist/chunks/{useDoublePress-DQBLKyzJ.js → useDoublePress-zA5QwIpO.js} +1 -1
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-BgJrnuDl.js → useExitOnCtrlCDWithKeybindings-BT0nexZw.js} +1 -1
- package/dist/chunks/useMainLoopModel-QuE7VkgX.js +1 -0
- package/dist/chunks/useManagePlugins-pGaGzsEg.js +1 -0
- package/dist/chunks/useMergedTools-BLsIT3R_.js +1 -0
- package/dist/chunks/{useSearchInput-BITV_Txn.js → useSearchInput-j12K4wEo.js} +1 -1
- package/dist/chunks/{useSettingsErrors-CO0fTNzn.js → useSettingsErrors-C8VIzdws.js} +1 -1
- package/dist/chunks/util-CCEK8oze.js +1 -0
- package/dist/chunks/validatePlugin-CTVnWx9H.js +1 -0
- package/dist/chunks/{vim-qgMS88ss.js → vim-BlO9V5_5.js} +1 -1
- package/dist/chunks/worktree-BWL0vR4o.js +1 -0
- package/dist/chunks/wrapper-B-Q3Illb.js +1 -0
- package/dist/chunks/{wrapper-K8ZapJVu.js → wrapper-DVKxC5fR.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/AgentsMdExternalIncludesDialog-DuStmCjj.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-mcDuiNGs.js +0 -2
- package/dist/chunks/CustomSelect-CpMbxYbt.js +0 -1
- package/dist/chunks/Doctor-BU69VQzw.js +0 -1
- package/dist/chunks/KeybindingProviderSetup-CSUkJHTT.js +0 -1
- package/dist/chunks/MCPConnectionManager-Bn1PDn3R.js +0 -1
- package/dist/chunks/MCPToolListView-BRxjOaOL.js +0 -1
- package/dist/chunks/MessageSelector-B7xAQqZI.js +0 -3
- package/dist/chunks/Messages-CxMsfjOa.js +0 -10
- package/dist/chunks/Onboarding-CkATe87e.js +0 -1
- package/dist/chunks/PromptInputHelpMenu-krq-hiFO.js +0 -1
- package/dist/chunks/QueryEngine-Mdi_kUaL.js +0 -1
- package/dist/chunks/REPL-BgzQtSFF.js +0 -1
- package/dist/chunks/REPL-rirm6s_7.js +0 -124
- package/dist/chunks/SearchExtraToolsTool-D1-7C04z.js +0 -1
- package/dist/chunks/SelectMulti-BpAjjhsn.js +0 -1
- package/dist/chunks/Settings-B6DImvca.js +0 -2
- package/dist/chunks/Spinner-DhhSOFcN.js +0 -1
- package/dist/chunks/SpinnerGlyph-CmVXC-_9.js +0 -1
- package/dist/chunks/TrustDialog-CZ8JpySm.js +0 -1
- package/dist/chunks/agents-HIOBiw4w.js +0 -101
- package/dist/chunks/allErrors-CxPNR2WN.js +0 -1
- package/dist/chunks/backgroundHousekeeping-ZCMPmQuU.js +0 -1
- package/dist/chunks/banner-DqFectPg.js +0 -2
- package/dist/chunks/branch-B_BL5N9N.js +0 -2
- package/dist/chunks/bundledMode-BxyD5cqq.js +0 -1
- package/dist/chunks/caches-5xZ4dSXt.js +0 -1
- package/dist/chunks/caches-Be9saXxV.js +0 -1
- package/dist/chunks/claudeDesktop-g8eUUY2E.js +0 -1
- package/dist/chunks/client-mnUISv_N.js +0 -1
- package/dist/chunks/client-wPqIdEVm.js +0 -1
- package/dist/chunks/commands-wfE12a4L.js +0 -1
- package/dist/chunks/config-D3K87Mm1.js +0 -3
- package/dist/chunks/config-DTga6Ku8.js +0 -1
- package/dist/chunks/config-DtmqWusU.js +0 -1
- package/dist/chunks/context-noninteractive-eIlneYiL.js +0 -1
- package/dist/chunks/conversation-CHesBfFZ.js +0 -1
- package/dist/chunks/conversationRecovery-OhitW-7g.js +0 -1
- package/dist/chunks/crossProjectResume-mmYx8PrZ.js +0 -40
- package/dist/chunks/detectRepository-M6K2wc7h.js +0 -1
- package/dist/chunks/directoryCompletion-BHyjyKAM.js +0 -1
- package/dist/chunks/doctor-DeBG5SL5.js +0 -1
- package/dist/chunks/entry-CbhyIWgj.js +0 -13
- package/dist/chunks/extractMemories-jnsv-_n_.js +0 -1
- package/dist/chunks/fast-4I_qPJCd.js +0 -1
- package/dist/chunks/fast-DiolM1M7.js +0 -1
- package/dist/chunks/fetchModelList-BRFTQim4.js +0 -1
- package/dist/chunks/fetchModelList-qPKAuu4m.js +0 -1
- package/dist/chunks/fileSuggestions-iWVXvvLB.js +0 -3
- package/dist/chunks/generateSessionName-CGaTTXCA.js +0 -1
- package/dist/chunks/hooks-Bg9WIjZQ.js +0 -1
- package/dist/chunks/install-ACGY0vhM.js +0 -1
- package/dist/chunks/loadAgentsDir-DqAbnpB-.js +0 -1
- package/dist/chunks/loader-6MqzNGmV.js +0 -1
- package/dist/chunks/localSearch-DW3JT2MA.js +0 -1
- package/dist/chunks/managedEnv-DCEJh3z3.js +0 -1
- package/dist/chunks/mcp-CJ6SDJEK.js +0 -6
- package/dist/chunks/memory-BQO6Y0ak.js +0 -1
- package/dist/chunks/model-D42epddJ.js +0 -1
- package/dist/chunks/modelOptions-beLgXORr.js +0 -1
- package/dist/chunks/nativeInstaller-ChGSz1lb.js +0 -1
- package/dist/chunks/parser-BZt0VFd_.js +0 -1
- package/dist/chunks/permissions-DkfWKN-B.js +0 -3
- package/dist/chunks/pidLock-YvAaIrIY.js +0 -3
- package/dist/chunks/platform-Vl9IynC3.js +0 -2
- package/dist/chunks/plugin-CTA2_-F7.js +0 -17
- package/dist/chunks/pluginAutoupdate-Dy5W3HWE.js +0 -1
- package/dist/chunks/pluginOperations-ClXNOOG6.js +0 -2
- package/dist/chunks/pluginStartupCheck-CiwMKGjx.js +0 -1
- package/dist/chunks/pluginStartupCheck-U8_xk25t.js +0 -1
- package/dist/chunks/poorMode-DtzWNhsY.js +0 -1
- package/dist/chunks/print-BzljdXem.js +0 -13
- package/dist/chunks/processBashCommand-RUkmyAl4.js +0 -1
- package/dist/chunks/processSlashCommand-DRLO-jNV.js +0 -5
- package/dist/chunks/prompt-DTpfW6yP.js +0 -1
- package/dist/chunks/prompt-D__eHY_5.js +0 -1
- package/dist/chunks/promptEditor-CpUFgGzc.js +0 -4
- package/dist/chunks/protocolHandler-BQSLVGnG.js +0 -13
- package/dist/chunks/reconciler-D6BUq8WB.js +0 -1
- package/dist/chunks/reject-C6IvUvBt.js +0 -1
- package/dist/chunks/ripgrep-CYP26Fhg.js +0 -1
- package/dist/chunks/ripgrep-D1f1pbCz.js +0 -5
- package/dist/chunks/sandbox-adapter-CumL75tU.js +0 -1
- package/dist/chunks/sandbox-toggle-CTtET6Xq.js +0 -1
- package/dist/chunks/searchExtraTools-BMCU2zEf.js +0 -1
- package/dist/chunks/select-FrwoTzuc.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-WO8WTdT9.js +0 -1
- package/dist/chunks/sessionObserver-CBrM4opL.js +0 -1
- package/dist/chunks/sessionStorage-C1EAxDWG.js +0 -1
- package/dist/chunks/sessionTracing-UFK96PxT.js +0 -11
- package/dist/chunks/settings-BK6gCko-.js +0 -1
- package/dist/chunks/settings-YIDksG5Z.js +0 -24
- package/dist/chunks/setup-BBvZyrfz.js +0 -3
- package/dist/chunks/sinks-DB_D4lmu.js +0 -1
- package/dist/chunks/skills-DgeLr52a.js +0 -1
- package/dist/chunks/sleep-BbWr_FL1.js +0 -1
- package/dist/chunks/startupProfiler-FpGsKWYk.js +0 -1
- package/dist/chunks/status-CKLecQZV.js +0 -1
- package/dist/chunks/switcher-D2Z2ZNQ0.js +0 -1
- package/dist/chunks/tipRegistry-BR_lSGRw.js +0 -2
- package/dist/chunks/types-CD25a50S.js +0 -81
- package/dist/chunks/use-select-navigation-CW5alA9r.js +0 -1
- package/dist/chunks/useMainLoopModel-BVgJo4hN.js +0 -1
- package/dist/chunks/useManagePlugins-CrWjzESW.js +0 -1
- package/dist/chunks/useMergedTools-r6GQq5mI.js +0 -1
- package/dist/chunks/util-_zo3I1y8.js +0 -1
- package/dist/chunks/validatePlugin-DFGdRhA-.js +0 -1
- package/dist/chunks/worktree-CR_M6Qfy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c_ as e,s_ as t,u_ as n}from"./loadAgentsDir-
|
|
1
|
+
import{c_ as e,s_ as t,u_ as n}from"./loadAgentsDir-bmpKLPdG.js";t();export{e as loadPluginHooks,n as setupPluginHookHotReload};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-QyzA_cFM.js";import{Fi as r,Vi as i,Wi as a,oa as o,ta as s}from"./settings-D4M13toi.js";import{o as c,s as l}from"./log-L1kqxa_P.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((()=>{r(),r()})),y,b,x,S=e((()=>{v(),y=i([`openai-compat`,`anthropic-compat`]),b=s({id:o().min(1).regex(/^[a-z0-9-]+$/,`id must be kebab-case`),kind:y,baseUrl:o().url(),apiKey:o().min(1).optional(),apiKeyEnv:o().min(1).optional(),defaultModel:o().min(1).default(`gpt-4o-mini`)}).refine(e=>!!e.apiKey||!!e.apiKeyEnv,`either apiKey or apiKeyEnv is required`),x=a(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-2pVES-2G.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-CfYMwgP7.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-Da8cVYoI.js";t();export{r as clearSkillIndexCache,e as getSkillIndex,n as searchSkills};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./memoize-BK3gG5ob.js";import{l as i,o as ee}from"./envUtils-
|
|
1
|
+
import{i as e,n as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./memoize-BK3gG5ob.js";import{l as i,o as ee}from"./envUtils-QyzA_cFM.js";import{Pt as te,dn as ne,un as re}from"./state-CXY-q5gr.js";import{B as ie,I as ae,V as oe,f as se,u as a,x as ce}from"./debug-2pVES-2G.js";import{join as o}from"path";import s from"node:process";import c from"node:path";import le from"node:os";import"fs/promises";var ue,de,fe,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,pe=t((()=>{ue=`command-name`,de=`command-message`,fe=`command-args`,l=`bash-input`,u=`bash-stdout`,d=`bash-stderr`,f=`local-command-stdout`,p=`local-command-stderr`,m=`local-command-caveat`,h=`tick`,g=`task-notification`,_=`task-id`,v=`tool-use-id`,y=`task-type`,b=`output-file`,x=`status`,S=`summary`,C=`worktree`,w=`worktreePath`,T=`worktreeBranch`,E=`fork-boilerplate`,D=`Your directive: `,O=[`help`,`-h`,`--help`],k=[`list`,`show`,`display`,`current`,`view`,`get`,`check`,`describe`,`print`,`version`,`about`,`status`,`?`]}));function me(e){if(typeof e!=`string`)return!1;let t=e.trim();return t!==``&&t!==`.`&&t!==`..`&&!e.includes(`/`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function A(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);if(!me(e))throw Error(`Unsafe filename: ${JSON.stringify(e)}`)}var he=t((()=>{Object.freeze([``,` `,`.`,`..`,` .`,`. `,` ..`,`.. `,`../`,`../foo`,`foo/../bar`,`foo/bar`,`foo\\bar`,`foo\0bar`])}));function ge(e,{suffix:t=`nodejs`}={}){return A(e),t&&(e+=`-${t}`),A(e),s.platform===`darwin`?P(e):s.platform===`win32`?F(e):I(e)}var j,M,N,P,F,I,_e=t((()=>{he(),j=le.homedir(),M=le.tmpdir(),{env:N}=s,P=e=>{let t=c.join(j,`Library`);return{data:c.join(t,`Application Support`,e),config:c.join(t,`Preferences`,e),cache:c.join(t,`Caches`,e),log:c.join(t,`Logs`,e),temp:c.join(M,e)}},F=e=>{let t=N.APPDATA||c.join(j,`AppData`,`Roaming`),n=N.LOCALAPPDATA||c.join(j,`AppData`,`Local`);return{data:c.join(n,e,`Data`),config:c.join(t,e,`Config`),cache:c.join(n,e,`Cache`),log:c.join(n,e,`Log`),temp:c.join(M,e)}},I=e=>{let t=c.basename(j);return{data:c.join(N.XDG_DATA_HOME||c.join(j,`.local`,`share`),e),config:c.join(N.XDG_CONFIG_HOME||c.join(j,`.config`),e),cache:c.join(N.XDG_CACHE_HOME||c.join(j,`.cache`),e),log:c.join(N.XDG_STATE_HOME||c.join(j,`.local`,`state`),e),temp:c.join(M,t,e)}}}));function L(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}function ve(t){return typeof Bun<`u`?Bun.hash(t).toString():e(`crypto`).createHash(`sha256`).update(t).digest(`hex`)}function ye(t,n){return typeof Bun<`u`?Bun.hash(n,Bun.hash(t)).toString():e(`crypto`).createHash(`sha256`).update(t).update(`\0`).update(n).digest(`hex`)}var R=t((()=>{}));function z(e){let t=e.replace(/[^a-zA-Z0-9]/g,`-`);return t.length<=H?t:`${t.slice(0,H)}-${Math.abs(L(e)).toString(36)}`}function B(e){return z(e)}var V,H,U,W=t((()=>{_e(),se(),R(),V=ge(`claude-cli`),H=200,U={baseLogs:()=>o(V.cache,B(a().cwd())),errors:()=>o(V.cache,B(a().cwd()),`errors`),messages:()=>o(V.cache,B(a().cwd()),`messages`),mcpLogs:e=>o(V.cache,B(a().cwd()),`mcp-logs-${z(e)}`)}}));function G(e){return e.replace(K,``).trim()||e}function be(e){return e.replace(K,``).trim()}function xe(e){return e.replace(q,``).trim()}var K,q,J=t((()=>{K=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g,q=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g}));function Y(){return process.env.WORKMATE_DISABLE_NONESSENTIAL_TRAFFIC?`essential-traffic`:process.env.DISABLE_TELEMETRY?`no-telemetry`:`default`}function X(){return Y()===`essential-traffic`}function Se(){return Y()!=="default"}function Ce(){return process.env.WORKMATE_DISABLE_NONESSENTIAL_TRAFFIC?`WORKMATE_DISABLE_NONESSENTIAL_TRAFFIC`:null}var we=t((()=>{}));function Te(e,t){let n=e.firstPrompt?.startsWith(`<${h}>`),r=e.firstPrompt?be(e.firstPrompt):``,i=r&&!n;return G(e.agentName||e.customTitle||e.summary||(i?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(i(process.env.WORKMATE_USE_BEDROCK)||i(process.env.WORKMATE_USE_VERTEX)||i(process.env.WORKMATE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||X())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;re(r),ne(null)}var Pe,Z,Q,$,Fe=t((()=>{r(),te(),pe(),W(),J(),ee(),ae(),we(),ce(),Pe=100,Z=[],Q=[],$=null,n(()=>process.argv.includes(`--hard-fail`))}));export{k as A,g as B,l as C,de as D,fe as E,f as F,w as G,h as H,b as I,C as K,x as L,D as M,m as N,ue as O,p as P,S as R,R as S,u as T,v as U,y as V,T as W,U as _,Te as a,ve as b,Me as c,we as d,X as f,xe as g,G as h,Ae as i,E as j,O as k,je as l,J as m,Ne as n,Fe as o,Se as p,pe as q,Ee as r,ke as s,Oe as t,Ce as u,W as v,d as w,ye as x,L as y,_ as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Gr as t,t as n}from"./src-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Gr as t,t as n}from"./src-BX54x08P.js";import{In as r,Nn as i,m as a,t as o}from"./settings-D4M13toi.js";import{Pt as s,at as c}from"./state-CXY-q5gr.js";import{gr as l,kr as u}from"./loadAgentsDir-bmpKLPdG.js";import{n as d,t as f}from"./cwd-DrEEb4f5.js";import{C as p,S as m,_ as h,y as g}from"./startupProfiler-B9Qv2QGH.js";function _(e){return e>=70?`horizontal`:`compact`}function v(e,t,n){if(t===`horizontal`){let t=n,r=e-(7+t),i=Math.max(30,r),a=Math.min(t+i+k+A,e-O);return a<t+i+k+A&&(i=a-t-k-A),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-O,70);return{leftWidth:r,rightWidth:r,totalWidth:r}}function y(e,n,r){let i=Math.max(t(e),t(n),t(r),20);return Math.min(i+4,E)}function b(e){return!e||e.length>D?`Welcome back!`:`Welcome back ${e}!`}function x(e,n){if(t(e)<=n)return e;let r=e.split(`/`),i=r[0]||``,a=r[r.length-1]||``,o=t(i),s=t(a);if(r.length===1)return m(e,n);if(i===``&&2+s>=n)return`/${m(a,Math.max(1,n-1))}`;if(i!==``&&3+s>=n)return`…/${m(a,Math.max(1,n-1-1))}`;if(r.length===2)return`${p(i,n-1-1-s)}…/${a}`;let c=n-o-s-1-2;if(c<=0)return`${p(i,Math.max(0,n-s-1-2))}/…/${a}`;let l=[];for(let e=r.length-2;e>0;e--){let n=r[e];if(n&&t(n)+1<=c)l.unshift(n),c-=t(n)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function S(){if(M)return M;let e=c();return M=u(10).then(t=>(j=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),j)).catch(()=>(j=[],j)),M}function C(){return j}function w(){return{version:process.env.DEMO_VERSION??`0.0.28`,cwd:process.env.DEMO_VERSION?`/code/claude`:i(f()),billingType:`API Usage Billing`,agentName:o().agent}}function T(e,n,r){return t(e)+3+t(n)>r?{shouldSplit:!0,truncatedModel:g(e,r),truncatedBilling:g(n,r)}:{shouldSplit:!1,truncatedModel:g(e,Math.max(r-t(n)-3,10)),truncatedBilling:n}}var E,D,O,k,A,j,M,N=e((()=>{s(),n(),d(),r(),h(),l(),a(),E=50,D=20,O=4,k=1,A=2,j=[],M=null}));export{_ as a,C as c,b as i,N as l,y as n,w as o,T as r,S as s,v as t,x 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-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{i as t,o as n}from"./envUtils-QyzA_cFM.js";import{$x as r,By as i,Gv as a,Ji as o,Uv as s,_d as c,gd as l,ya as u,zy as d}from"./loadAgentsDir-bmpKLPdG.js";import{I as f,f as p,u as m,z as h}from"./debug-2pVES-2G.js";import{X as g,Y as _,f as v,s as y}from"./model-Dd3x121y.js";import{ln as b,pn as x}from"./prompt-BnDapYGL.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(),p(),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(),p(),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:[b],model:`sonnet`,source:`built-in`,baseDir:`built-in`,getSystemPrompt:()=>``}}async function j(e,t){let{messages:n,systemPrompt:i,userContext:a,systemContext:o,toolUseContext:l}=t,u=s(l.readFileState);u.delete(e.path);let f={...l,readFileState:u},p=``;try{let t=(await d.call({file_path:e.path},f)).data;t.type===`text`&&(p=t.file.content)}catch(t){if(h(t)||t instanceof Error&&t.message.startsWith(`File does not exist`)){F.delete(e.path);return}throw t}let m=k(p);if(!m){F.delete(e.path);return}let g=await E(p,e.path,m.title,m.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 ${b} is allowed for ${e.path}`,decisionReason:{type:`other`,reason:`only ${b} is allowed`}}};for await(let e of c({agentDefinition:A(),promptMessages:[r({content:g})],toolUseContext:f,canUseTool:_,isAsync:!0,forkContextMessages:n,querySource:`magic_docs`,override:{systemPrompt:i,userContext:a,systemContext:o},availableTools:f.options.tools}));}async function M(){}var N,P,F,I=e((()=>{l(),x(),i(),f(),a(),o(),_(),D(),N=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,P=/^[_*](.+?)[_*]\s*$/m,F=new Map,g(async e=>{let{messages:t,querySource:n}=e;if(n===`repl_main_thread`&&!u(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};
|