pybao-cli 1.4.82 → 1.4.83
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-KB5JZS6S.js +49 -0
- package/dist/{acp-ASRH57AF.js → acp-5G23YRZD.js} +30 -30
- package/dist/{agentsValidate-35AHZXNB.js → agentsValidate-Y3JGFZPX.js} +7 -7
- package/dist/{ask-TI3ITWN7.js → ask-DNEJAFQM.js} +29 -29
- package/dist/{autoUpdater-MRK5BD2L.js → autoUpdater-NBXSZEKC.js} +3 -3
- package/dist/{chunk-JT3RE7UH.js → chunk-53LVQG4V.js} +2 -2
- package/dist/{chunk-IIVG2SHE.js → chunk-5KEKIQVC.js} +3 -3
- package/dist/{chunk-2AG4BTRV.js → chunk-5MEGIDN7.js} +1 -1
- package/dist/{chunk-PXPTGNYH.js → chunk-5MZZCUQX.js} +2 -2
- package/dist/{chunk-QUWUFGZF.js → chunk-7UTUKVKM.js} +4 -4
- package/dist/{chunk-UBX7JQR2.js → chunk-A5LLPMGS.js} +2 -2
- package/dist/{chunk-2YM35XWE.js → chunk-CFX5VEY5.js} +3 -3
- package/dist/{chunk-GUTLXPN6.js → chunk-DHJEENK5.js} +2 -2
- package/dist/{chunk-GZT2DWED.js → chunk-EINLEUKA.js} +1 -1
- package/dist/{chunk-AUGXOUTX.js → chunk-EUHKG6AJ.js} +1 -1
- package/dist/{chunk-DZTZPEPA.js → chunk-FPCH7C5K.js} +2 -2
- package/dist/{chunk-AYVB6VUF.js → chunk-FQL6V43W.js} +1 -1
- package/dist/{chunk-SZEYDC6A.js → chunk-FVR53MZY.js} +3 -3
- package/dist/{chunk-XOOHCC63.js → chunk-GKBRHNMB.js} +63 -36
- package/dist/{chunk-XOOHCC63.js.map → chunk-GKBRHNMB.js.map} +2 -2
- package/dist/{chunk-WBBMOYXK.js → chunk-GRQ32HWG.js} +1 -1
- package/dist/{chunk-WBBMOYXK.js.map → chunk-GRQ32HWG.js.map} +1 -1
- package/dist/{chunk-UXVOYFKL.js → chunk-IDJMJZP4.js} +2 -2
- package/dist/{chunk-KNWW4HGV.js → chunk-IIZXV4HL.js} +2 -2
- package/dist/{chunk-VMWEFYQB.js → chunk-KSCBNFN7.js} +1 -1
- package/dist/{chunk-TWWQYBVK.js → chunk-LIFJX3UL.js} +3 -3
- package/dist/{chunk-DYJD66YF.js → chunk-MBIKKOOW.js} +1 -1
- package/dist/{chunk-WVYIFMLG.js → chunk-MKSTJEGS.js} +4 -4
- package/dist/{chunk-NTL5PKCX.js → chunk-OCIKBYQ4.js} +3 -3
- package/dist/{chunk-HJWUPFGF.js → chunk-OUOB2RBI.js} +4 -4
- package/dist/{chunk-LM665HND.js → chunk-RMZABYAD.js} +1 -1
- package/dist/{chunk-GSAG6WNQ.js → chunk-SUHM4MYA.js} +1 -1
- package/dist/{chunk-Y5JPSTQ4.js → chunk-TKPY5LGF.js} +1 -1
- package/dist/{chunk-2S2V2ZI7.js → chunk-V37R5FE5.js} +16 -16
- package/dist/{chunk-U265OPSO.js → chunk-VRRJXBF3.js} +1 -1
- package/dist/{chunk-ZW25QNXS.js → chunk-WGGELTRR.js} +3 -3
- package/dist/{chunk-2WIUQUTU.js → chunk-WSP4AYLZ.js} +3 -3
- package/dist/{chunk-JQVZNIKI.js → chunk-XHQMUJIS.js} +4 -4
- package/dist/{cli-ECB4WYUZ.js → cli-7JVEUFE2.js} +89 -89
- package/dist/commands-FPZREXUW.js +53 -0
- package/dist/{config-KZHPV37P.js → config-YGHZ7OZB.js} +4 -4
- package/dist/{context-ZZI53BPM.js → context-SNUVPSIW.js} +6 -6
- package/dist/{conversationTracker-SC6NCQHL.js → conversationTracker-IXJWSKYY.js} +3 -3
- package/dist/{customCommands-MX6OENKO.js → customCommands-2YZVCPNF.js} +4 -4
- package/dist/{env-76WAAGI6.js → env-SPCTS7IU.js} +2 -2
- package/dist/{file-LCS77XWE.js → file-MRX573XM.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-AR66BS2U.js → llm-VAN6WS52.js} +30 -30
- package/dist/{llmLazy-5W6E5BCB.js → llmLazy-II5PXLQI.js} +1 -1
- package/dist/{loader-OWZ3WD2X.js → loader-EV4REQWE.js} +4 -4
- package/dist/{lsp-NLPSJYH4.js → lsp-O2TLN3AD.js} +6 -6
- package/dist/{lspAnchor-MWASWGQD.js → lspAnchor-BLB7II5Y.js} +6 -6
- package/dist/{mcp-T2UB74Y2.js → mcp-OJPHPVNM.js} +7 -7
- package/dist/{mentionProcessor-KIBWOHEC.js → mentionProcessor-BXCFLUXL.js} +5 -5
- package/dist/{messages-6BHCXDWR.js → messages-CUNARS37.js} +1 -1
- package/dist/{model-5NDSZPIL.js → model-OUTGOGMR.js} +5 -5
- package/dist/{openai-7XPWH2G7.js → openai-WTOKA74W.js} +5 -5
- package/dist/{outputStyles-QUE4ALJQ.js → outputStyles-K5O5RB33.js} +4 -4
- package/dist/{pluginRuntime-PQ3VZRX7.js → pluginRuntime-JEJXUSFZ.js} +6 -6
- package/dist/{pluginValidation-RQ34XQY3.js → pluginValidation-S4VSNYHJ.js} +6 -6
- package/dist/prompts-XUL3MGVE.js +55 -0
- package/dist/{pybAgentSessionLoad-5MWAY2A4.js → pybAgentSessionLoad-I7MI2W5O.js} +4 -4
- package/dist/{pybAgentSessionResume-NZGSUGGS.js → pybAgentSessionResume-CMC5D4IX.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-UP4WOINX.js → pybAgentStreamJsonSession-FUT6NUZG.js} +1 -1
- package/dist/{pybHooks-HILU7ZB4.js → pybHooks-I4C2HCMR.js} +4 -4
- package/dist/query-HKFFVARD.js +57 -0
- package/dist/{registry-4MWYBUFA.js → registry-HA4GULY4.js} +5 -5
- package/dist/{ripgrep-J74GL455.js → ripgrep-4F2VOLSN.js} +3 -3
- package/dist/{skillMarketplace-ATLDIEEX.js → skillMarketplace-73JWYMAT.js} +3 -3
- package/dist/{state-Y2Q4MPY5.js → state-WVRITIDZ.js} +2 -2
- package/dist/{theme-3L66ZU5Z.js → theme-BPZWU5M7.js} +5 -5
- package/dist/{toolPermissionSettings-PDGMFGN2.js → toolPermissionSettings-UOQTLVV5.js} +6 -6
- package/dist/tools-3OMW2SOR.js +54 -0
- package/dist/{userInput-GBXOUS4W.js → userInput-TQYQIWBV.js} +31 -31
- package/package.json +1 -1
- package/dist/REPL-VOJCD6X6.js +0 -49
- package/dist/commands-3B77L2SI.js +0 -53
- package/dist/prompts-5576MRUX.js +0 -55
- package/dist/query-LMPE4HBF.js +0 -57
- package/dist/tools-45UHHM5S.js +0 -54
- /package/dist/{REPL-VOJCD6X6.js.map → REPL-KB5JZS6S.js.map} +0 -0
- /package/dist/{acp-ASRH57AF.js.map → acp-5G23YRZD.js.map} +0 -0
- /package/dist/{agentsValidate-35AHZXNB.js.map → agentsValidate-Y3JGFZPX.js.map} +0 -0
- /package/dist/{ask-TI3ITWN7.js.map → ask-DNEJAFQM.js.map} +0 -0
- /package/dist/{autoUpdater-MRK5BD2L.js.map → autoUpdater-NBXSZEKC.js.map} +0 -0
- /package/dist/{chunk-JT3RE7UH.js.map → chunk-53LVQG4V.js.map} +0 -0
- /package/dist/{chunk-IIVG2SHE.js.map → chunk-5KEKIQVC.js.map} +0 -0
- /package/dist/{chunk-2AG4BTRV.js.map → chunk-5MEGIDN7.js.map} +0 -0
- /package/dist/{chunk-PXPTGNYH.js.map → chunk-5MZZCUQX.js.map} +0 -0
- /package/dist/{chunk-QUWUFGZF.js.map → chunk-7UTUKVKM.js.map} +0 -0
- /package/dist/{chunk-UBX7JQR2.js.map → chunk-A5LLPMGS.js.map} +0 -0
- /package/dist/{chunk-2YM35XWE.js.map → chunk-CFX5VEY5.js.map} +0 -0
- /package/dist/{chunk-GUTLXPN6.js.map → chunk-DHJEENK5.js.map} +0 -0
- /package/dist/{chunk-GZT2DWED.js.map → chunk-EINLEUKA.js.map} +0 -0
- /package/dist/{chunk-AUGXOUTX.js.map → chunk-EUHKG6AJ.js.map} +0 -0
- /package/dist/{chunk-DZTZPEPA.js.map → chunk-FPCH7C5K.js.map} +0 -0
- /package/dist/{chunk-AYVB6VUF.js.map → chunk-FQL6V43W.js.map} +0 -0
- /package/dist/{chunk-SZEYDC6A.js.map → chunk-FVR53MZY.js.map} +0 -0
- /package/dist/{chunk-UXVOYFKL.js.map → chunk-IDJMJZP4.js.map} +0 -0
- /package/dist/{chunk-KNWW4HGV.js.map → chunk-IIZXV4HL.js.map} +0 -0
- /package/dist/{chunk-VMWEFYQB.js.map → chunk-KSCBNFN7.js.map} +0 -0
- /package/dist/{chunk-TWWQYBVK.js.map → chunk-LIFJX3UL.js.map} +0 -0
- /package/dist/{chunk-DYJD66YF.js.map → chunk-MBIKKOOW.js.map} +0 -0
- /package/dist/{chunk-WVYIFMLG.js.map → chunk-MKSTJEGS.js.map} +0 -0
- /package/dist/{chunk-NTL5PKCX.js.map → chunk-OCIKBYQ4.js.map} +0 -0
- /package/dist/{chunk-HJWUPFGF.js.map → chunk-OUOB2RBI.js.map} +0 -0
- /package/dist/{chunk-LM665HND.js.map → chunk-RMZABYAD.js.map} +0 -0
- /package/dist/{chunk-GSAG6WNQ.js.map → chunk-SUHM4MYA.js.map} +0 -0
- /package/dist/{chunk-Y5JPSTQ4.js.map → chunk-TKPY5LGF.js.map} +0 -0
- /package/dist/{chunk-2S2V2ZI7.js.map → chunk-V37R5FE5.js.map} +0 -0
- /package/dist/{chunk-U265OPSO.js.map → chunk-VRRJXBF3.js.map} +0 -0
- /package/dist/{chunk-ZW25QNXS.js.map → chunk-WGGELTRR.js.map} +0 -0
- /package/dist/{chunk-2WIUQUTU.js.map → chunk-WSP4AYLZ.js.map} +0 -0
- /package/dist/{chunk-JQVZNIKI.js.map → chunk-XHQMUJIS.js.map} +0 -0
- /package/dist/{cli-ECB4WYUZ.js.map → cli-7JVEUFE2.js.map} +0 -0
- /package/dist/{commands-3B77L2SI.js.map → commands-FPZREXUW.js.map} +0 -0
- /package/dist/{config-KZHPV37P.js.map → config-YGHZ7OZB.js.map} +0 -0
- /package/dist/{context-ZZI53BPM.js.map → context-SNUVPSIW.js.map} +0 -0
- /package/dist/{conversationTracker-SC6NCQHL.js.map → conversationTracker-IXJWSKYY.js.map} +0 -0
- /package/dist/{customCommands-MX6OENKO.js.map → customCommands-2YZVCPNF.js.map} +0 -0
- /package/dist/{env-76WAAGI6.js.map → env-SPCTS7IU.js.map} +0 -0
- /package/dist/{file-LCS77XWE.js.map → file-MRX573XM.js.map} +0 -0
- /package/dist/{llm-AR66BS2U.js.map → llm-VAN6WS52.js.map} +0 -0
- /package/dist/{llmLazy-5W6E5BCB.js.map → llmLazy-II5PXLQI.js.map} +0 -0
- /package/dist/{loader-OWZ3WD2X.js.map → loader-EV4REQWE.js.map} +0 -0
- /package/dist/{lsp-NLPSJYH4.js.map → lsp-O2TLN3AD.js.map} +0 -0
- /package/dist/{lspAnchor-MWASWGQD.js.map → lspAnchor-BLB7II5Y.js.map} +0 -0
- /package/dist/{mcp-T2UB74Y2.js.map → mcp-OJPHPVNM.js.map} +0 -0
- /package/dist/{mentionProcessor-KIBWOHEC.js.map → mentionProcessor-BXCFLUXL.js.map} +0 -0
- /package/dist/{messages-6BHCXDWR.js.map → messages-CUNARS37.js.map} +0 -0
- /package/dist/{model-5NDSZPIL.js.map → model-OUTGOGMR.js.map} +0 -0
- /package/dist/{openai-7XPWH2G7.js.map → openai-WTOKA74W.js.map} +0 -0
- /package/dist/{outputStyles-QUE4ALJQ.js.map → outputStyles-K5O5RB33.js.map} +0 -0
- /package/dist/{pluginRuntime-PQ3VZRX7.js.map → pluginRuntime-JEJXUSFZ.js.map} +0 -0
- /package/dist/{pluginValidation-RQ34XQY3.js.map → pluginValidation-S4VSNYHJ.js.map} +0 -0
- /package/dist/{prompts-5576MRUX.js.map → prompts-XUL3MGVE.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-5MWAY2A4.js.map → pybAgentSessionLoad-I7MI2W5O.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-NZGSUGGS.js.map → pybAgentSessionResume-CMC5D4IX.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-UP4WOINX.js.map → pybAgentStreamJsonSession-FUT6NUZG.js.map} +0 -0
- /package/dist/{pybHooks-HILU7ZB4.js.map → pybHooks-I4C2HCMR.js.map} +0 -0
- /package/dist/{query-LMPE4HBF.js.map → query-HKFFVARD.js.map} +0 -0
- /package/dist/{registry-4MWYBUFA.js.map → registry-HA4GULY4.js.map} +0 -0
- /package/dist/{ripgrep-J74GL455.js.map → ripgrep-4F2VOLSN.js.map} +0 -0
- /package/dist/{skillMarketplace-ATLDIEEX.js.map → skillMarketplace-73JWYMAT.js.map} +0 -0
- /package/dist/{state-Y2Q4MPY5.js.map → state-WVRITIDZ.js.map} +0 -0
- /package/dist/{theme-3L66ZU5Z.js.map → theme-BPZWU5M7.js.map} +0 -0
- /package/dist/{toolPermissionSettings-PDGMFGN2.js.map → toolPermissionSettings-UOQTLVV5.js.map} +0 -0
- /package/dist/{tools-45UHHM5S.js.map → tools-3OMW2SOR.js.map} +0 -0
- /package/dist/{userInput-GBXOUS4W.js.map → userInput-TQYQIWBV.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-EINLEUKA.js";
|
|
6
6
|
import {
|
|
7
7
|
formatValidationResult,
|
|
8
8
|
validatePluginOrMarketplacePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WGGELTRR.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-RMZABYAD.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-FQL6V43W.js";
|
|
24
24
|
import {
|
|
25
25
|
appendSessionCustomTitleRecord,
|
|
26
26
|
appendSessionJsonlFromMessage,
|
|
27
27
|
appendSessionTagRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-A5LLPMGS.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-5KEKIQVC.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-IDJMJZP4.js";
|
|
50
50
|
import {
|
|
51
51
|
fetchCustomModels,
|
|
52
52
|
getModelFeatures
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-53LVQG4V.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-OUOB2RBI.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-7UTUKVKM.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-SUHM4MYA.js";
|
|
89
89
|
import {
|
|
90
90
|
loadToolPermissionContextFromDisk,
|
|
91
91
|
persistToolPermissionUpdateToDisk
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-FVR53MZY.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-5MZZCUQX.js";
|
|
104
104
|
import {
|
|
105
105
|
clearAgentCache,
|
|
106
106
|
getActiveAgents,
|
|
107
107
|
getAgentByType,
|
|
108
108
|
getAllAgents
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-DHJEENK5.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-EUHKG6AJ.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-FPCH7C5K.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-XHQMUJIS.js";
|
|
181
181
|
import {
|
|
182
182
|
getSettingsFileCandidates,
|
|
183
183
|
loadSettingsWithLegacyFallback,
|
|
184
184
|
readSettingsFile
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-5MEGIDN7.js";
|
|
186
186
|
import {
|
|
187
187
|
getCustomCommandDirectories,
|
|
188
188
|
hasCustomCommands,
|
|
189
189
|
loadCustomCommands,
|
|
190
190
|
reloadCustomCommands
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-IIZXV4HL.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-OCIKBYQ4.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-MKSTJEGS.js";
|
|
208
208
|
import {
|
|
209
209
|
ripGrep
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-KSCBNFN7.js";
|
|
211
211
|
import {
|
|
212
212
|
getTheme
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-TKPY5LGF.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-WSP4AYLZ.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-MBIKKOOW.js";
|
|
236
236
|
import {
|
|
237
237
|
ASCII_LOGO,
|
|
238
238
|
BunShell,
|
|
@@ -271,10 +271,10 @@ import {
|
|
|
271
271
|
setCwd,
|
|
272
272
|
shouldApplyToolOutputTruncation,
|
|
273
273
|
truncateToolOutput
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-VRRJXBF3.js";
|
|
275
275
|
import {
|
|
276
276
|
MACRO
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-GRQ32HWG.js";
|
|
278
278
|
import {
|
|
279
279
|
__export
|
|
280
280
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -455,7 +455,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
455
455
|
var getCommandPrefix = memoize(
|
|
456
456
|
async (command4, abortSignal) => {
|
|
457
457
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
458
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
458
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-VAN6WS52.js");
|
|
459
459
|
const response = await queryQuick2({
|
|
460
460
|
systemPrompt,
|
|
461
461
|
userPrompt,
|
|
@@ -4257,7 +4257,7 @@ function formatParseError(error) {
|
|
|
4257
4257
|
return error instanceof Error ? error.message : String(error);
|
|
4258
4258
|
}
|
|
4259
4259
|
async function defaultGateQuery(args) {
|
|
4260
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4260
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-VAN6WS52.js");
|
|
4261
4261
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4262
4262
|
const messages = [
|
|
4263
4263
|
{
|
|
@@ -6654,7 +6654,7 @@ var FileEditTool = {
|
|
|
6654
6654
|
const originalFileContent = currentFileContent;
|
|
6655
6655
|
let totalPatch = [];
|
|
6656
6656
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6657
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6657
|
+
const { findLspAnchor } = await import("./lspAnchor-BLB7II5Y.js");
|
|
6658
6658
|
for (const op of editOperations) {
|
|
6659
6659
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6660
6660
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11358,7 +11358,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11358
11358
|
}
|
|
11359
11359
|
saveGlobalConfig(config2);
|
|
11360
11360
|
try {
|
|
11361
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11361
|
+
const { resetAnthropicClient } = await import("./llm-VAN6WS52.js");
|
|
11362
11362
|
resetAnthropicClient();
|
|
11363
11363
|
} catch {
|
|
11364
11364
|
}
|
|
@@ -15725,7 +15725,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15725
15725
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15726
15726
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15727
15727
|
if (dirs.length === 0) return [];
|
|
15728
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15728
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-JEJXUSFZ.js");
|
|
15729
15729
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15730
15730
|
return errors;
|
|
15731
15731
|
}
|
|
@@ -16394,7 +16394,7 @@ async function call(onDone, context) {
|
|
|
16394
16394
|
ModelConfig,
|
|
16395
16395
|
{
|
|
16396
16396
|
onClose: () => {
|
|
16397
|
-
import("./model-
|
|
16397
|
+
import("./model-OUTGOGMR.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16398
16398
|
reloadModelManager2();
|
|
16399
16399
|
triggerModelConfigChange();
|
|
16400
16400
|
onDone();
|
|
@@ -24598,7 +24598,7 @@ function useStatusLine() {
|
|
|
24598
24598
|
// src/ui/components/PromptInput.tsx
|
|
24599
24599
|
async function interpretHashCommand(input) {
|
|
24600
24600
|
try {
|
|
24601
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
24601
|
+
const { queryQuick: queryQuick2 } = await import("./llm-VAN6WS52.js");
|
|
24602
24602
|
const systemPrompt = [
|
|
24603
24603
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
24604
24604
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24911,7 +24911,7 @@ function PromptInput({
|
|
|
24911
24911
|
if (messages2.length) {
|
|
24912
24912
|
if (mode === "bash") {
|
|
24913
24913
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24914
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24914
|
+
const { getCwd: getCwd2 } = await import("./state-WVRITIDZ.js");
|
|
24915
24915
|
setCurrentPwd(getCwd2());
|
|
24916
24916
|
});
|
|
24917
24917
|
} else {
|
|
@@ -26026,6 +26026,29 @@ async function shouldAutoCompact(messages) {
|
|
|
26026
26026
|
const { isAboveAutoCompactThreshold } = await calculateThresholds(tokenCount);
|
|
26027
26027
|
return isAboveAutoCompactThreshold;
|
|
26028
26028
|
}
|
|
26029
|
+
function getSummaryContentDiagnostics(content) {
|
|
26030
|
+
if (typeof content === "string") {
|
|
26031
|
+
return {
|
|
26032
|
+
contentKind: "string",
|
|
26033
|
+
stringLength: content.length,
|
|
26034
|
+
preview: content.slice(0, 120)
|
|
26035
|
+
};
|
|
26036
|
+
}
|
|
26037
|
+
if (Array.isArray(content)) {
|
|
26038
|
+
return {
|
|
26039
|
+
contentKind: "array",
|
|
26040
|
+
blockCount: content.length,
|
|
26041
|
+
blockTypes: content.map(
|
|
26042
|
+
(block) => block && typeof block === "object" ? String(block.type ?? "unknown") : typeof block
|
|
26043
|
+
),
|
|
26044
|
+
firstBlock: content[0]
|
|
26045
|
+
};
|
|
26046
|
+
}
|
|
26047
|
+
return {
|
|
26048
|
+
contentKind: typeof content,
|
|
26049
|
+
value: content
|
|
26050
|
+
};
|
|
26051
|
+
}
|
|
26029
26052
|
async function checkAutoCompact(messages, toolUseContext) {
|
|
26030
26053
|
if (!await shouldAutoCompact(messages)) {
|
|
26031
26054
|
return { messages, wasCompacted: false };
|
|
@@ -26107,6 +26130,10 @@ ${COMPRESSION_PROMPT2}` : COMPRESSION_PROMPT2;
|
|
|
26107
26130
|
const content = summaryResponse.message.content;
|
|
26108
26131
|
const summary = typeof content === "string" ? content : content.length > 0 && content[0]?.type === "text" ? content[0].text : null;
|
|
26109
26132
|
if (!summary) {
|
|
26133
|
+
debug.warn("AUTO_COMPACT_SUMMARY_CONTENT_INVALID", {
|
|
26134
|
+
model: compressionModelPointer,
|
|
26135
|
+
diagnostics: getSummaryContentDiagnostics(content)
|
|
26136
|
+
});
|
|
26110
26137
|
throw new Error(
|
|
26111
26138
|
"Failed to generate conversation summary - response did not contain valid text content"
|
|
26112
26139
|
);
|
|
@@ -28272,7 +28299,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28272
28299
|
// src/commands/agents/generation.ts
|
|
28273
28300
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28274
28301
|
async function generateAgentWithClaude(prompt) {
|
|
28275
|
-
const { queryModel } = await import("./llm-
|
|
28302
|
+
const { queryModel } = await import("./llm-VAN6WS52.js");
|
|
28276
28303
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28277
28304
|
|
|
28278
28305
|
Return your response as a JSON object with exactly these fields:
|