@qduc/term2 0.6.0 → 0.7.0

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 (546) hide show
  1. package/dist/agent.d.ts +9 -0
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +139 -68
  4. package/dist/agent.js.map +1 -1
  5. package/dist/agent.test.js +179 -16
  6. package/dist/agent.test.js.map +1 -1
  7. package/dist/app.d.ts +16 -3
  8. package/dist/app.d.ts.map +1 -1
  9. package/dist/app.js +186 -23
  10. package/dist/app.js.map +1 -1
  11. package/dist/app.large-uncached-warning.test.d.ts +2 -0
  12. package/dist/app.large-uncached-warning.test.d.ts.map +1 -0
  13. package/dist/app.large-uncached-warning.test.js +15 -0
  14. package/dist/app.large-uncached-warning.test.js.map +1 -0
  15. package/dist/app.startup-banner.test.js +3 -19
  16. package/dist/app.startup-banner.test.js.map +1 -1
  17. package/dist/cli.js +170 -71
  18. package/dist/cli.js.map +1 -1
  19. package/dist/components/Banner.d.ts.map +1 -1
  20. package/dist/components/Banner.js +35 -17
  21. package/dist/components/Banner.js.map +1 -1
  22. package/dist/components/BottomArea.d.ts +7 -1
  23. package/dist/components/BottomArea.d.ts.map +1 -1
  24. package/dist/components/BottomArea.js +8 -6
  25. package/dist/components/BottomArea.js.map +1 -1
  26. package/dist/components/BottomArea.test.js +14 -1
  27. package/dist/components/BottomArea.test.js.map +1 -1
  28. package/dist/components/CommandMessage.d.ts.map +1 -1
  29. package/dist/components/CommandMessage.js +31 -1
  30. package/dist/components/CommandMessage.js.map +1 -1
  31. package/dist/components/CommandMessage.test.js +150 -31
  32. package/dist/components/CommandMessage.test.js.map +1 -1
  33. package/dist/components/Common/MenuContainer.d.ts +20 -0
  34. package/dist/components/Common/MenuContainer.d.ts.map +1 -0
  35. package/dist/components/Common/MenuContainer.js +52 -0
  36. package/dist/components/Common/MenuContainer.js.map +1 -0
  37. package/dist/components/Common/ScrollableTabBar.d.ts +26 -0
  38. package/dist/components/Common/ScrollableTabBar.d.ts.map +1 -0
  39. package/dist/components/Common/ScrollableTabBar.js +26 -0
  40. package/dist/components/Common/ScrollableTabBar.js.map +1 -0
  41. package/dist/components/Common/compute-visible-tabs.d.ts +16 -0
  42. package/dist/components/Common/compute-visible-tabs.d.ts.map +1 -0
  43. package/dist/components/Common/compute-visible-tabs.js +53 -0
  44. package/dist/components/Common/compute-visible-tabs.js.map +1 -0
  45. package/dist/components/Common/compute-visible-tabs.test.d.ts +2 -0
  46. package/dist/components/Common/compute-visible-tabs.test.d.ts.map +1 -0
  47. package/dist/components/Common/compute-visible-tabs.test.js +97 -0
  48. package/dist/components/Common/compute-visible-tabs.test.js.map +1 -0
  49. package/dist/components/HandoffConfirmationPrompt.d.ts +9 -0
  50. package/dist/components/HandoffConfirmationPrompt.d.ts.map +1 -0
  51. package/dist/components/HandoffConfirmationPrompt.js +38 -0
  52. package/dist/components/HandoffConfirmationPrompt.js.map +1 -0
  53. package/dist/components/HandoffConfirmationPrompt.test.d.ts +2 -0
  54. package/dist/components/HandoffConfirmationPrompt.test.d.ts.map +1 -0
  55. package/dist/components/HandoffConfirmationPrompt.test.js +12 -0
  56. package/dist/components/HandoffConfirmationPrompt.test.js.map +1 -0
  57. package/dist/components/Input/PopupManager.d.ts +5 -1
  58. package/dist/components/Input/PopupManager.d.ts.map +1 -1
  59. package/dist/components/Input/PopupManager.js +2 -2
  60. package/dist/components/Input/PopupManager.js.map +1 -1
  61. package/dist/components/Input/popup-key-navigation.js +2 -2
  62. package/dist/components/Input/popup-key-navigation.js.map +1 -1
  63. package/dist/components/Input/popup-key-navigation.test.js +5 -3
  64. package/dist/components/Input/popup-key-navigation.test.js.map +1 -1
  65. package/dist/components/Input/popup-props.d.ts.map +1 -1
  66. package/dist/components/Input/popup-props.js +4 -0
  67. package/dist/components/Input/popup-props.js.map +1 -1
  68. package/dist/components/Input/popup-props.test.d.ts +2 -0
  69. package/dist/components/Input/popup-props.test.d.ts.map +1 -0
  70. package/dist/components/Input/popup-props.test.js +70 -0
  71. package/dist/components/Input/popup-props.test.js.map +1 -0
  72. package/dist/components/InputBox.d.ts +0 -1
  73. package/dist/components/InputBox.d.ts.map +1 -1
  74. package/dist/components/InputBox.js +66 -14
  75. package/dist/components/InputBox.js.map +1 -1
  76. package/dist/components/InputBox.test.js +192 -12
  77. package/dist/components/InputBox.test.js.map +1 -1
  78. package/dist/components/MessageList.d.ts +1 -0
  79. package/dist/components/MessageList.d.ts.map +1 -1
  80. package/dist/components/MessageList.js.map +1 -1
  81. package/dist/components/ModelSelectionMenu.d.ts.map +1 -1
  82. package/dist/components/ModelSelectionMenu.debug.test.d.ts +2 -0
  83. package/dist/components/ModelSelectionMenu.debug.test.d.ts.map +1 -0
  84. package/dist/components/ModelSelectionMenu.debug.test.js.map +1 -0
  85. package/dist/components/ModelSelectionMenu.js +29 -125
  86. package/dist/components/ModelSelectionMenu.js.map +1 -1
  87. package/dist/components/ModelSelectionMenu.test.js +9 -5
  88. package/dist/components/ModelSelectionMenu.test.js.map +1 -1
  89. package/dist/components/PathSelectionMenu.d.ts.map +1 -1
  90. package/dist/components/PathSelectionMenu.js +15 -55
  91. package/dist/components/PathSelectionMenu.js.map +1 -1
  92. package/dist/components/SettingsSelectionMenu.d.ts +4 -1
  93. package/dist/components/SettingsSelectionMenu.d.ts.map +1 -1
  94. package/dist/components/SettingsSelectionMenu.js +48 -104
  95. package/dist/components/SettingsSelectionMenu.js.map +1 -1
  96. package/dist/components/SettingsSelectionMenu.scroll.test.js +140 -0
  97. package/dist/components/SettingsSelectionMenu.scroll.test.js.map +1 -1
  98. package/dist/components/SettingsSelectionMenu.test.js +38 -5
  99. package/dist/components/SettingsSelectionMenu.test.js.map +1 -1
  100. package/dist/components/SettingsValueSelectionMenu.d.ts.map +1 -1
  101. package/dist/components/SettingsValueSelectionMenu.js +24 -51
  102. package/dist/components/SettingsValueSelectionMenu.js.map +1 -1
  103. package/dist/components/SlashCommandMenu.d.ts +1 -0
  104. package/dist/components/SlashCommandMenu.d.ts.map +1 -1
  105. package/dist/components/SlashCommandMenu.js +11 -14
  106. package/dist/components/SlashCommandMenu.js.map +1 -1
  107. package/dist/components/StatusBar.d.ts +2 -0
  108. package/dist/components/StatusBar.d.ts.map +1 -1
  109. package/dist/components/StatusBar.js +35 -2
  110. package/dist/components/StatusBar.js.map +1 -1
  111. package/dist/components/StatusBar.test.js +32 -0
  112. package/dist/components/StatusBar.test.js.map +1 -1
  113. package/dist/components/UndoSelectionMenu.d.ts.map +1 -1
  114. package/dist/components/UndoSelectionMenu.js +6 -33
  115. package/dist/components/UndoSelectionMenu.js.map +1 -1
  116. package/dist/context/InputContext.stability.test.js +9 -7
  117. package/dist/context/InputContext.stability.test.js.map +1 -1
  118. package/dist/env-setup.js +1 -0
  119. package/dist/env-setup.js.map +1 -1
  120. package/dist/hooks/use-app-commands.d.ts +22 -2
  121. package/dist/hooks/use-app-commands.d.ts.map +1 -1
  122. package/dist/hooks/use-app-commands.js +43 -3
  123. package/dist/hooks/use-app-commands.js.map +1 -1
  124. package/dist/hooks/use-app-commands.test.js +135 -1
  125. package/dist/hooks/use-app-commands.test.js.map +1 -1
  126. package/dist/hooks/use-conversation.clear.test.d.ts +2 -0
  127. package/dist/hooks/use-conversation.clear.test.d.ts.map +1 -0
  128. package/dist/hooks/use-conversation.clear.test.js +54 -0
  129. package/dist/hooks/use-conversation.clear.test.js.map +1 -0
  130. package/dist/hooks/use-conversation.d.ts +25 -2
  131. package/dist/hooks/use-conversation.d.ts.map +1 -1
  132. package/dist/hooks/use-conversation.js +90 -12
  133. package/dist/hooks/use-conversation.js.map +1 -1
  134. package/dist/hooks/use-escape-key.d.ts +8 -1
  135. package/dist/hooks/use-escape-key.d.ts.map +1 -1
  136. package/dist/hooks/use-escape-key.js +15 -4
  137. package/dist/hooks/use-escape-key.js.map +1 -1
  138. package/dist/hooks/use-escape-key.test.js +135 -28
  139. package/dist/hooks/use-escape-key.test.js.map +1 -1
  140. package/dist/hooks/use-input-history.test.js +14 -8
  141. package/dist/hooks/use-input-history.test.js.map +1 -1
  142. package/dist/hooks/use-mode-handlers.d.ts +12 -1
  143. package/dist/hooks/use-mode-handlers.d.ts.map +1 -1
  144. package/dist/hooks/use-mode-handlers.js +31 -1
  145. package/dist/hooks/use-mode-handlers.js.map +1 -1
  146. package/dist/hooks/use-model-selection.d.ts +6 -1
  147. package/dist/hooks/use-model-selection.d.ts.map +1 -1
  148. package/dist/hooks/use-model-selection.js +50 -8
  149. package/dist/hooks/use-model-selection.js.map +1 -1
  150. package/dist/hooks/use-model-selection.test.js +306 -50
  151. package/dist/hooks/use-model-selection.test.js.map +1 -1
  152. package/dist/hooks/use-path-completion.d.ts +4 -0
  153. package/dist/hooks/use-path-completion.d.ts.map +1 -1
  154. package/dist/hooks/use-path-completion.js +23 -17
  155. package/dist/hooks/use-path-completion.js.map +1 -1
  156. package/dist/hooks/use-runtime-settings.d.ts.map +1 -1
  157. package/dist/hooks/use-runtime-settings.js +7 -2
  158. package/dist/hooks/use-runtime-settings.js.map +1 -1
  159. package/dist/hooks/use-runtime-settings.test.d.ts +2 -0
  160. package/dist/hooks/use-runtime-settings.test.d.ts.map +1 -0
  161. package/dist/hooks/use-runtime-settings.test.js +45 -0
  162. package/dist/hooks/use-runtime-settings.test.js.map +1 -0
  163. package/dist/hooks/use-selection.d.ts +6 -2
  164. package/dist/hooks/use-selection.d.ts.map +1 -1
  165. package/dist/hooks/use-selection.js +53 -16
  166. package/dist/hooks/use-selection.js.map +1 -1
  167. package/dist/hooks/use-selection.test.d.ts +2 -0
  168. package/dist/hooks/use-selection.test.d.ts.map +1 -0
  169. package/dist/hooks/use-selection.test.js +132 -0
  170. package/dist/hooks/use-selection.test.js.map +1 -0
  171. package/dist/hooks/use-settings-completion.d.ts +19 -0
  172. package/dist/hooks/use-settings-completion.d.ts.map +1 -1
  173. package/dist/hooks/use-settings-completion.js +106 -18
  174. package/dist/hooks/use-settings-completion.js.map +1 -1
  175. package/dist/hooks/use-settings-completion.scroll.test.js +68 -29
  176. package/dist/hooks/use-settings-completion.scroll.test.js.map +1 -1
  177. package/dist/hooks/use-settings-completion.test.js +36 -1
  178. package/dist/hooks/use-settings-completion.test.js.map +1 -1
  179. package/dist/hooks/use-settings-value-completion.d.ts +7 -1
  180. package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
  181. package/dist/hooks/use-settings-value-completion.js +18 -7
  182. package/dist/hooks/use-settings-value-completion.js.map +1 -1
  183. package/dist/hooks/use-slash-commands.d.ts +5 -0
  184. package/dist/hooks/use-slash-commands.d.ts.map +1 -1
  185. package/dist/hooks/use-slash-commands.js +22 -2
  186. package/dist/hooks/use-slash-commands.js.map +1 -1
  187. package/dist/hooks/use-trigger-detection.test.js +9 -6
  188. package/dist/hooks/use-trigger-detection.test.js.map +1 -1
  189. package/dist/hooks/use-undo-selection.d.ts +4 -0
  190. package/dist/hooks/use-undo-selection.d.ts.map +1 -1
  191. package/dist/hooks/use-undo-selection.js +18 -1
  192. package/dist/hooks/use-undo-selection.js.map +1 -1
  193. package/dist/inspect_zod.d.ts +2 -0
  194. package/dist/inspect_zod.d.ts.map +1 -0
  195. package/dist/inspect_zod.js +16 -0
  196. package/dist/inspect_zod.js.map +1 -0
  197. package/dist/lib/openai-agent-client.chat.test.js +40 -0
  198. package/dist/lib/openai-agent-client.chat.test.js.map +1 -1
  199. package/dist/lib/openai-agent-client.d.ts +18 -4
  200. package/dist/lib/openai-agent-client.d.ts.map +1 -1
  201. package/dist/lib/openai-agent-client.js +228 -32
  202. package/dist/lib/openai-agent-client.js.map +1 -1
  203. package/dist/lib/openai-agent-client.public-methods.test.js +193 -0
  204. package/dist/lib/openai-agent-client.public-methods.test.js.map +1 -1
  205. package/dist/lib/openai-agent-client.test.js +71 -1
  206. package/dist/lib/openai-agent-client.test.js.map +1 -1
  207. package/dist/lib/retry-executor.js +45 -7
  208. package/dist/lib/retry-executor.js.map +1 -1
  209. package/dist/lib/retry-executor.test.js +63 -0
  210. package/dist/lib/retry-executor.test.js.map +1 -1
  211. package/dist/lib/tool-invoke.d.ts +3 -2
  212. package/dist/lib/tool-invoke.d.ts.map +1 -1
  213. package/dist/lib/tool-invoke.js +213 -10
  214. package/dist/lib/tool-invoke.js.map +1 -1
  215. package/dist/lib/tool-invoke.test.js +103 -0
  216. package/dist/lib/tool-invoke.test.js.map +1 -1
  217. package/dist/non-interactive.d.ts +1 -0
  218. package/dist/non-interactive.d.ts.map +1 -1
  219. package/dist/non-interactive.js +3 -1
  220. package/dist/non-interactive.js.map +1 -1
  221. package/dist/non-interactive.test.js +8 -1
  222. package/dist/non-interactive.test.js.map +1 -1
  223. package/dist/prompts/codex.md +105 -97
  224. package/dist/prompts/fragments/gpt-5.3-codex.md +7 -0
  225. package/dist/prompts/fragments/gpt-5.4-small.md +6 -0
  226. package/dist/prompts/fragments/gpt-5.4.md +7 -0
  227. package/dist/prompts/fragments/gpt-5.5.md +7 -0
  228. package/dist/prompts/gpt-5-modern.md +96 -54
  229. package/dist/prompts/plan-mode-info.md +14 -3
  230. package/dist/prompts/prompt-constructor.d.ts +19 -0
  231. package/dist/prompts/prompt-constructor.d.ts.map +1 -0
  232. package/dist/prompts/prompt-constructor.js +53 -0
  233. package/dist/prompts/prompt-constructor.js.map +1 -0
  234. package/dist/prompts/prompt-constructor.test.d.ts +2 -0
  235. package/dist/prompts/prompt-constructor.test.d.ts.map +1 -0
  236. package/dist/prompts/prompt-constructor.test.js +99 -0
  237. package/dist/prompts/prompt-constructor.test.js.map +1 -0
  238. package/dist/prompts/prompt-constructor.test.ts +112 -0
  239. package/dist/prompts/prompt-constructor.ts +91 -0
  240. package/dist/prompts/prompt-profiles.d.ts +17 -0
  241. package/dist/prompts/prompt-profiles.d.ts.map +1 -0
  242. package/dist/prompts/prompt-profiles.js +61 -0
  243. package/dist/prompts/prompt-profiles.js.map +1 -0
  244. package/dist/prompts/prompt-profiles.ts +77 -0
  245. package/dist/prompts/prompt-selector.d.ts.map +1 -1
  246. package/dist/prompts/prompt-selector.js +3 -21
  247. package/dist/prompts/prompt-selector.js.map +1 -1
  248. package/dist/prompts/prompt-selector.ts +3 -25
  249. package/dist/prompts/reasoning-efficiency.d.ts.map +1 -1
  250. package/dist/prompts/reasoning-efficiency.js +2 -0
  251. package/dist/prompts/reasoning-efficiency.js.map +1 -1
  252. package/dist/prompts/reasoning-efficiency.test.d.ts +2 -0
  253. package/dist/prompts/reasoning-efficiency.test.d.ts.map +1 -0
  254. package/dist/prompts/reasoning-efficiency.test.js +11 -0
  255. package/dist/prompts/reasoning-efficiency.test.js.map +1 -0
  256. package/dist/prompts/reasoning-efficiency.test.ts +12 -0
  257. package/dist/prompts/reasoning-efficiency.ts +2 -0
  258. package/dist/prompts/search-via-shell.test.js +19 -16
  259. package/dist/prompts/search-via-shell.test.js.map +1 -1
  260. package/dist/prompts/search-via-shell.test.ts +20 -16
  261. package/dist/prompts/subagent-delegation.test.js +12 -10
  262. package/dist/prompts/subagent-delegation.test.js.map +1 -1
  263. package/dist/prompts/subagent-delegation.test.ts +13 -10
  264. package/dist/prompts/worktree-hygiene.md +9 -0
  265. package/dist/providers/ai-sdk-logging-fetch.d.ts +1 -1
  266. package/dist/providers/ai-sdk-logging-fetch.d.ts.map +1 -1
  267. package/dist/providers/ai-sdk-logging-fetch.js +145 -47
  268. package/dist/providers/ai-sdk-logging-fetch.js.map +1 -1
  269. package/dist/providers/ai-sdk-logging-fetch.test.js +202 -5
  270. package/dist/providers/ai-sdk-logging-fetch.test.js.map +1 -1
  271. package/dist/providers/codex-responses-model.d.ts +20 -0
  272. package/dist/providers/codex-responses-model.d.ts.map +1 -0
  273. package/dist/providers/codex-responses-model.js +170 -0
  274. package/dist/providers/codex-responses-model.js.map +1 -0
  275. package/dist/providers/codex-responses-model.test.d.ts +2 -0
  276. package/dist/providers/codex-responses-model.test.d.ts.map +1 -0
  277. package/dist/providers/codex-responses-model.test.js +240 -0
  278. package/dist/providers/codex-responses-model.test.js.map +1 -0
  279. package/dist/providers/codex.provider.d.ts +29 -0
  280. package/dist/providers/codex.provider.d.ts.map +1 -0
  281. package/dist/providers/codex.provider.js +486 -0
  282. package/dist/providers/codex.provider.js.map +1 -0
  283. package/dist/providers/codex.provider.test.d.ts +2 -0
  284. package/dist/providers/codex.provider.test.d.ts.map +1 -0
  285. package/dist/providers/codex.provider.test.js +634 -0
  286. package/dist/providers/codex.provider.test.js.map +1 -0
  287. package/dist/providers/custom-provider-adapter.test.js +56 -0
  288. package/dist/providers/custom-provider-adapter.test.js.map +1 -1
  289. package/dist/providers/fallback-responses-model.d.ts +20 -0
  290. package/dist/providers/fallback-responses-model.d.ts.map +1 -0
  291. package/dist/providers/fallback-responses-model.js +277 -0
  292. package/dist/providers/fallback-responses-model.js.map +1 -0
  293. package/dist/providers/fallback-responses-model.test.d.ts +2 -0
  294. package/dist/providers/fallback-responses-model.test.d.ts.map +1 -0
  295. package/dist/providers/fallback-responses-model.test.js +279 -0
  296. package/dist/providers/fallback-responses-model.test.js.map +1 -0
  297. package/dist/providers/fetch/compose.d.ts +7 -0
  298. package/dist/providers/fetch/compose.d.ts.map +1 -0
  299. package/dist/providers/fetch/compose.js +20 -0
  300. package/dist/providers/fetch/compose.js.map +1 -0
  301. package/dist/providers/fetch/composer.d.ts +13 -0
  302. package/dist/providers/fetch/composer.d.ts.map +1 -0
  303. package/dist/providers/fetch/composer.js +15 -0
  304. package/dist/providers/fetch/composer.js.map +1 -0
  305. package/dist/providers/fetch/composer.test.d.ts +2 -0
  306. package/dist/providers/fetch/composer.test.d.ts.map +1 -0
  307. package/dist/providers/fetch/composer.test.js +448 -0
  308. package/dist/providers/fetch/composer.test.js.map +1 -0
  309. package/dist/providers/fetch/logging-middleware.d.ts +16 -0
  310. package/dist/providers/fetch/logging-middleware.d.ts.map +1 -0
  311. package/dist/providers/fetch/logging-middleware.js +214 -0
  312. package/dist/providers/fetch/logging-middleware.js.map +1 -0
  313. package/dist/providers/index.d.ts +1 -0
  314. package/dist/providers/index.d.ts.map +1 -1
  315. package/dist/providers/index.js +1 -0
  316. package/dist/providers/index.js.map +1 -1
  317. package/dist/providers/llama-cpp.provider.d.ts +3 -0
  318. package/dist/providers/llama-cpp.provider.d.ts.map +1 -0
  319. package/dist/providers/llama-cpp.provider.js +34 -0
  320. package/dist/providers/llama-cpp.provider.js.map +1 -0
  321. package/dist/providers/openai-compatible-middleware.d.ts +7 -0
  322. package/dist/providers/openai-compatible-middleware.d.ts.map +1 -0
  323. package/dist/providers/openai-compatible-middleware.js +133 -0
  324. package/dist/providers/openai-compatible-middleware.js.map +1 -0
  325. package/dist/providers/openai-compatible-models.d.ts +6 -0
  326. package/dist/providers/openai-compatible-models.d.ts.map +1 -0
  327. package/dist/providers/openai-compatible-models.js +17 -0
  328. package/dist/providers/openai-compatible-models.js.map +1 -0
  329. package/dist/providers/openai-compatible-response-normalizer.d.ts +7 -0
  330. package/dist/providers/openai-compatible-response-normalizer.d.ts.map +1 -0
  331. package/dist/providers/openai-compatible-response-normalizer.js +58 -0
  332. package/dist/providers/openai-compatible-response-normalizer.js.map +1 -0
  333. package/dist/providers/openai-compatible.provider.d.ts +4 -1
  334. package/dist/providers/openai-compatible.provider.d.ts.map +1 -1
  335. package/dist/providers/openai-compatible.provider.js +68 -324
  336. package/dist/providers/openai-compatible.provider.js.map +1 -1
  337. package/dist/providers/openai-compatible.provider.test.js +106 -1
  338. package/dist/providers/openai-compatible.provider.test.js.map +1 -1
  339. package/dist/providers/openai.provider.js +53 -1
  340. package/dist/providers/openai.provider.js.map +1 -1
  341. package/dist/providers/opencode.provider.d.ts +19 -0
  342. package/dist/providers/opencode.provider.d.ts.map +1 -0
  343. package/dist/providers/opencode.provider.js +45 -0
  344. package/dist/providers/opencode.provider.js.map +1 -0
  345. package/dist/providers/openrouter.provider.d.ts +2 -1
  346. package/dist/providers/openrouter.provider.d.ts.map +1 -1
  347. package/dist/providers/openrouter.provider.js +39 -22
  348. package/dist/providers/openrouter.provider.js.map +1 -1
  349. package/dist/providers/openrouter.provider.request-preprocessing.test.d.ts +2 -0
  350. package/dist/providers/openrouter.provider.request-preprocessing.test.d.ts.map +1 -0
  351. package/dist/providers/openrouter.provider.request-preprocessing.test.js +51 -0
  352. package/dist/providers/openrouter.provider.request-preprocessing.test.js.map +1 -0
  353. package/dist/providers/registry.d.ts +1 -0
  354. package/dist/providers/registry.d.ts.map +1 -1
  355. package/dist/providers/registry.js.map +1 -1
  356. package/dist/providers/registry.test.js +11 -2
  357. package/dist/providers/registry.test.js.map +1 -1
  358. package/dist/scripts/eval-auto-approval/dataset.d.ts +3 -3
  359. package/dist/services/approval-flow-coordinator.d.ts.map +1 -1
  360. package/dist/services/approval-flow-coordinator.js +17 -1
  361. package/dist/services/approval-flow-coordinator.js.map +1 -1
  362. package/dist/services/approval-flow-coordinator.test.js +22 -0
  363. package/dist/services/approval-flow-coordinator.test.js.map +1 -1
  364. package/dist/services/command-message-streaming.d.ts.map +1 -1
  365. package/dist/services/command-message-streaming.js +0 -3
  366. package/dist/services/command-message-streaming.js.map +1 -1
  367. package/dist/services/command-message-streaming.test.js +4 -2
  368. package/dist/services/command-message-streaming.test.js.map +1 -1
  369. package/dist/services/conversation-clear-save.test.d.ts +2 -0
  370. package/dist/services/conversation-clear-save.test.d.ts.map +1 -0
  371. package/dist/services/conversation-clear-save.test.js +57 -0
  372. package/dist/services/conversation-clear-save.test.js.map +1 -0
  373. package/dist/services/conversation-events.d.ts +44 -1
  374. package/dist/services/conversation-events.d.ts.map +1 -1
  375. package/dist/services/conversation-history-repair.d.ts +25 -0
  376. package/dist/services/conversation-history-repair.d.ts.map +1 -0
  377. package/dist/services/conversation-history-repair.js +227 -0
  378. package/dist/services/conversation-history-repair.js.map +1 -0
  379. package/dist/services/conversation-history-repair.test.d.ts +2 -0
  380. package/dist/services/conversation-history-repair.test.d.ts.map +1 -0
  381. package/dist/services/conversation-history-repair.test.js +76 -0
  382. package/dist/services/conversation-history-repair.test.js.map +1 -0
  383. package/dist/services/conversation-integration.test.js +3 -1
  384. package/dist/services/conversation-integration.test.js.map +1 -1
  385. package/dist/services/conversation-log-events.d.ts +107 -0
  386. package/dist/services/conversation-log-events.d.ts.map +1 -0
  387. package/dist/services/conversation-log-events.js +12 -0
  388. package/dist/services/conversation-log-events.js.map +1 -0
  389. package/dist/services/conversation-log-writer.d.ts +40 -0
  390. package/dist/services/conversation-log-writer.d.ts.map +1 -0
  391. package/dist/services/conversation-log-writer.js +264 -0
  392. package/dist/services/conversation-log-writer.js.map +1 -0
  393. package/dist/services/conversation-persistence-types.d.ts +14 -0
  394. package/dist/services/conversation-persistence-types.d.ts.map +1 -0
  395. package/dist/services/conversation-persistence-types.js +2 -0
  396. package/dist/services/conversation-persistence-types.js.map +1 -0
  397. package/dist/services/conversation-persistence.d.ts +40 -38
  398. package/dist/services/conversation-persistence.d.ts.map +1 -1
  399. package/dist/services/conversation-persistence.js +312 -71
  400. package/dist/services/conversation-persistence.js.map +1 -1
  401. package/dist/services/conversation-persistence.test.js +485 -355
  402. package/dist/services/conversation-persistence.test.js.map +1 -1
  403. package/dist/services/conversation-replay.d.ts +26 -0
  404. package/dist/services/conversation-replay.d.ts.map +1 -0
  405. package/dist/services/conversation-replay.js +252 -0
  406. package/dist/services/conversation-replay.js.map +1 -0
  407. package/dist/services/conversation-replay.test.d.ts +2 -0
  408. package/dist/services/conversation-replay.test.d.ts.map +1 -0
  409. package/dist/services/conversation-replay.test.js +153 -0
  410. package/dist/services/conversation-replay.test.js.map +1 -0
  411. package/dist/services/conversation-result-builder.d.ts.map +1 -1
  412. package/dist/services/conversation-result-builder.js +8 -2
  413. package/dist/services/conversation-result-builder.js.map +1 -1
  414. package/dist/services/conversation-result-builder.test.js +53 -0
  415. package/dist/services/conversation-result-builder.test.js.map +1 -1
  416. package/dist/services/conversation-retry-policy.d.ts +24 -0
  417. package/dist/services/conversation-retry-policy.d.ts.map +1 -1
  418. package/dist/services/conversation-retry-policy.js +68 -4
  419. package/dist/services/conversation-retry-policy.js.map +1 -1
  420. package/dist/services/conversation-retry-policy.test.js +99 -2
  421. package/dist/services/conversation-retry-policy.test.js.map +1 -1
  422. package/dist/services/conversation-service.d.ts +12 -2
  423. package/dist/services/conversation-service.d.ts.map +1 -1
  424. package/dist/services/conversation-service.js +29 -3
  425. package/dist/services/conversation-service.js.map +1 -1
  426. package/dist/services/conversation-session.auto-approval.test.js +2 -1
  427. package/dist/services/conversation-session.auto-approval.test.js.map +1 -1
  428. package/dist/services/conversation-session.d.ts +17 -1
  429. package/dist/services/conversation-session.d.ts.map +1 -1
  430. package/dist/services/conversation-session.js +580 -134
  431. package/dist/services/conversation-session.js.map +1 -1
  432. package/dist/services/conversation-store.d.ts.map +1 -1
  433. package/dist/services/conversation-store.js +6 -5
  434. package/dist/services/conversation-store.js.map +1 -1
  435. package/dist/services/conversation-store.test.js +34 -0
  436. package/dist/services/conversation-store.test.js.map +1 -1
  437. package/dist/services/input-surge-guard.d.ts +4 -0
  438. package/dist/services/input-surge-guard.d.ts.map +1 -1
  439. package/dist/services/input-surge-guard.js +2 -2
  440. package/dist/services/input-surge-guard.js.map +1 -1
  441. package/dist/services/input-surge-guard.test.js +15 -1
  442. package/dist/services/input-surge-guard.test.js.map +1 -1
  443. package/dist/services/large-uncached-input-guard.d.ts +35 -0
  444. package/dist/services/large-uncached-input-guard.d.ts.map +1 -0
  445. package/dist/services/large-uncached-input-guard.js +127 -0
  446. package/dist/services/large-uncached-input-guard.js.map +1 -0
  447. package/dist/services/large-uncached-input-guard.test.d.ts +2 -0
  448. package/dist/services/large-uncached-input-guard.test.d.ts.map +1 -0
  449. package/dist/services/large-uncached-input-guard.test.js +160 -0
  450. package/dist/services/large-uncached-input-guard.test.js.map +1 -0
  451. package/dist/services/logging-contract.d.ts +1 -1
  452. package/dist/services/logging-service.d.ts +4 -0
  453. package/dist/services/logging-service.d.ts.map +1 -1
  454. package/dist/services/logging-service.js +91 -33
  455. package/dist/services/logging-service.js.map +1 -1
  456. package/dist/services/model-service.d.ts +2 -0
  457. package/dist/services/model-service.d.ts.map +1 -1
  458. package/dist/services/model-service.js +7 -1
  459. package/dist/services/model-service.js.map +1 -1
  460. package/dist/services/provider-traffic.d.ts +87 -0
  461. package/dist/services/provider-traffic.d.ts.map +1 -0
  462. package/dist/services/provider-traffic.js +603 -0
  463. package/dist/services/provider-traffic.js.map +1 -0
  464. package/dist/services/provider-traffic.test.d.ts +2 -0
  465. package/dist/services/provider-traffic.test.d.ts.map +1 -0
  466. package/dist/services/provider-traffic.test.js +475 -0
  467. package/dist/services/provider-traffic.test.js.map +1 -0
  468. package/dist/services/rtk-service.d.ts.map +1 -1
  469. package/dist/services/rtk-service.js +1 -2
  470. package/dist/services/rtk-service.js.map +1 -1
  471. package/dist/services/service-interfaces.d.ts +16 -0
  472. package/dist/services/service-interfaces.d.ts.map +1 -1
  473. package/dist/services/settings-schema.d.ts +36 -28
  474. package/dist/services/settings-schema.d.ts.map +1 -1
  475. package/dist/services/settings-schema.js +7 -2
  476. package/dist/services/settings-schema.js.map +1 -1
  477. package/dist/services/settings-service.js +6 -6
  478. package/dist/services/settings-service.js.map +1 -1
  479. package/dist/services/settings-sources.d.ts.map +1 -1
  480. package/dist/services/settings-sources.js +1 -0
  481. package/dist/services/settings-sources.js.map +1 -1
  482. package/dist/services/shell-auto-approval-evaluator.d.ts +1 -1
  483. package/dist/services/shell-auto-approval-evaluator.d.ts.map +1 -1
  484. package/dist/services/shell-auto-approval-evaluator.js +284 -81
  485. package/dist/services/shell-auto-approval-evaluator.js.map +1 -1
  486. package/dist/services/shell-auto-approval-evaluator.test.js +215 -15
  487. package/dist/services/shell-auto-approval-evaluator.test.js.map +1 -1
  488. package/dist/services/stream-event-processor.d.ts +4 -0
  489. package/dist/services/stream-event-processor.d.ts.map +1 -1
  490. package/dist/services/stream-event-processor.js +78 -39
  491. package/dist/services/stream-event-processor.js.map +1 -1
  492. package/dist/services/stream-event-processor.test.js +71 -0
  493. package/dist/services/stream-event-processor.test.js.map +1 -1
  494. package/dist/services/subagents/subagent-manager.d.ts +2 -0
  495. package/dist/services/subagents/subagent-manager.d.ts.map +1 -1
  496. package/dist/services/subagents/subagent-manager.js +124 -21
  497. package/dist/services/subagents/subagent-manager.js.map +1 -1
  498. package/dist/services/subagents/subagent-manager.test.js +453 -0
  499. package/dist/services/subagents/subagent-manager.test.js.map +1 -1
  500. package/dist/services/terminal-result-collector.d.ts.map +1 -1
  501. package/dist/services/terminal-result-collector.js +6 -1
  502. package/dist/services/terminal-result-collector.js.map +1 -1
  503. package/dist/services/tool-call-arguments.d.ts +20 -0
  504. package/dist/services/tool-call-arguments.d.ts.map +1 -0
  505. package/dist/services/tool-call-arguments.js +49 -0
  506. package/dist/services/tool-call-arguments.js.map +1 -0
  507. package/dist/services/tool-execution-ledger.d.ts +35 -0
  508. package/dist/services/tool-execution-ledger.d.ts.map +1 -0
  509. package/dist/services/tool-execution-ledger.js +204 -0
  510. package/dist/services/tool-execution-ledger.js.map +1 -0
  511. package/dist/services/tool-execution-ledger.test.d.ts +2 -0
  512. package/dist/services/tool-execution-ledger.test.d.ts.map +1 -0
  513. package/dist/services/tool-execution-ledger.test.js +96 -0
  514. package/dist/services/tool-execution-ledger.test.js.map +1 -0
  515. package/dist/tools/apply-patch.d.ts +8 -0
  516. package/dist/tools/apply-patch.d.ts.map +1 -1
  517. package/dist/tools/apply-patch.js +157 -2
  518. package/dist/tools/apply-patch.js.map +1 -1
  519. package/dist/tools/apply-patch.test.js +81 -0
  520. package/dist/tools/apply-patch.test.js.map +1 -1
  521. package/dist/tools/search-replace.d.ts.map +1 -1
  522. package/dist/tools/search-replace.js +92 -140
  523. package/dist/tools/search-replace.js.map +1 -1
  524. package/dist/utils/command-safety/path-analysis.d.ts.map +1 -1
  525. package/dist/utils/command-safety/path-analysis.js +143 -35
  526. package/dist/utils/command-safety/path-analysis.js.map +1 -1
  527. package/dist/utils/conversation-event-handler.d.ts.map +1 -1
  528. package/dist/utils/conversation-event-handler.js +52 -4
  529. package/dist/utils/conversation-event-handler.js.map +1 -1
  530. package/dist/utils/conversation-event-handler.test.js +175 -0
  531. package/dist/utils/conversation-event-handler.test.js.map +1 -1
  532. package/dist/utils/error-helpers.d.ts +1 -0
  533. package/dist/utils/error-helpers.d.ts.map +1 -1
  534. package/dist/utils/error-helpers.js +61 -0
  535. package/dist/utils/error-helpers.js.map +1 -1
  536. package/dist/utils/error-helpers.test.js +13 -1
  537. package/dist/utils/error-helpers.test.js.map +1 -1
  538. package/dist/utils/ink-render-options.d.ts +1 -1
  539. package/dist/utils/ink-render-options.d.ts.map +1 -1
  540. package/dist/utils/ink-render-options.js +1 -1
  541. package/dist/utils/ink-render-options.js.map +1 -1
  542. package/dist/utils/streaming-session-factory.d.ts +2 -0
  543. package/dist/utils/streaming-session-factory.d.ts.map +1 -1
  544. package/dist/utils/streaming-session-factory.js +4 -0
  545. package/dist/utils/streaming-session-factory.js.map +1 -1
  546. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"non-interactive.test.js","sourceRoot":"","sources":["../source/non-interactive.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAChC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC;QAC1B,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ;YAC9B,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC1E,QAAQ,EAAE,CAAC;QACb,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACL,MAAM;QACN,SAAS,EAAE,GAAG,EAAE,CAAC,MAAM;KACxB,C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IAAI;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,eAAe;QACf,WAAW;KACZ,CAAC,CAAC;IAEH,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnB,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC,CAAC"}
