pybao-cli 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/REPL-4WOBYT7I.js +47 -0
  2. package/dist/{acp-AITGGIN7.js → acp-IA5SQSEN.js} +29 -29
  3. package/dist/{agentsValidate-K3GLHEUJ.js → agentsValidate-5XBOR23G.js} +7 -7
  4. package/dist/{ask-XRAJ7ONM.js → ask-64IU5XQT.js} +28 -28
  5. package/dist/{autoUpdater-2YW234FZ.js → autoUpdater-LMRJCWGC.js} +3 -3
  6. package/dist/{chunk-6OP2JTUK.js → chunk-2UTQNPK5.js} +1 -1
  7. package/dist/{chunk-6OP2JTUK.js.map → chunk-2UTQNPK5.js.map} +1 -1
  8. package/dist/{chunk-5WXWY6LV.js → chunk-346SFBDV.js} +3 -3
  9. package/dist/{chunk-CPE4NPQV.js → chunk-4E7Y6UG2.js} +2 -2
  10. package/dist/{chunk-34XEWGUY.js → chunk-5MXVXJLZ.js} +2 -1
  11. package/dist/{chunk-O5PGBSLH.js → chunk-7AYBKYWT.js} +2 -2
  12. package/dist/{chunk-XJZQD7RE.js → chunk-7JULAJHD.js} +26 -19
  13. package/dist/chunk-7JULAJHD.js.map +7 -0
  14. package/dist/{chunk-VFAFA24S.js → chunk-CWWCJY6A.js} +3 -3
  15. package/dist/{chunk-QKB32NDM.js → chunk-ENJBFL7H.js} +2 -2
  16. package/dist/{chunk-TWPWHWJT.js → chunk-EQPERVJD.js} +4 -4
  17. package/dist/{chunk-OX4Q6Z5R.js → chunk-EWJOCRNV.js} +3 -3
  18. package/dist/{chunk-M7QSGOTT.js → chunk-G5MEAIEY.js} +1 -1
  19. package/dist/{chunk-V337ZSSD.js → chunk-HMTBDCO6.js} +92 -59
  20. package/dist/chunk-HMTBDCO6.js.map +7 -0
  21. package/dist/{chunk-2PC7UK66.js → chunk-HPLN5FUH.js} +3 -3
  22. package/dist/{chunk-PHKBTCLT.js → chunk-IN2XQ6AY.js} +2 -2
  23. package/dist/{chunk-Y3UMGUVE.js → chunk-KVPLJHUD.js} +1 -1
  24. package/dist/{chunk-CVJLF2VG.js → chunk-L2W6O75K.js} +188 -52
  25. package/dist/chunk-L2W6O75K.js.map +7 -0
  26. package/dist/{chunk-FT5UM6YL.js → chunk-LN2AL7L2.js} +1 -1
  27. package/dist/{chunk-RHY3RRE6.js → chunk-MQVFTMJM.js} +2 -2
  28. package/dist/{chunk-CXT225X7.js → chunk-NQHZG7FJ.js} +2 -2
  29. package/dist/{chunk-VGDDQSCO.js → chunk-O6YOHBUT.js} +1 -1
  30. package/dist/{chunk-UDNZNXXR.js → chunk-PUHROODW.js} +3 -3
  31. package/dist/{chunk-P7MPKAPW.js → chunk-RNRRWM2A.js} +1 -1
  32. package/dist/{chunk-NG5RU74R.js → chunk-RYSI7Q7Y.js} +4 -4
  33. package/dist/{chunk-S45DDLGG.js → chunk-SLPUUK4Q.js} +3 -3
  34. package/dist/{chunk-OOTTUF6Z.js → chunk-TEOI5N7O.js} +1 -1
  35. package/dist/{chunk-HCN7LMEB.js → chunk-U3AYAKGI.js} +1 -1
  36. package/dist/{chunk-ZOM357PV.js → chunk-UNFP4H42.js} +2 -2
  37. package/dist/{chunk-CFTVDXFH.js → chunk-WTMV7L5U.js} +3 -3
  38. package/dist/{chunk-BTS2TAAW.js → chunk-XTVLEXFN.js} +4 -4
  39. package/dist/{chunk-FMH4U7NO.js → chunk-ZUDXNHIB.js} +1 -1
  40. package/dist/{cli-MXO677IA.js → cli-S5R3QHMU.js} +91 -89
  41. package/dist/{cli-MXO677IA.js.map → cli-S5R3QHMU.js.map} +2 -2
  42. package/dist/commands-3VZ7XRRF.js +51 -0
  43. package/dist/{config-YFZ2WAYP.js → config-BNXGPV5O.js} +4 -4
  44. package/dist/{context-OOIFZD5B.js → context-HBDNJQKR.js} +6 -6
  45. package/dist/{customCommands-C5UREHC4.js → customCommands-GLTGTRUH.js} +4 -4
  46. package/dist/{env-LQJ2XZDO.js → env-ROQ4BDAH.js} +2 -2
  47. package/dist/{file-ZBIAG7X4.js → file-2HXCS5WE.js} +4 -4
  48. package/dist/index.js +3 -3
  49. package/dist/{llm-RCNWJH2C.js → llm-KVE2U2V3.js} +29 -29
  50. package/dist/{llmLazy-KXJFFPMF.js → llmLazy-Q2QJ3VTS.js} +1 -1
  51. package/dist/{loader-ENRLCLHZ.js → loader-QNQFN4LE.js} +4 -4
  52. package/dist/{lsp-VWL3PVQJ.js → lsp-MOZ34TIC.js} +6 -6
  53. package/dist/{lspAnchor-WPJIG2RI.js → lspAnchor-JTT6AJVH.js} +8 -8
  54. package/dist/lspAnchor-JTT6AJVH.js.map +7 -0
  55. package/dist/{mcp-P5T4TUW2.js → mcp-A67BC77T.js} +7 -7
  56. package/dist/{mentionProcessor-4ICD3GVH.js → mentionProcessor-F3MXBMQJ.js} +5 -5
  57. package/dist/{messages-SEOXF7DS.js → messages-7VFLTKJA.js} +1 -1
  58. package/dist/{model-YOPR5KUS.js → model-RGNG5GUY.js} +5 -5
  59. package/dist/{openai-FVFZDXPS.js → openai-R7QDORCI.js} +5 -5
  60. package/dist/{outputStyles-7ZZ2JBOT.js → outputStyles-P7YDT3J6.js} +4 -4
  61. package/dist/{pluginRuntime-LASQNLIR.js → pluginRuntime-K6HWIYCH.js} +6 -6
  62. package/dist/{pluginValidation-4BABNGAC.js → pluginValidation-W3KV47BG.js} +6 -6
  63. package/dist/prompts-K4N5Y7ZD.js +53 -0
  64. package/dist/{pybAgentSessionLoad-O7V7I7CV.js → pybAgentSessionLoad-PJZM2CKJ.js} +4 -4
  65. package/dist/{pybAgentSessionResume-Q7EYAD6H.js → pybAgentSessionResume-VJ46VNTG.js} +4 -4
  66. package/dist/{pybAgentStreamJsonSession-N374RMH5.js → pybAgentStreamJsonSession-CVRLDN56.js} +1 -1
  67. package/dist/{pybHooks-MHFEMZC6.js → pybHooks-WIHUGN5B.js} +4 -4
  68. package/dist/query-ZPNOEH35.js +55 -0
  69. package/dist/{registry-KVMGHJ4N.js → registry-5DE5QZMI.js} +5 -5
  70. package/dist/{ripgrep-XSJJZ3W3.js → ripgrep-AFHAOO36.js} +3 -3
  71. package/dist/{skillMarketplace-FL7XBTHJ.js → skillMarketplace-YJU2NWPK.js} +3 -3
  72. package/dist/{state-5NJOFKYB.js → state-YENYNRDX.js} +2 -2
  73. package/dist/{theme-Z26AKEVC.js → theme-Q54BLJ2L.js} +5 -5
  74. package/dist/{toolPermissionSettings-SPSMAX5P.js → toolPermissionSettings-XEQTLKSE.js} +6 -6
  75. package/dist/tools-YK4JOXTT.js +52 -0
  76. package/dist/{userInput-3TEMRAK7.js → userInput-72LMV7AI.js} +30 -30
  77. package/package.json +1 -1
  78. package/dist/REPL-634DFL57.js +0 -47
  79. package/dist/chunk-CVJLF2VG.js.map +0 -7
  80. package/dist/chunk-V337ZSSD.js.map +0 -7
  81. package/dist/chunk-XJZQD7RE.js.map +0 -7
  82. package/dist/commands-Q5LUFGJ5.js +0 -51
  83. package/dist/lspAnchor-WPJIG2RI.js.map +0 -7
  84. package/dist/prompts-DJNSFFKV.js +0 -53
  85. package/dist/query-LAUPI7JK.js +0 -55
  86. package/dist/tools-Q44D6ZG7.js +0 -52
  87. /package/dist/{REPL-634DFL57.js.map → REPL-4WOBYT7I.js.map} +0 -0
  88. /package/dist/{acp-AITGGIN7.js.map → acp-IA5SQSEN.js.map} +0 -0
  89. /package/dist/{agentsValidate-K3GLHEUJ.js.map → agentsValidate-5XBOR23G.js.map} +0 -0
  90. /package/dist/{ask-XRAJ7ONM.js.map → ask-64IU5XQT.js.map} +0 -0
  91. /package/dist/{autoUpdater-2YW234FZ.js.map → autoUpdater-LMRJCWGC.js.map} +0 -0
  92. /package/dist/{chunk-5WXWY6LV.js.map → chunk-346SFBDV.js.map} +0 -0
  93. /package/dist/{chunk-CPE4NPQV.js.map → chunk-4E7Y6UG2.js.map} +0 -0
  94. /package/dist/{chunk-34XEWGUY.js.map → chunk-5MXVXJLZ.js.map} +0 -0
  95. /package/dist/{chunk-O5PGBSLH.js.map → chunk-7AYBKYWT.js.map} +0 -0
  96. /package/dist/{chunk-VFAFA24S.js.map → chunk-CWWCJY6A.js.map} +0 -0
  97. /package/dist/{chunk-QKB32NDM.js.map → chunk-ENJBFL7H.js.map} +0 -0
  98. /package/dist/{chunk-TWPWHWJT.js.map → chunk-EQPERVJD.js.map} +0 -0
  99. /package/dist/{chunk-OX4Q6Z5R.js.map → chunk-EWJOCRNV.js.map} +0 -0
  100. /package/dist/{chunk-M7QSGOTT.js.map → chunk-G5MEAIEY.js.map} +0 -0
  101. /package/dist/{chunk-2PC7UK66.js.map → chunk-HPLN5FUH.js.map} +0 -0
  102. /package/dist/{chunk-PHKBTCLT.js.map → chunk-IN2XQ6AY.js.map} +0 -0
  103. /package/dist/{chunk-Y3UMGUVE.js.map → chunk-KVPLJHUD.js.map} +0 -0
  104. /package/dist/{chunk-FT5UM6YL.js.map → chunk-LN2AL7L2.js.map} +0 -0
  105. /package/dist/{chunk-RHY3RRE6.js.map → chunk-MQVFTMJM.js.map} +0 -0
  106. /package/dist/{chunk-CXT225X7.js.map → chunk-NQHZG7FJ.js.map} +0 -0
  107. /package/dist/{chunk-VGDDQSCO.js.map → chunk-O6YOHBUT.js.map} +0 -0
  108. /package/dist/{chunk-UDNZNXXR.js.map → chunk-PUHROODW.js.map} +0 -0
  109. /package/dist/{chunk-P7MPKAPW.js.map → chunk-RNRRWM2A.js.map} +0 -0
  110. /package/dist/{chunk-NG5RU74R.js.map → chunk-RYSI7Q7Y.js.map} +0 -0
  111. /package/dist/{chunk-S45DDLGG.js.map → chunk-SLPUUK4Q.js.map} +0 -0
  112. /package/dist/{chunk-OOTTUF6Z.js.map → chunk-TEOI5N7O.js.map} +0 -0
  113. /package/dist/{chunk-HCN7LMEB.js.map → chunk-U3AYAKGI.js.map} +0 -0
  114. /package/dist/{chunk-ZOM357PV.js.map → chunk-UNFP4H42.js.map} +0 -0
  115. /package/dist/{chunk-CFTVDXFH.js.map → chunk-WTMV7L5U.js.map} +0 -0
  116. /package/dist/{chunk-BTS2TAAW.js.map → chunk-XTVLEXFN.js.map} +0 -0
  117. /package/dist/{chunk-FMH4U7NO.js.map → chunk-ZUDXNHIB.js.map} +0 -0
  118. /package/dist/{commands-Q5LUFGJ5.js.map → commands-3VZ7XRRF.js.map} +0 -0
  119. /package/dist/{config-YFZ2WAYP.js.map → config-BNXGPV5O.js.map} +0 -0
  120. /package/dist/{context-OOIFZD5B.js.map → context-HBDNJQKR.js.map} +0 -0
  121. /package/dist/{customCommands-C5UREHC4.js.map → customCommands-GLTGTRUH.js.map} +0 -0
  122. /package/dist/{env-LQJ2XZDO.js.map → env-ROQ4BDAH.js.map} +0 -0
  123. /package/dist/{file-ZBIAG7X4.js.map → file-2HXCS5WE.js.map} +0 -0
  124. /package/dist/{llm-RCNWJH2C.js.map → llm-KVE2U2V3.js.map} +0 -0
  125. /package/dist/{llmLazy-KXJFFPMF.js.map → llmLazy-Q2QJ3VTS.js.map} +0 -0
  126. /package/dist/{loader-ENRLCLHZ.js.map → loader-QNQFN4LE.js.map} +0 -0
  127. /package/dist/{lsp-VWL3PVQJ.js.map → lsp-MOZ34TIC.js.map} +0 -0
  128. /package/dist/{mcp-P5T4TUW2.js.map → mcp-A67BC77T.js.map} +0 -0
  129. /package/dist/{mentionProcessor-4ICD3GVH.js.map → mentionProcessor-F3MXBMQJ.js.map} +0 -0
  130. /package/dist/{messages-SEOXF7DS.js.map → messages-7VFLTKJA.js.map} +0 -0
  131. /package/dist/{model-YOPR5KUS.js.map → model-RGNG5GUY.js.map} +0 -0
  132. /package/dist/{openai-FVFZDXPS.js.map → openai-R7QDORCI.js.map} +0 -0
  133. /package/dist/{outputStyles-7ZZ2JBOT.js.map → outputStyles-P7YDT3J6.js.map} +0 -0
  134. /package/dist/{pluginRuntime-LASQNLIR.js.map → pluginRuntime-K6HWIYCH.js.map} +0 -0
  135. /package/dist/{pluginValidation-4BABNGAC.js.map → pluginValidation-W3KV47BG.js.map} +0 -0
  136. /package/dist/{prompts-DJNSFFKV.js.map → prompts-K4N5Y7ZD.js.map} +0 -0
  137. /package/dist/{pybAgentSessionLoad-O7V7I7CV.js.map → pybAgentSessionLoad-PJZM2CKJ.js.map} +0 -0
  138. /package/dist/{pybAgentSessionResume-Q7EYAD6H.js.map → pybAgentSessionResume-VJ46VNTG.js.map} +0 -0
  139. /package/dist/{pybAgentStreamJsonSession-N374RMH5.js.map → pybAgentStreamJsonSession-CVRLDN56.js.map} +0 -0
  140. /package/dist/{pybHooks-MHFEMZC6.js.map → pybHooks-WIHUGN5B.js.map} +0 -0
  141. /package/dist/{query-LAUPI7JK.js.map → query-ZPNOEH35.js.map} +0 -0
  142. /package/dist/{registry-KVMGHJ4N.js.map → registry-5DE5QZMI.js.map} +0 -0
  143. /package/dist/{ripgrep-XSJJZ3W3.js.map → ripgrep-AFHAOO36.js.map} +0 -0
  144. /package/dist/{skillMarketplace-FL7XBTHJ.js.map → skillMarketplace-YJU2NWPK.js.map} +0 -0
  145. /package/dist/{state-5NJOFKYB.js.map → state-YENYNRDX.js.map} +0 -0
  146. /package/dist/{theme-Z26AKEVC.js.map → theme-Q54BLJ2L.js.map} +0 -0
  147. /package/dist/{toolPermissionSettings-SPSMAX5P.js.map → toolPermissionSettings-XEQTLKSE.js.map} +0 -0
  148. /package/dist/{tools-Q44D6ZG7.js.map → tools-YK4JOXTT.js.map} +0 -0
  149. /package/dist/{userInput-3TEMRAK7.js.map → userInput-72LMV7AI.js.map} +0 -0
