pybao-cli 1.5.8 → 1.5.9

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 (169) hide show
  1. package/dist/REPL-FDBOFOZN.js +50 -0
  2. package/dist/{acp-53E7A6L4.js → acp-TKO6ZSSV.js} +54 -36
  3. package/dist/acp-TKO6ZSSV.js.map +7 -0
  4. package/dist/{agentsValidate-VSDRHIJQ.js → agentsValidate-RDNLI7GA.js} +7 -7
  5. package/dist/{ask-XUXTH3EI.js → ask-KTXMYPIA.js} +60 -34
  6. package/dist/ask-KTXMYPIA.js.map +7 -0
  7. package/dist/{autoUpdater-GAWZB7YO.js → autoUpdater-53BZ6QWD.js} +3 -3
  8. package/dist/{chunk-WBAZ4MMW.js → chunk-276RV4DQ.js} +4 -4
  9. package/dist/{chunk-4I2M26LO.js → chunk-35X2VS4L.js} +3 -3
  10. package/dist/{chunk-RAOXUYK3.js → chunk-4C2CGHBI.js} +2 -2
  11. package/dist/{chunk-YABL4JYT.js → chunk-4KPVE4K7.js} +1 -1
  12. package/dist/{chunk-JFIH5LIP.js → chunk-57GJQMFS.js} +2 -2
  13. package/dist/{chunk-FKDSZPS4.js → chunk-6PXEXL7C.js} +2 -2
  14. package/dist/{chunk-HOBCGAUT.js → chunk-AMQ6XZOU.js} +1 -1
  15. package/dist/{chunk-5PSLFGDF.js → chunk-AWRDD6BG.js} +18 -1
  16. package/dist/chunk-AWRDD6BG.js.map +7 -0
  17. package/dist/{chunk-JZPXOQK3.js → chunk-BZGQQ4WZ.js} +3 -3
  18. package/dist/{chunk-AQXOZUAV.js → chunk-CATWZQ3R.js} +2 -2
  19. package/dist/{chunk-H67PQDUM.js → chunk-CPLMSZ63.js} +4 -4
  20. package/dist/{chunk-KRTFCQTN.js → chunk-DA6NJEFI.js} +2 -2
  21. package/dist/{chunk-46Z3GAE4.js → chunk-E35YJNX2.js} +4 -4
  22. package/dist/{chunk-DRP66QHJ.js → chunk-G7DKRXDS.js} +1 -4
  23. package/dist/{chunk-62CZOFWT.js → chunk-HIJYNCCN.js} +1 -1
  24. package/dist/{chunk-543LWZDY.js → chunk-JE43CQYI.js} +3 -3
  25. package/dist/{chunk-LNPUQ3UL.js → chunk-JLC2I3EY.js} +1 -1
  26. package/dist/chunk-JRMAK4PK.js +926 -0
  27. package/dist/chunk-JRMAK4PK.js.map +7 -0
  28. package/dist/{chunk-VW7ZPH5U.js → chunk-KNLP4UO6.js} +4 -4
  29. package/dist/chunk-L3R7MPZU.js +81 -0
  30. package/dist/{chunk-MHFWCK5F.js.map → chunk-L3R7MPZU.js.map} +1 -1
  31. package/dist/{chunk-LNE2PRIU.js → chunk-LEYWQQ7V.js} +3 -3
  32. package/dist/{chunk-Z35GPUWK.js → chunk-LIOZM4KE.js} +1 -1
  33. package/dist/chunk-OC5CZWBQ.js.map +7 -0
  34. package/dist/{chunk-TJUTH3WH.js → chunk-PH6DPTO3.js} +2014 -1318
  35. package/dist/chunk-PH6DPTO3.js.map +7 -0
  36. package/dist/{chunk-VBJ6J63U.js → chunk-PPFVOBEG.js} +144 -76
  37. package/dist/chunk-PPFVOBEG.js.map +7 -0
  38. package/dist/{chunk-IZ6NAVRD.js → chunk-Q5EZLUFC.js} +1 -1
  39. package/dist/{chunk-VRWY6YIJ.js → chunk-QMN64ICT.js} +3 -3
  40. package/dist/{chunk-4QTASHFO.js → chunk-R4ZEH3KJ.js} +1 -1
  41. package/dist/{chunk-IWKEQNWI.js → chunk-SNASBZ2C.js} +3 -3
  42. package/dist/chunk-T7P3SSAQ.js +78 -0
  43. package/dist/chunk-T7P3SSAQ.js.map +7 -0
  44. package/dist/{chunk-RFY3YUHB.js → chunk-TLZS274Y.js} +3 -3
  45. package/dist/{chunk-FQMMZCOL.js → chunk-YSL5H7NJ.js} +2 -2
  46. package/dist/{chunk-WQVP2232.js → chunk-YTEQEQ56.js} +43 -34
  47. package/dist/chunk-YTEQEQ56.js.map +7 -0
  48. package/dist/{cli-3QFWTKDS.js → cli-LYWCNPC6.js} +131 -102
  49. package/dist/cli-LYWCNPC6.js.map +7 -0
  50. package/dist/commands-DYXAWJO6.js +54 -0
  51. package/dist/{config-DFRB2SLO.js → config-66BMMOES.js} +4 -4
  52. package/dist/{context-V62FBZVF.js → context-PG7YTQCJ.js} +6 -6
  53. package/dist/conversationPersistence-DB6IUU2I.js +13 -0
  54. package/dist/{conversationTracker-DZR2N3FQ.js → conversationTracker-WG3J56PX.js} +4 -3
  55. package/dist/{customCommands-3ZIVHLTU.js → customCommands-XDKUVT73.js} +4 -4
  56. package/dist/{env-BMFEDWPX.js → env-FW74XJHK.js} +2 -2
  57. package/dist/{file-SD5NRUTD.js → file-U2NXQ6RC.js} +4 -4
  58. package/dist/index.js +3 -3
  59. package/dist/{llm-466UDKVG.js → llm-6VJMMPDO.js} +416 -49
  60. package/dist/llm-6VJMMPDO.js.map +7 -0
  61. package/dist/{llmLazy-7R7P5A3P.js → llmLazy-LYGZWC7G.js} +1 -1
  62. package/dist/{loader-X7RIUXJB.js → loader-DMZVU2XJ.js} +4 -4
  63. package/dist/{lsp-2FPBS2M3.js → lsp-6LNF5DQB.js} +6 -6
  64. package/dist/{lspAnchor-KQNSWWL3.js → lspAnchor-SF5Y7ZJT.js} +6 -6
  65. package/dist/{mcp-3SV4TZYL.js → mcp-NLDX3RQE.js} +7 -7
  66. package/dist/{mentionProcessor-KJP4IYVF.js → mentionProcessor-BMX6VGRH.js} +5 -5
  67. package/dist/{messages-BXF7LJIV.js → messages-OTQ6IJM5.js} +9 -5
  68. package/dist/{model-F6VCUHDL.js → model-KWGEASLY.js} +5 -5
  69. package/dist/{openai-QTTJIB6O.js → openai-XIRWQY5H.js} +5 -5
  70. package/dist/{outputStyles-SJ57QG7S.js → outputStyles-HKYM5C76.js} +4 -4
  71. package/dist/{pluginRuntime-4SDXCK4Q.js → pluginRuntime-25Y2MVIN.js} +6 -6
  72. package/dist/{pluginValidation-YJ4W3MX4.js → pluginValidation-CIJIQKGB.js} +6 -6
  73. package/dist/prompts-WH3VEHH6.js +56 -0
  74. package/dist/{pybAgentSessionLoad-IZULLNUL.js → pybAgentSessionLoad-TF3BFX4S.js} +4 -4
  75. package/dist/{pybAgentSessionResume-QRNTC3A3.js → pybAgentSessionResume-Y5JO4GLH.js} +4 -4
  76. package/dist/{pybAgentStreamJsonSession-RUHPYCTJ.js → pybAgentStreamJsonSession-46VLF4QN.js} +4 -3
  77. package/dist/pybAgentStreamJsonSession-46VLF4QN.js.map +7 -0
  78. package/dist/{pybHooks-GX3AIY4U.js → pybHooks-LZPU4EF6.js} +4 -4
  79. package/dist/query-4B3GTPBN.js +58 -0
  80. package/dist/{registry-JNPRNIFB.js → registry-6LUE7ZWC.js} +5 -5
  81. package/dist/{ripgrep-ZKWM7RMS.js → ripgrep-KVB55D22.js} +3 -3
  82. package/dist/{skillMarketplace-4LJAYRMX.js → skillMarketplace-2IVEPC2E.js} +3 -3
  83. package/dist/{state-I6BQR2T5.js → state-OGBESWFS.js} +2 -2
  84. package/dist/{theme-GL7HKKCQ.js → theme-QQ2SCFEK.js} +5 -5
  85. package/dist/{toolPermissionSettings-ZRTSQVQ2.js → toolPermissionSettings-ZGGPBK6S.js} +6 -6
  86. package/dist/tools-UXPFIHD4.js +55 -0
  87. package/dist/tools-UXPFIHD4.js.map +7 -0
  88. package/dist/{userInput-M6JYKQCU.js → userInput-75VCTJDE.js} +76 -49
  89. package/dist/userInput-75VCTJDE.js.map +7 -0
  90. package/package.json +18 -1
  91. package/dist/REPL-AHBTBEED.js +0 -49
  92. package/dist/acp-53E7A6L4.js.map +0 -7
  93. package/dist/ask-XUXTH3EI.js.map +0 -7
  94. package/dist/chunk-5PSLFGDF.js.map +0 -7
  95. package/dist/chunk-B62BK4YK.js +0 -516
  96. package/dist/chunk-B62BK4YK.js.map +0 -7
  97. package/dist/chunk-MHFWCK5F.js +0 -240
  98. package/dist/chunk-O6DTZU7F.js.map +0 -7
  99. package/dist/chunk-TJUTH3WH.js.map +0 -7
  100. package/dist/chunk-VBJ6J63U.js.map +0 -7
  101. package/dist/chunk-WQVP2232.js.map +0 -7
  102. package/dist/cli-3QFWTKDS.js.map +0 -7
  103. package/dist/commands-ITOHDPPP.js +0 -53
  104. package/dist/llm-466UDKVG.js.map +0 -7
  105. package/dist/prompts-5RPQRZ3L.js +0 -55
  106. package/dist/pybAgentStreamJsonSession-RUHPYCTJ.js.map +0 -7
  107. package/dist/query-YLKPJVHB.js +0 -57
  108. package/dist/tools-4GEB2BRR.js +0 -54
  109. package/dist/userInput-M6JYKQCU.js.map +0 -7
  110. /package/dist/{REPL-AHBTBEED.js.map → REPL-FDBOFOZN.js.map} +0 -0
  111. /package/dist/{agentsValidate-VSDRHIJQ.js.map → agentsValidate-RDNLI7GA.js.map} +0 -0
  112. /package/dist/{autoUpdater-GAWZB7YO.js.map → autoUpdater-53BZ6QWD.js.map} +0 -0
  113. /package/dist/{chunk-WBAZ4MMW.js.map → chunk-276RV4DQ.js.map} +0 -0
  114. /package/dist/{chunk-4I2M26LO.js.map → chunk-35X2VS4L.js.map} +0 -0
  115. /package/dist/{chunk-RAOXUYK3.js.map → chunk-4C2CGHBI.js.map} +0 -0
  116. /package/dist/{chunk-YABL4JYT.js.map → chunk-4KPVE4K7.js.map} +0 -0
  117. /package/dist/{chunk-JFIH5LIP.js.map → chunk-57GJQMFS.js.map} +0 -0
  118. /package/dist/{chunk-FKDSZPS4.js.map → chunk-6PXEXL7C.js.map} +0 -0
  119. /package/dist/{chunk-HOBCGAUT.js.map → chunk-AMQ6XZOU.js.map} +0 -0
  120. /package/dist/{chunk-JZPXOQK3.js.map → chunk-BZGQQ4WZ.js.map} +0 -0
  121. /package/dist/{chunk-AQXOZUAV.js.map → chunk-CATWZQ3R.js.map} +0 -0
  122. /package/dist/{chunk-H67PQDUM.js.map → chunk-CPLMSZ63.js.map} +0 -0
  123. /package/dist/{chunk-KRTFCQTN.js.map → chunk-DA6NJEFI.js.map} +0 -0
  124. /package/dist/{chunk-46Z3GAE4.js.map → chunk-E35YJNX2.js.map} +0 -0
  125. /package/dist/{chunk-DRP66QHJ.js.map → chunk-G7DKRXDS.js.map} +0 -0
  126. /package/dist/{chunk-62CZOFWT.js.map → chunk-HIJYNCCN.js.map} +0 -0
  127. /package/dist/{chunk-543LWZDY.js.map → chunk-JE43CQYI.js.map} +0 -0
  128. /package/dist/{chunk-LNPUQ3UL.js.map → chunk-JLC2I3EY.js.map} +0 -0
  129. /package/dist/{chunk-VW7ZPH5U.js.map → chunk-KNLP4UO6.js.map} +0 -0
  130. /package/dist/{chunk-LNE2PRIU.js.map → chunk-LEYWQQ7V.js.map} +0 -0
  131. /package/dist/{chunk-Z35GPUWK.js.map → chunk-LIOZM4KE.js.map} +0 -0
  132. /package/dist/{chunk-O6DTZU7F.js → chunk-OC5CZWBQ.js} +0 -0
  133. /package/dist/{chunk-IZ6NAVRD.js.map → chunk-Q5EZLUFC.js.map} +0 -0
  134. /package/dist/{chunk-VRWY6YIJ.js.map → chunk-QMN64ICT.js.map} +0 -0
  135. /package/dist/{chunk-4QTASHFO.js.map → chunk-R4ZEH3KJ.js.map} +0 -0
  136. /package/dist/{chunk-IWKEQNWI.js.map → chunk-SNASBZ2C.js.map} +0 -0
  137. /package/dist/{chunk-RFY3YUHB.js.map → chunk-TLZS274Y.js.map} +0 -0
  138. /package/dist/{chunk-FQMMZCOL.js.map → chunk-YSL5H7NJ.js.map} +0 -0
  139. /package/dist/{commands-ITOHDPPP.js.map → commands-DYXAWJO6.js.map} +0 -0
  140. /package/dist/{config-DFRB2SLO.js.map → config-66BMMOES.js.map} +0 -0
  141. /package/dist/{context-V62FBZVF.js.map → context-PG7YTQCJ.js.map} +0 -0
  142. /package/dist/{conversationTracker-DZR2N3FQ.js.map → conversationPersistence-DB6IUU2I.js.map} +0 -0
  143. /package/dist/{customCommands-3ZIVHLTU.js.map → conversationTracker-WG3J56PX.js.map} +0 -0
  144. /package/dist/{env-BMFEDWPX.js.map → customCommands-XDKUVT73.js.map} +0 -0
  145. /package/dist/{file-SD5NRUTD.js.map → env-FW74XJHK.js.map} +0 -0
  146. /package/dist/{llmLazy-7R7P5A3P.js.map → file-U2NXQ6RC.js.map} +0 -0
  147. /package/dist/{loader-X7RIUXJB.js.map → llmLazy-LYGZWC7G.js.map} +0 -0
  148. /package/dist/{lsp-2FPBS2M3.js.map → loader-DMZVU2XJ.js.map} +0 -0
  149. /package/dist/{mcp-3SV4TZYL.js.map → lsp-6LNF5DQB.js.map} +0 -0
  150. /package/dist/{lspAnchor-KQNSWWL3.js.map → lspAnchor-SF5Y7ZJT.js.map} +0 -0
  151. /package/dist/{messages-BXF7LJIV.js.map → mcp-NLDX3RQE.js.map} +0 -0
  152. /package/dist/{mentionProcessor-KJP4IYVF.js.map → mentionProcessor-BMX6VGRH.js.map} +0 -0
  153. /package/dist/{model-F6VCUHDL.js.map → messages-OTQ6IJM5.js.map} +0 -0
  154. /package/dist/{openai-QTTJIB6O.js.map → model-KWGEASLY.js.map} +0 -0
  155. /package/dist/{outputStyles-SJ57QG7S.js.map → openai-XIRWQY5H.js.map} +0 -0
  156. /package/dist/{pluginValidation-YJ4W3MX4.js.map → outputStyles-HKYM5C76.js.map} +0 -0
  157. /package/dist/{pluginRuntime-4SDXCK4Q.js.map → pluginRuntime-25Y2MVIN.js.map} +0 -0
  158. /package/dist/{prompts-5RPQRZ3L.js.map → pluginValidation-CIJIQKGB.js.map} +0 -0
  159. /package/dist/{pybAgentSessionLoad-IZULLNUL.js.map → prompts-WH3VEHH6.js.map} +0 -0
  160. /package/dist/{pybAgentSessionResume-QRNTC3A3.js.map → pybAgentSessionLoad-TF3BFX4S.js.map} +0 -0
  161. /package/dist/{pybHooks-GX3AIY4U.js.map → pybAgentSessionResume-Y5JO4GLH.js.map} +0 -0
  162. /package/dist/{query-YLKPJVHB.js.map → pybHooks-LZPU4EF6.js.map} +0 -0
  163. /package/dist/{registry-JNPRNIFB.js.map → query-4B3GTPBN.js.map} +0 -0
  164. /package/dist/{ripgrep-ZKWM7RMS.js.map → registry-6LUE7ZWC.js.map} +0 -0
  165. /package/dist/{skillMarketplace-4LJAYRMX.js.map → ripgrep-KVB55D22.js.map} +0 -0
  166. /package/dist/{state-I6BQR2T5.js.map → skillMarketplace-2IVEPC2E.js.map} +0 -0
  167. /package/dist/{theme-GL7HKKCQ.js.map → state-OGBESWFS.js.map} +0 -0
  168. /package/dist/{toolPermissionSettings-ZRTSQVQ2.js.map → theme-QQ2SCFEK.js.map} +0 -0
  169. /package/dist/{tools-4GEB2BRR.js.map → toolPermissionSettings-ZGGPBK6S.js.map} +0 -0
