@sixb/app 0.1.11 → 0.1.12

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 (583) hide show
  1. package/LICENSE +2 -0
  2. package/README.md +25 -19
  3. package/assets/connector-icons/README.md +29 -0
  4. package/assets/connector-icons/ace-iot.ico +0 -0
  5. package/assets/connector-icons/companycam.png +0 -0
  6. package/assets/connector-icons/exa.png +0 -0
  7. package/assets/connector-icons/github.svg +1 -0
  8. package/assets/connector-icons/google.ico +0 -0
  9. package/assets/connector-icons/googleads.svg +29 -0
  10. package/assets/connector-icons/linkedin.svg +1 -0
  11. package/assets/connector-icons/mercury.svg +1 -0
  12. package/assets/connector-icons/meta.svg +1 -0
  13. package/assets/connector-icons/microsoft.ico +0 -0
  14. package/assets/connector-icons/notion.svg +1 -0
  15. package/assets/connector-icons/pandadoc.png +0 -0
  16. package/assets/connector-icons/pennylane.ico +0 -0
  17. package/assets/connector-icons/pipedrive.png +0 -0
  18. package/assets/connector-icons/plaud.png +0 -0
  19. package/assets/connector-icons/quickbooks.svg +1 -0
  20. package/assets/connector-icons/stripe.svg +1 -0
  21. package/assets/connector-icons/teamleader.ico +0 -0
  22. package/assets/connector-icons/tiktok.svg +1 -0
  23. package/assets/connector-icons/unipile.png +0 -0
  24. package/dist/agent/activity-label.d.ts +5 -0
  25. package/dist/agent/activity-label.d.ts.map +1 -0
  26. package/dist/agent/agent-chat.d.ts +24 -0
  27. package/dist/agent/agent-chat.d.ts.map +1 -0
  28. package/dist/agent/agent-context-provider.d.ts +9 -0
  29. package/dist/agent/agent-context-provider.d.ts.map +1 -0
  30. package/dist/agent/agent-execution-trace.d.ts +9 -0
  31. package/dist/agent/agent-execution-trace.d.ts.map +1 -0
  32. package/dist/agent/agent-panel.d.ts +27 -0
  33. package/dist/agent/agent-panel.d.ts.map +1 -0
  34. package/dist/agent/agent-surface-state.d.ts +22 -0
  35. package/dist/agent/agent-surface-state.d.ts.map +1 -0
  36. package/dist/agent/agent-surface.d.ts +46 -0
  37. package/dist/agent/agent-surface.d.ts.map +1 -0
  38. package/dist/agent/bash/bash-tool-view.d.ts +17 -0
  39. package/dist/agent/bash/bash-tool-view.d.ts.map +1 -0
  40. package/dist/agent/bash/data.d.ts +35 -0
  41. package/dist/agent/bash/data.d.ts.map +1 -0
  42. package/dist/agent/bash/interpret.d.ts +84 -0
  43. package/dist/agent/bash/interpret.d.ts.map +1 -0
  44. package/dist/agent/bash/renderers.d.ts +31 -0
  45. package/dist/agent/bash/renderers.d.ts.map +1 -0
  46. package/dist/agent/bash/shell.d.ts +16 -0
  47. package/dist/agent/bash/shell.d.ts.map +1 -0
  48. package/dist/agent/components/activity-status.d.ts +13 -0
  49. package/dist/agent/components/activity-status.d.ts.map +1 -0
  50. package/dist/agent/components/agent-thread-switcher.d.ts +16 -0
  51. package/dist/agent/components/agent-thread-switcher.d.ts.map +1 -0
  52. package/dist/agent/components/composer.d.ts +47 -0
  53. package/dist/agent/components/composer.d.ts.map +1 -0
  54. package/dist/agent/components/context-chips.d.ts +7 -0
  55. package/dist/agent/components/context-chips.d.ts.map +1 -0
  56. package/dist/agent/components/context-picker.d.ts +16 -0
  57. package/dist/agent/components/context-picker.d.ts.map +1 -0
  58. package/dist/agent/components/conversation-panel.d.ts +82 -0
  59. package/dist/agent/components/conversation-panel.d.ts.map +1 -0
  60. package/dist/agent/components/file-attachment-card.d.ts +8 -0
  61. package/dist/agent/components/file-attachment-card.d.ts.map +1 -0
  62. package/dist/agent/components/message-parts.d.ts +13 -0
  63. package/dist/agent/components/message-parts.d.ts.map +1 -0
  64. package/dist/agent/components/message-view.d.ts +58 -0
  65. package/dist/agent/components/message-view.d.ts.map +1 -0
  66. package/dist/agent/components/model-controls.d.ts +20 -0
  67. package/dist/agent/components/model-controls.d.ts.map +1 -0
  68. package/dist/agent/components/model-picker-row.d.ts +8 -0
  69. package/dist/agent/components/model-picker-row.d.ts.map +1 -0
  70. package/dist/agent/components/provider-logo.d.ts +6 -0
  71. package/dist/agent/components/provider-logo.d.ts.map +1 -0
  72. package/dist/agent/components/provider-logos.d.ts +3 -0
  73. package/dist/agent/components/provider-logos.d.ts.map +1 -0
  74. package/dist/agent/components/reasoning-effort-slider.d.ts +11 -0
  75. package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -0
  76. package/dist/agent/components/sandbox-recovery.d.ts +6 -0
  77. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -0
  78. package/dist/agent/components/transcript.d.ts +36 -0
  79. package/dist/agent/components/transcript.d.ts.map +1 -0
  80. package/dist/agent/components/web-fetch-tool-view.d.ts +5 -0
  81. package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -0
  82. package/dist/agent/components/web-search-tool-view.d.ts +5 -0
  83. package/dist/agent/components/web-search-tool-view.d.ts.map +1 -0
  84. package/dist/agent/components/web-sources.d.ts +9 -0
  85. package/dist/agent/components/web-sources.d.ts.map +1 -0
  86. package/dist/agent/document-preview/classify.d.ts +4 -0
  87. package/dist/agent/document-preview/classify.d.ts.map +1 -0
  88. package/dist/agent/document-preview/content-policy.d.ts +10 -0
  89. package/dist/agent/document-preview/content-policy.d.ts.map +1 -0
  90. package/dist/agent/document-preview/content.d.ts +26 -0
  91. package/dist/agent/document-preview/content.d.ts.map +1 -0
  92. package/dist/agent/document-preview/delimited.d.ts +19 -0
  93. package/dist/agent/document-preview/delimited.d.ts.map +1 -0
  94. package/dist/agent/document-preview/document-preview-root.d.ts +24 -0
  95. package/dist/agent/document-preview/document-preview-root.d.ts.map +1 -0
  96. package/dist/agent/document-preview/file-size.d.ts +3 -0
  97. package/dist/agent/document-preview/file-size.d.ts.map +1 -0
  98. package/dist/agent/document-preview/html.d.ts +9 -0
  99. package/dist/agent/document-preview/html.d.ts.map +1 -0
  100. package/dist/agent/document-preview/persistence.d.ts +6 -0
  101. package/dist/agent/document-preview/persistence.d.ts.map +1 -0
  102. package/dist/agent/document-preview/presentation.d.ts +3 -0
  103. package/dist/agent/document-preview/presentation.d.ts.map +1 -0
  104. package/dist/agent/document-preview/rendering.d.ts +14 -0
  105. package/dist/agent/document-preview/rendering.d.ts.map +1 -0
  106. package/dist/agent/document-preview/source.d.ts +13 -0
  107. package/dist/agent/document-preview/source.d.ts.map +1 -0
  108. package/dist/agent/document-preview/state.d.ts +27 -0
  109. package/dist/agent/document-preview/state.d.ts.map +1 -0
  110. package/dist/agent/document-preview/types.d.ts +33 -0
  111. package/dist/agent/document-preview/types.d.ts.map +1 -0
  112. package/dist/agent/format.d.ts +12 -0
  113. package/dist/agent/format.d.ts.map +1 -0
  114. package/dist/agent/hooks/use-agent-conversation.d.ts +338 -0
  115. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -0
  116. package/dist/agent/hooks/use-thread-stream.d.ts +22 -0
  117. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -0
  118. package/dist/agent/i18n/en.d.ts +589 -0
  119. package/dist/agent/i18n/en.d.ts.map +1 -0
  120. package/dist/agent/i18n/fr.d.ts +4 -0
  121. package/dist/agent/i18n/fr.d.ts.map +1 -0
  122. package/dist/agent/i18n/index.d.ts +1161 -0
  123. package/dist/agent/i18n/index.d.ts.map +1 -0
  124. package/dist/agent/live-run.d.ts +48 -0
  125. package/dist/agent/live-run.d.ts.map +1 -0
  126. package/dist/agent/model-selection.d.ts +33 -0
  127. package/dist/agent/model-selection.d.ts.map +1 -0
  128. package/dist/agent/object-context-title.d.ts +22 -0
  129. package/dist/agent/object-context-title.d.ts.map +1 -0
  130. package/dist/agent/parts.d.ts +42 -0
  131. package/dist/agent/parts.d.ts.map +1 -0
  132. package/dist/agent/react-router.d.ts +8 -0
  133. package/dist/agent/react-router.d.ts.map +1 -0
  134. package/dist/agent/read/interpret.d.ts +24 -0
  135. package/dist/agent/read/interpret.d.ts.map +1 -0
  136. package/dist/agent/read/read-tool-view.d.ts +5 -0
  137. package/dist/agent/read/read-tool-view.d.ts.map +1 -0
  138. package/dist/agent/requester-settings.d.ts +15 -0
  139. package/dist/agent/requester-settings.d.ts.map +1 -0
  140. package/dist/agent/run-presentation.d.ts +70 -0
  141. package/dist/agent/run-presentation.d.ts.map +1 -0
  142. package/dist/agent/thread-navigation.d.ts +5 -0
  143. package/dist/agent/thread-navigation.d.ts.map +1 -0
  144. package/dist/agent/types.d.ts +22 -0
  145. package/dist/agent/types.d.ts.map +1 -0
  146. package/dist/agent/utils/context-display.d.ts +5 -0
  147. package/dist/agent/utils/context-display.d.ts.map +1 -0
  148. package/dist/agent/utils/context-mention.d.ts +12 -0
  149. package/dist/agent/utils/context-mention.d.ts.map +1 -0
  150. package/dist/agent/utils/web-fetch.d.ts +4 -0
  151. package/dist/agent/utils/web-fetch.d.ts.map +1 -0
  152. package/dist/agent/utils/web-search.d.ts +20 -0
  153. package/dist/agent/utils/web-search.d.ts.map +1 -0
  154. package/dist/agent/view-file/interpret.d.ts +9 -0
  155. package/dist/agent/view-file/interpret.d.ts.map +1 -0
  156. package/dist/agent/view-file/view-file-tool-view.d.ts +9 -0
  157. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -0
  158. package/dist/agent/workspace.d.ts +11 -0
  159. package/dist/agent/workspace.d.ts.map +1 -0
  160. package/dist/chunk-3a99tmwg.js +176 -0
  161. package/dist/chunk-3a99tmwg.js.map +10 -0
  162. package/dist/chunk-48pkffj6.js +20 -0
  163. package/dist/chunk-48pkffj6.js.map +10 -0
  164. package/dist/chunk-6n5pdqp0.js +115 -0
  165. package/dist/chunk-6n5pdqp0.js.map +11 -0
  166. package/dist/chunk-j97e06rg.js +10668 -0
  167. package/dist/chunk-j97e06rg.js.map +80 -0
  168. package/dist/chunk-md3p7qdt.js +379 -0
  169. package/dist/chunk-md3p7qdt.js.map +10 -0
  170. package/dist/chunk-shmw3f8t.js +251 -0
  171. package/dist/chunk-shmw3f8t.js.map +10 -0
  172. package/dist/chunk-yvhzn4ye.js +98 -0
  173. package/dist/chunk-yvhzn4ye.js.map +10 -0
  174. package/dist/chunk-zcxrt24m.js +148 -0
  175. package/dist/chunk-zcxrt24m.js.map +10 -0
  176. package/dist/codegen.d.ts +6 -4
  177. package/dist/codegen.d.ts.map +1 -1
  178. package/dist/createCustomApp.d.ts +14 -7
  179. package/dist/createCustomApp.d.ts.map +1 -1
  180. package/dist/index.d.ts +33 -3
  181. package/dist/index.d.ts.map +1 -1
  182. package/dist/index.js +958 -2890
  183. package/dist/index.js.map +14 -13
  184. package/dist/locale-messages.d.ts +72 -6
  185. package/dist/locale-messages.d.ts.map +1 -1
  186. package/dist/locale.d.ts +73 -8
  187. package/dist/locale.d.ts.map +1 -1
  188. package/dist/locale.js +10 -19
  189. package/dist/locale.js.map +3 -4
  190. package/dist/metadata.d.ts.map +1 -1
  191. package/dist/pages/data/connectors.d.ts +5 -0
  192. package/dist/pages/data/connectors.d.ts.map +1 -0
  193. package/dist/pages/data/datasets.d.ts +30 -0
  194. package/dist/pages/data/datasets.d.ts.map +1 -0
  195. package/dist/pages/data/live-updates.d.ts +13 -0
  196. package/dist/pages/data/live-updates.d.ts.map +1 -0
  197. package/dist/pages/data/messages.d.ts +354 -0
  198. package/dist/pages/data/messages.d.ts.map +1 -0
  199. package/dist/pages/data/pipeline-canvas.d.ts +34 -0
  200. package/dist/pages/data/pipeline-canvas.d.ts.map +1 -0
  201. package/dist/pages/data/pipelines.d.ts +9 -0
  202. package/dist/pages/data/pipelines.d.ts.map +1 -0
  203. package/dist/pages/data/projections.d.ts +10 -0
  204. package/dist/pages/data/projections.d.ts.map +1 -0
  205. package/dist/pages/data/schema.d.ts +20 -0
  206. package/dist/pages/data/schema.d.ts.map +1 -0
  207. package/dist/pages/data/shared.d.ts +13 -0
  208. package/dist/pages/data/shared.d.ts.map +1 -0
  209. package/dist/pages/data/sync-button.d.ts +15 -0
  210. package/dist/pages/data/sync-button.d.ts.map +1 -0
  211. package/dist/pages/data/syncs.d.ts +5 -0
  212. package/dist/pages/data/syncs.d.ts.map +1 -0
  213. package/dist/pages/home.d.ts +6 -0
  214. package/dist/pages/home.d.ts.map +1 -0
  215. package/dist/pages/mosaic.d.ts +5 -0
  216. package/dist/pages/mosaic.d.ts.map +1 -0
  217. package/dist/pages/observability/action-run.d.ts +19 -0
  218. package/dist/pages/observability/action-run.d.ts.map +1 -0
  219. package/dist/pages/observability/ai-usage/calls.d.ts +27 -0
  220. package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -0
  221. package/dist/pages/observability/ai-usage/charts.d.ts +23 -0
  222. package/dist/pages/observability/ai-usage/charts.d.ts.map +1 -0
  223. package/dist/pages/observability/ai-usage/format.d.ts +101 -0
  224. package/dist/pages/observability/ai-usage/format.d.ts.map +1 -0
  225. package/dist/pages/observability/ai-usage/limits.d.ts +12 -0
  226. package/dist/pages/observability/ai-usage/limits.d.ts.map +1 -0
  227. package/dist/pages/observability/ai-usage/messages.d.ts +431 -0
  228. package/dist/pages/observability/ai-usage/messages.d.ts.map +1 -0
  229. package/dist/pages/observability/ai-usage/page.d.ts +6 -0
  230. package/dist/pages/observability/ai-usage/page.d.ts.map +1 -0
  231. package/dist/pages/observability/live-updates.d.ts +3 -0
  232. package/dist/pages/observability/live-updates.d.ts.map +1 -0
  233. package/dist/pages/observability/logs.d.ts +11 -0
  234. package/dist/pages/observability/logs.d.ts.map +1 -0
  235. package/dist/pages/observability/messages.d.ts +329 -0
  236. package/dist/pages/observability/messages.d.ts.map +1 -0
  237. package/dist/pages/observability/runs.d.ts +7 -0
  238. package/dist/pages/observability/runs.d.ts.map +1 -0
  239. package/dist/pages/observability/workflow-run.d.ts +6 -0
  240. package/dist/pages/observability/workflow-run.d.ts.map +1 -0
  241. package/dist/pages/ontology/actions.d.ts +3 -0
  242. package/dist/pages/ontology/actions.d.ts.map +1 -0
  243. package/dist/pages/ontology/components/action-button.d.ts +12 -0
  244. package/dist/pages/ontology/components/action-button.d.ts.map +1 -0
  245. package/dist/pages/ontology/components/action-param-null-control.d.ts +7 -0
  246. package/dist/pages/ontology/components/action-param-null-control.d.ts.map +1 -0
  247. package/dist/pages/ontology/components/collection-toolbar.d.ts +21 -0
  248. package/dist/pages/ontology/components/collection-toolbar.d.ts.map +1 -0
  249. package/dist/pages/ontology/components/common.d.ts +16 -0
  250. package/dist/pages/ontology/components/common.d.ts.map +1 -0
  251. package/dist/pages/ontology/components/file-ref-upload-field.d.ts +13 -0
  252. package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +1 -0
  253. package/dist/pages/ontology/components/object-filter-popover.d.ts +9 -0
  254. package/dist/pages/ontology/components/object-filter-popover.d.ts.map +1 -0
  255. package/dist/pages/ontology/components/object-icon.d.ts +7 -0
  256. package/dist/pages/ontology/components/object-icon.d.ts.map +1 -0
  257. package/dist/pages/ontology/components/object-query-bar.d.ts +21 -0
  258. package/dist/pages/ontology/components/object-query-bar.d.ts.map +1 -0
  259. package/dist/pages/ontology/components/telemetry-chart.d.ts +18 -0
  260. package/dist/pages/ontology/components/telemetry-chart.d.ts.map +1 -0
  261. package/dist/pages/ontology/components/telemetry-grid.d.ts +19 -0
  262. package/dist/pages/ontology/components/telemetry-grid.d.ts.map +1 -0
  263. package/dist/pages/ontology/components/telemetry-tile.d.ts +18 -0
  264. package/dist/pages/ontology/components/telemetry-tile.d.ts.map +1 -0
  265. package/dist/pages/ontology/components/telemetry-value.d.ts +10 -0
  266. package/dist/pages/ontology/components/telemetry-value.d.ts.map +1 -0
  267. package/dist/pages/ontology/components/usage-bar.d.ts +12 -0
  268. package/dist/pages/ontology/components/usage-bar.d.ts.map +1 -0
  269. package/dist/pages/ontology/graph.d.ts +6 -0
  270. package/dist/pages/ontology/graph.d.ts.map +1 -0
  271. package/dist/pages/ontology/hooks/object-live-updates.d.ts +5 -0
  272. package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +1 -0
  273. package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts +8 -0
  274. package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
  275. package/dist/pages/ontology/hooks/object-type-counts.d.ts +5 -0
  276. package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +1 -0
  277. package/dist/pages/ontology/hooks/rule-live-updates.d.ts +9 -0
  278. package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +1 -0
  279. package/dist/pages/ontology/hooks/workflow-live-updates.d.ts +6 -0
  280. package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
  281. package/dist/pages/ontology/lib/action-params.d.ts +55 -0
  282. package/dist/pages/ontology/lib/action-params.d.ts.map +1 -0
  283. package/dist/pages/ontology/lib/format-value.d.ts +3 -0
  284. package/dist/pages/ontology/lib/format-value.d.ts.map +1 -0
  285. package/dist/pages/ontology/lib/labels.d.ts +3 -0
  286. package/dist/pages/ontology/lib/labels.d.ts.map +1 -0
  287. package/dist/pages/ontology/lib/live-update-keys.d.ts +15 -0
  288. package/dist/pages/ontology/lib/live-update-keys.d.ts.map +1 -0
  289. package/dist/pages/ontology/lib/object-query.d.ts +72 -0
  290. package/dist/pages/ontology/lib/object-query.d.ts.map +1 -0
  291. package/dist/pages/ontology/lib/ontology-graph-layout.d.ts +68 -0
  292. package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
  293. package/dist/pages/ontology/lib/ontology-graph-links.d.ts +4 -0
  294. package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +1 -0
  295. package/dist/pages/ontology/lib/telemetry-history.d.ts +10 -0
  296. package/dist/pages/ontology/lib/telemetry-history.d.ts.map +1 -0
  297. package/dist/pages/ontology/lib/time.d.ts +3 -0
  298. package/dist/pages/ontology/lib/time.d.ts.map +1 -0
  299. package/dist/pages/ontology/lib/user-preferences.d.ts +8 -0
  300. package/dist/pages/ontology/lib/user-preferences.d.ts.map +1 -0
  301. package/dist/pages/ontology/object-page.d.ts +7 -0
  302. package/dist/pages/ontology/object-page.d.ts.map +1 -0
  303. package/dist/pages/ontology/object-type.d.ts +3 -0
  304. package/dist/pages/ontology/object-type.d.ts.map +1 -0
  305. package/dist/pages/ontology/object-types.d.ts +7 -0
  306. package/dist/pages/ontology/object-types.d.ts.map +1 -0
  307. package/dist/pages/ontology/objects.d.ts +6 -0
  308. package/dist/pages/ontology/objects.d.ts.map +1 -0
  309. package/dist/pages/ontology/rules.d.ts +32 -0
  310. package/dist/pages/ontology/rules.d.ts.map +1 -0
  311. package/dist/pages/ontology/workflow.d.ts +6 -0
  312. package/dist/pages/ontology/workflow.d.ts.map +1 -0
  313. package/dist/pages/ontology/workflows/agent-execution-panel.d.ts +17 -0
  314. package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
  315. package/dist/pages/ontology/workflows/intervention-panel.d.ts +5 -0
  316. package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +1 -0
  317. package/dist/pages/ontology/workflows/node-execution-panel.d.ts +11 -0
  318. package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +1 -0
  319. package/dist/pages/ontology/workflows/request-run-dialog.d.ts +5 -0
  320. package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +1 -0
  321. package/dist/pages/ontology/workflows/run-debug-section.d.ts +11 -0
  322. package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +1 -0
  323. package/dist/pages/ontology/workflows/run-input-form.d.ts +18 -0
  324. package/dist/pages/ontology/workflows/run-input-form.d.ts.map +1 -0
  325. package/dist/pages/ontology/workflows/run-progress.d.ts +15 -0
  326. package/dist/pages/ontology/workflows/run-progress.d.ts.map +1 -0
  327. package/dist/pages/ontology/workflows/schema-shape.d.ts +10 -0
  328. package/dist/pages/ontology/workflows/schema-shape.d.ts.map +1 -0
  329. package/dist/pages/ontology/workflows/status-badge.d.ts +5 -0
  330. package/dist/pages/ontology/workflows/status-badge.d.ts.map +1 -0
  331. package/dist/pages/ontology/workflows/utils.d.ts +29 -0
  332. package/dist/pages/ontology/workflows/utils.d.ts.map +1 -0
  333. package/dist/pages/ontology/workflows/workflow-card.d.ts +5 -0
  334. package/dist/pages/ontology/workflows/workflow-card.d.ts.map +1 -0
  335. package/dist/pages/ontology/workflows.d.ts +3 -0
  336. package/dist/pages/ontology/workflows.d.ts.map +1 -0
  337. package/dist/pages/routes.d.ts +19 -0
  338. package/dist/pages/routes.d.ts.map +1 -0
  339. package/dist/pages/section-page.d.ts +91 -0
  340. package/dist/pages/section-page.d.ts.map +1 -0
  341. package/dist/pages/section-ui.d.ts +211 -0
  342. package/dist/pages/section-ui.d.ts.map +1 -0
  343. package/dist/pages/settings/controls.d.ts +94 -0
  344. package/dist/pages/settings/controls.d.ts.map +1 -0
  345. package/dist/pages/settings/developers.d.ts +3 -0
  346. package/dist/pages/settings/developers.d.ts.map +1 -0
  347. package/dist/pages/settings/members.d.ts +3 -0
  348. package/dist/pages/settings/members.d.ts.map +1 -0
  349. package/dist/pages/settings/messages.d.ts +538 -0
  350. package/dist/pages/settings/messages.d.ts.map +1 -0
  351. package/dist/pages/settings/personal.d.ts +6 -0
  352. package/dist/pages/settings/personal.d.ts.map +1 -0
  353. package/dist/pages/settings/service-accounts.d.ts +3 -0
  354. package/dist/pages/settings/service-accounts.d.ts.map +1 -0
  355. package/dist/pages/settings/sessions.d.ts +3 -0
  356. package/dist/pages/settings/sessions.d.ts.map +1 -0
  357. package/dist/pages/values.d.ts +77 -0
  358. package/dist/pages/values.d.ts.map +1 -0
  359. package/dist/pages.d.ts +42 -0
  360. package/dist/pages.d.ts.map +1 -0
  361. package/dist/pages.js +23931 -0
  362. package/dist/pages.js.map +85 -0
  363. package/dist/runtime.d.ts +0 -2
  364. package/dist/runtime.d.ts.map +1 -1
  365. package/dist/sections/catalog.d.ts +37 -0
  366. package/dist/sections/catalog.d.ts.map +1 -0
  367. package/dist/sections/counts.d.ts +7 -0
  368. package/dist/sections/counts.d.ts.map +1 -0
  369. package/dist/sections/sections.d.ts +67 -0
  370. package/dist/sections/sections.d.ts.map +1 -0
  371. package/dist/server.d.ts +8 -0
  372. package/dist/server.d.ts.map +1 -0
  373. package/dist/server.js +2983 -0
  374. package/dist/server.js.map +19 -0
  375. package/dist/session.d.ts +18 -0
  376. package/dist/session.d.ts.map +1 -0
  377. package/dist/shell/agent-dock.d.ts +7 -0
  378. package/dist/shell/agent-dock.d.ts.map +1 -0
  379. package/dist/shell/app-shell.d.ts +42 -0
  380. package/dist/shell/app-shell.d.ts.map +1 -0
  381. package/dist/shell/brand.d.ts +15 -0
  382. package/dist/shell/brand.d.ts.map +1 -0
  383. package/dist/shell/nav-items.d.ts +34 -0
  384. package/dist/shell/nav-items.d.ts.map +1 -0
  385. package/dist/shell/search-command.d.ts +12 -0
  386. package/dist/shell/search-command.d.ts.map +1 -0
  387. package/dist/shell/section-nav.d.ts +13 -0
  388. package/dist/shell/section-nav.d.ts.map +1 -0
  389. package/dist/shell/user-menu.d.ts +25 -0
  390. package/dist/shell/user-menu.d.ts.map +1 -0
  391. package/dist/tailwind.d.ts +4 -4
  392. package/dist/tailwind.d.ts.map +1 -1
  393. package/package.json +24 -21
  394. package/src/agent/activity-label.ts +63 -0
  395. package/src/agent/agent-chat.tsx +237 -0
  396. package/src/agent/agent-context-provider.tsx +92 -0
  397. package/src/agent/agent-execution-trace.tsx +316 -0
  398. package/src/agent/agent-panel.tsx +79 -0
  399. package/src/agent/agent-surface-state.ts +113 -0
  400. package/src/agent/agent-surface.tsx +363 -0
  401. package/src/agent/agent.css +231 -0
  402. package/src/agent/bash/bash-tool-view.tsx +288 -0
  403. package/src/agent/bash/data.ts +137 -0
  404. package/src/agent/bash/interpret.ts +769 -0
  405. package/src/agent/bash/renderers.tsx +503 -0
  406. package/src/agent/bash/shell.ts +195 -0
  407. package/src/agent/components/activity-status.tsx +86 -0
  408. package/src/agent/components/agent-thread-switcher.tsx +346 -0
  409. package/src/agent/components/composer.tsx +870 -0
  410. package/src/agent/components/context-chips.tsx +63 -0
  411. package/src/agent/components/context-picker.tsx +88 -0
  412. package/src/agent/components/conversation-panel.tsx +352 -0
  413. package/src/agent/components/file-attachment-card.tsx +137 -0
  414. package/src/agent/components/message-parts.tsx +280 -0
  415. package/src/agent/components/message-view.tsx +428 -0
  416. package/src/agent/components/model-controls.tsx +204 -0
  417. package/src/agent/components/model-picker-row.tsx +136 -0
  418. package/src/agent/components/provider-logo.tsx +31 -0
  419. package/src/agent/components/provider-logos.ts +24 -0
  420. package/src/agent/components/reasoning-effort-slider.tsx +121 -0
  421. package/src/agent/components/sandbox-recovery.tsx +49 -0
  422. package/src/agent/components/transcript.tsx +239 -0
  423. package/src/agent/components/web-fetch-tool-view.tsx +69 -0
  424. package/src/agent/components/web-search-tool-view.tsx +37 -0
  425. package/src/agent/components/web-sources.tsx +159 -0
  426. package/src/agent/document-preview/classify.ts +55 -0
  427. package/src/agent/document-preview/content-policy.ts +37 -0
  428. package/src/agent/document-preview/content.ts +82 -0
  429. package/src/agent/document-preview/delimited.ts +118 -0
  430. package/src/agent/document-preview/document-preview-root.tsx +1017 -0
  431. package/src/agent/document-preview/file-size.ts +26 -0
  432. package/src/agent/document-preview/html.ts +67 -0
  433. package/src/agent/document-preview/persistence.ts +115 -0
  434. package/src/agent/document-preview/presentation.ts +13 -0
  435. package/src/agent/document-preview/rendering.ts +48 -0
  436. package/src/agent/document-preview/source.ts +48 -0
  437. package/src/agent/document-preview/state.ts +77 -0
  438. package/src/agent/document-preview/types.ts +36 -0
  439. package/src/agent/format.ts +60 -0
  440. package/src/agent/hooks/use-agent-conversation.ts +536 -0
  441. package/src/agent/hooks/use-thread-stream.ts +121 -0
  442. package/src/agent/i18n/en.ts +542 -0
  443. package/src/agent/i18n/fr.ts +574 -0
  444. package/src/agent/i18n/index.ts +14 -0
  445. package/src/agent/live-run.ts +257 -0
  446. package/src/agent/model-selection.ts +88 -0
  447. package/src/agent/object-context-title.ts +57 -0
  448. package/src/agent/parts.ts +119 -0
  449. package/src/agent/react-router.tsx +84 -0
  450. package/src/agent/read/interpret.ts +101 -0
  451. package/src/agent/read/read-tool-view.tsx +92 -0
  452. package/src/agent/requester-settings.ts +55 -0
  453. package/src/agent/run-presentation.ts +211 -0
  454. package/src/agent/thread-navigation.ts +11 -0
  455. package/src/agent/types.ts +37 -0
  456. package/src/agent/utils/context-display.ts +72 -0
  457. package/src/agent/utils/context-mention.ts +28 -0
  458. package/src/agent/utils/web-fetch.ts +20 -0
  459. package/src/agent/utils/web-search.ts +106 -0
  460. package/src/agent/view-file/interpret.ts +22 -0
  461. package/src/agent/view-file/view-file-tool-view.tsx +120 -0
  462. package/src/{agents.ts → agent/workspace.ts} +4 -19
  463. package/src/codegen.ts +61 -79
  464. package/src/createCustomApp.ts +155 -67
  465. package/src/index.ts +52 -16
  466. package/src/locale-messages.ts +121 -12
  467. package/src/locale.ts +1 -2
  468. package/src/metadata.ts +35 -1
  469. package/src/pages/canvas.css +43 -0
  470. package/src/pages/data/connectors.tsx +317 -0
  471. package/src/pages/data/datasets.tsx +731 -0
  472. package/src/pages/data/live-updates.ts +71 -0
  473. package/src/pages/data/messages.ts +349 -0
  474. package/src/pages/data/pipeline-canvas.tsx +288 -0
  475. package/src/pages/data/pipelines.tsx +710 -0
  476. package/src/pages/data/projections.tsx +482 -0
  477. package/src/pages/data/schema.tsx +62 -0
  478. package/src/pages/data/shared.tsx +78 -0
  479. package/src/pages/data/sync-button.tsx +103 -0
  480. package/src/pages/data/syncs.tsx +326 -0
  481. package/src/pages/home.tsx +64 -0
  482. package/src/pages/mosaic.tsx +97 -0
  483. package/src/pages/observability/action-run.tsx +229 -0
  484. package/src/pages/observability/ai-usage/calls.tsx +541 -0
  485. package/src/pages/observability/ai-usage/charts.tsx +126 -0
  486. package/src/pages/observability/ai-usage/format.ts +276 -0
  487. package/src/pages/observability/ai-usage/limits.tsx +629 -0
  488. package/src/pages/observability/ai-usage/messages.ts +446 -0
  489. package/src/pages/observability/ai-usage/page.tsx +814 -0
  490. package/src/pages/observability/live-updates.ts +19 -0
  491. package/src/pages/observability/logs.tsx +617 -0
  492. package/src/pages/observability/messages.ts +336 -0
  493. package/src/pages/observability/runs.tsx +732 -0
  494. package/src/pages/observability/workflow-run.tsx +323 -0
  495. package/src/pages/ontology/actions.tsx +749 -0
  496. package/src/pages/ontology/components/action-button.tsx +355 -0
  497. package/src/pages/ontology/components/action-param-null-control.tsx +35 -0
  498. package/src/pages/ontology/components/collection-toolbar.tsx +61 -0
  499. package/src/pages/ontology/components/common.tsx +60 -0
  500. package/src/pages/ontology/components/file-ref-upload-field.tsx +279 -0
  501. package/src/pages/ontology/components/object-filter-popover.tsx +311 -0
  502. package/src/pages/ontology/components/object-icon.tsx +133 -0
  503. package/src/pages/ontology/components/object-query-bar.tsx +217 -0
  504. package/src/pages/ontology/components/telemetry-chart.tsx +392 -0
  505. package/src/pages/ontology/components/telemetry-grid.tsx +137 -0
  506. package/src/pages/ontology/components/telemetry-tile.tsx +164 -0
  507. package/src/pages/ontology/components/telemetry-value.tsx +91 -0
  508. package/src/pages/ontology/components/usage-bar.tsx +64 -0
  509. package/src/pages/ontology/graph.tsx +1283 -0
  510. package/src/pages/ontology/hooks/object-live-updates.ts +53 -0
  511. package/src/pages/ontology/hooks/object-telemetry-updates.ts +45 -0
  512. package/src/pages/ontology/hooks/object-type-counts.ts +27 -0
  513. package/src/pages/ontology/hooks/rule-live-updates.ts +28 -0
  514. package/src/pages/ontology/hooks/workflow-live-updates.ts +20 -0
  515. package/src/pages/ontology/lib/action-params.ts +231 -0
  516. package/src/pages/ontology/lib/format-value.ts +34 -0
  517. package/src/pages/ontology/lib/labels.ts +50 -0
  518. package/src/pages/ontology/lib/live-update-keys.ts +62 -0
  519. package/src/pages/ontology/lib/object-query.ts +372 -0
  520. package/src/pages/ontology/lib/ontology-graph-layout.ts +1004 -0
  521. package/src/pages/ontology/lib/ontology-graph-links.ts +15 -0
  522. package/src/pages/ontology/lib/telemetry-history.ts +56 -0
  523. package/src/pages/ontology/lib/time.ts +23 -0
  524. package/src/pages/ontology/lib/user-preferences.ts +52 -0
  525. package/src/pages/ontology/object-page.tsx +1029 -0
  526. package/src/pages/ontology/object-type.tsx +910 -0
  527. package/src/pages/ontology/object-types.tsx +240 -0
  528. package/src/pages/ontology/objects.tsx +938 -0
  529. package/src/pages/ontology/rules.tsx +805 -0
  530. package/src/pages/ontology/workflow.tsx +1485 -0
  531. package/src/pages/ontology/workflows/agent-execution-panel.tsx +340 -0
  532. package/src/pages/ontology/workflows/intervention-panel.tsx +261 -0
  533. package/src/pages/ontology/workflows/node-execution-panel.tsx +86 -0
  534. package/src/pages/ontology/workflows/request-run-dialog.tsx +197 -0
  535. package/src/pages/ontology/workflows/run-debug-section.tsx +54 -0
  536. package/src/pages/ontology/workflows/run-input-form.tsx +900 -0
  537. package/src/pages/ontology/workflows/run-progress.tsx +83 -0
  538. package/src/pages/ontology/workflows/schema-shape.tsx +206 -0
  539. package/src/pages/ontology/workflows/status-badge.tsx +15 -0
  540. package/src/pages/ontology/workflows/utils.ts +107 -0
  541. package/src/pages/ontology/workflows/workflow-card.tsx +48 -0
  542. package/src/pages/ontology/workflows.tsx +143 -0
  543. package/src/pages/routes.ts +48 -0
  544. package/src/pages/section-page.tsx +272 -0
  545. package/src/pages/section-ui.tsx +771 -0
  546. package/src/pages/settings/controls.tsx +721 -0
  547. package/src/pages/settings/developers.tsx +163 -0
  548. package/src/pages/settings/members.tsx +1018 -0
  549. package/src/pages/settings/messages.ts +551 -0
  550. package/src/pages/settings/personal.tsx +97 -0
  551. package/src/pages/settings/service-accounts.tsx +623 -0
  552. package/src/pages/settings/sessions.tsx +183 -0
  553. package/src/pages/values.tsx +700 -0
  554. package/src/pages.ts +56 -0
  555. package/src/runtime.ts +0 -3
  556. package/src/sections/catalog.ts +181 -0
  557. package/src/sections/counts.ts +33 -0
  558. package/src/sections/sections.tsx +257 -0
  559. package/src/server.ts +19 -0
  560. package/src/session.ts +29 -0
  561. package/src/shell/agent-dock.tsx +32 -0
  562. package/src/shell/app-shell.tsx +142 -0
  563. package/src/shell/brand.tsx +47 -0
  564. package/src/shell/nav-items.tsx +136 -0
  565. package/src/shell/search-command.tsx +158 -0
  566. package/src/shell/section-nav.tsx +61 -0
  567. package/src/shell/user-menu.tsx +206 -0
  568. package/src/tailwind.ts +4 -4
  569. package/dist/agents.d.ts +0 -11
  570. package/dist/agents.d.ts.map +0 -1
  571. package/dist/agents.js +0 -41
  572. package/dist/agents.js.map +0 -10
  573. package/dist/auth.js +0 -3
  574. package/dist/auth.js.map +0 -9
  575. package/dist/browser.d.ts +0 -3
  576. package/dist/browser.d.ts.map +0 -1
  577. package/dist/browser.js +0 -9
  578. package/dist/browser.js.map +0 -9
  579. package/dist/chunk-cftmy40z.js +0 -70
  580. package/dist/chunk-cftmy40z.js.map +0 -10
  581. package/dist/chunk-e1gj8c1a.js +0 -8
  582. package/dist/chunk-e1gj8c1a.js.map +0 -10
  583. package/src/browser.ts +0 -2
@@ -0,0 +1,106 @@
1
+ import type { NormalizedPart } from "../parts"
2
+
3
+ export interface WebSource {
4
+ readonly id: string
5
+ readonly url: string
6
+ readonly domain: string
7
+ readonly faviconUrl: string
8
+ readonly title: string
9
+ readonly excerpt: string
10
+ readonly author?: string
11
+ /** ISO date as published by the source; see {@link formatPublicationDate}. */
12
+ readonly publishedDate?: string
13
+ }
14
+
15
+ /** A publication date in the reader's language. Sources publish calendar dates, read in UTC. */
16
+ export function formatPublicationDate(value: string, locale: string): string {
17
+ return new Intl.DateTimeFormat(locale, {
18
+ day: "numeric",
19
+ month: "short",
20
+ year: "numeric",
21
+ timeZone: "UTC",
22
+ }).format(new Date(value))
23
+ }
24
+
25
+ /** Recognize the bounded Exa web_search output, without depending on the connector package. */
26
+ export function coerceWebSearchOutput(value: unknown): readonly WebSource[] | null {
27
+ if (!isRecord(value) || !Array.isArray(value.results)) return null
28
+ const sources: WebSource[] = []
29
+ for (const result of value.results) {
30
+ if (
31
+ !isRecord(result) ||
32
+ typeof result.url !== "string" ||
33
+ typeof result.title !== "string" ||
34
+ typeof result.text !== "string"
35
+ ) {
36
+ return null
37
+ }
38
+ const url = httpUrl(result.url)
39
+ if (!url) continue
40
+ const page = new URL(url)
41
+ page.hash = ""
42
+ sources.push({
43
+ id: page.href,
44
+ url: url.href,
45
+ domain: url.hostname.replace(/^www\./, ""),
46
+ faviconUrl: new URL("/favicon.ico", url.origin).href,
47
+ title: compact(result.title) || url.hostname,
48
+ excerpt: excerpt(result.text),
49
+ author: typeof result.author === "string" ? compact(result.author) : undefined,
50
+ publishedDate: publicationDate(result.publishedDate),
51
+ })
52
+ }
53
+ // Invalid links are not evidence that a search returned zero results. Keep the inspector.
54
+ return value.results.length > 0 && sources.length === 0 ? null : sources
55
+ }
56
+
57
+ export function webSearchQuery(input: unknown): string | undefined {
58
+ return isRecord(input) && typeof input.query === "string" ? input.query.trim() : undefined
59
+ }
60
+
61
+ /** Keep provider order and the first occurrence; separate pages on one domain remain separate. */
62
+ export function collectWebSources(parts: readonly NormalizedPart[]): readonly WebSource[] {
63
+ const sources = new Map<string, WebSource>()
64
+ for (const part of parts) {
65
+ if (
66
+ part.kind !== "tool" ||
67
+ part.tool.toolName !== "web_search" ||
68
+ part.tool.state !== "output-available"
69
+ ) {
70
+ continue
71
+ }
72
+ for (const source of coerceWebSearchOutput(part.tool.output) ?? []) {
73
+ if (!sources.has(source.id)) sources.set(source.id, source)
74
+ }
75
+ }
76
+ return [...sources.values()]
77
+ }
78
+
79
+ function httpUrl(value: string): URL | null {
80
+ try {
81
+ const url = new URL(value)
82
+ if (!["http:", "https:"].includes(url.protocol) || url.username || url.password) return null
83
+ return url
84
+ } catch {
85
+ return null
86
+ }
87
+ }
88
+
89
+ function compact(value: string): string {
90
+ return value.replace(/\s+/g, " ").trim()
91
+ }
92
+
93
+ function excerpt(value: string): string {
94
+ const text = compact(value)
95
+ return text.length > 360 ? `${text.slice(0, 357).trimEnd()}…` : text
96
+ }
97
+
98
+ function publicationDate(value: unknown): string | undefined {
99
+ if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(value)) return
100
+ if (!Number.isFinite(new Date(value).getTime())) return
101
+ return value
102
+ }
103
+
104
+ function isRecord(value: unknown): value is Record<string, unknown> {
105
+ return typeof value === "object" && value !== null && !Array.isArray(value)
106
+ }
@@ -0,0 +1,22 @@
1
+ import { type NormalizedFile, type NormalizedTool, toolResultFiles } from "../parts"
2
+
3
+ export interface ViewFileDescription {
4
+ /** The file name, or empty until the call names one. */
5
+ readonly target: string
6
+ /** The file the call prepared for the model, once it has a result. */
7
+ readonly file?: NormalizedFile
8
+ }
9
+
10
+ export function describeViewFile(tool: NormalizedTool): ViewFileDescription {
11
+ // A saved message resolves each file's source; a live result only carries its reference.
12
+ const file =
13
+ tool.files?.[0] ??
14
+ toolResultFiles(tool.output).map(({ fileRef }): NormalizedFile => ({ fileRef }))[0]
15
+ const path = isRecord(tool.input) && typeof tool.input.path === "string" ? tool.input.path : ""
16
+ const target = file?.fileRef.fileName?.trim() || path.split("/").filter(Boolean).at(-1) || ""
17
+ return file ? { target, file } : { target }
18
+ }
19
+
20
+ function isRecord(value: unknown): value is Record<string, unknown> {
21
+ return typeof value === "object" && value !== null && !Array.isArray(value)
22
+ }
@@ -0,0 +1,120 @@
1
+ import { cn } from "@sixb/ui/lib/utils"
2
+ import { Eye, File as FileIcon } from "lucide-react"
3
+ import type { ReactNode } from "react"
4
+ import { ActivityStatusText } from "../components/activity-status"
5
+ import { useDocumentPreview } from "../document-preview/document-preview-root"
6
+ import { formatFileSize } from "../document-preview/file-size"
7
+ import { useAgentMessages } from "../i18n"
8
+ import type { NormalizedFile, NormalizedTool } from "../parts"
9
+ import { describeViewFile } from "./interpret"
10
+
11
+ /**
12
+ * A file the agent viewed. It belongs to the work, not to the answer, so it stays in the trace: an
13
+ * image as a small preview, any other file as a compact chip, each opening the document preview.
14
+ */
15
+ export function ViewFileToolView({ tool }: { tool: NormalizedTool }) {
16
+ const messages = useAgentMessages().viewFile
17
+ const { target, file } = describeViewFile(tool)
18
+ const running = tool.state === "input-streaming" || tool.state === "input-available"
19
+ const label =
20
+ tool.state === "output-error"
21
+ ? messages.failed(target)
22
+ : running
23
+ ? messages.running(target)
24
+ : messages.title(target)
25
+
26
+ return (
27
+ <div className="min-w-0 space-y-1.5">
28
+ <div className="flex w-fit max-w-full items-center gap-1.5 text-[13px] leading-normal text-muted-foreground">
29
+ <Eye className="size-3.5 shrink-0" />
30
+ {running ? (
31
+ <ActivityStatusText label={label} className="font-medium shimmer" />
32
+ ) : (
33
+ <span className="min-w-0 truncate font-medium">{label}</span>
34
+ )}
35
+ </div>
36
+ {file && tool.state === "output-available" ? (
37
+ <div className="pl-5">
38
+ <ViewedFile file={file} />
39
+ </div>
40
+ ) : null}
41
+ </div>
42
+ )
43
+ }
44
+
45
+ function ViewedFile({ file }: { file: NormalizedFile }) {
46
+ const unnamed = useAgentMessages().files.file
47
+ const { fileRef, document } = file
48
+ const name = fileRef.fileName?.trim() || unnamed
49
+
50
+ if (document?.kind === "image") {
51
+ return (
52
+ <OpenFile file={file} name={name}>
53
+ <img
54
+ src={document.inlineUrl}
55
+ alt={name}
56
+ loading="lazy"
57
+ className="block h-auto max-h-28 w-auto max-w-[min(10rem,100%)] rounded-md border border-border/70 bg-muted/40 object-contain"
58
+ />
59
+ </OpenFile>
60
+ )
61
+ }
62
+
63
+ return (
64
+ <OpenFile file={file} name={name}>
65
+ <span className="inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/70 bg-background px-2 py-1 text-xs text-muted-foreground">
66
+ <FileIcon className="size-3.5 shrink-0" />
67
+ <span className="min-w-0 truncate font-medium text-foreground/80">{name}</span>
68
+ <span className="shrink-0 text-muted-foreground/60">
69
+ {formatFileSize(fileRef.sizeBytes)}
70
+ </span>
71
+ </span>
72
+ </OpenFile>
73
+ )
74
+ }
75
+
76
+ /** Open a saved file in the document preview, or in a new tab when no viewer handles it. */
77
+ function OpenFile({
78
+ file,
79
+ name,
80
+ children,
81
+ }: {
82
+ file: NormalizedFile
83
+ name: string
84
+ children: ReactNode
85
+ }) {
86
+ const preview = useDocumentPreview()
87
+ const messages = useAgentMessages()
88
+ const { document } = file
89
+ const className = cn(
90
+ "block w-fit max-w-full rounded-md outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-ring",
91
+ document && "hover:opacity-80"
92
+ )
93
+
94
+ if (document && preview?.canPreview(document)) {
95
+ return (
96
+ <button
97
+ type="button"
98
+ className={className}
99
+ onClick={() => preview.openDocument(document)}
100
+ aria-label={messages.documents.preview(name)}
101
+ >
102
+ {children}
103
+ </button>
104
+ )
105
+ }
106
+ if (document) {
107
+ return (
108
+ <a
109
+ href={document.inlineUrl}
110
+ target="_blank"
111
+ rel="noreferrer"
112
+ className={className}
113
+ aria-label={messages.viewFile.open(name)}
114
+ >
115
+ {children}
116
+ </a>
117
+ )
118
+ }
119
+ return <span className={className}>{children}</span>
120
+ }
@@ -1,23 +1,7 @@
1
- import { AgentChatPage, type AgentChatPageProps } from "@sixb/agent-ui/react-router"
2
1
  import { createContext, createElement, type PropsWithChildren, useContext } from "react"
2
+ import { AgentChatPage, type AgentChatPageProps } from "./react-router"
3
3
 
4
- export {
5
- AgentContextProvider,
6
- type AgentDocumentPreviewRenderer,
7
- type AgentDocumentPreviewRendererProps,
8
- type AgentFileRef,
9
- AgentPanel,
10
- type AgentPanelProps,
11
- AgentSurface,
12
- type AgentSurfaceMode,
13
- type AgentSurfaceProps,
14
- handoffAgentSurfaceThread,
15
- setAgentSurfaceMode,
16
- useAgentContext,
17
- } from "@sixb/agent-ui"
18
- export { agentContext } from "@sixb/core/agents/context"
19
-
20
- export type AgentsPageProps = Omit<AgentChatPageProps, "routeBase">
4
+ type AgentsPageProps = Omit<AgentChatPageProps, "routeBase">
21
5
 
22
6
  type AgentWorkspaceConfiguration = Pick<AgentsPageProps, "documentPreviewRenderers">
23
7
 
@@ -37,7 +21,8 @@ export function AgentWorkspaceProvider({
37
21
  )
38
22
  }
39
23
 
40
- export default function AgentsPage(props: AgentsPageProps) {
24
+ /** The framework's `/agents` routes: the project's conversations, full page. */
25
+ export function AgentsPage(props: AgentsPageProps) {
41
26
  const workspaceConfiguration = useContext(AgentWorkspaceContext)
42
27
 
43
28
  return createElement(AgentChatPage, {
package/src/codegen.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { access, mkdir, readFile, writeFile } from "node:fs/promises"
2
2
  import { join, relative, resolve } from "node:path"
3
- import type { AuthSessionAudience } from "@sixb/core"
4
3
  import { en, fr } from "./locale-messages"
5
4
  import { renderAppManifest } from "./manifest"
6
5
  import { resolveAppMetadata } from "./metadata"
@@ -10,7 +9,7 @@ import { type AppRouteLayout, type PageRoute, routePatternKey } from "./scanner"
10
9
  export interface BuiltInRouteManifestEntry {
11
10
  readonly path: string
12
11
  readonly moduleSpecifier: string
13
- readonly exportName?: string
12
+ readonly exportName: string
14
13
  }
15
14
 
16
15
  export interface GenerateRouteManifestOptions {
@@ -40,7 +39,7 @@ function assertNoReservedSharedRoutes(routes: readonly PageRoute[]): void {
40
39
  * Generates `.sixb/generated/routes.ts` with static page/layout imports. Modules are
41
40
  * eager on purpose: project-specific apps bundle small, and a single bundle
42
41
  * (one JS file, one render-blocking CSS file) means no Suspense gap or
43
- * late-arriving styles when navigating — matching how Atlas routes.
42
+ * late-arriving styles when navigating.
44
43
  */
45
44
  export async function generateRouteManifest(
46
45
  routes: readonly PageRoute[],
@@ -62,13 +61,10 @@ export async function generateRouteManifest(
62
61
  (route) => !projectRoutePatterns.has(routePatternKey(route.path))
63
62
  )
64
63
  const builtInImports = builtInRoutes
65
- .map((route, index) => {
66
- if (route.exportName) {
67
- return `import { ${route.exportName} as BuiltInPage${index} } from ${JSON.stringify(route.moduleSpecifier)}`
68
- }
69
-
70
- return `import BuiltInPage${index} from ${JSON.stringify(route.moduleSpecifier)}`
71
- })
64
+ .map(
65
+ (route, index) =>
66
+ `import { ${route.exportName} as BuiltInPage${index} } from ${JSON.stringify(route.moduleSpecifier)}`
67
+ )
72
68
  .join("\n")
73
69
  const routePatterns = [...pages, ...builtInRoutes].map((route) => routePatternKey(route.path))
74
70
  const layouts = [...(options.layouts ?? [])]
@@ -330,7 +326,7 @@ import { createRoot } from "react-dom/client"
330
326
  import type {
331
327
  AuthExperienceActions,
332
328
  AuthExperienceState,
333
- } from "@sixb/app/auth"
329
+ } from "@sixb/app"
334
330
  import AuthExperience from ${JSON.stringify(authRel)}
335
331
  ${stylesheetImport}
336
332
 
@@ -441,7 +437,6 @@ export async function generateAppEntry(
441
437
  generatedDir: string,
442
438
  options: {
443
439
  apiBaseUrl?: string
444
- audience?: AuthSessionAudience
445
440
  authEnabled?: boolean
446
441
  appDir?: string
447
442
  publicDir?: string
@@ -453,6 +448,10 @@ export async function generateAppEntry(
453
448
  stylesheetPath?: string | null
454
449
  /** Framework-owned stylesheets imported before the app stylesheet. */
455
450
  frameworkStylesheetPaths?: readonly string[]
451
+ /** The built-in section pages are routed, so the app draws their navigation. */
452
+ sections?: boolean
453
+ /** The project has pages of its own in `app/`. */
454
+ projectPages?: boolean
456
455
  } = {}
457
456
  ): Promise<{
458
457
  htmlPath: string
@@ -488,13 +487,36 @@ export async function generateAppEntry(
488
487
  const globalsCssImport = stylesheetPaths
489
488
  .map((path) => `import ${JSON.stringify(relativeTo(generatedDir, path))}`)
490
489
  .join("\n")
491
- const layoutImport = hasLayout ? `import RootLayout from ${JSON.stringify(layoutRel)}\n` : ""
492
- const layoutWrapperStart = hasLayout ? "<RootLayout>" : "<>"
493
- const layoutWrapperEnd = hasLayout ? "</RootLayout>" : "</>"
490
+ const sections = options.sections ?? false
491
+ // The namespace import reads the optional `visibility` export without naming it, so a layout
492
+ // that leaves it out still bundles without a missing-export warning.
493
+ const layoutImport = !hasLayout
494
+ ? ""
495
+ : sections
496
+ ? `import RootLayout, * as rootLayoutModule from ${JSON.stringify(layoutRel)}\n`
497
+ : `import RootLayout from ${JSON.stringify(layoutRel)}\n`
498
+ // A project with no `app/` of its own gets the default shell: its user menu is the way into every
499
+ // section. Pages without a layout keep rendering bare, as they did before the built-in pages.
500
+ const defaultShell = sections && !hasLayout && !options.projectPages
501
+ const sectionsImport = sections
502
+ ? `import ${defaultShell ? "{ AppShell, type AppVisibility }" : "type { AppVisibility }"} from "@sixb/app"\nimport { SectionsProvider } from "@sixb/app/pages"\n`
503
+ : ""
504
+ // Who sees each built-in section, from the project's app/layout.tsx.
505
+ const sectionsSetup = !sections
506
+ ? ""
507
+ : hasLayout
508
+ ? `const visibility = Reflect.get(rootLayoutModule, "visibility") as AppVisibility | undefined`
509
+ : "const visibility = undefined"
510
+ const sectionsStart = sections
511
+ ? `<SectionsProvider visibility={visibility} enabled={!basename}>`
512
+ : ""
513
+ const sectionsEnd = sections ? "</SectionsProvider>" : ""
514
+ const layoutWrapperStart = hasLayout ? "<RootLayout>" : defaultShell ? "<AppShell>" : "<>"
515
+ const layoutWrapperEnd = hasLayout ? "</RootLayout>" : defaultShell ? "</AppShell>" : "</>"
494
516
  const runtimeConfigScript = options.apiBaseUrl
495
517
  ? renderCustomAppRuntimeScript({
496
518
  api: { baseUrl: options.apiBaseUrl },
497
- auth: { audience: options.audience ?? "app", enabled: options.authEnabled ?? true },
519
+ auth: { enabled: options.authEnabled ?? true },
498
520
  })
499
521
  : ""
500
522
 
@@ -502,7 +524,7 @@ export async function generateAppEntry(
502
524
  // shared entry imports it only after establishing a grant-bound session.
503
525
  const runtimeContent = `import React from "react"
504
526
  import { createRoot, type Root } from "react-dom/client"
505
- import { signOut } from "@sixb/client"
527
+ import type { GetAuthSessionResponse } from "@sixb/client"
506
528
  import {
507
529
  BrowserRouter,
508
530
  matchPath,
@@ -512,9 +534,13 @@ import {
512
534
  } from "react-router-dom"
513
535
  import { QueryClient, QueryClientProvider, useQuery } from "@tanstack/react-query"
514
536
  import { isSixbApiError } from "@sixb/client/browser"
515
- import { getProjectInfoOptions } from "@sixb/client/hooks"
537
+ import {
538
+ getAuthSessionQueryKey,
539
+ getProjectInfoOptions,
540
+ SixbEventsProvider,
541
+ } from "@sixb/client/hooks"
516
542
  import { LocaleProvider, useAppMessages } from "@sixb/app/locale"
517
- import { routePaths, routes } from "./routes"
543
+ ${sectionsImport}import { routePaths, routes } from "./routes"
518
544
  ${globalsCssImport}
519
545
  ${layoutImport}
520
546
 
@@ -525,6 +551,8 @@ interface CustomAppHotData {
525
551
 
526
552
  export interface StartAppOptions {
527
553
  readonly basename?: string
554
+ /** The session the bootstrap already loaded, so useCurrentUser does not fetch it again. */
555
+ readonly session?: GetAuthSessionResponse
528
556
  }
529
557
 
530
558
  if (import.meta.hot) import.meta.hot.accept()
@@ -764,46 +792,6 @@ function AppFallback({
764
792
  )
765
793
  }
766
794
 
767
- function AccessDeniedView() {
768
- const messages = useAppMessages().accessDenied
769
- const [isSigningOut, setIsSigningOut] = React.useState(false)
770
-
771
- async function handleSignOut() {
772
- setIsSigningOut(true)
773
- try {
774
- await signOut({ throwOnError: true })
775
- window.location.reload()
776
- } catch {
777
- setIsSigningOut(false)
778
- }
779
- }
780
-
781
- return (
782
- <AppFallback
783
- title={messages.title}
784
- detail={messages.detail}
785
- showReload={false}
786
- action={
787
- <button
788
- type="button"
789
- disabled={isSigningOut}
790
- onClick={handleSignOut}
791
- style={{
792
- padding: "0.5rem 1rem",
793
- borderRadius: "var(--radius, 0.5rem)",
794
- border: "1px solid var(--border, #cbd2d9)",
795
- background: "transparent",
796
- color: "inherit",
797
- cursor: isSigningOut ? "default" : "pointer",
798
- }}
799
- >
800
- {isSigningOut ? messages.signingOut : messages.signOut}
801
- </button>
802
- }
803
- />
804
- )
805
- }
806
-
807
795
  // The not-found view. Rendered both for unmatched client routes (the catch-all
808
796
  // route below) and for an expected 404 surfaced through a query. Apps will be
809
797
  // able to override this via app/not-found.tsx.
@@ -906,6 +894,7 @@ function RoutedErrorBoundary({
906
894
  }
907
895
 
908
896
  const appRoutes = [...routes, { path: "*", element: <NotFoundView /> }]
897
+ ${sectionsSetup}
909
898
 
910
899
  function AppRoutes() {
911
900
  return useRoutes(appRoutes)
@@ -948,7 +937,10 @@ function ProjectLocale({
948
937
  function App({ basename }: StartAppOptions) {
949
938
  return (
950
939
  <QueryClientProvider client={queryClient}>
940
+ {/* One event socket for every live page, opened only once something subscribes. */}
941
+ <SixbEventsProvider>
951
942
  <ProjectLocale shared={Boolean(basename)}>
943
+ ${sectionsStart}
952
944
  <BrowserRouter basename={basename}>
953
945
  <SharedDocumentLinkInterceptor basename={basename} />
954
946
  <InternalLinkInterceptor basename={basename} />
@@ -960,12 +952,15 @@ function App({ basename }: StartAppOptions) {
960
952
  </SharedDocumentBoundary>
961
953
  )}
962
954
  </BrowserRouter>
955
+ ${sectionsEnd}
963
956
  </ProjectLocale>
957
+ </SixbEventsProvider>
964
958
  </QueryClientProvider>
965
959
  )
966
960
  }
967
961
 
968
962
  export function startApp(options: StartAppOptions = {}) {
963
+ if (options.session) queryClient.setQueryData(getAuthSessionQueryKey(), options.session)
969
964
  // The HTML is built without loading the project: declare the project's language on the document
970
965
  // as soon as the API answers, without waiting for the page tree to render.
971
966
  if (!options.basename) {
@@ -979,15 +974,7 @@ export function startApp(options: StartAppOptions = {}) {
979
974
  getRoot().render(<App basename={options.basename} />)
980
975
  }
981
976
 
982
- // Without a session the project's locale is unknown: these speak the browser's language.
983
- export function renderAccessDenied() {
984
- getRoot().render(
985
- <LocaleProvider>
986
- <AccessDeniedView />
987
- </LocaleProvider>
988
- )
989
- }
990
-
977
+ // Without a session the project's locale is unknown: this speaks the browser's language.
991
978
  export function renderApiUnavailable(apiBaseUrl: string) {
992
979
  getRoot().render(
993
980
  <LocaleProvider>
@@ -1033,9 +1020,9 @@ function ApiUnavailableView({ apiBaseUrl }: { readonly apiBaseUrl: string }) {
1033
1020
  readSixbBrowserRuntimeConfig,
1034
1021
  requireSixbBrowserAuthSession,
1035
1022
  } from "@sixb/client/browser"
1036
- import { renderAccessDenied, renderApiUnavailable, startApp } from "./app-runtime"
1023
+ import { renderApiUnavailable, startApp } from "./app-runtime"
1037
1024
 
1038
- const runtimeConfig = readSixbBrowserRuntimeConfig({ audience: "app" })
1025
+ const runtimeConfig = readSixbBrowserRuntimeConfig()
1039
1026
  const browserClient = configureSixbBrowserClient(runtimeConfig)
1040
1027
 
1041
1028
  if (import.meta.hot) {
@@ -1056,11 +1043,9 @@ if (authSession === "unavailable") {
1056
1043
  } else if (
1057
1044
  !runtimeConfig.auth.enabled ||
1058
1045
  (authSession?.authenticated === false && authSession.authEnabled === false) ||
1059
- (authSession?.authenticated === true && authSession.applicationAccess.allowed)
1046
+ authSession?.authenticated === true
1060
1047
  ) {
1061
- startApp()
1062
- } else if (authSession?.authenticated === true && !authSession.applicationAccess.allowed) {
1063
- renderAccessDenied()
1048
+ startApp({ session: authSession ?? undefined })
1064
1049
  }
1065
1050
  `
1066
1051
 
@@ -1114,10 +1099,7 @@ export function startSharedApp(
1114
1099
  activeController?.dispose()
1115
1100
  let controller: SixbSharedBrowserClientController
1116
1101
  try {
1117
- const runtimeConfig = readSixbBrowserRuntimeConfig({
1118
- audience: "app",
1119
- authEnabled: false,
1120
- })
1102
+ const runtimeConfig = readSixbBrowserRuntimeConfig({ authEnabled: false })
1121
1103
  controller = configureSixbSharedBrowserClient(runtimeConfig, {
1122
1104
  grantId,
1123
1105
  })
@@ -1315,7 +1297,7 @@ ${metadataHead}
1315
1297
  const sharedRuntimeConfigScript = options.apiBaseUrl
1316
1298
  ? renderCustomAppRuntimeScript({
1317
1299
  api: { baseUrl: options.apiBaseUrl },
1318
- auth: { audience: "app", enabled: false },
1300
+ auth: { enabled: false },
1319
1301
  })
1320
1302
  : ""
1321
1303
  const sharedHtmlContent = `<!DOCTYPE html>