@@ -3,7 +3,7 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getSessionProjectDir,
5
5
  getSessionProjectsDir
6
- } from "./chunk-CPE4NPQV.js";
6
+ } from "./chunk-4E7Y6UG2.js";
7
7
  import {
8
8
  isUuid
9
9
  } from "./chunk-5P7HBXTD.js";
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  formatValidationResult,
5
5
  validatePluginOrMarketplacePath
6
- } from "./chunk-OX4Q6Z5R.js";
6
+ } from "./chunk-EWJOCRNV.js";
7
7
  import {
8
8
  loadPybAgentSessionMessages
9
- } from "./chunk-OOTTUF6Z.js";
9
+ } from "./chunk-TEOI5N7O.js";
10
10
  import {
11
11
  listPybAgentSessions
12
- } from "./chunk-M7QSGOTT.js";
12
+ } from "./chunk-G5MEAIEY.js";
13
13
  import {
14
14
  appendSessionCustomTitleRecord,
15
15
  appendSessionJsonlFromMessage,
16
16
  appendSessionTagRecord
17
- } from "./chunk-CPE4NPQV.js";
17
+ } from "./chunk-4E7Y6UG2.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-UDNZNXXR.js";
29
+ } from "./chunk-PUHROODW.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-O5PGBSLH.js";
38
+ } from "./chunk-7AYBKYWT.js";
39
39
  import {
40
40
  fetchCustomModels,
41
41
  getModelFeatures
42
- } from "./chunk-PHKBTCLT.js";
42
+ } from "./chunk-IN2XQ6AY.js";
43
43
  import {
44
44
  queryLLM,
45
45
  queryQuick,
46
46
  verifyApiKey
47
- } from "./chunk-TWPWHWJT.js";
47
+ } from "./chunk-EQPERVJD.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-BTS2TAAW.js";
61
+ } from "./chunk-XTVLEXFN.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-Y3UMGUVE.js";
74
+ } from "./chunk-KVPLJHUD.js";
75
75
  import {
76
76
  loadToolPermissionContextFromDisk,
77
77
  persistToolPermissionUpdateToDisk
78
- } from "./chunk-CFTVDXFH.js";
78
+ } from "./chunk-WTMV7L5U.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-CXT225X7.js";
91
+ } from "./chunk-NQHZG7FJ.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-RHY3RRE6.js";
100
+ } from "./chunk-MQVFTMJM.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-HCN7LMEB.js";
130
+ } from "./chunk-U3AYAKGI.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-QKB32NDM.js";
160
+ } from "./chunk-ENJBFL7H.js";
161
161
  import {
162
162
  parseBlockEdits
163
163
  } from "./chunk-QWIBSCDN.js";
@@ -167,17 +167,18 @@ import {
167
167
  ParserRegistry,
168
168
  initParser,
169
169
  loadLanguage
170
- } from "./chunk-CVJLF2VG.js";
170
+ } from "./chunk-L2W6O75K.js";
171
171
  import {
172
172
  getSettingsFileCandidates,
173
- loadSettingsWithLegacyFallback
174
- } from "./chunk-34XEWGUY.js";
173
+ loadSettingsWithLegacyFallback,
174
+ readSettingsFile
175
+ } from "./chunk-5MXVXJLZ.js";
175
176
  import {
176
177
  getCustomCommandDirectories,
177
178
  hasCustomCommands,
178
179
  loadCustomCommands,
179
180
  reloadCustomCommands
180
- } from "./chunk-ZOM357PV.js";
181
+ } from "./chunk-UNFP4H42.js";
181
182
  import {
182
183
  getSessionPlugins
183
184
  } from "./chunk-BJSWTHRM.js";
@@ -185,7 +186,7 @@ import {
185
186
  ModelManager,
186
187
  getModelManager,
187
188
  isDefaultSlowAndCapableModel
188
- } from "./chunk-VFAFA24S.js";
189
+ } from "./chunk-CWWCJY6A.js";
189
190
  import {
190
191
  getCodeStyle,
191
192
  getContext,
@@ -193,13 +194,13 @@ import {
193
194
  getIsGit,
194
195
  getProjectDocs,
195
196
  getProjectStructureStatisticsBlock
196
- } from "./chunk-NG5RU74R.js";
197
+ } from "./chunk-RYSI7Q7Y.js";
197
198
  import {
198
199
  ripGrep
199
- } from "./chunk-FT5UM6YL.js";
200
+ } from "./chunk-LN2AL7L2.js";
200
201
  import {
201
202
  getTheme
202
- } from "./chunk-FMH4U7NO.js";
203
+ } from "./chunk-ZUDXNHIB.js";
203
204
  import {
204
205
  DEFAULT_GLOBAL_CONFIG,
205
206
  enableConfigs,
@@ -212,7 +213,7 @@ import {
212
213
  saveGlobalConfig,
213
214
  setAllPointersToModel,
214
215
  setModelPointer
215
- } from "./chunk-2PC7UK66.js";
216
+ } from "./chunk-HPLN5FUH.js";
216
217
  import {
217
218
  AbortError
218
219
  } from "./chunk-RQVLBMP7.js";
@@ -221,7 +222,7 @@ import {
221
222
  getCurrentRequest,
222
223
  logUserFriendly,
223
224
  markPhase
224
- } from "./chunk-VGDDQSCO.js";
225
+ } from "./chunk-O6YOHBUT.js";
225
226
  import {
226
227
  ASCII_LOGO,
227
228
  BunShell,
@@ -260,10 +261,10 @@ import {
260
261
  setCwd,
261
262
  shouldApplyToolOutputTruncation,
262
263
  truncateToolOutput
263
- } from "./chunk-P7MPKAPW.js";
264
+ } from "./chunk-RNRRWM2A.js";
264
265
  import {
265
266
  MACRO
266
- } from "./chunk-6OP2JTUK.js";
267
+ } from "./chunk-2UTQNPK5.js";
267
268
  import {
268
269
  __export
269
270
  } from "./chunk-I3J4JYES.js";
@@ -444,7 +445,7 @@ var getCommandSubcommandPrefix = memoize(
444
445
  var getCommandPrefix = memoize(
445
446
  async (command4, abortSignal) => {
446
447
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
447
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-RCNWJH2C.js");
448
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-KVE2U2V3.js");
448
449
  const response = await queryQuick2({
449
450
  systemPrompt,
450
451
  userPrompt,
@@ -4246,7 +4247,7 @@ function formatParseError(error) {
4246
4247
  return error instanceof Error ? error.message : String(error);
4247
4248
  }
4248
4249
  async function defaultGateQuery(args) {
4249
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-RCNWJH2C.js");
4250
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-KVE2U2V3.js");
4250
4251
  const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
4251
4252
  const messages = [
4252
4253
  {
@@ -6507,7 +6508,7 @@ var FileEditTool = {
6507
6508
  const originalFileContent = currentFileContent;
6508
6509
  let totalPatch = [];
6509
6510
  const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
6510
- const { findLspAnchor } = await import("./lspAnchor-WPJIG2RI.js");
6511
+ const { findLspAnchor } = await import("./lspAnchor-JTT6AJVH.js");
6511
6512
  for (const op of editOperations) {
6512
6513
  const normalizedSearch = normalizeLineEndings(op.search);
6513
6514
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -6550,17 +6551,21 @@ ${op.search}`);
6550
6551
  const endings = fileExistsBun(fullFilePath) ? detectLineEndings(fullFilePath) : "LF";
6551
6552
  writeTextContent(fullFilePath, updatedFile, enc, endings);
6552
6553
  if (verify) {
6553
- const touched = await LspAPI.touchFile(fullFilePath, {
6554
- wait: true,
6554
+ const lspResult = await LspFacade.run({
6555
+ operation: "diagnostics",
6556
+ filePath: fullFilePath,
6557
+ waitForDiagnostics: true,
6555
6558
  timeoutMs: 5e3,
6556
6559
  rootPath: getCwd()
6557
6560
  });
6558
- if (!touched) {
6561
+ if (lspResult.formatted.startsWith("No LSP server available for file type:")) {
6559
6562
  throw new Error(
6560
6563
  `Verification Unavailable: Unable to initialize LSP for ${file_path}. Retry with verify=false or rerun when LSP is available.`
6561
6564
  );
6562
6565
  }
6563
- const diagnostics = await LspAPI.diagnostics(fullFilePath, getCwd());
6566
+ const diagnostics = await LspFacade.diagnostics(fullFilePath, {
6567
+ rootPath: getCwd()
6568
+ });
6564
6569
  const errors = diagnostics.filter((d) => d.severity === 1);
6565
6570
  if (errors.length > 0) {
6566
6571
  writeTextContent(fullFilePath, originalFileContent, enc, endings);
@@ -7312,7 +7317,7 @@ var FileReadTool = {
7312
7317
  let finalLimit = limit;
7313
7318
  if (symbol_name) {
7314
7319
  try {
7315
- const symbols = await LspAPI.documentSymbolRaw(fullFilePath, getCwd());
7320
+ const symbols = await LspFacade.documentSymbolRaw(fullFilePath, getCwd());
7316
7321
  if (symbols === null) {
7317
7322
  throw new Error("LSP unavailable for file. Use offset/limit or LspTool instead.");
7318
7323
  }
@@ -11064,7 +11069,7 @@ async function createAndStoreApiKey(accessToken) {
11064
11069
  }
11065
11070
  saveGlobalConfig(config2);
11066
11071
  try {
11067
- const { resetAnthropicClient } = await import("./llm-RCNWJH2C.js");
11072
+ const { resetAnthropicClient } = await import("./llm-KVE2U2V3.js");
11068
11073
  resetAnthropicClient();
11069
11074
  } catch {
11070
11075
  }
@@ -15346,7 +15351,7 @@ async function refreshPluginRuntimeFromInstalls() {
15346
15351
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
15347
15352
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
15348
15353
  if (dirs.length === 0) return [];
15349
- const { configureSessionPlugins } = await import("./pluginRuntime-LASQNLIR.js");
15354
+ const { configureSessionPlugins } = await import("./pluginRuntime-K6HWIYCH.js");
15350
15355
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
15351
15356
  return errors;
15352
15357
  }
@@ -16015,7 +16020,7 @@ async function call(onDone, context) {
16015
16020
  ModelConfig,
16016
16021
  {
16017
16022
  onClose: () => {
16018
- import("./model-YOPR5KUS.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16023
+ import("./model-RGNG5GUY.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16019
16024
  reloadModelManager2();
16020
16025
  triggerModelConfigChange();
16021
16026
  onDone();
@@ -23290,6 +23295,16 @@ function useUnifiedCompletion({
23290
23295
  return true;
23291
23296
  }
23292
23297
  if (inputChar === " ") {
23298
+ if (state.preview?.isActive && state.context) {
23299
+ const prefixLength = state.context.prefix.length + (state.context.type === "command" || state.context.type === "agent" ? 1 : 0);
23300
+ const insertPos = state.context.startPos + prefixLength;
23301
+ const originalInput = state.preview.originalInput;
23302
+ const newInput = originalInput.slice(0, insertPos) + " " + originalInput.slice(insertPos);
23303
+ onInputChange(newInput);
23304
+ setCursorOffset(insertPos + 1);
23305
+ resetCompletion();
23306
+ return true;
23307
+ }
23293
23308
  resetCompletion();
23294
23309
  return false;
23295
23310
  }
@@ -23653,18 +23668,14 @@ function logStartupProfile(event) {
23653
23668
  import { useEffect as useEffect21, useRef as useRef10, useState as useState23 } from "react";
23654
23669
 
23655
23670
  // src/services/ui/statusline.ts
23671
+ import { join as join10 } from "path";
23656
23672
  function normalizeString(value) {
23657
23673
  if (typeof value !== "string") return null;
23658
23674
  const trimmed = value.trim();
23659
23675
  return trimmed ? trimmed : null;
23660
23676
  }
23661
- function getStatusLineCommand() {
23662
- const loaded = loadSettingsWithLegacyFallback({
23663
- destination: "userSettings",
23664
- migrateToPrimary: true
23665
- });
23666
- const settings = loaded.settings ?? {};
23667
- const raw = settings.statusLine;
23677
+ function getCommandFromSettings(settings) {
23678
+ const raw = settings?.statusLine;
23668
23679
  if (typeof raw === "string") return normalizeString(raw);
23669
23680
  if (raw && typeof raw === "object") {
23670
23681
  const cmd = raw.command;
@@ -23672,6 +23683,23 @@ function getStatusLineCommand() {
23672
23683
  }
23673
23684
  return null;
23674
23685
  }
23686
+ function getStatusLineCommand(options) {
23687
+ const configDir = normalizeString(options?.configDir);
23688
+ if (configDir) {
23689
+ const settings2 = readSettingsFile(
23690
+ join10(configDir, "settings.json")
23691
+ );
23692
+ const command4 = getCommandFromSettings(settings2 ?? {});
23693
+ if (command4) return command4;
23694
+ }
23695
+ const loaded = loadSettingsWithLegacyFallback({
23696
+ destination: "userSettings",
23697
+ migrateToPrimary: true,
23698
+ homeDir: options?.homeDir
23699
+ });
23700
+ const settings = loaded.settings ?? {};
23701
+ return getCommandFromSettings(settings);
23702
+ }
23675
23703
 
23676
23704
  // src/ui/hooks/useStatusLine.ts
23677
23705
  function normalizeStatusLineText(value) {
@@ -23682,13 +23710,15 @@ function useStatusLine() {
23682
23710
  const [text, setText] = useState23(null);
23683
23711
  const lastCommandRef = useRef10(null);
23684
23712
  const abortRef = useRef10(null);
23713
+ const configDir = process.env.PYB_CONFIG_DIR ?? process.env.CLAUDE_CONFIG_DIR;
23714
+ const homeDir = typeof process.env.HOME === "string" ? process.env.HOME : typeof process.env.USERPROFILE === "string" ? process.env.USERPROFILE : void 0;
23685
23715
  useEffect21(() => {
23686
23716
  const enabled = process.env.PYB_STATUSLINE_ENABLED === "1" || process.env.NODE_ENV !== "test";
23687
23717
  if (!enabled) return;
23688
23718
  const shell = BunShell.getInstance();
23689
23719
  let alive = true;
23690
23720
  const tick = async () => {
23691
- const command4 = getStatusLineCommand();
23721
+ const command4 = getStatusLineCommand({ configDir, homeDir });
23692
23722
  if (!command4) {
23693
23723
  lastCommandRef.current = null;
23694
23724
  abortRef.current?.abort();
@@ -23725,7 +23755,7 @@ function useStatusLine() {
23725
23755
  // src/ui/components/PromptInput.tsx
23726
23756
  async function interpretHashCommand(input) {
23727
23757
  try {
23728
- const { queryQuick: queryQuick2 } = await import("./llm-RCNWJH2C.js");
23758
+ const { queryQuick: queryQuick2 } = await import("./llm-KVE2U2V3.js");
23729
23759
  const systemPrompt = [
23730
23760
  "You're helping the user structure notes that will be added to their PYB.md file.",
23731
23761
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -24038,7 +24068,7 @@ function PromptInput({
24038
24068
  if (messages2.length) {
24039
24069
  if (mode === "bash") {
24040
24070
  onQuery(messages2, newAbortController).then(async () => {
24041
- const { getCwd: getCwd2 } = await import("./state-5NJOFKYB.js");
24071
+ const { getCwd: getCwd2 } = await import("./state-YENYNRDX.js");
24042
24072
  setCurrentPwd(getCwd2());
24043
24073
  });
24044
24074
  } else {
@@ -26857,7 +26887,7 @@ import React104, { useCallback as useCallback17, useEffect as useEffect26, useMe
26857
26887
  import { Box as Box78, Text as Text82, useInput as useInput30 } from "ink";
26858
26888
  import figures8 from "figures";
26859
26889
  import chalk15 from "chalk";
26860
- import { join as join11 } from "path";
26890
+ import { join as join12 } from "path";
26861
26891
  import { spawn as spawn2 } from "child_process";
26862
26892
 
26863
26893
  // src/commands/agents/tooling.ts
@@ -26902,13 +26932,13 @@ import {
26902
26932
  unlinkSync as unlinkSync2,
26903
26933
  writeFileSync as writeFileSync6
26904
26934
  } from "fs";
26905
- import { join as join10 } from "path";
26935
+ import { join as join11 } from "path";
26906
26936
  import { homedir as homedir7 } from "os";
26907
26937
 
26908
26938
  // src/commands/agents/generation.ts
26909
26939
  import { randomUUID as randomUUID5 } from "crypto";
26910
26940
  async function generateAgentWithClaude(prompt) {
26911
- const { queryModel } = await import("./llm-RCNWJH2C.js");
26941
+ const { queryModel } = await import("./llm-KVE2U2V3.js");
26912
26942
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
26913
26943
 
26914
26944
  Return your response as a JSON object with exactly these fields:
@@ -27092,21 +27122,21 @@ var LEGACY_FOLDER = ".claude";
27092
27122
  var AGENTS_DIR = "agents";
27093
27123
  function getAgentDirectory(location) {
27094
27124
  if (location === "user") {
27095
- return join10(homedir7(), PRIMARY_FOLDER, AGENTS_DIR);
27125
+ return join11(homedir7(), PRIMARY_FOLDER, AGENTS_DIR);
27096
27126
  }
27097
- return join10(getCwd(), PRIMARY_FOLDER, AGENTS_DIR);
27127
+ return join11(getCwd(), PRIMARY_FOLDER, AGENTS_DIR);
27098
27128
  }
27099
27129
  function getLegacyAgentDirectory(location) {
27100
27130
  if (location === "user") {
27101
- return join10(homedir7(), LEGACY_FOLDER, AGENTS_DIR);
27131
+ return join11(homedir7(), LEGACY_FOLDER, AGENTS_DIR);
27102
27132
  }
27103
- return join10(getCwd(), LEGACY_FOLDER, AGENTS_DIR);
27133
+ return join11(getCwd(), LEGACY_FOLDER, AGENTS_DIR);
27104
27134
  }
27105
27135
  function getPrimaryAgentFilePath(location, agentType) {
27106
- return join10(getAgentDirectory(location), `${agentType}.md`);
27136
+ return join11(getAgentDirectory(location), `${agentType}.md`);
27107
27137
  }
27108
27138
  function getLegacyAgentFilePath(location, agentType) {
27109
- return join10(getLegacyAgentDirectory(location), `${agentType}.md`);
27139
+ return join11(getLegacyAgentDirectory(location), `${agentType}.md`);
27110
27140
  }
27111
27141
  function ensureDirectoryExists(location) {
27112
27142
  const dir = getAgentDirectory(location);
@@ -28204,8 +28234,8 @@ function ViewAgent(props) {
28204
28234
  if (props.agent.source === "plugin") return `Plugin: ${props.agent.baseDir ?? "Unknown"}`;
28205
28235
  const baseDir = props.agent.baseDir;
28206
28236
  const file = `${props.agent.filename ?? props.agent.agentType}.md`;
28207
- if (props.agent.source === "projectSettings") return join11(".claude", "agents", file);
28208
- if (baseDir) return join11(baseDir, file);
28237
+ if (props.agent.source === "projectSettings") return join12(".claude", "agents", file);
28238
+ if (baseDir) return join12(baseDir, file);
28209
28239
  return props.agent.source;
28210
28240
  })();
28211
28241
  const toolsSummary = () => {
@@ -30913,6 +30943,9 @@ It is critical that you mark todos as completed as soon as you are done with a t
30913
30943
  - 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
30914
30944
  - documentSymbol \u7684\u4F18\u5148\u7EA7\u7531 LspFacade \u51B3\u5B9A\uFF08\u9ED8\u8BA4 LSP \u4F18\u5148\uFF0CTree-Sitter \u515C\u5E95\uFF09
30915
30945
 
30946
+ # \u8DEF\u5F84\u5206\u7247\u7B56\u7565
30947
+ - \u6839\u2192\u6838\u5FC3\u76EE\u5F55\u2192\u4E8C\u7EA7\u6A21\u5757
30948
+
30916
30949
  # Memory
30917
30950
  If the current working directory contains a file called ${PROJECT_FILE}, it will be automatically added to your context. This file serves multiple purposes:
30918
30951
  1. Storing frequently used bash commands (build, test, lint, etc.) so you can use them without searching each time