pybao-cli 1.5.49 → 1.5.50

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 (151) hide show
  1. package/dist/REPL-5XUDCAF4.js +53 -0
  2. package/dist/{acp-6X7A2AET.js → acp-VXAHCMQ4.js} +30 -30
  3. package/dist/{agentsValidate-GRUUS3WU.js → agentsValidate-PFVCK6ZC.js} +7 -7
  4. package/dist/{ask-HZDW4LTP.js → ask-7RQ2G5S3.js} +30 -30
  5. package/dist/{autoUpdater-SPEKG26M.js → autoUpdater-TDN3ABMG.js} +3 -3
  6. package/dist/{chunk-7NJKFUVQ.js → chunk-3IPEAISZ.js} +3 -3
  7. package/dist/{chunk-ALMRZ6TK.js → chunk-5ITEAEJC.js} +1 -1
  8. package/dist/{chunk-ALMRZ6TK.js.map → chunk-5ITEAEJC.js.map} +1 -1
  9. package/dist/{chunk-X7L2ZXEQ.js → chunk-5P4A6TN2.js} +2 -2
  10. package/dist/{chunk-KH3BWQJI.js → chunk-7MR3XX5X.js} +2 -2
  11. package/dist/{chunk-I33HG6MZ.js → chunk-A45A3UUU.js} +1 -1
  12. package/dist/{chunk-AIKGRPJR.js → chunk-BQCQ3DEN.js} +2 -2
  13. package/dist/{chunk-NSPAFJYF.js → chunk-C7BUAPKP.js} +3 -3
  14. package/dist/{chunk-3OA76CSA.js → chunk-CHH6TEXB.js} +1 -1
  15. package/dist/{chunk-JJNZ7WEP.js → chunk-CNBKKQSV.js} +1 -1
  16. package/dist/{chunk-NYRCQC7E.js → chunk-CNW45NOZ.js} +3 -3
  17. package/dist/{chunk-V6B67TTT.js → chunk-DBMDQEQO.js} +3 -3
  18. package/dist/{chunk-AKDLTQJZ.js → chunk-EY3ZOE75.js} +1 -1
  19. package/dist/{chunk-UEF22EAA.js → chunk-FNDIHEBT.js} +48 -10
  20. package/dist/{chunk-UEF22EAA.js.map → chunk-FNDIHEBT.js.map} +2 -2
  21. package/dist/{chunk-V633SD3K.js → chunk-IXFDCJ25.js} +3 -3
  22. package/dist/{chunk-EPTONOB3.js → chunk-J6HKEIL2.js} +1 -1
  23. package/dist/{chunk-7OKEXFNZ.js → chunk-K3QEELFX.js} +3 -3
  24. package/dist/{chunk-4DMR3345.js → chunk-KKNO6B2K.js} +38 -38
  25. package/dist/{chunk-XRHL3B3W.js → chunk-L4CGYTJQ.js} +1 -1
  26. package/dist/{chunk-E5CC5UGF.js → chunk-LE5VGGP6.js} +4 -4
  27. package/dist/{chunk-NRGFDG57.js → chunk-NBDDIZNJ.js} +2 -2
  28. package/dist/{chunk-SQL5Q5UT.js → chunk-NQGIALRP.js} +4 -4
  29. package/dist/{chunk-SCZBEZ4L.js → chunk-NRORTICH.js} +2 -2
  30. package/dist/{chunk-OT7EHZKB.js → chunk-NSFU6Y4R.js} +1 -1
  31. package/dist/{chunk-XGSD7RT6.js → chunk-PXRUNRK7.js} +1 -1
  32. package/dist/{chunk-ZBUV2OFZ.js → chunk-UJRT7VK2.js} +1 -1
  33. package/dist/{chunk-KSDMNPM3.js → chunk-VAZ4VRTA.js} +3 -3
  34. package/dist/{chunk-C2BMJGBF.js → chunk-XHAEEYYH.js} +1 -1
  35. package/dist/{chunk-F4IOWWDV.js → chunk-Y7I4XTJJ.js} +3 -3
  36. package/dist/{chunk-TBPXZUAE.js → chunk-YFVKGHW2.js} +2 -2
  37. package/dist/{chunk-ZYI3GZHI.js → chunk-ZDDVFBS4.js} +4 -4
  38. package/dist/{chunk-VII5ABW7.js → chunk-ZKW5V7MR.js} +1 -1
  39. package/dist/{cli-E24TVQWL.js → cli-PMOATR2H.js} +90 -90
  40. package/dist/commands-HA2TW7NU.js +57 -0
  41. package/dist/{config-U5HHXO56.js → config-PQYZDDGW.js} +4 -4
  42. package/dist/{context-5XAWTXIF.js → context-BWXP2WB4.js} +6 -6
  43. package/dist/{conversationPersistence-COKR4DJM.js → conversationPersistence-CS2SQ6Z6.js} +3 -3
  44. package/dist/{conversationTracker-CFWPAQJQ.js → conversationTracker-3OLKEYWM.js} +4 -4
  45. package/dist/{customCommands-KV4SPPEJ.js → customCommands-VPTXXYYR.js} +4 -4
  46. package/dist/{env-6Z2X4SGO.js → env-G5ZYCG5S.js} +2 -2
  47. package/dist/{file-EYJLYMU7.js → file-2I2KXCVN.js} +4 -4
  48. package/dist/index.js +3 -3
  49. package/dist/{llm-JRNCNUVN.js → llm-KXF74SNS.js} +31 -31
  50. package/dist/{llmLazy-ULKOVGTW.js → llmLazy-L3IJUBN2.js} +1 -1
  51. package/dist/{loader-YC2J4JQD.js → loader-CJOJNOV7.js} +4 -4
  52. package/dist/{lsp-YOU3CXAU.js → lsp-OKPL75YW.js} +6 -6
  53. package/dist/{lspAnchor-XLKJXJ4F.js → lspAnchor-7Z5YNXX3.js} +6 -6
  54. package/dist/{mcp-ZBXWPPEQ.js → mcp-C65V4JYM.js} +7 -7
  55. package/dist/{mentionProcessor-D7A5SR2F.js → mentionProcessor-EDZBHP7Y.js} +5 -5
  56. package/dist/{messages-N4BMW6FO.js → messages-YBAYUMKL.js} +1 -1
  57. package/dist/{model-3R63GBXV.js → model-7WMFC6F7.js} +5 -5
  58. package/dist/{openai-OE2BXCWW.js → openai-YWEX6G4I.js} +5 -5
  59. package/dist/{outputStyles-7NXCPWAM.js → outputStyles-N6S27KGD.js} +4 -4
  60. package/dist/{pluginRuntime-DUFKGBKI.js → pluginRuntime-3XWIAPQ7.js} +6 -6
  61. package/dist/{pluginValidation-TUI4RWTL.js → pluginValidation-2JLTTMJL.js} +6 -6
  62. package/dist/prompts-HCGQPTDJ.js +59 -0
  63. package/dist/{pybAgentSessionLoad-OHCESID3.js → pybAgentSessionLoad-XJ6XWCK5.js} +4 -4
  64. package/dist/{pybAgentSessionResume-X7TO6VQ7.js → pybAgentSessionResume-SMNXFGFB.js} +4 -4
  65. package/dist/{pybAgentStreamJsonSession-3XCK4MLN.js → pybAgentStreamJsonSession-33YU7WNJ.js} +1 -1
  66. package/dist/{pybHooks-WGTXY2KQ.js → pybHooks-6JRPW3VW.js} +4 -4
  67. package/dist/query-GGJC3XT2.js +57 -0
  68. package/dist/{registry-V4XMLWYT.js → registry-67P26WKJ.js} +5 -5
  69. package/dist/{ripgrep-ITNB4VGR.js → ripgrep-DPLWHL7O.js} +3 -3
  70. package/dist/{skillMarketplace-YYMKIEEM.js → skillMarketplace-MGU4KRUF.js} +3 -3
  71. package/dist/{state-ZQW77MQC.js → state-NZVNNCHH.js} +2 -2
  72. package/dist/{theme-L3I3PP7H.js → theme-XV4CTBG6.js} +5 -5
  73. package/dist/{toolPermissionSettings-ZHMSXSXS.js → toolPermissionSettings-NEXN25B3.js} +6 -6
  74. package/dist/tools-R7EDLOFS.js +57 -0
  75. package/dist/{userInput-VSYAOPNU.js → userInput-PHXM4ITY.js} +32 -32
  76. package/package.json +1 -1
  77. package/dist/REPL-QOH5GRZO.js +0 -53
  78. package/dist/commands-M75WK3OK.js +0 -57
  79. package/dist/prompts-VLIUTRIV.js +0 -59
  80. package/dist/query-Y332XP4J.js +0 -57
  81. package/dist/tools-CM5X3TT5.js +0 -57
  82. /package/dist/{REPL-QOH5GRZO.js.map → REPL-5XUDCAF4.js.map} +0 -0
  83. /package/dist/{acp-6X7A2AET.js.map → acp-VXAHCMQ4.js.map} +0 -0
  84. /package/dist/{agentsValidate-GRUUS3WU.js.map → agentsValidate-PFVCK6ZC.js.map} +0 -0
  85. /package/dist/{ask-HZDW4LTP.js.map → ask-7RQ2G5S3.js.map} +0 -0
  86. /package/dist/{autoUpdater-SPEKG26M.js.map → autoUpdater-TDN3ABMG.js.map} +0 -0
  87. /package/dist/{chunk-7NJKFUVQ.js.map → chunk-3IPEAISZ.js.map} +0 -0
  88. /package/dist/{chunk-X7L2ZXEQ.js.map → chunk-5P4A6TN2.js.map} +0 -0
  89. /package/dist/{chunk-KH3BWQJI.js.map → chunk-7MR3XX5X.js.map} +0 -0
  90. /package/dist/{chunk-I33HG6MZ.js.map → chunk-A45A3UUU.js.map} +0 -0
  91. /package/dist/{chunk-AIKGRPJR.js.map → chunk-BQCQ3DEN.js.map} +0 -0
  92. /package/dist/{chunk-NSPAFJYF.js.map → chunk-C7BUAPKP.js.map} +0 -0
  93. /package/dist/{chunk-3OA76CSA.js.map → chunk-CHH6TEXB.js.map} +0 -0
  94. /package/dist/{chunk-JJNZ7WEP.js.map → chunk-CNBKKQSV.js.map} +0 -0
  95. /package/dist/{chunk-NYRCQC7E.js.map → chunk-CNW45NOZ.js.map} +0 -0
  96. /package/dist/{chunk-V6B67TTT.js.map → chunk-DBMDQEQO.js.map} +0 -0
  97. /package/dist/{chunk-AKDLTQJZ.js.map → chunk-EY3ZOE75.js.map} +0 -0
  98. /package/dist/{chunk-V633SD3K.js.map → chunk-IXFDCJ25.js.map} +0 -0
  99. /package/dist/{chunk-EPTONOB3.js.map → chunk-J6HKEIL2.js.map} +0 -0
  100. /package/dist/{chunk-7OKEXFNZ.js.map → chunk-K3QEELFX.js.map} +0 -0
  101. /package/dist/{chunk-4DMR3345.js.map → chunk-KKNO6B2K.js.map} +0 -0
  102. /package/dist/{chunk-XRHL3B3W.js.map → chunk-L4CGYTJQ.js.map} +0 -0
  103. /package/dist/{chunk-E5CC5UGF.js.map → chunk-LE5VGGP6.js.map} +0 -0
  104. /package/dist/{chunk-NRGFDG57.js.map → chunk-NBDDIZNJ.js.map} +0 -0
  105. /package/dist/{chunk-SQL5Q5UT.js.map → chunk-NQGIALRP.js.map} +0 -0
  106. /package/dist/{chunk-SCZBEZ4L.js.map → chunk-NRORTICH.js.map} +0 -0
  107. /package/dist/{chunk-OT7EHZKB.js.map → chunk-NSFU6Y4R.js.map} +0 -0
  108. /package/dist/{chunk-XGSD7RT6.js.map → chunk-PXRUNRK7.js.map} +0 -0
  109. /package/dist/{chunk-ZBUV2OFZ.js.map → chunk-UJRT7VK2.js.map} +0 -0
  110. /package/dist/{chunk-KSDMNPM3.js.map → chunk-VAZ4VRTA.js.map} +0 -0
  111. /package/dist/{chunk-C2BMJGBF.js.map → chunk-XHAEEYYH.js.map} +0 -0
  112. /package/dist/{chunk-F4IOWWDV.js.map → chunk-Y7I4XTJJ.js.map} +0 -0
  113. /package/dist/{chunk-TBPXZUAE.js.map → chunk-YFVKGHW2.js.map} +0 -0
  114. /package/dist/{chunk-ZYI3GZHI.js.map → chunk-ZDDVFBS4.js.map} +0 -0
  115. /package/dist/{chunk-VII5ABW7.js.map → chunk-ZKW5V7MR.js.map} +0 -0
  116. /package/dist/{cli-E24TVQWL.js.map → cli-PMOATR2H.js.map} +0 -0
  117. /package/dist/{commands-M75WK3OK.js.map → commands-HA2TW7NU.js.map} +0 -0
  118. /package/dist/{config-U5HHXO56.js.map → config-PQYZDDGW.js.map} +0 -0
  119. /package/dist/{context-5XAWTXIF.js.map → context-BWXP2WB4.js.map} +0 -0
  120. /package/dist/{conversationPersistence-COKR4DJM.js.map → conversationPersistence-CS2SQ6Z6.js.map} +0 -0
  121. /package/dist/{conversationTracker-CFWPAQJQ.js.map → conversationTracker-3OLKEYWM.js.map} +0 -0
  122. /package/dist/{customCommands-KV4SPPEJ.js.map → customCommands-VPTXXYYR.js.map} +0 -0
  123. /package/dist/{env-6Z2X4SGO.js.map → env-G5ZYCG5S.js.map} +0 -0
  124. /package/dist/{file-EYJLYMU7.js.map → file-2I2KXCVN.js.map} +0 -0
  125. /package/dist/{llm-JRNCNUVN.js.map → llm-KXF74SNS.js.map} +0 -0
  126. /package/dist/{llmLazy-ULKOVGTW.js.map → llmLazy-L3IJUBN2.js.map} +0 -0
  127. /package/dist/{loader-YC2J4JQD.js.map → loader-CJOJNOV7.js.map} +0 -0
  128. /package/dist/{lsp-YOU3CXAU.js.map → lsp-OKPL75YW.js.map} +0 -0
  129. /package/dist/{lspAnchor-XLKJXJ4F.js.map → lspAnchor-7Z5YNXX3.js.map} +0 -0
  130. /package/dist/{mcp-ZBXWPPEQ.js.map → mcp-C65V4JYM.js.map} +0 -0
  131. /package/dist/{mentionProcessor-D7A5SR2F.js.map → mentionProcessor-EDZBHP7Y.js.map} +0 -0
  132. /package/dist/{messages-N4BMW6FO.js.map → messages-YBAYUMKL.js.map} +0 -0
  133. /package/dist/{model-3R63GBXV.js.map → model-7WMFC6F7.js.map} +0 -0
  134. /package/dist/{openai-OE2BXCWW.js.map → openai-YWEX6G4I.js.map} +0 -0
  135. /package/dist/{outputStyles-7NXCPWAM.js.map → outputStyles-N6S27KGD.js.map} +0 -0
  136. /package/dist/{pluginRuntime-DUFKGBKI.js.map → pluginRuntime-3XWIAPQ7.js.map} +0 -0
  137. /package/dist/{pluginValidation-TUI4RWTL.js.map → pluginValidation-2JLTTMJL.js.map} +0 -0
  138. /package/dist/{prompts-VLIUTRIV.js.map → prompts-HCGQPTDJ.js.map} +0 -0
  139. /package/dist/{pybAgentSessionLoad-OHCESID3.js.map → pybAgentSessionLoad-XJ6XWCK5.js.map} +0 -0
  140. /package/dist/{pybAgentSessionResume-X7TO6VQ7.js.map → pybAgentSessionResume-SMNXFGFB.js.map} +0 -0
  141. /package/dist/{pybAgentStreamJsonSession-3XCK4MLN.js.map → pybAgentStreamJsonSession-33YU7WNJ.js.map} +0 -0
  142. /package/dist/{pybHooks-WGTXY2KQ.js.map → pybHooks-6JRPW3VW.js.map} +0 -0
  143. /package/dist/{query-Y332XP4J.js.map → query-GGJC3XT2.js.map} +0 -0
  144. /package/dist/{registry-V4XMLWYT.js.map → registry-67P26WKJ.js.map} +0 -0
  145. /package/dist/{ripgrep-ITNB4VGR.js.map → ripgrep-DPLWHL7O.js.map} +0 -0
  146. /package/dist/{skillMarketplace-YYMKIEEM.js.map → skillMarketplace-MGU4KRUF.js.map} +0 -0
  147. /package/dist/{state-ZQW77MQC.js.map → state-NZVNNCHH.js.map} +0 -0
  148. /package/dist/{theme-L3I3PP7H.js.map → theme-XV4CTBG6.js.map} +0 -0
  149. /package/dist/{toolPermissionSettings-ZHMSXSXS.js.map → toolPermissionSettings-NEXN25B3.js.map} +0 -0
  150. /package/dist/{tools-CM5X3TT5.js.map → tools-R7EDLOFS.js.map} +0 -0
  151. /package/dist/{userInput-VSYAOPNU.js.map → userInput-PHXM4ITY.js.map} +0 -0
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getSettingsFileCandidates,
5
5
  loadSettingsWithLegacyFallback
6
- } from "./chunk-JJNZ7WEP.js";
6
+ } from "./chunk-CNBKKQSV.js";
7
7
  import {
8
8
  getSessionPlugins
9
9
  } from "./chunk-BJSWTHRM.js";
10
10
  import {
11
11
  getTheme
12
- } from "./chunk-AKDLTQJZ.js";
12
+ } from "./chunk-EY3ZOE75.js";
13
13
  import {
14
14
  addMcprcServerForTesting,
15
15
  getCurrentProjectConfig,
@@ -19,13 +19,13 @@ import {
19
19
  safeParseJSON,
20
20
  saveCurrentProjectConfig,
21
21
  saveGlobalConfig
22
- } from "./chunk-NYRCQC7E.js";
22
+ } from "./chunk-CNW45NOZ.js";
23
23
  import {
24
24
  PRODUCT_COMMAND,
25
25
  PRODUCT_NAME,
26
26
  getCwd,
27
27
  logMCPError
28
- } from "./chunk-ZBUV2OFZ.js";
28
+ } from "./chunk-UJRT7VK2.js";
29
29
 
30
30
  // src/services/mcp/client.ts
31
31
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
@@ -1036,7 +1036,7 @@ Usage:
1036
1036
  Notes:
1037
1037
  - The edit will FAIL if the SEARCH block matches multiple locations(ambiguous). Provide more context.
