@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
@@ -1,9 +1,8 @@
1
1
  import { randomBytes } from "node:crypto"
2
- import { watch } from "node:fs"
2
+ import { existsSync, watch } from "node:fs"
3
3
  import { access, cp, mkdir, readFile, rm, writeFile } from "node:fs/promises"
4
4
  import { dirname, isAbsolute, join, normalize, relative, resolve } from "node:path"
5
5
  import { pathToFileURL } from "node:url"
6
- import type { AuthSessionAudience } from "@sixb/core"
7
6
  import {
8
7
  type BuildAppResult,
9
8
  type BuildSharedAppDevResult,
@@ -23,6 +22,7 @@ import {
23
22
  import { devReloadResponse } from "./dev-reload"
24
23
  import { collectPublicEnv, renderCustomAppRuntimeScript } from "./runtime"
25
24
  import { type PageRoute, routePatternKey, scanAppRoutes } from "./scanner"
25
+ import { sectionCatalog } from "./sections/catalog"
26
26
  import { type CustomAppStylesheet, resolveCustomAppStylesheet } from "./styles"
27
27
  import { createTailwindCssCompiler, type TailwindCssCompiler } from "./tailwind"
28
28
 
@@ -32,9 +32,9 @@ export interface CreateCustomAppOptions {
32
32
  generatedDir?: string
33
33
  publicDir?: string
34
34
  apiBaseUrl?: string
35
- audience?: AuthSessionAudience
36
35
  authEnabled?: boolean
37
- agentRoutes?: boolean
36
+ /** Home, the agent, object pages and the sections. On unless a test turns them off. */
37
+ builtInPages?: boolean
38
38
  }
39
39
 
40
40
  export interface CustomAppDevOptions {
@@ -59,36 +59,49 @@ export interface CustomAppStartOptions {
59
59
  port?: number
60
60
  outdir?: string
61
61
  apiBaseUrl?: string
62
- audience?: AuthSessionAudience
63
62
  authEnabled?: boolean
64
63
  }
65
64
 
66
- export interface CustomAppDevServer {
65
+ export interface CustomAppServer {
67
66
  host: string
68
67
  port: number
69
68
  url: string
70
69
  stop(): Promise<void>
71
70
  }
72
71
 
72
+ export interface CustomAppDevServer extends CustomAppServer {
73
+ /** Whether it reloads the app's sources itself: not while the project has no `app/` folder. */
74
+ watchesSources: boolean
75
+ }
76
+
73
77
  export interface CustomAppInstance {
74
78
  scanRoutes(): Promise<PageRoute[]>
75
- hasRoutes(): Promise<boolean>
76
79
  prepareAuthExperience(
77
80
  options?: CustomAuthExperienceBuildOptions
78
81
  ): Promise<CustomAuthExperienceBuildResult | null>
79
82
  dev(options?: CustomAppDevOptions): Promise<CustomAppDevServer>
80
83
  build(options?: CustomAppBuildOptions): Promise<BuildAppResult>
81
- start(options?: CustomAppStartOptions): Promise<CustomAppDevServer>
84
+ start(options?: CustomAppStartOptions): Promise<CustomAppServer>
82
85
  }
83
86
 
84
87
  type BunServeRoutes = NonNullable<Parameters<typeof Bun.serve>[0]["routes"]>
85
88
  type BunServeRoute = BunServeRoutes[string]
86
89
  const packageRoot = resolve(import.meta.dir, "..")
87
- const builtInAgentRouteModule = "@sixb/app/agents"
88
90
  const builtInAgentRoutePaths = ["/agents", "/agents/new/:agentId", "/agents/:threadId"] as const
89
- const builtInAgentRouteSourcePath = join(packageRoot, "src", "agents.ts")
91
+ // The shell parts a layout imports from `@sixb/app` style themselves with the same Tailwind build.
92
+ const shellSourcePath = join(packageRoot, "src", "shell")
93
+ const builtInPageModule = "@sixb/app/pages"
94
+ const builtInPageSourcePath = join(packageRoot, "src", "pages")
95
+ // Styles built-in pages need beyond utilities: the pipeline canvas.
96
+ const builtInPageStylesheetPath = join(packageRoot, "src", "pages", "canvas.css")
97
+ // The agent's styles beyond utilities, and the `@source` for its components.
98
+ const agentStylesheetPath = join(packageRoot, "src", "agent", "agent.css")
90
99
  const customAppManifestRoute = "/app.webmanifest"
91
100
  const internalAppShellRoute = "/__sixb/generated/app-shell"
101
+ // Files the built-in pages show, such as connector logos, served from the package itself so they
102
+ // need no build step of the project's.
103
+ const frameworkAssetsRoute = "/__sixb/assets"
104
+ const frameworkAssetsDir = join(packageRoot, "assets")
92
105
  const internalSharedAppShellRoute = "/__sixb/generated/shared-app-shell"
93
106
 
94
107
  export async function createCustomApp(options: CreateCustomAppOptions): Promise<CustomAppInstance> {
@@ -99,18 +112,23 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
99
112
  ? resolve(rootDir, options.publicDir)
100
113
  : resolve(appDir, "public")
101
114
  const apiBaseUrl = options.apiBaseUrl
102
- const audience = options.audience ?? "app"
103
115
  const authEnabled = options.authEnabled ?? true
104
- const agentRoutesEnabled = options.agentRoutes ?? true
116
+ const builtInPagesEnabled = options.builtInPages ?? true
105
117
 
106
118
  async function scanRoutes(): Promise<PageRoute[]> {
107
119
  return [...(await scanAppRoutes(appDir)).pages]
108
120
  }
109
121
 
122
+ // With the built-in pages on, every project is an app, even without an `app/` folder: they fill
123
+ // its routes, Home included.
124
+ function servesApp(routes: readonly PageRoute[]): boolean {
125
+ return routes.length > 0 || builtInPagesEnabled
126
+ }
127
+
110
128
  let tailwindCompiler: TailwindCssCompiler | null = null
111
129
  let tailwindCompilerKey: string | null = null
112
130
  let authTailwindCompiler: TailwindCssCompiler | null = null
113
- let builtInAgentCssCompiler: TailwindCssCompiler | null = null
131
+ let frameworkCssCompiler: TailwindCssCompiler | null = null
114
132
 
115
133
  // `app/globals.css` is source. When it uses Tailwind, compile it to
116
134
  // `.sixb/generated/app.css` and bundle that; plain CSS bundles as-is. This
@@ -152,19 +170,20 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
152
170
  await compiler.compile()
153
171
  }
154
172
 
155
- async function prepareCombinedBuiltInAgentStylesheet(
173
+ async function prepareCombinedStylesheet(
156
174
  stylesheet: Extract<CustomAppStylesheet, { kind: "tailwind" }>
157
175
  ): Promise<string> {
158
176
  const inputPath = join(generatedDir, "app.input.css")
159
177
  const uiGlobalsPath = Bun.resolveSync("@sixb/ui/globals.css", packageRoot)
160
- const agentUiGlobalsPath = Bun.resolveSync("@sixb/agent-ui/globals.css", packageRoot)
161
178
  await writeFileIfChanged(
162
179
  inputPath,
163
180
  [
164
181
  `@import ${JSON.stringify(uiGlobalsPath)};`,
165
- `@source ${JSON.stringify(builtInAgentRouteSourcePath)};`,
182
+ `@source ${JSON.stringify(shellSourcePath)};`,
183
+ `@source ${JSON.stringify(builtInPageSourcePath)};`,
184
+ `@import ${JSON.stringify(builtInPageStylesheetPath)};`,
166
185
  `@import ${JSON.stringify(stylesheet.sourcePath)};`,
167
- `@import ${JSON.stringify(agentUiGlobalsPath)};`,
186
+ `@import ${JSON.stringify(agentStylesheetPath)};`,
168
187
  "",
169
188
  ].join("\n")
170
189
  )
@@ -181,16 +200,16 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
181
200
 
182
201
  if (stylesheet.kind === "tailwind" && builtInRoutes.length > 0) {
183
202
  return {
184
- stylesheetPath: await prepareCombinedBuiltInAgentStylesheet(stylesheet),
203
+ stylesheetPath: await prepareCombinedStylesheet(stylesheet),
185
204
  frameworkStylesheetPaths: [],
186
205
  }
187
206
  }
188
207
 
189
208
  const preparedStylesheet = await prepareStylesheet(stylesheet)
190
- const builtInAgentStylesheetPath = await prepareBuiltInAgentStylesheet(builtInRoutes)
209
+ const frameworkStylesheetPath = await prepareFrameworkStylesheet(builtInRoutes)
191
210
 
192
211
  return {
193
- frameworkStylesheetPaths: builtInAgentStylesheetPath ? [builtInAgentStylesheetPath] : [],
212
+ frameworkStylesheetPaths: frameworkStylesheetPath ? [frameworkStylesheetPath] : [],
194
213
  stylesheetPath:
195
214
  preparedStylesheet.kind === "none"
196
215
  ? null
@@ -200,35 +219,36 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
200
219
  }
201
220
  }
202
221
 
203
- async function prepareBuiltInAgentStylesheet(
222
+ async function prepareFrameworkStylesheet(
204
223
  builtInRoutes: readonly BuiltInRouteManifestEntry[]
205
224
  ): Promise<string | null> {
206
225
  if (builtInRoutes.length === 0) {
207
226
  return null
208
227
  }
209
228
 
210
- const inputPath = join(generatedDir, "agent-ui.input.css")
211
- const outputPath = join(generatedDir, "agent-ui.css")
229
+ const inputPath = join(generatedDir, "framework.input.css")
230
+ const outputPath = join(generatedDir, "framework.css")
212
231
  const uiGlobalsPath = Bun.resolveSync("@sixb/ui/globals.css", packageRoot)
213
- const agentUiGlobalsPath = Bun.resolveSync("@sixb/agent-ui/globals.css", packageRoot)
214
232
  await writeFileIfChanged(
215
233
  inputPath,
216
234
  [
217
235
  `@import ${JSON.stringify(uiGlobalsPath)};`,
218
- `@source ${JSON.stringify(builtInAgentRouteSourcePath)};`,
219
- `@import ${JSON.stringify(agentUiGlobalsPath)};`,
236
+ `@source ${JSON.stringify(shellSourcePath)};`,
237
+ `@source ${JSON.stringify(builtInPageSourcePath)};`,
238
+ `@import ${JSON.stringify(builtInPageStylesheetPath)};`,
239
+ `@import ${JSON.stringify(agentStylesheetPath)};`,
220
240
  "",
221
241
  ].join("\n")
222
242
  )
223
243
 
224
- builtInAgentCssCompiler ??= createTailwindCssCompiler({
244
+ frameworkCssCompiler ??= createTailwindCssCompiler({
225
245
  inputPath,
226
246
  outputPath,
227
247
  cwd: packageRoot,
228
248
  resolveFrom: packageRoot,
229
249
  label: "[SixbCustomApp]",
230
250
  })
231
- await builtInAgentCssCompiler.compile()
251
+ await frameworkCssCompiler.compile()
232
252
  return outputPath
233
253
  }
234
254
 
@@ -241,13 +261,14 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
241
261
  sharedMainPath: string
242
262
  routes: PageRoute[]
243
263
  }> {
264
+ assertAppPackagesInstalled(rootDir)
244
265
  const discovery = await scanAppRoutes(appDir)
245
266
  const routes = [...discovery.pages]
246
- if (routes.length === 0) {
267
+ if (!servesApp(routes)) {
247
268
  throw new Error(`[SixbCustomApp] No app routes found in ${appDir}`)
248
269
  }
249
270
 
250
- const builtInRoutes = agentRoutesEnabled ? builtInAgentRoutesFor(routes) : []
271
+ const builtInRoutes = builtInPagesEnabled ? builtInRoutesFor(routes) : []
251
272
  const stylesheets = await prepareStylesheets(builtInRoutes)
252
273
  await generateRouteManifest(routes, generatedDir, {
253
274
  builtInRoutes,
@@ -255,12 +276,13 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
255
276
  })
256
277
  const entry = await generateAppEntry(rootDir, generatedDir, {
257
278
  apiBaseUrl,
258
- audience,
259
279
  authEnabled,
260
280
  appDir,
261
281
  publicDir,
262
282
  frameworkStylesheetPaths: stylesheets.frameworkStylesheetPaths,
263
283
  stylesheetPath: stylesheets.stylesheetPath,
284
+ sections: builtInPagesEnabled,
285
+ projectPages: routes.length > 0,
264
286
  })
265
287
  return { ...entry, routes }
266
288
  }
@@ -322,11 +344,6 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
322
344
  return await scanRoutes()
323
345
  },
324
346
 
325
- async hasRoutes() {
326
- const routes = await scanRoutes()
327
- return routes.length > 0
328
- },
329
-
330
347
  async prepareAuthExperience(options) {
331
348
  return await prepareAuthExperience(options)
332
349
  },
@@ -334,9 +351,9 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
334
351
  async dev(devOptions: CustomAppDevOptions = {}) {
335
352
  const publicEnv = collectPublicEnv()
336
353
  const withRuntime = (html: string) =>
337
- injectRuntimeConfig(html, { apiBaseUrl, audience, authEnabled, publicEnv })
354
+ injectRuntimeConfig(html, { apiBaseUrl, authEnabled, publicEnv })
338
355
  const host = devOptions.host ?? "0.0.0.0"
339
- const port = devOptions.port ?? 3001
356
+ const port = devOptions.port ?? 3000
340
357
  const { htmlPath, manifestPath, sharedHtmlPath, sharedMainPath } = await prepareGeneratedApp()
341
358
  await prepareAuthExperience()
342
359
  let htmlImportVersion = 0
@@ -364,13 +381,15 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
364
381
  ...sharedAssetRoutes,
365
382
  ...reservedSixbRoutes(),
366
383
  "/__sixb/dev-reload.js": getHeadRoute(devReloadResponse),
384
+ [`${frameworkAssetsRoute}/*`]: getHeadRoute((request) =>
385
+ frameworkAssetResponse(request, new URL(request.url).pathname)
386
+ ),
367
387
  [customAppManifestRoute]: manifestRoute(manifestPath),
368
388
  [privateAppShellRoute]: htmlBundleRoute(bundle),
369
389
  ...sharedAppDevRoutes(
370
390
  async () =>
371
391
  injectRuntimeConfig((await ensureSharedBuild()).html, {
372
392
  apiBaseUrl,
373
- audience: "app",
374
393
  authEnabled: false,
375
394
  publicEnv,
376
395
  }),
@@ -459,23 +478,27 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
459
478
  console.error(`[SixbCustomApp] Rebuild failed: ${message}`)
460
479
  })
461
480
  }
462
- const watcher = watch(appDir, { recursive: true }, (_eventType, filename) => {
463
- if (!filename) return
464
- if (!/\.(ts|tsx|css)$/.test(String(filename))) return
465
-
466
- if (rebuildTimer) {
467
- clearTimeout(rebuildTimer)
468
- }
469
- rebuildTimer = setTimeout(() => {
470
- rebuildTimer = null
471
- enqueueRebuild()
472
- }, 80)
473
- })
481
+ // A project without an `app/` folder serves the built-in pages alone. Nothing here can
482
+ // watch a folder that does not exist yet, so `sixb dev` restarts when one is created.
483
+ const watcher = (await pathExists(appDir))
484
+ ? watch(appDir, { recursive: true }, (_eventType, filename) => {
485
+ if (!filename) return
486
+ if (!/\.(ts|tsx|css)$/.test(String(filename))) return
487
+
488
+ if (rebuildTimer) {
489
+ clearTimeout(rebuildTimer)
490
+ }
491
+ rebuildTimer = setTimeout(() => {
492
+ rebuildTimer = null
493
+ enqueueRebuild()
494
+ }, 80)
495
+ })
496
+ : null
474
497
 
475
498
  // An FSWatcher emits `error` as an event, and an unhandled one takes the whole dev process
476
499
  // down — the `.catch()` above only covers a failed rebuild. Losing file watching should cost
477
500
  // hot reload, not the server: keep serving the last good build and say so.
478
- watcher.on("error", (error: unknown) => {
501
+ watcher?.on("error", (error: unknown) => {
479
502
  const message = error instanceof Error ? error.message : String(error)
480
503
  console.error(
481
504
  `[SixbCustomApp] Stopped watching ${appDir}: ${message}. ` +
@@ -489,17 +512,18 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
489
512
  host,
490
513
  port,
491
514
  url: `http://${displayHost}:${port}`,
515
+ watchesSources: watcher !== null,
492
516
  async stop() {
493
517
  stopping = true
494
518
  if (rebuildTimer) {
495
519
  clearTimeout(rebuildTimer)
496
520
  rebuildTimer = null
497
521
  }
498
- watcher.close()
522
+ watcher?.close()
499
523
  await rebuildChain
500
524
  await tailwindCompiler?.stop()
501
525
  await authTailwindCompiler?.stop()
502
- await builtInAgentCssCompiler?.stop()
526
+ await frameworkCssCompiler?.stop()
503
527
  const activeServer = server
504
528
  server = null
505
529
  activeServer?.stop(true)
@@ -547,7 +571,7 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
547
571
  async start(startOptions: CustomAppStartOptions = {}) {
548
572
  const publicEnv = collectPublicEnv()
549
573
  const host = startOptions.host ?? "0.0.0.0"
550
- const port = startOptions.port ?? 3001
574
+ const port = startOptions.port ?? 3000
551
575
  const outdir = resolve(rootDir, startOptions.outdir ?? join(".sixb", "dist", "app"))
552
576
  const indexPath = join(outdir, "index.html")
553
577
  const sharedIndexPath = join(outdir, SHARED_APP_SHELL_FILE_NAME)
@@ -563,13 +587,11 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
563
587
 
564
588
  const indexHtml = injectRuntimeConfig(await Bun.file(indexPath).text(), {
565
589
  apiBaseUrl: startOptions.apiBaseUrl ?? apiBaseUrl,
566
- audience: startOptions.audience ?? audience,
567
590
  authEnabled: startOptions.authEnabled ?? authEnabled,
568
591
  publicEnv,
569
592
  })
570
593
  const sharedIndexHtml = injectRuntimeConfig(await Bun.file(sharedIndexPath).text(), {
571
594
  apiBaseUrl: startOptions.apiBaseUrl ?? apiBaseUrl,
572
- audience: "app",
573
595
  authEnabled: false,
574
596
  publicEnv,
575
597
  })
@@ -592,6 +614,10 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
592
614
  return notFoundResponse()
593
615
  }
594
616
 
617
+ if (url.pathname.startsWith(`${frameworkAssetsRoute}/`)) {
618
+ return frameworkAssetResponse(req, url.pathname)
619
+ }
620
+
595
621
  if (isSharedAppRoute(url.pathname)) {
596
622
  if (isAssetRequest(url.pathname)) {
597
623
  return notFoundResponse()
@@ -664,15 +690,68 @@ async function pathExists(path: string): Promise<boolean> {
664
690
  }
665
691
  }
666
692
 
667
- function builtInAgentRoutesFor(routes: readonly PageRoute[]): BuiltInRouteManifestEntry[] {
668
- const projectRoutePatterns = new Set(routes.map((route) => routePatternKey(route.path)))
693
+ // The generated app imports these from the project, so the page code and the framework share one
694
+ // copy of React. `@sixb/app` only names them as peers.
695
+ const appPeerPackages = ["react", "react-dom", "react-router-dom", "@tanstack/react-query"] as const
696
+
697
+ // Looks for `node_modules` as the bundler does. `Bun.resolveSync` would also find Bun's global
698
+ // install cache, which the bundler never reads.
699
+ function assertAppPackagesInstalled(rootDir: string): void {
700
+ const missing = appPeerPackages.filter((name) => {
701
+ for (let dir = rootDir; ; dir = dirname(dir)) {
702
+ if (existsSync(join(dir, "node_modules", name, "package.json"))) return false
703
+ if (dirname(dir) === dir) return true
704
+ }
705
+ })
706
+ if (missing.length > 0) throw new AppPackagesMissingError(missing)
707
+ }
708
+
709
+ /** The project lacks packages the app is bundled from. `sixb dev` keeps the API running. */
710
+ export class AppPackagesMissingError extends Error {
711
+ readonly name = "AppPackagesMissingError"
712
+
713
+ constructor(readonly missing: readonly string[]) {
714
+ super(
715
+ `[SixbCustomApp] The app needs ${missing.join(", ")} in this project. Install them with: ` +
716
+ `bun add ${missing.join(" ")}`
717
+ )
718
+ }
719
+ }
669
720
 
670
- return builtInAgentRoutePaths
671
- .filter((path) => !projectRoutePatterns.has(routePatternKey(path)))
672
- .map((path) => ({
721
+ function builtInRoutesFor(routes: readonly PageRoute[]): BuiltInRouteManifestEntry[] {
722
+ const projectRoutePatterns = new Set(routes.map((route) => routePatternKey(route.path)))
723
+ const builtInRoutes: BuiltInRouteManifestEntry[] = [
724
+ ...builtInAgentRoutePaths.map((path) => ({
673
725
  path,
674
- moduleSpecifier: builtInAgentRouteModule,
675
- }))
726
+ moduleSpecifier: builtInPageModule,
727
+ exportName: "AgentsPage",
728
+ })),
729
+ // Home starts conversations that continue on the agent routes, so it ships with them.
730
+ { path: "/", moduleSpecifier: builtInPageModule, exportName: "HomePage" },
731
+ // Every object has a page, outside any section: grants decide who reads it.
732
+ {
733
+ path: "/objects/:objectTypeId/:primaryId",
734
+ moduleSpecifier: builtInPageModule,
735
+ exportName: "ObjectPage",
736
+ },
737
+ ...sectionCatalog.flatMap((section) => [
738
+ {
739
+ path: section.path,
740
+ moduleSpecifier: builtInPageModule,
741
+ exportName: section.indexExportName,
742
+ },
743
+ ...section.pages.flatMap((page) => [
744
+ { path: page.path, moduleSpecifier: builtInPageModule, exportName: page.exportName },
745
+ ...(page.details ?? []).map((detail) => ({
746
+ path: detail.path,
747
+ moduleSpecifier: builtInPageModule,
748
+ exportName: detail.exportName,
749
+ })),
750
+ ]),
751
+ ]),
752
+ ]
753
+
754
+ return builtInRoutes.filter((route) => !projectRoutePatterns.has(routePatternKey(route.path)))
676
755
  }
677
756
 
678
757
  async function writeFileIfChanged(path: string, content: string): Promise<void> {
@@ -698,6 +777,16 @@ function isFileNotFoundError(error: unknown): boolean {
698
777
  )
699
778
  }
700
779
 
780
+ async function frameworkAssetResponse(request: Request, pathname: string): Promise<Response> {
781
+ const resolvedPath = resolveStaticPath(
782
+ frameworkAssetsDir,
783
+ pathname.slice(frameworkAssetsRoute.length)
784
+ )
785
+ if (!resolvedPath || !(await Bun.file(resolvedPath).exists())) return notFoundResponse()
786
+ // A release replaces the package, and with it every asset, so a day of caching is safe.
787
+ return staticFileResponse(request, resolvedPath, { "cache-control": "public, max-age=86400" })
788
+ }
789
+
701
790
  async function createPublicRoutes(publicDir: string): Promise<BunServeRoutes> {
702
791
  const files = new Bun.Glob("**/*").scan({
703
792
  cwd: publicDir,
@@ -912,7 +1001,6 @@ function injectRuntimeConfig(
912
1001
  html: string,
913
1002
  config: {
914
1003
  readonly apiBaseUrl?: string
915
- readonly audience: AuthSessionAudience
916
1004
  readonly authEnabled: boolean
917
1005
  readonly publicEnv: Record<string, string>
918
1006
  }
@@ -920,12 +1008,12 @@ function injectRuntimeConfig(
920
1008
  const existingRuntimeScript = /<script>window\.__SIXB_RUNTIME__ = (.*?);<\/script>/
921
1009
  const existingConfig = html.match(existingRuntimeScript)?.[1]
922
1010
  const script = renderCustomAppRuntimeScript({
923
- auth: { audience: config.audience, enabled: config.authEnabled },
1011
+ auth: { enabled: config.authEnabled },
924
1012
  ...(existingConfig ? JSON.parse(existingConfig) : {}),
925
1013
  ...(config.apiBaseUrl
926
1014
  ? {
927
1015
  api: { baseUrl: config.apiBaseUrl },
928
- auth: { audience: config.audience, enabled: config.authEnabled },
1016
+ auth: { enabled: config.authEnabled },
929
1017
  }
930
1018
  : {}),
931
1019
  publicEnv: config.publicEnv,
package/src/index.ts CHANGED
@@ -1,19 +1,55 @@
1
- export {
2
- type CreateCustomAppOptions,
3
- type CustomAppBuildOptions,
4
- type CustomAppDevOptions,
5
- type CustomAppDevServer,
6
- type CustomAppInstance,
7
- type CustomAppStartOptions,
8
- type CustomAuthExperienceBuildOptions,
9
- type CustomAuthExperienceBuildResult,
10
- createCustomApp,
11
- } from "./createCustomApp"
12
- export { devReloadResponse } from "./dev-reload"
1
+ /**
2
+ * Everything `@sixb/app` offers code in a project's `app/` directory.
3
+ *
4
+ * One module for both places that code runs: the browser bundle, and Bun when the build imports
5
+ * `app/layout.tsx` to read its exports. Nothing here may need Node or Bun, and nothing may touch
6
+ * `window` or `document` at module scope. The CLI's tooling lives in `@sixb/app/server`.
7
+ *
8
+ * Components and data stay where they live: `@sixb/ui` for the design system and `@sixb/client`
9
+ * for the API. This entry never re-exports them, so each name has one import path.
10
+ */
11
+
12
+ export { agentContext } from "@sixb/core/agents/context"
13
+ export type { ModelReasoningLevel } from "@sixb/core/models"
14
+ export { AgentContextProvider, useAgentContext } from "./agent/agent-context-provider"
15
+ export { AgentPanel, type AgentPanelProps } from "./agent/agent-panel"
16
+ export { AgentSurface, type AgentSurfaceMode, type AgentSurfaceProps } from "./agent/agent-surface"
17
+ export { setAgentSurfaceMode } from "./agent/agent-surface-state"
18
+ export { Composer, type ComposerProps } from "./agent/components/composer"
19
+ export type {
20
+ AgentDocumentPreviewRenderer,
21
+ AgentDocumentPreviewRendererProps,
22
+ } from "./agent/document-preview/types"
23
+ export { AgentChatPage, type AgentChatPageProps } from "./agent/react-router"
24
+ export type { LanguageModel } from "./agent/types"
25
+ export { AgentWorkspaceProvider, type AgentWorkspaceProviderProps } from "./agent/workspace"
26
+ export type { AuthExperienceActions, AuthExperienceProps, AuthExperienceState } from "./auth"
13
27
  export type { AppMetadata } from "./metadata"
28
+ export { SyncButton, type SyncButtonProps } from "./pages/data/sync-button"
14
29
  export { publicEnv } from "./public-env"
30
+ export type { AppSectionId } from "./sections/catalog"
31
+ export {
32
+ type AppSection,
33
+ type AppVisibility,
34
+ useCurrentSection,
35
+ useSections,
36
+ } from "./sections/sections"
37
+ export { type CurrentUser, useCurrentUser, useSignOut } from "./session"
38
+ export { AgentDock } from "./shell/agent-dock"
39
+ export {
40
+ AppShell,
41
+ type AppShellProps,
42
+ AppShellProvider,
43
+ type AppShellProviderProps,
44
+ } from "./shell/app-shell"
45
+ export { Brand, type BrandProps } from "./shell/brand"
15
46
  export {
16
- createTailwindCssCompiler,
17
- type TailwindCssCompiler,
18
- type TailwindCssCompilerOptions,
19
- } from "./tailwind"
47
+ type NavEntry,
48
+ type NavGroup,
49
+ type NavItem,
50
+ NavItems,
51
+ type NavItemsProps,
52
+ } from "./shell/nav-items"
53
+ export { SearchCommand, type SearchCommandProps } from "./shell/search-command"
54
+ export { SectionNav, type SectionNavProps } from "./shell/section-nav"
55
+ export { UserMenu, type UserMenuItemProps, type UserMenuProps } from "./shell/user-menu"