pybao-cli 1.5.46 → 1.5.47

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.
Files changed (154) hide show
  1. package/dist/REPL-45IVQWUI.js +53 -0
  2. package/dist/{acp-JLRZ5E3I.js → acp-KELESOXO.js} +30 -30
  3. package/dist/{agentsValidate-3OYN7SNK.js → agentsValidate-J7PHU22S.js} +7 -7
  4. package/dist/{ask-BHVMWER5.js → ask-ZICPHRGR.js} +30 -30
  5. package/dist/{autoUpdater-27NDSNED.js → autoUpdater-6KGZQTW5.js} +3 -3
  6. package/dist/{chunk-C2NMYFPN.js → chunk-2AU4PKSQ.js} +3 -3
  7. package/dist/{chunk-EUYHO7FU.js → chunk-4VVWAA6O.js} +1 -1
  8. package/dist/{chunk-PZBMEC3T.js → chunk-57BVHCH3.js} +2 -2
  9. package/dist/{chunk-D7QIKN3F.js → chunk-5OBGGU2O.js} +3 -3
  10. package/dist/{chunk-DS6COGYF.js → chunk-5OJHTSFR.js} +3 -1
  11. package/dist/chunk-5OJHTSFR.js.map +7 -0
  12. package/dist/{chunk-U5OB3CDM.js → chunk-6JVCLWCU.js} +3 -3
  13. package/dist/{chunk-5BASSS5Y.js → chunk-7UF7PBUR.js} +1 -1
  14. package/dist/{chunk-J2NQVO6G.js → chunk-7WPBMV6W.js} +1 -1
  15. package/dist/{chunk-2GQH5CH7.js → chunk-A5O2MBVW.js} +2 -2
  16. package/dist/{chunk-J2UQWSDT.js → chunk-CN443EB5.js} +1 -1
  17. package/dist/{chunk-ASMQWQTY.js → chunk-GHNPBDR6.js} +1 -1
  18. package/dist/{chunk-R6A5OQPH.js → chunk-IAIXAB4N.js} +3 -3
  19. package/dist/{chunk-DIOS332Y.js → chunk-ITD4GQ6O.js} +1 -1
  20. package/dist/{chunk-6WVP4NLC.js → chunk-J3TM7T3W.js} +205 -43
  21. package/dist/chunk-J3TM7T3W.js.map +7 -0
  22. package/dist/{chunk-Q3ND7MXY.js → chunk-K3AQYDRJ.js} +3 -3
  23. package/dist/{chunk-HHGV6WKI.js → chunk-MWL7Q5HG.js} +1 -1
  24. package/dist/{chunk-4K3MGWZ7.js → chunk-N2W52I56.js} +1 -1
  25. package/dist/{chunk-QIWBL65U.js → chunk-OPEQBEHZ.js} +4 -4
  26. package/dist/{chunk-5VQQJFA3.js → chunk-OTMVCWZ2.js} +3 -3
  27. package/dist/{chunk-LA6C74RB.js → chunk-Q2FTNJHH.js} +3 -3
  28. package/dist/{chunk-KPDYWSAZ.js → chunk-Q4WANADY.js} +2 -2
  29. package/dist/{chunk-VP62JPGI.js → chunk-RRLBQ3XD.js} +2 -2
  30. package/dist/{chunk-LSDHJWLA.js → chunk-SD3VNTAR.js} +4 -4
  31. package/dist/{chunk-BSCFLD7U.js → chunk-T6S6TXIY.js} +3 -3
  32. package/dist/{chunk-KUKOMPLF.js → chunk-TLMCXAET.js} +1 -1
  33. package/dist/{chunk-WEXG5Q5B.js → chunk-US6EALFL.js} +2 -2
  34. package/dist/{chunk-IOSFLDRK.js → chunk-UUTMXSER.js} +1 -1
  35. package/dist/{chunk-KDPYN5HT.js → chunk-V6W537PO.js} +1 -1
  36. package/dist/{chunk-AVQJBO3X.js → chunk-VDLMXEHU.js} +638 -129
  37. package/dist/chunk-VDLMXEHU.js.map +7 -0
  38. package/dist/{chunk-ATYJA674.js → chunk-XIAHHC4E.js} +2 -2
  39. package/dist/{chunk-KYMBYUI7.js → chunk-ZLNJ6XFU.js} +4 -4
  40. package/dist/{cli-TCRA6ARC.js → cli-P7N4INGY.js} +90 -90
  41. package/dist/commands-BTSWDZVO.js +57 -0
  42. package/dist/{config-5KMP3FRP.js → config-XVX25KIN.js} +4 -4
  43. package/dist/{context-VPRXOV4W.js → context-OBZ5CNGA.js} +6 -6
  44. package/dist/{conversationPersistence-66W5Z6AO.js → conversationPersistence-CB3RZIY7.js} +3 -3
  45. package/dist/{conversationTracker-FTAS67VE.js → conversationTracker-HDEFZTDC.js} +4 -4
  46. package/dist/{customCommands-YQ2A3R6L.js → customCommands-ELEQAM5Y.js} +4 -4
  47. package/dist/{env-BDTFUU2H.js → env-FMH4AH2H.js} +2 -2
  48. package/dist/{file-N4UK3JJK.js → file-6TB2IASX.js} +4 -4
  49. package/dist/index.js +3 -3
  50. package/dist/{llm-QTECZGRE.js → llm-QPAHJ643.js} +31 -31
  51. package/dist/{llmLazy-5OLIOZK2.js → llmLazy-RYJWZZ7Y.js} +1 -1
  52. package/dist/{loader-ITDKGIKQ.js → loader-EPUS22XU.js} +4 -4
  53. package/dist/{lsp-DNNS2MO4.js → lsp-WIEWEHYU.js} +7 -6
  54. package/dist/{lspAnchor-HU2YPGDN.js → lspAnchor-YI3SOGER.js} +8 -8
  55. package/dist/{mcp-5R4HG2LZ.js → mcp-Q6UOFMLT.js} +7 -7
  56. package/dist/{mentionProcessor-5DPHU4OP.js → mentionProcessor-3IV63BZT.js} +5 -5
  57. package/dist/{messages-ZVVMQ3Q6.js → messages-XU4LSUWY.js} +1 -1
  58. package/dist/{model-Q3NJN5MQ.js → model-JFUZ777G.js} +5 -5
  59. package/dist/{openai-HSEUQEKK.js → openai-PQN2VFKQ.js} +5 -5
  60. package/dist/{outputStyles-YGD3BAAK.js → outputStyles-PJNN6AH4.js} +4 -4
  61. package/dist/{pluginRuntime-ODOQDPAK.js → pluginRuntime-TLFHDTDH.js} +6 -6
  62. package/dist/{pluginValidation-P52JWV6C.js → pluginValidation-TZUKRIFW.js} +6 -6
  63. package/dist/prompts-Y4JPHIGG.js +59 -0
  64. package/dist/{pybAgentSessionLoad-B735OKRY.js → pybAgentSessionLoad-EFAWFGRE.js} +4 -4
  65. package/dist/{pybAgentSessionResume-YKCKQOJO.js → pybAgentSessionResume-YQSKGG3W.js} +4 -4
  66. package/dist/{pybAgentStreamJsonSession-7KQJH3YL.js → pybAgentStreamJsonSession-BYHCDZXV.js} +1 -1
  67. package/dist/{pybHooks-27O2F24J.js → pybHooks-ZH3DUHNO.js} +4 -4
  68. package/dist/query-SA5YQRDP.js +57 -0
  69. package/dist/{registry-CJLUFMEQ.js → registry-A2AB7N66.js} +5 -5
  70. package/dist/{ripgrep-TD77KYER.js → ripgrep-CYA5VVPU.js} +3 -3
  71. package/dist/{skillMarketplace-R475NBXV.js → skillMarketplace-6CDVELA7.js} +3 -3
  72. package/dist/{state-KQVHDJY3.js → state-MDP57623.js} +2 -2
  73. package/dist/{theme-GDAAXHZV.js → theme-MYY4MVK7.js} +5 -5
  74. package/dist/{toolPermissionSettings-ZTEGC7CB.js → toolPermissionSettings-ALND7SVQ.js} +6 -6
  75. package/dist/tools-6M5WFR3S.js +57 -0
  76. package/dist/{userInput-7HR7YK3T.js → userInput-FBVWRPOG.js} +32 -32
  77. package/package.json +3 -1
  78. package/dist/REPL-OP6NG7VB.js +0 -53
  79. package/dist/chunk-6WVP4NLC.js.map +0 -7
  80. package/dist/chunk-AVQJBO3X.js.map +0 -7
  81. package/dist/chunk-DS6COGYF.js.map +0 -7
  82. package/dist/commands-7FEOAWKL.js +0 -57
  83. package/dist/prompts-VWZICAZT.js +0 -59
  84. package/dist/query-YW4M2CLS.js +0 -57
  85. package/dist/tools-4WVDBE5W.js +0 -57
  86. /package/dist/{REPL-OP6NG7VB.js.map → REPL-45IVQWUI.js.map} +0 -0
  87. /package/dist/{acp-JLRZ5E3I.js.map → acp-KELESOXO.js.map} +0 -0
  88. /package/dist/{agentsValidate-3OYN7SNK.js.map → agentsValidate-J7PHU22S.js.map} +0 -0
  89. /package/dist/{ask-BHVMWER5.js.map → ask-ZICPHRGR.js.map} +0 -0
  90. /package/dist/{autoUpdater-27NDSNED.js.map → autoUpdater-6KGZQTW5.js.map} +0 -0
  91. /package/dist/{chunk-C2NMYFPN.js.map → chunk-2AU4PKSQ.js.map} +0 -0
  92. /package/dist/{chunk-EUYHO7FU.js.map → chunk-4VVWAA6O.js.map} +0 -0
  93. /package/dist/{chunk-PZBMEC3T.js.map → chunk-57BVHCH3.js.map} +0 -0
  94. /package/dist/{chunk-D7QIKN3F.js.map → chunk-5OBGGU2O.js.map} +0 -0
  95. /package/dist/{chunk-U5OB3CDM.js.map → chunk-6JVCLWCU.js.map} +0 -0
  96. /package/dist/{chunk-5BASSS5Y.js.map → chunk-7UF7PBUR.js.map} +0 -0
  97. /package/dist/{chunk-J2NQVO6G.js.map → chunk-7WPBMV6W.js.map} +0 -0
  98. /package/dist/{chunk-2GQH5CH7.js.map → chunk-A5O2MBVW.js.map} +0 -0
  99. /package/dist/{chunk-J2UQWSDT.js.map → chunk-CN443EB5.js.map} +0 -0
  100. /package/dist/{chunk-ASMQWQTY.js.map → chunk-GHNPBDR6.js.map} +0 -0
  101. /package/dist/{chunk-R6A5OQPH.js.map → chunk-IAIXAB4N.js.map} +0 -0
  102. /package/dist/{chunk-DIOS332Y.js.map → chunk-ITD4GQ6O.js.map} +0 -0
  103. /package/dist/{chunk-Q3ND7MXY.js.map → chunk-K3AQYDRJ.js.map} +0 -0
  104. /package/dist/{chunk-HHGV6WKI.js.map → chunk-MWL7Q5HG.js.map} +0 -0
  105. /package/dist/{chunk-4K3MGWZ7.js.map → chunk-N2W52I56.js.map} +0 -0
  106. /package/dist/{chunk-QIWBL65U.js.map → chunk-OPEQBEHZ.js.map} +0 -0
  107. /package/dist/{chunk-5VQQJFA3.js.map → chunk-OTMVCWZ2.js.map} +0 -0
  108. /package/dist/{chunk-LA6C74RB.js.map → chunk-Q2FTNJHH.js.map} +0 -0
  109. /package/dist/{chunk-KPDYWSAZ.js.map → chunk-Q4WANADY.js.map} +0 -0
  110. /package/dist/{chunk-VP62JPGI.js.map → chunk-RRLBQ3XD.js.map} +0 -0
  111. /package/dist/{chunk-LSDHJWLA.js.map → chunk-SD3VNTAR.js.map} +0 -0
  112. /package/dist/{chunk-BSCFLD7U.js.map → chunk-T6S6TXIY.js.map} +0 -0
  113. /package/dist/{chunk-KUKOMPLF.js.map → chunk-TLMCXAET.js.map} +0 -0
  114. /package/dist/{chunk-WEXG5Q5B.js.map → chunk-US6EALFL.js.map} +0 -0
  115. /package/dist/{chunk-IOSFLDRK.js.map → chunk-UUTMXSER.js.map} +0 -0
  116. /package/dist/{chunk-KDPYN5HT.js.map → chunk-V6W537PO.js.map} +0 -0
  117. /package/dist/{chunk-ATYJA674.js.map → chunk-XIAHHC4E.js.map} +0 -0
  118. /package/dist/{chunk-KYMBYUI7.js.map → chunk-ZLNJ6XFU.js.map} +0 -0
  119. /package/dist/{cli-TCRA6ARC.js.map → cli-P7N4INGY.js.map} +0 -0
  120. /package/dist/{commands-7FEOAWKL.js.map → commands-BTSWDZVO.js.map} +0 -0
  121. /package/dist/{config-5KMP3FRP.js.map → config-XVX25KIN.js.map} +0 -0
  122. /package/dist/{context-VPRXOV4W.js.map → context-OBZ5CNGA.js.map} +0 -0
  123. /package/dist/{conversationPersistence-66W5Z6AO.js.map → conversationPersistence-CB3RZIY7.js.map} +0 -0
  124. /package/dist/{conversationTracker-FTAS67VE.js.map → conversationTracker-HDEFZTDC.js.map} +0 -0
  125. /package/dist/{customCommands-YQ2A3R6L.js.map → customCommands-ELEQAM5Y.js.map} +0 -0
  126. /package/dist/{env-BDTFUU2H.js.map → env-FMH4AH2H.js.map} +0 -0
  127. /package/dist/{file-N4UK3JJK.js.map → file-6TB2IASX.js.map} +0 -0
  128. /package/dist/{llm-QTECZGRE.js.map → llm-QPAHJ643.js.map} +0 -0
  129. /package/dist/{llmLazy-5OLIOZK2.js.map → llmLazy-RYJWZZ7Y.js.map} +0 -0
  130. /package/dist/{loader-ITDKGIKQ.js.map → loader-EPUS22XU.js.map} +0 -0
  131. /package/dist/{lsp-DNNS2MO4.js.map → lsp-WIEWEHYU.js.map} +0 -0
  132. /package/dist/{lspAnchor-HU2YPGDN.js.map → lspAnchor-YI3SOGER.js.map} +0 -0
  133. /package/dist/{mcp-5R4HG2LZ.js.map → mcp-Q6UOFMLT.js.map} +0 -0
  134. /package/dist/{mentionProcessor-5DPHU4OP.js.map → mentionProcessor-3IV63BZT.js.map} +0 -0
  135. /package/dist/{messages-ZVVMQ3Q6.js.map → messages-XU4LSUWY.js.map} +0 -0
  136. /package/dist/{model-Q3NJN5MQ.js.map → model-JFUZ777G.js.map} +0 -0
  137. /package/dist/{openai-HSEUQEKK.js.map → openai-PQN2VFKQ.js.map} +0 -0
  138. /package/dist/{outputStyles-YGD3BAAK.js.map → outputStyles-PJNN6AH4.js.map} +0 -0
  139. /package/dist/{pluginRuntime-ODOQDPAK.js.map → pluginRuntime-TLFHDTDH.js.map} +0 -0
  140. /package/dist/{pluginValidation-P52JWV6C.js.map → pluginValidation-TZUKRIFW.js.map} +0 -0
  141. /package/dist/{prompts-VWZICAZT.js.map → prompts-Y4JPHIGG.js.map} +0 -0
  142. /package/dist/{pybAgentSessionLoad-B735OKRY.js.map → pybAgentSessionLoad-EFAWFGRE.js.map} +0 -0
  143. /package/dist/{pybAgentSessionResume-YKCKQOJO.js.map → pybAgentSessionResume-YQSKGG3W.js.map} +0 -0
  144. /package/dist/{pybAgentStreamJsonSession-7KQJH3YL.js.map → pybAgentStreamJsonSession-BYHCDZXV.js.map} +0 -0
  145. /package/dist/{pybHooks-27O2F24J.js.map → pybHooks-ZH3DUHNO.js.map} +0 -0
  146. /package/dist/{query-YW4M2CLS.js.map → query-SA5YQRDP.js.map} +0 -0
  147. /package/dist/{registry-CJLUFMEQ.js.map → registry-A2AB7N66.js.map} +0 -0
  148. /package/dist/{ripgrep-TD77KYER.js.map → ripgrep-CYA5VVPU.js.map} +0 -0
  149. /package/dist/{skillMarketplace-R475NBXV.js.map → skillMarketplace-6CDVELA7.js.map} +0 -0
  150. /package/dist/{state-KQVHDJY3.js.map → state-MDP57623.js.map} +0 -0
  151. /package/dist/{theme-GDAAXHZV.js.map → theme-MYY4MVK7.js.map} +0 -0
  152. /package/dist/{toolPermissionSettings-ZTEGC7CB.js.map → toolPermissionSettings-ALND7SVQ.js.map} +0 -0
  153. /package/dist/{tools-4WVDBE5W.js.map → tools-6M5WFR3S.js.map} +0 -0
  154. /package/dist/{userInput-7HR7YK3T.js.map → userInput-FBVWRPOG.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-KUKOMPLF.js";
5
+ } from "./chunk-TLMCXAET.js";
6
6
  import {
7
7
  appendSessionCustomTitleRecord,
8
8
  appendSessionJsonlFromMessage,
9
9
  appendSessionTagRecord,
10
10
  listPybAgentSessions
11
- } from "./chunk-BSCFLD7U.js";
11
+ } from "./chunk-T6S6TXIY.js";
12
12
  import {
13
13
  formatValidationResult,
14
14
  validatePluginOrMarketplacePath
15
- } from "./chunk-R6A5OQPH.js";
15
+ } from "./chunk-IAIXAB4N.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-DIOS332Y.js";
23
+ } from "./chunk-ITD4GQ6O.js";
24
24
  import {
25
25
  FileSystemConversationPersistence
26
- } from "./chunk-KDPYN5HT.js";
26
+ } from "./chunk-V6W537PO.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-U5OB3CDM.js";
41
+ } from "./chunk-6JVCLWCU.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-PZBMEC3T.js";
50
+ } from "./chunk-57BVHCH3.js";
51
51
  import {
52
52
  fetchCustomModels,
53
53
  getModelFeatures
54
- } from "./chunk-KPDYWSAZ.js";
54
+ } from "./chunk-Q4WANADY.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-KYMBYUI7.js";
63
+ } from "./chunk-ZLNJ6XFU.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-LSDHJWLA.js";
78
+ } from "./chunk-SD3VNTAR.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-ASMQWQTY.js";
91
+ } from "./chunk-GHNPBDR6.js";
92
92
  import {
93
93
  loadToolPermissionContextFromDisk,
94
94
  persistToolPermissionUpdateToDisk
95
- } from "./chunk-LA6C74RB.js";
95
+ } from "./chunk-Q2FTNJHH.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-VP62JPGI.js";
106
+ } from "./chunk-RRLBQ3XD.js";
107
107
  import {
108
108
  clearAgentCache,
109
109
  getActiveAgents,
110
110
  getAgentByType,
111
111
  getAllAgents,
112
112
  getAvailableAgentTypes
113
- } from "./chunk-2GQH5CH7.js";
113
+ } from "./chunk-A5O2MBVW.js";
114
114
  import {
115
115
  API_ERROR_MESSAGE_PREFIX,
116
116
  CANCEL_MESSAGE,
@@ -145,7 +145,7 @@ import {
145
145
  reorderMessages,
146
146
  resetAutoCompactTelemetry,
147
147
  stripSystemMessages
148
- } from "./chunk-IOSFLDRK.js";
148
+ } from "./chunk-UUTMXSER.js";
149
149
  import {
150
150
  getRequestStatus,
151
151
  setRequestStatus,
@@ -177,17 +177,13 @@ import {
177
177
  normalizeFilePath,
178
178
  readTextContent,
179
179
  writeTextContent
180
- } from "./chunk-WEXG5Q5B.js";
180
+ } from "./chunk-US6EALFL.js";
181
181
  import {
182
182
  parseBlockEdits
183
183
  } from "./chunk-QWIBSCDN.js";
184
184
  import {
185
185
  toLspToolFallbackEvent
186
186
  } from "./chunk-2RXKUCFS.js";
187
- import {
188
- emitTelemetryEvent,
189
- registerTelemetryListener
190
- } from "./chunk-TFHFYID3.js";
191
187
  import {
192
188
  LspAPI,
193
189
  LspFacade,
@@ -195,18 +191,22 @@ import {
195
191
  formatDiagnosticsPretty,
196
192
  initParser,
197
193
  loadLanguage
198
- } from "./chunk-AVQJBO3X.js";
194
+ } from "./chunk-VDLMXEHU.js";
195
+ import {
196
+ emitTelemetryEvent,
197
+ registerTelemetryListener
198
+ } from "./chunk-TFHFYID3.js";
199
199
  import {
200
200
  getSettingsFileCandidates,
201
201
  loadSettingsWithLegacyFallback,
202
202
  readSettingsFile
203
- } from "./chunk-J2NQVO6G.js";
203
+ } from "./chunk-7WPBMV6W.js";
204
204
  import {
205
205
  getCustomCommandDirectories,
206
206
  hasCustomCommands,
207
207
  loadCustomCommands,
208
208
  reloadCustomCommands
209
- } from "./chunk-ATYJA674.js";
209
+ } from "./chunk-XIAHHC4E.js";
210
210
  import {
211
211
  getSessionPlugins
212
212
  } from "./chunk-BJSWTHRM.js";
@@ -215,7 +215,7 @@ import {
215
215
  buildModelProfileKey,
216
216
  getModelManager,
217
217
  isDefaultSlowAndCapableModel
218
- } from "./chunk-Q3ND7MXY.js";
218
+ } from "./chunk-K3AQYDRJ.js";
219
219
  import {
220
220
  getCodeStyle,
221
221
  getContext,
@@ -223,16 +223,16 @@ import {
223
223
  getIsGit,
224
224
  getProjectDocs,
225
225
  getProjectStructureStatisticsBlock
226
- } from "./chunk-QIWBL65U.js";
226
+ } from "./chunk-OPEQBEHZ.js";
227
227
  import {
228
228
  getRipgrepPath,
229
229
  getRipgrepPolicyMode,
230
230
  resolveRipgrepPolicy,
231
231
  ripGrep
232
- } from "./chunk-5BASSS5Y.js";
232
+ } from "./chunk-7UF7PBUR.js";
233
233
  import {
234
234
  getTheme
235
- } from "./chunk-4K3MGWZ7.js";
235
+ } from "./chunk-N2W52I56.js";
236
236
  import {
237
237
  DEFAULT_GLOBAL_CONFIG,
238
238
  enableConfigs,
@@ -245,7 +245,7 @@ import {
245
245
  saveGlobalConfig,
246
246
  setAllPointersToModel,
247
247
  setModelPointer
248
- } from "./chunk-C2NMYFPN.js";
248
+ } from "./chunk-2AU4PKSQ.js";
249
249
  import {
250
250
  AbortError
251
251
  } from "./chunk-RQVLBMP7.js";
@@ -254,7 +254,7 @@ import {
254
254
  getCurrentRequest,
255
255
  logUserFriendly,
256
256
  markPhase
257
- } from "./chunk-HHGV6WKI.js";
257
+ } from "./chunk-MWL7Q5HG.js";
258
258
  import {
259
259
  ASCII_LOGO,
260
260
  BunShell,
@@ -298,10 +298,10 @@ import {
298
298
  setCwd,
299
299
  shouldApplyToolOutputTruncation,
300
300
  truncateToolOutput
301
- } from "./chunk-J2UQWSDT.js";
301
+ } from "./chunk-CN443EB5.js";
302
302
  import {
303
303
  MACRO
304
- } from "./chunk-DS6COGYF.js";
304
+ } from "./chunk-5OJHTSFR.js";
305
305
  import {
306
306
  __export
307
307
  } from "./chunk-I3J4JYES.js";
@@ -482,7 +482,7 @@ var getCommandSubcommandPrefix = memoize(
482
482
  var getCommandPrefix = memoize(
483
483
  async (command4, abortSignal) => {
484
484
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
485
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-QTECZGRE.js");
485
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-QPAHJ643.js");
486
486
  const response = await queryQuick2({
487
487
  systemPrompt,
488
488
  userPrompt,
@@ -4284,7 +4284,7 @@ function formatParseError(error) {
4284
4284
  return error instanceof Error ? error.message : String(error);
4285
4285
  }
4286
4286
  async function defaultGateQuery(args) {
4287
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-QTECZGRE.js");
4287
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-QPAHJ643.js");
4288
4288
  const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
4289
4289
  const messages = [
4290
4290
  {
@@ -6581,6 +6581,139 @@ function getPatch({
6581
6581
  }));
6582
6582
  }
6583
6583
 
6584
+ // src/tools/utils/lspFallbackHandler.ts
6585
+ function inferQuality(source) {
6586
+ if (source === "lsp" || source === "hybrid") return "full";
6587
+ if (source === "tree-sitter") return "partial";
6588
+ return "minimal";
6589
+ }
6590
+ function inferConfidence(source) {
6591
+ if (source === "lsp" || source === "hybrid" || source === "tree-sitter") return "high";
6592
+ if (source === "token-scan") return "low";
6593
+ return "low";
6594
+ }
6595
+ function inferSourceFromFormatted(formatted) {
6596
+ const text = String(formatted ?? "").toLowerCase();
6597
+ if (text.includes("no lsp server available") || text.includes("unable to initialize lsp")) {
6598
+ return "none";
6599
+ }
6600
+ if (text.includes("token scan")) return "token-scan";
6601
+ if (text.includes("tree-sitter")) return "tree-sitter";
6602
+ return "lsp";
6603
+ }
6604
+ function inferReason(input) {
6605
+ if (input.fallbackReason) return input.fallbackReason;
6606
+ const text = String(input.formatted ?? "").toLowerCase();
6607
+ if (text.includes("no lsp server available") || text.includes("unable to initialize lsp")) {
6608
+ return "lsp-unavailable";
6609
+ }
6610
+ return "unknown";
6611
+ }
6612
+ function normalizeLspFallbackEvidence(input) {
6613
+ const source = input.source ?? inferSourceFromFormatted(input.formatted);
6614
+ const quality = input.quality ?? inferQuality(source);
6615
+ const confidence = input.confidence ?? inferConfidence(source);
6616
+ return {
6617
+ source,
6618
+ quality,
6619
+ confidence,
6620
+ reason: inferReason(input),
6621
+ suggestion: input.fallbackSuggestion
6622
+ };
6623
+ }
6624
+ function buildMessage(action, severity, evidence) {
6625
+ return `lspFallbackHandler action=${action} severity=${severity} source=${evidence.source} quality=${evidence.quality} confidence=${evidence.confidence} reason=${evidence.reason}`;
6626
+ }
6627
+ function decideLspFallbackAction(input) {
6628
+ const { risk, evidence, verifyMode = false, allowForce = false } = input;
6629
+ if (risk === "high") {
6630
+ if (evidence.source === "none") {
6631
+ return {
6632
+ action: "block",
6633
+ severity: "strong",
6634
+ message: buildMessage("block", "strong", evidence),
6635
+ evidence
6636
+ };
6637
+ }
6638
+ if (verifyMode && evidence.quality === "minimal") {
6639
+ return {
6640
+ action: "block",
6641
+ severity: "strong",
6642
+ message: buildMessage("block", "strong", evidence),
6643
+ evidence
6644
+ };
6645
+ }
6646
+ if (evidence.source === "token-scan" && evidence.quality === "minimal") {
6647
+ if (!allowForce) {
6648
+ return {
6649
+ action: "block",
6650
+ severity: "strong",
6651
+ message: buildMessage("block", "strong", evidence),
6652
+ evidence
6653
+ };
6654
+ }
6655
+ return {
6656
+ action: "warn",
6657
+ severity: "strong",
6658
+ message: buildMessage("warn", "strong", evidence),
6659
+ evidence
6660
+ };
6661
+ }
6662
+ if (evidence.source === "tree-sitter" && evidence.quality === "partial") {
6663
+ return {
6664
+ action: "warn",
6665
+ severity: "normal",
6666
+ message: buildMessage("warn", "normal", evidence),
6667
+ evidence
6668
+ };
6669
+ }
6670
+ return {
6671
+ action: "pass",
6672
+ severity: "note",
6673
+ message: buildMessage("pass", "note", evidence),
6674
+ evidence
6675
+ };
6676
+ }
6677
+ if (risk === "medium") {
6678
+ if (evidence.source === "none" || evidence.quality === "minimal") {
6679
+ return {
6680
+ action: "warn",
6681
+ severity: "strong",
6682
+ message: buildMessage("warn", "strong", evidence),
6683
+ evidence
6684
+ };
6685
+ }
6686
+ if (evidence.source === "tree-sitter" || evidence.source === "token-scan") {
6687
+ return {
6688
+ action: "warn",
6689
+ severity: "normal",
6690
+ message: buildMessage("warn", "normal", evidence),
6691
+ evidence
6692
+ };
6693
+ }
6694
+ return {
6695
+ action: "pass",
6696
+ severity: "note",
6697
+ message: buildMessage("pass", "note", evidence),
6698
+ evidence
6699
+ };
6700
+ }
6701
+ if (evidence.source === "none" || evidence.quality === "minimal") {
6702
+ return {
6703
+ action: "warn",
6704
+ severity: "note",
6705
+ message: buildMessage("warn", "note", evidence),
6706
+ evidence
6707
+ };
6708
+ }
6709
+ return {
6710
+ action: "pass",
6711
+ severity: "note",
6712
+ message: buildMessage("pass", "note", evidence),
6713
+ evidence
6714
+ };
6715
+ }
6716
+
6584
6717
  // src/tools/filesystem/FileEditTool/FileEditTool.tsx
6585
6718
  var inputSchema3 = z3.strictObject({
6586
6719
  file_path: z3.string().describe("The absolute path to the file to modify"),
@@ -6714,7 +6847,7 @@ var FileEditTool = {
6714
6847
  const originalFileContent = currentFileContent;
6715
6848
  let totalPatch = [];
6716
6849
  const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
6717
- const { findLspAnchor } = await import("./lspAnchor-HU2YPGDN.js");
6850
+ const { findLspAnchor } = await import("./lspAnchor-YI3SOGER.js");
6718
6851
  for (const op of editOperations) {
6719
6852
  const normalizedSearch = normalizeLineEndings(op.search);
6720
6853
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -6764,7 +6897,24 @@ ${op.search}`);
6764
6897
  timeoutMs: 5e3,
6765
6898
  rootPath: getSessionRoot()
6766
6899
  });
6900
+ const fallbackDecision = decideLspFallbackAction({
6901
+ risk: "high",
6902
+ verifyMode: true,
6903
+ evidence: normalizeLspFallbackEvidence(lspResult)
6904
+ });
6905
+ if (fallbackDecision.action === "block") {
6906
+ writeTextContent(fullFilePath, originalFileContent, enc, endings);
6907
+ if (fallbackDecision.evidence.source === "none") {
6908
+ throw new Error(
6909
+ `Verification Unavailable: Unable to initialize LSP for ${file_path}. source=${fallbackDecision.evidence.source} quality=${fallbackDecision.evidence.quality}. Retry with verify=false or rerun when LSP is available.`
6910
+ );
6911
+ }
6912
+ throw new Error(
6913
+ `Verification Blocked: source=${fallbackDecision.evidence.source} quality=${fallbackDecision.evidence.quality} confidence=${fallbackDecision.evidence.confidence}. Retry with verify=false or rerun with higher-quality LSP evidence.`
6914
+ );
6915
+ }
6767
6916
  if (lspResult.formatted.startsWith("No LSP server available for file type:")) {
6917
+ writeTextContent(fullFilePath, originalFileContent, enc, endings);
6768
6918
  throw new Error(
6769
6919
  `Verification Unavailable: Unable to initialize LSP for ${file_path}. Retry with verify=false or rerun when LSP is available.`
6770
6920
  );
@@ -12642,7 +12792,7 @@ async function createAndStoreApiKey(accessToken) {
12642
12792
  }
12643
12793
  saveGlobalConfig(config2);
12644
12794
  try {
12645
- const { resetAnthropicClient } = await import("./llm-QTECZGRE.js");
12795
+ const { resetAnthropicClient } = await import("./llm-QPAHJ643.js");
12646
12796
  resetAnthropicClient();
12647
12797
  } catch {
12648
12798
  }
@@ -17066,7 +17216,7 @@ async function refreshPluginRuntimeFromInstalls() {
17066
17216
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
17067
17217
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
17068
17218
  if (dirs.length === 0) return [];
17069
- const { configureSessionPlugins } = await import("./pluginRuntime-ODOQDPAK.js");
17219
+ const { configureSessionPlugins } = await import("./pluginRuntime-TLFHDTDH.js");
17070
17220
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
17071
17221
  return errors;
17072
17222
  }
@@ -17741,7 +17891,7 @@ async function call(onDone, context) {
17741
17891
  ModelConfig,
17742
17892
  {
17743
17893
  onClose: () => {
17744
- import("./model-Q3NJN5MQ.js").then(({ reloadModelManager: reloadModelManager2 }) => {
17894
+ import("./model-JFUZ777G.js").then(({ reloadModelManager: reloadModelManager2 }) => {
17745
17895
  reloadModelManager2();
17746
17896
  triggerModelConfigChange();
17747
17897
  onDone();
@@ -27818,7 +27968,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
27818
27968
  if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
27819
27969
  try {
27820
27970
  const { isAbsolute: isAbsolute11, resolve: resolve16 } = await import("path");
27821
- const { getSessionRoot: getSessionRoot2 } = await import("./state-KQVHDJY3.js");
27971
+ const { getSessionRoot: getSessionRoot2 } = await import("./state-MDP57623.js");
27822
27972
  const lines = output.split("\n");
27823
27973
  const uniqueFiles = /* @__PURE__ */ new Set();
27824
27974
  const lspSuggestions = [];
@@ -28219,7 +28369,7 @@ var DeleteTool = {
28219
28369
  }
28220
28370
  if (!force) {
28221
28371
  try {
28222
- const { LspFacade: LspFacade2 } = await import("./lsp-DNNS2MO4.js");
28372
+ const { LspFacade: LspFacade2 } = await import("./lsp-WIEWEHYU.js");
28223
28373
  const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
28224
28374
  if (referenceDetail) {
28225
28375
  failedItems.push(
@@ -28229,8 +28379,20 @@ var DeleteTool = {
28229
28379
  }
28230
28380
  } catch (e) {
28231
28381
  if (!force) {
28382
+ const decision = decideLspFallbackAction({
28383
+ risk: "high",
28384
+ allowForce: Boolean(force),
28385
+ evidence: normalizeLspFallbackEvidence({
28386
+ source: "none",
28387
+ quality: "minimal",
28388
+ confidence: "low",
28389
+ fallbackReason: "lsp-runtime-error",
28390
+ fallbackSuggestion: "Use 'force: true' to override when safety checks are unavailable.",
28391
+ formatted: String(e?.message ?? e)
28392
+ })
28393
+ });
28232
28394
  failedItems.push(
28233
- `${rawPath} (Safety Check Failed: Internal LSP Error. Use 'force: true' to override.)`
28395
+ `${rawPath} (Safety Check Failed: Internal LSP Error. source=${decision.evidence.source} quality=${decision.evidence.quality}. Use 'force: true' to override.)`
28234
28396
  );
28235
28397
  continue;
28236
28398
  }
@@ -38648,7 +38810,7 @@ function useStatusLine() {
38648
38810
  // src/ui/components/PromptInput.tsx
38649
38811
  async function interpretHashCommand(input) {
38650
38812
  try {
38651
- const { queryQuick: queryQuick2 } = await import("./llm-QTECZGRE.js");
38813
+ const { queryQuick: queryQuick2 } = await import("./llm-QPAHJ643.js");
38652
38814
  const systemPrompt = [
38653
38815
  "You're helping the user structure notes that will be added to their PYB.md file.",
38654
38816
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -38961,7 +39123,7 @@ function PromptInput({
38961
39123
  if (messages2.length) {
38962
39124
  if (mode === "bash") {
38963
39125
  onQuery(messages2, newAbortController).then(async () => {
38964
- const { getCwd: getCwd2 } = await import("./state-KQVHDJY3.js");
39126
+ const { getCwd: getCwd2 } = await import("./state-MDP57623.js");
38965
39127
  setCurrentPwd(getCwd2());
38966
39128
  });
38967
39129
  } else {
@@ -40591,7 +40753,7 @@ import { homedir as homedir8 } from "os";
40591
40753
  // src/commands/agents/generation.ts
40592
40754
  import { randomUUID as randomUUID9 } from "crypto";
40593
40755
  async function generateAgentWithClaude(prompt) {
40594
- const { queryModel } = await import("./llm-QTECZGRE.js");
40756
+ const { queryModel } = await import("./llm-QPAHJ643.js");
40595
40757
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
40596
40758
 
40597
40759
  Return your response as a JSON object with exactly these fields: