pybao-cli 1.4.20 → 1.4.22
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-OA5CBUXV.js +47 -0
- package/dist/{acp-7IKVSDRE.js → acp-JQNSVEGV.js} +29 -29
- package/dist/{agentsValidate-MXZK3WLA.js → agentsValidate-SIRSYHFV.js} +7 -7
- package/dist/{ask-4NJV4KNG.js → ask-PJF45F7L.js} +28 -28
- package/dist/{autoUpdater-357WOWMJ.js → autoUpdater-NMUBY2X2.js} +3 -3
- package/dist/{chunk-6PHMM6CK.js → chunk-3HGB47VS.js} +22 -19
- package/dist/chunk-3HGB47VS.js.map +7 -0
- package/dist/{chunk-FNDPX2JX.js → chunk-4ROPZ2KS.js} +1 -1
- package/dist/{chunk-PO7T45UP.js → chunk-6KUHFC2Z.js} +3 -3
- package/dist/{chunk-DA4CYUZK.js → chunk-A4AWHSSA.js} +1 -1
- package/dist/{chunk-AL66JIGV.js → chunk-AK5PCDXL.js} +4 -4
- package/dist/{chunk-BI7XI3C7.js → chunk-BSF6SQU2.js} +3 -3
- package/dist/{chunk-UBAHTFMY.js → chunk-CCP6LPOD.js} +3 -3
- package/dist/{chunk-GRHNH5IN.js → chunk-CFGDB4HZ.js} +3 -3
- package/dist/{chunk-INAI34IU.js → chunk-COQVH5YO.js} +3 -3
- package/dist/{chunk-DKCXGLIO.js → chunk-DMZ26YAR.js} +2 -2
- package/dist/{chunk-HPFWNZPJ.js → chunk-FXLI3PIJ.js} +1 -1
- package/dist/{chunk-A3IFN4KV.js → chunk-HDYOV3IB.js} +2 -2
- package/dist/{chunk-UW36JXPY.js → chunk-HSR2UCV2.js} +2 -2
- package/dist/{chunk-45UZQDMO.js → chunk-HXRQ5XUC.js} +4 -4
- package/dist/{chunk-OW44SAPB.js → chunk-IYIJPGWY.js} +1 -1
- package/dist/{chunk-7TEBOXLO.js → chunk-LWJYPTRD.js} +3 -3
- package/dist/{chunk-3WA53ERF.js → chunk-MRRPYVYP.js} +2 -2
- package/dist/{chunk-WWASAJA2.js → chunk-MU74SS73.js} +1 -1
- package/dist/{chunk-55XWFTOT.js → chunk-NKH3YHNP.js} +2 -2
- package/dist/{chunk-55KKOHTV.js → chunk-PMJMJHAY.js} +1 -1
- package/dist/{chunk-55KKOHTV.js.map → chunk-PMJMJHAY.js.map} +1 -1
- package/dist/{chunk-A75FG2Q5.js → chunk-QFKEM667.js} +3 -3
- package/dist/{chunk-MWLXPCXA.js → chunk-SKBREVBZ.js} +1 -1
- package/dist/{chunk-MFNYF4BU.js → chunk-SSO66X53.js} +1 -1
- package/dist/{chunk-N5KDD46U.js → chunk-TNZH4HPF.js} +4 -4
- package/dist/{chunk-KRDUIY3J.js → chunk-TVUZVWPL.js} +57 -56
- package/dist/chunk-TVUZVWPL.js.map +7 -0
- package/dist/{chunk-SWNIPDFJ.js → chunk-UKJYPT5Y.js} +2 -2
- package/dist/{chunk-VTEMIMEP.js → chunk-VWSR2E6J.js} +2 -2
- package/dist/{chunk-IFS452VL.js → chunk-X2VHXBG6.js} +4 -4
- package/dist/{chunk-YTYSVHYL.js → chunk-X5R43CBD.js} +1 -1
- package/dist/{chunk-UST3WVRM.js → chunk-ZWEPUYHN.js} +1 -1
- package/dist/{cli-WYYZUDIX.js → cli-WRO7ORZI.js} +87 -87
- package/dist/commands-UUZWL5XA.js +51 -0
- package/dist/{config-ORNM3G5I.js → config-F2JTMCNM.js} +4 -4
- package/dist/{context-CI5QDP6R.js → context-2P3ABILS.js} +6 -6
- package/dist/{customCommands-ACID4GW2.js → customCommands-LC4A4T2N.js} +4 -4
- package/dist/{env-OJ2FNKUK.js → env-NRDSX6YE.js} +2 -2
- package/dist/{file-BKXG4XO3.js → file-QW6B3FBX.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-OQCXZQBL.js → llm-T6W2TWOB.js} +29 -29
- package/dist/{llmLazy-USZZNRTW.js → llmLazy-JHMVXI2R.js} +1 -1
- package/dist/{loader-T6XYM6G3.js → loader-7QDRHG5K.js} +4 -4
- package/dist/{lsp-K7XWFBFS.js → lsp-J3CXBGII.js} +6 -6
- package/dist/{lspAnchor-DZQS57A5.js → lspAnchor-MS3WWRQV.js} +6 -6
- package/dist/{mcp-3CX6BX5P.js → mcp-6ELEX6UT.js} +7 -7
- package/dist/{mentionProcessor-QGFS2YNP.js → mentionProcessor-UQEVYHRV.js} +5 -5
- package/dist/{messages-MBBI5WWY.js → messages-AYLSBCJX.js} +1 -1
- package/dist/{model-ICCYQRJI.js → model-ACKFMQEO.js} +5 -5
- package/dist/{openai-HHHBXIGJ.js → openai-IY2JUXYZ.js} +5 -5
- package/dist/{outputStyles-ZAC3VMQ6.js → outputStyles-UPFBOTWM.js} +4 -4
- package/dist/{pluginRuntime-YU53FPIL.js → pluginRuntime-XYVYWYPZ.js} +6 -6
- package/dist/{pluginValidation-RJB6CN46.js → pluginValidation-AJEMERCK.js} +6 -6
- package/dist/prompts-QVD42KVR.js +53 -0
- package/dist/{pybAgentSessionLoad-GCBO37UN.js → pybAgentSessionLoad-XEZGZCH6.js} +4 -4
- package/dist/{pybAgentSessionResume-KLURVCAR.js → pybAgentSessionResume-YNOZUGZK.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-CRNMSKBW.js → pybAgentStreamJsonSession-ABJ6FELC.js} +1 -1
- package/dist/{pybHooks-IY2BUB67.js → pybHooks-I55HEXHL.js} +4 -4
- package/dist/query-IFBSEKYQ.js +55 -0
- package/dist/{registry-E4F7KBF5.js → registry-L6ABEPRQ.js} +5 -5
- package/dist/{ripgrep-E55ID5OZ.js → ripgrep-43ITSO44.js} +3 -3
- package/dist/{skillMarketplace-AM2XK2CZ.js → skillMarketplace-V4ZIXRHK.js} +3 -3
- package/dist/{state-RXOUEYEA.js → state-MFOHBFNA.js} +2 -2
- package/dist/{theme-FORBYJ6G.js → theme-7QCXHH44.js} +5 -5
- package/dist/{toolPermissionSettings-2366U5R3.js → toolPermissionSettings-EGJZRYJW.js} +6 -6
- package/dist/tools-XKGM72SU.js +52 -0
- package/dist/{userInput-X4EKL6XW.js → userInput-SLKQLRPN.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-DCNCJBQS.js +0 -47
- package/dist/chunk-6PHMM6CK.js.map +0 -7
- package/dist/chunk-KRDUIY3J.js.map +0 -7
- package/dist/commands-FHPZ5LCN.js +0 -51
- package/dist/prompts-L6SSEGYN.js +0 -53
- package/dist/query-NAYQQPBB.js +0 -55
- package/dist/tools-Y7NCHSKC.js +0 -52
- /package/dist/{REPL-DCNCJBQS.js.map → REPL-OA5CBUXV.js.map} +0 -0
- /package/dist/{acp-7IKVSDRE.js.map → acp-JQNSVEGV.js.map} +0 -0
- /package/dist/{agentsValidate-MXZK3WLA.js.map → agentsValidate-SIRSYHFV.js.map} +0 -0
- /package/dist/{ask-4NJV4KNG.js.map → ask-PJF45F7L.js.map} +0 -0
- /package/dist/{autoUpdater-357WOWMJ.js.map → autoUpdater-NMUBY2X2.js.map} +0 -0
- /package/dist/{chunk-FNDPX2JX.js.map → chunk-4ROPZ2KS.js.map} +0 -0
- /package/dist/{chunk-PO7T45UP.js.map → chunk-6KUHFC2Z.js.map} +0 -0
- /package/dist/{chunk-DA4CYUZK.js.map → chunk-A4AWHSSA.js.map} +0 -0
- /package/dist/{chunk-AL66JIGV.js.map → chunk-AK5PCDXL.js.map} +0 -0
- /package/dist/{chunk-BI7XI3C7.js.map → chunk-BSF6SQU2.js.map} +0 -0
- /package/dist/{chunk-UBAHTFMY.js.map → chunk-CCP6LPOD.js.map} +0 -0
- /package/dist/{chunk-GRHNH5IN.js.map → chunk-CFGDB4HZ.js.map} +0 -0
- /package/dist/{chunk-INAI34IU.js.map → chunk-COQVH5YO.js.map} +0 -0
- /package/dist/{chunk-DKCXGLIO.js.map → chunk-DMZ26YAR.js.map} +0 -0
- /package/dist/{chunk-HPFWNZPJ.js.map → chunk-FXLI3PIJ.js.map} +0 -0
- /package/dist/{chunk-A3IFN4KV.js.map → chunk-HDYOV3IB.js.map} +0 -0
- /package/dist/{chunk-UW36JXPY.js.map → chunk-HSR2UCV2.js.map} +0 -0
- /package/dist/{chunk-45UZQDMO.js.map → chunk-HXRQ5XUC.js.map} +0 -0
- /package/dist/{chunk-OW44SAPB.js.map → chunk-IYIJPGWY.js.map} +0 -0
- /package/dist/{chunk-7TEBOXLO.js.map → chunk-LWJYPTRD.js.map} +0 -0
- /package/dist/{chunk-3WA53ERF.js.map → chunk-MRRPYVYP.js.map} +0 -0
- /package/dist/{chunk-WWASAJA2.js.map → chunk-MU74SS73.js.map} +0 -0
- /package/dist/{chunk-55XWFTOT.js.map → chunk-NKH3YHNP.js.map} +0 -0
- /package/dist/{chunk-A75FG2Q5.js.map → chunk-QFKEM667.js.map} +0 -0
- /package/dist/{chunk-MWLXPCXA.js.map → chunk-SKBREVBZ.js.map} +0 -0
- /package/dist/{chunk-MFNYF4BU.js.map → chunk-SSO66X53.js.map} +0 -0
- /package/dist/{chunk-N5KDD46U.js.map → chunk-TNZH4HPF.js.map} +0 -0
- /package/dist/{chunk-SWNIPDFJ.js.map → chunk-UKJYPT5Y.js.map} +0 -0
- /package/dist/{chunk-VTEMIMEP.js.map → chunk-VWSR2E6J.js.map} +0 -0
- /package/dist/{chunk-IFS452VL.js.map → chunk-X2VHXBG6.js.map} +0 -0
- /package/dist/{chunk-YTYSVHYL.js.map → chunk-X5R43CBD.js.map} +0 -0
- /package/dist/{chunk-UST3WVRM.js.map → chunk-ZWEPUYHN.js.map} +0 -0
- /package/dist/{cli-WYYZUDIX.js.map → cli-WRO7ORZI.js.map} +0 -0
- /package/dist/{commands-FHPZ5LCN.js.map → commands-UUZWL5XA.js.map} +0 -0
- /package/dist/{config-ORNM3G5I.js.map → config-F2JTMCNM.js.map} +0 -0
- /package/dist/{context-CI5QDP6R.js.map → context-2P3ABILS.js.map} +0 -0
- /package/dist/{customCommands-ACID4GW2.js.map → customCommands-LC4A4T2N.js.map} +0 -0
- /package/dist/{env-OJ2FNKUK.js.map → env-NRDSX6YE.js.map} +0 -0
- /package/dist/{file-BKXG4XO3.js.map → file-QW6B3FBX.js.map} +0 -0
- /package/dist/{llm-OQCXZQBL.js.map → llm-T6W2TWOB.js.map} +0 -0
- /package/dist/{llmLazy-USZZNRTW.js.map → llmLazy-JHMVXI2R.js.map} +0 -0
- /package/dist/{loader-T6XYM6G3.js.map → loader-7QDRHG5K.js.map} +0 -0
- /package/dist/{lsp-K7XWFBFS.js.map → lsp-J3CXBGII.js.map} +0 -0
- /package/dist/{lspAnchor-DZQS57A5.js.map → lspAnchor-MS3WWRQV.js.map} +0 -0
- /package/dist/{mcp-3CX6BX5P.js.map → mcp-6ELEX6UT.js.map} +0 -0
- /package/dist/{mentionProcessor-QGFS2YNP.js.map → mentionProcessor-UQEVYHRV.js.map} +0 -0
- /package/dist/{messages-MBBI5WWY.js.map → messages-AYLSBCJX.js.map} +0 -0
- /package/dist/{model-ICCYQRJI.js.map → model-ACKFMQEO.js.map} +0 -0
- /package/dist/{openai-HHHBXIGJ.js.map → openai-IY2JUXYZ.js.map} +0 -0
- /package/dist/{outputStyles-ZAC3VMQ6.js.map → outputStyles-UPFBOTWM.js.map} +0 -0
- /package/dist/{pluginRuntime-YU53FPIL.js.map → pluginRuntime-XYVYWYPZ.js.map} +0 -0
- /package/dist/{pluginValidation-RJB6CN46.js.map → pluginValidation-AJEMERCK.js.map} +0 -0
- /package/dist/{prompts-L6SSEGYN.js.map → prompts-QVD42KVR.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-GCBO37UN.js.map → pybAgentSessionLoad-XEZGZCH6.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-KLURVCAR.js.map → pybAgentSessionResume-YNOZUGZK.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-CRNMSKBW.js.map → pybAgentStreamJsonSession-ABJ6FELC.js.map} +0 -0
- /package/dist/{pybHooks-IY2BUB67.js.map → pybHooks-I55HEXHL.js.map} +0 -0
- /package/dist/{query-NAYQQPBB.js.map → query-IFBSEKYQ.js.map} +0 -0
- /package/dist/{registry-E4F7KBF5.js.map → registry-L6ABEPRQ.js.map} +0 -0
- /package/dist/{ripgrep-E55ID5OZ.js.map → ripgrep-43ITSO44.js.map} +0 -0
- /package/dist/{skillMarketplace-AM2XK2CZ.js.map → skillMarketplace-V4ZIXRHK.js.map} +0 -0
- /package/dist/{state-RXOUEYEA.js.map → state-MFOHBFNA.js.map} +0 -0
- /package/dist/{theme-FORBYJ6G.js.map → theme-7QCXHH44.js.map} +0 -0
- /package/dist/{toolPermissionSettings-2366U5R3.js.map → toolPermissionSettings-EGJZRYJW.js.map} +0 -0
- /package/dist/{tools-Y7NCHSKC.js.map → tools-XKGM72SU.js.map} +0 -0
- /package/dist/{userInput-X4EKL6XW.js.map → userInput-SLKQLRPN.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-QFKEM667.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IYIJPGWY.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FXLI3PIJ.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UKJYPT5Y.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-CFGDB4HZ.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-NKH3YHNP.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HSR2UCV2.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AK5PCDXL.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-HXRQ5XUC.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-SSO66X53.js";
|
|
75
75
|
import {
|
|
76
76
|
loadToolPermissionContextFromDisk,
|
|
77
77
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-CCP6LPOD.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-DMZ26YAR.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-VWSR2E6J.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-ZWEPUYHN.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-HDYOV3IB.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-TNZH4HPF.js";
|
|
171
171
|
import {
|
|
172
172
|
getSettingsFileCandidates,
|
|
173
173
|
loadSettingsWithLegacyFallback,
|
|
174
174
|
readSettingsFile
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-X5R43CBD.js";
|
|
176
176
|
import {
|
|
177
177
|
getCustomCommandDirectories,
|
|
178
178
|
hasCustomCommands,
|
|
179
179
|
loadCustomCommands,
|
|
180
180
|
reloadCustomCommands
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-MRRPYVYP.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-BSF6SQU2.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-X2VHXBG6.js";
|
|
198
198
|
import {
|
|
199
199
|
ripGrep
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-MU74SS73.js";
|
|
201
201
|
import {
|
|
202
202
|
getTheme
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-A4AWHSSA.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-COQVH5YO.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-4ROPZ2KS.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-SKBREVBZ.js";
|
|
266
266
|
import {
|
|
267
267
|
MACRO
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-PMJMJHAY.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-T6W2TWOB.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-T6W2TWOB.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-MS3WWRQV.js");
|
|
6513
6513
|
for (const op of editOperations) {
|
|
6514
6514
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6515
6515
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6622,7 +6622,7 @@ var MAX_LINES_TO_READ = 2e3;
|
|
|
6622
6622
|
var MAX_LINE_LENGTH = 2e3;
|
|
6623
6623
|
var DESCRIPTION3 = "Read a file from the local filesystem.";
|
|
6624
6624
|
var PROMPT3 = `Reads a file from the local filesystem. You can access any file directly by using this tool.
|
|
6625
|
-
Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.
|
|
6625
|
+
Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid; otherwise, confirm the path with LS/Glob before Read. It is okay to read a file that does not exist; an error will be returned.
|
|
6626
6626
|
|
|
6627
6627
|
## Best Practice
|
|
6628
6628
|
- **Read vs Analyze**: Use this tool when you need to inspect full implementation details. For precise symbol relationships or definitions, prefer LSP after narrowing scope.
|
|
@@ -7279,6 +7279,9 @@ var FileReadTool = {
|
|
|
7279
7279
|
if (similarFilename) {
|
|
7280
7280
|
message += ` Did you mean ${similarFilename}?`;
|
|
7281
7281
|
}
|
|
7282
|
+
message += "\nSuggestion: use LS/Glob on parent directories to confirm the real structure and filename before Read.";
|
|
7283
|
+
message += "\nSuggestion: if the path came from search results, rerun Glob/Grep to confirm the latest path.";
|
|
7284
|
+
message += "\nSuggestion: in multi-repo or multi-branch environments, confirm the current working directory and branch before locating.";
|
|
7282
7285
|
return {
|
|
7283
7286
|
result: false,
|
|
7284
7287
|
message
|
|
@@ -7934,7 +7937,7 @@ var GlobTool = {
|
|
|
7934
7937
|
renderResultForAssistant(output) {
|
|
7935
7938
|
let result = output.filenames.join("\n");
|
|
7936
7939
|
if (output.filenames.length === 0) {
|
|
7937
|
-
result = "No files found";
|
|
7940
|
+
result = "No files found\nSuggestion: use LS to confirm directory structure, then use a broader path or a broader glob (e.g., src/**/*), and check ignore rules if needed.";
|
|
7938
7941
|
} else if (output.truncated) {
|
|
7939
7942
|
result += "\n(Results are truncated. Consider using a more specific path or pattern.)";
|
|
7940
7943
|
}
|
|
@@ -8132,14 +8135,14 @@ var GrepTool = {
|
|
|
8132
8135
|
|
|
8133
8136
|
${result.semanticNotice}` : base;
|
|
8134
8137
|
if (result.mode === "content") {
|
|
8135
|
-
const base = truncateToCharBudget(result.content
|
|
8138
|
+
const base = result.content && result.content.length > 0 ? truncateToCharBudget(result.content) : "No matches found\nSuggestion: confirm search scope (use LS/Glob), then broaden matching conditions (case/regex/keyword variants, semantic=true), and if needed switch to content mode or expand the file set before searching again.";
|
|
8136
8139
|
const withPagination = pagination ? `${base}
|
|
8137
8140
|
|
|
8138
8141
|
[Showing results with pagination = ${pagination}]` : base;
|
|
8139
8142
|
return appendNotice(withPagination);
|
|
8140
8143
|
}
|
|
8141
8144
|
if (result.mode === "count") {
|
|
8142
|
-
const base = truncateToCharBudget(result.content
|
|
8145
|
+
const base = result.content && result.content.length > 0 ? truncateToCharBudget(result.content) : "No matches found\nSuggestion: confirm search scope (use LS/Glob), then broaden matching conditions (case/regex/keyword variants, semantic=true), and if needed switch to content mode or expand the file set before searching again.";
|
|
8143
8146
|
const numMatches = result.numMatches ?? 0;
|
|
8144
8147
|
const numFiles = result.numFiles ?? 0;
|
|
8145
8148
|
const summary = base + `
|
|
@@ -8147,7 +8150,11 @@ ${result.semanticNotice}` : base;
|
|
|
8147
8150
|
Found ${numMatches} total ${numMatches === 1 ? "occurrence" : "occurrences"} across ${numFiles} ${numFiles === 1 ? "file" : "files"}.` + (pagination ? ` with pagination = ${pagination}` : "");
|
|
8148
8151
|
return appendNotice(summary);
|
|
8149
8152
|
}
|
|
8150
|
-
if (result.numFiles === 0)
|
|
8153
|
+
if (result.numFiles === 0) {
|
|
8154
|
+
return appendNotice(
|
|
8155
|
+
"No files found\nSuggestion: confirm search scope (use LS/Glob), then broaden matching conditions (case/regex/keyword variants, semantic=true), and if needed switch to content mode or expand the file set before searching again."
|
|
8156
|
+
);
|
|
8157
|
+
}
|
|
8151
8158
|
const header = `Found ${result.numFiles} file${result.numFiles === 1 ? "" : "s"}${pagination ? ` ${pagination}` : ""}
|
|
8152
8159
|
${result.filenames.join("\n")}`;
|
|
8153
8160
|
return appendNotice(truncateToCharBudget(header));
|
|
@@ -11070,7 +11077,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11070
11077
|
}
|
|
11071
11078
|
saveGlobalConfig(config2);
|
|
11072
11079
|
try {
|
|
11073
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11080
|
+
const { resetAnthropicClient } = await import("./llm-T6W2TWOB.js");
|
|
11074
11081
|
resetAnthropicClient();
|
|
11075
11082
|
} catch {
|
|
11076
11083
|
}
|
|
@@ -15352,7 +15359,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15352
15359
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15353
15360
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15354
15361
|
if (dirs.length === 0) return [];
|
|
15355
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15362
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-XYVYWYPZ.js");
|
|
15356
15363
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15357
15364
|
return errors;
|
|
15358
15365
|
}
|
|
@@ -16021,7 +16028,7 @@ async function call(onDone, context) {
|
|
|
16021
16028
|
ModelConfig,
|
|
16022
16029
|
{
|
|
16023
16030
|
onClose: () => {
|
|
16024
|
-
import("./model-
|
|
16031
|
+
import("./model-ACKFMQEO.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16025
16032
|
reloadModelManager2();
|
|
16026
16033
|
triggerModelConfigChange();
|
|
16027
16034
|
onDone();
|
|
@@ -23756,7 +23763,7 @@ function useStatusLine() {
|
|
|
23756
23763
|
// src/ui/components/PromptInput.tsx
|
|
23757
23764
|
async function interpretHashCommand(input) {
|
|
23758
23765
|
try {
|
|
23759
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23766
|
+
const { queryQuick: queryQuick2 } = await import("./llm-T6W2TWOB.js");
|
|
23760
23767
|
const systemPrompt = [
|
|
23761
23768
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23762
23769
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24069,7 +24076,7 @@ function PromptInput({
|
|
|
24069
24076
|
if (messages2.length) {
|
|
24070
24077
|
if (mode === "bash") {
|
|
24071
24078
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24072
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24079
|
+
const { getCwd: getCwd2 } = await import("./state-MFOHBFNA.js");
|
|
24073
24080
|
setCurrentPwd(getCwd2());
|
|
24074
24081
|
});
|
|
24075
24082
|
} else {
|
|
@@ -26939,7 +26946,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26939
26946
|
// src/commands/agents/generation.ts
|
|
26940
26947
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26941
26948
|
async function generateAgentWithClaude(prompt) {
|
|
26942
|
-
const { queryModel } = await import("./llm-
|
|
26949
|
+
const { queryModel } = await import("./llm-T6W2TWOB.js");
|
|
26943
26950
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26944
26951
|
|
|
26945
26952
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -30949,14 +30956,6 @@ It is critical that you mark todos as completed as soon as you are done with a t
|
|
|
30949
30956
|
6. **Semantic Search**: When searching for code concepts (e.g. "AuthLogic", "UserHandler") rather than exact filenames, prefer using \`GlobTool\` with \`semantic: true\`. This leverages LSP to find files by their content definitions.
|
|
30950
30957
|
7. **Reference Guard**: Be aware that deleting files might be blocked if they are referenced elsewhere. If the \`DeleteTool\` blocks you, check the references it reports. Only use \`force: true\` if you are refactoring and intentionally removing those references.
|
|
30951
30958
|
|
|
30952
|
-
# LSP \u540E\u7F6E\u4E0E\u8303\u56F4\u9650\u5236
|
|
30953
|
-
- \u4F18\u5148\u987A\u5E8F\uFF1A\u7ED3\u6784\u6811 -> \u70ED\u70B9\u5B9A\u4F4D -> Read -> LSP
|
|
30954
|
-
- workspaceSymbol \u5FC5\u987B\u63D0\u4F9B\u660E\u786E\u7684\u8DEF\u5F84/\u6A21\u5757\u8303\u56F4\uFF0C\u907F\u514D\u5BF9\u5168\u4ED3\u5E93\u65E0\u754C\u67E5\u8BE2
|
|
30955
|
-
- documentSymbol \u7684\u4F18\u5148\u7EA7\u7531 LspFacade \u51B3\u5B9A\uFF08\u9ED8\u8BA4 LSP \u4F18\u5148\uFF0CTree-Sitter \u515C\u5E95\uFF09
|
|
30956
|
-
|
|
30957
|
-
# \u8DEF\u5F84\u5206\u7247\u7B56\u7565
|
|
30958
|
-
- \u6839\u2192\u6838\u5FC3\u76EE\u5F55\u2192\u4E8C\u7EA7\u6A21\u5757
|
|
30959
|
-
|
|
30960
30959
|
# Memory
|
|
30961
30960
|
If the current working directory contains a file called ${PROJECT_FILE}, it will be automatically added to your context. This file serves multiple purposes:
|
|
30962
30961
|
1. Storing frequently used bash commands (build, test, lint, etc.) so you can use them without searching each time
|
|
@@ -30989,14 +30988,16 @@ assistant: Yes
|
|
|
30989
30988
|
</example>
|
|
30990
30989
|
|
|
30991
30990
|
<example>
|
|
30992
|
-
user:
|
|
30993
|
-
assistant: [uses the
|
|
30991
|
+
user: locate where auth token refresh is implemented in a large repo
|
|
30992
|
+
assistant: [uses the LS tool to scan top-level structure]
|
|
30993
|
+
[uses the Glob tool to find candidate auth-related files]
|
|
30994
|
+
[uses the Grep tool to search for token refresh patterns]
|
|
30995
|
+
[uses the Read tool to inspect the most likely file]
|
|
30994
30996
|
</example>
|
|
30995
30997
|
|
|
30996
30998
|
<example>
|
|
30997
|
-
user:
|
|
30998
|
-
assistant: [
|
|
30999
|
-
npm run dev
|
|
30999
|
+
user: find all .ts and .tsx files under src/
|
|
31000
|
+
assistant: [uses the Glob tool to match files under src/]
|
|
31000
31001
|
</example>
|
|
31001
31002
|
|
|
31002
31003
|
<example>
|
|
@@ -31010,8 +31011,8 @@ assistant: [uses Delete tool to remove 'temp' directory and all '*.log' files in
|
|
|
31010
31011
|
</example>
|
|
31011
31012
|
|
|
31012
31013
|
<example>
|
|
31013
|
-
user:
|
|
31014
|
-
assistant: [uses
|
|
31014
|
+
user: list files in the directory src/
|
|
31015
|
+
assistant: [uses the LS tool to list files and sees foo.c, bar.c, baz.c]
|
|
31015
31016
|
user: which file contains the implementation of foo?
|
|
31016
31017
|
assistant: src/foo.c
|
|
31017
31018
|
</example>
|
|
@@ -31062,7 +31063,7 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
31062
31063
|
|
|
31063
31064
|
# Tool usage policy
|
|
31064
31065
|
- When doing file search, prefer to use the Task tool in order to reduce context usage.
|
|
31065
|
-
- For file system exploration (listing files, checking directories),
|
|
31066
|
+
- For file system exploration (listing files, checking directories), first use LS to build structure context, then use Glob to narrow paths. Only use Bash for executing scripts or binaries.
|
|
31066
31067
|
- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
|
|
31067
31068
|
- If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.
|
|
31068
31069
|
- It is always better to speculatively read multiple files as a batch that are potentially useful.
|