pybao-cli 1.4.20 → 1.4.21
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-DTEFOCH6.js +47 -0
- package/dist/{acp-7IKVSDRE.js → acp-UUHU3ZJP.js} +29 -29
- package/dist/{agentsValidate-MXZK3WLA.js → agentsValidate-353ZIKRX.js} +7 -7
- package/dist/{ask-4NJV4KNG.js → ask-YWFFJDOZ.js} +28 -28
- package/dist/{autoUpdater-357WOWMJ.js → autoUpdater-QL55VUNN.js} +3 -3
- package/dist/{chunk-YTYSVHYL.js → chunk-43B54VVG.js} +1 -1
- package/dist/{chunk-DA4CYUZK.js → chunk-7CLUNX6N.js} +1 -1
- package/dist/{chunk-IFS452VL.js → chunk-7JZLL27D.js} +4 -4
- package/dist/{chunk-BI7XI3C7.js → chunk-7VUZ7F6O.js} +3 -3
- package/dist/{chunk-3WA53ERF.js → chunk-AJCE4AEB.js} +2 -2
- package/dist/{chunk-SWNIPDFJ.js → chunk-BDK7LO6T.js} +2 -2
- package/dist/{chunk-AL66JIGV.js → chunk-EAFBKCII.js} +4 -4
- package/dist/{chunk-WWASAJA2.js → chunk-EWFAAFFD.js} +1 -1
- package/dist/{chunk-PO7T45UP.js → chunk-F7WF5Y2G.js} +3 -3
- package/dist/{chunk-A3IFN4KV.js → chunk-FKKGYX57.js} +2 -2
- package/dist/{chunk-55XWFTOT.js → chunk-GKTOGTH7.js} +2 -2
- package/dist/{chunk-7TEBOXLO.js → chunk-GQ4XDOB6.js} +3 -3
- package/dist/{chunk-OW44SAPB.js → chunk-HDFCFRX2.js} +1 -1
- package/dist/{chunk-HPFWNZPJ.js → chunk-IHAMEI25.js} +1 -1
- package/dist/{chunk-GRHNH5IN.js → chunk-LYET7J6P.js} +3 -3
- package/dist/{chunk-N5KDD46U.js → chunk-MOGFCWQS.js} +4 -4
- package/dist/{chunk-VTEMIMEP.js → chunk-N7BETKV4.js} +2 -2
- package/dist/{chunk-KRDUIY3J.js → chunk-NADOCBZJ.js} +53 -55
- package/dist/chunk-NADOCBZJ.js.map +7 -0
- package/dist/{chunk-UST3WVRM.js → chunk-NKJCMQ6E.js} +1 -1
- package/dist/{chunk-MWLXPCXA.js → chunk-OYOVAWVJ.js} +1 -1
- package/dist/{chunk-55KKOHTV.js → chunk-P64FZW37.js} +1 -1
- package/dist/{chunk-55KKOHTV.js.map → chunk-P64FZW37.js.map} +1 -1
- package/dist/{chunk-A75FG2Q5.js → chunk-SHJMSIG4.js} +3 -3
- package/dist/{chunk-UBAHTFMY.js → chunk-SUAQOOKX.js} +3 -3
- package/dist/{chunk-UW36JXPY.js → chunk-TBCQF3QX.js} +2 -2
- package/dist/{chunk-DKCXGLIO.js → chunk-UBLX77SB.js} +2 -2
- package/dist/{chunk-6PHMM6CK.js → chunk-VRRPDCZU.js} +22 -19
- package/dist/chunk-VRRPDCZU.js.map +7 -0
- package/dist/{chunk-45UZQDMO.js → chunk-X62O47V5.js} +4 -4
- package/dist/{chunk-MFNYF4BU.js → chunk-YI6B3ZKC.js} +1 -1
- package/dist/{chunk-FNDPX2JX.js → chunk-YPA63LLM.js} +1 -1
- package/dist/{chunk-INAI34IU.js → chunk-ZT6BL4GJ.js} +3 -3
- package/dist/{cli-WYYZUDIX.js → cli-M46CTXI4.js} +87 -87
- package/dist/commands-K57S3UBE.js +51 -0
- package/dist/{config-ORNM3G5I.js → config-IO3BT2A2.js} +4 -4
- package/dist/{context-CI5QDP6R.js → context-VTFCGOC2.js} +6 -6
- package/dist/{customCommands-ACID4GW2.js → customCommands-HOLAMNPY.js} +4 -4
- package/dist/{env-OJ2FNKUK.js → env-NHL3SB7W.js} +2 -2
- package/dist/{file-BKXG4XO3.js → file-GTG6NWXX.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-OQCXZQBL.js → llm-OGMPR5GE.js} +29 -29
- package/dist/{llmLazy-USZZNRTW.js → llmLazy-34ZZMXCF.js} +1 -1
- package/dist/{loader-T6XYM6G3.js → loader-OYS5VS5I.js} +4 -4
- package/dist/{lsp-K7XWFBFS.js → lsp-22ED4VPG.js} +6 -6
- package/dist/{lspAnchor-DZQS57A5.js → lspAnchor-RX7NJOBQ.js} +6 -6
- package/dist/{mcp-3CX6BX5P.js → mcp-OQ2WEC5Z.js} +7 -7
- package/dist/{mentionProcessor-QGFS2YNP.js → mentionProcessor-JJNEREBP.js} +5 -5
- package/dist/{messages-MBBI5WWY.js → messages-WLARG2JF.js} +1 -1
- package/dist/{model-ICCYQRJI.js → model-26MQKGED.js} +5 -5
- package/dist/{openai-HHHBXIGJ.js → openai-VXAITTZX.js} +5 -5
- package/dist/{outputStyles-ZAC3VMQ6.js → outputStyles-BA4KOXCS.js} +4 -4
- package/dist/{pluginRuntime-YU53FPIL.js → pluginRuntime-SYDBIIWL.js} +6 -6
- package/dist/{pluginValidation-RJB6CN46.js → pluginValidation-SE2BRVQL.js} +6 -6
- package/dist/prompts-ESKS4M5Z.js +53 -0
- package/dist/{pybAgentSessionLoad-GCBO37UN.js → pybAgentSessionLoad-XSFFI3BN.js} +4 -4
- package/dist/{pybAgentSessionResume-KLURVCAR.js → pybAgentSessionResume-BFZV4CV3.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-CRNMSKBW.js → pybAgentStreamJsonSession-RHPD4Z2Z.js} +1 -1
- package/dist/{pybHooks-IY2BUB67.js → pybHooks-XD7KAH7A.js} +4 -4
- package/dist/query-N4J7UQHR.js +55 -0
- package/dist/{registry-E4F7KBF5.js → registry-7FICGFL7.js} +5 -5
- package/dist/{ripgrep-E55ID5OZ.js → ripgrep-SQ3BXDRN.js} +3 -3
- package/dist/{skillMarketplace-AM2XK2CZ.js → skillMarketplace-6QNUBZTV.js} +3 -3
- package/dist/{state-RXOUEYEA.js → state-5SSMFU6R.js} +2 -2
- package/dist/{theme-FORBYJ6G.js → theme-X7TYW74V.js} +5 -5
- package/dist/{toolPermissionSettings-2366U5R3.js → toolPermissionSettings-O2I5PDDR.js} +6 -6
- package/dist/tools-UEIS5PFY.js +52 -0
- package/dist/{userInput-X4EKL6XW.js → userInput-AQ5E6Y4V.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-DTEFOCH6.js.map} +0 -0
- /package/dist/{acp-7IKVSDRE.js.map → acp-UUHU3ZJP.js.map} +0 -0
- /package/dist/{agentsValidate-MXZK3WLA.js.map → agentsValidate-353ZIKRX.js.map} +0 -0
- /package/dist/{ask-4NJV4KNG.js.map → ask-YWFFJDOZ.js.map} +0 -0
- /package/dist/{autoUpdater-357WOWMJ.js.map → autoUpdater-QL55VUNN.js.map} +0 -0
- /package/dist/{chunk-YTYSVHYL.js.map → chunk-43B54VVG.js.map} +0 -0
- /package/dist/{chunk-DA4CYUZK.js.map → chunk-7CLUNX6N.js.map} +0 -0
- /package/dist/{chunk-IFS452VL.js.map → chunk-7JZLL27D.js.map} +0 -0
- /package/dist/{chunk-BI7XI3C7.js.map → chunk-7VUZ7F6O.js.map} +0 -0
- /package/dist/{chunk-3WA53ERF.js.map → chunk-AJCE4AEB.js.map} +0 -0
- /package/dist/{chunk-SWNIPDFJ.js.map → chunk-BDK7LO6T.js.map} +0 -0
- /package/dist/{chunk-AL66JIGV.js.map → chunk-EAFBKCII.js.map} +0 -0
- /package/dist/{chunk-WWASAJA2.js.map → chunk-EWFAAFFD.js.map} +0 -0
- /package/dist/{chunk-PO7T45UP.js.map → chunk-F7WF5Y2G.js.map} +0 -0
- /package/dist/{chunk-A3IFN4KV.js.map → chunk-FKKGYX57.js.map} +0 -0
- /package/dist/{chunk-55XWFTOT.js.map → chunk-GKTOGTH7.js.map} +0 -0
- /package/dist/{chunk-7TEBOXLO.js.map → chunk-GQ4XDOB6.js.map} +0 -0
- /package/dist/{chunk-OW44SAPB.js.map → chunk-HDFCFRX2.js.map} +0 -0
- /package/dist/{chunk-HPFWNZPJ.js.map → chunk-IHAMEI25.js.map} +0 -0
- /package/dist/{chunk-GRHNH5IN.js.map → chunk-LYET7J6P.js.map} +0 -0
- /package/dist/{chunk-N5KDD46U.js.map → chunk-MOGFCWQS.js.map} +0 -0
- /package/dist/{chunk-VTEMIMEP.js.map → chunk-N7BETKV4.js.map} +0 -0
- /package/dist/{chunk-UST3WVRM.js.map → chunk-NKJCMQ6E.js.map} +0 -0
- /package/dist/{chunk-MWLXPCXA.js.map → chunk-OYOVAWVJ.js.map} +0 -0
- /package/dist/{chunk-A75FG2Q5.js.map → chunk-SHJMSIG4.js.map} +0 -0
- /package/dist/{chunk-UBAHTFMY.js.map → chunk-SUAQOOKX.js.map} +0 -0
- /package/dist/{chunk-UW36JXPY.js.map → chunk-TBCQF3QX.js.map} +0 -0
- /package/dist/{chunk-DKCXGLIO.js.map → chunk-UBLX77SB.js.map} +0 -0
- /package/dist/{chunk-45UZQDMO.js.map → chunk-X62O47V5.js.map} +0 -0
- /package/dist/{chunk-MFNYF4BU.js.map → chunk-YI6B3ZKC.js.map} +0 -0
- /package/dist/{chunk-FNDPX2JX.js.map → chunk-YPA63LLM.js.map} +0 -0
- /package/dist/{chunk-INAI34IU.js.map → chunk-ZT6BL4GJ.js.map} +0 -0
- /package/dist/{cli-WYYZUDIX.js.map → cli-M46CTXI4.js.map} +0 -0
- /package/dist/{commands-FHPZ5LCN.js.map → commands-K57S3UBE.js.map} +0 -0
- /package/dist/{config-ORNM3G5I.js.map → config-IO3BT2A2.js.map} +0 -0
- /package/dist/{context-CI5QDP6R.js.map → context-VTFCGOC2.js.map} +0 -0
- /package/dist/{customCommands-ACID4GW2.js.map → customCommands-HOLAMNPY.js.map} +0 -0
- /package/dist/{env-OJ2FNKUK.js.map → env-NHL3SB7W.js.map} +0 -0
- /package/dist/{file-BKXG4XO3.js.map → file-GTG6NWXX.js.map} +0 -0
- /package/dist/{llm-OQCXZQBL.js.map → llm-OGMPR5GE.js.map} +0 -0
- /package/dist/{llmLazy-USZZNRTW.js.map → llmLazy-34ZZMXCF.js.map} +0 -0
- /package/dist/{loader-T6XYM6G3.js.map → loader-OYS5VS5I.js.map} +0 -0
- /package/dist/{lsp-K7XWFBFS.js.map → lsp-22ED4VPG.js.map} +0 -0
- /package/dist/{lspAnchor-DZQS57A5.js.map → lspAnchor-RX7NJOBQ.js.map} +0 -0
- /package/dist/{mcp-3CX6BX5P.js.map → mcp-OQ2WEC5Z.js.map} +0 -0
- /package/dist/{mentionProcessor-QGFS2YNP.js.map → mentionProcessor-JJNEREBP.js.map} +0 -0
- /package/dist/{messages-MBBI5WWY.js.map → messages-WLARG2JF.js.map} +0 -0
- /package/dist/{model-ICCYQRJI.js.map → model-26MQKGED.js.map} +0 -0
- /package/dist/{openai-HHHBXIGJ.js.map → openai-VXAITTZX.js.map} +0 -0
- /package/dist/{outputStyles-ZAC3VMQ6.js.map → outputStyles-BA4KOXCS.js.map} +0 -0
- /package/dist/{pluginRuntime-YU53FPIL.js.map → pluginRuntime-SYDBIIWL.js.map} +0 -0
- /package/dist/{pluginValidation-RJB6CN46.js.map → pluginValidation-SE2BRVQL.js.map} +0 -0
- /package/dist/{prompts-L6SSEGYN.js.map → prompts-ESKS4M5Z.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-GCBO37UN.js.map → pybAgentSessionLoad-XSFFI3BN.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-KLURVCAR.js.map → pybAgentSessionResume-BFZV4CV3.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-CRNMSKBW.js.map → pybAgentStreamJsonSession-RHPD4Z2Z.js.map} +0 -0
- /package/dist/{pybHooks-IY2BUB67.js.map → pybHooks-XD7KAH7A.js.map} +0 -0
- /package/dist/{query-NAYQQPBB.js.map → query-N4J7UQHR.js.map} +0 -0
- /package/dist/{registry-E4F7KBF5.js.map → registry-7FICGFL7.js.map} +0 -0
- /package/dist/{ripgrep-E55ID5OZ.js.map → ripgrep-SQ3BXDRN.js.map} +0 -0
- /package/dist/{skillMarketplace-AM2XK2CZ.js.map → skillMarketplace-6QNUBZTV.js.map} +0 -0
- /package/dist/{state-RXOUEYEA.js.map → state-5SSMFU6R.js.map} +0 -0
- /package/dist/{theme-FORBYJ6G.js.map → theme-X7TYW74V.js.map} +0 -0
- /package/dist/{toolPermissionSettings-2366U5R3.js.map → toolPermissionSettings-O2I5PDDR.js.map} +0 -0
- /package/dist/{tools-Y7NCHSKC.js.map → tools-UEIS5PFY.js.map} +0 -0
- /package/dist/{userInput-X4EKL6XW.js.map → userInput-AQ5E6Y4V.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-SHJMSIG4.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HDFCFRX2.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IHAMEI25.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BDK7LO6T.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-LYET7J6P.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-GKTOGTH7.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TBCQF3QX.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-EAFBKCII.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-X62O47V5.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-YI6B3ZKC.js";
|
|
75
75
|
import {
|
|
76
76
|
loadToolPermissionContextFromDisk,
|
|
77
77
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SUAQOOKX.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-UBLX77SB.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-N7BETKV4.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-NKJCMQ6E.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-FKKGYX57.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-MOGFCWQS.js";
|
|
171
171
|
import {
|
|
172
172
|
getSettingsFileCandidates,
|
|
173
173
|
loadSettingsWithLegacyFallback,
|
|
174
174
|
readSettingsFile
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-43B54VVG.js";
|
|
176
176
|
import {
|
|
177
177
|
getCustomCommandDirectories,
|
|
178
178
|
hasCustomCommands,
|
|
179
179
|
loadCustomCommands,
|
|
180
180
|
reloadCustomCommands
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-AJCE4AEB.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-7VUZ7F6O.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-7JZLL27D.js";
|
|
198
198
|
import {
|
|
199
199
|
ripGrep
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-EWFAAFFD.js";
|
|
201
201
|
import {
|
|
202
202
|
getTheme
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-7CLUNX6N.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-ZT6BL4GJ.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-YPA63LLM.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-OYOVAWVJ.js";
|
|
266
266
|
import {
|
|
267
267
|
MACRO
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-P64FZW37.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-OGMPR5GE.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-OGMPR5GE.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-RX7NJOBQ.js");
|
|
6513
6513
|
for (const op of editOperations) {
|
|
6514
6514
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6515
6515
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -7934,7 +7934,7 @@ var GlobTool = {
|
|
|
7934
7934
|
renderResultForAssistant(output) {
|
|
7935
7935
|
let result = output.filenames.join("\n");
|
|
7936
7936
|
if (output.filenames.length === 0) {
|
|
7937
|
-
result = "No files found";
|
|
7937
|
+
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
7938
|
} else if (output.truncated) {
|
|
7939
7939
|
result += "\n(Results are truncated. Consider using a more specific path or pattern.)";
|
|
7940
7940
|
}
|
|
@@ -8132,14 +8132,14 @@ var GrepTool = {
|
|
|
8132
8132
|
|
|
8133
8133
|
${result.semanticNotice}` : base;
|
|
8134
8134
|
if (result.mode === "content") {
|
|
8135
|
-
const base = truncateToCharBudget(result.content
|
|
8135
|
+
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
8136
|
const withPagination = pagination ? `${base}
|
|
8137
8137
|
|
|
8138
8138
|
[Showing results with pagination = ${pagination}]` : base;
|
|
8139
8139
|
return appendNotice(withPagination);
|
|
8140
8140
|
}
|
|
8141
8141
|
if (result.mode === "count") {
|
|
8142
|
-
const base = truncateToCharBudget(result.content
|
|
8142
|
+
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
8143
|
const numMatches = result.numMatches ?? 0;
|
|
8144
8144
|
const numFiles = result.numFiles ?? 0;
|
|
8145
8145
|
const summary = base + `
|
|
@@ -8147,7 +8147,11 @@ ${result.semanticNotice}` : base;
|
|
|
8147
8147
|
Found ${numMatches} total ${numMatches === 1 ? "occurrence" : "occurrences"} across ${numFiles} ${numFiles === 1 ? "file" : "files"}.` + (pagination ? ` with pagination = ${pagination}` : "");
|
|
8148
8148
|
return appendNotice(summary);
|
|
8149
8149
|
}
|
|
8150
|
-
if (result.numFiles === 0)
|
|
8150
|
+
if (result.numFiles === 0) {
|
|
8151
|
+
return appendNotice(
|
|
8152
|
+
"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."
|
|
8153
|
+
);
|
|
8154
|
+
}
|
|
8151
8155
|
const header = `Found ${result.numFiles} file${result.numFiles === 1 ? "" : "s"}${pagination ? ` ${pagination}` : ""}
|
|
8152
8156
|
${result.filenames.join("\n")}`;
|
|
8153
8157
|
return appendNotice(truncateToCharBudget(header));
|
|
@@ -11070,7 +11074,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11070
11074
|
}
|
|
11071
11075
|
saveGlobalConfig(config2);
|
|
11072
11076
|
try {
|
|
11073
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11077
|
+
const { resetAnthropicClient } = await import("./llm-OGMPR5GE.js");
|
|
11074
11078
|
resetAnthropicClient();
|
|
11075
11079
|
} catch {
|
|
11076
11080
|
}
|
|
@@ -15352,7 +15356,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15352
15356
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15353
15357
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15354
15358
|
if (dirs.length === 0) return [];
|
|
15355
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15359
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-SYDBIIWL.js");
|
|
15356
15360
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15357
15361
|
return errors;
|
|
15358
15362
|
}
|
|
@@ -16021,7 +16025,7 @@ async function call(onDone, context) {
|
|
|
16021
16025
|
ModelConfig,
|
|
16022
16026
|
{
|
|
16023
16027
|
onClose: () => {
|
|
16024
|
-
import("./model-
|
|
16028
|
+
import("./model-26MQKGED.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16025
16029
|
reloadModelManager2();
|
|
16026
16030
|
triggerModelConfigChange();
|
|
16027
16031
|
onDone();
|
|
@@ -23756,7 +23760,7 @@ function useStatusLine() {
|
|
|
23756
23760
|
// src/ui/components/PromptInput.tsx
|
|
23757
23761
|
async function interpretHashCommand(input) {
|
|
23758
23762
|
try {
|
|
23759
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23763
|
+
const { queryQuick: queryQuick2 } = await import("./llm-OGMPR5GE.js");
|
|
23760
23764
|
const systemPrompt = [
|
|
23761
23765
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23762
23766
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24069,7 +24073,7 @@ function PromptInput({
|
|
|
24069
24073
|
if (messages2.length) {
|
|
24070
24074
|
if (mode === "bash") {
|
|
24071
24075
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24072
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24076
|
+
const { getCwd: getCwd2 } = await import("./state-5SSMFU6R.js");
|
|
24073
24077
|
setCurrentPwd(getCwd2());
|
|
24074
24078
|
});
|
|
24075
24079
|
} else {
|
|
@@ -26939,7 +26943,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26939
26943
|
// src/commands/agents/generation.ts
|
|
26940
26944
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26941
26945
|
async function generateAgentWithClaude(prompt) {
|
|
26942
|
-
const { queryModel } = await import("./llm-
|
|
26946
|
+
const { queryModel } = await import("./llm-OGMPR5GE.js");
|
|
26943
26947
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26944
26948
|
|
|
26945
26949
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -30949,14 +30953,6 @@ It is critical that you mark todos as completed as soon as you are done with a t
|
|
|
30949
30953
|
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
30954
|
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
30955
|
|
|
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
30956
|
# Memory
|
|
30961
30957
|
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
30958
|
1. Storing frequently used bash commands (build, test, lint, etc.) so you can use them without searching each time
|
|
@@ -30989,14 +30985,16 @@ assistant: Yes
|
|
|
30989
30985
|
</example>
|
|
30990
30986
|
|
|
30991
30987
|
<example>
|
|
30992
|
-
user:
|
|
30993
|
-
assistant: [uses the
|
|
30988
|
+
user: locate where auth token refresh is implemented in a large repo
|
|
30989
|
+
assistant: [uses the LS tool to scan top-level structure]
|
|
30990
|
+
[uses the Glob tool to find candidate auth-related files]
|
|
30991
|
+
[uses the Grep tool to search for token refresh patterns]
|
|
30992
|
+
[uses the Read tool to inspect the most likely file]
|
|
30994
30993
|
</example>
|
|
30995
30994
|
|
|
30996
30995
|
<example>
|
|
30997
|
-
user:
|
|
30998
|
-
assistant: [
|
|
30999
|
-
npm run dev
|
|
30996
|
+
user: find all .ts and .tsx files under src/
|
|
30997
|
+
assistant: [uses the Glob tool to match files under src/]
|
|
31000
30998
|
</example>
|
|
31001
30999
|
|
|
31002
31000
|
<example>
|
|
@@ -31010,8 +31008,8 @@ assistant: [uses Delete tool to remove 'temp' directory and all '*.log' files in
|
|
|
31010
31008
|
</example>
|
|
31011
31009
|
|
|
31012
31010
|
<example>
|
|
31013
|
-
user:
|
|
31014
|
-
assistant: [uses
|
|
31011
|
+
user: list files in the directory src/
|
|
31012
|
+
assistant: [uses the LS tool to list files and sees foo.c, bar.c, baz.c]
|
|
31015
31013
|
user: which file contains the implementation of foo?
|
|
31016
31014
|
assistant: src/foo.c
|
|
31017
31015
|
</example>
|
|
@@ -31062,7 +31060,7 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
31062
31060
|
|
|
31063
31061
|
# Tool usage policy
|
|
31064
31062
|
- 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),
|
|
31063
|
+
- 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
31064
|
- 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
31065
|
- 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
31066
|
- It is always better to speculatively read multiple files as a batch that are potentially useful.
|