pybao-cli 1.4.4 → 1.4.6

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 (149) hide show
  1. package/dist/REPL-CEZDOYM4.js +47 -0
  2. package/dist/{acp-ZUTERA5S.js → acp-GBBJ4Q2L.js} +29 -29
  3. package/dist/{agentsValidate-AWTRTN5W.js → agentsValidate-CHJ53WK5.js} +7 -7
  4. package/dist/{ask-XGZ4FQKH.js → ask-LUB6FARM.js} +28 -28
  5. package/dist/{autoUpdater-4SOMNDQJ.js → autoUpdater-LOTPDUNR.js} +3 -3
  6. package/dist/{chunk-LTRRVBFJ.js → chunk-2SLRM6SW.js} +2 -2
  7. package/dist/{chunk-XUVX64YX.js → chunk-3CFMPM3Q.js} +1 -1
  8. package/dist/{chunk-RTK7D2UF.js → chunk-3ERO7LXW.js} +74 -32
  9. package/dist/chunk-3ERO7LXW.js.map +7 -0
  10. package/dist/{chunk-4PG3WN3C.js → chunk-3LXMVPOB.js} +3 -3
  11. package/dist/{chunk-7YRN3G6O.js → chunk-3SJOME2K.js} +78 -48
  12. package/dist/chunk-3SJOME2K.js.map +7 -0
  13. package/dist/{chunk-IA43WY3S.js → chunk-3TM4YSOT.js} +3 -3
  14. package/dist/{chunk-TZQSDGRB.js → chunk-4EHOCBGD.js} +4 -4
  15. package/dist/{chunk-GUC73TG3.js → chunk-4KZQIFYS.js} +4 -4
  16. package/dist/{chunk-LZ7DRYYR.js → chunk-BX5HCVXO.js} +3 -3
  17. package/dist/{chunk-APJD6SW2.js → chunk-BZQ44CLS.js} +2 -2
  18. package/dist/{chunk-MI2KXXDU.js → chunk-DCUDXX3J.js} +1 -1
  19. package/dist/{chunk-53FUR6RV.js → chunk-DT55XLT2.js} +4 -4
  20. package/dist/{chunk-YS54GTHH.js → chunk-ELX7YL6H.js} +1 -1
  21. package/dist/{chunk-OSA6YZ7D.js → chunk-KGLVRNDR.js} +1 -1
  22. package/dist/{chunk-YFJI5OAO.js → chunk-KWWBMB2C.js} +3 -3
  23. package/dist/{chunk-DUALMA47.js → chunk-LOXUDTGK.js} +1 -1
  24. package/dist/{chunk-R6JK7J47.js → chunk-MM3N4LYU.js} +2 -2
  25. package/dist/{chunk-X4NOBQSI.js → chunk-ONJLFU6E.js} +1 -1
  26. package/dist/{chunk-KFTWAAEB.js → chunk-PYSQ7H2W.js} +2 -2
  27. package/dist/{chunk-A2LLO2G7.js → chunk-QVH2T453.js} +2 -2
  28. package/dist/{chunk-NC6HM2YL.js → chunk-R2S27MPB.js} +3 -3
  29. package/dist/{chunk-CDDRJZLN.js → chunk-R6BQN6BI.js} +67 -17
  30. package/dist/chunk-R6BQN6BI.js.map +7 -0
  31. package/dist/{chunk-VT6YOSNT.js → chunk-RXZRJGAW.js} +1 -1
  32. package/dist/{chunk-BXKFEPY4.js → chunk-SPTVOC4U.js} +1 -1
  33. package/dist/{chunk-KB57LVO6.js → chunk-THDVQQCB.js} +2 -2
  34. package/dist/{chunk-AYKNJIWC.js → chunk-UEFMFW7S.js} +1 -1
  35. package/dist/{chunk-AYKNJIWC.js.map → chunk-UEFMFW7S.js.map} +1 -1
  36. package/dist/{chunk-SDD6QEJR.js → chunk-VSZ2ERXU.js} +3 -3
  37. package/dist/{chunk-NOQFISUS.js → chunk-YCVH3KLB.js} +1 -1
  38. package/dist/{chunk-NJQFT5WP.js → chunk-YDHOG7RX.js} +2 -2
  39. package/dist/{chunk-JQN76VWU.js → chunk-ZHXQ5CHI.js} +165 -17
  40. package/dist/chunk-ZHXQ5CHI.js.map +7 -0
  41. package/dist/{cli-4GSFMWG4.js → cli-4L2D2W3Z.js} +87 -87
  42. package/dist/commands-F3TBOCAC.js +51 -0
  43. package/dist/{config-XRCPFUMP.js → config-J7BBEQ54.js} +4 -4
  44. package/dist/{context-V2KZYETD.js → context-MFQYX3BD.js} +6 -6
  45. package/dist/{customCommands-GYE22N7X.js → customCommands-VE2IFWOE.js} +4 -4
  46. package/dist/{env-6PFEG3IJ.js → env-H673UPME.js} +2 -2
  47. package/dist/{file-HUOUUXQN.js → file-6J7OPL7D.js} +4 -4
  48. package/dist/index.js +3 -3
  49. package/dist/{llm-5XTVXNNO.js → llm-2J4VIMSQ.js} +29 -29
  50. package/dist/{llmLazy-LYL7PZIP.js → llmLazy-FJ6UVXBE.js} +1 -1
  51. package/dist/{loader-LGNBF346.js → loader-JG4RX4NZ.js} +4 -4
  52. package/dist/{lsp-RXODR7IT.js → lsp-QHAT3UA3.js} +8 -6
  53. package/dist/{lspAnchor-KD3YDKIU.js → lspAnchor-GEIDNUAL.js} +6 -6
  54. package/dist/{mcp-DZVZURWQ.js → mcp-W55PQSXA.js} +7 -7
  55. package/dist/{mentionProcessor-TV5WX5QI.js → mentionProcessor-AIKIWBRT.js} +5 -5
  56. package/dist/{messages-63V7PLB3.js → messages-6PJ26XMB.js} +1 -1
  57. package/dist/{model-PIPNIFG6.js → model-JDCFFSS5.js} +5 -5
  58. package/dist/{openai-7PBUBCVL.js → openai-BYAVZ7GD.js} +5 -5
  59. package/dist/{outputStyles-JUAFSQ3X.js → outputStyles-SWELWRFU.js} +4 -4
  60. package/dist/{pluginRuntime-SCSQDNRJ.js → pluginRuntime-I2W43RXL.js} +6 -6
  61. package/dist/{pluginValidation-M4VRW75Z.js → pluginValidation-6NHIZZEK.js} +6 -6
  62. package/dist/prompts-B7CPNTOM.js +53 -0
  63. package/dist/{pybAgentSessionLoad-3BP6OY3R.js → pybAgentSessionLoad-GHEX7PMU.js} +4 -4
  64. package/dist/{pybAgentSessionResume-4NGQ6Z3B.js → pybAgentSessionResume-JYAJKSVG.js} +4 -4
  65. package/dist/{pybAgentStreamJsonSession-SHF3IH4F.js → pybAgentStreamJsonSession-HIKR32BT.js} +1 -1
  66. package/dist/{pybHooks-PIFZLTVA.js → pybHooks-L6N62ZR6.js} +4 -4
  67. package/dist/query-GHIDLJPY.js +55 -0
  68. package/dist/{registry-QCEPF42I.js → registry-HPBUGGHF.js} +5 -5
  69. package/dist/{ripgrep-CHQJM74I.js → ripgrep-UBQWIOMK.js} +3 -3
  70. package/dist/{skillMarketplace-LIFDHUHS.js → skillMarketplace-NO2IDGSM.js} +3 -3
  71. package/dist/{state-LGVYKZYR.js → state-HXLVMI7X.js} +2 -2
  72. package/dist/{theme-5QKLFDGW.js → theme-TNT2BZ25.js} +5 -5
  73. package/dist/{toolPermissionSettings-VNBKLZIT.js → toolPermissionSettings-TJZHAYYO.js} +6 -6
  74. package/dist/tools-SDR7BZZU.js +52 -0
  75. package/dist/{userInput-64ZNU7F3.js → userInput-DGZ2SE4C.js} +30 -30
  76. package/package.json +1 -1
  77. package/dist/REPL-LLXP3KZE.js +0 -47
  78. package/dist/chunk-7YRN3G6O.js.map +0 -7
  79. package/dist/chunk-CDDRJZLN.js.map +0 -7
  80. package/dist/chunk-JQN76VWU.js.map +0 -7
  81. package/dist/chunk-RTK7D2UF.js.map +0 -7
  82. package/dist/commands-HA4FPBAY.js +0 -51
  83. package/dist/prompts-Z6JR5ECU.js +0 -53
  84. package/dist/query-YVTHXUBT.js +0 -55
  85. package/dist/tools-FKZPEWYT.js +0 -52
  86. /package/dist/{REPL-LLXP3KZE.js.map → REPL-CEZDOYM4.js.map} +0 -0
  87. /package/dist/{acp-ZUTERA5S.js.map → acp-GBBJ4Q2L.js.map} +0 -0
  88. /package/dist/{agentsValidate-AWTRTN5W.js.map → agentsValidate-CHJ53WK5.js.map} +0 -0
  89. /package/dist/{ask-XGZ4FQKH.js.map → ask-LUB6FARM.js.map} +0 -0
  90. /package/dist/{autoUpdater-4SOMNDQJ.js.map → autoUpdater-LOTPDUNR.js.map} +0 -0
  91. /package/dist/{chunk-LTRRVBFJ.js.map → chunk-2SLRM6SW.js.map} +0 -0
  92. /package/dist/{chunk-XUVX64YX.js.map → chunk-3CFMPM3Q.js.map} +0 -0
  93. /package/dist/{chunk-4PG3WN3C.js.map → chunk-3LXMVPOB.js.map} +0 -0
  94. /package/dist/{chunk-IA43WY3S.js.map → chunk-3TM4YSOT.js.map} +0 -0
  95. /package/dist/{chunk-TZQSDGRB.js.map → chunk-4EHOCBGD.js.map} +0 -0
  96. /package/dist/{chunk-GUC73TG3.js.map → chunk-4KZQIFYS.js.map} +0 -0
  97. /package/dist/{chunk-LZ7DRYYR.js.map → chunk-BX5HCVXO.js.map} +0 -0
  98. /package/dist/{chunk-APJD6SW2.js.map → chunk-BZQ44CLS.js.map} +0 -0
  99. /package/dist/{chunk-MI2KXXDU.js.map → chunk-DCUDXX3J.js.map} +0 -0
  100. /package/dist/{chunk-53FUR6RV.js.map → chunk-DT55XLT2.js.map} +0 -0
  101. /package/dist/{chunk-YS54GTHH.js.map → chunk-ELX7YL6H.js.map} +0 -0
  102. /package/dist/{chunk-OSA6YZ7D.js.map → chunk-KGLVRNDR.js.map} +0 -0
  103. /package/dist/{chunk-YFJI5OAO.js.map → chunk-KWWBMB2C.js.map} +0 -0
  104. /package/dist/{chunk-DUALMA47.js.map → chunk-LOXUDTGK.js.map} +0 -0
  105. /package/dist/{chunk-R6JK7J47.js.map → chunk-MM3N4LYU.js.map} +0 -0
  106. /package/dist/{chunk-X4NOBQSI.js.map → chunk-ONJLFU6E.js.map} +0 -0
  107. /package/dist/{chunk-KFTWAAEB.js.map → chunk-PYSQ7H2W.js.map} +0 -0
  108. /package/dist/{chunk-A2LLO2G7.js.map → chunk-QVH2T453.js.map} +0 -0
  109. /package/dist/{chunk-NC6HM2YL.js.map → chunk-R2S27MPB.js.map} +0 -0
  110. /package/dist/{chunk-VT6YOSNT.js.map → chunk-RXZRJGAW.js.map} +0 -0
  111. /package/dist/{chunk-BXKFEPY4.js.map → chunk-SPTVOC4U.js.map} +0 -0
  112. /package/dist/{chunk-KB57LVO6.js.map → chunk-THDVQQCB.js.map} +0 -0
  113. /package/dist/{chunk-SDD6QEJR.js.map → chunk-VSZ2ERXU.js.map} +0 -0
  114. /package/dist/{chunk-NOQFISUS.js.map → chunk-YCVH3KLB.js.map} +0 -0
  115. /package/dist/{chunk-NJQFT5WP.js.map → chunk-YDHOG7RX.js.map} +0 -0
  116. /package/dist/{cli-4GSFMWG4.js.map → cli-4L2D2W3Z.js.map} +0 -0
  117. /package/dist/{commands-HA4FPBAY.js.map → commands-F3TBOCAC.js.map} +0 -0
  118. /package/dist/{config-XRCPFUMP.js.map → config-J7BBEQ54.js.map} +0 -0
  119. /package/dist/{context-V2KZYETD.js.map → context-MFQYX3BD.js.map} +0 -0
  120. /package/dist/{customCommands-GYE22N7X.js.map → customCommands-VE2IFWOE.js.map} +0 -0
  121. /package/dist/{env-6PFEG3IJ.js.map → env-H673UPME.js.map} +0 -0
  122. /package/dist/{file-HUOUUXQN.js.map → file-6J7OPL7D.js.map} +0 -0
  123. /package/dist/{llm-5XTVXNNO.js.map → llm-2J4VIMSQ.js.map} +0 -0
  124. /package/dist/{llmLazy-LYL7PZIP.js.map → llmLazy-FJ6UVXBE.js.map} +0 -0
  125. /package/dist/{loader-LGNBF346.js.map → loader-JG4RX4NZ.js.map} +0 -0
  126. /package/dist/{lsp-RXODR7IT.js.map → lsp-QHAT3UA3.js.map} +0 -0
  127. /package/dist/{lspAnchor-KD3YDKIU.js.map → lspAnchor-GEIDNUAL.js.map} +0 -0
  128. /package/dist/{mcp-DZVZURWQ.js.map → mcp-W55PQSXA.js.map} +0 -0
  129. /package/dist/{mentionProcessor-TV5WX5QI.js.map → mentionProcessor-AIKIWBRT.js.map} +0 -0
  130. /package/dist/{messages-63V7PLB3.js.map → messages-6PJ26XMB.js.map} +0 -0
  131. /package/dist/{model-PIPNIFG6.js.map → model-JDCFFSS5.js.map} +0 -0
  132. /package/dist/{openai-7PBUBCVL.js.map → openai-BYAVZ7GD.js.map} +0 -0
  133. /package/dist/{outputStyles-JUAFSQ3X.js.map → outputStyles-SWELWRFU.js.map} +0 -0
  134. /package/dist/{pluginRuntime-SCSQDNRJ.js.map → pluginRuntime-I2W43RXL.js.map} +0 -0
  135. /package/dist/{pluginValidation-M4VRW75Z.js.map → pluginValidation-6NHIZZEK.js.map} +0 -0
  136. /package/dist/{prompts-Z6JR5ECU.js.map → prompts-B7CPNTOM.js.map} +0 -0
  137. /package/dist/{pybAgentSessionLoad-3BP6OY3R.js.map → pybAgentSessionLoad-GHEX7PMU.js.map} +0 -0
  138. /package/dist/{pybAgentSessionResume-4NGQ6Z3B.js.map → pybAgentSessionResume-JYAJKSVG.js.map} +0 -0
  139. /package/dist/{pybAgentStreamJsonSession-SHF3IH4F.js.map → pybAgentStreamJsonSession-HIKR32BT.js.map} +0 -0
  140. /package/dist/{pybHooks-PIFZLTVA.js.map → pybHooks-L6N62ZR6.js.map} +0 -0
  141. /package/dist/{query-YVTHXUBT.js.map → query-GHIDLJPY.js.map} +0 -0
  142. /package/dist/{registry-QCEPF42I.js.map → registry-HPBUGGHF.js.map} +0 -0
  143. /package/dist/{ripgrep-CHQJM74I.js.map → ripgrep-UBQWIOMK.js.map} +0 -0
  144. /package/dist/{skillMarketplace-LIFDHUHS.js.map → skillMarketplace-NO2IDGSM.js.map} +0 -0
  145. /package/dist/{state-LGVYKZYR.js.map → state-HXLVMI7X.js.map} +0 -0
  146. /package/dist/{theme-5QKLFDGW.js.map → theme-TNT2BZ25.js.map} +0 -0
  147. /package/dist/{toolPermissionSettings-VNBKLZIT.js.map → toolPermissionSettings-TJZHAYYO.js.map} +0 -0
  148. /package/dist/{tools-FKZPEWYT.js.map → tools-SDR7BZZU.js.map} +0 -0
  149. /package/dist/{userInput-64ZNU7F3.js.map → userInput-DGZ2SE4C.js.map} +0 -0
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getGlobalConfig,
5
5
  saveGlobalConfig
