pybao-cli 1.4.87 → 1.4.89
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-VRZRANK3.js +49 -0
- package/dist/{acp-EPMYLWYS.js → acp-SMGE3N7N.js} +30 -30
- package/dist/{agentsValidate-BR5ILRIF.js → agentsValidate-FJNQTZ6L.js} +7 -7
- package/dist/{ask-WYF2I52E.js → ask-2XWNVTSB.js} +29 -29
- package/dist/{autoUpdater-YI4LRWHE.js → autoUpdater-7PB65YC7.js} +3 -3
- package/dist/{chunk-W5T2EMXZ.js → chunk-3JTP3A2Y.js} +1 -1
- package/dist/{chunk-2FRALZLB.js → chunk-3WX6M33B.js} +1 -1
- package/dist/{chunk-CHZWE2GX.js → chunk-4CTXCXJV.js} +2 -2
- package/dist/{chunk-GAJY2O7L.js → chunk-5DBEI4U3.js} +2 -2
- package/dist/{chunk-M4BJXPOT.js → chunk-5DKBPIUY.js} +2 -2
- package/dist/{chunk-QJZPWPWV.js → chunk-5N4LX65G.js} +3 -3
- package/dist/{chunk-IFXTFBIG.js → chunk-67D6QME2.js} +1 -1
- package/dist/{chunk-IFXTFBIG.js.map → chunk-67D6QME2.js.map} +1 -1
- package/dist/{chunk-Y4LJKT4E.js → chunk-A5255NE3.js} +1 -1
- package/dist/{chunk-WZNSDCPB.js → chunk-CSP6P6NO.js} +2 -2
- package/dist/{chunk-3QBDV77K.js → chunk-DRHWOS44.js} +1 -1
- package/dist/{chunk-4J7OCHGE.js → chunk-FYLGTG5A.js} +4 -4
- package/dist/{chunk-MX4QA7FT.js → chunk-HVJRX43N.js} +48 -59
- package/dist/{chunk-MX4QA7FT.js.map → chunk-HVJRX43N.js.map} +2 -2
- package/dist/{chunk-YRGTLXHU.js → chunk-I72YSEMN.js} +4 -4
- package/dist/{chunk-QQFIPQ76.js → chunk-IUXFIASK.js} +3 -3
- package/dist/{chunk-36EAJNBS.js → chunk-JDMIFTZT.js} +1 -1
- package/dist/{chunk-MXQ65O7M.js → chunk-JJSCNIBA.js} +1 -1
- package/dist/{chunk-57M7VOVY.js → chunk-JQBOODVQ.js} +3 -3
- package/dist/{chunk-TB3ZV5SP.js → chunk-JW3MBSMJ.js} +27 -22
- package/dist/{chunk-TB3ZV5SP.js.map → chunk-JW3MBSMJ.js.map} +2 -2
- package/dist/{chunk-S52TK4GY.js → chunk-KHSTNHZE.js} +4 -4
- package/dist/{chunk-5SAYYPEA.js → chunk-LV4FISWZ.js} +3 -3
- package/dist/{chunk-RYEKTEXT.js → chunk-NZPUVS6K.js} +1 -1
- package/dist/{chunk-CRVBBTL7.js → chunk-R2BVICE2.js} +1 -1
- package/dist/{chunk-6J5LJ5YA.js → chunk-RLD57RVF.js} +1 -1
- package/dist/{chunk-PJCN2YUU.js → chunk-THQLFNKQ.js} +3 -3
- package/dist/{chunk-WS3ZXWWH.js → chunk-UAMS53ZK.js} +2 -2
- package/dist/{chunk-IT234CFF.js → chunk-UIGWD3MR.js} +1 -1
- package/dist/{chunk-6YXOEWR2.js → chunk-UNDLA4M4.js} +3 -3
- package/dist/{chunk-ICV7AFSR.js → chunk-XAABWNGX.js} +4 -4
- package/dist/{chunk-VV25PU6H.js → chunk-YAC4ZESX.js} +2 -2
- package/dist/{chunk-F6FUMSOC.js → chunk-YNDZ73R7.js} +2 -2
- package/dist/{chunk-SOWMVTRY.js → chunk-YVW2YZZ3.js} +3 -3
- package/dist/{cli-FCJA5DGG.js → cli-PTMHC2XV.js} +89 -89
- package/dist/commands-52E2E77C.js +53 -0
- package/dist/{config-SA7NSVAH.js → config-MCXPTUSG.js} +4 -4
- package/dist/{context-JIVLDQUD.js → context-ZJZSHKCR.js} +6 -6
- package/dist/{conversationTracker-6QM7A4BK.js → conversationTracker-A33U2LAZ.js} +3 -3
- package/dist/{customCommands-A46XZIEO.js → customCommands-M7HD5SVI.js} +4 -4
- package/dist/{env-FSG3VV6X.js → env-XWJBXPMS.js} +2 -2
- package/dist/{file-EYKZT7DW.js → file-HSVA6LNE.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-6FRSELJZ.js → llm-UGJYESRH.js} +30 -30
- package/dist/{llmLazy-HA32OY5H.js → llmLazy-QEOEBBKC.js} +1 -1
- package/dist/{loader-3Z77TSAI.js → loader-R2QFYVHX.js} +4 -4
- package/dist/{lsp-MKSIBTE5.js → lsp-YN2SPF7O.js} +6 -6
- package/dist/{lspAnchor-AG42ZLIP.js → lspAnchor-J4GMFONT.js} +6 -6
- package/dist/{mcp-AXJYZHRB.js → mcp-O625QZ5R.js} +7 -7
- package/dist/{mentionProcessor-IGNVZ7YV.js → mentionProcessor-UPKZXHO4.js} +5 -5
- package/dist/{messages-PUXMC35J.js → messages-3EGLQBFT.js} +1 -1
- package/dist/{model-SEPMUK6E.js → model-7P6UKMPN.js} +5 -5
- package/dist/{openai-I2DMGSQY.js → openai-J43QDBDS.js} +5 -5
- package/dist/{outputStyles-OUAVKGXS.js → outputStyles-HANCH32Z.js} +4 -4
- package/dist/{pluginRuntime-SHUQLJUJ.js → pluginRuntime-GQDZD5BX.js} +6 -6
- package/dist/{pluginValidation-TX7DJCQ3.js → pluginValidation-NMBEAEQW.js} +6 -6
- package/dist/prompts-OFPZUEBC.js +55 -0
- package/dist/{pybAgentSessionLoad-KU4QWLFF.js → pybAgentSessionLoad-F67ZDP5H.js} +4 -4
- package/dist/{pybAgentSessionResume-ZVMDRGGA.js → pybAgentSessionResume-UC66IPGZ.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-3KIXMIWS.js → pybAgentStreamJsonSession-IO42JQAR.js} +1 -1
- package/dist/{pybHooks-3MLQL77T.js → pybHooks-RTLJ2AV5.js} +4 -4
- package/dist/query-KHETENT7.js +57 -0
- package/dist/{registry-7YUOFK3K.js → registry-4NUGUWGX.js} +5 -5
- package/dist/{ripgrep-YV5BN7GK.js → ripgrep-GXECIJXM.js} +3 -3
- package/dist/{skillMarketplace-ONII7HOL.js → skillMarketplace-VM4XNPW4.js} +3 -3
- package/dist/{state-TJOB7BLH.js → state-QPNSGH4C.js} +2 -2
- package/dist/{theme-EIFVQAKD.js → theme-ME74IEH2.js} +5 -5
- package/dist/{toolPermissionSettings-OPZTEYIC.js → toolPermissionSettings-4DJ7GGUG.js} +6 -6
- package/dist/tools-7V7X7CNV.js +54 -0
- package/dist/{userInput-OA5GHNUF.js → userInput-BEZBVV52.js} +31 -31
- package/package.json +1 -1
- package/dist/REPL-6ZKN7FIZ.js +0 -49
- package/dist/commands-ZABUTTGO.js +0 -53
- package/dist/prompts-EYQN7L33.js +0 -55
- package/dist/query-RM2XSCT3.js +0 -57
- package/dist/tools-2AGCZVZG.js +0 -54
- /package/dist/{REPL-6ZKN7FIZ.js.map → REPL-VRZRANK3.js.map} +0 -0
- /package/dist/{acp-EPMYLWYS.js.map → acp-SMGE3N7N.js.map} +0 -0
- /package/dist/{agentsValidate-BR5ILRIF.js.map → agentsValidate-FJNQTZ6L.js.map} +0 -0
- /package/dist/{ask-WYF2I52E.js.map → ask-2XWNVTSB.js.map} +0 -0
- /package/dist/{autoUpdater-YI4LRWHE.js.map → autoUpdater-7PB65YC7.js.map} +0 -0
- /package/dist/{chunk-W5T2EMXZ.js.map → chunk-3JTP3A2Y.js.map} +0 -0
- /package/dist/{chunk-2FRALZLB.js.map → chunk-3WX6M33B.js.map} +0 -0
- /package/dist/{chunk-CHZWE2GX.js.map → chunk-4CTXCXJV.js.map} +0 -0
- /package/dist/{chunk-GAJY2O7L.js.map → chunk-5DBEI4U3.js.map} +0 -0
- /package/dist/{chunk-M4BJXPOT.js.map → chunk-5DKBPIUY.js.map} +0 -0
- /package/dist/{chunk-QJZPWPWV.js.map → chunk-5N4LX65G.js.map} +0 -0
- /package/dist/{chunk-Y4LJKT4E.js.map → chunk-A5255NE3.js.map} +0 -0
- /package/dist/{chunk-WZNSDCPB.js.map → chunk-CSP6P6NO.js.map} +0 -0
- /package/dist/{chunk-3QBDV77K.js.map → chunk-DRHWOS44.js.map} +0 -0
- /package/dist/{chunk-4J7OCHGE.js.map → chunk-FYLGTG5A.js.map} +0 -0
- /package/dist/{chunk-YRGTLXHU.js.map → chunk-I72YSEMN.js.map} +0 -0
- /package/dist/{chunk-QQFIPQ76.js.map → chunk-IUXFIASK.js.map} +0 -0
- /package/dist/{chunk-36EAJNBS.js.map → chunk-JDMIFTZT.js.map} +0 -0
- /package/dist/{chunk-MXQ65O7M.js.map → chunk-JJSCNIBA.js.map} +0 -0
- /package/dist/{chunk-57M7VOVY.js.map → chunk-JQBOODVQ.js.map} +0 -0
- /package/dist/{chunk-S52TK4GY.js.map → chunk-KHSTNHZE.js.map} +0 -0
- /package/dist/{chunk-5SAYYPEA.js.map → chunk-LV4FISWZ.js.map} +0 -0
- /package/dist/{chunk-RYEKTEXT.js.map → chunk-NZPUVS6K.js.map} +0 -0
- /package/dist/{chunk-CRVBBTL7.js.map → chunk-R2BVICE2.js.map} +0 -0
- /package/dist/{chunk-6J5LJ5YA.js.map → chunk-RLD57RVF.js.map} +0 -0
- /package/dist/{chunk-PJCN2YUU.js.map → chunk-THQLFNKQ.js.map} +0 -0
- /package/dist/{chunk-WS3ZXWWH.js.map → chunk-UAMS53ZK.js.map} +0 -0
- /package/dist/{chunk-IT234CFF.js.map → chunk-UIGWD3MR.js.map} +0 -0
- /package/dist/{chunk-6YXOEWR2.js.map → chunk-UNDLA4M4.js.map} +0 -0
- /package/dist/{chunk-ICV7AFSR.js.map → chunk-XAABWNGX.js.map} +0 -0
- /package/dist/{chunk-VV25PU6H.js.map → chunk-YAC4ZESX.js.map} +0 -0
- /package/dist/{chunk-F6FUMSOC.js.map → chunk-YNDZ73R7.js.map} +0 -0
- /package/dist/{chunk-SOWMVTRY.js.map → chunk-YVW2YZZ3.js.map} +0 -0
- /package/dist/{cli-FCJA5DGG.js.map → cli-PTMHC2XV.js.map} +0 -0
- /package/dist/{commands-ZABUTTGO.js.map → commands-52E2E77C.js.map} +0 -0
- /package/dist/{config-SA7NSVAH.js.map → config-MCXPTUSG.js.map} +0 -0
- /package/dist/{context-JIVLDQUD.js.map → context-ZJZSHKCR.js.map} +0 -0
- /package/dist/{conversationTracker-6QM7A4BK.js.map → conversationTracker-A33U2LAZ.js.map} +0 -0
- /package/dist/{customCommands-A46XZIEO.js.map → customCommands-M7HD5SVI.js.map} +0 -0
- /package/dist/{env-FSG3VV6X.js.map → env-XWJBXPMS.js.map} +0 -0
- /package/dist/{file-EYKZT7DW.js.map → file-HSVA6LNE.js.map} +0 -0
- /package/dist/{llm-6FRSELJZ.js.map → llm-UGJYESRH.js.map} +0 -0
- /package/dist/{llmLazy-HA32OY5H.js.map → llmLazy-QEOEBBKC.js.map} +0 -0
- /package/dist/{loader-3Z77TSAI.js.map → loader-R2QFYVHX.js.map} +0 -0
- /package/dist/{lsp-MKSIBTE5.js.map → lsp-YN2SPF7O.js.map} +0 -0
- /package/dist/{lspAnchor-AG42ZLIP.js.map → lspAnchor-J4GMFONT.js.map} +0 -0
- /package/dist/{mcp-AXJYZHRB.js.map → mcp-O625QZ5R.js.map} +0 -0
- /package/dist/{mentionProcessor-IGNVZ7YV.js.map → mentionProcessor-UPKZXHO4.js.map} +0 -0
- /package/dist/{messages-PUXMC35J.js.map → messages-3EGLQBFT.js.map} +0 -0
- /package/dist/{model-SEPMUK6E.js.map → model-7P6UKMPN.js.map} +0 -0
- /package/dist/{openai-I2DMGSQY.js.map → openai-J43QDBDS.js.map} +0 -0
- /package/dist/{outputStyles-OUAVKGXS.js.map → outputStyles-HANCH32Z.js.map} +0 -0
- /package/dist/{pluginRuntime-SHUQLJUJ.js.map → pluginRuntime-GQDZD5BX.js.map} +0 -0
- /package/dist/{pluginValidation-TX7DJCQ3.js.map → pluginValidation-NMBEAEQW.js.map} +0 -0
- /package/dist/{prompts-EYQN7L33.js.map → prompts-OFPZUEBC.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-KU4QWLFF.js.map → pybAgentSessionLoad-F67ZDP5H.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-ZVMDRGGA.js.map → pybAgentSessionResume-UC66IPGZ.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-3KIXMIWS.js.map → pybAgentStreamJsonSession-IO42JQAR.js.map} +0 -0
- /package/dist/{pybHooks-3MLQL77T.js.map → pybHooks-RTLJ2AV5.js.map} +0 -0
- /package/dist/{query-RM2XSCT3.js.map → query-KHETENT7.js.map} +0 -0
- /package/dist/{registry-7YUOFK3K.js.map → registry-4NUGUWGX.js.map} +0 -0
- /package/dist/{ripgrep-YV5BN7GK.js.map → ripgrep-GXECIJXM.js.map} +0 -0
- /package/dist/{skillMarketplace-ONII7HOL.js.map → skillMarketplace-VM4XNPW4.js.map} +0 -0
- /package/dist/{state-TJOB7BLH.js.map → state-QPNSGH4C.js.map} +0 -0
- /package/dist/{theme-EIFVQAKD.js.map → theme-ME74IEH2.js.map} +0 -0
- /package/dist/{toolPermissionSettings-OPZTEYIC.js.map → toolPermissionSettings-4DJ7GGUG.js.map} +0 -0
- /package/dist/{tools-2AGCZVZG.js.map → tools-7V7X7CNV.js.map} +0 -0
- /package/dist/{userInput-OA5GHNUF.js.map → userInput-BEZBVV52.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
|
listPybAgentSessions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3JTP3A2Y.js";
|
|
6
6
|
import {
|
|
7
7
|
formatValidationResult,
|
|
8
8
|
validatePluginOrMarketplacePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JQBOODVQ.js";
|
|
10
10
|
import {
|
|
11
11
|
ConversationTracker,
|
|
12
12
|
appendFinishState,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
getConversationTrackerForContext,
|
|
15
15
|
isFinishComplete,
|
|
16
16
|
mapFinishReason
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JDMIFTZT.js";
|
|
18
18
|
import {
|
|
19
19
|
beginReplSessionScope
|
|
20
20
|
} from "./chunk-F4AXICO7.js";
|
|
21
21
|
import {
|
|
22
22
|
loadPybAgentSessionMessages
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JJSCNIBA.js";
|
|
24
24
|
import {
|
|
25
25
|
appendSessionCustomTitleRecord,
|
|
26
26
|
appendSessionJsonlFromMessage,
|
|
27
27
|
appendSessionTagRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4CTXCXJV.js";
|
|
29
29
|
import {
|
|
30
30
|
drainHookSystemPromptAdditions,
|
|
31
31
|
getHookTranscriptPath,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
runStopHooks,
|
|
38
38
|
runUserPromptSubmitHooks,
|
|
39
39
|
updateHookTranscriptForMessages
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LV4FISWZ.js";
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_OUTPUT_STYLE,
|
|
43
43
|
getAvailableOutputStyles,
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
getOutputStyleSystemPromptAdditions,
|
|
47
47
|
resolveOutputStyleName,
|
|
48
48
|
setCurrentOutputStyle
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-CSP6P6NO.js";
|
|
50
50
|
import {
|
|
51
51
|
fetchCustomModels,
|
|
52
52
|
getModelFeatures
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5DKBPIUY.js";
|
|
54
54
|
import {
|
|
55
55
|
getSessionState
|
|
56
56
|
} from "./chunk-XKYHFZEC.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
queryLLM,
|
|
59
59
|
queryQuick,
|
|
60
60
|
verifyApiKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-XAABWNGX.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_TIMEOUT_MS,
|
|
64
64
|
FallbackToolUseRejectedMessage,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
listMCPServers,
|
|
73
73
|
loadMergedSettings,
|
|
74
74
|
normalizeSandboxRuntimeConfigFromSettings
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-KHSTNHZE.js";
|
|
76
76
|
import {
|
|
77
77
|
addMarketplace,
|
|
78
78
|
disableSkillPlugin,
|
|
@@ -85,11 +85,11 @@ import {
|
|
|
85
85
|
refreshMarketplaceAsync,
|
|
86
86
|
removeMarketplace,
|
|
87
87
|
uninstallSkillPlugin
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-NZPUVS6K.js";
|
|
89
89
|
import {
|
|
90
90
|
loadToolPermissionContextFromDisk,
|
|
91
91
|
persistToolPermissionUpdateToDisk
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-THQLFNKQ.js";
|
|
93
93
|
import {
|
|
94
94
|
applyToolPermissionContextUpdate,
|
|
95
95
|
applyToolPermissionContextUpdates,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
generateSystemReminders,
|
|
101
101
|
resetReminderSession,
|
|
102
102
|
systemReminderService
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-YAC4ZESX.js";
|
|
104
104
|
import {
|
|
105
105
|
clearAgentCache,
|
|
106
106
|
getActiveAgents,
|
|
107
107
|
getAgentByType,
|
|
108
108
|
getAllAgents
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-5DBEI4U3.js";
|
|
110
110
|
import {
|
|
111
111
|
API_ERROR_MESSAGE_PREFIX,
|
|
112
112
|
CANCEL_MESSAGE,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
processUserInput,
|
|
138
138
|
reorderMessages,
|
|
139
139
|
stripSystemMessages
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-A5255NE3.js";
|
|
141
141
|
import {
|
|
142
142
|
getRequestStatus,
|
|
143
143
|
setRequestStatus,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
normalizeFilePath,
|
|
168
168
|
readTextContent,
|
|
169
169
|
writeTextContent
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-UAMS53ZK.js";
|
|
171
171
|
import {
|
|
172
172
|
parseBlockEdits
|
|
173
173
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -177,18 +177,18 @@ import {
|
|
|
177
177
|
ParserRegistry,
|
|
178
178
|
initParser,
|
|
179
179
|
loadLanguage
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-I72YSEMN.js";
|
|
181
181
|
import {
|
|
182
182
|
getSettingsFileCandidates,
|
|
183
183
|
loadSettingsWithLegacyFallback,
|
|
184
184
|
readSettingsFile
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-RLD57RVF.js";
|
|
186
186
|
import {
|
|
187
187
|
getCustomCommandDirectories,
|
|
188
188
|
hasCustomCommands,
|
|
189
189
|
loadCustomCommands,
|
|
190
190
|
reloadCustomCommands
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-YNDZ73R7.js";
|
|
192
192
|
import {
|
|
193
193
|
getSessionPlugins
|
|
194
194
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
ModelManager,
|
|
197
197
|
getModelManager,
|
|
198
198
|
isDefaultSlowAndCapableModel
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-UNDLA4M4.js";
|
|
200
200
|
import {
|
|
201
201
|
getCodeStyle,
|
|
202
202
|
getContext,
|
|
@@ -204,13 +204,13 @@ import {
|
|
|
204
204
|
getIsGit,
|
|
205
205
|
getProjectDocs,
|
|
206
206
|
getProjectStructureStatisticsBlock
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-FYLGTG5A.js";
|
|
208
208
|
import {
|
|
209
209
|
ripGrep
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-3WX6M33B.js";
|
|
211
211
|
import {
|
|
212
212
|
getTheme
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-R2BVICE2.js";
|
|
214
214
|
import {
|
|
215
215
|
DEFAULT_GLOBAL_CONFIG,
|
|
216
216
|
enableConfigs,
|
|
@@ -223,7 +223,7 @@ import {
|
|
|
223
223
|
saveGlobalConfig,
|
|
224
224
|
setAllPointersToModel,
|
|
225
225
|
setModelPointer
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-5N4LX65G.js";
|
|
227
227
|
import {
|
|
228
228
|
AbortError
|
|
229
229
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
getCurrentRequest,
|
|
233
233
|
logUserFriendly,
|
|
234
234
|
markPhase
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-UIGWD3MR.js";
|
|
236
236
|
import {
|
|
237
237
|
ASCII_LOGO,
|
|
238
238
|
BunShell,
|
|
@@ -272,10 +272,10 @@ import {
|
|
|
272
272
|
setCwd,
|
|
273
273
|
shouldApplyToolOutputTruncation,
|
|
274
274
|
truncateToolOutput
|
|
275
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-DRHWOS44.js";
|
|
276
276
|
import {
|
|
277
277
|
MACRO
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-67D6QME2.js";
|
|
279
279
|
import {
|
|
280
280
|
__export
|
|
281
281
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -456,7 +456,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
456
456
|
var getCommandPrefix = memoize(
|
|
457
457
|
async (command4, abortSignal) => {
|
|
458
458
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
459
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
459
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-UGJYESRH.js");
|
|
460
460
|
const response = await queryQuick2({
|
|
461
461
|
systemPrompt,
|
|
462
462
|
userPrompt,
|
|
@@ -4258,7 +4258,7 @@ function formatParseError(error) {
|
|
|
4258
4258
|
return error instanceof Error ? error.message : String(error);
|
|
4259
4259
|
}
|
|
4260
4260
|
async function defaultGateQuery(args) {
|
|
4261
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4261
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-UGJYESRH.js");
|
|
4262
4262
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4263
4263
|
const messages = [
|
|
4264
4264
|
{
|
|
@@ -6655,7 +6655,7 @@ var FileEditTool = {
|
|
|
6655
6655
|
const originalFileContent = currentFileContent;
|
|
6656
6656
|
let totalPatch = [];
|
|
6657
6657
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6658
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6658
|
+
const { findLspAnchor } = await import("./lspAnchor-J4GMFONT.js");
|
|
6659
6659
|
for (const op of editOperations) {
|
|
6660
6660
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6661
6661
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11359,7 +11359,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11359
11359
|
}
|
|
11360
11360
|
saveGlobalConfig(config2);
|
|
11361
11361
|
try {
|
|
11362
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11362
|
+
const { resetAnthropicClient } = await import("./llm-UGJYESRH.js");
|
|
11363
11363
|
resetAnthropicClient();
|
|
11364
11364
|
} catch {
|
|
11365
11365
|
}
|
|
@@ -15726,7 +15726,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15726
15726
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15727
15727
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15728
15728
|
if (dirs.length === 0) return [];
|
|
15729
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15729
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-GQDZD5BX.js");
|
|
15730
15730
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15731
15731
|
return errors;
|
|
15732
15732
|
}
|
|
@@ -16395,7 +16395,7 @@ async function call(onDone, context) {
|
|
|
16395
16395
|
ModelConfig,
|
|
16396
16396
|
{
|
|
16397
16397
|
onClose: () => {
|
|
16398
|
-
import("./model-
|
|
16398
|
+
import("./model-7P6UKMPN.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16399
16399
|
reloadModelManager2();
|
|
16400
16400
|
triggerModelConfigChange();
|
|
16401
16401
|
onDone();
|
|
@@ -24599,7 +24599,7 @@ function useStatusLine() {
|
|
|
24599
24599
|
// src/ui/components/PromptInput.tsx
|
|
24600
24600
|
async function interpretHashCommand(input) {
|
|
24601
24601
|
try {
|
|
24602
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
24602
|
+
const { queryQuick: queryQuick2 } = await import("./llm-UGJYESRH.js");
|
|
24603
24603
|
const systemPrompt = [
|
|
24604
24604
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
24605
24605
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24912,7 +24912,7 @@ function PromptInput({
|
|
|
24912
24912
|
if (messages2.length) {
|
|
24913
24913
|
if (mode === "bash") {
|
|
24914
24914
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24915
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24915
|
+
const { getCwd: getCwd2 } = await import("./state-QPNSGH4C.js");
|
|
24916
24916
|
setCurrentPwd(getCwd2());
|
|
24917
24917
|
});
|
|
24918
24918
|
} else {
|
|
@@ -29378,7 +29378,7 @@ import { homedir as homedir8 } from "os";
|
|
|
29378
29378
|
// src/commands/agents/generation.ts
|
|
29379
29379
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
29380
29380
|
async function generateAgentWithClaude(prompt) {
|
|
29381
|
-
const { queryModel } = await import("./llm-
|
|
29381
|
+
const { queryModel } = await import("./llm-UGJYESRH.js");
|
|
29382
29382
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
29383
29383
|
|
|
29384
29384
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -32985,12 +32985,13 @@ Single-task work does not require a dependency chain. When dependencies are read
|
|
|
32985
32985
|
Task records use subject as the single primary name, with activeForm provided by the caller to describe the in-progress action. Keep description and blockedBy independent in JSON; any joining is only for terminal rendering. blockedBy should always be present as an array (empty when not used). Ordering is by task id; do not use priority fields.
|
|
32986
32986
|
|
|
32987
32987
|
It is critical that you mark tasks as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.
|
|
32988
|
+
For non-trivial reasoning, planning under uncertainty, debugging, or multi-step tradeoff decisions, proactively use ThinkTool to externalize step-by-step thinking before and during tool execution.
|
|
32988
32989
|
|
|
32989
32990
|
# Cognitive Safety & Sensing
|
|
32990
|
-
1. **Modification Check**: Before editing, you MUST verify if the change is already present (e.g. use \`grep\` or \`read\`).
|
|
32991
|
+
1. **Modification Check**: Before editing, you MUST verify if the change is already present (e.g. use \`grep\` or \`read\`). Do not rely on memory from previous turns.
|
|
32991
32992
|
2. **Precise Targeting**: For code injection, prefer using LSP to find exact function boundaries, or Read the file to get unique context.
|
|
32992
32993
|
3. **Artifact Verification**: After completing a complex task, verify the artifacts (e.g. check if files exist using \`ls\`).
|
|
32993
|
-
4. **LSP Instinct**: Before modifying any code, you MUST first build structure context (structure tree \u2192 hotspot \u2192 Read). Use \`
|
|
32994
|
+
4. **LSP Instinct**: Before modifying any code, you MUST first build structure context (structure tree \u2192 hotspot \u2192 Read). Use \`LSP documentSymbol\` or \`LSP goToDefinition\` only when you have a precise position and need to confirm exact range. Do NOT rely on line numbers from \`read_file\` alone as they may be outdated.
|
|
32994
32995
|
5. **Atomic Verification**: When editing code, especially in critical or complex files, you should strongly consider setting \`verify: true\` in the \`FileEditTool\`. This enables the tool to automatically detect syntax errors and ROLLBACK changes if they are invalid, preventing you from breaking the build.
|
|
32995
32996
|
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.
|
|
32996
32997
|
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.
|
|
@@ -33060,11 +33061,7 @@ assistant: src/foo.c
|
|
|
33060
33061
|
user: change the greeting in hello.ts
|
|
33061
33062
|
assistant: [uses Read tool to read hello.ts]
|
|
33062
33063
|
[uses Edit tool with the following input]
|
|
33063
|
-
<<<<<<< SEARCH
|
|
33064
|
-
console.log("Hello, world!");
|
|
33065
|
-
=======
|
|
33066
33064
|
console.log("Hello, User!");
|
|
33067
|
-
>>>>>>> REPLACE
|
|
33068
33065
|
</example>
|
|
33069
33066
|
`}
|
|
33070
33067
|
|
|
@@ -33116,17 +33113,17 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
33116
33113
|
2. **Exact Identifier**: WHEN you know the precise class/function name (e.g., "UserProfile", "initDatabase"), use standard Grep/Glob without \`semantic\` flag.
|
|
33117
33114
|
3. **Exploration**: If standard search returns 0 results, AUTOMATICALLY retry with \`semantic: true\`.
|
|
33118
33115
|
|
|
33119
|
-
#
|
|
33120
|
-
-
|
|
33121
|
-
-
|
|
33116
|
+
# Path Fragmentation Strategy
|
|
33117
|
+
- Root -> Core Directory -> Secondary Modules
|
|
33118
|
+
- Run structure scanning in the above order
|
|
33122
33119
|
|
|
33123
|
-
# LSP
|
|
33124
|
-
-
|
|
33125
|
-
- workspaceSymbol
|
|
33126
|
-
- documentSymbol
|
|
33120
|
+
# LSP Ordering and Scope Limits
|
|
33121
|
+
- Preferred order: structure tree -> hotspot location -> Read -> LSP
|
|
33122
|
+
- For workspaceSymbol, provide a query and a clear path/module scope to avoid unbounded workspace searches
|
|
33123
|
+
- For documentSymbol, prioritize LSP first, with Tree-Sitter as fallback
|
|
33127
33124
|
|
|
33128
|
-
# File Modification Strategy
|
|
33129
|
-
When you need to modify files,
|
|
33125
|
+
# File Modification Strategy
|
|
33126
|
+
When you need to modify files, use the tool that matches the change type.
|
|
33130
33127
|
|
|
33131
33128
|
1. **Edit Tool**: The primary tool for ALL file modifications.
|
|
33132
33129
|
- **Format**: Use the **SEARCH/REPLACE Block** format to specify changes. You can provide multiple blocks in one turn.
|
|
@@ -33135,14 +33132,6 @@ When you need to modify files, rely on the **Edit Tool** for almost all tasks.
|
|
|
33135
33132
|
- **Resilience**: Uses a 9-layer fuzzy matching engine and LSP anchoring to find code even if line numbers or indentation are slightly off.
|
|
33136
33133
|
- **Requirement**: Always READ the file first to get the context.
|
|
33137
33134
|
|
|
33138
|
-
2. **Patch Tool**: Use ONLY for massive multi-file refactoring where strict atomicity across files is required.
|
|
33139
|
-
- **Note**: Prefer Edit Tool for 99% of tasks.
|
|
33140
|
-
|
|
33141
|
-
# Cognitive Safety & Verification
|
|
33142
|
-
1. **Modification Check**: Before editing, you MUST verify if the change is already present (e.g. use \`grep\` or \`read\`). Do not rely on your memory or previous turns.
|
|
33143
|
-
2. **Precise Targeting**: For code injection, prefer using LSP (\`LSPTool.documentSymbol\` or \`LSPTool.definition\`) to find exact function boundaries or symbol ranges. Do NOT rely on line numbers from \`read_file\` alone as they may be outdated.
|
|
33144
|
-
3. **Artifact Verification**: After completing a complex task, verify the artifacts (e.g. check if files exist using \`ls\`, or content matches using \`grep\`).
|
|
33145
|
-
|
|
33146
33135
|
${isOutputStyleActive ? "" : "\nYou MUST answer concisely with fewer than 4 lines of text (not including tool use or code generation), unless user asks for detail.\n"}
|
|
33147
33136
|
`,
|
|
33148
33137
|
...sessionStartAdditionalContext ? [`
|