pybao-cli 1.4.73 → 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-YHT3WYR6.js → acp-34DBJMNE.js} +29 -29
- package/dist/{agentsValidate-XWHKNXPV.js → agentsValidate-UMEVOJL7.js} +7 -7
- package/dist/{ask-Z2UV6QA2.js → ask-RNTMLNQ2.js} +28 -28
- package/dist/{autoUpdater-TMF44IV3.js → autoUpdater-X3DBE6FZ.js} +3 -3
- package/dist/{chunk-2W4PU5LB.js → chunk-2GZT7RUK.js} +2 -2
- package/dist/{chunk-EKQKQKN7.js → chunk-43TGFYL6.js} +3 -3
- package/dist/{chunk-TFSX7MTJ.js → chunk-4U77TWRS.js} +3 -3
- package/dist/{chunk-3E2SSZB7.js → chunk-6JU4DS46.js} +2 -2
- package/dist/{chunk-WQR737J4.js → chunk-7OUV6SQ6.js} +1 -1
- package/dist/{chunk-UVIRSCWD.js → chunk-BKEMNZZY.js} +4 -4
- package/dist/{chunk-FXIMBVZA.js → chunk-D6FHVUMR.js} +3 -3
- package/dist/{chunk-SHMVJ4IW.js → chunk-DBL6RONR.js} +1 -1
- package/dist/{chunk-3Q5F4OUI.js → chunk-FDFIU4AY.js} +1 -1
- package/dist/{chunk-WTYCHKIY.js → chunk-GKJ4DNL5.js} +4 -4
- package/dist/{chunk-RI7KB2J4.js → chunk-HSNUXYDK.js} +3 -3
- package/dist/{chunk-PHYOFWZE.js → chunk-KKAJLUM3.js} +64 -39
- package/dist/{chunk-PHYOFWZE.js.map → chunk-KKAJLUM3.js.map} +2 -2
- package/dist/{chunk-E7OJV6QN.js → chunk-KWX3OP3A.js} +3 -3
- package/dist/{chunk-NPJBVZZ7.js → chunk-N3KCAK3U.js} +1 -1
- package/dist/{chunk-F2A7SL7F.js → chunk-NGUWOEIR.js} +1 -1
- package/dist/{chunk-F2A7SL7F.js.map → chunk-NGUWOEIR.js.map} +1 -1
- package/dist/{chunk-32YS6WN2.js → chunk-NK2SPUZM.js} +3 -3
- package/dist/{chunk-E7QS33NG.js → chunk-OOJKE6CS.js} +2 -2
- package/dist/{chunk-ZXNJ62WU.js → chunk-OTTTWHGG.js} +2 -2
- package/dist/{chunk-7RQGIDZS.js → chunk-Q2QMI4BF.js} +2 -2
- package/dist/{chunk-VHWPECJP.js → chunk-QIFL2V2V.js} +1 -1
- package/dist/{chunk-ZT6XN5WB.js → chunk-R2LRDAAW.js} +3 -3
- package/dist/{chunk-HQ6SVOPG.js → chunk-RNZT6QB7.js} +1 -1
- package/dist/{chunk-JGTEN44K.js → chunk-TEU5TOG6.js} +1 -1
- package/dist/{chunk-DDLCPDRH.js → chunk-UAETMES5.js} +2 -2
- package/dist/{chunk-WVDK4LXO.js → chunk-UAISHDHO.js} +16 -16
- package/dist/{chunk-G7SKFCQY.js → chunk-VJCBCXZI.js} +1 -1
- package/dist/{chunk-SIH4IGN7.js → chunk-WM225FLX.js} +2 -2
- package/dist/{chunk-BHLOSRIV.js → chunk-X5MSGU2U.js} +4 -4
- package/dist/{chunk-BNE3CU3H.js → chunk-XGCZFUMJ.js} +1 -1
- package/dist/{chunk-CXQVXTMI.js → chunk-ZQ7OJWXM.js} +4 -4
- package/dist/{cli-HR6HTUYW.js → cli-NG3YYZRK.js} +87 -87
- package/dist/commands-RE3MQCKI.js +50 -0
- package/dist/{config-DAMFM7EH.js → config-YUERA7XQ.js} +4 -4
- package/dist/{context-6RG46SPP.js → context-3JGBPJPL.js} +6 -6
- package/dist/{customCommands-H2QBK44G.js → customCommands-5VN7LG2J.js} +4 -4
- package/dist/{env-YT3FZNAS.js → env-2M5CUX6B.js} +2 -2
- package/dist/{file-VOA7AF7B.js → file-VLK6GNZ3.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-3NHC22VK.js → llm-M76S3CJV.js} +29 -29
- package/dist/{llmLazy-6VIID66N.js → llmLazy-YSGYORL4.js} +1 -1
- package/dist/{loader-EEVSF7SI.js → loader-4T4GQLZ6.js} +4 -4
- package/dist/{lsp-UZ77VCEB.js → lsp-IOOPHSFB.js} +6 -6
- package/dist/{lspAnchor-PQWKR4HW.js → lspAnchor-7EDHEQGJ.js} +6 -6
- package/dist/{mcp-RETVF4ZI.js → mcp-QVVPXKJ6.js} +7 -7
- package/dist/{mentionProcessor-K7Y4MNSM.js → mentionProcessor-GWPVSAN2.js} +5 -5
- package/dist/{messages-Y447K4GA.js → messages-FS6KZMLG.js} +1 -1
- package/dist/{model-LI7LTOD2.js → model-TQAXC67I.js} +5 -5
- package/dist/{openai-P6KN32LM.js → openai-ZWO7JLLH.js} +5 -5
- package/dist/{outputStyles-D7BAB3LV.js → outputStyles-VGCAIYRU.js} +4 -4
- package/dist/{pluginRuntime-ESYI3LF2.js → pluginRuntime-RSJEXGOD.js} +6 -6
- package/dist/{pluginValidation-HXJ36PVU.js → pluginValidation-VWNTSYWS.js} +6 -6
- package/dist/prompts-QVRRWN2T.js +52 -0
- package/dist/{pybAgentSessionLoad-35LWV3PO.js → pybAgentSessionLoad-GY54HDVB.js} +4 -4
- package/dist/{pybAgentSessionResume-XXGQMCDY.js → pybAgentSessionResume-MXFXV536.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-OSD6QCO3.js → pybAgentStreamJsonSession-FAA6TAMV.js} +1 -1
- package/dist/{pybHooks-V6ZEVAIP.js → pybHooks-VIQBZIA7.js} +4 -4
- package/dist/query-ESPAHEDS.js +54 -0
- package/dist/{registry-QN2RD3OQ.js → registry-K67LTK3T.js} +5 -5
- package/dist/{ripgrep-5ADOVGXG.js → ripgrep-SG2OK6YC.js} +3 -3
- package/dist/{skillMarketplace-KIIGENMN.js → skillMarketplace-APL6T7CE.js} +3 -3
- package/dist/{state-JO77CSX6.js → state-2Y4GT7YG.js} +2 -2
- package/dist/{theme-WIOLK2X2.js → theme-JEUXNORG.js} +5 -5
- package/dist/{toolPermissionSettings-3FRKK44Q.js → toolPermissionSettings-YALIBD5Y.js} +6 -6
- package/dist/tools-GUOPA5QB.js +51 -0
- package/dist/{userInput-IICDTVUH.js → userInput-GKIHN2L7.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-AMXLYPJP.js +0 -46
- package/dist/commands-MZCSUZUW.js +0 -50
- package/dist/prompts-TBBOASPW.js +0 -52
- package/dist/query-2YNWNMEP.js +0 -54
- package/dist/tools-WE4P7ZLW.js +0 -51
- /package/dist/{REPL-AMXLYPJP.js.map → REPL-XZEYK6LF.js.map} +0 -0
- /package/dist/{acp-YHT3WYR6.js.map → acp-34DBJMNE.js.map} +0 -0
- /package/dist/{agentsValidate-XWHKNXPV.js.map → agentsValidate-UMEVOJL7.js.map} +0 -0
- /package/dist/{ask-Z2UV6QA2.js.map → ask-RNTMLNQ2.js.map} +0 -0
- /package/dist/{autoUpdater-TMF44IV3.js.map → autoUpdater-X3DBE6FZ.js.map} +0 -0
- /package/dist/{chunk-2W4PU5LB.js.map → chunk-2GZT7RUK.js.map} +0 -0
- /package/dist/{chunk-EKQKQKN7.js.map → chunk-43TGFYL6.js.map} +0 -0
- /package/dist/{chunk-TFSX7MTJ.js.map → chunk-4U77TWRS.js.map} +0 -0
- /package/dist/{chunk-3E2SSZB7.js.map → chunk-6JU4DS46.js.map} +0 -0
- /package/dist/{chunk-WQR737J4.js.map → chunk-7OUV6SQ6.js.map} +0 -0
- /package/dist/{chunk-UVIRSCWD.js.map → chunk-BKEMNZZY.js.map} +0 -0
- /package/dist/{chunk-FXIMBVZA.js.map → chunk-D6FHVUMR.js.map} +0 -0
- /package/dist/{chunk-SHMVJ4IW.js.map → chunk-DBL6RONR.js.map} +0 -0
- /package/dist/{chunk-3Q5F4OUI.js.map → chunk-FDFIU4AY.js.map} +0 -0
- /package/dist/{chunk-WTYCHKIY.js.map → chunk-GKJ4DNL5.js.map} +0 -0
- /package/dist/{chunk-RI7KB2J4.js.map → chunk-HSNUXYDK.js.map} +0 -0
- /package/dist/{chunk-E7OJV6QN.js.map → chunk-KWX3OP3A.js.map} +0 -0
- /package/dist/{chunk-NPJBVZZ7.js.map → chunk-N3KCAK3U.js.map} +0 -0
- /package/dist/{chunk-32YS6WN2.js.map → chunk-NK2SPUZM.js.map} +0 -0
- /package/dist/{chunk-E7QS33NG.js.map → chunk-OOJKE6CS.js.map} +0 -0
- /package/dist/{chunk-ZXNJ62WU.js.map → chunk-OTTTWHGG.js.map} +0 -0
- /package/dist/{chunk-7RQGIDZS.js.map → chunk-Q2QMI4BF.js.map} +0 -0
- /package/dist/{chunk-VHWPECJP.js.map → chunk-QIFL2V2V.js.map} +0 -0
- /package/dist/{chunk-ZT6XN5WB.js.map → chunk-R2LRDAAW.js.map} +0 -0
- /package/dist/{chunk-HQ6SVOPG.js.map → chunk-RNZT6QB7.js.map} +0 -0
- /package/dist/{chunk-JGTEN44K.js.map → chunk-TEU5TOG6.js.map} +0 -0
- /package/dist/{chunk-DDLCPDRH.js.map → chunk-UAETMES5.js.map} +0 -0
- /package/dist/{chunk-WVDK4LXO.js.map → chunk-UAISHDHO.js.map} +0 -0
- /package/dist/{chunk-G7SKFCQY.js.map → chunk-VJCBCXZI.js.map} +0 -0
- /package/dist/{chunk-SIH4IGN7.js.map → chunk-WM225FLX.js.map} +0 -0
- /package/dist/{chunk-BHLOSRIV.js.map → chunk-X5MSGU2U.js.map} +0 -0
- /package/dist/{chunk-BNE3CU3H.js.map → chunk-XGCZFUMJ.js.map} +0 -0
- /package/dist/{chunk-CXQVXTMI.js.map → chunk-ZQ7OJWXM.js.map} +0 -0
- /package/dist/{cli-HR6HTUYW.js.map → cli-NG3YYZRK.js.map} +0 -0
- /package/dist/{commands-MZCSUZUW.js.map → commands-RE3MQCKI.js.map} +0 -0
- /package/dist/{config-DAMFM7EH.js.map → config-YUERA7XQ.js.map} +0 -0
- /package/dist/{context-6RG46SPP.js.map → context-3JGBPJPL.js.map} +0 -0
- /package/dist/{customCommands-H2QBK44G.js.map → customCommands-5VN7LG2J.js.map} +0 -0
- /package/dist/{env-YT3FZNAS.js.map → env-2M5CUX6B.js.map} +0 -0
- /package/dist/{file-VOA7AF7B.js.map → file-VLK6GNZ3.js.map} +0 -0
- /package/dist/{llm-3NHC22VK.js.map → llm-M76S3CJV.js.map} +0 -0
- /package/dist/{llmLazy-6VIID66N.js.map → llmLazy-YSGYORL4.js.map} +0 -0
- /package/dist/{loader-EEVSF7SI.js.map → loader-4T4GQLZ6.js.map} +0 -0
- /package/dist/{lsp-UZ77VCEB.js.map → lsp-IOOPHSFB.js.map} +0 -0
- /package/dist/{lspAnchor-PQWKR4HW.js.map → lspAnchor-7EDHEQGJ.js.map} +0 -0
- /package/dist/{mcp-RETVF4ZI.js.map → mcp-QVVPXKJ6.js.map} +0 -0
- /package/dist/{mentionProcessor-K7Y4MNSM.js.map → mentionProcessor-GWPVSAN2.js.map} +0 -0
- /package/dist/{messages-Y447K4GA.js.map → messages-FS6KZMLG.js.map} +0 -0
- /package/dist/{model-LI7LTOD2.js.map → model-TQAXC67I.js.map} +0 -0
- /package/dist/{openai-P6KN32LM.js.map → openai-ZWO7JLLH.js.map} +0 -0
- /package/dist/{outputStyles-D7BAB3LV.js.map → outputStyles-VGCAIYRU.js.map} +0 -0
- /package/dist/{pluginRuntime-ESYI3LF2.js.map → pluginRuntime-RSJEXGOD.js.map} +0 -0
- /package/dist/{pluginValidation-HXJ36PVU.js.map → pluginValidation-VWNTSYWS.js.map} +0 -0
- /package/dist/{prompts-TBBOASPW.js.map → prompts-QVRRWN2T.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-35LWV3PO.js.map → pybAgentSessionLoad-GY54HDVB.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-XXGQMCDY.js.map → pybAgentSessionResume-MXFXV536.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-OSD6QCO3.js.map → pybAgentStreamJsonSession-FAA6TAMV.js.map} +0 -0
- /package/dist/{pybHooks-V6ZEVAIP.js.map → pybHooks-VIQBZIA7.js.map} +0 -0
- /package/dist/{query-2YNWNMEP.js.map → query-ESPAHEDS.js.map} +0 -0
- /package/dist/{registry-QN2RD3OQ.js.map → registry-K67LTK3T.js.map} +0 -0
- /package/dist/{ripgrep-5ADOVGXG.js.map → ripgrep-SG2OK6YC.js.map} +0 -0
- /package/dist/{skillMarketplace-KIIGENMN.js.map → skillMarketplace-APL6T7CE.js.map} +0 -0
- /package/dist/{state-JO77CSX6.js.map → state-2Y4GT7YG.js.map} +0 -0
- /package/dist/{theme-WIOLK2X2.js.map → theme-JEUXNORG.js.map} +0 -0
- /package/dist/{toolPermissionSettings-3FRKK44Q.js.map → toolPermissionSettings-YALIBD5Y.js.map} +0 -0
- /package/dist/{tools-WE4P7ZLW.js.map → tools-GUOPA5QB.js.map} +0 -0
- /package/dist/{userInput-IICDTVUH.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();
|
|
@@ -25216,7 +25241,7 @@ function useStatusLine() {
|
|
|
25216
25241
|
// src/ui/components/PromptInput.tsx
|
|
25217
25242
|
async function interpretHashCommand(input) {
|
|
25218
25243
|
try {
|
|
25219
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25244
|
+
const { queryQuick: queryQuick2 } = await import("./llm-M76S3CJV.js");
|
|
25220
25245
|
const systemPrompt = [
|
|
25221
25246
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25222
25247
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25529,7 +25554,7 @@ function PromptInput({
|
|
|
25529
25554
|
if (messages2.length) {
|
|
25530
25555
|
if (mode === "bash") {
|
|
25531
25556
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25532
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25557
|
+
const { getCwd: getCwd2 } = await import("./state-2Y4GT7YG.js");
|
|
25533
25558
|
setCurrentPwd(getCwd2());
|
|
25534
25559
|
});
|
|
25535
25560
|
} else {
|
|
@@ -28708,7 +28733,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28708
28733
|
// src/commands/agents/generation.ts
|
|
28709
28734
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28710
28735
|
async function generateAgentWithClaude(prompt) {
|
|
28711
|
-
const { queryModel } = await import("./llm-
|
|
28736
|
+
const { queryModel } = await import("./llm-M76S3CJV.js");
|
|
28712
28737
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28713
28738
|
|
|
28714
28739
|
Return your response as a JSON object with exactly these fields:
|