1038
1038
  - To delete code, leave the REPLACE section empty.
1039
- - To create a new file, use an empty SEARCH block with the desired content in REPLACE.
1039
+ - To create a new file with Edit, use an empty SEARCH block with the desired content in REPLACE only in efficiency-focused scenarios (for example, when you are already performing a multi-block edit workflow and adding one small new helper file in the same operation).
1040
1040
  - ALWAYS prefer editing existing files. NEVER write new files unless explicitly required.
1041
1041
  - For Jupyter Notebooks (.ipynb), use the NotebookEditTool instead.
1042
1042
 
@@ -1075,12 +1075,49 @@ var TOOL_NAME4 = "Write";
1075
1075
  var DESCRIPTION4 = "Write a file to the local filesystem.";
1076
1076
  var PROMPT3 = `Writes a file to the local filesystem.
1077
1077
 
1078
- Usage:
1079
- - This tool will overwrite the existing file if there is one at the provided path.
1080
- - If this is an existing file, you MUST use the ${TOOL_NAME2} tool first to read the file's contents. This tool will fail if you did not read the file first.
1081
- - ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
1082
- - NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.
1078
+ ## Best Practice
1079
+ - **Write vs Edit**: Use this tool when you need to create a new file or fully replace a file's content.
1080
+ - **Primary Role**: This is the default tool for new file,parent directories creation and full-file replacement.
1081
+ - **Workflow**: Locate path (Glob/Grep) -> Read existing file with ${TOOL_NAME2} when applicable -> Write full target content.
1082
+ - **Directory Handling**: If parent directories do not exist, this tool creates them automatically. Do NOT use Bash mkdir for this.
1083
+
1084
+ ## When NOT to Use Write Tool
1085
+ - **Partial updates**: If you only need to change a small section, prefer Edit instead of replacing the entire file.
1086
+ - **Unread existing file**: Do NOT overwrite an existing file unless it has been read first with ${TOOL_NAME2}.
1087
+ - **Unnecessary new files**: ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
1088
+ - **Unrequested docs**: NEVER proactively create documentation files (*.md) or README files. Only create them when explicitly requested by the User.
1089
+
1090
+ ## Usage Details
1091
+ - The file_path parameter must be an absolute path, not a relative path.
1092
+ - This tool overwrites existing files at the provided path.
1093
+ - For existing files, this tool enforces a read-before-write safety check using ${TOOL_NAME2}.
1094
+ - For new files, this tool creates missing parent directories automatically.
1095
+ - The content parameter should be the complete desired final file content.
1096
+ - Preserve repository conventions (line endings, encoding, and formatting) in the written content.
1083
1097
  - Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.
1098
+
1099
+ ## Typical Usage Examples
1100
+ ### Example 1: Create a New File in Nested Directory
1101
+ <example>
1102
+ user: Create src/features/auth/config/defaults.ts with these defaults...
1103
+ assistant: [uses Glob/Grep to confirm target area and naming conventions]
1104
+ [uses Write with file_path as absolute path under src/features/auth/config/defaults.ts]
1105
+ [Write auto-creates missing parent directories]
1106
+ </example>
1107
+
1108
+ ### Example 2: Replace Entire Existing File Safely
1109
+ <example>
1110
+ user: Rewrite this config file completely with the new schema
1111
+ assistant: [uses ${TOOL_NAME2} to read the existing file first]
1112
+ [uses Write to replace the whole file content]
1113
+ </example>
1114
+
1115
+ ### Example 3: Avoid Write for Small Localized Change
1116
+ <example>
1117
+ user: Change only one import line in this file
1118
+ assistant: [uses ${TOOL_NAME2} to inspect file]
1119
+ [uses Edit for localized update instead of Write]
1120
+ </example>
1084
1121
  `.trim();
1085
1122
 
1086
1123
  // src/tools/filesystem/GlobTool/prompt.ts
@@ -1652,6 +1689,7 @@ Usage notes:
1652
1689
  - Symbol navigation: Use ${TOOL_NAME7} (NOT ctags/gtags)
1653
1690
  - Read files: Use ${TOOL_NAME2} (NOT cat/head/tail)
1654
1691
  - Edit files: Use ${TOOL_NAME3} (NOT sed/awk)
1692
+ - Create directories/files for content writing: Use ${TOOL_NAME4} directly (NOT mkdir/touch first)
1655
1693
  - Write files: Use ${TOOL_NAME4} (NOT echo >/cat <<EOF)
1656
1694
  - Delete files: Use Delete (NOT rm/rmdir/del). Example: Delete({ file_paths: ["/path/to/file"] })
1657
1695
  - Communication: Output text directly (NOT echo/printf)