@vybestack/llxprt-code 0.8.0 → 0.9.0-nightly.260120.c5843db0e

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 (407) hide show
  1. package/dist/package.json +8 -9
  2. package/dist/src/auth/BucketFailoverHandlerImpl.spec.js +6 -0
  3. package/dist/src/auth/BucketFailoverHandlerImpl.spec.js.map +1 -1
  4. package/dist/src/auth/__tests__/OAuthBucketManager.spec.js +6 -0
  5. package/dist/src/auth/__tests__/OAuthBucketManager.spec.js.map +1 -1
  6. package/dist/src/auth/__tests__/oauth-manager.issue913.spec.js +2 -0
  7. package/dist/src/auth/__tests__/oauth-manager.issue913.spec.js.map +1 -1
  8. package/dist/src/auth/anthropic-oauth-provider.d.ts +7 -0
  9. package/dist/src/auth/anthropic-oauth-provider.js +48 -0
  10. package/dist/src/auth/anthropic-oauth-provider.js.map +1 -1
  11. package/dist/src/auth/anthropic-oauth-provider.local-flow.spec.js +2 -0
  12. package/dist/src/auth/anthropic-oauth-provider.local-flow.spec.js.map +1 -1
  13. package/dist/src/auth/anthropic-oauth-provider.refresh.spec.js +2 -0
  14. package/dist/src/auth/anthropic-oauth-provider.refresh.spec.js.map +1 -1
  15. package/dist/src/auth/anthropic-oauth-provider.test.js +2 -0
  16. package/dist/src/auth/anthropic-oauth-provider.test.js.map +1 -1
  17. package/dist/src/auth/codex-oauth-provider.spec.js +2 -0
  18. package/dist/src/auth/codex-oauth-provider.spec.js.map +1 -1
  19. package/dist/src/auth/oauth-manager.bucketFailover.spec.js +2 -0
  20. package/dist/src/auth/oauth-manager.bucketFailover.spec.js.map +1 -1
  21. package/dist/src/auth/oauth-manager.bucketRefresh.spec.js +2 -0
  22. package/dist/src/auth/oauth-manager.bucketRefresh.spec.js.map +1 -1
  23. package/dist/src/auth/oauth-manager.concurrency.spec.js +2 -0
  24. package/dist/src/auth/oauth-manager.concurrency.spec.js.map +1 -1
  25. package/dist/src/auth/oauth-manager.js +66 -10
  26. package/dist/src/auth/oauth-manager.js.map +1 -1
  27. package/dist/src/auth/oauth-manager.logout.spec.js +6 -0
  28. package/dist/src/auth/oauth-manager.logout.spec.js.map +1 -1
  29. package/dist/src/auth/oauth-manager.refresh-race.spec.d.ts +11 -0
  30. package/dist/src/auth/oauth-manager.refresh-race.spec.js +191 -0
  31. package/dist/src/auth/oauth-manager.refresh-race.spec.js.map +1 -0
  32. package/dist/src/auth/oauth-manager.spec.js +6 -0
  33. package/dist/src/auth/oauth-manager.spec.js.map +1 -1
  34. package/dist/src/auth/qwen-oauth-provider.test.js +2 -0
  35. package/dist/src/auth/qwen-oauth-provider.test.js.map +1 -1
  36. package/dist/src/commands/extensions/install.js +21 -5
  37. package/dist/src/commands/extensions/install.js.map +1 -1
  38. package/dist/src/commands/extensions/install.test.js +66 -135
  39. package/dist/src/commands/extensions/install.test.js.map +1 -1
  40. package/dist/src/commands/extensions/link.d.ts +1 -1
  41. package/dist/src/commands/extensions/link.js +6 -4
  42. package/dist/src/commands/extensions/link.js.map +1 -1
  43. package/dist/src/commands/extensions/update.js +1 -1
  44. package/dist/src/commands/extensions/update.js.map +1 -1
  45. package/dist/src/commands/extensions/validate.d.ts +12 -0
  46. package/dist/src/commands/extensions/validate.js +90 -0
  47. package/dist/src/commands/extensions/validate.js.map +1 -0
  48. package/dist/src/commands/extensions/validate.test.js +94 -0
  49. package/dist/src/commands/extensions/validate.test.js.map +1 -0
  50. package/dist/src/commands/extensions.js +2 -0
  51. package/dist/src/commands/extensions.js.map +1 -1
  52. package/dist/src/config/config.js +19 -12
  53. package/dist/src/config/config.js.map +1 -1
  54. package/dist/src/config/config.loadMemory.test.js.map +1 -1
  55. package/dist/src/config/extension.js +8 -2
  56. package/dist/src/config/extension.js.map +1 -1
  57. package/dist/src/config/extensions/update.d.ts +2 -2
  58. package/dist/src/config/extensions/update.js +28 -22
  59. package/dist/src/config/extensions/update.js.map +1 -1
  60. package/dist/src/config/keyBindings.d.ts +3 -0
  61. package/dist/src/config/keyBindings.js +18 -2
  62. package/dist/src/config/keyBindings.js.map +1 -1
  63. package/dist/src/config/keyBindings.test.js +17 -0
  64. package/dist/src/config/keyBindings.test.js.map +1 -1
  65. package/dist/src/config/policy.d.ts +9 -0
  66. package/dist/src/config/policy.js +28 -0
  67. package/dist/src/config/policy.js.map +1 -0
  68. package/dist/src/config/sandboxConfig.d.ts +1 -1
  69. package/dist/src/config/sandboxConfig.js +6 -3
  70. package/dist/src/config/sandboxConfig.js.map +1 -1
  71. package/dist/src/config/settingsSchema.d.ts +95 -16
  72. package/dist/src/config/settingsSchema.js +334 -13
  73. package/dist/src/config/settingsSchema.js.map +1 -1
  74. package/dist/src/config/settingsSchema.test.js +44 -1
  75. package/dist/src/config/settingsSchema.test.js.map +1 -1
  76. package/dist/src/gemini.js +14 -7
  77. package/dist/src/gemini.js.map +1 -1
  78. package/dist/src/gemini.test.js +1 -0
  79. package/dist/src/gemini.test.js.map +1 -1
  80. package/dist/src/generated/git-commit.d.ts +1 -1
  81. package/dist/src/generated/git-commit.js +1 -1
  82. package/dist/src/integration-tests/todo-continuation.integration.test.js +1 -3
  83. package/dist/src/integration-tests/todo-continuation.integration.test.js.map +1 -1
  84. package/dist/src/nonInteractiveCli.d.ts +9 -1
  85. package/dist/src/nonInteractiveCli.js +84 -2
  86. package/dist/src/nonInteractiveCli.js.map +1 -1
  87. package/dist/src/providers/aliases/anthropic.config +9 -0
  88. package/dist/src/providers/aliases/cerebras-code.config +3 -1
  89. package/dist/src/providers/aliases/chutes-ai.config +4 -2
  90. package/dist/src/providers/aliases/codex.config +1 -0
  91. package/dist/src/providers/aliases/fireworks.config +3 -1
  92. package/dist/src/providers/aliases/gemini.config +9 -0
  93. package/dist/src/providers/aliases/kimi.config +1 -0
  94. package/dist/src/providers/aliases/llama-cpp.config +1 -0
  95. package/dist/src/providers/aliases/lm-studio.config +1 -0
  96. package/dist/src/providers/aliases/mistral.config +1 -0
  97. package/dist/src/providers/aliases/openai-responses.config +9 -0
  98. package/dist/src/providers/aliases/openai-vercel.config +9 -0
  99. package/dist/src/providers/aliases/openai.config +9 -0
  100. package/dist/src/providers/aliases/openrouter.config +3 -1
  101. package/dist/src/providers/aliases/qwen.config +1 -0
  102. package/dist/src/providers/aliases/qwenvercel.config +1 -0
  103. package/dist/src/providers/aliases/synthetic.config +1 -0
  104. package/dist/src/providers/aliases/xai.config +3 -1
  105. package/dist/src/providers/providerAliases.builtin-qwen.test.js +3 -1
  106. package/dist/src/providers/providerAliases.builtin-qwen.test.js.map +1 -1
  107. package/dist/src/providers/providerAliases.codex.test.js +3 -1
  108. package/dist/src/providers/providerAliases.codex.test.js.map +1 -1
  109. package/dist/src/providers/providerAliases.d.ts +2 -0
  110. package/dist/src/providers/providerAliases.js.map +1 -1
  111. package/dist/src/providers/providerManagerInstance.js +67 -33
  112. package/dist/src/providers/providerManagerInstance.js.map +1 -1
  113. package/dist/src/providers/providerManagerInstance.oauthRegistration.test.js +2 -0
  114. package/dist/src/providers/providerManagerInstance.oauthRegistration.test.js.map +1 -1
  115. package/dist/src/runtime/__tests__/profileApplication.test.js.map +1 -1
  116. package/dist/src/runtime/__tests__/runtimeIsolation.test.js.map +1 -1
  117. package/dist/src/runtime/runtimeSettings.d.ts +2 -2
  118. package/dist/src/runtime/runtimeSettings.js.map +1 -1
  119. package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
  120. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
  121. package/dist/src/test-utils/render.d.ts +21 -1
  122. package/dist/src/test-utils/render.js +73 -2
  123. package/dist/src/test-utils/render.js.map +1 -1
  124. package/dist/src/test-utils/responsive-testing.d.ts +3 -1
  125. package/dist/src/test-utils/responsive-testing.js +1 -1
  126. package/dist/src/test-utils/responsive-testing.js.map +1 -1
  127. package/dist/src/test-utils/responsive-testing.test.js +18 -12
  128. package/dist/src/test-utils/responsive-testing.test.js.map +1 -1
  129. package/dist/src/ui/App.js +1 -1
  130. package/dist/src/ui/App.js.map +1 -1
  131. package/dist/src/ui/AppContainer.js +44 -41
  132. package/dist/src/ui/AppContainer.js.map +1 -1
  133. package/dist/src/ui/colors.d.ts +1 -0
  134. package/dist/src/ui/colors.js +12 -0
  135. package/dist/src/ui/colors.js.map +1 -1
  136. package/dist/src/ui/commands/__tests__/diagnosticsCommand.bucket.spec.js +2 -0
  137. package/dist/src/ui/commands/__tests__/diagnosticsCommand.bucket.spec.js.map +1 -1
  138. package/dist/src/ui/commands/__tests__/statsCommand.bucket.spec.js +2 -0
  139. package/dist/src/ui/commands/__tests__/statsCommand.bucket.spec.js.map +1 -1
  140. package/dist/src/ui/commands/aboutCommand.js.map +1 -1
  141. package/dist/src/ui/commands/mcpCommand.js +3 -3
  142. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  143. package/dist/src/ui/commands/modelCommand.js +95 -26
  144. package/dist/src/ui/commands/modelCommand.js.map +1 -1
  145. package/dist/src/ui/commands/mouseCommand.test.js +1 -1
  146. package/dist/src/ui/commands/mouseCommand.test.js.map +1 -1
  147. package/dist/src/ui/commands/providerCommand.test.js +2 -0
  148. package/dist/src/ui/commands/providerCommand.test.js.map +1 -1
  149. package/dist/src/ui/commands/test/useSlashCompletion.schema.test.js +1 -1
  150. package/dist/src/ui/commands/test/useSlashCompletion.schema.test.js.map +1 -1
  151. package/dist/src/ui/commands/types.d.ts +24 -2
  152. package/dist/src/ui/commands/types.js.map +1 -1
  153. package/dist/src/ui/components/DialogManager.js +66 -5
  154. package/dist/src/ui/components/DialogManager.js.map +1 -1
  155. package/dist/src/ui/components/FolderTrustDialog.test.js +2 -2
  156. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
  157. package/dist/src/ui/components/InputPrompt.js +1 -10
  158. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  159. package/dist/src/ui/components/ModelDialog.d.ts +25 -0
  160. package/dist/src/ui/components/ModelDialog.js +373 -0
  161. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  162. package/dist/src/ui/components/Notifications.js +36 -2
  163. package/dist/src/ui/components/Notifications.js.map +1 -1
  164. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +1 -2
  165. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -1
  166. package/dist/src/ui/components/ProfileCreateWizard/ModelSelectStep.js +36 -4
  167. package/dist/src/ui/components/ProfileCreateWizard/ModelSelectStep.js.map +1 -1
  168. package/dist/src/ui/components/ProfileInlineEditor.js +2 -3
  169. package/dist/src/ui/components/ProfileInlineEditor.js.map +1 -1
  170. package/dist/src/ui/components/ProfileListDialog.js +1 -1
  171. package/dist/src/ui/components/ProfileListDialog.js.map +1 -1
  172. package/dist/src/ui/components/ProviderDialog.js +1 -1
  173. package/dist/src/ui/components/ProviderDialog.js.map +1 -1
  174. package/dist/src/ui/components/SettingsDialog.js +32 -25
  175. package/dist/src/ui/components/SettingsDialog.js.map +1 -1
  176. package/dist/src/ui/components/SettingsDialog.test.js +528 -340
  177. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
  178. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +2 -2
  179. package/dist/src/ui/components/ShellConfirmationDialog.js +4 -10
  180. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  181. package/dist/src/ui/components/__tests__/LayoutManager.test.js +24 -22
  182. package/dist/src/ui/components/__tests__/LayoutManager.test.js.map +1 -1
  183. package/dist/src/ui/components/messages/InfoMessage.d.ts +2 -2
  184. package/dist/src/ui/components/messages/InfoMessage.js +3 -3
  185. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
  186. package/dist/src/ui/components/messages/OAuthUrlMessage.js +3 -3
  187. package/dist/src/ui/components/messages/OAuthUrlMessage.js.map +1 -1
  188. package/dist/src/ui/components/messages/OAuthUrlMessage.test.js +28 -44
  189. package/dist/src/ui/components/messages/OAuthUrlMessage.test.js.map +1 -1
  190. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +3 -3
  191. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +45 -139
  192. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  193. package/dist/src/ui/components/messages/ToolMessage.js +12 -2
  194. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  195. package/dist/src/ui/components/messages/WarningMessage.js +2 -2
  196. package/dist/src/ui/components/messages/WarningMessage.js.map +1 -1
  197. package/dist/src/ui/components/shared/BaseSelectionList.test.js +1 -2
  198. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -1
  199. package/dist/src/ui/components/views/ExtensionsList.js +3 -0
  200. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -1
  201. package/dist/src/ui/components/views/ExtensionsList.test.js +4 -0
  202. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -1
  203. package/dist/src/ui/containers/SessionController.test.js.map +1 -1
  204. package/dist/src/ui/contexts/KeypressContext.d.ts +6 -21
  205. package/dist/src/ui/contexts/KeypressContext.js +601 -813
  206. package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
  207. package/dist/src/ui/contexts/KeypressContext.test.js +231 -665
  208. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
  209. package/dist/src/ui/contexts/MouseContext.d.ts +5 -3
  210. package/dist/src/ui/contexts/MouseContext.js +20 -6
  211. package/dist/src/ui/contexts/MouseContext.js.map +1 -1
  212. package/dist/src/ui/contexts/MouseContext.test.js +2 -1
  213. package/dist/src/ui/contexts/MouseContext.test.js.map +1 -1
  214. package/dist/src/ui/contexts/ScrollProvider.test.js +1 -2
  215. package/dist/src/ui/contexts/ScrollProvider.test.js.map +1 -1
  216. package/dist/src/ui/contexts/UIActionsContext.d.ts +11 -3
  217. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
  218. package/dist/src/ui/contexts/UIStateContext.d.ts +17 -3
  219. package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
  220. package/dist/src/ui/hooks/atCommandProcessor.js +27 -29
  221. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  222. package/dist/src/ui/hooks/atCommandProcessor.test.js +2 -1
  223. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
  224. package/dist/src/ui/hooks/index.d.ts +0 -1
  225. package/dist/src/ui/hooks/index.js +0 -1
  226. package/dist/src/ui/hooks/index.js.map +1 -1
  227. package/dist/src/ui/hooks/shellCommandProcessor.test.js +2 -1
  228. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
  229. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +2 -2
  230. package/dist/src/ui/hooks/slashCommandProcessor.js +6 -3
  231. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  232. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +2 -1
  233. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
  234. package/dist/src/ui/hooks/useEditorSettings.test.js +1 -2
  235. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -1
  236. package/dist/src/ui/hooks/useExtensionUpdates.test.js +13 -78
  237. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -1
  238. package/dist/src/ui/hooks/useFlickerDetector.test.js +1 -1
  239. package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -1
  240. package/dist/src/ui/hooks/useGeminiStream.dedup.test.js +2 -1
  241. package/dist/src/ui/hooks/useGeminiStream.dedup.test.js.map +1 -1
  242. package/dist/src/ui/hooks/useGeminiStream.integration.test.js +2 -2
  243. package/dist/src/ui/hooks/useGeminiStream.integration.test.js.map +1 -1
  244. package/dist/src/ui/hooks/useGeminiStream.js +4 -2
  245. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  246. package/dist/src/ui/hooks/useGeminiStream.subagent.spec.js +2 -2
  247. package/dist/src/ui/hooks/useGeminiStream.subagent.spec.js.map +1 -1
  248. package/dist/src/ui/hooks/useGitBranchName.test.js +1 -1
  249. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
  250. package/dist/src/ui/hooks/useHistoryManager.test.js +2 -1
  251. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -1
  252. package/dist/src/ui/hooks/useInputHistory.test.js +2 -1
  253. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -1
  254. package/dist/src/ui/hooks/useInputHistoryStore.test.js +2 -1
  255. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -1
  256. package/dist/src/ui/hooks/useKeypress.d.ts +1 -3
  257. package/dist/src/ui/hooks/useKeypress.js +1 -2
  258. package/dist/src/ui/hooks/useKeypress.js.map +1 -1
  259. package/dist/src/ui/hooks/useKeypress.test.d.ts +1 -1
  260. package/dist/src/ui/hooks/useKeypress.test.js +135 -40
  261. package/dist/src/ui/hooks/useKeypress.test.js.map +1 -1
  262. package/dist/src/ui/hooks/useLoadingIndicator.test.js +2 -1
  263. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
  264. package/dist/src/ui/hooks/useMouse.d.ts +9 -1
  265. package/dist/src/ui/hooks/useMouse.js +7 -0
  266. package/dist/src/ui/hooks/useMouse.js.map +1 -1
  267. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -1
  268. package/dist/src/ui/hooks/usePrivacySettings.test.js +1 -1
  269. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -1
  270. package/dist/src/ui/hooks/useResponsive.test.js +1 -1
  271. package/dist/src/ui/hooks/useResponsive.test.js.map +1 -1
  272. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +2 -1
  273. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -1
  274. package/dist/src/ui/hooks/useSelectionList.js +4 -3
  275. package/dist/src/ui/hooks/useSelectionList.js.map +1 -1
  276. package/dist/src/ui/hooks/useSelectionList.test.js +26 -4
  277. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -1
  278. package/dist/src/ui/hooks/useShellHistory.test.js +11 -5
  279. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
  280. package/dist/src/ui/hooks/useSlashCompletion.test.js +2 -1
  281. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
  282. package/dist/src/ui/hooks/useStableCallback.test.js +1 -1
  283. package/dist/src/ui/hooks/useStableCallback.test.js.map +1 -1
  284. package/dist/src/ui/hooks/useStaticHistoryRefresh.test.js +1 -1
  285. package/dist/src/ui/hooks/useStaticHistoryRefresh.test.js.map +1 -1
  286. package/dist/src/ui/hooks/useTodoContinuation.spec.js +2 -1
  287. package/dist/src/ui/hooks/useTodoContinuation.spec.js.map +1 -1
  288. package/dist/src/ui/hooks/useToolScheduler.test.js +11 -5
  289. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
  290. package/dist/src/ui/keyMatchers.test.js +22 -0
  291. package/dist/src/ui/keyMatchers.test.js.map +1 -1
  292. package/dist/src/ui/layouts/DefaultAppLayout.js +1 -1
  293. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -1
  294. package/dist/src/ui/privacy/MultiProviderPrivacyNotice.test.js +1 -1
  295. package/dist/src/ui/privacy/MultiProviderPrivacyNotice.test.js.map +1 -1
  296. package/dist/src/ui/reducers/appReducer.d.ts +2 -3
  297. package/dist/src/ui/reducers/appReducer.js +0 -1
  298. package/dist/src/ui/reducers/appReducer.js.map +1 -1
  299. package/dist/src/ui/reducers/appReducer.test.js +0 -4
  300. package/dist/src/ui/reducers/appReducer.test.js.map +1 -1
  301. package/dist/src/ui/state/extensions.d.ts +1 -0
  302. package/dist/src/ui/state/extensions.js +1 -0
  303. package/dist/src/ui/state/extensions.js.map +1 -1
  304. package/dist/src/ui/themes/ansi-light.js +1 -0
  305. package/dist/src/ui/themes/ansi-light.js.map +1 -1
  306. package/dist/src/ui/themes/ansi.js +1 -0
  307. package/dist/src/ui/themes/ansi.js.map +1 -1
  308. package/dist/src/ui/themes/atom-one-dark.js +2 -0
  309. package/dist/src/ui/themes/atom-one-dark.js.map +1 -1
  310. package/dist/src/ui/themes/ayu-light.js +2 -0
  311. package/dist/src/ui/themes/ayu-light.js.map +1 -1
  312. package/dist/src/ui/themes/ayu.js +2 -0
  313. package/dist/src/ui/themes/ayu.js.map +1 -1
  314. package/dist/src/ui/themes/color-utils.d.ts +1 -0
  315. package/dist/src/ui/themes/color-utils.js +6 -0
  316. package/dist/src/ui/themes/color-utils.js.map +1 -1
  317. package/dist/src/ui/themes/color-utils.test.js +13 -1
  318. package/dist/src/ui/themes/color-utils.test.js.map +1 -1
  319. package/dist/src/ui/themes/dracula.js +2 -0
  320. package/dist/src/ui/themes/dracula.js.map +1 -1
  321. package/dist/src/ui/themes/github-dark.js +2 -0
  322. package/dist/src/ui/themes/github-dark.js.map +1 -1
  323. package/dist/src/ui/themes/github-light.js +2 -0
  324. package/dist/src/ui/themes/github-light.js.map +1 -1
  325. package/dist/src/ui/themes/googlecode.js +2 -0
  326. package/dist/src/ui/themes/googlecode.js.map +1 -1
  327. package/dist/src/ui/themes/green-screen.js +1 -0
  328. package/dist/src/ui/themes/green-screen.js.map +1 -1
  329. package/dist/src/ui/themes/no-color.js +33 -1
  330. package/dist/src/ui/themes/no-color.js.map +1 -1
  331. package/dist/src/ui/themes/semantic-resolver.js +2 -0
  332. package/dist/src/ui/themes/semantic-resolver.js.map +1 -1
  333. package/dist/src/ui/themes/semantic-resolver.test.js +14 -0
  334. package/dist/src/ui/themes/semantic-resolver.test.js.map +1 -1
  335. package/dist/src/ui/themes/semantic-tokens.d.ts +2 -0
  336. package/dist/src/ui/themes/semantic-tokens.js +6 -0
  337. package/dist/src/ui/themes/semantic-tokens.js.map +1 -1
  338. package/dist/src/ui/themes/semantic-tokens.test.js +5 -0
  339. package/dist/src/ui/themes/semantic-tokens.test.js.map +1 -1
  340. package/dist/src/ui/themes/shades-of-purple.js +2 -0
  341. package/dist/src/ui/themes/shades-of-purple.js.map +1 -1
  342. package/dist/src/ui/themes/theme-manager.test.js +3 -0
  343. package/dist/src/ui/themes/theme-manager.test.js.map +1 -1
  344. package/dist/src/ui/themes/theme.d.ts +77 -2
  345. package/dist/src/ui/themes/theme.js +62 -4
  346. package/dist/src/ui/themes/theme.js.map +1 -1
  347. package/dist/src/ui/themes/xcode.js +2 -0
  348. package/dist/src/ui/themes/xcode.js.map +1 -1
  349. package/dist/src/ui/utils/CodeColorizer.js +1 -1
  350. package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
  351. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +2 -1
  352. package/dist/src/ui/utils/InlineMarkdownRenderer.js +19 -18
  353. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
  354. package/dist/src/ui/utils/MarkdownDisplay.d.ts +1 -1
  355. package/dist/src/ui/utils/MarkdownDisplay.js +16 -15
  356. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  357. package/dist/src/ui/utils/MarkdownDisplay.test.js +1 -1
  358. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
  359. package/dist/src/ui/utils/input.d.ts +6 -0
  360. package/dist/src/ui/utils/input.js +28 -4
  361. package/dist/src/ui/utils/input.js.map +1 -1
  362. package/dist/src/ui/utils/mouse.d.ts +5 -10
  363. package/dist/src/ui/utils/mouse.js +131 -119
  364. package/dist/src/ui/utils/mouse.js.map +1 -1
  365. package/dist/src/ui/utils/mouse.test.js +9 -11
  366. package/dist/src/ui/utils/mouse.test.js.map +1 -1
  367. package/dist/src/ui/utils/terminalContract.test.js +2 -2
  368. package/dist/src/ui/utils/terminalContract.test.js.map +1 -1
  369. package/dist/src/ui/utils/updateCheck.js +6 -2
  370. package/dist/src/ui/utils/updateCheck.js.map +1 -1
  371. package/dist/src/ui/utils/updateCheck.test.js +5 -1
  372. package/dist/src/ui/utils/updateCheck.test.js.map +1 -1
  373. package/dist/src/utils/commentJson.js +2 -2
  374. package/dist/src/utils/commentJson.js.map +1 -1
  375. package/dist/src/utils/commentJson.test.js +7 -6
  376. package/dist/src/utils/commentJson.test.js.map +1 -1
  377. package/dist/src/utils/events.d.ts +35 -3
  378. package/dist/src/utils/events.js +5 -1
  379. package/dist/src/utils/events.js.map +1 -1
  380. package/dist/src/utils/version.js +7 -3
  381. package/dist/src/utils/version.js.map +1 -1
  382. package/dist/src/zed-integration/acp.d.ts +1 -1
  383. package/dist/src/zed-integration/acp.js +2 -2
  384. package/dist/src/zed-integration/acp.js.map +1 -1
  385. package/dist/src/zed-integration/schema.d.ts +46 -46
  386. package/dist/src/zed-integration/zedIntegration.js +12 -1
  387. package/dist/src/zed-integration/zedIntegration.js.map +1 -1
  388. package/dist/tsconfig.build.tsbuildinfo +1 -1
  389. package/package.json +8 -9
  390. package/dist/src/ui/components/ProviderModelDialog.d.ts +0 -15
  391. package/dist/src/ui/components/ProviderModelDialog.js +0 -182
  392. package/dist/src/ui/components/ProviderModelDialog.js.map +0 -1
  393. package/dist/src/ui/components/ProviderModelDialog.responsive.test.js +0 -252
  394. package/dist/src/ui/components/ProviderModelDialog.responsive.test.js.map +0 -1
  395. package/dist/src/ui/components/ProviderModelDialog.test.d.ts +0 -6
  396. package/dist/src/ui/components/ProviderModelDialog.test.js +0 -197
  397. package/dist/src/ui/components/ProviderModelDialog.test.js.map +0 -1
  398. package/dist/src/ui/hooks/useProviderModelDialog.d.ts +0 -26
  399. package/dist/src/ui/hooks/useProviderModelDialog.js +0 -61
  400. package/dist/src/ui/hooks/useProviderModelDialog.js.map +0 -1
  401. package/dist/src/ui/oauthUrlMessage.test.d.ts +0 -6
  402. package/dist/src/ui/oauthUrlMessage.test.js +0 -19
  403. package/dist/src/ui/oauthUrlMessage.test.js.map +0 -1
  404. package/dist/src/utils/package.d.ts +0 -12
  405. package/dist/src/utils/package.js +0 -24
  406. package/dist/src/utils/package.js.map +0 -1
  407. /package/dist/src/{ui/components/ProviderModelDialog.responsive.test.d.ts → commands/extensions/validate.test.d.ts} +0 -0
@@ -3,7 +3,7 @@
3
3
  * Copyright 2025 Vybestack LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { MCPServerConfig, BugCommandSettings, TelemetrySettings, AuthType, ChatCompressionSettings } from '@vybestack/llxprt-code-core';
6
+ import { MCPServerConfig, BugCommandSettings, TelemetrySettings, AuthType, ChatCompressionSettings, HookDefinition, HookEventName } from '@vybestack/llxprt-code-core';
7
7
  import { CustomTheme } from '../ui/themes/theme.js';
8
8
  import type { SessionRetentionSettings } from './settings.js';
9
9
  export type SettingsType = 'boolean' | 'string' | 'number' | 'array' | 'object' | 'enum';
@@ -18,6 +18,18 @@ export interface SettingEnumOption {
18
18
  value: string | number;
19
19
  label: string;
20
20
  }
21
+ export interface SettingCollectionDefinition {
22
+ type: SettingsType;
23
+ description?: string;
24
+ properties?: SettingsSchema;
25
+ /** Enum type options */
26
+ options?: readonly SettingEnumOption[];
27
+ /**
28
+ * Optional reference identifier for generators that emit a `$ref`.
29
+ * For example, a JSON schema generator can use this to point to a shared definition.
30
+ */
31
+ ref?: string;
32
+ }
21
33
  export declare enum MergeStrategy {
22
34
  REPLACE = "replace",
23
35
  CONCAT = "concat",
@@ -39,6 +51,18 @@ export interface SettingDefinition {
39
51
  mergeStrategy?: MergeStrategy;
40
52
  /** Enum type options */
41
53
  options?: readonly SettingEnumOption[];
54
+ /**
55
+ * For collection types (e.g. arrays), describes the shape of each item.
56
+ */
57
+ items?: SettingCollectionDefinition;
58
+ /**
59
+ * For map-like objects without explicit `properties`, describes the shape of the values.
60
+ */
61
+ additionalProperties?: SettingCollectionDefinition;
62
+ /**
63
+ * Optional reference identifier for generators that emit a `$ref`.
64
+ */
65
+ ref?: string;
42
66
  subSettings?: SettingsSchema;
43
67
  }
44
68
  export interface SettingsSchema {
@@ -296,6 +320,11 @@ export declare const SETTINGS_SCHEMA: {
296
320
  readonly default: Record<string, MCPServerConfig>;
297
321
  readonly description: "Configuration for MCP servers.";
298
322
  readonly showInDialog: false;
323
+ readonly mergeStrategy: MergeStrategy.SHALLOW_MERGE;
324
+ readonly additionalProperties: {
325
+ readonly type: "object";
326
+ readonly ref: "MCPServerConfig";
327
+ };
299
328
  };
300
329
  readonly sessionRetention: {
301
330
  readonly type: "object";
@@ -358,6 +387,10 @@ export declare const SETTINGS_SCHEMA: {
358
387
  readonly default: Record<string, CustomTheme>;
359
388
  readonly description: "Custom theme definitions.";
360
389
  readonly showInDialog: false;
390
+ readonly additionalProperties: {
391
+ readonly type: "object";
392
+ readonly ref: "CustomTheme";
393
+ };
361
394
  };
362
395
  readonly hideWindowTitle: {
363
396
  readonly type: "boolean";
@@ -616,8 +649,9 @@ export declare const SETTINGS_SCHEMA: {
616
649
  readonly label: "Context File Name";
617
650
  readonly category: "UI";
618
651
  readonly requiresRestart: false;
619
- readonly default: string | undefined;
620
- readonly description: "The name of the context file to use.";
652
+ readonly default: string | string[] | undefined;
653
+ readonly ref: "StringOrStringArray";
654
+ readonly description: "The name of the context file or files to load into memory. Accepts either a single string or an array of strings.";
621
655
  readonly showInDialog: false;
622
656
  };
623
657
  readonly usageStatisticsEnabled: {
@@ -748,6 +782,7 @@ export declare const SETTINGS_SCHEMA: {
748
782
  readonly default: TelemetrySettings | undefined;
749
783
  readonly description: "Telemetry configuration.";
750
784
  readonly showInDialog: false;
785
+ readonly ref: "TelemetrySettings";
751
786
  };
752
787
  readonly bugCommand: {
753
788
  readonly type: "object";
@@ -757,6 +792,7 @@ export declare const SETTINGS_SCHEMA: {
757
792
  readonly default: BugCommandSettings | undefined;
758
793
  readonly description: "Configuration for the bug report command.";
759
794
  readonly showInDialog: false;
795
+ readonly ref: "BugCommandSettings";
760
796
  };
761
797
  readonly summarizeToolOutput: {
762
798
  readonly type: "object";
@@ -766,8 +802,13 @@ export declare const SETTINGS_SCHEMA: {
766
802
  readonly default: Record<string, {
767
803
  tokenBudget?: number;
768
804
  }> | undefined;
769
- readonly description: "Settings for summarizing tool output.";
805
+ readonly description: string;
770
806
  readonly showInDialog: false;
807
+ readonly additionalProperties: {
808
+ readonly type: "object";
809
+ readonly description: "Per-tool summarization settings with an optional tokenBudget.";
810
+ readonly ref: "SummarizeToolOutputSettings";
811
+ };
771
812
  };
772
813
  readonly dnsResolutionOrder: {
773
814
  readonly type: "string";
@@ -788,12 +829,13 @@ export declare const SETTINGS_SCHEMA: {
788
829
  readonly showInDialog: false;
789
830
  readonly properties: {
790
831
  readonly sandbox: {
791
- readonly type: "object";
832
+ readonly type: "string";
792
833
  readonly label: "Sandbox";
793
834
  readonly category: "Tools";
794
835
  readonly requiresRestart: true;
795
836
  readonly default: boolean | string | undefined;
796
- readonly description: "Sandbox execution environment (can be a boolean or a path string).";
837
+ readonly ref: "BooleanOrString";
838
+ readonly description: string;
797
839
  readonly showInDialog: false;
798
840
  };
799
841
  readonly autoAccept: {
@@ -895,6 +937,15 @@ export declare const SETTINGS_SCHEMA: {
895
937
  readonly description: "Absolute path to a TOML policy file that augments the built-in policy rules.";
896
938
  readonly showInDialog: false;
897
939
  };
940
+ readonly enableHooks: {
941
+ readonly type: "boolean";
942
+ readonly label: "Enable Hooks System";
943
+ readonly category: "Advanced";
944
+ readonly requiresRestart: true;
945
+ readonly default: false;
946
+ readonly description: "Enable the hooks system for intercepting and customizing LLxprt CLI behavior. When enabled, hooks configured in settings will execute at appropriate lifecycle events (BeforeTool, AfterTool, BeforeModel, etc.). Requires MessageBus integration.";
947
+ readonly showInDialog: false;
948
+ };
898
949
  };
899
950
  };
900
951
  readonly mcp: {
@@ -1085,14 +1136,25 @@ export declare const SETTINGS_SCHEMA: {
1085
1136
  readonly description: "Chat compression settings.";
1086
1137
  readonly showInDialog: false;
1087
1138
  };
1088
- readonly showLineNumbers: {
1089
- readonly type: "boolean";
1090
- readonly label: "Show Line Numbers";
1091
- readonly category: "General";
1092
- readonly requiresRestart: false;
1093
- readonly default: false;
1094
- readonly description: "Show line numbers in the chat.";
1095
- readonly showInDialog: true;
1139
+ readonly experimental: {
1140
+ readonly type: "object";
1141
+ readonly label: "Experimental";
1142
+ readonly category: "Experimental";
1143
+ readonly requiresRestart: true;
1144
+ readonly default: {};
1145
+ readonly description: "Experimental features.";
1146
+ readonly showInDialog: false;
1147
+ readonly properties: {
1148
+ readonly extensionReloading: {
1149
+ readonly type: "boolean";
1150
+ readonly label: "Extension Reloading";
1151
+ readonly category: "Experimental";
1152
+ readonly requiresRestart: true;
1153
+ readonly default: false;
1154
+ readonly description: "Enables extension loading/unloading within the CLI session.";
1155
+ readonly showInDialog: false;
1156
+ };
1157
+ };
1096
1158
  };
1097
1159
  readonly defaultProfile: {
1098
1160
  readonly type: "string";
@@ -1375,8 +1437,11 @@ export declare const SETTINGS_SCHEMA: {
1375
1437
  readonly category: "UI";
1376
1438
  readonly requiresRestart: false;
1377
1439
  readonly default: string[];
1378
- readonly description: "Custom witty phrases to display during loading.";
1440
+ readonly description: string;
1379
1441
  readonly showInDialog: false;
1442
+ readonly items: {
1443
+ readonly type: "string";
1444
+ };
1380
1445
  };
1381
1446
  readonly wittyPhraseStyle: {
1382
1447
  readonly type: "enum";
@@ -1403,13 +1468,27 @@ export declare const SETTINGS_SCHEMA: {
1403
1468
  label: string;
1404
1469
  })[];
1405
1470
  };
1471
+ readonly hooks: {
1472
+ readonly type: "object";
1473
+ readonly label: "Hooks";
1474
+ readonly category: "Advanced";
1475
+ readonly requiresRestart: false;
1476
+ readonly default: { [K in HookEventName]?: HookDefinition[]; };
1477
+ readonly description: "Hook configurations for intercepting and customizing agent behavior.";
1478
+ readonly showInDialog: false;
1479
+ readonly mergeStrategy: MergeStrategy.SHALLOW_MERGE;
1480
+ };
1406
1481
  };
1482
+ export type SettingsSchemaType = typeof SETTINGS_SCHEMA;
1483
+ export type SettingsJsonSchemaDefinition = Record<string, unknown>;
1484
+ export declare const SETTINGS_SCHEMA_DEFINITIONS: Record<string, SettingsJsonSchemaDefinition>;
1485
+ export declare function getSettingsSchema(): SettingsSchemaType;
1407
1486
  type InferSettings<T extends SettingsSchema> = {
1408
1487
  -readonly [K in keyof T]?: T[K] extends {
1409
1488
  properties: SettingsSchema;
1410
1489
  } ? InferSettings<T[K]['properties']> : T[K]['type'] extends 'enum' ? T[K]['options'] extends readonly SettingEnumOption[] ? T[K]['options'][number]['value'] : T[K]['default'] : T[K]['default'] extends boolean ? boolean : T[K]['default'];
1411
1490
  };
1412
- export type Settings = InferSettings<typeof SETTINGS_SCHEMA>;
1491
+ export type Settings = InferSettings<SettingsSchemaType>;
1413
1492
  export interface FooterSettings {
1414
1493
  hideCWD?: boolean;
1415
1494
  hideSandboxStatus?: boolean;
@@ -13,6 +13,16 @@ export const TOGGLE_TYPES = new Set([
13
13
  'boolean',
14
14
  'enum',
15
15
  ]);
16
+ function oneLine(strings, ...values) {
17
+ let result = '';
18
+ for (let i = 0; i < strings.length; i++) {
19
+ result += strings[i];
20
+ if (i < values.length) {
21
+ result += String(values[i]);
22
+ }
23
+ }
24
+ return result.replace(/\s+/g, ' ').trim();
25
+ }
16
26
  export var MergeStrategy;
17
27
  (function (MergeStrategy) {
18
28
  // Replace the old value with the new value. This is the default.
@@ -276,6 +286,11 @@ export const SETTINGS_SCHEMA = {
276
286
  default: {},
277
287
  description: 'Configuration for MCP servers.',
278
288
  showInDialog: false,
289
+ mergeStrategy: MergeStrategy.SHALLOW_MERGE,
290
+ additionalProperties: {
291
+ type: 'object',
292
+ ref: 'MCPServerConfig',
293
+ },
279
294
  },
280
295
  sessionRetention: {
281
296
  type: 'object',
@@ -335,6 +350,10 @@ export const SETTINGS_SCHEMA = {
335
350
  default: {},
336
351
  description: 'Custom theme definitions.',
337
352
  showInDialog: false,
353
+ additionalProperties: {
354
+ type: 'object',
355
+ ref: 'CustomTheme',
356
+ },
338
357
  },
339
358
  hideWindowTitle: {
340
359
  type: 'boolean',
@@ -585,7 +604,8 @@ export const SETTINGS_SCHEMA = {
585
604
  category: 'UI',
586
605
  requiresRestart: false,
587
606
  default: undefined,
588
- description: 'The name of the context file to use.',
607
+ ref: 'StringOrStringArray',
608
+ description: 'The name of the context file or files to load into memory. Accepts either a single string or an array of strings.',
589
609
  showInDialog: false,
590
610
  },
591
611
  usageStatisticsEnabled: {
@@ -717,6 +737,7 @@ export const SETTINGS_SCHEMA = {
717
737
  default: undefined,
718
738
  description: 'Telemetry configuration.',
719
739
  showInDialog: false,
740
+ ref: 'TelemetrySettings',
720
741
  },
721
742
  bugCommand: {
722
743
  type: 'object',
@@ -726,6 +747,7 @@ export const SETTINGS_SCHEMA = {
726
747
  default: undefined,
727
748
  description: 'Configuration for the bug report command.',
728
749
  showInDialog: false,
750
+ ref: 'BugCommandSettings',
729
751
  },
730
752
  summarizeToolOutput: {
731
753
  type: 'object',
@@ -733,8 +755,17 @@ export const SETTINGS_SCHEMA = {
733
755
  category: 'Advanced',
734
756
  requiresRestart: false,
735
757
  default: undefined,
736
- description: 'Settings for summarizing tool output.',
758
+ description: oneLine `
759
+ Enables or disables summarization of tool output.
760
+ Configure per-tool token budgets (for example {"run_shell_command": {"tokenBudget": 2000}}).
761
+ Currently only the run_shell_command tool supports summarization.
762
+ `,
737
763
  showInDialog: false,
764
+ additionalProperties: {
765
+ type: 'object',
766
+ description: 'Per-tool summarization settings with an optional tokenBudget.',
767
+ ref: 'SummarizeToolOutputSettings',
768
+ },
738
769
  },
739
770
  dnsResolutionOrder: {
740
771
  type: 'string',
@@ -755,12 +786,16 @@ export const SETTINGS_SCHEMA = {
755
786
  showInDialog: false,
756
787
  properties: {
757
788
  sandbox: {
758
- type: 'object',
789
+ type: 'string',
759
790
  label: 'Sandbox',
760
791
  category: 'Tools',
761
792
  requiresRestart: true,
762
793
  default: undefined,
763
- description: 'Sandbox execution environment (can be a boolean or a path string).',
794
+ ref: 'BooleanOrString',
795
+ description: oneLine `
796
+ Sandbox execution environment.
797
+ Set to a boolean to enable or disable the sandbox, or provide a string path to a sandbox profile.
798
+ `,
764
799
  showInDialog: false,
765
800
  },
766
801
  autoAccept: {
@@ -862,6 +897,15 @@ export const SETTINGS_SCHEMA = {
862
897
  description: 'Absolute path to a TOML policy file that augments the built-in policy rules.',
863
898
  showInDialog: false,
864
899
  },
900
+ enableHooks: {
901
+ type: 'boolean',
902
+ label: 'Enable Hooks System',
903
+ category: 'Advanced',
904
+ requiresRestart: true,
905
+ default: false,
906
+ description: 'Enable the hooks system for intercepting and customizing LLxprt CLI behavior. When enabled, hooks configured in settings will execute at appropriate lifecycle events (BeforeTool, AfterTool, BeforeModel, etc.). Requires MessageBus integration.',
907
+ showInDialog: false,
908
+ },
865
909
  },
866
910
  },
867
911
  mcp: {
@@ -1052,14 +1096,25 @@ export const SETTINGS_SCHEMA = {
1052
1096
  description: 'Chat compression settings.',
1053
1097
  showInDialog: false,
1054
1098
  },
1055
- showLineNumbers: {
1056
- type: 'boolean',
1057
- label: 'Show Line Numbers',
1058
- category: 'General',
1059
- requiresRestart: false,
1060
- default: false,
1061
- description: 'Show line numbers in the chat.',
1062
- showInDialog: true,
1099
+ experimental: {
1100
+ type: 'object',
1101
+ label: 'Experimental',
1102
+ category: 'Experimental',
1103
+ requiresRestart: true,
1104
+ default: {},
1105
+ description: 'Experimental features.',
1106
+ showInDialog: false,
1107
+ properties: {
1108
+ extensionReloading: {
1109
+ type: 'boolean',
1110
+ label: 'Extension Reloading',
1111
+ category: 'Experimental',
1112
+ requiresRestart: true,
1113
+ default: false,
1114
+ description: 'Enables extension loading/unloading within the CLI session.',
1115
+ showInDialog: false,
1116
+ },
1117
+ },
1063
1118
  },
1064
1119
  // LLxprt-specific provider settings
1065
1120
  defaultProfile: {
@@ -1311,8 +1366,12 @@ export const SETTINGS_SCHEMA = {
1311
1366
  category: 'UI',
1312
1367
  requiresRestart: false,
1313
1368
  default: [],
1314
- description: 'Custom witty phrases to display during loading.',
1369
+ description: oneLine `
1370
+ Custom witty phrases to display during loading.
1371
+ When provided, the CLI cycles through these instead of the defaults.
1372
+ `,
1315
1373
  showInDialog: false,
1374
+ items: { type: 'string' },
1316
1375
  },
1317
1376
  wittyPhraseStyle: {
1318
1377
  type: 'enum',
@@ -1330,5 +1389,267 @@ export const SETTINGS_SCHEMA = {
1330
1389
  { value: 'custom', label: 'Custom Phrases Only' },
1331
1390
  ],
1332
1391
  },
1392
+ hooks: {
1393
+ type: 'object',
1394
+ label: 'Hooks',
1395
+ category: 'Advanced',
1396
+ requiresRestart: false,
1397
+ default: {},
1398
+ description: 'Hook configurations for intercepting and customizing agent behavior.',
1399
+ showInDialog: false,
1400
+ mergeStrategy: MergeStrategy.SHALLOW_MERGE,
1401
+ },
1402
+ };
1403
+ export const SETTINGS_SCHEMA_DEFINITIONS = {
1404
+ MCPServerConfig: {
1405
+ type: 'object',
1406
+ description: 'Definition of a Model Context Protocol (MCP) server configuration.',
1407
+ additionalProperties: false,
1408
+ properties: {
1409
+ command: {
1410
+ type: 'string',
1411
+ description: 'Executable invoked for stdio transport.',
1412
+ },
1413
+ args: {
1414
+ type: 'array',
1415
+ description: 'Command-line arguments for the stdio transport command.',
1416
+ items: { type: 'string' },
1417
+ },
1418
+ env: {
1419
+ type: 'object',
1420
+ description: 'Environment variables to set for the server process.',
1421
+ additionalProperties: { type: 'string' },
1422
+ },
1423
+ cwd: {
1424
+ type: 'string',
1425
+ description: 'Working directory for the server process.',
1426
+ },
1427
+ url: {
1428
+ type: 'string',
1429
+ description: 'SSE transport URL.',
1430
+ },
1431
+ httpUrl: {
1432
+ type: 'string',
1433
+ description: 'Streaming HTTP transport URL.',
1434
+ },
1435
+ headers: {
1436
+ type: 'object',
1437
+ description: 'Additional HTTP headers sent to the server.',
1438
+ additionalProperties: { type: 'string' },
1439
+ },
1440
+ tcp: {
1441
+ type: 'string',
1442
+ description: 'TCP address for websocket transport.',
1443
+ },
1444
+ timeout: {
1445
+ type: 'number',
1446
+ description: 'Timeout in milliseconds for MCP requests.',
1447
+ },
1448
+ trust: {
1449
+ type: 'boolean',
1450
+ description: 'Marks the server as trusted. Trusted servers may gain additional capabilities.',
1451
+ },
1452
+ description: {
1453
+ type: 'string',
1454
+ description: 'Human-readable description of the server.',
1455
+ },
1456
+ includeTools: {
1457
+ type: 'array',
1458
+ description: 'Subset of tools that should be enabled for this server. When omitted all tools are enabled.',
1459
+ items: { type: 'string' },
1460
+ },
1461
+ excludeTools: {
1462
+ type: 'array',
1463
+ description: 'Tools that should be disabled for this server even if exposed.',
1464
+ items: { type: 'string' },
1465
+ },
1466
+ extension: {
1467
+ type: 'object',
1468
+ description: 'Metadata describing the LLxprt Code extension that owns this MCP server.',
1469
+ additionalProperties: { type: ['string', 'boolean', 'number'] },
1470
+ },
1471
+ oauth: {
1472
+ type: 'object',
1473
+ description: 'OAuth configuration for authenticating with the server.',
1474
+ additionalProperties: true,
1475
+ },
1476
+ authProviderType: {
1477
+ type: 'string',
1478
+ description: 'Authentication provider used for acquiring credentials (for example `dynamic_discovery`).',
1479
+ enum: [
1480
+ 'dynamic_discovery',
1481
+ 'google_credentials',
1482
+ 'service_account_impersonation',
1483
+ ],
1484
+ },
1485
+ targetAudience: {
1486
+ type: 'string',
1487
+ description: 'OAuth target audience (CLIENT_ID.apps.googleusercontent.com).',
1488
+ },
1489
+ targetServiceAccount: {
1490
+ type: 'string',
1491
+ description: 'Service account email to impersonate (name@project.iam.gserviceaccount.com).',
1492
+ },
1493
+ },
1494
+ },
1495
+ TelemetrySettings: {
1496
+ type: 'object',
1497
+ description: 'Telemetry configuration for LLxprt Code.',
1498
+ additionalProperties: false,
1499
+ properties: {
1500
+ enabled: {
1501
+ type: 'boolean',
1502
+ description: 'Enables telemetry emission.',
1503
+ },
1504
+ target: {
1505
+ type: 'string',
1506
+ description: 'Telemetry destination (for example `stderr`, `stdout`, or `otlp`).',
1507
+ },
1508
+ otlpEndpoint: {
1509
+ type: 'string',
1510
+ description: 'Endpoint for OTLP exporters.',
1511
+ },
1512
+ otlpProtocol: {
1513
+ type: 'string',
1514
+ description: 'Protocol for OTLP exporters.',
1515
+ enum: ['grpc', 'http'],
1516
+ },
1517
+ logPrompts: {
1518
+ type: 'boolean',
1519
+ description: 'Whether prompts are logged in telemetry payloads.',
1520
+ },
1521
+ outfile: {
1522
+ type: 'string',
1523
+ description: 'File path for writing telemetry output.',
1524
+ },
1525
+ useCollector: {
1526
+ type: 'boolean',
1527
+ description: 'Whether to forward telemetry to an OTLP collector.',
1528
+ },
1529
+ },
1530
+ },
1531
+ BugCommandSettings: {
1532
+ type: 'object',
1533
+ description: 'Configuration for the bug report helper command.',
1534
+ additionalProperties: false,
1535
+ properties: {
1536
+ urlTemplate: {
1537
+ type: 'string',
1538
+ description: 'Template used to open a bug report URL. Variables in the template are populated at runtime.',
1539
+ },
1540
+ },
1541
+ required: ['urlTemplate'],
1542
+ },
1543
+ SummarizeToolOutputSettings: {
1544
+ type: 'object',
1545
+ description: 'Controls summarization behavior for individual tools. All properties are optional.',
1546
+ additionalProperties: false,
1547
+ properties: {
1548
+ tokenBudget: {
1549
+ type: 'number',
1550
+ description: 'Maximum number of tokens used when summarizing tool output.',
1551
+ },
1552
+ },
1553
+ },
1554
+ CustomTheme: {
1555
+ type: 'object',
1556
+ description: 'Custom theme definition used for styling LLxprt Code output. Colors are provided as hex strings or named ANSI colors.',
1557
+ additionalProperties: false,
1558
+ properties: {
1559
+ type: {
1560
+ type: 'string',
1561
+ enum: ['custom'],
1562
+ default: 'custom',
1563
+ },
1564
+ name: {
1565
+ type: 'string',
1566
+ description: 'Theme display name.',
1567
+ },
1568
+ text: {
1569
+ type: 'object',
1570
+ additionalProperties: false,
1571
+ properties: {
1572
+ primary: { type: 'string' },
1573
+ secondary: { type: 'string' },
1574
+ link: { type: 'string' },
1575
+ accent: { type: 'string' },
1576
+ },
1577
+ },
1578
+ background: {
1579
+ type: 'object',
1580
+ additionalProperties: false,
1581
+ properties: {
1582
+ primary: { type: 'string' },
1583
+ diff: {
1584
+ type: 'object',
1585
+ additionalProperties: false,
1586
+ properties: {
1587
+ added: { type: 'string' },
1588
+ removed: { type: 'string' },
1589
+ },
1590
+ },
1591
+ },
1592
+ },
1593
+ border: {
1594
+ type: 'object',
1595
+ additionalProperties: false,
1596
+ properties: {
1597
+ default: { type: 'string' },
1598
+ focused: { type: 'string' },
1599
+ },
1600
+ },
1601
+ ui: {
1602
+ type: 'object',
1603
+ additionalProperties: false,
1604
+ properties: {
1605
+ comment: { type: 'string' },
1606
+ symbol: { type: 'string' },
1607
+ gradient: {
1608
+ type: 'array',
1609
+ items: { type: 'string' },
1610
+ },
1611
+ },
1612
+ },
1613
+ status: {
1614
+ type: 'object',
1615
+ additionalProperties: false,
1616
+ properties: {
1617
+ error: { type: 'string' },
1618
+ success: { type: 'string' },
1619
+ warning: { type: 'string' },
1620
+ },
1621
+ },
1622
+ Background: { type: 'string' },
1623
+ Foreground: { type: 'string' },
1624
+ LightBlue: { type: 'string' },
1625
+ AccentBlue: { type: 'string' },
1626
+ AccentPurple: { type: 'string' },
1627
+ AccentCyan: { type: 'string' },
1628
+ AccentGreen: { type: 'string' },
1629
+ AccentYellow: { type: 'string' },
1630
+ AccentRed: { type: 'string' },
1631
+ DiffAdded: { type: 'string' },
1632
+ DiffRemoved: { type: 'string' },
1633
+ Comment: { type: 'string' },
1634
+ Gray: { type: 'string' },
1635
+ DarkGray: { type: 'string' },
1636
+ GradientColors: {
1637
+ type: 'array',
1638
+ items: { type: 'string' },
1639
+ },
1640
+ },
1641
+ required: ['type', 'name'],
1642
+ },
1643
+ StringOrStringArray: {
1644
+ description: 'Accepts either a single string or an array of strings.',
1645
+ anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }],
1646
+ },
1647
+ BooleanOrString: {
1648
+ description: 'Accepts either a boolean flag or a string command name.',
1649
+ anyOf: [{ type: 'boolean' }, { type: 'string' }],
1650
+ },
1333
1651
  };
1652
+ export function getSettingsSchema() {
1653
+ return SETTINGS_SCHEMA;
1654
+ }
1334
1655
  //# sourceMappingURL=settingsSchema.js.map