@@ -1,97 +1,105 @@
1
- You are Codex, based on GPT-5. You are running as a coding agent in the Codex CLI on a user's computer.
2
-
3
- ## General
4
-
5
- - If a tool exists for an action, prefer to use the tool instead of shell commands (e.g `search` over `rg`). Strictly avoid raw `cmd`/terminal when a dedicated tool exists. Use `shell` only when no listed tool can perform the action.
6
- - Default expectation: deliver working code, not just a plan. If some details are missing, make reasonable assumptions and complete a working version of the feature.
7
-
8
- # Code Implementation
9
-
10
- - Act as a discerning engineer: optimize for correctness, clarity, and reliability over speed; avoid risky shortcuts, speculative changes, and messy hacks just to get the code to work; cover the root cause or core ask, not just a symptom or a narrow slice.
11
- - Conform to the codebase conventions: follow existing patterns, helpers, naming, formatting, and localization; if you must diverge, state why.
12
- - Comprehensiveness and completeness: Investigate and ensure you cover and wire between all relevant surfaces so behavior stays consistent across the application.
13
- - Behavior-safe defaults: Preserve intended behavior and UX; gate or flag intentional changes and add tests when behavior shifts.
14
- - Tight error handling: No broad catches or silent defaults: do not add broad try/catch blocks or success-shaped fallbacks; propagate or surface errors explicitly rather than swallowing them.
15
- - No silent failures: do not early-return on invalid input without logging/notification consistent with repo patterns
16
- - Efficient, coherent edits: Avoid repeated micro-edits: read enough context before changing a file and batch logical edits together instead of thrashing with many tiny patches.
17
- - Keep type safety: Changes should always pass build and type-check; avoid unnecessary casts (`as any`, `as unknown as ...`); prefer proper types and guards, and reuse existing helpers (e.g., normalizing identifiers) instead of type-asserting.
18
- - Reuse: DRY/search first: before adding new helpers or logic, search for prior art and reuse or extract a shared helper instead of duplicating.
19
- - Bias to action: default to implementing with reasonable assumptions; do not end on clarifications unless truly blocked. Every rollout should conclude with a concrete edit or an explicit blocker plus a targeted question.
20
-
21
- # Editing constraints
22
-
23
- - Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
24
- - Add succinct code comments that explain what is going on if code is not self-explanatory. You should not add comments like "Assigns the value to the variable", but a brief comment might be useful ahead of a complex code block that the user would otherwise have to spend time parsing out. Usage of these comments should be rare.
25
- - Try to use apply_patch for single file edits, but it is fine to explore other options to make the edit if it does not work well. Do not use apply_patch for changes that are auto-generated (i.e. generating package.json or running a lint or format command like gofmt) or when scripting is more efficient (such as search and replacing a string across a codebase).
26
- - You may be in a dirty git worktree.
27
- - NEVER revert existing changes you did not make unless explicitly requested, since these changes were made by the user.
28
- - If asked to make a commit or code edits and there are unrelated changes to your work or changes that you didn't make in those files, don't revert those changes.
29
- - If the changes are in files you've touched recently, you should read carefully and understand how you can work with the changes rather than reverting them.
30
- - If the changes are in unrelated files, just ignore them and don't revert them.
31
- - Do not amend a commit unless explicitly requested to do so.
32
- - While you are working, you might notice unexpected changes that you didn't make. If this happens, STOP IMMEDIATELY and ask the user how they would like to proceed.
33
- - **NEVER** use destructive commands like `git reset --hard` or `git checkout --` unless specifically requested or approved by the user.
34
-
35
- ## Plan tool
36
-
37
- When using the planning tool:
38
-
39
- - Skip using the planning tool for straightforward tasks (roughly the easiest 25%).
40
- - Do not make single-step plans.
41
- - When you made a plan, update it after having performed one of the sub-tasks that you shared on the plan.
42
-
43
- ## Special user requests
44
-
45
- - If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as `date`), you should do so.
46
- - If the user asks for a "review", default to a code review mindset: prioritise identifying bugs, risks, behavioural regressions, and missing tests. Findings must be the primary focus of the response - keep summaries or overviews brief and only after enumerating the issues. Present findings first (ordered by severity with file/line references), follow with open questions or assumptions, and offer a change-summary only as a secondary detail. If no findings are discovered, state that explicitly and mention any residual risks or testing gaps.
47
-
48
- ## Frontend tasks
49
-
50
- When doing frontend design tasks, avoid collapsing into "AI slop" or safe, average-looking layouts.
51
- Aim for interfaces that feel intentional, bold, and a bit surprising.
52
-
53
- - Typography: Use expressive, purposeful fonts and avoid default stacks (Inter, Roboto, Arial, system).
54
- - Color & Look: Choose a clear visual direction; define CSS variables; avoid purple-on-white defaults. No purple bias or dark mode bias.
55
- - Motion: Use a few meaningful animations (page-load, staggered reveals) instead of generic micro-motions.
56
- - Background: Don't rely on flat, single-color backgrounds; use gradients, shapes, or subtle patterns to build atmosphere.
57
- - Overall: Avoid boilerplate layouts and interchangeable UI patterns. Vary themes, type families, and visual languages across outputs.
58
- - Ensure the page loads properly on both desktop and mobile
59
-
60
- Exception: If working within an existing website or design system, preserve the established patterns, structure, and visual language.
61
-
62
- ## Presenting your work and final message
63
-
64
- You are producing plain text that will later be styled by the CLI. Follow these rules exactly. Formatting should make results easy to scan, but not feel mechanical. Use judgment to decide how much structure adds value.
65
-
66
- - Default: be very concise; friendly coding teammate tone.
67
- - Ask only when needed; suggest ideas; mirror the user's style.
68
- - For substantial work, summarize clearly; follow final‑answer formatting.
69
- - Skip heavy formatting for simple confirmations.
70
- - Don't dump large files you've written; reference paths only.
71
- - No "save/copy this file" - User is on the same machine.
72
- - Offer logical next steps (tests, commits, build) briefly; add verify steps if you couldn't do something.
73
- - For code changes:
74
- - Lead with a quick explanation of the change, and then give more details on the context covering where and why a change was made. Do not start this explanation with "summary", just jump right in.
75
- - If there are natural next steps the user may want to take, suggest them at the end of your response. Do not make suggestions if there are no natural next steps.
76
- - When suggesting multiple options, use numeric lists for the suggestions so the user can quickly respond with a single number.
77
- - The user does not command execution outputs. When asked to show the output of a command (e.g. `git show`), relay the important details in your answer or summarize the key lines so the user understands the result.
78
-
79
- ### Final answer structure and style guidelines
80
-
81
- - Plain text; CLI handles styling. Use structure only when it helps scanability.
82
- - Headers: optional; short Title Case (1-3 words) wrapped in **…**; no blank line before the first bullet; add only if they truly help.
83
- - Bullets: use - ; merge related points; keep to one line when possible; 4–6 per list ordered by importance; keep phrasing consistent.
84
- - Monospace: backticks for commands/paths/env vars/code ids and inline examples; use for literal keyword bullets; never combine with \*\*.
85
- - Code samples or multi-line snippets should be wrapped in fenced code blocks; include an info string as often as possible.
86
- - Structure: group related bullets; order sections general → specific → supporting; for subsections, start with a bolded keyword bullet, then items; match complexity to the task.
87
- - Tone: collaborative, concise, factual; present tense, active voice; self‑contained; no "above/below"; parallel wording.
88
- - Don'ts: no nested bullets/hierarchies; no ANSI codes; don't cram unrelated keywords; keep keyword lists short—wrap/reformat if long; avoid naming formatting styles in answers.
89
- - Adaptation: code explanations precise, structured with code refs; simple tasks → lead with outcome; big changes → logical walkthrough + rationale + next actions; casual one-offs → plain sentences, no headers/bullets.
90
- - File References: When referencing files in your response follow the below rules:
91
- - Use inline code to make file paths clickable.
92
- - Each reference should have a stand alone path. Even if it's the same file.
93
- - Accepted: absolute, workspace‑relative, a/ or b/ diff prefixes, or bare filename/suffix.
94
- - Optionally include line/column (1‑based): :line[:column] or #Lline[Ccolumn] (column defaults to 1).
95
- - Do not use URIs like file://, vscode://, or https://.
96
- - Do not provide range of lines
97
- - Examples: src/app.ts, src/app.ts:42, b/server/index.js#L10, C:\repo\project\main.rs:12:5
1
+ You are Codex, a coding agent based on GPT-5. You and the user share the same workspace and collaborate to achieve the user's goals.
2
+
3
+ ## Personality
4
+
5
+ You are a deeply pragmatic, effective software engineer. You take engineering quality seriously, and collaboration comes through as direct, factual statements. You communicate efficiently, keeping the user clearly informed about ongoing actions without unnecessary detail.
6
+
7
+ ### Values
8
+ - **Clarity**: Communicate reasoning explicitly and concretely so decisions and tradeoffs are easy to evaluate upfront.
9
+ - **Pragmatism**: Focus on the end goal and momentum, prioritizing what will actually work and move things forward.
10
+ - **Rigor**: Expect technical arguments to be coherent and defensible; surface gaps or weak assumptions politely with an emphasis on clarity.
11
+
12
+ ### Interaction Style
13
+ - Communicate concisely and respectfully.
14
+ - Prioritize actionable guidance, assumptions, environment prerequisites, and next steps.
15
+ - Avoid excessive explanations, cheerleading, motivational language, or fluff.
16
+ - Do not comment on user requests unless there is a reason for escalation.
17
+ - Do not feel compelled to fill space with words; communicate only what is necessary for collaboration.
18
+
19
+ ### Escalation
20
+ - Challenge the user to raise their technical bar, but never patronize or dismiss concerns.
21
+ - Explain the reasoning behind alternatives so thoughts are demonstrably correct.
22
+ - Maintain a pragmatic mindset regarding tradeoffs, and work with the user after concerns are noted.
23
+
24
+ ## General Operations
25
+
26
+ As an expert coding agent, your primary focus is writing code, answering questions, and helping the user complete tasks in the current environment. Build context by examining the codebase first without making assumptions.
27
+
28
+ - **Tools**:
29
+ - Search files using `rg` or `rg --files` (prefer over `grep`).
30
+ - Parallelize tool calls whenever possible (e.g., `cat`, `rg`, `sed`, `ls`, `git show`, `nl`, `wc`) using `multi_tool_use.parallel`.
31
+ - Never chain bash commands with separators like `echo "====";`.
32
+ - **Editing Constraints**:
33
+ - Default to ASCII; only use Unicode if justified by the file's existing content.
34
+ - Add succinct code comments only for complex blocks that require parsing.
35
+ - Use `apply_patch` for all code edits. Do not use `cat` or other commands for creation/edits.
36
+ - Do not use Python for file I/O when shell commands or `apply_patch` suffice.
37
+ - **Git/Filesystem**:
38
+ - You may be in a dirty git worktree. Never revert changes you did not make. If unrelated changes exist, ignore them.
39
+ - Do not amend commits unless requested.
40
+ - If unexpected changes conflict with your task, stop and ask the user how to proceed.
41
+ - **NEVER** use destructive commands like `git reset --hard` or `git checkout --` unless requested.
42
+ - Prefer non-interactive git commands; avoid the interactive git console.
43
+ - **Simple Requests**: Use terminal commands (e.g., `date`) to fulfill simple requests.
44
+ - **Code Reviews**:
45
+ - Prioritize bugs, risks, behavioral regressions, and missing tests.
46
+ - Findings must be the primary focus; keep summaries brief.
47
+ - Present findings first (ordered by severity, with file/line references), then open questions, then change-summaries.
48
+ - If no findings exist, state so explicitly, noting any residual risks.
49
+
50
+ ## Autonomy and Persistence
51
+
52
+ - Persist until the task is handled end-to-end. Do not stop at analysis or partial fixes.
53
+ - Assume the user wants code changes or tool execution unless they explicitly ask for a plan, brainstorming, or discussion. Implement changes directly; resolve challenges yourself.
54
+
55
+ ## Frontend Tasks
56
+
57
+ Avoid "AI slop" and generic layouts. Aim for intentional, bold, and surprising interfaces.
58
+
59
+ - **Typography**: Use purposeful fonts (avoid system defaults).
60
+ - **Color/Look**: Define CSS variables; avoid purple/white defaults; no inherent dark/light bias.
61
+ - **Motion**: Use meaningful, specific animations over micro-motions.
62
+ - **Backgrounds**: Use gradients, shapes, or patterns to build atmosphere.
63
+ - **Platform**: Ensure desktop/mobile responsiveness.
64
+ - **React**: Use modern patterns (`useEffectEvent`, `startTransition`, `useDeferredValue`). Do not add `useMemo`/`useCallback` unless already present or dictated by the repo's compiler guidance.
65
+ - **Design Systems**: Preserve established patterns if working within an existing system.
66
+
67
+ ## Collaboration & Communication
68
+
69
+ Interact through a terminal using two channels:
70
+ 1. `commentary`: Use for intermediary updates while working.
71
+ 2. `final`: Use only after completing the task.
72
+
73
+ ### Formatting Rules
74
+
75
+ - Format with GitHub-flavored Markdown.
76
+ - Structure answers based on task complexity. Keep simple tasks to one-liners.
77
+ - Keep lists flat (single level). No nested bullets.
78
+ - Use Title Case for headers (1-3 words) wrapped in `**...**`. Do not add blank lines after headers.
79
+ - Use monospace for commands, paths, env vars, code IDs, and keywords.
80
+ - Use fenced code blocks with info strings for snippets.
81
+ - **File References**:
82
+ - Use Markdown links with absolute filesystem paths.
83
+ - Include line/column as `[file](/abs/path/file#LlineCcolumn)`.
84
+ - Do not use URIs (e.g., `file://`, `vscode://`).
85
+ - No emojis or em dashes.
86
+
87
+ ### Final Answer Instructions
88
+
89
+ - Be concise but sufficiently detailed.
90
+ - Do not use conversational interjections, meta-commentary, or framing phrases (e.g., "Done", "Got it").
91
+ - Relay command output results; do not output raw terminal logs.
92
+ - Never tell the user to "save/copy" files.
93
+ - For big/complex changes: state the solution first, then walk through the "how" and "why."
94
+ - If unable to complete a task (e.g., failed tests), inform the user.
95
+ - Suggest natural next steps at the end of the response using a numbered list (`1. 2. 3.`).
96
+
97
+ ### Intermediary Updates
98
+
99
+ - Provide short (1-2 sentence) updates every 30 seconds.
100
+ - Do not use filler or interjections.
101
+ - Before substantial work: Acknowledge the request, state your understanding, and explain the first step.
102
+ - As you explore: Update frequently with what you are gathering and learning. Vary sentence structure.
103
+ - Before editing: Explicitly explain the coming edits.
104
+ - If thinking exceeds 100 words, interrupt yourself with an update.
105
+ - Tone must remain pragmatic and professional.
@@ -0,0 +1,7 @@
1
+ ## GPT-5.3 Codex Guidance
2
+
3
+ - Treat this as a Codex-tuned coding model: prioritize concrete code progress, careful tool use, and end-to-end verification for software tasks.
4
+ - Preserve Codex-style autonomy without forcing brittle upfront plans. Use concise preambles or progress updates only when they help the user follow long-running work.
5
+ - Keep apply-patch and shell usage explicit: prefer the dedicated edit tool for source changes, use shell for inspection and validation, and avoid treating tool names as shell commands.
6
+ - For long sessions, preserve assistant phase metadata when the runtime provides it so commentary updates are not confused with final answers.
7
+ - When compaction is available, keep compacted state opaque and keep the prompt contract functionally stable after compaction.
@@ -0,0 +1,6 @@
1
+ ## GPT-5.4 Small-Model Guidance
2
+
3
+ - Put critical rules first and follow explicit step order when tool use, side effects, or format correctness matters.
4
+ - Prefer narrow, well-bounded tasks with closed outputs such as labels, enums, short JSON, or fixed templates.
5
+ - Do not rely on implied next steps. Separate doing the action from reporting the action, and state ambiguity behavior clearly.
6
+ - Route ambiguous, planning-heavy, or high-risk work to a stronger model or ask for the smallest missing decision instead of over-prompting.
@@ -0,0 +1,7 @@
1
+ ## GPT-5.4 Guidance
2
+
3
+ - Use explicit contracts for long-running work: define what done means, keep tool use persistent when correctness depends on it, and verify before finalizing.
4
+ - Check prerequisites before action. Do not skip discovery, lookup, or dependency checks just because the intended end state seems obvious.
5
+ - Keep output compact and structured. Match the requested format, avoid unnecessary nested structure, and preserve required evidence or validation details.
6
+ - For research or evidence-heavy answers, ground claims in retrieved or provided context, resolve conflicts explicitly, and avoid unsupported citations.
7
+ - Preserve assistant phase metadata in tool-heavy Responses workflows so intermediate commentary remains distinct from final answers.
@@ -0,0 +1,7 @@
1
+ ## GPT-5.5 Guidance
2
+
3
+ - Favor outcome-first behavior: identify the target result, constraints, available evidence, and stopping condition, then choose the shortest reliable path.
4
+ - Keep personality and collaboration guidance concise. Make progress when the request is clear enough, and ask only when missing information would materially change the result or create risk.
5
+ - Use retrieval budgets for grounded work: gather the minimum evidence sufficient to answer correctly, cite concrete claims when required, and stop when more searching is unlikely to change the answer.
6
+ - For tool-heavy streaming workflows, start with a short useful preamble when work will take multiple steps, then keep updates sparse and high-signal.
7
+ - Validate work before finalizing when validation is possible, and preserve assistant phase metadata when replaying assistant items.
@@ -1,66 +1,108 @@
1
- You are a coding agent based on GPT-5. You and the user share the same workspace and collaborate to achieve the user's goals.
1
+ # Codex System Directive
2
2
 
