pybao-cli 1.3.74 → 1.3.76
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-2MFAZYFR.js +42 -0
- package/dist/{acp-CWQNH2II.js → acp-LDGRB36V.js} +27 -27
- package/dist/{agentsValidate-FGVVKC63.js → agentsValidate-3ZT5L4GI.js} +7 -7
- package/dist/{ask-MOPFMF4B.js → ask-KQZCP45I.js} +25 -25
- package/dist/{autoUpdater-HTFQKUXF.js → autoUpdater-MBMXCVBD.js} +3 -3
- package/dist/{chunk-HGRQUUGF.js → chunk-3X643DPY.js} +1 -1
- package/dist/{chunk-HGRQUUGF.js.map → chunk-3X643DPY.js.map} +1 -1
- package/dist/{chunk-XOYKHGAF.js → chunk-4KVOFH2S.js} +1 -1
- package/dist/{chunk-U3TQE6W4.js → chunk-5OS4UGYK.js} +1 -1
- package/dist/{chunk-WLN72Y7V.js → chunk-63LP4JE6.js} +3 -3
- package/dist/{chunk-ECH6PXZY.js → chunk-7CIDTUWO.js} +2 -2
- package/dist/{chunk-57BHH3W5.js → chunk-BAM5Z6EA.js} +4 -4
- package/dist/{chunk-Q3D7WN3G.js → chunk-ELPWSR2W.js} +2 -2
- package/dist/{chunk-6X7MQ6R7.js → chunk-ESQPYAOR.js} +74 -56
- package/dist/chunk-ESQPYAOR.js.map +7 -0
- package/dist/{chunk-VZRUNBV3.js → chunk-EYJQMII5.js} +17 -17
- package/dist/{chunk-EIBT7GQZ.js → chunk-F3JJJLFB.js} +1 -1
- package/dist/{chunk-MVJJQBVH.js → chunk-GPSOYNIA.js} +1 -1
- package/dist/{chunk-HRDPWCKT.js → chunk-H5ECL2W2.js} +2 -2
- package/dist/{chunk-7UICXYJS.js → chunk-JWSFVBQB.js} +2 -2
- package/dist/{chunk-5BPPWTCJ.js → chunk-KIYCTSKZ.js} +1 -1
- package/dist/{chunk-PSBWVZPN.js → chunk-KJXBKZD4.js} +1 -1
- package/dist/{chunk-T5GIWN7S.js → chunk-L2H76Z4W.js} +3 -3
- package/dist/{chunk-KMPPSY2Z.js → chunk-LEKWRXMF.js} +2 -2
- package/dist/{chunk-QTQCEBIV.js → chunk-MCXQN7QX.js} +4 -4
- package/dist/{chunk-VIUTGN2F.js → chunk-MY5O5CHS.js} +1 -1
- package/dist/{chunk-HSSGGDD2.js → chunk-NOMIQFQT.js} +1 -1
- package/dist/{chunk-532W4BJ3.js → chunk-R2MM2EIA.js} +3 -3
- package/dist/{chunk-FHEQDZRB.js → chunk-SBSGYOBY.js} +3 -3
- package/dist/{chunk-W3YS3X57.js → chunk-TASZ4WRS.js} +3 -3
- package/dist/{chunk-SMCZRQJV.js → chunk-TVCYEIR2.js} +3 -3
- package/dist/{chunk-WQOPV73V.js → chunk-VU5HNOM5.js} +2 -2
- package/dist/{chunk-WQOPV73V.js.map → chunk-VU5HNOM5.js.map} +2 -2
- package/dist/{chunk-PEOJ6LDD.js → chunk-XK233DN5.js} +2 -2
- package/dist/{chunk-JXRPZGOC.js → chunk-YKU5MMJL.js} +3 -3
- package/dist/{chunk-JHXCHM5Q.js → chunk-ZPGEVS4A.js} +1 -1
- package/dist/{cli-BNOJSNP2.js → cli-6L5TC5QS.js} +78 -78
- package/dist/commands-HSCVSRUN.js +46 -0
- package/dist/{config-ZIW6AAQL.js → config-YG2PMDJU.js} +4 -4
- package/dist/{context-UCBJTMS5.js → context-U3BVAD76.js} +5 -5
- package/dist/{customCommands-V7LDPAT2.js → customCommands-U2VHRRHF.js} +4 -4
- package/dist/{env-X3HL4RVH.js → env-H5WODPX3.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-T676E6BX.js → llm-CGDOSTGR.js} +26 -26
- package/dist/{llmLazy-3PIEQNLH.js → llmLazy-I5FNZYU5.js} +1 -1
- package/dist/{loader-WWOD6PB2.js → loader-CVQIK26G.js} +4 -4
- package/dist/{lspAnchor-7FE6YMQS.js → lspAnchor-IJEAL6DF.js} +4 -4
- package/dist/{manager-TA4MQO75.js → manager-UK5TEREN.js} +4 -4
- package/dist/{mcp-EMJWLTY7.js → mcp-LGKV3XX4.js} +7 -7
- package/dist/{mentionProcessor-2OUOEDP4.js → mentionProcessor-MDTHENKV.js} +5 -5
- package/dist/{messages-GOBO5PGY.js → messages-CQJMJWGJ.js} +1 -1
- package/dist/{model-AJSTP72F.js → model-UBVT2YA3.js} +5 -5
- package/dist/{openai-MUTRLEJU.js → openai-C4EX52QG.js} +5 -5
- package/dist/{outputStyles-OVBLOAO6.js → outputStyles-OPCESLH3.js} +4 -4
- package/dist/{pluginRuntime-VGXEK3UY.js → pluginRuntime-4GQ5X6NW.js} +6 -6
- package/dist/{pluginValidation-ATN4W7VM.js → pluginValidation-ORKYLE35.js} +6 -6
- package/dist/prompts-56KCWZNZ.js +48 -0
- package/dist/{pybAgentSessionLoad-XEQRVAVW.js → pybAgentSessionLoad-UEX26O72.js} +4 -4
- package/dist/{pybAgentSessionResume-VWSPEOSQ.js → pybAgentSessionResume-HQWFSAOI.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-NYAFMNE6.js → pybAgentStreamJsonSession-NTMBJMX6.js} +1 -1
- package/dist/{pybHooks-GSPWBM27.js → pybHooks-3COODNSS.js} +4 -4
- package/dist/query-BJAUI2E7.js +50 -0
- package/dist/{ripgrep-KXZPC6ET.js → ripgrep-XCQYUJT5.js} +3 -3
- package/dist/{skillMarketplace-4A53GWPK.js → skillMarketplace-OA7ZO7CJ.js} +3 -3
- package/dist/{state-KACQRKFD.js → state-BNESSPEK.js} +2 -2
- package/dist/{theme-W3WTSKVH.js → theme-ZIUQDRA3.js} +5 -5
- package/dist/{toolPermissionSettings-IIVUD4Q6.js → toolPermissionSettings-6ANKW5RJ.js} +6 -6
- package/dist/tools-4TTMZ6SJ.js +50 -0
- package/dist/{userInput-K5HTLZ64.js → userInput-NHATC6JJ.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-VTOYTWZO.js +0 -42
- package/dist/chunk-6X7MQ6R7.js.map +0 -7
- package/dist/commands-KQCRS22Y.js +0 -46
- package/dist/prompts-4F2SLRBX.js +0 -48
- package/dist/query-RUPNLIQ3.js +0 -50
- package/dist/tools-4AQH5SPV.js +0 -50
- /package/dist/{REPL-VTOYTWZO.js.map → REPL-2MFAZYFR.js.map} +0 -0
- /package/dist/{acp-CWQNH2II.js.map → acp-LDGRB36V.js.map} +0 -0
- /package/dist/{agentsValidate-FGVVKC63.js.map → agentsValidate-3ZT5L4GI.js.map} +0 -0
- /package/dist/{ask-MOPFMF4B.js.map → ask-KQZCP45I.js.map} +0 -0
- /package/dist/{autoUpdater-HTFQKUXF.js.map → autoUpdater-MBMXCVBD.js.map} +0 -0
- /package/dist/{chunk-XOYKHGAF.js.map → chunk-4KVOFH2S.js.map} +0 -0
- /package/dist/{chunk-U3TQE6W4.js.map → chunk-5OS4UGYK.js.map} +0 -0
- /package/dist/{chunk-WLN72Y7V.js.map → chunk-63LP4JE6.js.map} +0 -0
- /package/dist/{chunk-ECH6PXZY.js.map → chunk-7CIDTUWO.js.map} +0 -0
- /package/dist/{chunk-57BHH3W5.js.map → chunk-BAM5Z6EA.js.map} +0 -0
- /package/dist/{chunk-Q3D7WN3G.js.map → chunk-ELPWSR2W.js.map} +0 -0
- /package/dist/{chunk-VZRUNBV3.js.map → chunk-EYJQMII5.js.map} +0 -0
- /package/dist/{chunk-EIBT7GQZ.js.map → chunk-F3JJJLFB.js.map} +0 -0
- /package/dist/{chunk-MVJJQBVH.js.map → chunk-GPSOYNIA.js.map} +0 -0
- /package/dist/{chunk-HRDPWCKT.js.map → chunk-H5ECL2W2.js.map} +0 -0
- /package/dist/{chunk-7UICXYJS.js.map → chunk-JWSFVBQB.js.map} +0 -0
- /package/dist/{chunk-5BPPWTCJ.js.map → chunk-KIYCTSKZ.js.map} +0 -0
- /package/dist/{chunk-PSBWVZPN.js.map → chunk-KJXBKZD4.js.map} +0 -0
- /package/dist/{chunk-T5GIWN7S.js.map → chunk-L2H76Z4W.js.map} +0 -0
- /package/dist/{chunk-KMPPSY2Z.js.map → chunk-LEKWRXMF.js.map} +0 -0
- /package/dist/{chunk-QTQCEBIV.js.map → chunk-MCXQN7QX.js.map} +0 -0
- /package/dist/{chunk-VIUTGN2F.js.map → chunk-MY5O5CHS.js.map} +0 -0
- /package/dist/{chunk-HSSGGDD2.js.map → chunk-NOMIQFQT.js.map} +0 -0
- /package/dist/{chunk-532W4BJ3.js.map → chunk-R2MM2EIA.js.map} +0 -0
- /package/dist/{chunk-FHEQDZRB.js.map → chunk-SBSGYOBY.js.map} +0 -0
- /package/dist/{chunk-W3YS3X57.js.map → chunk-TASZ4WRS.js.map} +0 -0
- /package/dist/{chunk-SMCZRQJV.js.map → chunk-TVCYEIR2.js.map} +0 -0
- /package/dist/{chunk-PEOJ6LDD.js.map → chunk-XK233DN5.js.map} +0 -0
- /package/dist/{chunk-JXRPZGOC.js.map → chunk-YKU5MMJL.js.map} +0 -0
- /package/dist/{chunk-JHXCHM5Q.js.map → chunk-ZPGEVS4A.js.map} +0 -0
- /package/dist/{cli-BNOJSNP2.js.map → cli-6L5TC5QS.js.map} +0 -0
- /package/dist/{commands-KQCRS22Y.js.map → commands-HSCVSRUN.js.map} +0 -0
- /package/dist/{config-ZIW6AAQL.js.map → config-YG2PMDJU.js.map} +0 -0
- /package/dist/{context-UCBJTMS5.js.map → context-U3BVAD76.js.map} +0 -0
- /package/dist/{customCommands-V7LDPAT2.js.map → customCommands-U2VHRRHF.js.map} +0 -0
- /package/dist/{env-X3HL4RVH.js.map → env-H5WODPX3.js.map} +0 -0
- /package/dist/{llm-T676E6BX.js.map → llm-CGDOSTGR.js.map} +0 -0
- /package/dist/{llmLazy-3PIEQNLH.js.map → llmLazy-I5FNZYU5.js.map} +0 -0
- /package/dist/{loader-WWOD6PB2.js.map → loader-CVQIK26G.js.map} +0 -0
- /package/dist/{lspAnchor-7FE6YMQS.js.map → lspAnchor-IJEAL6DF.js.map} +0 -0
- /package/dist/{manager-TA4MQO75.js.map → manager-UK5TEREN.js.map} +0 -0
- /package/dist/{mcp-EMJWLTY7.js.map → mcp-LGKV3XX4.js.map} +0 -0
- /package/dist/{mentionProcessor-2OUOEDP4.js.map → mentionProcessor-MDTHENKV.js.map} +0 -0
- /package/dist/{messages-GOBO5PGY.js.map → messages-CQJMJWGJ.js.map} +0 -0
- /package/dist/{model-AJSTP72F.js.map → model-UBVT2YA3.js.map} +0 -0
- /package/dist/{openai-MUTRLEJU.js.map → openai-C4EX52QG.js.map} +0 -0
- /package/dist/{outputStyles-OVBLOAO6.js.map → outputStyles-OPCESLH3.js.map} +0 -0
- /package/dist/{pluginRuntime-VGXEK3UY.js.map → pluginRuntime-4GQ5X6NW.js.map} +0 -0
- /package/dist/{pluginValidation-ATN4W7VM.js.map → pluginValidation-ORKYLE35.js.map} +0 -0
- /package/dist/{prompts-4F2SLRBX.js.map → prompts-56KCWZNZ.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-XEQRVAVW.js.map → pybAgentSessionLoad-UEX26O72.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-VWSPEOSQ.js.map → pybAgentSessionResume-HQWFSAOI.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-NYAFMNE6.js.map → pybAgentStreamJsonSession-NTMBJMX6.js.map} +0 -0
- /package/dist/{pybHooks-GSPWBM27.js.map → pybHooks-3COODNSS.js.map} +0 -0
- /package/dist/{query-RUPNLIQ3.js.map → query-BJAUI2E7.js.map} +0 -0
- /package/dist/{ripgrep-KXZPC6ET.js.map → ripgrep-XCQYUJT5.js.map} +0 -0
- /package/dist/{skillMarketplace-4A53GWPK.js.map → skillMarketplace-OA7ZO7CJ.js.map} +0 -0
- /package/dist/{state-KACQRKFD.js.map → state-BNESSPEK.js.map} +0 -0
- /package/dist/{theme-W3WTSKVH.js.map → theme-ZIUQDRA3.js.map} +0 -0
- /package/dist/{toolPermissionSettings-IIVUD4Q6.js.map → toolPermissionSettings-6ANKW5RJ.js.map} +0 -0
- /package/dist/{tools-4AQH5SPV.js.map → tools-4TTMZ6SJ.js.map} +0 -0
- /package/dist/{userInput-K5HTLZ64.js.map → userInput-NHATC6JJ.js.map} +0 -0
|
@@ -2,24 +2,24 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadPybAgentSessionMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOMIQFQT.js";
|
|
6
6
|
import {
|
|
7
7
|
listPybAgentSessions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MY5O5CHS.js";
|
|
9
9
|
import {
|
|
10
10
|
appendSessionCustomTitleRecord,
|
|
11
11
|
appendSessionJsonlFromMessage,
|
|
12
12
|
appendSessionTagRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JWSFVBQB.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchCustomModels,
|
|
16
16
|
getModelFeatures
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LEKWRXMF.js";
|
|
18
18
|
import {
|
|
19
19
|
queryLLM,
|
|
20
20
|
queryQuick,
|
|
21
21
|
verifyApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BAM5Z6EA.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TIMEOUT_MS,
|
|
25
25
|
FallbackToolUseRejectedMessage,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
listMCPServers,
|
|
34
34
|
loadMergedSettings,
|
|
35
35
|
normalizeSandboxRuntimeConfigFromSettings
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MCXQN7QX.js";
|
|
37
37
|
import {
|
|
38
38
|
formatValidationResult,
|
|
39
39
|
validatePluginOrMarketplacePath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YKU5MMJL.js";
|
|
41
41
|
import {
|
|
42
42
|
addMarketplace,
|
|
43
43
|
disableSkillPlugin,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
refreshMarketplaceAsync,
|
|
51
51
|
removeMarketplace,
|
|
52
52
|
uninstallSkillPlugin
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4KVOFH2S.js";
|
|
54
54
|
import {
|
|
55
55
|
emitReminderEvent,
|
|
56
56
|
generateSystemReminders,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resetReminderSession,
|
|
60
60
|
setTodos,
|
|
61
61
|
systemReminderService
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-XK233DN5.js";
|
|
63
63
|
import {
|
|
64
64
|
getSessionState
|
|
65
65
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
getActiveAgents,
|
|
69
69
|
getAgentByType,
|
|
70
70
|
getAllAgents
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-H5ECL2W2.js";
|
|
72
72
|
import {
|
|
73
73
|
API_ERROR_MESSAGE_PREFIX,
|
|
74
74
|
CANCEL_MESSAGE,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
processUserInput,
|
|
99
99
|
reorderMessages,
|
|
100
100
|
stripSystemMessages
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-5OS4UGYK.js";
|
|
102
102
|
import {
|
|
103
103
|
getRequestStatus,
|
|
104
104
|
setRequestStatus,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
runStopHooks,
|
|
116
116
|
runUserPromptSubmitHooks,
|
|
117
117
|
updateHookTranscriptForMessages
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-SBSGYOBY.js";
|
|
119
119
|
import {
|
|
120
120
|
getPybAgentSessionId,
|
|
121
121
|
setPybAgentSessionId
|
|
@@ -128,29 +128,29 @@ import {
|
|
|
128
128
|
getOutputStyleSystemPromptAdditions,
|
|
129
129
|
resolveOutputStyleName,
|
|
130
130
|
setCurrentOutputStyle
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-ELPWSR2W.js";
|
|
132
132
|
import {
|
|
133
133
|
listAllContentFiles,
|
|
134
134
|
ripGrep,
|
|
135
135
|
tree
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-ZPGEVS4A.js";
|
|
137
137
|
import {
|
|
138
138
|
getCustomCommandDirectories,
|
|
139
139
|
hasCustomCommands,
|
|
140
140
|
loadCustomCommands,
|
|
141
141
|
reloadCustomCommands
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-7CIDTUWO.js";
|
|
143
143
|
import {
|
|
144
144
|
getSessionPlugins
|
|
145
145
|
} from "./chunk-BJSWTHRM.js";
|
|
146
146
|
import {
|
|
147
147
|
loadToolPermissionContextFromDisk,
|
|
148
148
|
persistToolPermissionUpdateToDisk
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-TVCYEIR2.js";
|
|
150
150
|
import {
|
|
151
151
|
getSettingsFileCandidates,
|
|
152
152
|
loadSettingsWithLegacyFallback
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-F3JJJLFB.js";
|
|
154
154
|
import {
|
|
155
155
|
applyToolPermissionContextUpdate,
|
|
156
156
|
createDefaultToolPermissionContext
|
|
@@ -159,17 +159,17 @@ import {
|
|
|
159
159
|
ModelManager,
|
|
160
160
|
getModelManager,
|
|
161
161
|
isDefaultSlowAndCapableModel
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-TASZ4WRS.js";
|
|
163
163
|
import {
|
|
164
164
|
getCodeStyle,
|
|
165
165
|
getContext,
|
|
166
166
|
getGitState,
|
|
167
167
|
getIsGit,
|
|
168
168
|
getProjectDocs
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-R2MM2EIA.js";
|
|
170
170
|
import {
|
|
171
171
|
getTheme
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-GPSOYNIA.js";
|
|
173
173
|
import {
|
|
174
174
|
DEFAULT_GLOBAL_CONFIG,
|
|
175
175
|
enableConfigs,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
saveGlobalConfig,
|
|
183
183
|
setAllPointersToModel,
|
|
184
184
|
setModelPointer
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-63LP4JE6.js";
|
|
186
186
|
import {
|
|
187
187
|
AbortError
|
|
188
188
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
getCurrentRequest,
|
|
192
192
|
logUserFriendly,
|
|
193
193
|
markPhase
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-KIYCTSKZ.js";
|
|
195
195
|
import {
|
|
196
196
|
ASCII_LOGO,
|
|
197
197
|
BunShell,
|
|
@@ -227,10 +227,10 @@ import {
|
|
|
227
227
|
renderBashNotification,
|
|
228
228
|
setActivePlanConversationKey,
|
|
229
229
|
setCwd
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-KJXBKZD4.js";
|
|
231
231
|
import {
|
|
232
232
|
MACRO
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-3X643DPY.js";
|
|
234
234
|
import {
|
|
235
235
|
formatTotalCost,
|
|
236
236
|
getTotalAPIDuration,
|
|
@@ -418,7 +418,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
418
418
|
var getCommandPrefix = memoize(
|
|
419
419
|
async (command4, abortSignal) => {
|
|
420
420
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
421
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
421
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-CGDOSTGR.js");
|
|
422
422
|
const response = await queryQuick2({
|
|
423
423
|
systemPrompt,
|
|
424
424
|
userPrompt,
|
|
@@ -510,7 +510,7 @@ import {
|
|
|
510
510
|
sep,
|
|
511
511
|
basename,
|
|
512
512
|
dirname,
|
|
513
|
-
extname,
|
|
513
|
+
extname as extname2,
|
|
514
514
|
join
|
|
515
515
|
} from "path";
|
|
516
516
|
import { cwd } from "process";
|
|
@@ -685,13 +685,13 @@ function getAbsoluteAndRelativePaths(path7) {
|
|
|
685
685
|
function findSimilarFile(filePath) {
|
|
686
686
|
try {
|
|
687
687
|
const dir = dirname(filePath);
|
|
688
|
-
const fileBaseName = basename(filePath,
|
|
688
|
+
const fileBaseName = basename(filePath, extname2(filePath));
|
|
689
689
|
if (!existsSync(dir)) {
|
|
690
690
|
return void 0;
|
|
691
691
|
}
|
|
692
692
|
const files = readdirSync(dir);
|
|
693
693
|
const similarFiles = files.filter(
|
|
694
|
-
(file) => basename(file,
|
|
694
|
+
(file) => basename(file, extname2(file)) === fileBaseName && join(dir, file) !== filePath
|
|
695
695
|
);
|
|
696
696
|
const firstMatch = similarFiles[0];
|
|
697
697
|
if (firstMatch) {
|
|
@@ -4458,7 +4458,7 @@ function formatParseError(error) {
|
|
|
4458
4458
|
return error instanceof Error ? error.message : String(error);
|
|
4459
4459
|
}
|
|
4460
4460
|
async function defaultGateQuery(args) {
|
|
4461
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4461
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-CGDOSTGR.js");
|
|
4462
4462
|
const messages = [
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "user",
|
|
@@ -6131,7 +6131,7 @@ var startWatchingTodoFile = (agentId) => fileFreshnessService.startWatchingTodoF
|
|
|
6131
6131
|
// src/tools/filesystem/NotebookEditTool/NotebookEditTool.tsx
|
|
6132
6132
|
import { Box as Box10, Text as Text11 } from "ink";
|
|
6133
6133
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
6134
|
-
import { extname as
|
|
6134
|
+
import { extname as extname3, isAbsolute as isAbsolute3, relative as relative4, resolve as resolve3 } from "path";
|
|
6135
6135
|
import * as React11 from "react";
|
|
6136
6136
|
import { z as z2 } from "zod";
|
|
6137
6137
|
|
|
@@ -6337,7 +6337,7 @@ var NotebookEditTool = {
|
|
|
6337
6337
|
message: "Notebook file does not exist."
|
|
6338
6338
|
};
|
|
6339
6339
|
}
|
|
6340
|
-
if (
|
|
6340
|
+
if (extname3(fullPath) !== ".ipynb") {
|
|
6341
6341
|
return {
|
|
6342
6342
|
result: false,
|
|
6343
6343
|
message: "File must be a Jupyter notebook (.ipynb file). For editing other file types, use the FileEdit tool."
|
|
@@ -6703,7 +6703,7 @@ var FileEditTool = {
|
|
|
6703
6703
|
const originalFileContent = currentFileContent;
|
|
6704
6704
|
let totalPatch = [];
|
|
6705
6705
|
const { SmartEdit } = await import("./smart-edit-677MCQMW.js");
|
|
6706
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6706
|
+
const { findLspAnchor } = await import("./lspAnchor-IJEAL6DF.js");
|
|
6707
6707
|
for (const op of editOperations) {
|
|
6708
6708
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6709
6709
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6746,10 +6746,26 @@ ${op.search}`);
|
|
|
6746
6746
|
const endings = fileExistsBun(fullFilePath) ? detectLineEndings(fullFilePath) : "LF";
|
|
6747
6747
|
writeTextContent(fullFilePath, updatedFile, enc, endings);
|
|
6748
6748
|
if (verify) {
|
|
6749
|
-
const { LspClientManager } = await import("./manager-
|
|
6749
|
+
const { LspClientManager } = await import("./manager-UK5TEREN.js");
|
|
6750
6750
|
const client = await LspClientManager.getInstance().getClient(fullFilePath, getCwd());
|
|
6751
6751
|
if (client) {
|
|
6752
|
-
|
|
6752
|
+
const ext = extname(fullFilePath);
|
|
6753
|
+
const langMap = {
|
|
6754
|
+
".ts": "typescript",
|
|
6755
|
+
".tsx": "typescriptreact",
|
|
6756
|
+
".js": "javascript",
|
|
6757
|
+
".jsx": "javascriptreact",
|
|
6758
|
+
".py": "python",
|
|
6759
|
+
".java": "java",
|
|
6760
|
+
".cs": "csharp",
|
|
6761
|
+
".cpp": "cpp",
|
|
6762
|
+
".c": "c",
|
|
6763
|
+
".rs": "rust",
|
|
6764
|
+
".go": "go"
|
|
6765
|
+
};
|
|
6766
|
+
const languageId = langMap[ext] || "plaintext";
|
|
6767
|
+
await client.didOpen(fullFilePath, updatedFile, languageId);
|
|
6768
|
+
await client.waitForReadiness(fullFilePath, 3e3);
|
|
6753
6769
|
const diagnostics = client.getDiagnostics(fullFilePath);
|
|
6754
6770
|
const errors = diagnostics.filter((d) => d.severity === 1);
|
|
6755
6771
|
if (errors.length > 0) {
|
|
@@ -6799,7 +6815,7 @@ First error: ${errors[0].message}`);
|
|
|
6799
6815
|
import { statSync as statSync6 } from "fs";
|
|
6800
6816
|
import { Box as Box12, Text as Text13 } from "ink";
|
|
6801
6817
|
import * as path6 from "node:path";
|
|
6802
|
-
import { extname as
|
|
6818
|
+
import { extname as extname6, relative as relative7 } from "node:path";
|
|
6803
6819
|
import * as React13 from "react";
|
|
6804
6820
|
import { z as z4 } from "zod";
|
|
6805
6821
|
|
|
@@ -6842,7 +6858,7 @@ import {
|
|
|
6842
6858
|
dirname as dirname4,
|
|
6843
6859
|
normalize as normalize2,
|
|
6844
6860
|
resolve as resolve5,
|
|
6845
|
-
extname as
|
|
6861
|
+
extname as extname4,
|
|
6846
6862
|
relative as relative6,
|
|
6847
6863
|
isAbsolute as isAbsolute5
|
|
6848
6864
|
} from "node:path";
|
|
@@ -6951,7 +6967,7 @@ var SecureFileService = class _SecureFileService {
|
|
|
6951
6967
|
try {
|
|
6952
6968
|
const normalizedPath = validation.normalizedPath;
|
|
6953
6969
|
if (options.checkFileExtension !== false) {
|
|
6954
|
-
const ext =
|
|
6970
|
+
const ext = extname4(normalizedPath).toLowerCase();
|
|
6955
6971
|
const allowedExts = options.allowedExtensions || Array.from(this.allowedExtensions);
|
|
6956
6972
|
if (allowedExts.length > 0 && !allowedExts.includes(ext)) {
|
|
6957
6973
|
return {
|
|
@@ -7005,7 +7021,7 @@ var SecureFileService = class _SecureFileService {
|
|
|
7005
7021
|
try {
|
|
7006
7022
|
const normalizedPath = validation.normalizedPath;
|
|
7007
7023
|
if (options.checkFileExtension !== false) {
|
|
7008
|
-
const ext =
|
|
7024
|
+
const ext = extname4(normalizedPath).toLowerCase();
|
|
7009
7025
|
const allowedExts = options.allowedExtensions || Array.from(this.allowedExtensions);
|
|
7010
7026
|
if (allowedExts.length > 0 && !allowedExts.includes(ext)) {
|
|
7011
7027
|
return {
|
|
@@ -7584,7 +7600,7 @@ var FileReadTool = {
|
|
|
7584
7600
|
HighlightedCode,
|
|
7585
7601
|
{
|
|
7586
7602
|
code: verbose ? contentWithFallback : contentWithFallback.split("\n").slice(0, MAX_LINES_TO_RENDER).filter((_) => _.trim() !== "").join("\n"),
|
|
7587
|
-
language:
|
|
7603
|
+
language: extname6(filePath).slice(1)
|
|
7588
7604
|
}
|
|
7589
7605
|
), !verbose && numLines > MAX_LINES_TO_RENDER && /* @__PURE__ */ React13.createElement(Text13, { color: getTheme().secondaryText }, "... (+", numLines - MAX_LINES_TO_RENDER, " lines)"))));
|
|
7590
7606
|
}
|
|
@@ -7641,7 +7657,7 @@ var FileReadTool = {
|
|
|
7641
7657
|
let finalLimit = limit;
|
|
7642
7658
|
if (symbol_name) {
|
|
7643
7659
|
try {
|
|
7644
|
-
const { LspClientManager } = await import("./manager-
|
|
7660
|
+
const { LspClientManager } = await import("./manager-UK5TEREN.js");
|
|
7645
7661
|
const manager = LspClientManager.getInstance();
|
|
7646
7662
|
const symbols = await manager.documentSymbol(fullFilePath, getCwd());
|
|
7647
7663
|
if (!symbols || symbols.length === 0) {
|
|
@@ -7901,7 +7917,7 @@ async function readImage(filePath, ext) {
|
|
|
7901
7917
|
import { mkdirSync as mkdirSync4, readFileSync as readFileSync4, statSync as statSync7 } from "fs";
|
|
7902
7918
|
import { Box as Box13, Text as Text14 } from "ink";
|
|
7903
7919
|
import { EOL } from "os";
|
|
7904
|
-
import { dirname as dirname5, extname as
|
|
7920
|
+
import { dirname as dirname5, extname as extname7, isAbsolute as isAbsolute6, relative as relative8, resolve as resolve6 } from "path";
|
|
7905
7921
|
import * as React14 from "react";
|
|
7906
7922
|
import { z as z5 } from "zod";
|
|
7907
7923
|
|
|
@@ -7985,7 +8001,7 @@ var FileWriteTool = {
|
|
|
7985
8001
|
HighlightedCode,
|
|
7986
8002
|
{
|
|
7987
8003
|
code: verbose ? contentWithFallback : contentWithFallback.split("\n").slice(0, MAX_LINES_TO_RENDER2).filter((_) => _.trim() !== "").join("\n"),
|
|
7988
|
-
language:
|
|
8004
|
+
language: extname7(filePath).slice(1)
|
|
7989
8005
|
}
|
|
7990
8006
|
), !verbose && numLines > MAX_LINES_TO_RENDER2 && /* @__PURE__ */ React14.createElement(Text14, { color: getTheme().secondaryText }, "... (+", numLines - MAX_LINES_TO_RENDER2, " lines)")));
|
|
7991
8007
|
}
|
|
@@ -8209,7 +8225,7 @@ var GlobTool = {
|
|
|
8209
8225
|
let files = raw.map((p) => isAbsolute7(p) ? p : join5(searchPath, p));
|
|
8210
8226
|
if (semantic) {
|
|
8211
8227
|
try {
|
|
8212
|
-
const { LspClientManager } = await import("./manager-
|
|
8228
|
+
const { LspClientManager } = await import("./manager-UK5TEREN.js");
|
|
8213
8229
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(pattern, searchPath);
|
|
8214
8230
|
const semanticFiles = symbols.map((s) => {
|
|
8215
8231
|
let filePath = s.location?.uri || "";
|
|
@@ -8521,7 +8537,7 @@ ${result.filenames.join("\n")}`;
|
|
|
8521
8537
|
});
|
|
8522
8538
|
if (lines.length === 0 && semantic) {
|
|
8523
8539
|
try {
|
|
8524
|
-
const { LspClientManager } = await import("./manager-
|
|
8540
|
+
const { LspClientManager } = await import("./manager-UK5TEREN.js");
|
|
8525
8541
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(String(pattern));
|
|
8526
8542
|
let filtered = symbols;
|
|
8527
8543
|
const symbolType = symbol_type;
|
|
@@ -11344,7 +11360,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11344
11360
|
}
|
|
11345
11361
|
saveGlobalConfig(config2);
|
|
11346
11362
|
try {
|
|
11347
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11363
|
+
const { resetAnthropicClient } = await import("./llm-CGDOSTGR.js");
|
|
11348
11364
|
resetAnthropicClient();
|
|
11349
11365
|
} catch {
|
|
11350
11366
|
}
|
|
@@ -15626,7 +15642,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15626
15642
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15627
15643
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15628
15644
|
if (dirs.length === 0) return [];
|
|
15629
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15645
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-4GQ5X6NW.js");
|
|
15630
15646
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15631
15647
|
return errors;
|
|
15632
15648
|
}
|
|
@@ -16295,7 +16311,7 @@ async function call(onDone, context) {
|
|
|
16295
16311
|
ModelConfig,
|
|
16296
16312
|
{
|
|
16297
16313
|
onClose: () => {
|
|
16298
|
-
import("./model-
|
|
16314
|
+
import("./model-UBVT2YA3.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16299
16315
|
reloadModelManager2();
|
|
16300
16316
|
triggerModelConfigChange();
|
|
16301
16317
|
onDone();
|
|
@@ -18247,7 +18263,7 @@ import * as React90 from "react";
|
|
|
18247
18263
|
// src/ui/components/permissions/file-edit-permission-request/FileEditPermissionRequest.tsx
|
|
18248
18264
|
import chalk7 from "chalk";
|
|
18249
18265
|
import { Box as Box56, Text as Text61, useInput as useInput19 } from "ink";
|
|
18250
|
-
import { basename as basename2, dirname as dirname6, extname as
|
|
18266
|
+
import { basename as basename2, dirname as dirname6, extname as extname8 } from "path";
|
|
18251
18267
|
import React75, { useCallback as useCallback8, useMemo as useMemo13 } from "react";
|
|
18252
18268
|
|
|
18253
18269
|
// src/ui/hooks/usePermissionRequestLogging.ts
|
|
@@ -18570,7 +18586,7 @@ function FileEditPermissionRequest({
|
|
|
18570
18586
|
);
|
|
18571
18587
|
}
|
|
18572
18588
|
async function extractLanguageName(file_path) {
|
|
18573
|
-
const ext =
|
|
18589
|
+
const ext = extname8(file_path);
|
|
18574
18590
|
if (!ext) {
|
|
18575
18591
|
return "unknown";
|
|
18576
18592
|
}
|
|
@@ -18931,7 +18947,7 @@ function useNotifyAfterTimeout(message, timeout = DEFAULT_INTERACTION_THRESHOLD_
|
|
|
18931
18947
|
// src/ui/components/permissions/file-write-permission-request/FileWritePermissionRequest.tsx
|
|
18932
18948
|
import { Box as Box60, Text as Text65, useInput as useInput20 } from "ink";
|
|
18933
18949
|
import React79, { useCallback as useCallback9, useMemo as useMemo17 } from "react";
|
|
18934
|
-
import { basename as basename3, dirname as dirname7, extname as
|
|
18950
|
+
import { basename as basename3, dirname as dirname7, extname as extname10 } from "path";
|
|
18935
18951
|
import { existsSync as existsSync12 } from "fs";
|
|
18936
18952
|
import chalk10 from "chalk";
|
|
18937
18953
|
|
|
@@ -18940,7 +18956,7 @@ import * as React78 from "react";
|
|
|
18940
18956
|
import { existsSync as existsSync11, readFileSync as readFileSync8 } from "fs";
|
|
18941
18957
|
import { useMemo as useMemo16 } from "react";
|
|
18942
18958
|
import { Box as Box59, Text as Text64 } from "ink";
|
|
18943
|
-
import { extname as
|
|
18959
|
+
import { extname as extname9, relative as relative12 } from "path";
|
|
18944
18960
|
function FileWriteToolDiff({
|
|
18945
18961
|
file_path,
|
|
18946
18962
|
content,
|
|
@@ -18990,7 +19006,7 @@ function FileWriteToolDiff({
|
|
|
18990
19006
|
HighlightedCode,
|
|
18991
19007
|
{
|
|
18992
19008
|
code: content || "(No content)",
|
|
18993
|
-
language:
|
|
19009
|
+
language: extname9(file_path).slice(1)
|
|
18994
19010
|
}
|
|
18995
19011
|
)
|
|
18996
19012
|
);
|
|
@@ -19151,7 +19167,7 @@ function FileWritePermissionRequest({
|
|
|
19151
19167
|
);
|
|
19152
19168
|
}
|
|
19153
19169
|
async function extractLanguageName2(file_path) {
|
|
19154
|
-
const ext =
|
|
19170
|
+
const ext = extname10(file_path);
|
|
19155
19171
|
if (!ext) {
|
|
19156
19172
|
return "unknown";
|
|
19157
19173
|
}
|
|
@@ -23554,7 +23570,7 @@ function useStatusLine() {
|
|
|
23554
23570
|
// src/ui/components/PromptInput.tsx
|
|
23555
23571
|
async function interpretHashCommand(input) {
|
|
23556
23572
|
try {
|
|
23557
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23573
|
+
const { queryQuick: queryQuick2 } = await import("./llm-CGDOSTGR.js");
|
|
23558
23574
|
const systemPrompt = [
|
|
23559
23575
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23560
23576
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23867,7 +23883,7 @@ function PromptInput({
|
|
|
23867
23883
|
if (messages2.length) {
|
|
23868
23884
|
if (mode === "bash") {
|
|
23869
23885
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23870
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23886
|
+
const { getCwd: getCwd2 } = await import("./state-BNESSPEK.js");
|
|
23871
23887
|
setCurrentPwd(getCwd2());
|
|
23872
23888
|
});
|
|
23873
23889
|
} else {
|
|
@@ -26653,7 +26669,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26653
26669
|
// src/commands/agents/generation.ts
|
|
26654
26670
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26655
26671
|
async function generateAgentWithClaude(prompt) {
|
|
26656
|
-
const { queryModel } = await import("./llm-
|
|
26672
|
+
const { queryModel } = await import("./llm-CGDOSTGR.js");
|
|
26657
26673
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26658
26674
|
|
|
26659
26675
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -30761,6 +30777,8 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
30761
30777
|
|
|
30762
30778
|
# Cognitive Search Strategy
|
|
30763
30779
|
1. **Concept Search**: WHEN searching for high-level concepts (e.g., "Auth Logic", "Payment Flow") OR when you are uncertain about exact naming, you MUST use \`semantic: true\` in Grep/Glob tools. This activates the LSP Workspace Symbol search which is resilient to typos and fuzzy matches.
|
|
30780
|
+
- Example: \`GrepTool(pattern: "AuthFeatr", semantic: true)\` will find "AuthFeature".
|
|
30781
|
+
- Example: \`GlobTool(pattern: "tests", semantic: true)\` will find test files based on project structure.
|
|
30764
30782
|
2. **Exact Identifier**: WHEN you know the precise class/function name (e.g., "UserProfile", "initDatabase"), use standard Grep/Glob without \`semantic\` flag.
|
|
30765
30783
|
3. **Exploration**: If standard search returns 0 results, AUTOMATICALLY retry with \`semantic: true\`.
|
|
30766
30784
|
|