pybao-cli 1.4.72 → 1.4.74
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-XZEYK6LF.js +46 -0
- package/dist/{acp-BDQDR7KX.js → acp-34DBJMNE.js} +29 -29
- package/dist/{agentsValidate-2GWIDSRB.js → agentsValidate-UMEVOJL7.js} +7 -7
- package/dist/{ask-4BEIEOUL.js → ask-RNTMLNQ2.js} +28 -28
- package/dist/{autoUpdater-4HO3ZPID.js → autoUpdater-X3DBE6FZ.js} +3 -3
- package/dist/{chunk-IPR7BE3O.js → chunk-2GZT7RUK.js} +2 -2
- package/dist/{chunk-LE5SO7VT.js → chunk-43TGFYL6.js} +3 -3
- package/dist/{chunk-5QCFPRRR.js → chunk-4U77TWRS.js} +3 -3
- package/dist/{chunk-35MIEAWK.js → chunk-6JU4DS46.js} +2 -2
- package/dist/{chunk-I6KFPV35.js → chunk-7OUV6SQ6.js} +1 -1
- package/dist/{chunk-S7CN5EVK.js → chunk-BKEMNZZY.js} +4 -4
- package/dist/{chunk-AB5RLKIY.js → chunk-D6FHVUMR.js} +3 -3
- package/dist/{chunk-XE2SSMWC.js → chunk-DBL6RONR.js} +1 -1
- package/dist/{chunk-FQVC5AO6.js → chunk-FDFIU4AY.js} +1 -1
- package/dist/{chunk-EPFJOURT.js → chunk-GKJ4DNL5.js} +4 -4
- package/dist/{chunk-XAKHWWVX.js → chunk-HSNUXYDK.js} +3 -3
- package/dist/{chunk-ZVEOIC4Q.js → chunk-KKAJLUM3.js} +78 -52
- package/dist/{chunk-ZVEOIC4Q.js.map → chunk-KKAJLUM3.js.map} +2 -2
- package/dist/{chunk-SQU4KQEZ.js → chunk-KWX3OP3A.js} +3 -3
- package/dist/{chunk-ABJR2URY.js → chunk-N3KCAK3U.js} +1 -1
- package/dist/{chunk-WAGEHKRW.js → chunk-NGUWOEIR.js} +1 -1
- package/dist/{chunk-WAGEHKRW.js.map → chunk-NGUWOEIR.js.map} +1 -1
- package/dist/{chunk-4TQ2ESKB.js → chunk-NK2SPUZM.js} +3 -3
- package/dist/{chunk-FAL2XM5C.js → chunk-OOJKE6CS.js} +2 -2
- package/dist/{chunk-UCBLDVMM.js → chunk-OTTTWHGG.js} +2 -2
- package/dist/{chunk-6WJ3DPKH.js → chunk-Q2QMI4BF.js} +2 -2
- package/dist/{chunk-N7MJY3OJ.js → chunk-QIFL2V2V.js} +1 -1
- package/dist/{chunk-LNGYPQBH.js → chunk-R2LRDAAW.js} +3 -3
- package/dist/{chunk-JPBBXWJZ.js → chunk-RNZT6QB7.js} +1 -1
- package/dist/{chunk-WL6BO5TM.js → chunk-TEU5TOG6.js} +1 -1
- package/dist/{chunk-IGQJWOR4.js → chunk-UAETMES5.js} +2 -2
- package/dist/{chunk-Q4OLT4NT.js → chunk-UAISHDHO.js} +16 -16
- package/dist/{chunk-MYIHIFVE.js → chunk-VJCBCXZI.js} +1 -1
- package/dist/{chunk-MFTGKYE3.js → chunk-WM225FLX.js} +2 -2
- package/dist/{chunk-WXTGOVD4.js → chunk-X5MSGU2U.js} +4 -4
- package/dist/{chunk-U53KB5W7.js → chunk-XGCZFUMJ.js} +1 -1
- package/dist/{chunk-5WSMOLLY.js → chunk-ZQ7OJWXM.js} +4 -4
- package/dist/{cli-R6OJPJ3A.js → cli-NG3YYZRK.js} +87 -87
- package/dist/commands-RE3MQCKI.js +50 -0
- package/dist/{config-IRREB6ZR.js → config-YUERA7XQ.js} +4 -4
- package/dist/{context-GWQBUF5A.js → context-3JGBPJPL.js} +6 -6
- package/dist/{customCommands-V7UZJVSP.js → customCommands-5VN7LG2J.js} +4 -4
- package/dist/{env-BES2TS7K.js → env-2M5CUX6B.js} +2 -2
- package/dist/{file-DRPSWAC5.js → file-VLK6GNZ3.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-V3BKK2SE.js → llm-M76S3CJV.js} +29 -29
- package/dist/{llmLazy-J2ABQHFE.js → llmLazy-YSGYORL4.js} +1 -1
- package/dist/{loader-DGSNJ6OC.js → loader-4T4GQLZ6.js} +4 -4
- package/dist/{lsp-EALNZB6A.js → lsp-IOOPHSFB.js} +6 -6
- package/dist/{lspAnchor-2RHV7U2B.js → lspAnchor-7EDHEQGJ.js} +6 -6
- package/dist/{mcp-6M44ILQM.js → mcp-QVVPXKJ6.js} +7 -7
- package/dist/{mentionProcessor-X6EVJSBY.js → mentionProcessor-GWPVSAN2.js} +5 -5
- package/dist/{messages-KZ3SO2TR.js → messages-FS6KZMLG.js} +1 -1
- package/dist/{model-Q7TDZ6GN.js → model-TQAXC67I.js} +5 -5
- package/dist/{openai-I5UJUGX3.js → openai-ZWO7JLLH.js} +5 -5
- package/dist/{outputStyles-QVKKXIY4.js → outputStyles-VGCAIYRU.js} +4 -4
- package/dist/{pluginRuntime-6UK7TYNH.js → pluginRuntime-RSJEXGOD.js} +6 -6
- package/dist/{pluginValidation-UH53R5UG.js → pluginValidation-VWNTSYWS.js} +6 -6
- package/dist/prompts-QVRRWN2T.js +52 -0
- package/dist/{pybAgentSessionLoad-EDESPHXZ.js → pybAgentSessionLoad-GY54HDVB.js} +4 -4
- package/dist/{pybAgentSessionResume-3V5NFIRS.js → pybAgentSessionResume-MXFXV536.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-2VK2TMC2.js → pybAgentStreamJsonSession-FAA6TAMV.js} +1 -1
- package/dist/{pybHooks-R5GEQMNH.js → pybHooks-VIQBZIA7.js} +4 -4
- package/dist/query-ESPAHEDS.js +54 -0
- package/dist/{registry-V7ULAQDK.js → registry-K67LTK3T.js} +5 -5
- package/dist/{ripgrep-3J5M3WV5.js → ripgrep-SG2OK6YC.js} +3 -3
- package/dist/{skillMarketplace-YSQ3KU67.js → skillMarketplace-APL6T7CE.js} +3 -3
- package/dist/{state-FT2OLN5V.js → state-2Y4GT7YG.js} +2 -2
- package/dist/{theme-Q3IPTBIG.js → theme-JEUXNORG.js} +5 -5
- package/dist/{toolPermissionSettings-ZPBNQWUZ.js → toolPermissionSettings-YALIBD5Y.js} +6 -6
- package/dist/tools-GUOPA5QB.js +51 -0
- package/dist/{userInput-KZLFQY2T.js → userInput-GKIHN2L7.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-7B2DJIGG.js +0 -46
- package/dist/commands-V24CFNDB.js +0 -50
- package/dist/prompts-UUTVMSI5.js +0 -52
- package/dist/query-H27G7XYG.js +0 -54
- package/dist/tools-XLXGRW7J.js +0 -51
- /package/dist/{REPL-7B2DJIGG.js.map → REPL-XZEYK6LF.js.map} +0 -0
- /package/dist/{acp-BDQDR7KX.js.map → acp-34DBJMNE.js.map} +0 -0
- /package/dist/{agentsValidate-2GWIDSRB.js.map → agentsValidate-UMEVOJL7.js.map} +0 -0
- /package/dist/{ask-4BEIEOUL.js.map → ask-RNTMLNQ2.js.map} +0 -0
- /package/dist/{autoUpdater-4HO3ZPID.js.map → autoUpdater-X3DBE6FZ.js.map} +0 -0
- /package/dist/{chunk-IPR7BE3O.js.map → chunk-2GZT7RUK.js.map} +0 -0
- /package/dist/{chunk-LE5SO7VT.js.map → chunk-43TGFYL6.js.map} +0 -0
- /package/dist/{chunk-5QCFPRRR.js.map → chunk-4U77TWRS.js.map} +0 -0
- /package/dist/{chunk-35MIEAWK.js.map → chunk-6JU4DS46.js.map} +0 -0
- /package/dist/{chunk-I6KFPV35.js.map → chunk-7OUV6SQ6.js.map} +0 -0
- /package/dist/{chunk-S7CN5EVK.js.map → chunk-BKEMNZZY.js.map} +0 -0
- /package/dist/{chunk-AB5RLKIY.js.map → chunk-D6FHVUMR.js.map} +0 -0
- /package/dist/{chunk-XE2SSMWC.js.map → chunk-DBL6RONR.js.map} +0 -0
- /package/dist/{chunk-FQVC5AO6.js.map → chunk-FDFIU4AY.js.map} +0 -0
- /package/dist/{chunk-EPFJOURT.js.map → chunk-GKJ4DNL5.js.map} +0 -0
- /package/dist/{chunk-XAKHWWVX.js.map → chunk-HSNUXYDK.js.map} +0 -0
- /package/dist/{chunk-SQU4KQEZ.js.map → chunk-KWX3OP3A.js.map} +0 -0
- /package/dist/{chunk-ABJR2URY.js.map → chunk-N3KCAK3U.js.map} +0 -0
- /package/dist/{chunk-4TQ2ESKB.js.map → chunk-NK2SPUZM.js.map} +0 -0
- /package/dist/{chunk-FAL2XM5C.js.map → chunk-OOJKE6CS.js.map} +0 -0
- /package/dist/{chunk-UCBLDVMM.js.map → chunk-OTTTWHGG.js.map} +0 -0
- /package/dist/{chunk-6WJ3DPKH.js.map → chunk-Q2QMI4BF.js.map} +0 -0
- /package/dist/{chunk-N7MJY3OJ.js.map → chunk-QIFL2V2V.js.map} +0 -0
- /package/dist/{chunk-LNGYPQBH.js.map → chunk-R2LRDAAW.js.map} +0 -0
- /package/dist/{chunk-JPBBXWJZ.js.map → chunk-RNZT6QB7.js.map} +0 -0
- /package/dist/{chunk-WL6BO5TM.js.map → chunk-TEU5TOG6.js.map} +0 -0
- /package/dist/{chunk-IGQJWOR4.js.map → chunk-UAETMES5.js.map} +0 -0
- /package/dist/{chunk-Q4OLT4NT.js.map → chunk-UAISHDHO.js.map} +0 -0
- /package/dist/{chunk-MYIHIFVE.js.map → chunk-VJCBCXZI.js.map} +0 -0
- /package/dist/{chunk-MFTGKYE3.js.map → chunk-WM225FLX.js.map} +0 -0
- /package/dist/{chunk-WXTGOVD4.js.map → chunk-X5MSGU2U.js.map} +0 -0
- /package/dist/{chunk-U53KB5W7.js.map → chunk-XGCZFUMJ.js.map} +0 -0
- /package/dist/{chunk-5WSMOLLY.js.map → chunk-ZQ7OJWXM.js.map} +0 -0
- /package/dist/{cli-R6OJPJ3A.js.map → cli-NG3YYZRK.js.map} +0 -0
- /package/dist/{commands-V24CFNDB.js.map → commands-RE3MQCKI.js.map} +0 -0
- /package/dist/{config-IRREB6ZR.js.map → config-YUERA7XQ.js.map} +0 -0
- /package/dist/{context-GWQBUF5A.js.map → context-3JGBPJPL.js.map} +0 -0
- /package/dist/{customCommands-V7UZJVSP.js.map → customCommands-5VN7LG2J.js.map} +0 -0
- /package/dist/{env-BES2TS7K.js.map → env-2M5CUX6B.js.map} +0 -0
- /package/dist/{file-DRPSWAC5.js.map → file-VLK6GNZ3.js.map} +0 -0
- /package/dist/{llm-V3BKK2SE.js.map → llm-M76S3CJV.js.map} +0 -0
- /package/dist/{llmLazy-J2ABQHFE.js.map → llmLazy-YSGYORL4.js.map} +0 -0
- /package/dist/{loader-DGSNJ6OC.js.map → loader-4T4GQLZ6.js.map} +0 -0
- /package/dist/{lsp-EALNZB6A.js.map → lsp-IOOPHSFB.js.map} +0 -0
- /package/dist/{lspAnchor-2RHV7U2B.js.map → lspAnchor-7EDHEQGJ.js.map} +0 -0
- /package/dist/{mcp-6M44ILQM.js.map → mcp-QVVPXKJ6.js.map} +0 -0
- /package/dist/{mentionProcessor-X6EVJSBY.js.map → mentionProcessor-GWPVSAN2.js.map} +0 -0
- /package/dist/{messages-KZ3SO2TR.js.map → messages-FS6KZMLG.js.map} +0 -0
- /package/dist/{model-Q7TDZ6GN.js.map → model-TQAXC67I.js.map} +0 -0
- /package/dist/{openai-I5UJUGX3.js.map → openai-ZWO7JLLH.js.map} +0 -0
- /package/dist/{outputStyles-QVKKXIY4.js.map → outputStyles-VGCAIYRU.js.map} +0 -0
- /package/dist/{pluginRuntime-6UK7TYNH.js.map → pluginRuntime-RSJEXGOD.js.map} +0 -0
- /package/dist/{pluginValidation-UH53R5UG.js.map → pluginValidation-VWNTSYWS.js.map} +0 -0
- /package/dist/{prompts-UUTVMSI5.js.map → prompts-QVRRWN2T.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-EDESPHXZ.js.map → pybAgentSessionLoad-GY54HDVB.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-3V5NFIRS.js.map → pybAgentSessionResume-MXFXV536.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-2VK2TMC2.js.map → pybAgentStreamJsonSession-FAA6TAMV.js.map} +0 -0
- /package/dist/{pybHooks-R5GEQMNH.js.map → pybHooks-VIQBZIA7.js.map} +0 -0
- /package/dist/{query-H27G7XYG.js.map → query-ESPAHEDS.js.map} +0 -0
- /package/dist/{registry-V7ULAQDK.js.map → registry-K67LTK3T.js.map} +0 -0
- /package/dist/{ripgrep-3J5M3WV5.js.map → ripgrep-SG2OK6YC.js.map} +0 -0
- /package/dist/{skillMarketplace-YSQ3KU67.js.map → skillMarketplace-APL6T7CE.js.map} +0 -0
- /package/dist/{state-FT2OLN5V.js.map → state-2Y4GT7YG.js.map} +0 -0
- /package/dist/{theme-Q3IPTBIG.js.map → theme-JEUXNORG.js.map} +0 -0
- /package/dist/{toolPermissionSettings-ZPBNQWUZ.js.map → toolPermissionSettings-YALIBD5Y.js.map} +0 -0
- /package/dist/{tools-XLXGRW7J.js.map → tools-GUOPA5QB.js.map} +0 -0
- /package/dist/{userInput-KZLFQY2T.js.map → userInput-GKIHN2L7.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-KWX3OP3A.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FDFIU4AY.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGCZFUMJ.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6JU4DS46.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-R2LRDAAW.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-Q2QMI4BF.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures,
|
|
42
42
|
getSessionState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2GZT7RUK.js";
|
|
44
44
|
import {
|
|
45
45
|
queryLLM,
|
|
46
46
|
queryQuick,
|
|
47
47
|
verifyApiKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BKEMNZZY.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-GKJ4DNL5.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-VJCBCXZI.js";
|
|
76
76
|
import {
|
|
77
77
|
loadToolPermissionContextFromDisk,
|
|
78
78
|
persistToolPermissionUpdateToDisk
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-HSNUXYDK.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-OTTTWHGG.js";
|
|
91
91
|
import {
|
|
92
92
|
clearAgentCache,
|
|
93
93
|
getActiveAgents,
|
|
94
94
|
getAgentByType,
|
|
95
95
|
getAllAgents
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-UAETMES5.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-TEU5TOG6.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-WM225FLX.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-X5MSGU2U.js";
|
|
168
168
|
import {
|
|
169
169
|
getSettingsFileCandidates,
|
|
170
170
|
loadSettingsWithLegacyFallback,
|
|
171
171
|
readSettingsFile
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-QIFL2V2V.js";
|
|
173
173
|
import {
|
|
174
174
|
getCustomCommandDirectories,
|
|
175
175
|
hasCustomCommands,
|
|
176
176
|
loadCustomCommands,
|
|
177
177
|
reloadCustomCommands
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-OOJKE6CS.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-NK2SPUZM.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-ZQ7OJWXM.js";
|
|
195
195
|
import {
|
|
196
196
|
ripGrep
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-N3KCAK3U.js";
|
|
198
198
|
import {
|
|
199
199
|
getTheme
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-7OUV6SQ6.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-43TGFYL6.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-DBL6RONR.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-RNZT6QB7.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-NGUWOEIR.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-M76S3CJV.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-M76S3CJV.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-7EDHEQGJ.js");
|
|
6647
6647
|
for (const op of editOperations) {
|
|
6648
6648
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6649
6649
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -7966,14 +7966,26 @@ var DESCRIPTION4 = `- Fast file pattern matching tool that works with any codeba
|
|
|
7966
7966
|
- You can call multiple tools in a single response. It is always better to speculatively perform multiple searches in parallel if they are potentially useful.
|
|
7967
7967
|
- This tool is for FINDING files.
|
|
7968
7968
|
|
|
7969
|
+
## Search Strategy
|
|
7970
|
+
- **Broad-to-Narrow Pattern**: Start with a broad pattern, then narrow based on results.
|
|
7971
|
+
- Step 1: Use broad patterns like \`**/*.ts\` or \`src/**/*\` to get an overview
|
|
7972
|
+
- Step 2: Analyze results and refine with more specific patterns
|
|
7973
|
+
- Example: "\`**/*.test.ts\`" \u2192 too many results \u2192 "src/**/auth*.test.ts"
|
|
7974
|
+
- **Pattern Selection Guide**:
|
|
7975
|
+
- Unknown structure? Start with \`**/*.{ext}\` to discover layout
|
|
7976
|
+
- Looking for specific type? Use descriptive names: \`**/test*\`, \`**/config*\`
|
|
7977
|
+
- In a specific area? Combine path + pattern: \`src/auth/**/*.ts\`
|
|
7978
|
+
- **Discovery Workflow**: For unfamiliar codebases, run these in parallel:
|
|
7979
|
+
- \`**/package.json\`, \`**/*.{ts,js,tsx,jsx}\`, \`**/README*\`
|
|
7980
|
+
- Analyze structure \u2192 refine search \u2192 read key files
|
|
7981
|
+
|
|
7969
7982
|
## Usage Details
|
|
7970
7983
|
- Supports glob patterns like "**/*.js" or "src/**/*.ts"
|
|
7971
7984
|
- Returns matching file paths sorted by modification time
|
|
7972
7985
|
- Use this tool when you need to find files by name patterns
|
|
7973
7986
|
- **Semantic Search**: Set \`semantic: true\` to use LSP workspace symbols when file-name matching fails. The \`pattern\` is treated as the symbol name.
|
|
7974
7987
|
- Semantic search is explicit: enable it only when normal matching fails or semantic lookup is required.
|
|
7975
|
-
- If LSP is unavailable, it falls back to standard glob results without impacting the main file-finding flow
|
|
7976
|
-
`;
|
|
7988
|
+
- If LSP is unavailable, it falls back to standard glob results without impacting the main file-finding flow.`;
|
|
7977
7989
|
|
|
7978
7990
|
// src/tools/filesystem/GlobTool/GlobTool.tsx
|
|
7979
7991
|
import { existsSync as existsSync5, statSync as statSync8 } from "fs";
|
|
@@ -8143,6 +8155,20 @@ var DESCRIPTION5 = `A powerful search tool built on ripgrep
|
|
|
8143
8155
|
- AVOID: Do not use Grep to trace execution flow (e.g., searching for "functionName" manually). Use LSP for that.
|
|
8144
8156
|
- Hotspot strategy: narrow the path scope first, then paginate or refine the search; after truncation, focus on high-signal directories to avoid full-repo scans.
|
|
8145
8157
|
|
|
8158
|
+
## Search Strategy
|
|
8159
|
+
- **Pattern Refinement Workflow**:
|
|
8160
|
+
- Start broad: simple keyword first, observe results
|
|
8161
|
+
- Narrow down: add constraints (type, glob, path) if too many matches
|
|
8162
|
+
- Switch mode: \`files_with_matches\` for discovery, \`content\` for details
|
|
8163
|
+
- **From Vague Intent to Precise Pattern**:
|
|
8164
|
+
- "How does auth work?" \u2192 Start with Grep("auth", type="ts") \u2192 Analyze results \u2192 Refine pattern
|
|
8165
|
+
- "Find the API endpoints" \u2192 Grep("router|route|endpoint", type="ts") \u2192 Read key files
|
|
8166
|
+
- "Where is this error from?" \u2192 Grep(exact error message) \u2192 Trace back to source
|
|
8167
|
+
- **Iterative Narrowing**:
|
|
8168
|
+
- Too many results? Add \`glob\`, \`type\`, or narrower \`path\`
|
|
8169
|
+
- No results? Broaden pattern, try case-insensitive (\`-i\`), or use semantic search
|
|
8170
|
+
- Wrong results? Adjust pattern, check regex syntax, try alternative keywords
|
|
8171
|
+
|
|
8146
8172
|
## Usage Details
|
|
8147
8173
|
- ALWAYS use Grep for search tasks. NEVER invoke \`grep\` or \`rg\` as a Bash command. The Grep tool has been optimized for correct permissions and access.
|
|
8148
8174
|
- Supports full regex syntax (e.g., "log.*Error", "function\\s+\\w+")
|
|
@@ -8155,8 +8181,7 @@ var DESCRIPTION5 = `A powerful search tool built on ripgrep
|
|
|
8155
8181
|
- Semantic search is explicit: enable only when normal search has no results or when symbol-level lookup is required
|
|
8156
8182
|
- Semantic output format: \`file:line: name (Kind)\` for quick follow-up reads
|
|
8157
8183
|
- If LSP is unavailable, fall back to plain text search results
|
|
8158
|
-
- Use Task tool for open-ended searches requiring multiple rounds
|
|
8159
|
-
`;
|
|
8184
|
+
- Use Task tool for open-ended searches requiring multiple rounds`;
|
|
8160
8185
|
|
|
8161
8186
|
// src/tools/search/GrepTool/GrepTool.tsx
|
|
8162
8187
|
import { isAbsolute as isAbsolute7, relative as relative9, resolve as resolve7 } from "path";
|
|
@@ -11313,7 +11338,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11313
11338
|
}
|
|
11314
11339
|
saveGlobalConfig(config2);
|
|
11315
11340
|
try {
|
|
11316
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11341
|
+
const { resetAnthropicClient } = await import("./llm-M76S3CJV.js");
|
|
11317
11342
|
resetAnthropicClient();
|
|
11318
11343
|
} catch {
|
|
11319
11344
|
}
|
|
@@ -15680,7 +15705,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15680
15705
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15681
15706
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15682
15707
|
if (dirs.length === 0) return [];
|
|
15683
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15708
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-RSJEXGOD.js");
|
|
15684
15709
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15685
15710
|
return errors;
|
|
15686
15711
|
}
|
|
@@ -16349,7 +16374,7 @@ async function call(onDone, context) {
|
|
|
16349
16374
|
ModelConfig,
|
|
16350
16375
|
{
|
|
16351
16376
|
onClose: () => {
|
|
16352
|
-
import("./model-
|
|
16377
|
+
import("./model-TQAXC67I.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16353
16378
|
reloadModelManager2();
|
|
16354
16379
|
triggerModelConfigChange();
|
|
16355
16380
|
onDone();
|
|
@@ -21515,8 +21540,8 @@ import { z as z10 } from "zod";
|
|
|
21515
21540
|
// src/tools/agent/PlanModeTool/prompt.ts
|
|
21516
21541
|
var ENTER_TOOL_NAME = "EnterPlanMode";
|
|
21517
21542
|
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.
|
|
21543
|
+
var ENTER_DESCRIPTION = "Enters plan mode for complex tasks requiring exploration and design";
|
|
21544
|
+
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
21545
|
|
|
21521
21546
|
## When to Use This Tool
|
|
21522
21547
|
|
|
@@ -21561,12 +21586,12 @@ Only skip EnterPlanMode for simple tasks:
|
|
|
21561
21586
|
## What Happens in Plan Mode
|
|
21562
21587
|
|
|
21563
21588
|
In plan mode, you'll:
|
|
21564
|
-
1. Thoroughly explore the codebase using Glob, Grep, and
|
|
21589
|
+
1. Thoroughly explore the codebase using Glob, Grep, Read, ls, and Lsp tools
|
|
21565
21590
|
2. Understand existing patterns and architecture
|
|
21566
21591
|
3. Design an implementation approach
|
|
21567
|
-
4.
|
|
21592
|
+
4. Write your plan to the plan file
|
|
21568
21593
|
5. Use AskUserQuestion if you need to clarify approaches
|
|
21569
|
-
6. Exit plan mode with ExitPlanMode when ready
|
|
21594
|
+
6. Exit plan mode with ExitPlanMode when ready for user review
|
|
21570
21595
|
|
|
21571
21596
|
## Examples
|
|
21572
21597
|
|
|
@@ -21598,9 +21623,9 @@ User: "What files handle routing?"
|
|
|
21598
21623
|
|
|
21599
21624
|
## Important Notes
|
|
21600
21625
|
|
|
21601
|
-
- This tool
|
|
21602
|
-
- If unsure whether to use it, err on the side of planning -
|
|
21603
|
-
- Users
|
|
21626
|
+
- This tool immediately enters plan mode without requiring user confirmation
|
|
21627
|
+
- If unsure whether to use it, err on the side of planning - structured analysis leads to better solutions
|
|
21628
|
+
- Users can still control the mode via keyboard shortcuts (alt+m / shift+tab)`;
|
|
21604
21629
|
var EXIT_DESCRIPTION = "Prompts the user to exit plan mode and start coding";
|
|
21605
21630
|
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
21631
|
|
|
@@ -21648,10 +21673,10 @@ var EnterPlanModeTool = {
|
|
|
21648
21673
|
return true;
|
|
21649
21674
|
},
|
|
21650
21675
|
needsPermissions() {
|
|
21651
|
-
return
|
|
21676
|
+
return false;
|
|
21652
21677
|
},
|
|
21653
21678
|
requiresUserInteraction() {
|
|
21654
|
-
return
|
|
21679
|
+
return false;
|
|
21655
21680
|
},
|
|
21656
21681
|
async prompt() {
|
|
21657
21682
|
return ENTER_PROMPT;
|
|
@@ -21661,7 +21686,7 @@ var EnterPlanModeTool = {
|
|
|
21661
21686
|
},
|
|
21662
21687
|
renderToolUseRejectedMessage() {
|
|
21663
21688
|
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, "
|
|
21689
|
+
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
21690
|
},
|
|
21666
21691
|
renderToolResultMessage(_output) {
|
|
21667
21692
|
const theme = getTheme();
|
|
@@ -21676,9 +21701,10 @@ In plan mode, you should:
|
|
|
21676
21701
|
3. Consider multiple approaches and their trade-offs
|
|
21677
21702
|
4. Use AskUserQuestion if you need to clarify the approach
|
|
21678
21703
|
5. Design a concrete implementation strategy
|
|
21679
|
-
6.
|
|
21704
|
+
6. Write your plan to the plan file
|
|
21705
|
+
7. When ready, use ExitPlanMode for user review
|
|
21680
21706
|
|
|
21681
|
-
Remember: DO NOT write or edit any files yet. This is a read-only exploration and planning phase.`;
|
|
21707
|
+
Remember: DO NOT write or edit any files yet (except the plan file). This is a read-only exploration and planning phase.`;
|
|
21682
21708
|
},
|
|
21683
21709
|
async *call(_input, context) {
|
|
21684
21710
|
if (context?.agentId) {
|
|
@@ -25215,7 +25241,7 @@ function useStatusLine() {
|
|
|
25215
25241
|
// src/ui/components/PromptInput.tsx
|
|
25216
25242
|
async function interpretHashCommand(input) {
|
|
25217
25243
|
try {
|
|
25218
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25244
|
+
const { queryQuick: queryQuick2 } = await import("./llm-M76S3CJV.js");
|
|
25219
25245
|
const systemPrompt = [
|
|
25220
25246
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25221
25247
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25528,7 +25554,7 @@ function PromptInput({
|
|
|
25528
25554
|
if (messages2.length) {
|
|
25529
25555
|
if (mode === "bash") {
|
|
25530
25556
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25531
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25557
|
+
const { getCwd: getCwd2 } = await import("./state-2Y4GT7YG.js");
|
|
25532
25558
|
setCurrentPwd(getCwd2());
|
|
25533
25559
|
});
|
|
25534
25560
|
} else {
|
|
@@ -28707,7 +28733,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28707
28733
|
// src/commands/agents/generation.ts
|
|
28708
28734
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28709
28735
|
async function generateAgentWithClaude(prompt) {
|
|
28710
|
-
const { queryModel } = await import("./llm-
|
|
28736
|
+
const { queryModel } = await import("./llm-M76S3CJV.js");
|
|
28711
28737
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28712
28738
|
|
|
28713
28739
|
Return your response as a JSON object with exactly these fields:
|