6
- } from "./chunk-LZ7DRYYR.js";
6
+ } from "./chunk-BX5HCVXO.js";
7
7
  import {
8
8
  debug
9
- } from "./chunk-OSA6YZ7D.js";
9
+ } from "./chunk-KGLVRNDR.js";
10
10
  import {
11
11
  logError
12
- } from "./chunk-DUALMA47.js";
12
+ } from "./chunk-LOXUDTGK.js";
13
13
 
14
14
  // src/utils/model/index.ts
15
15
  import { memoize } from "lodash-es";
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  formatValidationResult,
5
5
  validatePluginOrMarketplacePath
6
- } from "./chunk-NC6HM2YL.js";
6
+ } from "./chunk-R2S27MPB.js";
7
7
  import {
8
8
  loadPybAgentSessionMessages
9
- } from "./chunk-X4NOBQSI.js";
9
+ } from "./chunk-ONJLFU6E.js";
10
10
  import {
11
11
  listPybAgentSessions
12
- } from "./chunk-BXKFEPY4.js";
12
+ } from "./chunk-SPTVOC4U.js";
13
13
  import {
14
14
  appendSessionCustomTitleRecord,
15
15
  appendSessionJsonlFromMessage,
16
16
  appendSessionTagRecord
17
- } from "./chunk-LTRRVBFJ.js";
17
+ } from "./chunk-2SLRM6SW.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-SDD6QEJR.js";
29
+ } from "./chunk-VSZ2ERXU.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-R6JK7J47.js";
38
+ } from "./chunk-MM3N4LYU.js";
39
39
  import {
40
40
  fetchCustomModels,
41
41
  getModelFeatures
42
- } from "./chunk-KFTWAAEB.js";
42
+ } from "./chunk-PYSQ7H2W.js";
43
43
  import {
44
44
  queryLLM,
45
45
  queryQuick,
46
46
  verifyApiKey
47
- } from "./chunk-GUC73TG3.js";
47
+ } from "./chunk-4KZQIFYS.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-53FUR6RV.js";
61
+ } from "./chunk-DT55XLT2.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-XUVX64YX.js";
74
+ } from "./chunk-3CFMPM3Q.js";
75
75
  import {
76
76
  loadToolPermissionContextFromDisk,
77
77
  persistToolPermissionUpdateToDisk
78
- } from "./chunk-YFJI5OAO.js";
78
+ } from "./chunk-KWWBMB2C.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-NJQFT5WP.js";
91
+ } from "./chunk-YDHOG7RX.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-A2LLO2G7.js";
100
+ } from "./chunk-QVH2T453.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-MI2KXXDU.js";
130
+ } from "./chunk-DCUDXX3J.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-KB57LVO6.js";
160
+ } from "./chunk-THDVQQCB.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-RTK7D2UF.js";
170
+ } from "./chunk-3ERO7LXW.js";
171
171
  import {
172
172
  getSettingsFileCandidates,
173
173
  loadSettingsWithLegacyFallback
174
- } from "./chunk-NOQFISUS.js";
174
+ } from "./chunk-YCVH3KLB.js";
175
175
  import {
176
176
  getCustomCommandDirectories,
177
177
  hasCustomCommands,
178
178
  loadCustomCommands,
179
179
  reloadCustomCommands
180
- } from "./chunk-APJD6SW2.js";
180
+ } from "./chunk-BZQ44CLS.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-4PG3WN3C.js";
188
+ } from "./chunk-3LXMVPOB.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-TZQSDGRB.js";
196
+ } from "./chunk-4EHOCBGD.js";
197
197
  import {
198
198
  ripGrep
199
- } from "./chunk-VT6YOSNT.js";
199
+ } from "./chunk-RXZRJGAW.js";
200
200
  import {
201
201
  getTheme
202
- } from "./chunk-YS54GTHH.js";
202
+ } from "./chunk-ELX7YL6H.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-LZ7DRYYR.js";
215
+ } from "./chunk-BX5HCVXO.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-OSA6YZ7D.js";
224
+ } from "./chunk-KGLVRNDR.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-DUALMA47.js";
263
+ } from "./chunk-LOXUDTGK.js";
264
264
  import {
265
265
  MACRO
266
- } from "./chunk-AYKNJIWC.js";
266
+ } from "./chunk-UEFMFW7S.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-5XTVXNNO.js");
447
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-2J4VIMSQ.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-5XTVXNNO.js");
4249
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-2J4VIMSQ.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-KD3YDKIU.js");
6510
+ const { findLspAnchor } = await import("./lspAnchor-GEIDNUAL.js");
6511
6511
  for (const op of editOperations) {
6512
6512
  const normalizedSearch = normalizeLineEndings(op.search);
6513
6513
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -6557,7 +6557,7 @@ ${op.search}`);
6557
6557
  });
6558
6558
  if (!touched) {
6559
6559
  throw new Error(
6560
- `Verification Unavailable: Unable to initialize LSP for ${file_path}.`
6560
+ `Verification Unavailable: Unable to initialize LSP for ${file_path}. Retry with verify=false or rerun when LSP is available.`
6561
6561
  );
6562
6562
  }
6563
6563
  const diagnostics = await LspAPI.diagnostics(fullFilePath, getCwd());
@@ -6565,7 +6565,8 @@ ${op.search}`);
6565
6565
  if (errors.length > 0) {
6566
6566
  writeTextContent(fullFilePath, originalFileContent, enc, endings);
6567
6567
  throw new Error(`Verification Failed: ${errors.length} syntax errors detected. Reverted changes.
6568
- First error: ${errors[0].message}`);
6568
+ First error: ${errors[0].message}
6569
+ Suggestion: fix errors or rerun with verify=false.`);
6569
6570
  }
6570
6571
  }
6571
6572
  recordFileEdit(fullFilePath, updatedFile);
@@ -7312,8 +7313,11 @@ var FileReadTool = {
7312
7313
  if (symbol_name) {
7313
7314
  try {
7314
7315
  const symbols = await LspAPI.documentSymbolRaw(fullFilePath, getCwd());
7315
- if (!symbols || symbols.length === 0) {
7316
- throw new Error(`No symbols found in file.`);
7316
+ if (symbols === null) {
7317
+ throw new Error("LSP unavailable for file. Use offset/limit or LspTool instead.");
7318
+ }
7319
+ if (symbols.length === 0) {
7320
+ throw new Error("No symbols found in file. Use offset/limit or LspTool instead.");
7317
7321
  }
7318
7322
  const findSymbol = (syms) => {
7319
7323
  for (const sym of syms) {
@@ -7327,7 +7331,7 @@ var FileReadTool = {
7327
7331
  };
7328
7332
  const symbol = findSymbol(symbols);
7329
7333
  if (!symbol) {
7330
- throw new Error(`Symbol '${symbol_name}' not found in file.`);
7334
+ throw new Error(`Symbol '${symbol_name}' not found in file. Use offset/limit or LspTool instead.`);
7331
7335
  }
7332
7336
  startLine = symbol.range.start.line + 1;
7333
7337
  finalLimit = symbol.range.end.line - symbol.range.start.line + 1;
@@ -7879,6 +7883,7 @@ var GlobTool = {
7879
7883
  );
7880
7884
  let files = raw.map((p) => isAbsolute6(p) ? p : join4(searchPath, p));
7881
7885
  const scopedPath = resolve6(searchPath);
7886
+ let semanticNotice;
7882
7887
  if (semantic && files.length === 0) {
7883
7888
  try {
7884
7889
  const symbols = await LspAPI.workspaceSymbol(pattern, {
@@ -7896,7 +7901,13 @@ var GlobTool = {
7896
7901
  return filePath;
7897
7902
  }).filter(Boolean);
7898
7903
  files = Array.from(/* @__PURE__ */ new Set([...files, ...semanticFiles]));
7904
+ if (semanticFiles.length > 0) {
7905
+ semanticNotice = `Semantic search: added ${semanticFiles.length} result${semanticFiles.length === 1 ? "" : "s"}. Next: use LspTool for details.`;
7906
+ } else {
7907
+ semanticNotice = "Semantic search: no symbols found.";
7908
+ }
7899
7909
  } catch {
7910
+ semanticNotice = "Semantic search: LSP unavailable.";
7900
7911
  }
7901
7912
  }
7902
7913
  const truncated = files.length > DEFAULT_LIMIT;
@@ -7905,7 +7916,8 @@ var GlobTool = {
7905
7916
  filenames: limitedFiles,
7906
7917
  durationMs: Date.now() - start,
7907
7918
  numFiles: limitedFiles.length,
7908
- truncated
7919
+ truncated,
7920
+ ...semanticNotice ? { semanticNotice } : {}
7909
7921
  };
7910
7922
  yield {
7911
7923
  type: "result",
@@ -7920,6 +7932,11 @@ var GlobTool = {
7920
7932
  } else if (output.truncated) {
7921
7933
  result += "\n(Results are truncated. Consider using a more specific path or pattern.)";
7922
7934
  }
7935
+ if (output.semanticNotice) {
7936
+ return `${result}
7937
+
7938
+ ${output.semanticNotice}`;
7939
+ }
7923
7940
  return result;
7924
7941
  }
7925
7942
  };
@@ -8105,24 +8122,29 @@ var GrepTool = {
8105
8122
  result.appliedLimit,
8106
8123
  result.appliedOffset
8107
8124
  );
8125
+ const appendNotice = (base) => result.semanticNotice ? `${base}
8126
+
8127
+ ${result.semanticNotice}` : base;
8108
8128
  if (result.mode === "content") {
8109
8129
  const base = truncateToCharBudget(result.content || "No matches found");
8110
- return pagination ? `${base}
8130
+ const withPagination = pagination ? `${base}
8111
8131
 
8112
8132
  [Showing results with pagination = ${pagination}]` : base;
8133
+ return appendNotice(withPagination);
8113
8134
  }
8114
8135
  if (result.mode === "count") {
8115
8136
  const base = truncateToCharBudget(result.content || "No matches found");
8116
8137
  const numMatches = result.numMatches ?? 0;
8117
8138
  const numFiles = result.numFiles ?? 0;
8118
- return base + `
8139
+ const summary = base + `
8119
8140
 
8120
8141
  Found ${numMatches} total ${numMatches === 1 ? "occurrence" : "occurrences"} across ${numFiles} ${numFiles === 1 ? "file" : "files"}.` + (pagination ? ` with pagination = ${pagination}` : "");
8142
+ return appendNotice(summary);
8121
8143
  }
8122
- if (result.numFiles === 0) return "No files found";
8144
+ if (result.numFiles === 0) return appendNotice("No files found");
8123
8145
  const header = `Found ${result.numFiles} file${result.numFiles === 1 ? "" : "s"}${pagination ? ` ${pagination}` : ""}
8124
8146
  ${result.filenames.join("\n")}`;
8125
- return truncateToCharBudget(header);
8147
+ return appendNotice(truncateToCharBudget(header));
8126
8148
  },
8127
8149
  async validateInput({ path: path5, semantic, symbol_type }) {
8128
8150
  if (symbol_type && !semantic) {
@@ -8204,6 +8226,7 @@ ${result.filenames.join("\n")}`;
8204
8226
  const lines = await ripGrep(args, absolutePath, abortController.signal, {
8205
8227
  sandbox: sandboxPlan.settings.enabled ? sandboxPlan.bunShellSandboxOptions : void 0
8206
8228
  });
8229
+ let semanticNotice;
8207
8230
  const scopedRoot = resolve7(absolutePath);
8208
8231
  if ((lines.length === 0 || symbol_type) && semantic) {
8209
8232
  try {
@@ -8293,8 +8316,12 @@ ${result.filenames.join("\n")}`;
8293
8316
  return `${filePath}:${line}: ${s.name} (${kindName})`;
8294
8317
  });
8295
8318
  lines.push(...semanticLines);
8319
+ semanticNotice = `Semantic search: added ${semanticLines.length} result${semanticLines.length === 1 ? "" : "s"}. Next: use LspTool for details.`;
8320
+ } else {
8321
+ semanticNotice = "Semantic search: no symbols found.";
8296
8322
  }
8297
8323
  } catch (e) {
8324
+ semanticNotice = "Semantic search: LSP unavailable.";
8298
8325
  console.error("[GrepTool] Semantic search error:", e);
8299
8326
  }
8300
8327
  }
@@ -8317,7 +8344,8 @@ ${result.filenames.join("\n")}`;
8317
8344
  numLines: window2.length,
8318
8345
  ...appliedLimit !== void 0 ? { appliedLimit } : {},
8319
8346
  ...appliedOffset > 0 ? { appliedOffset } : {},
8320
- durationMs: Date.now() - start
8347
+ durationMs: Date.now() - start,
8348
+ ...semanticNotice ? { semanticNotice } : {}
8321
8349
  };
8322
8350
  yield {
8323
8351
  type: "result",
@@ -8358,7 +8386,8 @@ ${result.filenames.join("\n")}`;
8358
8386
  numMatches,
8359
8387
  ...appliedLimit !== void 0 ? { appliedLimit } : {},
8360
8388
  ...appliedOffset > 0 ? { appliedOffset } : {},
8361
- durationMs: Date.now() - start
8389
+ durationMs: Date.now() - start,
8390
+ ...semanticNotice ? { semanticNotice } : {}
8362
8391
  };
8363
8392
  yield {
8364
8393
  type: "result",
@@ -8390,7 +8419,8 @@ ${result.filenames.join("\n")}`;
8390
8419
  numFiles: window.length,
8391
8420
  ...appliedLimit !== void 0 ? { appliedLimit } : {},
8392
8421
  ...appliedOffset > 0 ? { appliedOffset } : {},
8393
- durationMs: Date.now() - start
8422
+ durationMs: Date.now() - start,
8423
+ ...semanticNotice ? { semanticNotice } : {}
8394
8424
  };
8395
8425
  yield {
8396
8426
  type: "result",
@@ -11034,7 +11064,7 @@ async function createAndStoreApiKey(accessToken) {
11034
11064
  }
11035
11065
  saveGlobalConfig(config2);
11036
11066
  try {
11037
- const { resetAnthropicClient } = await import("./llm-5XTVXNNO.js");
11067
+ const { resetAnthropicClient } = await import("./llm-2J4VIMSQ.js");
11038
11068
  resetAnthropicClient();
11039
11069
  } catch {
11040
11070
  }
@@ -15316,7 +15346,7 @@ async function refreshPluginRuntimeFromInstalls() {
15316
15346
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
15317
15347
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
15318
15348
  if (dirs.length === 0) return [];
15319
- const { configureSessionPlugins } = await import("./pluginRuntime-SCSQDNRJ.js");
15349
+ const { configureSessionPlugins } = await import("./pluginRuntime-I2W43RXL.js");
15320
15350
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
15321
15351
  return errors;
15322
15352
  }
@@ -15985,7 +16015,7 @@ async function call(onDone, context) {
15985
16015
  ModelConfig,
15986
16016
  {
15987
16017
  onClose: () => {
15988
- import("./model-PIPNIFG6.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16018
+ import("./model-JDCFFSS5.js").then(({ reloadModelManager: reloadModelManager2 }) => {
15989
16019
  reloadModelManager2();
15990
16020
  triggerModelConfigChange();
15991
16021
  onDone();
@@ -23590,7 +23620,7 @@ function useStatusLine() {
23590
23620
  // src/ui/components/PromptInput.tsx
23591
23621
  async function interpretHashCommand(input) {
23592
23622
  try {
23593
- const { queryQuick: queryQuick2 } = await import("./llm-5XTVXNNO.js");
23623
+ const { queryQuick: queryQuick2 } = await import("./llm-2J4VIMSQ.js");
23594
23624
  const systemPrompt = [
23595
23625
  "You're helping the user structure notes that will be added to their PYB.md file.",
23596
23626
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -23903,7 +23933,7 @@ function PromptInput({
23903
23933
  if (messages2.length) {
23904
23934
  if (mode === "bash") {
23905
23935
  onQuery(messages2, newAbortController).then(async () => {
23906
- const { getCwd: getCwd2 } = await import("./state-LGVYKZYR.js");
23936
+ const { getCwd: getCwd2 } = await import("./state-HXLVMI7X.js");
23907
23937
  setCurrentPwd(getCwd2());
23908
23938
  });
23909
23939
  } else {
@@ -26773,7 +26803,7 @@ import { homedir as homedir7 } from "os";
26773
26803
  // src/commands/agents/generation.ts
26774
26804
  import { randomUUID as randomUUID5 } from "crypto";
26775
26805
  async function generateAgentWithClaude(prompt) {
26776
- const { queryModel } = await import("./llm-5XTVXNNO.js");
26806
+ const { queryModel } = await import("./llm-2J4VIMSQ.js");
26777
26807
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
26778
26808
 
26779
26809
  Return your response as a JSON object with exactly these fields: