pybao-cli 1.4.23 → 1.4.25
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-Q3IP3BNQ.js +47 -0
- package/dist/{acp-BULSLBXW.js → acp-AUKWBWMU.js} +29 -29
- package/dist/{agentsValidate-XK6HFRE3.js → agentsValidate-POOZ6Z2B.js} +7 -7
- package/dist/{ask-CHHIXOXO.js → ask-KWA2DNIV.js} +28 -28
- package/dist/{autoUpdater-F52ASP4F.js → autoUpdater-EOXG42SO.js} +3 -3
- package/dist/{chunk-SVK3QM2C.js → chunk-47EXCNW6.js} +1 -1
- package/dist/{chunk-O5KZI3YH.js → chunk-4V6WD6R2.js} +1 -1
- package/dist/{chunk-ULQSUYSA.js → chunk-5UOVQ6ES.js} +2 -2
- package/dist/{chunk-R5K34F6R.js → chunk-66JIUGLV.js} +2 -2
- package/dist/{chunk-4ZSU3OZ6.js → chunk-6BRCM2E4.js} +2 -2
- package/dist/{chunk-3B5N6KJ3.js → chunk-BQYXHHWP.js} +3 -3
- package/dist/{chunk-FTCTJVRI.js → chunk-CPXJHNYY.js} +1 -1
- package/dist/{chunk-H6PS4HLY.js → chunk-DD2OYKDE.js} +4 -4
- package/dist/{chunk-BINDCBXO.js → chunk-DT4HVZ3Y.js} +2 -2
- package/dist/{chunk-OA52S6EG.js → chunk-GTEB77DG.js} +1 -1
- package/dist/{chunk-WSNQK7U6.js → chunk-IPYLXGFV.js} +3 -3
- package/dist/{chunk-HTOXNS5I.js → chunk-J46HCSM3.js} +1 -1
- package/dist/{chunk-IBTZUZV3.js → chunk-JLQ6NN6N.js} +2 -2
- package/dist/{chunk-U3YD6YWE.js → chunk-JSR26OQG.js} +62 -54
- package/dist/chunk-JSR26OQG.js.map +7 -0
- package/dist/{chunk-HPMN645R.js → chunk-JUE7XD3T.js} +1 -1
- package/dist/{chunk-OP4HXVJV.js → chunk-MUD34BHM.js} +4 -4
- package/dist/{chunk-VLBEL6D6.js → chunk-MXDHTE5J.js} +1 -1
- package/dist/{chunk-DDZZSFSL.js → chunk-MXJWHBOD.js} +3 -3
- package/dist/{chunk-MSQBQRIZ.js → chunk-NDFJPKT7.js} +132 -118
- package/dist/chunk-NDFJPKT7.js.map +7 -0
- package/dist/{chunk-ZKPZZK6Q.js → chunk-NWRTSS7D.js} +2 -2
- package/dist/{chunk-JG7HSLQJ.js → chunk-OEH4JATH.js} +1 -1
- package/dist/{chunk-IPQEUH7Y.js → chunk-QYIH3X4U.js} +3 -3
- package/dist/{chunk-MU36RHVD.js → chunk-R47CUCI3.js} +1 -1
- package/dist/{chunk-MU36RHVD.js.map → chunk-R47CUCI3.js.map} +1 -1
- package/dist/{chunk-MFITVCYP.js → chunk-RPFER2VQ.js} +2 -2
- package/dist/{chunk-K2F63XTZ.js → chunk-S75DS5IC.js} +1 -1
- package/dist/{chunk-4YZYVO3X.js → chunk-SVQXV5Q5.js} +4 -4
- package/dist/{chunk-SXU6K3KK.js → chunk-T52MGYKQ.js} +3 -3
- package/dist/{chunk-TA352DY7.js → chunk-VUISUCOO.js} +3 -3
- package/dist/{chunk-JPQEPGUN.js → chunk-Z6TEUSJQ.js} +3 -3
- package/dist/{chunk-AQRAUP3K.js → chunk-ZOWRLM6Q.js} +4 -4
- package/dist/{cli-P7ZRHXA7.js → cli-IELXRUTX.js} +87 -87
- package/dist/commands-QXWCHX5K.js +51 -0
- package/dist/{config-3SQ2GLRY.js → config-77DZQTQK.js} +4 -4
- package/dist/{context-UDKEAR7H.js → context-KLUMCLFT.js} +6 -6
- package/dist/{customCommands-ZYFHVJU4.js → customCommands-ISEA2746.js} +4 -4
- package/dist/{env-7IJPGPRE.js → env-J4F7PRGG.js} +2 -2
- package/dist/{file-233VYJD7.js → file-KRCHS5A5.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-LTIEK6SX.js → llm-6XARMLJR.js} +29 -29
- package/dist/{llmLazy-ZPAPB6NT.js → llmLazy-GRPZWGAK.js} +1 -1
- package/dist/{loader-IYP45QGM.js → loader-WUNIG65J.js} +4 -4
- package/dist/{lsp-AOUZCFA3.js → lsp-DL76IXYS.js} +6 -6
- package/dist/{lspAnchor-EZDNIYOV.js → lspAnchor-VPPXXUNO.js} +6 -6
- package/dist/{mcp-VMNM3CO7.js → mcp-KY56TM6T.js} +7 -7
- package/dist/{mentionProcessor-YXN2GAEN.js → mentionProcessor-E3ITBICV.js} +5 -5
- package/dist/{messages-FAB37FVM.js → messages-DT4HTEOS.js} +1 -1
- package/dist/{model-GDTLCRIW.js → model-KCH57MST.js} +5 -5
- package/dist/{openai-NLP7KW7V.js → openai-BNPU7EJH.js} +5 -5
- package/dist/{outputStyles-ENTPTKOL.js → outputStyles-QE2JKRBE.js} +4 -4
- package/dist/{pluginRuntime-BSLEOQAU.js → pluginRuntime-NB3KNFSZ.js} +6 -6
- package/dist/{pluginValidation-EGTZ2S7C.js → pluginValidation-KVCOIKER.js} +6 -6
- package/dist/prompts-QIFYQCCH.js +53 -0
- package/dist/{pybAgentSessionLoad-ZJLIXBYJ.js → pybAgentSessionLoad-SCPRT5NR.js} +4 -4
- package/dist/{pybAgentSessionResume-LMFV4NVD.js → pybAgentSessionResume-VKEMMVH7.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-EO4EA4WK.js → pybAgentStreamJsonSession-G6TCRJIW.js} +1 -1
- package/dist/{pybHooks-TRJZDORZ.js → pybHooks-T6RPQN5F.js} +4 -4
- package/dist/query-AA5M6NJ4.js +55 -0
- package/dist/{registry-W6PQWHR6.js → registry-CZRNYJ22.js} +5 -5
- package/dist/{ripgrep-VFOC3NXK.js → ripgrep-URB4ZUF3.js} +3 -3
- package/dist/{skillMarketplace-YXY4TYDN.js → skillMarketplace-NC4WL6B5.js} +3 -3
- package/dist/{state-RV76XVHT.js → state-DXHBJ5GD.js} +2 -2
- package/dist/{theme-ZIJ7YDIM.js → theme-CJU6VJXX.js} +5 -5
- package/dist/{toolPermissionSettings-SRZI2ZPY.js → toolPermissionSettings-F3CNX7NA.js} +6 -6
- package/dist/tools-UZYXHSUA.js +52 -0
- package/dist/{userInput-F4LCGFPW.js → userInput-GIXZP2YY.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-HPH2QB4W.js +0 -47
- package/dist/chunk-MSQBQRIZ.js.map +0 -7
- package/dist/chunk-U3YD6YWE.js.map +0 -7
- package/dist/commands-NTLVHHGN.js +0 -51
- package/dist/prompts-3RRL3KO4.js +0 -53
- package/dist/query-JKRYFHRI.js +0 -55
- package/dist/tools-QC4A5U2A.js +0 -52
- /package/dist/{REPL-HPH2QB4W.js.map → REPL-Q3IP3BNQ.js.map} +0 -0
- /package/dist/{acp-BULSLBXW.js.map → acp-AUKWBWMU.js.map} +0 -0
- /package/dist/{agentsValidate-XK6HFRE3.js.map → agentsValidate-POOZ6Z2B.js.map} +0 -0
- /package/dist/{ask-CHHIXOXO.js.map → ask-KWA2DNIV.js.map} +0 -0
- /package/dist/{autoUpdater-F52ASP4F.js.map → autoUpdater-EOXG42SO.js.map} +0 -0
- /package/dist/{chunk-SVK3QM2C.js.map → chunk-47EXCNW6.js.map} +0 -0
- /package/dist/{chunk-O5KZI3YH.js.map → chunk-4V6WD6R2.js.map} +0 -0
- /package/dist/{chunk-ULQSUYSA.js.map → chunk-5UOVQ6ES.js.map} +0 -0
- /package/dist/{chunk-R5K34F6R.js.map → chunk-66JIUGLV.js.map} +0 -0
- /package/dist/{chunk-4ZSU3OZ6.js.map → chunk-6BRCM2E4.js.map} +0 -0
- /package/dist/{chunk-3B5N6KJ3.js.map → chunk-BQYXHHWP.js.map} +0 -0
- /package/dist/{chunk-FTCTJVRI.js.map → chunk-CPXJHNYY.js.map} +0 -0
- /package/dist/{chunk-H6PS4HLY.js.map → chunk-DD2OYKDE.js.map} +0 -0
- /package/dist/{chunk-BINDCBXO.js.map → chunk-DT4HVZ3Y.js.map} +0 -0
- /package/dist/{chunk-OA52S6EG.js.map → chunk-GTEB77DG.js.map} +0 -0
- /package/dist/{chunk-WSNQK7U6.js.map → chunk-IPYLXGFV.js.map} +0 -0
- /package/dist/{chunk-HTOXNS5I.js.map → chunk-J46HCSM3.js.map} +0 -0
- /package/dist/{chunk-IBTZUZV3.js.map → chunk-JLQ6NN6N.js.map} +0 -0
- /package/dist/{chunk-HPMN645R.js.map → chunk-JUE7XD3T.js.map} +0 -0
- /package/dist/{chunk-OP4HXVJV.js.map → chunk-MUD34BHM.js.map} +0 -0
- /package/dist/{chunk-VLBEL6D6.js.map → chunk-MXDHTE5J.js.map} +0 -0
- /package/dist/{chunk-DDZZSFSL.js.map → chunk-MXJWHBOD.js.map} +0 -0
- /package/dist/{chunk-ZKPZZK6Q.js.map → chunk-NWRTSS7D.js.map} +0 -0
- /package/dist/{chunk-JG7HSLQJ.js.map → chunk-OEH4JATH.js.map} +0 -0
- /package/dist/{chunk-IPQEUH7Y.js.map → chunk-QYIH3X4U.js.map} +0 -0
- /package/dist/{chunk-MFITVCYP.js.map → chunk-RPFER2VQ.js.map} +0 -0
- /package/dist/{chunk-K2F63XTZ.js.map → chunk-S75DS5IC.js.map} +0 -0
- /package/dist/{chunk-4YZYVO3X.js.map → chunk-SVQXV5Q5.js.map} +0 -0
- /package/dist/{chunk-SXU6K3KK.js.map → chunk-T52MGYKQ.js.map} +0 -0
- /package/dist/{chunk-TA352DY7.js.map → chunk-VUISUCOO.js.map} +0 -0
- /package/dist/{chunk-JPQEPGUN.js.map → chunk-Z6TEUSJQ.js.map} +0 -0
- /package/dist/{chunk-AQRAUP3K.js.map → chunk-ZOWRLM6Q.js.map} +0 -0
- /package/dist/{cli-P7ZRHXA7.js.map → cli-IELXRUTX.js.map} +0 -0
- /package/dist/{commands-NTLVHHGN.js.map → commands-QXWCHX5K.js.map} +0 -0
- /package/dist/{config-3SQ2GLRY.js.map → config-77DZQTQK.js.map} +0 -0
- /package/dist/{context-UDKEAR7H.js.map → context-KLUMCLFT.js.map} +0 -0
- /package/dist/{customCommands-ZYFHVJU4.js.map → customCommands-ISEA2746.js.map} +0 -0
- /package/dist/{env-7IJPGPRE.js.map → env-J4F7PRGG.js.map} +0 -0
- /package/dist/{file-233VYJD7.js.map → file-KRCHS5A5.js.map} +0 -0
- /package/dist/{llm-LTIEK6SX.js.map → llm-6XARMLJR.js.map} +0 -0
- /package/dist/{llmLazy-ZPAPB6NT.js.map → llmLazy-GRPZWGAK.js.map} +0 -0
- /package/dist/{loader-IYP45QGM.js.map → loader-WUNIG65J.js.map} +0 -0
- /package/dist/{lsp-AOUZCFA3.js.map → lsp-DL76IXYS.js.map} +0 -0
- /package/dist/{lspAnchor-EZDNIYOV.js.map → lspAnchor-VPPXXUNO.js.map} +0 -0
- /package/dist/{mcp-VMNM3CO7.js.map → mcp-KY56TM6T.js.map} +0 -0
- /package/dist/{mentionProcessor-YXN2GAEN.js.map → mentionProcessor-E3ITBICV.js.map} +0 -0
- /package/dist/{messages-FAB37FVM.js.map → messages-DT4HTEOS.js.map} +0 -0
- /package/dist/{model-GDTLCRIW.js.map → model-KCH57MST.js.map} +0 -0
- /package/dist/{openai-NLP7KW7V.js.map → openai-BNPU7EJH.js.map} +0 -0
- /package/dist/{outputStyles-ENTPTKOL.js.map → outputStyles-QE2JKRBE.js.map} +0 -0
- /package/dist/{pluginRuntime-BSLEOQAU.js.map → pluginRuntime-NB3KNFSZ.js.map} +0 -0
- /package/dist/{pluginValidation-EGTZ2S7C.js.map → pluginValidation-KVCOIKER.js.map} +0 -0
- /package/dist/{prompts-3RRL3KO4.js.map → prompts-QIFYQCCH.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-ZJLIXBYJ.js.map → pybAgentSessionLoad-SCPRT5NR.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-LMFV4NVD.js.map → pybAgentSessionResume-VKEMMVH7.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-EO4EA4WK.js.map → pybAgentStreamJsonSession-G6TCRJIW.js.map} +0 -0
- /package/dist/{pybHooks-TRJZDORZ.js.map → pybHooks-T6RPQN5F.js.map} +0 -0
- /package/dist/{query-JKRYFHRI.js.map → query-AA5M6NJ4.js.map} +0 -0
- /package/dist/{registry-W6PQWHR6.js.map → registry-CZRNYJ22.js.map} +0 -0
- /package/dist/{ripgrep-VFOC3NXK.js.map → ripgrep-URB4ZUF3.js.map} +0 -0
- /package/dist/{skillMarketplace-YXY4TYDN.js.map → skillMarketplace-NC4WL6B5.js.map} +0 -0
- /package/dist/{state-RV76XVHT.js.map → state-DXHBJ5GD.js.map} +0 -0
- /package/dist/{theme-ZIJ7YDIM.js.map → theme-CJU6VJXX.js.map} +0 -0
- /package/dist/{toolPermissionSettings-SRZI2ZPY.js.map → toolPermissionSettings-F3CNX7NA.js.map} +0 -0
- /package/dist/{tools-QC4A5U2A.js.map → tools-UZYXHSUA.js.map} +0 -0
- /package/dist/{userInput-F4LCGFPW.js.map → userInput-GIXZP2YY.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-BQYXHHWP.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GTEB77DG.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JUE7XD3T.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JLQ6NN6N.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-T52MGYKQ.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5UOVQ6ES.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NWRTSS7D.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SVQXV5Q5.js";
|
|
48
48
|
import {
|
|
49
49
|
DEFAULT_TIMEOUT_MS,
|
|
50
50
|
FallbackToolUseRejectedMessage,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
listMCPServers,
|
|
59
59
|
loadMergedSettings,
|
|
60
60
|
normalizeSandboxRuntimeConfigFromSettings
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-DD2OYKDE.js";
|
|
62
62
|
import {
|
|
63
63
|
addMarketplace,
|
|
64
64
|
disableSkillPlugin,
|
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
refreshMarketplaceAsync,
|
|
72
72
|
removeMarketplace,
|
|
73
73
|
uninstallSkillPlugin
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-47EXCNW6.js";
|
|
75
75
|
import {
|
|
76
76
|
loadToolPermissionContextFromDisk,
|
|
77
77
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-QYIH3X4U.js";
|
|
79
79
|
import {
|
|
80
80
|
applyToolPermissionContextUpdate,
|
|
81
81
|
createDefaultToolPermissionContext
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
resetReminderSession,
|
|
89
89
|
setTodos,
|
|
90
90
|
systemReminderService
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-DT4HVZ3Y.js";
|
|
92
92
|
import {
|
|
93
93
|
getSessionState
|
|
94
94
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
getActiveAgents,
|
|
98
98
|
getAgentByType,
|
|
99
99
|
getAllAgents
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-RPFER2VQ.js";
|
|
101
101
|
import {
|
|
102
102
|
API_ERROR_MESSAGE_PREFIX,
|
|
103
103
|
CANCEL_MESSAGE,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
processUserInput,
|
|
128
128
|
reorderMessages,
|
|
129
129
|
stripSystemMessages
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-MXDHTE5J.js";
|
|
131
131
|
import {
|
|
132
132
|
getRequestStatus,
|
|
133
133
|
setRequestStatus,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
normalizeFilePath,
|
|
158
158
|
readTextContent,
|
|
159
159
|
writeTextContent
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-66JIUGLV.js";
|
|
161
161
|
import {
|
|
162
162
|
parseBlockEdits
|
|
163
163
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -167,18 +167,18 @@ import {
|
|
|
167
167
|
ParserRegistry,
|
|
168
168
|
initParser,
|
|
169
169
|
loadLanguage
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-ZOWRLM6Q.js";
|
|
171
171
|
import {
|
|
172
172
|
getSettingsFileCandidates,
|
|
173
173
|
loadSettingsWithLegacyFallback,
|
|
174
174
|
readSettingsFile
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-CPXJHNYY.js";
|
|
176
176
|
import {
|
|
177
177
|
getCustomCommandDirectories,
|
|
178
178
|
hasCustomCommands,
|
|
179
179
|
loadCustomCommands,
|
|
180
180
|
reloadCustomCommands
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-6BRCM2E4.js";
|
|
182
182
|
import {
|
|
183
183
|
getSessionPlugins
|
|
184
184
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
ModelManager,
|
|
187
187
|
getModelManager,
|
|
188
188
|
isDefaultSlowAndCapableModel
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-IPYLXGFV.js";
|
|
190
190
|
import {
|
|
191
191
|
getCodeStyle,
|
|
192
192
|
getContext,
|
|
@@ -194,13 +194,13 @@ import {
|
|
|
194
194
|
getIsGit,
|
|
195
195
|
getProjectDocs,
|
|
196
196
|
getProjectStructureStatisticsBlock
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-MUD34BHM.js";
|
|
198
198
|
import {
|
|
199
199
|
ripGrep
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-4V6WD6R2.js";
|
|
201
201
|
import {
|
|
202
202
|
getTheme
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-S75DS5IC.js";
|
|
204
204
|
import {
|
|
205
205
|
DEFAULT_GLOBAL_CONFIG,
|
|
206
206
|
enableConfigs,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
saveGlobalConfig,
|
|
214
214
|
setAllPointersToModel,
|
|
215
215
|
setModelPointer
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-Z6TEUSJQ.js";
|
|
217
217
|
import {
|
|
218
218
|
AbortError
|
|
219
219
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
getCurrentRequest,
|
|
223
223
|
logUserFriendly,
|
|
224
224
|
markPhase
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-OEH4JATH.js";
|
|
226
226
|
import {
|
|
227
227
|
ASCII_LOGO,
|
|
228
228
|
BunShell,
|
|
@@ -262,10 +262,10 @@ import {
|
|
|
262
262
|
setCwd,
|
|
263
263
|
shouldApplyToolOutputTruncation,
|
|
264
264
|
truncateToolOutput
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-J46HCSM3.js";
|
|
266
266
|
import {
|
|
267
267
|
MACRO
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-R47CUCI3.js";
|
|
269
269
|
import {
|
|
270
270
|
__export
|
|
271
271
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -446,7 +446,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
446
446
|
var getCommandPrefix = memoize(
|
|
447
447
|
async (command4, abortSignal) => {
|
|
448
448
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
449
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
449
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-6XARMLJR.js");
|
|
450
450
|
const response = await queryQuick2({
|
|
451
451
|
systemPrompt,
|
|
452
452
|
userPrompt,
|
|
@@ -4248,7 +4248,7 @@ function formatParseError(error) {
|
|
|
4248
4248
|
return error instanceof Error ? error.message : String(error);
|
|
4249
4249
|
}
|
|
4250
4250
|
async function defaultGateQuery(args) {
|
|
4251
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4251
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-6XARMLJR.js");
|
|
4252
4252
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4253
4253
|
const messages = [
|
|
4254
4254
|
{
|
|
@@ -6509,7 +6509,7 @@ var FileEditTool = {
|
|
|
6509
6509
|
const originalFileContent = currentFileContent;
|
|
6510
6510
|
let totalPatch = [];
|
|
6511
6511
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6512
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6512
|
+
const { findLspAnchor } = await import("./lspAnchor-VPPXXUNO.js");
|
|
6513
6513
|
for (const op of editOperations) {
|
|
6514
6514
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6515
6515
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -7790,15 +7790,20 @@ import { z as z6 } from "zod";
|
|
|
7790
7790
|
// src/tools/filesystem/GlobTool/prompt.ts
|
|
7791
7791
|
var TOOL_NAME_FOR_PROMPT2 = "Glob";
|
|
7792
7792
|
var DESCRIPTION4 = `- Fast file pattern matching tool that works with any codebase size
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
-
|
|
7796
|
-
-
|
|
7797
|
-
-
|
|
7798
|
-
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
-
|
|
7793
|
+
|
|
7794
|
+
## WhenToUse & Best Practice
|
|
7795
|
+
- If a path is inferred or similar to existing names, run Glob in the confirmed parent directory (e.g., resources/*query* or resources/*queries*) before running LS on the full path.
|
|
7796
|
+
- When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead
|
|
7797
|
+
- 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.
|
|
7798
|
+
- This tool is for FINDING files. To SEE the directory structure tree, use the LS tool.
|
|
7799
|
+
|
|
7800
|
+
## Usage Details
|
|
7801
|
+
- Supports glob patterns like "**/*.js" or "src/**/*.ts"
|
|
7802
|
+
- Returns matching file paths sorted by modification time
|
|
7803
|
+
- Use this tool when you need to find files by name patterns
|
|
7804
|
+
- **Semantic Search**: Set \`semantic: true\` to use LSP workspace symbols when file-name matching fails. The \`pattern\` is treated as the symbol name.
|
|
7805
|
+
- Semantic search is explicit: enable it only when normal matching fails or semantic lookup is required.
|
|
7806
|
+
- If LSP is unavailable, it falls back to standard glob results without impacting the main file-finding flow.
|
|
7802
7807
|
`;
|
|
7803
7808
|
|
|
7804
7809
|
// src/tools/filesystem/GlobTool/GlobTool.tsx
|
|
@@ -7961,24 +7966,27 @@ import { z as z7 } from "zod";
|
|
|
7961
7966
|
var TOOL_NAME_FOR_PROMPT3 = "Grep";
|
|
7962
7967
|
var DESCRIPTION5 = `A powerful search tool built on ripgrep
|
|
7963
7968
|
|
|
7964
|
-
|
|
7969
|
+
## Best Practice
|
|
7970
|
+
- Use Grep as a "Scout" to *find* entry points based on text patterns.
|
|
7971
|
+
- STEP 1: Search for a unique string (e.g., error message, URL route, specific variable name).
|
|
7972
|
+
- STEP 2: Once you get a match (File + Line Number), STOP grepping.
|
|
7973
|
+
- STEP 3: Switch to LspTool immediately. Use the line number from Grep to jump to definition or find references.
|
|
7974
|
+
- AVOID: Do not use Grep to trace execution flow (e.g., searching for "functionName" manually). Use LSP for that.
|
|
7975
|
+
- 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.
|
|
7976
|
+
|
|
7977
|
+
## Usage Details
|
|
7965
7978
|
- 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.
|
|
7966
7979
|
- Supports full regex syntax (e.g., "log.*Error", "function\\s+\\w+")
|
|
7967
7980
|
- Filter files with glob parameter (e.g., "*.js", "**/*.tsx") or type parameter (e.g., "js", "py", "rust")
|
|
7981
|
+
- Path guidance: If the user provides a path, use it directly. If the path is uncertain or model-inferred, confirm with LS/Glob first; otherwise search from the current working directory.
|
|
7968
7982
|
- Output modes: "content" shows matching lines, "files_with_matches" shows only file paths (default), "count" shows match counts
|
|
7969
|
-
- Use Task tool for open-ended searches requiring multiple rounds
|
|
7970
7983
|
- Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use \`interface\\{\\}\` to find \`interface{}\` in Go code)
|
|
7971
7984
|
- Multiline matching: By default patterns match within single lines only. For cross-line patterns like \`struct \\{[\\s\\S]*?field\`, use \`multiline: true\`
|
|
7972
7985
|
- Semantic search: Set \`semantic: true\` to use LSP workspace symbols when text search yields no results or when you explicitly need symbol-based lookup. The \`pattern\` is treated as the symbol name.
|
|
7973
|
-
-
|
|
7986
|
+
- Semantic search is explicit: enable only when normal search has no results or when symbol-level lookup is required
|
|
7974
7987
|
- Semantic output format: \`file:line: name (Kind)\` for quick follow-up reads
|
|
7975
|
-
- LSP
|
|
7976
|
-
-
|
|
7977
|
-
- STEP 1: Search for a unique string (e.g., error message, URL route, specific variable name).
|
|
7978
|
-
- STEP 2: Once you get a match (File + Line Number), STOP grepping.
|
|
7979
|
-
- STEP 3: Switch to LspTool immediately. Use the line number from Grep to jump to definition or find references.
|
|
7980
|
-
- AVOID: Do not use Grep to trace execution flow (e.g., searching for "functionName" manually). Use LSP for that.
|
|
7981
|
-
- \u70ED\u70B9\u5B9A\u4F4D\u7B56\u7565\uFF1A\u5148\u7F29\u5C0F\u8DEF\u5F84\u8303\u56F4\uFF0C\u518D\u5206\u9875\u6216\u8FDB\u4E00\u6B65\u641C\u7D22\uFF1B\u622A\u65AD\u540E\u4F18\u5148\u805A\u7126\u70ED\u70B9\u76EE\u5F55\uFF0C\u907F\u514D\u5168\u5E93\u904D\u5386\u3002
|
|
7988
|
+
- If LSP is unavailable, fall back to plain text search results
|
|
7989
|
+
- Use Task tool for open-ended searches requiring multiple rounds
|
|
7982
7990
|
`;
|
|
7983
7991
|
|
|
7984
7992
|
// src/tools/search/GrepTool/GrepTool.tsx
|
|
@@ -11077,7 +11085,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11077
11085
|
}
|
|
11078
11086
|
saveGlobalConfig(config2);
|
|
11079
11087
|
try {
|
|
11080
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11088
|
+
const { resetAnthropicClient } = await import("./llm-6XARMLJR.js");
|
|
11081
11089
|
resetAnthropicClient();
|
|
11082
11090
|
} catch {
|
|
11083
11091
|
}
|
|
@@ -15359,7 +15367,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15359
15367
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15360
15368
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15361
15369
|
if (dirs.length === 0) return [];
|
|
15362
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15370
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-NB3KNFSZ.js");
|
|
15363
15371
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15364
15372
|
return errors;
|
|
15365
15373
|
}
|
|
@@ -16028,7 +16036,7 @@ async function call(onDone, context) {
|
|
|
16028
16036
|
ModelConfig,
|
|
16029
16037
|
{
|
|
16030
16038
|
onClose: () => {
|
|
16031
|
-
import("./model-
|
|
16039
|
+
import("./model-KCH57MST.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16032
16040
|
reloadModelManager2();
|
|
16033
16041
|
triggerModelConfigChange();
|
|
16034
16042
|
onDone();
|
|
@@ -23763,7 +23771,7 @@ function useStatusLine() {
|
|
|
23763
23771
|
// src/ui/components/PromptInput.tsx
|
|
23764
23772
|
async function interpretHashCommand(input) {
|
|
23765
23773
|
try {
|
|
23766
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23774
|
+
const { queryQuick: queryQuick2 } = await import("./llm-6XARMLJR.js");
|
|
23767
23775
|
const systemPrompt = [
|
|
23768
23776
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23769
23777
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24076,7 +24084,7 @@ function PromptInput({
|
|
|
24076
24084
|
if (messages2.length) {
|
|
24077
24085
|
if (mode === "bash") {
|
|
24078
24086
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24079
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24087
|
+
const { getCwd: getCwd2 } = await import("./state-DXHBJ5GD.js");
|
|
24080
24088
|
setCurrentPwd(getCwd2());
|
|
24081
24089
|
});
|
|
24082
24090
|
} else {
|
|
@@ -26946,7 +26954,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26946
26954
|
// src/commands/agents/generation.ts
|
|
26947
26955
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26948
26956
|
async function generateAgentWithClaude(prompt) {
|
|
26949
|
-
const { queryModel } = await import("./llm-
|
|
26957
|
+
const { queryModel } = await import("./llm-6XARMLJR.js");
|
|
26950
26958
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26951
26959
|
|
|
26952
26960
|
Return your response as a JSON object with exactly these fields:
|