pybao-cli 1.4.69 → 1.4.70

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 (146) hide show
  1. package/dist/REPL-7K6U4TJI.js +46 -0
  2. package/dist/{acp-6LRBVMXY.js → acp-WKXIUQE5.js} +29 -29
  3. package/dist/{agentsValidate-4LAOGQEK.js → agentsValidate-VASQDYWX.js} +7 -7
  4. package/dist/{ask-VO34LVHJ.js → ask-FVNLC2ER.js} +28 -28
  5. package/dist/{autoUpdater-WCDZ3LKI.js → autoUpdater-RGXJL4JP.js} +3 -3
  6. package/dist/{chunk-ULUZRDEZ.js → chunk-2IKQLU7Z.js} +1 -1
  7. package/dist/{chunk-ULUZRDEZ.js.map → chunk-2IKQLU7Z.js.map} +1 -1
  8. package/dist/{chunk-HHQKHMVN.js → chunk-2KLTF2RL.js} +2 -2
  9. package/dist/{chunk-XWTPHVQ2.js → chunk-4BMX3A66.js} +3 -3
  10. package/dist/{chunk-64FPFNEO.js → chunk-6JEMB3QO.js} +1 -1
  11. package/dist/{chunk-GAOK4KW3.js → chunk-A4FOTJXO.js} +3 -3
  12. package/dist/{chunk-TCCVAS7Q.js → chunk-CS53ICZD.js} +2 -2
  13. package/dist/{chunk-CH7AQMFI.js → chunk-DPQAF6WJ.js} +1 -1
  14. package/dist/{chunk-IYTU4OJV.js → chunk-F2SIWWFK.js} +1 -1
  15. package/dist/{chunk-FQLUVB5C.js → chunk-F47IOKHV.js} +1 -1
  16. package/dist/{chunk-MQOUWZJB.js → chunk-FZKER2A6.js} +1 -1
  17. package/dist/{chunk-BQOYEEGF.js → chunk-G5P4TOPL.js} +3 -3
  18. package/dist/{chunk-H5KMZAUF.js → chunk-GCCDWJ5I.js} +3 -3
  19. package/dist/{chunk-BBN46KXV.js → chunk-GDMZZQXA.js} +1 -1
  20. package/dist/{chunk-I5KCNNUI.js → chunk-GID4HETQ.js} +4 -4
  21. package/dist/{chunk-4EUFV7IZ.js → chunk-GL6HVQ7Y.js} +3 -3
  22. package/dist/{chunk-Q7QN2OT2.js → chunk-HDKWC43V.js} +4 -4
  23. package/dist/{chunk-ZOGQ47JZ.js → chunk-IGINSXE5.js} +2 -2
  24. package/dist/{chunk-VGI3MJCN.js → chunk-IXT4AZD4.js} +3 -3
  25. package/dist/{chunk-DVWYKOS2.js → chunk-KFDO6W7P.js} +4 -4
  26. package/dist/{chunk-Q4VBSC45.js → chunk-KMK42JY2.js} +1 -1
  27. package/dist/{chunk-JQEGLFMO.js → chunk-L2HD6XQ6.js} +78 -43
  28. package/dist/chunk-L2HD6XQ6.js.map +7 -0
  29. package/dist/{chunk-JCUPO5SD.js → chunk-QEU6CHZ7.js} +2 -2
  30. package/dist/{chunk-ATTYOEZT.js → chunk-QVCL2JNZ.js} +1 -1
  31. package/dist/{chunk-L5BXFKV7.js → chunk-REZSGPLV.js} +2 -2
  32. package/dist/{chunk-UP22WCEV.js → chunk-TCH73D5U.js} +1 -1
  33. package/dist/{chunk-I2RN6BKG.js → chunk-TXGIUPK5.js} +16 -16
  34. package/dist/{chunk-5SEYGIMS.js → chunk-UP22SYNJ.js} +2 -2
  35. package/dist/{chunk-T7U272IW.js → chunk-VCIMKWMR.js} +4 -4
  36. package/dist/{chunk-T36V23CZ.js → chunk-VR3QP6DF.js} +2 -2
  37. package/dist/{chunk-7EX3H2LR.js → chunk-WDEUNZOU.js} +3 -3
  38. package/dist/{cli-K22UG63I.js → cli-Y3AV3DXY.js} +87 -87
  39. package/dist/commands-AFYQVQTH.js +50 -0
  40. package/dist/{config-4TLLBLHZ.js → config-P3JYR23Z.js} +4 -4
  41. package/dist/{context-UCX6EHV2.js → context-EXLJCXFC.js} +6 -6
  42. package/dist/{customCommands-XBYBBLIT.js → customCommands-WA52KZER.js} +4 -4
  43. package/dist/{env-NIRNUQBK.js → env-642FHXLO.js} +2 -2
  44. package/dist/{file-KZUCZWBZ.js → file-HJQVIIEB.js} +4 -4
  45. package/dist/index.js +3 -3
  46. package/dist/{llm-IBAT6C77.js → llm-5MR7DEOU.js} +29 -29
  47. package/dist/{llmLazy-W2AONXJN.js → llmLazy-Y3RCXTOD.js} +1 -1
  48. package/dist/{loader-GQ2AYDKZ.js → loader-U4QPWYM2.js} +4 -4
  49. package/dist/{lsp-TDZOFAGX.js → lsp-TZA3TUSQ.js} +6 -6
  50. package/dist/{lspAnchor-Y5ODO3C4.js → lspAnchor-YFDQNUX2.js} +6 -6
  51. package/dist/{mcp-S4YW6CXE.js → mcp-KTNHNCQ3.js} +7 -7
  52. package/dist/{mentionProcessor-KH6NLD6M.js → mentionProcessor-HP3HLVY6.js} +5 -5
  53. package/dist/{messages-GRLBINLQ.js → messages-3QB23BB2.js} +1 -1
  54. package/dist/{model-XO4IA6K3.js → model-GYOM5HF3.js} +5 -5
  55. package/dist/{openai-O4WR7IE3.js → openai-5AEIYPBM.js} +5 -5
  56. package/dist/{outputStyles-SFBNSHR5.js → outputStyles-FJH7EG5F.js} +4 -4
  57. package/dist/{pluginRuntime-YHLTGW2O.js → pluginRuntime-J57C7K7K.js} +6 -6
  58. package/dist/{pluginValidation-ITG2YAD3.js → pluginValidation-VGMXFCYT.js} +6 -6
  59. package/dist/prompts-PNMMLVZ4.js +52 -0
  60. package/dist/{pybAgentSessionLoad-VD6RSWTX.js → pybAgentSessionLoad-YYNAYFGS.js} +4 -4
  61. package/dist/{pybAgentSessionResume-RSYK7EJ4.js → pybAgentSessionResume-AMZMZECU.js} +4 -4
  62. package/dist/{pybAgentStreamJsonSession-K3DQZO55.js → pybAgentStreamJsonSession-AOF6PBFB.js} +1 -1
  63. package/dist/{pybHooks-PS4QDUIJ.js → pybHooks-2YPKAMM5.js} +4 -4
  64. package/dist/query-LWDITFGK.js +54 -0
  65. package/dist/{registry-C5YC57SE.js → registry-QPHBAKLN.js} +5 -5
  66. package/dist/{ripgrep-J52ZKVWV.js → ripgrep-GVOQVBCX.js} +3 -3
  67. package/dist/{skillMarketplace-7F2RUTO4.js → skillMarketplace-YILTM6CL.js} +3 -3
  68. package/dist/{state-YUFV22R5.js → state-NA4BTHFE.js} +2 -2
  69. package/dist/{theme-HYXO3DVU.js → theme-XC4RRVYE.js} +5 -5
  70. package/dist/{toolPermissionSettings-TRPVISAS.js → toolPermissionSettings-XECHP5QX.js} +6 -6
  71. package/dist/tools-KCOOUEUC.js +51 -0
  72. package/dist/{userInput-TMER67YX.js → userInput-4TYMTVMI.js} +30 -30
  73. package/package.json +1 -1
  74. package/dist/REPL-ZAJ6IKK3.js +0 -46
  75. package/dist/chunk-JQEGLFMO.js.map +0 -7
  76. package/dist/commands-XREIQOVF.js +0 -50
  77. package/dist/prompts-NCYQ3YKX.js +0 -52
  78. package/dist/query-DVJYTX6S.js +0 -54
  79. package/dist/tools-72E2HB4H.js +0 -51
  80. /package/dist/{REPL-ZAJ6IKK3.js.map → REPL-7K6U4TJI.js.map} +0 -0
  81. /package/dist/{acp-6LRBVMXY.js.map → acp-WKXIUQE5.js.map} +0 -0
  82. /package/dist/{agentsValidate-4LAOGQEK.js.map → agentsValidate-VASQDYWX.js.map} +0 -0
  83. /package/dist/{ask-VO34LVHJ.js.map → ask-FVNLC2ER.js.map} +0 -0
  84. /package/dist/{autoUpdater-WCDZ3LKI.js.map → autoUpdater-RGXJL4JP.js.map} +0 -0
  85. /package/dist/{chunk-HHQKHMVN.js.map → chunk-2KLTF2RL.js.map} +0 -0
  86. /package/dist/{chunk-XWTPHVQ2.js.map → chunk-4BMX3A66.js.map} +0 -0
  87. /package/dist/{chunk-64FPFNEO.js.map → chunk-6JEMB3QO.js.map} +0 -0
  88. /package/dist/{chunk-GAOK4KW3.js.map → chunk-A4FOTJXO.js.map} +0 -0
  89. /package/dist/{chunk-TCCVAS7Q.js.map → chunk-CS53ICZD.js.map} +0 -0
  90. /package/dist/{chunk-CH7AQMFI.js.map → chunk-DPQAF6WJ.js.map} +0 -0
  91. /package/dist/{chunk-IYTU4OJV.js.map → chunk-F2SIWWFK.js.map} +0 -0
  92. /package/dist/{chunk-FQLUVB5C.js.map → chunk-F47IOKHV.js.map} +0 -0
  93. /package/dist/{chunk-MQOUWZJB.js.map → chunk-FZKER2A6.js.map} +0 -0
  94. /package/dist/{chunk-BQOYEEGF.js.map → chunk-G5P4TOPL.js.map} +0 -0
  95. /package/dist/{chunk-H5KMZAUF.js.map → chunk-GCCDWJ5I.js.map} +0 -0
  96. /package/dist/{chunk-BBN46KXV.js.map → chunk-GDMZZQXA.js.map} +0 -0
  97. /package/dist/{chunk-I5KCNNUI.js.map → chunk-GID4HETQ.js.map} +0 -0
  98. /package/dist/{chunk-4EUFV7IZ.js.map → chunk-GL6HVQ7Y.js.map} +0 -0
  99. /package/dist/{chunk-Q7QN2OT2.js.map → chunk-HDKWC43V.js.map} +0 -0
  100. /package/dist/{chunk-ZOGQ47JZ.js.map → chunk-IGINSXE5.js.map} +0 -0
  101. /package/dist/{chunk-VGI3MJCN.js.map → chunk-IXT4AZD4.js.map} +0 -0
  102. /package/dist/{chunk-DVWYKOS2.js.map → chunk-KFDO6W7P.js.map} +0 -0
  103. /package/dist/{chunk-Q4VBSC45.js.map → chunk-KMK42JY2.js.map} +0 -0
  104. /package/dist/{chunk-JCUPO5SD.js.map → chunk-QEU6CHZ7.js.map} +0 -0
  105. /package/dist/{chunk-ATTYOEZT.js.map → chunk-QVCL2JNZ.js.map} +0 -0
  106. /package/dist/{chunk-L5BXFKV7.js.map → chunk-REZSGPLV.js.map} +0 -0
  107. /package/dist/{chunk-UP22WCEV.js.map → chunk-TCH73D5U.js.map} +0 -0
  108. /package/dist/{chunk-I2RN6BKG.js.map → chunk-TXGIUPK5.js.map} +0 -0
  109. /package/dist/{chunk-5SEYGIMS.js.map → chunk-UP22SYNJ.js.map} +0 -0
  110. /package/dist/{chunk-T7U272IW.js.map → chunk-VCIMKWMR.js.map} +0 -0
  111. /package/dist/{chunk-T36V23CZ.js.map → chunk-VR3QP6DF.js.map} +0 -0
  112. /package/dist/{chunk-7EX3H2LR.js.map → chunk-WDEUNZOU.js.map} +0 -0
  113. /package/dist/{cli-K22UG63I.js.map → cli-Y3AV3DXY.js.map} +0 -0
  114. /package/dist/{commands-XREIQOVF.js.map → commands-AFYQVQTH.js.map} +0 -0
  115. /package/dist/{config-4TLLBLHZ.js.map → config-P3JYR23Z.js.map} +0 -0
  116. /package/dist/{context-UCX6EHV2.js.map → context-EXLJCXFC.js.map} +0 -0
  117. /package/dist/{customCommands-XBYBBLIT.js.map → customCommands-WA52KZER.js.map} +0 -0
  118. /package/dist/{env-NIRNUQBK.js.map → env-642FHXLO.js.map} +0 -0
  119. /package/dist/{file-KZUCZWBZ.js.map → file-HJQVIIEB.js.map} +0 -0
  120. /package/dist/{llm-IBAT6C77.js.map → llm-5MR7DEOU.js.map} +0 -0
  121. /package/dist/{llmLazy-W2AONXJN.js.map → llmLazy-Y3RCXTOD.js.map} +0 -0
  122. /package/dist/{loader-GQ2AYDKZ.js.map → loader-U4QPWYM2.js.map} +0 -0
  123. /package/dist/{lsp-TDZOFAGX.js.map → lsp-TZA3TUSQ.js.map} +0 -0
  124. /package/dist/{lspAnchor-Y5ODO3C4.js.map → lspAnchor-YFDQNUX2.js.map} +0 -0
  125. /package/dist/{mcp-S4YW6CXE.js.map → mcp-KTNHNCQ3.js.map} +0 -0
  126. /package/dist/{mentionProcessor-KH6NLD6M.js.map → mentionProcessor-HP3HLVY6.js.map} +0 -0
  127. /package/dist/{messages-GRLBINLQ.js.map → messages-3QB23BB2.js.map} +0 -0
  128. /package/dist/{model-XO4IA6K3.js.map → model-GYOM5HF3.js.map} +0 -0
  129. /package/dist/{openai-O4WR7IE3.js.map → openai-5AEIYPBM.js.map} +0 -0
  130. /package/dist/{outputStyles-SFBNSHR5.js.map → outputStyles-FJH7EG5F.js.map} +0 -0
  131. /package/dist/{pluginRuntime-YHLTGW2O.js.map → pluginRuntime-J57C7K7K.js.map} +0 -0
  132. /package/dist/{pluginValidation-ITG2YAD3.js.map → pluginValidation-VGMXFCYT.js.map} +0 -0
  133. /package/dist/{prompts-NCYQ3YKX.js.map → prompts-PNMMLVZ4.js.map} +0 -0
  134. /package/dist/{pybAgentSessionLoad-VD6RSWTX.js.map → pybAgentSessionLoad-YYNAYFGS.js.map} +0 -0
  135. /package/dist/{pybAgentSessionResume-RSYK7EJ4.js.map → pybAgentSessionResume-AMZMZECU.js.map} +0 -0
  136. /package/dist/{pybAgentStreamJsonSession-K3DQZO55.js.map → pybAgentStreamJsonSession-AOF6PBFB.js.map} +0 -0
  137. /package/dist/{pybHooks-PS4QDUIJ.js.map → pybHooks-2YPKAMM5.js.map} +0 -0
  138. /package/dist/{query-DVJYTX6S.js.map → query-LWDITFGK.js.map} +0 -0
  139. /package/dist/{registry-C5YC57SE.js.map → registry-QPHBAKLN.js.map} +0 -0
  140. /package/dist/{ripgrep-J52ZKVWV.js.map → ripgrep-GVOQVBCX.js.map} +0 -0
  141. /package/dist/{skillMarketplace-7F2RUTO4.js.map → skillMarketplace-YILTM6CL.js.map} +0 -0
  142. /package/dist/{state-YUFV22R5.js.map → state-NA4BTHFE.js.map} +0 -0
  143. /package/dist/{theme-HYXO3DVU.js.map → theme-XC4RRVYE.js.map} +0 -0
  144. /package/dist/{toolPermissionSettings-TRPVISAS.js.map → toolPermissionSettings-XECHP5QX.js.map} +0 -0
  145. /package/dist/{tools-72E2HB4H.js.map → tools-KCOOUEUC.js.map} +0 -0
  146. /package/dist/{userInput-TMER67YX.js.map → userInput-4TYMTVMI.js.map} +0 -0
@@ -2,15 +2,15 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  loadSettingsWithLegacyFallback
5
- } from "./chunk-CH7AQMFI.js";
5
+ } from "./chunk-DPQAF6WJ.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-ATTYOEZT.js";
8
+ } from "./chunk-QVCL2JNZ.js";
9
9
  import {
10
10
  env,
11
11
  getSessionRoot,
12
12
  resolveXdgDataPath
13
- } from "./chunk-BBN46KXV.js";
13
+ } from "./chunk-GDMZZQXA.js";
14
14
  import {
15
15
  __require
16
16
  } from "./chunk-I3J4JYES.js";
@@ -2,13 +2,13 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  ripGrepWithStatus
5
- } from "./chunk-IYTU4OJV.js";
5
+ } from "./chunk-F2SIWWFK.js";
6
6
  import {
7
7
  getCurrentProjectConfig,
8
8
  getGlobalConfig,
9
9
  getOrCreateUserID,
10
10
  saveCurrentProjectConfig
11
- } from "./chunk-XWTPHVQ2.js";
11
+ } from "./chunk-4BMX3A66.js";
12
12
  import {
13
13
  SESSION_ID,
14
14
  env,
@@ -16,10 +16,10 @@ import {
16
16
  getCwd,
17
17
  isContextScanDisabled,
18
18
  logError
19
- } from "./chunk-BBN46KXV.js";
19
+ } from "./chunk-GDMZZQXA.js";
20
20
  import {
21
21
  MACRO
22
- } from "./chunk-ULUZRDEZ.js";
22
+ } from "./chunk-2IKQLU7Z.js";
23
23
  import {
24
24
  __require
25
25
  } from "./chunk-I3J4JYES.js";
@@ -5,7 +5,7 @@ import {
5
5
  getCwd,
6
6
  resolveXdgCachePath,
7
7
  resolveXdgDataPath
8
- } from "./chunk-BBN46KXV.js";
8
+ } from "./chunk-GDMZZQXA.js";
9
9
 
10
10
  // src/services/plugins/skillMarketplace.ts
11
11
  import {
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  formatValidationResult,
5
5
  validatePluginOrMarketplacePath
6
- } from "./chunk-GAOK4KW3.js";
6
+ } from "./chunk-A4FOTJXO.js";
7
7
  import {
8
8
  loadPybAgentSessionMessages
9
- } from "./chunk-64FPFNEO.js";
9
+ } from "./chunk-6JEMB3QO.js";
10
10
  import {
11
11
  listPybAgentSessions
12
- } from "./chunk-FQLUVB5C.js";
12
+ } from "./chunk-F47IOKHV.js";
13
13
  import {
14
14
  appendSessionCustomTitleRecord,
15
15
  appendSessionJsonlFromMessage,
16
16
  appendSessionTagRecord
17
- } from "./chunk-JCUPO5SD.js";
17
+ } from "./chunk-QEU6CHZ7.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-H5KMZAUF.js";
29
+ } from "./chunk-GCCDWJ5I.js";
30
30
  import {
31
31
  DEFAULT_OUTPUT_STYLE,
32
32
  getAvailableOutputStyles,
@@ -35,17 +35,17 @@ import {
35
35
  getOutputStyleSystemPromptAdditions,
36
36
  resolveOutputStyleName,
37
37
  setCurrentOutputStyle
38
- } from "./chunk-TCCVAS7Q.js";
38
+ } from "./chunk-CS53ICZD.js";
39
39
  import {
40
40
  fetchCustomModels,
41
41
  getModelFeatures,
42
42
  getSessionState
43
- } from "./chunk-5SEYGIMS.js";
43
+ } from "./chunk-UP22SYNJ.js";
44
44
  import {
45
45
  queryLLM,
46
46
  queryQuick,
47
47
  verifyApiKey
48
- } from "./chunk-Q7QN2OT2.js";
48
+ } from "./chunk-HDKWC43V.js";
49
49
  import {
50
50
  DEFAULT_TIMEOUT_MS,
51
51
  FallbackToolUseRejectedMessage,
@@ -59,7 +59,7 @@ import {
59
59
  listMCPServers,
60
60
  loadMergedSettings,
61
61
  normalizeSandboxRuntimeConfigFromSettings
62
- } from "./chunk-T7U272IW.js";
62
+ } from "./chunk-VCIMKWMR.js";
63
63
  import {
64
64
  addMarketplace,
65
65
  disableSkillPlugin,
@@ -72,11 +72,11 @@ import {
72
72
  refreshMarketplaceAsync,
73
73
  removeMarketplace,
74
74
  uninstallSkillPlugin
75
- } from "./chunk-Q4VBSC45.js";
75
+ } from "./chunk-KMK42JY2.js";
76
76
  import {
77
77
  loadToolPermissionContextFromDisk,
78
78
  persistToolPermissionUpdateToDisk
79
- } from "./chunk-7EX3H2LR.js";
79
+ } from "./chunk-WDEUNZOU.js";
80
80
  import {
81
81
  applyToolPermissionContextUpdate,
82
82
  applyToolPermissionContextUpdates,
@@ -87,13 +87,13 @@ import {
87
87
  generateSystemReminders,
88
88
  resetReminderSession,
89
89
  systemReminderService
90
- } from "./chunk-T36V23CZ.js";
90
+ } from "./chunk-VR3QP6DF.js";
91
91
  import {
92
92
  clearAgentCache,
93
93
  getActiveAgents,
94
94
  getAgentByType,
95
95
  getAllAgents
96
- } from "./chunk-HHQKHMVN.js";
96
+ } from "./chunk-2KLTF2RL.js";
97
97
  import {
98
98
  API_ERROR_MESSAGE_PREFIX,
99
99
  CANCEL_MESSAGE,
@@ -124,7 +124,7 @@ import {
124
124
  processUserInput,
125
125
  reorderMessages,
126
126
  stripSystemMessages
127
- } from "./chunk-UP22WCEV.js";
127
+ } from "./chunk-TCH73D5U.js";
128
128
  import {
129
129
  getRequestStatus,
130
130
  setRequestStatus,
@@ -154,7 +154,7 @@ import {
154
154
  normalizeFilePath,
155
155
  readTextContent,
156
156
  writeTextContent
157
- } from "./chunk-ZOGQ47JZ.js";
157
+ } from "./chunk-IGINSXE5.js";
158
158
  import {
159
159
  parseBlockEdits
160
160
  } from "./chunk-QWIBSCDN.js";
@@ -164,18 +164,18 @@ import {
164
164
  ParserRegistry,
165
165
  initParser,
166
166
  loadLanguage
167
- } from "./chunk-I5KCNNUI.js";
167
+ } from "./chunk-GID4HETQ.js";
168
168
  import {
169
169
  getSettingsFileCandidates,
170
170
  loadSettingsWithLegacyFallback,
171
171
  readSettingsFile
172
- } from "./chunk-CH7AQMFI.js";
172
+ } from "./chunk-DPQAF6WJ.js";
173
173
  import {
174
174
  getCustomCommandDirectories,
175
175
  hasCustomCommands,
176
176
  loadCustomCommands,
177
177
  reloadCustomCommands
178
- } from "./chunk-L5BXFKV7.js";
178
+ } from "./chunk-REZSGPLV.js";
179
179
  import {
180
180
  getSessionPlugins
181
181
  } from "./chunk-BJSWTHRM.js";
@@ -183,7 +183,7 @@ import {
183
183
  ModelManager,
184
184
  getModelManager,
185
185
  isDefaultSlowAndCapableModel
186
- } from "./chunk-4EUFV7IZ.js";
186
+ } from "./chunk-GL6HVQ7Y.js";
187
187
  import {
188
188
  getCodeStyle,
189
189
  getContext,
@@ -191,13 +191,13 @@ import {
191
191
  getIsGit,
192
192
  getProjectDocs,
193
193
  getProjectStructureStatisticsBlock
194
- } from "./chunk-DVWYKOS2.js";
194
+ } from "./chunk-KFDO6W7P.js";
195
195
  import {
196
196
  ripGrep
197
- } from "./chunk-IYTU4OJV.js";
197
+ } from "./chunk-F2SIWWFK.js";
198
198
  import {
199
199
  getTheme
200
- } from "./chunk-MQOUWZJB.js";
200
+ } from "./chunk-FZKER2A6.js";
201
201
  import {
202
202
  DEFAULT_GLOBAL_CONFIG,
203
203
  enableConfigs,
@@ -210,7 +210,7 @@ import {
210
210
  saveGlobalConfig,
211
211
  setAllPointersToModel,
212
212
  setModelPointer
213
- } from "./chunk-XWTPHVQ2.js";
213
+ } from "./chunk-4BMX3A66.js";
214
214
  import {
215
215
  AbortError
216
216
  } from "./chunk-RQVLBMP7.js";
@@ -219,7 +219,7 @@ import {
219
219
  getCurrentRequest,
220
220
  logUserFriendly,
221
221
  markPhase
222
- } from "./chunk-ATTYOEZT.js";
222
+ } from "./chunk-QVCL2JNZ.js";
223
223
  import {
224
224
  ASCII_LOGO,
225
225
  BunShell,
@@ -260,10 +260,10 @@ import {
260
260
  setCwd,
261
261
  shouldApplyToolOutputTruncation,
262
262
  truncateToolOutput
263
- } from "./chunk-BBN46KXV.js";
263
+ } from "./chunk-GDMZZQXA.js";
264
264
  import {
265
265
  MACRO
266
- } from "./chunk-ULUZRDEZ.js";
266
+ } from "./chunk-2IKQLU7Z.js";
267
267
  import {
268
268
  __export
269
269
  } from "./chunk-I3J4JYES.js";
@@ -444,7 +444,7 @@ var getCommandSubcommandPrefix = memoize(
444
444
  var getCommandPrefix = memoize(
445
445
  async (command4, abortSignal) => {
446
446
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
447
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-IBAT6C77.js");
447
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-5MR7DEOU.js");
448
448
  const response = await queryQuick2({
449
449
  systemPrompt,
450
450
  userPrompt,
@@ -4246,7 +4246,7 @@ function formatParseError(error) {
4246
4246
  return error instanceof Error ? error.message : String(error);
4247
4247
  }
4248
4248
  async function defaultGateQuery(args) {
4249
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-IBAT6C77.js");
4249
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-5MR7DEOU.js");
4250
4250
  const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
4251
4251
  const messages = [
4252
4252
  {
@@ -6643,7 +6643,7 @@ var FileEditTool = {
6643
6643
  const originalFileContent = currentFileContent;
6644
6644
  let totalPatch = [];
6645
6645
  const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
6646
- const { findLspAnchor } = await import("./lspAnchor-Y5ODO3C4.js");
6646
+ const { findLspAnchor } = await import("./lspAnchor-YFDQNUX2.js");
6647
6647
  for (const op of editOperations) {
6648
6648
  const normalizedSearch = normalizeLineEndings(op.search);
6649
6649
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -7405,17 +7405,32 @@ var FileReadTool = {
7405
7405
  return /* @__PURE__ */ React13.createElement(FallbackToolUseRejectedMessage, null);
7406
7406
  },
7407
7407
  async validateInput({ file_path, offset, limit, symbol_name }) {
7408
+ if (!file_path || file_path.trim() === "") {
7409
+ return {
7410
+ result: false,
7411
+ message: "File path cannot be empty."
7412
+ };
7413
+ }
7408
7414
  const fullFilePath = normalizeFilePath(file_path);
7409
7415
  const fileCheck = secureFileService.safeGetFileInfo(fullFilePath);
7410
7416
  if (!fileCheck.success) {
7411
- const similarFilename = findSimilarFile(fullFilePath);
7412
- let message = "File does not exist.";
7413
- if (similarFilename) {
7414
- message += ` Did you mean ${similarFilename}?`;
7415
- }
7416
- message += "\nSuggestion: use LS/Glob on parent directories to confirm the real structure and filename before Read.";
7417
- message += "\nSuggestion: if the path came from search results, rerun Glob/Grep to confirm the latest path.";
7418
- message += "\nSuggestion: in multi-repo or multi-branch environments, confirm the current working directory and branch before locating.";
7417
+ const error = fileCheck.error || "";
7418
+ let message;
7419
+ if (isSecurityError(error)) {
7420
+ message = formatSecurityError(error);
7421
+ } else if (error.includes("does not exist")) {
7422
+ const similarFilename = findSimilarFile(fullFilePath);
7423
+ message = "File does not exist.";
7424
+ if (similarFilename) {
7425
+ message += ` Did you mean ${similarFilename}?`;
7426
+ }
7427
+ message += "\nSuggestion: If the path came from search results, rerun Glob/Grep to confirm the latest path.Use LS/Glob on parent directories to confirm the real structure and filename before Read.";
7428
+ message += "\nSuggestion: in multi-repo or multi-branch environments, confirm the current working directory and branch before locating.";
7429
+ } else if (error.includes("too long")) {
7430
+ message = "Path too long (max 4096 characters). Please provide a shorter path.";
7431
+ } else {
7432
+ message = error ? `Failed to access file: ${error}` : "Failed to access file. Please verify the path and try again.";
7433
+ }
7419
7434
  return {
7420
7435
  result: false,
7421
7436
  message
@@ -7630,6 +7645,26 @@ var FileReadTool = {
7630
7645
  }
7631
7646
  };
7632
7647
  var formatFileSizeError = (sizeInBytes) => `File content (${Math.round(sizeInBytes / 1024)}KB) exceeds maximum allowed size (${Math.round(MAX_OUTPUT_SIZE / 1024)}KB). Please use offset and limit parameters to read specific portions of the file, or use the Grep tool to search for specific content.`;
7648
+ var isSecurityError = (error) => {
7649
+ const patterns = [
7650
+ "outside allowed directories",
7651
+ "traversal characters",
7652
+ "suspicious pattern"
7653
+ ];
7654
+ return patterns.some((pattern) => error.includes(pattern));
7655
+ };
7656
+ var formatSecurityError = (error) => {
7657
+ if (error.includes("outside allowed directories")) {
7658
+ return "Access denied: path is not allowed. Please use a path within the working directory.";
7659
+ }
7660
+ if (error.includes("traversal characters")) {
7661
+ return "Access denied: path contains invalid traversal characters. Please provide an absolute path.";
7662
+ }
7663
+ if (error.includes("suspicious pattern")) {
7664
+ return "Access denied: path contains suspicious characters. Please provide a valid file path.";
7665
+ }
7666
+ return "Access denied: path is not allowed.";
7667
+ };
7633
7668
  function createImageResponse(buffer, ext, originalSize) {
7634
7669
  const normalized = ext === ".jpg" || ext === ".jpeg" ? "image/jpeg" : ext === ".png" ? "image/png" : ext === ".gif" ? "image/gif" : "image/webp";
7635
7670
  return {
@@ -11278,7 +11313,7 @@ async function createAndStoreApiKey(accessToken) {
11278
11313
  }
11279
11314
  saveGlobalConfig(config2);
11280
11315
  try {
11281
- const { resetAnthropicClient } = await import("./llm-IBAT6C77.js");
11316
+ const { resetAnthropicClient } = await import("./llm-5MR7DEOU.js");
11282
11317
  resetAnthropicClient();
11283
11318
  } catch {
11284
11319
  }
@@ -15645,7 +15680,7 @@ async function refreshPluginRuntimeFromInstalls() {
15645
15680
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
15646
15681
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
15647
15682
  if (dirs.length === 0) return [];
15648
- const { configureSessionPlugins } = await import("./pluginRuntime-YHLTGW2O.js");
15683
+ const { configureSessionPlugins } = await import("./pluginRuntime-J57C7K7K.js");
15649
15684
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
15650
15685
  return errors;
15651
15686
  }
@@ -16314,7 +16349,7 @@ async function call(onDone, context) {
16314
16349
  ModelConfig,
16315
16350
  {
16316
16351
  onClose: () => {
16317
- import("./model-XO4IA6K3.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16352
+ import("./model-GYOM5HF3.js").then(({ reloadModelManager: reloadModelManager2 }) => {
16318
16353
  reloadModelManager2();
16319
16354
  triggerModelConfigChange();
16320
16355
  onDone();
@@ -25180,7 +25215,7 @@ function useStatusLine() {
25180
25215
  // src/ui/components/PromptInput.tsx
25181
25216
  async function interpretHashCommand(input) {
25182
25217
  try {
25183
- const { queryQuick: queryQuick2 } = await import("./llm-IBAT6C77.js");
25218
+ const { queryQuick: queryQuick2 } = await import("./llm-5MR7DEOU.js");
25184
25219
  const systemPrompt = [
25185
25220
  "You're helping the user structure notes that will be added to their PYB.md file.",
25186
25221
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -25493,7 +25528,7 @@ function PromptInput({
25493
25528
  if (messages2.length) {
25494
25529
  if (mode === "bash") {
25495
25530
  onQuery(messages2, newAbortController).then(async () => {
25496
- const { getCwd: getCwd2 } = await import("./state-YUFV22R5.js");
25531
+ const { getCwd: getCwd2 } = await import("./state-NA4BTHFE.js");
25497
25532
  setCurrentPwd(getCwd2());
25498
25533
  });
25499
25534
  } else {
@@ -28672,7 +28707,7 @@ import { homedir as homedir8 } from "os";
28672
28707
  // src/commands/agents/generation.ts
28673
28708
  import { randomUUID as randomUUID6 } from "crypto";
28674
28709
  async function generateAgentWithClaude(prompt) {
28675
- const { queryModel } = await import("./llm-IBAT6C77.js");
28710
+ const { queryModel } = await import("./llm-5MR7DEOU.js");
28676
28711
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
28677
28712
 
28678
28713
  Return your response as a JSON object with exactly these fields: