pybao-cli 1.5.12 → 1.5.13

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 (156) hide show
  1. package/dist/REPL-4ET7DK5F.js +50 -0
  2. package/dist/{acp-Y5IIA2WP.js → acp-6D6QDJQY.js} +31 -31
  3. package/dist/{agentsValidate-DY2NM3DJ.js → agentsValidate-XFP3HZ4H.js} +7 -7
  4. package/dist/{ask-GPGFZXW5.js → ask-6CZRJCSZ.js} +30 -30
  5. package/dist/{autoUpdater-M2OUQGQB.js → autoUpdater-VCCPGPDD.js} +3 -3
  6. package/dist/{chunk-RLHWOGYA.js → chunk-2L7XKUEG.js} +2 -1
  7. package/dist/chunk-2L7XKUEG.js.map +7 -0
  8. package/dist/{chunk-PAF6R5NZ.js → chunk-2YIYRACC.js} +1 -1
  9. package/dist/{chunk-XBS7CGQI.js → chunk-4CTIJSGF.js} +1 -1
  10. package/dist/{chunk-J4QOIMCY.js → chunk-4V637EWT.js} +15 -15
  11. package/dist/{chunk-4RFXDDFR.js → chunk-5AZPIB3O.js} +3 -3
  12. package/dist/{chunk-3BURXBWN.js → chunk-5SB6YYVT.js} +1 -1
  13. package/dist/{chunk-NGJAMMVA.js → chunk-62DRY4WE.js} +4 -4
  14. package/dist/{chunk-PFX6IKOO.js → chunk-6Z7VRZE3.js} +2 -2
  15. package/dist/{chunk-6BD6I6S2.js → chunk-CLDFSJRX.js} +3 -3
  16. package/dist/{chunk-2OOXJ4JL.js → chunk-DFQUXY7J.js} +8 -13
  17. package/dist/chunk-DFQUXY7J.js.map +7 -0
  18. package/dist/{chunk-A5VNXFCK.js → chunk-DYRNDVME.js} +3 -3
  19. package/dist/{chunk-6MWZ7CQZ.js → chunk-EN3EFAIN.js} +127 -86
  20. package/dist/{chunk-6MWZ7CQZ.js.map → chunk-EN3EFAIN.js.map} +2 -2
  21. package/dist/{chunk-GAQ4MRQE.js → chunk-FEEOL2BF.js} +2 -2
  22. package/dist/{chunk-VP6FXGFA.js → chunk-GKLF5SMX.js} +4 -4
  23. package/dist/{chunk-2ITFLNCF.js → chunk-HBFOODQT.js} +1 -1
  24. package/dist/{chunk-55ZZ26MV.js → chunk-IKZOQVSC.js} +3 -3
  25. package/dist/{chunk-EYP4MYSC.js → chunk-IZKGIVR5.js} +4 -4
  26. package/dist/{chunk-5VJYKH3Y.js → chunk-KDWAOC2Y.js} +2 -2
  27. package/dist/{chunk-NKKES2C5.js → chunk-KHCVAV26.js} +1 -1
  28. package/dist/{chunk-TYOFB7OQ.js → chunk-LHETO2A7.js} +2 -2
  29. package/dist/{chunk-4PFJOP5W.js → chunk-LXKU7CVC.js} +1 -1
  30. package/dist/{chunk-IPK7SMWY.js → chunk-MP2Z2WPA.js} +3 -3
  31. package/dist/{chunk-7TYWNOBA.js → chunk-NMV2Y2OE.js} +2 -2
  32. package/dist/{chunk-J5TXPVLF.js → chunk-PF2W6HQJ.js} +3 -3
  33. package/dist/{chunk-5OQ3NGHH.js → chunk-PH2OZGKF.js} +1 -1
  34. package/dist/{chunk-227OYWVC.js → chunk-PMBP2S7T.js} +2 -2
  35. package/dist/{chunk-7TQBXHKB.js → chunk-R5KHOF4Q.js} +1 -1
  36. package/dist/{chunk-QCT45V24.js → chunk-SQZQF7FX.js} +1 -1
  37. package/dist/{chunk-M2UVICYL.js → chunk-USAN2W2G.js} +1 -1
  38. package/dist/{chunk-WNSD3D42.js → chunk-UYEP4HDV.js} +1 -1
  39. package/dist/{chunk-H36NFG5R.js → chunk-V6HDC2AS.js} +4 -4
  40. package/dist/{chunk-4SRPMRVV.js → chunk-VLE3RIPA.js} +3 -3
  41. package/dist/{cli-XKJKAXHT.js → cli-2YA4LC5A.js} +91 -91
  42. package/dist/commands-GZ2R547K.js +54 -0
  43. package/dist/{config-GVJLYS6J.js → config-NLO656A6.js} +4 -4
  44. package/dist/{context-4CGVBFDS.js → context-B5OAVYCB.js} +6 -6
  45. package/dist/{conversationPersistence-G424Q2MK.js → conversationPersistence-U3JD7OG2.js} +3 -3
  46. package/dist/{conversationTracker-Q26GHUUC.js → conversationTracker-XMFEBWHY.js} +4 -4
  47. package/dist/{customCommands-LM4FM5U3.js → customCommands-MP2IC4VW.js} +4 -4
  48. package/dist/{env-L3OOLUJ2.js → env-IWFZNFTP.js} +2 -2
  49. package/dist/{file-WDYIWIDQ.js → file-NKAAAB74.js} +4 -4
  50. package/dist/index.js +3 -3
  51. package/dist/{llm-D52SN2GV.js → llm-VL7SVIXR.js} +31 -31
  52. package/dist/{llmLazy-3NN2ZUR4.js → llmLazy-JXN5R32R.js} +1 -1
  53. package/dist/{loader-D2S3WQNM.js → loader-QO3E224E.js} +4 -4
  54. package/dist/{lsp-HEXOWAPA.js → lsp-3KQLSDLC.js} +6 -6
  55. package/dist/{lspAnchor-L56WS5TF.js → lspAnchor-56RDVJJK.js} +6 -6
  56. package/dist/{mcp-6QYH5WSD.js → mcp-QYGOVXNU.js} +7 -7
  57. package/dist/{mentionProcessor-HSJQXOES.js → mentionProcessor-M5UL6TT6.js} +5 -5
  58. package/dist/{messages-M7O4ITWW.js → messages-IR7NEQMR.js} +1 -1
  59. package/dist/{model-OBGYKN2R.js → model-JVW7GWZF.js} +5 -5
  60. package/dist/{openai-WSL6ONMZ.js → openai-JJWBAQ7K.js} +5 -5
  61. package/dist/{outputStyles-PEKSPFFT.js → outputStyles-NNT6NWAK.js} +4 -4
  62. package/dist/{pluginRuntime-HXPNSVLK.js → pluginRuntime-5ZYXGIUZ.js} +6 -6
  63. package/dist/{pluginValidation-LUNRNYN5.js → pluginValidation-6OLPIUNW.js} +6 -6
  64. package/dist/prompts-ITAM2QAA.js +56 -0
  65. package/dist/{pybAgentSessionLoad-2HQF3WDO.js → pybAgentSessionLoad-HN6WOHQP.js} +4 -4
  66. package/dist/{pybAgentSessionResume-DHJIRJQX.js → pybAgentSessionResume-KEUXFVVT.js} +4 -4
  67. package/dist/{pybAgentStreamJsonSession-BPIP4CM4.js → pybAgentStreamJsonSession-V24MOW3E.js} +1 -1
  68. package/dist/{pybHooks-YGTJ3V7F.js → pybHooks-OEASV3O6.js} +4 -4
  69. package/dist/query-4YMUBJ3B.js +56 -0
  70. package/dist/{registry-V4XSGNR3.js → registry-WDNZOTS2.js} +5 -5
  71. package/dist/{ripgrep-2NKICK37.js → ripgrep-YEEECTEY.js} +3 -3
  72. package/dist/{skillMarketplace-BHCLGUQJ.js → skillMarketplace-N2W7WTS3.js} +3 -3
  73. package/dist/{state-QXUVP75D.js → state-IB4ZDFMG.js} +2 -2
  74. package/dist/{theme-2TTCOHK4.js → theme-5AY4LKLW.js} +5 -5
  75. package/dist/{toolPermissionSettings-XE4MDEZ2.js → toolPermissionSettings-J5VPVYUK.js} +6 -6
  76. package/dist/tools-VLTX3RMF.js +55 -0
  77. package/dist/{userInput-AUO3ADIL.js → userInput-YJI6VWIU.js} +32 -32
  78. package/package.json +2 -1
  79. package/scripts/session-behavior-invariant-gate.mjs +8 -0
  80. package/dist/REPL-GBEPTREF.js +0 -50
  81. package/dist/chunk-2OOXJ4JL.js.map +0 -7
  82. package/dist/chunk-RLHWOGYA.js.map +0 -7
  83. package/dist/commands-TUBV2Y5X.js +0 -54
  84. package/dist/prompts-DUBZMFLB.js +0 -56
  85. package/dist/query-QQZDEGH6.js +0 -56
  86. package/dist/tools-SD5RYBF4.js +0 -55
  87. /package/dist/{REPL-GBEPTREF.js.map → REPL-4ET7DK5F.js.map} +0 -0
  88. /package/dist/{acp-Y5IIA2WP.js.map → acp-6D6QDJQY.js.map} +0 -0
  89. /package/dist/{agentsValidate-DY2NM3DJ.js.map → agentsValidate-XFP3HZ4H.js.map} +0 -0
  90. /package/dist/{ask-GPGFZXW5.js.map → ask-6CZRJCSZ.js.map} +0 -0
  91. /package/dist/{autoUpdater-M2OUQGQB.js.map → autoUpdater-VCCPGPDD.js.map} +0 -0
  92. /package/dist/{chunk-PAF6R5NZ.js.map → chunk-2YIYRACC.js.map} +0 -0
  93. /package/dist/{chunk-XBS7CGQI.js.map → chunk-4CTIJSGF.js.map} +0 -0
  94. /package/dist/{chunk-J4QOIMCY.js.map → chunk-4V637EWT.js.map} +0 -0
  95. /package/dist/{chunk-4RFXDDFR.js.map → chunk-5AZPIB3O.js.map} +0 -0
  96. /package/dist/{chunk-3BURXBWN.js.map → chunk-5SB6YYVT.js.map} +0 -0
  97. /package/dist/{chunk-NGJAMMVA.js.map → chunk-62DRY4WE.js.map} +0 -0
  98. /package/dist/{chunk-PFX6IKOO.js.map → chunk-6Z7VRZE3.js.map} +0 -0
  99. /package/dist/{chunk-6BD6I6S2.js.map → chunk-CLDFSJRX.js.map} +0 -0
  100. /package/dist/{chunk-A5VNXFCK.js.map → chunk-DYRNDVME.js.map} +0 -0
  101. /package/dist/{chunk-GAQ4MRQE.js.map → chunk-FEEOL2BF.js.map} +0 -0
  102. /package/dist/{chunk-VP6FXGFA.js.map → chunk-GKLF5SMX.js.map} +0 -0
  103. /package/dist/{chunk-2ITFLNCF.js.map → chunk-HBFOODQT.js.map} +0 -0
  104. /package/dist/{chunk-55ZZ26MV.js.map → chunk-IKZOQVSC.js.map} +0 -0
  105. /package/dist/{chunk-EYP4MYSC.js.map → chunk-IZKGIVR5.js.map} +0 -0
  106. /package/dist/{chunk-5VJYKH3Y.js.map → chunk-KDWAOC2Y.js.map} +0 -0
  107. /package/dist/{chunk-NKKES2C5.js.map → chunk-KHCVAV26.js.map} +0 -0
  108. /package/dist/{chunk-TYOFB7OQ.js.map → chunk-LHETO2A7.js.map} +0 -0
  109. /package/dist/{chunk-4PFJOP5W.js.map → chunk-LXKU7CVC.js.map} +0 -0
  110. /package/dist/{chunk-IPK7SMWY.js.map → chunk-MP2Z2WPA.js.map} +0 -0
  111. /package/dist/{chunk-7TYWNOBA.js.map → chunk-NMV2Y2OE.js.map} +0 -0
  112. /package/dist/{chunk-J5TXPVLF.js.map → chunk-PF2W6HQJ.js.map} +0 -0
  113. /package/dist/{chunk-5OQ3NGHH.js.map → chunk-PH2OZGKF.js.map} +0 -0
  114. /package/dist/{chunk-227OYWVC.js.map → chunk-PMBP2S7T.js.map} +0 -0
  115. /package/dist/{chunk-7TQBXHKB.js.map → chunk-R5KHOF4Q.js.map} +0 -0
  116. /package/dist/{chunk-QCT45V24.js.map → chunk-SQZQF7FX.js.map} +0 -0
  117. /package/dist/{chunk-M2UVICYL.js.map → chunk-USAN2W2G.js.map} +0 -0
  118. /package/dist/{chunk-WNSD3D42.js.map → chunk-UYEP4HDV.js.map} +0 -0
  119. /package/dist/{chunk-H36NFG5R.js.map → chunk-V6HDC2AS.js.map} +0 -0
  120. /package/dist/{chunk-4SRPMRVV.js.map → chunk-VLE3RIPA.js.map} +0 -0
  121. /package/dist/{cli-XKJKAXHT.js.map → cli-2YA4LC5A.js.map} +0 -0
  122. /package/dist/{commands-TUBV2Y5X.js.map → commands-GZ2R547K.js.map} +0 -0
  123. /package/dist/{config-GVJLYS6J.js.map → config-NLO656A6.js.map} +0 -0
  124. /package/dist/{context-4CGVBFDS.js.map → context-B5OAVYCB.js.map} +0 -0
  125. /package/dist/{conversationPersistence-G424Q2MK.js.map → conversationPersistence-U3JD7OG2.js.map} +0 -0
  126. /package/dist/{conversationTracker-Q26GHUUC.js.map → conversationTracker-XMFEBWHY.js.map} +0 -0
  127. /package/dist/{customCommands-LM4FM5U3.js.map → customCommands-MP2IC4VW.js.map} +0 -0
  128. /package/dist/{env-L3OOLUJ2.js.map → env-IWFZNFTP.js.map} +0 -0
  129. /package/dist/{file-WDYIWIDQ.js.map → file-NKAAAB74.js.map} +0 -0
  130. /package/dist/{llm-D52SN2GV.js.map → llm-VL7SVIXR.js.map} +0 -0
  131. /package/dist/{llmLazy-3NN2ZUR4.js.map → llmLazy-JXN5R32R.js.map} +0 -0
  132. /package/dist/{loader-D2S3WQNM.js.map → loader-QO3E224E.js.map} +0 -0
  133. /package/dist/{lsp-HEXOWAPA.js.map → lsp-3KQLSDLC.js.map} +0 -0
  134. /package/dist/{lspAnchor-L56WS5TF.js.map → lspAnchor-56RDVJJK.js.map} +0 -0
  135. /package/dist/{mcp-6QYH5WSD.js.map → mcp-QYGOVXNU.js.map} +0 -0
  136. /package/dist/{mentionProcessor-HSJQXOES.js.map → mentionProcessor-M5UL6TT6.js.map} +0 -0
  137. /package/dist/{messages-M7O4ITWW.js.map → messages-IR7NEQMR.js.map} +0 -0
  138. /package/dist/{model-OBGYKN2R.js.map → model-JVW7GWZF.js.map} +0 -0
  139. /package/dist/{openai-WSL6ONMZ.js.map → openai-JJWBAQ7K.js.map} +0 -0
  140. /package/dist/{outputStyles-PEKSPFFT.js.map → outputStyles-NNT6NWAK.js.map} +0 -0
  141. /package/dist/{pluginRuntime-HXPNSVLK.js.map → pluginRuntime-5ZYXGIUZ.js.map} +0 -0
  142. /package/dist/{pluginValidation-LUNRNYN5.js.map → pluginValidation-6OLPIUNW.js.map} +0 -0
  143. /package/dist/{prompts-DUBZMFLB.js.map → prompts-ITAM2QAA.js.map} +0 -0
  144. /package/dist/{pybAgentSessionLoad-2HQF3WDO.js.map → pybAgentSessionLoad-HN6WOHQP.js.map} +0 -0
  145. /package/dist/{pybAgentSessionResume-DHJIRJQX.js.map → pybAgentSessionResume-KEUXFVVT.js.map} +0 -0
  146. /package/dist/{pybAgentStreamJsonSession-BPIP4CM4.js.map → pybAgentStreamJsonSession-V24MOW3E.js.map} +0 -0
  147. /package/dist/{pybHooks-YGTJ3V7F.js.map → pybHooks-OEASV3O6.js.map} +0 -0
  148. /package/dist/{query-QQZDEGH6.js.map → query-4YMUBJ3B.js.map} +0 -0
  149. /package/dist/{registry-V4XSGNR3.js.map → registry-WDNZOTS2.js.map} +0 -0
  150. /package/dist/{ripgrep-2NKICK37.js.map → ripgrep-YEEECTEY.js.map} +0 -0
  151. /package/dist/{skillMarketplace-BHCLGUQJ.js.map → skillMarketplace-N2W7WTS3.js.map} +0 -0
  152. /package/dist/{state-QXUVP75D.js.map → state-IB4ZDFMG.js.map} +0 -0
  153. /package/dist/{theme-2TTCOHK4.js.map → theme-5AY4LKLW.js.map} +0 -0
  154. /package/dist/{toolPermissionSettings-XE4MDEZ2.js.map → toolPermissionSettings-J5VPVYUK.js.map} +0 -0
  155. /package/dist/{tools-SD5RYBF4.js.map → tools-VLTX3RMF.js.map} +0 -0
  156. /package/dist/{userInput-AUO3ADIL.js.map → userInput-YJI6VWIU.js.map} +0 -0
