pybao-cli 1.4.61 → 1.4.63
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-VVHH2KM2.js +46 -0
- package/dist/{acp-6XO6DZ4K.js → acp-5QDBNRRE.js} +29 -29
- package/dist/{agentsValidate-N6USTEX6.js → agentsValidate-B367IG6U.js} +7 -7
- package/dist/{ask-U7Z3DDMS.js → ask-3CPXGOLO.js} +28 -28
- package/dist/{autoUpdater-SKABKEDG.js → autoUpdater-35UXWLT6.js} +3 -3
- package/dist/{chunk-7OTUXO44.js → chunk-26XVUVWY.js} +3 -3
- package/dist/{chunk-7SI5GFRV.js → chunk-32Q7FT7L.js} +1 -1
- package/dist/{chunk-BZP4S26C.js → chunk-54AMRMDD.js} +5 -3
- package/dist/chunk-54AMRMDD.js.map +7 -0
- package/dist/{chunk-M7TC4PYX.js → chunk-575TOTN2.js} +4 -4
- package/dist/{chunk-56F6HFV3.js → chunk-5SKQV673.js} +2 -2
- package/dist/{chunk-SEYAHQLM.js → chunk-AT4J7MOM.js} +4 -4
- package/dist/{chunk-N4XJF5KW.js → chunk-COUDVAGK.js} +3 -3
- package/dist/{chunk-IEYYJQSN.js → chunk-CV67HJEB.js} +4 -4
- package/dist/{chunk-PTFRX47Q.js → chunk-DGRO3L2U.js} +1 -1
- package/dist/{chunk-WIEHMZHA.js → chunk-EGHZGCL6.js} +3 -3
- package/dist/{chunk-Z75JN5D5.js → chunk-EKFYPTGN.js} +3 -3
- package/dist/{chunk-RRVFQN7A.js → chunk-ELMOCWI7.js} +38 -37
- package/dist/{chunk-RRVFQN7A.js.map → chunk-ELMOCWI7.js.map} +2 -2
- package/dist/{chunk-WEYGVSI3.js → chunk-G4UKRVHC.js} +1 -1
- package/dist/{chunk-GJ5MQLQW.js → chunk-GCJ4WAVU.js} +3 -3
- package/dist/{chunk-UVTCQRSO.js → chunk-HT2QSRG6.js} +1 -1
- package/dist/{chunk-E5ITVDNO.js → chunk-J3JUMIML.js} +2 -2
- package/dist/{chunk-QLOVB5WV.js → chunk-JHXV6Q6F.js} +1 -1
- package/dist/{chunk-F3GKVQH4.js → chunk-JMV4MDYP.js} +17 -17
- package/dist/{chunk-F3GKVQH4.js.map → chunk-JMV4MDYP.js.map} +1 -1
- package/dist/{chunk-QFHNNIRB.js → chunk-K3MMFNWK.js} +1 -1
- package/dist/{chunk-QFHNNIRB.js.map → chunk-K3MMFNWK.js.map} +1 -1
- package/dist/{chunk-UQT43SRL.js → chunk-MHTCXNXA.js} +1 -1
- package/dist/{chunk-7MDERGB4.js → chunk-MINE35O7.js} +1 -1
- package/dist/{chunk-V5RQSF7R.js → chunk-MU6B2VQ4.js} +2 -2
- package/dist/{chunk-2EAKAXE7.js → chunk-O35VWHXM.js} +4 -4
- package/dist/{chunk-3C6TCPTK.js → chunk-S3NCVAKW.js} +2 -2
- package/dist/{chunk-EV3XWHXP.js → chunk-U5DK6DKX.js} +1 -1
- package/dist/{chunk-7XB7B6Z4.js → chunk-UTOIHV4R.js} +2 -2
- package/dist/{chunk-RTIGJSOG.js → chunk-V34SLB5U.js} +2 -2
- package/dist/{chunk-KHHFZVFT.js → chunk-VTL4JKRR.js} +1 -1
- package/dist/{chunk-FVVMATKZ.js → chunk-XKDUG5NH.js} +3 -3
- package/dist/{chunk-RPQSFP52.js → chunk-YNQF2C25.js} +2 -2
- package/dist/{cli-ARZZZJMR.js → cli-I6IZLYZL.js} +87 -87
- package/dist/commands-MYVU5L6Z.js +50 -0
- package/dist/{config-YTD2SOEU.js → config-6YHGZWHJ.js} +4 -4
- package/dist/{context-Y3W46GSA.js → context-CKDOG72T.js} +6 -6
- package/dist/{customCommands-25ZCNKDR.js → customCommands-6AKUHGFZ.js} +4 -4
- package/dist/{env-RIIPJMJB.js → env-YLAC6QCC.js} +2 -2
- package/dist/{file-7HEQVJ73.js → file-QUKVDIUZ.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-VHGMLUMA.js → llm-Y7Q634YT.js} +29 -29
- package/dist/{llmLazy-XKTD2R72.js → llmLazy-IGTRWGRN.js} +1 -1
- package/dist/{loader-XYKXQ4H5.js → loader-5M2R3M2D.js} +4 -4
- package/dist/{lsp-VYNRCIOT.js → lsp-QIOSQUNB.js} +6 -6
- package/dist/{lspAnchor-Z763O5JV.js → lspAnchor-R66G3QH6.js} +6 -6
- package/dist/{mcp-LVJ3GFBK.js → mcp-LDR2HGAG.js} +7 -7
- package/dist/{mentionProcessor-I4DOMLGV.js → mentionProcessor-ZTUWMWSM.js} +5 -5
- package/dist/{messages-2QDFFJNL.js → messages-CUXTZ7R4.js} +1 -1
- package/dist/{model-6SZVFU73.js → model-NX4M2CNS.js} +5 -5
- package/dist/{openai-C3ZO5ZGQ.js → openai-UXLA5ELC.js} +5 -5
- package/dist/{outputStyles-QYM3GK47.js → outputStyles-HPVGQS3R.js} +4 -4
- package/dist/{pluginRuntime-ZIW6JAIM.js → pluginRuntime-DPSLKXM4.js} +6 -6
- package/dist/{pluginValidation-4VYKYFQA.js → pluginValidation-DDTUIJZA.js} +6 -6
- package/dist/prompts-33SUBTAU.js +52 -0
- package/dist/{pybAgentSessionLoad-6MBKOFXS.js → pybAgentSessionLoad-ONZSDTU4.js} +4 -4
- package/dist/{pybAgentSessionResume-H7PXL2LX.js → pybAgentSessionResume-3EOMMP23.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-SBEDAJNJ.js → pybAgentStreamJsonSession-QHFHCC2H.js} +1 -1
- package/dist/{pybHooks-GD2MFXKZ.js → pybHooks-5QNPMWGV.js} +4 -4
- package/dist/query-B3OWD6AW.js +54 -0
- package/dist/{registry-YGBXA7SH.js → registry-HHOZIHLX.js} +5 -5
- package/dist/{ripgrep-VSVJH453.js → ripgrep-RZRBKALT.js} +3 -3
- package/dist/{skillMarketplace-LIZJ4ZIQ.js → skillMarketplace-76KSG4RM.js} +3 -3
- package/dist/{state-OQTB4HM4.js → state-2FQS3U4Y.js} +2 -2
- package/dist/{theme-RJQIICNA.js → theme-XPR5FD3R.js} +5 -5
- package/dist/{toolPermissionSettings-D6JZFF7R.js → toolPermissionSettings-QJMDUL2C.js} +6 -6
- package/dist/tools-MB5YZ2II.js +51 -0
- package/dist/{userInput-Y4QSHHCF.js → userInput-SFXIUTPN.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-D2V54PR2.js +0 -46
- package/dist/chunk-BZP4S26C.js.map +0 -7
- package/dist/commands-N5UWETIS.js +0 -50
- package/dist/prompts-M5SGMYVA.js +0 -52
- package/dist/query-DQOO54O2.js +0 -54
- package/dist/tools-YPKSRUWZ.js +0 -51
- /package/dist/{REPL-D2V54PR2.js.map → REPL-VVHH2KM2.js.map} +0 -0
- /package/dist/{acp-6XO6DZ4K.js.map → acp-5QDBNRRE.js.map} +0 -0
- /package/dist/{agentsValidate-N6USTEX6.js.map → agentsValidate-B367IG6U.js.map} +0 -0
- /package/dist/{ask-U7Z3DDMS.js.map → ask-3CPXGOLO.js.map} +0 -0
- /package/dist/{autoUpdater-SKABKEDG.js.map → autoUpdater-35UXWLT6.js.map} +0 -0
- /package/dist/{chunk-7OTUXO44.js.map → chunk-26XVUVWY.js.map} +0 -0
- /package/dist/{chunk-7SI5GFRV.js.map → chunk-32Q7FT7L.js.map} +0 -0
- /package/dist/{chunk-M7TC4PYX.js.map → chunk-575TOTN2.js.map} +0 -0
- /package/dist/{chunk-56F6HFV3.js.map → chunk-5SKQV673.js.map} +0 -0
- /package/dist/{chunk-SEYAHQLM.js.map → chunk-AT4J7MOM.js.map} +0 -0
- /package/dist/{chunk-N4XJF5KW.js.map → chunk-COUDVAGK.js.map} +0 -0
- /package/dist/{chunk-IEYYJQSN.js.map → chunk-CV67HJEB.js.map} +0 -0
- /package/dist/{chunk-PTFRX47Q.js.map → chunk-DGRO3L2U.js.map} +0 -0
- /package/dist/{chunk-WIEHMZHA.js.map → chunk-EGHZGCL6.js.map} +0 -0
- /package/dist/{chunk-Z75JN5D5.js.map → chunk-EKFYPTGN.js.map} +0 -0
- /package/dist/{chunk-WEYGVSI3.js.map → chunk-G4UKRVHC.js.map} +0 -0
- /package/dist/{chunk-GJ5MQLQW.js.map → chunk-GCJ4WAVU.js.map} +0 -0
- /package/dist/{chunk-UVTCQRSO.js.map → chunk-HT2QSRG6.js.map} +0 -0
- /package/dist/{chunk-E5ITVDNO.js.map → chunk-J3JUMIML.js.map} +0 -0
- /package/dist/{chunk-QLOVB5WV.js.map → chunk-JHXV6Q6F.js.map} +0 -0
- /package/dist/{chunk-UQT43SRL.js.map → chunk-MHTCXNXA.js.map} +0 -0
- /package/dist/{chunk-7MDERGB4.js.map → chunk-MINE35O7.js.map} +0 -0
- /package/dist/{chunk-V5RQSF7R.js.map → chunk-MU6B2VQ4.js.map} +0 -0
- /package/dist/{chunk-2EAKAXE7.js.map → chunk-O35VWHXM.js.map} +0 -0
- /package/dist/{chunk-3C6TCPTK.js.map → chunk-S3NCVAKW.js.map} +0 -0
- /package/dist/{chunk-EV3XWHXP.js.map → chunk-U5DK6DKX.js.map} +0 -0
- /package/dist/{chunk-7XB7B6Z4.js.map → chunk-UTOIHV4R.js.map} +0 -0
- /package/dist/{chunk-RTIGJSOG.js.map → chunk-V34SLB5U.js.map} +0 -0
- /package/dist/{chunk-KHHFZVFT.js.map → chunk-VTL4JKRR.js.map} +0 -0
- /package/dist/{chunk-FVVMATKZ.js.map → chunk-XKDUG5NH.js.map} +0 -0
- /package/dist/{chunk-RPQSFP52.js.map → chunk-YNQF2C25.js.map} +0 -0
- /package/dist/{cli-ARZZZJMR.js.map → cli-I6IZLYZL.js.map} +0 -0
- /package/dist/{commands-N5UWETIS.js.map → commands-MYVU5L6Z.js.map} +0 -0
- /package/dist/{config-YTD2SOEU.js.map → config-6YHGZWHJ.js.map} +0 -0
- /package/dist/{context-Y3W46GSA.js.map → context-CKDOG72T.js.map} +0 -0
- /package/dist/{customCommands-25ZCNKDR.js.map → customCommands-6AKUHGFZ.js.map} +0 -0
- /package/dist/{env-RIIPJMJB.js.map → env-YLAC6QCC.js.map} +0 -0
- /package/dist/{file-7HEQVJ73.js.map → file-QUKVDIUZ.js.map} +0 -0
- /package/dist/{llm-VHGMLUMA.js.map → llm-Y7Q634YT.js.map} +0 -0
- /package/dist/{llmLazy-XKTD2R72.js.map → llmLazy-IGTRWGRN.js.map} +0 -0
- /package/dist/{loader-XYKXQ4H5.js.map → loader-5M2R3M2D.js.map} +0 -0
- /package/dist/{lsp-VYNRCIOT.js.map → lsp-QIOSQUNB.js.map} +0 -0
- /package/dist/{lspAnchor-Z763O5JV.js.map → lspAnchor-R66G3QH6.js.map} +0 -0
- /package/dist/{mcp-LVJ3GFBK.js.map → mcp-LDR2HGAG.js.map} +0 -0
- /package/dist/{mentionProcessor-I4DOMLGV.js.map → mentionProcessor-ZTUWMWSM.js.map} +0 -0
- /package/dist/{messages-2QDFFJNL.js.map → messages-CUXTZ7R4.js.map} +0 -0
- /package/dist/{model-6SZVFU73.js.map → model-NX4M2CNS.js.map} +0 -0
- /package/dist/{openai-C3ZO5ZGQ.js.map → openai-UXLA5ELC.js.map} +0 -0
- /package/dist/{outputStyles-QYM3GK47.js.map → outputStyles-HPVGQS3R.js.map} +0 -0
- /package/dist/{pluginRuntime-ZIW6JAIM.js.map → pluginRuntime-DPSLKXM4.js.map} +0 -0
- /package/dist/{pluginValidation-4VYKYFQA.js.map → pluginValidation-DDTUIJZA.js.map} +0 -0
- /package/dist/{prompts-M5SGMYVA.js.map → prompts-33SUBTAU.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-6MBKOFXS.js.map → pybAgentSessionLoad-ONZSDTU4.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-H7PXL2LX.js.map → pybAgentSessionResume-3EOMMP23.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-SBEDAJNJ.js.map → pybAgentStreamJsonSession-QHFHCC2H.js.map} +0 -0
- /package/dist/{pybHooks-GD2MFXKZ.js.map → pybHooks-5QNPMWGV.js.map} +0 -0
- /package/dist/{query-DQOO54O2.js.map → query-B3OWD6AW.js.map} +0 -0
- /package/dist/{registry-YGBXA7SH.js.map → registry-HHOZIHLX.js.map} +0 -0
- /package/dist/{ripgrep-VSVJH453.js.map → ripgrep-RZRBKALT.js.map} +0 -0
- /package/dist/{skillMarketplace-LIZJ4ZIQ.js.map → skillMarketplace-76KSG4RM.js.map} +0 -0
- /package/dist/{state-OQTB4HM4.js.map → state-2FQS3U4Y.js.map} +0 -0
- /package/dist/{theme-RJQIICNA.js.map → theme-XPR5FD3R.js.map} +0 -0
- /package/dist/{toolPermissionSettings-D6JZFF7R.js.map → toolPermissionSettings-QJMDUL2C.js.map} +0 -0
- /package/dist/{tools-YPKSRUWZ.js.map → tools-MB5YZ2II.js.map} +0 -0
- /package/dist/{userInput-Y4QSHHCF.js.map → userInput-SFXIUTPN.js.map} +0 -0
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VTL4JKRR.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K3MMFNWK.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/session/autoUpdater.ts
|
|
13
13
|
async function getSemver() {
|
|
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
|
|
|
82
82
|
const [
|
|
83
83
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
84
84
|
{ env }
|
|
85
|
-
] = await Promise.all([import("./config-
|
|
85
|
+
] = await Promise.all([import("./config-6YHGZWHJ.js"), import("./env-YLAC6QCC.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -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-EGHZGCL6.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-32Q7FT7L.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MHTCXNXA.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5SKQV673.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-XKDUG5NH.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-V34SLB5U.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures,
|
|
42
42
|
getSessionState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-S3NCVAKW.js";
|
|
44
44
|
import {
|
|
45
45
|
queryLLM,
|
|
46
46
|
queryQuick,
|
|
47
47
|
verifyApiKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-575TOTN2.js";
|
|
49
49
|
import {
|
|
50
50
|
DEFAULT_TIMEOUT_MS,
|
|
51
51
|
FallbackToolUseRejectedMessage,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
listMCPServers,
|
|
60
60
|
loadMergedSettings,
|
|
61
61
|
normalizeSandboxRuntimeConfigFromSettings
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-O35VWHXM.js";
|
|
63
63
|
import {
|
|
64
64
|
addMarketplace,
|
|
65
65
|
disableSkillPlugin,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
refreshMarketplaceAsync,
|
|
73
73
|
removeMarketplace,
|
|
74
74
|
uninstallSkillPlugin
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-MINE35O7.js";
|
|
76
76
|
import {
|
|
77
77
|
loadToolPermissionContextFromDisk,
|
|
78
78
|
persistToolPermissionUpdateToDisk
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-COUDVAGK.js";
|
|
80
80
|
import {
|
|
81
81
|
applyToolPermissionContextUpdate,
|
|
82
82
|
applyToolPermissionContextUpdates,
|
|
@@ -87,13 +87,13 @@ import {
|
|
|
87
87
|
generateSystemReminders,
|
|
88
88
|
resetReminderSession,
|
|
89
89
|
systemReminderService
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-MU6B2VQ4.js";
|
|
91
91
|
import {
|
|
92
92
|
clearAgentCache,
|
|
93
93
|
getActiveAgents,
|
|
94
94
|
getAgentByType,
|
|
95
95
|
getAllAgents
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-YNQF2C25.js";
|
|
97
97
|
import {
|
|
98
98
|
API_ERROR_MESSAGE_PREFIX,
|
|
99
99
|
CANCEL_MESSAGE,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
processUserInput,
|
|
125
125
|
reorderMessages,
|
|
126
126
|
stripSystemMessages
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-HT2QSRG6.js";
|
|
128
128
|
import {
|
|
129
129
|
getRequestStatus,
|
|
130
130
|
setRequestStatus,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
normalizeFilePath,
|
|
155
155
|
readTextContent,
|
|
156
156
|
writeTextContent
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-UTOIHV4R.js";
|
|
158
158
|
import {
|
|
159
159
|
parseBlockEdits
|
|
160
160
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -164,18 +164,18 @@ import {
|
|
|
164
164
|
ParserRegistry,
|
|
165
165
|
initParser,
|
|
166
166
|
loadLanguage
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-CV67HJEB.js";
|
|
168
168
|
import {
|
|
169
169
|
getSettingsFileCandidates,
|
|
170
170
|
loadSettingsWithLegacyFallback,
|
|
171
171
|
readSettingsFile
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-G4UKRVHC.js";
|
|
173
173
|
import {
|
|
174
174
|
getCustomCommandDirectories,
|
|
175
175
|
hasCustomCommands,
|
|
176
176
|
loadCustomCommands,
|
|
177
177
|
reloadCustomCommands
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-J3JUMIML.js";
|
|
179
179
|
import {
|
|
180
180
|
getSessionPlugins
|
|
181
181
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
ModelManager,
|
|
184
184
|
getModelManager,
|
|
185
185
|
isDefaultSlowAndCapableModel
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-26XVUVWY.js";
|
|
187
187
|
import {
|
|
188
188
|
getCodeStyle,
|
|
189
189
|
getContext,
|
|
@@ -191,13 +191,13 @@ import {
|
|
|
191
191
|
getIsGit,
|
|
192
192
|
getProjectDocs,
|
|
193
193
|
getProjectStructureStatisticsBlock
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-AT4J7MOM.js";
|
|
195
195
|
import {
|
|
196
196
|
ripGrep
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-DGRO3L2U.js";
|
|
198
198
|
import {
|
|
199
199
|
getTheme
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-U5DK6DKX.js";
|
|
201
201
|
import {
|
|
202
202
|
DEFAULT_GLOBAL_CONFIG,
|
|
203
203
|
enableConfigs,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
saveGlobalConfig,
|
|
211
211
|
setAllPointersToModel,
|
|
212
212
|
setModelPointer
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-54AMRMDD.js";
|
|
214
214
|
import {
|
|
215
215
|
AbortError
|
|
216
216
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
getCurrentRequest,
|
|
220
220
|
logUserFriendly,
|
|
221
221
|
markPhase
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-JHXV6Q6F.js";
|
|
223
223
|
import {
|
|
224
224
|
ASCII_LOGO,
|
|
225
225
|
BunShell,
|
|
@@ -260,10 +260,10 @@ import {
|
|
|
260
260
|
setCwd,
|
|
261
261
|
shouldApplyToolOutputTruncation,
|
|
262
262
|
truncateToolOutput
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-VTL4JKRR.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-K3MMFNWK.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-Y7Q634YT.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-Y7Q634YT.js");
|
|
4250
4250
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4251
4251
|
const messages = [
|
|
4252
4252
|
{
|
|
@@ -6643,7 +6643,7 @@ var FileEditTool = {
|
|
|
6643
6643
|
const originalFileContent = currentFileContent;
|
|
6644
6644
|
let totalPatch = [];
|
|
6645
6645
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6646
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6646
|
+
const { findLspAnchor } = await import("./lspAnchor-R66G3QH6.js");
|
|
6647
6647
|
for (const op of editOperations) {
|
|
6648
6648
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6649
6649
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11278,7 +11278,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11278
11278
|
}
|
|
11279
11279
|
saveGlobalConfig(config2);
|
|
11280
11280
|
try {
|
|
11281
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11281
|
+
const { resetAnthropicClient } = await import("./llm-Y7Q634YT.js");
|
|
11282
11282
|
resetAnthropicClient();
|
|
11283
11283
|
} catch {
|
|
11284
11284
|
}
|
|
@@ -15645,7 +15645,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15645
15645
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15646
15646
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15647
15647
|
if (dirs.length === 0) return [];
|
|
15648
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15648
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-DPSLKXM4.js");
|
|
15649
15649
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15650
15650
|
return errors;
|
|
15651
15651
|
}
|
|
@@ -16314,7 +16314,7 @@ async function call(onDone, context) {
|
|
|
16314
16314
|
ModelConfig,
|
|
16315
16315
|
{
|
|
16316
16316
|
onClose: () => {
|
|
16317
|
-
import("./model-
|
|
16317
|
+
import("./model-NX4M2CNS.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16318
16318
|
reloadModelManager2();
|
|
16319
16319
|
triggerModelConfigChange();
|
|
16320
16320
|
onDone();
|
|
@@ -25194,7 +25194,7 @@ function useStatusLine() {
|
|
|
25194
25194
|
// src/ui/components/PromptInput.tsx
|
|
25195
25195
|
async function interpretHashCommand(input) {
|
|
25196
25196
|
try {
|
|
25197
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25197
|
+
const { queryQuick: queryQuick2 } = await import("./llm-Y7Q634YT.js");
|
|
25198
25198
|
const systemPrompt = [
|
|
25199
25199
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25200
25200
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25553,7 +25553,7 @@ function PromptInput({
|
|
|
25553
25553
|
if (messages2.length) {
|
|
25554
25554
|
if (mode === "bash") {
|
|
25555
25555
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25556
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25556
|
+
const { getCwd: getCwd2 } = await import("./state-2FQS3U4Y.js");
|
|
25557
25557
|
setCurrentPwd(getCwd2());
|
|
25558
25558
|
});
|
|
25559
25559
|
} else {
|
|
@@ -28127,7 +28127,7 @@ function REPL({
|
|
|
28127
28127
|
[]
|
|
28128
28128
|
);
|
|
28129
28129
|
const readFileTimestamps = useRef13({});
|
|
28130
|
-
const
|
|
28130
|
+
const queueMergeWindowMs = getGlobalConfig().queueMergeWindowMs ?? 500;
|
|
28131
28131
|
const updateQueuedMessages = useCallback16(
|
|
28132
28132
|
(next) => {
|
|
28133
28133
|
queuedMessagesRef.current = next;
|
|
@@ -28182,7 +28182,7 @@ function REPL({
|
|
|
28182
28182
|
const { batch, remaining } = takeQueuedBatch({
|
|
28183
28183
|
entries: queuedMessagesRef.current,
|
|
28184
28184
|
activeTurnId,
|
|
28185
|
-
windowMs:
|
|
28185
|
+
windowMs: queueMergeWindowMs
|
|
28186
28186
|
});
|
|
28187
28187
|
if (!batch) return null;
|
|
28188
28188
|
updateQueuedMessages(remaining);
|
|
@@ -28230,6 +28230,7 @@ function REPL({
|
|
|
28230
28230
|
setForkConvoWithMessagesOnTheNextRender,
|
|
28231
28231
|
messages,
|
|
28232
28232
|
abortController,
|
|
28233
|
+
queueMergeWindowMs,
|
|
28233
28234
|
updateQueuedMessages
|
|
28234
28235
|
]
|
|
28235
28236
|
);
|
|
@@ -28969,7 +28970,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28969
28970
|
// src/commands/agents/generation.ts
|
|
28970
28971
|
import { randomUUID as randomUUID7 } from "crypto";
|
|
28971
28972
|
async function generateAgentWithClaude(prompt) {
|
|
28972
|
-
const { queryModel } = await import("./llm-
|
|
28973
|
+
const { queryModel } = await import("./llm-Y7Q634YT.js");
|
|
28973
28974
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28974
28975
|
|
|
28975
28976
|
Return your response as a JSON object with exactly these fields:
|