pybao-cli 1.4.12 → 1.4.13
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-634DFL57.js +47 -0
- package/dist/{acp-E4XDOLNC.js → acp-AITGGIN7.js} +29 -29
- package/dist/{agentsValidate-GZPJASIL.js → agentsValidate-K3GLHEUJ.js} +7 -7
- package/dist/{ask-BQDZUSJ4.js → ask-XRAJ7ONM.js} +28 -28
- package/dist/{autoUpdater-XGGEYCZS.js → autoUpdater-2YW234FZ.js} +3 -3
- package/dist/{chunk-EOQY6JTU.js → chunk-2PC7UK66.js} +3 -3
- package/dist/{chunk-WLWHTU5X.js → chunk-34XEWGUY.js} +1 -1
- package/dist/{chunk-PFJM7WWU.js → chunk-5WXWY6LV.js} +70 -3
- package/dist/chunk-5WXWY6LV.js.map +7 -0
- package/dist/{chunk-EQ3NKY3J.js → chunk-6OP2JTUK.js} +1 -1
- package/dist/{chunk-EQ3NKY3J.js.map → chunk-6OP2JTUK.js.map} +1 -1
- package/dist/{chunk-2W64YTNU.js → chunk-BTS2TAAW.js} +4 -4
- package/dist/{chunk-B52OTXX2.js → chunk-CFTVDXFH.js} +3 -3
- package/dist/{chunk-2OQCOHOW.js → chunk-CPE4NPQV.js} +2 -2
- package/dist/{chunk-EN7KWHEK.js → chunk-CVJLF2VG.js} +108 -17
- package/dist/chunk-CVJLF2VG.js.map +7 -0
- package/dist/{chunk-BGY75RH7.js → chunk-CXT225X7.js} +2 -2
- package/dist/{chunk-M5YAPELI.js → chunk-FMH4U7NO.js} +1 -1
- package/dist/{chunk-H3YIL7ZG.js → chunk-FT5UM6YL.js} +1 -1
- package/dist/{chunk-VUMOG2FB.js → chunk-HCN7LMEB.js} +1 -1
- package/dist/{chunk-GCFCZ24S.js → chunk-M7QSGOTT.js} +1 -1
- package/dist/{chunk-HS6N2642.js → chunk-NG5RU74R.js} +4 -4
- package/dist/{chunk-2ADSIWFE.js → chunk-O5PGBSLH.js} +2 -2
- package/dist/{chunk-QJN4JAVY.js → chunk-OOTTUF6Z.js} +1 -1
- package/dist/{chunk-NGE3FFL4.js → chunk-OX4Q6Z5R.js} +3 -3
- package/dist/{chunk-AI77W7AH.js → chunk-P7MPKAPW.js} +1 -1
- package/dist/{chunk-KNVKVAFM.js → chunk-PHKBTCLT.js} +2 -2
- package/dist/{chunk-OYQOUTXM.js → chunk-QKB32NDM.js} +2 -2
- package/dist/{chunk-HBW2UFW3.js → chunk-RHY3RRE6.js} +2 -2
- package/dist/{chunk-HBGSB66X.js → chunk-S45DDLGG.js} +3 -3
- package/dist/{chunk-J7QJQFL4.js → chunk-TWPWHWJT.js} +4 -4
- package/dist/{chunk-XHPE7NA6.js → chunk-UDNZNXXR.js} +3 -3
- package/dist/{chunk-IBX7QYW6.js → chunk-V337ZSSD.js} +140 -35
- package/dist/{chunk-IBX7QYW6.js.map → chunk-V337ZSSD.js.map} +3 -3
- package/dist/{chunk-FS7A5V53.js → chunk-VFAFA24S.js} +3 -3
- package/dist/{chunk-N7F2AWKM.js → chunk-VGDDQSCO.js} +1 -1
- package/dist/{chunk-F2DJ35GI.js → chunk-XJZQD7RE.js} +17 -17
- package/dist/{chunk-F2DJ35GI.js.map → chunk-XJZQD7RE.js.map} +1 -1
- package/dist/{chunk-O3KEVQNA.js → chunk-Y3UMGUVE.js} +1 -1
- package/dist/{chunk-JL3VTRTU.js → chunk-ZOM357PV.js} +2 -2
- package/dist/{cli-IIMBFGDW.js → cli-MXO677IA.js} +87 -87
- package/dist/commands-Q5LUFGJ5.js +51 -0
- package/dist/{config-FTVECYMO.js → config-YFZ2WAYP.js} +4 -4
- package/dist/{context-NDUX3ORF.js → context-OOIFZD5B.js} +6 -6
- package/dist/{customCommands-GR6WWVJY.js → customCommands-C5UREHC4.js} +4 -4
- package/dist/{env-PTS2KGBD.js → env-LQJ2XZDO.js} +2 -2
- package/dist/{file-5WKQ32ID.js → file-ZBIAG7X4.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-XJH5PF7T.js → llm-RCNWJH2C.js} +29 -29
- package/dist/{llmLazy-AQ7NCFL2.js → llmLazy-KXJFFPMF.js} +1 -1
- package/dist/{loader-PO73B3AB.js → loader-ENRLCLHZ.js} +4 -4
- package/dist/{lsp-IZXFXACE.js → lsp-VWL3PVQJ.js} +6 -6
- package/dist/{lspAnchor-IQFSS2WW.js → lspAnchor-WPJIG2RI.js} +6 -6
- package/dist/{mcp-S3EXRZWS.js → mcp-P5T4TUW2.js} +7 -7
- package/dist/{mentionProcessor-UY2IW2RP.js → mentionProcessor-4ICD3GVH.js} +5 -5
- package/dist/{messages-KCJBNPPP.js → messages-SEOXF7DS.js} +1 -1
- package/dist/{model-57SVT5TP.js → model-YOPR5KUS.js} +5 -5
- package/dist/{openai-RUM2XGGO.js → openai-FVFZDXPS.js} +5 -5
- package/dist/{outputStyles-V7QYGZHM.js → outputStyles-7ZZ2JBOT.js} +4 -4
- package/dist/{pluginRuntime-55XGU4OS.js → pluginRuntime-LASQNLIR.js} +6 -6
- package/dist/{pluginValidation-ICH7XE5C.js → pluginValidation-4BABNGAC.js} +6 -6
- package/dist/prompts-DJNSFFKV.js +53 -0
- package/dist/{pybAgentSessionLoad-3NWDY4SQ.js → pybAgentSessionLoad-O7V7I7CV.js} +4 -4
- package/dist/{pybAgentSessionResume-XJJ6DMEL.js → pybAgentSessionResume-Q7EYAD6H.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-FOVNGGFA.js → pybAgentStreamJsonSession-N374RMH5.js} +1 -1
- package/dist/{pybHooks-ACAEY3WY.js → pybHooks-MHFEMZC6.js} +4 -4
- package/dist/query-LAUPI7JK.js +55 -0
- package/dist/{registry-KD75EMVF.js → registry-KVMGHJ4N.js} +5 -5
- package/dist/{ripgrep-6YHO2NBP.js → ripgrep-XSJJZ3W3.js} +3 -3
- package/dist/{skillMarketplace-VH7FHRA4.js → skillMarketplace-FL7XBTHJ.js} +3 -3
- package/dist/{state-Z24WIC3H.js → state-5NJOFKYB.js} +2 -2
- package/dist/{theme-3K7DL646.js → theme-Z26AKEVC.js} +5 -5
- package/dist/{toolPermissionSettings-7V3HRK2G.js → toolPermissionSettings-SPSMAX5P.js} +6 -6
- package/dist/tools-Q44D6ZG7.js +52 -0
- package/dist/{userInput-KJC6X5WI.js → userInput-3TEMRAK7.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-IXJZCNDW.js +0 -47
- package/dist/chunk-EN7KWHEK.js.map +0 -7
- package/dist/chunk-PFJM7WWU.js.map +0 -7
- package/dist/commands-WZNPO2DW.js +0 -51
- package/dist/prompts-UNCTPPON.js +0 -53
- package/dist/query-DNXATEQW.js +0 -55
- package/dist/tools-TBUVJIUV.js +0 -52
- /package/dist/{REPL-IXJZCNDW.js.map → REPL-634DFL57.js.map} +0 -0
- /package/dist/{acp-E4XDOLNC.js.map → acp-AITGGIN7.js.map} +0 -0
- /package/dist/{agentsValidate-GZPJASIL.js.map → agentsValidate-K3GLHEUJ.js.map} +0 -0
- /package/dist/{ask-BQDZUSJ4.js.map → ask-XRAJ7ONM.js.map} +0 -0
- /package/dist/{autoUpdater-XGGEYCZS.js.map → autoUpdater-2YW234FZ.js.map} +0 -0
- /package/dist/{chunk-EOQY6JTU.js.map → chunk-2PC7UK66.js.map} +0 -0
- /package/dist/{chunk-WLWHTU5X.js.map → chunk-34XEWGUY.js.map} +0 -0
- /package/dist/{chunk-2W64YTNU.js.map → chunk-BTS2TAAW.js.map} +0 -0
- /package/dist/{chunk-B52OTXX2.js.map → chunk-CFTVDXFH.js.map} +0 -0
- /package/dist/{chunk-2OQCOHOW.js.map → chunk-CPE4NPQV.js.map} +0 -0
- /package/dist/{chunk-BGY75RH7.js.map → chunk-CXT225X7.js.map} +0 -0
- /package/dist/{chunk-M5YAPELI.js.map → chunk-FMH4U7NO.js.map} +0 -0
- /package/dist/{chunk-H3YIL7ZG.js.map → chunk-FT5UM6YL.js.map} +0 -0
- /package/dist/{chunk-VUMOG2FB.js.map → chunk-HCN7LMEB.js.map} +0 -0
- /package/dist/{chunk-GCFCZ24S.js.map → chunk-M7QSGOTT.js.map} +0 -0
- /package/dist/{chunk-HS6N2642.js.map → chunk-NG5RU74R.js.map} +0 -0
- /package/dist/{chunk-2ADSIWFE.js.map → chunk-O5PGBSLH.js.map} +0 -0
- /package/dist/{chunk-QJN4JAVY.js.map → chunk-OOTTUF6Z.js.map} +0 -0
- /package/dist/{chunk-NGE3FFL4.js.map → chunk-OX4Q6Z5R.js.map} +0 -0
- /package/dist/{chunk-AI77W7AH.js.map → chunk-P7MPKAPW.js.map} +0 -0
- /package/dist/{chunk-KNVKVAFM.js.map → chunk-PHKBTCLT.js.map} +0 -0
- /package/dist/{chunk-OYQOUTXM.js.map → chunk-QKB32NDM.js.map} +0 -0
- /package/dist/{chunk-HBW2UFW3.js.map → chunk-RHY3RRE6.js.map} +0 -0
- /package/dist/{chunk-HBGSB66X.js.map → chunk-S45DDLGG.js.map} +0 -0
- /package/dist/{chunk-J7QJQFL4.js.map → chunk-TWPWHWJT.js.map} +0 -0
- /package/dist/{chunk-XHPE7NA6.js.map → chunk-UDNZNXXR.js.map} +0 -0
- /package/dist/{chunk-FS7A5V53.js.map → chunk-VFAFA24S.js.map} +0 -0
- /package/dist/{chunk-N7F2AWKM.js.map → chunk-VGDDQSCO.js.map} +0 -0
- /package/dist/{chunk-O3KEVQNA.js.map → chunk-Y3UMGUVE.js.map} +0 -0
- /package/dist/{chunk-JL3VTRTU.js.map → chunk-ZOM357PV.js.map} +0 -0
- /package/dist/{cli-IIMBFGDW.js.map → cli-MXO677IA.js.map} +0 -0
- /package/dist/{commands-WZNPO2DW.js.map → commands-Q5LUFGJ5.js.map} +0 -0
- /package/dist/{config-FTVECYMO.js.map → config-YFZ2WAYP.js.map} +0 -0
- /package/dist/{context-NDUX3ORF.js.map → context-OOIFZD5B.js.map} +0 -0
- /package/dist/{customCommands-GR6WWVJY.js.map → customCommands-C5UREHC4.js.map} +0 -0
- /package/dist/{env-PTS2KGBD.js.map → env-LQJ2XZDO.js.map} +0 -0
- /package/dist/{file-5WKQ32ID.js.map → file-ZBIAG7X4.js.map} +0 -0
- /package/dist/{llm-XJH5PF7T.js.map → llm-RCNWJH2C.js.map} +0 -0
- /package/dist/{llmLazy-AQ7NCFL2.js.map → llmLazy-KXJFFPMF.js.map} +0 -0
- /package/dist/{loader-PO73B3AB.js.map → loader-ENRLCLHZ.js.map} +0 -0
- /package/dist/{lsp-IZXFXACE.js.map → lsp-VWL3PVQJ.js.map} +0 -0
- /package/dist/{lspAnchor-IQFSS2WW.js.map → lspAnchor-WPJIG2RI.js.map} +0 -0
- /package/dist/{mcp-S3EXRZWS.js.map → mcp-P5T4TUW2.js.map} +0 -0
- /package/dist/{mentionProcessor-UY2IW2RP.js.map → mentionProcessor-4ICD3GVH.js.map} +0 -0
- /package/dist/{messages-KCJBNPPP.js.map → messages-SEOXF7DS.js.map} +0 -0
- /package/dist/{model-57SVT5TP.js.map → model-YOPR5KUS.js.map} +0 -0
- /package/dist/{openai-RUM2XGGO.js.map → openai-FVFZDXPS.js.map} +0 -0
- /package/dist/{outputStyles-V7QYGZHM.js.map → outputStyles-7ZZ2JBOT.js.map} +0 -0
- /package/dist/{pluginRuntime-55XGU4OS.js.map → pluginRuntime-LASQNLIR.js.map} +0 -0
- /package/dist/{pluginValidation-ICH7XE5C.js.map → pluginValidation-4BABNGAC.js.map} +0 -0
- /package/dist/{prompts-UNCTPPON.js.map → prompts-DJNSFFKV.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-3NWDY4SQ.js.map → pybAgentSessionLoad-O7V7I7CV.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-XJJ6DMEL.js.map → pybAgentSessionResume-Q7EYAD6H.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-FOVNGGFA.js.map → pybAgentStreamJsonSession-N374RMH5.js.map} +0 -0
- /package/dist/{pybHooks-ACAEY3WY.js.map → pybHooks-MHFEMZC6.js.map} +0 -0
- /package/dist/{query-DNXATEQW.js.map → query-LAUPI7JK.js.map} +0 -0
- /package/dist/{registry-KD75EMVF.js.map → registry-KVMGHJ4N.js.map} +0 -0
- /package/dist/{ripgrep-6YHO2NBP.js.map → ripgrep-XSJJZ3W3.js.map} +0 -0
- /package/dist/{skillMarketplace-VH7FHRA4.js.map → skillMarketplace-FL7XBTHJ.js.map} +0 -0
- /package/dist/{state-Z24WIC3H.js.map → state-5NJOFKYB.js.map} +0 -0
- /package/dist/{theme-3K7DL646.js.map → theme-Z26AKEVC.js.map} +0 -0
- /package/dist/{toolPermissionSettings-7V3HRK2G.js.map → toolPermissionSettings-SPSMAX5P.js.map} +0 -0
- /package/dist/{tools-TBUVJIUV.js.map → tools-Q44D6ZG7.js.map} +0 -0
- /package/dist/{userInput-KJC6X5WI.js.map → userInput-3TEMRAK7.js.map} +0 -0
|
@@ -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-OX4Q6Z5R.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OOTTUF6Z.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M7QSGOTT.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CPE4NPQV.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-UDNZNXXR.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-O5PGBSLH.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PHKBTCLT.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TWPWHWJT.js";
|
|
48
48
|
import {
|
|
49
49
|
DEFAULT_TIMEOUT_MS,
|
|
50
50
|
FallbackToolUseRejectedMessage,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
listMCPServers,
|
|
59
59
|
loadMergedSettings,
|
|
60
60
|
normalizeSandboxRuntimeConfigFromSettings
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BTS2TAAW.js";
|
|
62
62
|
import {
|
|
63
63
|
addMarketplace,
|
|
64
64
|
disableSkillPlugin,
|
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
refreshMarketplaceAsync,
|
|
72
72
|
removeMarketplace,
|
|
73
73
|
uninstallSkillPlugin
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Y3UMGUVE.js";
|
|
75
75
|
import {
|
|
76
76
|
loadToolPermissionContextFromDisk,
|
|
77
77
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-CFTVDXFH.js";
|
|
79
79
|
import {
|
|
80
80
|
applyToolPermissionContextUpdate,
|
|
81
81
|
createDefaultToolPermissionContext
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
resetReminderSession,
|
|
89
89
|
setTodos,
|
|
90
90
|
systemReminderService
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-CXT225X7.js";
|
|
92
92
|
import {
|
|
93
93
|
getSessionState
|
|
94
94
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
getActiveAgents,
|
|
98
98
|
getAgentByType,
|
|
99
99
|
getAllAgents
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-RHY3RRE6.js";
|
|
101
101
|
import {
|
|
102
102
|
API_ERROR_MESSAGE_PREFIX,
|
|
103
103
|
CANCEL_MESSAGE,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
processUserInput,
|
|
128
128
|
reorderMessages,
|
|
129
129
|
stripSystemMessages
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-HCN7LMEB.js";
|
|
131
131
|
import {
|
|
132
132
|
getRequestStatus,
|
|
133
133
|
setRequestStatus,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
normalizeFilePath,
|
|
158
158
|
readTextContent,
|
|
159
159
|
writeTextContent
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-QKB32NDM.js";
|
|
161
161
|
import {
|
|
162
162
|
parseBlockEdits
|
|
163
163
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -167,17 +167,17 @@ import {
|
|
|
167
167
|
ParserRegistry,
|
|
168
168
|
initParser,
|
|
169
169
|
loadLanguage
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-CVJLF2VG.js";
|
|
171
171
|
import {
|
|
172
172
|
getSettingsFileCandidates,
|
|
173
173
|
loadSettingsWithLegacyFallback
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-34XEWGUY.js";
|
|
175
175
|
import {
|
|
176
176
|
getCustomCommandDirectories,
|
|
177
177
|
hasCustomCommands,
|
|
178
178
|
loadCustomCommands,
|
|
179
179
|
reloadCustomCommands
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-ZOM357PV.js";
|
|
181
181
|
import {
|
|
182
182
|
getSessionPlugins
|
|
183
183
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
ModelManager,
|
|
186
186
|
getModelManager,
|
|
187
187
|
isDefaultSlowAndCapableModel
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-VFAFA24S.js";
|
|
189
189
|
import {
|
|
190
190
|
getCodeStyle,
|
|
191
191
|
getContext,
|
|
@@ -193,13 +193,13 @@ import {
|
|
|
193
193
|
getIsGit,
|
|
194
194
|
getProjectDocs,
|
|
195
195
|
getProjectStructureStatisticsBlock
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-NG5RU74R.js";
|
|
197
197
|
import {
|
|
198
198
|
ripGrep
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-FT5UM6YL.js";
|
|
200
200
|
import {
|
|
201
201
|
getTheme
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-FMH4U7NO.js";
|
|
203
203
|
import {
|
|
204
204
|
DEFAULT_GLOBAL_CONFIG,
|
|
205
205
|
enableConfigs,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
saveGlobalConfig,
|
|
213
213
|
setAllPointersToModel,
|
|
214
214
|
setModelPointer
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-2PC7UK66.js";
|
|
216
216
|
import {
|
|
217
217
|
AbortError
|
|
218
218
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
getCurrentRequest,
|
|
222
222
|
logUserFriendly,
|
|
223
223
|
markPhase
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-VGDDQSCO.js";
|
|
225
225
|
import {
|
|
226
226
|
ASCII_LOGO,
|
|
227
227
|
BunShell,
|
|
@@ -260,10 +260,10 @@ import {
|
|
|
260
260
|
setCwd,
|
|
261
261
|
shouldApplyToolOutputTruncation,
|
|
262
262
|
truncateToolOutput
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-P7MPKAPW.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-6OP2JTUK.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-RCNWJH2C.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-RCNWJH2C.js");
|
|
4250
4250
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4251
4251
|
const messages = [
|
|
4252
4252
|
{
|
|
@@ -6507,7 +6507,7 @@ var FileEditTool = {
|
|
|
6507
6507
|
const originalFileContent = currentFileContent;
|
|
6508
6508
|
let totalPatch = [];
|
|
6509
6509
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6510
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6510
|
+
const { findLspAnchor } = await import("./lspAnchor-WPJIG2RI.js");
|
|
6511
6511
|
for (const op of editOperations) {
|
|
6512
6512
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6513
6513
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11064,7 +11064,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11064
11064
|
}
|
|
11065
11065
|
saveGlobalConfig(config2);
|
|
11066
11066
|
try {
|
|
11067
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11067
|
+
const { resetAnthropicClient } = await import("./llm-RCNWJH2C.js");
|
|
11068
11068
|
resetAnthropicClient();
|
|
11069
11069
|
} catch {
|
|
11070
11070
|
}
|
|
@@ -15346,7 +15346,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15346
15346
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15347
15347
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15348
15348
|
if (dirs.length === 0) return [];
|
|
15349
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15349
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-LASQNLIR.js");
|
|
15350
15350
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15351
15351
|
return errors;
|
|
15352
15352
|
}
|
|
@@ -16015,7 +16015,7 @@ async function call(onDone, context) {
|
|
|
16015
16015
|
ModelConfig,
|
|
16016
16016
|
{
|
|
16017
16017
|
onClose: () => {
|
|
16018
|
-
import("./model-
|
|
16018
|
+
import("./model-YOPR5KUS.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16019
16019
|
reloadModelManager2();
|
|
16020
16020
|
triggerModelConfigChange();
|
|
16021
16021
|
onDone();
|
|
@@ -16134,6 +16134,7 @@ var EMPTY_STATUS = {
|
|
|
16134
16134
|
spawning: [],
|
|
16135
16135
|
broken: [],
|
|
16136
16136
|
diagnostics: [],
|
|
16137
|
+
installNotices: [],
|
|
16137
16138
|
fallbacks: {
|
|
16138
16139
|
documentSymbol: [],
|
|
16139
16140
|
getScope: [],
|
|
@@ -16205,6 +16206,99 @@ function formatFallbackSummary(status) {
|
|
|
16205
16206
|
const countsText = activeCounts.length > 0 ? activeCounts.map(([name2, count]) => `${name2} ${count}`).join(", ") : "none";
|
|
16206
16207
|
return `Fallbacks: ${countsText}, boundary ${boundaryText}`;
|
|
16207
16208
|
}
|
|
16209
|
+
function formatFallbackSources(status) {
|
|
16210
|
+
const sources = [
|
|
16211
|
+
["documentSymbol", "tree-sitter"],
|
|
16212
|
+
["getScope", "tree-sitter"],
|
|
16213
|
+
["diagnostics", "tree-sitter"],
|
|
16214
|
+
["findReferences", "token-scan"],
|
|
16215
|
+
["prepareCallHierarchy", "tree-sitter"],
|
|
16216
|
+
["incomingCalls", "none"],
|
|
16217
|
+
["outgoingCalls", "none"]
|
|
16218
|
+
];
|
|
16219
|
+
const active2 = sources.filter(([name2]) => {
|
|
16220
|
+
const list = status.fallbacks?.[name2];
|
|
16221
|
+
return Array.isArray(list) && list.length > 0;
|
|
16222
|
+
});
|
|
16223
|
+
if (active2.length === 0) return "Fallback sources: none";
|
|
16224
|
+
return `Fallback sources: ${active2.map(([name2, source]) => `${name2} ${source}`).join(", ")}`;
|
|
16225
|
+
}
|
|
16226
|
+
function formatFallbackDetailEntries(status) {
|
|
16227
|
+
const fallbacks = status.fallbacks;
|
|
16228
|
+
if (!fallbacks) return [];
|
|
16229
|
+
const entries = [];
|
|
16230
|
+
const addEntries = (operation, items) => {
|
|
16231
|
+
for (const item of items) {
|
|
16232
|
+
if (!item || typeof item.filePath !== "string") continue;
|
|
16233
|
+
const at = item.at ?? null;
|
|
16234
|
+
const suffix = at ? ` ${at}` : "";
|
|
16235
|
+
entries.push({
|
|
16236
|
+
key: `${operation}:${item.filePath}:${item.reason}:${at ?? "na"}`,
|
|
16237
|
+
line: `${operation} ${item.filePath} ${item.reason}${suffix}`,
|
|
16238
|
+
at
|
|
16239
|
+
});
|
|
16240
|
+
}
|
|
16241
|
+
};
|
|
16242
|
+
addEntries("documentSymbol", fallbacks.documentSymbol ?? []);
|
|
16243
|
+
addEntries("getScope", fallbacks.getScope ?? []);
|
|
16244
|
+
addEntries("diagnostics", fallbacks.diagnostics ?? []);
|
|
16245
|
+
addEntries("findReferences", fallbacks.findReferences ?? []);
|
|
16246
|
+
addEntries("prepareCallHierarchy", fallbacks.prepareCallHierarchy ?? []);
|
|
16247
|
+
addEntries("incomingCalls", fallbacks.incomingCalls ?? []);
|
|
16248
|
+
addEntries("outgoingCalls", fallbacks.outgoingCalls ?? []);
|
|
16249
|
+
const sorted = entries.sort((a, b) => {
|
|
16250
|
+
const aAt = a.at ?? 0;
|
|
16251
|
+
const bAt = b.at ?? 0;
|
|
16252
|
+
if (aAt !== bAt) return bAt - aAt;
|
|
16253
|
+
return a.line.localeCompare(b.line);
|
|
16254
|
+
});
|
|
16255
|
+
return sorted.slice(0, 10).map((entry) => ({ key: entry.key, line: entry.line }));
|
|
16256
|
+
}
|
|
16257
|
+
function formatInstallNoticeSummary(status) {
|
|
16258
|
+
const notices = status.installNotices ?? [];
|
|
16259
|
+
if (notices.length === 0) return "Install notices: none";
|
|
16260
|
+
return `Install notices: ${notices.length}`;
|
|
16261
|
+
}
|
|
16262
|
+
function formatInstallNoticeEntries(status) {
|
|
16263
|
+
const notices = status.installNotices ?? [];
|
|
16264
|
+
const sorted = [...notices].sort((a, b) => b.at - a.at).slice(0, 5);
|
|
16265
|
+
return sorted.map((entry) => ({
|
|
16266
|
+
key: `${entry.server}:${entry.stage}:${entry.at}`,
|
|
16267
|
+
line: `${entry.server} ${entry.stage} ${entry.message} ${entry.at}`
|
|
16268
|
+
}));
|
|
16269
|
+
}
|
|
16270
|
+
function formatMissingDependencyWarnings(status) {
|
|
16271
|
+
const notices = status.installNotices ?? [];
|
|
16272
|
+
const missing = notices.filter(
|
|
16273
|
+
(notice) => notice.stage === "failed" && /not found|missing|not available/i.test(notice.message)
|
|
16274
|
+
);
|
|
16275
|
+
if (missing.length === 0) return "Missing dependencies: none";
|
|
16276
|
+
const grouped = /* @__PURE__ */ new Map();
|
|
16277
|
+
for (const notice of missing) {
|
|
16278
|
+
const current = grouped.get(notice.server);
|
|
16279
|
+
if (!current) {
|
|
16280
|
+
grouped.set(notice.server, {
|
|
16281
|
+
count: 1,
|
|
16282
|
+
message: notice.message,
|
|
16283
|
+
at: notice.at
|
|
16284
|
+
});
|
|
16285
|
+
continue;
|
|
16286
|
+
}
|
|
16287
|
+
const nextCount = current.count + 1;
|
|
16288
|
+
const nextMessage = notice.at >= current.at ? notice.message : current.message;
|
|
16289
|
+
const nextAt = Math.max(current.at, notice.at);
|
|
16290
|
+
grouped.set(notice.server, {
|
|
16291
|
+
count: nextCount,
|
|
16292
|
+
message: nextMessage,
|
|
16293
|
+
at: nextAt
|
|
16294
|
+
});
|
|
16295
|
+
}
|
|
16296
|
+
const entries = Array.from(grouped.entries()).sort((a, b) => a[0].localeCompare(b[0]));
|
|
16297
|
+
const summary = entries.map(
|
|
16298
|
+
([server, entry]) => entry.count > 1 ? `${server} (${entry.count}) ${entry.message}` : `${server} ${entry.message}`
|
|
16299
|
+
).join(", ");
|
|
16300
|
+
return `Missing dependencies: ${summary}`;
|
|
16301
|
+
}
|
|
16208
16302
|
function formatFastPathFailuresSummary(status) {
|
|
16209
16303
|
const summary = status.fastPath?.failuresSummary ?? {};
|
|
16210
16304
|
const entries = ["exception", "empty", "timeout", "unsupported"].map((reason) => ({ reason, entry: summary[reason] })).filter((item) => item.entry && item.entry.count > 0);
|
|
@@ -16333,6 +16427,7 @@ function normalizeStatus(status) {
|
|
|
16333
16427
|
spawning: Array.isArray(raw.spawning) ? raw.spawning : [],
|
|
16334
16428
|
broken: Array.isArray(raw.broken) ? raw.broken : [],
|
|
16335
16429
|
diagnostics: Array.isArray(raw.diagnostics) ? raw.diagnostics : [],
|
|
16430
|
+
installNotices: Array.isArray(raw.installNotices) ? raw.installNotices : [],
|
|
16336
16431
|
schemaVersion: typeof raw.schemaVersion === "number" ? raw.schemaVersion : void 0,
|
|
16337
16432
|
sampleWindow,
|
|
16338
16433
|
metrics: Array.isArray(raw.metrics) ? raw.metrics : [],
|
|
@@ -16400,6 +16495,11 @@ function LspStatusDisplay({
|
|
|
16400
16495
|
const compareSummary = formatCompareMetricsSummary(normalized);
|
|
16401
16496
|
const qualitySummary = formatQualityMetricsSummary(normalized);
|
|
16402
16497
|
const parseCacheSummary = formatParseCacheSummary(normalized);
|
|
16498
|
+
const fallbackSources = formatFallbackSources(normalized);
|
|
16499
|
+
const fallbackDetailEntries = formatFallbackDetailEntries(normalized);
|
|
16500
|
+
const installNoticeSummary = formatInstallNoticeSummary(normalized);
|
|
16501
|
+
const installNoticeEntries = formatInstallNoticeEntries(normalized);
|
|
16502
|
+
const missingDependencySummary = formatMissingDependencyWarnings(normalized);
|
|
16403
16503
|
const spawnMetricEntries = formatSpawnMetricEntries(normalized);
|
|
16404
16504
|
const requestMetricEntries = formatRequestMetricEntries(normalized);
|
|
16405
16505
|
const compareMetricEntries = formatCompareMetricEntries(normalized);
|
|
@@ -16418,11 +16518,16 @@ function LspStatusDisplay({
|
|
|
16418
16518
|
/* @__PURE__ */ React45.createElement(Text39, null, "Clients: ", normalized.clients.length, " connected,", " ", normalized.spawning.length, " spawning, ", normalized.broken.length, " broken"),
|
|
16419
16519
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, formatDiagnosticsSummary(globalTotals)),
|
|
16420
16520
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, formatFallbackSummary(normalized)),
|
|
16521
|
+
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, fallbackSources),
|
|
16421
16522
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, formatFastPathFailuresSummary(normalized)),
|
|
16523
|
+
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, missingDependencySummary),
|
|
16524
|
+
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, installNoticeSummary),
|
|
16422
16525
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, metricsSummary),
|
|
16423
16526
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, compareSummary),
|
|
16424
16527
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, qualitySummary),
|
|
16425
16528
|
/* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, parseCacheSummary),
|
|
16529
|
+
fallbackDetailEntries.length > 0 ? /* @__PURE__ */ React45.createElement(Box35, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, "Fallback details:"), fallbackDetailEntries.map((entry) => /* @__PURE__ */ React45.createElement(Box35, { key: entry.key }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, entry.line)))) : null,
|
|
16530
|
+
installNoticeEntries.length > 0 ? /* @__PURE__ */ React45.createElement(Box35, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, "Install notices:"), installNoticeEntries.map((entry) => /* @__PURE__ */ React45.createElement(Box35, { key: entry.key }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, entry.line)))) : null,
|
|
16426
16531
|
fastPathEntries.length > 0 ? /* @__PURE__ */ React45.createElement(Box35, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, "FastPath last fallback:"), fastPathEntries.map((entry) => /* @__PURE__ */ React45.createElement(Box35, { key: entry.key }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, entry.line)))) : null,
|
|
16427
16532
|
spawnMetricEntries.length > 0 ? /* @__PURE__ */ React45.createElement(Box35, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, "Spawn metrics:"), spawnMetricEntries.map((entry) => /* @__PURE__ */ React45.createElement(Box35, { key: entry.key }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, entry.line)))) : null,
|
|
16428
16533
|
requestMetricEntries.length > 0 ? /* @__PURE__ */ React45.createElement(Box35, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, "Request metrics:"), requestMetricEntries.map((entry) => /* @__PURE__ */ React45.createElement(Box35, { key: entry.key }, /* @__PURE__ */ React45.createElement(Text39, { color: theme.secondaryText }, entry.line)))) : null,
|
|
@@ -23620,7 +23725,7 @@ function useStatusLine() {
|
|
|
23620
23725
|
// src/ui/components/PromptInput.tsx
|
|
23621
23726
|
async function interpretHashCommand(input) {
|
|
23622
23727
|
try {
|
|
23623
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23728
|
+
const { queryQuick: queryQuick2 } = await import("./llm-RCNWJH2C.js");
|
|
23624
23729
|
const systemPrompt = [
|
|
23625
23730
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23626
23731
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23933,7 +24038,7 @@ function PromptInput({
|
|
|
23933
24038
|
if (messages2.length) {
|
|
23934
24039
|
if (mode === "bash") {
|
|
23935
24040
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23936
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24041
|
+
const { getCwd: getCwd2 } = await import("./state-5NJOFKYB.js");
|
|
23937
24042
|
setCurrentPwd(getCwd2());
|
|
23938
24043
|
});
|
|
23939
24044
|
} else {
|
|
@@ -26803,7 +26908,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26803
26908
|
// src/commands/agents/generation.ts
|
|
26804
26909
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26805
26910
|
async function generateAgentWithClaude(prompt) {
|
|
26806
|
-
const { queryModel } = await import("./llm-
|
|
26911
|
+
const { queryModel } = await import("./llm-RCNWJH2C.js");
|
|
26807
26912
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26808
26913
|
|
|
26809
26914
|
Return your response as a JSON object with exactly these fields:
|