@@ -41,57 +41,58 @@ import {
41
41
  runWithTaskListEnv,
42
42
  runWithTaskListId,
43
43
  updateTask
44
- } from "./chunk-TJUTH3WH.js";
44
+ } from "./chunk-PH6DPTO3.js";
45
45
  import {
46
46
  queryLLM
47
- } from "./chunk-VW7ZPH5U.js";
47
+ } from "./chunk-KNLP4UO6.js";
48
48
  import {
49
49
  FallbackToolUseRejectedMessage,
50
50
  MCPTool,
51
51
  getClients,
52
52
  getMCPTools
53
- } from "./chunk-WBAZ4MMW.js";
53
+ } from "./chunk-276RV4DQ.js";
54
54
  import {
55
55
  emitReminderEvent
56
- } from "./chunk-FQMMZCOL.js";
56
+ } from "./chunk-YSL5H7NJ.js";
57
57
  import {
58
58
  getActiveAgents,
59
59
  getAgentByType,
60
60
  getAvailableAgentTypes
61
- } from "./chunk-KRTFCQTN.js";
61
+ } from "./chunk-DA6NJEFI.js";
62
62
  import {
63
63
  INTERRUPT_MESSAGE,
64
64
  createAssistantMessage,
65
- createUserMessage,
65
+ createUserMessageFromBlocks,
66
+ createUserMessageFromText,
66
67
  getLastAssistantMessageId
67
- } from "./chunk-B62BK4YK.js";
68
+ } from "./chunk-JRMAK4PK.js";
68
69
  import {
69
70
  formatDuration,
70
71
  formatNumber
71
72
  } from "./chunk-OUXHGDLH.js";
72
73
  import {
73
74
  getAbsolutePath
74
- } from "./chunk-JFIH5LIP.js";
75
+ } from "./chunk-57GJQMFS.js";
75
76
  import {
76
77
  LspFacade,
77
78
  formatDiagnosticsPretty
78
- } from "./chunk-H67PQDUM.js";
79
+ } from "./chunk-CPLMSZ63.js";
79
80
  import {
80
81
  getModelManager
81
- } from "./chunk-VRWY6YIJ.js";
82
+ } from "./chunk-QMN64ICT.js";
82
83
  import {
83
84
  getContext
84
- } from "./chunk-46Z3GAE4.js";
85
+ } from "./chunk-E35YJNX2.js";
85
86
  import {
86
87
  filesToTree,
87
88
  ripGrepWithStatus
88
- } from "./chunk-Z35GPUWK.js";
89
+ } from "./chunk-LIOZM4KE.js";
89
90
  import {
90
91
  getTheme
91
- } from "./chunk-YABL4JYT.js";
92
+ } from "./chunk-4KPVE4K7.js";
92
93
  import {
93
94
  debug
94
- } from "./chunk-HOBCGAUT.js";
95
+ } from "./chunk-AMQ6XZOU.js";
95
96
  import {
96
97
  BunShell,
97
98
  MEMORY_DIR,
@@ -103,7 +104,7 @@ import {
103
104
  overwriteLog,
104
105
  readTaskOutput,
105
106
  resolveXdgDataPath
106
- } from "./chunk-DRP66QHJ.js";
107
+ } from "./chunk-G7DKRXDS.js";
107
108
 
108
109
  // src/tools/index.ts
109
110
  import { memoize as memoize2 } from "lodash-es";
@@ -404,7 +405,7 @@ ${output.expertAnswer}`;
404
405
  let systemMessages;
405
406
  try {
406
407
  systemMessages = messages.map(
407
- (msg) => msg.role === "user" ? createUserMessage(msg.content) : createAssistantMessage(msg.content)
408
+ (msg) => msg.role === "user" ? createUserMessageFromText(msg.content) : createAssistantMessage(msg.content)
408
409
  );
409
410
  } catch (error) {
410
411
  logError(error);
@@ -701,6 +702,8 @@ var PROMPT = `- Retrieves output from a running or completed task (background sh
701
702
  - Works with all task types: background shells, async agents, and remote sessions`;
702
703
 
703
704
  // src/tools/system/TaskOutputTool/TaskOutputTool.tsx
705
+ var TOOL_PROGRESS_OPEN_TAG = ["<tool", "-progress>"].join("");
706
+ var TOOL_PROGRESS_CLOSE_TAG = ["</tool", "-progress>"].join("");
704
707
  var inputSchema2 = z2.strictObject({
705
708
  task_id: z2.string().describe("The task ID to get output from"),
706
709
  block: z2.boolean().optional().default(true).describe("Whether to wait for completion"),
@@ -782,7 +785,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
782
785
  if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
783
786
  try {
784
787
  const { isAbsolute: isAbsolute3, resolve: resolve4 } = await import("path");
785
- const { getSessionRoot: getSessionRoot2 } = await import("./state-I6BQR2T5.js");
788
+ const { getSessionRoot: getSessionRoot2 } = await import("./state-OGBESWFS.js");
786
789
  const lines = output.split("\n");
787
790
  const uniqueFiles = /* @__PURE__ */ new Set();
788
791
  const lspSuggestions = [];
@@ -981,8 +984,8 @@ ${output.task.output.trimEnd()}
981
984
  yield {
982
985
  type: "progress",
983
986
  content: createAssistantMessage(
984
- `<tool-progress>${initial.description ? ` ${initial.description}
985
- ` : ""} Waiting for task (esc to give additional instructions)</tool-progress>`
987
+ `${TOOL_PROGRESS_OPEN_TAG}${initial.description ? ` ${initial.description}
988
+ ` : ""} Waiting for task (esc to give additional instructions)${TOOL_PROGRESS_CLOSE_TAG}`
986
989
  )
987
990
  };
988
991
  let finalTask = null;
@@ -1049,9 +1052,6 @@ Usage:
1049
1052
  - The file_paths parameter must be an array of absolute paths.
1050
1053
  - Supports recursive deletion for directories (be careful!).
1051
1054
  - Safe and cross-platform (works on Windows/Linux/Mac).
1052
- - **Safety Check**: The tool automatically performs a reference check using LSP. If a file is referenced by other files, the deletion will be BLOCKED.
1053
- - **Forcing Deletion**: If you are sure about deleting a referenced file (e.g., refactoring), set \`force: true\` to bypass the safety check.
1054
- - If LSP reference checks are unavailable, deletion may be blocked unless \`force: true\` is used after manual dependency verification.
1055
1055
  - Do NOT use BashTool/RunCommand with 'rm', 'del', or 'rmdir'.
1056
1056
 
1057
1057
  Examples:
@@ -1155,7 +1155,7 @@ var DeleteTool = {
1155
1155
  }
1156
1156
  if (!force) {
1157
1157
  try {
1158
- const { LspFacade: LspFacade2 } = await import("./lsp-2FPBS2M3.js");
1158
+ const { LspFacade: LspFacade2 } = await import("./lsp-6LNF5DQB.js");
1159
1159
  const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
1160
1160
  if (referenceDetail) {
1161
1161
  failedItems.push(
@@ -1436,7 +1436,7 @@ info with statistics
1436
1436
  // src/tools/lsTool/lsTool.tsx
1437
1437
  var MAX_FILES_LIMIT = 0;
1438
1438
  var TOP_LEVEL_LIMIT = 5e3;
1439
- var DISPLAY_LINE_LIMIT = 1;
1439
+ var DISPLAY_LINE_LIMIT = 0;
1440
1440
  var isEnabledFlag = (raw, defaultValue = false) => {
1441
1441
  const normalized = String(raw ?? "").trim().toLowerCase();
1442
1442
  if (!normalized) return defaultValue;
@@ -1778,6 +1778,11 @@ This tool acts as your "Code Analyst". Use it to understand the codebase semanti
1778
1778
  - **Action**: Use \`diagnostics\` with \`waitForDiagnostics: true\`.
1779
1779
  - **Why**: It waits for the language server to re-analyze the file and returns fresh errors/warnings. This is your "Self-Correction" mechanism.
1780
1780
 
1781
+ ### 7. Workspace Symbol Search (Where is this symbol?)
1782
+ - **Scenario**: You need to find a class or function across the entire project.
1783
+ - **Action**: Use \`workspaceSymbol\` with a query string and a scoped filePath (module or directory).
1784
+ - **Why**: It searches across all files in the scope. **Important**: Must provide a scoped path to avoid unbounded full-repo queries.
1785
+
1781
1786
  ## Supported Operations
1782
1787
 
1783
1788
  ### Location-Based Operations (require line + character)
@@ -1822,6 +1827,7 @@ Optional:
1822
1827
  If the specified position is not on a valid symbol, the tool automatically searches for the nearest valid token:
1823
1828
  - **Search scope**: Current line, then previous line, then next line
1824
1829
  - **Priority**: Current line tokens are preferred (lower score)
1830
+ - **Skipped tokens**: Keywords (function, class, if, for, return, etc.) and operators (=, =>, +, -, &&, ||, etc.) are automatically skipped
1825
1831
  - **If no valid token found**: Returns an error message
1826
1832
 
1827
1833
  ### Best Practice for Position
@@ -2462,7 +2468,9 @@ var SUBAGENT_DISALLOWED_TOOL_NAMES = /* @__PURE__ */ new Set([
2462
2468
  "Task",
2463
2469
  "TaskOutput",
2464
2470
  "KillShell",
2465
- "AskUserQuestion"
2471
+ "AskUserQuestion",
2472
+ "MemoryRead",
2473
+ "MemoryWrite"
2466
2474
  ]);
2467
2475
  async function getTaskTools(safeMode) {
2468
2476
  return (await (!safeMode ? getTools() : getReadOnlyTools())).filter(
@@ -2587,6 +2595,8 @@ function asyncLaunchMessage(agentId) {
2587
2595
  return buildTaskAsyncPolicy(agentId);
2588
2596
  }
2589
2597
  var FORK_CONTEXT_TOOL_RESULT_TEXT = TASK_FORK_CONTEXT_POLICY;
2598
+ var TOOL_PROGRESS_OPEN_TAG2 = ["<tool", "-progress>"].join("");
2599
+ var TOOL_PROGRESS_CLOSE_TAG2 = ["</tool", "-progress>"].join("");
2590
2600
  function normalizeAgentPermissionMode(mode) {
2591
2601
  if (typeof mode !== "string") return void 0;
2592
2602
  const trimmed = mode.trim();
@@ -2616,7 +2626,7 @@ function readJsonArrayFile(path) {
2616
2626
  }
2617
2627
  }
2618
2628
  function buildForkContextForAgent(options) {
2619
- const userPromptMessage = createUserMessage(options.prompt);
2629
+ const userPromptMessage = createUserMessageFromText(options.prompt);
2620
2630
  if (!options.enabled || !options.toolUseId) {
2621
2631
  return {
2622
2632
  forkContextMessages: [],
@@ -2665,7 +2675,7 @@ function buildForkContextForAgent(options) {
2665
2675
  content: [taskToolUseBlock]
2666
2676
  }
2667
2677
  };
2668
- const forkContextToolResult = createUserMessage(
2678
+ const forkContextToolResult = createUserMessageFromBlocks(
2669
2679
  [
2670
2680
  {
2671
2681
  type: "tool_result",
@@ -2981,7 +2991,7 @@ var TaskTool = {
2981
2991
  () => getNextAvailableLogSidechainNumber(messageLogName, forkNumber)
2982
2992
  );
2983
2993
  const PROGRESS_THROTTLE_MS = 200;
2984
- const MAX_RECENT_ACTIONS = 6;
2994
+ const MAX_RECENT_ACTIONS = 2;
2985
2995
  let lastProgressEmitAt = 0;
2986
2996
  let lastEmittedToolUseCount = 0;
2987
2997
  const recentActions = [];
@@ -3047,7 +3057,7 @@ var TaskTool = {
3047
3057
  yield {
3048
3058
  type: "progress",
3049
3059
  content: createAssistantMessage(
3050
- `<tool-progress>${renderProgressText(0)}</tool-progress>`
3060
+ `${TOOL_PROGRESS_OPEN_TAG2}${renderProgressText(0)}${TOOL_PROGRESS_CLOSE_TAG2}`
3051
3061
  )
3052
3062
  };
3053
3063
  lastProgressEmitAt = Date.now();
@@ -3097,7 +3107,7 @@ var TaskTool = {
3097
3107
  yield {
3098
3108
  type: "progress",
3099
3109
  content: createAssistantMessage(
3100
- `<tool-progress>${renderProgressText(toolUseCount)}</tool-progress>`
3110
+ `${TOOL_PROGRESS_OPEN_TAG2}${renderProgressText(toolUseCount)}${TOOL_PROGRESS_CLOSE_TAG2}`
3101
3111
  )
3102
3112
  };
3103
3113
  lastEmittedToolUseCount = toolUseCount;
@@ -3159,7 +3169,6 @@ var metadataSchema = z9.record(jsonValueSchema);
3159
3169
  function mapStatusToOutput(status) {
3160
3170
  if (status === "done") return "completed";
3161
3171
  if (status === "deleted") return "deleted";
3162
- if (status === "blocked") return "pending";
3163
3172
  return status;
3164
3173
  }
3165
3174
  function toTaskListItem(task) {
@@ -3261,7 +3270,7 @@ Preferred single-task template:
3261
3270
  }
3262
3271
 
3263
3272
  ## Status Notes
3264
- - Use blocked when dependencies prevent work and fill blockedBy.
3273
+ - Use pending when dependencies prevent work and fill blockedBy.
3265
3274
 
3266
3275
  ## Examples of When to Use TaskCreate
3267
3276
 
@@ -3541,7 +3550,7 @@ var mapStatusFilterInput = (input) => {
3541
3550
  if (!input) return void 0;
3542
3551
  if (input === "completed") return ["done"];
3543
3552
  if (input === "deleted") return ["deleted"];
3544
- if (input === "pending") return ["pending", "blocked"];
3553
+ if (input === "pending") return ["pending"];
3545
3554
  return ["in_progress"];
3546
3555
  };
3547
3556
  var TaskListTool = {
@@ -3645,7 +3654,7 @@ NOTE that TaskUpdate should be used when you need to persist task changes.
3645
3654
 
3646
3655
  ## Status Notes
3647
3656
  - Use in_progress for the task you are actively working on.
3648
- - Use blocked when dependencies prevent progress and set blockedBy.
3657
+ - Use pending when dependencies prevent progress and set blockedBy.
3649
3658
  - Use completed only when all dependencies are satisfied.
3650
3659
 
3651
3660
  ## Examples of When to Use TaskUpdate