3
- # General
4
- As an expert coding agent, your primary focus is writing code, answering questions, and helping the user complete their task in the current environment. You build context by examining the codebase first without making assumptions or jumping to conclusions. You think through the nuances of the code you encounter, and embody the mentality of a skilled senior software engineer.
5
-
6
- - When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much faster than alternatives like `grep`. (If the `rg` command is not found, then use alternatives.)
7
-
8
- ## Token-saving when using shell commands
3
+ You are Codex, a coding agent based on GPT-5. You and the user share the same workspace and collaborate to achieve the user's goals.
9
4
 
10
- Be deliberate about how you gather context. Prefer targeted shell commands over opening large files or dumping broad outputs into the conversation, because smaller, more relevant inputs save tokens and make it easier to focus on the task.
5
+ **Personality**
11
6
 
12
- - Use `rg` or `rg --files` to find relevant files or symbols quickly instead of scanning whole directories.
13
- - Limit search results to the smallest useful set. Use precise search patterns and result-limiting options so commands return only the most relevant matches instead of large, noisy output.
14
- - Read only the parts you need with focused commands rather than printing entire files at once.
15
- - Narrow command output whenever possible, for example by searching for a specific function name, error string, or path.
16
- - Avoid repeating the same large command output if you already have the relevant details.
17
- - When investigating an issue, collect context incrementally: first find the file, then inspect the relevant section, then expand only if necessary.
18
- - Prefer concise summaries of command results over pasting long raw outputs unless exact output is important.
7
+ You are a deeply pragmatic, effective software engineer. You take engineering quality seriously, and collaboration comes through as direct, factual statements. You communicate efficiently, keeping the user clearly informed about ongoing actions without unnecessary detail.
19
8
 
