pybao-cli 1.4.19 → 1.4.21

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 (148) hide show
  1. package/dist/REPL-DTEFOCH6.js +47 -0
  2. package/dist/{acp-J4PMGCCD.js → acp-UUHU3ZJP.js} +29 -29
  3. package/dist/{agentsValidate-PC7Z5N2N.js → agentsValidate-353ZIKRX.js} +7 -7
  4. package/dist/{ask-7JLTEYEJ.js → ask-YWFFJDOZ.js} +28 -28
  5. package/dist/{autoUpdater-2Z4UDR22.js → autoUpdater-QL55VUNN.js} +3 -3
  6. package/dist/{chunk-KDKWNUAD.js → chunk-43B54VVG.js} +1 -1
  7. package/dist/{chunk-UZLOWDHI.js → chunk-7CLUNX6N.js} +1 -1
  8. package/dist/{chunk-ZIIUNR5I.js → chunk-7JZLL27D.js} +4 -4
  9. package/dist/{chunk-AX7D3TRL.js → chunk-7VUZ7F6O.js} +3 -3
  10. package/dist/{chunk-UD66WITQ.js → chunk-AJCE4AEB.js} +2 -2
  11. package/dist/{chunk-FDOWFD5Y.js → chunk-BDK7LO6T.js} +2 -2
  12. package/dist/{chunk-HXRWRZCF.js → chunk-EAFBKCII.js} +4 -4
  13. package/dist/{chunk-DUPGYYL5.js → chunk-EWFAAFFD.js} +1 -1
  14. package/dist/{chunk-BY3F7D65.js → chunk-F7WF5Y2G.js} +3 -3
  15. package/dist/{chunk-WTWCL3W2.js → chunk-FKKGYX57.js} +2 -2
  16. package/dist/{chunk-OGMZVVQ3.js → chunk-GKTOGTH7.js} +6 -3
  17. package/dist/chunk-GKTOGTH7.js.map +7 -0
  18. package/dist/{chunk-SUDT5I6F.js → chunk-GQ4XDOB6.js} +3 -3
  19. package/dist/{chunk-57AOXC5J.js → chunk-HDFCFRX2.js} +1 -1
  20. package/dist/{chunk-ZJ3M5VDZ.js → chunk-IHAMEI25.js} +1 -1
  21. package/dist/{chunk-KQXHZ6XX.js → chunk-LYET7J6P.js} +3 -3
  22. package/dist/{chunk-GRNLX3GA.js → chunk-MOGFCWQS.js} +4 -4
  23. package/dist/{chunk-TKWD34G5.js → chunk-N7BETKV4.js} +2 -2
  24. package/dist/{chunk-MTS7RTUF.js → chunk-NADOCBZJ.js} +53 -55
  25. package/dist/chunk-NADOCBZJ.js.map +7 -0
  26. package/dist/{chunk-EELKMURO.js → chunk-NKJCMQ6E.js} +1 -1
  27. package/dist/{chunk-XE5USG7G.js → chunk-OYOVAWVJ.js} +1 -1
  28. package/dist/{chunk-EKBV663F.js → chunk-P64FZW37.js} +1 -1
  29. package/dist/{chunk-EKBV663F.js.map → chunk-P64FZW37.js.map} +1 -1
  30. package/dist/{chunk-LL4UN36W.js → chunk-SHJMSIG4.js} +3 -3
  31. package/dist/{chunk-RKPXK6YP.js → chunk-SUAQOOKX.js} +3 -3
  32. package/dist/{chunk-UZ4Z56ZS.js → chunk-TBCQF3QX.js} +2 -2
  33. package/dist/{chunk-MGVONCTT.js → chunk-UBLX77SB.js} +2 -2
  34. package/dist/{chunk-6LI77GR5.js → chunk-VRRPDCZU.js} +22 -19
  35. package/dist/chunk-VRRPDCZU.js.map +7 -0
  36. package/dist/{chunk-UTK4DWRS.js → chunk-X62O47V5.js} +4 -4
  37. package/dist/{chunk-BDSXUEMJ.js → chunk-YI6B3ZKC.js} +1 -1
  38. package/dist/{chunk-UI6SHGSM.js → chunk-YPA63LLM.js} +1 -1
  39. package/dist/{chunk-Y4GYDU7C.js → chunk-ZT6BL4GJ.js} +3 -3
  40. package/dist/{cli-FVH5R7EI.js → cli-M46CTXI4.js} +87 -87
  41. package/dist/commands-K57S3UBE.js +51 -0
  42. package/dist/{config-ZXQFEZGB.js → config-IO3BT2A2.js} +4 -4
  43. package/dist/{context-KHK262JT.js → context-VTFCGOC2.js} +6 -6
  44. package/dist/{customCommands-J7DMX5Q7.js → customCommands-HOLAMNPY.js} +4 -4
  45. package/dist/{env-MSSOW7XA.js → env-NHL3SB7W.js} +2 -2
  46. package/dist/{file-OIK35VA7.js → file-GTG6NWXX.js} +4 -4
  47. package/dist/index.js +3 -3
  48. package/dist/{llm-WTC26PPD.js → llm-OGMPR5GE.js} +29 -29
  49. package/dist/{llmLazy-V5S6NFE3.js → llmLazy-34ZZMXCF.js} +1 -1
  50. package/dist/{loader-MH3JU44G.js → loader-OYS5VS5I.js} +4 -4
  51. package/dist/{lsp-M52JKG5O.js → lsp-22ED4VPG.js} +6 -6
  52. package/dist/{lspAnchor-V3SHZVR2.js → lspAnchor-RX7NJOBQ.js} +6 -6
  53. package/dist/{mcp-QD6K44AU.js → mcp-OQ2WEC5Z.js} +7 -7
  54. package/dist/{mentionProcessor-SS6FM7P3.js → mentionProcessor-JJNEREBP.js} +5 -5
  55. package/dist/{messages-Q6DXNJTS.js → messages-WLARG2JF.js} +1 -1
  56. package/dist/{model-KBT7MSFR.js → model-26MQKGED.js} +5 -5
  57. package/dist/{openai-UMT6BWBE.js → openai-VXAITTZX.js} +5 -5
  58. package/dist/{outputStyles-NX7QJLY2.js → outputStyles-BA4KOXCS.js} +4 -4
  59. package/dist/{pluginRuntime-XYBSQJAU.js → pluginRuntime-SYDBIIWL.js} +6 -6
  60. package/dist/{pluginValidation-RR72EKCC.js → pluginValidation-SE2BRVQL.js} +6 -6
  61. package/dist/prompts-ESKS4M5Z.js +53 -0
  62. package/dist/{pybAgentSessionLoad-X5XQL577.js → pybAgentSessionLoad-XSFFI3BN.js} +4 -4
  63. package/dist/{pybAgentSessionResume-WJSA6TUW.js → pybAgentSessionResume-BFZV4CV3.js} +4 -4
  64. package/dist/{pybAgentStreamJsonSession-JEOF6NWA.js → pybAgentStreamJsonSession-RHPD4Z2Z.js} +1 -1
  65. package/dist/{pybHooks-7C56USJD.js → pybHooks-XD7KAH7A.js} +4 -4
  66. package/dist/query-N4J7UQHR.js +55 -0
  67. package/dist/{registry-MNDY2FFY.js → registry-7FICGFL7.js} +5 -5
  68. package/dist/{ripgrep-IHWIDDRM.js → ripgrep-SQ3BXDRN.js} +3 -3
  69. package/dist/{skillMarketplace-J6SB6KWR.js → skillMarketplace-6QNUBZTV.js} +3 -3
  70. package/dist/{state-MWT54BRL.js → state-5SSMFU6R.js} +2 -2
  71. package/dist/{theme-GX66OZMI.js → theme-X7TYW74V.js} +5 -5
  72. package/dist/{toolPermissionSettings-6YI7H7RF.js → toolPermissionSettings-O2I5PDDR.js} +6 -6
  73. package/dist/tools-UEIS5PFY.js +52 -0
  74. package/dist/{userInput-ZVYD5QBX.js → userInput-AQ5E6Y4V.js} +30 -30
  75. package/package.json +1 -1
  76. package/dist/REPL-QRF527CC.js +0 -47
  77. package/dist/chunk-6LI77GR5.js.map +0 -7
  78. package/dist/chunk-MTS7RTUF.js.map +0 -7
  79. package/dist/chunk-OGMZVVQ3.js.map +0 -7
  80. package/dist/commands-GLSE3AYA.js +0 -51
  81. package/dist/prompts-Y5BIWARO.js +0 -53
  82. package/dist/query-KZH67VSS.js +0 -55
  83. package/dist/tools-LESMC5K2.js +0 -52
  84. /package/dist/{REPL-QRF527CC.js.map → REPL-DTEFOCH6.js.map} +0 -0
  85. /package/dist/{acp-J4PMGCCD.js.map → acp-UUHU3ZJP.js.map} +0 -0
  86. /package/dist/{agentsValidate-PC7Z5N2N.js.map → agentsValidate-353ZIKRX.js.map} +0 -0
  87. /package/dist/{ask-7JLTEYEJ.js.map → ask-YWFFJDOZ.js.map} +0 -0
  88. /package/dist/{autoUpdater-2Z4UDR22.js.map → autoUpdater-QL55VUNN.js.map} +0 -0
  89. /package/dist/{chunk-KDKWNUAD.js.map → chunk-43B54VVG.js.map} +0 -0
  90. /package/dist/{chunk-UZLOWDHI.js.map → chunk-7CLUNX6N.js.map} +0 -0
  91. /package/dist/{chunk-ZIIUNR5I.js.map → chunk-7JZLL27D.js.map} +0 -0
  92. /package/dist/{chunk-AX7D3TRL.js.map → chunk-7VUZ7F6O.js.map} +0 -0
  93. /package/dist/{chunk-UD66WITQ.js.map → chunk-AJCE4AEB.js.map} +0 -0
  94. /package/dist/{chunk-FDOWFD5Y.js.map → chunk-BDK7LO6T.js.map} +0 -0
  95. /package/dist/{chunk-HXRWRZCF.js.map → chunk-EAFBKCII.js.map} +0 -0
  96. /package/dist/{chunk-DUPGYYL5.js.map → chunk-EWFAAFFD.js.map} +0 -0
  97. /package/dist/{chunk-BY3F7D65.js.map → chunk-F7WF5Y2G.js.map} +0 -0
  98. /package/dist/{chunk-WTWCL3W2.js.map → chunk-FKKGYX57.js.map} +0 -0
  99. /package/dist/{chunk-SUDT5I6F.js.map → chunk-GQ4XDOB6.js.map} +0 -0
  100. /package/dist/{chunk-57AOXC5J.js.map → chunk-HDFCFRX2.js.map} +0 -0
  101. /package/dist/{chunk-ZJ3M5VDZ.js.map → chunk-IHAMEI25.js.map} +0 -0
  102. /package/dist/{chunk-KQXHZ6XX.js.map → chunk-LYET7J6P.js.map} +0 -0
  103. /package/dist/{chunk-GRNLX3GA.js.map → chunk-MOGFCWQS.js.map} +0 -0
  104. /package/dist/{chunk-TKWD34G5.js.map → chunk-N7BETKV4.js.map} +0 -0
  105. /package/dist/{chunk-EELKMURO.js.map → chunk-NKJCMQ6E.js.map} +0 -0
  106. /package/dist/{chunk-XE5USG7G.js.map → chunk-OYOVAWVJ.js.map} +0 -0
  107. /package/dist/{chunk-LL4UN36W.js.map → chunk-SHJMSIG4.js.map} +0 -0
  108. /package/dist/{chunk-RKPXK6YP.js.map → chunk-SUAQOOKX.js.map} +0 -0
  109. /package/dist/{chunk-UZ4Z56ZS.js.map → chunk-TBCQF3QX.js.map} +0 -0
  110. /package/dist/{chunk-MGVONCTT.js.map → chunk-UBLX77SB.js.map} +0 -0
  111. /package/dist/{chunk-UTK4DWRS.js.map → chunk-X62O47V5.js.map} +0 -0
  112. /package/dist/{chunk-BDSXUEMJ.js.map → chunk-YI6B3ZKC.js.map} +0 -0
  113. /package/dist/{chunk-UI6SHGSM.js.map → chunk-YPA63LLM.js.map} +0 -0
  114. /package/dist/{chunk-Y4GYDU7C.js.map → chunk-ZT6BL4GJ.js.map} +0 -0
  115. /package/dist/{cli-FVH5R7EI.js.map → cli-M46CTXI4.js.map} +0 -0
  116. /package/dist/{commands-GLSE3AYA.js.map → commands-K57S3UBE.js.map} +0 -0
  117. /package/dist/{config-ZXQFEZGB.js.map → config-IO3BT2A2.js.map} +0 -0
  118. /package/dist/{context-KHK262JT.js.map → context-VTFCGOC2.js.map} +0 -0
  119. /package/dist/{customCommands-J7DMX5Q7.js.map → customCommands-HOLAMNPY.js.map} +0 -0
  120. /package/dist/{env-MSSOW7XA.js.map → env-NHL3SB7W.js.map} +0 -0
  121. /package/dist/{file-OIK35VA7.js.map → file-GTG6NWXX.js.map} +0 -0
  122. /package/dist/{llm-WTC26PPD.js.map → llm-OGMPR5GE.js.map} +0 -0
  123. /package/dist/{llmLazy-V5S6NFE3.js.map → llmLazy-34ZZMXCF.js.map} +0 -0
  124. /package/dist/{loader-MH3JU44G.js.map → loader-OYS5VS5I.js.map} +0 -0
  125. /package/dist/{lsp-M52JKG5O.js.map → lsp-22ED4VPG.js.map} +0 -0
  126. /package/dist/{lspAnchor-V3SHZVR2.js.map → lspAnchor-RX7NJOBQ.js.map} +0 -0
  127. /package/dist/{mcp-QD6K44AU.js.map → mcp-OQ2WEC5Z.js.map} +0 -0
  128. /package/dist/{mentionProcessor-SS6FM7P3.js.map → mentionProcessor-JJNEREBP.js.map} +0 -0
  129. /package/dist/{messages-Q6DXNJTS.js.map → messages-WLARG2JF.js.map} +0 -0
  130. /package/dist/{model-KBT7MSFR.js.map → model-26MQKGED.js.map} +0 -0
  131. /package/dist/{openai-UMT6BWBE.js.map → openai-VXAITTZX.js.map} +0 -0
  132. /package/dist/{outputStyles-NX7QJLY2.js.map → outputStyles-BA4KOXCS.js.map} +0 -0
  133. /package/dist/{pluginRuntime-XYBSQJAU.js.map → pluginRuntime-SYDBIIWL.js.map} +0 -0
  134. /package/dist/{pluginValidation-RR72EKCC.js.map → pluginValidation-SE2BRVQL.js.map} +0 -0
  135. /package/dist/{prompts-Y5BIWARO.js.map → prompts-ESKS4M5Z.js.map} +0 -0
  136. /package/dist/{pybAgentSessionLoad-X5XQL577.js.map → pybAgentSessionLoad-XSFFI3BN.js.map} +0 -0
  137. /package/dist/{pybAgentSessionResume-WJSA6TUW.js.map → pybAgentSessionResume-BFZV4CV3.js.map} +0 -0
  138. /package/dist/{pybAgentStreamJsonSession-JEOF6NWA.js.map → pybAgentStreamJsonSession-RHPD4Z2Z.js.map} +0 -0
  139. /package/dist/{pybHooks-7C56USJD.js.map → pybHooks-XD7KAH7A.js.map} +0 -0
  140. /package/dist/{query-KZH67VSS.js.map → query-N4J7UQHR.js.map} +0 -0
  141. /package/dist/{registry-MNDY2FFY.js.map → registry-7FICGFL7.js.map} +0 -0
  142. /package/dist/{ripgrep-IHWIDDRM.js.map → ripgrep-SQ3BXDRN.js.map} +0 -0
  143. /package/dist/{skillMarketplace-J6SB6KWR.js.map → skillMarketplace-6QNUBZTV.js.map} +0 -0
  144. /package/dist/{state-MWT54BRL.js.map → state-5SSMFU6R.js.map} +0 -0
  145. /package/dist/{theme-GX66OZMI.js.map → theme-X7TYW74V.js.map} +0 -0
  146. /package/dist/{toolPermissionSettings-6YI7H7RF.js.map → toolPermissionSettings-O2I5PDDR.js.map} +0 -0
  147. /package/dist/{tools-LESMC5K2.js.map → tools-UEIS5PFY.js.map} +0 -0
  148. /package/dist/{userInput-ZVYD5QBX.js.map → userInput-AQ5E6Y4V.js.map} +0 -0
@@ -4,17 +4,17 @@ import {
4
4
  LspServerRegistry,
5
5
  findNearestRoot,
6
6
  getInstallNotices
7
- } from "./chunk-BY3F7D65.js";
7
+ } from "./chunk-F7WF5Y2G.js";
8
8
  import {
9
9
  levenshtein
10
10
  } from "./chunk-UZ34JEUK.js";
11
11
  import {
12
12
  debug
13
- } from "./chunk-UI6SHGSM.js";
13
+ } from "./chunk-YPA63LLM.js";
14
14
  import {
15
15
  getCwd,
16
16
  getSessionRoot
17
- } from "./chunk-XE5USG7G.js";
17
+ } from "./chunk-OYOVAWVJ.js";
18
18
 
19
19
  // src/lsp/index.ts
20
20
  import { extname as extname2 } from "path";
@@ -565,7 +565,7 @@ var LspClientManager = class _LspClientManager {
565
565
  const safeCwd = /[^\x00-\x7F]/.test(resolvedRoot) ? process.cwd() : resolvedRoot;
566
566
  let initOpts = serverInfo.initializationOptions;
567
567
  if (serverInfo.id === "pyright" || serverInfo.id === "ty") {
568
- const { detectPythonVenv } = await import("./registry-MNDY2FFY.js");
568
+ const { detectPythonVenv } = await import("./registry-7FICGFL7.js");
569
569
  const pythonPath = detectPythonVenv(resolvedRoot);
570
570
  if (pythonPath) {
571
571
  initOpts = { ...initOpts ?? {}, pythonPath };
@@ -8,12 +8,12 @@ import {
8
8
  } from "./chunk-BJSWTHRM.js";
9
9
  import {
10
10
  debug
11
- } from "./chunk-UI6SHGSM.js";
11
+ } from "./chunk-YPA63LLM.js";
12
12
  import {
13
13
  getCwd,
14
14
  getXdgConfigDir,
15
15
  logError
16
- } from "./chunk-XE5USG7G.js";
16
+ } from "./chunk-OYOVAWVJ.js";
17
17
 
18
18
  // src/utils/agent/loader.ts
19
19
  import {
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  formatValidationResult,
5
5
  validatePluginOrMarketplacePath
6
- } from "./chunk-LL4UN36W.js";
6
+ } from "./chunk-SHJMSIG4.js";
7
7
  import {
8
8
  loadPybAgentSessionMessages
9
- } from "./chunk-57AOXC5J.js";
9
+ } from "./chunk-HDFCFRX2.js";
10
10
  import {
11
11
  listPybAgentSessions
12
- } from "./chunk-ZJ3M5VDZ.js";
12
+ } from "./chunk-IHAMEI25.js";
13
13
  import {
14
14
  appendSessionCustomTitleRecord,
15
15
  appendSessionJsonlFromMessage,
16
16
  appendSessionTagRecord
17
- } from "./chunk-FDOWFD5Y.js";
17
+ } from "./chunk-BDK7LO6T.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-KQXHZ6XX.js";
29
+ } from "./chunk-LYET7J6P.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-OGMZVVQ3.js";
38
+ } from "./chunk-GKTOGTH7.js";
39
39
  import {
40
40
  fetchCustomModels,
41
41
  getModelFeatures
42
- } from "./chunk-UZ4Z56ZS.js";
42
+ } from "./chunk-TBCQF3QX.js";
43
43
  import {
44
44
  queryLLM,
45
45
  queryQuick,
46
46
  verifyApiKey
47
- } from "./chunk-HXRWRZCF.js";
47
+ } from "./chunk-EAFBKCII.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-UTK4DWRS.js";
61
+ } from "./chunk-X62O47V5.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-BDSXUEMJ.js";
74
+ } from "./chunk-YI6B3ZKC.js";
75
75
  import {
76
76
  loadToolPermissionContextFromDisk,
77
77
  persistToolPermissionUpdateToDisk
78
- } from "./chunk-RKPXK6YP.js";
78
+ } from "./chunk-SUAQOOKX.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-MGVONCTT.js";
91
+ } from "./chunk-UBLX77SB.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-TKWD34G5.js";
100
+ } from "./chunk-N7BETKV4.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-EELKMURO.js";
130
+ } from "./chunk-NKJCMQ6E.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-WTWCL3W2.js";
160
+ } from "./chunk-FKKGYX57.js";
161
161
  import {
162
162
  parseBlockEdits
163
163
  } from "./chunk-QWIBSCDN.js";
@@ -167,18 +167,18 @@ import {
167
167
  ParserRegistry,
168
168
  initParser,
169
169
  loadLanguage
170
- } from "./chunk-GRNLX3GA.js";
170
+ } from "./chunk-MOGFCWQS.js";
171
171
  import {
172
172
  getSettingsFileCandidates,
173
173
  loadSettingsWithLegacyFallback,
174
174
  readSettingsFile
175
- } from "./chunk-KDKWNUAD.js";
175
+ } from "./chunk-43B54VVG.js";
176
176
  import {
177
177
  getCustomCommandDirectories,
178
178
  hasCustomCommands,
179
179
  loadCustomCommands,
180
180
  reloadCustomCommands
181
- } from "./chunk-UD66WITQ.js";
181
+ } from "./chunk-AJCE4AEB.js";
182
182
  import {
183
183
  getSessionPlugins
184
184
  } from "./chunk-BJSWTHRM.js";
@@ -186,7 +186,7 @@ import {
186
186
  ModelManager,
187
187
  getModelManager,
188
188
  isDefaultSlowAndCapableModel
189
- } from "./chunk-AX7D3TRL.js";
189
+ } from "./chunk-7VUZ7F6O.js";
190
190
  import {
191
191
  getCodeStyle,
192
192
  getContext,
@@ -194,13 +194,13 @@ import {
194
194
  getIsGit,
195
195
  getProjectDocs,
196
196
  getProjectStructureStatisticsBlock
197
- } from "./chunk-ZIIUNR5I.js";
197
+ } from "./chunk-7JZLL27D.js";
198
198
  import {
199
199
  ripGrep
200
- } from "./chunk-DUPGYYL5.js";
200
+ } from "./chunk-EWFAAFFD.js";
201
201
  import {
202
202
  getTheme
203
- } from "./chunk-UZLOWDHI.js";
203
+ } from "./chunk-7CLUNX6N.js";
204
204
  import {
205
205
  DEFAULT_GLOBAL_CONFIG,
206
206
  enableConfigs,
@@ -213,7 +213,7 @@ import {
213
213
  saveGlobalConfig,
214
214
  setAllPointersToModel,
215
215
  setModelPointer
216
- } from "./chunk-Y4GYDU7C.js";
216
+ } from "./chunk-ZT6BL4GJ.js";
217
217
  import {
218
218
  AbortError
219
219
  } from "./chunk-RQVLBMP7.js";
