@dxos/plugin-assistant 0.9.1-main.c7dcc2e112 → 0.10.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 (560) hide show
  1. package/PLUGIN.mdl +18 -24
  2. package/dist/lib/neutral/{AgentArticle-2BEPWUMN.mjs → AgentArticle-GV6EEW3I.mjs} +1 -2
  3. package/dist/lib/neutral/AgentArticle-GV6EEW3I.mjs.map +7 -0
  4. package/dist/lib/neutral/AssistantPlugin.mjs +1 -1
  5. package/dist/lib/neutral/AssistantPlugin.node.mjs +6 -6
  6. package/dist/lib/neutral/AssistantPlugin.node.mjs.map +3 -3
  7. package/dist/lib/neutral/AssistantPlugin.workerd.mjs +7 -34
  8. package/dist/lib/neutral/AssistantPlugin.workerd.mjs.map +4 -4
  9. package/dist/lib/neutral/AssistantSettings-3N5M5VCN.mjs +302 -0
  10. package/dist/lib/neutral/AssistantSettings-3N5M5VCN.mjs.map +7 -0
  11. package/dist/lib/neutral/{ChatArticle-KT46SUFU.mjs → ChatArticle-OO7GGEFW.mjs} +2 -2
  12. package/dist/lib/neutral/{ChatCompanion-YHC43RYQ.mjs → ChatCompanion-GIFJRY6I.mjs} +27 -27
  13. package/dist/lib/neutral/ChatCompanion-GIFJRY6I.mjs.map +7 -0
  14. package/dist/lib/neutral/{ChatDialog-YZDZLIQA.mjs → ChatDialog-5MXN4MXS.mjs} +5 -5
  15. package/dist/lib/neutral/ChatDialog-5MXN4MXS.mjs.map +7 -0
  16. package/dist/lib/neutral/IntegrationPrompt-2HJQFYJE.mjs +72 -0
  17. package/dist/lib/neutral/IntegrationPrompt-2HJQFYJE.mjs.map +7 -0
  18. package/dist/lib/neutral/{SpaceHomePrompt-HTWQKLGI.mjs → SpaceHomePrompt-ISAB76LD.mjs} +8 -7
  19. package/dist/lib/neutral/SpaceHomePrompt-ISAB76LD.mjs.map +7 -0
  20. package/dist/lib/neutral/SpaceHomeSuggestions-IDH77QQR.mjs +63 -0
  21. package/dist/lib/neutral/SpaceHomeSuggestions-IDH77QQR.mjs.map +7 -0
  22. package/dist/lib/neutral/{TracePanel-T552TAOH.mjs → TracePanel-JKNWADJ4.mjs} +2 -2
  23. package/dist/lib/neutral/{TriggerStatus-RBOHHDOK.mjs → TriggerStatus-FURRBHYA.mjs} +7 -5
  24. package/dist/lib/neutral/TriggerStatus-FURRBHYA.mjs.map +7 -0
  25. package/dist/lib/neutral/{agent-hydrator-PJBYVMBW.mjs → agent-hydrator-OBO3RHLO.mjs} +3 -4
  26. package/dist/lib/neutral/agent-hydrator-OBO3RHLO.mjs.map +7 -0
  27. package/dist/lib/neutral/{agent-service-WV5CSHAG.mjs → agent-service-XFJ4VQMT.mjs} +7 -9
  28. package/dist/lib/neutral/agent-service-XFJ4VQMT.mjs.map +7 -0
  29. package/dist/lib/neutral/ai-context-LIKJYMIN.mjs +14 -0
  30. package/dist/lib/neutral/ai-context-LIKJYMIN.mjs.map +7 -0
  31. package/dist/lib/neutral/{ai-service-AADUIKBY.mjs → ai-service-DM6YXWUC.mjs} +9 -5
  32. package/dist/lib/neutral/ai-service-DM6YXWUC.mjs.map +7 -0
  33. package/dist/lib/neutral/{app-graph-builder-PTSRZXRN.mjs → app-graph-builder-OPVOEQY7.mjs} +36 -19
  34. package/dist/lib/neutral/app-graph-builder-OPVOEQY7.mjs.map +7 -0
  35. package/dist/lib/neutral/automation-templates-MADJLXGJ.mjs +97 -0
  36. package/dist/lib/neutral/automation-templates-MADJLXGJ.mjs.map +7 -0
  37. package/dist/lib/neutral/capabilities/index.mjs +20 -18
  38. package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
  39. package/dist/lib/neutral/{chunk-KLYLW4WH.mjs → chunk-5IHQ52KJ.mjs} +1 -1
  40. package/dist/lib/neutral/chunk-5IHQ52KJ.mjs.map +7 -0
  41. package/dist/lib/neutral/{chunk-5KB2WRI2.mjs → chunk-6Q4OBGIK.mjs} +83 -55
  42. package/dist/lib/neutral/chunk-6Q4OBGIK.mjs.map +7 -0
  43. package/dist/lib/neutral/{chunk-54W7N6M6.mjs → chunk-BXI2R4OO.mjs} +49 -84
  44. package/dist/lib/neutral/chunk-BXI2R4OO.mjs.map +7 -0
  45. package/dist/lib/neutral/{chunk-5H6UJHLF.mjs → chunk-CMPLPDYE.mjs} +12 -12
  46. package/dist/lib/neutral/chunk-CMPLPDYE.mjs.map +7 -0
  47. package/dist/lib/neutral/chunk-GPHT3HYS.mjs +8 -0
  48. package/dist/lib/neutral/{chunk-7FQT4XMI.mjs.map → chunk-GPHT3HYS.mjs.map} +2 -2
  49. package/dist/lib/neutral/{markdown-extension-IJ5RQMQ4.mjs → chunk-HKLSFB5I.mjs} +2 -38
  50. package/dist/lib/neutral/chunk-HKLSFB5I.mjs.map +7 -0
  51. package/dist/lib/neutral/{chunk-ZNDQVYUN.mjs → chunk-L7AR4VTA.mjs} +3 -3
  52. package/dist/lib/neutral/{chunk-ZNDQVYUN.mjs.map → chunk-L7AR4VTA.mjs.map} +1 -1
  53. package/dist/lib/neutral/chunk-LS72HWMM.mjs +42 -0
  54. package/dist/lib/neutral/chunk-LS72HWMM.mjs.map +7 -0
  55. package/dist/lib/neutral/{chunk-35EL65O4.mjs → chunk-OZWZGIV2.mjs} +4 -2
  56. package/dist/lib/neutral/{chunk-35EL65O4.mjs.map → chunk-OZWZGIV2.mjs.map} +3 -3
  57. package/dist/lib/neutral/{toolkit-GVWXPDLJ.mjs → chunk-QOKLFHUS.mjs} +3 -4
  58. package/dist/lib/neutral/{toolkit-GVWXPDLJ.mjs.map → chunk-QOKLFHUS.mjs.map} +1 -1
  59. package/dist/lib/neutral/{chunk-5LKNH7FD.mjs → chunk-SCTHQVIJ.mjs} +8 -5
  60. package/dist/lib/neutral/{chunk-5LKNH7FD.mjs.map → chunk-SCTHQVIJ.mjs.map} +3 -3
  61. package/dist/lib/neutral/chunk-U4LTLBAX.mjs +56 -0
  62. package/dist/lib/neutral/chunk-U4LTLBAX.mjs.map +7 -0
  63. package/dist/lib/neutral/{chunk-H77JTXAN.mjs → chunk-UPKFUZ6V.mjs} +7 -10
  64. package/dist/lib/neutral/chunk-UPKFUZ6V.mjs.map +7 -0
  65. package/dist/lib/neutral/{operation-handler-SF36MOB5.mjs → chunk-V2Y4XE3O.mjs} +3 -4
  66. package/dist/lib/neutral/{operation-handler-SF36MOB5.mjs.map → chunk-V2Y4XE3O.mjs.map} +1 -1
  67. package/dist/lib/neutral/chunk-VTK5R4H3.mjs +9 -0
  68. package/dist/lib/neutral/chunk-VTK5R4H3.mjs.map +7 -0
  69. package/dist/lib/neutral/chunk-XVGEJWJX.mjs +133 -0
  70. package/dist/lib/neutral/chunk-XVGEJWJX.mjs.map +7 -0
  71. package/dist/lib/neutral/{companion-chat-provisioner-YZZ73P6E.mjs → companion-chat-provisioner-IQV5VIVE.mjs} +14 -8
  72. package/dist/lib/neutral/companion-chat-provisioner-IQV5VIVE.mjs.map +7 -0
  73. package/dist/lib/neutral/components/index.mjs +509 -579
  74. package/dist/lib/neutral/components/index.mjs.map +4 -4
  75. package/dist/lib/neutral/{integration-provider-RBD3AFJU.mjs → connector-ITLLTBPZ.mjs} +13 -14
  76. package/dist/lib/neutral/connector-ITLLTBPZ.mjs.map +7 -0
  77. package/dist/lib/neutral/containers/index.mjs +12 -14
  78. package/dist/lib/neutral/containers/index.mjs.map +3 -3
  79. package/dist/lib/neutral/{create-chat-Z3FNA6OJ.mjs → create-chat-YGVZZYGP.mjs} +18 -16
  80. package/dist/lib/neutral/create-chat-YGVZZYGP.mjs.map +7 -0
  81. package/dist/lib/neutral/{create-object-BJUDDKQQ.mjs → create-object-5PAEJ6KM.mjs} +11 -27
  82. package/dist/lib/neutral/create-object-5PAEJ6KM.mjs.map +7 -0
  83. package/dist/lib/neutral/{edge-model-resolver-BBVOJBGJ.mjs → edge-model-resolver-WDJWDZTT.mjs} +2 -2
  84. package/dist/lib/neutral/execution-graph/index.mjs +182 -64
  85. package/dist/lib/neutral/execution-graph/index.mjs.map +3 -3
  86. package/dist/lib/neutral/extensions/index.mjs +8 -0
  87. package/dist/lib/neutral/{fork-chat-UYXYT6BT.mjs → fork-chat-RMAAYYQF.mjs} +15 -18
  88. package/dist/lib/neutral/fork-chat-RMAAYYQF.mjs.map +7 -0
  89. package/dist/lib/neutral/generate-home-suggestions-6MM2XWPV.mjs +93 -0
  90. package/dist/lib/neutral/generate-home-suggestions-6MM2XWPV.mjs.map +7 -0
  91. package/dist/lib/neutral/hooks/index.mjs +195 -105
  92. package/dist/lib/neutral/hooks/index.mjs.map +4 -4
  93. package/dist/lib/neutral/index.mjs +14 -10
  94. package/dist/lib/neutral/markdown-extension-R4TKDTIF.mjs +41 -0
  95. package/dist/lib/neutral/markdown-extension-R4TKDTIF.mjs.map +7 -0
  96. package/dist/lib/neutral/meta.json +1 -1
  97. package/dist/lib/neutral/meta.mjs +1 -1
  98. package/dist/lib/neutral/navigation-resolver-PYGP2DAW.mjs +18 -0
  99. package/dist/lib/neutral/navigation-resolver-PYGP2DAW.mjs.map +7 -0
  100. package/dist/lib/neutral/operation-handler-2LEN45GP.mjs +8 -0
  101. package/dist/lib/neutral/operation-handler-2LEN45GP.mjs.map +7 -0
  102. package/dist/lib/neutral/operations/index.mjs +1 -1
  103. package/dist/lib/neutral/plugin.mjs +2 -2
  104. package/dist/lib/neutral/plugin.workerd.mjs +13 -0
  105. package/dist/lib/neutral/plugin.workerd.mjs.map +7 -0
  106. package/dist/lib/neutral/{react-surface-ES7UHZ65.mjs → react-surface-HEJEK44F.mjs} +20 -35
  107. package/dist/lib/neutral/react-surface-HEJEK44F.mjs.map +7 -0
  108. package/dist/lib/neutral/resolve-navigation-targets-PBQ3OLUE.mjs +28 -0
  109. package/dist/lib/neutral/resolve-navigation-targets-PBQ3OLUE.mjs.map +7 -0
  110. package/dist/lib/neutral/{run-prompt-in-new-chat-NIAGCKQV.mjs → run-prompt-in-new-chat-RNUJE2FM.mjs} +28 -31
  111. package/dist/lib/neutral/run-prompt-in-new-chat-RNUJE2FM.mjs.map +7 -0
  112. package/dist/lib/neutral/skill-definition-553MQRTR.mjs +8 -0
  113. package/dist/lib/neutral/skill-definition-553MQRTR.mjs.map +7 -0
  114. package/dist/lib/neutral/skills/index.mjs +8 -0
  115. package/dist/lib/neutral/skills/index.mjs.map +7 -0
  116. package/dist/lib/neutral/{state-XO2UYSSG.mjs → state-4LGAKSSD.mjs} +8 -2
  117. package/dist/lib/neutral/{state-XO2UYSSG.mjs.map → state-4LGAKSSD.mjs.map} +3 -3
  118. package/dist/lib/neutral/testing.mjs +1 -1
  119. package/dist/lib/neutral/toolkit-ETWLG5NT.mjs +8 -0
  120. package/dist/lib/neutral/toolkit-ETWLG5NT.mjs.map +7 -0
  121. package/dist/lib/neutral/translations.mjs +64 -33
  122. package/dist/lib/neutral/translations.mjs.map +3 -3
  123. package/dist/lib/neutral/types/index.mjs +5 -1
  124. package/dist/lib/neutral/{update-chat-name-Y7JWIP64.mjs → update-chat-name-IJJELRR6.mjs} +3 -3
  125. package/dist/lib/neutral/{update-chat-name-Y7JWIP64.mjs.map → update-chat-name-IJJELRR6.mjs.map} +2 -2
  126. package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
  127. package/dist/types/src/AssistantPlugin.workerd.d.ts.map +1 -1
  128. package/dist/types/src/capabilities/agent-hydrator.d.ts +1 -1
  129. package/dist/types/src/capabilities/agent-service.d.ts +1 -2
  130. package/dist/types/src/capabilities/agent-service.d.ts.map +1 -1
  131. package/dist/types/src/capabilities/ai-context.d.ts +1 -2
  132. package/dist/types/src/capabilities/ai-context.d.ts.map +1 -1
  133. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -3
  134. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  135. package/dist/types/src/capabilities/automation-templates.d.ts +1 -2
  136. package/dist/types/src/capabilities/automation-templates.d.ts.map +1 -1
  137. package/dist/types/src/capabilities/companion-chat-provisioner.d.ts +1 -1
  138. package/dist/types/src/capabilities/companion-chat-provisioner.d.ts.map +1 -1
  139. package/dist/types/src/capabilities/{integration-provider.d.ts → connector.d.ts} +2 -2
  140. package/dist/types/src/capabilities/connector.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/create-object.d.ts +1 -27
  142. package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
  143. package/dist/types/src/capabilities/index.d.ts +3 -2
  144. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  145. package/dist/types/src/capabilities/markdown-extension.d.ts +1 -1
  146. package/dist/types/src/capabilities/migrations.d.ts +1 -2
  147. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  148. package/dist/types/src/capabilities/navigation-resolver.d.ts +5 -0
  149. package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -0
  150. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  151. package/dist/types/src/capabilities/settings.d.ts +1 -2
  152. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  153. package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
  154. package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
  155. package/dist/types/src/capabilities/state.d.ts +1 -17
  156. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  157. package/dist/types/src/capabilities/toolkit.d.ts +1 -2
  158. package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
  159. package/dist/types/src/components/AgentProperties/AgentProperties.stories.d.ts.map +1 -1
  160. package/dist/types/src/components/Chat/Chat.d.ts +4 -5
  161. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
  162. package/dist/types/src/components/Chat/events.d.ts +0 -4
  163. package/dist/types/src/components/Chat/events.d.ts.map +1 -1
  164. package/dist/types/src/components/ChatPrompt/ChatActions.d.ts +2 -2
  165. package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
  166. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
  167. package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts +2 -2
  168. package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts.map +1 -1
  169. package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts +5 -5
  170. package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts.map +1 -1
  171. package/dist/types/src/components/ChatPrompt/useChatVoiceInput.d.ts +9 -0
  172. package/dist/types/src/components/ChatPrompt/useChatVoiceInput.d.ts.map +1 -0
  173. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +4 -4
  174. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
  175. package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts +2 -2
  176. package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts.map +1 -1
  177. package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
  178. package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts +2 -2
  179. package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts.map +1 -1
  180. package/dist/types/src/components/ChatThread/widgets/SurfaceWidget.d.ts +11 -0
  181. package/dist/types/src/components/ChatThread/widgets/SurfaceWidget.d.ts.map +1 -0
  182. package/dist/types/src/components/ChatThread/widgets/index.d.ts +1 -0
  183. package/dist/types/src/components/ChatThread/widgets/index.d.ts.map +1 -1
  184. package/dist/types/src/components/ProcessTree/ProcessTree.d.ts.map +1 -1
  185. package/dist/types/src/components/TaskList/TaskList.stories.d.ts +2 -2
  186. package/dist/types/src/components/TaskList/TaskList.stories.d.ts.map +1 -1
  187. package/dist/types/src/components/Toolbox/Toolbox.d.ts +3 -3
  188. package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
  189. package/dist/types/src/components/index.d.ts +0 -4
  190. package/dist/types/src/components/index.d.ts.map +1 -1
  191. package/dist/types/src/constants.d.ts +1 -1
  192. package/dist/types/src/constants.d.ts.map +1 -1
  193. package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts +2 -2
  194. package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts.map +1 -1
  195. package/dist/types/src/{components → containers}/AssistantSettings/AssistantSettings.d.ts +1 -1
  196. package/dist/types/src/containers/AssistantSettings/AssistantSettings.d.ts.map +1 -0
  197. package/dist/types/src/{components → containers}/AssistantSettings/AssistantSettings.stories.d.ts.map +1 -1
  198. package/dist/types/src/containers/AssistantSettings/OllamaModels.d.ts +12 -0
  199. package/dist/types/src/containers/AssistantSettings/OllamaModels.d.ts.map +1 -0
  200. package/dist/types/src/{components/TemplateEditor/TemplateEditor.stories.d.ts → containers/AssistantSettings/OllamaModels.stories.d.ts} +9 -7
  201. package/dist/types/src/containers/AssistantSettings/OllamaModels.stories.d.ts.map +1 -0
  202. package/dist/types/src/{components → containers}/AssistantSettings/index.d.ts.map +1 -1
  203. package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts +2 -9
  204. package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts.map +1 -1
  205. package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts +3 -10
  206. package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts.map +1 -1
  207. package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -1
  208. package/dist/types/src/containers/IntegrationPrompt/IntegrationPrompt.d.ts +13 -0
  209. package/dist/types/src/containers/IntegrationPrompt/IntegrationPrompt.d.ts.map +1 -0
  210. package/dist/types/src/containers/IntegrationPrompt/index.d.ts +2 -0
  211. package/dist/types/src/{components/RoutineProperties → containers/IntegrationPrompt}/index.d.ts.map +1 -1
  212. package/dist/types/src/containers/SpaceHomePrompt/SpaceHomePrompt.d.ts.map +1 -1
  213. package/dist/types/src/containers/SpaceHomeSuggestions/SpaceHomeSuggestions.d.ts +1 -1
  214. package/dist/types/src/containers/SpaceHomeSuggestions/SpaceHomeSuggestions.d.ts.map +1 -1
  215. package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts.map +1 -1
  216. package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts +1 -1
  217. package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts.map +1 -1
  218. package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -1
  219. package/dist/types/src/containers/index.d.ts +2 -3
  220. package/dist/types/src/containers/index.d.ts.map +1 -1
  221. package/dist/types/src/execution-graph/execution-graph.d.ts +2 -1
  222. package/dist/types/src/execution-graph/execution-graph.d.ts.map +1 -1
  223. package/dist/types/src/execution-graph/index.d.ts +3 -3
  224. package/dist/types/src/execution-graph/index.d.ts.map +1 -1
  225. package/dist/types/src/execution-graph/span-tree.d.ts +13 -0
  226. package/dist/types/src/execution-graph/span-tree.d.ts.map +1 -1
  227. package/dist/types/src/extensions/index.d.ts +1 -1
  228. package/dist/types/src/extensions/index.d.ts.map +1 -1
  229. package/dist/types/src/extensions/prompt-extension.d.ts.map +1 -1
  230. package/dist/types/src/hooks/index.d.ts +2 -2
  231. package/dist/types/src/hooks/index.d.ts.map +1 -1
  232. package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
  233. package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
  234. package/dist/types/src/hooks/useHomeSuggestions.d.ts +8 -0
  235. package/dist/types/src/hooks/useHomeSuggestions.d.ts.map +1 -0
  236. package/dist/types/src/hooks/usePresets.d.ts +6 -2
  237. package/dist/types/src/hooks/usePresets.d.ts.map +1 -1
  238. package/dist/types/src/hooks/useSkillRegistry.d.ts +21 -0
  239. package/dist/types/src/hooks/useSkillRegistry.d.ts.map +1 -0
  240. package/dist/types/src/index.d.ts +1 -1
  241. package/dist/types/src/index.d.ts.map +1 -1
  242. package/dist/types/src/meta.d.ts +4 -0
  243. package/dist/types/src/meta.d.ts.map +1 -1
  244. package/dist/types/src/operations/create-chat.d.ts.map +1 -1
  245. package/dist/types/src/operations/fork-chat.d.ts.map +1 -1
  246. package/dist/types/src/operations/generate-home-suggestions.d.ts +5 -0
  247. package/dist/types/src/operations/generate-home-suggestions.d.ts.map +1 -0
  248. package/dist/types/src/operations/generate-home-suggestions.test.d.ts +2 -0
  249. package/dist/types/src/operations/generate-home-suggestions.test.d.ts.map +1 -0
  250. package/dist/types/src/operations/index.d.ts.map +1 -1
  251. package/dist/types/src/operations/resolve-navigation-targets.d.ts +3 -15
  252. package/dist/types/src/operations/resolve-navigation-targets.d.ts.map +1 -1
  253. package/dist/types/src/operations/run-prompt-in-new-chat.d.ts +2 -2
  254. package/dist/types/src/operations/run-prompt-in-new-chat.d.ts.map +1 -1
  255. package/dist/types/src/paths.d.ts +1 -1
  256. package/dist/types/src/paths.d.ts.map +1 -1
  257. package/dist/types/src/plugin.workerd.d.ts +2 -0
  258. package/dist/types/src/plugin.workerd.d.ts.map +1 -0
  259. package/dist/types/src/processor/presets.d.ts +20 -9
  260. package/dist/types/src/processor/presets.d.ts.map +1 -1
  261. package/dist/types/src/processor/processor.d.ts +10 -209
  262. package/dist/types/src/processor/processor.d.ts.map +1 -1
  263. package/dist/types/src/skills/assistant/index.d.ts +2 -0
  264. package/dist/types/src/skills/assistant/index.d.ts.map +1 -0
  265. package/dist/types/src/skills/assistant/skill.d.ts +4 -0
  266. package/dist/types/src/skills/assistant/skill.d.ts.map +1 -0
  267. package/dist/types/src/skills/assistant/skill.node.test.d.ts +2 -0
  268. package/dist/types/src/skills/assistant/skill.node.test.d.ts.map +1 -0
  269. package/dist/types/src/skills/index.d.ts.map +1 -0
  270. package/dist/types/src/templates/daily-digest.d.ts +2 -2
  271. package/dist/types/src/templates/daily-digest.d.ts.map +1 -1
  272. package/dist/types/src/templates/index.d.ts +3 -3
  273. package/dist/types/src/templates/index.d.ts.map +1 -1
  274. package/dist/types/src/templates/research-brief.d.ts +2 -2
  275. package/dist/types/src/templates/research-brief.d.ts.map +1 -1
  276. package/dist/types/src/templates/routine-templates.test.d.ts +2 -0
  277. package/dist/types/src/templates/routine-templates.test.d.ts.map +1 -0
  278. package/dist/types/src/templates/scaffold.d.ts +9 -9
  279. package/dist/types/src/templates/scaffold.d.ts.map +1 -1
  280. package/dist/types/src/testing/test-generator.d.ts +1 -1
  281. package/dist/types/src/testing/test-generator.d.ts.map +1 -1
  282. package/dist/types/src/testing/test-sequence.d.ts +1 -8
  283. package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
  284. package/dist/types/src/testing/test-trace.d.ts.map +1 -1
  285. package/dist/types/src/translations.d.ts.map +1 -1
  286. package/dist/types/src/types/Assistant.d.ts +5 -12
  287. package/dist/types/src/types/Assistant.d.ts.map +1 -1
  288. package/dist/types/src/types/AssistantCapabilities.d.ts +21 -0
  289. package/dist/types/src/types/AssistantCapabilities.d.ts.map +1 -1
  290. package/dist/types/src/types/AssistantOperation.d.ts +17 -110
  291. package/dist/types/src/types/AssistantOperation.d.ts.map +1 -1
  292. package/dist/types/src/types/ChatSurface.d.ts +12 -0
  293. package/dist/types/src/types/ChatSurface.d.ts.map +1 -0
  294. package/dist/types/src/types/Ollama.d.ts +44 -0
  295. package/dist/types/src/types/Ollama.d.ts.map +1 -0
  296. package/dist/types/src/types/Settings.d.ts +5 -4
  297. package/dist/types/src/types/Settings.d.ts.map +1 -1
  298. package/dist/types/src/types/index.d.ts +2 -0
  299. package/dist/types/src/types/index.d.ts.map +1 -1
  300. package/dist/types/src/types/service.d.ts +4 -3
  301. package/dist/types/src/types/service.d.ts.map +1 -1
  302. package/dist/types/src/util/suggestions.d.ts +1 -1
  303. package/dist/types/tsconfig.tsbuildinfo +1 -1
  304. package/dx.config.ts +2 -2
  305. package/package.json +102 -90
  306. package/src/AssistantPlugin.conversations.json +1 -1
  307. package/src/AssistantPlugin.node.ts +5 -5
  308. package/src/AssistantPlugin.test.ts +26 -40
  309. package/src/AssistantPlugin.ts +12 -10
  310. package/src/AssistantPlugin.workerd.ts +15 -6
  311. package/src/capabilities/agent-hydrator.ts +1 -2
  312. package/src/capabilities/agent-service.ts +5 -7
  313. package/src/capabilities/ai-context.ts +7 -32
  314. package/src/capabilities/ai-service.ts +3 -2
  315. package/src/capabilities/app-graph-builder.ts +38 -18
  316. package/src/capabilities/automation-templates.ts +3 -3
  317. package/src/capabilities/companion-chat-provisioner.ts +22 -6
  318. package/src/capabilities/{integration-provider.ts → connector.ts} +7 -12
  319. package/src/capabilities/create-object.ts +9 -26
  320. package/src/capabilities/index.ts +3 -5
  321. package/src/capabilities/markdown-extension.ts +2 -3
  322. package/src/capabilities/navigation-resolver.ts +20 -0
  323. package/src/capabilities/react-surface.tsx +21 -33
  324. package/src/capabilities/skill-definition.ts +72 -0
  325. package/src/capabilities/state.ts +7 -0
  326. package/src/components/AgentProperties/AgentProperties.stories.tsx +1 -2
  327. package/src/components/Chat/Chat.tsx +28 -10
  328. package/src/components/Chat/events.ts +0 -6
  329. package/src/components/ChatPrompt/ChatActions.tsx +181 -18
  330. package/src/components/ChatPrompt/ChatOptions.stories.tsx +3 -3
  331. package/src/components/ChatPrompt/ChatOptions.tsx +17 -21
  332. package/src/components/ChatPrompt/ChatPrompt.tsx +30 -46
  333. package/src/components/ChatPrompt/useChatVoiceInput.ts +103 -0
  334. package/src/components/ChatThread/ChatThread.stories.tsx +7 -16
  335. package/src/components/ChatThread/MarkdownStream.stories.tsx +3 -3
  336. package/src/components/ChatThread/registry.tsx +43 -17
  337. package/src/components/ChatThread/widgets/ReasoningWidget.stories.tsx +2 -2
  338. package/src/components/ChatThread/widgets/SurfaceWidget.tsx +41 -0
  339. package/src/components/ChatThread/widgets/index.ts +1 -0
  340. package/src/components/ProcessTree/ProcessTree.tsx +2 -10
  341. package/src/components/TaskList/TaskList.stories.tsx +2 -2
  342. package/src/components/TaskList/TaskList.tsx +2 -2
  343. package/src/components/Toolbox/Toolbox.tsx +11 -11
  344. package/src/components/index.ts +0 -6
  345. package/src/constants.ts +1 -1
  346. package/src/containers/AgentArticle/AgentArticle.stories.tsx +8 -9
  347. package/src/containers/AgentArticle/AgentArticle.tsx +1 -1
  348. package/src/{components → containers}/AssistantSettings/AssistantSettings.stories.tsx +3 -2
  349. package/src/containers/AssistantSettings/AssistantSettings.tsx +90 -0
  350. package/src/containers/AssistantSettings/OllamaModels.stories.tsx +108 -0
  351. package/src/containers/AssistantSettings/OllamaModels.tsx +255 -0
  352. package/src/containers/ChatArticle/ChatArticle.stories.tsx +3 -3
  353. package/src/containers/ChatArticle/ChatArticle.tsx +8 -19
  354. package/src/containers/ChatCompanion/ChatCompanion.tsx +26 -26
  355. package/src/containers/ChatDialog/ChatDialog.tsx +5 -4
  356. package/src/containers/IntegrationPrompt/IntegrationPrompt.tsx +79 -0
  357. package/src/containers/IntegrationPrompt/index.ts +5 -0
  358. package/src/containers/SpaceHomePrompt/SpaceHomePrompt.tsx +8 -6
  359. package/src/containers/SpaceHomeSuggestions/SpaceHomeSuggestions.tsx +46 -32
  360. package/src/containers/TracePanel/TracePanel.stories.tsx +89 -47
  361. package/src/containers/TracePanel/TracePanel.tsx +13 -8
  362. package/src/containers/TracePanel/dxn-extractor.test.ts +2 -2
  363. package/src/containers/TriggerStatus/TriggerStatus.tsx +8 -4
  364. package/src/containers/index.ts +2 -3
  365. package/src/execution-graph/SPEC.md +1 -1
  366. package/src/execution-graph/execution-graph.test.ts +213 -25
  367. package/src/execution-graph/execution-graph.ts +209 -72
  368. package/src/execution-graph/index.ts +8 -8
  369. package/src/execution-graph/span-tree.test.ts +33 -1
  370. package/src/execution-graph/span-tree.ts +43 -2
  371. package/src/execution-graph/sub-agent-delegation.test.ts +19 -19
  372. package/src/extensions/index.ts +1 -1
  373. package/src/extensions/prompt-extension.ts +1 -1
  374. package/src/feed-logger.ts +4 -4
  375. package/src/functions/services.test.ts +4 -4
  376. package/src/hooks/index.ts +2 -2
  377. package/src/hooks/useChatProcessor.ts +12 -16
  378. package/src/hooks/useContextBinder.ts +2 -4
  379. package/src/hooks/useDebug.ts +2 -2
  380. package/src/hooks/useHomeSuggestions.ts +55 -0
  381. package/src/hooks/usePresets.ts +80 -11
  382. package/src/hooks/useProcessEphemeralStatus.ts +1 -1
  383. package/src/hooks/useReferencesProvider.ts +1 -1
  384. package/src/hooks/useSkillRegistry.ts +125 -0
  385. package/src/index.ts +1 -1
  386. package/src/operations/create-chat.ts +11 -12
  387. package/src/operations/fork-chat.ts +14 -19
  388. package/src/operations/generate-home-suggestions.test.ts +103 -0
  389. package/src/operations/generate-home-suggestions.ts +116 -0
  390. package/src/operations/index.ts +1 -0
  391. package/src/operations/prompt.node.test.ts +14 -17
  392. package/src/operations/resolve-navigation-targets.ts +32 -19
  393. package/src/operations/run-prompt-in-new-chat.ts +30 -33
  394. package/src/operations/update-chat-name.ts +2 -2
  395. package/src/paths.ts +4 -2
  396. package/src/plugin.workerd.ts +5 -0
  397. package/src/processor/presets.ts +38 -61
  398. package/src/processor/processor.node.test.ts +1 -1
  399. package/src/processor/processor.ts +34 -20
  400. package/src/skills/assistant/index.ts +5 -0
  401. package/src/{blueprints/assistant/blueprint.node.test.ts → skills/assistant/skill.node.test.ts} +8 -8
  402. package/src/{blueprints/assistant/blueprint.ts → skills/assistant/skill.ts} +9 -9
  403. package/src/templates/daily-digest.ts +10 -12
  404. package/src/templates/index.ts +3 -3
  405. package/src/templates/research-brief.ts +15 -13
  406. package/src/templates/routine-templates.test.ts +55 -0
  407. package/src/templates/scaffold.ts +22 -57
  408. package/src/testing/data/trace-timeline-multiple.dx.json +1 -1
  409. package/src/testing/data/trace-timeline-remote.dx.json +1 -1
  410. package/src/testing/data/trace-timeline.dx.json +3430 -1092
  411. package/src/testing/test-generator.test.ts +26 -22
  412. package/src/testing/test-generator.ts +4 -8
  413. package/src/testing/test-trace.ts +2 -1
  414. package/src/testing/trace-timeline.node.test.ts +14 -14
  415. package/src/translations.ts +68 -33
  416. package/src/types/Assistant.ts +3 -1
  417. package/src/types/AssistantCapabilities.ts +21 -0
  418. package/src/types/AssistantOperation.ts +21 -32
  419. package/src/types/ChatSurface.ts +16 -0
  420. package/src/types/Ollama.ts +59 -0
  421. package/src/types/Settings.ts +12 -10
  422. package/src/types/index.ts +3 -0
  423. package/src/types/service.ts +14 -14
  424. package/src/util/suggestions.ts +1 -1
  425. package/dist/lib/neutral/AgentArticle-2BEPWUMN.mjs.map +0 -7
  426. package/dist/lib/neutral/AssistantSettings-7ALY4BMS.mjs +0 -40
  427. package/dist/lib/neutral/AssistantSettings-7ALY4BMS.mjs.map +0 -7
  428. package/dist/lib/neutral/BlueprintArticle-ZBOZNZM7.mjs +0 -27
  429. package/dist/lib/neutral/BlueprintArticle-ZBOZNZM7.mjs.map +0 -7
  430. package/dist/lib/neutral/ChatCompanion-YHC43RYQ.mjs.map +0 -7
  431. package/dist/lib/neutral/ChatDialog-YZDZLIQA.mjs.map +0 -7
  432. package/dist/lib/neutral/RoutineArticle-FK5BXQN5.mjs +0 -119
  433. package/dist/lib/neutral/RoutineArticle-FK5BXQN5.mjs.map +0 -7
  434. package/dist/lib/neutral/RoutineList-SO5ETHNT.mjs +0 -48
  435. package/dist/lib/neutral/RoutineList-SO5ETHNT.mjs.map +0 -7
  436. package/dist/lib/neutral/RoutineProperties-FISLMW2R.mjs +0 -17
  437. package/dist/lib/neutral/RoutineProperties-FISLMW2R.mjs.map +0 -7
  438. package/dist/lib/neutral/SpaceHomePrompt-HTWQKLGI.mjs.map +0 -7
  439. package/dist/lib/neutral/SpaceHomeSuggestions-6G4E7GNJ.mjs +0 -50
  440. package/dist/lib/neutral/SpaceHomeSuggestions-6G4E7GNJ.mjs.map +0 -7
  441. package/dist/lib/neutral/TriggerStatus-RBOHHDOK.mjs.map +0 -7
  442. package/dist/lib/neutral/agent-hydrator-PJBYVMBW.mjs.map +0 -7
  443. package/dist/lib/neutral/agent-service-WV5CSHAG.mjs.map +0 -7
  444. package/dist/lib/neutral/ai-context-7WRHWYXY.mjs +0 -42
  445. package/dist/lib/neutral/ai-context-7WRHWYXY.mjs.map +0 -7
  446. package/dist/lib/neutral/ai-service-AADUIKBY.mjs.map +0 -7
  447. package/dist/lib/neutral/app-graph-builder-PTSRZXRN.mjs.map +0 -7
  448. package/dist/lib/neutral/automation-templates-M2XQWGR6.mjs +0 -115
  449. package/dist/lib/neutral/automation-templates-M2XQWGR6.mjs.map +0 -7
  450. package/dist/lib/neutral/blueprint-definition-2XPYI35X.mjs +0 -40
  451. package/dist/lib/neutral/blueprint-definition-2XPYI35X.mjs.map +0 -7
  452. package/dist/lib/neutral/blueprints/index.mjs +0 -8
  453. package/dist/lib/neutral/chunk-54W7N6M6.mjs.map +0 -7
  454. package/dist/lib/neutral/chunk-5H6UJHLF.mjs.map +0 -7
  455. package/dist/lib/neutral/chunk-5KB2WRI2.mjs.map +0 -7
  456. package/dist/lib/neutral/chunk-7FQT4XMI.mjs +0 -8
  457. package/dist/lib/neutral/chunk-H77JTXAN.mjs.map +0 -7
  458. package/dist/lib/neutral/chunk-IQZJ5TTM.mjs +0 -130
  459. package/dist/lib/neutral/chunk-IQZJ5TTM.mjs.map +0 -7
  460. package/dist/lib/neutral/chunk-KLYLW4WH.mjs.map +0 -7
  461. package/dist/lib/neutral/companion-chat-provisioner-YZZ73P6E.mjs.map +0 -7
  462. package/dist/lib/neutral/create-chat-Z3FNA6OJ.mjs.map +0 -7
  463. package/dist/lib/neutral/create-object-BJUDDKQQ.mjs.map +0 -7
  464. package/dist/lib/neutral/fork-chat-UYXYT6BT.mjs.map +0 -7
  465. package/dist/lib/neutral/integration-provider-RBD3AFJU.mjs.map +0 -7
  466. package/dist/lib/neutral/markdown-extension-IJ5RQMQ4.mjs.map +0 -7
  467. package/dist/lib/neutral/react-surface-ES7UHZ65.mjs.map +0 -7
  468. package/dist/lib/neutral/resolve-navigation-targets-ZHIMMH7L.mjs +0 -22
  469. package/dist/lib/neutral/resolve-navigation-targets-ZHIMMH7L.mjs.map +0 -7
  470. package/dist/lib/neutral/run-prompt-in-new-chat-NIAGCKQV.mjs.map +0 -7
  471. package/dist/types/src/blueprints/assistant/blueprint.d.ts +0 -4
  472. package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +0 -1
  473. package/dist/types/src/blueprints/assistant/blueprint.node.test.d.ts +0 -2
  474. package/dist/types/src/blueprints/assistant/blueprint.node.test.d.ts.map +0 -1
  475. package/dist/types/src/blueprints/assistant/index.d.ts +0 -2
  476. package/dist/types/src/blueprints/assistant/index.d.ts.map +0 -1
  477. package/dist/types/src/blueprints/index.d.ts.map +0 -1
  478. package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -5
  479. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
  480. package/dist/types/src/capabilities/integration-provider.d.ts.map +0 -1
  481. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +0 -1
  482. package/dist/types/src/components/RoutineProperties/RoutineProperties.d.ts +0 -7
  483. package/dist/types/src/components/RoutineProperties/RoutineProperties.d.ts.map +0 -1
  484. package/dist/types/src/components/RoutineProperties/RoutineProperties.stories.d.ts +0 -15
  485. package/dist/types/src/components/RoutineProperties/RoutineProperties.stories.d.ts.map +0 -1
  486. package/dist/types/src/components/RoutineProperties/index.d.ts +0 -2
  487. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +0 -13
  488. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +0 -1
  489. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +0 -1
  490. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +0 -21
  491. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +0 -1
  492. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +0 -16
  493. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +0 -1
  494. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts +0 -12
  495. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +0 -1
  496. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +0 -3
  497. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +0 -1
  498. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +0 -8
  499. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +0 -1
  500. package/dist/types/src/components/TemplateEditor/index.d.ts +0 -2
  501. package/dist/types/src/components/TemplateEditor/index.d.ts.map +0 -1
  502. package/dist/types/src/components/TemplateEditor/types.d.ts +0 -18
  503. package/dist/types/src/components/TemplateEditor/types.d.ts.map +0 -1
  504. package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts +0 -6
  505. package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts.map +0 -1
  506. package/dist/types/src/containers/BlueprintArticle/index.d.ts +0 -2
  507. package/dist/types/src/containers/BlueprintArticle/index.d.ts.map +0 -1
  508. package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts +0 -6
  509. package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts.map +0 -1
  510. package/dist/types/src/containers/RoutineArticle/RoutineArticle.stories.d.ts +0 -15
  511. package/dist/types/src/containers/RoutineArticle/RoutineArticle.stories.d.ts.map +0 -1
  512. package/dist/types/src/containers/RoutineArticle/index.d.ts +0 -2
  513. package/dist/types/src/containers/RoutineArticle/index.d.ts.map +0 -1
  514. package/dist/types/src/containers/RoutineList/RoutineList.d.ts +0 -6
  515. package/dist/types/src/containers/RoutineList/RoutineList.d.ts.map +0 -1
  516. package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts +0 -21
  517. package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts.map +0 -1
  518. package/dist/types/src/containers/RoutineList/index.d.ts +0 -2
  519. package/dist/types/src/containers/RoutineList/index.d.ts.map +0 -1
  520. package/dist/types/src/hooks/useBlueprintRegistry.d.ts +0 -66
  521. package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +0 -1
  522. package/dist/types/src/hooks/useOnline.d.ts +0 -3
  523. package/dist/types/src/hooks/useOnline.d.ts.map +0 -1
  524. package/dist/types/src/templates/automation-templates.test.d.ts +0 -2
  525. package/dist/types/src/templates/automation-templates.test.d.ts.map +0 -1
  526. package/src/blueprints/assistant/index.ts +0 -5
  527. package/src/capabilities/blueprint-definition.ts +0 -67
  528. package/src/components/AssistantSettings/AssistantSettings.tsx +0 -43
  529. package/src/components/RoutineProperties/RoutineProperties.stories.tsx +0 -59
  530. package/src/components/RoutineProperties/RoutineProperties.tsx +0 -23
  531. package/src/components/RoutineProperties/index.ts +0 -5
  532. package/src/components/TemplateEditor/TemplateEditor.stories.tsx +0 -95
  533. package/src/components/TemplateEditor/TemplateEditor.tsx +0 -80
  534. package/src/components/TemplateEditor/TemplateForm.stories.tsx +0 -76
  535. package/src/components/TemplateEditor/TemplateForm.tsx +0 -204
  536. package/src/components/TemplateEditor/extensions/handlebars-extension.ts +0 -274
  537. package/src/components/TemplateEditor/extensions/index.ts +0 -6
  538. package/src/components/TemplateEditor/extensions/xml-extension.ts +0 -64
  539. package/src/components/TemplateEditor/index.ts +0 -5
  540. package/src/components/TemplateEditor/types.tsx +0 -28
  541. package/src/containers/BlueprintArticle/BlueprintArticle.tsx +0 -29
  542. package/src/containers/BlueprintArticle/index.ts +0 -5
  543. package/src/containers/RoutineArticle/RoutineArticle.stories.tsx +0 -75
  544. package/src/containers/RoutineArticle/RoutineArticle.tsx +0 -109
  545. package/src/containers/RoutineArticle/index.ts +0 -5
  546. package/src/containers/RoutineList/RoutineList.stories.tsx +0 -130
  547. package/src/containers/RoutineList/RoutineList.tsx +0 -50
  548. package/src/containers/RoutineList/index.ts +0 -5
  549. package/src/hooks/useBlueprintRegistry.ts +0 -125
  550. package/src/hooks/useOnline.ts +0 -10
  551. package/src/templates/automation-templates.test.ts +0 -66
  552. /package/dist/lib/neutral/{ChatArticle-KT46SUFU.mjs.map → ChatArticle-OO7GGEFW.mjs.map} +0 -0
  553. /package/dist/lib/neutral/{TracePanel-T552TAOH.mjs.map → TracePanel-JKNWADJ4.mjs.map} +0 -0
  554. /package/dist/lib/neutral/{edge-model-resolver-BBVOJBGJ.mjs.map → edge-model-resolver-WDJWDZTT.mjs.map} +0 -0
  555. /package/dist/lib/neutral/{blueprints → extensions}/index.mjs.map +0 -0
  556. /package/dist/types/src/{components → containers}/AssistantSettings/AssistantSettings.stories.d.ts +0 -0
  557. /package/dist/types/src/{components → containers}/AssistantSettings/index.d.ts +0 -0
  558. /package/dist/types/src/{blueprints → skills}/index.d.ts +0 -0
  559. /package/src/{components → containers}/AssistantSettings/index.ts +0 -0
  560. /package/src/{blueprints → skills}/index.ts +0 -0
@@ -6,7 +6,7 @@ import React from 'react';
6
6
 
7
7
  import { log } from '@dxos/log';
8
8
  import { ContentBlock, type Message } from '@dxos/types';
9
- import { type XmlWidgetRegistry, getXmlTextChild } from '@dxos/ui-editor';
9
+ import { AnchorWidget, type XmlWidgetRegistry, getXmlTextChild } from '@dxos/ui-editor';
10
10
 
11
11
  import { type Assistant } from '../../types';
12
12
  import { type BlockRenderer, type MessageThreadContext } from './sync';
@@ -16,11 +16,12 @@ import {
16
16
  ReasoningWidget,
17
17
  ReferenceWidget,
18
18
  SelectWidget,
19
- SuggestionWidget,
20
19
  StatsWidget,
20
+ StatusWidget,
21
+ SuggestionWidget,
21
22
  SummaryWidget,
23
+ SurfaceWidget,
22
24
  ToolWidget,
23
- StatusWidget,
24
25
  } from './widgets';
25
26
 
26
27
  /**
@@ -39,7 +40,7 @@ export const componentRegistry: XmlWidgetRegistry = {
39
40
  // Block-only (no widget — see note above).
40
41
  //
41
42
 
42
- prompt: {
43
+ 'prompt': {
43
44
  block: true,
44
45
  },
45
46
 
@@ -47,7 +48,13 @@ export const componentRegistry: XmlWidgetRegistry = {
47
48
  // DOM Widgets
48
49
  //
49
50
 
50
- synthetic: {
51
+ 'link-preview': {
52
+ block: false,
53
+ urlSchemes: ['dxn:', 'echo:'],
54
+ factory: ({ label, dxn }) =>
55
+ typeof label === 'string' && typeof dxn === 'string' ? new AnchorWidget(label, dxn) : null,
56
+ },
57
+ 'synthetic': {
51
58
  block: true,
52
59
  factory: ({ children, range }) => {
53
60
  const text = getXmlTextChild(children);
@@ -57,7 +64,7 @@ export const componentRegistry: XmlWidgetRegistry = {
57
64
  return text ? new ReasoningWidget(text, range.from) : null;
58
65
  },
59
66
  },
60
- reasoning: {
67
+ 'reasoning': {
61
68
  block: true,
62
69
  streaming: true,
63
70
  factory: ({ children, range }) => {
@@ -65,14 +72,14 @@ export const componentRegistry: XmlWidgetRegistry = {
65
72
  return text ? new ReasoningWidget(text, range.from) : null;
66
73
  },
67
74
  },
68
- reference: {
75
+ 'reference': {
69
76
  block: false,
70
77
  factory: ({ children, ref }) => {
71
78
  const text = getXmlTextChild(children);
72
79
  return text && ref ? new ReferenceWidget(text, ref) : null;
73
80
  },
74
81
  },
75
- select: {
82
+ 'select': {
76
83
  block: true,
77
84
  factory: ({ children }) => {
78
85
  const options = children
@@ -81,21 +88,21 @@ export const componentRegistry: XmlWidgetRegistry = {
81
88
  return options?.length ? new SelectWidget(options) : null;
82
89
  },
83
90
  },
84
- suggestion: {
91
+ 'suggestion': {
85
92
  block: true,
86
93
  factory: ({ children }) => {
87
94
  const text = getXmlTextChild(children);
88
95
  return text ? new SuggestionWidget(text) : null;
89
96
  },
90
97
  },
91
- stats: {
98
+ 'stats': {
92
99
  block: true,
93
100
  factory: ({ children }) => {
94
101
  const text = getXmlTextChild(children);
95
102
  return text ? new StatsWidget(text) : null;
96
103
  },
97
104
  },
98
- status: {
105
+ 'status': {
99
106
  block: true,
100
107
  streaming: true,
101
108
  factory: ({ children }) => {
@@ -108,11 +115,15 @@ export const componentRegistry: XmlWidgetRegistry = {
108
115
  // React Widgets (portaled outside of the editor)
109
116
  //
110
117
 
111
- summary: {
118
+ 'summary': {
112
119
  block: true,
113
120
  Component: SummaryWidget,
114
121
  },
115
- toolCall: {
122
+ 'surface': {
123
+ block: true,
124
+ Component: SurfaceWidget,
125
+ },
126
+ 'toolCall': {
116
127
  block: true,
117
128
  Component: (props) => (
118
129
  <div className='py-2'>
@@ -120,11 +131,11 @@ export const componentRegistry: XmlWidgetRegistry = {
120
131
  </div>
121
132
  ),
122
133
  },
123
- toolResult: {
134
+ 'toolResult': {
124
135
  block: true,
125
136
  Component: FallbackWidget,
126
137
  },
127
- toolkit: {
138
+ 'toolkit': {
128
139
  block: true,
129
140
  Component: FallbackWidget,
130
141
  },
@@ -133,11 +144,11 @@ export const componentRegistry: XmlWidgetRegistry = {
133
144
  // Fallback
134
145
  //
135
146
 
136
- json: {
147
+ 'json': {
137
148
  block: true,
138
149
  Component: FallbackWidget,
139
150
  },
140
- };
151
+ } as const;
141
152
 
142
153
  /**
143
154
  * Convert block to markdown.
@@ -261,6 +272,18 @@ const blockToMarkdownImpl = (context: MessageThreadContext, message: Message.Mes
261
272
  return renderXMLBlock('status', { content: block.statusText, pending: block.pending });
262
273
  }
263
274
 
275
+ case 'surface': {
276
+ if (block.pending) {
277
+ return;
278
+ }
279
+ // Carry the payload as JSON text content so it round-trips through the mixed XML parser
280
+ // without colliding with attribute quoting; `SurfaceWidget` re-parses it.
281
+ return renderXMLBlock('surface', {
282
+ content: JSON.stringify(block.data ?? {}),
283
+ attributes: `role="${escapeXmlAttribute(block.role)}"`,
284
+ });
285
+ }
286
+
264
287
  default: {
265
288
  // TODO(burdon): Needs stable ID.
266
289
  return `<json id="${message.id}">\n${JSON.stringify(block)}\n</json>`;
@@ -274,6 +297,9 @@ const blockToMarkdownImpl = (context: MessageThreadContext, message: Message.Mes
274
297
  const escapeXmlTextContent = (raw: string): string =>
275
298
  raw.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
276
299
 
300
+ /** Escape a value embedded in a double-quoted XML attribute (e.g. a model-supplied surface role). */
301
+ const escapeXmlAttribute = (raw: string): string => escapeXmlTextContent(raw).replace(/"/g, '&quot;');
302
+
277
303
  const renderXMLBlock = (tag: string, opts: { content?: string; pending?: boolean; attributes?: string }) => {
278
304
  // Replace paragraph breaks so that the markdown parser does not split the content into multiple paragraphs.
279
305
  // NOTE: do not strip leading list-marker prefixes (`-`, `*`, `1. `, ...) per line — the streaming
@@ -9,12 +9,12 @@ import { withLayout, withTheme } from '@dxos/react-ui/testing';
9
9
 
10
10
  import { ReasoningWidget } from './ReasoningWidget';
11
11
 
12
- export type DefaultStoryProps = {
12
+ export type StoryArgs = {
13
13
  text: string;
14
14
  };
15
15
 
16
16
  // TODO(burdon): Generalize factory for DOM widgets.
17
- const DefaultStory = ({ text }: DefaultStoryProps) => {
17
+ const DefaultStory = ({ text }: StoryArgs) => {
18
18
  const hostRef = useRef<HTMLDivElement>(null);
19
19
  useEffect(() => {
20
20
  const host = hostRef.current;
@@ -0,0 +1,41 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import React, { useMemo } from 'react';
6
+
7
+ import { Surface } from '@dxos/app-framework/ui';
8
+ import { log } from '@dxos/log';
9
+ import { type XmlWidgetProps, getXmlTextChild } from '@dxos/ui-editor';
10
+
11
+ import { ChatSurface } from '#types';
12
+
13
+ /**
14
+ * Renders an agent-requested UI surface (the `<surface>` content block) by dispatching to a
15
+ * registered {@link ChatSurface} surface keyed on its `role`. The payload is carried as JSON in the
16
+ * tag's text content; a malformed payload renders the surface with no data rather than throwing.
17
+ */
18
+ export const SurfaceWidget = ({ role, children }: XmlWidgetProps<{ role?: string }>) => {
19
+ const data = useMemo(() => {
20
+ const raw = getXmlTextChild(children ?? []);
21
+ if (!raw) {
22
+ return undefined;
23
+ }
24
+ try {
25
+ const parsed: unknown = JSON.parse(raw);
26
+ // Model-supplied JSON payload: narrowed to a non-array object; no typed schema exists at this boundary.
27
+ return parsed != null && typeof parsed === 'object' && !Array.isArray(parsed)
28
+ ? (parsed as Record<string, unknown>)
29
+ : undefined;
30
+ } catch (err) {
31
+ log.warn('failed to parse surface data', { raw, err });
32
+ return undefined;
33
+ }
34
+ }, [children]);
35
+
36
+ if (!role) {
37
+ return null;
38
+ }
39
+
40
+ return <Surface.Surface type={ChatSurface} data={{ role, data }} limit={1} />;
41
+ };
@@ -9,5 +9,6 @@ export * from './SelectWidget';
9
9
  export * from './StatsWidget';
10
10
  export * from './StatusWidget';
11
11
  export * from './SummaryWidget';
12
+ export * from './SurfaceWidget';
12
13
  export * from './SuggestionWidget';
13
14
  export * from './ToolWidget';
@@ -7,16 +7,8 @@ import * as Option from 'effect/Option';
7
7
  import React, { useMemo } from 'react';
8
8
 
9
9
  import { Process } from '@dxos/compute';
10
- import {
11
- Icon,
12
- IconButton,
13
- ScrollArea,
14
- Tooltip,
15
- Treegrid,
16
- TREEGRID_PATH_SEPARATOR,
17
- composable,
18
- composableProps,
19
- } from '@dxos/react-ui';
10
+ import { Icon, IconButton, ScrollArea, Tooltip, composable, composableProps } from '@dxos/react-ui';
11
+ import { Treegrid, TREEGRID_PATH_SEPARATOR } from '@dxos/react-ui-list';
20
12
  import { mx } from '@dxos/ui-theme';
21
13
  import { Unit } from '@dxos/util';
22
14
 
@@ -15,12 +15,12 @@ import { TaskList } from './TaskList';
15
15
  const SUB_AGENT_PID = Process.ID.make('cf8f7243-5b1d-4902-b158-70d9107d5f43');
16
16
  const traceMessages = (subAgentFixture as unknown as Trace.Message[]).slice();
17
17
 
18
- type DefaultStoryProps = {
18
+ type StoryArgs = {
19
19
  tasks?: Omit<Plan.Task, 'id'>[];
20
20
  traceMessages?: readonly Trace.Message[];
21
21
  };
22
22
 
23
- const DefaultStory = ({ tasks = [], traceMessages: traceMessagesProp }: DefaultStoryProps) => {
23
+ const DefaultStory = ({ tasks = [], traceMessages: traceMessagesProp }: StoryArgs) => {
24
24
  const plan = React.useMemo(() => Plan.makePlan({ tasks }), [tasks]);
25
25
  return <TaskList plan={plan} traceMessages={traceMessagesProp} />;
26
26
  };
@@ -108,8 +108,8 @@ const TaskListItem = ({ task, space, traceMessages, conversationId }: TaskListIt
108
108
  {task.status === 'done' ? 'done' : task.status === 'in-progress' ? 'in progress' : 'to do'}
109
109
  </span>
110
110
  <span className='truncate flex-1'>{task.title}</span>
111
- {task.status === 'in-progress' && <Tag palette='info'>pending</Tag>}
112
- {task.agentPid && <Tag palette='info'>{Plan.formatAgentPidTag(task.agentPid)}</Tag>}
111
+ {task.status === 'in-progress' && <Tag hue='info'>pending</Tag>}
112
+ {task.agentPid && <Tag hue='info'>{Plan.formatAgentPidTag(task.agentPid)}</Tag>}
113
113
  </div>
114
114
  {showActivity && agentPid != null && <DelegatedTaskActivity agentPid={agentPid} lines={activityLines} />}
115
115
  </div>
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React, { Fragment, useEffect, useState } from 'react';
6
6
 
7
- import { type Blueprint } from '@dxos/compute';
7
+ import { type Skill } from '@dxos/compute';
8
8
  import { Operation } from '@dxos/compute';
9
9
  import { type Database, Filter, type Ref } from '@dxos/echo';
10
10
  import { log } from '@dxos/log';
@@ -21,19 +21,19 @@ export type ToolboxProps = {
21
21
  services?: { service: ServiceType }[];
22
22
  functions?: Operation.PersistentOperation[];
23
23
  // TODO(burdon): Combine into single array.
24
- blueprints?: readonly Blueprint.Blueprint[];
25
- activeBlueprints?: readonly Ref.Ref<Blueprint.Blueprint>[];
24
+ skills?: readonly Skill.Skill[];
25
+ activeSkills?: readonly Ref.Ref<Skill.Skill>[];
26
26
  };
27
27
 
28
28
  export const Toolbox = composable<HTMLDivElement, ToolboxProps>(
29
- ({ functions, services, blueprints, activeBlueprints, ...props }, forwardedRef) => {
29
+ ({ functions, services, skills, activeSkills, ...props }, forwardedRef) => {
30
30
  return (
31
31
  <ScrollArea.Root {...composableProps(props)} thin orientation='vertical' ref={forwardedRef}>
32
32
  <ScrollArea.Viewport>
33
- {blueprints && blueprints.length > 0 && (
33
+ {skills && skills.length > 0 && (
34
34
  <Section
35
- title='Blueprints'
36
- items={blueprints.map(({ name, description, tools }) => ({
35
+ title='Skills'
36
+ items={skills.map(({ name, description, tools }) => ({
37
37
  name,
38
38
  description,
39
39
  subitems: tools.map((toolId) => ({ name: `∙ ${safeToolId(toolId)}` })),
@@ -41,10 +41,10 @@ export const Toolbox = composable<HTMLDivElement, ToolboxProps>(
41
41
  />
42
42
  )}
43
43
 
44
- {activeBlueprints && activeBlueprints.length > 0 && (
44
+ {activeSkills && activeSkills.length > 0 && (
45
45
  <Section
46
- title='Blueprints'
47
- items={activeBlueprints.map(({ target }) => ({
46
+ title='Skills'
47
+ items={activeSkills.map(({ target }) => ({
48
48
  name: target?.name ?? '',
49
49
  description: target?.description ?? '',
50
50
  subitems: target?.tools.map((toolId) => ({ name: `∙ ${safeToolId(toolId)}` })),
@@ -136,7 +136,7 @@ export const ToolboxPanel = ({ classNames, db, processor }: ToolboxPanelProps) =
136
136
  return (
137
137
  <Toolbox
138
138
  classNames={classNames}
139
- blueprints={processor?.context.getBlueprints()}
139
+ skills={processor?.context.getSkills()}
140
140
  services={serviceTools}
141
141
  functions={functions}
142
142
  />
@@ -3,17 +3,11 @@
3
3
  //
4
4
  // TODO(wittjosiah): Factor components out of plugin-assistant into a standalone package.
5
5
 
6
- import { type ComponentType, lazy } from 'react';
7
-
8
6
  export * from './AgentProperties';
9
7
  export * from './Chat';
10
8
  export { TracePanel } from '../containers/TracePanel/TracePanel';
11
9
  export * from './ProcessTree';
12
10
  export * from './TaskList';
13
- export * from './TemplateEditor';
14
11
  export * from './Toolbox';
15
12
 
16
- export const AssistantSettings: ComponentType<any> = lazy(() => import('./AssistantSettings'));
17
- export const RoutineProperties: ComponentType<any> = lazy(() => import('./RoutineProperties'));
18
-
19
13
  export { ChatPrompt, type ChatPromptProps } from './ChatPrompt/ChatPrompt';
package/src/constants.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright 2026 DXOS.org
3
3
  //
4
4
 
5
- /** Stable id used by `plugin-integration` to look up the Anthropic provider entry. */
5
+ /** Stable id used by `plugin-connector` to look up the Anthropic provider entry. */
6
6
  export const ANTHROPIC_PROVIDER_ID = 'anthropic';
7
7
 
8
8
  /** Source string used in `AccessToken.source` and matched by `Header.byokLayer('anthropic.com')`. */
@@ -7,18 +7,18 @@ import * as Effect from 'effect/Effect';
7
7
  import React from 'react';
8
8
 
9
9
  import { withPluginManager } from '@dxos/app-framework/testing';
10
- import { Plan, Agent } from '@dxos/assistant-toolkit';
10
+ import { Agent, Plan } from '@dxos/assistant-toolkit';
11
11
  import { Feed, Filter, Obj, Ref } from '@dxos/echo';
12
- import { AutomationPlugin } from '@dxos/plugin-automation/testing';
13
12
  import { ClientPlugin } from '@dxos/plugin-client/testing';
14
13
  import { initializeIdentity } from '@dxos/plugin-client/testing';
15
14
  import { PreviewPlugin } from '@dxos/plugin-preview/testing';
15
+ import { RoutinePlugin } from '@dxos/plugin-routine/testing';
16
16
  import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
17
17
  import { random } from '@dxos/random';
18
18
  import { useQuery, useSpaces } from '@dxos/react-client/echo';
19
19
  import { Loading, withTheme } from '@dxos/react-ui/testing';
20
20
  import { Text } from '@dxos/schema';
21
- import { createObjectFactory, TypeSpec } from '@dxos/schema/testing';
21
+ import { TypeSpec, createObjectFactory } from '@dxos/schema/testing';
22
22
  import { Message, Organization, Person } from '@dxos/types';
23
23
 
24
24
  import { createMessage } from '#testing';
@@ -29,7 +29,7 @@ import { AgentArticle } from './AgentArticle';
29
29
 
30
30
  random.seed(1);
31
31
 
32
- type DefaultStoryProps = {
32
+ type StoryArgs = {
33
33
  inputs?: boolean;
34
34
  };
35
35
 
@@ -42,7 +42,7 @@ const defaultSpec: TypeSpec[] = [
42
42
  { type: Person.Person, count: 10 },
43
43
  ];
44
44
 
45
- const DefaultStory = (_: DefaultStoryProps) => {
45
+ const DefaultStory = (_: StoryArgs) => {
46
46
  const [space] = useSpaces();
47
47
  const [agent] = useQuery(space?.db, Filter.type(Agent.Agent));
48
48
  if (!agent) {
@@ -57,7 +57,7 @@ const meta = {
57
57
  render: DefaultStory,
58
58
  decorators: [
59
59
  withTheme(),
60
- withPluginManager<DefaultStoryProps>(({ args: { inputs } }) => ({
60
+ withPluginManager<StoryArgs>(({ args: { inputs } }) => ({
61
61
  plugins: [
62
62
  ...corePlugins(),
63
63
  ClientPlugin({
@@ -87,7 +87,6 @@ const meta = {
87
87
  space.db.add(
88
88
  Obj.make(Agent.Agent, {
89
89
  instructions: Ref.make(Text.make()),
90
- plan: Ref.make(Plan.makePlan({ tasks: [] })),
91
90
  artifacts: artifacts.map((obj) => ({
92
91
  name: Obj.getLabel(obj) ?? 'Artifact',
93
92
  data: Ref.make(obj),
@@ -98,7 +97,7 @@ const meta = {
98
97
  );
99
98
  }),
100
99
  }),
101
- AutomationPlugin(),
100
+ RoutinePlugin(),
102
101
  AssistantPlugin(),
103
102
  PreviewPlugin(),
104
103
  StorybookPlugin({}),
@@ -109,7 +108,7 @@ const meta = {
109
108
  layout: 'fullscreen',
110
109
  translations,
111
110
  },
112
- } satisfies Meta<DefaultStoryProps>;
111
+ } satisfies Meta<StoryArgs>;
113
112
 
114
113
  export default meta;
115
114
 
@@ -34,7 +34,7 @@ export const AgentArticle = ({ role, subject: agent }: AgentArticleProps) => {
34
34
  // TODO(burdon): Clear input feed also.
35
35
  const resetHistory = useSpaceCallback(
36
36
  spaceId,
37
- [Feed.FeedService, Database.Service] as const,
37
+ [Database.Service] as const,
38
38
  Effect.fnUntraced(function* () {
39
39
  yield* Agent.resetChatHistory(agent);
40
40
  if (!agent.feed) {
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
 
7
+ import { Provider } from '@dxos/ai';
7
8
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
8
9
 
9
10
  import { translations } from '#translations';
@@ -11,7 +12,7 @@ import { translations } from '#translations';
11
12
  import { AssistantSettings } from './AssistantSettings';
12
13
 
13
14
  const meta = {
14
- title: 'plugins/plugin-assistant/components/AssistantSettings',
15
+ title: 'plugins/plugin-assistant/containers/AssistantSettings',
15
16
  tags: ['settings'],
16
17
  component: AssistantSettings,
17
18
  decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
@@ -29,7 +30,7 @@ export const Default: Story = {
29
30
  args: {
30
31
  settings: {
31
32
  customPrompts: false,
32
- modelProvider: 'edge',
33
+ modelProvider: Provider.edge.id,
33
34
  },
34
35
  },
35
36
  };
@@ -0,0 +1,90 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { useAtomValue } from '@effect-atom/atom-react';
6
+ import React, { useMemo } from 'react';
7
+
8
+ import { Provider } from '@dxos/ai';
9
+ import { useOptionalCapability } from '@dxos/app-framework/ui';
10
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
11
+ import { type DXN } from '@dxos/keys';
12
+ import { useTranslation } from '@dxos/react-ui';
13
+ import { Form, type FormFieldMap, createSelectField } from '@dxos/react-ui-form';
14
+
15
+ import { meta } from '#meta';
16
+ import { Assistant, AssistantCapabilities, Ollama } from '#types';
17
+
18
+ import { presetsForProvider, resolveProvider } from '../../processor';
19
+ import { OllamaModels } from './OllamaModels';
20
+
21
+ export type AssistantSettingsProps = AppSurface.SettingsProps<Assistant.Settings>;
22
+
23
+ // The per-provider model-default options must match the chat picker (usePresets): the catalog models
24
+ // served by the provider, restricted to installed models when `installed` is supplied (local sidecar).
25
+ const presetOptions = (provider: DXN.DXN, installed?: ReadonlySet<string>) =>
26
+ presetsForProvider(provider)
27
+ .filter((preset) => !installed || installed.has(preset.backend))
28
+ .map((preset) => ({ value: preset.model, label: preset.label }));
29
+
30
+ export const AssistantSettings = ({ settings, onSettingsChange }: AssistantSettingsProps) => {
31
+ const { t } = useTranslation(meta.profile.key);
32
+
33
+ // The Ollama manager is the bundled sidecar (desktop only). Its presence selects the local
34
+ // provider: the managed `built-in` vs. an external `ollama` server.
35
+ const ollamaManager = useOptionalCapability(AssistantCapabilities.OllamaManager);
36
+ const localProvider = ollamaManager ? Provider.builtIn : Provider.ollama;
37
+ const localProviderKey = ollamaManager ? 'built-in' : 'ollama';
38
+
39
+ // Installed models reported by the bundled sidecar; restricts the local default to present models.
40
+ const localModels = useAtomValue(ollamaManager?.state ?? Ollama.emptyState);
41
+ const installed = useMemo(() => new Set(localModels.models.map((model) => model.name)), [localModels]);
42
+
43
+ // Reconcile a stored provider with the runtime (`ollama` → `built-in` on desktop) so the
44
+ // dropdown shows a concrete, available selection rather than blank.
45
+ const values = useMemo(
46
+ () => ({ ...settings, modelProvider: resolveProvider(settings.modelProvider, !!ollamaManager) }),
47
+ [settings, ollamaManager],
48
+ );
49
+
50
+ // Form `fieldMap` is keyed by dotted JSON path, so nested struct leaves are addressed directly.
51
+ const fieldMap = useMemo<FormFieldMap>(
52
+ () => ({
53
+ // `defaultLabel: null` drops the sentinel "Default" option — a provider is always concrete.
54
+ 'modelProvider': createSelectField({
55
+ defaultLabel: null,
56
+ options: [
57
+ { value: Provider.edge.id, label: t('settings.provider.edge.label') },
58
+ { value: localProvider.id, label: t(`settings.provider.${localProviderKey}.label`) },
59
+ { value: Provider.lmStudio.id, label: t('settings.provider.lmstudio.label') },
60
+ ],
61
+ }),
62
+ 'modelDefaults.edge': createSelectField({ options: presetOptions(Provider.edge.id) }),
63
+ // `built-in` and `ollama` share the `ollama` default key; the managed sidecar restricts to installed.
64
+ 'modelDefaults.ollama': createSelectField({
65
+ options: presetOptions(localProvider.id, ollamaManager ? installed : undefined),
66
+ }),
67
+ 'modelDefaults.lmstudio': createSelectField({ options: presetOptions(Provider.lmStudio.id) }),
68
+ }),
69
+ [t, localProvider, localProviderKey, ollamaManager, installed],
70
+ );
71
+
72
+ return (
73
+ <Form.Root
74
+ variant='settings'
75
+ schema={Assistant.Settings}
76
+ readonly={!onSettingsChange}
77
+ values={values}
78
+ onValuesChanged={(values) => onSettingsChange?.(() => values)}
79
+ >
80
+ <Form.Viewport scroll>
81
+ <Form.Content>
82
+ <Form.Section title={meta.profile.name ?? meta.profile.key}>
83
+ <Form.FieldSet fieldMap={fieldMap} />
84
+ </Form.Section>
85
+ <OllamaModels />
86
+ </Form.Content>
87
+ </Form.Viewport>
88
+ </Form.Root>
89
+ );
90
+ };