pybao-cli 1.4.0 → 1.4.2
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-6PXPDOQ3.js +47 -0
- package/dist/{acp-7EJD2G4R.js → acp-RHPRDV45.js} +29 -29
- package/dist/{agentsValidate-76MAQTJN.js → agentsValidate-F2DDSFFE.js} +7 -7
- package/dist/{ask-HQWHK7VG.js → ask-N3FSTEBH.js} +28 -28
- package/dist/{autoUpdater-CJE2KR3P.js → autoUpdater-OT6FVHOV.js} +3 -3
- package/dist/{chunk-HXJBPBDQ.js → chunk-27N4JMHB.js} +17 -16
- package/dist/chunk-27N4JMHB.js.map +7 -0
- package/dist/{chunk-2LXZDXLB.js → chunk-2QYG3KE4.js} +1 -1
- package/dist/{chunk-L7USSQLW.js → chunk-4B3LEDV3.js} +4 -4
- package/dist/{chunk-RJJB624A.js → chunk-4HTILZKD.js} +3 -3
- package/dist/{chunk-TK5SQXJL.js → chunk-6EEGBW6Q.js} +4 -4
- package/dist/{chunk-LELZ5NKQ.js → chunk-6JZDORP6.js} +2 -2
- package/dist/{chunk-IVOGLOCN.js → chunk-72LOH64W.js} +45 -39
- package/dist/chunk-72LOH64W.js.map +7 -0
- package/dist/{chunk-5LIXYSRU.js → chunk-A3XPCORL.js} +1 -1
- package/dist/{chunk-VNGSSGLQ.js → chunk-AVP7EMNR.js} +1 -1
- package/dist/{chunk-QKMOIEO4.js → chunk-BGKUH6M4.js} +1 -1
- package/dist/{chunk-ZUNY235B.js → chunk-D4XFHKA3.js} +3 -3
- package/dist/{chunk-UFZBVTYI.js → chunk-D4ZQJKAK.js} +2 -2
- package/dist/{chunk-5FMXCUS7.js → chunk-DDF4XOO3.js} +1 -1
- package/dist/{chunk-7PNNFGPP.js → chunk-DT6EAIWO.js} +1 -1
- package/dist/{chunk-7PNNFGPP.js.map → chunk-DT6EAIWO.js.map} +1 -1
- package/dist/{chunk-4UZMOTUP.js → chunk-EXGGAVWH.js} +2 -2
- package/dist/{chunk-QYQHUTKT.js → chunk-F6KEJKTT.js} +1 -1
- package/dist/{chunk-U2UPUNKK.js → chunk-LJZRZC3D.js} +3 -3
- package/dist/{chunk-LROZTFYD.js → chunk-LNTMOJ3T.js} +4 -4
- package/dist/{chunk-BHMENVLP.js → chunk-NPULUR2E.js} +3 -3
- package/dist/{chunk-PAWMUPVP.js → chunk-POHKJ5LT.js} +2 -2
- package/dist/{chunk-4JWRKX2N.js → chunk-S4Z7MG4Y.js} +3 -3
- package/dist/{chunk-OLZYKOHU.js → chunk-SMK6HZV7.js} +2 -2
- package/dist/{chunk-UNEFJPIA.js → chunk-ULV2BTXW.js} +1 -1
- package/dist/{chunk-A6B77TEF.js → chunk-UNEO7XU3.js} +2 -2
- package/dist/{chunk-ZREMHETY.js → chunk-UVXY7GP7.js} +3 -3
- package/dist/{chunk-UCWHNBKA.js → chunk-WFLE2JZP.js} +2 -2
- package/dist/{chunk-ATG6VZMM.js → chunk-WZPDJROT.js} +3 -3
- package/dist/{chunk-VKDEEVU7.js → chunk-XBLLO4SD.js} +1 -1
- package/dist/{chunk-LEXSO7LU.js → chunk-Y5VAXHC3.js} +3 -3
- package/dist/{chunk-MYL2MUME.js → chunk-ZCRQWCOA.js} +1 -1
- package/dist/{cli-JRZCSC7M.js → cli-X6TOZOU4.js} +87 -87
- package/dist/commands-6QRX7PR7.js +51 -0
- package/dist/{config-BD7WBSKS.js → config-CDO6OTSV.js} +4 -4
- package/dist/{context-ME3DZTT2.js → context-IPOBBVZF.js} +6 -6
- package/dist/{customCommands-POTDFVWU.js → customCommands-DVGN4IRA.js} +4 -4
- package/dist/{env-M5YXOQZD.js → env-OCPY2X47.js} +2 -2
- package/dist/{file-FX62NZFV.js → file-FTYFG3QY.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-4AUQUWC3.js → llm-FOP4NHX4.js} +29 -29
- package/dist/{llmLazy-EDVATSOU.js → llmLazy-4AUXW5TL.js} +1 -1
- package/dist/{loader-LT3Q32OI.js → loader-RXASWHEG.js} +4 -4
- package/dist/{lsp-YYD2NOXN.js → lsp-B7YVWLDT.js} +6 -6
- package/dist/{lspAnchor-TY4HISXF.js → lspAnchor-Y6INJQL2.js} +6 -6
- package/dist/{mcp-L6JMC2WI.js → mcp-UHXHBWEP.js} +7 -7
- package/dist/{mentionProcessor-5DTKX6ZD.js → mentionProcessor-IPSH7PFU.js} +5 -5
- package/dist/{messages-4SM6MGHX.js → messages-J5JXMTL6.js} +1 -1
- package/dist/{model-NKP23TOO.js → model-URB72Q6B.js} +5 -5
- package/dist/{openai-4XLWVQI6.js → openai-LXHHHBJK.js} +5 -5
- package/dist/{outputStyles-5S2KYDL4.js → outputStyles-GCOEWK7F.js} +4 -4
- package/dist/{pluginRuntime-FAN5H74G.js → pluginRuntime-QIRKX3SC.js} +6 -6
- package/dist/{pluginValidation-T4NGDUGW.js → pluginValidation-DV2QIZRN.js} +6 -6
- package/dist/prompts-PYGGA6X7.js +53 -0
- package/dist/{pybAgentSessionLoad-P6DSBNNQ.js → pybAgentSessionLoad-Y5JJKP77.js} +4 -4
- package/dist/{pybAgentSessionResume-4HVIVPFB.js → pybAgentSessionResume-KNYZEP3S.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-RNBYWRDB.js → pybAgentStreamJsonSession-BFQD7MQ4.js} +1 -1
- package/dist/{pybHooks-VNXDKZAU.js → pybHooks-STG2XC3A.js} +4 -4
- package/dist/query-QXAIFPBP.js +55 -0
- package/dist/{registry-JLAFUJUC.js → registry-RDYGM2Q3.js} +5 -5
- package/dist/{ripgrep-6MMT4FJ7.js → ripgrep-JL6CSM7A.js} +3 -3
- package/dist/{skillMarketplace-M7YFHSUX.js → skillMarketplace-W22BUVEU.js} +3 -3
- package/dist/{state-SIS5E3K6.js → state-Z7GDHIHE.js} +2 -2
- package/dist/{theme-FAZKJVFC.js → theme-4NI7BDGU.js} +5 -5
- package/dist/{toolPermissionSettings-A5JL34DL.js → toolPermissionSettings-P4NJHIC2.js} +6 -6
- package/dist/tools-TG5LOWTR.js +52 -0
- package/dist/{userInput-DPKWPWXJ.js → userInput-OYBEZRQT.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-JUG5WPHM.js +0 -47
- package/dist/chunk-HXJBPBDQ.js.map +0 -7
- package/dist/chunk-IVOGLOCN.js.map +0 -7
- package/dist/commands-P2T6J7GJ.js +0 -51
- package/dist/prompts-FSZ4WTY3.js +0 -53
- package/dist/query-ILJU2YVK.js +0 -55
- package/dist/tools-JAMV5DHR.js +0 -52
- /package/dist/{REPL-JUG5WPHM.js.map → REPL-6PXPDOQ3.js.map} +0 -0
- /package/dist/{acp-7EJD2G4R.js.map → acp-RHPRDV45.js.map} +0 -0
- /package/dist/{agentsValidate-76MAQTJN.js.map → agentsValidate-F2DDSFFE.js.map} +0 -0
- /package/dist/{ask-HQWHK7VG.js.map → ask-N3FSTEBH.js.map} +0 -0
- /package/dist/{autoUpdater-CJE2KR3P.js.map → autoUpdater-OT6FVHOV.js.map} +0 -0
- /package/dist/{chunk-2LXZDXLB.js.map → chunk-2QYG3KE4.js.map} +0 -0
- /package/dist/{chunk-L7USSQLW.js.map → chunk-4B3LEDV3.js.map} +0 -0
- /package/dist/{chunk-RJJB624A.js.map → chunk-4HTILZKD.js.map} +0 -0
- /package/dist/{chunk-TK5SQXJL.js.map → chunk-6EEGBW6Q.js.map} +0 -0
- /package/dist/{chunk-LELZ5NKQ.js.map → chunk-6JZDORP6.js.map} +0 -0
- /package/dist/{chunk-5LIXYSRU.js.map → chunk-A3XPCORL.js.map} +0 -0
- /package/dist/{chunk-VNGSSGLQ.js.map → chunk-AVP7EMNR.js.map} +0 -0
- /package/dist/{chunk-QKMOIEO4.js.map → chunk-BGKUH6M4.js.map} +0 -0
- /package/dist/{chunk-ZUNY235B.js.map → chunk-D4XFHKA3.js.map} +0 -0
- /package/dist/{chunk-UFZBVTYI.js.map → chunk-D4ZQJKAK.js.map} +0 -0
- /package/dist/{chunk-5FMXCUS7.js.map → chunk-DDF4XOO3.js.map} +0 -0
- /package/dist/{chunk-4UZMOTUP.js.map → chunk-EXGGAVWH.js.map} +0 -0
- /package/dist/{chunk-QYQHUTKT.js.map → chunk-F6KEJKTT.js.map} +0 -0
- /package/dist/{chunk-U2UPUNKK.js.map → chunk-LJZRZC3D.js.map} +0 -0
- /package/dist/{chunk-LROZTFYD.js.map → chunk-LNTMOJ3T.js.map} +0 -0
- /package/dist/{chunk-BHMENVLP.js.map → chunk-NPULUR2E.js.map} +0 -0
- /package/dist/{chunk-PAWMUPVP.js.map → chunk-POHKJ5LT.js.map} +0 -0
- /package/dist/{chunk-4JWRKX2N.js.map → chunk-S4Z7MG4Y.js.map} +0 -0
- /package/dist/{chunk-OLZYKOHU.js.map → chunk-SMK6HZV7.js.map} +0 -0
- /package/dist/{chunk-UNEFJPIA.js.map → chunk-ULV2BTXW.js.map} +0 -0
- /package/dist/{chunk-A6B77TEF.js.map → chunk-UNEO7XU3.js.map} +0 -0
- /package/dist/{chunk-ZREMHETY.js.map → chunk-UVXY7GP7.js.map} +0 -0
- /package/dist/{chunk-UCWHNBKA.js.map → chunk-WFLE2JZP.js.map} +0 -0
- /package/dist/{chunk-ATG6VZMM.js.map → chunk-WZPDJROT.js.map} +0 -0
- /package/dist/{chunk-VKDEEVU7.js.map → chunk-XBLLO4SD.js.map} +0 -0
- /package/dist/{chunk-LEXSO7LU.js.map → chunk-Y5VAXHC3.js.map} +0 -0
- /package/dist/{chunk-MYL2MUME.js.map → chunk-ZCRQWCOA.js.map} +0 -0
- /package/dist/{cli-JRZCSC7M.js.map → cli-X6TOZOU4.js.map} +0 -0
- /package/dist/{commands-P2T6J7GJ.js.map → commands-6QRX7PR7.js.map} +0 -0
- /package/dist/{config-BD7WBSKS.js.map → config-CDO6OTSV.js.map} +0 -0
- /package/dist/{context-ME3DZTT2.js.map → context-IPOBBVZF.js.map} +0 -0
- /package/dist/{customCommands-POTDFVWU.js.map → customCommands-DVGN4IRA.js.map} +0 -0
- /package/dist/{env-M5YXOQZD.js.map → env-OCPY2X47.js.map} +0 -0
- /package/dist/{file-FX62NZFV.js.map → file-FTYFG3QY.js.map} +0 -0
- /package/dist/{llm-4AUQUWC3.js.map → llm-FOP4NHX4.js.map} +0 -0
- /package/dist/{llmLazy-EDVATSOU.js.map → llmLazy-4AUXW5TL.js.map} +0 -0
- /package/dist/{loader-LT3Q32OI.js.map → loader-RXASWHEG.js.map} +0 -0
- /package/dist/{lsp-YYD2NOXN.js.map → lsp-B7YVWLDT.js.map} +0 -0
- /package/dist/{lspAnchor-TY4HISXF.js.map → lspAnchor-Y6INJQL2.js.map} +0 -0
- /package/dist/{mcp-L6JMC2WI.js.map → mcp-UHXHBWEP.js.map} +0 -0
- /package/dist/{mentionProcessor-5DTKX6ZD.js.map → mentionProcessor-IPSH7PFU.js.map} +0 -0
- /package/dist/{messages-4SM6MGHX.js.map → messages-J5JXMTL6.js.map} +0 -0
- /package/dist/{model-NKP23TOO.js.map → model-URB72Q6B.js.map} +0 -0
- /package/dist/{openai-4XLWVQI6.js.map → openai-LXHHHBJK.js.map} +0 -0
- /package/dist/{outputStyles-5S2KYDL4.js.map → outputStyles-GCOEWK7F.js.map} +0 -0
- /package/dist/{pluginRuntime-FAN5H74G.js.map → pluginRuntime-QIRKX3SC.js.map} +0 -0
- /package/dist/{pluginValidation-T4NGDUGW.js.map → pluginValidation-DV2QIZRN.js.map} +0 -0
- /package/dist/{prompts-FSZ4WTY3.js.map → prompts-PYGGA6X7.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-P6DSBNNQ.js.map → pybAgentSessionLoad-Y5JJKP77.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-4HVIVPFB.js.map → pybAgentSessionResume-KNYZEP3S.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-RNBYWRDB.js.map → pybAgentStreamJsonSession-BFQD7MQ4.js.map} +0 -0
- /package/dist/{pybHooks-VNXDKZAU.js.map → pybHooks-STG2XC3A.js.map} +0 -0
- /package/dist/{query-ILJU2YVK.js.map → query-QXAIFPBP.js.map} +0 -0
- /package/dist/{registry-JLAFUJUC.js.map → registry-RDYGM2Q3.js.map} +0 -0
- /package/dist/{ripgrep-6MMT4FJ7.js.map → ripgrep-JL6CSM7A.js.map} +0 -0
- /package/dist/{skillMarketplace-M7YFHSUX.js.map → skillMarketplace-W22BUVEU.js.map} +0 -0
- /package/dist/{state-SIS5E3K6.js.map → state-Z7GDHIHE.js.map} +0 -0
- /package/dist/{theme-FAZKJVFC.js.map → theme-4NI7BDGU.js.map} +0 -0
- /package/dist/{toolPermissionSettings-A5JL34DL.js.map → toolPermissionSettings-P4NJHIC2.js.map} +0 -0
- /package/dist/{tools-JAMV5DHR.js.map → tools-TG5LOWTR.js.map} +0 -0
- /package/dist/{userInput-DPKWPWXJ.js.map → userInput-OYBEZRQT.js.map} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listAllContentFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BGKUH6M4.js";
|
|
6
6
|
import {
|
|
7
7
|
getCwd,
|
|
8
8
|
logError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ULV2BTXW.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/fs/file.ts
|
|
12
12
|
import {
|
|
@@ -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-S4Z7MG4Y.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F6KEJKTT.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZCRQWCOA.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WFLE2JZP.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-D4XFHKA3.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-POHKJ5LT.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-D4ZQJKAK.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6EEGBW6Q.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-4B3LEDV3.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-XBLLO4SD.js";
|
|
75
75
|
import {
|
|
76
76
|
loadToolPermissionContextFromDisk,
|
|
77
77
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-4HTILZKD.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-UNEO7XU3.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-SMK6HZV7.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-AVP7EMNR.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-6JZDORP6.js";
|
|
161
161
|
import {
|
|
162
162
|
parseBlockEdits
|
|
163
163
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -167,17 +167,17 @@ import {
|
|
|
167
167
|
ParserRegistry,
|
|
168
168
|
initParser,
|
|
169
169
|
loadLanguage
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-LJZRZC3D.js";
|
|
171
171
|
import {
|
|
172
172
|
getSettingsFileCandidates,
|
|
173
173
|
loadSettingsWithLegacyFallback
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-A3XPCORL.js";
|
|
175
175
|
import {
|
|
176
176
|
getCustomCommandDirectories,
|
|
177
177
|
hasCustomCommands,
|
|
178
178
|
loadCustomCommands,
|
|
179
179
|
reloadCustomCommands
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-EXGGAVWH.js";
|
|
181
181
|
import {
|
|
182
182
|
getSessionPlugins
|
|
183
183
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
ModelManager,
|
|
186
186
|
getModelManager,
|
|
187
187
|
isDefaultSlowAndCapableModel
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-Y5VAXHC3.js";
|
|
189
189
|
import {
|
|
190
190
|
getCodeStyle,
|
|
191
191
|
getContext,
|
|
@@ -193,13 +193,13 @@ import {
|
|
|
193
193
|
getIsGit,
|
|
194
194
|
getProjectDocs,
|
|
195
195
|
getProjectStructureStatisticsBlock
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-LNTMOJ3T.js";
|
|
197
197
|
import {
|
|
198
198
|
ripGrep
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-BGKUH6M4.js";
|
|
200
200
|
import {
|
|
201
201
|
getTheme
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-DDF4XOO3.js";
|
|
203
203
|
import {
|
|
204
204
|
DEFAULT_GLOBAL_CONFIG,
|
|
205
205
|
enableConfigs,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
saveGlobalConfig,
|
|
213
213
|
setAllPointersToModel,
|
|
214
214
|
setModelPointer
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-UVXY7GP7.js";
|
|
216
216
|
import {
|
|
217
217
|
AbortError
|
|
218
218
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
getCurrentRequest,
|
|
222
222
|
logUserFriendly,
|
|
223
223
|
markPhase
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-2QYG3KE4.js";
|
|
225
225
|
import {
|
|
226
226
|
ASCII_LOGO,
|
|
227
227
|
BunShell,
|
|
@@ -260,10 +260,10 @@ import {
|
|
|
260
260
|
setCwd,
|
|
261
261
|
shouldApplyToolOutputTruncation,
|
|
262
262
|
truncateToolOutput
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-ULV2BTXW.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-DT6EAIWO.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-FOP4NHX4.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-FOP4NHX4.js");
|
|
4250
4250
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4251
4251
|
const messages = [
|
|
4252
4252
|
{
|
|
@@ -6310,6 +6310,7 @@ Notes:
|
|
|
6310
6310
|
- The edit will FAIL if the SEARCH block matches multiple locations (ambiguous). Provide more context.
|
|
6311
6311
|
- To delete code, leave the REPLACE section empty.
|
|
6312
6312
|
- ALWAYS prefer editing existing files. NEVER write new files unless explicitly required.
|
|
6313
|
+
- If LSP verification is unavailable, rerun without \`verify\` and validate via diagnostics or build.
|
|
6313
6314
|
`.trim();
|
|
6314
6315
|
|
|
6315
6316
|
// src/utils/terminal/paste.ts
|
|
@@ -6506,7 +6507,7 @@ var FileEditTool = {
|
|
|
6506
6507
|
const originalFileContent = currentFileContent;
|
|
6507
6508
|
let totalPatch = [];
|
|
6508
6509
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6509
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6510
|
+
const { findLspAnchor } = await import("./lspAnchor-Y6INJQL2.js");
|
|
6510
6511
|
for (const op of editOperations) {
|
|
6511
6512
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6512
6513
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6620,11 +6621,13 @@ Assume this tool is able to read all files on the machine. If the User provides
|
|
|
6620
6621
|
- **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.
|
|
6621
6622
|
- **Workflow**: Locate file (LS/Glob/Grep) -> Read file (FileRead) -> Edit file.
|
|
6622
6623
|
- **Avoid**: Do not use this to 'search' for code strings; use 'Grep' or 'LSP' for that.
|
|
6624
|
+
- **LSP in Read**: Use \`symbol_name\` to read a full class/function range. This is built into Read, no LspTool switch needed.
|
|
6623
6625
|
|
|
6624
6626
|
## Usage Details
|
|
6625
6627
|
- The file_path parameter must be an absolute path, not a relative path
|
|
6626
6628
|
- By default, it reads up to ${MAX_LINES_TO_READ} lines starting from the beginning of the file
|
|
6627
6629
|
- You can optionally specify a line offset and limit (especially handy for long files). **Smart Truncation is active**: If your limit cuts a function or class in the middle, the tool will automatically extend the read range to include the full semantic block (up to 500 extra lines).
|
|
6630
|
+
- If \`symbol_name\` is provided, Read uses LSP document symbols to locate the exact range and ignores offset/limit.
|
|
6628
6631
|
- Offset/limit are 1-based line positions (offset=1 starts at the first line shown in cat -n output)
|
|
6629
6632
|
- For large files, iterate in chunks: offset=1 limit=200, then offset=201 limit=200, and so on until the needed region is covered
|
|
6630
6633
|
- Any lines longer than ${MAX_LINE_LENGTH} characters will be truncated
|
|
@@ -7777,8 +7780,9 @@ var DESCRIPTION4 = `- Fast file pattern matching tool that works with any codeba
|
|
|
7777
7780
|
- Supports glob patterns like "**/*.js" or "src/**/*.ts"
|
|
7778
7781
|
- Returns matching file paths sorted by modification time
|
|
7779
7782
|
- Use this tool when you need to find files by name patterns
|
|
7780
|
-
- **Semantic Search**: Set \`semantic: true\` to
|
|
7781
|
-
- \u8BED\u4E49\u641C\u7D22\u4E3A\u663E\u5F0F\u89E6\u53D1\uFF1A\
|
|
7783
|
+
- **Semantic Search**: Set \`semantic: true\` to use LSP workspace symbols when file-name matching fails. The \`pattern\` is treated as the symbol name.
|
|
7784
|
+
- \u8BED\u4E49\u641C\u7D22\u4E3A\u663E\u5F0F\u89E6\u53D1\uFF1A\u4EC5\u5728\u5E38\u89C4\u6A21\u5F0F\u65E0\u7ED3\u679C\u6216\u660E\u786E\u9700\u8981\u8BED\u4E49\u5B9A\u4F4D\u65F6\u542F\u7528
|
|
7785
|
+
- LSP \u4E0D\u53EF\u7528\u65F6\u4F1A\u56DE\u9000\u4E3A\u666E\u901A glob \u7ED3\u679C\uFF0C\u4E0D\u5F71\u54CD\u627E\u6587\u4EF6\u4E3B\u6D41\u7A0B
|
|
7782
7786
|
- When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead
|
|
7783
7787
|
- 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.
|
|
7784
7788
|
- This tool is for FINDING files. To SEE the directory structure tree, use the LS tool.
|
|
@@ -7939,8 +7943,10 @@ var DESCRIPTION5 = `A powerful search tool built on ripgrep
|
|
|
7939
7943
|
- Use Task tool for open-ended searches requiring multiple rounds
|
|
7940
7944
|
- Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use \`interface\\{\\}\` to find \`interface{}\` in Go code)
|
|
7941
7945
|
- Multiline matching: By default patterns match within single lines only. For cross-line patterns like \`struct \\{[\\s\\S]*?field\`, use \`multiline: true\`
|
|
7942
|
-
- Semantic search: Set \`semantic: true\` to use LSP workspace symbols when text search yields no results or when you explicitly need symbol-based lookup.
|
|
7943
|
-
- \u8BED\u4E49\u641C\u7D22\u4E3A\u663E\u5F0F\u89E6\u53D1\uFF1A\
|
|
7946
|
+
- 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.
|
|
7947
|
+
- \u8BED\u4E49\u641C\u7D22\u4E3A\u663E\u5F0F\u89E6\u53D1\uFF1A\u4EC5\u5728\u5E38\u89C4\u6A21\u5F0F\u65E0\u7ED3\u679C\u6216\u660E\u786E\u9700\u8981\u8BED\u4E49\u5B9A\u4F4D\u65F6\u542F\u7528
|
|
7948
|
+
- Semantic output format: \`file:line: name (Kind)\` for quick follow-up reads
|
|
7949
|
+
- LSP \u4E0D\u53EF\u7528\u65F6\u4F1A\u56DE\u9000\u4E3A\u7EAF\u6587\u672C\u641C\u7D22\u7ED3\u679C
|
|
7944
7950
|
- STRATEGY: Use Grep as a "Scout" to *find* entry points based on text patterns.
|
|
7945
7951
|
- STEP 1: Search for a unique string (e.g., error message, URL route, specific variable name).
|
|
7946
7952
|
- STEP 2: Once you get a match (File + Line Number), STOP grepping.
|
|
@@ -11028,7 +11034,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11028
11034
|
}
|
|
11029
11035
|
saveGlobalConfig(config2);
|
|
11030
11036
|
try {
|
|
11031
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11037
|
+
const { resetAnthropicClient } = await import("./llm-FOP4NHX4.js");
|
|
11032
11038
|
resetAnthropicClient();
|
|
11033
11039
|
} catch {
|
|
11034
11040
|
}
|
|
@@ -15310,7 +15316,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15310
15316
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15311
15317
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15312
15318
|
if (dirs.length === 0) return [];
|
|
15313
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15319
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-QIRKX3SC.js");
|
|
15314
15320
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15315
15321
|
return errors;
|
|
15316
15322
|
}
|
|
@@ -15979,7 +15985,7 @@ async function call(onDone, context) {
|
|
|
15979
15985
|
ModelConfig,
|
|
15980
15986
|
{
|
|
15981
15987
|
onClose: () => {
|
|
15982
|
-
import("./model-
|
|
15988
|
+
import("./model-URB72Q6B.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
15983
15989
|
reloadModelManager2();
|
|
15984
15990
|
triggerModelConfigChange();
|
|
15985
15991
|
onDone();
|
|
@@ -23584,7 +23590,7 @@ function useStatusLine() {
|
|
|
23584
23590
|
// src/ui/components/PromptInput.tsx
|
|
23585
23591
|
async function interpretHashCommand(input) {
|
|
23586
23592
|
try {
|
|
23587
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23593
|
+
const { queryQuick: queryQuick2 } = await import("./llm-FOP4NHX4.js");
|
|
23588
23594
|
const systemPrompt = [
|
|
23589
23595
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23590
23596
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23897,7 +23903,7 @@ function PromptInput({
|
|
|
23897
23903
|
if (messages2.length) {
|
|
23898
23904
|
if (mode === "bash") {
|
|
23899
23905
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23900
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23906
|
+
const { getCwd: getCwd2 } = await import("./state-Z7GDHIHE.js");
|
|
23901
23907
|
setCurrentPwd(getCwd2());
|
|
23902
23908
|
});
|
|
23903
23909
|
} else {
|
|
@@ -26767,7 +26773,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26767
26773
|
// src/commands/agents/generation.ts
|
|
26768
26774
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26769
26775
|
async function generateAgentWithClaude(prompt) {
|
|
26770
|
-
const { queryModel } = await import("./llm-
|
|
26776
|
+
const { queryModel } = await import("./llm-FOP4NHX4.js");
|
|
26771
26777
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26772
26778
|
|
|
26773
26779
|
Return your response as a JSON object with exactly these fields:
|