@@ -222,7 +222,7 @@ import {
222
222
  getCurrentRequest,
223
223
  logUserFriendly,
224
224
  markPhase
225
- } from "./chunk-UI6SHGSM.js";
225
+ } from "./chunk-YPA63LLM.js";
226
226
  import {
227
227
  ASCII_LOGO,
228
228
  BunShell,
@@ -262,10 +262,10 @@ import {
262
262
  setCwd,
263
263
  shouldApplyToolOutputTruncation,
264
264
  truncateToolOutput
265
- } from "./chunk-XE5USG7G.js";
265
+ } from "./chunk-OYOVAWVJ.js";
266
266
  import {
267
267
  MACRO
268
- } from "./chunk-EKBV663F.js";
268
+ } from "./chunk-P64FZW37.js";
269
269
  import {
270
270
  __export
271
271
  } from "./chunk-I3J4JYES.js";
@@ -446,7 +446,7 @@ var getCommandSubcommandPrefix = memoize(
446
446
  var getCommandPrefix = memoize(
447
447
  async (command4, abortSignal) => {
448
448
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
449
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-WTC26PPD.js");
449
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-OGMPR5GE.js");
450
450
  const response = await queryQuick2({
451
451
  systemPrompt,
452
452
  userPrompt,
@@ -4248,7 +4248,7 @@ function formatParseError(error) {
4248
4248
  return error instanceof Error ? error.message : String(error);
4249
4249
  }
4250
4250
  async function defaultGateQuery(args) {
4251
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-WTC26PPD.js");
4251
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-OGMPR5GE.js");
4252
4252
  const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
4253
4253
  const messages = [
4254
4254
  {
@@ -6509,7 +6509,7 @@ var FileEditTool = {
6509
6509
  const originalFileContent = currentFileContent;
6510
6510
  let totalPatch = [];
6511
6511
  const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
6512
- const { findLspAnchor } = await import("./lspAnchor-V3SHZVR2.js");
6512
+ const { findLspAnchor } = await import("./lspAnchor-RX7NJOBQ.js");
6513
6513
  for (const op of editOperations) {
6514
6514
  const normalizedSearch = normalizeLineEndings(op.search);
6515
6515
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -7934,7 +7934,7 @@ var GlobTool = {
7934
7934
  renderResultForAssistant(output) {
7935
7935
  let result = output.filenames.join("\n");
7936
7936
  if (output.filenames.length === 0) {
7937
- result = "No files found";
7937
+ result = "No files found\nSuggestion: use LS to confirm directory structure, then use a broader path or a broader glob (e.g., src/**/*), and check ignore rules if needed.";
7938
7938
  } else if (output.truncated) {
7939
7939
  result += "\n(Results are truncated. Consider using a more specific path or pattern.)";
7940
7940
  }
@@ -8132,14 +8132,14 @@ var GrepTool = {
8132
8132
 
8133
8133
  ${result.semanticNotice}` : base;
8134
8134
  if (result.mode === "content") {
8135
- const base = truncateToCharBudget(result.content || "No matches found");
8135
+ const base = result.content && result.content.length > 0 ? truncateToCharBudget(result.content) : "No matches found\nSuggestion: confirm search scope (use LS/Glob), 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.";
8136
8136
  const withPagination = pagination ? `${base}
8137
8137
 
8138
8138
  [Showing results with pagination = ${pagination}]` : base;
8139
8139
  return appendNotice(withPagination);
8140
8140
  }
8141
8141
  if (result.mode === "count") {
8142
- const base = truncateToCharBudget(result.content || "No matches found");
8142
+ const base = result.content && result.content.length > 0 ? truncateToCharBudget(result.content) : "No matches found\nSuggestion: confirm search scope (use LS/Glob), 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.";
8143
8143
  const numMatches = result.numMatches ?? 0;
8144
8144
  const numFiles = result.numFiles ?? 0;
8145
8145
  const summary = base + `
@@ -8147,7 +8147,11 @@ ${result.semanticNotice}` : base;
8147
8147
  Found ${numMatches} total ${numMatches === 1 ? "occurrence" : "occurrences"} across ${numFiles} ${numFiles === 1 ? "file" : "files"}.` + (pagination ? ` with pagination = ${pagination}` : "");
8148
8148
  return appendNotice(summary);
8149
8149
  }
8150
- if (result.numFiles === 0) return appendNotice("No files found");
8150
+ if (result.numFiles === 0) {
8151
+ return appendNotice(
8152
+ "No files found\nSuggestion: confirm search scope (use LS/Glob), 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."
8153
+ );
8154
+ }
8151
8155
  const header = `Found ${result.numFiles} file${result.numFiles === 1 ? "" : "s"}${pagination ? ` ${pagination}` : ""}
8152
8156
  ${result.filenames.join("\n")}`;
8153
8157
  return appendNotice(truncateToCharBudget(header));
@@ -11070,7 +11074,7 @@ async function createAndStoreApiKey(accessToken) {
11070
11074
  }
11071
11075
  saveGlobalConfig(config2);
11072
11076
  try {
11073
- const { resetAnthropicClient } = await import("./llm-WTC26PPD.js");
11077
+ const { resetAnthropicClient } = await import("./llm-OGMPR5GE.js");
11074
11078
  resetAnthropicClient();
11075
11079
  } catch {
11076
11080
  }
@@ -15352,7 +15356,7 @@ async function refreshPluginRuntimeFromInstalls() {
15352
15356
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
15353
15357
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
15354
15358
  if (dirs.length === 0) return [];
15355
- const { configureSessionPlugins } = await import("./pluginRuntime-XYBSQJAU.js");
15359
+ const { configureSessionPlugins } = await import("./pluginRuntime-SYDBIIWL.js");
15356
15360
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
15357
15361
  return errors;
15358
15362
  }
@@ -16021,7 +16025,7 @@ async function call(onDone, context) {
16021
16025
  ModelConfig,
16022
16026
  {
16023
16027
  onClose: () => {
16024
- import("./model-KBT7MSFR.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16028
+ import("./model-26MQKGED.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16025
16029
  reloadModelManager2();
16026
16030
  triggerModelConfigChange();
16027
16031
  onDone();
@@ -23756,7 +23760,7 @@ function useStatusLine() {
23756
23760
  // src/ui/components/PromptInput.tsx
23757
23761
  async function interpretHashCommand(input) {
23758
23762
  try {
23759
- const { queryQuick: queryQuick2 } = await import("./llm-WTC26PPD.js");
23763
+ const { queryQuick: queryQuick2 } = await import("./llm-OGMPR5GE.js");
23760
23764
  const systemPrompt = [
23761
23765
  "You're helping the user structure notes that will be added to their PYB.md file.",
23762
23766
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -24069,7 +24073,7 @@ function PromptInput({
24069
24073
  if (messages2.length) {
24070
24074
  if (mode === "bash") {
24071
24075
  onQuery(messages2, newAbortController).then(async () => {
24072
- const { getCwd: getCwd2 } = await import("./state-MWT54BRL.js");
24076
+ const { getCwd: getCwd2 } = await import("./state-5SSMFU6R.js");
24073
24077
  setCurrentPwd(getCwd2());
24074
24078
  });
24075
24079
  } else {
@@ -26939,7 +26943,7 @@ import { homedir as homedir7 } from "os";
26939
26943
  // src/commands/agents/generation.ts
26940
26944
  import { randomUUID as randomUUID5 } from "crypto";
26941
26945
  async function generateAgentWithClaude(prompt) {
26942
- const { queryModel } = await import("./llm-WTC26PPD.js");
26946
+ const { queryModel } = await import("./llm-OGMPR5GE.js");
26943
26947
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
26944
26948
 
26945
26949
  Return your response as a JSON object with exactly these fields:
@@ -30949,14 +30953,6 @@ It is critical that you mark todos as completed as soon as you are done with a t
30949
30953
  6. **Semantic Search**: When searching for code concepts (e.g. "AuthLogic", "UserHandler") rather than exact filenames, prefer using \`GlobTool\` with \`semantic: true\`. This leverages LSP to find files by their content definitions.
30950
30954
  7. **Reference Guard**: Be aware that deleting files might be blocked if they are referenced elsewhere. If the \`DeleteTool\` blocks you, check the references it reports. Only use \`force: true\` if you are refactoring and intentionally removing those references.
30951
30955
 
30952
- # LSP \u540E\u7F6E\u4E0E\u8303\u56F4\u9650\u5236
30953
- - \u4F18\u5148\u987A\u5E8F\uFF1A\u7ED3\u6784\u6811 -> \u70ED\u70B9\u5B9A\u4F4D -> Read -> LSP
30954
- - workspaceSymbol \u5FC5\u987B\u63D0\u4F9B\u660E\u786E\u7684\u8DEF\u5F84/\u6A21\u5757\u8303\u56F4\uFF0C\u907F\u514D\u5BF9\u5168\u4ED3\u5E93\u65E0\u754C\u67E5\u8BE2
30955
- - documentSymbol \u7684\u4F18\u5148\u7EA7\u7531 LspFacade \u51B3\u5B9A\uFF08\u9ED8\u8BA4 LSP \u4F18\u5148\uFF0CTree-Sitter \u515C\u5E95\uFF09
30956
-
30957
- # \u8DEF\u5F84\u5206\u7247\u7B56\u7565
30958
- - \u6839\u2192\u6838\u5FC3\u76EE\u5F55\u2192\u4E8C\u7EA7\u6A21\u5757
30959
-
30960
30956
  # Memory
30961
30957
  If the current working directory contains a file called ${PROJECT_FILE}, it will be automatically added to your context. This file serves multiple purposes:
30962
30958
  1. Storing frequently used bash commands (build, test, lint, etc.) so you can use them without searching each time
@@ -30989,14 +30985,16 @@ assistant: Yes
30989
30985
  </example>
30990
30986
 
30991
30987
  <example>
30992
- user: what command should I run to list files in the current directory?
30993
- assistant: [uses the Glob tool to list the files in the current directory]
30988
+ user: locate where auth token refresh is implemented in a large repo
30989
+ assistant: [uses the LS tool to scan top-level structure]
30990
+ [uses the Glob tool to find candidate auth-related files]
30991
+ [uses the Grep tool to search for token refresh patterns]
30992
+ [uses the Read tool to inspect the most likely file]
30994
30993
  </example>
30995
30994
 
30996
30995
  <example>
30997
- user: what command should I run to watch files in the current directory?
30998
- assistant: [use the Glob tool to list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]
30999
- npm run dev
30996
+ user: find all .ts and .tsx files under src/
30997
+ assistant: [uses the Glob tool to match files under src/]
31000
30998
  </example>
31001
30999
 
31002
31000
  <example>
@@ -31010,8 +31008,8 @@ assistant: [uses Delete tool to remove 'temp' directory and all '*.log' files in
31010
31008
  </example>
31011
31009
 
31012
31010
  <example>
31013
- user: what files are in the directory src/?
31014
- assistant: [uses Glob tool and sees foo.c, bar.c, baz.c]
31011
+ user: list files in the directory src/
31012
+ assistant: [uses the LS tool to list files and sees foo.c, bar.c, baz.c]
31015
31013
  user: which file contains the implementation of foo?
31016
31014
  assistant: src/foo.c
31017
31015
  </example>
@@ -31062,7 +31060,7 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
31062
31060
 
31063
31061
  # Tool usage policy
31064
31062
  - When doing file search, prefer to use the Task tool in order to reduce context usage.
31065
- - For file system exploration (listing files, checking directories), ALWAYS use the Glob tool first. Only use Bash for executing scripts or binaries.
31063
+ - For file system exploration (listing files, checking directories), first use LS to build structure context, then use Glob to narrow paths. Only use Bash for executing scripts or binaries.
31066
31064
  - You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
31067
31065
  - If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.
31068
31066
  - It is always better to speculatively read multiple files as a batch that are potentially useful.