@kortix/ui 0.15.11 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/_vendor/kortix-shared.js +478 -179
  2. package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
  3. package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
  4. package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
  5. package/dist/access/access/copy-row.d.ts +7 -1
  6. package/dist/access/access/copy-row.js +2 -2
  7. package/dist/animated-copy-icon.js +2 -1
  8. package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
  9. package/dist/browser/sandbox-browser-chrome.js +1 -1
  10. package/dist/customize/agents/agent-cover-card.d.ts +1 -1
  11. package/dist/customize/agents/agent-cover-card.js +10 -2
  12. package/dist/customize/agents/agent-filter.js +3 -1
  13. package/dist/customize/agents/agent-overview.d.ts +10 -0
  14. package/dist/customize/agents/agent-overview.js +5 -4
  15. package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
  16. package/dist/customize/agents/agent-page-chrome.js +16 -13
  17. package/dist/customize/agents/agent-page.js +6 -28
  18. package/dist/customize/agents/agent-tabs.d.ts +1 -0
  19. package/dist/customize/agents/agent-tabs.js +1 -0
  20. package/dist/customize/agents/agents-page.js +3 -3
  21. package/dist/customize/agents/create-agent-modal.d.ts +9 -0
  22. package/dist/customize/agents/create-agent-modal.js +21 -3
  23. package/dist/customize/agents/use-default-agent.js +2 -2
  24. package/dist/customize/connectors/connector-identity.d.ts +11 -2
  25. package/dist/customize/connectors/connector-identity.js +16 -4
  26. package/dist/customize/connectors/connectors-page.js +10 -6
  27. package/dist/customize/connectors/detail/app-page.js +2 -2
  28. package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
  29. package/dist/customize/connectors/install/install-dialog.js +6 -1
  30. package/dist/customize/connectors/use-agent-access.d.ts +1 -0
  31. package/dist/customize/evals/eval-compare-view.d.ts +10 -0
  32. package/dist/customize/evals/eval-compare-view.js +68 -0
  33. package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
  34. package/dist/customize/evals/eval-dataset-view.js +81 -0
  35. package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
  36. package/dist/customize/evals/eval-datasets-page.js +91 -0
  37. package/dist/customize/evals/eval-job-view.d.ts +12 -0
  38. package/dist/customize/evals/eval-job-view.js +360 -0
  39. package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
  40. package/dist/customize/evals/eval-jobs-page.js +69 -0
  41. package/dist/customize/evals/eval-meta.d.ts +97 -0
  42. package/dist/customize/evals/eval-meta.js +228 -0
  43. package/dist/customize/evals/eval-task-view.d.ts +13 -0
  44. package/dist/customize/evals/eval-task-view.js +123 -0
  45. package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
  46. package/dist/customize/evals/eval-tasks-page.js +56 -0
  47. package/dist/customize/evals/eval-ui.d.ts +97 -0
  48. package/dist/customize/evals/eval-ui.js +153 -0
  49. package/dist/customize/evals/evals-page.d.ts +10 -0
  50. package/dist/customize/evals/evals-page.js +56 -0
  51. package/dist/customize/evals/run-eval-modal.d.ts +28 -0
  52. package/dist/customize/evals/run-eval-modal.js +167 -0
  53. package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
  54. package/dist/customize/project-settings/project-admin-sections.js +6 -1
  55. package/dist/customize/providers/provider-connect.d.ts +13 -0
  56. package/dist/customize/providers/provider-connect.js +29 -5
  57. package/dist/customize/providers/provider-sheet.js +5 -4
  58. package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
  59. package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
  60. package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
  61. package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
  62. package/dist/customize/sections/view/git-view.d.ts +19 -1
  63. package/dist/customize/sections/view/git-view.js +7 -3
  64. package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
  65. package/dist/customize/sections/view/manifest-issue-list.js +41 -0
  66. package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
  67. package/dist/customize/sections/view/manifest-issues-row.js +39 -0
  68. package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
  69. package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
  70. package/dist/customize/sections/view/secrets-view.d.ts +13 -0
  71. package/dist/customize/sections/view/secrets-view.js +10 -6
  72. package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
  73. package/dist/customize/sections/view/subscription-usage.js +4 -8
  74. package/dist/customize/settings/settings-tab-header.js +12 -3
  75. package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
  76. package/dist/customize/settings/tabs/experimental-tab.js +36 -11
  77. package/dist/customize/settings/tabs/general-tab.js +1 -1
  78. package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
  79. package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
  80. package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
  81. package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
  82. package/dist/customize/settings/tabs/workspace-keys.js +6 -3
  83. package/dist/customize/shared/capability-page-shell.js +9 -1
  84. package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
  85. package/dist/customize/shared/catalog/catalog-card.js +15 -5
  86. package/dist/customize/shared/customize-tab-bar.js +1 -1
  87. package/dist/customize/shared/new-entity-menu.d.ts +1 -1
  88. package/dist/customize/shared/new-entity-menu.js +38 -1
  89. package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
  90. package/dist/customize/triggers/runtime-triggers.js +21 -2
  91. package/dist/customize/triggers/schedule/post-to-field.js +2 -2
  92. package/dist/customize/triggers/schedule-view.js +2 -1
  93. package/dist/files/project/components/drive-explorer.js +33 -70
  94. package/dist/files/project/components/drive-grid-view.d.ts +2 -31
  95. package/dist/files/project/components/drive-grid-view.js +12 -22
  96. package/dist/files/project/components/drive-list-view.d.ts +3 -30
  97. package/dist/files/project/components/drive-list-view.js +8 -18
  98. package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
  99. package/dist/files/project/components/drive-selection-bar.js +13 -20
  100. package/dist/files/project/components/explorer-listing.d.ts +48 -0
  101. package/dist/files/project/components/explorer-listing.js +64 -0
  102. package/dist/files/project/components/file-explorer-page.js +7 -204
  103. package/dist/files/project/components/file-thumbnail.js +3 -1
  104. package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
  105. package/dist/files/project/components/manifest-issue-mark.js +26 -0
  106. package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
  107. package/dist/files/project/hooks/use-change-requests.js +17 -0
  108. package/dist/files/project/manifest-annotations.d.ts +16 -0
  109. package/dist/files/project/manifest-annotations.js +19 -0
  110. package/dist/files/project/store/version-store.d.ts +1 -1
  111. package/dist/files/project/upload-batch.d.ts +20 -0
  112. package/dist/files/project/upload-batch.js +20 -0
  113. package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
  114. package/dist/files/runtime/hooks/use-file-content.js +3 -2
  115. package/dist/files/runtime/hooks/use-file-list.js +1 -2
  116. package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
  117. package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
  118. package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
  119. package/dist/files/tree/components/file-tree-item.js +1 -4
  120. package/dist/files/viewer/file-annotations.d.ts +18 -0
  121. package/dist/files/viewer/file-annotations.js +21 -0
  122. package/dist/files/viewer/file-content-renderer.js +1 -1
  123. package/dist/files/viewer/file-viewer.js +2 -1
  124. package/dist/files/viewer/index.d.ts +1 -0
  125. package/dist/files/viewer/index.js +1 -0
  126. package/dist/files/viewer/use-file-content-state.js +8 -1
  127. package/dist/i18n/en.d.ts +495 -46
  128. package/dist/i18n/en.js +536 -87
  129. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
  130. package/dist/icons/caret-right-solid.d.ts +11 -0
  131. package/dist/icons/caret-right-solid.js +15 -0
  132. package/dist/internal/auth/auth-art.d.ts +12 -0
  133. package/dist/internal/auth/auth-art.js +118 -0
  134. package/dist/internal/auth/auth-card-shell.d.ts +14 -10
  135. package/dist/internal/auth/auth-card-shell.js +20 -31
  136. package/dist/internal/auth/auth-consent.d.ts +3 -1
  137. package/dist/internal/auth/auth-consent.js +2 -2
  138. package/dist/internal/auth/auth-primitives.d.ts +26 -1
  139. package/dist/internal/auth/auth-primitives.js +37 -8
  140. package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
  141. package/dist/internal/connector-logo/connector-logo.js +11 -2
  142. package/dist/internal/files/file-read-retry.d.ts +18 -2
  143. package/dist/internal/files/file-read-retry.js +42 -4
  144. package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
  145. package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
  146. package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
  147. package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
  148. package/dist/internal/hooks/use-reduced-motion.js +12 -0
  149. package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
  150. package/dist/internal/hooks/use-save-shortcut.js +28 -0
  151. package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
  152. package/dist/internal/layout/connect-mcp-modal.js +9 -4
  153. package/dist/internal/layout/panel-chrome.d.ts +28 -0
  154. package/dist/internal/layout/panel-chrome.js +27 -0
  155. package/dist/internal/layout/project-page-header.js +5 -1
  156. package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
  157. package/dist/internal/lib/manifest-health.d.ts +25 -1
  158. package/dist/internal/lib/manifest-health.js +56 -0
  159. package/dist/internal/lib/project-preamble.js +1 -1
  160. package/dist/internal/lib/web-notifications.d.ts +1 -1
  161. package/dist/internal/lib/web-notifications.js +3 -0
  162. package/dist/internal/notifications/notification-inbox.js +2 -1
  163. package/dist/internal/notifications/notification-rows.d.ts +1 -1
  164. package/dist/internal/notifications/notification-rows.js +15 -1
  165. package/dist/internal/selection/selection-bar.d.ts +2 -8
  166. package/dist/internal/selection/selection-bar.js +15 -38
  167. package/dist/internal/stores/active-space-store.d.ts +1 -1
  168. package/dist/internal/stores/browser-recents-store.d.ts +1 -1
  169. package/dist/internal/stores/current-account-store.d.ts +1 -1
  170. package/dist/internal/stores/first-chat-store.d.ts +1 -1
  171. package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
  172. package/dist/internal/stores/session-browser-store.d.ts +1 -1
  173. package/dist/internal/stores/session-expanded-store.d.ts +1 -1
  174. package/dist/internal/stores/session-filter-store.d.ts +1 -1
  175. package/dist/internal/stores/session-history-view-store.d.ts +1 -1
  176. package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
  177. package/dist/internal/stores/sound-store.d.ts +1 -1
  178. package/dist/internal/stores/tab-store.d.ts +1 -1
  179. package/dist/internal/stores/user-preferences-store.d.ts +9 -1
  180. package/dist/internal/stores/user-preferences-store.js +2 -0
  181. package/dist/internal/stores/web-notification-store.d.ts +1 -1
  182. package/dist/lib/base-ui-compat.js +28 -1
  183. package/dist/lib/dotmatrix-hooks.d.ts +1 -0
  184. package/dist/lib/dotmatrix-hooks.js +3 -13
  185. package/dist/lib/reduced-motion.d.ts +10 -0
  186. package/dist/lib/reduced-motion.js +104 -0
  187. package/dist/lib/routes.d.ts +9 -0
  188. package/dist/lib/routes.js +7 -4
  189. package/dist/markdown/artifact-link.d.ts +11 -0
  190. package/dist/markdown/artifact-link.js +62 -0
  191. package/dist/markdown/code/index.d.ts +1 -1
  192. package/dist/markdown/code/index.js +1 -1
  193. package/dist/markdown/code/inline-code.d.ts +1 -1
  194. package/dist/markdown/code/inline-code.js +1 -1
  195. package/dist/markdown/genui/components/map-canvas.js +2 -1
  196. package/dist/markdown/index.d.ts +3 -1
  197. package/dist/markdown/index.js +2 -1
  198. package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
  199. package/dist/markdown/inline-code-text.d.ts +34 -0
  200. package/dist/markdown/inline-code-text.js +68 -0
  201. package/dist/markdown/setup-links/approval-decision.js +3 -3
  202. package/dist/markdown/soft-breaks.d.ts +21 -0
  203. package/dist/markdown/soft-breaks.js +33 -0
  204. package/dist/markdown/unified-markdown.d.ts +9 -1
  205. package/dist/markdown/unified-markdown.js +31 -9
  206. package/dist/primitives/action-bar.d.ts +50 -0
  207. package/dist/primitives/action-bar.js +87 -0
  208. package/dist/primitives/calendar.js +4 -2
  209. package/dist/primitives/inline-meta.js +2 -2
  210. package/dist/primitives/kortix-loader.js +2 -1
  211. package/dist/primitives/modal.d.ts +1 -1
  212. package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
  213. package/dist/primitives/paper-wallpaper-shaders.js +6 -0
  214. package/dist/primitives/resizable.d.ts +1 -1
  215. package/dist/primitives/resize-seam.d.ts +3 -2
  216. package/dist/primitives/resize-seam.js +4 -3
  217. package/dist/primitives/settings-section-header.d.ts +30 -1
  218. package/dist/primitives/settings-section-header.js +37 -0
  219. package/dist/primitives/sliding-tab-indicator.js +2 -1
  220. package/dist/primitives/switch.js +15 -8
  221. package/dist/primitives/text-shimmer.js +6 -0
  222. package/dist/primitives/toast-clearance.d.ts +52 -0
  223. package/dist/primitives/toast-clearance.js +116 -0
  224. package/dist/primitives/toast.d.ts +3 -1
  225. package/dist/primitives/toast.js +2 -0
  226. package/dist/primitives/typed-title.js +1 -1
  227. package/dist/primitives/wallpaper-shaders.js +1 -1
  228. package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
  229. package/dist/session/actions/project-session-list-helpers.js +18 -0
  230. package/dist/session/agents/agent-model.d.ts +1 -0
  231. package/dist/session/agents/agent-model.js +2 -1
  232. package/dist/session/agents/agent-strip.js +10 -4
  233. package/dist/session/agents/workflow-run-controls.d.ts +27 -4
  234. package/dist/session/agents/workflow-run-controls.js +63 -10
  235. package/dist/session/composer/ComposerCard.js +3 -0
  236. package/dist/session/composer/agent-selector.js +6 -4
  237. package/dist/session/composer/animated-placeholder.js +2 -1
  238. package/dist/session/composer/attachment-tile.d.ts +2 -2
  239. package/dist/session/composer/attachment-tile.js +25 -3
  240. package/dist/session/composer/composer-agent-access.d.ts +10 -1
  241. package/dist/session/composer/composer-agent-access.js +18 -4
  242. package/dist/session/composer/composer-chat-input.js +7 -2
  243. package/dist/session/composer/composer.d.ts +2 -2
  244. package/dist/session/composer/composer.js +7 -6
  245. package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
  246. package/dist/session/composer/hooks/use-file-search.js +71 -7
  247. package/dist/session/composer/menus/menu-items.js +6 -2
  248. package/dist/session/composer/menus/menu-shell.d.ts +3 -1
  249. package/dist/session/composer/menus/menu-shell.js +2 -2
  250. package/dist/session/composer/menus/slash-menu.d.ts +7 -0
  251. package/dist/session/composer/menus/slash-menu.js +48 -1
  252. package/dist/session/composer/use-instant-session-send.js +7 -1
  253. package/dist/session/header/session-reminders-indicator.js +3 -2
  254. package/dist/session/header/session-site-header.js +24 -6
  255. package/dist/session/media/sandbox-url-detector.js +1 -1
  256. package/dist/session/models/model-connection-gate.js +2 -1
  257. package/dist/session/models/model-selector.js +1 -1
  258. package/dist/session/models/subscription-switcher.d.ts +7 -0
  259. package/dist/session/models/subscription-switcher.js +52 -10
  260. package/dist/session/models/subscription-windows.d.ts +2 -0
  261. package/dist/session/models/subscription-windows.js +2 -0
  262. package/dist/session/outcomes/session-outcomes-provider.js +14 -7
  263. package/dist/session/panel/action-panel.js +8 -19
  264. package/dist/session/panel/easy/app-preview.d.ts +4 -1
  265. package/dist/session/panel/easy/app-preview.js +95 -33
  266. package/dist/session/panel/easy/apps-card.js +6 -11
  267. package/dist/session/panel/easy/change-requests-card.js +1 -1
  268. package/dist/session/panel/easy/changes-card.d.ts +14 -0
  269. package/dist/session/panel/easy/changes-card.js +60 -0
  270. package/dist/session/panel/easy/context-card.d.ts +5 -1
  271. package/dist/session/panel/easy/context-card.js +13 -28
  272. package/dist/session/panel/easy/context-meter.d.ts +18 -0
  273. package/dist/session/panel/easy/context-meter.js +73 -0
  274. package/dist/session/panel/easy/detail-view.d.ts +1 -1
  275. package/dist/session/panel/easy/detail-view.js +24 -21
  276. package/dist/session/panel/easy/easy-panel.js +7 -5
  277. package/dist/session/panel/easy/file-preview.js +3 -1
  278. package/dist/session/panel/easy/frame-history.d.ts +91 -0
  279. package/dist/session/panel/easy/frame-history.js +198 -0
  280. package/dist/session/panel/easy/outputs-card.d.ts +10 -0
  281. package/dist/session/panel/easy/outputs-card.js +28 -31
  282. package/dist/session/panel/easy/panel-card.d.ts +1 -3
  283. package/dist/session/panel/easy/panel-card.js +24 -8
  284. package/dist/session/panel/easy/plan-card.js +2 -2
  285. package/dist/session/panel/easy/step-icon.d.ts +4 -1
  286. package/dist/session/panel/easy/step-icon.js +2 -2
  287. package/dist/session/panel/session-action-panel-column.d.ts +5 -0
  288. package/dist/session/panel/session-action-panel-column.js +198 -101
  289. package/dist/session/panel/session-desktop.js +5 -1
  290. package/dist/session/panel/session-diff-viewer.d.ts +3 -1
  291. package/dist/session/panel/session-diff-viewer.js +7 -4
  292. package/dist/session/panel/session-panel-provider.js +29 -5
  293. package/dist/session/panel/shared/derive-panels.js +64 -4
  294. package/dist/session/status/session-busy-indicator.js +2 -1
  295. package/dist/session/status/session-error-banner.js +1 -1
  296. package/dist/session/thread/chat-minimap.js +2 -1
  297. package/dist/session/thread/session-body.js +4 -1
  298. package/dist/session/thread/session-chat.js +18 -3
  299. package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
  300. package/dist/session/thread/session-turn-meta-rows.js +33 -5
  301. package/dist/session/thread/transcript.d.ts +1 -2
  302. package/dist/session/thread/transcript.js +26 -24
  303. package/dist/session/thread/typing-indicator.d.ts +2 -2
  304. package/dist/session/thread/typing-indicator.js +10 -3
  305. package/dist/session/tool/tools/session-spawn-tool.js +3 -3
  306. package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
  307. package/dist/session/tool/tools/workflow-run-card.js +31 -7
  308. package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
  309. package/dist/session/tool/tools/workflow-run-cost.js +75 -0
  310. package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
  311. package/dist/session/tool/tools/workflow-tool.js +40 -15
  312. package/dist/session/turn/peer-message-row.js +1 -1
  313. package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
  314. package/dist/session/turn/queued-prompt-bubbles.js +1 -1
  315. package/dist/session/turn/throttled-markdown.js +1 -1
  316. package/dist/styles/theme.css +68 -0
  317. package/dist/styles.css +1 -1
  318. package/dist/terminal/pty-terminal.js +1 -1
  319. package/dist/terminal/session-terminal-connect-bar.js +2 -1
  320. package/dist/test-utils/intl.d.ts +495 -46
  321. package/dist/workspace/admin/project-admin-dashboard.js +21 -7
  322. package/dist/workspace/admin/settings-search-landing.js +2 -1
  323. package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
  324. package/dist/workspace/calendar/calendar-dates.js +64 -0
  325. package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
  326. package/dist/workspace/calendar/calendar-new-item.js +47 -0
  327. package/dist/workspace/calendar/calendar-page.d.ts +3 -0
  328. package/dist/workspace/calendar/calendar-page.js +177 -0
  329. package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
  330. package/dist/workspace/calendar/calendar-panel.js +103 -0
  331. package/dist/workspace/calendar/calendar-people.d.ts +52 -0
  332. package/dist/workspace/calendar/calendar-people.js +117 -0
  333. package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
  334. package/dist/workspace/calendar/calendar-scheduled.js +118 -0
  335. package/dist/workspace/calendar/calendar-views.d.ts +32 -0
  336. package/dist/workspace/calendar/calendar-views.js +124 -0
  337. package/dist/workspace/calendar/calendar-when.d.ts +14 -0
  338. package/dist/workspace/calendar/calendar-when.js +81 -0
  339. package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
  340. package/dist/workspace/calendar/mention-textarea.js +84 -0
  341. package/dist/workspace/home/access-requests-bell.js +2 -1
  342. package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
  343. package/dist/workspace/inbox/workspace-inbox.js +1 -1
  344. package/dist/workspace/layout/project-files-view.js +2 -1
  345. package/dist/workspace/memory/memory-page-list.js +1 -1
  346. package/dist/workspace/new/workspace-handoff.js +2 -1
  347. package/dist/workspace/projects/modal/project-icon-field.js +2 -1
  348. package/dist/workspace/session-workspace.js +13 -12
  349. package/dist/workspace/setup/setup-steps.d.ts +43 -0
  350. package/dist/workspace/setup/setup-steps.js +38 -0
  351. package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
  352. package/dist/workspace/setup/workspace-setup-page.js +124 -0
  353. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
  354. package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
  355. package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
  356. package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
  357. package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
  358. package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
  359. package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
  360. package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
  361. package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
  362. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
  363. package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
  364. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
  365. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
  366. package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
  367. package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
  368. package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
  369. package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
  370. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
  371. package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
  372. package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
  373. package/dist/workspace/sidebar/footer/promo-card.js +47 -0
  374. package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
  375. package/dist/workspace/sidebar/project-nav-items.js +12 -4
  376. package/dist/workspace/sidebar/project-session-list.js +58 -26
  377. package/dist/workspace/sidebar/project-sidebar.js +2 -5
  378. package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
  379. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
  380. package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
  381. package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
  382. package/dist/workspace/sidebar/session-group-sections.js +121 -41
  383. package/dist/workspace/sidebar/sidebar-drill.js +6 -0
  384. package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
  385. package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
  386. package/dist/workspace/sidebar/use-workspace-list.js +11 -1
  387. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
  388. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
  389. package/dist/workspace/space/space-tab-panels.js +1 -1
  390. package/dist/workspace/spaces/space-timeline.js +2 -2
  391. package/package.json +67 -10
  392. package/skills/kortix-ui/SKILL.md +2 -2
  393. package/skills/kortix-ui/references/modules.md +5 -3
  394. package/dist/session/thread/turn-share.d.ts +0 -16
  395. package/dist/session/thread/turn-share.js +0 -161
  396. package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
  397. package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
  398. /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
@@ -5,7 +5,7 @@ interface State {
5
5
  toggleExpanded: (projectId: string, id: string) => void;
6
6
  }
7
7
  export declare const selectExpandedIds: (projectId: string) => (s: State) => readonly string[];
8
- export declare const useSessionExpandedStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State>, "persist" | "setState"> & {
8
+ export declare const useSessionExpandedStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State>, "setState" | "persist"> & {
9
9
  setState(partial: State | Partial<State> | ((state: State) => State | Partial<State>), replace?: false | undefined): unknown;
10
10
  setState(state: State | ((state: State) => State), replace: true): unknown;
11
11
  persist: {
@@ -75,7 +75,7 @@ export declare const selectHiddenSections: (projectId: string, surface?: Session
75
75
  * to see everything should do.
76
76
  */
77
77
  export declare const selectCollapsedSections: (projectId: string, surface?: SessionViewSurface) => (s: State) => string[];
78
- export declare const useSessionFilterStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State & Actions>, "persist" | "setState"> & {
78
+ export declare const useSessionFilterStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State & Actions>, "setState" | "persist"> & {
79
79
  setState(partial: (State & Actions) | Partial<State & Actions> | ((state: State & Actions) => (State & Actions) | Partial<State & Actions>), replace?: false | undefined): unknown;
80
80
  setState(state: (State & Actions) | ((state: State & Actions) => State & Actions), replace: true): unknown;
81
81
  persist: {
@@ -7,7 +7,7 @@ interface State {
7
7
  dismissRestore: (sessionId: string, generation: number) => void;
8
8
  setOutOfContext: (sessionId: string, present: boolean) => void;
9
9
  }
10
- export declare const useSessionHistoryViewStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State>, "persist" | "setState"> & {
10
+ export declare const useSessionHistoryViewStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<State>, "setState" | "persist"> & {
11
11
  setState(partial: State | Partial<State> | ((state: State) => State | Partial<State>), replace?: false | undefined): unknown;
12
12
  setState(state: State | ((state: State) => State), replace: true): unknown;
13
13
  persist: {
@@ -41,7 +41,7 @@ interface SessionPanelMemoryState {
41
41
  /** Remember what `sessionId`'s panel shows; null forgets it. */
42
42
  remember: (sessionId: string, panel: RememberedPanel | null) => void;
43
43
  }
44
- export declare const useSessionPanelMemoryStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SessionPanelMemoryState>, "persist" | "setState"> & {
44
+ export declare const useSessionPanelMemoryStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SessionPanelMemoryState>, "setState" | "persist"> & {
45
45
  setState(partial: SessionPanelMemoryState | Partial<SessionPanelMemoryState> | ((state: SessionPanelMemoryState) => SessionPanelMemoryState | Partial<SessionPanelMemoryState>), replace?: false | undefined): unknown;
46
46
  setState(state: SessionPanelMemoryState | ((state: SessionPanelMemoryState) => SessionPanelMemoryState), replace: true): unknown;
47
47
  persist: {
@@ -35,7 +35,7 @@ interface SoundState {
35
35
  /** Check if a specific event should play sound */
36
36
  isEventEnabled: (event: SoundEvent) => boolean;
37
37
  }
38
- export declare const useSoundStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SoundState>, "persist" | "setState"> & {
38
+ export declare const useSoundStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SoundState>, "setState" | "persist"> & {
39
39
  setState(partial: SoundState | Partial<SoundState> | ((state: SoundState) => SoundState | Partial<SoundState>), replace?: false | undefined): unknown;
40
40
  setState(state: SoundState | ((state: SoundState) => SoundState), replace: true): unknown;
41
41
  persist: {
@@ -40,7 +40,7 @@ interface TabState {
40
40
  /** Set the active tab */
41
41
  setActiveTab: (tabId: string) => void;
42
42
  }
43
- export declare const useTabStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<TabState>, "persist" | "setState"> & {
43
+ export declare const useTabStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<TabState>, "setState" | "persist"> & {
44
44
  setState(partial: TabState | Partial<TabState> | ((state: TabState) => TabState | Partial<TabState>), replace?: false | undefined): unknown;
45
45
  setState(state: TabState | ((state: TabState) => TabState), replace: true): unknown;
46
46
  persist: {
@@ -43,6 +43,12 @@ export interface UserPreferences {
43
43
  * Legacy persisted preferences predate this key: read sites use `?? true`.
44
44
  */
45
45
  genuiEnabled?: boolean;
46
+ /**
47
+ * Reduce motion across the app (shimmer, pulses, transitions) on top of the
48
+ * OS setting. Legacy persisted preferences predate this key: read sites use
49
+ * `=== true`. See `internal/hooks/use-reduced-motion.ts`.
50
+ */
51
+ reduceMotion?: boolean;
46
52
  }
47
53
  interface UserPreferencesState {
48
54
  preferences: UserPreferences;
@@ -61,10 +67,12 @@ interface UserPreferencesState {
61
67
  setConversationDensity: (density: ConversationDensity) => void;
62
68
  /** Render generative UI blocks as UI (true) or as markdown (false) */
63
69
  setGenuiEnabled: (enabled: boolean) => void;
70
+ /** Turn the app-wide "Reduce motion" switch on or off */
71
+ setReduceMotion: (reduce: boolean) => void;
64
72
  /** Get the label for the current tab switch modifier (e.g. "Cmd" or "Ctrl") */
65
73
  getModifierLabel: () => string;
66
74
  }
67
- export declare const useUserPreferencesStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<UserPreferencesState>, "persist" | "setState"> & {
75
+ export declare const useUserPreferencesStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<UserPreferencesState>, "setState" | "persist"> & {
68
76
  setState(partial: UserPreferencesState | Partial<UserPreferencesState> | ((state: UserPreferencesState) => UserPreferencesState | Partial<UserPreferencesState>), replace?: false | undefined): unknown;
69
77
  setState(state: UserPreferencesState | ((state: UserPreferencesState) => UserPreferencesState), replace: true): unknown;
70
78
  persist: {
@@ -30,6 +30,7 @@ const DEFAULT_PREFERENCES = {
30
30
  panelMode: 'easy',
31
31
  conversationDensity: 'normal',
32
32
  genuiEnabled: true,
33
+ reduceMotion: false,
33
34
  };
34
35
  export const useUserPreferencesStore = create()(persist((set, get) => ({
35
36
  preferences: DEFAULT_PREFERENCES,
@@ -50,6 +51,7 @@ export const useUserPreferencesStore = create()(persist((set, get) => ({
50
51
  },
51
52
  setConversationDensity: (density) => get().patchPreferences({ conversationDensity: density }),
52
53
  setGenuiEnabled: (enabled) => get().patchPreferences({ genuiEnabled: enabled }),
54
+ setReduceMotion: (reduce) => get().patchPreferences({ reduceMotion: reduce }),
53
55
  getModifierLabel: () => {
54
56
  const mod = get().preferences.keyboard.tabSwitchModifier;
55
57
  return mod === 'meta' ? (isMac ? 'Cmd' : 'Win') : 'Ctrl';
@@ -31,7 +31,7 @@ interface WebNotificationState {
31
31
  /** Dismiss the notification enable prompt */
32
32
  dismissPrompt: () => void;
33
33
  }
34
- export declare const useWebNotificationStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WebNotificationState>, "persist" | "setState"> & {
34
+ export declare const useWebNotificationStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WebNotificationState>, "setState" | "persist"> & {
35
35
  setState(partial: WebNotificationState | Partial<WebNotificationState> | ((state: WebNotificationState) => WebNotificationState | Partial<WebNotificationState>), replace?: false | undefined): unknown;
36
36
  setState(state: WebNotificationState | ((state: WebNotificationState) => WebNotificationState), replace: true): unknown;
37
37
  persist: {
@@ -184,13 +184,14 @@ export function focusProps(getPopup, onOpenAutoFocus, onCloseAutoFocus) {
184
184
  node.dispatchEvent(event);
185
185
  return !event.defaultPrevented;
186
186
  };
187
+ trackFocusMoves();
187
188
  return {
188
189
  // As in Radix, focus that is already inside the popup when it opens (an
189
190
  // `autoFocus` field) stays there; Base UI would move it to its own pick.
190
191
  initialFocus: () => {
191
192
  const node = getPopup();
192
193
  if (node)
193
- returnFocusTo.set(node, document.activeElement);
194
+ returnFocusTo.set(node, focusBeforeOpen(node));
194
195
  if (node && node.contains(document.activeElement))
195
196
  return false;
196
197
  return onOpenAutoFocus ? run('focusScope.autoFocusOnMount', onOpenAutoFocus) : true;
@@ -219,6 +220,32 @@ export function focusProps(getPopup, onOpenAutoFocus, onCloseAutoFocus) {
219
220
  }
220
221
  /** The element that had focus when each popup opened. */
221
222
  const returnFocusTo = new WeakMap();
223
+ /** The last focus move: where focus went, and where it came from (`relatedTarget`). */
224
+ let lastFocusMove = null;
225
+ const trackedDocuments = new WeakSet();
226
+ /** Installs one capture `focusin` listener per document, at the first popup render. */
227
+ function trackFocusMoves() {
228
+ if (typeof document === 'undefined' || trackedDocuments.has(document))
229
+ return;
230
+ trackedDocuments.add(document);
231
+ document.addEventListener('focusin', (event) => {
232
+ lastFocusMove = { to: event.target, from: event.relatedTarget };
233
+ }, true);
234
+ }
235
+ /**
236
+ * Where focus was before the popup opened. An `autoFocus` field inside the
237
+ * popup takes focus during React's commit, before `initialFocus` runs: then
238
+ * `activeElement` is that field, and the element it took focus from is the
239
+ * real return target (a dialog opened from a menu row once returned focus to
240
+ * a field it had just unmounted, so focus fell to <body>).
241
+ */
242
+ function focusBeforeOpen(node) {
243
+ const active = document.activeElement;
244
+ if (!active || !node.contains(active) || lastFocusMove?.to !== active)
245
+ return active;
246
+ const from = lastFocusMove.from;
247
+ return from instanceof Element && !node.contains(from) ? from : null;
248
+ }
222
249
  /**
223
250
  * Base UI `nativeButton` for a trigger: true when it renders a real `<button>`.
224
251
  * That is the default, an `asChild` child that is `<button>`, and an `asChild`
@@ -1,4 +1,5 @@
1
1
  import type { DotMatrixPhase } from './dotmatrix-core.js';
2
+ /** The OS setting or the "Reduce motion" switch (`use-reduced-motion.ts`). */
2
3
  export declare function usePrefersReducedMotion(): boolean;
3
4
  interface UseCyclePhaseOptions {
4
5
  active: boolean;
@@ -1,19 +1,9 @@
1
1
  'use client';
2
2
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
+ import { useReducedMotion } from './reduced-motion.js';
4
+ /** The OS setting or the "Reduce motion" switch (`use-reduced-motion.ts`). */
3
5
  export function usePrefersReducedMotion() {
4
- const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
5
- useEffect(() => {
6
- const query = window.matchMedia('(prefers-reduced-motion: reduce)');
7
- const update = () => {
8
- setPrefersReducedMotion(query.matches);
9
- };
10
- update();
11
- query.addEventListener('change', update);
12
- return () => {
13
- query.removeEventListener('change', update);
14
- };
15
- }, []);
16
- return prefersReducedMotion;
6
+ return useReducedMotion();
17
7
  }
18
8
  export function useCyclePhase({ active, cycleMsBase, speed = 1 }) {
19
9
  const [phase, setPhase] = useState(0);
@@ -0,0 +1,10 @@
1
+ /** The `<html>` attribute set while the person's "Reduce motion" switch is on. */
2
+ export declare const REDUCE_MOTION_ATTRIBUTE = "data-reduce-motion";
3
+ /** True when the OS asks for reduced motion or the person turned it on. Safe on the server (false). */
4
+ export declare function prefersReducedMotion(): boolean;
5
+ /** Mirrors the "Reduce motion" switch onto `<html>` and into Motion's global config. */
6
+ export declare function applyReduceMotion(element: Element, reduce: boolean): void;
7
+ /** True while the switch applies to the current page (`data-reduce-motion` is on `<html>`). */
8
+ export declare function useReduceMotionActive(): boolean;
9
+ /** Drop-in for `motion/react`'s `useReducedMotion` that also honors the switch on workspace routes. */
10
+ export declare function useReducedMotion(): boolean;
@@ -0,0 +1,104 @@
1
+ 'use client';
2
+ /**
3
+ * Reduced motion: the operating system's `prefers-reduced-motion` OR the
4
+ * person's own "Reduce motion" switch (Settings ▸ Preferences).
5
+ *
6
+ * The switch is mirrored onto `<html>` as `data-reduce-motion` on workspace
7
+ * routes only (the pre-paint script in `apps/web/src/lib/interface-themes.ts`,
8
+ * then `ReduceMotionSync`). The attribute is the single source: marketing and
9
+ * auth pages never carry it, so they keep their motion. Every motion path
10
+ * reads one of these:
11
+ * - CSS keyframes and transitions: `theme.css` keys on the attribute, and the
12
+ * `motion-reduce:` / `motion-safe:` variants match it.
13
+ * - `motion/react`: `MotionGlobalConfig.skipAnimations`, set with the
14
+ * attribute. Motion reads it on every animation start, so elements that
15
+ * are already mounted obey a flip at once (`MotionConfig.reducedMotion`
16
+ * is read only when an element mounts).
17
+ * - Code that picks a motion branch itself: `useReducedMotion()` (React) or
18
+ * `prefersReducedMotion()` (a one-off check outside render).
19
+ *
20
+ * This file has no store import, so `primitives/` and `lib/` can read it.
21
+ * The switch's stored value (`useReduceMotionSetting`) lives in
22
+ * `internal/hooks/use-reduced-motion.ts`, which re-exports this file.
23
+ *
24
+ * In workspace UI, use these instead of `useReducedMotion` from
25
+ * `motion/react` or a raw `matchMedia(...)`: both read only the OS.
26
+ */
27
+ import { MotionGlobalConfig } from 'motion/react';
28
+ import { useSyncExternalStore } from 'react';
29
+ /** The `<html>` attribute set while the person's "Reduce motion" switch is on. */
30
+ export const REDUCE_MOTION_ATTRIBUTE = 'data-reduce-motion';
31
+ const SYSTEM_QUERY = '(prefers-reduced-motion: reduce)';
32
+ /**
33
+ * True when `<html>` carries the switch's attribute. A document without an
34
+ * `<html>` element (a stubbed document in a test, a non-DOM renderer) reads
35
+ * as off instead of throwing at module load.
36
+ */
37
+ function htmlReducesMotion() {
38
+ return typeof document !== 'undefined' && document.documentElement?.hasAttribute(REDUCE_MOTION_ATTRIBUTE) === true;
39
+ }
40
+ // The pre-paint script has already marked <html>. Seed the flag from it when
41
+ // this module loads, so Motion skips from the first mount animation on.
42
+ if (htmlReducesMotion()) {
43
+ MotionGlobalConfig.skipAnimations = true;
44
+ }
45
+ // One query object per page: `prefersReducedMotion()` runs on every layout
46
+ // change while a turn streams (`use-auto-scroll.ts`).
47
+ let systemQuery;
48
+ function getSystemQuery() {
49
+ if (systemQuery === undefined) {
50
+ systemQuery =
51
+ typeof window !== 'undefined' && typeof window.matchMedia === 'function'
52
+ ? window.matchMedia(SYSTEM_QUERY)
53
+ : null;
54
+ }
55
+ return systemQuery;
56
+ }
57
+ /** True when the OS asks for reduced motion or the person turned it on. Safe on the server (false). */
58
+ export function prefersReducedMotion() {
59
+ if (typeof window === 'undefined' || typeof document === 'undefined')
60
+ return false;
61
+ if (htmlReducesMotion())
62
+ return true;
63
+ return getSystemQuery()?.matches ?? false;
64
+ }
65
+ /** Mirrors the "Reduce motion" switch onto `<html>` and into Motion's global config. */
66
+ export function applyReduceMotion(element, reduce) {
67
+ if (reduce)
68
+ element.setAttribute(REDUCE_MOTION_ATTRIBUTE, '');
69
+ else
70
+ element.removeAttribute(REDUCE_MOTION_ATTRIBUTE);
71
+ MotionGlobalConfig.skipAnimations = reduce;
72
+ }
73
+ /** The OS setting, live: Motion's own `useReducedMotion` reads it once and never updates. */
74
+ function subscribeSystem(onChange) {
75
+ const query = getSystemQuery();
76
+ if (!query)
77
+ return () => { };
78
+ query.addEventListener('change', onChange);
79
+ return () => query.removeEventListener('change', onChange);
80
+ }
81
+ const systemSnapshot = () => getSystemQuery()?.matches ?? false;
82
+ const serverSnapshot = () => false;
83
+ /** The attribute, live: set only while the switch is on AND a workspace route is showing. */
84
+ function subscribeAttribute(onChange) {
85
+ if (typeof MutationObserver === 'undefined' || typeof document === 'undefined' || !document.documentElement) {
86
+ return () => { };
87
+ }
88
+ const observer = new MutationObserver(onChange);
89
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: [REDUCE_MOTION_ATTRIBUTE] });
90
+ return () => observer.disconnect();
91
+ }
92
+ // A renderer with no DOM (React Native, react-test-renderer) still calls the
93
+ // client snapshot: no document means no switch.
94
+ const attributeSnapshot = () => htmlReducesMotion();
95
+ /** True while the switch applies to the current page (`data-reduce-motion` is on `<html>`). */
96
+ export function useReduceMotionActive() {
97
+ return useSyncExternalStore(subscribeAttribute, attributeSnapshot, serverSnapshot);
98
+ }
99
+ /** Drop-in for `motion/react`'s `useReducedMotion` that also honors the switch on workspace routes. */
100
+ export function useReducedMotion() {
101
+ const system = useSyncExternalStore(subscribeSystem, systemSnapshot, serverSnapshot);
102
+ const active = useReduceMotionActive();
103
+ return active || system;
104
+ }
@@ -28,6 +28,8 @@ export interface UiRoutes {
28
28
  goals: (projectId: string) => string | null;
29
29
  /** The project's artifacts (flag `artifacts`); one is `<artifacts>/<artifact_id>`. */
30
30
  artifacts: (projectId: string) => string | null;
31
+ /** The workspace calendar (flag `calendar`); `?item=<id>` opens one item. Absent: the host has no calendar route. */
32
+ calendar?: (projectId: string) => string | null;
31
33
  /** One space: a channel and its tabs (`?tab=` opens one). */
32
34
  space: (projectId: string, slug: string) => string | null;
33
35
  members: (projectId: string) => string | null;
@@ -58,6 +60,13 @@ export interface UiRoutes {
58
60
  * the host serves Review only inside its `customize` route.
59
61
  */
60
62
  review?: (projectId: string) => string | null;
63
+ /**
64
+ * The person's notification Inbox (`/inbox` on apps/web). It spans every
65
+ * workspace, so it takes no project. The workspace sidebar links it. A host
66
+ * that maps any route with `setUiRoutes` links it only when it maps `inbox`
67
+ * too, so it never links a page it does not serve.
68
+ */
69
+ inbox?: () => string | null;
61
70
  }
62
71
  export declare const defaultUiRoutes: UiRoutes;
63
72
  /**
@@ -7,6 +7,7 @@ const DEFAULT_ROUTES = {
7
7
  apps: (p) => `/workspaces/${p}/apps`,
8
8
  goals: (p) => `/workspaces/${p}/goals`,
9
9
  artifacts: (p) => `/workspaces/${p}/artifacts`,
10
+ calendar: (p) => `/workspaces/${p}/calendar`,
10
11
  space: (p, slug) => `/workspaces/${p}/spaces/${encodeURIComponent(slug)}`,
11
12
  members: (p) => `/workspaces/${p}/members`,
12
13
  sandboxSettings: (p) => `/workspaces/${p}/admin/sandbox`,
@@ -15,9 +16,9 @@ const DEFAULT_ROUTES = {
15
16
  channel: (p, slug) => `/workspaces/${p}/c/${slug}`,
16
17
  dm: (p, agentName) => `/workspaces/${p}/dm/${encodeURIComponent(agentName)}`,
17
18
  memory: (p) => `/workspaces/${p}/memory`,
18
- // The workspace Inbox page IS the Review queue (KRTX-4799); the old
19
- // `/workspaces/<id>/review` route redirects here.
20
- review: (p) => `/workspaces/${p}/inbox?view=review`,
19
+ // The workspace Review queue has its own page.
20
+ review: (p) => `/workspaces/${p}/review`,
21
+ inbox: () => '/inbox',
21
22
  };
22
23
  export const defaultUiRoutes = DEFAULT_ROUTES;
23
24
  let routes = DEFAULT_ROUTES;
@@ -31,7 +32,9 @@ export function setUiRoutes(overrides) {
31
32
  const admin = overrides.admin ?? overrides.customize;
32
33
  // A host that routes its own customize pages serves Review there unless it also routes `review`.
33
34
  const review = overrides.review ?? (overrides.customize ? undefined : DEFAULT_ROUTES.review);
34
- routes = { ...DEFAULT_ROUTES, ...overrides, ...(admin ? { admin } : {}), review };
35
+ // Inbox is apps/web's page: a host that maps any route links it only when it maps `inbox`.
36
+ const inbox = overrides.inbox ?? (Object.keys(overrides).length === 0 ? DEFAULT_ROUTES.inbox : undefined);
37
+ routes = { ...DEFAULT_ROUTES, ...overrides, ...(admin ? { admin } : {}), review, inbox };
35
38
  }
36
39
  export function uiRoutes() {
37
40
  return routes;
@@ -0,0 +1,11 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ /** Enrich a chat link without changing its destination or click behavior. */
3
+ type ArtifactLinkProps = {
4
+ href: string;
5
+ raw: boolean;
6
+ children: (label: ReactNode) => ReactElement;
7
+ };
8
+ export declare function ArtifactLink(props: ArtifactLinkProps): import("react").JSX.Element;
9
+ /** Only enrich destinations on Kortix or the current host. */
10
+ export declare function isArtifactLink(href: string): boolean;
11
+ export {};
@@ -0,0 +1,62 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { getArtifact, getPublicArtifact, parseArtifactUrl } from "@kortix/sdk";
4
+ import { QueryClientContext, useQuery } from "@tanstack/react-query";
5
+ import { useContext } from "react";
6
+ import { HoverCard, HoverCardContent, HoverCardTrigger, } from "../primitives/hover-card.js";
7
+ import { useLocale, useTranslations } from "../i18n/index.js";
8
+ export function ArtifactLink(props) {
9
+ const client = useContext(QueryClientContext);
10
+ if (!client)
11
+ return props.children(undefined);
12
+ return _jsx(ResolvedArtifactLink, { ...props });
13
+ }
14
+ function ResolvedArtifactLink({ href, raw, children }) {
15
+ const ref = parseArtifactUrl(href);
16
+ const t = useTranslations("markdownAppLinks");
17
+ const locale = useLocale();
18
+ const project = useQuery({
19
+ queryKey: ["artifact-link-project", ref.projectId, ref.artifactId],
20
+ queryFn: () => getArtifact(ref.projectId, ref.artifactId, { showErrors: false }),
21
+ enabled: !!ref.projectId,
22
+ staleTime: 60_000,
23
+ retry: false,
24
+ });
25
+ const shared = useQuery({
26
+ queryKey: ["artifact-link-public", ref.artifactId],
27
+ queryFn: () => getPublicArtifact(ref.artifactId),
28
+ enabled: !ref.projectId,
29
+ staleTime: 60_000,
30
+ retry: false,
31
+ });
32
+ const artifact = ref.projectId ? project.data : shared.data;
33
+ if (!artifact)
34
+ return children(undefined);
35
+ const updated = new Date(artifact.updated_at);
36
+ return (_jsxs(HoverCard, { openDelay: 300, closeDelay: 100, children: [_jsx(HoverCardTrigger, { asChild: true, children: children(raw ? artifact.title : undefined) }), _jsx(HoverCardContent, { align: "start", className: "w-72 max-w-[calc(100vw-2rem)] text-xs", children: _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("div", { className: "text-foreground break-words font-medium", children: artifact.title }), artifact.description && (_jsx("p", { className: "text-muted-foreground break-words whitespace-pre-wrap", children: artifact.description })), _jsx("div", { className: "text-muted-foreground", children: t(artifact.type === "doc" ? "artifactDocument" : "artifactPage") }), !Number.isNaN(updated.getTime()) && (_jsx("div", { className: "text-muted-foreground", children: _jsx("time", { dateTime: artifact.updated_at, children: t("artifactUpdated", {
37
+ date: new Intl.DateTimeFormat(locale, {
38
+ dateStyle: "medium",
39
+ }).format(updated),
40
+ }) }) }))] }) })] }));
41
+ }
42
+ /** Only enrich destinations on Kortix or the current host. */
43
+ export function isArtifactLink(href) {
44
+ if (!parseArtifactUrl(href))
45
+ return false;
46
+ try {
47
+ const url = new URL(href, "https://kortix.com");
48
+ if (!["http:", "https:"].includes(url.protocol) ||
49
+ url.username ||
50
+ url.password)
51
+ return false;
52
+ return ((href.startsWith("/") && url.origin === "https://kortix.com") ||
53
+ (url.protocol === "https:" &&
54
+ !url.port &&
55
+ (url.hostname === "kortix.com" ||
56
+ url.hostname.endsWith(".kortix.com"))) ||
57
+ (typeof window !== "undefined" && url.origin === window.location.origin));
58
+ }
59
+ catch {
60
+ return false;
61
+ }
62
+ }
@@ -2,5 +2,5 @@ export { childrenToText } from './children-text.js';
2
2
  export { CodeBlock, CodeHighlight, HighlightedCode } from './code-block.js';
3
3
  export { CopyOverlay } from './copy-overlay.js';
4
4
  export { ClickableInlineCode } from './inline-code.js';
5
- export { HexColorCode, INLINE_CODE, isHexColor } from './inline-chip.js';
5
+ export { HexColorCode, INLINE_CODE, isHexColor } from '../inline-chip.js';
6
6
  export { MarkdownCode } from './markdown-code.js';
@@ -14,5 +14,5 @@ export { ClickableInlineCode } from './inline-code.js';
14
14
  // From the server-safe module, not through the client one: re-exporting a
15
15
  // plain function out of a `'use client'` file hands a server consumer a client
16
16
  // reference, which throws the moment it is CALLED. See `inline-chip.tsx`.
17
- export { HexColorCode, INLINE_CODE, isHexColor } from './inline-chip.js';
17
+ export { HexColorCode, INLINE_CODE, isHexColor } from '../inline-chip.js';
18
18
  export { MarkdownCode } from './markdown-code.js';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HexColorCode, INLINE_CODE, isHexColor } from './inline-chip.js';
2
+ import { HexColorCode, INLINE_CODE, isHexColor } from '../inline-chip.js';
3
3
  export { HexColorCode, INLINE_CODE, isHexColor };
4
4
  export declare function ClickableInlineCode({ children }: {
5
5
  children: React.ReactNode;
@@ -16,7 +16,7 @@ import { outputPathForName, useOutputPaths } from './output-paths-context.js';
16
16
  import { childrenToText } from './children-text.js';
17
17
  // Server-safe by design — see `inline-chip.tsx`. Re-exported so the client
18
18
  // consumers that already import them from here keep working.
19
- import { HexColorCode, INLINE_CODE, isHexColor } from './inline-chip.js';
19
+ import { HexColorCode, INLINE_CODE, isHexColor } from '../inline-chip.js';
20
20
  export { HexColorCode, INLINE_CODE, isHexColor };
21
21
  /**
22
22
  * A path inside a message, rendered as a door to the file — but only while
@@ -7,6 +7,7 @@ import { Button } from '../../../primitives/button.js';
7
7
  import { MapControls, Map as MapLibreMap, MapMarker, MapRoute, MarkerContent, MarkerPopup, useMap } from '../../../primitives/map.js';
8
8
  import { useTranslations } from '../../../i18n/index.js';
9
9
  import { directionsLink, mapBounds, pinValue, telLink } from './map-geo.js';
10
+ import { prefersReducedMotion } from '../../../internal/hooks/use-reduced-motion.js';
10
11
  /** Gesture and UI-string options for the chat map. `t` reads the `genui` namespace. */
11
12
  export function canvasOptions(t) {
12
13
  return {
@@ -71,7 +72,7 @@ function MapPin({ place }) {
71
72
  if (!map)
72
73
  return;
73
74
  const offset = [0, map.getContainer().clientHeight / 2 - 56];
74
- const still = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
75
+ const still = prefersReducedMotion();
75
76
  map.easeTo({ center: [place.lng, place.lat], offset, duration: still ? 0 : 250 });
76
77
  };
77
78
  return (_jsx(MarkerContent, { children: _jsxs("button", { type: "button", onClick: raise, "aria-label": figure ? `${place.label}, ${figure}` : place.label, className: "flex flex-col items-center", children: [figure ? (_jsx("span", { className: "bg-background text-foreground border-border rounded-full border px-2.5 py-1 text-xs font-semibold whitespace-nowrap tabular-nums shadow-md", children: figure })) : (_jsx("span", { className: "bg-foreground border-background block size-3.5 rounded-full border-2 shadow-md" })), _jsx("span", { className: "bg-background/80 text-foreground absolute top-full mt-1 max-w-36 truncate rounded-sm px-1 text-xs font-medium whitespace-nowrap", children: place.label })] }) }));
@@ -11,7 +11,9 @@ export { UnifiedMarkdown } from './unified-markdown.js';
11
11
  export type { UnifiedMarkdownProps } from './unified-markdown.js';
12
12
  export { CopyOverlay } from './code/index.js';
13
13
  export { CodeHighlight, HighlightedCode } from './code/code-block.js';
14
- export { INLINE_CODE } from './code/inline-chip.js';
14
+ export { INLINE_CODE } from './inline-chip.js';
15
+ export { InlineCodeText, plainTextFromMarkdown, shortSummary, splitInlineCode } from './inline-code-text.js';
16
+ export type { InlineCodeSegment } from './inline-code-text.js';
15
17
  export { CopyButton } from './copy-button.js';
16
18
  export { MarkdownWithFrontmatter } from './markdown-frontmatter.js';
17
19
  export { languageLabel, normalizeLanguage } from './unified-markdown-utils.js';
@@ -9,7 +9,8 @@ export { markdownPolicy } from './markdown-policy.js';
9
9
  export { UnifiedMarkdown } from './unified-markdown.js';
10
10
  export { CopyOverlay } from './code/index.js';
11
11
  export { CodeHighlight, HighlightedCode } from './code/code-block.js';
12
- export { INLINE_CODE } from './code/inline-chip.js';
12
+ export { INLINE_CODE } from './inline-chip.js';
13
+ export { InlineCodeText, plainTextFromMarkdown, shortSummary, splitInlineCode } from './inline-code-text.js';
13
14
  export { CopyButton } from './copy-button.js';
14
15
  export { MarkdownWithFrontmatter } from './markdown-frontmatter.js';
15
16
  export { languageLabel, normalizeLanguage } from './unified-markdown-utils.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTranslations } from '../../i18n/index.js';
2
+ import { useTranslations } from '../i18n/index.js';
3
3
  /**
4
4
  * The inline-code chip, and the one piece of markdown that draws something
5
5
  * other than text.
@@ -17,7 +17,7 @@ import { useTranslations } from '../../i18n/index.js';
17
17
  * surfaces can render: the class string, the hex test, and a swatch that is
18
18
  * pure JSX.
19
19
  */
20
- import { cn } from '../../lib/utils.js';
20
+ import { cn } from '../lib/utils.js';
21
21
  // ─── Inline code ─────────────────────────────────────────────────────────────
22
22
  /**
23
23
  * Size: `0.8rem` in body text, `0.9em` inside a heading.
@@ -0,0 +1,34 @@
1
+ import type React from 'react';
2
+ export type InlineCodeSegment = {
3
+ kind: 'text' | 'code';
4
+ value: string;
5
+ };
6
+ /**
7
+ * Splits a one-line string on backtick code spans: 'a `b` c' →
8
+ * text 'a ', code 'b', text ' c'. An unmatched backtick stays as text.
9
+ * A double-backtick span (`` a`b ``) is read the way CommonMark reads it.
10
+ */
11
+ export declare function splitInlineCode(input: string): InlineCodeSegment[];
12
+ /**
13
+ * A markdown string as the plain words it shows, for one-line text that
14
+ * cannot hold markup: a card's summary, an accessible description, a link
15
+ * name. Code spans lose their backticks, links and images keep their text,
16
+ * emphasis markers go, and line breaks collapse to single spaces.
17
+ * `memory_reflector`-style identifiers keep their underscores.
18
+ */
19
+ export declare function plainTextFromMarkdown(input: string): string;
20
+ /**
21
+ * The first sentence of `plainTextFromMarkdown(input)`, capped at `max`
22
+ * characters with an ellipsis: what a card's `aria-describedby` reads, so a
23
+ * Tab stop announces a summary instead of a whole SKILL.md description.
24
+ */
25
+ export declare function shortSummary(input: string, max?: number): string;
26
+ /**
27
+ * A short string an agent wrote (a goal criterion, an agent description) with
28
+ * its `code spans` drawn as the chat's inline-code chip instead of literal
29
+ * backticks. Inline only: no block elements and no links, so it is safe inside
30
+ * a menu row or a `line-clamp` paragraph.
31
+ */
32
+ export declare function InlineCodeText({ text }: {
33
+ text: string;
34
+ }): React.ReactElement;