pybao-cli 1.3.59 → 1.3.60
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-NWGNC5Q6.js +42 -0
- package/dist/{acp-XITLIU7Q.js → acp-TBTUUMWW.js} +26 -26
- package/dist/{agentsValidate-JJ7TRTOQ.js → agentsValidate-J63L4VBS.js} +7 -7
- package/dist/{ask-MMUUUT4B.js → ask-XZVD32YA.js} +25 -25
- package/dist/{autoUpdater-ZLQ737K2.js → autoUpdater-MGX45DVC.js} +3 -3
- package/dist/{chunk-KT7AFM3Y.js → chunk-254HM3YV.js} +1 -1
- package/dist/{chunk-4SQMIADE.js → chunk-37MRI7OH.js} +3 -3
- package/dist/{chunk-4LOPGO3B.js → chunk-3KDIVUMJ.js} +1 -1
- package/dist/{chunk-JQB6ZCIG.js → chunk-4PUOJP27.js} +3 -3
- package/dist/{chunk-S3WJV47A.js → chunk-5J75JNYU.js} +2 -2
- package/dist/{chunk-BFRI6TO3.js → chunk-6TS7JDP6.js} +3 -3
- package/dist/{chunk-QZQTOGZM.js → chunk-A2E4MLOO.js} +3 -3
- package/dist/{chunk-GKXOFPYV.js → chunk-CBCXCBGD.js} +1 -1
- package/dist/{chunk-ZNMRDNXQ.js → chunk-CY2SE75O.js} +2 -2
- package/dist/{chunk-ZHEMMVLC.js → chunk-DKDOBGYY.js} +41 -39
- package/dist/{chunk-ZHEMMVLC.js.map → chunk-DKDOBGYY.js.map} +2 -2
- package/dist/{chunk-M3AEDKSE.js → chunk-E36DR7VA.js} +1 -1
- package/dist/{chunk-CAEIEVV4.js → chunk-FV4TLVB2.js} +2 -2
- package/dist/{chunk-D3HU5ESS.js → chunk-GZBGCBRV.js} +3 -3
- package/dist/{chunk-7T3SDQOM.js → chunk-HFKFW2FC.js} +12 -12
- package/dist/{chunk-X7KBX3SQ.js → chunk-IXGCKRWF.js} +4 -4
- package/dist/{chunk-JWU4GQ2S.js → chunk-LW2CMS4L.js} +1 -1
- package/dist/{chunk-COW6GXO7.js → chunk-NJS7QEQM.js} +1 -1
- package/dist/{chunk-3FVHZRMZ.js → chunk-RP24IRHH.js} +2 -2
- package/dist/{chunk-MYP255MC.js → chunk-SXEY6MGO.js} +2 -2
- package/dist/{chunk-HQLCQM4K.js → chunk-SZEKCDXG.js} +1 -1
- package/dist/{chunk-D57QJMYF.js → chunk-TDU6Z7ZH.js} +1 -1
- package/dist/{chunk-2GU2JFSX.js → chunk-UNCZ66TS.js} +3 -3
- package/dist/{chunk-D43WGGGQ.js → chunk-V6ZP7GFL.js} +1 -1
- package/dist/{chunk-D43WGGGQ.js.map → chunk-V6ZP7GFL.js.map} +1 -1
- package/dist/{chunk-GMMRCXQX.js → chunk-YIBR6CZP.js} +3 -3
- package/dist/{chunk-GKXPIENR.js → chunk-YNYNKU7M.js} +2 -2
- package/dist/{chunk-YXGNHIAR.js → chunk-ZCIXEHO3.js} +1 -1
- package/dist/{chunk-L257TPK2.js → chunk-ZMWB3VBE.js} +4 -4
- package/dist/{cli-ELZD452T.js → cli-L6YXHMEO.js} +77 -77
- package/dist/commands-FSKNON7C.js +46 -0
- package/dist/{config-A5FS3ITW.js → config-FWF3LEWN.js} +4 -4
- package/dist/{context-6BCQFGSS.js → context-2QY2VH4A.js} +5 -5
- package/dist/{customCommands-ZKTG4BIB.js → customCommands-VEMR2LGN.js} +4 -4
- package/dist/{env-KAOLFIXM.js → env-OSC56YI7.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-AGDCOH6K.js → llm-O2MER4L2.js} +26 -26
- package/dist/{llmLazy-VBZFVXPO.js → llmLazy-SYEDSZSB.js} +1 -1
- package/dist/{loader-M5FKPUT5.js → loader-MLL6SWIJ.js} +4 -4
- package/dist/{mcp-ONDCUJQX.js → mcp-HAYTXPHN.js} +7 -7
- package/dist/{mentionProcessor-QWTLWXBL.js → mentionProcessor-GOZEGP7X.js} +5 -5
- package/dist/{messages-NZH4WKUA.js → messages-KCLPP7WQ.js} +1 -1
- package/dist/{model-CUREHPKD.js → model-6X7QI4AK.js} +5 -5
- package/dist/{openai-SJZZMS6K.js → openai-4S6PLFQU.js} +5 -5
- package/dist/{outputStyles-BG6GI36T.js → outputStyles-LHLEZ5PP.js} +4 -4
- package/dist/{pluginRuntime-I3F3K444.js → pluginRuntime-ODS43P2F.js} +6 -6
- package/dist/{pluginValidation-L32JDUBR.js → pluginValidation-IG66AYUD.js} +6 -6
- package/dist/prompts-Q6P7GL77.js +48 -0
- package/dist/{pybAgentSessionLoad-3JI5P3QM.js → pybAgentSessionLoad-R67Y7CA4.js} +4 -4
- package/dist/{pybAgentSessionResume-LAKDG73A.js → pybAgentSessionResume-QZFZCTJZ.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-TYJWRHSN.js → pybAgentStreamJsonSession-R2ALHKP3.js} +1 -1
- package/dist/{pybHooks-UFUN5PON.js → pybHooks-PHE6MC5A.js} +4 -4
- package/dist/query-D7HUISRS.js +50 -0
- package/dist/{ripgrep-SQ2A2JPU.js → ripgrep-6VRUGZMJ.js} +3 -3
- package/dist/{skillMarketplace-QN4IY5YS.js → skillMarketplace-JB4ZTJ7Z.js} +3 -3
- package/dist/{state-2N5OZQTT.js → state-PD2NWT3T.js} +2 -2
- package/dist/{theme-LPFPU3CC.js → theme-LAB3MOQZ.js} +5 -5
- package/dist/{toolPermissionSettings-EN35AC4Y.js → toolPermissionSettings-EIEMOTDK.js} +6 -6
- package/dist/tools-AQKKY4YI.js +47 -0
- package/dist/{userInput-FCQ7553D.js → userInput-GGN3LX3H.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-HEB527L5.js +0 -42
- package/dist/commands-47J4IZ5B.js +0 -46
- package/dist/prompts-HL2KRZIG.js +0 -48
- package/dist/query-ZE4CEAEH.js +0 -50
- package/dist/tools-PR5LQ74M.js +0 -47
- /package/dist/{REPL-HEB527L5.js.map → REPL-NWGNC5Q6.js.map} +0 -0
- /package/dist/{acp-XITLIU7Q.js.map → acp-TBTUUMWW.js.map} +0 -0
- /package/dist/{agentsValidate-JJ7TRTOQ.js.map → agentsValidate-J63L4VBS.js.map} +0 -0
- /package/dist/{ask-MMUUUT4B.js.map → ask-XZVD32YA.js.map} +0 -0
- /package/dist/{autoUpdater-ZLQ737K2.js.map → autoUpdater-MGX45DVC.js.map} +0 -0
- /package/dist/{chunk-KT7AFM3Y.js.map → chunk-254HM3YV.js.map} +0 -0
- /package/dist/{chunk-4SQMIADE.js.map → chunk-37MRI7OH.js.map} +0 -0
- /package/dist/{chunk-4LOPGO3B.js.map → chunk-3KDIVUMJ.js.map} +0 -0
- /package/dist/{chunk-JQB6ZCIG.js.map → chunk-4PUOJP27.js.map} +0 -0
- /package/dist/{chunk-S3WJV47A.js.map → chunk-5J75JNYU.js.map} +0 -0
- /package/dist/{chunk-BFRI6TO3.js.map → chunk-6TS7JDP6.js.map} +0 -0
- /package/dist/{chunk-QZQTOGZM.js.map → chunk-A2E4MLOO.js.map} +0 -0
- /package/dist/{chunk-GKXOFPYV.js.map → chunk-CBCXCBGD.js.map} +0 -0
- /package/dist/{chunk-ZNMRDNXQ.js.map → chunk-CY2SE75O.js.map} +0 -0
- /package/dist/{chunk-M3AEDKSE.js.map → chunk-E36DR7VA.js.map} +0 -0
- /package/dist/{chunk-CAEIEVV4.js.map → chunk-FV4TLVB2.js.map} +0 -0
- /package/dist/{chunk-D3HU5ESS.js.map → chunk-GZBGCBRV.js.map} +0 -0
- /package/dist/{chunk-7T3SDQOM.js.map → chunk-HFKFW2FC.js.map} +0 -0
- /package/dist/{chunk-X7KBX3SQ.js.map → chunk-IXGCKRWF.js.map} +0 -0
- /package/dist/{chunk-JWU4GQ2S.js.map → chunk-LW2CMS4L.js.map} +0 -0
- /package/dist/{chunk-COW6GXO7.js.map → chunk-NJS7QEQM.js.map} +0 -0
- /package/dist/{chunk-3FVHZRMZ.js.map → chunk-RP24IRHH.js.map} +0 -0
- /package/dist/{chunk-MYP255MC.js.map → chunk-SXEY6MGO.js.map} +0 -0
- /package/dist/{chunk-HQLCQM4K.js.map → chunk-SZEKCDXG.js.map} +0 -0
- /package/dist/{chunk-D57QJMYF.js.map → chunk-TDU6Z7ZH.js.map} +0 -0
- /package/dist/{chunk-2GU2JFSX.js.map → chunk-UNCZ66TS.js.map} +0 -0
- /package/dist/{chunk-GMMRCXQX.js.map → chunk-YIBR6CZP.js.map} +0 -0
- /package/dist/{chunk-GKXPIENR.js.map → chunk-YNYNKU7M.js.map} +0 -0
- /package/dist/{chunk-YXGNHIAR.js.map → chunk-ZCIXEHO3.js.map} +0 -0
- /package/dist/{chunk-L257TPK2.js.map → chunk-ZMWB3VBE.js.map} +0 -0
- /package/dist/{cli-ELZD452T.js.map → cli-L6YXHMEO.js.map} +0 -0
- /package/dist/{commands-47J4IZ5B.js.map → commands-FSKNON7C.js.map} +0 -0
- /package/dist/{config-A5FS3ITW.js.map → config-FWF3LEWN.js.map} +0 -0
- /package/dist/{context-6BCQFGSS.js.map → context-2QY2VH4A.js.map} +0 -0
- /package/dist/{customCommands-ZKTG4BIB.js.map → customCommands-VEMR2LGN.js.map} +0 -0
- /package/dist/{env-KAOLFIXM.js.map → env-OSC56YI7.js.map} +0 -0
- /package/dist/{llm-AGDCOH6K.js.map → llm-O2MER4L2.js.map} +0 -0
- /package/dist/{llmLazy-VBZFVXPO.js.map → llmLazy-SYEDSZSB.js.map} +0 -0
- /package/dist/{loader-M5FKPUT5.js.map → loader-MLL6SWIJ.js.map} +0 -0
- /package/dist/{mcp-ONDCUJQX.js.map → mcp-HAYTXPHN.js.map} +0 -0
- /package/dist/{mentionProcessor-QWTLWXBL.js.map → mentionProcessor-GOZEGP7X.js.map} +0 -0
- /package/dist/{messages-NZH4WKUA.js.map → messages-KCLPP7WQ.js.map} +0 -0
- /package/dist/{model-CUREHPKD.js.map → model-6X7QI4AK.js.map} +0 -0
- /package/dist/{openai-SJZZMS6K.js.map → openai-4S6PLFQU.js.map} +0 -0
- /package/dist/{outputStyles-BG6GI36T.js.map → outputStyles-LHLEZ5PP.js.map} +0 -0
- /package/dist/{pluginRuntime-I3F3K444.js.map → pluginRuntime-ODS43P2F.js.map} +0 -0
- /package/dist/{pluginValidation-L32JDUBR.js.map → pluginValidation-IG66AYUD.js.map} +0 -0
- /package/dist/{prompts-HL2KRZIG.js.map → prompts-Q6P7GL77.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-3JI5P3QM.js.map → pybAgentSessionLoad-R67Y7CA4.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-LAKDG73A.js.map → pybAgentSessionResume-QZFZCTJZ.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-TYJWRHSN.js.map → pybAgentStreamJsonSession-R2ALHKP3.js.map} +0 -0
- /package/dist/{pybHooks-UFUN5PON.js.map → pybHooks-PHE6MC5A.js.map} +0 -0
- /package/dist/{query-ZE4CEAEH.js.map → query-D7HUISRS.js.map} +0 -0
- /package/dist/{ripgrep-SQ2A2JPU.js.map → ripgrep-6VRUGZMJ.js.map} +0 -0
- /package/dist/{skillMarketplace-QN4IY5YS.js.map → skillMarketplace-JB4ZTJ7Z.js.map} +0 -0
- /package/dist/{state-2N5OZQTT.js.map → state-PD2NWT3T.js.map} +0 -0
- /package/dist/{theme-LPFPU3CC.js.map → theme-LAB3MOQZ.js.map} +0 -0
- /package/dist/{toolPermissionSettings-EN35AC4Y.js.map → toolPermissionSettings-EIEMOTDK.js.map} +0 -0
- /package/dist/{tools-PR5LQ74M.js.map → tools-AQKKY4YI.js.map} +0 -0
- /package/dist/{userInput-FCQ7553D.js.map → userInput-GGN3LX3H.js.map} +0 -0
|
@@ -2,7 +2,7 @@ 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-TDU6Z7ZH.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_TIMEOUT_MS,
|
|
8
8
|
FallbackToolUseRejectedMessage,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
listMCPServers,
|
|
17
17
|
loadMergedSettings,
|
|
18
18
|
normalizeSandboxRuntimeConfigFromSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZMWB3VBE.js";
|
|
20
20
|
import {
|
|
21
21
|
formatValidationResult,
|
|
22
22
|
validatePluginOrMarketplacePath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UNCZ66TS.js";
|
|
24
24
|
import {
|
|
25
25
|
addMarketplace,
|
|
26
26
|
disableSkillPlugin,
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
refreshMarketplaceAsync,
|
|
34
34
|
removeMarketplace,
|
|
35
35
|
uninstallSkillPlugin
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SZEKCDXG.js";
|
|
37
37
|
import {
|
|
38
38
|
loadPybAgentSessionMessages
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3KDIVUMJ.js";
|
|
40
40
|
import {
|
|
41
41
|
appendSessionCustomTitleRecord,
|
|
42
42
|
appendSessionJsonlFromMessage,
|
|
43
43
|
appendSessionTagRecord
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SXEY6MGO.js";
|
|
45
45
|
import {
|
|
46
46
|
getRequestStatus,
|
|
47
47
|
setRequestStatus,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
runStopHooks,
|
|
59
59
|
runUserPromptSubmitHooks,
|
|
60
60
|
updateHookTranscriptForMessages
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-4PUOJP27.js";
|
|
62
62
|
import {
|
|
63
63
|
getPybAgentSessionId,
|
|
64
64
|
setPybAgentSessionId
|
|
@@ -71,35 +71,35 @@ import {
|
|
|
71
71
|
getOutputStyleSystemPromptAdditions,
|
|
72
72
|
resolveOutputStyleName,
|
|
73
73
|
setCurrentOutputStyle
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-CY2SE75O.js";
|
|
75
75
|
import {
|
|
76
76
|
fetchCustomModels,
|
|
77
77
|
getModelFeatures
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-5J75JNYU.js";
|
|
79
79
|
import {
|
|
80
80
|
queryLLM,
|
|
81
81
|
queryQuick,
|
|
82
82
|
verifyApiKey
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-IXGCKRWF.js";
|
|
84
84
|
import {
|
|
85
85
|
listAllContentFiles,
|
|
86
86
|
ripGrep,
|
|
87
87
|
tree
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-NJS7QEQM.js";
|
|
89
89
|
import {
|
|
90
90
|
getCustomCommandDirectories,
|
|
91
91
|
hasCustomCommands,
|
|
92
92
|
loadCustomCommands,
|
|
93
93
|
reloadCustomCommands
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-FV4TLVB2.js";
|
|
95
95
|
import {
|
|
96
96
|
loadToolPermissionContextFromDisk,
|
|
97
97
|
persistToolPermissionUpdateToDisk
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-GZBGCBRV.js";
|
|
99
99
|
import {
|
|
100
100
|
getSettingsFileCandidates,
|
|
101
101
|
loadSettingsWithLegacyFallback
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-LW2CMS4L.js";
|
|
103
103
|
import {
|
|
104
104
|
applyToolPermissionContextUpdate,
|
|
105
105
|
createDefaultToolPermissionContext
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
resetReminderSession,
|
|
113
113
|
setTodos,
|
|
114
114
|
systemReminderService
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-YNYNKU7M.js";
|
|
116
116
|
import {
|
|
117
117
|
getSessionState
|
|
118
118
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
getActiveAgents,
|
|
122
122
|
getAgentByType,
|
|
123
123
|
getAllAgents
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-RP24IRHH.js";
|
|
125
125
|
import {
|
|
126
126
|
getSessionPlugins
|
|
127
127
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -154,22 +154,22 @@ import {
|
|
|
154
154
|
processUserInput,
|
|
155
155
|
reorderMessages,
|
|
156
156
|
stripSystemMessages
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-CBCXCBGD.js";
|
|
158
158
|
import {
|
|
159
159
|
ModelManager,
|
|
160
160
|
getModelManager,
|
|
161
161
|
isDefaultSlowAndCapableModel
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-6TS7JDP6.js";
|
|
163
163
|
import {
|
|
164
164
|
getCodeStyle,
|
|
165
165
|
getContext,
|
|
166
166
|
getGitState,
|
|
167
167
|
getIsGit,
|
|
168
168
|
getProjectDocs
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-A2E4MLOO.js";
|
|
170
170
|
import {
|
|
171
171
|
getTheme
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-254HM3YV.js";
|
|
173
173
|
import {
|
|
174
174
|
DEFAULT_GLOBAL_CONFIG,
|
|
175
175
|
enableConfigs,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
saveGlobalConfig,
|
|
183
183
|
setAllPointersToModel,
|
|
184
184
|
setModelPointer
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-37MRI7OH.js";
|
|
186
186
|
import {
|
|
187
187
|
AbortError
|
|
188
188
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
getCurrentRequest,
|
|
192
192
|
logUserFriendly,
|
|
193
193
|
markPhase
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-ZCIXEHO3.js";
|
|
195
195
|
import {
|
|
196
196
|
ASCII_LOGO,
|
|
197
197
|
BunShell,
|
|
@@ -227,10 +227,10 @@ import {
|
|
|
227
227
|
renderBashNotification,
|
|
228
228
|
setActivePlanConversationKey,
|
|
229
229
|
setCwd
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-E36DR7VA.js";
|
|
231
231
|
import {
|
|
232
232
|
MACRO
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-V6ZP7GFL.js";
|
|
234
234
|
import {
|
|
235
235
|
formatTotalCost,
|
|
236
236
|
getTotalAPIDuration,
|
|
@@ -418,7 +418,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
418
418
|
var getCommandPrefix = memoize(
|
|
419
419
|
async (command4, abortSignal) => {
|
|
420
420
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
421
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
421
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-O2MER4L2.js");
|
|
422
422
|
const response = await queryQuick2({
|
|
423
423
|
systemPrompt,
|
|
424
424
|
userPrompt,
|
|
@@ -4458,7 +4458,7 @@ function formatParseError(error) {
|
|
|
4458
4458
|
return error instanceof Error ? error.message : String(error);
|
|
4459
4459
|
}
|
|
4460
4460
|
async function defaultGateQuery(args) {
|
|
4461
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4461
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-O2MER4L2.js");
|
|
4462
4462
|
const messages = [
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "user",
|
|
@@ -11454,7 +11454,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11454
11454
|
}
|
|
11455
11455
|
saveGlobalConfig(config2);
|
|
11456
11456
|
try {
|
|
11457
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11457
|
+
const { resetAnthropicClient } = await import("./llm-O2MER4L2.js");
|
|
11458
11458
|
resetAnthropicClient();
|
|
11459
11459
|
} catch {
|
|
11460
11460
|
}
|
|
@@ -15736,7 +15736,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15736
15736
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15737
15737
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15738
15738
|
if (dirs.length === 0) return [];
|
|
15739
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15739
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-ODS43P2F.js");
|
|
15740
15740
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15741
15741
|
return errors;
|
|
15742
15742
|
}
|
|
@@ -16405,7 +16405,7 @@ async function call(onDone, context) {
|
|
|
16405
16405
|
ModelConfig,
|
|
16406
16406
|
{
|
|
16407
16407
|
onClose: () => {
|
|
16408
|
-
import("./model-
|
|
16408
|
+
import("./model-6X7QI4AK.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16409
16409
|
reloadModelManager2();
|
|
16410
16410
|
triggerModelConfigChange();
|
|
16411
16411
|
onDone();
|
|
@@ -23664,7 +23664,7 @@ function useStatusLine() {
|
|
|
23664
23664
|
// src/ui/components/PromptInput.tsx
|
|
23665
23665
|
async function interpretHashCommand(input) {
|
|
23666
23666
|
try {
|
|
23667
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23667
|
+
const { queryQuick: queryQuick2 } = await import("./llm-O2MER4L2.js");
|
|
23668
23668
|
const systemPrompt = [
|
|
23669
23669
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23670
23670
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23977,7 +23977,7 @@ function PromptInput({
|
|
|
23977
23977
|
if (messages2.length) {
|
|
23978
23978
|
if (mode === "bash") {
|
|
23979
23979
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23980
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23980
|
+
const { getCwd: getCwd2 } = await import("./state-PD2NWT3T.js");
|
|
23981
23981
|
setCurrentPwd(getCwd2());
|
|
23982
23982
|
});
|
|
23983
23983
|
} else {
|
|
@@ -26763,7 +26763,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26763
26763
|
// src/commands/agents/generation.ts
|
|
26764
26764
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26765
26765
|
async function generateAgentWithClaude(prompt) {
|
|
26766
|
-
const { queryModel } = await import("./llm-
|
|
26766
|
+
const { queryModel } = await import("./llm-O2MER4L2.js");
|
|
26767
26767
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26768
26768
|
|
|
26769
26769
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -30834,13 +30834,15 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
30834
30834
|
|
|
30835
30835
|
# File Modification Strategy (Edit vs Patch)
|
|
30836
30836
|
When you need to modify files, choose the appropriate tool based on the complexity:
|
|
30837
|
-
1. **Edit Tool**: Use for
|
|
30838
|
-
- Ideal for: Renaming variables, changing specific lines,
|
|
30839
|
-
-
|
|
30840
|
-
|
|
30841
|
-
|
|
30842
|
-
-
|
|
30843
|
-
-
|
|
30837
|
+
1. **Edit Tool**: Use for single-file, fuzzy-resilient modifications.
|
|
30838
|
+
- Ideal for: Renaming variables, changing specific lines, fixing bugs, or when you are unsure about exact context.
|
|
30839
|
+
- Engine: Powered by a 9-layer fuzzy matching engine that handles indentation/whitespace errors automatically.
|
|
30840
|
+
- Requirement: Read file first to ensure you have the context.
|
|
30841
|
+
2. **Patch Tool**: Use for multi-file, atomic, or structural refactoring.
|
|
30842
|
+
- Ideal for: Modifying multiple dependent files (e.g. interface + implementation), applying large structural changes.
|
|
30843
|
+
- Engine: Supports "Smart Context" (fuzzy matching) but enforces "Strict Atomicity" (All or Nothing).
|
|
30844
|
+
- Benefit: Ensures project consistency. If one file fails, everything rolls back, preventing broken states.
|
|
30845
|
+
- Feedback: If it fails, you will get a rich report explaining why. You can then choose to fix the patch or fallback to Edit Tool for specific files.
|
|
30844
30846
|
|
|
30845
30847
|
${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"}
|
|
30846
30848
|
`,
|