pybao-cli 1.3.26 → 1.3.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/REPL-AZGDZE53.js +42 -0
- package/dist/{acp-LOGOESSG.js → acp-P46QDQM6.js} +26 -26
- package/dist/{agentsValidate-5IW63U66.js → agentsValidate-RNGFTQOT.js} +7 -7
- package/dist/{ask-Q7VRVJPB.js → ask-SBUPMM2Z.js} +25 -25
- package/dist/{autoUpdater-2ZV6FCMM.js → autoUpdater-K3C64NMR.js} +3 -3
- package/dist/{chunk-55TTS5HD.js → chunk-2S72EWDC.js} +3 -3
- package/dist/{chunk-QA24AHNF.js → chunk-4CSUDV4A.js} +1 -1
- package/dist/{chunk-AFPV7EJJ.js → chunk-52SLMSML.js} +2 -2
- package/dist/{chunk-NBHIFHSZ.js → chunk-54MP7NWJ.js} +3 -3
- package/dist/{chunk-CPSRDGJR.js → chunk-5MXRJYHI.js} +2 -2
- package/dist/{chunk-VPUN7LIY.js → chunk-5ORBHHT6.js} +3 -3
- package/dist/{chunk-5ZBW3CB3.js → chunk-6ULMHK34.js} +2 -2
- package/dist/{chunk-LVP73QLV.js → chunk-7HIICPVT.js} +1 -1
- package/dist/{chunk-36QYCWMY.js → chunk-EDU7CTKD.js} +1 -1
- package/dist/{chunk-XTYSRQBN.js → chunk-EGQFUKOU.js} +3 -3
- package/dist/{chunk-SPJMSNES.js → chunk-EZDTHVW3.js} +1 -1
- package/dist/{chunk-VVY63SQD.js → chunk-GMDP4E52.js} +1 -1
- package/dist/{chunk-LXLPYX7I.js → chunk-HDAAR2ZQ.js} +3 -3
- package/dist/{chunk-KPX5CHUQ.js → chunk-JP5KGUMW.js} +32 -32
- package/dist/{chunk-LWCKDVSQ.js → chunk-JWRBKSU6.js} +1 -1
- package/dist/{chunk-B4JE74GG.js → chunk-KGP35EIW.js} +1 -1
- package/dist/{chunk-OWCXDTMP.js → chunk-M2YAMG4O.js} +4 -4
- package/dist/{chunk-CJGHWIEQ.js → chunk-MT54J4QH.js} +1 -1
- package/dist/{chunk-CJGHWIEQ.js.map → chunk-MT54J4QH.js.map} +1 -1
- package/dist/{chunk-RPSKTTQH.js → chunk-NNT5FW5B.js} +4 -4
- package/dist/{chunk-CD7J2HBK.js → chunk-OTJQ24NW.js} +1 -1
- package/dist/{chunk-KHVOMDUO.js → chunk-QKYGIT4O.js} +3 -3
- package/dist/{chunk-TY4RM5G5.js → chunk-SNW4I7EZ.js} +2 -2
- package/dist/{chunk-CW3BHU2K.js → chunk-VL3DCHC3.js} +1 -1
- package/dist/{chunk-ZBH7DHEM.js → chunk-VMONWFTA.js} +3 -3
- package/dist/{chunk-DCXA3XIY.js → chunk-YFEC2XUU.js} +11 -20
- package/dist/chunk-YFEC2XUU.js.map +7 -0
- package/dist/{chunk-NED672CC.js → chunk-ZKHLBRJN.js} +2 -2
- package/dist/{chunk-PVQNKCLD.js → chunk-ZXNHRCFW.js} +2 -2
- package/dist/{cli-3T6HLBCQ.js → cli-MROE4BXG.js} +77 -77
- package/dist/commands-BB6BZYZH.js +46 -0
- package/dist/{config-T7UZOPRU.js → config-ERSCZVYA.js} +4 -4
- package/dist/{context-VP5QW6RU.js → context-SLL3RCJ4.js} +5 -5
- package/dist/{customCommands-3UHK3KA3.js → customCommands-F2NLE3QE.js} +4 -4
- package/dist/{env-LPZ4V2VO.js → env-YYG2Q7EA.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-VBW466GT.js → llm-NTHGCTEV.js} +26 -26
- package/dist/{llmLazy-KFD6SS3S.js → llmLazy-I7CLOFOT.js} +1 -1
- package/dist/{loader-63SHJHPF.js → loader-ZNPP2J7A.js} +4 -4
- package/dist/{mcp-QVSEMS23.js → mcp-FCKENXJR.js} +7 -7
- package/dist/{mentionProcessor-ZGQOUC44.js → mentionProcessor-3RQFUCGP.js} +5 -5
- package/dist/{messages-E4VV4NTU.js → messages-DJ4REO7R.js} +1 -1
- package/dist/{model-OJO2CSNE.js → model-2KRCRJYH.js} +5 -5
- package/dist/{openai-3OVGIMPG.js → openai-MHF36S7F.js} +5 -5
- package/dist/{outputStyles-B4YR5XJT.js → outputStyles-HOLWZEWP.js} +4 -4
- package/dist/{pluginRuntime-45TBDLJU.js → pluginRuntime-2SDONF5U.js} +6 -6
- package/dist/{pluginValidation-BCF2TBQ2.js → pluginValidation-MMQN4HKC.js} +6 -6
- package/dist/prompts-WWEDN2LS.js +48 -0
- package/dist/{pybAgentSessionLoad-HN2FCRKE.js → pybAgentSessionLoad-J75GFKAN.js} +4 -4
- package/dist/{pybAgentSessionResume-U2XVJN5O.js → pybAgentSessionResume-N3QI6722.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-6PYZQPV7.js → pybAgentStreamJsonSession-PGBSB2OF.js} +1 -1
- package/dist/{pybHooks-BTXR3HS6.js → pybHooks-CF3V72UU.js} +4 -4
- package/dist/query-V2FCR7BR.js +50 -0
- package/dist/{ripgrep-CQMO65H3.js → ripgrep-XWPGTPSD.js} +3 -3
- package/dist/{skillMarketplace-GTWQWCM4.js → skillMarketplace-3NYAL3II.js} +3 -3
- package/dist/{state-KB7AWC5Y.js → state-BAO66HVD.js} +2 -2
- package/dist/{theme-M5SCVDRB.js → theme-VNQKFVGY.js} +5 -5
- package/dist/{toolPermissionSettings-WSQMPD3C.js → toolPermissionSettings-DWX3VVTU.js} +6 -6
- package/dist/tools-BNEKJ3U3.js +47 -0
- package/dist/{userInput-J3G4CGG7.js → userInput-W2ONN6GC.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-SHJACNAV.js +0 -42
- package/dist/chunk-DCXA3XIY.js.map +0 -7
- package/dist/commands-7K7UQ4F3.js +0 -46
- package/dist/prompts-ETV5SPNM.js +0 -48
- package/dist/query-GXN7S6MG.js +0 -50
- package/dist/tools-4KJGW7SF.js +0 -47
- /package/dist/{REPL-SHJACNAV.js.map → REPL-AZGDZE53.js.map} +0 -0
- /package/dist/{acp-LOGOESSG.js.map → acp-P46QDQM6.js.map} +0 -0
- /package/dist/{agentsValidate-5IW63U66.js.map → agentsValidate-RNGFTQOT.js.map} +0 -0
- /package/dist/{ask-Q7VRVJPB.js.map → ask-SBUPMM2Z.js.map} +0 -0
- /package/dist/{autoUpdater-2ZV6FCMM.js.map → autoUpdater-K3C64NMR.js.map} +0 -0
- /package/dist/{chunk-55TTS5HD.js.map → chunk-2S72EWDC.js.map} +0 -0
- /package/dist/{chunk-QA24AHNF.js.map → chunk-4CSUDV4A.js.map} +0 -0
- /package/dist/{chunk-AFPV7EJJ.js.map → chunk-52SLMSML.js.map} +0 -0
- /package/dist/{chunk-NBHIFHSZ.js.map → chunk-54MP7NWJ.js.map} +0 -0
- /package/dist/{chunk-CPSRDGJR.js.map → chunk-5MXRJYHI.js.map} +0 -0
- /package/dist/{chunk-VPUN7LIY.js.map → chunk-5ORBHHT6.js.map} +0 -0
- /package/dist/{chunk-5ZBW3CB3.js.map → chunk-6ULMHK34.js.map} +0 -0
- /package/dist/{chunk-LVP73QLV.js.map → chunk-7HIICPVT.js.map} +0 -0
- /package/dist/{chunk-36QYCWMY.js.map → chunk-EDU7CTKD.js.map} +0 -0
- /package/dist/{chunk-XTYSRQBN.js.map → chunk-EGQFUKOU.js.map} +0 -0
- /package/dist/{chunk-SPJMSNES.js.map → chunk-EZDTHVW3.js.map} +0 -0
- /package/dist/{chunk-VVY63SQD.js.map → chunk-GMDP4E52.js.map} +0 -0
- /package/dist/{chunk-LXLPYX7I.js.map → chunk-HDAAR2ZQ.js.map} +0 -0
- /package/dist/{chunk-KPX5CHUQ.js.map → chunk-JP5KGUMW.js.map} +0 -0
- /package/dist/{chunk-LWCKDVSQ.js.map → chunk-JWRBKSU6.js.map} +0 -0
- /package/dist/{chunk-B4JE74GG.js.map → chunk-KGP35EIW.js.map} +0 -0
- /package/dist/{chunk-OWCXDTMP.js.map → chunk-M2YAMG4O.js.map} +0 -0
- /package/dist/{chunk-RPSKTTQH.js.map → chunk-NNT5FW5B.js.map} +0 -0
- /package/dist/{chunk-CD7J2HBK.js.map → chunk-OTJQ24NW.js.map} +0 -0
- /package/dist/{chunk-KHVOMDUO.js.map → chunk-QKYGIT4O.js.map} +0 -0
- /package/dist/{chunk-TY4RM5G5.js.map → chunk-SNW4I7EZ.js.map} +0 -0
- /package/dist/{chunk-CW3BHU2K.js.map → chunk-VL3DCHC3.js.map} +0 -0
- /package/dist/{chunk-ZBH7DHEM.js.map → chunk-VMONWFTA.js.map} +0 -0
- /package/dist/{chunk-NED672CC.js.map → chunk-ZKHLBRJN.js.map} +0 -0
- /package/dist/{chunk-PVQNKCLD.js.map → chunk-ZXNHRCFW.js.map} +0 -0
- /package/dist/{cli-3T6HLBCQ.js.map → cli-MROE4BXG.js.map} +0 -0
- /package/dist/{commands-7K7UQ4F3.js.map → commands-BB6BZYZH.js.map} +0 -0
- /package/dist/{config-T7UZOPRU.js.map → config-ERSCZVYA.js.map} +0 -0
- /package/dist/{context-VP5QW6RU.js.map → context-SLL3RCJ4.js.map} +0 -0
- /package/dist/{customCommands-3UHK3KA3.js.map → customCommands-F2NLE3QE.js.map} +0 -0
- /package/dist/{env-LPZ4V2VO.js.map → env-YYG2Q7EA.js.map} +0 -0
- /package/dist/{llm-VBW466GT.js.map → llm-NTHGCTEV.js.map} +0 -0
- /package/dist/{llmLazy-KFD6SS3S.js.map → llmLazy-I7CLOFOT.js.map} +0 -0
- /package/dist/{loader-63SHJHPF.js.map → loader-ZNPP2J7A.js.map} +0 -0
- /package/dist/{mcp-QVSEMS23.js.map → mcp-FCKENXJR.js.map} +0 -0
- /package/dist/{mentionProcessor-ZGQOUC44.js.map → mentionProcessor-3RQFUCGP.js.map} +0 -0
- /package/dist/{messages-E4VV4NTU.js.map → messages-DJ4REO7R.js.map} +0 -0
- /package/dist/{model-OJO2CSNE.js.map → model-2KRCRJYH.js.map} +0 -0
- /package/dist/{openai-3OVGIMPG.js.map → openai-MHF36S7F.js.map} +0 -0
- /package/dist/{outputStyles-B4YR5XJT.js.map → outputStyles-HOLWZEWP.js.map} +0 -0
- /package/dist/{pluginRuntime-45TBDLJU.js.map → pluginRuntime-2SDONF5U.js.map} +0 -0
- /package/dist/{pluginValidation-BCF2TBQ2.js.map → pluginValidation-MMQN4HKC.js.map} +0 -0
- /package/dist/{prompts-ETV5SPNM.js.map → prompts-WWEDN2LS.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-HN2FCRKE.js.map → pybAgentSessionLoad-J75GFKAN.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-U2XVJN5O.js.map → pybAgentSessionResume-N3QI6722.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-6PYZQPV7.js.map → pybAgentStreamJsonSession-PGBSB2OF.js.map} +0 -0
- /package/dist/{pybHooks-BTXR3HS6.js.map → pybHooks-CF3V72UU.js.map} +0 -0
- /package/dist/{query-GXN7S6MG.js.map → query-V2FCR7BR.js.map} +0 -0
- /package/dist/{ripgrep-CQMO65H3.js.map → ripgrep-XWPGTPSD.js.map} +0 -0
- /package/dist/{skillMarketplace-GTWQWCM4.js.map → skillMarketplace-3NYAL3II.js.map} +0 -0
- /package/dist/{state-KB7AWC5Y.js.map → state-BAO66HVD.js.map} +0 -0
- /package/dist/{theme-M5SCVDRB.js.map → theme-VNQKFVGY.js.map} +0 -0
- /package/dist/{toolPermissionSettings-WSQMPD3C.js.map → toolPermissionSettings-DWX3VVTU.js.map} +0 -0
- /package/dist/{tools-4KJGW7SF.js.map → tools-BNEKJ3U3.js.map} +0 -0
- /package/dist/{userInput-J3G4CGG7.js.map → userInput-W2ONN6GC.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listPybAgentSessions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EZDTHVW3.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_TIMEOUT_MS,
|
|
8
8
|
FallbackToolUseRejectedMessage,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
listMCPServers,
|
|
17
17
|
loadMergedSettings,
|
|
18
18
|
normalizeSandboxRuntimeConfigFromSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NNT5FW5B.js";
|
|
20
20
|
import {
|
|
21
21
|
formatValidationResult,
|
|
22
22
|
validatePluginOrMarketplacePath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EGQFUKOU.js";
|
|
24
24
|
import {
|
|
25
25
|
addMarketplace,
|
|
26
26
|
disableSkillPlugin,
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
refreshMarketplaceAsync,
|
|
34
34
|
removeMarketplace,
|
|
35
35
|
uninstallSkillPlugin
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JWRBKSU6.js";
|
|
37
37
|
import {
|
|
38
38
|
loadPybAgentSessionMessages
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VL3DCHC3.js";
|
|
40
40
|
import {
|
|
41
41
|
appendSessionCustomTitleRecord,
|
|
42
42
|
appendSessionJsonlFromMessage,
|
|
43
43
|
appendSessionTagRecord
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SNW4I7EZ.js";
|
|
45
45
|
import {
|
|
46
46
|
getRequestStatus,
|
|
47
47
|
setRequestStatus,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
runStopHooks,
|
|
59
59
|
runUserPromptSubmitHooks,
|
|
60
60
|
updateHookTranscriptForMessages
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5ORBHHT6.js";
|
|
62
62
|
import {
|
|
63
63
|
getPybAgentSessionId,
|
|
64
64
|
setPybAgentSessionId
|
|
@@ -71,34 +71,34 @@ import {
|
|
|
71
71
|
getOutputStyleSystemPromptAdditions,
|
|
72
72
|
resolveOutputStyleName,
|
|
73
73
|
setCurrentOutputStyle
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-52SLMSML.js";
|
|
75
75
|
import {
|
|
76
76
|
fetchCustomModels,
|
|
77
77
|
getModelFeatures
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-6ULMHK34.js";
|
|
79
79
|
import {
|
|
80
80
|
queryLLM,
|
|
81
81
|
queryQuick,
|
|
82
82
|
verifyApiKey
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-M2YAMG4O.js";
|
|
84
84
|
import {
|
|
85
85
|
listAllContentFiles,
|
|
86
86
|
ripGrep
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-GMDP4E52.js";
|
|
88
88
|
import {
|
|
89
89
|
getCustomCommandDirectories,
|
|
90
90
|
hasCustomCommands,
|
|
91
91
|
loadCustomCommands,
|
|
92
92
|
reloadCustomCommands
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-ZXNHRCFW.js";
|
|
94
94
|
import {
|
|
95
95
|
loadToolPermissionContextFromDisk,
|
|
96
96
|
persistToolPermissionUpdateToDisk
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2S72EWDC.js";
|
|
98
98
|
import {
|
|
99
99
|
getSettingsFileCandidates,
|
|
100
100
|
loadSettingsWithLegacyFallback
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-KGP35EIW.js";
|
|
102
102
|
import {
|
|
103
103
|
applyToolPermissionContextUpdate,
|
|
104
104
|
createDefaultToolPermissionContext
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
resetReminderSession,
|
|
112
112
|
setTodos,
|
|
113
113
|
systemReminderService
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-5MXRJYHI.js";
|
|
115
115
|
import {
|
|
116
116
|
getSessionState
|
|
117
117
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
getActiveAgents,
|
|
121
121
|
getAgentByType,
|
|
122
122
|
getAllAgents
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-ZKHLBRJN.js";
|
|
124
124
|
import {
|
|
125
125
|
getSessionPlugins
|
|
126
126
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -153,22 +153,22 @@ import {
|
|
|
153
153
|
processUserInput,
|
|
154
154
|
reorderMessages,
|
|
155
155
|
stripSystemMessages
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-4CSUDV4A.js";
|
|
157
157
|
import {
|
|
158
158
|
ModelManager,
|
|
159
159
|
getModelManager,
|
|
160
160
|
isDefaultSlowAndCapableModel
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-54MP7NWJ.js";
|
|
162
162
|
import {
|
|
163
163
|
getCodeStyle,
|
|
164
164
|
getContext,
|
|
165
165
|
getGitState,
|
|
166
166
|
getIsGit,
|
|
167
167
|
getProjectDocs
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-HDAAR2ZQ.js";
|
|
169
169
|
import {
|
|
170
170
|
getTheme
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-EDU7CTKD.js";
|
|
172
172
|
import {
|
|
173
173
|
DEFAULT_GLOBAL_CONFIG,
|
|
174
174
|
enableConfigs,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
saveGlobalConfig,
|
|
182
182
|
setAllPointersToModel,
|
|
183
183
|
setModelPointer
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-VMONWFTA.js";
|
|
185
185
|
import {
|
|
186
186
|
AbortError
|
|
187
187
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
getCurrentRequest,
|
|
191
191
|
logUserFriendly,
|
|
192
192
|
markPhase
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-7HIICPVT.js";
|
|
194
194
|
import {
|
|
195
195
|
ASCII_LOGO,
|
|
196
196
|
BunShell,
|
|
@@ -226,10 +226,10 @@ import {
|
|
|
226
226
|
renderBashNotification,
|
|
227
227
|
setActivePlanConversationKey,
|
|
228
228
|
setCwd
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-OTJQ24NW.js";
|
|
230
230
|
import {
|
|
231
231
|
MACRO
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-MT54J4QH.js";
|
|
233
233
|
import {
|
|
234
234
|
formatTotalCost,
|
|
235
235
|
getTotalAPIDuration,
|
|
@@ -417,7 +417,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
417
417
|
var getCommandPrefix = memoize(
|
|
418
418
|
async (command4, abortSignal) => {
|
|
419
419
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
420
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
420
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-NTHGCTEV.js");
|
|
421
421
|
const response = await queryQuick2({
|
|
422
422
|
systemPrompt,
|
|
423
423
|
userPrompt,
|
|
@@ -4457,7 +4457,7 @@ function formatParseError(error) {
|
|
|
4457
4457
|
return error instanceof Error ? error.message : String(error);
|
|
4458
4458
|
}
|
|
4459
4459
|
async function defaultGateQuery(args) {
|
|
4460
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4460
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-NTHGCTEV.js");
|
|
4461
4461
|
const messages = [
|
|
4462
4462
|
{
|
|
4463
4463
|
type: "user",
|
|
@@ -11002,7 +11002,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11002
11002
|
}
|
|
11003
11003
|
saveGlobalConfig(config2);
|
|
11004
11004
|
try {
|
|
11005
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11005
|
+
const { resetAnthropicClient } = await import("./llm-NTHGCTEV.js");
|
|
11006
11006
|
resetAnthropicClient();
|
|
11007
11007
|
} catch {
|
|
11008
11008
|
}
|
|
@@ -15284,7 +15284,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15284
15284
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15285
15285
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15286
15286
|
if (dirs.length === 0) return [];
|
|
15287
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15287
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-2SDONF5U.js");
|
|
15288
15288
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15289
15289
|
return errors;
|
|
15290
15290
|
}
|
|
@@ -15953,7 +15953,7 @@ async function call(onDone, context) {
|
|
|
15953
15953
|
ModelConfig,
|
|
15954
15954
|
{
|
|
15955
15955
|
onClose: () => {
|
|
15956
|
-
import("./model-
|
|
15956
|
+
import("./model-2KRCRJYH.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
15957
15957
|
reloadModelManager2();
|
|
15958
15958
|
triggerModelConfigChange();
|
|
15959
15959
|
onDone();
|
|
@@ -23195,7 +23195,7 @@ function useStatusLine() {
|
|
|
23195
23195
|
// src/ui/components/PromptInput.tsx
|
|
23196
23196
|
async function interpretHashCommand(input) {
|
|
23197
23197
|
try {
|
|
23198
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23198
|
+
const { queryQuick: queryQuick2 } = await import("./llm-NTHGCTEV.js");
|
|
23199
23199
|
const systemPrompt = [
|
|
23200
23200
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23201
23201
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23508,7 +23508,7 @@ function PromptInput({
|
|
|
23508
23508
|
if (messages2.length) {
|
|
23509
23509
|
if (mode === "bash") {
|
|
23510
23510
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23511
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23511
|
+
const { getCwd: getCwd2 } = await import("./state-BAO66HVD.js");
|
|
23512
23512
|
setCurrentPwd(getCwd2());
|
|
23513
23513
|
});
|
|
23514
23514
|
} else {
|
|
@@ -26267,7 +26267,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26267
26267
|
// src/commands/agents/generation.ts
|
|
26268
26268
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26269
26269
|
async function generateAgentWithClaude(prompt) {
|
|
26270
|
-
const { queryModel } = await import("./llm-
|
|
26270
|
+
const { queryModel } = await import("./llm-NTHGCTEV.js");
|
|
26271
26271
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26272
26272
|
|
|
26273
26273
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -3,7 +3,7 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
|
|
4
4
|
// src/services/ai/llmLazy.ts
|
|
5
5
|
async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal, options) {
|
|
6
|
-
const { queryLLM: inner } = await import("./llm-
|
|
6
|
+
const { queryLLM: inner } = await import("./llm-NTHGCTEV.js");
|
|
7
7
|
return inner(
|
|
8
8
|
messages,
|
|
9
9
|
systemPrompt,
|
|
@@ -14,15 +14,15 @@ async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function queryQuick(args) {
|
|
17
|
-
const { queryQuick: inner } = await import("./llm-
|
|
17
|
+
const { queryQuick: inner } = await import("./llm-NTHGCTEV.js");
|
|
18
18
|
return inner(args);
|
|
19
19
|
}
|
|
20
20
|
async function verifyApiKey(apiKey, baseURL, provider) {
|
|
21
|
-
const { verifyApiKey: inner } = await import("./llm-
|
|
21
|
+
const { verifyApiKey: inner } = await import("./llm-NTHGCTEV.js");
|
|
22
22
|
return inner(apiKey, baseURL, provider);
|
|
23
23
|
}
|
|
24
24
|
async function fetchAnthropicModels(apiKey, baseURL) {
|
|
25
|
-
const { fetchAnthropicModels: inner } = await import("./llm-
|
|
25
|
+
const { fetchAnthropicModels: inner } = await import("./llm-NTHGCTEV.js");
|
|
26
26
|
return inner(apiKey, baseURL);
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json", "../src/constants/macros.ts"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"pybao-cli\",\n \"version\": \"1.3.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"pybao-cli\",\n \"version\": \"1.3.28\",\n \"bin\": {\n \"pyb\": \"cli.js\",\n \"pyb-acp\": \"cli-acp.js\"\n },\n \"engines\": {\n \"node\": \">=20.18.1\"\n },\n \"main\": \"cli.js\",\n \"author\": \"PYB-XC\",\n \"license\": \"MIT\",\n \"description\": \"PYB-CLI - Minimal AI Agent with multi-model support and CLI interface\",\n \"keywords\": [\n \"ai\",\n \"agent\",\n \"minimal\",\n \"claude\"\n ],\n \"homepage\": \"https://github.com/pyb-xc/pyb-ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/pyb-xc/pyb-ts.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/pyb-xc/pyb-ts/issues\"\n },\n \"files\": [\n \"cli.js\",\n \"cli-acp.js\",\n \"yoga.wasm\",\n \"dist/**/*\",\n \"scripts/binary-utils.cjs\",\n \"scripts/cli-wrapper.cjs\",\n \"scripts/cli-acp-wrapper.cjs\",\n \"scripts/postinstall.js\",\n \".npmrc\"\n ],\n \"scripts\": {\n \"dev\": \"bun run ./src/entrypoints/cli.tsx --verbose\",\n \"build:npm\": \"node scripts/build.mjs\",\n \"build\": \"npm run build:npm\",\n \"build:binary\": \"node scripts/build-binary.mjs\",\n \"clean\": \"node scripts/clean.mjs\",\n \"prepublishOnly\": \"npm run build:npm && node scripts/prepublish-check.js\",\n \"postinstall\": \"node scripts/postinstall.js || true\",\n \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint\": \"eslint . --ext .ts,.tsx,.js --max-warnings 0\",\n \"lint:fix\": \"eslint . --ext .ts,.tsx,.js --fix\",\n \"test\": \"bun test\",\n \"test:unit\": \"bun test tests/unit\",\n \"test:integration\": \"bun test tests/integration\",\n \"test:e2e\": \"bun test tests/e2e\",\n \"typecheck\": \"tsc --noEmit\",\n \"prepare\": \"bun run scripts/install-hooks.mjs\",\n \"publish:dev\": \"bun run scripts/publish-dev.js\",\n \"publish:release\": \"bun run scripts/publish-release.js\",\n \"bench:startup\": \"bun run scripts/bench-startup.mjs\",\n \"parity:reference\": \"bun run scripts/reference-parity-check.mjs\"\n },\n \"dependencies\": {\n \"@anthropic-ai/bedrock-sdk\": \"^0.12.6\",\n \"@anthropic-ai/sdk\": \"^0.39.0\",\n \"@anthropic-ai/vertex-sdk\": \"^0.7.0\",\n \"@astrojs/language-server\": \"2.16.2\",\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@commander-js/extra-typings\": \"^13.1.0\",\n \"@inkjs/ui\": \"^2.0.0\",\n \"@modelcontextprotocol/sdk\": \"^1.15.1\",\n \"@prisma/language-server\": \"31.3.4\",\n \"@types/lodash-es\": \"^4.17.12\",\n \"@types/react\": \"^19.1.8\",\n \"@vscode/ripgrep\": \"^1.17.0\",\n \"@vue/language-server\": \"3.2.2\",\n \"ajv\": \"^8.17.1\",\n \"ansi-escapes\": \"^7.0.0\",\n \"bash-language-server\": \"5.6.0\",\n \"chalk\": \"^5.4.1\",\n \"cli-highlight\": \"^2.1.11\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"debug\": \"^4.4.1\",\n \"diff\": \"^7.0.0\",\n \"dockerfile-language-server-nodejs\": \"0.15.0\",\n \"dotenv\": \"^16.6.1\",\n \"env-paths\": \"^3.0.0\",\n \"fflate\": \"^0.8.2\",\n \"figures\": \"^6.1.0\",\n \"glob\": \"^11.0.3\",\n \"graphql-language-service-cli\": \"3.5.0\",\n \"gray-matter\": \"^4.0.3\",\n \"highlight.js\": \"^11.11.1\",\n \"ignore\": \"^7.0.5\",\n \"ink\": \"5.2.1\",\n \"ink-link\": \"^4.1.0\",\n \"ink-select-input\": \"^6.2.0\",\n \"ink-text-input\": \"^6.0.0\",\n \"intelephense\": \"1.16.3\",\n \"js-yaml\": \"^4.1.1\",\n \"lodash-es\": \"^4.17.21\",\n \"lru-cache\": \"^11.1.0\",\n \"marked\": \"^15.0.12\",\n \"minimatch\": \"^10.1.1\",\n \"nanoid\": \"^5.1.5\",\n \"node-fetch\": \"^3.3.2\",\n \"node-html-parser\": \"^7.0.1\",\n \"openai\": \"4.104.0\",\n \"pyright\": \"1.1.408\",\n \"react\": \"18.3.1\",\n \"semver\": \"^7.7.2\",\n \"shell-quote\": \"^1.8.3\",\n \"spawn-rx\": \"^5.1.2\",\n \"string-width\": \"^7.2.0\",\n \"strip-ansi\": \"^7.1.0\",\n \"svelte-language-server\": \"0.17.23\",\n \"tsx\": \"^4.20.3\",\n \"turndown\": \"^7.2.0\",\n \"undici\": \"^7.11.0\",\n \"vscode-jsonrpc\": \"8.2.1\",\n \"vscode-langservers-extracted\": \"4.10.0\",\n \"which\": \"^6.0.0\",\n \"wrap-ansi\": \"^9.0.0\",\n \"yaml-language-server\": \"1.19.2\",\n \"zod\": \"^3.25.76\",\n \"zod-to-json-schema\": \"^3.24.6\"\n },\n \"devDependencies\": {\n \"@types/bun\": \"latest\",\n \"@types/jest\": \"^30.0.0\",\n \"@types/node\": \"^24.1.0\",\n \"@types/which\": \"^3.0.4\",\n \"@typescript-eslint/eslint-plugin\": \"^8.50.1\",\n \"@typescript-eslint/parser\": \"^8.50.1\",\n \"bun-types\": \"latest\",\n \"esbuild\": \"^0.25.9\",\n \"eslint\": \"8.57.0\",\n \"eslint-plugin-react-hooks\": \"^7.0.1\",\n \"prettier\": \"^3.6.2\",\n \"react-devtools-core\": \"^7.0.1\",\n \"typescript\": \"^5.9.2\"\n },\n \"overrides\": {\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@smithy/smithy-client\": \"2.5.1\"\n }\n}\n", "import pkg from '../../package.json'\n\nexport const MACRO = {\n VERSION: pkg.version,\n README_URL: 'https://github.com/pyb-xc/pyb-ts#readme',\n PACKAGE_URL: 'pybao-cli',\n ISSUES_EXPLAINER:\n 'report the issue at https://github.com/pyb-xc/pyb-ts/issues',\n}\n"],
|
|
5
5
|
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KGP35EIW.js";
|
|
7
7
|
import {
|
|
8
8
|
getSessionPlugins
|
|
9
9
|
} from "./chunk-BJSWTHRM.js";
|
|
10
10
|
import {
|
|
11
11
|
getTheme
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EDU7CTKD.js";
|
|
13
13
|
import {
|
|
14
14
|
addMcprcServerForTesting,
|
|
15
15
|
getCurrentProjectConfig,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
safeParseJSON,
|
|
20
20
|
saveCurrentProjectConfig,
|
|
21
21
|
saveGlobalConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VMONWFTA.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
26
26
|
getCwd,
|
|
27
27
|
logMCPError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OTJQ24NW.js";
|
|
29
29
|
|
|
30
30
|
// src/services/mcp/client.ts
|
|
31
31
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MACRO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MT54J4QH.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/state/index.ts
|
|
8
8
|
import { cwd } from "process";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OTJQ24NW.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MT54J4QH.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/session/autoUpdater.ts
|
|
13
13
|
async function getSemver() {
|
|
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
|
|
|
82
82
|
const [
|
|
83
83
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
84
84
|
{ env }
|
|
85
|
-
] = await Promise.all([import("./config-
|
|
85
|
+
] = await Promise.all([import("./config-ERSCZVYA.js"), import("./env-YYG2Q7EA.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PLAN_SLUG_VERBS,
|
|
10
10
|
getCwd,
|
|
11
11
|
getPybBaseDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OTJQ24NW.js";
|
|
13
13
|
import {
|
|
14
14
|
MACRO
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MT54J4QH.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/protocol/pybAgentSessionLog.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getSessionProjectDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SNW4I7EZ.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-5P7HBXTD.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-RQVLBMP7.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7HIICPVT.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
getGlobalConfigFilePath,
|
|
12
12
|
logError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OTJQ24NW.js";
|
|
14
14
|
|
|
15
15
|
// src/core/config/schema.ts
|
|
16
16
|
function isAutoUpdaterStatus(value) {
|
|
@@ -660,7 +660,7 @@ function setModelPointer(pointer, modelName) {
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
saveGlobalConfig(updatedConfig);
|
|
663
|
-
import("./model-
|
|
663
|
+
import("./model-2KRCRJYH.js").then(({ reloadModelManager }) => {
|
|
664
664
|
reloadModelManager();
|
|
665
665
|
});
|
|
666
666
|
}
|
|
@@ -26,42 +26,42 @@ import {
|
|
|
26
26
|
hasPermissionsToUseTool,
|
|
27
27
|
hasReadPermission,
|
|
28
28
|
query
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JP5KGUMW.js";
|
|
30
30
|
import {
|
|
31
31
|
FallbackToolUseRejectedMessage,
|
|
32
32
|
MCPTool,
|
|
33
33
|
getClients,
|
|
34
34
|
getMCPTools
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NNT5FW5B.js";
|
|
36
36
|
import {
|
|
37
37
|
queryLLM
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-M2YAMG4O.js";
|
|
39
39
|
import {
|
|
40
40
|
generateAgentId
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5MXRJYHI.js";
|
|
42
42
|
import {
|
|
43
43
|
getActiveAgents,
|
|
44
44
|
getAgentByType,
|
|
45
45
|
getAvailableAgentTypes
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZKHLBRJN.js";
|
|
47
47
|
import {
|
|
48
48
|
INTERRUPT_MESSAGE,
|
|
49
49
|
createAssistantMessage,
|
|
50
50
|
createUserMessage,
|
|
51
51
|
getLastAssistantMessageId
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4CSUDV4A.js";
|
|
53
53
|
import {
|
|
54
54
|
getModelManager
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-54MP7NWJ.js";
|
|
56
56
|
import {
|
|
57
57
|
getContext
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-HDAAR2ZQ.js";
|
|
59
59
|
import {
|
|
60
60
|
getTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EDU7CTKD.js";
|
|
62
62
|
import {
|
|
63
63
|
debug
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-7HIICPVT.js";
|
|
65
65
|
import {
|
|
66
66
|
BunShell,
|
|
67
67
|
getCwd,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
logError,
|
|
71
71
|
overwriteLog,
|
|
72
72
|
readTaskOutput
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-OTJQ24NW.js";
|
|
74
74
|
import {
|
|
75
75
|
formatDuration,
|
|
76
76
|
formatNumber
|
|
@@ -2181,35 +2181,28 @@ var LspClientManager = class _LspClientManager {
|
|
|
2181
2181
|
const ext = extname2(filePath);
|
|
2182
2182
|
const serverInfo = LspServerRegistry.getInstance().getServerForExtension(ext);
|
|
2183
2183
|
if (!serverInfo) {
|
|
2184
|
-
console.log(`[LspClientManager] No server registered for extension: ${ext}`);
|
|
2185
2184
|
return null;
|
|
2186
2185
|
}
|
|
2187
|
-
console.log(`[LspClientManager] Found server info: ${serverInfo.id} for ${ext}`);
|
|
2188
2186
|
try {
|
|
2189
2187
|
const ready = await serverInfo.prepare();
|
|
2190
2188
|
if (!ready) {
|
|
2191
|
-
console.log(`[LspClientManager] Server ${serverInfo.id} failed prepare check`);
|
|
2192
2189
|
return null;
|
|
2193
2190
|
}
|
|
2194
2191
|
} catch (e) {
|
|
2195
|
-
console.error(`[LspClientManager] Error during prepare for ${serverInfo.id}:`, e);
|
|
2196
2192
|
return null;
|
|
2197
2193
|
}
|
|
2198
2194
|
const cmd = await serverInfo.getCommand(rootPath);
|
|
2199
2195
|
if (!cmd) {
|
|
2200
|
-
console.log(`[LspClientManager] Failed to get start command for ${serverInfo.id}`);
|
|
2201
2196
|
return null;
|
|
2202
2197
|
}
|
|
2203
2198
|
const key = `${rootPath}:${serverInfo.id}`;
|
|
2204
2199
|
let client = this.clients.get(key);
|
|
2205
2200
|
if (!client) {
|
|
2206
|
-
console.log(`[LspClientManager] Spawning new client for ${serverInfo.id}`);
|
|
2207
2201
|
client = new GenericLspClient(cmd.command, cmd.args, rootPath, rootPath);
|
|
2208
2202
|
try {
|
|
2209
2203
|
await client.initialize();
|
|
2210
2204
|
this.clients.set(key, client);
|
|
2211
2205
|
} catch (error) {
|
|
2212
|
-
console.error(`[LspClientManager] Failed to initialize LSP client for ${serverInfo.id}:`, error);
|
|
2213
2206
|
return null;
|
|
2214
2207
|
}
|
|
2215
2208
|
}
|
|
@@ -2490,9 +2483,7 @@ var LspTool = {
|
|
|
2490
2483
|
},
|
|
2491
2484
|
async *call(input, _context) {
|
|
2492
2485
|
const absPath = getAbsolutePath(input.filePath) ?? input.filePath;
|
|
2493
|
-
console.log(`[LspTool] Processing request for: ${absPath} (Op: ${input.operation})`);
|
|
2494
2486
|
const client = await LspClientManager.getInstance().getClient(absPath, getCwd());
|
|
2495
|
-
console.log(`[LspTool] Client for ${absPath}: ${client ? "Found" : "Not Found"}`);
|
|
2496
2487
|
if (client) {
|
|
2497
2488
|
try {
|
|
2498
2489
|
let result;
|