pybao-cli 1.3.38 → 1.3.39

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 (131) hide show
  1. package/dist/REPL-VMSIO4BE.js +42 -0
  2. package/dist/{acp-DSSZXKXY.js → acp-MMQAVZSI.js} +26 -26
  3. package/dist/{agentsValidate-OE2A3LLW.js → agentsValidate-GKX72444.js} +7 -7
  4. package/dist/{ask-QFQP236G.js → ask-JYHJGOR7.js} +25 -25
  5. package/dist/{autoUpdater-ZSXQVWGU.js → autoUpdater-6X4XBXUM.js} +3 -3
  6. package/dist/{chunk-6A7U5GBD.js → chunk-2DIPMQNX.js} +4 -4
  7. package/dist/{chunk-GUE7YCCS.js → chunk-3O7QI3XX.js} +1 -1
  8. package/dist/{chunk-E2OQWKRT.js → chunk-3ZXI2HJJ.js} +2 -2
  9. package/dist/{chunk-JVWY46EU.js → chunk-7LGLVWA2.js} +1 -1
  10. package/dist/{chunk-3PXMJFAM.js → chunk-7SXTU6UC.js} +1 -1
  11. package/dist/{chunk-CCVQZNPB.js → chunk-A3MLUB5D.js} +3 -3
  12. package/dist/{chunk-2QBMHAL2.js → chunk-BDAZUS5O.js} +2 -2
  13. package/dist/{chunk-GJQG3OZ6.js → chunk-E7A75K25.js} +2 -2
  14. package/dist/{chunk-NMN6SU4H.js → chunk-H25WLJL5.js} +3 -3
  15. package/dist/{chunk-VHLKM2JI.js → chunk-IAPV5WM5.js} +1 -1
  16. package/dist/{chunk-XVE63BQM.js → chunk-IOO7P5IB.js} +3 -3
  17. package/dist/{chunk-R5LODRXE.js → chunk-LJWW46VF.js} +4 -4
  18. package/dist/{chunk-4T5H7RIS.js → chunk-LO5MI3KR.js} +1 -1
  19. package/dist/{chunk-AGFUTFUP.js → chunk-LPCUW7AG.js} +1 -1
  20. package/dist/{chunk-2DTHWTEZ.js → chunk-MCGN2JAC.js} +1 -1
  21. package/dist/{chunk-77DQ4BIR.js → chunk-OLJMCGOM.js} +3 -3
  22. package/dist/{chunk-E6XVCFEI.js → chunk-OOFOAF52.js} +2 -1
  23. package/dist/{chunk-E6XVCFEI.js.map → chunk-OOFOAF52.js.map} +2 -2
  24. package/dist/{chunk-ARALRJ5X.js → chunk-OYIT5CZF.js} +3 -3
  25. package/dist/{chunk-GBZN4MAK.js → chunk-SKVLB6S5.js} +80 -39
  26. package/dist/{chunk-GBZN4MAK.js.map → chunk-SKVLB6S5.js.map} +2 -2
  27. package/dist/{chunk-7ABEQUOJ.js → chunk-SO4BZNGU.js} +3 -3
  28. package/dist/{chunk-N3MZX4YG.js → chunk-UEICVY3V.js} +2 -2
  29. package/dist/{chunk-75T6VHSS.js → chunk-VBXDG4VM.js} +11 -11
  30. package/dist/{chunk-X7X7JZQX.js → chunk-VPZNB2PC.js} +1 -1
  31. package/dist/{chunk-Q3UGB2OF.js → chunk-VZRHTIRE.js} +2 -2
  32. package/dist/{chunk-5IMMQX5O.js → chunk-XBG2XNDZ.js} +2 -2
  33. package/dist/{chunk-CC2K3567.js → chunk-XRSPSKD2.js} +1 -1
  34. package/dist/{chunk-TYXYLF3X.js → chunk-ZHO7QM4T.js} +3 -3
  35. package/dist/{cli-FA6P6HIZ.js → cli-TDTHQXX3.js} +77 -77
  36. package/dist/commands-6MZYMLG3.js +46 -0
  37. package/dist/{config-TZKLK2L2.js → config-TN7XQLZF.js} +4 -4
  38. package/dist/{context-NU2CGFZH.js → context-6VFUVFIZ.js} +5 -5
  39. package/dist/{customCommands-SMGOWF3R.js → customCommands-IPJJDGX4.js} +4 -4
  40. package/dist/{env-JHFPVHTC.js → env-NO6SO4AW.js} +2 -2
  41. package/dist/index.js +3 -3
  42. package/dist/{llm-HZUQR7GL.js → llm-RSNULBI3.js} +26 -26
  43. package/dist/{llmLazy-UEPXNRAE.js → llmLazy-3ECMFIJ4.js} +1 -1
  44. package/dist/{loader-4NB2NGEL.js → loader-UWE2BAO5.js} +4 -4
  45. package/dist/{mcp-GJEJZEG3.js → mcp-SJXIBGMG.js} +7 -7
  46. package/dist/{mentionProcessor-SQRB73IQ.js → mentionProcessor-DZKLVJJP.js} +5 -5
  47. package/dist/{messages-W6HE7B6N.js → messages-IAXQKOPI.js} +1 -1
  48. package/dist/{model-KHRLJAP5.js → model-MQXPZCUI.js} +5 -5
  49. package/dist/{openai-CUHZZ65G.js → openai-BLKW3RIQ.js} +5 -5
  50. package/dist/{outputStyles-J6OXCLUO.js → outputStyles-PLWESN36.js} +4 -4
  51. package/dist/{pluginRuntime-MU5HGT4W.js → pluginRuntime-VXIXTKJ6.js} +6 -6
  52. package/dist/{pluginValidation-KS4TI2QC.js → pluginValidation-D4MHYMBZ.js} +6 -6
  53. package/dist/prompts-AIW5LR2J.js +48 -0
  54. package/dist/{pybAgentSessionLoad-7KUNE3W2.js → pybAgentSessionLoad-F57TUUA5.js} +4 -4
  55. package/dist/{pybAgentSessionResume-VGHKT7AG.js → pybAgentSessionResume-DCU2U5KH.js} +4 -4
  56. package/dist/{pybAgentStreamJsonSession-UQIWHHEA.js → pybAgentStreamJsonSession-KCABET6K.js} +1 -1
  57. package/dist/{pybHooks-Q36HGVVY.js → pybHooks-WPV7ALQ5.js} +4 -4
  58. package/dist/query-6R7G4TM5.js +50 -0
  59. package/dist/{ripgrep-EHWFMAM6.js → ripgrep-BLMPGNZM.js} +3 -3
  60. package/dist/{skillMarketplace-UGKEZFRW.js → skillMarketplace-QKU2BQE4.js} +3 -3
  61. package/dist/{state-OT3F2UWI.js → state-B7H3FFWJ.js} +2 -2
  62. package/dist/{theme-PCNO5SXL.js → theme-LFCG6LZB.js} +5 -5
  63. package/dist/{toolPermissionSettings-IY6NEKL6.js → toolPermissionSettings-CTXLHUK3.js} +6 -6
  64. package/dist/tools-HVPKHQI2.js +47 -0
  65. package/dist/{userInput-KQWSLHV2.js → userInput-SDNANTJY.js} +27 -27
  66. package/package.json +2 -1
  67. package/dist/REPL-QIATHQNQ.js +0 -42
  68. package/dist/commands-RUGULOI6.js +0 -46
  69. package/dist/prompts-H6IGUWE7.js +0 -48
  70. package/dist/query-EPGENG4B.js +0 -50
  71. package/dist/tools-OTOKTJLE.js +0 -47
  72. /package/dist/{REPL-QIATHQNQ.js.map → REPL-VMSIO4BE.js.map} +0 -0
  73. /package/dist/{acp-DSSZXKXY.js.map → acp-MMQAVZSI.js.map} +0 -0
  74. /package/dist/{agentsValidate-OE2A3LLW.js.map → agentsValidate-GKX72444.js.map} +0 -0
  75. /package/dist/{ask-QFQP236G.js.map → ask-JYHJGOR7.js.map} +0 -0
  76. /package/dist/{autoUpdater-ZSXQVWGU.js.map → autoUpdater-6X4XBXUM.js.map} +0 -0
  77. /package/dist/{chunk-6A7U5GBD.js.map → chunk-2DIPMQNX.js.map} +0 -0
  78. /package/dist/{chunk-GUE7YCCS.js.map → chunk-3O7QI3XX.js.map} +0 -0
  79. /package/dist/{chunk-E2OQWKRT.js.map → chunk-3ZXI2HJJ.js.map} +0 -0
  80. /package/dist/{chunk-JVWY46EU.js.map → chunk-7LGLVWA2.js.map} +0 -0
  81. /package/dist/{chunk-3PXMJFAM.js.map → chunk-7SXTU6UC.js.map} +0 -0
  82. /package/dist/{chunk-CCVQZNPB.js.map → chunk-A3MLUB5D.js.map} +0 -0
  83. /package/dist/{chunk-2QBMHAL2.js.map → chunk-BDAZUS5O.js.map} +0 -0
  84. /package/dist/{chunk-GJQG3OZ6.js.map → chunk-E7A75K25.js.map} +0 -0
  85. /package/dist/{chunk-NMN6SU4H.js.map → chunk-H25WLJL5.js.map} +0 -0
  86. /package/dist/{chunk-VHLKM2JI.js.map → chunk-IAPV5WM5.js.map} +0 -0
  87. /package/dist/{chunk-XVE63BQM.js.map → chunk-IOO7P5IB.js.map} +0 -0
  88. /package/dist/{chunk-R5LODRXE.js.map → chunk-LJWW46VF.js.map} +0 -0
  89. /package/dist/{chunk-4T5H7RIS.js.map → chunk-LO5MI3KR.js.map} +0 -0
  90. /package/dist/{chunk-AGFUTFUP.js.map → chunk-LPCUW7AG.js.map} +0 -0
  91. /package/dist/{chunk-2DTHWTEZ.js.map → chunk-MCGN2JAC.js.map} +0 -0
  92. /package/dist/{chunk-77DQ4BIR.js.map → chunk-OLJMCGOM.js.map} +0 -0
  93. /package/dist/{chunk-ARALRJ5X.js.map → chunk-OYIT5CZF.js.map} +0 -0
  94. /package/dist/{chunk-7ABEQUOJ.js.map → chunk-SO4BZNGU.js.map} +0 -0
  95. /package/dist/{chunk-N3MZX4YG.js.map → chunk-UEICVY3V.js.map} +0 -0
  96. /package/dist/{chunk-75T6VHSS.js.map → chunk-VBXDG4VM.js.map} +0 -0
  97. /package/dist/{chunk-X7X7JZQX.js.map → chunk-VPZNB2PC.js.map} +0 -0
  98. /package/dist/{chunk-Q3UGB2OF.js.map → chunk-VZRHTIRE.js.map} +0 -0
  99. /package/dist/{chunk-5IMMQX5O.js.map → chunk-XBG2XNDZ.js.map} +0 -0
  100. /package/dist/{chunk-CC2K3567.js.map → chunk-XRSPSKD2.js.map} +0 -0
  101. /package/dist/{chunk-TYXYLF3X.js.map → chunk-ZHO7QM4T.js.map} +0 -0
  102. /package/dist/{cli-FA6P6HIZ.js.map → cli-TDTHQXX3.js.map} +0 -0
  103. /package/dist/{commands-RUGULOI6.js.map → commands-6MZYMLG3.js.map} +0 -0
  104. /package/dist/{config-TZKLK2L2.js.map → config-TN7XQLZF.js.map} +0 -0
  105. /package/dist/{context-NU2CGFZH.js.map → context-6VFUVFIZ.js.map} +0 -0
  106. /package/dist/{customCommands-SMGOWF3R.js.map → customCommands-IPJJDGX4.js.map} +0 -0
  107. /package/dist/{env-JHFPVHTC.js.map → env-NO6SO4AW.js.map} +0 -0
  108. /package/dist/{llm-HZUQR7GL.js.map → llm-RSNULBI3.js.map} +0 -0
  109. /package/dist/{llmLazy-UEPXNRAE.js.map → llmLazy-3ECMFIJ4.js.map} +0 -0
  110. /package/dist/{loader-4NB2NGEL.js.map → loader-UWE2BAO5.js.map} +0 -0
  111. /package/dist/{mcp-GJEJZEG3.js.map → mcp-SJXIBGMG.js.map} +0 -0
  112. /package/dist/{mentionProcessor-SQRB73IQ.js.map → mentionProcessor-DZKLVJJP.js.map} +0 -0
  113. /package/dist/{messages-W6HE7B6N.js.map → messages-IAXQKOPI.js.map} +0 -0
  114. /package/dist/{model-KHRLJAP5.js.map → model-MQXPZCUI.js.map} +0 -0
  115. /package/dist/{openai-CUHZZ65G.js.map → openai-BLKW3RIQ.js.map} +0 -0
  116. /package/dist/{outputStyles-J6OXCLUO.js.map → outputStyles-PLWESN36.js.map} +0 -0
  117. /package/dist/{pluginRuntime-MU5HGT4W.js.map → pluginRuntime-VXIXTKJ6.js.map} +0 -0
  118. /package/dist/{pluginValidation-KS4TI2QC.js.map → pluginValidation-D4MHYMBZ.js.map} +0 -0
  119. /package/dist/{prompts-H6IGUWE7.js.map → prompts-AIW5LR2J.js.map} +0 -0
  120. /package/dist/{pybAgentSessionLoad-7KUNE3W2.js.map → pybAgentSessionLoad-F57TUUA5.js.map} +0 -0
  121. /package/dist/{pybAgentSessionResume-VGHKT7AG.js.map → pybAgentSessionResume-DCU2U5KH.js.map} +0 -0
  122. /package/dist/{pybAgentStreamJsonSession-UQIWHHEA.js.map → pybAgentStreamJsonSession-KCABET6K.js.map} +0 -0
  123. /package/dist/{pybHooks-Q36HGVVY.js.map → pybHooks-WPV7ALQ5.js.map} +0 -0
  124. /package/dist/{query-EPGENG4B.js.map → query-6R7G4TM5.js.map} +0 -0
  125. /package/dist/{ripgrep-EHWFMAM6.js.map → ripgrep-BLMPGNZM.js.map} +0 -0
  126. /package/dist/{skillMarketplace-UGKEZFRW.js.map → skillMarketplace-QKU2BQE4.js.map} +0 -0
  127. /package/dist/{state-OT3F2UWI.js.map → state-B7H3FFWJ.js.map} +0 -0
  128. /package/dist/{theme-PCNO5SXL.js.map → theme-LFCG6LZB.js.map} +0 -0
  129. /package/dist/{toolPermissionSettings-IY6NEKL6.js.map → toolPermissionSettings-CTXLHUK3.js.map} +0 -0
  130. /package/dist/{tools-OTOKTJLE.js.map → tools-HVPKHQI2.js.map} +0 -0
  131. /package/dist/{userInput-KQWSLHV2.js.map → userInput-SDNANTJY.js.map} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  listPybAgentSessions
5
- } from "./chunk-JVWY46EU.js";
5
+ } from "./chunk-7LGLVWA2.js";
6
6
  import {
7
7
  DEFAULT_TIMEOUT_MS,
8
8
  FallbackToolUseRejectedMessage,
@@ -16,11 +16,11 @@ import {
16
16
  listMCPServers,
17
17
  loadMergedSettings,
18
18
  normalizeSandboxRuntimeConfigFromSettings
19
- } from "./chunk-R5LODRXE.js";
19
+ } from "./chunk-LJWW46VF.js";
20
20
  import {
21
21
  formatValidationResult,
22
22
  validatePluginOrMarketplacePath
23
- } from "./chunk-ARALRJ5X.js";
23
+ } from "./chunk-OYIT5CZF.js";
24
24
  import {
25
25
  addMarketplace,
26
26
  disableSkillPlugin,
@@ -33,15 +33,15 @@ import {
33
33
  refreshMarketplaceAsync,
34
34
  removeMarketplace,
35
35
  uninstallSkillPlugin
36
- } from "./chunk-3PXMJFAM.js";
36
+ } from "./chunk-7SXTU6UC.js";
37
37
  import {
38
38
  loadPybAgentSessionMessages
39
- } from "./chunk-X7X7JZQX.js";
39
+ } from "./chunk-VPZNB2PC.js";
40
40
  import {
41
41
  appendSessionCustomTitleRecord,
42
42
  appendSessionJsonlFromMessage,
43
43
  appendSessionTagRecord
44
- } from "./chunk-5IMMQX5O.js";
44
+ } from "./chunk-XBG2XNDZ.js";
45
45
  import {
46
46
  getRequestStatus,
47
47
  setRequestStatus,
@@ -58,7 +58,7 @@ import {
58
58
  runStopHooks,
59
59
  runUserPromptSubmitHooks,
60
60
  updateHookTranscriptForMessages
61
- } from "./chunk-TYXYLF3X.js";
61
+ } from "./chunk-ZHO7QM4T.js";
62
62
  import {
63
63
  getPybAgentSessionId,
64
64
  setPybAgentSessionId
@@ -71,34 +71,34 @@ import {
71
71
  getOutputStyleSystemPromptAdditions,
72
72
  resolveOutputStyleName,
73
73
  setCurrentOutputStyle
74
- } from "./chunk-GJQG3OZ6.js";
74
+ } from "./chunk-E7A75K25.js";
75
75
  import {
76
76
  fetchCustomModels,
77
77
  getModelFeatures
78
- } from "./chunk-2QBMHAL2.js";
78
+ } from "./chunk-BDAZUS5O.js";
79
79
  import {
80
80
  queryLLM,
81
81
  queryQuick,
82
82
  verifyApiKey
83
- } from "./chunk-6A7U5GBD.js";
83
+ } from "./chunk-2DIPMQNX.js";
84
84
  import {
85
85
  listAllContentFiles,
86
86
  ripGrep
87
- } from "./chunk-AGFUTFUP.js";
87
+ } from "./chunk-LPCUW7AG.js";
88
88
  import {
89
89
  getCustomCommandDirectories,
90
90
  hasCustomCommands,
91
91
  loadCustomCommands,
92
92
  reloadCustomCommands
93
- } from "./chunk-Q3UGB2OF.js";
93
+ } from "./chunk-VZRHTIRE.js";
94
94
  import {
95
95
  loadToolPermissionContextFromDisk,
96
96
  persistToolPermissionUpdateToDisk
97
- } from "./chunk-XVE63BQM.js";
97
+ } from "./chunk-IOO7P5IB.js";
98
98
  import {
99
99
  getSettingsFileCandidates,
100
100
  loadSettingsWithLegacyFallback
101
- } from "./chunk-CC2K3567.js";
101
+ } from "./chunk-XRSPSKD2.js";
102
102
  import {
103
103
  applyToolPermissionContextUpdate,
104
104
  createDefaultToolPermissionContext
@@ -111,7 +111,7 @@ import {
111
111
  resetReminderSession,
112
112
  setTodos,
113
113
  systemReminderService
114
- } from "./chunk-N3MZX4YG.js";
114
+ } from "./chunk-UEICVY3V.js";
115
115
  import {
116
116
  getSessionState
117
117
  } from "./chunk-ERMQRV55.js";