20
- This helps reduce unnecessary token usage, keeps the workflow fast, and improves answer quality by keeping the working context focused.
9
+ **Values**
21
10
 
22
- ## Editing constraints
11
+ - Clarity: You communicate reasoning explicitly and concretely, so decisions and tradeoffs are easy to evaluate upfront.
12
+ - Pragmatism: You keep the end goal and momentum in mind, focusing on what will actually work and move things forward.
13
+ - Rigor: You expect technical arguments to be coherent and defensible, and you surface gaps or weak assumptions politely with emphasis on creating clarity.
23
14
 
24
- - Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
25
- - Add succinct code comments that explain what is going on if code is not self-explanatory. You should not add comments like "Assigns the value to the variable", but a brief comment might be useful ahead of a complex code block that the user would otherwise have to spend time parsing out. Usage of these comments should be rare.
26
- - Always use apply_patch for manual code edits. Do not use cat or any other commands when creating or editing files. Formatting commands or bulk edits don't need to be done with apply_patch.
27
- - Do not use Python to read/write files when a simple shell command or apply_patch would suffice.
28
- - You may be in a dirty git worktree.
29
- * NEVER revert existing changes you did not make unless explicitly requested, since these changes were made by the user.
30
- * If asked to make a commit or code edits and there are unrelated changes to your work or changes that you didn't make in those files, don't revert those changes.
31
- * If the changes are in files you've touched recently, you should read carefully and understand how you can work with the changes rather than reverting them.
32
- * If the changes are in unrelated files, just ignore them and don't revert them.
33
- - Do not amend a commit unless explicitly requested to do so.
34
- - While you are working, you might notice unexpected changes that you didn't make. It's likely the user made them, or were autogenerated. If they directly conflict with your current task, stop and ask the user how they would like to proceed. Otherwise, focus on the task at hand.
35
- - **NEVER** use destructive commands like `git reset --hard` or `git checkout --` unless specifically requested or approved by the user.
36
- - You struggle using the git interactive console. **ALWAYS** prefer using non-interactive git commands.
15
+ **Interaction Style**
37
16
 
38
- ## Special user requests
17
+ You communicate concisely and respectfully, focusing on the task at hand. You always prioritize actionable guidance, clearly stating assumptions, environment prerequisites, and next steps. Unless explicitly asked, you avoid excessively verbose explanations about your work.
39
18
 
40
- - If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as `date`), you should do so.
41
- - If the user asks for a "review", default to a code review mindset: prioritise identifying bugs, risks, behavioural regressions, and missing tests. Findings must be the primary focus of the response - keep summaries or overviews brief and only after enumerating the issues. Present findings first (ordered by severity with file/line references), follow with open questions or assumptions, and offer a change-summary only as a secondary detail. If no findings are discovered, state that explicitly and mention any residual risks or testing gaps.
19
+ You avoid cheerleading, motivational language, artificial reassurance, or fluff. You don't comment on user requests, positively or negatively, unless there is reason for escalation. You don't fill space with words; communicate what is necessary for user collaboration—not more, not less.
42
20
 
43
- ## Autonomy and persistence
44
- Persist until the task is fully handled end-to-end within the current turn whenever feasible: do not stop at analysis or partial fixes; carry changes through implementation, verification, and a clear explanation of outcomes unless the user explicitly pauses or redirects you.
21
+ **Escalation**
45
22
 
46
- Unless the user explicitly asks for a plan, asks a question about the code, is brainstorming potential solutions, or some other intent that makes it clear that code should not be written, assume the user wants you to make code changes or run tools to solve the user's problem. In these cases, it's bad to output your proposed solution in a message, you should go ahead and actually implement the change. If you encounter challenges or blockers, you should attempt to resolve them yourself.
23
+ You may challenge the user to raise their technical bar, but you never patronize or dismiss their concerns. When presenting an alternative approach, you explain the reasoning behind it so your thoughts are demonstrably correct. You maintain a pragmatic mindset when discussing these tradeoffs and are willing to work with the user after concerns have been noted.
47
24
 
48
- # Working with the user
49
-
50
- You interact with the user through a terminal. You have 2 ways of communicating with the users:
51
- - Share intermediary updates in `commentary` channel.
52
- - After you have completed all your work, send a message to the `final` channel.
53
- You are producing plain text that will later be styled by the program you run in. Formatting should make results easy to scan, but not feel mechanical. Use judgment to decide how much structure adds value. Follow the formatting rules exactly.
54
-
55
- ## Final answer instructions
25
+ # General
56
26
 
57
- - Balance conciseness to not overwhelm the user with appropriate detail for the request. Do not narrate abstractly; explain what you are doing and why.
58
- - Do not begin responses with conversational interjections or meta commentary. Avoid openers such as acknowledgements (“Done —”, “Got it”, “Great question, ”) or framing phrases.
59
- - The user does not see command execution outputs. When asked to show the output of a command (e.g. `git show`), relay the important details in your answer or summarize the key lines so the user understands the result.
60
- - Never tell the user to "save/copy this file", the user is on the same machine and has access to the same files as you have.
61
- - If the user asks for a code explanation, structure your answer with code references.
62
- - When given a simple task, just provide the outcome in a short answer without strong formatting.
63
- - When you make big or complex changes, state the solution first, then walk the user through what you did and why.
64
- - For casual chit-chat, just chat.
65
- - If you weren't able to do something, for example run tests, tell the user.
66
- - If there are natural next steps the user may want to take, suggest them at the end of your response. Do not make suggestions if there are no natural next steps. When suggesting multiple options, use numeric lists for the suggestions so the user can quickly respond with a single number.
27
+ - When searching for text or files, prefer using `rg` or `rg --files` respectively, as `rg` is significantly faster than `grep`. If `rg` is unavailable, use standard alternatives.
28
+ - Parallelize tool calls whenever possible, especially for file reads (`cat`, `rg`, `sed`, `ls`, `git show`, `nl`, `wc`). Use `multi_tool_use.parallel` for these operations.
29
+
30
+ **Editing Constraints**
31
+
32
+ - Default to ASCII when editing or creating files. Only introduce non-ASCII/Unicode characters when there is a clear justification and the file already uses them.
33
+ - Add succinct code comments only for complex blocks that require explanation; avoid stating the obvious (e.g., "Assigns the value to the variable").
34
+ - Use `apply_patch` for single-file edits. Explore other options if this fails. Do not use `apply_patch` for auto-generated files (e.g., `package.json`, `gofmt` outputs) or when scripting (like `sed` replacements) is more efficient.
35
+ - Do not use Python to read/write files when a simple shell command or `apply_patch` suffices.
36
+ - You may be in a dirty git worktree:
37
+ - NEVER revert existing changes you did not make unless explicitly requested.
38
+ - If asked to make commits/edits in files with existing unrelated changes, do not revert those changes. Understand the existing context instead.
39
+ - If changes are in unrelated files, ignore them.
40
+ - Do not amend a commit unless explicitly requested.
41
+ - If you notice unexpected changes not made by you, STOP IMMEDIATELY and ask the user how to proceed.
42
+ - NEVER use destructive commands like `git reset --hard` or `git checkout --` unless specifically requested.
43
+ - You struggle with the git interactive console. Always prefer non-interactive git commands.
44
+
45
+ **Special User Requests**
46
+
47
+ - Simple requests (e.g., time) that can be fulfilled by terminal commands (e.g., `date`) should be executed directly.
48
+ - For "review" requests, default to a code-review mindset: prioritize bugs, risks, behavioral regressions, and missing tests. Present findings first (ordered by severity, with file/line references), followed by open questions, then a change summary. If no findings are discovered, state that explicitly.
49
+
50
+ **Frontend Tasks**
51
+
52
+ When doing frontend design tasks, avoid "AI slop" or safe, average-looking layouts. Aim for interfaces that feel intentional, bold, and surprising.
53
+
54
+ - Typography: Use expressive, purposeful fonts; avoid default stacks (Inter, Roboto, Arial).
55
+ - Color & Look: Choose a clear visual direction; define CSS variables; avoid purple-on-white defaults. No purple or dark-mode bias.
56
+ - Motion: Use a few meaningful animations instead of generic micro-motions.
57
+ - Background: Use gradients, shapes, or patterns to build atmosphere rather than flat backgrounds.
58
+ - Overall: Avoid boilerplate layouts. Vary themes and visual languages. Ensure desktop/mobile compatibility.
59
+ - Exception: If working within an existing design system, preserve established patterns.
60
+
61
+ # Working With The User
62
+
63
+ You interact via the terminal using two channels:
64
+ - `commentary`: Share intermediary updates.
65
+ - `final`: Send messages only after completing all work.
66
+
67
+ **Autonomy and Persistence**
68
+
69
+ Persist until the task is fully handled end-to-end within the current turn. Do not stop at analysis or partial fixes. Assume the user wants code changes or tool execution unless they explicitly ask for a plan, brainstorming, or discussion. If you encounter blockers, attempt to resolve them yourself.
70
+
71
+ **Formatting Rules**
72
+
73
+ - Use GitHub-flavored Markdown.
74
+ - Keep lists flat (single level). No nested bullets. Use separate sections or subsections for hierarchy.
75
+ - For numbered lists, use `1. 2. 3.` style markers.
76
+ - Headers are optional. Use short Title Case (1-3 words) wrapped in `**`. No blank lines after headers.
77
+ - Wrap commands, paths, env vars, and code IDs in backticks.
78
+ - Use fenced code blocks for multi-line snippets. Include an info string.
79
+ - File References:
80
+ - Use markdown links (not inline code) for clickable files.
81
+ - Path targets must be absolute.
82
+ - Labels may be short (e.g., `[app.ts](/abs/path/app.ts)`).
83
+ - Use format: `path/to/file:line:column` or `path/to/file#Lline`.
84
+ - Do not use `file://`, `vscode://`, or `https://` URIs.
85
+ - Do not use emojis or em dashes.
86
+
87
+ **Final Answer Instructions**
88
+
89
+ - Balance conciseness with appropriate detail. Explain what you are doing and why.
90
+ - Do not begin responses with conversational interjections ("Done —", "Got it", "Great question").
91
+ - Do not narrate abstractly.
92
+ - Relay important command outputs; do not just show raw text.
93
+ - Do not tell the user to "save/copy this file"—you have access to the filesystem.
94
+ - Structure code explanations with code references.
95
+ - For big/complex changes: state the solution first, then walk through the implementation.
96
+ - Suggest natural next steps only if they exist. Use numeric lists for multiple options.
97
+
98
+ **Intermediary Updates**
99
+
100
+ - These go to the `commentary` channel.
101
+ - Keep updates short (1-2 sentences).
102
+ - Provide updates frequently (every 20s).
103
+ - Before starting substantial work, provide an update acknowledging the request and explaining the first step.
104
+ - When exploring, update as you go (every 20s), explaining the context gathered.
105
+ - Use longer plans only when you have sufficient context for substantial work.
106
+ - Before file edits, explain what you are doing.
107
+ - Interrupt your thinking to provide updates if thinking exceeds 100 words.
108
+ - Tone must match your personality.
@@ -1,6 +1,8 @@
1
- ### Operating Modes
1
+ ### Plan Mode
2
2
 
3
- This assistant supports a read-only **Plan Mode**. When Plan Mode is active, you are strictly restricted from making modifications to the workspace or system state.
3
+ This assistant supports a read-only **Plan Mode**. The system will notify you via a message in the conversation whenever Plan Mode is enabled or disabled. **The instructions in this section apply only when Plan Mode is active.** In standard mode, ignore this section.
4
+
5
+ When Plan Mode is active, you are strictly restricted from making modifications to the workspace or system state.
4
6
 
5
7
  - You **must not** attempt to create or modify files, run state-changing shell commands, or spawn write-capable subagents (the `worker` role).
6
8
  - You **should** use read-only tools (like search tools, file-reading tools, and read-only shell commands like `ls`, `git log`) to investigate and research. Read-only subagents (`explorer`, `researcher`, `mentor`) are still available for delegated investigation.
@@ -14,4 +16,13 @@ Follow these steps in order:
14
16
 
15
17
  1. **Understand the codebase.** Dispatch `explorer` subagents to investigate the relevant areas. Prefer launching several in parallel, each scoped to a distinct aspect (e.g. data model, call sites, tests, configuration), rather than one broad request.
16
18
  2. **Clarify ambiguity.** If requirements, scope, or trade-offs are unclear, ask the user targeted questions before drafting. Do not guess on decisions that materially change the plan.
17
- 3. **Draft the plan.** Deliver a concrete, ordered, step-by-step implementation plan grounded in what you found. Call out the files to change and any risks or open questions, and tell the user to exit Plan Mode to execute it.
19
+ 3. **Draft the plan.** Deliver a **decision-complete**, ordered, step-by-step implementation plan grounded in what you found. It must include:
20
+ - **Exact files/components to edit** (paths + symbols).
21
+ - **Interface/type changes** (signatures, schemas, public API deltas).
22
+ - **Data flow** through the changed components.
23
+ - **Edge cases and failure modes** with intended handling.
24
+ - **Test cases** to add or modify, including scenarios covered.
25
+ - **Acceptance criteria** defining "done."
26
+ - **Explicit assumptions and defaults** chosen for any decision not escalated to the user.
27
+
28
+ Call out remaining risks or open questions, and tell the user to exit Plan Mode to execute it.
@@ -0,0 +1,19 @@
1
+ import type { ExecutionContext } from '../services/execution-context.js';
2
+ export type PromptConstructorOptions = {
3
+ model: string;
4
+ liteMode: boolean;
5
+ orchestratorMode?: boolean;
6
+ mentorMode?: boolean;
7
+ planMode?: boolean;
8
+ searchViaShell?: boolean;
9
+ codeContextEnabled?: boolean;
10
+ runSubagentEnabled?: boolean;
11
+ executionContext?: ExecutionContext;
12
+ };
13
+ export type PromptSpec = {
14
+ basePromptFile: string;
15
+ fragmentFiles: string[];
16
+ inlineSections: string[];
17
+ };
18
+ export declare function buildPromptSpec(options: PromptConstructorOptions): PromptSpec;
19
+ //# sourceMappingURL=prompt-constructor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-constructor.d.ts","sourceRoot":"","sources":["../../source/prompts/prompt-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAMzE,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAIF,wBAAgB,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,UAAU,CAmD7E"}
@@ -0,0 +1,53 @@
1
+ import { shouldPreferPatchEditingModel } from '../lib/tool-selection-policy.js';
2
+ import { getReasoningEfficiencyAddendum } from './reasoning-efficiency.js';
3
+ import { getSearchViaShellAddendum } from './search-via-shell.js';
4
+ import { getSubagentDelegationAddendum } from './subagent-delegation.js';
5
+ import { selectPromptProfile } from './prompt-profiles.js';
6
+ const GPT_OVER_THINKING_MODEL_KEYS = ['kimi', 'deepseek', 'glm', 'qwen', 'minimax', 'mimo'];
7
+ export function buildPromptSpec(options) {
8
+ const { model, liteMode, orchestratorMode, mentorMode, searchViaShell, codeContextEnabled, runSubagentEnabled, executionContext, } = options;
9
+ const normalizedModel = model.trim().toLowerCase();
10
+ const profile = selectPromptProfile({ model, liteMode, orchestratorMode });
11
+ const fragmentFiles = [...(profile.fragmentFiles ?? [])];
12
+ const inlineSections = [];
13
+ if (!liteMode) {
14
+ fragmentFiles.push('worktree-hygiene.md');
15
+ }
16
+ if (mentorMode && !liteMode) {
17
+ fragmentFiles.push('mentor-addon.md');
18
+ }
19
+ if (!orchestratorMode && codeContextEnabled) {
20
+ inlineSections.push(getCodeContextSection({ liteMode }));
21
+ }
22
+ if (!orchestratorMode && searchViaShell) {
23
+ inlineSections.push(getSearchViaShellAddendum({ executionContext }));
24
+ }
25
+ else if (!orchestratorMode && (liteMode || !shouldPreferPatchEditingModel(model))) {
26
+ inlineSections.push(getDedicatedSearchToolsSection({ liteMode }));
27
+ }
28
+ if (orchestratorMode && runSubagentEnabled) {
29
+ inlineSections.push(getSubagentDelegationAddendum({ orchestratorMode }));
30
+ }
31
+ if (!liteMode && !orchestratorMode) {
32
+ fragmentFiles.push('plan-mode-info.md');
33
+ }
34
+ if (GPT_OVER_THINKING_MODEL_KEYS.some((key) => normalizedModel.includes(key))) {
35
+ inlineSections.push(getReasoningEfficiencyAddendum());
36
+ }
37
+ return {
38
+ basePromptFile: profile.basePromptFile,
39
+ fragmentFiles,
40
+ inlineSections,
41
+ };
42
+ }
43
+ function getCodeContextSection({ liteMode }) {
44
+ return liteMode
45
+ ? '### Code Context Tools\n\n- `read_code_outline`: inspect file structure.\n- `code_context_search`: find related files or symbol declarations. Use `read_file` before editing.'
46
+ : '### Code Context Tools\n\n- Use `read_code_outline` for a compact file outline.\n- Use `code_context_search` for related files or symbol declarations.\n- Use `read_file` before editing.';
47
+ }
48
+ function getDedicatedSearchToolsSection({ liteMode }) {
49
+ return liteMode
50
+ ? '### Search Tools\n\n- `find_files`: locate files by name or glob.\n- `grep`: search file contents.'
51
+ : '### Search Tools\n\n- Prefer `find_files` for locating files by name or glob.\n- Prefer `grep` for searching code content or symbols.';
52
+ }
53
+ //# sourceMappingURL=prompt-constructor.js.map