pybao-cli 1.4.71 → 1.4.73
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-AMXLYPJP.js +46 -0
- package/dist/{acp-T6JKJQJI.js → acp-YHT3WYR6.js} +29 -29
- package/dist/{agentsValidate-QHEYO4W6.js → agentsValidate-XWHKNXPV.js} +7 -7
- package/dist/{ask-6LDFBI2L.js → ask-Z2UV6QA2.js} +28 -28
- package/dist/{autoUpdater-DVFA5YGJ.js → autoUpdater-TMF44IV3.js} +3 -3
- package/dist/{chunk-C2QEC2WW.js → chunk-2W4PU5LB.js} +2 -2
- package/dist/{chunk-3H2HHONF.js → chunk-32YS6WN2.js} +3 -3
- package/dist/{chunk-LFCYSGAR.js → chunk-3E2SSZB7.js} +2 -2
- package/dist/{chunk-FOUUD4B2.js → chunk-3Q5F4OUI.js} +1 -1
- package/dist/{chunk-YW3JRDKC.js → chunk-7RQGIDZS.js} +2 -2
- package/dist/{chunk-PFJFNYP3.js → chunk-BHLOSRIV.js} +4 -4
- package/dist/{chunk-XIENJJXV.js → chunk-BNE3CU3H.js} +1 -1
- package/dist/{chunk-FYKSQF4U.js → chunk-CXQVXTMI.js} +4 -4
- package/dist/{chunk-U7VC56BV.js → chunk-DDLCPDRH.js} +2 -2
- package/dist/{chunk-ZMXO7HNE.js → chunk-E7OJV6QN.js} +3 -3
- package/dist/{chunk-HLOXMRJD.js → chunk-E7QS33NG.js} +2 -2
- package/dist/{chunk-NMB3QPVX.js → chunk-EKQKQKN7.js} +3 -3
- package/dist/{chunk-ZZ4UCMK3.js → chunk-F2A7SL7F.js} +1 -1
- package/dist/{chunk-ZZ4UCMK3.js.map → chunk-F2A7SL7F.js.map} +1 -1
- package/dist/{chunk-LT6JAWAC.js → chunk-FXIMBVZA.js} +3 -3
- package/dist/{chunk-G5WRQKSI.js → chunk-G7SKFCQY.js} +1 -1
- package/dist/{chunk-A57NMIE3.js → chunk-HQ6SVOPG.js} +1 -1
- package/dist/{chunk-DVXSSRNG.js → chunk-JGTEN44K.js} +1 -1
- package/dist/{chunk-C3LQRL2S.js → chunk-NPJBVZZ7.js} +1 -1
- package/dist/{chunk-CLDL6J3P.js → chunk-PHYOFWZE.js} +49 -48
- package/dist/{chunk-CLDL6J3P.js.map → chunk-PHYOFWZE.js.map} +2 -2
- package/dist/{chunk-LHDMNFRT.js → chunk-RI7KB2J4.js} +3 -3
- package/dist/{chunk-YOWX4XGD.js → chunk-SHMVJ4IW.js} +1 -1
- package/dist/{chunk-ROW7NECX.js → chunk-SIH4IGN7.js} +2 -2
- package/dist/{chunk-Y5CTBHWH.js → chunk-TFSX7MTJ.js} +3 -3
- package/dist/{chunk-S4P3W6NT.js → chunk-UVIRSCWD.js} +4 -4
- package/dist/{chunk-7AC6H4PQ.js → chunk-VHWPECJP.js} +1 -1
- package/dist/{chunk-B4S4GDMH.js → chunk-WQR737J4.js} +1 -1
- package/dist/{chunk-VUJWUOLO.js → chunk-WTYCHKIY.js} +4 -4
- package/dist/{chunk-GP2GRGVO.js → chunk-WVDK4LXO.js} +16 -16
- package/dist/{chunk-YUZO4WC2.js → chunk-ZT6XN5WB.js} +3 -3
- package/dist/{chunk-RAUNEDWJ.js → chunk-ZXNJ62WU.js} +2 -2
- package/dist/{cli-QHQUIZAI.js → cli-HR6HTUYW.js} +87 -87
- package/dist/commands-MZCSUZUW.js +50 -0
- package/dist/{config-4LWZQOQF.js → config-DAMFM7EH.js} +4 -4
- package/dist/{context-4CMVEBBO.js → context-6RG46SPP.js} +6 -6
- package/dist/{customCommands-ISZAIGNK.js → customCommands-H2QBK44G.js} +4 -4
- package/dist/{env-MDQ7LYO6.js → env-YT3FZNAS.js} +2 -2
- package/dist/{file-PZMWD2ZO.js → file-VOA7AF7B.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-7247RMLI.js → llm-3NHC22VK.js} +29 -29
- package/dist/{llmLazy-426IUQCR.js → llmLazy-6VIID66N.js} +1 -1
- package/dist/{loader-U4DDYYT7.js → loader-EEVSF7SI.js} +4 -4
- package/dist/{lsp-26KU2DTI.js → lsp-UZ77VCEB.js} +6 -6
- package/dist/{lspAnchor-Q5KR25WY.js → lspAnchor-PQWKR4HW.js} +6 -6
- package/dist/{mcp-4JRBMGPN.js → mcp-RETVF4ZI.js} +7 -7
- package/dist/{mentionProcessor-C4VPFI65.js → mentionProcessor-K7Y4MNSM.js} +5 -5
- package/dist/{messages-TB5J2E5U.js → messages-Y447K4GA.js} +1 -1
- package/dist/{model-IQOPHWHX.js → model-LI7LTOD2.js} +5 -5
- package/dist/{openai-RE5N3Q6J.js → openai-P6KN32LM.js} +5 -5
- package/dist/{outputStyles-K7SNX55T.js → outputStyles-D7BAB3LV.js} +4 -4
- package/dist/{pluginRuntime-K75PU36Q.js → pluginRuntime-ESYI3LF2.js} +6 -6
- package/dist/{pluginValidation-A552D46U.js → pluginValidation-HXJ36PVU.js} +6 -6
- package/dist/prompts-TBBOASPW.js +52 -0
- package/dist/{pybAgentSessionLoad-AI2T3WDO.js → pybAgentSessionLoad-35LWV3PO.js} +4 -4
- package/dist/{pybAgentSessionResume-AHA35EF4.js → pybAgentSessionResume-XXGQMCDY.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-UL457A3R.js → pybAgentStreamJsonSession-OSD6QCO3.js} +1 -1
- package/dist/{pybHooks-MC5OENV2.js → pybHooks-V6ZEVAIP.js} +4 -4
- package/dist/query-2YNWNMEP.js +54 -0
- package/dist/{registry-ZUCKCAV4.js → registry-QN2RD3OQ.js} +5 -5
- package/dist/{ripgrep-TGIK2EJI.js → ripgrep-5ADOVGXG.js} +3 -3
- package/dist/{skillMarketplace-E6Y6LDZS.js → skillMarketplace-KIIGENMN.js} +3 -3
- package/dist/{state-CULZTJRM.js → state-JO77CSX6.js} +2 -2
- package/dist/{theme-J3RDVEGG.js → theme-WIOLK2X2.js} +5 -5
- package/dist/{toolPermissionSettings-NQIOM3S5.js → toolPermissionSettings-3FRKK44Q.js} +6 -6
- package/dist/tools-WE4P7ZLW.js +51 -0
- package/dist/{userInput-HOX6KYGC.js → userInput-IICDTVUH.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-S4WAUVPN.js +0 -46
- package/dist/commands-7JY7WGZV.js +0 -50
- package/dist/prompts-QOMOINV3.js +0 -52
- package/dist/query-C2TPK6PX.js +0 -54
- package/dist/tools-JMHSLACY.js +0 -51
- /package/dist/{REPL-S4WAUVPN.js.map → REPL-AMXLYPJP.js.map} +0 -0
- /package/dist/{acp-T6JKJQJI.js.map → acp-YHT3WYR6.js.map} +0 -0
- /package/dist/{agentsValidate-QHEYO4W6.js.map → agentsValidate-XWHKNXPV.js.map} +0 -0
- /package/dist/{ask-6LDFBI2L.js.map → ask-Z2UV6QA2.js.map} +0 -0
- /package/dist/{autoUpdater-DVFA5YGJ.js.map → autoUpdater-TMF44IV3.js.map} +0 -0
- /package/dist/{chunk-C2QEC2WW.js.map → chunk-2W4PU5LB.js.map} +0 -0
- /package/dist/{chunk-3H2HHONF.js.map → chunk-32YS6WN2.js.map} +0 -0
- /package/dist/{chunk-LFCYSGAR.js.map → chunk-3E2SSZB7.js.map} +0 -0
- /package/dist/{chunk-FOUUD4B2.js.map → chunk-3Q5F4OUI.js.map} +0 -0
- /package/dist/{chunk-YW3JRDKC.js.map → chunk-7RQGIDZS.js.map} +0 -0
- /package/dist/{chunk-PFJFNYP3.js.map → chunk-BHLOSRIV.js.map} +0 -0
- /package/dist/{chunk-XIENJJXV.js.map → chunk-BNE3CU3H.js.map} +0 -0
- /package/dist/{chunk-FYKSQF4U.js.map → chunk-CXQVXTMI.js.map} +0 -0
- /package/dist/{chunk-U7VC56BV.js.map → chunk-DDLCPDRH.js.map} +0 -0
- /package/dist/{chunk-ZMXO7HNE.js.map → chunk-E7OJV6QN.js.map} +0 -0
- /package/dist/{chunk-HLOXMRJD.js.map → chunk-E7QS33NG.js.map} +0 -0
- /package/dist/{chunk-NMB3QPVX.js.map → chunk-EKQKQKN7.js.map} +0 -0
- /package/dist/{chunk-LT6JAWAC.js.map → chunk-FXIMBVZA.js.map} +0 -0
- /package/dist/{chunk-G5WRQKSI.js.map → chunk-G7SKFCQY.js.map} +0 -0
- /package/dist/{chunk-A57NMIE3.js.map → chunk-HQ6SVOPG.js.map} +0 -0
- /package/dist/{chunk-DVXSSRNG.js.map → chunk-JGTEN44K.js.map} +0 -0
- /package/dist/{chunk-C3LQRL2S.js.map → chunk-NPJBVZZ7.js.map} +0 -0
- /package/dist/{chunk-LHDMNFRT.js.map → chunk-RI7KB2J4.js.map} +0 -0
- /package/dist/{chunk-YOWX4XGD.js.map → chunk-SHMVJ4IW.js.map} +0 -0
- /package/dist/{chunk-ROW7NECX.js.map → chunk-SIH4IGN7.js.map} +0 -0
- /package/dist/{chunk-Y5CTBHWH.js.map → chunk-TFSX7MTJ.js.map} +0 -0
- /package/dist/{chunk-S4P3W6NT.js.map → chunk-UVIRSCWD.js.map} +0 -0
- /package/dist/{chunk-7AC6H4PQ.js.map → chunk-VHWPECJP.js.map} +0 -0
- /package/dist/{chunk-B4S4GDMH.js.map → chunk-WQR737J4.js.map} +0 -0
- /package/dist/{chunk-VUJWUOLO.js.map → chunk-WTYCHKIY.js.map} +0 -0
- /package/dist/{chunk-GP2GRGVO.js.map → chunk-WVDK4LXO.js.map} +0 -0
- /package/dist/{chunk-YUZO4WC2.js.map → chunk-ZT6XN5WB.js.map} +0 -0
- /package/dist/{chunk-RAUNEDWJ.js.map → chunk-ZXNJ62WU.js.map} +0 -0
- /package/dist/{cli-QHQUIZAI.js.map → cli-HR6HTUYW.js.map} +0 -0
- /package/dist/{commands-7JY7WGZV.js.map → commands-MZCSUZUW.js.map} +0 -0
- /package/dist/{config-4LWZQOQF.js.map → config-DAMFM7EH.js.map} +0 -0
- /package/dist/{context-4CMVEBBO.js.map → context-6RG46SPP.js.map} +0 -0
- /package/dist/{customCommands-ISZAIGNK.js.map → customCommands-H2QBK44G.js.map} +0 -0
- /package/dist/{env-MDQ7LYO6.js.map → env-YT3FZNAS.js.map} +0 -0
- /package/dist/{file-PZMWD2ZO.js.map → file-VOA7AF7B.js.map} +0 -0
- /package/dist/{llm-7247RMLI.js.map → llm-3NHC22VK.js.map} +0 -0
- /package/dist/{llmLazy-426IUQCR.js.map → llmLazy-6VIID66N.js.map} +0 -0
- /package/dist/{loader-U4DDYYT7.js.map → loader-EEVSF7SI.js.map} +0 -0
- /package/dist/{lsp-26KU2DTI.js.map → lsp-UZ77VCEB.js.map} +0 -0
- /package/dist/{lspAnchor-Q5KR25WY.js.map → lspAnchor-PQWKR4HW.js.map} +0 -0
- /package/dist/{mcp-4JRBMGPN.js.map → mcp-RETVF4ZI.js.map} +0 -0
- /package/dist/{mentionProcessor-C4VPFI65.js.map → mentionProcessor-K7Y4MNSM.js.map} +0 -0
- /package/dist/{messages-TB5J2E5U.js.map → messages-Y447K4GA.js.map} +0 -0
- /package/dist/{model-IQOPHWHX.js.map → model-LI7LTOD2.js.map} +0 -0
- /package/dist/{openai-RE5N3Q6J.js.map → openai-P6KN32LM.js.map} +0 -0
- /package/dist/{outputStyles-K7SNX55T.js.map → outputStyles-D7BAB3LV.js.map} +0 -0
- /package/dist/{pluginRuntime-K75PU36Q.js.map → pluginRuntime-ESYI3LF2.js.map} +0 -0
- /package/dist/{pluginValidation-A552D46U.js.map → pluginValidation-HXJ36PVU.js.map} +0 -0
- /package/dist/{prompts-QOMOINV3.js.map → prompts-TBBOASPW.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-AI2T3WDO.js.map → pybAgentSessionLoad-35LWV3PO.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-AHA35EF4.js.map → pybAgentSessionResume-XXGQMCDY.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-UL457A3R.js.map → pybAgentStreamJsonSession-OSD6QCO3.js.map} +0 -0
- /package/dist/{pybHooks-MC5OENV2.js.map → pybHooks-V6ZEVAIP.js.map} +0 -0
- /package/dist/{query-C2TPK6PX.js.map → query-2YNWNMEP.js.map} +0 -0
- /package/dist/{registry-ZUCKCAV4.js.map → registry-QN2RD3OQ.js.map} +0 -0
- /package/dist/{ripgrep-TGIK2EJI.js.map → ripgrep-5ADOVGXG.js.map} +0 -0
- /package/dist/{skillMarketplace-E6Y6LDZS.js.map → skillMarketplace-KIIGENMN.js.map} +0 -0
- /package/dist/{state-CULZTJRM.js.map → state-JO77CSX6.js.map} +0 -0
- /package/dist/{theme-J3RDVEGG.js.map → theme-WIOLK2X2.js.map} +0 -0
- /package/dist/{toolPermissionSettings-NQIOM3S5.js.map → toolPermissionSettings-3FRKK44Q.js.map} +0 -0
- /package/dist/{tools-JMHSLACY.js.map → tools-WE4P7ZLW.js.map} +0 -0
- /package/dist/{userInput-HOX6KYGC.js.map → userInput-IICDTVUH.js.map} +0 -0
|
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatValidationResult,
|
|
5
5
|
validatePluginOrMarketplacePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E7OJV6QN.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3Q5F4OUI.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BNE3CU3H.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3E2SSZB7.js";
|
|
18
18
|
import {
|
|
19
19
|
drainHookSystemPromptAdditions,
|
|
20
20
|
getHookTranscriptPath,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runStopHooks,
|
|
27
27
|
runUserPromptSubmitHooks,
|
|
28
28
|
updateHookTranscriptForMessages
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZT6XN5WB.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7RQGIDZS.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures,
|
|
42
42
|
getSessionState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2W4PU5LB.js";
|
|
44
44
|
import {
|
|
45
45
|
queryLLM,
|
|
46
46
|
queryQuick,
|
|
47
47
|
verifyApiKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-UVIRSCWD.js";
|
|
49
49
|
import {
|
|
50
50
|
DEFAULT_TIMEOUT_MS,
|
|
51
51
|
FallbackToolUseRejectedMessage,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
listMCPServers,
|
|
60
60
|
loadMergedSettings,
|
|
61
61
|
normalizeSandboxRuntimeConfigFromSettings
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-WTYCHKIY.js";
|
|
63
63
|
import {
|
|
64
64
|
addMarketplace,
|
|
65
65
|
disableSkillPlugin,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
refreshMarketplaceAsync,
|
|
73
73
|
removeMarketplace,
|
|
74
74
|
uninstallSkillPlugin
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-G7SKFCQY.js";
|
|
76
76
|
import {
|
|
77
77
|
loadToolPermissionContextFromDisk,
|
|
78
78
|
persistToolPermissionUpdateToDisk
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-RI7KB2J4.js";
|
|
80
80
|
import {
|
|
81
81
|
applyToolPermissionContextUpdate,
|
|
82
82
|
applyToolPermissionContextUpdates,
|
|
@@ -87,13 +87,13 @@ import {
|
|
|
87
87
|
generateSystemReminders,
|
|
88
88
|
resetReminderSession,
|
|
89
89
|
systemReminderService
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-ZXNJ62WU.js";
|
|
91
91
|
import {
|
|
92
92
|
clearAgentCache,
|
|
93
93
|
getActiveAgents,
|
|
94
94
|
getAgentByType,
|
|
95
95
|
getAllAgents
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DDLCPDRH.js";
|
|
97
97
|
import {
|
|
98
98
|
API_ERROR_MESSAGE_PREFIX,
|
|
99
99
|
CANCEL_MESSAGE,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
processUserInput,
|
|
125
125
|
reorderMessages,
|
|
126
126
|
stripSystemMessages
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-JGTEN44K.js";
|
|
128
128
|
import {
|
|
129
129
|
getRequestStatus,
|
|
130
130
|
setRequestStatus,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
normalizeFilePath,
|
|
155
155
|
readTextContent,
|
|
156
156
|
writeTextContent
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-SIH4IGN7.js";
|
|
158
158
|
import {
|
|
159
159
|
parseBlockEdits
|
|
160
160
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -164,18 +164,18 @@ import {
|
|
|
164
164
|
ParserRegistry,
|
|
165
165
|
initParser,
|
|
166
166
|
loadLanguage
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-BHLOSRIV.js";
|
|
168
168
|
import {
|
|
169
169
|
getSettingsFileCandidates,
|
|
170
170
|
loadSettingsWithLegacyFallback,
|
|
171
171
|
readSettingsFile
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-VHWPECJP.js";
|
|
173
173
|
import {
|
|
174
174
|
getCustomCommandDirectories,
|
|
175
175
|
hasCustomCommands,
|
|
176
176
|
loadCustomCommands,
|
|
177
177
|
reloadCustomCommands
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-E7QS33NG.js";
|
|
179
179
|
import {
|
|
180
180
|
getSessionPlugins
|
|
181
181
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
ModelManager,
|
|
184
184
|
getModelManager,
|
|
185
185
|
isDefaultSlowAndCapableModel
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-32YS6WN2.js";
|
|
187
187
|
import {
|
|
188
188
|
getCodeStyle,
|
|
189
189
|
getContext,
|
|
@@ -191,13 +191,13 @@ import {
|
|
|
191
191
|
getIsGit,
|
|
192
192
|
getProjectDocs,
|
|
193
193
|
getProjectStructureStatisticsBlock
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-CXQVXTMI.js";
|
|
195
195
|
import {
|
|
196
196
|
ripGrep
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-NPJBVZZ7.js";
|
|
198
198
|
import {
|
|
199
199
|
getTheme
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-WQR737J4.js";
|
|
201
201
|
import {
|
|
202
202
|
DEFAULT_GLOBAL_CONFIG,
|
|
203
203
|
enableConfigs,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
saveGlobalConfig,
|
|
211
211
|
setAllPointersToModel,
|
|
212
212
|
setModelPointer
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-EKQKQKN7.js";
|
|
214
214
|
import {
|
|
215
215
|
AbortError
|
|
216
216
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
getCurrentRequest,
|
|
220
220
|
logUserFriendly,
|
|
221
221
|
markPhase
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-SHMVJ4IW.js";
|
|
223
223
|
import {
|
|
224
224
|
ASCII_LOGO,
|
|
225
225
|
BunShell,
|
|
@@ -260,10 +260,10 @@ import {
|
|
|
260
260
|
setCwd,
|
|
261
261
|
shouldApplyToolOutputTruncation,
|
|
262
262
|
truncateToolOutput
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-HQ6SVOPG.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-F2A7SL7F.js";
|
|
267
267
|
import {
|
|
268
268
|
__export
|
|
269
269
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -444,7 +444,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
444
444
|
var getCommandPrefix = memoize(
|
|
445
445
|
async (command4, abortSignal) => {
|
|
446
446
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
447
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
447
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-3NHC22VK.js");
|
|
448
448
|
const response = await queryQuick2({
|
|
449
449
|
systemPrompt,
|
|
450
450
|
userPrompt,
|
|
@@ -4246,7 +4246,7 @@ function formatParseError(error) {
|
|
|
4246
4246
|
return error instanceof Error ? error.message : String(error);
|
|
4247
4247
|
}
|
|
4248
4248
|
async function defaultGateQuery(args) {
|
|
4249
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4249
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-3NHC22VK.js");
|
|
4250
4250
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4251
4251
|
const messages = [
|
|
4252
4252
|
{
|
|
@@ -6643,7 +6643,7 @@ var FileEditTool = {
|
|
|
6643
6643
|
const originalFileContent = currentFileContent;
|
|
6644
6644
|
let totalPatch = [];
|
|
6645
6645
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6646
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6646
|
+
const { findLspAnchor } = await import("./lspAnchor-PQWKR4HW.js");
|
|
6647
6647
|
for (const op of editOperations) {
|
|
6648
6648
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6649
6649
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11313,7 +11313,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11313
11313
|
}
|
|
11314
11314
|
saveGlobalConfig(config2);
|
|
11315
11315
|
try {
|
|
11316
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11316
|
+
const { resetAnthropicClient } = await import("./llm-3NHC22VK.js");
|
|
11317
11317
|
resetAnthropicClient();
|
|
11318
11318
|
} catch {
|
|
11319
11319
|
}
|
|
@@ -15680,7 +15680,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15680
15680
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15681
15681
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15682
15682
|
if (dirs.length === 0) return [];
|
|
15683
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15683
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-ESYI3LF2.js");
|
|
15684
15684
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15685
15685
|
return errors;
|
|
15686
15686
|
}
|
|
@@ -16349,7 +16349,7 @@ async function call(onDone, context) {
|
|
|
16349
16349
|
ModelConfig,
|
|
16350
16350
|
{
|
|
16351
16351
|
onClose: () => {
|
|
16352
|
-
import("./model-
|
|
16352
|
+
import("./model-LI7LTOD2.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16353
16353
|
reloadModelManager2();
|
|
16354
16354
|
triggerModelConfigChange();
|
|
16355
16355
|
onDone();
|
|
@@ -21515,8 +21515,8 @@ import { z as z10 } from "zod";
|
|
|
21515
21515
|
// src/tools/agent/PlanModeTool/prompt.ts
|
|
21516
21516
|
var ENTER_TOOL_NAME = "EnterPlanMode";
|
|
21517
21517
|
var EXIT_TOOL_NAME = "ExitPlanMode";
|
|
21518
|
-
var ENTER_DESCRIPTION = "
|
|
21519
|
-
var ENTER_PROMPT = `Use this tool proactively when you're about to start a non-trivial implementation task.
|
|
21518
|
+
var ENTER_DESCRIPTION = "Enters plan mode for complex tasks requiring exploration and design";
|
|
21519
|
+
var ENTER_PROMPT = `Use this tool proactively when you're about to start a non-trivial implementation task. It will transition you into plan mode, allowing you to explore the codebase and design an implementation approach\u2014this not only prevents wasted effort and ensures alignment with user goals when writing code, but its structured workflow also guarantees thorough analysis of the code and ultimately delivers a well-designed solution.
|
|
21520
21520
|
|
|
21521
21521
|
## When to Use This Tool
|
|
21522
21522
|
|
|
@@ -21561,12 +21561,12 @@ Only skip EnterPlanMode for simple tasks:
|
|
|
21561
21561
|
## What Happens in Plan Mode
|
|
21562
21562
|
|
|
21563
21563
|
In plan mode, you'll:
|
|
21564
|
-
1. Thoroughly explore the codebase using Glob, Grep, and
|
|
21564
|
+
1. Thoroughly explore the codebase using Glob, Grep, Read, ls, and Lsp tools
|
|
21565
21565
|
2. Understand existing patterns and architecture
|
|
21566
21566
|
3. Design an implementation approach
|
|
21567
|
-
4.
|
|
21567
|
+
4. Write your plan to the plan file
|
|
21568
21568
|
5. Use AskUserQuestion if you need to clarify approaches
|
|
21569
|
-
6. Exit plan mode with ExitPlanMode when ready
|
|
21569
|
+
6. Exit plan mode with ExitPlanMode when ready for user review
|
|
21570
21570
|
|
|
21571
21571
|
## Examples
|
|
21572
21572
|
|
|
@@ -21598,9 +21598,9 @@ User: "What files handle routing?"
|
|
|
21598
21598
|
|
|
21599
21599
|
## Important Notes
|
|
21600
21600
|
|
|
21601
|
-
- This tool
|
|
21602
|
-
- If unsure whether to use it, err on the side of planning -
|
|
21603
|
-
- Users
|
|
21601
|
+
- This tool immediately enters plan mode without requiring user confirmation
|
|
21602
|
+
- If unsure whether to use it, err on the side of planning - structured analysis leads to better solutions
|
|
21603
|
+
- Users can still control the mode via keyboard shortcuts (alt+m / shift+tab)`;
|
|
21604
21604
|
var EXIT_DESCRIPTION = "Prompts the user to exit plan mode and start coding";
|
|
21605
21605
|
var EXIT_PROMPT = `Use this tool when you are in plan mode and have finished writing your plan to the plan file and are ready for user approval.
|
|
21606
21606
|
|
|
@@ -21648,10 +21648,10 @@ var EnterPlanModeTool = {
|
|
|
21648
21648
|
return true;
|
|
21649
21649
|
},
|
|
21650
21650
|
needsPermissions() {
|
|
21651
|
-
return
|
|
21651
|
+
return false;
|
|
21652
21652
|
},
|
|
21653
21653
|
requiresUserInteraction() {
|
|
21654
|
-
return
|
|
21654
|
+
return false;
|
|
21655
21655
|
},
|
|
21656
21656
|
async prompt() {
|
|
21657
21657
|
return ENTER_PROMPT;
|
|
@@ -21661,7 +21661,7 @@ var EnterPlanModeTool = {
|
|
|
21661
21661
|
},
|
|
21662
21662
|
renderToolUseRejectedMessage() {
|
|
21663
21663
|
const theme = getTheme();
|
|
21664
|
-
return /* @__PURE__ */ React86.createElement(Box65, { flexDirection: "row", marginTop: 1 }, /* @__PURE__ */ React86.createElement(Text70, { color: theme.text }, BLACK_CIRCLE), /* @__PURE__ */ React86.createElement(Text70, null, "
|
|
21664
|
+
return /* @__PURE__ */ React86.createElement(Box65, { flexDirection: "row", marginTop: 1 }, /* @__PURE__ */ React86.createElement(Text70, { color: theme.text }, BLACK_CIRCLE), /* @__PURE__ */ React86.createElement(Text70, null, " Plan mode entry was cancelled"));
|
|
21665
21665
|
},
|
|
21666
21666
|
renderToolResultMessage(_output) {
|
|
21667
21667
|
const theme = getTheme();
|
|
@@ -21676,9 +21676,10 @@ In plan mode, you should:
|
|
|
21676
21676
|
3. Consider multiple approaches and their trade-offs
|
|
21677
21677
|
4. Use AskUserQuestion if you need to clarify the approach
|
|
21678
21678
|
5. Design a concrete implementation strategy
|
|
21679
|
-
6.
|
|
21679
|
+
6. Write your plan to the plan file
|
|
21680
|
+
7. When ready, use ExitPlanMode for user review
|
|
21680
21681
|
|
|
21681
|
-
Remember: DO NOT write or edit any files yet. This is a read-only exploration and planning phase.`;
|
|
21682
|
+
Remember: DO NOT write or edit any files yet (except the plan file). This is a read-only exploration and planning phase.`;
|
|
21682
21683
|
},
|
|
21683
21684
|
async *call(_input, context) {
|
|
21684
21685
|
if (context?.agentId) {
|
|
@@ -25215,7 +25216,7 @@ function useStatusLine() {
|
|
|
25215
25216
|
// src/ui/components/PromptInput.tsx
|
|
25216
25217
|
async function interpretHashCommand(input) {
|
|
25217
25218
|
try {
|
|
25218
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25219
|
+
const { queryQuick: queryQuick2 } = await import("./llm-3NHC22VK.js");
|
|
25219
25220
|
const systemPrompt = [
|
|
25220
25221
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25221
25222
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25528,7 +25529,7 @@ function PromptInput({
|
|
|
25528
25529
|
if (messages2.length) {
|
|
25529
25530
|
if (mode === "bash") {
|
|
25530
25531
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25531
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25532
|
+
const { getCwd: getCwd2 } = await import("./state-JO77CSX6.js");
|
|
25532
25533
|
setCurrentPwd(getCwd2());
|
|
25533
25534
|
});
|
|
25534
25535
|
} else {
|
|
@@ -28707,7 +28708,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28707
28708
|
// src/commands/agents/generation.ts
|
|
28708
28709
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28709
28710
|
async function generateAgentWithClaude(prompt) {
|
|
28710
|
-
const { queryModel } = await import("./llm-
|
|
28711
|
+
const { queryModel } = await import("./llm-3NHC22VK.js");
|
|
28711
28712
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28712
28713
|
|
|
28713
28714
|
Return your response as a JSON object with exactly these fields:
|