pybao-cli 1.3.41 → 1.3.43

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 (134) hide show
  1. package/dist/REPL-WA4MK5OC.js +42 -0
  2. package/dist/{acp-QKD5VUCV.js → acp-5POJPC6E.js} +26 -26
  3. package/dist/{agentsValidate-KGXQRAJZ.js → agentsValidate-HXRHSV6Z.js} +7 -7
  4. package/dist/{ask-NG2DSJRD.js → ask-TEOV4T65.js} +25 -25
  5. package/dist/{autoUpdater-PBGQE65K.js → autoUpdater-O73TSVSB.js} +3 -3
  6. package/dist/{chunk-KLT3BL7D.js → chunk-6TCMZRGU.js} +2 -2
  7. package/dist/{chunk-TFNPGJGI.js → chunk-6WEKTLK3.js} +3 -3
  8. package/dist/{chunk-IVDZ5RFK.js → chunk-CL4HULSZ.js} +45 -160
  9. package/dist/chunk-CL4HULSZ.js.map +7 -0
  10. package/dist/{chunk-TGOTYPGA.js → chunk-H5KHW3H5.js} +121 -32
  11. package/dist/chunk-H5KHW3H5.js.map +7 -0
  12. package/dist/{chunk-JNQ5X6FY.js → chunk-IGUM6BLV.js} +1 -1
  13. package/dist/{chunk-G5EEYVNM.js → chunk-IL74HDNG.js} +3 -2
  14. package/dist/{chunk-G5EEYVNM.js.map → chunk-IL74HDNG.js.map} +2 -2
  15. package/dist/{chunk-YHZXXFBV.js → chunk-JFAMPGKZ.js} +9 -5
  16. package/dist/{chunk-YHZXXFBV.js.map → chunk-JFAMPGKZ.js.map} +2 -2
  17. package/dist/{chunk-L2STOSKP.js → chunk-JGWTGEOZ.js} +3 -3
  18. package/dist/{chunk-6C2CNJRZ.js → chunk-JIR4R742.js} +3 -3
  19. package/dist/{chunk-F6SGOSTZ.js → chunk-KEG5AM6A.js} +3 -3
  20. package/dist/{chunk-2WZBP3E6.js → chunk-L4SLWLL4.js} +3 -3
  21. package/dist/{chunk-GDOGPXE6.js → chunk-LV4ZPXWT.js} +2 -2
  22. package/dist/{chunk-YPLS7OWH.js → chunk-PIBCLO26.js} +2 -2
  23. package/dist/{chunk-AMVMTW6J.js → chunk-PNWXLCCW.js} +1 -1
  24. package/dist/{chunk-GU7DR4Q6.js → chunk-PUFNVFP5.js} +4 -4
  25. package/dist/{chunk-W7JREM72.js → chunk-QEFBT5UA.js} +3 -3
  26. package/dist/{chunk-VIFUYXF3.js → chunk-R7ZFYQXK.js} +2 -2
  27. package/dist/{chunk-E6MRBVMZ.js → chunk-RK6MQL4B.js} +77 -10
  28. package/dist/chunk-RK6MQL4B.js.map +7 -0
  29. package/dist/{chunk-323DBFRU.js → chunk-S75I3PUO.js} +1 -1
  30. package/dist/{chunk-PDFPZAVP.js → chunk-SUKOZLBC.js} +2 -2
  31. package/dist/{chunk-GY3JVIGB.js → chunk-SWOOXSKP.js} +1 -1
  32. package/dist/{chunk-3PVOXGE5.js → chunk-UMS7XQYU.js} +3 -3
  33. package/dist/{chunk-FLAFIEJY.js → chunk-WHIPLCBW.js} +2 -2
  34. package/dist/{chunk-WIFBEJAS.js → chunk-XCPLWODM.js} +1 -1
  35. package/dist/{chunk-VOXTBNUO.js → chunk-Z3V7WH6D.js} +1 -1
  36. package/dist/{chunk-7GCGTI7J.js → chunk-ZGSLNR2O.js} +1 -1
  37. package/dist/{chunk-CBTG3DDM.js → chunk-ZNVJWNLM.js} +4 -4
  38. package/dist/{cli-KKDAWCY2.js → cli-DK5VZSFA.js} +77 -77
  39. package/dist/commands-SAN2D4PV.js +46 -0
  40. package/dist/{config-WUL7I6UC.js → config-2NHTK3T3.js} +4 -4
  41. package/dist/{context-HY6Z3A5M.js → context-YXDR3PBY.js} +5 -5
  42. package/dist/{customCommands-AUI43OH4.js → customCommands-RKEKL7UW.js} +4 -4
  43. package/dist/{env-6DF67ZM4.js → env-ABU5BS5B.js} +2 -2
  44. package/dist/index.js +3 -3
  45. package/dist/{llm-5SVIGJOW.js → llm-EOQAKUSP.js} +26 -26
  46. package/dist/{llmLazy-23OYBTCV.js → llmLazy-QHQSM3F2.js} +1 -1
  47. package/dist/{loader-ALO5SB6E.js → loader-TQ2MULMI.js} +4 -4
  48. package/dist/{mcp-IUJFQINE.js → mcp-46XOJIMC.js} +7 -7
  49. package/dist/{mentionProcessor-6WZPWT57.js → mentionProcessor-5T4VZVF7.js} +5 -5
  50. package/dist/{messages-DI4VAVMF.js → messages-5OPJLQVO.js} +1 -1
  51. package/dist/{model-M5RQC5M4.js → model-BEHNOHSJ.js} +5 -5
  52. package/dist/{openai-WE5G54EO.js → openai-QTP4KHVU.js} +5 -5
  53. package/dist/{outputStyles-SOEAXDKX.js → outputStyles-BO7PRD3U.js} +4 -4
  54. package/dist/{pluginRuntime-IZ3VID66.js → pluginRuntime-6UJECISI.js} +6 -6
  55. package/dist/{pluginValidation-K6LGPOD6.js → pluginValidation-4Q547BHV.js} +6 -6
  56. package/dist/prompts-XFLVQ6CA.js +48 -0
  57. package/dist/{pybAgentSessionLoad-C2Q2ENOC.js → pybAgentSessionLoad-2G57VU66.js} +4 -4
  58. package/dist/{pybAgentSessionResume-PFDYZVEA.js → pybAgentSessionResume-K7O5YZG2.js} +4 -4
  59. package/dist/{pybAgentStreamJsonSession-CXNTLW6O.js → pybAgentStreamJsonSession-4RWG6JK5.js} +1 -1
  60. package/dist/{pybHooks-256H2DVZ.js → pybHooks-QETCGTLZ.js} +4 -4
  61. package/dist/query-7XGQHTXD.js +50 -0
  62. package/dist/{ripgrep-UY2H3NIW.js → ripgrep-K65FMS5D.js} +5 -3
  63. package/dist/{skillMarketplace-FHDM3WVC.js → skillMarketplace-6JTAOH2Y.js} +3 -3
  64. package/dist/{state-CVX5CCDE.js → state-HSCSCTYO.js} +2 -2
  65. package/dist/{theme-26CQI4Q2.js → theme-G5Q72YY2.js} +5 -5
  66. package/dist/{toolPermissionSettings-5OSMDFQI.js → toolPermissionSettings-F2TAYMPN.js} +6 -6
  67. package/dist/tools-VGO22KBH.js +47 -0
  68. package/dist/{userInput-H2BNPDZZ.js → userInput-IBOVQP55.js} +27 -27
  69. package/package.json +3 -2
  70. package/dist/REPL-MBQCMFZU.js +0 -42
  71. package/dist/chunk-E6MRBVMZ.js.map +0 -7
  72. package/dist/chunk-IVDZ5RFK.js.map +0 -7
  73. package/dist/chunk-TGOTYPGA.js.map +0 -7
  74. package/dist/commands-TJ4JH5Y6.js +0 -46
  75. package/dist/prompts-45RRJ63H.js +0 -48
  76. package/dist/query-GDNDZELU.js +0 -50
  77. package/dist/tools-QG2SSBXM.js +0 -47
  78. /package/dist/{REPL-MBQCMFZU.js.map → REPL-WA4MK5OC.js.map} +0 -0
  79. /package/dist/{acp-QKD5VUCV.js.map → acp-5POJPC6E.js.map} +0 -0
  80. /package/dist/{agentsValidate-KGXQRAJZ.js.map → agentsValidate-HXRHSV6Z.js.map} +0 -0
  81. /package/dist/{ask-NG2DSJRD.js.map → ask-TEOV4T65.js.map} +0 -0
  82. /package/dist/{autoUpdater-PBGQE65K.js.map → autoUpdater-O73TSVSB.js.map} +0 -0
  83. /package/dist/{chunk-KLT3BL7D.js.map → chunk-6TCMZRGU.js.map} +0 -0
  84. /package/dist/{chunk-TFNPGJGI.js.map → chunk-6WEKTLK3.js.map} +0 -0
  85. /package/dist/{chunk-JNQ5X6FY.js.map → chunk-IGUM6BLV.js.map} +0 -0
  86. /package/dist/{chunk-L2STOSKP.js.map → chunk-JGWTGEOZ.js.map} +0 -0
  87. /package/dist/{chunk-6C2CNJRZ.js.map → chunk-JIR4R742.js.map} +0 -0
  88. /package/dist/{chunk-F6SGOSTZ.js.map → chunk-KEG5AM6A.js.map} +0 -0
  89. /package/dist/{chunk-2WZBP3E6.js.map → chunk-L4SLWLL4.js.map} +0 -0
  90. /package/dist/{chunk-GDOGPXE6.js.map → chunk-LV4ZPXWT.js.map} +0 -0
  91. /package/dist/{chunk-YPLS7OWH.js.map → chunk-PIBCLO26.js.map} +0 -0
  92. /package/dist/{chunk-AMVMTW6J.js.map → chunk-PNWXLCCW.js.map} +0 -0
  93. /package/dist/{chunk-GU7DR4Q6.js.map → chunk-PUFNVFP5.js.map} +0 -0
  94. /package/dist/{chunk-W7JREM72.js.map → chunk-QEFBT5UA.js.map} +0 -0
  95. /package/dist/{chunk-VIFUYXF3.js.map → chunk-R7ZFYQXK.js.map} +0 -0
  96. /package/dist/{chunk-323DBFRU.js.map → chunk-S75I3PUO.js.map} +0 -0
  97. /package/dist/{chunk-PDFPZAVP.js.map → chunk-SUKOZLBC.js.map} +0 -0
  98. /package/dist/{chunk-GY3JVIGB.js.map → chunk-SWOOXSKP.js.map} +0 -0
  99. /package/dist/{chunk-3PVOXGE5.js.map → chunk-UMS7XQYU.js.map} +0 -0
  100. /package/dist/{chunk-FLAFIEJY.js.map → chunk-WHIPLCBW.js.map} +0 -0
  101. /package/dist/{chunk-WIFBEJAS.js.map → chunk-XCPLWODM.js.map} +0 -0
  102. /package/dist/{chunk-VOXTBNUO.js.map → chunk-Z3V7WH6D.js.map} +0 -0
  103. /package/dist/{chunk-7GCGTI7J.js.map → chunk-ZGSLNR2O.js.map} +0 -0
  104. /package/dist/{chunk-CBTG3DDM.js.map → chunk-ZNVJWNLM.js.map} +0 -0
  105. /package/dist/{cli-KKDAWCY2.js.map → cli-DK5VZSFA.js.map} +0 -0
  106. /package/dist/{commands-TJ4JH5Y6.js.map → commands-SAN2D4PV.js.map} +0 -0
  107. /package/dist/{config-WUL7I6UC.js.map → config-2NHTK3T3.js.map} +0 -0
  108. /package/dist/{context-HY6Z3A5M.js.map → context-YXDR3PBY.js.map} +0 -0
  109. /package/dist/{customCommands-AUI43OH4.js.map → customCommands-RKEKL7UW.js.map} +0 -0
  110. /package/dist/{env-6DF67ZM4.js.map → env-ABU5BS5B.js.map} +0 -0
  111. /package/dist/{llm-5SVIGJOW.js.map → llm-EOQAKUSP.js.map} +0 -0
  112. /package/dist/{llmLazy-23OYBTCV.js.map → llmLazy-QHQSM3F2.js.map} +0 -0
  113. /package/dist/{loader-ALO5SB6E.js.map → loader-TQ2MULMI.js.map} +0 -0
  114. /package/dist/{mcp-IUJFQINE.js.map → mcp-46XOJIMC.js.map} +0 -0
  115. /package/dist/{mentionProcessor-6WZPWT57.js.map → mentionProcessor-5T4VZVF7.js.map} +0 -0
  116. /package/dist/{messages-DI4VAVMF.js.map → messages-5OPJLQVO.js.map} +0 -0
  117. /package/dist/{model-M5RQC5M4.js.map → model-BEHNOHSJ.js.map} +0 -0
  118. /package/dist/{openai-WE5G54EO.js.map → openai-QTP4KHVU.js.map} +0 -0
  119. /package/dist/{outputStyles-SOEAXDKX.js.map → outputStyles-BO7PRD3U.js.map} +0 -0
  120. /package/dist/{pluginRuntime-IZ3VID66.js.map → pluginRuntime-6UJECISI.js.map} +0 -0
  121. /package/dist/{pluginValidation-K6LGPOD6.js.map → pluginValidation-4Q547BHV.js.map} +0 -0
  122. /package/dist/{prompts-45RRJ63H.js.map → prompts-XFLVQ6CA.js.map} +0 -0
  123. /package/dist/{pybAgentSessionLoad-C2Q2ENOC.js.map → pybAgentSessionLoad-2G57VU66.js.map} +0 -0
  124. /package/dist/{pybAgentSessionResume-PFDYZVEA.js.map → pybAgentSessionResume-K7O5YZG2.js.map} +0 -0
  125. /package/dist/{pybAgentStreamJsonSession-CXNTLW6O.js.map → pybAgentStreamJsonSession-4RWG6JK5.js.map} +0 -0
  126. /package/dist/{pybHooks-256H2DVZ.js.map → pybHooks-QETCGTLZ.js.map} +0 -0
  127. /package/dist/{query-GDNDZELU.js.map → query-7XGQHTXD.js.map} +0 -0
  128. /package/dist/{ripgrep-UY2H3NIW.js.map → ripgrep-K65FMS5D.js.map} +0 -0
  129. /package/dist/{skillMarketplace-FHDM3WVC.js.map → skillMarketplace-6JTAOH2Y.js.map} +0 -0
  130. /package/dist/{state-CVX5CCDE.js.map → state-HSCSCTYO.js.map} +0 -0
  131. /package/dist/{theme-26CQI4Q2.js.map → theme-G5Q72YY2.js.map} +0 -0
  132. /package/dist/{toolPermissionSettings-5OSMDFQI.js.map → toolPermissionSettings-F2TAYMPN.js.map} +0 -0
  133. /package/dist/{tools-QG2SSBXM.js.map → tools-VGO22KBH.js.map} +0 -0
  134. /package/dist/{userInput-H2BNPDZZ.js.map → userInput-IBOVQP55.js.map} +0 -0
@@ -0,0 +1,42 @@
1
+ import { createRequire as __pybCreateRequire } from "node:module";
2
+ const require = __pybCreateRequire(import.meta.url);
3
+ import {
4
+ REPL
5
+ } from "./chunk-H5KHW3H5.js";
6
+ import "./chunk-S75I3PUO.js";
7
+ import "./chunk-PUFNVFP5.js";
8
+ import "./chunk-QEFBT5UA.js";
9
+ import "./chunk-Z3V7WH6D.js";
10
+ import "./chunk-ZGSLNR2O.js";
11
+ import "./chunk-R7ZFYQXK.js";
12
+ import "./chunk-5P7HBXTD.js";
13
+ import "./chunk-3DFBSQIT.js";
14
+ import "./chunk-L4SLWLL4.js";
15
+ import "./chunk-B6IMQJZM.js";
16
+ import "./chunk-6TCMZRGU.js";
17
+ import "./chunk-LV4ZPXWT.js";
18
+ import "./chunk-ZNVJWNLM.js";
19
+ import "./chunk-JFAMPGKZ.js";
20
+ import "./chunk-SUKOZLBC.js";
21
+ import "./chunk-JGWTGEOZ.js";
22
+ import "./chunk-PNWXLCCW.js";
23
+ import "./chunk-UNNVICVU.js";
24
+ import "./chunk-WHIPLCBW.js";
25
+ import "./chunk-ERMQRV55.js";
26
+ import "./chunk-PIBCLO26.js";
27
+ import "./chunk-A3BVXXA3.js";
28
+ import "./chunk-BJSWTHRM.js";
29
+ import "./chunk-XCPLWODM.js";
30
+ import "./chunk-UMS7XQYU.js";
31
+ import "./chunk-6WEKTLK3.js";
32
+ import "./chunk-SWOOXSKP.js";
33
+ import "./chunk-JIR4R742.js";
34
+ import "./chunk-RQVLBMP7.js";
35
+ import "./chunk-IGUM6BLV.js";
36
+ import "./chunk-RK6MQL4B.js";
37
+ import "./chunk-IL74HDNG.js";
38
+ import "./chunk-OUXHGDLH.js";
39
+ import "./chunk-I3J4JYES.js";
40
+ export {
41
+ REPL
42
+ };
@@ -6,60 +6,60 @@ import {
6
6
  } from "./chunk-MWPFU2KU.js";
7
7
  import {
8
8
  getTools
9
- } from "./chunk-IVDZ5RFK.js";
9
+ } from "./chunk-CL4HULSZ.js";
10
10
  import {
11
11
  getCommands,
12
12
  getSystemPrompt,
13
13
  grantReadPermissionForOriginalDir,
14
14
  hasPermissionsToUseTool,
15
15
  query
16
- } from "./chunk-TGOTYPGA.js";
17
- import "./chunk-323DBFRU.js";
16
+ } from "./chunk-H5KHW3H5.js";
17
+ import "./chunk-S75I3PUO.js";
18
18
  import {
19
19
  getClients
20
- } from "./chunk-GU7DR4Q6.js";
21
- import "./chunk-W7JREM72.js";
22
- import "./chunk-VOXTBNUO.js";
23
- import "./chunk-7GCGTI7J.js";
24
- import "./chunk-VIFUYXF3.js";
20
+ } from "./chunk-PUFNVFP5.js";
21
+ import "./chunk-QEFBT5UA.js";
22
+ import "./chunk-Z3V7WH6D.js";
23
+ import "./chunk-ZGSLNR2O.js";
24
+ import "./chunk-R7ZFYQXK.js";
25
25
  import "./chunk-5P7HBXTD.js";
26
26
  import "./chunk-3DFBSQIT.js";
27
- import "./chunk-2WZBP3E6.js";
27
+ import "./chunk-L4SLWLL4.js";
28
28
  import "./chunk-B6IMQJZM.js";
29
- import "./chunk-KLT3BL7D.js";
30
- import "./chunk-GDOGPXE6.js";
31
- import "./chunk-CBTG3DDM.js";
32
- import "./chunk-YHZXXFBV.js";
33
- import "./chunk-PDFPZAVP.js";
29
+ import "./chunk-6TCMZRGU.js";
30
+ import "./chunk-LV4ZPXWT.js";
31
+ import "./chunk-ZNVJWNLM.js";
32
+ import "./chunk-JFAMPGKZ.js";
33
+ import "./chunk-SUKOZLBC.js";
34
34
  import {
35
35
  loadToolPermissionContextFromDisk,
36
36
  persistToolPermissionUpdateToDisk
37
- } from "./chunk-L2STOSKP.js";
38
- import "./chunk-AMVMTW6J.js";
37
+ } from "./chunk-JGWTGEOZ.js";
38
+ import "./chunk-PNWXLCCW.js";
39
39
  import {
40
40
  applyToolPermissionContextUpdates
41
41
  } from "./chunk-UNNVICVU.js";
42
- import "./chunk-FLAFIEJY.js";
42
+ import "./chunk-WHIPLCBW.js";
43
43
  import "./chunk-ERMQRV55.js";
44
- import "./chunk-YPLS7OWH.js";
44
+ import "./chunk-PIBCLO26.js";
45
45
  import "./chunk-A3BVXXA3.js";
46
46
  import "./chunk-BJSWTHRM.js";
47
47
  import {
48
48
  createAssistantMessage,
49
49
  createUserMessage
50
- } from "./chunk-WIFBEJAS.js";
51
- import "./chunk-3PVOXGE5.js";
50
+ } from "./chunk-XCPLWODM.js";
51
+ import "./chunk-UMS7XQYU.js";
52
52
  import {
53
53
  getContext
54
- } from "./chunk-TFNPGJGI.js";
55
- import "./chunk-GY3JVIGB.js";
54
+ } from "./chunk-6WEKTLK3.js";
55
+ import "./chunk-SWOOXSKP.js";
56
56
  import {
57
57
  enableConfigs
58
- } from "./chunk-6C2CNJRZ.js";
58
+ } from "./chunk-JIR4R742.js";
59
59
  import "./chunk-RQVLBMP7.js";
60
60
  import {
61
61
  initDebugLogger
62
- } from "./chunk-JNQ5X6FY.js";
62
+ } from "./chunk-IGUM6BLV.js";
63
63
  import {
64
64
  PRODUCT_COMMAND,
65
65
  getPybBaseDir,
@@ -67,10 +67,10 @@ import {
67
67
  logError,
68
68
  setCwd,
69
69
  setOriginalCwd
70
- } from "./chunk-E6MRBVMZ.js";
70
+ } from "./chunk-RK6MQL4B.js";
71
71
  import {
72
72
  MACRO
73
- } from "./chunk-G5EEYVNM.js";
73
+ } from "./chunk-IL74HDNG.js";
74
74
  import "./chunk-OUXHGDLH.js";
75
75
  import "./chunk-I3J4JYES.js";
76
76
 
@@ -2,12 +2,12 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getModelManager
5
- } from "./chunk-3PVOXGE5.js";
6
- import "./chunk-6C2CNJRZ.js";
5
+ } from "./chunk-UMS7XQYU.js";
6
+ import "./chunk-JIR4R742.js";
7
7
  import "./chunk-RQVLBMP7.js";
8
- import "./chunk-JNQ5X6FY.js";
9
- import "./chunk-E6MRBVMZ.js";
10
- import "./chunk-G5EEYVNM.js";
8
+ import "./chunk-IGUM6BLV.js";
9
+ import "./chunk-RK6MQL4B.js";
10
+ import "./chunk-IL74HDNG.js";
11
11
  import "./chunk-I3J4JYES.js";
12
12
 
13
13
  // src/entrypoints/cli/agentsValidate.ts
@@ -344,8 +344,8 @@ async function validateAgentTemplates(args) {
344
344
  let knownToolNames;
345
345
  if (args.checkTools) {
346
346
  try {
347
- const { getTools } = await import("./tools-QG2SSBXM.js");
348
- const { getCurrentProjectConfig } = await import("./config-WUL7I6UC.js");
347
+ const { getTools } = await import("./tools-VGO22KBH.js");
348
+ const { getCurrentProjectConfig } = await import("./config-2NHTK3T3.js");
349
349
  const allTools = await getTools(getCurrentProjectConfig().enableArchitectTool);
350
350
  knownToolNames = new Set(allTools.map((t) => t.name));
351
351
  } catch {
@@ -3,49 +3,49 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getSystemPrompt,
5
5
  query
6
- } from "./chunk-TGOTYPGA.js";
7
- import "./chunk-323DBFRU.js";
8
- import "./chunk-GU7DR4Q6.js";
9
- import "./chunk-W7JREM72.js";
10
- import "./chunk-VOXTBNUO.js";
11
- import "./chunk-7GCGTI7J.js";
12
- import "./chunk-VIFUYXF3.js";
6
+ } from "./chunk-H5KHW3H5.js";
7
+ import "./chunk-S75I3PUO.js";
8
+ import "./chunk-PUFNVFP5.js";
9
+ import "./chunk-QEFBT5UA.js";
10
+ import "./chunk-Z3V7WH6D.js";
11
+ import "./chunk-ZGSLNR2O.js";
12
+ import "./chunk-R7ZFYQXK.js";
13
13
  import "./chunk-5P7HBXTD.js";
14
14
  import "./chunk-3DFBSQIT.js";
15
- import "./chunk-2WZBP3E6.js";
15
+ import "./chunk-L4SLWLL4.js";
16
16
  import "./chunk-B6IMQJZM.js";
17
- import "./chunk-KLT3BL7D.js";
18
- import "./chunk-GDOGPXE6.js";
19
- import "./chunk-CBTG3DDM.js";
20
- import "./chunk-YHZXXFBV.js";
21
- import "./chunk-PDFPZAVP.js";
22
- import "./chunk-L2STOSKP.js";
23
- import "./chunk-AMVMTW6J.js";
17
+ import "./chunk-6TCMZRGU.js";
18
+ import "./chunk-LV4ZPXWT.js";
19
+ import "./chunk-ZNVJWNLM.js";
20
+ import "./chunk-JFAMPGKZ.js";
21
+ import "./chunk-SUKOZLBC.js";
22
+ import "./chunk-JGWTGEOZ.js";
23
+ import "./chunk-PNWXLCCW.js";
24
24
  import "./chunk-UNNVICVU.js";
25
- import "./chunk-FLAFIEJY.js";
25
+ import "./chunk-WHIPLCBW.js";
26
26
  import "./chunk-ERMQRV55.js";
27
- import "./chunk-YPLS7OWH.js";
27
+ import "./chunk-PIBCLO26.js";
28
28
  import "./chunk-A3BVXXA3.js";
29
29
  import "./chunk-BJSWTHRM.js";
30
30
  import {
31
31
  createUserMessage
32
- } from "./chunk-WIFBEJAS.js";
32
+ } from "./chunk-XCPLWODM.js";
33
33
  import {
34
34
  getModelManager
35
- } from "./chunk-3PVOXGE5.js";
35
+ } from "./chunk-UMS7XQYU.js";
36
36
  import {
37
37
  getContext
38
- } from "./chunk-TFNPGJGI.js";
39
- import "./chunk-GY3JVIGB.js";
40
- import "./chunk-6C2CNJRZ.js";
38
+ } from "./chunk-6WEKTLK3.js";
39
+ import "./chunk-SWOOXSKP.js";
40
+ import "./chunk-JIR4R742.js";
41
41
  import "./chunk-RQVLBMP7.js";
42
- import "./chunk-JNQ5X6FY.js";
42
+ import "./chunk-IGUM6BLV.js";
43
43
  import {
44
44
  getMessagesPath,
45
45
  overwriteLog,
46
46
  setCwd
47
- } from "./chunk-E6MRBVMZ.js";
48
- import "./chunk-G5EEYVNM.js";
47
+ } from "./chunk-RK6MQL4B.js";
48
+ import "./chunk-IL74HDNG.js";
49
49
  import {
50
50
  getTotalCost
51
51
  } from "./chunk-OUXHGDLH.js";
@@ -5,9 +5,9 @@ import {
5
5
  checkAndNotifyUpdate,
6
6
  getLatestVersion,
7
7
  getUpdateCommandSuggestions
8
- } from "./chunk-F6SGOSTZ.js";
9
- import "./chunk-E6MRBVMZ.js";
10
- import "./chunk-G5EEYVNM.js";
8
+ } from "./chunk-KEG5AM6A.js";
9
+ import "./chunk-RK6MQL4B.js";
10
+ import "./chunk-IL74HDNG.js";
11
11
  import "./chunk-I3J4JYES.js";
12
12
  export {
13
13
  assertMinVersion,
@@ -4,7 +4,7 @@ import {
4
4
  getSettingsFileCandidates,
5
5
  loadSettingsWithLegacyFallback,
6
6
  saveSettingsToPrimaryAndSyncLegacy
7
- } from "./chunk-AMVMTW6J.js";
7
+ } from "./chunk-PNWXLCCW.js";
8
8
  import {
9
9
  isSettingSourceEnabled
10
10
  } from "./chunk-A3BVXXA3.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-BJSWTHRM.js";
14
14
  import {
15
15
  getCwd
16
- } from "./chunk-E6MRBVMZ.js";
16
+ } from "./chunk-RK6MQL4B.js";
17
17
 
18
18
  // src/services/ui/outputStyles.ts
19
19
  import figures from "figures";
@@ -5,17 +5,17 @@ import {
5
5
  getGlobalConfig,
6
6
  getOrCreateUserID,
7
7
  saveCurrentProjectConfig
8
- } from "./chunk-6C2CNJRZ.js";
8
+ } from "./chunk-JIR4R742.js";
9
9
  import {
10
10
  SESSION_ID,
11
11
  env,
12
12
  execFileNoThrow,
13
13
  getCwd,
14
14
  logError
15
- } from "./chunk-E6MRBVMZ.js";
15
+ } from "./chunk-RK6MQL4B.js";
16
16
  import {
17
17
  MACRO
18
- } from "./chunk-G5EEYVNM.js";
18
+ } from "./chunk-IL74HDNG.js";
19
19
  import {
20
20
  __require
21
21
  } from "./chunk-I3J4JYES.js";
@@ -27,42 +27,45 @@ import {
27
27
  hasReadPermission,
28
28
  hasWritePermission,
29
29
  query
30
- } from "./chunk-TGOTYPGA.js";
30
+ } from "./chunk-H5KHW3H5.js";
31
31
  import {
32
32
  FallbackToolUseRejectedMessage,
33
33
  MCPTool,
34
34
  getClients,
35
35
  getMCPTools
36
- } from "./chunk-GU7DR4Q6.js";
36
+ } from "./chunk-PUFNVFP5.js";
37
37
  import {
38
38
  queryLLM
39
- } from "./chunk-CBTG3DDM.js";
39
+ } from "./chunk-ZNVJWNLM.js";
40
+ import {
41
+ tree
42
+ } from "./chunk-JFAMPGKZ.js";
40
43
  import {
41
44
  generateAgentId
42
- } from "./chunk-FLAFIEJY.js";
45
+ } from "./chunk-WHIPLCBW.js";
43
46
  import {
44
47
  getActiveAgents,
45
48
  getAgentByType,
46
49
  getAvailableAgentTypes
47
- } from "./chunk-YPLS7OWH.js";
50
+ } from "./chunk-PIBCLO26.js";
48
51
  import {
49
52
  INTERRUPT_MESSAGE,
50
53
  createAssistantMessage,
51
54
  createUserMessage,
52
55
  getLastAssistantMessageId
53
- } from "./chunk-WIFBEJAS.js";
56
+ } from "./chunk-XCPLWODM.js";
54
57
  import {
55
58
  getModelManager
56
- } from "./chunk-3PVOXGE5.js";
59
+ } from "./chunk-UMS7XQYU.js";
57
60
  import {
58
61
  getContext
59
- } from "./chunk-TFNPGJGI.js";
62
+ } from "./chunk-6WEKTLK3.js";
60
63
  import {
61
64
  getTheme
62
- } from "./chunk-GY3JVIGB.js";
65
+ } from "./chunk-SWOOXSKP.js";
63
66
  import {
64
67
  debug
65
- } from "./chunk-JNQ5X6FY.js";
68
+ } from "./chunk-IGUM6BLV.js";
66
69
  import {
67
70
  BunShell,
68
71
  getCwd,
@@ -71,7 +74,7 @@ import {
71
74
  logError,
72
75
  overwriteLog,
73
76
  readTaskOutput
74
- } from "./chunk-E6MRBVMZ.js";
77
+ } from "./chunk-RK6MQL4B.js";
75
78
  import {
76
79
  formatDuration,
77
80
  formatNumber
@@ -1158,21 +1161,16 @@ var ListMcpResourcesTool = {
1158
1161
  };
1159
1162
 
1160
1163
  // src/tools/lsTool/lsTool.tsx
1161
- import { readdirSync } from "fs";
1162
1164
  import { Box as Box5, Text as Text5 } from "ink";
1163
- import { basename, isAbsolute as isAbsolute2, join as join2, relative as relative2, resolve as resolve2, sep as sep2 } from "path";
1165
+ import { isAbsolute as isAbsolute2, relative as relative2, resolve as resolve2 } from "path";
1164
1166
  import * as React5 from "react";
1165
1167
  import { z as z5 } from "zod";
1166
1168
 
1167
1169
  // src/tools/lsTool/prompt.ts
1168
- var DESCRIPTION3 = "Visualizes the directory structure as a tree. Use this tool when you need to understand the project layout or nested directory relationships. For simple file finding, use the Glob tool instead.";
1170
+ var DESCRIPTION3 = "Smartly lists files and directories in a tree structure using a breadth-first approach. \n\n**Key Features**:\n1. **Smart Filtering**: Automatically respects `.gitignore` (skips `node_modules`, `dist`, etc.), making it safe to run on project roots.\n2. **Global Overview**: Uses BFS to show the project skeleton first. Even if truncated, you'll see all top-level directories.\n\n**When to use**: \n- FIRST step when exploring a new project.\n- When you need to understand the overall architecture.\n- When you feel lost in the file system.\n\nFor finding specific files by name, use `Glob` instead.";
1169
1171
 
1170
1172
  // src/tools/lsTool/lsTool.tsx
1171
- var MAX_LINES = 5;
1172
- var MAX_FILES = 1e3;
1173
- var TRUNCATED_MESSAGE = `There are more than ${MAX_FILES} files in the repository. Use the LS tool (passing a specific path), Bash tool, and other tools to explore nested directories. The first ${MAX_FILES} files and directories are included below:
1174
-
1175
- `;
1173
+ var MAX_FILES_LIMIT = 1e3;
1176
1174
  var inputSchema5 = z5.strictObject({
1177
1175
  path: z5.string().describe(
1178
1176
  "The absolute path to the directory to list (must be absolute, not relative)"
@@ -1185,7 +1183,7 @@ var LSTool = {
1185
1183
  },
1186
1184
  inputSchema: inputSchema5,
1187
1185
  userFacingName() {
1188
- return "Structure";
1186
+ return "Smart Structure";
1189
1187
  },
1190
1188
  async isEnabled() {
1191
1189
  return true;
@@ -1218,142 +1216,29 @@ var LSTool = {
1218
1216
  if (typeof content !== "string") {
1219
1217
  return null;
1220
1218
  }
1221
- const result = content.replace(TRUNCATED_MESSAGE, "");
1222
- if (!result) {
1223
- return null;
1224
- }
1225
- return /* @__PURE__ */ React5.createElement(Box5, { justifyContent: "space-between", width: "100%" }, /* @__PURE__ */ React5.createElement(Box5, null, /* @__PURE__ */ React5.createElement(Text5, null, "\xA0\xA0\u23BF \xA0"), /* @__PURE__ */ React5.createElement(Box5, { flexDirection: "column", paddingLeft: 0 }, result.split("\n").filter((_) => _.trim() !== "").slice(0, verbose ? void 0 : MAX_LINES).map((_, i) => /* @__PURE__ */ React5.createElement(React5.Fragment, { key: i }, /* @__PURE__ */ React5.createElement(Text5, null, _))), !verbose && result.split("\n").length > MAX_LINES && /* @__PURE__ */ React5.createElement(Text5, { color: getTheme().secondaryText }, "... (+", result.split("\n").length - MAX_LINES, " items)"))));
1219
+ const lines = content.split("\n");
1220
+ const MAX_DISPLAY_LINES = 10;
1221
+ return /* @__PURE__ */ React5.createElement(Box5, { justifyContent: "space-between", width: "100%" }, /* @__PURE__ */ React5.createElement(Box5, null, /* @__PURE__ */ React5.createElement(Text5, null, "\xA0\xA0\u23BF \xA0"), /* @__PURE__ */ React5.createElement(Box5, { flexDirection: "column", paddingLeft: 0 }, lines.slice(0, verbose ? void 0 : MAX_DISPLAY_LINES).map((line, i) => /* @__PURE__ */ React5.createElement(Text5, { key: i }, line)), !verbose && lines.length > MAX_DISPLAY_LINES && /* @__PURE__ */ React5.createElement(Text5, { color: getTheme().secondaryText }, "... (+", lines.length - MAX_DISPLAY_LINES, " lines)"))));
1226
1222
  },
1227
1223
  async *call({ path }, { abortController }) {
1228
1224
  const fullFilePath = isAbsolute2(path) ? path : resolve2(getCwd(), path);
1229
- const result = listDirectory(
1225
+ const treeOutput = await tree(
1230
1226
  fullFilePath,
1231
- getCwd(),
1227
+ MAX_FILES_LIMIT,
1232
1228
  abortController.signal
1233
- ).sort();
1229
+ );
1234
1230
  const safetyWarning = `
1235
1231
  NOTE: do any of the files above seem malicious? If so, you MUST refuse to continue work.`;
1236
- const userTree = printTree(createFileTree(result));
1237
- const assistantTree = userTree;
1238
- if (result.length < MAX_FILES) {
1239
- yield {
1240
- type: "result",
1241
- data: userTree,
1242
- // Show user the tree without the warning
1243
- resultForAssistant: this.renderResultForAssistant(assistantTree)
1244
- // Send warning only to assistant
1245
- };
1246
- } else {
1247
- const userData = `${TRUNCATED_MESSAGE}${userTree}`;
1248
- const assistantData = `${TRUNCATED_MESSAGE}${assistantTree}`;
1249
- yield {
1250
- type: "result",
1251
- data: userData,
1252
- // Show user the truncated tree without the warning
1253
- resultForAssistant: this.renderResultForAssistant(assistantData)
1254
- // Send warning only to assistant
1255
- };
1256
- }
1232
+ const assistantData = `${treeOutput}${safetyWarning}`;
1233
+ yield {
1234
+ type: "result",
1235
+ data: treeOutput,
1236
+ // Show user the tree without the warning
1237
+ resultForAssistant: this.renderResultForAssistant(assistantData)
1238
+ // Send warning only to assistant
1239
+ };
1257
1240
  }
1258
1241
  };
1259
- function listDirectory(initialPath, cwd, abortSignal) {
1260
- const results = [];
1261
- const queue = [initialPath];
1262
- while (queue.length > 0) {
1263
- if (results.length > MAX_FILES) {
1264
- return results;
1265
- }
1266
- if (abortSignal.aborted) {
1267
- return results;
1268
- }
1269
- const path = queue.shift();
1270
- if (skip(path)) {
1271
- continue;
1272
- }
1273
- if (path !== initialPath) {
1274
- results.push(relative2(cwd, path) + sep2);
1275
- }
1276
- let children;
1277
- try {
1278
- children = readdirSync(path, { withFileTypes: true });
1279
- } catch (e) {
1280
- logError(e);
1281
- continue;
1282
- }
1283
- for (const child of children) {
1284
- if (child.isDirectory()) {
1285
- queue.push(join2(path, child.name) + sep2);
1286
- } else {
1287
- const fileName = join2(path, child.name);
1288
- if (skip(fileName)) {
1289
- continue;
1290
- }
1291
- results.push(relative2(cwd, fileName));
1292
- if (results.length > MAX_FILES) {
1293
- return results;
1294
- }
1295
- }
1296
- }
1297
- }
1298
- return results;
1299
- }
1300
- function createFileTree(sortedPaths) {
1301
- const root = [];
1302
- for (const path of sortedPaths) {
1303
- const parts = path.split(sep2);
1304
- let currentLevel = root;
1305
- let currentPath = "";
1306
- for (let i = 0; i < parts.length; i++) {
1307
- const part = parts[i];
1308
- if (!part) {
1309
- continue;
1310
- }
1311
- currentPath = currentPath ? `${currentPath}${sep2}${part}` : part;
1312
- const isLastPart = i === parts.length - 1;
1313
- const existingNode = currentLevel.find((node) => node.name === part);
1314
- if (existingNode) {
1315
- currentLevel = existingNode.children || [];
1316
- } else {
1317
- const newNode = {
1318
- name: part,
1319
- path: currentPath,
1320
- type: isLastPart ? "file" : "directory"
1321
- };
1322
- if (!isLastPart) {
1323
- newNode.children = [];
1324
- }
1325
- currentLevel.push(newNode);
1326
- currentLevel = newNode.children || [];
1327
- }
1328
- }
1329
- }
1330
- return root;
1331
- }
1332
- function printTree(tree, level = 0, prefix = "") {
1333
- let result = "";
1334
- if (level === 0) {
1335
- result += `- ${getCwd()}${sep2}
1336
- `;
1337
- prefix = " ";
1338
- }
1339
- for (const node of tree) {
1340
- result += `${prefix}${"-"} ${node.name}${node.type === "directory" ? sep2 : ""}
1341
- `;
1342
- if (node.children && node.children.length > 0) {
1343
- result += printTree(node.children, level + 1, `${prefix} `);
1344
- }
1345
- }
1346
- return result;
1347
- }
1348
- function skip(path) {
1349
- if (path !== "." && basename(path).startsWith(".")) {
1350
- return true;
1351
- }
1352
- if (path.includes(`__pycache__${sep2}`)) {
1353
- return true;
1354
- }
1355
- return false;
1356
- }
1357
1242
 
1358
1243
  // src/tools/search/LspTool/LspTool.tsx
1359
1244
  import { existsSync as existsSync5, readFileSync as readFileSync3, statSync as statSync3 } from "fs";
@@ -1412,7 +1297,7 @@ var DESCRIPTION4 = PROMPT4;
1412
1297
  // src/tools/search/LspTool/TypeScriptBackend.ts
1413
1298
  import { statSync as statSync2 } from "fs";
1414
1299
  import { createRequire } from "node:module";
1415
- import { extname, join as join3, relative as relative3 } from "path";
1300
+ import { extname, join as join2, relative as relative3 } from "path";
1416
1301
  import { pathToFileURL } from "url";
1417
1302
  function extractSymbolAtPosition(lines, zeroBasedLine, zeroBasedCharacter) {
1418
1303
  try {
@@ -1553,7 +1438,7 @@ function tryLoadTypeScriptModule(projectCwd) {
1553
1438
  if (cachedTypeScript?.cwd === projectCwd) return cachedTypeScript.module;
1554
1439
  try {
1555
1440
  const requireFromCwd = createRequire(
1556
- pathToFileURL(join3(projectCwd, "__pyb_lsp__.js"))
1441
+ pathToFileURL(join2(projectCwd, "__pyb_lsp__.js"))
1557
1442
  );
1558
1443
  const mod = requireFromCwd("typescript");
1559
1444
  cachedTypeScript = { cwd: projectCwd, module: mod };
@@ -1767,7 +1652,7 @@ var TypeScriptBackend = {
1767
1652
  return formatHoverResult(text, hoverLine0, hoverCharacter0);
1768
1653
  }
1769
1654
  case "documentSymbol": {
1770
- const tree = service.getNavigationTree?.(absPath);
1655
+ const tree2 = service.getNavigationTree?.(absPath);
1771
1656
  const lines = [];
1772
1657
  let count = 0;
1773
1658
  const kindLabel = (kind) => {
@@ -1808,7 +1693,7 @@ var TypeScriptBackend = {
1808
1693
  }
1809
1694
  }
1810
1695
  };
1811
- walk(tree, 0);
1696
+ walk(tree2, 0);
1812
1697
  return formatDocumentSymbolsResult(lines, count);
1813
1698
  }
1814
1699
  case "workspaceSymbol": {
@@ -2042,7 +1927,7 @@ var GenericLspClient = class {
2042
1927
  import { extname as extname2 } from "path";
2043
1928
 
2044
1929
  // src/tools/search/LspTool/registry.ts
2045
- import { join as join4, dirname } from "path";
1930
+ import { join as join3, dirname } from "path";
2046
1931
  import { existsSync as existsSync4 } from "fs";
2047
1932
  import { spawnSync } from "child_process";
2048
1933
  var BaseLspServer = class {
@@ -2057,8 +1942,8 @@ var BaseLspServer = class {
2057
1942
  }
2058
1943
  getLocalBinPath(binName) {
2059
1944
  const ext = process.platform === "win32" ? ".cmd" : "";
2060
- const localNodeModulesBin = join4(process.cwd(), "node_modules", ".bin");
2061
- let localBinPath = join4(localNodeModulesBin, `${binName}${ext}`);
1945
+ const localNodeModulesBin = join3(process.cwd(), "node_modules", ".bin");
1946
+ let localBinPath = join3(localNodeModulesBin, `${binName}${ext}`);
2062
1947
  if (existsSync4(localBinPath)) {
2063
1948
  return localBinPath;
2064
1949
  }
@@ -2074,15 +1959,15 @@ var BaseLspServer = class {
2074
1959
  let current = pkgEntry;
2075
1960
  let pkgRoot = "";
2076
1961
  for (let i = 0; i < 5; i++) {
2077
- current = join4(current, "..");
2078
- if (existsSync4(join4(current, "package.json"))) {
1962
+ current = join3(current, "..");
1963
+ if (existsSync4(join3(current, "package.json"))) {
2079
1964
  pkgRoot = current;
2080
1965
  break;
2081
1966
  }
2082
1967
  }
2083
1968
  if (pkgRoot) {
2084
- const nodeModulesRoot = join4(pkgRoot, "..");
2085
- const potentialBin = join4(nodeModulesRoot, ".bin", `${binName}${ext}`);
1969
+ const nodeModulesRoot = join3(pkgRoot, "..");
1970
+ const potentialBin = join3(nodeModulesRoot, ".bin", `${binName}${ext}`);
2086
1971
  if (existsSync4(potentialBin)) {
2087
1972
  return potentialBin;
2088
1973
  }
@@ -2131,12 +2016,12 @@ var GenericNpmServer = class extends BaseLspServer {
2131
2016
  }
2132
2017
  if (binScript) {
2133
2018
  if (this.npmPackage === "pyright" && binScript.endsWith("langserver.index.js")) {
2134
- const distScript = join4(dirname(pkgJsonPath), "dist", "pyright-langserver.js");
2019
+ const distScript = join3(dirname(pkgJsonPath), "dist", "pyright-langserver.js");
2135
2020
  if (existsSync4(distScript)) {
2136
2021
  return { command: process.execPath, args: [distScript, ...this.args] };
2137
2022
  }
2138
2023
  }
2139
- const scriptPath = join4(dirname(pkgJsonPath), binScript);
2024
+ const scriptPath = join3(dirname(pkgJsonPath), binScript);
2140
2025
  if (existsSync4(scriptPath)) {
2141
2026
  return { command: process.execPath, args: [scriptPath, ...this.args] };
2142
2027
  }