@@ -120,7 +120,7 @@ import {
120
120
  getActiveAgents,
121
121
  getAgentByType,
122
122
  getAllAgents
123
- } from "./chunk-E2OQWKRT.js";
123
+ } from "./chunk-3ZXI2HJJ.js";
124
124
  import {
125
125
  getSessionPlugins
126
126
  } from "./chunk-BJSWTHRM.js";
@@ -153,22 +153,22 @@ import {
153
153
  processUserInput,
154
154
  reorderMessages,
155
155
  stripSystemMessages
156
- } from "./chunk-GUE7YCCS.js";
156
+ } from "./chunk-3O7QI3XX.js";
157
157
  import {
158
158
  ModelManager,
159
159
  getModelManager,
160
160
  isDefaultSlowAndCapableModel
161
- } from "./chunk-NMN6SU4H.js";
161
+ } from "./chunk-H25WLJL5.js";
162
162
  import {
163
163
  getCodeStyle,
164
164
  getContext,
165
165
  getGitState,
166
166
  getIsGit,
167
167
  getProjectDocs
168
- } from "./chunk-CCVQZNPB.js";
168
+ } from "./chunk-A3MLUB5D.js";
169
169
  import {
170
170
  getTheme
171
- } from "./chunk-4T5H7RIS.js";
171
+ } from "./chunk-LO5MI3KR.js";
172
172
  import {
173
173
  DEFAULT_GLOBAL_CONFIG,
174
174
  enableConfigs,
@@ -181,7 +181,7 @@ import {
181
181
  saveGlobalConfig,
182
182
  setAllPointersToModel,
183
183
  setModelPointer
184
- } from "./chunk-77DQ4BIR.js";
184
+ } from "./chunk-OLJMCGOM.js";
185
185
  import {
186
186
  AbortError
187
187
  } from "./chunk-RQVLBMP7.js";
@@ -190,7 +190,7 @@ import {
190
190
  getCurrentRequest,
191
191
  logUserFriendly,
192
192
  markPhase
193
- } from "./chunk-VHLKM2JI.js";
193
+ } from "./chunk-IAPV5WM5.js";
194
194
  import {
195
195
  ASCII_LOGO,
196
196
  BunShell,
@@ -226,10 +226,10 @@ import {
226
226
  renderBashNotification,
227
227
  setActivePlanConversationKey,
228
228
  setCwd
229
- } from "./chunk-2DTHWTEZ.js";
229
+ } from "./chunk-MCGN2JAC.js";
230
230
  import {
231
231
  MACRO
232
- } from "./chunk-E6XVCFEI.js";
232
+ } from "./chunk-OOFOAF52.js";
233
233
  import {
234
234
  formatTotalCost,
235
235
  getTotalAPIDuration,
@@ -417,7 +417,7 @@ var getCommandSubcommandPrefix = memoize(
417
417
  var getCommandPrefix = memoize(
418
418
  async (command4, abortSignal) => {
419
419
  const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
420
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-HZUQR7GL.js");
420
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-RSNULBI3.js");
421
421
  const response = await queryQuick2({
422
422
  systemPrompt,
423
423
  userPrompt,
@@ -4457,7 +4457,7 @@ function formatParseError(error) {
4457
4457
  return error instanceof Error ? error.message : String(error);
4458
4458
  }
4459
4459
  async function defaultGateQuery(args) {
4460
- const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-HZUQR7GL.js");
4460
+ const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-RSNULBI3.js");
4461
4461
  const messages = [
4462
4462
  {
4463
4463
  type: "user",
@@ -11012,7 +11012,7 @@ async function createAndStoreApiKey(accessToken) {
11012
11012
  }
11013
11013
  saveGlobalConfig(config2);
11014
11014
  try {
11015
- const { resetAnthropicClient } = await import("./llm-HZUQR7GL.js");
11015
+ const { resetAnthropicClient } = await import("./llm-RSNULBI3.js");
11016
11016
  resetAnthropicClient();
11017
11017
  } catch {
11018
11018
  }
@@ -15294,7 +15294,7 @@ async function refreshPluginRuntimeFromInstalls() {
15294
15294
  const existingRoots = getSessionPlugins().map((p) => p.rootDir);
15295
15295
  const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
15296
15296
  if (dirs.length === 0) return [];
15297
- const { configureSessionPlugins } = await import("./pluginRuntime-MU5HGT4W.js");
15297
+ const { configureSessionPlugins } = await import("./pluginRuntime-VXIXTKJ6.js");
15298
15298
  const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
15299
15299
  return errors;
15300
15300
  }
@@ -15963,7 +15963,7 @@ async function call(onDone, context) {
15963
15963
  ModelConfig,
15964
15964
  {
15965
15965
  onClose: () => {
15966
- import("./model-KHRLJAP5.js").then(({ reloadModelManager: reloadModelManager2 }) => {
15966
+ import("./model-MQXPZCUI.js").then(({ reloadModelManager: reloadModelManager2 }) => {
15967
15967
  reloadModelManager2();
15968
15968
  triggerModelConfigChange();
15969
15969
  onDone();
@@ -23205,7 +23205,7 @@ function useStatusLine() {
23205
23205
  // src/ui/components/PromptInput.tsx
23206
23206
  async function interpretHashCommand(input) {
23207
23207
  try {
23208
- const { queryQuick: queryQuick2 } = await import("./llm-HZUQR7GL.js");
23208
+ const { queryQuick: queryQuick2 } = await import("./llm-RSNULBI3.js");
23209
23209
  const systemPrompt = [
23210
23210
  "You're helping the user structure notes that will be added to their PYB.md file.",
23211
23211
  "Format the user's input into a well-structured note that will be useful for later reference.",
@@ -23518,7 +23518,7 @@ function PromptInput({
23518
23518
  if (messages2.length) {
23519
23519
  if (mode === "bash") {
23520
23520
  onQuery(messages2, newAbortController).then(async () => {
23521
- const { getCwd: getCwd2 } = await import("./state-OT3F2UWI.js");
23521
+ const { getCwd: getCwd2 } = await import("./state-B7H3FFWJ.js");
23522
23522
  setCurrentPwd(getCwd2());
23523
23523
  });
23524
23524
  } else {
@@ -26277,7 +26277,7 @@ import { homedir as homedir7 } from "os";
26277
26277
  // src/commands/agents/generation.ts
26278
26278
  import { randomUUID as randomUUID5 } from "crypto";
26279
26279
  async function generateAgentWithClaude(prompt) {
26280
- const { queryModel } = await import("./llm-HZUQR7GL.js");
26280
+ const { queryModel } = await import("./llm-RSNULBI3.js");
26281
26281
  const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
26282
26282
 
26283
26283
  Return your response as a JSON object with exactly these fields:
@@ -28299,31 +28299,37 @@ import { randomUUID as randomUUID6 } from "crypto";
28299
28299
  import { z as z15 } from "zod";
28300
28300
 
28301
28301
  // src/tools/interaction/TodoWriteTool/prompt.ts
28302
- var DESCRIPTION8 = "Update the todo list for the current session. To be used proactively and often to track progress and pending tasks. Make sure that at least one task is in_progress at all times. Always provide both content (imperative) and activeForm (present continuous) for each task.";
28302
+ var DESCRIPTION8 = "Update the todo list for the current session. To be used proactively to track progress. Make sure that at least one task is in_progress at all times. Always provide content, activeForm, and appropriate priority for each task.";
28303
28303
  var PROMPT8 = `Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
28304
28304
  It also helps the user understand the progress of the task and overall progress of their requests.
28305
28305
 
28306
28306
  ## When to Use This Tool
28307
28307
  Use this tool proactively in these scenarios:
28308
28308
 
28309
- 1. Complex multi-step tasks - When a task requires 3 or more distinct steps or actions
28309
+ 1. Complex multi-step tasks - When a task requires multiple steps, file modifications, or dependency management
28310
28310
  2. Non-trivial and complex tasks - Tasks that require careful planning or multiple operations
28311
28311
  3. User explicitly requests todo list - When the user directly asks you to use the todo list
28312
28312
  4. User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)
28313
28313
  5. After receiving new instructions - Immediately capture user requirements as todos
28314
28314
  6. When you start working on a task - Mark it as in_progress BEFORE beginning work. Ideally you should only have one todo as in_progress at a time
28315
28315
  7. After completing a task - Mark it as completed and add any new follow-up tasks discovered during implementation
28316
+ 8. **Dynamic Updates** - If you encounter a blocker, insert a new 'high' priority task to resolve it before proceeding
28316
28317
 
28317
28318
  ## When NOT to Use This Tool
28318
28319
 
28319
28320
  Skip using this tool when:
28320
28321
  1. There is only a single, straightforward task
28321
28322
  2. The task is trivial and tracking it provides no organizational benefit
28322
- 3. The task can be completed in less than 3 trivial steps
28323
+ 3. The task is a simple, immediate action (e.g. reading a file to answer a quick question)
28323
28324
  4. The task is purely conversational or informational
28324
28325
 
28325
28326
  NOTE that you should not use this tool if there is only one trivial task to do. In this case you are better off just doing the task directly.
28326
28327
 
28328
+ ## Priority Management
28329
+ - Use 'high' for critical blockers, immediate fixes, or the very next step in a critical path.
28330
+ - Use 'medium' for standard implementation tasks.
28331
+ - Use 'low' for nice-to-have improvements or cleanup tasks.
28332
+
28327
28333
  ## Examples of When to Use the Todo List
28328
28334
 
28329
28335
  <example>
@@ -28394,6 +28400,30 @@ The assistant used the todo list because:
28394
28400
  </reasoning>
28395
28401
  </example>
28396
28402
 
28403
+ <example>
28404
+ User: Please implement the login function.
28405
+ Assistant: I'll implement the login function.
28406
+ *Creates initial todo list: 1. Create Login Component, 2. Add API integration, 3. Add styling*
28407
+ *Starts working on "Create Login Component"*
28408
+
28409
+ [...During implementation, Assistant realizes the specific UI library is missing...]
28410
+
28411
+ Assistant: I noticed the project is missing the required UI library. I need to install it before proceeding.
28412
+ *Updates todo list:*
28413
+ 1. Install UI library (New, High Priority, in_progress)
28414
+ 2. Create Login Component (Moved to pending)
28415
+ 3. Add API integration
28416
+ 4. Add styling
28417
+
28418
+ <reasoning>
28419
+ The assistant demonstrated dynamic planning:
28420
+ 1. It encountered a blocker (missing library) while working on the first task.
28421
+ 2. Instead of silently installing it, it explicitly PAUSED the current task.
28422
+ 3. It INSERTED a new prerequisite task and marked it as in_progress.
28423
+ 4. This keeps the plan in sync with reality.
28424
+ </reasoning>
28425
+ </example>
28426
+
28397
28427
  ## Examples of When NOT to Use the Todo List
28398
28428
 
28399
28429
  <example>
@@ -28488,7 +28518,8 @@ When in doubt, use this tool. Being proactive with task management demonstrates
28488
28518
  var TodoItemSchema = z15.object({
28489
28519
  content: z15.string().min(1, "Content cannot be empty").describe("The task description or content"),
28490
28520
  status: z15.enum(["pending", "in_progress", "completed"]).describe("Current status of the task"),
28491
- activeForm: z15.string().min(1, "Active form cannot be empty").describe('The active form of the task (e.g., "Writing tests")')
28521
+ activeForm: z15.string().min(1, "Active form cannot be empty").describe('The active form of the task (e.g., "Writing tests")'),
28522
+ priority: z15.enum(["high", "medium", "low"]).describe("Priority level of the task").optional()
28492
28523
  });
28493
28524
  var inputSchema16 = z15.strictObject({
28494
28525
  todos: z15.array(TodoItemSchema).describe("The updated todo list")
@@ -28519,6 +28550,14 @@ function validateTodos(todos2) {
28519
28550
  meta: { invalidStatus: todo.status }
28520
28551
  };
28521
28552
  }
28553
+ if (todo.priority && !["high", "medium", "low"].includes(todo.priority)) {
28554
+ return {
28555
+ result: false,
28556
+ errorCode: 6,
28557
+ message: `Invalid priority "${todo.priority}" for todo "${todo.content}"`,
28558
+ meta: { invalidPriority: todo.priority }
28559
+ };
28560
+ }
28522
28561
  if (!todo.activeForm?.trim()) {
28523
28562
  return {
28524
28563
  result: false,
@@ -28601,7 +28640,7 @@ var TodoWriteTool = {
28601
28640
  content: todo.content,
28602
28641
  status: todo.status,
28603
28642
  activeForm: todo.activeForm,
28604
- priority: reused?.priority ?? "medium",
28643
+ priority: todo.priority ?? reused?.priority ?? "medium",
28605
28644
  ...reused?.createdAt ? { createdAt: reused.createdAt } : {}
28606
28645
  };
28607
28646
  });
@@ -30037,8 +30076,10 @@ There are additional slash commands and flags available to the user. If the user
30037
30076
  To give feedback, users should ${MACRO.ISSUES_EXPLAINER}.
30038
30077
 
30039
30078
  # Task Management
30040
- You have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
30041
- These tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.
30079
+ You have access to the TodoWrite tools to help you manage and plan tasks. Using these tools is a Best Practice for complex workflows, as it ensures you are tracking your tasks and giving the user visibility into your progress.
30080
+ These tools are powerful for planning tasks and for breaking down larger complex tasks into smaller steps. Using them for planning prevents overlooking important tasks and maintains context across long sessions.
30081
+
30082
+ **Dynamic Planning**: You are encouraged to update your plan dynamically. If you encounter unexpected issues or new requirements, pause the current task, add new items (e.g., "Fix dependency issue"), set their priority to 'high', and adjust your plan accordingly.
30042
30083
 
30043
30084
  It is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.
30044
30085