pybao-cli 1.5.43 → 1.5.45
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-FPYYTXYI.js +53 -0
- package/dist/{acp-LVHAM3WT.js → acp-Y3YRP7PX.js} +32 -30
- package/dist/{acp-LVHAM3WT.js.map → acp-Y3YRP7PX.js.map} +1 -1
- package/dist/{agentsValidate-BIL7UNX5.js → agentsValidate-LYQDYON6.js} +7 -7
- package/dist/{ask-QYJE6B5E.js → ask-BH7SPGEV.js} +32 -30
- package/dist/{ask-QYJE6B5E.js.map → ask-BH7SPGEV.js.map} +1 -1
- package/dist/{autoUpdater-LAJDPNSA.js → autoUpdater-WQ7NSMS6.js} +3 -3
- package/dist/{chunk-IMTSYQJ5.js → chunk-2CFC3PYO.js} +1 -1
- package/dist/chunk-2RXKUCFS.js +56 -0
- package/dist/chunk-2RXKUCFS.js.map +7 -0
- package/dist/{chunk-BY5NKQMC.js → chunk-3V35SGQ7.js} +1 -1
- package/dist/{chunk-6CJP4KDE.js → chunk-6TJCSOV3.js} +3 -3
- package/dist/{chunk-O5YZTB5G.js → chunk-7BDU4UKY.js} +1 -1
- package/dist/{chunk-UL4MJNFE.js → chunk-7XHORF4S.js} +1 -1
- package/dist/{chunk-2TSFRYBQ.js → chunk-A3E3KOP5.js} +8 -5
- package/dist/{chunk-2TSFRYBQ.js.map → chunk-A3E3KOP5.js.map} +2 -2
- package/dist/{chunk-XRYS53BQ.js → chunk-B4DLSHE7.js} +3 -3
- package/dist/{chunk-HL57BCKA.js → chunk-BGT7XDPE.js} +3 -3
- package/dist/{chunk-5HEO7RAF.js → chunk-BIRC5MFX.js} +1 -1
- package/dist/{chunk-3PDQTTHC.js → chunk-F6A7OSLF.js} +3 -3
- package/dist/{chunk-QWWHPWOT.js → chunk-FDU3LJPV.js} +3 -3
- package/dist/{chunk-2QGZFE6O.js → chunk-FGYA5FY5.js} +2 -2
- package/dist/{chunk-2XIK7WIG.js → chunk-FS2I7CEG.js} +4 -4
- package/dist/{chunk-GC32L3BW.js → chunk-FSHVF7L6.js} +1 -1
- package/dist/{chunk-MES7PKDS.js → chunk-FZDJSTSK.js} +3 -3
- package/dist/{chunk-3CEAIULU.js → chunk-G57Q2LMI.js} +4 -4
- package/dist/{chunk-WFZABDD5.js → chunk-HFEWWAXY.js} +1 -1
- package/dist/{chunk-FROHRXK3.js → chunk-HPEY66LP.js} +3 -3
- package/dist/{chunk-UGK22Z7U.js → chunk-HPLKXHZG.js} +4 -4
- package/dist/{chunk-AY6XGM2V.js → chunk-ILSNA4QO.js} +1 -1
- package/dist/{chunk-YQZ36RXO.js → chunk-K4GZU7WR.js} +3 -3
- package/dist/{chunk-ODMS5WD2.js → chunk-LFTLSBFK.js} +2 -2
- package/dist/{chunk-4WBXCBNQ.js → chunk-LO7D5L6Q.js} +2 -2
- package/dist/{chunk-P576YHXH.js → chunk-PZ3WTDXV.js} +2 -2
- package/dist/{chunk-64D4RTUL.js → chunk-QYZADXNT.js} +2 -2
- package/dist/{chunk-WGO4I32J.js → chunk-RHUSN5MT.js} +5 -14
- package/dist/chunk-RHUSN5MT.js.map +7 -0
- package/dist/{chunk-2UVNJF72.js → chunk-SD2KLYSK.js} +162 -57
- package/dist/{chunk-2UVNJF72.js.map → chunk-SD2KLYSK.js.map} +3 -3
- package/dist/{chunk-XRJ6MMNI.js → chunk-SRWWGIOO.js} +2 -2
- package/dist/{chunk-R473IZUI.js → chunk-T2V55G3O.js} +2 -1
- package/dist/chunk-T2V55G3O.js.map +7 -0
- package/dist/chunk-TFHFYID3.js +18 -0
- package/dist/chunk-TFHFYID3.js.map +7 -0
- package/dist/{chunk-UV4CROSJ.js → chunk-VHDLVHEI.js} +1 -1
- package/dist/{chunk-N22YCAOH.js → chunk-ZJJR2GKA.js} +1 -1
- package/dist/{cli-EMF2LNWT.js → cli-SPB5RXN4.js} +92 -90
- package/dist/{cli-EMF2LNWT.js.map → cli-SPB5RXN4.js.map} +1 -1
- package/dist/commands-SWWMSOJY.js +57 -0
- package/dist/{config-QWOKTE4Z.js → config-BMWR2IR4.js} +4 -4
- package/dist/{context-CR4OHAW3.js → context-SNWJ6H3N.js} +6 -6
- package/dist/{conversationPersistence-2ZTLQGE5.js → conversationPersistence-L6KNQU6J.js} +3 -3
- package/dist/{conversationTracker-DTMFBXF2.js → conversationTracker-LE56DVAC.js} +4 -4
- package/dist/{customCommands-X2WOVBVA.js → customCommands-4X76E7O3.js} +4 -4
- package/dist/{env-LL3E6GKF.js → env-FP3P46RT.js} +2 -2
- package/dist/{file-A757K2PX.js → file-KV52REUC.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-UC6Z6IP4.js → llm-OTA3UYTD.js} +35 -32
- package/dist/{llm-UC6Z6IP4.js.map → llm-OTA3UYTD.js.map} +1 -1
- package/dist/{llmLazy-EG3IM7LV.js → llmLazy-6C5RDNID.js} +1 -1
- package/dist/{loader-6I2QGDJO.js → loader-OQK52QDI.js} +4 -4
- package/dist/{lsp-UZCTF63W.js → lsp-EIMYRWRU.js} +6 -6
- package/dist/{lspAnchor-FPVASO3V.js → lspAnchor-5TJ5JKEJ.js} +20 -6
- package/dist/lspAnchor-5TJ5JKEJ.js.map +7 -0
- package/dist/{mcp-WQJDBKMI.js → mcp-ESHTAOQ2.js} +7 -7
- package/dist/{mentionProcessor-ENFGCIDA.js → mentionProcessor-SVY2HFAN.js} +5 -5
- package/dist/{messages-OY5FPDQM.js → messages-WTIERLAV.js} +2 -1
- package/dist/{model-TNO4KLC5.js → model-XIQ6J7WO.js} +5 -5
- package/dist/{openai-CMZMQBHT.js → openai-MHDKXTKR.js} +5 -5
- package/dist/{outputStyles-JGXWSFHW.js → outputStyles-AOELRVFL.js} +4 -4
- package/dist/{pluginRuntime-G3GOMV5D.js → pluginRuntime-3CCOPRUZ.js} +6 -6
- package/dist/{pluginValidation-H6YPRL33.js → pluginValidation-L3NUKGCQ.js} +6 -6
- package/dist/prompts-LCARBCSA.js +59 -0
- package/dist/{pybAgentSessionLoad-CKBQWEHL.js → pybAgentSessionLoad-DS67RJAJ.js} +4 -4
- package/dist/{pybAgentSessionResume-5JHOPPQ4.js → pybAgentSessionResume-UGQCQVNW.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-KWVXQUVD.js → pybAgentStreamJsonSession-YFYCFTMO.js} +2 -1
- package/dist/{pybAgentStreamJsonSession-KWVXQUVD.js.map → pybAgentStreamJsonSession-YFYCFTMO.js.map} +1 -1
- package/dist/{pybHooks-GGKEH2FR.js → pybHooks-XUN2UYB2.js} +4 -4
- package/dist/query-63DINS6E.js +57 -0
- package/dist/{registry-GQQQTCFQ.js → registry-XAPOPN44.js} +5 -5
- package/dist/{ripgrep-AVZW7VVL.js → ripgrep-DQDBRTBS.js} +3 -3
- package/dist/{skillMarketplace-D2A5XXKV.js → skillMarketplace-SUMGVSYS.js} +3 -3
- package/dist/{state-RTSSAAIG.js → state-QUWQKTQZ.js} +2 -2
- package/dist/{theme-V4OGMWPI.js → theme-GZSN2BNR.js} +5 -5
- package/dist/{toolPermissionSettings-6VJOURZH.js → toolPermissionSettings-G5JQX7I2.js} +6 -6
- package/dist/tools-PPRXMRLD.js +57 -0
- package/dist/{userInput-EMH7S76R.js → userInput-PKPNFQMN.js} +34 -32
- package/dist/{userInput-EMH7S76R.js.map → userInput-PKPNFQMN.js.map} +1 -1
- package/package.json +2 -1
- package/dist/REPL-DB574DFH.js +0 -51
- package/dist/chunk-R473IZUI.js.map +0 -7
- package/dist/chunk-WGO4I32J.js.map +0 -7
- package/dist/commands-H755ZYPB.js +0 -55
- package/dist/lspAnchor-FPVASO3V.js.map +0 -7
- package/dist/prompts-DOBVYFHP.js +0 -57
- package/dist/query-B5JGYOT4.js +0 -55
- package/dist/tools-P4FXYKF4.js +0 -55
- /package/dist/{REPL-DB574DFH.js.map → REPL-FPYYTXYI.js.map} +0 -0
- /package/dist/{agentsValidate-BIL7UNX5.js.map → agentsValidate-LYQDYON6.js.map} +0 -0
- /package/dist/{autoUpdater-LAJDPNSA.js.map → autoUpdater-WQ7NSMS6.js.map} +0 -0
- /package/dist/{chunk-IMTSYQJ5.js.map → chunk-2CFC3PYO.js.map} +0 -0
- /package/dist/{chunk-BY5NKQMC.js.map → chunk-3V35SGQ7.js.map} +0 -0
- /package/dist/{chunk-6CJP4KDE.js.map → chunk-6TJCSOV3.js.map} +0 -0
- /package/dist/{chunk-O5YZTB5G.js.map → chunk-7BDU4UKY.js.map} +0 -0
- /package/dist/{chunk-UL4MJNFE.js.map → chunk-7XHORF4S.js.map} +0 -0
- /package/dist/{chunk-XRYS53BQ.js.map → chunk-B4DLSHE7.js.map} +0 -0
- /package/dist/{chunk-HL57BCKA.js.map → chunk-BGT7XDPE.js.map} +0 -0
- /package/dist/{chunk-5HEO7RAF.js.map → chunk-BIRC5MFX.js.map} +0 -0
- /package/dist/{chunk-3PDQTTHC.js.map → chunk-F6A7OSLF.js.map} +0 -0
- /package/dist/{chunk-QWWHPWOT.js.map → chunk-FDU3LJPV.js.map} +0 -0
- /package/dist/{chunk-2QGZFE6O.js.map → chunk-FGYA5FY5.js.map} +0 -0
- /package/dist/{chunk-2XIK7WIG.js.map → chunk-FS2I7CEG.js.map} +0 -0
- /package/dist/{chunk-GC32L3BW.js.map → chunk-FSHVF7L6.js.map} +0 -0
- /package/dist/{chunk-MES7PKDS.js.map → chunk-FZDJSTSK.js.map} +0 -0
- /package/dist/{chunk-3CEAIULU.js.map → chunk-G57Q2LMI.js.map} +0 -0
- /package/dist/{chunk-WFZABDD5.js.map → chunk-HFEWWAXY.js.map} +0 -0
- /package/dist/{chunk-FROHRXK3.js.map → chunk-HPEY66LP.js.map} +0 -0
- /package/dist/{chunk-UGK22Z7U.js.map → chunk-HPLKXHZG.js.map} +0 -0
- /package/dist/{chunk-AY6XGM2V.js.map → chunk-ILSNA4QO.js.map} +0 -0
- /package/dist/{chunk-YQZ36RXO.js.map → chunk-K4GZU7WR.js.map} +0 -0
- /package/dist/{chunk-ODMS5WD2.js.map → chunk-LFTLSBFK.js.map} +0 -0
- /package/dist/{chunk-4WBXCBNQ.js.map → chunk-LO7D5L6Q.js.map} +0 -0
- /package/dist/{chunk-P576YHXH.js.map → chunk-PZ3WTDXV.js.map} +0 -0
- /package/dist/{chunk-64D4RTUL.js.map → chunk-QYZADXNT.js.map} +0 -0
- /package/dist/{chunk-XRJ6MMNI.js.map → chunk-SRWWGIOO.js.map} +0 -0
- /package/dist/{chunk-UV4CROSJ.js.map → chunk-VHDLVHEI.js.map} +0 -0
- /package/dist/{chunk-N22YCAOH.js.map → chunk-ZJJR2GKA.js.map} +0 -0
- /package/dist/{commands-H755ZYPB.js.map → commands-SWWMSOJY.js.map} +0 -0
- /package/dist/{config-QWOKTE4Z.js.map → config-BMWR2IR4.js.map} +0 -0
- /package/dist/{context-CR4OHAW3.js.map → context-SNWJ6H3N.js.map} +0 -0
- /package/dist/{conversationPersistence-2ZTLQGE5.js.map → conversationPersistence-L6KNQU6J.js.map} +0 -0
- /package/dist/{conversationTracker-DTMFBXF2.js.map → conversationTracker-LE56DVAC.js.map} +0 -0
- /package/dist/{customCommands-X2WOVBVA.js.map → customCommands-4X76E7O3.js.map} +0 -0
- /package/dist/{env-LL3E6GKF.js.map → env-FP3P46RT.js.map} +0 -0
- /package/dist/{file-A757K2PX.js.map → file-KV52REUC.js.map} +0 -0
- /package/dist/{llmLazy-EG3IM7LV.js.map → llmLazy-6C5RDNID.js.map} +0 -0
- /package/dist/{loader-6I2QGDJO.js.map → loader-OQK52QDI.js.map} +0 -0
- /package/dist/{lsp-UZCTF63W.js.map → lsp-EIMYRWRU.js.map} +0 -0
- /package/dist/{mcp-WQJDBKMI.js.map → mcp-ESHTAOQ2.js.map} +0 -0
- /package/dist/{mentionProcessor-ENFGCIDA.js.map → mentionProcessor-SVY2HFAN.js.map} +0 -0
- /package/dist/{messages-OY5FPDQM.js.map → messages-WTIERLAV.js.map} +0 -0
- /package/dist/{model-TNO4KLC5.js.map → model-XIQ6J7WO.js.map} +0 -0
- /package/dist/{openai-CMZMQBHT.js.map → openai-MHDKXTKR.js.map} +0 -0
- /package/dist/{outputStyles-JGXWSFHW.js.map → outputStyles-AOELRVFL.js.map} +0 -0
- /package/dist/{pluginRuntime-G3GOMV5D.js.map → pluginRuntime-3CCOPRUZ.js.map} +0 -0
- /package/dist/{pluginValidation-H6YPRL33.js.map → pluginValidation-L3NUKGCQ.js.map} +0 -0
- /package/dist/{prompts-DOBVYFHP.js.map → prompts-LCARBCSA.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-CKBQWEHL.js.map → pybAgentSessionLoad-DS67RJAJ.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-5JHOPPQ4.js.map → pybAgentSessionResume-UGQCQVNW.js.map} +0 -0
- /package/dist/{pybHooks-GGKEH2FR.js.map → pybHooks-XUN2UYB2.js.map} +0 -0
- /package/dist/{query-B5JGYOT4.js.map → query-63DINS6E.js.map} +0 -0
- /package/dist/{registry-GQQQTCFQ.js.map → registry-XAPOPN44.js.map} +0 -0
- /package/dist/{ripgrep-AVZW7VVL.js.map → ripgrep-DQDBRTBS.js.map} +0 -0
- /package/dist/{skillMarketplace-D2A5XXKV.js.map → skillMarketplace-SUMGVSYS.js.map} +0 -0
- /package/dist/{state-RTSSAAIG.js.map → state-QUWQKTQZ.js.map} +0 -0
- /package/dist/{theme-V4OGMWPI.js.map → theme-GZSN2BNR.js.map} +0 -0
- /package/dist/{toolPermissionSettings-6VJOURZH.js.map → toolPermissionSettings-G5JQX7I2.js.map} +0 -0
- /package/dist/{tools-P4FXYKF4.js.map → tools-PPRXMRLD.js.map} +0 -0
|
@@ -2,17 +2,17 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadPybAgentSessionMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FSHVF7L6.js";
|
|
6
6
|
import {
|
|
7
7
|
appendSessionCustomTitleRecord,
|
|
8
8
|
appendSessionJsonlFromMessage,
|
|
9
9
|
appendSessionTagRecord,
|
|
10
10
|
listPybAgentSessions
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B4DLSHE7.js";
|
|
12
12
|
import {
|
|
13
13
|
formatValidationResult,
|
|
14
14
|
validatePluginOrMarketplacePath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HPEY66LP.js";
|
|
16
16
|
import {
|
|
17
17
|
ConversationTracker,
|
|
18
18
|
appendFinishState,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
getConversationTrackerForContext,
|
|
21
21
|
isFinishComplete,
|
|
22
22
|
mapFinishReason
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7XHORF4S.js";
|
|
24
24
|
import {
|
|
25
25
|
FileSystemConversationPersistence
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VHDLVHEI.js";
|
|
27
27
|
import {
|
|
28
28
|
beginReplSessionScope
|
|
29
29
|
} from "./chunk-F4AXICO7.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
runStopHooks,
|
|
39
39
|
runUserPromptSubmitHooks,
|
|
40
40
|
updateHookTranscriptForMessages
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6TJCSOV3.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_OUTPUT_STYLE,
|
|
44
44
|
getAvailableOutputStyles,
|
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
getOutputStyleSystemPromptAdditions,
|
|
48
48
|
resolveOutputStyleName,
|
|
49
49
|
setCurrentOutputStyle
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FGYA5FY5.js";
|
|
51
51
|
import {
|
|
52
52
|
fetchCustomModels,
|
|
53
53
|
getModelFeatures
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PZ3WTDXV.js";
|
|
55
55
|
import {
|
|
56
56
|
getCurrentSessionId,
|
|
57
57
|
getSessionState
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
queryLLM,
|
|
61
61
|
queryQuick,
|
|
62
62
|
verifyApiKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-HPLKXHZG.js";
|
|
64
64
|
import {
|
|
65
65
|
DEFAULT_TIMEOUT_MS,
|
|
66
66
|
FallbackToolUseRejectedMessage,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
listMCPServers,
|
|
76
76
|
loadMergedSettings,
|
|
77
77
|
normalizeSandboxRuntimeConfigFromSettings
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FS2I7CEG.js";
|
|
79
79
|
import {
|
|
80
80
|
addMarketplace,
|
|
81
81
|
disableSkillPlugin,
|
|
@@ -88,11 +88,11 @@ import {
|
|
|
88
88
|
refreshMarketplaceAsync,
|
|
89
89
|
removeMarketplace,
|
|
90
90
|
uninstallSkillPlugin
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-ILSNA4QO.js";
|
|
92
92
|
import {
|
|
93
93
|
loadToolPermissionContextFromDisk,
|
|
94
94
|
persistToolPermissionUpdateToDisk
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-K4GZU7WR.js";
|
|
96
96
|
import {
|
|
97
97
|
applyToolPermissionContextUpdate,
|
|
98
98
|
applyToolPermissionContextUpdates,
|
|
@@ -103,14 +103,14 @@ import {
|
|
|
103
103
|
generateSystemReminders,
|
|
104
104
|
resetReminderSession,
|
|
105
105
|
systemReminderService
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-SRWWGIOO.js";
|
|
107
107
|
import {
|
|
108
108
|
clearAgentCache,
|
|
109
109
|
getActiveAgents,
|
|
110
110
|
getAgentByType,
|
|
111
111
|
getAllAgents,
|
|
112
112
|
getAvailableAgentTypes
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-QYZADXNT.js";
|
|
114
114
|
import {
|
|
115
115
|
API_ERROR_MESSAGE_PREFIX,
|
|
116
116
|
CANCEL_MESSAGE,
|
|
@@ -129,7 +129,6 @@ import {
|
|
|
129
129
|
createUserMessageFromBlocks,
|
|
130
130
|
createUserMessageFromText,
|
|
131
131
|
emitAutoCompactTelemetryEvent,
|
|
132
|
-
emitTelemetryEvent,
|
|
133
132
|
extractTag,
|
|
134
133
|
filterProgressMessagesForTools,
|
|
135
134
|
getAutoCompactMetricsSnapshot,
|
|
@@ -143,11 +142,10 @@ import {
|
|
|
143
142
|
normalizeMessages,
|
|
144
143
|
normalizeMessagesForAPI,
|
|
145
144
|
processUserInput,
|
|
146
|
-
registerTelemetryListener,
|
|
147
145
|
reorderMessages,
|
|
148
146
|
resetAutoCompactTelemetry,
|
|
149
147
|
stripSystemMessages
|
|
150
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-RHUSN5MT.js";
|
|
151
149
|
import {
|
|
152
150
|
getRequestStatus,
|
|
153
151
|
setRequestStatus,
|
|
@@ -179,10 +177,17 @@ import {
|
|
|
179
177
|
normalizeFilePath,
|
|
180
178
|
readTextContent,
|
|
181
179
|
writeTextContent
|
|
182
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-LO7D5L6Q.js";
|
|
183
181
|
import {
|
|
184
182
|
parseBlockEdits
|
|
185
183
|
} from "./chunk-QWIBSCDN.js";
|
|
184
|
+
import {
|
|
185
|
+
toLspToolFallbackEvent
|
|
186
|
+
} from "./chunk-2RXKUCFS.js";
|
|
187
|
+
import {
|
|
188
|
+
emitTelemetryEvent,
|
|
189
|
+
registerTelemetryListener
|
|
190
|
+
} from "./chunk-TFHFYID3.js";
|
|
186
191
|
import {
|
|
187
192
|
LspAPI,
|
|
188
193
|
LspFacade,
|
|
@@ -190,18 +195,18 @@ import {
|
|
|
190
195
|
formatDiagnosticsPretty,
|
|
191
196
|
initParser,
|
|
192
197
|
loadLanguage
|
|
193
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-A3E3KOP5.js";
|
|
194
199
|
import {
|
|
195
200
|
getSettingsFileCandidates,
|
|
196
201
|
loadSettingsWithLegacyFallback,
|
|
197
202
|
readSettingsFile
|
|
198
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-BIRC5MFX.js";
|
|
199
204
|
import {
|
|
200
205
|
getCustomCommandDirectories,
|
|
201
206
|
hasCustomCommands,
|
|
202
207
|
loadCustomCommands,
|
|
203
208
|
reloadCustomCommands
|
|
204
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-LFTLSBFK.js";
|
|
205
210
|
import {
|
|
206
211
|
getSessionPlugins
|
|
207
212
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -210,7 +215,7 @@ import {
|
|
|
210
215
|
buildModelProfileKey,
|
|
211
216
|
getModelManager,
|
|
212
217
|
isDefaultSlowAndCapableModel
|
|
213
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-FZDJSTSK.js";
|
|
214
219
|
import {
|
|
215
220
|
getCodeStyle,
|
|
216
221
|
getContext,
|
|
@@ -218,16 +223,16 @@ import {
|
|
|
218
223
|
getIsGit,
|
|
219
224
|
getProjectDocs,
|
|
220
225
|
getProjectStructureStatisticsBlock
|
|
221
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-G57Q2LMI.js";
|
|
222
227
|
import {
|
|
223
228
|
getRipgrepPath,
|
|
224
229
|
getRipgrepPolicyMode,
|
|
225
230
|
resolveRipgrepPolicy,
|
|
226
231
|
ripGrep
|
|
227
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-3V35SGQ7.js";
|
|
228
233
|
import {
|
|
229
234
|
getTheme
|
|
230
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-7BDU4UKY.js";
|
|
231
236
|
import {
|
|
232
237
|
DEFAULT_GLOBAL_CONFIG,
|
|
233
238
|
enableConfigs,
|
|
@@ -240,7 +245,7 @@ import {
|
|
|
240
245
|
saveGlobalConfig,
|
|
241
246
|
setAllPointersToModel,
|
|
242
247
|
setModelPointer
|
|
243
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-F6A7OSLF.js";
|
|
244
249
|
import {
|
|
245
250
|
AbortError
|
|
246
251
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -249,7 +254,7 @@ import {
|
|
|
249
254
|
getCurrentRequest,
|
|
250
255
|
logUserFriendly,
|
|
251
256
|
markPhase
|
|
252
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-ZJJR2GKA.js";
|
|
253
258
|
import {
|
|
254
259
|
ASCII_LOGO,
|
|
255
260
|
BunShell,
|
|
@@ -293,10 +298,10 @@ import {
|
|
|
293
298
|
setCwd,
|
|
294
299
|
shouldApplyToolOutputTruncation,
|
|
295
300
|
truncateToolOutput
|
|
296
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-HFEWWAXY.js";
|
|
297
302
|
import {
|
|
298
303
|
MACRO
|
|
299
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-T2V55G3O.js";
|
|
300
305
|
import {
|
|
301
306
|
__export
|
|
302
307
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -477,7 +482,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
477
482
|
var getCommandPrefix = memoize(
|
|
478
483
|
async (command4, abortSignal) => {
|
|
479
484
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
480
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
485
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-OTA3UYTD.js");
|
|
481
486
|
const response = await queryQuick2({
|
|
482
487
|
systemPrompt,
|
|
483
488
|
userPrompt,
|
|
@@ -4279,7 +4284,7 @@ function formatParseError(error) {
|
|
|
4279
4284
|
return error instanceof Error ? error.message : String(error);
|
|
4280
4285
|
}
|
|
4281
4286
|
async function defaultGateQuery(args) {
|
|
4282
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4287
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-OTA3UYTD.js");
|
|
4283
4288
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4284
4289
|
const messages = [
|
|
4285
4290
|
{
|
|
@@ -6672,7 +6677,7 @@ var FileEditTool = {
|
|
|
6672
6677
|
const originalFileContent = currentFileContent;
|
|
6673
6678
|
let totalPatch = [];
|
|
6674
6679
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6675
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6680
|
+
const { findLspAnchor } = await import("./lspAnchor-5TJ5JKEJ.js");
|
|
6676
6681
|
for (const op of editOperations) {
|
|
6677
6682
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6678
6683
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6802,9 +6807,11 @@ var PROMPT3 = `Reads a file or directory from the local filesystem. You can acce
|
|
|
6802
6807
|
- In directory mode, offset/limit are 1-based entry pagination and offset>=1 is required
|
|
6803
6808
|
- In file mode, offset/limit are 1-based line pagination; offset=1 starts from the first line shown in cat -n output
|
|
6804
6809
|
- By default, file mode reads up to ${MAX_LINES_TO_READ} lines starting from the beginning of the file
|
|
6805
|
-
- You can optionally specify a line offset and limit (especially handy for long files). **Smart Truncation is active
|
|
6810
|
+
- You can optionally specify a line offset and limit (especially handy for long files). **Smart Truncation is active** only in file mode when \`limit\` is provided and \`symbol_name\` is not provided: if your limit cuts a function or class in the middle, the tool will automatically extend the read range to include the full semantic block (up to 500 extra lines).
|
|
6811
|
+
- Smart Truncation is a best-effort semantic boundary repair (Tree-sitter). If semantic parsing fails, Read falls back to the original offset/limit window.
|
|
6806
6812
|
- symbol_name enables LSP-assisted symbol read: provide an exact symbol name to resolve the symbol range and read that block directly
|
|
6807
|
-
-
|
|
6813
|
+
- When \`symbol_name\` is provided, Read resolves symbol range via LSP and reads that block directly (offset/limit are ignored for range selection).
|
|
6814
|
+
- Use symbol_name only after file path is confirmed and when you need a specific class/function definition; if symbol is missing, unresolved, or LSP is unavailable, fallback to offset/limit or use LspTool for semantic discovery first.
|
|
6808
6815
|
- Directory mode returns a one-level tree structure using \u251C\u2500\u2500/\u2514\u2500\u2500 and supports pagination continuation hints
|
|
6809
6816
|
- For large files, iterate in chunks: offset=1 limit=200, then offset=201 limit=200, and so on until the needed region is covered
|
|
6810
6817
|
- File text truncation is capped at 50KB per result and 2000 lines; 50KB is file text truncation and not a directory access gate
|
|
@@ -6845,10 +6852,32 @@ var PROMPT3 = `Reads a file or directory from the local filesystem. You can acce
|
|
|
6845
6852
|
|
|
6846
6853
|
### Example 4: LSP-Assisted Symbol Read
|
|
6847
6854
|
<example>
|
|
6848
|
-
user:
|
|
6855
|
+
user: I only need the function that actually executes file reading, not the whole file
|
|
6849
6856
|
assistant: [uses Glob/Grep to confirm FileReadTool file path]
|
|
6850
6857
|
[uses Read with file_path="<absolute path>/FileReadTool.tsx" symbol_name="call"]
|
|
6851
|
-
[if symbol is
|
|
6858
|
+
[if symbol is missing or unresolved, uses LspTool documentSymbol to discover exact symbol names, then retries]
|
|
6859
|
+
[if LSP is unavailable, falls back to offset/limit chunked reads around likely implementation area]
|
|
6860
|
+
<reasoning>
|
|
6861
|
+
The assistant used symbol_name-based Read because:
|
|
6862
|
+
1. User intent is a specific implementation block, not whole-file browsing
|
|
6863
|
+
2. symbol_name gives precise semantic range selection and avoids noisy context
|
|
6864
|
+
3. LspTool is used only for symbol discovery fallback, while Read remains the code retrieval tool
|
|
6865
|
+
</reasoning>
|
|
6866
|
+
</example>
|
|
6867
|
+
|
|
6868
|
+
### Example 5: Smart Truncation on Partial Window
|
|
6869
|
+
<example>
|
|
6870
|
+
user: Please read this file section for me; I do not know where the function ends
|
|
6871
|
+
assistant: [uses Read with file_path="<absolute path>/service.ts" offset=120 limit=30]
|
|
6872
|
+
[relies on Smart Truncation to auto-extend when the requested window cuts a function/class boundary]
|
|
6873
|
+
[checks returned startLine/numLines and continues with adjacent chunks if more context is needed]
|
|
6874
|
+
[if semantic parsing fails, falls back to original offset/limit and continues chunked reading]
|
|
6875
|
+
<reasoning>
|
|
6876
|
+
The assistant used offset/limit Read with Smart Truncation because:
|
|
6877
|
+
1. User asked for a local section without symbol-level knowledge
|
|
6878
|
+
2. Pagination windows can split semantic containers, causing misleading partial code
|
|
6879
|
+
3. Smart Truncation repairs semantic boundaries while preserving pagination workflow
|
|
6880
|
+
</reasoning>
|
|
6852
6881
|
</example>
|
|
6853
6882
|
`.trim();
|
|
6854
6883
|
|
|
@@ -7308,8 +7337,8 @@ var SmartTruncator = class _SmartTruncator {
|
|
|
7308
7337
|
}
|
|
7309
7338
|
return { start: newStart, end: newEnd };
|
|
7310
7339
|
} catch (err) {
|
|
7311
|
-
|
|
7312
|
-
|
|
7340
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
7341
|
+
throw new Error(`SmartTruncator failed: ${detail}`);
|
|
7313
7342
|
}
|
|
7314
7343
|
}
|
|
7315
7344
|
static findContainers(node) {
|
|
@@ -8541,6 +8570,39 @@ var DESCRIPTION4 = `Fast file pattern matching tool that works with any codebase
|
|
|
8541
8570
|
import { existsSync as existsSync6, statSync as statSync9 } from "fs";
|
|
8542
8571
|
import { isAbsolute as isAbsolute6, join as join5, relative as relative8, resolve as resolve6 } from "path";
|
|
8543
8572
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
8573
|
+
|
|
8574
|
+
// src/lsp/semanticFallbackReason.ts
|
|
8575
|
+
function toMessage(error) {
|
|
8576
|
+
return String(error instanceof Error ? error.message : error).toLowerCase();
|
|
8577
|
+
}
|
|
8578
|
+
function classifySemanticFallbackError(error) {
|
|
8579
|
+
const message = toMessage(error);
|
|
8580
|
+
if (message.includes("timeout")) {
|
|
8581
|
+
return "SERVER_TIMEOUT";
|
|
8582
|
+
}
|
|
8583
|
+
if (message.includes("scope") || message.includes("scoped path") || message.includes("too broad")) {
|
|
8584
|
+
return "WORKSPACE_SCOPE_TOO_BROAD";
|
|
8585
|
+
}
|
|
8586
|
+
if (message.includes("no lsp") || message.includes("lsp unavailable") || message.includes("unable to initialize lsp")) {
|
|
8587
|
+
return "LSP_UNAVAILABLE";
|
|
8588
|
+
}
|
|
8589
|
+
return "UNKNOWN";
|
|
8590
|
+
}
|
|
8591
|
+
|
|
8592
|
+
// src/lsp/semanticReasonPolicy.ts
|
|
8593
|
+
var SEMANTIC_REASON_SUGGESTIONS = {
|
|
8594
|
+
SYMBOLS_ADDED: "Suggestion: Use LspTool for symbol-level details and navigation.",
|
|
8595
|
+
NO_SYMBOL_MATCH: "Suggestion: Broaden query keywords or adjust search scope/path before retrying.",
|
|
8596
|
+
LSP_UNAVAILABLE: "Suggestion: Check LSP availability and fallback to text search while LSP recovers.",
|
|
8597
|
+
SERVER_TIMEOUT: "Suggestion: Narrow the search scope and retry to reduce LSP server load.",
|
|
8598
|
+
WORKSPACE_SCOPE_TOO_BROAD: "Suggestion: Provide a narrower path to reduce workspace symbol scan scope.",
|
|
8599
|
+
UNKNOWN: "Suggestion: Retry with a narrower scope and inspect LSP status diagnostics."
|
|
8600
|
+
};
|
|
8601
|
+
function buildSemanticSuggestion(reason) {
|
|
8602
|
+
return SEMANTIC_REASON_SUGGESTIONS[reason];
|
|
8603
|
+
}
|
|
8604
|
+
|
|
8605
|
+
// src/tools/filesystem/GlobTool/GlobTool.tsx
|
|
8544
8606
|
var inputSchema6 = z6.strictObject({
|
|
8545
8607
|
pattern: z6.string().describe("The glob pattern to match files against"),
|
|
8546
8608
|
path: z6.string().optional().describe(
|
|
@@ -8629,6 +8691,8 @@ var GlobTool = {
|
|
|
8629
8691
|
let files = raw.map((p) => isAbsolute6(p) ? p : join5(searchPath, p));
|
|
8630
8692
|
const scopedPath = resolve6(searchPath);
|
|
8631
8693
|
let semanticNotice;
|
|
8694
|
+
let semanticReason;
|
|
8695
|
+
let semanticSuggestion;
|
|
8632
8696
|
if (semantic && files.length === 0) {
|
|
8633
8697
|
try {
|
|
8634
8698
|
const symbols = await LspAPI.workspaceSymbol(pattern, {
|
|
@@ -8648,11 +8712,17 @@ var GlobTool = {
|
|
|
8648
8712
|
files = Array.from(/* @__PURE__ */ new Set([...files, ...semanticFiles]));
|
|
8649
8713
|
if (semanticFiles.length > 0) {
|
|
8650
8714
|
semanticNotice = `Semantic search: added ${semanticFiles.length} result${semanticFiles.length === 1 ? "" : "s"}. Next: use LspTool for details.`;
|
|
8715
|
+
semanticReason = "SYMBOLS_ADDED";
|
|
8716
|
+
semanticSuggestion = buildSemanticSuggestion("SYMBOLS_ADDED");
|
|
8651
8717
|
} else {
|
|
8652
8718
|
semanticNotice = "Semantic search: no symbols found.";
|
|
8719
|
+
semanticReason = "NO_SYMBOL_MATCH";
|
|
8720
|
+
semanticSuggestion = buildSemanticSuggestion("NO_SYMBOL_MATCH");
|
|
8653
8721
|
}
|
|
8654
|
-
} catch {
|
|
8722
|
+
} catch (e) {
|
|
8655
8723
|
semanticNotice = "Semantic search: LSP unavailable.";
|
|
8724
|
+
semanticReason = classifySemanticFallbackError(e);
|
|
8725
|
+
semanticSuggestion = buildSemanticSuggestion(semanticReason);
|
|
8656
8726
|
}
|
|
8657
8727
|
}
|
|
8658
8728
|
const truncated = files.length > DEFAULT_LIMIT;
|
|
@@ -8662,7 +8732,9 @@ var GlobTool = {
|
|
|
8662
8732
|
durationMs: Date.now() - start,
|
|
8663
8733
|
numFiles: limitedFiles.length,
|
|
8664
8734
|
truncated,
|
|
8665
|
-
...semanticNotice ? { semanticNotice } : {}
|
|
8735
|
+
...semanticNotice ? { semanticNotice } : {},
|
|
8736
|
+
...semanticReason ? { semanticReason } : {},
|
|
8737
|
+
...semanticSuggestion ? { semanticSuggestion } : {}
|
|
8666
8738
|
};
|
|
8667
8739
|
yield {
|
|
8668
8740
|
type: "result",
|
|
@@ -8678,9 +8750,13 @@ var GlobTool = {
|
|
|
8678
8750
|
result += '\n(Results truncated to 100 files. Narrow down: 1) Add specific path like "src/core/**/*" 2) Filter by extension like "*.test.ts" 3) Read a target directory path with Read for structure confirmation.)';
|
|
8679
8751
|
}
|
|
8680
8752
|
if (output.semanticNotice) {
|
|
8753
|
+
const reasonLine = output.semanticReason ? `Reason: ${output.semanticReason}` : void 0;
|
|
8754
|
+
const suggestionLine = output.semanticSuggestion ? output.semanticSuggestion : void 0;
|
|
8681
8755
|
return `${result}
|
|
8682
8756
|
|
|
8683
|
-
${output.semanticNotice}
|
|
8757
|
+
${output.semanticNotice}${reasonLine ? `
|
|
8758
|
+
${reasonLine}` : ""}${suggestionLine ? `
|
|
8759
|
+
${suggestionLine}` : ""}`;
|
|
8684
8760
|
}
|
|
8685
8761
|
return result;
|
|
8686
8762
|
}
|
|
@@ -8947,7 +9023,9 @@ var GrepTool = {
|
|
|
8947
9023
|
);
|
|
8948
9024
|
const appendNotice = (base) => result.semanticNotice ? `${base}
|
|
8949
9025
|
|
|
8950
|
-
${result.semanticNotice}
|
|
9026
|
+
${result.semanticNotice}${result.semanticReason ? `
|
|
9027
|
+
Reason: ${result.semanticReason}` : ""}${result.semanticSuggestion ? `
|
|
9028
|
+
${result.semanticSuggestion}` : ""}` : base;
|
|
8951
9029
|
if (result.mode === "content") {
|
|
8952
9030
|
const base = result.content && result.content.length > 0 ? truncateToCharBudget(result.content) : "No matches found\nSuggestion: Read the target directory path to confirm one-level structure and search scope, then broaden matching conditions (case/regex/keyword variants, semantic=true), and if needed switch to content mode or expand the file set before searching again.";
|
|
8953
9031
|
const withPagination = pagination ? `${base}
|
|
@@ -9054,6 +9132,8 @@ ${result.filenames.join("\n")}`;
|
|
|
9054
9132
|
sandbox: sandboxPlan.settings.enabled ? sandboxPlan.bunShellSandboxOptions : void 0
|
|
9055
9133
|
});
|
|
9056
9134
|
let semanticNotice;
|
|
9135
|
+
let semanticReason;
|
|
9136
|
+
let semanticSuggestion;
|
|
9057
9137
|
let semanticHits = [];
|
|
9058
9138
|
const scopedRoot = resolve7(absolutePath);
|
|
9059
9139
|
if ((lines.length === 0 || symbol_type) && semantic) {
|
|
@@ -9172,11 +9252,17 @@ ${result.filenames.join("\n")}`;
|
|
|
9172
9252
|
);
|
|
9173
9253
|
}
|
|
9174
9254
|
semanticNotice = `Semantic search: added ${semanticHits.length} result${semanticHits.length === 1 ? "" : "s"}. Next: use LspTool for details.`;
|
|
9255
|
+
semanticReason = "SYMBOLS_ADDED";
|
|
9256
|
+
semanticSuggestion = buildSemanticSuggestion("SYMBOLS_ADDED");
|
|
9175
9257
|
} else {
|
|
9176
9258
|
semanticNotice = "Semantic search: no symbols found.";
|
|
9259
|
+
semanticReason = "NO_SYMBOL_MATCH";
|
|
9260
|
+
semanticSuggestion = buildSemanticSuggestion("NO_SYMBOL_MATCH");
|
|
9177
9261
|
}
|
|
9178
9262
|
} catch (e) {
|
|
9179
9263
|
semanticNotice = "Semantic search: LSP unavailable.";
|
|
9264
|
+
semanticReason = classifySemanticFallbackError(e);
|
|
9265
|
+
semanticSuggestion = buildSemanticSuggestion(semanticReason);
|
|
9180
9266
|
console.error("[GrepTool] Semantic search error:", e);
|
|
9181
9267
|
}
|
|
9182
9268
|
}
|
|
@@ -9200,7 +9286,9 @@ ${result.filenames.join("\n")}`;
|
|
|
9200
9286
|
...appliedLimit !== void 0 ? { appliedLimit } : {},
|
|
9201
9287
|
...appliedOffset > 0 ? { appliedOffset } : {},
|
|
9202
9288
|
durationMs: Date.now() - start,
|
|
9203
|
-
...semanticNotice ? { semanticNotice } : {}
|
|
9289
|
+
...semanticNotice ? { semanticNotice } : {},
|
|
9290
|
+
...semanticReason ? { semanticReason } : {},
|
|
9291
|
+
...semanticSuggestion ? { semanticSuggestion } : {}
|
|
9204
9292
|
};
|
|
9205
9293
|
yield {
|
|
9206
9294
|
type: "result",
|
|
@@ -9242,7 +9330,9 @@ ${result.filenames.join("\n")}`;
|
|
|
9242
9330
|
...appliedLimit !== void 0 ? { appliedLimit } : {},
|
|
9243
9331
|
...appliedOffset > 0 ? { appliedOffset } : {},
|
|
9244
9332
|
durationMs: Date.now() - start,
|
|
9245
|
-
...semanticNotice ? { semanticNotice } : {}
|
|
9333
|
+
...semanticNotice ? { semanticNotice } : {},
|
|
9334
|
+
...semanticReason ? { semanticReason } : {},
|
|
9335
|
+
...semanticSuggestion ? { semanticSuggestion } : {}
|
|
9246
9336
|
};
|
|
9247
9337
|
yield {
|
|
9248
9338
|
type: "result",
|
|
@@ -9275,7 +9365,9 @@ ${result.filenames.join("\n")}`;
|
|
|
9275
9365
|
...appliedLimit !== void 0 ? { appliedLimit } : {},
|
|
9276
9366
|
...appliedOffset > 0 ? { appliedOffset } : {},
|
|
9277
9367
|
durationMs: Date.now() - start,
|
|
9278
|
-
...semanticNotice ? { semanticNotice } : {}
|
|
9368
|
+
...semanticNotice ? { semanticNotice } : {},
|
|
9369
|
+
...semanticReason ? { semanticReason } : {},
|
|
9370
|
+
...semanticSuggestion ? { semanticSuggestion } : {}
|
|
9279
9371
|
};
|
|
9280
9372
|
yield {
|
|
9281
9373
|
type: "result",
|
|
@@ -12473,7 +12565,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
12473
12565
|
}
|
|
12474
12566
|
saveGlobalConfig(config2);
|
|
12475
12567
|
try {
|
|
12476
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
12568
|
+
const { resetAnthropicClient } = await import("./llm-OTA3UYTD.js");
|
|
12477
12569
|
resetAnthropicClient();
|
|
12478
12570
|
} catch {
|
|
12479
12571
|
}
|
|
@@ -16897,7 +16989,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
16897
16989
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
16898
16990
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
16899
16991
|
if (dirs.length === 0) return [];
|
|
16900
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
16992
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-3CCOPRUZ.js");
|
|
16901
16993
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
16902
16994
|
return errors;
|
|
16903
16995
|
}
|
|
@@ -17572,7 +17664,7 @@ async function call(onDone, context) {
|
|
|
17572
17664
|
ModelConfig,
|
|
17573
17665
|
{
|
|
17574
17666
|
onClose: () => {
|
|
17575
|
-
import("./model-
|
|
17667
|
+
import("./model-XIQ6J7WO.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
17576
17668
|
reloadModelManager2();
|
|
17577
17669
|
triggerModelConfigChange();
|
|
17578
17670
|
onDone();
|
|
@@ -27615,7 +27707,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
27615
27707
|
if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
|
|
27616
27708
|
try {
|
|
27617
27709
|
const { isAbsolute: isAbsolute11, resolve: resolve16 } = await import("path");
|
|
27618
|
-
const { getSessionRoot: getSessionRoot2 } = await import("./state-
|
|
27710
|
+
const { getSessionRoot: getSessionRoot2 } = await import("./state-QUWQKTQZ.js");
|
|
27619
27711
|
const lines = output.split("\n");
|
|
27620
27712
|
const uniqueFiles = /* @__PURE__ */ new Set();
|
|
27621
27713
|
const lspSuggestions = [];
|
|
@@ -27659,6 +27751,14 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
27659
27751
|
}
|
|
27660
27752
|
}
|
|
27661
27753
|
} catch (e) {
|
|
27754
|
+
emitTelemetryEvent(
|
|
27755
|
+
toLspToolFallbackEvent({
|
|
27756
|
+
tool: "TaskOutput",
|
|
27757
|
+
operation: "diagnostics",
|
|
27758
|
+
filePath: file,
|
|
27759
|
+
error: e
|
|
27760
|
+
})
|
|
27761
|
+
);
|
|
27662
27762
|
console.error("LSP Analysis Error:", e);
|
|
27663
27763
|
}
|
|
27664
27764
|
}
|
|
@@ -27668,6 +27768,13 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
27668
27768
|
parts.push("LSP Analysis: no diagnostics");
|
|
27669
27769
|
}
|
|
27670
27770
|
} catch (e) {
|
|
27771
|
+
emitTelemetryEvent(
|
|
27772
|
+
toLspToolFallbackEvent({
|
|
27773
|
+
tool: "TaskOutput",
|
|
27774
|
+
operation: "diagnostics",
|
|
27775
|
+
error: e
|
|
27776
|
+
})
|
|
27777
|
+
);
|
|
27671
27778
|
console.error("LSP Analysis Setup Error:", e);
|
|
27672
27779
|
}
|
|
27673
27780
|
}
|
|
@@ -27985,7 +28092,7 @@ var DeleteTool = {
|
|
|
27985
28092
|
}
|
|
27986
28093
|
if (!force) {
|
|
27987
28094
|
try {
|
|
27988
|
-
const { LspFacade: LspFacade2 } = await import("./lsp-
|
|
28095
|
+
const { LspFacade: LspFacade2 } = await import("./lsp-EIMYRWRU.js");
|
|
27989
28096
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
27990
28097
|
if (referenceDetail) {
|
|
27991
28098
|
failedItems.push(
|
|
@@ -38387,7 +38494,7 @@ function useStatusLine() {
|
|
|
38387
38494
|
// src/ui/components/PromptInput.tsx
|
|
38388
38495
|
async function interpretHashCommand(input) {
|
|
38389
38496
|
try {
|
|
38390
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
38497
|
+
const { queryQuick: queryQuick2 } = await import("./llm-OTA3UYTD.js");
|
|
38391
38498
|
const systemPrompt = [
|
|
38392
38499
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
38393
38500
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -38700,7 +38807,7 @@ function PromptInput({
|
|
|
38700
38807
|
if (messages2.length) {
|
|
38701
38808
|
if (mode === "bash") {
|
|
38702
38809
|
onQuery(messages2, newAbortController).then(async () => {
|
|
38703
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
38810
|
+
const { getCwd: getCwd2 } = await import("./state-QUWQKTQZ.js");
|
|
38704
38811
|
setCurrentPwd(getCwd2());
|
|
38705
38812
|
});
|
|
38706
38813
|
} else {
|
|
@@ -40330,7 +40437,7 @@ import { homedir as homedir8 } from "os";
|
|
|
40330
40437
|
// src/commands/agents/generation.ts
|
|
40331
40438
|
import { randomUUID as randomUUID9 } from "crypto";
|
|
40332
40439
|
async function generateAgentWithClaude(prompt) {
|
|
40333
|
-
const { queryModel } = await import("./llm-
|
|
40440
|
+
const { queryModel } = await import("./llm-OTA3UYTD.js");
|
|
40334
40441
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
40335
40442
|
|
|
40336
40443
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -43818,7 +43925,7 @@ ${footerParts.join(" ")}`;
|
|
|
43818
43925
|
|
|
43819
43926
|
// src/constants/prompts.ts
|
|
43820
43927
|
function getCLISyspromptPrefix() {
|
|
43821
|
-
return `You are ${PRODUCT_NAME}, PYB-
|
|
43928
|
+
return `You are ${PRODUCT_NAME}, PYB-XC's Agent AI CLI for terminal & coding.`;
|
|
43822
43929
|
}
|
|
43823
43930
|
async function getSystemPrompt(options) {
|
|
43824
43931
|
const disableSlashCommands = options?.disableSlashCommands === true;
|
|
@@ -43841,7 +43948,7 @@ There are additional slash commands and flags available to the user. If the user
|
|
|
43841
43948
|
To give feedback, users should ${MACRO.ISSUES_EXPLAINER}.
|
|
43842
43949
|
|
|
43843
43950
|
# Task Management System
|
|
43844
|
-
Use these tools (TaskCreate, TaskUpdate, TaskList, TaskGet) VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
|
|
43951
|
+
Use these tools (TaskCreate, TaskUpdate, TaskList, TaskGet) VERY frequently to ensure that you are tracking your tasks or todos and giving the user visibility into your progress.
|
|
43845
43952
|
These tools are powerful for planning tasks and for breaking down larger complex tasks\uFF08When a task requires 2 or more distinct steps or actions\uFF09 into smaller steps. For multi-step work, start by creating tasks with TaskCreate, then use TaskUpdate as you progress and dependencies. Use TaskList to review readiness and blockers, and TaskGet for details. TaskList only returns id/subject/status/blockedBy.
|
|
43846
43953
|
When dependencies are ready, set metadata.planFinalized="true" with TaskUpdate to trigger global validation.
|
|
43847
43954
|
|
|
@@ -43899,8 +44006,6 @@ user: How many golf balls fit inside a jetta?
|
|
|
43899
44006
|
assistant: 150000
|
|
43900
44007
|
</example>
|
|
43901
44008
|
|
|
43902
|
-
|
|
43903
|
-
|
|
43904
44009
|
<example>
|
|
43905
44010
|
user: change the greeting in hello.ts
|
|
43906
44011
|
assistant: [uses Read tool to read hello.ts]
|