@@ -2,18 +2,18 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  loadPybAgentSessionMessages
5
- } from "./chunk-QCT45V24.js";
5
+ } from "./chunk-SQZQF7FX.js";
6
6
  import {
7
7
  listPybAgentSessions
8
- } from "./chunk-PAF6R5NZ.js";
8
+ } from "./chunk-2YIYRACC.js";
9
9
  import {
10
10
  appendSessionCustomTitleRecord,
11
11
  appendSessionTagRecord
12
- } from "./chunk-3BURXBWN.js";
12
+ } from "./chunk-5SB6YYVT.js";
13
13
  import {
14
14
  formatValidationResult,
15
15
  validatePluginOrMarketplacePath
16
- } from "./chunk-4SRPMRVV.js";
16
+ } from "./chunk-VLE3RIPA.js";
17
17
  import {
18
18
  ConversationTracker,
19
19
  appendFinishState,
@@ -21,10 +21,10 @@ import {
21
21
  getConversationTrackerForContext,
22
22
  isFinishComplete,
23
23
  mapFinishReason
24
- } from "./chunk-7TQBXHKB.js";
24
+ } from "./chunk-R5KHOF4Q.js";
25
25
  import {
26
26
  FileSystemConversationPersistence
27
- } from "./chunk-NKKES2C5.js";
27
+ } from "./chunk-KHCVAV26.js";
28
28
  import {
29
29
  beginReplSessionScope
30
30
  } from "./chunk-F4AXICO7.js";
@@ -39,7 +39,7 @@ import {
39
39
  runStopHooks,
40
40
  runUserPromptSubmitHooks,
41
41
  updateHookTranscriptForMessages
42
- } from "./chunk-6BD6I6S2.js";
42
+ } from "./chunk-CLDFSJRX.js";
43
43
  import {
44
44
  DEFAULT_OUTPUT_STYLE,
45
45
  getAvailableOutputStyles,
@@ -48,11 +48,11 @@ import {
48
48
  getOutputStyleSystemPromptAdditions,
49
49
  resolveOutputStyleName,
50
50
  setCurrentOutputStyle
51
- } from "./chunk-5VJYKH3Y.js";
51
+ } from "./chunk-KDWAOC2Y.js";
52
52
  import {
53
53
  fetchCustomModels,
54
54
  getModelFeatures
55
- } from "./chunk-227OYWVC.js";
55
+ } from "./chunk-PMBP2S7T.js";
56
56
  import {
57
57
  getSessionState
58
58
  } from "./chunk-XKYHFZEC.js";
@@ -60,7 +60,7 @@ import {
60
60
  queryLLM,
61
61
  queryQuick,
62
62
  verifyApiKey
63
- } from "./chunk-VP6FXGFA.js";
63
+ } from "./chunk-GKLF5SMX.js";
64
64
  import {
65
65
  DEFAULT_TIMEOUT_MS,
66
66
  FallbackToolUseRejectedMessage,
@@ -74,7 +74,7 @@ import {
74
74
  listMCPServers,
75
75
  loadMergedSettings,
76
76
  normalizeSandboxRuntimeConfigFromSettings
77
- } from "./chunk-EYP4MYSC.js";
77
+ } from "./chunk-IZKGIVR5.js";
78
78
  import {
79
79
  addMarketplace,
80
80
  disableSkillPlugin,
@@ -87,11 +87,11 @@ import {
87
87
  refreshMarketplaceAsync,
88
88
  removeMarketplace,
89
89
  uninstallSkillPlugin
90
- } from "./chunk-M2UVICYL.js";
90
+ } from "./chunk-USAN2W2G.js";
91
91
  import {
92
92
  loadToolPermissionContextFromDisk,
93
93
  persistToolPermissionUpdateToDisk
94
- } from "./chunk-A5VNXFCK.js";
94
+ } from "./chunk-DYRNDVME.js";
95
95
  import {
96
96
  applyToolPermissionContextUpdate,
97
97
  applyToolPermissionContextUpdates,
@@ -102,13 +102,13 @@ import {
102
102
  generateSystemReminders,
103
103
  resetReminderSession,
104
104
  systemReminderService
105
- } from "./chunk-7TYWNOBA.js";
105
+ } from "./chunk-NMV2Y2OE.js";
106
106
  import {
107
107
  clearAgentCache,
108
108
  getActiveAgents,
109
109
  getAgentByType,
110
110
  getAllAgents
111
- } from "./chunk-TYOFB7OQ.js";
111
+ } from "./chunk-LHETO2A7.js";
112
112
  import {
113
113
  API_ERROR_MESSAGE_PREFIX,
114
114
  CANCEL_MESSAGE,
@@ -145,7 +145,7 @@ import {
145
145
  reorderMessages,
146
146
  resetAutoCompactTelemetry,
147
147
  stripSystemMessages
148
- } from "./chunk-WNSD3D42.js";
148
+ } from "./chunk-UYEP4HDV.js";
149
149
  import {
150
150
  getRequestStatus,
151
151
  setRequestStatus,
@@ -175,7 +175,7 @@ import {
175
175
  normalizeFilePath,
176
176
  readTextContent,
177
177
  writeTextContent
178
- } from "./chunk-PFX6IKOO.js";
178
+ } from "./chunk-6Z7VRZE3.js";
179
179
  import {
180
180
  parseBlockEdits
181
181
  } from "./chunk-QWIBSCDN.js";
@@ -185,18 +185,18 @@ import {
185
185
  ParserRegistry,
186
186
  initParser,
187
187
  loadLanguage
188
- } from "./chunk-H36NFG5R.js";
188
+ } from "./chunk-V6HDC2AS.js";
189
189
  import {
190
190
  getSettingsFileCandidates,
191
191
  loadSettingsWithLegacyFallback,
192
192
  readSettingsFile
193
- } from "./chunk-4PFJOP5W.js";
193
+ } from "./chunk-LXKU7CVC.js";
194
194
  import {
195
195
  getCustomCommandDirectories,
196
196
  hasCustomCommands,
197
197
  loadCustomCommands,
198
198
  reloadCustomCommands
199
- } from "./chunk-GAQ4MRQE.js";
199
+ } from "./chunk-FEEOL2BF.js";
200
200
  import {
201
201
  getSessionPlugins
202
202
  } from "./chunk-BJSWTHRM.js";
@@ -205,7 +205,7 @@ import {
205
205
  buildModelProfileKey,
206
206
  getModelManager,
207
207
  isDefaultSlowAndCapableModel
208
- } from "./chunk-4RFXDDFR.js";
208
+ } from "./chunk-5AZPIB3O.js";
209
209
  import {
210
210
  getCodeStyle,
211
211
  getContext,
@@ -213,16 +213,16 @@ import {
213
213
  getIsGit,
214
214
  getProjectDocs,
215
215
  getProjectStructureStatisticsBlock
216
- } from "./chunk-NGJAMMVA.js";
216
+ } from "./chunk-62DRY4WE.js";
217
217
  import {
218
218
  getRipgrepPath,
219
219
  getRipgrepPolicyMode,
220
220
  resolveRipgrepPolicy,
221
221
  ripGrep
222
- } from "./chunk-XBS7CGQI.js";
222
+ } from "./chunk-4CTIJSGF.js";
223
223
  import {
224
224
  getTheme
225
- } from "./chunk-5OQ3NGHH.js";
225
+ } from "./chunk-PH2OZGKF.js";
226
226
  import {
227
227
  DEFAULT_GLOBAL_CONFIG,
228
228
  enableConfigs,
@@ -235,7 +235,7 @@ import {
235
235
  saveGlobalConfig,
236
236
  setAllPointersToModel,
237
237
  setModelPointer
238
- } from "./chunk-55ZZ26MV.js";
238
+ } from "./chunk-IKZOQVSC.js";
239
239
  import {
240
240
  AbortError
241
241
  } from "./chunk-RQVLBMP7.js";
@@ -244,7 +244,7 @@ import {
244
244
  getCurrentRequest,
245
245
  logUserFriendly,
246
246
  markPhase
247
- } from "./chunk-2ITFLNCF.js";
247
+ } from "./chunk-HBFOODQT.js";
248
248
  import {
249
249
  ASCII_LOGO,
250
250
  BunShell,
@@ -285,10 +285,10 @@ import {
285
285
  setCwd,
286
286
  shouldApplyToolOutputTruncation,
287
287
  truncateToolOutput
288
- } from "./chunk-2OOXJ4JL.js";
288
+ } from "./chunk-DFQUXY7J.js";
289
289
  import {
290
290
  MACRO
291
- } from "./chunk-RLHWOGYA.js";
291
+ } from "./chunk-2L7XKUEG.js";
292
292
  import {
293
293
  __export
294
294
  } from "./chunk-I3J4JYES.js";
@@ -469,7 +469,7 @@ var getCommandSubcommandPrefix = memoize(
469
469
  var getCommandPrefix = memoize(
470
470
  async (command4, abortSignal) => {
471
471
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
472
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-D52SN2GV.js");
472
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-VL7SVIXR.js");
473
473
  const response = await queryQuick2({
474
474
  systemPrompt,
475
475
  userPrompt,
@@ -4271,7 +4271,7 @@ function formatParseError(error) {
4271
4271
  return error instanceof Error ? error.message : String(error);
4272
4272
  }
4273
4273
  async function defaultGateQuery(args) {
4274
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-D52SN2GV.js");
4274
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-VL7SVIXR.js");
4275
4275
  const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
4276
4276
  const messages = [
4277
4277
  {
@@ -6664,7 +6664,7 @@ var FileEditTool = {
6664
6664
  const originalFileContent = currentFileContent;
6665
6665
  let totalPatch = [];
6666
6666
  const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
6667
- const { findLspAnchor } = await import("./lspAnchor-L56WS5TF.js");
6667
+ const { findLspAnchor } = await import("./lspAnchor-56RDVJJK.js");
6668
6668
  for (const op of editOperations) {
6669
6669
  const normalizedSearch = normalizeLineEndings(op.search);
6670
6670
  const normalizedReplace = normalizeLineEndings(op.replace);
@@ -12149,7 +12149,7 @@ async function createAndStoreApiKey(accessToken) {
12149
12149
  }
12150
12150
  saveGlobalConfig(config2);
12151
12151
  try {
12152
- const { resetAnthropicClient } = await import("./llm-D52SN2GV.js");
12152
+ const { resetAnthropicClient } = await import("./llm-VL7SVIXR.js");
12153
12153
  resetAnthropicClient();
12154
12154
  } catch {
12155
12155
  }
@@ -16573,7 +16573,7 @@ async function refreshPluginRuntimeFromInstalls() {
16573
16573
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
16574
16574
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
16575
16575
  if (dirs.length === 0) return [];
16576
- const { configureSessionPlugins } = await import("./pluginRuntime-HXPNSVLK.js");
16576
+ const { configureSessionPlugins } = await import("./pluginRuntime-5ZYXGIUZ.js");
16577
16577
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
16578
16578
  return errors;
16579
16579
  }
@@ -17248,7 +17248,7 @@ async function call(onDone, context) {
17248
17248
  ModelConfig,
17249
17249
  {
17250
17250
  onClose: () => {
17251
- import("./model-OBGYKN2R.js").then(({ reloadModelManager: reloadModelManager2 }) => {
17251
+ import("./model-JVW7GWZF.js").then(({ reloadModelManager: reloadModelManager2 }) => {
17252
17252
  reloadModelManager2();
17253
17253
  triggerModelConfigChange();
17254
17254
  onDone();
@@ -25557,7 +25557,7 @@ function useStatusLine() {
25557
25557
  // src/ui/components/PromptInput.tsx
25558
25558
  async function interpretHashCommand(input) {
25559
25559
  try {
25560
- const { queryQuick: queryQuick2 } = await import("./llm-D52SN2GV.js");
25560
+ const { queryQuick: queryQuick2 } = await import("./llm-VL7SVIXR.js");
25561
25561
  const systemPrompt = [
25562
25562
  "You're helping the user structure notes that will be added to their PYB.md file.",
25563
25563
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -25870,7 +25870,7 @@ function PromptInput({
25870
25870
  if (messages2.length) {
25871
25871
  if (mode === "bash") {
25872
25872
  onQuery(messages2, newAbortController).then(async () => {
25873
- const { getCwd: getCwd2 } = await import("./state-QXUVP75D.js");
25873
+ const { getCwd: getCwd2 } = await import("./state-IB4ZDFMG.js");
25874
25874
  setCurrentPwd(getCwd2());
25875
25875
  });
25876
25876
  } else {
@@ -31248,17 +31248,36 @@ async function resolveHookUpdatedInput(args) {
31248
31248
  }
31249
31249
  return { kind: "updated", normalizedInput };
31250
31250
  }
31251
- function buildPostToolResultHandling(args) {
31252
- return {
31253
- envelope: buildToolResultEnvelope({
31254
- toolUseId: args.toolUseId,
31255
- content: args.content,
31256
- resultData: args.resultData,
31257
- newMessages: args.newMessages,
31258
- contextModifier: args.contextModifier
31259
- }),
31260
- structuredMessages: toStructuredToolResultMessages(args.newMessages)
31261
- };
31251
+ function buildResultDispatchItems(args) {
31252
+ const items = [];
31253
+ const warningText = resolveWarningText(args.postWarnings);
31254
+ if (warningText) {
31255
+ items.push({
31256
+ kind: "warning_progress",
31257
+ warningText,
31258
+ tools: args.defaultTools
31259
+ });
31260
+ }
31261
+ const userMessage = buildToolResultEnvelope({
31262
+ toolUseId: args.toolUseId,
31263
+ content: args.content,
31264
+ resultData: args.resultData,
31265
+ newMessages: args.newMessages,
31266
+ contextModifier: args.contextModifier
31267
+ });
31268
+ items.push({
31269
+ kind: "user_message",
31270
+ blocks: userMessage.blocks,
31271
+ toolUseResult: userMessage.toolUseResult
31272
+ });
31273
+ const structuredMessages = toStructuredToolResultMessages(args.newMessages);
31274
+ for (const message of structuredMessages) {
31275
+ items.push({
31276
+ kind: "structured_message",
31277
+ message
31278
+ });
31279
+ }
31280
+ return items;
31262
31281
  }
31263
31282
  function buildRunningProgressPayload(args) {
31264
31283
  const normalizedPayload = normalizeProgressPayload({
@@ -31271,15 +31290,18 @@ function buildRunningProgressPayload(args) {
31271
31290
  tools: normalizedPayload.tools.length > 0 ? normalizedPayload.tools : args.defaultTools
31272
31291
  };
31273
31292
  }
31274
- function buildWarningProgressPayload(args) {
31293
+ function buildWarningDispatchItems(args) {
31275
31294
  const warningText = resolveWarningText(args.warnings);
31276
31295
  if (!warningText) {
31277
- return void 0;
31296
+ return [];
31278
31297
  }
31279
- return {
31280
- warningText,
31281
- tools: args.defaultTools
31282
- };
31298
+ return [
31299
+ {
31300
+ kind: "warning_progress",
31301
+ warningText,
31302
+ tools: args.defaultTools
31303
+ }
31304
+ ];
31283
31305
  }
31284
31306
  async function resolvePermissionResult(args) {
31285
31307
  if (args.effectiveShouldSkipPermissionCheck) {
@@ -31292,6 +31314,27 @@ async function resolvePermissionResult(args) {
31292
31314
  args.assistantMessage
31293
31315
  );
31294
31316
  }
31317
+ async function resolvePermissionCheckOutcome(args) {
31318
+ const { effectiveShouldSkipPermissionCheck, permissionContextForCall } = resolvePermissionExecutionPlan({
31319
+ context: args.context,
31320
+ hookPermissionDecision: args.hookPermissionDecision,
31321
+ shouldSkipPermissionCheck: args.shouldSkipPermissionCheck
31322
+ });
31323
+ const permissionResult = await resolvePermissionResult({
31324
+ effectiveShouldSkipPermissionCheck,
31325
+ canUseTool: args.canUseTool,
31326
+ tool: args.tool,
31327
+ normalizedInput: args.normalizedInput,
31328
+ permissionContextForCall,
31329
+ toolUseId: args.toolUseId,
31330
+ assistantMessage: args.assistantMessage
31331
+ });
31332
+ return {
31333
+ effectiveShouldSkipPermissionCheck,
31334
+ permissionContextForCall,
31335
+ permissionResult
31336
+ };
31337
+ }
31295
31338
 
31296
31339
  // src/app/query.ts
31297
31340
  function isToolUseLikeBlock(block) {
@@ -32292,17 +32335,17 @@ async function* checkPermissionsAndCallTool(tool, toolUseID, siblingToolUseIDs,
32292
32335
  ]);
32293
32336
  return;
32294
32337
  }
32295
- const preWarningPayload = buildWarningProgressPayload({
32338
+ const preWarningDispatchItems = buildWarningDispatchItems({
32296
32339
  warnings: hookOutcome.warnings,
32297
32340
  defaultTools: context.options?.tools ?? []
32298
32341
  });
32299
- if (preWarningPayload) {
32342
+ for (const dispatchItem of preWarningDispatchItems) {
32300
32343
  yield createProgressMessage(
32301
32344
  toolUseID,
32302
32345
  siblingToolUseIDs,
32303
- createAssistantMessage(preWarningPayload.warningText),
32346
+ createAssistantMessage(dispatchItem.warningText),
32304
32347
  [],
32305
- preWarningPayload.tools,
32348
+ dispatchItem.tools,
32306
32349
  { progressState: "running" }
32307
32350
  );
32308
32351
  }
@@ -32326,17 +32369,13 @@ async function* checkPermissionsAndCallTool(tool, toolUseID, siblingToolUseIDs,
32326
32369
  normalizedInput = normalizeToolInput(tool, updatedInputResult.normalizedInput);
32327
32370
  }
32328
32371
  const hookPermissionDecision = hookOutcome.kind === "allow" ? hookOutcome.permissionDecision : void 0;
32329
- const { effectiveShouldSkipPermissionCheck, permissionContextForCall } = resolvePermissionExecutionPlan({
32372
+ const { permissionResult } = await resolvePermissionCheckOutcome({
32330
32373
  context,
32331
32374
  hookPermissionDecision,
32332
- shouldSkipPermissionCheck
32333
- });
32334
- const permissionResult = await resolvePermissionResult({
32335
- effectiveShouldSkipPermissionCheck,
32375
+ shouldSkipPermissionCheck,
32336
32376
  canUseTool,
32337
32377
  tool,
32338
32378
  normalizedInput,
32339
- permissionContextForCall,
32340
32379
  toolUseId: toolUseID,
32341
32380
  assistantMessage
32342
32381
  });
@@ -32372,33 +32411,35 @@ async function* checkPermissionsAndCallTool(tool, toolUseID, siblingToolUseIDs,
32372
32411
  ...buildToolHookBaseArgs(context, toolUseID)
32373
32412
  });
32374
32413
  applyHookOutcomeSideEffects(context, postOutcome);
32375
- const postResultHandling = buildPostToolResultHandling({
32414
+ const dispatchItems = buildResultDispatchItems({
32376
32415
  toolUseId: toolUseID,
32377
32416
  content,
32378
32417
  resultData: result.data,
32379
32418
  newMessages: result.newMessages,
32380
- contextModifier: result.contextModifier
32419
+ contextModifier: result.contextModifier,
32420
+ defaultTools: context.options?.tools ?? [],
32421
+ postWarnings: postOutcome.warnings
32381
32422
  });
32382
- const postWarningPayload = buildWarningProgressPayload({
32383
- warnings: postOutcome.warnings,
32384
- defaultTools: context.options?.tools ?? []
32385
- });
32386
- if (postWarningPayload) {
32387
- yield createProgressMessage(
32388
- toolUseID,
32389
- siblingToolUseIDs,
32390
- createAssistantMessage(postWarningPayload.warningText),
32391
- [],
32392
- postWarningPayload.tools,
32393
- { progressState: "running" }
32394
- );
32395
- }
32396
- yield createUserMessageFromBlocks(
32397
- postResultHandling.envelope.blocks,
32398
- postResultHandling.envelope.toolUseResult
32399
- );
32400
- for (const message of postResultHandling.structuredMessages) {
32401
- yield message;
32423
+ for (const dispatchItem of dispatchItems) {
32424
+ if (dispatchItem.kind === "warning_progress") {
32425
+ yield createProgressMessage(
32426
+ toolUseID,
32427
+ siblingToolUseIDs,
32428
+ createAssistantMessage(dispatchItem.warningText),
32429
+ [],
32430
+ dispatchItem.tools,
32431
+ { progressState: "running" }
32432
+ );
32433
+ continue;
32434
+ }
32435
+ if (dispatchItem.kind === "user_message") {
32436
+ yield createUserMessageFromBlocks(
32437
+ dispatchItem.blocks,
32438
+ dispatchItem.toolUseResult
32439
+ );
32440
+ continue;
32441
+ }
32442
+ yield dispatchItem.message;
32402
32443
  }
32403
32444
  }
32404
32445
  return;
@@ -33606,7 +33647,7 @@ import { homedir as homedir8 } from "os";
33606
33647
  // src/commands/agents/generation.ts
33607
33648
  import { randomUUID as randomUUID6 } from "crypto";
33608
33649
  async function generateAgentWithClaude(prompt) {
33609
- const { queryModel } = await import("./llm-D52SN2GV.js");
33650
+ const { queryModel } = await import("./llm-VL7SVIXR.js");
33610
33651
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
33611
33652
 
33612
33653
  Return your response as a JSON object with exactly these fields: